ethereum-lite-explorer
Version:
Ethereum Lite Explorer
1 lines • 1.53 MB
JavaScript
(window["webpackJsonp_aleth_io_ethMemento"]=window["webpackJsonp_aleth_io_ethMemento"]||[]).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=func