ethereum-lite-explorer
Version:
Ethereum Lite Explorer
2 lines • 1.53 MB
JavaScript
(window["webpackJsonp_aleth_io_ethLite"]=window["webpackJsonp_aleth_io_ethLite"]||[]).push([[0],{"+y1K":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("TihM");var i=Object(r["c"])("keybindingService")},"059A":function(e,t,n){var r=n("UDU2");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},"1B4h":function(e,t,n){"use strict";n.r(t);var r=n("eu5a");var i=n("9X2a");var o=n("kaC/");function a(e){return Object(o["g"])(e)&&"function"==typeof e.done}var s=function(){function e(e){a(e)?this._winjsPromise=e:this._winjsPromise=new r["a"](function(t,n){var r=!0;e(function(e){r?i["h"](function(){return t(e)}):t(e)},function(e){r?i["h"](function(){return n(e)}):n(e)});r=!1})}e.all=function(t){return new e(r["a"].join(t).then(null,function(e){for(var t in e)if(e.hasOwnProperty(t))return e[t]}))};e.race=function(t){return new e(r["a"].any(t).then(function(e){return e.value},function(e){return e.value}))};e.resolve=function(t){return new e(r["a"].wrap(t))};e.reject=function(t){return new e(r["a"].wrapError(t))};e.prototype.then=function(t,n){var o=!0;var a=new e(this._winjsPromise.then(t&&function(e){return o?new r["a"](function(n,r){i["h"](function(){var i;try{i=t(e)}catch(e){r(e);return}n(i)})}):t(e)},n&&function(e){return o?new r["a"](function(t,r){i["h"](function(){var i;try{i=n(e)}catch(e){r(e);return}t(i)})}):n(e)}));o=!1;return a};e.prototype.catch=function(e){return this.then(null,e)};return e}();var u=n("UMmv");var l=n("dFoq");var c=n("5s6q");var d=n("Vp92");var h=n("PJlg");var f=n("6dSJ");var p=n("cENI");var g=n("tkRu");var v=n("8fzD");var m;!function(e){e[e["Unnecessary"]=1]="Unnecessary"}(m||(m={}));var _;!function(e){e[e["Hint"]=1]="Hint";e[e["Info"]=2]="Info";e[e["Warning"]=4]="Warning";e[e["Error"]=8]="Error"}(_||(_={}));var y;!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"}(y||(y={}));var b;!function(e){e[e["LTR"]=0]="LTR";e[e["RTL"]=1]="RTL"}(b||(b={}));var C;!function(e){e[e["Auto"]=1]="Auto";e[e["Hidden"]=2]="Hidden";e[e["Visible"]=3]="Visible"}(C||(C={}));var w;!function(e){e[e["Left"]=1]="Left";e[e["Center"]=2]="Center";e[e["Right"]=4]="Right";e[e["Full"]=7]="Full"}(w||(w={}));var S;!function(e){e[e["TextDefined"]=0]="TextDefined";e[e["LF"]=1]="LF";e[e["CRLF"]=2]="CRLF"}(S||(S={}));var L;!function(e){e[e["LF"]=1]="LF";e[e["CRLF"]=2]="CRLF"}(L||(L={}));var I;!function(e){e[e["LF"]=0]="LF";e[e["CRLF"]=1]="CRLF"}(I||(I={}));var x;!function(e){e[e["AlwaysGrowsWhenTypingAtEdges"]=0]="AlwaysGrowsWhenTypingAtEdges";e[e["NeverGrowsWhenTypingAtEdges"]=1]="NeverGrowsWhenTypingAtEdges";e[e["GrowsOnlyWhenTypingBefore"]=2]="GrowsOnlyWhenTypingBefore";e[e["GrowsOnlyWhenTypingAfter"]=3]="GrowsOnlyWhenTypingAfter"}(x||(x={}));var N;!function(e){e[e["Smooth"]=0]="Smooth";e[e["Immediate"]=1]="Immediate"}(N||(N={}));var M;!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"}(M||(M={}));var D;!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"}(D||(D={}));var k;!function(e){e[e["None"]=0]="None";e[e["Same"]=1]="Same";e[e["Indent"]=2]="Indent";e[e["DeepIndent"]=3]="DeepIndent"}(k||(k={}));var O;!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"}(O||(O={}));var E;!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"}(E||(E={}));var T;!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"}(T||(T={}));var A;!function(e){e[e["EXACT"]=0]="EXACT";e[e["ABOVE"]=1]="ABOVE";e[e["BELOW"]=2]="BELOW"}(A||(A={}));var R;!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"}(R||(R={}));var P;!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"}(P||(P={}));var j;!function(e){e[e["None"]=0]="None";e[e["Indent"]=1]="Indent";e[e["IndentOutdent"]=2]="IndentOutdent";e[e["Outdent"]=3]="Outdent"}(j||(j={}));var W;!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"}(W||(W={}));var F;!function(e){e[e["KeepWhitespace"]=1]="KeepWhitespace";e[e["InsertAsSnippet"]=4]="InsertAsSnippet"}(F||(F={}));var z;!function(e){e[e["Invoke"]=0]="Invoke";e[e["TriggerCharacter"]=1]="TriggerCharacter";e[e["TriggerForIncompleteCompletions"]=2]="TriggerForIncompleteCompletions"}(z||(z={}));var V;!function(e){e[e["Invoke"]=1]="Invoke";e[e["TriggerCharacter"]=2]="TriggerCharacter";e[e["ContentChange"]=3]="ContentChange"}(V||(V={}));var B;!function(e){e[e["Text"]=0]="Text";e[e["Read"]=1]="Read";e[e["Write"]=2]="Write"}(B||(B={}));var H;!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"}(H||(H={}));var U=function(){function e(){}e.chord=function(e,t){return Object(d["a"])(e,t)};e.CtrlCmd=2048;e.Shift=1024;e.Alt=512;e.WinCtrl=256;return e}();function Z(){return{editor:void 0,languages:void 0,CancellationTokenSource:l["a"],Emitter:c["a"],KeyCode:y,KeyMod:U,Position:f["a"],Range:p["a"],Selection:g["a"],SelectionDirection:b,MarkerSeverity:_,MarkerTag:m,Promise:r["b"],Uri:h["a"],Token:v["a"]}}var G=n("ijzU");var Y=n("4d2E");var K=n("zxKB");function Q(e){var t=JSON.parse(e);return t=q(t,0)}function q(e,t){if(!e||t>200)return e;if("object"==typeof e){switch(e.$mid){case 1:return h["a"].revive(e);case 2:return new RegExp(e.source,e.flags)}for(var n in e)Object.hasOwnProperty.call(e,n)&&(e[n]=q(e[n],t+1))}return e}var J;!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"}(J||(J={}));var X=n("p8vD");var $=n("PFKJ");function ee(e){return!e||e.scheme!==J.file||!i["c"]}function te(e){return re(e)||e.authority}function ne(e,t,n){void 0===n&&(n=ee(e));var r;if(e===t)return!0;if(!e||!t)return!1;if(n)return Object($["j"])(e.toString(),t.toString());return e.toString()===t.toString()}function re(e){return X["a"](e.path)}function ie(e){if(e.scheme===J.file)return h["a"].file(X["b"](se(e)));var t=X["b"](e.path,"/");if(e.authority&&t.length&&47!==t.charCodeAt(0))return null;return e.with({path:t})}function oe(e,t){var n;n=e.scheme===J.file?h["a"].file(X["e"](se(e),t)).path:X["e"](e.path,t);return e.with({path:n})}function ae(e){var t;t=e.scheme===J.file?h["a"].file(X["g"](se(e))).path:X["g"](e.path);return e.with({path:t})}function se(e){var t;t=e.authority&&e.path.length>1&&"file"===e.scheme?"//"+e.authority+e.path:i["g"]&&47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path.substr(1):e.path;i["g"]&&(t=t.replace(/\//g,"\\"));return t}var ue;!function(e){e.META_DATA_LABEL="label";e.META_DATA_DESCRIPTION="description";e.META_DATA_SIZE="size";e.META_DATA_MIME="mime";function t(t){var n=new Map;var r;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(function(e){var t=e.split(":"),r=t[0],i=t[1];r&&i&&n.set(r,i)});var i=t.path.substring(0,t.path.indexOf(";"));i&&n.set(e.META_DATA_MIME,i);return n}e.parseMetaData=t}(ue||(ue={}));var le=n("rCf5");var ce=n("TihM");var de=n("r8M0");var he=new(function(){function e(){}e.prototype.publicLog=function(e,t){return r["b"].wrap(void 0)};e.prototype.getTelemetryInfo=function(){return r["b"].wrap({instanceId:"someValue.instanceId",sessionId:"someValue.sessionId",machineId:"someValue.machineId"})};return e}());var fe=function(e,t,n,r){var i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};var pe=function(e,t){return function(n,r){t(n,r,e)}};var ge=function(){function e(e,t,n){void 0===n&&(n=he);this._editorService=e;this._commandService=t;this._telemetryService=n}e.prototype.open=function(e,t){var n;this._telemetryService&&this._telemetryService.publicLog("openerService",{scheme:e.scheme});var r=e.scheme,i=e.path,o=e.query,a=e.fragment;var s=void 0;if(r===J.http||r===J.https||r===J.mailto)K["P"](e.toString(!0));else if("command"===r&&le["a"].getCommand(i)){var u=[];try{u=Q(o);Array.isArray(u)||(u=[u])}catch(e){}s=(n=this._commandService).executeCommand.apply(n,[i].concat(u))}else{var l=void 0;var c=/^L?(\d+)(?:,(\d+))?/.exec(a);if(c){l={startLineNumber:parseInt(c[1]),startColumn:c[2]?parseInt(c[2]):1};e=e.with({fragment:""})}if(!e.scheme)return Promise.resolve(void 0);e.scheme===J.file&&(e=ae(e));s=this._editorService.openCodeEditor({resource:e,options:{selection:l}},this._editorService.getFocusedCodeEditor(),t&&t.openToSide)}return Promise.resolve(s)};return e=fe([pe(0,Y["a"]),pe(1,le["b"]),pe(2,Object(ce["d"])(de["a"]))],e)}();var ve=n("Ni+E");var me=n("KVQV");var _e=n("lKvo");var ye={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0};var be=function(){function e(e,t){void 0===t&&(t={});var n=this;this._onDidUpdate=new c["a"];this._editor=e;this._options=_e["e"](t,ye,!1);this.disposed=!1;this._disposables=[];this.nextIdx=-1;this.ranges=[];this.ignoreSelectionChange=!1;this.revealFirst=Boolean(this._options.alwaysRevealFirst);this._disposables.push(this._editor.onDidDispose(function(){return n.dispose()}));this._disposables.push(this._editor.onDidUpdateDiff(function(){return n._onDiffUpdated()}));this._options.followsCaret&&this._disposables.push(this._editor.getModifiedEditor().onDidChangeCursorPosition(function(e){if(n.ignoreSelectionChange)return;n.nextIdx=-1}));this._options.alwaysRevealFirst&&this._disposables.push(this._editor.getModifiedEditor().onDidChangeModel(function(e){n.revealFirst=!0}));this._init()}e.prototype._init=function(){var e;if(!this._editor.getLineChanges())return};e.prototype._onDiffUpdated=function(){this._init();this._compute(this._editor.getLineChanges());if(this.revealFirst&&null!==this._editor.getLineChanges()){this.revealFirst=!1;this.nextIdx=-1;this.next(1)}};e.prototype._compute=function(e){var t=this;this.ranges=[];e&&e.forEach(function(e){!t._options.ignoreCharChanges&&e.charChanges?e.charChanges.forEach(function(e){t.ranges.push({rhs:!0,range:new p["a"](e.modifiedStartLineNumber,e.modifiedStartColumn,e.modifiedEndLineNumber,e.modifiedEndColumn)})}):t.ranges.push({rhs:!0,range:new p["a"](e.modifiedStartLineNumber,1,e.modifiedStartLineNumber,1)})});this.ranges.sort(function(e,t){return e.range.getStartPosition().isBeforeOrEqual(t.range.getStartPosition())?-1:t.range.getStartPosition().isBeforeOrEqual(e.range.getStartPosition())?1:0});this._onDidUpdate.fire(this)};e.prototype._initIdx=function(e){var t=!1;var n=this._editor.getPosition();if(!n){this.nextIdx=0;return}for(var r=0,i=this.ranges.length;r<i&&!t;r++){var o=this.ranges[r].range;if(n.isBeforeOrEqual(o.getStartPosition())){this.nextIdx=r+(e?0:-1);t=!0}}t||(this.nextIdx=e?0:this.ranges.length-1);this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)};e.prototype._move=function(e,t){ve["a"](!this.disposed,"Illegal State - diff navigator has been disposed");if(!this.canNavigate())return;if(-1===this.nextIdx)this._initIdx(e);else if(e){this.nextIdx+=1;this.nextIdx>=this.ranges.length&&(this.nextIdx=0)}else{this.nextIdx-=1;this.nextIdx<0&&(this.nextIdx=this.ranges.length-1)}var n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{var r=n.range.getStartPosition();this._editor.setPosition(r);this._editor.revealPositionInCenter(r,t)}finally{this.ignoreSelectionChange=!1}};e.prototype.canNavigate=function(){return this.ranges&&this.ranges.length>0};e.prototype.next=function(e){void 0===e&&(e=0);this._move(!0,e)};e.prototype.previous=function(e){void 0===e&&(e=0);this._move(!1,e)};e.prototype.dispose=function(){Object(me["d"])(this._disposables);this._disposables.length=0;this._onDidUpdate.dispose();this.ranges=[];this.disposed=!0};return e}();var Ce=new(function(){function e(){this._zoomLevel=0;this._onDidChangeZoomLevel=new c["a"];this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event}e.prototype.getZoomLevel=function(){return this._zoomLevel};e.prototype.setZoomLevel=function(e){e=Math.min(Math.max(-5,e),20);if(this._zoomLevel===e)return;this._zoomLevel=e;this._onDidChangeZoomLevel.fire(this._zoomLevel)};return e}());var we=(Se=function(e,t){return(Se=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])})(e,t)},function(e,t){Se(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var Se;var Le=i["d"]?1.5:1.35;var Ie=8;var xe=100;var Ne=8;var Me=150;var De=-5;var ke=20;function Oe(e,t){if("number"==typeof e)return e;if(void 0===e)return t;var n=parseFloat(e);if(isNaN(n))return t;return n}function Ee(e,t){if("number"==typeof e)return Math.round(e);if(void 0===e)return t;var n=parseInt(e);if(isNaN(n))return t;return n}function Te(e,t,n){if(e<t)return t;if(e>n)return n;return e}function Ae(e,t){if("string"!=typeof e)return t;return e}var Re=function(){function e(e){this.zoomLevel=e.zoomLevel;this.fontFamily=String(e.fontFamily);this.fontWeight=String(e.fontWeight);this.fontSize=e.fontSize;this.lineHeight=0|e.lineHeight;this.letterSpacing=e.letterSpacing}e.createFromRawSettings=function(t,n){var r=Ae(t.fontFamily,u["b"].fontFamily);var i=Ae(t.fontWeight,u["b"].fontWeight);var o=Oe(t.fontSize,u["b"].fontSize);0===(o=Te(o,0,100))?o=u["b"].fontSize:o<8&&(o=8);var a=Ee(t.lineHeight,0);0===(a=Te(a,0,150))?a=Math.round(Le*o):a<8&&(a=8);var s=Oe(t.letterSpacing,0);s=Te(s,-5,20);var l=1+.1*Ce.getZoomLevel();return new e({zoomLevel:n,fontFamily:r,fontWeight:i,fontSize:o*=l,lineHeight:a*=l,letterSpacing:s})};e.prototype.getId=function(){return this.zoomLevel+"-"+this.fontFamily+"-"+this.fontWeight+"-"+this.fontSize+"-"+this.lineHeight+"-"+this.letterSpacing};e.prototype.getMassagedFontFamily=function(){if(/[,"']/.test(this.fontFamily))return this.fontFamily;if(/[+ ]/.test(this.fontFamily))return'"'+this.fontFamily+'"';return this.fontFamily};return e}();var Pe=function(e){we(t,e);function t(t,n){var r=e.call(this,t)||this;r.isTrusted=n;r.isMonospace=t.isMonospace;r.typicalHalfwidthCharacterWidth=t.typicalHalfwidthCharacterWidth;r.typicalFullwidthCharacterWidth=t.typicalFullwidthCharacterWidth;r.canUseHalfwidthRightwardsArrow=t.canUseHalfwidthRightwardsArrow;r.spaceWidth=t.spaceWidth;r.maxDigitWidth=t.maxDigitWidth;return r}t.prototype.equals=function(e){return this.fontFamily===e.fontFamily&&this.fontWeight===e.fontWeight&&this.fontSize===e.fontSize&&this.lineHeight===e.lineHeight&&this.letterSpacing===e.letterSpacing&&this.typicalHalfwidthCharacterWidth===e.typicalHalfwidthCharacterWidth&&this.typicalFullwidthCharacterWidth===e.typicalFullwidthCharacterWidth&&this.canUseHalfwidthRightwardsArrow===e.canUseHalfwidthRightwardsArrow&&this.spaceWidth===e.spaceWidth&&this.maxDigitWidth===e.maxDigitWidth};return t}(Re);function je(e){return e&&"string"==typeof e.id}var We={ICodeEditor:"vs.editor.ICodeEditor",IDiffEditor:"vs.editor.IDiffEditor"};var Fe={ExecuteCommand:"executeCommand",ExecuteCommands:"executeCommands",Type:"type",ReplacePreviousChar:"replacePreviousChar",CompositionStart:"compositionStart",CompositionEnd:"compositionEnd",Paste:"paste",Cut:"cut",Undo:"undo",Redo:"redo"};var ze=n("rTC2");var Ve=n("6cF/");var Be=n("FPwH");var He="editorWorkerService";var Ue=Object(ce["c"])("editorWorkerService");var Ze=n("VHqg");var Ge=n("W5Z6");var Ye=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Ke=self;void 0===Ke.Promise&&(Ke.Promise=s);var Qe="$initialize";var qe=!1;function Je(e){if(!i["f"])return;if(!qe){qe=!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)}var Xe=function(){function e(e){this._workerId=-1;this._handler=e;this._lastSentReq=0;this._pendingReplies=Object.create(null)}e.prototype.setWorkerId=function(e){this._workerId=e};e.prototype.sendMessage=function(e,t){var n=this;var r=String(++this._lastSentReq);return new Promise(function(i,o){n._pendingReplies[r]={resolve:i,reject:o};n._send({vsWorker:n._workerId,req:r,method:e,args:t})})};e.prototype.handleMessage=function(e){var t;try{t=JSON.parse(e)}catch(e){return}if(!t||!t.vsWorker)return;if(-1!==this._workerId&&t.vsWorker!==this._workerId)return;this._handleMessage(t)};e.prototype._handleMessage=function(e){var t=this;if(e.seq){var n=e;if(!this._pendingReplies[n.seq]){console.warn("Got reply to unknown seq");return}var r=this._pendingReplies[n.seq];delete this._pendingReplies[n.seq];if(n.err){var i=n.err;if(n.err.$isError){(i=new Error).name=n.err.name;i.message=n.err.message;i.stack=n.err.stack}r.reject(i);return}r.resolve(n.res);return}var o=e;var a=o.req;var s;this._handler.handleMessage(o.method,o.args).then(function(e){t._send({vsWorker:t._workerId,seq:a,res:e,err:void 0})},function(e){e.detail instanceof Error&&(e.detail=Object(Ge["f"])(e.detail));t._send({vsWorker:t._workerId,seq:a,res:void 0,err:Object(Ge["f"])(e)})})};e.prototype._send=function(e){var t=JSON.stringify(e);this._handler.sendMessage(t)};return e}();var $e=function(e){Ye(t,e);function t(t,n){var r=e.call(this)||this;var i=null;r._worker=r._register(t.create("vs/base/common/worker/simpleWorker",function(e){r._protocol.handleMessage(e)},function(e){i&&i(e)}));r._protocol=new Xe({sendMessage:function(e){r._worker.postMessage(e)},handleMessage:function(e,t){return Promise.resolve(null)}});r._protocol.setWorkerId(r._worker.getId());var o=null;void 0!==self.require&&"function"==typeof self.require.getConfig?o=self.require.getConfig():void 0!==self.requirejs&&(o=self.requirejs.s.contexts._.config);r._onModuleLoaded=r._protocol.sendMessage(Qe,[r._worker.getId(),n,o]);r._lazyProxy=new Promise(function(e,t){i=t;r._onModuleLoaded.then(function(t){var n={};for(var r=0;r<t.length;r++)n[t[r]]=s(t[r],a);e(n)},function(e){t(e);r._onError("Worker failed to load "+n,e)})});var a=function(e,t){return r._request(e,t)};var s=function(e,t){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}};return r}t.prototype.getProxyObject=function(){return this._lazyProxy};t.prototype._request=function(e,t){var n=this;return new Promise(function(r,i){n._onModuleLoaded.then(function(){n._protocol.sendMessage(e,t).then(r,i)},i)})};t.prototype._onError=function(e,t){console.error(e);console.info(t)};return t}(me["a"]);var et=function(){function e(e,t){var n=this;this._requestHandler=t;this._protocol=new Xe({sendMessage:function(t){e(t)},handleMessage:function(e,t){return n._handleMessage(e,t)}})}e.prototype.onmessage=function(e){this._protocol.handleMessage(e)};e.prototype._handleMessage=function(e,t){if(e===Qe)return this.initialize(t[0],t[1],t[2]);if(!this._requestHandler||"function"!=typeof this._requestHandler[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._requestHandler[e].apply(this._requestHandler,t))}catch(e){return Promise.reject(e)}};e.prototype.initialize=function(e,t,n){var r=this;this._protocol.setWorkerId(e);if(this._requestHandler){var i=[];for(var o in this._requestHandler)"function"==typeof this._requestHandler[o]&&i.push(o);return Promise.resolve(i)}if(n){void 0!==n.baseUrl&&delete n["baseUrl"];void 0!==n.paths&&void 0!==n.paths.vs&&delete n.paths["vs"];n.catchError=!0;self.require.config(n)}return new Promise(function(e,n){self.require([t],function(){var t=[];for(var i=0;i<arguments.length;i++)t[i]=arguments[i];var o=t[0];r._requestHandler=o.create();if(!r._requestHandler){n(new Error("No RequestHandler!"));return}var a=[];for(var s in r._requestHandler)"function"==typeof r._requestHandler[s]&&a.push(s);e(a)},n)})};return e}();function tt(e){return new et(e,null)}function nt(e,t){if(i["b"].MonacoEnvironment){if("function"==typeof i["b"].MonacoEnvironment.getWorker)return i["b"].MonacoEnvironment.getWorker(e,t);if("function"==typeof i["b"].MonacoEnvironment.getWorkerUrl)return new Worker(i["b"].MonacoEnvironment.getWorkerUrl(e,t))}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}var rt=function(){function e(e,t,n,r,i){this.id=t;this.worker=nt("workerMain.js",n);this.postMessage(e);this.worker.onmessage=function(e){r(e.data)};"function"==typeof this.worker.addEventListener&&this.worker.addEventListener("error",i)}e.prototype.getId=function(){return this.id};e.prototype.postMessage=function(e){this.worker&&this.worker.postMessage(e)};e.prototype.dispose=function(){this.worker&&this.worker.terminate();this.worker=null};return e}();var it=function(){function e(e){this._label=e;this._webWorkerFailedBeforeError=!1}e.prototype.create=function(t,n,r){var i=this;var o=++e.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new rt(t,o,this._label||"anonymous"+o,n,function(e){Je(e);i._webWorkerFailedBeforeError=e;r(e)})};e.LAST_WORKER_ID=0;return e}();var ot=n("gZKZ");var at=n("1RQC");var st=function(){function e(e,t,n,r){this.originalStart=e;this.originalLength=t;this.modifiedStart=n;this.modifiedLength=r}e.prototype.getOriginalEnd=function(){return this.originalStart+this.originalLength};e.prototype.getModifiedEnd=function(){return this.modifiedStart+this.modifiedLength};return e}();function ut(e){return{getLength:function(){return e.length},getElementAtIndex:function(t){return e.charCodeAt(t)}}}function lt(e,t,n){return new pt(ut(e),ut(t)).ComputeDiff(n)}var ct=function(){function e(){}e.Assert=function(e,t){if(!e)throw new Error(t)};return e}();var dt=function(){function e(){}e.Copy=function(e,t,n,r,i){for(var o=0;o<i;o++)n[r+o]=e[t+o]};return e}();var ht=1447;var ft=function(){function e(){this.m_changes=[];this.m_originalStart=Number.MAX_VALUE;this.m_modifiedStart=Number.MAX_VALUE;this.m_originalCount=0;this.m_modifiedCount=0}e.prototype.MarkNextChange=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new st(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};e.prototype.AddOriginalElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e);this.m_modifiedStart=Math.min(this.m_modifiedStart,t);this.m_originalCount++};e.prototype.AddModifiedElement=function(e,t){this.m_originalStart=Math.min(this.m_originalStart,e);this.m_modifiedStart=Math.min(this.m_modifiedStart,t);this.m_modifiedCount++};e.prototype.getChanges=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange();return this.m_changes};e.prototype.getReverseChanges=function(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange();this.m_changes.reverse();return this.m_changes};return e}();var pt=function(){function e(e,t,n){void 0===n&&(n=null);this.OriginalSequence=e;this.ModifiedSequence=t;this.ContinueProcessingPredicate=n;this.m_forwardHistory=[];this.m_reverseHistory=[]}e.prototype.ElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)};e.prototype.OriginalElementsAreEqual=function(e,t){return this.OriginalSequence.getElementAtIndex(e)===this.OriginalSequence.getElementAtIndex(t)};e.prototype.ModifiedElementsAreEqual=function(e,t){return this.ModifiedSequence.getElementAtIndex(e)===this.ModifiedSequence.getElementAtIndex(t)};e.prototype.ComputeDiff=function(e){return this._ComputeDiff(0,this.OriginalSequence.getLength()-1,0,this.ModifiedSequence.getLength()-1,e)};e.prototype._ComputeDiff=function(e,t,n,r,i){var o=[!1];var a=this.ComputeDiffRecursive(e,t,n,r,o);if(i)return this.PrettifyChanges(a);return a};e.prototype.ComputeDiffRecursive=function(e,t,n,r,i){i[0]=!1;for(;e<=t&&n<=r&&this.ElementsAreEqual(e,n);){e++;n++}for(;t>=e&&r>=n&&this.ElementsAreEqual(t,r);){t--;r--}if(e>t||n>r){var o=void 0;if(n<=r){ct.Assert(e===t+1,"originalStart should only be one more than originalEnd");o=[new st(e,0,n,r-n+1)]}else if(e<=t){ct.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd");o=[new st(e,t-e+1,n,0)]}else{ct.Assert(e===t+1,"originalStart should only be one more than originalEnd");ct.Assert(n===r+1,"modifiedStart should only be one more than modifiedEnd");o=[]}return o}var a=[0],s=[0];var u=this.ComputeRecursionPoint(e,t,n,r,a,s,i);var l=a[0];var c=s[0];if(null!==u)return u;if(!i[0]){var d=this.ComputeDiffRecursive(e,l,n,c,i);var h=[];h=i[0]?[new st(l+1,t-(l+1)+1,c+1,r-(c+1)+1)]:this.ComputeDiffRecursive(l+1,t,c+1,r,i);return this.ConcatenateChanges(d,h)}return[new st(e,t-e+1,n,r-n+1)]};e.prototype.WALKTRACE=function(e,t,n,r,i,o,a,s,u,l,c,d,h,f,p,g,v,m){var _=null,y=null;var b=new ft;var C=t;var w=n;var S=h[0]-g[0]-r;var L=Number.MIN_VALUE;var I=this.m_forwardHistory.length-1;var x;do{if((x=S+e)===C||x<w&&u[x-1]<u[x+1]){f=(c=u[x+1])-S-r;c<L&&b.MarkNextChange();L=c;b.AddModifiedElement(c+1,f);S=x+1-e}else{f=(c=u[x-1]+1)-S-r;c<L&&b.MarkNextChange();L=c-1;b.AddOriginalElement(c,f+1);S=x-1-e}if(I>=0){e=(u=this.m_forwardHistory[I])[0];C=1;w=u.length-1}}while(--I>=-1);_=b.getReverseChanges();if(m[0]){var N=h[0]+1;var M=g[0]+1;if(null!==_&&_.length>0){var D=_[_.length-1];N=Math.max(N,D.getOriginalEnd());M=Math.max(M,D.getModifiedEnd())}y=[new st(N,d-N+1,M,p-M+1)]}else{b=new ft;C=o;w=a;S=h[0]-g[0]-s;L=Number.MAX_VALUE;I=v?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{if((x=S+i)===C||x<w&&l[x-1]>=l[x+1]){f=(c=l[x+1]-1)-S-s;c>L&&b.MarkNextChange();L=c+1;b.AddOriginalElement(c+1,f+1);S=x+1-i}else{f=(c=l[x-1])-S-s;c>L&&b.MarkNextChange();L=c;b.AddModifiedElement(c+1,f+1);S=x-1-i}if(I>=0){i=(l=this.m_reverseHistory[I])[0];C=1;w=l.length-1}}while(--I>=-1);y=b.getChanges()}return this.ConcatenateChanges(_,y)};e.prototype.ComputeRecursionPoint=function(e,t,n,r,i,o,a){var s=0,u=0;var l=0,c=0;var d=0,h=0;var f;e--;n--;i[0]=0;o[0]=0;this.m_forwardHistory=[];this.m_reverseHistory=[];var p=t-e+(r-n);var g=p+1;var v=new Array(g);var m=new Array(g);var _=r-n;var y=t-e;var b=e-n;var C=t-r;var w;var S=(y-_)%2==0;v[_]=e;m[y]=t;a[0]=!1;var L,I;for(f=1;f<=p/2+1;f++){var x=0;var N=0;l=this.ClipDiagonalBound(_-f,f,_,g);c=this.ClipDiagonalBound(_+f,f,_,g);for(L=l;L<=c;L+=2){u=(s=L===l||L<c&&v[L-1]<v[L+1]?v[L+1]:v[L-1]+1)-(L-_)-b;I=s;for(;s<t&&u<r&&this.ElementsAreEqual(s+1,u+1);){s++;u++}v[L]=s;if(s+u>x+N){x=s;N=u}if(!S&&Math.abs(L-y)<=f-1&&s>=m[L]){i[0]=s;o[0]=u;return I<=m[L]&&f<=1448?this.WALKTRACE(_,l,c,b,y,d,h,C,v,m,s,t,i,u,r,o,S,a):null}}var M=(x-e+(N-n)-f)/2;if(null!==this.ContinueProcessingPredicate&&!this.ContinueProcessingPredicate(x,this.OriginalSequence,M)){a[0]=!0;i[0]=x;o[0]=N;return M>0&&f<=1448?this.WALKTRACE(_,l,c,b,y,d,h,C,v,m,s,t,i,u,r,o,S,a):[new st(++e,t-e+1,++n,r-n+1)]}d=this.ClipDiagonalBound(y-f,f,y,g);h=this.ClipDiagonalBound(y+f,f,y,g);for(L=d;L<=h;L+=2){u=(s=L===d||L<h&&m[L-1]>=m[L+1]?m[L+1]-1:m[L-1])-(L-y)-C;I=s;for(;s>e&&u>n&&this.ElementsAreEqual(s,u);){s--;u--}m[L]=s;if(S&&Math.abs(L-_)<=f&&s<=v[L]){i[0]=s;o[0]=u;return I>=v[L]&&f<=1448?this.WALKTRACE(_,l,c,b,y,d,h,C,v,m,s,t,i,u,r,o,S,a):null}}if(f<=1447){var D=new Array(c-l+2);D[0]=_-l+1;dt.Copy(v,l,D,1,c-l+1);this.m_forwardHistory.push(D);(D=new Array(h-d+2))[0]=y-d+1;dt.Copy(m,d,D,1,h-d+1);this.m_reverseHistory.push(D)}}return this.WALKTRACE(_,l,c,b,y,d,h,C,v,m,s,t,i,u,r,o,S,a)};e.prototype.PrettifyChanges=function(e){for(var t=0;t<e.length;t++){var n=e[t];var r=t<e.length-1?e[t+1].originalStart:this.OriginalSequence.getLength();var i=t<e.length-1?e[t+1].modifiedStart:this.ModifiedSequence.getLength();var o=n.originalLength>0;var a=n.modifiedLength>0;for(;n.originalStart+n.originalLength<r&&n.modifiedStart+n.modifiedLength<i&&(!o||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!a||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){n.originalStart++;n.modifiedStart++}var s=[null];if(t<e.length-1&&this.ChangesOverlap(e[t],e[t+1],s)){e[t]=s[0];e.splice(t+1,1);t--;continue}}for(var t=e.length-1;t>=0;t--){var n=e[t];var r=0;var i=0;if(t>0){var u=e[t-1];u.originalLength>0&&(r=u.originalStart+u.originalLength);u.modifiedLength>0&&(i=u.modifiedStart+u.modifiedLength)}var o=n.originalLength>0;var a=n.modifiedLength>0;var l=0;var c=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(var d=1;;d++){var h=n.originalStart-d;var f=n.modifiedStart-d;if(h<r||f<i)break;if(o&&!this.OriginalElementsAreEqual(h,h+n.originalLength))break;if(a&&!this.ModifiedElementsAreEqual(f,f+n.modifiedLength))break;var p=this._boundaryScore(h,n.originalLength,f,n.modifiedLength);if(p>c){c=p;l=d}}n.originalStart-=l;n.modifiedStart-=l}return e};e.prototype._OriginalIsBoundary=function(e){if(e<=0||e>=this.OriginalSequence.getLength()-1)return!0;var t=this.OriginalSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)};e.prototype._OriginalRegionIsBoundary=function(e,t){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1};e.prototype._ModifiedIsBoundary=function(e){if(e<=0||e>=this.ModifiedSequence.getLength()-1)return!0;var t=this.ModifiedSequence.getElementAtIndex(e);return"string"==typeof t&&/^\s*$/.test(t)};e.prototype._ModifiedRegionIsBoundary=function(e,t){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(t>0){var n=e+t;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1};e.prototype._boundaryScore=function(e,t,n,r){var i;var o;return(this._OriginalRegionIsBoundary(e,t)?1:0)+(this._ModifiedRegionIsBoundary(n,r)?1:0)};e.prototype.ConcatenateChanges=function(e,t){var n=[];if(0===e.length||0===t.length)return t.length>0?t:e;if(this.ChangesOverlap(e[e.length-1],t[0],n)){var r=new Array(e.length+t.length-1);dt.Copy(e,0,r,0,e.length-1);r[e.length-1]=n[0];dt.Copy(t,1,r,e.length,t.length-1);return r}var r=new Array(e.length+t.length);dt.Copy(e,0,r,0,e.length);dt.Copy(t,0,r,e.length,t.length);return r};e.prototype.ChangesOverlap=function(e,t,n){ct.Assert(e.originalStart<=t.originalStart,"Left change is not less than or equal to right change");ct.Assert(e.modifiedStart<=t.modifiedStart,"Left change is not less than or equal to right change");if(e.originalStart+e.originalLength>=t.originalStart||e.modifiedStart+e.modifiedLength>=t.modifiedStart){var r=e.originalStart;var i=e.originalLength;var o=e.modifiedStart;var a=e.modifiedLength;e.originalStart+e.originalLength>=t.originalStart&&(i=t.originalStart+t.originalLength-e.originalStart);e.modifiedStart+e.modifiedLength>=t.modifiedStart&&(a=t.modifiedStart+t.modifiedLength-e.modifiedStart);n[0]=new st(r,i,o,a);return!0}n[0]=null;return!1};e.prototype.ClipDiagonalBound=function(e,t,n,r){if(e>=0&&e<r)return e;var i;var o=r-n-1;var a=t%2==0;if(e<0){var s;return a===(n%2==0)?0:1}var u;return a===(o%2==0)?r-1:r-2};return e}();var gt=n("3Yp8");var vt=5e3;var mt=3;function _t(e,t,n,r){var i;return new pt(e,t,n).ComputeDiff(r)}var yt=function(){function e(t){var n=[];var r=[];for(var i=0,o=t.length;i<o;i++){n[i]=e._getFirstNonBlankColumn(t[i],1);r[i]=e._getLastNonBlankColumn(t[i],1)}this._lines=t;this._startColumns=n;this._endColumns=r}e.prototype.getLength=function(){return this._lines.length};e.prototype.getElementAtIndex=function(e){return this._lines[e].substring(this._startColumns[e]-1,this._endColumns[e]-1)};e.prototype.getStartLineNumber=function(e){return e+1};e.prototype.getEndLineNumber=function(e){return e+1};e._getFirstNonBlankColumn=function(e,t){var n=$["m"](e);if(-1===n)return t;return n+1};e._getLastNonBlankColumn=function(e,t){var n=$["w"](e);if(-1===n)return t;return n+2};e.prototype.getCharSequence=function(e,t,n){var r=[];var i=[];var o=[];var a=0;for(var s=t;s<=n;s++){var u=this._lines[s];var l=e?this._startColumns[s]:1;var c=e?this._endColumns[s]:u.length+1;for(var d=l;d<c;d++){r[a]=u.charCodeAt(d-1);i[a]=s+1;o[a]=d;a++}}return new bt(r,i,o)};return e}();var bt=function(){function e(e,t,n){this._charCodes=e;this._lineNumbers=t;this._columns=n}e.prototype.getLength=function(){return this._charCodes.length};e.prototype.getElementAtIndex=function(e){return this._charCodes[e]};e.prototype.getStartLineNumber=function(e){return this._lineNumbers[e]};e.prototype.getStartColumn=function(e){return this._columns[e]};e.prototype.getEndLineNumber=function(e){return this._lineNumbers[e]};e.prototype.getEndColumn=function(e){return this._columns[e]+1};return e}();var Ct=function(){function e(e,t,n,r,i,o,a,s){this.originalStartLineNumber=e;this.originalStartColumn=t;this.originalEndLineNumber=n;this.originalEndColumn=r;this.modifiedStartLineNumber=i;this.modifiedStartColumn=o;this.modifiedEndLineNumber=a;this.modifiedEndColumn=s}e.createFromDiffChange=function(t,n,r){var i;var o;var a;var s;var u;var l;var c;var d;if(0===t.originalLength){i=0;o=0;a=0;s=0}else{i=n.getStartLineNumber(t.originalStart);o=n.getStartColumn(t.originalStart);a=n.getEndLineNumber(t.originalStart+t.originalLength-1);s=n.getEndColumn(t.originalStart+t.originalLength-1)}if(0===t.modifiedLength){u=0;l=0;c=0;d=0}else{u=r.getStartLineNumber(t.modifiedStart);l=r.getStartColumn(t.modifiedStart);c=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1);d=r.getEndColumn(t.modifiedStart+t.modifiedLength-1)}return new e(i,o,a,s,u,l,c,d)};return e}();function wt(e){if(e.length<=1)return e;var t=[e[0]];var n=t[0];for(var r=1,i=e.length;r<i;r++){var o=e[r];var a=o.originalStart-(n.originalStart+n.originalLength);var s=o.modifiedStart-(n.modifiedStart+n.modifiedLength);var u;if(Math.min(a,s)<mt){n.originalLength=o.originalStart+o.originalLength-n.originalStart;n.modifiedLength=o.modifiedStart+o.modifiedLength-n.modifiedStart}else{t.push(o);n=o}}return t}var St=function(){function e(e,t,n,r,i){this.originalStartLineNumber=e;this.originalEndLineNumber=t;this.modifiedStartLineNumber=n;this.modifiedEndLineNumber=r;this.charChanges=i}e.createFromDiffResult=function(t,n,r,i,o,a,s){var u;var l;var c;var d;var h=void 0;if(0===n.originalLength){u=r.getStartLineNumber(n.originalStart)-1;l=0}else{u=r.getStartLineNumber(n.originalStart);l=r.getEndLineNumber(n.originalStart+n.originalLength-1)}if(0===n.modifiedLength){c=i.getStartLineNumber(n.modifiedStart)-1;d=0}else{c=i.getStartLineNumber(n.modifiedStart);d=i.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)}if(a&&0!==n.originalLength&&0!==n.modifiedLength&&o()){var f=r.getCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1);var p=i.getCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);var g=_t(f,p,o,!0);s&&(g=wt(g));h=[];for(var v=0,m=g.length;v<m;v++)h.push(Ct.createFromDiffChange(g[v],f,p))}return new e(u,l,c,d,h)};return e}();var Lt=function(){function e(e,t,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges;this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges;this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace;this.shouldMakePrettyDiff=n.shouldMakePrettyDiff;this.maximumRunTimeMs=vt;this.originalLines=e;this.modifiedLines=t;this.original=new yt(e);this.modified=new yt(t)}e.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 e=_t(this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldMakePrettyDiff);if(this.shouldIgnoreTrimWhitespace){var t=[];for(var n=0,r=e.length;n<r;n++)t.push(St.createFromDiffResult(this.shouldIgnoreTrimWhitespace,e[n],this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return t}var i=[];var o=0;var a=0;for(var n=-1,s=e.length;n<s;n++){var u=n+1<s?e[n+1]:null;var l=u?u.originalStart:this.originalLines.length;var c=u?u.modifiedStart:this.modifiedLines.length;for(;o<l&&a<c;){var d=this.originalLines[o];var h=this.modifiedLines[a];if(d!==h){var f=yt._getFirstNonBlankColumn(d,1);var p=yt._getFirstNonBlankColumn(h,1);for(;f>1&&p>1;){var g;var v;if((g=d.charCodeAt(f-2))!==(v=h.charCodeAt(p-2)))break;f--;p--}(f>1||p>1)&&this._pushTrimWhitespaceCharChange(i,o+1,1,f,a+1,1,p);var m=yt._getLastNonBlankColumn(d,1);var _=yt._getLastNonBlankColumn(h,1);var y=d.length+1;var b=h.length+1;for(;m<y&&_<b;){var g;var v;if((g=d.charCodeAt(m-1))!==(v=d.charCodeAt(_-1)))break;m++;_++}(m<y||_<b)&&this._pushTrimWhitespaceCharChange(i,o+1,m,y,a+1,_,b)}o++;a++}if(u){i.push(St.createFromDiffResult(this.shouldIgnoreTrimWhitespace,u,this.original,this.modified,this._continueProcessingPredicate.bind(this),this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));o+=u.originalLength;a+=u.modifiedLength}}return i};e.prototype._pushTrimWhitespaceCharChange=function(e,t,n,r,i,o,a){if(this._mergeTrimWhitespaceCharChange(e,t,n,r,i,o,a))return;var s=void 0;this.shouldComputeCharChanges&&(s=[new Ct(t,n,t,r,i,o,i,a)]);e.push(new St(t,t,i,i,s))};e.prototype._mergeTrimWhitespaceCharChange=function(e,t,n,r,i,o,a){var s=e.length;if(0===s)return!1;var u=e[s-1];if(0===u.originalEndLineNumber||0===u.modifiedEndLineNumber)return!1;if(u.originalEndLineNumber+1===t&&u.modifiedEndLineNumber+1===i){u.originalEndLineNumber=t;u.modifiedEndLineNumber=i;this.shouldComputeCharChanges&&u.charChanges.push(new Ct(t,n,t,r,i,o,i,a));return!0}return!1};e.prototype._continueProcessingPredicate=function(){if(0===this.maximumRunTimeMs)return!0;var e;return(new Date).getTime()-this.computationStartTime<this.maximumRunTimeMs};return e}();var It=n("mGDB");var xt=function(){function e(e,t){this.index=e;this.remainder=t}return e}();var Nt=function(){function e(e){this.values=e;this.prefixSum=new Uint32Array(e.length);this.prefixSumValidIndex=new Int32Array(1);this.prefixSumValidIndex[0]=-1}e.prototype.getCount=function(){return this.values.length};e.prototype.insertValues=function(e,t){e=Object(It["b"])(e);var n=this.values;var r=this.prefixSum;var i=t.length;if(0===i)return!1;this.values=new Uint32Array(n.length+i);this.values.set(n.subarray(0,e),0);this.values.set(n.subarray(e),e+i);this.values.set(t,e);e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1);this.prefixSum=new Uint32Array(this.values.length);this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1));return!0};e.prototype.changeValue=function(e,t){e=Object(It["b"])(e);t=Object(It["b"])(t);if(this.values[e]===t)return!1;this.values[e]=t;e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1);return!0};e.prototype.removeValues=function(e,t){e=Object(It["b"])(e);t=Object(It["b"])(t);var n=this.values;var r=this.prefixSum;if(e>=n.length)return!1;var i=n.length-e;t>=i&&(t=i);if(0===t)return!1;this.values=new Uint32Array(n.length-t);this.values.set(n.subarray(0,e),0);this.values.set(n.subarray(e+t),e);this.prefixSum=new Uint32Array(this.values.length);e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1);this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(r.subarray(0,this.prefixSumValidIndex[0]+1));return!0};e.prototype.getTotalValue=function(){if(0===this.values.length)return 0;return this._getAccumulatedValue(this.values.length-1)};e.prototype.getAccumulatedValue=function(e){if(e<0)return 0;e=Object(It["b"])(e);return this._getAccumulatedValue(e)};e.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;if(0===t){this.prefixSum[0]=this.values[0];t++}e>=this.values.length&&(e=this.values.length-1);for(var n=t;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e);return this.prefixSum[e]};e.prototype.getIndexOf=function(e){e=Math.floor(e);this.getTotalValue();var t=0;var n=this.values.length-1;var r=0;var i=0;var o=0;for(;t<=n;){r=t+(n-t)/2|0;if(e<(o=(i=this.prefixSum[r])-this.values[r]))n=r-1;else{if(!(e>=i))break;t=r+1}}return new xt(r,e-o)};return e}();var Mt=function(){function e(e){this._cacheAccumulatedValueStart=0;this._cache=null;this._actual=new Nt(e);this._bustCache()}e.prototype._bustCache=function(){this._cacheAccumulatedValueStart=0;this._cache=null};e.prototype.insertValues=function(e,t){this._actual.insertValues(e,t)&&this._bustCache()};e.prototype.changeValue=function(e,t){this._actual.changeValue(e,t)&&this._bustCache()};e.prototype.removeValues=function(e,t){this._actual.removeValues(e,t)&&this._bustCache()};e.prototype.getTotalValue=function(){return this._actual.getTotalValue()};e.prototype.getAccumulatedValue=function(e){return this._actual.getAccumulatedValue(e)};e.prototype.getIndexOf=function(e){e=Math.floor(e);if(null!==this._cache){var t=e-this._cacheAccumulatedValueStart;if(t>=0&&t<this._cache.length)return this._cache[t]}return this._actual.getIndexOf(e)};e.prototype.warmUpCache=function(e,t){var n=[];for(var r=e;r<=t;r++)n[r-e]=this.getIndexOf(r);this._cache=n;this._cacheAccumulatedValueStart=e};return e}();var Dt=function(){function e(e,t,n,r){this._uri=e;this._lines=t;this._eol=n;this._versionId=r;this._lineStarts=null}e.prototype.dispose=function(){this._lines.length=0};e.prototype.getText=function(){return this._lines.join(this._eol)};e.prototype.onEvents=function(e){if(e.eol&&e.eol!==this._eol){this._eol=e.eol;this._lineStarts=null}var t=e.changes;for(var n=0,r=t.length;n<r;n++){var i=t[n];this._acceptDeleteRange(i.range);this._acceptInsertText(new f["a"](i.range.startLineNumber,i.range.startColumn),i.text)}this._versionId=e.versionId};e.prototype._ensureLineStarts=function(){if(!this._lineStarts){var e=this._eol.length;var t=this._lines.length;var n=new Uint32Array(t);for(var r=0;r<t;r++)n[r]=this._lines[r].length+e;this._lineStarts=new Nt(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;this._setLineText(e.startLineNumber-1,this._lines[e.startLineNumber-1].substring(0,e.startColumn-1)+this._lines[e.startLineNumber-1].substring(e.endColumn-1));return}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)return;var n=t.split(/\r\n|\r|\n/);if(1===n.length){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));return}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]);var r=new Uint32Array(n.length-1);for(var i=1;i<n.length;i++){this._lines.splice(e.lineNumber+i-1,0,n[i]);r[i-1]=n[i].length+this._eol.length}this._lineStarts&&this._lineStarts.insertValues(e.lineNumber,r)};return e}();var kt=n("Dg3a");var Ot=n("f0s4");var Et=function(){function e(e){var t=0;var n=0;for(var r=0,i=e.length;r<i;r++){var o=e[r],a=o[0],s=o[1],u=o[2];s>t&&(t=s);a>n&&(n=a);u>n&&(n=u)}t++;n++;var l=new It["a"](n,t,0);for(var r=0,i=e.length;r<i;r++){var c=e[r],a=c[0],s=c[1],u=c[2];l.set(a,s,u)}this._states=l;this._maxCharCode=t}e.prototype.nextState=function(e,t){if(t<0||t>=this._maxCharCode)return 0;return this._states.get(e,t)};return e}();var Tt=null;function At(){null===Tt&&(Tt=new Et([[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]]));return Tt}var Rt=null;function Pt(){if(null===Rt){Rt=new Ot["a"](0);var e=" \t<>'\"、。。、,.:;?!@#$%&*‘“〈《「『【〔([{「」}])〕】』」》〉”’`~…";for(var t=0;t<e.length;t++)Rt.set(e.charCodeAt(t),1);var n=".,;";for(var t=0;t<".,;".length;t++)Rt.set(".,;".charCodeAt(t),2)}return Rt}var jt=function(){function e(){}e._createLink=function(e,t,n,r,i){var o=i-1;do{var a=t.charCodeAt(o);var s;if(2!==e.get(a))break;o--}while(o>r);if(r>0){var u=t.charCodeAt(r-1);var l=t.charCodeAt(o);(40===u&&41===l||91===u&&93===l||123===u&&125===l)&&o--}return{range:{startLineNumber:n,startColumn:r+1,endLineNumber:n,endColumn:o+2},url:t.substring(r,o+1)}};e.computeLinks=function(t){var n=At();var r=Pt();var i=[];for(var o=1,a=t.getLineCount();o<=a;o++){var s=t.getLineContent(o);var u=s.length;var l=0;var c=0;var d=0;var h=1;var f=!1;var p=!1;var g=!1;for(;l<u;){var v=!1;var m=s.charCodeAt(l);if(13===h){var _=void 0;switch(m){case 40:f=!0;_=0;break;case 41:_=f?0:1;break;case 91:p=!0;_=0;break;case 93:_=p?0:1;break;case 123:g=!0;_=0;break;case 125:_=g?0:1;break;case 39:_=34===d||96===d?0:1;break;case 34:_=39===d||96===d?0:1;break;case 96:_=39===d||34===d?0:1;break;default:_=r.get(m)}if(1===_){i.push(e._createLink(r,s,o,c,l));v=!0}}else if(12===h){var _;1===(_=r.get(m))?v=!0:h=13}else 0===(h=n.nextState(h,m))&&(v=!0);if(v){h=1;f=!1;p=!1;g=!1;c=l+1;d=m}l++}13===h&&i.push(e._createLink(r,s,o,c,u))}return i};return e}();function Wt(e){if(!e||"function"!=typeof e.getLineCount||"function"!=typeof e.getLineContent)return[];return jt.computeLinks(e)}var Ft=function(){function e(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}e.prototype.navigateValueSet=function(e,t,n,r,i){if(e&&t){var o;if(o=this.doNavigateValueSet(t,i))return{range:e,value:o}}if(n&&r){var o;if(o=this.doNavigateValueSet(r,i))return{range:n,value:o}}return null};e.prototype.doNavigateValueSet=function(e,t){var n=this.numberReplace(e,t);if(null!==n)return n;return this.textReplace(e,t)};e.prototype.numberReplace=function(e,t){var n=Math.pow(10,e.length-(e.lastIndexOf(".")+1));var r=Number(e);var i=parseFloat(e);if(!isNaN(r)&&!isNaN(i)&&r===i){if(0!==r||t){r=Math.floor(r*n);r+=t?n:-n;return String(r/n)}return null}return null};e.prototype.textReplace=function(e,t){return this.valueSetsReplace(this._defaultValueSet,e,t)};e.prototype.valueSetsReplace=function(e,t,n){var r=null;for(var i=0,o=e.length;null===r&&i<o;i++)r=this.valueSetReplace(e[i],t,n);return r};e.prototype.valueSetReplace=function(e,t,n){var r=e.indexOf(t);if(r>=0){(r+=n?1:-1)<0?r=e.length-1:r%=e.length;return e[r]}return null};e.INSTANCE=new e;return e}();var zt=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Vt=function(e){zt(t,e);function t(){return null!==e&&e.apply(this,arguments)||this}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=Object(kt["d"])(e.column,Object(kt["c"])(t),this._lines[e.lineNumber-1],0);if(n)return new p["a"](e.lineNumber,n.startColumn,e.lineNumber,n.endColumn);return null};t.prototype.getWordUntilPosition=function(e,t){var n=this.getWordAtPosition(e,t);if(!n)return{word:"",startColumn:e.column,endColumn:e.column};return{word:this._lines[e.lineNumber-1].substring(n.startColumn-1,e.column-1),startColumn:n.startColumn,endColumn:e.column}};t.prototype.createWordIterator=function(e){var t=this;var n;var r=0;var i;var o=0;var a=[];var s=function(){if(o<a.length){var u=i.substring(a[o].start,a[o].end);o+=1;n?n.value=u:n={done:!1,value:u};return n}if(r>=t._lines.length)return gt["c"];i=t._lines[r];a=t._wordenize(i,e);o=0;r+=1;return s()};return{next:s}};t.prototype.getLineWords=function(e,t){var n=this._lines[e-1];var r;var i=[];for(var o=0,a=this._wordenize(n,t);o<a.length;o++){var s=a[o];i.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1})}return i};t.prototype._wordenize=function(e,t){var n=[];var r;t.lastIndex=0;for(;(r=t.exec(e))&&0!==r[0].length;)n.push({start:r.index,end:r.index+r[0].length});return n};t.prototype.getValueInRange=function(e){if((e=this._validateRange(e)).startLineNumber===e.endLineNumber)return this._lines[e.startLineNumber-1].substring(e.startColumn-1,e.endColumn-1);var t=this._eol;var n=e.startLineNumber-1;var r=e.endLineNumber-1;var i=[];i.push(this._lines[n].substring(e.startColumn-1));for(var o=n+1;o<r;o++)i.push(this._lines[o]);i.push(this._lines[r].substring(0,e.endColumn-1));return i.join(t)};t.prototype.offsetAt=function(e){e=this._validatePosition(e);this._ensureLineStarts();return 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);var 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});var n=this._validatePosition({lineNumber:e.endLineNumber,column:e.endColumn});if(t.lineNumber!==e.startLineNumber||t.column!==e.startColumn||n.lineNumber!==e.endLineNumber||n.column!==e.endColumn)return{startLineNumber:t.lineNumber,startColumn:t.column,endLineNumber:n.lineNumber,endColumn:n.column};return e};t.prototype._validatePosition=function(e){if(!f["a"].isIPosition(e))throw new Error("bad position");var t=e.lineNumber,n=e.column;var r=!1;if(t<1){t=1;n=1;r=!0}else if(t>this._lines.length){t=this._lines.length;n=this._lines[t-1].length+1;r=!0}else{var i=this._lines[t-1].length+1;if(n<1){n=1;r=!0}else if(n>i){n=i;r=!0}}return r?{lineNumber:t,column:n}:e};return t}(Dt);var Bt;var Ht=function(e){zt(t,e);function t(t){var n=e.call(this,t)||this;n._models=Object.create(null);return n}t.prototype.dispose=function(){this._models=Object.create(null)};t.prototype._getModel=function(e){return this._models[e]};t.prototype._getModels=function(){var e=this;var t=[];Object.keys(this._models).forEach(function(n){return t.push(e._models[n])});return t};t.prototype.acceptNewModel=function(e){this._models[e.url]=new Vt(h["a"].parse(e.url),e.lines,e.EOL,e.versionId)};t.prototype.acceptModelChanged=function(e,t){if(!this._models[e])return;var n;this._models[e].onEvents(t)};t.prototype.acceptRemovedModel=function(e){if(!this._models[e])return;delete this._models[e]};return t}(function(){function e(e){this._foreignModuleFactory=e;this._foreignModule=null}e.prototype.computeDiff=function(e,t,n){var r=this._getModel(e);var i=this._getModel(t);if(!r||!i)return Promise.resolve(null);var o=r.getLinesContent();var a=i.getLinesContent();var s;var u=new Lt(o,a,{shouldComputeCharChanges:!0,shouldPostProcessCharChanges:!0,shouldIgnoreTrimWhitespace:n,shouldMakePrettyDiff:!0}).computeDiff();var l=!(u.length>0)&&this._modelsAreIdentical(r,i);return Promise.resolve({identical:l,changes:u})};e.prototype._modelsAreIdentical=function(e,t){var n=e.getLineCount();var r;if(n!==t.getLineCount())return!1;for(var i=1;i<=n;i++){var o;var a;if(e.getLineContent(i)!==t.getLineContent(i))return!1}return!0};e.prototype.computeMoreMinimalEdits=function(t,n){var r=this._getModel(t);if(!r)return Promise.resolve(n);var i=[];var o=void 0;for(var a=0,s=n=Object(at["g"])(n,function(e,t){if(e.range&&t.range)return p["a"].compareRangesUsingStarts(e.range,t.range);var n;var r;return(e.range?0:1)-(t.range?0:1)});a<s.length;a++){var u=s[a],l=u.range,c=u.text,d=u.eol;"number"==typeof d&&(o=d);if(!l)continue;var h=r.getValueInRange(l);if(h===(c=c.replace(/\r\n|\n|\r/g,r.eol)))continue;if(Math.max(c.length,h.length)>e._diffLimit){i.push({range:l,text:c});continue}var f=lt(h,c,!1);var g=r.offsetAt(p["a"].lift(l).getStartPosition());for(var v=0,m=f;v<m.length;v++){var _=m[v];var y=r.positionAt(g+_.originalStart);var b=r.positionAt(g+_.originalStart+_.originalLength);var C={text:c.substr(_.modifiedStart,_.modifiedLength),range:{startLineNumber:y.lineNumber,startColumn:y.column,endLineNumber:b.lineNumber,endColumn:b.column}};r.getValueInRange(C.range)!==C.text&&i.push(C)}}"number"==typeof o&&i.push({eol:o,text:void 0,range:void 0});return Promise.resolve(i)};e.prototype.computeLinks=function(e){var t=this._getModel(e);if(!t)return Promise.resolve(null);return Promise.resolve(Wt(t))};e.prototype.textualSuggest=function(t,n,r,i){var o=this._getModel(t);if(!o)return Promise.resolve(null);var a=[];var s=new RegExp(r,i);var u=o.getWordUntilPosition(n,s);var l=Object.create(null);l[u.word]=!0;for(var c=o.createWordIterator(s),d=c.next();!d.done&&a.length<=e._suggestionsLimit;d=c.next()){var h=d.value;if(l[h])continue;l[h]=!0;if(!isNaN(Number(h)))continue;a.push({kind:18,label:h,insertText:h,range:{startLineNumber:n.lineNumber,startColumn:u.startColumn,endLineNumber:n.lineNumber,endColumn:u.endColumn}})}return Promise.resolve({suggestions:a})};e.prototype.computeWordRanges=function(e,t,n,r){var i=this._getModel(e);if(!i)return Promise.resolve(Object.create(null));var o=new RegExp(n,r);var a=Object.create(null);for(var s=t.startLineNumber;s<t.endLineNumber;s++){var u;for(var l=0,c=i.getLineWords(s,o);l<c.length;l++){var d=c[l];if(!isNaN(Number(d.word)))continue;var h=a[d.word];if(!h){h=[];a[d.word]=h}h.push({startLineNumber:s,startColumn:d.startColumn,endLineNumber:s,endColumn:d.endColumn})}}return Promise.resolve(a)};e.prototype.navigateValueSet=function(e,t,n,r,i){var o=this._getModel(e);if(!o)return Promise.resolve(null);var a=new RegExp(r,i);t.startColumn===t.endColumn&&(t={startLineNumber:t.startLineNumber,startColumn:t.startColumn,endLineNumber:t.endLineNumber,endColumn:t.endColumn+1});var s=o.getValueInRange(t);var u=o.getWordAtPosition({lineNumber:t.startLineNumber,column:t.startColumn},a);if(!u)return Promise.resolve(null);var l=o.getValueInRange(u);var c=Ft.INSTANCE.navigateValueSet(t,s,u,l,n);return Promise.resolve(c)};e.prototype.loadForeignModule=function(e,t){var n=this;var r={getMirrorModels:function(){return n._getModels()}};if(this._foreignModuleFactory){this._foreignModule=this._foreignModuleFactory(r,t);var i=[];for(var o in this._foreignModule)"function"==typeof this._foreignModule[o]&&i.push(o);return Promise.resolve(i)}return Promise.reject(new Error("Unexpected usage"))};e.prototype.fmr=function(e,t){if(!this._foreignModule||"function"!=typeof this._foreignModule[e])return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,t))}catch(e){return Promise.reject(e)}};e._diffLimit=1e4;e._suggestionsLimit=1e4;return e}());function Ut(){return new Ht(null)}"function"==typeof importScripts&&(i["b"].monaco=Z());var Zt=n("Mk1O");var Gt=Object(ce["c"])("textResourceConfigurationService");var Yt=Object(ce["c"])("textResourcePropertiesService");var Kt=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Qt=function(e,t,n,r){var i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};var qt=function(e,t){return function(n,r){t(n,r,e)}};var Jt=6e4;var Xt=3e5;function $t(e,t){var n=e.getModel(t);if(!n)return!1;if(n.isTooLargeForSyncing())return!1;return!0}var en=function(e){Kt(t,e);function t(t,n){var r=e.call(this)||this;r._modelService=t;r._workerManager=r._register(new nn(r._modelService));r._register(Ve["o"].register("*",{provideLinks:function(e,t){if(!$t(r._modelService,e.uri))return Promise.resolve([]);return r._workerManager.withWorker().then(function(t){return t.computeLinks(e.uri)})}}));r._register(Ve["d"].register("*",new tn(r._workerManager,n,r._modelService)));return r}t.prototype.dispose=function(){e.prototype.dispose.call(this)};t.prototype.canComputeDiff=function(e,t){return $t(this._modelService,e)&&$t(this._modelService,t)};t.prototype.computeDiff=function(e,t,n){return this._workerManager.withWorker().then(function(r){return r.computeDiff(e,t,n)})};t.prototype.computeMoreMinimalEdits=function(e,t){if(Array.isArray(t)&&0!==t.length){if(!$t(this._modelService,e))return Promise.resolve(t);return this._workerManager.withWorker().then(function(n){return n.computeMoreMinimalEdits(e,t)})}return Promise.resolve(t)};t.prototype.canNavigateValueSet=function(e){return $t(this._modelService,e)};t.prototype.navigateValueSet=function(e,t,n){return this._workerManager.withWorker().then(function(r){return r.navigateValueSet(e,t,n)})};t.prototype.canComputeWordRanges=function(e){return $t(this._modelService,e)};t.prototype.computeWordRanges=function(e,t){return this._workerManager.withWorker().then(function(n){return n.computeWordRanges(e,t)})};return t=Qt([qt(0,Zt["a"]),qt(1,Gt)],t)}(me["a"]);var tn=function(){function e(e,t,n){this._workerManager=e;this._configurationService=t;this._modelService=n}e.prototype.provideCompletionItems=function(e,t){var n;if(!this._configurationService.getValue(e.uri,t,"editor").wordBasedSuggestions)return;if(!$t(this._modelService,e.uri))return;return this._workerManager.withWorker().then(function(n){return n.textualSuggest(e.uri,t)})};return e}();var nn=function(e){Kt(t,e);function t(t){var n=e.call(this)||this;n._modelService=t;n._editorWorkerClient=null;var r;n._register(new o["b"]).cancelAndSet(function(){return n._checkStopIdleWorker()},Math.round(Xt/2));n._register(n._modelService.onModelRemoved(function(e){return n._checkStopEmptyWorker()}));return n}t.prototype.dispose=function(){if(this._editorWorkerClient){this._editorWorkerClient.dispose();this._editorWorkerClient=null}e.prototype.dispose.call(this)};t.prototype._checkStopEmptyWorker=function(){if(!this._editorWorkerClient)return;var e;if(0===this._modelService.getModels().length){this._editorWorkerClient.dispose();this._editorWorkerClient=null}};t.prototype._checkStopIdleWorker=function(){if(!this._editorWorkerClient)return;var e;if((new Date).getTime()-this._lastWorkerUsedTime>Xt){this._editorWorkerClient.dispose();this._editorWorkerClient=null}};t.prototype.withWorker=function(){this._lastWorkerUsedTime=(new Date).getTime();this._editorWorkerClient||(this._editorWorkerClient=new an(this._modelService,"editorWorkerService"));return Promise.resolve(this._editorWorkerClient)};return t}(me["a"]);var rn=function(e){Kt(t,e);function t(t,n,r){var i=e.call(this)||this;i._syncedModels=Object.create(null);i._syncedModelsLastUsedTime=Object.create(null);i._proxy=t;i._modelService=n;if(!r){var a=new o["b"];a.cancelAndSet(function(){return i._checkStopModelSync()},Math.round(Jt/2));i._register(a)}return i}t.prototype.dispose=function(){for(var t in this._syncedModels)Object(me["d"])(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;t<e.length;t++){var n=e[t];var r=n.toString();this._syncedModels[r]||this._beginModelSync(n);this._syncedModels[r]&&(this._syncedModelsLastUsedTime[r]=(new Date).getTime())}};t.prototype._checkStopModelSync=function(){var e=(new Date).getTime();var t=[];for(var n in this._syncedModelsLastUsedTime){var r;e-this._syncedModelsLastUsedTime[n]>Jt&&t.push(n)}for(var i=0;i<t.length;i++)this._stopModelSync(t[i])};t.prototype._beginModelSync=function(e){var t=this;var n=this._modelService.getModel(e);if(!n)return;if(n.isTooLargeForSyncing())return;var r=e.toString();this._proxy.acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});var i=[];i.push(n.onDidChangeContent(function(e){t._proxy.acceptModelChanged(r.toString(),e)}));i.push(n.onWillDispose(function(){t._stopModelSync(r)}));i.push(Object(me["e"])(function(){t._proxy.acceptRemovedModel(r)}));this._syncedModels[r]=i};t.prototype._stopModelSync=function(e){var t=this._syncedModels[e];delete this._syncedModels[e];delete this._syncedModelsLastUsedTime[e];Object(me["d"])(t)};return t}(me["a"]);var on=function(){function e(e){this._instance=e;this._proxyObj=Promise.resolve(this._instance)}e.prototype.dispose=function(){this._instance.dispose()};e.prototype.getProxyObject=function(){return this._proxyObj};return e}();var an=function(e){Kt(t,e);function t(t,n){var r=e.call(this)||this;r._modelService=t;r._workerFactory=new it(n);r._worker=null;r._modelManager=null;return r}t.prototype._getOrCreateWorker=function(){if(!this._worker)try{this._worker=this._register(new $e(this._workerFactory,"vs/editor/common/services/editorSimpleWorker"))}catch(e){Je(e);this._worker=new on(new Ht(null))}return this._worker};t.prototype._getProxy=function(){var e=this;return this._getOrCreateWorker().getProxyObject().then(null,function(t){Je(t);e._worker=new on(new Ht(null));return e._getOrCreateWorker().getProxyObject()})};t.prototype._getOrCreateModelManager=function(e){this._modelManager||(this._modelManager=this._register(new rn(e,this._modelService,!1)));return this._modelManager};t.prototype._withSyncedResources=function(e){var t=this;return this._getProxy().then(function(n){t._getOrCreateModelManager(n).esureSyncedResources(e);return n})};t.prototype.computeDiff=function(e,t,n){return this._withSyncedResources([e,t]).then(function(r){return r.computeDiff(e.toString(),t.toString(),n)})};t.prototype.computeMoreMinimalEdits=function(e,t){return this._withSyncedResources([e]).then(function(n){return n.computeMoreMinimalEdits(e.toString(),t)})};t.prototype.computeLinks=function(e){return this._withSyncedResources([e]).then(function(t){return t.computeLinks(e.toString())})};t.prototype.textualSuggest=function(e,t){var n=this;return this._withSyncedResources([e]).then(function(r){var i=n._modelService.getModel(e);if(!i)return null;var o=ot["a"].getWordDefinition(i.getLanguageIdentifier().id);var a=o.source;var s=(o.global?"g":"")+(o.ignoreCase?"i":"")+(o.multiline?"m":"");return r.textualSuggest(e.toString(),t,a,s)})};t.prototype.computeWordRanges=function(e,t){var n=this;return this._withSyncedResources([e]).then(function(r){var i=n._modelService.getModel(e);if(!i)return Promise.resolve(null);var o=ot["a"].getWordDefinition(i.getLanguageIdentifier().id);var a=o.source;var s=(o.global?"g":"")+(o.ignoreCase?"i":"")+(o.multiline?"m":"");return r.computeWordRanges(e.toString(),t,a,s)})};t.prototype.navigateValueSet=function(e,t,n){var r=this;return this._withSyncedResources([e]).then(function(i){var o=r._modelService.getModel(e);if(!o)return null;var a=ot["a"].getWordDefinition(o.getLanguageIdentifier().id);var s=a.source;var u=(a.global?"g":"")+(a.ignoreCase?"i":"")+(a.multiline?"m":"");return i.navigateValueSet(e.toString(),t,n,s,u)})};return t}(me["a"]);var sn=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function un(e,t){return new ln(e,t)}var ln=function(e){sn(t,e);function t(t,n){var r=e.call(this,t,n.label)||this;r._foreignModuleId=n.moduleId;r._foreignModuleCreateData=n.createData||null;r._foreignProxy=null;return r}t.prototype._getForeignProxy=function(){var e=this;this._foreignProxy||(this._foreignProxy=this._getProxy().then(function(t){return t.loadForeignModule(e._foreignModuleId,e._foreignModuleCreateData).then(function(n){e._foreignModuleCreateData=null;var r=function(e,n){return t.fmr(e,n)};var i=function(e,t){return function(){var n=Array.prototype.slice.call(arguments,0);return t(e,n)}};var o={};for(var a=0;a<n.length;a++)o[n[a]]=i(n[a],r);return o})}));return this._foreignProxy};t.prototype.getProxy=function(){return this._getForeignProxy()};t.prototype.withSyncedResources=function(e){var t=this;return this._withSyncedResources(e).then(function(e){return t.getProxy()})};return t}(an);var cn=n("RhT1");var dn;dn="undefined"!=typeof TextDecoder?function(e){return new hn(e)}:function(e){return new fn};var hn=function(){function e(e){this._decoder=new TextDecoder("UTF-16LE");this._capacity=0|e;this._buffer=new Uint16Array(this._capacity);this._completedStrings=null;this._bufferLength=0}e.prototype.reset=function(){this._completedStrings=null;this._bufferLength=0};e.prototype.build=function(){if(null!==this._completedStrings){this._flushBuffer();return this._completedStrings.join("")}return this._buildBuffer()};e.prototype._buildBuffer=function(){if(0===this._bufferLength)return"";var e=new Uint16Array(this._buffer.buffer,0,this._bufferLength);return this._decoder.decode(e)};e.prototype._flushBuffer=function(){var e=this._buildBuffer();this._bufferLength=0;null===this._completedStrings?this._completedStrings=[e]:this._completedStrings[this._completedStrings.length]=e};e.prototype.write1=function(e){var t=this._capacity-this._bufferLength;t<=1&&(0===t||$["s"](e))&&this._flushBuffer();this._buffer[this._bufferLength++]=e};e.prototype.appendASCII=function(e){this._bufferLength===this._capacity&&this._flushBuffer();this._buffer[this._bufferLength++]=e};e.prototype.appendASCIIString=function(e){var t=e.length;if(this._bufferLength+t>=this._capacity){this._flushBuffer();this._completedStrings[this._completedStrings.length]=e;return}for(var n=0;n<t;n++)this._buffer[this._bufferLength++]=e.charCodeAt(n)};return e}();var fn=function(){function e(){this._pieces=[];this._piecesLen=0}e.prototype.reset=function(){this._pieces=[];this._piecesLen=0};e.prototype.build=function(){return this._pieces.join("")};e.prototype.write1=function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)};e.prototype.appendASCII=function(e){this._pieces[this._piecesLen++]=String.fromCharCode(e)};e.prototype.appendASCIIString=function(e){this._pieces[this._piecesLen++]=e};return e}();var pn=function(){function e(e,t,n,r){this.startColumn=e;this.endColumn=t;this.className=n;this.type=r}e._equals=function(e,t){return e.startColumn===t.startColumn&&e.endColumn===t.endColumn&&e.className===t.className&&e.type===t.type};e.equalsArr=function(t,n){var r=t.length;var i;if(r!==n.length)return!1;for(var o=0;o<r;o++)if(!e._equals(t[o],n[o]))return!1;return!0};e.filter=function(t,n,r,i){if(0===t.length)return[];var o=[],a=0;for(var s=0,u=t.length;s<u;s++){var l=t[s];var c=l.range;if(c.endLineNumber<n||c.startLineNumber>n)continue;if(c.isEmpty()&&(0===l.type||3===l.type))continue;var d=c.startLineNumber===n?c.startColumn:r;var h=c.endLineNumber===n?c.endColumn:i;o[a++]=new e(d,h,l.inlineClassName,l.type)}return o};e.compare=function(e,t){if(e.startColumn===t.startColumn){if(e.endColumn===t.endColumn){if(e.className<t.className)return-1;if(e.className>t.className)return 1;return 0}return e.endColumn-t.endColumn}return e.startColumn-t.startColumn};return e}();var gn=function(){function e(e,t,n){this.startOffset=e;this.endOffset=t;this.className=n}return e}();var vn=function(){function e(){this.stopOffsets=[];this.classNames=[];this.count=0}e.prototype.consumeLowerThan=function(e,t,n){for(;this.count>0&&this.stopOffsets[0]<e;){var r=0;for(;r+1<this.count&&this.stopOffsets[r]===this.stopOffsets[r+1];)r++;n.push(new gn(t,this.stopOffsets[r],this.classNames.join(" ")));t=this.stopOffsets[r]+1;this.stopOffsets.splice(0,r+1);this.classNames.splice(0,r+1);this.count-=r+1}if(this.count>0&&t<e){n.push(new gn(t,e-1,this.classNames.join(" ")));t=e}return t};e.prototype.insert=function(e,t){if(0===this.count||this.stopOffsets[this.count-1]<=e){this.stopOffsets.push(e);this.classNames.push(t)}else for(var n=0;n<this.count;n++)if(this.stopOffsets[n]>=e){this.stopOffsets.splice(n,0,e);this.classNames.splice(n,0,t);break}this.count++;return};return e}();var mn=function(){function e(){}e.normalize=function(e,t){if(0===t.length)return[];var n=[];var r=new vn;var i=0;for(var o=0,a=t.length;o<a;o++){var s=t[o];var u=s.startColumn;var l=s.endColumn;var c=s.className;if(u>1){var d=e.charCodeAt(u-2);$["s"](d)&&u--}if(l>1){var d=e.charCodeAt(l-2);$["s"](d)&&l--}var h=u-1;var f=l-2;i=r.consumeLowerThan(h,i,n);0===r.count&&(i=h);r.insert(f,c)}r.consumeLowerThan(1073741824,i,n);return n};return e}();var _n=function(){function e(e,t){this.endIndex=e;this.type=t}return e}();var yn=function(){function e(e,t,n,r,i,o,a,s,u,l,c,d,h,f,p){this.useMonospaceOptimizations=e;this.canUseHalfwidthRightwardsArrow=t;this.lineContent=n;this.continuesWithWrappedLine=r;this.isBasicASCII=i;this.containsRTL=o;this.fauxIndentLength=a;this.lineTokens=s;this.lineDecorations=u;this.tabSize=l;this.spaceWidth=c;this.stopRenderingLineAfter=d;this.renderWhitespace="all"===h?2:"boundary"===h?1:0;this.renderControlCharacters=f;this.fontLigatures=p}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&&pn.equalsArr(this.lineDecorations,e.lineDecorations)&&this.lineTokens.equals(e.lineTokens)};return e}();var bn=function(){function e(e,t){this.length=e;this._data=new Uint32Array(this.length);this._absoluteOffsets=new Uint32Array(this.length)}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){if(0===this.length)return 0;if(e<0)return this._data[0];if(e>=this.length)return this._data[this.length-1];return this._data[e]};e.prototype.partDataToCharOffset=function(t,n,r){if(0===this.length)return 0;var i=(t<<16|r<<0)>>>0;var o=0;var a=this.length-1;for(;o+1<a;){var s=o+a>>>1;var u=this._data[s];if(u===i)return s;u>i?a=s:o=s}if(o===a)return o;var l=this._data[o];var c=this._data[a];if(l===i)return o;if(c===i)return a;var d=e.getPartIndex(l);var h;var f;var p;var g;var v;if(r-e.getCharIndex(l)<=(p=d!==e.getPartIndex(c)?n:e.getCharIndex(c))-r)return o;return a};return e}();var Cn=function(){function e(e,t,n){this.characterMapping=e;this.containsRTL=t;this.containsForeignElements=n}return e}();function wn(e,t){if(0===e.lineContent.length){var n=0;var r="<span><span> </span></span>";if(e.lineDecorations.length>0){var i=[];for(var o=0,a=e.lineDecorations.length;o<a;o++){var s=e.lineDecorations[o];if(1===s.type){i.push(e.lineDecorations[o].className);n|=1}if(2===s.type){i.push(e.lineDecorations[o].className);n|=2}}0!==n&&(r='<span><span class="'+i.join(" ")+'"></span></span>')}t.appendASCIIString(r);return new Cn(new bn(0,0),!1,n)}return On(xn(e),t)}var Sn=function(){function e(e,t,n,r){this.characterMapping=e;this.html=t;this.containsRTL=n;this.containsForeignElements=r}return e}();function Ln(e){var t=dn(1e4);var n=wn(e,t);return new Sn(n.characterMapping,t.build(),n.containsRTL,n.containsForeignElements)}var In=function(){function e(e,t,n,r,i,o,a,s,u,l,c,d){this.fontIsMonospace=e;this.canUseHalfwidthRightwardsArrow=t;this.lineContent=n;this.len=r;this.isOverflowing=i;this.parts=o;this.containsForeignElements=a;this.tabSize=s;this.containsRTL=u;this.spaceWidth=l;this.renderWhitespace=c;this.renderControlCharacters=d}return e}();function xn(e){var t=e.useMonospaceOptimizations;var n=e.lineContent;var r;var i;if(-1!==e.stopRenderingLineAfter&&e.stopRenderingLineAfter<n.length){r=!0;i=e.stopRenderingLineAfter}else{r=!1;i=n.length}var o=Nn(e.lineTokens,e.fauxIndentLength,i);2!==e.renderWhitespace&&1!==e.renderWhitespace||(o=Dn(n,i,e.continuesWithWrappedLine,o,e.fauxIndentLength,e.tabSize,t,1===e.renderWhitespace));var a=0;if(e.lineDecorations.length>0){for(var s=0,u=e.lineDecorations.length;s<u;s++){var l=e.lineDecorations[s];3===l.type?a|=1:1===l.type?a|=1:2===l.type&&(a|=2)}o=kn(n,i,o,e.lineDecorations)}e.containsRTL||(o=Mn(n,o,!e.isBasicASCII||e.fontLigatures));return new In(t,e.canUseHalfwidthRightwardsArrow,n,i,r,o,a,e.tabSize,e.containsRTL,e.spaceWidth,e.renderWhitespace,e.renderControlCharacters)}function Nn(e,t,n){var r=[],i=0;t>0&&(r[i++]=new _n(t,""));for(var o=0,a=e.getCount();o<a;o++){var s=e.getEndOffset(o);if(s<=t)continue;var u=e.getClassName(o);if(s>=n){r[i++]=new _n(n,u);break}r[i++]=new _n(s,u)}return r}function Mn(e,t,n){var r=0;var i=[],o=0;if(n)for(var a=0,s=t.length;a<s;a++){var u;var l;if(r+50<(l=(u=t[a]).endIndex)){var c=u.type;var d=-1;var h=r;for(var f=r;f<l;f++){32===e.charCodeAt(f)&&(d=f);if(-1!==d&&f-h>=50){i[o++]=new _n(d+1,c);h=d+1;d=-1}}h!==l&&(i[o++]=new _n(l,c))}else i[o++]=u;r=l}else for(var a=0,s=t.length;a<s;a++){var u;var l;var p=(l=(u=t[a]).endIndex)-r;if(p>50){var c=u.type;var g=Math.ceil(p/50);for(var f=1;f<g;f++){var v=r+50*f;i[o++]=new _n(v,c)}i[o++]=new _n(l,c)}else i[o++]=u;r=l}return i}function Dn(e,t,n,r,i,o,a,s){var u=[],l=0;var c=0;var d=r[c].type;var h=r[c].endIndex;var f=r.length;var p=$["m"](e);var g;if(-1===p){p=t;g=t}else g=$["w"](e);var v=0;for(var m=0;m<i;m++){var _;9===(_=e.charCodeAt(m))?v=o:$["r"](_)?v+=2:v++}v%=o;var y=!1;for(var m=i;m<t;m++){var _=e.charCodeAt(m);var b=void 0;if(m<p||m>g)b=!0;else if(9===_)b=!0;else if(32===_)if(s)if(y)b=!0;else{var C=m+1<t?e.charCodeAt(m+1):0;b=32===C||9===C}else b=!0;else b=!1;if(y){if(!b||!a&&v>=o){u[l++]=new _n(m,"vs-whitespace");v%=o}}else if(m===h||b&&m>i){u[l++]=new _n(m,d);v%=o}9===_?v=o:$["r"](_)?v+=2:v++;y=b;if(m===h&&++c<f){d=r[c].type;h=r[c].endIndex}}var w=!1;if(y)if(n&&s){var S=t>0?e.charCodeAt(t-1):0;var L=t>1?e.charCodeAt(t-2):0;var I;32===S&&32!==L&&9!==L||(w=!0)}else w=!0;u[l++]=new _n(t,w?"vs-whitespace":d);return u}function kn(e,t,n,r){r.sort(pn.compare);var i=mn.normalize(e,r);var o=i.length;var a=0;var s=[],u=0,l=0;for(var c=0,d=n.length;c<d;c++){var h=n[c];var f=h.endIndex;var p=h.type;for(;a<o&&i[a].startOffset<f;){var g=i[a];if(g.startOffset>l){l=g.startOffset;s[u++]=new _n(l,p)}if(!(g.endOffset+1<=f)){l=f;s[u++]=new _n(l,p+" "+g.className);break}l=g.endOffset+1;s[u++]=new _n(l,p+" "+g.className);a++}if(f>l){l=f;s[u++]=new _n(l,p)}}var v=n[n.length-1].endIndex;if(a<o&&i[a].startOffset===v){var m=[];for(;a<o&&i[a].startOffset===v;){m.push(i[a].className);a++}s[u++]=new _n(l,m.join(" "))}return s}function On(e,t){var n=e.fontIsMonospace;var r=e.canUseHalfwidthRightwardsArrow;var i=e.containsForeignElements;var o=e.lineContent;var a=e.len;var s=e.isOverflowing;var u=e.parts;var l=e.tabSize;var c=e.containsRTL;var d=e.spaceWidth;var h=e.renderWhitespace;var f=e.renderControlCharacters;var p=new bn(a+1,u.length);var g=0;var v=0;var m=0;var _=0;var y=0;t.appendASCIIString("<span>");for(var b=0,C=u.length;b<C;b++){y+=_;var w=u[b];var S=w.endIndex;var L=w.type;var I=0!==h&&L.indexOf("vs-whitespace")>=0;m=0;t.appendASCIIString('<span class="');t.appendASCIIString(L);t.appendASCII(34);if(I){var x=0;var N=g;var M=v;for(;N<S;N++){var D;if(9===(D=o.charCodeAt(N))){var k;M+=(k=l-(N+M)%l)-1;x+=k}else x++}if(!n){var O;if("vs-whitespace"===L||!i){t.appendASCIIString(' style="width:');t.appendASCIIString(String(d*x));t.appendASCIIString('px"')}}t.appendASCII(62);for(;g<S;g++){p.setPartData(g,b,m,y);var D;if(9===(D=o.charCodeAt(g))){var k;v+=(k=l-(g+v)%l)-1;m+=k-1;if(k>0){!r||k>1?t.write1(8594):t.write1(65515);k--}for(;k>0;){t.write1(160);k--}}else t.write1(183);m++}_=x}else{var x=0;c&&t.appendASCIIString(' dir="ltr"');t.appendASCII(62);for(;g<S;g++){p.setPartData(g,b,m,y);var D;switch(D=o.charCodeAt(g)){case 9:var k;v+=(k=l-(g+v)%l)-1;m+=k-1;for(;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:$["r"](D)&&v++;if(f&&D<32){t.write1(9216+D);x++}else{t.write1(D);x++}}m++}_=x}t.appendASCIIString("</span>")}p.setPartData(a,u.length-1,m,y);s&&t.appendASCIIString("<span>…</span>");t.appendASCIIString("</span>");return new Cn(p,c,i)}var En=function(){function e(e,t,n,r){this.top=0|e;this.left=0|t;this.width=0|n;this.height=0|r}return e}();var Tn=function(){function e(e,t){this.tabSize=e;this.data=t}return e}();var An=function(){function e(e,t,n,r,i){this.content=e;this.continuesWithWrappedLine=t;this.minColumn=n;this.maxColumn=r;this.tokens=i}return e}();var Rn=function(){function e(t,n,r,i,o,a,s,u,l){this.minColumn=t;this.maxColumn=n;this.content=r;this.continuesWithWrappedLine=i;this.isBasicASCII=e.isBasicASCII(r,a);this.containsRTL=e.containsRTL(r,this.isBasicASCII,o);this.tokens=s;this.inlineDecorations=u;this.tabSize=l}e.isBasicASCII=function(e,t){if(t)return $["p"](e);return!0};e.containsRTL=function(e,t,n){if(!t&&n)return $["f"](e);return!1};return e}();var Pn=function(){function e(e,t,n){this.range=e;this.inlineClassName=t;this.type=n}return e}();var jn=function(){function e(e,t){this.range=e;this.options=t}return e}();var Wn=function(){function e(){}e.colorizeElement=function(e,t,n,r){var i=(r=r||{}).theme||"vs";var o=r.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(!o){console.error("Mode not detected");return Promise.resolve()}e.setTheme(i);var a=n.firstChild?n.firstChild.nodeValue:"";n.className+=" "+i;var s=function(e){n.innerHTML=e};return this.colorize(t,a||"",o,r).then(s,function(e){return console.error(e)})};e.colorize=function(e,t,n,r){var i=4;r&&"number"==typeof r.tabSize&&(i=r.tabSize);$["C"](t)&&(t=t.substr(1));var a=t.split(/\r\n|\r|\n/);var s=e.getModeId(n);if(!s)return Promise.resolve(zn(a,i));e.triggerMode(s);var u=Ve["u"].get(s);if(u)return Promise.resolve(Fn(a,i,u));return new Promise(function(e,t){var n=null;var r=null;var u=function(){if(n){n.dispose();n=null}if(r){r.dispose();r=null}var t=Ve["u"].get(s);if(t)return e(Fn(a,i,t));return e(zn(a,i))};(r=new o["d"]).cancelAndSet(u,500);n=Ve["u"].onDidChange(function(e){e.changedLanguages.indexOf(s)>=0&&u()})})};e.colorizeLine=function(e,t,n,r,i){void 0===i&&(i=4);var o=Rn.isBasicASCII(e,t);var a=Rn.containsRTL(e,o,n);var s;return Ln(new yn(!1,!0,e,!1,o,a,0,r,[],i,0,-1,"none",!1,!1)).html};e.colorizeModelLine=function(e,t,n){void 0===n&&(n=4);var r=e.getLineContent(t);e.forceTokenization(t);var i;var o=e.getLineTokens(t).inflate();return this.colorizeLine(r,e.mightContainNonBasicASCII(),e.mightContainRTL(),o,n)};return e}();function Fn(e,t,n){return Vn(e,t,n)}function zn(e,t){var n=[];var r=16793600;var i=new Uint32Array(2);i[0]=0;i[1]=16793600;for(var o=0,a=e.length;o<a;o++){var s=e[o];i[0]=s.length;var u=new cn["a"](i,s);var l=Rn.isBasicASCII(s,!0);var c=Rn.containsRTL(s,l,!0);var d=Ln(new yn(!1,!0,s,!1,l,c,0,u,[],t,0,-1,"none",!1,!1));(n=n.concat(d.html)).push("<br/>")}return n.join("")}function Vn(e,t,n){var r=[];var i=n.getInitialState();for(var o=0,a=e.length;o<a;o++){var s=e[o];var u=n.tokenize2(s,i,0);cn["a"].convertToEndOffset(u.tokens,s.length);var l=new cn["a"](u.tokens,s);var c=Rn.isBasicASCII(s,!0);var d=Rn.containsRTL(s,c,!0);var h=Ln(new yn(!1,!0,s,!1,c,d,0,l.inflate(),[],t,0,-1,"none",!1,!1));(r=r.concat(h.html)).push("<br/>");i=u.endState}return r.join("")}var Bn=n("ITjR");var Hn=n("RBaS");var Un;!function(e){e[e["Ignore"]=0]="Ignore";e[e["Info"]=1]="Info";e[e["Warning"]=2]="Warning";e[e["Error"]=3]="Error"}(Un||(Un={}));!function(e){var t="error";var n="warning";var r="warn";var i="info";var o=Object.create(null);o[e.Error]=Bn["a"]("sev.error","Error");o[e.Warning]=Bn["a"]("sev.warning","Warning");o[e.Info]=Bn["a"]("sev.info","Info");function a(o){if(!o)return e.Ignore;if($["j"](t,o))return e.Error;if($["j"](n,o)||$["j"](r,o))return e.Warning;if($["j"](i,o))return e.Info;return e.Ignore}e.fromValue=a}(Un||(Un={}));var Zn=Un;function Gn(e){return!(!e||"function"!=typeof e.getEditorType)&&e.getEditorType()===We.ICodeEditor}var Yn=n("Yn0l");var Kn=n("GDdU");var Qn="base.contributions.json";function qn(e){if(e.length>0&&"#"===e.charAt(e.length-1))return e.substring(0,e.length-1);return e}var Jn;var Xn=new(function(){function e(){this._onDidChangeSchema=new c["a"];this.schemasById={}}e.prototype.registerSchema=function(e,t){this.schemasById[qn(e)]=t;this._onDidChangeSchema.fire(e)};return e}());Yn["a"].add(Qn,Xn);var $n={Configuration:"base.contributions.configuration"};var er={properties:{},patternProperties:{}};var tr={properties:{},patternProperties:{}};var nr={properties:{},patternProperties:{}};var rr={properties:{},patternProperties:{}};var ir="vscode://schemas/settings/editor";var or=Yn["a"].as(Qn);var ar=function(){function e(){this.overrideIdentifiers=[];this._onDidSchemaChange=new c["a"];this._onDidRegisterConfiguration=new c["a"];this.configurationContributors=[];this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting"};this.configurationProperties={};this.excludedConfigurationProperties={};this.computeOverridePropertyPattern();or.registerSchema(ir,this.editorConfigurationSchema)}e.prototype.registerConfiguration=function(e,t){void 0===t&&(t=!0);this.registerConfigurations([e],[],t)};e.prototype.registerConfigurations=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=this.toConfiguration(t);i&&e.push(i);var o=[];e.forEach(function(e){o.push.apply(o,r.validateAndRegisterProperties(e,n));r.configurationContributors.push(e);r.registerJSONConfiguration(e);r.updateSchemaForOverrideSettingsConfiguration(e)});this._onDidRegisterConfiguration.fire(o)};e.prototype.registerOverrideIdentifiers=function(e){var t;(t=this.overrideIdentifiers).push.apply(t,e);this.updateOverridePropertyPatternKey()};e.prototype.toConfiguration=function(e){var t={id:"defaultOverrides",title:Bn["a"]("defaultConfigurations.title","Default Configuration Overrides"),properties:{}};for(var n=0,r=e;n<r.length;n++){var i=r[n];for(var o in i.defaults){var a=i.defaults[o];cr.test(o)&&"object"==typeof a&&(t.properties[o]={type:"object",default:a,description:Bn["a"]("overrideSettings.description","Configure editor settings to be overridden for {0} language.",o),$ref:ir})}}return Object.keys(t.properties).length?t:null};e.prototype.validateAndRegisterProperties=function(e,t,n,r){void 0===t&&(t=!0);void 0===n&&(n=2);void 0===r&&(r=!1);n=Kn["j"](e.scope)?n:e.scope;r=e.overridable||r;var i=[];var o=e.properties;if(o)for(var a in o){var s=void 0;if(t&&(s=fr(a))){console.warn(s);delete o[a];continue}var u=o[a];var l=u.default;Kn["i"](l)&&(u.default=dr(u.type));r&&(u.overridable=!0);cr.test(a)?u.scope=void 0:u.scope=Kn["j"](u.scope)?n:u.scope;if(o[a].hasOwnProperty("included")&&!o[a].included){this.excludedConfigurationProperties[a]=o[a];delete o[a];continue}this.configurationProperties[a]=o[a];i.push(a)}var c=e.allOf;if(c)for(var d=0,h=c;d<h.length;d++){var f=h[d];i.push.apply(i,this.validateAndRegisterProperties(f,t,n,r))}return i};e.prototype.getConfigurationProperties=function(){return this.configurationProperties};e.prototype.registerJSONConfiguration=function(e){function t(e){var n=e.properties;if(n)for(var r in n){er.properties[r]=n[r];switch(n[r].scope){case 1:tr.properties[r]=n[r];break;case 2:nr.properties[r]=n[r];break;case 3:rr.properties[r]=n[r]}}var i=e.allOf;i&&i.forEach(t)}t(e);this._onDidSchemaChange.fire()};e.prototype.updateSchemaForOverrideSettingsConfiguration=function(e){if(e.id!==sr){this.update(e);or.registerSchema(ir,this.editorConfigurationSchema)}};e.prototype.updateOverridePropertyPatternKey=function(){var e=er.patternProperties[this.overridePropertyPattern];e||(e={type:"object",description:Bn["a"]("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:"Unknown Identifier. Use language identifiers",$ref:ir});delete er.patternProperties[this.overridePropertyPattern];delete tr.patternProperties[this.overridePropertyPattern];delete nr.patternProperties[this.overridePropertyPattern];delete rr.patternProperties[this.overridePropertyPattern];this.computeOverridePropertyPattern();er.patternProperties[this.overridePropertyPattern]=e;tr.patternProperties[this.overridePropertyPattern]=e;nr.patternProperties[this.overridePropertyPattern]=e;rr.patternProperties[this.overridePropertyPattern]=e;this._onDidSchemaChange.fire()};e.prototype.update=function(e){var t=this;var n=e.properties;if(n)for(var r in n)n[r].overridable&&(this.editorConfigurationSchema.properties[r]=this.getConfigurationProperties()[r]);var i=e.allOf;i&&i.forEach(function(e){return t.update(e)})};e.prototype.computeOverridePropertyPattern=function(){this.overridePropertyPattern=this.overrideIdentifiers.length?lr.replace("${0}",this.overrideIdentifiers.map(function(e){return $["g"](e,!1).source}).join("|")):ur};return e}();var sr="override";var ur="\\[.*\\]$";var lr="\\[(${0})\\]$";var cr=new RegExp(ur);function dr(e){var t;switch(Array.isArray(e)?e[0]:e){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}var hr=new ar;Yn["a"].add($n.Configuration,hr);function fr(e){if(cr.test(e))return Bn["a"]("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",e);if(void 0!==hr.getConfigurationProperties()[e])return Bn["a"]("config.property.duplicate","Cannot register '{0}'. This property is already registered.",e);return null}var pr=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var gr=u["a"];var vr=u["b"];var mr=u["c"];var _r=new(function(){function e(){this._tabFocus=!1;this._onDidChangeTabFocus=new c["a"];this.onDidChangeTabFocus=this._onDidChangeTabFocus.event}e.prototype.getTabFocusMode=function(){return this._tabFocus};e.prototype.setTabFocusMode=function(e){if(this._tabFocus===e)return;this._tabFocus=e;this._onDidChangeTabFocus.fire(this._tabFocus)};return e}());var yr=Object.hasOwnProperty;var br=function(e){pr(t,e);function t(t){var n=e.call(this)||this;n._onDidChange=n._register(new c["a"]);n.onDidChange=n._onDidChange.event;n._rawOptions=_e["e"]({},t||{});n._rawOptions.scrollbar=_e["e"]({},n._rawOptions.scrollbar||{});n._rawOptions.minimap=_e["e"]({},n._rawOptions.minimap||{});n._rawOptions.find=_e["e"]({},n._rawOptions.find||{});n._rawOptions.hover=_e["e"]({},n._rawOptions.hover||{});n._rawOptions.parameterHints=_e["e"]({},n._rawOptions.parameterHints||{});n._validatedOptions=u["d"].validate(n._rawOptions,gr);n._isDominatedByLongLines=!1;n._lineNumbersDigitCount=1;n._register(Ce.onDidChangeZoomLevel(function(e){return n._recomputeOptions()}));n._register(_r.onDidChangeTabFocus(function(e){return n._recomputeOptions()}));return n}t.prototype.observeReferenceElement=function(e){};t.prototype.dispose=function(){e.prototype.dispose.call(this)};t.prototype._recomputeOptions=function(){var e=this.editor;var t=this._computeInternalOptions();if(e&&e.equals(t))return;this.editor=t;e&&this._onDidChange.fire(e.createChangeEvent(t))};t.prototype.getRawOptions=function(){return this._rawOptions};t.prototype._computeInternalOptions=function(){var e=this._validatedOptions;var t=this._getEnvConfiguration();var n=Re.createFromRawSettings(this._rawOptions,t.zoomLevel);var r={outerWidth:t.outerWidth,outerHeight:t.outerHeight,fontInfo:this.readConfiguration(n),extraEditorClassName:t.extraEditorClassName,isDominatedByLongLines:this._isDominatedByLongLines,lineNumbersDigitCount:this._lineNumbersDigitCount,emptySelectionClipboard:t.emptySelectionClipboard,pixelRatio:t.pixelRatio,tabFocusMode:_r.getTabFocusMode(),accessibilitySupport:t.accessibilitySupport};return u["f"].createInternalEditorOptions(r,e)};t._primitiveArrayEquals=function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0};t._subsetEquals=function(e,t){for(var n in t)if(yr.call(t,n)){var r=t[n];var i=e[n];if(i===r)continue;if(Array.isArray(i)&&Array.isArray(r)){if(!this._primitiveArrayEquals(i,r))return!1;continue}if("object"==typeof i&&"object"==typeof r){if(!this._subsetEquals(i,r))return!1;continue}return!1}return!0};t.prototype.updateOptions=function(e){if(void 0===e)return;if(t._subsetEquals(this._rawOptions,e))return;this._rawOptions=_e["e"](this._rawOptions,e||{});this._validatedOptions=u["d"].validate(this._rawOptions,gr);this._recomputeOptions()};t.prototype.setIsDominatedByLongLines=function(e){this._isDominatedByLongLines=e;this._recomputeOptions()};t.prototype.setMaxLineNumber=function(e){var n=t._digitCount(e);if(this._lineNumbersDigitCount===n)return;this._lineNumbersDigitCount=n;this._recomputeOptions()};t._digitCount=function(e){var t=0;for(;e;){e=Math.floor(e/10);t++}return t||1};return t}(me["a"]);var Cr=Yn["a"].as($n.Configuration);var wr={id:"editor",order:5,type:"object",title:Bn["a"]("editorConfigurationTitle","Editor"),overridable:!0,scope:3,properties:{"editor.fontFamily":{type:"string",default:vr.fontFamily,description:Bn["a"]("fontFamily","Controls the font family.")},"editor.fontWeight":{type:"string",enum:["normal","bold","100","200","300","400","500","600","700","800","900"],default:vr.fontWeight,description:Bn["a"]("fontWeight","Controls the font weight.")},"editor.fontSize":{type:"number",default:vr.fontSize,description:Bn["a"]("fontSize","Controls the font size in pixels.")},"editor.lineHeight":{type:"number",default:vr.lineHeight,description:Bn["a"]("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")},"editor.letterSpacing":{type:"number",default:vr.letterSpacing,description:Bn["a"]("letterSpacing","Controls the letter spacing in pixels.")},"editor.lineNumbers":{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[Bn["a"]("lineNumbers.off","Line numbers are not rendered."),Bn["a"]("lineNumbers.on","Line numbers are rendered as absolute number."),Bn["a"]("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),Bn["a"]("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:Bn["a"]("lineNumbers","Controls the display of line numbers.")},"editor.rulers":{type:"array",items:{type:"number"},default:gr.viewInfo.rulers,description:Bn["a"]("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")},"editor.wordSeparators":{type:"string",default:gr.wordSeparators,description:Bn["a"]("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")},"editor.tabSize":{type:"number",default:mr.tabSize,minimum:1,markdownDescription:Bn["a"]("tabSize","The number of spaces a tab is equal to. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.insertSpaces":{type:"boolean",default:mr.insertSpaces,markdownDescription:Bn["a"]("insertSpaces","Insert spaces when pressing `Tab`. This setting is overridden based on the file contents when `#editor.detectIndentation#` is on.")},"editor.detectIndentation":{type:"boolean",default:mr.detectIndentation,markdownDescription:Bn["a"]("detectIndentation","Controls whether `#editor.tabSize#` and `#editor.insertSpaces#` will be automatically detected when a file is opened based on the file contents.")},"editor.roundedSelection":{type:"boolean",default:gr.viewInfo.roundedSelection,description:Bn["a"]("roundedSelection","Controls whether selections should have rounded corners.")},"editor.scrollBeyondLastLine":{type:"boolean",default:gr.viewInfo.scrollBeyondLastLine,description:Bn["a"]("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")},"editor.scrollBeyondLastColumn":{type:"number",default:gr.viewInfo.scrollBeyondLastColumn,description:Bn["a"]("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")},"editor.smoothScrolling":{type:"boolean",default:gr.viewInfo.smoothScrolling,description:Bn["a"]("smoothScrolling","Controls whether the editor will scroll using an animation.")},"editor.minimap.enabled":{type:"boolean",default:gr.viewInfo.minimap.enabled,description:Bn["a"]("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:gr.viewInfo.minimap.side,description:Bn["a"]("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:gr.viewInfo.minimap.showSlider,description:Bn["a"]("minimap.showSlider","Controls whether the minimap slider is automatically hidden.")},"editor.minimap.renderCharacters":{type:"boolean",default:gr.viewInfo.minimap.renderCharacters,description:Bn["a"]("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:gr.viewInfo.minimap.maxColumn,description:Bn["a"]("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")},"editor.hover.enabled":{type:"boolean",default:gr.contribInfo.hover.enabled,description:Bn["a"]("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:gr.contribInfo.hover.delay,description:Bn["a"]("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:gr.contribInfo.hover.sticky,description:Bn["a"]("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.find.seedSearchStringFromSelection":{type:"boolean",default:gr.contribInfo.find.seedSearchStringFromSelection,description:Bn["a"]("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"boolean",default:gr.contribInfo.find.autoFindInSelection,description:Bn["a"]("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:gr.contribInfo.find.globalFindClipboard,description:Bn["a"]("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:i["d"]},"editor.wordWrap":{type:"string",enum:["off","on","wordWrapColumn","bounded"],markdownEnumDescriptions:[Bn["a"]("wordWrap.off","Lines will never wrap."),Bn["a"]("wordWrap.on","Lines will wrap at the viewport width."),Bn["a"]({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),Bn["a"]({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],default:gr.wordWrap,description:Bn["a"]({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")},"editor.wordWrapColumn":{type:"integer",default:gr.wordWrapColumn,minimum:1,markdownDescription:Bn["a"]({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")},"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[Bn["a"]("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),Bn["a"]("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),Bn["a"]("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),Bn["a"]("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],default:"same",description:Bn["a"]("wrappingIndent","Controls the indentation of wrapped lines.")},"editor.mouseWheelScrollSensitivity":{type:"number",default:gr.viewInfo.scrollbar.mouseWheelScrollSensitivity,markdownDescription:Bn["a"]("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")},"editor.multiCursorModifier":{type:"string",enum:["ctrlCmd","alt"],markdownEnumDescriptions:[Bn["a"]("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Bn["a"]("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"alt",markdownDescription:Bn["a"]({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go To Definition and Open Link mouse gestures will adapt such that they do not conflict with the multicursor modifier. [Read more](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")},"editor.multiCursorMergeOverlapping":{type:"boolean",default:gr.multiCursorMergeOverlapping,description:Bn["a"]("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")},"editor.quickSuggestions":{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:!1,description:Bn["a"]("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:!1,description:Bn["a"]("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:!0,description:Bn["a"]("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:gr.contribInfo.quickSuggestions,description:Bn["a"]("quickSuggestions","Controls whether suggestions should automatically show up while typing.")},"editor.quickSuggestionsDelay":{type:"integer",default:gr.contribInfo.quickSuggestionsDelay,minimum:0,description:Bn["a"]("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")},"editor.parameterHints.enabled":{type:"boolean",default:gr.contribInfo.parameterHints.enabled,description:Bn["a"]("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:gr.contribInfo.parameterHints.cycle,description:Bn["a"]("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")},"editor.autoClosingBrackets":{type:"string",enum:["always","languageDefined","beforeWhitespace","never"],enumDescriptions:["",Bn["a"]("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),Bn["a"]("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],default:gr.autoClosingBrackets,description:Bn["a"]("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")},"editor.autoClosingQuotes":{type:"string",enum:["always","languageDefined","beforeWhitespace","never"],enumDescriptions:["",Bn["a"]("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),Bn["a"]("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],default:gr.autoClosingQuotes,description:Bn["a"]("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")},"editor.autoSurround":{type:"string",enum:["languageDefined","brackets","quotes","never"],enumDescriptions:[Bn["a"]("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),Bn["a"]("editor.autoSurround.brackets","Surround with brackets but not quotes."),Bn["a"]("editor.autoSurround.quotes","Surround with quotes but not brackets."),""],default:gr.autoSurround,description:Bn["a"]("autoSurround","Controls whether the editor should automatically surround selections.")},"editor.formatOnType":{type:"boolean",default:gr.contribInfo.formatOnType,description:Bn["a"]("formatOnType","Controls whether the editor should automatically format the line after typing.")},"editor.formatOnPaste":{type:"boolean",default:gr.contribInfo.formatOnPaste,description:Bn["a"]("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")},"editor.autoIndent":{type:"boolean",default:gr.autoIndent,description:Bn["a"]("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste or move lines. Extensions with indentation rules of the language must be available.")},"editor.suggestOnTriggerCharacters":{type:"boolean",default:gr.contribInfo.suggestOnTriggerCharacters,description:Bn["a"]("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")},"editor.acceptSuggestionOnEnter":{type:"string",enum:["on","smart","off"],default:gr.contribInfo.acceptSuggestionOnEnter,markdownEnumDescriptions:["",Bn["a"]("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:Bn["a"]("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")},"editor.acceptSuggestionOnCommitCharacter":{type:"boolean",default:gr.contribInfo.acceptSuggestionOnCommitCharacter,markdownDescription:Bn["a"]("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")},"editor.snippetSuggestions":{type:"string",enum:["top","bottom","inline","none"],enumDescriptions:[Bn["a"]("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),Bn["a"]("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),Bn["a"]("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),Bn["a"]("snippetSuggestions.none","Do not show snippet suggestions.")],default:gr.contribInfo.suggest.snippets,description:Bn["a"]("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")},"editor.emptySelectionClipboard":{type:"boolean",default:gr.emptySelectionClipboard,description:Bn["a"]("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")},"editor.copyWithSyntaxHighlighting":{type:"boolean",default:gr.copyWithSyntaxHighlighting,description:Bn["a"]("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")},"editor.wordBasedSuggestions":{type:"boolean",default:gr.contribInfo.wordBasedSuggestions,description:Bn["a"]("wordBasedSuggestions","Controls whether completions should be computed based on words in the document.")},"editor.suggestSelection":{type:"string",enum:["first","recentlyUsed","recentlyUsedByPrefix"],markdownEnumDescriptions:[Bn["a"]("suggestSelection.first","Always select the first suggestion."),Bn["a"]("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),Bn["a"]("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],default:"recentlyUsed",description:Bn["a"]("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")},"editor.suggestFontSize":{type:"integer",default:0,minimum:0,markdownDescription:Bn["a"]("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:Bn["a"]("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:[Bn["a"]("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),Bn["a"]("tabCompletion.off","Disable tab completions."),Bn["a"]("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:Bn["a"]("tabCompletion","Enables tab completions.")},"editor.suggest.filterGraceful":{type:"boolean",default:!0,description:Bn["a"]("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:!1,description:Bn["a"]("suggest.localityBonus","Controls whether sorting favours words that appear close to the cursor.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:!0,description:Bn["a"]("suggest.snippetsPreventQuickSuggestions","Control whether an active snippet prevents quick suggestions.")},"editor.selectionHighlight":{type:"boolean",default:gr.contribInfo.selectionHighlight,description:Bn["a"]("selectionHighlight","Controls whether the editor should highlight matches similar to the selection")},"editor.occurrencesHighlight":{type:"boolean",default:gr.contribInfo.occurrencesHighlight,description:Bn["a"]("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")},"editor.overviewRulerLanes":{type:"integer",default:3,description:Bn["a"]("overviewRulerLanes","Controls the number of decorations that can show up at the same position in the overview ruler.")},"editor.overviewRulerBorder":{type:"boolean",default:gr.viewInfo.overviewRulerBorder,description:Bn["a"]("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")},"editor.cursorBlinking":{type:"string",enum:["blink","smooth","phase","expand","solid"],default:u["h"](gr.viewInfo.cursorBlinking),description:Bn["a"]("cursorBlinking","Control the cursor animation style.")},"editor.mouseWheelZoom":{type:"boolean",default:gr.viewInfo.mouseWheelZoom,markdownDescription:Bn["a"]("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")},"editor.cursorStyle":{type:"string",enum:["block","block-outline","line","line-thin","underline","underline-thin"],default:u["i"](gr.viewInfo.cursorStyle),description:Bn["a"]("cursorStyle","Controls the cursor style.")},"editor.cursorWidth":{type:"integer",default:gr.viewInfo.cursorWidth,markdownDescription:Bn["a"]("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")},"editor.fontLigatures":{type:"boolean",default:gr.viewInfo.fontLigatures,description:Bn["a"]("fontLigatures","Enables/Disables font ligatures.")},"editor.hideCursorInOverviewRuler":{type:"boolean",default:gr.viewInfo.hideCursorInOverviewRuler,description:Bn["a"]("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")},"editor.renderWhitespace":{type:"string",enum:["none","boundary","all"],enumDescriptions:["",Bn["a"]("renderWhiteSpace.boundary","Render whitespace characters except for single spaces between words."),""],default:gr.viewInfo.renderWhitespace,description:Bn["a"]("renderWhitespace","Controls how the editor should render whitespace characters.")},"editor.renderControlCharacters":{type:"boolean",default:gr.viewInfo.renderControlCharacters,description:Bn["a"]("renderControlCharacters","Controls whether the editor should render control characters.")},"editor.renderIndentGuides":{type:"boolean",default:gr.viewInfo.renderIndentGuides,description:Bn["a"]("renderIndentGuides","Controls whether the editor should render indent guides.")},"editor.highlightActiveIndentGuide":{type:"boolean",default:gr.viewInfo.highlightActiveIndentGuide,description:Bn["a"]("highlightActiveIndentGuide","Controls whether the editor should highlight the active indent guide.")},"editor.renderLineHighlight":{type:"string",enum:["none","gutter","line","all"],enumDescriptions:["","","",Bn["a"]("renderLineHighlight.all","Highlights both the gutter and the current line.")],default:gr.viewInfo.renderLineHighlight,description:Bn["a"]("renderLineHighlight","Controls how the editor should render the current line highlight.")},"editor.codeLens":{type:"boolean",default:gr.contribInfo.codeLens,description:Bn["a"]("codeLens","Controls whether the editor shows CodeLens")},"editor.folding":{type:"boolean",default:gr.contribInfo.folding,description:Bn["a"]("folding","Controls whether the editor has code folding enabled")},"editor.foldingStrategy":{type:"string",enum:["auto","indentation"],default:gr.contribInfo.foldingStrategy,markdownDescription:Bn["a"]("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:gr.contribInfo.showFoldingControls,description:Bn["a"]("showFoldingControls","Controls whether the fold controls on the gutter are automatically hidden.")},"editor.matchBrackets":{type:"boolean",default:gr.contribInfo.matchBrackets,description:Bn["a"]("matchBrackets","Highlight matching brackets when one of them is selected.")},"editor.glyphMargin":{type:"boolean",default:gr.viewInfo.glyphMargin,description:Bn["a"]("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")},"editor.useTabStops":{type:"boolean",default:gr.useTabStops,description:Bn["a"]("useTabStops","Inserting and deleting whitespace follows tab stops.")},"editor.trimAutoWhitespace":{type:"boolean",default:mr.trimAutoWhitespace,description:Bn["a"]("trimAutoWhitespace","Remove trailing auto inserted whitespace.")},"editor.stablePeek":{type:"boolean",default:!1,markdownDescription:Bn["a"]("stablePeek","Keep peek editors open even when double clicking their content or when hitting `Escape`.")},"editor.dragAndDrop":{type:"boolean",default:gr.dragAndDrop,description:Bn["a"]("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")},"editor.accessibilitySupport":{type:"string",enum:["auto","on","off"],enumDescriptions:[Bn["a"]("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),Bn["a"]("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),Bn["a"]("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:gr.accessibilitySupport,description:Bn["a"]("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")},"editor.showUnused":{type:"boolean",default:gr.showUnused,description:Bn["a"]("showUnused","Controls fading out of unused code.")},"editor.links":{type:"boolean",default:gr.contribInfo.links,description:Bn["a"]("links","Controls whether the editor should detect links and make them clickable.")},"editor.colorDecorators":{type:"boolean",default:gr.contribInfo.colorDecorators,description:Bn["a"]("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")},"editor.lightbulb.enabled":{type:"boolean",default:gr.contribInfo.lightbulbEnabled,description:Bn["a"]("codeActions","Enables the code action lightbulb in the editor.")},"editor.codeActionsOnSave":{type:"object",properties:{"source.organizeImports":{type:"boolean",description:Bn["a"]("codeActionsOnSave.organizeImports","Controls whether organize imports action should be run on file save.")}},additionalProperties:{type:"boolean"},default:gr.contribInfo.codeActionsOnSave,description:Bn["a"]("codeActionsOnSave","Code action kinds to be run on save.")},"editor.codeActionsOnSaveTimeout":{type:"number",default:gr.contribInfo.codeActionsOnSaveTimeout,description:Bn["a"]("codeActionsOnSaveTimeout","Timeout in milliseconds after which the code actions that are run on save are cancelled.")},"editor.selectionClipboard":{type:"boolean",default:gr.contribInfo.selectionClipboard,description:Bn["a"]("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:i["c"]},"diffEditor.renderSideBySide":{type:"boolean",default:!0,description:Bn["a"]("sideBySide","Controls whether the diff editor shows the diff side by side or inline.")},"diffEditor.ignoreTrimWhitespace":{type:"boolean",default:!0,description:Bn["a"]("ignoreTrimWhitespace","Controls whether the diff editor shows changes in leading or trailing whitespace as diffs.")},"editor.largeFileOptimizations":{type:"boolean",default:mr.largeFileOptimizations,description:Bn["a"]("largeFileOptimizations","Special handling for large files to disable certain memory intensive features.")},"diffEditor.renderIndicators":{type:"boolean",default:!0,description:Bn["a"]("renderIndicators","Controls whether the diff editor shows +/- indicators for added/removed changes.")}}};var Sr=null;function Lr(){if(null===Sr){Sr=Object.create(null);Object.keys(wr.properties).forEach(function(e){Sr[e]=!0})}return Sr}function Ir(e){var t;return Lr()["editor."+e]||!1}function xr(e){var t;return Lr()["diffEditor."+e]||!1}Cr.registerConfiguration(wr);var Nr=function(){function e(){}e.insert=function(e,t){return{range:new p["a"](e.lineNumber,e.column,e.lineNumber,e.column),text:t,forceMoveMarkers:!0}};e.delete=function(e){return{range:e,text:null}};e.replace=function(e,t){return{range:e,text:t}};e.replaceMove=function(e,t){return{range:e,text:t,forceMoveMarkers:!0}};return e}();var Mr=n("zgcD");var Dr=n("WTqa");var kr=function(e,t,n,r){var i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};var Or=function(e,t){return function(n,r){t(n,r,e)}};var Er=function(){function e(t,n,r,i){var o=this;this._commandService=r;this._contextKeyService=i;this._menuGroups=[];this._disposables=[];this._onDidChange=new c["a"];n.then(function(n){var r=Dr["d"].getMenuItems(t);var i=new Set;var a;r.sort(e._compareMenuItems);for(var s=0,u=r;s<u.length;s++){var l=u[s];var c=l.group;if(!a||a[0]!==c){a=[c||"",[]];o._menuGroups.push(a)}a[1].push(l);e._fillInKbExprKeys(l.when,i);Object(Dr["f"])(l)&&l.command.precondition&&e._fillInKbExprKeys(l.command.precondition,i);Object(Dr["f"])(l)&&l.command.toggled&&e._fillInKbExprKeys(l.command.toggled,i)}o._disposables.push(o._contextKeyService.onDidChangeContext(function(e){e.affectsSome(i)&&o._onDidChange.fire()}));o._onDidChange.fire(o)})}e.prototype.dispose=function(){this._disposables=Object(me["d"])(this._disposables);this._onDidChange.dispose()};e.prototype.getActions=function(e){var t=[];for(var n=0,r=this._menuGroups;n<r.length;n++){var i=r[n];var o=i[0],a;var s=[];for(var u=0,l=i[1];u<l.length;u++){var c=l[u];if(this._contextKeyService.contextMatchesRules(c.when||null)){var d=Object(Dr["f"])(c)?new Dr["c"](c.command,c.alt,e,this._contextKeyService,this._commandService):new Dr["e"](c);s.push(d)}}s.length>0&&t.push([o,s])}return t};e._fillInKbExprKeys=function(e,t){if(e)for(var n=0,r=e.keys();n<r.length;n++){var i=r[n];t.add(i)}};e._compareMenuItems=function(e,t){var n=e.group;var r=t.group;if(n!==r){if(!n)return 1;if(!r)return-1;if("navigation"===n)return-1;if("navigation"===r)return 1;var i=n.localeCompare(r);if(0!==i)return i}var o=e.order||0;var a=t.order||0;if(o<a)return-1;if(o>a)return 1;var s="string"==typeof e.command.title?e.command.title:e.command.title.value;var u="string"==typeof t.command.title?t.command.title:t.command.title.value;return s.localeCompare(u)};return e=kr([Or(2,le["b"]),Or(3,Mr["e"])],e)}();var Tr=Object(ce["c"])("configurationService");function Ar(e,t){var n=Object.create(null);for(var r in e)Rr(n,r,e[r],t);return n}function Rr(e,t,n,r){var i=t.split(".");var o=i.pop();var a=e;for(var s=0;s<i.length;s++){var u=i[s];var l=a[u];switch(typeof l){case"undefined":l=a[u]=Object.create(null);break;case"object":break;default:r("Ignoring "+t+" as "+i.slice(0,s+1).join(".")+" is "+JSON.stringify(l));return}a=l}"object"==typeof a?a[o]=n:r("Ignoring "+t+" as "+i.join(".")+" is "+JSON.stringify(a))}function Pr(e,t){var n;jr(e,t.split("."))}function jr(e,t){var n=t.shift();if(0===t.length){delete e[n];return}if(-1!==Object.keys(e).indexOf(n)){var r=e[n];if("object"==typeof r&&!Array.isArray(r)){jr(r,t);0===Object.keys(r).length&&delete e[n]}}}function Wr(e,t,n){function r(e,t){var n=e;for(var r=0;r<t.length;r++){if("object"!=typeof n||null===n)return;n=n[t[r]]}return n}var i;var o=r(e,t.split("."));return void 0===o?n:o}function Fr(){var e=Yn["a"].as($n.Configuration).getConfigurationProperties();return Object.keys(e)}function zr(){var e=Object.create(null);var t=Yn["a"].as($n.Configuration).getConfigurationProperties();for(var n in t){var r;Rr(e,n,t[n].default,function(e){return console.error("Conflict in default settings: "+e)})}return e}function Vr(e){return e.substring(1,e.length-1)}var Br=n("Xa9+");var Hr=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Ur=function(){function e(e,t,n){void 0===e&&(e={});void 0===t&&(t=[]);void 0===n&&(n=[]);this._contents=e;this._keys=t;this._overrides=n;this.isFrozen=!1}Object.defineProperty(e.prototype,"contents",{get:function(){return this.checkAndFreeze(this._contents)},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"overrides",{get:function(){return this.checkAndFreeze(this._overrides)},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"keys",{get:function(){return this.checkAndFreeze(this._keys)},enumerable:!0,configurable:!0});e.prototype.getValue=function(e){return e?Wr(this.contents,e):this.contents};e.prototype.override=function(t){var n=this.getContentsForOverrideIdentifer(t);if(!n||"object"!=typeof n||!Object.keys(n).length)return this;var r={};for(var i=0,o=at["b"](Object.keys(this.contents).concat(Object.keys(n)));i<o.length;i++){var a=o[i];var s=this.contents[a];var u=n[a];if(u)if("object"==typeof s&&"object"==typeof u){s=_e["b"](s);this.mergeContents(s,u)}else s=u;r[a]=s}return new e(r)};e.prototype.merge=function(){var t=[];for(var n=0;n<arguments.length;n++)t[n]=arguments[n];var r=_e["b"](this.contents);var i=_e["b"](this.overrides);var o=this.keys.slice();for(var a=0,s=t;a<s.length;a++){var u=s[a];this.mergeContents(r,u.contents);var l=function(e){var t=i.filter(function(t){return at["c"](t.identifiers,e.identifiers)})[0];t?c.mergeContents(t.contents,e.contents):i.push(_e["b"](e))};var c=this;for(var d=0,h=u.overrides;d<h.length;d++){var f;l(h[d])}for(var p=0,g=u.keys;p<g.length;p++){var v=g[p];-1===o.indexOf(v)&&o.push(v)}}return new e(r,o,i)};e.prototype.freeze=function(){this.isFrozen=!0;return this};e.prototype.mergeContents=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];if(i in e&&Kn["g"](e[i])&&Kn["g"](t[i])){this.mergeContents(e[i],t[i]);continue}e[i]=_e["b"](t[i])}};e.prototype.checkAndFreeze=function(e){if(this.isFrozen&&!Object.isFrozen(e))return _e["c"](e);return e};e.prototype.getContentsForOverrideIdentifer=function(e){for(var t=0,n=this.overrides;t<n.length;t++){var r=n[t];if(-1!==r.identifiers.indexOf(e))return r.contents}return null};e.prototype.toJSON=function(){return{contents:this.contents,overrides:this.overrides,keys:this.keys}};e.prototype.setValue=function(e,t){this.addKey(e);Rr(this.contents,e,t,function(e){throw new Error(e)})};e.prototype.removeValue=function(e){this.removeKey(e)&&Pr(this.contents,e)};e.prototype.addKey=function(e){var t=this.keys.length;for(var n=0;n<t;n++)0===e.indexOf(this.keys[n])&&(t=n);this.keys.splice(t,1,e)};e.prototype.removeKey=function(e){var t=this.keys.indexOf(e);if(-1!==t){this.keys.splice(t,1);return!0}return!1};return e}();var Zr=function(e){Hr(t,e);function t(){var t=this;var n=zr();var r=Fr();var i=[];for(var o=0,a=Object.keys(n);o<a.length;o++){var s=a[o];cr.test(s)&&i.push({identifiers:[Vr(s).trim()],contents:Ar(n[s],function(e){return console.error("Conflict in default settings file: "+e)})})}return t=e.call(this,n,r,i)||this}return t}(Ur);var Gr=function(){function e(e,t,n,r,i,o,a){void 0===n&&(n=new Ur);void 0===r&&(r=new Br["b"]);void 0===i&&(i=new Ur);void 0===o&&(o=new Br["b"]);void 0===a&&(a=!0);this._defaultConfiguration=e;this._userConfiguration=t;this._workspaceConfiguration=n;this._folderConfigurations=r;this._memoryConfiguration=i;this._memoryConfigurationByResource=o;this._freeze=a;this._workspaceConsolidatedConfiguration=null;this._foldersConsolidatedConfigurations=new Br["b"]}e.prototype.getValue=function(e,t,n){var r;return this.getConsolidateConfigurationModel(t,n).getValue(e)};e.prototype.updateValue=function(e,t,n){void 0===n&&(n={});var r;if(n.resource){if(!(r=this._memoryConfigurationByResource.get(n.resource))){r=new Ur;this._memoryConfigurationByResource.set(n.resource,r)}}else r=this._memoryConfiguration;void 0===t?r.removeValue(e):r.setValue(e,t);n.resource||(this._workspaceConsolidatedConfiguration=null)};e.prototype.getConsolidateConfigurationModel=function(e,t){var n=this.getConsolidatedConfigurationModelForResource(e,t);return e.overrideIdentifier?n.override(e.overrideIdentifier):n};e.prototype.getConsolidatedConfigurationModelForResource=function(e,t){var n=e.resource;var r=this.getWorkspaceConsolidatedConfiguration();if(t&&n){var i=t.getFolder(n);i&&(r=this.getFolderConsolidatedConfiguration(i.uri)||r);var o=this._memoryConfigurationByResource.get(n);o&&(r=r.merge(o))}return r};e.prototype.getWorkspaceConsolidatedConfiguration=function(){if(!this._workspaceConsolidatedConfiguration){this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this._userConfiguration,this._workspaceConfiguration,this._memoryConfiguration);this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())}return this._workspaceConsolidatedConfiguration};e.prototype.getFolderConsolidatedConfiguration=function(e){var t=this._foldersConsolidatedConfigurations.get(e);if(!t){var n=this.getWorkspaceConsolidatedConfiguration();var r=this._folderConfigurations.get(e);if(r){t=n.merge(r);this._freeze&&(t=t.freeze());this._foldersConsolidatedConfigurations.set(e,t)}else t=n}return t};return e}();var Yr=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Kr=function(e){Yr(t,e);function t(t,n,r,i,a){var s=e.call(this)||this;s._contextKeyService=t;s._commandService=n;s._telemetryService=r;s._statusService=a;s._notificationService=i;s._currentChord=null;s._currentChordChecker=new o["b"];s._currentChordStatusMessage=null;s._onDidUpdateKeybindings=s._register(new c["a"]);return s}t.prototype.dispose=function(){e.prototype.dispose.call(this)};Object.defineProperty(t.prototype,"onDidUpdateKeybindings",{get:function(){return this._onDidUpdateKeybindings?this._onDidUpdateKeybindings.event:c["b"].None},enumerable:!0,configurable:!0});t.prototype.lookupKeybinding=function(e){var t=this._getResolver().lookupPrimaryKeybinding(e);if(!t)return null;return t.resolvedKeybinding};t.prototype._enterChordMode=function(e,t){var n=this;this._currentChord={keypress:e,label:t};this._statusService&&(this._currentChordStatusMessage=this._statusService.setStatusMessage(Bn["a"]("first.chord","({0}) was pressed. Waiting for second key of chord...",t)));var r=Date.now();this._currentChordChecker.cancelAndSet(function(){if(!n._documentHasFocus()){n._leaveChordMode();return}Date.now()-r>5e3&&n._leaveChordMode()},500)};t.prototype._leaveChordMode=function(){if(this._currentChordStatusMessage){this._currentChordStatusMessage.dispose();this._currentChordStatusMessage=null}this._currentChordChecker.cancel();this._currentChord=null};t.prototype._dispatch=function(e,t){var n=this;var r=!1;var i=this.resolveKeyboardEvent(e);if(i.isChord()){console.warn("Unexpected keyboard event mapped to a chord");return!1}var o=i.getDispatchParts()[0];if(null===o)return r;var a=this._contextKeyService.getContext(t);var s=this._currentChord?this._currentChord.keypress:null;var u=i.getLabel();var l=this._getResolver().resolve(a,s,o);if(l&&l.enterChord){r=!0;this._enterChordMode(o,u);return r}if(this._statusService&&this._currentChord&&(!l||!l.commandId)){this._statusService.setStatusMessage(Bn["a"]("missing.chord","The key combination ({0}, {1}) is not a command.",this._currentChord.label,u),1e4);r=!0}this._leaveChordMode();if(l&&l.commandId){l.bubble||(r=!0);void 0===l.commandArgs?this._commandService.executeCommand(l.commandId).then(void 0,function(e){return n._notificationService.warn(e)}):this._commandService.executeCommand(l.commandId,l.commandArgs).then(void 0,function(e){return n._notificationService.warn(e)});this._telemetryService.publicLog("workbenchActionExecuted",{id:l.commandId,from:"keybinding"})}return r};return t}(me["a"]);var Qr=function(){function e(t,n){this._defaultKeybindings=t;this._defaultBoundCommands=new Map;for(var r=0,i=t.length;r<i;r++){var o=t[r].command;o&&this._defaultBoundCommands.set(o,!0)}this._map=new Map;this._lookupMap=new Map;this._keybindings=e.combine(t,n);for(var r=0,i=this._keybindings.length;r<i;r++){var a=this._keybindings[r];if(null===a.keypressFirstPart)continue;this._addKeyPress(a.keypressFirstPart,a)}}e._isTargetedForRemoval=function(e,t,n,r,i){if(e.command!==r)return!1;if(t&&e.keypressFirstPart!==t)return!1;if(n&&e.keypressChordPart!==n)return!1;if(i){if(!e.when)return!1;if(!i.equals(e.when))return!1}return!0};e.combine=function(e,t){e=e.slice(0);var n=[];for(var r=0,i=t.length;r<i;r++){var o=t[r];if(!o.command||0===o.command.length||"-"!==o.command.charAt(0)){n.push(o);continue}var a=o.command.substr(1);var s=o.keypressFirstPart;var u=o.keypressChordPart;var l=o.when;for(var c=e.length-1;c>=0;c--)this._isTargetedForRemoval(e[c],s,u,a,l)&&e.splice(c,1)}return e.concat(n)};e.prototype._addKeyPress=function(t,n){var r=this._map.get(t);if(void 0===r){this._map.set(t,[n]);this._addToLookupMap(n);return}for(var i=r.length-1;i>=0;i--){var o=r[i];if(o.command===n.command)continue;var a=null!==o.keypressChordPart;var s=null!==n.keypressChordPart;if(a&&s&&o.keypressChordPart!==n.keypressChordPart)continue;e.whenIsEntirelyIncluded(o.when,n.when)&&this._removeFromLookupMap(o)}r.push(n);this._addToLookupMap(n)};e.prototype._addToLookupMap=function(e){if(!e.command)return;var t=this._lookupMap.get(e.command);if(void 0===t){t=[e];this._lookupMap.set(e.command,t)}else t.push(e)};e.prototype._removeFromLookupMap=function(e){if(!e.command)return;var t=this._lookupMap.get(e.command);if(void 0===t)return;for(var n=0,r=t.length;n<r;n++)if(t[n]===e){t.splice(n,1);return}};e.whenIsEntirelyIncluded=function(e,t){if(!t)return!0;if(!e)return!1;var n=e instanceof Mr["a"]?e.expr:[e];var r=t instanceof Mr["a"]?t.expr:[t];var i=0;for(var o=0;o<r.length;o++){var a=r[o];var s=!1;for(;!s&&i<n.length;){var u;n[i].equals(a)&&(s=!0);i++}if(!s)return!1}return!0};e.prototype.lookupPrimaryKeybinding=function(e){var t=this._lookupMap.get(e);if(void 0===t||0===t.length)return null;return t[t.length-1]};e.prototype.resolve=function(e,t,n){var r=null;if(null!==t){var i;if(void 0===(i=this._map.get(t)))return null;r=[];for(var o=0,a=i.length;o<a;o++){var s=i[o];s.keypressChordPart===n&&r.push(s)}}else{var i;if(void 0===(i=this._map.get(n)))return null;r=i}var u=this._findCommand(e,r);if(!u)return null;if(null===t&&null!==u.keypressChordPart)return{enterChord:!0,commandId:null,commandArgs:null,bubble:!1};return{enterChord:!1,commandId:u.command,commandArgs:u.commandArgs,bubble:u.bubble}};e.prototype._findCommand=function(t,n){for(var r=n.length-1;r>=0;r--){var i=n[r];if(!e.contextMatchesRules(t,i.when))continue;return i}return null};e.contextMatchesRules=function(e,t){if(!t)return!0;return t.evaluate(e)};return e}();var qr=n("vMMm");var Jr=function(){function e(e,t,n,r,i){this.resolvedKeybinding=e;if(e){var o=e.getDispatchParts(),a=o[0],s=o[1];this.keypressFirstPart=a;this.keypressChordPart=s}else{this.keypressFirstPart=null;this.keypressChordPart=null}this.bubble=!!t&&94===t.charCodeAt(0);this.command=this.bubble?t.substr(1):t;this.commandArgs=n;this.when=r;this.isDefault=i}return e}();var Xr=function(){function e(e,t,n){void 0===n&&(n=t);this.modifierLabels=[null];this.modifierLabels[2]=e;this.modifierLabels[1]=t;this.modifierLabels[3]=n}e.prototype.toLabel=function(e,t,n,r,i){if(null===e||null===t)return null;return ni(e,t,n,r,this.modifierLabels[i])};return e}();var $r=new Xr({ctrlKey:"⌃",shiftKey:"⇧",altKey:"⌥",metaKey:"⌘",separator:""},{ctrlKey:Bn["a"]({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:Bn["a"]({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:Bn["a"]({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:Bn["a"]({key:"windowsKey",comment:["This is the short form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:Bn["a"]({key:"ctrlKey",comment:["This is the short form for the Control key on the keyboard"]},"Ctrl"),shiftKey:Bn["a"]({key:"shiftKey",comment:["This is the short form for the Shift key on the keyboard"]},"Shift"),altKey:Bn["a"]({key:"altKey",comment:["This is the short form for the Alt key on the keyboard"]},"Alt"),metaKey:Bn["a"]({key:"superKey",comment:["This is the short form for the Super key on the keyboard"]},"Super"),separator:"+"});var ei=new Xr({ctrlKey:Bn["a"]({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:Bn["a"]({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:Bn["a"]({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:Bn["a"]({key:"cmdKey.long",comment:["This is the long form for the Command key on the keyboard"]},"Command"),separator:"+"},{ctrlKey:Bn["a"]({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:Bn["a"]({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:Bn["a"]({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:Bn["a"]({key:"windowsKey.long",comment:["This is the long form for the Windows key on the keyboard"]},"Windows"),separator:"+"},{ctrlKey:Bn["a"]({key:"ctrlKey.long",comment:["This is the long form for the Control key on the keyboard"]},"Control"),shiftKey:Bn["a"]({key:"shiftKey.long",comment:["This is the long form for the Shift key on the keyboard"]},"Shift"),altKey:Bn["a"]({key:"altKey.long",comment:["This is the long form for the Alt key on the keyboard"]},"Alt"),metaKey:Bn["a"]({key:"superKey.long",comment:["This is the long form for the Super key on the keyboard"]},"Super"),separator:"+"});function ti(e,t,n){if(null===t)return"";var r=[];e.ctrlKey&&r.push(n.ctrlKey);e.shiftKey&&r.push(n.shiftKey);e.altKey&&r.push(n.altKey);e.metaKey&&r.push(n.metaKey);r.push(t);return r.join(n.separator)}function ni(e,t,n,r,i){var o=ti(e,t,i);if(null!==n&&null!==r){o+=" ";o+=ti(n,r,i)}return o}var ri=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var ii=function(e){ri(t,e);function t(t,n){var r=e.call(this)||this;r._os=n;if(!t)throw new Error("Invalid USLayoutResolvedKeybinding");if(2===t.type){r._firstPart=t.firstPart;r._chordPart=t.chordPart}else{r._firstPart=t;r._chordPart=null}return r}t.prototype._keyCodeToUILabel=function(e){if(2===this._os)switch(e){case 15:return"←";case 16:return"↑";case 17:return"→";case 18:return"↓"}return d["b"].toString(e)};t.prototype._getUILabelForKeybinding=function(e){if(!e)return null;if(e.isDuplicateModifierCase())return"";return this._keyCodeToUILabel(e.keyCode)};t.prototype.getLabel=function(){var e=this._getUILabelForKeybinding(this._firstPart);var t=this._getUILabelForKeybinding(this._chordPart);return $r.toLabel(this._firstPart,e,this._chordPart,t,this._os)};t.prototype._getAriaLabelForKeybinding=function(e){if(!e)return null;if(e.isDuplicateModifierCase())return"";return d["b"].toString(e.keyCode)};t.prototype.getAriaLabel=function(){var e=this._getAriaLabelForKeybinding(this._firstPart);var t=this._getAriaLabelForKeybinding(this._chordPart);return ei.toLabel(this._firstPart,e,this._chordPart,t,this._os)};t.prototype.isChord=function(){return!!this._chordPart};t.prototype.getParts=function(){return[this._toResolvedKeybindingPart(this._firstPart),this._chordPart?this._toResolvedKeybindingPart(this._chordPart):null]};t.prototype._toResolvedKeybindingPart=function(e){return new d["d"](e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,this._getUILabelForKeybinding(e),this._getAriaLabelForKeybinding(e))};t.prototype.getDispatchParts=function(){var e;var n;return[this._firstPart?t.getDispatchStr(this._firstPart):null,this._chordPart?t.getDispatchStr(this._chordPart):null]};t.getDispatchStr=function(e){if(e.isModifierKey())return null;var t="";e.ctrlKey&&(t+="ctrl+");e.shiftKey&&(t+="shift+");e.altKey&&(t+="alt+");e.metaKey&&(t+="meta+");return t+=d["b"].toString(e.keyCode)};return t}(d["c"]);var oi=Zn;var ai=Object(ce["c"])("notificationService");var si=function(){function e(){}return e}();var ui=Object(ce["c"])("contextService");var li;!function(e){function t(e){return e&&"object"==typeof e&&"string"==typeof e.id&&Array.isArray(e.folders)}e.isIWorkspace=t}(li||(li={}));var ci;!function(e){function t(e){return e&&"object"==typeof e&&h["a"].isUri(e.uri)&&"string"==typeof e.name&&"function"==typeof e.toResource}e.isIWorkspaceFolder=t}(ci||(ci={}));var di=function(){function e(e,t,n){void 0===t&&(t=[]);void 0===n&&(n=null);this._id=e;this._configuration=n;this._foldersMap=Br["c"].forPaths();this.folders=t}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){if(!e)return null;return this._foldersMap.findSubstr(e.toString())};e.prototype.updateFoldersMap=function(){this._foldersMap=Br["c"].forPaths();for(var e=0,t=this.folders;e<t.length;e++){var n=t[e];this._foldersMap.set(n.uri.toString(),n)}};e.prototype.toJSON=function(){return{id:this.id,folders:this.folders,configuration:this.configuration}};return e}();var hi=function(){function e(e,t){this.raw=t;this.uri=e.uri;this.index=e.index;this.name=e.name}e.prototype.toResource=function(e){return oe(this.uri,e)};e.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}};return e}();var fi=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var pi=function(e,t,n,r){var i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};var gi=function(e,t){return function(n,r){t(n,r,e)}};var vi=function(){function e(e){this.model=e;this._onDispose=new c["a"]}Object.defineProperty(e.prototype,"textEditorModel",{get:function(){return this.model},enumerable:!0,configurable:!0});e.prototype.dispose=function(){this._onDispose.fire()};return e}();function mi(e,t,n){return Gn(e)?t(e):n(e)}var _i=function(){function e(){}e.prototype.setEditor=function(e){this.editor=e};e.prototype.createModelReference=function(e){var t=this;var n;if(!(n=mi(this.editor,function(n){return t.findModel(n,e)},function(n){return t.findModel(n.getOriginalEditor(),e)||t.findModel(n.getModifiedEditor(),e)})))return r["b"].as(new me["b"](null));return r["b"].as(new me["b"](new vi(n)))};e.prototype.findModel=function(e,t){var n=e.getModel();if(n&&n.uri.toString()!==t.toString())return null;return n};return e}();var yi=function(){function e(){}e.prototype.showWhile=function(e,t){return null};return e}();var bi=function(){function e(){}return e}();var Ci=function(){function e(){}e.prototype.info=function(e){return this.notify({severity:Zn.Info,message:e})};e.prototype.warn=function(e){return this.notify({severity:Zn.Warning,message:e})};e.prototype.error=function(e){return this.notify({severity:Zn.Error,message:e})};e.prototype.notify=function(t){switch(t.severity){case Zn.Error:console.error(t.message);break;case Zn.Warning:console.warn(t.message);break;default:console.log(t.message)}return e.NO_OP};e.NO_OP=new si;return e}();var wi=function(){function e(e){this._onWillExecuteCommand=new c["a"];this._instantiationService=e;this._dynamicCommands=Object.create(null)}e.prototype.addCommand=function(e){var t=this;var n=e.id;this._dynamicCommands[n]=e;return Object(me["e"])(function(){delete t._dynamicCommands[n]})};e.prototype.executeCommand=function(e){var t=[];for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=le["a"].getCommand(e)||this._dynamicCommands[e];if(!r)return Promise.reject(new Error("command '"+e+"' not found"));try{this._onWillExecuteCommand.fire({commandId:e});var i=this._instantiationService.invokeFunction.apply(this._instantiationService,[r.handler].concat(t));return Promise.resolve(i)}catch(e){return Promise.reject(e)}};return e}();var Si=function(e){fi(t,e);function t(t,n,r,i,o){var a=e.call(this,t,n,r,i)||this;a._cachedResolver=null;a._dynamicKeybindings=[];a._register(K["g"](o,K["c"].KEY_DOWN,function(e){var t=new Hn["a"](e);var n;a._dispatch(t,t.target)&&t.preventDefault()}));return a}t.prototype.addDynamicKeybinding=function(e,t,n,r){var o=this;var a=[];this._dynamicKeybindings.push({keybinding:Object(d["f"])(t,i["a"]),command:e,when:r,weight1:1e3,weight2:0});a.push(Object(me["e"])(function(){for(var t=0;t<o._dynamicKeybindings.length;t++){var n;if(o._dynamicKeybindings[t].command===e){o._dynamicKeybindings.splice(t,1);o.updateResolver({source:1});return}}}));var s=this._commandService;if(!(s instanceof wi))throw new Error("Unknown command service!");a.push(s.addCommand({id:e,handler:n}));this.updateResolver({source:1});return Object(me["c"])(a)};t.prototype.updateResolver=function(e){this._cachedResolver=null;this._onDidUpdateKeybindings.fire(e)};t.prototype._getResolver=function(){if(!this._cachedResolver){var e=this._toNormalizedKeybindingItems(qr["a"].getDefaultKeybindings(),!0);var t=this._toNormalizedKeybindingItems(this._dynamicKeybindings,!1);this._cachedResolver=new Qr(e,t)}return this._cachedResolver};t.prototype._documentHasFocus=function(){return document.hasFocus()};t.prototype._toNormalizedKeybindingItems=function(e,t){var n=[],r=0;for(var i=0,o=e.length;i<o;i++){var a=e[i];var s=a.when?a.when.normalize():null;var u=a.keybinding;if(u){var l=this.resolveKeybinding(u);for(var c=0;c<l.length;c++)n[r++]=new Jr(l[c],a.command,a.commandArgs,s,t)}else n[r++]=new Jr(null,a.command,a.commandArgs,s,t)}return n};t.prototype.resolveKeybinding=function(e){return[new ii(e,i["a"])]};t.prototype.resolveKeyboardEvent=function(e){var t=new d["e"](e.ctrlKey,e.shiftKey,e.altKey,e.metaKey,e.keyCode);return new ii(t,i["a"])};return t}(Kr);function Li(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof h["a"])}var Ii=function(){function e(){this._onDidChangeConfiguration=new c["a"];this.onDidChangeConfiguration=this._onDidChangeConfiguration.event;this._configuration=new Gr(new Zr,new Ur)}e.prototype.configuration=function(){return this._configuration};e.prototype.getValue=function(e,t){var n="string"==typeof e?e:void 0;var r=Li(e)?e:Li(t)?t:{};return this.configuration().getValue(n,r,null)};e.prototype.updateValue=function(e,t,n,r){this.configuration().updateValue(e,t);return Promise.resolve()};return e}();var xi=function(){function e(e){var t=this;this.configurationService=e;this._onDidChangeConfigurationEmitter=new c["a"];this.configurationService.onDidChangeConfiguration(function(e){t._onDidChangeConfigurationEmitter.fire(e)})}e.prototype.getValue=function(e,t,n){var r;var i=(f["a"].isIPosition(t)?t:null)?"string"==typeof n?n:void 0:"string"==typeof t?t:void 0;return this.configurationService.getValue(i)};return e}();var Ni=function(){function e(e){this.configurationService=e}e.prototype.getEOL=function(e){var t=this.configurationService.getValue("files");if(t&&t.eol&&"auto"!==t.eol)return t.eol;return i["c"]||i["d"]?"\n":"\r\n"};return e=pi([gi(0,Tr)],e)}();var Mi=function(){function e(e){this._commandService=e}e.prototype.createMenu=function(e,t){return new Er(e,r["b"].as(!0),this._commandService,t)};return e}();var Di=function(){function e(){}e.prototype.publicLog=function(e,t){return r["b"].wrap(null)};return e}();var ki=function(){function e(){var t=h["a"].from({scheme:e.SCHEME,authority:"model",path:"/"});this.workspace={id:"4064f6ec-cb38-4ad0-af64-ee6467e63c82",folders:[new hi({uri:t,name:"",index:0})]}}e.prototype.getWorkspace=function(){return this.workspace};e.prototype.getWorkspaceFolder=function(t){return t&&t.scheme===e.SCHEME?this.workspace.folders[0]:void 0};e.SCHEME="inmemory";return e}();function Oi(e,t,n){if(!t)return;if(!(e instanceof Ii))return;Object.keys(t).forEach(function(r){Ir(r)&&e.updateValue("editor."+r,t[r]);n&&xr(r)&&e.updateValue("diffEditor."+r,t[r])})}var Ei=function(){function e(e){this._modelService=e}e.prototype.apply=function(e,t){var n=new Map;for(var r=0,i=e.edits;r<i.length;r++){var o=i[r];if(!Object(Ve["w"])(o))return Promise.reject(new Error("bad edit - only text edits are supported"));var a=this._modelService.getModel(o.resource);if(!a)return Promise.reject(new Error("bad edit - model not found"));var s=n.get(a);s||(s=[]);n.set(a,s.concat(o.edits))}var u=0;var l=0;n.forEach(function(e,t){t.applyEdits(e.map(function(e){return Nr.replaceMove(p["a"].lift(e.range),e.text)}));l+=1;u+=e.length});return Promise.resolve({selection:void 0,ariaSummary:Object(Bn["a"])("summary","Made {0} edits in {1} files",u,l)})};return e}();var Ti=function(){function e(){}e.prototype.getUriLabel=function(e,t){if("file"===e.scheme)return e.fsPath;return e.path};return e}();var Ai=n("aBfO");var Ri=n("E6CA");var Pi=n("zE4A");var ji=n("gv4i");var Wi=function(){function e(e,t){this.chr=e;this.type=t;this.width=0}e.prototype.fulfill=function(e){this.width=e};return e}();var Fi=function(){function e(e,t){this._bareFontInfo=e;this._requests=t;this._container=null;this._testElements=null}e.prototype.read=function(){this._createDomElements();document.body.appendChild(this._container);this._readFromDomElements();document.body.removeChild(this._container);this._container=null;this._testElements=null};e.prototype._createDomElements=function(){var t=document.createElement("div");t.style.position="absolute";t.style.top="-50000px";t.style.width="50000px";var n=document.createElement("div");n.style.fontFamily=this._bareFontInfo.getMassagedFontFamily();n.style.fontWeight=this._bareFontInfo.fontWeight;n.style.fontSize=this._bareFontInfo.fontSize+"px";n.style.lineHeight=this._bareFontInfo.lineHeight+"px";n.style.letterSpacing=this._bareFontInfo.letterSpacing+"px";t.appendChild(n);var r=document.createElement("div");r.style.fontFamily=this._bareFontInfo.getMassagedFontFamily();r.style.fontWeight="bold";r.style.fontSize=this._bareFontInfo.fontSize+"px";r.style.lineHeight=this._bareFontInfo.lineHeight+"px";r.style.letterSpacing=this._bareFontInfo.letterSpacing+"px";t.appendChild(r);var i=document.createElement("div");i.style.fontFamily=this._bareFontInfo.getMassagedFontFamily();i.style.fontWeight=this._bareFontInfo.fontWeight;i.style.fontSize=this._bareFontInfo.fontSize+"px";i.style.lineHeight=this._bareFontInfo.lineHeight+"px";i.style.letterSpacing=this._bareFontInfo.letterSpacing+"px";i.style.fontStyle="italic";t.appendChild(i);var o=[];for(var a=0,s=this._requests.length;a<s;a++){var u=this._requests[a];var l=void 0;0===u.type&&(l=n);2===u.type&&(l=r);1===u.type&&(l=i);l.appendChild(document.createElement("br"));var c=document.createElement("span");e._render(c,u);l.appendChild(c);o[a]=c}this._container=t;this._testElements=o};e._render=function(e,t){if(" "===t.chr){var n=" ";for(var r=0;r<8;r++)n+=n;e.innerHTML=n}else{var i=t.chr;for(var r=0;r<8;r++)i+=i;e.textContent=i}};e.prototype._readFromDomElements=function(){for(var e=0,t=this._requests.length;e<t;e++){var n=this._requests[e];var r=this._testElements[e];n.fulfill(r.offsetWidth/256)}};return e}();function zi(e,t){var n;new Fi(e,t).read()}var Vi=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Bi=function(e){Vi(t,e);function t(t,n){var r=e.call(this)||this;r.referenceDomElement=t;r.changeCallback=n;r.measureReferenceDomElementToken=-1;r.width=-1;r.height=-1;r.measureReferenceDomElement(!1);return r}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(){if(-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;var r=0;if(t){n=t.width;r=t.height}else if(this.referenceDomElement){n=this.referenceDomElement.clientWidth;r=this.referenceDomElement.clientHeight}n=Math.max(5,n);r=Math.max(5,r);if(this.width!==n||this.height!==r){this.width=n;this.height=r;e&&this.changeCallback()}};return t}(me["a"]);var Hi=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Ui=function(){function e(){this._keys=Object.create(null);this._values=Object.create(null)}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 n=e.getId();this._keys[n]=e;this._values[n]=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]})};return e}();var Zi=function(e){Hi(t,e);function t(){var t=e.call(this)||this;t._onDidChange=t._register(new c["a"]);t.onDidChange=t._onDidChange.event;t._cache=new Ui;t._evictUntrustedReadingsTimeout=-1;return t}t.prototype.dispose=function(){if(-1!==this._evictUntrustedReadingsTimeout){clearTimeout(this._evictUntrustedReadingsTimeout);this._evictUntrustedReadingsTimeout=-1}e.prototype.dispose.call(this)};t.prototype._writeToCache=function(e,t){var n=this;this._cache.put(e,t);t.isTrusted||-1!==this._evictUntrustedReadingsTimeout||(this._evictUntrustedReadingsTimeout=setTimeout(function(){n._evictUntrustedReadingsTimeout=-1;n._evictUntrustedReadings()},5e3))};t.prototype._evictUntrustedReadings=function(){var e=this._cache.getValues();var t=!1;for(var n=0,r=e.length;n<r;n++){var i=e[n];if(!i.isTrusted){t=!0;this._cache.remove(i)}}t&&this._onDidChange.fire()};t.prototype.readConfiguration=function(e){if(!this._cache.has(e)){var n=t._actualReadConfiguration(e);(n.typicalHalfwidthCharacterWidth<=2||n.typicalFullwidthCharacterWidth<=2||n.spaceWidth<=2||n.maxDigitWidth<=2)&&(n=new Pe({zoomLevel:Ai["d"](),fontFamily:n.fontFamily,fontWeight:n.fontWeight,fontSize:n.fontSize,lineHeight:n.lineHeight,letterSpacing:n.letterSpacing,isMonospace:n.isMonospace,typicalHalfwidthCharacterWidth:Math.max(n.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(n.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:n.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(n.spaceWidth,5),maxDigitWidth:Math.max(n.maxDigitWidth,5)},!1));this._writeToCache(e,n)}return this._cache.get(e)};t.createRequest=function(e,t,n,r){var i=new Wi(e,t);n.push(i);r&&r.push(i);return i};t._actualReadConfiguration=function(e){var t=[];var n=[];var r=this.createRequest("n",0,t,n);var i=this.createRequest("m",0,t,null);var o=this.createRequest(" ",0,t,n);var a=this.createRequest("0",0,t,n);var s=this.createRequest("1",0,t,n);var u=this.createRequest("2",0,t,n);var l=this.createRequest("3",0,t,n);var c=this.createRequest("4",0,t,n);var d=this.createRequest("5",0,t,n);var h=this.createRequest("6",0,t,n);var f=this.createRequest("7",0,t,n);var p=this.createRequest("8",0,t,n);var g=this.createRequest("9",0,t,n);var v=this.createRequest("→",0,t,n);var m=this.createRequest("→",0,t,null);this.createRequest("·",0,t,n);this.createRequest("|",0,t,n);this.createRequest("/",0,t,n);this.createRequest("-",0,t,n);this.createRequest("_",0,t,n);this.createRequest("i",0,t,n);this.createRequest("l",0,t,n);this.createRequest("m",0,t,n);this.createRequest("|",1,t,n);this.createRequest("_",1,t,n);this.createRequest("i",1,t,n);this.createRequest("l",1,t,n);this.createRequest("m",1,t,n);this.createRequest("n",1,t,n);this.createRequest("|",2,t,n);this.createRequest("_",2,t,n);this.createRequest("i",2,t,n);this.createRequest("l",2,t,n);this.createRequest("m",2,t,n);this.createRequest("n",2,t,n);zi(e,t);var _=Math.max(a.width,s.width,u.width,l.width,c.width,d.width,h.width,f.width,p.width,g.width);var y=!0;var b=n[0].width;for(var C=1,w=n.length;C<w;C++){var S=b-n[C].width;if(S<-.001||S>.001){y=!1;break}}var L=!0;y&&m.width!==b&&(L=!1);m.width>v.width&&(L=!1);var I=Ai["c"]()>2e3;return new Pe({zoomLevel:Ai["d"](),fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:y,typicalHalfwidthCharacterWidth:r.width,typicalFullwidthCharacterWidth:i.width,canUseHalfwidthRightwardsArrow:L,spaceWidth:o.width,maxDigitWidth:_},I)};t.INSTANCE=new t;return t}(me["a"]);var Gi=function(e){Hi(t,e);function t(t,n){void 0===n&&(n=null);var r=e.call(this,t)||this;r._elementSizeObserver=r._register(new Bi(n,function(){return r._onReferenceDomElementSizeChanged()}));r._register(Zi.INSTANCE.onDidChange(function(){return r._onCSSBasedConfigurationChanged()}));r._validatedOptions.automaticLayout&&r._elementSizeObserver.startObserving();r._register(Ai["p"](function(e){return r._recomputeOptions()}));r._register(Ai["o"](function(){return r._recomputeOptions()}));r._recomputeOptions();return r}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="";Ai["k"]?e+="ie ":Ai["j"]?e+="ff ":Ai["g"]?e+="edge ":Ai["m"]&&(e+="safari ");i["d"]&&(e+="mac ");return e};t.prototype._getEnvConfiguration=function(){return{extraEditorClassName:this._getExtraEditorClassName(),outerWidth:this._elementSizeObserver.getWidth(),outerHeight:this._elementSizeObserver.getHeight(),emptySelectionClipboard:Ai["n"]||Ai["j"],pixelRatio:Ai["b"](),zoomLevel:Ai["d"](),accessibilitySupport:Ai["a"]()}};t.prototype.readConfiguration=function(e){return Zi.INSTANCE.readConfiguration(e)};return t}(br);var Yi=n("jlTA");var Ki=function(){function e(e){this.domNode=e;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}e.prototype.setMaxWidth=function(e){if(this._maxWidth===e)return;this._maxWidth=e;this.domNode.style.maxWidth=this._maxWidth+"px"};e.prototype.setWidth=function(e){if(this._width===e)return;this._width=e;this.domNode.style.width=this._width+"px"};e.prototype.setHeight=function(e){if(this._height===e)return;this._height=e;this.domNode.style.height=this._height+"px"};e.prototype.setTop=function(e){if(this._top===e)return;this._top=e;this.domNode.style.top=this._top+"px"};e.prototype.unsetTop=function(){if(-1===this._top)return;this._top=-1;this.domNode.style.top=""};e.prototype.setLeft=function(e){if(this._left===e)return;this._left=e;this.domNode.style.left=this._left+"px"};e.prototype.setBottom=function(e){if(this._bottom===e)return;this._bottom=e;this.domNode.style.bottom=this._bottom+"px"};e.prototype.setRight=function(e){if(this._right===e)return;this._right=e;this.domNode.style.right=this._right+"px"};e.prototype.setFontFamily=function(e){if(this._fontFamily===e)return;this._fontFamily=e;this.domNode.style.fontFamily=this._fontFamily};e.prototype.setFontWeight=function(e){if(this._fontWeight===e)return;this._fontWeight=e;this.domNode.style.fontWeight=this._fontWeight};e.prototype.setFontSize=function(e){if(this._fontSize===e)return;this._fontSize=e;this.domNode.style.fontSize=this._fontSize+"px"};e.prototype.setLineHeight=function(e){if(this._lineHeight===e)return;this._lineHeight=e;this.domNode.style.lineHeight=this._lineHeight+"px"};e.prototype.setLetterSpacing=function(e){if(this._letterSpacing===e)return;this._letterSpacing=e;this.domNode.style.letterSpacing=this._letterSpacing+"px"};e.prototype.setClassName=function(e){if(this._className===e)return;this._className=e;this.domNode.className=this._className};e.prototype.toggleClassName=function(e,t){K["N"](this.domNode,e,t);this._className=this.domNode.className};e.prototype.setDisplay=function(e){if(this._display===e)return;this._display=e;this.domNode.style.display=this._display};e.prototype.setPosition=function(e){if(this._position===e)return;this._position=e;this.domNode.style.position=this._position};e.prototype.setVisibility=function(e){if(this._visibility===e)return;this._visibility=e;this.domNode.style.visibility=this._visibility};e.prototype.setLayerHinting=function(e){if(this._layerHint===e)return;this._layerHint=e;this.domNode.style.willChange=this._layerHint?"transform":"auto"};e.prototype.setAttribute=function(e,t){this.domNode.setAttribute(e,t)};e.prototype.removeAttribute=function(e){this.domNode.removeAttribute(e)};e.prototype.appendChild=function(e){this.domNode.appendChild(e.domNode)};e.prototype.removeChild=function(e){this.domNode.removeChild(e.domNode)};return e}();function Qi(e){return new Ki(e)}var qi=n("eE02");var Ji=n("AAdS");var Xi=n("wHma");var $i=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function eo(e,t){var n=new Ji["b"](t);n.preventDefault();return{leftButton:n.leftButton,posx:n.posx,posy:n.posy}}var to=function(e){$i(t,e);function t(){var t=e.call(this)||this;t.hooks=[];t.mouseMoveEventMerger=null;t.mouseMoveCallback=null;t.onStopCallback=null;return t}t.prototype.dispose=function(){this.stopMonitoring(!1);e.prototype.dispose.call(this)};t.prototype.stopMonitoring=function(e){if(!this.isMonitoring())return;this.hooks=Object(me["d"])(this.hooks);this.mouseMoveEventMerger=null;this.mouseMoveCallback=null;var t=this.onStopCallback;this.onStopCallback=null;e&&t&&t()};t.prototype.isMonitoring=function(){return this.hooks.length>0};t.prototype.startMonitoring=function(e,t,n){var r=this;if(this.isMonitoring())return;this.mouseMoveEventMerger=e;this.mouseMoveCallback=t;this.onStopCallback=n;var i=Xi["a"].getSameOriginWindowChain();for(var o=0;o<i.length;o++){this.hooks.push(K["i"](i[o].window.document,"mousemove",function(e){return r.mouseMoveCallback(e)},function(e,t){return r.mouseMoveEventMerger(e,t)}));this.hooks.push(K["g"](i[o].window.document,"mouseup",function(e){return r.stopMonitoring(!0)}))}if(Xi["a"].hasDifferentOriginAncestor()){var a=i[i.length-1];this.hooks.push(K["g"](a.window.document,"mouseout",function(e){var t;"html"===new Ji["b"](e).target.tagName.toLowerCase()&&r.stopMonitoring(!0)}));this.hooks.push(K["g"](a.window.document,"mouseover",function(e){var t;"html"===new Ji["b"](e).target.tagName.toLowerCase()&&r.stopMonitoring(!0)}));this.hooks.push(K["g"](a.window.document.body,"mouseleave",function(e){r.stopMonitoring(!0)}))}};return t}(me["a"]);var no=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var ro=function(){function e(e,t){this.x=e;this.y=t}e.prototype.toClientCoordinates=function(){return new io(this.x-K["d"].scrollX,this.y-K["d"].scrollY)};return e}();var io=function(){function e(e,t){this.clientX=e;this.clientY=t}e.prototype.toPageCoordinates=function(){return new ro(this.clientX+K["d"].scrollX,this.clientY+K["d"].scrollY)};return e}();var oo=function(){function e(e,t,n,r){this.x=e;this.y=t;this.width=n;this.height=r}return e}();function ao(e){var t=K["t"](e);return new oo(t.left,t.top,t.width,t.height)}var so=function(e){no(t,e);function t(t,n){var r=e.call(this,t)||this;r.pos=new ro(r.posx,r.posy);r.editorPos=ao(n);return r}return t}(Ji["b"]);var uo=function(){function e(e){this._editorViewDomNode=e}e.prototype._create=function(e){return new so(e,this._editorViewDomNode)};e.prototype.onContextMenu=function(e,t){var n=this;return K["g"](e,"contextmenu",function(e){t(n._create(e))})};e.prototype.onMouseUp=function(e,t){var n=this;return K["g"](e,"mouseup",function(e){t(n._create(e))})};e.prototype.onMouseDown=function(e,t){var n=this;return K["g"](e,"mousedown",function(e){t(n._create(e))})};e.prototype.onMouseLeave=function(e,t){var n=this;return K["h"](e,function(e){t(n._create(e))})};e.prototype.onMouseMoveThrottled=function(e,t,n,r){var i=this;var o=function(e,t){return n(e,i._create(t))};return K["i"](e,"mousemove",t,o,r)};return e}();var lo=function(e){no(t,e);function t(t){var n=e.call(this)||this;n._editorViewDomNode=t;n._globalMouseMoveMonitor=n._register(new to);n._keydownListener=null;return n}t.prototype.startMonitoring=function(e,t,n){var r=this;this._keydownListener=K["j"](document,"keydown",function(e){var t;if(e.toKeybinding().isModifierKey())return;r._globalMouseMoveMonitor.stopMonitoring(!0)},!0);var i=function(t,n){return e(t,new so(n,r._editorViewDomNode))};this._globalMouseMoveMonitor.startMonitoring(i,t,function(){r._keydownListener.dispose();n()})};return t}(me["a"]);var co=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var ho=function(e){co(t,e);function t(){var t=e.call(this)||this;t._shouldRender=!0;return t}t.prototype.shouldRender=function(){return this._shouldRender};t.prototype.forceShouldRender=function(){this._shouldRender=!0};t.prototype.setShouldRender=function(){this._shouldRender=!0};t.prototype.onDidRender=function(){this._shouldRender=!1};t.prototype.onConfigurationChanged=function(e){return!1};t.prototype.onCursorStateChanged=function(e){return!1};t.prototype.onDecorationsChanged=function(e){return!1};t.prototype.onFlushed=function(e){return!1};t.prototype.onFocusChanged=function(e){return!1};t.prototype.onLanguageConfigurationChanged=function(e){return!1};t.prototype.onLineMappingChanged=function(e){return!1};t.prototype.onLinesChanged=function(e){return!1};t.prototype.onLinesDeleted=function(e){return!1};t.prototype.onLinesInserted=function(e){return!1};t.prototype.onRevealRangeRequest=function(e){return!1};t.prototype.onScrollChanged=function(e){return!1};t.prototype.onTokensChanged=function(e){return!1};t.prototype.onTokensColorsChanged=function(e){return!1};t.prototype.onZonesChanged=function(e){return!1};t.prototype.onThemeChanged=function(e){return!1};t.prototype.handleEvents=function(e){var t=!1;for(var n=0,r=e.length;n<r;n++){var i=e[n];switch(i.type){case 1:this.onConfigurationChanged(i)&&(t=!0);break;case 2:this.onCursorStateChanged(i)&&(t=!0);break;case 3:this.onDecorationsChanged(i)&&(t=!0);break;case 4:this.onFlushed(i)&&(t=!0);break;case 5:this.onFocusChanged(i)&&(t=!0);break;case 16:this.onLanguageConfigurationChanged(i)&&(t=!0);break;case 6:this.onLineMappingChanged(i)&&(t=!0);break;case 7:this.onLinesChanged(i)&&(t=!0);break;case 8:this.onLinesDeleted(i)&&(t=!0);break;case 9:this.onLinesInserted(i)&&(t=!0);break;case 10:this.onRevealRangeRequest(i)&&(t=!0);break;case 11:this.onScrollChanged(i)&&(t=!0);break;case 12:this.onTokensChanged(i)&&(t=!0);break;case 13:this.onTokensColorsChanged(i)&&(t=!0);break;case 14:this.onZonesChanged(i)&&(t=!0);break;case 15:this.onThemeChanged(i)&&(t=!0);break;default:console.info("View received unknown event: ");console.info(i)}}t&&(this._shouldRender=!0)};return t}(me["a"]);var fo=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var po=function(e){fo(t,e);function t(t){var n=e.call(this)||this;n._context=t;n._context.addEventHandler(n);return n}t.prototype.dispose=function(){this._context.removeEventHandler(this);e.prototype.dispose.call(this)};return t}(ho);var go=function(){function e(){}e.write=function(e,t){e.setAttribute("data-mprt",String(t))};e.read=function(e){var t=e.getAttribute("data-mprt");if(null===t)return 0;return parseInt(t,10)};e.collect=function(e,t){var n=[],r=0;for(;e&&e!==document.body&&e!==t;){e.nodeType===e.ELEMENT_NODE&&(n[r++]=this.read(e));e=e.parentElement}var i=new Uint8Array(r);for(var o=0;o<r;o++)i[o]=n[r-o-1];return i};return e}();var vo=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var mo;var _o=function(e){vo(t,e);function t(t,n,r){var i=e.call(this,t,n)||this;i._viewLines=r;return i}t.prototype.linesVisibleRangesForRange=function(e,t){return this._viewLines.linesVisibleRangesForRange(e,t)};t.prototype.visibleRangeForPosition=function(e){return this._viewLines.visibleRangeForPosition(e)};return t}(function(){function e(e,t){this._viewLayout=e;this.viewportData=t;this.scrollWidth=this._viewLayout.getScrollWidth();this.scrollHeight=this._viewLayout.getScrollHeight();this.visibleRange=this.viewportData.visibleRange;this.bigNumbersDelta=this.viewportData.bigNumbersDelta;var n=this._viewLayout.getCurrentViewport();this.scrollTop=n.top;this.scrollLeft=n.left;this.viewportWidth=n.width;this.viewportHeight=n.height}e.prototype.getScrolledTopFromAbsoluteTop=function(e){return e-this.scrollTop};e.prototype.getVerticalOffsetForLineNumber=function(e){return this._viewLayout.getVerticalOffsetForLineNumber(e)};e.prototype.getDecorationsInViewport=function(){return this.viewportData.getDecorationsInViewport()};return e}());var yo=function(){function e(e,t){this.lineNumber=e;this.ranges=t}return e}();var bo=function(){function e(e,t){this.left=Math.round(e);this.width=Math.round(t)}e.prototype.toString=function(){return"["+this.left+","+this.width+"]"};return e}();var Co=function(){function e(e,t){this.left=e;this.width=t}e.prototype.toString=function(){return"["+this.left+","+this.width+"]"};e.compare=function(e,t){return e.left-t.left};return e}();var wo=function(){function e(){}e._createRange=function(){this._handyReadyRange||(this._handyReadyRange=document.createRange());return this._handyReadyRange};e._detachRange=function(e,t){e.selectNodeContents(t)};e._readClientRects=function(e,t,n,r,i){var o=this._createRange();try{o.setStart(e,t);o.setEnd(n,r);return o.getClientRects()}catch(e){return null}finally{this._detachRange(o,i)}};e._mergeAdjacentRanges=function(e){if(1===e.length)return[new bo(e[0].left,e[0].width)];e.sort(Co.compare);var t=[],n=0;var r=e[0].left;var i=e[0].width;for(var o=1,a=e.length;o<a;o++){var s=e[o];var u=s.left;var l=s.width;if(r+i+.9>=u)i=Math.max(i,u+l-r);else{t[n++]=new bo(r,i);r=u;i=l}}t[n++]=new bo(r,i);return t};e._createHorizontalRangesFromClientRects=function(e,t){if(!e||0===e.length)return null;var n=[];for(var r=0,i=e.length;r<i;r++){var o=e[r];n[r]=new Co(Math.max(0,o.left-t),o.width)}return this._mergeAdjacentRanges(n)};e.readHorizontalRanges=function(e,t,n,r,i,o,a){var s=0;var u=e.children.length-1;if(0>u)return null;if((t=Math.min(u,Math.max(0,t)))!==(r=Math.min(u,Math.max(0,r)))&&r>0&&0===i){r--;i=Number.MAX_VALUE}var l=e.children[t].firstChild;var c=e.children[r].firstChild;if(!l||!c){if(!l&&0===n&&t>0){l=e.children[t-1].firstChild;n=1073741824}if(!c&&0===i&&r>0){c=e.children[r-1].firstChild;i=1073741824}}if(!l||!c)return null;n=Math.min(l.textContent.length,Math.max(0,n));i=Math.min(c.textContent.length,Math.max(0,i));var d=this._readClientRects(l,n,c,i,a);return this._createHorizontalRangesFromClientRects(d,o)};return e}();var So=n("54i4");var Lo=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Io=function(){if(i["e"])return!0;if(i["c"]||Ai["j"]||Ai["m"])return!1;return!0}();var xo=Ai["h"];var No=function(){function e(e,t){this._domNode=e;this._clientRectDeltaLeft=0;this._clientRectDeltaLeftRead=!1;this.endNode=t}Object.defineProperty(e.prototype,"clientRectDeltaLeft",{get:function(){if(!this._clientRectDeltaLeftRead){this._clientRectDeltaLeftRead=!0;this._clientRectDeltaLeft=this._domNode.getBoundingClientRect().left}return this._clientRectDeltaLeft},enumerable:!0,configurable:!0});return e}();var Mo=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}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};return e}();var Do=function(){function e(e){this._options=e;this._isMaybeInvalid=!0;this._renderedViewLine=null}e.prototype.getDomNode=function(){if(this._renderedViewLine&&this._renderedViewLine.domNode)return this._renderedViewLine.domNode.domNode;return 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=Qi(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(){if(xo||this._options.themeType===So["b"]){this._isMaybeInvalid=!0;return!0}return!1};e.prototype.renderLine=function(t,n,r,i){if(!1===this._isMaybeInvalid)return!1;this._isMaybeInvalid=!1;var o=r.getViewLineRenderingData(t);var a=this._options;var s=pn.filter(o.inlineDecorations,t,o.minColumn,o.maxColumn);if(xo||a.themeType===So["b"]){var u=r.selections;for(var l=0,c=u.length;l<c;l++){var d=u[l];if(d.endLineNumber<t||d.startLineNumber>t)continue;var h=d.startLineNumber===t?d.startColumn:o.minColumn;var f=d.endLineNumber===t?d.endColumn:o.maxColumn;h<f&&s.push(new pn(h,f,"inline-selected-text",0))}}var p=new yn(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(p))return!1;i.appendASCIIString('<div style="top:');i.appendASCIIString(String(n));i.appendASCIIString("px;height:");i.appendASCIIString(String(this._options.lineHeight));i.appendASCIIString('px;" class="');i.appendASCIIString(e.CLASS_NAME);i.appendASCIIString('">');var g=wn(p,i);i.appendASCIIString("</div>");var v=null;Io&&o.isBasicASCII&&a.useMonospaceOptimizations&&0===g.containsForeignElements&&o.content.length<300&&p.lineTokens.getCount()<100&&(v=new ko(this._renderedViewLine?this._renderedViewLine.domNode:null,p,g.characterMapping));v||(v=To(this._renderedViewLine?this._renderedViewLine.domNode:null,p,g.characterMapping,g.containsRTL,g.containsForeignElements));this._renderedViewLine=v;return!0};e.prototype.layoutLine=function(e,t){if(this._renderedViewLine&&this._renderedViewLine.domNode){this._renderedViewLine.domNode.setTop(t);this._renderedViewLine.domNode.setHeight(this._options.lineHeight)}};e.prototype.getWidth=function(){if(!this._renderedViewLine)return 0;return this._renderedViewLine.getWidth()};e.prototype.getWidthIsFast=function(){if(!this._renderedViewLine)return!0;return this._renderedViewLine.getWidthIsFast()};e.prototype.getVisibleRangesForRange=function(e,t,n){if(!this._renderedViewLine)return null;e|=0;t|=0;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 r=0|this._renderedViewLine.input.stopRenderingLineAfter;if(-1!==r&&e>r&&t>r)return null;-1!==r&&e>r&&(e=r);-1!==r&&t>r&&(t=r);return this._renderedViewLine.getVisibleRangesForRange(e,t,n)};e.prototype.getColumnOfNodeOffset=function(e,t,n){if(!this._renderedViewLine)return 1;return this._renderedViewLine.getColumnOfNodeOffset(e,t,n)};e.CLASS_NAME="view-line";return e}();var ko=function(){function e(e,t,n){this.domNode=e;this.input=t;this._characterMapping=n;this._charWidth=t.spaceWidth}e.prototype.getWidth=function(){return this._getCharPosition(this._characterMapping.length)};e.prototype.getWidthIsFast=function(){return!0};e.prototype.getVisibleRangesForRange=function(e,t,n){var r=this._getCharPosition(e);var i=this._getCharPosition(t);return[new bo(r,i-r)]};e.prototype._getCharPosition=function(e){var t=this._characterMapping.getAbsoluteOffsets();if(0===t.length)return 0;return Math.round(this._charWidth*t[e-1])};e.prototype.getColumnOfNodeOffset=function(e,t,n){var r=t.textContent.length;var i=-1;for(;t;){t=t.previousSibling;i++}var o;return this._characterMapping.partDataToCharOffset(i,r,n)+1};return e}();var Oo=function(){function e(e,t,n,r,i){this.domNode=e;this.input=t;this._characterMapping=n;this._isWhitespaceOnly=/^\s*$/.test(t.lineContent);this._containsForeignElements=i;this._cachedWidth=-1;this._pixelOffsetCache=null;if(!r||0===this._characterMapping.length){this._pixelOffsetCache=new Int32Array(Math.max(2,this._characterMapping.length+1));for(var o=0,a=this._characterMapping.length;o<=a;o++)this._pixelOffsetCache[o]=-1}}e.prototype._getReadingTarget=function(){return this.domNode.domNode.firstChild};e.prototype.getWidth=function(){-1===this._cachedWidth&&(this._cachedWidth=this._getReadingTarget().offsetWidth);return this._cachedWidth};e.prototype.getWidthIsFast=function(){if(-1===this._cachedWidth)return!1;return!0};e.prototype.getVisibleRangesForRange=function(e,t,n){if(null!==this._pixelOffsetCache){var r=this._readPixelOffset(e,n);if(-1===r)return null;var i=this._readPixelOffset(t,n);if(-1===i)return null;return[new bo(r,i-r)]}return this._readVisibleRangesForRange(e,t,n)};e.prototype._readVisibleRangesForRange=function(e,t,n){if(e===t){var r=this._readPixelOffset(e,n);return-1===r?null:[new bo(r,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 r=this._actualReadPixelOffset(e,t);this._pixelOffsetCache[e]=r;return r}return this._actualReadPixelOffset(e,t)};e.prototype._actualReadPixelOffset=function(e,t){if(0===this._characterMapping.length){var n=wo.readHorizontalRanges(this._getReadingTarget(),0,0,0,0,t.clientRectDeltaLeft,t.endNode);if(!n||0===n.length)return-1;return n[0].left}if(e===this._characterMapping.length&&this._isWhitespaceOnly&&0===this._containsForeignElements)return this.getWidth();var r=this._characterMapping.charOffsetToPartData(e-1);var i=bn.getPartIndex(r);var o=bn.getCharIndex(r);var a=wo.readHorizontalRanges(this._getReadingTarget(),i,o,i,o,t.clientRectDeltaLeft,t.endNode);if(!a||0===a.length)return-1;return a[0].left};e.prototype._readRawVisibleRangesForRange=function(e,t,n){if(1===e&&t===this._characterMapping.length)return[new bo(0,this.getWidth())];var r=this._characterMapping.charOffsetToPartData(e-1);var i=bn.getPartIndex(r);var o=bn.getCharIndex(r);var a=this._characterMapping.charOffsetToPartData(t-1);var s=bn.getPartIndex(a);var u=bn.getCharIndex(a);return wo.readHorizontalRanges(this._getReadingTarget(),i,o,s,u,n.clientRectDeltaLeft,n.endNode)};e.prototype.getColumnOfNodeOffset=function(e,t,n){var r=t.textContent.length;var i=-1;for(;t;){t=t.previousSibling;i++}var o;return this._characterMapping.partDataToCharOffset(i,r,n)+1};return e}();var Eo=function(e){Lo(t,e);function t(){return null!==e&&e.apply(this,arguments)||this}t.prototype._readVisibleRangesForRange=function(t,n,r){var i=e.prototype._readVisibleRangesForRange.call(this,t,n,r);if(!i||0===i.length||t===n||1===t&&n===this._characterMapping.length)return i;if(!this.input.containsRTL){var o=this._readPixelOffset(n,r);if(-1!==o){var a=i[i.length-1];a.left<o&&(a.width=o-a.left)}}return i};return t}(Oo);var To=function(){if(Ai["n"])return Ao;return Ro}();function Ao(e,t,n,r,i){return new Eo(e,t,n,r,i)}function Ro(e,t,n,r,i){return new Oo(e,t,n,r,i)}var Po=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var jo=function(){function e(e,t,n,r,i,o){void 0===n&&(n=0);void 0===r&&(r=null);void 0===i&&(i=null);void 0===o&&(o=null);this.element=e;this.type=t;this.mouseColumn=n;this.position=r;!i&&r&&(i=new p["a"](r.lineNumber,r.column,r.lineNumber,r.column));this.range=i;this.detail=o}e._typeToString=function(e){if(1===e)return"TEXTAREA";if(2===e)return"GUTTER_GLYPH_MARGIN";if(3===e)return"GUTTER_LINE_NUMBERS";if(4===e)return"GUTTER_LINE_DECORATIONS";if(5===e)return"GUTTER_VIEW_ZONE";if(6===e)return"CONTENT_TEXT";if(7===e)return"CONTENT_EMPTY";if(8===e)return"CONTENT_VIEW_ZONE";if(9===e)return"CONTENT_WIDGET";if(10===e)return"OVERVIEW_RULER";if(11===e)return"SCROLLBAR";if(12===e)return"OVERLAY_WIDGET";return"UNKNOWN"};e.toString=function(e){return this._typeToString(e.type)+": "+e.position+" - "+e.range+" - "+e.detail};e.prototype.toString=function(){return e.toString(this)};return e}();var Wo=function(){function e(){}e.isTextArea=function(e){return 2===e.length&&3===e[0]&&6===e[1]};e.isChildOfViewLines=function(e){return e.length>=4&&3===e[0]&&7===e[3]};e.isStrictChildOfViewLines=function(e){return e.length>4&&3===e[0]&&7===e[3]};e.isChildOfScrollableElement=function(e){return e.length>=2&&3===e[0]&&5===e[1]};e.isChildOfMinimap=function(e){return e.length>=2&&3===e[0]&&8===e[1]};e.isChildOfContentWidgets=function(e){return e.length>=4&&3===e[0]&&1===e[3]};e.isChildOfOverflowingContentWidgets=function(e){return e.length>=1&&2===e[0]};e.isChildOfOverlayWidgets=function(e){return e.length>=2&&3===e[0]&&4===e[1]};return e}();var Fo=function(){function e(e,t,n){this.model=e.model;this.layoutInfo=e.configuration.editor.layoutInfo;this.viewDomNode=t.viewDomNode;this.lineHeight=e.configuration.editor.lineHeight;this.typicalHalfwidthCharacterWidth=e.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth;this.lastViewCursorsRenderData=n;this._context=e;this._viewHelper=t}e.prototype.getZoneAtCoord=function(t){return e.getZoneAtCoord(this._context,t)};e.getZoneAtCoord=function(e,t){var n=e.viewLayout.getWhitespaceAtVerticalOffset(t);if(n){var r=n.verticalOffset+n.height/2,i=e.model.getLineCount(),o=null,a=void 0,s=null;n.afterLineNumber!==i&&(s=new f["a"](n.afterLineNumber+1,1));n.afterLineNumber>0&&(o=new f["a"](n.afterLineNumber,e.model.getLineMaxColumn(n.afterLineNumber)));a=null===s?o:null===o?s:t<r?o:s;return{viewZoneId:n.id,afterLineNumber:n.afterLineNumber,positionBefore:o,positionAfter:s,position:a}}return null};e.prototype.getFullLineRangeAtCoord=function(e){if(this._context.viewLayout.isAfterLines(e)){var t=this._context.model.getLineCount();var n=this._context.model.getLineMaxColumn(t);return{range:new p["a"](t,n,t,n),isAfterLines:!0}}var r=this._context.viewLayout.getLineNumberAtVerticalOffset(e);var i=this._context.model.getLineMaxColumn(r);return{range:new p["a"](r,1,r,i),isAfterLines:!1}};e.prototype.getLineNumberAtVerticalOffset=function(e){return this._context.viewLayout.getLineNumberAtVerticalOffset(e)};e.prototype.isAfterLines=function(e){return this._context.viewLayout.isAfterLines(e)};e.prototype.getVerticalOffsetForLineNumber=function(e){return this._context.viewLayout.getVerticalOffsetForLineNumber(e)};e.prototype.findAttribute=function(t,n){return e._findAttribute(t,n,this._viewHelper.viewDomNode)};e._findAttribute=function(e,t,n){for(;e&&e!==document.body;){if(e.hasAttribute&&e.hasAttribute(t))return e.getAttribute(t);if(e===n)return null;e=e.parentNode}return null};e.prototype.getLineWidth=function(e){return this._viewHelper.getLineWidth(e)};e.prototype.visibleRangeForPosition2=function(e,t){return this._viewHelper.visibleRangeForPosition2(e,t)};e.prototype.getPositionFromDOMInfo=function(e,t){return this._viewHelper.getPositionFromDOMInfo(e,t)};e.prototype.getCurrentScrollTop=function(){return this._context.viewLayout.getCurrentScrollTop()};e.prototype.getCurrentScrollLeft=function(){return this._context.viewLayout.getCurrentScrollLeft()};return e}();var zo;var Vo=function(e){Po(t,e);function t(t,n,r,i){var o=e.call(this,t,n,r)||this;o._ctx=t;if(i){o.target=i;o.targetPath=go.collect(i,t.viewDomNode)}else{o.target=null;o.targetPath=new Uint8Array(0)}return o}t.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\ttarget: "+(this.target?this.target.outerHTML:null)};t.prototype.fulfill=function(e,t,n,r){void 0===t&&(t=null);void 0===n&&(n=null);void 0===r&&(r=null);return new jo(this.target,e,this.mouseColumn,t,n,r)};t.prototype.withTarget=function(e){return new t(this._ctx,this.editorPos,this.pos,e)};return t}(function(){function e(e,t,n){this.editorPos=t;this.pos=n;this.mouseVerticalOffset=Math.max(0,e.getCurrentScrollTop()+n.y-t.y);this.mouseContentHorizontalOffset=e.getCurrentScrollLeft()+n.x-t.x-e.layoutInfo.contentLeft;this.isInMarginArea=n.x-t.x<e.layoutInfo.contentLeft&&n.x-t.x>=e.layoutInfo.glyphMarginLeft;this.isInContentArea=!this.isInMarginArea;this.mouseColumn=Math.max(0,Uo._getMouseColumn(this.mouseContentHorizontalOffset,e.typicalHalfwidthCharacterWidth))}return e}());var Bo={isAfterLines:!0};function Ho(e){return{isAfterLines:!1,horizontalDistanceToText:e}}var Uo=function(){function e(e,t){this._context=e;this._viewHelper=t}e.prototype.mouseTargetIsWidget=function(e){var t=e.target;var n=go.collect(t,this._viewHelper.viewDomNode);if(Wo.isChildOfContentWidgets(n)||Wo.isChildOfOverflowingContentWidgets(n))return!0;if(Wo.isChildOfOverlayWidgets(n))return!0;return!1};e.prototype.createMouseTarget=function(t,n,r,i){var o=new Fo(this._context,this._viewHelper,t);var a=new Vo(o,n,r,i);try{var s;return e._createMouseTarget(o,a,!1)}catch(e){return a.fulfill(0)}};e._createMouseTarget=function(t,n,r){if(null===n.target){if(r)return n.fulfill(0);var i=e._doHitTest(t,n);if(i.position)return e.createMouseTargetFromHitTestPosition(t,n,i.position.lineNumber,i.position.column);return this._createMouseTarget(t,n.withTarget(i.hitTarget),!0)}var o=n;var a=null;return(a=(a=(a=(a=(a=(a=(a=(a=(a=(a=a||e._hitTestContentWidget(t,o))||e._hitTestOverlayWidget(t,o))||e._hitTestMinimap(t,o))||e._hitTestScrollbarSlider(t,o))||e._hitTestViewZone(t,o))||e._hitTestMargin(t,o))||e._hitTestViewCursor(t,o))||e._hitTestTextArea(t,o))||e._hitTestViewLines(t,o,r))||e._hitTestScrollbar(t,o))||n.fulfill(0)};e._hitTestContentWidget=function(e,t){if(Wo.isChildOfContentWidgets(t.targetPath)||Wo.isChildOfOverflowingContentWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(9,null,null,n):t.fulfill(0)}return null};e._hitTestOverlayWidget=function(e,t){if(Wo.isChildOfOverlayWidgets(t.targetPath)){var n=e.findAttribute(t.target,"widgetId");return n?t.fulfill(12,null,null,n):t.fulfill(0)}return null};e._hitTestViewCursor=function(e,t){if(t.target){var n;for(var r=0,i=(n=e.lastViewCursorsRenderData).length;r<i;r++){var o=n[r];if(t.target===o.domNode)return t.fulfill(6,o.position)}}if(t.isInContentArea){var n=e.lastViewCursorsRenderData;var a=t.mouseContentHorizontalOffset;var s=t.mouseVerticalOffset;for(var r=0,i=n.length;r<i;r++){var o;if(a<(o=n[r]).contentLeft)continue;if(a>o.contentLeft+o.width)continue;var u=e.getVerticalOffsetForLineNumber(o.position.lineNumber);if(u<=s&&s<=u+o.height)return t.fulfill(6,o.position)}}return null};e._hitTestViewZone=function(e,t){var n=e.getZoneAtCoord(t.mouseVerticalOffset);if(n){var r=t.isInContentArea?8:5;return t.fulfill(r,n.position,null,n)}return null};e._hitTestTextArea=function(e,t){if(Wo.isTextArea(t.targetPath))return t.fulfill(1);return null};e._hitTestMargin=function(e,t){if(t.isInMarginArea){var n=e.getFullLineRangeAtCoord(t.mouseVerticalOffset);var r=n.range.getStartPosition();var i=Math.abs(t.pos.x-t.editorPos.x);var o={isAfterLines:n.isAfterLines,glyphMarginLeft:e.layoutInfo.glyphMarginLeft,glyphMarginWidth:e.layoutInfo.glyphMarginWidth,lineNumbersWidth:e.layoutInfo.lineNumbersWidth,offsetX:i};if((i-=e.layoutInfo.glyphMarginLeft)<=e.layoutInfo.glyphMarginWidth)return t.fulfill(2,r,n.range,o);if((i-=e.layoutInfo.glyphMarginWidth)<=e.layoutInfo.lineNumbersWidth)return t.fulfill(3,r,n.range,o);i-=e.layoutInfo.lineNumbersWidth;return t.fulfill(4,r,n.range,o)}return null};e._hitTestViewLines=function(t,n,r){if(!Wo.isChildOfViewLines(n.targetPath))return null;if(t.isAfterLines(n.mouseVerticalOffset)){var i=t.model.getLineCount();var o=t.model.getLineMaxColumn(i);return n.fulfill(7,new f["a"](i,o),void 0,Bo)}if(r){if(Wo.isStrictChildOfViewLines(n.targetPath)){var a=t.getLineNumberAtVerticalOffset(n.mouseVerticalOffset);if(0===t.model.getLineLength(a)){var s=t.getLineWidth(a);var u=Ho(n.mouseContentHorizontalOffset-s);return n.fulfill(7,new f["a"](a,1),void 0,u)}}return n.fulfill(0)}var l=e._doHitTest(t,n);if(l.position)return e.createMouseTargetFromHitTestPosition(t,n,l.position.lineNumber,l.position.column);return this._createMouseTarget(t,n.withTarget(l.hitTarget),!0)};e._hitTestMinimap=function(e,t){if(Wo.isChildOfMinimap(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);var r=e.model.getLineMaxColumn(n);return t.fulfill(11,new f["a"](n,r))}return null};e._hitTestScrollbarSlider=function(e,t){if(Wo.isChildOfScrollableElement(t.targetPath)&&t.target&&1===t.target.nodeType){var n=t.target.className;if(n&&/\b(slider|scrollbar)\b/.test(n)){var r=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);var i=e.model.getLineMaxColumn(r);return t.fulfill(11,new f["a"](r,i))}}return null};e._hitTestScrollbar=function(e,t){if(Wo.isChildOfScrollableElement(t.targetPath)){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);var r=e.model.getLineMaxColumn(n);return t.fulfill(11,new f["a"](n,r))}return null};e.prototype.getMouseColumn=function(t,n){var r=this._context.configuration.editor.layoutInfo;var i=this._context.viewLayout.getCurrentScrollLeft()+n.x-t.x-r.contentLeft;return e._getMouseColumn(i,this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth)};e._getMouseColumn=function(e,t){if(e<0)return 1;var n;return Math.round(e/t)+1};e.createMouseTargetFromHitTestPosition=function(e,t,n,r){var i=new f["a"](n,r);var o=e.getLineWidth(n);if(t.mouseContentHorizontalOffset>o){if(Ai["g"]&&1===i.column){var a=Ho(t.mouseContentHorizontalOffset-o);return t.fulfill(7,new f["a"](n,e.model.getLineMaxColumn(n)),void 0,a)}var s=Ho(t.mouseContentHorizontalOffset-o);return t.fulfill(7,i,void 0,s)}var u=e.visibleRangeForPosition2(n,r);if(!u)return t.fulfill(0,i);var l=u.left;if(t.mouseContentHorizontalOffset===l)return t.fulfill(6,i);var c=[];c.push({offset:u.left,column:r});if(r>1){var d=e.visibleRangeForPosition2(n,r-1);d&&c.push({offset:d.left,column:r-1})}var h;if(r<e.model.getLineMaxColumn(n)){var g=e.visibleRangeForPosition2(n,r+1);g&&c.push({offset:g.left,column:r+1})}c.sort(function(e,t){return e.offset-t.offset});for(var v=1;v<c.length;v++){var m=c[v-1];var _=c[v];if(m.offset<=t.mouseContentHorizontalOffset&&t.mouseContentHorizontalOffset<=_.offset){var y=new p["a"](n,m.column,n,_.column);return t.fulfill(6,i,y)}}return t.fulfill(6,i)};e._doHitTestWithCaretRangeFromPoint=function(e,t){var n=e.getLineNumberAtVerticalOffset(t.mouseVerticalOffset);var r;var i=e.getVerticalOffsetForLineNumber(n)+Math.floor(e.lineHeight/2);var o=t.pos.y+(i-t.mouseVerticalOffset);o<=t.editorPos.y&&(o=t.editorPos.y+1);o>=t.editorPos.y+e.layoutInfo.height&&(o=t.editorPos.y+e.layoutInfo.height-1);var a=new ro(t.pos.x,o);var s=this._actualDoHitTestWithCaretRangeFromPoint(e,a.toClientCoordinates());if(s.position)return s;return this._actualDoHitTestWithCaretRangeFromPoint(e,t.pos.toClientCoordinates())};e._actualDoHitTestWithCaretRangeFromPoint=function(e,t){var n=document.caretRangeFromPoint(t.clientX,t.clientY);if(!n||!n.startContainer)return{position:null,hitTarget:null};var r=n.startContainer;var i=null;if(r.nodeType===r.TEXT_NODE){var o;var a;var s=(a=(o=r.parentNode)?o.parentNode:null)?a.parentNode:null;var u;if((s&&s.nodeType===s.ELEMENT_NODE?s.className:null)===Do.CLASS_NAME){var l;return{position:l=e.getPositionFromDOMInfo(o,n.startOffset),hitTarget:null}}i=r.parentNode}else if(r.nodeType===r.ELEMENT_NODE){var o;var a;var c;if(((a=(o=r.parentNode)?o.parentNode:null)&&a.nodeType===a.ELEMENT_NODE?a.className:null)===Do.CLASS_NAME){var l;return{position:l=e.getPositionFromDOMInfo(r,r.textContent.length),hitTarget:null}}i=r}return{position:null,hitTarget:i}};e._doHitTestWithCaretPositionFromPoint=function(e,t){var n=document.caretPositionFromPoint(t.clientX,t.clientY);if(n.offsetNode.nodeType===n.offsetNode.TEXT_NODE){var r=n.offsetNode.parentNode;var i=r?r.parentNode:null;var o=i?i.parentNode:null;var a;if((o&&o.nodeType===o.ELEMENT_NODE?o.className:null)===Do.CLASS_NAME){var s;return{position:e.getPositionFromDOMInfo(n.offsetNode.parentNode,n.offset),hitTarget:null}}return{position:null,hitTarget:n.offsetNode.parentNode}}return{position:null,hitTarget:n.offsetNode}};e._doHitTestWithMoveToPoint=function(e,t){var n=null;var r=null;var i=document.body.createTextRange();try{i.moveToPoint(t.clientX,t.clientY)}catch(e){return{position:null,hitTarget:null}}i.collapse(!0);var o=i?i.parentElement():null;var a=o?o.parentNode:null;var s=a?a.parentNode:null;var u;if((s&&s.nodeType===s.ELEMENT_NODE?s.className:"")===Do.CLASS_NAME){var l=i.duplicate();l.moveToElementText(o);l.setEndPoint("EndToStart",i);n=e.getPositionFromDOMInfo(o,l.text.length);l.moveToElementText(e.viewDomNode)}else r=o;i.moveToElementText(e.viewDomNode);return{position:n,hitTarget:r}};e._doHitTest=function(e,t){if(document.caretRangeFromPoint)return this._doHitTestWithCaretRangeFromPoint(e,t);if(document.caretPositionFromPoint)return this._doHitTestWithCaretPositionFromPoint(e,t.pos.toClientCoordinates());if(document.body.createTextRange)return this._doHitTestWithMoveToPoint(e,t.pos.toClientCoordinates());return{position:null,hitTarget:null}};return e}();var Zo=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Go(e){return function(t,n){var r=!1;e&&(r=e.mouseTargetIsWidget(n));r||n.preventDefault();return n}}var Yo=function(e){Zo(t,e);function t(n,r,i){var a=e.call(this)||this;a._isFocused=!1;a._context=n;a.viewController=r;a.viewHelper=i;a.mouseTargetFactory=new Uo(a._context,i);a._mouseDownOperation=a._register(new Ko(a._context,a.viewController,a.viewHelper,function(e,t){return a._createMouseTarget(e,t)},function(e){return a._getMouseColumn(e)}));a._asyncFocus=a._register(new o["c"](function(){return a.viewHelper.focusTextArea()},0));a.lastMouseLeaveTime=-1;var s=new uo(a.viewHelper.viewDomNode);a._register(s.onContextMenu(a.viewHelper.viewDomNode,function(e){return a._onContextMenu(e,!0)}));a._register(s.onMouseMoveThrottled(a.viewHelper.viewDomNode,function(e){return a._onMouseMove(e)},Go(a.mouseTargetFactory),t.MOUSE_MOVE_MINIMUM_TIME));a._register(s.onMouseUp(a.viewHelper.viewDomNode,function(e){return a._onMouseUp(e)}));a._register(s.onMouseLeave(a.viewHelper.viewDomNode,function(e){return a._onMouseLeave(e)}));a._register(s.onMouseDown(a.viewHelper.viewDomNode,function(e){return a._onMouseDown(e)}));var u=function(e){if(!a._context.configuration.editor.viewInfo.mouseWheelZoom)return;var t=new Ji["c"](e);if(t.browserEvent.ctrlKey||t.browserEvent.metaKey){var n=Ce.getZoomLevel();var r=t.deltaY>0?1:-1;Ce.setZoomLevel(n+r);t.preventDefault();t.stopPropagation()}};a._register(K["g"](a.viewHelper.viewDomNode,"mousewheel",u,!0));a._register(K["g"](a.viewHelper.viewDomNode,"DOMMouseScroll",u,!0));a._context.addEventHandler(a);return a}t.prototype.dispose=function(){this._context.removeEventHandler(this);e.prototype.dispose.call(this)};t.prototype.onCursorStateChanged=function(e){this._mouseDownOperation.onCursorStateChanged(e);return!1};t.prototype.onFocusChanged=function(e){this._isFocused=e.isFocused;return!1};t.prototype.onScrollChanged=function(e){this._mouseDownOperation.onScrollChanged();return!1};t.prototype.getTargetAtClientPoint=function(e,t){var n;var r=new io(e,t).toPageCoordinates();var i=ao(this.viewHelper.viewDomNode);if(r.y<i.y||r.y>i.y+i.height||r.x<i.x||r.x>i.x+i.width)return null;var o=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(o,i,r,null)};t.prototype._createMouseTarget=function(e,t){var n=this.viewHelper.getLastViewCursorsRenderData();return this.mouseTargetFactory.createMouseTarget(n,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())return;var t;if(e.timestamp<this.lastMouseLeaveTime)return;this.viewController.emitMouseMove({event:e,target:this._createMouseTarget(e,!0)})};t.prototype._onMouseLeave=function(e){this.lastMouseLeaveTime=(new Date).getTime();this.viewController.emitMouseLeave({event:e,target:null})};t.prototype._onMouseUp=function(e){this.viewController.emitMouseUp({event:e,target:this._createMouseTarget(e,!0)})};t.prototype._onMouseDown=function(e){var t=this;var n=this._createMouseTarget(e,!0);var r=6===n.type||7===n.type;var o=2===n.type||3===n.type||4===n.type;var a=3===n.type;var s=this._context.configuration.editor.viewInfo.selectOnLineNumbers;var u=8===n.type||5===n.type;var l=9===n.type;var c=e.leftButton||e.middleButton;i["d"]&&e.leftButton&&e.ctrlKey&&(c=!1);var d=function(){if(Ai["k"]&&!t._isFocused)t._asyncFocus.schedule();else{e.preventDefault();t.viewHelper.focusTextArea()}};if(c&&(r||a&&s)){d();this._mouseDownOperation.start(n.type,e)}else if(o)e.preventDefault();else if(u){var h=n.detail;if(this.viewHelper.shouldSuppressMouseDownOnViewZone(h.viewZoneId)){d();this._mouseDownOperation.start(n.type,e);e.preventDefault()}}else if(l&&this.viewHelper.shouldSuppressMouseDownOnWidget(n.detail)){d();e.preventDefault()}this.viewController.emitMouseDown({event:e,target:n})};t.MOUSE_MOVE_MINIMUM_TIME=100;return t}(ho);var Ko=function(e){Zo(t,e);function t(t,n,r,i,a){var s=e.call(this)||this;s._context=t;s._viewController=n;s._viewHelper=r;s._createMouseTarget=i;s._getMouseColumn=a;s._mouseMoveMonitor=s._register(new lo(s._viewHelper.viewDomNode));s._onScrollTimeout=s._register(new o["d"]);s._mouseState=new Qo;s._currentSelection=new g["a"](1,1,1,1);s._isActive=!1;s._lastMouseEvent=null;return s}t.prototype.dispose=function(){e.prototype.dispose.call(this)};t.prototype.isActive=function(){return this._isActive};t.prototype._onMouseDownThenMove=function(e){this._lastMouseEvent=e;this._mouseState.setModifiers(e);var t=this._findMousePosition(e,!0);if(!t)return;this._mouseState.isDragAndDrop?this._viewController.emitMouseDrag({event:e,target:t}):this._dispatchMouse(t,!0)};t.prototype.start=function(e,t){var n=this;this._lastMouseEvent=t;this._mouseState.setStartedOnLineNumbers(3===e);this._mouseState.setStartButtons(t);this._mouseState.setModifiers(t);var r=this._findMousePosition(t,!0);if(!r||!r.position)return;this._mouseState.trySetCount(t.detail,r.position);t.detail=this._mouseState.count;if(!this._context.configuration.editor.readOnly&&this._context.configuration.editor.dragAndDrop&&!this._mouseState.altKey&&t.detail<2&&!this._isActive&&!this._currentSelection.isEmpty()&&6===r.type&&r.position&&this._currentSelection.containsPosition(r.position)){this._mouseState.isDragAndDrop=!0;this._isActive=!0;this._mouseMoveMonitor.startMonitoring(Go(null),function(e){return n._onMouseDownThenMove(e)},function(){var e=n._findMousePosition(n._lastMouseEvent,!0);n._viewController.emitMouseDrop({event:n._lastMouseEvent,target:e?n._createMouseTarget(n._lastMouseEvent,!0):null});n._stop()});return}this._mouseState.isDragAndDrop=!1;this._dispatchMouse(r,t.shiftKey);if(!this._isActive){this._isActive=!0;this._mouseMoveMonitor.startMonitoring(Go(null),function(e){return n._onMouseDownThenMove(e)},function(){return n._stop()})}};t.prototype._stop=function(){this._isActive=!1;this._onScrollTimeout.cancel()};t.prototype.onScrollChanged=function(){var e=this;if(!this._isActive)return;this._onScrollTimeout.setIfNotSet(function(){if(!e._lastMouseEvent)return;var t=e._findMousePosition(e._lastMouseEvent,!1);if(!t)return;if(e._mouseState.isDragAndDrop)return;e._dispatchMouse(t,!0)},10)};t.prototype.onCursorStateChanged=function(e){this._currentSelection=e.selections[0]};t.prototype._getPositionOutsideEditor=function(e){var t=e.editorPos;var n=this._context.model;var r=this._context.viewLayout;var i=this._getMouseColumn(e);if(e.posy<t.y){var o=Math.max(r.getCurrentScrollTop()-(t.y-e.posy),0);var a;if(a=Fo.getZoneAtCoord(this._context,o)){var s;if(s=this._helpPositionJumpOverViewZone(a))return new jo(null,13,i,s)}var u=r.getLineNumberAtVerticalOffset(o);return new jo(null,13,i,new f["a"](u,1))}if(e.posy>t.y+t.height){var o=r.getCurrentScrollTop()+(e.posy-t.y);var a;if(a=Fo.getZoneAtCoord(this._context,o)){var s;if(s=this._helpPositionJumpOverViewZone(a))return new jo(null,13,i,s)}var l=r.getLineNumberAtVerticalOffset(o);return new jo(null,13,i,new f["a"](l,n.getLineMaxColumn(l)))}var c=r.getLineNumberAtVerticalOffset(r.getCurrentScrollTop()+(e.posy-t.y));if(e.posx<t.x)return new jo(null,13,i,new f["a"](c,1));if(e.posx>t.x+t.width)return new jo(null,13,i,new f["a"](c,n.getLineMaxColumn(c)));return null};t.prototype._findMousePosition=function(e,t){var n=this._getPositionOutsideEditor(e);if(n)return n;var r=this._createMouseTarget(e,t);var i;if(!r.position)return null;if(8===r.type||5===r.type){var o=this._helpPositionJumpOverViewZone(r.detail);if(o)return new jo(r.element,r.type,r.mouseColumn,o,null,r.detail)}return r};t.prototype._helpPositionJumpOverViewZone=function(e){var t=new f["a"](this._currentSelection.selectionStartLineNumber,this._currentSelection.selectionStartColumn);var n=e.positionBefore;var r=e.positionAfter;if(n&&r)return n.isBefore(t)?n:r;return null};t.prototype._dispatchMouse=function(e,t){if(!e.position)return;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})};return t}(me["a"]);var Qo=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}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,n){var r=(new Date).getTime();r-this._lastSetMouseDownCountTime>e.CLEAR_MOUSE_DOWN_COUNT_TIME&&(t=1);this._lastSetMouseDownCountTime=r;t>this._lastMouseDownCount+1&&(t=this._lastMouseDownCount+1);this._lastMouseDownPosition&&this._lastMouseDownPosition.equals(n)?this._lastMouseDownPositionEqualCount++:this._lastMouseDownPositionEqualCount=1;this._lastMouseDownPosition=n;this._lastMouseDownCount=Math.min(t,this._lastMouseDownPositionEqualCount)};e.CLEAR_MOUSE_DOWN_COUNT_TIME=400;return e}();var qo=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Jo(e,t){var n={translationY:t.translationY,translationX:t.translationX};if(e){n.translationY+=e.translationY;n.translationX+=e.translationX}return n}var Xo=function(e){qo(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;i.viewHelper.linesContentDomNode.style.msTouchAction="none";i.viewHelper.linesContentDomNode.style.msContentZooming="none";i._installGestureHandlerTimeout=window.setTimeout(function(){i._installGestureHandlerTimeout=-1;if(window.MSGesture){var e=new MSGesture;var t=new MSGesture;e.target=i.viewHelper.linesContentDomNode;t.target=i.viewHelper.linesContentDomNode;i.viewHelper.linesContentDomNode.addEventListener("MSPointerDown",function(n){var r=n.pointerType;if(r===(n.MSPOINTER_TYPE_MOUSE||"mouse")){i._lastPointerType="mouse";return}if(r===(n.MSPOINTER_TYPE_TOUCH||"touch")){i._lastPointerType="touch";e.addPointer(n.pointerId)}else{i._lastPointerType="pen";t.addPointer(n.pointerId)}});i._register(K["i"](i.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return i._onGestureChange(e)},Jo));i._register(K["g"](i.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return i._onCaptureGestureTap(e)},!0))}},100);i._lastPointerType="mouse";return i}t.prototype._onMouseDown=function(t){"mouse"===this._lastPointerType&&e.prototype._onMouseDown.call(this,t)};t.prototype._onCaptureGestureTap=function(e){var t=this;var n=new so(e,this.viewHelper.viewDomNode);var r=this._createMouseTarget(n,!1);r.position&&this.viewController.moveTo(r.position);if(n.browserEvent.fromElement){n.preventDefault();this.viewHelper.focusTextArea()}else 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)};return t}(Yo);var $o=function(e){qo(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;i.viewHelper.linesContentDomNode.style.touchAction="none";i._installGestureHandlerTimeout=window.setTimeout(function(){i._installGestureHandlerTimeout=-1;if(window.MSGesture){var e=new MSGesture;var t=new MSGesture;e.target=i.viewHelper.linesContentDomNode;t.target=i.viewHelper.linesContentDomNode;i.viewHelper.linesContentDomNode.addEventListener("pointerdown",function(n){var r=n.pointerType;if("mouse"===r){i._lastPointerType="mouse";return}if("touch"===r){i._lastPointerType="touch";e.addPointer(n.pointerId)}else{i._lastPointerType="pen";t.addPointer(n.pointerId)}});i._register(K["i"](i.viewHelper.linesContentDomNode,"MSGestureChange",function(e){return i._onGestureChange(e)},Jo));i._register(K["g"](i.viewHelper.linesContentDomNode,"MSGestureTap",function(e){return i._onCaptureGestureTap(e)},!0))}},100);i._lastPointerType="mouse";return i}t.prototype._onMouseDown=function(t){"mouse"===this._lastPointerType&&e.prototype._onMouseDown.call(this,t)};t.prototype._onCaptureGestureTap=function(e){var t=this;var n=new so(e,this.viewHelper.viewDomNode);var r=this._createMouseTarget(n,!1);r.position&&this.viewController.moveTo(r.position);if(n.browserEvent.fromElement){n.preventDefault();this.viewHelper.focusTextArea()}else 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)};return t}(Yo);var ea=function(e){qo(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;qi["b"].addTarget(i.viewHelper.linesContentDomNode);i._register(K["g"](i.viewHelper.linesContentDomNode,qi["a"].Tap,function(e){return i.onTap(e)}));i._register(K["g"](i.viewHelper.linesContentDomNode,qi["a"].Change,function(e){return i.onChange(e)}));i._register(K["g"](i.viewHelper.linesContentDomNode,qi["a"].Contextmenu,function(e){return i._onContextMenu(new so(e,i.viewHelper.viewDomNode),!1)}));return i}t.prototype.dispose=function(){e.prototype.dispose.call(this)};t.prototype.onTap=function(e){e.preventDefault();this.viewHelper.focusTextArea();var t=this._createMouseTarget(new so(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)};return t}(Yo);var ta=function(){function e(e,t,n){window.navigator.msPointerEnabled?this.handler=new Xo(e,t,n):window.TouchEvent?this.handler=new ea(e,t,n):window.navigator.pointerEnabled||window.PointerEvent?this.handler=new $o(e,t,n):this.handler=new Yo(e,t,n)}e.prototype.getTargetAtClientPoint=function(e,t){return this.handler.getTargetAtClientPoint(e,t)};e.prototype.dispose=function(){this.handler.dispose()};return e}();var na=n("l0MW");var ra=n("aAqg");var ia=n("fCqX");var oa=n("mW+Y");var aa=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var sa=function(e){aa(t,e);function t(){return null!==e&&e.apply(this,arguments)||this}return t}(ho);var ua=n("gVYO");var la=n("Z2dV");var ca=Object(la["lb"])("editor.lineHighlightBackground",{dark:null,light:null,hc:null},Bn["a"]("lineHighlight","Background color for the highlight of line at the cursor position."));var da=Object(la["lb"])("editor.lineHighlightBorder",{dark:"#282828",light:"#eeeeee",hc:"#f38518"},Bn["a"]("lineHighlightBorderBox","Background color for the border around the line at the cursor position."));var ha=Object(la["lb"])("editor.rangeHighlightBackground",{dark:"#ffffff0b",light:"#fdff0033",hc:null},Bn["a"]("rangeHighlight","Background color of highlighted ranges, like by quick open and find features. The color must not be opaque to not hide underlying decorations."),!0);var fa=Object(la["lb"])("editor.rangeHighlightBorder",{dark:null,light:null,hc:la["b"]},Bn["a"]("rangeHighlightBorder","Background color of the border around highlighted ranges."),!0);var pa=Object(la["lb"])("editorCursor.foreground",{dark:"#AEAFAD",light:ua["a"].black,hc:ua["a"].white},Bn["a"]("caret","Color of the editor cursor."));var ga=Object(la["lb"])("editorCursor.background",null,Bn["a"]("editorCursorBackground","The background color of the editor cursor. Allows customizing the color of a character overlapped by a block cursor."));var va=Object(la["lb"])("editorWhitespace.foreground",{dark:"#e3e4e229",light:"#33333333",hc:"#e3e4e229"},Bn["a"]("editorWhitespaces","Color of whitespace characters in the editor."));var ma=Object(la["lb"])("editorIndentGuide.background",{dark:va,light:va,hc:va},Bn["a"]("editorIndentGuides","Color of the editor indentation guides."));var _a=Object(la["lb"])("editorIndentGuide.activeBackground",{dark:va,light:va,hc:va},Bn["a"]("editorActiveIndentGuide","Color of the active editor indentation guides."));var ya=Object(la["lb"])("editorLineNumber.foreground",{dark:"#858585",light:"#237893",hc:ua["a"].white},Bn["a"]("editorLineNumbers","Color of editor line numbers."));var ba=Object(la["lb"])("editorActiveLineNumber.foreground",{dark:"#c6c6c6",light:"#0B216F",hc:la["b"]},Bn["a"]("editorActiveLineNumber","Color of editor active line number"),!1,Bn["a"]("deprecatedEditorActiveLineNumber","Id is deprecated. Use 'editorLineNumber.activeForeground' instead."));var Ca=Object(la["lb"])("editorLineNumber.activeForeground",{dark:ba,light:ba,hc:ba},Bn["a"]("editorActiveLineNumber","Color of editor active line number"));var wa=Object(la["lb"])("editorRuler.foreground",{dark:"#5A5A5A",light:ua["a"].lightgrey,hc:ua["a"].white},Bn["a"]("editorRuler","Color of the editor rulers."));var Sa=Object(la["lb"])("editorCodeLens.foreground",{dark:"#999999",light:"#999999",hc:"#999999"},Bn["a"]("editorCodeLensForeground","Foreground color of editor code lenses"));var La=Object(la["lb"])("editorBracketMatch.background",{dark:"#0064001a",light:"#0064001a",hc:"#0064001a"},Bn["a"]("editorBracketMatchBackground","Background color behind matching brackets"));var Ia=Object(la["lb"])("editorBracketMatch.border",{dark:"#888",light:"#B9B9B9",hc:"#fff"},Bn["a"]("editorBracketMatchBorder","Color for matching brackets boxes"));var xa=Object(la["lb"])("editorOverviewRuler.border",{dark:"#7f7f7f4d",light:"#7f7f7f4d",hc:"#7f7f7f4d"},Bn["a"]("editorOverviewRulerBorder","Color of the overview ruler border."));var Na=Object(la["lb"])("editorGutter.background",{dark:la["m"],light:la["m"],hc:la["m"]},Bn["a"]("editorGutter","Background color of the editor gutter. The gutter contains the glyph margins and the line numbers."));var Ma=Object(la["lb"])("editorError.foreground",{dark:"#ea4646",light:"#d60a0a",hc:null},Bn["a"]("errorForeground","Foreground color of error squigglies in the editor."));var Da=Object(la["lb"])("editorError.border",{dark:null,light:null,hc:ua["a"].fromHex("#E47777").transparent(.8)},Bn["a"]("errorBorder","Border color of error squigglies in the editor."));var ka=Object(la["lb"])("editorWarning.foreground",{dark:"#4d9e4d",light:"#117711",hc:null},Bn["a"]("warningForeground","Foreground color of warning squigglies in the editor."));var Oa=Object(la["lb"])("editorWarning.border",{dark:null,light:null,hc:ua["a"].fromHex("#71B771").transparent(.8)},Bn["a"]("warningBorder","Border color of warning squigglies in the editor."));var Ea=Object(la["lb"])("editorInfo.foreground",{dark:"#008000",light:"#008000",hc:null},Bn["a"]("infoForeground","Foreground color of info squigglies in the editor."));var Ta=Object(la["lb"])("editorInfo.border",{dark:null,light:null,hc:ua["a"].fromHex("#71B771").transparent(.8)},Bn["a"]("infoBorder","Border color of info squigglies in the editor."));var Aa=Object(la["lb"])("editorHint.foreground",{dark:ua["a"].fromHex("#eeeeee").transparent(.7),light:"#6c6c6c",hc:null},Bn["a"]("hintForeground","Foreground color of hint squigglies in the editor."));var Ra=Object(la["lb"])("editorHint.border",{dark:null,light:null,hc:ua["a"].fromHex("#eeeeee").transparent(.8)},Bn["a"]("hintBorder","Border color of hint squigglies in the editor."));var Pa=Object(la["lb"])("editorUnnecessaryCode.border",{dark:null,light:null,hc:ua["a"].fromHex("#fff").transparent(.8)},Bn["a"]("unnecessaryCodeBorder","Border of unnecessary code in the editor."));var ja=Object(la["lb"])("editorUnnecessaryCode.opacity",{dark:ua["a"].fromHex("#000a"),light:ua["a"].fromHex("#0007"),hc:null},Bn["a"]("unnecessaryCodeOpacity","Opacity of unnecessary code in the editor."));var Wa=Object(la["lb"])("editorOverviewRuler.errorForeground",{dark:new ua["a"](new ua["b"](255,18,18,.7)),light:new ua["a"](new ua["b"](255,18,18,.7)),hc:new ua["a"](new ua["b"](255,50,50,1))},Bn["a"]("overviewRuleError","Overview ruler marker color for errors."));var Fa=Object(la["lb"])("editorOverviewRuler.warningForeground",{dark:new ua["a"](new ua["b"](18,136,18,.7)),light:new ua["a"](new ua["b"](18,136,18,.7)),hc:new ua["a"](new ua["b"](50,255,50,1))},Bn["a"]("overviewRuleWarning","Overview ruler marker color for warnings."));var za=Object(la["lb"])("editorOverviewRuler.infoForeground",{dark:new ua["a"](new ua["b"](18,18,136,.7)),light:new ua["a"](new ua["b"](18,18,136,.7)),hc:new ua["a"](new ua["b"](50,50,255,1))},Bn["a"]("overviewRuleInfo","Overview ruler marker color for infos."));Object(So["e"])(function(e,t){var n=e.getColor(la["m"]);n&&t.addRule(".monaco-editor, .monaco-editor-background, .monaco-editor .inputarea.ime-input { background-color: "+n+"; }");var r=e.getColor(la["t"]);r&&t.addRule(".monaco-editor, .monaco-editor .inputarea.ime-input { color: "+r+"; }");var i=e.getColor(Na);i&&t.addRule(".monaco-editor .margin { background-color: "+i+"; }");var o=e.getColor(ha);o&&t.addRule(".monaco-editor .rangeHighlight { background-color: "+o+"; }");var a=e.getColor(fa);a&&t.addRule(".monaco-editor .rangeHighlight { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+a+"; }");var s=e.getColor(va);s&&t.addRule(".vs-whitespace { color: "+s+" !important; }")});var Va=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Ba=function(e){Va(t,e);function t(t){var n=e.call(this)||this;n._context=t;n._readConfig();n._lastCursorModelPosition=new f["a"](1,1);n._renderResult=null;n._context.addEventHandler(n);return n}t.prototype._readConfig=function(){var e=this._context.configuration.editor;this._lineHeight=e.lineHeight;this._renderLineNumbers=e.viewInfo.renderLineNumbers;this._renderCustomLineNumbers=e.viewInfo.renderCustomLineNumbers;this._lineNumbersLeft=e.layoutInfo.lineNumbersLeft;this._lineNumbersWidth=e.layoutInfo.lineNumbersWidth};t.prototype.dispose=function(){this._context.removeEventHandler(this);this._renderResult=null;e.prototype.dispose.call(this)};t.prototype.onConfigurationChanged=function(e){this._readConfig();return!0};t.prototype.onCursorStateChanged=function(e){var t=e.selections[0].getPosition();this._lastCursorModelPosition=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(t);if(2===this._renderLineNumbers||3===this._renderLineNumbers)return!0;return!1};t.prototype.onFlushed=function(e){return!0};t.prototype.onLinesChanged=function(e){return!0};t.prototype.onLinesDeleted=function(e){return!0};t.prototype.onLinesInserted=function(e){return!0};t.prototype.onScrollChanged=function(e){return e.scrollTopChanged};t.prototype.onZonesChanged=function(e){return!0};t.prototype._getLineRenderLineNumber=function(e){var t=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new f["a"](e,1));if(1!==t.column)return"";var n=t.lineNumber;if(this._renderCustomLineNumbers)return this._renderCustomLineNumbers(n);if(2===this._renderLineNumbers){var r=Math.abs(this._lastCursorModelPosition.lineNumber-n);if(0===r)return'<span class="relative-current-line-number">'+n+"</span>";return String(r)}if(3===this._renderLineNumbers){if(this._lastCursorModelPosition.lineNumber===n)return String(n);if(n%10==0)return String(n);return""}return String(n)};t.prototype.prepareRender=function(e){if(0===this._renderLineNumbers){this._renderResult=null;return}var n=i["c"]?this._lineHeight%2==0?" lh-even":" lh-odd":"";var r=e.visibleRange.startLineNumber;var o=e.visibleRange.endLineNumber;var a='<div class="'+t.CLASS_NAME+n+'" style="left:'+this._lineNumbersLeft.toString()+"px;width:"+this._lineNumbersWidth.toString()+'px;">';var s=[];for(var u=r;u<=o;u++){var l=u-r;var c=this._getLineRenderLineNumber(u);s[l]=c?a+c+"</div>":""}this._renderResult=s};t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;if(n<0||n>=this._renderResult.length)return"";return this._renderResult[n]};t.CLASS_NAME="line-numbers";return t}(sa);Object(So["e"])(function(e,t){var n=e.getColor(ya);n&&t.addRule(".monaco-editor .line-numbers { color: "+n+"; }");var r=e.getColor(Ca);r&&t.addRule(".monaco-editor .current-line ~ .line-numbers { color: "+r+"; }")});var Ha=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Ua=function(e){Ha(t,e);function t(t){var n=e.call(this,t)||this;n._canUseLayerHinting=n._context.configuration.editor.canUseLayerHinting;n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft;n._glyphMarginLeft=n._context.configuration.editor.layoutInfo.glyphMarginLeft;n._glyphMarginWidth=n._context.configuration.editor.layoutInfo.glyphMarginWidth;n._domNode=n._createDomNode();return n}t.prototype.dispose=function(){e.prototype.dispose.call(this)};t.prototype.getDomNode=function(){return this._domNode};t.prototype._createDomNode=function(){var e=Qi(document.createElement("div"));e.setClassName(t.OUTER_CLASS_NAME);e.setPosition("absolute");e.setAttribute("role","presentation");e.setAttribute("aria-hidden","true");this._glyphMarginBackgroundDomNode=Qi(document.createElement("div"));this._glyphMarginBackgroundDomNode.setClassName(t.CLASS_NAME);e.appendChild(this._glyphMarginBackgroundDomNode);return e};t.prototype.onConfigurationChanged=function(e){e.canUseLayerHinting&&(this._canUseLayerHinting=this._context.configuration.editor.canUseLayerHinting);if(e.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}return!0};t.prototype.onScrollChanged=function(t){return e.prototype.onScrollChanged.call(this,t)||t.scrollTopChanged};t.prototype.prepareRender=function(e){};t.prototype.render=function(e){this._domNode.setLayerHinting(this._canUseLayerHinting);var t=e.scrollTop-e.bigNumbersDelta;this._domNode.setTop(-t);var n=Math.min(e.scrollHeight,1e6);this._domNode.setHeight(n);this._domNode.setWidth(this._contentLeft);this._glyphMarginBackgroundDomNode.setLeft(this._glyphMarginLeft);this._glyphMarginBackgroundDomNode.setWidth(this._glyphMarginWidth);this._glyphMarginBackgroundDomNode.setHeight(n)};t.CLASS_NAME="glyph-margin";t.OUTER_CLASS_NAME="margin";return t}(po);var Za=n("DTJD");var Ga=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Ya=function(){function e(e){this.type=1;this.canUseLayerHinting=e.canUseLayerHinting;this.pixelRatio=e.pixelRatio;this.editorClassName=e.editorClassName;this.lineHeight=e.lineHeight;this.readOnly=e.readOnly;this.accessibilitySupport=e.accessibilitySupport;this.emptySelectionClipboard=e.emptySelectionClipboard;this.copyWithSyntaxHighlighting=e.copyWithSyntaxHighlighting;this.layoutInfo=e.layoutInfo;this.fontInfo=e.fontInfo;this.viewInfo=e.viewInfo;this.wrappingInfo=e.wrappingInfo}return e}();var Ka=function(){function e(e){this.type=2;this.selections=e}return e}();var Qa=function(){function e(){this.type=3}return e}();var qa=function(){function e(){this.type=4}return e}();var Ja=function(){function e(e){this.type=5;this.isFocused=e}return e}();var Xa=function(){function e(){this.type=6}return e}();var $a=function(){function e(e,t){this.type=7;this.fromLineNumber=e;this.toLineNumber=t}return e}();var es=function(){function e(e,t){this.type=8;this.fromLineNumber=e;this.toLineNumber=t}return e}();var ts=function(){function e(e,t){this.type=9;this.fromLineNumber=e;this.toLineNumber=t}return e}();var ns=function(){function e(e,t,n,r){this.type=10;this.range=e;this.verticalType=t;this.revealHorizontal=n;this.scrollType=r}return e}();var rs=function(){function e(e){this.type=11;this.scrollWidth=e.scrollWidth;this.scrollLeft=e.scrollLeft;this.scrollHeight=e.scrollHeight;this.scrollTop=e.scrollTop;this.scrollWidthChanged=e.scrollWidthChanged;this.scrollLeftChanged=e.scrollLeftChanged;this.scrollHeightChanged=e.scrollHeightChanged;this.scrollTopChanged=e.scrollTopChanged}return e}();var is=function(){function e(e){this.type=12;this.ranges=e}return e}();var os=function(){function e(){this.type=15}return e}();var as=function(){function e(){this.type=13}return e}();var ss=function(){function e(){this.type=14}return e}();var us=function(){function e(){this.type=16}return e}();var ls=function(e){Ga(t,e);function t(){var t=e.call(this)||this;t._listeners=[];t._collector=null;t._collectorCnt=0;return t}t.prototype.dispose=function(){this._listeners=[];e.prototype.dispose.call(this)};t.prototype._beginEmit=function(){this._collectorCnt++;1===this._collectorCnt&&(this._collector=new cs);return this._collector};t.prototype._endEmit=function(){this._collectorCnt--;if(0===this._collectorCnt){var e=this._collector.finalize();this._collector=null;e.length>0&&this._emit(e)}};t.prototype._emit=function(e){var t=this._listeners.slice(0);for(var n=0,r=t.length;n<r;n++)ds(t[n],e)};t.prototype.addEventListener=function(e){var t=this;this._listeners.push(e);return Object(me["e"])(function(){var n=t._listeners;for(var r=0,i=n.length;r<i;r++)if(n[r]===e){n.splice(r,1);break}})};return t}(me["a"]);var cs=function(){function e(){this._eventsLen=0;this._events=[];this._eventsLen=0}e.prototype.emit=function(e){this._events[this._eventsLen++]=e};e.prototype.finalize=function(){var e=this._events;this._events=[];return e};return e}();function ds(e,t){try{e(t)}catch(e){Ge["d"](e)}}var hs=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var fs=function(){function e(e,t,n){this.top=e;this.left=t;this.width=n}e.prototype.setWidth=function(t){return new e(this.top,this.left,t)};return e}();var ps=Ai["h"]||Ai["j"];var gs=function(){function e(){this._lastState=null}e.prototype.set=function(e){this._lastState=e};e.prototype.get=function(e){if(this._lastState&&this._lastState.lastCopiedValue===e)return this._lastState;this._lastState=null;return null};e.INSTANCE=new e;return e}();var vs=function(e){hs(t,e);function t(t,n,r){var o=e.call(this,t)||this;o._primaryCursorVisibleRange=null;o._viewController=n;o._viewHelper=r;var a=o._context.configuration.editor;o._accessibilitySupport=a.accessibilitySupport;o._contentLeft=a.layoutInfo.contentLeft;o._contentWidth=a.layoutInfo.contentWidth;o._contentHeight=a.layoutInfo.contentHeight;o._scrollLeft=0;o._scrollTop=0;o._fontInfo=a.fontInfo;o._lineHeight=a.lineHeight;o._emptySelectionClipboard=a.emptySelectionClipboard;o._copyWithSyntaxHighlighting=a.copyWithSyntaxHighlighting;o._visibleTextArea=null;o._selections=[new g["a"](1,1,1,1)];o.textArea=Qi(document.createElement("textarea"));go.write(o.textArea,6);o.textArea.setClassName("inputarea");o.textArea.setAttribute("wrap","off");o.textArea.setAttribute("autocorrect","off");o.textArea.setAttribute("autocapitalize","off");o.textArea.setAttribute("autocomplete","off");o.textArea.setAttribute("spellcheck","false");o.textArea.setAttribute("aria-label",a.viewInfo.ariaLabel);o.textArea.setAttribute("role","textbox");o.textArea.setAttribute("aria-multiline","true");o.textArea.setAttribute("aria-haspopup","false");o.textArea.setAttribute("aria-autocomplete","both");o.textAreaCover=Qi(document.createElement("div"));o.textAreaCover.setPosition("absolute");var s={getLineCount:function(){return o._context.model.getLineCount()},getLineMaxColumn:function(e){return o._context.model.getLineMaxColumn(e)},getValueInRange:function(e,t){return o._context.model.getValueInRange(e,t)}};var u={getPlainTextToCopy:function(){var e=o._context.model.getPlainTextToCopy(o._selections,o._emptySelectionClipboard,i["g"]);var t=o._context.model.getEOL();var n=o._emptySelectionClipboard&&1===o._selections.length&&o._selections[0].isEmpty();var r=Array.isArray(e)?e:null;var a=Array.isArray(e)?e.join(t):e;var s=null;if(n||r){var u;s={lastCopiedValue:Ai["j"]?a.replace(/\r\n/g,"\n"):a,isFromEmptySelection:o._emptySelectionClipboard&&1===o._selections.length&&o._selections[0].isEmpty(),multicursorText:r}}gs.INSTANCE.set(s);return a},getHTMLToCopy:function(){if(!o._copyWithSyntaxHighlighting&&!ra["a"].forceCopyWithSyntaxHighlighting)return null;return o._context.model.getHTMLToCopy(o._selections,o._emptySelectionClipboard)},getScreenReaderContent:function(e){if(Ai["l"])return ia["b"].EMPTY;if(1===o._accessibilitySupport){if(i["d"]){var t=o._selections[0];if(t.isEmpty()){var n=t.getStartPosition();var r=o._getWordBeforePosition(n);0===r.length&&(r=o._getCharacterBeforePosition(n));if(r.length>0)return new ia["b"](r,r.length,r.length,n,n)}}return ia["b"].EMPTY}return ia["a"].fromEditorSelection(e,s,o._selections[0],0===o._accessibilitySupport)},deduceModelPosition:function(e,t,n){return o._context.model.deduceModelPositionRelativeToViewPosition(e,t,n)}};o._textAreaInput=o._register(new ra["b"](u,o.textArea));o._register(o._textAreaInput.onKeyDown(function(e){o._viewController.emitKeyDown(e)}));o._register(o._textAreaInput.onKeyUp(function(e){o._viewController.emitKeyUp(e)}));o._register(o._textAreaInput.onPaste(function(e){var t=gs.INSTANCE.get(e.text);var n=!1;var r=null;if(t){n=o._emptySelectionClipboard&&t.isFromEmptySelection;r=t.multicursorText}o._viewController.paste("keyboard",e.text,n,r)}));o._register(o._textAreaInput.onCut(function(){o._viewController.cut("keyboard")}));o._register(o._textAreaInput.onType(function(e){e.replaceCharCnt?o._viewController.replacePreviousChar("keyboard",e.text,e.replaceCharCnt):o._viewController.type("keyboard",e.text)}));o._register(o._textAreaInput.onSelectionChangeRequest(function(e){o._viewController.setSelection("keyboard",e)}));o._register(o._textAreaInput.onCompositionStart(function(){var e=o._selections[0].startLineNumber;var t=o._selections[0].startColumn;o._context.privateViewEventBus.emit(new ns(new p["a"](e,t,e,t),0,!0,1));var n=o._viewHelper.visibleRangeForPositionRelativeToEditor(e,t);if(n){o._visibleTextArea=new fs(o._context.viewLayout.getVerticalOffsetForLineNumber(e),n.left,ps?0:1);o._render()}o.textArea.setClassName("inputarea ime-input");o._viewController.compositionStart("keyboard")}));o._register(o._textAreaInput.onCompositionUpdate(function(e){Ai["h"]?o._visibleTextArea=o._visibleTextArea.setWidth(0):o._visibleTextArea=o._visibleTextArea.setWidth(ms(e.data,o._fontInfo));o._render()}));o._register(o._textAreaInput.onCompositionEnd(function(){o._visibleTextArea=null;o._render();o.textArea.setClassName("inputarea");o._viewController.compositionEnd("keyboard")}));o._register(o._textAreaInput.onFocus(function(){o._context.privateViewEventBus.emit(new Ja(!0))}));o._register(o._textAreaInput.onBlur(function(){o._context.privateViewEventBus.emit(new Ja(!1))}));return o}t.prototype.dispose=function(){e.prototype.dispose.call(this)};t.prototype._getWordBeforePosition=function(e){var t=this._context.model.getLineContent(e.lineNumber);var n=Object(Za["a"])(this._context.configuration.editor.wordSeparators);var r=e.column;var i=0;for(;r>1;){var o=t.charCodeAt(r-2);var a;if(0!==n.get(o)||i>50)return t.substring(r-1,e.column-1);i++;r--}return t.substring(0,e.column-1)};t.prototype._getCharacterBeforePosition=function(e){if(e.column>1){var t;var n=this._context.model.getLineContent(e.lineNumber).charAt(e.column-2);if(!$["s"](n.charCodeAt(0)))return n}return""};t.prototype.onConfigurationChanged=function(e){var t=this._context.configuration.editor;e.fontInfo&&(this._fontInfo=t.fontInfo);e.viewInfo&&this.textArea.setAttribute("aria-label",t.viewInfo.ariaLabel);if(e.layoutInfo){this._contentLeft=t.layoutInfo.contentLeft;this._contentWidth=t.layoutInfo.contentWidth;this._contentHeight=t.layoutInfo.contentHeight}e.lineHeight&&(this._lineHeight=t.lineHeight);if(e.accessibilitySupport){this._accessibilitySupport=t.accessibilitySupport;this._textAreaInput.writeScreenReaderContent("strategy changed")}e.emptySelectionClipboard&&(this._emptySelectionClipboard=t.emptySelectionClipboard);e.copyWithSyntaxHighlighting&&(this._copyWithSyntaxHighlighting=t.copyWithSyntaxHighlighting);return!0};t.prototype.onCursorStateChanged=function(e){this._selections=e.selections.slice(0);this._textAreaInput.writeScreenReaderContent("selection changed");return!0};t.prototype.onDecorationsChanged=function(e){return!0};t.prototype.onFlushed=function(e){return!0};t.prototype.onLinesChanged=function(e){return!0};t.prototype.onLinesDeleted=function(e){return!0};t.prototype.onLinesInserted=function(e){return!0};t.prototype.onScrollChanged=function(e){this._scrollLeft=e.scrollLeft;this._scrollTop=e.scrollTop;return!0};t.prototype.onZonesChanged=function(e){return!0};t.prototype.isFocused=function(){return this._textAreaInput.isFocused()};t.prototype.focusTextArea=function(){this._textAreaInput.focusTextArea()};t.prototype.prepareRender=function(e){if(2===this._accessibilitySupport)this._primaryCursorVisibleRange=null;else{var t=new f["a"](this._selections[0].positionLineNumber,this._selections[0].positionColumn);this._primaryCursorVisibleRange=e.visibleRangeForPosition(t)}};t.prototype.render=function(e){this._textAreaInput.writeScreenReaderContent("render");this._render()};t.prototype._render=function(){if(this._visibleTextArea){this._renderInsideEditor(this._visibleTextArea.top-this._scrollTop,this._contentLeft+this._visibleTextArea.left-this._scrollLeft,this._visibleTextArea.width,this._lineHeight,!0);return}if(!this._primaryCursorVisibleRange){this._renderAtTopLeft();return}var e=this._contentLeft+this._primaryCursorVisibleRange.left-this._scrollLeft;if(e<this._contentLeft||e>this._contentLeft+this._contentWidth){this._renderAtTopLeft();return}var t=this._context.viewLayout.getVerticalOffsetForLineNumber(this._selections[0].positionLineNumber)-this._scrollTop;if(t<0||t>this._contentHeight){this._renderAtTopLeft();return}this._renderInsideEditor(t,e,ps?0:1,ps?0:1,!1)};t.prototype._renderInsideEditor=function(e,t,n,r,i){var o=this.textArea;var a=this.textAreaCover;if(i)Gi.applyFontInfo(o,this._fontInfo);else{o.setFontSize(1);o.setLineHeight(this._fontInfo.lineHeight)}o.setTop(e);o.setLeft(t);o.setWidth(n);o.setHeight(r);a.setTop(0);a.setLeft(0);a.setWidth(0);a.setHeight(0)};t.prototype._renderAtTopLeft=function(){var e=this.textArea;var t=this.textAreaCover;Gi.applyFontInfo(e,this._fontInfo);e.setTop(0);e.setLeft(0);t.setTop(0);t.setLeft(0);if(ps){e.setWidth(0);e.setHeight(0);t.setWidth(0);t.setHeight(0);return}e.setWidth(1);e.setHeight(1);t.setWidth(1);t.setHeight(1);this._context.configuration.editor.viewInfo.glyphMargin?t.setClassName("monaco-editor-background textAreaCover "+Ua.OUTER_CLASS_NAME):0!==this._context.configuration.editor.viewInfo.renderLineNumbers?t.setClassName("monaco-editor-background textAreaCover "+Ba.CLASS_NAME):t.setClassName("monaco-editor-background textAreaCover")};return t}(po);function ms(e,t){var n;var r=document.createElement("canvas").getContext("2d");r.font=_s(t);var i=r.measureText(e);return Ai["j"]?i.width+2:i.width}function _s(e){return ys("normal",e.fontWeight,e.fontSize,e.lineHeight,e.fontFamily)}function ys(e,t,n,r,i){return e+" normal "+t+" "+n+"px / "+r+"px "+i}var bs=n("MrIk");var Cs=function(e){return!0};var ws=function(e){return!1};var Ss=function(e){return" "===e||"\t"===e};var Ls=function(){function e(t,n,r,i){this._languageIdentifier=t;var o=i.editor;this.readOnly=o.readOnly;this.tabSize=r.tabSize;this.insertSpaces=r.insertSpaces;this.oneIndent=n;this.pageSize=Math.max(1,Math.floor(o.layoutInfo.height/o.fontInfo.lineHeight)-2);this.lineHeight=o.lineHeight;this.useTabStops=o.useTabStops;this.wordSeparators=o.wordSeparators;this.emptySelectionClipboard=o.emptySelectionClipboard;this.copyWithSyntaxHighlighting=o.copyWithSyntaxHighlighting;this.multiCursorMergeOverlapping=o.multiCursorMergeOverlapping;this.autoClosingBrackets=o.autoClosingBrackets;this.autoClosingQuotes=o.autoClosingQuotes;this.autoSurround=o.autoSurround;this.autoIndent=o.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 a=e._getAutoClosingPairs(t);if(a)for(var s=0;s<a.length;s++){this.autoClosingPairsOpen[a[s].open]=a[s].close;this.autoClosingPairsClose[a[s].close]=a[s].open}var u=e._getSurroundingPairs(t);if(u)for(var s=0;s<u.length;s++)this.surroundingPairs[u[s].open]=u[s].close}e.shouldRecreate=function(e){return e.layoutInfo||e.wordSeparators||e.emptySelectionClipboard||e.multiCursorMergeOverlapping||e.autoClosingBrackets||e.autoClosingQuotes||e.autoSurround||e.useTabStops||e.lineHeight||e.readOnly};Object.defineProperty(e.prototype,"electricChars",{get:function(){if(!this._electricChars){this._electricChars={};var t=e._getElectricCharacters(this._languageIdentifier);if(t)for(var n=0;n<t.length;n++)this._electricChars[t[n]]=!0}return this._electricChars},enumerable:!0,configurable:!0});e.prototype.normalizeIndentation=function(e){return bs["b"].normalizeIndentation(e,this.tabSize,this.insertSpaces)};e._getElectricCharacters=function(e){try{return ot["a"].getElectricCharacters(e.id)}catch(e){Object(Ge["d"])(e);return null}};e._getAutoClosingPairs=function(e){try{return ot["a"].getAutoClosingPairs(e.id)}catch(e){Object(Ge["d"])(e);return null}};e._getShouldAutoClose=function(t,n){switch(n){case"beforeWhitespace":return Ss;case"languageDefined":return e._getLanguageDefinedShouldAutoClose(t);case"always":return Cs;case"never":return ws}};e._getLanguageDefinedShouldAutoClose=function(e){try{var t=ot["a"].getAutoCloseBeforeSet(e.id);return function(e){return-1!==t.indexOf(e)}}catch(e){Object(Ge["d"])(e);return ws}};e._getSurroundingPairs=function(e){try{return ot["a"].getSurroundingPairs(e.id)}catch(e){Object(Ge["d"])(e);return null}};return e}();var Is=function(){function e(t,n,r,i){this.selectionStart=t;this.selectionStartLeftoverVisibleColumns=n;this.position=r;this.leftoverVisibleColumns=i;this.selection=e._computeSelection(this.selectionStart,this.position)}e.prototype.equals=function(e){return this.selectionStartLeftoverVisibleColumns===e.selectionStartLeftoverVisibleColumns&&this.leftoverVisibleColumns===e.leftoverVisibleColumns&&this.position.equals(e.position)&&this.selectionStart.equalsRange(e.selectionStart)};e.prototype.hasSelection=function(){return!this.selection.isEmpty()||!this.selectionStart.isEmpty()};e.prototype.move=function(t,n,r,i){return t?new e(this.selectionStart,this.selectionStartLeftoverVisibleColumns,new f["a"](n,r),i):new e(new p["a"](n,r,n,r),i,new f["a"](n,r),i)};e._computeSelection=function(e,t){var n,r,i,o;if(e.isEmpty()){n=e.startLineNumber;r=e.startColumn;i=t.lineNumber;o=t.column}else if(t.isBeforeOrEqual(e.getStartPosition())){n=e.endLineNumber;r=e.endColumn;i=t.lineNumber;o=t.column}else{n=e.startLineNumber;r=e.startColumn;i=t.lineNumber;o=t.column}return new g["a"](n,r,i,o)};return e}();var xs=function(){function e(e,t,n){this.model=t;this.viewModel=n;this.config=new Ls(this.model.getLanguageIdentifier(),this.model.getOneIndent(),this.model.getOptions(),e)}e.prototype.validateViewPosition=function(e,t){return this.viewModel.coordinatesConverter.validateViewPosition(e,t)};e.prototype.validateViewRange=function(e,t){return this.viewModel.coordinatesConverter.validateViewRange(e,t)};e.prototype.convertViewRangeToModelRange=function(e){return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(e)};e.prototype.convertViewPositionToModelPosition=function(e,t){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new f["a"](e,t))};e.prototype.convertModelPositionToViewPosition=function(e){return this.viewModel.coordinatesConverter.convertModelPositionToViewPosition(e)};e.prototype.convertModelRangeToViewRange=function(e){return this.viewModel.coordinatesConverter.convertModelRangeToViewRange(e)};e.prototype.getCurrentScrollTop=function(){return this.viewModel.viewLayout.getCurrentScrollTop()};e.prototype.getCompletelyVisibleViewRange=function(){return this.viewModel.getCompletelyVisibleViewRange()};e.prototype.getCompletelyVisibleModelRange=function(){var e=this.viewModel.getCompletelyVisibleViewRange();return this.viewModel.coordinatesConverter.convertViewRangeToModelRange(e)};e.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){return this.viewModel.getCompletelyVisibleViewRangeAtScrollTop(e)};e.prototype.getVerticalOffsetForViewLine=function(e){return this.viewModel.viewLayout.getVerticalOffsetForLineNumber(e)};return e}();var Ns=function(){function e(e){this.modelState=e;this.viewState=null}return e}();var Ms=function(){function e(e){this.modelState=null;this.viewState=e}return e}();var Ds=function(){function e(e,t){this.modelState=e;this.viewState=t}e.fromModelState=function(e){return new Ns(e)};e.fromViewState=function(e){return new Ms(e)};e.fromModelSelection=function(t){var n=t.selectionStartLineNumber;var r=t.selectionStartColumn;var i=t.positionLineNumber;var o=t.positionColumn;var a=new Is(new p["a"](n,r,n,r),0,new f["a"](i,o),0);return e.fromModelState(a)};e.fromModelSelections=function(e){var t=[];for(var n=0,r=e.length;n<r;n++)t[n]=this.fromModelSelection(e[n]);return t};e.prototype.equals=function(e){return this.viewState.equals(e.viewState)&&this.modelState.equals(e.modelState)};return e}();var ks=function(){function e(e,t,n){this.type=e;this.commands=t;this.shouldPushStackElementBefore=n.shouldPushStackElementBefore;this.shouldPushStackElementAfter=n.shouldPushStackElementAfter}return e}();var Os=function(){function e(){}e.isLowSurrogate=function(e,t,n){var r=e.getLineContent(t);if(n<0||n>=r.length)return!1;return $["t"](r.charCodeAt(n))};e.isHighSurrogate=function(e,t,n){var r=e.getLineContent(t);if(n<0||n>=r.length)return!1;return $["s"](r.charCodeAt(n))};e.isInsideSurrogatePair=function(e,t,n){return this.isHighSurrogate(e,t,n-2)};e.visibleColumnFromColumn=function(e,t,n){var r=e.length;r>t-1&&(r=t-1);var i=0;for(var o=0;o<r;o++){var a=e.charCodeAt(o);9===a?i=this.nextTabStop(i,n):$["r"](a)?i+=2:i+=1}return i};e.visibleColumnFromColumn2=function(e,t,n){return this.visibleColumnFromColumn(t.getLineContent(n.lineNumber),n.column,e.tabSize)};e.columnFromVisibleColumn=function(e,t,n){if(t<=0)return 1;var r=e.length;var i=0;for(var o=0;o<r;o++){var a=e.charCodeAt(o);var s=void 0;if((s=9===a?this.nextTabStop(i,n):$["r"](a)?i+2:i+1)>=t){var u;var l;return s-t<t-i?o+2:o+1}i=s}return r+1};e.columnFromVisibleColumn2=function(e,t,n,r){var i=this.columnFromVisibleColumn(t.getLineContent(n),r,e.tabSize);var o=t.getLineMinColumn(n);if(i<o)return o;var a=t.getLineMaxColumn(n);if(i>a)return a;return i};e.nextTabStop=function(e,t){return e+t-e%t};e.prevTabStop=function(e,t){return e-1-(e-1)%t};return e}();function Es(e){return"'"===e||'"'===e||"`"===e}var Ts=function(){function e(){}e._columnSelect=function(e,t,n,r,i,o){var a=Math.abs(i-n)+1;var s=n>i;var u=r>o;var l=r<o;var c=[];for(var d=0;d<a;d++){var h=n+(s?-d:d);var g=Os.columnFromVisibleColumn2(e,t,h,r);var v=Os.columnFromVisibleColumn2(e,t,h,o);var m=Os.visibleColumnFromColumn2(e,t,new f["a"](h,g));var _=Os.visibleColumnFromColumn2(e,t,new f["a"](h,v));if(l){if(m>o)continue;if(_<r)continue}if(u){if(_>r)continue;if(m<o)continue}c.push(new Is(new p["a"](h,g,h,g),0,new f["a"](h,v),0))}return{viewStates:c,reversed:s,toLineNumber:i,toVisualColumn:o}};e.columnSelect=function(t,n,r,i,o){var a=new f["a"](r.selectionStartLineNumber,r.selectionStartColumn);var s=Os.visibleColumnFromColumn2(t,n,a);return e._columnSelect(t,n,a.lineNumber,s,i,o)};e.columnSelectLeft=function(e,t,n,r,i){i>1&&i--;return this.columnSelect(e,t,n.selection,r,i)};e.columnSelectRight=function(e,t,n,r,i){var o=0;var a=Math.min(n.position.lineNumber,r);var s=Math.max(n.position.lineNumber,r);for(var u=a;u<=s;u++){var l=t.getLineMaxColumn(u);var c=Os.visibleColumnFromColumn2(e,t,new f["a"](u,l));o=Math.max(o,c)}i<o&&i++;return this.columnSelect(e,t,n.selection,r,i)};e.columnSelectUp=function(e,t,n,r,i,o){var a;(i-=r?e.pageSize:1)<1&&(i=1);return this.columnSelect(e,t,n.selection,i,o)};e.columnSelectDown=function(e,t,n,r,i,o){var a;(i+=r?e.pageSize:1)>t.getLineCount()&&(i=t.getLineCount());return this.columnSelect(e,t,n.selection,i,o)};return e}();var As=n("cv6i");var Rs=function(){function e(e,t,n){this.lineNumber=e;this.column=t;this.leftoverVisibleColumns=n}return e}();var Ps=function(){function e(){}e.left=function(e,t,n,r){if(r>t.getLineMinColumn(n))Os.isLowSurrogate(t,n,r-2)?r-=2:r-=1;else if(n>1){n-=1;r=t.getLineMaxColumn(n)}return new Rs(n,r,0)};e.moveLeft=function(t,n,r,i,o){var a,s;if(r.hasSelection()&&!i){a=r.selection.startLineNumber;s=r.selection.startColumn}else{var u=e.left(t,n,r.position.lineNumber,r.position.column-(o-1));a=u.lineNumber;s=u.column}return r.move(i,a,s,0)};e.right=function(e,t,n,r){if(r<t.getLineMaxColumn(n))Os.isHighSurrogate(t,n,r-1)?r+=2:r+=1;else if(n<t.getLineCount()){n+=1;r=t.getLineMinColumn(n)}return new Rs(n,r,0)};e.moveRight=function(t,n,r,i,o){var a,s;if(r.hasSelection()&&!i){a=r.selection.endLineNumber;s=r.selection.endColumn}else{var u=e.right(t,n,r.position.lineNumber,r.position.column+(o-1));a=u.lineNumber;s=u.column}return r.move(i,a,s,0)};e.down=function(e,t,n,r,i,o,a){var s=Os.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize)+i;n+=o;var u=t.getLineCount();if(n>u){n=u;if(a)r=t.getLineMaxColumn(n);else{r=Math.min(t.getLineMaxColumn(n),r);Os.isInsideSurrogatePair(t,n,r)&&(r-=1)}}else{r=Os.columnFromVisibleColumn2(e,t,n,s);Os.isInsideSurrogatePair(t,n,r)&&(r-=1)}i=s-Os.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize);return new Rs(n,r,i)};e.moveDown=function(t,n,r,i,o){var a,s;if(r.hasSelection()&&!i){a=r.selection.endLineNumber;s=r.selection.endColumn}else{a=r.position.lineNumber;s=r.position.column}var u=e.down(t,n,a,s,r.leftoverVisibleColumns,o,!0);return r.move(i,u.lineNumber,u.column,u.leftoverVisibleColumns)};e.translateDown=function(t,n,r){var i=r.selection;var o=e.down(t,n,i.selectionStartLineNumber,i.selectionStartColumn,r.selectionStartLeftoverVisibleColumns,1,!1);var a=e.down(t,n,i.positionLineNumber,i.positionColumn,r.leftoverVisibleColumns,1,!1);return new Is(new p["a"](o.lineNumber,o.column,o.lineNumber,o.column),o.leftoverVisibleColumns,new f["a"](a.lineNumber,a.column),a.leftoverVisibleColumns)};e.up=function(e,t,n,r,i,o,a){var s=Os.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize)+i;if((n-=o)<1){n=1;if(a)r=t.getLineMinColumn(n);else{r=Math.min(t.getLineMaxColumn(n),r);Os.isInsideSurrogatePair(t,n,r)&&(r-=1)}}else{r=Os.columnFromVisibleColumn2(e,t,n,s);Os.isInsideSurrogatePair(t,n,r)&&(r-=1)}i=s-Os.visibleColumnFromColumn(t.getLineContent(n),r,e.tabSize);return new Rs(n,r,i)};e.moveUp=function(t,n,r,i,o){var a,s;if(r.hasSelection()&&!i){a=r.selection.startLineNumber;s=r.selection.startColumn}else{a=r.position.lineNumber;s=r.position.column}var u=e.up(t,n,a,s,r.leftoverVisibleColumns,o,!0);return r.move(i,u.lineNumber,u.column,u.leftoverVisibleColumns)};e.translateUp=function(t,n,r){var i=r.selection;var o=e.up(t,n,i.selectionStartLineNumber,i.selectionStartColumn,r.selectionStartLeftoverVisibleColumns,1,!1);var a=e.up(t,n,i.positionLineNumber,i.positionColumn,r.leftoverVisibleColumns,1,!1);return new Is(new p["a"](o.lineNumber,o.column,o.lineNumber,o.column),o.leftoverVisibleColumns,new f["a"](a.lineNumber,a.column),a.leftoverVisibleColumns)};e.moveToBeginningOfLine=function(e,t,n,r){var i=n.position.lineNumber;var o=t.getLineMinColumn(i);var a=t.getLineFirstNonWhitespaceColumn(i)||o;var s;var u;s=n.position.column===a?o:a;return n.move(r,i,s,0)};e.moveToEndOfLine=function(e,t,n,r){var i=n.position.lineNumber;var o=t.getLineMaxColumn(i);return n.move(r,i,o,0)};e.moveToBeginningOfBuffer=function(e,t,n,r){return n.move(r,1,1,0)};e.moveToEndOfBuffer=function(e,t,n,r){var i=t.getLineCount();var o=t.getLineMaxColumn(i);return n.move(r,i,o,0)};return e}();var js=function(){function e(){}e.deleteRight=function(e,t,n,r){var i=[];var o=3!==e;for(var a=0,s=r.length;a<s;a++){var u=r[a];var l=u;if(l.isEmpty()){var c=u.getPosition();var d=Ps.right(t,n,c.lineNumber,c.column);l=new p["a"](d.lineNumber,d.column,c.lineNumber,c.column)}if(l.isEmpty()){i[a]=null;continue}l.startLineNumber!==l.endLineNumber&&(o=!0);i[a]=new As["a"](l,"")}return[o,i]};e._isAutoClosingPairDelete=function(e,t,n){if("never"===e.autoClosingBrackets&&"never"===e.autoClosingQuotes)return!1;for(var r=0,i=n.length;r<i;r++){var o=n[r];var a=o.getPosition();if(!o.isEmpty())return!1;var s=t.getLineContent(a.lineNumber);var u=s[a.column-2];if(!e.autoClosingPairsOpen.hasOwnProperty(u))return!1;if(Es(u)){if("never"===e.autoClosingQuotes)return!1}else if("never"===e.autoClosingBrackets)return!1;var l;var c;if(s[a.column-1]!==e.autoClosingPairsOpen[u])return!1}return!0};e._runAutoClosingPairDelete=function(e,t,n){var r=[];for(var i=0,o=n.length;i<o;i++){var a=n[i].getPosition();var s=new p["a"](a.lineNumber,a.column-1,a.lineNumber,a.column+1);r[i]=new As["a"](s,"")}return[!0,r]};e.deleteLeft=function(e,t,n,r){if(this._isAutoClosingPairDelete(t,n,r))return this._runAutoClosingPairDelete(t,n,r);var i=[];var o=2!==e;for(var a=0,s=r.length;a<s;a++){var u=r[a];var l=u;if(l.isEmpty()){var c=u.getPosition();if(t.useTabStops&&c.column>1){var d=n.getLineContent(c.lineNumber);var h=$["m"](d);var f=-1===h?d.length+1:h+1;if(c.column<=f){var g=Os.visibleColumnFromColumn2(t,n,c);var v=Os.prevTabStop(g,t.tabSize);var m=Os.columnFromVisibleColumn2(t,n,c.lineNumber,v);l=new p["a"](c.lineNumber,m,c.lineNumber,c.column)}else l=new p["a"](c.lineNumber,c.column-1,c.lineNumber,c.column)}else{var _=Ps.left(t,n,c.lineNumber,c.column);l=new p["a"](_.lineNumber,_.column,c.lineNumber,c.column)}}if(l.isEmpty()){i[a]=null;continue}l.startLineNumber!==l.endLineNumber&&(o=!0);i[a]=new As["a"](l,"")}return[o,i]};e.cut=function(e,t,n){var r=[];for(var i=0,o=n.length;i<o;i++){var a=n[i];if(a.isEmpty())if(e.emptySelectionClipboard){var s=a.getPosition();var u=void 0,l=void 0,c=void 0,d=void 0;if(s.lineNumber<t.getLineCount()){u=s.lineNumber;l=1;c=s.lineNumber+1;d=1}else if(s.lineNumber>1){u=s.lineNumber-1;l=t.getLineMaxColumn(s.lineNumber-1);c=s.lineNumber;d=t.getLineMaxColumn(s.lineNumber)}else{u=s.lineNumber;l=1;c=s.lineNumber;d=t.getLineMaxColumn(s.lineNumber)}var h=new p["a"](u,l,c,d);h.isEmpty()?r[i]=null:r[i]=new As["a"](h,"")}else r[i]=null;else r[i]=new As["a"](a,"")}return new ks(0,r,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})};return e}();var Ws=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Fs=function(){function e(){}e._createWord=function(e,t,n,r,i){return{start:r,end:i,wordType:t,nextCharClass:n}};e._findPreviousWordOnLine=function(e,t,n){var r=t.getLineContent(n.lineNumber);return this._doFindPreviousWordOnLine(r,e,n)};e._doFindPreviousWordOnLine=function(e,t,n){var r=0;for(var i=n.column-2;i>=0;i--){var o=e.charCodeAt(i);var a=t.get(o);if(0===a){if(2===r)return this._createWord(e,r,a,i+1,this._findEndOfWord(e,t,r,i+1));r=1}else if(2===a){if(1===r)return this._createWord(e,r,a,i+1,this._findEndOfWord(e,t,r,i+1));r=2}else if(1===a&&0!==r)return this._createWord(e,r,a,i+1,this._findEndOfWord(e,t,r,i+1))}if(0!==r)return this._createWord(e,r,1,0,this._findEndOfWord(e,t,r,0));return null};e._findEndOfWord=function(e,t,n,r){var i=e.length;for(var o=r;o<i;o++){var a=e.charCodeAt(o);var s=t.get(a);if(1===s)return o;if(1===n&&2===s)return o;if(2===n&&0===s)return o}return i};e._findNextWordOnLine=function(e,t,n){var r=t.getLineContent(n.lineNumber);return this._doFindNextWordOnLine(r,e,n)};e._doFindNextWordOnLine=function(e,t,n){var r=0;var i=e.length;for(var o=n.column-1;o<i;o++){var a=e.charCodeAt(o);var s=t.get(a);if(0===s){if(2===r)return this._createWord(e,r,s,this._findStartOfWord(e,t,r,o-1),o);r=1}else if(2===s){if(1===r)return this._createWord(e,r,s,this._findStartOfWord(e,t,r,o-1),o);r=2}else if(1===s&&0!==r)return this._createWord(e,r,s,this._findStartOfWord(e,t,r,o-1),o)}if(0!==r)return this._createWord(e,r,1,this._findStartOfWord(e,t,r,i-1),i);return null};e._findStartOfWord=function(e,t,n,r){for(var i=r;i>=0;i--){var o=e.charCodeAt(i);var a=t.get(o);if(1===a)return i+1;if(1===n&&2===a)return i+1;if(2===n&&0===a)return i+1}return 0};e.moveWordLeft=function(t,n,r,i){var o=r.lineNumber;var a=r.column;var s=!1;if(1===a&&o>1){s=!0;o-=1;a=n.getLineMaxColumn(o)}var u=e._findPreviousWordOnLine(t,n,new f["a"](o,a));if(0===i){if(u&&!s){var l;if(n.getLineLastNonWhitespaceColumn(o)<a)return new f["a"](o,u.end+1)}return new f["a"](o,u?u.start+1:1)}if(1===i){u&&2===u.wordType&&u.end-u.start==1&&0===u.nextCharClass&&(u=e._findPreviousWordOnLine(t,n,new f["a"](o,u.start+1)));return new f["a"](o,u?u.start+1:1)}u&&a<=u.end+1&&(u=e._findPreviousWordOnLine(t,n,new f["a"](o,u.start+1)));return new f["a"](o,u?u.end+1:1)};e._moveWordPartLeft=function(e,t){var n=t.lineNumber;var r=e.getLineMaxColumn(n);if(1===t.column)return n>1?new f["a"](n-1,e.getLineMaxColumn(n-1)):t;var i=e.getLineContent(n);for(var o=t.column-1;o>1;o--){var a=i.charCodeAt(o-2);var s=i.charCodeAt(o-1);if(95!==a&&95===s)return new f["a"](n,o);if($["u"](a)&&$["v"](s))return new f["a"](n,o);if($["v"](a)&&$["v"](s)&&o+1<r){var u=i.charCodeAt(o);if($["u"](u))return new f["a"](n,o)}}return new f["a"](n,1)};e.moveWordRight=function(t,n,r,i){var o=r.lineNumber;var a=r.column;if(a===n.getLineMaxColumn(o)&&o<n.getLineCount()){o+=1;a=1}var s=e._findNextWordOnLine(t,n,new f["a"](o,a));if(2===i){s&&2===s.wordType&&s.end-s.start==1&&0===s.nextCharClass&&(s=e._findNextWordOnLine(t,n,new f["a"](o,s.end+1)));a=s?s.end+1:n.getLineMaxColumn(o)}else{s&&a>=s.start+1&&(s=e._findNextWordOnLine(t,n,new f["a"](o,s.end+1)));a=s?s.start+1:n.getLineMaxColumn(o)}return new f["a"](o,a)};e._moveWordPartRight=function(e,t){var n=t.lineNumber;var r=e.getLineMaxColumn(n);if(t.column===r)return n<e.getLineCount()?new f["a"](n+1,1):t;var i=e.getLineContent(n);for(var o=t.column+1;o<r;o++){var a=i.charCodeAt(o-2);var s=i.charCodeAt(o-1);if(95===a&&95!==s)return new f["a"](n,o);if($["u"](a)&&$["v"](s))return new f["a"](n,o);if($["v"](a)&&$["v"](s)&&o+1<r){var u=i.charCodeAt(o);if($["u"](u))return new f["a"](n,o)}}return new f["a"](n,r)};e._deleteWordLeftWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber);var r=t.column-2;var i=$["w"](n,r);if(i+1<r)return new p["a"](t.lineNumber,i+2,t.lineNumber,t.column);return null};e.deleteWordLeft=function(t,n,r,i,o){if(!r.isEmpty())return r;var a=new f["a"](r.positionLineNumber,r.positionColumn);var s=a.lineNumber;var u=a.column;if(1===s&&1===u)return null;if(i){var l=this._deleteWordLeftWhitespace(n,a);if(l)return l}var c=e._findPreviousWordOnLine(t,n,a);if(0===o)if(c)u=c.start+1;else if(u>1)u=1;else{s--;u=n.getLineMaxColumn(s)}else{c&&u<=c.end+1&&(c=e._findPreviousWordOnLine(t,n,new f["a"](s,c.start+1)));if(c)u=c.end+1;else if(u>1)u=1;else{s--;u=n.getLineMaxColumn(s)}}return new p["a"](s,u,a.lineNumber,a.column)};e._deleteWordPartLeft=function(t,n){if(!n.isEmpty())return n;var r=n.getPosition();var i=e._moveWordPartLeft(t,r);return new p["a"](r.lineNumber,r.column,i.lineNumber,i.column)};e._findFirstNonWhitespaceChar=function(e,t){var n=e.length;for(var r=t;r<n;r++){var i=e.charAt(r);if(" "!==i&&"\t"!==i)return r}return n};e._deleteWordRightWhitespace=function(e,t){var n=e.getLineContent(t.lineNumber);var r=t.column-1;var i=this._findFirstNonWhitespaceChar(n,r);if(r+1<i)return new p["a"](t.lineNumber,t.column,t.lineNumber,i+1);return null};e.deleteWordRight=function(t,n,r,i,o){if(!r.isEmpty())return r;var a=new f["a"](r.positionLineNumber,r.positionColumn);var s=a.lineNumber;var u=a.column;var l=n.getLineCount();var c=n.getLineMaxColumn(s);if(s===l&&u===c)return null;if(i){var d=this._deleteWordRightWhitespace(n,a);if(d)return d}var h=e._findNextWordOnLine(t,n,a);if(2===o)if(h)u=h.end+1;else if(u<c||s===l)u=c;else{s++;u=(h=e._findNextWordOnLine(t,n,new f["a"](s,1)))?h.start+1:n.getLineMaxColumn(s)}else{h&&u>=h.start+1&&(h=e._findNextWordOnLine(t,n,new f["a"](s,h.end+1)));if(h)u=h.start+1;else if(u<c||s===l)u=c;else{s++;u=(h=e._findNextWordOnLine(t,n,new f["a"](s,1)))?h.start+1:n.getLineMaxColumn(s)}}return new p["a"](s,u,a.lineNumber,a.column)};e._deleteWordPartRight=function(t,n){if(!n.isEmpty())return n;var r=n.getPosition();var i=e._moveWordPartRight(t,r);return new p["a"](r.lineNumber,r.column,i.lineNumber,i.column)};e.word=function(t,n,r,i,o){var a=Object(Za["a"])(t.wordSeparators);var s=e._findPreviousWordOnLine(a,n,o);var u=e._findNextWordOnLine(a,n,o);if(!i){var l;var c;if(s&&1===s.wordType&&s.start<=o.column-1&&o.column-1<=s.end){l=s.start+1;c=s.end+1}else if(u&&1===u.wordType&&u.start<=o.column-1&&o.column-1<=u.end){l=u.start+1;c=u.end+1}else{l=s?s.end+1:1;c=u?u.start+1:n.getLineMaxColumn(o.lineNumber)}return new Is(new p["a"](o.lineNumber,l,o.lineNumber,c),0,new f["a"](o.lineNumber,c),0)}var d;var h;if(s&&1===s.wordType&&s.start<o.column-1&&o.column-1<s.end){d=s.start+1;h=s.end+1}else if(u&&1===u.wordType&&u.start<o.column-1&&o.column-1<u.end){d=u.start+1;h=u.end+1}else{d=o.column;h=o.column}var g=o.lineNumber;var v;if(r.selectionStart.containsPosition(o))v=r.selectionStart.endColumn;else if(o.isBeforeOrEqual(r.selectionStart.getStartPosition())){v=d;var m=new f["a"](g,v);r.selectionStart.containsPosition(m)&&(v=r.selectionStart.endColumn)}else{v=h;var m=new f["a"](g,v);r.selectionStart.containsPosition(m)&&(v=r.selectionStart.startColumn)}return r.move(!0,g,v,0)};return e}();var zs=function(e){Ws(t,e);function t(){return null!==e&&e.apply(this,arguments)||this}t.deleteWordPartLeft=function(e,t,n,r){var i=Vs([Fs.deleteWordLeft(e,t,n,r,0),Fs.deleteWordLeft(e,t,n,r,2),Fs._deleteWordPartLeft(t,n)]);i.sort(p["a"].compareRangesUsingEnds);return i[2]};t.deleteWordPartRight=function(e,t,n,r){var i=Vs([Fs.deleteWordRight(e,t,n,r,0),Fs.deleteWordRight(e,t,n,r,2),Fs._deleteWordPartRight(t,n)]);i.sort(p["a"].compareRangesUsingStarts);return i[0]};t.moveWordPartLeft=function(e,t,n){var r=Vs([Fs.moveWordLeft(e,t,n,0),Fs.moveWordLeft(e,t,n,2),Fs._moveWordPartLeft(t,n)]);r.sort(f["a"].compare);return r[2]};t.moveWordPartRight=function(e,t,n){var r=Vs([Fs.moveWordRight(e,t,n,0),Fs.moveWordRight(e,t,n,2),Fs._moveWordPartRight(t,n)]);r.sort(f["a"].compare);return r[0]};return t}(Fs);function Vs(e){return e.filter(function(e){return Boolean(e)})}var Bs=function(){function e(){}e.addCursorDown=function(e,t,n){var r=[],i=0;for(var o=0,a=t.length;o<a;o++){var s=t[o];r[i++]=new Ds(s.modelState,s.viewState);r[i++]=n?Ds.fromModelState(Ps.translateDown(e.config,e.model,s.modelState)):Ds.fromViewState(Ps.translateDown(e.config,e.viewModel,s.viewState))}return r};e.addCursorUp=function(e,t,n){var r=[],i=0;for(var o=0,a=t.length;o<a;o++){var s=t[o];r[i++]=new Ds(s.modelState,s.viewState);r[i++]=n?Ds.fromModelState(Ps.translateUp(e.config,e.model,s.modelState)):Ds.fromViewState(Ps.translateUp(e.config,e.viewModel,s.viewState))}return r};e.moveToBeginningOfLine=function(e,t,n){var r=[];for(var i=0,o=t.length;i<o;i++){var a=t[i];r[i]=this._moveToLineStart(e,a,n)}return r};e._moveToLineStart=function(e,t,n){var r=t.viewState.position.column;var i;var o=r===t.modelState.position.column;var a=t.viewState.position.lineNumber;var s=e.viewModel.getLineFirstNonWhitespaceColumn(a);var u;return o||r===s?this._moveToLineStartByModel(e,t,n):this._moveToLineStartByView(e,t,n)};e._moveToLineStartByView=function(e,t,n){return Ds.fromViewState(Ps.moveToBeginningOfLine(e.config,e.viewModel,t.viewState,n))};e._moveToLineStartByModel=function(e,t,n){return Ds.fromModelState(Ps.moveToBeginningOfLine(e.config,e.model,t.modelState,n))};e.moveToEndOfLine=function(e,t,n){var r=[];for(var i=0,o=t.length;i<o;i++){var a=t[i];r[i]=this._moveToLineEnd(e,a,n)}return r};e._moveToLineEnd=function(e,t,n){var r=t.viewState.position;var i=e.viewModel.getLineMaxColumn(r.lineNumber);var o=r.column===i;var a=t.modelState.position;var s=e.model.getLineMaxColumn(a.lineNumber);var u=i-r.column==s-a.column;return o||u?this._moveToLineEndByModel(e,t,n):this._moveToLineEndByView(e,t,n)};e._moveToLineEndByView=function(e,t,n){return Ds.fromViewState(Ps.moveToEndOfLine(e.config,e.viewModel,t.viewState,n))};e._moveToLineEndByModel=function(e,t,n){return Ds.fromModelState(Ps.moveToEndOfLine(e.config,e.model,t.modelState,n))};e.expandLineSelection=function(e,t){var n=[];for(var r=0,i=t.length;r<i;r++){var o;var a=t[r].viewState.selection;var s=a.startLineNumber;var u=e.viewModel.getLineCount();var l=a.endLineNumber;var c=void 0;if(l===u)c=e.viewModel.getLineMaxColumn(u);else{l++;c=1}n[r]=Ds.fromViewState(new Is(new p["a"](s,1,s,1),0,new f["a"](l,c),0))}return n};e.moveToBeginningOfBuffer=function(e,t,n){var r=[];for(var i=0,o=t.length;i<o;i++){var a=t[i];r[i]=Ds.fromModelState(Ps.moveToBeginningOfBuffer(e.config,e.model,a.modelState,n))}return r};e.moveToEndOfBuffer=function(e,t,n){var r=[];for(var i=0,o=t.length;i<o;i++){var a=t[i];r[i]=Ds.fromModelState(Ps.moveToEndOfBuffer(e.config,e.model,a.modelState,n))}return r};e.selectAll=function(e,t){var n=e.model.getLineCount();var r=e.model.getLineMaxColumn(n);return Ds.fromModelState(new Is(new p["a"](1,1,1,1),0,new f["a"](n,r),0))};e.line=function(e,t,n,r,i){var o=e.model.validatePosition(r);var a=i?e.validateViewPosition(new f["a"](i.lineNumber,i.column),o):e.convertModelPositionToViewPosition(o);if(!n||!t.modelState.hasSelection()){var s=e.model.getLineCount();var u=o.lineNumber+1;var l=1;if(u>s){u=s;l=e.model.getLineMaxColumn(u)}return Ds.fromModelState(new Is(new p["a"](o.lineNumber,1,u,l),0,new f["a"](u,l),0))}var c=t.modelState.selectionStart.getStartPosition().lineNumber;if(o.lineNumber<c)return Ds.fromViewState(t.viewState.move(t.modelState.hasSelection(),a.lineNumber,1,0));if(o.lineNumber>c){var s=e.viewModel.getLineCount();var d=a.lineNumber+1;var h=1;if(d>s){d=s;h=e.viewModel.getLineMaxColumn(d)}return Ds.fromViewState(t.viewState.move(t.modelState.hasSelection(),d,h,0))}var g=t.modelState.selectionStart.getEndPosition();return Ds.fromModelState(t.modelState.move(t.modelState.hasSelection(),g.lineNumber,g.column,0))};e.word=function(e,t,n,r){var i=e.model.validatePosition(r);return Ds.fromModelState(Fs.word(e.config,e.model,t.modelState,n,i))};e.cancelSelection=function(e,t){if(!t.modelState.hasSelection())return new Ds(t.modelState,t.viewState);var n=t.viewState.position.lineNumber;var r=t.viewState.position.column;return Ds.fromViewState(new Is(new p["a"](n,r,n,r),0,new f["a"](n,r),0))};e.moveTo=function(e,t,n,r,i){var o=e.model.validatePosition(r);var a=i?e.validateViewPosition(new f["a"](i.lineNumber,i.column),o):e.convertModelPositionToViewPosition(o);return Ds.fromViewState(t.viewState.move(n,a.lineNumber,a.column,0))};e.move=function(e,t,n){var r=n.select;var i=n.value;switch(n.direction){case 0:return 4===n.unit?this._moveHalfLineLeft(e,t,r):this._moveLeft(e,t,r,i);case 1:return 4===n.unit?this._moveHalfLineRight(e,t,r):this._moveRight(e,t,r,i);case 2:return 2===n.unit?this._moveUpByViewLines(e,t,r,i):this._moveUpByModelLines(e,t,r,i);case 3:return 2===n.unit?this._moveDownByViewLines(e,t,r,i):this._moveDownByModelLines(e,t,r,i);case 4:return this._moveToViewMinColumn(e,t,r);case 5:return this._moveToViewFirstNonWhitespaceColumn(e,t,r);case 6:return this._moveToViewCenterColumn(e,t,r);case 7:return this._moveToViewMaxColumn(e,t,r);case 8:return this._moveToViewLastNonWhitespaceColumn(e,t,r);case 9:var o=t[0];var a=e.getCompletelyVisibleModelRange();var s=this._firstLineNumberInRange(e.model,a,i);var u=e.model.getLineFirstNonWhitespaceColumn(s);return[this._moveToModelPosition(e,o,r,s,u)];case 11:var o=t[0];var a=e.getCompletelyVisibleModelRange();var s=this._lastLineNumberInRange(e.model,a,i);var u=e.model.getLineFirstNonWhitespaceColumn(s);return[this._moveToModelPosition(e,o,r,s,u)];case 10:var o=t[0];var a=e.getCompletelyVisibleModelRange();var s=Math.round((a.startLineNumber+a.endLineNumber)/2);var u=e.model.getLineFirstNonWhitespaceColumn(s);return[this._moveToModelPosition(e,o,r,s,u)];case 12:var l=e.getCompletelyVisibleViewRange();var c=[];for(var d=0,h=t.length;d<h;d++){var o=t[d];c[d]=this.findPositionInViewportIfOutside(e,o,l,r)}return c}return null};e.findPositionInViewportIfOutside=function(e,t,n,r){var i=t.viewState.position.lineNumber;if(n.startLineNumber<=i&&i<=n.endLineNumber-1)return new Ds(t.modelState,t.viewState);i>n.endLineNumber-1&&(i=n.endLineNumber-1);i<n.startLineNumber&&(i=n.startLineNumber);var o=e.viewModel.getLineFirstNonWhitespaceColumn(i);return this._moveToViewPosition(e,t,r,i,o)};e._firstLineNumberInRange=function(e,t,n){var r=t.startLineNumber;t.startColumn!==e.getLineMinColumn(r)&&r++;return Math.min(t.endLineNumber,r+n-1)};e._lastLineNumberInRange=function(e,t,n){var r=t.startLineNumber;t.startColumn!==e.getLineMinColumn(r)&&r++;return Math.max(r,t.endLineNumber-n+1)};e._moveLeft=function(e,t,n,r){var i=[];for(var o=0,a=t.length;o<a;o++){var s=t[o];var u=Ps.moveLeft(e.config,e.viewModel,s.viewState,n,r);if(1===r&&u.position.lineNumber!==s.viewState.position.lineNumber){var l;e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(u.position).lineNumber===s.modelState.position.lineNumber&&(u=Ps.moveLeft(e.config,e.viewModel,u,n,1))}i[o]=Ds.fromViewState(u)}return i};e._moveHalfLineLeft=function(e,t,n){var r=[];for(var i=0,o=t.length;i<o;i++){var a=t[i];var s=a.viewState.position.lineNumber;var u=Math.round(e.viewModel.getLineContent(s).length/2);r[i]=Ds.fromViewState(Ps.moveLeft(e.config,e.viewModel,a.viewState,n,u))}return r};e._moveRight=function(e,t,n,r){var i=[];for(var o=0,a=t.length;o<a;o++){var s=t[o];var u=Ps.moveRight(e.config,e.viewModel,s.viewState,n,r);if(1===r&&u.position.lineNumber!==s.viewState.position.lineNumber){var l;e.viewModel.coordinatesConverter.convertViewPositionToModelPosition(u.position).lineNumber===s.modelState.position.lineNumber&&(u=Ps.moveRight(e.config,e.viewModel,u,n,1))}i[o]=Ds.fromViewState(u)}return i};e._moveHalfLineRight=function(e,t,n){var r=[];for(var i=0,o=t.length;i<o;i++){var a=t[i];var s=a.viewState.position.lineNumber;var u=Math.round(e.viewModel.getLineContent(s).length/2);r[i]=Ds.fromViewState(Ps.moveRight(e.config,e.viewModel,a.viewState,n,u))}return r};e._moveDownByViewLines=function(e,t,n,r){var i=[];for(var o=0,a=t.length;o<a;o++){var s=t[o];i[o]=Ds.fromViewState(Ps.moveDown(e.config,e.viewModel,s.viewState,n,r))}return i};e._moveDownByModelLines=function(e,t,n,r){var i=[];for(var o=0,a=t.length;o<a;o++){var s=t[o];i[o]=Ds.fromModelState(Ps.moveDown(e.config,e.model,s.modelState,n,r))}return i};e._moveUpByViewLines=function(e,t,n,r){var i=[];for(var o=0,a=t.length;o<a;o++){var s=t[o];i[o]=Ds.fromViewState(Ps.moveUp(e.config,e.viewModel,s.viewState,n,r))}return i};e._moveUpByModelLines=function(e,t,n,r){var i=[];for(var o=0,a=t.length;o<a;o++){var s=t[o];i[o]=Ds.fromModelState(Ps.moveUp(e.config,e.model,s.modelState,n,r))}return i};e._moveToViewPosition=function(e,t,n,r,i){return Ds.fromViewState(t.viewState.move(n,r,i,0))};e._moveToModelPosition=function(e,t,n,r,i){return Ds.fromModelState(t.modelState.move(n,r,i,0))};e._moveToViewMinColumn=function(e,t,n){var r=[];for(var i=0,o=t.length;i<o;i++){var a=t[i];var s=a.viewState.position.lineNumber;var u=e.viewModel.getLineMinColumn(s);r[i]=this._moveToViewPosition(e,a,n,s,u)}return r};e._moveToViewFirstNonWhitespaceColumn=function(e,t,n){var r=[];for(var i=0,o=t.length;i<o;i++){var a=t[i];var s=a.viewState.position.lineNumber;var u=e.viewModel.getLineFirstNonWhitespaceColumn(s);r[i]=this._moveToViewPosition(e,a,n,s,u)}return r};e._moveToViewCenterColumn=function(e,t,n){var r=[];for(var i=0,o=t.length;i<o;i++){var a=t[i];var s=a.viewState.position.lineNumber;var u=Math.round((e.viewModel.getLineMaxColumn(s)+e.viewModel.getLineMinColumn(s))/2);r[i]=this._moveToViewPosition(e,a,n,s,u)}return r};e._moveToViewMaxColumn=function(e,t,n){var r=[];for(var i=0,o=t.length;i<o;i++){var a=t[i];var s=a.viewState.position.lineNumber;var u=e.viewModel.getLineMaxColumn(s);r[i]=this._moveToViewPosition(e,a,n,s,u)}return r};e._moveToViewLastNonWhitespaceColumn=function(e,t,n){var r=[];for(var i=0,o=t.length;i<o;i++){var a=t[i];var s=a.viewState.position.lineNumber;var u=e.viewModel.getLineLastNonWhitespaceColumn(s);r[i]=this._moveToViewPosition(e,a,n,s,u)}return r};return e}();var Hs;!function(e){var t=function(e){if(!Kn["g"](e))return!1;var t=e;if(!Kn["h"](t.to))return!1;if(!Kn["i"](t.select)&&!Kn["c"](t.select))return!1;if(!Kn["i"](t.by)&&!Kn["h"](t.by))return!1;if(!Kn["i"](t.value)&&!Kn["f"](t.value))return!1;return!0};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\t\t\t\t\t* 'to': A mandatory logical position value providing where to move the cursor.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'left', 'right', 'up', 'down'\n\t\t\t\t\t\t'wrappedLineStart', 'wrappedLineEnd', 'wrappedLineColumnCenter'\n\t\t\t\t\t\t'wrappedLineFirstNonWhitespaceCharacter', 'wrappedLineLastNonWhitespaceCharacter'\n\t\t\t\t\t\t'viewPortTop', 'viewPortCenter', 'viewPortBottom', 'viewPortIfOutside'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'character', 'halfLine'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'select': If 'true' makes the selection. Default is 'false'.\n\t\t\t\t",constraint:t}]};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"};function n(t){if(!t.to)return null;var n;switch(t.to){case e.RawDirection.Left:n=0;break;case e.RawDirection.Right:n=1;break;case e.RawDirection.Up:n=2;break;case e.RawDirection.Down:n=3;break;case e.RawDirection.WrappedLineStart:n=4;break;case e.RawDirection.WrappedLineFirstNonWhitespaceCharacter:n=5;break;case e.RawDirection.WrappedLineColumnCenter:n=6;break;case e.RawDirection.WrappedLineEnd:n=7;break;case e.RawDirection.WrappedLineLastNonWhitespaceCharacter:n=8;break;case e.RawDirection.ViewPortTop:n=9;break;case e.RawDirection.ViewPortBottom:n=11;break;case e.RawDirection.ViewPortCenter:n=10;break;case e.RawDirection.ViewPortIfOutside:n=12;break;default:return null}var r=0;switch(t.by){case e.RawUnit.Line:r=1;break;case e.RawUnit.WrappedLine:r=2;break;case e.RawUnit.Character:r=3;break;case e.RawUnit.HalfLine:r=4}return{direction:n,unit:r,select:!!t.select,value:t.value||1}}e.parse=n}(Hs||(Hs={}));var Us=function(){function e(e,t){this._opts=t;this._selection=e;this._useLastEditRangeForCursorEndPosition=!1;this._selectionStartColumnStaysPut=!1}e.unshiftIndentCount=function(e,t,n){var r=Os.visibleColumnFromColumn(e,t,n);var i;return Os.prevTabStop(r,n)/n};e.shiftIndentCount=function(e,t,n){var r=Os.visibleColumnFromColumn(e,t,n);var i;return Os.nextTabStop(r,n)/n};e.prototype._addEditOperation=function(e,t,n){this._useLastEditRangeForCursorEndPosition?e.addTrackedEditOperation(t,n):e.addEditOperation(t,n)};e.prototype.getEditOperations=function(t,n){var r=this._selection.startLineNumber;var i=this._selection.endLineNumber;1===this._selection.endColumn&&r!==i&&(i-=1);var o=this._opts.tabSize;var a=this._opts.oneIndent;var s=r===i;this._selection.isEmpty()&&/^\s*$/.test(t.getLineContent(r))&&(this._useLastEditRangeForCursorEndPosition=!0);if(this._opts.useTabStops){var u=["",a];var l=0,c=0;for(var d=r;d<=i;d++,l=c){c=0;var h=t.getLineContent(d);var f=$["m"](h);if(this._opts.isUnshift&&(0===h.length||0===f))continue;if(!s&&!this._opts.isUnshift&&0===h.length)continue;-1===f&&(f=h.length);if(d>1){var g;if(Os.visibleColumnFromColumn(h,f+1,o)%o!=0&&t.isCheapToTokenize(d-1)){var v=ot["a"].getRawEnterActionAtPosition(t,d-1,t.getLineMaxColumn(d-1));if(v){c=l;if(v.appendText)for(var m=0,_=v.appendText.length;m<_&&c<o&&32===v.appendText.charCodeAt(m);m++)c++;v.removeText&&(c=Math.max(0,c-v.removeText));for(var m=0;m<c&&(0!==f&&32===h.charCodeAt(f-1));m++)f--}}}if(this._opts.isUnshift&&0===f)continue;var y=void 0;y=this._opts.isUnshift?e.unshiftIndentCount(h,f+1,o):e.shiftIndentCount(h,f+1,o);for(var m=u.length;m<=y;m++)u[m]=u[m-1]+a;this._addEditOperation(n,new p["a"](d,1,d,f+1),u[y]);d===r&&(this._selectionStartColumnStaysPut=this._selection.startColumn<=f+1)}}else for(var d=r;d<=i;d++){var h=t.getLineContent(d);var f=$["m"](h);if(this._opts.isUnshift&&(0===h.length||0===f))continue;if(!s&&!this._opts.isUnshift&&0===h.length)continue;-1===f&&(f=h.length);if(this._opts.isUnshift&&0===f)continue;if(this._opts.isUnshift){f=Math.min(f,o);for(var b=0;b<f;b++){var C;if(9===h.charCodeAt(b)){f=b+1;break}}this._addEditOperation(n,new p["a"](d,1,d,f+1),"")}else{this._addEditOperation(n,new p["a"](d,1,d,1),a);d===r&&(this._selectionStartColumnStaysPut=1===this._selection.startColumn)}}this._selectionId=n.trackSelection(this._selection)};e.prototype.computeCursorState=function(e,t){if(this._useLastEditRangeForCursorEndPosition){var n=t.getInverseEditOperations()[0];return new g["a"](n.range.endLineNumber,n.range.endColumn,n.range.endLineNumber,n.range.endColumn)}var r=t.getTrackedSelection(this._selectionId);if(this._selectionStartColumnStaysPut){var i=this._selection.startColumn;var o;if(r.startColumn<=i)return r;if(0===r.getDirection())return new g["a"](r.startLineNumber,i,r.endLineNumber,r.endColumn);return new g["a"](r.endLineNumber,r.endColumn,r.startLineNumber,i)}return r};return e}();var Zs=function(){function e(e,t,n){this._range=e;this._charBeforeSelection=t;this._charAfterSelection=n}e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(new p["a"](this._range.startLineNumber,this._range.startColumn,this._range.startLineNumber,this._range.startColumn),this._charBeforeSelection);t.addTrackedEditOperation(new p["a"](this._range.endLineNumber,this._range.endColumn,this._range.endLineNumber,this._range.endColumn),this._charAfterSelection)};e.prototype.computeCursorState=function(e,t){var n=t.getInverseEditOperations();var r=n[0].range;var i=n[1].range;return new g["a"](r.endLineNumber,r.endColumn,i.endLineNumber,i.endColumn-this._charAfterSelection.length)};return e}();var Gs=n("zgxN");var Ys=function(){function e(){}e.indent=function(e,t,n){var r=[];for(var i=0,o=n.length;i<o;i++)r[i]=new Us(n[i],{isUnshift:!1,tabSize:e.tabSize,oneIndent:e.oneIndent,useTabStops:e.useTabStops});return r};e.outdent=function(e,t,n){var r=[];for(var i=0,o=n.length;i<o;i++)r[i]=new Us(n[i],{isUnshift:!0,tabSize:e.tabSize,oneIndent:e.oneIndent,useTabStops:e.useTabStops});return r};e.shiftIndent=function(e,t,n){n=n||1;var r=Us.shiftIndentCount(t,t.length+n,e.tabSize);var i="";for(var o=0;o<r;o++)i+="\t";return i};e.unshiftIndent=function(e,t,n){n=n||1;var r=Us.unshiftIndentCount(t,t.length+n,e.tabSize);var i="";for(var o=0;o<r;o++)i+="\t";return i};e._distributedPaste=function(e,t,n,r){var i=[];for(var o=0,a=n.length;o<a;o++)i[o]=new As["a"](n[o],r[o]);return new ks(0,i,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})};e._simplePaste=function(e,t,n,r,i){var o=[];for(var a=0,s=n.length;a<s;a++){var u=n[a];var l=u.getPosition();i&&r.indexOf("\n")!==r.length-1&&(i=!1);i&&u.startLineNumber!==u.endLineNumber&&(i=!1);i&&u.startColumn===t.getLineMinColumn(u.startLineNumber)&&u.endColumn===t.getLineMaxColumn(u.startLineNumber)&&(i=!1);if(i){var c=new p["a"](l.lineNumber,1,l.lineNumber,1);o[a]=new As["a"](c,r)}else o[a]=new As["a"](u,r)}return new ks(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})};e._distributePasteToCursors=function(e,t,n,r){if(n)return null;if(1===e.length)return null;if(r&&r.length===e.length)return r;10===t.charCodeAt(t.length-1)&&(t=t.substr(0,t.length-1));var i=t.split(/\r\n|\r|\n/);if(i.length===e.length)return i;return null};e.paste=function(e,t,n,r,i,o){var a=this._distributePasteToCursors(n,r,i,o);if(a){n=n.sort(p["a"].compareRangesUsingStarts);return this._distributedPaste(e,t,n,a)}return this._simplePaste(e,t,n,r,i)};e._goodIndentForLine=function(t,n,r){var i=null;var o="";var a=t.autoIndent?ot["a"].getInheritIndentForLine(n,r,!1):null;if(a){i=a.action;o=a.indentation}else if(r>1){var s=r-1;for(s=r-1;s>=1;s--){var u=n.getLineContent(s);var l;if($["w"](u)>=0)break}if(s<1)return null;var c=n.getLineMaxColumn(s);var d=ot["a"].getEnterAction(n,new p["a"](s,c,s,c));if(d){o=d.indentation;(i=d.enterAction)&&(o+=i.appendText)}}if(i){i===Gs["a"].Indent&&(o=e.shiftIndent(t,o));i===Gs["a"].Outdent&&(o=e.unshiftIndent(t,o));o=t.normalizeIndentation(o)}if(!o)return null;return o};e._replaceJumpToNextIndent=function(e,t,n,r){var i="";var o=n.getStartPosition();if(e.insertSpaces){var a=Os.visibleColumnFromColumn2(e,t,o);var s=e.tabSize;var u=s-a%s;for(var l=0;l<u;l++)i+=" "}else i="\t";return new As["a"](n,i,r)};e.tab=function(e,t,n){var r=[];for(var i=0,o=n.length;i<o;i++){var a=n[i];if(a.isEmpty()){var s=t.getLineContent(a.startLineNumber);if(/^\s*$/.test(s)&&t.isCheapToTokenize(a.startLineNumber)){var u=this._goodIndentForLine(e,t,a.startLineNumber);u=u||"\t";var l=e.normalizeIndentation(u);if(!$["A"](s,l)){r[i]=new As["a"](new p["a"](a.startLineNumber,1,a.startLineNumber,s.length+1),l,!0);continue}}r[i]=this._replaceJumpToNextIndent(e,t,a,!0)}else{if(a.startLineNumber===a.endLineNumber){var c=t.getLineMaxColumn(a.startLineNumber);if(1!==a.startColumn||a.endColumn!==c){r[i]=this._replaceJumpToNextIndent(e,t,a,!1);continue}}r[i]=new Us(a,{isUnshift:!1,tabSize:e.tabSize,oneIndent:e.oneIndent,useTabStops:e.useTabStops})}}return r};e.replacePreviousChar=function(e,t,n,r,i,o){var a=[];for(var s=0,u=r.length;s<u;s++){var l=r[s];if(!l.isEmpty()){a[s]=null;continue}var c=l.getPosition();var d=Math.max(1,c.column-o);var h=new p["a"](c.lineNumber,d,c.lineNumber,c.column);a[s]=new As["a"](h,i)}return new ks(1,a,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})};e._typeCommand=function(e,t,n){return n?new As["d"](e,t,!0):new As["a"](e,t,!0)};e._enter=function(t,n,r,i){if(!n.isCheapToTokenize(i.getStartPosition().lineNumber)){var o=n.getLineContent(i.startLineNumber);var a=$["o"](o).substring(0,i.startColumn-1);return e._typeCommand(i,"\n"+t.normalizeIndentation(a),r)}var s=ot["a"].getEnterAction(n,i);if(s){var u=s.enterAction;var l=s.indentation;if(u.indentAction===Gs["a"].None)return e._typeCommand(i,"\n"+t.normalizeIndentation(l+u.appendText),r);if(u.indentAction===Gs["a"].Indent)return e._typeCommand(i,"\n"+t.normalizeIndentation(l+u.appendText),r);if(u.indentAction===Gs["a"].IndentOutdent){var c=t.normalizeIndentation(l);var d=t.normalizeIndentation(l+u.appendText);var h="\n"+d+"\n"+c;return r?new As["d"](i,h,!0):new As["c"](i,h,-1,d.length-c.length,!0)}if(u.indentAction===Gs["a"].Outdent){var f=e.unshiftIndent(t,l);return e._typeCommand(i,"\n"+t.normalizeIndentation(f+u.appendText),r)}}if(!t.autoIndent){var g=n.getLineContent(i.startLineNumber);var v=$["o"](g).substring(0,i.startColumn-1);return e._typeCommand(i,"\n"+t.normalizeIndentation(v),r)}var m=ot["a"].getIndentForEnter(n,i,{unshiftIndent:function(n){return e.unshiftIndent(t,n)},shiftIndent:function(n){return e.shiftIndent(t,n)},normalizeIndentation:function(e){return t.normalizeIndentation(e)}},t.autoIndent);var _=n.getLineContent(i.startLineNumber);var y=$["o"](_).substring(0,i.startColumn-1);if(m){var b=Os.visibleColumnFromColumn2(t,n,i.getEndPosition());var C=i.endColumn;var w="\n";if(y!==t.normalizeIndentation(m.beforeEnter)){w=t.normalizeIndentation(m.beforeEnter)+_.substring(y.length,i.startColumn-1)+"\n";i=new p["a"](i.startLineNumber,1,i.endLineNumber,i.endColumn)}var S=n.getLineContent(i.endLineNumber);var L=$["m"](S);i=L>=0?i.setEndPosition(i.endLineNumber,Math.max(i.endColumn,L+1)):i.setEndPosition(i.endLineNumber,n.getLineMaxColumn(i.endLineNumber));if(r)return new As["d"](i,w+t.normalizeIndentation(m.afterEnter),!0);var I=0;if(C<=L+1){t.insertSpaces||(b=Math.ceil(b/t.tabSize));I=Math.min(b+1-t.normalizeIndentation(m.afterEnter).length-1,0)}return new As["c"](i,w+t.normalizeIndentation(m.afterEnter),0,I,!0)}return e._typeCommand(i,"\n"+t.normalizeIndentation(y),r)};e._isAutoIndentType=function(e,t,n){if(!e.autoIndent)return!1;for(var r=0,i=n.length;r<i;r++)if(!t.isCheapToTokenize(n[r].getEndPosition().lineNumber))return!1;return!0};e._runAutoIndentType=function(t,n,r,i){var o=ot["a"].getIndentationAtPosition(n,r.startLineNumber,r.startColumn);var a=ot["a"].getIndentActionForType(n,r,i,{shiftIndent:function(n){return e.shiftIndent(t,n)},unshiftIndent:function(n){return e.unshiftIndent(t,n)}});if(null===a)return null;if(a!==t.normalizeIndentation(o)){var s=n.getLineFirstNonWhitespaceColumn(r.startLineNumber);return 0===s?e._typeCommand(new p["a"](r.startLineNumber,0,r.endLineNumber,r.endColumn),t.normalizeIndentation(a)+i,!1):e._typeCommand(new p["a"](r.startLineNumber,0,r.endLineNumber,r.endColumn),t.normalizeIndentation(a)+n.getLineContent(r.startLineNumber).substring(s-1,r.startColumn-1)+i,!1)}return null};e._isAutoClosingCloseCharType=function(e,t,n,r){var i;if("never"===(Es(r)?e.autoClosingQuotes:e.autoClosingBrackets)||!e.autoClosingPairsClose.hasOwnProperty(r))return!1;var o=r===e.autoClosingPairsClose[r];for(var a=0,s=n.length;a<s;a++){var u=n[a];if(!u.isEmpty())return!1;var l=u.getPosition();var c=t.getLineContent(l.lineNumber);var d;if(c.charAt(l.column-1)!==r)return!1;if(o){var h=c.substr(0,l.column-1);var f;if(this._countNeedlesInHaystack(h,r)%2==0)return!1}}return!0};e._countNeedlesInHaystack=function(e,t){var n=0;var r=-1;for(;-1!==(r=e.indexOf(t,r+1));)n++;return n};e._runAutoClosingCloseCharType=function(e,t,n,r,i){var o=[];for(var a=0,s=r.length;a<s;a++){var u;var l=r[a].getPosition();var c=new p["a"](l.lineNumber,l.column,l.lineNumber,l.column+1);o[a]=new As["a"](c,i)}return new ks(1,o,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})};e._isBeforeClosingBrace=function(e,t,n){var r=e.autoClosingPairsOpen[t]===t;var i=!1;for(var o in e.autoClosingPairsClose){var a=e.autoClosingPairsOpen[o]===o;if(!r&&a)continue;if(n===o){i=!0;break}}return i};e._isAutoClosingOpenCharType=function(t,n,r,i){var o=Es(i);var a;if("never"===(o?t.autoClosingQuotes:t.autoClosingBrackets)||!t.autoClosingPairsOpen.hasOwnProperty(i))return!1;var s=o?t.shouldAutoCloseBefore.quote:t.shouldAutoCloseBefore.bracket;for(var u=0,l=r.length;u<l;u++){var c=r[u];if(!c.isEmpty())return!1;var d=c.getPosition();var h=n.getLineContent(d.lineNumber);if(o&&d.column>1){var f=Object(Za["a"])(t.wordSeparators);var p=h.charCodeAt(d.column-2);var g;if(0===f.get(p))return!1}var v=h.charAt(d.column-1);if(v){var m;if(!e._isBeforeClosingBrace(t,i,v)&&!s(v))return!1}if(!n.isCheapToTokenize(d.lineNumber))return!1;n.forceTokenization(d.lineNumber);var _=n.getLineTokens(d.lineNumber);var y=!1;try{y=ot["a"].shouldAutoClosePair(i,_,d.column)}catch(e){Object(Ge["d"])(e)}if(!y)return!1}return!0};e._runAutoClosingOpenCharType=function(e,t,n,r,i){var o=[];for(var a=0,s=r.length;a<s;a++){var u=r[a];var l=t.autoClosingPairsOpen[i];o[a]=new As["c"](u,i+l,0,-l.length)}return new ks(1,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})};e._shouldSurroundChar=function(e,t){return Es(t)?"quotes"===e.autoSurround||"languageDefined"===e.autoSurround:"brackets"===e.autoSurround||"languageDefined"===e.autoSurround};e._isSurroundSelectionType=function(t,n,r,i){if(!e._shouldSurroundChar(t,i)||!t.surroundingPairs.hasOwnProperty(i))return!1;var o=Es(i);for(var a=0,s=r.length;a<s;a++){var u=r[a];if(u.isEmpty())return!1;var l=!0;for(var c=u.startLineNumber;c<=u.endLineNumber;c++){var d=n.getLineContent(c);var h=c===u.startLineNumber?u.startColumn-1:0;var f=c===u.endLineNumber?u.endColumn-1:d.length;var p=d.substring(h,f);if(/[^ \t]/.test(p)){l=!1;break}}if(l)return!1;if(o&&u.startLineNumber===u.endLineNumber&&u.startColumn+1===u.endColumn){var g;if(Es(n.getValueInRange(u)))return!1}}return!0};e._runSurroundSelectionType=function(e,t,n,r,i){var o=[];for(var a=0,s=r.length;a<s;a++){var u=r[a];var l=t.surroundingPairs[i];o[a]=new Zs(u,i,l)}return new ks(0,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!0})};e._isTypeInterceptorElectricChar=function(e,t,n){if(1===n.length&&t.isCheapToTokenize(n[0].getEndPosition().lineNumber))return!0;return!1};e._typeInterceptorElectricChar=function(e,t,n,r,i){if(!t.electricChars.hasOwnProperty(i)||!r.isEmpty())return null;var o=r.getPosition();n.forceTokenization(o.lineNumber);var a=n.getLineTokens(o.lineNumber);var s;try{s=ot["a"].onElectricCharacter(i,a,o.column)}catch(e){Object(Ge["d"])(e);return null}if(!s)return null;if(s.appendText){var u=new As["c"](r,i+s.appendText,0,-s.appendText.length);return new ks(1,[u],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}if(s.matchOpenBracket){var l=(a.getLineContent()+i).lastIndexOf(s.matchOpenBracket)+1;var c=n.findMatchingBracketUp(s.matchOpenBracket,{lineNumber:o.lineNumber,column:l});if(c){if(c.startLineNumber===o.lineNumber)return null;var d=n.getLineContent(c.startLineNumber);var h=$["o"](d);var f=t.normalizeIndentation(h);var g=n.getLineContent(o.lineNumber);var v=n.getLineFirstNonWhitespaceColumn(o.lineNumber)||o.column;var m;var _=f+g.substring(v-1,o.column-1)+i;var y=new p["a"](o.lineNumber,1,o.lineNumber,o.column);var u=new As["a"](y,_);return new ks(1,[u],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!0})}}return null};e.compositionEndWithInterceptors=function(t,n,r,i){if("never"===n.autoClosingQuotes)return null;var o=[];for(var a=0;a<i.length;a++){if(!i[a].isEmpty())continue;var s=i[a].getPosition();var u=r.getLineContent(s.lineNumber);var l=u.charAt(s.column-2);if(n.autoClosingPairsClose.hasOwnProperty(l)&&l===n.autoClosingPairsClose[l]){var c=u.substr(0,s.column-2);var d;if(this._countNeedlesInHaystack(c,l)%2==1)continue}if(n.autoClosingPairsOpen.hasOwnProperty(l)){if(Es(l)&&s.column>2){var h=Object(Za["a"])(n.wordSeparators);var f=u.charCodeAt(s.column-3);var p;if(0===h.get(f))continue}var g=u.charAt(s.column-1);if(g){var v=e._isBeforeClosingBrace(n,l,g);var m=Es(l)?n.shouldAutoCloseBefore.quote:n.shouldAutoCloseBefore.bracket;if(v)continue;if(!m(g))continue}if(!r.isCheapToTokenize(s.lineNumber))continue;r.forceTokenization(s.lineNumber);var _=r.getLineTokens(s.lineNumber);var y=!1;try{y=ot["a"].shouldAutoClosePair(l,_,s.column-1)}catch(e){Object(Ge["d"])(e)}if(y){var b=n.autoClosingPairsOpen[l];o[a]=new As["c"](i[a],b,0,-b.length)}}}return new ks(1,o,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})};e.typeWithInterceptors=function(t,n,r,i,o){if("\n"===o){var a=[];for(var s=0,u=i.length;s<u;s++)a[s]=e._enter(n,r,!1,i[s]);return new ks(1,a,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoIndentType(n,r,i)){var l=[];var c=!1;for(var s=0,u=i.length;s<u;s++){l[s]=this._runAutoIndentType(n,r,i[s],o);if(!l[s]){c=!0;break}}if(!c)return new ks(1,l,{shouldPushStackElementBefore:!0,shouldPushStackElementAfter:!1})}if(this._isAutoClosingCloseCharType(n,r,i,o))return this._runAutoClosingCloseCharType(t,n,r,i,o);if(this._isAutoClosingOpenCharType(n,r,i,o))return this._runAutoClosingOpenCharType(t,n,r,i,o);if(this._isSurroundSelectionType(n,r,i,o))return this._runSurroundSelectionType(t,n,r,i,o);if(this._isTypeInterceptorElectricChar(n,r,i)){var d=this._typeInterceptorElectricChar(t,n,r,i[0],o);if(d)return d}var h=[];for(var s=0,u=i.length;s<u;s++)h[s]=new As["a"](i[s],o);var f=1!==t;" "===o&&(f=!0);return new ks(1,h,{shouldPushStackElementBefore:f,shouldPushStackElementAfter:!1})};e.typeWithoutInterceptors=function(e,t,n,r,i){var o=[];for(var a=0,s=r.length;a<s;a++)o[a]=new As["a"](r[a],i);return new ks(1,o,{shouldPushStackElementBefore:1!==e,shouldPushStackElementAfter:!1})};e.lineInsertBefore=function(e,t,n){var r=[];for(var i=0,o=n.length;i<o;i++){var a=n[i].positionLineNumber;if(1===a)r[i]=new As["d"](new p["a"](1,1,1,1),"\n");else{a--;var s=t.getLineMaxColumn(a);r[i]=this._enter(e,t,!1,new p["a"](a,s,a,s))}}return r};e.lineInsertAfter=function(e,t,n){var r=[];for(var i=0,o=n.length;i<o;i++){var a=n[i].positionLineNumber;var s=t.getLineMaxColumn(a);r[i]=this._enter(e,t,!1,new p["a"](a,s,a,s))}return r};e.lineBreakInsert=function(e,t,n){var r=[];for(var i=0,o=n.length;i<o;i++)r[i]=this._enter(e,t,!0,n[i]);return r};return e}();var Ks=n("gYaU");var Qs=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var qs=0;var Js=function(e){Qs(t,e);function t(){return null!==e&&e.apply(this,arguments)||this}t.prototype.runEditorCommand=function(e,t,n){var r=t._getCursors();if(!r)return;this.runCoreEditorCommand(r,n||{})};return t}(Yi["c"]);var Xs;!function(e){var t=function(e){if(!Kn["g"](e))return!1;var t=e;if(!Kn["h"](t.to))return!1;if(!Kn["i"](t.by)&&!Kn["h"](t.by))return!1;if(!Kn["i"](t.value)&&!Kn["f"](t.value))return!1;if(!Kn["i"](t.revealCursor)&&!Kn["c"](t.revealCursor))return!1;return!0};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\t\t\t\t\t* 'to': A mandatory direction value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'up', 'down'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'by': Unit to move. Default is computed based on 'to' value.\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'line', 'wrappedLine', 'page', 'halfPage'\n\t\t\t\t\t\t```\n\t\t\t\t\t* 'value': Number of units to move. Default is '1'.\n\t\t\t\t\t* 'revealCursor': If 'true' reveals the cursor if it is outside view port.\n\t\t\t\t",constraint:t}]};e.RawDirection={Up:"up",Down:"down"};e.RawUnit={Line:"line",WrappedLine:"wrappedLine",Page:"page",HalfPage:"halfPage"};function n(t){var n;switch(t.to){case e.RawDirection.Up:n=1;break;case e.RawDirection.Down:n=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 i;var o;return{direction:n,unit:r,value:Math.floor(t.value||1),revealCursor:!!t.revealCursor,select:!!t.select}}e.parse=n}(Xs||(Xs={}));var $s;!function(e){var t=function(e){if(!Kn["g"](e))return!1;var t=e;if(!Kn["f"](t.lineNumber))return!1;if(!Kn["i"](t.at)&&!Kn["h"](t.at))return!1;return!0};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\t\t\t\t\t* 'lineNumber': A mandatory line number value.\n\t\t\t\t\t* 'at': Logical position at which line has to be revealed .\n\t\t\t\t\t\t```\n\t\t\t\t\t\t'top', 'center', 'bottom'\n\t\t\t\t\t\t```\n\t\t\t\t",constraint:t}]};e.RawAtArgument={Top:"top",Center:"center",Bottom:"bottom"}}($s||($s={}));var eu;!function(e){var t=function(e){Qs(t,e);function t(t){var n=e.call(this,t)||this;n._inSelectionMode=t.inSelectionMode;return n}t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();e.setStates(t.source,3,[Bs.moveTo(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]);e.reveal(!0,0,0)};return t}(Js);e.MoveTo=Object(Yi["f"])(new t({id:"_moveTo",inSelectionMode:!1,precondition:null}));e.MoveToSelect=Object(Yi["f"])(new t({id:"_moveToSelect",inSelectionMode:!0,precondition:null}));var n=function(e){Qs(t,e);function t(){return null!==e&&e.apply(this,arguments)||this}t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();var n=this._getColumnSelectResult(e.context,e.getPrimaryCursor(),e.getColumnSelectData(),t);e.setStates(t.source,3,n.viewStates.map(function(e){return Ds.fromViewState(e)}));e.setColumnSelectData({toViewLineNumber:n.toLineNumber,toViewVisualColumn:n.toVisualColumn});e.reveal(!0,n.reversed?1:2,0)};return t}(Js);e.ColumnSelect=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"columnSelect",precondition:null})||this}t.prototype._getColumnSelectResult=function(e,t,n,r){var i=e.model.validatePosition(r.position);var o;o=r.viewPosition?e.validateViewPosition(new f["a"](r.viewPosition.lineNumber,r.viewPosition.column),i):e.convertModelPositionToViewPosition(i);return Ts.columnSelect(e.config,e.viewModel,t.viewState.selection,o.lineNumber,r.mouseColumn-1)};return t}(n)));e.CursorColumnSelectLeft=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"cursorColumnSelectLeft",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:3599,linux:{primary:0}}})||this}t.prototype._getColumnSelectResult=function(e,t,n,r){return Ts.columnSelectLeft(e.config,e.viewModel,t.viewState,n.toViewLineNumber,n.toViewVisualColumn)};return t}(n)));e.CursorColumnSelectRight=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"cursorColumnSelectRight",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:3601,linux:{primary:0}}})||this}t.prototype._getColumnSelectResult=function(e,t,n,r){return Ts.columnSelectRight(e.config,e.viewModel,t.viewState,n.toViewLineNumber,n.toViewVisualColumn)};return t}(n)));var r=function(e){Qs(t,e);function t(t){var n=e.call(this,t)||this;n._isPaged=t.isPaged;return n}t.prototype._getColumnSelectResult=function(e,t,n,r){return Ts.columnSelectUp(e.config,e.viewModel,t.viewState,this._isPaged,n.toViewLineNumber,n.toViewVisualColumn)};return t}(n);e.CursorColumnSelectUp=Object(Yi["f"])(new r({isPaged:!1,id:"cursorColumnSelectUp",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:3600,linux:{primary:0}}}));e.CursorColumnSelectPageUp=Object(Yi["f"])(new r({isPaged:!0,id:"cursorColumnSelectPageUp",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:3595,linux:{primary:0}}}));var i=function(e){Qs(t,e);function t(t){var n=e.call(this,t)||this;n._isPaged=t.isPaged;return n}t.prototype._getColumnSelectResult=function(e,t,n,r){return Ts.columnSelectDown(e.config,e.viewModel,t.viewState,this._isPaged,n.toViewLineNumber,n.toViewVisualColumn)};return t}(n);e.CursorColumnSelectDown=Object(Yi["f"])(new i({isPaged:!1,id:"cursorColumnSelectDown",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:3602,linux:{primary:0}}}));e.CursorColumnSelectPageDown=Object(Yi["f"])(new i({isPaged:!0,id:"cursorColumnSelectPageDown",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:3596,linux:{primary:0}}}));var o=function(e){Qs(t,e);function t(){return e.call(this,{id:"cursorMove",precondition:null,description:Hs.description})||this}t.prototype.runCoreEditorCommand=function(e,t){var n=Hs.parse(t);if(!n)return;this._runCursorMove(e,t.source,n)};t.prototype._runCursorMove=function(e,t,n){e.context.model.pushStackElement();e.setStates(t,3,Bs.move(e.context,e.getAll(),n));e.reveal(!0,0,0)};return t}(Js);e.CursorMoveImpl=o;e.CursorMove=Object(Yi["f"])(new o);var a=function(t){Qs(n,t);function n(e){var n=t.call(this,e)||this;n._staticArgs=e.args;return n}n.prototype.runCoreEditorCommand=function(t,n){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,n.source,r)};return n}(Js);e.CursorLeft=Object(Yi["f"])(new a({args:{direction:0,unit:0,select:!1,value:1},id:"cursorLeft",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:15,mac:{primary:15,secondary:[288]}}}));e.CursorLeftSelect=Object(Yi["f"])(new a({args:{direction:0,unit:0,select:!0,value:1},id:"cursorLeftSelect",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:1039}}));e.CursorRight=Object(Yi["f"])(new a({args:{direction:1,unit:0,select:!1,value:1},id:"cursorRight",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:17,mac:{primary:17,secondary:[292]}}}));e.CursorRightSelect=Object(Yi["f"])(new a({args:{direction:1,unit:0,select:!0,value:1},id:"cursorRightSelect",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:1041}}));e.CursorUp=Object(Yi["f"])(new a({args:{direction:2,unit:2,select:!1,value:1},id:"cursorUp",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:16,mac:{primary:16,secondary:[302]}}}));e.CursorUpSelect=Object(Yi["f"])(new a({args:{direction:2,unit:2,select:!0,value:1},id:"cursorUpSelect",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:1040,secondary:[3088],mac:{primary:1040},linux:{primary:1040}}}));e.CursorPageUp=Object(Yi["f"])(new a({args:{direction:2,unit:2,select:!1,value:-1},id:"cursorPageUp",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:11}}));e.CursorPageUpSelect=Object(Yi["f"])(new a({args:{direction:2,unit:2,select:!0,value:-1},id:"cursorPageUpSelect",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:1035}}));e.CursorDown=Object(Yi["f"])(new a({args:{direction:3,unit:2,select:!1,value:1},id:"cursorDown",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:18,mac:{primary:18,secondary:[300]}}}));e.CursorDownSelect=Object(Yi["f"])(new a({args:{direction:3,unit:2,select:!0,value:1},id:"cursorDownSelect",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:1042,secondary:[3090],mac:{primary:1042},linux:{primary:1042}}}));e.CursorPageDown=Object(Yi["f"])(new a({args:{direction:3,unit:2,select:!1,value:-1},id:"cursorPageDown",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:12}}));e.CursorPageDownSelect=Object(Yi["f"])(new a({args:{direction:3,unit:2,select:!0,value:-1},id:"cursorPageDownSelect",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:1036}}));e.CreateCursor=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"createCursor",precondition:null})||this}t.prototype.runCoreEditorCommand=function(e,t){var n=e.context;var r;r=t.wholeLine?Bs.line(n,e.getPrimaryCursor(),!1,t.position,t.viewPosition):Bs.moveTo(n,e.getPrimaryCursor(),!1,t.position,t.viewPosition);var i=e.getAll();if(i.length>1){var o=r.modelState?r.modelState.position:null;var a=r.viewState?r.viewState.position:null;for(var s=0,u=i.length;s<u;s++){var l=i[s];if(o&&!l.modelState.selection.containsPosition(o))continue;if(a&&!l.viewState.selection.containsPosition(a))continue;i.splice(s,1);e.context.model.pushStackElement();e.setStates(t.source,3,i);return}}i.push(r);e.context.model.pushStackElement();e.setStates(t.source,3,i)};return t}(Js)));e.LastCursorMoveToSelect=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"_lastCursorMoveToSelect",precondition:null})||this}t.prototype.runCoreEditorCommand=function(e,t){var n=e.context;var r=e.getLastAddedCursorIndex();var i=e.getAll();var o=i.slice(0);o[r]=Bs.moveTo(n,i[r],!0,t.position,t.viewPosition);e.context.model.pushStackElement();e.setStates(t.source,3,o)};return t}(Js)));var s=function(e){Qs(t,e);function t(t){var n=e.call(this,t)||this;n._inSelectionMode=t.inSelectionMode;return n}t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();e.setStates(t.source,3,Bs.moveToBeginningOfLine(e.context,e.getAll(),this._inSelectionMode));e.reveal(!0,0,0)};return t}(Js);e.CursorHome=Object(Yi["f"])(new s({inSelectionMode:!1,id:"cursorHome",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:14,mac:{primary:14,secondary:[2063]}}}));e.CursorHomeSelect=Object(Yi["f"])(new s({inSelectionMode:!0,id:"cursorHomeSelect",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:1038,mac:{primary:1038,secondary:[3087]}}}));e.CursorLineStart=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"cursorLineStart",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:0,mac:{primary:287}}})||this}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){var n=[];for(var r=0,i=t.length;r<i;r++){var o=t[r];var a=o.modelState.position.lineNumber;n[r]=Ds.fromModelState(o.modelState.move(!1,a,1,0))}return n};return t}(Js)));var u=function(e){Qs(t,e);function t(t){var n=e.call(this,t)||this;n._inSelectionMode=t.inSelectionMode;return n}t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();e.setStates(t.source,3,Bs.moveToEndOfLine(e.context,e.getAll(),this._inSelectionMode));e.reveal(!0,0,0)};return t}(Js);e.CursorEnd=Object(Yi["f"])(new u({inSelectionMode:!1,id:"cursorEnd",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:13,mac:{primary:13,secondary:[2065]}}}));e.CursorEndSelect=Object(Yi["f"])(new u({inSelectionMode:!0,id:"cursorEndSelect",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:1037,mac:{primary:1037,secondary:[3089]}}}));e.CursorLineEnd=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"cursorLineEnd",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:0,mac:{primary:291}}})||this}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){var n=[];for(var r=0,i=t.length;r<i;r++){var o=t[r];var a=o.modelState.position.lineNumber;var s=e.model.getLineMaxColumn(a);n[r]=Ds.fromModelState(o.modelState.move(!1,a,s,0))}return n};return t}(Js)));var l=function(e){Qs(t,e);function t(t){var n=e.call(this,t)||this;n._inSelectionMode=t.inSelectionMode;return n}t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();e.setStates(t.source,3,Bs.moveToBeginningOfBuffer(e.context,e.getAll(),this._inSelectionMode));e.reveal(!0,0,0)};return t}(Js);e.CursorTop=Object(Yi["f"])(new l({inSelectionMode:!1,id:"cursorTop",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:2062,mac:{primary:2064}}}));e.CursorTopSelect=Object(Yi["f"])(new l({inSelectionMode:!0,id:"cursorTopSelect",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:3086,mac:{primary:3088}}}));var c=function(e){Qs(t,e);function t(t){var n=e.call(this,t)||this;n._inSelectionMode=t.inSelectionMode;return n}t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();e.setStates(t.source,3,Bs.moveToEndOfBuffer(e.context,e.getAll(),this._inSelectionMode));e.reveal(!0,0,0)};return t}(Js);e.CursorBottom=Object(Yi["f"])(new c({inSelectionMode:!1,id:"cursorBottom",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:2061,mac:{primary:2066}}}));e.CursorBottomSelect=Object(Yi["f"])(new c({inSelectionMode:!0,id:"cursorBottomSelect",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:3085,mac:{primary:3090}}}));var d=function(e){Qs(t,e);function t(){return e.call(this,{id:"editorScroll",precondition:null,description:Xs.description})||this}t.prototype.runCoreEditorCommand=function(e,t){var n=Xs.parse(t);if(!n)return;this._runEditorScroll(e,t.source,n)};t.prototype._runEditorScroll=function(e,t,n){var r=this._computeDesiredScrollTop(e.context,n);if(n.revealCursor){var i=e.context.getCompletelyVisibleViewRangeAtScrollTop(r);e.setStates(t,3,[Bs.findPositionInViewportIfOutside(e.context,e.getPrimaryCursor(),i,n.select)])}e.scrollTo(r)};t.prototype._computeDesiredScrollTop=function(e,t){if(1===t.unit){var n=e.getCompletelyVisibleModelRange();var r=void 0;r=1===t.direction?Math.max(1,n.startLineNumber-t.value):Math.min(e.model.getLineCount(),n.startLineNumber+t.value);var i=e.convertModelPositionToViewPosition(new f["a"](r,1));return e.getVerticalOffsetForViewLine(i.lineNumber)}var o;o=3===t.unit?e.config.pageSize*t.value:4===t.unit?Math.round(e.config.pageSize/2)*t.value:t.value;var a=(1===t.direction?-1:1)*o;return e.getCurrentScrollTop()+a*e.config.lineHeight};return t}(Js);e.EditorScrollImpl=d;e.EditorScroll=Object(Yi["f"])(new d);e.ScrollLineUp=Object(Yi["f"])(new(function(t){Qs(n,t);function n(){return t.call(this,{id:"scrollLineUp",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:2064,mac:{primary:267}}})||this}n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:2,value:1,revealCursor:!1,select:!1})};return n}(Js)));e.ScrollPageUp=Object(Yi["f"])(new(function(t){Qs(n,t);function n(){return t.call(this,{id:"scrollPageUp",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:2059,win:{primary:523},linux:{primary:523}}})||this}n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:1,unit:3,value:1,revealCursor:!1,select:!1})};return n}(Js)));e.ScrollLineDown=Object(Yi["f"])(new(function(t){Qs(n,t);function n(){return t.call(this,{id:"scrollLineDown",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:2066,mac:{primary:268}}})||this}n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:2,value:1,revealCursor:!1,select:!1})};return n}(Js)));e.ScrollPageDown=Object(Yi["f"])(new(function(t){Qs(n,t);function n(){return t.call(this,{id:"scrollPageDown",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:2060,win:{primary:524},linux:{primary:524}}})||this}n.prototype.runCoreEditorCommand=function(t,n){e.EditorScroll._runEditorScroll(t,n.source,{direction:2,unit:3,value:1,revealCursor:!1,select:!1})};return n}(Js)));var h=function(e){Qs(t,e);function t(t){var n=e.call(this,t)||this;n._inSelectionMode=t.inSelectionMode;return n}t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();e.setStates(t.source,3,[Bs.word(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position)]);e.reveal(!0,0,0)};return t}(Js);e.WordSelect=Object(Yi["f"])(new h({inSelectionMode:!1,id:"_wordSelect",precondition:null}));e.WordSelectDrag=Object(Yi["f"])(new h({inSelectionMode:!0,id:"_wordSelectDrag",precondition:null}));e.LastCursorWordSelect=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"lastCursorWordSelect",precondition:null})||this}t.prototype.runCoreEditorCommand=function(e,t){var n=e.context;var r=e.getLastAddedCursorIndex();var i=e.getAll();var o=i.slice(0);var a=i[r];o[r]=Bs.word(n,a,a.modelState.hasSelection(),t.position);n.model.pushStackElement();e.setStates(t.source,3,o)};return t}(Js)));var g=function(e){Qs(t,e);function t(t){var n=e.call(this,t)||this;n._inSelectionMode=t.inSelectionMode;return n}t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();e.setStates(t.source,3,[Bs.line(e.context,e.getPrimaryCursor(),this._inSelectionMode,t.position,t.viewPosition)]);e.reveal(!1,0,0)};return t}(Js);e.LineSelect=Object(Yi["f"])(new g({inSelectionMode:!1,id:"_lineSelect",precondition:null}));e.LineSelectDrag=Object(Yi["f"])(new g({inSelectionMode:!0,id:"_lineSelectDrag",precondition:null}));var v=function(e){Qs(t,e);function t(t){var n=e.call(this,t)||this;n._inSelectionMode=t.inSelectionMode;return n}t.prototype.runCoreEditorCommand=function(e,t){var n=e.getLastAddedCursorIndex();var r=e.getAll();var i=r.slice(0);i[n]=Bs.line(e.context,r[n],this._inSelectionMode,t.position,t.viewPosition);e.context.model.pushStackElement();e.setStates(t.source,3,i)};return t}(Js);e.LastCursorLineSelect=Object(Yi["f"])(new v({inSelectionMode:!1,id:"lastCursorLineSelect",precondition:null}));e.LastCursorLineSelectDrag=Object(Yi["f"])(new v({inSelectionMode:!0,id:"lastCursorLineSelectDrag",precondition:null}));e.ExpandLineSelection=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"expandLineSelection",precondition:null,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:2087}})||this}t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();e.setStates(t.source,3,Bs.expandLineSelection(e.context,e.getAll()));e.reveal(!0,0,0)};return t}(Js)));e.CancelSelection=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"cancelSelection",precondition:Ks["a"].hasNonEmptySelection,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:9,secondary:[1033]}})||this}t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();e.setStates(t.source,3,[Bs.cancelSelection(e.context,e.getPrimaryCursor())]);e.reveal(!0,0,0)};return t}(Js)));e.RemoveSecondaryCursors=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"removeSecondaryCursors",precondition:Ks["a"].hasMultipleSelections,kbOpts:{weight:qs+1,kbExpr:Ks["a"].textInputFocus,primary:9,secondary:[1033]}})||this}t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();e.setStates(t.source,3,[e.getPrimaryCursor()]);e.reveal(!0,0,0)};return t}(Js)));e.RevealLine=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"revealLine",precondition:null,description:$s.description})||this}t.prototype.runCoreEditorCommand=function(e,t){var n=t;var r=(n.lineNumber||0)+1;r<1&&(r=1);var i=e.context.model.getLineCount();r>i&&(r=i);var o=new p["a"](r,1,r,e.context.model.getLineMaxColumn(r));var a=0;if(n.at)switch(n.at){case $s.RawAtArgument.Top:a=3;break;case $s.RawAtArgument.Center:a=1;break;case $s.RawAtArgument.Bottom:a=4}var s=e.context.convertModelRangeToViewRange(o);e.revealRange(!1,s,a,0)};return t}(Js)));e.SelectAll=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"selectAll",precondition:null})||this}t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();e.setStates(t.source,3,[Bs.selectAll(e.context,e.getPrimaryCursor())])};return t}(Js)));e.SetSelection=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"setSelection",precondition:null})||this}t.prototype.runCoreEditorCommand=function(e,t){e.context.model.pushStackElement();e.setStates(t.source,3,[Ds.fromModelSelection(t.selection)])};return t}(Js)))}(eu||(eu={}));var tu;!function(e){var t=function(e){Qs(t,e);function t(){return null!==e&&e.apply(this,arguments)||this}t.prototype.runEditorCommand=function(e,t,n){var r=t._getCursors();if(!r)return;this.runCoreEditingCommand(t,r,n||{})};return t}(Yi["c"]);e.CoreEditingCommand=t;e.LineBreakInsert=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"lineBreakInsert",precondition:Ks["a"].writable,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:0,mac:{primary:301}}})||this}t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop();e.executeCommands(this.id,Ys.lineBreakInsert(t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection})))};return t}(t)));e.Outdent=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"outdent",precondition:Ks["a"].writable,kbOpts:{weight:qs,kbExpr:Mr["d"].and(Ks["a"].editorTextFocus,Ks["a"].tabDoesNotMoveFocus),primary:1026}})||this}t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop();e.executeCommands(this.id,Ys.outdent(t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection})));e.pushUndoStop()};return t}(t)));e.Tab=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"tab",precondition:Ks["a"].writable,kbOpts:{weight:qs,kbExpr:Mr["d"].and(Ks["a"].editorTextFocus,Ks["a"].tabDoesNotMoveFocus),primary:2}})||this}t.prototype.runCoreEditingCommand=function(e,t,n){e.pushUndoStop();e.executeCommands(this.id,Ys.tab(t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection})));e.pushUndoStop()};return t}(t)));e.DeleteLeft=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"deleteLeft",precondition:Ks["a"].writable,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:1,secondary:[1025],mac:{primary:1,secondary:[1025,294,257]}}})||this}t.prototype.runCoreEditingCommand=function(e,t,n){var r=js.deleteLeft(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection})),i=r[0],o=r[1];i&&e.pushUndoStop();e.executeCommands(this.id,o);t.setPrevEditOperationType(2)};return t}(t)));e.DeleteRight=Object(Yi["f"])(new(function(e){Qs(t,e);function t(){return e.call(this,{id:"deleteRight",precondition:Ks["a"].writable,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:20,mac:{primary:20,secondary:[290,276]}}})||this}t.prototype.runCoreEditingCommand=function(e,t,n){var r=js.deleteRight(t.getPrevEditOperationType(),t.context.config,t.context.model,t.getAll().map(function(e){return e.modelState.selection})),i=r[0],o=r[1];i&&e.pushUndoStop();e.executeCommands(this.id,o);t.setPrevEditOperationType(3)};return t}(t)))}(tu||(tu={}));function nu(e){e.register()}var ru=function(e){Qs(t,e);function t(t){var n=e.call(this,t)||this;n._editorHandler=t.editorHandler;n._inputHandler=t.inputHandler;return n}t.prototype.runCommand=function(e,t){var n=e.get(Y["a"]).getFocusedCodeEditor();if(n&&n.hasTextFocus())return this._runEditorHandler(e,n,t);var r=document.activeElement;if(r&&["input","textarea"].indexOf(r.tagName.toLowerCase())>=0){document.execCommand(this._inputHandler);return}var i=e.get(Y["a"]).getActiveCodeEditor();if(i){i.focus();return this._runEditorHandler(e,i,t)}};t.prototype._runEditorHandler=function(e,t,n){var r=this._editorHandler;if("string"==typeof r)t.trigger("keyboard",r,n);else{(n=n||{}).source="keyboard";r.runEditorCommand(e,t,n)}};return t}(Yi["a"]);var iu=function(e){Qs(t,e);function t(t,n){var r=e.call(this,{id:t,precondition:null})||this;r._handlerId=n;return r}t.prototype.runCommand=function(e,t){var n=e.get(Y["a"]).getFocusedCodeEditor();if(!n)return;n.trigger("keyboard",this._handlerId,t)};return t}(Yi["a"]);nu(new ru({editorHandler:eu.SelectAll,inputHandler:"selectAll",id:"editor.action.selectAll",precondition:Ks["a"].textInputFocus,kbOpts:{weight:qs,kbExpr:null,primary:2079},menubarOpts:{menuId:Dr["b"].MenubarSelectionMenu,group:"1_basic",title:Bn["a"]({key:"miSelectAll",comment:["&& denotes a mnemonic"]},"&&Select All"),order:1}}));nu(new ru({editorHandler:Fe.Undo,inputHandler:"undo",id:Fe.Undo,precondition:Ks["a"].writable,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:2104},menubarOpts:{menuId:Dr["b"].MenubarEditMenu,group:"1_do",title:Bn["a"]({key:"miUndo",comment:["&& denotes a mnemonic"]},"&&Undo"),order:1}}));nu(new iu("default:"+Fe.Undo,Fe.Undo));nu(new ru({editorHandler:Fe.Redo,inputHandler:"redo",id:Fe.Redo,precondition:Ks["a"].writable,kbOpts:{weight:qs,kbExpr:Ks["a"].textInputFocus,primary:2103,secondary:[3128],mac:{primary:3128}},menubarOpts:{menuId:Dr["b"].MenubarEditMenu,group:"1_do",title:Bn["a"]({key:"miRedo",comment:["&& denotes a mnemonic"]},"&&Redo"),order:2}}));nu(new iu("default:"+Fe.Redo,Fe.Redo));function ou(e){nu(new iu("default:"+e,e));nu(new iu(e,e))}ou(Fe.Type);ou(Fe.ReplacePreviousChar);ou(Fe.CompositionStart);ou(Fe.CompositionEnd);ou(Fe.Paste);ou(Fe.Cut);var au=function(){function e(e,t,n,r){this.configuration=e;this.viewModel=t;this.outgoingEvents=n;this.commandDelegate=r}e.prototype._execMouseCommand=function(e,t){t.source="mouse";this.commandDelegate.executeEditorCommand(e,t)};e.prototype.paste=function(e,t,n,r){this.commandDelegate.paste(e,t,n,r)};e.prototype.type=function(e,t){this.commandDelegate.type(e,t)};e.prototype.replacePreviousChar=function(e,t,n){this.commandDelegate.replacePreviousChar(e,t,n)};e.prototype.compositionStart=function(e){this.commandDelegate.compositionStart(e)};e.prototype.compositionEnd=function(e){this.commandDelegate.compositionEnd(e)};e.prototype.cut=function(e){this.commandDelegate.cut(e)};e.prototype.setSelection=function(e,t){this.commandDelegate.executeEditorCommand(eu.SetSelection,{source:e,selection:t})};e.prototype._validateViewColumn=function(e){var t=this.viewModel.getLineMinColumn(e.lineNumber);if(e.column<t)return new f["a"](e.lineNumber,t);return e};e.prototype._hasMulticursorModifier=function(e){switch(this.configuration.editor.multiCursorModifier){case"altKey":return e.altKey;case"ctrlKey":return e.ctrlKey;case"metaKey":return e.metaKey}return!1};e.prototype._hasNonMulticursorModifier=function(e){switch(this.configuration.editor.multiCursorModifier){case"altKey":return e.ctrlKey||e.metaKey;case"ctrlKey":return e.altKey||e.metaKey;case"metaKey":return e.ctrlKey||e.altKey}return!1};e.prototype.dispatchMouse=function(e){e.middleButton?e.inSelectionMode?this.columnSelect(e.position,e.mouseColumn):this.moveTo(e.position):e.startedOnLineNumbers?this._hasMulticursorModifier(e)?e.inSelectionMode?this.lastCursorLineSelect(e.position):this.createCursor(e.position,!0):e.inSelectionMode?this.lineSelectDrag(e.position):this.lineSelect(e.position):e.mouseDownCount>=4?this.selectAll():3===e.mouseDownCount?this._hasMulticursorModifier(e)?e.inSelectionMode?this.lastCursorLineSelectDrag(e.position):this.lastCursorLineSelect(e.position):e.inSelectionMode?this.lineSelectDrag(e.position):this.lineSelect(e.position):2===e.mouseDownCount?this._hasMulticursorModifier(e)?this.lastCursorWordSelect(e.position):e.inSelectionMode?this.wordSelectDrag(e.position):this.wordSelect(e.position):this._hasMulticursorModifier(e)?this._hasNonMulticursorModifier(e)||(e.shiftKey?this.columnSelect(e.position,e.mouseColumn):e.inSelectionMode?this.lastCursorMoveToSelect(e.position):this.createCursor(e.position,!1)):e.inSelectionMode?this.moveToSelect(e.position):this.moveTo(e.position)};e.prototype._usualArgs=function(e){e=this._validateViewColumn(e);return{position:this.convertViewToModelPosition(e),viewPosition:e}};e.prototype.moveTo=function(e){this._execMouseCommand(eu.MoveTo,this._usualArgs(e))};e.prototype.moveToSelect=function(e){this._execMouseCommand(eu.MoveToSelect,this._usualArgs(e))};e.prototype.columnSelect=function(e,t){e=this._validateViewColumn(e);this._execMouseCommand(eu.ColumnSelect,{position:this.convertViewToModelPosition(e),viewPosition:e,mouseColumn:t})};e.prototype.createCursor=function(e,t){e=this._validateViewColumn(e);this._execMouseCommand(eu.CreateCursor,{position:this.convertViewToModelPosition(e),viewPosition:e,wholeLine:t})};e.prototype.lastCursorMoveToSelect=function(e){this._execMouseCommand(eu.LastCursorMoveToSelect,this._usualArgs(e))};e.prototype.wordSelect=function(e){this._execMouseCommand(eu.WordSelect,this._usualArgs(e))};e.prototype.wordSelectDrag=function(e){this._execMouseCommand(eu.WordSelectDrag,this._usualArgs(e))};e.prototype.lastCursorWordSelect=function(e){this._execMouseCommand(eu.LastCursorWordSelect,this._usualArgs(e))};e.prototype.lineSelect=function(e){this._execMouseCommand(eu.LineSelect,this._usualArgs(e))};e.prototype.lineSelectDrag=function(e){this._execMouseCommand(eu.LineSelectDrag,this._usualArgs(e))};e.prototype.lastCursorLineSelect=function(e){this._execMouseCommand(eu.LastCursorLineSelect,this._usualArgs(e))};e.prototype.lastCursorLineSelectDrag=function(e){this._execMouseCommand(eu.LastCursorLineSelectDrag,this._usualArgs(e))};e.prototype.selectAll=function(){this._execMouseCommand(eu.SelectAll,{})};e.prototype.convertViewToModelPosition=function(e){return this.viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)};e.prototype.emitKeyDown=function(e){this.outgoingEvents.emitKeyDown(e)};e.prototype.emitKeyUp=function(e){this.outgoingEvents.emitKeyUp(e)};e.prototype.emitContextMenu=function(e){this.outgoingEvents.emitContextMenu(e)};e.prototype.emitMouseMove=function(e){this.outgoingEvents.emitMouseMove(e)};e.prototype.emitMouseLeave=function(e){this.outgoingEvents.emitMouseLeave(e)};e.prototype.emitMouseUp=function(e){this.outgoingEvents.emitMouseUp(e)};e.prototype.emitMouseDown=function(e){this.outgoingEvents.emitMouseDown(e)};e.prototype.emitMouseDrag=function(e){this.outgoingEvents.emitMouseDrag(e)};e.prototype.emitMouseDrop=function(e){this.outgoingEvents.emitMouseDrop(e)};return e}();var su=function(){function e(e){this._createLine=e;this._set(1,[])}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(t<0||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();var r=this.getEndLineNumber();if(t<n){var i=t-e+1;this._rendLineNumberStart-=i;return null}if(e>r)return null;var o=0;var a=0;for(var s=n;s<=r;s++){var u=s-this._rendLineNumberStart;if(e<=s&&s<=t)if(0===a){o=u;a=1}else a++}if(e<n){var l=0;l=t<n?t-e+1:n-e;this._rendLineNumberStart-=l}var c;return this._lines.splice(o,a)};e.prototype.onLinesChanged=function(e,t){if(0===this.getCount())return!1;var n=this.getStartLineNumber();var r=this.getEndLineNumber();var i=!1;for(var o=e;o<=t;o++)if(o>=n&&o<=r){this._lines[o-this._rendLineNumberStart].onContentChanged();i=!0}return i};e.prototype.onLinesInserted=function(e,t){if(0===this.getCount())return null;var n=t-e+1;var r=this.getStartLineNumber();var i=this.getEndLineNumber();if(e<=r){this._rendLineNumberStart+=n;return null}if(e>i)return null;if(n+e>i){var o;return this._lines.splice(e-this._rendLineNumberStart,i-e+1)}var a=[];for(var s=0;s<n;s++)a[s]=this._createLine();var u=e-this._rendLineNumberStart;var l=this._lines.slice(0,u);var c=this._lines.slice(u,this._lines.length-n);var d=this._lines.slice(this._lines.length-n,this._lines.length);this._lines=l.concat(a).concat(c);return d};e.prototype.onTokensChanged=function(e){if(0===this.getCount())return!1;var t=this.getStartLineNumber();var n=this.getEndLineNumber();var r=!1;for(var i=0,o=e.length;i<o;i++){var a=e[i];if(a.toLineNumber<t||a.fromLineNumber>n)continue;var s=Math.max(t,a.fromLineNumber);var u=Math.min(n,a.toLineNumber);for(var l=s;l<=u;l++){var c=l-this._rendLineNumberStart;this._lines[c].onTokensChanged();r=!0}}return r};return e}();var uu=function(){function e(e){var t=this;this._host=e;this.domNode=this._createDomNode();this._linesCollection=new su(function(){return t._host.createVisibleLine()})}e.prototype._createDomNode=function(){var e=Qi(document.createElement("div"));e.setClassName("view-layer");e.setPosition("absolute");e.domNode.setAttribute("role","presentation");e.domNode.setAttribute("aria-hidden","true");return e};e.prototype.onConfigurationChanged=function(e){return e.layoutInfo};e.prototype.onFlushed=function(e){this._linesCollection.flush();return!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,r=t.length;n<r;n++){var i=t[n].getDomNode();i&&this.domNode.domNode.removeChild(i)}return!0};e.prototype.onLinesInserted=function(e){var t=this._linesCollection.onLinesInserted(e.fromLineNumber,e.toLineNumber);if(t)for(var n=0,r=t.length;n<r;n++){var i=t[n].getDomNode();i&&this.domNode.domNode.removeChild(i)}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(e){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();var n=new lu(this.domNode.domNode,this._host,e);var r={rendLineNumberStart:t.rendLineNumberStart,lines:t.lines,linesLength:t.lines.length};var i=n.render(r,e.startLineNumber,e.endLineNumber,e.relativeVerticalOffset);this._linesCollection._set(i.rendLineNumberStart,i.lines)};return e}();var lu=function(){function e(e,t,n){this.domNode=e;this.host=t;this.viewportData=n}e.prototype.render=function(e,t,n,r){var i={rendLineNumberStart:e.rendLineNumberStart,lines:e.lines.slice(0),linesLength:e.linesLength};if(i.rendLineNumberStart+i.linesLength-1<t||n<i.rendLineNumberStart){i.rendLineNumberStart=t;i.linesLength=n-t+1;i.lines=[];for(var o=t;o<=n;o++)i.lines[o-t]=this.host.createVisibleLine();this._finishRendering(i,!0,r);return i}this._renderUntouchedLines(i,Math.max(t-i.rendLineNumberStart,0),Math.min(n-i.rendLineNumberStart,i.linesLength-1),r,t);if(i.rendLineNumberStart>t){var a;var s;if((a=t)<=(s=Math.min(n,i.rendLineNumberStart-1))){this._insertLinesBefore(i,a,s,r,t);i.linesLength+=s-a+1}}else if(i.rendLineNumberStart<t){var u;if((u=Math.min(i.linesLength,t-i.rendLineNumberStart))>0){this._removeLinesBefore(i,u);i.linesLength-=u}}i.rendLineNumberStart=t;if(i.rendLineNumberStart+i.linesLength-1<n){var a;var s;if((a=i.rendLineNumberStart+i.linesLength)<=(s=n)){this._insertLinesAfter(i,a,s,r,t);i.linesLength+=s-a+1}}else if(i.rendLineNumberStart+i.linesLength-1>n){var a=Math.max(0,n-i.rendLineNumberStart+1);var s;var u;if((u=(s=i.linesLength-1)-a+1)>0){this._removeLinesAfter(i,u);i.linesLength-=u}}this._finishRendering(i,!1,r);return i};e.prototype._renderUntouchedLines=function(e,t,n,r,i){var o=e.rendLineNumberStart;var a=e.lines;for(var s=t;s<=n;s++){var u=o+s;a[s].layoutLine(u,r[u-i])}};e.prototype._insertLinesBefore=function(e,t,n,r,i){var o=[];var a=0;for(var s=t;s<=n;s++)o[a++]=this.host.createVisibleLine();e.lines=o.concat(e.lines)};e.prototype._removeLinesBefore=function(e,t){for(var n=0;n<t;n++){var r=e.lines[n].getDomNode();r&&this.domNode.removeChild(r)}e.lines.splice(0,t)};e.prototype._insertLinesAfter=function(e,t,n,r,i){var o=[];var a=0;for(var s=t;s<=n;s++)o[a++]=this.host.createVisibleLine();e.lines=e.lines.concat(o)};e.prototype._removeLinesAfter=function(e,t){var n=e.linesLength-t;for(var r=0;r<t;r++){var i=e.lines[n+r].getDomNode();i&&this.domNode.removeChild(i)}e.lines.splice(n,t)};e.prototype._finishRenderingNewLines=function(e,t,n,r){var i=this.domNode.lastChild;t||!i?this.domNode.innerHTML=n:i.insertAdjacentHTML("afterend",n);var o=this.domNode.lastChild;for(var a=e.linesLength-1;a>=0;a--){var s=e.lines[a];if(r[a]){s.setDomNode(o);o=o.previousSibling}}};e.prototype._finishRenderingInvalidLines=function(e,t,n){var r=document.createElement("div");r.innerHTML=t;for(var i=0;i<e.linesLength;i++){var o=e.lines[i];if(n[i]){var a=r.firstChild;var s=o.getDomNode();s.parentNode.replaceChild(a,s);o.setDomNode(a)}}};e.prototype._finishRendering=function(t,n,r){var i=e._sb;var o=t.linesLength;var a=t.lines;var s=t.rendLineNumberStart;var u=[];i.reset();var l=!1;for(var c=0;c<o;c++){var d=a[c];u[c]=!1;var h;if(d.getDomNode())continue;var f;if(!(f=d.renderLine(c+s,r[c],this.viewportData,i)))continue;u[c]=!0;l=!0}l&&this._finishRenderingNewLines(t,n,i.build(),u);i.reset();var p=!1;var g=[];for(var c=0;c<o;c++){var d=a[c];g[c]=!1;if(u[c])continue;var f;if(!(f=d.renderLine(c+s,r[c],this.viewportData,i)))continue;g[c]=!0;p=!0}p&&this._finishRenderingInvalidLines(t,i.build(),g)};e._sb=dn(1e5);return e}();var cu=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var du=function(e){cu(t,e);function t(t){var n=e.call(this,t)||this;n._visibleLines=new uu(n);n.domNode=n._visibleLines.domNode;n._dynamicOverlays=[];n._isFocused=!1;n.domNode.setClassName("view-overlays");return n}t.prototype.shouldRender=function(){if(e.prototype.shouldRender.call(this))return!0;for(var t=0,n=this._dynamicOverlays.length;t<n;t++){var r;if(this._dynamicOverlays[t].shouldRender())return!0}return!1};t.prototype.dispose=function(){e.prototype.dispose.call(this);for(var t=0,n=this._dynamicOverlays.length;t<n;t++){var r;this._dynamicOverlays[t].dispose()}this._dynamicOverlays=[]};t.prototype.getDomNode=function(){return this.domNode};t.prototype.createVisibleLine=function(){return new hu(this._context.configuration,this._dynamicOverlays)};t.prototype.addDynamicOverlay=function(e){this._dynamicOverlays.push(e)};t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e);var t=this._visibleLines.getStartLineNumber();var n=this._visibleLines.getEndLineNumber();for(var r=t;r<=n;r++){var i;this._visibleLines.getVisibleLine(r).onConfigurationChanged(e)}return!0};t.prototype.onFlushed=function(e){return this._visibleLines.onFlushed(e)};t.prototype.onFocusChanged=function(e){this._isFocused=e.isFocused;return!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){var t=this._dynamicOverlays.filter(function(e){return e.shouldRender()});for(var n=0,r=t.length;n<r;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)};return t}(po);var hu=function(){function e(e,t){this._configuration=e;this._lineHeight=this._configuration.editor.lineHeight;this._dynamicOverlays=t;this._domNode=null;this._renderedContent=null}e.prototype.getDomNode=function(){if(!this._domNode)return null;return this._domNode.domNode};e.prototype.setDomNode=function(e){this._domNode=Qi(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,r){var i="";for(var o=0,a=this._dynamicOverlays.length;o<a;o++){var s;i+=this._dynamicOverlays[o].render(n.startLineNumber,e)}if(this._renderedContent===i)return!1;this._renderedContent=i;r.appendASCIIString('<div style="position:absolute;top:');r.appendASCIIString(String(t));r.appendASCIIString("px;width:100%;height:");r.appendASCIIString(String(this._lineHeight));r.appendASCIIString('px;">');r.appendASCIIString(i);r.appendASCIIString("</div>");return!0};e.prototype.layoutLine=function(e,t){if(this._domNode){this._domNode.setTop(t);this._domNode.setHeight(this._lineHeight)}};return e}();var fu=function(e){cu(t,e);function t(t){var n=e.call(this,t)||this;n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth;n.domNode.setHeight(0);return n}t.prototype.onConfigurationChanged=function(t){t.layoutInfo&&(this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth);return 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))};return t}(du);var pu=function(e){cu(t,e);function t(t){var n=e.call(this,t)||this;n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft;n.domNode.setClassName("margin-view-overlays");n.domNode.setWidth(1);Gi.applyFontInfo(n.domNode,n._context.configuration.editor.fontInfo);return n}t.prototype.onConfigurationChanged=function(t){var n=!1;if(t.fontInfo){Gi.applyFontInfo(this.domNode,this._context.configuration.editor.fontInfo);n=!0}if(t.layoutInfo){this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft;n=!0}return 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)};return t}(du);var gu=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var vu=function(){function e(e,t){this.top=e;this.left=t}return e}();var mu=function(e){gu(t,e);function t(t,n){var r=e.call(this,t)||this;r._viewDomNode=n;r._widgets={};r.domNode=Qi(document.createElement("div"));go.write(r.domNode,1);r.domNode.setClassName("contentWidgets");r.domNode.setPosition("absolute");r.domNode.setTop(0);r.overflowingContentWidgetsDomNode=Qi(document.createElement("div"));go.write(r.overflowingContentWidgetsDomNode,2);r.overflowingContentWidgetsDomNode.setClassName("overflowingContentWidgets");return r}t.prototype.dispose=function(){e.prototype.dispose.call(this);this._widgets={}};t.prototype.onConfigurationChanged=function(e){var t=Object.keys(this._widgets);for(var n=0,r=t.length;n<r;n++){var i=t[n];this._widgets[i].onConfigurationChanged(e)}return!0};t.prototype.onDecorationsChanged=function(e){return!0};t.prototype.onFlushed=function(e){return!0};t.prototype.onLineMappingChanged=function(e){var t=Object.keys(this._widgets);for(var n=0,r=t.length;n<r;n++){var i=t[n];this._widgets[i].onLineMappingChanged(e)}return!0};t.prototype.onLinesChanged=function(e){return!0};t.prototype.onLinesDeleted=function(e){return!0};t.prototype.onLinesInserted=function(e){return!0};t.prototype.onScrollChanged=function(e){return!0};t.prototype.onZonesChanged=function(e){return!0};t.prototype.addWidget=function(e){var t=new _u(this._context,this._viewDomNode,e);this._widgets[t.id]=t;t.allowEditorOverflow?this.overflowingContentWidgetsDomNode.appendChild(t.domNode):this.domNode.appendChild(t.domNode);this.setShouldRender()};t.prototype.setWidgetPosition=function(e,t,n,r){var i;this._widgets[e.getId()].setPosition(t,n,r);this.setShouldRender()};t.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n=this._widgets[t];delete this._widgets[t];var r=n.domNode.domNode;r.parentNode.removeChild(r);r.removeAttribute("monaco-visible-content-widget");this.setShouldRender()}};t.prototype.shouldSuppressMouseDownOnWidget=function(e){if(this._widgets.hasOwnProperty(e))return this._widgets[e].suppressMouseDown;return!1};t.prototype.onBeforeRender=function(e){var t=Object.keys(this._widgets);for(var n=0,r=t.length;n<r;n++){var i=t[n];this._widgets[i].onBeforeRender(e)}};t.prototype.prepareRender=function(e){var t=Object.keys(this._widgets);for(var n=0,r=t.length;n<r;n++){var i=t[n];this._widgets[i].prepareRender(e)}};t.prototype.render=function(e){var t=Object.keys(this._widgets);for(var n=0,r=t.length;n<r;n++){var i=t[n];this._widgets[i].render(e)}};return t}(po);var _u=function(){function e(e,t,n){this._context=e;this._viewDomNode=t;this._actual=n;this.domNode=Qi(this._actual.getDomNode());this.id=this._actual.getId();this.allowEditorOverflow=this._actual.allowEditorOverflow||!1;this.suppressMouseDown=this._actual.suppressMouseDown||!1;this._fixedOverflowWidgets=this._context.configuration.editor.viewInfo.fixedOverflowWidgets;this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth;this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft;this._lineHeight=this._context.configuration.editor.lineHeight;this._setPosition(null,null);this._preference=[];this._cachedDomNodeClientWidth=-1;this._cachedDomNodeClientHeight=-1;this._maxWidth=this._getMaxWidth();this._isVisible=!1;this._renderData=null;this.domNode.setPosition(this._fixedOverflowWidgets&&this.allowEditorOverflow?"fixed":"absolute");this.domNode.setVisibility("hidden");this.domNode.setAttribute("widgetId",this.id);this.domNode.setMaxWidth(this._maxWidth)}e.prototype.onConfigurationChanged=function(e){e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight);if(e.layoutInfo){this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft;this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth;this._maxWidth=this._getMaxWidth()}};e.prototype.onLineMappingChanged=function(e){this._setPosition(this._position,this._range)};e.prototype._setPosition=function(e,t){this._position=e||null;this._range=t||null;this._viewPosition=null;this._viewRange=null;if(this._position){var n=this._context.model.validateModelPosition(this._position);this._context.model.coordinatesConverter.modelPositionIsVisible(n)&&(this._viewPosition=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(n))}if(this._range){var r=this._context.model.validateModelRange(this._range);this._viewRange=this._context.model.coordinatesConverter.convertModelRangeToViewRange(r)}};e.prototype._getMaxWidth=function(){return this.allowEditorOverflow?window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth:this._contentWidth};e.prototype.setPosition=function(e,t,n){this._setPosition(e,t);this._preference=n||null;this._cachedDomNodeClientWidth=-1;this._cachedDomNodeClientHeight=-1};e.prototype._layoutBoxInViewport=function(e,t,n,r,i){var o=e.top;var a=o;var s=t.top+this._lineHeight;var u;var l=o-r;var c=a>=r;var d=s;var h=i.viewportHeight-s>=r;var f=e.left;var p=t.left;f+n>i.scrollLeft+i.viewportWidth&&(f=i.scrollLeft+i.viewportWidth-n);p+n>i.scrollLeft+i.viewportWidth&&(p=i.scrollLeft+i.viewportWidth-n);f<i.scrollLeft&&(f=i.scrollLeft);p<i.scrollLeft&&(p=i.scrollLeft);return{fitsAbove:c,aboveTop:l,aboveLeft:f,fitsBelow:h,belowTop:d,belowLeft:p}};e.prototype._layoutBoxInPage=function(e,t,n,r,i){var o=e.left-i.scrollLeft;var a=t.left-i.scrollLeft;if(o<0||o>this._contentWidth)return null;var s=e.top-r;var u=t.top+this._lineHeight;var l=o+this._contentLeft;var c=a+this._contentLeft;var d=K["t"](this._viewDomNode.domNode);var h=d.top+s-K["d"].scrollY;var f=d.top+u-K["d"].scrollY;var p=d.left+l-K["d"].scrollX;var g=d.left+c-K["d"].scrollX;var v=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var m;var _=22;var y=22;var b=h>=22,C=f+r<=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-22;if(p+n+20>v){var w;p-=w=p-(v-n-20);l-=w}if(g+n+20>v){var w;g-=w=g-(v-n-20);c-=w}if(p<0){var w;p-=w=p;l-=w}if(g<0){var w;g-=w=g;c-=w}if(this._fixedOverflowWidgets){s=h;u=f;l=p;c=g}return{fitsAbove:b,aboveTop:s,aboveLeft:l,fitsBelow:C,belowTop:u,belowLeft:c}};e.prototype._prepareRenderWidgetAtExactPositionOverflowing=function(e){return new vu(e.top,e.left+this._contentLeft)};e.prototype._getTopAndBottomLeft=function(e){if(!this._viewPosition)return[null,null];var t=e.visibleRangeForPosition(this._viewPosition);if(!t)return[null,null];var n=e.getVerticalOffsetForLineNumber(this._viewPosition.lineNumber)-e.scrollTop;var r=new vu(n,t.left);var i=this._viewPosition.lineNumber;var o=t.left;if(this._viewRange){var a=e.linesVisibleRangesForRange(this._viewRange,!1);if(a&&a.length>0)for(var s=a.length-1;s>=0;s--){var u=a[s];if(u.lineNumber>=i){if(u.lineNumber>i){i=u.lineNumber;o=1073741824}for(var l=0,c=u.ranges.length;l<c;l++){var d=u.ranges[l];d.left<o&&(o=d.left)}}}}var h=e.getVerticalOffsetForLineNumber(i)-e.scrollTop;var f;return[r,new vu(h,o)]};e.prototype._prepareRenderWidget=function(e){var t=this._getTopAndBottomLeft(e),n=t[0],r=t[1];if(!n||!r)return null;if(-1===this._cachedDomNodeClientWidth||-1===this._cachedDomNodeClientHeight){var i=this.domNode.domNode;this._cachedDomNodeClientWidth=i.clientWidth;this._cachedDomNodeClientHeight=i.clientHeight}var o;o=this.allowEditorOverflow?this._layoutBoxInPage(n,r,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e):this._layoutBoxInViewport(n,r,this._cachedDomNodeClientWidth,this._cachedDomNodeClientHeight,e);if(this._preference)for(var a=1;a<=2;a++)for(var s=0;s<this._preference.length;s++){var u=this._preference[s];if(1===u){if(!o)return null;if(2===a||o.fitsAbove)return new vu(o.aboveTop,o.aboveLeft)}else{if(2!==u)return this.allowEditorOverflow?this._prepareRenderWidgetAtExactPositionOverflowing(n):n;if(!o)return null;if(2===a||o.fitsBelow)return new vu(o.belowTop,o.belowLeft)}}return null};e.prototype.onBeforeRender=function(e){if(!this._viewPosition||!this._preference)return;if(this._viewPosition.lineNumber<e.startLineNumber||this._viewPosition.lineNumber>e.endLineNumber)return;this.domNode.setMaxWidth(this._maxWidth)};e.prototype.prepareRender=function(e){this._renderData=this._prepareRenderWidget(e)};e.prototype.render=function(e){if(!this._renderData){if(this._isVisible){this.domNode.removeAttribute("monaco-visible-content-widget");this._isVisible=!1;this.domNode.setVisibility("hidden")}return}if(this.allowEditorOverflow){this.domNode.setTop(this._renderData.top);this.domNode.setLeft(this._renderData.left)}else{this.domNode.setTop(this._renderData.top+e.scrollTop-e.bigNumbersDelta);this.domNode.setLeft(this._renderData.left)}if(!this._isVisible){this.domNode.setVisibility("inherit");this.domNode.setAttribute("monaco-visible-content-widget","true");this._isVisible=!0}};return e}();var yu=n("pwle");var bu=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Cu=function(e){bu(t,e);function t(t){var n=e.call(this)||this;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._scrollWidth=0;n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth;n._context.addEventHandler(n);return n}t.prototype.dispose=function(){this._context.removeEventHandler(this);e.prototype.dispose.call(this)};t.prototype.onConfigurationChanged=function(e){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);return!0};t.prototype.onCursorStateChanged=function(e){var t=!1;var n=e.selections[0].positionLineNumber;if(this._primaryCursorLineNumber!==n){this._primaryCursorLineNumber=n;t=!0}var r=e.selections[0].isEmpty();if(this._selectionIsEmpty!==r){this._selectionIsEmpty=r;t=!0;return!0}return t};t.prototype.onFlushed=function(e){return!0};t.prototype.onLinesDeleted=function(e){return!0};t.prototype.onLinesInserted=function(e){return!0};t.prototype.onScrollChanged=function(e){return e.scrollWidthChanged};t.prototype.onZonesChanged=function(e){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 n;var r;return'<div class="'+("current-line"+(this._willRenderMarginCurrentLine()?" current-line-both":""))+'" style="width:'+String(Math.max(this._scrollWidth,this._contentWidth))+"px; height:"+String(this._lineHeight)+'px;"></div>'}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};return t}(sa);Object(So["e"])(function(e,t){var n=e.getColor(ca);n&&t.addRule(".monaco-editor .view-overlays .current-line { background-color: "+n+"; }");if(!n||n.isTransparent()||e.defines(da)){var r=e.getColor(da);if(r){t.addRule(".monaco-editor .view-overlays .current-line { border: 2px solid "+r+"; }");"hc"===e.type&&t.addRule(".monaco-editor .view-overlays .current-line { border-width: 1px; }")}}});var wu=n("TTPL");var Su=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Lu=function(e){Su(t,e);function t(t){var n=e.call(this)||this;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);return n}t.prototype.dispose=function(){this._context.removeEventHandler(this);e.prototype.dispose.call(this)};t.prototype.onConfigurationChanged=function(e){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);return!0};t.prototype.onCursorStateChanged=function(e){var t=!1;var n=e.selections[0].positionLineNumber;if(this._primaryCursorLineNumber!==n){this._primaryCursorLineNumber=n;t=!0}var r=e.selections[0].isEmpty();if(this._selectionIsEmpty!==r){this._selectionIsEmpty=r;t=!0;return!0}return t};t.prototype.onFlushed=function(e){return!0};t.prototype.onLinesDeleted=function(e){return!0};t.prototype.onLinesInserted=function(e){return!0};t.prototype.onZonesChanged=function(e){return!0};t.prototype.prepareRender=function(e){};t.prototype.render=function(e,t){if(t===this._primaryCursorLineNumber){var n="current-line";if(this._shouldShowCurrentLine()){var r;n="current-line current-line-margin"+(this._willRenderContentCurrentLine()?" current-line-margin-both":"")}return'<div class="'+n+'" style="width:'+String(this._contentLeft)+"px; height:"+String(this._lineHeight)+'px;"></div>'}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};return t}(sa);Object(So["e"])(function(e,t){var n=e.getColor(ca);if(n)t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { background-color: "+n+"; border: none; }");else{var r=e.getColor(da);r&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border: 2px solid "+r+"; }");"hc"===e.type&&t.addRule(".monaco-editor .margin-view-overlays .current-line-margin { border-width: 1px; }")}});var Iu=n("HT/t");var xu=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Nu=function(e){xu(t,e);function t(t){var n=e.call(this)||this;n._context=t;n._lineHeight=n._context.configuration.editor.lineHeight;n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth;n._renderResult=null;n._context.addEventHandler(n);return n}t.prototype.dispose=function(){this._context.removeEventHandler(this);this._renderResult=null;e.prototype.dispose.call(this)};t.prototype.onConfigurationChanged=function(e){e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight);e.fontInfo&&(this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth);return!0};t.prototype.onDecorationsChanged=function(e){return!0};t.prototype.onFlushed=function(e){return!0};t.prototype.onLinesChanged=function(e){return!0};t.prototype.onLinesDeleted=function(e){return!0};t.prototype.onLinesInserted=function(e){return!0};t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged};t.prototype.onZonesChanged=function(e){return!0};t.prototype.prepareRender=function(e){var t=e.getDecorationsInViewport();var n=[],r=0;for(var i=0,o=t.length;i<o;i++){var a=t[i];a.options.className&&(n[r++]=a)}n=n.sort(function(e,t){if(e.options.zIndex<t.options.zIndex)return-1;if(e.options.zIndex>t.options.zIndex)return 1;var n=e.options.className;var r=t.options.className;if(n<r)return-1;if(n>r)return 1;return p["a"].compareRangesUsingStarts(e.range,t.range)});var s=e.visibleRange.startLineNumber;var u=e.visibleRange.endLineNumber;var l=[];for(var c=s;c<=u;c++){var d;l[c-s]=""}this._renderWholeLineDecorations(e,n,l);this._renderNormalDecorations(e,n,l);this._renderResult=l};t.prototype._renderWholeLineDecorations=function(e,t,n){var r=String(this._lineHeight);var i=e.visibleRange.startLineNumber;var o=e.visibleRange.endLineNumber;for(var a=0,s=t.length;a<s;a++){var u=t[a];if(!u.options.isWholeLine)continue;var l='<div class="cdr '+u.options.className+'" style="left:0;width:100%;height:'+r+'px;"></div>';var c=Math.max(u.range.startLineNumber,i);var d=Math.min(u.range.endLineNumber,o);for(var h=c;h<=d;h++){var f;n[h-i]+=l}}};t.prototype._renderNormalDecorations=function(e,t,n){var r=String(this._lineHeight);var i=e.visibleRange.startLineNumber;var o=null;var a=!1;var s=null;for(var u=0,l=t.length;u<l;u++){var c=t[u];if(c.options.isWholeLine)continue;var d=c.options.className;var h=Boolean(c.options.showIfCollapsed);var f=c.range;h&&1===f.endColumn&&f.endLineNumber!==f.startLineNumber&&(f=new p["a"](f.startLineNumber,f.startColumn,f.endLineNumber-1,this._context.model.getLineMaxColumn(f.endLineNumber-1)));if(o===d&&a===h&&p["a"].areIntersectingOrTouching(s,f)){s=p["a"].plusRange(s,f);continue}null!==o&&this._renderNormalDecoration(e,s,o,a,r,i,n);o=d;a=h;s=f}null!==o&&this._renderNormalDecoration(e,s,o,a,r,i,n)};t.prototype._renderNormalDecoration=function(e,t,n,r,i,o,a){var s=e.linesVisibleRangesForRange(t,"findMatch"===n);if(!s)return;for(var u=0,l=s.length;u<l;u++){var c=s[u];var d=c.lineNumber-o;if(r&&1===c.ranges.length){var h=c.ranges[0];0===h.width&&(c.ranges[0]=new bo(h.left,this._typicalHalfwidthCharacterWidth))}for(var f=0,p=c.ranges.length;f<p;f++){var g=c.ranges[f];var v='<div class="cdr '+n+'" style="left:'+String(g.left)+"px;width:"+String(g.width)+"px;height:"+i+'px;"></div>';a[d]+=v}}};t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;if(n<0||n>=this._renderResult.length)return"";return this._renderResult[n]};return t}(sa);var Mu=n("yS//");var Du=n("6YTk");var ku=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Ou=11;var Eu=function(e){ku(t,e);function t(t){var n=e.call(this)||this;n._onActivate=t.onActivate;n.bgDomNode=document.createElement("div");n.bgDomNode.className="arrow-background";n.bgDomNode.style.position="absolute";n.bgDomNode.style.width=t.bgWidth+"px";n.bgDomNode.style.height=t.bgHeight+"px";void 0!==t.top&&(n.bgDomNode.style.top="0px");void 0!==t.left&&(n.bgDomNode.style.left="0px");void 0!==t.bottom&&(n.bgDomNode.style.bottom="0px");void 0!==t.right&&(n.bgDomNode.style.right="0px");n.domNode=document.createElement("div");n.domNode.className=t.className;n.domNode.style.position="absolute";n.domNode.style.width=Ou+"px";n.domNode.style.height=Ou+"px";void 0!==t.top&&(n.domNode.style.top=t.top+"px");void 0!==t.left&&(n.domNode.style.left=t.left+"px");void 0!==t.bottom&&(n.domNode.style.bottom=t.bottom+"px");void 0!==t.right&&(n.domNode.style.right=t.right+"px");n._mouseMoveMonitor=n._register(new to);n.onmousedown(n.bgDomNode,function(e){return n._arrowMouseDown(e)});n.onmousedown(n.domNode,function(e){return n._arrowMouseDown(e)});n._mousedownRepeatTimer=n._register(new o["b"]);n._mousedownScheduleRepeatTimer=n._register(new o["d"]);return n}t.prototype._arrowMouseDown=function(e){var t=this;var n=function(){t._mousedownRepeatTimer.cancelAndSet(function(){return t._onActivate()},1e3/24)};this._onActivate();this._mousedownRepeatTimer.cancel();this._mousedownScheduleRepeatTimer.cancelAndSet(n,200);this._mouseMoveMonitor.startMonitoring(eo,function(e){},function(){t._mousedownRepeatTimer.cancel();t._mousedownScheduleRepeatTimer.cancel()});e.preventDefault()};return t}(Du["a"]);var Tu=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Au=function(e){Tu(t,e);function t(t,n,r){var i=e.call(this)||this;i._visibility=t;i._visibleClassName=n;i._invisibleClassName=r;i._domNode=null;i._isVisible=!1;i._isNeeded=!1;i._shouldBeVisible=!1;i._revealTimer=i._register(new o["d"]);return i}t.prototype.applyVisibilitySetting=function(e){if(2===this._visibility)return!1;if(3===this._visibility)return!0;return e};t.prototype.setShouldBeVisible=function(e){var t=this.applyVisibilitySetting(e);if(this._shouldBeVisible!==t){this._shouldBeVisible=t;this.ensureVisibility()}};t.prototype.setIsNeeded=function(e){if(this._isNeeded!==e){this._isNeeded=e;this.ensureVisibility()}};t.prototype.setDomNode=function(e){this._domNode=e;this._domNode.setClassName(this._invisibleClassName);this.setShouldBeVisible(!1)};t.prototype.ensureVisibility=function(){if(!this._isNeeded){this._hide(!1);return}this._shouldBeVisible?this._reveal():this._hide(!0)};t.prototype._reveal=function(){var e=this;if(this._isVisible)return;this._isVisible=!0;this._revealTimer.setIfNotSet(function(){e._domNode&&e._domNode.setClassName(e._visibleClassName)},0)};t.prototype._hide=function(e){this._revealTimer.cancel();if(!this._isVisible)return;this._isVisible=!1;this._domNode&&this._domNode.setClassName(this._invisibleClassName+(e?" fade":""))};return t}(me["a"]);var Ru=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Pu=140;var ju=function(e){Ru(t,e);function t(t){var n=e.call(this)||this;n._lazyRender=t.lazyRender;n._host=t.host;n._scrollable=t.scrollable;n._scrollbarState=t.scrollbarState;n._visibilityController=n._register(new Au(t.visibility,"visible scrollbar "+t.extraScrollbarClassName,"invisible scrollbar "+t.extraScrollbarClassName));n._mouseMoveMonitor=n._register(new to);n._shouldRender=!0;n.domNode=Qi(document.createElement("div"));n.domNode.setAttribute("role","presentation");n.domNode.setAttribute("aria-hidden","true");n._visibilityController.setDomNode(n.domNode);n.domNode.setPosition("absolute");n.onmousedown(n.domNode.domNode,function(e){return n._domNodeMouseDown(e)});return n}t.prototype._createArrow=function(e){var t=this._register(new Eu(e));this.domNode.domNode.appendChild(t.bgDomNode);this.domNode.domNode.appendChild(t.domNode)};t.prototype._createSlider=function(e,t,n,r){var i=this;this.slider=Qi(document.createElement("div"));this.slider.setClassName("slider");this.slider.setPosition("absolute");this.slider.setTop(e);this.slider.setLeft(t);"number"==typeof n&&this.slider.setWidth(n);"number"==typeof r&&this.slider.setHeight(r);this.slider.setLayerHinting(!0);this.domNode.domNode.appendChild(this.slider.domNode);this.onmousedown(this.slider.domNode,function(e){if(e.leftButton){e.preventDefault();i._sliderMouseDown(e,function(){})}})};t.prototype._onElementSize=function(e){if(this._scrollbarState.setVisibleSize(e)){this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded());this._shouldRender=!0;this._lazyRender||this.render()}return this._shouldRender};t.prototype._onElementScrollSize=function(e){if(this._scrollbarState.setScrollSize(e)){this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded());this._shouldRender=!0;this._lazyRender||this.render()}return this._shouldRender};t.prototype._onElementScrollPosition=function(e){if(this._scrollbarState.setScrollPosition(e)){this._visibilityController.setIsNeeded(this._scrollbarState.isNeeded());this._shouldRender=!0;this._lazyRender||this.render()}return this._shouldRender};t.prototype.beginReveal=function(){this._visibilityController.setShouldBeVisible(!0)};t.prototype.beginHide=function(){this._visibilityController.setShouldBeVisible(!1)};t.prototype.render=function(){if(!this._shouldRender)return;this._shouldRender=!1;this._renderDomNode(this._scrollbarState.getRectangleLargeSize(),this._scrollbarState.getRectangleSmallSize());this._updateSlider(this._scrollbarState.getSliderSize(),this._scrollbarState.getArrowSize()+this._scrollbarState.getSliderPosition())};t.prototype._domNodeMouseDown=function(e){if(e.target!==this.domNode.domNode)return;this._onMouseDown(e)};t.prototype.delegateMouseDown=function(e){var t=this.domNode.domNode.getClientRects()[0].top;var n=t+this._scrollbarState.getSliderPosition();var r=t+this._scrollbarState.getSliderPosition()+this._scrollbarState.getSliderSize();var i=this._sliderMousePosition(e);if(n<=i&&i<=r){if(e.leftButton){e.preventDefault();this._sliderMouseDown(e,function(){})}}else this._onMouseDown(e)};t.prototype._onMouseDown=function(e){var t;var n;if(e.target===this.domNode.domNode&&"number"==typeof e.browserEvent.offsetX&&"number"==typeof e.browserEvent.offsetY){t=e.browserEvent.offsetX;n=e.browserEvent.offsetY}else{var r=K["t"](this.domNode.domNode);t=e.posx-r.left;n=e.posy-r.top}this._setDesiredScrollPositionNow(this._scrollbarState.getDesiredScrollPositionFromOffset(this._mouseDownRelativePosition(t,n)));if(e.leftButton){e.preventDefault();this._sliderMouseDown(e,function(){})}};t.prototype._sliderMouseDown=function(e,t){var n=this;var r=this._sliderMousePosition(e);var o=this._sliderOrthogonalMousePosition(e);var a=this._scrollbarState.clone();this.slider.toggleClassName("active",!0);this._mouseMoveMonitor.startMonitoring(eo,function(e){var t=n._sliderOrthogonalMousePosition(e);var s=Math.abs(t-o);if(i["g"]&&s>140){n._setDesiredScrollPositionNow(a.getScrollPosition());return}var u;var l=n._sliderMousePosition(e)-r;n._setDesiredScrollPositionNow(a.getDesiredScrollPositionFromDelta(l))},function(){n.slider.toggleClassName("active",!1);n._host.onDragEnd();t()});this._host.onDragStart()};t.prototype._setDesiredScrollPositionNow=function(e){var t={};this.writeScrollPosition(t,e);this._scrollable.setScrollPositionNow(t)};return t}(Du["a"]);var Wu=20;var Fu=function(){function e(e,t,n){this._scrollbarSize=Math.round(t);this._oppositeScrollbarSize=Math.round(n);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()}e.prototype.clone=function(){var t=new e(this._arrowSize,this._scrollbarSize,this._oppositeScrollbarSize);t.setVisibleSize(this._visibleSize);t.setScrollSize(this._scrollSize);t.setScrollPosition(this._scrollPosition);return t};e.prototype.setVisibleSize=function(e){var t=Math.round(e);if(this._visibleSize!==t){this._visibleSize=t;this._refreshComputedValues();return!0}return!1};e.prototype.setScrollSize=function(e){var t=Math.round(e);if(this._scrollSize!==t){this._scrollSize=t;this._refreshComputedValues();return!0}return!1};e.prototype.setScrollPosition=function(e){var t=Math.round(e);if(this._scrollPosition!==t){this._scrollPosition=t;this._refreshComputedValues();return!0}return!1};e._computeValues=function(e,t,n,r,i){var o=Math.max(0,n-e);var a=Math.max(0,o-2*t);var s=r>0&&r>n;if(!s)return{computedAvailableSize:Math.round(o),computedIsNeeded:s,computedSliderSize:Math.round(a),computedSliderRatio:0,computedSliderPosition:0};var u=Math.round(Math.max(20,Math.floor(n*a/r)));var l=(a-u)/(r-n);var c=i*l;return{computedAvailableSize:Math.round(o),computedIsNeeded:s,computedSliderSize:Math.round(u),computedSliderRatio:l,computedSliderPosition:Math.round(c)}};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)};return e}();var zu=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Vu=function(e){zu(t,e);function t(t,n,r){var i=e.call(this,{lazyRender:n.lazyRender,host:r,scrollbarState:new Fu(n.horizontalHasArrows?n.arrowSize:0,2===n.horizontal?0:n.horizontalScrollbarSize,2===n.vertical?0:n.verticalScrollbarSize),visibility:n.horizontal,extraScrollbarClassName:"horizontal",scrollable:t})||this;if(n.horizontalHasArrows){var o=(n.arrowSize-Ou)/2;var a=(n.horizontalScrollbarSize-Ou)/2;i._createArrow({className:"left-arrow",top:a,left:o,bottom:void 0,right:void 0,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return i._host.onMouseWheel(new Ji["c"](null,1,0))}});i._createArrow({className:"right-arrow",top:a,left:void 0,bottom:void 0,right:o,bgWidth:n.arrowSize,bgHeight:n.horizontalScrollbarSize,onActivate:function(){return i._host.onMouseWheel(new Ji["c"](null,-1,0))}})}i._createSlider(Math.floor((n.horizontalScrollbarSize-n.horizontalSliderSize)/2),0,void 0,n.horizontalSliderSize);return i}t.prototype._updateSlider=function(e,t){this.slider.setWidth(e);this.slider.setLeft(t)};t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(e);this.domNode.setHeight(t);this.domNode.setLeft(0);this.domNode.setBottom(0)};t.prototype.onDidScroll=function(e){this._shouldRender=this._onElementScrollSize(e.scrollWidth)||this._shouldRender;this._shouldRender=this._onElementScrollPosition(e.scrollLeft)||this._shouldRender;this._shouldRender=this._onElementSize(e.width)||this._shouldRender;return this._shouldRender};t.prototype._mouseDownRelativePosition=function(e,t){return e};t.prototype._sliderMousePosition=function(e){return e.posx};t.prototype._sliderOrthogonalMousePosition=function(e){return e.posy};t.prototype.writeScrollPosition=function(e,t){e.scrollLeft=t};return t}(ju);var Bu=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Hu=function(e){Bu(t,e);function t(t,n,r){var i=e.call(this,{lazyRender:n.lazyRender,host:r,scrollbarState:new Fu(n.verticalHasArrows?n.arrowSize:0,2===n.vertical?0:n.verticalScrollbarSize,0),visibility:n.vertical,extraScrollbarClassName:"vertical",scrollable:t})||this;if(n.verticalHasArrows){var o=(n.arrowSize-Ou)/2;var a=(n.verticalScrollbarSize-Ou)/2;i._createArrow({className:"up-arrow",top:o,left:a,bottom:void 0,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return i._host.onMouseWheel(new Ji["c"](null,0,1))}});i._createArrow({className:"down-arrow",top:void 0,left:a,bottom:o,right:void 0,bgWidth:n.verticalScrollbarSize,bgHeight:n.arrowSize,onActivate:function(){return i._host.onMouseWheel(new Ji["c"](null,0,-1))}})}i._createSlider(0,Math.floor((n.verticalScrollbarSize-n.verticalSliderSize)/2),n.verticalSliderSize,void 0);return i}t.prototype._updateSlider=function(e,t){this.slider.setHeight(e);this.slider.setTop(t)};t.prototype._renderDomNode=function(e,t){this.domNode.setWidth(t);this.domNode.setHeight(e);this.domNode.setRight(0);this.domNode.setTop(0)};t.prototype.onDidScroll=function(e){this._shouldRender=this._onElementScrollSize(e.scrollHeight)||this._shouldRender;this._shouldRender=this._onElementScrollPosition(e.scrollTop)||this._shouldRender;this._shouldRender=this._onElementSize(e.height)||this._shouldRender;return this._shouldRender};t.prototype._mouseDownRelativePosition=function(e,t){return t};t.prototype._sliderMousePosition=function(e){return e.posy};t.prototype._sliderOrthogonalMousePosition=function(e){return e.posx};t.prototype.writeScrollPosition=function(e,t){e.scrollTop=t};return t}(ju);var Uu=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Zu=function(){function e(e,t,n,r,i,o){t|=0;n|=0;r|=0;i|=0;o|=0;(e|=0)<0&&(e=0);n+e>t&&(n=t-e);n<0&&(n=0);r<0&&(r=0);o+r>i&&(o=i-r);o<0&&(o=0);this.width=e;this.scrollWidth=t;this.scrollLeft=n;this.height=r;this.scrollHeight=i;this.scrollTop=o}e.prototype.equals=function(e){return this.width===e.width&&this.scrollWidth===e.scrollWidth&&this.scrollLeft===e.scrollLeft&&this.height===e.height&&this.scrollHeight===e.scrollHeight&&this.scrollTop===e.scrollTop};e.prototype.withScrollDimensions=function(t){return new e(void 0!==t.width?t.width:this.width,void 0!==t.scrollWidth?t.scrollWidth:this.scrollWidth,this.scrollLeft,void 0!==t.height?t.height:this.height,void 0!==t.scrollHeight?t.scrollHeight:this.scrollHeight,this.scrollTop)};e.prototype.withScrollPosition=function(t){return new e(this.width,this.scrollWidth,void 0!==t.scrollLeft?t.scrollLeft:this.scrollLeft,this.height,this.scrollHeight,void 0!==t.scrollTop?t.scrollTop:this.scrollTop)};e.prototype.createScrollEvent=function(e){var t=this.width!==e.width;var n=this.scrollWidth!==e.scrollWidth;var r=this.scrollLeft!==e.scrollLeft;var i=this.height!==e.height;var o=this.scrollHeight!==e.scrollHeight;var a=this.scrollTop!==e.scrollTop;return{width:this.width,scrollWidth:this.scrollWidth,scrollLeft:this.scrollLeft,height:this.height,scrollHeight:this.scrollHeight,scrollTop:this.scrollTop,widthChanged:t,scrollWidthChanged:n,scrollLeftChanged:r,heightChanged:i,scrollHeightChanged:o,scrollTopChanged:a}};return e}();var Gu=function(e){Uu(t,e);function t(t,n){var r=e.call(this)||this;r._onScroll=r._register(new c["a"]);r.onScroll=r._onScroll.event;r._smoothScrollDuration=t;r._scheduleAtNextAnimationFrame=n;r._state=new Zu(0,0,0,0,0,0);r._smoothScrolling=null;return r}t.prototype.dispose=function(){if(this._smoothScrolling){this._smoothScrolling.dispose();this._smoothScrolling=null}e.prototype.dispose.call(this)};t.prototype.setSmoothScrollDuration=function(e){this._smoothScrollDuration=e};t.prototype.validateScrollPosition=function(e){return this._state.withScrollPosition(e)};t.prototype.getScrollDimensions=function(){return this._state};t.prototype.setScrollDimensions=function(e){var t=this._state.withScrollDimensions(e);this._setState(t);this._smoothScrolling&&this._smoothScrolling.acceptScrollDimensions(this._state)};t.prototype.getFutureScrollPosition=function(){if(this._smoothScrolling)return this._smoothScrolling.to;return this._state};t.prototype.getCurrentScrollPosition=function(){return this._state};t.prototype.setScrollPositionNow=function(e){var t=this._state.withScrollPosition(e);if(this._smoothScrolling){this._smoothScrolling.dispose();this._smoothScrolling=null}this._setState(t)};t.prototype.setScrollPositionSmooth=function(e){var t=this;if(0===this._smoothScrollDuration)return this.setScrollPositionNow(e);if(this._smoothScrolling){e={scrollLeft:void 0===e.scrollLeft?this._smoothScrolling.to.scrollLeft:e.scrollLeft,scrollTop:void 0===e.scrollTop?this._smoothScrolling.to.scrollTop:e.scrollTop};var n=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===n.scrollLeft&&this._smoothScrolling.to.scrollTop===n.scrollTop)return;var r=this._smoothScrolling.combine(this._state,n,this._smoothScrollDuration);this._smoothScrolling.dispose();this._smoothScrolling=r}else{var n=this._state.withScrollPosition(e);this._smoothScrolling=qu.start(this._state,n,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!t._smoothScrolling)return;t._smoothScrolling.animationFrameDisposable=null;t._performSmoothScrolling()})};t.prototype._performSmoothScrolling=function(){var e=this;if(!this._smoothScrolling)return;var t=this._smoothScrolling.tick();var n=this._state.withScrollPosition(t);this._setState(n);if(t.isDone){this._smoothScrolling.dispose();this._smoothScrolling=null;return}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){if(!e._smoothScrolling)return;e._smoothScrolling.animationFrameDisposable=null;e._performSmoothScrolling()})};t.prototype._setState=function(e){var t=this._state;if(t.equals(e))return;this._state=e;this._onScroll.fire(this._state.createScrollEvent(t))};return t}(me["a"]);var Yu=function(){function e(e,t,n){this.scrollLeft=e;this.scrollTop=t;this.isDone=n}return e}();function Ku(e,t){var n=t-e;return function(t){return e+n*Xu(t)}}function Qu(e,t,n){return function(r){if(r<n)return e(r/n);return t((r-n)/(1-n))}}var qu=function(){function e(e,t,n,r){this.from=e;this.to=t;this.duration=r;this._startTime=n;this.animationFrameDisposable=null;this._initAnimations()}e.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)};e.prototype._initAnimation=function(e,t,n){var r;if(Math.abs(e-t)>2.5*n){var i=void 0,o=void 0;if(e<t){i=e+.75*n;o=t-.75*n}else{i=e-.75*n;o=t+.75*n}return Qu(Ku(e,i),Ku(o,t),.33)}return Ku(e,t)};e.prototype.dispose=function(){if(null!==this.animationFrameDisposable){this.animationFrameDisposable.dispose();this.animationFrameDisposable=null}};e.prototype.acceptScrollDimensions=function(e){this.to=e.withScrollPosition(this.to);this._initAnimations()};e.prototype.tick=function(){return this._tick(Date.now())};e.prototype._tick=function(e){var t=(e-this._startTime)/this.duration;if(t<1){var n=this.scrollLeft(t);var r=this.scrollTop(t);return new Yu(n,r,!1)}return new Yu(this.to.scrollLeft,this.to.scrollTop,!0)};e.prototype.combine=function(t,n,r){return e.start(t,n,r)};e.start=function(t,n,r){r+=10;var i;return new e(t,n,Date.now()-10,r)};return e}();function Ju(e){return Math.pow(e,3)}function Xu(e){return 1-Ju(1-e)}var $u=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var el=500;var tl=50;var nl=!0;var rl=function(){function e(e,t,n){this.timestamp=e;this.deltaX=t;this.deltaY=n;this.score=0}return e}();var il=function(){function e(){this._capacity=5;this._memory=[];this._front=-1;this._rear=-1}e.prototype.isPhysicalMouseWheel=function(){if(-1===this._front&&-1===this._rear)return!1;var e=1;var t=0;var n=1;var r=this._rear;for(;;){var i=r===this._front?e:Math.pow(2,-n);e-=i;t+=this._memory[r].score*i;if(r===this._front)break;r=(this._capacity+r-1)%this._capacity;n++}return t<=.5};e.prototype.accept=function(e,t,n){var r=new rl(e,t,n);r.score=this._computeScore(r);if(-1===this._front&&-1===this._rear){this._memory[0]=r;this._front=0;this._rear=0}else{this._rear=(this._rear+1)%this._capacity;this._rear===this._front&&(this._front=(this._front+1)%this._capacity);this._memory[this._rear]=r}};e.prototype._computeScore=function(e){if(Math.abs(e.deltaX)>0&&Math.abs(e.deltaY)>0)return 1;var t=.5;var n=-1===this._front&&-1===this._rear?null:this._memory[this._rear];(Math.abs(e.deltaX-Math.round(e.deltaX))>0||Math.abs(e.deltaY-Math.round(e.deltaY))>0)&&(t+=.25);return Math.min(Math.max(t,0),1)};e.INSTANCE=new e;return e}();var ol=function(e){$u(t,e);function t(t,n,r){var i=e.call(this)||this;i._onScroll=i._register(new c["a"]);i.onScroll=i._onScroll.event;t.style.overflow="hidden";i._options=ll(n);i._scrollable=r;i._register(i._scrollable.onScroll(function(e){i._onDidScroll(e);i._onScroll.fire(e)}));var a={onMouseWheel:function(e){return i._onMouseWheel(e)},onDragStart:function(){return i._onDragStart()},onDragEnd:function(){return i._onDragEnd()}};i._verticalScrollbar=i._register(new Hu(i._scrollable,i._options,a));i._horizontalScrollbar=i._register(new Vu(i._scrollable,i._options,a));i._domNode=document.createElement("div");i._domNode.className="monaco-scrollable-element "+i._options.className;i._domNode.setAttribute("role","presentation");i._domNode.style.position="relative";i._domNode.style.overflow="hidden";i._domNode.appendChild(t);i._domNode.appendChild(i._horizontalScrollbar.domNode.domNode);i._domNode.appendChild(i._verticalScrollbar.domNode.domNode);if(i._options.useShadows){i._leftShadowDomNode=Qi(document.createElement("div"));i._leftShadowDomNode.setClassName("shadow");i._domNode.appendChild(i._leftShadowDomNode.domNode);i._topShadowDomNode=Qi(document.createElement("div"));i._topShadowDomNode.setClassName("shadow");i._domNode.appendChild(i._topShadowDomNode.domNode);i._topLeftShadowDomNode=Qi(document.createElement("div"));i._topLeftShadowDomNode.setClassName("shadow top-left-corner");i._domNode.appendChild(i._topLeftShadowDomNode.domNode)}i._listenOnDomNode=i._options.listenOnDomNode||i._domNode;i._mouseWheelToDispose=[];i._setListeningToMouseWheel(i._options.handleMouseWheel);i.onmouseover(i._listenOnDomNode,function(e){return i._onMouseOver(e)});i.onnonbubblingmouseout(i._listenOnDomNode,function(e){return i._onMouseOut(e)});i._hideTimeout=i._register(new o["d"]);i._isDragging=!1;i._mouseIsOver=!1;i._shouldRender=!0;i._revealOnScroll=!0;return i}t.prototype.dispose=function(){this._mouseWheelToDispose=Object(me["d"])(this._mouseWheelToDispose);e.prototype.dispose.call(this)};t.prototype.getDomNode=function(){return this._domNode};t.prototype.getOverviewRulerLayoutInfo=function(){return{parent:this._domNode,insertBefore:this._verticalScrollbar.domNode.domNode}};t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._verticalScrollbar.delegateMouseDown(e)};t.prototype.getScrollDimensions=function(){return this._scrollable.getScrollDimensions()};t.prototype.setScrollDimensions=function(e){this._scrollable.setScrollDimensions(e)};t.prototype.updateClassName=function(e){this._options.className=e;i["d"]&&(this._options.className+=" mac");this._domNode.className="monaco-scrollable-element "+this._options.className};t.prototype.updateOptions=function(e){var t=ll(e);this._options.handleMouseWheel=t.handleMouseWheel;this._options.mouseWheelScrollSensitivity=t.mouseWheelScrollSensitivity;this._setListeningToMouseWheel(this._options.handleMouseWheel);this._options.lazyRender||this._render()};t.prototype._setListeningToMouseWheel=function(e){var t=this;var n;if(this._mouseWheelToDispose.length>0===e)return;this._mouseWheelToDispose=Object(me["d"])(this._mouseWheelToDispose);if(e){var r=function(e){var n=new Ji["c"](e);t._onMouseWheel(n)};this._mouseWheelToDispose.push(K["g"](this._listenOnDomNode,"mousewheel",r));this._mouseWheelToDispose.push(K["g"](this._listenOnDomNode,"DOMMouseScroll",r))}};t.prototype._onMouseWheel=function(e){var t;var n=il.INSTANCE;n.accept(Date.now(),e.deltaX,e.deltaY);if(e.deltaY||e.deltaX){var r=e.deltaY*this._options.mouseWheelScrollSensitivity;var o=e.deltaX*this._options.mouseWheelScrollSensitivity;this._options.flipAxes&&(r=(t=[o,r])[0],o=t[1]);var a=!i["d"]&&e.browserEvent&&e.browserEvent.shiftKey;if((this._options.scrollYToX||a)&&!o){o=r;r=0}var s=this._scrollable.getFutureScrollPosition();var u={};if(r){var l=s.scrollTop-50*r;this._verticalScrollbar.writeScrollPosition(u,l)}if(o){var c=s.scrollLeft-50*o;this._horizontalScrollbar.writeScrollPosition(u,c)}u=this._scrollable.validateScrollPosition(u);if(s.scrollLeft!==u.scrollLeft||s.scrollTop!==u.scrollTop){var d;this._options.mouseWheelSmoothScroll&&n.isPhysicalMouseWheel()?this._scrollable.setScrollPositionSmooth(u):this._scrollable.setScrollPositionNow(u);this._shouldRender=!0}}if(this._options.alwaysConsumeMouseWheel||this._shouldRender){e.preventDefault();e.stopPropagation()}};t.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()};t.prototype.renderNow=function(){if(!this._options.lazyRender)throw new Error("Please use `lazyRender` together with `renderNow`!");this._render()};t.prototype._render=function(){if(!this._shouldRender)return;this._shouldRender=!1;this._horizontalScrollbar.render();this._verticalScrollbar.render();if(this._options.useShadows){var e=this._scrollable.getCurrentScrollPosition();var t=e.scrollTop>0;var n=e.scrollLeft>0;this._leftShadowDomNode.setClassName("shadow"+(n?" left":""));this._topShadowDomNode.setClassName("shadow"+(t?" top":""));this._topLeftShadowDomNode.setClassName("shadow top-left-corner"+(t?" top":"")+(n?" left":""))}};t.prototype._onDragStart=function(){this._isDragging=!0;this._reveal()};t.prototype._onDragEnd=function(){this._isDragging=!1;this._hide()};t.prototype._onMouseOut=function(e){this._mouseIsOver=!1;this._hide()};t.prototype._onMouseOver=function(e){this._mouseIsOver=!0;this._reveal()};t.prototype._reveal=function(){this._verticalScrollbar.beginReveal();this._horizontalScrollbar.beginReveal();this._scheduleHide()};t.prototype._hide=function(){if(!this._mouseIsOver&&!this._isDragging){this._verticalScrollbar.beginHide();this._horizontalScrollbar.beginHide()}};t.prototype._scheduleHide=function(){var e=this;this._mouseIsOver||this._isDragging||this._hideTimeout.cancelAndSet(function(){return e._hide()},500)};return t}(Du["a"]);var al=function(e){$u(t,e);function t(t,n){var r=this;(n=n||{}).mouseWheelSmoothScroll=!1;var i=new Gu(0,function(e){return K["L"](e)});(r=e.call(this,t,n,i)||this)._register(i);return r}t.prototype.setScrollPosition=function(e){this._scrollable.setScrollPositionNow(e)};t.prototype.getScrollPosition=function(){return this._scrollable.getCurrentScrollPosition()};return t}(ol);var sl=function(e){$u(t,e);function t(t,n,r){return e.call(this,t,n,r)||this}return t}(ol);var ul=function(e){$u(t,e);function t(t,n){var r=e.call(this,t,n)||this;r._element=t;r.onScroll(function(e){e.scrollTopChanged&&(r._element.scrollTop=e.scrollTop);e.scrollLeftChanged&&(r._element.scrollLeft=e.scrollLeft)});r.scanDomNode();return r}t.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})};return t}(al);function ll(e){var t={lazyRender:void 0!==e.lazyRender&&e.lazyRender,className:void 0!==e.className?e.className:"",useShadows:void 0===e.useShadows||e.useShadows,handleMouseWheel:void 0===e.handleMouseWheel||e.handleMouseWheel,flipAxes:void 0!==e.flipAxes&&e.flipAxes,alwaysConsumeMouseWheel:void 0!==e.alwaysConsumeMouseWheel&&e.alwaysConsumeMouseWheel,scrollYToX:void 0!==e.scrollYToX&&e.scrollYToX,mouseWheelScrollSensitivity:void 0!==e.mouseWheelScrollSensitivity?e.mouseWheelScrollSensitivity:1,mouseWheelSmoothScroll:void 0===e.mouseWheelSmoothScroll||e.mouseWheelSmoothScroll,arrowSize:void 0!==e.arrowSize?e.arrowSize:11,listenOnDomNode:void 0!==e.listenOnDomNode?e.listenOnDomNode:null,horizontal:void 0!==e.horizontal?e.horizontal:1,horizontalScrollbarSize:void 0!==e.horizontalScrollbarSize?e.horizontalScrollbarSize:10,horizontalSliderSize:void 0!==e.horizontalSliderSize?e.horizontalSliderSize:0,horizontalHasArrows:void 0!==e.horizontalHasArrows&&e.horizontalHasArrows,vertical:void 0!==e.vertical?e.vertical:1,verticalScrollbarSize:void 0!==e.verticalScrollbarSize?e.verticalScrollbarSize:10,verticalHasArrows:void 0!==e.verticalHasArrows&&e.verticalHasArrows,verticalSliderSize:void 0!==e.verticalSliderSize?e.verticalSliderSize:0};t.horizontalSliderSize=void 0!==e.horizontalSliderSize?e.horizontalSliderSize:t.horizontalScrollbarSize;t.verticalSliderSize=void 0!==e.verticalSliderSize?e.verticalSliderSize:t.verticalScrollbarSize;i["d"]&&(t.className+=" mac");return t}var cl=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var dl=function(e){cl(t,e);function t(t,n,r,i){var o=e.call(this,t)||this;var a;var s=o._context.configuration.editor.viewInfo.scrollbar;var u={listenOnDomNode:r.domNode,className:"editor-scrollable "+Object(So["d"])(t.theme.type),useShadows:!1,lazyRender:!0,vertical:s.vertical,horizontal:s.horizontal,verticalHasArrows:s.verticalHasArrows,horizontalHasArrows:s.horizontalHasArrows,verticalScrollbarSize:s.verticalScrollbarSize,verticalSliderSize:s.verticalSliderSize,horizontalScrollbarSize:s.horizontalScrollbarSize,horizontalSliderSize:s.horizontalSliderSize,handleMouseWheel:s.handleMouseWheel,arrowSize:s.arrowSize,mouseWheelScrollSensitivity:s.mouseWheelScrollSensitivity};o.scrollbar=o._register(new sl(n.domNode,u,o._context.viewLayout.scrollable));go.write(o.scrollbar.getDomNode(),5);o.scrollbarDomNode=Qi(o.scrollbar.getDomNode());o.scrollbarDomNode.setPosition("absolute");o._setLayout();var l=function(e,t,n){var r={};if(t){var i=e.scrollTop;if(i){r.scrollTop=o._context.viewLayout.getCurrentScrollTop()+i;e.scrollTop=0}}if(n){var a=e.scrollLeft;if(a){r.scrollLeft=o._context.viewLayout.getCurrentScrollLeft()+a;e.scrollLeft=0}}o._context.viewLayout.setScrollPositionNow(r)};o._register(K["g"](r.domNode,"scroll",function(e){return l(r.domNode,!0,!0)}));o._register(K["g"](n.domNode,"scroll",function(e){return l(n.domNode,!0,!1)}));o._register(K["g"](i.domNode,"scroll",function(e){return l(i.domNode,!0,!1)}));o._register(K["g"](o.scrollbarDomNode.domNode,"scroll",function(e){return l(o.scrollbarDomNode.domNode,!0,!1)}));return o}t.prototype.dispose=function(){e.prototype.dispose.call(this)};t.prototype._setLayout=function(){var e=this._context.configuration.editor.layoutInfo;this.scrollbarDomNode.setLeft(e.contentLeft);var t;"right"===this._context.configuration.editor.viewInfo.minimap.side?this.scrollbarDomNode.setWidth(e.contentWidth+e.minimapWidth):this.scrollbarDomNode.setWidth(e.contentWidth);this.scrollbarDomNode.setHeight(e.contentHeight)};t.prototype.getOverviewRulerLayoutInfo=function(){return this.scrollbar.getOverviewRulerLayoutInfo()};t.prototype.getDomNode=function(){return this.scrollbarDomNode};t.prototype.delegateVerticalScrollbarMouseDown=function(e){this.scrollbar.delegateVerticalScrollbarMouseDown(e)};t.prototype.onConfigurationChanged=function(e){if(e.viewInfo){var t=this._context.configuration.editor;var n={handleMouseWheel:t.viewInfo.scrollbar.handleMouseWheel,mouseWheelScrollSensitivity:t.viewInfo.scrollbar.mouseWheelScrollSensitivity};this.scrollbar.updateOptions(n)}e.layoutInfo&&this._setLayout();return!0};t.prototype.onScrollChanged=function(e){return!0};t.prototype.onThemeChanged=function(e){this.scrollbar.updateClassName("editor-scrollable "+Object(So["d"])(this._context.theme.type));return!0};t.prototype.prepareRender=function(e){};t.prototype.render=function(e){this.scrollbar.renderNow()};return t}(po);var hl=n("ZW5Q");var fl=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var pl=function(){function e(e,t,n){this.startLineNumber=+e;this.endLineNumber=+t;this.className=String(n)}return e}();var gl=function(e){fl(t,e);function t(){return null!==e&&e.apply(this,arguments)||this}t.prototype._render=function(e,t,n){var r=[];for(var i=e;i<=t;i++){var o;r[i-e]=[]}if(0===n.length)return r;n.sort(function(e,t){if(e.className===t.className){if(e.startLineNumber===t.startLineNumber)return e.endLineNumber-t.endLineNumber;return e.startLineNumber-t.startLineNumber}return e.className<t.className?-1:1});var a=null;var s=0;for(var u=0,l=n.length;u<l;u++){var c=n[u];var d=c.className;var h=Math.max(c.startLineNumber,e)-e;var f=Math.min(c.endLineNumber,t)-e;if(a===d){h=Math.max(s+1,h);s=Math.max(s,f)}else{a=d;s=f}for(var p=h;p<=s;p++)r[p].push(a)}return r};return t}(sa);var vl=function(e){fl(t,e);function t(t){var n=e.call(this)||this;n._context=t;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);return n}t.prototype.dispose=function(){this._context.removeEventHandler(this);this._renderResult=null;e.prototype.dispose.call(this)};t.prototype.onConfigurationChanged=function(e){e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight);e.viewInfo&&(this._glyphMargin=this._context.configuration.editor.viewInfo.glyphMargin);if(e.layoutInfo){this._glyphMarginLeft=this._context.configuration.editor.layoutInfo.glyphMarginLeft;this._glyphMarginWidth=this._context.configuration.editor.layoutInfo.glyphMarginWidth}return!0};t.prototype.onDecorationsChanged=function(e){return!0};t.prototype.onFlushed=function(e){return!0};t.prototype.onLinesChanged=function(e){return!0};t.prototype.onLinesDeleted=function(e){return!0};t.prototype.onLinesInserted=function(e){return!0};t.prototype.onScrollChanged=function(e){return e.scrollTopChanged};t.prototype.onZonesChanged=function(e){return!0};t.prototype._getDecorations=function(e){var t=e.getDecorationsInViewport();var n=[],r=0;for(var i=0,o=t.length;i<o;i++){var a=t[i];var s=a.options.glyphMarginClassName;s&&(n[r++]=new pl(a.range.startLineNumber,a.range.endLineNumber,s))}return n};t.prototype.prepareRender=function(e){if(!this._glyphMargin){this._renderResult=null;return}var t=e.visibleRange.startLineNumber;var n=e.visibleRange.endLineNumber;var r=this._render(t,n,this._getDecorations(e));var i=this._lineHeight.toString();var o;var a;var s='" style="left:'+this._glyphMarginLeft.toString()+"px;width:"+this._glyphMarginWidth.toString()+"px;height:"+i+'px;"></div>';var u=[];for(var l=t;l<=n;l++){var c=l-t;var d=r[c];0===d.length?u[c]="":u[c]='<div class="cgmr '+d.join(" ")+s}this._renderResult=u};t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;if(n<0||n>=this._renderResult.length)return"";return this._renderResult[n]};return t}(gl);var ml=n("sy5I");var _l=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var yl=function(e){_l(t,e);function t(t){var n=e.call(this)||this;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);return n}t.prototype.dispose=function(){this._context.removeEventHandler(this);this._renderResult=null;e.prototype.dispose.call(this)};t.prototype.onConfigurationChanged=function(e){e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight);e.fontInfo&&(this._spaceWidth=this._context.configuration.editor.fontInfo.spaceWidth);if(e.viewInfo){this._enabled=this._context.configuration.editor.viewInfo.renderIndentGuides;this._activeIndentEnabled=this._context.configuration.editor.viewInfo.highlightActiveIndentGuide}return!0};t.prototype.onCursorStateChanged=function(e){var t=e.selections[0];var n=t.isEmpty()?t.positionLineNumber:0;if(this._primaryLineNumber!==n){this._primaryLineNumber=n;return!0}return!1};t.prototype.onDecorationsChanged=function(e){return!0};t.prototype.onFlushed=function(e){return!0};t.prototype.onLinesChanged=function(e){return!0};t.prototype.onLinesDeleted=function(e){return!0};t.prototype.onLinesInserted=function(e){return!0};t.prototype.onScrollChanged=function(e){return e.scrollTopChanged};t.prototype.onZonesChanged=function(e){return!0};t.prototype.onLanguageConfigurationChanged=function(e){return!0};t.prototype.prepareRender=function(e){if(!this._enabled){this._renderResult=null;return}var t=e.visibleRange.startLineNumber;var n=e.visibleRange.endLineNumber;var r;var i=this._context.model.getTabSize()*this._spaceWidth;var o=e.scrollWidth;var a=this._lineHeight;var s=i;var u=this._context.model.getLinesIndentGuides(t,n);var l=0;var c=0;var d=0;if(this._activeIndentEnabled&&this._primaryLineNumber){var h=this._context.model.getActiveIndentGuide(this._primaryLineNumber,t,n);l=h.startLineNumber;c=h.endLineNumber;d=h.indent}var p=[];for(var g=t;g<=n;g++){var v=l<=g&&g<=c;var m=g-t;var _=u[m];var y="";var b=e.visibleRangeForPosition(new f["a"](g,1));var C=b?b.left:0;for(var w=1;w<=_;w++){var S;y+='<div class="'+(v&&w===d?"cigra":"cigr")+'" style="left:'+C+"px;height:"+a+"px;width:"+s+'px"></div>';if((C+=i)>o)break}p[m]=y}this._renderResult=p};t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;if(n<0||n>=this._renderResult.length)return"";return this._renderResult[n]};return t}(sa);Object(So["e"])(function(e,t){var n=e.getColor(ma);n&&t.addRule(".monaco-editor .lines-content .cigr { box-shadow: 1px 0 0 0 "+n+" inset; }");var r=e.getColor(_a)||n;r&&t.addRule(".monaco-editor .lines-content .cigra { box-shadow: 1px 0 0 0 "+r+" inset; }")});var bl=n("StU3");var Cl=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var wl=function(){function e(){this._currentVisibleRange=new p["a"](1,1,1,1)}e.prototype.getCurrentVisibleRange=function(){return this._currentVisibleRange};e.prototype.setCurrentVisibleRange=function(e){this._currentVisibleRange=e};return e}();var Sl=function(){function e(e,t,n,r,i,o){this.lineNumber=e;this.startColumn=t;this.endColumn=n;this.startScrollTop=r;this.stopScrollTop=i;this.scrollType=o}return e}();var Ll=function(e){Cl(t,e);function t(t,n){var r=e.call(this,t)||this;r._linesContent=n;r._textRangeRestingSpot=document.createElement("div");r._visibleLines=new uu(r);r.domNode=r._visibleLines.domNode;var i=r._context.configuration;r._lineHeight=i.editor.lineHeight;r._typicalHalfwidthCharacterWidth=i.editor.fontInfo.typicalHalfwidthCharacterWidth;r._isViewportWrapping=i.editor.wrappingInfo.isViewportWrapping;r._revealHorizontalRightPadding=i.editor.viewInfo.revealHorizontalRightPadding;r._canUseLayerHinting=i.editor.canUseLayerHinting;r._viewLineOptions=new Mo(i,r._context.theme.type);go.write(r.domNode,7);r.domNode.setClassName("view-lines");Gi.applyFontInfo(r.domNode,i.editor.fontInfo);r._maxLineWidth=0;r._asyncUpdateLineWidths=new o["c"](function(){r._updateLineWidthsSlow()},200);r._lastRenderedData=new wl;r._horizontalRevealRequest=null;return r}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 Do(this._viewLineOptions)};t.prototype.onConfigurationChanged=function(e){this._visibleLines.onConfigurationChanged(e);e.wrappingInfo&&(this._maxLineWidth=0);var t=this._context.configuration;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&&Gi.applyFontInfo(this.domNode,t.editor.fontInfo);this._onOptionsMaybeChanged();e.layoutInfo&&(this._maxLineWidth=0);return!0};t.prototype._onOptionsMaybeChanged=function(){var e=this._context.configuration;var t=new Mo(e,this._context.theme.type);if(!this._viewLineOptions.equals(t)){this._viewLineOptions=t;var n=this._visibleLines.getStartLineNumber();var r=this._visibleLines.getEndLineNumber();for(var i=n;i<=r;i++){var o;this._visibleLines.getVisibleLine(i).onOptionsChanged(this._viewLineOptions)}return!0}return!1};t.prototype.onCursorStateChanged=function(e){var t=this._visibleLines.getStartLineNumber();var n=this._visibleLines.getEndLineNumber();var r=!1;for(var i=t;i<=n;i++)r=this._visibleLines.getVisibleLine(i).onSelectionChanged()||r;return r};t.prototype.onDecorationsChanged=function(e){var t=this._visibleLines.getStartLineNumber();var n=this._visibleLines.getEndLineNumber();for(var r=t;r<=n;r++)this._visibleLines.getVisibleLine(r).onDecorationsChanged();return!0};t.prototype.onFlushed=function(e){var t=this._visibleLines.onFlushed(e);this._maxLineWidth=0;return 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);var n=this._context.viewLayout.validateScrollPosition({scrollTop:t});e.revealHorizontal?e.range.startLineNumber!==e.range.endLineNumber?n={scrollTop:n.scrollTop,scrollLeft:0}:this._horizontalRevealRequest=new Sl(e.range.startLineNumber,e.range.startColumn,e.range.endColumn,this._context.viewLayout.getCurrentScrollTop(),n.scrollTop,e.scrollType):this._horizontalRevealRequest=null;var r=Math.abs(this._context.viewLayout.getCurrentScrollTop()-n.scrollTop);0===e.scrollType&&r>this._lineHeight?this._context.viewLayout.setScrollPositionSmooth(n):this._context.viewLayout.setScrollPositionNow(n);return!0};t.prototype.onScrollChanged=function(e){this._horizontalRevealRequest&&e.scrollLeftChanged&&(this._horizontalRevealRequest=null);if(this._horizontalRevealRequest&&e.scrollTopChanged){var t=Math.min(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);var n=Math.max(this._horizontalRevealRequest.startScrollTop,this._horizontalRevealRequest.stopScrollTop);(e.scrollTop<t||e.scrollTop>n)&&(this._horizontalRevealRequest=null)}this.domNode.setWidth(e.scrollWidth);return this._visibleLines.onScrollChanged(e)||!0};t.prototype.onTokensChanged=function(e){return this._visibleLines.onTokensChanged(e)};t.prototype.onZonesChanged=function(e){this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth);return this._visibleLines.onZonesChanged(e)};t.prototype.onThemeChanged=function(e){return this._onOptionsMaybeChanged()};t.prototype.getPositionFromDOMInfo=function(e,t){var n=this._getViewLineDomNode(e);if(null===n)return null;var r=this._getLineNumberFor(n);if(-1===r)return null;if(r<1||r>this._context.model.getLineCount())return null;if(1===this._context.model.getLineMaxColumn(r))return new f["a"](r,1);var i=this._visibleLines.getStartLineNumber();var o=this._visibleLines.getEndLineNumber();if(r<i||r>o)return null;var a=this._visibleLines.getVisibleLine(r).getColumnOfNodeOffset(r,e,t);var s=this._context.model.getLineMinColumn(r);a<s&&(a=s);return new f["a"](r,a)};t.prototype._getViewLineDomNode=function(e){for(;e&&1===e.nodeType;){if(e.className===Do.CLASS_NAME)return e;e=e.parentElement}return null};t.prototype._getLineNumberFor=function(e){var t=this._visibleLines.getStartLineNumber();var n=this._visibleLines.getEndLineNumber();for(var r=t;r<=n;r++){var i;if(e===this._visibleLines.getVisibleLine(r).getDomNode())return r}return-1};t.prototype.getLineWidth=function(e){var t=this._visibleLines.getStartLineNumber();var n=this._visibleLines.getEndLineNumber();if(e<t||e>n)return-1;return this._visibleLines.getVisibleLine(e).getWidth()};t.prototype.linesVisibleRangesForRange=function(e,t){if(this.shouldRender())return null;var n=e.endLineNumber;var r=p["a"].intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!r)return null;var i=[],o=0;var a=new No(this.domNode.domNode,this._textRangeRestingSpot);var s=0;t&&(s=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new f["a"](r.startLineNumber,1)).lineNumber);var u=this._visibleLines.getStartLineNumber();var l=this._visibleLines.getEndLineNumber();for(var c=r.startLineNumber;c<=r.endLineNumber;c++){if(c<u||c>l)continue;var d=c===r.startLineNumber?r.startColumn:1;var h=c===r.endLineNumber?r.endColumn:this._context.model.getLineMaxColumn(c);var g=this._visibleLines.getVisibleLine(c).getVisibleRangesForRange(d,h,a);if(!g||0===g.length)continue;if(t&&c<n){var v;s!==(s=this._context.model.coordinatesConverter.convertViewPositionToModelPosition(new f["a"](c+1,1)).lineNumber)&&(g[g.length-1].width+=this._typicalHalfwidthCharacterWidth)}i[o++]=new yo(c,g)}if(0===o)return null;return i};t.prototype.visibleRangesForRange2=function(e){if(this.shouldRender())return null;var t=p["a"].intersectRanges(e,this._lastRenderedData.getCurrentVisibleRange());if(!t)return null;var n=[];var r=new No(this.domNode.domNode,this._textRangeRestingSpot);var i=this._visibleLines.getStartLineNumber();var o=this._visibleLines.getEndLineNumber();for(var a=t.startLineNumber;a<=t.endLineNumber;a++){if(a<i||a>o)continue;var s=a===t.startLineNumber?t.startColumn:1;var u=a===t.endLineNumber?t.endColumn:this._context.model.getLineMaxColumn(a);var l=this._visibleLines.getVisibleLine(a).getVisibleRangesForRange(s,u,r);if(!l||0===l.length)continue;n=n.concat(l)}if(0===n.length)return null;return n};t.prototype.visibleRangeForPosition=function(e){var t=this.visibleRangesForRange2(new p["a"](e.lineNumber,e.column,e.lineNumber,e.column));if(!t)return null;return t[0]};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){var t=this._visibleLines.getStartLineNumber();var n=this._visibleLines.getEndLineNumber();var r=1;var i=!0;for(var o=t;o<=n;o++){var a=this._visibleLines.getVisibleLine(o);if(e&&!a.getWidthIsFast()){i=!1;continue}r=Math.max(r,a.getWidth())}i&&1===t&&n===this._context.model.getLineCount()&&(this._maxLineWidth=0);this._ensureMaxLineWidth(r);return i};t.prototype.prepareRender=function(){throw new Error("Not supported")};t.prototype.render=function(){throw new Error("Not supported")};t.prototype.renderText=function(e){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));if(this._horizontalRevealRequest){var t=this._horizontalRevealRequest.lineNumber;var n=this._horizontalRevealRequest.startColumn;var r=this._horizontalRevealRequest.endColumn;var i=this._horizontalRevealRequest.scrollType;if(e.startLineNumber<=t&&t<=e.endLineNumber){this._horizontalRevealRequest=null;this.onDidRender();var o=this._computeScrollLeftToRevealRange(t,n,r);var a;this._isViewportWrapping||this._ensureMaxLineWidth(o.maxHorizontalOffset);0===i?this._context.viewLayout.setScrollPositionSmooth({scrollLeft:o.scrollLeft}):this._context.viewLayout.setScrollPositionNow({scrollLeft:o.scrollLeft})}}this._updateLineWidthsFast()||this._asyncUpdateLineWidths.schedule();this._linesContent.setLayerHinting(this._canUseLayerHinting);var s=this._context.viewLayout.getCurrentScrollTop()-e.bigNumbersDelta;this._linesContent.setTop(-s);this._linesContent.setLeft(-this._context.viewLayout.getCurrentScrollLeft())};t.prototype._ensureMaxLineWidth=function(e){var t=Math.ceil(e);if(this._maxLineWidth<t){this._maxLineWidth=t;this._context.viewLayout.onMaxLineWidthChanged(this._maxLineWidth)}};t.prototype._computeScrollTopToRevealRange=function(e,t,n){var r=e.top;var i=e.height;var o=r+i;var a;var s;a=this._context.viewLayout.getVerticalOffsetForLineNumber(t.startLineNumber);s=this._context.viewLayout.getVerticalOffsetForLineNumber(t.endLineNumber)+this._lineHeight;0!==n&&4!==n||(s+=this._lineHeight);var u;if(1===n||2===n)if(2===n&&r<=a&&s<=o)u=r;else{var l=(a+s)/2;u=Math.max(0,l-i/2)}else u=this._computeMinimumScrolling(r,o,a,s,3===n,4===n);return u};t.prototype._computeScrollLeftToRevealRange=function(e,n,r){var i=0;var o=this._context.viewLayout.getCurrentViewport();var a=o.left;var s=a+o.width;var u=this.visibleRangesForRange2(new p["a"](e,n,e,r));var l=Number.MAX_VALUE;var c=0;if(!u)return{scrollLeft:a,maxHorizontalOffset:i};for(var d=0;d<u.length;d++){var h=u[d];h.left<l&&(l=h.left);h.left+h.width>c&&(c=h.left+h.width)}i=c;l=Math.max(0,l-t.HORIZONTAL_EXTRA_PX);c+=this._revealHorizontalRightPadding;var f;return{scrollLeft:this._computeMinimumScrolling(a,s,l,c),maxHorizontalOffset:i}};t.prototype._computeMinimumScrolling=function(e,t,n,r,i,o){i=!!i;o=!!o;var a=(t|=0)-(e|=0);var s;if(!((r|=0)-(n|=0)<a))return n;if(i)return n;if(o)return Math.max(0,r-a);if(n<e)return n;if(r>t)return Math.max(0,r-a);return e};t.HORIZONTAL_EXTRA_PX=30;return t}(po);var Il=n("MSru");var xl=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Nl=function(e){xl(t,e);function t(t){var n=e.call(this)||this;n._context=t;n._decorationsLeft=n._context.configuration.editor.layoutInfo.decorationsLeft;n._decorationsWidth=n._context.configuration.editor.layoutInfo.decorationsWidth;n._renderResult=null;n._context.addEventHandler(n);return n}t.prototype.dispose=function(){this._context.removeEventHandler(this);this._renderResult=null;e.prototype.dispose.call(this)};t.prototype.onConfigurationChanged=function(e){if(e.layoutInfo){this._decorationsLeft=this._context.configuration.editor.layoutInfo.decorationsLeft;this._decorationsWidth=this._context.configuration.editor.layoutInfo.decorationsWidth}return!0};t.prototype.onDecorationsChanged=function(e){return!0};t.prototype.onFlushed=function(e){return!0};t.prototype.onLinesChanged=function(e){return!0};t.prototype.onLinesDeleted=function(e){return!0};t.prototype.onLinesInserted=function(e){return!0};t.prototype.onScrollChanged=function(e){return e.scrollTopChanged};t.prototype.onZonesChanged=function(e){return!0};t.prototype._getDecorations=function(e){var t=e.getDecorationsInViewport();var n=[],r=0;for(var i=0,o=t.length;i<o;i++){var a=t[i];var s=a.options.linesDecorationsClassName;s&&(n[r++]=new pl(a.range.startLineNumber,a.range.endLineNumber,s))}return n};t.prototype.prepareRender=function(e){var t=e.visibleRange.startLineNumber;var n=e.visibleRange.endLineNumber;var r=this._render(t,n,this._getDecorations(e));var i;var o;var a='" style="left:'+this._decorationsLeft.toString()+"px;width:"+this._decorationsWidth.toString()+'px;"></div>';var s=[];for(var u=t;u<=n;u++){var l=u-t;var c=r[l];var d="";for(var h=0,f=c.length;h<f;h++)d+='<div class="cldr '+c[h]+a;s[l]=d}this._renderResult=s};t.prototype.render=function(e,t){if(!this._renderResult)return"";return this._renderResult[t-e]};return t}(gl);var Ml=n("WXda");var Dl=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var kl=function(e){Dl(t,e);function t(t){var n=e.call(this)||this;n._context=t;n._renderResult=null;n._context.addEventHandler(n);return n}t.prototype.dispose=function(){this._context.removeEventHandler(this);this._renderResult=null;e.prototype.dispose.call(this)};t.prototype.onConfigurationChanged=function(e){return!0};t.prototype.onDecorationsChanged=function(e){return!0};t.prototype.onFlushed=function(e){return!0};t.prototype.onLinesChanged=function(e){return!0};t.prototype.onLinesDeleted=function(e){return!0};t.prototype.onLinesInserted=function(e){return!0};t.prototype.onScrollChanged=function(e){return e.scrollTopChanged};t.prototype.onZonesChanged=function(e){return!0};t.prototype._getDecorations=function(e){var t=e.getDecorationsInViewport();var n=[],r=0;for(var i=0,o=t.length;i<o;i++){var a=t[i];var s=a.options.marginClassName;s&&(n[r++]=new pl(a.range.startLineNumber,a.range.endLineNumber,s))}return n};t.prototype.prepareRender=function(e){var t=e.visibleRange.startLineNumber;var n=e.visibleRange.endLineNumber;var r=this._render(t,n,this._getDecorations(e));var i=[];for(var o=t;o<=n;o++){var a=o-t;var s=r[a];var u="";for(var l=0,c=s.length;l<c;l++)u+='<div class="cmdr '+s[l]+'" style=""></div>';i[a]=u}this._renderResult=i};t.prototype.render=function(e,t){if(!this._renderResult)return"";return this._renderResult[t-e]};return t}(gl);var Ol=n("aYPm");var El=function(){function e(t,n,r,i){this.r=e._clamp(t);this.g=e._clamp(n);this.b=e._clamp(r);this.a=e._clamp(i)}e._clamp=function(e){if(e<0)return 0;if(e>255)return 255;return 0|e};e.Empty=new e(0,0,0,0);return e}();var Tl=function(){function e(){var e=this;this._onDidChange=new c["a"];this.onDidChange=this._onDidChange.event;this._updateColorMap();Ve["u"].onDidChange(function(t){t.changedColorMap&&e._updateColorMap()})}e.getInstance=function(){this._INSTANCE||(this._INSTANCE=new e);return this._INSTANCE};e.prototype._updateColorMap=function(){var e=Ve["u"].getColorMap();if(!e){this._colors=[El.Empty];this._backgroundIsLight=!0;return}this._colors=[El.Empty];for(var t=1;t<e.length;t++){var n=e[t].rgba;this._colors[t]=new El(n.r,n.g,n.b,Math.round(255*n.a))}var r=e[2].getRelativeLuminance();this._backgroundIsLight=r>=.5;this._onDidChange.fire(void 0)};e.prototype.getColor=function(e){(e<1||e>=this._colors.length)&&(e=2);return this._colors[e]};e.prototype.backgroundIsLight=function(){return this._backgroundIsLight};e._INSTANCE=null;return e}();var Al=function(){function e(t,n){var r=760;if(760!==t.length)throw new Error("Invalid x2CharData");var i=190;if(190!==n.length)throw new Error("Invalid x1CharData");this.x2charData=t;this.x1charData=n;this.x2charDataLight=e.soften(t,.8);this.x1charDataLight=e.soften(n,50/60)}e.soften=function(e,t){var n=new Uint8ClampedArray(e.length);for(var r=0,i=e.length;r<i;r++)n[r]=e[r]*t;return n};e._getChIndex=function(e){(e-=32)<0&&(e+=95);return e%95};e.prototype.x2RenderChar=function(t,n,r,i,o,a,s){if(n+2>t.width||r+4>t.height){console.warn("bad render request outside image data");return}var u=s?this.x2charDataLight:this.x2charData;var l=e._getChIndex(i);var c=4*t.width;var d=a.r;var h=a.g;var f=a.b;var p=o.r-d;var g=o.g-h;var v=o.b-f;var m=t.data;var _=4*l*2;var y=r*c+4*n;var b=u[_]/255;m[y+0]=d+p*b;m[y+1]=h+g*b;m[y+2]=f+v*b;var b=u[_+1]/255;m[y+4]=d+p*b;m[y+5]=h+g*b;m[y+6]=f+v*b;y+=c;var b=u[_+2]/255;m[y+0]=d+p*b;m[y+1]=h+g*b;m[y+2]=f+v*b;var b=u[_+3]/255;m[y+4]=d+p*b;m[y+5]=h+g*b;m[y+6]=f+v*b;y+=c;var b=u[_+4]/255;m[y+0]=d+p*b;m[y+1]=h+g*b;m[y+2]=f+v*b;var b=u[_+5]/255;m[y+4]=d+p*b;m[y+5]=h+g*b;m[y+6]=f+v*b;y+=c;var b=u[_+6]/255;m[y+0]=d+p*b;m[y+1]=h+g*b;m[y+2]=f+v*b;var b=u[_+7]/255;m[y+4]=d+p*b;m[y+5]=h+g*b;m[y+6]=f+v*b};e.prototype.x1RenderChar=function(t,n,r,i,o,a,s){if(n+1>t.width||r+2>t.height){console.warn("bad render request outside image data");return}var u=s?this.x1charDataLight:this.x1charData;var l=e._getChIndex(i);var c=4*t.width;var d=a.r;var h=a.g;var f=a.b;var p=o.r-d;var g=o.g-h;var v=o.b-f;var m=t.data;var _=2*l*1;var y=r*c+4*n;var b=u[_]/255;m[y+0]=d+p*b;m[y+1]=h+g*b;m[y+2]=f+v*b;y+=c;var b=u[_+1]/255;m[y+0]=d+p*b;m[y+1]=h+g*b;m[y+2]=f+v*b};e.prototype.x2BlockRenderChar=function(e,t,n,r,i,o){if(t+2>e.width||n+4>e.height){console.warn("bad render request outside image data");return}var a=4*e.width;var s=.5;var u=i.r;var l=i.g;var c=i.b;var d;var h;var f;var p=u+(r.r-u)*s;var g=l+(r.g-l)*s;var v=c+(r.b-c)*s;var m=e.data;var _=n*a+4*t;m[_+0]=p;m[_+1]=g;m[_+2]=v;m[_+4]=p;m[_+5]=g;m[_+6]=v;m[(_+=a)+0]=p;m[_+1]=g;m[_+2]=v;m[_+4]=p;m[_+5]=g;m[_+6]=v;m[(_+=a)+0]=p;m[_+1]=g;m[_+2]=v;m[_+4]=p;m[_+5]=g;m[_+6]=v;m[(_+=a)+0]=p;m[_+1]=g;m[_+2]=v;m[_+4]=p;m[_+5]=g;m[_+6]=v};e.prototype.x1BlockRenderChar=function(e,t,n,r,i,o){if(t+1>e.width||n+2>e.height){console.warn("bad render request outside image data");return}var a=4*e.width;var s=.5;var u=i.r;var l=i.g;var c=i.b;var d;var h;var f;var p=u+(r.r-u)*s;var g=l+(r.g-l)*s;var v=c+(r.b-c)*s;var m=e.data;var _=n*a+4*t;m[_+0]=p;m[_+1]=g;m[_+2]=v;m[(_+=a)+0]=p;m[_+1]=g;m[_+2]=v};return e}();function Rl(e){var t=new Uint8ClampedArray(e.length);for(var n=0,r=e.length;n<r;n++)t[n]=e[n];return t}var Pl=null;function jl(){if(!Pl){var e=Rl(Fl);Fl=null;var t=Rl(Wl);Wl=null;Pl=new Al(t,e)}return Pl}var Wl=[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];var Fl=[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];var zl=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Vl(e){if(2===e)return 4;if(4===e)return 6;if(1===e)return 2;return 3}function Bl(e){if(2===e)return 2;if(4===e)return 2;if(1===e)return 1;return 1}var Hl=140;var Ul=function(){function e(e){var t=e.editor.pixelRatio;var n=e.editor.layoutInfo;var r=e.editor.viewInfo;var i=e.editor.fontInfo;this.renderMinimap=0|n.renderMinimap;this.scrollBeyondLastLine=r.scrollBeyondLastLine;this.showSlider=r.minimap.showSlider;this.pixelRatio=t;this.typicalHalfwidthCharacterWidth=i.typicalHalfwidthCharacterWidth;this.lineHeight=e.editor.lineHeight;this.minimapLeft=n.minimapLeft;this.minimapWidth=n.minimapWidth;this.minimapHeight=n.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}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};return e}();var Zl=function(){function e(e,t,n,r,i,o,a){this.scrollTop=e;this.scrollHeight=t;this._computedSliderRatio=n;this.sliderTop=r;this.sliderHeight=i;this.startLineNumber=o;this.endLineNumber=a}e.prototype.getDesiredScrollTopFromDelta=function(e){var t=this.sliderTop+e;return Math.round(t/this._computedSliderRatio)};e.create=function(t,n,r,i,o,a,s,u,l){var c=t.pixelRatio;var d=Vl(t.renderMinimap);var h=Math.floor(t.canvasInnerHeight/d);var f=t.lineHeight;var p;if(o&&r!==a){var g=r-n+1;p=Math.floor(g*d/c)}else{var v=i/f;p=Math.floor(v*d/c)}var m;m=t.scrollBeyondLastLine?(a-1)*d/c:Math.max(0,a*d/c-p);var _=(m=Math.min(t.minimapHeight-p,m))/(u-i);var y=s*_;if(h>=a){var b;var C;return new e(s,u,_,y,p,b=1,C=a)}var b=Math.max(1,Math.floor(n-y*c/d));if(l&&l.scrollHeight===u){l.scrollTop>s&&(b=Math.min(b,l.startLineNumber));l.scrollTop<s&&(b=Math.max(b,l.startLineNumber))}var C;return new e(s,u,_,y,p,b,C=Math.min(a,b+h-1))};return e}();var Gl=function(){function e(e){this.dy=e}e.prototype.onContentChanged=function(){this.dy=-1};e.prototype.onTokensChanged=function(){this.dy=-1};e.INVALID=new e(-1);return e}();var Yl=function(){function e(e,t,n){this.renderedLayout=e;this._imageData=t;this._renderedLines=new su(function(){return Gl.INVALID});this._renderedLines._set(e.startLineNumber,n)}e.prototype.linesEquals=function(e){if(this.renderedLayout.startLineNumber!==e.startLineNumber)return!1;if(this.renderedLayout.endLineNumber!==e.endLineNumber)return!1;var t;var n=this._renderedLines._get().lines;for(var r=0,i=n.length;r<i;r++)if(-1===n[r].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)};return e}();var Kl=function(){function e(t,n,r,i){this._backgroundFillData=e._createBackgroundFillData(n,r,i);this._buffers=[t.createImageData(n,r),t.createImageData(n,r)];this._lastUsedBuffer=0}e.prototype.getBuffer=function(){this._lastUsedBuffer=1-this._lastUsedBuffer;var e=this._buffers[this._lastUsedBuffer];e.data.set(this._backgroundFillData);return e};e._createBackgroundFillData=function(e,t,n){var r=n.r;var i=n.g;var o=n.b;var a=new Uint8ClampedArray(e*t*4);var s=0;for(var u=0;u<t;u++)for(var l=0;l<e;l++){a[s]=r;a[s+1]=i;a[s+2]=o;a[s+3]=255;s+=4}return a};return e}();var Ql=function(e){zl(t,e);function t(t){var n=e.call(this,t)||this;n._options=new Ul(n._context.configuration);n._lastRenderData=null;n._buffers=null;n._domNode=Qi(document.createElement("div"));go.write(n._domNode,8);n._domNode.setClassName(n._getMinimapDomNodeClassName());n._domNode.setPosition("absolute");n._domNode.setAttribute("role","presentation");n._domNode.setAttribute("aria-hidden","true");n._shadow=Qi(document.createElement("div"));n._shadow.setClassName("minimap-shadow-hidden");n._domNode.appendChild(n._shadow);n._canvas=Qi(document.createElement("canvas"));n._canvas.setPosition("absolute");n._canvas.setLeft(0);n._domNode.appendChild(n._canvas);n._slider=Qi(document.createElement("div"));n._slider.setPosition("absolute");n._slider.setClassName("minimap-slider");n._slider.setLayerHinting(!0);n._domNode.appendChild(n._slider);n._sliderHorizontal=Qi(document.createElement("div"));n._sliderHorizontal.setPosition("absolute");n._sliderHorizontal.setClassName("minimap-slider-horizontal");n._slider.appendChild(n._sliderHorizontal);n._tokensColorTracker=Tl.getInstance();n._applyLayout();n._mouseDownListener=K["j"](n._canvas.domNode,"mousedown",function(e){e.preventDefault();var t=n._options.renderMinimap;if(0===t)return;if(!n._lastRenderData)return;var r=Vl(t);var i=n._options.pixelRatio*e.browserEvent.offsetY;var o;var a=Math.floor(i/r)+n._lastRenderData.renderedLayout.startLineNumber;a=Math.min(a,n._context.model.getLineCount());n._context.privateViewEventBus.emit(new ns(new p["a"](a,1,a,1),1,!1,0))});n._sliderMouseMoveMonitor=new to;n._sliderMouseDownListener=K["j"](n._slider.domNode,"mousedown",function(e){e.preventDefault();if(e.leftButton&&n._lastRenderData){var t=e.posy;var r=e.posx;var o=n._lastRenderData.renderedLayout;n._slider.toggleClassName("active",!0);n._sliderMouseMoveMonitor.startMonitoring(eo,function(e){var a=Math.abs(e.posx-r);if(i["g"]&&a>Hl){n._context.viewLayout.setScrollPositionNow({scrollTop:o.scrollTop});return}var s=e.posy-t;n._context.viewLayout.setScrollPositionNow({scrollTop:o.getDesiredScrollTopFromDelta(s)})},function(){n._slider.toggleClassName("active",!1)})}});return n}t.prototype.dispose=function(){this._mouseDownListener.dispose();this._sliderMouseMoveMonitor.dispose();this._sliderMouseDownListener.dispose();e.prototype.dispose.call(this)};t.prototype._getMinimapDomNodeClassName=function(){if("always"===this._options.showSlider)return"minimap slider-always";return"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(){this._buffers||(this._buffers=new Kl(this._canvas.domNode.getContext("2d"),this._options.canvasInnerWidth,this._options.canvasInnerHeight,this._tokensColorTracker.getColor(2)));return this._buffers.getBuffer()};t.prototype._onOptionsMaybeChanged=function(){var e=new Ul(this._context.configuration);if(this._options.equals(e))return!1;this._options=e;this._lastRenderData=null;this._buffers=null;this._applyLayout();this._domNode.setClassName(this._getMinimapDomNodeClassName());return!0};t.prototype.onConfigurationChanged=function(e){return this._onOptionsMaybeChanged()};t.prototype.onFlushed=function(e){this._lastRenderData=null;return!0};t.prototype.onLinesChanged=function(e){if(this._lastRenderData)return this._lastRenderData.onLinesChanged(e);return!1};t.prototype.onLinesDeleted=function(e){this._lastRenderData&&this._lastRenderData.onLinesDeleted(e);return!0};t.prototype.onLinesInserted=function(e){this._lastRenderData&&this._lastRenderData.onLinesInserted(e);return!0};t.prototype.onScrollChanged=function(e){return!0};t.prototype.onTokensChanged=function(e){if(this._lastRenderData)return this._lastRenderData.onTokensChanged(e);return!1};t.prototype.onTokensColorsChanged=function(e){this._lastRenderData=null;this._buffers=null;return!0};t.prototype.onZonesChanged=function(e){this._lastRenderData=null;return!0};t.prototype.prepareRender=function(e){};t.prototype.render=function(e){var t;if(0===this._options.renderMinimap){this._shadow.setClassName("minimap-shadow-hidden");this._sliderHorizontal.setWidth(0);this._sliderHorizontal.setHeight(0);return}e.scrollLeft+e.viewportWidth>=e.scrollWidth?this._shadow.setClassName("minimap-shadow-hidden"):this._shadow.setClassName("minimap-shadow-visible");var n=Zl.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(n.sliderTop);this._slider.setHeight(n.sliderHeight);var r=e.scrollLeft/this._options.typicalHalfwidthCharacterWidth;var i=Math.min(this._options.minimapWidth,Math.round(r*Bl(this._options.renderMinimap)/this._options.pixelRatio));this._sliderHorizontal.setLeft(i);this._sliderHorizontal.setWidth(this._options.minimapWidth-i);this._sliderHorizontal.setTop(0);this._sliderHorizontal.setHeight(n.sliderHeight);this._lastRenderData=this.renderLines(n)};t.prototype.renderLines=function(e){var n=this._options.renderMinimap;var r=e.startLineNumber;var i=e.endLineNumber;var o=Vl(n);if(this._lastRenderData&&this._lastRenderData.linesEquals(e)){var a=this._lastRenderData._get();return new Yl(e,a.imageData,a.lines)}var s=this._getBuffer();var u=t._renderUntouchedLines(s,r,i,o,this._lastRenderData),l=u[0],c=u[1],d=u[2];var h=this._context.model.getMinimapLinesRenderingData(r,i,d);var f=h.tabSize;var p=this._tokensColorTracker.getColor(2);var g=this._tokensColorTracker.backgroundIsLight();var v=0;var m=[];for(var _=0,y=i-r+1;_<y;_++){d[_]&&t._renderLine(s,p,g,n,this._tokensColorTracker,jl(),v,f,h.data[_]);m[_]=new Gl(v);v+=o}var b=-1===l?0:l;var C;var w=(-1===c?s.height:c)-b;var S;this._canvas.domNode.getContext("2d").putImageData(s,0,0,0,b,s.width,w);return new Yl(e,s,m)};t._renderUntouchedLines=function(e,t,n,r,i){var o=[];if(!i){for(var a=0,s=n-t+1;a<s;a++)o[a]=!0;return[-1,-1,o]}var u=i._get();var l=u.imageData.data;var c=u.rendLineNumberStart;var d=u.lines;var h=d.length;var f=e.width;var p=e.data;var g=(n-t+1)*r*f*4;var v=-1;var m=-1;var _=-1;var y=-1;var b=-1;var C=-1;var w=0;for(var S=t;S<=n;S++){var L=S-t;var I=S-c;var x=I>=0&&I<h?d[I].dy:-1;if(-1===x){o[L]=!0;w+=r;continue}var N=x*f*4;var M=(x+r)*f*4;var D=w*f*4;var k=(w+r)*f*4;if(y===N&&C===D){y=M;C=k}else{if(-1!==_){p.set(l.subarray(_,y),b);-1===v&&0===_&&_===b&&(v=y);-1===m&&y===g&&_===b&&(m=_)}_=N;y=M;b=D;C=k}o[L]=!1;w+=r}if(-1!==_){p.set(l.subarray(_,y),b);-1===v&&0===_&&_===b&&(v=y);-1===m&&y===g&&_===b&&(m=_)}var O;var E;return[-1===v?-1:v/(4*f),-1===m?-1:m/(4*f),o]};t._renderLine=function(e,t,n,r,i,o,a,s,u){var l=u.content;var c=u.tokens;var d=Bl(r);var h=e.width-d;var f=0;var p=0;var g=0;for(var v=0,m=c.getCount();v<m;v++){var _=c.getEndOffset(v);var y=c.getForeground(v);var b=i.getColor(y);for(;p<_;p++){if(f>h)return;var C=l.charCodeAt(p);if(9===C){var w=s-(p+g)%s;g+=w-1;f+=w*d}else if(32===C)f+=d;else{var S=$["r"](C)?2:1;for(var L=0;L<S;L++){2===r?o.x2RenderChar(e,f,a,C,b,t,n):1===r?o.x1RenderChar(e,f,a,C,b,t,n):4===r?o.x2BlockRenderChar(e,f,a,b,t,n):o.x1BlockRenderChar(e,f,a,b,t,n);if((f+=d)>h)return}}}}};return t}(po);Object(So["e"])(function(e,t){var n=e.getColor(la["ob"]);if(n){var r=n.transparent(.5);t.addRule(".monaco-editor .minimap-slider, .monaco-editor .minimap-slider .minimap-slider-horizontal { background: "+r+"; }")}var i=e.getColor(la["pb"]);if(i){var o=i.transparent(.5);t.addRule(".monaco-editor .minimap-slider:hover, .monaco-editor .minimap-slider:hover .minimap-slider-horizontal { background: "+o+"; }")}var a=e.getColor(la["nb"]);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 u=e.getColor(la["mb"]);u&&t.addRule(".monaco-editor .minimap-shadow-visible { box-shadow: "+u+" -6px 0 6px -6px inset; }")});var ql=n("7e8Q");var Jl=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Xl=function(e){Jl(t,e);function t(t){var n=e.call(this,t)||this;n._widgets={};n._verticalScrollbarWidth=n._context.configuration.editor.layoutInfo.verticalScrollbarWidth;n._minimapWidth=n._context.configuration.editor.layoutInfo.minimapWidth;n._horizontalScrollbarHeight=n._context.configuration.editor.layoutInfo.horizontalScrollbarHeight;n._editorHeight=n._context.configuration.editor.layoutInfo.height;n._editorWidth=n._context.configuration.editor.layoutInfo.width;n._domNode=Qi(document.createElement("div"));go.write(n._domNode,4);n._domNode.setClassName("overlayWidgets");return n}t.prototype.dispose=function(){e.prototype.dispose.call(this);this._widgets={}};t.prototype.getDomNode=function(){return this._domNode};t.prototype.onConfigurationChanged=function(e){if(e.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;return!0}return!1};t.prototype.addWidget=function(e){var t=Qi(e.getDomNode());this._widgets[e.getId()]={widget:e,preference:null,domNode:t};t.setPosition("absolute");t.setAttribute("widgetId",e.getId());this._domNode.appendChild(t);this.setShouldRender()};t.prototype.setWidgetPosition=function(e,t){var n=this._widgets[e.getId()];if(n.preference===t)return!1;n.preference=t;this.setShouldRender();return!0};t.prototype.removeWidget=function(e){var t=e.getId();if(this._widgets.hasOwnProperty(t)){var n;var r=this._widgets[t].domNode.domNode;delete this._widgets[t];r.parentNode.removeChild(r);this.setShouldRender()}};t.prototype._renderWidget=function(e){var t=e.domNode;if(null===e.preference){t.unsetTop();return}if(0===e.preference){t.setTop(0);t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else if(1===e.preference){var n=t.domNode.clientHeight;t.setTop(this._editorHeight-n-2*this._horizontalScrollbarHeight);t.setRight(2*this._verticalScrollbarWidth+this._minimapWidth)}else if(2===e.preference){t.setTop(0);t.domNode.style.right="50%"}};t.prototype.prepareRender=function(e){};t.prototype.render=function(e){this._domNode.setWidth(this._editorWidth);var t=Object.keys(this._widgets);for(var n=0,r=t.length;n<r;n++){var i=t[n];this._renderWidget(this._widgets[i])}};return t}(po);var $l=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var ec=function(){function e(e,t){this.lineHeight=e.editor.lineHeight;this.pixelRatio=e.editor.pixelRatio;this.overviewRulerLanes=e.editor.viewInfo.overviewRulerLanes;this.renderBorder=e.editor.viewInfo.overviewRulerBorder;var n=t.getColor(xa);this.borderColor=n?n.toString():null;this.hideCursor=e.editor.viewInfo.hideCursorInOverviewRuler;var r=t.getColor(pa);this.cursorColor=r?r.transparent(.7).toString():null;this.themeType=t.type;var i=e.editor.viewInfo.minimap.enabled;var o=e.editor.viewInfo.minimap.side;var a=i?Ve["u"].getDefaultBackground():null;this.backgroundColor=null===a||"left"===o?null:ua["a"].Format.CSS.formatHex(a);var s=e.editor.layoutInfo.overviewRuler;this.top=s.top;this.right=s.right;this.domWidth=s.width;this.domHeight=s.height;this.canvasWidth=this.domWidth*this.pixelRatio|0;this.canvasHeight=this.domHeight*this.pixelRatio|0;var u=this._initLanes(1,this.canvasWidth,this.overviewRulerLanes),l=u[0],c=u[1];this.x=l;this.w=c}e.prototype._initLanes=function(e,t,n){var r=t-e;if(n>=3){var i;var o;var a=r-(i=Math.floor(r/3))-(o=Math.floor(r/3));var s;var u=(s=e)+i;var l;return[[0,s,u,s,l=s+i+a,s,u,s],[0,i,a,i+a,o,i+a+o,a+o,i+a+o]]}if(2===n){var i;var o;var s;var l;return[[0,s=e,s,s,l=s+(i=Math.floor(r/2)),s,s,s],[0,i,i,i,o=r-i,i+o,i+o,i+o]]}var c=e;var d=r;return[[0,e,e,e,e,e,e,e],[0,r,r,r,r,r,r,r]]};e.prototype.equals=function(e){return this.lineHeight===e.lineHeight&&this.pixelRatio===e.pixelRatio&&this.overviewRulerLanes===e.overviewRulerLanes&&this.renderBorder===e.renderBorder&&this.borderColor===e.borderColor&&this.hideCursor===e.hideCursor&&this.cursorColor===e.cursorColor&&this.themeType===e.themeType&&this.backgroundColor===e.backgroundColor&&this.top===e.top&&this.right===e.right&&this.domWidth===e.domWidth&&this.domHeight===e.domHeight&&this.canvasWidth===e.canvasWidth&&this.canvasHeight===e.canvasHeight};return e}();var tc=function(e){$l(t,e);function t(t){var n=e.call(this,t)||this;n._domNode=Qi(document.createElement("canvas"));n._domNode.setClassName("decorationsOverviewRuler");n._domNode.setPosition("absolute");n._domNode.setLayerHinting(!0);n._domNode.setAttribute("aria-hidden","true");n._updateSettings(!1);n._tokensColorTrackerListener=Ve["u"].onDidChange(function(e){e.changedColorMap&&n._updateSettings(!0)});n._cursorPositions=[];return n}t.prototype.dispose=function(){e.prototype.dispose.call(this);this._tokensColorTrackerListener.dispose()};t.prototype._updateSettings=function(e){var t=new ec(this._context.configuration,this._context.theme);if(this._settings&&this._settings.equals(t))return!1;this._settings=t;this._domNode.setTop(this._settings.top);this._domNode.setRight(this._settings.right);this._domNode.setWidth(this._settings.domWidth);this._domNode.setHeight(this._settings.domHeight);this._domNode.domNode.width=this._settings.canvasWidth;this._domNode.domNode.height=this._settings.canvasHeight;e&&this._render();return!0};t.prototype.onConfigurationChanged=function(e){return this._updateSettings(!1)};t.prototype.onCursorStateChanged=function(e){this._cursorPositions=[];for(var t=0,n=e.selections.length;t<n;t++)this._cursorPositions[t]=e.selections[t].getPosition();this._cursorPositions.sort(f["a"].compare);return!0};t.prototype.onDecorationsChanged=function(e){return!0};t.prototype.onFlushed=function(e){return!0};t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged};t.prototype.onZonesChanged=function(e){return!0};t.prototype.onThemeChanged=function(e){this._context.model.invalidateOverviewRulerColorCache();return this._updateSettings(!1)};t.prototype.getDomNode=function(){return this._domNode.domNode};t.prototype.prepareRender=function(e){};t.prototype.render=function(e){this._render()};t.prototype._render=function(){var e=this._settings.canvasWidth;var t=this._settings.canvasHeight;var n=this._settings.lineHeight;var r=this._context.viewLayout;var i;var o=t/this._context.viewLayout.getScrollHeight();var a=this._context.model.getAllOverviewRulerDecorations(this._context.theme);var s=6*this._settings.pixelRatio|0;var u=s/2|0;var l=this._domNode.domNode.getContext("2d");if(null===this._settings.backgroundColor)l.clearRect(0,0,e,t);else{l.fillStyle=this._settings.backgroundColor;l.fillRect(0,0,e,t)}var c=this._settings.x;var d=this._settings.w;var h=Object.keys(a);h.sort();for(var f=0,p=h.length;f<p;f++){var g=h[f];var v=a[g];l.fillStyle=g;var m=0;var _=0;var y=0;for(var b=0,C=v.length;b<C;b++){var w=v[3*b];var S=v[3*b+1];var L=v[3*b+2];var I=r.getVerticalOffsetForLineNumber(S)*o|0;var x;var N;if((x=(r.getVerticalOffsetForLineNumber(L)+n)*o|0)-I<s){var M;(M=(I+x)/2|0)<u?M=u:M+u>t&&(M=t-u);I=M-u;x=M+u}if(I>y+1||w!==m){0!==b&&l.fillRect(c[m],_,d[m],y-_);m=w;_=I;y=x}else x>y&&(y=x)}l.fillRect(c[m],_,d[m],y-_)}if(!this._settings.hideCursor&&this._settings.cursorColor){var D=2*this._settings.pixelRatio|0;var k=D/2|0;var O=this._settings.x[7];var E=this._settings.w[7];l.fillStyle=this._settings.cursorColor;var _=-100;var y=-100;for(var b=0,C=this._cursorPositions.length;b<C;b++){var T=this._cursorPositions[b];var M;(M=r.getVerticalOffsetForLineNumber(T.lineNumber)*o|0)<k?M=k:M+k>t&&(M=t-k);var I;var x=(I=M-k)+D;if(I>y+1){0!==b&&l.fillRect(O,_,E,y-_);_=I;y=x}else x>y&&(y=x)}l.fillRect(O,_,E,y-_)}if(this._settings.renderBorder&&this._settings.borderColor&&this._settings.overviewRulerLanes>0){l.beginPath();l.lineWidth=1;l.strokeStyle=this._settings.borderColor;l.moveTo(0,0);l.lineTo(0,t);l.stroke();l.moveTo(0,0);l.lineTo(e,0);l.stroke()}};return t}(po);var nc=function(){function e(e,t,n){this.from=0|e;this.to=0|t;this.colorId=0|n}e.compare=function(e,t){if(e.colorId===t.colorId){if(e.from===t.from)return e.to-t.to;return e.from-t.from}return e.colorId-t.colorId};return e}();var rc=function(){function e(e,t,n){this.startLineNumber=e;this.endLineNumber=t;this.color=n;this._colorZone=null}e.compare=function(e,t){if(e.color===t.color){if(e.startLineNumber===t.startLineNumber)return e.endLineNumber-t.endLineNumber;return e.startLineNumber-t.startLineNumber}return e.color<t.color?-1:1};e.prototype.setColorZone=function(e){this._colorZone=e};e.prototype.getColorZones=function(){return this._colorZone};return e}();var ic=function(){function e(e){this._getVerticalOffsetForLine=e;this._zones=[];this._colorZonesInvalid=!1;this._lineHeight=0;this._domWidth=0;this._domHeight=0;this._outerHeight=0;this._pixelRatio=1;this._lastAssignedId=0;this._color2Id=Object.create(null);this._id2Color=[]}e.prototype.getId2Color=function(){return this._id2Color};e.prototype.setZones=function(e){this._zones=e;this._zones.sort(rc.compare)};e.prototype.setLineHeight=function(e){if(this._lineHeight===e)return!1;this._lineHeight=e;this._colorZonesInvalid=!0;return!0};e.prototype.setPixelRatio=function(e){this._pixelRatio=e;this._colorZonesInvalid=!0};e.prototype.getDOMWidth=function(){return this._domWidth};e.prototype.getCanvasWidth=function(){return this._domWidth*this._pixelRatio};e.prototype.setDOMWidth=function(e){if(this._domWidth===e)return!1;this._domWidth=e;this._colorZonesInvalid=!0;return!0};e.prototype.getDOMHeight=function(){return this._domHeight};e.prototype.getCanvasHeight=function(){return this._domHeight*this._pixelRatio};e.prototype.setDOMHeight=function(e){if(this._domHeight===e)return!1;this._domHeight=e;this._colorZonesInvalid=!0;return!0};e.prototype.getOuterHeight=function(){return this._outerHeight};e.prototype.setOuterHeight=function(e){if(this._outerHeight===e)return!1;this._outerHeight=e;this._colorZonesInvalid=!0;return!0};e.prototype.resolveColorZones=function(){var e=this._colorZonesInvalid;var t=Math.floor(this._lineHeight);var n=Math.floor(this.getCanvasHeight());var r;var i=n/Math.floor(this._outerHeight);var o=Math.floor(4*this._pixelRatio/2);var a=[];for(var s=0,u=this._zones.length;s<u;s++){var l=this._zones[s];if(!e){var c=l.getColorZones();if(c){a.push(c);continue}}var d=Math.floor(i*this._getVerticalOffsetForLine(l.startLineNumber));var h=Math.floor(i*(this._getVerticalOffsetForLine(l.endLineNumber)+t));var f=Math.floor((d+h)/2);var p=h-f;p<o&&(p=o);f-p<0&&(f=p);f+p>n&&(f=n-p);var g=l.color;var v=this._color2Id[g];if(!v){v=++this._lastAssignedId;this._color2Id[g]=v;this._id2Color[v]=g}var m=new nc(f-p,f+p,v);l.setColorZone(m);a.push(m)}this._colorZonesInvalid=!1;a.sort(nc.compare);return a};return e}();var oc=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var ac=function(e){oc(t,e);function t(t,n){var r=e.call(this)||this;r._context=t;r._domNode=Qi(document.createElement("canvas"));r._domNode.setClassName(n);r._domNode.setPosition("absolute");r._domNode.setLayerHinting(!0);r._zoneManager=new ic(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);return r}t.prototype.dispose=function(){this._context.removeEventHandler(this);e.prototype.dispose.call(this)};t.prototype.onConfigurationChanged=function(e){if(e.lineHeight){this._zoneManager.setLineHeight(this._context.configuration.editor.lineHeight);this._render()}if(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()}return!0};t.prototype.onFlushed=function(e){this._render();return!0};t.prototype.onScrollChanged=function(e){if(e.scrollHeightChanged){this._zoneManager.setOuterHeight(e.scrollHeight);this._render()}return!0};t.prototype.onZonesChanged=function(e){this._render();return!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;if(t=this._zoneManager.setDOMHeight(e.height)||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();var t=this._zoneManager.getCanvasHeight();var n=this._zoneManager.resolveColorZones();var r=this._zoneManager.getId2Color();var i=this._domNode.domNode.getContext("2d");i.clearRect(0,0,e,t);n.length>0&&this._renderOneLane(i,n,r,e);return!0};t.prototype._renderOneLane=function(e,t,n,r){var i=0;var o=0;var a=0;for(var s=0,u=t.length;s<u;s++){var l=t[s];var c=l.colorId;var d=l.from;var h=l.to;if(c!==i){e.fillRect(0,o,r,a-o);i=c;e.fillStyle=n[i];o=d;a=h}else if(a>=d)a=Math.max(a,h);else{e.fillRect(0,o,r,a-o);o=d;a=h}}e.fillRect(0,o,r,a-o)};return t}(ho);var sc=n("5F13");var uc=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var lc=function(e){uc(t,e);function t(t){var n=e.call(this,t)||this;n.domNode=Qi(document.createElement("div"));n.domNode.setAttribute("role","presentation");n.domNode.setAttribute("aria-hidden","true");n.domNode.setClassName("view-rulers");n._renderedRulers=[];n._rulers=n._context.configuration.editor.viewInfo.rulers;n._typicalHalfwidthCharacterWidth=n._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth;return n}t.prototype.dispose=function(){e.prototype.dispose.call(this)};t.prototype.onConfigurationChanged=function(e){if(e.viewInfo||e.layoutInfo||e.fontInfo){this._rulers=this._context.configuration.editor.viewInfo.rulers;this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth;return!0}return!1};t.prototype.onScrollChanged=function(e){return e.scrollHeightChanged};t.prototype.prepareRender=function(e){};t.prototype._ensureRulersCount=function(){var e=this._renderedRulers.length;var t=this._rulers.length;if(e===t)return;if(e<t){var n=this._context.model.getTabSize();var r=t-e;for(;r>0;){var i;(i=Qi(document.createElement("div"))).setClassName("view-ruler");i.setWidth(n);this.domNode.appendChild(i);this._renderedRulers.push(i);r--}return}var o=e-t;for(;o>0;){var i=this._renderedRulers.pop();this.domNode.removeChild(i);o--}};t.prototype.render=function(e){this._ensureRulersCount();for(var t=0,n=this._rulers.length;t<n;t++){var r=this._renderedRulers[t];r.setHeight(Math.min(e.scrollHeight,1e6));r.setLeft(this._rulers[t]*this._typicalHalfwidthCharacterWidth)}};return t}(po);Object(So["e"])(function(e,t){var n=e.getColor(wa);n&&t.addRule(".monaco-editor .view-ruler { box-shadow: 1px 0 0 0 "+n+" inset; }")});var cc=n("JpS/");var dc=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var hc=function(e){dc(t,e);function t(t){var n=e.call(this,t)||this;n._scrollTop=0;n._width=0;n._updateWidth();n._shouldShow=!1;n._useShadows=n._context.configuration.editor.viewInfo.scrollbar.useShadows;n._domNode=Qi(document.createElement("div"));n._domNode.setAttribute("role","presentation");n._domNode.setAttribute("aria-hidden","true");return n}t.prototype.dispose=function(){e.prototype.dispose.call(this)};t.prototype._updateShouldShow=function(){var e=this._useShadows&&this._scrollTop>0;if(this._shouldShow!==e){this._shouldShow=e;return!0}return!1};t.prototype.getDomNode=function(){return this._domNode};t.prototype._updateWidth=function(){var e=this._context.configuration.editor.layoutInfo;var t=0;t=0===e.renderMinimap||e.minimapWidth>0&&0===e.minimapLeft?e.width:e.width-e.minimapWidth-e.verticalScrollbarWidth;if(this._width!==t){this._width=t;return!0}return!1};t.prototype.onConfigurationChanged=function(e){var t=!1;e.viewInfo&&(this._useShadows=this._context.configuration.editor.viewInfo.scrollbar.useShadows);e.layoutInfo&&(t=this._updateWidth());return this._updateShouldShow()||t};t.prototype.onScrollChanged=function(e){this._scrollTop=e.scrollTop;return this._updateShouldShow()};t.prototype.prepareRender=function(e){};t.prototype.render=function(e){this._domNode.setWidth(this._width);this._domNode.setClassName(this._shouldShow?"scroll-decoration":"")};return t}(po);Object(So["e"])(function(e,t){var n=e.getColor(la["mb"]);n&&t.addRule(".monaco-editor .scroll-decoration { box-shadow: "+n+" 0 6px 6px -6px inset; }")});var fc=n("McmM");var pc=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var gc=function(){function e(e){this.left=e.left;this.width=e.width;this.startStyle=null;this.endStyle=null}return e}();var vc=function(){function e(e,t){this.lineNumber=e;this.ranges=t}return e}();function mc(e){return new gc(e)}function _c(e){return new vc(e.lineNumber,e.ranges.map(mc))}var yc=Ai["h"];var bc=function(e){pc(t,e);function t(t){var n=e.call(this)||this;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);return n}t.prototype.dispose=function(){this._context.removeEventHandler(this);this._renderResult=null;e.prototype.dispose.call(this)};t.prototype.onConfigurationChanged=function(e){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);return!0};t.prototype.onCursorStateChanged=function(e){this._selections=e.selections.slice(0);return!0};t.prototype.onDecorationsChanged=function(e){return!0};t.prototype.onFlushed=function(e){return!0};t.prototype.onLinesChanged=function(e){return!0};t.prototype.onLinesDeleted=function(e){return!0};t.prototype.onLinesInserted=function(e){return!0};t.prototype.onScrollChanged=function(e){return e.scrollTopChanged};t.prototype.onZonesChanged=function(e){return!0};t.prototype._visibleRangesHaveGaps=function(e){for(var t=0,n=e.length;t<n;t++){var r;if(e[t].ranges.length>1)return!0}return!1};t.prototype._enrichVisibleRangesWithStyle=function(e,t,n){var r=this._typicalHalfwidthCharacterWidth/4;var i=null;var o=null;if(n&&n.length>0&&t.length>0){var a=t[0].lineNumber;if(a===e.startLineNumber)for(var s=0;!i&&s<n.length;s++)n[s].lineNumber===a&&(i=n[s].ranges[0]);var u=t[t.length-1].lineNumber;if(u===e.endLineNumber)for(var s=n.length-1;!o&&s>=0;s--)n[s].lineNumber===u&&(o=n[s].ranges[0]);i&&!i.startStyle&&(i=null);o&&!o.startStyle&&(o=null)}for(var s=0,l=t.length;s<l;s++){var c=t[s].ranges[0];var d=c.left;var h=c.left+c.width;var f={top:0,bottom:0};var p={top:0,bottom:0};if(s>0){var g=t[s-1].ranges[0].left;var v=t[s-1].ranges[0].left+t[s-1].ranges[0].width;Cc(d-g)<r?f.top=2:d>g&&(f.top=1);Cc(h-v)<r?p.top=2:g<h&&h<v&&(p.top=1)}else if(i){f.top=i.startStyle.top;p.top=i.endStyle.top}if(s+1<l){var m=t[s+1].ranges[0].left;var _=t[s+1].ranges[0].left+t[s+1].ranges[0].width;Cc(d-m)<r?f.bottom=2:m<d&&d<_&&(f.bottom=1);Cc(h-_)<r?p.bottom=2:h<_&&(p.bottom=1)}else if(o){f.bottom=o.startStyle.bottom;p.bottom=o.endStyle.bottom}c.startStyle=f;c.endStyle=p}};t.prototype._getVisibleRangesWithStyle=function(e,t,n){var r;var i=(t.linesVisibleRangesForRange(e,!0)||[]).map(_c);var o=this._visibleRangesHaveGaps(i);yc||o||!this._roundedSelection||this._enrichVisibleRangesWithStyle(t.visibleRange,i,n);return i};t.prototype._createSelectionPiece=function(e,t,n,r,i){return'<div class="cslr '+n+'" style="top:'+e.toString()+"px;left:"+r.toString()+"px;width:"+i.toString()+"px;height:"+t+'px;"></div>'};t.prototype._actualRenderOneSelection=function(e,n,r,i){var o=i.length>0&&i[0].ranges[0].startStyle;var a=this._lineHeight.toString();var s=(this._lineHeight-1).toString();var u=i.length>0?i[0].lineNumber:0;var l=i.length>0?i[i.length-1].lineNumber:0;for(var c=0,d=i.length;c<d;c++){var h=i[c];var f=h.lineNumber;var p=f-n;var g=r&&(f===l||f===u)?s:a;var v=r&&f===u?1:0;var m="";for(var _=0,y=h.ranges.length;_<y;_++){var b=h.ranges[_];if(o){var C=b.startStyle;var w=b.endStyle;if(1===C.top||1===C.bottom){m+=this._createSelectionPiece(v,g,t.SELECTION_CLASS_NAME,b.left-t.ROUNDED_PIECE_WIDTH,t.ROUNDED_PIECE_WIDTH);var S=t.EDITOR_BACKGROUND_CLASS_NAME;1===C.top&&(S+=" "+t.SELECTION_TOP_RIGHT);1===C.bottom&&(S+=" "+t.SELECTION_BOTTOM_RIGHT);m+=this._createSelectionPiece(v,g,S,b.left-t.ROUNDED_PIECE_WIDTH,t.ROUNDED_PIECE_WIDTH)}if(1===w.top||1===w.bottom){m+=this._createSelectionPiece(v,g,t.SELECTION_CLASS_NAME,b.left+b.width,t.ROUNDED_PIECE_WIDTH);var L=t.EDITOR_BACKGROUND_CLASS_NAME;1===w.top&&(L+=" "+t.SELECTION_TOP_LEFT);1===w.bottom&&(L+=" "+t.SELECTION_BOTTOM_LEFT);m+=this._createSelectionPiece(v,g,L,b.left+b.width,t.ROUNDED_PIECE_WIDTH)}}var I=t.SELECTION_CLASS_NAME;if(o){var C=b.startStyle;var w=b.endStyle;0===C.top&&(I+=" "+t.SELECTION_TOP_LEFT);0===C.bottom&&(I+=" "+t.SELECTION_BOTTOM_LEFT);0===w.top&&(I+=" "+t.SELECTION_TOP_RIGHT);0===w.bottom&&(I+=" "+t.SELECTION_BOTTOM_RIGHT)}m+=this._createSelectionPiece(v,g,I,b.left,b.width)}e[p]+=m}};t.prototype.prepareRender=function(e){var t=[];var n=e.visibleRange.startLineNumber;var r=e.visibleRange.endLineNumber;for(var i=n;i<=r;i++){var o;t[i-n]=""}var a=[];for(var s=0,u=this._selections.length;s<u;s++){var l=this._selections[s];if(l.isEmpty()){a[s]=null;continue}var c=this._getVisibleRangesWithStyle(l,e,this._previousFrameVisibleRangesWithStyle[s]);a[s]=c;this._actualRenderOneSelection(t,n,this._selections.length>1,c)}this._previousFrameVisibleRangesWithStyle=a;this._renderResult=t};t.prototype.render=function(e,t){if(!this._renderResult)return"";var n=t-e;if(n<0||n>=this._renderResult.length)return"";return 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;return t}(sa);Object(So["e"])(function(e,t){var n=e.getColor(la["v"]);n&&t.addRule(".monaco-editor .focused .selected-text { background-color: "+n+"; }");var r=e.getColor(la["u"]);r&&t.addRule(".monaco-editor .selected-text { background-color: "+r+"; }");var i=e.getColor(la["w"]);i&&t.addRule(".monaco-editor .view-line span.inline-selected-text { color: "+i+"; }")});function Cc(e){return e<0?-e:e}var wc=n("h2PT");var Sc=function(){function e(e,t,n,r,i,o){this.top=e;this.left=t;this.width=n;this.height=r;this.textContent=i;this.textContentClassName=o}return e}();var Lc=function(){function e(e){this._context=e;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=Qi(document.createElement("div"));this._domNode.setClassName("cursor");this._domNode.setHeight(this._lineHeight);this._domNode.setTop(0);this._domNode.setLeft(0);Gi.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo);this._domNode.setDisplay("none");this.updatePosition(new f["a"](1,1));this._lastRenderedContent="";this._renderData=null}e.prototype.getDomNode=function(){return this._domNode};e.prototype.getPosition=function(){return this._position};e.prototype.show=function(){if(!this._isVisible){this._domNode.setVisibility("inherit");this._isVisible=!0}};e.prototype.hide=function(){if(this._isVisible){this._domNode.setVisibility("hidden");this._isVisible=!1}};e.prototype.onConfigurationChanged=function(e){e.lineHeight&&(this._lineHeight=this._context.configuration.editor.lineHeight);if(e.fontInfo){Gi.applyFontInfo(this._domNode,this._context.configuration.editor.fontInfo);this._typicalHalfwidthCharacterWidth=this._context.configuration.editor.fontInfo.typicalHalfwidthCharacterWidth}if(e.viewInfo){this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle;this._lineCursorWidth=Math.min(this._context.configuration.editor.viewInfo.cursorWidth,this._typicalHalfwidthCharacterWidth)}return!0};e.prototype.onCursorPositionChanged=function(e){this.updatePosition(e);return!0};e.prototype._prepareRender=function(e){var t="";var n="";if(this._cursorStyle===u["g"].Line||this._cursorStyle===u["g"].LineThin){var r=e.visibleRangeForPosition(this._position);if(!r)return null;var i;if(this._cursorStyle===u["g"].Line){if((i=K["m"](this._lineCursorWidth>0?this._lineCursorWidth:2))>2){var o;t=this._context.model.getLineContent(this._position.lineNumber).charAt(this._position.column-1)}}else i=K["m"](1);var a=r.left;i>=2&&a>=1&&(a-=1);var s=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;return new Sc(s,a,i,this._lineHeight,t,n)}var l=e.linesVisibleRangesForRange(new p["a"](this._position.lineNumber,this._position.column,this._position.lineNumber,this._position.column+1),!1);if(!l||0===l.length||0===l[0].ranges.length)return null;var c=l[0].ranges[0];var d=c.width<1?this._typicalHalfwidthCharacterWidth:c.width;if(this._cursorStyle===u["g"].Block){var h=this._context.model.getViewLineData(this._position.lineNumber);t=h.content.charAt(this._position.column-1);$["s"](h.content.charCodeAt(this._position.column-1))&&(t+=h.content.charAt(this._position.column));var f=h.tokens.findTokenIndexAtOffset(this._position.column-1);n=h.tokens.getClassName(f)}var g=e.getVerticalOffsetForLineNumber(this._position.lineNumber)-e.bigNumbersDelta;var v=this._lineHeight;if(this._cursorStyle===u["g"].Underline||this._cursorStyle===u["g"].UnderlineThin){g+=this._lineHeight-2;v=2}return new Sc(g,c.left,d,v,t,n)};e.prototype.prepareRender=function(e){this._renderData=this._prepareRender(e)};e.prototype.render=function(e){if(!this._renderData){this._domNode.setDisplay("none");return null}if(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);return{domNode:this._domNode.domNode,position:this._position,contentLeft:this._renderData.left,height:this._renderData.height,width:2}};e.prototype.updatePosition=function(e){this._position=e};return e}();var Ic=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var xc=function(e){Ic(t,e);function t(t){var n=e.call(this,t)||this;n._readOnly=n._context.configuration.editor.readOnly;n._cursorBlinking=n._context.configuration.editor.viewInfo.cursorBlinking;n._cursorStyle=n._context.configuration.editor.viewInfo.cursorStyle;n._selectionIsEmpty=!0;n._primaryCursor=new Lc(n._context);n._secondaryCursors=[];n._renderData=[];n._domNode=Qi(document.createElement("div"));n._domNode.setAttribute("role","presentation");n._domNode.setAttribute("aria-hidden","true");n._updateDomClassName();n._domNode.appendChild(n._primaryCursor.getDomNode());n._startCursorBlinkAnimation=new o["d"];n._cursorFlatBlinkInterval=new o["b"];n._blinkingEnabled=!1;n._editorHasFocus=!1;n._updateBlinking();return n}t.prototype.dispose=function(){e.prototype.dispose.call(this);this._startCursorBlinkAnimation.dispose();this._cursorFlatBlinkInterval.dispose()};t.prototype.getDomNode=function(){return this._domNode};t.prototype.onConfigurationChanged=function(e){e.readOnly&&(this._readOnly=this._context.configuration.editor.readOnly);if(e.viewInfo){this._cursorBlinking=this._context.configuration.editor.viewInfo.cursorBlinking;this._cursorStyle=this._context.configuration.editor.viewInfo.cursorStyle}this._primaryCursor.onConfigurationChanged(e);this._updateBlinking();e.viewInfo&&this._updateDomClassName();for(var t=0,n=this._secondaryCursors.length;t<n;t++)this._secondaryCursors[t].onConfigurationChanged(e);return!0};t.prototype._onCursorPositionChanged=function(e,t){this._primaryCursor.onCursorPositionChanged(e);this._updateBlinking();if(this._secondaryCursors.length<t.length){var n=t.length-this._secondaryCursors.length;for(var r=0;r<n;r++){var i=new Lc(this._context);this._domNode.domNode.insertBefore(i.getDomNode().domNode,this._primaryCursor.getDomNode().domNode.nextSibling);this._secondaryCursors.push(i)}}else if(this._secondaryCursors.length>t.length){var o=this._secondaryCursors.length-t.length;for(var r=0;r<o;r++){this._domNode.removeChild(this._secondaryCursors[0].getDomNode());this._secondaryCursors.splice(0,1)}}for(var r=0;r<t.length;r++)this._secondaryCursors[r].onCursorPositionChanged(t[r])};t.prototype.onCursorStateChanged=function(e){var t=[];for(var n=0,r=e.selections.length;n<r;n++)t[n]=e.selections[n].getPosition();this._onCursorPositionChanged(t[0],t.slice(1));var i=e.selections[0].isEmpty();if(this._selectionIsEmpty!==i){this._selectionIsEmpty=i;this._updateDomClassName()}return!0};t.prototype.onDecorationsChanged=function(e){return!0};t.prototype.onFlushed=function(e){return!0};t.prototype.onFocusChanged=function(e){this._editorHasFocus=e.isFocused;this._updateBlinking();return!1};t.prototype.onLinesChanged=function(e){return!0};t.prototype.onLinesDeleted=function(e){return!0};t.prototype.onLinesInserted=function(e){return!0};t.prototype.onScrollChanged=function(e){return!0};t.prototype.onTokensChanged=function(e){var t=function(t){for(var n=0,r=e.ranges.length;n<r;n++)if(e.ranges[n].fromLineNumber<=t.lineNumber&&t.lineNumber<=e.ranges[n].toLineNumber)return!0;return!1};if(t(this._primaryCursor.getPosition()))return!0;for(var n=0;n<this._secondaryCursors.length;n++)if(t(this._secondaryCursors[n].getPosition()))return!0;return!1};t.prototype.onZonesChanged=function(e){return!0};t.prototype._getCursorBlinking=function(){if(!this._editorHasFocus)return 0;if(this._readOnly)return 5;return this._cursorBlinking};t.prototype._updateBlinking=function(){var e=this;this._startCursorBlinkAnimation.cancel();this._cursorFlatBlinkInterval.cancel();var n=this._getCursorBlinking();var r=0===n;var i=5===n;r?this._hide():this._show();this._blinkingEnabled=!1;this._updateDomClassName();r||i||(1===n?this._cursorFlatBlinkInterval.cancelAndSet(function(){e._isVisible?e._hide():e._show()},t.BLINK_INTERVAL):this._startCursorBlinkAnimation.setIfNotSet(function(){e._blinkingEnabled=!0;e._updateDomClassName()},t.BLINK_INTERVAL))};t.prototype._updateDomClassName=function(){this._domNode.setClassName(this._getClassName())};t.prototype._getClassName=function(){var e="cursors-layer";this._selectionIsEmpty||(e+=" has-selection");switch(this._cursorStyle){case u["g"].Line:e+=" cursor-line-style";break;case u["g"].Block:e+=" cursor-block-style";break;case u["g"].Underline:e+=" cursor-underline-style";break;case u["g"].LineThin:e+=" cursor-line-thin-style";break;case u["g"].BlockOutline:e+=" cursor-block-outline-style";break;case u["g"].UnderlineThin:e+=" cursor-underline-thin-style";break;default:e+=" cursor-line-style"}if(this._blinkingEnabled)switch(this._getCursorBlinking()){case 1:e+=" cursor-blink";break;case 2:e+=" cursor-smooth";break;case 3:e+=" cursor-phase";break;case 4:e+=" cursor-expand";break;case 5:e+=" cursor-solid";break;default:e+=" cursor-solid"}else e+=" cursor-solid";return e};t.prototype._show=function(){this._primaryCursor.show();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].show();this._isVisible=!0};t.prototype._hide=function(){this._primaryCursor.hide();for(var e=0,t=this._secondaryCursors.length;e<t;e++)this._secondaryCursors[e].hide();this._isVisible=!1};t.prototype.prepareRender=function(e){this._primaryCursor.prepareRender(e);for(var t=0,n=this._secondaryCursors.length;t<n;t++)this._secondaryCursors[t].prepareRender(e)};t.prototype.render=function(e){var t=[],n=0;var r=this._primaryCursor.render(e);r&&(t[n++]=r);for(var i=0,o=this._secondaryCursors.length;i<o;i++){var a=this._secondaryCursors[i].render(e);a&&(t[n++]=a)}this._renderData=t};t.prototype.getLastRenderData=function(){return this._renderData};t.BLINK_INTERVAL=500;return t}(po);Object(So["e"])(function(e,t){var n=e.getColor(pa);if(n){var r=e.getColor(ga);r||(r=n.opposite());t.addRule(".monaco-editor .cursor { background-color: "+n+"; border-color: "+n+"; color: "+r+"; }");"hc"===e.type&&t.addRule(".monaco-editor .cursors-layer.has-selection .cursor { border-left: 1px solid "+r+"; border-right: 1px solid "+r+"; }")}});var Nc=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Mc=function(e){Nc(t,e);function t(t){var n=e.call(this,t)||this;n._lineHeight=n._context.configuration.editor.lineHeight;n._contentWidth=n._context.configuration.editor.layoutInfo.contentWidth;n._contentLeft=n._context.configuration.editor.layoutInfo.contentLeft;n.domNode=Qi(document.createElement("div"));n.domNode.setClassName("view-zones");n.domNode.setPosition("absolute");n.domNode.setAttribute("role","presentation");n.domNode.setAttribute("aria-hidden","true");n.marginDomNode=Qi(document.createElement("div"));n.marginDomNode.setClassName("margin-view-zones");n.marginDomNode.setPosition("absolute");n.marginDomNode.setAttribute("role","presentation");n.marginDomNode.setAttribute("aria-hidden","true");n._zones={};return n}t.prototype.dispose=function(){e.prototype.dispose.call(this);this._zones={}};t.prototype._recomputeWhitespacesProps=function(){var e=!1;var t=Object.keys(this._zones);for(var n=0,r=t.length;n<r;n++){var i=t[n];var o=this._zones[i];var a=this._computeWhitespaceProps(o.delegate);if(this._context.viewLayout.changeWhitespace(parseInt(i,10),a.afterViewLineNumber,a.heightInPx)){this._safeCallOnComputedHeight(o.delegate,a.heightInPx);e=!0}}return e};t.prototype.onConfigurationChanged=function(e){if(e.lineHeight){this._lineHeight=this._context.configuration.editor.lineHeight;return this._recomputeWhitespacesProps()}if(e.layoutInfo){this._contentWidth=this._context.configuration.editor.layoutInfo.contentWidth;this._contentLeft=this._context.configuration.editor.layoutInfo.contentLeft}return!0};t.prototype.onLineMappingChanged=function(e){var t=this._recomputeWhitespacesProps();t&&this._context.viewLayout.onHeightMaybeChanged();return t};t.prototype.onLinesDeleted=function(e){return!0};t.prototype.onScrollChanged=function(e){return e.scrollTopChanged||e.scrollWidthChanged};t.prototype.onZonesChanged=function(e){return!0};t.prototype.onLinesInserted=function(e){return!0};t.prototype._getZoneOrdinal=function(e){if(void 0!==e.afterColumn)return e.afterColumn;return 1e4};t.prototype._computeWhitespaceProps=function(e){if(0===e.afterLineNumber)return{afterViewLineNumber:0,heightInPx:this._heightInPixels(e),minWidthInPx:this._minWidthInPixels(e)};var t;if(void 0!==e.afterColumn)t=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:e.afterColumn});else{var n=this._context.model.validateModelPosition({lineNumber:e.afterLineNumber,column:1}).lineNumber;t=new f["a"](n,this._context.model.getModelLineMaxColumn(n))}var r;r=t.column===this._context.model.getModelLineMaxColumn(t.lineNumber)?this._context.model.validateModelPosition({lineNumber:t.lineNumber+1,column:1}):this._context.model.validateModelPosition({lineNumber:t.lineNumber,column:t.column+1});var i=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(t);var o=this._context.model.coordinatesConverter.modelPositionIsVisible(r);return{afterViewLineNumber:i.lineNumber,heightInPx:o?this._heightInPixels(e):0,minWidthInPx:this._minWidthInPixels(e)}};t.prototype.addZone=function(e){var t=this._computeWhitespaceProps(e);var n;var r={whitespaceId:this._context.viewLayout.addWhitespace(t.afterViewLineNumber,this._getZoneOrdinal(e),t.heightInPx,t.minWidthInPx),delegate:e,isVisible:!1,domNode:Qi(e.domNode),marginDomNode:e.marginDomNode?Qi(e.marginDomNode):null};this._safeCallOnComputedHeight(r.delegate,t.heightInPx);r.domNode.setPosition("absolute");r.domNode.domNode.style.width="100%";r.domNode.setDisplay("none");r.domNode.setAttribute("monaco-view-zone",r.whitespaceId.toString());this.domNode.appendChild(r.domNode);if(r.marginDomNode){r.marginDomNode.setPosition("absolute");r.marginDomNode.domNode.style.width="100%";r.marginDomNode.setDisplay("none");r.marginDomNode.setAttribute("monaco-view-zone",r.whitespaceId.toString());this.marginDomNode.appendChild(r.marginDomNode)}this._zones[r.whitespaceId.toString()]=r;this.setShouldRender();return r.whitespaceId};t.prototype.removeZone=function(e){if(this._zones.hasOwnProperty(e.toString())){var t=this._zones[e.toString()];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);if(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();return!0}return!1};t.prototype.layoutZone=function(e){var t=!1;if(this._zones.hasOwnProperty(e.toString())){var n=this._zones[e.toString()];var r=this._computeWhitespaceProps(n.delegate);if(t=this._context.viewLayout.changeWhitespace(n.whitespaceId,r.afterViewLineNumber,r.heightInPx)||t){this._safeCallOnComputedHeight(n.delegate,r.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){if("number"==typeof e.heightInPx)return e.heightInPx;if("number"==typeof e.heightInLines)return this._lineHeight*e.heightInLines;return this._lineHeight};t.prototype._minWidthInPixels=function(e){if("number"==typeof e.minWidthInPx)return e.minWidthInPx;return 0};t.prototype._safeCallOnComputedHeight=function(e,t){if("function"==typeof e.onComputedHeight)try{e.onComputedHeight(t)}catch(e){Object(Ge["d"])(e)}};t.prototype._safeCallOnDomNodeTop=function(e,t){if("function"==typeof e.onDomNodeTop)try{e.onDomNodeTop(t)}catch(e){Object(Ge["d"])(e)}};t.prototype.prepareRender=function(e){};t.prototype.render=function(e){var t=e.viewportData.whitespaceViewportData;var n={};var r=!1;for(var i=0,o=t.length;i<o;i++){n[t[i].id.toString()]=t[i];r=!0}var a=Object.keys(this._zones);for(var i=0,o=a.length;i<o;i++){var s=a[i];var u=this._zones[s];var l=0;var c=0;var d="none";if(n.hasOwnProperty(s)){l=n[s].verticalOffset-e.bigNumbersDelta;c=n[s].height;d="block";if(!u.isVisible){u.domNode.setAttribute("monaco-visible-view-zone","true");u.isVisible=!0}this._safeCallOnDomNodeTop(u.delegate,e.getScrolledTopFromAbsoluteTop(n[s].verticalOffset))}else{if(u.isVisible){u.domNode.removeAttribute("monaco-visible-view-zone");u.isVisible=!1}this._safeCallOnDomNodeTop(u.delegate,e.getScrolledTopFromAbsoluteTop(-1e6))}u.domNode.setTop(l);u.domNode.setHeight(c);u.domNode.setDisplay(d);if(u.marginDomNode){u.marginDomNode.setTop(l);u.marginDomNode.setHeight(c);u.marginDomNode.setDisplay(d)}}if(r){this.domNode.setWidth(Math.max(e.scrollWidth,this._contentWidth));this.marginDomNode.setWidth(this._contentLeft)}};return t}(po);var Dc=function(){function e(e,t,n,r){this.configuration=e;this.theme=t;this.model=n;this.viewLayout=n.viewLayout;this.privateViewEventBus=r}e.prototype.addEventHandler=function(e){this.privateViewEventBus.addEventHandler(e)};e.prototype.removeEventHandler=function(e){this.privateViewEventBus.removeEventHandler(e)};return e}();var kc=function(){function e(e){this._eventHandlerGateKeeper=e;this._eventHandlers=[];this._eventQueue=null;this._isConsumingQueue=!1}e.prototype.addEventHandler=function(e){for(var t=0,n=this._eventHandlers.length;t<n;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;t<this._eventHandlers.length;t++)if(this._eventHandlers[t]===e){this._eventHandlers.splice(t,1);break}};e.prototype.emit=function(e){this._eventQueue?this._eventQueue.push(e):this._eventQueue=[e];this._isConsumingQueue||this.consumeQueue()};e.prototype.emitMany=function(e){this._eventQueue?this._eventQueue=this._eventQueue.concat(e):this._eventQueue=e;this._isConsumingQueue||this.consumeQueue()};e.prototype.consumeQueue=function(){var e=this;this._eventHandlerGateKeeper(function(){try{e._isConsumingQueue=!0;e._doConsumeQueue()}finally{e._isConsumingQueue=!1}})};e.prototype._doConsumeQueue=function(){for(;this._eventQueue;){var e=this._eventQueue;this._eventQueue=null;var t=this._eventHandlers.slice(0);for(var n=0,r=t.length;n<r;n++)t[n].handleEvents(e)}};return e}();var Oc=function(){function e(e,t,n,r){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=r;this.visibleRange=new p["a"](t.startLineNumber,this._model.getLineMinColumn(t.startLineNumber),t.endLineNumber,this._model.getLineMaxColumn(t.endLineNumber))}e.prototype.getViewLineRenderingData=function(e){return this._model.getViewLineRenderingData(this.visibleRange,e)};e.prototype.getDecorationsInViewport=function(){return this._model.getDecorationsInViewport(this.visibleRange)};return e}();var Ec=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Tc=function(){throw new Error("Invalid change accessor")};var Ac=function(e){Ec(t,e);function t(t,n,r,i,o,a){var s=e.call(this)||this;s._cursor=o;s._renderAnimationFrame=null;s.outgoingEvents=a;var u=new au(n,i,s.outgoingEvents,t);s.eventDispatcher=new kc(function(e){return s._renderOnce(e)});s.eventDispatcher.addEventHandler(s);s._context=new Dc(n,r.getTheme(),i,s.eventDispatcher);s._register(r.onThemeChange(function(e){s._context.theme=e;s.eventDispatcher.emit(new os);s.render(!0,!1)}));s.viewParts=[];s._textAreaHandler=new vs(s._context,u,s.createTextAreaHandlerHelper());s.viewParts.push(s._textAreaHandler);s.createViewParts();s._setLayout();s.pointerHandler=new ta(s._context,u,s.createPointerHandlerHelper());s._register(i.addEventListener(function(e){s.eventDispatcher.emitMany(e)}));s._register(s._cursor.addEventListener(function(e){s.eventDispatcher.emitMany(e)}));return s}t.prototype.createViewParts=function(){this.linesContent=Qi(document.createElement("div"));this.linesContent.setClassName("lines-content monaco-editor-background");this.linesContent.setPosition("absolute");this.domNode=Qi(document.createElement("div"));this.domNode.setClassName(this.getEditorClassName());this.overflowGuardContainer=Qi(document.createElement("div"));go.write(this.overflowGuardContainer,3);this.overflowGuardContainer.setClassName("overflow-guard");this._scrollbar=new dl(this._context,this.linesContent,this.domNode,this.overflowGuardContainer);this.viewParts.push(this._scrollbar);this.viewLines=new Ll(this._context,this.linesContent);this.viewZones=new Mc(this._context);this.viewParts.push(this.viewZones);var e=new tc(this._context);this.viewParts.push(e);var t=new hc(this._context);this.viewParts.push(t);var n=new fu(this._context);this.viewParts.push(n);n.addDynamicOverlay(new Cu(this._context));n.addDynamicOverlay(new bc(this._context));n.addDynamicOverlay(new yl(this._context));n.addDynamicOverlay(new Nu(this._context));var r=new pu(this._context);this.viewParts.push(r);r.addDynamicOverlay(new Lu(this._context));r.addDynamicOverlay(new vl(this._context));r.addDynamicOverlay(new kl(this._context));r.addDynamicOverlay(new Nl(this._context));r.addDynamicOverlay(new Ba(this._context));var i=new Ua(this._context);i.getDomNode().appendChild(this.viewZones.marginDomNode);i.getDomNode().appendChild(r.getDomNode());this.viewParts.push(i);this.contentWidgets=new mu(this._context,this.domNode);this.viewParts.push(this.contentWidgets);this.viewCursors=new xc(this._context);this.viewParts.push(this.viewCursors);this.overlayWidgets=new Xl(this._context);this.viewParts.push(this.overlayWidgets);var o=new lc(this._context);this.viewParts.push(o);var a=new Ql(this._context);this.viewParts.push(a);if(e){var s=this._scrollbar.getOverviewRulerLayoutInfo();s.parent.insertBefore(e.getDomNode(),s.insertBefore)}this.linesContent.appendChild(n.getDomNode());this.linesContent.appendChild(o.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(i.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(a.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,n){e._flushAccumulatedAndRenderNow();return e.viewLines.getPositionFromDOMInfo(t,n)},visibleRangeForPosition2:function(t,n){e._flushAccumulatedAndRenderNow();return e.viewLines.visibleRangeForPosition(new f["a"](t,n))},getLineWidth:function(t){e._flushAccumulatedAndRenderNow();return e.viewLines.getLineWidth(t)}}};t.prototype.createTextAreaHandlerHelper=function(){var e=this;return{visibleRangeForPositionRelativeToEditor:function(t,n){e._flushAccumulatedAndRenderNow();return e.viewLines.visibleRangeForPosition(new f["a"](t,n))}}};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+" "+Object(So["d"])(this._context.theme.type)+e};t.prototype.onConfigurationChanged=function(e){e.editorClassName&&this.domNode.setClassName(this.getEditorClassName());e.layoutInfo&&this._setLayout();return!1};t.prototype.onFocusChanged=function(e){this.domNode.setClassName(this.getEditorClassName());this._context.model.setHasFocus(e.isFocused);e.isFocused?this.outgoingEvents.emitViewFocusGained():this.outgoingEvents.emitViewFocusLost();return!1};t.prototype.onScrollChanged=function(e){this.outgoingEvents.emitScrollChanged(e);return!1};t.prototype.onThemeChanged=function(e){this.domNode.setClassName(this.getEditorClassName());return!1};t.prototype.dispose=function(){if(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,n=this.viewParts.length;t<n;t++)this.viewParts[t].dispose();this.viewParts=[];e.prototype.dispose.call(this)};t.prototype._renderOnce=function(e){var t=Rc(e);this._scheduleRender();return t};t.prototype._scheduleRender=function(){null===this._renderAnimationFrame&&(this._renderAnimationFrame=K["J"](this._onRenderScheduled.bind(this),100))};t.prototype._onRenderScheduled=function(){this._renderAnimationFrame=null;this._flushAccumulatedAndRenderNow()};t.prototype._renderNow=function(){var e=this;Rc(function(){return e._actualRender()})};t.prototype._getViewPartsToRender=function(){var e=[],t=0;for(var n=0,r=this.viewParts.length;n<r;n++){var i=this.viewParts[n];i.shouldRender()&&(e[t++]=i)}return e};t.prototype._actualRender=function(){if(!K["C"](this.domNode.domNode))return;var e=this._getViewPartsToRender();if(!this.viewLines.shouldRender()&&0===e.length)return;var t=this._context.viewLayout.getLinesViewportData();this._context.model.setViewport(t.startLineNumber,t.endLineNumber,t.centeredLineNumber);var n=new Oc(this._cursor.getViewSelections(),t,this._context.viewLayout.getWhitespaceViewportData(),this._context.model);this.contentWidgets.shouldRender()&&this.contentWidgets.onBeforeRender(n);if(this.viewLines.shouldRender()){this.viewLines.renderText(n);this.viewLines.onDidRender();e=this._getViewPartsToRender()}var r=new _o(this._context.viewLayout,n,this.viewLines);for(var i=0,o=e.length;i<o;i++){var a;(a=e[i]).prepareRender(r)}for(var i=0,o=e.length;i<o;i++){var a;(a=e[i]).render(r);a.onDidRender()}};t.prototype.delegateVerticalScrollbarMouseDown=function(e){this._scrollbar.delegateVerticalScrollbarMouseDown(e)};t.prototype.restoreState=function(e){this._context.viewLayout.setScrollPositionNow({scrollTop:e.scrollTop});this._renderNow();this.viewLines.updateLineWidths();this._context.viewLayout.setScrollPositionNow({scrollLeft:e.scrollLeft})};t.prototype.getOffsetForColumn=function(e,t){var n=this._context.model.validateModelPosition({lineNumber:e,column:t});var r=this._context.model.coordinatesConverter.convertModelPositionToViewPosition(n);this._flushAccumulatedAndRenderNow();var i=this.viewLines.visibleRangeForPosition(new f["a"](r.lineNumber,r.column));if(!i)return-1;return i.left};t.prototype.getTargetAtClientPoint=function(e,t){return this.pointerHandler.getTargetAtClientPoint(e,t)};t.prototype.createOverviewRuler=function(e){return new ac(this._context,e)};t.prototype.change=function(e){var t=this;var n=!1;this._renderOnce(function(){var r={addZone:function(e){n=!0;return t.viewZones.addZone(e)},removeZone:function(e){if(!e)return;n=t.viewZones.removeZone(e)||n},layoutZone:function(e){if(!e)return;n=t.viewZones.layoutZone(e)||n}};Pc(e,r);r.addZone=Tc;r.removeZone=Tc;r.layoutZone=Tc;if(n){t._context.viewLayout.onHeightMaybeChanged();t._context.privateViewEventBus.emit(new ss)}});return n};t.prototype.render=function(e,t){if(t){this.viewLines.forceShouldRender();for(var n=0,r=this.viewParts.length;n<r;n++){var i;this.viewParts[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;var n=e.position?e.position.range:null;var r=e.position?e.position.preference:null;this.contentWidgets.setWidgetPosition(e.widget,t,n,r);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;var n;this.overlayWidgets.setWidgetPosition(e.widget,t)&&this._scheduleRender()};t.prototype.removeOverlayWidget=function(e){this.overlayWidgets.removeWidget(e.widget);this._scheduleRender()};return t}(ho);function Rc(e){try{return e()}catch(e){Object(Ge["d"])(e)}}function Pc(e,t){try{return e(t)}catch(e){Object(Ge["d"])(e)}}var jc=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Wc=function(e){jc(t,e);function t(t){var n=e.call(this)||this;n.onDidScroll=null;n.onDidGainFocus=null;n.onDidLoseFocus=null;n.onKeyDown=null;n.onKeyUp=null;n.onContextMenu=null;n.onMouseMove=null;n.onMouseLeave=null;n.onMouseUp=null;n.onMouseDown=null;n.onMouseDrag=null;n.onMouseDrop=null;n._viewModel=t;return n}t.prototype.emitScrollChanged=function(e){this.onDidScroll&&this.onDidScroll(e)};t.prototype.emitViewFocusGained=function(){this.onDidGainFocus&&this.onDidGainFocus(void 0)};t.prototype.emitViewFocusLost=function(){this.onDidLoseFocus&&this.onDidLoseFocus(void 0)};t.prototype.emitKeyDown=function(e){this.onKeyDown&&this.onKeyDown(e)};t.prototype.emitKeyUp=function(e){this.onKeyUp&&this.onKeyUp(e)};t.prototype.emitContextMenu=function(e){this.onContextMenu&&this.onContextMenu(this._convertViewToModelMouseEvent(e))};t.prototype.emitMouseMove=function(e){this.onMouseMove&&this.onMouseMove(this._convertViewToModelMouseEvent(e))};t.prototype.emitMouseLeave=function(e){this.onMouseLeave&&this.onMouseLeave(this._convertViewToModelMouseEvent(e))};t.prototype.emitMouseUp=function(e){this.onMouseUp&&this.onMouseUp(this._convertViewToModelMouseEvent(e))};t.prototype.emitMouseDown=function(e){this.onMouseDown&&this.onMouseDown(this._convertViewToModelMouseEvent(e))};t.prototype.emitMouseDrag=function(e){this.onMouseDrag&&this.onMouseDrag(this._convertViewToModelMouseEvent(e))};t.prototype.emitMouseDrop=function(e){this.onMouseDrop&&this.onMouseDrop(this._convertViewToModelMouseEvent(e))};t.prototype._convertViewToModelMouseEvent=function(e){if(e.target)return{event:e.event,target:this._convertViewToModelMouseTarget(e.target)};return e};t.prototype._convertViewToModelMouseTarget=function(e){return new Fc(e.element,e.type,e.mouseColumn,e.position?this._convertViewToModelPosition(e.position):null,e.range?this._convertViewToModelRange(e.range):null,e.detail)};t.prototype._convertViewToModelPosition=function(e){return this._viewModel.coordinatesConverter.convertViewPositionToModelPosition(e)};t.prototype._convertViewToModelRange=function(e){return this._viewModel.coordinatesConverter.convertViewRangeToModelRange(e)};return t}(me["a"]);var Fc=function(){function e(e,t,n,r,i,o){this.element=e;this.type=t;this.mouseColumn=n;this.position=r;this.range=i;this.detail=o}e.prototype.toString=function(){return jo.toString(this)};return e}();var zc=function(){function e(e){this._selTrackedRange=null;this._trackSelection=!0;this._setState(e,new Is(new p["a"](1,1,1,1),0,new f["a"](1,1),0),new Is(new p["a"](1,1,1,1),0,new f["a"](1,1),0))}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){if(!this._trackSelection)return;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 Ds(this.modelState,this.viewState)};e.prototype.readSelectionFromMarkers=function(e){var t=e.model._getTrackedRange(this._selTrackedRange);if(0===this.modelState.selection.getDirection())return new g["a"](t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn);return new g["a"](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,n){this._setState(e,t,n)};e.prototype._setState=function(e,t,n){if(t){var r=e.model.validateRange(t.selectionStart);var i=t.selectionStart.equalsRange(r)?t.selectionStartLeftoverVisibleColumns:0;var o=e.model.validatePosition(t.position);var a=t.position.equals(o)?t.leftoverVisibleColumns:0;t=new Is(r,i,o,a)}else{if(!n)return;var r=e.model.validateRange(e.convertViewRangeToModelRange(n.selectionStart));var o=e.model.validatePosition(e.convertViewPositionToModelPosition(n.position.lineNumber,n.position.column));t=new Is(r,n.selectionStartLeftoverVisibleColumns,o,n.leftoverVisibleColumns)}if(n){var s=e.validateViewRange(n.selectionStart,t.selectionStart);var u=e.validateViewPosition(n.position,t.position);n=new Is(s,t.selectionStartLeftoverVisibleColumns,u,t.leftoverVisibleColumns)}else{var l=e.convertModelPositionToViewPosition(new f["a"](t.selectionStart.startLineNumber,t.selectionStart.startColumn));var c=e.convertModelPositionToViewPosition(new f["a"](t.selectionStart.endLineNumber,t.selectionStart.endColumn));var s=new p["a"](l.lineNumber,l.column,c.lineNumber,c.column);var u=e.convertModelPositionToViewPosition(t.position);n=new Is(s,t.selectionStartLeftoverVisibleColumns,u,t.leftoverVisibleColumns)}this.modelState=t;this.viewState=n;this._updateTrackedRange(e)};return e}();var Vc=function(){function e(e){this.context=e;this.primaryCursor=new zc(e);this.secondaryCursors=[];this.lastAddedCursorIndex=0}e.prototype.dispose=function(){this.primaryCursor.dispose(this.context);this.killSecondaryCursors()};e.prototype.startTrackingSelections=function(){this.primaryCursor.startTrackingSelection(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].startTrackingSelection(this.context)};e.prototype.stopTrackingSelections=function(){this.primaryCursor.stopTrackingSelection(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].stopTrackingSelection(this.context)};e.prototype.updateContext=function(e){this.context=e};e.prototype.ensureValidState=function(){this.primaryCursor.ensureValidState(this.context);for(var e=0,t=this.secondaryCursors.length;e<t;e++)this.secondaryCursors[e].ensureValidState(this.context)};e.prototype.readSelectionFromMarkers=function(){var e=[];e[0]=this.primaryCursor.readSelectionFromMarkers(this.context);for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].readSelectionFromMarkers(this.context);return e};e.prototype.getAll=function(){var e=[];e[0]=this.primaryCursor.asCursorState();for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].asCursorState();return e};e.prototype.getViewPositions=function(){var e=[];e[0]=this.primaryCursor.viewState.position;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.position;return e};e.prototype.getSelections=function(){var e=[];e[0]=this.primaryCursor.modelState.selection;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].modelState.selection;return e};e.prototype.getViewSelections=function(){var e=[];e[0]=this.primaryCursor.viewState.selection;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t].viewState.selection;return e};e.prototype.setSelections=function(e){this.setStates(Ds.fromModelSelections(e))};e.prototype.getPrimaryCursor=function(){return this.primaryCursor.asCursorState()};e.prototype.setStates=function(e){if(null===e)return;this.primaryCursor.setState(this.context,e[0].modelState,e[0].viewState);this._setSecondaryStates(e.slice(1))};e.prototype._setSecondaryStates=function(e){var t=this.secondaryCursors.length;var n=e.length;if(t<n){var r=n-t;for(var i=0;i<r;i++)this._addSecondaryCursor()}else if(t>n){var o=t-n;for(var i=0;i<o;i++)this._removeSecondaryCursor(this.secondaryCursors.length-1)}for(var i=0;i<n;i++)this.secondaryCursors[i].setState(this.context,e[i].modelState,e[i].viewState)};e.prototype.killSecondaryCursors=function(){this._setSecondaryStates([])};e.prototype._addSecondaryCursor=function(){this.secondaryCursors.push(new zc(this.context));this.lastAddedCursorIndex=this.secondaryCursors.length};e.prototype.getLastAddedCursorIndex=function(){if(0===this.secondaryCursors.length||0===this.lastAddedCursorIndex)return 0;return this.lastAddedCursorIndex};e.prototype._removeSecondaryCursor=function(e){this.lastAddedCursorIndex>=e+1&&this.lastAddedCursorIndex--;this.secondaryCursors[e].dispose(this.context);this.secondaryCursors.splice(e,1)};e.prototype._getAll=function(){var e=[];e[0]=this.primaryCursor;for(var t=0,n=this.secondaryCursors.length;t<n;t++)e[t+1]=this.secondaryCursors[t];return e};e.prototype.normalize=function(){if(0===this.secondaryCursors.length)return;var e=this._getAll();var t=[];for(var n=0,r=e.length;n<r;n++)t.push({index:n,selection:e[n].modelState.selection});t.sort(function(e,t){if(e.selection.startLineNumber===t.selection.startLineNumber)return e.selection.startColumn-t.selection.startColumn;return e.selection.startLineNumber-t.selection.startLineNumber});for(var i=0;i<t.length-1;i++){var o=t[i];var a=t[i+1];var s=o.selection;var u=a.selection;if(!this.context.config.multiCursorMergeOverlapping)continue;var l=void 0;if(l=u.isEmpty()||s.isEmpty()?u.getStartPosition().isBeforeOrEqual(s.getEndPosition()):u.getStartPosition().isBefore(s.getEndPosition())){var c=o.index<a.index?i:i+1;var d=o.index<a.index?i+1:i;var h=t[d].index;var f=t[c].index;var p=t[d].selection;var v=t[c].selection;if(!p.equalsSelection(v)){var m=p.plusRange(v);var _=p.selectionStartLineNumber===p.startLineNumber&&p.selectionStartColumn===p.startColumn;var y=v.selectionStartLineNumber===v.startLineNumber&&v.selectionStartColumn===v.startColumn;var b=void 0;if(h===this.lastAddedCursorIndex){b=_;this.lastAddedCursorIndex=f}else b=y;var C=void 0;C=b?new g["a"](m.startLineNumber,m.startColumn,m.endLineNumber,m.endColumn):new g["a"](m.endLineNumber,m.endColumn,m.startLineNumber,m.startColumn);t[c].selection=C;var w=Ds.fromModelSelection(C);e[f].setState(this.context,w.modelState,w.viewState)}for(var S=0;S<t.length;S++)t[S].index>h&&t[S].index--;e.splice(h,1);t.splice(d,1);this._removeSecondaryCursor(h-1);i--}}};return e}();var Bc=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Hc(e){for(var t=0,n=e.length;t<n;t++)if(6===e[t].type)return!0;return!1}var Uc=function(){function e(e,t,n){this.selections=e;this.source=t;this.reason=n}return e}();var Zc=function(){function e(e,t){this.modelVersionId=e.getVersionId();this.cursorState=t.getAll()}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,n=this.cursorState.length;t<n;t++)if(!this.cursorState[t].equals(e.cursorState[t]))return!1;return!0};return e}();var Gc=function(e){Bc(t,e);function t(t,n,r){var i=e.call(this)||this;i._onDidReachMaxCursorCount=i._register(new c["a"]);i.onDidReachMaxCursorCount=i._onDidReachMaxCursorCount.event;i._onDidAttemptReadOnlyEdit=i._register(new c["a"]);i.onDidAttemptReadOnlyEdit=i._onDidAttemptReadOnlyEdit.event;i._onDidChange=i._register(new c["a"]);i.onDidChange=i._onDidChange.event;i._configuration=t;i._model=n;i._knownModelVersionId=i._model.getVersionId();i._viewModel=r;i.context=new xs(i._configuration,i._model,i._viewModel);i._cursors=new Vc(i.context);i._isHandling=!1;i._isDoingComposition=!1;i._columnSelectData=null;i._prevEditOperationType=0;i._register(i._model.onDidChangeRawContent(function(e){i._knownModelVersionId=e.versionId;if(i._isHandling)return;var t=e.containsEvent(1);i._onModelContentChanged(t)}));i._register(r.addEventListener(function(e){if(!Hc(e))return;if(i._knownModelVersionId!==i._model.getVersionId())return;i.setStates("viewModel",0,i.getAll())}));var o=function(){i.context=new xs(i._configuration,i._model,i._viewModel);i._cursors.updateContext(i.context)};i._register(i._model.onDidChangeLanguage(function(e){o()}));i._register(i._model.onDidChangeLanguageConfiguration(function(){o()}));i._register(i._model.onDidChangeOptions(function(){o()}));i._register(i._configuration.onDidChange(function(e){Ls.shouldRecreate(e)&&o()}));return i}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,n,r){if(null!==r&&r.length>t.MAX_CURSOR_COUNT){r=r.slice(0,t.MAX_CURSOR_COUNT);this._onDidReachMaxCursorCount.fire(void 0)}var i=new Zc(this._model,this);this._cursors.setStates(r);this._cursors.normalize();this._columnSelectData=null;this._emitStateChangedIfNecessary(e,n,i)};t.prototype.setColumnSelectData=function(e){this._columnSelectData=e};t.prototype.reveal=function(e,t,n){this._revealRange(t,0,e,n)};t.prototype.revealRange=function(e,t,n,r){this.emitCursorRevealRange(t,n,e,r)};t.prototype.scrollTo=function(e){this._viewModel.viewLayout.setScrollPositionSmooth({scrollTop:e})};t.prototype.saveState=function(){var e=[];var t=this._cursors.getSelections();for(var n=0,r=t.length;n<r;n++){var i=t[n];e.push({inSelectionMode:!i.isEmpty(),selectionStart:{lineNumber:i.selectionStartLineNumber,column:i.selectionStartColumn},position:{lineNumber:i.positionLineNumber,column:i.positionColumn}})}return e};t.prototype.restoreState=function(e){var t=[];for(var n=0,r=e.length;n<r;n++){var i=e[n];var o=1;var a=1;i.position&&i.position.lineNumber&&(o=i.position.lineNumber);i.position&&i.position.column&&(a=i.position.column);var s=o;var u=a;i.selectionStart&&i.selectionStart.lineNumber&&(s=i.selectionStart.lineNumber);i.selectionStart&&i.selectionStart.column&&(u=i.selectionStart.column);t.push({selectionStartLineNumber:s,selectionStartColumn:u,positionLineNumber:o,positionColumn:a})}this.setStates("restoreState",0,Ds.fromModelSelections(t));this.reveal(!0,0,1)};t.prototype._onModelContentChanged=function(e){this._prevEditOperationType=0;if(e){this._cursors.dispose();this._cursors=new Vc(this.context);this._emitStateChangedIfNecessary("model",1,null)}else{var t=this._cursors.readSelectionFromMarkers();this.setStates("modelChange",2,Ds.fromModelSelections(t))}};t.prototype.getSelection=function(){return this._cursors.getPrimaryCursor().modelState.selection};t.prototype.getColumnSelectData=function(){if(this._columnSelectData)return this._columnSelectData;var e;var t=this._cursors.getPrimaryCursor().viewState.position;return{toViewLineNumber:t.lineNumber,toViewVisualColumn:Os.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,Ds.fromModelSelections(t))};t.prototype.getPrevEditOperationType=function(){return this._prevEditOperationType};t.prototype.setPrevEditOperationType=function(e){this._prevEditOperationType=e};t.prototype._executeEditOperation=function(e){if(!e)return;e.shouldPushStackElementBefore&&this._model.pushStackElement();var t=Yc.executeCommands(this._model,this._cursors.getSelections(),e.commands);if(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,n){var r=new Zc(this._model,this);if(r.equals(n))return!1;var i=this._cursors.getSelections();var o=this._cursors.getViewSelections();try{var a;this._beginEmit().emit(new Ka(o))}finally{this._endEmit()}n&&n.cursorState.length===r.cursorState.length&&!r.cursorState.some(function(e,t){return!e.modelState.equals(n.cursorState[t].modelState)})||this._onDidChange.fire(new Uc(i,e||"keyboard",t));return!0};t.prototype._revealRange=function(e,t,n,r){var i=this._cursors.getViewPositions();var o=i[0];if(1===e)for(var a=1;a<i.length;a++)i[a].isBefore(o)&&(o=i[a]);else if(2===e)for(var a=1;a<i.length;a++)o.isBeforeOrEqual(i[a])&&(o=i[a]);else if(i.length>1)return;var s=new p["a"](o.lineNumber,o.column,o.lineNumber,o.column);this.emitCursorRevealRange(s,t,n,r)};t.prototype.emitCursorRevealRange=function(e,t,n,r){try{var i;this._beginEmit().emit(new ns(e,t,n,r))}finally{this._endEmit()}};t.prototype.trigger=function(e,t,n){var r=Fe;if(t===r.CompositionStart){this._isDoingComposition=!0;return}t===r.CompositionEnd&&(this._isDoingComposition=!1);if(this._configuration.editor.readOnly){this._onDidAttemptReadOnlyEdit.fire(void 0);return}var i=new Zc(this._model,this);var o=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,n.text);break;case r.ReplacePreviousChar:this._replacePreviousChar(n.text,n.replaceCharCnt);break;case r.Paste:o=4;this._paste(n.text,n.pasteOnNewLine,n.multicursorText);break;case r.Cut:this._cut();break;case r.Undo:o=5;this._interpretCommandResult(this._model.undo());break;case r.Redo:o=6;this._interpretCommandResult(this._model.redo());break;case r.ExecuteCommand:this._externalExecuteCommand(n);break;case r.ExecuteCommands:this._externalExecuteCommands(n);break;case r.CompositionEnd:this._interpretCompositionEnd(e)}}catch(e){Object(Ge["d"])(e)}this._isHandling=!1;t!==r.Undo&&t!==r.Redo&&this._cursors.startTrackingSelections();this._emitStateChangedIfNecessary(e,o,i)&&this._revealRange(0,0,!0,0)};t.prototype._interpretCompositionEnd=function(e){this._isDoingComposition||"keyboard"!==e||this._executeEditOperation(Ys.compositionEndWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections()))};t.prototype._type=function(e,t){if(this._isDoingComposition||"keyboard"!==e)this._executeEditOperation(Ys.typeWithoutInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),t));else for(var n=0,r=t.length;n<r;n++){var i=t.charCodeAt(n);var o=void 0;if($["s"](i)&&n+1<r){o=t.charAt(n)+t.charAt(n+1);n++}else o=t.charAt(n);this._executeEditOperation(Ys.typeWithInterceptors(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),o))}};t.prototype._replacePreviousChar=function(e,t){this._executeEditOperation(Ys.replacePreviousChar(this._prevEditOperationType,this.context.config,this.context.model,this.getSelections(),e,t))};t.prototype._paste=function(e,t,n){this._executeEditOperation(Ys.paste(this.context.config,this.context.model,this.getSelections(),e,t,n))};t.prototype._cut=function(){this._executeEditOperation(js.cut(this.context.config,this.context.model,this.getSelections()))};t.prototype._externalExecuteCommand=function(e){this._cursors.killSecondaryCursors();this._executeEditOperation(new ks(0,[e],{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))};t.prototype._externalExecuteCommands=function(e){this._executeEditOperation(new ks(0,e,{shouldPushStackElementBefore:!1,shouldPushStackElementAfter:!1}))};t.MAX_CURSOR_COUNT=1e4;return t}(ls);var Yc=function(){function e(){}e.executeCommands=function(e,t,n){var r={model:e,selectionsBefore:t,trackedRanges:[],trackedRangesDirection:[]};var i=this._innerExecuteCommands(r,n);for(var o=0,a=r.trackedRanges.length;o<a;o++)r.model._setTrackedRange(r.trackedRanges[o],null,0);return i};e._innerExecuteCommands=function(e,t){if(this._arrayIsEmpty(t))return null;var n=this._getEditOperations(e,t);if(0===n.operations.length)return null;var r=n.operations;var i=this._getLoserCursorMap(r);if(i.hasOwnProperty("0")){console.warn("Ignoring commands");return null}var o=[];for(var a=0,s=r.length;a<s;a++)i.hasOwnProperty(r[a].identifier.major.toString())||o.push(r[a]);n.hadTrackedEditOperation&&o.length>0&&(o[0]._isTracked=!0);var u=e.model.pushEditOperations(e.selectionsBefore,o,function(n){var r=[];for(var i=0;i<e.selectionsBefore.length;i++)r[i]=[];for(var i=0;i<n.length;i++){var o=n[i];if(!o.identifier)continue;r[o.identifier.major].push(o)}var a=function(e,t){return e.identifier.minor-t.identifier.minor};var s=[];var u=function(n){if(r[n].length>0){r[n].sort(a);s[n]=t[n].computeCursorState(e.model,{getInverseEditOperations:function(){return r[n]},getTrackedSelection:function(t){var n=parseInt(t,10);var r=e.model._getTrackedRange(e.trackedRanges[n]);if(0===e.trackedRangesDirection[n])return new g["a"](r.startLineNumber,r.startColumn,r.endLineNumber,r.endColumn);return new g["a"](r.endLineNumber,r.endColumn,r.startLineNumber,r.startColumn)}})}else s[n]=e.selectionsBefore[n]};for(var i=0;i<e.selectionsBefore.length;i++)u(i);return s});u||(u=e.selectionsBefore);var l=[];for(var c in i)i.hasOwnProperty(c)&&l.push(parseInt(c,10));l.sort(function(e,t){return t-e});for(var a=0;a<l.length;a++)u.splice(l[a],1);return u};e._arrayIsEmpty=function(e){for(var t=0,n=e.length;t<n;t++)if(e[t])return!1;return!0};e._getEditOperations=function(e,t){var n=[];var r=!1;for(var i=0,o=t.length;i<o;i++){var a=t[i];if(a){var s=this._getEditOperationsFromCommand(e,i,a);n=n.concat(s.operations);r=r||s.hadTrackedEditOperation}}return{operations:n,hadTrackedEditOperation:r}};e._getEditOperationsFromCommand=function(e,t,n){var r=[];var i=0;var o=function(e,o){if(e.isEmpty()&&""===o)return;r.push({identifier:{major:t,minor:i++},range:e,text:o,forceMoveMarkers:!1,isAutoWhitespaceEdit:n.insertsAutoWhitespace})};var a=!1;var s;var u;var l={addEditOperation:o,addTrackedEditOperation:function(e,t){a=!0;o(e,t)},trackSelection:function(t,n){var r;if(t.isEmpty())if("boolean"==typeof n)r=n?2:3;else{var i=e.model.getLineMaxColumn(t.startLineNumber);r=t.startColumn===i?2:3}else r=1;var o=e.trackedRanges.length;var a=e.model._setTrackedRange(null,t,r);e.trackedRanges[o]=a;e.trackedRangesDirection[o]=t.getDirection();return o.toString()}};try{n.getEditOperations(e.model,l)}catch(e){e.friendlyMessage=Bn["a"]("corrupt.commands","Unexpected exception while executing command.");Object(Ge["d"])(e);return{operations:[],hadTrackedEditOperation:!1}}return{operations:r,hadTrackedEditOperation:a}};e._getLoserCursorMap=function(e){(e=e.slice(0)).sort(function(e,t){return-p["a"].compareRangesUsingEnds(e.range,t.range)});var t={};for(var n=1;n<e.length;n++){var r=e[n-1];var i=e[n];if(r.range.getStartPosition().isBefore(i.range.getEndPosition())){var o=void 0;t[(o=r.identifier.major>i.identifier.major?r.identifier.major:i.identifier.major).toString()]=!0;for(var a=0;a<e.length;a++)if(e[a].identifier.major===o){e.splice(a,1);a<n&&n--;a--}n>0&&n--}}return t};return e}();var Kc=function(){function e(e,t,n,r,i,o){this.id=e;this.label=t;this.alias=n;this._precondition=r;this._run=i;this._contextKeyService=o}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||Promise.resolve(void 0)};return e}();var Qc={getInitialState:function(){return Be["c"]},tokenize2:function(e,t,n){return Object(Be["e"])(0,e,t,n)}};function qc(e,t){void 0===t&&(t=Qc);return Xc(e,t||Qc)}function Jc(e,t,n,r,i,o){var a="<div>";var s=r;var u=0;for(var l=0,c=t.getCount();l<c;l++){var d=t.getEndOffset(l);if(d<=r)continue;var h="";for(;s<d&&s<i;s++){var f=e.charCodeAt(s);switch(f){case 9:var p=o-(s+u)%o;u+=p-1;for(;p>0;){h+=" ";p--}break;case 60:h+="<";break;case 62:h+=">";break;case 38:h+="&";break;case 0:h+="�";break;case 65279:case 8232:h+="�";break;case 13:h+="​";break;default:h+=String.fromCharCode(f)}}a+='<span style="'+t.getInlineStyle(l,n)+'">'+h+"</span>";if(d>i||s>=i)break}return a+="</div>"}function Xc(e,t){var n='<div class="monaco-tokenized-source">';var r=e.split(/\r\n|\r|\n/);var i=t.getInitialState();for(var o=0,a=r.length;o<a;o++){var s=r[o];o>0&&(n+="<br/>");var u=t.tokenize2(s,i,0);cn["a"].convertToEndOffset(u.tokens,s.length);var l;var c=new cn["a"](u.tokens,s).inflate();var d=0;for(var h=0,f=c.getCount();h<f;h++){var p=c.getClassName(h);var g=c.getEndOffset(h);n+='<span class="'+p+'">'+$["k"](s.substring(d,g))+"</span>";d=g}i=u.endState}return n+="</div>"}var $c=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}e.findInsertionIndex=function(e,t,n,r){var i=0;var o=e.length;for(;i<o;){var a=i+o>>>1;t===e[a]?r<n[a]?o=a:i=a+1:t<e[a]?o=a:i=a+1}return i};e.prototype.insertWhitespace=function(t,n,r,i){t|=0;n|=0;r|=0;i|=0;var o=++this._lastWhitespaceId;var a=e.findInsertionIndex(this._afterLineNumbers,t,this._ordinals,n);this._insertWhitespaceAtIndex(o,a,t,n,r,i);this._minWidth=-1;return o};e.prototype._insertWhitespaceAtIndex=function(e,t,n,r,i,o){e|=0;t|=0;n|=0;r|=0;i|=0;o|=0;this._heights.splice(t,0,i);this._minWidths.splice(t,0,o);this._ids.splice(t,0,e);this._afterLineNumbers.splice(t,0,n);this._ordinals.splice(t,0,r);this._prefixSum.splice(t,0,0);var a=Object.keys(this._whitespaceId2Index);for(var s=0,u=a.length;s<u;s++){var l=a[s];var c=this._whitespaceId2Index[l];c>=t&&(this._whitespaceId2Index[l]=c+1)}this._whitespaceId2Index[e.toString()]=t;this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,t-1)};e.prototype.changeWhitespace=function(e,t,n){e|=0;t|=0;n|=0;var r=!1;r=this.changeWhitespaceHeight(e,n)||r;return r=this.changeWhitespaceAfterLineNumber(e,t)||r};e.prototype.changeWhitespaceHeight=function(e,t){t|=0;var n=(e|=0).toString();if(this._whitespaceId2Index.hasOwnProperty(n)){var r=this._whitespaceId2Index[n];if(this._heights[r]!==t){this._heights[r]=t;this._prefixSumValidIndex=Math.min(this._prefixSumValidIndex,r-1);return!0}}return!1};e.prototype.changeWhitespaceAfterLineNumber=function(t,n){n|=0;var r=(t|=0).toString();if(this._whitespaceId2Index.hasOwnProperty(r)){var i=this._whitespaceId2Index[r];if(this._afterLineNumbers[i]!==n){var o=this._ordinals[i];var a=this._heights[i];var s=this._minWidths[i];this.removeWhitespace(t);var u=e.findInsertionIndex(this._afterLineNumbers,n,this._ordinals,o);this._insertWhitespaceAtIndex(t,u,n,o,a,s);return!0}}return!1};e.prototype.removeWhitespace=function(e){var t=(e|=0).toString();if(this._whitespaceId2Index.hasOwnProperty(t)){var n=this._whitespaceId2Index[t];delete this._whitespaceId2Index[t];this._removeWhitespaceAtIndex(n);this._minWidth=-1;return!0}return!1};e.prototype._removeWhitespaceAtIndex=function(e){e|=0;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);var t=Object.keys(this._whitespaceId2Index);for(var n=0,r=t.length;n<r;n++){var i=t[n];var o=this._whitespaceId2Index[i];o>=e&&(this._whitespaceId2Index[i]=o-1)}};e.prototype.onLinesDeleted=function(e,t){e|=0;t|=0;for(var n=0,r=this._afterLineNumbers.length;n<r;n++){var i=this._afterLineNumbers[n];e<=i&&i<=t?this._afterLineNumbers[n]=e-1:i>t&&(this._afterLineNumbers[n]-=t-e+1)}};e.prototype.onLinesInserted=function(e,t){e|=0;t|=0;for(var n=0,r=this._afterLineNumbers.length;n<r;n++){var i;e<=this._afterLineNumbers[n]&&(this._afterLineNumbers[n]+=t-e+1)}};e.prototype.getTotalHeight=function(){if(0===this._heights.length)return 0;return this.getAccumulatedHeight(this._heights.length-1)};e.prototype.getAccumulatedHeight=function(e){e|=0;var t=Math.max(0,this._prefixSumValidIndex+1);if(0===t){this._prefixSum[0]=this._heights[0];t++}for(var n=t;n<=e;n++)this._prefixSum[n]=this._prefixSum[n-1]+this._heights[n];this._prefixSumValidIndex=Math.max(this._prefixSumValidIndex,e);return this._prefixSum[e]};e.prototype.getAccumulatedHeightBeforeLineNumber=function(e){e|=0;var t=this._findLastWhitespaceBeforeLineNumber(e);if(-1===t)return 0;return this.getAccumulatedHeight(t)};e.prototype._findLastWhitespaceBeforeLineNumber=function(e){e|=0;var t=this._afterLineNumbers;var n=0;var r=t.length-1;for(;n<=r;){var i;var o;var a=n+((r-n|0)/2|0)|0;if(t[a]<e){if(a+1>=t.length||t[a+1]>=e)return a;n=a+1|0}else r=a-1|0}return-1};e.prototype._findFirstWhitespaceAfterLineNumber=function(e){e|=0;var t;var n=this._findLastWhitespaceBeforeLineNumber(e)+1;if(n<this._heights.length)return n;return-1};e.prototype.getFirstWhitespaceIndexAfterLineNumber=function(e){e|=0;return this._findFirstWhitespaceAfterLineNumber(e)};e.prototype.getCount=function(){return this._heights.length};e.prototype.getMinWidth=function(){if(-1===this._minWidth){var e=0;for(var t=0,n=this._minWidths.length;t<n;t++)e=Math.max(e,this._minWidths[t]);this._minWidth=e}return this._minWidth};e.prototype.getAfterLineNumberForWhitespaceIndex=function(e){e|=0;return this._afterLineNumbers[e]};e.prototype.getIdForWhitespaceIndex=function(e){e|=0;return this._ids[e]};e.prototype.getHeightForWhitespaceIndex=function(e){e|=0;return this._heights[e]};e.prototype.getWhitespaces=function(e){e|=0;var t=[];for(var n=0;n<this._heights.length;n++)t.push({id:this._ids[n],afterLineNumber:this._afterLineNumbers[n],heightInLines:this._heights[n]/e});return t};return e}();var ed=function(){function e(e,t){this._lineCount=e;this._lineHeight=t;this._whitespaces=new $c}e.prototype.setLineHeight=function(e){this._lineHeight=e};e.prototype.onFlushed=function(e){this._lineCount=e};e.prototype.insertWhitespace=function(e,t,n,r){return this._whitespaces.insertWhitespace(e,t,n,r)};e.prototype.changeWhitespace=function(e,t,n){return this._whitespaces.changeWhitespace(e,t,n)};e.prototype.removeWhitespace=function(e){return this._whitespaces.removeWhitespace(e)};e.prototype.onLinesDeleted=function(e,t){this._lineCount-=t-e+1;this._whitespaces.onLinesDeleted(e,t)};e.prototype.onLinesInserted=function(e,t){this._lineCount+=t-e+1;this._whitespaces.onLinesInserted(e,t)};e.prototype.getLinesTotalHeight=function(){var e;var t;return this._lineHeight*this._lineCount+this._whitespaces.getTotalHeight()};e.prototype.getVerticalOffsetForLineNumber=function(e){var t;var n;return(t=(e|=0)>1?this._lineHeight*(e-1):0)+this._whitespaces.getAccumulatedHeightBeforeLineNumber(e)};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;return e>this.getLinesTotalHeight()};e.prototype.getLineNumberAtOrAfterVerticalOffset=function(e){if((e|=0)<0)return 1;var t=0|this._lineCount;var n=this._lineHeight;var r=1;var i=t;for(;r<i;){var o=(r+i)/2|0;var a=0|this.getVerticalOffsetForLineNumber(o);if(e>=a+n)r=o+1;else{if(e>=a)return o;i=o}}if(r>t)return t;return r};e.prototype.getLinesViewportData=function(e,t){e|=0;t|=0;var n=this._lineHeight;var r=0|this.getLineNumberAtOrAfterVerticalOffset(e);var i=0|this.getVerticalOffsetForLineNumber(r);var o=0|this._lineCount;var a=0|this._whitespaces.getFirstWhitespaceIndexAfterLineNumber(r);var s=0|this._whitespaces.getCount();var u;var l;if(-1===a){a=s;l=o+1;u=0}else{l=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(a);u=0|this._whitespaces.getHeightForWhitespaceIndex(a)}var c=i;var d=c;var h=5e5;var f=0;if(i>=5e5){f=5e5*Math.floor(i/5e5);d-=f=Math.floor(f/n)*n}var p=[];var g=e+(t-e)/2;var v=-1;for(var m=r;m<=o;m++){if(-1===v){var _=c;var y;(c<=g&&g<c+n||c>g)&&(v=m)}c+=n;p[m-r]=d;d+=n;for(;l===m;){d+=u;c+=u;if(++a>=s)l=o+1;else{l=0|this._whitespaces.getAfterLineNumberForWhitespaceIndex(a);u=0|this._whitespaces.getHeightForWhitespaceIndex(a)}}if(c>=t){o=m;break}}-1===v&&(v=o);var b=0|this.getVerticalOffsetForLineNumber(o);var C=r;var w=o;C<w&&i<e&&C++;C<w&&b+n>t&&w--;return{bigNumbersDelta:f,startLineNumber:r,endLineNumber:o,relativeVerticalOffset:p,centeredLineNumber:v,completelyVisibleStartLineNumber:C,completelyVisibleEndLineNumber:w}};e.prototype.getVerticalOffsetForWhitespaceIndex=function(e){e|=0;var t=this._whitespaces.getAfterLineNumberForWhitespaceIndex(e);var n;var r;return(n=t>=1?this._lineHeight*t:0)+(r=e>0?this._whitespaces.getAccumulatedHeight(e-1):0)};e.prototype.getWhitespaceIndexAtOrAfterVerticallOffset=function(e){e|=0;var t,n=0,r=this._whitespaces.getCount()-1,i,o;if(r<0)return-1;var a;var s;if(e>=this.getVerticalOffsetForWhitespaceIndex(r)+this._whitespaces.getHeightForWhitespaceIndex(r))return-1;for(;n<r;){t=Math.floor((n+r)/2);if(e>=(i=this.getVerticalOffsetForWhitespaceIndex(t))+(o=this._whitespaces.getHeightForWhitespaceIndex(t)))n=t+1;else{if(e>=i)return t;r=t}}return n};e.prototype.getWhitespaceAtVerticalOffset=function(e){e|=0;var t=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);if(t<0)return null;if(t>=this._whitespaces.getCount())return null;var n=this.getVerticalOffsetForWhitespaceIndex(t);if(n>e)return null;var r=this._whitespaces.getHeightForWhitespaceIndex(t);var i;var o;return{id:this._whitespaces.getIdForWhitespaceIndex(t),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(t),verticalOffset:n,height:r}};e.prototype.getWhitespaceViewportData=function(e,t){e|=0;t|=0;var n=this.getWhitespaceIndexAtOrAfterVerticallOffset(e);var r=this._whitespaces.getCount()-1;if(n<0)return[];var i=[];for(var o=n;o<=r;o++){var a=this.getVerticalOffsetForWhitespaceIndex(o);var s=this._whitespaces.getHeightForWhitespaceIndex(o);if(a>=t)break;i.push({id:this._whitespaces.getIdForWhitespaceIndex(o),afterLineNumber:this._whitespaces.getAfterLineNumberForWhitespaceIndex(o),verticalOffset:a,height:s})}return i};e.prototype.getWhitespaces=function(){return this._whitespaces.getWhitespaces(this._lineHeight)};return e}();var td=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var nd=125;var rd=function(e){td(t,e);function t(t,n,r){var i=e.call(this)||this;i._configuration=t;i._linesLayout=new ed(n,i._configuration.editor.lineHeight);i.scrollable=i._register(new Gu(0,r));i._configureSmoothScrollDuration();i.scrollable.setScrollDimensions({width:t.editor.layoutInfo.contentWidth,height:t.editor.layoutInfo.contentHeight});i.onDidScroll=i.scrollable.onScroll;i._updateHeight();return i}t.prototype.dispose=function(){e.prototype.dispose.call(this)};t.prototype.onHeightMaybeChanged=function(){this._updateHeight()};t.prototype._configureSmoothScrollDuration=function(){this.scrollable.setSmoothScrollDuration(this._configuration.editor.viewInfo.smoothScrolling?125:0)};t.prototype.onConfigurationChanged=function(e){e.lineHeight&&this._linesLayout.setLineHeight(this._configuration.editor.lineHeight);e.layoutInfo&&this.scrollable.setScrollDimensions({width:this._configuration.editor.layoutInfo.contentWidth,height:this._configuration.editor.layoutInfo.contentHeight});e.viewInfo&&this._configureSmoothScrollDuration();this._updateHeight()};t.prototype.onFlushed=function(e){this._linesLayout.onFlushed(e)};t.prototype.onLinesDeleted=function(e,t){this._linesLayout.onLinesDeleted(e,t)};t.prototype.onLinesInserted=function(e,t){this._linesLayout.onLinesInserted(e,t)};t.prototype._getHorizontalScrollbarHeight=function(e){if(2===this._configuration.editor.viewInfo.scrollbar.horizontal)return 0;if(e.width>=e.scrollWidth)return 0;return this._configuration.editor.viewInfo.scrollbar.horizontalScrollbarSize};t.prototype._getTotalHeight=function(){var e=this.scrollable.getScrollDimensions();var t=this._linesLayout.getLinesTotalHeight();this._configuration.editor.viewInfo.scrollBeyondLastLine?t+=e.height-this._configuration.editor.lineHeight:t+=this._getHorizontalScrollbarHeight(e);return Math.max(e.height,t)};t.prototype._updateHeight=function(){this.scrollable.setScrollDimensions({scrollHeight:this._getTotalHeight()})};t.prototype.getCurrentViewport=function(){var e=this.scrollable.getScrollDimensions();var t=this.scrollable.getCurrentScrollPosition();return new En(t.scrollTop,t.scrollLeft,e.width,e.height)};t.prototype.getFutureViewport=function(){var e=this.scrollable.getScrollDimensions();var t=this.scrollable.getFutureScrollPosition();return new En(t.scrollTop,t.scrollLeft,e.width,e.height)};t.prototype._computeScrollWidth=function(e,t){var n;if(!this._configuration.editor.wrappingInfo.isViewportWrapping){var r=this._configuration.editor.viewInfo.scrollBeyondLastColumn*this._configuration.editor.fontInfo.typicalHalfwidthCharacterWidth;var i=this._linesLayout.getWhitespaceMinWidth();return Math.max(e+r,t,i)}return Math.max(e,t)};t.prototype.onMaxLineWidthChanged=function(e){var t=this._computeScrollWidth(e,this.getCurrentViewport().width);this.scrollable.setScrollDimensions({scrollWidth:t});this._updateHeight()};t.prototype.saveState=function(){var e=this.scrollable.getFutureScrollPosition();var t=e.scrollTop;var n=this._linesLayout.getLineNumberAtOrAfterVerticalOffset(t);var r;return{scrollTop:t,scrollTopWithoutViewZones:t-this._linesLayout.getWhitespaceAccumulatedHeightBeforeLineNumber(n),scrollLeft:e.scrollLeft}};t.prototype.addWhitespace=function(e,t,n,r){return this._linesLayout.insertWhitespace(e,t,n,r)};t.prototype.changeWhitespace=function(e,t,n){return this._linesLayout.changeWhitespace(e,t,n)};t.prototype.removeWhitespace=function(e){return this._linesLayout.removeWhitespace(e)};t.prototype.getVerticalOffsetForLineNumber=function(e){return this._linesLayout.getVerticalOffsetForLineNumber(e)};t.prototype.isAfterLines=function(e){return this._linesLayout.isAfterLines(e)};t.prototype.getLineNumberAtVerticalOffset=function(e){return this._linesLayout.getLineNumberAtOrAfterVerticalOffset(e)};t.prototype.getWhitespaceAtVerticalOffset=function(e){return this._linesLayout.getWhitespaceAtVerticalOffset(e)};t.prototype.getLinesViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getLinesViewportData(e.top,e.top+e.height)};t.prototype.getLinesViewportDataAtScrollTop=function(e){var t=this.scrollable.getScrollDimensions();e+t.height>t.scrollHeight&&(e=t.scrollHeight-t.height);e<0&&(e=0);return this._linesLayout.getLinesViewportData(e,e+t.height)};t.prototype.getWhitespaceViewportData=function(){var e=this.getCurrentViewport();return this._linesLayout.getWhitespaceViewportData(e.top,e.top+e.height)};t.prototype.getWhitespaces=function(){return this._linesLayout.getWhitespaces()};t.prototype.getScrollWidth=function(){var e;return this.scrollable.getScrollDimensions().scrollWidth};t.prototype.getScrollHeight=function(){var e;return this.scrollable.getScrollDimensions().scrollHeight};t.prototype.getCurrentScrollLeft=function(){var e;return this.scrollable.getCurrentScrollPosition().scrollLeft};t.prototype.getCurrentScrollTop=function(){var e;return this.scrollable.getCurrentScrollPosition().scrollTop};t.prototype.validateScrollPosition=function(e){return this.scrollable.validateScrollPosition(e)};t.prototype.setScrollPositionNow=function(e){this.scrollable.setScrollPositionNow(e)};t.prototype.setScrollPositionSmooth=function(e){this.scrollable.setScrollPositionSmooth(e)};t.prototype.deltaScrollNow=function(e,t){var n=this.scrollable.getCurrentScrollPosition();this.scrollable.setScrollPositionNow({scrollLeft:n.scrollLeft+e,scrollTop:n.scrollTop+t})};return t}(me["a"]);var id=function(){function e(e,t){this.outputLineIndex=e;this.outputOffset=t}return e}();var od=function(){function e(e){this._lines=e}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);var n=this._lines.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);return new p["a"](t.lineNumber,t.column,n.lineNumber,n.column)};e.prototype.validateViewPosition=function(e,t){return this._lines.validateViewPosition(e.lineNumber,e.column,t)};e.prototype.validateViewRange=function(e,t){var n=this._lines.validateViewPosition(e.startLineNumber,e.startColumn,t.getStartPosition());var r=this._lines.validateViewPosition(e.endLineNumber,e.endColumn,t.getEndPosition());return new p["a"](n.lineNumber,n.column,r.lineNumber,r.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);var n=this._lines.convertModelPositionToViewPosition(e.endLineNumber,e.endColumn);return new p["a"](t.lineNumber,t.column,n.lineNumber,n.column)};e.prototype.modelPositionIsVisible=function(e){return this._lines.modelPositionIsVisible(e.lineNumber,e.column)};return e}();var ad=function(){function e(e,t,n,r,i,o){this.model=e;this._validModelVersionId=-1;this.tabSize=n;this.wrappingColumn=r;this.columnsForFullWidthChar=i;this.wrappingIndent=o;this.linePositionMapperFactory=t;this._constructLines(!0)}e.prototype.dispose=function(){this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,[])};e.prototype.createCoordinatesConverter=function(){return new od(this)};e.prototype._ensureValidState=function(){var e;if(this.model.getVersionId()!==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=[]);var n=this.model.getLinesContent();var r=n.length;var i=new Uint32Array(r);var o=this.hiddenAreasIds.map(function(e){return t.model.getDecorationRange(e)}).sort(p["a"].compareRangesUsingStarts);var a=1,s=0;var u=-1;var l=u+1<o.length?s+1:r+2;for(var c=0;c<r;c++){var d=c+1;if(d===l){a=o[++u].startLineNumber;s=o[u].endLineNumber;l=u+1<o.length?s+1:r+2}var h=d>=a&&d<=s;var f=cd(this.linePositionMapperFactory,n[c],this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,!h);i[c]=f.getViewLineCount();this.lines[c]=f}this._validModelVersionId=this.model.getVersionId();this.prefixSumComputer=new Mt(i)};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[];var n=e.map(function(e){return t.model.validateRange(e)}).sort(p["a"].compareRangesUsingStarts);var r=[];var i=n[0].startLineNumber;var o=n[0].endLineNumber;for(var a=1,s=n.length;a<s;a++){var u=n[a];if(u.startLineNumber>o+1){r.push(new p["a"](i,1,o,1));i=u.startLineNumber;o=u.endLineNumber}else u.endLineNumber>o&&(o=u.endLineNumber)}r.push(new p["a"](i,1,o,1));return r};e.prototype.setHiddenAreas=function(e){var t=this;var n=this._reduceRanges(e);var r=this.hiddenAreasIds.map(function(e){return t.model.getDecorationRange(e)}).sort(p["a"].compareRangesUsingStarts);if(n.length===r.length){var i=!1;for(var o=0;o<n.length;o++)if(!n[o].equalsRange(r[o])){i=!0;break}if(!i)return!1}var a=[];for(var o=0;o<n.length;o++)a.push({range:n[o],options:bs["a"].EMPTY});this.hiddenAreasIds=this.model.deltaDecorations(this.hiddenAreasIds,a);var s=n;var u=1,l=0;var c=-1;var d=c+1<s.length?l+1:this.lines.length+2;var h=!1;for(var o=0;o<this.lines.length;o++){var f=o+1;if(f===d){u=s[++c].startLineNumber;l=s[c].endLineNumber;d=c+1<s.length?l+1:this.lines.length+2}var g=!1;if(f>=u&&f<=l){if(this.lines[o].isVisible()){this.lines[o]=this.lines[o].setVisible(!1);g=!0}}else{h=!0;if(!this.lines[o].isVisible()){this.lines[o]=this.lines[o].setVisible(!0);g=!0}}if(g){var v=this.lines[o].getViewLineCount();this.prefixSumComputer.changeValue(o,v)}}h||this.setHiddenAreas([]);return!0};e.prototype.modelPositionIsVisible=function(e,t){if(e<1||e>this.lines.length)return!1;return this.lines[e-1].isVisible()};e.prototype.setTabSize=function(e){if(this.tabSize===e)return!1;this.tabSize=e;this._constructLines(!1);return!0};e.prototype.setWrappingSettings=function(e,t,n){if(this.wrappingIndent===e&&this.wrappingColumn===t&&this.columnsForFullWidthChar===n)return!1;this.wrappingIndent=e;this.wrappingColumn=t;this.columnsForFullWidthChar=n;this._constructLines(!1);return!0};e.prototype.onModelFlushed=function(){this._constructLines(!0)};e.prototype.onModelLinesDeleted=function(e,t,n){if(e<=this._validModelVersionId)return null;var r=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1;var i=this.prefixSumComputer.getAccumulatedValue(n-1);this.lines.splice(t-1,n-t+1);this.prefixSumComputer.removeValues(t-1,n-t+1);return new es(r,i)};e.prototype.onModelLinesInserted=function(e,t,n,r){if(e<=this._validModelVersionId)return null;var i=this.getHiddenAreas();var o=!1;var a=new f["a"](t,1);for(var s=0;s<i.length;s++)if(i[s].containsPosition(a)){o=!0;break}var u=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1;var l=0;var c=[];var d=new Uint32Array(r.length);for(var s=0,h=r.length;s<h;s++){var p=cd(this.linePositionMapperFactory,r[s],this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,!o);c.push(p);var g=p.getViewLineCount();l+=g;d[s]=g}this.lines=this.lines.slice(0,t-1).concat(c).concat(this.lines.slice(t-1));this.prefixSumComputer.insertValues(t-1,d);return new ts(u,u+l-1)};e.prototype.onModelLineChanged=function(e,t,n){if(e<=this._validModelVersionId)return[!1,null,null,null];var r=t-1;var i=this.lines[r].getViewLineCount();var o=this.lines[r].isVisible();var a=cd(this.linePositionMapperFactory,n,this.tabSize,this.wrappingColumn,this.columnsForFullWidthChar,this.wrappingIndent,o);this.lines[r]=a;var s=this.lines[r].getViewLineCount();var u=!1;var l=0;var c=-1;var d=0;var h=-1;var f=0;var p=-1;if(i>s){p=(f=(c=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+s-1)+1)+(i-s)-1;u=!0}else if(i<s){h=(d=(c=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+i-1)+1)+(s-i)-1;u=!0}else c=(l=1===t?1:this.prefixSumComputer.getAccumulatedValue(t-2)+1)+s-1;this.prefixSumComputer.changeValue(r,s);var g;var v;var m;return[u,l<=c?new $a(l,c):null,d<=h?new ts(d,h):null,f<=p?new es(f,p):null]};e.prototype.acceptVersionId=function(e){this._validModelVersionId=e;1!==this.lines.length||this.lines[0].isVisible()||this.setHiddenAreas([])};e.prototype.getViewLineCount=function(){this._ensureValidState();return this.prefixSumComputer.getTotalValue()};e.prototype._toValidViewLineNumber=function(e){if(e<1)return 1;var t=this.getViewLineCount();if(e>t)return t;return e};e.prototype.warmUpLookupCache=function(e,t){this.prefixSumComputer.warmUpCache(e-1,t-1)};e.prototype.getActiveIndentGuide=function(e,t,n){this._ensureValidState();e=this._toValidViewLineNumber(e);t=this._toValidViewLineNumber(t);n=this._toValidViewLineNumber(n);var r=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e));var i=this.convertViewPositionToModelPosition(t,this.getViewLineMinColumn(t));var o=this.convertViewPositionToModelPosition(n,this.getViewLineMinColumn(n));var a=this.model.getActiveIndentGuide(r.lineNumber,i.lineNumber,o.lineNumber);var s=this.convertModelPositionToViewPosition(a.startLineNumber,1);var u=this.convertModelPositionToViewPosition(a.endLineNumber,this.model.getLineMaxColumn(a.endLineNumber));return{startLineNumber:s.lineNumber,endLineNumber:u.lineNumber,indent:a.indent}};e.prototype.getViewLinesIndentGuides=function(e,t){this._ensureValidState();e=this._toValidViewLineNumber(e);t=this._toValidViewLineNumber(t);var n=this.convertViewPositionToModelPosition(e,this.getViewLineMinColumn(e));var r=this.convertViewPositionToModelPosition(t,this.getViewLineMaxColumn(t));var i=[];var o=[];var a=[];var s=n.lineNumber-1;var u=r.lineNumber-1;var l=null;for(var c=s;c<=u;c++){var d=this.lines[c];if(d.isVisible()){var h=d.getViewLineNumberOfModelPosition(0,c===s?n.column:1);var p=d.getViewLineNumberOfModelPosition(0,this.model.getLineMaxColumn(c+1));var g;var v=0;(g=p-h+1)>1&&1===d.getViewLineMinColumn(this.model,c+1,p)&&(v=0===h?1:2);o.push(g);a.push(v);null===l&&(l=new f["a"](c+1,0))}else if(null!==l){i=i.concat(this.model.getLinesIndentGuides(l.lineNumber,c));l=null}}if(null!==l){i=i.concat(this.model.getLinesIndentGuides(l.lineNumber,r.lineNumber));l=null}var m=t-e+1;var _=new Array(m);var y=0;for(var b=0,C=i.length;b<C;b++){var w=i[b];var g=Math.min(m-y,o[b]);var v;var S=void 0;S=2===(v=a[b])?0:1===v?1:g;for(var L=0;L<g;L++){L===S&&(w=0);_[y++]=w}}return _};e.prototype.getViewLineContent=function(e){this._ensureValidState();e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1);var n=t.index;var r=t.remainder;return this.lines[n].getViewLineContent(this.model,n+1,r)};e.prototype.getViewLineLength=function(e){this._ensureValidState();e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1);var n=t.index;var r=t.remainder;return this.lines[n].getViewLineLength(this.model,n+1,r)};e.prototype.getViewLineMinColumn=function(e){this._ensureValidState();e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1);var n=t.index;var r=t.remainder;return this.lines[n].getViewLineMinColumn(this.model,n+1,r)};e.prototype.getViewLineMaxColumn=function(e){this._ensureValidState();e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1);var n=t.index;var r=t.remainder;return this.lines[n].getViewLineMaxColumn(this.model,n+1,r)};e.prototype.getViewLineData=function(e){this._ensureValidState();e=this._toValidViewLineNumber(e);var t=this.prefixSumComputer.getIndexOf(e-1);var n=t.index;var r=t.remainder;return this.lines[n].getViewLineData(this.model,n+1,r)};e.prototype.getViewLinesData=function(e,t,n){this._ensureValidState();e=this._toValidViewLineNumber(e);t=this._toValidViewLineNumber(t);var r=this.prefixSumComputer.getIndexOf(e-1);var i=e;var o=r.index;var a=r.remainder;var s=[];for(var u=o,l=this.model.getLineCount();u<l;u++){var c=this.lines[u];if(!c.isVisible())continue;var d=u===o?a:0;var h=c.getViewLineCount()-d;var f=!1;if(i+h>t){f=!0;h=t-i+1}var p=d+h;c.getViewLinesData(this.model,u+1,d,p,i-e,n,s);i+=h;if(f)break}return s};e.prototype.validateViewPosition=function(e,t,n){this._ensureValidState();e=this._toValidViewLineNumber(e);var r=this.prefixSumComputer.getIndexOf(e-1);var i=r.index;var o=r.remainder;var a=this.lines[i];var s=a.getViewLineMinColumn(this.model,i+1,o);var u=a.getViewLineMaxColumn(this.model,i+1,o);t<s&&(t=s);t>u&&(t=u);var l=a.getModelColumnOfViewPosition(o,t);var c;if(this.model.validatePosition(new f["a"](i+1,l)).equals(n))return new f["a"](e,t);return this.convertModelPositionToViewPosition(n.lineNumber,n.column)};e.prototype.convertViewPositionToModelPosition=function(e,t){this._ensureValidState();e=this._toValidViewLineNumber(e);var n=this.prefixSumComputer.getIndexOf(e-1);var r=n.index;var i=n.remainder;var o=this.lines[r].getModelColumnOfViewPosition(i,t);return this.model.validatePosition(new f["a"](r+1,o))};e.prototype.convertModelPositionToViewPosition=function(e,t){this._ensureValidState();var n=this.model.validatePosition(new f["a"](e,t));var r=n.lineNumber;var i=n.column;var o=r-1,a=!1;for(;o>0&&!this.lines[o].isVisible();){o--;a=!0}if(0===o&&!this.lines[o].isVisible())return new f["a"](1,1);var s=1+(0===o?0:this.prefixSumComputer.getAccumulatedValue(o-1));var u;return u=a?this.lines[o].getViewPositionOfModelPosition(s,this.model.getLineMaxColumn(o+1)):this.lines[r-1].getViewPositionOfModelPosition(s,i)};e.prototype._getViewLineNumberForModelPosition=function(e,t){var n=e-1;if(this.lines[n].isVisible()){var r=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(r,t)}for(;n>0&&!this.lines[n].isVisible();)n--;if(0===n&&!this.lines[n].isVisible())return 1;var i=1+(0===n?0:this.prefixSumComputer.getAccumulatedValue(n-1));return this.lines[n].getViewLineNumberOfModelPosition(i,this.model.getLineMaxColumn(n+1))};e.prototype.getAllOverviewRulerDecorations=function(e,t,n){var r=this.model.getOverviewRulerDecorations(e,t);var i=new fd;for(var o=0,a=r.length;o<a;o++){var s=r[o];var u=s.options.overviewRuler;var l=u?u.position:0;if(0===l)continue;var c=u.getColor(n);var d=this._getViewLineNumberForModelPosition(s.range.startLineNumber,s.range.startColumn);var h=this._getViewLineNumberForModelPosition(s.range.endLineNumber,s.range.endColumn);i.accept(c,d,h,l)}return i.result};e.prototype.getDecorationsInRange=function(e,t,n){var r=this.convertViewPositionToModelPosition(e.startLineNumber,e.startColumn);var i=this.convertViewPositionToModelPosition(e.endLineNumber,e.endColumn);if(i.lineNumber-r.lineNumber<=e.endLineNumber-e.startLineNumber)return this.model.getDecorationsInRange(new p["a"](r.lineNumber,1,i.lineNumber,i.column),t,n);var o=[];var a=r.lineNumber-1;var s=i.lineNumber-1;var u=null;for(var l=a;l<=s;l++){var c;if(this.lines[l].isVisible())null===u&&(u=new f["a"](l+1,l===a?r.column:1));else if(null!==u){var d=this.model.getLineMaxColumn(l);o=o.concat(this.model.getDecorationsInRange(new p["a"](u.lineNumber,u.column,l,d),t,n));u=null}}if(null!==u){o=o.concat(this.model.getDecorationsInRange(new p["a"](u.lineNumber,u.column,i.lineNumber,i.column),t,n));u=null}o.sort(function(e,t){var n=p["a"].compareRangesUsingStarts(e.range,t.range);if(0===n){if(e.id<t.id)return-1;if(e.id>t.id)return 1;return 0}return n});var h=[],g=0;var v=null;for(var m=0,_=o.length;m<_;m++){var y=o[m];var b=y.id;if(v===b)continue;v=b;h[g++]=y}return h};return e}();var sd=function(){function e(){}e.prototype.isVisible=function(){return!0};e.prototype.setVisible=function(e){if(e)return this;return ud.INSTANCE};e.prototype.getViewLineCount=function(){return 1};e.prototype.getViewLineContent=function(e,t,n){return e.getLineContent(t)};e.prototype.getViewLineLength=function(e,t,n){return e.getLineLength(t)};e.prototype.getViewLineMinColumn=function(e,t,n){return e.getLineMinColumn(t)};e.prototype.getViewLineMaxColumn=function(e,t,n){return e.getLineMaxColumn(t)};e.prototype.getViewLineData=function(e,t,n){var r=e.getLineTokens(t);var i=r.getLineContent();return new An(i,!1,1,i.length+1,r.inflate())};e.prototype.getViewLinesData=function(e,t,n,r,i,o,a){if(!o[i]){a[i]=null;return}a[i]=this.getViewLineData(e,t,0)};e.prototype.getModelColumnOfViewPosition=function(e,t){return t};e.prototype.getViewPositionOfModelPosition=function(e,t){return new f["a"](e,t)};e.prototype.getViewLineNumberOfModelPosition=function(e,t){return e};e.INSTANCE=new e;return e}();var ud=function(){function e(){}e.prototype.isVisible=function(){return!1};e.prototype.setVisible=function(e){if(!e)return this;return sd.INSTANCE};e.prototype.getViewLineCount=function(){return 0};e.prototype.getViewLineContent=function(e,t,n){throw new Error("Not supported")};e.prototype.getViewLineLength=function(e,t,n){throw new Error("Not supported")};e.prototype.getViewLineMinColumn=function(e,t,n){throw new Error("Not supported")};e.prototype.getViewLineMaxColumn=function(e,t,n){throw new Error("Not supported")};e.prototype.getViewLineData=function(e,t,n){throw new Error("Not supported")};e.prototype.getViewLinesData=function(e,t,n,r,i,o,a){throw new Error("Not supported")};e.prototype.getModelColumnOfViewPosition=function(e,t){throw new Error("Not supported")};e.prototype.getViewPositionOfModelPosition=function(e,t){throw new Error("Not supported")};e.prototype.getViewLineNumberOfModelPosition=function(e,t){throw new Error("Not supported")};e.INSTANCE=new e;return e}();var ld=function(){function e(e,t){this.positionMapper=e;this.wrappedIndent=this.positionMapper.getWrappedLinesIndent();this.wrappedIndentLength=this.wrappedIndent.length;this.outputLineCount=this.positionMapper.getOutputLineCount();this._isVisible=t}e.prototype.isVisible=function(){return this._isVisible};e.prototype.setVisible=function(e){this._isVisible=e;return this};e.prototype.getViewLineCount=function(){if(!this._isVisible)return 0;return this.outputLineCount};e.prototype.getInputStartOffsetOfOutputLineIndex=function(e){return this.positionMapper.getInputOffsetOfOutputPosition(e,0)};e.prototype.getInputEndOffsetOfOutputLineIndex=function(e,t,n){if(n+1===this.outputLineCount)return e.getLineMaxColumn(t)-1;return this.positionMapper.getInputOffsetOfOutputPosition(n+1,0)};e.prototype.getViewLineContent=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var r=this.getInputStartOffsetOfOutputLineIndex(n);var i=this.getInputEndOffsetOfOutputLineIndex(e,t,n);var o=e.getValueInRange({startLineNumber:t,startColumn:r+1,endLineNumber:t,endColumn:i+1});n>0&&(o=this.wrappedIndent+o);return o};e.prototype.getViewLineLength=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var r=this.getInputStartOffsetOfOutputLineIndex(n);var i;var o=this.getInputEndOffsetOfOutputLineIndex(e,t,n)-r;n>0&&(o=this.wrappedIndent.length+o);return o};e.prototype.getViewLineMinColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");if(n>0)return this.wrappedIndentLength+1;return 1};e.prototype.getViewLineMaxColumn=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");return this.getViewLineContent(e,t,n).length+1};e.prototype.getViewLineData=function(e,t,n){if(!this._isVisible)throw new Error("Not supported");var r=this.getInputStartOffsetOfOutputLineIndex(n);var i=this.getInputEndOffsetOfOutputLineIndex(e,t,n);var o=e.getValueInRange({startLineNumber:t,startColumn:r+1,endLineNumber:t,endColumn:i+1});n>0&&(o=this.wrappedIndent+o);var a=n>0?this.wrappedIndentLength+1:1;var s=o.length+1;var u=n+1<this.getViewLineCount();var l=0;n>0&&(l=this.wrappedIndentLength);var c=e.getLineTokens(t);return new An(o,u,a,s,c.sliceAndInflate(r,i,l))};e.prototype.getViewLinesData=function(e,t,n,r,i,o,a){if(!this._isVisible)throw new Error("Not supported");for(var s=n;s<r;s++){var u=i+s-n;if(!o[u]){a[u]=null;continue}a[u]=this.getViewLineData(e,t,s)}};e.prototype.getModelColumnOfViewPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=t-1;e>0&&(n<this.wrappedIndentLength?n=0:n-=this.wrappedIndentLength);return this.positionMapper.getInputOffsetOfOutputPosition(e,n)+1};e.prototype.getViewPositionOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n=this.positionMapper.getOutputPositionOfInputOffset(t-1);var r=n.outputLineIndex;var i=n.outputOffset+1;r>0&&(i+=this.wrappedIndentLength);return new f["a"](e+r,i)};e.prototype.getViewLineNumberOfModelPosition=function(e,t){if(!this._isVisible)throw new Error("Not supported");var n;return e+this.positionMapper.getOutputPositionOfInputOffset(t-1).outputLineIndex};return e}();function cd(e,t,n,r,i,o,a){var s=e.createLineMapping(t,n,r,i,o);if(null===s){if(a)return sd.INSTANCE;return ud.INSTANCE}return new ld(s,a)}var dd=function(){function e(e){this._lines=e}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();if(e.lineNumber<1||e.lineNumber>t)return!1;return!0};return e}();var hd=function(){function e(e){this.model=e}e.prototype.dispose=function(){};e.prototype.createCoordinatesConverter=function(){return new dd(this)};e.prototype.getHiddenAreas=function(){return[]};e.prototype.setHiddenAreas=function(e){return!1};e.prototype.setTabSize=function(e){return!1};e.prototype.setWrappingSettings=function(e,t,n){return!1};e.prototype.onModelFlushed=function(){};e.prototype.onModelLinesDeleted=function(e,t,n){return new es(t,n)};e.prototype.onModelLinesInserted=function(e,t,n,r){return new ts(t,n)};e.prototype.onModelLineChanged=function(e,t,n){return[!1,new $a(t,t),null,null]};e.prototype.acceptVersionId=function(e){};e.prototype.getViewLineCount=function(){return this.model.getLineCount()};e.prototype.warmUpLookupCache=function(e,t){};e.prototype.getActiveIndentGuide=function(e,t,n){return{startLineNumber:e,endLineNumber:e,indent:0}};e.prototype.getViewLinesIndentGuides=function(e,t){var n=t-e+1;var r=new Array(n);for(var i=0;i<n;i++)r[i]=0;return r};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);var n=t.getLineContent();return new An(n,!1,1,n.length+1,t.inflate())};e.prototype.getViewLinesData=function(e,t,n){var r=this.model.getLineCount();e=Math.min(Math.max(1,e),r);t=Math.min(Math.max(1,t),r);var i=[];for(var o=e;o<=t;o++){var a=o-e;n[a]||(i[a]=null);i[a]=this.getViewLineData(o)}return i};e.prototype.getAllOverviewRulerDecorations=function(e,t,n){var r=this.model.getOverviewRulerDecorations(e,t);var i=new fd;for(var o=0,a=r.length;o<a;o++){var s=r[o];var u=s.options.overviewRuler;var l=u?u.position:0;if(0===l)continue;var c=u.getColor(n);var d=s.range.startLineNumber;var h=s.range.endLineNumber;i.accept(c,d,h,l)}return i.result};e.prototype.getDecorationsInRange=function(e,t,n){return this.model.getDecorationsInRange(e,t,n)};return e}();var fd=function(){function e(){this.result=Object.create(null)}e.prototype.accept=function(e,t,n,r){var i=this.result[e];if(i){var o=i[i.length-3];var a=i[i.length-1];if(o===r&&a+1>=t){n>a&&(i[i.length-1]=n);return}i.push(r,t,n)}else this.result[e]=[r,t,n]};return e}();var pd=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var gd=function(e){pd(t,e);function t(t,n,r){var i=e.call(this,0)||this;for(var o=0;o<t.length;o++)i.set(t.charCodeAt(o),1);for(var o=0;o<n.length;o++)i.set(n.charCodeAt(o),2);for(var o=0;o<r.length;o++)i.set(r.charCodeAt(o),3);return i}t.prototype.get=function(t){if(t>=12352&&t<=12543||t>=13312&&t<=19903||t>=19968&&t<=40959)return 4;return e.prototype.get.call(this,t)};return t}(Ot["a"]);var vd=function(){function e(e,t,n){this.classifier=new gd(e,t,n)}e.nextVisibleColumn=function(e,t,n,r){e=+e;t=+t;r=+r;if(n)return e+(t-e%t);return e+r};e.prototype.createLineMapping=function(t,n,r,i,o){if(-1===r)return null;n=+n;r=+r;i=+i;var a=0;var s="";var u=-1;if(0!==(o=+o)&&-1!==(u=$["m"](t))){s=t.substring(0,u);for(var l=0;l<u;l++)a=e.nextVisibleColumn(a,n,9===t.charCodeAt(l),1);var c=0;2===o?c=1:3===o&&(c=2);for(var l=0;l<c;l++){s+="\t";a=e.nextVisibleColumn(a,n,!0,1)}if(a+i>r){s="";a=0}}var d=this.classifier;var h=0;var f=[];var p=0;var g=0;var v=-1;var m=0;var _=-1;var y=0;var b=t.length;for(var l=0;l<b;l++){var C=t.charCodeAt(l);var w=9===C;var S=d.get(C);if(1===S){v=l;m=a}if(4===S&&l>0){var L=t.charCodeAt(l-1);var I;if(1!==d.get(L)){v=l;m=a}}var x=1;$["r"](C)&&(x=i);if((g=e.nextVisibleColumn(g,n,w,x))>r&&0!==l){var N=void 0;var M=void 0;if(-1!==v&&m<=r){N=v;M=m}else if(-1!==_&&y<=r){N=_;M=y}else{N=l;M=a}f[p++]=N-h;h=N;g=e.nextVisibleColumn(M,n,w,x);v=-1;m=0;_=-1;y=0}-1!==v&&(m=e.nextVisibleColumn(m,n,w,x));-1!==_&&(y=e.nextVisibleColumn(y,n,w,x));if(2===S&&(0===o||l>=u)){v=l+1;m=a}if(4===S&&l<b-1){var D=t.charCodeAt(l+1);var k;if(2!==d.get(D)){v=l+1;m=a}}if(3===S){_=l+1;y=a}}if(0===p)return null;f[p++]=b-h;return new md(new Nt(Object(It["c"])(f)),s)};return e}();var md=function(){function e(e,t){this._prefixSums=e;this._wrappedLinesIndent=t}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 id(t.index,t.remainder)};return e}();var _d=function(){function e(e,t,n,r,i){this.editorId=e;this.model=t;this.configuration=n;this._linesCollection=r;this._coordinatesConverter=i;this._decorationsCache=Object.create(null);this._clearCachedModelDecorationsResolver()}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 t=e.id;var n=this._decorationsCache[t];if(!n){var r=e.range;var i=e.options;var o=void 0;if(i.isWholeLine){var a=this._coordinatesConverter.convertModelPositionToViewPosition(new f["a"](r.startLineNumber,1));var s=this._coordinatesConverter.convertModelPositionToViewPosition(new f["a"](r.endLineNumber,this.model.getLineMaxColumn(r.endLineNumber)));o=new p["a"](a.lineNumber,a.column,s.lineNumber,s.column)}else o=this._coordinatesConverter.convertModelRangeToViewRange(r);n=new jn(o,i);this._decorationsCache[t]=n}return n};e.prototype.getDecorationsViewportData=function(e){var t=!0;if(!(t=(t=t&&null!==this._cachedModelDecorationsResolver)&&e.equalsRange(this._cachedModelDecorationsResolverViewRange))){this._cachedModelDecorationsResolver=this._getDecorationsViewportData(e);this._cachedModelDecorationsResolverViewRange=e}return this._cachedModelDecorationsResolver};e.prototype._getDecorationsViewportData=function(e){var t=this._linesCollection.getDecorationsInRange(e,this.editorId,this.configuration.editor.readOnly);var n=e.startLineNumber;var r=e.endLineNumber;var i=[],o=0;var a=[];for(var s=n;s<=r;s++)a[s-n]=[];for(var u=0,l=t.length;u<l;u++){var c=t[u];var d=c.options;var h=this._getOrCreateViewModelDecoration(c);var f=h.range;i[o++]=h;if(d.inlineClassName){var g=new Pn(f,d.inlineClassName,d.inlineClassNameAffectsLetterSpacing?3:0);var v=Math.max(n,f.startLineNumber);var m=Math.min(r,f.endLineNumber);for(var s=v;s<=m;s++)a[s-n].push(g)}if(d.beforeContentClassName&&n<=f.startLineNumber&&f.startLineNumber<=r){var g=new Pn(new p["a"](f.startLineNumber,f.startColumn,f.startLineNumber,f.startColumn),d.beforeContentClassName,1);a[f.startLineNumber-n].push(g)}if(d.afterContentClassName&&n<=f.endLineNumber&&f.endLineNumber<=r){var g=new Pn(new p["a"](f.endLineNumber,f.endColumn,f.endLineNumber,f.endColumn),d.afterContentClassName,2);a[f.endLineNumber-n].push(g)}}return{decorations:i,inlineDecorations:a}};return e}();var yd=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var bd=!0;var Cd=function(e){yd(t,e);function t(t,n,r,i){var o=e.call(this)||this;o.editorId=t;o.configuration=n;o.model=r;o.hasFocus=!1;o.viewportStartLine=-1;o.viewportStartLineTrackedRange=null;o.viewportStartLineDelta=0;if(bd&&o.model.isTooLargeForTokenization())o.lines=new hd(o.model);else{var a=o.configuration.editor;var s=new vd(a.wrappingInfo.wordWrapBreakBeforeCharacters,a.wrappingInfo.wordWrapBreakAfterCharacters,a.wrappingInfo.wordWrapBreakObtrusiveCharacters);o.lines=new ad(o.model,s,o.model.getOptions().tabSize,a.wrappingInfo.wrappingColumn,a.fontInfo.typicalFullwidthCharacterWidth/a.fontInfo.typicalHalfwidthCharacterWidth,a.wrappingInfo.wrappingIndent)}o.coordinatesConverter=o.lines.createCoordinatesConverter();o.viewLayout=o._register(new rd(o.configuration,o.getLineCount(),i));o._register(o.viewLayout.onDidScroll(function(e){try{var t;o._beginEmit().emit(new rs(e))}finally{o._endEmit()}}));o.decorations=new _d(o.editorId,o.model,o.configuration,o.lines,o.coordinatesConverter);o._registerModelEvents();o._register(o.configuration.onDidChange(function(e){try{var t=o._beginEmit();o._onConfigurationChanged(t,e)}finally{o._endEmit()}}));o._register(Tl.getInstance().onDidChange(function(){try{var e;o._beginEmit().emit(new as)}finally{o._endEmit()}}));return o}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.setHasFocus=function(e){this.hasFocus=e};t.prototype._onConfigurationChanged=function(e,t){var n=null;if(-1!==this.viewportStartLine){var r=new f["a"](this.viewportStartLine,this.getLineMinColumn(this.viewportStartLine));n=this.coordinatesConverter.convertViewPositionToModelPosition(r)}var i=!1;var o=this.configuration.editor;if(this.lines.setWrappingSettings(o.wrappingInfo.wrappingIndent,o.wrappingInfo.wrappingColumn,o.fontInfo.typicalFullwidthCharacterWidth/o.fontInfo.typicalHalfwidthCharacterWidth)){e.emit(new qa);e.emit(new Xa);e.emit(new Qa);this.decorations.onLineMappingChanged();this.viewLayout.onFlushed(this.getLineCount());0!==this.viewLayout.getCurrentScrollTop()&&(i=!0)}if(t.readOnly){this.decorations.reset();e.emit(new Qa)}e.emit(new Ya(t));this.viewLayout.onConfigurationChanged(t);if(i&&n){var a=this.coordinatesConverter.convertModelPositionToViewPosition(n);var s=this.viewLayout.getVerticalOffsetForLineNumber(a.lineNumber);this.viewLayout.setScrollPositionNow({scrollTop:s+this.viewportStartLineDelta})}};t.prototype._registerModelEvents=function(){var e=this;this._register(this.model.onDidChangeRawContentFast(function(t){try{var n=e._beginEmit();var r=!1;var i=!1;var o=t.changes;var a=t.versionId;for(var s=0,u=o.length;s<u;s++){var l=o[s];switch(l.changeType){case 1:e.lines.onModelFlushed();n.emit(new qa);e.decorations.reset();e.viewLayout.onFlushed(e.getLineCount());r=!0;break;case 3:var c;if(null!==(c=e.lines.onModelLinesDeleted(a,l.fromLineNumber,l.toLineNumber))){n.emit(c);e.viewLayout.onLinesDeleted(c.fromLineNumber,c.toLineNumber)}r=!0;break;case 4:var d;if(null!==(d=e.lines.onModelLinesInserted(a,l.fromLineNumber,l.toLineNumber,l.detail))){n.emit(d);e.viewLayout.onLinesInserted(d.fromLineNumber,d.toLineNumber)}r=!0;break;case 2:var h=e.lines.onModelLineChanged(a,l.lineNumber,l.detail),f=h[0],p=h[1],d=h[2],c=h[3];i=f;p&&n.emit(p);if(d){n.emit(d);e.viewLayout.onLinesInserted(d.fromLineNumber,d.toLineNumber)}if(c){n.emit(c);e.viewLayout.onLinesDeleted(c.fromLineNumber,c.toLineNumber)}}}e.lines.acceptVersionId(a);e.viewLayout.onHeightMaybeChanged();if(!r&&i){n.emit(new Xa);n.emit(new Qa);e.decorations.onLineMappingChanged()}}finally{e._endEmit()}e.viewportStartLine=-1;e.configuration.setMaxLineNumber(e.model.getLineCount());if(!e.hasFocus&&e.model.getAttachedEditorCount()>=2&&e.viewportStartLineTrackedRange){var g=e.model._getTrackedRange(e.viewportStartLineTrackedRange);if(g){var v=e.coordinatesConverter.convertModelPositionToViewPosition(g.getStartPosition());var m=e.viewLayout.getVerticalOffsetForLineNumber(v.lineNumber);e.viewLayout.setScrollPositionNow({scrollTop:m+e.viewportStartLineDelta})}}}));this._register(this.model.onDidChangeTokens(function(t){var n=[];for(var r=0,i=t.ranges.length;r<i;r++){var o=t.ranges[r];var a=e.coordinatesConverter.convertModelPositionToViewPosition(new f["a"](o.fromLineNumber,1)).lineNumber;var s=e.coordinatesConverter.convertModelPositionToViewPosition(new f["a"](o.toLineNumber,e.model.getLineMaxColumn(o.toLineNumber))).lineNumber;n[r]={fromLineNumber:a,toLineNumber:s}}try{var u;e._beginEmit().emit(new is(n))}finally{e._endEmit()}}));this._register(this.model.onDidChangeLanguageConfiguration(function(t){try{var n;e._beginEmit().emit(new us)}finally{e._endEmit()}}));this._register(this.model.onDidChangeOptions(function(t){if(e.lines.setTabSize(e.model.getOptions().tabSize)){e.decorations.onLineMappingChanged();e.viewLayout.onFlushed(e.getLineCount());try{var n=e._beginEmit();n.emit(new qa);n.emit(new Xa);n.emit(new Qa)}finally{e._endEmit()}}}));this._register(this.model.onDidChangeDecorations(function(t){e.decorations.onModelDecorationsChanged();try{var n;e._beginEmit().emit(new Qa)}finally{e._endEmit()}}))};t.prototype.setHiddenAreas=function(e){try{var t=this._beginEmit();var n;if(this.lines.setHiddenAreas(e)){t.emit(new qa);t.emit(new Xa);t.emit(new Qa);this.decorations.onLineMappingChanged();this.viewLayout.onFlushed(this.getLineCount());this.viewLayout.onHeightMaybeChanged()}}finally{this._endEmit()}};t.prototype.getVisibleRanges=function(){var e=this.getCompletelyVisibleViewRange();var t=this.coordinatesConverter.convertViewRangeToModelRange(e);var n=this.lines.getHiddenAreas();if(0===n.length)return[t];var r=[],i=0;var o=t.startLineNumber;var a=t.startColumn;var s=t.endLineNumber;var u=t.endColumn;for(var l=0,c=n.length;l<c;l++){var d=n[l].startLineNumber;var h=n[l].endLineNumber;if(h<o)continue;if(d>s)continue;o<d&&(r[i++]=new p["a"](o,a,d-1,this.model.getLineMaxColumn(d-1)));o=h+1;a=1}(o<s||o===s&&a<u)&&(r[i++]=new p["a"](o,a,s,u));return r};t.prototype.getCompletelyVisibleViewRange=function(){var e=this.viewLayout.getLinesViewportData();var t=e.completelyVisibleStartLineNumber;var n=e.completelyVisibleEndLineNumber;return new p["a"](t,this.getLineMinColumn(t),n,this.getLineMaxColumn(n))};t.prototype.getCompletelyVisibleViewRangeAtScrollTop=function(e){var t=this.viewLayout.getLinesViewportDataAtScrollTop(e);var n=t.completelyVisibleStartLineNumber;var r=t.completelyVisibleEndLineNumber;return new p["a"](n,this.getLineMinColumn(n),r,this.getLineMaxColumn(r))};t.prototype.saveState=function(){var e=this.viewLayout.saveState();var t=e.scrollTop;var n=this.viewLayout.getLineNumberAtVerticalOffset(t);var r=this.coordinatesConverter.convertViewPositionToModelPosition(new f["a"](n,this.getLineMinColumn(n)));var i=this.viewLayout.getVerticalOffsetForLineNumber(n)-t;return{scrollLeft:e.scrollLeft,firstPosition:r,firstPositionDeltaTop:i}};t.prototype.reduceRestoreState=function(e){if(void 0===e.firstPosition)return this._reduceRestoreStateCompatibility(e);var t=this.model.validatePosition(e.firstPosition);var n=this.coordinatesConverter.convertModelPositionToViewPosition(t);var r=this.viewLayout.getVerticalOffsetForLineNumber(n.lineNumber)-e.firstPositionDeltaTop;return{scrollLeft:e.scrollLeft,scrollTop:r}};t.prototype._reduceRestoreStateCompatibility=function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTopWithoutViewZones}};t.prototype.getTabSize=function(){return this.model.getOptions().tabSize};t.prototype.getLineCount=function(){return this.lines.getViewLineCount()};t.prototype.setViewport=function(e,t,n){this.lines.warmUpLookupCache(e,t);this.viewportStartLine=e;var r=this.coordinatesConverter.convertViewPositionToModelPosition(new f["a"](e,this.getLineMinColumn(e)));this.viewportStartLineTrackedRange=this.model._setTrackedRange(this.viewportStartLineTrackedRange,new p["a"](r.lineNumber,r.column,r.lineNumber,r.column),1);var i=this.viewLayout.getVerticalOffsetForLineNumber(e);var o=this.viewLayout.getCurrentScrollTop();this.viewportStartLineDelta=o-i};t.prototype.getActiveIndentGuide=function(e,t,n){return this.lines.getActiveIndentGuide(e,t,n)};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=$["m"](this.getLineContent(e));if(-1===t)return 0;return t+1};t.prototype.getLineLastNonWhitespaceColumn=function(e){var t=$["w"](this.getLineContent(e));if(-1===t)return 0;return t+2};t.prototype.getDecorationsInViewport=function(e){return this.decorations.getDecorationsViewportData(e).decorations};t.prototype.getViewLineRenderingData=function(e,t){var n=this.model.mightContainRTL();var r=this.model.mightContainNonBasicASCII();var i=this.getTabSize();var o=this.lines.getViewLineData(t);var a;var s=this.decorations.getDecorationsViewportData(e).inlineDecorations[t-e.startLineNumber];return new Rn(o.minColumn,o.maxColumn,o.content,o.continuesWithWrappedLine,n,r,o.tokens,s,i)};t.prototype.getViewLineData=function(e){return this.lines.getViewLineData(e)};t.prototype.getMinimapLinesRenderingData=function(e,t,n){var r=this.lines.getViewLinesData(e,t,n);return new Tn(this.getTabSize(),r)};t.prototype.getAllOverviewRulerDecorations=function(e){return this.lines.getAllOverviewRulerDecorations(this.editorId,this.configuration.editor.readOnly,e)};t.prototype.invalidateOverviewRulerColorCache=function(){var e=this.model.getOverviewRulerDecorations();for(var t=0,n=e.length;t<n;t++){var r;var i=e[t].options.overviewRuler;i&&i.invalidateCachedColor()}};t.prototype.getValueInRange=function(e,t){var n=this.coordinatesConverter.convertViewRangeToModelRange(e);return this.model.getValueInRange(n,t)};t.prototype.getModelLineMaxColumn=function(e){return this.model.getLineMaxColumn(e)};t.prototype.validateModelPosition=function(e){return this.model.validatePosition(e)};t.prototype.validateModelRange=function(e){return this.model.validateRange(e)};t.prototype.deduceModelPositionRelativeToViewPosition=function(e,t,n){var r=this.coordinatesConverter.convertViewPositionToModelPosition(e);2===this.model.getEOL().length&&(t<0?t-=n:t+=n);var i;var o=this.model.getOffsetAt(r)+t;return this.model.getPositionAt(o)};t.prototype.getEOL=function(){return this.model.getEOL()};t.prototype.getPlainTextToCopy=function(e,t,n){var r=this;var i=n?"\r\n":this.model.getEOL();(e=e.slice(0)).sort(p["a"].compareRangesUsingStarts);var o=e.filter(function(e){return!e.isEmpty()});if(0===o.length){if(!t)return"";var a=e.map(function(e){var t=new f["a"](e.startLineNumber,1);return r.coordinatesConverter.convertViewPositionToModelPosition(t).lineNumber});var s="";for(var u=0;u<a.length;u++){if(u>0&&a[u-1]===a[u])continue;s+=this.model.getLineContent(a[u])+i}return s}var l=[];for(var u=0;u<o.length;u++)l.push(this.getValueInRange(o[u],n?2:0));return 1===l.length?l[0]:l};t.prototype.getHTMLToCopy=function(e,t){if(1===this.model.getLanguageIdentifier().id)return null;if(1!==e.length)return null;var n=this.coordinatesConverter.convertViewRangeToModelRange(e[0]);if(n.isEmpty()){if(!t)return null;var r=n.startLineNumber;n=new p["a"](r,this.model.getLineMinColumn(r),r,this.model.getLineMaxColumn(r))}var i=this.configuration.editor.fontInfo;var o=this._getColorMap();return'<div style="color: '+o[1]+";background-color: "+o[2]+";font-family: "+i.fontFamily+";font-weight: "+i.fontWeight+";font-size: "+i.fontSize+"px;line-height: "+i.lineHeight+'px;white-space: pre;">'+this._getHTMLToCopy(n,o)+"</div>"};t.prototype._getHTMLToCopy=function(e,t){var n=e.startLineNumber;var r=e.startColumn;var i=e.endLineNumber;var o=e.endColumn;var a=this.getTabSize();var s="";for(var u=n;u<=i;u++){var l=this.model.getLineTokens(u);var c=l.getLineContent();var d=u===n?r-1:0;var h=u===i?o-1:c.length;s+=""===c?"<br>":Jc(c,l.inflate(),t,d,h,a)}return s};t.prototype._getColorMap=function(){var e=Ve["u"].getColorMap();var t=["#000000"];if(e)for(var n=1,r=e.length;n<r;n++)t[n]=ua["a"].Format.CSS.formatHex(e[n]);return t};return t}(ls);var wd=function(){function e(){var e=[];for(var t=0;t<arguments.length;t++)e[t]=arguments[t];this._entries=new Map;for(var n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],a=i[1];this.set(o,a)}}e.prototype.set=function(e,t){var n=this._entries.get(e);this._entries.set(e,t);return n};e.prototype.has=function(e){return this._entries.has(e)};e.prototype.get=function(e){return this._entries.get(e)};return e}();var Sd=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Ld=function(e,t,n,r){var i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};var Id=function(e,t){return function(n,r){t(n,r,e)}};var xd=0;var Nd="showUnused";var Md=function(){function e(e,t,n,r,i,o){this.model=e;this.viewModel=t;this.cursor=n;this.view=r;this.hasRealView=i;this.listenersToRemove=o}e.prototype.dispose=function(){Object(me["d"])(this.listenersToRemove);this.model.onBeforeDetached();this.hasRealView&&this.view.dispose();this.cursor.dispose();this.viewModel.dispose()};return e}();var Dd=function(e){Sd(t,e);function t(t,n,r,i,o,a,s,u,l){var d=e.call(this)||this;d._onDidDispose=d._register(new c["a"]);d.onDidDispose=d._onDidDispose.event;d._onDidChangeModelContent=d._register(new c["a"]);d.onDidChangeModelContent=d._onDidChangeModelContent.event;d._onDidChangeModelLanguage=d._register(new c["a"]);d.onDidChangeModelLanguage=d._onDidChangeModelLanguage.event;d._onDidChangeModelLanguageConfiguration=d._register(new c["a"]);d.onDidChangeModelLanguageConfiguration=d._onDidChangeModelLanguageConfiguration.event;d._onDidChangeModelOptions=d._register(new c["a"]);d.onDidChangeModelOptions=d._onDidChangeModelOptions.event;d._onDidChangeModelDecorations=d._register(new c["a"]);d.onDidChangeModelDecorations=d._onDidChangeModelDecorations.event;d._onDidChangeConfiguration=d._register(new c["a"]);d.onDidChangeConfiguration=d._onDidChangeConfiguration.event;d._onDidChangeModel=d._register(new c["a"]);d.onDidChangeModel=d._onDidChangeModel.event;d._onDidChangeCursorPosition=d._register(new c["a"]);d.onDidChangeCursorPosition=d._onDidChangeCursorPosition.event;d._onDidChangeCursorSelection=d._register(new c["a"]);d.onDidChangeCursorSelection=d._onDidChangeCursorSelection.event;d._onDidAttemptReadOnlyEdit=d._register(new c["a"]);d.onDidAttemptReadOnlyEdit=d._onDidAttemptReadOnlyEdit.event;d._onDidLayoutChange=d._register(new c["a"]);d.onDidLayoutChange=d._onDidLayoutChange.event;d._editorTextFocus=d._register(new kd);d.onDidFocusEditorText=d._editorTextFocus.onDidChangeToTrue;d.onDidBlurEditorText=d._editorTextFocus.onDidChangeToFalse;d._editorWidgetFocus=d._register(new kd);d.onDidFocusEditorWidget=d._editorWidgetFocus.onDidChangeToTrue;d.onDidBlurEditorWidget=d._editorWidgetFocus.onDidChangeToFalse;d._onWillType=d._register(new c["a"]);d.onWillType=d._onWillType.event;d._onDidType=d._register(new c["a"]);d.onDidType=d._onDidType.event;d._onCompositionStart=d._register(new c["a"]);d.onCompositionStart=d._onCompositionStart.event;d._onCompositionEnd=d._register(new c["a"]);d.onCompositionEnd=d._onCompositionEnd.event;d._onDidPaste=d._register(new c["a"]);d.onDidPaste=d._onDidPaste.event;d._onMouseUp=d._register(new c["a"]);d.onMouseUp=d._onMouseUp.event;d._onMouseDown=d._register(new c["a"]);d.onMouseDown=d._onMouseDown.event;d._onMouseDrag=d._register(new c["a"]);d.onMouseDrag=d._onMouseDrag.event;d._onMouseDrop=d._register(new c["a"]);d.onMouseDrop=d._onMouseDrop.event;d._onContextMenu=d._register(new c["a"]);d.onContextMenu=d._onContextMenu.event;d._onMouseMove=d._register(new c["a"]);d.onMouseMove=d._onMouseMove.event;d._onMouseLeave=d._register(new c["a"]);d.onMouseLeave=d._onMouseLeave.event;d._onKeyUp=d._register(new c["a"]);d.onKeyUp=d._onKeyUp.event;d._onKeyDown=d._register(new c["a"]);d.onKeyDown=d._onKeyDown.event;d._onDidScrollChange=d._register(new c["a"]);d.onDidScrollChange=d._onDidScrollChange.event;d._onDidChangeViewZones=d._register(new c["a"]);d.onDidChangeViewZones=d._onDidChangeViewZones.event;d._domElement=t;d._id=++xd;d._decorationTypeKeysToIds={};d._decorationTypeSubtypes={};d.isSimpleWidget=r.isSimpleWidget||!1;d._telemetryData=r.telemetryData||null;n=n||{};d._configuration=d._register(d._createConfiguration(n));d._register(d._configuration.onDidChange(function(e){d._onDidChangeConfiguration.fire(e);e.layoutInfo&&d._onDidLayoutChange.fire(d._configuration.editor.layoutInfo);d._configuration.editor.showUnused?d._domElement.classList.add(Nd):d._domElement.classList.remove(Nd)}));d._contextKeyService=d._register(s.createScoped(d._domElement));d._notificationService=l;d._codeEditorService=o;d._commandService=a;d._themeService=u;d._register(new Od(d,d._contextKeyService));d._register(new Ed(d,d._contextKeyService));d._instantiationService=i.createChild(new wd([Mr["e"],d._contextKeyService]));d._attachModel(null);d._contributions={};d._actions={};d._focusTracker=new Td(t);d._focusTracker.onChange(function(){d._editorWidgetFocus.setValue(d._focusTracker.hasFocus())});d._contentWidgets={};d._overlayWidgets={};var h;for(var f=0,p=(h=Array.isArray(r.contributions)?r.contributions:Yi["d"].getEditorContributions()).length;f<p;f++){var g=h[f];try{var v=d._instantiationService.createInstance(g,d);d._contributions[v.getId()]=v}catch(e){Object(Ge["d"])(e)}}Yi["d"].getEditorActions().forEach(function(e){var t=new Kc(e.id,e.label,e.alias,e.precondition,function(){return d._instantiationService.invokeFunction(function(t){return Promise.resolve(e.runEditorCommand(t,d,null))})},d._contextKeyService);d._actions[t.id]=t});d._codeEditorService.addCodeEditor(d);return d}t.prototype._createConfiguration=function(e){return new Gi(e,this._domElement)};t.prototype.getId=function(){return this.getEditorType()+":"+this._id};t.prototype.getEditorType=function(){return We.ICodeEditor};t.prototype.dispose=function(){this._codeEditorService.removeCodeEditor(this);this._focusTracker.dispose();var t=Object.keys(this._contributions);for(var n=0,r=t.length;n<r;n++){var i=t[n];this._contributions[i].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){void 0===e&&(e=null);if(!this._modelData)return"";var t=!(!e||!e.preserveBOM);var n=0;e&&e.lineEnding&&"\n"===e.lineEnding?n=1:e&&e.lineEnding&&"\r\n"===e.lineEnding&&(n=2);return this._modelData.model.getValue(n,t)};t.prototype.setValue=function(e){if(!this._modelData)return;this._modelData.model.setValue(e)};t.prototype.getModel=function(){if(!this._modelData)return null;return this._modelData.model};t.prototype.setModel=function(e){void 0===e&&(e=null);if(null===this._modelData&&null===e)return;if(this._modelData&&this._modelData.model===e)return;var t=this._detachModel();this._attachModel(e);var n={oldModelUrl:t?t.uri:null,newModelUrl:e?e.uri:null};this._removeDecorationTypes();this._onDidChangeModel.fire(n);this._postDetachModelCleanup(t)};t.prototype._removeDecorationTypes=function(){this._decorationTypeKeysToIds={};if(this._decorationTypeSubtypes){for(var e in this._decorationTypeSubtypes){var t=this._decorationTypeSubtypes[e];for(var n in t)this._removeDecorationType(e+"-"+n)}this._decorationTypeSubtypes={}}};t.prototype.getVisibleRanges=function(){if(!this._modelData)return[];return this._modelData.viewModel.getVisibleRanges()};t.prototype.getWhitespaces=function(){if(!this._modelData)return[];return this._modelData.viewModel.viewLayout.getWhitespaces()};t._getVerticalOffsetForPosition=function(e,t,n){var r=e.model.validatePosition({lineNumber:t,column:n});var i=e.viewModel.coordinatesConverter.convertModelPositionToViewPosition(r);return e.viewModel.viewLayout.getVerticalOffsetForLineNumber(i.lineNumber)};t.prototype.getTopForLineNumber=function(e){if(!this._modelData)return-1;return t._getVerticalOffsetForPosition(this._modelData,e,1)};t.prototype.getTopForPosition=function(e,n){if(!this._modelData)return-1;return t._getVerticalOffsetForPosition(this._modelData,e,n)};t.prototype.setHiddenAreas=function(e){this._modelData&&this._modelData.viewModel.setHiddenAreas(e.map(function(e){return p["a"].lift(e)}))};t.prototype.getVisibleColumnFromPosition=function(e){if(!this._modelData)return e.column;var t=this._modelData.model.validatePosition(e);var n=this._modelData.model.getOptions().tabSize;return Os.visibleColumnFromColumn(this._modelData.model.getLineContent(t.lineNumber),t.column,n)+1};t.prototype.getPosition=function(){if(!this._modelData)return null;return this._modelData.cursor.getPosition()};t.prototype.setPosition=function(e){if(!this._modelData)return;if(!f["a"].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,n,r){if(!this._modelData)return;if(!p["a"].isIRange(e))throw new Error("Invalid arguments");var i=this._modelData.model.validateRange(e);var o=this._modelData.viewModel.coordinatesConverter.convertModelRangeToViewRange(i);this._modelData.cursor.emitCursorRevealRange(o,t,n,r)};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,n){if("number"!=typeof e)throw new Error("Invalid arguments");this._sendRevealRange(new p["a"](e,1,e,1),t,!1,n)};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,n,r){if(!f["a"].isIPosition(e))throw new Error("Invalid arguments");this._sendRevealRange(new p["a"](e.lineNumber,e.column,e.lineNumber,e.column),t,n,r)};t.prototype.getSelection=function(){if(!this._modelData)return null;return this._modelData.cursor.getSelection()};t.prototype.getSelections=function(){if(!this._modelData)return null;return this._modelData.cursor.getSelections()};t.prototype.setSelection=function(e){var t=g["a"].isISelection(e);var n=p["a"].isIRange(e);if(!t&&!n)throw new Error("Invalid arguments");if(t)this._setSelectionImpl(e);else if(n){var r={selectionStartLineNumber:e.startLineNumber,selectionStartColumn:e.startColumn,positionLineNumber:e.endLineNumber,positionColumn:e.endColumn};this._setSelectionImpl(r)}};t.prototype._setSelectionImpl=function(e){if(!this._modelData)return;var t=new g["a"](e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn);this._modelData.cursor.setSelections("api",[t])};t.prototype.revealLines=function(e,t,n){void 0===n&&(n=0);this._revealLines(e,t,0,n)};t.prototype.revealLinesInCenter=function(e,t,n){void 0===n&&(n=0);this._revealLines(e,t,1,n)};t.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,n){void 0===n&&(n=0);this._revealLines(e,t,2,n)};t.prototype._revealLines=function(e,t,n,r){if("number"!=typeof e||"number"!=typeof t)throw new Error("Invalid arguments");this._sendRevealRange(new p["a"](e,1,t,1),n,!1,r)};t.prototype.revealRange=function(e,t,n,r){void 0===t&&(t=0);void 0===n&&(n=!1);void 0===r&&(r=!0);this._revealRange(e,n?1:0,r,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,n,r){if(!p["a"].isIRange(e))throw new Error("Invalid arguments");this._sendRevealRange(p["a"].lift(e),t,n,r)};t.prototype.setSelections=function(e,t){void 0===t&&(t="api");if(!this._modelData)return;if(!e||0===e.length)throw new Error("Invalid arguments");for(var n=0,r=e.length;n<r;n++)if(!g["a"].isISelection(e[n]))throw new Error("Invalid arguments");this._modelData.cursor.setSelections(t,e)};t.prototype.getScrollWidth=function(){if(!this._modelData)return-1;return this._modelData.viewModel.viewLayout.getScrollWidth()};t.prototype.getScrollLeft=function(){if(!this._modelData)return-1;return this._modelData.viewModel.viewLayout.getCurrentScrollLeft()};t.prototype.getScrollHeight=function(){if(!this._modelData)return-1;return this._modelData.viewModel.viewLayout.getScrollHeight()};t.prototype.getScrollTop=function(){if(!this._modelData)return-1;return this._modelData.viewModel.viewLayout.getCurrentScrollTop()};t.prototype.setScrollLeft=function(e){if(!this._modelData)return;if("number"!=typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollLeft:e})};t.prototype.setScrollTop=function(e){if(!this._modelData)return;if("number"!=typeof e)throw new Error("Invalid arguments");this._modelData.viewModel.viewLayout.setScrollPositionNow({scrollTop:e})};t.prototype.setScrollPosition=function(e){if(!this._modelData)return;this._modelData.viewModel.viewLayout.setScrollPositionNow(e)};t.prototype.saveViewState=function(){if(!this._modelData)return null;var e={};var t=Object.keys(this._contributions);for(var n=0,r=t.length;n<r;n++){var i=t[n];var o=this._contributions[i];"function"==typeof o.saveViewState&&(e[i]=o.saveViewState())}var a;var s;return{cursorState:this._modelData.cursor.saveState(),viewState:this._modelData.viewModel.saveState(),contributionsState:e}};t.prototype.restoreViewState=function(e){if(!this._modelData||!this._modelData.hasRealView)return;if(e&&e.cursorState&&e.viewState){var t;var n=e.cursorState;Array.isArray(n)?this._modelData.cursor.restoreState(n):this._modelData.cursor.restoreState([n]);var r=e.contributionsState||{};var i=Object.keys(this._contributions);for(var o=0,a=i.length;o<a;o++){var s=i[o];var u=this._contributions[s];"function"==typeof u.restoreViewState&&u.restoreViewState(r[s])}var l=this._modelData.viewModel.reduceRestoreState(e.viewState);var c=this._modelData.viewModel.viewLayout.getLinesViewportDataAtScrollTop(l.scrollTop);var d=this._modelData.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new f["a"](c.startLineNumber,1));var h=this._modelData.viewModel.coordinatesConverter.convertViewPositionToModelPosition(new f["a"](c.endLineNumber,1));this._modelData.model.tokenizeViewport(d.lineNumber,h.lineNumber);this._modelData.view.restoreState(l)}};t.prototype.getContribution=function(e){return this._contributions[e]||null};t.prototype.getActions=function(){var e=[];var t=Object.keys(this._actions);for(var n=0,r=t.length;n<r;n++){var i=t[n];e.push(this._actions[i])}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,n){n=n||{};if(t===Fe.Type){if(!this._modelData||"string"!=typeof n.text||0===n.text.length)return;"keyboard"===e&&this._onWillType.fire(n.text);this._modelData.cursor.trigger(e,t,n);"keyboard"===e&&this._onDidType.fire(n.text);return}if(t===Fe.Paste){if(!this._modelData||"string"!=typeof n.text||0===n.text.length)return;var r=this._modelData.cursor.getSelection().getStartPosition();this._modelData.cursor.trigger(e,t,n);var i=this._modelData.cursor.getSelection().getStartPosition();"keyboard"===e&&this._onDidPaste.fire(new p["a"](r.lineNumber,r.column,i.lineNumber,i.column));return}t===Fe.CompositionStart&&this._onCompositionStart.fire();t===Fe.CompositionEnd&&this._onCompositionEnd.fire();var o=this.getAction(t);if(o){Promise.resolve(o.run()).then(null,Ge["d"]);return}if(!this._modelData)return;if(this._triggerEditorCommand(e,t,n))return;this._modelData.cursor.trigger(e,t,n)};t.prototype._triggerEditorCommand=function(e,t,n){var r=this;var i=Yi["d"].getEditorCommand(t);if(i){(n=n||{}).source=e;this._instantiationService.invokeFunction(function(e){Promise.resolve(i.runEditorCommand(e,r,n)).then(null,Ge["d"])});return!0}return!1};t.prototype._getCursors=function(){if(!this._modelData)return null;return this._modelData.cursor};t.prototype.pushUndoStop=function(){if(!this._modelData)return!1;if(this._configuration.editor.readOnly)return!1;this._modelData.model.pushStackElement();return!0};t.prototype.executeEdits=function(e,t,n){if(!this._modelData)return!1;if(this._configuration.editor.readOnly)return!1;this._modelData.model.pushEditOperations(this._modelData.cursor.getSelections(),t,function(){return n||null});n&&this._modelData.cursor.setSelections(e,n);return!0};t.prototype.executeCommand=function(e,t){if(!this._modelData)return;this._modelData.cursor.trigger(e,Fe.ExecuteCommand,t)};t.prototype.executeCommands=function(e,t){if(!this._modelData)return;this._modelData.cursor.trigger(e,Fe.ExecuteCommands,t)};t.prototype.changeDecorations=function(e){if(!this._modelData)return null;return this._modelData.model.changeDecorations(e,this._id)};t.prototype.getLineDecorations=function(e){if(!this._modelData)return null;return this._modelData.model.getLineDecorations(e,this._id,this._configuration.editor.readOnly)};t.prototype.deltaDecorations=function(e,t){if(!this._modelData)return[];if(0===e.length&&0===t.length)return e;return 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){if(!this._modelData||!this._modelData.hasRealView)return null;return this._modelData.view.createOverviewRuler(e)};t.prototype.getDomNode=function(){if(!this._modelData||!this._modelData.hasRealView)return null;return this._modelData.view.domNode.domNode};t.prototype.delegateVerticalScrollbarMouseDown=function(e){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.delegateVerticalScrollbarMouseDown(e)};t.prototype.layout=function(e){this._configuration.observeReferenceElement(e);this.render()};t.prototype.focus=function(){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.focus()};t.prototype.hasTextFocus=function(){if(!this._modelData||!this._modelData.hasRealView)return!1;return this._modelData.view.isFocused()};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 n=this._contentWidgets[t];n.position=e.getPosition();this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutContentWidget(n)}};t.prototype.removeContentWidget=function(e){var t=e.getId();if(this._contentWidgets.hasOwnProperty(t)){var n=this._contentWidgets[t];delete this._contentWidgets[t];this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeContentWidget(n)}};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 n=this._overlayWidgets[t];n.position=e.getPosition();this._modelData&&this._modelData.hasRealView&&this._modelData.view.layoutOverlayWidget(n)}};t.prototype.removeOverlayWidget=function(e){var t=e.getId();if(this._overlayWidgets.hasOwnProperty(t)){var n=this._overlayWidgets[t];delete this._overlayWidgets[t];this._modelData&&this._modelData.hasRealView&&this._modelData.view.removeOverlayWidget(n)}};t.prototype.changeViewZones=function(e){if(!this._modelData||!this._modelData.hasRealView)return;var t;this._modelData.view.change(e)&&this._onDidChangeViewZones.fire()};t.prototype.getTargetAtClientPoint=function(e,t){if(!this._modelData||!this._modelData.hasRealView)return null;return this._modelData.view.getTargetAtClientPoint(e,t)};t.prototype.getScrolledVisiblePosition=function(e){if(!this._modelData||!this._modelData.hasRealView)return null;var n=this._modelData.model.validatePosition(e);var r=this._configuration.editor.layoutInfo;var i;var o;return{top:t._getVerticalOffsetForPosition(this._modelData,n.lineNumber,n.column)-this.getScrollTop(),left:this._modelData.view.getOffsetForColumn(n.lineNumber,n.column)+r.glyphMarginWidth+r.lineNumbersWidth+r.decorationsWidth-this.getScrollLeft(),height:this._configuration.editor.lineHeight}};t.prototype.getOffsetForColumn=function(e,t){if(!this._modelData||!this._modelData.hasRealView)return-1;return this._modelData.view.getOffsetForColumn(e,t)};t.prototype.render=function(){if(!this._modelData||!this._modelData.hasRealView)return;this._modelData.view.render(!0,!1)};t.prototype.applyFontInfo=function(e){Gi.applyFontInfoSlow(e,this._configuration.editor.fontInfo)};t.prototype._attachModel=function(e){var t=this;if(!e){this._modelData=null;return}var n=[];this._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language);this._configuration.setIsDominatedByLongLines(e.isDominatedByLongLines());this._configuration.setMaxLineNumber(e.getLineCount());e.onBeforeAttached();var r=new Cd(this._id,this._configuration,e,function(e){return K["L"](e)});n.push(e.onDidChangeDecorations(function(e){return t._onDidChangeModelDecorations.fire(e)}));n.push(e.onDidChangeLanguage(function(n){t._domElement.setAttribute("data-mode-id",e.getLanguageIdentifier().language);t._onDidChangeModelLanguage.fire(n)}));n.push(e.onDidChangeLanguageConfiguration(function(e){return t._onDidChangeModelLanguageConfiguration.fire(e)}));n.push(e.onDidChangeContent(function(e){return t._onDidChangeModelContent.fire(e)}));n.push(e.onDidChangeOptions(function(e){return t._onDidChangeModelOptions.fire(e)}));n.push(e.onWillDispose(function(){return t.setModel(null)}));var i=new Gc(this._configuration,e,r);n.push(i.onDidReachMaxCursorCount(function(){t._notificationService.warn(Bn["a"]("cursors.maximum","The number of cursors has been limited to {0}.",Gc.MAX_CURSOR_COUNT))}));n.push(i.onDidAttemptReadOnlyEdit(function(){t._onDidAttemptReadOnlyEdit.fire(void 0)}));n.push(i.onDidChange(function(e){var n=[];for(var r=0,i=e.selections.length;r<i;r++)n[r]=e.selections[r].getPosition();var o={position:n[0],secondaryPositions:n.slice(1),reason:e.reason,source:e.source};t._onDidChangeCursorPosition.fire(o);var a={selection:e.selections[0],secondarySelections:e.selections.slice(1),source:e.source,reason:e.reason};t._onDidChangeCursorSelection.fire(a)}));var o=this._createView(r,i),a=o[0],s=o[1];if(s){this._domElement.appendChild(a.domNode.domNode);var u=Object.keys(this._contentWidgets);for(var l=0,c=u.length;l<c;l++){var d=u[l];a.addContentWidget(this._contentWidgets[d])}for(var l=0,c=(u=Object.keys(this._overlayWidgets)).length;l<c;l++){var d=u[l];a.addOverlayWidget(this._overlayWidgets[d])}a.render(!1,!0);a.domNode.domNode.setAttribute("data-uri",e.uri.toString())}this._modelData=new Md(e,r,i,a,s,n)};t.prototype._createView=function(e,t){var n=this;var r;r=this.isSimpleWidget?{executeEditorCommand:function(e,n){e.runCoreEditorCommand(t,n)},paste:function(e,t,r,i){n.trigger(e,Fe.Paste,{text:t,pasteOnNewLine:r,multicursorText:i})},type:function(e,t){n.trigger(e,Fe.Type,{text:t})},replacePreviousChar:function(e,t,r){n.trigger(e,Fe.ReplacePreviousChar,{text:t,replaceCharCnt:r})},compositionStart:function(e){n.trigger(e,Fe.CompositionStart,void 0)},compositionEnd:function(e){n.trigger(e,Fe.CompositionEnd,void 0)},cut:function(e){n.trigger(e,Fe.Cut,void 0)}}:{executeEditorCommand:function(e,n){e.runCoreEditorCommand(t,n)},paste:function(e,t,r,i){n._commandService.executeCommand(Fe.Paste,{text:t,pasteOnNewLine:r,multicursorText:i})},type:function(e,t){n._commandService.executeCommand(Fe.Type,{text:t})},replacePreviousChar:function(e,t,r){n._commandService.executeCommand(Fe.ReplacePreviousChar,{text:t,replaceCharCnt:r})},compositionStart:function(e){n._commandService.executeCommand(Fe.CompositionStart,{})},compositionEnd:function(e){n._commandService.executeCommand(Fe.CompositionEnd,{})},cut:function(e){n._commandService.executeCommand(Fe.Cut,{})}};var i=new Wc(e);i.onDidGainFocus=function(){n._editorTextFocus.setValue(!0);n._editorWidgetFocus.setValue(!0)};i.onDidScroll=function(e){return n._onDidScrollChange.fire(e)};i.onDidLoseFocus=function(){return n._editorTextFocus.setValue(!1)};i.onContextMenu=function(e){return n._onContextMenu.fire(e)};i.onMouseDown=function(e){return n._onMouseDown.fire(e)};i.onMouseUp=function(e){return n._onMouseUp.fire(e)};i.onMouseDrag=function(e){return n._onMouseDrag.fire(e)};i.onMouseDrop=function(e){return n._onMouseDrop.fire(e)};i.onKeyUp=function(e){return n._onKeyUp.fire(e)};i.onMouseMove=function(e){return n._onMouseMove.fire(e)};i.onMouseLeave=function(e){return n._onMouseLeave.fire(e)};i.onKeyDown=function(e){return n._onKeyDown.fire(e)};var o;return[new Ac(r,this._configuration,this._themeService,e,t,i),!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;var t=this._modelData.hasRealView?this._modelData.view.domNode.domNode:null;this._modelData.dispose();this._modelData=null;this._domElement.removeAttribute("data-mode-id");t&&this._domElement.removeChild(t);return 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};return t=Ld([Id(3,ce["a"]),Id(4,Y["a"]),Id(5,le["b"]),Id(6,Mr["e"]),Id(7,So["c"]),Id(8,ai)],t)}(me["a"]);var kd=function(e){Sd(t,e);function t(){var t=e.call(this)||this;t._onDidChangeToTrue=t._register(new c["a"]);t.onDidChangeToTrue=t._onDidChangeToTrue.event;t._onDidChangeToFalse=t._register(new c["a"]);t.onDidChangeToFalse=t._onDidChangeToFalse.event;t._value=0;return t}t.prototype.setValue=function(e){var t=e?2:1;if(this._value===t)return;this._value=t;2===this._value?this._onDidChangeToTrue.fire():1===this._value&&this._onDidChangeToFalse.fire()};return t}(me["a"]);var Od=function(e){Sd(t,e);function t(t,n){var r=e.call(this)||this;r._editor=t;n.createKey("editorId",t.getId());r._editorFocus=Ks["a"].focus.bindTo(n);r._textInputFocus=Ks["a"].textInputFocus.bindTo(n);r._editorTextFocus=Ks["a"].editorTextFocus.bindTo(n);r._editorTabMovesFocus=Ks["a"].tabMovesFocus.bindTo(n);r._editorReadonly=Ks["a"].readOnly.bindTo(n);r._hasMultipleSelections=Ks["a"].hasMultipleSelections.bindTo(n);r._hasNonEmptySelection=Ks["a"].hasNonEmptySelection.bindTo(n);r._canUndo=Ks["a"].canUndo.bindTo(n);r._canRedo=Ks["a"].canRedo.bindTo(n);r._register(r._editor.onDidChangeConfiguration(function(){return r._updateFromConfig()}));r._register(r._editor.onDidChangeCursorSelection(function(){return r._updateFromSelection()}));r._register(r._editor.onDidFocusEditorWidget(function(){return r._updateFromFocus()}));r._register(r._editor.onDidBlurEditorWidget(function(){return r._updateFromFocus()}));r._register(r._editor.onDidFocusEditorText(function(){return r._updateFromFocus()}));r._register(r._editor.onDidBlurEditorText(function(){return r._updateFromFocus()}));r._register(r._editor.onDidChangeModel(function(){return r._updateFromModel()}));r._register(r._editor.onDidChangeConfiguration(function(){return r._updateFromModel()}));r._updateFromConfig();r._updateFromSelection();r._updateFromFocus();r._updateFromModel();return r}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();if(e){this._hasMultipleSelections.set(e.length>1);this._hasNonEmptySelection.set(e.some(function(e){return!e.isEmpty()}))}else{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()))};return t}(me["a"]);var Ed=function(e){Sd(t,e);function t(t,n){var r=e.call(this)||this;r._editor=t;r._langId=Ks["a"].languageId.bindTo(n);r._hasCompletionItemProvider=Ks["a"].hasCompletionItemProvider.bindTo(n);r._hasCodeActionsProvider=Ks["a"].hasCodeActionsProvider.bindTo(n);r._hasCodeLensProvider=Ks["a"].hasCodeLensProvider.bindTo(n);r._hasDefinitionProvider=Ks["a"].hasDefinitionProvider.bindTo(n);r._hasImplementationProvider=Ks["a"].hasImplementationProvider.bindTo(n);r._hasTypeDefinitionProvider=Ks["a"].hasTypeDefinitionProvider.bindTo(n);r._hasHoverProvider=Ks["a"].hasHoverProvider.bindTo(n);r._hasDocumentHighlightProvider=Ks["a"].hasDocumentHighlightProvider.bindTo(n);r._hasDocumentSymbolProvider=Ks["a"].hasDocumentSymbolProvider.bindTo(n);r._hasReferenceProvider=Ks["a"].hasReferenceProvider.bindTo(n);r._hasRenameProvider=Ks["a"].hasRenameProvider.bindTo(n);r._hasDocumentFormattingProvider=Ks["a"].hasDocumentFormattingProvider.bindTo(n);r._hasDocumentSelectionFormattingProvider=Ks["a"].hasDocumentSelectionFormattingProvider.bindTo(n);r._hasSignatureHelpProvider=Ks["a"].hasSignatureHelpProvider.bindTo(n);r._isInWalkThrough=Ks["a"].isInEmbeddedEditor.bindTo(n);var i=function(){return r._update()};r._register(t.onDidChangeModel(i));r._register(t.onDidChangeModelLanguage(i));r._register(Ve["d"].onDidChange(i));r._register(Ve["a"].onDidChange(i));r._register(Ve["b"].onDidChange(i));r._register(Ve["e"].onDidChange(i));r._register(Ve["m"].onDidChange(i));r._register(Ve["v"].onDidChange(i));r._register(Ve["l"].onDidChange(i));r._register(Ve["g"].onDidChange(i));r._register(Ve["i"].onDidChange(i));r._register(Ve["q"].onDidChange(i));r._register(Ve["r"].onDidChange(i));r._register(Ve["f"].onDidChange(i));r._register(Ve["h"].onDidChange(i));r._register(Ve["s"].onDidChange(i));i();return r}t.prototype.dispose=function(){e.prototype.dispose.call(this)};t.prototype.reset=function(){this._langId.reset();this._hasCompletionItemProvider.reset();this._hasCodeActionsProvider.reset();this._hasCodeLensProvider.reset();this._hasDefinitionProvider.reset();this._hasImplementationProvider.reset();this._hasTypeDefinitionProvider.reset();this._hasHoverProvider.reset();this._hasDocumentHighlightProvider.reset();this._hasDocumentSymbolProvider.reset();this._hasReferenceProvider.reset();this._hasRenameProvider.reset();this._hasDocumentFormattingProvider.reset();this._hasDocumentSelectionFormattingProvider.reset();this._hasSignatureHelpProvider.reset();this._isInWalkThrough.reset()};t.prototype._update=function(){var e=this._editor.getModel();if(!e){this.reset();return}this._langId.set(e.getLanguageIdentifier().language);this._hasCompletionItemProvider.set(Ve["d"].has(e));this._hasCodeActionsProvider.set(Ve["a"].has(e));this._hasCodeLensProvider.set(Ve["b"].has(e));this._hasDefinitionProvider.set(Ve["e"].has(e));this._hasImplementationProvider.set(Ve["m"].has(e));this._hasTypeDefinitionProvider.set(Ve["v"].has(e));this._hasHoverProvider.set(Ve["l"].has(e));this._hasDocumentHighlightProvider.set(Ve["g"].has(e));this._hasDocumentSymbolProvider.set(Ve["i"].has(e));this._hasReferenceProvider.set(Ve["q"].has(e));this._hasRenameProvider.set(Ve["r"].has(e));this._hasSignatureHelpProvider.set(Ve["s"].has(e));this._hasDocumentFormattingProvider.set(Ve["f"].has(e)||Ve["h"].has(e));this._hasDocumentSelectionFormattingProvider.set(Ve["h"].has(e));this._isInWalkThrough.set(e.uri.scheme===J.walkThroughSnippet)};return t}(me["a"]);var Td=function(e){Sd(t,e);function t(t){var n=e.call(this)||this;n._onChange=n._register(new c["a"]);n.onChange=n._onChange.event;n._hasFocus=!1;n._domFocusTracker=n._register(K["O"](t));n._register(n._domFocusTracker.onDidFocus(function(){n._hasFocus=!0;n._onChange.fire(void 0)}));n._register(n._domFocusTracker.onDidBlur(function(){n._hasFocus=!1;n._onChange.fire(void 0)}));return n}t.prototype.hasFocus=function(){return this._hasFocus};return t}(me["a"]);var Ad=encodeURIComponent("<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 3' enable-background='new 0 0 6 3' height='3' width='6'><g fill='");var Rd=encodeURIComponent("'><polygon points='5.5,0 2.5,3 1.1,3 4.1,0'/><polygon points='4,0 6,2 6,0.6 5.4,0'/><polygon points='0,2 1,3 2.4,3 0,0.6'/></g></svg>");function Pd(e){return Ad+encodeURIComponent(e.toString())+Rd}var jd=encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" height="3" width="12"><g fill="');var Wd=encodeURIComponent('"><circle cx="1" cy="1" r="1"/><circle cx="5" cy="1" r="1"/><circle cx="9" cy="1" r="1"/></g></svg>');function Fd(e){return jd+encodeURIComponent(e.toString())+Wd}Object(So["e"])(function(e,t){var n=e.getColor(Da);n&&t.addRule(".monaco-editor .squiggly-error { border-bottom: 4px double "+n+"; }");var r=e.getColor(Ma);r&&t.addRule('.monaco-editor .squiggly-error { background: url("data:image/svg+xml,'+Pd(r)+'") repeat-x bottom left; }');var i=e.getColor(Oa);i&&t.addRule(".monaco-editor .squiggly-warning { border-bottom: 4px double "+i+"; }");var o=e.getColor(ka);o&&t.addRule('.monaco-editor .squiggly-warning { background: url("data:image/svg+xml,'+Pd(o)+'") repeat-x bottom left; }');var a=e.getColor(Ta);a&&t.addRule(".monaco-editor .squiggly-info { border-bottom: 4px double "+a+"; }");var s=e.getColor(Ea);s&&t.addRule('.monaco-editor .squiggly-info { background: url("data:image/svg+xml,'+Pd(s)+'") repeat-x bottom left; }');var u=e.getColor(Ra);u&&t.addRule(".monaco-editor .squiggly-hint { border-bottom: 2px dotted "+u+"; }");var l=e.getColor(Aa);l&&t.addRule('.monaco-editor .squiggly-hint { background: url("data:image/svg+xml,'+Fd(l)+'") no-repeat bottom left; }');var c=e.getColor(ja);c&&t.addRule("."+Nd+" .monaco-editor .squiggly-inline-unnecessary { opacity: "+c.rgba.a+"; will-change: opacity; }");var d=e.getColor(Pa);d&&t.addRule("."+Nd+" .monaco-editor .squiggly-unnecessary { border-bottom: 2px dashed "+d+"; }")});var zd=n("5aoK");var Vd=n("rpIH");var Bd=function(){function e(e,t){this.flags=t;if(0!=(1&this.flags)){var n=e.getModel();this.modelVersionId=n?$["n"]("{0}#{1}",n.uri.toString(),n.getVersionId()):null}0!=(4&this.flags)&&(this.position=e.getPosition());0!=(2&this.flags)&&(this.selection=e.getSelection());if(0!=(8&this.flags)){this.scrollLeft=e.getScrollLeft();this.scrollTop=e.getScrollTop()}}e.prototype._equals=function(t){if(!(t instanceof e))return!1;var n=t;if(this.modelVersionId!==n.modelVersionId)return!1;if(this.scrollLeft!==n.scrollLeft||this.scrollTop!==n.scrollTop)return!1;if(!this.position&&n.position||this.position&&!n.position||this.position&&n.position&&!this.position.equals(n.position))return!1;if(!this.selection&&n.selection||this.selection&&!n.selection||this.selection&&n.selection&&!this.selection.equalsRange(n.selection))return!1;return!0};e.prototype.validate=function(t){return this._equals(new e(t,this.flags))};return e}();var Hd=function(){function e(e,t){this._visiblePosition=e;this._visiblePositionScrollDelta=t}e.capture=function(t){var n=null;var r=0;if(0!==t.getScrollTop()){var i=t.getVisibleRanges();if(i.length>0){n=i[0].getStartPosition();var o=t.getTopForPosition(n.lineNumber,n.column);r=t.getScrollTop()-o}}return new e(n,r)};e.prototype.restore=function(e){if(this._visiblePosition){var t=e.getTopForPosition(this._visiblePosition.lineNumber,this._visiblePosition.column);e.setScrollTop(t+this._visiblePositionScrollDelta)}};return e}();var Ud=n("jf8o");var Zd=n("m0dU");var Gd=n("5BWK");var Yd=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Kd=3;var Qd=function(){function e(e,t,n,r){this.originalLineStart=e;this.originalLineEnd=t;this.modifiedLineStart=n;this.modifiedLineEnd=r}e.prototype.getType=function(){if(0===this.originalLineStart)return 1;if(0===this.modifiedLineStart)return 2;return 0};return e}();var qd=function(){function e(e){this.entries=e}return e}();var Jd=function(e){Yd(t,e);function t(t){var n=e.call(this)||this;n._width=0;n._diffEditor=t;n._isVisible=!1;n.shadow=Qi(document.createElement("div"));n.shadow.setClassName("diff-review-shadow");n.actionBarContainer=Qi(document.createElement("div"));n.actionBarContainer.setClassName("diff-review-actions");n._actionBar=n._register(new Zd["a"](n.actionBarContainer.domNode));n._actionBar.push(new Gd["a"]("diffreview.close",Bn["a"]("label.close","Close"),"close-diff-review",!0,function(){n.hide();return null}),{label:!1,icon:!0});n.domNode=Qi(document.createElement("div"));n.domNode.setClassName("diff-review monaco-editor-background");n._content=Qi(document.createElement("div"));n._content.setClassName("diff-review-content");n.scrollbar=n._register(new ul(n._content.domNode,{}));n.domNode.domNode.appendChild(n.scrollbar.getDomNode());n._register(t.onDidUpdateDiff(function(){if(!n._isVisible)return;n._diffs=n._compute();n._render()}));n._register(t.getModifiedEditor().onDidChangeCursorPosition(function(){if(!n._isVisible)return;n._render()}));n._register(t.getOriginalEditor().onDidFocusEditorWidget(function(){n._isVisible&&n.hide()}));n._register(t.getModifiedEditor().onDidFocusEditorWidget(function(){n._isVisible&&n.hide()}));n._register(K["j"](n.domNode.domNode,"click",function(e){e.preventDefault();var t=K["o"](e.target,"diff-review-row");t&&n._goToRow(t)}));n._register(K["j"](n.domNode.domNode,"keydown",function(e){if(e.equals(18)||e.equals(2066)||e.equals(530)){e.preventDefault();n._goToRow(n._getNextRow())}if(e.equals(16)||e.equals(2064)||e.equals(528)){e.preventDefault();n._goToRow(n._getPrevRow())}if(e.equals(9)||e.equals(2057)||e.equals(521)||e.equals(1033)){e.preventDefault();n.hide()}if(e.equals(10)||e.equals(3)){e.preventDefault();n.accept()}}));n._diffs=[];n._currentDiff=null;return n}t.prototype.prev=function(){var e=0;this._isVisible||(this._diffs=this._compute());if(this._isVisible){var t=-1;for(var n=0,r=this._diffs.length;n<r;n++)if(this._diffs[n]===this._currentDiff){t=n;break}e=this._diffs.length+t-1}else e=this._findDiffIndex(this._diffEditor.getPosition());if(0===this._diffs.length)return;e%=this._diffs.length;this._diffEditor.setPosition(new f["a"](this._diffs[e].entries[0].modifiedLineStart,1));this._isVisible=!0;this._diffEditor.doLayout();this._render();this._goToRow(this._getNextRow())};t.prototype.next=function(){var e=0;this._isVisible||(this._diffs=this._compute());if(this._isVisible){var t=-1;for(var n=0,r=this._diffs.length;n<r;n++)if(this._diffs[n]===this._currentDiff){t=n;break}e=t+1}else e=this._findDiffIndex(this._diffEditor.getPosition());if(0===this._diffs.length)return;e%=this._diffs.length;this._diffEditor.setPosition(new f["a"](this._diffs[e].entries[0].modifiedLineStart,1));this._isVisible=!0;this._diffEditor.doLayout();this._render();this._goToRow(this._getNextRow())};t.prototype.accept=function(){var e=-1;var t=this._getCurrentFocusedRow();if(t){var n=parseInt(t.getAttribute("data-line"),10);isNaN(n)||(e=n)}this.hide();if(-1!==e){this._diffEditor.setPosition(new f["a"](e,1));this._diffEditor.revealPosition(new f["a"](e,1),1)}};t.prototype.hide=function(){this._isVisible=!1;this._diffEditor.focus();this._diffEditor.doLayout();this._render()};t.prototype._getPrevRow=function(){var e=this._getCurrentFocusedRow();if(!e)return this._getFirstRow();if(e.previousElementSibling)return e.previousElementSibling;return e};t.prototype._getNextRow=function(){var e=this._getCurrentFocusedRow();if(!e)return this._getFirstRow();if(e.nextElementSibling)return e.nextElementSibling;return e};t.prototype._getFirstRow=function(){return this.domNode.domNode.querySelector(".diff-review-row")};t.prototype._getCurrentFocusedRow=function(){var e=document.activeElement;if(e&&/diff-review-row/.test(e.className))return e;return null};t.prototype._goToRow=function(e){var t=this._getCurrentFocusedRow();e.tabIndex=0;e.focus();t&&t!==e&&(t.tabIndex=-1);this.scrollbar.scanDomNode()};t.prototype.isVisible=function(){return this._isVisible};t.prototype.layout=function(e,t,n){this._width=t;this.shadow.setTop(e-6);this.shadow.setWidth(t);this.shadow.setHeight(this._isVisible?6:0);this.domNode.setTop(e);this.domNode.setWidth(t);this.domNode.setHeight(n);this._content.setHeight(n);this._content.setWidth(t);if(this._isVisible){this.actionBarContainer.setAttribute("aria-hidden","false");this.actionBarContainer.setDisplay("block")}else{this.actionBarContainer.setAttribute("aria-hidden","true");this.actionBarContainer.setDisplay("none")}};t.prototype._compute=function(){var e=this._diffEditor.getLineChanges();if(!e||0===e.length)return[];var n=this._diffEditor.getOriginalEditor().getModel();var r=this._diffEditor.getModifiedEditor().getModel();if(!n||!r)return[];return t._mergeAdjacent(e,n.getLineCount(),r.getLineCount())};t._mergeAdjacent=function(e,t,n){if(!e||0===e.length)return[];var r=[],i=0;for(var o=0,a=e.length;o<a;o++){var s=e[o];var u=s.originalStartLineNumber;var l=s.originalEndLineNumber;var c=s.modifiedStartLineNumber;var d=s.modifiedEndLineNumber;var h=[],f=0;var p=0===l?u:u-1;var g=0===d?c:c-1;var v=1;var m=1;if(o>0){var _=e[o-1];v=0===_.originalEndLineNumber?_.originalStartLineNumber+1:_.originalEndLineNumber+1;m=0===_.modifiedEndLineNumber?_.modifiedStartLineNumber+1:_.modifiedEndLineNumber+1}var y=p-3+1;var b=g-3+1;if(y<v){var C;y+=C=v-y;b+=C}if(b<m){var C;y+=C=m-b;b+=C}h[f++]=new Qd(y,p,b,g);0!==l&&(h[f++]=new Qd(u,l,0,0));0!==d&&(h[f++]=new Qd(0,0,c,d));var w=0===l?u+1:l+1;var S=0===d?c+1:d+1;var L=t;var I=n;if(o+1<a){var x=e[o+1];L=0===x.originalEndLineNumber?x.originalStartLineNumber:x.originalStartLineNumber-1;I=0===x.modifiedEndLineNumber?x.modifiedStartLineNumber:x.modifiedStartLineNumber-1}var N=w+3-1;var M=S+3-1;if(N>L){var C;N+=C=L-N;M+=C}if(M>I){var C;N+=C=I-M;M+=C}h[f++]=new Qd(w,N,S,M);r[i++]=new qd(h)}var D=r[0].entries;var k=[],O=0;for(var o=1,a=r.length;o<a;o++){var E=r[o].entries;var T=D[D.length-1];var A=E[0];if(0===T.getType()&&0===A.getType()&&A.originalLineStart<=T.originalLineEnd){D[D.length-1]=new Qd(T.originalLineStart,A.originalLineEnd,T.modifiedLineStart,A.modifiedLineEnd);D=D.concat(E.slice(1));continue}k[O++]=new qd(D);D=E}k[O++]=new qd(D);return k};t.prototype._findDiffIndex=function(e){var t=e.lineNumber;for(var n=0,r=this._diffs.length;n<r;n++){var i=this._diffs[n].entries;var o;if(t<=i[i.length-1].modifiedLineEnd)return n}return 0};t.prototype._render=function(){var e=this._diffEditor.getOriginalEditor().getConfiguration();var n=this._diffEditor.getModifiedEditor().getConfiguration();var r=this._diffEditor.getOriginalEditor().getModel();var i=this._diffEditor.getModifiedEditor().getModel();var o=r.getOptions();var a=i.getOptions();if(!this._isVisible||!r||!i){K["l"](this._content.domNode);this._currentDiff=null;this.scrollbar.scanDomNode();return}var s=this._diffEditor.getPosition();var u=this._findDiffIndex(s);if(this._diffs[u]===this._currentDiff)return;this._currentDiff=this._diffs[u];var l=this._diffs[u].entries;var c=document.createElement("div");c.className="diff-review-table";c.setAttribute("role","list");Gi.applyFontInfoSlow(c,n.fontInfo);var d=0;var h=0;var f=0;var p=0;for(var g=0,v=l.length;g<v;g++){var m;var _=(m=l[g]).originalLineStart;var y=m.originalLineEnd;var b=m.modifiedLineStart;var C=m.modifiedLineEnd;0!==_&&(0===d||_<d)&&(d=_);0!==y&&(0===h||y>h)&&(h=y);0!==b&&(0===f||b<f)&&(f=b);0!==C&&(0===p||C>p)&&(p=C)}var w=document.createElement("div");w.className="diff-review-row";var S=document.createElement("div");S.className="diff-review-cell diff-review-summary";var L=h-d+1;var I=p-f+1;S.appendChild(document.createTextNode(u+1+"/"+this._diffs.length+": @@ -"+d+","+L+" +"+f+","+I+" @@"));w.setAttribute("data-line",String(f));var x=function(e){return 0===e?Bn["a"]("no_lines","no lines"):1===e?Bn["a"]("one_line","1 line"):Bn["a"]("more_lines","{0} lines",e)};var N=x(L);var M=x(I);w.setAttribute("aria-label",Bn["a"]({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}",u+1,this._diffs.length,d,N,f,M));w.appendChild(S);w.setAttribute("role","listitem");c.appendChild(w);var D=f;for(var g=0,v=l.length;g<v;g++){var m=l[g];t._renderSection(c,m,D,this._width,e,r,o,n,i,a);0!==m.modifiedLineStart&&(D=m.modifiedLineEnd)}K["l"](this._content.domNode);this._content.domNode.appendChild(c);this.scrollbar.scanDomNode()};t._renderSection=function(e,t,n,r,i,o,a,s,u,l){var c=t.getType();var d="diff-review-row";var h="";var f="diff-review-spacer";switch(c){case 1:d="diff-review-row line-insert";h=" char-insert";f="diff-review-spacer insert-sign";break;case 2:d="diff-review-row line-delete";h=" char-delete";f="diff-review-spacer delete-sign"}var p=t.originalLineStart;var g=t.originalLineEnd;var v=t.modifiedLineStart;var m=t.modifiedLineEnd;var _=Math.max(m-v,g-p);var y=i.layoutInfo.glyphMarginWidth+i.layoutInfo.lineNumbersWidth;var b=10+s.layoutInfo.glyphMarginWidth+s.layoutInfo.lineNumbersWidth;for(var C=0;C<=_;C++){var w=0===p?0:p+C;var S=0===v?0:v+C;var L=document.createElement("div");L.style.minWidth=r+"px";L.className=d;L.setAttribute("role","listitem");0!==S&&(n=S);L.setAttribute("data-line",String(n));var I=document.createElement("div");I.className="diff-review-cell";L.appendChild(I);var x=document.createElement("span");x.style.width=y+"px";x.style.minWidth=y+"px";x.className="diff-review-line-number"+h;0!==w?x.appendChild(document.createTextNode(String(w))):x.innerHTML=" ";I.appendChild(x);var N=document.createElement("span");N.style.width=b+"px";N.style.minWidth=b+"px";N.style.paddingRight="10px";N.className="diff-review-line-number"+h;0!==S?N.appendChild(document.createTextNode(String(S))):N.innerHTML=" ";I.appendChild(N);var M=document.createElement("span");M.className=f;M.innerHTML=" ";I.appendChild(M);var D=void 0;if(0!==S){I.insertAdjacentHTML("beforeend",this._renderLine(u,s,l.tabSize,S));D=u.getLineContent(S)}else{I.insertAdjacentHTML("beforeend",this._renderLine(o,i,a.tabSize,w));D=o.getLineContent(w)}0===D.length&&(D=Bn["a"]("blankLine","blank"));var k=void 0;switch(c){case 0:k=Bn["a"]("equalLine","original {0}, modified {1}: {2}",w,S,D);break;case 1:k=Bn["a"]("insertLine","+ modified {0}: {1}",S,D);break;case 2:k=Bn["a"]("deleteLine","- original {0}: {1}",w,D)}L.setAttribute("aria-label",k);e.appendChild(L)}};t._renderLine=function(e,t,n,r){var i=e.getLineContent(r);var o=16793600;var a=new Uint32Array(2);a[0]=i.length;a[1]=16793600;var s=new cn["a"](a,i);var u=Rn.isBasicASCII(i,e.mightContainNonBasicASCII());var l=Rn.containsRTL(i,u,e.mightContainRTL());var c;return Ln(new yn(t.fontInfo.isMonospace&&!t.viewInfo.disableMonospaceOptimizations,t.fontInfo.canUseHalfwidthRightwardsArrow,i,!1,u,l,0,s,[],n,t.fontInfo.spaceWidth,t.viewInfo.stopRenderingLineAfter,t.viewInfo.renderWhitespace,t.viewInfo.renderControlCharacters,t.viewInfo.fontLigatures)).html};return t}(me["a"]);Object(So["e"])(function(e,t){var n=e.getColor(ya);n&&t.addRule(".monaco-diff-editor .diff-review-line-number { color: "+n+"; }");var r=e.getColor(la["mb"]);r&&t.addRule(".monaco-diff-editor .diff-review-shadow { box-shadow: "+r+" 0 -6px 6px -6px inset; }")});var Xd=function(e){Yd(t,e);function t(){return e.call(this,{id:"editor.action.diffReview.next",label:Bn["a"]("editor.action.diffReview.next","Go to Next Difference"),alias:"Go to Next Difference",precondition:Mr["d"].has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:65,weight:100}})||this}t.prototype.run=function(e,t){var n=eh(e);n&&n.diffReviewNext()};return t}(Yi["b"]);var $d=function(e){Yd(t,e);function t(){return e.call(this,{id:"editor.action.diffReview.prev",label:Bn["a"]("editor.action.diffReview.prev","Go to Previous Difference"),alias:"Go to Previous Difference",precondition:Mr["d"].has("isInDiffEditor"),kbOpts:{kbExpr:null,primary:1089,weight:100}})||this}t.prototype.run=function(e,t){var n=eh(e);n&&n.diffReviewPrev()};return t}(Yi["b"]);function eh(e){var t;var n=e.get(Y["a"]).listDiffEditors();for(var r=0,i=n.length;r<i;r++){var o=n[r];if(o.hasWidgetFocus())return o}return null}Object(Yi["e"])(Xd);Object(Yi["e"])($d);var th=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var nh=function(e,t,n,r){var i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};var rh=function(e,t){return function(n,r){t(n,r,e)}};var ih=function(){function e(){this._zones=[];this._zonesMap={};this._decorations=[]}e.prototype.getForeignViewZones=function(e){var t=this;return e.filter(function(e){return!t._zonesMap[String(e.id)]})};e.prototype.clean=function(e){var t=this;this._zones.length>0&&e.changeViewZones(function(e){for(var n=0,r=t._zones.length;n<r;n++)e.removeZone(t._zones[n])});this._zones=[];this._zonesMap={};this._decorations=e.deltaDecorations(this._decorations,[])};e.prototype.apply=function(e,t,n,r){var i=this;var o=r?Hd.capture(e):null;e.changeViewZones(function(e){for(var t=0,r=i._zones.length;t<r;t++)e.removeZone(i._zones[t]);i._zones=[];i._zonesMap={};for(var t=0,o=n.zones.length;t<o;t++){n.zones[t].suppressMouseDown=!0;var a=e.addZone(n.zones[t]);i._zones.push(a);i._zonesMap[String(a)]=!0}});o&&o.restore(e);this._decorations=e.deltaDecorations(this._decorations,n.decorations);t&&t.setZones(n.overviewZones)};return e}();var oh=0;var ah=function(e){th(t,e);function t(n,r,i,a,s,u,l,d){var h=e.call(this)||this;h._onDidDispose=h._register(new c["a"]);h.onDidDispose=h._onDidDispose.event;h._onDidUpdateDiff=h._register(new c["a"]);h.onDidUpdateDiff=h._onDidUpdateDiff.event;h._lastOriginalWarning=null;h._lastModifiedWarning=null;h._editorWorkerService=i;h._codeEditorService=u;h._contextKeyService=h._register(a.createScoped(n));h._contextKeyService.createKey("isInDiffEditor",!0);h._themeService=l;h._notificationService=d;h.id=++oh;h._domElement=n;r=r||{};h._renderSideBySide=!0;void 0!==r.renderSideBySide&&(h._renderSideBySide=r.renderSideBySide);h._ignoreTrimWhitespace=!0;void 0!==r.ignoreTrimWhitespace&&(h._ignoreTrimWhitespace=r.ignoreTrimWhitespace);h._renderIndicators=!0;void 0!==r.renderIndicators&&(h._renderIndicators=r.renderIndicators);h._originalIsEditable=!1;void 0!==r.originalEditable&&(h._originalIsEditable=Boolean(r.originalEditable));h._updateDecorationsRunner=h._register(new o["c"](function(){return h._updateDecorations()},0));h._containerDomElement=document.createElement("div");h._containerDomElement.className=t._getClassName(h._themeService.getTheme(),h._renderSideBySide);h._containerDomElement.style.position="relative";h._containerDomElement.style.height="100%";h._domElement.appendChild(h._containerDomElement);h._overviewViewportDomElement=Qi(document.createElement("div"));h._overviewViewportDomElement.setClassName("diffViewport");h._overviewViewportDomElement.setPosition("absolute");h._overviewDomElement=document.createElement("div");h._overviewDomElement.className="diffOverview";h._overviewDomElement.style.position="absolute";h._overviewDomElement.appendChild(h._overviewViewportDomElement.domNode);h._register(K["j"](h._overviewDomElement,"mousedown",function(e){h.modifiedEditor.delegateVerticalScrollbarMouseDown(e)}));h._containerDomElement.appendChild(h._overviewDomElement);h._createLeftHandSide();h._createRightHandSide();h._beginUpdateDecorationsTimeout=-1;h._currentlyChangingViewZones=!1;h._diffComputationToken=0;h._originalEditorState=new ih;h._modifiedEditorState=new ih;h._isVisible=!0;h._isHandlingScrollEvent=!1;h._width=0;h._height=0;h._reviewHeight=0;h._diffComputationResult=null;var f=h._contextKeyService.createScoped();f.createKey("isInDiffLeftEditor",!0);var p=new wd;p.set(Mr["e"],f);var g=s.createChild(p);var v=h._contextKeyService.createScoped();v.createKey("isInDiffRightEditor",!0);var m=new wd;m.set(Mr["e"],v);var _=s.createChild(m);h._createLeftHandSideEditor(r,g);h._createRightHandSideEditor(r,_);h._reviewPane=new Jd(h);h._containerDomElement.appendChild(h._reviewPane.domNode.domNode);h._containerDomElement.appendChild(h._reviewPane.shadow.domNode);h._containerDomElement.appendChild(h._reviewPane.actionBarContainer.domNode);r.automaticLayout&&(h._measureDomElementToken=window.setInterval(function(){return h._measureDomElement(!1)},100));h._enableSplitViewResizing=!0;void 0!==r.enableSplitViewResizing&&(h._enableSplitViewResizing=r.enableSplitViewResizing);h._renderSideBySide?h._setStrategy(new hh(h._createDataSource(),h._enableSplitViewResizing)):h._setStrategy(new ph(h._createDataSource(),h._enableSplitViewResizing));h._register(l.onThemeChange(function(e){h._strategy&&h._strategy.applyColors(e)&&h._updateDecorationsRunner.schedule();h._containerDomElement.className=t._getClassName(h._themeService.getTheme(),h._renderSideBySide)}));h._codeEditorService.addDiffEditor(h);return h}t.prototype.hasWidgetFocus=function(){return K["A"](document.activeElement,this._domElement)};t.prototype.diffReviewNext=function(){this._reviewPane.next()};t.prototype.diffReviewPrev=function(){this._reviewPane.prev()};t._getClassName=function(e,t){var n="monaco-diff-editor monaco-editor-background ";t&&(n+="side-by-side ");return n+=Object(So["d"])(e.type)};t.prototype._recreateOverviewRulers=function(){if(this._originalOverviewRuler){this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode());this._originalOverviewRuler.dispose()}this._originalOverviewRuler=this.originalEditor.createOverviewRuler("original diffOverviewRuler");this._overviewDomElement.appendChild(this._originalOverviewRuler.getDomNode());if(this._modifiedOverviewRuler){this._overviewDomElement.removeChild(this._modifiedOverviewRuler.getDomNode());this._modifiedOverviewRuler.dispose()}this._modifiedOverviewRuler=this.modifiedEditor.createOverviewRuler("modified diffOverviewRuler");this._overviewDomElement.appendChild(this._modifiedOverviewRuler.getDomNode());this._layoutOverviewRulers()};t.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)};t.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)};t.prototype._createLeftHandSideEditor=function(e,t){var n=this;this.originalEditor=this._createInnerEditor(t,this._originalDomNode,this._adjustOptionsForLeftHandSide(e,this._originalIsEditable));this._register(this.originalEditor.onDidScrollChange(function(e){if(n._isHandlingScrollEvent)return;if(!e.scrollTopChanged&&!e.scrollLeftChanged&&!e.scrollHeightChanged)return;n._isHandlingScrollEvent=!0;n.modifiedEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop});n._isHandlingScrollEvent=!1;n._layoutOverviewViewport()}));this._register(this.originalEditor.onDidChangeViewZones(function(){n._onViewZonesChanged()}));this._register(this.originalEditor.onDidChangeModelContent(function(){n._isVisible&&n._beginUpdateDecorationsSoon()}))};t.prototype._createRightHandSideEditor=function(e,t){var n=this;this.modifiedEditor=this._createInnerEditor(t,this._modifiedDomNode,this._adjustOptionsForRightHandSide(e));this._register(this.modifiedEditor.onDidScrollChange(function(e){if(n._isHandlingScrollEvent)return;if(!e.scrollTopChanged&&!e.scrollLeftChanged&&!e.scrollHeightChanged)return;n._isHandlingScrollEvent=!0;n.originalEditor.setScrollPosition({scrollLeft:e.scrollLeft,scrollTop:e.scrollTop});n._isHandlingScrollEvent=!1;n._layoutOverviewViewport()}));this._register(this.modifiedEditor.onDidChangeViewZones(function(){n._onViewZonesChanged()}));this._register(this.modifiedEditor.onDidChangeConfiguration(function(e){e.fontInfo&&n.modifiedEditor.getModel()&&n._onViewZonesChanged()}));this._register(this.modifiedEditor.onDidChangeModelContent(function(){n._isVisible&&n._beginUpdateDecorationsSoon()}))};t.prototype._createInnerEditor=function(e,t,n){return e.createInstance(Dd,t,n,{})};t.prototype.dispose=function(){this._codeEditorService.removeDiffEditor(this);if(-1!==this._beginUpdateDecorationsTimeout){window.clearTimeout(this._beginUpdateDecorationsTimeout);this._beginUpdateDecorationsTimeout=-1}window.clearInterval(this._measureDomElementToken);this._cleanViewZonesAndDecorations();if(this._originalOverviewRuler){this._overviewDomElement.removeChild(this._originalOverviewRuler.getDomNode());this._originalOverviewRuler.dispose()}if(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)};t.prototype.getId=function(){return this.getEditorType()+":"+this.id};t.prototype.getEditorType=function(){return We.IDiffEditor};t.prototype.getLineChanges=function(){if(!this._diffComputationResult)return null;return this._diffComputationResult.changes};t.prototype.getOriginalEditor=function(){return this.originalEditor};t.prototype.getModifiedEditor=function(){return this.modifiedEditor};t.prototype.updateOptions=function(e){var n=!1;if(void 0!==e.renderSideBySide&&this._renderSideBySide!==e.renderSideBySide){this._renderSideBySide=e.renderSideBySide;n=!0}var r=!1;if(void 0!==e.ignoreTrimWhitespace&&this._ignoreTrimWhitespace!==e.ignoreTrimWhitespace){this._ignoreTrimWhitespace=e.ignoreTrimWhitespace;r=!0}if(void 0!==e.renderIndicators&&this._renderIndicators!==e.renderIndicators){this._renderIndicators=e.renderIndicators;r=!0}r&&this._beginUpdateDecorations();void 0!==e.originalEditable&&(this._originalIsEditable=Boolean(e.originalEditable));this.modifiedEditor.updateOptions(this._adjustOptionsForRightHandSide(e));this.originalEditor.updateOptions(this._adjustOptionsForLeftHandSide(e,this._originalIsEditable));void 0!==e.enableSplitViewResizing&&(this._enableSplitViewResizing=e.enableSplitViewResizing);this._strategy.setEnableSplitViewResizing(this._enableSplitViewResizing);if(n){this._renderSideBySide?this._setStrategy(new hh(this._createDataSource(),this._enableSplitViewResizing)):this._setStrategy(new ph(this._createDataSource(),this._enableSplitViewResizing));this._containerDomElement.className=t._getClassName(this._themeService.getTheme(),this._renderSideBySide)}};t.prototype.getModel=function(){return{original:this.originalEditor.getModel(),modified:this.modifiedEditor.getModel()}};t.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();if(e){this.originalEditor.setScrollTop(0);this.modifiedEditor.setScrollTop(0)}this._diffComputationResult=null;this._diffComputationToken++;if(e){this._recreateOverviewRulers();this._beginUpdateDecorations()}else this._diffComputationResult=null;this._layoutOverviewViewport()};t.prototype.getDomNode=function(){return this._domElement};t.prototype.getVisibleColumnFromPosition=function(e){return this.modifiedEditor.getVisibleColumnFromPosition(e)};t.prototype.getPosition=function(){return this.modifiedEditor.getPosition()};t.prototype.setPosition=function(e){this.modifiedEditor.setPosition(e)};t.prototype.revealLine=function(e,t){void 0===t&&(t=0);this.modifiedEditor.revealLine(e,t)};t.prototype.revealLineInCenter=function(e,t){void 0===t&&(t=0);this.modifiedEditor.revealLineInCenter(e,t)};t.prototype.revealLineInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0);this.modifiedEditor.revealLineInCenterIfOutsideViewport(e,t)};t.prototype.revealPosition=function(e,t){void 0===t&&(t=0);this.modifiedEditor.revealPosition(e,t)};t.prototype.revealPositionInCenter=function(e,t){void 0===t&&(t=0);this.modifiedEditor.revealPositionInCenter(e,t)};t.prototype.revealPositionInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0);this.modifiedEditor.revealPositionInCenterIfOutsideViewport(e,t)};t.prototype.getSelection=function(){return this.modifiedEditor.getSelection()};t.prototype.getSelections=function(){return this.modifiedEditor.getSelections()};t.prototype.setSelection=function(e){this.modifiedEditor.setSelection(e)};t.prototype.setSelections=function(e){this.modifiedEditor.setSelections(e)};t.prototype.revealLines=function(e,t,n){void 0===n&&(n=0);this.modifiedEditor.revealLines(e,t,n)};t.prototype.revealLinesInCenter=function(e,t,n){void 0===n&&(n=0);this.modifiedEditor.revealLinesInCenter(e,t,n)};t.prototype.revealLinesInCenterIfOutsideViewport=function(e,t,n){void 0===n&&(n=0);this.modifiedEditor.revealLinesInCenterIfOutsideViewport(e,t,n)};t.prototype.revealRange=function(e,t,n,r){void 0===t&&(t=0);void 0===n&&(n=!1);void 0===r&&(r=!0);this.modifiedEditor.revealRange(e,t,n,r)};t.prototype.revealRangeInCenter=function(e,t){void 0===t&&(t=0);this.modifiedEditor.revealRangeInCenter(e,t)};t.prototype.revealRangeInCenterIfOutsideViewport=function(e,t){void 0===t&&(t=0);this.modifiedEditor.revealRangeInCenterIfOutsideViewport(e,t)};t.prototype.revealRangeAtTop=function(e,t){void 0===t&&(t=0);this.modifiedEditor.revealRangeAtTop(e,t)};t.prototype.getSupportedActions=function(){return this.modifiedEditor.getSupportedActions()};t.prototype.saveViewState=function(){var e;var t;return{original:this.originalEditor.saveViewState(),modified:this.modifiedEditor.saveViewState()}};t.prototype.restoreViewState=function(e){if(e.original&&e.original){var t=e;this.originalEditor.restoreViewState(t.original);this.modifiedEditor.restoreViewState(t.modified)}};t.prototype.layout=function(e){this._measureDomElement(!1,e)};t.prototype.focus=function(){this.modifiedEditor.focus()};t.prototype.hasTextFocus=function(){return this.originalEditor.hasTextFocus()||this.modifiedEditor.hasTextFocus()};t.prototype.trigger=function(e,t,n){this.modifiedEditor.trigger(e,t,n)};t.prototype.changeDecorations=function(e){return this.modifiedEditor.changeDecorations(e)};t.prototype._measureDomElement=function(e,t){if((t=t||{width:this._containerDomElement.clientWidth,height:this._containerDomElement.clientHeight}).width<=0){this._width=0;this._height=0;this._reviewHeight=0;return}if(!e&&t.width===this._width&&t.height===this._height)return;this._width=t.width;this._height=t.height;this._reviewHeight=this._reviewPane.isVisible()?this._height:0;this._doLayout()};t.prototype._layoutOverviewRulers=function(){var e=t.ENTIRE_DIFF_OVERVIEW_WIDTH-2*t.ONE_OVERVIEW_WIDTH;var n;if(this.modifiedEditor.getLayoutInfo()){this._originalOverviewRuler.setLayout({top:0,width:t.ONE_OVERVIEW_WIDTH,right:e+t.ONE_OVERVIEW_WIDTH,height:this._height-this._reviewHeight});this._modifiedOverviewRuler.setLayout({top:0,right:0,width:t.ONE_OVERVIEW_WIDTH,height:this._height-this._reviewHeight})}};t.prototype._onViewZonesChanged=function(){if(this._currentlyChangingViewZones)return;this._updateDecorationsRunner.schedule()};t.prototype._beginUpdateDecorationsSoon=function(){var e=this;if(-1!==this._beginUpdateDecorationsTimeout){window.clearTimeout(this._beginUpdateDecorationsTimeout);this._beginUpdateDecorationsTimeout=-1}this._beginUpdateDecorationsTimeout=window.setTimeout(function(){return e._beginUpdateDecorations()},t.UPDATE_DIFF_DECORATIONS_DELAY)};t._equals=function(e,t){if(!e&&!t)return!0;if(!e||!t)return!1;return e.toString()===t.toString()};t.prototype._beginUpdateDecorations=function(){var e=this;this._beginUpdateDecorationsTimeout=-1;var n=this.originalEditor.getModel();var r=this.modifiedEditor.getModel();if(!n||!r)return;this._diffComputationToken++;var i=this._diffComputationToken;if(!this._editorWorkerService.canComputeDiff(n.uri,r.uri)){if(!t._equals(n.uri,this._lastOriginalWarning)||!t._equals(r.uri,this._lastModifiedWarning)){this._lastOriginalWarning=n.uri;this._lastModifiedWarning=r.uri;this._notificationService.warn(Bn["a"]("diff.tooLarge","Cannot compare files because one file is too large."))}return}this._editorWorkerService.computeDiff(n.uri,r.uri,this._ignoreTrimWhitespace).then(function(t){if(i===e._diffComputationToken&&n===e.originalEditor.getModel()&&r===e.modifiedEditor.getModel()){e._diffComputationResult=t;e._updateDecorationsRunner.schedule();e._onDidUpdateDiff.fire()}},function(t){if(i===e._diffComputationToken&&n===e.originalEditor.getModel()&&r===e.modifiedEditor.getModel()){e._diffComputationResult=null;e._updateDecorationsRunner.schedule()}})};t.prototype._cleanViewZonesAndDecorations=function(){this._originalEditorState.clean(this.originalEditor);this._modifiedEditorState.clean(this.modifiedEditor)};t.prototype._updateDecorations=function(){if(!this.originalEditor.getModel()||!this.modifiedEditor.getModel())return;var e=this._diffComputationResult?this._diffComputationResult.changes:[];var t=this._originalEditorState.getForeignViewZones(this.originalEditor.getWhitespaces());var n=this._modifiedEditorState.getForeignViewZones(this.modifiedEditor.getWhitespaces());var r=this._strategy.getEditorsDiffDecorations(e,this._ignoreTrimWhitespace,this._renderIndicators,t,n,this.originalEditor,this.modifiedEditor);try{this._currentlyChangingViewZones=!0;this._originalEditorState.apply(this.originalEditor,this._originalOverviewRuler,r.original,!1);this._modifiedEditorState.apply(this.modifiedEditor,this._modifiedOverviewRuler,r.modified,!0)}finally{this._currentlyChangingViewZones=!1}};t.prototype._adjustOptionsForSubEditor=function(e){var t=_e["b"](e||{});t.inDiffEditor=!0;t.wordWrap="off";t.wordWrapMinified=!1;t.automaticLayout=!1;t.scrollbar=t.scrollbar||{};t.scrollbar.vertical="visible";t.folding=!1;t.codeLens=!1;t.fixedOverflowWidgets=!0;t.minimap||(t.minimap={});t.minimap.enabled=!1;return t};t.prototype._adjustOptionsForLeftHandSide=function(e,t){var n=this._adjustOptionsForSubEditor(e);n.readOnly=!t;n.overviewRulerLanes=1;n.extraEditorClassName="original-in-monaco-diff-editor";return n};t.prototype._adjustOptionsForRightHandSide=function(e){var n=this._adjustOptionsForSubEditor(e);n.revealHorizontalRightPadding=u["a"].viewInfo.revealHorizontalRightPadding+t.ENTIRE_DIFF_OVERVIEW_WIDTH;n.scrollbar.verticalHasArrows=!1;n.extraEditorClassName="modified-in-monaco-diff-editor";return n};t.prototype.doLayout=function(){this._measureDomElement(!0)};t.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=t.ENTIRE_DIFF_OVERVIEW_WIDTH+"px";this._overviewDomElement.style.left=this._width-t.ENTIRE_DIFF_OVERVIEW_WIDTH+"px";this._overviewViewportDomElement.setWidth(t.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-t.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()};t.prototype._layoutOverviewViewport=function(){var e=this._computeOverviewViewport();if(e){this._overviewViewportDomElement.setTop(e.top);this._overviewViewportDomElement.setHeight(e.height)}else{this._overviewViewportDomElement.setTop(0);this._overviewViewportDomElement.setHeight(0)}};t.prototype._computeOverviewViewport=function(){var e=this.modifiedEditor.getLayoutInfo();if(!e)return null;var t=this.modifiedEditor.getScrollTop();var n=this.modifiedEditor.getScrollHeight();var r=Math.max(0,e.contentHeight);var i=Math.max(0,r-0);var o=n>0?i/n:0;var a;var s;return{height:Math.max(0,Math.floor(e.contentHeight*o)),top:Math.floor(t*o)}};t.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}}};t.prototype._setStrategy=function(e){this._strategy&&this._strategy.dispose();this._strategy=e;e.applyColors(this._themeService.getTheme());this._diffComputationResult&&this._updateDecorations();this._measureDomElement(!0)};t.prototype._getLineChangeAtOrBeforeLineNumber=function(e,t){var n=this._diffComputationResult?this._diffComputationResult.changes:[];if(0===n.length||e<t(n[0]))return null;var r=0,i=n.length-1;for(;r<i;){var o=Math.floor((r+i)/2);var a=t(n[o]);var s=o+1<=i?t(n[o+1]):Number.MAX_VALUE;if(e<a)i=o-1;else if(e>=s)r=o+1;else{r=o;i=o}}return n[r]};t.prototype._getEquivalentLineForOriginalLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,function(e){return e.originalStartLineNumber});if(!t)return e;var n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0);var r=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0);var i=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0;var o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0;var a=e-n;if(a<=i)return r+Math.min(a,o);return r+o-i+a};t.prototype._getEquivalentLineForModifiedLineNumber=function(e){var t=this._getLineChangeAtOrBeforeLineNumber(e,function(e){return e.modifiedStartLineNumber});if(!t)return e;var n=t.originalStartLineNumber+(t.originalEndLineNumber>0?-1:0);var r=t.modifiedStartLineNumber+(t.modifiedEndLineNumber>0?-1:0);var i=t.originalEndLineNumber>0?t.originalEndLineNumber-t.originalStartLineNumber+1:0;var o=t.modifiedEndLineNumber>0?t.modifiedEndLineNumber-t.modifiedStartLineNumber+1:0;var a=e-r;if(a<=o)return n+Math.min(a,i);return n+i-o+a};t.prototype.getDiffLineInformationForOriginal=function(e){if(!this._diffComputationResult)return null;return{equivalentLineNumber:this._getEquivalentLineForOriginalLineNumber(e)}};t.prototype.getDiffLineInformationForModified=function(e){if(!this._diffComputationResult)return null;return{equivalentLineNumber:this._getEquivalentLineForModifiedLineNumber(e)}};t.ONE_OVERVIEW_WIDTH=15;t.ENTIRE_DIFF_OVERVIEW_WIDTH=30;t.UPDATE_DIFF_DECORATIONS_DELAY=200;return t=nh([rh(2,Ue),rh(3,Mr["e"]),rh(4,ce["a"]),rh(5,Y["a"]),rh(6,So["c"]),rh(7,ai)],t)}(me["a"]);var sh=function(e){th(t,e);function t(t){var n=e.call(this)||this;n._dataSource=t;return n}t.prototype.applyColors=function(e){var t=(e.getColor(la["i"])||la["f"]).transparent(2);var n=(e.getColor(la["k"])||la["g"]).transparent(2);var r=!t.equals(this._insertColor)||!n.equals(this._removeColor);this._insertColor=t;this._removeColor=n;return r};t.prototype.getEditorsDiffDecorations=function(e,t,n,r,i,o,a){i=i.sort(function(e,t){return e.afterLineNumber-t.afterLineNumber});r=r.sort(function(e,t){return e.afterLineNumber-t.afterLineNumber});var s=this._getViewZones(e,r,i,o,a,n);var u=this._getOriginalEditorDecorations(e,t,n,o,a);var l=this._getModifiedEditorDecorations(e,t,n,o,a);return{original:{decorations:u.decorations,overviewZones:u.overviewZones,zones:s.original},modified:{decorations:l.decorations,overviewZones:l.overviewZones,zones:s.modified}}};return t}(me["a"]);var uh=function(){function e(e){this._source=e;this._index=-1;this.advance()}e.prototype.advance=function(){this._index++;this._index<this._source.length?this.current=this._source[this._index]:this.current=null};return e}();var lh=function(){function e(e,t,n){this.lineChanges=e;this.originalForeignVZ=t;this.modifiedForeignVZ=n}e.prototype.getViewZones=function(){var e={original:[],modified:[]};var t=0;var n=0;var r=0;var i=0;var o=0;var a=0;var s=function(e,t){return e.afterLineNumber-t.afterLineNumber};var u=function(e,t){if(null===t.domNode&&e.length>0){var n=e[e.length-1];if(n.afterLineNumber===t.afterLineNumber&&null===n.domNode){n.heightInLines+=t.heightInLines;return}}e.push(t)};var l=new uh(this.modifiedForeignVZ);var c=new uh(this.originalForeignVZ);for(var d=0,h=this.lineChanges.length;d<=h;d++){var f=d<h?this.lineChanges[d]:null;if(null!==f){r=f.originalStartLineNumber+(f.originalEndLineNumber>0?-1:0);i=f.modifiedStartLineNumber+(f.modifiedEndLineNumber>0?-1:0);n=f.originalEndLineNumber>0?f.originalEndLineNumber-f.originalStartLineNumber+1:0;t=f.modifiedEndLineNumber>0?f.modifiedEndLineNumber-f.modifiedStartLineNumber+1:0;o=Math.max(f.originalStartLineNumber,f.originalEndLineNumber);a=Math.max(f.modifiedStartLineNumber,f.modifiedEndLineNumber)}else{o=r+=1e7+n;a=i+=1e7+t}var p=[];var g=[];for(;l.current&&l.current.afterLineNumber<=a;){var v=void 0;v=l.current.afterLineNumber<=i?r-i+l.current.afterLineNumber:o;var m=null;f&&f.modifiedStartLineNumber<=l.current.afterLineNumber&&l.current.afterLineNumber<=f.modifiedEndLineNumber&&(m=this._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion());p.push({afterLineNumber:v,heightInLines:l.current.heightInLines,domNode:null,marginDomNode:m});l.advance()}for(;c.current&&c.current.afterLineNumber<=o;){var v=void 0;v=c.current.afterLineNumber<=r?i-r+c.current.afterLineNumber:a;g.push({afterLineNumber:v,heightInLines:c.current.heightInLines,domNode:null});c.advance()}if(null!==f&&vh(f)){var _;(_=this._produceOriginalFromDiff(f,n,t))&&p.push(_)}if(null!==f&&mh(f)){var _;(_=this._produceModifiedFromDiff(f,n,t))&&g.push(_)}var y=0;var b=0;p=p.sort(s);g=g.sort(s);for(;y<p.length&&b<g.length;){var C=p[y];var w=g[b];var S=C.afterLineNumber-r;var L=w.afterLineNumber-i;if(S<L){u(e.original,C);y++}else if(L<S){u(e.modified,w);b++}else if(C.shouldNotShrink){u(e.original,C);y++}else if(w.shouldNotShrink){u(e.modified,w);b++}else if(C.heightInLines>=w.heightInLines){C.heightInLines-=w.heightInLines;b++}else{w.heightInLines-=C.heightInLines;y++}}for(;y<p.length;){u(e.original,p[y]);y++}for(;b<g.length;){u(e.modified,g[b]);b++}}var I=function(e){e.domNode||(e.domNode=_h())};e.original.forEach(I);e.modified.forEach(I);return e};return e}();function ch(e,t,n,r,i){return{range:new p["a"](e,t,n,r),options:i}}var dh={charDelete:bs["a"].register({className:"char-delete"}),charDeleteWholeLine:bs["a"].register({className:"char-delete",isWholeLine:!0}),charInsert:bs["a"].register({className:"char-insert"}),charInsertWholeLine:bs["a"].register({className:"char-insert",isWholeLine:!0}),lineInsert:bs["a"].register({className:"line-insert",marginClassName:"line-insert",isWholeLine:!0}),lineInsertWithSign:bs["a"].register({className:"line-insert",linesDecorationsClassName:"insert-sign",marginClassName:"line-insert",isWholeLine:!0}),lineDelete:bs["a"].register({className:"line-delete",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteWithSign:bs["a"].register({className:"line-delete",linesDecorationsClassName:"delete-sign",marginClassName:"line-delete",isWholeLine:!0}),lineDeleteMargin:bs["a"].register({marginClassName:"line-delete"})};var hh=function(e){th(t,e);function t(t,n){var r=e.call(this,t)||this;r._disableSash=!1===n;r._sashRatio=null;r._sashPosition=null;r._sash=r._register(new Vd["a"](r._dataSource.getContainerDomNode(),r));r._disableSash&&(r._sash.state=0);r._sash.onDidStart(function(){return r.onSashDragStart()});r._sash.onDidChange(function(e){return r.onSashDrag(e)});r._sash.onDidEnd(function(){return r.onSashDragEnd()});r._sash.onDidReset(function(){return r.onSashReset()});return r}t.prototype.setEnableSplitViewResizing=function(e){var t=!1===e;if(this._disableSash!==t){this._disableSash=t;this._sash.state=this._disableSash?0:3}};t.prototype.layout=function(e){void 0===e&&(e=this._sashRatio);var n;var r=this._dataSource.getWidth()-ah.ENTIRE_DIFF_OVERVIEW_WIDTH;var i=Math.floor((e||.5)*r);var o=Math.floor(.5*r);i=this._disableSash?o:i||o;if(r>2*t.MINIMUM_EDITOR_WIDTH){i<t.MINIMUM_EDITOR_WIDTH&&(i=t.MINIMUM_EDITOR_WIDTH);i>r-t.MINIMUM_EDITOR_WIDTH&&(i=r-t.MINIMUM_EDITOR_WIDTH)}else i=o;if(this._sashPosition!==i){this._sashPosition=i;this._sash.layout()}return this._sashPosition};t.prototype.onSashDragStart=function(){this._startSashPosition=this._sashPosition};t.prototype.onSashDrag=function(e){var t;var n=this._dataSource.getWidth()-ah.ENTIRE_DIFF_OVERVIEW_WIDTH;var r=this.layout((this._startSashPosition+(e.currentX-e.startX))/n);this._sashRatio=r/n;this._dataSource.relayoutEditors()};t.prototype.onSashDragEnd=function(){this._sash.layout()};t.prototype.onSashReset=function(){this._sashRatio=.5;this._dataSource.relayoutEditors();this._sash.layout()};t.prototype.getVerticalSashTop=function(e){return 0};t.prototype.getVerticalSashLeft=function(e){return this._sashPosition};t.prototype.getVerticalSashHeight=function(e){return this._dataSource.getHeight()};t.prototype._getViewZones=function(e,t,n,r,i){var o;return new fh(e,t,n).getViewZones()};t.prototype._getOriginalEditorDecorations=function(e,t,n,r,i){var o=this._removeColor.toString();var a={decorations:[],overviewZones:[]};var s=r.getModel();for(var u=0,l=e.length;u<l;u++){var c=e[u];if(mh(c)){a.decorations.push({range:new p["a"](c.originalStartLineNumber,1,c.originalEndLineNumber,Number.MAX_VALUE),options:n?dh.lineDeleteWithSign:dh.lineDelete});vh(c)&&c.charChanges||a.decorations.push(ch(c.originalStartLineNumber,1,c.originalEndLineNumber,Number.MAX_VALUE,dh.charDeleteWholeLine));a.overviewZones.push(new rc(c.originalStartLineNumber,c.originalEndLineNumber,o));if(c.charChanges)for(var d=0,h=c.charChanges.length;d<h;d++){var f=c.charChanges[d];if(mh(f))if(t)for(var g=f.originalStartLineNumber;g<=f.originalEndLineNumber;g++){var v=void 0;var m=void 0;v=g===f.originalStartLineNumber?f.originalStartColumn:s.getLineFirstNonWhitespaceColumn(g);m=g===f.originalEndLineNumber?f.originalEndColumn:s.getLineLastNonWhitespaceColumn(g);a.decorations.push(ch(g,v,g,m,dh.charDelete))}else a.decorations.push(ch(f.originalStartLineNumber,f.originalStartColumn,f.originalEndLineNumber,f.originalEndColumn,dh.charDelete))}}}return a};t.prototype._getModifiedEditorDecorations=function(e,t,n,r,i){var o=this._insertColor.toString();var a={decorations:[],overviewZones:[]};var s=i.getModel();for(var u=0,l=e.length;u<l;u++){var c=e[u];if(vh(c)){a.decorations.push({range:new p["a"](c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,Number.MAX_VALUE),options:n?dh.lineInsertWithSign:dh.lineInsert});mh(c)&&c.charChanges||a.decorations.push(ch(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,Number.MAX_VALUE,dh.charInsertWholeLine));a.overviewZones.push(new rc(c.modifiedStartLineNumber,c.modifiedEndLineNumber,o));if(c.charChanges)for(var d=0,h=c.charChanges.length;d<h;d++){var f=c.charChanges[d];if(vh(f))if(t)for(var g=f.modifiedStartLineNumber;g<=f.modifiedEndLineNumber;g++){var v=void 0;var m=void 0;v=g===f.modifiedStartLineNumber?f.modifiedStartColumn:s.getLineFirstNonWhitespaceColumn(g);m=g===f.modifiedEndLineNumber?f.modifiedEndColumn:s.getLineLastNonWhitespaceColumn(g);a.decorations.push(ch(g,v,g,m,dh.charInsert))}else a.decorations.push(ch(f.modifiedStartLineNumber,f.modifiedStartColumn,f.modifiedEndLineNumber,f.modifiedEndColumn,dh.charInsert))}}}return a};t.MINIMUM_EDITOR_WIDTH=100;return t}(sh);var fh=function(e){th(t,e);function t(t,n,r){return e.call(this,t,n,r)||this}t.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){return null};t.prototype._produceOriginalFromDiff=function(e,t,n){if(n>t)return{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n-t,domNode:null};return null};t.prototype._produceModifiedFromDiff=function(e,t,n){if(t>n)return{afterLineNumber:Math.max(e.modifiedStartLineNumber,e.modifiedEndLineNumber),heightInLines:t-n,domNode:null};return null};return t}(lh);var ph=function(e){th(t,e);function t(t,n){var r=e.call(this,t)||this;r.decorationsLeft=t.getOriginalEditor().getLayoutInfo().decorationsLeft;r._register(t.getOriginalEditor().onDidLayoutChange(function(e){if(r.decorationsLeft!==e.decorationsLeft){r.decorationsLeft=e.decorationsLeft;t.relayoutEditors()}}));return r}t.prototype.setEnableSplitViewResizing=function(e){};t.prototype._getViewZones=function(e,t,n,r,i,o){var a;return new gh(e,t,n,r,i,o).getViewZones()};t.prototype._getOriginalEditorDecorations=function(e,t,n,r,i){var o=this._removeColor.toString();var a={decorations:[],overviewZones:[]};for(var s=0,u=e.length;s<u;s++){var l=e[s];if(mh(l)){a.decorations.push({range:new p["a"](l.originalStartLineNumber,1,l.originalEndLineNumber,Number.MAX_VALUE),options:dh.lineDeleteMargin});a.overviewZones.push(new rc(l.originalStartLineNumber,l.originalEndLineNumber,o))}}return a};t.prototype._getModifiedEditorDecorations=function(e,t,n,r,i){var o=this._insertColor.toString();var a={decorations:[],overviewZones:[]};var s=i.getModel();for(var u=0,l=e.length;u<l;u++){var c=e[u];if(vh(c)){a.decorations.push({range:new p["a"](c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,Number.MAX_VALUE),options:n?dh.lineInsertWithSign:dh.lineInsert});a.overviewZones.push(new rc(c.modifiedStartLineNumber,c.modifiedEndLineNumber,o));if(c.charChanges)for(var d=0,h=c.charChanges.length;d<h;d++){var f=c.charChanges[d];if(vh(f))if(t)for(var g=f.modifiedStartLineNumber;g<=f.modifiedEndLineNumber;g++){var v=void 0;var m=void 0;v=g===f.modifiedStartLineNumber?f.modifiedStartColumn:s.getLineFirstNonWhitespaceColumn(g);m=g===f.modifiedEndLineNumber?f.modifiedEndColumn:s.getLineLastNonWhitespaceColumn(g);a.decorations.push(ch(g,v,g,m,dh.charInsert))}else a.decorations.push(ch(f.modifiedStartLineNumber,f.modifiedStartColumn,f.modifiedEndLineNumber,f.modifiedEndColumn,dh.charInsert))}else a.decorations.push(ch(c.modifiedStartLineNumber,1,c.modifiedEndLineNumber,Number.MAX_VALUE,dh.charInsertWholeLine))}}return a};t.prototype.layout=function(){return Math.max(5,this.decorationsLeft)};return t}(sh);var gh=function(e){th(t,e);function t(t,n,r,i,o,a){var s=e.call(this,t,n,r)||this;s.originalModel=i.getModel();s.modifiedEditorConfiguration=o.getConfiguration();s.modifiedEditorTabSize=o.getModel().getOptions().tabSize;s.renderIndicators=a;return s}t.prototype._createOriginalMarginDomNodeForModifiedForeignViewZoneInAddedRegion=function(){var e=document.createElement("div");e.className="inline-added-margin-view-zone";return e};t.prototype._produceOriginalFromDiff=function(e,t,n){var r=document.createElement("div");r.className="inline-added-margin-view-zone";return{afterLineNumber:Math.max(e.originalStartLineNumber,e.originalEndLineNumber),heightInLines:n,domNode:document.createElement("div"),marginDomNode:r}};t.prototype._produceModifiedFromDiff=function(e,t,n){var r=[];if(e.charChanges)for(var i=0,o=e.charChanges.length;i<o;i++){var a=e.charChanges[i];mh(a)&&r.push(new Pn(new p["a"](a.originalStartLineNumber,a.originalStartColumn,a.originalEndLineNumber,a.originalEndColumn),"char-delete",0))}var s=dn(1e4);var u=[];var l=this.modifiedEditorConfiguration.layoutInfo.decorationsWidth;var c=this.modifiedEditorConfiguration.lineHeight;var d=this.modifiedEditorConfiguration.fontInfo.typicalHalfwidthCharacterWidth;var h=0;for(var f=e.originalStartLineNumber;f<=e.originalEndLineNumber;f++){h=Math.max(h,this._renderOriginalLine(f-e.originalStartLineNumber,this.originalModel,this.modifiedEditorConfiguration,this.modifiedEditorTabSize,f,r,s));if(this.renderIndicators){var g=f-e.originalStartLineNumber;u=u.concat(['<div class="delete-sign" style="position:absolute;top:'+g*c+"px;width:"+l+"px;height:"+c+'px;right:0;"></div>'])}}h+=this.modifiedEditorConfiguration.viewInfo.scrollBeyondLastColumn;var v=document.createElement("div");v.className="view-lines line-delete";v.innerHTML=s.build();Gi.applyFontInfoSlow(v,this.modifiedEditorConfiguration.fontInfo);var m=document.createElement("div");m.className="inline-deleted-margin-view-zone";m.innerHTML=u.join("");Gi.applyFontInfoSlow(m,this.modifiedEditorConfiguration.fontInfo);return{shouldNotShrink:!0,afterLineNumber:0===e.modifiedEndLineNumber?e.modifiedStartLineNumber:e.modifiedStartLineNumber-1,heightInLines:t,minWidthInPx:h*d,domNode:v,marginDomNode:m}};t.prototype._renderOriginalLine=function(e,t,n,r,i,o,a){var s=t.getLineTokens(i);var u=s.getLineContent();var l=pn.filter(o,i,1,u.length+1);a.appendASCIIString('<div class="view-line');0===o.length&&a.appendASCIIString(" char-delete");a.appendASCIIString('" style="top:');a.appendASCIIString(String(e*n.lineHeight));a.appendASCIIString('px;width:1000000px;">');var c=Rn.isBasicASCII(u,t.mightContainNonBasicASCII());var d=Rn.containsRTL(u,c,t.mightContainRTL());var h=wn(new yn(n.fontInfo.isMonospace&&!n.viewInfo.disableMonospaceOptimizations,n.fontInfo.canUseHalfwidthRightwardsArrow,u,!1,c,d,0,s,l,r,n.fontInfo.spaceWidth,n.viewInfo.stopRenderingLineAfter,n.viewInfo.renderWhitespace,n.viewInfo.renderControlCharacters,n.viewInfo.fontLigatures),a);a.appendASCIIString("</div>");var f=h.characterMapping.getAbsoluteOffsets();return f.length>0?f[f.length-1]:0};return t}(lh);function vh(e){return e.modifiedEndLineNumber>0}function mh(e){return e.originalEndLineNumber>0}function _h(){var e=document.createElement("div");e.className="diagonal-fill";return e}Object(So["e"])(function(e,t){var n=e.getColor(la["i"]);if(n){t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { background-color: "+n+"; }");t.addRule(".monaco-diff-editor .line-insert, .monaco-diff-editor .char-insert { background-color: "+n+"; }");t.addRule(".monaco-editor .inline-added-margin-view-zone { background-color: "+n+"; }")}var r=e.getColor(la["k"]);if(r){t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { background-color: "+r+"; }");t.addRule(".monaco-diff-editor .line-delete, .monaco-diff-editor .char-delete { background-color: "+r+"; }");t.addRule(".monaco-editor .inline-deleted-margin-view-zone { background-color: "+r+"; }")}var i=e.getColor(la["j"]);i&&t.addRule(".monaco-editor .line-insert, .monaco-editor .char-insert { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+i+"; }");var o=e.getColor(la["l"]);o&&t.addRule(".monaco-editor .line-delete, .monaco-editor .char-delete { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+o+"; }");var a=e.getColor(la["mb"]);a&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { box-shadow: -6px 0 5px -5px "+a+"; }");var s=e.getColor(la["h"]);s&&t.addRule(".monaco-diff-editor.side-by-side .editor.modified { border-left: 1px solid "+s+"; }")});var yh=Object(ce["c"])("themeService");var bh=n("E5Z7");var Ch=n("+y1K");var wh=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Sh=function(e,t,n,r){var i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};var Lh=function(e,t){return function(n,r){t(n,r,e)}};var Ih=0;var xh=!1;function Nh(){if(xh)return;xh=!0;Ri["b"](document.body)}var Mh=function(e){wh(t,e);function t(t,n,r,i,o,a,s,u,l){var c=this;(n=n||{}).ariaLabel=n.ariaLabel||Bn["a"]("editorViewAccessibleLabel","Editor content");n.ariaLabel=n.ariaLabel+";"+(Ai["k"]?Bn["a"]("accessibilityHelpMessageIE","Press Ctrl+F1 for Accessibility Options."):Bn["a"]("accessibilityHelpMessage","Press Alt+F1 for Accessibility Options."));c=e.call(this,t,n,{},r,i,o,a,u,l)||this;s instanceof Si&&(c._standaloneKeybindingService=s);Nh();return c}t.prototype.addCommand=function(e,t,n){if(!this._standaloneKeybindingService){console.warn("Cannot add command because the editor is configured with an unrecognized KeybindingService");return null}var r="DYNAMIC_"+ ++Ih;var i=Mr["d"].deserialize(n);this._standaloneKeybindingService.addDynamicKeybinding(r,e,t,i);return r};t.prototype.createContextKey=function(e,t){return this._contextKeyService.createKey(e,t)};t.prototype.addAction=function(e){var t=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){console.warn("Cannot add keybinding because the editor is configured with an unrecognized KeybindingService");return me["a"].None}var n=e.id;var r=e.label;var i=Mr["d"].and(Mr["d"].equals("editorId",this.getId()),Mr["d"].deserialize(e.precondition));var o=e.keybindings;var a=Mr["d"].and(i,Mr["d"].deserialize(e.keybindingContext));var s=e.contextMenuGroupId||null;var u=e.contextMenuOrder||0;var l=function(){return Promise.resolve(e.run(t))};var c=[];var d=this.getId()+":"+n;c.push(le["a"].registerCommand(d,l));if(s){var h={command:{id:d,title:r},when:i,group:s,order:u};c.push(Dr["d"].appendMenuItem(Dr["b"].EditorContext,h))}Array.isArray(o)&&(c=c.concat(o.map(function(e){return t._standaloneKeybindingService.addDynamicKeybinding(d,e,l,a)})));var f=new Kc(d,r,r,i,l,this._contextKeyService);this._actions[n]=f;c.push(Object(me["e"])(function(){delete t._actions[n]}));return Object(me["c"])(c)};return t=Sh([Lh(2,ce["a"]),Lh(3,Y["a"]),Lh(4,le["b"]),Lh(5,Mr["e"]),Lh(6,Ch["a"]),Lh(7,So["c"]),Lh(8,ai)],t)}(Dd);var Dh=function(e){wh(t,e);function t(t,n,r,i,o,a,s,u,l,c,d,h){var f=this;Oi(h,n,!1);"string"==typeof(n=n||{}).theme&&c.setTheme(n.theme);var p=n.model;delete n.model;(f=e.call(this,t,n,i,o,a,s,u,c,d)||this)._contextViewService=l;f._configurationService=h;f._register(r);var g;if(void 0===p){g=self.monaco.editor.createModel(n.value||"",n.language||"text/plain");f._ownsModel=!0}else{g=p;f._ownsModel=!1}f._attachModel(g);if(g){var v={oldModelUrl:null,newModelUrl:g.uri};f._onDidChangeModel.fire(v)}return f}t.prototype.dispose=function(){e.prototype.dispose.call(this)};t.prototype.updateOptions=function(t){Oi(this._configurationService,t,!1);e.prototype.updateOptions.call(this,t)};t.prototype._attachModel=function(t){e.prototype._attachModel.call(this,t);this._modelData&&this._contextViewService.setContainer(this._modelData.view.domNode.domNode)};t.prototype._postDetachModelCleanup=function(t){e.prototype._postDetachModelCleanup.call(this,t);if(t&&this._ownsModel){t.dispose();this._ownsModel=!1}};return t=Sh([Lh(3,ce["a"]),Lh(4,Y["a"]),Lh(5,le["b"]),Lh(6,Mr["e"]),Lh(7,Ch["a"]),Lh(8,bh["b"]),Lh(9,yh),Lh(10,ai),Lh(11,Tr)],t)}(Mh);var kh=function(e){wh(t,e);function t(t,n,r,i,o,a,s,u,l,c,d,h){var f=this;Oi(h,n,!0);"string"==typeof(n=n||{}).theme&&(n.theme=c.setTheme(n.theme));(f=e.call(this,t,n,u,o,i,l,c,d)||this)._contextViewService=s;f._configurationService=h;f._register(r);f._contextViewService.setContainer(f._containerDomElement);return f}t.prototype.dispose=function(){e.prototype.dispose.call(this)};t.prototype.updateOptions=function(t){Oi(this._configurationService,t,!0);e.prototype.updateOptions.call(this,t)};t.prototype._createInnerEditor=function(e,t,n){return e.createInstance(Mh,t,n)};t.prototype.getOriginalEditor=function(){return e.prototype.getOriginalEditor.call(this)};t.prototype.getModifiedEditor=function(){return e.prototype.getModifiedEditor.call(this)};t.prototype.addCommand=function(e,t,n){return this.getModifiedEditor().addCommand(e,t,n)};t.prototype.createContextKey=function(e,t){return this.getModifiedEditor().createContextKey(e,t)};t.prototype.addAction=function(e){return this.getModifiedEditor().addAction(e)};return t=Sh([Lh(3,ce["a"]),Lh(4,Mr["e"]),Lh(5,Ch["a"]),Lh(6,bh["b"]),Lh(7,Ue),Lh(8,Y["a"]),Lh(9,yh),Lh(10,ai),Lh(11,Tr)],t)}(ah);var Oh=Object(ce["c"])("IWorkspaceEditService");var Eh=Object(ce["c"])("modeService");var Th=function(){function e(e){this._languageIdentifier=e}e.prototype.getId=function(){return this._languageIdentifier.language};return e}();var Ah=n("cErD");var Rh="text/plain";var Ph="application/unknown";var jh=[];var Wh=[];var Fh=[];function zh(e,t){void 0===t&&(t=!1);var n=Vh(e);jh.push(n);n.userConfigured?Fh.push(n):Wh.push(n);t&&!n.userConfigured&&jh.forEach(function(e){if(e.mime===n.mime||e.userConfigured)return;n.extension&&e.extension===n.extension&&console.warn("Overwriting extension <<"+n.extension+">> to now point to mime <<"+n.mime+">>");n.filename&&e.filename===n.filename&&console.warn("Overwriting filename <<"+n.filename+">> to now point to mime <<"+n.mime+">>");n.filepattern&&e.filepattern===n.filepattern&&console.warn("Overwriting filepattern <<"+n.filepattern+">> to now point to mime <<"+n.mime+">>");n.firstline&&e.firstline===n.firstline&&console.warn("Overwriting firstline <<"+n.firstline+">> to now point to mime <<"+n.mime+">>")})}function Vh(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(X["h"])>=0}}function Bh(e,t){if(!e)return[Ph];e=e.toLowerCase();var n=X["a"](e);var r=Hh(e,n,Fh);if(r)return[r,Rh];var i=Hh(e,n,Wh);if(i)return[i,Rh];if(t){var o=Uh(t);if(o)return[o,Rh]}return[Ph]}function Hh(e,t,n){var r=null;var i=null;var o=null;for(var a=n.length-1;a>=0;a--){var s=n[a];if(t===s.filenameLowercase){r=s;break}if(s.filepattern&&(!i||s.filepattern.length>i.filepattern.length)){var u=s.filepatternOnPath?e:t;Object(Ah["a"])(s.filepatternLowercase,u)&&(i=s)}s.extension&&(!o||s.extension.length>o.extension.length)&&$["i"](t,s.extensionLowercase)&&(o=s)}if(r)return r.mime;if(i)return i.mime;if(o)return o.mime;return null}function Uh(e){$["C"](e)&&(e=e.substr(1));if(e.length>0)for(var t=0;t<jh.length;++t){var n=jh[t];if(!n.firstline)continue;var r=e.match(n.firstline);if(r&&r.length>0)return n.mime}return null}var Zh="editor.modesRegistry";var Gh;var Yh=new(function(){function e(){this._onDidAddLanguages=new c["a"];this.onDidAddLanguages=this._onDidAddLanguages.event;this._languages=[]}e.prototype.registerLanguage=function(e){this._languages.push(e);this._onDidAddLanguages.fire([e])};e.prototype.getLanguages=function(){return this._languages.slice(0)};return e}());Yn["a"].add(Zh,Yh);var Kh="plaintext";var Qh=new Ve["n"]("plaintext",1);Yh.registerLanguage({id:"plaintext",extensions:[".txt",".gitignore"],aliases:[Bn["a"]("plainText.alias","Plain Text"),"text"],mimetypes:["text/plain"]});ot["a"].register(Qh,{brackets:[["(",")"],["[","]"],["{","}"]]});var qh=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Jh=Object.prototype.hasOwnProperty;var Xh=function(e){qh(t,e);function t(t,n){void 0===t&&(t=!0);void 0===n&&(n=!1);var r=e.call(this)||this;r._onDidChange=r._register(new c["a"]);r.onDidChange=r._onDidChange.event;r._nextLanguageId=1;r._languages={};r._mimeTypesMap={};r._nameMap={};r._lowercaseNameMap={};r._languageIds=[];r._warnOnOverwrite=n;if(t){r._registerLanguages(Yh.getLanguages());r._register(Yh.onDidAddLanguages(function(e){return r._registerLanguages(e)}))}return r}t.prototype._registerLanguages=function(e){var t=this;if(0===e.length)return;for(var n=0;n<e.length;n++)this._registerLanguage(e[n]);this._mimeTypesMap={};this._nameMap={};this._lowercaseNameMap={};Object.keys(this._languages).forEach(function(e){var n=t._languages[e];n.name&&(t._nameMap[n.name]=n.identifier);n.aliases.forEach(function(e){t._lowercaseNameMap[e.toLowerCase()]=n.identifier});n.mimetypes.forEach(function(e){t._mimeTypesMap[e]=n.identifier})});Yn["a"].as($n.Configuration).registerOverrideIdentifiers(Yh.getLanguages().map(function(e){return e.id}));this._onDidChange.fire()};t.prototype._registerLanguage=function(e){var t=e.id;var n;if(Jh.call(this._languages,t))n=this._languages[t];else{var r=this._nextLanguageId++;n={identifier:new Ve["n"](t,r),name:null,mimetypes:[],aliases:[],extensions:[],filenames:[],configurationFiles:[]};this._languageIds[r]=t;this._languages[t]=n}this._mergeLanguage(n,e)};t.prototype._mergeLanguage=function(e,t){var n;var r=t.id;var i=null;if(Array.isArray(t.mimetypes)&&t.mimetypes.length>0){(n=e.mimetypes).push.apply(n,t.mimetypes);i=t.mimetypes[0]}if(!i){i="text/x-"+r;e.mimetypes.push(i)}if(Array.isArray(t.extensions))for(var o=0,a=t.extensions;o<a.length;o++){var s=a[o];zh({id:r,mime:i,extension:s},this._warnOnOverwrite);e.extensions.push(s)}if(Array.isArray(t.filenames))for(var u=0,l=t.filenames;u<l.length;u++){var c=l[u];zh({id:r,mime:i,filename:c},this._warnOnOverwrite);e.filenames.push(c)}if(Array.isArray(t.filenamePatterns))for(var d=0,h=t.filenamePatterns;d<h.length;d++){var f;zh({id:r,mime:i,filepattern:h[d]},this._warnOnOverwrite)}if("string"==typeof t.firstLine&&t.firstLine.length>0){var p=t.firstLine;"^"!==p.charAt(0)&&(p="^"+p);try{var g=new RegExp(p);$["y"](g)||zh({id:r,mime:i,firstline:g},this._warnOnOverwrite)}catch(e){Object(Ge["d"])(e)}}e.aliases.push(r);var v=null;void 0!==t.aliases&&Array.isArray(t.aliases)&&(v=0===t.aliases.length?[null]:t.aliases);if(null!==v)for(var m=0;m<v.length;m++){var _=v[m];if(!_||0===_.length)continue;e.aliases.push(_)}var y=null!==v&&v.length>0;if(y&&null===v[0]);else{var b=(y?v[0]:null)||r;!y&&e.name||(e.name=b)}t.configuration&&e.configurationFiles.push(t.configuration)};t.prototype.isRegisteredMode=function(e){if(Jh.call(this._mimeTypesMap,e))return!0;return Jh.call(this._languages,e)};t.prototype.getModeIdForLanguageNameLowercase=function(e){if(!Jh.call(this._lowercaseNameMap,e))return null;return this._lowercaseNameMap[e].language};t.prototype.extractModeIds=function(e){var t=this;if(!e)return[];return e.split(",").map(function(e){return e.trim()}).map(function(e){if(Jh.call(t._mimeTypesMap,e))return t._mimeTypesMap[e].language;return e}).filter(function(e){return Jh.call(t._languages,e)})};t.prototype.getLanguageIdentifier=function(e){if(e===Be["b"]||0===e)return Be["a"];var t;if("string"==typeof e)t=e;else if(!(t=this._languageIds[e]))return null;if(!Jh.call(this._languages,t))return null;return this._languages[t].identifier};t.prototype.getModeIdsFromFilepathOrFirstLine=function(e,t){if(!e&&!t)return[];var n=Bh(e,t);return this.extractModeIds(n.join(","))};return t}(me["a"]);var $h=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var ef=function(e){$h(t,e);function t(t,n){var r=e.call(this)||this;r._onDidChange=r._register(new c["a"]);r.onDidChange=r._onDidChange.event;r._selector=n;r.languageIdentifier=r._selector();r._register(t(function(){return r._evaluate()}));return r}t.prototype._evaluate=function(){var e=this._selector();if(e.id===this.languageIdentifier.id)return;this.languageIdentifier=e;this._onDidChange.fire(this.languageIdentifier)};return t}(me["a"]);var tf=function(){function e(e){void 0===e&&(e=!1);var t=this;this._onDidCreateMode=new c["a"];this.onDidCreateMode=this._onDidCreateMode.event;this._onLanguagesMaybeChanged=new c["a"];this.onLanguagesMaybeChanged=this._onLanguagesMaybeChanged.event;this._instantiatedModes={};this._registry=new Xh(!0,e);this._registry.onDidChange(function(){return t._onLanguagesMaybeChanged.fire()})}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);if(n.length>0)return n[0];return null};e.prototype.getModeId=function(e){var t=this._registry.extractModeIds(e);if(t.length>0)return t[0];return null};e.prototype.getLanguageIdentifier=function(e){return this._registry.getLanguageIdentifier(e)};e.prototype.create=function(e){var t=this;return new ef(this.onLanguagesMaybeChanged,function(){var n=t.getModeId(e);return t._createModeAndGetLanguageIdentifier(n)})};e.prototype.createByFilepathOrFirstLine=function(e,t){var n=this;return new ef(this.onLanguagesMaybeChanged,function(){var r=n.getModeIdByFilepathOrFirstLine(e,t);return n._createModeAndGetLanguageIdentifier(r)})};e.prototype._createModeAndGetLanguageIdentifier=function(e){var t=this.getLanguageIdentifier(e||"plaintext")||Be["a"];this._getOrCreateMode(t.language);return 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)||Be["a"];this._instantiatedModes[e]=new Th(t);this._onDidCreateMode.fire(this._instantiatedModes[e])}return this._instantiatedModes[e]};return e}();var nf=n("mHwz");var rf;!function(e){e[e["Hint"]=1]="Hint";e[e["Info"]=2]="Info";e[e["Warning"]=4]="Warning";e[e["Error"]=8]="Error"}(rf||(rf={}));!function(e){function t(e,t){return t-e}e.compare=t;var n=Object.create(null);n[e.Error]=Object(Bn["a"])("sev.error","Error");n[e.Warning]=Object(Bn["a"])("sev.warning","Warning");n[e.Info]=Object(Bn["a"])("sev.info","Info");function r(e){return n[e]||""}e.toString=r;function i(t){switch(t){case Zn.Error:return e.Error;case Zn.Warning:return e.Warning;case Zn.Info:return e.Info;case Zn.Ignore:return e.Hint}}e.fromSeverity=i}(rf||(rf={}));var of;!function(e){var t="";function n(e){var n=[t];e.source?n.push(e.source.replace("¦","¦")):n.push(t);e.code?n.push(e.code.replace("¦","¦")):n.push(t);void 0!==e.severity&&null!==e.severity?n.push(rf.toString(e.severity)):n.push(t);e.message?n.push(e.message.replace("¦","¦")):n.push(t);void 0!==e.startLineNumber&&null!==e.startLineNumber?n.push(e.startLineNumber.toString()):n.push(t);void 0!==e.startColumn&&null!==e.startColumn?n.push(e.startColumn.toString()):n.push(t);void 0!==e.endLineNumber&&null!==e.endLineNumber?n.push(e.endLineNumber.toString()):n.push(t);void 0!==e.endColumn&&null!==e.endColumn?n.push(e.endColumn.toString()):n.push(t);n.push(t);return n.join("¦")}e.makeKey=n}(of||(of={}));var af=Object(ce["c"])("markerService");var sf=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var uf=function(e,t,n,r){var i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};var lf=function(e,t){return function(n,r){t(n,r,e)}};function cf(e){return e.toString()}var df=function(){function e(e,t,n){this.model=e;this._languageSelection=null;this._languageSelectionListener=null;this._markerDecorations=[];this._modelEventListeners=[];this._modelEventListeners.push(e.onWillDispose(function(){return t(e)}));this._modelEventListeners.push(e.onDidChangeLanguage(function(t){return n(e,t)}))}e.prototype._disposeLanguageSelection=function(){if(this._languageSelectionListener){this._languageSelectionListener.dispose();this._languageSelectionListener=null}if(this._languageSelection){this._languageSelection.dispose();this._languageSelection=null}};e.prototype.dispose=function(){this._markerDecorations=this.model.deltaDecorations(this._markerDecorations,[]);this._modelEventListeners=Object(me["d"])(this._modelEventListeners);this._disposeLanguageSelection()};e.prototype.acceptMarkerDecorations=function(e){this._markerDecorations=this.model.deltaDecorations(this._markerDecorations,e)};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)};return e}();var hf=function(){function e(){}e.setMarkers=function(t,n){var r;var i=n.read({resource:t.model.uri,take:500}).map(function(n){return{range:e._createDecorationRange(t.model,n),options:e._createDecorationOption(n)}});t.acceptMarkerDecorations(i)};e._createDecorationRange=function(e,t){var n=p["a"].lift(t);t.severity===rf.Hint&&(t.tags&&-1!==t.tags.indexOf(1)||(n=n.setEndPosition(n.startLineNumber,n.startColumn+2)));if((n=e.validateRange(n)).isEmpty()){var r=e.getWordAtPosition(n.getStartPosition());if(r)n=new p["a"](n.startLineNumber,r.startColumn,n.endLineNumber,r.endColumn);else{var i=e.getLineLastNonWhitespaceColumn(n.startLineNumber)||e.getLineMaxColumn(n.startLineNumber);1===i||(n=n.endColumn>=i?new p["a"](n.startLineNumber,i-1,n.endLineNumber,i):new p["a"](n.startLineNumber,n.startColumn,n.endLineNumber,n.endColumn+1))}}else if(t.endColumn===Number.MAX_VALUE&&1===t.startColumn&&n.startLineNumber===n.endLineNumber){var o=e.getLineFirstNonWhitespaceColumn(t.startLineNumber);if(o<n.endColumn){n=new p["a"](n.startLineNumber,o,n.endLineNumber,n.endColumn);t.startColumn=o}}return n};e._createDecorationOption=function(e){var t;var n=void 0;var r;var i=void 0;switch(e.severity){case rf.Hint:t=e.tags&&e.tags.indexOf(1)>=0?"squiggly-unnecessary":"squiggly-hint";r=0;break;case rf.Warning:t="squiggly-warning";n=Object(So["f"])(Fa);r=20;break;case rf.Info:t="squiggly-info";n=Object(So["f"])(za);r=10;break;case rf.Error:default:t="squiggly-error";n=Object(So["f"])(Wa);r=30}e.tags&&-1!==e.tags.indexOf(1)&&(i="squiggly-inline-unnecessary");var o=null;var a=e.message,s=e.source,u=e.relatedInformation,l=e.code;if("string"==typeof a){a=a.trim();s&&(a=/\n/g.test(a)?l?Bn["a"]("diagAndSourceAndCodeMultiline","[{0}]\n{1} [{2}]",s,a,l):Bn["a"]("diagAndSourceMultiline","[{0}]\n{1}",s,a):l?Bn["a"]("diagAndSourceAndCode","[{0}] {1} [{2}]",s,a,l):Bn["a"]("diagAndSource","[{0}] {1}",s,a));o=(new nf["a"]).appendCodeblock("_",a);if(!Object(at["f"])(u)){o.appendMarkdown("\n");for(var c=0,d=u;c<d.length;c++){var h=d[c],f=h.message,p=h.resource,g=h.startLineNumber,v=h.startColumn;o.appendMarkdown("* ["+Object(X["a"])(p.path)+"("+g+", "+v+")]("+p.toString(!1)+"#"+g+","+v+"): ");o.appendText(""+f);o.appendMarkdown("\n")}o.appendMarkdown("\n")}}return{stickiness:1,className:t,hoverMessage:o,showIfCollapsed:!0,overviewRuler:{color:n,position:ze["c"].Right},zIndex:r,inlineClassName:i}};return e}();var ff=i["c"]||i["d"]?1:2;var pf=function(e){sf(t,e);function t(t,n,r){var i=e.call(this)||this;i._onModelAdded=i._register(new c["a"]);i.onModelAdded=i._onModelAdded.event;i._onModelRemoved=i._register(new c["a"]);i.onModelRemoved=i._onModelRemoved.event;i._onModelModeChanged=i._register(new c["a"]);i.onModelModeChanged=i._onModelModeChanged.event;i._markerService=t;i._configurationService=n;i._resourcePropertiesService=r;i._models={};i._modelCreationOptionsByLanguageAndResource=Object.create(null);i._markerService&&(i._markerServiceSubscription=i._markerService.onMarkerChanged(i._handleMarkerChange,i));i._configurationServiceSubscription=i._configurationService.onDidChangeConfiguration(function(e){return i._updateModelOptions()});i._updateModelOptions();return i}t._readModelOptions=function(e,t){var n=u["c"].tabSize;if(e.editor&&void 0!==e.editor.tabSize){var r=parseInt(e.editor.tabSize,10);isNaN(r)||(n=r);n<1&&(n=1)}var i=u["c"].insertSpaces;e.editor&&void 0!==e.editor.insertSpaces&&(i="false"!==e.editor.insertSpaces&&Boolean(e.editor.insertSpaces));var o=ff;var a=e.eol;"\r\n"===a?o=2:"\n"===a&&(o=1);var s=u["c"].trimAutoWhitespace;e.editor&&void 0!==e.editor.trimAutoWhitespace&&(s="false"!==e.editor.trimAutoWhitespace&&Boolean(e.editor.trimAutoWhitespace));var l=u["c"].detectIndentation;e.editor&&void 0!==e.editor.detectIndentation&&(l="false"!==e.editor.detectIndentation&&Boolean(e.editor.detectIndentation));var c=u["c"].largeFileOptimizations;e.editor&&void 0!==e.editor.largeFileOptimizations&&(c="false"!==e.editor.largeFileOptimizations&&Boolean(e.editor.largeFileOptimizations));return{isForSimpleWidget:t,tabSize:n,insertSpaces:i,detectIndentation:l,defaultEOL:o,trimAutoWhitespace:s,largeFileOptimizations:c}};t.prototype.getCreationOptions=function(e,n,r){var i=this._modelCreationOptionsByLanguageAndResource[e+n];if(!i){var o=this._configurationService.getValue("editor",{overrideIdentifier:e,resource:n});var a=this._resourcePropertiesService.getEOL(n,e);i=t._readModelOptions({editor:o,eol:a},r);this._modelCreationOptionsByLanguageAndResource[e+n]=i}return i};t.prototype._updateModelOptions=function(){var e=this._modelCreationOptionsByLanguageAndResource;this._modelCreationOptionsByLanguageAndResource=Object.create(null);var n=Object.keys(this._models);for(var r=0,i=n.length;r<i;r++){var o=n[r];var a=this._models[o];var s=a.model.getLanguageIdentifier().language;var u=a.model.uri;var l=e[s+u];var c=this.getCreationOptions(s,u,a.model.isForSimpleWidget);t._setModelOptionsForModel(a.model,c,l)}};t._setModelOptionsForModel=function(e,t,n){if(n&&n.detectIndentation===t.detectIndentation&&n.insertSpaces===t.insertSpaces&&n.tabSize===t.tabSize&&n.trimAutoWhitespace===t.trimAutoWhitespace)return;if(t.detectIndentation){e.detectIndentation(t.insertSpaces,t.tabSize);e.updateOptions({trimAutoWhitespace:t.trimAutoWhitespace})}else e.updateOptions({insertSpaces:t.insertSpaces,tabSize:t.tabSize,trimAutoWhitespace:t.trimAutoWhitespace})};t.prototype.dispose=function(){this._markerServiceSubscription&&this._markerServiceSubscription.dispose();this._configurationServiceSubscription.dispose();e.prototype.dispose.call(this)};t.prototype._handleMarkerChange=function(e){var t=this;e.forEach(function(e){var n=cf(e);var r=t._models[n];if(!r)return;hf.setMarkers(r,t._markerService)})};t.prototype._cleanUp=function(e){var t=this;e.uri.scheme!==J.inMemory&&e.uri.scheme!==J.internal&&e.uri.scheme!==J.vscode||this._markerService&&this._markerService.read({resource:e.uri}).map(function(e){return e.owner}).forEach(function(n){return t._markerService.remove(n,[e.uri])});delete this._modelCreationOptionsByLanguageAndResource[e.getLanguageIdentifier().language+e.uri]};t.prototype._createModelData=function(e,t,n,r){var i=this;var o=this.getCreationOptions(t.language,n,r);var a=new bs["b"](e,o,t,n);var s=cf(a.uri);if(this._models[s])throw new Error("ModelService: Cannot add model because it already exists!");var u=new df(a,function(e){return i._onWillDispose(e)},function(e,t){return i._onDidChangeLanguage(e,t)});this._models[s]=u;return u};t.prototype.createModel=function(e,t,n,r){void 0===r&&(r=!1);var i;if(t){i=this._createModelData(e,t.languageIdentifier,n,r);this.setMode(i.model,t)}else i=this._createModelData(e,Qh,n,r);this._markerService&&hf.setMarkers(i,this._markerService);this._onModelAdded.fire(i.model);return i.model};t.prototype.setMode=function(e,t){if(!t)return;var n=this._models[cf(e.uri)];if(!n)return;n.setLanguage(t)};t.prototype.getModels=function(){var e=[];var t=Object.keys(this._models);for(var n=0,r=t.length;n<r;n++){var i=t[n];e.push(this._models[i].model)}return e};t.prototype.getModel=function(e){var t=cf(e);var n=this._models[t];if(!n)return null;return n.model};t.prototype._onWillDispose=function(e){var t=cf(e.uri);var n=this._models[t];delete this._models[t];n.dispose();this._cleanUp(e);this._onModelRemoved.fire(e)};t.prototype._onDidChangeLanguage=function(e,n){var r=n.oldLanguage;var i=e.getLanguageIdentifier().language;var o=this.getCreationOptions(r,e.uri,e.isForSimpleWidget);var a=this.getCreationOptions(i,e.uri,e.isForSimpleWidget);t._setModelOptionsForModel(e,a,o);this._onModelModeChanged.fire({model:e,oldModeId:r})};return t=uf([lf(0,af),lf(1,Tr),lf(2,Yt)],t)}(me["a"]);var gf=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var vf=function(e){gf(t,e);function t(){var t=e.call(this)||this;t._onCodeEditorAdd=t._register(new c["a"]);t.onCodeEditorAdd=t._onCodeEditorAdd.event;t._onCodeEditorRemove=t._register(new c["a"]);t._onDiffEditorAdd=t._register(new c["a"]);t._onDiffEditorRemove=t._register(new c["a"]);t._codeEditors=Object.create(null);t._diffEditors=Object.create(null);return t}t.prototype.addCodeEditor=function(e){this._codeEditors[e.getId()]=e;this._onCodeEditorAdd.fire(e)};t.prototype.removeCodeEditor=function(e){delete this._codeEditors[e.getId()]&&this._onCodeEditorRemove.fire(e)};t.prototype.listCodeEditors=function(){var e=this;return Object.keys(this._codeEditors).map(function(t){return e._codeEditors[t]})};t.prototype.addDiffEditor=function(e){this._diffEditors[e.getId()]=e;this._onDiffEditorAdd.fire(e)};t.prototype.removeDiffEditor=function(e){delete this._diffEditors[e.getId()]&&this._onDiffEditorRemove.fire(e)};t.prototype.listDiffEditors=function(){var e=this;return Object.keys(this._diffEditors).map(function(t){return e._diffEditors[t]})};t.prototype.getFocusedCodeEditor=function(){var e=null;var t=this.listCodeEditors();for(var n=0;n<t.length;n++){var r=t[n];if(r.hasTextFocus())return r;r.hasWidgetFocus()&&(e=r)}return e};return t}(me["a"]);var mf=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var _f=function(e,t,n,r){var i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};var yf=function(e,t){return function(n,r){t(n,r,e)}};var bf=function(e){mf(t,e);function t(t,n){void 0===n&&(n=K["n"]());var r=e.call(this)||this;r._styleSheet=n;r._decorationOptionProviders=Object.create(null);r._themeService=t;return r}t.prototype.registerDecorationType=function(e,t,n){var r=this._decorationOptionProviders[e];if(!r){var i={styleSheet:this._styleSheet,key:e,parentTypeKey:n,options:t||Object.create(null)};r=n?new Cf(this._themeService,i):new wf(this._themeService,i);this._decorationOptionProviders[e]=r}r.refCount++};t.prototype.removeDecorationType=function(e){var t=this._decorationOptionProviders[e];if(t){t.refCount--;if(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 n=this._decorationOptionProviders[e];if(!n)throw new Error("Unknown decoration type key: "+e);return n.getOptions(this,t)};return t=_f([yf(0,So["c"])],t)}(vf);var Cf=function(){function e(e,t){this._parentTypeKey=t.parentTypeKey;this.refCount=0;this._beforeContentRules=new Lf(3,t,e);this._afterContentRules=new Lf(4,t,e)}e.prototype.getOptions=function(e,t){var n=e.resolveDecorationOptions(this._parentTypeKey,!0);this._beforeContentRules&&(n.beforeContentClassName=this._beforeContentRules.className);this._afterContentRules&&(n.afterContentClassName=this._afterContentRules.className);return n};e.prototype.dispose=function(){if(this._beforeContentRules){this._beforeContentRules.dispose();this._beforeContentRules=null}if(this._afterContentRules){this._afterContentRules.dispose();this._afterContentRules=null}};return e}();var wf=function(){function e(e,t){var n=this;this.refCount=0;this._disposables=[];var r=function(r){var i=new Lf(r,t,e);if(i.hasContent){n._disposables.push(i);return i.className}return};var i=function(r){var i=new Lf(r,t,e);if(i.hasContent){n._disposables.push(i);return{className:i.className,hasLetterSpacing:i.hasLetterSpacing}}return null};this.className=r(0);var o=i(1);if(o){this.inlineClassName=o.className;this.inlineClassNameAffectsLetterSpacing=o.hasLetterSpacing}this.beforeContentClassName=r(3);this.afterContentClassName=r(4);this.glyphMarginClassName=r(2);var a=t.options;this.isWholeLine=Boolean(a.isWholeLine);this.stickiness=a.rangeBehavior;var s=a.light&&a.light.overviewRulerColor||a.overviewRulerColor;var u=a.dark&&a.dark.overviewRulerColor||a.overviewRulerColor;void 0===s&&void 0===u||(this.overviewRuler={color:s||u,darkColor:u||s,position:a.overviewRulerLane||ze["c"].Center})}e.prototype.getOptions=function(e,t){if(!t)return this;return{inlineClassName:this.inlineClassName,beforeContentClassName:this.beforeContentClassName,afterContentClassName:this.afterContentClassName,className:this.className,glyphMarginClassName:this.glyphMarginClassName,isWholeLine:this.isWholeLine,overviewRuler:this.overviewRuler,stickiness:this.stickiness}};e.prototype.dispose=function(){this._disposables=Object(me["d"])(this._disposables)};return e}();var Sf={color:"color:{0} !important;",opacity:"opacity:{0}; will-change: opacity;",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};"};var Lf=function(){function e(e,t,n){var r=this;this._theme=n.getTheme();this._ruleType=e;this._providerArgs=t;this._usesThemeColors=!1;this._hasContent=!1;this._hasLetterSpacing=!1;var i=If.getClassName(this._providerArgs.key,e);this._providerArgs.parentTypeKey&&(i=i+" "+If.getClassName(this._providerArgs.parentTypeKey,e));this._className=i;this._unThemedSelector=If.getSelector(this._providerArgs.key,this._providerArgs.parentTypeKey,e);this._buildCSS();this._usesThemeColors?this._themeListener=n.onThemeChange(function(e){r._theme=n.getTheme();r._removeCSS();r._buildCSS()}):this._themeListener=null}e.prototype.dispose=function(){if(this._hasContent){this._removeCSS();this._hasContent=!1}if(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=this._providerArgs.options;var t,n,r;switch(this._ruleType){case 0:t=this.getCSSTextForModelDecorationClassName(e);n=this.getCSSTextForModelDecorationClassName(e.light);r=this.getCSSTextForModelDecorationClassName(e.dark);break;case 1:t=this.getCSSTextForModelDecorationInlineClassName(e);n=this.getCSSTextForModelDecorationInlineClassName(e.light);r=this.getCSSTextForModelDecorationInlineClassName(e.dark);break;case 2:t=this.getCSSTextForModelDecorationGlyphMarginClassName(e);n=this.getCSSTextForModelDecorationGlyphMarginClassName(e.light);r=this.getCSSTextForModelDecorationGlyphMarginClassName(e.dark);break;case 3:t=this.getCSSTextForModelDecorationContentClassName(e.before);n=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.before);r=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.before);break;case 4:t=this.getCSSTextForModelDecorationContentClassName(e.after);n=this.getCSSTextForModelDecorationContentClassName(e.light&&e.light.after);r=this.getCSSTextForModelDecorationContentClassName(e.dark&&e.dark.after);break;default:throw new Error("Unknown rule type: "+this._ruleType)}var i=this._providerArgs.styleSheet.sheet;var o=!1;if(t.length>0){i.insertRule(this._unThemedSelector+" {"+t+"}",0);o=!0}if(n.length>0){i.insertRule(".vs"+this._unThemedSelector+" {"+n+"}",0);o=!0}if(r.length>0){i.insertRule(".vs-dark"+this._unThemedSelector+", .hc-black"+this._unThemedSelector+" {"+r+"}",0);o=!0}this._hasContent=o};e.prototype._removeCSS=function(){K["D"](this._unThemedSelector,this._providerArgs.styleSheet)};e.prototype.getCSSTextForModelDecorationClassName=function(e){if(!e)return"";var t=[];this.collectCSSText(e,["backgroundColor"],t);this.collectCSSText(e,["outline","outlineColor","outlineStyle","outlineWidth"],t);this.collectBorderSettingsCSSText(e,t);return t.join("")};e.prototype.getCSSTextForModelDecorationInlineClassName=function(e){if(!e)return"";var t=[];this.collectCSSText(e,["fontStyle","fontWeight","textDecoration","cursor","color","opacity","letterSpacing"],t);e.letterSpacing&&(this._hasLetterSpacing=!0);return t.join("")};e.prototype.getCSSTextForModelDecorationContentClassName=function(e){if(!e)return"";var t=[];if(void 0!==e){this.collectBorderSettingsCSSText(e,t);void 0!==e.contentIconPath&&("string"==typeof e.contentIconPath?t.push($["n"](Sf.contentIconPath,h["a"].file(e.contentIconPath).toString().replace(/'/g,"%27"))):t.push($["n"](Sf.contentIconPath,h["a"].revive(e.contentIconPath).toString(!0).replace(/'/g,"%27"))));if("string"==typeof e.contentText){var n;var r=e.contentText.match(/^.*$/m)[0].replace(/['\\]/g,"\\$&");t.push($["n"](Sf.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=[];if(void 0!==e.gutterIconPath){"string"==typeof e.gutterIconPath?t.push($["n"](Sf.gutterIconPath,h["a"].file(e.gutterIconPath).toString())):t.push($["n"](Sf.gutterIconPath,h["a"].revive(e.gutterIconPath).toString(!0).replace(/'/g,"%27")));void 0!==e.gutterIconSize&&t.push($["n"](Sf.gutterIconSize,e.gutterIconSize))}return t.join("")};e.prototype.collectBorderSettingsCSSText=function(e,t){if(this.collectCSSText(e,["border","borderColor","borderRadius","borderSpacing","borderStyle","borderWidth"],t)){t.push($["n"]("box-sizing: border-box;"));return!0}return!1};e.prototype.collectCSSText=function(e,t,n){var r=n.length;for(var i=0,o=t;i<o.length;i++){var a=o[i];var s=this.resolveValue(e[a]);"string"==typeof s&&n.push($["n"](Sf[a],s))}return n.length!==r};e.prototype.resolveValue=function(e){if(je(e)){this._usesThemeColors=!0;var t=this._theme.getColor(e.id);if(t)return t.toString();return"transparent"}return e};return e}();var If=function(){function e(){}e.getClassName=function(e,t){return"ced-"+e+"-"+t};e.getSelector=function(e,t,n){var r=".monaco-editor ."+this.getClassName(e,n);t&&(r=r+"."+this.getClassName(t,n));3===n?r+="::before":4===n&&(r+="::after");return r};return e}();var xf=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Nf=function(e){xf(t,e);function t(){return null!==e&&e.apply(this,arguments)||this}t.prototype.getActiveCodeEditor=function(){return null};t.prototype.openCodeEditor=function(e,t,n){if(!t)return Promise.resolve(null);return Promise.resolve(this.doOpenEditor(t,e))};t.prototype.doOpenEditor=function(e,t){var n;if(!this.findModel(e,t.resource)){if(t.resource){var r=t.resource.scheme;if(r===J.http||r===J.https){Object(K["P"])(t.resource.toString());return e}}return null}var i=t.options?t.options.selection:null;if(i)if("number"==typeof i.endLineNumber&&"number"==typeof i.endColumn){e.setSelection(i);e.revealRangeInCenter(i,1)}else{var o={lineNumber:i.startLineNumber,column:i.startColumn};e.setPosition(o);e.revealPositionInCenter(o,1)}return e};t.prototype.findModel=function(e,t){var n=e.getModel();if(n&&n.uri.toString()!==t.toString())return null;return n};return t}(bf);var Mf=function(){function e(e,t,n,r,i){this.token=e;this.index=t;this.fontStyle=n;this.foreground=r;this.background=i}return e}();function Df(e){if(!e||!Array.isArray(e))return[];var t=[],n=0;for(var r=0,i=e.length;r<i;r++){var o=e[r];var a=-1;if("string"==typeof o.fontStyle){a=0;var s=o.fontStyle.split(" ");for(var u=0,l=s.length;u<l;u++){var c;switch(s[u]){case"italic":a|=1;break;case"bold":a|=2;break;case"underline":a|=4}}}var d=null;"string"==typeof o.foreground&&(d=o.foreground);var h=null;"string"==typeof o.background&&(h=o.background);t[n++]=new Mf(o.token||"",r,a,d,h)}return t}function kf(e,t){e.sort(function(e,t){var n=Pf(e.token,t.token);if(0!==n)return n;return e.index-t.index});var n=0;var r="000000";var i="ffffff";for(;e.length>=1&&""===e[0].token;){var o=e.shift();-1!==o.fontStyle&&(n=o.fontStyle);null!==o.foreground&&(r=o.foreground);null!==o.background&&(i=o.background)}var a=new Ef;for(var s=0,u=t;s<u.length;s++){var l=u[s];a.getId(l)}var c=a.getId(r);var d=a.getId(i);var h=new jf(n,c,d);var f=new Wf(h);for(var p=0,g=e.length;p<g;p++){var v=e[p];f.insert(v.token,v.fontStyle,a.getId(v.foreground),a.getId(v.background))}return new Tf(a,f)}var Of=/^#?([0-9A-Fa-f]{6})([0-9A-Fa-f]{2})?$/;var Ef=function(){function e(){this._lastColorId=0;this._id2color=[];this._color2id=new Map}e.prototype.getId=function(e){if(null===e)return 0;var t=e.match(Of);if(!t)throw new Error("Illegal value for token color: "+e);e=t[1].toUpperCase();var n=this._color2id.get(e);if(n)return n;n=++this._lastColorId;this._color2id.set(e,n);this._id2color[n]=ua["a"].fromHex("#"+e);return n};e.prototype.getColorMap=function(){return this._id2color.slice(0)};return e}();var Tf=function(){function e(e,t){this._colorMap=e;this._root=t;this._cache=new Map}e.createFromRawTokenTheme=function(e,t){return this.createFromParsedTokenTheme(Df(e),t)};e.createFromParsedTokenTheme=function(e,t){return kf(e,t)};e.prototype.getColorMap=function(){return this._colorMap.getColorMap()};e.prototype._match=function(e){return this._root.match(e)};e.prototype.match=function(e,t){var n=this._cache.get(t);if(void 0===n){var r=this._match(t);var i=Rf(t);n=(r.metadata|i<<8)>>>0;this._cache.set(t,n)}return(n|e<<0)>>>0};return e}();var Af=/\b(comment|string|regex)\b/;function Rf(e){var t=e.match(Af);if(!t)return 0;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 4}throw new Error("Unexpected match for standard token type!")}function Pf(e,t){if(e<t)return-1;if(e>t)return 1;return 0}var jf=function(){function e(e,t,n){this._fontStyle=e;this._foreground=t;this._background=n;this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0}e.prototype.clone=function(){return new e(this._fontStyle,this._foreground,this._background)};e.prototype.acceptOverwrite=function(e,t,n){-1!==e&&(this._fontStyle=e);0!==t&&(this._foreground=t);0!==n&&(this._background=n);this.metadata=(this._fontStyle<<11|this._foreground<<14|this._background<<23)>>>0};return e}();var Wf=function(){function e(e){this._mainRule=e;this._children=new Map}e.prototype.match=function(e){if(""===e)return this._mainRule;var t=e.indexOf(".");var n;var r;if(-1===t){n=e;r=""}else{n=e.substring(0,t);r=e.substring(t+1)}var i=this._children.get(n);if(void 0!==i)return i.match(r);return this._mainRule};e.prototype.insert=function(t,n,r,i){if(""===t){this._mainRule.acceptOverwrite(n,r,i);return}var o=t.indexOf(".");var a;var s;if(-1===o){a=t;s=""}else{a=t.substring(0,o);s=t.substring(o+1)}var u=this._children.get(a);if(void 0===u){u=new e(this._mainRule.clone());this._children.set(a,u)}u.insert(s,n,r,i)};return e}();function Ff(e){var t=[];for(var n=1,r=e.length;n<r;n++){var i=e[n];t[n]=".mtk"+n+" { color: "+i+"; }"}t.push(".mtki { font-style: italic; }");t.push(".mtkb { font-weight: bold; }");t.push(".mtku { text-decoration: underline; text-underline-position: under; }");return t.join("\n")}var zf,Vf,Bf;var Hf={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:(zf={},zf[la["m"]]="#FFFFFE",zf[la["t"]]="#000000",zf[la["u"]]="#E5EBF1",zf[ma]="#D3D3D3",zf[_a]="#939393",zf[la["x"]]="#ADD6FF4D",zf)};var Uf={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:(Vf={},Vf[la["m"]]="#1E1E1E",Vf[la["t"]]="#D4D4D4",Vf[la["u"]]="#3A3D41",Vf[ma]="#404040",Vf[_a]="#707070",Vf[la["x"]]="#ADD6FF26",Vf)};var Zf={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:(Bf={},Bf[la["m"]]="#000000",Bf[la["t"]]="#FFFFFF",Bf[ma]="#FFFFFF",Bf[_a]="#FFFFFF",Bf)};var Gf="vs";var Yf="vs-dark";var Kf="hc-black";var Qf=Yn["a"].as(la["a"].ColorContribution);var qf=Yn["a"].as(So["a"].ThemingContribution);var Jf=function(){function e(e,t){this.themeData=t;var n=t.base;if(e.length>0){this.id=n+" "+e;this.themeName=e}else{this.id=n;this.themeName=n}this.colors=null;this.defaultColors=Object.create(null);this._tokenTheme=null}Object.defineProperty(e.prototype,"base",{get:function(){return this.themeData.base},enumerable:!0,configurable:!0});e.prototype.notifyBaseUpdated=function(){if(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]=ua["a"].fromHex(this.themeData.colors[t]);if(this.themeData.inherit){var n=$f(this.themeData.base);for(var t in n.colors)e[t]||(e[t]=ua["a"].fromHex(n.colors[t]))}this.colors=e}return this.colors};e.prototype.getColor=function(e,t){var n=this.getColors()[e];if(n)return n;if(!1!==t)return this.getDefault(e);return null};e.prototype.getDefault=function(e){var t=this.defaultColors[e];if(t)return t;t=Qf.resolveDefaultColor(e,this);this.defaultColors[e]=t;return 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 Gf:return"light";case Kf:return"hc";default:return"dark"}},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"tokenTheme",{get:function(){if(!this._tokenTheme){var e=[];var t=[];if(this.themeData.inherit){var n=$f(this.themeData.base);e=n.rules;n.encodedTokensColors&&(t=n.encodedTokensColors)}e=e.concat(this.themeData.rules);this.themeData.encodedTokensColors&&(t=this.themeData.encodedTokensColors);this._tokenTheme=Tf.createFromRawTokenTheme(e,t)}return this._tokenTheme},enumerable:!0,configurable:!0});return e}();function Xf(e){return e===Gf||e===Yf||e===Kf}function $f(e){switch(e){case Gf:return Hf;case Yf:return Uf;case Kf:return Zf}}function ep(e){var t=$f(e);return new Jf(e,t)}var tp=function(){function e(){this.environment=Object.create(null);this._onThemeChange=new c["a"];this._onIconThemeChange=new c["a"];this._knownThemes=new Map;this._knownThemes.set(Gf,ep(Gf));this._knownThemes.set(Yf,ep(Yf));this._knownThemes.set(Kf,ep(Kf));this._styleElement=K["n"]();this._styleElement.className="monaco-colors";this.setTheme(Gf)}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(!Xf(t.base)&&!Xf(e))throw new Error("Illegal theme base!");this._knownThemes.set(e,new Jf(e,t));Xf(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=this;var n;n=this._knownThemes.has(e)?this._knownThemes.get(e):this._knownThemes.get(Gf);if(this._theme===n)return n.id;this._theme=n;var r=[];var i={};var o={addRule:function(e){if(!i[e]){r.push(e);i[e]=!0}}};qf.getThemingParticipants().forEach(function(e){return e(n,o,t.environment)});var a;var s=n.tokenTheme.getColorMap();o.addRule(Ff(s));this._styleElement.innerHTML=r.join("\n");Ve["u"].setColorMap(s);this._onThemeChange.fire(n);return n.id};e.prototype.getIconTheme=function(){return{hasFileIcons:!1,hasFolderIcons:!1,hidesExplorerArrows:!1}};return e}();var np=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var rp=function(e,t,n,r){var i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};var ip=function(e,t){return function(n,r){t(n,r,e)}};var op="data-keybinding-context";var ap=function(){function e(e,t){this._id=e;this._parent=t;this._value=Object.create(null);this._value["_contextId"]=e}e.prototype.setValue=function(e,t){if(this._value[e]!==t){this._value[e]=t;return!0}return!1};e.prototype.removeValue=function(e){if(e in this._value){delete this._value[e];return!0}return!1};e.prototype.getValue=function(e){var t=this._value[e];if(void 0===t&&this._parent)return this._parent.getValue(e);return t};return e}();var sp=function(e){np(t,e);function t(){return e.call(this,-1,null)||this}t.prototype.setValue=function(e,t){return!1};t.prototype.removeValue=function(e){return!1};t.prototype.getValue=function(e){return};t.INSTANCE=new t;return t}(ap);var up=function(e){np(t,e);function t(t,n,r){var i=e.call(this,t,null)||this;i._configurationService=n;i._values=new Map;i._listener=i._configurationService.onDidChangeConfiguration(function(e){if(4===e.source){var t=Object(Br["d"])(i._values);i._values.clear();r.fire(t)}else{var n=[];for(var o=0,a=e.affectedKeys;o<a.length;o++){var s;var u="config."+a[o];if(i._values.has(u)){i._values.delete(u);n.push(u)}}r.fire(n)}});return i}t.prototype.dispose=function(){this._listener.dispose()};t.prototype.getValue=function(n){if(0!==n.indexOf(t._keyPrefix))return e.prototype.getValue.call(this,n);if(this._values.has(n))return this._values.get(n);var r=n.substr(t._keyPrefix.length);var i=this._configurationService.getValue(r);var o=void 0;switch(typeof i){case"number":case"boolean":case"string":o=i}this._values.set(n,o);return o};t.prototype.setValue=function(t,n){return e.prototype.setValue.call(this,t,n)};t.prototype.removeValue=function(t){return e.prototype.removeValue.call(this,t)};t._keyPrefix="config.";return t}(ap);var lp=function(){function e(e,t,n){this._parent=e;this._key=t;this._defaultValue=n;this.reset()}e.prototype.set=function(e){this._parent.setContext(this._key,e)};e.prototype.reset=function(){void 0===this._defaultValue?this._parent.removeContext(this._key):this._parent.setContext(this._key,this._defaultValue)};e.prototype.get=function(){return this._parent.getContextKeyValue(this._key)};return e}();var cp=function(){function e(){this._keys=[]}e.prototype.collect=function(e){this._keys=this._keys.concat(e)};e.prototype.affectsSome=function(e){for(var t=0,n=this._keys;t<n.length;t++){var r=n[t];if(e.has(r))return!0}return!1};return e}();var dp=function(){function e(e){this._isDisposed=!1;this._myContextId=e;this._onDidChangeContextKey=new c["a"]}e.prototype.createKey=function(e,t){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new lp(this,e,t)};Object.defineProperty(e.prototype,"onDidChangeContext",{get:function(){this._onDidChangeContext||(this._onDidChangeContext=Object(c["e"])(this._onDidChangeContextKey.event,function(e,t){e||(e=new cp);e.collect(t);return e},25));return this._onDidChangeContext},enumerable:!0,configurable:!0});e.prototype.createScoped=function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");return new fp(this,this._onDidChangeContextKey,e)};e.prototype.contextMatchesRules=function(e){if(this._isDisposed)throw new Error("AbstractContextKeyService has been disposed");var t=this.getContextValuesContainer(this._myContextId);var n;return Qr.contextMatchesRules(t,e)};e.prototype.getContextKeyValue=function(e){if(this._isDisposed)return;return this.getContextValuesContainer(this._myContextId).getValue(e)};e.prototype.setContext=function(e,t){if(this._isDisposed)return;var n=this.getContextValuesContainer(this._myContextId);if(!n)return;n.setValue(e,t)&&this._onDidChangeContextKey.fire(e)};e.prototype.removeContext=function(e){if(this._isDisposed)return;this.getContextValuesContainer(this._myContextId).removeValue(e)&&this._onDidChangeContextKey.fire(e)};e.prototype.getContext=function(e){if(this._isDisposed)return sp.INSTANCE;return this.getContextValuesContainer(pp(e))};return e}();var hp=function(e){np(t,e);function t(t){var n=e.call(this,0)||this;n._toDispose=[];n._lastContextId=0;n._contexts=Object.create(null);var r=new up(n._myContextId,t,n._onDidChangeContextKey);n._contexts[String(n._myContextId)]=r;n._toDispose.push(r);return n}t.prototype.dispose=function(){this._isDisposed=!0;this._toDispose=Object(me["d"])(this._toDispose)};t.prototype.getContextValuesContainer=function(e){if(this._isDisposed)return sp.INSTANCE;return this._contexts[String(e)]};t.prototype.createChildContext=function(e){void 0===e&&(e=this._myContextId);if(this._isDisposed)throw new Error("ContextKeyService has been disposed");var t=++this._lastContextId;this._contexts[String(t)]=new ap(t,this.getContextValuesContainer(e));return t};t.prototype.disposeContext=function(e){if(this._isDisposed)return;delete this._contexts[String(e)]};return t=rp([ip(0,Tr)],t)}(dp);var fp=function(e){np(t,e);function t(t,n,r){var i=e.call(this,t.createChildContext())||this;i._parent=t;i._onDidChangeContextKey=n;if(r){i._domNode=r;i._domNode.setAttribute(op,String(i._myContextId))}return i}t.prototype.dispose=function(){this._isDisposed=!0;this._parent.disposeContext(this._myContextId);if(this._domNode){this._domNode.removeAttribute(op);this._domNode=void 0}};Object.defineProperty(t.prototype,"onDidChangeContext",{get:function(){return this._parent.onDidChangeContext},enumerable:!0,configurable:!0});t.prototype.getContextValuesContainer=function(e){if(this._isDisposed)return sp.INSTANCE;return this._parent.getContextValuesContainer(e)};t.prototype.createChildContext=function(e){void 0===e&&(e=this._myContextId);if(this._isDisposed)throw new Error("ScopedContextKeyService has been disposed");return this._parent.createChildContext(e)};t.prototype.disposeContext=function(e){if(this._isDisposed)return;this._parent.disposeContext(e)};return t}(dp);function pp(e){for(;e;){if(e.hasAttribute(op)){var t=e.getAttribute(op);if(t)return parseInt(t,10);return NaN}e=e.parentElement}return 0}le["a"].registerCommand(Mr["g"],function(e,t,n){e.get(Mr["e"]).createKey(String(t),n)});var gp=n("UFYz");var vp=n("EV92");var mp=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var _p=/\(&{1,2}(.)\)|&{1,2}(.)/;var yp=/(?:&){1,2}(.)/;var bp=function(e){mp(t,e);function t(t,n,r){var i=e.call(this,r||"submenu",t,"",!0)||this;i.entries=n;return i}return t}(Gd["a"]);var Cp=function(e){mp(t,e);function t(t,n,r){void 0===r&&(r={});var i=this;Object(K["e"])(t,"monaco-menu-container");t.setAttribute("role","presentation");var o=document.createElement("div");Object(K["e"])(o,"monaco-menu");o.setAttribute("role","presentation");t.appendChild(o);(i=e.call(this,o,{orientation:2,actionItemProvider:function(e){return i.doGetActionItem(e,r,a)},context:r.context,actionRunner:r.actionRunner,ariaLabel:r.ariaLabel,triggerKeys:{keys:[3],keyDown:!0}})||this).actionsList.setAttribute("role","menu");i.actionsList.tabIndex=0;i.menuDisposables=[];r.enableMnemonics&&i.menuDisposables.push(Object(K["g"])(o,K["c"].KEY_DOWN,function(e){var t=d["b"].fromString(e.key);if(i.mnemonics.has(t)){K["b"].stop(e,!0);var n=i.mnemonics.get(t);if(1===n.length){n[0]instanceof Sp&&i.focusItemByElement(n[0].container);n[0].onClick(event)}if(n.length>1){var r=n.shift();i.focusItemByElement(r.container);n.push(r);i.mnemonics.set(t,n)}}}));i._register(Object(K["g"])(i.domNode,K["c"].MOUSE_OUT,function(e){var t=e.relatedTarget;if(!Object(K["A"])(t,i.domNode)){i.focusedItem=void 0;i.updateFocus();e.stopPropagation()}}));i._register(Object(K["g"])(i.actionsList,K["c"].MOUSE_OVER,function(e){var t=e.target;if(!t||!Object(K["A"])(t,i.actionsList)||t===i.actionsList)return;for(;t.parentElement!==i.actionsList;)t=t.parentElement;if(Object(K["y"])(t,"action-item")){var n=i.focusedItem;i.setFocusedItem(t);n!==i.focusedItem&&i.updateFocus()}}));var a={parent:i};i.mnemonics=new Map;i.push(n,{icon:!0,label:!0,isMenu:!0});return i}t.prototype.style=function(e){var t=this.getContainer();var n=e.foregroundColor?""+e.foregroundColor:null;var r=e.backgroundColor?""+e.backgroundColor:null;var i=e.borderColor?"2px solid "+e.borderColor:null;var o=e.shadowColor?"0 2px 4px "+e.shadowColor:null;t.style.border=i;this.domNode.style.color=n;this.domNode.style.backgroundColor=r;t.style.boxShadow=o;this.items&&this.items.forEach(function(t){(t instanceof wp||t instanceof Lp)&&t.style(e)})};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<this.actionsList.children.length;t++){var n;if(e===this.actionsList.children[t]){this.focusedItem=t;break}}};t.prototype.doGetActionItem=function(e,t,n){if(e instanceof Zd["d"])return new Lp(t.context,e,{icon:!0});if(e instanceof bp){var r=new Sp(e,e.entries,n,t);if(t.enableMnemonics){var i;if((i=r.getMnemonic())&&r.isEnabled()){var o=[];this.mnemonics.has(i)&&(o=this.mnemonics.get(i));o.push(r);this.mnemonics.set(i,o)}}return r}var a={enableMnemonics:t.enableMnemonics};if(t.getKeyBinding){var s=t.getKeyBinding(e);s&&(a.keybinding=s.getLabel())}var r=new wp(t.context,e,a);if(t.enableMnemonics){var i;if((i=r.getMnemonic())&&r.isEnabled()){var o=[];this.mnemonics.has(i)&&(o=this.mnemonics.get(i));o.push(r);this.mnemonics.set(i,o)}}return r};t.prototype.focus=function(t){void 0===t&&(t=!0);e.prototype.focus.call(this,t)};return t}(Zd["a"]);var wp=function(e){mp(t,e);function t(t,n,r){void 0===r&&(r={});var i=this;r.isMenu=!0;(i=e.call(this,n,n,r)||this).options=r;i.options.icon=void 0!==r.icon&&r.icon;i.options.label=void 0===r.label||r.label;i.cssClass="";if(i.options.label&&r.enableMnemonics){var o=i.getAction().label;if(o){var a=_p.exec(o);a&&(i.mnemonic=d["b"].fromString((a[1]?a[1]:a[2]).toLocaleLowerCase()))}}return i}t.prototype.render=function(t){var n=this;e.prototype.render.call(this,t);this.container=t;this.item=Object(K["k"])(this.element,Object(K["a"])("a.action-menu-item"));if(this._action.id===Zd["d"].ID)this.item.setAttribute("role","presentation");else{this.item.setAttribute("role","menuitem");this.mnemonic&&this.item.setAttribute("aria-keyshortcuts",""+this.mnemonic)}this.check=Object(K["k"])(this.item,Object(K["a"])("span.menu-item-check"));this.check.setAttribute("role","none");this.label=Object(K["k"])(this.item,Object(K["a"])("span.action-label"));this.options.label&&this.options.keybinding&&(Object(K["k"])(this.item,Object(K["a"])("span.keybinding")).textContent=this.options.keybinding);this._register(Object(K["g"])(this.element,K["c"].MOUSE_UP,function(e){K["b"].stop(e,!0);n.onClick(e)}));this.updateClass();this.updateLabel();this.updateTooltip();this.updateEnabled();this.updateChecked()};t.prototype.blur=function(){e.prototype.blur.call(this);this.applyStyle()};t.prototype.focus=function(){e.prototype.focus.call(this);this.item.focus();this.applyStyle()};t.prototype.updateLabel=function(){if(this.options.label){var e=this.getAction().label;if(e){var t=Ip(e);this.options.enableMnemonics||(e=t);this.label.setAttribute("aria-label",t);var n=_p.exec(e);if(n){e=$["k"](e).replace(yp,'<u aria-hidden="true">$1</u>');this.item.setAttribute("aria-keyshortcuts",(n[1]?n[1]:n[2]).toLocaleLowerCase())}}this.label.innerHTML=e.trim()}};t.prototype.updateTooltip=function(){var e=null;if(this.getAction().tooltip)e=this.getAction().tooltip;else if(!this.options.label&&this.getAction().label&&this.options.icon){e=this.getAction().label;this.options.keybinding&&(e=Bn["a"]({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))}e&&(this.item.title=e)};t.prototype.updateClass=function(){this.cssClass&&Object(K["F"])(this.item,this.cssClass);if(this.options.icon){this.cssClass=this.getAction().class;Object(K["e"])(this.label,"icon");this.cssClass&&Object(K["f"])(this.label,this.cssClass);this.updateEnabled()}else Object(K["E"])(this.label,"icon")};t.prototype.updateEnabled=function(){if(this.getAction().enabled){Object(K["E"])(this.element,"disabled");Object(K["E"])(this.item,"disabled");this.item.tabIndex=0}else{Object(K["e"])(this.element,"disabled");Object(K["e"])(this.item,"disabled");Object(K["H"])(this.item)}};t.prototype.updateChecked=function(){if(this.getAction().checked){Object(K["e"])(this.item,"checked");this.item.setAttribute("role","menuitemcheckbox");this.item.setAttribute("aria-checked","true")}else{Object(K["E"])(this.item,"checked");this.item.setAttribute("role","menuitem");this.item.setAttribute("aria-checked","false")}};t.prototype.getMnemonic=function(){return this.mnemonic};t.prototype.applyStyle=function(){var e=Object(K["y"])(this.element,"focused");var t=e&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;var n=e&&this.menuStyle.selectionBackgroundColor?this.menuStyle.selectionBackgroundColor:this.menuStyle.backgroundColor;var r=e&&this.menuStyle.selectionBorderColor?"1px solid "+this.menuStyle.selectionBorderColor:null;this.item.style.color=t?""+t:null;this.check.style.backgroundColor=t?""+t:null;this.item.style.backgroundColor=n?""+n:null;this.container.style.border=r};t.prototype.style=function(e){this.menuStyle=e;this.applyStyle()};return t}(Zd["c"]);var Sp=function(e){mp(t,e);function t(t,n,r,i){var a=e.call(this,t,t,i)||this;a.submenuActions=n;a.parentData=r;a.submenuOptions=i;a.submenuDisposables=[];a.showScheduler=new o["c"](function(){if(a.mouseOver){a.cleanupExistingSubmenu(!1);a.createSubmenu(!1)}},250);a.hideScheduler=new o["c"](function(){if(!Object(K["A"])(document.activeElement,a.element)&&a.parentData.submenu===a.mysubmenu){a.parentData.parent.focus(!1);a.cleanupExistingSubmenu(!0)}},750);return a}t.prototype.render=function(t){var n=this;e.prototype.render.call(this,t);Object(K["e"])(this.item,"monaco-submenu-item");this.item.setAttribute("aria-haspopup","true");this.submenuIndicator=Object(K["k"])(this.item,Object(K["a"])("span.submenu-indicator"));this.submenuIndicator.setAttribute("aria-hidden","true");this._register(Object(K["g"])(this.element,K["c"].KEY_UP,function(e){var t=new Hn["a"](e);if(t.equals(17)||t.equals(3)){K["b"].stop(e,!0);n.createSubmenu(!0)}}));this._register(Object(K["g"])(this.element,K["c"].KEY_DOWN,function(e){var t=new Hn["a"](e);(t.equals(17)||t.equals(3))&&K["b"].stop(e,!0)}));this._register(Object(K["g"])(this.element,K["c"].MOUSE_OVER,function(e){if(!n.mouseOver){n.mouseOver=!0;n.showScheduler.schedule()}}));this._register(Object(K["g"])(this.element,K["c"].MOUSE_LEAVE,function(e){n.mouseOver=!1}));this._register(Object(K["g"])(this.element,K["c"].FOCUS_OUT,function(e){Object(K["A"])(document.activeElement,n.element)||n.hideScheduler.schedule()}))};t.prototype.onClick=function(e){K["b"].stop(e,!0);this.cleanupExistingSubmenu(!1);this.createSubmenu(!1)};t.prototype.cleanupExistingSubmenu=function(e){if(this.parentData.submenu&&(e||this.parentData.submenu!==this.mysubmenu)){this.parentData.submenu.dispose();this.parentData.submenu=null;if(this.submenuContainer){this.submenuDisposables=Object(me["d"])(this.submenuDisposables);this.submenuContainer=null}}};t.prototype.createSubmenu=function(e){var t=this;void 0===e&&(e=!0);if(this.parentData.submenu)this.parentData.submenu.focus(!1);else{this.submenuContainer=Object(K["k"])(this.element,Object(K["a"])("div.monaco-submenu"));Object(K["f"])(this.submenuContainer,"menubar-menu-items-holder","context-view");this.submenuContainer.style.left=Object(K["p"])(this.element).width+"px";this.submenuDisposables.push(Object(K["g"])(this.submenuContainer,K["c"].KEY_UP,function(e){var n;if(new Hn["a"](e).equals(15)){K["b"].stop(e,!0);t.parentData.parent.focus();t.parentData.submenu.dispose();t.parentData.submenu=null;t.submenuDisposables=Object(me["d"])(t.submenuDisposables);t.submenuContainer=null}}));this.submenuDisposables.push(Object(K["g"])(this.submenuContainer,K["c"].KEY_DOWN,function(e){var t;new Hn["a"](e).equals(15)&&K["b"].stop(e,!0)}));this.parentData.submenu=new Cp(this.submenuContainer,this.submenuActions,this.submenuOptions);this.menuStyle&&this.parentData.submenu.style(this.menuStyle);this.submenuDisposables.push(this.parentData.submenu.onDidCancel(function(){t.parentData.parent.focus();t.parentData.submenu.dispose();t.parentData.submenu=null;t.submenuDisposables=Object(me["d"])(t.submenuDisposables);t.submenuContainer=null}));this.parentData.submenu.focus(e);this.mysubmenu=this.parentData.submenu}};t.prototype.applyStyle=function(){e.prototype.applyStyle.call(this);var t;var n=Object(K["y"])(this.element,"focused")&&this.menuStyle.selectionForegroundColor?this.menuStyle.selectionForegroundColor:this.menuStyle.foregroundColor;this.submenuIndicator.style.backgroundColor=n?""+n:null;this.parentData.submenu&&this.parentData.submenu.style(this.menuStyle)};t.prototype.dispose=function(){e.prototype.dispose.call(this);this.hideScheduler.dispose();if(this.mysubmenu){this.mysubmenu.dispose();this.mysubmenu=null}if(this.submenuContainer){this.submenuDisposables=Object(me["d"])(this.submenuDisposables);this.submenuContainer=null}};return t}(wp);var Lp=function(e){mp(t,e);function t(){return null!==e&&e.apply(this,arguments)||this}t.prototype.style=function(e){this.label.style.borderBottomColor=e.separatorColor?""+e.separatorColor:null};return t}(Zd["b"]);function Ip(e){var t=_p;var n=t.exec(e);if(!n)return e;var r="&"===n[0].charAt(0);return e.replace(t,r?"$2":"").trim()}var xp=function(){return(xp=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)};function Np(e,t){var n=Object.create(null);for(var r in t){var i=t[r];"string"==typeof i?n[r]=e.getColor(i):"function"==typeof i&&(n[r]=i(e))}return n}function Mp(e,t,n){function r(r){var i=Np(e.getTheme(),t);"function"==typeof n?n(i):n.style(i)}r(e.getTheme());return e.onThemeChange(r)}function Dp(e,t,n){return Mp(t,{badgeBackground:n&&n.badgeBackground||la["c"],badgeForeground:n&&n.badgeForeground||la["d"],badgeBorder:la["e"]},e)}function kp(e,t,n){return Mp(t,{foreground:n&&n.foreground||la["C"],background:n&&n.background||la["m"],borderColor:n&&n.borderColor||la["e"],widgetShadow:n&&n.widgetShadow||la["qb"],progressBarBackground:n&&n.progressBarBackground||la["kb"],pickerGroupForeground:n&&n.pickerGroupForeground||la["jb"],pickerGroupBorder:n&&n.pickerGroupBorder||la["ib"],inputBackground:n&&n.inputBackground||la["E"],inputForeground:n&&n.inputForeground||la["G"],inputBorder:n&&n.inputBorder||la["F"],inputValidationInfoBorder:n&&n.inputValidationInfoBorder||la["L"],inputValidationInfoBackground:n&&n.inputValidationInfoBackground||la["K"],inputValidationInfoForeground:n&&n.inputValidationInfoForeground||la["M"],inputValidationWarningBorder:n&&n.inputValidationWarningBorder||la["O"],inputValidationWarningBackground:n&&n.inputValidationWarningBackground||la["N"],inputValidationWarningForeground:n&&n.inputValidationWarningForeground||la["P"],inputValidationErrorBorder:n&&n.inputValidationErrorBorder||la["I"],inputValidationErrorBackground:n&&n.inputValidationErrorBackground||la["H"],inputValidationErrorForeground:n&&n.inputValidationErrorForeground||la["J"],listFocusBackground:n&&n.listFocusBackground||la["T"],listFocusForeground:n&&n.listFocusForeground||la["U"],listActiveSelectionBackground:n&&n.listActiveSelectionBackground||la["Q"],listActiveSelectionForeground:n&&n.listActiveSelectionForeground||la["R"],listFocusAndSelectionBackground:n&&n.listFocusAndSelectionBackground||la["Q"],listFocusAndSelectionForeground:n&&n.listFocusAndSelectionForeground||la["R"],listInactiveSelectionBackground:n&&n.listInactiveSelectionBackground||la["Y"],listInactiveSelectionForeground:n&&n.listInactiveSelectionForeground||la["Z"],listInactiveFocusBackground:n&&n.listInactiveFocusBackground||la["X"],listHoverBackground:n&&n.listHoverBackground||la["V"],listHoverForeground:n&&n.listHoverForeground||la["W"],listDropBackground:n&&n.listDropBackground||la["S"],listFocusOutline:n&&n.listFocusOutline||la["b"],listSelectionOutline:n&&n.listSelectionOutline||la["b"],listHoverOutline:n&&n.listHoverOutline||la["b"]},e)}function Op(e,t,n){return Mp(t,Object(_e["e"])(n||Object.create(null),Ep,!1),e)}var Ep={listFocusBackground:la["T"],listFocusForeground:la["U"],listActiveSelectionBackground:la["Q"],listActiveSelectionForeground:la["R"],listFocusAndSelectionBackground:la["Q"],listFocusAndSelectionForeground:la["R"],listInactiveSelectionBackground:la["Y"],listInactiveSelectionForeground:la["Z"],listInactiveFocusBackground:la["X"],listHoverBackground:la["V"],listHoverForeground:la["W"],listDropBackground:la["S"],listFocusOutline:la["b"],listSelectionOutline:la["b"],listHoverOutline:la["b"]};var Tp={shadowColor:la["qb"],borderColor:la["bb"],foregroundColor:la["cb"],backgroundColor:la["ab"],selectionForegroundColor:la["fb"],selectionBackgroundColor:la["db"],selectionBorderColor:la["eb"],separatorColor:la["gb"]};function Ap(e,t,n){var r=xp({},Tp,n);var i={foregroundColor:r.foregroundColor&&t&&t.getTheme().getColor(r.foregroundColor)?r.foregroundColor:la["C"]};return Mp(t,xp({},r,i),e)}var Rp=n("kqNA");var Pp=function(){function e(e,t,n,r,i,o){this.contextViewService=t;this.telemetryService=n;this.notificationService=r;this.keybindingService=i;this.themeService=o;this.setContainer(e)}e.prototype.setContainer=function(e){var t=this;if(this.element){this.elementDisposable=Object(me["d"])(this.elementDisposable);this.element=null}if(e){this.element=e;this.elementDisposable=Object(K["g"])(this.element,K["c"].MOUSE_DOWN,function(e){return t.onMouseDown(e)})}};e.prototype.showContextMenu=function(e){var t=this;e.getActions().then(function(n){if(!n.length)return;t.focusToReturn=document.activeElement;var r;t.contextViewService.showContextView({getAnchor:function(){return e.getAnchor()},canRelayout:!1,render:function(i){t.menuContainerElement=i;var o=e.getMenuClassName?e.getMenuClassName():"";o&&(i.className+=" "+o);var a=[];var s=e.actionRunner||new Gd["b"];s.onDidBeforeRun(t.onActionRun,t,a);s.onDidRun(t.onDidActionRun,t,a);r=new Cp(i,n,{actionItemProvider:e.getActionItem,context:e.getActionsContext?e.getActionsContext():null,actionRunner:s,getKeyBinding:e.getKeyBinding?e.getKeyBinding:function(e){return t.keybindingService.lookupKeybinding(e.id)}});a.push(Ap(r,t.themeService));r.onDidCancel(function(){return t.contextViewService.hideContextView(!0)},null,a);r.onDidBlur(function(){return t.contextViewService.hideContextView(!0)},null,a);Object(Rp["a"])(window,K["c"].BLUR)(function(){t.contextViewService.hideContextView(!0)},null,a);return Object(me["c"])(a.concat([r]))},focus:function(){r.focus(!!e.autoSelectFirstItem)},onHide:function(n){e.onHide&&e.onHide(n);t.menuContainerElement=null}})})};e.prototype.onActionRun=function(e){this.telemetryService&&this.telemetryService.publicLog("workbenchActionExecuted",{id:e.action.id,from:"contextMenu"});this.contextViewService.hideContextView(!1);this.focusToReturn&&this.focusToReturn.focus()};e.prototype.onDidActionRun=function(e){e.error&&this.notificationService&&this.notificationService.error(e.error)};e.prototype.onMouseDown=function(e){if(!this.menuContainerElement)return;var t;var n=new Ji["b"](e).target;for(;n;){if(n===this.menuContainerElement)return;n=n.parentElement}this.contextViewService.hideContextView()};e.prototype.dispose=function(){this.setContainer(null)};return e}();var jp=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Wp=function(e,t,n,r){var i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};var Fp=function(e,t){return function(n,r){t(n,r,e)}};var zp=function(e){jp(t,e);function t(t,n,r,i,o,a){var s=e.call(this)||this;s._onDidContextMenu=s._register(new c["a"]);s.contextMenuHandler=s._register(new Pp(t,i,n,r,o,a));return s}t.prototype.dispose=function(){this.contextMenuHandler.dispose()};t.prototype.showContextMenu=function(e){this.contextMenuHandler.showContextMenu(e);this._onDidContextMenu.fire()};return t=Wp([Fp(1,de["a"]),Fp(2,ai),Fp(3,bh["b"]),Fp(4,Ch["a"]),Fp(5,So["c"])],t)}(me["a"]);var Vp=n("mTmK");var Bp;!function(e){function t(e,t){if(e.start>=t.end||t.start>=e.end)return{start:0,end:0};var n=Math.max(e.start,t.start);var r=Math.min(e.end,t.end);if(r-n<=0)return{start:0,end:0};return{start:n,end:r}}e.intersect=t;function n(e){return e.end-e.start<=0}e.isEmpty=n;function r(e,r){return!n(t(e,r))}e.intersects=r;function i(e,t){var r=[];var i={start:e.start,end:Math.min(t.start,e.end)};var o={start:Math.max(t.end,e.start),end:e.end};n(i)||r.push(i);n(o)||r.push(o);return r}e.relativeComplement=i}(Bp||(Bp={}));var Hp=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Up(e,t,n){var r=n.offset+n.size;if(0===n.position){if(t<=e-r)return r;if(t<=n.offset)return n.offset-t;return Math.max(e-t,0)}if(t<=n.offset)return n.offset-t;if(t<=e-r)return r;return 0}var Zp=function(e){Hp(t,e);function t(t){var n=e.call(this)||this;n.view=K["a"](".context-view");K["z"](n.view);n.setContainer(t);n._register(Object(me["e"])(function(){return n.setContainer(null)}));return n}t.prototype.setContainer=function(e){var n=this;if(this.container){this.toDisposeOnSetContainer=Object(me["d"])(this.toDisposeOnSetContainer);this.container.removeChild(this.view);this.container=null}if(e){this.container=e;this.container.appendChild(this.view);var r=[];t.BUBBLE_UP_EVENTS.forEach(function(e){r.push(K["j"](n.container,e,function(e){n.onDOMEvent(e,document.activeElement,!1)}))});t.BUBBLE_DOWN_EVENTS.forEach(function(e){r.push(K["j"](n.container,e,function(e){n.onDOMEvent(e,document.activeElement,!0)},!0))});this.toDisposeOnSetContainer=Object(me["c"])(r)}};t.prototype.show=function(e){this.isVisible()&&this.hide();K["l"](this.view);this.view.className="context-view";this.view.style.top="0px";this.view.style.left="0px";K["M"](this.view);this.toDisposeOnClean=e.render(this.view);this.delegate=e;this.doLayout();this.delegate.focus&&this.delegate.focus()};t.prototype.layout=function(){if(!this.isVisible())return;if(!1===this.delegate.canRelayout){this.hide();return}this.delegate.layout&&this.delegate.layout();this.doLayout()};t.prototype.doLayout=function(){if(!this.isVisible())return;var e=this.delegate.getAnchor();var t;if(K["B"](e)){var n=K["t"](e);t={top:n.top,left:n.left,width:n.width,height:n.height}}else{var r=e;t={top:r.y,left:r.x,width:r.width||1,height:r.height||2}}var i=K["x"](this.view);var o=K["w"](this.view);var a=this.delegate.anchorPosition||0;var s=this.delegate.anchorAlignment||0;var u={offset:t.top-window.pageYOffset,size:t.height,position:0===a?0:1};var l;l=0===s?{offset:t.left,size:0,position:0}:{offset:t.left+t.width,size:0,position:1};var c=Up(window.innerHeight,o,u)+window.pageYOffset;Bp.intersects({start:c,end:c+o},{start:u.offset,end:u.offset+u.size})&&(l.size=t.width);var d=Up(window.innerWidth,i,l);K["F"](this.view,"top","bottom","left","right");K["e"](this.view,0===a?"bottom":"top");K["e"](this.view,0===s?"left":"right");var h=K["t"](this.container);this.view.style.top=c-h.top+"px";this.view.style.left=d-h.left+"px";this.view.style.width="initial"};t.prototype.hide=function(e){this.delegate&&this.delegate.onHide&&this.delegate.onHide(e);this.delegate=null;if(this.toDisposeOnClean){this.toDisposeOnClean.dispose();this.toDisposeOnClean=null}K["z"](this.view)};t.prototype.isVisible=function(){return!!this.delegate};t.prototype.onDOMEvent=function(e,t,n){this.delegate&&(this.delegate.onDOMEvent?this.delegate.onDOMEvent(e,document.activeElement):n&&!K["A"](e.target,this.container)&&this.hide())};t.prototype.dispose=function(){this.hide();e.prototype.dispose.call(this)};t.BUBBLE_UP_EVENTS=["click","keydown","focus","blur"];t.BUBBLE_DOWN_EVENTS=["click"];return t}(me["a"]);var Gp=Object(ce["c"])("logService");var Yp=function(){function e(){}e.prototype.trace=function(e){var t=[];for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n]};e.prototype.error=function(e){var t=[];for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n]};e.prototype.dispose=function(){};return e}();var Kp=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Qp=function(e,t,n,r){var i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};var qp=function(e,t){return function(n,r){t(n,r,e)}};var Jp=function(e){Kp(t,e);function t(t,n,r){var i=e.call(this)||this;i.logService=r;i.contextView=i._register(new Zp(t));return i}t.prototype.setContainer=function(e){this.logService.trace("ContextViewService#setContainer");this.contextView.setContainer(e)};t.prototype.showContextView=function(e){this.logService.trace("ContextViewService#showContextView");this.contextView.show(e)};t.prototype.layout=function(){this.contextView.layout()};t.prototype.hideContextView=function(e){this.logService.trace("ContextViewService#hideContextView");this.contextView.hide(e)};return t=Qp([qp(1,de["a"]),qp(2,Gp)],t)}(me["a"]);var Xp=Object(ce["c"])("dialogService");var $p=Object.prototype.hasOwnProperty;function eg(e,t){var n=function(n){if($p.call(e,n)){var r;if(!1===t({key:n,value:e[n]},function(){delete e[n]}))return{value:void 0}}};for(var r in e){var i=n(r);if("object"==typeof i)return i.value}}function tg(e){return{data:e,incoming:Object.create(null),outgoing:Object.create(null)}}var ng=function(){function e(e){this._hashFn=e;this._nodes=Object.create(null)}e.prototype.roots=function(){var e=[];eg(this._nodes,function(t){Object(Kn["d"])(t.value.outgoing)&&e.push(t.value)});return e};e.prototype.insertEdge=function(e,t){var n=this.lookupOrInsertNode(e),r=this.lookupOrInsertNode(t);n.outgoing[this._hashFn(t)]=r;r.incoming[this._hashFn(e)]=n};e.prototype.removeNode=function(e){var t=this._hashFn(e);delete this._nodes[t];eg(this._nodes,function(e){delete e.value.outgoing[t];delete e.value.incoming[t]})};e.prototype.lookupOrInsertNode=function(e){var t=this._hashFn(e);var n=this._nodes[t];if(!n){n=tg(e);this._nodes[t]=n}return n};e.prototype.isEmpty=function(){for(var e in this._nodes)return!1;return!0};e.prototype.toString=function(){var e=[];eg(this._nodes,function(t){e.push(t.key+", (incoming)["+Object.keys(t.value.incoming).join(", ")+"], (outgoing)["+Object.keys(t.value.outgoing).join(",")+"]")});return e.join("\n")};return e}();var rg=function(){function e(e,t,n){void 0===t&&(t=[]);void 0===n&&(n=!1);this.ctor=e;this.staticArguments=t;this.supportsDelayedInstantiation=n}return e}();var ig=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var og=!1;var ag=function(){function e(e,t,n){void 0===e&&(e=new wd);void 0===t&&(t=!1);this._services=e;this._strict=t;this._parent=n;this._services.set(ce["a"],this)}e.prototype.createChild=function(t){return new e(t,this._strict,this)};e.prototype.invokeFunction=function(e){var t=this;var n=[];for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=sg.traceInvocation(e);var o=!1;try{var a={get:function(e,n){if(o)throw Object(Ge["c"])("service accessor is only valid during the invocation of its target method");var r=t._getOrCreateServiceInstance(e,i);if(!r&&n!==ce["d"])throw new Error("[invokeFunction] unknown service '"+e+"'");return r}};return e.apply(void 0,[a].concat(n))}finally{o=!0;i.stop()}};e.prototype.createInstance=function(e){var t=[];for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;var i;if(e instanceof rg){r=sg.traceCreation(e.ctor);i=this._createInstance(e.ctor,e.staticArguments.concat(t),r)}else{r=sg.traceCreation(e);i=this._createInstance(e,t,r)}r.stop();return i};e.prototype._createInstance=function(e,t,n){void 0===t&&(t=[]);var r=ce["b"].getServiceDependencies(e).sort(function(e,t){return e.index-t.index});var i=[];for(var o=0,a=r;o<a.length;o++){var s=a[o];var u=this._getOrCreateServiceInstance(s.id,n);if(!u&&this._strict&&!s.optional)throw new Error("[createInstance] "+e.name+" depends on UNKNOWN service "+s.id+".");i.push(u)}var l=r.length>0?r[0].index:t.length;if(t.length!==l){console.warn("[createInstance] First service dependency of "+e.name+" at position "+(l+1)+" conflicts with "+t.length+" static arguments");var c=l-t.length;t=c>0?t.concat(new Array(c)):t.slice(0,l)}return Kn["a"].apply(null,[e].concat(t,i))};e.prototype._setServiceInstance=function(e,t){if(this._services.get(e)instanceof rg)this._services.set(e,t);else{if(!this._parent)throw new Error("illegalState - setting UNKNOWN service instance");this._parent._setServiceInstance(e,t)}};e.prototype._getServiceInstanceOrDescriptor=function(e){var t=this._services.get(e);return!t&&this._parent?this._parent._getServiceInstanceOrDescriptor(e):t};e.prototype._getOrCreateServiceInstance=function(e,t){var n=this._getServiceInstanceOrDescriptor(e);if(n instanceof rg)return this._createAndCacheServiceInstance(e,n,t.branch(e,!0));t.branch(e,!1);return n};e.prototype._createAndCacheServiceInstance=function(e,t,n){var r=new ng(function(e){return e.id.toString()});function i(){var e=new Error("[createInstance] cyclic dependency between services");e.message=r.toString();throw e}var o=0;var a=[{id:e,desc:t,_trace:n}];for(;a.length;){var s=a.pop();r.lookupOrInsertNode(s);o++>100&&i();var u;for(var l=0,c=ce["b"].getServiceDependencies(s.desc.ctor);l<c.length;l++){var d=c[l];var h=this._getServiceInstanceOrDescriptor(d.id);h||d.optional||console.warn("[createInstance] "+e+" depends on "+d.id+" which is NOT registered.");if(h instanceof rg){var f={id:d.id,desc:h,_trace:s._trace.branch(d.id,!0)};r.insertEdge(s,f);a.push(f)}}}for(;;){var p=r.roots();if(0===p.length){r.isEmpty()||i();break}for(var g=0,v=p;g<v.length;g++){var m=v[g].data;var _=this._createServiceInstanceWithOwner(m.id,m.desc.ctor,m.desc.staticArguments,!1,m._trace);this._setServiceInstance(m.id,_);r.removeNode(m)}}return this._getServiceInstanceOrDescriptor(e)};e.prototype._createServiceInstanceWithOwner=function(e,t,n,r,i){void 0===n&&(n=[]);if(this._services.get(e)instanceof rg)return this._createServiceInstance(t,n,r,i);if(this._parent)return this._parent._createServiceInstanceWithOwner(e,t,n,r,i);throw new Error("illegalState - creating UNKNOWN service instance")};e.prototype._createServiceInstance=function(e,t,n,r){void 0===t&&(t=[]);return this._createInstance(e,t,r)};return e}();var sg=function(){function e(e,t){this.type=e;this.name=t;this._start=Date.now();this._dep=[]}e.traceInvocation=function(t){return e._None};e.traceCreation=function(t){return e._None};e.prototype.branch=function(t,n){var r=new e(2,t.toString());this._dep.push([t,n,r]);return r};e.prototype.stop=function(){var t=Date.now()-this._start;e._totals+=t;var n=!1;function r(e,t){var i=[];var o=new Array(e+1).join("\t");for(var a=0,s=t._dep;a<s.length;a++){var u=s[a],l=u[0],c=u[1],d=u[2];if(c&&d){n=!0;i.push(o+"CREATES -> "+l);var h=r(e+1,d);h&&i.push(h)}else i.push(o+"uses -> "+l)}return i.join("\n")}var i=[(0===this.type?"CREATE":"CALL")+" "+this.name,""+r(1,this),"DONE, took "+t.toFixed(2)+"ms (grand total "+e._totals.toFixed(2)+"ms)"];(t>2||n)&&console.log(i.join("\n"))};e._None=new(function(e){ig(t,e);function t(){return e.call(this,-1,null)||this}t.prototype.stop=function(){};t.prototype.branch=function(){return this};return t}(e));e._totals=0;return e}();var ug="label";var lg=Object(ce["c"])("label");var cg=function(){function e(){this._arr=[]}e.prototype.set=function(e,t){this._arr.push({keybinding:Object(d["f"])(e,i["a"]),callback:t})};e.prototype.dispatch=function(e){for(var t=this._arr.length-1;t>=0;t--){var n=this._arr[t];if(e.equals(n.keybinding))return n.callback}return null};return e}();var dg=function(){function e(e){void 0===e&&(e={clickBehavior:0,keyboardSupport:!0,openMode:0});var t=this;this.options=e;this.downKeyBindingDispatcher=new cg;this.upKeyBindingDispatcher=new cg;if("boolean"!=typeof e.keyboardSupport||e.keyboardSupport){this.downKeyBindingDispatcher.set(16,function(e,n){return t.onUp(e,n)});this.downKeyBindingDispatcher.set(18,function(e,n){return t.onDown(e,n)});this.downKeyBindingDispatcher.set(15,function(e,n){return t.onLeft(e,n)});this.downKeyBindingDispatcher.set(17,function(e,n){return t.onRight(e,n)});if(i["d"]){this.downKeyBindingDispatcher.set(2064,function(e,n){return t.onLeft(e,n)});this.downKeyBindingDispatcher.set(300,function(e,n){return t.onDown(e,n)});this.downKeyBindingDispatcher.set(302,function(e,n){return t.onUp(e,n)})}this.downKeyBindingDispatcher.set(11,function(e,n){return t.onPageUp(e,n)});this.downKeyBindingDispatcher.set(12,function(e,n){return t.onPageDown(e,n)});this.downKeyBindingDispatcher.set(14,function(e,n){return t.onHome(e,n)});this.downKeyBindingDispatcher.set(13,function(e,n){return t.onEnd(e,n)});this.downKeyBindingDispatcher.set(10,function(e,n){return t.onSpace(e,n)});this.downKeyBindingDispatcher.set(9,function(e,n){return t.onEscape(e,n)});this.upKeyBindingDispatcher.set(3,this.onEnter.bind(this));this.upKeyBindingDispatcher.set(2051,this.onEnter.bind(this))}}e.prototype.onMouseDown=function(e,t,n,r){void 0===r&&(r="mouse");if(0===this.options.clickBehavior&&(n.leftButton||n.middleButton)){if(n.target){if(n.target.tagName&&"input"===n.target.tagName.toLowerCase())return!1;if(K["o"](n.target,"scrollbar","monaco-tree"))return!1;if(K["o"](n.target,"monaco-action-bar","row"))return!1}return this.onLeftClick(e,t,n,r)}return!1};e.prototype.onClick=function(e,t,n){var r;if(i["d"]&&n.ctrlKey){n.preventDefault();n.stopPropagation();return!1}if(n.target&&n.target.tagName&&"input"===n.target.tagName.toLowerCase())return!1;if(0===this.options.clickBehavior&&(n.leftButton||n.middleButton))return!1;return this.onLeftClick(e,t,n)};e.prototype.onLeftClick=function(e,t,n,r){void 0===r&&(r="mouse");var i=n;var o={origin:r,originalEvent:n,didClickOnTwistie:this.isClickOnTwistie(i)};if(e.getInput()===t){e.clearFocus(o);e.clearSelection(o)}else{var a;n&&i.browserEvent&&"mousedown"===i.browserEvent.type&&1===i.browserEvent.detail||n.preventDefault();n.stopPropagation();e.domFocus();e.setSelection([t],o);e.setFocus(t,o);this.shouldToggleExpansion(t,i,r)&&(e.isExpanded(t)?e.collapse(t).then(null,Ge["d"]):e.expand(t).then(null,Ge["d"]))}return!0};e.prototype.shouldToggleExpansion=function(e,t,n){var r="mouse"===n&&2===t.detail;return this.openOnSingleClick||r||this.isClickOnTwistie(t)};e.prototype.setOpenMode=function(e){this.options.openMode=e};Object.defineProperty(e.prototype,"openOnSingleClick",{get:function(){return 0===this.options.openMode},enumerable:!0,configurable:!0});e.prototype.isClickOnTwistie=function(e){var t=e.target;if(!K["y"](t,"content"))return!1;var n=window.getComputedStyle(t,":before");if("none"===n.backgroundImage||"none"===n.display)return!1;var r=parseInt(n.width)+parseInt(n.paddingRight);return e.browserEvent.offsetX<=r};e.prototype.onContextMenu=function(e,t,n){if(n.target&&n.target.tagName&&"input"===n.target.tagName.toLowerCase())return!1;if(n){n.preventDefault();n.stopPropagation()}return!1};e.prototype.onTap=function(e,t,n){var r=n.initialTarget;if(r&&r.tagName&&"input"===r.tagName.toLowerCase())return!1;return this.onLeftClick(e,t,n,"touch")};e.prototype.onKeyDown=function(e,t){return this.onKey(this.downKeyBindingDispatcher,e,t)};e.prototype.onKeyUp=function(e,t){return this.onKey(this.upKeyBindingDispatcher,e,t)};e.prototype.onKey=function(e,t,n){var r=e.dispatch(n.toKeybinding());if(r&&r(t,n)){n.preventDefault();n.stopPropagation();return!0}return!1};e.prototype.onUp=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{e.focusPrevious(1,n);e.reveal(e.getFocus()).then(null,Ge["d"])}return!0};e.prototype.onPageUp=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{e.focusPreviousPage(n);e.reveal(e.getFocus()).then(null,Ge["d"])}return!0};e.prototype.onDown=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{e.focusNext(1,n);e.reveal(e.getFocus()).then(null,Ge["d"])}return!0};e.prototype.onPageDown=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{e.focusNextPage(n);e.reveal(e.getFocus()).then(null,Ge["d"])}return!0};e.prototype.onHome=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{e.focusFirst(n);e.reveal(e.getFocus()).then(null,Ge["d"])}return!0};e.prototype.onEnd=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{e.focusLast(n);e.reveal(e.getFocus()).then(null,Ge["d"])}return!0};e.prototype.onLeft=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var r=e.getFocus();e.collapse(r).then(function(t){if(r&&!t){e.focusParent(n);return e.reveal(e.getFocus())}return}).then(null,Ge["d"])}return!0};e.prototype.onRight=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())e.clearHighlight(n);else{var r=e.getFocus();e.expand(r).then(function(t){if(r&&!t){e.focusFirstChild(n);return e.reveal(e.getFocus())}return}).then(null,Ge["d"])}return!0};e.prototype.onEnter=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight())return!1;var r=e.getFocus();r&&e.setSelection([r],n);return!0};e.prototype.onSpace=function(e,t){if(e.getHighlight())return!1;var n=e.getFocus();n&&e.toggleExpansion(n);return!0};e.prototype.onEscape=function(e,t){var n={origin:"keyboard",originalEvent:t};if(e.getHighlight()){e.clearHighlight(n);return!0}if(e.getSelection().length){e.clearSelection(n);return!0}if(e.getFocus()){e.clearFocus(n);return!0}return!1};return e}();var hg=function(){function e(){}e.prototype.getDragURI=function(e,t){return null};e.prototype.onDragStart=function(e,t,n){return};e.prototype.onDragOver=function(e,t,n,r){return null};e.prototype.drop=function(e,t,n,r){return};return e}();var fg=function(){function e(){}e.prototype.isVisible=function(e,t){return!0};return e}();var pg=function(){function e(){}e.prototype.getAriaLabel=function(e,t){return null};return e}();var gg=function(){function e(e,t){this.styleElement=e;this.selectorSuffix=t}e.prototype.style=function(e){var t=this.selectorSuffix?"."+this.selectorSuffix:"";var n=[];e.listFocusBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { background-color: "+e.listFocusBackground+"; }");e.listFocusForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) { color: "+e.listFocusForeground+"; }");e.listActiveSelectionBackground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listActiveSelectionBackground+"; }");e.listActiveSelectionForeground&&n.push(".monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listActiveSelectionForeground+"; }");e.listFocusAndSelectionBackground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { background-color: "+e.listFocusAndSelectionBackground+"; }\n\t\t\t");e.listFocusAndSelectionForeground&&n.push("\n\t\t\t\t.monaco-tree-drag-image,\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused.selected:not(.highlighted) { color: "+e.listFocusAndSelectionForeground+"; }\n\t\t\t");e.listInactiveSelectionBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { background-color: "+e.listInactiveSelectionBackground+"; }");e.listInactiveSelectionForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) { color: "+e.listInactiveSelectionForeground+"; }");e.listHoverBackground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { background-color: "+e.listHoverBackground+"; }");e.listHoverForeground&&n.push(".monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) { color: "+e.listHoverForeground+"; }");e.listDropBackground&&n.push("\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target { background-color: "+e.listDropBackground+" !important; color: inherit !important; }\n\t\t\t");e.listFocusOutline&&n.push("\n\t\t\t\t.monaco-tree-drag-image\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; background: #000; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row \t\t\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px solid transparent; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.focused:not(.highlighted) \t\t\t\t\t\t{ border: 1px dotted "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+".focused .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.selected:not(.highlighted) \t\t\t\t\t\t\t{ border: 1px solid "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row:hover:not(.highlighted):not(.selected):not(.focused) \t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-wrapper.drop-target,\n\t\t\t\t.monaco-tree"+t+" .monaco-tree-rows > .monaco-tree-row.drop-target\t\t\t\t\t\t\t\t\t\t\t\t{ border: 1px dashed "+e.listFocusOutline+"; }\n\t\t\t");var r=n.join("\n");r!==this.styleElement.innerHTML&&(this.styleElement.innerHTML=r)};return e}();var vg=n("ewK5");var mg=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var _g=function(){function e(e){this._onDispose=new c["a"];this.onDispose=this._onDispose.event;this._item=e}Object.defineProperty(e.prototype,"item",{get:function(){return this._item},enumerable:!0,configurable:!0});e.prototype.dispose=function(){if(this._onDispose){this._onDispose.fire();this._onDispose.dispose();this._onDispose=null}};return e}();var yg=function(){function e(){this.locks=Object.create({})}e.prototype.isLocked=function(e){return!!this.locks[e.id]};e.prototype.run=function(e,t){var n=this;var i=this.getLock(e);if(i)return new r["b"](function(r,o){Object(c["g"])(i.onDispose)(function(){return n.run(e,t).then(r,o)})});var o;return new r["b"](function(r,i){if(e.isDisposed())return i(new Error("Item is disposed."));var a=n.locks[e.id]=new _g(e);return o=t().then(function(t){delete n.locks[e.id];a.dispose();return t}).then(r,i)})};e.prototype.getLock=function(e){var t;for(t in this.locks){var n=this.locks[t];if(e.intersects(n.item))return n}return null};return e}();var bg=function(){function e(){this._isDisposed=!1;this._onDidRevealItem=new c["c"];this.onDidRevealItem=this._onDidRevealItem.event;this._onExpandItem=new c["c"];this.onExpandItem=this._onExpandItem.event;this._onDidExpandItem=new c["c"];this.onDidExpandItem=this._onDidExpandItem.event;this._onCollapseItem=new c["c"];this.onCollapseItem=this._onCollapseItem.event;this._onDidCollapseItem=new c["c"];this.onDidCollapseItem=this._onDidCollapseItem.event;this._onDidAddTraitItem=new c["c"];this.onDidAddTraitItem=this._onDidAddTraitItem.event;this._onDidRemoveTraitItem=new c["c"];this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event;this._onDidRefreshItem=new c["c"];this.onDidRefreshItem=this._onDidRefreshItem.event;this._onRefreshItemChildren=new c["c"];this.onRefreshItemChildren=this._onRefreshItemChildren.event;this._onDidRefreshItemChildren=new c["c"];this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event;this._onDidDisposeItem=new c["c"];this.onDidDisposeItem=this._onDidDisposeItem.event;this.items={}}e.prototype.register=function(e){ve["a"](!this.isRegistered(e.id),"item already registered: "+e.id);var t=Object(me["c"])([this._onDidRevealItem.add(e.onDidReveal),this._onExpandItem.add(e.onExpand),this._onDidExpandItem.add(e.onDidExpand),this._onCollapseItem.add(e.onCollapse),this._onDidCollapseItem.add(e.onDidCollapse),this._onDidAddTraitItem.add(e.onDidAddTrait),this._onDidRemoveTraitItem.add(e.onDidRemoveTrait),this._onDidRefreshItem.add(e.onDidRefresh),this._onRefreshItemChildren.add(e.onRefreshChildren),this._onDidRefreshItemChildren.add(e.onDidRefreshChildren),this._onDidDisposeItem.add(e.onDidDispose)]);this.items[e.id]={item:e,disposable:t}};e.prototype.deregister=function(e){ve["a"](this.isRegistered(e.id),"item not registered: "+e.id);this.items[e.id].disposable.dispose();delete this.items[e.id]};e.prototype.isRegistered=function(e){return this.items.hasOwnProperty(e)};e.prototype.getItem=function(e){var t=this.items[e];return t?t.item:null};e.prototype.dispose=function(){this.items=null;this._onDidRevealItem.dispose();this._onExpandItem.dispose();this._onDidExpandItem.dispose();this._onCollapseItem.dispose();this._onDidCollapseItem.dispose();this._onDidAddTraitItem.dispose();this._onDidRemoveTraitItem.dispose();this._onDidRefreshItem.dispose();this._onRefreshItemChildren.dispose();this._onDidRefreshItemChildren.dispose();this._isDisposed=!0};e.prototype.isDisposed=function(){return this._isDisposed};return e}();var Cg=function(){function e(e,t,n,r,i){this._onDidCreate=new c["a"];this._onDidReveal=new c["a"];this.onDidReveal=this._onDidReveal.event;this._onExpand=new c["a"];this.onExpand=this._onExpand.event;this._onDidExpand=new c["a"];this.onDidExpand=this._onDidExpand.event;this._onCollapse=new c["a"];this.onCollapse=this._onCollapse.event;this._onDidCollapse=new c["a"];this.onDidCollapse=this._onDidCollapse.event;this._onDidAddTrait=new c["a"];this.onDidAddTrait=this._onDidAddTrait.event;this._onDidRemoveTrait=new c["a"];this.onDidRemoveTrait=this._onDidRemoveTrait.event;this._onDidRefresh=new c["a"];this.onDidRefresh=this._onDidRefresh.event;this._onRefreshChildren=new c["a"];this.onRefreshChildren=this._onRefreshChildren.event;this._onDidRefreshChildren=new c["a"];this.onDidRefreshChildren=this._onDidRefreshChildren.event;this._onDidDispose=new c["a"];this.onDidDispose=this._onDidDispose.event;this.registry=t;this.context=n;this.lock=r;this.element=i;this.id=e;this.registry.register(this);this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element);this.needsChildrenRefresh=!0;this.parent=null;this.previous=null;this.next=null;this.firstChild=null;this.lastChild=null;this.traits={};this.depth=0;this.expanded=this.context.dataSource.shouldAutoexpand&&this.context.dataSource.shouldAutoexpand(this.context.tree,i);this._onDidCreate.fire(this);this.visible=this._isVisible();this.height=this._getHeight();this._isDisposed=!1}e.prototype.getElement=function(){return this.element};e.prototype.hasChildren=function(){return this.doesHaveChildren};e.prototype.getDepth=function(){return this.depth};e.prototype.isVisible=function(){return this.visible};e.prototype.setVisible=function(e){this.visible=e};e.prototype.isExpanded=function(){return this.expanded};e.prototype._setExpanded=function(e){this.expanded=e};e.prototype.reveal=function(e){void 0===e&&(e=null);var t={item:this,relativeTop:e};this._onDidReveal.fire(t)};e.prototype.expand=function(){var e=this;if(this.isExpanded()||!this.doesHaveChildren||this.lock.isLocked(this))return r["b"].as(!1);var t;return this.lock.run(this,function(){if(e.isExpanded()||!e.doesHaveChildren)return r["b"].as(!1);var t={item:e};var n;e._onExpand.fire(t);return(n=e.needsChildrenRefresh?e.refreshChildren(!1,!0,!0):r["b"].as(null)).then(function(){e._setExpanded(!0);e._onDidExpand.fire(t);return!0})}).then(function(t){if(e.isDisposed())return!1;if(e.context.options.autoExpandSingleChildren&&t&&null!==e.firstChild&&e.firstChild===e.lastChild&&e.firstChild.isVisible())return e.firstChild.expand().then(function(){return!0});return t})};e.prototype.collapse=function(e){var t=this;void 0===e&&(e=!1);if(e){var n=r["b"].as(null);this.forEachChild(function(e){n=n.then(function(){return e.collapse(!0)})});return n.then(function(){return t.collapse(!1)})}if(!this.isExpanded()||this.lock.isLocked(this))return r["b"].as(!1);return this.lock.run(this,function(){var e={item:t};t._onCollapse.fire(e);t._setExpanded(!1);t._onDidCollapse.fire(e);return r["b"].as(!0)})};e.prototype.addTrait=function(e){var t={item:this,trait:e};this.traits[e]=!0;this._onDidAddTrait.fire(t)};e.prototype.removeTrait=function(e){var t={item:this,trait:e};delete this.traits[e];this._onDidRemoveTrait.fire(t)};e.prototype.hasTrait=function(e){return this.traits[e]||!1};e.prototype.getAllTraits=function(){var e=[];var t;for(t in this.traits)this.traits.hasOwnProperty(t)&&this.traits[t]&&e.push(t);return e};e.prototype.getHeight=function(){return this.height};e.prototype.refreshChildren=function(t,n,i){var o=this;void 0===n&&(n=!1);void 0===i&&(i=!1);if(!i&&!this.isExpanded()){var a=function(e){e.needsChildrenRefresh=!0;e.forEachChild(a)};a(this);return r["b"].as(this)}this.needsChildrenRefresh=!1;var s=function(){var i={item:o,isNested:n};o._onRefreshChildren.fire(i);var a;var s;return(a=o.doesHaveChildren?o.context.dataSource.getChildren(o.context.tree,o.element):r["b"].as([])).then(function(n){if(o.isDisposed()||o.registry.isDisposed())return r["b"].as(null);if(!Array.isArray(n))return r["b"].wrapError(new Error("Please return an array of children."));n=n?n.slice(0):[];n=o.sort(n);var i={};for(;null!==o.firstChild;){i[o.firstChild.id]=o.firstChild;o.removeChild(o.firstChild)}for(var a=0,s=n.length;a<s;a++){var u=n[a];var l=o.context.dataSource.getId(o.context.tree,u);var c=i[l]||new e(l,o.registry,o.context,o.lock,u);c.element=u;t&&(c.needsChildrenRefresh=t);delete i[l];o.addChild(c)}for(var d in i)i.hasOwnProperty(d)&&i[d].dispose();return t?r["a"].join(o.mapEachChild(function(e){return e.doRefresh(t,!0)})):r["a"].join(o.mapEachChild(function(e){if(e.isExpanded()&&e.needsChildrenRefresh)return e.doRefresh(t,!0);e.updateVisibility();return r["b"].as(null)}))}).then(null,Ge["d"]).then(function(){return o._onDidRefreshChildren.fire(i)})};return n?s():this.lock.run(this,s)};e.prototype.doRefresh=function(e,t){void 0===t&&(t=!1);this.doesHaveChildren=this.context.dataSource.hasChildren(this.context.tree,this.element);this.height=this._getHeight();this.updateVisibility();this._onDidRefresh.fire(this);return this.refreshChildren(e,t)};e.prototype.updateVisibility=function(){this.setVisible(this._isVisible())};e.prototype.refresh=function(e){return this.doRefresh(e)};e.prototype.getNavigator=function(){return new Sg(this)};e.prototype.intersects=function(e){return this.isAncestorOf(e)||e.isAncestorOf(this)};e.prototype.isAncestorOf=function(e){for(;e;){if(e.id===this.id)return!0;e=e.parent}return!1};e.prototype.addChild=function(e,t){void 0===t&&(t=this.lastChild);var n=null===this.firstChild;var r=null===t;var i=t===this.lastChild;if(n){this.firstChild=this.lastChild=e;e.next=e.previous=null}else if(r){this.firstChild.previous=e;e.next=this.firstChild;e.previous=null;this.firstChild=e}else if(i){this.lastChild.next=e;e.next=null;e.previous=this.lastChild;this.lastChild=e}else{e.previous=t;e.next=t.next;t.next.previous=e;t.next=e}e.parent=this;e.depth=this.depth+1};e.prototype.removeChild=function(e){var t=this.firstChild===e;var n=this.lastChild===e;if(t&&n)this.firstChild=this.lastChild=null;else if(t){e.next.previous=null;this.firstChild=e.next}else if(n){e.previous.next=null;this.lastChild=e.previous}else{e.next.previous=e.previous;e.previous.next=e.next}e.parent=null;e.depth=null};e.prototype.forEachChild=function(e){var t=this.firstChild,n;for(;t;){n=t.next;e(t);t=n}};e.prototype.mapEachChild=function(e){var t=[];this.forEachChild(function(n){t.push(e(n))});return t};e.prototype.sort=function(e){var t=this;if(this.context.sorter)return e.sort(function(e,n){return t.context.sorter.compare(t.context.tree,e,n)});return e};e.prototype._getHeight=function(){return this.context.renderer.getHeight(this.context.tree,this.element)};e.prototype._isVisible=function(){return this.context.filter.isVisible(this.context.tree,this.element)};e.prototype.isDisposed=function(){return this._isDisposed};e.prototype.dispose=function(){this.forEachChild(function(e){return e.dispose()});this.parent=null;this.previous=null;this.next=null;this.firstChild=null;this.lastChild=null;this._onDidDispose.fire(this);this.registry.deregister(this);this._onDidCreate.dispose();this._onDidReveal.dispose();this._onExpand.dispose();this._onDidExpand.dispose();this._onCollapse.dispose();this._onDidCollapse.dispose();this._onDidAddTrait.dispose();this._onDidRemoveTrait.dispose();this._onDidRefresh.dispose();this._onRefreshChildren.dispose();this._onDidRefreshChildren.dispose();this._onDidDispose.dispose();this._isDisposed=!0};return e}();var wg=function(e){mg(t,e);function t(t,n,r,i,o){return e.call(this,t,n,r,i,o)||this}t.prototype.isVisible=function(){return!1};t.prototype.setVisible=function(e){};t.prototype.isExpanded=function(){return!0};t.prototype._setExpanded=function(e){};t.prototype._getHeight=function(){return 0};t.prototype._isVisible=function(){return!1};return t}(Cg);var Sg=function(){function e(e,t){void 0===t&&(t=!0);this.item=e;this.start=t?e:null}e.lastDescendantOf=function(t){if(!t)return null;if(t instanceof wg)return e.lastDescendantOf(t.lastChild);if(!t.isVisible())return e.lastDescendantOf(t.previous);if(!t.isExpanded()||null===t.lastChild)return t;return e.lastDescendantOf(t.lastChild)};e.prototype.current=function(){return this.item||null};e.prototype.next=function(){if(this.item)do{if((this.item instanceof wg||this.item.isVisible()&&this.item.isExpanded())&&this.item.firstChild)this.item=this.item.firstChild;else if(this.item===this.start)this.item=null;else{for(;this.item&&this.item!==this.start&&!this.item.next;)this.item=this.item.parent;this.item===this.start&&(this.item=null);this.item=this.item?this.item.next:null}}while(this.item&&!this.item.isVisible());return this.item||null};e.prototype.previous=function(){if(this.item)do{var t=e.lastDescendantOf(this.item.previous);t?this.item=t:this.item.parent&&this.item.parent!==this.start&&this.item.parent.isVisible()?this.item=this.item.parent:this.item=null}while(this.item&&!this.item.isVisible());return this.item||null};e.prototype.parent=function(){if(this.item){var e=this.item.parent;e&&e!==this.start&&e.isVisible()?this.item=e:this.item=null}return this.item||null};e.prototype.first=function(){this.item=this.start;this.next();return this.item||null};e.prototype.last=function(){return e.lastDescendantOf(this.start)};return e}();var Lg=function(){function e(e){this._onSetInput=new c["a"];this.onSetInput=this._onSetInput.event;this._onDidSetInput=new c["a"];this.onDidSetInput=this._onDidSetInput.event;this._onRefresh=new c["a"];this.onRefresh=this._onRefresh.event;this._onDidRefresh=new c["a"];this.onDidRefresh=this._onDidRefresh.event;this._onDidHighlight=new c["a"];this.onDidHighlight=this._onDidHighlight.event;this._onDidSelect=new c["a"];this.onDidSelect=this._onDidSelect.event;this._onDidFocus=new c["a"];this.onDidFocus=this._onDidFocus.event;this._onDidRevealItem=new c["d"];this.onDidRevealItem=this._onDidRevealItem.event;this._onExpandItem=new c["d"];this.onExpandItem=this._onExpandItem.event;this._onDidExpandItem=new c["d"];this.onDidExpandItem=this._onDidExpandItem.event;this._onCollapseItem=new c["d"];this.onCollapseItem=this._onCollapseItem.event;this._onDidCollapseItem=new c["d"];this.onDidCollapseItem=this._onDidCollapseItem.event;this._onDidAddTraitItem=new c["d"];this.onDidAddTraitItem=this._onDidAddTraitItem.event;this._onDidRemoveTraitItem=new c["d"];this.onDidRemoveTraitItem=this._onDidRemoveTraitItem.event;this._onDidRefreshItem=new c["d"];this.onDidRefreshItem=this._onDidRefreshItem.event;this._onRefreshItemChildren=new c["d"];this.onRefreshItemChildren=this._onRefreshItemChildren.event;this._onDidRefreshItemChildren=new c["d"];this.onDidRefreshItemChildren=this._onDidRefreshItemChildren.event;this._onDidDisposeItem=new c["d"];this.context=e;this.input=null;this.traitsToItems={}}e.prototype.setInput=function(e){var t=this;var n={item:this.input};this._onSetInput.fire(n);this.setSelection([]);this.setFocus();this.setHighlight();this.lock=new yg;this.input&&this.input.dispose();if(this.registry){this.registry.dispose();this.registryDisposable.dispose()}this.registry=new bg;this._onDidRevealItem.input=this.registry.onDidRevealItem;this._onExpandItem.input=this.registry.onExpandItem;this._onDidExpandItem.input=this.registry.onDidExpandItem;this._onCollapseItem.input=this.registry.onCollapseItem;this._onDidCollapseItem.input=this.registry.onDidCollapseItem;this._onDidAddTraitItem.input=this.registry.onDidAddTraitItem;this._onDidRemoveTraitItem.input=this.registry.onDidRemoveTraitItem;this._onDidRefreshItem.input=this.registry.onDidRefreshItem;this._onRefreshItemChildren.input=this.registry.onRefreshItemChildren;this._onDidRefreshItemChildren.input=this.registry.onDidRefreshItemChildren;this._onDidDisposeItem.input=this.registry.onDidDisposeItem;this.registryDisposable=this.registry.onDidDisposeItem(function(e){return e.getAllTraits().forEach(function(n){return delete t.traitsToItems[n][e.id]})});var r=this.context.dataSource.getId(this.context.tree,e);this.input=new wg(r,this.registry,this.context,this.lock,e);n={item:this.input};this._onDidSetInput.fire(n);return this.refresh(this.input)};e.prototype.getInput=function(){return this.input?this.input.getElement():null};e.prototype.refresh=function(e,t){var n=this;void 0===e&&(e=null);void 0===t&&(t=!0);var i=this.getItem(e);if(!i)return r["b"].as(null);var o={item:i,recursive:t};this._onRefresh.fire(o);return i.refresh(t).then(function(){n._onDidRefresh.fire(o)})};e.prototype.expand=function(e){var t=this.getItem(e);if(!t)return r["b"].as(!1);return t.expand()};e.prototype.collapse=function(e,t){void 0===t&&(t=!1);var n=this.getItem(e);if(!n)return r["b"].as(!1);return n.collapse(t)};e.prototype.toggleExpansion=function(e,t){void 0===t&&(t=!1);return this.isExpanded(e)?this.collapse(e,t):this.expand(e)};e.prototype.isExpanded=function(e){var t=this.getItem(e);if(!t)return!1;return t.isExpanded()};e.prototype.reveal=function(e,t){var n=this;void 0===t&&(t=null);return this.resolveUnknownParentChain(e).then(function(e){var t=r["b"].as(null);e.forEach(function(e){t=t.then(function(){return n.expand(e)})});return t}).then(function(){var r=n.getItem(e);if(r)return r.reveal(t)})};e.prototype.resolveUnknownParentChain=function(e){var t=this;return this.context.dataSource.getParent(this.context.tree,e).then(function(e){if(!e)return r["b"].as([]);return t.resolveUnknownParentChain(e).then(function(t){t.push(e);return t})})};e.prototype.setHighlight=function(e,t){this.setTraits("highlighted",e?[e]:[]);var n={highlight:this.getHighlight(),payload:t};this._onDidHighlight.fire(n)};e.prototype.getHighlight=function(e){var t=this.getElementsWithTrait("highlighted",e);return 0===t.length?null:t[0]};e.prototype.setSelection=function(e,t){this.setTraits("selected",e);var n={selection:this.getSelection(),payload:t};this._onDidSelect.fire(n)};e.prototype.getSelection=function(e){return this.getElementsWithTrait("selected",e)};e.prototype.setFocus=function(e,t){this.setTraits("focused",e?[e]:[]);var n={focus:this.getFocus(),payload:t};this._onDidFocus.fire(n)};e.prototype.getFocus=function(e){var t=this.getElementsWithTrait("focused",e);return 0===t.length?null:t[0]};e.prototype.focusNext=function(e,t){void 0===e&&(e=1);var n=this.getFocus()||this.input;var r;var i=this.getNavigator(n,!1);for(var o=0;o<e&&(r=i.next());o++)n=r;this.setFocus(n,t)};e.prototype.focusPrevious=function(e,t){void 0===e&&(e=1);var n=this.getFocus()||this.input;var r;var i=this.getNavigator(n,!1);for(var o=0;o<e&&(r=i.previous());o++)n=r;this.setFocus(n,t)};e.prototype.focusParent=function(e){var t=this.getFocus()||this.input;var n;var r=this.getNavigator(t,!1).parent();r&&this.setFocus(r,e)};e.prototype.focusFirstChild=function(e){var t=this.getItem(this.getFocus()||this.input);var n=this.getNavigator(t,!1);var r=n.next();var i;n.parent()===t&&this.setFocus(r,e)};e.prototype.focusFirst=function(e,t){this.focusNth(0,e,t)};e.prototype.focusNth=function(e,t,n){var r=this.getParent(n);var i=this.getNavigator(r);var o=i.first();for(var a=0;a<e;a++)o=i.next();o&&this.setFocus(o,t)};e.prototype.focusLast=function(e,t){var n=this.getParent(t);var r;if(t)r=n.lastChild;else{var i;r=this.getNavigator(n).last()}r&&this.setFocus(r,e)};e.prototype.getParent=function(e){if(e){var t=this.getItem(e);if(t&&t.parent)return t.parent}return this.getItem(this.input)};e.prototype.getNavigator=function(e,t){void 0===e&&(e=null);void 0===t&&(t=!0);return new Sg(this.getItem(e),t)};e.prototype.getItem=function(e){void 0===e&&(e=null);return null===e?this.input:e instanceof Cg?e:"string"==typeof e?this.registry.getItem(e):this.registry.getItem(this.context.dataSource.getId(this.context.tree,e))};e.prototype.removeTraits=function(e,t){var n=this.traitsToItems[e]||{};var r;var i;if(0===t.length){for(i in n)n.hasOwnProperty(i)&&(r=n[i]).removeTrait(e);delete this.traitsToItems[e]}else for(var o=0,a=t.length;o<a;o++)if(r=this.getItem(t[o])){r.removeTrait(e);delete n[r.id]}};e.prototype.setTraits=function(e,t){if(0===t.length)this.removeTraits(e,t);else{var n={};var r;for(var i=0,o=t.length;i<o;i++)(r=this.getItem(t[i]))&&(n[r.id]=r);var a=this.traitsToItems[e]||{};var s=[];var u;for(u in a)a.hasOwnProperty(u)&&(n.hasOwnProperty(u)?delete n[u]:s.push(a[u]));for(var i=0,o=s.length;i<o;i++){(r=s[i]).removeTrait(e);delete a[r.id]}for(u in n)if(n.hasOwnProperty(u)){(r=n[u]).addTrait(e);a[u]=r}this.traitsToItems[e]=a}};e.prototype.getElementsWithTrait=function(e,t){var n=[];var r=this.traitsToItems[e]||{};var i;for(i in r)r.hasOwnProperty(i)&&(r[i].isVisible()||t)&&n.push(r[i].getElement());return n};e.prototype.dispose=function(){if(this.registry){this.registry.dispose();this.registry=null}this._onSetInput.dispose();this._onDidSetInput.dispose();this._onRefresh.dispose();this._onDidRefresh.dispose();this._onDidHighlight.dispose();this._onDidSelect.dispose();this._onDidFocus.dispose();this._onDidRevealItem.dispose();this._onExpandItem.dispose();this._onDidExpandItem.dispose();this._onCollapseItem.dispose();this._onDidCollapseItem.dispose();this._onDidAddTraitItem.dispose();this._onDidRemoveTraitItem.dispose();this._onDidRefreshItem.dispose();this._onRefreshItemChildren.dispose();this._onDidRefreshItemChildren.dispose();this._onDidDisposeItem.dispose()};return e}();var Ig=function(){function e(e){this.elements=e}e.prototype.update=function(e){};return e}();var xg=function(){function e(e){this.elements=e}e.prototype.update=function(e){};return e}();var Ng=function(){function e(){this.types=[];this.files=[]}e.prototype.update=function(e){if(e.dataTransfer.types){this.types=[];Array.prototype.push.apply(this.types,e.dataTransfer.types)}if(e.dataTransfer.files){this.files=[];Array.prototype.push.apply(this.files,e.dataTransfer.files);this.files=this.files.filter(function(e){return e.size||e.type})}};return e}();var Mg=function(){function e(){this.heightMap=[];this.indexes={}}e.prototype.getContentHeight=function(){var e=this.heightMap[this.heightMap.length-1];return e?e.top+e.height:0};e.prototype.onInsertItems=function(e,t){void 0===t&&(t=null);var n;var r;var i,o;var a;var s=0;if(null===t){i=0;a=0}else{i=this.indexes[t]+1;if(!(r=this.heightMap[i-1])){console.error("view item doesnt exist");return}a=r.top+r.height}var u=this.heightMap.splice.bind(this.heightMap,i,0);var l=[];for(;n=e.next();){(r=this.createViewItem(n)).top=a+s;this.indexes[n.id]=i++;l.push(r);s+=r.height}u.apply(this.heightMap,l);for(o=i;o<this.heightMap.length;o++){(r=this.heightMap[o]).top+=s;this.indexes[r.model.id]=o}for(o=l.length-1;o>=0;o--)this.onInsertItem(l[o]);for(o=this.heightMap.length-1;o>=i;o--)this.onRefreshItem(this.heightMap[o]);return s};e.prototype.onInsertItem=function(e){};e.prototype.onRemoveItems=function(e){var t;var n;var r=null;var i;var o=0;for(;t=e.next();){i=this.indexes[t];if(!(n=this.heightMap[i])){console.error("view item doesnt exist");return}o-=n.height;delete this.indexes[t];this.onRemoveItem(n);null===r&&(r=i)}if(0===o)return;this.heightMap.splice(r,i-r+1);for(i=r;i<this.heightMap.length;i++){(n=this.heightMap[i]).top+=o;this.indexes[n.model.id]=i;this.onRefreshItem(n)}};e.prototype.onRemoveItem=function(e){};e.prototype.onRefreshItemSet=function(e){var t=this;var n=e.sort(function(e,n){return t.indexes[e.id]-t.indexes[n.id]});this.onRefreshItems(new gt["a"](n))};e.prototype.onRefreshItems=function(e){var t;var n;var r;var i,o=null;var a=0;for(;t=e.next();){i=this.indexes[t.id];for(;0!==a&&null!==o&&o<i;o++){(n=this.heightMap[o]).top+=a;this.onRefreshItem(n)}n=this.heightMap[i];r=t.getHeight();n.top+=a;a+=r-n.height;n.height=r;this.onRefreshItem(n,!0);o=i+1}if(0!==a&&null!==o)for(;o<this.heightMap.length;o++){(n=this.heightMap[o]).top+=a;this.onRefreshItem(n)}};e.prototype.onRefreshItem=function(e,t){void 0===t&&(t=!1)};e.prototype.indexAt=function(e){var t=0;var n=this.heightMap.length;var r;var i;for(;t<n;){r=Math.floor((t+n)/2);if(e<(i=this.heightMap[r]).top)n=r;else{if(!(e>=i.top+i.height))return r;if(t===r)break;t=r}}return this.heightMap.length};e.prototype.indexAfter=function(e){return Math.min(this.indexAt(e)+1,this.heightMap.length)};e.prototype.itemAtIndex=function(e){return this.heightMap[e]};e.prototype.itemAfter=function(e){return this.heightMap[this.indexes[e.model.id]+1]||null};e.prototype.createViewItem=function(e){throw new Error("not implemented")};e.prototype.dispose=function(){this.heightMap=null;this.indexes=null};return e}();var Dg=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var kg=function(){function e(e,t,n){this._posx=e;this._posy=t;this._target=n}e.prototype.preventDefault=function(){};e.prototype.stopPropagation=function(){};Object.defineProperty(e.prototype,"target",{get:function(){return this._target},enumerable:!0,configurable:!0});return e}();var Og=function(e){Dg(t,e);function t(t){var n=e.call(this,t.posx,t.posy,t.target)||this;n.originalEvent=t;return n}t.prototype.preventDefault=function(){this.originalEvent.preventDefault()};t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()};return t}(kg);var Eg=function(e){Dg(t,e);function t(t,n,r){var i=e.call(this,t,n,r.target)||this;i.originalEvent=r;return i}t.prototype.preventDefault=function(){this.originalEvent.preventDefault()};t.prototype.stopPropagation=function(){this.originalEvent.stopPropagation()};return t}(kg);var Tg="ResourceURLs",Ag="DownloadURL",Rg="Files",Pg="text/plain";var jg=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function Wg(e){try{e.parentElement.removeChild(e)}catch(e){}}var Fg=function(){function e(e){this.context=e;this._cache={"":[]}}e.prototype.alloc=function(e){var t=this.cache(e).pop();if(!t){var n=document.createElement("div");n.className="content";var r=document.createElement("div");r.appendChild(n);var i=null;try{i=this.context.renderer.renderTemplate(this.context.tree,e,n)}catch(e){console.error("Tree usage error: exception while rendering template");console.error(e)}t={element:r,templateId:e,templateData:i}}return t};e.prototype.release=function(e,t){Wg(t.element);this.cache(e).push(t)};e.prototype.cache=function(e){return this._cache[e]||(this._cache[e]=[])};e.prototype.garbageCollect=function(){var e=this;this._cache&&Object.keys(this._cache).forEach(function(t){e._cache[t].forEach(function(n){e.context.renderer.disposeTemplate(e.context.tree,t,n.templateData);n.element=null;n.templateData=null});delete e._cache[t]})};e.prototype.dispose=function(){this.garbageCollect();this._cache=null;this.context=null};return e}();var zg=function(){function e(e,t){var n=this;this.width=0;this.context=e;this.model=t;this.id=this.model.id;this.row=null;this.top=0;this.height=t.getHeight();this._styles={};t.getAllTraits().forEach(function(e){return n._styles[e]=!0});t.isExpanded()&&this.addClass("expanded")}Object.defineProperty(e.prototype,"expanded",{set:function(e){e?this.addClass("expanded"):this.removeClass("expanded")},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"loading",{set:function(e){e?this.addClass("loading"):this.removeClass("loading")},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"draggable",{get:function(){return this._draggable},set:function(e){this._draggable=e;this.render(!0)},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"dropTarget",{set:function(e){e?this.addClass("drop-target"):this.removeClass("drop-target")},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"element",{get:function(){return this.row&&this.row.element},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"templateId",{get:function(){return this._templateId||(this._templateId=this.context.renderer.getTemplateId&&this.context.renderer.getTemplateId(this.context.tree,this.model.getElement()))},enumerable:!0,configurable:!0});e.prototype.addClass=function(e){this._styles[e]=!0;this.render(!0)};e.prototype.removeClass=function(e){delete this._styles[e];this.render(!0)};e.prototype.render=function(e){var t=this;void 0===e&&(e=!1);if(!this.model||!this.element)return;var n=["monaco-tree-row"];n.push.apply(n,Object.keys(this._styles));this.model.hasChildren()&&n.push("has-children");this.element.className=n.join(" ");this.element.draggable=this.draggable;this.element.style.height=this.height+"px";this.element.setAttribute("role","treeitem");var r=this.context.accessibilityProvider;var i=r.getAriaLabel(this.context.tree,this.model.getElement());i&&this.element.setAttribute("aria-label",i);if(r.getPosInSet&&r.getSetSize){this.element.setAttribute("aria-setsize",r.getSetSize());this.element.setAttribute("aria-posinset",r.getPosInSet(this.context.tree,this.model.getElement()))}if(this.model.hasTrait("focused")){var o=$["z"](this.model.id);this.element.setAttribute("aria-selected","true");this.element.setAttribute("id",o)}else{this.element.setAttribute("aria-selected","false");this.element.removeAttribute("id")}this.model.hasChildren()?this.element.setAttribute("aria-expanded",String(!!this._styles["expanded"])):this.element.removeAttribute("aria-expanded");this.element.setAttribute("aria-level",String(this.model.getDepth()));if(this.context.options.paddingOnRow)this.element.style.paddingLeft=this.context.options.twistiePixels+(this.model.getDepth()-1)*this.context.options.indentPixels+"px";else{this.element.style.paddingLeft=(this.model.getDepth()-1)*this.context.options.indentPixels+"px";this.row.element.firstElementChild.style.paddingLeft=this.context.options.twistiePixels+"px"}var a=this.context.dnd.getDragURI(this.context.tree,this.model.getElement());if(a!==this.uri){if(this.unbindDragStart){this.unbindDragStart.dispose();this.unbindDragStart=null}if(a){this.uri=a;this.draggable=!0;this.unbindDragStart=K["g"](this.element,"dragstart",function(e){t.onDragStart(e)})}else this.uri=null}if(!e&&this.element){var s=window.getComputedStyle(this.element);var u=parseFloat(s.paddingLeft);this.context.horizontalScrolling&&(this.element.style.width="fit-content");try{this.context.renderer.renderElement(this.context.tree,this.model.getElement(),this.templateId,this.row.templateData)}catch(e){console.error("Tree usage error: exception while rendering element");console.error(e)}if(this.context.horizontalScrolling){this.width=K["s"](this.element)+u;this.element.style.width=""}}};e.prototype.insertInDOM=function(e,t){if(!this.row){this.row=this.context.cache.alloc(this.templateId);this.element[Hg.BINDING]=this}if(this.element.parentElement)return;if(null===t)e.appendChild(this.element);else try{e.insertBefore(this.element,t)}catch(t){console.warn("Failed to locate previous tree element");e.appendChild(this.element)}this.render()};e.prototype.removeFromDOM=function(){if(!this.row)return;if(this.unbindDragStart){this.unbindDragStart.dispose();this.unbindDragStart=null}this.uri=null;this.element[Hg.BINDING]=null;this.context.cache.release(this.templateId,this.row);this.row=null};e.prototype.dispose=function(){this.row=null;this.model=null};return e}();var Vg=function(e){jg(t,e);function t(t,n,r){var i=e.call(this,t,n)||this;i.row={element:r,templateData:null,templateId:null};return i}t.prototype.render=function(){if(!this.model||!this.element)return;var e=["monaco-tree-wrapper"];e.push.apply(e,Object.keys(this._styles));this.model.hasChildren()&&e.push("has-children");this.element.className=e.join(" ")};t.prototype.insertInDOM=function(e,t){};t.prototype.removeFromDOM=function(){};return t}(zg);function Bg(e,t){return!e&&!t||!(!e||!t)&&(e.accept===t.accept&&(e.bubble===t.bubble&&e.effect===t.effect))}var Hg=function(e){jg(t,e);function t(n,r){var i=e.call(this)||this;i.lastClickTimeStamp=0;i.contentWidthUpdateDelayer=new o["a"](50);i.isRefreshing=!1;i.refreshingPreviousChildrenIds={};i.currentDropDisposable=me["a"].None;i._onDOMFocus=new c["a"];i._onDOMBlur=new c["a"];i._onDidScroll=new c["a"];t.counter++;i.instance=t.counter;var a=void 0===n.options.horizontalScrollMode?2:n.options.horizontalScrollMode;i.horizontalScrolling=2!==a;i.context={dataSource:n.dataSource,renderer:n.renderer,controller:n.controller,dnd:n.dnd,filter:n.filter,sorter:n.sorter,tree:n.tree,accessibilityProvider:n.accessibilityProvider,options:n.options,cache:new Fg(n),horizontalScrolling:i.horizontalScrolling};i.modelListeners=[];i.viewListeners=[];i.model=null;i.items={};i.domNode=document.createElement("div");i.domNode.className="monaco-tree no-focused-item monaco-tree-instance-"+i.instance;i.domNode.tabIndex=n.options.preventRootFocus?-1:0;i.styleElement=K["n"](i.domNode);i.treeStyler=n.styler;i.treeStyler||(i.treeStyler=new gg(i.styleElement,"monaco-tree-instance-"+i.instance));i.domNode.setAttribute("role","tree");i.context.options.ariaLabel&&i.domNode.setAttribute("aria-label",i.context.options.ariaLabel);i.context.options.alwaysFocused&&K["e"](i.domNode,"focused");i.context.options.paddingOnRow||K["e"](i.domNode,"no-row-padding");i.wrapper=document.createElement("div");i.wrapper.className="monaco-tree-wrapper";i.scrollableElement=new al(i.wrapper,{alwaysConsumeMouseWheel:!0,horizontal:a,vertical:void 0!==n.options.verticalScrollMode?n.options.verticalScrollMode:1,useShadows:n.options.useShadows});i.scrollableElement.onScroll(function(e){i.render(e.scrollTop,e.height,e.scrollLeft,e.width,e.scrollWidth);i._onDidScroll.fire()});if(Ai["k"]){i.wrapper.style.msTouchAction="none";i.wrapper.style.msContentZooming="none"}else qi["b"].addTarget(i.wrapper);i.rowsContainer=document.createElement("div");i.rowsContainer.className="monaco-tree-rows";n.options.showTwistie&&(i.rowsContainer.className+=" show-twisties");var s=K["O"](i.domNode);i.viewListeners.push(s.onDidFocus(function(){return i.onFocus()}));i.viewListeners.push(s.onDidBlur(function(){return i.onBlur()}));i.viewListeners.push(s);i.viewListeners.push(K["g"](i.domNode,"keydown",function(e){return i.onKeyDown(e)}));i.viewListeners.push(K["g"](i.domNode,"keyup",function(e){return i.onKeyUp(e)}));i.viewListeners.push(K["g"](i.domNode,"mousedown",function(e){return i.onMouseDown(e)}));i.viewListeners.push(K["g"](i.domNode,"mouseup",function(e){return i.onMouseUp(e)}));i.viewListeners.push(K["g"](i.wrapper,"auxclick",function(e){e&&1===e.button&&i.onMouseMiddleClick(e)}));i.viewListeners.push(K["g"](i.wrapper,"click",function(e){return i.onClick(e)}));i.viewListeners.push(K["g"](i.domNode,"contextmenu",function(e){return i.onContextMenu(e)}));i.viewListeners.push(K["g"](i.wrapper,qi["a"].Tap,function(e){return i.onTap(e)}));i.viewListeners.push(K["g"](i.wrapper,qi["a"].Change,function(e){return i.onTouchChange(e)}));if(Ai["k"]){i.viewListeners.push(K["g"](i.wrapper,"MSPointerDown",function(e){return i.onMsPointerDown(e)}));i.viewListeners.push(K["g"](i.wrapper,"MSGestureTap",function(e){return i.onMsGestureTap(e)}));i.viewListeners.push(K["i"](i.wrapper,"MSGestureChange",function(e){return i.onThrottledMsGestureChange(e)},function(e,t){t.stopPropagation();t.preventDefault();var n={translationY:t.translationY,translationX:t.translationX};if(e){n.translationY+=e.translationY;n.translationX+=e.translationX}return n}))}i.viewListeners.push(K["g"](window,"dragover",function(e){return i.onDragOver(e)}));i.viewListeners.push(K["g"](i.wrapper,"drop",function(e){return i.onDrop(e)}));i.viewListeners.push(K["g"](window,"dragend",function(e){return i.onDragEnd(e)}));i.viewListeners.push(K["g"](window,"dragleave",function(e){return i.onDragOver(e)}));i.wrapper.appendChild(i.rowsContainer);i.domNode.appendChild(i.scrollableElement.getDomNode());r.appendChild(i.domNode);i.lastRenderTop=0;i.lastRenderHeight=0;i.didJustPressContextMenuKey=!1;i.currentDropTarget=null;i.currentDropTargets=[];i.shouldInvalidateDropReaction=!1;i.dragAndDropScrollInterval=null;i.dragAndDropScrollTimeout=null;i.onHiddenScrollTop=null;i.onRowsChanged();i.layout();i.setupMSGesture();i.applyStyles(n.options);return i}Object.defineProperty(t.prototype,"onDOMFocus",{get:function(){return this._onDOMFocus.event},enumerable:!0,configurable:!0});t.prototype.applyStyles=function(e){this.treeStyler.style(e)};t.prototype.createViewItem=function(e){return new zg(this.context,e)};t.prototype.getHTMLElement=function(){return this.domNode};t.prototype.focus=function(){this.domNode.focus()};t.prototype.isFocused=function(){return document.activeElement===this.domNode};t.prototype.blur=function(){this.domNode.blur()};t.prototype.setupMSGesture=function(){var e=this;if(window.MSGesture){this.msGesture=new MSGesture;setTimeout(function(){return e.msGesture.target=e.wrapper},100)}};t.prototype.isTreeVisible=function(){return null===this.onHiddenScrollTop};t.prototype.layout=function(e,t){if(!this.isTreeVisible())return;this.viewHeight=e||K["r"](this.wrapper);this.scrollHeight=this.getContentHeight();this.horizontalScrolling&&(this.viewWidth=t||K["s"](this.wrapper))};t.prototype.render=function(e,t,n,r,i){var o;var a;var s=e;var u=e+t;var l=this.lastRenderTop+this.lastRenderHeight;for(o=this.indexAfter(u)-1,a=this.indexAt(Math.max(l,s));o>=a;o--)this.insertItemInDOM(this.itemAtIndex(o));for(o=Math.min(this.indexAt(this.lastRenderTop),this.indexAfter(u))-1,a=this.indexAt(s);o>=a;o--)this.insertItemInDOM(this.itemAtIndex(o));for(o=this.indexAt(this.lastRenderTop),a=Math.min(this.indexAt(s),this.indexAfter(l));o<a;o++)this.removeItemFromDOM(this.itemAtIndex(o));for(o=Math.max(this.indexAfter(u),this.indexAt(this.lastRenderTop)),a=this.indexAfter(l);o<a;o++)this.removeItemFromDOM(this.itemAtIndex(o));var c=this.itemAtIndex(this.indexAt(s));c&&(this.rowsContainer.style.top=c.top-s+"px");if(this.horizontalScrolling){this.rowsContainer.style.left=-n+"px";this.rowsContainer.style.width=Math.max(i,r)+"px"}this.lastRenderTop=s;this.lastRenderHeight=u-s};t.prototype.setModel=function(e){this.releaseModel();this.model=e;this.model.onRefresh(this.onRefreshing,this,this.modelListeners);this.model.onDidRefresh(this.onRefreshed,this,this.modelListeners);this.model.onSetInput(this.onClearingInput,this,this.modelListeners);this.model.onDidSetInput(this.onSetInput,this,this.modelListeners);this.model.onDidFocus(this.onModelFocusChange,this,this.modelListeners);this.model.onRefreshItemChildren(this.onItemChildrenRefreshing,this,this.modelListeners);this.model.onDidRefreshItemChildren(this.onItemChildrenRefreshed,this,this.modelListeners);this.model.onDidRefreshItem(this.onItemRefresh,this,this.modelListeners);this.model.onExpandItem(this.onItemExpanding,this,this.modelListeners);this.model.onDidExpandItem(this.onItemExpanded,this,this.modelListeners);this.model.onCollapseItem(this.onItemCollapsing,this,this.modelListeners);this.model.onDidRevealItem(this.onItemReveal,this,this.modelListeners);this.model.onDidAddTraitItem(this.onItemAddTrait,this,this.modelListeners);this.model.onDidRemoveTraitItem(this.onItemRemoveTrait,this,this.modelListeners)};t.prototype.onRefreshing=function(){this.isRefreshing=!0};t.prototype.onRefreshed=function(){this.isRefreshing=!1;this.onRowsChanged()};t.prototype.onRowsChanged=function(e){void 0===e&&(e=this.scrollTop);if(this.isRefreshing)return;this.scrollTop=e;this.updateScrollWidth()};t.prototype.updateScrollWidth=function(){var e=this;if(!this.horizontalScrolling)return;this.contentWidthUpdateDelayer.trigger(function(){var t;var n=0;for(var r=0,i=Object.keys(e.items);r<i.length;r++){var o=i[r];n=Math.max(n,e.items[o].width)}e.scrollWidth=n+10})};t.prototype.focusNextPage=function(e){var t=this;var n=this.indexAt(this.scrollTop+this.viewHeight);n=0===n?0:n-1;var r=this.itemAtIndex(n).model.getElement();var i;if(this.model.getFocus()!==r)this.model.setFocus(r,e);else{var o=this.scrollTop;this.scrollTop+=this.viewHeight;this.scrollTop!==o&&setTimeout(function(){t.focusNextPage(e)},0)}};t.prototype.focusPreviousPage=function(e){var t=this;var n;n=0===this.scrollTop?this.indexAt(this.scrollTop):this.indexAfter(this.scrollTop-1);var r=this.itemAtIndex(n).model.getElement();var i;if(this.model.getFocus()!==r)this.model.setFocus(r,e);else{var o=this.scrollTop;this.scrollTop-=this.viewHeight;this.scrollTop!==o&&setTimeout(function(){t.focusPreviousPage(e)},0)}};Object.defineProperty(t.prototype,"viewHeight",{get:function(){var e;return this.scrollableElement.getScrollDimensions().height},set:function(e){this.scrollableElement.setScrollDimensions({height:e})},enumerable:!0,configurable:!0});Object.defineProperty(t.prototype,"scrollHeight",{set:function(e){this.scrollableElement.setScrollDimensions({scrollHeight:e})},enumerable:!0,configurable:!0});Object.defineProperty(t.prototype,"viewWidth",{get:function(){var e;return this.scrollableElement.getScrollDimensions().width},set:function(e){this.scrollableElement.setScrollDimensions({width:e})},enumerable:!0,configurable:!0});Object.defineProperty(t.prototype,"scrollWidth",{set:function(e){this.scrollableElement.setScrollDimensions({scrollWidth:e})},enumerable:!0,configurable:!0});Object.defineProperty(t.prototype,"scrollTop",{get:function(){var e;return this.scrollableElement.getScrollPosition().scrollTop},set:function(e){this.scrollableElement.setScrollDimensions({scrollHeight:this.getContentHeight()});this.scrollableElement.setScrollPosition({scrollTop:e})},enumerable:!0,configurable:!0});t.prototype.onClearingInput=function(e){var t=e.item;if(t){this.onRemoveItems(new gt["d"](t.getNavigator(),function(e){return e&&e.id}));this.onRowsChanged()}};t.prototype.onSetInput=function(e){this.context.cache.garbageCollect();this.inputItem=new Vg(this.context,e.item,this.wrapper)};t.prototype.onItemChildrenRefreshing=function(e){var n=e.item;var r=this.items[n.id];r&&this.context.options.showLoading&&(r.loadingTimer=setTimeout(function(){r.loadingTimer=0;r.loading=!0},t.LOADING_DECORATION_DELAY));if(!e.isNested){var i=[];var o=n.getNavigator();var a;for(;a=o.next();)i.push(a.id);this.refreshingPreviousChildrenIds[n.id]=i}};t.prototype.onItemChildrenRefreshed=function(e){var t=this;var n=e.item;var r=this.items[n.id];if(r){if(r.loadingTimer){clearTimeout(r.loadingTimer);r.loadingTimer=0}r.loading=!1}if(!e.isNested){var i=this.refreshingPreviousChildrenIds[n.id];var o=[];var a=n.getNavigator();var s;for(;s=a.next();)o.push(s);var u=Math.abs(i.length-o.length)>1e3;var l=void 0;var c=void 0;if(!u){var d;c=(l=new pt({getLength:function(){return i.length},getElementAtIndex:function(e){return i[e]}},{getLength:function(){return o.length},getElementAtIndex:function(e){return o[e].id}},null).ComputeDiff(!1)).some(function(e){if(e.modifiedLength>0)for(var n=e.modifiedStart,r=e.modifiedStart+e.modifiedLength;n<r;n++)if(t.items.hasOwnProperty(o[n].id))return!0;return!1})}if(!u&&!c&&l.length<50)for(var h=0,f=l.length;h<f;h++){var p=l[h];p.originalLength>0&&this.onRemoveItems(new gt["a"](i,p.originalStart,p.originalStart+p.originalLength));if(p.modifiedLength>0){var g=o[p.modifiedStart-1]||n;g=g.getDepth()>0?g:null;this.onInsertItems(new gt["a"](o,p.modifiedStart,p.modifiedStart+p.modifiedLength),g?g.id:null)}}else if(u||l.length){this.onRemoveItems(new gt["a"](i));this.onInsertItems(new gt["a"](o),n.getDepth()>0?n.id:null)}(u||l.length)&&this.onRowsChanged()}};t.prototype.onItemRefresh=function(e){this.onItemsRefresh([e])};t.prototype.onItemsRefresh=function(e){var t=this;this.onRefreshItemSet(e.filter(function(e){return t.items.hasOwnProperty(e.id)}));this.onRowsChanged()};t.prototype.onItemExpanding=function(e){var t=this.items[e.item.id];t&&(t.expanded=!0)};t.prototype.onItemExpanded=function(e){var t=e.item;var n=this.items[t.id];if(n){n.expanded=!0;var r=this.onInsertItems(t.getNavigator(),t.id);var i=this.scrollTop;n.top+n.height<=this.scrollTop&&(i+=r);this.onRowsChanged(i)}};t.prototype.onItemCollapsing=function(e){var t=e.item;var n=this.items[t.id];if(n){n.expanded=!1;this.onRemoveItems(new gt["d"](t.getNavigator(),function(e){return e&&e.id}));this.onRowsChanged()}};t.prototype.onItemReveal=function(e){var t=e.item;var n=e.relativeTop;var r=this.items[t.id];if(r)if(null!==n){n=(n=n<0?0:n)>1?1:n;var i=r.height-this.viewHeight;this.scrollTop=i*n+r.top}else{var o=r.top+r.height;var a=this.scrollTop+this.viewHeight;r.top<this.scrollTop?this.scrollTop=r.top:o>=a&&(this.scrollTop=o-this.viewHeight)}};t.prototype.onItemAddTrait=function(e){var t=e.item;var n=e.trait;var r=this.items[t.id];r&&r.addClass(n);if("highlighted"===n){K["e"](this.domNode,n);if(r){this.highlightedItemWasDraggable=!!r.draggable;r.draggable&&(r.draggable=!1)}}};t.prototype.onItemRemoveTrait=function(e){var t=e.item;var n=e.trait;var r=this.items[t.id];r&&r.removeClass(n);if("highlighted"===n){K["E"](this.domNode,n);this.highlightedItemWasDraggable&&(r.draggable=!0);this.highlightedItemWasDraggable=!1}};t.prototype.onModelFocusChange=function(){var e=this.model&&this.model.getFocus();K["N"](this.domNode,"no-focused-item",!e);e?this.domNode.setAttribute("aria-activedescendant",$["z"](this.context.dataSource.getId(this.context.tree,e))):this.domNode.removeAttribute("aria-activedescendant")};t.prototype.onInsertItem=function(e){var t=this;e.onDragStart=function(n){t.onDragStart(e,n)};e.needsRender=!0;this.refreshViewItem(e);this.items[e.id]=e};t.prototype.onRefreshItem=function(e,t){void 0===t&&(t=!1);e.needsRender=e.needsRender||t;this.refreshViewItem(e)};t.prototype.onRemoveItem=function(e){this.removeItemFromDOM(e);e.dispose();delete this.items[e.id]};t.prototype.refreshViewItem=function(e){e.render();this.shouldBeRendered(e)?this.insertItemInDOM(e):this.removeItemFromDOM(e)};t.prototype.onClick=function(e){if(this.lastPointerType&&"mouse"!==this.lastPointerType)return;var t=new Ji["b"](e);var n=this.getItemAround(t.target);if(!n)return;Ai["k"]&&Date.now()-this.lastClickTimeStamp<300&&(t.detail=2);this.lastClickTimeStamp=Date.now();this.context.controller.onClick(this.context.tree,n.model.getElement(),t)};t.prototype.onMouseMiddleClick=function(e){if(!this.context.controller.onMouseMiddleClick)return;var t=new Ji["b"](e);var n=this.getItemAround(t.target);if(!n)return;this.context.controller.onMouseMiddleClick(this.context.tree,n.model.getElement(),t)};t.prototype.onMouseDown=function(e){this.didJustPressContextMenuKey=!1;if(!this.context.controller.onMouseDown)return;if(this.lastPointerType&&"mouse"!==this.lastPointerType)return;var t=new Ji["b"](e);if(t.ctrlKey&&i["e"]&&i["d"])return;var n=this.getItemAround(t.target);if(!n)return;this.context.controller.onMouseDown(this.context.tree,n.model.getElement(),t)};t.prototype.onMouseUp=function(e){if(!this.context.controller.onMouseUp)return;if(this.lastPointerType&&"mouse"!==this.lastPointerType)return;var t=new Ji["b"](e);if(t.ctrlKey&&i["e"]&&i["d"])return;var n=this.getItemAround(t.target);if(!n)return;this.context.controller.onMouseUp(this.context.tree,n.model.getElement(),t)};t.prototype.onTap=function(e){var t=this.getItemAround(e.initialTarget);if(!t)return;this.context.controller.onTap(this.context.tree,t.model.getElement(),e)};t.prototype.onTouchChange=function(e){e.preventDefault();e.stopPropagation();this.scrollTop-=e.translationY};t.prototype.onContextMenu=function(e){var t;var n;if(e instanceof KeyboardEvent||this.didJustPressContextMenuKey){this.didJustPressContextMenuKey=!1;var r=new Hn["a"](e);var i;if(n=this.model.getFocus()){var o=this.context.dataSource.getId(this.context.tree,n);var a=this.items[o];i=K["t"](a.element)}else{n=this.model.getInput();i=K["t"](this.inputItem.element)}t=new Eg(i.left+i.width,i.top,r)}else{var s=new Ji["b"](e);var u=this.getItemAround(s.target);if(!u)return;n=u.model.getElement();t=new Og(s)}this.context.controller.onContextMenu(this.context.tree,n,t)};t.prototype.onKeyDown=function(e){var t=new Hn["a"](e);this.didJustPressContextMenuKey=58===t.keyCode||t.shiftKey&&68===t.keyCode;if(t.target&&t.target.tagName&&"input"===t.target.tagName.toLowerCase())return;if(this.didJustPressContextMenuKey){t.preventDefault();t.stopPropagation()}this.context.controller.onKeyDown(this.context.tree,t)};t.prototype.onKeyUp=function(e){this.didJustPressContextMenuKey&&this.onContextMenu(e);this.didJustPressContextMenuKey=!1;this.context.controller.onKeyUp(this.context.tree,new Hn["a"](e))};t.prototype.onDragStart=function(e,n){if(this.model.getHighlight())return;var r=e.model.getElement();var i=this.model.getSelection();var o;o=i.indexOf(r)>-1?i:[r];n.dataTransfer.effectAllowed="copyMove";n.dataTransfer.setData(Tg,JSON.stringify([e.uri]));if(n.dataTransfer.setDragImage){var a=void 0;a=this.context.dnd.getDragLabel?this.context.dnd.getDragLabel(this.context.tree,o):String(o.length);var s=document.createElement("div");s.className="monaco-tree-drag-image";s.textContent=a;document.body.appendChild(s);n.dataTransfer.setDragImage(s,-10,-10);setTimeout(function(){return document.body.removeChild(s)},0)}this.currentDragAndDropData=new Ig(o);t.currentExternalDragAndDropData=new xg(o);this.context.dnd.onDragStart(this.context.tree,this.currentDragAndDropData,new Ji["a"](n))};t.prototype.setupDragAndDropScrollInterval=function(){var e=this;var t=K["v"](this.wrapper).top;if(!this.dragAndDropScrollInterval){this.dragAndDropScrollInterval=window.setInterval(function(){if(void 0===e.dragAndDropMouseY)return;var n=e.dragAndDropMouseY-t;var r=0;var i=e.viewHeight-35;n<35?r=Math.max(-14,.2*(n-35)):n>i&&(r=Math.min(14,.2*(n-i)));e.scrollTop+=r},10);this.cancelDragAndDropScrollTimeout();this.dragAndDropScrollTimeout=window.setTimeout(function(){e.cancelDragAndDropScrollInterval();e.dragAndDropScrollTimeout=null},1e3)}};t.prototype.cancelDragAndDropScrollInterval=function(){if(this.dragAndDropScrollInterval){window.clearInterval(this.dragAndDropScrollInterval);this.dragAndDropScrollInterval=null}this.cancelDragAndDropScrollTimeout()};t.prototype.cancelDragAndDropScrollTimeout=function(){if(this.dragAndDropScrollTimeout){window.clearTimeout(this.dragAndDropScrollTimeout);this.dragAndDropScrollTimeout=null}};t.prototype.onDragOver=function(e){var n=this;var r=new Ji["a"](e);var i=this.getItemAround(r.target);if(!i||0===r.posx&&0===r.posy&&r.browserEvent.type===K["c"].DRAG_LEAVE){if(this.currentDropTarget){this.currentDropTargets.forEach(function(e){return e.dropTarget=!1});this.currentDropTargets=[];this.currentDropDisposable.dispose()}this.cancelDragAndDropScrollInterval();this.currentDropTarget=null;this.currentDropElement=null;this.dragAndDropMouseY=null;return!1}this.setupDragAndDropScrollInterval();this.dragAndDropMouseY=r.posy;if(!this.currentDragAndDropData)if(t.currentExternalDragAndDropData)this.currentDragAndDropData=t.currentExternalDragAndDropData;else{if(!r.dataTransfer.types)return!1;this.currentDragAndDropData=new Ng}this.currentDragAndDropData.update(r);var a;var s=i.model;var u;do{a=s?s.getElement():this.model.getInput();if(!(u=this.context.dnd.onDragOver(this.context.tree,this.currentDragAndDropData,a,r))||1!==u.bubble)break;s=s&&s.parent}while(s);if(!s){this.currentDropElement=null;return!1}var l=u&&u.accept;if(l){this.currentDropElement=s.getElement();r.preventDefault();r.dataTransfer.dropEffect=0===u.effect?"copy":"move"}else this.currentDropElement=null;var c=s.id===this.inputItem.id?this.inputItem:this.items[s.id];if(this.shouldInvalidateDropReaction||this.currentDropTarget!==c||!Bg(this.currentDropElementReaction,u)){this.shouldInvalidateDropReaction=!1;if(this.currentDropTarget){this.currentDropTargets.forEach(function(e){return e.dropTarget=!1});this.currentDropTargets=[];this.currentDropDisposable.dispose()}this.currentDropTarget=c;this.currentDropElementReaction=u;if(l){if(this.currentDropTarget){this.currentDropTarget.dropTarget=!0;this.currentDropTargets.push(this.currentDropTarget)}if(0===u.bubble){var d=s.getNavigator();var h;for(;h=d.next();)if(i=this.items[h.id]){i.dropTarget=!0;this.currentDropTargets.push(i)}}if(u.autoExpand){var f=Object(o["h"])(500);this.currentDropDisposable=me["e"](function(){return f.cancel()});f.then(function(){return n.context.tree.expand(n.currentDropElement)}).then(function(){return n.shouldInvalidateDropReaction=!0})}}}return!0};t.prototype.onDrop=function(e){if(this.currentDropElement){var t=new Ji["a"](e);t.preventDefault();this.currentDragAndDropData.update(t);this.context.dnd.drop(this.context.tree,this.currentDragAndDropData,this.currentDropElement,t);this.onDragEnd(e)}this.cancelDragAndDropScrollInterval()};t.prototype.onDragEnd=function(e){if(this.currentDropTarget){this.currentDropTargets.forEach(function(e){return e.dropTarget=!1});this.currentDropTargets=[]}this.currentDropDisposable.dispose();this.cancelDragAndDropScrollInterval();this.currentDragAndDropData=null;t.currentExternalDragAndDropData=null;this.currentDropElement=null;this.currentDropTarget=null;this.dragAndDropMouseY=null};t.prototype.onFocus=function(){this.context.options.alwaysFocused||K["e"](this.domNode,"focused");this._onDOMFocus.fire()};t.prototype.onBlur=function(){this.context.options.alwaysFocused||K["E"](this.domNode,"focused");this.domNode.removeAttribute("aria-activedescendant");this._onDOMBlur.fire()};t.prototype.onMsPointerDown=function(e){if(!this.msGesture)return;var t=e.pointerType;if(t===(e.MSPOINTER_TYPE_MOUSE||"mouse")){this.lastPointerType="mouse";return}if(t!==(e.MSPOINTER_TYPE_TOUCH||"touch"))return;this.lastPointerType="touch";e.stopPropagation();e.preventDefault();this.msGesture.addPointer(e.pointerId)};t.prototype.onThrottledMsGestureChange=function(e){this.scrollTop-=e.translationY};t.prototype.onMsGestureTap=function(e){e.initialTarget=document.elementFromPoint(e.clientX,e.clientY);this.onTap(e)};t.prototype.insertItemInDOM=function(e){var t=null;var n=this.itemAfter(e);n&&n.element&&(t=n.element);e.insertInDOM(this.rowsContainer,t)};t.prototype.removeItemFromDOM=function(e){if(!e)return;e.removeFromDOM()};t.prototype.shouldBeRendered=function(e){return e.top<this.lastRenderTop+this.lastRenderHeight&&e.top+e.height>this.lastRenderTop};t.prototype.getItemAround=function(e){var n=this.inputItem;do{e[t.BINDING]&&(n=e[t.BINDING]);if(e===this.wrapper||e===this.domNode)return n;if(e===this.scrollableElement.getDomNode()||e===document.body)return null}while(e=e.parentElement);return};t.prototype.releaseModel=function(){if(this.model){this.modelListeners=me["d"](this.modelListeners);this.model=null}};t.prototype.dispose=function(){var t=this;this.scrollableElement.dispose();this.releaseModel();this.modelListeners=null;this.viewListeners=me["d"](this.viewListeners);this._onDOMFocus.dispose();this._onDOMBlur.dispose();this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode);this.domNode=null;if(this.items){Object.keys(this.items).forEach(function(e){return t.items[e].removeFromDOM()});this.items=null}if(this.context.cache){this.context.cache.dispose();this.context.cache=null}e.prototype.dispose.call(this)};t.BINDING="monaco-tree-row";t.LOADING_DECORATION_DELAY=800;t.counter=0;t.currentExternalDragAndDropData=null;return t}(Mg);var Ug=function(){function e(e,t,n){void 0===n&&(n={});this.tree=e;this.configuration=t;this.options=n;if(!t.dataSource)throw new Error("You must provide a Data Source to the tree.");this.dataSource=t.dataSource;this.renderer=t.renderer;this.controller=t.controller||new dg({clickBehavior:1,keyboardSupport:"boolean"!=typeof n.keyboardSupport||n.keyboardSupport});this.dnd=t.dnd||new hg;this.filter=t.filter||new fg;this.sorter=t.sorter||null;this.accessibilityProvider=t.accessibilityProvider||new pg;this.styler=t.styler||null}return e}();var Zg={listFocusBackground:ua["a"].fromHex("#073655"),listActiveSelectionBackground:ua["a"].fromHex("#0E639C"),listActiveSelectionForeground:ua["a"].fromHex("#FFFFFF"),listFocusAndSelectionBackground:ua["a"].fromHex("#094771"),listFocusAndSelectionForeground:ua["a"].fromHex("#FFFFFF"),listInactiveSelectionBackground:ua["a"].fromHex("#3F3F46"),listHoverBackground:ua["a"].fromHex("#2A2D2E"),listDropBackground:ua["a"].fromHex("#383B3D")};var Gg=function(){function e(e,t,n){void 0===n&&(n={});this._onDidChangeFocus=new c["d"];this.onDidChangeFocus=this._onDidChangeFocus.event;this._onDidChangeSelection=new c["d"];this.onDidChangeSelection=this._onDidChangeSelection.event;this._onHighlightChange=new c["d"];this._onDidExpandItem=new c["d"];this._onDidCollapseItem=new c["d"];this._onDispose=new c["a"];this.onDidDispose=this._onDispose.event;this.container=e;Object(_e["e"])(n,Zg,!1);n.twistiePixels="number"==typeof n.twistiePixels?n.twistiePixels:32;n.showTwistie=!1!==n.showTwistie;n.indentPixels="number"==typeof n.indentPixels?n.indentPixels:12;n.alwaysFocused=!0===n.alwaysFocused;n.useShadows=!1!==n.useShadows;n.paddingOnRow=!1!==n.paddingOnRow;n.showLoading=!1!==n.showLoading;this.context=new Ug(this,t,n);this.model=new Lg(this.context);this.view=new Hg(this.context,this.container);this.view.setModel(this.model);this._onDidChangeFocus.input=this.model.onDidFocus;this._onDidChangeSelection.input=this.model.onDidSelect;this._onHighlightChange.input=this.model.onDidHighlight;this._onDidExpandItem.input=this.model.onDidExpandItem;this._onDidCollapseItem.input=this.model.onDidCollapseItem}e.prototype.style=function(e){this.view.applyStyles(e)};Object.defineProperty(e.prototype,"onDidFocus",{get:function(){return this.view&&this.view.onDOMFocus},enumerable:!0,configurable:!0});e.prototype.getHTMLElement=function(){return this.view.getHTMLElement()};e.prototype.layout=function(e,t){this.view.layout(e,t)};e.prototype.domFocus=function(){this.view.focus()};e.prototype.isDOMFocused=function(){return this.view.isFocused()};e.prototype.domBlur=function(){this.view.blur()};e.prototype.setInput=function(e){return this.model.setInput(e)};e.prototype.getInput=function(){return this.model.getInput()};e.prototype.refresh=function(e,t){void 0===e&&(e=null);void 0===t&&(t=!0);return this.model.refresh(e,t)};e.prototype.expand=function(e){return this.model.expand(e)};e.prototype.collapse=function(e,t){void 0===t&&(t=!1);return this.model.collapse(e,t)};e.prototype.toggleExpansion=function(e,t){void 0===t&&(t=!1);return this.model.toggleExpansion(e,t)};e.prototype.isExpanded=function(e){return this.model.isExpanded(e)};e.prototype.reveal=function(e,t){void 0===t&&(t=null);return this.model.reveal(e,t)};e.prototype.getHighlight=function(){return this.model.getHighlight()};e.prototype.clearHighlight=function(e){this.model.setHighlight(null,e)};e.prototype.setSelection=function(e,t){this.model.setSelection(e,t)};e.prototype.getSelection=function(){return this.model.getSelection()};e.prototype.clearSelection=function(e){this.model.setSelection([],e)};e.prototype.setFocus=function(e,t){this.model.setFocus(e,t)};e.prototype.getFocus=function(){return this.model.getFocus()};e.prototype.focusNext=function(e,t){this.model.focusNext(e,t)};e.prototype.focusPrevious=function(e,t){this.model.focusPrevious(e,t)};e.prototype.focusParent=function(e){this.model.focusParent(e)};e.prototype.focusFirstChild=function(e){this.model.focusFirstChild(e)};e.prototype.focusFirst=function(e,t){this.model.focusFirst(e,t)};e.prototype.focusNth=function(e,t){this.model.focusNth(e,t)};e.prototype.focusLast=function(e,t){this.model.focusLast(e,t)};e.prototype.focusNextPage=function(e){this.view.focusNextPage(e)};e.prototype.focusPreviousPage=function(e){this.view.focusPreviousPage(e)};e.prototype.clearFocus=function(e){this.model.setFocus(null,e)};e.prototype.dispose=function(){this._onDispose.fire();if(null!==this.model){this.model.dispose();this.model=null}if(null!==this.view){this.view.dispose();this.view=null}this._onDidChangeFocus.dispose();this._onDidChangeSelection.dispose();this._onHighlightChange.dispose();this._onDidExpandItem.dispose();this._onDidCollapseItem.dispose();this._onDispose.dispose()};return e}();var Yg=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Kg=function(){return(Kg=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)};var Qg=function(e,t,n,r){var i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};var qg=function(e,t){return function(n,r){t(n,r,e)}};var Jg;var Xg=Object(ce["c"])("listService");var $g=function(){function e(e){this.lists=[];this._lastFocusedWidget=void 0}Object.defineProperty(e.prototype,"lastFocusedList",{get:function(){return this._lastFocusedWidget},enumerable:!0,configurable:!0});e.prototype.register=function(e,t){var n=this;if(this.lists.some(function(t){return t.widget===e}))throw new Error("Cannot register the same widget multiple times");var r={widget:e,extraContextKeys:t};this.lists.push(r);e.getHTMLElement()===document.activeElement&&(this._lastFocusedWidget=e);var i;return Object(me["c"])([e.onDidFocus(function(){return n._lastFocusedWidget=e}),Object(me["e"])(function(){return n.lists.splice(n.lists.indexOf(r),1)}),e.onDidDispose(function(){n.lists=n.lists.filter(function(e){return e!==r});n._lastFocusedWidget===e&&(n._lastFocusedWidget=void 0)})])};return e=Qg([qg(0,Mr["e"])],e)}();var ev=new Mr["f"]("listFocus",!0);var tv=new Mr["f"]("listSupportsMultiselect",!0);var nv=new Mr["f"]("listHasSelectionOrFocus",!1);var rv=new Mr["f"]("listDoubleSelection",!1);var iv=new Mr["f"]("listMultiSelection",!1);function ov(e,t){var n=e.createScoped(t.getHTMLElement());ev.bindTo(n);return n}var av="workbench.list.multiSelectModifier";var sv="workbench.list.openMode";var uv="workbench.tree.horizontalScrolling";function lv(e){return"alt"===e.getValue(av)}function cv(e){return"doubleClick"!==e.getValue(sv)}var dv;function hv(){dv||(dv=Object(K["n"])());return dv}function fv(e,t){e.controller||(e.controller=t.createInstance(vv,{}));e.styler||(e.styler=new gg(hv()));return e}var pv=function(e){Yg(t,e);function t(t,n,r,i,o,a,s,u){var l=this;var c=fv(n,s);var d=u.getValue(uv)?1:2;var h=Kg({horizontalScrollMode:d,keyboardSupport:!1},Np(a.getTheme(),Ep),r);(l=e.call(this,t,c,h)||this).disposables=[];l.contextKeyService=ov(i,l);tv.bindTo(l.contextKeyService);l.listHasSelectionOrFocus=nv.bindTo(l.contextKeyService);l.listDoubleSelection=rv.bindTo(l.contextKeyService);l.listMultiSelection=iv.bindTo(l.contextKeyService);l._openOnSingleClick=cv(u);l._useAltAsMultipleSelectionModifier=lv(u);l.disposables.push(l.contextKeyService,o.register(l),Op(l,a));l.disposables.push(l.onDidChangeSelection(function(){var e=l.getSelection();var t=l.getFocus();l.listHasSelectionOrFocus.set(e&&e.length>0||!!t);l.listDoubleSelection.set(e&&2===e.length);l.listMultiSelection.set(e&&e.length>1)}));l.disposables.push(l.onDidChangeFocus(function(){var e=l.getSelection();var t=l.getFocus();l.listHasSelectionOrFocus.set(e&&e.length>0||!!t)}));l.disposables.push(u.onDidChangeConfiguration(function(e){e.affectsConfiguration(sv)&&(l._openOnSingleClick=cv(u));e.affectsConfiguration(av)&&(l._useAltAsMultipleSelectionModifier=lv(u))}));return l}t.prototype.dispose=function(){e.prototype.dispose.call(this);this.disposables=Object(me["d"])(this.disposables)};return t=Qg([qg(3,Mr["e"]),qg(4,Xg),qg(5,So["c"]),qg(6,ce["a"]),qg(7,Tr)],t)}(Gg);function gv(e){"boolean"!=typeof e.keyboardSupport&&(e.keyboardSupport=!1);"number"!=typeof e.clickBehavior&&(e.clickBehavior=0);return e}var vv=function(e){Yg(t,e);function t(t,n){var r=e.call(this,gv(t))||this;r.configurationService=n;r.disposables=[];if(Object(Kn["j"])(t.openMode)){r.setOpenMode(r.getOpenModeSetting());r.registerListeners()}return r}t.prototype.registerListeners=function(){var e=this;this.disposables.push(this.configurationService.onDidChangeConfiguration(function(t){t.affectsConfiguration(sv)&&e.setOpenMode(e.getOpenModeSetting())}))};t.prototype.getOpenModeSetting=function(){return cv(this.configurationService)?0:1};t.prototype.dispose=function(){this.disposables=Object(me["d"])(this.disposables)};return t=Qg([qg(1,Tr)],t)}(dg);var mv;Yn["a"].as($n.Configuration).registerConfiguration({id:"workbench",order:7,title:Object(Bn["a"])("workbenchConfigurationTitle","Workbench"),type:"object",properties:(Jg={},Jg[av]={type:"string",enum:["ctrlCmd","alt"],enumDescriptions:[Object(Bn["a"])("multiSelectModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),Object(Bn["a"])("multiSelectModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],default:"ctrlCmd",description:Object(Bn["a"])({key:"multiSelectModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add an item in trees and lists to a multi-selection with the mouse (for example in the explorer, open editors and scm view). The 'Open to Side' mouse gestures - if supported - will adapt such that they do not conflict with the multiselect modifier.")},Jg[sv]={type:"string",enum:["singleClick","doubleClick"],default:"singleClick",description:Object(Bn["a"])({key:"openModeModifier",comment:["`singleClick` and `doubleClick` refers to a value the setting can take and should not be localized."]},"Controls how to open items in trees and lists using the mouse (if supported). For parents with children in trees, this setting will control if a single click expands the parent or a double click. Note that some trees and lists might choose to ignore this setting if it is not applicable. ")},Jg[uv]={type:"boolean",default:!1,description:Object(Bn["a"])("horizontalScrolling setting","Controls whether trees support horizontal scrolling in the workbench.")},Jg)});var _v;!function(e){function t(e,t,n){if(e[t])return e[t][n];return}e.get=t;function n(e,t,n,r){e[t]||(e[t]=Object.create(null));e[t][n]=r}e.set=n;function r(e,t,n){if(e[t]&&e[t][n]){delete e[t][n];Object(Kn["d"])(e[t])&&delete e[t];return!0}return!1}e.remove=r}(_v||(_v={}));var yv=function(){function e(e){this.errors=0;this.infos=0;this.warnings=0;this.unknowns=0;this._data=Object.create(null);this._service=e;this._subscription=e.onMarkerChanged(this._update,this)}e.prototype.dispose=function(){this._subscription.dispose();this._data=void 0};e.prototype._update=function(e){if(!this._data)return;for(var t=0,n=e;t<n.length;t++){var r=n[t];var i=r.toString();var o=this._data[i];o&&this._substract(o);var a=this._resourceStats(r);this._add(a);this._data[i]=a}};e.prototype._resourceStats=function(e){var t={errors:0,warnings:0,infos:0,unknowns:0};if(e.scheme===J.inMemory||e.scheme===J.walkThrough||e.scheme===J.walkThroughSnippet)return t;for(var n=0,r=this._service.read({resource:e});n<r.length;n++){var i=r[n].severity;i===rf.Error?t.errors+=1:i===rf.Warning?t.warnings+=1:i===rf.Info?t.infos+=1:t.unknowns+=1}return t};e.prototype._substract=function(e){this.errors-=e.errors;this.warnings-=e.warnings;this.infos-=e.infos;this.unknowns-=e.unknowns};e.prototype._add=function(e){this.errors+=e.errors;this.warnings+=e.warnings;this.infos+=e.infos;this.unknowns+=e.unknowns};return e}();var bv=function(){function e(){this._onMarkerChanged=new c["a"];this._onMarkerChangedEvent=Object(c["e"])(this._onMarkerChanged.event,e._debouncer,0);this._byResource=Object.create(null);this._byOwner=Object.create(null);this._stats=new yv(this)}e.prototype.dispose=function(){this._stats.dispose()};Object.defineProperty(e.prototype,"onMarkerChanged",{get:function(){return this._onMarkerChangedEvent},enumerable:!0,configurable:!0});e.prototype.remove=function(e,t){if(!Object(at["f"])(t))for(var n=0,r=t;n<r.length;n++){var i=r[n];this.changeOne(e,i,[])}};e.prototype.changeOne=function(t,n,r){if(Object(at["f"])(r)){var i=_v.remove(this._byResource,n.toString(),t);var o=_v.remove(this._byOwner,t,n.toString());if(i!==o)throw new Error("invalid marker service state");i&&o&&this._onMarkerChanged.fire([n])}else{var a=[];for(var s=0,u=r;s<u.length;s++){var l=u[s];var c=e._toMarker(t,n,l);c&&a.push(c)}_v.set(this._byResource,n.toString(),t,a);_v.set(this._byOwner,t,n.toString(),a);this._onMarkerChanged.fire([n])}};e._toMarker=function(e,t,n){var r=n.code,i=n.severity,o=n.message,a=n.source,s=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,c=n.endColumn,d=n.relatedInformation,h=n.tags;if(!o)return;s=s>0?s:1;u=u>0?u:1;l=l>=s?l:s;c=c>0?c:u;return{resource:t,owner:e,code:r||void 0,severity:i,message:o,source:a,startLineNumber:s,startColumn:u,endLineNumber:l,endColumn:c,relatedInformation:d,tags:h}};e.prototype.read=function(t){void 0===t&&(t=Object.create(null));var n=t.owner,r=t.resource,i=t.severities,o=t.take;(!o||o<0)&&(o=-1);if(n&&r){var a;if(a=_v.get(this._byResource,r.toString(),n)){var s=[];for(var u=0,l=a;u<l.length;u++){var c=l[u];if(e._accept(c,i)){var d=s.push(c);if(o>0&&d===o)break}}return s}return[]}if(n||r){var h=n?this._byOwner[n]:r?this._byResource[r.toString()]:void 0;if(!h)return[];var s=[];for(var f in h)for(var p=0,g=h[f];p<g.length;p++){var a=g[p];if(e._accept(a,i)){var d=s.push(a);if(o>0&&d===o)return s}}return s}var s=[];for(var v in this._byResource)for(var m in this._byResource[v])for(var _=0,y=this._byResource[v][m];_<y.length;_++){var a=y[_];if(e._accept(a,i)){var d=s.push(a);if(o>0&&d===o)return s}}return s};e._accept=function(e,t){return void 0===t||(t&e.severity)===e.severity};e._debouncer=function(t,n){if(!t){e._dedupeMap=Object.create(null);t=[]}for(var r=0,i=n;r<i.length;r++){var o=i[r];if(void 0===e._dedupeMap[o.toString()]){e._dedupeMap[o.toString()]=!0;t.push(o)}}return t};return e}();var Cv=Object(ce["c"])("progressService");var wv=n("4M3c");var Sv=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Lv;!function(e){var t=new wd;var n=function(){function e(e,t){this._serviceId=e;this._factory=t;this._value=null}Object.defineProperty(e.prototype,"id",{get:function(){return this._serviceId},enumerable:!0,configurable:!0});e.prototype.get=function(e){if(!this._value){e&&(this._value=e[this._serviceId.toString()]);this._value||(this._value=this._factory(e));if(!this._value)throw new Error("Service "+this._serviceId+" is missing!");t.set(this._serviceId,this._value)}return this._value};return e}();e.LazyStaticService=n;var r=[];function i(e,t){var i=new n(e,t);r.push(i);return i}function o(e){var t=new wd;for(var n in e)e.hasOwnProperty(n)&&t.set(Object(ce["c"])(n),e[n]);r.forEach(function(n){return t.set(n.id,n.get(e))});var i=new ag(t,!0);t.set(ce["a"],i);return[t,i]}e.init=o;e.instantiationService=i(ce["a"],function(){return new ag(t,!0)});var a=new Ii;e.configurationService=i(Tr,function(){return a});e.resourceConfigurationService=i(Gt,function(){return new xi(a)});e.resourcePropertiesService=i(Yt,function(){return new Ni(a)});e.contextService=i(ui,function(){return new ki});e.labelService=i(lg,function(){return new Ti});e.telemetryService=i(de["a"],function(){return new Di});e.dialogService=i(Xp,function(){return new bi});e.notificationService=i(ai,function(){return new Ci});e.markerService=i(af,function(){return new bv});e.modeService=i(Eh,function(e){return new tf});e.modelService=i(Zt["a"],function(t){return new pf(e.markerService.get(t),e.configurationService.get(t),e.resourcePropertiesService.get(t))});e.editorWorkerService=i(Ue,function(t){return new en(e.modelService.get(t),e.resourceConfigurationService.get(t))});e.standaloneThemeService=i(yh,function(){return new tp});e.codeEditorService=i(Y["a"],function(t){return new Nf(e.standaloneThemeService.get(t))});e.progressService=i(Cv,function(){return new yi});e.storageService=i(wv["a"],function(){return wv["b"]});e.logService=i(Gp,function(){return new Yp})}(Lv||(Lv={}));var Iv=function(e){Sv(t,e);function t(t,n){var r=e.call(this)||this;var i=Lv.init(n),o=i[0],a=i[1];r._serviceCollection=o;r._instantiationService=a;var s=r.get(Tr);var u=r.get(ai);var l=r.get(de["a"]);var c=r.get(So["c"]);var d=function(e,t){var i=null;n&&(i=n[e.toString()]);i||(i=t());r._serviceCollection.set(e,i);return i};var h=d(Mr["e"],function(){return r._register(new hp(s))});d(Xg,function(){return new $g(h)});var f=d(le["b"],function(){return new wi(r._instantiationService)});var p=d(Ch["a"],function(){return r._register(new Si(h,f,l,u,t))});var g=d(bh["b"],function(){return r._register(new Jp(t,l,new Yp))});d(bh["a"],function(){return r._register(new zp(t,l,u,g,p,c))});d(Dr["a"],function(){return new Mi(f)});d(Oh,function(){return new Ei(Lv.modelService.get(Zt["a"]))});return r}t.prototype.get=function(e){var t=this._serviceCollection.get(e);if(!t)throw new Error("Missing service "+e);return t};t.prototype.set=function(e,t){this._serviceCollection.set(e,t)};t.prototype.has=function(e){return this._serviceCollection.has(e)};return t}(me["a"]);var xv=Object(ce["c"])("openerService");var Nv=Object.freeze({_serviceBrand:void 0,open:function(){return Promise.resolve(void 0)}});function Mv(e,t,n){var r=new Iv(e,t);var i=null;if(!r.has(Ze["a"])){i=new _i;r.set(Ze["a"],i)}r.has(xv)||r.set(xv,new ge(r.get(Y["a"]),r.get(le["b"])));var o=n(r);i&&i.setEditor(o);return o}function Dv(e,t,n){return Mv(e,n||{},function(n){return new Dh(e,t,n,n.get(ce["a"]),n.get(Y["a"]),n.get(le["b"]),n.get(Mr["e"]),n.get(Ch["a"]),n.get(bh["b"]),n.get(yh),n.get(ai),n.get(Tr))})}function kv(e){return Lv.codeEditorService.get().onCodeEditorAdd(function(t){e(t)})}function Ov(e,t,n){return Mv(e,n,function(n){return new kh(e,t,n,n.get(ce["a"]),n.get(Mr["e"]),n.get(Ch["a"]),n.get(bh["b"]),n.get(Ue),n.get(Y["a"]),n.get(yh),n.get(ai),n.get(Tr))})}function Ev(e,t){return new be(e,t)}function Tv(e,t,n){return Lv.modelService.get().createModel(e,t,n)}function Av(e,t,n){e=e||"";if(!t){var r=n?n.path:null;var i=e.indexOf("\n");var o=e;-1!==i&&(o=e.substring(0,i));return Tv(e,Lv.modeService.get().createByFilepathOrFirstLine(r,o),n)}return Tv(e,Lv.modeService.get().create(t),n)}function Rv(e,t){Lv.modelService.get().setMode(e,Lv.modeService.get().create(t))}function Pv(e,t,n){e&&Lv.markerService.get().changeOne(t,e.uri,n)}function jv(e){return Lv.markerService.get().read(e)}function Wv(e){return Lv.modelService.get().getModel(e)}function Fv(){return Lv.modelService.get().getModels()}function zv(e){return Lv.modelService.get().onModelAdded(e)}function Vv(e){return Lv.modelService.get().onModelRemoved(e)}function Bv(e){return Lv.modelService.get().onModelModeChanged(function(t){e({model:t.model,oldLanguage:t.oldModeId})})}function Hv(e){return un(Lv.modelService.get(),e)}function Uv(e,t){return Wn.colorizeElement(Lv.standaloneThemeService.get(),Lv.modeService.get(),e,t)}function Zv(e,t,n){return Wn.colorize(Lv.modeService.get(),e,t,n)}function Gv(e,t,n){void 0===n&&(n=4);return Wn.colorizeModelLine(e,t,n)}function Yv(e){var t=Ve["u"].get(e);if(t)return t;return{getInitialState:function(){return Be["c"]},tokenize:function(t,n,r){return Object(Be["d"])(e,t,n,r)},tokenize2:void 0}}function Kv(e,t){var n;Lv.modeService.get().triggerMode(t);var r=Yv(t);var i=e.split(/\r\n|\r|\n/);var o=[];var a=r.getInitialState();for(var s=0,u=i.length;s<u;s++){var l=i[s];var c=r.tokenize(l,a,0);o[s]=c.tokens;a=c.endState}return o}function Qv(e,t){Lv.standaloneThemeService.get().defineTheme(e,t)}function qv(e){Lv.standaloneThemeService.get().setTheme(e)}function Jv(){return{create:Dv,onDidCreateEditor:kv,createDiffEditor:Ov,createDiffNavigator:Ev,createModel:Av,setModelLanguage:Rv,setModelMarkers:Pv,getModelMarkers:jv,getModels:Fv,getModel:Wv,onDidCreateModel:zv,onWillDisposeModel:Vv,onDidChangeModelLanguage:Bv,createWebWorker:Hv,colorizeElement:Uv,colorize:Zv,colorizeModelLine:Gv,tokenize:Kv,defineTheme:Qv,setTheme:qv,ScrollbarVisibility:C,WrappingIndent:k,OverviewRulerLane:w,EndOfLinePreference:S,DefaultEndOfLine:L,EndOfLineSequence:I,TrackedRangeStickiness:x,CursorChangeReason:M,MouseTargetType:P,TextEditorCursorStyle:E,TextEditorCursorBlinkingStyle:O,ContentWidgetPositionPreference:A,OverlayWidgetPositionPreference:R,RenderMinimap:D,ScrollType:N,RenderLineNumbersType:T,InternalEditorOptions:u["e"],BareFontInfo:Re,FontInfo:Pe,TextModelResolvedOptions:ze["d"],FindMatch:ze["b"],EditorType:We}}function Xv(e){return Array.isArray(e)}function $v(e){return!Xv(e)}function em(e){return"string"==typeof e}function tm(e){return!em(e)}function nm(e){return!e}function rm(e,t){return e.ignoreCase&&t?t.toLowerCase():t}function im(e){return e.replace(/[&<>'"_]/g,"-")}function om(e,t){console.log(e.languageId+": "+t)}function am(e,t){return new Error(e.languageId+": "+t)}function sm(e,t,n,r,i){var o=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;var a=null;return t.replace(o,function(t,o,s,u,l,c,d,h,f){if(!nm(s))return"$";if(!nm(u))return rm(e,n);if(!nm(l)&&l<r.length)return rm(e,r[l]);if(!nm(d)&&e&&"string"==typeof e[d])return e[d];null===a&&(a=i.split(".")).unshift(i);if(!nm(c)&&c<a.length)return rm(e,a[c]);return""})}function um(e,t){var n=t;for(;n&&n.length>0;){var r=e.tokenizer[n];if(r)return r;var i=n.lastIndexOf(".");n=i<0?null:n.substr(0,i)}return null}function lm(e,t){var n=t;for(;n&&n.length>0;){var r;if(e.stateNames[n])return!0;var i=n.lastIndexOf(".");n=i<0?null:n.substr(0,i)}return!1}function cm(e,t){if(!t)return!1;if(!Array.isArray(t))return!1;for(var n in t)if(t.hasOwnProperty(n)&&!e(t[n]))return!1;return!0}function dm(e,t){if("boolean"==typeof e)return e;return t}function hm(e,t){if("string"==typeof e)return e;return t}function fm(e,t){var n=0;for(;t.indexOf("@")>=0&&n<5;){n++;t=t.replace(/@(\w+)/g,function(n,r){var i="";if("string"==typeof e[r])i=e[r];else{if(!(e[r]&&e[r]instanceof RegExp))throw void 0===e[r]?am(e,"language definition does not contain attribute '"+r+"', used at: "+t):am(e,"attribute reference '"+r+"' must be a string, used at: "+t);i=e[r].source}return nm(i)?"":"(?:"+i+")"})}return new RegExp(t,e.ignoreCase?"i":"")}function pm(e,t,n,r){if(r<0)return e;if(r<t.length)return t[r];if(r>=100){r-=100;var i=n.split(".");i.unshift(n);if(r<i.length)return i[r]}return null}function gm(e,t,n,r){var i=-1;var o=n;var a=n.match(/^\$(([sS]?)(\d\d?)|#)(.*)$/);if(a){if(a[3]){i=parseInt(a[3]);a[2]&&(i+=100)}o=a[4]}var s="~";var u=o;if(o&&0!==o.length){if(/^\w*$/.test(u))s="==";else if(a=o.match(/^(@|!@|~|!~|==|!=)(.*)$/)){s=a[1];u=a[2]}}else{s="!=";u=""}var l;if("~"!==s&&"!~"!==s||!/^(\w|\|)*$/.test(u))if("@"===s||"!@"===s){var c=e[u];if(!c)throw am(e,"the @ match target '"+u+"' is not defined, in rule: "+t);if(!cm(function(e){return"string"==typeof e},c))throw am(e,"the @ match target '"+u+"' must be an array of strings, in rule: "+t);var d=_e["a"](c,e.ignoreCase);l=function(e){return"@"===s?d(e):!d(e)}}else if("~"===s||"!~"===s)if(u.indexOf("$")<0){var h=fm(e,"^"+u+"$");l=function(e){return"~"===s?h.test(e):!h.test(e)}}else l=function(t,n,r,i){var o;return fm(e,"^"+sm(e,u,n,r,i)+"$").test(t)};else if(u.indexOf("$")<0){var f=rm(e,u);l=function(e){return"=="===s?e===f:e!==f}}else{var p=rm(e,u);l=function(t,n,r,i,o){var a=sm(e,p,n,r,i);return"=="===s?t===a:t!==a}}else{var g=_e["a"](u.split("|"),e.ignoreCase);l=function(e){return"~"===s?g(e):!g(e)}}return-1===i?{name:n,value:r,test:function(e,t,n,r){return l(e,e,t,n,r)}}:{name:n,value:r,test:function(e,t,n,r){var o=pm(e,t,n,i);return l(o||"",e,t,n,r)}}}function vm(e,t,n){if(n){if("string"==typeof n)return n;if(n.token||""===n.token){if("string"!=typeof n.token)throw am(e,"a 'token' attribute must be of type string, in rule: "+t);var r={token:n.token};n.token.indexOf("$")>=0&&(r.tokenSubst=!0);if("string"==typeof n.bracket)if("@open"===n.bracket)r.bracket=1;else{if("@close"!==n.bracket)throw am(e,"a 'bracket' attribute must be either '@open' or '@close', in rule: "+t);r.bracket=-1}if(n.next){if("string"!=typeof n.next)throw am(e,"the next state must be a string value in rule: "+t);var i=n.next;if(!/^(@pop|@push|@popall)$/.test(i)){"@"===i[0]&&(i=i.substr(1));if(i.indexOf("$")<0&&!lm(e,sm(e,i,"",[],"")))throw am(e,"the next state '"+n.next+"' is not defined in rule: "+t)}r.next=i}"number"==typeof n.goBack&&(r.goBack=n.goBack);"string"==typeof n.switchTo&&(r.switchTo=n.switchTo);"string"==typeof n.log&&(r.log=n.log);if("string"==typeof n.nextEmbedded){r.nextEmbedded=n.nextEmbedded;e.usesEmbedded=!0}return r}if(Array.isArray(n)){var o=[];for(var a in n)n.hasOwnProperty(a)&&(o[a]=vm(e,t,n[a]));return{group:o}}if(n.cases){var s=[];for(var u in n.cases)if(n.cases.hasOwnProperty(u)){var l=vm(e,t,n.cases[u]);"@default"===u||"@"===u||""===u?s.push({test:void 0,value:l,name:u}):"@eos"===u?s.push({test:function(e,t,n,r){return r},value:l,name:u}):s.push(gm(e,t,u,l))}var c=e.defaultToken;return{test:function(e,t,n,r){for(var i in s)if(s.hasOwnProperty(i)){var o=s[i];var a;if(!o.test||o.test(e,t,n,r))return o.value}return c}}}throw am(e,"an action must be a string, an object with a 'token' or 'cases' attribute, or an array of actions; in rule: "+t)}return{token:""}}var mm=function(){function e(e){this.regex=new RegExp("");this.action={token:""};this.matchOnlyAtLineStart=!1;this.name="";this.name=e}e.prototype.setRegex=function(e,t){var n;if("string"==typeof t)n=t;else{if(!(t instanceof RegExp))throw am(e,"rules must start with a match string or regular expression: "+this.name);n=t.source}this.matchOnlyAtLineStart=n.length>0&&"^"===n[0];this.name=this.name+": "+n;this.regex=fm(e,"^(?:"+(this.matchOnlyAtLineStart?n.substr(1):n)+")")};e.prototype.setAction=function(e,t){this.action=vm(e,this.name,t)};return e}();function _m(e,t){if(!t||"object"!=typeof t)throw new Error("Monarch: expecting a language definition object");var n={};n.languageId=e;n.noThrow=!1;n.maxStack=100;n.start="string"==typeof t.start?t.start:null;n.ignoreCase=dm(t.ignoreCase,!1);n.tokenPostfix=hm(t.tokenPostfix,"."+n.languageId);n.defaultToken=hm(t.defaultToken,"source");n.usesEmbedded=!1;var r=t;r.languageId=e;r.ignoreCase=n.ignoreCase;r.noThrow=n.noThrow;r.usesEmbedded=n.usesEmbedded;r.stateNames=t.tokenizer;r.defaultToken=n.defaultToken;function i(e,o,a){for(var s in a)if(a.hasOwnProperty(s)){var u=a[s];var l=u.include;if(l){if("string"!=typeof l)throw am(n,"an 'include' attribute must be a string at: "+e);"@"===l[0]&&(l=l.substr(1));if(!t.tokenizer[l])throw am(n,"include target '"+l+"' is not defined at: "+e);i(e+"."+l,o,t.tokenizer[l])}else{var c=new mm(e);if(Array.isArray(u)&&u.length>=1&&u.length<=3){c.setRegex(r,u[0]);if(u.length>=3)if("string"==typeof u[1])c.setAction(r,{token:u[1],next:u[2]});else{if("object"!=typeof u[1])throw am(n,"a next state as the last element of a rule can only be given if the action is either an object or a string, at: "+e);var d=u[1];d.next=u[2];c.setAction(r,d)}else c.setAction(r,u[1])}else{if(!u.regex)throw am(n,"a rule must either be an array, or an object with a 'regex' or 'include' field at: "+e);u.name&&"string"==typeof u.name&&(c.name=u.name);u.matchOnlyAtStart&&(c.matchOnlyAtLineStart=dm(u.matchOnlyAtLineStart,!1));c.setRegex(r,u.regex);c.setAction(r,u.action)}o.push(c)}}}if(!t.tokenizer||"object"!=typeof t.tokenizer)throw am(n,"a language definition must define the 'tokenizer' attribute as an object");n.tokenizer=[];for(var o in t.tokenizer)if(t.tokenizer.hasOwnProperty(o)){n.start||(n.start=o);var a=t.tokenizer[o];n.tokenizer[o]=new Array;i("tokenizer."+o,n.tokenizer[o],a)}n.usesEmbedded=r.usesEmbedded;if(t.brackets){if(!Array.isArray(t.brackets))throw am(n,"the 'brackets' attribute must be defined as an array")}else t.brackets=[{open:"{",close:"}",token:"delimiter.curly"},{open:"[",close:"]",token:"delimiter.square"},{open:"(",close:")",token:"delimiter.parenthesis"},{open:"<",close:">",token:"delimiter.angle"}];var s=[];for(var u in t.brackets)if(t.brackets.hasOwnProperty(u)){var l=t.brackets[u];l&&Array.isArray(l)&&3===l.length&&(l={token:l[2],open:l[0],close:l[1]});if(l.open===l.close)throw am(n,"open and close brackets in a 'brackets' attribute must be different: "+l.open+"\n hint: use the 'bracket' attribute if matching on equal brackets is required.");if("string"!=typeof l.open||"string"!=typeof l.token||"string"!=typeof l.close)throw am(n,"every element in the 'brackets' array must be a '{open,close,token}' object or array");s.push({token:l.token+n.tokenPostfix,open:rm(n,l.open),close:rm(n,l.close)})}n.brackets=s;n.noThrow=!0;return n}var ym=5;var bm=function(){function e(e){this._maxCacheDepth=e;this._entries=Object.create(null)}e.create=function(e,t){return this._INSTANCE.create(e,t)};e.prototype.create=function(e,t){if(null!==e&&e.depth>=this._maxCacheDepth)return new Cm(e,t);var n=Cm.getStackElementId(e);n.length>0&&(n+="|");n+=t;var r=this._entries[n];if(r)return r;r=new Cm(e,t);this._entries[n]=r;return r};e._INSTANCE=new e(5);return e}();var Cm=function(){function e(e,t){this.parent=e;this.state=t;this.depth=(this.parent?this.parent.depth:0)+1}e.getStackElementId=function(e){var t="";for(;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}if(null===e&&null===t)return!0;return!1};e.prototype.equals=function(t){return e._equals(this,t)};e.prototype.push=function(e){return bm.create(this,e)};e.prototype.pop=function(){return this.parent};e.prototype.popall=function(){var e=this;for(;e.parent;)e=e.parent;return e};e.prototype.switchTo=function(e){return bm.create(this.parent,e)};return e}();var wm=function(){function e(e,t){this.modeId=e;this.state=t}e.prototype.equals=function(e){return this.modeId===e.modeId&&this.state.equals(e.state)};e.prototype.clone=function(){var t;if(this.state.clone()===this.state)return this;return new e(this.modeId,this.state)};return e}();var Sm=function(){function e(e){this._maxCacheDepth=e;this._entries=Object.create(null)}e.create=function(e,t){return this._INSTANCE.create(e,t)};e.prototype.create=function(e,t){if(null!==t)return new Lm(e,t);if(null!==e&&e.depth>=this._maxCacheDepth)return new Lm(e,t);var n=Cm.getStackElementId(e);var r=this._entries[n];if(r)return r;r=new Lm(e,null);this._entries[n]=r;return r};e._INSTANCE=new e(5);return e}();var Lm=function(){function e(e,t){this.stack=e;this.embeddedModeData=t}e.prototype.clone=function(){var e;if((this.embeddedModeData?this.embeddedModeData.clone():null)===this.embeddedModeData)return this;return Sm.create(this.stack,this.embeddedModeData)};e.prototype.equals=function(t){if(!(t instanceof e))return!1;if(!this.stack.equals(t.stack))return!1;if(null===this.embeddedModeData&&null===t.embeddedModeData)return!0;if(null===this.embeddedModeData||null===t.embeddedModeData)return!1;return this.embeddedModeData.equals(t.embeddedModeData)};return e}();var Im=Object.hasOwnProperty;var xm=function(){function e(){this._tokens=[];this._language=null;this._lastTokenType=null;this._lastTokenLanguage=null}e.prototype.enterMode=function(e,t){this._language=t};e.prototype.emit=function(e,t){if(this._lastTokenType===t&&this._lastTokenLanguage===this._language)return;this._lastTokenType=t;this._lastTokenLanguage=this._language;this._tokens.push(new v["a"](e,t,this._language))};e.prototype.nestedModeTokenize=function(e,t,n){var r=t.modeId;var i=t.state;var o=Ve["u"].get(r);if(!o){this.enterMode(n,r);this.emit(n,"");return i}var a=o.tokenize(e,i,n);this._tokens=this._tokens.concat(a.tokens);this._lastTokenType=null;this._lastTokenLanguage=null;this._language=null;return a.endState};e.prototype.finalize=function(e){return new v["b"](this._tokens,e)};return e}();var Nm=function(){function e(e,t){this._modeService=e;this._theme=t;this._prependTokens=null;this._tokens=[];this._currentLanguageId=0;this._lastTokenMetadata=0}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);if(this._lastTokenMetadata===n)return;this._lastTokenMetadata=n;this._tokens.push(e);this._tokens.push(n)};e._merge=function(e,t,n){var r=null!==e?e.length:0;var i=t.length;var 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 a=new Uint32Array(r+i+o);null!==e&&a.set(e);for(var s=0;s<i;s++)a[r+s]=t[s];null!==n&&a.set(n,r+i);return a};e.prototype.nestedModeTokenize=function(t,n,r){var i=n.modeId;var o=n.state;var a=Ve["u"].get(i);if(!a){this.enterMode(r,i);this.emit(r,"");return o}var s=a.tokenize2(t,o,r);this._prependTokens=e._merge(this._prependTokens,this._tokens,s.tokens);this._tokens=[];this._currentLanguageId=0;this._lastTokenMetadata=0;return s.endState};e.prototype.finalize=function(t){return new v["c"](e._merge(this._prependTokens,this._tokens,null),t)};return e}();var Mm=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);var o=!1;this._tokenizationRegistryListener=Ve["u"].onDidChange(function(e){if(o)return;var t=!1;for(var n=0,r=e.changedLanguages.length;n<r;n++){var a=e.changedLanguages[n];if(i._embeddedModes[a]){t=!0;break}}if(t){o=!0;Ve["u"].fire([i._modeId]);o=!1}})}e.prototype.dispose=function(){this._tokenizationRegistryListener.dispose()};e.prototype.getInitialState=function(){var e=bm.create(null,this._lexer.start);return Sm.create(e,null)};e.prototype.tokenize=function(e,t,n){var r=new xm;var i=this._tokenize(e,t,n,r);return r.finalize(i)};e.prototype.tokenize2=function(e,t,n){var r=new Nm(this._modeService,this._standaloneThemeService.getTheme().tokenTheme);var 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=um(this._lexer,t.stack.state)))throw am(this._lexer,"tokenizer state is not defined: "+t.stack.state);var r=-1;var i=!1;for(var o in n){if(!Im.call(n,o))continue;var a=n[o];if(!tm(a.action)||"@pop"!==a.action.nextEmbedded)continue;i=!0;var s=a.regex;var u=a.regex.source;"^(?:"===u.substr(0,4)&&")"===u.substr(u.length-1,1)&&(s=new RegExp(u.substr(4,u.length-5),s.ignoreCase?"i":""));var l=e.search(s);if(-1===l)continue;(-1===r||l<r)&&(r=l)}if(!i)throw am(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 Sm.create(t.stack,new wm(t.embeddedModeData.modeId,o))}var a=e.substring(0,i);a.length>0&&r.nestedModeTokenize(a,t.embeddedModeData,n);var s=e.substring(i);return this._myTokenize(s,t,n+i,r)};e.prototype._myTokenize=function(e,t,n,r){r.enterMode(n,this._modeId);var i=e.length;var o=t.embeddedModeData;var a=t.stack;var s=0;var u=null;for(;s<i;){var l=s;var c=a.depth;var d=u?u.groups.length:0;var h=a.state;var f=null;var p=null;var g=null;var v=null;var m=null;if(u){f=u.matches;var _=u.groups.shift();p=_.matched;g=_.action;v=u.rule;0===u.groups.length&&(u=null)}else{if(s>=i)break;var y=this._lexer.tokenizer[h];if(!y&&!(y=um(this._lexer,h)))throw am(this._lexer,"tokenizer state is not defined: "+h);var b=e.substr(s);for(var C in y)if(Im.call(y,C)){var w=y[C];if((0===s||!w.matchOnlyAtLineStart)&&(f=b.match(w.regex))){p=f[0];g=w.action;break}}}if(!f){f=[""];p=""}if(!g){s<i&&(p=(f=[e.charAt(s)])[0]);g=this._lexer.defaultToken}s+=p.length;for(;$v(g)&&tm(g)&&g.test;)g=g.test(p,f,h,s===i);var S=null;if("string"==typeof g||Array.isArray(g))S=g;else if(g.group)S=g.group;else if(null!==g.token&&void 0!==g.token){S=g.tokenSubst?sm(this._lexer,g.token,p,f,h):g.token;if(g.nextEmbedded)if("@pop"===g.nextEmbedded){if(!o)throw am(this._lexer,"cannot pop embedded mode if not inside one");o=null}else{if(o)throw am(this._lexer,"cannot enter embedded mode from within an embedded mode");m=sm(this._lexer,g.nextEmbedded,p,f,h)}g.goBack&&(s=Math.max(0,s-g.goBack));if(g.switchTo&&"string"==typeof g.switchTo){var L;"@"===(L=sm(this._lexer,g.switchTo,p,f,h))[0]&&(L=L.substr(1));if(!um(this._lexer,L))throw am(this._lexer,"trying to switch to a state '"+L+"' that is undefined in rule: "+v.name);a=a.switchTo(L)}else{if(g.transform&&"function"==typeof g.transform)throw am(this._lexer,"action.transform not supported");if(g.next)if("@push"===g.next){if(a.depth>=this._lexer.maxStack)throw am(this._lexer,"maximum tokenizer stack size reached: ["+a.state+","+a.parent.state+",...]");a=a.push(h)}else if("@pop"===g.next){if(a.depth<=1)throw am(this._lexer,"trying to pop an empty stack in rule: "+v.name);a=a.pop()}else if("@popall"===g.next)a=a.popall();else{var L;"@"===(L=sm(this._lexer,g.next,p,f,h))[0]&&(L=L.substr(1));if(!um(this._lexer,L))throw am(this._lexer,"trying to set a next state '"+L+"' that is undefined in rule: "+v.name);a=a.push(L)}}g.log&&"string"==typeof g.log&&om(this._lexer,this._lexer.languageId+": "+sm(this._lexer,g.log,p,f,h))}if(null===S)throw am(this._lexer,"lexer rule has no well-defined action in rule: "+v.name);if(Array.isArray(S)){if(u&&u.groups.length>0)throw am(this._lexer,"groups cannot be nested: "+v.name);if(f.length!==S.length+1)throw am(this._lexer,"matched number of groups does not match the number of actions in rule: "+v.name);var I=0;for(var x=1;x<f.length;x++)I+=f[x].length;if(I!==p.length)throw am(this._lexer,"with groups, all characters should be matched in consecutive groups in rule: "+v.name);u={rule:v,matches:f,groups:[]};for(var x=0;x<S.length;x++)u.groups[x]={action:S[x],matched:f[x+1]};s-=p.length;continue}if("@rematch"===S){s-=p.length;p="";f=null;S=""}if(0===p.length){if(c!==a.depth||h!==a.state||(u?u.groups.length:0)!==d)continue;throw am(this._lexer,"no progress in tokenizer in rule: "+v.name)}var N=null;if(em(S)&&0===S.indexOf("@brackets")){var M=S.substr("@brackets".length);var D=Dm(this._lexer,p);if(!D)throw am(this._lexer,"@brackets token returned but no bracket defined as: "+p);N=im(D.token+M)}else{var k;N=im(""===S?"":S+this._lexer.tokenPostfix)}r.emit(l+n,N);if(null!==m){var O=this._modeService.getModeIdForLanguageName(m);O&&(m=O);var E=this._getNestedEmbeddedModeData(m);if(s<i){var b=e.substr(s);return this._nestedTokenize(b,Sm.create(a,E),n+s,r)}return Sm.create(a,E)}}return Sm.create(a,o)};e.prototype._getNestedEmbeddedModeData=function(e){var t=this._locateMode(e);if(t){var n=Ve["u"].get(t);if(n)return new wm(t,n.getInitialState())}return new wm(t||Be["b"],Be["c"])};e.prototype._locateMode=function(e){if(!e||!this._modeService.isRegisteredMode(e))return null;var t=this._modeService.getModeId(e);if(t){this._modeService.triggerMode(t);this._embeddedModes[t]=!0}return t};return e}();function Dm(e,t){if(!t)return null;t=rm(e,t);var n=e.brackets;for(var r=0;r<n.length;r++){var i=n[r];if(i.open===t)return{token:i.token,bracketType:1};if(i.close===t)return{token:i.token,bracketType:-1}}return null}function km(e,t,n,r){return new Mm(e,t,n,r)}function Om(e){Yh.registerLanguage(e)}function Em(){var e=[];return e=e.concat(Yh.getLanguages())}function Tm(e){var t=Lv.modeService.get().getLanguageIdentifier(e);return t?t.id:0}function Am(e,t){var n=Lv.modeService.get().onDidCreateMode(function(r){if(r.getId()===e){n.dispose();t()}});return n}function Rm(e,t){var n=Lv.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set configuration for unknown language "+e);return ot["a"].register(n,t)}var Pm=function(){function e(e){this._actual=e}e.prototype.getInitialState=function(){return this._actual.getInitialState()};e.prototype.tokenize=function(e,t,n){throw new Error("Not supported!")};e.prototype.tokenize2=function(e,t){var n=this._actual.tokenizeEncoded(e,t);return new v["c"](n.tokens,n.endState)};return e}();var jm=function(){function e(e,t,n){this._standaloneThemeService=e;this._languageIdentifier=t;this._actual=n}e.prototype.getInitialState=function(){return this._actual.getInitialState()};e.prototype._toClassicTokens=function(e,t,n){var r=[];var i=0;for(var o=0,a=e.length;o<a;o++){var s=e[o];var u=s.startIndex;0===o?u=0:u<i&&(u=i);r[o]=new v["a"](u+n,s.scopes,t);i=u}return r};e.prototype.tokenize=function(e,t,n){var r=this._actual.tokenize(e,t);var i=this._toClassicTokens(r.tokens,this._languageIdentifier.language,n);var o;o=r.endState.equals(t)?t:r.endState;return new v["b"](i,o)};e.prototype._toBinaryTokens=function(e,t){var n=this._languageIdentifier.id;var r=this._standaloneThemeService.getTheme().tokenTheme;var i=[],o=0;var a=0;for(var s=0,u=e.length;s<u;s++){var l=e[s];var c=r.match(n,l.scopes);if(o>0&&i[o-1]===c)continue;var d=l.startIndex;0===s?d=0:d<a&&(d=a);i[o++]=d+t;i[o++]=c;a=d}var h=new Uint32Array(o);for(var s=0;s<o;s++)h[s]=i[s];return h};e.prototype.tokenize2=function(e,t,n){var r=this._actual.tokenize(e,t);var i=this._toBinaryTokens(r.tokens,n);var o;o=r.endState.equals(t)?t:r.endState;return new v["c"](i,o)};return e}();function Wm(e){return e["tokenizeEncoded"]}function Fm(e,t){var n=Lv.modeService.get().getLanguageIdentifier(e);if(!n)throw new Error("Cannot set tokens provider for unknown language "+e);var r;r=Wm(t)?new Pm(t):new jm(Lv.standaloneThemeService.get(),n,t);return Ve["u"].register(e,r)}function zm(e,t){var n=_m(e,t);var r=km(Lv.modeService.get(),Lv.standaloneThemeService.get(),e,n);return Ve["u"].register(e,r)}function Vm(e,t){return Ve["q"].register(e,t)}function Bm(e,t){return Ve["r"].register(e,t)}function Hm(e,t){return Ve["s"].register(e,t)}function Um(e,t){return Ve["l"].register(e,{provideHover:function(e,n,r){var i=e.getWordAtPosition(n);return Promise.resolve(t.provideHover(e,n,r)).then(function(e){if(!e)return;!e.range&&i&&(e.range=new p["a"](n.lineNumber,i.startColumn,n.lineNumber,i.endColumn));e.range||(e.range=new p["a"](n.lineNumber,n.column,n.lineNumber,n.column));return e})}})}function Zm(e,t){return Ve["i"].register(e,t)}function Gm(e,t){return Ve["g"].register(e,t)}function Ym(e,t){return Ve["e"].register(e,t)}function Km(e,t){return Ve["m"].register(e,t)}function Qm(e,t){return Ve["v"].register(e,t)}function qm(e,t){return Ve["b"].register(e,t)}function Jm(e,t){return Ve["a"].register(e,{provideCodeActions:function(e,n,r,i){var o=Lv.markerService.get().read({resource:e.uri}).filter(function(e){return p["a"].areIntersectingOrTouching(e,n)});return t.provideCodeActions(e,n,{markers:o,only:r.only},i)}})}function Xm(e,t){return Ve["f"].register(e,t)}function $m(e,t){return Ve["h"].register(e,t)}function e_(e,t){return Ve["p"].register(e,t)}function t_(e,t){return Ve["o"].register(e,t)}function n_(e,t){return Ve["d"].register(e,t)}function r_(e,t){return Ve["c"].register(e,t)}function i_(e,t){return Ve["k"].register(e,t)}function o_(){return{register:Om,getLanguages:Em,onLanguage:Am,getEncodedLanguageId:Tm,setLanguageConfiguration:Rm,setTokensProvider:Fm,setMonarchTokensProvider:zm,registerReferenceProvider:Vm,registerRenameProvider:Bm,registerCompletionItemProvider:n_,registerSignatureHelpProvider:Hm,registerHoverProvider:Um,registerDocumentSymbolProvider:Zm,registerDocumentHighlightProvider:Gm,registerDefinitionProvider:Ym,registerImplementationProvider:Km,registerTypeDefinitionProvider:Qm,registerCodeLensProvider:qm,registerCodeActionProvider:Jm,registerDocumentFormattingEditProvider:Xm,registerDocumentRangeFormattingEditProvider:$m,registerOnTypeFormattingEditProvider:e_,registerLinkProvider:t_,registerColorProvider:r_,registerFoldingRangeProvider:i_,DocumentHighlightKind:B,CompletionItemKind:W,CompletionItemInsertTextRule:F,SymbolKind:H,IndentAction:j,CompletionTriggerKind:z,SignatureHelpTriggerReason:V,FoldingRangeKind:Ve["j"]}}n.d(t,"CancellationTokenSource",function(){return u_});n.d(t,"Emitter",function(){return l_});n.d(t,"KeyCode",function(){return c_});n.d(t,"KeyMod",function(){return d_});n.d(t,"Position",function(){return h_});n.d(t,"Range",function(){return f_});n.d(t,"Selection",function(){return p_});n.d(t,"SelectionDirection",function(){return g_});n.d(t,"MarkerSeverity",function(){return v_});n.d(t,"MarkerTag",function(){return m_});n.d(t,"Promise",function(){return __});n.d(t,"Uri",function(){return y_});n.d(t,"Token",function(){return b_});n.d(t,"editor",function(){return C_});n.d(t,"languages",function(){return w_});var a_=self;void 0===a_.Promise&&(a_.Promise=s);u["a"].wrappingIndent=0;u["a"].viewInfo.glyphMargin=!1;u["a"].autoIndent=!1;var s_=Z();s_.editor=Jv();s_.languages=o_();var u_=s_.CancellationTokenSource;var l_=s_.Emitter;var c_=s_.KeyCode;var d_=s_.KeyMod;var h_=s_.Position;var f_=s_.Range;var p_=s_.Selection;var g_=s_.SelectionDirection;var v_=s_.MarkerSeverity;var m_=s_.MarkerTag;var __=s_.Promise;var y_=s_.Uri;var b_=s_.Token;var C_=s_.editor;var w_=s_.languages;a_.monaco=s_;void 0!==a_.require&&"function"==typeof a_.require.config&&a_.require.config({ignoreDuplicateModules:["vscode-languageserver-types","vscode-languageserver-types/main","vscode-nls","vscode-nls/vscode-nls","jsonc-parser","jsonc-parser/main","vscode-uri","vscode-uri/index","vs/basic-languages/typescript/typescript"]})},"1RQC":function(e,t,n){"use strict";n.d(t,"h",function(){return r});n.d(t,"c",function(){return o});n.d(t,"d",function(){return s});n.d(t,"g",function(){return u});n.d(t,"f",function(){return f});n.d(t,"b",function(){return p});n.d(t,"e",function(){return v});n.d(t,"a",function(){return y});function r(e,t){void 0===t&&(t=0);return e[e.length-(1+t)]}function i(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]}function o(e,t,n){void 0===n&&(n=function(e,t){return e===t});if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(var r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}function a(e,t,n){var r=0,i=e.length-1;for(;r<=i;){var o=(r+i)/2|0;var a=n(e[o],t);if(a<0)r=o+1;else{if(!(a>0))return o;i=o-1}}return-(r+1)}function s(e,t){var n=0,r=e.length;if(0===r)return 0;for(;n<r;){var i=Math.floor((n+r)/2);t(e[i])?r=i:n=i+1}return n}function u(e,t){c(e,t,0,e.length-1,[]);return e}function l(e,t,n,r,i,o){var a=n,s=r+1;for(var u=n;u<=i;u++)o[u]=e[u];for(var u=n;u<=i;u++)a>r?e[u]=o[s++]:s>i?e[u]=o[a++]:t(o[s],o[a])<0?e[u]=o[s++]:e[u]=o[a++]}function c(e,t,n,r,i){if(r<=n)return;var o=n+(r-n)/2|0;c(e,t,n,o,i);c(e,t,o+1,r,i);if(t(e[o],e[o+1])<=0)return;l(e,t,n,o,r,i)}function d(e,t){var n=[];var r=void 0;for(var i=0,o=u(e.slice(0),t);i<o.length;i++){var a=o[i];if(r&&0===t(r[0],a))r.push(a);else{r=[a];n.push(r)}}return n}function h(e){if(!e)return e;return e.filter(function(e){return!!e})}function f(e){return!Array.isArray(e)||0===e.length}function p(e,t){if(!t)return e.filter(function(t,n){return e.indexOf(t)===n});var n=Object.create(null);return e.filter(function(e){var r=t(e);if(n[r])return!1;n[r]=!0;return!0})}function g(e,t){for(var n=0;n<e.length;n++){var r;if(t(e[n]))return n}return-1}function v(e,t,n){void 0===n&&(n=null);var r=g(e,t);return r<0?n:e[r]}function m(e){var t;return(t=[]).concat.apply(t,e)}function _(e,t){var n="number"==typeof t?e:0;if("number"==typeof t)n=e;else{n=0;t=e}var r=[];if(n<=t)for(var i=n;i<t;i++)r.push(i);else for(var i=n;i>t;i--)r.push(i);return r}function y(e,t,n){var r=e.slice(0,t);var i=e.slice(t);return r.concat(n,i)}},"1pmW":function(e,t,n){var r=n("YCp2");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},"1sVc":function(e,t,n){"use strict";n.r(t);var r="undefined"==typeof monaco?self.monaco:monaco;var i={};function o(e){var t;return(0,i[e].loader)().then(function(t){r.languages.setMonarchTokensProvider(e,t.language);r.languages.setLanguageConfiguration(e,t.conf)})}var a={};function s(e){a[e]||(a[e]=o(e));return a[e]}function u(e){var t=e.id;i[t]=e;r.languages.register(e);r.languages.onLanguage(t,function(){s(t)})}var l="undefined"==typeof monaco?self.monaco:monaco;u({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:function(){return l.Promise.wrap(n.e(8).then(n.bind(null,"HGaB")))}})},"2fgB":function(e,t,n){var r=n("QJo0");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},"3AuD":function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/*\r\n\tKeeping name short for faster parsing.\r\n\tcdr = core decorations rendering (div)\r\n*/\r\n.monaco-editor .lines-content .cdr {\r\n\tposition: absolute;\r\n}",""])},"3Yp8":function(e,t,n){"use strict";n.d(t,"c",function(){return o});n.d(t,"a",function(){return s});n.d(t,"b",function(){return u});n.d(t,"d",function(){return l});var r=(i=function(e,t){return(i=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])})(e,t)},function(e,t){i(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var i;var o={done:!0,value:void 0};var a;!function(e){var t={next:function(){return o}};function n(){return t}e.empty=n;function r(e,t,n){void 0===t&&(t=0);void 0===n&&(n=e.length);return{next:function(){if(t>=n)return o;return{done:!1,value:e[t++]}}}}e.fromArray=r;function i(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()}e.from=i;function a(e,t){return{next:function(){var n=e.next();return n.done?o:{done:!1,value:t(n.value)}}}}e.map=a;function s(e,t){return{next:function(){for(;;){var n=e.next();if(n.done)return o;if(t(n.value))return{done:!1,value:n.value}}}}}e.filter=s;function u(e,t){for(var n=e.next();!n.done;n=e.next())t(n.value)}e.forEach=u;function l(e){var t=[];u(e,function(e){return t.push(e)});return t}e.collect=l}(a||(a={}));var s=function(){function e(e,t,n,r){void 0===t&&(t=0);void 0===n&&(n=e.length);void 0===r&&(r=t-1);this.items=e;this.start=t;this.end=n;this.index=r}e.prototype.next=function(){this.index=Math.min(this.index+1,this.end);return this.current()};e.prototype.current=function(){if(this.index===this.start-1||this.index===this.end)return null;return this.items[this.index]};return e}();var u=function(e){r(t,e);function t(t,n,r,i){void 0===n&&(n=0);void 0===r&&(r=t.length);void 0===i&&(i=n-1);return e.call(this,t,n,r,i)||this}t.prototype.current=function(){return e.prototype.current.call(this)};t.prototype.previous=function(){this.index=Math.max(this.index-1,this.start-1);return this.current()};t.prototype.first=function(){this.index=this.start;return this.current()};t.prototype.last=function(){this.index=this.end-1;return this.current()};t.prototype.parent=function(){return null};return t}(s);var l=function(){function e(e,t){this.iterator=e;this.fn=t}e.prototype.next=function(){return this.fn(this.iterator.next())};return e}()},"4M3c":function(e,t,n){"use strict";n.d(t,"a",function(){return o});n.d(t,"b",function(){return a});var r=n("TihM");var i=n("5s6q");var o=Object(r["c"])("storageService");var a=new(function(){function e(){this._serviceBrand=void 0;this.onDidChangeStorage=i["b"].None;this.onWillSaveState=i["b"].None}e.prototype.get=function(e,t,n){return n};e.prototype.getBoolean=function(e,t,n){return n};e.prototype.getInteger=function(e,t,n){return n};e.prototype.store=function(e,t,n){return Promise.resolve()};e.prototype.remove=function(e,t){return Promise.resolve()};return e}())},"4d2E":function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("TihM");var i=Object(r["c"])("codeEditorService")},"54i4":function(e,t,n){"use strict";n.d(t,"c",function(){return s});n.d(t,"f",function(){return u});n.d(t,"b",function(){return c});n.d(t,"d",function(){return d});n.d(t,"a",function(){return h});n.d(t,"e",function(){return g});var r=n("TihM");var i=n("KVQV");var o=n("Yn0l");var a=n("5s6q");var s=Object(r["c"])("themeService");function u(e){return{id:e}}var l="dark";var c="hc";function d(e){switch(e){case l:return"vs-dark";case c:return"hc-black";default:return"vs"}}var h={ThemingContribution:"base.contributions.theming"};var f;var p=new(function(){function e(){this.themingParticipants=[];this.themingParticipants=[];this.onThemingParticipantAddedEmitter=new a["a"]}e.prototype.onThemeChange=function(e){var t=this;this.themingParticipants.push(e);this.onThemingParticipantAddedEmitter.fire(e);return Object(i["e"])(function(){var n=t.themingParticipants.indexOf(e);t.themingParticipants.splice(n,1)})};e.prototype.getThemingParticipants=function(){return this.themingParticipants};return e}());o["a"].add(h.ThemingContribution,p);function g(e){return p.onThemeChange(e)}},"5BWK":function(e,t,n){"use strict";n.d(t,"a",function(){return s});n.d(t,"b",function(){return u});var r=n("KVQV");var i=n("5s6q");var o=(a=function(e,t){return(a=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])})(e,t)},function(e,t){a(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var a;var s=function(){function e(e,t,n,r,o){void 0===t&&(t="");void 0===n&&(n="");void 0===r&&(r=!0);this._onDidChange=new i["a"];this.onDidChange=this._onDidChange.event;this._id=e;this._label=t;this._cssClass=n;this._enabled=r;this._actionCallback=o}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){if(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){if(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){if(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){if(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){if(this._checked!==e){this._checked=e;this._onDidChange.fire({checked:e})}};e.prototype._setRadio=function(e){if(this._radio!==e){this._radio=e;this._onDidChange.fire({radio:e})}};e.prototype.run=function(e,t){if(this._actionCallback)return this._actionCallback(e);return Promise.resolve(!0)};e.prototype.dispose=function(){this._onDidChange.dispose()};return e}();var u=function(e){o(t,e);function t(){var t=null!==e&&e.apply(this,arguments)||this;t._onDidBeforeRun=t._register(new i["a"]);t.onDidBeforeRun=t._onDidBeforeRun.event;t._onDidRun=t._register(new i["a"]);t.onDidRun=t._onDidRun.event;return t}t.prototype.run=function(e,t){var n=this;if(!e.enabled)return Promise.resolve(null);this._onDidBeforeRun.fire({action:e});return this.runAction(e,t).then(function(t){n._onDidRun.fire({action:e,result:t})},function(t){n._onDidRun.fire({action:e,error:t})})};t.prototype.runAction=function(e,t){var n=t?e.run(t):e.run();return Promise.resolve(n)};return t}(r["a"])},"5F13":function(e,t,n){var r=n("j5o4");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},"5aoK":function(e,t,n){var r=n("SxVz");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},"5s6q":function(e,t,n){"use strict";var r=n("W5Z6");function i(e){var t=this;var n=!1;var r;return function(){if(n)return r;n=!0;return r=e.apply(t,arguments)}}var o=n("KVQV");var a=n("GB/4");n.d(t,"b",function(){return s});n.d(t,"a",function(){return u});n.d(t,"c",function(){return l});n.d(t,"g",function(){return c});n.d(t,"e",function(){return h});n.d(t,"f",function(){return p});n.d(t,"d",function(){return _});var s;!function(e){var t={dispose:function(){}};e.None=function(){return t}}(s||(s={}));var u=function(){function e(e){void 0===e&&(e=null);this._options=e;this._event=null;this._disposed=!1;this._deliveryQueue=null;this._listeners=null}Object.defineProperty(e.prototype,"event",{get:function(){var t=this;this._event||(this._event=function(n,r,i){t._listeners||(t._listeners=new a["a"]);var o=t._listeners.isEmpty();o&&t._options&&t._options.onFirstListenerAdd&&t._options.onFirstListenerAdd(t);var s=t._listeners.push(r?[n,r]:n);o&&t._options&&t._options.onFirstListenerDidAdd&&t._options.onFirstListenerDidAdd(t);t._options&&t._options.onListenerDidAdd&&t._options.onListenerDidAdd(t,n,r);var u;u={dispose:function(){u.dispose=e._noop;if(!t._disposed){s();if(t._options&&t._options.onLastListenerRemove){var n;t._listeners&&!t._listeners.isEmpty()||t._options.onLastListenerRemove(t)}}}};Array.isArray(i)&&i.push(u);return u});return this._event},enumerable:!0,configurable:!0});e.prototype.fire=function(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=[]);for(var t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.length>0;){var i=this._deliveryQueue.shift(),o=i[0],a=i[1];try{"function"==typeof o?o.call(void 0,a):o[0].call(o[1],a)}catch(n){Object(r["d"])(n)}}}};e.prototype.dispose=function(){this._listeners&&(this._listeners=null);this._deliveryQueue&&(this._deliveryQueue.length=0);this._disposed=!0};e._noop=function(){};return e}();var l=function(){function e(){var e=this;this.hasListeners=!1;this.events=[];this.emitter=new u({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0});e.prototype.add=function(e){var t=this;var n={event:e,listener:null};this.events.push(n);this.hasListeners&&this.hook(n);var r=function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)};return Object(o["e"])(i(r))};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()};return e}();function c(e){return function(t,n,r){void 0===n&&(n=null);var i=!1;var o=e(function(e){if(i)return;o?o.dispose():i=!0;return t.call(n,e)},null,r);i&&o.dispose();return o}}function d(){var e=[];for(var t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n,r){void 0===n&&(n=null);return Object(o["c"])(e.map(function(e){return e(function(e){return t.call(n,e)},null,r)}))}}function h(e,t,n,r){void 0===n&&(n=100);void 0===r&&(r=!1);var i;var o=void 0;var a=void 0;var s=0;var l=new u({onFirstListenerAdd:function(){i=e(function(e){s++;o=t(o,e);r&&!a&&l.fire(o);clearTimeout(a);a=setTimeout(function(){var e=o;o=void 0;a=void 0;(!r||s>1)&&l.fire(e);s=0},n)})},onLastListenerRemove:function(){i.dispose()}});return l.event}var f=function(){function e(){this.buffers=[]}e.prototype.wrapEvent=function(e){var t=this;return function(n,r,i){return e(function(e){var i=t.buffers[t.buffers.length-1];i?i.push(function(){return n.call(r,e)}):n.call(r,e)},void 0,i)}};e.prototype.bufferEvents=function(e){var t=[];this.buffers.push(t);var n=e();this.buffers.pop();t.forEach(function(e){return e()});return n};return e}();function p(e,t){return function(n,r,i){void 0===r&&(r=null);return e(function(e){return n.call(r,t(e))},null,i)}}function g(e,t){return function(n,r,i){void 0===r&&(r=null);return e(function(e){return t(e)&&n.call(r,e)},null,i)}}var v=function(){function e(e){this._event=e}Object.defineProperty(e.prototype,"event",{get:function(){return this._event},enumerable:!0,configurable:!0});e.prototype.map=function(t){return new e(p(this._event,t))};e.prototype.filter=function(t){return new e(g(this._event,t))};e.prototype.on=function(e,t,n){return this._event(e,t,n)};return e}();function m(e){return new v(e)}var _=function(){function e(){var e=this;this.listening=!1;this.inputEvent=s.None;this.inputEventListener=o["a"].None;this.emitter=new u({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}Object.defineProperty(e.prototype,"input",{set:function(e){this.inputEvent=e;if(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()};return e}()},"6YTk":function(e,t,n){"use strict";n.d(t,"a",function(){return l});var r=n("zxKB");var i=n("RBaS");var o=n("AAdS");var a=n("KVQV");var s=(u=function(e,t){return(u=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])})(e,t)},function(e,t){u(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var u;var l=function(e){s(t,e);function t(){return null!==e&&e.apply(this,arguments)||this}t.prototype.onclick=function(e,t){this._register(r["g"](e,r["c"].CLICK,function(e){return t(new o["b"](e))}))};t.prototype.onmousedown=function(e,t){this._register(r["g"](e,r["c"].MOUSE_DOWN,function(e){return t(new o["b"](e))}))};t.prototype.onmouseover=function(e,t){this._register(r["g"](e,r["c"].MOUSE_OVER,function(e){return t(new o["b"](e))}))};t.prototype.onnonbubblingmouseout=function(e,t){this._register(r["h"](e,function(e){return t(new o["b"](e))}))};t.prototype.onkeydown=function(e,t){this._register(r["g"](e,r["c"].KEY_DOWN,function(e){return t(new i["a"](e))}))};t.prototype.onkeyup=function(e,t){this._register(r["g"](e,r["c"].KEY_UP,function(e){return t(new i["a"](e))}))};t.prototype.oninput=function(e,t){this._register(r["g"](e,r["c"].INPUT,t))};t.prototype.onblur=function(e,t){this._register(r["g"](e,r["c"].BLUR,t))};t.prototype.onfocus=function(e,t){this._register(r["g"](e,r["c"].FOCUS,t))};t.prototype.onchange=function(e,t){this._register(r["g"](e,r["c"].CHANGE,t))};return t}(a["a"])},"6cF/":function(e,t,n){"use strict";var r=n("GDdU");var i=n("5s6q");var o=n("KVQV");var a=n("cErD");function s(e,t,n,r){if(Array.isArray(e)){var i=0;for(var o=0,u=e;o<u.length;o++){var l;var c=s(u[o],t,n,r);if(10===c)return c;c>i&&(i=c)}return i}if("string"==typeof e){if(!r)return 0;return"*"===e?5:e===n?10:0}if(e){var d=e.language,h=e.pattern,f=e.scheme,p=e.hasAccessToAllModels;if(!r&&!p)return 0;var i=0;if(f)if(f===t.scheme)i=10;else{if("*"!==f)return 0;i=5}if(d)if(d===n)i=10;else{if("*"!==d)return 0;i=Math.max(i,5)}if(h){if(h!==t.fsPath&&!Object(a["a"])(h,t.fsPath))return 0;i=10}return i}return 0}var u=n("Mk1O");function l(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(l):!!e.exclusive)}var c=function(){function e(){this._clock=0;this._entries=[];this._onDidChange=new i["a"]}Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0});e.prototype.register=function(e,t){var n=this;var r={selector:e,provider:t,_score:-1,_time:this._clock++};this._entries.push(r);this._lastCandidate=void 0;this._onDidChange.fire(this._entries.length);return Object(o["e"])(function(){if(r){var e=n._entries.indexOf(r);if(e>=0){n._entries.splice(e,1);n._lastCandidate=void 0;n._onDidChange.fire(n._entries.length);r=void 0}}})};e.prototype.has=function(e){return this.all(e).length>0};e.prototype.all=function(e){if(!e)return[];this._updateScores(e);var t=[];for(var n=0,r=this._entries;n<r.length;n++){var i=r[n];i._score>0&&t.push(i.provider)}return t};e.prototype.ordered=function(e){var t=[];this._orderedForEach(e,function(e){return t.push(e.provider)});return t};e.prototype.orderedGroups=function(e){var t=[];var n;var r;this._orderedForEach(e,function(e){if(n&&r===e._score)n.push(e.provider);else{r=e._score;n=[e.provider];t.push(n)}});return t};e.prototype._orderedForEach=function(e,t){if(!e)return;this._updateScores(e);for(var n=0;n<this._entries.length;n++){var r=this._entries[n];r._score>0&&t(r)}};e.prototype._updateScores=function(t){var n={uri:t.uri.toString(),language:t.getLanguageIdentifier().language};if(this._lastCandidate&&this._lastCandidate.language===n.language&&this._lastCandidate.uri===n.uri)return;this._lastCandidate=n;for(var r=0,i=this._entries;r<i.length;r++){var o=i[r];o._score=s(o.selector,t.uri,t.getLanguageIdentifier().language,Object(u["b"])(t));if(l(o.selector)&&o._score>0){for(var a=0,c=this._entries;a<c.length;a++){var d;c[a]._score=0}o._score=1e3;break}}this._entries.sort(e._compareByScoreAndTime)};e._compareByScoreAndTime=function(e,t){return e._score<t._score?1:e._score>t._score?-1:e._time<t._time?1:e._time>t._time?-1:0};return e}();var d=function(){function e(){this._onDidChange=new i["a"];this.onDidChange=this._onDidChange.event;this._map=Object.create(null);this._promises=Object.create(null);this._colorMap=null}e.prototype.fire=function(e){this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})};e.prototype.register=function(e,t){var n=this;this._map[e]=t;this.fire([e]);return Object(o["e"])(function(){if(n._map[e]!==t)return;delete n._map[e];n.fire([e])})};e.prototype.getPromise=function(e){var t=this;var n=this.get(e);if(n)return Promise.resolve(n);var r=this._promises[e];if(r)return r.then(function(n){return t.get(e)});return null};e.prototype.get=function(e){return this._map[e]||null};e.prototype.setColorMap=function(e){this._colorMap=e;this._onDidChange.fire({changedLanguages:Object.keys(this._map),changedColorMap:!0})};e.prototype.getColorMap=function(){return this._colorMap};e.prototype.getDefaultBackground=function(){if(this._colorMap&&this._colorMap.length>2)return this._colorMap[2];return null};return e}();n.d(t,"n",function(){return h});n.d(t,"t",function(){return f});n.d(t,"j",function(){return y});n.d(t,"w",function(){return b});n.d(t,"q",function(){return C});n.d(t,"r",function(){return w});n.d(t,"d",function(){return S});n.d(t,"s",function(){return L});n.d(t,"l",function(){return I});n.d(t,"i",function(){return x});n.d(t,"g",function(){return N});n.d(t,"e",function(){return M});n.d(t,"m",function(){return D});n.d(t,"v",function(){return k});n.d(t,"b",function(){return O});n.d(t,"a",function(){return E});n.d(t,"f",function(){return T});n.d(t,"h",function(){return A});n.d(t,"p",function(){return R});n.d(t,"o",function(){return P});n.d(t,"c",function(){return j});n.d(t,"k",function(){return W});n.d(t,"u",function(){return F});var h=function(){function e(e,t){this.language=e;this.id=t}return e}();var f=function(){function e(){}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;var n="mtk"+this.getForeground(e);var r=this.getFontStyle(e);1&r&&(n+=" mtki");2&r&&(n+=" mtkb");4&r&&(n+=" mtku");return n};e.getInlineStyleFromMetadata=function(e,t){var n=this.getForeground(e);var r=this.getFontStyle(e);var i="color: "+t[n]+";";1&r&&(i+="font-style: italic;");2&r&&(i+="font-weight: bold;");4&r&&(i+="text-decoration: underline;");return i};return e}();var p=function(){var e=Object.create(null);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";return function(t){return e[t]||"property"}}();var g=function(){var e=Object.create(null);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["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;return function(t){return e[t]||"property"}}();var v;!function(e){e[e["Invoke"]=1]="Invoke";e[e["TriggerCharacter"]=2]="TriggerCharacter";e[e["ContentChange"]=3]="ContentChange"}(v||(v={}));var m;!function(e){e[e["Text"]=0]="Text";e[e["Read"]=1]="Read";e[e["Write"]=2]="Write"}(m||(m={}));var _=function(){var e=Object.create(null);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";return function t(n){return"symbol-icon "+(e[n]||"property")}}();var y=function(){function e(e){this.value=e}e.Comment=new e("comment");e.Imports=new e("imports");e.Region=new e("region");return e}();function b(e){return Object(r["g"])(e)&&e.resource&&Array.isArray(e.edits)}var C=new c;var w=new c;var S=new c;var L=new c;var I=new c;var x=new c;var N=new c;var M=new c;var D=new c;var k=new c;var O=new c;var E=new c;var T=new c;var A=new c;var R=new c;var P=new c;var j=new c;var W=new c;var F=new d},"6dSJ":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function e(e,t){this.lineNumber=e;this.column=t}e.prototype.with=function(t,n){void 0===t&&(t=this.lineNumber);void 0===n&&(n=this.column);return t===this.lineNumber&&n===this.column?this:new e(t,n)};e.prototype.delta=function(e,t){void 0===e&&(e=0);void 0===t&&(t=0);return this.with(this.lineNumber+e,this.column+t)};e.prototype.equals=function(t){return e.equals(this,t)};e.equals=function(e,t){if(!e&&!t)return!0;return!!e&&!!t&&e.lineNumber===t.lineNumber&&e.column===t.column};e.prototype.isBefore=function(t){return e.isBefore(this,t)};e.isBefore=function(e,t){if(e.lineNumber<t.lineNumber)return!0;if(t.lineNumber<e.lineNumber)return!1;return e.column<t.column};e.prototype.isBeforeOrEqual=function(t){return e.isBeforeOrEqual(this,t)};e.isBeforeOrEqual=function(e,t){if(e.lineNumber<t.lineNumber)return!0;if(t.lineNumber<e.lineNumber)return!1;return e.column<=t.column};e.compare=function(e,t){var n=0|e.lineNumber;var r=0|t.lineNumber;if(n===r){var i;var o;return(0|e.column)-(0|t.column)}return n-r};e.prototype.clone=function(){return new e(this.lineNumber,this.column)};e.prototype.toString=function(){return"("+this.lineNumber+","+this.column+")"};e.lift=function(t){return new e(t.lineNumber,t.column)};e.isIPosition=function(e){return e&&"number"==typeof e.lineNumber&&"number"==typeof e.column};return e}()},"7e8Q":function(e,t,n){var r=n("OKg1");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},"7hnm":function(e,t,n){var r=n("wBd/");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},"8fzD":function(e,t,n){"use strict";n.d(t,"a",function(){return r});n.d(t,"b",function(){return i});n.d(t,"c",function(){return o});var r=function(){function e(e,t,n){this.offset=0|e;this.type=t;this.language=n}e.prototype.toString=function(){return"("+this.offset+", "+this.type+")"};return e}();var i=function(){function e(e,t){this.tokens=e;this.endState=t}return e}();var o=function(){function e(e,t){this.tokens=e;this.endState=t}return e}()},"97Nb":function(e,t,n){self["MonacoEnvironment"]=function(e){function t(e){return e.replace(/\/$/,"")}return{getWorkerUrl:function(r,i){var o=n.p;return(o?t(o)+"/":"")+e[i]}}}({editorWorkerService:"vs\\editor.worker.js",json:"vs\\json.worker.js"});n("VmjZ");n("rkXc");n("TqEf");n("GRIk");e.exports=n("1B4h");n("1sVc");n("e8vV")},"9X2a":function(e,t,n){"use strict";(function(e,r){n.d(t,"g",function(){return y});n.d(t,"d",function(){return b});n.d(t,"c",function(){return C});n.d(t,"e",function(){return w});n.d(t,"f",function(){return S});n.d(t,"b",function(){return I});n.d(t,"h",function(){return N});n.d(t,"a",function(){return M});var i=!1;var o=!1;var a=!1;var s=!1;var u=!1;var l=void 0;var c=void 0;var d=void 0;var h="en";var f=void 0!==e&&void 0!==e.versions&&void 0!==e.versions.electron&&"renderer"===e.type;if("object"!=typeof navigator||f){if("object"==typeof e){i="win32"===e.platform;o="darwin"===e.platform;a="linux"===e.platform;l="en";c="en";var p=e.env["VSCODE_NLS_CONFIG"];if(p)try{var g=JSON.parse(p);var v=g.availableLanguages["*"];l=g.locale;c=v||"en";d=g._translationsConfigFile}catch(e){}s=!0}}else{var m=navigator.userAgent;i=m.indexOf("Windows")>=0;o=m.indexOf("Macintosh")>=0;a=m.indexOf("Linux")>=0;u=!0;c=l=navigator.language}var _=0;s&&(o?_=1:i?_=3:a&&(_=2));var y=i;var b=o;var C=a;var w=s;var S=u;var L;var I="object"==typeof self?self:"object"==typeof r?r:{};var x=null;function N(t){null===x&&(x=I.setImmediate?I.setImmediate.bind(I):void 0!==e&&"function"==typeof e.nextTick?e.nextTick.bind(e):I.setTimeout.bind(I));return x(t)}var M=o?2:i?1:3}).call(this,n("5IsQ"),n("pCvA"))},AAdS:function(e,t,n){"use strict";n.d(t,"b",function(){return u});n.d(t,"a",function(){return l});n.d(t,"c",function(){return c});var r=n("aBfO");var i=n("wHma");var o=n("9X2a");var a=(s=function(e,t){return(s=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])})(e,t)},function(e,t){s(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var s;var u=function(){function e(e){this.timestamp=Date.now();this.browserEvent=e;this.leftButton=0===e.button;this.middleButton=1===e.button;this.rightButton=2===e.button;this.target=e.target;this.detail=e.detail||1;"dblclick"===e.type&&(this.detail=2);this.ctrlKey=e.ctrlKey;this.shiftKey=e.shiftKey;this.altKey=e.altKey;this.metaKey=e.metaKey;if("number"==typeof e.pageX){this.posx=e.pageX;this.posy=e.pageY}else{this.posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;this.posy=e.clientY+document.body.scrollTop+document.documentElement.scrollTop}var t=i["a"].getPositionOfChildWindowRelativeToAncestorWindow(self,e.view);this.posx-=t.left;this.posy-=t.top}e.prototype.preventDefault=function(){this.browserEvent.preventDefault&&this.browserEvent.preventDefault()};e.prototype.stopPropagation=function(){this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()};return e}();var l=function(e){a(t,e);function t(t){var n=e.call(this,t)||this;n.dataTransfer=t.dataTransfer;return n}return t}(u);var c=function(){function e(e,t,n){void 0===t&&(t=0);void 0===n&&(n=0);this.browserEvent=e||null;this.target=e?e.target||e.targetNode||e.srcElement:null;this.deltaY=n;this.deltaX=t;if(e){var i=e;var a=e;void 0!==i.wheelDeltaY?this.deltaY=i.wheelDeltaY/120:void 0!==a.VERTICAL_AXIS&&a.axis===a.VERTICAL_AXIS&&(this.deltaY=-a.detail/3);void 0!==i.wheelDeltaX?r["m"]&&o["g"]?this.deltaX=-i.wheelDeltaX/120:this.deltaX=i.wheelDeltaX/120:void 0!==a.HORIZONTAL_AXIS&&a.axis===a.HORIZONTAL_AXIS&&(this.deltaX=-e.detail/3);0===this.deltaY&&0===this.deltaX&&e.wheelDelta&&(this.deltaY=e.wheelDelta/120)}}e.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()};e.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()};return e}()},ArC5:function(e,t,n){var r=n("iGpD");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},B42n:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-action-bar {\r\n\ttext-align: right;\r\n\toverflow: hidden;\r\n\twhite-space: nowrap;\r\n}\r\n\r\n.monaco-action-bar .actions-container {\r\n\tdisplay: flex;\r\n\tmargin: 0 auto;\r\n\tpadding: 0;\r\n\twidth: 100%;\r\n\tjustify-content: flex-end;\r\n}\r\n\r\n.monaco-action-bar.vertical .actions-container {\r\n\tdisplay: inline-block;\r\n}\r\n\r\n.monaco-action-bar.reverse .actions-container {\r\n\tflex-direction: row-reverse;\r\n}\r\n\r\n.monaco-action-bar .action-item {\r\n\tcursor: pointer;\r\n\tdisplay: inline-block;\r\n\ttransition: transform 50ms ease;\r\n\tposition: relative; /* DO NOT REMOVE - this is the key to preventing the ghosting icon bug in Chrome 42 */\r\n}\r\n\r\n.monaco-action-bar .action-item.disabled {\r\n\tcursor: default;\r\n}\r\n\r\n.monaco-action-bar.animated .action-item.active {\r\n\ttransform: scale(1.272019649, 1.272019649); /* 1.272019649 = √φ */\r\n}\r\n\r\n.monaco-action-bar .action-item .icon {\r\n\tdisplay: inline-block;\r\n}\r\n\r\n.monaco-action-bar .action-label {\r\n\tfont-size: 11px;\r\n\tmargin-right: 4px;\r\n}\r\n\r\n.monaco-action-bar .action-label.octicon {\r\n\tfont-size: 15px;\r\n\tline-height: 35px;\r\n\ttext-align: center;\r\n}\r\n\r\n.monaco-action-bar .action-item.disabled .action-label,\r\n.monaco-action-bar .action-item.disabled .action-label:hover {\r\n\topacity: 0.4;\r\n}\r\n\r\n/* Vertical actions */\r\n\r\n.monaco-action-bar.vertical {\r\n\ttext-align: left;\r\n}\r\n\r\n.monaco-action-bar.vertical .action-item {\r\n\tdisplay: block;\r\n}\r\n\r\n.monaco-action-bar.vertical .action-label.separator {\r\n\tdisplay: block;\r\n\tborder-bottom: 1px solid #bbb;\r\n\tpadding-top: 1px;\r\n\tmargin-left: .8em;\r\n\tmargin-right: .8em;\r\n}\r\n\r\n.monaco-action-bar.animated.vertical .action-item.active {\r\n\ttransform: translate(5px, 0);\r\n}\r\n\r\n.secondary-actions .monaco-action-bar .action-label {\r\n\tmargin-left: 6px;\r\n}\r\n\r\n/* Action Items */\r\n.monaco-action-bar .action-item.select-container {\r\n\toverflow: hidden; /* somehow the dropdown overflows its container, we prevent it here to not push */\r\n\tflex: 1;\r\n\tmax-width: 170px;\r\n\tmin-width: 60px;\r\n\tdisplay: flex;\r\n\talign-items: center;\r\n\tjustify-content: center;\r\n}",""])},DTJD:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("f0s4");var i=(o=function(e,t){return(o=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])})(e,t)},function(e,t){o(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var o;var a=function(e){i(t,e);function t(t){var n=e.call(this,0)||this;for(var r=0,i=t.length;r<i;r++)n.set(t.charCodeAt(r),2);n.set(32,1);n.set(9,1);return n}return t}(r["a"]);function s(e){var t={};return function(n){t.hasOwnProperty(n)||(t[n]=e(n));return t[n]}}var u=s(function(e){return new a(e)})},Dg3a:function(e,t,n){"use strict";n.d(t,"b",function(){return r});n.d(t,"a",function(){return o});n.d(t,"c",function(){return a});n.d(t,"d",function(){return l});var r="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function i(e){void 0===e&&(e="");var t="(-?\\d*\\.\\d\\w*)|([^";for(var n=0;n<r.length;n++){if(e.indexOf(r[n])>=0)continue;t+="\\"+r[n]}t+="\\s]+)";return new RegExp(t,"g")}var o=i();function a(e){var t=o;if(e&&e instanceof RegExp)if(e.global)t=e;else{var n="g";e.ignoreCase&&(n+="i");e.multiline&&(n+="m");t=new RegExp(e.source,n)}t.lastIndex=0;return t}function s(e,t,n,r){var i=e-1-r;var o=n.lastIndexOf(" ",i-1)+1;var a=n.indexOf(" ",i);-1===a&&(a=n.length);t.lastIndex=o;var s;for(;s=t.exec(n);){var u=s.index||0;if(u<=i&&t.lastIndex>=i)return{word:s[0],startColumn:r+1+u,endColumn:r+1+t.lastIndex}}return null}function u(e,t,n,r){var i=e-1-r;t.lastIndex=0;var o;for(;o=t.exec(n);){var a=o.index||0;if(a>i)return null;if(t.lastIndex>=i)return{word:o[0],startColumn:r+1+a,endColumn:r+1+t.lastIndex}}return null}function l(e,t,n,r){t.lastIndex=0;var i=t.exec(n);if(!i)return null;var o=i[0].indexOf(" ")>=0?u(e,t,n,r):s(e,t,n,r);t.lastIndex=0;return o}},E5Z7:function(e,t,n){"use strict";n.d(t,"b",function(){return i});n.d(t,"a",function(){return o});var r=n("TihM");var i=Object(r["c"])("contextViewService");var o=Object(r["c"])("contextMenuService")},E6CA:function(e,t,n){"use strict";n.d(t,"b",function(){return d});n.d(t,"a",function(){return h});n.d(t,"c",function(){return f});var r=n("2fgB");var i=n.n(r);var o=n("ITjR");var a=n("9X2a");var s=n("zxKB");var u;var l;var c;function d(e){(u=document.createElement("div")).className="monaco-aria-container";(l=document.createElement("div")).className="monaco-alert";l.setAttribute("role","alert");l.setAttribute("aria-atomic","true");u.appendChild(l);(c=document.createElement("div")).className="monaco-status";c.setAttribute("role","status");c.setAttribute("aria-atomic","true");u.appendChild(c);e.appendChild(u)}function h(e){v(l,e)}function f(e){a["d"]?h(e):v(c,e)}var p=0;var g=void 0;function v(e,t){if(!u)return;if(g===t)p++;else{g=t;p=0}switch(p){case 0:break;case 1:t=o["a"]("repeated","{0} (occurred again)",t);break;default:t=o["a"]("repeatedNtimes","{0} (occurred {1} times)",t,p)}s["l"](e);e.textContent=t;e.style.visibility="hidden";e.style.visibility="visible"}},EV92:function(e,t,n){var r=n("s7tO");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},EWen:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .glyph-margin {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n}\r\n\r\n/*\r\n\tKeeping name short for faster parsing.\r\n\tcgmr = core glyph margin rendering (div)\r\n*/\r\n.monaco-editor .margin-view-overlays .cgmr {\r\n\tposition: absolute;\r\n}\r\n",""])},FPwH:function(e,t,n){"use strict";n.d(t,"c",function(){return a});n.d(t,"b",function(){return s});n.d(t,"a",function(){return u});n.d(t,"d",function(){return l});n.d(t,"e",function(){return c});var r=n("8fzD");var i=n("6cF/");var o;var a=new(function(){function e(){}e.prototype.clone=function(){return this};e.prototype.equals=function(e){return this===e};return e}());var s="vs.editor.nullMode";var u=new i["n"](s,0);function l(e,t,n,i){return new r["b"]([new r["a"](i,"",e)],n)}function c(e,t,n,i){var o=new Uint32Array(2);o[0]=i;o[1]=(16384|e<<0|2<<23)>>>0;return new r["c"](o,null===n?a:n)}},"GB/4":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("3Yp8");var i=function(){function e(e){this.element=e}return e}();var o=function(){function e(){}e.prototype.isEmpty=function(){return!this._first};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;var r=new i(e);if(this._first)if(t){var o=this._last;this._last=r;r.prev=o;o.next=r}else{var a=this._first;this._first=r;r.next=a;a.prev=r}else{this._first=r;this._last=r}return function(){var e=n._first;for(;e instanceof i;){if(e!==r){e=e.next;continue}if(e.prev&&e.next){var t=e.prev;t.next=e.next;e.next.prev=t}else if(e.prev||e.next)if(e.next){if(!e.prev){n._first=n._first.next;n._first.prev=void 0}}else{n._last=n._last.prev;n._last.next=void 0}else{n._first=void 0;n._last=void 0}break}}};e.prototype.iterator=function(){var e;var t=this._first;return{next:function(){if(!t)return r["c"];e?e.value=t.element:e={done:!1,value:t.element};t=t.next;return e}}};return e}()},GDdU:function(e,t,n){"use strict";n.d(t,"b",function(){return i});n.d(t,"h",function(){return o});n.d(t,"g",function(){return a});n.d(t,"f",function(){return s});n.d(t,"c",function(){return u});n.d(t,"i",function(){return l});n.d(t,"j",function(){return c});n.d(t,"d",function(){return h});n.d(t,"e",function(){return f});n.d(t,"k",function(){return p});n.d(t,"a",function(){return v});var r={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};function i(e){if(Array.isArray)return Array.isArray(e);if(e&&typeof e.length===r.number&&e.constructor===Array)return!0;return!1}function o(e){if(typeof e===r.string||e instanceof String)return!0;return!1}function a(e){return!(typeof e!==r.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function s(e){if((typeof e===r.number||e instanceof Number)&&!isNaN(e))return!0;return!1}function u(e){return!0===e||!1===e}function l(e){return typeof e===r.undefined}function c(e){return l(e)||null===e}var d=Object.prototype.hasOwnProperty;function h(e){if(!a(e))return!1;for(var t in e)if(d.call(e,t))return!1;return!0}function f(e){return typeof e===r.function}function p(e,t){var n=Math.min(e.length,t.length);for(var r=0;r<n;r++)g(e[r],t[r])}function g(e,t){if(o(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(f(t)){if(e instanceof t)return;if(!c(e)&&e.constructor===t)return;if(1===t.length&&!0===t.call(void 0,e))return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function v(e){var t=[];for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Object.create(e.prototype);e.apply(r,t);return r}},GOPO:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,'/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* -------------------- IE10 remove auto clear button -------------------- */\r\n\r\n::-ms-clear {\r\n\tdisplay: none;\r\n}\r\n\r\n/* All widgets */\r\n/* I am not a big fan of this rule */\r\n.monaco-editor .editor-widget input {\r\n\tcolor: inherit;\r\n}\r\n\r\n/* -------------------- Editor -------------------- */\r\n\r\n.monaco-editor {\r\n\tposition: relative;\r\n\toverflow: visible;\r\n\t-webkit-text-size-adjust: 100%;\r\n\t-webkit-font-feature-settings: "liga" off, "calt" off;\r\n\tfont-feature-settings: "liga" off, "calt" off;\r\n}\r\n.monaco-editor.enable-ligatures {\r\n\t-webkit-font-feature-settings: "liga" on, "calt" on;\r\n\tfont-feature-settings: "liga" on, "calt" on;\r\n}\r\n\r\n/* -------------------- Misc -------------------- */\r\n\r\n.monaco-editor .overflow-guard {\r\n\tposition: relative;\r\n\toverflow: hidden;\r\n}\r\n\r\n.monaco-editor .view-overlays {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n}',""])},GRIk:function(e,t,n){"use strict";n.r(t);var r=n("NRqW");var i=n("ITjR");var o=n("GDdU");var a=n("PFKJ");var s=n("kaC/");var u=n("Vp92");var l=n("KVQV");var c=n("jlTA");var d=n("5s6q");var h=65535;var f=16777215;var p=4278190080;var g=function(){function e(e,t,n){if(e.length!==t.length||e.length>h)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e;this._endIndexes=t;this._collapseStates=new Uint32Array(Math.ceil(e.length/32));this._types=n}e.prototype.ensureParentIndices=function(){var e=this;if(!this._parentsComputed){this._parentsComputed=!0;var t=[];var n=function(n,r){var i=t[t.length-1];return e.getStartLineNumber(i)<=n&&e.getEndLineNumber(i)>=r};for(var r=0,i=this._startIndexes.length;r<i;r++){var o=this._startIndexes[r];var a=this._endIndexes[r];if(o>16777215||a>16777215)throw new Error("startLineNumber or endLineNumber must not exceed 16777215");for(;t.length>0&&!n(o,a);)t.pop();var s=t.length>0?t[t.length-1]:-1;t.push(r);this._startIndexes[r]=o+((255&s)<<24);this._endIndexes[r]=a+((65280&s)<<16)}}};Object.defineProperty(e.prototype,"length",{get:function(){return this._startIndexes.length},enumerable:!0,configurable:!0});e.prototype.getStartLineNumber=function(e){return 16777215&this._startIndexes[e]};e.prototype.getEndLineNumber=function(e){return 16777215&this._endIndexes[e]};e.prototype.getType=function(e){return this._types?this._types[e]:void 0};e.prototype.hasTypes=function(){return!!this._types};e.prototype.isCollapsed=function(e){var t=e/32|0;var n=e%32;return 0!=(this._collapseStates[t]&1<<n)};e.prototype.setCollapsed=function(e,t){var n=e/32|0;var r=e%32;var i=this._collapseStates[n];this._collapseStates[n]=t?i|1<<r:i&~(1<<r)};e.prototype.toRegion=function(e){return new v(this,e)};e.prototype.getParentIndex=function(e){this.ensureParentIndices();var t=((4278190080&this._startIndexes[e])>>>24)+((4278190080&this._endIndexes[e])>>>16);if(t===h)return-1;return t};e.prototype.contains=function(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t};e.prototype.findIndex=function(e){var t=0,n=this._startIndexes.length;if(0===n)return-1;for(;t<n;){var r=Math.floor((t+n)/2);e<this.getStartLineNumber(r)?n=r:t=r+1}return t-1};e.prototype.findRange=function(e){var t=this.findIndex(e);if(t>=0){var n;if(this.getEndLineNumber(t)>=e)return t;t=this.getParentIndex(t);for(;-1!==t;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1};e.prototype.toString=function(){var e=[];for(var t=0;t<this.length;t++)e[t]="["+(this.isCollapsed(t)?"+":"-")+"] "+this.getStartLineNumber(t)+"/"+this.getEndLineNumber(t);return e.join(", ")};return e}();var v=function(){function e(e,t){this.ranges=e;this.index=t}Object.defineProperty(e.prototype,"startLineNumber",{get:function(){return this.ranges.getStartLineNumber(this.index)},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"endLineNumber",{get:function(){return this.ranges.getEndLineNumber(this.index)},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"regionIndex",{get:function(){return this.index},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"parentIndex",{get:function(){return this.ranges.getParentIndex(this.index)},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"isCollapsed",{get:function(){return this.ranges.isCollapsed(this.index)},enumerable:!0,configurable:!0});e.prototype.containedBy=function(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber};e.prototype.containsLine=function(e){return this.startLineNumber<=e&&e<=this.endLineNumber};return e}();var m=function(){function e(e,t){this._updateEventEmitter=new d["a"];this._textModel=e;this._decorationProvider=t;this._regions=new g(new Uint32Array(0),new Uint32Array(0));this._editorDecorationIds=[];this._isInitialized=!1}Object.defineProperty(e.prototype,"regions",{get:function(){return this._regions},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"textModel",{get:function(){return this._textModel},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"isInitialized",{get:function(){return this._isInitialized},enumerable:!0,configurable:!0});e.prototype.toggleCollapseState=function(e){var t=this;if(!e.length)return;var n={};this._decorationProvider.changeDecorations(function(r){for(var i=0,o=e;i<o.length;i++){var a;var s=o[i].regionIndex;var u=t._editorDecorationIds[s];if(u&&!n[u]){n[u]=!0;var l=!t._regions.isCollapsed(s);t._regions.setCollapsed(s,l);r.changeDecorationOptions(u,t._decorationProvider.getDecorationOption(l))}}});this._updateEventEmitter.fire({model:this,collapseStateChanged:e})};e.prototype.update=function(e,t){var n=this;void 0===t&&(t=[]);var r=[];var i=function(e,n){for(var r=0,i=t;r<i.length;r++){var o=i[r];if(e<o&&o<=n)return!0}return!1};var o=function(t,o){var a=e.getStartLineNumber(t);o&&i(a,e.getEndLineNumber(t))&&(o=!1);e.setCollapsed(t,o);var s=n._textModel.getLineMaxColumn(a);var u={startLineNumber:a,startColumn:s,endLineNumber:a,endColumn:s};r.push({range:u,options:n._decorationProvider.getDecorationOption(o)})};var a=0;var s=function(){for(;a<n._regions.length;){var e=n._regions.isCollapsed(a);a++;if(e)return a-1}return-1};var u=0;var l=s();for(;-1!==l&&u<e.length;){var c=this._textModel.getDecorationRange(this._editorDecorationIds[l]);if(c){var d=c.startLineNumber;if(this._textModel.getLineMaxColumn(d)===c.startColumn)for(;u<e.length;){var h=e.getStartLineNumber(u);if(!(d>=h))break;o(u,d===h);u++}}l=s()}for(;u<e.length;){o(u,!1);u++}this._editorDecorationIds=this._decorationProvider.deltaDecorations(this._editorDecorationIds,r);this._regions=e;this._isInitialized=!0;this._updateEventEmitter.fire({model:this})};e.prototype.getMemento=function(){var e=[];for(var t=0;t<this._regions.length;t++)if(this._regions.isCollapsed(t)){var n=this._textModel.getDecorationRange(this._editorDecorationIds[t]);if(n){var r=n.startLineNumber;var i=n.endLineNumber+this._regions.getEndLineNumber(t)-this._regions.getStartLineNumber(t);e.push({startLineNumber:r,endLineNumber:i})}}if(e.length>0)return e;return};e.prototype.applyMemento=function(e){if(!Array.isArray(e))return;var t=[];for(var n=0,r=e;n<r.length;n++){var i=r[n];var o=this.getRegionAtLine(i.startLineNumber);o&&!o.isCollapsed&&t.push(o)}this.toggleCollapseState(t)};e.prototype.dispose=function(){this._decorationProvider.deltaDecorations(this._editorDecorationIds,[])};e.prototype.getAllRegionsAtLine=function(e,t){var n=[];if(this._regions){var r=this._regions.findRange(e);var i=1;for(;r>=0;){var o=this._regions.toRegion(r);t&&!t(o,i)||n.push(o);i++;r=o.parentIndex}}return n};e.prototype.getRegionAtLine=function(e){if(this._regions){var t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null};e.prototype.getRegionsInside=function(e,t){var n=[];var r=e?e.regionIndex+1:0;var i=e?e.endLineNumber:Number.MAX_VALUE;if(t&&2===t.length){var o=[];for(var a=r,s=this._regions.length;a<s;a++){var u=this._regions.toRegion(a);if(!(this._regions.getStartLineNumber(a)<i))break;for(;o.length>0&&!u.containedBy(o[o.length-1]);)o.pop();o.push(u);t(u,o.length)&&n.push(u)}}else for(var a=r,s=this._regions.length;a<s;a++){var u=this._regions.toRegion(a);if(!(this._regions.getStartLineNumber(a)<i))break;t&&!t(u)||n.push(u)}return n};return e}();function _(e,t,n,r){void 0===n&&(n=Number.MAX_VALUE);var i=[];if(r&&r.length>0)for(var o=0,a=r;o<a.length;o++){var s=a[o];var u=e.getRegionAtLine(s);if(u){u.isCollapsed!==t&&i.push(u);if(n>1){var l=e.getRegionsInside(u,function(e,r){return e.isCollapsed!==t&&r<n});i.push.apply(i,l)}}}else{var l=e.getRegionsInside(null,function(e,r){return e.isCollapsed!==t&&r<n});i.push.apply(i,l)}e.toggleCollapseState(i)}function y(e,t,n,r){var i=[];for(var o=0,a=r;o<a.length;o++){var s=a[o];var u=e.getAllRegionsAtLine(s,function(e,r){return e.isCollapsed!==t&&r<=n});i.push.apply(i,u)}e.toggleCollapseState(i)}function b(e,t,n,r){var i=function(e,i){return i===t&&e.isCollapsed!==n&&!r.some(function(t){return e.containsLine(t)})};var o=e.getRegionsInside(null,i);e.toggleCollapseState(o)}function C(e,t,n){var r=e.textModel;var i=e.regions;var o=[];for(var a=i.length-1;a>=0;a--)if(n!==i.isCollapsed(a)){var s=i.getStartLineNumber(a);t.test(r.getLineContent(s))&&o.push(i.toRegion(a))}e.toggleCollapseState(o)}function w(e,t,n){var r=e.regions;var i=[];for(var o=r.length-1;o>=0;o--)n!==r.isCollapsed(o)&&t===r.getType(o)&&i.push(r.toRegion(o));e.toggleCollapseState(i)}var S=n("MrIk");var L=function(){function e(e){this.editor=e;this.autoHideFoldingControls=!0}e.prototype.getDecorationOption=function(t){return t?e.COLLAPSED_VISUAL_DECORATION:this.autoHideFoldingControls?e.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:e.EXPANDED_VISUAL_DECORATION};e.prototype.deltaDecorations=function(e,t){return this.editor.deltaDecorations(e,t)};e.prototype.changeDecorations=function(e){return this.editor.changeDecorations(e)};e.COLLAPSED_VISUAL_DECORATION=S["a"].register({stickiness:1,afterContentClassName:"inline-folded",linesDecorationsClassName:"folding collapsed"});e.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=S["a"].register({stickiness:1,linesDecorationsClassName:"folding"});e.EXPANDED_VISUAL_DECORATION=S["a"].register({stickiness:1,linesDecorationsClassName:"folding alwaysShowFoldIcons"});return e}();var I=n("gYaU");var x=n("cENI");var N=n("1RQC");var M=function(){function e(e){var t=this;this._updateEventEmitter=new d["a"];this._foldingModel=e;this._foldingModelListener=e.onDidChange(function(e){return t.updateHiddenRanges()});this._hiddenRanges=[];e.regions.length&&this.updateHiddenRanges()}Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._updateEventEmitter.event},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"hiddenRanges",{get:function(){return this._hiddenRanges},enumerable:!0,configurable:!0});e.prototype.updateHiddenRanges=function(){var e=!1;var t=[];var n=0;var r=0;var i=Number.MAX_VALUE;var o=-1;var a=this._foldingModel.regions;for(;n<a.length;n++){if(!a.isCollapsed(n))continue;var s=a.getStartLineNumber(n)+1;var u=a.getEndLineNumber(n);if(i<=s&&u<=o)continue;if(!e&&r<this._hiddenRanges.length&&this._hiddenRanges[r].startLineNumber===s&&this._hiddenRanges[r].endLineNumber===u){t.push(this._hiddenRanges[r]);r++}else{e=!0;t.push(new x["a"](s,1,u,1))}i=s;o=u}(e||r<this._hiddenRanges.length)&&this.applyHiddenRanges(t)};e.prototype.applyMemento=function(e){if(!Array.isArray(e)||0===e.length)return!1;var t=[];for(var n=0,r=e;n<r.length;n++){var i=r[n];if(!i.startLineNumber||!i.endLineNumber)return!1;t.push(new x["a"](i.startLineNumber+1,1,i.endLineNumber,1))}this.applyHiddenRanges(t);return!0};e.prototype.getMemento=function(){return this._hiddenRanges.map(function(e){return{startLineNumber:e.startLineNumber-1,endLineNumber:e.endLineNumber}})};e.prototype.applyHiddenRanges=function(e){this._hiddenRanges=e;this._updateEventEmitter.fire(e)};e.prototype.hasRanges=function(){return this._hiddenRanges.length>0};e.prototype.isHidden=function(e){return null!==k(this._hiddenRanges,e)};e.prototype.adjustSelections=function(e){var t=this;var n=!1;var r=this._foldingModel.textModel;var i=null;var o=function(e){i&&D(e,i)||(i=k(t._hiddenRanges,e));if(i)return i.startLineNumber-1;return null};for(var a=0,s=e.length;a<s;a++){var u=e[a];var l=o(u.startLineNumber);if(l){u=u.setStartPosition(l,r.getLineMaxColumn(l));n=!0}var c=o(u.endLineNumber);if(c){u=u.setEndPosition(c,r.getLineMaxColumn(c));n=!0}e[a]=u}return n};e.prototype.dispose=function(){if(this.hiddenRanges.length>0){this._hiddenRanges=[];this._updateEventEmitter.fire(this._hiddenRanges)}if(this._foldingModelListener){this._foldingModelListener.dispose();this._foldingModelListener=null}};return e}();function D(e,t){return e>=t.startLineNumber&&e<=t.endLineNumber}function k(e,t){var n=Object(N["d"])(e,function(e){return t<e.startLineNumber})-1;if(n>=0&&e[n].endLineNumber>=t)return e[n];return null}var O=n("gZKZ");var E=5e3;var T="indent";var A=function(){function e(e){this.editorModel=e;this.id=T}e.prototype.dispose=function(){};e.prototype.compute=function(e){var t=O["a"].getFoldingRules(this.editorModel.getLanguageIdentifier().id);var n=t&&!!t.offSide;var r=t&&t.markers;return Promise.resolve(P(this.editorModel,n,r))};return e}();var R=function(){function e(e){this._startIndexes=[];this._endIndexes=[];this._indentOccurrences=[];this._length=0;this._foldingRangesLimit=e}e.prototype.insertFirst=function(e,t,n){if(e>16777215||t>16777215)return;var r=this._length;this._startIndexes[r]=e;this._endIndexes[r]=t;this._length++;n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)};e.prototype.toIndentRanges=function(e){if(this._length<=this._foldingRangesLimit){var t=new Uint32Array(this._length);var n=new Uint32Array(this._length);for(var r=this._length-1,i=0;r>=0;r--,i++){t[i]=this._startIndexes[r];n[i]=this._endIndexes[r]}return new g(t,n)}var o=0;var a=this._indentOccurrences.length;for(var r=0;r<this._indentOccurrences.length;r++){var s=this._indentOccurrences[r];if(s){if(s+o>this._foldingRangesLimit){a=r;break}o+=s}}var u=e.getOptions().tabSize;var t=new Uint32Array(this._foldingRangesLimit);var n=new Uint32Array(this._foldingRangesLimit);for(var r=this._length-1,i=0;r>=0;r--){var l=this._startIndexes[r];var c=e.getLineContent(l);var d=S["b"].computeIndentLevel(c,u);if(d<a||d===a&&o++<this._foldingRangesLimit){t[i]=l;n[i]=this._endIndexes[r];i++}}return new g(t,n)};return e}();function P(e,t,n,r){void 0===r&&(r=E);var i=e.getOptions().tabSize;var o=new R(r);var a=void 0;n&&(a=new RegExp("("+n.start.source+")|(?:"+n.end.source+")"));var s=[];s.push({indent:-1,line:e.getLineCount()+1,marker:!1});for(var u=e.getLineCount();u>0;u--){var l=e.getLineContent(u);var c=S["b"].computeIndentLevel(l,i);var d=s[s.length-1];if(-1===c){t&&!d.marker&&(d.line=u);continue}var h=void 0;if(a&&(h=l.match(a))){if(!h[1]){s.push({indent:-2,line:u,marker:!0});continue}var f=s.length-1;for(;f>0&&!s[f].marker;)f--;if(f>0){s.length=f+1;d=s[f];o.insertFirst(u,d.line,c);d.marker=!1;d.indent=c;d.line=u;continue}}if(d.indent>c){do{s.pop();d=s[s.length-1]}while(d.indent>c);var p=d.line-1;p-u>=1&&o.insertFirst(u,p,c)}d.indent===c?d.line=u:s.push({indent:c,line:u,marker:!1})}return o.toIndentRanges(e)}var j=n("6cF/");var W=n("W5Z6");var F=5e3;var z={};var V="syntax";var B=function(){function e(e,t,n){void 0===n&&(n=F);this.editorModel=e;this.providers=t;this.limit=n;this.id=V}e.prototype.compute=function(e){var t=this;return H(this.providers,this.editorModel,e).then(function(e){if(e){var n;return Z(e,t.limit)}return null})};e.prototype.dispose=function(){};return e}();function H(e,t,n){var r=null;var i=e.map(function(e,i){return Promise.resolve(e.provideFoldingRanges(t,z,n)).then(function(e){if(n.isCancellationRequested)return;if(Array.isArray(e)){Array.isArray(r)||(r=[]);var o=t.getLineCount();for(var a=0,s=e;a<s.length;a++){var u=s[a];u.start>0&&u.end>u.start&&u.end<=o&&r.push({start:u.start,end:u.end,rank:i,kind:u.kind})}}},W["e"])});return Promise.all(i).then(function(e){return r})}var U=function(){function e(e){this._startIndexes=[];this._endIndexes=[];this._nestingLevels=[];this._nestingLevelCounts=[];this._types=[];this._length=0;this._foldingRangesLimit=e}e.prototype.add=function(e,t,n,r){if(e>16777215||t>16777215)return;var i=this._length;this._startIndexes[i]=e;this._endIndexes[i]=t;this._nestingLevels[i]=r;this._types[i]=n;this._length++;r<30&&(this._nestingLevelCounts[r]=(this._nestingLevelCounts[r]||0)+1)};e.prototype.toIndentRanges=function(){if(this._length<=this._foldingRangesLimit){var e=new Uint32Array(this._length);var t=new Uint32Array(this._length);for(var n=0;n<this._length;n++){e[n]=this._startIndexes[n];t[n]=this._endIndexes[n]}return new g(e,t,this._types)}var r=0;var i=this._nestingLevelCounts.length;for(var n=0;n<this._nestingLevelCounts.length;n++){var o=this._nestingLevelCounts[n];if(o){if(o+r>this._foldingRangesLimit){i=n;break}r+=o}}var e=new Uint32Array(this._foldingRangesLimit);var t=new Uint32Array(this._foldingRangesLimit);var a=[];for(var n=0,s=0;n<this._length;n++){var u=this._nestingLevels[n];if(u<i||u===i&&r++<this._foldingRangesLimit){e[s]=this._startIndexes[n];t[s]=this._endIndexes[n];a[s]=this._types[n];s++}}return new g(e,t,a)};return e}();function Z(e,t){var n=e.sort(function(e,t){var n=e.start-t.start;0===n&&(n=e.rank-t.rank);return n});var r=new U(t);var i=void 0;var o=[];for(var a=0,s=n;a<s.length;a++){var u=s[a];if(i){if(u.start>i.start)if(u.end<=i.end){o.push(i);i=u;r.add(u.start,u.end,u.kind&&u.kind.value,o.length)}else{if(u.start>i.end){do{i=o.pop()}while(i&&u.start>i.end);i&&o.push(i);i=u}r.add(u.start,u.end,u.kind&&u.kind.value,o.length)}}else{i=u;r.add(u.start,u.end,u.kind&&u.kind.value,o.length)}}return r.toIndentRanges()}var G="init";var Y=function(){function e(e,t,n,r){this.editorModel=e;this.id=G;if(t.length){var i=function(t){return{range:{startLineNumber:t.startLineNumber,startColumn:0,endLineNumber:t.endLineNumber,endColumn:e.getLineLength(t.endLineNumber)},options:{stickiness:1}}};this.decorationIds=e.deltaDecorations([],t.map(i));this.timeout=setTimeout(n,r)}}e.prototype.dispose=function(){if(this.decorationIds){this.editorModel.deltaDecorations(this.decorationIds,[]);this.decorationIds=void 0}if("number"==typeof this.timeout){clearTimeout(this.timeout);this.timeout=void 0}};e.prototype.compute=function(e){var t=[];if(this.decorationIds)for(var n=0,r=this.decorationIds;n<r.length;n++){var i=r[n];var o=this.editorModel.getDecorationRange(i);o&&t.push({start:o.startLineNumber,end:o.endLineNumber,rank:1})}return Promise.resolve(Z(t,Number.MAX_VALUE))};return e}();n.d(t,"ID",function(){return q});n.d(t,"FoldingController",function(){return J});var K=(Q=function(e,t){return(Q=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])})(e,t)},function(e,t){Q(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var Q;var q="editor.contrib.folding";var J=function(){function e(e){var t=this;this.editor=e;this._isEnabled=this.editor.getConfiguration().contribInfo.folding;this._autoHideFoldingControls="mouseover"===this.editor.getConfiguration().contribInfo.showFoldingControls;this._useFoldingProviders="indentation"!==this.editor.getConfiguration().contribInfo.foldingStrategy;this.globalToDispose=[];this.localToDispose=[];this.foldingDecorationProvider=new L(e);this.foldingDecorationProvider.autoHideFoldingControls=this._autoHideFoldingControls;this.globalToDispose.push(this.editor.onDidChangeModel(function(){return t.onModelChanged()}));this.globalToDispose.push(j["k"].onDidChange(function(){return t.onFoldingStrategyChanged()}));this.globalToDispose.push(this.editor.onDidChangeConfiguration(function(e){if(e.contribInfo){var n=t._isEnabled;t._isEnabled=t.editor.getConfiguration().contribInfo.folding;n!==t._isEnabled&&t.onModelChanged();var r=t._autoHideFoldingControls;t._autoHideFoldingControls="mouseover"===t.editor.getConfiguration().contribInfo.showFoldingControls;if(r!==t._autoHideFoldingControls){t.foldingDecorationProvider.autoHideFoldingControls=t._autoHideFoldingControls;t.onModelContentChanged()}var i=t._useFoldingProviders;t._useFoldingProviders="indentation"!==t.editor.getConfiguration().contribInfo.foldingStrategy;i!==t._useFoldingProviders&&t.onFoldingStrategyChanged()}}));this.globalToDispose.push({dispose:function(){return Object(l["d"])(t.localToDispose)}});this.onModelChanged()}e.get=function(e){return e.getContribution(q)};e.prototype.getId=function(){return q};e.prototype.dispose=function(){this.globalToDispose=Object(l["d"])(this.globalToDispose)};e.prototype.saveViewState=function(){var e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){var t=this.foldingModel.isInitialized?this.foldingModel.getMemento():this.hiddenRangeModel.getMemento();var n=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:n}}return};e.prototype.restoreViewState=function(e){var t=this.editor.getModel();if(!t||!this._isEnabled||t.isTooLargeForTokenization()||!this.hiddenRangeModel)return;if(!e||!e.collapsedRegions||e.lineCount!==t.getLineCount())return;e.provider!==V&&e.provider!==G||(this.foldingStateMemento=e);var n=e.collapsedRegions;if(this.hiddenRangeModel.applyMemento(n)){var r=this.getFoldingModel();r&&r.then(function(e){e&&e.applyMemento(n)}).then(void 0,W["d"])}};e.prototype.onModelChanged=function(){var e=this;this.localToDispose=Object(l["d"])(this.localToDispose);var t=this.editor.getModel();if(!this._isEnabled||!t||t.isTooLargeForTokenization())return;this.foldingModel=new m(t,this.foldingDecorationProvider);this.localToDispose.push(this.foldingModel);this.hiddenRangeModel=new M(this.foldingModel);this.localToDispose.push(this.hiddenRangeModel);this.localToDispose.push(this.hiddenRangeModel.onDidChange(function(t){return e.onHiddenRangesChanges(t)}));this.updateScheduler=new s["a"](200);this.cursorChangedScheduler=new s["c"](function(){return e.revealCursor()},200);this.localToDispose.push(this.cursorChangedScheduler);this.localToDispose.push(this.editor.onDidChangeModelLanguageConfiguration(function(){return e.onModelContentChanged()}));this.localToDispose.push(this.editor.onDidChangeModelContent(function(){return e.onModelContentChanged()}));this.localToDispose.push(this.editor.onDidChangeCursorPosition(function(){return e.onCursorPositionChanged()}));this.localToDispose.push(this.editor.onMouseDown(function(t){return e.onEditorMouseDown(t)}));this.localToDispose.push(this.editor.onMouseUp(function(t){return e.onEditorMouseUp(t)}));this.localToDispose.push({dispose:function(){if(e.foldingRegionPromise){e.foldingRegionPromise.cancel();e.foldingRegionPromise=null}e.updateScheduler&&e.updateScheduler.cancel();e.updateScheduler=null;e.foldingModel=null;e.foldingModelPromise=null;e.hiddenRangeModel=null;e.cursorChangedScheduler=null;e.foldingStateMemento=null;e.rangeProvider&&e.rangeProvider.dispose();e.rangeProvider=null}});this.onModelContentChanged()};e.prototype.onFoldingStrategyChanged=function(){this.rangeProvider&&this.rangeProvider.dispose();this.rangeProvider=null;this.onModelContentChanged()};e.prototype.getRangeProvider=function(e){var t=this;if(this.rangeProvider)return this.rangeProvider;this.rangeProvider=new A(e);if(this._useFoldingProviders&&this.foldingModel){var n=j["k"].ordered(this.foldingModel.textModel);if(0===n.length&&this.foldingStateMemento&&this.foldingStateMemento.collapsedRegions){var r;return this.rangeProvider=new Y(e,this.foldingStateMemento.collapsedRegions,function(){t.foldingStateMemento=null;t.onFoldingStrategyChanged()},3e4)}n.length>0&&(this.rangeProvider=new B(e,n))}this.foldingStateMemento=null;return this.rangeProvider};e.prototype.getFoldingModel=function(){return this.foldingModelPromise};e.prototype.onModelContentChanged=function(){var e=this;if(this.updateScheduler){if(this.foldingRegionPromise){this.foldingRegionPromise.cancel();this.foldingRegionPromise=null}this.foldingModelPromise=this.updateScheduler.trigger(function(){var t=e.foldingModel;if(!t)return null;var n=e.foldingRegionPromise=Object(s["f"])(function(n){return e.getRangeProvider(t.textModel).compute(n)});return n.then(function(r){if(r&&n===e.foldingRegionPromise){var i=e.editor.getSelections();var o=i?i.map(function(e){return e.startLineNumber}):[];t.update(r,o)}return t})})}};e.prototype.onHiddenRangesChanges=function(e){if(this.hiddenRangeModel&&e.length){var t=this.editor.getSelections();t&&this.hiddenRangeModel.adjustSelections(t)&&this.editor.setSelections(t)}this.editor.setHiddenAreas(e)};e.prototype.onCursorPositionChanged=function(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()};e.prototype.revealCursor=function(){var e=this;var t=this.getFoldingModel();if(!t)return;t.then(function(t){if(t){var n=e.editor.getSelections();if(n&&n.length>0){var r=[];var i=function(n){var i=n.selectionStartLineNumber;e.hiddenRangeModel&&e.hiddenRangeModel.isHidden(i)&&r.push.apply(r,t.getAllRegionsAtLine(i,function(e){return e.isCollapsed&&i>e.startLineNumber}))};for(var o=0,a=n;o<a.length;o++){var s;i(a[o])}if(r.length){t.toggleCollapseState(r);e.reveal(n[0].getPosition())}}}}).then(void 0,W["d"])};e.prototype.onEditorMouseDown=function(e){this.mouseDownInfo=null;if(!this.hiddenRangeModel||!e.target||!e.target.range)return;if(!e.event.leftButton&&!e.event.middleButton)return;var t=e.target.range;var n=!1;switch(e.target.type){case 4:var r=e.target.detail;var i=e.target.element.offsetLeft;var o;if(r.offsetX-i<5)return;n=!0;break;case 7:if(this.hiddenRangeModel.hasRanges()){var a;if(!e.target.detail.isAfterLines)break}return;case 6:if(this.hiddenRangeModel.hasRanges()){var s=this.editor.getModel();if(s&&t.startColumn===s.getLineMaxColumn(t.startLineNumber))break}return;default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:n}};e.prototype.onEditorMouseUp=function(e){var t=this;var n=this.getFoldingModel();if(!n||!this.mouseDownInfo||!e.target)return;var r=this.mouseDownInfo.lineNumber;var i=this.mouseDownInfo.iconClicked;var o=e.target.range;if(!o||o.startLineNumber!==r)return;if(i){if(4!==e.target.type)return}else{var a=this.editor.getModel();if(!a||o.startColumn!==a.getLineMaxColumn(r))return}n.then(function(n){if(n){var o=n.getRegionAtLine(r);if(o&&o.startLineNumber===r){var a=o.isCollapsed;if(i||a){var s=[o];(e.event.middleButton||e.event.shiftKey)&&s.push.apply(s,n.getRegionsInside(o,function(e){return e.isCollapsed===a}));n.toggleCollapseState(s);t.reveal({lineNumber:r,column:1})}}}}).then(void 0,W["d"])};e.prototype.reveal=function(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)};return e}();var X=function(e){K(t,e);function t(){return null!==e&&e.apply(this,arguments)||this}t.prototype.runEditorCommand=function(e,t,n){var r=this;var i=J.get(t);if(!i)return;var o=i.getFoldingModel();if(o){this.reportTelemetry(e,t);return o.then(function(e){if(e){r.invoke(i,e,t,n);var o=t.getSelection();o&&i.reveal(o.getStartPosition())}})}};t.prototype.getSelectedLines=function(e){var t=e.getSelections();return t?t.map(function(e){return e.startLineNumber}):[]};t.prototype.getLineNumbers=function(e,t){if(e&&e.selectionLines)return e.selectionLines.map(function(e){return e+1});return this.getSelectedLines(t)};t.prototype.run=function(e,t){};return t}(c["b"]);function $(e){if(!o["i"](e)){if(!o["g"](e))return!1;var t=e;if(!o["i"](t.levels)&&!o["f"](t.levels))return!1;if(!o["i"](t.direction)&&!o["h"](t.direction))return!1;if(!(o["i"](t.selectionLines)||o["b"](t.selectionLines)&&t.selectionLines.every(o["f"])))return!1}return!0}var ee=function(e){K(t,e);function t(){return e.call(this,{id:"editor.unfold",label:i["a"]("unfoldAction.label","Unfold"),alias:"Unfold",precondition:null,kbOpts:{kbExpr:I["a"].editorTextFocus,primary:3161,mac:{primary:2649},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t* 'levels': Number of levels to unfold. If not set, defaults to 1.\n\t\t\t\t\t\t* 'direction': If 'up', unfold given number of levels up otherwise unfolds down.\n\t\t\t\t\t\t* 'selectionLines': The start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:$}]}})||this}t.prototype.invoke=function(e,t,n,r){var i=r&&r.levels||1;var o=this.getLineNumbers(r,n);r&&"up"===r.direction?y(t,!1,i,o):_(t,!1,i,o)};return t}(X);var te=function(e){K(t,e);function t(){return e.call(this,{id:"editor.unfoldRecursively",label:i["a"]("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:null,kbOpts:{kbExpr:I["a"].editorTextFocus,primary:Object(u["a"])(2089,2137),weight:100}})||this}t.prototype.invoke=function(e,t,n,r){_(t,!1,Number.MAX_VALUE,this.getSelectedLines(n))};return t}(X);var ne=function(e){K(t,e);function t(){return e.call(this,{id:"editor.fold",label:i["a"]("foldAction.label","Fold"),alias:"Fold",precondition:null,kbOpts:{kbExpr:I["a"].editorTextFocus,primary:3159,mac:{primary:2647},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:"Property-value pairs that can be passed through this argument:\n\t\t\t\t\t\t\t* 'levels': Number of levels to fold. Defaults to 1.\n\t\t\t\t\t\t\t* 'direction': If 'up', folds given number of levels up otherwise folds down.\n\t\t\t\t\t\t\t* 'selectionLines': The start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used.\n\t\t\t\t\t\t",constraint:$}]}})||this}t.prototype.invoke=function(e,t,n,r){var i=r&&r.levels||1;var o=this.getLineNumbers(r,n);r&&"up"===r.direction?y(t,!0,i,o):_(t,!0,i,o)};return t}(X);var re=function(e){K(t,e);function t(){return e.call(this,{id:"editor.foldRecursively",label:i["a"]("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:null,kbOpts:{kbExpr:I["a"].editorTextFocus,primary:Object(u["a"])(2089,2135),weight:100}})||this}t.prototype.invoke=function(e,t,n){var r=this.getSelectedLines(n);_(t,!0,Number.MAX_VALUE,r)};return t}(X);var ie=function(e){K(t,e);function t(){return e.call(this,{id:"editor.foldAllBlockComments",label:i["a"]("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:null,kbOpts:{kbExpr:I["a"].editorTextFocus,primary:Object(u["a"])(2089,2133),weight:100}})||this}t.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())w(t,j["j"].Comment.value,!0);else{var r=n.getModel();if(!r)return;var i=O["a"].getComments(r.getLanguageIdentifier().id);if(i&&i.blockCommentStartToken){var o;C(t,new RegExp("^\\s*"+Object(a["l"])(i.blockCommentStartToken)),!0)}}};return t}(X);var oe=function(e){K(t,e);function t(){return e.call(this,{id:"editor.foldAllMarkerRegions",label:i["a"]("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:null,kbOpts:{kbExpr:I["a"].editorTextFocus,primary:Object(u["a"])(2089,2077),weight:100}})||this}t.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())w(t,j["j"].Region.value,!0);else{var r=n.getModel();if(!r)return;var i=O["a"].getFoldingRules(r.getLanguageIdentifier().id);if(i&&i.markers&&i.markers.start){var o;C(t,new RegExp(i.markers.start),!0)}}};return t}(X);var ae=function(e){K(t,e);function t(){return e.call(this,{id:"editor.unfoldAllMarkerRegions",label:i["a"]("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:null,kbOpts:{kbExpr:I["a"].editorTextFocus,primary:Object(u["a"])(2089,2078),weight:100}})||this}t.prototype.invoke=function(e,t,n){if(t.regions.hasTypes())w(t,j["j"].Region.value,!1);else{var r=n.getModel();if(!r)return;var i=O["a"].getFoldingRules(r.getLanguageIdentifier().id);if(i&&i.markers&&i.markers.start){var o;C(t,new RegExp(i.markers.start),!1)}}};return t}(X);var se=function(e){K(t,e);function t(){return e.call(this,{id:"editor.foldAll",label:i["a"]("foldAllAction.label","Fold All"),alias:"Fold All",precondition:null,kbOpts:{kbExpr:I["a"].editorTextFocus,primary:Object(u["a"])(2089,2069),weight:100}})||this}t.prototype.invoke=function(e,t,n){_(t,!0)};return t}(X);var ue=function(e){K(t,e);function t(){return e.call(this,{id:"editor.unfoldAll",label:i["a"]("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:null,kbOpts:{kbExpr:I["a"].editorTextFocus,primary:Object(u["a"])(2089,2088),weight:100}})||this}t.prototype.invoke=function(e,t,n){_(t,!1)};return t}(X);var le=function(e){K(t,e);function t(){return null!==e&&e.apply(this,arguments)||this}t.prototype.getFoldingLevel=function(){return parseInt(this.id.substr(t.ID_PREFIX.length))};t.prototype.invoke=function(e,t,n){b(t,this.getFoldingLevel(),!0,this.getSelectedLines(n))};t.ID_PREFIX="editor.foldLevel";t.ID=function(e){return t.ID_PREFIX+e};return t}(X);Object(c["g"])(J);Object(c["e"])(ee);Object(c["e"])(te);Object(c["e"])(ne);Object(c["e"])(re);Object(c["e"])(se);Object(c["e"])(ue);Object(c["e"])(ie);Object(c["e"])(oe);Object(c["e"])(ae);for(var ce=1;ce<=7;ce++)Object(c["h"])(new le({id:le.ID(ce),label:i["a"]("foldLevelAction.label","Fold Level {0}",ce),alias:"Fold Level "+ce,precondition:null,kbOpts:{kbExpr:I["a"].editorTextFocus,primary:Object(u["a"])(2089,2048|21+ce),weight:100}}))},GmUz:function(e,t,n){"use strict";n.d(t,"a",function(){return l});n.d(t,"d",function(){return h});n.d(t,"c",function(){return p});n.d(t,"e",function(){return m});n.d(t,"b",function(){return _});var r=n("PFKJ");var i=n("DTJD");var o=n("6dSJ");var a=n("cENI");var s=n("rTC2");var u=999;var l=function(){function e(e,t,n,r){this.searchString=e;this.isRegex=t;this.matchCase=n;this.wordSeparators=r}e.prototype.parseSearchRequest=function(){if(""===this.searchString)return null;var e;e=this.isRegex?c(this.searchString):this.searchString.indexOf("\n")>=0;var t=null;try{t=r["g"](this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0})}catch(e){return null}if(!t)return null;var n=!this.isRegex&&!e;n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase);return new d(t,this.wordSeparators?Object(i["a"])(this.wordSeparators):null,n?this.searchString:null)};return e}();function c(e){if(!e||0===e.length)return!1;for(var t=0,n=e.length;t<n;t++){var r;if(92===e.charCodeAt(t)){if(++t>=n)break;var i=e.charCodeAt(t);if(110===i||114===i||87===i)return!0}}return!1}var d=function(){function e(e,t,n){this.regex=e;this.wordSeparators=t;this.simpleSearch=n}return e}();function h(e,t,n){if(!n)return new s["b"](e,null);var r=[];for(var i=0,o=t.length;i<o;i++)r[i]=t[i];return new s["b"](e,r)}var f=function(){function e(e){var t=[];var n=0;for(var r=0,i=e.length;r<i;r++)10===e.charCodeAt(r)&&(t[n++]=r);this._lineFeedsOffsets=t}e.prototype.findLineFeedCountBeforeOffset=function(e){var t=this._lineFeedsOffsets;var n=0;var r=t.length-1;if(-1===r)return 0;if(e<=t[0])return 0;for(;n<r;){var i=n+((r-n)/2>>0);if(t[i]>=e)r=i-1;else if(t[i+1]>=e){n=i;r=i}else n=i+1}return n+1};return e}();var p=function(){function e(){}e.findMatches=function(e,t,n,r,i){var o=t.parseSearchRequest();if(!o)return[];if(o.regex.multiline)return this._doFindMatchesMultiline(e,n,new _(o.wordSeparators,o.regex),r,i);return this._doFindMatchesLineByLine(e,n,o,r,i)};e._getMultilineMatchRange=function(e,t,n,r,i,o){var s;var u=0;s=r?t+i+(u=r.findLineFeedCountBeforeOffset(i)):t+i;var l;if(r){var c;var d=r.findLineFeedCountBeforeOffset(i+o.length)-u;l=s+o.length+d}else l=s+o.length;var h=e.getPositionAt(s);var f=e.getPositionAt(l);return new a["a"](h.lineNumber,h.column,f.lineNumber,f.column)};e._doFindMatchesMultiline=function(e,t,n,r,i){var o=e.getOffsetAt(t.getStartPosition());var a=e.getValueInRange(t,1);var s="\r\n"===e.getEOL()?new f(a):null;var u=[];var l=0;var c;n.reset(0);for(;c=n.next(a);){u[l++]=h(this._getMultilineMatchRange(e,o,a,s,c.index,c[0]),c,r);if(l>=i)return u}return u};e._doFindMatchesLineByLine=function(e,t,n,r,i){var o=[];var a=0;if(t.startLineNumber===t.endLineNumber){var s=e.getLineContent(t.startLineNumber).substring(t.startColumn-1,t.endColumn-1);a=this._findMatchesInLine(n,s,t.startLineNumber,t.startColumn-1,a,o,r,i);return o}var u=e.getLineContent(t.startLineNumber).substring(t.startColumn-1);a=this._findMatchesInLine(n,u,t.startLineNumber,t.startColumn-1,a,o,r,i);for(var l=t.startLineNumber+1;l<t.endLineNumber&&a<i;l++)a=this._findMatchesInLine(n,e.getLineContent(l),l,0,a,o,r,i);if(a<i){var c=e.getLineContent(t.endLineNumber).substring(0,t.endColumn-1);a=this._findMatchesInLine(n,c,t.endLineNumber,0,a,o,r,i)}return o};e._findMatchesInLine=function(e,t,n,r,i,o,u,l){var c=e.wordSeparators;if(!u&&e.simpleSearch){var d=e.simpleSearch;var f=d.length;var p=t.length;var g=-f;for(;-1!==(g=t.indexOf(d,g+f));)if(!c||m(c,t,p,g,f)){o[i++]=new s["b"](new a["a"](n,g+1+r,n,g+1+f+r),null);if(i>=l)return i}return i}var v=new _(e.wordSeparators,e.regex);var y;v.reset(0);do{if(y=v.next(t)){o[i++]=h(new a["a"](n,y.index+1+r,n,y.index+1+y[0].length+r),y,u);if(i>=l)return i}}while(y);return i};e.findNextMatch=function(e,t,n,r){var i=t.parseSearchRequest();if(!i)return null;var o=new _(i.wordSeparators,i.regex);if(i.regex.multiline)return this._doFindNextMatchMultiline(e,n,o,r);return this._doFindNextMatchLineByLine(e,n,o,r)};e._doFindNextMatchMultiline=function(e,t,n,r){var i=new o["a"](t.lineNumber,1);var s=e.getOffsetAt(i);var u=e.getLineCount();var l=e.getValueInRange(new a["a"](i.lineNumber,i.column,u,e.getLineMaxColumn(u)),1);var c="\r\n"===e.getEOL()?new f(l):null;n.reset(t.column-1);var d=n.next(l);if(d)return h(this._getMultilineMatchRange(e,s,l,c,d.index,d[0]),d,r);if(1!==t.lineNumber||1!==t.column)return this._doFindNextMatchMultiline(e,new o["a"](1,1),n,r);return null};e._doFindNextMatchLineByLine=function(e,t,n,r){var i=e.getLineCount();var o=t.lineNumber;var a=e.getLineContent(o);var s=this._findFirstMatchInLine(n,a,o,t.column,r);if(s)return s;for(var u=1;u<=i;u++){var l=(o+u-1)%i;var c=e.getLineContent(l+1);var d=this._findFirstMatchInLine(n,c,l+1,1,r);if(d)return d}return null};e._findFirstMatchInLine=function(e,t,n,r,i){e.reset(r-1);var o=e.next(t);if(o)return h(new a["a"](n,o.index+1,n,o.index+1+o[0].length),o,i);return null};e.findPreviousMatch=function(e,t,n,r){var i=t.parseSearchRequest();if(!i)return null;var o=new _(i.wordSeparators,i.regex);if(i.regex.multiline)return this._doFindPreviousMatchMultiline(e,n,o,r);return this._doFindPreviousMatchLineByLine(e,n,o,r)};e._doFindPreviousMatchMultiline=function(e,t,n,r){var i=this._doFindMatchesMultiline(e,new a["a"](1,1,t.lineNumber,t.column),n,r,9990);if(i.length>0)return i[i.length-1];var s=e.getLineCount();if(t.lineNumber!==s||t.column!==e.getLineMaxColumn(s))return this._doFindPreviousMatchMultiline(e,new o["a"](s,e.getLineMaxColumn(s)),n,r);return null};e._doFindPreviousMatchLineByLine=function(e,t,n,r){var i=e.getLineCount();var o=t.lineNumber;var a=e.getLineContent(o).substring(0,t.column-1);var s=this._findLastMatchInLine(n,a,o,r);if(s)return s;for(var u=1;u<=i;u++){var l=(i+o-u-1)%i;var c=e.getLineContent(l+1);var d=this._findLastMatchInLine(n,c,l+1,r);if(d)return d}return null};e._findLastMatchInLine=function(e,t,n,r){var i=null;var o;e.reset(0);for(;o=e.next(t);)i=h(new a["a"](n,o.index+1,n,o.index+1+o[0].length),o,r);return i};return e}();function g(e,t,n,r,i){if(0===r)return!0;var o=t.charCodeAt(r-1);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(i>0){var a=t.charCodeAt(r);if(0!==e.get(a))return!0}return!1}function v(e,t,n,r,i){if(r+i===n)return!0;var o=t.charCodeAt(r+i);if(0!==e.get(o))return!0;if(13===o||10===o)return!0;if(i>0){var a=t.charCodeAt(r+i-1);if(0!==e.get(a))return!0}return!1}function m(e,t,n,r,i){return g(e,t,n,r,i)&&v(e,t,n,r,i)}var _=function(){function e(e,t){this._wordSeparators=e;this._searchRegex=t;this._prevMatchStartIndex=-1;this._prevMatchLength=0}e.prototype.reset=function(e){this._searchRegex.lastIndex=e;this._prevMatchStartIndex=-1;this._prevMatchLength=0};e.prototype.next=function(e){var t=e.length;var n;do{if(this._prevMatchStartIndex+this._prevMatchLength===t)return null;if(!(n=this._searchRegex.exec(e)))return null;var r=n.index;var i=n[0].length;if(r===this._prevMatchStartIndex&&i===this._prevMatchLength)return null;this._prevMatchStartIndex=r;this._prevMatchLength=i;if(!this._wordSeparators||m(this._wordSeparators,e,t,r,i))return n}while(n);return null};return e}()},"HT/t":function(e,t,n){var r=n("3AuD");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},HV3k:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,'/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* Checkbox */\r\n\r\n.monaco-checkbox .label {\r\n\twidth: 12px;\r\n\theight: 12px;\r\n\tborder: 1px solid black;\r\n\tbackground-color: transparent;\r\n\tdisplay: inline-block;\r\n}\r\n\r\n.monaco-checkbox .checkbox {\r\n\tposition: absolute;\r\n\toverflow: hidden;\r\n\tclip: rect(0 0 0 0);\r\n\theight: 1px;\r\n\twidth: 1px;\r\n\tmargin: -1px;\r\n\tpadding: 0;\r\n\tborder: 0;\r\n}\r\n\r\n.monaco-checkbox .checkbox:checked + .label {\r\n\tbackground-color: black;\r\n}\r\n\r\n/* Find widget */\r\n.monaco-editor .find-widget {\r\n\tposition: absolute;\r\n\tz-index: 10;\r\n\ttop: -44px; /* find input height + shadow (10px) */\r\n\theight: 34px; /* find input height */\r\n\toverflow: hidden;\r\n\tline-height: 19px;\r\n\ttransition: top 200ms linear;\r\n\tpadding: 0 4px;\r\n}\r\n/* Find widget when replace is toggled on */\r\n.monaco-editor .find-widget.replaceToggled {\r\n\ttop: -74px; /* find input height + replace input height + shadow (10px) */\r\n\theight: 64px; /* find input height + replace input height */\r\n}\r\n.monaco-editor .find-widget.replaceToggled > .replace-part {\r\n\tdisplay: flex;\r\n\tdisplay: -webkit-flex;\r\n\talign-items: center;\r\n}\r\n\r\n.monaco-editor .find-widget.visible,\r\n.monaco-editor .find-widget.replaceToggled.visible {\r\n\ttop: 0;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-inputbox .input {\r\n\tbackground-color: transparent;\r\n\t/* Style to compensate for //winjs */\r\n\tmin-height: 0;\r\n}\r\n\r\n.monaco-editor .find-widget .replace-input .input {\r\n\tfont-size: 13px;\r\n}\r\n\r\n.monaco-editor .find-widget > .find-part,\r\n.monaco-editor .find-widget > .replace-part {\r\n\tmargin: 4px 0 0 17px;\r\n\tfont-size: 12px;\r\n\tdisplay: flex;\r\n\tdisplay: -webkit-flex;\r\n\talign-items: center;\r\n}\r\n\r\n.monaco-editor .find-widget > .find-part .monaco-inputbox,\r\n.monaco-editor .find-widget > .replace-part .monaco-inputbox {\r\n\theight: 25px;\r\n}\r\n\r\n.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .input {\r\n\twidth: 100% !important;\r\n\tpadding-right: 66px;\r\n}\r\n.monaco-editor .find-widget > .find-part .monaco-inputbox > .wrapper > .input,\r\n.monaco-editor .find-widget > .replace-part .monaco-inputbox > .wrapper > .input {\r\n\tpadding-top: 2px;\r\n\tpadding-bottom: 2px;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-findInput {\r\n\tvertical-align: middle;\r\n\tdisplay: flex;\r\n\tdisplay: -webkit-flex;\r\n\tflex:1;\r\n}\r\n\r\n.monaco-editor .find-widget .matchesCount {\r\n\tdisplay: flex;\r\n\tdisplay: -webkit-flex;\r\n\tflex: initial;\r\n\tmargin: 0 1px 0 3px;\r\n\tpadding: 2px 2px 0 2px;\r\n\theight: 25px;\r\n\tvertical-align: middle;\r\n\tbox-sizing: border-box;\r\n\ttext-align: center;\r\n\tline-height: 23px;\r\n}\r\n\r\n.monaco-editor .find-widget .button {\r\n\tmin-width: 20px;\r\n\twidth: 20px;\r\n\theight: 20px;\r\n\tdisplay: flex;\r\n\tdisplay: -webkit-flex;\r\n\tflex: initial;\r\n\tmargin-left: 3px;\r\n\tbackground-position: center center;\r\n\tbackground-repeat: no-repeat;\r\n\tcursor: pointer;\r\n}\r\n\r\n.monaco-editor .find-widget .button:not(.disabled):hover {\r\n\tbackground-color: rgba(0, 0, 0, 0.1);\r\n}\r\n\r\n.monaco-editor .find-widget .button.left {\r\n\tmargin-left: 0;\r\n\tmargin-right: 3px;\r\n}\r\n\r\n.monaco-editor .find-widget .button.wide {\r\n\twidth: auto;\r\n\tpadding: 1px 6px;\r\n\ttop: -1px;\r\n}\r\n\r\n.monaco-editor .find-widget .button.toggle {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\twidth: 18px;\r\n\theight: 100%;\r\n\t-webkit-box-sizing:\tborder-box;\r\n\t-o-box-sizing:\t\tborder-box;\r\n\t-moz-box-sizing:\tborder-box;\r\n\t-ms-box-sizing:\t\tborder-box;\r\n\tbox-sizing:\t\t\tborder-box;\r\n}\r\n\r\n.monaco-editor .find-widget .button.toggle.disabled {\r\n\tdisplay: none;\r\n}\r\n\r\n.monaco-editor .find-widget .previous {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiDQoJIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSItMSAtMyAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAtMSAtMyAxNiAxNiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8cG9seWdvbiBmaWxsPSIjNDI0MjQyIiBwb2ludHM9IjEzLDQgNiw0IDksMSA2LDEgMiw1IDYsOSA5LDkgNiw2IDEzLDYgIi8+DQo8L3N2Zz4NCg==");\r\n}\r\n\r\n.monaco-editor .find-widget .next {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiDQoJIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSItMSAtMyAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAtMSAtMyAxNiAxNiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8cGF0aCBmaWxsPSIjNDI0MjQyIiBkPSJNMSw0aDdMNSwxaDNsNCw0TDgsOUg1bDMtM0gxVjR6Ii8+DQo8L3N2Zz4NCg==");\r\n}\r\n\r\n.monaco-editor .find-widget .disabled {\r\n\topacity: 0.3;\r\n\tcursor: default;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-checkbox {\r\n\twidth: 20px;\r\n\theight: 20px;\r\n\tdisplay: inline-block;\r\n\tvertical-align: middle;\r\n\tmargin-left: 3px;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-checkbox .label {\r\n\tcontent: \'\';\r\n\tdisplay: inline-block;\r\n\tbackground-repeat: no-repeat;\r\n\tbackground-position: 0 0;\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+DQo8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLC0xMDMyLjM2MjIpIj4NCiAgPHJlY3Qgd2lkdGg9IjkiIGhlaWdodD0iMiIgeD0iMiIgeT0iMTA0Ni4zNjIyIiBzdHlsZT0iZmlsbDojNDI0MjQyO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPg0KICA8cmVjdCB3aWR0aD0iMTMiIGhlaWdodD0iMiIgeD0iMiIgeT0iMTA0My4zNjIyIiBzdHlsZT0iZmlsbDojNDI0MjQyO2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPg0KICA8cmVjdCB3aWR0aD0iNiIgaGVpZ2h0PSIyIiB4PSIyIiB5PSIxMDQwLjM2MjIiIHN0eWxlPSJmaWxsOiM0MjQyNDI7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmUiIC8+DQogIDxyZWN0IHdpZHRoPSIxMiIgaGVpZ2h0PSIyIiB4PSIyIiB5PSIxMDM3LjM2MjIiIHN0eWxlPSJmaWxsOiM0MjQyNDI7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmUiIC8+DQo8L2c+DQo8L3N2Zz4=");\r\n\twidth: 20px;\r\n\theight: 20px;\r\n\tborder: none;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-checkbox .checkbox:disabled + .label {\r\n\topacity: 0.3;\r\n\tcursor: default;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-checkbox .checkbox:not(:disabled) + .label {\r\n\tcursor: pointer;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-checkbox .checkbox:not(:disabled):hover:before + .label {\r\n\tbackground-color: #DDD;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-checkbox .checkbox:checked + .label {\r\n\tbackground-color: rgba(100, 100, 100, 0.2);\r\n}\r\n\r\n.monaco-editor .find-widget .close-fw {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iIzQyNDI0MiIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==");\r\n}\r\n\r\n.monaco-editor .find-widget .expand {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iIzY0NjQ2NSIgZD0iTTExIDEwLjA3aC01LjY1Nmw1LjY1Ni01LjY1NnY1LjY1NnoiLz48L3N2Zz4=");\r\n}\r\n\r\n.monaco-editor .find-widget .collapse {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iIzY0NjQ2NSIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRsMS41ODYgMS41ODYtMS41ODYgMS41ODZ2LTMuMTcyeiIvPjwvc3ZnPg==");\r\n}\r\n\r\n.monaco-editor .find-widget .replace {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCINCgkgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDE2IDE2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnIGlkPSJpY29uX3g1Rl9iZyI+DQoJPGc+DQoJCTxwYXRoIGZpbGw9IiM0MjQyNDIiIGQ9Ik0xMSwzVjFoLTF2NXYxaDFoMmgxVjRWM0gxMXogTTEzLDZoLTJWNGgyVjZ6Ii8+DQoJCTxwYXRoIGZpbGw9IiM0MjQyNDIiIGQ9Ik0yLDE1aDdWOUgyVjE1eiBNNCwxMGgzdjFINXYyaDJ2MUg0VjEweiIvPg0KCTwvZz4NCjwvZz4NCjxnIGlkPSJjb2xvcl94NUZfaW1wb3J0YW5jZSI+DQoJPHBhdGggZmlsbD0iIzAwNTM5QyIgZD0iTTMuOTc5LDMuNUw0LDZMMyw1djEuNUw0LjUsOEw2LDYuNVY1TDUsNkw0Ljk3OSwzLjVjMC0wLjI3NSwwLjIyNS0wLjUsMC41LTAuNUg5VjJINS40NzkNCgkJQzQuNjUxLDIsMy45NzksMi42NzMsMy45NzksMy41eiIvPg0KPC9nPg0KPC9zdmc+DQo=");\r\n}\r\n\r\n.monaco-editor .find-widget .replace-all {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCINCgkgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDE2IDE2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnIGlkPSJpY29uX3g1Rl9iZyI+DQoJPHBhdGggZmlsbD0iIzQyNDI0MiIgZD0iTTExLDE1VjlIMXY2SDExeiBNMiwxNHYtMmgxdi0xSDJ2LTFoM3Y0SDJ6IE0xMCwxMUg4djJoMnYxSDd2LTRoM1YxMXogTTMsMTN2LTFoMXYxSDN6IE0xMyw3djZoLTFWOEg1VjcNCgkJSDEzeiBNMTMsMlYxaC0xdjVoM1YySDEzeiBNMTQsNWgtMVYzaDFWNXogTTExLDJ2NEg4VjRoMXYxaDFWNEg5VjNIOFYySDExeiIvPg0KPC9nPg0KPGcgaWQ9ImNvbG9yX3g1Rl9hY3Rpb24iPg0KCTxwYXRoIGZpbGw9IiMwMDUzOUMiIGQ9Ik0xLjk3OSwzLjVMMiw2TDEsNXYxLjVMMi41LDhMNCw2LjVWNUwzLDZMMi45NzksMy41YzAtMC4yNzUsMC4yMjUtMC41LDAuNS0wLjVIN1YySDMuNDc5DQoJCUMyLjY1MSwyLDEuOTc5LDIuNjczLDEuOTc5LDMuNXoiLz4NCjwvZz4NCjwvc3ZnPg0K");\r\n}\r\n\r\n.monaco-editor .find-widget > .replace-part {\r\n\tdisplay: none;\r\n}\r\n\r\n.monaco-editor .find-widget > .replace-part > .replace-input {\r\n\tdisplay: flex;\r\n\tdisplay: -webkit-flex;\r\n\tvertical-align: middle;\r\n\twidth: auto !important;\r\n}\r\n\r\n/* REDUCED */\r\n.monaco-editor .find-widget.reduced-find-widget .matchesCount,\r\n.monaco-editor .find-widget.reduced-find-widget .monaco-checkbox {\r\n\tdisplay:none;\r\n}\r\n\r\n/* NARROW (SMALLER THAN REDUCED) */\r\n.monaco-editor .find-widget.narrow-find-widget {\r\n\tmax-width: 257px !important;\r\n}\r\n\r\n/* COLLAPSED (SMALLER THAN NARROW) */\r\n.monaco-editor .find-widget.collapsed-find-widget {\r\n\tmax-width: 170px !important;\r\n}\r\n\r\n.monaco-editor .find-widget.collapsed-find-widget .button.previous,\r\n.monaco-editor .find-widget.collapsed-find-widget .button.next,\r\n.monaco-editor .find-widget.collapsed-find-widget .button.replace,\r\n.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,\r\n.monaco-editor .find-widget.collapsed-find-widget > .find-part .monaco-findInput .controls {\r\n\tdisplay:none;\r\n}\r\n\r\n.monaco-editor .findMatch {\r\n\t-webkit-animation-duration: 0;\r\n\t-webkit-animation-name: inherit !important;\r\n\t-moz-animation-duration: 0;\r\n\t-moz-animation-name: inherit !important;\r\n\t-ms-animation-duration: 0;\r\n\t-ms-animation-name: inherit !important;\r\n\tanimation-duration: 0;\r\n\tanimation-name: inherit !important;\r\n}\r\n\r\n.monaco-editor .find-widget .monaco-sash {\r\n\twidth: 2px !important;\r\n\tmargin-left: -4px;\r\n}\r\n\r\n.monaco-editor.hc-black .find-widget .previous,\r\n.monaco-editor.vs-dark .find-widget .previous {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiDQoJIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSItMSAtMyAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAtMSAtMyAxNiAxNiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8cG9seWdvbiBmaWxsPSIjQzVDNUM1IiBwb2ludHM9IjEzLDQgNiw0IDksMSA2LDEgMiw1IDYsOSA5LDkgNiw2IDEzLDYgIi8+DQo8L3N2Zz4NCg==");\r\n}\r\n\r\n.monaco-editor.hc-black .find-widget .next,\r\n.monaco-editor.vs-dark .find-widget .next {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiDQoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiDQoJIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSItMSAtMyAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAtMSAtMyAxNiAxNiIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8cGF0aCBmaWxsPSIjQzVDNUM1IiBkPSJNMSw0aDdMNSwxaDNsNCw0TDgsOUg1bDMtM0gxVjR6Ii8+DQo8L3N2Zz4NCg==");\r\n}\r\n\r\n.monaco-editor.hc-black .find-widget .monaco-checkbox .label,\r\n.monaco-editor.vs-dark .find-widget .monaco-checkbox .label {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+DQo8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgwLC0xMDMyLjM2MjIpIj4NCiAgPHJlY3Qgd2lkdGg9IjkiIGhlaWdodD0iMiIgeD0iMiIgeT0iMTA0Ni4zNjIyIiBzdHlsZT0iZmlsbDojQzVDNUM1O2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPg0KICA8cmVjdCB3aWR0aD0iMTMiIGhlaWdodD0iMiIgeD0iMiIgeT0iMTA0My4zNjIyIiBzdHlsZT0iZmlsbDojQzVDNUM1O2ZpbGwtb3BhY2l0eToxO3N0cm9rZTpub25lIiAvPg0KICA8cmVjdCB3aWR0aD0iNiIgaGVpZ2h0PSIyIiB4PSIyIiB5PSIxMDQwLjM2MjIiIHN0eWxlPSJmaWxsOiNDNUM1QzU7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmUiIC8+DQogIDxyZWN0IHdpZHRoPSIxMiIgaGVpZ2h0PSIyIiB4PSIyIiB5PSIxMDM3LjM2MjIiIHN0eWxlPSJmaWxsOiNDNUM1QzU7ZmlsbC1vcGFjaXR5OjE7c3Ryb2tlOm5vbmUiIC8+DQo8L2c+DQo8L3N2Zz4=");\r\n}\r\n\r\n.monaco-editor.vs-dark .find-widget .monaco-checkbox .checkbox:not(:disabled):hover:before + .label {\r\n\tbackground-color: rgba(255, 255, 255, 0.1);\r\n}\r\n\r\n.monaco-editor.vs-dark .find-widget .monaco-checkbox .checkbox:checked + .label {\r\n\tbackground-color: rgba(255, 255, 255, 0.1);\r\n}\r\n\r\n.monaco-editor.hc-black .find-widget .close-fw,\r\n.monaco-editor.vs-dark .find-widget .close-fw {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iI2U4ZThlOCIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==");\r\n}\r\n\r\n.monaco-editor.hc-black .find-widget .replace,\r\n.monaco-editor.vs-dark .find-widget .replace {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCINCgkgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDE2IDE2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnIGlkPSJpY29uX3g1Rl9iZyI+DQoJPGc+DQoJCTxwYXRoIGZpbGw9IiNDNUM1QzUiIGQ9Ik0xMSwzVjFoLTF2NXYxaDFoMmgxVjRWM0gxMXogTTEzLDZoLTJWNGgyVjZ6Ii8+DQoJCTxwYXRoIGZpbGw9IiNDNUM1QzUiIGQ9Ik0yLDE1aDdWOUgyVjE1eiBNNCwxMGgzdjFINXYyaDJ2MUg0VjEweiIvPg0KCTwvZz4NCjwvZz4NCjxnIGlkPSJjb2xvcl94NUZfaW1wb3J0YW5jZSI+DQoJPHBhdGggZmlsbD0iIzc1QkVGRiIgZD0iTTMuOTc5LDMuNUw0LDZMMyw1djEuNUw0LjUsOEw2LDYuNVY1TDUsNkw0Ljk3OSwzLjVjMC0wLjI3NSwwLjIyNS0wLjUsMC41LTAuNUg5VjJINS40NzkNCgkJQzQuNjUxLDIsMy45NzksMi42NzMsMy45NzksMy41eiIvPg0KPC9nPg0KPC9zdmc+DQo=");\r\n}\r\n\r\n.monaco-editor.hc-black .find-widget .replace-all,\r\n.monaco-editor.vs-dark .find-widget .replace-all {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMTZweCINCgkgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgMCAwIDE2IDE2IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnIGlkPSJpY29uX3g1Rl9iZyI+DQoJPHBhdGggZmlsbD0iI0M1QzVDNSIgZD0iTTExLDE1VjlIMXY2SDExeiBNMiwxNHYtMmgxdi0xSDJ2LTFoM3Y0SDJ6IE0xMCwxMUg4djJoMnYxSDd2LTRoM1YxMXogTTMsMTN2LTFoMXYxSDN6IE0xMyw3djZoLTFWOEg1VjcNCgkJSDEzeiBNMTMsMlYxaC0xdjVoM1YySDEzeiBNMTQsNWgtMVYzaDFWNXogTTExLDJ2NEg4VjRoMXYxaDFWNEg5VjNIOFYySDExeiIvPg0KPC9nPg0KPGcgaWQ9ImNvbG9yX3g1Rl9hY3Rpb24iPg0KCTxwYXRoIGZpbGw9IiM3NUJFRkYiIGQ9Ik0xLjk3OSwzLjVMMiw2TDEsNXYxLjVMMi41LDhMNCw2LjVWNUwzLDZMMi45NzksMy41YzAtMC4yNzUsMC4yMjUtMC41LDAuNS0wLjVIN1YySDMuNDc5DQoJCUMyLjY1MSwyLDEuOTc5LDIuNjczLDEuOTc5LDMuNXoiLz4NCjwvZz4NCjwvc3ZnPg0K");\r\n}\r\n\r\n.monaco-editor.hc-black .find-widget .expand,\r\n.monaco-editor.vs-dark .find-widget .expand {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI2U4ZThlOCIgZD0iTTExIDEwLjA3aC01LjY1Nmw1LjY1Ni01LjY1NnY1LjY1NnoiLz48L3N2Zz4=");\r\n}\r\n\r\n.monaco-editor.hc-black .find-widget .collapse,\r\n.monaco-editor.vs-dark .find-widget .collapse {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI2U4ZThlOCIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRsMS41ODYgMS41ODYtMS41ODYgMS41ODZ2LTMuMTcyeiIvPjwvc3ZnPg==");\r\n}\r\n\r\n.monaco-editor.hc-black .find-widget .button:not(.disabled):hover,\r\n.monaco-editor.vs-dark .find-widget .button:not(.disabled):hover {\r\n\tbackground-color: rgba(255, 255, 255, 0.1);\r\n}\r\n\r\n.monaco-editor.hc-black .find-widget .button:before {\r\n\tposition: relative;\r\n\ttop: 1px;\r\n\tleft: 2px;\r\n}\r\n\r\n.monaco-editor.hc-black .find-widget .monaco-checkbox .checkbox:checked + .label {\r\n\tbackground-color: rgba(255, 255, 255, 0.1);\r\n}\r\n',""])},HYGw:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .view-overlays .current-line {\r\n\tdisplay: block;\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tbox-sizing: border-box;\r\n}",""])},IEp9:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .scroll-decoration {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\theight: 6px;\r\n}",""])},ITjR:function(e,t,n){"use strict";n.d(t,"a",function(){return i});function r(e,t){var n;return n=0===t.length?e:e.replace(/\{(\d+)\}/g,function(e,n){var r=n[0];return void 0!==t[r]?t[r]:e})}function i(e,t){var n=[];for(var i=2;i<arguments.length;i++)n[i-2]=arguments[i];return r(t,n)}},J6h7:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,'/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-diff-editor .diff-review-line-number {\r\n\ttext-align: right;\r\n\tdisplay: inline-block;\r\n}\r\n\r\n.monaco-diff-editor .diff-review {\r\n\tposition: absolute;\r\n\t-webkit-user-select: none;\r\n\t-ms-user-select: none;\r\n\t-khtml-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-o-user-select: none;\r\n\tuser-select: none;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-summary {\r\n\tpadding-left: 10px;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-shadow {\r\n\tposition: absolute;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-row {\r\n\twhite-space: pre;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-table {\r\n\tdisplay: table;\r\n\tmin-width: 100%;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-row {\r\n\tdisplay: table-row;\r\n\twidth: 100%;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-cell {\r\n\tdisplay: table-cell;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-spacer {\r\n\tdisplay: inline-block;\r\n\twidth: 10px;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-actions {\r\n\tdisplay: inline-block;\r\n\tposition: absolute;\r\n\tright: 10px;\r\n\ttop: 2px;\r\n}\r\n\r\n.monaco-diff-editor .diff-review-actions .action-label {\r\n\twidth: 16px;\r\n\theight: 16px;\r\n\tmargin: 2px 0;\r\n}\r\n.monaco-diff-editor .action-label.icon.close-diff-review {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iIzQyNDI0MiIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==") center center no-repeat;\r\n}\r\n.monaco-diff-editor.hc-black .action-label.icon.close-diff-review,\r\n.monaco-diff-editor.vs-dark .action-label.icon.close-diff-review {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iMyAzIDE2IDE2IiBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDMgMyAxNiAxNiI+PHBvbHlnb24gZmlsbD0iI2U4ZThlOCIgcG9pbnRzPSIxMi41OTcsMTEuMDQyIDE1LjQsMTMuODQ1IDEzLjg0NCwxNS40IDExLjA0MiwxMi41OTggOC4yMzksMTUuNCA2LjY4MywxMy44NDUgOS40ODUsMTEuMDQyIDYuNjgzLDguMjM5IDguMjM4LDYuNjgzIDExLjA0Miw5LjQ4NiAxMy44NDUsNi42ODMgMTUuNCw4LjIzOSIvPjwvc3ZnPg==") center center no-repeat;\r\n}',""])},JRks:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* START cover the case that slider is visible on mouseover */\r\n.monaco-editor .minimap.slider-mouseover .minimap-slider {\r\n\topacity: 0;\r\n\ttransition: opacity 100ms linear;\r\n}\r\n.monaco-editor .minimap.slider-mouseover:hover .minimap-slider {\r\n\topacity: 1;\r\n}\r\n.monaco-editor .minimap.slider-mouseover .minimap-slider.active {\r\n\topacity: 1;\r\n}\r\n/* END cover the case that slider is visible on mouseover */\r\n\r\n.monaco-editor .minimap-shadow-hidden {\r\n\tposition: absolute;\r\n\twidth: 0;\r\n}\r\n.monaco-editor .minimap-shadow-visible {\r\n\tposition: absolute;\r\n\tleft: -6px;\r\n\twidth: 6px;\r\n}\r\n",""])},"JpS/":function(e,t,n){var r=n("IEp9");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},KVQV:function(e,t,n){"use strict";n.d(t,"d",function(){return i});n.d(t,"c",function(){return o});n.d(t,"e",function(){return a});n.d(t,"a",function(){return s});n.d(t,"b",function(){return u});function r(e){return"function"==typeof e.dispose&&0===e.dispose.length}function i(e){var t=[];for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Array.isArray(e)){e.forEach(function(e){return e&&e.dispose()});return[]}if(0===t.length){if(e){e.dispose();return e}return}i(e);i(t);return[]}function o(e){return{dispose:function(){return i(e)}}}function a(e){return{dispose:function(){e()}}}var s=function(){function e(){this._toDispose=[]}e.prototype.dispose=function(){this._toDispose=i(this._toDispose)};e.prototype._register=function(e){this._toDispose.push(e);return e};e.None=Object.freeze({dispose:function(){}});return e}();var u=function(){function e(e){this.object=e}e.prototype.dispose=function(){};return e}()},MSru:function(e,t,n){var r=n("zOUd");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},McmM:function(e,t,n){var r=n("N3fP");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},Mk1O:function(e,t,n){"use strict";n.d(t,"a",function(){return i});n.d(t,"b",function(){return o});var r=n("TihM");var i=Object(r["c"])("modelService");function o(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}},MrIk:function(e,t,n){"use strict";var r=n("W5Z6");var i=n("5s6q");var o=n("KVQV");var a=n("9X2a");var s=a["b"].performance&&"function"==typeof a["b"].performance.now;var u=function(){function e(e){this._highResolution=s&&e;this._startTime=this._now();this._stopTime=-1}e.create=function(t){void 0===t&&(t=!0);return new e(t)};e.prototype.elapsed=function(){if(-1!==this._stopTime)return this._stopTime-this._startTime;return this._now()-this._startTime};e.prototype._now=function(){return this._highResolution?a["b"].performance.now():(new Date).getTime()};return e}();var l=n("PFKJ");var c=n("PJlg");var d=n("UMmv");var h=n("6dSJ");var f=n("cENI");var p=n("tkRu");var g=n("rTC2");var v=function(){function e(e,t){this.beforeVersionId=e;this.beforeCursorState=t;this.afterCursorState=null;this.afterVersionId=-1;this.editOperations=[]}e.prototype.undo=function(e){for(var t=this.editOperations.length-1;t>=0;t--)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}};e.prototype.redo=function(e){for(var t=0;t<this.editOperations.length;t++)this.editOperations[t]={operations:e.applyEdits(this.editOperations[t].operations)}};return e}();function m(e){var t;return"\n"===e.getEOL()?0:1}var _=function(){function e(e,t){this.beforeVersionId=e;this.beforeCursorState=null;this.afterCursorState=null;this.afterVersionId=-1;this.eol=t}e.prototype.undo=function(e){var t=m(e);e.setEOL(this.eol);this.eol=t};e.prototype.redo=function(e){var t=m(e);e.setEOL(this.eol);this.eol=t};return e}();var y=function(){function e(e){this.model=e;this.currentOpenStackElement=null;this.past=[];this.future=[]}e.prototype.pushStackElement=function(){if(null!==this.currentOpenStackElement){this.past.push(this.currentOpenStackElement);this.currentOpenStackElement=null}};e.prototype.clear=function(){this.currentOpenStackElement=null;this.past=[];this.future=[]};e.prototype.pushEOL=function(e){this.future=[];this.currentOpenStackElement&&this.pushStackElement();var t=m(this.model);var n=new _(this.model.getAlternativeVersionId(),t);this.model.setEOL(e);n.afterVersionId=this.model.getVersionId();this.currentOpenStackElement=n;this.pushStackElement()};e.prototype.pushEditOperation=function(t,n,r){this.future=[];var i=null;this.currentOpenStackElement&&(this.currentOpenStackElement instanceof v?i=this.currentOpenStackElement:this.pushStackElement());if(!this.currentOpenStackElement){i=new v(this.model.getAlternativeVersionId(),t);this.currentOpenStackElement=i}var o={operations:this.model.applyEdits(n)};i.editOperations.push(o);i.afterCursorState=e._computeCursorState(r,o.operations);i.afterVersionId=this.model.getVersionId();return i.afterCursorState};e._computeCursorState=function(e,t){try{return e?e(t):null}catch(e){Object(r["d"])(e);return null}};e.prototype.undo=function(){this.pushStackElement();if(this.past.length>0){var e=this.past.pop();try{e.undo(this.model)}catch(e){Object(r["d"])(e);this.clear();return null}this.future.push(e);return{selections:e.beforeCursorState,recordedVersionId:e.beforeVersionId}}return null};e.prototype.canUndo=function(){return this.past.length>0};e.prototype.redo=function(){if(this.future.length>0){var e=this.future.pop();try{e.redo(this.model)}catch(e){Object(r["d"])(e);this.clear();return null}this.past.push(e);return{selections:e.afterCursorState,recordedVersionId:e.afterVersionId}}return null};e.prototype.canRedo=function(){return this.future.length>0};return e}();var b=function(){function e(){}return e}();function C(e,t,n,r,i){i.spacesDiff=0;i.looksLikeAlignment=!1;var o;for(o=0;o<t&&o<r;o++){var a;var s;if((a=e.charCodeAt(o))!==(s=n.charCodeAt(o)))break}var u=0,l=0;for(var c=o;c<t;c++){var a;32===(a=e.charCodeAt(c))?u++:l++}var d=0,h=0;for(var c=o;c<r;c++){var s;32===(s=n.charCodeAt(c))?d++:h++}if(u>0&&l>0)return;if(d>0&&h>0)return;var f=Math.abs(l-h);var p=Math.abs(u-d);if(0===f){i.spacesDiff=p;p>0&&0<=d-1&&d-1<e.length&&d<n.length&&32!==n.charCodeAt(d)&&32===e.charCodeAt(d-1)&&(i.looksLikeAlignment=!0);return}if(p%f==0){i.spacesDiff=p/f;return}}function w(e,t,n){var r=Math.min(e.getLineCount(),1e4);var i=0;var o=0;var a="";var s=0;var u=[2,4,6,8,3,5,7];var l=8;var c=[0,0,0,0,0,0,0,0,0];var d=new b;for(var h=1;h<=r;h++){var f=e.getLineLength(h);var p=e.getLineContent(h);var g=f<=65536;var v=!1;var m=0;var _=0;var y=0;for(var w=0,S=f;w<S;w++){var L=g?p.charCodeAt(w):e.getLineCharCode(h,w);if(9===L)y++;else{if(32!==L){v=!0;m=w;break}_++}}if(!v)continue;y>0?i++:_>1&&o++;C(a,s,p,m,d);if(d.looksLikeAlignment)continue;var I=d.spacesDiff;I<=8&&c[I]++;a=p;s=m}var x=n;i!==o&&(x=i<o);var N=t;var M=x?0:.1*r;u.forEach(function(e){var t=c[e];if(t>M){M=t;N=e}});return{insertSpaces:x,tabSize:N}}function S(e){return(1&e.metadata)>>>0}function L(e,t){e.metadata=254&e.metadata|t<<0}function I(e){return(2&e.metadata)>>>1==1}function x(e,t){e.metadata=253&e.metadata|(t?1:0)<<1}function N(e){return(4&e.metadata)>>>2==1}function M(e,t){e.metadata=251&e.metadata|(t?1:0)<<2}function D(e){return(8&e.metadata)>>>3==1}function k(e,t){e.metadata=247&e.metadata|(t?1:0)<<3}function O(e){return(48&e.metadata)>>>4}function E(e,t){e.metadata=207&e.metadata|t<<4}function T(e){return(64&e.metadata)>>>6==1}function A(e,t){e.metadata=191&e.metadata|(t?1:0)<<6}var R=function(){function e(e,t,n){this.metadata=0;this.parent=this;this.left=this;this.right=this;L(this,1);this.start=t;this.end=n;this.delta=0;this.maxEnd=n;this.id=e;this.ownerId=0;this.options=null;M(this,!1);E(this,1);k(this,!1);A(this,!1);this.cachedVersionId=0;this.cachedAbsoluteStart=t;this.cachedAbsoluteEnd=n;this.range=null;x(this,!1)}e.prototype.reset=function(e,t,n,r){this.start=t;this.end=n;this.maxEnd=n;this.cachedVersionId=e;this.cachedAbsoluteStart=t;this.cachedAbsoluteEnd=n;this.range=r};e.prototype.setOptions=function(e){this.options=e;var t=this.options.className;M(this,"squiggly-error"===t||"squiggly-warning"===t||"squiggly-info"===t);E(this,this.options.stickiness);k(this,!(!this.options.overviewRuler||!this.options.overviewRuler.color));A(this,this.options.collapseOnReplaceEdit)};e.prototype.setCachedOffsets=function(e,t,n){this.cachedVersionId!==n&&(this.range=null);this.cachedVersionId=n;this.cachedAbsoluteStart=e;this.cachedAbsoluteEnd=t};e.prototype.detach=function(){this.parent=null;this.left=null;this.right=null};return e}();var P=new R(null,0,0);P.parent=P;P.left=P;P.right=P;L(P,0);var j=function(){function e(){this.root=P;this.requestNormalizeDelta=!1}e.prototype.intervalSearch=function(e,t,n,r,i){if(this.root===P)return[];return G(this,e,t,n,r,i)};e.prototype.search=function(e,t,n){if(this.root===P)return[];return Z(this,e,t,n)};e.prototype.collectNodesFromOwner=function(e){return H(this,e)};e.prototype.collectNodesPostOrder=function(){return U(this)};e.prototype.insert=function(e){Y(this,e);this._normalizeDeltaIfNecessary()};e.prototype.delete=function(e){Q(this,e);this._normalizeDeltaIfNecessary()};e.prototype.resolveNode=function(e,t){var n=e;var r=0;for(;e!==this.root;){e===e.parent.right&&(r+=e.parent.delta);e=e.parent}var i=n.start+r;var o=n.end+r;n.setCachedOffsets(i,o,t)};e.prototype.acceptReplace=function(e,t,n,r){var i=V(this,e,e+t);for(var o=0,a=i.length;o<a;o++){var s;Q(this,s=i[o])}this._normalizeDeltaIfNecessary();B(this,e,e+t,n);this._normalizeDeltaIfNecessary();for(var o=0,a=i.length;o<a;o++){var s;(s=i[o]).start=s.cachedAbsoluteStart;s.end=s.cachedAbsoluteEnd;z(s,e,e+t,n,r);s.maxEnd=s.end;Y(this,s)}this._normalizeDeltaIfNecessary()};e.prototype._normalizeDeltaIfNecessary=function(){if(!this.requestNormalizeDelta)return;this.requestNormalizeDelta=!1;W(this)};return e}();function W(e){var t=e.root;var n=0;for(;t!==P;){if(t.left!==P&&!I(t.left)){t=t.left;continue}if(t.right!==P&&!I(t.right)){n+=t.delta;t=t.right;continue}t.start=n+t.start;t.end=n+t.end;t.delta=0;te(t);x(t,!0);x(t.left,!1);x(t.right,!1);t===t.parent.right&&(n-=t.parent.delta);t=t.parent}x(e.root,!1)}function F(e,t,n,r){if(e<n)return!0;if(e>n)return!1;if(1===r)return!1;if(2===r)return!0;return t}function z(e,t,n,r,i){var o=O(e);var a=0===o||2===o;var s=1===o||2===o;var u=n-t;var l=r;var c=Math.min(u,l);var d=e.start;var h=!1;var f=e.end;var p=!1;if(t<=d&&f<=n&&T(e)){e.start=t;h=!0;e.end=t;p=!0}var g=i?1:u>0?2:0;!h&&F(d,a,t,g)&&(h=!0);!p&&F(f,s,t,g)&&(p=!0);if(c>0&&!i){var g=u>l?2:0;!h&&F(d,a,t+c,g)&&(h=!0);!p&&F(f,s,t+c,g)&&(p=!0)}var g=i?1:0;if(!h&&F(d,a,n,g)){e.start=t+l;h=!0}if(!p&&F(f,s,n,g)){e.end=t+l;p=!0}var v=l-u;if(!h){e.start=Math.max(0,d+v);h=!0}if(!p){e.end=Math.max(0,f+v);p=!0}e.start>e.end&&(e.end=e.start)}function V(e,t,n){var r=e.root;var i=0;var o=0;var a=0;var s=0;var u=[];var l=0;for(;r!==P;){if(I(r)){x(r.left,!1);x(r.right,!1);r===r.parent.right&&(i-=r.parent.delta);r=r.parent;continue}if(!I(r.left)){if((o=i+r.maxEnd)<t){x(r,!0);continue}if(r.left!==P){r=r.left;continue}}if((a=i+r.start)>n){x(r,!0);continue}if((s=i+r.end)>=t){r.setCachedOffsets(a,s,0);u[l++]=r}x(r,!0);if(r.right!==P&&!I(r.right)){i+=r.delta;r=r.right;continue}}x(e.root,!1);return u}function B(e,t,n,r){var i=e.root;var o=0;var a=0;var s=0;var u=r-(n-t);for(;i!==P;){if(I(i)){x(i.left,!1);x(i.right,!1);i===i.parent.right&&(o-=i.parent.delta);te(i);i=i.parent;continue}if(!I(i.left)){if((a=o+i.maxEnd)<t){x(i,!0);continue}if(i.left!==P){i=i.left;continue}}if((s=o+i.start)>n){i.start+=u;i.end+=u;i.delta+=u;(i.delta<-1073741824||i.delta>1073741824)&&(e.requestNormalizeDelta=!0);x(i,!0);continue}x(i,!0);if(i.right!==P&&!I(i.right)){o+=i.delta;i=i.right;continue}}x(e.root,!1)}function H(e,t){var n=e.root;var r=[];var i=0;for(;n!==P;){if(I(n)){x(n.left,!1);x(n.right,!1);n=n.parent;continue}if(n.left!==P&&!I(n.left)){n=n.left;continue}n.ownerId===t&&(r[i++]=n);x(n,!0);if(n.right!==P&&!I(n.right)){n=n.right;continue}}x(e.root,!1);return r}function U(e){var t=e.root;var n=[];var r=0;for(;t!==P;){if(I(t)){x(t.left,!1);x(t.right,!1);t=t.parent;continue}if(t.left!==P&&!I(t.left)){t=t.left;continue}if(t.right!==P&&!I(t.right)){t=t.right;continue}n[r++]=t;x(t,!0)}x(e.root,!1);return n}function Z(e,t,n,r){var i=e.root;var o=0;var a=0;var s=0;var u=[];var l=0;for(;i!==P;){if(I(i)){x(i.left,!1);x(i.right,!1);i===i.parent.right&&(o-=i.parent.delta);i=i.parent;continue}if(i.left!==P&&!I(i.left)){i=i.left;continue}a=o+i.start;s=o+i.end;i.setCachedOffsets(a,s,r);var c=!0;t&&i.ownerId&&i.ownerId!==t&&(c=!1);n&&N(i)&&(c=!1);c&&(u[l++]=i);x(i,!0);if(i.right!==P&&!I(i.right)){o+=i.delta;i=i.right;continue}}x(e.root,!1);return u}function G(e,t,n,r,i,o){var a=e.root;var s=0;var u=0;var l=0;var c=0;var d=[];var h=0;for(;a!==P;){if(I(a)){x(a.left,!1);x(a.right,!1);a===a.parent.right&&(s-=a.parent.delta);a=a.parent;continue}if(!I(a.left)){if((u=s+a.maxEnd)<t){x(a,!0);continue}if(a.left!==P){a=a.left;continue}}if((l=s+a.start)>n){x(a,!0);continue}if((c=s+a.end)>=t){a.setCachedOffsets(l,c,o);var f=!0;r&&a.ownerId&&a.ownerId!==r&&(f=!1);i&&N(a)&&(f=!1);f&&(d[h++]=a)}x(a,!0);if(a.right!==P&&!I(a.right)){s+=a.delta;a=a.right;continue}}x(e.root,!1);return d}function Y(e,t){if(e.root===P){t.parent=P;t.left=P;t.right=P;L(t,0);e.root=t;return e.root}K(e,t);ne(t.parent);var n=t;for(;n!==e.root&&1===S(n.parent);)if(n.parent===n.parent.parent.left){var r;if(1===S(r=n.parent.parent.right)){L(n.parent,0);L(r,0);L(n.parent.parent,1);n=n.parent.parent}else{n===n.parent.right&&X(e,n=n.parent);L(n.parent,0);L(n.parent.parent,1);$(e,n.parent.parent)}}else{var r;if(1===S(r=n.parent.parent.left)){L(n.parent,0);L(r,0);L(n.parent.parent,1);n=n.parent.parent}else{n===n.parent.left&&$(e,n=n.parent);L(n.parent,0);L(n.parent.parent,1);X(e,n.parent.parent)}}L(e.root,0);return t}function K(e,t){var n=0;var r=e.root;var i=t.start;var o=t.end;for(;;){var a;if(re(i,o,r.start+n,r.end+n)<0){if(r.left===P){t.start-=n;t.end-=n;t.maxEnd-=n;r.left=t;break}r=r.left}else{if(r.right===P){t.start-=n+r.delta;t.end-=n+r.delta;t.maxEnd-=n+r.delta;r.right=t;break}n+=r.delta;r=r.right}}t.parent=r;t.left=P;t.right=P;L(t,1)}function Q(e,t){var n;var r;if(t.left===P){n=t.right;r=t;n.delta+=t.delta;(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0);n.start+=t.delta;n.end+=t.delta}else if(t.right===P){n=t.left;r=t}else{(n=(r=q(t.right)).right).start+=r.delta;n.end+=r.delta;n.delta+=r.delta;(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0);r.start+=t.delta;r.end+=t.delta;r.delta=t.delta;(r.delta<-1073741824||r.delta>1073741824)&&(e.requestNormalizeDelta=!0)}if(r===e.root){e.root=n;L(n,0);t.detach();J();te(n);e.root.parent=P;return}var i=1===S(r);r===r.parent.left?r.parent.left=n:r.parent.right=n;if(r===t)n.parent=r.parent;else{r.parent===t?n.parent=r:n.parent=r.parent;r.left=t.left;r.right=t.right;r.parent=t.parent;L(r,S(t));t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r;r.left!==P&&(r.left.parent=r);r.right!==P&&(r.right.parent=r)}t.detach();if(i){ne(n.parent);if(r!==t){ne(r);ne(r.parent)}J();return}ne(n);ne(n.parent);if(r!==t){ne(r);ne(r.parent)}var o;for(;n!==e.root&&0===S(n);)if(n===n.parent.left){if(1===S(o=n.parent.right)){L(o,0);L(n.parent,1);X(e,n.parent);o=n.parent.right}if(0===S(o.left)&&0===S(o.right)){L(o,1);n=n.parent}else{if(0===S(o.right)){L(o.left,0);L(o,1);$(e,o);o=n.parent.right}L(o,S(n.parent));L(n.parent,0);L(o.right,0);X(e,n.parent);n=e.root}}else{if(1===S(o=n.parent.left)){L(o,0);L(n.parent,1);$(e,n.parent);o=n.parent.left}if(0===S(o.left)&&0===S(o.right)){L(o,1);n=n.parent}else{if(0===S(o.left)){L(o.right,0);L(o,1);X(e,o);o=n.parent.left}L(o,S(n.parent));L(n.parent,0);L(o.left,0);$(e,n.parent);n=e.root}}L(n,0);J()}function q(e){for(;e.left!==P;)e=e.left;return e}function J(){P.parent=P;P.delta=0;P.start=0;P.end=0}function X(e,t){var n=t.right;n.delta+=t.delta;(n.delta<-1073741824||n.delta>1073741824)&&(e.requestNormalizeDelta=!0);n.start+=t.delta;n.end+=t.delta;t.right=n.left;n.left!==P&&(n.left.parent=t);n.parent=t.parent;t.parent===P?e.root=n:t===t.parent.left?t.parent.left=n:t.parent.right=n;n.left=t;t.parent=n;te(t);te(n)}function $(e,t){var n=t.left;t.delta-=n.delta;(t.delta<-1073741824||t.delta>1073741824)&&(e.requestNormalizeDelta=!0);t.start-=n.delta;t.end-=n.delta;t.left=n.right;n.right!==P&&(n.right.parent=t);n.parent=t.parent;t.parent===P?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n;n.right=t;t.parent=n;te(t);te(n)}function ee(e){var t=e.end;if(e.left!==P){var n=e.left.maxEnd;n>t&&(t=n)}if(e.right!==P){var r=e.right.maxEnd+e.delta;r>t&&(t=r)}return t}function te(e){e.maxEnd=ee(e)}function ne(e){for(;e!==P;){var t=ee(e);if(e.maxEnd===t)return;e.maxEnd=t;e=e.parent}}function re(e,t,n,r){if(e===n)return t-r;return e-n}var ie=function(){function e(e,t){this.piece=e;this.color=t;this.size_left=0;this.lf_left=0;this.parent=this;this.left=this;this.right=this}e.prototype.next=function(){if(this.right!==oe)return ae(this.right);var e=this;for(;e.parent!==oe&&e.parent.left!==e;)e=e.parent;return e.parent===oe?oe:e.parent};e.prototype.prev=function(){if(this.left!==oe)return se(this.left);var e=this;for(;e.parent!==oe&&e.parent.right!==e;)e=e.parent;return e.parent===oe?oe:e.parent};e.prototype.detach=function(){this.parent=null;this.left=null;this.right=null};return e}();var oe=new ie(null,0);oe.parent=oe;oe.left=oe;oe.right=oe;oe.color=0;function ae(e){for(;e.left!==oe;)e=e.left;return e}function se(e){for(;e.right!==oe;)e=e.right;return e}function ue(e){if(e===oe)return 0;return e.size_left+e.piece.length+ue(e.right)}function le(e){if(e===oe)return 0;return e.lf_left+e.piece.lineFeedCnt+le(e.right)}function ce(){oe.parent=oe}function de(e,t){var n=t.right;n.size_left+=t.size_left+(t.piece?t.piece.length:0);n.lf_left+=t.lf_left+(t.piece?t.piece.lineFeedCnt:0);t.right=n.left;n.left!==oe&&(n.left.parent=t);n.parent=t.parent;t.parent===oe?e.root=n:t.parent.left===t?t.parent.left=n:t.parent.right=n;n.left=t;t.parent=n}function he(e,t){var n=t.left;t.left=n.right;n.right!==oe&&(n.right.parent=t);n.parent=t.parent;t.size_left-=n.size_left+(n.piece?n.piece.length:0);t.lf_left-=n.lf_left+(n.piece?n.piece.lineFeedCnt:0);t.parent===oe?e.root=n:t===t.parent.right?t.parent.right=n:t.parent.left=n;n.right=t;t.parent=n}function fe(e,t){var n;var r;n=t.left===oe?(r=t).right:t.right===oe?(r=t).left:(r=ae(t.right)).right;if(r===e.root){e.root=n;n.color=0;t.detach();ce();e.root.parent=oe;return}var i=1===r.color;r===r.parent.left?r.parent.left=n:r.parent.right=n;if(r===t){n.parent=r.parent;ve(e,n)}else{r.parent===t?n.parent=r:n.parent=r.parent;ve(e,n);r.left=t.left;r.right=t.right;r.parent=t.parent;r.color=t.color;t===e.root?e.root=r:t===t.parent.left?t.parent.left=r:t.parent.right=r;r.left!==oe&&(r.left.parent=r);r.right!==oe&&(r.right.parent=r);r.size_left=t.size_left;r.lf_left=t.lf_left;ve(e,r)}t.detach();if(n.parent.left===n){var o=ue(n);var a=le(n);if(o!==n.parent.size_left||a!==n.parent.lf_left){var s=o-n.parent.size_left;var u=a-n.parent.lf_left;n.parent.size_left=o;n.parent.lf_left=a;ge(e,n.parent,s,u)}}ve(e,n.parent);if(i){ce();return}var l;for(;n!==e.root&&0===n.color;)if(n===n.parent.left){if(1===(l=n.parent.right).color){l.color=0;n.parent.color=1;de(e,n.parent);l=n.parent.right}if(0===l.left.color&&0===l.right.color){l.color=1;n=n.parent}else{if(0===l.right.color){l.left.color=0;l.color=1;he(e,l);l=n.parent.right}l.color=n.parent.color;n.parent.color=0;l.right.color=0;de(e,n.parent);n=e.root}}else{if(1===(l=n.parent.left).color){l.color=0;n.parent.color=1;he(e,n.parent);l=n.parent.left}if(0===l.left.color&&0===l.right.color){l.color=1;n=n.parent}else{if(0===l.left.color){l.right.color=0;l.color=1;de(e,l);l=n.parent.left}l.color=n.parent.color;n.parent.color=0;l.left.color=0;he(e,n.parent);n=e.root}}n.color=0;ce()}function pe(e,t){ve(e,t);for(;t!==e.root&&1===t.parent.color;)if(t.parent===t.parent.parent.left){var n;if(1===(n=t.parent.parent.right).color){t.parent.color=0;n.color=0;t.parent.parent.color=1;t=t.parent.parent}else{t===t.parent.right&&de(e,t=t.parent);t.parent.color=0;t.parent.parent.color=1;he(e,t.parent.parent)}}else{var n;if(1===(n=t.parent.parent.left).color){t.parent.color=0;n.color=0;t.parent.parent.color=1;t=t.parent.parent}else{t===t.parent.left&&he(e,t=t.parent);t.parent.color=0;t.parent.parent.color=1;de(e,t.parent.parent)}}e.root.color=0}function ge(e,t,n,r){for(;t!==e.root&&t!==oe;){if(t.parent.left===t){t.parent.size_left+=n;t.parent.lf_left+=r}t=t.parent}}function ve(e,t){var n=0;var r=0;if(t===e.root)return;if(0===n){for(;t!==e.root&&t===t.parent.right;)t=t.parent;if(t===e.root)return;n=ue((t=t.parent).left)-t.size_left;r=le(t.left)-t.lf_left;t.size_left+=n;t.lf_left+=r}for(;t!==e.root&&(0!==n||0!==r);){if(t.parent.left===t){t.parent.size_left+=n;t.parent.lf_left+=r}t=t.parent}}var me=n("GmUz");var _e=65535;function ye(e){var t;(t=e[e.length-1]<65536?new Uint16Array(e.length):new Uint32Array(e.length)).set(e,0);return t}var be=function(){function e(e,t,n,r,i){this.lineStarts=e;this.cr=t;this.lf=n;this.crlf=r;this.isBasicASCII=i}return e}();function Ce(e,t){void 0===t&&(t=!0);var n=[0],r=1;for(var i=0,o=e.length;i<o;i++){var a=e.charCodeAt(i);if(13===a)if(i+1<o&&10===e.charCodeAt(i+1)){n[r++]=i+2;i++}else n[r++]=i+1;else 10===a&&(n[r++]=i+1)}return t?ye(n):n}function we(e,t){e.length=0;e[0]=0;var n=1;var r=0,i=0,o=0;var a=!0;for(var s=0,u=t.length;s<u;s++){var l=t.charCodeAt(s);if(13===l)if(s+1<u&&10===t.charCodeAt(s+1)){o++;e[n++]=s+2;s++}else{r++;e[n++]=s+1}else if(10===l){i++;e[n++]=s+1}else a&&9!==l&&(l<32||l>126)&&(a=!1)}var c=new be(ye(e),r,i,o,a);e.length=0;return c}var Se=function(){function e(e,t,n,r,i){this.bufferIndex=e;this.start=t;this.end=n;this.lineFeedCnt=r;this.length=i}return e}();var Le=function(){function e(e,t){this.buffer=e;this.lineStarts=t}return e}();var Ie=function(){function e(e){this._limit=e;this._cache=[]}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&&n.nodeStartLineNumber+n.node.piece.lineFeedCnt>=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){var t=!1;var n=this._cache;for(var r=0;r<n.length;r++){var i=n[r];if(null===i.node.parent||i.nodeStartOffset>=e){n[r]=null;t=!0;continue}}if(t){var o=[];for(var r=0;r<n.length;r++){var a=n[r];null!==a&&o.push(a)}this._cache=o}};return e}();var xe=function(){function e(e,t,n){this.create(e,t,n)}e.prototype.create=function(e,t,n){this._buffers=[new Le("",[0])];this._lastChangeBufferPos={line:0,column:0};this.root=oe;this._lineCnt=1;this._length=0;this._EOL=t;this._EOLLength=t.length;this._EOLNormalized=n;var r=null;for(var i=0,o=e.length;i<o;i++)if(e[i].buffer.length>0){e[i].lineStarts||(e[i].lineStarts=Ce(e[i].buffer));var a=new Se(i+1,{line:0,column:0},{line:e[i].lineStarts.length-1,column:e[i].buffer.length-e[i].lineStarts[e[i].lineStarts.length-1]},e[i].lineStarts.length-1,e[i].buffer.length);this._buffers.push(e[i]);r=this.rbInsertRight(r,a)}this._searchCache=new Ie(1);this._lastVisitedLine={lineNumber:0,value:""};this.computeBufferMetadata()};e.prototype.normalizeEOL=function(e){var t=this;var n=65535;var r=65535-Math.floor(21845);var i=2*r;var o="";var a=0;var s=[];this.iterate(this.root,function(n){var u=t.getNodeContent(n);var l=u.length;if(a<=r||a+l<i){o+=u;a+=l;return!0}var c=o.replace(/\r\n|\r|\n/g,e);s.push(new Le(c,Ce(c)));o=u;a=l;return!0});if(a>0){var u=o.replace(/\r\n|\r|\n/g,e);s.push(new Le(u,Ce(u)))}this.create(s,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){var n=0;var r=this.root;for(;r!==oe;)if(r.left!==oe&&r.lf_left+1>=e)r=r.left;else{if(r.lf_left+r.piece.lineFeedCnt+1>=e){var i;return(n+=r.size_left)+(this.getAccumulatedValue(r,e-r.lf_left-2)+t-1)}e-=r.lf_left+r.piece.lineFeedCnt;n+=r.size_left+r.piece.length;r=r.right}return n};e.prototype.getPositionAt=function(e){e=Math.floor(e);e=Math.max(0,e);var t=this.root;var n=0;var r=e;for(;t!==oe;)if(0!==t.size_left&&t.size_left>=e)t=t.left;else{if(t.size_left+t.piece.length>=e){var i=this.getIndexOf(t,e-t.size_left);n+=t.lf_left+i.index;if(0===i.index){var o;var a=r-(o=this.getOffsetAt(n+1,1));return new h["a"](n+1,a+1)}return new h["a"](n+1,i.remainder+1)}e-=t.size_left+t.piece.length;n+=t.lf_left+t.piece.lineFeedCnt;if(t.right===oe){var o;var a=r-e-(o=this.getOffsetAt(n+1,1));return new h["a"](n+1,a+1)}t=t.right}return new h["a"](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);var r=this.nodeAt2(e.endLineNumber,e.endColumn);var i=this.getValueInRange2(n,r);if(t){if(t!==this._EOL||!this._EOLNormalized)return i.replace(/\r\n|\r|\n/g,t);if(t===this.getEOL()&&this._EOLNormalized)return i;return i.replace(/\r\n|\r|\n/g,t)}return i};e.prototype.getValueInRange2=function(e,t){if(e.node===t.node){var n=e.node;var r=this._buffers[n.piece.bufferIndex].buffer;var i=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r.substring(i+e.remainder,i+t.remainder)}var o=e.node;var a=this._buffers[o.piece.bufferIndex].buffer;var s=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start);var u=a.substring(s+e.remainder,s+o.piece.length);o=o.next();for(;o!==oe;){var l=this._buffers[o.piece.bufferIndex].buffer;var c=this.offsetInBuffer(o.piece.bufferIndex,o.piece.start);if(o===t.node){u+=l.substring(c,c+t.remainder);break}u+=l.substr(c,o.piece.length);o=o.next()}return u};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){if(this._lastVisitedLine.lineNumber===e)return this._lastVisitedLine.value;this._lastVisitedLine.lineNumber=e;e===this._lineCnt?this._lastVisitedLine.value=this.getLineRawContent(e):this._EOLNormalized?this._lastVisitedLine.value=this.getLineRawContent(e,this._EOLLength):this._lastVisitedLine.value=this.getLineRawContent(e).replace(/(\r\n|\r|\n)$/,"");return this._lastVisitedLine.value};e.prototype.getLineCharCode=function(e,t){var n=this.nodeAt2(e,t+1);if(n.remainder===n.node.piece.length){var r=n.node.next();if(!r)return 0;var i=this._buffers[r.piece.bufferIndex];var o=this.offsetInBuffer(r.piece.bufferIndex,r.piece.start);return i.buffer.charCodeAt(o)}var i=this._buffers[n.node.piece.bufferIndex];var o;var a=(o=this.offsetInBuffer(n.node.piece.bufferIndex,n.node.piece.start))+n.remainder;return i.buffer.charCodeAt(a)};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,r,i,o,a,s,u,l,c){var d=this._buffers[e.piece.bufferIndex];var h=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start);var p=this.offsetInBuffer(e.piece.bufferIndex,i);var g=this.offsetInBuffer(e.piece.bufferIndex,o);var v;t.reset(p);var m={line:0,column:0};do{if(v=t.next(d.buffer)){if(v.index>=g)return l;this.positionInBuffer(e,v.index-h,m);var _=this.getLineFeedCnt(e.piece.bufferIndex,i,m);var y=m.line===i.line?m.column-i.column+r:m.column+1;var b=y+v[0].length;c[l++]=Object(me["d"])(new f["a"](n+_,y,n+_,b),v,s);if(v.index+v[0].length>=g)return l;if(l>=u)return l}}while(v);return l};e.prototype.findMatchesLineByLine=function(e,t,n,r){var i=[];var o=0;var a=new me["b"](t.wordSeparators,t.regex);var s=this.nodeAt2(e.startLineNumber,e.startColumn);if(null===s)return[];var u=this.nodeAt2(e.endLineNumber,e.endColumn);if(null===u)return[];var l=this.positionInBuffer(s.node,s.remainder);var c=this.positionInBuffer(u.node,u.remainder);if(s.node===u.node){this.findMatchesInNode(s.node,a,e.startLineNumber,e.startColumn,l,c,t,n,r,o,i);return i}var d=e.startLineNumber;var h=s.node;for(;h!==u.node;){var f=this.getLineFeedCnt(h.piece.bufferIndex,l,h.piece.end);if(f>=1){var p=this._buffers[h.piece.bufferIndex].lineStarts;var g=this.offsetInBuffer(h.piece.bufferIndex,h.piece.start);var v=p[l.line+f];var m=d===e.startLineNumber?e.startColumn:1;if((o=this.findMatchesInNode(h,a,d,m,l,this.positionInBuffer(h,v-g),t,n,r,o,i))>=r)return i;d+=f}var _=d===e.startLineNumber?e.startColumn-1:0;if(d===e.endLineNumber){var y=this.getLineContent(d).substring(_,e.endColumn-1);o=this._findMatchesInLine(t,a,y,e.endLineNumber,_,o,i,n,r);return i}if((o=this._findMatchesInLine(t,a,this.getLineContent(d).substr(_),d,_,o,i,n,r))>=r)return i;d++;h=(s=this.nodeAt2(d,1)).node;l=this.positionInBuffer(s.node,s.remainder)}if(d===e.endLineNumber){var b=d===e.startLineNumber?e.startColumn-1:0;var y=this.getLineContent(d).substring(b,e.endColumn-1);o=this._findMatchesInLine(t,a,y,e.endLineNumber,b,o,i,n,r);return i}var C=d===e.startLineNumber?e.startColumn:1;o=this.findMatchesInNode(u.node,a,d,C,l,c,t,n,r,o,i);return i};e.prototype._findMatchesInLine=function(e,t,n,r,i,o,a,s,u){var l=e.wordSeparators;if(!s&&e.simpleSearch){var c=e.simpleSearch;var d=c.length;var h=n.length;var p=-d;for(;-1!==(p=n.indexOf(c,p+d));)if(!l||Object(me["e"])(l,n,h,p,d)){a[o++]=new g["b"](new f["a"](r,p+1+i,r,p+1+d+i),null);if(o>=u)return o}return o}var v;t.reset(0);do{if(v=t.next(n)){a[o++]=Object(me["d"])(new f["a"](r,v.index+1+i,r,v.index+1+v[0].length+i),v,s);if(o>=u)return o}}while(v);return o};e.prototype.insert=function(e,t,n){void 0===n&&(n=!1);this._EOLNormalized=this._EOLNormalized&&n;this._lastVisitedLine.lineNumber=0;this._lastVisitedLine.value="";if(this.root!==oe){var r=this.nodeAt(e),i=r.node,o=r.remainder,a=r.nodeStartOffset;var s=i.piece;var u=s.bufferIndex;var l=this.positionInBuffer(i,o);if(0===i.piece.bufferIndex&&s.end.line===this._lastChangeBufferPos.line&&s.end.column===this._lastChangeBufferPos.column&&a+s.length===e&&t.length<65535){this.appendToNode(i,t);this.computeBufferMetadata();return}if(a===e){this.insertContentToNodeLeft(t,i);this._searchCache.valdiate(e)}else if(a+i.piece.length>e){var c=[];var d=new Se(s.bufferIndex,l,s.end,this.getLineFeedCnt(s.bufferIndex,l,s.end),this.offsetInBuffer(u,s.end)-this.offsetInBuffer(u,l));if(this.shouldCheckCRLF()&&this.endWithCR(t)){var h;if(10===this.nodeCharCodeAt(i,o)){var f={line:d.start.line+1,column:0};d=new Se(d.bufferIndex,f,d.end,this.getLineFeedCnt(d.bufferIndex,f,d.end),d.length-1);t+="\n"}}if(this.shouldCheckCRLF()&&this.startWithLF(t)){var p;if(13===this.nodeCharCodeAt(i,o-1)){var g=this.positionInBuffer(i,o-1);this.deleteNodeTail(i,g);t="\r"+t;0===i.piece.length&&c.push(i)}else this.deleteNodeTail(i,l)}else this.deleteNodeTail(i,l);var v=this.createNewPieces(t);d.length>0&&this.rbInsertRight(i,d);var m=i;for(var _=0;_<v.length;_++)m=this.rbInsertRight(m,v[_]);this.deleteNodes(c)}else this.insertContentToNodeRight(t,i)}else{var y=this.createNewPieces(t);var i=this.rbInsertLeft(null,y[0]);for(var _=1;_<y.length;_++)i=this.rbInsertRight(i,y[_])}this.computeBufferMetadata()};e.prototype.delete=function(e,t){this._lastVisitedLine.lineNumber=0;this._lastVisitedLine.value="";if(t<=0||this.root===oe)return;var n=this.nodeAt(e);var r=this.nodeAt(e+t);var i=n.node;var o=r.node;if(i===o){var a=this.positionInBuffer(i,n.remainder);var s=this.positionInBuffer(i,r.remainder);if(n.nodeStartOffset===e){if(t===i.piece.length){var u=i.next();fe(this,i);this.validateCRLFWithPrevNode(u);this.computeBufferMetadata();return}this.deleteNodeHead(i,s);this._searchCache.valdiate(e);this.validateCRLFWithPrevNode(i);this.computeBufferMetadata();return}if(n.nodeStartOffset+i.piece.length===e+t){this.deleteNodeTail(i,a);this.validateCRLFWithNextNode(i);this.computeBufferMetadata();return}this.shrinkNode(i,a,s);this.computeBufferMetadata();return}var l=[];var c=this.positionInBuffer(i,n.remainder);this.deleteNodeTail(i,c);this._searchCache.valdiate(e);0===i.piece.length&&l.push(i);var d=this.positionInBuffer(o,r.remainder);this.deleteNodeHead(o,d);0===o.piece.length&&l.push(o);var h;for(var f=i.next();f!==oe&&f!==o;f=f.next())l.push(f);var p=0===i.piece.length?i.prev():i;this.deleteNodes(l);this.validateCRLFWithNextNode(p);this.computeBufferMetadata()};e.prototype.insertContentToNodeLeft=function(e,t){var n=[];if(this.shouldCheckCRLF()&&this.endWithCR(e)&&this.startWithLF(t)){var r=t.piece;var i={line:r.start.line+1,column:0};var o=new Se(r.bufferIndex,i,r.end,this.getLineFeedCnt(r.bufferIndex,i,r.end),r.length-1);t.piece=o;e+="\n";ge(this,t,-1,-1);0===t.piece.length&&n.push(t)}var a=this.createNewPieces(e);var s=this.rbInsertLeft(t,a[a.length-1]);for(var u=a.length-2;u>=0;u--)s=this.rbInsertLeft(s,a[u]);this.validateCRLFWithPrevNode(s);this.deleteNodes(n)};e.prototype.insertContentToNodeRight=function(e,t){this.adjustCarriageReturnFromNext(e,t)&&(e+="\n");var n=this.createNewPieces(e);var r=this.rbInsertRight(t,n[0]);var i=r;for(var o=1;o<n.length;o++)i=this.rbInsertRight(i,n[o]);this.validateCRLFWithPrevNode(r)};e.prototype.positionInBuffer=function(e,t,n){var r=e.piece;var i=e.piece.bufferIndex;var o=this._buffers[i].lineStarts;var a;var s=o[r.start.line]+r.start.column+t;var u=r.start.line;var l=r.end.line;var c=0;var d=0;var h=0;for(;u<=l;){h=o[c=u+(l-u)/2|0];if(c===l)break;d=o[c+1];if(s<h)l=c-1;else{if(!(s>=d))break;u=c+1}}if(n){n.line=c;n.column=s-h;return null}return{line:c,column:s-h}};e.prototype.getLineFeedCnt=function(e,t,n){if(0===n.column)return n.line-t.line;var r=this._buffers[e].lineStarts;if(n.line===r.length-1)return n.line-t.line;var i=r[n.line+1];var o=r[n.line]+n.column;if(i>o+1)return n.line-t.line;var a=o-1;var s;return 13===this._buffers[e].buffer.charCodeAt(a)?n.line-t.line+1:n.line-t.line};e.prototype.offsetInBuffer=function(e,t){var n;return this._buffers[e].lineStarts[t.line]+t.column};e.prototype.deleteNodes=function(e){for(var t=0;t<e.length;t++)fe(this,e[t])};e.prototype.createNewPieces=function(e){if(e.length>65535){var t=[];for(;e.length>65535;){var n=e.charCodeAt(65534);var r=void 0;if(13===n||n>=55296&&n<=56319){r=e.substring(0,65534);e=e.substring(65534)}else{r=e.substring(0,65535);e=e.substring(65535)}var i=Ce(r);t.push(new Se(this._buffers.length,{line:0,column:0},{line:i.length-1,column:r.length-i[i.length-1]},i.length-1,r.length));this._buffers.push(new Le(r,i))}var o=Ce(e);t.push(new Se(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 Le(e,o));return t}var a=this._buffers[0].buffer.length;var s=Ce(e,!1);var u=this._lastChangeBufferPos;if(this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-1]===a&&0!==a&&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 l=0;l<s.length;l++)s[l]+=a+1;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(s.slice(1));this._buffers[0].buffer+="_"+e;a+=1}else{if(0!==a)for(var l=0;l<s.length;l++)s[l]+=a;this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(s.slice(1));this._buffers[0].buffer+=e}var c=this._buffers[0].buffer.length;var d=this._buffers[0].lineStarts.length-1;var h;var f={line:d,column:c-this._buffers[0].lineStarts[d]};var p=new Se(0,u,f,this.getLineFeedCnt(0,u,f),c-a);this._lastChangeBufferPos=f;return[p]};e.prototype.getLineRawContent=function(e,t){void 0===t&&(t=0);var n=this.root;var r="";var i=this._searchCache.get2(e);if(i){n=i.node;var o=this.getAccumulatedValue(n,e-i.nodeStartLineNumber-1);var a=this._buffers[n.piece.bufferIndex].buffer;var s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);if(i.nodeStartLineNumber+n.piece.lineFeedCnt!==e){var u=this.getAccumulatedValue(n,e-i.nodeStartLineNumber);return a.substring(s+o,s+u-t)}r=a.substring(s+o,s+n.piece.length)}else{var l=0;var c=e;for(;n!==oe;)if(n.left!==oe&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var o=this.getAccumulatedValue(n,e-n.lf_left-2);var u=this.getAccumulatedValue(n,e-n.lf_left-1);var a=this._buffers[n.piece.bufferIndex].buffer;var s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);l+=n.size_left;this._searchCache.set({node:n,nodeStartOffset:l,nodeStartLineNumber:c-(e-1-n.lf_left)});return a.substring(s+o,s+u-t)}if(n.lf_left+n.piece.lineFeedCnt===e-1){var o=this.getAccumulatedValue(n,e-n.lf_left-2);var a=this._buffers[n.piece.bufferIndex].buffer;var s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r=a.substring(s+o,s+n.piece.length);break}e-=n.lf_left+n.piece.lineFeedCnt;l+=n.size_left+n.piece.length;n=n.right}}n=n.next();for(;n!==oe;){var a=this._buffers[n.piece.bufferIndex].buffer;if(n.piece.lineFeedCnt>0){var u=this.getAccumulatedValue(n,0);var s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);return r+=a.substring(s,s+u-t)}var s=this.offsetInBuffer(n.piece.bufferIndex,n.piece.start);r+=a.substr(s,n.piece.length);n=n.next()}return r};e.prototype.computeBufferMetadata=function(){var e=this.root;var t=1;var n=0;for(;e!==oe;){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;var r=this.positionInBuffer(e,t);var i=r.line-n.start.line;if(this.offsetInBuffer(n.bufferIndex,n.end)-this.offsetInBuffer(n.bufferIndex,n.start)===t){var o=this.getLineFeedCnt(e.piece.bufferIndex,n.start,r);if(o!==i)return{index:o,remainder:0}}return{index:i,remainder:r.column}};e.prototype.getAccumulatedValue=function(e,t){if(t<0)return 0;var n=e.piece;var r=this._buffers[n.bufferIndex].lineStarts;var i=n.start.line+t+1;return i>n.end.line?r[n.end.line]+n.end.column-r[n.start.line]-n.start.column:r[i]-r[n.start.line]-n.start.column};e.prototype.deleteNodeTail=function(e,t){var n=e.piece;var r=n.lineFeedCnt;var i=this.offsetInBuffer(n.bufferIndex,n.end);var o=t;var a=this.offsetInBuffer(n.bufferIndex,o);var s=this.getLineFeedCnt(n.bufferIndex,n.start,o);var u=s-r;var l=a-i;var c=n.length+l;e.piece=new Se(n.bufferIndex,n.start,o,s,c);ge(this,e,l,u)};e.prototype.deleteNodeHead=function(e,t){var n=e.piece;var r=n.lineFeedCnt;var i=this.offsetInBuffer(n.bufferIndex,n.start);var o=t;var a=this.getLineFeedCnt(n.bufferIndex,o,n.end);var s;var u=a-r;var l=i-this.offsetInBuffer(n.bufferIndex,o);var c=n.length+l;e.piece=new Se(n.bufferIndex,o,n.end,a,c);ge(this,e,l,u)};e.prototype.shrinkNode=function(e,t,n){var r=e.piece;var i=r.start;var o=r.end;var a=r.length;var s=r.lineFeedCnt;var u=t;var l=this.getLineFeedCnt(r.bufferIndex,r.start,u);var c=this.offsetInBuffer(r.bufferIndex,t)-this.offsetInBuffer(r.bufferIndex,i);e.piece=new Se(r.bufferIndex,r.start,u,l,c);ge(this,e,c-a,l-s);var d=new Se(r.bufferIndex,n,o,this.getLineFeedCnt(r.bufferIndex,n,o),this.offsetInBuffer(r.bufferIndex,o)-this.offsetInBuffer(r.bufferIndex,n));var h=this.rbInsertRight(e,d);this.validateCRLFWithPrevNode(h)};e.prototype.appendToNode=function(e,t){this.adjustCarriageReturnFromNext(t,e)&&(t+="\n");var n=this.shouldCheckCRLF()&&this.startWithLF(t)&&this.endWithCR(e);var r=this._buffers[0].buffer.length;this._buffers[0].buffer+=t;var i=Ce(t,!1);for(var o=0;o<i.length;o++)i[o]+=r;if(n){var a=this._buffers[0].lineStarts[this._buffers[0].lineStarts.length-2];this._buffers[0].lineStarts.pop();this._lastChangeBufferPos={line:this._lastChangeBufferPos.line-1,column:r-a}}this._buffers[0].lineStarts=this._buffers[0].lineStarts.concat(i.slice(1));var s=this._buffers[0].lineStarts.length-1;var u;var l={line:s,column:this._buffers[0].buffer.length-this._buffers[0].lineStarts[s]};var c=e.piece.length+t.length;var d=e.piece.lineFeedCnt;var h=this.getLineFeedCnt(0,e.piece.start,l);var f=h-d;e.piece=new Se(e.piece.bufferIndex,e.piece.start,l,h,c);this._lastChangeBufferPos=l;ge(this,e,t.length,f)};e.prototype.nodeAt=function(e){var t=this.root;var n=this._searchCache.get(e);if(n)return{node:n.node,nodeStartOffset:n.nodeStartOffset,remainder:e-n.nodeStartOffset};var r=0;for(;t!==oe;)if(t.size_left>e)t=t.left;else{if(t.size_left+t.piece.length>=e){r+=t.size_left;var i={node:t,remainder:e-t.size_left,nodeStartOffset:r};this._searchCache.set(i);return i}e-=t.size_left+t.piece.length;r+=t.size_left+t.piece.length;t=t.right}return null};e.prototype.nodeAt2=function(e,t){var n=this.root;var r=0;for(;n!==oe;)if(n.left!==oe&&n.lf_left>=e-1)n=n.left;else{if(n.lf_left+n.piece.lineFeedCnt>e-1){var i=this.getAccumulatedValue(n,e-n.lf_left-2);var o=this.getAccumulatedValue(n,e-n.lf_left-1);r+=n.size_left;return{node:n,remainder:Math.min(i+t-1,o),nodeStartOffset:r}}if(n.lf_left+n.piece.lineFeedCnt===e-1){var i;if((i=this.getAccumulatedValue(n,e-n.lf_left-2))+t-1<=n.piece.length)return{node:n,remainder:i+t-1,nodeStartOffset:r};t-=n.piece.length-i;break}e-=n.lf_left+n.piece.lineFeedCnt;r+=n.size_left+n.piece.length;n=n.right}n=n.next();for(;n!==oe;){if(n.piece.lineFeedCnt>0){var o=this.getAccumulatedValue(n,0);var a=this.offsetOfNode(n);return{node:n,remainder:Math.min(t-1,o),nodeStartOffset:a}}if(n.piece.length>=t-1){var s;return{node:n,remainder:t-1,nodeStartOffset:this.offsetOfNode(n)}}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];var r=this.offsetInBuffer(e.piece.bufferIndex,e.piece.start)+t;return n.buffer.charCodeAt(r)};e.prototype.offsetOfNode=function(e){if(!e)return 0;var t=e.size_left;for(;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===oe||0===e.piece.lineFeedCnt)return!1;var t=e.piece;var n=this._buffers[t.bufferIndex].lineStarts;var r=t.start.line;var i=n[r]+t.start.column;if(r===n.length-1)return!1;var o;if(n[r+1]>i+1)return!1;return 10===this._buffers[t.bufferIndex].buffer.charCodeAt(i)};e.prototype.endWithCR=function(e){if("string"==typeof e)return 13===e.charCodeAt(e.length-1);if(e===oe||0===e.piece.lineFeedCnt)return!1;return 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=[];var r=this._buffers[e.piece.bufferIndex].lineStarts;var i;i=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 o=e.piece.length-1;var a=e.piece.lineFeedCnt-1;e.piece=new Se(e.piece.bufferIndex,e.piece.start,i,a,o);ge(this,e,-1,-1);0===e.piece.length&&n.push(e);var s={line:t.piece.start.line+1,column:0};var u=t.piece.length-1;var l=this.getLineFeedCnt(t.piece.bufferIndex,s,t.piece.end);t.piece=new Se(t.piece.bufferIndex,s,t.piece.end,l,u);ge(this,t,-1,-1);0===t.piece.length&&n.push(t);var c=this.createNewPieces("\r\n");this.rbInsertRight(e,c[0]);for(var d=0;d<n.length;d++)fe(this,n[d])};e.prototype.adjustCarriageReturnFromNext=function(e,t){if(this.shouldCheckCRLF()&&this.endWithCR(e)){var n=t.next();if(this.startWithLF(n)){e+="\n";if(1===n.piece.length)fe(this,n);else{var r=n.piece;var i={line:r.start.line+1,column:0};var o=r.length-1;var a=this.getLineFeedCnt(r.bufferIndex,i,r.end);n.piece=new Se(r.bufferIndex,i,r.end,a,o);ge(this,n,-1,-1)}return!0}}return!1};e.prototype.iterate=function(e,t){if(e===oe)return t(oe);var n=this.iterate(e.left,t);if(!n)return n;return t(e)&&this.iterate(e.right,t)};e.prototype.getNodeContent=function(e){if(e===oe)return"";var t=this._buffers[e.piece.bufferIndex];var n;var r=e.piece;var i=this.offsetInBuffer(r.bufferIndex,r.start);var o=this.offsetInBuffer(r.bufferIndex,r.end);return n=t.buffer.substring(i,o)};e.prototype.rbInsertRight=function(e,t){var n=new ie(t,1);n.left=oe;n.right=oe;n.parent=oe;n.size_left=0;n.lf_left=0;var r;if(this.root===oe){this.root=n;n.color=0}else if(e.right===oe){e.right=n;n.parent=e}else{var i=ae(e.right);i.left=n;n.parent=i}pe(this,n);return n};e.prototype.rbInsertLeft=function(e,t){var n=new ie(t,1);n.left=oe;n.right=oe;n.parent=oe;n.size_left=0;n.lf_left=0;if(this.root===oe){this.root=n;n.color=0}else if(e.left===oe){e.left=n;n.parent=e}else{var r=se(e.left);r.right=n;n.parent=r}pe(this,n);return n};e.prototype.getContentOfSubTree=function(e){var t=this;var n="";this.iterate(e,function(e){n+=t.getNodeContent(e);return!0});return n};return e}();var Ne=function(){function e(e,t,n,r,i,o){this._BOM=t;this._mightContainNonBasicASCII=!i;this._mightContainRTL=r;this._pieceTree=new xe(e,n,o)}e.prototype.mightContainRTL=function(){return this._mightContainRTL};e.prototype.mightContainNonBasicASCII=function(){return this._mightContainNonBasicASCII};e.prototype.getBOM=function(){return this._BOM};e.prototype.getEOL=function(){return this._pieceTree.getEOL()};e.prototype.getOffsetAt=function(e,t){return this._pieceTree.getOffsetAt(e,t)};e.prototype.getPositionAt=function(e){return this._pieceTree.getPositionAt(e)};e.prototype.getRangeAt=function(e,t){var n=e+t;var r=this.getPositionAt(e);var i=this.getPositionAt(n);return new f["a"](r.lineNumber,r.column,i.lineNumber,i.column)};e.prototype.getValueInRange=function(e,t){void 0===t&&(t=0);if(e.isEmpty())return"";var n=this._getEndOfLine(t);return this._pieceTree.getValueInRange(e,n)};e.prototype.getValueLengthInRange=function(e,t){void 0===t&&(t=0);if(e.isEmpty())return 0;if(e.startLineNumber===e.endLineNumber)return e.endColumn-e.startColumn;var n=this.getOffsetAt(e.startLineNumber,e.startColumn);var r;return this.getOffsetAt(e.endLineNumber,e.endColumn)-n};e.prototype.getLength=function(){return this._pieceTree.getLength()};e.prototype.getLineCount=function(){return this._pieceTree.getLineCount()};e.prototype.getLinesContent=function(){return this._pieceTree.getLinesContent()};e.prototype.getLineContent=function(e){return this._pieceTree.getLineContent(e)};e.prototype.getLineCharCode=function(e,t){return this._pieceTree.getLineCharCode(e,t)};e.prototype.getLineLength=function(e){return this._pieceTree.getLineLength(e)};e.prototype.getLineFirstNonWhitespaceColumn=function(e){var t=l["m"](this.getLineContent(e));if(-1===t)return 0;return t+1};e.prototype.getLineLastNonWhitespaceColumn=function(e){var t=l["w"](this.getLineContent(e));if(-1===t)return 0;return t+2};e.prototype._getEndOfLine=function(e){switch(e){case 1:return"\n";case 2:return"\r\n";case 0:return this.getEOL()}throw new Error("Unknown EOL preference")};e.prototype.setEOL=function(e){this._pieceTree.setEOL(e)};e.prototype.applyEdits=function(t,n){var r=this._mightContainRTL;var i=this._mightContainNonBasicASCII;var o=!0;var a=[];for(var s=0;s<t.length;s++){var u=t[s];o&&u._isTracked&&(o=!1);var c=u.range;!r&&u.text&&(r=l["f"](u.text));!i&&u.text&&(i=!l["p"](u.text));a[s]={sortIndex:s,identifier:u.identifier||null,range:c,rangeOffset:this.getOffsetAt(c.startLineNumber,c.startColumn),rangeLength:this.getValueLengthInRange(c),lines:u.text?u.text.split(/\r\n|\r|\n/):null,forceMoveMarkers:Boolean(u.forceMoveMarkers),isAutoWhitespaceEdit:u.isAutoWhitespaceEdit||!1}}a.sort(e._sortOpsAscending);var d=!1;for(var s=0,h=a.length-1;s<h;s++){var f=a[s].range.getEndPosition();var p=a[s+1].range.getStartPosition();if(p.isBeforeOrEqual(f)){if(p.isBefore(f))throw new Error("Overlapping ranges are not allowed!");d=!0}}o&&(a=this._reduceOperations(a));var v=e._getInverseEditRanges(a);var m=[];for(var s=0;s<a.length;s++){var u=a[s];var _=v[s];if(n&&u.isAutoWhitespaceEdit&&u.range.isEmpty())for(var y=_.startLineNumber;y<=_.endLineNumber;y++){var b="";if(y===_.startLineNumber){b=this.getLineContent(u.range.startLineNumber);if(-1!==l["m"](b))continue}m.push({lineNumber:y,oldContent:b})}}var C=[];for(var s=0;s<a.length;s++){var u=a[s];var _=v[s];C[s]={sortIndex:u.sortIndex,identifier:u.identifier,range:_,text:this.getValueInRange(u.range),forceMoveMarkers:u.forceMoveMarkers}}d||C.sort(function(e,t){return e.sortIndex-t.sortIndex});this._mightContainRTL=r;this._mightContainNonBasicASCII=i;var w=this._doApplyEdits(a);var S=null;if(n&&m.length>0){m.sort(function(e,t){return t.lineNumber-e.lineNumber});S=[];for(var s=0,L=m.length;s<L;s++){var y=m[s].lineNumber;if(s>0&&m[s-1].lineNumber===y)continue;var I=m[s].oldContent;var x=this.getLineContent(y);if(0===x.length||x===I||-1!==l["m"](x))continue;S.push(y)}}return new g["a"](C,w,S)};e.prototype._reduceOperations=function(e){if(e.length<1e3)return e;return[this._toSingleEditOperation(e)]};e.prototype._toSingleEditOperation=function(e){var t=!1,n=e[0].range,r=e[e.length-1].range,i=new f["a"](n.startLineNumber,n.startColumn,r.endLineNumber,r.endColumn),o=n.startLineNumber,a=n.startColumn,s=[];for(var u=0,l=e.length;u<l;u++){var c=e[u],d=c.range;t=t||c.forceMoveMarkers;for(var h=o;h<d.startLineNumber;h++)if(h===o)s.push(this.getLineContent(h).substring(a-1));else{s.push("\n");s.push(this.getLineContent(h))}if(d.startLineNumber===o)s.push(this.getLineContent(d.startLineNumber).substring(a-1,d.startColumn-1));else{s.push("\n");s.push(this.getLineContent(d.startLineNumber).substring(0,d.startColumn-1))}if(c.lines)for(var p=0,g=c.lines.length;p<g;p++){0!==p&&s.push("\n");s.push(c.lines[p])}o=c.range.endLineNumber;a=c.range.endColumn}return{sortIndex:0,identifier:e[0].identifier,range:i,rangeOffset:this.getOffsetAt(i.startLineNumber,i.startColumn),rangeLength:this.getValueLengthInRange(i,0),lines:s.join("").split("\n"),forceMoveMarkers:t,isAutoWhitespaceEdit:!1}};e.prototype._doApplyEdits=function(t){t.sort(e._sortOpsDescending);var n=[];for(var r=0;r<t.length;r++){var i=t[r];var o=i.range.startLineNumber;var a=i.range.startColumn;var s=i.range.endLineNumber;var u=i.range.endColumn;if(o===s&&a===u&&(!i.lines||0===i.lines.length))continue;var l=s-o;var c=i.lines?i.lines.length-1:0;var d=Math.min(l,c);var h=i.lines?i.lines.join(this.getEOL()):"";if(h){this._pieceTree.delete(i.rangeOffset,i.rangeLength);this._pieceTree.insert(i.rangeOffset,h,!0)}else this._pieceTree.delete(i.rangeOffset,i.rangeLength);if(d<c){var p=[];for(var g=d+1;g<=c;g++)p.push(i.lines[g]);p[p.length-1]=this.getLineContent(o+c-1)}var v=new f["a"](o,a,s,u);n.push({range:v,rangeLength:i.rangeLength,text:h,rangeOffset:i.rangeOffset,forceMoveMarkers:i.forceMoveMarkers})}return n};e.prototype.findMatchesLineByLine=function(e,t,n,r){return this._pieceTree.findMatchesLineByLine(e,t,n,r)};e._getInverseEditRanges=function(e){var t=[];var n=0;var r=0;var i=null;for(var o=0,a=e.length;o<a;o++){var s=e[o];var u=void 0;var l=void 0;if(i)if(i.range.endLineNumber===s.range.startLineNumber){u=n;l=r+(s.range.startColumn-i.range.endColumn)}else{u=n+(s.range.startLineNumber-i.range.endLineNumber);l=s.range.startColumn}else{u=s.range.startLineNumber;l=s.range.startColumn}var c=void 0;if(s.lines&&s.lines.length>0){var d=s.lines.length;var h=s.lines[0];var p=s.lines[d-1];c=1===d?new f["a"](u,l,u,l+h.length):new f["a"](u,l,u+d-1,p.length+1)}else c=new f["a"](u,l,u,l);n=c.endLineNumber;r=c.endColumn;t.push(c);i=s}return t};e._sortOpsAscending=function(e,t){var n=f["a"].compareRangesUsingEnds(e.range,t.range);if(0===n)return e.sortIndex-t.sortIndex;return n};e._sortOpsDescending=function(e,t){var n=f["a"].compareRangesUsingEnds(e.range,t.range);if(0===n)return t.sortIndex-e.sortIndex;return-n};return e}();var Me=function(){function e(e,t,n,r,i,o,a,s){this._chunks=e;this._bom=t;this._cr=n;this._lf=r;this._crlf=i;this._containsRTL=o;this._isBasicASCII=a;this._normalizeEOL=s}e.prototype._getEOL=function(e){var t=this._cr+this._lf+this._crlf;var n=this._cr+this._crlf;if(0===t)return 1===e?"\n":"\r\n";if(n>t/2)return"\r\n";return"\n"};e.prototype.create=function(e){var t=this._getEOL(e);var n=this._chunks;if(this._normalizeEOL&&("\r\n"===t&&(this._cr>0||this._lf>0)||"\n"===t&&(this._cr>0||this._crlf>0)))for(var r=0,i=n.length;r<i;r++){var o=n[r].buffer.replace(/\r\n|\r|\n/g,t);var a=Ce(o);n[r]=new Le(o,a)}return new Ne(n,this._bom,t,this._containsRTL,this._isBasicASCII,this._normalizeEOL)};return e}();var De=function(){function e(){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}e.prototype.acceptChunk=function(e){if(0===e.length)return;if(0===this.chunks.length&&l["C"](e)){this.BOM=l["a"];e=e.substr(1)}var t=e.charCodeAt(e.length-1);if(13===t||t>=55296&&t<=56319){this._acceptChunk1(e.substr(0,e.length-1),!1);this._hasPreviousChar=!0;this._previousChar=t}else{this._acceptChunk1(e,!1);this._hasPreviousChar=!1;this._previousChar=t}};e.prototype._acceptChunk1=function(e,t){if(!t&&0===e.length)return;this._hasPreviousChar?this._acceptChunk2(String.fromCharCode(this._previousChar)+e):this._acceptChunk2(e)};e.prototype._acceptChunk2=function(e){var t=we(this._tmpLineStarts,e);this.chunks.push(new Le(e,t.lineStarts));this.cr+=t.cr;this.lf+=t.lf;this.crlf+=t.crlf;this.isBasicASCII&&(this.isBasicASCII=t.isBasicASCII);this.isBasicASCII||this.containsRTL||(this.containsRTL=l["f"](e))};e.prototype.finish=function(e){void 0===e&&(e=!0);this._finish();return new Me(this.chunks,this.BOM,this.cr,this.lf,this.crlf,this.containsRTL,this.isBasicASCII,e)};e.prototype._finish=function(){0===this.chunks.length&&this._acceptChunk1("",!0);if(this._hasPreviousChar){this._hasPreviousChar=!1;var e=this.chunks[this.chunks.length-1];e.buffer+=String.fromCharCode(this._previousChar);var t=Ce(e.buffer);e.lineStarts=t;13===this._previousChar&&this.cr++}};return e}();var ke=function(){function e(){this.changeType=1}return e}();var Oe=function(){function e(e,t){this.changeType=2;this.lineNumber=e;this.detail=t}return e}();var Ee=function(){function e(e,t){this.changeType=3;this.fromLineNumber=e;this.toLineNumber=t}return e}();var Te=function(){function e(e,t,n){this.changeType=4;this.fromLineNumber=e;this.toLineNumber=t;this.detail=n}return e}();var Ae=function(){function e(){this.changeType=5}return e}();var Re=function(){function e(e,t,n,r){this.changes=e;this.versionId=t;this.isUndoing=n;this.isRedoing=r}e.prototype.containsEvent=function(e){for(var t=0,n=this.changes.length;t<n;t++){var r;if(this.changes[t].changeType===e)return!0}return!1};e.merge=function(t,n){var r;var i;var o;var a;return new e([].concat(t.changes).concat(n.changes),n.versionId,t.isUndoing||n.isUndoing,t.isRedoing||n.isRedoing)};return e}();var Pe=function(){function e(e,t){this.rawContentChangedEvent=e;this.contentChangedEvent=t}e.prototype.merge=function(t){var n;var r;return new e(Re.merge(this.rawContentChangedEvent,t.rawContentChangedEvent),e._mergeChangeEvents(this.contentChangedEvent,t.contentChangedEvent))};e._mergeChangeEvents=function(e,t){var n;var r;var i;var o;var a;var s;return{changes:[].concat(e.changes).concat(t.changes),eol:t.eol,versionId:t.versionId,isUndoing:e.isUndoing||t.isUndoing,isRedoing:e.isRedoing||t.isRedoing,isFlush:e.isFlush||t.isFlush}};return e}();var je=n("1RQC");var We=n("RhT1");var Fe=n("FPwH");function ze(e){return(16384|e<<0|2<<23)>>>0}var Ve=new Uint32Array(0).buffer;var Be=function(){function e(e){this._state=e;this._lineTokens=null;this._invalid=!0}e.prototype.deleteBeginning=function(e){if(null===this._lineTokens||this._lineTokens===Ve)return;this.delete(0,e)};e.prototype.deleteEnding=function(e){if(null===this._lineTokens||this._lineTokens===Ve)return;var t=new Uint32Array(this._lineTokens);var n=t[t.length-2];this.delete(e,n)};e.prototype.delete=function(e,t){if(null===this._lineTokens||this._lineTokens===Ve||e===t)return;var n=new Uint32Array(this._lineTokens);var r=n.length>>>1;if(0===e&&n[n.length-2]===t){this._lineTokens=Ve;return}var i=We["a"].findIndexInTokensArray(n,e);var o=i>0?n[i-1<<1]:0;var a;if(t<n[i<<1]){var s=t-e;for(var u=i;u<r;u++)n[u<<1]-=s;return}var l;var c;if(o!==e){n[i<<1]=e;l=i+1<<1;c=e}else{l=i<<1;c=o}var d=t-e;for(var h=i+1;h<r;h++){var f=n[h<<1]-d;if(f>c){n[l++]=f;n[l++]=n[1+(h<<1)];c=f}}if(l===n.length)return;var p=new Uint32Array(l);p.set(n.subarray(0,l),0);this._lineTokens=p.buffer};e.prototype.append=function(e){if(e===Ve)return;if(this._lineTokens===Ve){this._lineTokens=e;return}if(null===this._lineTokens)return;if(null===e){this._lineTokens=null;return}var t=new Uint32Array(this._lineTokens);var n=new Uint32Array(e);var r=n.length>>>1;var i=new Uint32Array(t.length+n.length);i.set(t,0);var o=t.length;var a=t[t.length-2];for(var s=0;s<r;s++){i[o++]=n[s<<1]+a;i[o++]=n[1+(s<<1)]}this._lineTokens=i.buffer};e.prototype.insert=function(e,t){if(!this._lineTokens)return;var n=new Uint32Array(this._lineTokens);var r=n.length>>>1;var i=We["a"].findIndexInTokensArray(n,e);if(i>0){var o;(i>0?n[i-1<<1]:0)===e&&i--}for(var a=i;a<r;a++)n[a<<1]+=t};return e}();var He=function(){function e(e,t){this.languageIdentifier=e;this.tokenizationSupport=t;this._tokens=[];if(this.tokenizationSupport){var n=null;try{n=this.tokenizationSupport.getInitialState()}catch(e){Object(r["d"])(e);this.tokenizationSupport=null}n&&(this._tokens[0]=new Be(n))}this._invalidLineStartIndex=0;this._lastState=null}Object.defineProperty(e.prototype,"inValidLineStartIndex",{get:function(){return this._invalidLineStartIndex},enumerable:!0,configurable:!0});e.prototype.getTokens=function(e,t,n){var r=null;t<this._tokens.length&&this._tokens[t]&&(r=this._tokens[t]._lineTokens);if(null!==r&&r!==Ve)return new We["a"](new Uint32Array(r),n);var i=new Uint32Array(2);i[0]=n.length;i[1]=ze(e);return new We["a"](i,n)};e.prototype.isCheapToTokenize=function(e){var t;return this._invalidLineStartIndex+1>=e};e.prototype.hasLinesToTokenize=function(e){return this._invalidLineStartIndex<e.getLineCount()};e.prototype.invalidateLine=function(e){this._setIsInvalid(e,!0);if(e<this._invalidLineStartIndex){this._setIsInvalid(this._invalidLineStartIndex,!0);this._invalidLineStartIndex=e}};e.prototype._setIsInvalid=function(e,t){e<this._tokens.length&&this._tokens[e]&&(this._tokens[e]._invalid=t)};e.prototype._isInvalid=function(e){if(e<this._tokens.length&&this._tokens[e])return this._tokens[e]._invalid;return!0};e.prototype._getState=function(e){if(e<this._tokens.length&&this._tokens[e])return this._tokens[e]._state;return null};e.prototype._setTokens=function(e,t,n,r){var i;if(t<this._tokens.length&&this._tokens[t])i=this._tokens[t];else{i=new Be(null);this._tokens[t]=i}if(0===n){i._lineTokens=Ve;return}if(!r||0===r.length){(r=new Uint32Array(2))[0]=0;r[1]=ze(e)}We["a"].convertToEndOffset(r,n);i._lineTokens=r.buffer};e.prototype._setState=function(e,t){if(e<this._tokens.length&&this._tokens[e])this._tokens[e]._state=t;else{var n=new Be(t);this._tokens[e]=n}};e.prototype.applyEdits=function(e,t,n){var r=e.endLineNumber-e.startLineNumber;var i=t;var o;for(var a=Math.min(r,i);a>=0;a--)this.invalidateLine(e.startLineNumber+a-1);this._acceptDeleteRange(e);this._acceptInsertText(new h["a"](e.startLineNumber,e.startColumn),t,n)};e.prototype._acceptDeleteRange=function(e){var t=e.startLineNumber-1;if(t>=this._tokens.length)return;if(e.startLineNumber===e.endLineNumber){if(e.startColumn===e.endColumn)return;this._tokens[t].delete(e.startColumn-1,e.endColumn-1);return}var n=this._tokens[t];n.deleteEnding(e.startColumn-1);var r=e.endLineNumber-1;var i=null;if(r<this._tokens.length){var o=this._tokens[r];o.deleteBeginning(e.endColumn-1);i=o._lineTokens}n.append(i);this._tokens.splice(e.startLineNumber,e.endLineNumber-e.startLineNumber)};e.prototype._acceptInsertText=function(e,t,n){if(0===t&&0===n)return;var r=e.lineNumber-1;if(r>=this._tokens.length)return;if(0===t){this._tokens[r].insert(e.column-1,n);return}var i=this._tokens[r];i.deleteEnding(e.column-1);i.insert(e.column-1,n);var o=new Array(t);for(var a=t-1;a>=0;a--)o[a]=new Be(null);this._tokens=je["a"](this._tokens,e.lineNumber,o)};e.prototype._tokenizeOneLine=function(e,t){if(!this.hasLinesToTokenize(e))return e.getLineCount()+1;var n=this._invalidLineStartIndex+1;this._updateTokensUntilLine(e,t,n);return n};e.prototype._tokenizeText=function(e,t,n){var i=null;if(this.tokenizationSupport)try{i=this.tokenizationSupport.tokenize2(t,n,0)}catch(e){Object(r["d"])(e)}i||(i=Object(Fe["e"])(this.languageIdentifier.id,t,n,0));return i};e.prototype._updateTokensUntilLine=function(e,t,n){if(!this.tokenizationSupport){this._invalidLineStartIndex=e.getLineCount();return}var i=e.getLineCount();var o=n-1;for(var a=this._invalidLineStartIndex;a<=o;a++){var s=a+1;var u=e.getLineContent(a+1);var l=this._getState(a);var c=null;try{var d=l.clone();c=this.tokenizationSupport.tokenize2(u,d,0)}catch(e){Object(r["d"])(e)}c||(c=Object(Fe["e"])(this.languageIdentifier.id,u,l,0));this._setTokens(this.languageIdentifier.id,a,u.length,c.tokens);t.registerChangedTokens(a+1);this._setIsInvalid(a,!1);if(s<i){var h=this._getState(s);if(null!==h&&c.endState.equals(h)){var f=a+1;for(;f<i&&!this._isInvalid(f);){if(f+1<i){if(null===this._getState(f+1))break}else if(null===this._lastState)break;f++}this._invalidLineStartIndex=Math.max(this._invalidLineStartIndex,f);a=f-1}else this._setState(s,c.endState)}else this._lastState=c.endState}this._invalidLineStartIndex=Math.max(this._invalidLineStartIndex,o+1)};return e}();var Ue=function(){function e(){this._ranges=[]}e.prototype.registerChangedTokens=function(e){var t=this._ranges;var n=t.length;var r=n>0?t[n-1]:null;r&&r.toLineNumber===e-1?r.toLineNumber++:t[n]={fromLineNumber:e,toLineNumber:e}};e.prototype.build=function(){if(0===this._ranges.length)return null;return{ranges:this._ranges}};return e}();var Ze=n("Dg3a");var Ge=n("6cF/");var Ye=n("gZKZ");var Ke=n("ykW5");var Qe=n("XhnL");n.d(t,"b",function(){return st});n.d(t,"a",function(){return dt});var qe=(Je=function(e,t){return(Je=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])})(e,t)},function(e,t){Je(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var Je;var Xe=2048;function $e(){return new De}function et(e){var t=$e();t.acceptChunk(e);return t.finish()}function tt(e,t){var n;return("string"==typeof e?et(e):e).create(t)}var nt=0;function rt(e){var t=26;if((e%=52)<26)return String.fromCharCode(97+e);return String.fromCharCode(65+e-26)}var it=999;var ot=1e4;var at=function(){throw new Error("Invalid change accessor")};var st=function(e){qe(t,e);function t(n,r,o,a){void 0===a&&(a=null);var s=e.call(this)||this;s._onWillDispose=s._register(new i["a"]);s.onWillDispose=s._onWillDispose.event;s._onDidChangeDecorations=s._register(new pt);s.onDidChangeDecorations=s._onDidChangeDecorations.event;s._onDidChangeLanguage=s._register(new i["a"]);s.onDidChangeLanguage=s._onDidChangeLanguage.event;s._onDidChangeLanguageConfiguration=s._register(new i["a"]);s.onDidChangeLanguageConfiguration=s._onDidChangeLanguageConfiguration.event;s._onDidChangeTokens=s._register(new i["a"]);s.onDidChangeTokens=s._onDidChangeTokens.event;s._onDidChangeOptions=s._register(new i["a"]);s.onDidChangeOptions=s._onDidChangeOptions.event;s._eventEmitter=s._register(new gt);nt++;s.id="$model"+nt;s.isForSimpleWidget=r.isForSimpleWidget;s._associatedResource=void 0===a||null===a?c["a"].parse("inmemory://model/"+nt):a;s._attachedEditorCount=0;s._buffer=tt(n,r.defaultEOL);s._options=t.resolveOptions(s._buffer,r);var u=s._buffer.getLineCount();var l=s._buffer.getValueLengthInRange(new f["a"](1,1,u,s._buffer.getLineLength(u)+1),0);r.largeFileOptimizations?s._isTooLargeForTokenization=l>t.LARGE_FILE_SIZE_THRESHOLD||u>t.LARGE_FILE_LINE_COUNT_THRESHOLD:s._isTooLargeForTokenization=!1;s._isTooLargeForSyncing=l>t.MODEL_SYNC_LIMIT;s._setVersionId(1);s._isDisposed=!1;s._isDisposing=!1;s._languageIdentifier=o||Fe["a"];s._tokenizationListener=Ge["u"].onDidChange(function(e){if(-1===e.changedLanguages.indexOf(s._languageIdentifier.language))return;s._resetTokenizationState();s.emitModelTokensChangedEvent({ranges:[{fromLineNumber:1,toLineNumber:s.getLineCount()}]});s._shouldAutoTokenize()&&s._warmUpTokens()});s._revalidateTokensTimeout=-1;s._languageRegistryListener=Ye["a"].onDidChange(function(e){e.languageIdentifier.id===s._languageIdentifier.id&&s._onDidChangeLanguageConfiguration.fire({})});s._resetTokenizationState();s._instanceId=rt(nt);s._lastDecorationId=0;s._decorations=Object.create(null);s._decorationsTree=new ut;s._commandManager=new y(s);s._isUndoing=!1;s._isRedoing=!1;s._trimAutoWhitespaceLines=null;return s}t.createFromString=function(e,n,r,i){void 0===n&&(n=t.DEFAULT_CREATION_OPTIONS);void 0===r&&(r=null);void 0===i&&(i=null);return new t(e,n,r,i)};t.resolveOptions=function(e,t){if(t.detectIndentation){var n=w(e,t.tabSize,t.insertSpaces);return new g["d"]({tabSize:n.tabSize,insertSpaces:n.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})}return new g["d"]({tabSize:t.tabSize,insertSpaces:t.insertSpaces,trimAutoWhitespace:t.trimAutoWhitespace,defaultEOL:t.defaultEOL})};t.prototype.onDidChangeRawContentFast=function(e){return this._eventEmitter.fastEvent(function(t){return e(t.rawContentChangedEvent)})};t.prototype.onDidChangeRawContent=function(e){return this._eventEmitter.slowEvent(function(t){return e(t.rawContentChangedEvent)})};t.prototype.onDidChangeContent=function(e){return this._eventEmitter.slowEvent(function(t){return e(t.contentChangedEvent)})};t.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};t.prototype._assertNotDisposed=function(){if(this._isDisposed)throw new Error("Model is disposed!")};t.prototype._emitContentChangedEvent=function(e,t){if(this._isDisposing)return;this._eventEmitter.fire(new Pe(e,t))};t.prototype.setValue=function(e){this._assertNotDisposed();if(null===e)return;var t=tt(e,this._options.defaultEOL);this.setValueFromTextBuffer(t)};t.prototype._createContentChanged2=function(e,t,n,r,i,o,a){return{changes:[{range:e,rangeOffset:t,rangeLength:n,text:r}],eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:i,isRedoing:o,isFlush:a}};t.prototype.setValueFromTextBuffer=function(e){this._assertNotDisposed();if(null===e)return;var t=this.getFullModelRange();var n=this.getValueLengthInRange(t);var r=this.getLineCount();var i=this.getLineMaxColumn(r);this._buffer=e;this._increaseVersionId();this._resetTokenizationState();this._decorations=Object.create(null);this._decorationsTree=new ut;this._commandManager=new y(this);this._trimAutoWhitespaceLines=null;this._emitContentChangedEvent(new Re([new ke],this._versionId,!1,!1),this._createContentChanged2(new f["a"](1,1,r,i),0,n,this.getValue(),!1,!1,!0))};t.prototype.setEOL=function(e){this._assertNotDisposed();var t=1===e?"\r\n":"\n";if(this._buffer.getEOL()===t)return;var n=this.getFullModelRange();var r=this.getValueLengthInRange(n);var i=this.getLineCount();var o=this.getLineMaxColumn(i);this._onBeforeEOLChange();this._buffer.setEOL(t);this._increaseVersionId();this._onAfterEOLChange();this._emitContentChangedEvent(new Re([new Ae],this._versionId,!1,!1),this._createContentChanged2(new f["a"](1,1,i,o),0,r,this.getValue(),!1,!1,!1))};t.prototype._onBeforeEOLChange=function(){var e=this.getVersionId();var t=this._decorationsTree.search(0,!1,!1,e);this._ensureNodesHaveRanges(t)};t.prototype._onAfterEOLChange=function(){var e=this.getVersionId();var t=this._decorationsTree.collectNodesPostOrder();for(var n=0,r=t.length;n<r;n++){var i=t[n];var o=i.cachedAbsoluteStart-i.start;var a=this._buffer.getOffsetAt(i.range.startLineNumber,i.range.startColumn);var s=this._buffer.getOffsetAt(i.range.endLineNumber,i.range.endColumn);i.cachedAbsoluteStart=a;i.cachedAbsoluteEnd=s;i.cachedVersionId=e;i.start=a-o;i.end=s-o;te(i)}};t.prototype._resetTokenizationState=function(){this._clearTimers();var e=this._isTooLargeForTokenization?null:Ge["u"].get(this._languageIdentifier.language);this._tokens=new He(this._languageIdentifier,e);this._beginBackgroundTokenization()};t.prototype._clearTimers=function(){if(-1!==this._revalidateTokensTimeout){clearTimeout(this._revalidateTokensTimeout);this._revalidateTokensTimeout=-1}};t.prototype.onBeforeAttached=function(){this._attachedEditorCount++;this._warmUpTokens()};t.prototype.onBeforeDetached=function(){this._attachedEditorCount--};t.prototype._shouldAutoTokenize=function(){return this.isAttachedToEditor()};t.prototype.isAttachedToEditor=function(){return this._attachedEditorCount>0};t.prototype.getAttachedEditorCount=function(){return this._attachedEditorCount};t.prototype.isTooLargeForSyncing=function(){return this._isTooLargeForSyncing};t.prototype.isTooLargeForTokenization=function(){return this._isTooLargeForTokenization};t.prototype.isDisposed=function(){return this._isDisposed};t.prototype.isDominatedByLongLines=function(){this._assertNotDisposed();if(this.isTooLargeForTokenization())return!1;var e=0;var t=0;var n=this._buffer.getLineCount();for(var r=1;r<=n;r++){var i=this._buffer.getLineLength(r);i>=1e4?t+=i:e+=i}return t>e};Object.defineProperty(t.prototype,"uri",{get:function(){return this._associatedResource},enumerable:!0,configurable:!0});t.prototype.getOptions=function(){this._assertNotDisposed();return this._options};t.prototype.updateOptions=function(e){this._assertNotDisposed();var t=void 0!==e.tabSize?e.tabSize:this._options.tabSize;var n=void 0!==e.insertSpaces?e.insertSpaces:this._options.insertSpaces;var r=void 0!==e.trimAutoWhitespace?e.trimAutoWhitespace:this._options.trimAutoWhitespace;var i=new g["d"]({tabSize:t,insertSpaces:n,defaultEOL:this._options.defaultEOL,trimAutoWhitespace:r});if(this._options.equals(i))return;var o=this._options.createChangeEvent(i);this._options=i;this._onDidChangeOptions.fire(o)};t.prototype.detectIndentation=function(e,t){this._assertNotDisposed();var n=w(this._buffer,t,e);this.updateOptions({insertSpaces:n.insertSpaces,tabSize:n.tabSize})};t._normalizeIndentationFromWhitespace=function(e,t,n){var r=0;for(var i=0;i<e.length;i++)"\t"===e.charAt(i)?r+=t:r++;var o="";if(!n){var a=Math.floor(r/t);r%=t;for(var i=0;i<a;i++)o+="\t"}for(var i=0;i<r;i++)o+=" ";return o};t.normalizeIndentation=function(e,n,r){var i=l["m"](e);-1===i&&(i=e.length);return t._normalizeIndentationFromWhitespace(e.substring(0,i),n,r)+e.substring(i)};t.prototype.normalizeIndentation=function(e){this._assertNotDisposed();return t.normalizeIndentation(e,this._options.tabSize,this._options.insertSpaces)};t.prototype.getOneIndent=function(){this._assertNotDisposed();var e=this._options.tabSize;var t;if(this._options.insertSpaces){var n="";for(var r=0;r<e;r++)n+=" ";return n}return"\t"};t.prototype.getVersionId=function(){this._assertNotDisposed();return this._versionId};t.prototype.mightContainRTL=function(){return this._buffer.mightContainRTL()};t.prototype.mightContainNonBasicASCII=function(){return this._buffer.mightContainNonBasicASCII()};t.prototype.getAlternativeVersionId=function(){this._assertNotDisposed();return this._alternativeVersionId};t.prototype.getOffsetAt=function(e){this._assertNotDisposed();var t=this._validatePosition(e.lineNumber,e.column,!1);return this._buffer.getOffsetAt(t.lineNumber,t.column)};t.prototype.getPositionAt=function(e){this._assertNotDisposed();var t=Math.min(this._buffer.getLength(),Math.max(0,e));return this._buffer.getPositionAt(t)};t.prototype._increaseVersionId=function(){this._setVersionId(this._versionId+1)};t.prototype._setVersionId=function(e){this._versionId=e;this._alternativeVersionId=this._versionId};t.prototype._overwriteAlternativeVersionId=function(e){this._alternativeVersionId=e};t.prototype.getValue=function(e,t){void 0===t&&(t=!1);this._assertNotDisposed();var n=this.getFullModelRange();var r=this.getValueInRange(n,e);if(t)return this._buffer.getBOM()+r;return r};t.prototype.getValueLength=function(e,t){void 0===t&&(t=!1);this._assertNotDisposed();var n=this.getFullModelRange();var r=this.getValueLengthInRange(n,e);if(t)return this._buffer.getBOM().length+r;return r};t.prototype.getValueInRange=function(e,t){void 0===t&&(t=0);this._assertNotDisposed();return this._buffer.getValueInRange(this.validateRange(e),t)};t.prototype.getValueLengthInRange=function(e,t){void 0===t&&(t=0);this._assertNotDisposed();return this._buffer.getValueLengthInRange(this.validateRange(e),t)};t.prototype.getLineCount=function(){this._assertNotDisposed();return this._buffer.getLineCount()};t.prototype.getLineContent=function(e){this._assertNotDisposed();if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineContent(e)};t.prototype.getLineLength=function(e){this._assertNotDisposed();if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)};t.prototype.getLinesContent=function(){this._assertNotDisposed();return this._buffer.getLinesContent()};t.prototype.getEOL=function(){this._assertNotDisposed();return this._buffer.getEOL()};t.prototype.getLineMinColumn=function(e){this._assertNotDisposed();return 1};t.prototype.getLineMaxColumn=function(e){this._assertNotDisposed();if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLength(e)+1};t.prototype.getLineFirstNonWhitespaceColumn=function(e){this._assertNotDisposed();if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineFirstNonWhitespaceColumn(e)};t.prototype.getLineLastNonWhitespaceColumn=function(e){this._assertNotDisposed();if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._buffer.getLineLastNonWhitespaceColumn(e)};t.prototype._validateRangeRelaxedNoAllocations=function(e){var t=this._buffer.getLineCount();var n=e.startLineNumber;var r=e.startColumn;var i;var o;if(n<1){i=1;o=1}else if(n>t){i=t;o=this.getLineMaxColumn(i)}else{i=0|n;if(r<=1)o=1;else{var a;o=r>=(a=this.getLineMaxColumn(i))?a:0|r}}var s=e.endLineNumber;var u=e.endColumn;var l;var c;if(s<1){l=1;c=1}else if(s>t){l=t;c=this.getLineMaxColumn(l)}else{l=0|s;if(u<=1)c=1;else{var a;c=u>=(a=this.getLineMaxColumn(l))?a:0|u}}if(n===i&&r===o&&s===l&&u===c&&e instanceof f["a"]&&!(e instanceof p["a"]))return e;return new f["a"](i,o,l,c)};t.prototype._isValidPosition=function(e,t,n){if(isNaN(e))return!1;if(e<1)return!1;var r;if(e>this._buffer.getLineCount())return!1;if(isNaN(t))return!1;if(t<1)return!1;var i;if(t>this.getLineMaxColumn(e))return!1;if(n&&t>1){var o=this._buffer.getLineCharCode(e,t-2);if(l["s"](o))return!1}return!0};t.prototype._validatePosition=function(e,t,n){var r=Math.floor("number"!=typeof e||isNaN(e)?1:e);var i=Math.floor("number"!=typeof t||isNaN(t)?1:t);var o=this._buffer.getLineCount();if(r<1)return new h["a"](1,1);if(r>o)return new h["a"](o,this.getLineMaxColumn(o));if(i<=1)return new h["a"](r,1);var a=this.getLineMaxColumn(r);if(i>=a)return new h["a"](r,a);if(n){var s=this._buffer.getLineCharCode(r,i-2);if(l["s"](s))return new h["a"](r,i-1)}return new h["a"](r,i)};t.prototype.validatePosition=function(e){this._assertNotDisposed();if(e instanceof h["a"]&&this._isValidPosition(e.lineNumber,e.column,!0))return e;return this._validatePosition(e.lineNumber,e.column,!0)};t.prototype._isValidRange=function(e,t){var n=e.startLineNumber;var r=e.startColumn;var i=e.endLineNumber;var o=e.endColumn;if(!this._isValidPosition(n,r,!1))return!1;if(!this._isValidPosition(i,o,!1))return!1;if(t){var a=r>1?this._buffer.getLineCharCode(n,r-2):0;var s=o>1&&o<=this._buffer.getLineLength(i)?this._buffer.getLineCharCode(i,o-2):0;var u=l["s"](a);var c=l["s"](s);if(!u&&!c)return!0;return!1}return!0};t.prototype.validateRange=function(e){this._assertNotDisposed();if(e instanceof f["a"]&&!(e instanceof p["a"])&&this._isValidRange(e,!0))return e;var t=this._validatePosition(e.startLineNumber,e.startColumn,!1);var n=this._validatePosition(e.endLineNumber,e.endColumn,!1);var r=t.lineNumber;var i=t.column;var o=n.lineNumber;var a=n.column;var s=i>1?this._buffer.getLineCharCode(r,i-2):0;var u=a>1&&a<=this._buffer.getLineLength(o)?this._buffer.getLineCharCode(o,a-2):0;var c=l["s"](s);var d=l["s"](u);if(!c&&!d)return new f["a"](r,i,o,a);if(r===o&&i===a)return new f["a"](r,i-1,o,a-1);if(c&&d)return new f["a"](r,i-1,o,a+1);if(c)return new f["a"](r,i-1,o,a);return new f["a"](r,i,o,a+1)};t.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)))};t.prototype.getFullModelRange=function(){this._assertNotDisposed();var e=this.getLineCount();return new f["a"](1,1,e,this.getLineMaxColumn(e))};t.prototype.findMatchesLineByLine=function(e,t,n,r){return this._buffer.findMatchesLineByLine(e,t,n,r)};t.prototype.findMatches=function(e,t,n,r,i,o,a){void 0===a&&(a=999);this._assertNotDisposed();var s;s=f["a"].isIRange(t)?this.validateRange(t):this.getFullModelRange();if(!n&&e.indexOf("\n")<0){var u;var l=new me["a"](e,n,r,i).parseSearchRequest();if(!l)return[];return this.findMatchesLineByLine(s,l,o,a)}return me["c"].findMatches(this,new me["a"](e,n,r,i),s,o,a)};t.prototype.findNextMatch=function(e,t,n,r,i,o){this._assertNotDisposed();var a=this.validatePosition(t);if(!n&&e.indexOf("\n")<0){var s;var u=new me["a"](e,n,r,i).parseSearchRequest();if(!u)return null;var l=this.getLineCount();var c=new f["a"](a.lineNumber,a.column,l,this.getLineMaxColumn(l));var d=this.findMatchesLineByLine(c,u,o,1);me["c"].findNextMatch(this,new me["a"](e,n,r,i),a,o);if(d.length>0)return d[0];c=new f["a"](1,1,a.lineNumber,this.getLineMaxColumn(a.lineNumber));if((d=this.findMatchesLineByLine(c,u,o,1)).length>0)return d[0];return null}return me["c"].findNextMatch(this,new me["a"](e,n,r,i),a,o)};t.prototype.findPreviousMatch=function(e,t,n,r,i,o){this._assertNotDisposed();var a=this.validatePosition(t);return me["c"].findPreviousMatch(this,new me["a"](e,n,r,i),a,o)};t.prototype.pushStackElement=function(){this._commandManager.pushStackElement()};t.prototype.pushEOL=function(e){var t;if(("\n"===this.getEOL()?0:1)===e)return;try{this._onDidChangeDecorations.beginDeferredEmit();this._eventEmitter.beginDeferredEmit();this._commandManager.pushEOL(e)}finally{this._eventEmitter.endDeferredEmit();this._onDidChangeDecorations.endDeferredEmit()}};t.prototype.pushEditOperations=function(e,t,n){try{this._onDidChangeDecorations.beginDeferredEmit();this._eventEmitter.beginDeferredEmit();return this._pushEditOperations(e,t,n)}finally{this._eventEmitter.endDeferredEmit();this._onDidChangeDecorations.endDeferredEmit()}};t.prototype._pushEditOperations=function(e,t,n){var r=this;if(this._options.trimAutoWhitespace&&this._trimAutoWhitespaceLines){var i=t.map(function(e){return{range:r.validateRange(e.range),text:e.text}});var o=!0;for(var a=0,s=e.length;a<s;a++){var u=e[a];var l=!1;for(var c=0,d=i.length;c<d;c++){var h;var p=(h=i[c].range).startLineNumber>u.endLineNumber;var g=u.startLineNumber>h.endLineNumber;if(!p&&!g){l=!0;break}}if(!l){o=!1;break}}if(o)for(var a=0,s=this._trimAutoWhitespaceLines.length;a<s;a++){var v=this._trimAutoWhitespaceLines[a];var m=this.getLineMaxColumn(v);var _=!0;for(var c=0,d=i.length;c<d;c++){var h=i[c].range;var y=i[c].text;if(v<h.startLineNumber||v>h.endLineNumber)continue;if(v===h.startLineNumber&&h.startColumn===m&&h.isEmpty()&&y&&y.length>0&&"\n"===y.charAt(0))continue;if(v===h.startLineNumber&&1===h.startColumn&&h.isEmpty()&&y&&y.length>0&&"\n"===y.charAt(y.length-1))continue;_=!1;break}_&&t.push({range:new f["a"](v,1,v,m),text:null})}this._trimAutoWhitespaceLines=null}return this._commandManager.pushEditOperation(e,t,n)};t.prototype.applyEdits=function(e){try{this._onDidChangeDecorations.beginDeferredEmit();this._eventEmitter.beginDeferredEmit();return this._applyEdits(e)}finally{this._eventEmitter.endDeferredEmit();this._onDidChangeDecorations.endDeferredEmit()}};t._eolCount=function(e){var t=0;var n=0;for(var r=0,i=e.length;r<i;r++){var o=e.charCodeAt(r);if(13===o){0===t&&(n=r);t++;r+1<i&&10===e.charCodeAt(r+1)&&r++}else if(10===o){0===t&&(n=r);t++}}0===t&&(n=e.length);return[t,n]};t.prototype._applyEdits=function(e){for(var n=0,r=e.length;n<r;n++)e[n].range=this.validateRange(e[n].range);var i=this._buffer.getLineCount();var o=this._buffer.applyEdits(e,this._options.trimAutoWhitespace);var a=this._buffer.getLineCount();var s=o.changes;this._trimAutoWhitespaceLines=o.trimAutoWhitespaceLineNumbers;if(0!==s.length){var u=[];var l=i;for(var n=0,r=s.length;n<r;n++){var c=s[n];var d=t._eolCount(c.text),h=d[0],f=d[1];try{this._tokens.applyEdits(c.range,h,f)}catch(e){this._tokens=new He(this._tokens.languageIdentifier,this._tokens.tokenizationSupport)}this._onDidChangeDecorations.fire();this._decorationsTree.acceptReplace(c.rangeOffset,c.rangeLength,c.text.length,c.forceMoveMarkers);var p=c.range.startLineNumber;var g=c.range.endLineNumber;var v=g-p;var m=h;var _=Math.min(v,m);var y=m-v;for(var b=_;b>=0;b--){var C=p+b;var w=a-l-y+C;u.push(new Oe(C,this.getLineContent(w)))}if(_<v){var S=p+_;u.push(new Ee(S+1,g))}if(_<m){var L=p+_;var I=m-_;var x=a-l-I+L+1;var N=[];for(var M=0;M<I;M++){var D=x+M;N[D-x]=this.getLineContent(D)}u.push(new Te(L+1,p+m,N))}l+=y}this._increaseVersionId();this._emitContentChangedEvent(new Re(u,this.getVersionId(),this._isUndoing,this._isRedoing),{changes:s,eol:this._buffer.getEOL(),versionId:this.getVersionId(),isUndoing:this._isUndoing,isRedoing:this._isRedoing,isFlush:!1})}this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization();return o.reverseEdits};t.prototype._undo=function(){this._isUndoing=!0;var e=this._commandManager.undo();this._isUndoing=!1;if(!e)return null;this._overwriteAlternativeVersionId(e.recordedVersionId);return e.selections};t.prototype.undo=function(){try{this._onDidChangeDecorations.beginDeferredEmit();this._eventEmitter.beginDeferredEmit();return this._undo()}finally{this._eventEmitter.endDeferredEmit();this._onDidChangeDecorations.endDeferredEmit()}};t.prototype.canUndo=function(){return this._commandManager.canUndo()};t.prototype._redo=function(){this._isRedoing=!0;var e=this._commandManager.redo();this._isRedoing=!1;if(!e)return null;this._overwriteAlternativeVersionId(e.recordedVersionId);return e.selections};t.prototype.redo=function(){try{this._onDidChangeDecorations.beginDeferredEmit();this._eventEmitter.beginDeferredEmit();return this._redo()}finally{this._eventEmitter.endDeferredEmit();this._onDidChangeDecorations.endDeferredEmit()}};t.prototype.canRedo=function(){return this._commandManager.canRedo()};t.prototype.changeDecorations=function(e,t){void 0===t&&(t=0);this._assertNotDisposed();try{this._onDidChangeDecorations.beginDeferredEmit();return this._changeDecorations(t,e)}finally{this._onDidChangeDecorations.endDeferredEmit()}};t.prototype._changeDecorations=function(e,t){var n=this;var i={addDecoration:function(t,r){n._onDidChangeDecorations.fire();return n._deltaDecorationsImpl(e,[],[{range:t,options:r}])[0]},changeDecoration:function(e,t){n._onDidChangeDecorations.fire();n._changeDecorationImpl(e,t)},changeDecorationOptions:function(e,t){n._onDidChangeDecorations.fire();n._changeDecorationOptionsImpl(e,ft(t))},removeDecoration:function(t){n._onDidChangeDecorations.fire();n._deltaDecorationsImpl(e,[t],[])},deltaDecorations:function(t,r){if(0===t.length&&0===r.length)return[];n._onDidChangeDecorations.fire();return n._deltaDecorationsImpl(e,t,r)}};var o=null;try{o=t(i)}catch(e){Object(r["d"])(e)}i.addDecoration=at;i.changeDecoration=at;i.changeDecorationOptions=at;i.removeDecoration=at;i.deltaDecorations=at;return o};t.prototype.deltaDecorations=function(e,t,n){void 0===n&&(n=0);this._assertNotDisposed();e||(e=[]);if(0===e.length&&0===t.length)return[];try{this._onDidChangeDecorations.beginDeferredEmit();this._onDidChangeDecorations.fire();return this._deltaDecorationsImpl(n,e,t)}finally{this._onDidChangeDecorations.endDeferredEmit()}};t.prototype._getTrackedRange=function(e){return this.getDecorationRange(e)};t.prototype._setTrackedRange=function(e,t,n){var r=e?this._decorations[e]:null;if(!r){if(!t)return null;return this._deltaDecorationsImpl(0,[],[{range:t,options:ht[n]}])[0]}if(!t){this._decorationsTree.delete(r);delete this._decorations[r.id];return null}var i=this._validateRangeRelaxedNoAllocations(t);var o=this._buffer.getOffsetAt(i.startLineNumber,i.startColumn);var a=this._buffer.getOffsetAt(i.endLineNumber,i.endColumn);this._decorationsTree.delete(r);r.reset(this.getVersionId(),o,a,i);r.setOptions(ht[n]);this._decorationsTree.insert(r);return r.id};t.prototype.removeAllDecorationsWithOwnerId=function(e){if(this._isDisposed)return;var t=this._decorationsTree.collectNodesFromOwner(e);for(var n=0,r=t.length;n<r;n++){var i=t[n];this._decorationsTree.delete(i);delete this._decorations[i.id]}};t.prototype.getDecorationOptions=function(e){var t=this._decorations[e];if(!t)return null;return t.options};t.prototype.getDecorationRange=function(e){var t=this._decorations[e];if(!t)return null;var n=this.getVersionId();t.cachedVersionId!==n&&this._decorationsTree.resolveNode(t,n);null===t.range&&(t.range=this._getRangeAt(t.cachedAbsoluteStart,t.cachedAbsoluteEnd));return t.range};t.prototype.getLineDecorations=function(e,t,n){void 0===t&&(t=0);void 0===n&&(n=!1);if(e<1||e>this.getLineCount())return[];return this.getLinesDecorations(e,e,t,n)};t.prototype.getLinesDecorations=function(e,t,n,r){void 0===n&&(n=0);void 0===r&&(r=!1);var i=this.getLineCount();var o=Math.min(i,Math.max(1,e));var a=Math.min(i,Math.max(1,t));var s=this.getLineMaxColumn(a);return this._getDecorationsInRange(new f["a"](o,1,a,s),n,r)};t.prototype.getDecorationsInRange=function(e,t,n){void 0===t&&(t=0);void 0===n&&(n=!1);var r=this.validateRange(e);return this._getDecorationsInRange(r,t,n)};t.prototype.getOverviewRulerDecorations=function(e,t){void 0===e&&(e=0);void 0===t&&(t=!1);var n=this.getVersionId();var r=this._decorationsTree.search(e,t,!0,n);return this._ensureNodesHaveRanges(r)};t.prototype.getAllDecorations=function(e,t){void 0===e&&(e=0);void 0===t&&(t=!1);var n=this.getVersionId();var r=this._decorationsTree.search(e,t,!1,n);return this._ensureNodesHaveRanges(r)};t.prototype._getDecorationsInRange=function(e,t,n){var r=this._buffer.getOffsetAt(e.startLineNumber,e.startColumn);var i=this._buffer.getOffsetAt(e.endLineNumber,e.endColumn);var o=this.getVersionId();var a=this._decorationsTree.intervalSearch(r,i,t,n,o);return this._ensureNodesHaveRanges(a)};t.prototype._ensureNodesHaveRanges=function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];null===r.range&&(r.range=this._getRangeAt(r.cachedAbsoluteStart,r.cachedAbsoluteEnd))}return e};t.prototype._getRangeAt=function(e,t){return this._buffer.getRangeAt(e,t-e)};t.prototype._changeDecorationImpl=function(e,t){var n=this._decorations[e];if(!n)return;var r=this._validateRangeRelaxedNoAllocations(t);var i=this._buffer.getOffsetAt(r.startLineNumber,r.startColumn);var o=this._buffer.getOffsetAt(r.endLineNumber,r.endColumn);this._decorationsTree.delete(n);n.reset(this.getVersionId(),i,o,r);this._decorationsTree.insert(n)};t.prototype._changeDecorationOptionsImpl=function(e,t){var n=this._decorations[e];if(!n)return;var r;var i;if(!(!n.options.overviewRuler||!n.options.overviewRuler.color)!==!(!t.overviewRuler||!t.overviewRuler.color)){this._decorationsTree.delete(n);n.setOptions(t);this._decorationsTree.insert(n)}else n.setOptions(t)};t.prototype._deltaDecorationsImpl=function(e,t,n){var r=this.getVersionId();var i=t.length;var o=0;var a=n.length;var s=0;var u=new Array(a);for(;o<i||s<a;){var l=null;if(o<i){do{l=this._decorations[t[o++]]}while(!l&&o<i);l&&this._decorationsTree.delete(l)}if(s<a){if(!l){var c=++this._lastDecorationId;var d=this._instanceId+";"+c;l=new R(d,0,0);this._decorations[d]=l}var h=n[s];var f=this._validateRangeRelaxedNoAllocations(h.range);var p=ft(h.options);var g=this._buffer.getOffsetAt(f.startLineNumber,f.startColumn);var v=this._buffer.getOffsetAt(f.endLineNumber,f.endColumn);l.ownerId=e;l.reset(r,g,v,f);l.setOptions(p);this._decorationsTree.insert(l);u[s]=l.id;s++}else l&&delete this._decorations[l.id]}return u};t.prototype.tokenizeViewport=function(e,t){if(!this._tokens.tokenizationSupport)return;var n=Math.floor(.3*this._tokens.inValidLineStartIndex);if((e=Math.max(1,e-n))<=this._tokens.inValidLineStartIndex){this.forceTokenization(t);return}var r=new Ue;var i=this.getLineFirstNonWhitespaceColumn(e);var o=[];var a=e-1;var s=null;if(i>0)for(;i>0&&a>=1;){var u=this.getLineFirstNonWhitespaceColumn(a);if(0===u){a--;continue}if(u<i){if(s=this._tokens._getState(a-1))break;o.push(this.getLineContent(a));i=u}a--}s||(s=this._tokens.tokenizationSupport.getInitialState());var l=s.clone();for(var c=o.length-1;c>=0;c--){var d;l=(d=this._tokens._tokenizeText(this._buffer,o[c],l))?d.endState.clone():s.clone()}var h=Math.floor(.4*this._tokens.inValidLineStartIndex);t=Math.min(this.getLineCount(),t+h);for(var f=e;f<=t;f++){var p=this.getLineContent(f);var d;if(d=this._tokens._tokenizeText(this._buffer,p,l)){this._tokens._setTokens(this._tokens.languageIdentifier.id,f-1,p.length,d.tokens);this._tokens._setIsInvalid(f-1,!1);this._tokens._setState(f-1,l);l=d.endState.clone();r.registerChangedTokens(f)}else l=s.clone()}var g=r.build();g&&this._onDidChangeTokens.fire(g)};t.prototype.forceTokenization=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");var t=new Ue;this._tokens._updateTokensUntilLine(this._buffer,t,e);var n=t.build();n&&this._onDidChangeTokens.fire(n)};t.prototype.isCheapToTokenize=function(e){if(!this._tokens.isCheapToTokenize(e))return!1;if(e<this._tokens.inValidLineStartIndex+1)return!0;if(this.getLineLength(e)<2048)return!0;return!1};t.prototype.tokenizeIfCheap=function(e){this.isCheapToTokenize(e)&&this.forceTokenization(e)};t.prototype.getLineTokens=function(e){if(e<1||e>this.getLineCount())throw new Error("Illegal value for lineNumber");return this._getLineTokens(e)};t.prototype._getLineTokens=function(e){var t=this._buffer.getLineContent(e);return this._tokens.getTokens(this._languageIdentifier.id,e-1,t)};t.prototype.getLanguageIdentifier=function(){return this._languageIdentifier};t.prototype.getModeId=function(){return this._languageIdentifier.language};t.prototype.setMode=function(e){if(this._languageIdentifier.id===e.id)return;var t={oldLanguage:this._languageIdentifier.language,newLanguage:e.language};this._languageIdentifier=e;this._resetTokenizationState();this.emitModelTokensChangedEvent({ranges:[{fromLineNumber:1,toLineNumber:this.getLineCount()}]});this._onDidChangeLanguage.fire(t);this._onDidChangeLanguageConfiguration.fire({})};t.prototype.getLanguageIdAtPosition=function(e,t){if(!this._tokens.tokenizationSupport)return this._languageIdentifier.id;var n=this.validatePosition({lineNumber:e,column:t}),r=n.lineNumber,i=n.column;var o=this._getLineTokens(r);return o.getLanguageId(o.findTokenIndexAtOffset(i-1))};t.prototype._beginBackgroundTokenization=function(){var e=this;this._shouldAutoTokenize()&&-1===this._revalidateTokensTimeout&&(this._revalidateTokensTimeout=setTimeout(function(){e._revalidateTokensTimeout=-1;e._revalidateTokensNow()},0))};t.prototype._warmUpTokens=function(){var e=Math.min(100,this.getLineCount());this._revalidateTokensNow(e);this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization()};t.prototype._revalidateTokensNow=function(e){void 0===e&&(e=this._buffer.getLineCount());var t=20;var n=new Ue;var r=u.create(!1);for(;this._tokens.hasLinesToTokenize(this._buffer)&&!(r.elapsed()>20);){var i;if(this._tokens._tokenizeOneLine(this._buffer,n)>=e)break}this._tokens.hasLinesToTokenize(this._buffer)&&this._beginBackgroundTokenization();var o=n.build();o&&this._onDidChangeTokens.fire(o)};t.prototype.emitModelTokensChangedEvent=function(e){this._isDisposing||this._onDidChangeTokens.fire(e)};t.prototype.getWordAtPosition=function(e){this._assertNotDisposed();var n=this.validatePosition(e);var r=this.getLineContent(n.lineNumber);var i=this._getLineTokens(n.lineNumber);var o=i.findTokenIndexAtOffset(n.column-1);var a=t._findLanguageBoundaries(i,o),s=a[0],u=a[1];var l=Object(Ze["d"])(n.column,Ye["a"].getWordDefinition(i.getLanguageId(o)),r.substring(s,u),s);if(l&&l.startColumn<=e.column&&e.column<=l.endColumn)return l;if(o>0&&s===n.column-1){var c=t._findLanguageBoundaries(i,o-1),d=c[0],h=c[1];var f=Object(Ze["d"])(n.column,Ye["a"].getWordDefinition(i.getLanguageId(o-1)),r.substring(d,h),d);if(f&&f.startColumn<=e.column&&e.column<=f.endColumn)return f}return null};t._findLanguageBoundaries=function(e,t){var n=e.getLanguageId(t);var r=0;for(var i=t;i>=0&&e.getLanguageId(i)===n;i--)r=e.getStartOffset(i);var o=e.getLineContent().length;for(var i=t,a=e.getCount();i<a&&e.getLanguageId(i)===n;i++)o=e.getEndOffset(i);return[r,o]};t.prototype.getWordUntilPosition=function(e){var t=this.getWordAtPosition(e);if(!t)return{word:"",startColumn:e.column,endColumn:e.column};return{word:t.word.substr(0,e.column-t.startColumn),startColumn:t.startColumn,endColumn:e.column}};t.prototype.findMatchingBracketUp=function(e,t){var n=e.toLowerCase();var r=this.validatePosition(t);var i=this._getLineTokens(r.lineNumber);var o=i.getLanguageId(i.findTokenIndexAtOffset(r.column-1));var a=Ye["a"].getBracketsSupport(o);if(!a)return null;var s=a.textIsBracket[n];if(!s)return null;return this._findMatchingBracketUp(s,r)};t.prototype.matchBracket=function(e){return this._matchBracket(this.validatePosition(e))};t.prototype._matchBracket=function(e){var t=e.lineNumber;var n=this._getLineTokens(t);var r=this._buffer.getLineContent(t);var i=n.findTokenIndexAtOffset(e.column-1);if(i<0)return null;var o=Ye["a"].getBracketsSupport(n.getLanguageId(i));if(o&&!Object(Ke["b"])(n.getStandardTokenType(i))){var a=Math.max(n.getStartOffset(i),e.column-1-o.maxBracketLength);var s=Math.min(n.getEndOffset(i),e.column-1+o.maxBracketLength);var u=null;for(;;){var l;if(!(l=Qe["a"].findNextBracketInToken(o.forwardRegex,t,r,a,s)))break;if(l.startColumn<=e.column&&e.column<=l.endColumn){var c;c=(c=r.substring(l.startColumn-1,l.endColumn-1)).toLowerCase();var d;(d=this._matchFoundBracket(l,o.textIsBracket[c],o.textIsOpenBracket[c]))&&(u=d)}a=l.endColumn-1}if(u)return u}if(i>0&&n.getStartOffset(i)===e.column-1){var s=n.getStartOffset(i);i--;var h=Ye["a"].getBracketsSupport(n.getLanguageId(i));if(h&&!Object(Ke["b"])(n.getStandardTokenType(i))){var a=Math.max(n.getStartOffset(i),e.column-1-h.maxBracketLength);var l;if((l=Qe["a"].findPrevBracketInToken(h.reversedRegex,t,r,a,s))&&l.startColumn<=e.column&&e.column<=l.endColumn){var c;c=(c=r.substring(l.startColumn-1,l.endColumn-1)).toLowerCase();var d;if(d=this._matchFoundBracket(l,h.textIsBracket[c],h.textIsOpenBracket[c]))return d}}}return null};t.prototype._matchFoundBracket=function(e,t,n){if(!t)return null;if(n){var r;if(r=this._findMatchingBracketDown(t,e.getEndPosition()))return[e,r]}else{var r;if(r=this._findMatchingBracketUp(t,e.getStartPosition()))return[e,r]}return null};t.prototype._findMatchingBracketUp=function(e,t){var n=e.languageIdentifier.id;var r=e.reversedRegex;var i=-1;for(var o=t.lineNumber;o>=1;o--){var a=this._getLineTokens(o);var s=a.getCount();var u=this._buffer.getLineContent(o);var l=s-1;var c=-1;if(o===t.lineNumber){l=a.findTokenIndexAtOffset(t.column-1);c=t.column-1}for(;l>=0;l--){var d=a.getLanguageId(l);var h=a.getStandardTokenType(l);var f=a.getStartOffset(l);var p=a.getEndOffset(l);-1===c&&(c=p);if(d===n&&!Object(Ke["b"])(h))for(;;){var g=Qe["a"].findPrevBracketInToken(r,o,u,f,c);if(!g)break;var v=u.substring(g.startColumn-1,g.endColumn-1);(v=v.toLowerCase())===e.open?i++:v===e.close&&i--;if(0===i)return g;c=g.startColumn-1}c=-1}}return null};t.prototype._findMatchingBracketDown=function(e,t){var n=e.languageIdentifier.id;var r=e.forwardRegex;var i=1;for(var o=t.lineNumber,a=this.getLineCount();o<=a;o++){var s=this._getLineTokens(o);var u=s.getCount();var l=this._buffer.getLineContent(o);var c=0;var d=0;if(o===t.lineNumber){c=s.findTokenIndexAtOffset(t.column-1);d=t.column-1}for(;c<u;c++){var h=s.getLanguageId(c);var f=s.getStandardTokenType(c);var p=s.getStartOffset(c);var g=s.getEndOffset(c);0===d&&(d=p);if(h===n&&!Object(Ke["b"])(f))for(;;){var v=Qe["a"].findNextBracketInToken(r,o,l,d,g);if(!v)break;var m=l.substring(v.startColumn-1,v.endColumn-1);(m=m.toLowerCase())===e.open?i++:m===e.close&&i--;if(0===i)return v;d=v.endColumn-1}d=0}}return null};t.prototype.findNextBracket=function(e){var t=this.validatePosition(e);var n=-1;var r=null;for(var i=t.lineNumber,o=this.getLineCount();i<=o;i++){var a=this._getLineTokens(i);var s=a.getCount();var u=this._buffer.getLineContent(i);var l=0;var c=0;if(i===t.lineNumber){l=a.findTokenIndexAtOffset(t.column-1);c=t.column-1}for(;l<s;l++){var d=a.getLanguageId(l);var h=a.getStandardTokenType(l);var f=a.getStartOffset(l);var p=a.getEndOffset(l);0===c&&(c=f);if(n!==d){n=d;r=Ye["a"].getBracketsSupport(n)}if(r&&!Object(Ke["b"])(h)){var g=Qe["a"].findNextBracketInToken(r.forwardRegex,i,u,c,p);if(g)return this._toFoundBracket(r,g)}c=0}}return null};t.prototype._toFoundBracket=function(e,t){if(!t)return null;var n=this.getValueInRange(t);n=n.toLowerCase();var r=e.textIsBracket[n];if(!r)return null;return{range:t,open:r.open,close:r.close,isOpen:e.textIsOpenBracket[n]}};t.computeIndentLevel=function(e,t){var n=0;var r=0;var i=e.length;for(;r<i;){var o=e.charCodeAt(r);if(32===o)n++;else{if(9!==o)break;n=n-n%t+t}r++}if(r===i)return-1;return n};t.prototype._computeIndentLevel=function(e){return t.computeIndentLevel(this._buffer.getLineContent(e+1),this._options.tabSize)};t.prototype.getActiveIndentGuide=function(e,t,n){var r=this;this._assertNotDisposed();var i=this.getLineCount();if(e<1||e>i)throw new Error("Illegal value for lineNumber");var o=Ye["a"].getFoldingRules(this._languageIdentifier.id);var a=Boolean(o&&o.offSide);var s=-2;var u=-1;var l=-2;var c=-1;var d=function(e){if(-1!==s&&(-2===s||s>e-1)){s=-1;u=-1;for(var t=e-2;t>=0;t--){var n=r._computeIndentLevel(t);if(n>=0){s=t;u=n;break}}}if(-2===l){l=-1;c=-1;for(var t=e;t<i;t++){var o=r._computeIndentLevel(t);if(o>=0){l=t;c=o;break}}}};var h=-2;var f=-1;var p=-2;var g=-1;var v=function(e){if(-2===h){h=-1;f=-1;for(var t=e-2;t>=0;t--){var n=r._computeIndentLevel(t);if(n>=0){h=t;f=n;break}}}if(-1!==p&&(-2===p||p<e-1)){p=-1;g=-1;for(var t=e;t<i;t++){var o=r._computeIndentLevel(t);if(o>=0){p=t;g=o;break}}}};var m=0;var _=!0;var y=0;var b=!0;var C=0;for(var w=0;_||b;w++){var S=e-w;var L=e+w;0!==w&&(S<1||S<t)&&(_=!1);0!==w&&(L>i||L>n)&&(b=!1);if(w>5e4){_=!1;b=!1}if(_){var I=void 0;var x;if((x=this._computeIndentLevel(S-1))>=0){l=S-1;c=x;I=Math.ceil(x/this._options.tabSize)}else{d(S);I=this._getIndentLevelForWhitespaceLine(a,u,c)}if(0===w){m=S;y=L;if(0===(C=I))return{startLineNumber:m,endLineNumber:y,indent:C};continue}I>=C?m=S:_=!1}if(b){var N=void 0;var x;if((x=this._computeIndentLevel(L-1))>=0){h=L-1;f=x;N=Math.ceil(x/this._options.tabSize)}else{v(L);N=this._getIndentLevelForWhitespaceLine(a,f,g)}N>=C?y=L:b=!1}}return{startLineNumber:m,endLineNumber:y,indent:C}};t.prototype.getLinesIndentGuides=function(e,t){this._assertNotDisposed();var n=this.getLineCount();if(e<1||e>n)throw new Error("Illegal value for startLineNumber");if(t<1||t>n)throw new Error("Illegal value for endLineNumber");var r=Ye["a"].getFoldingRules(this._languageIdentifier.id);var i=Boolean(r&&r.offSide);var o=new Array(t-e+1);var a=-2;var s=-1;var u=-2;var l=-1;for(var c=e;c<=t;c++){var d=c-e;var h=this._computeIndentLevel(c-1);if(h>=0){a=c-1;s=h;o[d]=Math.ceil(h/this._options.tabSize);continue}if(-2===a){a=-1;s=-1;for(var f=c-2;f>=0;f--){var p;if((p=this._computeIndentLevel(f))>=0){a=f;s=p;break}}}if(-1!==u&&(-2===u||u<c-1)){u=-1;l=-1;for(var f=c;f<n;f++){var p;if((p=this._computeIndentLevel(f))>=0){u=f;l=p;break}}}o[d]=this._getIndentLevelForWhitespaceLine(i,s,l)}return o};t.prototype._getIndentLevelForWhitespaceLine=function(e,t,n){return-1===t||-1===n?0:t<n?1+Math.floor(t/this._options.tabSize):t===n?Math.ceil(n/this._options.tabSize):e?Math.ceil(n/this._options.tabSize):1+Math.floor(n/this._options.tabSize)};t.MODEL_SYNC_LIMIT=52428800;t.LARGE_FILE_SIZE_THRESHOLD=20971520;t.LARGE_FILE_LINE_COUNT_THRESHOLD=3e5;t.DEFAULT_CREATION_OPTIONS={isForSimpleWidget:!1,tabSize:d["c"].tabSize,insertSpaces:d["c"].insertSpaces,detectIndentation:!1,defaultEOL:1,trimAutoWhitespace:d["c"].trimAutoWhitespace,largeFileOptimizations:d["c"].largeFileOptimizations};return t}(o["a"]);var ut=function(){function e(){this._decorationsTree0=new j;this._decorationsTree1=new j}e.prototype.intervalSearch=function(e,t,n,r,i){var o=this._decorationsTree0.intervalSearch(e,t,n,r,i);var a=this._decorationsTree1.intervalSearch(e,t,n,r,i);return o.concat(a)};e.prototype.search=function(e,t,n,r){if(n)return this._decorationsTree1.search(e,t,r);var i=this._decorationsTree0.search(e,t,r);var o=this._decorationsTree1.search(e,t,r);return i.concat(o)};e.prototype.collectNodesFromOwner=function(e){var t=this._decorationsTree0.collectNodesFromOwner(e);var n=this._decorationsTree1.collectNodesFromOwner(e);return t.concat(n)};e.prototype.collectNodesPostOrder=function(){var e=this._decorationsTree0.collectNodesPostOrder();var t=this._decorationsTree1.collectNodesPostOrder();return e.concat(t)};e.prototype.insert=function(e){D(e)?this._decorationsTree1.insert(e):this._decorationsTree0.insert(e)};e.prototype.delete=function(e){D(e)?this._decorationsTree1.delete(e):this._decorationsTree0.delete(e)};e.prototype.resolveNode=function(e,t){D(e)?this._decorationsTree1.resolveNode(e,t):this._decorationsTree0.resolveNode(e,t)};e.prototype.acceptReplace=function(e,t,n,r){this._decorationsTree0.acceptReplace(e,t,n,r);this._decorationsTree1.acceptReplace(e,t,n,r)};return e}();function lt(e){return e.replace(/[^a-z0-9\-_]/gi," ")}var ct=function(){function e(e){this.color=e.color||l["h"];this.darkColor=e.darkColor||l["h"];this.position="number"==typeof e.position?e.position:g["c"].Center;this._resolvedColor=null}e.prototype.getColor=function(e){this._resolvedColor||("light"!==e.type&&this.darkColor?this._resolvedColor=this._resolveColor(this.darkColor,e):this._resolvedColor=this._resolveColor(this.color,e));return 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;if(!n)return l["h"];return n.toString()};return e}();var dt=function(){function e(e){this.stickiness=e.stickiness||0;this.zIndex=e.zIndex||0;this.className=e.className?lt(e.className):null;this.hoverMessage=e.hoverMessage||null;this.glyphMarginHoverMessage=e.glyphMarginHoverMessage||null;this.isWholeLine=e.isWholeLine||!1;this.showIfCollapsed=e.showIfCollapsed||!1;this.collapseOnReplaceEdit=e.collapseOnReplaceEdit||!1;this.overviewRuler=e.overviewRuler?new ct(e.overviewRuler):null;this.glyphMarginClassName=e.glyphMarginClassName?lt(e.glyphMarginClassName):null;this.linesDecorationsClassName=e.linesDecorationsClassName?lt(e.linesDecorationsClassName):null;this.marginClassName=e.marginClassName?lt(e.marginClassName):null;this.inlineClassName=e.inlineClassName?lt(e.inlineClassName):null;this.inlineClassNameAffectsLetterSpacing=e.inlineClassNameAffectsLetterSpacing||!1;this.beforeContentClassName=e.beforeContentClassName?lt(e.beforeContentClassName):null;this.afterContentClassName=e.afterContentClassName?lt(e.afterContentClassName):null}e.register=function(t){return new e(t)};e.createDynamic=function(t){return new e(t)};return e}();dt.EMPTY=dt.register({});var ht=[dt.register({stickiness:0}),dt.register({stickiness:1}),dt.register({stickiness:2}),dt.register({stickiness:3})];function ft(e){if(e instanceof dt)return e;return dt.createDynamic(e)}var pt=function(e){qe(t,e);function t(){var t=e.call(this)||this;t._actual=t._register(new i["a"]);t.event=t._actual.event;t._deferredCnt=0;t._shouldFire=!1;return t}t.prototype.beginDeferredEmit=function(){this._deferredCnt++};t.prototype.endDeferredEmit=function(){this._deferredCnt--;if(0===this._deferredCnt&&this._shouldFire){this._shouldFire=!1;this._actual.fire({})}};t.prototype.fire=function(){this._shouldFire=!0};return t}(o["a"]);var gt=function(e){qe(t,e);function t(){var t=e.call(this)||this;t._fastEmitter=t._register(new i["a"]);t.fastEvent=t._fastEmitter.event;t._slowEmitter=t._register(new i["a"]);t.slowEvent=t._slowEmitter.event;t._deferredCnt=0;t._deferredEvent=null;return t}t.prototype.beginDeferredEmit=function(){this._deferredCnt++};t.prototype.endDeferredEmit=function(){this._deferredCnt--;if(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){if(this._deferredCnt>0){this._deferredEvent?this._deferredEvent=this._deferredEvent.merge(e):this._deferredEvent=e;return}this._fastEmitter.fire(e);this._slowEmitter.fire(e)};return t}(o["a"])},N3fP:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/*\r\n\tKeeping name short for faster parsing.\r\n\tcslr = core selections layer rendering (div)\r\n*/\r\n.monaco-editor .lines-content .cslr {\r\n\tposition: absolute;\r\n}\r\n\r\n.monaco-editor\t\t\t.top-left-radius\t\t{ border-top-left-radius: 3px; }\r\n.monaco-editor\t\t\t.bottom-left-radius\t\t{ border-bottom-left-radius: 3px; }\r\n.monaco-editor\t\t\t.top-right-radius\t\t{ border-top-right-radius: 3px; }\r\n.monaco-editor\t\t\t.bottom-right-radius\t{ border-bottom-right-radius: 3px; }\r\n\r\n.monaco-editor.hc-black .top-left-radius\t\t{ border-top-left-radius: 0; }\r\n.monaco-editor.hc-black .bottom-left-radius\t\t{ border-bottom-left-radius: 0; }\r\n.monaco-editor.hc-black .top-right-radius\t\t{ border-top-right-radius: 0; }\r\n.monaco-editor.hc-black .bottom-right-radius\t{ border-bottom-right-radius: 0; }\r\n",""])},NR0A:function(e,t,n){var r=n("xIvr");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},NRqW:function(e,t,n){var r=n("c7Q4");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},"Ni+E":function(e,t,n){"use strict";n.d(t,"a",function(){return r});function r(e,t){if(!e||null===e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}},OKg1:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n.monaco-editor .overlayWidgets {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tleft:0;\r\n}",""])},PFKJ:function(e,t,n){"use strict";n.d(t,"h",function(){return r});n.d(t,"q",function(){return i});n.d(t,"n",function(){return s});n.d(t,"k",function(){return u});n.d(t,"l",function(){return l});n.d(t,"x",function(){return d});n.d(t,"A",function(){return p});n.d(t,"i",function(){return g});n.d(t,"g",function(){return v});n.d(t,"y",function(){return m});n.d(t,"m",function(){return _});n.d(t,"o",function(){return y});n.d(t,"w",function(){return b});n.d(t,"u",function(){return w});n.d(t,"v",function(){return S});n.d(t,"j",function(){return I});n.d(t,"B",function(){return N});n.d(t,"b",function(){return M});n.d(t,"c",function(){return D});n.d(t,"s",function(){return k});n.d(t,"t",function(){return O});n.d(t,"f",function(){return T});n.d(t,"d",function(){return R});n.d(t,"p",function(){return j});n.d(t,"e",function(){return W});n.d(t,"r",function(){return F});n.d(t,"a",function(){return z});n.d(t,"C",function(){return V});n.d(t,"z",function(){return B});var r="";function i(e){if(!e||"string"!=typeof e)return!0;return 0===e.trim().length}function o(e,t,n){void 0===n&&(n="0");var r=""+e;var i=[r];for(var o=r.length;o<t;o++)i.push(n);return i.reverse().join("")}var a=/{(\d+)}/g;function s(e){var t=[];for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(0===t.length)return e;return e.replace(a,function(e,n){var r=parseInt(n,10);return isNaN(r)||r<0||r>=t.length?e:t[r]})}function u(e){return e.replace(/[<|>|&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function l(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function c(e,t){void 0===t&&(t=" ");var n;return h(d(e,t),t)}function d(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;var r=0;for(;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function h(e,t){if(!e||!t)return e;var n=t.length,r=e.length;if(0===n||0===r)return e;var i=r,o=-1;for(;-1!==(o=e.lastIndexOf(t,i-1))&&o+n===i;){if(0===o)return"";i=o}return e.substring(0,i)}function f(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function p(e,t){if(e.length<t.length)return!1;if(e===t)return!0;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function g(e,t){var n=e.length-t.length;return n>0?e.indexOf(t,n)===n:0===n&&e===t}function v(e,t,n){void 0===n&&(n={});if(!e)throw new Error("Cannot create regex from empty string");t||(e=l(e));if(n.wholeWord){/\B/.test(e.charAt(0))||(e="\\b"+e);/\B/.test(e.charAt(e.length-1))||(e+="\\b")}var r="";n.global&&(r+="g");n.matchCase||(r+="i");n.multiline&&(r+="m");return new RegExp(e,r)}function m(e){if("^"===e.source||"^$"===e.source||"$"===e.source||"^\\s*$"===e.source)return!1;var t;return!(!e.exec("")||0!==e.lastIndex)}function _(e){for(var t=0,n=e.length;t<n;t++){var r=e.charCodeAt(t);if(32!==r&&9!==r)return t}return-1}function y(e,t,n){void 0===t&&(t=0);void 0===n&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(32!==i&&9!==i)return e.substring(t,r)}return e.substring(t,n)}function b(e,t){void 0===t&&(t=e.length-1);for(var n=t;n>=0;n--){var r=e.charCodeAt(n);if(32!==r&&9!==r)return n}return-1}function C(e,t){return e<t?-1:e>t?1:0}function w(e){return e>=97&&e<=122}function S(e){return e>=65&&e<=90}function L(e){return w(e)||S(e)}function I(e,t){var n;var r;if((e?e.length:0)!==(t?t.length:0))return!1;return x(e,t)}function x(e,t,n){void 0===n&&(n=e.length);if("string"!=typeof e||"string"!=typeof t)return!1;for(var r=0;r<n;r++){var i=e.charCodeAt(r);var o=t.charCodeAt(r);if(i===o)continue;if(L(i)&&L(o)){var a=Math.abs(i-o);if(0!==a&&32!==a)return!1}else if(String.fromCharCode(i).toLowerCase()!==String.fromCharCode(o).toLowerCase())return!1}return!0}function N(e,t){var n=t.length;if(t.length>e.length)return!1;return x(e,t,n)}function M(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n++)if(e.charCodeAt(n)!==t.charCodeAt(n))return n;return r}function D(e,t){var n,r=Math.min(e.length,t.length);var i=e.length-1;var o=t.length-1;for(n=0;n<r;n++)if(e.charCodeAt(i-n)!==t.charCodeAt(o-n))return n;return r}function k(e){return 55296<=e&&e<=56319}function O(e){return 56320<=e&&e<=57343}var E=/(?:[\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])/;function T(e){return E.test(e)}var A=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;function R(e){return A.test(e)}var P=/^[\t\n\r\x20-\x7E]*$/;function j(e){return P.test(e)}function W(e){for(var t=0,n=e.length;t<n;t++)if(F(e.charCodeAt(t)))return!0;return!1}function F(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}var z=String.fromCharCode(65279);function V(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}function B(e){return btoa(encodeURIComponent(e))}function H(e,t){var n="";for(var r=0;r<t;r++)n+=e;return n}},PJlg:function(e,t,n){"use strict";n.d(t,"a",function(){return v});var r=n("9X2a");var i=(o=function(e,t){return(o=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])})(e,t)},function(e,t){o(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var o;var a;var s=/^\w[\w\d+.-]*$/;var u=/^\//;var l=/^\/\//;var c=!0;function d(e){if(!e.scheme){if(c)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');console.warn('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}')}if(e.scheme&&!s.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!u.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}function h(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==p&&(t=p+t):t=p}return t}var f="";var p="/";var g=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;var v=function(){function e(e,t,n,r,i){if("object"==typeof e){this.scheme=e.scheme||f;this.authority=e.authority||f;this.path=e.path||f;this.query=e.query||f;this.fragment=e.fragment||f}else{this.scheme=e||f;this.authority=t||f;this.path=h(this.scheme,n||f);this.query=r||f;this.fragment=i||f;d(this)}}e.isUri=function(t){if(t instanceof e)return!0;if(!t)return!1;return"string"==typeof t.authority&&"string"==typeof t.fragment&&"string"==typeof t.path&&"string"==typeof t.query&&"string"==typeof t.scheme};Object.defineProperty(e.prototype,"fsPath",{get:function(){return C(this)},enumerable:!0,configurable:!0});e.prototype.with=function(e){if(!e)return this;var t=e.scheme,n=e.authority,r=e.path,i=e.query,o=e.fragment;void 0===t?t=this.scheme:null===t&&(t=f);void 0===n?n=this.authority:null===n&&(n=f);void 0===r?r=this.path:null===r&&(r=f);void 0===i?i=this.query:null===i&&(i=f);void 0===o?o=this.fragment:null===o&&(o=f);if(t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment)return this;return new m(t,n,r,i,o)};e.parse=function(e){var t=g.exec(e);if(!t)return new m(f,f,f,f,f);return new m(t[2]||f,decodeURIComponent(t[4]||f),decodeURIComponent(t[5]||f),decodeURIComponent(t[7]||f),decodeURIComponent(t[9]||f))};e.file=function(e){var t=f;r["g"]&&(e=e.replace(/\\/g,p));if(e[0]===p&&e[1]===p){var n=e.indexOf(p,2);if(-1===n){t=e.substring(2);e=p}else{t=e.substring(2,n);e=e.substring(n)||p}}return new m("file",t,e,f,f)};e.from=function(e){return new m(e.scheme,e.authority,e.path,e.query,e.fragment)};e.prototype.toString=function(e){void 0===e&&(e=!1);return w(this,e)};e.prototype.toJSON=function(){return this};e.revive=function(t){if(t){if(t instanceof e)return t;var n=new m(t);n._fsPath=t.fsPath;n._formatted=t.external;return n}return t};return e}();var m=function(e){i(t,e);function t(){var t=null!==e&&e.apply(this,arguments)||this;t._formatted=null;t._fsPath=null;return t}Object.defineProperty(t.prototype,"fsPath",{get:function(){this._fsPath||(this._fsPath=C(this));return this._fsPath},enumerable:!0,configurable:!0});t.prototype.toString=function(e){void 0===e&&(e=!1);if(e)return w(this,!0);this._formatted||(this._formatted=w(this,!1));return this._formatted};t.prototype.toJSON=function(){var e={$mid:1};this._fsPath&&(e.fsPath=this._fsPath);this._formatted&&(e.external=this._formatted);this.path&&(e.path=this.path);this.scheme&&(e.scheme=this.scheme);this.authority&&(e.authority=this.authority);this.query&&(e.query=this.query);this.fragment&&(e.fragment=this.fragment);return e};return t}(v);var _=((a={})[58]="%3A",a[47]="%2F",a[63]="%3F",a[35]="%23",a[91]="%5B",a[93]="%5D",a[64]="%40",a[33]="%21",a[36]="%24",a[38]="%26",a[39]="%27",a[40]="%28",a[41]="%29",a[42]="%2A",a[43]="%2B",a[44]="%2C",a[59]="%3B",a[61]="%3D",a[32]="%20",a);function y(e,t){var n=void 0;var r=-1;for(var i=0;i<e.length;i++){var o=e.charCodeAt(i);if(o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||45===o||46===o||95===o||126===o||t&&47===o){if(-1!==r){n+=encodeURIComponent(e.substring(r,i));r=-1}void 0!==n&&(n+=e.charAt(i))}else{void 0===n&&(n=e.substr(0,i));var a=_[o];if(void 0!==a){if(-1!==r){n+=encodeURIComponent(e.substring(r,i));r=-1}n+=a}else-1===r&&(r=i)}}-1!==r&&(n+=encodeURIComponent(e.substring(r)));return void 0!==n?n:e}function b(e){var t=void 0;for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);if(35===r||63===r){void 0===t&&(t=e.substr(0,n));t+=_[r]}else void 0!==t&&(t+=e[n])}return void 0!==t?t:e}function C(e){var t;t=e.authority&&e.path.length>1&&"file"===e.scheme?"//"+e.authority+e.path:47===e.path.charCodeAt(0)&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&58===e.path.charCodeAt(2)?e.path[1].toLowerCase()+e.path.substr(2):e.path;r["g"]&&(t=t.replace(/\//g,"\\"));return t}function w(e,t){var n=t?b:y;var r="";var i=e.scheme,o=e.authority,a=e.path,s=e.query,u=e.fragment;if(i){r+=i;r+=":"}if(o||"file"===i){r+=p;r+=p}if(o){var l=o.indexOf("@");if(-1!==l){var c=o.substr(0,l);o=o.substr(l+1);if(-1===(l=c.indexOf(":")))r+=n(c,!1);else{r+=n(c.substr(0,l),!1);r+=":";r+=n(c.substr(l+1),!1)}r+="@"}if(-1===(l=(o=o.toLowerCase()).indexOf(":")))r+=n(o,!1);else{r+=n(o.substr(0,l),!1);r+=o.substr(l)}}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){var d;(d=a.charCodeAt(1))>=65&&d<=90&&(a="/"+String.fromCharCode(d+32)+":"+a.substr(3))}else if(a.length>=2&&58===a.charCodeAt(1)){var d;(d=a.charCodeAt(0))>=65&&d<=90&&(a=String.fromCharCode(d+32)+":"+a.substr(2))}r+=n(a,!0)}if(s){r+="?";r+=n(s,!1)}if(u){r+="#";r+=t?u:y(u,!1)}return r}},PLOv:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,'/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .margin-view-overlays .line-numbers {\r\n\tposition: absolute;\r\n\ttext-align: right;\r\n\tdisplay: inline-block;\r\n\tvertical-align: middle;\r\n\tbox-sizing: border-box;\r\n\tcursor: default;\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-editor .relative-current-line-number {\r\n\ttext-align: left;\r\n\tdisplay: inline-block;\r\n\twidth: 100%;\r\n}\r\n\r\n.monaco-editor .margin-view-overlays .line-numbers {\r\n\tcursor: -webkit-image-set(\r\n\t\turl("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMSIgeD0iMHB4IiB5PSIwcHgiIHZpZXdCb3g9IjAgMCAxNSAyMSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTUgMjE7Ij48cG9seWdvbiBzdHlsZT0iZmlsbDojRkZGRkZGO3N0cm9rZTojMDAwMDAwIiBwb2ludHM9IjE0LjUsMS4yIDEuOSwxMy44IDcuMSwxMy44IDQuNSwxOS4xIDcuNywyMC4xIDEwLjMsMTQuOSAxNC41LDE4Ii8+PC9zdmc+") 1x,\r\n\t\turl("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB3aWR0aD0iMzAiIGhlaWdodD0iNDIiIHZpZXdCb3g9IjAgMCAzMCA0MiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMzAgNDI7Ij48cG9seWdvbiBzdHlsZT0iZmlsbDojRkZGRkZGO3N0cm9rZTojMDAwMDAwO3N0cm9rZS13aWR0aDoyOyIgcG9pbnRzPSIyOSwyLjQgMy44LDI3LjYgMTQuMywyNy42IDksMzguMSAxNS40LDQwLjIgMjAuNiwyOS43IDI5LDM2Ii8+PC9zdmc+DQo=") 2x\r\n\t) 30 0, default;\r\n}\r\n\r\n.monaco-editor.mac .margin-view-overlays .line-numbers {\r\n\tcursor: -webkit-image-set(\r\n\t\turl("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxOCIgdmlld0JveD0iMCAwIDEyIDE4Ij48c3R5bGU+LnN0MHtmaWxsOiNmZmZ9PC9zdHlsZT48dGl0bGU+ZmxpcHBlZC1jdXJzb3ItbWFjPC90aXRsZT48cGF0aCBkPSJNNC4zIDE2LjVsMS42LTQuNkgxLjFMMTEuNSAxLjJ2MTQuNEw4LjcgMTNsLTEuNiA0LjV6Ii8+PHBhdGggY2xhc3M9InN0MCIgZD0iTTExIDE0LjVsLTIuNS0yLjNMNyAxNi43IDUgMTZsMS42LTQuNWgtNGw4LjUtOU0wIDEyLjVoNS4ybC0xLjUgNC4xTDcuNSAxOCA5IDE0LjJsMi45IDIuM1YwTDAgMTIuNXoiLz48L3N2Zz4=") 1x,\r\n\t\turl("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIzNiIgdmlld0JveD0iMCAwIDI0IDM2LjEiPjxkZWZzPjxzdHlsZT4uYXtmaWxsOiNmZmY7fTwvc3R5bGU+PC9kZWZzPjx0aXRsZT5mbGlwcGVkLWN1cnNvci1tYWMtMng8L3RpdGxlPjxwb2x5Z29uIHBvaW50cz0iOC42IDMzLjEgMTEuOCAyMy45IDIuMiAyMy45IDIzIDIuNSAyMyAzMS4zIDE3LjQgMjYuMSAxNC4yIDM1LjEgOC42IDMzLjEiLz48cGF0aCBjbGFzcz0iYSIgZD0iTTIyLDI5LjFsLTUtNC42LTMuMDYyLDguOTM4LTQuMDYyLTEuNUwxMywyM0g1TDIyLDVNMCwyNUgxMC40bC0zLDguM0wxNSwzNi4xbDMuMTI1LTcuNjYyTDI0LDMzVjBaIi8+PC9zdmc+") 2x\r\n\t) 24 3, default;\r\n}\r\n\r\n.monaco-editor .margin-view-overlays .line-numbers.lh-odd {\r\n\tmargin-top: 1px;\r\n}\r\n',""])},QJo0:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-aria-container {\r\n\tposition: absolute; /* try to hide from window but not from screen readers */\r\n\tleft:-999em;\r\n}",""])},QWeu:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .vs-whitespace {\r\n\tdisplay:inline-block;\r\n}\r\n\r\n",""])},RBaS:function(e,t,n){"use strict";n.d(t,"a",function(){return f});var r=n("aBfO");var i=n("Vp92");var o=n("9X2a");var a=new Array(230);var s=new Array(112);!function(){for(var e=0;e<s.length;e++)s[e]=-1;function t(e,t){a[e]=t;s[t]=e}t(3,7);t(8,1);t(9,2);t(13,3);t(16,4);t(17,5);t(18,6);t(19,7);t(20,8);t(27,9);t(32,10);t(33,11);t(34,12);t(35,13);t(36,14);t(37,15);t(38,16);t(39,17);t(40,18);t(45,19);t(46,20);t(48,21);t(49,22);t(50,23);t(51,24);t(52,25);t(53,26);t(54,27);t(55,28);t(56,29);t(57,30);t(65,31);t(66,32);t(67,33);t(68,34);t(69,35);t(70,36);t(71,37);t(72,38);t(73,39);t(74,40);t(75,41);t(76,42);t(77,43);t(78,44);t(79,45);t(80,46);t(81,47);t(82,48);t(83,49);t(84,50);t(85,51);t(86,52);t(87,53);t(88,54);t(89,55);t(90,56);t(93,58);t(96,93);t(97,94);t(98,95);t(99,96);t(100,97);t(101,98);t(102,99);t(103,100);t(104,101);t(105,102);t(106,103);t(107,104);t(108,105);t(109,106);t(110,107);t(111,108);t(112,59);t(113,60);t(114,61);t(115,62);t(116,63);t(117,64);t(118,65);t(119,66);t(120,67);t(121,68);t(122,69);t(123,70);t(124,71);t(125,72);t(126,73);t(127,74);t(128,75);t(129,76);t(130,77);t(144,78);t(145,79);t(186,80);t(187,81);t(188,82);t(189,83);t(190,84);t(191,85);t(192,86);t(193,110);t(194,111);t(219,87);t(220,88);t(221,89);t(222,90);t(223,91);t(226,92);t(229,109);if(r["k"])t(91,57);else if(r["j"]){t(59,80);t(107,81);t(109,83);o["d"]&&t(224,57)}else if(r["n"]){t(91,57);o["d"]?t(93,57):t(92,57)}}();function u(e){if(e.charCode){var t=String.fromCharCode(e.charCode).toUpperCase();return i["b"].fromString(t)}return a[e.keyCode]||0}var l=o["d"]?256:2048;var c=512;var d=1024;var h=o["d"]?2048:256;var f=function(){function e(e){var t=e;this.browserEvent=t;this.target=t.target;this.ctrlKey=t.ctrlKey;this.shiftKey=t.shiftKey;this.altKey=t.altKey;this.metaKey=t.metaKey;this.keyCode=u(t);this.code=t.code;this.ctrlKey=this.ctrlKey||5===this.keyCode;this.altKey=this.altKey||6===this.keyCode;this.shiftKey=this.shiftKey||4===this.keyCode;this.metaKey=this.metaKey||57===this.keyCode;this._asKeybinding=this._computeKeybinding();this._asRuntimeKeybinding=this._computeRuntimeKeybinding()}e.prototype.preventDefault=function(){this.browserEvent&&this.browserEvent.preventDefault&&this.browserEvent.preventDefault()};e.prototype.stopPropagation=function(){this.browserEvent&&this.browserEvent.stopPropagation&&this.browserEvent.stopPropagation()};e.prototype.toKeybinding=function(){return this._asRuntimeKeybinding};e.prototype.equals=function(e){return this._asKeybinding===e};e.prototype._computeKeybinding=function(){var e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);var t=0;this.ctrlKey&&(t|=l);this.altKey&&(t|=512);this.shiftKey&&(t|=1024);this.metaKey&&(t|=h);return t|=e};e.prototype._computeRuntimeKeybinding=function(){var e=0;5!==this.keyCode&&4!==this.keyCode&&6!==this.keyCode&&57!==this.keyCode&&(e=this.keyCode);return new i["e"](this.ctrlKey,this.shiftKey,this.altKey,this.metaKey,e)};return e}()},RhT1:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("6cF/");var i=function(){function e(e,t){this._tokens=e;this._tokensCount=this._tokens.length>>>1;this._text=t}e.prototype.equals=function(t){if(t instanceof e)return this.slicedEquals(t,0,this._tokensCount);return!1};e.prototype.slicedEquals=function(e,t,n){if(this._text!==e._text)return!1;if(this._tokensCount!==e._tokensCount)return!1;var r=t<<1;var i=r+(n<<1);for(var o=r;o<i;o++)if(this._tokens[o]!==e._tokens[o])return!1;return!0};e.prototype.getLineContent=function(){return this._text};e.prototype.getCount=function(){return this._tokensCount};e.prototype.getStartOffset=function(e){if(e>0)return this._tokens[e-1<<1];return 0};e.prototype.getLanguageId=function(e){var t=this._tokens[1+(e<<1)];return r["t"].getLanguageId(t)};e.prototype.getStandardTokenType=function(e){var t=this._tokens[1+(e<<1)];return r["t"].getTokenType(t)};e.prototype.getForeground=function(e){var t=this._tokens[1+(e<<1)];return r["t"].getForeground(t)};e.prototype.getClassName=function(e){var t=this._tokens[1+(e<<1)];return r["t"].getClassNameFromMetadata(t)};e.prototype.getInlineStyle=function(e,t){var n=this._tokens[1+(e<<1)];return r["t"].getInlineStyleFromMetadata(n,t)};e.prototype.getEndOffset=function(e){return this._tokens[e<<1]};e.prototype.findTokenIndexAtOffset=function(t){return e.findIndexInTokensArray(this._tokens,t)};e.prototype.inflate=function(){return this};e.prototype.sliceAndInflate=function(e,t,n){return new o(this,e,t,n)};e.convertToEndOffset=function(e,t){var n;var r=(e.length>>>1)-1;for(var i=0;i<r;i++)e[i<<1]=e[i+1<<1];e[r<<1]=t};e.findIndexInTokensArray=function(e,t){if(e.length<=2)return 0;var n=0;var r=(e.length>>>1)-1;for(;n<r;){var i=n+Math.floor((r-n)/2);var o=e[i<<1];if(o===t)return i+1;o<t?n=i+1:o>t&&(r=i)}return n};return e}();var o=function(){function e(e,t,n,r){this._source=e;this._startOffset=t;this._endOffset=n;this._deltaOffset=r;this._firstTokenIndex=e.findTokenIndexAtOffset(t);this._tokensCount=0;for(var i=this._firstTokenIndex,o=e.getCount();i<o;i++){var a;if(e.getStartOffset(i)>=n)break;this._tokensCount++}}e.prototype.equals=function(t){if(t instanceof e)return this._startOffset===t._startOffset&&this._endOffset===t._endOffset&&this._deltaOffset===t._deltaOffset&&this._source.slicedEquals(t._source,this._firstTokenIndex,this._tokensCount);return!1};e.prototype.getCount=function(){return this._tokensCount};e.prototype.getForeground=function(e){return this._source.getForeground(this._firstTokenIndex+e)};e.prototype.getEndOffset=function(e){var t=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,t)-this._startOffset+this._deltaOffset};e.prototype.getClassName=function(e){return this._source.getClassName(this._firstTokenIndex+e)};e.prototype.getInlineStyle=function(e,t){return this._source.getInlineStyle(this._firstTokenIndex+e,t)};e.prototype.findTokenIndexAtOffset=function(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex};return e}()},StU3:function(e,t,n){var r=n("xPGl");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},SxVz:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,'/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n/* ---------- DiffEditor ---------- */\r\n\r\n.monaco-diff-editor .diffOverview {\r\n\tz-index: 9;\r\n}\r\n\r\n/* colors not externalized: using transparancy on background */\r\n.monaco-diff-editor.vs\t\t\t.diffOverview { background: rgba(0, 0, 0, 0.03); }\r\n.monaco-diff-editor.vs-dark\t\t.diffOverview { background: rgba(255, 255, 255, 0.01); }\r\n\r\n.monaco-diff-editor .diffViewport {\r\n\tbox-shadow: inset 0px 0px 1px 0px #B9B9B9;\r\n\tbackground: rgba(0, 0, 0, 0.10);\r\n}\r\n\r\n.monaco-diff-editor.vs-dark .diffViewport,\r\n.monaco-diff-editor.hc-black .diffViewport {\r\n\tbackground: rgba(255, 255, 255, 0.10);\r\n}\r\n.monaco-scrollable-element.modified-in-monaco-diff-editor.vs\t\t.scrollbar { background: rgba(0,0,0,0); }\r\n.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark\t.scrollbar { background: rgba(0,0,0,0); }\r\n.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black\t.scrollbar { background: none; }\r\n\r\n.monaco-scrollable-element.modified-in-monaco-diff-editor .slider {\r\n\tz-index: 10;\r\n}\r\n.modified-in-monaco-diff-editor\t\t\t\t.slider.active { background: rgba(171, 171, 171, .4); }\r\n.modified-in-monaco-diff-editor.hc-black\t.slider.active { background: none; }\r\n\r\n/* ---------- Diff ---------- */\r\n\r\n.monaco-editor .insert-sign,\r\n.monaco-diff-editor .insert-sign,\r\n.monaco-editor .delete-sign,\r\n.monaco-diff-editor .delete-sign {\r\n\tbackground-size: 60%;\r\n\topacity: 0.7;\r\n\tbackground-repeat: no-repeat;\r\n\tbackground-position: 50% 50%;\r\n\tbackground-position: center;\r\n\tbackground-size: 11px 11px;\r\n}\r\n.monaco-editor.hc-black .insert-sign,\r\n.monaco-diff-editor.hc-black .insert-sign,\r\n.monaco-editor.hc-black .delete-sign,\r\n.monaco-diff-editor.hc-black .delete-sign {\r\n\topacity: 1;\r\n}\r\n.monaco-editor .insert-sign,\r\n.monaco-diff-editor .insert-sign {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPkxheWVyIDE8L3RpdGxlPjxyZWN0IGhlaWdodD0iMTEiIHdpZHRoPSIzIiB5PSIzIiB4PSI3IiBmaWxsPSIjNDI0MjQyIi8+PHJlY3QgaGVpZ2h0PSIzIiB3aWR0aD0iMTEiIHk9IjciIHg9IjMiIGZpbGw9IiM0MjQyNDIiLz48L3N2Zz4=");\r\n}\r\n.monaco-editor .delete-sign,\r\n.monaco-diff-editor .delete-sign {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPkxheWVyIDE8L3RpdGxlPjxyZWN0IGhlaWdodD0iMyIgd2lkdGg9IjExIiB5PSI3IiB4PSIzIiBmaWxsPSIjNDI0MjQyIi8+PC9zdmc+");\r\n}\r\n\r\n.monaco-editor.vs-dark .insert-sign,\r\n.monaco-diff-editor.vs-dark .insert-sign,\r\n.monaco-editor.hc-black .insert-sign,\r\n.monaco-diff-editor.hc-black .insert-sign {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPkxheWVyIDE8L3RpdGxlPjxyZWN0IGhlaWdodD0iMTEiIHdpZHRoPSIzIiB5PSIzIiB4PSI3IiBmaWxsPSIjQzVDNUM1Ii8+PHJlY3QgaGVpZ2h0PSIzIiB3aWR0aD0iMTEiIHk9IjciIHg9IjMiIGZpbGw9IiNDNUM1QzUiLz48L3N2Zz4=");\r\n}\r\n.monaco-editor.vs-dark .delete-sign,\r\n.monaco-diff-editor.vs-dark .delete-sign,\r\n.monaco-editor.hc-black .delete-sign,\r\n.monaco-diff-editor.hc-black .delete-sign {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHRpdGxlPkxheWVyIDE8L3RpdGxlPjxyZWN0IGhlaWdodD0iMyIgd2lkdGg9IjExIiB5PSI3IiB4PSIzIiBmaWxsPSIjQzVDNUM1Ii8+PC9zdmc+");\r\n}\r\n\r\n.monaco-editor .inline-deleted-margin-view-zone {\r\n\ttext-align: right;\r\n}\r\n.monaco-editor .inline-added-margin-view-zone {\r\n\ttext-align: right;\r\n}\r\n\r\n.monaco-editor .diagonal-fill {\r\n\tbackground: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAadEVYdFNvZnR3YXJlAFBhaW50Lk5FVCB2My41LjEwMPRyoQAAAChJREFUKFNjOH/+fAMDDgCSu3Dhwn9c8gwwBTgNGR4KQP4HhQOhsAIAZCBTkhtqePcAAAAASUVORK5CYII=");\r\n}\r\n.monaco-editor.vs-dark .diagonal-fill {\r\n\topacity: 0.2;\r\n}\r\n.monaco-editor.hc-black .diagonal-fill {\r\n\tbackground: none;\r\n}\r\n\r\n/* ---------- Inline Diff ---------- */\r\n\r\n.monaco-editor .view-zones .view-lines .view-line span {\r\n\tdisplay: inline-block;\r\n}\r\n',""])},TTPL:function(e,t,n){var r=n("eGDE");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},TihM:function(e,t,n){"use strict";n.d(t,"b",function(){return r});n.d(t,"a",function(){return i});n.d(t,"c",function(){return a});n.d(t,"d",function(){return s});var r;!function(e){e.serviceIds=new Map;e.DI_TARGET="$di$target";e.DI_DEPENDENCIES="$di$dependencies";function t(t){return t[e.DI_DEPENDENCIES]||[]}e.getServiceDependencies=t}(r||(r={}));var i=a("instantiationService");function o(e,t,n,i){if(t[r.DI_TARGET]===t)t[r.DI_DEPENDENCIES].push({id:e,index:n,optional:i});else{t[r.DI_DEPENDENCIES]=[{id:e,index:n,optional:i}];t[r.DI_TARGET]=t}}function a(e){if(r.serviceIds.has(e))return r.serviceIds.get(e);var t=function(e,n,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");o(t,e,r,!1)};t.toString=function(){return e};r.serviceIds.set(e,t);return t}function s(e){return function(t,n,r){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");o(e,t,r,!0)}}},TqEf:function(e,t,n){"use strict";n.r(t);var r=n("ITjR");var i=n("kaC/");var o=n("KVQV");var a=n("PFKJ");var s=n("jlTA");var u=n("gYaU");var l=n("cv6i");var c=n("6dSJ");var d=n("cENI");var h=n("tkRu");var f=n("GmUz");var p=n("rTC2");var g=n("MrIk");var v=n("Z2dV");var m=n("54i4");var _=function(){function e(e){this._editor=e;this._decorations=[];this._overviewRulerApproximateDecorations=[];this._findScopeDecorationId=null;this._rangeHighlightDecorationId=null;this._highlightedDecorationId=null;this._startPosition=this._editor.getPosition()}e.prototype.dispose=function(){this._editor.deltaDecorations(this._allDecorations(),[]);this._decorations=[];this._overviewRulerApproximateDecorations=[];this._findScopeDecorationId=null;this._rangeHighlightDecorationId=null;this._highlightedDecorationId=null};e.prototype.reset=function(){this._decorations=[];this._overviewRulerApproximateDecorations=[];this._findScopeDecorationId=null;this._rangeHighlightDecorationId=null;this._highlightedDecorationId=null};e.prototype.getCount=function(){return this._decorations.length};e.prototype.getFindScope=function(){if(this._findScopeDecorationId)return this._editor.getModel().getDecorationRange(this._findScopeDecorationId);return null};e.prototype.getStartPosition=function(){return this._startPosition};e.prototype.setStartPosition=function(e){this._startPosition=e;this.setCurrentFindMatch(null)};e.prototype._getDecorationIndex=function(e){var t=this._decorations.indexOf(e);if(t>=0)return t+1;return 1};e.prototype.getCurrentMatchesPosition=function(t){var n=this._editor.getModel().getDecorationsInRange(t);for(var r=0,i=n.length;r<i;r++){var o=n[r];var a=o.options;if(a===e._FIND_MATCH_DECORATION||a===e._CURRENT_FIND_MATCH_DECORATION)return this._getDecorationIndex(o.id)}return 1};e.prototype.setCurrentFindMatch=function(t){var n=this;var r=null;var i=0;if(t)for(var o=0,a=this._decorations.length;o<a;o++){var s=this._editor.getModel().getDecorationRange(this._decorations[o]);if(t.equalsRange(s)){r=this._decorations[o];i=o+1;break}}null===this._highlightedDecorationId&&null===r||this._editor.changeDecorations(function(t){if(null!==n._highlightedDecorationId){t.changeDecorationOptions(n._highlightedDecorationId,e._FIND_MATCH_DECORATION);n._highlightedDecorationId=null}if(null!==r){n._highlightedDecorationId=r;t.changeDecorationOptions(n._highlightedDecorationId,e._CURRENT_FIND_MATCH_DECORATION)}if(null!==n._rangeHighlightDecorationId){t.removeDecoration(n._rangeHighlightDecorationId);n._rangeHighlightDecorationId=null}if(null!==r){var i=n._editor.getModel().getDecorationRange(r);if(i.startLineNumber!==i.endLineNumber&&1===i.endColumn){var o=i.endLineNumber-1;var a=n._editor.getModel().getLineMaxColumn(o);i=new d["a"](i.startLineNumber,i.startColumn,o,a)}n._rangeHighlightDecorationId=t.addDecoration(i,e._RANGE_HIGHLIGHT_DECORATION)}});return i};e.prototype.set=function(t,n){var r=this;this._editor.changeDecorations(function(i){var o=e._FIND_MATCH_DECORATION;var a=[];if(t.length>1e3){o=e._FIND_MATCH_NO_OVERVIEW_DECORATION;var s=r._editor.getModel().getLineCount();var u;var l=r._editor.getLayoutInfo().height/s;var c=Math.max(2,Math.ceil(3/l));var h=t[0].range.startLineNumber;var f=t[0].range.endLineNumber;for(var p=1,g=t.length;p<g;p++){var v=t[p].range;if(f+c>=v.startLineNumber)v.endLineNumber>f&&(f=v.endLineNumber);else{a.push({range:new d["a"](h,1,f,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION});h=v.startLineNumber;f=v.endLineNumber}}a.push({range:new d["a"](h,1,f,1),options:e._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}var m=new Array(t.length);for(var p=0,g=t.length;p<g;p++)m[p]={range:t[p].range,options:o};r._decorations=i.deltaDecorations(r._decorations,m);r._overviewRulerApproximateDecorations=i.deltaDecorations(r._overviewRulerApproximateDecorations,a);if(r._rangeHighlightDecorationId){i.removeDecoration(r._rangeHighlightDecorationId);r._rangeHighlightDecorationId=null}if(r._findScopeDecorationId){i.removeDecoration(r._findScopeDecorationId);r._findScopeDecorationId=null}n&&(r._findScopeDecorationId=i.addDecoration(n,e._FIND_SCOPE_DECORATION))})};e.prototype.matchBeforePosition=function(e){if(0===this._decorations.length)return null;for(var t=this._decorations.length-1;t>=0;t--){var n=this._decorations[t];var r=this._editor.getModel().getDecorationRange(n);if(!r||r.endLineNumber>e.lineNumber)continue;if(r.endLineNumber<e.lineNumber)return r;if(r.endColumn>e.column)continue;return r}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])};e.prototype.matchAfterPosition=function(e){if(0===this._decorations.length)return null;for(var t=0,n=this._decorations.length;t<n;t++){var r=this._decorations[t];var i=this._editor.getModel().getDecorationRange(r);if(!i||i.startLineNumber<e.lineNumber)continue;if(i.startLineNumber>e.lineNumber)return i;if(i.startColumn<e.column)continue;return i}return this._editor.getModel().getDecorationRange(this._decorations[0])};e.prototype._allDecorations=function(){var e=[];e=(e=e.concat(this._decorations)).concat(this._overviewRulerApproximateDecorations);this._findScopeDecorationId&&e.push(this._findScopeDecorationId);this._rangeHighlightDecorationId&&e.push(this._rangeHighlightDecorationId);return e};e._CURRENT_FIND_MATCH_DECORATION=g["a"].register({stickiness:1,zIndex:13,className:"currentFindMatch",showIfCollapsed:!0,overviewRuler:{color:Object(m["f"])(v["hb"]),position:p["c"].Center}});e._FIND_MATCH_DECORATION=g["a"].register({stickiness:1,className:"findMatch",showIfCollapsed:!0,overviewRuler:{color:Object(m["f"])(v["hb"]),position:p["c"].Center}});e._FIND_MATCH_NO_OVERVIEW_DECORATION=g["a"].register({stickiness:1,className:"findMatch",showIfCollapsed:!0});e._FIND_MATCH_ONLY_OVERVIEW_DECORATION=g["a"].register({stickiness:1,overviewRuler:{color:Object(m["f"])(v["hb"]),position:p["c"].Center}});e._RANGE_HIGHLIGHT_DECORATION=g["a"].register({stickiness:1,className:"rangeHighlight",isWholeLine:!0});e._FIND_SCOPE_DECORATION=g["a"].register({className:"findScope",isWholeLine:!0});return e}();var y=function(){function e(e,t,n){this._editorSelection=e;this._ranges=t;this._replaceStrings=n}e.prototype.getEditOperations=function(e,t){if(this._ranges.length>0){var n=[];for(var r=0;r<this._ranges.length;r++)n.push({range:this._ranges[r],text:this._replaceStrings[r]});n.sort(function(e,t){return d["a"].compareRangesUsingStarts(e.range,t.range)});var i=[];var o=n[0];for(var r=1;r<n.length;r++)if(o.range.endLineNumber===n[r].range.startLineNumber&&o.range.endColumn===n[r].range.startColumn){o.range=o.range.plusRange(n[r].range);o.text=o.text+n[r].text}else{i.push(o);o=n[r]}i.push(o);for(var r=0;r<i.length;r++)t.addEditOperation(i[r].range,i[r].text)}this._trackedEditorSelectionId=t.trackSelection(this._editorSelection)};e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._trackedEditorSelectionId)};return e}();var b=function(){function e(e){this.staticValue=e;this.kind=0}return e}();var C=function(){function e(e){this.pieces=e;this.kind=1}return e}();var w=function(){function e(e){e&&0!==e.length?1===e.length&&null!==e[0].staticValue?this._state=new b(e[0].staticValue):this._state=new C(e):this._state=new b("")}e.fromStaticValue=function(t){return new e([S.staticValue(t)])};Object.defineProperty(e.prototype,"hasReplacementPatterns",{get:function(){return 1===this._state.kind},enumerable:!0,configurable:!0});e.prototype.buildReplaceString=function(t){if(0===this._state.kind)return this._state.staticValue;var n="";for(var r=0,i=this._state.pieces.length;r<i;r++){var o=this._state.pieces[r];if(null!==o.staticValue){n+=o.staticValue;continue}n+=e._substitute(o.matchIndex,t)}return n};e._substitute=function(e,t){if(null===t)return"";if(0===e)return t[0];var n="";for(;e>0;){if(e<t.length){var r;return(t[e]||"")+n}n=String(e%10)+n;e=Math.floor(e/10)}return"$"+n};return e}();var S=function(){function e(e,t){this.staticValue=e;this.matchIndex=t}e.staticValue=function(t){return new e(t,-1)};e.matchIndex=function(t){return new e(null,t)};return e}();var L=function(){function e(e){this._source=e;this._lastCharIndex=0;this._result=[];this._resultLen=0;this._currentStaticPiece=""}e.prototype.emitUnchanged=function(e){this._emitStatic(this._source.substring(this._lastCharIndex,e));this._lastCharIndex=e};e.prototype.emitStatic=function(e,t){this._emitStatic(e);this._lastCharIndex=t};e.prototype._emitStatic=function(e){if(0===e.length)return;this._currentStaticPiece+=e};e.prototype.emitMatchIndex=function(e,t){if(0!==this._currentStaticPiece.length){this._result[this._resultLen++]=S.staticValue(this._currentStaticPiece);this._currentStaticPiece=""}this._result[this._resultLen++]=S.matchIndex(e);this._lastCharIndex=t};e.prototype.finalize=function(){this.emitUnchanged(this._source.length);if(0!==this._currentStaticPiece.length){this._result[this._resultLen++]=S.staticValue(this._currentStaticPiece);this._currentStaticPiece=""}return new w(this._result)};return e}();function I(e){if(!e||0===e.length)return new w(null);var t=new L(e);for(var n=0,r=e.length;n<r;n++){var i=e.charCodeAt(n);if(92===i){if(++n>=r)break;var o;switch(o=e.charCodeAt(n)){case 92:t.emitUnchanged(n-1);t.emitStatic("\\",n+1);break;case 110:t.emitUnchanged(n-1);t.emitStatic("\n",n+1);break;case 116:t.emitUnchanged(n-1);t.emitStatic("\t",n+1)}continue}if(36===i){if(++n>=r)break;var o;if(36===(o=e.charCodeAt(n))){t.emitUnchanged(n-1);t.emitStatic("$",n+1);continue}if(48===o||38===o){t.emitUnchanged(n-1);t.emitMatchIndex(0,n+1);continue}if(49<=o&&o<=57){var a=o-48;if(n+1<r){var s=e.charCodeAt(n+1);if(48<=s&&s<=57){n++;a=10*a+(s-48);t.emitUnchanged(n-2);t.emitMatchIndex(a,n+1);continue}}t.emitUnchanged(n-1);t.emitMatchIndex(a,n+1);continue}}}return t.finalize()}var x=n("zgcD");var N=new x["f"]("findWidgetVisible",!1);var M=new x["f"]("findInputFocussed",!1);var D=new x["f"]("replaceInputFocussed",!1);var k={primary:545,mac:{primary:2593}};var O={primary:565,mac:{primary:2613}};var E={primary:560,mac:{primary:2608}};var T={primary:554,mac:{primary:2602}};var A={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"};var R=19999;var P=240;var j=function(){function e(e,t){var n=this;this._editor=e;this._state=t;this._toDispose=[];this._isDisposed=!1;this._startSearchingTimer=new i["d"];this._decorations=new _(e);this._toDispose.push(this._decorations);this._updateDecorationsScheduler=new i["c"](function(){return n.research(!1)},100);this._toDispose.push(this._updateDecorationsScheduler);this._toDispose.push(this._editor.onDidChangeCursorPosition(function(e){3!==e.reason&&5!==e.reason&&6!==e.reason||n._decorations.setStartPosition(n._editor.getPosition())}));this._ignoreModelContentChanged=!1;this._toDispose.push(this._editor.onDidChangeModelContent(function(e){if(n._ignoreModelContentChanged)return;e.isFlush&&n._decorations.reset();n._decorations.setStartPosition(n._editor.getPosition());n._updateDecorationsScheduler.schedule()}));this._toDispose.push(this._state.onFindReplaceStateChange(function(e){return n._onStateChanged(e)}));this.research(!1,this._state.searchScope)}e.prototype.dispose=function(){this._isDisposed=!0;Object(o["d"])(this._startSearchingTimer);this._toDispose=Object(o["d"])(this._toDispose)};e.prototype._onStateChanged=function(e){var t=this;if(this._isDisposed)return;if(!this._editor.getModel())return;if(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope){var n;if(this._editor.getModel().isTooLargeForSyncing()){this._startSearchingTimer.cancel();this._startSearchingTimer.setIfNotSet(function(){e.searchScope?t.research(e.moveCursor,t._state.searchScope):t.research(e.moveCursor)},240)}else e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)}};e._getSearchRange=function(e,t){if(t)return t;return e.getFullModelRange()};e.prototype.research=function(e,t){var n=null;null!==(n=void 0!==t?t:this._decorations.getFindScope())&&n.startLineNumber!==n.endLineNumber&&(n=1===n.endColumn?new d["a"](n.startLineNumber,1,n.endLineNumber-1,this._editor.getModel().getLineMaxColumn(n.endLineNumber-1)):new d["a"](n.startLineNumber,1,n.endLineNumber,this._editor.getModel().getLineMaxColumn(n.endLineNumber)));var r=this._findMatches(n,!1,19999);this._decorations.set(r,n);this._state.changeMatchInfo(this._decorations.getCurrentMatchesPosition(this._editor.getSelection()),this._decorations.getCount(),void 0);e&&this._moveToNextMatch(this._decorations.getStartPosition())};e.prototype._hasMatches=function(){return this._state.matchesCount>0};e.prototype._cannotFind=function(){if(!this._hasMatches()){var e=this._decorations.getFindScope();e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0);return!0}return!1};e.prototype._setCurrentFindMatch=function(e){var t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e);this._editor.setSelection(e);this._editor.revealRangeInCenterIfOutsideViewport(e,0)};e.prototype._prevSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);var n=e.lineNumber,r=e.column;var i=this._editor.getModel();if(t||1===r){1===n?n=i.getLineCount():n--;r=i.getLineMaxColumn(n)}else r--;return new c["a"](n,r)};e.prototype._moveToPrevMatch=function(t,n){void 0===n&&(n=!1);if(this._decorations.getCount()<19999){var r=this._decorations.matchBeforePosition(t);if(r&&r.isEmpty()&&r.getStartPosition().equals(t)){t=this._prevSearchPosition(t);r=this._decorations.matchBeforePosition(t)}r&&this._setCurrentFindMatch(r);return}if(this._cannotFind())return;var i=this._decorations.getFindScope();var o=e._getSearchRange(this._editor.getModel(),i);o.getEndPosition().isBefore(t)&&(t=o.getEndPosition());t.isBefore(o.getStartPosition())&&(t=o.getEndPosition());var a=t.lineNumber,s=t.column;var u=this._editor.getModel();var l=new c["a"](a,s);var d=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1);if(d&&d.range.isEmpty()&&d.range.getStartPosition().equals(l)){l=this._prevSearchPosition(l);d=u.findPreviousMatch(this._state.searchString,l,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,!1)}if(!d)return;if(!n&&!o.containsRange(d.range))return this._moveToPrevMatch(d.range.getStartPosition(),!0);this._setCurrentFindMatch(d.range)};e.prototype.moveToPrevMatch=function(){this._moveToPrevMatch(this._editor.getSelection().getStartPosition())};e.prototype._nextSearchPosition=function(e){var t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0);var n=e.lineNumber,r=e.column;var i=this._editor.getModel();if(t||r===i.getLineMaxColumn(n)){n===i.getLineCount()?n=1:n++;r=1}else r++;return new c["a"](n,r)};e.prototype._moveToNextMatch=function(e){if(this._decorations.getCount()<19999){var t=this._decorations.matchAfterPosition(e);if(t&&t.isEmpty()&&t.getStartPosition().equals(e)){e=this._nextSearchPosition(e);t=this._decorations.matchAfterPosition(e)}t&&this._setCurrentFindMatch(t);return}var n=this._getNextMatch(e,!1,!0);n&&this._setCurrentFindMatch(n.range)};e.prototype._getNextMatch=function(t,n,r,i){void 0===i&&(i=!1);if(this._cannotFind())return null;var o=this._decorations.getFindScope();var a=e._getSearchRange(this._editor.getModel(),o);a.getEndPosition().isBefore(t)&&(t=a.getStartPosition());t.isBefore(a.getStartPosition())&&(t=a.getStartPosition());var s=t.lineNumber,u=t.column;var l=this._editor.getModel();var d=new c["a"](s,u);var h=l.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n);if(r&&h&&h.range.isEmpty()&&h.range.getStartPosition().equals(d)){d=this._nextSearchPosition(d);h=l.findNextMatch(this._state.searchString,d,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n)}if(!h)return null;if(!i&&!a.containsRange(h.range))return this._getNextMatch(h.range.getEndPosition(),n,r,!0);return h};e.prototype.moveToNextMatch=function(){this._moveToNextMatch(this._editor.getSelection().getEndPosition())};e.prototype._getReplacePattern=function(){if(this._state.isRegex)return I(this._state.replaceString);return w.fromStaticValue(this._state.replaceString)};e.prototype.replace=function(){if(!this._hasMatches())return;var e=this._getReplacePattern();var t=this._editor.getSelection();var n=this._getNextMatch(t.getStartPosition(),e.hasReplacementPatterns,!1);if(n)if(t.equalsRange(n.range)){var r=e.buildReplaceString(n.matches);var i=new l["a"](t,r);this._executeEditorCommand("replace",i);this._decorations.setStartPosition(new c["a"](t.startLineNumber,t.startColumn+r.length));this.research(!0)}else{this._decorations.setStartPosition(this._editor.getPosition());this._setCurrentFindMatch(n.range)}};e.prototype._findMatches=function(t,n,r){var i=e._getSearchRange(this._editor.getModel(),t);return this._editor.getModel().findMatches(this._state.searchString,i,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null,n,r)};e.prototype.replaceAll=function(){if(!this._hasMatches())return;var e=this._decorations.getFindScope();null===e&&this._state.matchesCount>=19999?this._largeReplaceAll():this._regularReplaceAll(e);this.research(!1)};e.prototype._largeReplaceAll=function(){var e;var t=new f["a"](this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getConfiguration().wordSeparators:null).parseSearchRequest();if(!t)return;var n=t.regex;if(!n.multiline){var r="m";n.ignoreCase&&(r+="i");n.global&&(r+="g");n=new RegExp(n.source,r)}var i=this._editor.getModel();var o=i.getValue(1);var a=i.getFullModelRange();var s=this._getReplacePattern();var u;u=s.hasReplacementPatterns?o.replace(n,function(){return s.buildReplaceString(arguments)}):o.replace(n,s.buildReplaceString(null));var c=new l["b"](a,u,this._editor.getSelection());this._executeEditorCommand("replaceAll",c)};e.prototype._regularReplaceAll=function(e){var t=this._getReplacePattern();var n=this._findMatches(e,t.hasReplacementPatterns,1073741824);var r=[];for(var i=0,o=n.length;i<o;i++)r[i]=t.buildReplaceString(n[i].matches);var a=new y(this._editor.getSelection(),n.map(function(e){return e.range}),r);this._executeEditorCommand("replaceAll",a)};e.prototype.selectAllMatches=function(){if(!this._hasMatches())return;var e=this._decorations.getFindScope();var t;var n=this._findMatches(e,!1,1073741824).map(function(e){return new h["a"](e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn)});var r=this._editor.getSelection();for(var i=0,o=n.length;i<o;i++){var a;if(n[i].equalsRange(r)){n=[r].concat(n.slice(0,i)).concat(n.slice(i+1));break}}this._editor.setSelections(n)};e.prototype._executeEditorCommand=function(e,t){try{this._ignoreModelContentChanged=!0;this._editor.pushUndoStop();this._editor.executeCommand(e,t);this._editor.pushUndoStop()}finally{this._ignoreModelContentChanged=!1}};return e}();var W=n("zxKB");var F=n("059A");var z=n("6YTk");var V=n("gVYO");var B=n("5s6q");var H=n("lKvo");var U=(Z=function(e,t){return(Z=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])})(e,t)},function(e,t){Z(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var Z;var G={inputActiveOptionBorder:V["a"].fromHex("#007ACC")};var Y=function(e){U(t,e);function t(t){var n=e.call(this)||this;n._onChange=n._register(new B["a"]);n._onKeyDown=n._register(new B["a"]);n._opts=H["b"](t);H["e"](n._opts,G,!1);n._checked=n._opts.isChecked;n.domNode=document.createElement("div");n.domNode.title=n._opts.title;n.domNode.className="monaco-custom-checkbox "+n._opts.actionClassName+" "+(n._checked?"checked":"unchecked");n.domNode.tabIndex=0;n.domNode.setAttribute("role","checkbox");n.domNode.setAttribute("aria-checked",String(n._checked));n.domNode.setAttribute("aria-label",n._opts.title);n.applyStyles();n.onclick(n.domNode,function(e){n.checked=!n._checked;n._onChange.fire(!1);e.preventDefault()});n.onkeydown(n.domNode,function(e){if(10===e.keyCode||3===e.keyCode){n.checked=!n._checked;n._onChange.fire(!0);e.preventDefault();return}n._onKeyDown.fire(e)});return n}Object.defineProperty(t.prototype,"onChange",{get:function(){return this._onChange.event},enumerable:!0,configurable:!0});Object.defineProperty(t.prototype,"onKeyDown",{get:function(){return this._onKeyDown.event},enumerable:!0,configurable:!0});t.prototype.focus=function(){this.domNode.focus()};Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked},set:function(e){this._checked=e;this.domNode.setAttribute("aria-checked",String(this._checked));this._checked?this.domNode.classList.add("checked"):this.domNode.classList.remove("checked");this.applyStyles()},enumerable:!0,configurable:!0});t.prototype.width=function(){return 22};t.prototype.style=function(e){e.inputActiveOptionBorder&&(this._opts.inputActiveOptionBorder=e.inputActiveOptionBorder);this.applyStyles()};t.prototype.applyStyles=function(){this.domNode&&(this.domNode.style.borderColor=this._checked&&this._opts.inputActiveOptionBorder?this._opts.inputActiveOptionBorder.toString():"transparent")};t.prototype.enable=function(){this.domNode.tabIndex=0;this.domNode.setAttribute("aria-disabled",String(!1))};t.prototype.disable=function(){W["H"](this.domNode);this.domNode.setAttribute("aria-disabled",String(!0))};return t}(z["a"]);var K=n("NR0A");var Q=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var q=r["a"]("caseDescription","Match Case");var J=r["a"]("wordsDescription","Match Whole Word");var X=r["a"]("regexDescription","Use Regular Expression");var $=function(e){Q(t,e);function t(t){return e.call(this,{actionClassName:"monaco-case-sensitive",title:q+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder})||this}return t}(Y);var ee=function(e){Q(t,e);function t(t){return e.call(this,{actionClassName:"monaco-whole-word",title:J+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder})||this}return t}(Y);var te=function(e){Q(t,e);function t(t){return e.call(this,{actionClassName:"monaco-regex",title:X+t.appendTitle,isChecked:t.isChecked,inputActiveOptionBorder:t.inputActiveOptionBorder})||this}return t}(Y);var ne=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var re=function(e){ne(t,e);function t(t,n,r,o){var a=e.call(this)||this;a._hideSoon=a._register(new i["c"](function(){return a._hide()},2e3));a._isVisible=!1;a._editor=t;a._state=n;a._keybindingService=r;a._domNode=document.createElement("div");a._domNode.className="findOptionsWidget";a._domNode.style.display="none";a._domNode.style.top="10px";a._domNode.setAttribute("role","presentation");a._domNode.setAttribute("aria-hidden","true");var s=o.getTheme().getColor(v["D"]);a.caseSensitive=a._register(new $({appendTitle:a._keybindingLabelFor(A.ToggleCaseSensitiveCommand),isChecked:a._state.matchCase,inputActiveOptionBorder:s}));a._domNode.appendChild(a.caseSensitive.domNode);a._register(a.caseSensitive.onChange(function(){a._state.change({matchCase:a.caseSensitive.checked},!1)}));a.wholeWords=a._register(new ee({appendTitle:a._keybindingLabelFor(A.ToggleWholeWordCommand),isChecked:a._state.wholeWord,inputActiveOptionBorder:s}));a._domNode.appendChild(a.wholeWords.domNode);a._register(a.wholeWords.onChange(function(){a._state.change({wholeWord:a.wholeWords.checked},!1)}));a.regex=a._register(new te({appendTitle:a._keybindingLabelFor(A.ToggleRegexCommand),isChecked:a._state.isRegex,inputActiveOptionBorder:s}));a._domNode.appendChild(a.regex.domNode);a._register(a.regex.onChange(function(){a._state.change({isRegex:a.regex.checked},!1)}));a._editor.addOverlayWidget(a);a._register(a._state.onFindReplaceStateChange(function(e){var t=!1;if(e.isRegex){a.regex.checked=a._state.isRegex;t=!0}if(e.wholeWord){a.wholeWords.checked=a._state.wholeWord;t=!0}if(e.matchCase){a.caseSensitive.checked=a._state.matchCase;t=!0}!a._state.isRevealed&&t&&a._revealTemporarily()}));a._register(W["h"](a._domNode,function(e){return a._onMouseOut()}));a._register(W["g"](a._domNode,"mouseover",function(e){return a._onMouseOver()}));a._applyTheme(o.getTheme());a._register(o.onThemeChange(a._applyTheme.bind(a)));return a}t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);if(!t)return"";return" ("+t.getLabel()+")"};t.prototype.dispose=function(){this._editor.removeOverlayWidget(this);e.prototype.dispose.call(this)};t.prototype.getId=function(){return t.ID};t.prototype.getDomNode=function(){return this._domNode};t.prototype.getPosition=function(){return{preference:0}};t.prototype.highlightFindOptions=function(){this._revealTemporarily()};t.prototype._revealTemporarily=function(){this._show();this._hideSoon.schedule()};t.prototype._onMouseOut=function(){this._hideSoon.schedule()};t.prototype._onMouseOver=function(){this._hideSoon.cancel()};t.prototype._show=function(){if(this._isVisible)return;this._isVisible=!0;this._domNode.style.display="block"};t.prototype._hide=function(){if(!this._isVisible)return;this._isVisible=!1;this._domNode.style.display="none"};t.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(v["D"])};this.caseSensitive.style(t);this.wholeWords.style(t);this.regex.style(t)};t.ID="editor.contrib.findOptionsWidget";return t}(z["a"]);Object(m["e"])(function(e,t){var n=e.getColor(v["y"]);n&&t.addRule(".monaco-editor .findOptionsWidget { background-color: "+n+"; }");var r=e.getColor(v["qb"]);r&&t.addRule(".monaco-editor .findOptionsWidget { box-shadow: 0 2px 8px "+r+"; }");var i=e.getColor(v["e"]);i&&t.addRule(".monaco-editor .findOptionsWidget { border: 2px solid "+i+"; }")});function ie(e,t){if(1===e)return!0;if(2===e)return!1;return t}var oe=function(){function e(){this._searchString="";this._replaceString="";this._isRevealed=!1;this._isReplaceRevealed=!1;this._isRegex=!1;this._isRegexOverride=0;this._wholeWord=!1;this._wholeWordOverride=0;this._matchCase=!1;this._matchCaseOverride=0;this._searchScope=null;this._matchesPosition=0;this._matchesCount=0;this._currentMatch=null;this._onFindReplaceStateChange=new B["a"]}Object.defineProperty(e.prototype,"searchString",{get:function(){return this._searchString},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"replaceString",{get:function(){return this._replaceString},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"isRevealed",{get:function(){return this._isRevealed},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"isReplaceRevealed",{get:function(){return this._isReplaceRevealed},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"isRegex",{get:function(){return ie(this._isRegexOverride,this._isRegex)},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"wholeWord",{get:function(){return ie(this._wholeWordOverride,this._wholeWord)},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"matchCase",{get:function(){return ie(this._matchCaseOverride,this._matchCase)},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"actualIsRegex",{get:function(){return this._isRegex},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"actualWholeWord",{get:function(){return this._wholeWord},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"actualMatchCase",{get:function(){return this._matchCase},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"searchScope",{get:function(){return this._searchScope},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"matchesPosition",{get:function(){return this._matchesPosition},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"matchesCount",{get:function(){return this._matchesCount},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"currentMatch",{get:function(){return this._currentMatch},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"onFindReplaceStateChange",{get:function(){return this._onFindReplaceStateChange.event},enumerable:!0,configurable:!0});e.prototype.dispose=function(){};e.prototype.changeMatchInfo=function(e,t,n){var r={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1};var i=!1;0===t&&(e=0);e>t&&(e=t);if(this._matchesPosition!==e){this._matchesPosition=e;r.matchesPosition=!0;i=!0}if(this._matchesCount!==t){this._matchesCount=t;r.matchesCount=!0;i=!0}if(void 0!==n&&!d["a"].equalsRange(this._currentMatch,n)){this._currentMatch=n;r.currentMatch=!0;i=!0}i&&this._onFindReplaceStateChange.fire(r)};e.prototype.change=function(e,t,n){void 0===n&&(n=!0);var r={moveCursor:t,updateHistory:n,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1};var i=!1;var o=this.isRegex;var a=this.wholeWord;var s=this.matchCase;if(void 0!==e.searchString&&this._searchString!==e.searchString){this._searchString=e.searchString;r.searchString=!0;i=!0}if(void 0!==e.replaceString&&this._replaceString!==e.replaceString){this._replaceString=e.replaceString;r.replaceString=!0;i=!0}if(void 0!==e.isRevealed&&this._isRevealed!==e.isRevealed){this._isRevealed=e.isRevealed;r.isRevealed=!0;i=!0}if(void 0!==e.isReplaceRevealed&&this._isReplaceRevealed!==e.isReplaceRevealed){this._isReplaceRevealed=e.isReplaceRevealed;r.isReplaceRevealed=!0;i=!0}void 0!==e.isRegex&&(this._isRegex=e.isRegex);void 0!==e.wholeWord&&(this._wholeWord=e.wholeWord);void 0!==e.matchCase&&(this._matchCase=e.matchCase);if(void 0!==e.searchScope&&!d["a"].equalsRange(this._searchScope,e.searchScope)){this._searchScope=e.searchScope;r.searchScope=!0;i=!0}this._isRegexOverride=void 0!==e.isRegexOverride?e.isRegexOverride:0;this._wholeWordOverride=void 0!==e.wholeWordOverride?e.wholeWordOverride:0;this._matchCaseOverride=void 0!==e.matchCaseOverride?e.matchCaseOverride:0;if(o!==this.isRegex){i=!0;r.isRegex=!0}if(a!==this.wholeWord){i=!0;r.wholeWord=!0}if(s!==this.matchCase){i=!0;r.matchCase=!0}i&&this._onFindReplaceStateChange.fire(r)};return e}();var ae=n("xETQ");var se=n("rpIH");var ue=n("W5Z6");var le=n("9X2a");var ce=n("bKxK");var de=n("aBfO");var he;var fe=new(function(){function e(e){this._prefix=e;this._lastId=0}e.prototype.nextId=function(){return this._prefix+ ++this._lastId};return e}())("id#");var pe=n("mHwz");var ge;(function(e){var t={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:p,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,nptable:p,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|<![A-Z][\\s\\S]*?>\\n*|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>\\n*|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$)|</(?!script|pre|style)[a-z][\\w-]*\\s*>(?=\\h*\\n)[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:p,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading| {0,3}>|<\/?(?:tag)(?: +|\n|\/?>)|<(?:script|pre|style|!--))[^\n]+)*)/,text:/^[^\n]+/};t._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/;t._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;t.def=c(t.def).replace("label",t._label).replace("title",t._title).getRegex();t.bullet=/(?:[*+-]|\d+\.)/;t.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/;t.item=c(t.item,"gm").replace(/bull/g,t.bullet).getRegex();t.list=c(t.list).replace(/bull/g,t.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+t.def.source+")").getRegex();t._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";t._comment=/<!--(?!-?>)[\s\S]*?-->/;t.html=c(t.html,"i").replace("comment",t._comment).replace("tag",t._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();t.paragraph=c(t.paragraph).replace("hr",t.hr).replace("heading",t.heading).replace("lheading",t.lheading).replace("tag",t._tag).getRegex();t.blockquote=c(t.blockquote).replace("paragraph",t.paragraph).getRegex();t.normal=g({},t);t.gfm=g({},t.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/});t.gfm.paragraph=c(t.paragraph).replace("(?!","(?!"+t.gfm.fences.source.replace("\\1","\\2")+"|"+t.list.source.replace("\\1","\\3")+"|").getRegex();t.tables=g({},t.gfm,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/});t.pedantic=g({},t.normal,{html:c("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",t._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/});function n(e){this.tokens=[];this.tokens.links=Object.create(null);this.options=e||_.defaults;this.rules=t.normal;this.options.pedantic?this.rules=t.pedantic:this.options.gfm&&(this.options.tables?this.rules=t.tables:this.rules=t.gfm)}n.rules=t;n.lex=function(e,t){var r;return new n(t).lex(e)};n.prototype.lex=function(e){e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n");return this.token(e,!0)};n.prototype.token=function(e,n){e=e.replace(/^ +$/gm,"");var r,i,o,a,s,u,l,c,d,h,f,p,g,_,y,b;for(;e;){if(o=this.rules.newline.exec(e)){e=e.substring(o[0].length);o[0].length>1&&this.tokens.push({type:"space"})}if(o=this.rules.code.exec(e)){e=e.substring(o[0].length);o=o[0].replace(/^ {4}/gm,"");this.tokens.push({type:"code",text:this.options.pedantic?o:m(o,"\n")});continue}if(o=this.rules.fences.exec(e)){e=e.substring(o[0].length);this.tokens.push({type:"code",lang:o[2],text:o[3]||""});continue}if(o=this.rules.heading.exec(e)){e=e.substring(o[0].length);this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});continue}if(n&&(o=this.rules.nptable.exec(e))&&(u={type:"table",header:v(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/\n$/,"").split("\n"):[]}).header.length===u.align.length){e=e.substring(o[0].length);for(f=0;f<u.align.length;f++)/^ *-+: *$/.test(u.align[f])?u.align[f]="right":/^ *:-+: *$/.test(u.align[f])?u.align[f]="center":/^ *:-+ *$/.test(u.align[f])?u.align[f]="left":u.align[f]=null;for(f=0;f<u.cells.length;f++)u.cells[f]=v(u.cells[f],u.header.length);this.tokens.push(u);continue}if(o=this.rules.hr.exec(e)){e=e.substring(o[0].length);this.tokens.push({type:"hr"});continue}if(o=this.rules.blockquote.exec(e)){e=e.substring(o[0].length);this.tokens.push({type:"blockquote_start"});o=o[0].replace(/^ *> ?/gm,"");this.token(o,n);this.tokens.push({type:"blockquote_end"});continue}if(o=this.rules.list.exec(e)){e=e.substring(o[0].length);l={type:"list_start",ordered:_=(a=o[2]).length>1,start:_?+a:"",loose:!1};this.tokens.push(l);o=o[0].match(this.rules.item);c=[];r=!1;g=o.length;f=0;for(;f<g;f++){h=(u=o[f]).length;if(~(u=u.replace(/^ *([*+-]|\d+\.) +/,"")).indexOf("\n ")){h-=u.length;u=this.options.pedantic?u.replace(/^ {1,4}/gm,""):u.replace(new RegExp("^ {1,"+h+"}","gm"),"")}if(this.options.smartLists&&f!==g-1&&a!==(s=t.bullet.exec(o[f+1])[0])&&!(a.length>1&&s.length>1)){e=o.slice(f+1).join("\n")+e;f=g-1}i=r||/\n\n(?!\s*$)/.test(u);if(f!==g-1){r="\n"===u.charAt(u.length-1);i||(i=r)}i&&(l.loose=!0);y=/^\[[ xX]\] /.test(u);b=void 0;if(y){b=" "!==u[1];u=u.replace(/^\[[ xX]\] +/,"")}d={type:"list_item_start",task:y,checked:b,loose:i};c.push(d);this.tokens.push(d);this.token(u,!1);this.tokens.push({type:"list_item_end"})}if(l.loose){g=c.length;f=0;for(;f<g;f++)c[f].loose=!0}this.tokens.push({type:"list_end"});continue}if(o=this.rules.html.exec(e)){e=e.substring(o[0].length);this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});continue}if(n&&(o=this.rules.def.exec(e))){e=e.substring(o[0].length);o[3]&&(o[3]=o[3].substring(1,o[3].length-1));p=o[1].toLowerCase().replace(/\s+/g," ");this.tokens.links[p]||(this.tokens.links[p]={href:o[2],title:o[3]});continue}if(n&&(o=this.rules.table.exec(e))&&(u={type:"table",header:v(o[1].replace(/^ *| *\| *$/g,"")),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3]?o[3].replace(/(?: *\| *)?\n$/,"").split("\n"):[]}).header.length===u.align.length){e=e.substring(o[0].length);for(f=0;f<u.align.length;f++)/^ *-+: *$/.test(u.align[f])?u.align[f]="right":/^ *:-+: *$/.test(u.align[f])?u.align[f]="center":/^ *:-+ *$/.test(u.align[f])?u.align[f]="left":u.align[f]=null;for(f=0;f<u.cells.length;f++)u.cells[f]=v(u.cells[f].replace(/^ *\| *| *\| *$/g,""),u.header.length);this.tokens.push(u);continue}if(o=this.rules.lheading.exec(e)){e=e.substring(o[0].length);this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});continue}if(n&&(o=this.rules.paragraph.exec(e))){e=e.substring(o[0].length);this.tokens.push({type:"paragraph",text:"\n"===o[1].charAt(o[1].length-1)?o[1].slice(0,-1):o[1]});continue}if(o=this.rules.text.exec(e)){e=e.substring(o[0].length);this.tokens.push({type:"text",text:o[0]});continue}if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}return this.tokens};var r={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:p,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(href(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s])__(?!_)|^\*\*([^\s])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*"<\[])\*(?!\*)|^_([^\s][\s\S]*?[^\s_])_(?!_)|^_([^\s_][\s\S]*?[^\s])_(?!_)|^\*([^\s"<\[][\s\S]*?[^\s*])\*(?!\*)|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:p,text:/^[\s\S]+?(?=[\\<!\[`*]|\b_| {2,}\n|$)/};r._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;r._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;r._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;r.autolink=c(r.autolink).replace("scheme",r._scheme).replace("email",r._email).getRegex();r._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;r.tag=c(r.tag).replace("comment",t._comment).replace("attribute",r._attribute).getRegex();r._label=/(?:\[[^\[\]]*\]|\\[\[\]]?|`[^`]*`|[^\[\]\\])*?/;r._href=/\s*(<(?:\\[<>]?|[^\s<>\\])*>|(?:\\[()]?|\([^\s\x00-\x1f\\]*\)|[^\s\x00-\x1f()\\])*?)/;r._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;r.link=c(r.link).replace("label",r._label).replace("href",r._href).replace("title",r._title).getRegex();r.reflink=c(r.reflink).replace("label",r._label).getRegex();r.normal=g({},r);r.pedantic=g({},r.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:c(/^!?\[(label)\]\((.*?)\)/).replace("label",r._label).getRegex(),reflink:c(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",r._label).getRegex()});r.gfm=g({},r.normal,{escape:c(r.escape).replace("])","~|])").getRegex(),url:c(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("email",r._email).getRegex(),_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:c(r.text).replace("]|","~]|").replace("|","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|").getRegex()});r.breaks=g({},r.gfm,{br:c(r.br).replace("{2,}","*").getRegex(),text:c(r.gfm.text).replace("{2,}","*").getRegex()});function i(e,t){this.options=t||_.defaults;this.links=e;this.rules=r.normal;this.renderer=this.options.renderer||new o;this.renderer.options=this.options;if(!this.links)throw new Error("Tokens array requires a `links` property.");this.options.pedantic?this.rules=r.pedantic:this.options.gfm&&(this.options.breaks?this.rules=r.breaks:this.rules=r.gfm)}i.rules=r;i.output=function(e,t,n){var r;return new i(t,n).output(e)};i.prototype.output=function(e){var t="",n,r,o,a,s,l;for(;e;){if(s=this.rules.escape.exec(e)){e=e.substring(s[0].length);t+=s[1];continue}if(s=this.rules.autolink.exec(e)){e=e.substring(s[0].length);o="@"===s[2]?"mailto:"+(r=u(this.mangle(s[1]))):r=u(s[1]);t+=this.renderer.link(o,null,r);continue}if(!this.inLink&&(s=this.rules.url.exec(e))){do{l=s[0];s[0]=this.rules._backpedal.exec(s[0])[0]}while(l!==s[0]);e=e.substring(s[0].length);if("@"===s[2])o="mailto:"+(r=u(s[0]));else{r=u(s[0]);o="www."===s[1]?"http://"+r:r}t+=this.renderer.link(o,null,r);continue}if(s=this.rules.tag.exec(e)){!this.inLink&&/^<a /i.test(s[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(s[0])&&(this.inLink=!1);e=e.substring(s[0].length);t+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(s[0]):u(s[0]):s[0];continue}if(s=this.rules.link.exec(e)){e=e.substring(s[0].length);this.inLink=!0;o=s[2];if(this.options.pedantic)if(n=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(o)){o=n[1];a=n[3]}else a="";else a=s[3]?s[3].slice(1,-1):"";o=o.trim().replace(/^<([\s\S]*)>$/,"$1");t+=this.outputLink(s,{href:i.escapes(o),title:i.escapes(a)});this.inLink=!1;continue}if((s=this.rules.reflink.exec(e))||(s=this.rules.nolink.exec(e))){e=e.substring(s[0].length);n=(s[2]||s[1]).replace(/\s+/g," ");if(!(n=this.links[n.toLowerCase()])||!n.href){t+=s[0].charAt(0);e=s[0].substring(1)+e;continue}this.inLink=!0;t+=this.outputLink(s,n);this.inLink=!1;continue}if(s=this.rules.strong.exec(e)){e=e.substring(s[0].length);t+=this.renderer.strong(this.output(s[4]||s[3]||s[2]||s[1]));continue}if(s=this.rules.em.exec(e)){e=e.substring(s[0].length);t+=this.renderer.em(this.output(s[6]||s[5]||s[4]||s[3]||s[2]||s[1]));continue}if(s=this.rules.code.exec(e)){e=e.substring(s[0].length);t+=this.renderer.codespan(u(s[2].trim(),!0));continue}if(s=this.rules.br.exec(e)){e=e.substring(s[0].length);t+=this.renderer.br();continue}if(s=this.rules.del.exec(e)){e=e.substring(s[0].length);t+=this.renderer.del(this.output(s[1]));continue}if(s=this.rules.text.exec(e)){e=e.substring(s[0].length);t+=this.renderer.text(u(this.smartypants(s[0])));continue}if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}return t};i.escapes=function(e){return e?e.replace(i.rules._escapes,"$1"):e};i.prototype.outputLink=function(e,t){var n=t.href,r=t.title?u(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,u(e[1]))};i.prototype.smartypants=function(e){if(!this.options.smartypants)return e;return e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")};i.prototype.mangle=function(e){if(!this.options.mangle)return e;var t="",n=e.length,r=0,i;for(;r<n;r++){i=e.charCodeAt(r);Math.random()>.5&&(i="x"+i.toString(16));t+="&#"+i+";"}return t};function o(e){this.options=e||_.defaults}o.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);if(null!=r&&r!==e){n=!0;e=r}}if(!t)return"<pre><code>"+(n?e:u(e,!0))+"</code></pre>";return'<pre><code class="'+this.options.langPrefix+u(t,!0)+'">'+(n?e:u(e,!0))+"</code></pre>\n"};o.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"};o.prototype.html=function(e){return e};o.prototype.heading=function(e,t,n){if(this.options.headerIds)return"<h"+t+' id="'+this.options.headerPrefix+n.toLowerCase().replace(/[^\w]+/g,"-")+'">'+e+"</h"+t+">\n";return"<h"+t+">"+e+"</h"+t+">\n"};o.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"};o.prototype.list=function(e,t,n){var r=t?"ol":"ul",i;return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"};o.prototype.listitem=function(e){return"<li>"+e+"</li>\n"};o.prototype.checkbox=function(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "};o.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"};o.prototype.table=function(e,t){t&&(t="<tbody>"+t+"</tbody>");return"<table>\n<thead>\n"+e+"</thead>\n"+t+"</table>\n"};o.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"};o.prototype.tablecell=function(e,t){var n=t.header?"th":"td";var r;return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"};o.prototype.strong=function(e){return"<strong>"+e+"</strong>"};o.prototype.em=function(e){return"<em>"+e+"</em>"};o.prototype.codespan=function(e){return"<code>"+e+"</code>"};o.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"};o.prototype.del=function(e){return"<del>"+e+"</del>"};o.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(l(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return n}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return n}this.options.baseUrl&&!f.test(e)&&(e=d(this.options.baseUrl,e));try{e=encodeURI(e).replace(/%25/g,"%")}catch(e){return n}var i='<a href="'+u(e)+'"';t&&(i+=' title="'+t+'"');return i+=">"+n+"</a>"};o.prototype.image=function(e,t,n){this.options.baseUrl&&!f.test(e)&&(e=d(this.options.baseUrl,e));var r='<img src="'+e+'" alt="'+n+'"';t&&(r+=' title="'+t+'"');return r+=this.options.xhtml?"/>":">"};o.prototype.text=function(e){return e};function a(){}a.prototype.strong=a.prototype.em=a.prototype.codespan=a.prototype.del=a.prototype.text=function(e){return e};a.prototype.link=a.prototype.image=function(e,t,n){return""+n};a.prototype.br=function(){return""};function s(e){this.tokens=[];this.token=null;this.options=e||_.defaults;this.options.renderer=this.options.renderer||new o;this.renderer=this.options.renderer;this.renderer.options=this.options}s.parse=function(e,t){var n;return new s(t).parse(e)};s.prototype.parse=function(e){this.inline=new i(e.links,this.options);this.inlineText=new i(e.links,g({},this.options,{renderer:new a}));this.tokens=e.reverse();var t="";for(;this.next();)t+=this.tok();return t};s.prototype.next=function(){return this.token=this.tokens.pop()};s.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0};s.prototype.parseText=function(){var e=this.token.text;for(;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)};s.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,l(this.inlineText.output(this.token.text)));case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e="",t="",n,r,i,o;i="";for(n=0;n<this.token.header.length;n++)i+=this.renderer.tablecell(this.inline.output(this.token.header[n]),{header:!0,align:this.token.align[n]});e+=this.renderer.tablerow(i);for(n=0;n<this.token.cells.length;n++){r=this.token.cells[n];i="";for(o=0;o<r.length;o++)i+=this.renderer.tablecell(this.inline.output(r[o]),{header:!1,align:this.token.align[o]});t+=this.renderer.tablerow(i)}return this.renderer.table(e,t);case"blockquote_start":t="";for(;"blockquote_end"!==this.next().type;)t+=this.tok();return this.renderer.blockquote(t);case"list_start":t="";var a=this.token.ordered,s=this.token.start;for(;"list_end"!==this.next().type;)t+=this.tok();return this.renderer.list(t,a,s);case"list_item_start":t="";var u=this.token.loose;this.token.task&&(t+=this.renderer.checkbox(this.token.checked));for(;"list_item_end"!==this.next().type;)t+=u||"text"!==this.token.type?this.tok():this.parseText();return this.renderer.listitem(t);case"html":return this.renderer.html(this.token.text);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}};function u(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,function(e,t){if("colon"===(t=t.toLowerCase()))return":";if("#"===t.charAt(0))return"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1));return""})}function c(e,t){e=e.source||e;t=t||"";return{replace:function(t,n){n=(n=n.source||n).replace(/(^|[^\[])\^/g,"$1");e=e.replace(t,n);return this},getRegex:function(){return new RegExp(e,t)}}}function d(e,t){h[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?h[" "+e]=e+"/":h[" "+e]=m(e,"/",!0));e=h[" "+e];return"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}var h={};var f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function p(){}p.exec=p;function g(e){var t=1,n,r;for(;t<arguments.length;t++){n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}function v(e,t){var n,r=e.replace(/\|/g,function(e,t,n){var r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(/ \|/),i=0;if(r.length>t)r.splice(t);else for(;r.length<t;)r.push("");for(;i<r.length;i++)r[i]=r[i].trim().replace(/\\\|/g,"|");return r}function m(e,t,n){if(0===e.length)return"";var r=0;for(;r<e.length;){var i=e.charAt(e.length-r-1);if(i!==t||n){if(i===t||!n)break;r++}else r++}return e.substr(0,e.length-r)}function _(e,t,r){if(void 0===e||null===e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(r||"function"==typeof t){if(!r){r=t;t=null}var i=(t=g({},_.defaults,t||{})).highlight,o,a,l=0;try{o=n.lex(e,t)}catch(e){return r(e)}a=o.length;var c=function(e){if(e){t.highlight=i;return r(e)}var n;try{n=s.parse(o,t)}catch(t){e=t}t.highlight=i;return e?r(e):r(null,n)};if(!i||i.length<3)return c();delete t.highlight;if(!a)return c();for(;l<o.length;l++)!function(e){if("code"!==e.type)return--a||c();i(e.text,e.lang,function(t,n){if(t)return c(t);if(null==n||n===e.text)return--a||c();e.text=n;e.escaped=!0;--a||c()})}(o[l]);return}try{t&&(t=g({},_.defaults,t));return s.parse(n.lex(e,t),t)}catch(e){e.message+="\nPlease report this to https://github.com/markedjs/marked.";if((t||_.defaults).silent)return"<p>An error occurred:</p><pre>"+u(e.message+"",!0)+"</pre>";throw e}}_.options=_.setOptions=function(e){g(_.defaults,e);return _};_.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new o,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tables:!0,xhtml:!1}};_.defaults=_.getDefaults();_.Parser=s;_.parser=s.parse;_.Renderer=o;_.TextRenderer=a;_.Lexer=n;_.lexer=n.lex;_.InlineLexer=i;_.inlineLexer=i.output;_.parse=_;ge=_}).call(void 0);var ve=ge;var me=ge.Parser;var _e=ge.parser;var ye=ge.Renderer;var be=ge.TextRenderer;var Ce=ge.Lexer;var we=ge.lexer;var Se=ge.InlineLexer;var Le=ge.inlineLexer;var Ie=ge.parse;function xe(e){var t=e.inline?"span":"div";var n=document.createElement(t);e.className&&(n.className=e.className);return n}function Ne(e,t){void 0===t&&(t={});var n=xe(t);n.textContent=e;return n}function Me(e,t){void 0===t&&(t={});var n=xe(t);Oe(n,Ee(e),t.actionHandler);return n}function De(e,t){void 0===t&&(t={});var n=xe(t);var r;var i=new Promise(function(e){return r=e});var o=new ye;o.image=function(e,t,n){var r=[];if(e){var i=e.split("|").map(function(e){return e.trim()});e=i[0];var o=i[1];if(o){var a=/height=(\d+)/.exec(o);var s=/width=(\d+)/.exec(o);var u=a?a[1]:"";var l=s?s[1]:"";var c=isFinite(parseInt(l));var d=isFinite(parseInt(u));c&&r.push('width="'+l+'"');d&&r.push('height="'+u+'"')}}var h=[];e&&h.push('src="'+e+'"');n&&h.push('alt="'+n+'"');t&&h.push('title="'+t+'"');r.length&&(h=h.concat(r));return"<img "+h.join(" ")+">"};o.link=function(t,n,r){t===r&&(r=Object(pe["b"])(r));n=Object(pe["b"])(n);return!(t=Object(pe["b"])(t))||t.match(/^data:|javascript:/i)||t.match(/^command:/i)&&!e.isTrusted||t.match(/^command:(\/\/\/)?_workbench\.downloadResource/i)?r:'<a href="#" data-href="'+t+'" title="'+(n||t)+'">'+r+"</a>"};o.paragraph=function(e){return"<p>"+e+"</p>"};t.codeBlockRenderer&&(o.code=function(e,r){var o=t.codeBlockRenderer(r,e);var s=fe.nextId();var u=Promise.all([o,i]).then(function(e){var t=e[0];var r=n.querySelector('div[data-code="'+s+'"]');r&&(r.innerHTML=t)}).catch(function(e){});t.codeBlockRenderCallback&&u.then(t.codeBlockRenderCallback);return'<div class="code" data-code="'+s+'">'+Object(a["k"])(e)+"</div>"});t.actionHandler&&t.actionHandler.disposeables.push(W["j"](n,"click",function(e){var n=e.target;if("A"!==n.tagName&&(!(n=n.parentElement)||"A"!==n.tagName))return;try{var r=n.dataset["href"];r&&t.actionHandler.callback(r,e)}catch(e){Object(ue["d"])(e)}finally{e.preventDefault()}}));var s={sanitize:!0,renderer:o};n.innerHTML=Ie(e.value,s);r();return n}var ke=function(){function e(e){this.source=e;this.index=0}e.prototype.eos=function(){return this.index>=this.source.length};e.prototype.next=function(){var e=this.peek();this.advance();return e};e.prototype.peek=function(){return this.source[this.index]};e.prototype.advance=function(){this.index++};return e}();function Oe(e,t,n){var r;if(2===t.type)r=document.createTextNode(t.content||"");else if(3===t.type)r=document.createElement("b");else if(4===t.type)r=document.createElement("i");else if(5===t.type&&n){var i=document.createElement("a");i.href="#";n.disposeables.push(W["j"](i,"click",function(e){n.callback(String(t.index),e)}));r=i}else 7===t.type?r=document.createElement("br"):1===t.type&&(r=e);r&&e!==r&&e.appendChild(r);r&&Array.isArray(t.children)&&t.children.forEach(function(e){Oe(r,e,n)})}function Ee(e){var t={type:1,children:[]};var n=0;var r=t;var i=[];var o=new ke(e);for(;!o.eos();){var a=o.next();var s="\\"===a&&0!==Ae(o.peek());s&&(a=o.next());if(!s&&Te(a)&&a===o.peek()){o.advance();2===r.type&&(r=i.pop());var u=Ae(a);if(r.type===u||5===r.type&&6===u)r=i.pop();else{var l={type:u,children:[]};if(5===u){l.index=n;n++}r.children.push(l);i.push(r);r=l}}else if("\n"===a){2===r.type&&(r=i.pop());r.children.push({type:7})}else if(2!==r.type){var c={type:2,content:a};r.children.push(c);i.push(r);r=c}else r.content+=a}2===r.type&&(r=i.pop());i.length;return t}function Te(e){return 0!==Ae(e)}function Ae(e){switch(e){case"*":return 3;case"_":return 4;case"[":return 5;case"]":return 6;default:return 0}}var Re=n("E6CA");var Pe=n("m0dU");var je=n("3Yp8");var We=function(){function e(e,t){void 0===e&&(e=[]);void 0===t&&(t=10);this._initialize(e);this._limit=t;this._onChange()}e.prototype.add=function(e){this._history.delete(e);this._history.add(e);this._onChange()};e.prototype.next=function(){return this._navigator.next()};e.prototype.previous=function(){return this._navigator.previous()};e.prototype.current=function(){return this._navigator.current()};e.prototype.parent=function(){return null};e.prototype.first=function(){return this._navigator.first()};e.prototype.last=function(){return this._navigator.last()};e.prototype.has=function(e){return this._history.has(e)};e.prototype._onChange=function(){this._reduceToLimit();this._navigator=new je["b"](this._elements,0,this._elements.length,this._elements.length)};e.prototype._reduceToLimit=function(){var e=this._elements;e.length>this._limit&&this._initialize(e.slice(e.length-this._limit))};e.prototype._initialize=function(e){this._history=new Set;for(var t=0,n=e;t<n.length;t++){var r=n[t];this._history.add(r)}};Object.defineProperty(e.prototype,"_elements",{get:function(){var e=[];this._history.forEach(function(t){return e.push(t)});return e},enumerable:!0,configurable:!0});return e}();var Fe=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var ze=W["a"];var Ve={inputBackground:V["a"].fromHex("#3C3C3C"),inputForeground:V["a"].fromHex("#CCCCCC"),inputValidationInfoBorder:V["a"].fromHex("#55AAFF"),inputValidationInfoBackground:V["a"].fromHex("#063B49"),inputValidationWarningBorder:V["a"].fromHex("#B89500"),inputValidationWarningBackground:V["a"].fromHex("#352A05"),inputValidationErrorBorder:V["a"].fromHex("#BE1100"),inputValidationErrorBackground:V["a"].fromHex("#5A1D1D")};var Be;var He=function(e){Fe(t,e);function t(t,n,r){var i=e.call(this,t,n,r)||this;i.history=new We(r.history,100);return i}t.prototype.addToHistory=function(){this.value&&this.value!==this.getCurrentValue()&&this.history.add(this.value)};t.prototype.showNextValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getNextValue();e&&(e=e===this.value?this.getNextValue():e);if(e){this.value=e;Re["c"](this.value)}};t.prototype.showPreviousValue=function(){this.history.has(this.value)||this.addToHistory();var e=this.getPreviousValue();e&&(e=e===this.value?this.getPreviousValue():e);if(e){this.value=e;Re["c"](this.value)}};t.prototype.getCurrentValue=function(){var e=this.history.current();if(!e){e=this.history.last();this.history.next()}return e};t.prototype.getPreviousValue=function(){return this.history.previous()||this.history.first()};t.prototype.getNextValue=function(){return this.history.next()||this.history.last()};return t}(function(e){Fe(t,e);function t(t,n,r){var i=e.call(this)||this;i.state="idle";i._onDidChange=i._register(new B["a"]);i.onDidChange=i._onDidChange.event;i._onDidHeightChange=i._register(new B["a"]);i.contextViewProvider=n;i.options=r||Object.create(null);Object(H["e"])(i.options,Ve,!1);i.message=null;i.cachedHeight=null;i.placeholder=i.options.placeholder||"";i.ariaLabel=i.options.ariaLabel||"";i.inputBackground=i.options.inputBackground;i.inputForeground=i.options.inputForeground;i.inputBorder=i.options.inputBorder;i.inputValidationInfoBorder=i.options.inputValidationInfoBorder;i.inputValidationInfoBackground=i.options.inputValidationInfoBackground;i.inputValidationInfoForeground=i.options.inputValidationInfoForeground;i.inputValidationWarningBorder=i.options.inputValidationWarningBorder;i.inputValidationWarningBackground=i.options.inputValidationWarningBackground;i.inputValidationWarningForeground=i.options.inputValidationWarningForeground;i.inputValidationErrorBorder=i.options.inputValidationErrorBorder;i.inputValidationErrorBackground=i.options.inputValidationErrorBackground;i.inputValidationErrorForeground=i.options.inputValidationErrorForeground;i.options.validationOptions&&(i.validation=i.options.validationOptions.validation);i.element=W["k"](t,ze(".monaco-inputbox.idle"));var o=i.options.flexibleHeight?"textarea":"input";var a=W["k"](i.element,ze(".wrapper"));i.input=W["k"](a,ze(o+".input"));i.input.setAttribute("autocorrect","off");i.input.setAttribute("autocapitalize","off");i.input.setAttribute("spellcheck","false");i.onfocus(i.input,function(){return W["e"](i.element,"synthetic-focus")});i.onblur(i.input,function(){return W["E"](i.element,"synthetic-focus")});if(i.options.flexibleHeight)i.mirror=W["k"](a,ze("div.mirror"));else{i.input.type=i.options.type||"text";i.input.setAttribute("wrap","off")}i.ariaLabel&&i.input.setAttribute("aria-label",i.ariaLabel);i.placeholder&&i.setPlaceHolder(i.placeholder);i.oninput(i.input,function(){return i.onValueChange()});i.onblur(i.input,function(){return i.onBlur()});i.onfocus(i.input,function(){return i.onFocus()});i.placeholder&&de["k"]&&i.onclick(i.input,function(e){W["b"].stop(e,!0);i.input.focus()});setTimeout(function(){if(!i.input)return;i.updateMirror()},0);if(i.options.actions){i.actionbar=i._register(new Pe["a"](i.element));i.actionbar.push(i.options.actions,{icon:!0,label:!1})}i.applyStyles();return i}t.prototype.onBlur=function(){this._hideMessage()};t.prototype.onFocus=function(){this._showMessage()};t.prototype.setPlaceHolder=function(e){if(this.input){this.input.setAttribute("placeholder",e);this.input.title=e}};t.prototype.setAriaLabel=function(e){this.ariaLabel=e;this.input&&(e?this.input.setAttribute("aria-label",this.ariaLabel):this.input.removeAttribute("aria-label"))};Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.input},enumerable:!0,configurable:!0});Object.defineProperty(t.prototype,"value",{get:function(){return this.input.value},set:function(e){if(this.input.value!==e){this.input.value=e;this.onValueChange()}},enumerable:!0,configurable:!0});t.prototype.focus=function(){this.input.focus()};t.prototype.blur=function(){this.input.blur()};t.prototype.hasFocus=function(){return document.activeElement===this.input};t.prototype.select=function(e){void 0===e&&(e=null);this.input.select();e&&this.input.setSelectionRange(e.start,e.end)};t.prototype.enable=function(){this.input.removeAttribute("disabled")};t.prototype.disable=function(){this.input.disabled=!0;this._hideMessage()};t.prototype.setEnabled=function(e){e?this.enable():this.disable()};Object.defineProperty(t.prototype,"width",{get:function(){return W["x"](this.input)},set:function(e){this.input.style.width=e+"px"},enumerable:!0,configurable:!0});t.prototype.showMessage=function(e,t){this.message=e;W["E"](this.element,"idle");W["E"](this.element,"info");W["E"](this.element,"warning");W["E"](this.element,"error");W["e"](this.element,this.classForType(e.type));var n=this.stylesForType(this.message.type);this.element.style.border=n.border?"1px solid "+n.border:null;var i;i=3===e.type?r["a"]("alertErrorMessage","Error: {0}",e.content):2===e.type?r["a"]("alertWarningMessage","Warning: {0}",e.content):r["a"]("alertInfoMessage","Info: {0}",e.content);Re["a"](i);(this.hasFocus()||t)&&this._showMessage()};t.prototype.hideMessage=function(){this.message=null;W["E"](this.element,"info");W["E"](this.element,"warning");W["E"](this.element,"error");W["e"](this.element,"idle");this._hideMessage();this.applyStyles()};t.prototype.validate=function(){var e=null;if(this.validation)if(e=this.validation(this.value)){this.inputElement.setAttribute("aria-invalid","true");this.showMessage(e)}else if(this.inputElement.hasAttribute("aria-invalid")){this.inputElement.removeAttribute("aria-invalid");this.hideMessage()}return!e};t.prototype.stylesForType=function(e){switch(e){case 1:return{border:this.inputValidationInfoBorder,background:this.inputValidationInfoBackground,foreground:this.inputValidationInfoForeground};case 2:return{border:this.inputValidationWarningBorder,background:this.inputValidationWarningBackground,foreground:this.inputValidationWarningForeground};default:return{border:this.inputValidationErrorBorder,background:this.inputValidationErrorBackground,foreground:this.inputValidationErrorForeground}}};t.prototype.classForType=function(e){switch(e){case 1:return"info";case 2:return"warning";default:return"error"}};t.prototype._showMessage=function(){var e=this;if(!this.contextViewProvider||!this.message)return;var t;var n=function(){return t.style.width=W["x"](e.element)+"px"};this.state="open";this.contextViewProvider.showContextView({getAnchor:function(){return e.element},anchorAlignment:1,render:function(r){t=W["k"](r,ze(".monaco-inputbox-container"));n();var i={inline:!0,className:"monaco-inputbox-message"};var o=e.message.formatContent?Me(e.message.content,i):Ne(e.message.content,i);W["e"](o,e.classForType(e.message.type));var a=e.stylesForType(e.message.type);o.style.backgroundColor=a.background?a.background.toString():null;o.style.color=a.foreground?a.foreground.toString():null;o.style.border=a.border?"1px solid "+a.border:null;W["k"](t,o);return null},layout:n})};t.prototype._hideMessage=function(){if(!this.contextViewProvider||"open"!==this.state)return;this.state="idle";this.contextViewProvider.hideContextView()};t.prototype.onValueChange=function(){this._onDidChange.fire(this.value);this.validate();this.updateMirror();"open"===this.state&&this.contextViewProvider.layout()};t.prototype.updateMirror=function(){if(!this.mirror)return;var e=this.value||this.placeholder;var t;var n=10===e.charCodeAt(e.length-1)?" ":"";this.mirror.textContent=e+n;this.layout()};t.prototype.style=function(e){this.inputBackground=e.inputBackground;this.inputForeground=e.inputForeground;this.inputBorder=e.inputBorder;this.inputValidationInfoBackground=e.inputValidationInfoBackground;this.inputValidationInfoForeground=e.inputValidationInfoForeground;this.inputValidationInfoBorder=e.inputValidationInfoBorder;this.inputValidationWarningBackground=e.inputValidationWarningBackground;this.inputValidationWarningForeground=e.inputValidationWarningForeground;this.inputValidationWarningBorder=e.inputValidationWarningBorder;this.inputValidationErrorBackground=e.inputValidationErrorBackground;this.inputValidationErrorForeground=e.inputValidationErrorForeground;this.inputValidationErrorBorder=e.inputValidationErrorBorder;this.applyStyles()};t.prototype.applyStyles=function(){if(this.element){var e=this.inputBackground?this.inputBackground.toString():null;var t=this.inputForeground?this.inputForeground.toString():null;var n=this.inputBorder?this.inputBorder.toString():null;this.element.style.backgroundColor=e;this.element.style.color=t;this.input.style.backgroundColor=e;this.input.style.color=t;this.element.style.borderWidth=n?"1px":null;this.element.style.borderStyle=n?"solid":null;this.element.style.borderColor=n}};t.prototype.layout=function(){if(!this.mirror)return;var e=this.cachedHeight;this.cachedHeight=W["w"](this.mirror);if(e!==this.cachedHeight){this.input.style.height=this.cachedHeight+"px";this._onDidHeightChange.fire(this.cachedHeight)}};t.prototype.dispose=function(){this._hideMessage();this.element=null;this.input=null;this.contextViewProvider=null;this.message=null;this.placeholder=null;this.ariaLabel=null;this.validation=null;this.state=null;this.actionbar=null;e.prototype.dispose.call(this)};return t}(z["a"]));var Ue=n("7hnm");var Ze=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Ge=r["a"]("defaultLabel","input");var Ye=function(e){Ze(t,e);function t(t,n,r,i){var o=e.call(this)||this;o._showOptionButtons=r;o.fixFocusOnOptionClickEnabled=!0;o._onDidOptionChange=o._register(new B["a"]);o.onDidOptionChange=o._onDidOptionChange.event;o._onKeyDown=o._register(new B["a"]);o.onKeyDown=o._onKeyDown.event;o._onMouseDown=o._register(new B["a"]);o.onMouseDown=o._onMouseDown.event;o._onInput=o._register(new B["a"]);o._onKeyUp=o._register(new B["a"]);o._onCaseSensitiveKeyDown=o._register(new B["a"]);o.onCaseSensitiveKeyDown=o._onCaseSensitiveKeyDown.event;o._onRegexKeyDown=o._register(new B["a"]);o._lastHighlightFindOptions=0;o.contextViewProvider=n;o.width=i.width||100;o.placeholder=i.placeholder||"";o.validation=i.validation;o.label=i.label||Ge;o.inputActiveOptionBorder=i.inputActiveOptionBorder;o.inputBackground=i.inputBackground;o.inputForeground=i.inputForeground;o.inputBorder=i.inputBorder;o.inputValidationInfoBorder=i.inputValidationInfoBorder;o.inputValidationInfoBackground=i.inputValidationInfoBackground;o.inputValidationInfoForeground=i.inputValidationInfoForeground;o.inputValidationWarningBorder=i.inputValidationWarningBorder;o.inputValidationWarningBackground=i.inputValidationWarningBackground;o.inputValidationWarningForeground=i.inputValidationWarningForeground;o.inputValidationErrorBorder=i.inputValidationErrorBorder;o.inputValidationErrorBackground=i.inputValidationErrorBackground;o.inputValidationErrorForeground=i.inputValidationErrorForeground;o.regex=null;o.wholeWords=null;o.caseSensitive=null;o.domNode=null;o.inputBox=null;o.buildDomNode(i.appendCaseSensitiveLabel||"",i.appendWholeWordsLabel||"",i.appendRegexLabel||"",i.history);Boolean(t)&&t.appendChild(o.domNode);o.onkeydown(o.inputBox.inputElement,function(e){return o._onKeyDown.fire(e)});o.onkeyup(o.inputBox.inputElement,function(e){return o._onKeyUp.fire(e)});o.oninput(o.inputBox.inputElement,function(e){return o._onInput.fire()});o.onmousedown(o.inputBox.inputElement,function(e){return o._onMouseDown.fire(e)});return o}t.prototype.enable=function(){W["E"](this.domNode,"disabled");this.inputBox.enable();this.regex.enable();this.wholeWords.enable();this.caseSensitive.enable()};t.prototype.disable=function(){W["e"](this.domNode,"disabled");this.inputBox.disable();this.regex.disable();this.wholeWords.disable();this.caseSensitive.disable()};t.prototype.setFocusInputOnOptionClick=function(e){this.fixFocusOnOptionClickEnabled=e};t.prototype.setEnabled=function(e){e?this.enable():this.disable()};t.prototype.getValue=function(){return this.inputBox.value};t.prototype.setValue=function(e){this.inputBox.value!==e&&(this.inputBox.value=e)};t.prototype.style=function(e){this.inputActiveOptionBorder=e.inputActiveOptionBorder;this.inputBackground=e.inputBackground;this.inputForeground=e.inputForeground;this.inputBorder=e.inputBorder;this.inputValidationInfoBackground=e.inputValidationInfoBackground;this.inputValidationInfoForeground=e.inputValidationInfoForeground;this.inputValidationInfoBorder=e.inputValidationInfoBorder;this.inputValidationWarningBackground=e.inputValidationWarningBackground;this.inputValidationWarningForeground=e.inputValidationWarningForeground;this.inputValidationWarningBorder=e.inputValidationWarningBorder;this.inputValidationErrorBackground=e.inputValidationErrorBackground;this.inputValidationErrorForeground=e.inputValidationErrorForeground;this.inputValidationErrorBorder=e.inputValidationErrorBorder;this.applyStyles()};t.prototype.applyStyles=function(){if(this.domNode){var e={inputActiveOptionBorder:this.inputActiveOptionBorder};this.regex.style(e);this.wholeWords.style(e);this.caseSensitive.style(e);var t={inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder};this.inputBox.style(t)}};t.prototype.select=function(){this.inputBox.select()};t.prototype.focus=function(){this.inputBox.focus()};t.prototype.getCaseSensitive=function(){return this.caseSensitive.checked};t.prototype.setCaseSensitive=function(e){this.caseSensitive.checked=e;this.setInputWidth()};t.prototype.getWholeWords=function(){return this.wholeWords.checked};t.prototype.setWholeWords=function(e){this.wholeWords.checked=e;this.setInputWidth()};t.prototype.getRegex=function(){return this.regex.checked};t.prototype.setRegex=function(e){this.regex.checked=e;this.setInputWidth();this.validate()};t.prototype.focusOnCaseSensitive=function(){this.caseSensitive.focus()};t.prototype.highlightFindOptions=function(){W["E"](this.domNode,"highlight-"+this._lastHighlightFindOptions);this._lastHighlightFindOptions=1-this._lastHighlightFindOptions;W["e"](this.domNode,"highlight-"+this._lastHighlightFindOptions)};t.prototype.setInputWidth=function(){var e=this.width-this.caseSensitive.width()-this.wholeWords.width()-this.regex.width();this.inputBox.width=e};t.prototype.buildDomNode=function(e,t,n,r){var i=this;this.domNode=document.createElement("div");this.domNode.style.width=this.width+"px";W["e"](this.domNode,"monaco-findInput");this.inputBox=this._register(new He(this.domNode,this.contextViewProvider,{placeholder:this.placeholder||"",ariaLabel:this.label||"",validationOptions:{validation:this.validation||null},inputBackground:this.inputBackground,inputForeground:this.inputForeground,inputBorder:this.inputBorder,inputValidationInfoBackground:this.inputValidationInfoBackground,inputValidationInfoForeground:this.inputValidationInfoForeground,inputValidationInfoBorder:this.inputValidationInfoBorder,inputValidationWarningBackground:this.inputValidationWarningBackground,inputValidationWarningForeground:this.inputValidationWarningForeground,inputValidationWarningBorder:this.inputValidationWarningBorder,inputValidationErrorBackground:this.inputValidationErrorBackground,inputValidationErrorForeground:this.inputValidationErrorForeground,inputValidationErrorBorder:this.inputValidationErrorBorder,history:r}));this.regex=this._register(new te({appendTitle:n,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder}));this._register(this.regex.onChange(function(e){i._onDidOptionChange.fire(e);!e&&i.fixFocusOnOptionClickEnabled&&i.inputBox.focus();i.setInputWidth();i.validate()}));this._register(this.regex.onKeyDown(function(e){i._onRegexKeyDown.fire(e)}));this.wholeWords=this._register(new ee({appendTitle:t,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder}));this._register(this.wholeWords.onChange(function(e){i._onDidOptionChange.fire(e);!e&&i.fixFocusOnOptionClickEnabled&&i.inputBox.focus();i.setInputWidth();i.validate()}));this.caseSensitive=this._register(new $({appendTitle:e,isChecked:!1,inputActiveOptionBorder:this.inputActiveOptionBorder}));this._register(this.caseSensitive.onChange(function(e){i._onDidOptionChange.fire(e);!e&&i.fixFocusOnOptionClickEnabled&&i.inputBox.focus();i.setInputWidth();i.validate()}));this._register(this.caseSensitive.onKeyDown(function(e){i._onCaseSensitiveKeyDown.fire(e)}));var o=[this.caseSensitive.domNode,this.wholeWords.domNode,this.regex.domNode];this.onkeydown(this.domNode,function(e){if(e.equals(15)||e.equals(17)||e.equals(9)){var t=o.indexOf(document.activeElement);if(t>=0){var n=void 0;e.equals(17)?n=(t+1)%o.length:e.equals(15)&&(n=0===t?o.length-1:t-1);e.equals(9)?o[t].blur():n>=0&&o[n].focus();W["b"].stop(e,!0)}}});this.setInputWidth();var a=document.createElement("div");a.className="controls";a.style.display=this._showOptionButtons?"block":"none";a.appendChild(this.caseSensitive.domNode);a.appendChild(this.wholeWords.domNode);a.appendChild(this.regex.domNode);this.domNode.appendChild(a)};t.prototype.validate=function(){this.inputBox.validate()};t.prototype.clearMessage=function(){this.inputBox.hideMessage()};t.prototype.dispose=function(){e.prototype.dispose.call(this)};return t}(z["a"]);function Ke(e,t,n){new x["f"](n,t).bindTo(e)}function Qe(e,t){return e.createScoped(t.target)}function qe(e,t){return e.getContext(document.activeElement).getValue(t)}var Je=n("vMMm");var Xe=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var $e=function(e,t,n,r){var i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};var et=function(e,t){return function(n,r){t(n,r,e)}};var tt="historyNavigationWidget";var nt="historyNavigationEnabled";function rt(e,t){var n=Qe(e,t);Ke(n,t,tt);var r;return{scopedContextKeyService:n,historyNavigationEnablement:new x["f"](nt,!0).bindTo(n)}}var it=function(e){Xe(t,e);function t(t,n,r,i){var o=e.call(this,t,n,r)||this;o._register(rt(i,{target:o.element,historyNavigator:o}).scopedContextKeyService);return o}return t=$e([et(3,x["e"])],t)}(He);var ot=function(e){Xe(t,e);function t(t,n,r,i,o){void 0===o&&(o=!1);var a=e.call(this,t,n,o,r)||this;a._register(rt(i,{target:a.inputBox.element,historyNavigator:a.inputBox}).scopedContextKeyService);return a}return t=$e([et(3,x["e"])],t)}(Ye);Je["a"].registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:x["d"].and(new x["b"](tt),new x["c"](nt,!0)),primary:16,secondary:[528],handler:function(e,t){var n;qe(e.get(x["e"]),tt).historyNavigator.showPreviousValue()}});Je["a"].registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:new x["a"]([new x["b"](tt),new x["c"](nt,!0)]),primary:18,secondary:[530],handler:function(e,t){var n;qe(e.get(x["e"]),tt).historyNavigator.showNextValue()}});var at=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var st=r["a"]("label.find","Find");var ut=r["a"]("placeholder.find","Find");var lt=r["a"]("label.previousMatchButton","Previous match");var ct=r["a"]("label.nextMatchButton","Next match");var dt=r["a"]("label.toggleSelectionFind","Find in selection");var ht=r["a"]("label.closeButton","Close");var ft=r["a"]("label.replace","Replace");var pt=r["a"]("placeholder.replace","Replace");var gt=r["a"]("label.replaceButton","Replace");var vt=r["a"]("label.replaceAllButton","Replace All");var mt=r["a"]("label.toggleReplaceButton","Toggle Replace mode");var _t=r["a"]("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",19999);var yt=r["a"]("label.matchesLocation","{0} of {1}");var bt=r["a"]("label.noResults","No Results");var Ct=411;var wt=275;var St=221;var Lt=221;var It=69;var xt=17+(It+3+1)+92+2;var Nt=34;var Mt=64;var Dt=function(){function e(e){this.afterLineNumber=e;this.heightInPx=Nt;this.suppressMouseDown=!1;this.domNode=document.createElement("div");this.domNode.className="dock-find-viewzone"}return e}();var kt=function(e){at(t,e);function t(t,n,r,a,s,u,l){var c=e.call(this)||this;c._codeEditor=t;c._controller=n;c._state=r;c._contextViewProvider=a;c._keybindingService=s;c._contextKeyService=u;c._isVisible=!1;c._isReplaceVisible=!1;c._ignoreChangeEvent=!1;c._updateHistoryDelayer=new i["a"](500);c._register(Object(o["e"])(function(){return c._updateHistoryDelayer.cancel()}));c._register(c._state.onFindReplaceStateChange(function(e){return c._onStateChanged(e)}));c._buildDomNode();c._updateButtons();c._tryUpdateWidgetWidth();c._register(c._codeEditor.onDidChangeConfiguration(function(e){if(e.readOnly){c._codeEditor.getConfiguration().readOnly&&c._state.change({isReplaceRevealed:!1},!1);c._updateButtons()}e.layoutInfo&&c._tryUpdateWidgetWidth();e.accessibilitySupport&&c.updateAccessibilitySupport()}));c.updateAccessibilitySupport();c._register(c._codeEditor.onDidChangeCursorSelection(function(){c._isVisible&&c._updateToggleSelectionFindButton()}));c._register(c._codeEditor.onDidFocusEditorWidget(function(){if(c._isVisible){var e=c._controller.getGlobalBufferTerm();if(e&&e!==c._state.searchString){c._state.change({searchString:e},!0);c._findInput.select()}}}));c._findInputFocused=M.bindTo(u);c._findFocusTracker=c._register(W["O"](c._findInput.inputBox.inputElement));c._register(c._findFocusTracker.onDidFocus(function(){c._findInputFocused.set(!0);c._updateSearchScope()}));c._register(c._findFocusTracker.onDidBlur(function(){c._findInputFocused.set(!1)}));c._replaceInputFocused=D.bindTo(u);c._replaceFocusTracker=c._register(W["O"](c._replaceInputBox.inputElement));c._register(c._replaceFocusTracker.onDidFocus(function(){c._replaceInputFocused.set(!0);c._updateSearchScope()}));c._register(c._replaceFocusTracker.onDidBlur(function(){c._replaceInputFocused.set(!1)}));c._codeEditor.addOverlayWidget(c);c._viewZone=new Dt(0);c._applyTheme(l.getTheme());c._register(l.onThemeChange(c._applyTheme.bind(c)));c._register(c._codeEditor.onDidChangeModel(function(){if(!c._isVisible)return;if(void 0===c._viewZoneId)return;c._codeEditor.changeViewZones(function(e){e.removeZone(c._viewZoneId);c._viewZoneId=void 0})}));c._register(c._codeEditor.onDidScrollChange(function(e){if(e.scrollTopChanged){c._layoutViewZone();return}setTimeout(function(){c._layoutViewZone()},0)}));return c}t.prototype.getId=function(){return t.ID};t.prototype.getDomNode=function(){return this._domNode};t.prototype.getPosition=function(){if(this._isVisible)return{preference:0};return null};t.prototype._onStateChanged=function(e){if(e.searchString){try{this._ignoreChangeEvent=!0;this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}e.replaceString&&(this._replaceInputBox.value=this._state.replaceString);e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0));if(e.isReplaceRevealed)if(this._state.isReplaceRevealed){if(!this._codeEditor.getConfiguration().readOnly&&!this._isReplaceVisible){this._isReplaceVisible=!0;this._replaceInputBox.width=this._findInput.inputBox.width;this._updateButtons()}}else if(this._isReplaceVisible){this._isReplaceVisible=!1;this._updateButtons()}e.isRegex&&this._findInput.setRegex(this._state.isRegex);e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord);e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase);if(e.searchScope){this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1;this._updateToggleSelectionFindButton()}if(e.searchString||e.matchesCount||e.matchesPosition){var t=this._state.searchString.length>0&&0===this._state.matchesCount;W["N"](this._domNode,"no-results",t);this._updateMatchesCount();this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone();e.updateHistory&&this._delayedUpdateHistory()};t.prototype._delayedUpdateHistory=function(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this))};t.prototype._updateHistory=function(){this._state.searchString&&this._findInput.inputBox.addToHistory();this._state.replaceString&&this._replaceInputBox.addToHistory()};t.prototype._updateMatchesCount=function(){this._matchesCount.style.minWidth=It+"px";this._state.matchesCount>=19999?this._matchesCount.title=_t:this._matchesCount.title="";this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);var e;if(this._state.matchesCount>0){var t=String(this._state.matchesCount);this._state.matchesCount>=19999&&(t+="+");var n=String(this._state.matchesPosition);"0"===n&&(n="?");e=a["n"](yt,n,t)}else e=bt;this._matchesCount.appendChild(document.createTextNode(e));It=Math.max(It,this._matchesCount.clientWidth)};t.prototype._updateToggleSelectionFindButton=function(){var e=this._codeEditor.getSelection();var t=!!e&&(e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn);var n=this._toggleSelectionFind.checked;this._toggleSelectionFind.setEnabled(this._isVisible&&(n||t))};t.prototype._updateButtons=function(){this._findInput.setEnabled(this._isVisible);this._replaceInputBox.setEnabled(this._isVisible&&this._isReplaceVisible);this._updateToggleSelectionFindButton();this._closeBtn.setEnabled(this._isVisible);var e=this._state.searchString.length>0;var t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t);this._nextBtn.setEnabled(this._isVisible&&e&&t);this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e);this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e);W["N"](this._domNode,"replaceToggled",this._isReplaceVisible);this._toggleReplaceBtn.toggleClass("collapse",!this._isReplaceVisible);this._toggleReplaceBtn.toggleClass("expand",this._isReplaceVisible);this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);var n=!this._codeEditor.getConfiguration().readOnly;this._toggleReplaceBtn.setEnabled(this._isVisible&&n)};t.prototype._reveal=function(){var e=this;if(!this._isVisible){this._isVisible=!0;var t=this._codeEditor.getSelection();var n;!!t&&(t.startLineNumber!==t.endLineNumber||t.startColumn!==t.endColumn)&&this._codeEditor.getConfiguration().contribInfo.find.autoFindInSelection?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1;this._tryUpdateWidgetWidth();this._updateButtons();setTimeout(function(){W["e"](e._domNode,"visible");e._domNode.setAttribute("aria-hidden","false")},0);setTimeout(function(){e._findInput.validate()},200);this._codeEditor.layoutOverlayWidget(this);var r=!0;if(this._codeEditor.getConfiguration().contribInfo.find.seedSearchStringFromSelection&&t){var i=W["t"](this._codeEditor.getDomNode());var o=this._codeEditor.getScrolledVisiblePosition(t.getStartPosition());var a=i.left+o.left;var s;if(o.top<this._viewZone.heightInPx){t.endLineNumber>t.startLineNumber&&(r=!1);var u=W["v"](this._domNode).left;a>u&&(r=!1);var l=this._codeEditor.getScrolledVisiblePosition(t.getEndPosition());var c;i.left+l.left>u&&(r=!1)}}this._showViewZone(r)}};t.prototype._hide=function(e){var t=this;if(this._isVisible){this._isVisible=!1;this._updateButtons();W["E"](this._domNode,"visible");this._domNode.setAttribute("aria-hidden","true");this._findInput.clearMessage();e&&this._codeEditor.focus();this._codeEditor.layoutOverlayWidget(this);this._codeEditor.changeViewZones(function(e){if(void 0!==t._viewZoneId){e.removeZone(t._viewZoneId);t._viewZoneId=void 0;t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()-t._viewZone.heightInPx)}})}};t.prototype._layoutViewZone=function(){var e=this;if(!this._isVisible)return;if(void 0!==this._viewZoneId)return;this._codeEditor.changeViewZones(function(t){e._state.isReplaceRevealed?e._viewZone.heightInPx=64:e._viewZone.heightInPx=Nt;e._viewZoneId=t.addZone(e._viewZone);e._codeEditor.setScrollTop(e._codeEditor.getScrollTop()+e._viewZone.heightInPx)})};t.prototype._showViewZone=function(e){var t=this;void 0===e&&(e=!0);if(!this._isVisible)return;this._codeEditor.changeViewZones(function(n){var r=Nt;if(void 0!==t._viewZoneId){if(t._state.isReplaceRevealed){t._viewZone.heightInPx=64;r=64-Nt}else{t._viewZone.heightInPx=Nt;r=Nt-64}n.removeZone(t._viewZoneId)}else t._viewZone.heightInPx=Nt;t._viewZoneId=n.addZone(t._viewZone);e&&t._codeEditor.setScrollTop(t._codeEditor.getScrollTop()+r)})};t.prototype._applyTheme=function(e){var t={inputActiveOptionBorder:e.getColor(v["D"]),inputBackground:e.getColor(v["E"]),inputForeground:e.getColor(v["G"]),inputBorder:e.getColor(v["F"]),inputValidationInfoBackground:e.getColor(v["K"]),inputValidationInfoForeground:e.getColor(v["M"]),inputValidationInfoBorder:e.getColor(v["L"]),inputValidationWarningBackground:e.getColor(v["N"]),inputValidationWarningForeground:e.getColor(v["P"]),inputValidationWarningBorder:e.getColor(v["O"]),inputValidationErrorBackground:e.getColor(v["H"]),inputValidationErrorForeground:e.getColor(v["J"]),inputValidationErrorBorder:e.getColor(v["I"])};this._findInput.style(t);this._replaceInputBox.style(t)};t.prototype._tryUpdateWidgetWidth=function(){if(!this._isVisible)return;var e=this._codeEditor.getConfiguration().layoutInfo.width;var t=this._codeEditor.getConfiguration().layoutInfo.minimapWidth;var n=!1;var r=!1;var i=!1;if(this._resized){var o;if(W["x"](this._domNode)>411){this._domNode.style.maxWidth=e-28-t-15+"px";this._replaceInputBox.inputElement.style.width=W["x"](this._findInput.inputBox.inputElement)+"px";return}}439+t>=e&&(r=!0);439+t-It>=e&&(i=!0);439+t-It>=e+50&&(n=!0);W["N"](this._domNode,"collapsed-find-widget",n);W["N"](this._domNode,"narrow-find-widget",i);W["N"](this._domNode,"reduced-find-widget",r);i||n||(this._domNode.style.maxWidth=e-28-t-15+"px");if(this._resized){var a=W["x"](this._findInput.inputBox.inputElement);a>0&&(this._replaceInputBox.inputElement.style.width=a+"px")}};t.prototype.focusFindInput=function(){this._findInput.select();this._findInput.focus()};t.prototype.focusReplaceInput=function(){this._replaceInputBox.select();this._replaceInputBox.focus()};t.prototype.highlightFindOptions=function(){this._findInput.highlightFindOptions()};t.prototype._updateSearchScope=function(){if(this._toggleSelectionFind.checked){var e=this._codeEditor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(e.endLineNumber-1)));var t=this._state.currentMatch;e.startLineNumber!==e.endLineNumber&&(d["a"].equalsRange(e,t)||this._state.change({searchScope:e},!0))}};t.prototype._onFindInputMouseDown=function(e){e.middleButton&&e.stopPropagation()};t.prototype._onFindInputKeyDown=function(e){if(e.equals(3)){this._codeEditor.getAction(A.NextMatchFindAction).run().then(null,ue["d"]);e.preventDefault();return}if(e.equals(1027)){this._codeEditor.getAction(A.PreviousMatchFindAction).run().then(null,ue["d"]);e.preventDefault();return}if(e.equals(2)){this._isReplaceVisible?this._replaceInputBox.focus():this._findInput.focusOnCaseSensitive();e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus();e.preventDefault();return}};t.prototype._onReplaceInputKeyDown=function(e){if(e.equals(3)){this._controller.replace();e.preventDefault();return}if(e.equals(2051)){this._controller.replaceAll();e.preventDefault();return}if(e.equals(2)){this._findInput.focusOnCaseSensitive();e.preventDefault();return}if(e.equals(1026)){this._findInput.focus();e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus();e.preventDefault();return}};t.prototype.getHorizontalSashTop=function(e){return 0};t.prototype.getHorizontalSashLeft=function(e){return 0};t.prototype.getHorizontalSashWidth=function(e){return 500};t.prototype._keybindingLabelFor=function(e){var t=this._keybindingService.lookupKeybinding(e);if(!t)return"";return" ("+t.getLabel()+")"};t.prototype._buildFindPart=function(){var e=this;this._findInput=this._register(new ot(null,this._contextViewProvider,{width:221,label:st,placeholder:ut,appendCaseSensitiveLabel:this._keybindingLabelFor(A.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(A.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(A.ToggleRegexCommand),validation:function(t){if(0===t.length)return null;if(!e._findInput.getRegex())return null;try{new RegExp(t);return null}catch(e){return{content:e.message}}}},this._contextKeyService,!0));this._findInput.setRegex(!!this._state.isRegex);this._findInput.setCaseSensitive(!!this._state.matchCase);this._findInput.setWholeWords(!!this._state.wholeWord);this._register(this._findInput.onKeyDown(function(t){return e._onFindInputKeyDown(t)}));this._register(this._findInput.inputBox.onDidChange(function(){if(e._ignoreChangeEvent)return;e._state.change({searchString:e._findInput.getValue()},!0)}));this._register(this._findInput.onDidOptionChange(function(){e._state.change({isRegex:e._findInput.getRegex(),wholeWord:e._findInput.getWholeWords(),matchCase:e._findInput.getCaseSensitive()},!0)}));this._register(this._findInput.onCaseSensitiveKeyDown(function(t){if(t.equals(1026)&&e._isReplaceVisible){e._replaceInputBox.focus();t.preventDefault()}}));le["c"]&&this._register(this._findInput.onMouseDown(function(t){return e._onFindInputMouseDown(t)}));this._matchesCount=document.createElement("div");this._matchesCount.className="matchesCount";this._updateMatchesCount();this._prevBtn=this._register(new Et({label:lt+this._keybindingLabelFor(A.PreviousMatchFindAction),className:"previous",onTrigger:function(){e._codeEditor.getAction(A.PreviousMatchFindAction).run().then(null,ue["d"])}}));this._nextBtn=this._register(new Et({label:ct+this._keybindingLabelFor(A.NextMatchFindAction),className:"next",onTrigger:function(){e._codeEditor.getAction(A.NextMatchFindAction).run().then(null,ue["d"])}}));var t=document.createElement("div");t.className="find-part";t.appendChild(this._findInput.domNode);t.appendChild(this._matchesCount);t.appendChild(this._prevBtn.domNode);t.appendChild(this._nextBtn.domNode);this._toggleSelectionFind=this._register(new Ot({parent:t,title:dt+this._keybindingLabelFor(A.ToggleSearchScopeCommand),onChange:function(){if(e._toggleSelectionFind.checked){var t=e._codeEditor.getSelection();1===t.endColumn&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,e._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1)));t.isEmpty()||e._state.change({searchScope:t},!0)}else e._state.change({searchScope:null},!0)}}));this._closeBtn=this._register(new Et({label:ht+this._keybindingLabelFor(A.CloseFindWidgetCommand),className:"close-fw",onTrigger:function(){e._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:function(t){if(t.equals(2)&&e._isReplaceVisible){e._replaceBtn.isEnabled()?e._replaceBtn.focus():e._codeEditor.focus();t.preventDefault()}}}));t.appendChild(this._closeBtn.domNode);return t};t.prototype._buildReplacePart=function(){var e=this;var t=document.createElement("div");t.className="replace-input";t.style.width="221px";this._replaceInputBox=this._register(new it(t,null,{ariaLabel:ft,placeholder:pt,history:[]},this._contextKeyService));this._register(W["j"](this._replaceInputBox.inputElement,"keydown",function(t){return e._onReplaceInputKeyDown(t)}));this._register(this._replaceInputBox.onDidChange(function(){e._state.change({replaceString:e._replaceInputBox.value},!1)}));this._replaceBtn=this._register(new Et({label:gt+this._keybindingLabelFor(A.ReplaceOneAction),className:"replace",onTrigger:function(){e._controller.replace()},onKeyDown:function(t){if(t.equals(1026)){e._closeBtn.focus();t.preventDefault()}}}));this._replaceAllBtn=this._register(new Et({label:vt+this._keybindingLabelFor(A.ReplaceAllAction),className:"replace-all",onTrigger:function(){e._controller.replaceAll()}}));var n=document.createElement("div");n.className="replace-part";n.appendChild(t);n.appendChild(this._replaceBtn.domNode);n.appendChild(this._replaceAllBtn.domNode);return n};t.prototype._buildDomNode=function(){var e=this;var t=this._buildFindPart();var n=this._buildReplacePart();this._toggleReplaceBtn=this._register(new Et({label:mt,className:"toggle left",onTrigger:function(){e._state.change({isReplaceRevealed:!e._isReplaceVisible},!1);e._isReplaceVisible&&(e._replaceInputBox.width=e._findInput.inputBox.width);e._showViewZone()}}));this._toggleReplaceBtn.toggleClass("expand",this._isReplaceVisible);this._toggleReplaceBtn.toggleClass("collapse",!this._isReplaceVisible);this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);this._domNode=document.createElement("div");this._domNode.className="editor-widget find-widget";this._domNode.setAttribute("aria-hidden","true");this._domNode.style.width="411px";this._domNode.appendChild(this._toggleReplaceBtn.domNode);this._domNode.appendChild(t);this._domNode.appendChild(n);this._buildSash()};t.prototype._buildSash=function(){var e=this;this._resizeSash=new se["a"](this._domNode,this,{orientation:0});this._resized=!1;var t=411;this._register(this._resizeSash.onDidStart(function(){t=W["x"](e._domNode)}));this._register(this._resizeSash.onDidChange(function(n){e._resized=!0;var r=t+n.startX-n.currentX;if(r<411)return;var i=r-xt;var o;if(r>(parseFloat(W["q"](e._domNode).maxWidth)||0))return;e._domNode.style.width=r+"px";e._isReplaceVisible&&(e._replaceInputBox.width=i)}))};t.prototype.updateAccessibilitySupport=function(){var e=this._codeEditor.getConfiguration().accessibilitySupport;this._findInput.setFocusInputOnOptionClick(2!==e)};t.ID="editor.contrib.findWidget";return t}(z["a"]);var Ot=function(e){at(t,e);function t(n){var r=e.call(this)||this;r._opts=n;r._domNode=document.createElement("div");r._domNode.className="monaco-checkbox";r._domNode.title=r._opts.title;r._domNode.tabIndex=0;r._checkbox=document.createElement("input");r._checkbox.type="checkbox";r._checkbox.className="checkbox";r._checkbox.id="checkbox-"+t._COUNTER++;r._checkbox.tabIndex=-1;r._label=document.createElement("label");r._label.className="label";r._label.htmlFor=r._checkbox.id;r._label.tabIndex=-1;r._domNode.appendChild(r._checkbox);r._domNode.appendChild(r._label);r._opts.parent.appendChild(r._domNode);r.onchange(r._checkbox,function(){r._opts.onChange()});return r}Object.defineProperty(t.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0});Object.defineProperty(t.prototype,"checked",{get:function(){return this._checkbox.checked},set:function(e){this._checkbox.checked=e},enumerable:!0,configurable:!0});t.prototype.enable=function(){this._checkbox.removeAttribute("disabled")};t.prototype.disable=function(){this._checkbox.disabled=!0};t.prototype.setEnabled=function(e){if(e){this.enable();this.domNode.tabIndex=0}else{this.disable();this.domNode.tabIndex=-1}};t._COUNTER=0;return t}(z["a"]);var Et=function(e){at(t,e);function t(t){var n=e.call(this)||this;n._opts=t;n._domNode=document.createElement("div");n._domNode.title=n._opts.label;n._domNode.tabIndex=0;n._domNode.className="button "+n._opts.className;n._domNode.setAttribute("role","button");n._domNode.setAttribute("aria-label",n._opts.label);n.onclick(n._domNode,function(e){n._opts.onTrigger();e.preventDefault()});n.onkeydown(n._domNode,function(e){if(e.equals(10)||e.equals(3)){n._opts.onTrigger();e.preventDefault();return}n._opts.onKeyDown&&n._opts.onKeyDown(e)});return n}Object.defineProperty(t.prototype,"domNode",{get:function(){return this._domNode},enumerable:!0,configurable:!0});t.prototype.isEnabled=function(){return this._domNode.tabIndex>=0};t.prototype.focus=function(){this._domNode.focus()};t.prototype.setEnabled=function(e){W["N"](this._domNode,"disabled",!e);this._domNode.setAttribute("aria-disabled",String(!e));this._domNode.tabIndex=e?0:-1};t.prototype.setExpanded=function(e){this._domNode.setAttribute("aria-expanded",String(!!e))};t.prototype.toggleClass=function(e,t){W["N"](this._domNode,e,t)};return t}(z["a"]);Object(m["e"])(function(e,t){var n=function(e,n){n&&t.addRule(".monaco-editor "+e+" { background-color: "+n+"; }")};n(".findMatch",e.getColor(v["p"]));n(".currentFindMatch",e.getColor(v["n"]));n(".findScope",e.getColor(v["r"]));var r;n(".find-widget",e.getColor(v["y"]));var i=e.getColor(v["qb"]);i&&t.addRule(".monaco-editor .find-widget { box-shadow: 0 2px 8px "+i+"; }");var o=e.getColor(v["q"]);o&&t.addRule(".monaco-editor .findMatch { border: 1px "+("hc"===e.type?"dotted":"solid")+" "+o+"; box-sizing: border-box; }");var a=e.getColor(v["o"]);a&&t.addRule(".monaco-editor .currentFindMatch { border: 2px solid "+a+"; padding: 1px; box-sizing: border-box; }");var s=e.getColor(v["s"]);s&&t.addRule(".monaco-editor .findScope { border: 1px "+("hc"===e.type?"dashed":"solid")+" "+s+"; }");var u=e.getColor(v["e"]);u&&t.addRule(".monaco-editor .find-widget { border: 2px solid "+u+"; }");var l=e.getColor(v["B"]);l&&t.addRule(".monaco-editor .find-widget.no-results .matchesCount { color: "+l+"; }");var c=e.getColor(v["A"]);if(c)t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+c+"; width: 3px !important; margin-left: -4px;}");else{var d=e.getColor(v["z"]);d&&t.addRule(".monaco-editor .find-widget .monaco-sash { background-color: "+d+"; width: 3px !important; margin-left: -4px;}")}var h=e.getColor(v["D"]);h&&t.addRule(".monaco-editor .find-widget .monaco-checkbox .checkbox:checked + .label { border: 1px solid "+h.toString()+"; }")});var Tt=n("WTqa");var At=n("TihM");var Rt=Object(At["c"])("clipboardService");var Pt=n("E5Z7");var jt=n("+y1K");var Wt=n("4M3c");n.d(t,"getSelectionSearchString",function(){return Ht});n.d(t,"CommonFindController",function(){return Ut});n.d(t,"FindController",function(){return Zt});n.d(t,"StartFindAction",function(){return Gt});n.d(t,"StartFindWithSelectionAction",function(){return Yt});n.d(t,"MatchFindAction",function(){return Kt});n.d(t,"NextMatchFindAction",function(){return Qt});n.d(t,"PreviousMatchFindAction",function(){return qt});n.d(t,"SelectionMatchFindAction",function(){return Jt});n.d(t,"NextSelectionMatchFindAction",function(){return Xt});n.d(t,"PreviousSelectionMatchFindAction",function(){return $t});n.d(t,"StartFindReplaceAction",function(){return en});var Ft=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){e(t,n);function r(){this.constructor=t}t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var zt=function(e,t,n,r){var i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};var Vt=function(e,t){return function(n,r){t(n,r,e)}};var Bt=524288;function Ht(e){var t=e.getSelection();if(t.startLineNumber===t.endLineNumber)if(t.isEmpty()){var n=e.getModel().getWordAtPosition(t.getStartPosition());if(n)return n.word}else if(e.getModel().getValueLengthInRange(t)<Bt)return e.getModel().getValueInRange(t);return null}var Ut=function(e){Ft(t,e);function t(t,n,r,o){var a=e.call(this)||this;a._editor=t;a._findWidgetVisible=N.bindTo(n);a._contextKeyService=n;a._storageService=r;a._clipboardService=o;a._updateHistoryDelayer=new i["a"](500);a._state=a._register(new oe);a.loadQueryState();a._register(a._state.onFindReplaceStateChange(function(e){return a._onStateChanged(e)}));a._model=null;a._register(a._editor.onDidChangeModel(function(){var e=a._editor.getModel()&&a._state.isRevealed;a.disposeModel();a._state.change({searchScope:null,matchCase:a._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:a._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:a._storageService.getBoolean("editor.isRegex",1,!1)},!1);e&&a._start({forceRevealReplace:!1,seedSearchStringFromSelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1})}));return a}t.get=function(e){return e.getContribution(t.ID)};t.prototype.dispose=function(){this.disposeModel();e.prototype.dispose.call(this)};t.prototype.disposeModel=function(){if(this._model){this._model.dispose();this._model=null}};t.prototype.getId=function(){return t.ID};t.prototype._onStateChanged=function(e){this.saveQueryState(e);if(e.isRevealed)if(this._state.isRevealed)this._findWidgetVisible.set(!0);else{this._findWidgetVisible.reset();this.disposeModel()}e.searchString&&this.setGlobalBufferTerm(this._state.searchString)};t.prototype.saveQueryState=function(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1);e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1);e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1)};t.prototype.loadQueryState=function(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex)},!1)};t.prototype.isFindInputFocused=function(){return M.getValue(this._contextKeyService)};t.prototype.getState=function(){return this._state};t.prototype.closeFindWidget=function(){this._state.change({isRevealed:!1,searchScope:null},!1);this._editor.focus()};t.prototype.toggleCaseSensitive=function(){this._state.change({matchCase:!this._state.matchCase},!1);this._state.isRevealed||this.highlightFindOptions()};t.prototype.toggleWholeWords=function(){this._state.change({wholeWord:!this._state.wholeWord},!1);this._state.isRevealed||this.highlightFindOptions()};t.prototype.toggleRegex=function(){this._state.change({isRegex:!this._state.isRegex},!1);this._state.isRevealed||this.highlightFindOptions()};t.prototype.toggleSearchScope=function(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else{var e=this._editor.getSelection();1===e.endColumn&&e.endLineNumber>e.startLineNumber&&(e=e.setEndPosition(e.endLineNumber-1,this._editor.getModel().getLineMaxColumn(e.endLineNumber-1)));e.isEmpty()||this._state.change({searchScope:e},!0)}};t.prototype.setSearchString=function(e){this._state.isRegex&&(e=a["l"](e));this._state.change({searchString:e},!1)};t.prototype.highlightFindOptions=function(){};t.prototype._start=function(e){this.disposeModel();if(!this._editor.getModel())return;var t={isRevealed:!0};if(e.seedSearchStringFromSelection){var n;(n=Ht(this._editor))&&(this._state.isRegex?t.searchString=a["l"](n):t.searchString=n)}if(!t.searchString&&e.seedSearchStringFromGlobalClipboard){var n;(n=this.getGlobalBufferTerm())&&(t.searchString=n)}e.forceRevealReplace?t.isReplaceRevealed=!0:this._findWidgetVisible.get()||(t.isReplaceRevealed=!1);if(e.updateSearchScope){var r=this._editor.getSelection();r.isEmpty()||(t.searchScope=r)}this._state.change(t,!1);this._model||(this._model=new j(this._editor,this._state))};t.prototype.start=function(e){this._start(e)};t.prototype.moveToNextMatch=function(){if(this._model){this._model.moveToNextMatch();return!0}return!1};t.prototype.moveToPrevMatch=function(){if(this._model){this._model.moveToPrevMatch();return!0}return!1};t.prototype.replace=function(){if(this._model){this._model.replace();return!0}return!1};t.prototype.replaceAll=function(){if(this._model){this._model.replaceAll();return!0}return!1};t.prototype.selectAllMatches=function(){if(this._model){this._model.selectAllMatches();this._editor.focus();return!0}return!1};t.prototype.getGlobalBufferTerm=function(){if(this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&!this._editor.getModel().isTooLargeForSyncing())return this._clipboardService.readFindText();return""};t.prototype.setGlobalBufferTerm=function(e){this._editor.getConfiguration().contribInfo.find.globalFindClipboard&&this._clipboardService&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)};t.ID="editor.contrib.findController";return t=zt([Vt(1,x["e"]),Vt(2,Wt["a"]),Vt(3,Rt)],t)}(o["a"]);var Zt=function(e){Ft(t,e);function t(t,n,r,i,o,a,s){var u=e.call(this,t,r,a,s)||this;u._contextViewService=n;u._keybindingService=i;u._themeService=o;return u}t.prototype._start=function(t){this._widget||this._createFindWidget();!this._widget.getPosition()&&this._editor.getConfiguration().contribInfo.find.autoFindInSelection&&(t.updateSearchScope=!0);e.prototype._start.call(this,t);2===t.shouldFocus?this._widget.focusReplaceInput():1===t.shouldFocus&&this._widget.focusFindInput()};t.prototype.highlightFindOptions=function(){this._widget||this._createFindWidget();this._state.isRevealed?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()};t.prototype._createFindWidget=function(){this._widget=this._register(new kt(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService));this._findOptionsWidget=this._register(new re(this._editor,this._state,this._keybindingService,this._themeService))};return t=zt([Vt(1,Pt["b"]),Vt(2,x["e"]),Vt(3,jt["a"]),Vt(4,m["c"]),Vt(5,Wt["a"]),Vt(6,Object(At["d"])(Rt))],t)}(Ut);var Gt=function(e){Ft(t,e);function t(){return e.call(this,{id:A.StartFindAction,label:r["a"]("startFindAction","Find"),alias:"Find",precondition:null,kbOpts:{kbExpr:null,primary:2084,weight:100},menubarOpts:{menuId:Tt["b"].MenubarEditMenu,group:"3_find",title:r["a"]({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}})||this}t.prototype.run=function(e,t){var n=Ut.get(t);n&&n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1})};return t}(s["b"]);var Yt=function(e){Ft(t,e);function t(){return e.call(this,{id:A.StartFindWithSelection,label:r["a"]("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:null,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})||this}t.prototype.run=function(e,t){var n=Ut.get(t);if(n){n.start({forceRevealReplace:!1,seedSearchStringFromSelection:!0,seedSearchStringFromGlobalClipboard:!1,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1});n.setGlobalBufferTerm(n.getState().searchString)}};return t}(s["b"]);var Kt=function(e){Ft(t,e);function t(){return null!==e&&e.apply(this,arguments)||this}t.prototype.run=function(e,t){var n=Ut.get(t);if(n&&!this._run(n)){n.start({forceRevealReplace:!1,seedSearchStringFromSelection:0===n.getState().searchString.length&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1});this._run(n)}};return t}(s["b"]);var Qt=function(e){Ft(t,e);function t(){return e.call(this,{id:A.NextMatchFindAction,label:r["a"]("findNextMatchAction","Find Next"),alias:"Find Next",precondition:null,kbOpts:{kbExpr:u["a"].focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100}})||this}t.prototype._run=function(e){return e.moveToNextMatch()};return t}(Kt);var qt=function(e){Ft(t,e);function t(){return e.call(this,{id:A.PreviousMatchFindAction,label:r["a"]("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:null,kbOpts:{kbExpr:u["a"].focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100}})||this}t.prototype._run=function(e){return e.moveToPrevMatch()};return t}(Kt);var Jt=function(e){Ft(t,e);function t(){return null!==e&&e.apply(this,arguments)||this}t.prototype.run=function(e,t){var n=Ut.get(t);if(!n)return;var r=Ht(t);r&&n.setSearchString(r);if(!this._run(n)){n.start({forceRevealReplace:!1,seedSearchStringFromSelection:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1});this._run(n)}};return t}(s["b"]);var Xt=function(e){Ft(t,e);function t(){return e.call(this,{id:A.NextSelectionMatchFindAction,label:r["a"]("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:null,kbOpts:{kbExpr:u["a"].focus,primary:2109,weight:100}})||this}t.prototype._run=function(e){return e.moveToNextMatch()};return t}(Jt);var $t=function(e){Ft(t,e);function t(){return e.call(this,{id:A.PreviousSelectionMatchFindAction,label:r["a"]("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:null,kbOpts:{kbExpr:u["a"].focus,primary:3133,weight:100}})||this}t.prototype._run=function(e){return e.moveToPrevMatch()};return t}(Jt);var en=function(e){Ft(t,e);function t(){return e.call(this,{id:A.StartFindReplaceAction,label:r["a"]("startReplace","Replace"),alias:"Replace",precondition:null,kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menubarOpts:{menuId:Tt["b"].MenubarEditMenu,group:"3_find",title:r["a"]({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}})||this}t.prototype.run=function(e,t){if(t.getConfiguration().readOnly)return;var n=Ut.get(t);var r=t.getSelection();var i=n.isFindInputFocused();var o=!r.isEmpty()&&r.startLineNumber===r.endLineNumber&&t.getConfiguration().contribInfo.find.seedSearchStringFromSelection&&!i;var a=i||o?2:1;n&&n.start({forceRevealReplace:!0,seedSearchStringFromSelection:o,seedSearchStringFromGlobalClipboard:t.getConfiguration().contribInfo.find.seedSearchStringFromSelection,shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1})};return t}(s["b"]);Object(s["g"])(Zt);Object(s["e"])(Gt);Object(s["e"])(Yt);Object(s["e"])(Qt);Object(s["e"])(qt);Object(s["e"])(Xt);Object(s["e"])($t);Object(s["e"])(en);var tn=s["c"].bindToContribution(Ut.get);Object(s["f"])(new tn({id:A.CloseFindWidgetCommand,precondition:N,handler:function(e){return e.closeFindWidget()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:9,secondary:[1033]}}));Object(s["f"])(new tn({id:A.ToggleCaseSensitiveCommand,precondition:null,handler:function(e){return e.toggleCaseSensitive()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:k.primary,mac:k.mac,win:k.win,linux:k.linux}}));Object(s["f"])(new tn({id:A.ToggleWholeWordCommand,precondition:null,handler:function(e){return e.toggleWholeWords()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:O.primary,mac:O.mac,win:O.win,linux:O.linux}}));Object(s["f"])(new tn({id:A.ToggleRegexCommand,precondition:null,handler:function(e){return e.toggleRegex()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:E.primary,mac:E.mac,win:E.win,linux:E.linux}}));Object(s["f"])(new tn({id:A.ToggleSearchScopeCommand,precondition:null,handler:function(e){return e.toggleSearchScope()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:T.primary,mac:T.mac,win:T.win,linux:T.linux}}));Object(s["f"])(new tn({id:A.ReplaceOneAction,precondition:N,handler:function(e){return e.replace()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:3094}}));Object(s["f"])(new tn({id:A.ReplaceAllAction,precondition:N,handler:function(e){return e.replaceAll()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:2563}}));Object(s["f"])(new tn({id:A.SelectAllMatchesAction,precondition:N,handler:function(e){return e.selectAllMatches()},kbOpts:{weight:105,kbExpr:u["a"].focus,primary:515}}))},UDU2:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-custom-checkbox {\r\n\tmargin-left: 2px;\r\n\tfloat: left;\r\n\tcursor: pointer;\r\n\toverflow: hidden;\r\n\topacity: 0.7;\r\n\twidth: 20px;\r\n\theight: 20px;\r\n\tborder: 1px solid transparent;\r\n\tpadding: 1px;\r\n\r\n\t-webkit-box-sizing:\tborder-box;\r\n\t-o-box-sizing:\t\tborder-box;\r\n\t-moz-box-sizing:\tborder-box;\r\n\t-ms-box-sizing:\t\tborder-box;\r\n\tbox-sizing:\t\t\tborder-box;\r\n\r\n\t-webkit-user-select: none;\r\n\t-khtml-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-o-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none;\r\n}\r\n\r\n.monaco-custom-checkbox:hover,\r\n.monaco-custom-checkbox.checked {\r\n\topacity: 1;\r\n}\r\n\r\n.hc-black .monaco-custom-checkbox {\r\n\tbackground: none;\r\n}\r\n\r\n.hc-black .monaco-custom-checkbox:hover {\r\n\tbackground: none;\r\n}",""])},UFYz:function(e,t,n){var r=n("zS+e");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},UMmv:function(e,t,n){"use strict";n.d(t,"h",function(){return l});n.d(t,"g",function(){return c});n.d(t,"i",function(){return d});n.d(t,"e",function(){return f});n.d(t,"d",function(){return S});n.d(t,"f",function(){return L});n.d(t,"b",function(){return D});n.d(t,"c",function(){return k});n.d(t,"a",function(){return O});var r=n("ITjR");var i=n("1RQC");var o=n("lKvo");var a=n("9X2a");var s=n("Dg3a");var u=function(){return(u=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)};function l(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")}var c;!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"}(c||(c={}));function d(e){if(e===c.Line)return"line";if(e===c.Block)return"block";if(e===c.Underline)return"underline";if(e===c.LineThin)return"line-thin";if(e===c.BlockOutline)return"block-outline";if(e===c.UnderlineThin)return"underline-thin";throw new Error("cursorStyleToString: Unknown cursorStyle")}function h(e,t){if("string"!=typeof e)return t;if("line"===e)return c.Line;if("block"===e)return c.Block;if("underline"===e)return c.Underline;if("line-thin"===e)return c.LineThin;if("block-outline"===e)return c.BlockOutline;if("underline-thin"===e)return c.UnderlineThin;return c.Line}var f=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}e.prototype.equals=function(t){return 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.multiCursorModifier===t.multiCursorModifier&&this.multiCursorMergeOverlapping===t.multiCursorMergeOverlapping&&this.wordSeparators===t.wordSeparators&&this.autoClosingBrackets===t.autoClosingBrackets&&this.autoClosingQuotes===t.autoClosingQuotes&&this.autoSurround===t.autoSurround&&this.autoIndent===t.autoIndent&&this.useTabStops===t.useTabStops&&this.tabFocusMode===t.tabFocusMode&&this.dragAndDrop===t.dragAndDrop&&this.showUnused===t.showUnused&&this.emptySelectionClipboard===t.emptySelectionClipboard&&this.copyWithSyntaxHighlighting===t.copyWithSyntaxHighlighting&&e._equalsLayoutInfo(this.layoutInfo,t.layoutInfo)&&this.fontInfo.equals(t.fontInfo)&&e._equalsViewOptions(this.viewInfo,t.viewInfo)&&e._equalsWrappingInfo(this.wrappingInfo,t.wrappingInfo)&&e._equalsContribOptions(this.contribInfo,t.contribInfo)};e.prototype.createChangeEvent=function(t){return{canUseLayerHinting:this.canUseLayerHinting!==t.canUseLayerHinting,pixelRatio:this.pixelRatio!==t.pixelRatio,editorClassName:this.editorClassName!==t.editorClassName,lineHeight:this.lineHeight!==t.lineHeight,readOnly:this.readOnly!==t.readOnly,accessibilitySupport:this.accessibilitySupport!==t.accessibilitySupport,multiCursorModifier:this.multiCursorModifier!==t.multiCursorModifier,multiCursorMergeOverlapping:this.multiCursorMergeOverlapping!==t.multiCursorMergeOverlapping,wordSeparators:this.wordSeparators!==t.wordSeparators,autoClosingBrackets:this.autoClosingBrackets!==t.autoClosingBrackets,autoClosingQuotes:this.autoClosingQuotes!==t.autoClosingQuotes,autoSurround:this.autoSurround!==t.autoSurround,autoIndent:this.autoIndent!==t.autoIndent,useTabStops:this.useTabStops!==t.useTabStops,tabFocusMode:this.tabFocusMode!==t.tabFocusMode,dragAndDrop:this.dragAndDrop!==t.dragAndDrop,emptySelectionClipboard:this.emptySelectionClipboard!==t.emptySelectionClipboard,copyWithSyntaxHighlighting:this.copyWithSyntaxHighlighting!==t.copyWithSyntaxHighlighting,layoutInfo:!e._equalsLayoutInfo(this.layoutInfo,t.layoutInfo),fontInfo:!this.fontInfo.equals(t.fontInfo),viewInfo:!e._equalsViewOptions(this.viewInfo,t.viewInfo),wrappingInfo:!e._equalsWrappingInfo(this.wrappingInfo,t.wrappingInfo),contribInfo:!e._equalsContribOptions(this.contribInfo,t.contribInfo)}};e._equalsLayoutInfo=function(e,t){return e.width===t.width&&e.height===t.height&&e.glyphMarginLeft===t.glyphMarginLeft&&e.glyphMarginWidth===t.glyphMarginWidth&&e.glyphMarginHeight===t.glyphMarginHeight&&e.lineNumbersLeft===t.lineNumbersLeft&&e.lineNumbersWidth===t.lineNumbersWidth&&e.lineNumbersHeight===t.lineNumbersHeight&&e.decorationsLeft===t.decorationsLeft&&e.decorationsWidth===t.decorationsWidth&&e.decorationsHeight===t.decorationsHeight&&e.contentLeft===t.contentLeft&&e.contentWidth===t.contentWidth&&e.contentHeight===t.contentHeight&&e.renderMinimap===t.renderMinimap&&e.minimapLeft===t.minimapLeft&&e.minimapWidth===t.minimapWidth&&e.viewportColumn===t.viewportColumn&&e.verticalScrollbarWidth===t.verticalScrollbarWidth&&e.horizontalScrollbarHeight===t.horizontalScrollbarHeight&&this._equalsOverviewRuler(e.overviewRuler,t.overviewRuler)};e._equalsOverviewRuler=function(e,t){return e.width===t.width&&e.height===t.height&&e.top===t.top&&e.right===t.right};e._equalsViewOptions=function(e,t){return e.extraEditorClassName===t.extraEditorClassName&&e.disableMonospaceOptimizations===t.disableMonospaceOptimizations&&i["c"](e.rulers,t.rulers)&&e.ariaLabel===t.ariaLabel&&e.renderLineNumbers===t.renderLineNumbers&&e.renderCustomLineNumbers===t.renderCustomLineNumbers&&e.selectOnLineNumbers===t.selectOnLineNumbers&&e.glyphMargin===t.glyphMargin&&e.revealHorizontalRightPadding===t.revealHorizontalRightPadding&&e.roundedSelection===t.roundedSelection&&e.overviewRulerLanes===t.overviewRulerLanes&&e.overviewRulerBorder===t.overviewRulerBorder&&e.cursorBlinking===t.cursorBlinking&&e.mouseWheelZoom===t.mouseWheelZoom&&e.cursorStyle===t.cursorStyle&&e.cursorWidth===t.cursorWidth&&e.hideCursorInOverviewRuler===t.hideCursorInOverviewRuler&&e.scrollBeyondLastLine===t.scrollBeyondLastLine&&e.scrollBeyondLastColumn===t.scrollBeyondLastColumn&&e.smoothScrolling===t.smoothScrolling&&e.stopRenderingLineAfter===t.stopRenderingLineAfter&&e.renderWhitespace===t.renderWhitespace&&e.renderControlCharacters===t.renderControlCharacters&&e.fontLigatures===t.fontLigatures&&e.renderIndentGuides===t.renderIndentGuides&&e.highlightActiveIndentGuide===t.highlightActiveIndentGuide&&e.renderLineHighlight===t.renderLineHighlight&&this._equalsScrollbarOptions(e.scrollbar,t.scrollbar)&&this._equalsMinimapOptions(e.minimap,t.minimap)&&e.fixedOverflowWidgets===t.fixedOverflowWidgets};e._equalsScrollbarOptions=function(e,t){return e.arrowSize===t.arrowSize&&e.vertical===t.vertical&&e.horizontal===t.horizontal&&e.useShadows===t.useShadows&&e.verticalHasArrows===t.verticalHasArrows&&e.horizontalHasArrows===t.horizontalHasArrows&&e.handleMouseWheel===t.handleMouseWheel&&e.horizontalScrollbarSize===t.horizontalScrollbarSize&&e.horizontalSliderSize===t.horizontalSliderSize&&e.verticalScrollbarSize===t.verticalScrollbarSize&&e.verticalSliderSize===t.verticalSliderSize&&e.mouseWheelScrollSensitivity===t.mouseWheelScrollSensitivity};e._equalsMinimapOptions=function(e,t){return e.enabled===t.enabled&&e.side===t.side&&e.showSlider===t.showSlider&&e.renderCharacters===t.renderCharacters&&e.maxColumn===t.maxColumn};e._equalFindOptions=function(e,t){return e.seedSearchStringFromSelection===t.seedSearchStringFromSelection&&e.autoFindInSelection===t.autoFindInSelection&&e.globalFindClipboard===t.globalFindClipboard};e._equalsParameterHintOptions=function(e,t){return e.enabled===t.enabled&&e.cycle===t.cycle};e._equalsHoverOptions=function(e,t){return e.enabled===t.enabled&&e.delay===t.delay&&e.sticky===t.sticky};e._equalsSuggestOptions=function(e,t){return e===t||!(!e||!t)&&(e.filterGraceful===t.filterGraceful&&e.snippets===t.snippets&&e.snippetsPreventQuickSuggestions===t.snippetsPreventQuickSuggestions&&e.localityBonus===t.localityBonus)};e._equalsWrappingInfo=function(e,t){return e.inDiffEditor===t.inDiffEditor&&e.isDominatedByLongLines===t.isDominatedByLongLines&&e.isWordWrapMinified===t.isWordWrapMinified&&e.isViewportWrapping===t.isViewportWrapping&&e.wrappingColumn===t.wrappingColumn&&e.wrappingIndent===t.wrappingIndent&&e.wordWrapBreakBeforeCharacters===t.wordWrapBreakBeforeCharacters&&e.wordWrapBreakAfterCharacters===t.wordWrapBreakAfterCharacters&&e.wordWrapBreakObtrusiveCharacters===t.wordWrapBreakObtrusiveCharacters};e._equalsContribOptions=function(t,n){return t.selectionClipboard===n.selectionClipboard&&this._equalsHoverOptions(t.hover,n.hover)&&t.links===n.links&&t.contextmenu===n.contextmenu&&e._equalsQuickSuggestions(t.quickSuggestions,n.quickSuggestions)&&t.quickSuggestionsDelay===n.quickSuggestionsDelay&&this._equalsParameterHintOptions(t.parameterHints,n.parameterHints)&&t.iconsInSuggestions===n.iconsInSuggestions&&t.formatOnType===n.formatOnType&&t.formatOnPaste===n.formatOnPaste&&t.suggestOnTriggerCharacters===n.suggestOnTriggerCharacters&&t.acceptSuggestionOnEnter===n.acceptSuggestionOnEnter&&t.acceptSuggestionOnCommitCharacter===n.acceptSuggestionOnCommitCharacter&&t.wordBasedSuggestions===n.wordBasedSuggestions&&t.suggestSelection===n.suggestSelection&&t.suggestFontSize===n.suggestFontSize&&t.suggestLineHeight===n.suggestLineHeight&&t.tabCompletion===n.tabCompletion&&this._equalsSuggestOptions(t.suggest,n.suggest)&&t.selectionHighlight===n.selectionHighlight&&t.occurrencesHighlight===n.occurrencesHighlight&&t.codeLens===n.codeLens&&t.folding===n.folding&&t.foldingStrategy===n.foldingStrategy&&t.showFoldingControls===n.showFoldingControls&&t.matchBrackets===n.matchBrackets&&this._equalFindOptions(t.find,n.find)&&t.colorDecorators===n.colorDecorators&&o["d"](t.codeActionsOnSave,n.codeActionsOnSave)&&t.codeActionsOnSaveTimeout===n.codeActionsOnSaveTimeout&&t.lightbulbEnabled===n.lightbulbEnabled};e._equalsQuickSuggestions=function(e,t){if("boolean"==typeof e){if("boolean"!=typeof t)return!1;return e===t}if("boolean"==typeof t)return!1;return e.comments===t.comments&&e.other===t.other&&e.strings===t.strings};return e}();function p(e,t){if(void 0===e)return t;if("false"===e)return!1;return Boolean(e)}function g(e,t){if(!e)return t;var n=Object.create(null);for(var r=0,i=Object.keys(e);r<i.length;r++){var o=i[r];var a=e[o];"boolean"==typeof a&&(n[o]=a)}return n}function v(e,t){if("string"!=typeof e)return t;return e}function m(e,t,n){if("string"!=typeof e)return t;if(-1===n.indexOf(e))return t;return e}function _(e,t,n,r){var i;if(void 0===e)i=t;else{i=parseInt(e,10);isNaN(i)&&(i=t)}i=Math.max(n,i);return 0|(i=Math.min(r,i))}function y(e,t){var n=parseFloat(e);isNaN(n)&&(n=t);return n}function b(e,t){if("string"!=typeof e)return t;return"same"===e?1:"indent"===e?2:"deepIndent"===e?3:0}function C(e,t){if("string"!=typeof e)return t;switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"visible":case"solid":return 5}return 1}function w(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return 2;case"visible":return 3;default:return 1}}var S=function(){function e(){}e.validate=function(e,t){var n=e.wordWrap;!0===n?n="on":!1===n&&(n="off");n=m(n,t.wordWrap,["off","on","wordWrapColumn","bounded"]);var r=this._sanitizeViewInfo(e,t.viewInfo);var i=this._sanitizeContribInfo(e,t.contribInfo);var o=void 0;"string"==typeof e.multiCursorModifier&&(o="ctrlCmd"===e.multiCursorModifier?a["d"]?"metaKey":"ctrlKey":"altKey");var s=m(o,t.multiCursorModifier,["altKey","metaKey","ctrlKey"]);var u;var l;var c;if("boolean"==typeof e.autoClosingBrackets&&!1===e.autoClosingBrackets){u="never";l="never";c="never"}else{u=m(e.autoClosingBrackets,t.autoClosingBrackets,["always","languageDefined","beforeWhitespace","never"]);l=m(e.autoClosingQuotes,t.autoClosingQuotes,["always","languageDefined","beforeWhitespace","never"]);c=m(e.autoSurround,t.autoSurround,["languageDefined","brackets","quotes","never"])}return{inDiffEditor:p(e.inDiffEditor,t.inDiffEditor),wordSeparators:v(e.wordSeparators,t.wordSeparators),lineNumbersMinChars:_(e.lineNumbersMinChars,t.lineNumbersMinChars,1,10),lineDecorationsWidth:void 0===e.lineDecorationsWidth?t.lineDecorationsWidth:e.lineDecorationsWidth,readOnly:p(e.readOnly,t.readOnly),mouseStyle:m(e.mouseStyle,t.mouseStyle,["text","default","copy"]),disableLayerHinting:p(e.disableLayerHinting,t.disableLayerHinting),automaticLayout:p(e.automaticLayout,t.automaticLayout),wordWrap:n,wordWrapColumn:_(e.wordWrapColumn,t.wordWrapColumn,1,1073741824),wordWrapMinified:p(e.wordWrapMinified,t.wordWrapMinified),wrappingIndent:b(e.wrappingIndent,t.wrappingIndent),wordWrapBreakBeforeCharacters:v(e.wordWrapBreakBeforeCharacters,t.wordWrapBreakBeforeCharacters),wordWrapBreakAfterCharacters:v(e.wordWrapBreakAfterCharacters,t.wordWrapBreakAfterCharacters),wordWrapBreakObtrusiveCharacters:v(e.wordWrapBreakObtrusiveCharacters,t.wordWrapBreakObtrusiveCharacters),autoClosingBrackets:u,autoClosingQuotes:l,autoSurround:c,autoIndent:p(e.autoIndent,t.autoIndent),dragAndDrop:p(e.dragAndDrop,t.dragAndDrop),emptySelectionClipboard:p(e.emptySelectionClipboard,t.emptySelectionClipboard),copyWithSyntaxHighlighting:p(e.copyWithSyntaxHighlighting,t.copyWithSyntaxHighlighting),useTabStops:p(e.useTabStops,t.useTabStops),multiCursorModifier:s,multiCursorMergeOverlapping:p(e.multiCursorMergeOverlapping,t.multiCursorMergeOverlapping),accessibilitySupport:m(e.accessibilitySupport,t.accessibilitySupport,["auto","on","off"]),showUnused:p(e.showUnused,t.showUnused),viewInfo:r,contribInfo:i}};e._sanitizeScrollbarOpts=function(e,t,n){if("object"!=typeof e)return t;var r=_(e.horizontalScrollbarSize,t.horizontalScrollbarSize,0,1e3);var i=_(e.verticalScrollbarSize,t.verticalScrollbarSize,0,1e3);return{vertical:w(e.vertical,t.vertical),horizontal:w(e.horizontal,t.horizontal),arrowSize:_(e.arrowSize,t.arrowSize,0,1e3),useShadows:p(e.useShadows,t.useShadows),verticalHasArrows:p(e.verticalHasArrows,t.verticalHasArrows),horizontalHasArrows:p(e.horizontalHasArrows,t.horizontalHasArrows),horizontalScrollbarSize:r,horizontalSliderSize:_(e.horizontalSliderSize,r,0,1e3),verticalScrollbarSize:i,verticalSliderSize:_(e.verticalSliderSize,i,0,1e3),handleMouseWheel:p(e.handleMouseWheel,t.handleMouseWheel),mouseWheelScrollSensitivity:n}};e._sanitizeMinimapOpts=function(e,t){if("object"!=typeof e)return t;return{enabled:p(e.enabled,t.enabled),side:m(e.side,t.side,["right","left"]),showSlider:m(e.showSlider,t.showSlider,["always","mouseover"]),renderCharacters:p(e.renderCharacters,t.renderCharacters),maxColumn:_(e.maxColumn,t.maxColumn,1,1e4)}};e._santizeFindOpts=function(e,t){if("object"!=typeof e)return t;return{seedSearchStringFromSelection:p(e.seedSearchStringFromSelection,t.seedSearchStringFromSelection),autoFindInSelection:p(e.autoFindInSelection,t.autoFindInSelection),globalFindClipboard:p(e.globalFindClipboard,t.globalFindClipboard)}};e._sanitizeParameterHintOpts=function(e,t){if("object"!=typeof e)return t;return{enabled:p(e.enabled,t.enabled),cycle:p(e.cycle,t.cycle)}};e._santizeHoverOpts=function(e,t){var n;if("boolean"==typeof e)n={enabled:e};else{if("object"!=typeof e)return t;n=e}return{enabled:p(n.enabled,t.enabled),delay:_(n.delay,t.delay,0,1e4),sticky:p(n.sticky,t.sticky)}};e._sanitizeSuggestOpts=function(e,t){var n=e.suggest||{};return{filterGraceful:p(n.filterGraceful,t.filterGraceful),snippets:m(e.snippetSuggestions,t.snippets,["top","bottom","inline","none"]),snippetsPreventQuickSuggestions:p(n.snippetsPreventQuickSuggestions,t.filterGraceful),localityBonus:p(n.localityBonus,t.localityBonus)}};e._sanitizeTabCompletionOpts=function(e,t){return!1===e?"off":!0===e?"onlySnippets":m(e,t,["on","off","onlySnippets"])};e._sanitizeViewInfo=function(e,t){var n=[];if(Array.isArray(e.rulers)){for(var r=0,i=e.rulers.length;r<i;r++)n.push(_(e.rulers[r],0,0,1e4));n.sort()}var o=t.renderLineNumbers;var a=t.renderCustomLineNumbers;if(void 0!==e.lineNumbers){var s=e.lineNumbers;!0===s?s="on":!1===s&&(s="off");if("function"==typeof s){o=4;a=s}else o="interval"===s?3:"relative"===s?2:"on"===s?1:0}var u=p(e.fontLigatures,t.fontLigatures);var l=p(e.disableMonospaceOptimizations,t.disableMonospaceOptimizations)||u;var c=e.renderWhitespace;!0===c?c="boundary":!1===c&&(c="none");c=m(e.renderWhitespace,t.renderWhitespace,["none","boundary","all"]);var d=e.renderLineHighlight;!0===d?d="line":!1===d&&(d="none");d=m(e.renderLineHighlight,t.renderLineHighlight,["none","gutter","line","all"]);var f=y(e.mouseWheelScrollSensitivity,t.scrollbar.mouseWheelScrollSensitivity);0===f&&(f=1);var g=this._sanitizeScrollbarOpts(e.scrollbar,t.scrollbar,f);var b=this._sanitizeMinimapOpts(e.minimap,t.minimap);return{extraEditorClassName:v(e.extraEditorClassName,t.extraEditorClassName),disableMonospaceOptimizations:l,rulers:n,ariaLabel:v(e.ariaLabel,t.ariaLabel),renderLineNumbers:o,renderCustomLineNumbers:a,selectOnLineNumbers:p(e.selectOnLineNumbers,t.selectOnLineNumbers),glyphMargin:p(e.glyphMargin,t.glyphMargin),revealHorizontalRightPadding:_(e.revealHorizontalRightPadding,t.revealHorizontalRightPadding,0,1e3),roundedSelection:p(e.roundedSelection,t.roundedSelection),overviewRulerLanes:_(e.overviewRulerLanes,t.overviewRulerLanes,0,3),overviewRulerBorder:p(e.overviewRulerBorder,t.overviewRulerBorder),cursorBlinking:C(e.cursorBlinking,t.cursorBlinking),mouseWheelZoom:p(e.mouseWheelZoom,t.mouseWheelZoom),cursorStyle:h(e.cursorStyle,t.cursorStyle),cursorWidth:_(e.cursorWidth,t.cursorWidth,0,Number.MAX_VALUE),hideCursorInOverviewRuler:p(e.hideCursorInOverviewRuler,t.hideCursorInOverviewRuler),scrollBeyondLastLine:p(e.scrollBeyondLastLine,t.scrollBeyondLastLine),scrollBeyondLastColumn:_(e.scrollBeyondLastColumn,t.scrollBeyondLastColumn,0,1073741824),smoothScrolling:p(e.smoothScrolling,t.smoothScrolling),stopRenderingLineAfter:_(e.stopRenderingLineAfter,t.stopRenderingLineAfter,-1,1073741824),renderWhitespace:c,renderControlCharacters:p(e.renderControlCharacters,t.renderControlCharacters),fontLigatures:u,renderIndentGuides:p(e.renderIndentGuides,t.renderIndentGuides),highlightActiveIndentGuide:p(e.highlightActiveIndentGuide,t.highlightActiveIndentGuide),renderLineHighlight:d,scrollbar:g,minimap:b,fixedOverflowWidgets:p(e.fixedOverflowWidgets,t.fixedOverflowWidgets)}};e._sanitizeContribInfo=function(e,t){var n;n="object"==typeof e.quickSuggestions?u({other:!0},e.quickSuggestions):p(e.quickSuggestions,t.quickSuggestions);"boolean"==typeof e.acceptSuggestionOnEnter&&(e.acceptSuggestionOnEnter=e.acceptSuggestionOnEnter?"on":"off");var r=this._santizeFindOpts(e.find,t.find);return{selectionClipboard:p(e.selectionClipboard,t.selectionClipboard),hover:this._santizeHoverOpts(e.hover,t.hover),links:p(e.links,t.links),contextmenu:p(e.contextmenu,t.contextmenu),quickSuggestions:n,quickSuggestionsDelay:_(e.quickSuggestionsDelay,t.quickSuggestionsDelay,-1073741824,1073741824),parameterHints:this._sanitizeParameterHintOpts(e.parameterHints,t.parameterHints),iconsInSuggestions:p(e.iconsInSuggestions,t.iconsInSuggestions),formatOnType:p(e.formatOnType,t.formatOnType),formatOnPaste:p(e.formatOnPaste,t.formatOnPaste),suggestOnTriggerCharacters:p(e.suggestOnTriggerCharacters,t.suggestOnTriggerCharacters),acceptSuggestionOnEnter:m(e.acceptSuggestionOnEnter,t.acceptSuggestionOnEnter,["on","smart","off"]),acceptSuggestionOnCommitCharacter:p(e.acceptSuggestionOnCommitCharacter,t.acceptSuggestionOnCommitCharacter),wordBasedSuggestions:p(e.wordBasedSuggestions,t.wordBasedSuggestions),suggestSelection:m(e.suggestSelection,t.suggestSelection,["first","recentlyUsed","recentlyUsedByPrefix"]),suggestFontSize:_(e.suggestFontSize,t.suggestFontSize,0,1e3),suggestLineHeight:_(e.suggestLineHeight,t.suggestLineHeight,0,1e3),tabCompletion:this._sanitizeTabCompletionOpts(e.tabCompletion,t.tabCompletion),suggest:this._sanitizeSuggestOpts(e,t.suggest),selectionHighlight:p(e.selectionHighlight,t.selectionHighlight),occurrencesHighlight:p(e.occurrencesHighlight,t.occurrencesHighlight),codeLens:p(e.codeLens,t.codeLens),folding:p(e.folding,t.folding),foldingStrategy:m(e.foldingStrategy,t.foldingStrategy,["auto","indentation"]),showFoldingControls:m(e.showFoldingControls,t.showFoldingControls,["always","mouseover"]),matchBrackets:p(e.matchBrackets,t.matchBrackets),find:r,colorDecorators:p(e.colorDecorators,t.colorDecorators),lightbulbEnabled:p(!!e.lightbulb&&e.lightbulb.enabled,t.lightbulbEnabled),codeActionsOnSave:g(e.codeActionsOnSave,{}),codeActionsOnSaveTimeout:_(e.codeActionsOnSaveTimeout,t.codeActionsOnSaveTimeout,1,1e4)}};return e}();var L=function(){function e(){}e._tweakValidatedOptions=function(e,t){var n=2===t;var i=1===t;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:i?r["a"]("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,selectOnLineNumbers:e.viewInfo.selectOnLineNumbers,glyphMargin:e.viewInfo.glyphMargin,revealHorizontalRightPadding:e.viewInfo.revealHorizontalRightPadding,roundedSelection:!n&&e.viewInfo.roundedSelection,overviewRulerLanes:e.viewInfo.overviewRulerLanes,overviewRulerBorder:e.viewInfo.overviewRulerBorder,cursorBlinking:e.viewInfo.cursorBlinking,mouseWheelZoom:e.viewInfo.mouseWheelZoom,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:n?"none":e.viewInfo.renderWhitespace,renderControlCharacters:!n&&e.viewInfo.renderControlCharacters,fontLigatures:!n&&e.viewInfo.fontLigatures,renderIndentGuides:!n&&e.viewInfo.renderIndentGuides,highlightActiveIndentGuide:e.viewInfo.highlightActiveIndentGuide,renderLineHighlight:e.viewInfo.renderLineHighlight,scrollbar:e.viewInfo.scrollbar,minimap:{enabled:!n&&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:!n&&e.contribInfo.links,contextmenu:e.contribInfo.contextmenu,quickSuggestions:e.contribInfo.quickSuggestions,quickSuggestionsDelay:e.contribInfo.quickSuggestionsDelay,parameterHints:e.contribInfo.parameterHints,iconsInSuggestions:e.contribInfo.iconsInSuggestions,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,selectionHighlight:!n&&e.contribInfo.selectionHighlight,occurrencesHighlight:!n&&e.contribInfo.occurrencesHighlight,codeLens:!n&&e.contribInfo.codeLens,folding:!n&&e.contribInfo.folding,foldingStrategy:e.contribInfo.foldingStrategy,showFoldingControls:e.contribInfo.showFoldingControls,matchBrackets:!n&&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,t){var n;n="auto"===t.accessibilitySupport?e.accessibilitySupport:"on"===t.accessibilitySupport?2:1;var r=this._tweakValidatedOptions(t,n);var i;if("string"==typeof r.lineDecorationsWidth&&/^\d+(\.\d+)?ch$/.test(r.lineDecorationsWidth)){var o;i=parseFloat(r.lineDecorationsWidth.substr(0,r.lineDecorationsWidth.length-2))*e.fontInfo.typicalHalfwidthCharacterWidth}else i=_(r.lineDecorationsWidth,0,0,1e3);r.contribInfo.folding&&(i+=16);var a=I.compute({outerWidth:e.outerWidth,outerHeight:e.outerHeight,showGlyphMargin:r.viewInfo.glyphMargin,lineHeight:e.fontInfo.lineHeight,showLineNumbers:0!==r.viewInfo.renderLineNumbers,lineNumbersMinChars:r.lineNumbersMinChars,lineNumbersDigitCount:e.lineNumbersDigitCount,lineDecorationsWidth:i,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,verticalScrollbarWidth:r.viewInfo.scrollbar.verticalScrollbarSize,horizontalScrollbarHeight:r.viewInfo.scrollbar.horizontalScrollbarSize,scrollbarArrowSize:r.viewInfo.scrollbar.arrowSize,verticalScrollbarHasArrows:r.viewInfo.scrollbar.verticalHasArrows,minimap:r.viewInfo.minimap.enabled,minimapSide:r.viewInfo.minimap.side,minimapRenderCharacters:r.viewInfo.minimap.renderCharacters,minimapMaxColumn:r.viewInfo.minimap.maxColumn,pixelRatio:e.pixelRatio});var s=null;var u=r.wordWrap;var l=r.wordWrapColumn;var c=r.wordWrapMinified;s=2===n?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:c&&e.isDominatedByLongLines?{isWordWrapMinified:!0,isViewportWrapping:!0,wrappingColumn:Math.max(1,a.viewportColumn)}:"on"===u?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.max(1,a.viewportColumn)}:"bounded"===u?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.min(Math.max(1,a.viewportColumn),l)}:"wordWrapColumn"===u?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:l}:{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1};var d={inDiffEditor:r.inDiffEditor,isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:s.isWordWrapMinified,isViewportWrapping:s.isViewportWrapping,wrappingColumn:s.wrappingColumn,wrappingIndent:r.wrappingIndent,wordWrapBreakBeforeCharacters:r.wordWrapBreakBeforeCharacters,wordWrapBreakAfterCharacters:r.wordWrapBreakAfterCharacters,wordWrapBreakObtrusiveCharacters:r.wordWrapBreakObtrusiveCharacters};var h="monaco-editor";r.viewInfo.extraEditorClassName&&(h+=" "+r.viewInfo.extraEditorClassName);e.extraEditorClassName&&(h+=" "+e.extraEditorClassName);r.viewInfo.fontLigatures&&(h+=" enable-ligatures");"default"===r.mouseStyle?h+=" mouse-default":"copy"===r.mouseStyle&&(h+=" mouse-copy");return new f({canUseLayerHinting:!r.disableLayerHinting,pixelRatio:e.pixelRatio,editorClassName:h,lineHeight:e.fontInfo.lineHeight,readOnly:r.readOnly,accessibilitySupport:n,multiCursorModifier:r.multiCursorModifier,multiCursorMergeOverlapping:r.multiCursorMergeOverlapping,wordSeparators:r.wordSeparators,autoClosingBrackets:r.autoClosingBrackets,autoClosingQuotes:r.autoClosingQuotes,autoSurround:r.autoSurround,autoIndent:r.autoIndent,useTabStops:r.useTabStops,tabFocusMode:!!r.readOnly||e.tabFocusMode,dragAndDrop:r.dragAndDrop,emptySelectionClipboard:r.emptySelectionClipboard&&e.emptySelectionClipboard,copyWithSyntaxHighlighting:r.copyWithSyntaxHighlighting,layoutInfo:a,fontInfo:e.fontInfo,viewInfo:r.viewInfo,wrappingInfo:d,contribInfo:r.contribInfo,showUnused:r.showUnused})};return e}();var I=function(){function e(){}e.compute=function(e){var t=0|e.outerWidth;var n=0|e.outerHeight;var r=e.showGlyphMargin;var i=0|e.lineHeight;var o=e.showLineNumbers;var a=0|e.lineNumbersMinChars;var s=0|e.lineNumbersDigitCount;var u=0|e.lineDecorationsWidth;var l=e.typicalHalfwidthCharacterWidth;var c=e.maxDigitWidth;var d=0|e.verticalScrollbarWidth;var h=e.verticalScrollbarHasArrows;var f=0|e.scrollbarArrowSize;var p=0|e.horizontalScrollbarHeight;var g=e.minimap;var v=e.minimapSide;var m=e.minimapRenderCharacters;var _=0|e.minimapMaxColumn;var y=e.pixelRatio;var b=0;if(o){var C=Math.max(s,a);b=Math.round(C*c)}var w=0;r&&(w=i);var S=0;var L=S+w;var I=L+b;var x=I+u;var N=t-w-b-u;var M;var D;var k;var O;if(g){var E=void 0;if(y>=2){M=m?2:4;E=2/y}else{M=m?1:3;E=1/y}var T;(k=Math.max(0,Math.floor((N-d-2)*E/(l+E))))/E>_&&(k=Math.floor(_*E));O=N-k;if("left"===v){D=0;S+=k;L+=k;I+=k;x+=k}else D=t-k-d}else{D=0;k=0;M=0;O=N}var A=Math.max(1,Math.floor((O-d-2)/l));var R=h?f:0;return{width:t,height:n,glyphMarginLeft:S,glyphMarginWidth:w,glyphMarginHeight:n,lineNumbersLeft:L,lineNumbersWidth:b,lineNumbersHeight:n,decorationsLeft:I,decorationsWidth:u,decorationsHeight:n,contentLeft:x,contentWidth:O,contentHeight:n,renderMinimap:M,minimapLeft:D,minimapWidth:k,viewportColumn:A,verticalScrollbarWidth:d,horizontalScrollbarHeight:p,overviewRuler:{top:R,width:d,height:n-2*R,right:0}}};return e}();var x="Consolas, 'Courier New', monospace";var N="Menlo, Monaco, 'Courier New', monospace";var M="'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'";var D={fontFamily:a["d"]?N:a["c"]?M:x,fontWeight:"normal",fontSize:a["d"]?12:14,lineHeight:0,letterSpacing:0};var k={tabSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0};var O={inDiffEditor:!1,wordSeparators:s["b"],lineNumbersMinChars:5,lineDecorationsWidth:10,readOnly:!1,mouseStyle:"text",disableLayerHinting:!1,automaticLayout:!1,wordWrap:"off",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:1,wordWrapBreakBeforeCharacters:"([{‘“〈《「『【〔([{「£¥$£¥++",wordWrapBreakAfterCharacters:" \t})]?|&,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」",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:r["a"]("editorViewAccessibleLabel","Editor content"),renderLineNumbers:1,renderCustomLineNumbers:null,selectOnLineNumbers:!0,glyphMargin:!0,revealHorizontalRightPadding:30,roundedSelection:!0,overviewRulerLanes:2,overviewRulerBorder:!0,cursorBlinking:1,mouseWheelZoom:!1,cursorStyle:c.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},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},iconsInSuggestions:!0,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},selectionHighlight:!0,occurrencesHighlight:!0,codeLens:!0,folding:!0,foldingStrategy:"auto",showFoldingControls:"mouseover",matchBrackets:!0,find:{seedSearchStringFromSelection:!0,autoFindInSelection:!1,globalFindClipboard:!1},colorDecorators:!0,lightbulbEnabled:!0,codeActionsOnSave:{},codeActionsOnSaveTimeout:750}}},USFi:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,'/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n.monaco-tree {\r\n\theight: 100%;\r\n\twidth: 100%;\r\n\twhite-space: nowrap;\r\n\t-webkit-user-select: none;\r\n\t-khtml-user-select: none;\r\n\t-moz-user-select: -moz-none;\r\n\t-ms-user-select: none;\r\n\t-o-user-select: none;\r\n\tuser-select: none;\r\n\tposition: relative;\r\n}\r\n\r\n.monaco-tree > .monaco-scrollable-element {\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-tree > .monaco-scrollable-element > .monaco-tree-wrapper {\r\n\theight: 100%;\r\n\twidth: 100%;\r\n\tposition: relative;\r\n}\r\n\r\n.monaco-tree .monaco-tree-rows {\r\n\tposition: absolute;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-tree .monaco-tree-rows > .monaco-tree-row {\r\n\t-moz-box-sizing:\tborder-box;\r\n\t-o-box-sizing:\t\tborder-box;\r\n\t-ms-box-sizing:\t\tborder-box;\r\n\tbox-sizing:\t\t\tborder-box;\r\n\tcursor: pointer;\r\n\toverflow: hidden;\r\n\twidth: 100%;\r\n\ttouch-action: none;\r\n}\r\n\r\n.monaco-tree .monaco-tree-rows > .monaco-tree-row > .content {\r\n\tposition: relative;\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-tree-drag-image {\r\n\tdisplay: inline-block;\r\n\tpadding: 1px 7px;\r\n\tborder-radius: 10px;\r\n\tfont-size: 12px;\r\n\tposition: absolute;\r\n}\r\n\r\n/* for OS X ballistic scrolling */\r\n.monaco-tree .monaco-tree-rows > .monaco-tree-row.scrolling {\r\n\tdisplay: none;\r\n}\r\n\r\n/* Expansion */\r\n\r\n.monaco-tree .monaco-tree-rows.show-twisties > .monaco-tree-row.has-children > .content:before {\r\n\tcontent: \' \';\r\n\tposition: absolute;\r\n\tdisplay: block;\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iIzY0NjQ2NSIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRMOC41ODYgOCA3IDkuNTg2VjYuNDE0eiIvPjwvc3ZnPg==") 50% 50% no-repeat;\r\n\twidth: 16px;\r\n\theight: 100%;\r\n\ttop: 0;\r\n\tleft: -16px;\r\n}\r\n\r\n.monaco-tree .monaco-tree-rows.show-twisties > .monaco-tree-row.expanded > .content:before {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iIzY0NjQ2NSIgZD0iTTExIDEwSDUuMzQ0TDExIDQuNDE0VjEweiIvPjwvc3ZnPg==");\r\n}\r\n\r\n.monaco-tree .monaco-tree-rows > .monaco-tree-row.has-children.loading > .content:before {\r\n\tbackground-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4NCjxzdmcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJyB2ZXJzaW9uPScxLjEnIHdpZHRoPScxMHB4JyBoZWlnaHQ9JzEwcHgnPg0KCTxzdHlsZT4NCiAgICBjaXJjbGUgew0KICAgICAgYW5pbWF0aW9uOiBiYWxsIDAuNnMgbGluZWFyIGluZmluaXRlOw0KICAgIH0NCg0KICAgIGNpcmNsZTpudGgtY2hpbGQoMikgeyBhbmltYXRpb24tZGVsYXk6IDAuMDc1czsgfQ0KICAgIGNpcmNsZTpudGgtY2hpbGQoMykgeyBhbmltYXRpb24tZGVsYXk6IDAuMTVzOyB9DQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9DQogICAgY2lyY2xlOm50aC1jaGlsZCg1KSB7IGFuaW1hdGlvbi1kZWxheTogMC4zczsgfQ0KICAgIGNpcmNsZTpudGgtY2hpbGQoNikgeyBhbmltYXRpb24tZGVsYXk6IDAuMzc1czsgfQ0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9DQogICAgY2lyY2xlOm50aC1jaGlsZCg4KSB7IGFuaW1hdGlvbi1kZWxheTogMC41MjVzOyB9DQoNCiAgICBAa2V5ZnJhbWVzIGJhbGwgew0KICAgICAgZnJvbSB7IG9wYWNpdHk6IDE7IH0NCiAgICAgIHRvIHsgb3BhY2l0eTogMC4zOyB9DQogICAgfQ0KCTwvc3R5bGU+DQoJPGc+DQoJCTxjaXJjbGUgY3g9JzUnIGN5PScxJyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPg0KCQk8Y2lyY2xlIGN4PSc3LjgyODQnIGN5PScyLjE3MTYnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+DQoJCTxjaXJjbGUgY3g9JzknIGN5PSc1JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPg0KCQk8Y2lyY2xlIGN4PSc3LjgyODQnIGN5PSc3LjgyODQnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+DQoJCTxjaXJjbGUgY3g9JzUnIGN5PSc5JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPg0KCQk8Y2lyY2xlIGN4PScyLjE3MTYnIGN5PSc3LjgyODQnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+DQoJCTxjaXJjbGUgY3g9JzEnIGN5PSc1JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPg0KCQk8Y2lyY2xlIGN4PScyLjE3MTYnIGN5PScyLjE3MTYnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+DQoJPC9nPg0KPC9zdmc+DQo=");\r\n}\r\n\r\n/* Highlighted */\r\n\r\n.monaco-tree.highlighted .monaco-tree-rows > .monaco-tree-row:not(.highlighted) {\r\n\topacity: 0.3;\r\n}\r\n\r\n.vs-dark .monaco-tree .monaco-tree-rows.show-twisties > .monaco-tree-row.has-children > .content:before {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iI0U4RThFOCIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRMOC41ODYgOCA3IDkuNTg2VjYuNDE0eiIvPjwvc3ZnPg==");\r\n}\r\n\r\n.vs-dark .monaco-tree .monaco-tree-rows.show-twisties > .monaco-tree-row.expanded > .content:before {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0iI0U4RThFOCIgZD0iTTExIDEwSDUuMzQ0TDExIDQuNDE0VjEweiIvPjwvc3ZnPg==");\r\n}\r\n\r\n.vs-dark .monaco-tree .monaco-tree-rows > .monaco-tree-row.has-children.loading > .content:before {\r\n\tbackground-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4NCjxzdmcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJyB2ZXJzaW9uPScxLjEnIHdpZHRoPScxMHB4JyBoZWlnaHQ9JzEwcHgnPg0KCTxzdHlsZT4NCiAgICBjaXJjbGUgew0KICAgICAgYW5pbWF0aW9uOiBiYWxsIDAuNnMgbGluZWFyIGluZmluaXRlOw0KICAgIH0NCg0KICAgIGNpcmNsZTpudGgtY2hpbGQoMikgeyBhbmltYXRpb24tZGVsYXk6IDAuMDc1czsgfQ0KICAgIGNpcmNsZTpudGgtY2hpbGQoMykgeyBhbmltYXRpb24tZGVsYXk6IDAuMTVzOyB9DQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9DQogICAgY2lyY2xlOm50aC1jaGlsZCg1KSB7IGFuaW1hdGlvbi1kZWxheTogMC4zczsgfQ0KICAgIGNpcmNsZTpudGgtY2hpbGQoNikgeyBhbmltYXRpb24tZGVsYXk6IDAuMzc1czsgfQ0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9DQogICAgY2lyY2xlOm50aC1jaGlsZCg4KSB7IGFuaW1hdGlvbi1kZWxheTogMC41MjVzOyB9DQoNCiAgICBAa2V5ZnJhbWVzIGJhbGwgew0KICAgICAgZnJvbSB7IG9wYWNpdHk6IDE7IH0NCiAgICAgIHRvIHsgb3BhY2l0eTogMC4zOyB9DQogICAgfQ0KCTwvc3R5bGU+DQoJPGcgc3R5bGU9ImZpbGw6Z3JleTsiPg0KCQk8Y2lyY2xlIGN4PSc1JyBjeT0nMScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4NCgkJPGNpcmNsZSBjeD0nNy44Mjg0JyBjeT0nMi4xNzE2JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPg0KCQk8Y2lyY2xlIGN4PSc5JyBjeT0nNScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4NCgkJPGNpcmNsZSBjeD0nNy44Mjg0JyBjeT0nNy44Mjg0JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPg0KCQk8Y2lyY2xlIGN4PSc1JyBjeT0nOScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4NCgkJPGNpcmNsZSBjeD0nMi4xNzE2JyBjeT0nNy44Mjg0JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPg0KCQk8Y2lyY2xlIGN4PScxJyBjeT0nNScgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4NCgkJPGNpcmNsZSBjeD0nMi4xNzE2JyBjeT0nMi4xNzE2JyByPScxJyBzdHlsZT0nb3BhY2l0eTowLjM7JyAvPg0KCTwvZz4NCjwvc3ZnPg0K");\r\n}\r\n\r\n.hc-black .monaco-tree .monaco-tree-rows.show-twisties > .monaco-tree-row.has-children > .content:before\t{\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTYgNHY4bDQtNC00LTR6bTEgMi40MTRsMS41ODYgMS41ODYtMS41ODYgMS41ODZ2LTMuMTcyeiIvPjwvc3ZnPg==");\r\n}\r\n\r\n.hc-black .monaco-tree .monaco-tree-rows.show-twisties > .monaco-tree-row.expanded > .content:before {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBhdGggZmlsbD0iI2ZmZiIgZD0iTTExIDEwLjA3aC01LjY1Nmw1LjY1Ni01LjY1NnY1LjY1NnoiLz48L3N2Zz4=");\r\n}\r\n\r\n.hc-black .monaco-tree .monaco-tree-rows > .monaco-tree-row.has-children.loading > .content:before {\r\n\tbackground-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBzdGFuZGFsb25lPSdubycgPz4NCjxzdmcgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJyB2ZXJzaW9uPScxLjEnIHdpZHRoPScxMHB4JyBoZWlnaHQ9JzEwcHgnPg0KCTxzdHlsZT4NCiAgICBjaXJjbGUgew0KICAgICAgYW5pbWF0aW9uOiBiYWxsIDAuNnMgbGluZWFyIGluZmluaXRlOw0KICAgIH0NCg0KICAgIGNpcmNsZTpudGgtY2hpbGQoMikgeyBhbmltYXRpb24tZGVsYXk6IDAuMDc1czsgfQ0KICAgIGNpcmNsZTpudGgtY2hpbGQoMykgeyBhbmltYXRpb24tZGVsYXk6IDAuMTVzOyB9DQogICAgY2lyY2xlOm50aC1jaGlsZCg0KSB7IGFuaW1hdGlvbi1kZWxheTogMC4yMjVzOyB9DQogICAgY2lyY2xlOm50aC1jaGlsZCg1KSB7IGFuaW1hdGlvbi1kZWxheTogMC4zczsgfQ0KICAgIGNpcmNsZTpudGgtY2hpbGQoNikgeyBhbmltYXRpb24tZGVsYXk6IDAuMzc1czsgfQ0KICAgIGNpcmNsZTpudGgtY2hpbGQoNykgeyBhbmltYXRpb24tZGVsYXk6IDAuNDVzOyB9DQogICAgY2lyY2xlOm50aC1jaGlsZCg4KSB7IGFuaW1hdGlvbi1kZWxheTogMC41MjVzOyB9DQoNCiAgICBAa2V5ZnJhbWVzIGJhbGwgew0KICAgICAgZnJvbSB7IG9wYWNpdHk6IDE7IH0NCiAgICAgIHRvIHsgb3BhY2l0eTogMC4zOyB9DQogICAgfQ0KCTwvc3R5bGU+DQoJPGcgc3R5bGU9ImZpbGw6d2hpdGU7Ij4NCgkJPGNpcmNsZSBjeD0nNScgY3k9JzEnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+DQoJCTxjaXJjbGUgY3g9JzcuODI4NCcgY3k9JzIuMTcxNicgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4NCgkJPGNpcmNsZSBjeD0nOScgY3k9JzUnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+DQoJCTxjaXJjbGUgY3g9JzcuODI4NCcgY3k9JzcuODI4NCcgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4NCgkJPGNpcmNsZSBjeD0nNScgY3k9JzknIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+DQoJCTxjaXJjbGUgY3g9JzIuMTcxNicgY3k9JzcuODI4NCcgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4NCgkJPGNpcmNsZSBjeD0nMScgY3k9JzUnIHI9JzEnIHN0eWxlPSdvcGFjaXR5OjAuMzsnIC8+DQoJCTxjaXJjbGUgY3g9JzIuMTcxNicgY3k9JzIuMTcxNicgcj0nMScgc3R5bGU9J29wYWNpdHk6MC4zOycgLz4NCgk8L2c+DQo8L3N2Zz4NCg==");\r\n}\r\n\r\n.monaco-tree-action.collapse-all {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iLTEgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAtMSAwIDE2IDE2Ij48cGF0aCBmaWxsPSIjNDI0MjQyIiBkPSJNMTQgMXY5aC0xdi04aC04di0xaDl6bS0xMSAydjFoOHY4aDF2LTloLTl6bTcgMnY5aC05di05aDl6bS0yIDJoLTV2NWg1di01eiIvPjxyZWN0IHg9IjQiIHk9IjkiIGZpbGw9IiMwMDUzOUMiIHdpZHRoPSIzIiBoZWlnaHQ9IjEiLz48L3N2Zz4=") center center no-repeat;\r\n}\r\n\r\n.hc-black .monaco-tree-action.collapse-all,\r\n.vs-dark .monaco-tree-action.collapse-all {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iLTEgMCAxNiAxNiIgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAtMSAwIDE2IDE2Ij48cGF0aCBmaWxsPSIjQzVDNUM1IiBkPSJNMTQgMXY5aC0xdi04aC04di0xaDl6bS0xMSAydjFoOHY4aDF2LTloLTl6bTcgMnY5aC05di05aDl6bS0yIDJoLTV2NWg1di01eiIvPjxyZWN0IHg9IjQiIHk9IjkiIGZpbGw9IiM3NUJFRkYiIHdpZHRoPSIzIiBoZWlnaHQ9IjEiLz48L3N2Zz4=") center center no-repeat;\r\n}\r\n',""])},UezQ:function(e,t,n){var r={};var i;var o=function(e){var t;return function(){void 0===t&&(t=e.apply(this,arguments));return t}}(function(){return window&&document&&document.all&&!window.atob});var a=function(e,t){if(t)return t.querySelector(e);return document.querySelector(e)};var s=(l={},function(e,t){if("function"==typeof e)return e();if(void 0===l[e]){var n=a.call(this,e,t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}l[e]=n}return l[e]});var u,l;var c=null;var d=0;var h=[];var f=n("lDLK");e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{};t.singleton||"boolean"==typeof t.singleton||(t.singleton=o());t.insertInto||(t.insertInto="head");t.insertAt||(t.insertAt="bottom");var n=g(e,t);p(n,t);return function e(i){var o=[];for(var a=0;a<n.length;a++){var s=n[a];var u;(u=r[s.id]).refs--;o.push(u)}if(i){var l;p(g(i,t),t)}for(var a=0;a<o.length;a++){var u;if(0===(u=o[a]).refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete r[u.id]}}}};function p(e,t){for(var n=0;n<e.length;n++){var i=e[n];var o=r[i.id];if(o){o.refs++;for(var a=0;a<o.parts.length;a++)o.parts[a](i.parts[a]);for(;a<i.parts.length;a++)o.parts.push(w(i.parts[a],t))}else{var s=[];for(var a=0;a<i.parts.length;a++)s.push(w(i.parts[a],t));r[i.id]={id:i.id,refs:1,parts:s}}}}function g(e,t){var n=[];var r={};for(var i=0;i<e.length;i++){var o=e[i];var a=t.base?o[0]+t.base:o[0];var s;var u;var l;var c={css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(c):n.push(r[a]={id:a,parts:[c]})}return n}function v(e,t){var n=s(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=h[h.length-1];if("top"===e.insertAt){r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild);h.push(t)}else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=s(e.insertAt.before,n);n.insertBefore(t,i)}}function m(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=h.indexOf(e);t>=0&&h.splice(t,1)}function _(e){var t=document.createElement("style");void 0===e.attrs.type&&(e.attrs.type="text/css");if(void 0===e.attrs.nonce){var n=C();n&&(e.attrs.nonce=n)}b(t,e.attrs);v(e,t);return t}function y(e){var t=document.createElement("link");void 0===e.attrs.type&&(e.attrs.type="text/css");e.attrs.rel="stylesheet";b(t,e.attrs);v(e,t);return t}function b(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function C(){0;return n.nc}function w(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o="function"==typeof t.transform?t.transform(e.css):t.transform.default(e.css)))return function(){};e.css=o}if(t.singleton){var a=d++;n=c||(c=_(t));r=I.bind(null,n,a,!1);i=I.bind(null,n,a,!0)}else if(e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa){n=y(t);r=N.bind(null,n,t);i=function(){m(n);n.href&&URL.revokeObjectURL(n.href)}}else{n=_(t);r=x.bind(null,n);i=function(){m(n)}}r(e);return function t(n){if(n){if(n.css===e.css&&n.media===e.media&&n.sourceMap===e.sourceMap)return;r(e=n)}else i()}}var S=(L=[],function(e,t){L[e]=t;return L.filter(Boolean).join("\n")});var L;function I(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=S(t,i);else{var o=document.createTextNode(i);var a=e.childNodes;a[t]&&e.removeChild(a[t]);a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function x(e,t){var n=t.css;var r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function N(e,t,n){var r=n.css;var i=n.sourceMap;var o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=f(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"});var s=e.href;e.href=URL.createObjectURL(a);s&&URL.revokeObjectURL(s)}},VHqg:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("TihM");var i=Object(r["c"])("textModelService")},VmjZ:function(e,t,n){"use strict";n.r(t);n.d(t,"ContextMenuController",function(){return m});var r=n("ITjR");var i=n("zxKB");var o=n("m0dU");var a=n("KVQV");var s=n("jlTA");var u=n("gYaU");var l=n("WTqa");var c=n("zgcD");var d=n("E5Z7");var h=n("+y1K");var f=(p=function(e,t){return(p=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])})(e,t)},function(e,t){p(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var p;var g=function(e,t,n,r){var i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};var v=function(e,t){return function(n,r){t(n,r,e)}};var m=function(){function e(e,t,n,r,i,o){var a=this;this._contextMenuService=t;this._contextViewService=n;this._contextKeyService=r;this._keybindingService=i;this._menuService=o;this._toDispose=[];this._contextMenuIsBeingShownCount=0;this._editor=e;this._toDispose.push(this._editor.onContextMenu(function(e){return a._onContextMenu(e)}));this._toDispose.push(this._editor.onDidScrollChange(function(e){a._contextMenuIsBeingShownCount>0&&a._contextViewService.hideContextView()}));this._toDispose.push(this._editor.onKeyDown(function(e){if(58===e.keyCode){e.preventDefault();e.stopPropagation();a.showContextMenu()}}))}e.get=function(t){return t.getContribution(e.ID)};e.prototype._onContextMenu=function(e){if(!this._editor.getConfiguration().contribInfo.contextmenu){this._editor.focus();e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);return}if(12===e.target.type)return;e.event.preventDefault();if(6!==e.target.type&&7!==e.target.type&&1!==e.target.type)return;this._editor.focus();e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);var t;1!==e.target.type&&(t={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2});this.showContextMenu(t)};e.prototype.showContextMenu=function(e){if(!this._editor.getConfiguration().contribInfo.contextmenu)return;if(!this._contextMenuService){this._editor.focus();return}var t=this._getMenuActions();t.length>0&&this._doShowContextMenu(t,e)};e.prototype._getMenuActions=function(){var e=[];var t=this._menuService.createMenu(l["b"].EditorContext,this._contextKeyService);var n=t.getActions({arg:this._editor.getModel().uri});t.dispose();for(var r=0,i=n;r<i.length;r++){var a;var s=i[r][1];e.push.apply(e,s);e.push(new o["d"])}e.pop();return e};e.prototype._doShowContextMenu=function(e,t){var n=this;void 0===t&&(t=null);var r=this._editor.getConfiguration().contribInfo.hover;this._editor.updateOptions({hover:{enabled:!1}});if(!t){this._editor.revealPosition(this._editor.getPosition(),1);this._editor.render();var a=this._editor.getScrolledVisiblePosition(this._editor.getPosition());var s=i["t"](this._editor.getDomNode());var u=s.left+a.left;var l=s.top+a.top+a.height;t={x:u,y:l}}this._contextMenuIsBeingShownCount++;this._contextMenuService.showContextMenu({getAnchor:function(){return t},getActions:function(){return Promise.resolve(e)},getActionItem:function(e){var t=n._keybindingFor(e);if(t)return new o["b"](e,e,{label:!0,keybinding:t.getLabel(),isMenu:!0});var r=e;if("function"==typeof r.getActionItem)return r.getActionItem();return new o["b"](e,e,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:function(e){return n._keybindingFor(e)},onHide:function(e){n._contextMenuIsBeingShownCount--;n._editor.focus();n._editor.updateOptions({hover:r})}})};e.prototype._keybindingFor=function(e){return this._keybindingService.lookupKeybinding(e.id)};e.prototype.getId=function(){return e.ID};e.prototype.dispose=function(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView();this._toDispose=Object(a["d"])(this._toDispose)};e.ID="editor.contrib.contextmenu";return e=g([v(1,d["a"]),v(2,d["b"]),v(3,c["e"]),v(4,h["a"]),v(5,l["a"])],e)}();var _=function(e){f(t,e);function t(){return e.call(this,{id:"editor.action.showContextMenu",label:r["a"]("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:null,kbOpts:{kbExpr:u["a"].textInputFocus,primary:1092,weight:100}})||this}t.prototype.run=function(e,t){var n;m.get(t).showContextMenu()};return t}(s["b"]);Object(s["g"])(m);Object(s["e"])(_)},Vp92:function(e,t,n){"use strict";n.d(t,"b",function(){return s});n.d(t,"a",function(){return u});n.d(t,"f",function(){return l});n.d(t,"e",function(){return d});n.d(t,"d",function(){return f});n.d(t,"c",function(){return p});var r=function(){function e(){this._keyCodeToStr=[];this._strToKeyCode=Object.create(null)}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};return e}();var i=new r;var o=new r;var a=new r;!function(){function e(e,t,n,r){void 0===n&&(n=t);void 0===r&&(r=n);i.define(e,t);o.define(e,n);a.define(e,r)}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")}();var s;!function(e){function t(e){return i.keyCodeToStr(e)}e.toString=t;function n(e){return i.strToKeyCode(e)}e.fromString=n;function r(e){return o.keyCodeToStr(e)}e.toUserSettingsUS=r;function s(e){return a.keyCodeToStr(e)}e.toUserSettingsGeneral=s;function u(e){return o.strToKeyCode(e)||a.strToKeyCode(e)}e.fromUserSettings=u}(s||(s={}));function u(e,t){var n;return(e|(65535&t)<<16>>>0)>>>0}function l(e,t){if(0===e)return null;var n=(65535&e)>>>0;var r=(4294901760&e)>>>16;if(0!==r)return new h(c(n,t),c(r,t));return c(n,t)}function c(e,t){var n=!!(2048&e);var r=!!(256&e);var i;var o;var a;var s;var u;return new d(2===t?r:n,!!(1024&e),!!(512&e),2===t?n:r,255&e)}var d=function(){function e(e,t,n,r,i){this.type=1;this.ctrlKey=e;this.shiftKey=t;this.altKey=n;this.metaKey=r;this.keyCode=i}e.prototype.equals=function(e){if(1!==e.type)return!1;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.isDuplicateModifierCase=function(){return this.ctrlKey&&5===this.keyCode||this.shiftKey&&4===this.keyCode||this.altKey&&6===this.keyCode||this.metaKey&&57===this.keyCode};return e}();var h=function(){function e(e,t){this.type=2;this.firstPart=e;this.chordPart=t}return e}();var f=function(){function e(e,t,n,r,i,o){this.ctrlKey=e;this.shiftKey=t;this.altKey=n;this.metaKey=r;this.keyLabel=i;this.keyAriaLabel=o}return e}();var p=function(){function e(){}return e}()},W5Z6:function(e,t,n){"use strict";n.d(t,"d",function(){return u});n.d(t,"e",function(){return l});n.d(t,"f",function(){return c});n.d(t,"a",function(){return f});n.d(t,"b",function(){return p});n.d(t,"c",function(){return g});var r;var i={};function o(e){var t=e.detail;var n=t.id;if(t.parent){t.handler&&i&&delete i[n];return}i[n]=t;1===Object.keys(i).length&&setTimeout(function(){var e=i;i={};Object.keys(e).forEach(function(t){var n=e[t];n.exception?u(n.exception):n.error&&u(n.error);console.log("WARNING: Promise with no error callback:"+n.id);console.log(n);n.exception&&console.log(n.exception.stack)})},0)}n("eu5a")["b"].addEventListener("error",o);var a;var s=new(function(){function e(){this.listeners=[];this.unexpectedErrorHandler=function(e){setTimeout(function(){if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}e.prototype.emit=function(e){this.listeners.forEach(function(t){t(e)})};e.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e);this.emit(e)};e.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)};return e}());function u(e){h(e)||s.onUnexpectedError(e);return}function l(e){h(e)||s.onUnexpectedExternalError(e);return}function c(e){if(e instanceof Error){var t,n;var r;return{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack}}return e}var d="Canceled";function h(e){return e instanceof Error&&e.name===d&&e.message===d}function f(){var e=new Error(d);e.name=e.message;return e}function p(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")}function g(e){return e?new Error("Illegal state: "+e):new Error("Illegal state")}},WTqa:function(e,t,n){"use strict";n.d(t,"f",function(){return d});n.d(t,"b",function(){return h});n.d(t,"a",function(){return f});n.d(t,"d",function(){return p});n.d(t,"e",function(){return v});n.d(t,"c",function(){return m});var r=n("5BWK");var i=n("TihM");var o=n("zgcD");var a=n("rCf5");var s=(u=function(e,t){return(u=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])})(e,t)},function(e,t){u(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var u;var l=function(e,t,n,r){var i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};var c=function(e,t){return function(n,r){t(n,r,e)}};function d(e){return void 0!==e.command}var h=function(){function e(){this.id=String(e.ID++)}e.ID=1;e.EditorContext=new e;e.CommandPalette=new e;e.MenubarEditMenu=new e;e.MenubarSelectionMenu=new e;e.MenubarGoMenu=new e;return e}();var f=Object(i["c"])("menuService");var p=new(function(){function e(){this._commands=Object.create(null);this._menuItems=Object.create(null)}e.prototype.addCommand=function(e){var t=this._commands[e.id];this._commands[e.id]=e;return void 0!==t};e.prototype.getCommand=function(e){return this._commands[e]};e.prototype.getCommands=function(){var e=Object.create(null);for(var t in this._commands)e[t]=this.getCommand(t);return e};e.prototype.appendMenuItem=function(e,t){var n=e.id;var r=this._menuItems[n];r?r.push(t):this._menuItems[n]=r=[t];return{dispose:function(){var e=r.indexOf(t);e>=0&&r.splice(e,1)}}};e.prototype.getMenuItems=function(e){var t=e.id;var n=this._menuItems[t]||[];t===h.CommandPalette.id&&this._appendImplicitItems(n);return n};e.prototype._appendImplicitItems=function(e){var t=new Set;var n;for(var r=0,i=e.filter(function(e){return d(e)});r<i.length;r++){var o=i[r],a=o.command,s=o.alt;t.add(a.id);s&&t.add(s.id)}for(var u in this._commands)t.has(u)||e.push({command:this._commands[u]})};return e}());var g=function(e){s(t,e);function t(t,n,r){var i=e.call(this,t,n)||this;i._commandService=r;return i}t.prototype.run=function(){var e=[];for(var t=0;t<arguments.length;t++)e[t]=arguments[t];var n;return(n=this._commandService).executeCommand.apply(n,[this.id].concat(e))};return t=l([c(2,a["b"])],t)}(r["a"]);var v=function(e){s(t,e);function t(t){var n=this;(n="string"==typeof t.title?e.call(this,"",t.title,"submenu")||this:e.call(this,"",t.title.value,"submenu")||this).item=t;return n}return t}(r["a"]);var m=function(e){s(t,e);function t(n,r,i,o,a){var s=this;(s="string"==typeof n.title?e.call(this,n.id,n.title,a)||this:e.call(this,n.id,n.title.value,a)||this)._cssClass=void 0;s._enabled=!n.precondition||o.contextMatchesRules(n.precondition);s._checked=Boolean(n.toggled&&o.contextMatchesRules(n.toggled));s._options=i||{};s.item=n;s.alt=r?new t(r,void 0,s._options,o,a):void 0;return s}t.prototype.run=function(){var t=[];for(var n=0;n<arguments.length;n++)t[n]=arguments[n];var r=[];this._options.arg&&(r=r.concat([this._options.arg]));this._options.shouldForwardArgs&&(r=r.concat(t));return e.prototype.run.apply(this,r)};return t=l([c(3,o["e"]),c(4,a["b"])],t)}(g)},WVOh:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/*\r\n\tKeeping name short for faster parsing.\r\n\tcmdr = core margin decorations rendering (div)\r\n*/\r\n.monaco-editor .margin-view-overlays .cmdr {\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}",""])},WXda:function(e,t,n){var r=n("WVOh");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},WmvC:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/*\r\n\tKeeping name short for faster parsing.\r\n\tcigr = core ident guides rendering (div)\r\n*/\r\n.monaco-editor .lines-content .cigr {\r\n\tposition: absolute;\r\n}\r\n.monaco-editor .lines-content .cigra {\r\n\tposition: absolute;\r\n}\r\n",""])},"Xa9+":function(e,t,n){"use strict";n.d(t,"d",function(){return a});n.d(t,"c",function(){return c});n.d(t,"b",function(){return d});n.d(t,"a",function(){return f});var r=(i=function(e,t){return(i=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])})(e,t)},function(e,t){i(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var i;function o(e){var t=[];e.forEach(function(e){return t.push(e)});return t}function a(e){var t=[];e.forEach(function(e,n){return t.push(n)});return t}var s=function(){function e(){this._value="";this._pos=0}e.prototype.reset=function(e){this._value=e;this._pos=0;return this};e.prototype.next=function(){this._pos+=1;return this};e.prototype.hasNext=function(){return this._pos<this._value.length-1};e.prototype.cmp=function(e){var t;var n;return e.charCodeAt(0)-this._value.charCodeAt(this._pos)};e.prototype.value=function(){return this._value[this._pos]};return e}();var u=function(){function e(){}e.prototype.reset=function(e){this._value=e.replace(/\\$|\/$/,"");this._from=0;this._to=0;return this.next()};e.prototype.hasNext=function(){return this._to<this._value.length};e.prototype.next=function(){this._from=this._to;var e=!0;for(;this._to<this._value.length;this._to++){var t=this._value.charCodeAt(this._to);if(47===t||92===t){if(!e)break;this._from++}else e=!1}return this};e.prototype.cmp=function(e){var t=0;var n=e.length;var r=this._from;for(;t<n&&r<this._to;){var i=e.charCodeAt(t)-this._value.charCodeAt(r);if(0!==i)return i;t+=1;r+=1}return n===this._to-this._from?0:t<n?-1:1};e.prototype.value=function(){return this._value.substring(this._from,this._to)};return e}();var l=function(){function e(){}return e}();var c=function(){function e(e){this._iter=e}e.forPaths=function(){return new e(new u)};e.forStrings=function(){return new e(new s)};e.prototype.clear=function(){this._root=void 0};e.prototype.set=function(e,t){var n=this._iter.reset(e);var r;if(!this._root){this._root=new l;this._root.segment=n.value()}r=this._root;for(;;){var i=n.cmp(r.segment);if(i>0){if(!r.left){r.left=new l;r.left.segment=n.value()}r=r.left}else if(i<0){if(!r.right){r.right=new l;r.right.segment=n.value()}r=r.right}else{if(!n.hasNext())break;n.next();if(!r.mid){r.mid=new l;r.mid.segment=n.value()}r=r.mid}}var o=r.value;r.value=t;r.key=e;return o};e.prototype.get=function(e){var t=this._iter.reset(e);var n=this._root;for(;n;){var r=t.cmp(n.segment);if(r>0)n=n.left;else if(r<0)n=n.right;else{if(!t.hasNext())break;t.next();n=n.mid}}return n?n.value:void 0};e.prototype.findSubstr=function(e){var t=this._iter.reset(e);var n=this._root;var r=void 0;for(;n;){var i=t.cmp(n.segment);if(i>0)n=n.left;else if(i<0)n=n.right;else{if(!t.hasNext())break;t.next();r=n.value||r;n=n.mid}}return n&&n.value||r};e.prototype.forEach=function(e){this._forEach(this._root,e)};e.prototype._forEach=function(e,t){if(e){this._forEach(e.left,t);e.value&&t(e.value,e.key);this._forEach(e.mid,t);this._forEach(e.right,t)}};return e}();var d=function(){function e(){this.map=new Map;this.ignoreCase=!1}e.prototype.set=function(e,t){this.map.set(this.toKey(e),t)};e.prototype.get=function(e){return this.map.get(this.toKey(e))};e.prototype.toKey=function(e){var t=e.toString();this.ignoreCase&&(t=t.toLowerCase());return t};return e}();var h;var f=function(e){r(t,e);function t(t,n){void 0===n&&(n=1);var r=e.call(this)||this;r._limit=t;r._ratio=Math.min(Math.max(0,n),1);return r}t.prototype.get=function(t){return e.prototype.get.call(this,t,2)};t.prototype.set=function(t,n){e.prototype.set.call(this,t,n,2);this.checkTrim()};t.prototype.checkTrim=function(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))};return t}(function(){function e(){this._map=new Map;this._head=void 0;this._tail=void 0;this._size=0}e.prototype.clear=function(){this._map.clear();this._head=void 0;this._tail=void 0;this._size=0};Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0});e.prototype.get=function(e,t){void 0===t&&(t=0);var n=this._map.get(e);if(!n)return;0!==t&&this.touch(n,t);return n.value};e.prototype.set=function(e,t,n){void 0===n&&(n=0);var r=this._map.get(e);if(r){r.value=t;0!==n&&this.touch(r,n)}else{r={key:e,value:t,next:void 0,previous:void 0};switch(n){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:default:this.addItemLast(r)}this._map.set(e,r);this._size++}};e.prototype.forEach=function(e,t){var n=this._head;for(;n;){t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this);n=n.next}};e.prototype.trimOld=function(e){if(e>=this.size)return;if(0===e){this.clear();return}var t=this._head;var n=this.size;for(;t&&n>e;){this._map.delete(t.key);t=t.next;n--}this._head=t;this._size=n;t&&(t.previous=void 0)};e.prototype.addItemFirst=function(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head;this._head.previous=e}else this._tail=e;this._head=e};e.prototype.addItemLast=function(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail;this._tail.next=e}else this._head=e;this._tail=e};e.prototype.touch=function(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1!==t&&2!==t)return;if(1===t){if(e===this._head)return;var n=e.next;var r=e.previous;if(e===this._tail){r.next=void 0;this._tail=r}else{n.previous=r;r.next=n}e.previous=void 0;e.next=this._head;this._head.previous=e;this._head=e}else if(2===t){if(e===this._tail)return;var n=e.next;var r=e.previous;if(e===this._head){n.previous=void 0;this._head=n}else{n.previous=r;r.next=n}e.next=void 0;e.previous=this._tail;this._tail.next=e;this._tail=e}};e.prototype.toJSON=function(){var e=[];this.forEach(function(t,n){e.push([n,t])});return e};return e}())},XhnL:function(e,t,n){"use strict";n.d(t,"b",function(){return a});n.d(t,"a",function(){return g});var r=n("PFKJ");var i=n("cENI");var o=function(){function e(e,t,n,r,i){this.languageIdentifier=e;this.open=t;this.close=n;this.forwardRegex=r;this.reversedRegex=i}return e}();var a=function(){function e(e,t){var n=this;this.brackets=t.map(function(t){return new o(e,t[0],t[1],u({open:t[0],close:t[1]}),l({open:t[0],close:t[1]}))});this.forwardRegex=c(this.brackets);this.reversedRegex=d(this.brackets);this.textIsBracket={};this.textIsOpenBracket={};var r=0;this.brackets.forEach(function(e){n.textIsBracket[e.open.toLowerCase()]=e;n.textIsBracket[e.close.toLowerCase()]=e;n.textIsOpenBracket[e.open.toLowerCase()]=!0;n.textIsOpenBracket[e.close.toLowerCase()]=!1;r=Math.max(r,e.open.length);r=Math.max(r,e.close.length)});this.maxBracketLength=r}return e}();function s(e,t){var n={};return function(r){var i=e(r);n.hasOwnProperty(i)||(n[i]=t(r));return n[i]}}var u=s(function(e){return e.open+";"+e.close},function(e){return f([e.open,e.close])});var l=s(function(e){return e.open+";"+e.close},function(e){return f([p(e.open),p(e.close)])});var c=s(function(e){return e.map(function(e){return e.open+";"+e.close}).join(";")},function(e){var t=[];e.forEach(function(e){t.push(e.open);t.push(e.close)});return f(t)});var d=s(function(e){return e.map(function(e){return e.open+";"+e.close}).join(";")},function(e){var t=[];e.forEach(function(e){t.push(p(e.open));t.push(p(e.close))});return f(t)});function h(e){var t=/^[\w]+$/.test(e);e=r["l"](e);return t?"\\b"+e+"\\b":e}function f(e){var t="("+e.map(h).join(")|(")+")";return r["g"](t,!0)}var p=function(){function e(e){var t="";for(var n=e.length-1;n>=0;n--)t+=e.charAt(n);return t}var t=null;var n=null;return function r(i){t!==i&&(n=e(t=i));return n}}();var g=function(){function e(){}e._findPrevBracketInText=function(e,t,n,r){var o=n.match(e);if(!o)return null;var a=n.length-(o.index||0);var s=o[0].length;var u=r+a;return new i["a"](t,u-s+1,t,u+1)};e.findPrevBracketInToken=function(e,t,n,r,i){var o;var a=p(n).substring(n.length-i,n.length-r);return this._findPrevBracketInText(e,t,a,r)};e.findNextBracketInText=function(e,t,n,r){var o=n.match(e);if(!o)return null;var a=o.index||0;var s=o[0].length;if(0===s)return null;var u=r+a;return new i["a"](t,u+1,t,u+1+s)};e.findNextBracketInToken=function(e,t,n,r,i){var o=n.substring(r,i);return this.findNextBracketInText(e,t,o,r)};return e}()},Xr2y:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-inputbox {\r\n\tposition: relative;\r\n\tdisplay: block;\r\n\tpadding: 0;\r\n\t-webkit-box-sizing:\tborder-box;\r\n\t-o-box-sizing:\t\tborder-box;\r\n\t-moz-box-sizing:\tborder-box;\r\n\t-ms-box-sizing:\t\tborder-box;\r\n\tbox-sizing:\t\t\tborder-box;\r\n\tline-height: auto !important;\r\n\r\n\t/* Customizable */\r\n\tfont-size: inherit;\r\n}\r\n\r\n.monaco-inputbox.idle {\r\n\tborder: 1px solid transparent;\r\n}\r\n\r\n.monaco-inputbox > .wrapper > .input,\r\n.monaco-inputbox > .wrapper > .mirror {\r\n\r\n\t/* Customizable */\r\n\tpadding: 4px;\r\n}\r\n\r\n.monaco-inputbox > .wrapper {\r\n\tposition: relative;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-inputbox > .wrapper > .input {\r\n\tdisplay: inline-block;\r\n\t-webkit-box-sizing:\tborder-box;\r\n\t-o-box-sizing:\t\tborder-box;\r\n\t-moz-box-sizing:\tborder-box;\r\n\t-ms-box-sizing:\t\tborder-box;\r\n\tbox-sizing:\t\t\tborder-box;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\tline-height: inherit;\r\n\tborder: none;\r\n\tfont-family: inherit;\r\n\tfont-size: inherit;\r\n\tresize: none;\r\n\tcolor: inherit;\r\n}\r\n\r\n.monaco-inputbox > .wrapper > input {\r\n\ttext-overflow: ellipsis;\r\n}\r\n\r\n.monaco-inputbox > .wrapper > textarea.input {\r\n\tdisplay: block;\r\n\toverflow: hidden;\r\n}\r\n\r\n.monaco-inputbox > .wrapper > .mirror {\r\n\tposition: absolute;\r\n\tdisplay: inline-block;\r\n\twidth: 100%;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\t-webkit-box-sizing:\tborder-box;\r\n\t-o-box-sizing:\t\tborder-box;\r\n\t-moz-box-sizing:\tborder-box;\r\n\t-ms-box-sizing:\t\tborder-box;\r\n\tbox-sizing:\t\t\tborder-box;\r\n\twhite-space: pre-wrap;\r\n\tvisibility: hidden;\r\n\tmin-height: 26px;\r\n\tword-wrap: break-word;\r\n}\r\n\r\n/* Context view */\r\n\r\n.monaco-inputbox-container {\r\n\ttext-align: right;\r\n}\r\n\r\n.monaco-inputbox-container .monaco-inputbox-message {\r\n\tdisplay: inline-block;\r\n\toverflow: hidden;\r\n\ttext-align: left;\r\n\twidth: 100%;\r\n\t-webkit-box-sizing:\tborder-box;\r\n\t-o-box-sizing:\t\tborder-box;\r\n\t-moz-box-sizing:\tborder-box;\r\n\t-ms-box-sizing:\t\tborder-box;\r\n\tbox-sizing:\t\t\tborder-box;\r\n\tpadding: 0.4em;\r\n\tfont-size: 12px;\r\n\tline-height: 17px;\r\n\tmin-height: 34px;\r\n\tmargin-top: -1px;\r\n\tword-wrap: break-word;\r\n}\r\n\r\n/* Action bar support */\r\n.monaco-inputbox .monaco-action-bar {\r\n\tposition: absolute;\r\n\tright: 2px;\r\n\ttop: 4px;\r\n}\r\n\r\n.monaco-inputbox .monaco-action-bar .action-item {\r\n\tmargin-left: 2px;\r\n}\r\n\r\n.monaco-inputbox .monaco-action-bar .action-item .icon {\r\n\tbackground-repeat: no-repeat;\r\n\twidth: 16px;\r\n\theight: 16px;\r\n}",""])},Y0eL:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n.monaco-editor .cursors-layer {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n}\r\n\r\n.monaco-editor .cursors-layer > .cursor {\r\n\tposition: absolute;\r\n\tcursor: text;\r\n\toverflow: hidden;\r\n}\r\n\r\n/* -- block-outline-style -- */\r\n.monaco-editor .cursors-layer.cursor-block-outline-style > .cursor {\r\n\tbox-sizing: border-box;\r\n\tbackground: transparent !important;\r\n\tborder-style: solid;\r\n\tborder-width: 1px;\r\n}\r\n\r\n/* -- underline-style -- */\r\n.monaco-editor .cursors-layer.cursor-underline-style > .cursor {\r\n\tborder-bottom-width: 2px;\r\n\tborder-bottom-style: solid;\r\n\tbackground: transparent !important;\r\n\tbox-sizing: border-box;\r\n}\r\n\r\n/* -- underline-thin-style -- */\r\n.monaco-editor .cursors-layer.cursor-underline-thin-style > .cursor {\r\n\tborder-bottom-width: 1px;\r\n\tborder-bottom-style: solid;\r\n\tbackground: transparent !important;\r\n\tbox-sizing: border-box;\r\n}\r\n\r\n@keyframes monaco-cursor-smooth {\r\n\t0%,\r\n\t20% {\r\n\t\topacity: 1;\r\n\t}\r\n\t60%,\r\n\t100% {\r\n\t\topacity: 0;\r\n\t}\r\n}\r\n\r\n@keyframes monaco-cursor-phase {\r\n\t0%,\r\n\t20% {\r\n\t\topacity: 1;\r\n\t}\r\n\t90%,\r\n\t100% {\r\n\t\topacity: 0;\r\n\t}\r\n}\r\n\r\n@keyframes monaco-cursor-expand {\r\n\t0%,\r\n\t20% {\r\n\t\ttransform: scaleY(1);\r\n\t}\r\n\t80%,\r\n\t100% {\r\n\t\ttransform: scaleY(0);\r\n\t}\r\n}\r\n\r\n.cursor-smooth {\r\n\tanimation: monaco-cursor-smooth 0.5s ease-in-out 0s 20 alternate;\r\n}\r\n\r\n.cursor-phase {\r\n\tanimation: monaco-cursor-phase 0.5s ease-in-out 0s 20 alternate;\r\n}\r\n\r\n.cursor-expand > .cursor {\r\n\tanimation: monaco-cursor-expand 0.5s ease-in-out 0s 20 alternate;\r\n}",""])},YCp2:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-menu .monaco-action-bar.vertical .action-label.hover {\r\n\tbackground-color: #EEE;\r\n}",""])},Yn0l:function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("GDdU");var i=n("Ni+E");var o;var a=new(function(){function e(){this.data={}}e.prototype.add=function(e,t){i["a"](r["h"](e));i["a"](r["g"](t));i["a"](!this.data.hasOwnProperty(e),"There is already an extension with this id");this.data[e]=t};e.prototype.as=function(e){return this.data[e]||null};return e}())},Z2dV:function(e,t,n){"use strict";n.d(t,"a",function(){return a});n.d(t,"lb",function(){return l});n.d(t,"C",function(){return c});n.d(t,"B",function(){return d});n.d(t,"e",function(){return f});n.d(t,"b",function(){return p});n.d(t,"qb",function(){return m});n.d(t,"E",function(){return _});n.d(t,"G",function(){return y});n.d(t,"F",function(){return b});n.d(t,"D",function(){return C});n.d(t,"K",function(){return w});n.d(t,"M",function(){return S});n.d(t,"L",function(){return L});n.d(t,"N",function(){return I});n.d(t,"P",function(){return x});n.d(t,"O",function(){return N});n.d(t,"H",function(){return M});n.d(t,"J",function(){return D});n.d(t,"I",function(){return k});n.d(t,"T",function(){return T});n.d(t,"U",function(){return A});n.d(t,"Q",function(){return R});n.d(t,"R",function(){return P});n.d(t,"Y",function(){return j});n.d(t,"Z",function(){return W});n.d(t,"X",function(){return F});n.d(t,"V",function(){return z});n.d(t,"W",function(){return V});n.d(t,"S",function(){return B});n.d(t,"jb",function(){return U});n.d(t,"ib",function(){return Z});n.d(t,"c",function(){return G});n.d(t,"d",function(){return Y});n.d(t,"mb",function(){return K});n.d(t,"ob",function(){return Q});n.d(t,"pb",function(){return q});n.d(t,"nb",function(){return J});n.d(t,"kb",function(){return X});n.d(t,"bb",function(){return $});n.d(t,"cb",function(){return ee});n.d(t,"ab",function(){return te});n.d(t,"fb",function(){return ne});n.d(t,"db",function(){return re});n.d(t,"eb",function(){return ie});n.d(t,"gb",function(){return oe});n.d(t,"m",function(){return ae});n.d(t,"t",function(){return se});n.d(t,"y",function(){return ue});n.d(t,"z",function(){return le});n.d(t,"A",function(){return ce});n.d(t,"v",function(){return de});n.d(t,"w",function(){return he});n.d(t,"u",function(){return fe});n.d(t,"x",function(){return pe});n.d(t,"n",function(){return ve});n.d(t,"p",function(){return me});n.d(t,"r",function(){return _e});n.d(t,"o",function(){return ye});n.d(t,"q",function(){return be});n.d(t,"s",function(){return Ce});n.d(t,"f",function(){return xe});n.d(t,"g",function(){return Ne});n.d(t,"i",function(){return Me});n.d(t,"k",function(){return De});n.d(t,"j",function(){return ke});n.d(t,"l",function(){return Oe});n.d(t,"h",function(){return Ee});n.d(t,"hb",function(){return We});var r=n("Yn0l");var i=n("gVYO");var o=n("ITjR");var a={ColorContribution:"base.contributions.colors"};var s;var u=new(function(){function e(){this.colorSchema={type:"object",description:o["a"]("schema.colors","Colors used in the workbench."),properties:{},additionalProperties:!1};this.colorReferenceSchema={type:"string",enum:[],enumDescriptions:[]};this.colorsById={}}e.prototype.registerColor=function(e,t,n,r,i){void 0===r&&(r=!1);var o={id:e,description:n,defaults:t,needsTransparency:r,deprecationMessage:i};this.colorsById[e]=o;var a={type:"string",description:n,format:"color-hex",default:"#ff0000"};i&&(a.deprecationMessage=i);this.colorSchema.properties[e]=a;this.colorReferenceSchema.enum.push(e);this.colorReferenceSchema.enumDescriptions.push(n);return e};e.prototype.resolveDefaultColor=function(e,t){var n=this.colorsById[e];if(n&&n.defaults){var r;return He(n.defaults[t.type],t)}return null};e.prototype.toString=function(){var e=this;var t=function(e,t){var n=-1===e.indexOf(".")?0:1;var r=-1===t.indexOf(".")?0:1;if(n!==r)return n-r;return e.localeCompare(t)};return Object.keys(this.colorsById).sort(t).map(function(t){return"- `"+t+"`: "+e.colorsById[t].description}).join("\n")};return e}());r["a"].add(a.ColorContribution,u);function l(e,t,n,r,i){return u.registerColor(e,t,n,r,i)}var c=l("foreground",{dark:"#CCCCCC",light:"#616161",hc:"#FFFFFF"},o["a"]("foreground","Overall foreground color. This color is only used if not overridden by a component."));var d=l("errorForeground",{dark:"#F48771",light:"#A1260D",hc:"#F48771"},o["a"]("errorForeground","Overall foreground color for error messages. This color is only used if not overridden by a component."));var h=l("focusBorder",{dark:i["a"].fromHex("#0E639C").transparent(.8),light:i["a"].fromHex("#007ACC").transparent(.4),hc:"#F38518"},o["a"]("focusBorder","Overall border color for focused elements. This color is only used if not overridden by a component."));var f=l("contrastBorder",{light:null,dark:null,hc:"#6FC3DF"},o["a"]("contrastBorder","An extra border around elements to separate them from others for greater contrast."));var p=l("contrastActiveBorder",{light:null,dark:null,hc:h},o["a"]("activeContrastBorder","An extra border around active elements to separate them from others for greater contrast."));var g=l("textLink.foreground",{light:"#006AB1",dark:"#3794FF",hc:"#3794FF"},o["a"]("textLinkForeground","Foreground color for links in text."));var v=l("textCodeBlock.background",{light:"#dcdcdc66",dark:"#0a0a0a66",hc:i["a"].black},o["a"]("textCodeBlockBackground","Background color for code blocks in text."));var m=l("widget.shadow",{dark:"#000000",light:"#A8A8A8",hc:null},o["a"]("widgetShadow","Shadow color of widgets such as find/replace inside the editor."));var _=l("input.background",{dark:"#3C3C3C",light:i["a"].white,hc:i["a"].black},o["a"]("inputBoxBackground","Input box background."));var y=l("input.foreground",{dark:c,light:c,hc:c},o["a"]("inputBoxForeground","Input box foreground."));var b=l("input.border",{dark:null,light:null,hc:f},o["a"]("inputBoxBorder","Input box border."));var C=l("inputOption.activeBorder",{dark:"#007ACC",light:"#007ACC",hc:p},o["a"]("inputBoxActiveOptionBorder","Border color of activated options in input fields."));var w=l("inputValidation.infoBackground",{dark:"#063B49",light:"#D6ECF2",hc:i["a"].black},o["a"]("inputValidationInfoBackground","Input validation background color for information severity."));var S=l("inputValidation.infoForeground",{dark:null,light:null,hc:null},o["a"]("inputValidationInfoForeground","Input validation foreground color for information severity."));var L=l("inputValidation.infoBorder",{dark:"#007acc",light:"#007acc",hc:f},o["a"]("inputValidationInfoBorder","Input validation border color for information severity."));var I=l("inputValidation.warningBackground",{dark:"#352A05",light:"#F6F5D2",hc:i["a"].black},o["a"]("inputValidationWarningBackground","Input validation background color for warning severity."));var x=l("inputValidation.warningForeground",{dark:null,light:null,hc:null},o["a"]("inputValidationWarningForeground","Input validation foreground color for warning severity."));var N=l("inputValidation.warningBorder",{dark:"#B89500",light:"#B89500",hc:f},o["a"]("inputValidationWarningBorder","Input validation border color for warning severity."));var M=l("inputValidation.errorBackground",{dark:"#5A1D1D",light:"#F2DEDE",hc:i["a"].black},o["a"]("inputValidationErrorBackground","Input validation background color for error severity."));var D=l("inputValidation.errorForeground",{dark:null,light:null,hc:null},o["a"]("inputValidationErrorForeground","Input validation foreground color for error severity."));var k=l("inputValidation.errorBorder",{dark:"#BE1100",light:"#BE1100",hc:f},o["a"]("inputValidationErrorBorder","Input validation border color for error severity."));var O=l("dropdown.background",{dark:"#3C3C3C",light:i["a"].white,hc:i["a"].black},o["a"]("dropdownBackground","Dropdown background."));var E=l("dropdown.foreground",{dark:"#F0F0F0",light:null,hc:i["a"].white},o["a"]("dropdownForeground","Dropdown foreground."));var T=l("list.focusBackground",{dark:"#062F4A",light:"#D6EBFF",hc:null},o["a"]("listFocusBackground","List/Tree background color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."));var A=l("list.focusForeground",{dark:null,light:null,hc:null},o["a"]("listFocusForeground","List/Tree foreground color for the focused item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."));var R=l("list.activeSelectionBackground",{dark:"#094771",light:"#2477CE",hc:null},o["a"]("listActiveSelectionBackground","List/Tree background color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."));var P=l("list.activeSelectionForeground",{dark:i["a"].white,light:i["a"].white,hc:null},o["a"]("listActiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is active. An active list/tree has keyboard focus, an inactive does not."));var j=l("list.inactiveSelectionBackground",{dark:"#37373D",light:"#E4E6F1",hc:null},o["a"]("listInactiveSelectionBackground","List/Tree background color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not."));var W=l("list.inactiveSelectionForeground",{dark:null,light:null,hc:null},o["a"]("listInactiveSelectionForeground","List/Tree foreground color for the selected item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not."));var F=l("list.inactiveFocusBackground",{dark:"#313135",light:"#d8dae6",hc:null},o["a"]("listInactiveFocusBackground","List/Tree background color for the focused item when the list/tree is inactive. An active list/tree has keyboard focus, an inactive does not."));var z=l("list.hoverBackground",{dark:"#2A2D2E",light:"#F0F0F0",hc:null},o["a"]("listHoverBackground","List/Tree background when hovering over items using the mouse."));var V=l("list.hoverForeground",{dark:null,light:null,hc:null},o["a"]("listHoverForeground","List/Tree foreground when hovering over items using the mouse."));var B=l("list.dropBackground",{dark:T,light:T,hc:null},o["a"]("listDropBackground","List/Tree drag and drop background when moving items around using the mouse."));var H=l("list.highlightForeground",{dark:"#0097fb",light:"#0066BF",hc:h},o["a"]("highlight","List/Tree foreground color of the match highlights when searching inside the list/tree."));var U=l("pickerGroup.foreground",{dark:"#3794FF",light:"#0066BF",hc:i["a"].white},o["a"]("pickerGroupForeground","Quick picker color for grouping labels."));var Z=l("pickerGroup.border",{dark:"#3F3F46",light:"#CCCEDB",hc:i["a"].white},o["a"]("pickerGroupBorder","Quick picker color for grouping borders."));var G=l("badge.background",{dark:"#4D4D4D",light:"#C4C4C4",hc:i["a"].black},o["a"]("badgeBackground","Badge background color. Badges are small information labels, e.g. for search results count."));var Y=l("badge.foreground",{dark:i["a"].white,light:"#333",hc:i["a"].white},o["a"]("badgeForeground","Badge foreground color. Badges are small information labels, e.g. for search results count."));var K=l("scrollbar.shadow",{dark:"#000000",light:"#DDDDDD",hc:null},o["a"]("scrollbarShadow","Scrollbar shadow to indicate that the view is scrolled."));var Q=l("scrollbarSlider.background",{dark:i["a"].fromHex("#797979").transparent(.4),light:i["a"].fromHex("#646464").transparent(.4),hc:ze(f,.6)},o["a"]("scrollbarSliderBackground","Scrollbar slider background color."));var q=l("scrollbarSlider.hoverBackground",{dark:i["a"].fromHex("#646464").transparent(.7),light:i["a"].fromHex("#646464").transparent(.7),hc:ze(f,.8)},o["a"]("scrollbarSliderHoverBackground","Scrollbar slider background color when hovering."));var J=l("scrollbarSlider.activeBackground",{dark:i["a"].fromHex("#BFBFBF").transparent(.4),light:i["a"].fromHex("#000000").transparent(.6),hc:f},o["a"]("scrollbarSliderActiveBackground","Scrollbar slider background color when clicked on."));var X=l("progressBar.background",{dark:i["a"].fromHex("#0E70C0"),light:i["a"].fromHex("#0E70C0"),hc:f},o["a"]("progressBarBackground","Background color of the progress bar that can show for long running operations."));var $=l("menu.border",{dark:null,light:null,hc:f},o["a"]("menuBorder","Border color of menus."));var ee=l("menu.foreground",{dark:E,light:E,hc:E},o["a"]("menuForeground","Foreground color of menu items."));var te=l("menu.background",{dark:O,light:O,hc:O},o["a"]("menuBackground","Background color of menu items."));var ne=l("menu.selectionForeground",{dark:P,light:P,hc:P},o["a"]("menuSelectionForeground","Foreground color of the selected menu item in menus."));var re=l("menu.selectionBackground",{dark:R,light:R,hc:R},o["a"]("menuSelectionBackground","Background color of the selected menu item in menus."));var ie=l("menu.selectionBorder",{dark:null,light:null,hc:p},o["a"]("menuSelectionBorder","Border color of the selected menu item in menus."));var oe=l("menu.separatorBackground",{dark:"#BBBBBB",light:"#888888",hc:f},o["a"]("menuSeparatorBackground","Color of a separator menu item in menus."));var ae=l("editor.background",{light:"#fffffe",dark:"#1E1E1E",hc:i["a"].black},o["a"]("editorBackground","Editor background color."));var se=l("editor.foreground",{light:"#333333",dark:"#BBBBBB",hc:i["a"].white},o["a"]("editorForeground","Editor default foreground color."));var ue=l("editorWidget.background",{dark:"#252526",light:"#F3F3F3",hc:"#0C141F"},o["a"]("editorWidgetBackground","Background color of editor widgets, such as find/replace."));var le=l("editorWidget.border",{dark:"#454545",light:"#C8C8C8",hc:f},o["a"]("editorWidgetBorder","Border color of editor widgets. The color is only used if the widget chooses to have a border and if the color is not overridden by a widget."));var ce=l("editorWidget.resizeBorder",{light:null,dark:null,hc:null},o["a"]("editorWidgetResizeBorder","Border color of the resize bar of editor widgets. The color is only used if the widget chooses to have a resize border and if the color is not overridden by a widget."));var de=l("editor.selectionBackground",{light:"#ADD6FF",dark:"#264F78",hc:"#f3f518"},o["a"]("editorSelectionBackground","Color of the editor selection."));var he=l("editor.selectionForeground",{light:null,dark:null,hc:"#000000"},o["a"]("editorSelectionForeground","Color of the selected text for high contrast."));var fe=l("editor.inactiveSelectionBackground",{light:ze(de,.5),dark:ze(de,.5),hc:ze(de,.5)},o["a"]("editorInactiveSelection","Color of the selection in an inactive editor. The color must not be opaque to not hide underlying decorations."),!0);var pe=l("editor.selectionHighlightBackground",{light:Be(de,ae,.3,.6),dark:Be(de,ae,.3,.6),hc:null},o["a"]("editorSelectionHighlight","Color for regions with the same content as the selection. The color must not be opaque to not hide underlying decorations."),!0);var ge=l("editor.selectionHighlightBorder",{light:null,dark:null,hc:p},o["a"]("editorSelectionHighlightBorder","Border color for regions with the same content as the selection."));var ve=l("editor.findMatchBackground",{light:"#A8AC94",dark:"#515C6A",hc:null},o["a"]("editorFindMatch","Color of the current search match."));var me=l("editor.findMatchHighlightBackground",{light:"#EA5C0055",dark:"#EA5C0055",hc:null},o["a"]("findMatchHighlight","Color of the other search matches. The color must not be opaque to not hide underlying decorations."),!0);var _e=l("editor.findRangeHighlightBackground",{dark:"#3a3d4166",light:"#b4b4b44d",hc:null},o["a"]("findRangeHighlight","Color of the range limiting the search. The color must not be opaque to not hide underlying decorations."),!0);var ye=l("editor.findMatchBorder",{light:null,dark:null,hc:p},o["a"]("editorFindMatchBorder","Border color of the current search match."));var be=l("editor.findMatchHighlightBorder",{light:null,dark:null,hc:p},o["a"]("findMatchHighlightBorder","Border color of the other search matches."));var Ce=l("editor.findRangeHighlightBorder",{dark:null,light:null,hc:ze(p,.4)},o["a"]("findRangeHighlightBorder","Border color of the range limiting the search. The color must not be opaque to not hide underlying decorations."),!0);var we=l("editor.hoverHighlightBackground",{light:"#ADD6FF26",dark:"#264f7840",hc:"#ADD6FF26"},o["a"]("hoverHighlight","Highlight below the word for which a hover is shown. The color must not be opaque to not hide underlying decorations."),!0);var Se=l("editorHoverWidget.background",{light:ue,dark:ue,hc:ue},o["a"]("hoverBackground","Background color of the editor hover."));var Le=l("editorHoverWidget.border",{light:le,dark:le,hc:le},o["a"]("hoverBorder","Border color of the editor hover."));var Ie=l("editorLink.activeForeground",{dark:"#4E94CE",light:i["a"].blue,hc:i["a"].cyan},o["a"]("activeLinkForeground","Color of active links."));var xe=new i["a"](new i["b"](155,185,85,.2));var Ne=new i["a"](new i["b"](255,0,0,.2));var Me=l("diffEditor.insertedTextBackground",{dark:xe,light:xe,hc:null},o["a"]("diffEditorInserted","Background color for text that got inserted. The color must not be opaque to not hide underlying decorations."),!0);var De=l("diffEditor.removedTextBackground",{dark:Ne,light:Ne,hc:null},o["a"]("diffEditorRemoved","Background color for text that got removed. The color must not be opaque to not hide underlying decorations."),!0);var ke=l("diffEditor.insertedTextBorder",{dark:null,light:null,hc:"#33ff2eff"},o["a"]("diffEditorInsertedOutline","Outline color for the text that got inserted."));var Oe=l("diffEditor.removedTextBorder",{dark:null,light:null,hc:"#FF008F"},o["a"]("diffEditorRemovedOutline","Outline color for text that got removed."));var Ee=l("diffEditor.border",{dark:null,light:null,hc:f},o["a"]("diffEditorBorder","Border color between the two text editors."));var Te=l("editor.snippetTabstopHighlightBackground",{dark:new i["a"](new i["b"](124,124,124,.3)),light:new i["a"](new i["b"](10,50,100,.2)),hc:new i["a"](new i["b"](124,124,124,.3))},o["a"]("snippetTabstopHighlightBackground","Highlight background color of a snippet tabstop."));var Ae=l("editor.snippetTabstopHighlightBorder",{dark:null,light:null,hc:null},o["a"]("snippetTabstopHighlightBorder","Highlight border color of a snippet tabstop."));var Re=l("editor.snippetFinalTabstopHighlightBackground",{dark:null,light:null,hc:null},o["a"]("snippetFinalTabstopHighlightBackground","Highlight background color of the final tabstop of a snippet."));var Pe=l("editor.snippetFinalTabstopHighlightBorder",{dark:"#525252",light:new i["a"](new i["b"](10,50,100,.5)),hc:"#525252"},o["a"]("snippetFinalTabstopHighlightBorder","Highlight border color of the final stabstop of a snippet."));var je=new i["a"](new i["b"](246,185,77,.7));var We=l("editorOverviewRuler.findMatchForeground",{dark:je,light:je,hc:je},o["a"]("overviewRulerFindMatchForeground","Overview ruler marker color for find matches. The color must not be opaque to not hide underlying decorations."),!0);var Fe=l("editorOverviewRuler.selectionHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hc:"#A0A0A0CC"},o["a"]("overviewRulerSelectionHighlightForeground","Overview ruler marker color for selection highlights. The color must not be opaque to not hide underlying decorations."),!0);function ze(e,t){return function(n){var r=He(e,n);if(r)return r.transparent(t);return null}}function Ve(){var e=[];for(var t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){for(var n=0,r=e;n<r.length;n++){var i;var o=He(r[n],t);if(o)return o}return null}}function Be(e,t,n,r){return function(o){var a=He(e,o);if(a){var s=He(t,o);if(s){if(a.isDarkerThan(s))return i["a"].getLighterColor(a,s,n).transparent(r);return i["a"].getDarkerColor(a,s,n).transparent(r)}return a.transparent(n*r)}return null}}function He(e,t){if(null===e)return null;if("string"==typeof e){if("#"===e[0])return i["a"].fromHex(e);return t.getColor(e)}if(e instanceof i["a"])return e;if("function"==typeof e)return e(t);return null}},ZW5Q:function(e,t,n){var r=n("EWen");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},aAqg:function(e,t,n){"use strict";n.d(t,"a",function(){return p});n.d(t,"b",function(){return g});var r=n("aBfO");var i=n("zxKB");var o=n("kaC/");var a=n("5s6q");var s=n("KVQV");var u=n("9X2a");var l=n("PFKJ");var c=n("fCqX");var d=n("tkRu");var h=(f=function(e,t){return(f=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])})(e,t)},function(e,t){f(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var f;var p={forceCopyWithSyntaxHighlighting:!1};var g=function(e){h(t,e);function t(t,n){var s=e.call(this)||this;s._onFocus=s._register(new a["a"]);s.onFocus=s._onFocus.event;s._onBlur=s._register(new a["a"]);s.onBlur=s._onBlur.event;s._onKeyDown=s._register(new a["a"]);s.onKeyDown=s._onKeyDown.event;s._onKeyUp=s._register(new a["a"]);s.onKeyUp=s._onKeyUp.event;s._onCut=s._register(new a["a"]);s.onCut=s._onCut.event;s._onPaste=s._register(new a["a"]);s.onPaste=s._onPaste.event;s._onType=s._register(new a["a"]);s.onType=s._onType.event;s._onCompositionStart=s._register(new a["a"]);s.onCompositionStart=s._onCompositionStart.event;s._onCompositionUpdate=s._register(new a["a"]);s.onCompositionUpdate=s._onCompositionUpdate.event;s._onCompositionEnd=s._register(new a["a"]);s.onCompositionEnd=s._onCompositionEnd.event;s._onSelectionChangeRequest=s._register(new a["a"]);s.onSelectionChangeRequest=s._onSelectionChangeRequest.event;s._host=t;s._textArea=s._register(new m(n));s._lastTextAreaEvent=0;s._asyncTriggerCut=s._register(new o["c"](function(){return s._onCut.fire()},0));s._textAreaState=c["b"].EMPTY;s.writeScreenReaderContent("ctor");s._hasFocus=!1;s._isDoingComposition=!1;s._nextCommand=0;s._register(i["j"](n.domNode,"keydown",function(e){!s._isDoingComposition||109!==e.keyCode&&1!==e.keyCode||e.stopPropagation();e.equals(9)&&e.preventDefault();s._onKeyDown.fire(e)}));s._register(i["j"](n.domNode,"keyup",function(e){s._onKeyUp.fire(e)}));s._register(i["g"](n.domNode,"compositionstart",function(e){s._lastTextAreaEvent=1;if(s._isDoingComposition)return;s._isDoingComposition=!0;r["h"]||s._setAndWriteTextAreaState("compositionstart",c["b"].EMPTY);s._onCompositionStart.fire()}));var h=function(e,t){var n=s._textAreaState;var r=c["b"].readFromTextArea(s._textArea);return[r,c["b"].deduceInput(n,r,e,t)]};var f=function(e){var t=s._textAreaState;var n=c["b"].selectedText(e);var r;return[n,{text:n.value,replaceCharCnt:t.selectionEnd-t.selectionStart}]};var p=function(e){if(r["h"]&&"ja"===e)return!0;if(r["k"]&&0===e.indexOf("zh-Han"))return!0;return!1};s._register(i["g"](n.domNode,"compositionupdate",function(e){s._lastTextAreaEvent=2;if(p(e.locale)){var t=h(!1,!1),n=t[0],r=t[1];s._textAreaState=n;s._onType.fire(r);s._onCompositionUpdate.fire(e);return}var i=f(e.data),o=i[0],a=i[1];s._textAreaState=o;s._onType.fire(a);s._onCompositionUpdate.fire(e)}));s._register(i["g"](n.domNode,"compositionend",function(e){s._lastTextAreaEvent=3;if(p(e.locale)){var t=h(!1,!1),n=t[0],i=t[1];s._textAreaState=n;s._onType.fire(i)}else{var o=f(e.data),n=o[0],i=o[1];s._textAreaState=n;s._onType.fire(i)}(r["h"]||r["f"])&&(s._textAreaState=c["b"].readFromTextArea(s._textArea));if(!s._isDoingComposition)return;s._isDoingComposition=!1;s._onCompositionEnd.fire()}));s._register(i["g"](n.domNode,"input",function(){var e=8===s._lastTextAreaEvent;s._lastTextAreaEvent=4;s._textArea.setIgnoreSelectionChangeTime("received input event");if(s._isDoingComposition)return;var t=h(u["d"],e&&u["d"]),n=t[0],r=t[1];if(0===r.replaceCharCnt&&1===r.text.length&&l["s"](r.text.charCodeAt(0)))return;s._textAreaState=n;if(0===s._nextCommand)""!==r.text&&s._onType.fire(r);else{""!==r.text&&s._onPaste.fire({text:r.text});s._nextCommand=0}}));s._register(i["g"](n.domNode,"cut",function(e){s._lastTextAreaEvent=5;s._textArea.setIgnoreSelectionChangeTime("received cut event");s._ensureClipboardGetsEditorSelection(e);s._asyncTriggerCut.schedule()}));s._register(i["g"](n.domNode,"copy",function(e){s._lastTextAreaEvent=6;s._ensureClipboardGetsEditorSelection(e)}));s._register(i["g"](n.domNode,"paste",function(e){s._lastTextAreaEvent=7;s._textArea.setIgnoreSelectionChangeTime("received paste event");if(v.canUseTextData(e)){var t=v.getTextData(e);""!==t&&s._onPaste.fire({text:t})}else{s._textArea.getSelectionStart()!==s._textArea.getSelectionEnd()&&s._setAndWriteTextAreaState("paste",c["b"].EMPTY);s._nextCommand=1}}));s._register(i["g"](n.domNode,"focus",function(){s._lastTextAreaEvent=8;s._setHasFocus(!0)}));s._register(i["g"](n.domNode,"blur",function(){s._lastTextAreaEvent=9;s._setHasFocus(!1)}));var g=0;s._register(i["g"](document,"selectionchange",function(e){if(!s._hasFocus)return;if(s._isDoingComposition)return;if(!r["f"]||!u["g"])return;var t=Date.now();var n=t-g;g=t;if(n<5)return;var i=t-s._textArea.getIgnoreSelectionChangeTime();s._textArea.resetSelectionChangeTime();if(i<100)return;if(!s._textAreaState.selectionStartPosition||!s._textAreaState.selectionEndPosition)return;var o=s._textArea.getValue();if(s._textAreaState.value!==o)return;var a=s._textArea.getSelectionStart();var l=s._textArea.getSelectionEnd();if(s._textAreaState.selectionStart===a&&s._textAreaState.selectionEnd===l)return;var c=s._textAreaState.deduceEditorPosition(a);var h=s._host.deduceModelPosition(c[0],c[1],c[2]);var f=s._textAreaState.deduceEditorPosition(l);var p=s._host.deduceModelPosition(f[0],f[1],f[2]);var v=new d["a"](h.lineNumber,h.column,p.lineNumber,p.column);s._onSelectionChangeRequest.fire(v)}));return s}t.prototype.dispose=function(){e.prototype.dispose.call(this)};t.prototype.focusTextArea=function(){this._setHasFocus(!0)};t.prototype.isFocused=function(){return this._hasFocus};t.prototype._setHasFocus=function(e){if(this._hasFocus===e)return;this._hasFocus=e;this._hasFocus&&(r["g"]?this._setAndWriteTextAreaState("focusgain",c["b"].EMPTY):this.writeScreenReaderContent("focusgain"));this._hasFocus?this._onFocus.fire():this._onBlur.fire()};t.prototype._setAndWriteTextAreaState=function(e,t){this._hasFocus||(t=t.collapseSelection());t.writeToTextArea(e,this._textArea,this._hasFocus);this._textAreaState=t};t.prototype.writeScreenReaderContent=function(e){if(this._isDoingComposition)return;this._setAndWriteTextAreaState(e,this._host.getScreenReaderContent(this._textAreaState))};t.prototype._ensureClipboardGetsEditorSelection=function(e){var t=this._host.getPlainTextToCopy();if(!v.canUseTextData(e)){this._setAndWriteTextAreaState("copy or cut",c["b"].selectedText(t));return}var n=null;r["e"]()&&(t.length<65536||p.forceCopyWithSyntaxHighlighting)&&(n=this._host.getHTMLToCopy());v.setTextData(e,t,n)};return t}(s["a"]);var v=function(){function e(){}e.canUseTextData=function(e){if(e.clipboardData)return!0;if(window.clipboardData)return!0;return!1};e.getTextData=function(e){if(e.clipboardData){e.preventDefault();return e.clipboardData.getData("text/plain")}if(window.clipboardData){e.preventDefault();return window.clipboardData.getData("Text")}throw new Error("ClipboardEventUtils.getTextData: Cannot use text data!")};e.setTextData=function(e,t,n){if(e.clipboardData){e.clipboardData.setData("text/plain",t);null!==n&&e.clipboardData.setData("text/html",n);e.preventDefault();return}if(window.clipboardData){window.clipboardData.setData("Text",t);e.preventDefault();return}throw new Error("ClipboardEventUtils.setTextData: Cannot use text data!")};return e}();var m=function(e){h(t,e);function t(t){var n=e.call(this)||this;n._actual=t;n._ignoreSelectionChangeTime=0;return n}t.prototype.setIgnoreSelectionChangeTime=function(e){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 n=this._actual.domNode;if(n.value===t)return;this.setIgnoreSelectionChangeTime("setValue");n.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,n){var o=this._actual.domNode;var a=document.activeElement===o;var s=o.selectionStart;var u=o.selectionEnd;if(a&&s===t&&u===n){r["j"]&&window.parent!==window&&o.focus();return}if(a){this.setIgnoreSelectionChangeTime("setSelectionRange");o.setSelectionRange(t,n);r["j"]&&window.parent!==window&&o.focus();return}try{var l=i["K"](o);this.setIgnoreSelectionChangeTime("setSelectionRange");o.focus();o.setSelectionRange(t,n);i["I"](o,l)}catch(e){}};return t}(s["a"])},aBfO:function(e,t,n){"use strict";n.d(t,"d",function(){return o});n.d(t,"c",function(){return a});n.d(t,"p",function(){return s});n.d(t,"b",function(){return u});n.d(t,"a",function(){return l});n.d(t,"o",function(){return c});n.d(t,"k",function(){return h});n.d(t,"g",function(){return f});n.d(t,"h",function(){return p});n.d(t,"j",function(){return g});n.d(t,"n",function(){return v});n.d(t,"f",function(){return m});n.d(t,"m",function(){return _});n.d(t,"l",function(){return y});n.d(t,"i",function(){return b});n.d(t,"e",function(){return C});var r=n("5s6q");var i=function(){function e(){this._zoomLevel=0;this._lastZoomLevelChangeTime=0;this._onDidChangeZoomLevel=new r["a"];this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event;this._accessibilitySupport=0;this._onDidChangeAccessibilitySupport=new r["a"];this.onDidChangeAccessibilitySupport=this._onDidChangeAccessibilitySupport.event}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");var t;var n;return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)};e.prototype.getAccessibilitySupport=function(){return this._accessibilitySupport};e.INSTANCE=new e;return e}();function o(){return i.INSTANCE.getZoomLevel()}function a(){return i.INSTANCE.getTimeSinceLastZoomLevelChanged()}function s(e){return i.INSTANCE.onDidChangeZoomLevel(e)}function u(){return i.INSTANCE.getPixelRatio()}function l(){return i.INSTANCE.getAccessibilitySupport()}function c(e){return i.INSTANCE.onDidChangeAccessibilitySupport(e)}var d=navigator.userAgent;var h=d.indexOf("Trident")>=0;var f=d.indexOf("Edge/")>=0;var p=h||f;var g=d.indexOf("Firefox")>=0;var v=d.indexOf("AppleWebKit")>=0;var m=d.indexOf("Chrome")>=0;var _=-1===d.indexOf("Chrome")&&d.indexOf("Safari")>=0;var y=d.indexOf("iPad")>=0;var b=f&&d.indexOf("WebView/")>=0;function C(){if(h)return!1;if(f){var e=d.indexOf("Edge/");var t=parseInt(d.substring(e+5,d.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1}return!0}},aYPm:function(e,t,n){var r=n("JRks");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},bKxK:function(e,t,n){var r=n("Xr2y");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},c7Q4:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,'/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .margin-view-overlays .folding {\r\n\tcursor: pointer;\r\n\tbackground-repeat: no-repeat;\r\n\tbackground-origin: border-box;\r\n\tbackground-position: calc(50% + 2px) center;\r\n\tbackground-size: auto calc(100% - 3px);\r\n\topacity: 0;\r\n\ttransition: opacity 0.5s;\r\n}\r\n\r\n.monaco-editor .margin-view-overlays .folding {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTUgMTUiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDE1IDE1OyI+DQo8cGF0aCBzdHlsZT0iZmlsbDojQjZCNkI2IiBkPSJNMTEsNHY3SDRWNEgxMSBNMTIsM0gzdjloOVYzTDEyLDN6Ii8+DQo8bGluZSBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojNkI2QjZCO3N0cm9rZS1taXRlcmxpbWl0OjEwIiB4MT0iMTAiIHkxPSI3LjUiIHgyPSI1IiB5Mj0iNy41Ii8+DQo8L3N2Zz4=");\r\n}\r\n\r\n.monaco-editor.hc-black .margin-view-overlays .folding,\r\n.monaco-editor.vs-dark .margin-view-overlays .folding {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTUgMTUiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDE1IDE1OyI+DQo8cGF0aCBzdHlsZT0iZmlsbDojNUE1QTVBIiBkPSJNMTEsNHY3SDRWNEgxMSBNMTIsM0gzdjloOVYzTDEyLDN6Ii8+DQo8bGluZSBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojQzVDNUM1O3N0cm9rZS1taXRlcmxpbWl0OjEwIiB4MT0iMTAiIHkxPSI3LjUiIHgyPSI1IiB5Mj0iNy41Ii8+DQo8L3N2Zz4=");\r\n}\r\n\r\n.monaco-editor .margin-view-overlays:hover .folding,\r\n.monaco-editor .margin-view-overlays .folding.alwaysShowFoldIcons {\r\n\topacity: 1;\r\n}\r\n\r\n.monaco-editor .margin-view-overlays .folding.collapsed {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTUgMTUiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDE1IDE1OyI+DQo8cmVjdCB4PSIzIiB5PSIzIiBzdHlsZT0iZmlsbDojRThFOEU4IiB3aWR0aD0iOSIgaGVpZ2h0PSI5Ii8+DQo8cGF0aCBzdHlsZT0iZmlsbDojQjZCNkI2IiBkPSJNMTEsNHY3SDRWNEgxMSBNMTIsM0gzdjloOVYzTDEyLDN6Ii8+DQo8bGluZSBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojNkI2QjZCO3N0cm9rZS1taXRlcmxpbWl0OjEwIiB4MT0iMTAiIHkxPSI3LjUiIHgyPSI1IiB5Mj0iNy41Ii8+DQo8bGluZSBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojNkI2QjZCO3N0cm9rZS1taXRlcmxpbWl0OjEwIiB4MT0iNy41IiB5MT0iNSIgeDI9IjcuNSIgeTI9IjEwIi8+DQo8L3N2Zz4=");\r\n\topacity: 1;\r\n}\r\n\r\n.monaco-editor.hc-black .margin-view-overlays .folding.collapsed,\r\n.monaco-editor.vs-dark .margin-view-overlays .folding.collapsed {\r\n\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMTUgMTUiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDE1IDE1OyI+DQo8cmVjdCB4PSIzIiB5PSIzIiBzdHlsZT0ib3BhY2l0eTowLjE7ZmlsbDojRkZGRkZGIiB3aWR0aD0iOSIgaGVpZ2h0PSI5Ii8+DQo8cGF0aCBzdHlsZT0iZmlsbDojNUE1QTVBIiBkPSJNMTEsNHY3SDRWNEgxMSBNMTIsM0gzdjloOVYzTDEyLDN6Ii8+DQo8bGluZSBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojQzVDNUM1O3N0cm9rZS1taXRlcmxpbWl0OjEwIiB4MT0iMTAiIHkxPSI3LjUiIHgyPSI1IiB5Mj0iNy41Ii8+DQo8bGluZSBzdHlsZT0iZmlsbDpub25lO3N0cm9rZTojQzVDNUM1O3N0cm9rZS1taXRlcmxpbWl0OjEwIiB4MT0iNy41IiB5MT0iNSIgeDI9IjcuNSIgeTI9IjEwIi8+DQo8L3N2Zz4=");\r\n}\r\n\r\n.monaco-editor .inline-folded:after {\r\n\tcolor: grey;\r\n\tmargin: 0.1em 0.2em 0 0.2em;\r\n\tcontent: "\\22EF";\r\n\tdisplay: inline;\r\n\tline-height: 1em;\r\n\tcursor: pointer;\r\n}',""])},cENI:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("6dSJ");var i=function(){function e(e,t,n,r){if(e>n||e===n&&t>r){this.startLineNumber=n;this.startColumn=r;this.endLineNumber=e;this.endColumn=t}else{this.startLineNumber=e;this.startColumn=t;this.endLineNumber=n;this.endColumn=r}}e.prototype.isEmpty=function(){return e.isEmpty(this)};e.isEmpty=function(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn};e.prototype.containsPosition=function(t){return e.containsPosition(this,t)};e.containsPosition=function(e,t){if(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)return!1;if(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)return!1;if(t.lineNumber===e.endLineNumber&&t.column>e.endColumn)return!1;return!0};e.prototype.containsRange=function(t){return e.containsRange(this,t)};e.containsRange=function(e,t){if(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)return!1;if(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)return!1;if(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)return!1;if(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)return!1;return!0};e.prototype.plusRange=function(t){return e.plusRange(this,t)};e.plusRange=function(t,n){var r;var i;var o;var a;if(n.startLineNumber<t.startLineNumber){r=n.startLineNumber;i=n.startColumn}else if(n.startLineNumber===t.startLineNumber){r=n.startLineNumber;i=Math.min(n.startColumn,t.startColumn)}else{r=t.startLineNumber;i=t.startColumn}if(n.endLineNumber>t.endLineNumber){o=n.endLineNumber;a=n.endColumn}else if(n.endLineNumber===t.endLineNumber){o=n.endLineNumber;a=Math.max(n.endColumn,t.endColumn)}else{o=t.endLineNumber;a=t.endColumn}return new e(r,i,o,a)};e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)};e.intersectRanges=function(t,n){var r=t.startLineNumber;var i=t.startColumn;var o=t.endLineNumber;var a=t.endColumn;var s=n.startLineNumber;var u=n.startColumn;var l=n.endLineNumber;var c=n.endColumn;if(r<s){r=s;i=u}else r===s&&(i=Math.max(i,u));if(o>l){o=l;a=c}else o===l&&(a=Math.min(a,c));if(r>o)return null;if(r===o&&i>a)return null;return new e(r,i,o,a)};e.prototype.equalsRange=function(t){return e.equalsRange(this,t)};e.equalsRange=function(e,t){return!!e&&!!t&&e.startLineNumber===t.startLineNumber&&e.startColumn===t.startColumn&&e.endLineNumber===t.endLineNumber&&e.endColumn===t.endColumn};e.prototype.getEndPosition=function(){return new r["a"](this.endLineNumber,this.endColumn)};e.prototype.getStartPosition=function(){return new r["a"](this.startLineNumber,this.startColumn)};e.prototype.toString=function(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"};e.prototype.setEndPosition=function(t,n){return new e(this.startLineNumber,this.startColumn,t,n)};e.prototype.setStartPosition=function(t,n){return new e(t,n,this.endLineNumber,this.endColumn)};e.prototype.collapseToStart=function(){return e.collapseToStart(this)};e.collapseToStart=function(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)};e.fromPositions=function(t,n){void 0===n&&(n=t);return new e(t.lineNumber,t.column,n.lineNumber,n.column)};e.lift=function(t){if(!t)return null;return new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn)};e.isIRange=function(e){return e&&"number"==typeof e.startLineNumber&&"number"==typeof e.startColumn&&"number"==typeof e.endLineNumber&&"number"==typeof e.endColumn};e.areIntersectingOrTouching=function(e,t){if(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)return!1;if(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)return!1;return!0};e.areIntersecting=function(e,t){if(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)return!1;if(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)return!1;return!0};e.compareRangesUsingStarts=function(e,t){if(e&&t){var n=0|e.startLineNumber;var r=0|t.startLineNumber;if(n===r){var i=0|e.startColumn;var o=0|t.startColumn;if(i===o){var a=0|e.endLineNumber;var s=0|t.endLineNumber;if(a===s){var u;var l;return(0|e.endColumn)-(0|t.endColumn)}return a-s}return i-o}return n-r}var c;var d;return(e?1:0)-(t?1:0)};e.compareRangesUsingEnds=function(e,t){if(e.endLineNumber===t.endLineNumber){if(e.endColumn===t.endColumn){if(e.startLineNumber===t.startLineNumber)return e.startColumn-t.startColumn;return e.startLineNumber-t.startLineNumber}return e.endColumn-t.endColumn}return e.endLineNumber-t.endLineNumber};e.spansMultipleLines=function(e){return e.endLineNumber>e.startLineNumber};return e}()},cErD:function(e,t,n){"use strict";n.d(t,"a",function(){return E});var r=n("1RQC");var i=n("PFKJ");var o=n("p8vD");var a=n("Xa9+");var s=n("kaC/");var u="**";var l="/";var c="[/\\\\]";var d="[^/\\\\]";var h=/\//g;function f(e){switch(e){case 0:return"";case 1:return d+"*?";default:return"(?:"+c+"|"+d+"+"+c+"|"+c+d+"+)*?"}}function p(e,t){if(!e)return[];var n=[];var r=!1;var i=!1;var o;var a="";for(var s=0;s<e.length;s++){switch(o=e[s]){case t:if(!r&&!i){n.push(a);a="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":i=!0;break;case"]":i=!1}a+=o}a&&n.push(a);return n}function g(e){if(!e)return"";var t="";var n=p(e,l);if(n.every(function(e){return e===u}))t=".*";else{var r=!1;n.forEach(function(e,o){if(e===u){if(!r){t+=f(2);r=!0}return}var a=!1;var s="";var h=!1;var v="";var m;for(var _=0;_<e.length;_++){if("}"!==(m=e[_])&&a){s+=m;continue}if(h&&("]"!==m||!v)){var y=void 0;v+=y="-"===m?m:"^"!==m&&"!"!==m||v?m===l?"":i["l"](m):"^";continue}switch(m){case"{":a=!0;continue;case"[":h=!0;continue;case"}":var b;var C="(?:"+p(s,",").map(function(e){return g(e)}).join("|")+")";t+=C;a=!1;s="";break;case"]":t+="["+v+"]";h=!1;v="";break;case"?":t+=d;continue;case"*":t+=f(1);continue;default:t+=i["l"](m)}}o<n.length-1&&(n[o+1]!==u||o+2<n.length)&&(t+=c);r=!1})}return t}var v=/^\*\*\/\*\.[\w\.-]+$/;var m=/^\*\*\/([\w\.-]+)\/?$/;var _=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/;var y=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/;var b=/^\*\*((\/[\w\.-]+)+)\/?$/;var C=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/;var w=new a["a"](1e4);var S=function(){return!1};var L=function(){return null};function I(e,t){if(!e)return L;var n;var r=(n=(n="string"!=typeof e?e.pattern:e).trim())+"_"+!!t.trimForExclusions;var o=w.get(r);if(o)return x(o,e);var a;if(v.test(n)){var s=n.substr(4);o=function(e,t){return e&&i["i"](e,s)?n:null}}else o=(a=m.exec(N(n,t)))?M(a[1],n):(t.trimForExclusions?y:_).test(n)?D(n,t):(a=b.exec(N(n,t)))?k(a[1].substr(1),n,!0):(a=C.exec(N(n,t)))?k(a[1],n,!1):O(n);w.set(r,o);return x(o,e)}function x(e,t){if("string"==typeof t)return e;return function(n,r){if(!o["d"](n,t.base))return null;return e(t.pathToRelative(t.base,n),r)}}function N(e,t){return t.trimForExclusions&&i["i"](e,"/**")?e.substr(0,e.length-2):e}function M(e,t){var n="/"+e;var r="\\"+e;var o=function(o,a){if(!o)return null;if(a)return a===e?t:null;return o===e||i["i"](o,n)||i["i"](o,r)?t:null};var a=[e];o.basenames=a;o.patterns=[t];o.allBasenames=a;return o}function D(e,t){var n=j(e.slice(1,-1).split(",").map(function(e){return I(e,t)}).filter(function(e){return e!==L}),e);var i=n.length;if(!i)return L;if(1===i)return n[0];var o=function(t,r){for(var i=0,o=n.length;i<o;i++)if(n[i](t,r))return e;return null};var a=r["e"](n,function(e){return!!e.allBasenames});a&&(o.allBasenames=a.allBasenames);var s=n.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);s.length&&(o.allPaths=s);return o}function k(e,t,n){var r=o["f"]!==o["h"]?e.replace(h,o["f"]):e;var a=o["f"]+r;var s=n?function(e,n){return e&&(e===r||i["i"](e,a))?t:null}:function(e,n){return e&&e===r?t:null};s.allPaths=[(n?"*/":"./")+e];return s}function O(e){try{var t=new RegExp("^"+g(e)+"$");return function(n,r){t.lastIndex=0;return n&&t.test(n)?e:null}}catch(e){return L}}function E(e,t,n){if(!e||!t)return!1;return T(e)(t,void 0,n)}function T(e,t){void 0===t&&(t={});if(!e)return S;if("string"==typeof e||A(e)){var n=I(e,t);if(n===L)return S;var r=function(e,t){return!!n(e,t)};n.allBasenames&&(r.allBasenames=n.allBasenames);n.allPaths&&(r.allPaths=n.allPaths);return r}return R(e,t)}function A(e){var t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern&&"function"==typeof t.pathToRelative}function R(e,t){var n=j(Object.getOwnPropertyNames(e).map(function(n){return P(n,e[n],t)}).filter(function(e){return e!==L}));var i=n.length;if(!i)return L;if(!n.some(function(e){return!!e.requiresSiblings})){if(1===i)return n[0];var a=function(e,t){for(var r=0,i=n.length;r<i;r++){var o=n[r](e,t);if(o)return o}return null};var s=r["e"](n,function(e){return!!e.allBasenames});s&&(a.allBasenames=s.allBasenames);var u=n.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);u.length&&(a.allPaths=u);return a}var l=function(e,t,r){var i=void 0;for(var a=0,s=n.length;a<s;a++){var u=n[a];if(u.requiresSiblings&&r){t||(t=o["a"](e));i||(i=t.substr(0,t.length-o["c"](e).length))}var l=u(e,t,i,r);if(l)return l}return null};var c=r["e"](n,function(e){return!!e.allBasenames});c&&(l.allBasenames=c.allBasenames);var d=n.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);d.length&&(l.allPaths=d);return l}function P(e,t,n){if(!1===t)return L;var r=I(e,n);if(r===L)return L;if("boolean"==typeof t)return r;if(t){var i=t.when;if("string"==typeof i){var o=function(t,n,o,a){if(!a||!r(t,n))return null;var u;var l=a(i.replace("$(basename)",o));return Object(s["g"])(l)?l.then(function(t){return t?e:null}):l?e:null};o.requiresSiblings=!0;return o}}return r}function j(e,t){var n=e.filter(function(e){return!!e.basenames});if(n.length<2)return e;var r=n.reduce(function(e,t){var n=t.basenames;return n?e.concat(n):e},[]);var i;if(t){i=[];for(var o=0,a=r.length;o<a;o++)i.push(t)}else i=n.reduce(function(e,t){var n=t.patterns;return n?e.concat(n):e},[]);var s=function(e,t){if(!e)return null;if(!t){var n=void 0;for(n=e.length;n>0;n--){var o=e.charCodeAt(n-1);if(47===o||92===o)break}t=e.substr(n)}var a=r.indexOf(t);return-1!==a?i[a]:null};s.basenames=r;s.patterns=i;s.allBasenames=r;var u=e.filter(function(e){return!e.basenames});u.push(s);return u}},cv6i:function(e,t,n){"use strict";n.d(t,"a",function(){return i});n.d(t,"d",function(){return o});n.d(t,"c",function(){return a});n.d(t,"b",function(){return s});var r=n("tkRu");var i=function(){function e(e,t,n){void 0===n&&(n=!1);this._range=e;this._text=t;this.insertsAutoWhitespace=n}e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)};e.prototype.computeCursorState=function(e,t){var n;var i=t.getInverseEditOperations()[0].range;return new r["a"](i.endLineNumber,i.endColumn,i.endLineNumber,i.endColumn)};return e}();var o=function(){function e(e,t,n){void 0===n&&(n=!1);this._range=e;this._text=t;this.insertsAutoWhitespace=n}e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)};e.prototype.computeCursorState=function(e,t){var n;var i=t.getInverseEditOperations()[0].range;return new r["a"](i.startLineNumber,i.startColumn,i.startLineNumber,i.startColumn)};return e}();var a=function(){function e(e,t,n,r,i){void 0===i&&(i=!1);this._range=e;this._text=t;this._columnDeltaOffset=r;this._lineNumberDeltaOffset=n;this.insertsAutoWhitespace=i}e.prototype.getEditOperations=function(e,t){t.addTrackedEditOperation(this._range,this._text)};e.prototype.computeCursorState=function(e,t){var n;var i=t.getInverseEditOperations()[0].range;return new r["a"](i.endLineNumber+this._lineNumberDeltaOffset,i.endColumn+this._columnDeltaOffset,i.endLineNumber+this._lineNumberDeltaOffset,i.endColumn+this._columnDeltaOffset)};return e}();var s=function(){function e(e,t,n){this._range=e;this._text=t;this._initialSelection=n}e.prototype.getEditOperations=function(e,t){t.addEditOperation(this._range,this._text);this._selectionId=t.trackSelection(this._initialSelection)};e.prototype.computeCursorState=function(e,t){return t.getTrackedSelection(this._selectionId)};return e}()},dFoq:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("5s6q");var i=Object.freeze(function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}});var o;!function(e){function t(t){if(t===e.None||t===e.Cancelled)return!0;if(t instanceof a)return!0;if(!t||"object"!=typeof t)return!1;return"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested}e.isCancellationToken=t;e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:r["b"].None});e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i})}(o||(o={}));var a=function(){function e(){this._isCancelled=!1;this._emitter=null}e.prototype.cancel=function(){if(!this._isCancelled){this._isCancelled=!0;if(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(){if(this._isCancelled)return i;this._emitter||(this._emitter=new r["a"]);return this._emitter.event},enumerable:!0,configurable:!0});e.prototype.dispose=function(){if(this._emitter){this._emitter.dispose();this._emitter=null}};return e}();var s=function(){function e(){}Object.defineProperty(e.prototype,"token",{get:function(){this._token||(this._token=new a);return this._token},enumerable:!0,configurable:!0});e.prototype.cancel=function(){this._token?this._token instanceof a&&this._token.cancel():this._token=o.Cancelled};e.prototype.dispose=function(){this._token?this._token instanceof a&&this._token.dispose():this._token=o.None};return e}()},e0uS:function(e,t){e.exports=function(e){var t=[];t.toString=function t(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")};t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);var r={};for(var i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];if("number"!=typeof a[0]||!r[a[0]]){n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")");t.push(a)}}};return t};function n(e,t){var n=e[1]||"";var i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=r(i);var a=i.sources.map(function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"});return[n].concat(a).concat([o]).join("\n")}return[n].join("\n")}function r(e){var t;var n;return"/*# "+("sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e)))))+" */"}},e8vV:function(e,t,n){"use strict";n.r(t);n.d(t,"LanguageServiceDefaultsImpl",function(){return a});var r=n("97Nb");var i=n.n(r);var o=monaco.Emitter;var a=function(){function e(e,t){this._onDidChange=new o;this._languageId=e;this.setDiagnosticsOptions(t)}Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"diagnosticsOptions",{get:function(){return this._diagnosticsOptions},enumerable:!0,configurable:!0});e.prototype.setDiagnosticsOptions=function(e){this._diagnosticsOptions=e||Object.create(null);this._onDidChange.fire(this)};return e}();var s;var u=new a("json",{validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1});function l(){return{jsonDefaults:u}}monaco.languages.json=l();function c(){return monaco.Promise.wrap(n.e(9).then(n.bind(null,"R3PC")))}monaco.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc"],aliases:["JSON","json"],mimetypes:["application/json"]});monaco.languages.onLanguage("json",function(){c().then(function(e){return e.setupMode(u)})})},eE02:function(e,t,n){"use strict";var r=n("1RQC");var i=n("KVQV");var o=n("zxKB");function a(e,t,n){var r=null;var i=null;if("function"==typeof n.value){r="value";0!==(i=n.value).length&&console.warn("Memoize should only be used in functions with zero parameters")}else if("function"==typeof n.get){r="get";i=n.get}if(!i)throw new Error("not supported");var o="$memoize$"+t;n[r]=function(){var e=[];for(var t=0;t<arguments.length;t++)e[t]=arguments[t];this.hasOwnProperty(o)||Object.defineProperty(this,o,{configurable:!1,enumerable:!1,writable:!1,value:i.apply(this,e)});return this[o]}}n.d(t,"a",function(){return c});n.d(t,"b",function(){return d});var s=(u=function(e,t){return(u=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])})(e,t)},function(e,t){u(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var u;var l=function(e,t,n,r){var i=arguments.length,o=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r,a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(a=e[s])&&(o=(i<3?a(o):i>3?a(t,n,o):a(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o};var c;!function(e){e.Tap="-monaco-gesturetap";e.Change="-monaco-gesturechange";e.Start="-monaco-gesturestart";e.End="-monaco-gesturesend";e.Contextmenu="-monaco-gesturecontextmenu"}(c||(c={}));var d=function(e){s(t,e);function t(){var t=e.call(this)||this;t.activeTouches={};t.handle=null;t.targets=[];t._register(o["g"](document,"touchstart",function(e){return t.onTouchStart(e)}));t._register(o["g"](document,"touchend",function(e){return t.onTouchEnd(e)}));t._register(o["g"](document,"touchmove",function(e){return t.onTouchMove(e)}));return t}t.addTarget=function(e){if(!t.isTouchDevice())return;t.INSTANCE||(t.INSTANCE=new t);t.INSTANCE.targets.push(e)};t.isTouchDevice=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||window.navigator.msMaxTouchPoints>0};t.prototype.dispose=function(){if(this.handle){this.handle.dispose();this.handle=null}e.prototype.dispose.call(this)};t.prototype.onTouchStart=function(e){var t=Date.now();if(this.handle){this.handle.dispose();this.handle=null}for(var n=0,r=e.targetTouches.length;n<r;n++){var i=e.targetTouches.item(n);this.activeTouches[i.identifier]={id:i.identifier,initialTarget:i.target,initialTimeStamp:t,initialPageX:i.pageX,initialPageY:i.pageY,rollingTimestamps:[t],rollingPageX:[i.pageX],rollingPageY:[i.pageY]};var o=this.newGestureEvent(c.Start,i.target);o.pageX=i.pageX;o.pageY=i.pageY;this.dispatchEvent(o)}if(this.dispatched){e.preventDefault();e.stopPropagation();this.dispatched=!1}};t.prototype.onTouchEnd=function(e){var n=Date.now();var i=Object.keys(this.activeTouches).length;var o=function(o,s){var u=e.changedTouches.item(o);if(!a.activeTouches.hasOwnProperty(String(u.identifier))){console.warn("move of an UNKNOWN touch",u);return"continue"}var l=a.activeTouches[u.identifier],d=Date.now()-l.initialTimeStamp;if(d<t.HOLD_DELAY&&Math.abs(l.initialPageX-r["h"](l.rollingPageX))<30&&Math.abs(l.initialPageY-r["h"](l.rollingPageY))<30){var h;(h=a.newGestureEvent(c.Tap,l.initialTarget)).pageX=r["h"](l.rollingPageX);h.pageY=r["h"](l.rollingPageY);a.dispatchEvent(h)}else if(d>=t.HOLD_DELAY&&Math.abs(l.initialPageX-r["h"](l.rollingPageX))<30&&Math.abs(l.initialPageY-r["h"](l.rollingPageY))<30){var h;(h=a.newGestureEvent(c.Contextmenu,l.initialTarget)).pageX=r["h"](l.rollingPageX);h.pageY=r["h"](l.rollingPageY);a.dispatchEvent(h)}else if(1===i){var f=r["h"](l.rollingPageX);var p=r["h"](l.rollingPageY);var g=r["h"](l.rollingTimestamps)-l.rollingTimestamps[0];var v=f-l.rollingPageX[0];var m=p-l.rollingPageY[0];var _=a.targets.filter(function(e){return l.initialTarget instanceof Node&&e.contains(l.initialTarget)});a.inertia(_,n,Math.abs(v)/g,v>0?1:-1,f,Math.abs(m)/g,m>0?1:-1,p)}a.dispatchEvent(a.newGestureEvent(c.End,l.initialTarget));delete a.activeTouches[u.identifier]};var a=this;for(var s=0,u=e.changedTouches.length;s<u;s++)o(s,u);if(this.dispatched){e.preventDefault();e.stopPropagation();this.dispatched=!1}};t.prototype.newGestureEvent=function(e,t){var n=document.createEvent("CustomEvent");n.initEvent(e,!1,!0);n.initialTarget=t;return n};t.prototype.dispatchEvent=function(e){var t=this;this.targets.forEach(function(n){if(e.initialTarget instanceof Node&&n.contains(e.initialTarget)){n.dispatchEvent(e);t.dispatched=!0}})};t.prototype.inertia=function(e,n,r,i,a,s,u,l){var d=this;this.handle=o["L"](function(){var o=Date.now();var h=o-n,f=0,p=0,g=!0;r+=t.SCROLL_FRICTION*h;s+=t.SCROLL_FRICTION*h;if(r>0){g=!1;f=i*r*h}if(s>0){g=!1;p=u*s*h}var v=d.newGestureEvent(c.Change);v.translationX=f;v.translationY=p;e.forEach(function(e){return e.dispatchEvent(v)});g||d.inertia(e,o,r,i,a+f,s,u,l+p)})};t.prototype.onTouchMove=function(e){var t=Date.now();for(var n=0,i=e.changedTouches.length;n<i;n++){var o=e.changedTouches.item(n);if(!this.activeTouches.hasOwnProperty(String(o.identifier))){console.warn("end of an UNKNOWN touch",o);continue}var a=this.activeTouches[o.identifier];var s=this.newGestureEvent(c.Change,a.initialTarget);s.translationX=o.pageX-r["h"](a.rollingPageX);s.translationY=o.pageY-r["h"](a.rollingPageY);s.pageX=o.pageX;s.pageY=o.pageY;this.dispatchEvent(s);if(a.rollingPageX.length>3){a.rollingPageX.shift();a.rollingPageY.shift();a.rollingTimestamps.shift()}a.rollingPageX.push(o.pageX);a.rollingPageY.push(o.pageY);a.rollingTimestamps.push(t)}if(this.dispatched){e.preventDefault();e.stopPropagation();this.dispatched=!1}};t.SCROLL_FRICTION=-.005;t.HOLD_DELAY=700;l([a],t,"isTouchDevice",null);return t}(i["a"])},eGDE:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .margin-view-overlays .current-line {\r\n\tdisplay: block;\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\tbox-sizing: border-box;\r\n}\r\n\r\n.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both {\r\n\tborder-right: 0;\r\n}",""])},eu5a:function(e,t,n){"use strict";(function(e,r){n.d(t,"a",function(){return o});n.d(t,"b",function(){return a});var i;!function(){var t=Object.create(null);t["WinJS/Core/_WinJS"]={};var n=function(e,n,r){var i={};var o=!1;var a=n.map(function(e){if("exports"===e){o=!0;return i}return t[e]});var s=r.apply({},a);t[e]=o?i:s};n("WinJS/Core/_Global",[],function(){var t;return"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0!==e?e:{}});n("WinJS/Core/_BaseCoreUtils",["WinJS/Core/_Global"],function e(t){var n;function i(e){e.supportedForProcessing=!0;return e}var o=null;return{hasWinRT:!!t.Windows,markSupportedForProcessing:i,_setImmediate:function(e){null===o&&(o=t.setImmediate?t.setImmediate.bind(t):void 0!==r&&"function"==typeof r.nextTick?r.nextTick.bind(r):t.setTimeout.bind(t));o(e)}}});n("WinJS/Core/_WriteProfilerMark",["WinJS/Core/_Global"],function e(t){return t.msWriteProfilerMark||function(){}});n("WinJS/Core/_Base",["WinJS/Core/_WinJS","WinJS/Core/_Global","WinJS/Core/_BaseCoreUtils","WinJS/Core/_WriteProfilerMark"],function e(t,n,r,i){function o(e,t,n){var r=Object.keys(t);var i=Array.isArray(e);var o;var a,s;for(a=0,s=r.length;a<s;a++){var u=r[a];var l=95!==u.charCodeAt(0);var c=t[u];if(c&&"object"==typeof c&&(void 0!==c.value||"function"==typeof c.get||"function"==typeof c.set)){void 0===c.enumerable&&(c.enumerable=l);n&&c.setName&&"function"==typeof c.setName&&c.setName(n+"."+u);(o=o||{})[u]=c;continue}if(!l){(o=o||{})[u]={value:c,enumerable:l,configurable:!0,writable:!0};continue}i?e.forEach(function(e){e[u]=c}):e[u]=c}o&&(i?e.forEach(function(e){Object.defineProperties(e,o)}):Object.defineProperties(e,o))}!function(){var e=t;e.Namespace||(e.Namespace=Object.create(Object.prototype));function r(e,r){var i=e||{};if(r){var o=r.split(".");if(i===n&&"WinJS"===o[0]){i=t;o.splice(0,1)}for(var a=0,s=o.length;a<s;a++){var u=o[a];i[u]||Object.defineProperty(i,u,{value:{},writable:!1,enumerable:!0,configurable:!0});i=i[u]}}return i}function a(e,t,n){var i=r(e,t);n&&o(i,n,t||"<ANONYMOUS>");return i}function s(e,t){return a(n,e,t)}var u={uninitialized:1,working:2,initialized:3};function l(e){var t;var n=u.uninitialized;var r;return{setName:function(e){t=e},get:function(){switch(n){case u.initialized:return r;case u.uninitialized:n=u.working;try{i("WinJS.Namespace._lazy:"+t+",StartTM");r=e()}finally{i("WinJS.Namespace._lazy:"+t+",StopTM");n=u.uninitialized}e=null;n=u.initialized;return r;case u.working:throw"Illegal: reentrancy on initialization";default:throw"Illegal"}},set:function(e){switch(n){case u.working:throw"Illegal: reentrancy on initialization";default:n=u.initialized;r=e}},enumerable:!0,configurable:!0}}function c(e,t,i){var a=[e];var s=null;if(t){s=r(n,t);a.push(s)}o(a,i,t||"<ANONYMOUS>");return s}Object.defineProperties(e.Namespace,{defineWithParent:{value:a,writable:!0,enumerable:!0,configurable:!0},define:{value:s,writable:!0,enumerable:!0,configurable:!0},_lazy:{value:l,writable:!0,enumerable:!0,configurable:!0},_moduleDefine:{value:c,writable:!0,enumerable:!0,configurable:!0}})}();!function(){function e(e,t,n){e=e||function(){};r.markSupportedForProcessing(e);t&&o(e.prototype,t);n&&o(e,n);return e}function n(t,n,i,a){if(t){n=n||function(){};var s=t.prototype;n.prototype=Object.create(s);r.markSupportedForProcessing(n);Object.defineProperty(n.prototype,"constructor",{value:n,writable:!0,configurable:!0,enumerable:!0});i&&o(n.prototype,i);a&&o(n,a);return n}return e(n,i,a)}function i(e){e=e||function(){};var t,n;for(t=1,n=arguments.length;t<n;t++)o(e.prototype,arguments[t]);return e}t.Namespace.define("WinJS.Class",{define:e,derive:n,mix:i})}();return{Namespace:t.Namespace,Class:t.Class}});n("WinJS/Core/_ErrorFromName",["WinJS/Core/_Base"],function e(t){var n=t.Class.derive(Error,function(e,t){this.name=e;this.message=t||e},{},{supportedForProcessing:!1});t.Namespace.define("WinJS",{ErrorFromName:n});return n});n("WinJS/Core/_Events",["exports","WinJS/Core/_Base"],function e(t,n){function r(e){var t="_on"+e+"state";return{get:function(){var e=this[t];return e&&e.userHandler},set:function(n){var r=this[t];if(n){if(!r){r={wrapper:function(e){return r.userHandler(e)},userHandler:n};Object.defineProperty(this,t,{value:r,enumerable:!1,writable:!0,configurable:!0});this.addEventListener(e,r.wrapper,!1)}r.userHandler=n}else if(r){this.removeEventListener(e,r.wrapper,!1);this[t]=null}},enumerable:!0}}function i(){var e={};for(var t=0,n=arguments.length;t<n;t++){var i=arguments[t];e["on"+i]=r(i)}return e}var o=n.Class.define(function e(t,n,r){this.detail=n;this.target=r;this.timeStamp=Date.now();this.type=t},{bubbles:{value:!1,writable:!1},cancelable:{value:!1,writable:!1},currentTarget:{get:function(){return this.target}},defaultPrevented:{get:function(){return this._preventDefaultCalled}},trusted:{value:!1,writable:!1},eventPhase:{value:0,writable:!1},target:null,timeStamp:null,type:null,preventDefault:function(){this._preventDefaultCalled=!0},stopImmediatePropagation:function(){this._stopImmediatePropagationCalled=!0},stopPropagation:function(){}},{supportedForProcessing:!1});var a={_listeners:null,addEventListener:function(e,t,n){n=n||!1;this._listeners=this._listeners||{};var r=this._listeners[e]=this._listeners[e]||[];for(var i=0,o=r.length;i<o;i++){var a=r[i];if(a.useCapture===n&&a.listener===t)return}r.push({listener:t,useCapture:n})},dispatchEvent:function(e,t){var n=this._listeners&&this._listeners[e];if(n){var r=new o(e,t,this);for(var i=0,a=(n=n.slice(0,n.length)).length;i<a&&!r._stopImmediatePropagationCalled;i++)n[i].listener(r);return r.defaultPrevented||!1}return!1},removeEventListener:function(e,t,n){n=n||!1;var r=this._listeners&&this._listeners[e];if(r)for(var i=0,o=r.length;i<o;i++){var a=r[i];if(a.listener===t&&a.useCapture===n){r.splice(i,1);0===r.length&&delete this._listeners[e];break}}}};n.Namespace._moduleDefine(t,"WinJS.Utilities",{_createEventProperty:r,createEventProperties:i,eventMixin:a})});n("WinJS/Core/_Trace",["WinJS/Core/_Global"],function e(t){function n(e){return e}return{_traceAsyncOperationStarting:t.Debug&&t.Debug.msTraceAsyncOperationStarting&&t.Debug.msTraceAsyncOperationStarting.bind(t.Debug)||n,_traceAsyncOperationCompleted:t.Debug&&t.Debug.msTraceAsyncOperationCompleted&&t.Debug.msTraceAsyncOperationCompleted.bind(t.Debug)||n,_traceAsyncCallbackStarting:t.Debug&&t.Debug.msTraceAsyncCallbackStarting&&t.Debug.msTraceAsyncCallbackStarting.bind(t.Debug)||n,_traceAsyncCallbackCompleted:t.Debug&&t.Debug.msTraceAsyncCallbackCompleted&&t.Debug.msTraceAsyncCallbackCompleted.bind(t.Debug)||n}});n("WinJS/Promise/_StateMachine",["WinJS/Core/_Global","WinJS/Core/_BaseCoreUtils","WinJS/Core/_Base","WinJS/Core/_ErrorFromName","WinJS/Core/_Events","WinJS/Core/_Trace"],function e(t,n,r,i,o,a){t.Debug&&(t.Debug.setNonUserCodeExceptions=!0);var s;var u=new(r.Class.mix(r.Class.define(null,{},{supportedForProcessing:!1}),o.eventMixin));u._listeners={};var l="error";var c="Canceled";var d=!1;var h={promise:1,thenPromise:2,errorPromise:4,exceptionPromise:8,completePromise:16};h.all=h.promise|h.thenPromise|h.errorPromise|h.exceptionPromise|h.completePromise;var f=1;var p,g,v,m,_,y,b,C,w,S;function L(){}p={name:"created",enter:function(e){e._setState(g)},cancel:L,done:L,then:L,_completed:L,_error:L,_notify:L,_progress:L,_setCompleteValue:L,_setErrorValue:L};g={name:"working",enter:L,cancel:function(e){e._setState(_)},done:E,then:B,_completed:x,_error:T,_notify:L,_progress:j,_setCompleteValue:V,_setErrorValue:z};v={name:"waiting",enter:function(e){var t=e._value;if(t instanceof H&&t._state!==S&&t._state!==C)W(t,{promise:e});else{var n=function(r){if(t._errorId)e._chainedError(r,t);else{P(e,r,M,t,n);e._error(r)}};n.handlesOnError=!0;t.then(e._completed.bind(e),n,e._progress.bind(e))}},cancel:function(e){e._setState(m)},done:E,then:B,_completed:x,_error:T,_notify:L,_progress:j,_setCompleteValue:V,_setErrorValue:z};m={name:"waiting_canceled",enter:function(e){e._setState(y);var t=e._value;t.cancel&&t.cancel()},cancel:L,done:E,then:B,_completed:x,_error:T,_notify:L,_progress:j,_setCompleteValue:V,_setErrorValue:z};_={name:"canceled",enter:function(e){e._setState(y);e._cancelAction()},cancel:L,done:E,then:B,_completed:x,_error:T,_notify:L,_progress:j,_setCompleteValue:V,_setErrorValue:z};y={name:"canceling",enter:function(e){var t=new Error(c);t.name=t.message;e._value=t;e._setState(w)},cancel:L,done:L,then:L,_completed:L,_error:L,_notify:L,_progress:L,_setCompleteValue:L,_setErrorValue:L};b={name:"complete_notify",enter:function(e){e.done=G.prototype.done;e.then=G.prototype.then;if(e._listeners){var t=[e];var n;for(;t.length;)(n=t.shift())._state._notify(n,t)}e._setState(C)},cancel:L,done:null,then:null,_completed:L,_error:L,_notify:A,_progress:L,_setCompleteValue:L,_setErrorValue:L};C={name:"success",enter:function(e){e.done=G.prototype.done;e.then=G.prototype.then;e._cleanupAction()},cancel:L,done:null,then:null,_completed:L,_error:L,_notify:A,_progress:L,_setCompleteValue:L,_setErrorValue:L};w={name:"error_notify",enter:function(e){e.done=U.prototype.done;e.then=U.prototype.then;if(e._listeners){var t=[e];var n;for(;t.length;)(n=t.shift())._state._notify(n,t)}e._setState(S)},cancel:L,done:null,then:null,_completed:L,_error:L,_notify:R,_progress:L,_setCompleteValue:L,_setErrorValue:L};S={name:"error",enter:function(e){e.done=U.prototype.done;e.then=U.prototype.then;e._cleanupAction()},cancel:L,done:null,then:null,_completed:L,_error:L,_notify:R,_progress:L,_setCompleteValue:L,_setErrorValue:L};var I=r.Class.define(null,{_listeners:null,_nextState:null,_state:null,_value:null,cancel:function(){this._state.cancel(this);this._run()},done:function e(t,n,r){this._state.done(this,t,n,r)},then:function e(t,n,r){if(this.then!==e){this.then(t,n,r);return}return this._state.then(this,t,n,r)},_chainedError:function(e,t){var n=this._state._error(this,e,D,t);this._run();return n},_completed:function(e){var t=this._state._completed(this,e);this._run();return t},_error:function(e){var t=this._state._error(this,e,k);this._run();return t},_progress:function(e){this._state._progress(this,e)},_setState:function(e){this._nextState=e},_setCompleteValue:function(e){this._state._setCompleteValue(this,e);this._run()},_setChainedErrorValue:function(e,t){var n=this._state._setErrorValue(this,e,D,t);this._run();return n},_setExceptionValue:function(e){var t=this._state._setErrorValue(this,e,O);this._run();return t},_run:function(){for(;this._nextState;){this._state=this._nextState;this._nextState=null;this._state.enter(this)}}},{supportedForProcessing:!1});function x(e,t){var n;n=t&&"object"==typeof t&&"function"==typeof t.then?v:b;e._value=t;e._setState(n)}function N(e,t,n,r,i,o){return{exception:e,error:t,promise:n,handler:o,id:r,parent:i}}function M(e,t,n,r){var i=n._isException;var o=n._errorId;return N(i?t:null,i?null:t,e,o,n,r)}function D(e,t,n){var r=n._isException;var i=n._errorId;F(e,i,r);return N(r?t:null,r?null:t,e,i,n)}function k(e,t){var n=++f;F(e,n);return N(null,t,e,n)}function O(e,t){var n=++f;F(e,n,!0);return N(t,null,e,n)}function E(e,t,n,r){var i;W(e,{c:t,e:n,p:r,asyncOpID:a._traceAsyncOperationStarting("WinJS.Promise.done")})}function T(e,t,n,r){e._value=t;P(e,t,n,r);e._setState(w)}function A(e,n){var r=e._value;var i=e._listeners;if(!i)return;e._listeners=null;var o,s;for(o=0,s=Array.isArray(i)?i.length:1;o<s;o++){var u=1===s?i:i[o];var l=u.c;var c=u.promise;a._traceAsyncOperationCompleted(u.asyncOpID,t.Debug&&t.Debug.MS_ASYNC_OP_STATUS_SUCCESS);if(c){a._traceAsyncCallbackStarting(u.asyncOpID);try{c._setCompleteValue(l?l(r):r)}catch(e){c._setExceptionValue(e)}finally{a._traceAsyncCallbackCompleted()}c._state!==v&&c._listeners&&n.push(c)}else G.prototype.done.call(e,l)}}function R(e,n){var r=e._value;var i=e._listeners;if(!i)return;e._listeners=null;var o,s;for(o=0,s=Array.isArray(i)?i.length:1;o<s;o++){var u=1===s?i:i[o];var l=u.e;var d=u.promise;var h=t.Debug&&(r&&r.name===c?t.Debug.MS_ASYNC_OP_STATUS_CANCELED:t.Debug.MS_ASYNC_OP_STATUS_ERROR);a._traceAsyncOperationCompleted(u.asyncOpID,h);if(d){var f=!1;try{if(l){a._traceAsyncCallbackStarting(u.asyncOpID);f=!0;l.handlesOnError||P(d,r,M,e,l);d._setCompleteValue(l(r))}else d._setChainedErrorValue(r,e)}catch(e){d._setExceptionValue(e)}finally{f&&a._traceAsyncCallbackCompleted()}d._state!==v&&d._listeners&&n.push(d)}else U.prototype.done.call(e,null,l)}}function P(e,t,n,r,i){if(u._listeners[l]){if(t instanceof Error&&t.message===c)return;u.dispatchEvent(l,n(e,t,r,i))}}function j(e,t){var n=e._listeners;if(n){var r,i;for(r=0,i=Array.isArray(n)?n.length:1;r<i;r++){var o=1===i?n:n[r];var a=o.p;if(a)try{a(t)}catch(e){}o.c||o.e||!o.promise||o.promise._progress(t)}}}function W(e,t){var n=e._listeners;n?(n=Array.isArray(n)?n:[n]).push(t):n=t;e._listeners=n}function F(e,t,n){e._isException=n||!1;e._errorId=t}function z(e,t,n,r){e._value=t;P(e,t,n,r);e._setState(S)}function V(e,t){var n;n=t&&"object"==typeof t&&"function"==typeof t.then?v:C;e._value=t;e._setState(n)}function B(e,t,n,r){var i=new H(e);var o;W(e,{promise:i,c:t,e:n,p:r,asyncOpID:a._traceAsyncOperationStarting("WinJS.Promise.then")});return i}var H=r.Class.derive(I,function(e){d&&(!0===d||d&h.thenPromise)&&(this._stack=q._getStack());this._creator=e;this._setState(p);this._run()},{_creator:null,_cancelAction:function(){this._creator&&this._creator.cancel()},_cleanupAction:function(){this._creator=null}},{supportedForProcessing:!1});var U=r.Class.define(function e(t){d&&(!0===d||d&h.errorPromise)&&(this._stack=q._getStack());this._value=t;P(this,t,k)},{cancel:function(){},done:function e(t,n){var r=this._value;if(n)try{n.handlesOnError||P(null,r,M,this,n);var i=n(r);i&&"object"==typeof i&&"function"==typeof i.done&&i.done();return}catch(e){r=e}if(r instanceof Error&&r.message===c)return;q._doneHandler(r)},then:function e(t,n){if(!n)return this;var r;var i=this._value;try{n.handlesOnError||P(null,i,M,this,n);r=new G(n(i))}catch(e){r=e===i?this:new Z(e)}return r}},{supportedForProcessing:!1});var Z=r.Class.derive(U,function e(t){d&&(!0===d||d&h.exceptionPromise)&&(this._stack=q._getStack());this._value=t;P(this,t,O)},{},{supportedForProcessing:!1});var G=r.Class.define(function e(t){d&&(!0===d||d&h.completePromise)&&(this._stack=q._getStack());if(t&&"object"==typeof t&&"function"==typeof t.then){var n=new H(null);n._setCompleteValue(t);return n}this._value=t},{cancel:function(){},done:function e(t){if(!t)return;try{var n=t(this._value);n&&"object"==typeof n&&"function"==typeof n.done&&n.done()}catch(e){q._doneHandler(e)}},then:function e(t){try{var n=t?t(this._value):this._value;return n===this._value?this:new G(n)}catch(e){return new Z(e)}}},{supportedForProcessing:!1});function Y(e){var r;return new q(function(i){e?r=t.setTimeout(i,e):n._setImmediate(i)},function(){r&&t.clearTimeout(r)})}function K(e,t){var n=function(){t.cancel()};var r=function(){e.cancel()};e.then(n);t.then(r,r);return t}var Q;var q=r.Class.derive(I,function e(t,n){d&&(!0===d||d&h.promise)&&(this._stack=q._getStack());this._oncancel=n;this._setState(p);this._run();try{var r;var i;var o;t(this._completed.bind(this),this._error.bind(this),this._progress.bind(this))}catch(e){this._setExceptionValue(e)}},{_oncancel:null,_cancelAction:function(){try{if(!this._oncancel)throw new Error("Promise did not implement oncancel");this._oncancel()}catch(n){var e=n.message;var t=n.stack;u.dispatchEvent("error",n)}},_cleanupAction:function(){this._oncancel=null}},{addEventListener:function e(t,n,r){u.addEventListener(t,n,r)},any:function e(t){return new q(function(e,n){var r=Object.keys(t);0===r.length&&e();var i=0;r.forEach(function(o){q.as(t[o]).then(function(){e({key:o,value:t[o]})},function(a){if(a instanceof Error&&a.name===c){++i===r.length&&e(q.cancel);return}n({key:o,value:t[o]})})})},function(){var e;Object.keys(t).forEach(function(e){var n=q.as(t[e]);"function"==typeof n.cancel&&n.cancel()})})},as:function e(t){if(t&&"object"==typeof t&&"function"==typeof t.then)return t;return new G(t)},cancel:{get:function(){return Q=Q||new U(new i(c))}},dispatchEvent:function e(t,n){return u.dispatchEvent(t,n)},is:function e(t){return t&&"object"==typeof t&&"function"==typeof t.then},join:function e(t){return new q(function(e,n,r){var i=Object.keys(t);var o=Array.isArray(t)?[]:{};var a=Array.isArray(t)?[]:{};var s=0;var u=i.length;var l=function(t){if(0==--u){var s=Object.keys(o).length;if(0===s)e(a);else{var l=0;i.forEach(function(e){var t=o[e];t instanceof Error&&t.name===c&&l++});l===s?e(q.cancel):n(o)}}else r({Key:t,Done:!0})};i.forEach(function(e){var n=t[e];void 0===n?s++:q.then(n,function(t){a[e]=t;l(e)},function(t){o[e]=t;l(e)})});if(0===(u-=s)){e(a);return}},function(){Object.keys(t).forEach(function(e){var n=q.as(t[e]);"function"==typeof n.cancel&&n.cancel()})})},removeEventListener:function e(t,n,r){u.removeEventListener(t,n,r)},supportedForProcessing:!1,then:function e(t,n,r,i){return q.as(t).then(n,r,i)},thenEach:function e(t,n,r,i){var o=Array.isArray(t)?[]:{};Object.keys(t).forEach(function(e){o[e]=q.as(t[e]).then(n,r,i)});return q.join(o)},timeout:function e(t,n){var r=Y(t);return n?K(r,n):r},wrap:function e(t){return new G(t)},wrapError:function e(t){return new U(t)},_veryExpensiveTagWithStack:{get:function(){return d},set:function(e){d=e}},_veryExpensiveTagWithStack_tag:h,_getStack:function(){if(t.Debug&&t.Debug.debuggerEnabled)try{throw new Error}catch(e){return e.stack}},_cancelBlocker:function e(t,n){if(!q.is(t))return q.wrap(t);var r;var i;var o=new q(function(e,t){r=e;i=t},function(){r=null;i=null;n&&n()});t.then(function(e){r&&r(e)},function(e){i&&i(e)});return o}});Object.defineProperties(q,o.createEventProperties(l));q._doneHandler=function(e){n._setImmediate(function t(){throw e})};return{PromiseStateMachine:I,Promise:q,state_created:p}});n("WinJS/Promise",["WinJS/Core/_Base","WinJS/Promise/_StateMachine"],function e(t,n){t.Namespace.define("WinJS",{Promise:n.Promise});return n.Promise});(i=t["WinJS/Core/_WinJS"]).TPromise=i.Promise;i.PPromise=i.Promise}();var o=i.Promise;var a=i.TPromise;var s=i.PPromise}).call(this,n("pCvA"),n("5IsQ"))},ewK5:function(e,t,n){var r=n("USFi");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},f0s4:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("mGDB");var i=function(){function e(t){var n=Object(r["d"])(t);this._defaultValue=n;this._asciiMap=e._createAsciiMap(n);this._map=new Map}e._createAsciiMap=function(e){var t=new Uint8Array(256);for(var n=0;n<256;n++)t[n]=e;return t};e.prototype.set=function(e,t){var n=Object(r["d"])(t);e>=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)};e.prototype.get=function(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue};return e}();var o=function(){function e(){this._actual=new i(0)}e.prototype.add=function(e){this._actual.set(e,1)};e.prototype.has=function(e){return 1===this._actual.get(e)};return e}()},fCqX:function(e,t,n){"use strict";n.d(t,"b",function(){return a});n.d(t,"a",function(){return s});var r=n("PFKJ");var i=n("6dSJ");var o=n("cENI");var a=function(){function e(e,t,n,r,i){this.value=e;this.selectionStart=t;this.selectionEnd=n;this.selectionStartPosition=r;this.selectionEndPosition=i}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 r=this.value.substring(e,this.selectionEnd);return this._finishDeduceEditorPosition(this.selectionEndPosition,r,-1)};e.prototype._finishDeduceEditorPosition=function(e,t,n){var r=0;var i=-1;for(;-1!==(i=t.indexOf("\n",i+1));)r++;return[e,n*t.length,r]};e.selectedText=function(t){return new e(t,0,t.length,null,null)};e.deduceInput=function(e,t,n,i){if(!e)return{text:"",replaceCharCnt:0};var o=e.value;var a=e.selectionStart;var s=e.selectionEnd;var u=t.value;var l=t.selectionStart;var c=t.selectionEnd;if(i&&o.length>0&&a===s&&l===c&&!r["A"](u,o)&&r["i"](u,o)){a=0;s=0}var d=o.substring(s);var h=u.substring(c);var f=r["c"](d,h);u=u.substring(0,u.length-f);var p=(o=o.substring(0,o.length-f)).substring(0,a);var g=u.substring(0,l);var v=r["b"](p,g);u=u.substring(v);o=o.substring(v);l-=v;a-=v;c-=v;s-=v;if(n&&l===c&&o.length>0){var m=null;l===u.length?r["A"](u,o)&&(m=u.substring(o.length)):r["i"](u,o)&&(m=u.substring(0,u.length-o.length));if(null!==m&&m.length>0&&(/\uFE0F/.test(m)||r["d"](m)))return{text:m,replaceCharCnt:0}}if(l===c){if(o===u&&0===a&&s===o.length&&l===u.length&&-1===u.indexOf("\n")&&r["e"](u))return{text:"",replaceCharCnt:0};var _;return{text:u,replaceCharCnt:p.length-v}}var y;return{text:u,replaceCharCnt:s-a}};e.EMPTY=new e("",0,0,null,null);return e}();var s=function(){function e(){}e._getPageOfLine=function(t){return Math.floor((t-1)/e._LINES_PER_PAGE)};e._getRangeForPage=function(t){var n=t*e._LINES_PER_PAGE;var r=n+1;var i=n+e._LINES_PER_PAGE;return new o["a"](r,1,i+1,1)};e.fromEditorSelection=function(t,n,r,s){var u=e._getPageOfLine(r.startLineNumber);var l=e._getRangeForPage(u);var c=e._getPageOfLine(r.endLineNumber);var d=e._getRangeForPage(c);var h=l.intersectRanges(new o["a"](1,1,r.startLineNumber,r.startColumn));var f=n.getValueInRange(h,1);var p=n.getLineCount();var g=n.getLineMaxColumn(p);var v=d.intersectRanges(new o["a"](r.endLineNumber,r.endColumn,p,g));var m=n.getValueInRange(v,1);var _;if(u===c||u+1===c)_=n.getValueInRange(r,1);else{var y=l.intersectRanges(r);var b=d.intersectRanges(r);_=n.getValueInRange(y,1)+String.fromCharCode(8230)+n.getValueInRange(b,1)}if(s){var C=500;f.length>500&&(f=f.substring(f.length-500,f.length));m.length>500&&(m=m.substring(0,500));_.length>1e3&&(_=_.substring(0,500)+String.fromCharCode(8230)+_.substring(_.length-500,_.length))}return new a(f+_+m,f.length,f.length+_.length,new i["a"](r.startLineNumber,r.startColumn),new i["a"](r.endLineNumber,r.endColumn))};e._LINES_PER_PAGE=10;return e}()},gVYO:function(e,t,n){"use strict";n.d(t,"b",function(){return i});n.d(t,"a",function(){return s});function r(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n}var i=function(){function e(e,t,n,i){void 0===i&&(i=1);this.r=0|Math.min(255,Math.max(0,e));this.g=0|Math.min(255,Math.max(0,t));this.b=0|Math.min(255,Math.max(0,n));this.a=r(Math.max(Math.min(1,i),0),3)}e.equals=function(e,t){return e.r===t.r&&e.g===t.g&&e.b===t.b&&e.a===t.a};return e}();var o=function(){function e(e,t,n,i){this.h=0|Math.max(Math.min(360,e),0);this.s=r(Math.max(Math.min(1,t),0),3);this.l=r(Math.max(Math.min(1,n),0),3);this.a=r(Math.max(Math.min(1,i),0),3)}e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.l===t.l&&e.a===t.a};e.fromRGBA=function(t){var n=t.r/255;var r=t.g/255;var i=t.b/255;var o=t.a;var a=Math.max(n,r,i);var s=Math.min(n,r,i);var u=0;var l=0;var c=(s+a)/2;var d=a-s;if(d>0){l=Math.min(c<=.5?d/(2*c):d/(2-2*c),1);switch(a){case n:u=(r-i)/d+(r<i?6:0);break;case r:u=(i-n)/d+2;break;case i:u=(n-r)/d+4}u*=60;u=Math.round(u)}return new e(u,l,c,o)};e._hue2rgb=function(e,t,n){n<0&&(n+=1);n>1&&(n-=1);if(n<1/6)return e+6*(t-e)*n;if(n<.5)return t;if(n<2/3)return e+(t-e)*(2/3-n)*6;return e};e.toRGBA=function(t){var n=t.h/360;var r=t.s,o=t.l,a=t.a;var s,u,l;if(0===r)s=u=l=o;else{var c=o<.5?o*(1+r):o+r-o*r;var d=2*o-c;s=e._hue2rgb(d,c,n+1/3);u=e._hue2rgb(d,c,n);l=e._hue2rgb(d,c,n-1/3)}return new i(Math.round(255*s),Math.round(255*u),Math.round(255*l),a)};return e}();var a=function(){function e(e,t,n,i){this.h=0|Math.max(Math.min(360,e),0);this.s=r(Math.max(Math.min(1,t),0),3);this.v=r(Math.max(Math.min(1,n),0),3);this.a=r(Math.max(Math.min(1,i),0),3)}e.equals=function(e,t){return e.h===t.h&&e.s===t.s&&e.v===t.v&&e.a===t.a};e.fromRGBA=function(t){var n=t.r/255;var r=t.g/255;var i=t.b/255;var o=Math.max(n,r,i);var a;var s=o-Math.min(n,r,i);var u=0===o?0:s/o;var l;l=0===s?0:o===n?((r-i)/s%6+6)%6:o===r?(i-n)/s+2:(n-r)/s+4;return new e(Math.round(60*l),u,o,t.a)};e.toRGBA=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;var a=r*n;var s=a*(1-Math.abs(t/60%2-1));var u=r-a;var l=[0,0,0],c=l[0],d=l[1],h=l[2];if(t<60){c=a;d=s}else if(t<120){c=s;d=a}else if(t<180){d=a;h=s}else if(t<240){d=s;h=a}else if(t<300){c=s;h=a}else if(t<360){c=a;h=s}c=Math.round(255*(c+u));d=Math.round(255*(d+u));h=Math.round(255*(h+u));return new i(c,d,h,o)};return e}();var s=function(){function e(e){if(!e)throw new Error("Color needs a value");if(e instanceof i)this.rgba=e;else if(e instanceof o){this._hsla=e;this.rgba=o.toRGBA(e)}else{if(!(e instanceof a))throw new Error("Invalid color ctor argument");this._hsva=e;this.rgba=a.toRGBA(e)}}e.fromHex=function(t){return e.Format.CSS.parseHex(t)||e.red};Object.defineProperty(e.prototype,"hsla",{get:function(){return this._hsla?this._hsla:o.fromRGBA(this.rgba)},enumerable:!0,configurable:!0});Object.defineProperty(e.prototype,"hsva",{get:function(){if(this._hsva)return this._hsva;return a.fromRGBA(this.rgba)},enumerable:!0,configurable:!0});e.prototype.equals=function(e){return!!e&&i.equals(this.rgba,e.rgba)&&o.equals(this.hsla,e.hsla)&&a.equals(this.hsva,e.hsva)};e.prototype.getRelativeLuminance=function(){var t;var n;var i;var o;return r(.2126*e._relativeLuminanceForComponent(this.rgba.r)+.7152*e._relativeLuminanceForComponent(this.rgba.g)+.0722*e._relativeLuminanceForComponent(this.rgba.b),4)};e._relativeLuminanceForComponent=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};e.prototype.isLighter=function(){var e;return(299*this.rgba.r+587*this.rgba.g+114*this.rgba.b)/1e3>=128};e.prototype.isLighterThan=function(e){var t;var n;return this.getRelativeLuminance()>e.getRelativeLuminance()};e.prototype.isDarkerThan=function(e){var t;var n;return this.getRelativeLuminance()<e.getRelativeLuminance()};e.prototype.lighten=function(t){return new e(new o(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))};e.prototype.darken=function(t){return new e(new o(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))};e.prototype.transparent=function(t){var n=this.rgba,r=n.r,o=n.g,a=n.b,s=n.a;return new e(new i(r,o,a,s*t))};e.prototype.isTransparent=function(){return 0===this.rgba.a};e.prototype.isOpaque=function(){return 1===this.rgba.a};e.prototype.opposite=function(){return new e(new i(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))};e.prototype.toString=function(){return""+e.Format.CSS.format(this)};e.getLighterColor=function(e,t,n){if(e.isLighterThan(t))return e;n=n||.5;var r=e.getRelativeLuminance();var i=t.getRelativeLuminance();n=n*(i-r)/i;return e.lighten(n)};e.getDarkerColor=function(e,t,n){if(e.isDarkerThan(t))return e;n=n||.5;var r=e.getRelativeLuminance();var i;n=n*(r-t.getRelativeLuminance())/r;return e.darken(n)};e.white=new e(new i(255,255,255,1));e.black=new e(new i(0,0,0,1));e.red=new e(new i(255,0,0,1));e.blue=new e(new i(0,0,255,1));e.cyan=new e(new i(0,255,255,1));e.lightgrey=new e(new i(211,211,211,1));e.transparent=new e(new i(0,0,0,0));return e}();!function(e){var t;!function(t){var n;!function(t){function n(t){if(1===t.rgba.a)return"rgb("+t.rgba.r+", "+t.rgba.g+", "+t.rgba.b+")";return e.Format.CSS.formatRGBA(t)}t.formatRGB=n;function r(e){return"rgba("+e.rgba.r+", "+e.rgba.g+", "+e.rgba.b+", "+ +e.rgba.a.toFixed(2)+")"}t.formatRGBA=r;function o(t){if(1===t.hsla.a)return"hsl("+t.hsla.h+", "+(100*t.hsla.s).toFixed(2)+"%, "+(100*t.hsla.l).toFixed(2)+"%)";return e.Format.CSS.formatHSLA(t)}t.formatHSL=o;function a(e){return"hsla("+e.hsla.h+", "+(100*e.hsla.s).toFixed(2)+"%, "+(100*e.hsla.l).toFixed(2)+"%, "+e.hsla.a.toFixed(2)+")"}t.formatHSLA=a;function s(e){var t=e.toString(16);return 2!==t.length?"0"+t:t}function u(e){return"#"+s(e.rgba.r)+s(e.rgba.g)+s(e.rgba.b)}t.formatHex=u;function l(t,n){void 0===n&&(n=!1);if(n&&1===t.rgba.a)return e.Format.CSS.formatHex(t);return"#"+s(t.rgba.r)+s(t.rgba.g)+s(t.rgba.b)+s(Math.round(255*t.rgba.a))}t.formatHexA=l;function c(t){if(!t)return null;if(t.isOpaque())return e.Format.CSS.formatHex(t);return e.Format.CSS.formatRGBA(t)}t.format=c;function d(t){if(!t)return null;var n=t.length;if(0===n)return null;if(35!==t.charCodeAt(0))return null;if(7===n){var r=16*h(t.charCodeAt(1))+h(t.charCodeAt(2));var o=16*h(t.charCodeAt(3))+h(t.charCodeAt(4));var a=16*h(t.charCodeAt(5))+h(t.charCodeAt(6));return new e(new i(r,o,a,1))}if(9===n){var r=16*h(t.charCodeAt(1))+h(t.charCodeAt(2));var o=16*h(t.charCodeAt(3))+h(t.charCodeAt(4));var a=16*h(t.charCodeAt(5))+h(t.charCodeAt(6));var s=16*h(t.charCodeAt(7))+h(t.charCodeAt(8));return new e(new i(r,o,a,s/255))}if(4===n){var r=h(t.charCodeAt(1));var o=h(t.charCodeAt(2));var a=h(t.charCodeAt(3));return new e(new i(16*r+r,16*o+o,16*a+a))}if(5===n){var r=h(t.charCodeAt(1));var o=h(t.charCodeAt(2));var a=h(t.charCodeAt(3));var s=h(t.charCodeAt(4));return new e(new i(16*r+r,16*o+o,16*a+a,(16*s+s)/255))}return null}t.parseHex=d;function h(e){switch(e){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:case 65:return 10;case 98:case 66:return 11;case 99:case 67:return 12;case 100:case 68:return 13;case 101:case 69:return 14;case 102:case 70:return 15}return 0}}(n=t.CSS||(t.CSS={}))}(t=e.Format||(e.Format={}))}(s||(s={}))},gYaU:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("zgcD");var i;!function(e){e.editorTextFocus=new r["f"]("editorTextFocus",!1);e.focus=new r["f"]("editorFocus",!1);e.textInputFocus=new r["f"]("textInputFocus",!1);e.readOnly=new r["f"]("editorReadonly",!1);e.writable=e.readOnly.toNegated();e.hasNonEmptySelection=new r["f"]("editorHasSelection",!1);e.hasOnlyEmptySelection=e.hasNonEmptySelection.toNegated();e.hasMultipleSelections=new r["f"]("editorHasMultipleSelections",!1);e.hasSingleSelection=e.hasMultipleSelections.toNegated();e.tabMovesFocus=new r["f"]("editorTabMovesFocus",!1);e.tabDoesNotMoveFocus=e.tabMovesFocus.toNegated();e.isInEmbeddedEditor=new r["f"]("isInEmbeddedEditor",!1);e.canUndo=new r["f"]("canUndo",!1);e.canRedo=new r["f"]("canRedo",!1);e.languageId=new r["f"]("editorLangId","");e.hasCompletionItemProvider=new r["f"]("editorHasCompletionItemProvider",!1);e.hasCodeActionsProvider=new r["f"]("editorHasCodeActionsProvider",!1);e.hasCodeLensProvider=new r["f"]("editorHasCodeLensProvider",!1);e.hasDefinitionProvider=new r["f"]("editorHasDefinitionProvider",!1);e.hasImplementationProvider=new r["f"]("editorHasImplementationProvider",!1);e.hasTypeDefinitionProvider=new r["f"]("editorHasTypeDefinitionProvider",!1);e.hasHoverProvider=new r["f"]("editorHasHoverProvider",!1);e.hasDocumentHighlightProvider=new r["f"]("editorHasDocumentHighlightProvider",!1);e.hasDocumentSymbolProvider=new r["f"]("editorHasDocumentSymbolProvider",!1);e.hasReferenceProvider=new r["f"]("editorHasReferenceProvider",!1);e.hasRenameProvider=new r["f"]("editorHasRenameProvider",!1);e.hasDocumentFormattingProvider=new r["f"]("editorHasDocumentFormattingProvider",!1);e.hasDocumentSelectionFormattingProvider=new r["f"]("editorHasDocumentSelectionFormattingProvider",!1);e.hasSignatureHelpProvider=new r["f"]("editorHasSignatureHelpProvider",!1)}(i||(i={}))},gZKZ:function(e,t,n){"use strict";var r=n("W5Z6");var i=n("5s6q");var o=n("KVQV");var a=n("PFKJ");var s=n("cENI");var u=n("Dg3a");var l=n("zgxN");var c=n("ykW5");var d=function(){function e(t){t.autoClosingPairs?this._autoClosingPairs=t.autoClosingPairs.map(function(e){return new l["b"](e)}):t.brackets?this._autoClosingPairs=t.brackets.map(function(e){return new l["b"]({open:e[0],close:e[1]})}):this._autoClosingPairs=[];this._autoCloseBefore="string"==typeof t.autoCloseBefore?t.autoCloseBefore:e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED;this._surroundingPairs=t.surroundingPairs||this._autoClosingPairs}e.prototype.getAutoClosingPairs=function(){return this._autoClosingPairs};e.prototype.getAutoCloseBeforeSet=function(){return this._autoCloseBefore};e.prototype.shouldAutoClosePair=function(e,t,n){if(0===t.getTokenCount())return!0;var r=t.findTokenIndexAtOffset(n-2);var i=t.getStandardTokenType(r);for(var o=0;o<this._autoClosingPairs.length;++o){var a=this._autoClosingPairs[o];if(a.open===e)return a.isOK(i)}return!1};e.prototype.getSurroundingPairs=function(){return this._surroundingPairs};e.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED=";:.,=}])> \n\t";return e}();var h=n("XhnL");var f=function(){function e(e,t,n){n=n||{};this._richEditBrackets=e;this._complexAutoClosePairs=t.filter(function(e){return e.open.length>1&&!!e.close}).map(function(e){return new l["b"](e)});n.docComment&&this._complexAutoClosePairs.push(new l["b"]({open:n.docComment.open,close:n.docComment.close}))}e.prototype.getElectricCharacters=function(){var e=[];if(this._richEditBrackets)for(var t=0,n=this._richEditBrackets.brackets.length;t<n;t++){var r=this._richEditBrackets.brackets[t];var i=r.close.charAt(r.close.length-1);e.push(i)}for(var o=0,a=this._complexAutoClosePairs;o<a.length;o++){var s=a[o];e.push(s.open.charAt(s.open.length-1))}return e=e.filter(function(e,t,n){return n.indexOf(e)===t})};e.prototype.onElectricCharacter=function(e,t,n){return this._onElectricAutoClose(e,t,n)||this._onElectricAutoIndent(e,t,n)};e.prototype._onElectricAutoIndent=function(e,t,n){if(!this._richEditBrackets||0===this._richEditBrackets.brackets.length)return null;var r=t.findTokenIndexAtOffset(n-1);if(Object(c["b"])(t.getStandardTokenType(r)))return null;var i=this._richEditBrackets.reversedRegex;var o=t.getLineContent().substring(0,n-1)+e;var a=h["a"].findPrevBracketInToken(i,1,o,0,o.length);if(!a)return null;var s=o.substring(a.startColumn-1,a.endColumn-1);s=s.toLowerCase();var u;if(this._richEditBrackets.textIsOpenBracket[s])return null;var l=o.substring(0,a.startColumn-1);if(!/^\s*$/.test(l))return null;return{matchOpenBracket:s}};e.prototype._onElectricAutoClose=function(e,t,n){if(!this._complexAutoClosePairs.length)return null;var r=t.getLineContent();for(var i=0,o=this._complexAutoClosePairs.length;i<o;i++){var a=this._complexAutoClosePairs[i];if(e!==a.open.charAt(a.open.length-1))continue;var s=n-a.open.length+1;var u;if(r.substring(s-1,n-1)+e!==a.open)continue;var l=t.findTokenIndexAtOffset(n-1);var c=t.getStandardTokenType(l);if(!a.isOK(c))continue;if(r.indexOf(a.close,n-1)>=0)continue;return{appendText:a.close}}return null};return e}();var p=function(){function e(e){this._indentationRules=e}e.prototype.shouldIncrease=function(e){if(this._indentationRules&&this._indentationRules.increaseIndentPattern&&this._indentationRules.increaseIndentPattern.test(e))return!0;return!1};e.prototype.shouldDecrease=function(e){if(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&this._indentationRules.decreaseIndentPattern.test(e))return!0;return!1};e.prototype.shouldIndentNextLine=function(e){if(this._indentationRules&&this._indentationRules.indentNextLinePattern&&this._indentationRules.indentNextLinePattern.test(e))return!0;return!1};e.prototype.shouldIgnore=function(e){if(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&this._indentationRules.unIndentedLinePattern.test(e))return!0;return!1};e.prototype.getIndentMetadata=function(e){var t=0;this.shouldIncrease(e)&&(t+=1);this.shouldDecrease(e)&&(t+=2);this.shouldIndentNextLine(e)&&(t+=4);this.shouldIgnore(e)&&(t+=8);return t};return e}();var g=function(){function e(t){var n=this;(t=t||{}).brackets=t.brackets||[["(",")"],["{","}"],["[","]"]];this._brackets=[];t.brackets.forEach(function(t){var r=e._createOpenBracketRegExp(t[0]);var i=e._createCloseBracketRegExp(t[1]);r&&i&&n._brackets.push({open:t[0],openRegExp:r,close:t[1],closeRegExp:i})});this._regExpRules=t.regExpRules||[]}e.prototype.onEnter=function(e,t,n){for(var r=0,i=this._regExpRules.length;r<i;r++){var o=this._regExpRules[r];var a;if([{reg:o.beforeText,text:t},{reg:o.afterText,text:n},{reg:o.oneLineAboveText,text:e}].every(function(e){return!e.reg||e.reg.test(e.text)}))return o.action}if(t.length>0&&n.length>0)for(var r=0,i=this._brackets.length;r<i;r++){var s;if((s=this._brackets[r]).openRegExp.test(t)&&s.closeRegExp.test(n))return{indentAction:l["a"].IndentOutdent}}if(t.length>0)for(var r=0,i=this._brackets.length;r<i;r++){var s;if((s=this._brackets[r]).openRegExp.test(t))return{indentAction:l["a"].Indent}}return null};e._createOpenBracketRegExp=function(t){var n=a["l"](t);/\B/.test(n.charAt(0))||(n="\\b"+n);n+="\\s*$";return e._safeRegExp(n)};e._createCloseBracketRegExp=function(t){var n=a["l"](t);/\B/.test(n.charAt(n.length-1))||(n+="\\b");n="^\\s*"+n;return e._safeRegExp(n)};e._safeRegExp=function(e){try{return new RegExp(e)}catch(e){Object(r["d"])(e);return null}};return e}();n.d(t,"a",function(){return y});var v=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 d(this._conf);this.wordDefinition=this._conf.wordPattern||u["a"];this.indentationRules=this._conf.indentationRules;this._conf.indentationRules&&(this.indentRulesSupport=new p(this._conf.indentationRules));this.foldingRules=this._conf.folding||{}}Object.defineProperty(e.prototype,"brackets",{get:function(){!this._brackets&&this._conf.brackets&&(this._brackets=new h["b"](this._languageIdentifier,this._conf.brackets));return 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 f(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={};var n=!0;if(e.brackets){n=!1;t.brackets=e.brackets}e.indentationRules&&(n=!1);if(e.onEnterRules){n=!1;t.regExpRules=e.onEnterRules}if(!n)return new g(t);return null};e._handleComments=function(e){var t=e.comments;if(!t)return null;var n={};t.lineComment&&(n.lineCommentToken=t.lineComment);if(t.blockComment){var r=t.blockComment,i=r[0],o=r[1];n.blockCommentStartToken=i;n.blockCommentEndToken=o}return n};return e}();var m=function(){function e(){}return e}();var _;var y=new(function(){function e(){this._onDidChange=new i["a"];this.onDidChange=this._onDidChange.event;this._entries=[]}e.prototype.register=function(e,t){var n=this;var r=this._getRichEditSupport(e.id);var i=new v(e,r,t);this._entries[e.id]=i;this._onDidChange.fire({languageIdentifier:e});return Object(o["e"])(function(){if(n._entries[e.id]===i){n._entries[e.id]=r;n._onDidChange.fire({languageIdentifier:e})}})};e.prototype._getRichEditSupport=function(e){return this._entries[e]||null};e.prototype._getElectricCharacterSupport=function(e){var t=this._getRichEditSupport(e);if(!t)return null;return t.electricCharacter||null};e.prototype.getElectricCharacters=function(e){var t=this._getElectricCharacterSupport(e);if(!t)return[];return t.getElectricCharacters()};e.prototype.onElectricCharacter=function(e,t,n){var r=Object(c["a"])(t,n-1);var i=this._getElectricCharacterSupport(r.languageId);if(!i)return null;return i.onElectricCharacter(e,r,n-r.firstCharOffset)};e.prototype.getComments=function(e){var t=this._getRichEditSupport(e);if(!t)return null;return t.comments||null};e.prototype._getCharacterPairSupport=function(e){var t=this._getRichEditSupport(e);if(!t)return null;return t.characterPair||null};e.prototype.getAutoClosingPairs=function(e){var t=this._getCharacterPairSupport(e);if(!t)return[];return t.getAutoClosingPairs()};e.prototype.getAutoCloseBeforeSet=function(e){var t=this._getCharacterPairSupport(e);if(!t)return d.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED;return t.getAutoCloseBeforeSet()};e.prototype.getSurroundingPairs=function(e){var t=this._getCharacterPairSupport(e);if(!t)return[];return t.getSurroundingPairs()};e.prototype.shouldAutoClosePair=function(e,t,n){var r=Object(c["a"])(t,n-1);var i=this._getCharacterPairSupport(r.languageId);if(!i)return!1;return i.shouldAutoClosePair(e,r,n-r.firstCharOffset)};e.prototype.getWordDefinition=function(e){var t=this._getRichEditSupport(e);if(!t)return Object(u["c"])(null);return Object(u["c"])(t.wordDefinition||null)};e.prototype.getFoldingRules=function(e){var t=this._getRichEditSupport(e);if(!t)return{};return t.foldingRules};e.prototype.getIndentRulesSupport=function(e){var t=this._getRichEditSupport(e);if(!t)return null;return t.indentRulesSupport||null};e.prototype.getPrecedingValidLine=function(e,t,n){var r=e.getLanguageIdAtPosition(t,0);if(t>1){var i=t-1;var 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){o=i;continue}return 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(t<=1)return{indentation:"",action:null};var i=this.getPrecedingValidLine(e,t,r);if(i<0)return null;if(i<1)return{indentation:"",action:null};var o=e.getLineContent(i);if(r.shouldIncrease(o)||r.shouldIndentNextLine(o))return{indentation:a["o"](o),action:l["a"].Indent,line:i};if(r.shouldDecrease(o))return{indentation:a["o"](o),action:null,line:i};if(1===i)return{indentation:a["o"](e.getLineContent(i)),action:null,line:i};var s=i-1;var u=r.getIndentMetadata(e.getLineContent(s));if(!(3&u)&&4&u){var c=0;for(var d=s-1;d>0;d--){if(r.shouldIndentNextLine(e.getLineContent(d)))continue;c=d;break}return{indentation:a["o"](e.getLineContent(c+1)),action:null,line:c+1}}if(n)return{indentation:a["o"](e.getLineContent(i)),action:null,line:i};for(var d=i;d>0;d--){var h=e.getLineContent(d);if(r.shouldIncrease(h))return{indentation:a["o"](h),action:l["a"].Indent,line:d};if(r.shouldIndentNextLine(h)){var c=0;for(var f=d-1;f>0;f--){if(r.shouldIndentNextLine(e.getLineContent(d)))continue;c=f;break}return{indentation:a["o"](e.getLineContent(c+1)),action:null,line:c+1}}if(r.shouldDecrease(h))return{indentation:a["o"](h),action:null,line:d}}return{indentation:a["o"](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);var u=e.getLineContent(n);if(s){var c=s.line;if(void 0!==c){var d=this._getOnEnterSupport(t);var h=null;try{d&&(h=d.onEnter("",e.getLineContent(c),""))}catch(e){Object(r["d"])(e)}if(h){var f=a["o"](e.getLineContent(c));h.removeText&&(f=f.substring(0,f.length-h.removeText));h.indentAction===l["a"].Indent||h.indentAction===l["a"].IndentOutdent?f=i.shiftIndent(f):h.indentAction===l["a"].Outdent&&(f=i.unshiftIndent(f));o.shouldDecrease(u)&&(f=i.unshiftIndent(f));h.appendText&&(f+=h.appendText);return a["o"](f)}}return o.shouldDecrease(u)?s.action===l["a"].Indent?s.indentation:i.unshiftIndent(s.indentation):s.action===l["a"].Indent?i.shiftIndent(s.indentation):s.indentation}return null};e.prototype.getIndentForEnter=function(e,t,n,r){e.forceTokenization(t.startLineNumber);var i=e.getLineTokens(t.startLineNumber);var o;var s;var u=Object(c["a"])(i,t.startColumn-1);var d=u.getLineContent();var h=!1;if(u.firstCharOffset>0&&i.getLanguageId(0)!==u.languageId){h=!0;o=d.substr(0,t.startColumn-1-u.firstCharOffset)}else o=i.getLineContent().substring(0,t.startColumn-1);if(t.isEmpty())s=d.substr(t.startColumn-1-u.firstCharOffset);else{var f;s=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-u.firstCharOffset)}var p=this.getIndentRulesSupport(u.languageId);if(!p)return null;var g=o;var v=a["o"](o);if(!r&&!h){var m=this.getInheritIndentForLine(e,t.startLineNumber);if(p.shouldDecrease(o)&&m){v=m.indentation;m.action!==l["a"].Indent&&(v=n.unshiftIndent(v))}g=v+a["x"](a["x"](o," "),"\t")}var _={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?g:e.getLineContent(n)}};var y=a["o"](i.getLineContent());var b=this.getInheritIndentForLine(_,t.startLineNumber+1);if(!b){var C=h?y:v;return{beforeEnter:C,afterEnter:C}}var w=h?y:b.indentation;b.action===l["a"].Indent&&(w=n.shiftIndent(w));p.shouldDecrease(s)&&(w=n.unshiftIndent(w));return{beforeEnter:h?y:v,afterEnter:w}};e.prototype.getIndentActionForType=function(e,t,n,r){var i=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn);var o=this.getIndentRulesSupport(i.languageId);if(!o)return null;var a=i.getLineContent();var s=a.substr(0,t.startColumn-1-i.firstCharOffset);var u;if(t.isEmpty())u=a.substr(t.startColumn-1-i.firstCharOffset);else{var c;u=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-i.firstCharOffset)}if(!o.shouldDecrease(s+u)&&o.shouldDecrease(s+n+u)){var d=this.getInheritIndentForLine(e,t.startLineNumber,!1);if(!d)return null;var h=d.indentation;d.action!==l["a"].Indent&&(h=r.unshiftIndent(h));return h}return null};e.prototype.getIndentMetadata=function(e,t){var n=this.getIndentRulesSupport(e.getLanguageIdentifier().id);if(!n)return null;if(t<1||t>e.getLineCount())return null;return n.getIndentMetadata(e.getLineContent(t))};e.prototype._getOnEnterSupport=function(e){var t=this._getRichEditSupport(e);if(!t)return null;return t.onEnter||null};e.prototype.getRawEnterActionAtPosition=function(e,t,n){var r=this.getEnterAction(e,new s["a"](t,n,t,n));return r?r.enterAction:null};e.prototype.getEnterAction=function(e,t){var n=this.getIndentationAtPosition(e,t.startLineNumber,t.startColumn);var i=this.getScopedLineTokens(e,t.startLineNumber,t.startColumn);var o=this._getOnEnterSupport(i.languageId);if(!o)return null;var a=i.getLineContent();var s=a.substr(0,t.startColumn-1-i.firstCharOffset);var u;if(t.isEmpty())u=a.substr(t.startColumn-1-i.firstCharOffset);else{var c;u=this.getScopedLineTokens(e,t.endLineNumber,t.endColumn).getLineContent().substr(t.endColumn-1-i.firstCharOffset)}var d=t.startLineNumber;var h="";if(d>1&&0===i.firstCharOffset){var f=this.getScopedLineTokens(e,d-1);f.languageId===i.languageId&&(h=f.getLineContent())}var p=null;try{p=o.onEnter(h,s,u)}catch(e){Object(r["d"])(e)}if(!p)return null;p.appendText||(p.indentAction===l["a"].Indent||p.indentAction===l["a"].IndentOutdent?p.appendText="\t":p.appendText="");p.removeText&&(n=n.substring(0,n.length-p.removeText));return{enterAction:p,indentation:n}};e.prototype.getIndentationAtPosition=function(e,t,n){var r=e.getLineContent(t);var i=a["o"](r);i.length>n-1&&(i=i.substring(0,n-1));return i};e.prototype.getScopedLineTokens=function(e,t,n){e.forceTokenization(t);var r=e.getLineTokens(t);var i=void 0===n?e.getLineMaxColumn(t)-1:n-1;var o;return Object(c["a"])(r,i)};e.prototype.getBracketsSupport=function(e){var t=this._getRichEditSupport(e);if(!t)return null;return t.brackets||null};return e}())},gv4i:function(e,t,n){var r=n("QWeu");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},h2PT:function(e,t,n){var r=n("Y0eL");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},iGpD:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-sash {\r\n\tposition: absolute;\r\n\tz-index: 90;\r\n\ttouch-action: none;\r\n}\r\n\r\n.monaco-sash.disabled {\r\n\tpointer-events: none;\r\n}\r\n\r\n.monaco-sash.vertical {\r\n\tcursor: ew-resize;\r\n\ttop: 0;\r\n\twidth: 4px;\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-sash.mac.vertical {\r\n\tcursor: col-resize;\r\n}\r\n\r\n.monaco-sash.vertical.minimum {\r\n\tcursor: e-resize;\r\n}\r\n\r\n.monaco-sash.vertical.maximum {\r\n\tcursor: w-resize;\r\n}\r\n\r\n.monaco-sash.horizontal {\r\n\tcursor: ns-resize;\r\n\tleft: 0;\r\n\twidth: 100%;\r\n\theight: 4px;\r\n}\r\n\r\n.monaco-sash.mac.horizontal {\r\n\tcursor: row-resize;\r\n}\r\n\r\n.monaco-sash.horizontal.minimum {\r\n\tcursor: s-resize;\r\n}\r\n\r\n.monaco-sash.horizontal.maximum {\r\n\tcursor: n-resize;\r\n}\r\n\r\n.monaco-sash:not(.disabled).orthogonal-start::before,\r\n.monaco-sash:not(.disabled).orthogonal-end::after {\r\n\tcontent: ' ';\r\n\theight: 8px;\r\n\twidth: 8px;\r\n\tz-index: 100;\r\n\tdisplay: block;\r\n\tcursor: all-scroll;\r\n\tposition: absolute;\r\n}\r\n\r\n.monaco-sash.orthogonal-start.vertical::before {\r\n\tleft: -2px;\r\n\ttop: -4px;\r\n}\r\n\r\n.monaco-sash.orthogonal-end.vertical::after {\r\n\tleft: -2px;\r\n\tbottom: -4px;\r\n}\r\n\r\n.monaco-sash.orthogonal-start.horizontal::before {\r\n\ttop: -2px;\r\n\tleft: -4px;\r\n}\r\n\r\n.monaco-sash.orthogonal-end.horizontal::after {\r\n\ttop: -2px;\r\n\tright: -4px;\r\n}\r\n\r\n.monaco-sash.disabled {\r\n\tcursor: default !important;\r\n}\r\n\r\n/** Touch **/\r\n\r\n.monaco-sash.touch.vertical {\r\n\twidth: 20px;\r\n}\r\n\r\n.monaco-sash.touch.horizontal {\r\n\theight: 20px;\r\n}\r\n\r\n/** Debug **/\r\n\r\n.monaco-sash.debug:not(.disabled) {\r\n\tbackground: cyan;\r\n}\r\n\r\n.monaco-sash.debug:not(.disabled).orthogonal-start::before,\r\n.monaco-sash.debug:not(.disabled).orthogonal-end::after {\r\n\tbackground: red;\r\n}",""])},ijzU:function(e,t,n){var r=n("wDCu");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},j5o4:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .view-ruler {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n}",""])},jQXP:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.context-view {\r\n\tposition: absolute;\r\n\tz-index: 2000;\r\n}",""])},jf8o:function(e,t,n){var r=n("J6h7");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},jlTA:function(e,t,n){"use strict";n.d(t,"a",function(){return y});n.d(t,"c",function(){return b});n.d(t,"b",function(){return C});n.d(t,"f",function(){return L});n.d(t,"e",function(){return I});n.d(t,"h",function(){return x});n.d(t,"g",function(){return N});n.d(t,"d",function(){return M});var r=n("kaC/");var i=n("W5Z6");var o=n("PJlg");var a=n("4d2E");var s=n("6dSJ");var u=n("Mk1O");var l=n("VHqg");var c=n("WTqa");var d=n("rCf5");var h=n("zgcD");var f=n("vMMm");var p=n("Yn0l");var g=n("r8M0");var v=(m=function(e,t){return(m=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])})(e,t)},function(e,t){m(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var m;var _=function(){return(_=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e}).apply(this,arguments)};var y=function(){function e(e){this.id=e.id;this.precondition=e.precondition;this._kbOpts=e.kbOpts;this._menubarOpts=e.menubarOpts;this._description=e.description}e.prototype.register=function(){var e=this;this._menubarOpts&&c["d"].appendMenuItem(this._menubarOpts.menuId,{group:this._menubarOpts.group,command:{id:this.id,title:this._menubarOpts.title},when:this._menubarOpts.when,order:this._menubarOpts.order});if(this._kbOpts){var t=this._kbOpts.kbExpr;this.precondition&&(t=t?h["d"].and(t,this.precondition):this.precondition);f["a"].registerCommandAndKeybindingRule({id:this.id,handler:function(t,n){return e.runCommand(t,n)},weight:this._kbOpts.weight,when:t||null,primary:this._kbOpts.primary,secondary:this._kbOpts.secondary,win:this._kbOpts.win,linux:this._kbOpts.linux,mac:this._kbOpts.mac,description:this._description})}else d["a"].registerCommand({id:this.id,handler:function(t,n){return e.runCommand(t,n)},description:this._description})};return e}();var b=function(e){v(t,e);function t(){return null!==e&&e.apply(this,arguments)||this}t.bindToContribution=function(e){return function(t){v(n,t);function n(e){var n=t.call(this,e)||this;n._callback=e.handler;return n}n.prototype.runEditorCommand=function(t,n,r){var i;e(n)&&this._callback(e(n))};return n}(t)};t.prototype.runCommand=function(e,t){var n=this;var r=e.get(a["a"]);var i=r.getFocusedCodeEditor()||r.getActiveCodeEditor();if(!i)return;return i.invokeWithinContext(function(e){var r;if(!e.get(h["e"]).contextMatchesRules(n.precondition))return;return n.runEditorCommand(e,i,t)})};return t}(y);var C=function(e){v(t,e);function t(t){var n=e.call(this,t)||this;n.label=t.label;n.alias=t.alias;n.menuOpts=t.menuOpts;return n}t.prototype.register=function(){this.menuOpts&&c["d"].appendMenuItem(c["b"].EditorContext,{command:{id:this.id,title:this.label},when:h["d"].and(this.precondition,this.menuOpts.when),group:this.menuOpts.group,order:this.menuOpts.order});e.prototype.register.call(this)};t.prototype.runEditorCommand=function(e,t,n){this.reportTelemetry(e,t);return this.run(e,t,n||{})};t.prototype.reportTelemetry=function(e,t){e.get(g["a"]).publicLog("editorActionInvoked",_({name:this.label,id:this.id},t.getTelemetryData()))};return t}(b);function w(e,t){d["a"].registerCommand(e,function(e,n){return t(e,n||{})})}function S(e,t){w(e,function(e,n){var a=n.resource,c=n.position;if(!(a instanceof o["a"]))throw Object(i["b"])("resource");if(!s["a"].isIPosition(c))throw Object(i["b"])("position");var d=e.get(u["a"]).getModel(a);if(d){var h=s["a"].lift(c);return t(d,h,n)}return e.get(l["a"]).createModelReference(a).then(function(e){return Object(r["e"])(new Promise(function(r,i){try{var o;r(t(e.object.textEditorModel,s["a"].lift(c),n))}catch(e){i(e)}}),function(){e.dispose()})})})}function L(e){k.INSTANCE.registerEditorCommand(e);return e}function I(e){k.INSTANCE.registerEditorAction(new e)}function x(e){k.INSTANCE.registerEditorAction(e)}function N(e){k.INSTANCE.registerEditorContribution(e)}var M;!function(e){function t(e){return k.INSTANCE.getEditorCommand(e)}e.getEditorCommand=t;function n(){return k.INSTANCE.getEditorActions()}e.getEditorActions=n;function r(){return k.INSTANCE.getEditorContributions()}e.getEditorContributions=r}(M||(M={}));var D="editor.contributions";var k=function(){function e(){this.editorContributions=[];this.editorActions=[];this.editorCommands=Object.create(null)}e.prototype.registerEditorContribution=function(e){this.editorContributions.push(e)};e.prototype.registerEditorAction=function(e){e.register();this.editorActions.push(e)};e.prototype.getEditorContributions=function(){return this.editorContributions.slice(0)};e.prototype.getEditorActions=function(){return this.editorActions.slice(0)};e.prototype.registerEditorCommand=function(e){e.register();this.editorCommands[e.id]=e};e.prototype.getEditorCommand=function(e){return this.editorCommands[e]||null};e.INSTANCE=new e;return e}();p["a"].add(D,k.INSTANCE)},"kaC/":function(e,t,n){"use strict";n.d(t,"g",function(){return l});n.d(t,"f",function(){return c});n.d(t,"a",function(){return d});n.d(t,"h",function(){return h});n.d(t,"e",function(){return f});n.d(t,"d",function(){return g});n.d(t,"b",function(){return v});n.d(t,"c",function(){return m});var r=n("dFoq");var i=n("W5Z6");var o=n("KVQV");var a=n("eu5a");var s=(u=function(e,t){return(u=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])})(e,t)},function(e,t){u(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var u;function l(e){return e&&"function"==typeof e.then}function c(e){var t=new r["a"];var n=e(t.token);var o=new Promise(function(e,r){t.token.onCancellationRequested(function(){r(i["a"]())});Promise.resolve(n).then(function(n){t.dispose();e(n)},function(e){t.dispose();r(e)})});return new(function(){function e(){}e.prototype.cancel=function(){t.cancel()};e.prototype.then=function(e,t){return o.then(e,t)};e.prototype.catch=function(e){return this.then(void 0,e)};return e}())}var d=function(){function e(e){this.defaultDelay=e;this.timeout=null;this.completionPromise=null;this.doResolve=null;this.task=null}e.prototype.trigger=function(e,t){var n=this;void 0===t&&(t=this.defaultDelay);this.task=e;this.cancelTimeout();this.completionPromise||(this.completionPromise=new a["b"](function(e,t){n.doResolve=e;n.doReject=t}).then(function(){n.completionPromise=null;n.doResolve=null;var e=n.task;n.task=null;return e()}));this.timeout=setTimeout(function(){n.timeout=null;n.doResolve(null)},t);return this.completionPromise};e.prototype.cancel=function(){this.cancelTimeout();if(this.completionPromise){this.doReject(i["a"]());this.completionPromise=null}};e.prototype.cancelTimeout=function(){if(null!==this.timeout){clearTimeout(this.timeout);this.timeout=null}};e.prototype.dispose=function(){this.cancelTimeout()};return e}();function h(e,t){if(!t)return c(function(t){return h(e,t)});return new Promise(function(n,r){var o=setTimeout(n,e);t.onCancellationRequested(function(){clearTimeout(o);r(i["a"]())})})}function f(e,t){function n(){try{t()}catch(e){i["d"](e)}}e.then(function(e){return n()},function(e){return n()});return Promise.resolve(e)}function p(e,t,n){void 0===t&&(t=function(e){return!!e});void 0===n&&(n=null);var r=0;var i=e.length;var o=function(){if(r>=i)return Promise.resolve(n);var a=e[r++];var s;return Promise.resolve(a()).then(function(e){if(t(e))return Promise.resolve(e);return o()})};return o()}var g=function(e){s(t,e);function t(t,n){var r=e.call(this)||this;r._token=-1;"function"==typeof t&&"number"==typeof n&&r.setIfNotSet(t,n);return r}t.prototype.dispose=function(){this.cancel();e.prototype.dispose.call(this)};t.prototype.cancel=function(){if(-1!==this._token){clearTimeout(this._token);this._token=-1}};t.prototype.cancelAndSet=function(e,t){var n=this;this.cancel();this._token=setTimeout(function(){n._token=-1;e()},t)};t.prototype.setIfNotSet=function(e,t){var n=this;if(-1!==this._token)return;this._token=setTimeout(function(){n._token=-1;e()},t)};return t}(o["a"]);var v=function(e){s(t,e);function t(){var t=e.call(this)||this;t._token=-1;return t}t.prototype.dispose=function(){this.cancel();e.prototype.dispose.call(this)};t.prototype.cancel=function(){if(-1!==this._token){clearInterval(this._token);this._token=-1}};t.prototype.cancelAndSet=function(e,t){this.cancel();this._token=setInterval(function(){e()},t)};return t}(o["a"]);var m=function(){function e(e,t){this.timeoutToken=-1;this.runner=e;this.timeout=t;this.timeoutHandler=this.onTimeout.bind(this)}e.prototype.dispose=function(){this.cancel();this.runner=null};e.prototype.cancel=function(){if(this.isScheduled()){clearTimeout(this.timeoutToken);this.timeoutToken=-1}};e.prototype.schedule=function(e){void 0===e&&(e=this.timeout);this.cancel();this.timeoutToken=setTimeout(this.timeoutHandler,e)};e.prototype.isScheduled=function(){return-1!==this.timeoutToken};e.prototype.onTimeout=function(){this.timeoutToken=-1;this.runner&&this.doRun()};e.prototype.doRun=function(){this.runner&&this.runner()};return e}();var _;!function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){var e=Object.freeze({didTimeout:!0,timeRemaining:function(){return 15}});_=function(t,n){void 0===n&&(n=0);var r=setTimeout(function(){return t(e)},n);var i=!1;return{dispose:function(){if(i)return;i=!0;clearTimeout(r)}}}}else _=function(e,t){var n=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0);var r=!1;return{dispose:function(){if(r)return;r=!0;cancelIdleCallback(n)}}}}();var y=function(){function e(e){var t=this;this._executor=function(){try{t._value=e()}catch(e){t._error=e}finally{t._didRun=!0}};this._handle=_(function(){return t._executor()})}e.prototype.dispose=function(){this._handle.dispose()};e.prototype.getValue=function(){if(!this._didRun){this._handle.dispose();this._executor()}if(this._error)throw this._error;return this._value};return e}()},kqNA:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("5s6q");var i=function(e,t,n){var i=function(e){return o.fire(e)};var o=new r["a"]({onFirstListenerAdd:function(){e.addEventListener(t,i,n)},onLastListenerRemove:function(){e.removeEventListener(t,i,n)}});return o.event};function o(e){return Object(r["f"])(e,function(e){e.preventDefault();e.stopPropagation();return e})}},l0MW:function(e,t,n){var r=n("tMKi");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},lDLK:function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host;var r=n+t.pathname.replace(/\/[^\/]*$/,"/");var i;return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var i=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i))return e;var o;o=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:r+i.replace(/^\.\//,"");return"url("+JSON.stringify(o)+")"})}},lGPs:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,'/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* Arrows */\r\n.monaco-scrollable-element > .scrollbar > .up-arrow {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEgMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTkuNDgwNDYsOC45NjE1bDEuMjYsLTEuMjZsLTUuMDQsLTUuMDRsLTUuNDYsNS4wNGwxLjI2LDEuMjZsNC4yLC0zLjc4bDMuNzgsMy43OHoiIGZpbGw9IiM0MjQyNDIiLz48L3N2Zz4=");\r\n\tcursor: pointer;\r\n}\r\n.monaco-scrollable-element > .scrollbar > .down-arrow {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMSAxMSI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoLTE4MCA1LjQ5MDQ1OTkxODk3NTgzLDUuODExNTAwMDcyNDc5MjQ4KSIgZmlsbD0iIzQyNDI0MiIgZD0ibTkuNDgwNDYsOC45NjE1bDEuMjYsLTEuMjZsLTUuMDQsLTUuMDRsLTUuNDYsNS4wNGwxLjI2LDEuMjZsNC4yLC0zLjc4bDMuNzgsMy43OHoiLz48L3N2Zz4=");\r\n\tcursor: pointer;\r\n}\r\n.monaco-scrollable-element > .scrollbar > .left-arrow {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMSAxMSI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDUuNDkwNDU5OTE4OTc1ODMxLDUuNDMxMzgyMTc5MjYwMjU0KSIgZmlsbD0iIzQyNDI0MiIgZD0ibTkuNDgwNDYsOC41ODEzOGwxLjI2LC0xLjI2bC01LjA0LC01LjA0bC01LjQ2LDUuMDRsMS4yNiwxLjI2bDQuMiwtMy43OGwzLjc4LDMuNzh6Ii8+PC9zdmc+");\r\n\tcursor: pointer;\r\n}\r\n.monaco-scrollable-element > .scrollbar > .right-arrow {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEgMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoOTAgNS42MTcxNjUwODg2NTM1NjQ1LDUuNTU4MDg5NzMzMTIzNzgpICIgZmlsbD0iIzQyNDI0MiIgZD0ibTkuNjA3MTcsOC43MDgwOWwxLjI2LC0xLjI2bC01LjA0LC01LjA0bC01LjQ2LDUuMDRsMS4yNiwxLjI2bDQuMiwtMy43OGwzLjc4LDMuNzh6Ii8+PC9zdmc+");\r\n\tcursor: pointer;\r\n}\r\n\r\n.hc-black .monaco-scrollable-element > .scrollbar > .up-arrow,\r\n.vs-dark .monaco-scrollable-element > .scrollbar > .up-arrow {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEgMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0ibTkuNDgwNDYsOC45NjE1bDEuMjYsLTEuMjZsLTUuMDQsLTUuMDRsLTUuNDYsNS4wNGwxLjI2LDEuMjZsNC4yLC0zLjc4bDMuNzgsMy43OHoiIGZpbGw9IiNFOEU4RTgiLz48L3N2Zz4=");\r\n}\r\n.hc-black .monaco-scrollable-element > .scrollbar > .down-arrow,\r\n.vs-dark .monaco-scrollable-element > .scrollbar > .down-arrow {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMSAxMSI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoLTE4MCA1LjQ5MDQ1OTkxODk3NTgzLDUuODExNTAwMDcyNDc5MjQ4KSIgZmlsbD0iI0U4RThFOCIgZD0ibTkuNDgwNDYsOC45NjE1bDEuMjYsLTEuMjZsLTUuMDQsLTUuMDRsLTUuNDYsNS4wNGwxLjI2LDEuMjZsNC4yLC0zLjc4bDMuNzgsMy43OHoiLz48L3N2Zz4=");\r\n}\r\n.hc-black .monaco-scrollable-element > .scrollbar > .left-arrow,\r\n.vs-dark .monaco-scrollable-element > .scrollbar > .left-arrow {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMSAxMSI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoLTkwIDUuNDkwNDU5OTE4OTc1ODMxLDUuNDMxMzgyMTc5MjYwMjU0KSIgZmlsbD0iI0U4RThFOCIgZD0ibTkuNDgwNDYsOC41ODEzOGwxLjI2LC0xLjI2bC01LjA0LC01LjA0bC01LjQ2LDUuMDRsMS4yNiwxLjI2bDQuMiwtMy43OGwzLjc4LDMuNzh6Ii8+PC9zdmc+");\r\n}\r\n.hc-black .monaco-scrollable-element > .scrollbar > .right-arrow,\r\n.vs-dark .monaco-scrollable-element > .scrollbar > .right-arrow {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMTEgMTEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggdHJhbnNmb3JtPSJyb3RhdGUoOTAgNS42MTcxNjUwODg2NTM1NjQ1LDUuNTU4MDg5NzMzMTIzNzgpICIgZmlsbD0iI0U4RThFOCIgZD0ibTkuNjA3MTcsOC43MDgwOWwxLjI2LC0xLjI2bC01LjA0LC01LjA0bC01LjQ2LDUuMDRsMS4yNiwxLjI2bDQuMiwtMy43OGwzLjc4LDMuNzh6Ii8+PC9zdmc+");\r\n}\r\n\r\n.monaco-scrollable-element > .visible {\r\n\topacity: 1;\r\n\r\n\t/* Background rule added for IE9 - to allow clicks on dom node */\r\n\tbackground:rgba(0,0,0,0);\r\n\r\n\ttransition: opacity 100ms linear;\r\n}\r\n.monaco-scrollable-element > .invisible {\r\n\topacity: 0;\r\n\tpointer-events: none;\r\n}\r\n.monaco-scrollable-element > .invisible.fade {\r\n\ttransition: opacity 800ms linear;\r\n}\r\n\r\n/* Scrollable Content Inset Shadow */\r\n.monaco-scrollable-element > .shadow {\r\n\tposition: absolute;\r\n\tdisplay: none;\r\n}\r\n.monaco-scrollable-element > .shadow.top {\r\n\tdisplay: block;\r\n\ttop: 0;\r\n\tleft: 3px;\r\n\theight: 3px;\r\n\twidth: 100%;\r\n\tbox-shadow: #DDD 0 6px 6px -6px inset;\r\n}\r\n.monaco-scrollable-element > .shadow.left {\r\n\tdisplay: block;\r\n\ttop: 3px;\r\n\tleft: 0;\r\n\theight: 100%;\r\n\twidth: 3px;\r\n\tbox-shadow: #DDD 6px 0 6px -6px inset;\r\n}\r\n.monaco-scrollable-element > .shadow.top-left-corner {\r\n\tdisplay: block;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\theight: 3px;\r\n\twidth: 3px;\r\n}\r\n.monaco-scrollable-element > .shadow.top.left {\r\n\tbox-shadow: #DDD 6px 6px 6px -6px inset;\r\n}\r\n\r\n/* ---------- Default Style ---------- */\r\n\r\n.vs .monaco-scrollable-element > .scrollbar > .slider {\r\n\tbackground: rgba(100, 100, 100, .4);\r\n}\r\n.vs-dark .monaco-scrollable-element > .scrollbar > .slider {\r\n\tbackground: rgba(121, 121, 121, .4);\r\n}\r\n.hc-black .monaco-scrollable-element > .scrollbar > .slider {\r\n\tbackground: rgba(111, 195, 223, .6);\r\n}\r\n\r\n.monaco-scrollable-element > .scrollbar > .slider:hover {\r\n\tbackground: rgba(100, 100, 100, .7);\r\n}\r\n.hc-black .monaco-scrollable-element > .scrollbar > .slider:hover {\r\n\tbackground: rgba(111, 195, 223, .8);\r\n}\r\n\r\n.monaco-scrollable-element > .scrollbar > .slider.active {\r\n\tbackground: rgba(0, 0, 0, .6);\r\n}\r\n.vs-dark .monaco-scrollable-element > .scrollbar > .slider.active {\r\n\tbackground: rgba(191, 191, 191, .4);\r\n}\r\n.hc-black .monaco-scrollable-element > .scrollbar > .slider.active {\r\n\tbackground: rgba(111, 195, 223, 1);\r\n}\r\n\r\n.vs-dark .monaco-scrollable-element .shadow.top {\r\n\tbox-shadow: none;\r\n}\r\n\r\n.vs-dark .monaco-scrollable-element .shadow.left {\r\n\tbox-shadow: #000 6px 0 6px -6px inset;\r\n}\r\n\r\n.vs-dark .monaco-scrollable-element .shadow.top.left {\r\n\tbox-shadow: #000 6px 6px 6px -6px inset;\r\n}\r\n\r\n.hc-black .monaco-scrollable-element .shadow.top {\r\n\tbox-shadow: none;\r\n}\r\n\r\n.hc-black .monaco-scrollable-element .shadow.left {\r\n\tbox-shadow: none;\r\n}\r\n\r\n.hc-black .monaco-scrollable-element .shadow.top.left {\r\n\tbox-shadow: none;\r\n}',""])},lKvo:function(e,t,n){"use strict";n.d(t,"b",function(){return i});n.d(t,"c",function(){return o});n.d(t,"e",function(){return s});n.d(t,"d",function(){return l});n.d(t,"a",function(){return d});var r=n("GDdU");function i(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;var t=Array.isArray(e)?[]:{};Object.keys(e).forEach(function(n){e[n]&&"object"==typeof e[n]?t[n]=i(e[n]):t[n]=e[n]});return t}function o(e){if(!e||"object"!=typeof e)return e;var t=[e];for(;t.length>0;){var n=t.shift();Object.freeze(n);for(var r in n)if(a.call(n,r)){var i=n[r];"object"!=typeof i||Object.isFrozen(i)||t.push(i)}}return e}var a=Object.prototype.hasOwnProperty;function s(e,t,n){void 0===n&&(n=!0);if(!Object(r["g"])(e))return t;Object(r["g"])(t)&&Object.keys(t).forEach(function(i){i in e?n&&(Object(r["g"])(e[i])&&Object(r["g"])(t[i])?s(e[i],t[i],n):e[i]=t[i]):e[i]=t[i]});return e}function u(e){var t=[];for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];t.forEach(function(t){return Object.keys(t).forEach(function(n){return e[n]=t[n]})});return e}function l(e,t){if(e===t)return!0;if(null===e||void 0===e||null===t||void 0===t)return!1;if(typeof e!=typeof t)return!1;if("object"!=typeof e)return!1;if(Array.isArray(e)!==Array.isArray(t))return!1;var n;var r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!l(e[n],t[n]))return!1}else{var i=[];for(r in e)i.push(r);i.sort();var o=[];for(r in t)o.push(r);o.sort();if(!l(i,o))return!1;for(n=0;n<i.length;n++)if(!l(e[i[n]],t[i[n]]))return!1}return!0}function c(e){var t={};for(var n=0;n<e.length;++n)t[e[n]]=!0;return t}function d(e,t){void 0===t&&(t=!1);t&&(e=e.map(function(e){return e.toLowerCase()}));var n=c(e);return t?function(e){return void 0!==n[e.toLowerCase()]&&n.hasOwnProperty(e.toLowerCase())}:function(e){return void 0!==n[e]&&n.hasOwnProperty(e)}}function h(e,t,n){void 0===n&&(n=null);var r=t(e);return void 0===r?n:r}},m0dU:function(e,t,n){"use strict";n.d(t,"c",function(){return v});n.d(t,"d",function(){return m});n.d(t,"b",function(){return _});n.d(t,"a",function(){return b});var r=n("zjU1");var i=n.n(r);var o=n("9X2a");var a=n("ITjR");var s=n("KVQV");var u=n("5BWK");var l=n("zxKB");var c=n("GDdU");var d=n("eE02");var h=n("RBaS");var f=n("5s6q");var p=(g=function(e,t){return(g=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])})(e,t)},function(e,t){g(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var g;var v=function(e){p(t,e);function t(t,n,r){var i=e.call(this)||this;i.options=r;i._context=t||i;i._action=n;n instanceof u["a"]&&i._register(n.onDidChange(function(e){if(!i.element)return;i.handleActionChangeEvent(e)}));return i}t.prototype.handleActionChangeEvent=function(e){void 0!==e.enabled&&this.updateEnabled();void 0!==e.checked&&this.updateChecked();void 0!==e.class&&this.updateClass();if(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;d["b"].addTarget(e);var n=this.options&&this.options.draggable;n&&(e.draggable=!0);this._register(l["g"](this.element,d["a"].Tap,function(e){return t.onClick(e)}));this._register(l["g"](this.element,l["c"].MOUSE_DOWN,function(e){n||l["b"].stop(e,!0);var r=e;t._action.enabled&&0===r.button&&l["e"](t.element,"active")}));this._register(l["g"](this.element,l["c"].CLICK,function(e){l["b"].stop(e,!0);t.options&&t.options.isMenu?t.onClick(e):o["h"](function(){return t.onClick(e)})}));this._register(l["g"](this.element,l["c"].DBLCLICK,function(e){l["b"].stop(e,!0)}));[l["c"].MOUSE_UP,l["c"].MOUSE_OUT].forEach(function(e){t._register(l["g"](t.element,e,function(e){l["b"].stop(e);l["E"](t.element,"active")}))})};t.prototype.onClick=function(e){l["b"].stop(e,!0);var t;if(c["j"](this._context))t=e;else{t=this._context;c["g"](t)&&(t.event=e)}this._actionRunner.run(this._action,t)};t.prototype.focus=function(){if(this.element){this.element.focus();l["e"](this.element,"focused")}};t.prototype.blur=function(){if(this.element){this.element.blur();l["E"](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(){if(this.element){l["G"](this.element);this.element=null}e.prototype.dispose.call(this)};return t}(s["a"]);var m=function(e){p(t,e);function t(n){var r=e.call(this,t.ID,n,n?"separator text":"separator")||this;r.checked=!1;r.radio=!1;r.enabled=!1;return r}t.ID="vs.actions.separator";return t}(u["a"]);var _=function(e){p(t,e);function t(t,n,r){void 0===r&&(r={});var i=e.call(this,t,n,r)||this;i.options=r;i.options.icon=void 0!==r.icon&&r.icon;i.options.label=void 0===r.label||r.label;i.cssClass="";return i}t.prototype.render=function(t){e.prototype.render.call(this,t);this.label=l["k"](this.element,l["a"]("a.action-label"));this._action.id===m.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&&(l["k"](this.element,l["a"]("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;if(this.getAction().tooltip)e=this.getAction().tooltip;else if(!this.options.label&&this.getAction().label&&this.options.icon){e=this.getAction().label;this.options.keybinding&&(e=a["a"]({key:"titleLabel",comment:["action title","action keybinding"]},"{0} ({1})",e,this.options.keybinding))}e&&(this.label.title=e)};t.prototype.updateClass=function(){this.cssClass&&l["F"](this.label,this.cssClass);if(this.options.icon){this.cssClass=this.getAction().class;l["e"](this.label,"icon");this.cssClass&&l["f"](this.label,this.cssClass);this.updateEnabled()}else l["E"](this.label,"icon")};t.prototype.updateEnabled=function(){if(this.getAction().enabled){this.label.removeAttribute("aria-disabled");l["E"](this.element,"disabled");l["E"](this.label,"disabled");this.label.tabIndex=0}else{this.label.setAttribute("aria-disabled","true");l["e"](this.element,"disabled");l["e"](this.label,"disabled");l["H"](this.label)}};t.prototype.updateChecked=function(){this.getAction().checked?l["e"](this.label,"checked"):l["E"](this.label,"checked")};return t}(v);var y={orientation:0,context:null,triggerKeys:{keys:[3,10],keyDown:!1}};var b=function(e){p(t,e);function t(t,n){void 0===n&&(n=y);var r=e.call(this)||this;r._onDidBlur=r._register(new f["a"]);r._onDidCancel=r._register(new f["a"]);r._onDidRun=r._register(new f["a"]);r._onDidBeforeRun=r._register(new f["a"]);r.options=n;r._context=n.context;r._actionRunner=r.options.actionRunner;r.options.triggerKeys||(r.options.triggerKeys=y.triggerKeys);if(!r._actionRunner){r._actionRunner=new u["b"];r._register(r._actionRunner)}r._register(r._actionRunner.onDidRun(function(e){return r._onDidRun.fire(e)}));r._register(r._actionRunner.onDidBeforeRun(function(e){return r._onDidBeforeRun.fire(e)}));r.items=[];r.focusedItem=void 0;r.domNode=document.createElement("div");r.domNode.className="monaco-action-bar";!1!==n.animated&&l["e"](r.domNode,"animated");var i;var o;switch(r.options.orientation){case 0:i=15;o=17;break;case 1:i=17;o=15;r.domNode.className+=" reverse";break;case 2:i=16;o=18;r.domNode.className+=" vertical";break;case 3:i=18;o=16;r.domNode.className+=" vertical reverse"}r._register(l["g"](r.domNode,l["c"].KEY_DOWN,function(e){var t=new h["a"](e);var n=!0;t.equals(i)?r.focusPrevious():t.equals(o)?r.focusNext():t.equals(9)?r.cancel():r.isTriggerKeyEvent(t)?r.options.triggerKeys&&r.options.triggerKeys.keyDown&&r.doTrigger(t):n=!1;if(n){t.preventDefault();t.stopPropagation()}}));r._register(l["g"](r.domNode,l["c"].KEY_UP,function(e){var t=new h["a"](e);if(r.isTriggerKeyEvent(t)){r.options.triggerKeys.keyDown||r.doTrigger(t);t.preventDefault();t.stopPropagation()}else(t.equals(2)||t.equals(1026))&&r.updateFocusedItem()}));r.focusTracker=r._register(l["O"](r.domNode));r._register(r.focusTracker.onDidBlur(function(){if(document.activeElement===r.domNode||!l["A"](document.activeElement,r.domNode)){r._onDidBlur.fire();r.focusedItem=void 0}}));r._register(r.focusTracker.onDidFocus(function(){return r.updateFocusedItem()}));r.actionsList=document.createElement("ul");r.actionsList.className="actions-container";r.actionsList.setAttribute("role","toolbar");r.options.ariaLabel&&r.actionsList.setAttribute("aria-label",r.options.ariaLabel);r.domNode.appendChild(r.actionsList);t.appendChild(r.domNode);return r}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;this.options.triggerKeys&&this.options.triggerKeys.keys.forEach(function(n){t=t||e.equals(n)});return t};t.prototype.updateFocusedItem=function(){for(var e=0;e<this.actionsList.children.length;e++){var t=this.actionsList.children[e];if(l["A"](document.activeElement,t)){this.focusedItem=e;break}}};Object.defineProperty(t.prototype,"context",{get:function(){return this._context},set:function(e){this._context=e;this.items.forEach(function(t){return t.setActionContext(e)})},enumerable:!0,configurable:!0});t.prototype.getContainer=function(){return this.domNode};t.prototype.push=function(e,t){var n=this;void 0===t&&(t={});var r=Array.isArray(e)?e:[e];var i=c["f"](t.index)?t.index:null;r.forEach(function(e){var r=document.createElement("li");r.className="action-item";r.setAttribute("role","presentation");n._register(l["g"](r,l["c"].CONTEXT_MENU,function(e){e.preventDefault();e.stopPropagation()}));var o=null;n.options.actionItemProvider&&(o=n.options.actionItemProvider(e));o||(o=new _(n.context,e,t));o.actionRunner=n._actionRunner;o.setActionContext(n.context);o.render(r);if(null===i||i<0||i>=n.actionsList.children.length){n.actionsList.appendChild(r);n.items.push(o)}else{n.actionsList.insertBefore(r,n.actionsList.children[i]);n.items.splice(i,0,o);i++}})};t.prototype.clear=function(){this.items=Object(s["d"])(this.items);l["l"](this.actionsList)};t.prototype.isEmpty=function(){return 0===this.items.length};t.prototype.focus=function(e){if(e&&void 0===this.focusedItem){this.focusedItem=this.items.length-1;this.focusNext()}else this.updateFocus()};t.prototype.focusNext=function(){void 0===this.focusedItem&&(this.focusedItem=this.items.length-1);var e=this.focusedItem;var t;do{this.focusedItem=(this.focusedItem+1)%this.items.length;t=this.items[this.focusedItem]}while(this.focusedItem!==e&&!t.isEnabled());this.focusedItem!==e||t.isEnabled()||(this.focusedItem=void 0);this.updateFocus()};t.prototype.focusPrevious=function(){void 0===this.focusedItem&&(this.focusedItem=0);var e=this.focusedItem;var t;do{this.focusedItem=this.focusedItem-1;this.focusedItem<0&&(this.focusedItem=this.items.length-1);t=this.items[this.focusedItem]}while(this.focusedItem!==e&&!t.isEnabled());this.focusedItem!==e||t.isEnabled()||(this.focusedItem=void 0);this.updateFocus(!0)};t.prototype.updateFocus=function(e){void 0===this.focusedItem&&this.actionsList.focus();for(var t=0;t<this.items.length;t++){var n;var r=this.items[t];t===this.focusedItem?c["e"](r.isEnabled)&&(r.isEnabled()&&c["e"](r.focus)?r.focus(e):this.actionsList.focus()):c["e"](r.blur)&&r.blur()}};t.prototype.doTrigger=function(e){if(void 0===this.focusedItem)return;var t=this.items[this.focusedItem];if(t instanceof v){var n=null===t._context||void 0===t._context?e:t._context;this.run(t._action,n)}};t.prototype.cancel=function(){document.activeElement instanceof HTMLElement&&document.activeElement.blur();this._onDidCancel.fire()};t.prototype.run=function(e,t){return this._actionRunner.run(e,t)};t.prototype.dispose=function(){null!==this.items&&Object(s["d"])(this.items);this.items=null;l["G"](this.getContainer());e.prototype.dispose.call(this)};return t}(s["a"])},mGDB:function(e,t,n){"use strict";n.d(t,"a",function(){return r});n.d(t,"d",function(){return i});n.d(t,"b",function(){return o});n.d(t,"c",function(){return a});var r=function(){function e(e,t,n){var r=new Uint8Array(e*t);for(var i=0,o=e*t;i<o;i++)r[i]=n;this._data=r;this.rows=e;this.cols=t}e.prototype.get=function(e,t){return this._data[e*this.cols+t]};e.prototype.set=function(e,t,n){this._data[e*this.cols+t]=n};return e}();function i(e){if(e<0)return 0;if(e>255)return 255;return 0|e}function o(e){if(e<0)return 0;if(e>4294967295)return 4294967295;return 0|e}function a(e){var t=e.length;var n=new Uint32Array(t);for(var r=0;r<t;r++)n[r]=o(e[r]);return n}},mHwz:function(e,t,n){"use strict";n.d(t,"a",function(){return i});n.d(t,"b",function(){return l});var r=n("1RQC");var i=function(){function e(e){void 0===e&&(e="");this.value=e}e.prototype.appendText=function(e){this.value+=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&");return this};e.prototype.appendMarkdown=function(e){this.value+=e;return this};e.prototype.appendCodeblock=function(e,t){this.value+="\n```";this.value+=e;this.value+="\n";this.value+=t;this.value+="\n```\n";return this};return e}();function o(e){return a(e)?!e.value:!Array.isArray(e)||e.every(o)}function a(e){if(e instanceof i)return!0;if(e&&"object"==typeof e)return"string"==typeof e.value&&("boolean"==typeof e.isTrusted||void 0===e.isTrusted);return!1}function s(e,t){return!e&&!t||!(!e||!t)&&(Array.isArray(e)&&Array.isArray(t)?Object(r["c"])(e,t,u):!(!a(e)||!a(t))&&u(e,t))}function u(e,t){return e===t||!(!e||!t)&&(e.value===t.value&&e.isTrusted===t.isTrusted)}function l(e){if(!e)return e;return e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1")}},mTmK:function(e,t,n){var r=n("jQXP");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},"mW+Y":function(e,t,n){var r=n("PLOv");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},p8vD:function(e,t,n){"use strict";n.d(t,"h",function(){return o});n.d(t,"f",function(){return a});n.d(t,"b",function(){return s});n.d(t,"a",function(){return u});n.d(t,"c",function(){return l});n.d(t,"g",function(){return f});n.d(t,"e",function(){return v});n.d(t,"d",function(){return m});var r=n("9X2a");var i=n("PFKJ");var o="/";var a=r["g"]?"\\":"/";function s(e,t){void 0===t&&(t=a);var n=~e.lastIndexOf("/")||~e.lastIndexOf("\\");if(0===n)return".";if(0==~n)return e[0];if(~n==e.length-1)return s(e.substring(0,e.length-1));var i=e.substring(0,~n);r["g"]&&":"===i[i.length-1]&&(i+=t);return i}function u(e){var t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return 0===t?e:~t==e.length-1?u(e.substring(0,e.length-1)):e.substr(1+~t)}function l(e){var t=~(e=u(e)).lastIndexOf(".");return t?e.substring(~t):""}var c=/(\/\.\.?\/)|(\/\.\.?)$|^(\.\.?\/)|(\/\/+)|(\\)/;var d=/(\\\.\.?\\)|(\\\.\.?)$|^(\.\.?\\)|(\\\\+)|(\/)/;function h(e,t){return t?!d.test(e):!c.test(e)}function f(e,t){if(null===e||void 0===e)return e;var n=e.length;if(0===n)return".";var i=!(!r["g"]||!t);if(h(e,i))return e;var o=i?"\\":"/";var a=g(e,o);var s=a.length;var u=!1;var l="";for(var c=a.length;c<=n;c++)if(c===n||47===e.charCodeAt(c)||92===e.charCodeAt(c)){if(p(e,s,c,"..")){var d=l.lastIndexOf(o);var f=l.slice(d+1);if((a||f.length>0)&&".."!==f){l=-1===d?"":l.slice(0,d);u=!0}}else p(e,s,c,".")&&(a||l||c<n-1)&&(u=!0);if(!u){var v=e.slice(s,c);""!==l&&l[l.length-1]!==o&&(l+=o);l+=v}s=c+1;u=!1}return a+l}function p(e,t,n,r){return t+r.length===n&&e.indexOf(r,t)===t}function g(e,t){void 0===t&&(t="/");if(!e)return"";var n=e.length;var r=e.charCodeAt(0);if(47===r||92===r){if((47===(r=e.charCodeAt(1))||92===r)&&47!==(r=e.charCodeAt(2))&&92!==r){var i=3;var o=i;for(;i<n&&(47!==(r=e.charCodeAt(i))&&92!==r);i++);r=e.charCodeAt(i+1);if(o!==i&&47!==r&&92!==r){i+=1;for(;i<n;i++)if(47===(r=e.charCodeAt(i))||92===r)return e.slice(0,i+1).replace(/[\\/]/g,t)}}return t}if((r>=65&&r<=90||r>=97&&r<=122)&&58===e.charCodeAt(1))return 47===(r=e.charCodeAt(2))||92===r?e.slice(0,2)+t:e.slice(0,2);var a=e.indexOf("://");if(-1!==a){a+=3;for(;a<n;a++)if(47===(r=e.charCodeAt(a))||92===r)return e.slice(0,a+1)}return""}var v=function(){var e="";for(var t=0;t<arguments.length;t++){var n=arguments[t];if(t>0){var r=e.charCodeAt(e.length-1);if(47!==r&&92!==r){var i=n.charCodeAt(0);47!==i&&92!==i&&(e+=o)}}e+=n}return f(e)};function m(e,t,n,r){void 0===r&&(r=a);if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){var o;if(!Object(i["B"])(e,t))return!1;if(t.length===e.length)return!0;var s=t.length;t.charAt(t.length-1)===r&&s--;return e.charAt(s)===r}t.charAt(t.length-1)!==r&&(t+=r);return 0===e.indexOf(t)}},pwle:function(e,t,n){var r=n("HYGw");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},r8M0:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("TihM");var i=Object(r["c"])("telemetryService")},rCf5:function(e,t,n){"use strict";n.d(t,"b",function(){return s});n.d(t,"a",function(){return u});var r=n("KVQV");var i=n("GDdU");var o=n("TihM");var a=n("GB/4");var s=Object(o["c"])("commandService");var u=new(function(){function e(){this._commands=new Map}e.prototype.registerCommand=function(e,t){var n=this;if(!e)throw new Error("invalid command");if("string"==typeof e){if(!t)throw new Error("invalid command");return this.registerCommand({id:e,handler:t})}if(e.description){var o=[];for(var s=0,u=e.description.args;s<u.length;s++){var l=u[s];o.push(l.constraint)}var c=e.handler;e.handler=function(e){var t=[];for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];Object(i["k"])(t,o);return c.apply(void 0,[e].concat(t))}}var d=e.id;var h=this._commands.get(d);if(!h){h=new a["a"];this._commands.set(d,h)}var f=h.unshift(e);return Object(r["e"])(function(){f();n._commands.get(d).isEmpty()&&n._commands.delete(d)})};e.prototype.registerCommandAlias=function(e,t){return u.registerCommand(e,function(e){var n=[];for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i;(i=e.get(s)).executeCommand.apply(i,[t].concat(n))})};e.prototype.getCommand=function(e){var t=this._commands.get(e);if(!t||t.isEmpty())return;return t.iterator().next().value};e.prototype.getCommands=function(){var e=this;var t=Object.create(null);this._commands.forEach(function(n,r){t[r]=e.getCommand(r)});return t};return e}())},rTC2:function(e,t,n){"use strict";n.d(t,"c",function(){return r});n.d(t,"d",function(){return i});n.d(t,"b",function(){return o});n.d(t,"a",function(){return a});var r;!function(e){e[e["Left"]=1]="Left";e[e["Center"]=2]="Center";e[e["Right"]=4]="Right";e[e["Full"]=7]="Full"}(r||(r={}));var i=function(){function e(e){this.tabSize=0|e.tabSize;this.insertSpaces=Boolean(e.insertSpaces);this.defaultEOL=0|e.defaultEOL;this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace)}e.prototype.equals=function(e){return this.tabSize===e.tabSize&&this.insertSpaces===e.insertSpaces&&this.defaultEOL===e.defaultEOL&&this.trimAutoWhitespace===e.trimAutoWhitespace};e.prototype.createChangeEvent=function(e){return{tabSize:this.tabSize!==e.tabSize,insertSpaces:this.insertSpaces!==e.insertSpaces,trimAutoWhitespace:this.trimAutoWhitespace!==e.trimAutoWhitespace}};return e}();var o=function(){function e(e,t){this.range=e;this.matches=t}return e}();var a=function(){function e(e,t,n){this.reverseEdits=e;this.changes=t;this.trimAutoWhitespaceLineNumbers=n}return e}()},rkXc:function(e,t,n){"use strict";n.r(t);var r=n("1pmW");var i=n.n(r);var o=n("ITjR");var a=n("aBfO");var s=n("9X2a");var u=n("aAqg");var l=n("jlTA");var c=n("4d2E");var d=n("gYaU");var h=n("WTqa");var f=(p=function(e,t){return(p=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])})(e,t)},function(e,t){p(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var p;var g="9_cutcopypaste";var v=s["e"]||document.queryCommandSupported("cut");var m=s["e"]||document.queryCommandSupported("copy");var _=m&&!a["h"];var y=s["e"]||!a["f"]&&document.queryCommandSupported("paste");var b=function(e){f(t,e);function t(t,n){var r=e.call(this,n)||this;r.browserCommand=t;return r}t.prototype.runCommand=function(e,t){var n=e.get(c["a"]).getFocusedCodeEditor();if(n&&n.hasTextFocus()){n.trigger("keyboard",this.id,t);return}document.execCommand(this.browserCommand)};t.prototype.run=function(e,t){t.focus();document.execCommand(this.browserCommand)};return t}(l["b"]);var C=function(e){f(t,e);function t(){var t=this;var n={kbExpr:d["a"].textInputFocus,primary:2102,win:{primary:2102,secondary:[1044]},weight:100};s["e"]||(n=null);return t=e.call(this,"cut",{id:"editor.action.clipboardCutAction",label:o["a"]("actions.clipboard.cutLabel","Cut"),alias:"Cut",precondition:d["a"].writable,kbOpts:n,menuOpts:{group:g,order:1},menubarOpts:{menuId:h["b"].MenubarEditMenu,group:"2_ccp",title:o["a"]({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1}})||this}t.prototype.run=function(t,n){if(!n.hasModel())return;var r;if(!n.getConfiguration().emptySelectionClipboard&&n.getSelection().isEmpty())return;e.prototype.run.call(this,t,n)};return t}(b);var w=function(e){f(t,e);function t(){var t=this;var n={kbExpr:d["a"].textInputFocus,primary:2081,win:{primary:2081,secondary:[2067]},weight:100};s["e"]||(n=null);return t=e.call(this,"copy",{id:"editor.action.clipboardCopyAction",label:o["a"]("actions.clipboard.copyLabel","Copy"),alias:"Copy",precondition:null,kbOpts:n,menuOpts:{group:g,order:2},menubarOpts:{menuId:h["b"].MenubarEditMenu,group:"2_ccp",title:o["a"]({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2}})||this}t.prototype.run=function(t,n){if(!n.hasModel())return;var r;if(!n.getConfiguration().emptySelectionClipboard&&n.getSelection().isEmpty())return;e.prototype.run.call(this,t,n)};return t}(b);var S=function(e){f(t,e);function t(){var t=this;var n={kbExpr:d["a"].textInputFocus,primary:2100,win:{primary:2100,secondary:[1043]},weight:100};s["e"]||(n=null);return t=e.call(this,"paste",{id:"editor.action.clipboardPasteAction",label:o["a"]("actions.clipboard.pasteLabel","Paste"),alias:"Paste",precondition:d["a"].writable,kbOpts:n,menuOpts:{group:g,order:3},menubarOpts:{menuId:h["b"].MenubarEditMenu,group:"2_ccp",title:o["a"]({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:3}})||this}return t}(b);var L=function(e){f(t,e);function t(){return e.call(this,"copy",{id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:o["a"]("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:null,kbOpts:{kbExpr:d["a"].textInputFocus,primary:0,weight:100}})||this}t.prototype.run=function(t,n){if(!n.hasModel())return;var r;if(!n.getConfiguration().emptySelectionClipboard&&n.getSelection().isEmpty())return;u["a"].forceCopyWithSyntaxHighlighting=!0;e.prototype.run.call(this,t,n);u["a"].forceCopyWithSyntaxHighlighting=!1};return t}(b);v&&Object(l["e"])(C);m&&Object(l["e"])(w);y&&Object(l["e"])(S);_&&Object(l["e"])(L)},rpIH:function(e,t,n){"use strict";n.d(t,"a",function(){return m});var r=n("ArC5");var i=n.n(r);var o=n("KVQV");var a=n("aBfO");var s=n("9X2a");var u=n("GDdU");var l=n("eE02");var c=n("AAdS");var d=n("5s6q");var h=n("zxKB");var f=n("kqNA");var p=(g=function(e,t){return(g=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])})(e,t)},function(e,t){g(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var g;var v=!1;var m=function(e){p(t,e);function t(t,n,r){void 0===r&&(r={});var i=e.call(this)||this;i._state=3;i._onDidEnablementChange=i._register(new d["a"]);i.onDidEnablementChange=i._onDidEnablementChange.event;i._onDidStart=i._register(new d["a"]);i.onDidStart=i._onDidStart.event;i._onDidChange=i._register(new d["a"]);i.onDidChange=i._onDidChange.event;i._onDidReset=i._register(new d["a"]);i.onDidReset=i._onDidReset.event;i._onDidEnd=i._register(new d["a"]);i.onDidEnd=i._onDidEnd.event;i.linkedSash=void 0;i.orthogonalStartSashDisposables=[];i.orthogonalEndSashDisposables=[];i.el=Object(h["k"])(t,Object(h["a"])(".monaco-sash"));s["d"]&&Object(h["e"])(i.el,"mac");i._register(Object(f["a"])(i.el,"mousedown")(i.onMouseDown,i));i._register(Object(f["a"])(i.el,"dblclick")(i.onMouseDoubleClick,i));l["b"].addTarget(i.el);i._register(Object(f["a"])(i.el,l["a"].Start)(i.onTouchStart,i));a["l"]&&Object(h["e"])(i.el,"touch");i.setOrientation(r.orientation||0);i.hidden=!1;i.layoutProvider=n;i.orthogonalStartSash=r.orthogonalStartSash;i.orthogonalEndSash=r.orthogonalEndSash;Object(h["N"])(i.el,"debug",v);return i}Object.defineProperty(t.prototype,"state",{get:function(){return this._state},set:function(e){if(this._state===e)return;Object(h["N"])(this.el,"disabled",0===e);Object(h["N"])(this.el,"minimum",1===e);Object(h["N"])(this.el,"maximum",2===e);this._state=e;this._onDidEnablementChange.fire(e)},enumerable:!0,configurable:!0});Object.defineProperty(t.prototype,"orthogonalStartSash",{get:function(){return this._orthogonalStartSash},set:function(e){this.orthogonalStartSashDisposables=Object(o["d"])(this.orthogonalStartSashDisposables);if(e){e.onDidEnablementChange(this.onOrthogonalStartSashEnablementChange,this,this.orthogonalStartSashDisposables);this.onOrthogonalStartSashEnablementChange(e.state)}else this.onOrthogonalStartSashEnablementChange(0);this._orthogonalStartSash=e},enumerable:!0,configurable:!0});Object.defineProperty(t.prototype,"orthogonalEndSash",{get:function(){return this._orthogonalEndSash},set:function(e){this.orthogonalEndSashDisposables=Object(o["d"])(this.orthogonalEndSashDisposables);if(e){e.onDidEnablementChange(this.onOrthogonalEndSashEnablementChange,this,this.orthogonalEndSashDisposables);this.onOrthogonalEndSashEnablementChange(e.state)}else this.onOrthogonalEndSashEnablementChange(0);this._orthogonalEndSash=e},enumerable:!0,configurable:!0});t.prototype.setOrientation=function(e){this.orientation=e;if(1===this.orientation){Object(h["e"])(this.el,"horizontal");Object(h["E"])(this.el,"vertical")}else{Object(h["E"])(this.el,"horizontal");Object(h["e"])(this.el,"vertical")}this.layoutProvider&&this.layout()};t.prototype.onMouseDown=function(e){var t=this;h["b"].stop(e,!1);var n=!1;if(this.linkedSash&&!e.__linkedSashEvent){e.__linkedSashEvent=!0;this.linkedSash.onMouseDown(e)}if(!e.__orthogonalSashEvent){var r=void 0;0===this.orientation?e.offsetY<=4?r=this.orthogonalStartSash:e.offsetY>=this.el.clientHeight-4&&(r=this.orthogonalEndSash):e.offsetX<=4?r=this.orthogonalStartSash:e.offsetX>=this.el.clientWidth-4&&(r=this.orthogonalEndSash);if(r){n=!0;e.__orthogonalSashEvent=!0;r.onMouseDown(e)}}if(!this.state)return;var i;for(var a=0,u=Object(h["u"])("iframe");a<u.length;a++){var l;u[a].style.pointerEvents="none"}var d=new c["b"](e);var p=d.posx;var g=d.posy;var v=d.altKey;var m={startX:p,currentX:p,startY:g,currentY:g,altKey:v};Object(h["e"])(this.el,"active");this._onDidStart.fire(m);var _=Object(h["n"])(this.el);var y=function(){var e="";e=n?"all-scroll":1===t.orientation?1===t.state?"s-resize":2===t.state?"n-resize":s["d"]?"row-resize":"ns-resize":1===t.state?"e-resize":2===t.state?"w-resize":s["d"]?"col-resize":"ew-resize";_.innerHTML="* { cursor: "+e+" !important; }"};var b=[];y();n||this.onDidEnablementChange(y,null,b);var C=function(e){h["b"].stop(e,!1);var n=new c["b"](e);var r={startX:p,currentX:n.posx,startY:g,currentY:n.posy,altKey:v};t._onDidChange.fire(r)};var w=function(e){h["b"].stop(e,!1);t.el.removeChild(_);Object(h["E"])(t.el,"active");t._onDidEnd.fire();Object(o["d"])(b);var n;for(var r=0,i=Object(h["u"])("iframe");r<i.length;r++){var a;i[r].style.pointerEvents="auto"}};Object(f["a"])(window,"mousemove")(C,null,b);Object(f["a"])(window,"mouseup")(w,null,b)};t.prototype.onMouseDoubleClick=function(e){this._onDidReset.fire()};t.prototype.onTouchStart=function(e){var t=this;h["b"].stop(e);var n=[];var r=e.pageX;var i=e.pageY;var a=e.altKey;this._onDidStart.fire({startX:r,currentX:r,startY:i,currentY:i,altKey:a});n.push(Object(h["g"])(this.el,l["a"].Change,function(e){u["f"](e.pageX)&&u["f"](e.pageY)&&t._onDidChange.fire({startX:r,currentX:e.pageX,startY:i,currentY:e.pageY,altKey:a})}));n.push(Object(h["g"])(this.el,l["a"].End,function(e){t._onDidEnd.fire();Object(o["d"])(n)}))};t.prototype.layout=function(){var e=a["l"]?20:4;if(0===this.orientation){var t=this.layoutProvider;this.el.style.left=t.getVerticalSashLeft(this)-e/2+"px";t.getVerticalSashTop&&(this.el.style.top=t.getVerticalSashTop(this)+"px");t.getVerticalSashHeight&&(this.el.style.height=t.getVerticalSashHeight(this)+"px")}else{var n=this.layoutProvider;this.el.style.top=n.getHorizontalSashTop(this)-e/2+"px";n.getHorizontalSashLeft&&(this.el.style.left=n.getHorizontalSashLeft(this)+"px");n.getHorizontalSashWidth&&(this.el.style.width=n.getHorizontalSashWidth(this)+"px")}};t.prototype.hide=function(){this.hidden=!0;this.el.style.display="none";this.el.setAttribute("aria-hidden","true")};t.prototype.onOrthogonalStartSashEnablementChange=function(e){Object(h["N"])(this.el,"orthogonal-start",0!==e)};t.prototype.onOrthogonalEndSashEnablementChange=function(e){Object(h["N"])(this.el,"orthogonal-end",0!==e)};t.prototype.dispose=function(){e.prototype.dispose.call(this);this.orthogonalStartSashDisposables=Object(o["d"])(this.orthogonalStartSashDisposables);this.orthogonalEndSashDisposables=Object(o["d"])(this.orthogonalEndSashDisposables);this.el&&this.el.parentElement&&this.el.parentElement.removeChild(this.el);this.el=null};return t}(o["a"])},s7tO:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,'/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-menu .monaco-action-bar.vertical {\r\n\tmargin-left: 0;\r\n\toverflow: visible;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .actions-container {\r\n\tdisplay: block;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .action-item {\r\n\tpadding: 0;\r\n\ttransform: none;\r\n\tdisplay: -ms-flexbox;\r\n\tdisplay: flex;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .action-item.active {\r\n\ttransform: none;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .action-menu-item {\r\n\t-ms-flex: 1 1 auto;\r\n\tflex: 1 1 auto;\r\n\tdisplay: -ms-flexbox;\r\n\tdisplay: flex;\r\n\theight: 2em;\r\n\talign-items: center;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .action-label {\r\n\t-ms-flex: 1 1 auto;\r\n\tflex: 1 1 auto;\r\n\ttext-decoration: none;\r\n\tpadding: 0 1em;\r\n\tbackground: none;\r\n\tfont-size: 12px;\r\n\tline-height: 1;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .keybinding,\r\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\r\n\tdisplay: inline-block;\r\n\t-ms-flex: 2 1 auto;\r\n\tflex: 2 1 auto;\r\n\tpadding: 0 1em;\r\n\ttext-align: right;\r\n\tfont-size: 12px;\r\n\tline-height: 1;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .submenu-indicator {\r\n\theight: 100%;\r\n\t-webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik00LjUyMDUxIDEyLjM2NDNMOS44Nzc5MyA3TDQuNTIwNTEgMS42MzU3NDJMNS4xMzU3NCAxLjAyMDUwNzhMMTEuMTIyMSA3TDUuMTM1NzQgMTIuOTc5NUw0LjUyMDUxIDEyLjM2NDNaIiBmaWxsPSJibGFjayIvPg0KPC9zdmc+DQo=") no-repeat 90% 50%/13px 13px;\r\n\tmask: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCjxwYXRoIGQ9Ik00LjUyMDUxIDEyLjM2NDNMOS44Nzc5MyA3TDQuNTIwNTEgMS42MzU3NDJMNS4xMzU3NCAxLjAyMDUwNzhMMTEuMTIyMSA3TDUuMTM1NzQgMTIuOTc5NUw0LjUyMDUxIDEyLjM2NDNaIiBmaWxsPSJibGFjayIvPg0KPC9zdmc+DQo=") no-repeat 90% 50%/13px 13px;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .keybinding,\r\n.monaco-menu .monaco-action-bar.vertical .action-item.disabled .submenu-indicator {\r\n\topacity: 0.4;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .action-label:not(.separator) {\r\n\tdisplay: inline-block;\r\n\t-webkit-box-sizing:\tborder-box;\r\n\t-o-box-sizing:\t\tborder-box;\r\n\t-moz-box-sizing:\tborder-box;\r\n\t-ms-box-sizing:\t\tborder-box;\r\n\tbox-sizing:\t\t\tborder-box;\r\n\tmargin: 0;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .action-label.separator {\r\n\tpadding: 0.5em 0 0 0;\r\n\tmargin-bottom: 0.5em;\r\n\twidth: 100%;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .action-label.separator.text {\r\n\tpadding: 0.7em 1em 0.1em 1em;\r\n\tfont-weight: bold;\r\n\topacity: 1;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .action-label:hover {\r\n\tcolor: inherit;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .menu-item-check {\r\n\tposition: absolute;\r\n\tvisibility: hidden;\r\n\t-webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iLTIgLTIgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgLTIgLTIgMTYgMTYiPjxwb2x5Z29uIGZpbGw9IiM0MjQyNDIiIHBvaW50cz0iOSwwIDQuNSw5IDMsNiAwLDYgMywxMiA2LDEyIDEyLDAiLz48L3N2Zz4=") no-repeat 50% 56%/15px 15px;\r\n\tmask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgdmlld0JveD0iLTIgLTIgMTYgMTYiIGVuYWJsZS1iYWNrZ3JvdW5kPSJuZXcgLTIgLTIgMTYgMTYiPjxwb2x5Z29uIGZpbGw9IiM0MjQyNDIiIHBvaW50cz0iOSwwIDQuNSw5IDMsNiAwLDYgMywxMiA2LDEyIDEyLDAiLz48L3N2Zz4=") no-repeat 50% 56%/15px 15px;\r\n\twidth: 1em;\r\n\theight: 100%;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .action-menu-item.checked .menu-item-check {\r\n\tvisibility: visible;\r\n}\r\n\r\n/* Context Menu */\r\n\r\n.context-view.monaco-menu-container {\r\n\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", "Ubuntu", "Droid Sans", sans-serif;\r\n\toutline: 0;\r\n\tborder: none;\r\n\t-webkit-animation: fadeIn 0.083s linear;\r\n\t-o-animation: fadeIn 0.083s linear;\r\n\t-moz-animation: fadeIn 0.083s linear;\r\n\t-ms-animation: fadeIn 0.083s linear;\r\n\tanimation: fadeIn 0.083s linear;\r\n}\r\n\r\n.context-view.monaco-menu-container :focus,\r\n.context-view.monaco-menu-container .monaco-action-bar.vertical:focus,\r\n.context-view.monaco-menu-container .monaco-action-bar.vertical :focus {\r\n\toutline: 0;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .action-item {\r\n\tborder: 1px solid transparent; /* prevents jumping behaviour on hover or focus */\r\n}\r\n\r\n\r\n/* High Contrast Theming */\r\n.hc-black .context-view.monaco-menu-container {\r\n\tbox-shadow: none;\r\n}\r\n\r\n.hc-black .monaco-menu .monaco-action-bar.vertical .action-item.focused {\r\n\tbackground: none;\r\n}',""])},sy5I:function(e,t,n){var r=n("WmvC");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},tMKi:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.monaco-editor .inputarea {\r\n\tmin-width: 0;\r\n\tmin-height: 0;\r\n\tmargin: 0;\r\n\tpadding: 0;\r\n\tposition: absolute;\r\n\toutline: none !important;\r\n\tresize: none;\r\n\tborder: none;\r\n\toverflow: hidden;\r\n\tcolor: transparent;\r\n\tbackground-color: transparent;\r\n}\r\n/*.monaco-editor .inputarea {\r\n\tposition: fixed !important;\r\n\twidth: 800px !important;\r\n\theight: 500px !important;\r\n\ttop: initial !important;\r\n\tleft: initial !important;\r\n\tbottom: 0 !important;\r\n\tright: 0 !important;\r\n\tcolor: black !important;\r\n\tbackground: white !important;\r\n\tline-height: 15px !important;\r\n\tfont-size: 14px !important;\r\n}*/\r\n.monaco-editor .inputarea.ime-input {\r\n\tz-index: 10;\r\n}\r\n",""])},tkRu:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=n("6dSJ");var i=n("cENI");var o=(a=function(e,t){return(a=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])})(e,t)},function(e,t){a(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var a;var s=function(e){o(t,e);function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;o.selectionStartLineNumber=t;o.selectionStartColumn=n;o.positionLineNumber=r;o.positionColumn=i;return o}t.prototype.clone=function(){return new t(this.selectionStartLineNumber,this.selectionStartColumn,this.positionLineNumber,this.positionColumn)};t.prototype.toString=function(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"};t.prototype.equalsSelection=function(e){return t.selectionsEqual(this,e)};t.selectionsEqual=function(e,t){return e.selectionStartLineNumber===t.selectionStartLineNumber&&e.selectionStartColumn===t.selectionStartColumn&&e.positionLineNumber===t.positionLineNumber&&e.positionColumn===t.positionColumn};t.prototype.getDirection=function(){if(this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn)return 0;return 1};t.prototype.setEndPosition=function(e,n){if(0===this.getDirection())return new t(this.startLineNumber,this.startColumn,e,n);return new t(e,n,this.startLineNumber,this.startColumn)};t.prototype.getPosition=function(){return new r["a"](this.positionLineNumber,this.positionColumn)};t.prototype.setStartPosition=function(e,n){if(0===this.getDirection())return new t(e,n,this.endLineNumber,this.endColumn);return new t(this.endLineNumber,this.endColumn,e,n)};t.fromPositions=function(e,n){void 0===n&&(n=e);return new t(e.lineNumber,e.column,n.lineNumber,n.column)};t.liftSelection=function(e){return new t(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)};t.selectionsArrEqual=function(e,t){if(e&&!t||!e&&t)return!1;if(!e&&!t)return!0;if(e.length!==t.length)return!1;for(var n=0,r=e.length;n<r;n++)if(!this.selectionsEqual(e[n],t[n]))return!1;return!0};t.isISelection=function(e){return e&&"number"==typeof e.selectionStartLineNumber&&"number"==typeof e.selectionStartColumn&&"number"==typeof e.positionLineNumber&&"number"==typeof e.positionColumn};t.createWithDirection=function(e,n,r,i,o){if(0===o)return new t(e,n,r,i);return new t(r,i,e,n)};return t}(i["a"])},vMMm:function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("Vp92");var i=n("9X2a");var o=n("rCf5");var a=n("Yn0l");var s;var u=new(function(){function e(){this._keybindings=[];this._keybindingsSorted=!0}e.bindToCurrentPlatform=function(e){if(1===i["a"]){if(e&&e.win)return e.win}else if(2===i["a"]){if(e&&e.mac)return e.mac}else if(e&&e.linux)return e.linux;return e};e.prototype.registerKeybindingRule=function(t,n){void 0===n&&(n=0);var o=e.bindToCurrentPlatform(t);if(o&&o.primary){var a;(a=Object(r["f"])(o.primary,i["a"]))&&this._registerDefaultKeybinding(a,t.id,t.weight,0,t.when,n)}if(o&&Array.isArray(o.secondary))for(var s=0,u=o.secondary.length;s<u;s++){var l=o.secondary[s];var a;(a=Object(r["f"])(l,i["a"]))&&this._registerDefaultKeybinding(a,t.id,t.weight,-s-1,t.when,n)}};e.prototype.registerCommandAndKeybindingRule=function(e,t){void 0===t&&(t=0);this.registerKeybindingRule(e,t);o["a"].registerCommand(e)};e._mightProduceChar=function(e){if(e>=21&&e<=30)return!0;if(e>=31&&e<=56)return!0;return 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(t,n){t.ctrlKey&&t.altKey&&!t.metaKey&&e._mightProduceChar(t.keyCode)&&console.warn("Ctrl+Alt+ keybindings should not be used by default under Windows. Offender: ",t," for ",n)};e.prototype._registerDefaultKeybinding=function(e,t,n,r,o,a){0===a&&1===i["a"]&&(2===e.type?this._assertNoCtrlAlt(e.firstPart,t):this._assertNoCtrlAlt(e,t));this._keybindings.push({keybinding:e,command:t,commandArgs:void 0,when:o,weight1:n,weight2:r});this._keybindingsSorted=!1};e.prototype.getDefaultKeybindings=function(){if(!this._keybindingsSorted){this._keybindings.sort(c);this._keybindingsSorted=!0}return this._keybindings.slice(0)};return e}());var l="platform.keybindingsRegistry";a["a"].add(l,u);function c(e,t){if(e.weight1!==t.weight1)return e.weight1-t.weight1;if(e.command<t.command)return-1;if(e.command>t.command)return 1;return e.weight2-t.weight2}},"wBd/":function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n/* ---------- Find input ---------- */\r\n\r\n.monaco-findInput {\r\n\tposition: relative;\r\n}\r\n\r\n.monaco-findInput .monaco-inputbox {\r\n\tfont-size: 13px;\r\n\twidth: 100%;\r\n\theight: 25px;\r\n}\r\n\r\n.monaco-findInput > .controls {\r\n\tposition: absolute;\r\n\ttop: 3px;\r\n\tright: 2px;\r\n}\r\n\r\n.vs .monaco-findInput.disabled {\r\n\tbackground-color: #E1E1E1;\r\n}\r\n\r\n/* Theming */\r\n.vs-dark .monaco-findInput.disabled {\r\n\tbackground-color: #333;\r\n}\r\n\r\n/* Highlighting */\r\n.monaco-findInput.highlight-0 .controls {\r\n\tanimation: monaco-findInput-highlight-0 100ms linear 0s;\r\n}\r\n.monaco-findInput.highlight-1 .controls {\r\n\tanimation: monaco-findInput-highlight-1 100ms linear 0s;\r\n}\r\n.hc-black .monaco-findInput.highlight-0 .controls,\r\n.vs-dark .monaco-findInput.highlight-0 .controls {\r\n\tanimation: monaco-findInput-highlight-dark-0 100ms linear 0s;\r\n}\r\n.hc-black .monaco-findInput.highlight-1 .controls,\r\n.vs-dark .monaco-findInput.highlight-1 .controls {\r\n\tanimation: monaco-findInput-highlight-dark-1 100ms linear 0s;\r\n}\r\n\r\n@keyframes monaco-findInput-highlight-0 {\r\n\t0% { background: rgba(253, 255, 0, 0.8); }\r\n\t100% { background: transparent; }\r\n}\r\n@keyframes monaco-findInput-highlight-1 {\r\n\t0% { background: rgba(253, 255, 0, 0.8); }\r\n\t/* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\r\n\t99% { background: transparent; }\r\n}\r\n\r\n@keyframes monaco-findInput-highlight-dark-0 {\r\n\t0% { background: rgba(255, 255, 255, 0.44); }\r\n\t100% { background: transparent; }\r\n}\r\n@keyframes monaco-findInput-highlight-dark-1 {\r\n\t0% { background: rgba(255, 255, 255, 0.44); }\r\n\t/* Made intentionally different such that the CSS minifier does not collapse the two animations into a single one*/\r\n\t99% { background: transparent; }\r\n}",""])},wDCu:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,'/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n\r\n/* Default standalone editor font */\r\n.monaco-editor {\r\n\tfont-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "HelveticaNeue-Light", "Ubuntu", "Droid Sans", sans-serif;\r\n}\r\n\r\n.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label {\r\n\tstroke-width: 1.2px;\r\n}\r\n\r\n.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,\r\n.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label {\r\n\tstroke-width: 1.2px;\r\n}\r\n\r\n.monaco-editor-hover p {\r\n\tmargin: 0;\r\n}\r\n\r\n/* The hc-black theme is already high contrast optimized */\r\n.monaco-editor.hc-black {\r\n\t-ms-high-contrast-adjust: none;\r\n}\r\n/* In case the browser goes into high contrast mode and the editor is not configured with the hc-black theme */\r\n@media screen and (-ms-high-contrast:active) {\r\n\r\n\t/* current line highlight */\r\n\t.monaco-editor.vs .view-overlays .current-line,\r\n\t.monaco-editor.vs-dark .view-overlays .current-line {\r\n\t\tborder-color: windowtext !important;\r\n\t\tborder-left: 0;\r\n\t\tborder-right: 0;\r\n\t}\r\n\r\n\t/* view cursors */\r\n\t.monaco-editor.vs .cursor,\r\n\t.monaco-editor.vs-dark .cursor {\r\n\t\tbackground-color: windowtext !important;\r\n\t}\r\n\t/* dnd target */\r\n\t.monaco-editor.vs .dnd-target,\r\n\t.monaco-editor.vs-dark .dnd-target {\r\n\t\tborder-color: windowtext !important;\r\n\t}\r\n\r\n\t/* selected text background */\r\n\t.monaco-editor.vs .selected-text,\r\n\t.monaco-editor.vs-dark .selected-text {\r\n\t\tbackground-color: highlight !important;\r\n\t}\r\n\r\n\t/* allow the text to have a transparent background. */\r\n\t.monaco-editor.vs .view-line,\r\n\t.monaco-editor.vs-dark .view-line {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t}\r\n\r\n\t/* text color */\r\n\t.monaco-editor.vs .view-line span,\r\n\t.monaco-editor.vs-dark .view-line span {\r\n\t\tcolor: windowtext !important;\r\n\t}\r\n\t/* selected text color */\r\n\t.monaco-editor.vs .view-line span.inline-selected-text,\r\n\t.monaco-editor.vs-dark .view-line span.inline-selected-text {\r\n\t\tcolor: highlighttext !important;\r\n\t}\r\n\r\n\t/* allow decorations */\r\n\t.monaco-editor.vs .view-overlays,\r\n\t.monaco-editor.vs-dark .view-overlays {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t}\r\n\r\n\t/* various decorations */\r\n\t.monaco-editor.vs .selectionHighlight,\r\n\t.monaco-editor.vs-dark .selectionHighlight,\r\n\t.monaco-editor.vs .wordHighlight,\r\n\t.monaco-editor.vs-dark .wordHighlight,\r\n\t.monaco-editor.vs .wordHighlightStrong,\r\n\t.monaco-editor.vs-dark .wordHighlightStrong,\r\n\t.monaco-editor.vs .reference-decoration,\r\n\t.monaco-editor.vs-dark .reference-decoration {\r\n\t\tborder: 2px dotted highlight !important;\r\n\t\tbackground: transparent !important;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\t.monaco-editor.vs .rangeHighlight,\r\n\t.monaco-editor.vs-dark .rangeHighlight {\r\n\t\tbackground: transparent !important;\r\n\t\tborder: 1px dotted activeborder !important;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\t.monaco-editor.vs .bracket-match,\r\n\t.monaco-editor.vs-dark .bracket-match {\r\n\t\tborder-color: windowtext !important;\r\n\t\tbackground: transparent !important;\r\n\t}\r\n\r\n\t/* find widget */\r\n\t.monaco-editor.vs .findMatch,\r\n\t.monaco-editor.vs-dark .findMatch,\r\n\t.monaco-editor.vs .currentFindMatch,\r\n\t.monaco-editor.vs-dark .currentFindMatch {\r\n\t\tborder: 2px dotted activeborder !important;\r\n\t\tbackground: transparent !important;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\t.monaco-editor.vs .find-widget,\r\n\t.monaco-editor.vs-dark .find-widget {\r\n\t\tborder: 1px solid windowtext;\r\n\t}\r\n\r\n\t/* list - used by suggest widget */\r\n\t.monaco-editor.vs .monaco-list .monaco-list-row,\r\n\t.monaco-editor.vs-dark .monaco-list .monaco-list-row {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t\tcolor: windowtext !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-list .monaco-list-row.focused,\r\n\t.monaco-editor.vs-dark .monaco-list .monaco-list-row.focused {\r\n\t\tcolor: highlighttext !important;\r\n\t\tbackground-color: highlight !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-list .monaco-list-row:hover,\r\n\t.monaco-editor.vs-dark .monaco-list .monaco-list-row:hover {\r\n\t\tbackground: transparent !important;\r\n\t\tborder: 1px solid highlight;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\r\n\t/* tree */\r\n\t.monaco-editor.vs .monaco-tree .monaco-tree-row,\r\n\t.monaco-editor.vs-dark .monaco-tree .monaco-tree-row {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t\tcolor: windowtext !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-tree .monaco-tree-row.selected,\r\n\t.monaco-editor.vs-dark .monaco-tree .monaco-tree-row.selected,\r\n\t.monaco-editor.vs .monaco-tree .monaco-tree-row.focused,\r\n\t.monaco-editor.vs-dark .monaco-tree .monaco-tree-row.focused {\r\n\t\tcolor: highlighttext !important;\r\n\t\tbackground-color: highlight !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-tree .monaco-tree-row:hover,\r\n\t.monaco-editor.vs-dark .monaco-tree .monaco-tree-row:hover {\r\n\t\tbackground: transparent !important;\r\n\t\tborder: 1px solid highlight;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\r\n\t/* scrollbars */\r\n\t.monaco-editor.vs .monaco-scrollable-element > .scrollbar,\r\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t\tbackground: background !important;\r\n\t\tborder: 1px solid windowtext;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\t.monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider,\r\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider {\r\n\t\tbackground: windowtext !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider:hover,\r\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider:hover {\r\n\t\tbackground: highlight !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-scrollable-element > .scrollbar > .slider.active,\r\n\t.monaco-editor.vs-dark .monaco-scrollable-element > .scrollbar > .slider.active {\r\n\t\tbackground: highlight !important;\r\n\t}\r\n\r\n\t/* overview ruler */\r\n\t.monaco-editor.vs .decorationsOverviewRuler,\r\n\t.monaco-editor.vs-dark .decorationsOverviewRuler {\r\n\t\topacity: 0;\r\n\t}\r\n\r\n\t/* minimap */\r\n\t.monaco-editor.vs .minimap,\r\n\t.monaco-editor.vs-dark .minimap {\r\n\t\tdisplay: none;\r\n\t}\r\n\r\n\t/* squiggles */\r\n\t.monaco-editor.vs .squiggly-d-error,\r\n\t.monaco-editor.vs-dark .squiggly-d-error {\r\n\t\tbackground: transparent !important;\r\n\t\tborder-bottom: 4px double #E47777;\r\n\t}\r\n\t.monaco-editor.vs .squiggly-c-warning,\r\n\t.monaco-editor.vs-dark .squiggly-c-warning {\r\n\t\tborder-bottom: 4px double #71B771;\r\n\t}\r\n\t.monaco-editor.vs .squiggly-b-info,\r\n\t.monaco-editor.vs-dark .squiggly-b-info {\r\n\t\tborder-bottom: 4px double #71B771;\r\n\t}\r\n\t.monaco-editor.vs .squiggly-a-hint,\r\n\t.monaco-editor.vs-dark .squiggly-a-hint {\r\n\t\tborder-bottom: 4px double #6c6c6c;\r\n\t}\r\n\r\n\t/* contextmenu */\r\n\t.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,\r\n\t.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t\tcolor: highlighttext !important;\r\n\t\tbackground-color: highlight !important;\r\n\t}\r\n\t.monaco-editor.vs .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label,\r\n\t.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:hover .action-label {\r\n\t\t-ms-high-contrast-adjust: none;\r\n\t\tbackground: transparent !important;\r\n\t\tborder: 1px solid highlight;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\r\n\t/* diff editor */\r\n\t.monaco-diff-editor.vs .diffOverviewRuler,\r\n\t.monaco-diff-editor.vs-dark .diffOverviewRuler {\r\n\t\tdisplay: none;\r\n\t}\r\n\t.monaco-editor.vs .line-insert,\r\n\t.monaco-editor.vs-dark .line-insert,\r\n\t.monaco-editor.vs .line-delete,\r\n\t.monaco-editor.vs-dark .line-delete {\r\n\t\tbackground: transparent !important;\r\n\t\tborder: 1px solid highlight !important;\r\n\t\tbox-sizing: border-box;\r\n\t}\r\n\t.monaco-editor.vs .char-insert,\r\n\t.monaco-editor.vs-dark .char-insert,\r\n\t.monaco-editor.vs .char-delete,\r\n\t.monaco-editor.vs-dark .char-delete {\r\n\t\tbackground: transparent !important;\r\n\t}\r\n}\r\n\r\n/*.monaco-editor.vs [tabindex="0"]:focus {\r\n\toutline: 1px solid rgba(0, 122, 204, 0.4);\r\n\toutline-offset: -1px;\r\n\topacity: 1 !important;\r\n}\r\n\r\n.monaco-editor.vs-dark [tabindex="0"]:focus {\r\n\toutline: 1px solid rgba(14, 99, 156, 0.6);\r\n\toutline-offset: -1px;\r\n\topacity: 1 !important;\r\n}*/\r\n',""])},wHma:function(e,t,n){"use strict";n.d(t,"a",function(){return s});var r=!1;var i=null;function o(e){if(!e.parent||e.parent===e)return null;try{var t=e.location;var n=e.parent.location;if(t.protocol!==n.protocol||t.hostname!==n.hostname||t.port!==n.port){r=!0;return null}}catch(e){r=!0;return null}return e.parent}function a(e,t){var n=e.document.getElementsByTagName("iframe");var r;for(var i=0,o=n.length;i<o;i++)if((r=n[i]).contentWindow===t)return r;return null}var s=function(){function e(){}e.getSameOriginWindowChain=function(){if(!i){i=[];var e=window;var t;do{(t=o(e))?i.push({window:e,iframeElement:a(t,e)}):i.push({window:e,iframeElement:null});e=t}while(e)}return i.slice(0)};e.hasDifferentOriginAncestor=function(){i||this.getSameOriginWindowChain();return r};e.getPositionOfChildWindowRelativeToAncestorWindow=function(e,t){if(!t||e===t)return{top:0,left:0};var n=0,r=0;var i=this.getSameOriginWindowChain();for(var o=0;o<i.length;o++){var a=i[o];if(a.window===t)break;if(!a.iframeElement)break;var s=a.iframeElement.getBoundingClientRect();n+=s.top;r+=s.left}return{top:n,left:r}};return e}()},xETQ:function(e,t,n){var r=n("HV3k");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},xIvr:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,'/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.vs .monaco-custom-checkbox.monaco-case-sensitive {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe29wYWNpdHk6MDtmaWxsOiNGNkY2RjY7fSAuc3Qxe2ZpbGw6I0Y2RjZGNjt9IC5zdDJ7ZmlsbDojNDI0MjQyO308L3N0eWxlPjxnIGlkPSJvdXRsaW5lIj48cmVjdCBjbGFzcz0ic3QwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTQuMTc2IDUuNTkyYy0uNTU1LS42LTEuMzM2LS45MDQtMi4zMjItLjkwNC0uMjU4IDAtLjUyMS4wMjQtLjc4NC4wNzItLjI0Ni4wNDQtLjQ3OS4xMDEtLjcuMTY5LS4yMjguMDctLjQzMi4xNDctLjYxMy4yMjktLjIyLjA5OS0uMzg5LjE5Ni0uNTEyLjI4NGwtLjQxOS4yOTl2Mi43MDFjLS4wODYuMTA4LS4xNjIuMjIzLS4yMjkuMzQ0bC0yLjQ1LTYuMzU0aC0yLjM5NGwtMy43NTMgOS44MDR2LjU5OGgzLjAyNWwuODM4LTIuMzVoMi4xNjdsLjg5MSAyLjM1aDMuMjM3bC0uMDAxLS4wMDNjLjMwNS4wOTIuNjMzLjE1Ljk5My4xNS4zNDQgMCAuNjcxLS4wNDkuOTc4LS4xNDZoMi44NTN2LTQuOTAzYy0uMDAxLS45NzUtLjI3MS0xLjc2My0uODA1LTIuMzR6Ii8+PC9nPjxnIGlkPSJpY29uX3g1Rl9iZyI+PHBhdGggY2xhc3M9InN0MiIgZD0iTTcuNjExIDExLjgzNGwtLjg5MS0yLjM1aC0zLjU2MmwtLjgzOCAyLjM1aC0xLjA5NWwzLjIxNy04LjQwMmgxLjAybDMuMjQgOC40MDJoLTEuMDkxem0tMi41MzEtNi44MTRsLS4wNDQtLjEzNS0uMDM4LS4xNTYtLjAyOS0uMTUyLS4wMjQtLjEyNmgtLjAyM2wtLjAyMS4xMjYtLjAzMi4xNTItLjAzOC4xNTYtLjA0NC4xMzUtMS4zMDcgMy41NzRoMi45MThsLTEuMzE4LTMuNTc0eiIvPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xMy4wMiAxMS44MzR2LS45MzhoLS4wMjNjLS4xOTkuMzUyLS40NTYuNjItLjc3MS44MDZzLS42NzMuMjc4LTEuMDc1LjI3OGMtLjMxMyAwLS41ODgtLjA0NS0uODI2LS4xMzVzLS40MzgtLjIxMi0uNTk4LS4zNjYtLjI4MS0uMzM4LS4zNjMtLjU1MS0uMTI0LS40NDItLjEyNC0uNjg4YzAtLjI2Mi4wMzktLjUwMi4xMTctLjcyMXMuMTk4LS40MTIuMzYtLjU4LjM2Ny0uMzA4LjYxNS0uNDE5LjU0NC0uMTkuODg4LS4yMzdsMS44MTEtLjI1MmMwLS4yNzMtLjAyOS0uNTA3LS4wODgtLjdzLS4xNDMtLjM1MS0uMjUyLS40NzItLjI0MS0uMjEtLjM5Ni0uMjY3LS4zMjUtLjA4NS0uNTEzLS4wODVjLS4zNjMgMC0uNzE0LjA2NC0xLjA1Mi4xOTNzLS42MzguMzEtLjkwNC41NHYtLjk4NGMuMDgyLS4wNTkuMTk2LS4xMjEuMzQzLS4xODhzLjMxMi0uMTI4LjQ5NS0uMTg1LjM3OC0uMTA0LjU4My0uMTQxLjQwNy0uMDU2LjYwNi0uMDU2Yy42OTkgMCAxLjIyOS4xOTQgMS41ODguNTgzcy41MzkuOTQyLjUzOSAxLjY2MXYzLjkwMmgtLjk2em0tMS40NTQtMi44M2MtLjI3My4wMzUtLjQ5OC4wODUtLjY3NC4xNDlzLS4zMTMuMTQ0LS40MS4yMzctLjE2NS4yMDUtLjIwMi4zMzQtLjA1NS4yNzYtLjA1NS40NGMwIC4xNDEuMDI1LjI3MS4wNzYuMzkzcy4xMjQuMjI3LjIyLjMxNi4yMTUuMTYuMzU3LjIxMS4zMDguMDc2LjQ5NS4wNzZjLjI0MiAwIC40NjUtLjA0NS42NjgtLjEzNXMuMzc4LS4yMTQuNTI0LS4zNzIuMjYxLS4zNDQuMzQzLS41NTcuMTIzLS40NDIuMTIzLS42ODh2LS42MDlsLTEuNDY1LjIwNXoiLz48L2c+PC9zdmc+") center center no-repeat;\r\n}\r\n.hc-black .monaco-custom-checkbox.monaco-case-sensitive,\r\n.hc-black .monaco-custom-checkbox.monaco-case-sensitive:hover,\r\n.vs-dark .monaco-custom-checkbox.monaco-case-sensitive {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe29wYWNpdHk6MDtmaWxsOiMyNjI2MjY7fSAuc3Qxe2ZpbGw6IzI2MjYyNjt9IC5zdDJ7ZmlsbDojQzVDNUM1O308L3N0eWxlPjxnIGlkPSJvdXRsaW5lIj48cmVjdCBjbGFzcz0ic3QwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTQuMTc2IDUuNTkyYy0uNTU1LS42LTEuMzM2LS45MDQtMi4zMjItLjkwNC0uMjU4IDAtLjUyMS4wMjQtLjc4NC4wNzItLjI0Ni4wNDQtLjQ3OS4xMDEtLjcuMTY5LS4yMjguMDctLjQzMi4xNDctLjYxMy4yMjktLjIyLjA5OS0uMzg5LjE5Ni0uNTEyLjI4NGwtLjQxOS4yOTl2Mi43MDFjLS4wODYuMTA4LS4xNjIuMjIzLS4yMjkuMzQ0bC0yLjQ1LTYuMzU0aC0yLjM5NGwtMy43NTMgOS44MDR2LjU5OGgzLjAyNWwuODM4LTIuMzVoMi4xNjdsLjg5MSAyLjM1aDMuMjM3bC0uMDAxLS4wMDNjLjMwNS4wOTIuNjMzLjE1Ljk5My4xNS4zNDQgMCAuNjcxLS4wNDkuOTc4LS4xNDZoMi44NTN2LTQuOTAzYy0uMDAxLS45NzUtLjI3MS0xLjc2My0uODA1LTIuMzR6Ii8+PC9nPjxnIGlkPSJpY29uX3g1Rl9iZyI+PHBhdGggY2xhc3M9InN0MiIgZD0iTTcuNjExIDExLjgzNGwtLjg5MS0yLjM1aC0zLjU2MmwtLjgzOCAyLjM1aC0xLjA5NWwzLjIxNy04LjQwMmgxLjAybDMuMjQgOC40MDJoLTEuMDkxem0tMi41MzEtNi44MTRsLS4wNDQtLjEzNS0uMDM4LS4xNTYtLjAyOS0uMTUyLS4wMjQtLjEyNmgtLjAyM2wtLjAyMS4xMjYtLjAzMi4xNTItLjAzOC4xNTYtLjA0NC4xMzUtMS4zMDcgMy41NzRoMi45MThsLTEuMzE4LTMuNTc0eiIvPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xMy4wMiAxMS44MzR2LS45MzhoLS4wMjNjLS4xOTkuMzUyLS40NTYuNjItLjc3MS44MDZzLS42NzMuMjc4LTEuMDc1LjI3OGMtLjMxMyAwLS41ODgtLjA0NS0uODI2LS4xMzVzLS40MzgtLjIxMi0uNTk4LS4zNjYtLjI4MS0uMzM4LS4zNjMtLjU1MS0uMTI0LS40NDItLjEyNC0uNjg4YzAtLjI2Mi4wMzktLjUwMi4xMTctLjcyMXMuMTk4LS40MTIuMzYtLjU4LjM2Ny0uMzA4LjYxNS0uNDE5LjU0NC0uMTkuODg4LS4yMzdsMS44MTEtLjI1MmMwLS4yNzMtLjAyOS0uNTA3LS4wODgtLjdzLS4xNDMtLjM1MS0uMjUyLS40NzItLjI0MS0uMjEtLjM5Ni0uMjY3LS4zMjUtLjA4NS0uNTEzLS4wODVjLS4zNjMgMC0uNzE0LjA2NC0xLjA1Mi4xOTNzLS42MzguMzEtLjkwNC41NHYtLjk4NGMuMDgyLS4wNTkuMTk2LS4xMjEuMzQzLS4xODhzLjMxMi0uMTI4LjQ5NS0uMTg1LjM3OC0uMTA0LjU4My0uMTQxLjQwNy0uMDU2LjYwNi0uMDU2Yy42OTkgMCAxLjIyOS4xOTQgMS41ODguNTgzcy41MzkuOTQyLjUzOSAxLjY2MXYzLjkwMmgtLjk2em0tMS40NTQtMi44M2MtLjI3My4wMzUtLjQ5OC4wODUtLjY3NC4xNDlzLS4zMTMuMTQ0LS40MS4yMzctLjE2NS4yMDUtLjIwMi4zMzQtLjA1NS4yNzYtLjA1NS40NGMwIC4xNDEuMDI1LjI3MS4wNzYuMzkzcy4xMjQuMjI3LjIyLjMxNi4yMTUuMTYuMzU3LjIxMS4zMDguMDc2LjQ5NS4wNzZjLjI0MiAwIC40NjUtLjA0NS42NjgtLjEzNXMuMzc4LS4yMTQuNTI0LS4zNzIuMjYxLS4zNDQuMzQzLS41NTcuMTIzLS40NDIuMTIzLS42ODh2LS42MDlsLTEuNDY1LjIwNXoiLz48L2c+PC9zdmc+") center center no-repeat;\r\n}\r\n\r\n.vs .monaco-custom-checkbox.monaco-whole-word {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe29wYWNpdHk6MDtmaWxsOiNGNkY2RjY7fSAuc3Qxe2ZpbGw6I0Y2RjZGNjt9IC5zdDJ7ZmlsbDojNDI0MjQyO308L3N0eWxlPjxnIGlkPSJvdXRsaW5lIj48cmVjdCBjbGFzcz0ic3QwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTYgNC4wMjJ2LTMuMDIyaC0xNi4wMTR2My4wMjJoMy4wNDZsLTMuMDQzIDcuOTQ1aC0uMDA0di4wMWwuMDE1IDEuMDIzaC0uMDE0djEuOTkxaDE2LjAxNHYtMy4wMjNoLTF2LTcuOTQ2aDF6bS01LjkxNCA1LjMwMWMwIC4yMzMtLjAyMy40NDEtLjA2Ni41OTUtLjA0Ny4xNjQtLjA5OS4yNDctLjEyNy4yODRsLS4wNzguMDY5LS4xNTEuMDI2LS4xMTUtLjAxNy0uMTM5LS4xMzdjLS4wMzEtLjA3OC0uMTEyLS4zMzItLjExMi0uNTY2IDAtLjI1NC4wOTEtLjU2MS4xMjYtLjY1NmwuMDY5LS4xNDEuMTA5LS4wODIuMTc4LS4wMjdjLjA3NyAwIC4xMTcuMDE0LjE3Ny4wNTZsLjA4Ny4xNzkuMDUxLjIzNy0uMDA5LjE4em0tMy42OTUtNS4zMDF2Mi44OTNsLTEuMTE2LTIuODkzaDEuMTE2em0tMy4wMjYgNy4wMmgxLjU3M2wuMzUxLjkyNmgtMi4yNTRsLjMzLS45MjZ6bTguNjM1LTQuMzU0Yy0uMjA2LS4yLS40MzEtLjM4LS42OTUtLjUxMi0uMzk2LS4xOTgtLjg1My0uMjk4LTEuMzU1LS4yOTgtLjIxNSAwLS40MjMuMDItLjYyMS4wNTh2LTEuOTE0aDIuNjcxdjIuNjY2eiIvPjwvZz48ZyBpZD0iaWNvbl94NUZfYmciPjxyZWN0IHg9IjEzIiB5PSI0IiBjbGFzcz0ic3QyIiB3aWR0aD0iMSIgaGVpZ2h0PSI4Ii8+PHBhdGggY2xhc3M9InN0MiIgZD0iTTExLjIyNSA4LjM4N2MtLjA3OC0uMjk5LS4xOTktLjU2Mi0uMzYtLjc4NnMtLjM2NS0uNDAxLS42MDktLjUzLS41MzQtLjE5My0uODY2LS4xOTNjLS4xOTggMC0uMzguMDI0LS41NDcuMDczLS4xNjUuMDQ5LS4zMTYuMTE3LS40NTMuMjA1LS4xMzYuMDg4LS4yNTcuMTk0LS4zNjUuMzE4bC0uMTc5LjI1OHYtMy4xNTRoLS44OTN2Ny40MjJoLjg5M3YtLjU3NWwuMTI2LjE3NWMuMDg3LjEwMi4xODkuMTkuMzA0LjI2OS4xMTcuMDc4LjI0OS4xNC4zOTguMTg2LjE0OS4wNDYuMzE0LjA2OC40OTguMDY4LjM1MyAwIC42NjYtLjA3MS45MzctLjIxMi4yNzItLjE0My40OTktLjMzOC42ODItLjU4Ni4xODMtLjI1LjMyMS0uNTQzLjQxNC0uODc5LjA5My0uMzM4LjE0LS43MDMuMTQtMS4wOTctLjAwMS0uMzQyLS4wNC0uNjYzLS4xMi0uOTYyem0tMS40NzktLjYwN2MuMTUxLjA3MS4yODIuMTc2LjM5LjMxNC4xMDkuMTQuMTk0LjMxMy4yNTUuNTE3LjA1MS4xNzQuMDgyLjM3MS4wODkuNTg3bC0uMDA3LjEyNWMwIC4zMjctLjAzMy42Mi0uMS44NjktLjA2Ny4yNDYtLjE2MS40NTMtLjI3OC42MTQtLjExNy4xNjItLjI2LjI4NS0uNDIxLjM2Ni0uMzIyLjE2Mi0uNzYuMTY2LTEuMDY5LjAxNS0uMTUzLS4wNzUtLjI4Ni0uMTc1LS4zOTMtLjI5Ni0uMDg1LS4wOTYtLjE1Ni0uMjE2LS4yMTgtLjM2NyAwIDAtLjE3OS0uNDQ3LS4xNzktLjk0NyAwLS41LjE3OS0xLjAwMi4xNzktMS4wMDIuMDYyLS4xNzcuMTM2LS4zMTguMjI0LS40My4xMTQtLjE0My4yNTYtLjI1OS40MjQtLjM0NS4xNjgtLjA4Ni4zNjUtLjEyOS41ODctLjEyOS4xOSAwIC4zNjQuMDM3LjUxNy4xMDl6Ii8+PHJlY3QgeD0iLjk4NyIgeT0iMiIgY2xhc3M9InN0MiIgd2lkdGg9IjE0LjAxMyIgaGVpZ2h0PSIxLjAyMyIvPjxyZWN0IHg9Ii45ODciIHk9IjEyLjk2OCIgY2xhc3M9InN0MiIgd2lkdGg9IjE0LjAxMyIgaGVpZ2h0PSIxLjAyMyIvPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xLjk5MSAxMi4wMzFsLjcyOC0yLjAzMWgyLjIxOWwuNzc4IDIuMDMxaDEuMDgybC0yLjQ4NS03LjE1OGgtLjk0MWwtMi40NDEgNy4wODYtLjAyNS4wNzJoMS4wODV6bTEuODI3LTUuNjA5aC4wMjJsLjkxNCAyLjc1M2gtMS44NDFsLjkwNS0yLjc1M3oiLz48L2c+PC9zdmc+") center center no-repeat;\r\n}\r\n.hc-black .monaco-custom-checkbox.monaco-whole-word,\r\n.hc-black .monaco-custom-checkbox.monaco-whole-word:hover,\r\n.vs-dark .monaco-custom-checkbox.monaco-whole-word {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHN0eWxlIHR5cGU9InRleHQvY3NzIj4uc3Qwe29wYWNpdHk6MDtmaWxsOiMyNjI2MjY7fSAuc3Qxe2ZpbGw6IzI2MjYyNjt9IC5zdDJ7ZmlsbDojQzVDNUM1O308L3N0eWxlPjxnIGlkPSJvdXRsaW5lIj48cmVjdCBjbGFzcz0ic3QwIiB3aWR0aD0iMTYiIGhlaWdodD0iMTYiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNMTYgNC4wMjJ2LTMuMDIyaC0xNi4wMTR2My4wMjJoMy4wNDZsLTMuMDQzIDcuOTQ1aC0uMDA0di4wMWwuMDE1IDEuMDIzaC0uMDE0djEuOTkxaDE2LjAxNHYtMy4wMjNoLTF2LTcuOTQ2aDF6bS01LjkxNCA1LjMwMWMwIC4yMzMtLjAyMy40NDEtLjA2Ni41OTUtLjA0Ny4xNjQtLjA5OS4yNDctLjEyNy4yODRsLS4wNzguMDY5LS4xNTEuMDI2LS4xMTUtLjAxNy0uMTM5LS4xMzdjLS4wMzEtLjA3OC0uMTEyLS4zMzItLjExMi0uNTY2IDAtLjI1NC4wOTEtLjU2MS4xMjYtLjY1NmwuMDY5LS4xNDEuMTA5LS4wODIuMTc4LS4wMjdjLjA3NyAwIC4xMTcuMDE0LjE3Ny4wNTZsLjA4Ny4xNzkuMDUxLjIzNy0uMDA5LjE4em0tMy42OTUtNS4zMDF2Mi44OTNsLTEuMTE2LTIuODkzaDEuMTE2em0tMy4wMjYgNy4wMmgxLjU3M2wuMzUxLjkyNmgtMi4yNTRsLjMzLS45MjZ6bTguNjM1LTQuMzU0Yy0uMjA2LS4yLS40MzEtLjM4LS42OTUtLjUxMi0uMzk2LS4xOTgtLjg1My0uMjk4LTEuMzU1LS4yOTgtLjIxNSAwLS40MjMuMDItLjYyMS4wNTh2LTEuOTE0aDIuNjcxdjIuNjY2eiIvPjwvZz48ZyBpZD0iaWNvbl94NUZfYmciPjxyZWN0IHg9IjEzIiB5PSI0IiBjbGFzcz0ic3QyIiB3aWR0aD0iMSIgaGVpZ2h0PSI4Ii8+PHBhdGggY2xhc3M9InN0MiIgZD0iTTExLjIyNSA4LjM4N2MtLjA3OC0uMjk5LS4xOTktLjU2Mi0uMzYtLjc4NnMtLjM2NS0uNDAxLS42MDktLjUzLS41MzQtLjE5My0uODY2LS4xOTNjLS4xOTggMC0uMzguMDI0LS41NDcuMDczLS4xNjUuMDQ5LS4zMTYuMTE3LS40NTMuMjA1LS4xMzYuMDg4LS4yNTcuMTk0LS4zNjUuMzE4bC0uMTc5LjI1OHYtMy4xNTRoLS44OTN2Ny40MjJoLjg5M3YtLjU3NWwuMTI2LjE3NWMuMDg3LjEwMi4xODkuMTkuMzA0LjI2OS4xMTcuMDc4LjI0OS4xNC4zOTguMTg2LjE0OS4wNDYuMzE0LjA2OC40OTguMDY4LjM1MyAwIC42NjYtLjA3MS45MzctLjIxMi4yNzItLjE0My40OTktLjMzOC42ODItLjU4Ni4xODMtLjI1LjMyMS0uNTQzLjQxNC0uODc5LjA5My0uMzM4LjE0LS43MDMuMTQtMS4wOTctLjAwMS0uMzQyLS4wNC0uNjYzLS4xMi0uOTYyem0tMS40NzktLjYwN2MuMTUxLjA3MS4yODIuMTc2LjM5LjMxNC4xMDkuMTQuMTk0LjMxMy4yNTUuNTE3LjA1MS4xNzQuMDgyLjM3MS4wODkuNTg3bC0uMDA3LjEyNWMwIC4zMjctLjAzMy42Mi0uMS44NjktLjA2Ny4yNDYtLjE2MS40NTMtLjI3OC42MTQtLjExNy4xNjItLjI2LjI4NS0uNDIxLjM2Ni0uMzIyLjE2Mi0uNzYuMTY2LTEuMDY5LjAxNS0uMTUzLS4wNzUtLjI4Ni0uMTc1LS4zOTMtLjI5Ni0uMDg1LS4wOTYtLjE1Ni0uMjE2LS4yMTgtLjM2NyAwIDAtLjE3OS0uNDQ3LS4xNzktLjk0NyAwLS41LjE3OS0xLjAwMi4xNzktMS4wMDIuMDYyLS4xNzcuMTM2LS4zMTguMjI0LS40My4xMTQtLjE0My4yNTYtLjI1OS40MjQtLjM0NS4xNjgtLjA4Ni4zNjUtLjEyOS41ODctLjEyOS4xOSAwIC4zNjQuMDM3LjUxNy4xMDl6Ii8+PHJlY3QgeD0iLjk4NyIgeT0iMiIgY2xhc3M9InN0MiIgd2lkdGg9IjE0LjAxMyIgaGVpZ2h0PSIxLjAyMyIvPjxyZWN0IHg9Ii45ODciIHk9IjEyLjk2OCIgY2xhc3M9InN0MiIgd2lkdGg9IjE0LjAxMyIgaGVpZ2h0PSIxLjAyMyIvPjxwYXRoIGNsYXNzPSJzdDIiIGQ9Ik0xLjk5MSAxMi4wMzFsLjcyOC0yLjAzMWgyLjIxOWwuNzc4IDIuMDMxaDEuMDgybC0yLjQ4NS03LjE1OGgtLjk0MWwtMi40NDEgNy4wODYtLjAyNS4wNzJoMS4wODV6bTEuODI3LTUuNjA5aC4wMjJsLjkxNCAyLjc1M2gtMS44NDFsLjkwNS0yLjc1M3oiLz48L2c+PC9zdmc+") center center no-repeat;\r\n}\r\n\r\n.vs .monaco-custom-checkbox.monaco-regex {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBvbHlnb24gZmlsbD0iI0Y2RjZGNiIgcG9pbnRzPSIxMy42NCw3LjM5NiAxMi4xNjksMi44OTggMTAuNzA2LDMuNzYxIDExLjA4NywyIDYuNTU3LDIgNi45MzYsMy43NjIgNS40NzMsMi44OTggNCw3LjM5NiA1LjY4Miw3LjU1NCA0LjUxMyw4LjU2MSA1LjAxMyw5IDIsOSAyLDE0IDcsMTQgNywxMC43NDcgNy45NzgsMTEuNjA2IDguODIsOS43MjUgOS42NjEsMTEuNjAyIDEzLjE0NCw4LjU2MiAxMS45NjgsNy41NTQiLz48ZyBmaWxsPSIjNDI0MjQyIj48cGF0aCBkPSJNMTIuMzAxIDYuNTE4bC0yLjc3Mi4yNjIgMi4wODYgMS43ODgtMS41OTQgMS4zOTItMS4yMDEtMi42ODItMS4yMDEgMi42ODItMS41ODMtMS4zOTIgMi4wNzUtMS43ODgtMi43NzEtLjI2Mi42OTYtMi4xMjYgMi4zNTggMS4zOTItLjU5OS0yLjc4NGgyLjA1M2wtLjYwMiAyLjc4MyAyLjM1OS0xLjM5Mi42OTYgMi4xMjd6Ii8+PHJlY3QgeD0iMyIgeT0iMTAiIHdpZHRoPSIzIiBoZWlnaHQ9IjMiLz48L2c+PC9zdmc+") center center no-repeat;\r\n}\r\n.hc-black .monaco-custom-checkbox.monaco-regex,\r\n.hc-black .monaco-custom-checkbox.monaco-regex:hover,\r\n.vs-dark .monaco-custom-checkbox.monaco-regex {\r\n\tbackground: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiI+PHBvbHlnb24gZmlsbD0iIzJkMmQzMCIgcG9pbnRzPSIxMy42NCw3LjM5NiAxMi4xNjksMi44OTggMTAuNzA2LDMuNzYxIDExLjA4NywyIDYuNTU3LDIgNi45MzYsMy43NjIgNS40NzMsMi44OTggNCw3LjM5NiA1LjY4Miw3LjU1NCA0LjUxMyw4LjU2MSA1LjAxMyw5IDIsOSAyLDE0IDcsMTQgNywxMC43NDcgNy45NzgsMTEuNjA2IDguODIsOS43MjUgOS42NjEsMTEuNjAyIDEzLjE0NCw4LjU2MiAxMS45NjgsNy41NTQiLz48ZyBmaWxsPSIjQzVDNUM1Ij48cGF0aCBkPSJNMTIuMzAxIDYuNTE4bC0yLjc3Mi4yNjIgMi4wODYgMS43ODgtMS41OTQgMS4zOTItMS4yMDEtMi42ODItMS4yMDEgMi42ODItMS41ODMtMS4zOTIgMi4wNzUtMS43ODgtMi43NzEtLjI2Mi42OTYtMi4xMjYgMi4zNTggMS4zOTItLjU5OS0yLjc4NGgyLjA1M2wtLjYwMiAyLjc4MyAyLjM1OS0xLjM5Mi42OTYgMi4xMjd6Ii8+PHJlY3QgeD0iMyIgeT0iMTAiIHdpZHRoPSIzIiBoZWlnaHQ9IjMiLz48L2c+PC9zdmc+") center center no-repeat;\r\n}\r\n',""])},xPGl:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n/* Uncomment to see lines flashing when they're painted */\r\n/*.monaco-editor .view-lines > .view-line {\r\n\tbackground-color: none;\r\n\tanimation-name: flash-background;\r\n\tanimation-duration: 800ms;\r\n}\r\n@keyframes flash-background {\r\n\t0% { background-color: lightgreen; }\r\n\t100% { background-color: none }\r\n}*/\r\n\r\n.monaco-editor.safari .lines-content,\r\n.monaco-editor.safari .view-line,\r\n.monaco-editor.safari .view-lines {\r\n\t-webkit-user-select: text;\r\n\tuser-select: text;\r\n}\r\n\r\n.monaco-editor .lines-content,\r\n.monaco-editor .view-line,\r\n.monaco-editor .view-lines {\r\n\t-webkit-user-select: none;\r\n\t-ms-user-select: none;\r\n\t-khtml-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-o-user-select: none;\r\n\tuser-select: none;\r\n}\r\n\r\n.monaco-editor .view-lines {\r\n\tcursor: text;\r\n\twhite-space: nowrap;\r\n}\r\n\r\n.monaco-editor.vs-dark.mac .view-lines,\r\n.monaco-editor.hc-black.mac .view-lines {\r\n\tcursor: -webkit-image-set(url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAQAAAC1+jfqAAAAL0lEQVQoz2NgCD3x//9/BhBYBWdhgFVAiVW4JBFKGIa4AqD0//9D3pt4I4tAdAMAHTQ/j5Zom30AAAAASUVORK5CYII=) 1x, url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAQAAADZc7J/AAAAz0lEQVRIx2NgYGBY/R8I/vx5eelX3n82IJ9FxGf6tksvf/8FiTMQAcAGQMDvSwu09abffY8QYSAScNk45G198eX//yev73/4///701eh//kZSARckrNBRvz//+8+6ZohwCzjGNjdgQxkAg7B9WADeBjIBqtJCbhRA0YNoIkBSNmaPEMoNmA0FkYNoFKhapJ6FGyAH3nauaSmPfwI0v/3OukVi0CIZ+F25KrtYcx/CTIy0e+rC7R1Z4KMICVTQQ14feVXIbR695u14+Ir4gwAAD49E54wc1kWAAAAAElFTkSuQmCC) 2x) 5 8, text;\r\n}\r\n\r\n.monaco-editor .view-line {\r\n\tposition: absolute;\r\n\twidth: 100%;\r\n}\r\n\r\n/* TODO@tokenization bootstrap fix */\r\n/*.monaco-editor .view-line > span > span {\r\n\tfloat: none;\r\n\tmin-height: inherit;\r\n\tmargin-left: inherit;\r\n}*/",""])},"yS//":function(e,t,n){var r=n("lGPs");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},ykW5:function(e,t,n){"use strict";n.d(t,"a",function(){return r});n.d(t,"b",function(){return o});function r(e,t){var n=e.getCount();var r=e.findTokenIndexAtOffset(t);var o=e.getLanguageId(r);var a=r;for(;a+1<n&&e.getLanguageId(a+1)===o;)a++;var s=r;for(;s>0&&e.getLanguageId(s-1)===o;)s--;return new i(e,o,s,a+1,e.getStartOffset(s),e.getEndOffset(a))}var i=function(){function e(e,t,n,r,i,o){this._actual=e;this.languageId=t;this._firstTokenIndex=n;this._lastTokenIndex=r;this.firstCharOffset=i;this._lastCharOffset=o}e.prototype.getLineContent=function(){var e;return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)};e.prototype.getTokenCount=function(){return this._lastTokenIndex-this._firstTokenIndex};e.prototype.findTokenIndexAtOffset=function(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex};e.prototype.getStandardTokenType=function(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)};return e}();function o(e){return 0!=(7&e)}},zE4A:function(e,t,n){var r=n("GOPO");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},zOUd:function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n.monaco-editor .lines-decorations {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tbackground: white;\r\n}\r\n\r\n/*\r\n\tKeeping name short for faster parsing.\r\n\tcldr = core lines decorations rendering (div)\r\n*/\r\n.monaco-editor .margin-view-overlays .cldr {\r\n\tposition: absolute;\r\n\theight: 100%;\r\n}",""])},"zS+e":function(e,t,n){(t=e.exports=n("e0uS")(!1)).push([e.i,"/*---------------------------------------------------------------------------------------------\r\n * Copyright (c) Microsoft Corporation. All rights reserved.\r\n * Licensed under the MIT License. See License.txt in the project root for license information.\r\n *--------------------------------------------------------------------------------------------*/\r\n\r\n.context-view .monaco-menu {\r\n\tmin-width: 130px;\r\n}\r\n",""])},zgcD:function(e,t,n){"use strict";n.d(t,"d",function(){return s});n.d(t,"b",function(){return l});n.d(t,"c",function(){return c});n.d(t,"a",function(){return p});n.d(t,"f",function(){return g});n.d(t,"e",function(){return v});n.d(t,"g",function(){return m});var r=n("PFKJ");var i=n("TihM");var o=(a=function(e,t){return(a=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])})(e,t)},function(e,t){a(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var a;var s=function(){function e(){}e.has=function(e){return new l(e)};e.equals=function(e,t){return new c(e,t)};e.regex=function(e,t){return new f(e,t)};e.not=function(e){return new h(e)};e.and=function(){var e=[];for(var t=0;t<arguments.length;t++)e[t]=arguments[t];return new p(e)};e.deserialize=function(e){var t=this;if(!e)return null;var n=e.split("&&");var r;return new p(n.map(function(e){return t._deserializeOne(e)})).normalize()};e._deserializeOne=function(e){if((e=e.trim()).indexOf("!=")>=0){var t=e.split("!=");return new d(t[0].trim(),this._deserializeValue(t[1]))}if(e.indexOf("==")>=0){var t=e.split("==");return new c(t[0].trim(),this._deserializeValue(t[1]))}if(e.indexOf("=~")>=0){var t=e.split("=~");return new f(t[0].trim(),this._deserializeRegexValue(t[1]))}if(/^\!\s*/.test(e))return new h(e.substr(1).trim());return new l(e)};e._deserializeValue=function(e){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;var t=/^'([^']*)'$/.exec(e);if(t)return t[1].trim();return e};e._deserializeRegexValue=function(e){if(Object(r["q"])(e)){console.warn("missing regexp-value for =~-expression");return null}var t=e.indexOf("/");var n=e.lastIndexOf("/");if(t===n||t<0){console.warn("bad regexp-value '"+e+"', missing /-enclosure");return null}var i=e.slice(t+1,n);var o="i"===e[n+1]?"i":"";try{return new RegExp(i,o)}catch(t){console.warn("bad regexp-value '"+e+"', parse error: "+t);return null}};return e}();function u(e,t){var n=e.getType();var r=t.getType();if(n!==r)return n-r;switch(n){case 1:case 2:case 3:case 4:case 6:return e.cmp(t);default:throw new Error("Unknown ContextKeyExpr!")}}var l=function(){function e(e){this.key=e}e.prototype.getType=function(){return 1};e.prototype.cmp=function(e){if(this.key<e.key)return-1;if(this.key>e.key)return 1;return 0};e.prototype.equals=function(t){if(t instanceof e)return this.key===t.key;return!1};e.prototype.evaluate=function(e){return!!e.getValue(this.key)};e.prototype.normalize=function(){return this};e.prototype.keys=function(){return[this.key]};return e}();var c=function(){function e(e,t){this.key=e;this.value=t}e.prototype.getType=function(){return 3};e.prototype.cmp=function(e){if(this.key<e.key)return-1;if(this.key>e.key)return 1;if(this.value<e.value)return-1;if(this.value>e.value)return 1;return 0};e.prototype.equals=function(t){if(t instanceof e)return this.key===t.key&&this.value===t.value;return!1};e.prototype.evaluate=function(e){return e.getValue(this.key)==this.value};e.prototype.normalize=function(){if("boolean"==typeof this.value){if(this.value)return new l(this.key);return new h(this.key)}return this};e.prototype.keys=function(){return[this.key]};return e}();var d=function(){function e(e,t){this.key=e;this.value=t}e.prototype.getType=function(){return 4};e.prototype.cmp=function(e){if(this.key<e.key)return-1;if(this.key>e.key)return 1;if(this.value<e.value)return-1;if(this.value>e.value)return 1;return 0};e.prototype.equals=function(t){if(t instanceof e)return this.key===t.key&&this.value===t.value;return!1};e.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value};e.prototype.normalize=function(){if("boolean"==typeof this.value){if(this.value)return new h(this.key);return new l(this.key)}return this};e.prototype.keys=function(){return[this.key]};return e}();var h=function(){function e(e){this.key=e}e.prototype.getType=function(){return 2};e.prototype.cmp=function(e){if(this.key<e.key)return-1;if(this.key>e.key)return 1;return 0};e.prototype.equals=function(t){if(t instanceof e)return this.key===t.key;return!1};e.prototype.evaluate=function(e){return!e.getValue(this.key)};e.prototype.normalize=function(){return this};e.prototype.keys=function(){return[this.key]};return e}();var f=function(){function e(e,t){this.key=e;this.regexp=t}e.prototype.getType=function(){return 6};e.prototype.cmp=function(e){if(this.key<e.key)return-1;if(this.key>e.key)return 1;var t=this.regexp?this.regexp.source:"";var n=e.regexp?e.regexp.source:"";if(t<n)return-1;if(t>n)return 1;return 0};e.prototype.equals=function(t){if(t instanceof e){var n=this.regexp?this.regexp.source:"";var r=t.regexp?t.regexp.source:"";return this.key===t.key&&n===r}return!1};e.prototype.evaluate=function(e){var t=e.getValue(this.key);return!!this.regexp&&this.regexp.test(t)};e.prototype.normalize=function(){return this};e.prototype.keys=function(){return[this.key]};return e}();var p=function(){function e(t){this.expr=e._normalizeArr(t)}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 n=0,r=this.expr.length;n<r;n++)if(!this.expr[n].equals(t.expr[n]))return!1;return!0}return!1};e.prototype.evaluate=function(e){for(var t=0,n=this.expr.length;t<n;t++)if(!this.expr[t].evaluate(e))return!1;return!0};e._normalizeArr=function(t){var n=[];if(t){for(var r=0,i=t.length;r<i;r++){var o=t[r];if(!o)continue;if(!(o=o.normalize()))continue;if(o instanceof e){n=n.concat(o.expr);continue}n.push(o)}n.sort(u)}return n};e.prototype.normalize=function(){if(0===this.expr.length)return null;if(1===this.expr.length)return this.expr[0];return this};e.prototype.keys=function(){var e=[];for(var t=0,n=this.expr;t<n.length;t++){var r=n[t];e.push.apply(e,r.keys())}return e};return e}();var g=function(e){o(t,e);function t(t,n){var r=e.call(this,t)||this;r._defaultValue=n;return r}t.prototype.bindTo=function(e){return e.createKey(this.key,this._defaultValue)};t.prototype.getValue=function(e){return e.getContextKeyValue(this.key)};t.prototype.toNegated=function(){return s.not(this.key)};return t}(l);var v=Object(i["c"])("contextKeyService");var m="setContext"},zgxN:function(e,t,n){"use strict";n.d(t,"a",function(){return r});n.d(t,"b",function(){return i});var r;!function(e){e[e["None"]=0]="None";e[e["Indent"]=1]="Indent";e[e["IndentOutdent"]=2]="IndentOutdent";e[e["Outdent"]=3]="Outdent"}(r||(r={}));var i=function(){function e(e){this.open=e.open;this.close=e.close;this._standardTokenMask=0;if(Array.isArray(e.notIn))for(var t=0,n=e.notIn.length;t<n;t++){var r;switch(e.notIn[t]){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4}}}e.prototype.isOK=function(e){return 0==(this._standardTokenMask&e)};return e}()},zjU1:function(e,t,n){var r=n("B42n");"string"==typeof r&&(r=[[e.i,r,""]]);var i;var o;var a={hmr:!0};a.transform=void 0;a.insertInto=void 0;var s=n("UezQ")(r,a);r.locals&&(e.exports=r.locals);0},zxKB:function(e,t,n){"use strict";n.d(t,"l",function(){return p});n.d(t,"G",function(){return g});n.d(t,"C",function(){return v});n.d(t,"y",function(){return b});n.d(t,"e",function(){return C});n.d(t,"f",function(){return w});n.d(t,"E",function(){return S});n.d(t,"F",function(){return L});n.d(t,"N",function(){return I});n.d(t,"g",function(){return N});n.d(t,"j",function(){return k});n.d(t,"h",function(){return O});n.d(t,"J",function(){return A});n.d(t,"L",function(){return R});n.d(t,"i",function(){return z});n.d(t,"q",function(){return V});n.d(t,"p",function(){return U});n.d(t,"v",function(){return Y});n.d(t,"t",function(){return K});n.d(t,"d",function(){return Q});n.d(t,"x",function(){return q});n.d(t,"s",function(){return J});n.d(t,"r",function(){return X});n.d(t,"w",function(){return $});n.d(t,"A",function(){return ee});n.d(t,"o",function(){return te});n.d(t,"n",function(){return ne});n.d(t,"D",function(){return se});n.d(t,"B",function(){return ue});n.d(t,"c",function(){return le});n.d(t,"b",function(){return ce});n.d(t,"K",function(){return de});n.d(t,"I",function(){return he});n.d(t,"O",function(){return pe});n.d(t,"k",function(){return ge});n.d(t,"a",function(){return me});n.d(t,"M",function(){return _e});n.d(t,"z",function(){return ye});n.d(t,"H",function(){return Ce});n.d(t,"u",function(){return we});n.d(t,"m",function(){return Se});n.d(t,"P",function(){return Le});var r=n("aBfO");var i=n("kqNA");var o=n("RBaS");var a=n("AAdS");var s=n("kaC/");var u=n("W5Z6");var l=n("5s6q");var c=n("KVQV");var d=n("9X2a");var h=(f=function(e,t){return(f=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])})(e,t)},function(e,t){f(e,t);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});var f;function p(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function g(e){e.parentNode&&e.parentNode.removeChild(e)}function v(e){for(;e;){if(e===document.body)return!0;e=e.parentNode}return!1}var m=new(function(){function e(){}e.prototype._findClassName=function(e,t){var n=e.className;if(!n){this._lastStart=-1;return}t=t.trim();var r=n.length,i=t.length;if(0===i){this._lastStart=-1;return}if(r<i){this._lastStart=-1;return}if(n===t){this._lastStart=0;this._lastEnd=r;return}var o=-1,a;for(;(o=n.indexOf(t,o+1))>=0;){a=o+i;if((0===o||32===n.charCodeAt(o-1))&&32===n.charCodeAt(a)){this._lastStart=o;this._lastEnd=a+1;return}if(o>0&&32===n.charCodeAt(o-1)&&a===r){this._lastStart=o-1;this._lastEnd=a;return}if(0===o&&a===r){this._lastStart=0;this._lastEnd=a;return}}this._lastStart=-1};e.prototype.hasClass=function(e,t){this._findClassName(e,t);return-1!==this._lastStart};e.prototype.addClasses=function(e){var t=this;var n=[];for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.addClass(e,n)})})};e.prototype.addClass=function(e,t){if(e.className){this._findClassName(e,t);-1===this._lastStart&&(e.className=e.className+" "+t)}else e.className=t};e.prototype.removeClass=function(e,t){this._findClassName(e,t);if(-1===this._lastStart)return;e.className=e.className.substring(0,this._lastStart)+e.className.substring(this._lastEnd)};e.prototype.removeClasses=function(e){var t=this;var n=[];for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.removeClass(e,n)})})};e.prototype.toggleClass=function(e,t,n){this._findClassName(e,t);-1===this._lastStart||void 0!==n&&n||this.removeClass(e,t);-1!==this._lastStart||void 0!==n&&!n||this.addClass(e,t)};return e}());var _=new(function(){function e(){}e.prototype.hasClass=function(e,t){return Boolean(t)&&e.classList&&e.classList.contains(t)};e.prototype.addClasses=function(e){var t=this;var n=[];for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.addClass(e,n)})})};e.prototype.addClass=function(e,t){t&&e.classList&&e.classList.add(t)};e.prototype.removeClass=function(e,t){t&&e.classList&&e.classList.remove(t)};e.prototype.removeClasses=function(e){var t=this;var n=[];for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];n.forEach(function(n){return n.split(" ").forEach(function(n){return t.removeClass(e,n)})})};e.prototype.toggleClass=function(e,t,n){e.classList&&e.classList.toggle(t,n)};return e}());var y=r["k"]?m:_;var b=y.hasClass.bind(y);var C=y.addClass.bind(y);var w=y.addClasses.bind(y);var S=y.removeClass.bind(y);var L=y.removeClasses.bind(y);var I=y.toggleClass.bind(y);var x=function(){function e(e,t,n,r){this._node=e;this._type=t;this._handler=n;this._useCapture=r||!1;this._node.addEventListener(this._type,this._handler,this._useCapture)}e.prototype.dispose=function(){if(!this._handler)return;this._node.removeEventListener(this._type,this._handler,this._useCapture);this._node=null;this._handler=null};return e}();function N(e,t,n,r){return new x(e,t,n,r)}function M(e){return function(t){return e(new a["b"](t))}}function D(e){return function(t){return e(new o["a"](t))}}var k=function e(t,n,r,i){var o=r;"click"===n||"mousedown"===n?o=M(r):"keydown"!==n&&"keypress"!==n&&"keyup"!==n||(o=D(r));return N(t,n,o,i)};function O(e,t){return N(e,"mouseout",function(n){var r=n.relatedTarget||n.toElement;for(;r&&r!==e;)r=r.parentNode;if(r===e)return;t(n)})}var E=null;function T(e){if(!E){var t=function(e){return setTimeout(function(){return e((new Date).getTime())},0)};E=self.requestAnimationFrame||self.msRequestAnimationFrame||self.webkitRequestAnimationFrame||self.mozRequestAnimationFrame||self.oRequestAnimationFrame||t}return E.call(self,e)}var A;var R;var P=function(){function e(e,t){void 0===t&&(t=0);this._runner=e;this.priority=t;this._canceled=!1}e.prototype.dispose=function(){this._canceled=!0};e.prototype.execute=function(){if(this._canceled)return;try{this._runner()}catch(e){Object(u["d"])(e)}};e.sort=function(e,t){return t.priority-e.priority};return e}();!function(){var e=[];var t=null;var n=!1;var r=!1;var i=function(){n=!1;t=e;e=[];r=!0;for(;t.length>0;){t.sort(P.sort);var i;t.shift().execute()}r=!1};R=function(t,r){void 0===r&&(r=0);var o=new P(t,r);e.push(o);if(!n){n=!0;T(i)}return o};A=function(e,n){if(r){var i=new P(e,n);t.push(i);return i}return R(e,n)}}();var j=16;var W=function(e,t){return t};var F=function(e){h(t,e);function t(t,n,r,i,o){void 0===i&&(i=W);void 0===o&&(o=j);var a=e.call(this)||this;var u=null;var l=0;var c=a._register(new s["d"]);var d=function(){l=(new Date).getTime();r(u);u=null};a._register(N(t,n,function(e){u=i(u,e);var t=(new Date).getTime()-l;if(t>=o){c.cancel();d()}else c.setIfNotSet(d,o-t)}));return a}return t}(c["a"]);function z(e,t,n,r,i){return new F(e,t,n,r,i)}function V(e){return document.defaultView.getComputedStyle(e,null)}var B=function(e,t){return parseFloat(t)||0};function H(e,t,n){var r=V(e);var i="0";r&&(i=r.getPropertyValue?r.getPropertyValue(t):r.getAttribute(n));return B(e,i)}function U(e){if(e!==document.body)return new G(e.clientWidth,e.clientHeight);if(window.innerWidth&&window.innerHeight)return new G(window.innerWidth,window.innerHeight);if(document.body&&document.body.clientWidth&&document.body.clientHeight)return new G(document.body.clientWidth,document.body.clientHeight);if(document.documentElement&&document.documentElement.clientWidth&&document.documentElement.clientHeight)return new G(document.documentElement.clientWidth,document.documentElement.clientHeight);throw new Error("Unable to figure out browser width and height")}var Z={getBorderLeftWidth:function(e){return H(e,"border-left-width","borderLeftWidth")},getBorderRightWidth:function(e){return H(e,"border-right-width","borderRightWidth")},getBorderTopWidth:function(e){return H(e,"border-top-width","borderTopWidth")},getBorderBottomWidth:function(e){return H(e,"border-bottom-width","borderBottomWidth")},getPaddingLeft:function(e){return H(e,"padding-left","paddingLeft")},getPaddingRight:function(e){return H(e,"padding-right","paddingRight")},getPaddingTop:function(e){return H(e,"padding-top","paddingTop")},getPaddingBottom:function(e){return H(e,"padding-bottom","paddingBottom")},getMarginLeft:function(e){return H(e,"margin-left","marginLeft")},getMarginTop:function(e){return H(e,"margin-top","marginTop")},getMarginRight:function(e){return H(e,"margin-right","marginRight")},getMarginBottom:function(e){return H(e,"margin-bottom","marginBottom")},__commaSentinel:!1};var G=function(){function e(e,t){this.width=e;this.height=t}return e}();function Y(e){var t=e.offsetParent,n=e.offsetTop,r=e.offsetLeft;for(;null!==(e=e.parentNode)&&e!==document.body&&e!==document.documentElement;){n-=e.scrollTop;var i=V(e);i&&(r-="rtl"!==i.direction?e.scrollLeft:-e.scrollLeft);if(e===t){r+=Z.getBorderLeftWidth(e);n+=Z.getBorderTopWidth(e);n+=e.offsetTop;r+=e.offsetLeft;t=e.offsetParent}}return{left:r,top:n}}function K(e){var t=e.getBoundingClientRect();return{left:t.left+Q.scrollX,top:t.top+Q.scrollY,width:t.width,height:t.height}}var Q=new(function(){function e(){}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});return e}());function q(e){var t=Z.getMarginLeft(e)+Z.getMarginRight(e);return e.offsetWidth+t}function J(e){var t=Z.getBorderLeftWidth(e)+Z.getBorderRightWidth(e);var n=Z.getPaddingLeft(e)+Z.getPaddingRight(e);return e.offsetWidth-t-n}function X(e){var t=Z.getBorderTopWidth(e)+Z.getBorderBottomWidth(e);var n=Z.getPaddingTop(e)+Z.getPaddingBottom(e);return e.offsetHeight-t-n}function $(e){var t=Z.getMarginTop(e)+Z.getMarginBottom(e);return e.offsetHeight+t}function ee(e,t){for(;e;){if(e===t)return!0;e=e.parentNode}return!1}function te(e,t,n){for(;e;){if(b(e,t))return e;if(n)if("string"==typeof n){if(b(e,n))return null}else if(e===n)return null;e=e.parentNode}return null}function ne(e){void 0===e&&(e=document.getElementsByTagName("head")[0]);var t=document.createElement("style");t.type="text/css";t.media="screen";e.appendChild(t);return t}var re=null;function ie(){re||(re=ne());return re}function oe(e){if(e&&e.sheet&&e.sheet.rules)return e.sheet.rules;if(e&&e.sheet&&e.sheet.cssRules)return e.sheet.cssRules;return[]}function ae(e,t,n){void 0===n&&(n=ie());if(!n||!t)return;n.sheet.insertRule(e+"{"+t+"}",0)}function se(e,t){void 0===t&&(t=ie());if(!t)return;var n=oe(t);var r=[];for(var i=0;i<n.length;i++){var o;-1!==n[i].selectorText.indexOf(e)&&r.push(i)}for(var i=r.length-1;i>=0;i--)t.sheet.deleteRule(r[i])}function ue(e){if("object"==typeof HTMLElement)return e instanceof HTMLElement;return e&&"object"==typeof e&&1===e.nodeType&&"string"==typeof e.nodeName}var le={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:r["n"]?"webkitAnimationStart":"animationstart",ANIMATION_END:r["n"]?"webkitAnimationEnd":"animationend",ANIMATION_ITERATION:r["n"]?"webkitAnimationIteration":"animationiteration"};var ce={stop:function(e,t){e.preventDefault?e.preventDefault():e.returnValue=!1;t&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)}};function de(e){var t=[];for(var n=0;e&&e.nodeType===e.ELEMENT_NODE;n++){t[n]=e.scrollTop;e=e.parentNode}return t}function he(e,t){for(var n=0;e&&e.nodeType===e.ELEMENT_NODE;n++){e.scrollTop!==t[n]&&(e.scrollTop=t[n]);e=e.parentNode}}var fe=function(){function e(e){var t=this;this._onDidFocus=new l["a"];this.onDidFocus=this._onDidFocus.event;this._onDidBlur=new l["a"];this.onDidBlur=this._onDidBlur.event;this.disposables=[];var n=ee(document.activeElement,e);var r=!1;var o=function(){r=!1;if(!n){n=!0;t._onDidFocus.fire()}};var a=function(){if(n){r=!0;window.setTimeout(function(){if(r){r=!1;n=!1;t._onDidBlur.fire()}},0)}};Object(i["a"])(e,le.FOCUS,!0)(o,null,this.disposables);Object(i["a"])(e,le.BLUR,!0)(a,null,this.disposables)}e.prototype.dispose=function(){this.disposables=Object(c["d"])(this.disposables);this._onDidFocus.dispose();this._onDidBlur.dispose()};return e}();function pe(e){return new fe(e)}function ge(e){var t=[];for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];t.forEach(function(t){return e.appendChild(t)});return t[t.length-1]}var ve=/([\w\-]+)?(#([\w\-]+))?((.([\w\-]+))*)/;function me(e,t){var n=[];for(var r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=ve.exec(e);if(!i)throw new Error("Bad use of emmet");var o=document.createElement(i[1]||"div");i[3]&&(o.id=i[3]);i[4]&&(o.className=i[4].replace(/\./g," ").trim());t=t||{};Object.keys(t).forEach(function(e){var n=t[e];/^on\w+$/.test(e)?o[e]=n:"selected"===e?n&&o.setAttribute(e,"true"):o.setAttribute(e,n)});n.filter(function(e){return!!e}).forEach(function(e){e instanceof Node?o.appendChild(e):o.appendChild(document.createTextNode(e))});return o}function _e(){var e=[];for(var t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];i.style.display="";i.removeAttribute("aria-hidden")}}function ye(){var e=[];for(var t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++){var i=r[n];i.style.display="none";i.setAttribute("aria-hidden","true")}}function be(e,t){for(;e;){if(e instanceof HTMLElement&&e.hasAttribute(t))return e;e=e.parentNode}return null}function Ce(e){if(!e||!e.hasAttribute("tabIndex"))return;if(document.activeElement===e){var t=be(e.parentElement,"tabIndex");t&&t.focus()}e.removeAttribute("tabindex")}function we(e){return Array.prototype.slice.call(document.getElementsByTagName(e),0)}function Se(e){var t=window.devicePixelRatio*e;return Math.max(1,Math.floor(t))/window.devicePixelRatio}function Le(e){if(d["e"]||r["i"])window.open(e);else{var t=window.open();if(t){t.opener=null;t.location.href=e}}}}}]);
//# sourceMappingURL=9de0345c9b6181968681.bundle.js.map