text: /*!--------------------------------------------------------
   * Copyright (C) Microsoft Corporation. All rights reserved.
   *--------------------------------------------------------*/
  (function(){
  var e=["require","exports","vs/base/common/uri","vs/base/common/winjs.base","vs/base/common/event","vs/workbench/api/node/extHost.protocol","vs/base/common/lifecycle","vs/workbench/api/node/extHostTypes","vs/base/common/platform","vs/base/common/strings","vs/nls","vs/nls!vs/workbench/node/extensionHostProcess","vs/base/common/async","vs/base/common/errors","vs/base/common/arrays","vs/base/common/types","vs/platform/instantiation/common/instantiation","vs/base/common/cancellation","vs/workbench/api/node/extHostTypeConverters","vs/base/common/paths","path","vs/base/common/map","vs/base/common/objects","vs/base/common/resources","vs/base/common/network","vs/base/common/severity","vs/platform/registry/common/platform","vs/base/common/glob","vs/platform/configuration/common/configurationRegistry","os","vs/base/node/pfs","vs/workbench/api/node/extHostExtensionActivator","vs/base/common/amd","vs/base/common/linkedList","vs/editor/common/core/position","fs","vs/base/common/assert","vs/platform/log/common/log","vs/base/common/uuid","child_process","vs/editor/common/modes/languageSelector","vs/base/common/errorMessage","vs/editor/common/model","vs/editor/common/core/range","net","vs/platform/contextkey/common/contextkey","vs/base/node/extfs","vs/platform/log/node/spdlogService","vs/platform/markers/common/markers","vs/platform/node/package","vs/platform/node/product","vs/editor/common/model/wordHelper","vs/base/common/htmlContent","vs/platform/configuration/common/configuration","vs/platform/configuration/common/configurationModels","vs/base/common/comparers","vs/base/common/stopwatch","vs/workbench/api/node/extHostDocumentData","vs/base/common/functional","vs/workbench/api/node/extHostTextEditor","vs/workbench/services/extensions/node/proxyIdentifier","vs/base/common/decorators","vs/workbench/api/node/extHostDebugService","vs/editor/common/model/mirrorTextModel","vs/nls!vs/base/common/errorMessage","vs/base/node/stream","vs/base/common/json","vs/base/node/encoding","vs/nls!vs/base/common/severity","vs/workbench/node/extensionHostMain","vs/nls!vs/editor/common/config/editorOptions","vs/editor/common/config/editorOptions","vs/nls!vs/platform/configuration/common/configurationRegistry","vs/nls!vs/platform/extensionManagement/common/extensionManagement","vs/nls!vs/platform/markers/common/markers","vs/nls!vs/platform/workspaces/common/workspaces","vs/nls!vs/workbench/api/node/extHost.api.impl","vs/nls!vs/workbench/api/node/extHostDebugService","vs/nls!vs/workbench/api/node/extHostDiagnostics","vs/nls!vs/workbench/api/node/extHostExtensionActivator","vs/nls!vs/workbench/api/node/extHostProgress","vs/nls!vs/workbench/api/node/extHostTask","vs/nls!vs/workbench/api/node/extHostTreeViews","vs/nls!vs/workbench/api/node/extHostWorkspace","vs/nls!vs/workbench/node/extensionHostMain","vs/nls!vs/workbench/parts/debug/node/debugAdapter","vs/nls!vs/workbench/parts/debug/node/terminals","vs/base/common/date","vs/workbench/services/extensions/node/rpcProtocol","vs/editor/common/services/modelService","vs/editor/common/modes/languageFeatureRegistry","vs/editor/common/modes","vs/platform/commands/common/commands","vs/base/common/numbers","vs/platform/extensionManagement/common/extensionManagement","vs/platform/files/common/files","vs/nls!vs/workbench/services/configurationResolver/node/variableResolver","vs/base/common/filters","vs/base/common/marshalling","vs/base/parts/ipc/node/ipc","vs/base/parts/ipc/node/ipc.net","vs/platform/notification/common/notification","vs/platform/output/node/outputAppender","vs/platform/progress/common/progress","vs/base/common/normalization","vs/platform/jsonschemas/common/jsonContributionRegistry","vs/base/parts/quickopen/common/quickOpenScorer","vs/base/common/idGenerator","vs/base/common/labels","vs/platform/workspaces/common/workspaces","vs/platform/workspace/common/workspace","vs/editor/common/core/selection","vs/workbench/api/node/extHostHeapService","vs/workbench/api/node/extHostSearch.fileIndex","vs/editor/common/core/uint","vs/workbench/api/node/extHostWorkspace","vs/base/common/scrollable","vs/workbench/api/node/extHostTreeViews","vs/workbench/common/extensionHostProtocol","vs/workbench/parts/debug/common/debugUtils","vs/workbench/parts/debug/node/debugAdapter","vs/workbench/parts/debug/node/terminals","vs/workbench/parts/tasks/common/tasks","vs/workbench/parts/terminal/common/terminal","vs/workbench/parts/terminal/node/terminalEnvironment","vs/workbench/parts/terminal/node/terminalProcess","vs/workbench/api/node/extHostExtensionService","vs/workbench/services/configuration/common/configurationModels","vs/workbench/api/node/extHostConfiguration","vs/workbench/services/configurationResolver/node/variableResolver","vs/workbench/services/editor/common/editorService","vs/base/node/flow","vs/workbench/api/node/apiCommands","vs/workbench/api/node/extHostApiCommands","vs/workbench/api/node/extHostDocumentSaveParticipant","vs/workbench/api/node/extHostProgress","vs/editor/common/modes/languageConfiguration","vs/workbench/services/extensions/common/extensions","vs/workbench/api/node/extHostLogService","vs/workbench/services/extensions/node/extensionDescriptionRegistry","vs/workbench/services/extensions/node/lazyPromise","assert","vs/editor/common/modes/tokenizationRegistry","vs/workbench/api/node/extHostCommands","vs/workbench/api/node/extHostComments","vs/editor/common/viewModel/prefixSumComputer","vs/workbench/api/node/extHostDecorations","vs/workbench/api/node/extHostDiagnostics","vs/workbench/api/node/extHostDialogs","vs/workbench/api/node/extHostDocumentContentProviders","vs/workbench/api/node/extHostDocuments","vs/workbench/api/node/extHostDocumentsAndEditors","vs/workbench/api/node/extHostFileSystem","vs/workbench/api/node/extHostFileSystemEventService","vs/workbench/api/node/extHostLanguageFeatures","vs/workbench/api/node/extHostLanguages","vs/workbench/api/node/extHostMessageService","vs/workbench/api/node/extHostOutputService","vs/workbench/api/node/extHostQuickOpen","vs/workbench/api/node/extHostSCM","vs/workbench/api/node/extHostSearch","vs/workbench/api/node/extHostStatusBar","vs/workbench/api/node/extHostStorage","vs/workbench/api/node/extHostTask","vs/workbench/api/node/extHostTerminalService","vs/workbench/api/node/extHostTextEditors","vs/workbench/api/node/extHostUrls","vs/workbench/api/node/extHostWebview","vs/workbench/api/node/extHostWindow","vs/workbench/api/node/extHost.api.impl","node-pty","crypto","stream","iconv-lite","vs/workbench/node/extensionHostProcess"],t=function(t){
  for(var n=[],r=0,i=t.length;r<i;r++)n[r]=e[t[r]];return n};define(e[36],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ok=function(e,t){if(!e||null===e)throw new Error(t?"Assertion failed ("+t+")":"Assertion Failed")}}),define(e[61],t([0,1]),function(e,t){"use strict";function n(e){return function(t,n,r){var i=null,o=null;if("function"==typeof r.value?(i="value",o=r.value):"function"==typeof r.get&&(i="get",o=r.get),!o)throw new Error("not supported");r[i]=e(o,n)}}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=n,t.memoize=function(e,t,n){var r=null,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")):"function"==typeof n.get&&(r="get",i=n.get),!i)throw new Error("not supported");var o="$memoize$"+t;n[r]=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return this.hasOwnProperty(o)||Object.defineProperty(this,o,{configurable:!1,
  enumerable:!1,writable:!1,value:i.apply(this,e)}),this[o]}},t.debounce=function(e,t,r){return n(function(n,i){var o="$debounce$"+i,s="$debounce$result$"+i;return function(){for(var i=this,a=[],u=0;u<arguments.length;u++)a[u]=arguments[u];this[s]||(this[s]=r?r():void 0),clearTimeout(this[o]),t&&(this[s]=t.apply(void 0,[this[s]].concat(a)),a=[this[s]]),this[o]=setTimeout(function(){n.apply(i,a),i[s]=r?r():void 0},e)}})}}),define(e[58],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=function(e){var t,n=this,r=!1;return function(){return r?t:(r=!0,t=e.apply(n,arguments))}}}),define(e[107],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){this._prefix=e,this._lastId=0}return e.prototype.nextId=function(){return this._prefix+ ++this._lastId},e}();t.IdGenerator=n,t.defaultGenerator=new n("id#")}),define(e[66],t([0,1]),function(e,t){"use strict";function n(e,t){function n(t,n){for(var r=0,i=0;r<t||!n;){
  var o=e.charCodeAt(a);if(o>=48&&o<=57)i=16*i+o-48;else if(o>=65&&o<=70)i=16*i+o-65+10;else{if(!(o>=97&&o<=102))break;i=16*i+o-97+10}a++,r++}return r<t&&(i=-1),i}function s(){if(c="",d=0,l=a,a>=u)return l=u,f=16;var t=e.charCodeAt(a);if(r(t)){do{a++,c+=String.fromCharCode(t),t=e.charCodeAt(a)}while(r(t));return f=15}if(i(t))return a++,c+=String.fromCharCode(t),13===t&&10===e.charCodeAt(a)&&(a++,c+="\n"),f=14;switch(t){case 123:return a++,f=1;case 125:return a++,f=2;case 91:return a++,f=3;case 93:return a++,f=4;case 58:return a++,f=6;case 44:return a++,f=5;case 34:return a++,c=function(){for(var t="",r=a;;){if(a>=u){t+=e.substring(r,a),d=2;break}var o=e.charCodeAt(a);if(34===o){t+=e.substring(r,a),a++;break}if(92!==o){if(o>=0&&o<=31){if(i(o)){t+=e.substring(r,a),d=2;break}d=6}a++}else{if(t+=e.substring(r,a),++a>=u){d=2;break}switch(o=e.charCodeAt(a++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break
  ;case 116:t+="\t";break;case 117:var s=n(4,!0);s>=0?t+=String.fromCharCode(s):d=4;break;default:d=5}r=a}}return t}(),f=10;case 47:var s=a-1;if(47===e.charCodeAt(a+1)){for(a+=2;a<u&&!i(e.charCodeAt(a));)a++;return c=e.substring(s,a),f=12}if(42===e.charCodeAt(a+1)){a+=2;for(var h=u-1,p=!1;a<h;){if(42===e.charCodeAt(a)&&47===e.charCodeAt(a+1)){a+=2,p=!0;break}a++}return p||(a++,d=1),c=e.substring(s,a),f=13}return c+=String.fromCharCode(t),a++,f=0;case 45:if(c+=String.fromCharCode(t),++a===u||!o(e.charCodeAt(a)))return f=0;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return c+=function(){var t=a;if(48===e.charCodeAt(a))a++;else for(a++;a<e.length&&o(e.charCodeAt(a));)a++;if(a<e.length&&46===e.charCodeAt(a)){if(!(++a<e.length&&o(e.charCodeAt(a))))return d=3,e.substring(t,a);for(a++;a<e.length&&o(e.charCodeAt(a));)a++}var n=a;if(a<e.length&&(69===e.charCodeAt(a)||101===e.charCodeAt(a)))if((++a<e.length&&43===e.charCodeAt(a)||45===e.charCodeAt(a))&&a++,
  a<e.length&&o(e.charCodeAt(a))){for(a++;a<e.length&&o(e.charCodeAt(a));)a++;n=a}else d=3;return e.substring(t,n)}(),f=11;default:for(;a<u&&function(e){if(r(e)||i(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}(t);)a++,t=e.charCodeAt(a);if(l!==a){switch(c=e.substring(l,a)){case"true":return f=8;case"false":return f=9;case"null":return f=7}return f=0}return c+=String.fromCharCode(t),a++,f=0}}void 0===t&&(t=!1);var a=0,u=e.length,c="",l=0,f=0,d=0;return{setPosition:function(e){a=e,c="",l=0,f=0,d=0},getPosition:function(){return a},scan:t?function(){var e;do{e=s()}while(e>=12&&e<=15);return e}:s,getToken:function(){return f},getTokenValue:function(){return c},getTokenOffset:function(){return l},getTokenLength:function(){return a-l},getTokenError:function(){return d}}}function r(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function i(e){return 10===e||13===e||8232===e||8233===e}
  function o(e){return e>=48&&e<=57}function s(e){if("array"===e.type)return e.children.map(s);if("object"===e.type){for(var t={},n=0,r=e.children;n<r.length;n++){var i=r[n];t[i.children[0].value]=s(i.children[1])}return t}return e.value}function a(e,t,r){function i(e){return e?function(){return e(f.getTokenOffset(),f.getTokenLength())}:function(){return!0}}function o(e){return e?function(t){return e(t,f.getTokenOffset(),f.getTokenLength())}:function(){return!0}}function s(){for(;;){var e=f.scan();switch(e){case 12:case 13:b&&a(0);break;case 0:a(0);break;case 15:case 14:break;default:return e}}}function a(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),_(e),t.length+n.length>0)for(var r=f.getToken();16!==r;){if(-1!==t.indexOf(r)){s();break}if(-1!==n.indexOf(r))break;r=s()}}function u(e){var t=f.getTokenValue();return e?v(t):h(t),s(),!0}function c(){return 10!==f.getToken()?(a(2,[],[2,5]),!1):(u(!1),6===f.getToken()?(y(":"),s(),l()||a(3,[],[2,5])):a(4,[],[2,5]),!0)}function l(){switch(f.getToken()){case 3:
  return function(){g(),s();for(var e=!1;4!==f.getToken()&&16!==f.getToken();){if(5===f.getToken()){if(e||a(3,[],[]),y(","),s(),4===f.getToken()&&!C)break}else e&&a(5,[],[]);l()||a(3,[],[4,5]),e=!0}return m(),4!==f.getToken()?a(7,[4],[]):s(),!0}();case 1:return function(){d(),s();for(var e=!1;2!==f.getToken()&&16!==f.getToken();){if(5===f.getToken()){if(e||a(3,[],[]),y(","),s(),2===f.getToken()&&!C)break}else e&&a(5,[],[]);c()||a(3,[],[2,5]),e=!0}return p(),2!==f.getToken()?a(6,[2],[]):s(),!0}();case 10:return u(!0);default:return function(){switch(f.getToken()){case 11:var e=0;try{"number"!=typeof(e=JSON.parse(f.getTokenValue()))&&(a(1),e=0)}catch(e){a(1)}v(e);break;case 7:v(null);break;case 8:v(!0);break;case 9:v(!1);break;default:return!1}return s(),!0}()}}var f=n(e,!1),d=i(t.onObjectBegin),h=o(t.onObjectProperty),p=i(t.onObjectEnd),g=i(t.onArrayBegin),m=i(t.onArrayEnd),v=o(t.onLiteralValue),y=o(t.onSeparator),_=o(t.onError),b=r&&r.disallowComments,C=r&&r.disallowTrailingComma;return s(),
  16===f.getToken()||(l()?(16!==f.getToken()&&a(8,[],[]),!0):(a(3,[],[]),!1))}Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(t.ScanError||(t.ScanError={}));!function(e){e[e.Unknown=0]="Unknown",e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",
  e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.EOF=16]="EOF"}(t.SyntaxKind||(t.SyntaxKind={})),t.createScanner=n;var u;!function(e){e[e.nullCharacter=0]="nullCharacter",e[e.maxAsciiCharacter=127]="maxAsciiCharacter",e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.lineSeparator=8232]="lineSeparator",e[e.paragraphSeparator=8233]="paragraphSeparator",e[e.nextLine=133]="nextLine",e[e.space=32]="space",e[e.nonBreakingSpace=160]="nonBreakingSpace",e[e.enQuad=8192]="enQuad",e[e.emQuad=8193]="emQuad",e[e.enSpace=8194]="enSpace",e[e.emSpace=8195]="emSpace",e[e.threePerEmSpace=8196]="threePerEmSpace",e[e.fourPerEmSpace=8197]="fourPerEmSpace",e[e.sixPerEmSpace=8198]="sixPerEmSpace",e[e.figureSpace=8199]="figureSpace",e[e.punctuationSpace=8200]="punctuationSpace",e[e.thinSpace=8201]="thinSpace",e[e.hairSpace=8202]="hairSpace",e[e.zeroWidthSpace=8203]="zeroWidthSpace",e[e.narrowNoBreakSpace=8239]="narrowNoBreakSpace",
  e[e.ideographicSpace=12288]="ideographicSpace",e[e.mathematicalSpace=8287]="mathematicalSpace",e[e.ogham=5760]="ogham",e[e._=95]="_",e[e.$=36]="$",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",
  e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.ampersand=38]="ampersand",e[e.asterisk=42]="asterisk",e[e.at=64]="at",e[e.backslash=92]="backslash",e[e.bar=124]="bar",e[e.caret=94]="caret",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.closeParen=41]="closeParen",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.equals=61]="equals",e[e.exclamation=33]="exclamation",e[e.greaterThan=62]="greaterThan",e[e.lessThan=60]="lessThan",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.openParen=40]="openParen",e[e.percent=37]="percent",e[e.plus=43]="plus",e[e.question=63]="question",e[e.semicolon=59]="semicolon",e[e.singleQuote=39]="singleQuote",e[e.slash=47]="slash",e[e.tilde=126]="tilde",e[e.backspace=8]="backspace",e[e.formFeed=12]="formFeed",e[e.byteOrderMark=65279]="byteOrderMark",e[e.tab=9]="tab",e[e.verticalTab=11]="verticalTab"}(u||(u={}));!function(e){e[e.InvalidSymbol=0]="InvalidSymbol",
  e[e.InvalidNumberFormat=1]="InvalidNumberFormat",e[e.PropertyNameExpected=2]="PropertyNameExpected",e[e.ValueExpected=3]="ValueExpected",e[e.ColonExpected=4]="ColonExpected",e[e.CommaExpected=5]="CommaExpected",e[e.CloseBraceExpected=6]="CloseBraceExpected",e[e.CloseBracketExpected=7]="CloseBracketExpected",e[e.EndOfFileExpected=8]="EndOfFileExpected"}(t.ParseErrorCode||(t.ParseErrorCode={})),t.parse=function(e,t,n){function r(e){Array.isArray(o)?o.push(e):i&&(o[i]=e)}void 0===t&&(t=[]);var i=null,o=[],s=[];return a(e,{onObjectBegin:function(){var e={};r(e),s.push(o),o=e,i=null},onObjectProperty:function(e){i=e},onObjectEnd:function(){o=s.pop()},onArrayBegin:function(){var e=[];r(e),s.push(o),o=e,i=null},onArrayEnd:function(){o=s.pop()},onLiteralValue:r,onError:function(e){t.push({error:e})}},n),o[0]},t.parseTree=function(e,t,n){function r(e){"property"===o.type&&(o.length=e-o.offset,o=o.parent)}function i(e){return o.children.push(e),e}void 0===t&&(t=[]);var o={type:"array",offset:-1,length:-1,children:[]}
  ;a(e,{onObjectBegin:function(e){o=i({type:"object",offset:e,length:-1,parent:o,children:[]})},onObjectProperty:function(e,t,n){(o=i({type:"property",offset:t,length:-1,parent:o,children:[]})).children.push({type:"string",value:e,offset:t,length:n,parent:o})},onObjectEnd:function(e,t){o.length=e+t-o.offset,o=o.parent,r(e+t)},onArrayBegin:function(e,t){o=i({type:"array",offset:e,length:-1,parent:o,children:[]})},onArrayEnd:function(e,t){o.length=e+t-o.offset,o=o.parent,r(e+t)},onLiteralValue:function(e,t,n){i({type:function(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return"null"}}(e),offset:t,length:n,parent:o,value:e}),r(t+n)},onSeparator:function(e,t,n){"property"===o.type&&(":"===e?o.columnOffset=t:","===e&&r(t))},onError:function(e){t.push({error:e})}},n);var s=o.children[0];return s&&delete s.parent,s},t.findNodeAtLocation=function(e,t){if(e){for(var n=e,r=0,i=t;r<i.length;r++){var o=i[r];if("string"==typeof o){
  if("object"!==n.type)return;for(var s=!1,a=0,u=n.children;a<u.length;a++){var c=u[a];if(c.children[0].value===o){n=c.children[1],s=!0;break}}if(!s)return}else{var l=o;if("array"!==n.type||l<0||l>=n.children.length)return;n=n.children[l]}}return n}},t.getNodeValue=s,t.visit=a}),define(e[6],t([0,1,58]),function(e,t,n){"use strict";function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Array.isArray(e)?(e.forEach(function(e){return e&&e.dispose()}),[]):0!==t.length?(r(e),r(t),[]):e?(e.dispose(),e):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.isDisposable=function(e){return"function"==typeof e.dispose&&0===e.dispose.length},t.dispose=r,t.combinedDisposable=function(e){return{dispose:function(){return r(e)}}},t.toDisposable=function(e){return{dispose:function(){e()}}};var i=function(){function e(){this._toDispose=[]}return Object.defineProperty(e.prototype,"toDispose",{get:function(){return this._toDispose},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){
  this._toDispose=r(this._toDispose)},e.prototype._register=function(e){return this._toDispose.push(e),e},e.None=Object.freeze({dispose:function(){}}),e}();t.Disposable=i;var o=function(){function e(){this.references=Object.create(null)}return e.prototype.acquire=function(e){var t=this,r=this.references[e];r||(r=this.references[e]={counter:0,object:this.createReferencedObject(e)});var i=r.object,o=n.once(function(){0==--r.counter&&(t.destroyReferencedObject(r.object),delete t.references[e])});return r.counter++,{object:i,dispose:o}},e}();t.ReferenceCollection=o;var s=function(){function e(e){this.object=e}return e.prototype.dispose=function(){},e}();t.ImmortalReference=s}),define(e[33],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){return function(e){this.element=e}}(),r=function(){function e(){}return e.prototype.isEmpty=function(){return!this._first},e.prototype.clear=function(){this._first=void 0,this._last=void 0},e.prototype.unshift=function(e){
  return this.insert(e,!1)},e.prototype.push=function(e){return this.insert(e,!0)},e.prototype.insert=function(e,t){var r=this,i=new n(e);if(this._first)if(t){var o=this._last;this._last=i,i.prev=o,o.next=i}else{var s=this._first;this._first=i,i.next=s,s.prev=i}else this._first=i,this._last=i;return function(){for(var e=r._first;e instanceof n;e=e.next)if(e===i){if(e.prev&&e.next){var t=e.prev;t.next=e.next,e.next.prev=t}else e.prev||e.next?e.next?e.prev||(r._first=r._first.next,r._first.prev=void 0):(r._last=r._last.prev,r._last.next=void 0):(r._first=void 0,r._last=void 0);break}}},e.prototype.iterator=function(){var e={done:void 0,value:void 0},t=this._first;return{next:function(){return t?(e.done=!1,e.value=t.element,t=t.next):(e.done=!0,e.value=void 0),e}}},e.prototype.toArray=function(){for(var e=[],t=this._first;t instanceof n;t=t.next)e.push(t.element);return e},e}();t.LinkedList=r}),define(e[24],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){
  e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data"}(t.Schemas||(t.Schemas={}))}),define(e[93],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clamp=function(e,t,n){return Math.min(Math.max(e,t),n)},t.rot=function(e,t){return(t+e%t)%t};var n=function(){function e(){this._next=0}return e.prototype.getNext=function(){return this._next++},e}();t.Counter=n}),define(e[8],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=!1,r=!1,i=!1,o=!1,s=!1,a=void 0,u=void 0,c=void 0;if(t.LANGUAGE_DEFAULT="en","object"==typeof process&&"function"==typeof process.nextTick&&"string"==typeof process.platform){n="win32"===process.platform,r="darwin"===process.platform,i="linux"===process.platform,a=t.LANGUAGE_DEFAULT,u=t.LANGUAGE_DEFAULT;var l=process.env.VSCODE_NLS_CONFIG
  ;if(l)try{var f=JSON.parse(l),d=f.availableLanguages["*"];a=f.locale,u=d||t.LANGUAGE_DEFAULT,c=f._translationsConfigFile}catch(e){}o=!0}else if("object"==typeof navigator){var h=navigator.userAgent;n=h.indexOf("Windows")>=0,r=h.indexOf("Macintosh")>=0,i=h.indexOf("Linux")>=0,s=!0,u=a=navigator.language}!function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"}(t.Platform||(t.Platform={})),t.PlatformToString=function(e){switch(e){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}};var p=0;o&&(r?p=1:n?p=3:i&&(p=2)),t.isWindows=n,t.isMacintosh=r,t.isLinux=i,t.isNative=o,t.isWeb=s,t.platform=p,t.isRootUser=function(){return o&&!n&&0===process.getuid()},t.language=u,t.locale=a,t.translationsConfigFile=c;var g="object"==typeof self?self:"object"==typeof global?global:{};t.globals=g;var m=null;t.setImmediate=function(e){
  return null===m&&(m=t.globals.setImmediate?t.globals.setImmediate.bind(t.globals):"undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):t.globals.setTimeout.bind(t.globals)),m(e)};!function(e){e[e.Windows=1]="Windows",e[e.Macintosh=2]="Macintosh",e[e.Linux=3]="Linux"}(t.OperatingSystem||(t.OperatingSystem={})),t.OS=r?2:n?1:3;!function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"}(t.AccessibilitySupport||(t.AccessibilitySupport={}))}),define(e[56],t([0,1,8]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n.globals.performance&&"function"==typeof n.globals.performance.now,i=function(){function e(e){this._highResolution=r&&e,this._startTime=this._now(),this._stopTime=-1}return e.create=function(t){return void 0===t&&(t=!0),new e(t)},e.prototype.stop=function(){this._stopTime=this._now()},e.prototype.elapsed=function(){
  return-1!==this._stopTime?this._stopTime-this._startTime:this._now()-this._startTime},e.prototype._now=function(){return this._highResolution?n.globals.performance.now():(new Date).getTime()},e}();t.StopWatch=i}),define(e[9],t([0,1]),function(e,t){"use strict";function n(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function r(e,t){if(!e||!t)return e;var n=t.length;if(0===n||0===e.length)return e;for(var r=0;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function i(e,t){if(!e||!t)return e;var n=t.length,r=e.length;if(0===n||0===r)return e;for(var i=r,o=-1;;){if(-1===(o=e.lastIndexOf(t,i-1))||o+n!==i)break;if(0===o)return"";i=o}return e.substring(0,i)}function o(e,t){return e<t?-1:e>t?1:0}function s(e){return e>=97&&e<=122}function a(e){return e>=65&&e<=90}function u(e){return s(e)||a(e)}function c(e,t,n){if(void 0===n&&(n=e.length),"string"!=typeof e||"string"!=typeof t)return!1;for(var r=0;r<n;r++){var i=e.charCodeAt(r),o=t.charCodeAt(r);if(i!==o)if(u(i)&&u(o)){var s=Math.abs(i-o)
  ;if(0!==s&&32!==s)return!1}else if(String.fromCharCode(i).toLowerCase()!==String.fromCharCode(o).toLowerCase())return!1}return!0}function l(e,t,n,r,i,o){for(;t<n&&i<o;){if(e[t]!==r[i])return!1;t+=1,i+=1}return!0}function f(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function d(e){return e&&e.length>0&&65279===e.charCodeAt(0)}Object.defineProperty(t,"__esModule",{value:!0}),t.empty="",t.isFalsyOrWhitespace=function(e){return!e||"string"!=typeof e||0===e.trim().length},t.pad=function(e,t,n){void 0===n&&(n="0");for(var r=""+e,i=[r],o=r.length;o<t;o++)i.push(n);return i.reverse().join("")};var h=/{(\d+)}/g;t.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return 0===t.length?e:e.replace(h,function(e,n){var r=parseInt(n,10);return isNaN(r)||r<0||r>=t.length?e:t[r]})},t.escape=function(e){return e.replace(/[<|>|&]/g,function(e){switch(e){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return e}})},t.escapeRegExpCharacters=n,
  t.trim=function(e,t){return void 0===t&&(t=" "),i(r(e,t),t)},t.ltrim=r,t.rtrim=i,t.convertSimple2RegExpPattern=function(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")},t.stripWildcards=function(e){return e.replace(/\*/g,"")},t.startsWith=function(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},t.endsWith=function(e,t){var n=e.length-t.length;return n>0?e.indexOf(t,n)===n:0===n&&e===t},t.createRegExp=function(e,t,r){if(void 0===r&&(r={}),!e)throw new Error("Cannot create regex from empty string");t||(e=n(e)),r.wholeWord&&(/\B/.test(e.charAt(0))||(e="\\b"+e),/\B/.test(e.charAt(e.length-1))||(e+="\\b"));var i="";return r.global&&(i+="g"),r.matchCase||(i+="i"),r.multiline&&(i+="m"),new RegExp(e,i)},t.regExpLeadsToEndlessLoop=function(e){return"^"!==e.source&&"^$"!==e.source&&"$"!==e.source&&"^\\s*$"!==e.source&&e.exec("")&&0===e.lastIndex},t.regExpContainsBackreference=function(e){
  return!!e.match(/([^\\]|^)(\\\\)*\\\d+/)},t.firstNonWhitespaceIndex=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},t.getLeadingWhitespace=function(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)},t.lastNonWhitespaceIndex=function(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},t.compare=o,t.compareIgnoreCase=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e.charCodeAt(r),u=t.charCodeAt(r);if(i!==u){a(i)&&(i+=32),a(u)&&(u+=32);var c=i-u;if(0!==c)return s(i)&&s(u)?c:o(e.toLowerCase(),t.toLowerCase())}}return e.length<t.length?-1:e.length>t.length?1:0},t.isLowerAsciiLetter=s,t.isUpperAsciiLetter=a,t.equalsIgnoreCase=function(e,t){return(e?e.length:0)===(t?t.length:0)&&c(e,t)},t.startsWithIgnoreCase=function(e,t){var n=t.length;return!(t.length>e.length)&&c(e,t,n)},
  t.commonPrefixLength=function(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},t.commonSuffixLength=function(e,t){var n,r=Math.min(e.length,t.length),i=e.length-1,o=t.length-1;for(n=0;n<r;n++)if(e.charCodeAt(i-n)!==t.charCodeAt(o-n))return n;return r},t.overlap=function(e,t){var n=e.length,r=t.length,i=n-r;if(0===i)return e===t?n:0;for(i<0&&(r+=i,i=0);i<n&&r>0;){if(l(e,i,n,t,0,r))return r;r-=1,i+=1}return 0},t.isHighSurrogate=function(e){return 55296<=e&&e<=56319},t.isLowSurrogate=function(e){return 56320<=e&&e<=57343}
  ;var p=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;t.containsRTL=function(e){return p.test(e)};var g=/(?:[\u231A\u231B\u23F0\u23F3\u2600-\u27BF\u2B50\u2B55]|\uD83C[\uDDE6-\uDDFF\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F\uDE80-\uDEF8]|\uD83E[\uDD00-\uDDE6])/;t.containsEmoji=function(e){return g.test(e)};var m=/^[\t\n\r\x20-\x7E]*$/;t.isBasicASCII=function(e){return m.test(e)},t.containsFullWidthCharacter=function(e){for(var t=0,n=e.length;t<n;t++)if(f(e.charCodeAt(t)))return!0;return!1},t.isFullWidthCharacter=f,t.lcut=function(e,n){if(e.length<n)return e
  ;for(var r=/\b/g,i=0;r.test(e)&&!(e.length-r.lastIndex<n);)i=r.lastIndex,r.lastIndex+=1;return e.substring(i).replace(/^\s/,t.empty)};var v=/\x1B\x5B[12]?K/g,y=/\x1b\[\d+m/g,_=/\x1b\[0?m/g;t.removeAnsiEscapeCodes=function(e){return e&&(e=(e=(e=e.replace(v,"")).replace(y,"")).replace(_,"")),e},t.UTF8_BOM_CHARACTER=String.fromCharCode(65279),t.startsWithUTF8BOM=d,t.stripUTF8BOM=function(e){return d(e)?e.substr(1):e},t.safeBtoa=function(e){return btoa(encodeURIComponent(e))},t.repeat=function(e,t){for(var n="",r=0;r<t;r++)n+=e;return n},t.fuzzyContains=function(e,t){if(!e||!t)return!1;if(e.length<t.length)return!1;for(var n=t.length,r=e.toLowerCase(),i=0,o=-1;i<n;){var s=r.indexOf(t[i],o+1);if(s<0)return!1;o=s,i++}return!0},t.containsUppercaseCharacter=function(e,t){return void 0===t&&(t=!1),!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)},t.uppercaseFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}}),define(e[87],t([0,1,9]),function(e,t,n){"use strict"
  ;Object.defineProperty(t,"__esModule",{value:!0}),t.toLocalISOString=function(e){return e.getFullYear()+"-"+n.pad(e.getMonth()+1,2)+"-"+n.pad(e.getDate(),2)+"T"+n.pad(e.getHours(),2)+":"+n.pad(e.getMinutes(),2)+":"+n.pad(e.getSeconds(),2)+"."+(e.getMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}}),define(e[19],t([0,1,8,9]),function(e,t,n,r){"use strict";function i(e,r){void 0===r&&(r=t.nativeSep);var o=~e.lastIndexOf("/")||~e.lastIndexOf("\\");if(0===o)return".";if(0==~o)return e[0];if(~o==e.length-1)return i(e.substring(0,e.length-1));var s=e.substring(0,~o);return n.isWindows&&":"===s[s.length-1]&&(s+=r),s}function o(e){var t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return 0===t?e:~t==e.length-1?o(e.substring(0,e.length-1)):e.substr(1+~t)}function s(e,t){if(null===e||void 0===e)return e;var r=e.length;if(0===r)return".";var i=n.isWindows&&t;if(function(e,t){return t?!d.test(e):!f.test(e)}(e,i))return e
  ;for(var o=i?"\\":"/",s=u(e,o),c=s.length,l=!1,h="",p=s.length;p<=r;p++)if(p===r||47===e.charCodeAt(p)||92===e.charCodeAt(p)){if(a(e,c,p,"..")){var g=h.lastIndexOf(o),m=h.slice(g+1);(s||m.length>0)&&".."!==m&&(h=-1===g?"":h.slice(0,g),l=!0)}else a(e,c,p,".")&&(s||h||p<r-1)&&(l=!0);if(!l){var v=e.slice(c,p);""!==h&&h[h.length-1]!==o&&(h+=o),h+=v}c=p+1,l=!1}return s+h}function a(e,t,n,r){return t+r.length===n&&e.indexOf(r,t)===t}function u(e,t){if(void 0===t&&(t="/"),!e)return"";var n=e.length,r=e.charCodeAt(0);if(47===r||92===r){if((47===(r=e.charCodeAt(1))||92===r)&&47!==(r=e.charCodeAt(2))&&92!==r){for(var i=3,o=i;i<n&&(47!==(r=e.charCodeAt(i))&&92!==r);i++);if(r=e.charCodeAt(i+1),o!==i&&47!==r&&92!==r)for(i+=1;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 s=e.indexOf("://")
  ;if(-1!==s)for(s+=3;s<n;s++)if(47===(r=e.charCodeAt(s))||92===r)return e.slice(0,s+1);return""}function c(e){if(!e)return!1;var t=e.charCodeAt(0);if(47===t||92===t)return!0;if((t>=65&&t<=90||t>=97&&t<=122)&&e.length>2&&58===e.charCodeAt(1)){var n=e.charCodeAt(2);if(47===n||92===n)return!0}return!1}function l(e){return e&&47===e.charCodeAt(0)}Object.defineProperty(t,"__esModule",{value:!0}),t.sep="/",t.nativeSep=n.isWindows?"\\":"/",t.dirname=i,t.basename=o,t.extname=function(e){var t=~(e=o(e)).lastIndexOf(".");return t?e.substring(~t):""};var f=/(\/\.\.?\/)|(\/\.\.?)$|^(\.\.?\/)|(\/\/+)|(\\)/,d=/(\\\.\.?\\)|(\\\.\.?)$|^(\.\.?\\)|(\\\\+)|(\/)/;t.normalize=s,t.getRoot=u,t.join=function(){for(var e="",n=0;n<arguments.length;n++){var r=arguments[n];if(n>0){var i=e.charCodeAt(e.length-1);if(47!==i&&92!==i){var o=r.charCodeAt(0);47!==o&&92!==o&&(e+=t.sep)}}e+=r}return s(e)},t.isUNC=function(e){if(!n.isWindows)return!1;if(!e||e.length<5)return!1;var t=e.charCodeAt(0);if(92!==t)return!1
  ;if(92!==(t=e.charCodeAt(1)))return!1;for(var r=2,i=r;r<e.length&&92!==(t=e.charCodeAt(r));r++);return i!==r&&(t=e.charCodeAt(r+1),!isNaN(t)&&92!==t)};var h=n.isWindows?/[\\/:\*\?"<>\|]/g:/[\\/]/g,p=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;t.isValidBasename=function(e){return!(!e||0===e.length||/^\s+$/.test(e)||(h.lastIndex=0,h.test(e)||n.isWindows&&p.test(e)||"."===e||".."===e||n.isWindows&&"."===e[e.length-1]||n.isWindows&&e.length!==e.trim().length))},t.isEqual=function(e,t,n){var i=e===t;return!n||i?i:!(!e||!t)&&r.equalsIgnoreCase(e,t)},t.isEqualOrParent=function(e,n,i,o){if(void 0===o&&(o=t.nativeSep),e===n)return!0;if(!e||!n)return!1;if(n.length>e.length)return!1;if(i){if(!r.startsWithIgnoreCase(e,n))return!1;if(n.length===e.length)return!0;var s=n.length;return n.charAt(n.length-1)===o&&s--,e.charAt(s)===o}return n.charAt(n.length-1)!==o&&(n+=o),0===e.indexOf(n)},t.isAbsolute=function(e){return n.isWindows?c(e):l(e)},t.isAbsolute_win32=c,t.isAbsolute_posix=l}),
  define(e[55],t([0,1,9,19]),function(e,t,n,r){"use strict";function i(e,t,n){if(void 0===n&&(n=!1),l){var r=e||"",i=t||"",s=l.compare(r,i);return f&&0===s&&r!==i?r<i?-1:1:s}return o(e,t,n)}function o(e,t,n){void 0===n&&(n=!1),n||(e=e&&e.toLowerCase(),t=t&&t.toLowerCase());var r=a(e),i=r[0],o=r[1],s=a(t),u=s[0],c=s[1];return i!==u?i<u?-1:1:o===c?0:o<c?-1:1}function s(e,t){if(l){var n=a(e),r=n[0],i=n[1],o=a(t),s=o[0],u=o[1],c=l.compare(i,u);if(0===c){if(f&&i!==u)return i<u?-1:1;if(c=l.compare(r,s),f&&0===c&&r!==s)return r<s?-1:1}return c}return function(e,t){var n=a(e&&e.toLowerCase()),r=n[0],i=n[1],o=a(t&&t.toLowerCase()),s=o[0],u=o[1];if(i!==u)return i<u?-1:1;if(r===s)return 0;return r<s?-1:1}(e,t)}function a(e){var t=e?d.exec(e):[];return[t&&t[1]||"",t&&t[3]||""]}function u(e,t,n){return void 0===n&&(n=!1),n||(e=e&&e.toLowerCase(),t=t&&t.toLowerCase()),e===t?0:e<t?-1:1}function c(e,t,r){var i=e.toLowerCase(),o=t.toLowerCase(),s=n.startsWith(i,r),a=n.startsWith(o,r);if(s!==a)return s?-1:1;if(s&&a){
  if(i.length<o.length)return-1;if(i.length>o.length)return 1}return 0}Object.defineProperty(t,"__esModule",{value:!0});var l,f;t.setFileNameComparer=function(e){l=e,f=e.resolvedOptions().numeric},t.compareFileNames=i;var d=/^(.*?)(\.([^.]*))?$/;t.noIntlCompareFileNames=o,t.compareFileExtensions=s,t.comparePaths=function(e,t,n){void 0===n&&(n=!1);for(var o,s,a=e.split(r.nativeSep),c=t.split(r.nativeSep),l=a.length-1,f=c.length-1,d=0;;d++){if(o=l===d,s=f===d,o&&s)return i(a[d],c[d],n);if(o)return-1;if(s)return 1;var h=u(a[d],c[d],n);if(0!==h)return h}},t.compareAnything=function(e,t,r){var o=e.toLowerCase(),s=t.toLowerCase(),a=c(e,t,r);if(a)return a;var u=n.endsWith(o,r);if(u!==n.endsWith(s,r))return u?-1:1;var l=i(o,s);return 0!==l?l:o.localeCompare(s)},t.compareByPrefix=c}),define(e[15],t([0,1]),function(e,t){"use strict";function n(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==c.number||e.constructor!==Array)}function r(e){return typeof e===c.string||e instanceof String}function i(e){
  return!(typeof e!==c.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function o(e){return typeof e===c.undefined}function s(e){return o(e)||null===e}function a(e){return typeof e===c.function}function u(e,t){if(r(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(a(t)){if(e instanceof t)return;if(!s(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")}}Object.defineProperty(t,"__esModule",{value:!0});var c={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};t.isArray=n,t.isString=r,t.isStringArray=function(e){return n(e)&&e.every(function(e){return r(e)})},t.isObject=i,t.isNumber=function(e){return(typeof e===c.number||e instanceof Number)&&!isNaN(e)},t.isBoolean=function(e){return!0===e||!1===e},t.isUndefined=o,
  t.isUndefinedOrNull=s;var l=Object.prototype.hasOwnProperty;t.isEmptyObject=function(e){if(!i(e))return!1;for(var t in e)if(l.call(e,t))return!1;return!0},t.isFunction=a,t.areFunctions=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e&&e.length>0&&e.every(a)},t.validateConstraints=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)u(e[r],t[r])},t.validateConstraint=u,t.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Object.create(e.prototype);return e.apply(r,t),r}}),define(e[22],t([0,1,15]),function(e,t,n){"use strict";function r(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(n){e[n]&&"object"==typeof e[n]?t[n]=r(e[n]):t[n]=e[n]}),t}function i(e,t,r){if(n.isUndefinedOrNull(e))return e;var o=t(e);if(void 0!==o)return o;if(n.isArray(e)){for(var s=[],a=0;a<e.length;a++)s.push(i(e[a],t,r));return s}if(n.isObject(e)){
  if(r.indexOf(e)>=0)throw new Error("Cannot clone recursive data-structure");r.push(e);var c={};for(var l in e)u.call(e,l)&&(c[l]=i(e[l],t,r));return r.pop(),c}return e}function o(e,t,r){return void 0===r&&(r=!0),n.isObject(e)?(n.isObject(t)&&Object.keys(t).forEach(function(i){i in e?r&&(n.isObject(e[i])&&n.isObject(t[i])?o(e[i],t[i],r):e[i]=t[i]):e[i]=t[i]}),e):t}function s(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,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!s(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);if(o.sort(),!s(i,o))return!1;for(n=0;n<i.length;n++)if(!s(e[i[n]],t[i[n]]))return!1}return!0}function a(e){for(var t={},n=0;n<e.length;++n)t[e[n]]=!0;return t}Object.defineProperty(t,"__esModule",{value:!0}),t.deepClone=r,t.deepFreeze=function(e){
  if(!e||"object"!=typeof e)return e;for(var t=[e];t.length>0;){var n=t.shift();Object.freeze(n);for(var r in n)if(u.call(n,r)){var i=n[r];"object"!=typeof i||Object.isFrozen(i)||t.push(i)}}return e};var u=Object.prototype.hasOwnProperty;t.cloneAndChange=function(e,t){return i(e,t,[])},t.mixin=o,t.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach(function(t){return Object.keys(t).forEach(function(n){return e[n]=t[n]})}),e},t.equals=s,t.arrayToHash=a,t.createKeywordMatcher=function(e,t){void 0===t&&(t=!1),t&&(e=e.map(function(e){return e.toLowerCase()}));var n=a(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)}},t.safeStringify=function(e){var t=[];return JSON.stringify(e,function(e,r){if(n.isObject(r)||Array.isArray(r)){if(-1!==t.indexOf(r))return"[Circular]";t.push(r)}return r})},t.getOrDefault=function(e,t,n){void 0===n&&(n=null);var r=t(e);return void 0===r?n:r},
  t.distinct=function(e,t){var n=Object.create(null);return e&&t?(Object.keys(t).forEach(function(r){var i=e[r],o=t[r];s(i,o)||(n[r]=o)}),n):n}});var n=this&&this.__extends||function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();define(e[2],t([0,1,8]),function(e,t,r){"use strict";function i(e,t){for(var n=void 0,r=-1,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)-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 s=v[o];void 0!==s?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=s):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function o(e){
  var t;return 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.isWindows&&(t=t.replace(/\//g,"\\")),t}function s(e,t){var n=t?function(e){for(var t=void 0,n=0;n<e.length;n++){var r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),t+=v[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}:i,r="",o=e.scheme,s=e.authority,a=e.path,u=e.query,c=e.fragment;if(o&&(r+=o,r+=":"),(s||"file"===o)&&(r+=h,r+=h),s){var l=s.indexOf("@");if(-1!==l){var f=s.substr(0,l);s=s.substr(l+1),-1===(l=f.indexOf(":"))?r+=n(f,!1):(r+=n(f.substr(0,l),!1),r+=":",r+=n(f.substr(l+1),!1)),r+="@"}-1===(l=(s=s.toLowerCase()).indexOf(":"))?r+=n(s,!1):(r+=n(s.substr(0,l),!1),r+=s.substr(l))}if(a){if(a.length>=3&&47===a.charCodeAt(0)&&58===a.charCodeAt(2)){
  (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=a.charCodeAt(0);d>=65&&d<=90&&(a=String.fromCharCode(d+32)+":"+a.substr(2))}r+=n(a,!0)}return u&&(r+="?",r+=n(u,!1)),c&&(r+="#",r+=t?c:i(c,!1)),r}Object.defineProperty(t,"__esModule",{value:!0});var a,u=/^\w[\w\d+.-]*$/,c=/^\//,l=/^\/\//,f=!0;t.setUriThrowOnMissingScheme=function(e){var t=f;return f=e,t};var d="",h="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,g=function(){function e(e,t,n,r,i){"object"==typeof e?(this.scheme=e.scheme||d,this.authority=e.authority||d,this.path=e.path||d,this.query=e.query||d,this.fragment=e.fragment||d):(this.scheme=e||d,this.authority=t||d,this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==h&&(t=h+t):t=h}return t}(this.scheme,n||d),this.query=r||d,this.fragment=i||d,function(e){if(!e.scheme){
  if(f)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&&!u.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!c.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 ("//")')}(this))}return e.isUri=function(t){return t instanceof e||!!t&&("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 o(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;return void 0===t?t=this.scheme:null===t&&(t=d),void 0===n?n=this.authority:null===n&&(n=d),void 0===r?r=this.path:null===r&&(r=d),void 0===i?i=this.query:null===i&&(i=d),void 0===o?o=this.fragment:null===o&&(o=d),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new m(t,n,r,i,o)},e.parse=function(e){var t=p.exec(e);return t?new m(t[2]||d,decodeURIComponent(t[4]||d),decodeURIComponent(t[5]||d),decodeURIComponent(t[7]||d),decodeURIComponent(t[9]||d)):new m(d,d,d,d,d)},e.file=function(e){var t=d;if(r.isWindows&&(e=e.replace(/\\/g,h)),e[0]===h&&e[1]===h){var n=e.indexOf(h,2);-1===n?(t=e.substring(2),e=h):(t=e.substring(2,n),e=e.substring(n)||h)}return new m("file",t,e,d,d)},e.from=function(e){return new m(e.scheme,e.authority,e.path,e.query,e.fragment)},
  e.prototype.toString=function(e){return void 0===e&&(e=!1),s(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);return n._fsPath=t.fsPath,n._formatted=t.external,n}return t},e}();t.URI=g;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._formatted=null,t._fsPath=null,t}return n(t,e),Object.defineProperty(t.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=o(this)),this._fsPath},enumerable:!0,configurable:!0}),t.prototype.toString=function(e){return void 0===e&&(e=!1),e?s(this,!0):(this._formatted||(this._formatted=s(this,!1)),this._formatted)},t.prototype.toJSON=function(){var e={$mid:1};return 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),e},t}(g),v=(a={},
  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)}),define(e[32],t([0,1,2]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathFromAmdModule=function(e,t){return n.URI.parse(e.toUrl(t)).fsPath}}),define(e[21],t([0,1,2]),function(e,t,r){"use strict";function i(e){var t=[];return e.forEach(function(e){return t.push(e)}),t}function o(e){var t=[];return e.forEach(function(e,n){return t.push(n)}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.values=i,t.keys=o,t.getOrSet=function(e,t,n){var r=e.get(t);return void 0===r&&(r=n,e.set(t,r)),r};var s=function(){function e(){this._value="",this._pos=0}return e.prototype.reset=function(e){return this._value=e,this._pos=0,this},e.prototype.next=function(){return this._pos+=1,this},e.prototype.hasNext=function(){return this._pos<this._value.length-1},
  e.prototype.cmp=function(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)},e.prototype.value=function(){return this._value[this._pos]},e}();t.StringIterator=s;var a=function(){function e(){}return e.prototype.reset=function(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()},e.prototype.hasNext=function(){return this._to<this._value.length},e.prototype.next=function(){this._from=this._to;for(var e=!0;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){for(var t=0,n=e.length,r=this._from;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)},e}();t.PathIterator=a;var u=function(){function e(){}return e.prototype.isEmpty=function(){return!(this.left||this.mid||this.right||this.value)},e
  }(),c=function(){function e(e){this._iter=e}return e.forPaths=function(){return new e(new a)},e.forStrings=function(){return new e(new s)},e.prototype.clear=function(){this._root=void 0},e.prototype.set=function(e,t){var n,r=this._iter.reset(e);for(this._root||(this._root=new u,this._root.segment=r.value()),n=this._root;;){var i=r.cmp(n.segment);if(i>0)n.left||(n.left=new u,n.left.segment=r.value()),n=n.left;else if(i<0)n.right||(n.right=new u,n.right.segment=r.value()),n=n.right;else{if(!r.hasNext())break;r.next(),n.mid||(n.mid=new u,n.mid.segment=r.value()),n=n.mid}}var o=n.value;return n.value=t,n.key=e,o},e.prototype.get=function(e){for(var t=this._iter.reset(e),n=this._root;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.delete=function(e){for(var t=this._iter.reset(e),n=[],r=this._root;r;){var i=t.cmp(r.segment);if(i>0)n.push([1,r]),r=r.left;else if(i<0)n.push([-1,r]),r=r.right;else{if(!t.hasNext()){
  for(r.value=void 0;n.length>0&&r.isEmpty();){var o=n.pop(),s=o[0],a=o[1];switch(s){case 1:a.left=void 0;break;case 0:a.mid=void 0;break;case-1:a.right=void 0}r=a}break}t.next(),n.push([0,r]),r=r.mid}}},e.prototype.findSubstr=function(e){for(var t,n=this._iter.reset(e),r=this._root;r;){var i=n.cmp(r.segment);if(i>0)r=r.left;else if(i<0)r=r.right;else{if(!n.hasNext())break;n.next(),t=r.value||t,r=r.mid}}return r&&r.value||t},e.prototype.findSuperstr=function(e){for(var t=this._iter.reset(e),n=this._root;n;){var r=t.cmp(n.segment);if(r>0)n=n.left;else if(r<0)n=n.right;else{if(!t.hasNext())return n.mid?this._nodeIterator(n.mid):void 0;t.next(),n=n.mid}}},e.prototype._nodeIterator=function(e){var t,n,r=this,i={done:!1,value:void 0};return{next:function(){return n||(n=[],t=0,r._forEach(e,function(e){return n.push(e)})),t>=n.length?(i.done=!0,i.value=void 0):(i.done=!1,i.value=n[t++]),i}}},e.prototype.forEach=function(e){this._forEach(this._root,e)},e.prototype._forEach=function(e,t){e&&(this._forEach(e.left,t),
  e.value&&t(e.value,e.key),this._forEach(e.mid,t),this._forEach(e.right,t))},e}();t.TernarySearchTree=c;var l=function(){function e(){this.map=new Map,this.ignoreCase=!1}return 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.has=function(e){return this.map.has(this.toKey(e))},Object.defineProperty(e.prototype,"size",{get:function(){return this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e.prototype.delete=function(e){return this.map.delete(this.toKey(e))},e.prototype.forEach=function(e){this.map.forEach(e)},e.prototype.values=function(){return i(this.map)},e.prototype.toKey=function(e){var t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t},e.prototype.keys=function(){return o(this.map).map(r.URI.parse)},e.prototype.clone=function(){var t=new e;return this.map.forEach(function(e,n){return t.map.set(n,e)}),t},e}();t.ResourceMap=l;!function(e){e[e.None=0]="None",
  e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"}(t.Touch||(t.Touch={}));var f=function(){function e(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}return e.prototype.clear=function(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0},e.prototype.isEmpty=function(){return!this._head&&!this._tail},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!0,configurable:!0}),e.prototype.has=function(e){return this._map.has(e)},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),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{switch(r={key:e,value:t,next:void 0,previous:void 0},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.delete=function(e){return!!this.remove(e)},e.prototype.remove=function(e){var t=this._map.get(e)
  ;if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value},e.prototype.shift=function(){if(this._head||this._tail){if(!this._head||!this._tail)throw new Error("Invalid list");var e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}},e.prototype.forEach=function(e,t){for(var n=this._head;n;)t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),n=n.next},e.prototype.values=function(){for(var e=[],t=this._head;t;)e.push(t.value),t=t.next;return e},e.prototype.keys=function(){for(var e=[],t=this._head;t;)e.push(t.key),t=t.next;return e},e.prototype.trimOld=function(e){if(!(e>=this.size))if(0!==e){for(var t=this._head,n=this.size;t&&n>e;)this._map.delete(t.key),t=t.next,n--;this._head=t,this._size=n,t.previous=void 0}else this.clear()},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.removeItem=function(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head)this._head=e.next;else if(e===this._tail)this._tail=e.previous;else{var t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}},e.prototype.touch=function(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;var n=e.next,r=e.previous;e===this._tail?(r.next=void 0,this._tail=r):(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,r=e.previous;e===this._head?(n.previous=void 0,this._head=n):(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=[];return this.forEach(function(t,n){
  e.push([n,t])}),e},e.prototype.fromJSON=function(e){this.clear();for(var t=0,n=e;t<n.length;t++){var r=n[t],i=r[0],o=r[1];this.set(i,o)}},e}();t.LinkedMap=f;var d=function(e){function t(t,n){void 0===n&&(n=1);var r=e.call(this)||this;return r._limit=t,r._ratio=Math.min(Math.max(0,n),1),r}return n(t,e),Object.defineProperty(t.prototype,"limit",{get:function(){return this._limit},set:function(e){this._limit=e,this.checkTrim()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ratio",{get:function(){return this._ratio},set:function(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return e.prototype.get.call(this,t,2)},t.prototype.peek=function(t){return e.prototype.get.call(this,t,0)},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))},t}(f);t.LRUCache=d}),
  define(e[97],t([0,1,21,9]),function(e,t,n,r){"use strict";function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r](t,n);if(o)return o}return null}}function o(e,t,n){if(!n||n.length<t.length)return null;return(e?r.startsWithIgnoreCase(n,t):0===n.indexOf(t))?t.length>0?[{start:0,end:t.length}]:[]:null}function s(e,t){var n=t.toLowerCase().indexOf(e.toLowerCase());return-1===n?null:[{start:n,end:n+e.length}]}function a(e,t){return u(e.toLowerCase(),t.toLowerCase(),0,0)}function u(e,t,n,r){if(n===e.length)return[];if(r===t.length)return null;if(e[n]===t[r]){var i=null;return(i=u(e,t,n+1,r+1))?p({start:r,end:r+1},i):null}return u(e,t,n,r+1)}function c(e){return 97<=e&&e<=122}function l(e){return 65<=e&&e<=90}function f(e){return 48<=e&&e<=57}function d(e){return 32===e||9===e||10===e||13===e}function h(e){return c(e)||l(e)||f(e)}function p(e,t){return 0===t.length?t=[e]:e.end===t[0].start?t[0].start=e.start:t.unshift(e),t}
  function g(e,t){for(var n=t;n<e.length;n++){var r=e.charCodeAt(n);if(l(r)||f(r)||n>0&&!h(e.charCodeAt(n-1)))return n}return e.length}function m(e,t,n,r){if(n===e.length)return[];if(r===t.length)return null;if(e[n]!==t[r].toLowerCase())return null;var i=null,o=r+1;for(i=m(e,t,n+1,r+1);!i&&(o=g(t,o))<t.length;)i=m(e,t,n+1,o),o++;return null===i?null:p({start:r,end:r+1},i)}function v(e,t){if(!t)return null;if(0===(t=t.trim()).length)return null;if(!function(e){for(var t=0,n=0,r=0,i=0,o=0;o<e.length;o++)l(r=e.charCodeAt(o))&&t++,c(r)&&n++,d(r)&&i++;return 0!==t&&0!==n||0!==i?t<=5:e.length<=30}(e))return null;if(t.length>60)return null;var n=function(e){for(var t=0,n=0,r=0,i=0,o=0,s=0;s<e.length;s++)l(o=e.charCodeAt(s))&&t++,c(o)&&n++,h(o)&&r++,f(o)&&i++;return{upperPercent:t/e.length,lowerPercent:n/e.length,alphaPercent:r/e.length,numericPercent:i/e.length}}(t);if(!function(e){var t=e.upperPercent,n=e.lowerPercent,r=e.alphaPercent,i=e.numericPercent;return n>.2&&t<.8&&r>.6&&i<.2}(n)){if(!function(e){
  var t=e.upperPercent;return 0===e.lowerPercent&&t>.6}(n))return null;t=t.toLowerCase()}var r=null,i=0;for(e=e.toLowerCase();i<t.length&&null===(r=m(e,t,0,i));)i=g(t,i+1);return r}function y(e,t,n,r,i){if(n===e.length)return[];if(r===t.length)return null;if(e[n]!==t[r])return null;var o=null,s=r+1;if(o=y(e,t,n+1,r+1,i),!i)for(;!o&&(s=_(t,s))<t.length;)o=y(e,t,n+1,s,i),s++;return null===o?null:p({start:r,end:r+1},o)}function _(e,t){for(var n=t;n<e.length;n++){if(d(e.charCodeAt(n))||n>0&&d(e.charCodeAt(n-1)))return n}return e.length}function b(){for(var e=[],t=[0],n=1;n<=100;n++)t.push(-n);for(n=0;n<=100;n++){var r=t.slice(0);r[0]=-n,e.push(r)}return e}function C(e,t,n,r,i){function o(e,t,n){for(void 0===n&&(n=" ");e.length<t;)e=n+e;return e}for(var s=" |   |"+r.split("").map(function(e){return o(e,3)}).join("|")+"\n",a=0;a<=n;a++)s+=0===a?" |":t[a-1]+"|",s+=e[a].slice(0,i+1).map(function(e){return o(e.toString(),3)}).join("|")+"\n";return s}function S(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){
  case 95:case 45:case 46:case 32:case 47:case 92:case 39:case 34:case 58:return!0;default:return!1}}function x(e,t){if(t<0||t>=e.length)return!1;switch(e.charCodeAt(t)){case 32:case 9:return!0;default:return!1}}function w(e,t,n,r){var i=e.length>100?100:e.length,o=t.length>100?100:t.length,s=0;for(void 0===n&&(n=i);s<n&&x(e,s);)s+=1;if(s===i)return[-100,[]];if(!(i>o)){for(var a=e.toLowerCase(),u=t.toLowerCase(),c=s,l=0;c<i&&l<o;)a[c]===u[l]&&(c+=1),l+=1;if(c===i){for(c=s+1;c<=i;c++)for(l=1;l<=o;l++){var f=-1,d=u[l-1];a[c-1]===d&&(f=l===c-s?e[c-1]===t[l-1]?7:5:d===t[l-1]||1!==l&&u[l-2]!==t[l-2]?S(u,l-2)||x(u,l-2)?5:1:e[c-1]===t[l-1]?7:5),O[c][l]=f;var h=I[c-1][l-1]+(f>1?1:f),p=I[c-1][l]+-1,g=I[c][l-1]+-1;g>=p?g>h?(I[c][l]=g,R[c][l]=4):g===h?(I[c][l]=g,R[c][l]=6):(I[c][l]=h,R[c][l]=2):p>h?(I[c][l]=p,R[c][l]=1):p===h?(I[c][l]=p,R[c][l]=3):(I[c][l]=h,R[c][l]=2)}if(A&&(console.log(C(I,e,i,t,o)),console.log(C(R,e,i,t,o)),console.log(C(O,e,i,t,o))),M=0,F=-100,N=s,H=r,E(i,o,i===o?1:0,new W,!1),
  0!==M)return[F,L.toArray()]}}}function E(e,t,n,r,i){if(!(M>=10||n<-25)){for(var o=0;e>N&&t>0;){var s=O[e][t],a=R[e][t];if(4===a)t-=1,i?n-=5:r.isEmpty()||(n-=1),i=!1,o=0;else{if(!(2&a))return;if(4&a&&E(e,t-1,r.isEmpty()?n:n-1,r.slice(),i),n+=s,e-=1,t-=1,r.unshift(t),i=!0,1===s){if(o+=1,e===N&&!H)return}else n+=1+o*(s-1),o=0}}M+=1,(n-=t>=3?9:3*t)>F&&(F=n,L=r)}}function P(e,t,n,r){var i=w(e,t,r);if(i&&!n)return i;if(e.length>=3)for(var o=Math.min(7,e.length-1),s=1;s<o;s++){var a=function(e,t){if(t+1>=e.length)return;var n=e[t],r=e[t+1];if(n===r)return;return e.slice(0,t)+r+n+e.slice(t+2)}(e,s);if(a){var u=w(a,t,r);u&&(u[0]-=3,(!i||u[0]>i[0])&&(i=u))}}return i}Object.defineProperty(t,"__esModule",{value:!0}),t.or=i,t.matchesStrictPrefix=o.bind(void 0,!1),t.matchesPrefix=o.bind(void 0,!0),t.matchesContiguousSubString=s,t.matchesSubString=a,t.isUpper=l,t.matchesCamelCase=v,t.matchesWords=function(e,t,n){if(void 0===n&&(n=!1),!t||0===t.length)return null;var r=null,i=0;for(e=e.toLowerCase(),
  t=t.toLowerCase();i<t.length&&null===(r=y(e,t,0,i,n));)i=_(t,i+1);return r},t.fuzzyContiguousFilter=i(t.matchesPrefix,v,s);var T=i(t.matchesPrefix,v,a),D=new n.LRUCache(1e4);t.matchesFuzzy=function(e,n,i){if(void 0===i&&(i=!1),"string"!=typeof e||"string"!=typeof n)return null;var o=D.get(e);o||(o=new RegExp(r.convertSimple2RegExpPattern(e),"i"),D.set(e,o));var s=o.exec(n);return s?[{start:s.index,end:s.index+s[0].length}]:i?T(e,n):t.fuzzyContiguousFilter(e,n)},t.anyScore=function(e,t,n){e=e.toLowerCase(),t=t.toLowerCase();for(var r=[],i=0,o=0;o<e.length;++o){var s=t.indexOf(e.charAt(o),i);s>=0&&(r.push(s),i=s+1)}return[r.length,r]},t.createMatches=function(e){var t=[];if(!e)return t;for(var n,r,i=0,o=n=Array.isArray(e[1])?e[1]:e;i<o.length;i++){var s=o[i];r&&r.end===s?r.end+=1:(r={start:s,end:s+1},t.push(r))}return t};var k,I=b(),O=b(),R=b(),A=!1;!function(e){e[e.Top=1]="Top",e[e.Diag=2]="Diag",e[e.Left=4]="Left"}(k||(k={})),t.fuzzyScore=w;var L,M=0,F=0,N=0,H=!1,W=function(){function e(){}
  return e.prototype.isEmpty=function(){return!this._data&&(!this._parent||this._parent.isEmpty())},e.prototype.unshift=function(e){this._data?this._data.unshift(e):this._data=[e]},e.prototype.slice=function(){var t=new e;return t._parent=this,t._parentLen=this._data?this._data.length:0,t},e.prototype.toArray=function(){if(!this._data)return this._parent.toArray();for(var e=[],t=this;t;)t._parent&&t._parent._data&&e.push(t._parent._data.slice(t._parent._data.length-t._parentLen)),t=t._parent;return Array.prototype.concat.apply(this._data,e)},e}();t.fuzzyScoreGracefulAggressive=function(e,t,n){return P(e,t,!0,n)},t.fuzzyScoreGraceful=function(e,t,n){return P(e,t,!1,n)}}),define(e[98],t([0,1,2]),function(e,t,n){"use strict";function r(e,t){return t instanceof RegExp?{$mid:2,source:t.source,flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")}:t}function i(e,t){if(!e||t>200)return e;if("object"==typeof e){switch(e.$mid){case 1:return n.URI.revive(e);case 2:return new RegExp(e.source,e.flags)}
  for(var r in e)Object.hasOwnProperty.call(e,r)&&(e[r]=i(e[r],t+1))}return e}Object.defineProperty(t,"__esModule",{value:!0}),t.stringify=function(e){return JSON.stringify(e,r)},t.parse=function(e){var t=JSON.parse(e);return t=i(t,0)},t.revive=i}),define(e[104],t([0,1,21]),function(e,t,n){"use strict";function r(e,n,r){if(!t.canNormalize||!e)return e;var i=r.get(e);if(i)return i;var o;return o=s.test(e)?e.normalize(n):e,r.set(e,o),o}Object.defineProperty(t,"__esModule",{value:!0}),t.canNormalize="function"==typeof"".normalize;var i=new n.LRUCache(1e4);t.normalizeNFC=function(e){return r(e,"NFC",i)};var o=new n.LRUCache(1e4);t.normalizeNFD=function(e){return r(e,"NFD",o)};var s=/[^\u0000-\u0080]/}),define(e[23],t([0,1,19,2,9,24,8]),function(e,t,n,r,i,o,s){"use strict";function a(e){return!e||e.scheme!==o.Schemas.file||!s.isLinux}function u(e,t,r){if(void 0===r&&(r=a(e)),e.scheme===t.scheme){if(e.scheme===o.Schemas.file)return n.isEqualOrParent(l(e),l(t),r);if(function(e,t,n){
  return e===t||n&&e&&t&&i.equalsIgnoreCase(e,t)}(e.authority,t.authority,r))return n.isEqualOrParent(e.path,t.path,r,"/")}return!1}function c(e){return n.basename(e.path)}function l(e){var t;return t=e.authority&&e.path.length>1&&"file"===e.scheme?"//"+e.authority+e.path:s.isWindows&&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,s.isWindows&&(t=t.replace(/\//g,"\\")),t}Object.defineProperty(t,"__esModule",{value:!0}),t.getComparisonKey=function(e){return a(e)?e.toString().toLowerCase():e.toString()},t.hasToIgnoreCase=a,t.basenameOrAuthority=function(e){return c(e)||e.authority},t.isEqualOrParent=u,t.isEqual=function(e,t,n){return void 0===n&&(n=a(e)),!(e!==t)||!(!e||!t)&&(n?i.equalsIgnoreCase(e.toString(),t.toString()):e.toString()===t.toString())},t.basename=c,t.dirname=function(e){var t=n.dirname(e.path,"/");return e.authority&&t.length&&47!==t.charCodeAt(0)?null:e.with({
  path:t})},t.joinPath=function(e,t){var i;return i=e.scheme===o.Schemas.file?r.URI.file(n.join(l(e),t)).path:n.join(e.path,t),e.with({path:i})},t.normalizePath=function(e){var t;return t=e.scheme===o.Schemas.file?r.URI.file(n.normalize(l(e))).path:n.normalize(e.path),e.with({path:t})},t.fsPath=l,t.isAbsolutePath=function(e){return n.isAbsolute(e.path)},t.distinctParents=function(e,t){for(var n=[],r=function(r){var i=t(e[r]);if(e.some(function(e,n){return n!==r&&u(i,t(e))}))return"continue";n.push(e[r])},i=0;i<e.length;i++)r(i);return n},t.isMalformedFileUri=function(e){if(!e.scheme||s.isWindows&&e.scheme.match(/^[a-zA-Z]$/))return r.URI.file((e.scheme?e.scheme+":":"")+e.path)}}),define(e[108],t([0,1,2,19,9,24,8,23]),function(e,t,n,r,i,o,s,a){"use strict";function u(e){return s.isWindows&&e&&":"===e[1]}function c(e){return u(e)?e.charAt(0).toUpperCase()+e.slice(1):e}function l(e,t){if(s.isWindows||!e||!t)return e;var n=f.original===t?f.normalized:void 0;return n||(n=""+i.rtrim(t,r.sep)+r.sep,f={original:t,
  normalized:n}),(s.isLinux?i.startsWith(e,n):i.startsWithIgnoreCase(e,n))&&(e="~/"+e.substr(n.length)),e}Object.defineProperty(t,"__esModule",{value:!0}),t.getPathLabel=function(e,t,f){if(!e)return null;"string"==typeof e&&(e=n.URI.file(e));var d=f?f.getWorkspaceFolder(e):null;if(d){var h=f.getWorkspace().folders.length>1,p=void 0;if(p=a.isEqual(d.uri,e,!s.isLinux)?"":r.normalize(i.ltrim(e.path.substr(d.uri.path.length),r.sep),!0),h){var g=d&&d.name?d.name:r.basename(d.uri.fsPath);p=p?g+" • "+p:g}return p}if(e.scheme!==o.Schemas.file&&e.scheme!==o.Schemas.untitled)return e.with({query:null,fragment:null}).toString(!0);if(u(e.fsPath))return r.normalize(c(e.fsPath),!0);var m=r.normalize(e.fsPath,!0);return!s.isWindows&&t&&(m=l(m,t.userHome)),m},t.getBaseLabel=function(e){if(!e)return null;"string"==typeof e&&(e=n.URI.file(e));var t=r.basename(e.path)||(e.scheme===o.Schemas.file?e.fsPath:e.path);return u(t)?c(t):t},t.normalizeDriveLetter=c;var f=Object.create(null);t.tildify=l,t.untildify=function(e,t){
  return e.replace(/^~($|\/|\\)/,t+"$1")};var d="…",h="\\\\",p="~";t.shorten=function(e){for(var t=new Array(e.length),n=!1,o=0;o<e.length;o++){var s=e[o];if(""!==s)if(s){n=!0;var a="";0===s.indexOf(h)?(a=s.substr(0,s.indexOf(h)+h.length),s=s.substr(s.indexOf(h)+h.length)):0===s.indexOf(r.nativeSep)?(a=s.substr(0,s.indexOf(r.nativeSep)+r.nativeSep.length),s=s.substr(s.indexOf(r.nativeSep)+r.nativeSep.length)):0===s.indexOf(p)&&(a=s.substr(0,s.indexOf(p)+p.length),s=s.substr(s.indexOf(p)+p.length));for(var u=s.split(r.nativeSep),c=1;n&&c<=u.length;c++)for(var l=u.length-c;n&&l>=0;l--){n=!1;for(var f=u.slice(l,l+c).join(r.nativeSep),g=0;!n&&g<e.length;g++)if(g!==o&&e[g]&&e[g].indexOf(f)>-1){var m=l+c===u.length,v=l>0&&e[g].indexOf(r.nativeSep)>-1?r.nativeSep+f:f,y=i.endsWith(e[g],v);n=!m||y}if(!n){var _="";(i.endsWith(u[0],":")||""!==a)&&(1===l&&(l=0,c++,f=u[0]+r.nativeSep+f),l>0&&(_=u[0]+r.nativeSep),_=a+_),l>0&&(_=_+d+r.nativeSep),_+=f,l+c<u.length&&(_=_+r.nativeSep+d),t[o]=_}}n&&(t[o]=s)
  }else t[o]=s;else t[o]="."+r.nativeSep}return t};var g;!function(e){e[e.TEXT=0]="TEXT",e[e.VARIABLE=1]="VARIABLE",e[e.SEPARATOR=2]="SEPARATOR"}(g||(g={})),t.template=function(e,t){void 0===t&&(t=Object.create(null));for(var n,r=[],i=!1,o="",s=0;s<e.length;s++)if("$"===(n=e[s])||i&&"{"===n)o&&r.push({value:o,type:g.TEXT}),o="",i=!0;else if("}"===n&&i){var a=t[o];if("string"==typeof a)a.length&&r.push({value:a,type:g.VARIABLE});else if(a){var u=r[r.length-1];u&&u.type===g.SEPARATOR||r.push({value:a.label,type:g.SEPARATOR})}o="",i=!1}else o+=n;return o&&!i&&r.push({value:o,type:g.TEXT}),r.filter(function(e,t){return e.type!==g.SEPARATOR||[r[t-1],r[t+1]].every(function(e){return e&&(e.type===g.VARIABLE||e.type===g.TEXT)&&e.value.length>0})}).map(function(e){return e.value}).join("")},t.mnemonicMenuLabel=function(e,t){return s.isMacintosh||t?e.replace(/\(&&\w\)|&&/g,""):e.replace(/&&/g,"&")},t.mnemonicButtonLabel=function(e){return s.isMacintosh?e.replace(/\(&&\w\)|&&/g,""):e.replace(/&&/g,s.isWindows?"&":"_")},
  t.unmnemonicLabel=function(e){return e.replace(/&/g,"&&")}}),define(e[38],t([0,1]),function(e,t){"use strict";function r(){return new s}function i(e){return a.test(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e){this._value=e}return e.prototype.asHex=function(){return this._value},e}(),s=function(e){function t(){return e.call(this,[t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),"-","4",t._randomHex(),t._randomHex(),t._randomHex(),"-",t._oneOf(t._timeHighBits),t._randomHex(),t._randomHex(),t._randomHex(),"-",t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex(),t._randomHex()].join(""))||this}return n(t,e),t._oneOf=function(e){return e[Math.floor(e.length*Math.random())]},t._randomHex=function(){return t._oneOf(t._chars)},
  t._chars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],t._timeHighBits=["8","9","a","b"],t}(o);t.v4=r;var a=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;t.isUUID=i,t.parse=function(e){if(!i(e))throw new Error("invalid uuid");return new o(e)},t.generateUuid=function(){return r().asHex()}});var r;!function(){var e=Object.create(null);e["WinJS/Core/_WinJS"]={};var t=function(t,n,r){var i={},o=!1,s=n.map(function(t){return"exports"===t?(o=!0,i):e[t]}),a=r.apply({},s);e[t]=o?i:a};t("WinJS/Core/_Global",[],function(){"use strict";return"undefined"!=typeof window?window:"undefined"!=typeof self?self:"undefined"!=typeof global?global:{}}),t("WinJS/Core/_BaseCoreUtils",["WinJS/Core/_Global"],function(e){"use strict";var t=null;return{hasWinRT:!!e.Windows,markSupportedForProcessing:function(e){return e.supportedForProcessing=!0,e},_setImmediate:function(n){
  null===t&&(t=e.setImmediate?e.setImmediate.bind(e):"undefined"!=typeof process&&"function"==typeof process.nextTick?process.nextTick.bind(process):e.setTimeout.bind(e)),t(n)}}}),t("WinJS/Core/_WriteProfilerMark",["WinJS/Core/_Global"],function(e){"use strict";return e.msWriteProfilerMark||function(){}}),t("WinJS/Core/_Base",["WinJS/Core/_WinJS","WinJS/Core/_Global","WinJS/Core/_BaseCoreUtils","WinJS/Core/_WriteProfilerMark"],function(e,t,n,r){"use strict";function i(e,t,n){var r,i,o,s=Object.keys(t),a=Array.isArray(e);for(i=0,o=s.length;i<o;i++){var u=s[i],c=95!==u.charCodeAt(0),l=t[u];!l||"object"!=typeof l||void 0===l.value&&"function"!=typeof l.get&&"function"!=typeof l.set?c?a?e.forEach(function(e){e[u]=l}):e[u]=l:(r=r||{})[u]={value:l,enumerable:c,configurable:!0,writable:!0}:(void 0===l.enumerable&&(l.enumerable=c),n&&l.setName&&"function"==typeof l.setName&&l.setName(n+"."+u),(r=r||{})[u]=l)}r&&(a?e.forEach(function(e){Object.defineProperties(e,r)}):Object.defineProperties(e,r))}return function(){
  function n(n,r){var i=n||{};if(r){var o=r.split(".");i===t&&"WinJS"===o[0]&&(i=e,o.splice(0,1));for(var s=0,a=o.length;s<a;s++){var u=o[s];i[u]||Object.defineProperty(i,u,{value:{},writable:!1,enumerable:!0,configurable:!0}),i=i[u]}}return i}function o(e,t,r){var o=n(e,t);return r&&i(o,r,t||"<ANONYMOUS>"),o}var s=e;s.Namespace||(s.Namespace=Object.create(Object.prototype));var a={uninitialized:1,working:2,initialized:3};Object.defineProperties(s.Namespace,{defineWithParent:{value:o,writable:!0,enumerable:!0,configurable:!0},define:{value:function(e,n){return o(t,e,n)},writable:!0,enumerable:!0,configurable:!0},_lazy:{value:function(e){var t,n,i=a.uninitialized;return{setName:function(e){t=e},get:function(){switch(i){case a.initialized:return n;case a.uninitialized:i=a.working;try{r("WinJS.Namespace._lazy:"+t+",StartTM"),n=e()}finally{r("WinJS.Namespace._lazy:"+t+",StopTM"),i=a.uninitialized}return e=null,i=a.initialized,n;case a.working:throw"Illegal: reentrancy on initialization";default:throw"Illegal"}},
  set:function(e){switch(i){case a.working:throw"Illegal: reentrancy on initialization";default:i=a.initialized,n=e}},enumerable:!0,configurable:!0}},writable:!0,enumerable:!0,configurable:!0},_moduleDefine:{value:function(e,r,o){var s=[e],a=null;return r&&(a=n(t,r),s.push(a)),i(s,o,r||"<ANONYMOUS>"),a},writable:!0,enumerable:!0,configurable:!0}})}(),function(){function t(e,t,r){return e=e||function(){},n.markSupportedForProcessing(e),t&&i(e.prototype,t),r&&i(e,r),e}e.Namespace.define("WinJS.Class",{define:t,derive:function(e,r,o,s){if(e){r=r||function(){};var a=e.prototype;return r.prototype=Object.create(a),n.markSupportedForProcessing(r),Object.defineProperty(r.prototype,"constructor",{value:r,writable:!0,configurable:!0,enumerable:!0}),o&&i(r.prototype,o),s&&i(r,s),r}return t(r,o,s)},mix:function(e){e=e||function(){};var t,n;for(t=1,n=arguments.length;t<n;t++)i(e.prototype,arguments[t]);return e}})}(),{Namespace:e.Namespace,Class:e.Class}}),t("WinJS/Core/_ErrorFromName",["WinJS/Core/_Base"],function(e){
  "use strict";var t=e.Class.derive(Error,function(e,t){this.name=e,this.message=t||e},{},{supportedForProcessing:!1});return e.Namespace.define("WinJS",{ErrorFromName:t}),t}),t("WinJS/Core/_Events",["exports","WinJS/Core/_Base"],function(e,t){"use strict";function n(e){var t="_on"+e+"state";return{get:function(){var e=this[t];return e&&e.userHandler},set:function(n){var r=this[t];n?(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):r&&(this.removeEventListener(e,r.wrapper,!1),this[t]=null)},enumerable:!0}}var r=t.Class.define(function(e,t,n){this.detail=t,this.target=n,this.timeStamp=Date.now(),this.type=e},{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}),i={_listeners:null,addEventListener:function(e,t,n){n=n||!1,this._listeners=this._listeners||{};for(var r=this._listeners[e]=this._listeners[e]||[],i=0,o=r.length;i<o;i++){var s=r[i];if(s.useCapture===n&&s.listener===t)return}r.push({listener:t,useCapture:n})},dispatchEvent:function(e,t){var n=this._listeners&&this._listeners[e];if(n){for(var i=new r(e,t,this),o=0,s=(n=n.slice(0,n.length)).length;o<s&&!i._stopImmediatePropagationCalled;o++)n[o].listener(i);return i.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 s=r[i];if(s.listener===t&&s.useCapture===n){r.splice(i,1),0===r.length&&delete this._listeners[e];break}}}};t.Namespace._moduleDefine(e,"WinJS.Utilities",{
  _createEventProperty:n,createEventProperties:function(){for(var e={},t=0,r=arguments.length;t<r;t++){var i=arguments[t];e["on"+i]=n(i)}return e},eventMixin:i})}),t("WinJS/Core/_Trace",["WinJS/Core/_Global"],function(e){"use strict";function t(e){return e}return{_traceAsyncOperationStarting:e.Debug&&e.Debug.msTraceAsyncOperationStarting&&e.Debug.msTraceAsyncOperationStarting.bind(e.Debug)||t,_traceAsyncOperationCompleted:e.Debug&&e.Debug.msTraceAsyncOperationCompleted&&e.Debug.msTraceAsyncOperationCompleted.bind(e.Debug)||t,_traceAsyncCallbackStarting:e.Debug&&e.Debug.msTraceAsyncCallbackStarting&&e.Debug.msTraceAsyncCallbackStarting.bind(e.Debug)||t,_traceAsyncCallbackCompleted:e.Debug&&e.Debug.msTraceAsyncCallbackCompleted&&e.Debug.msTraceAsyncCallbackCompleted.bind(e.Debug)||t}}),t("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){"use strict";function s(){}
  function a(e,t){var n;n=t&&"object"==typeof t&&"function"==typeof t.then?O:M,e._value=t,e._setState(n)}function u(e,t,n,r,i,o){return{exception:e,error:t,promise:n,handler:o,id:r,parent:i}}function c(e,t,n,r){var i=n._isException,o=n._errorId;return u(i?t:null,i?null:t,e,o,n,r)}function l(e,t,n){var r=n._isException,i=n._errorId;return b(e,i,r),u(r?t:null,r?null:t,e,i,n)}function f(e,t){var n=++W;return b(e,n),u(null,t,e,n)}function d(e,t){var n=++W;return b(e,n,!0),u(t,null,e,n)}function h(e,t,n,r){_(e,{c:t,e:n,p:r,asyncOpID:o._traceAsyncOperationStarting("WinJS.Promise.done")})}function p(e,t,n,r){e._value=t,v(e,t,n,r),e._setState(N)}function g(t,n){var r=t._value,i=t._listeners;if(i){t._listeners=null;var s,a;for(s=0,a=Array.isArray(i)?i.length:1;s<a;s++){var u=1===a?i:i[s],c=u.c,l=u.promise;if(o._traceAsyncOperationCompleted(u.asyncOpID,e.Debug&&e.Debug.MS_ASYNC_OP_STATUS_SUCCESS),l){o._traceAsyncCallbackStarting(u.asyncOpID);try{l._setCompleteValue(c?c(r):r)}catch(e){l._setExceptionValue(e)}finally{
  o._traceAsyncCallbackCompleted()}l._state!==O&&l._listeners&&n.push(l)}else V.prototype.done.call(t,c)}}}function m(t,n){var r=t._value,i=t._listeners;if(i){t._listeners=null;var s,a;for(s=0,a=Array.isArray(i)?i.length:1;s<a;s++){var u=1===a?i:i[s],l=u.e,f=u.promise,d=e.Debug&&(r&&r.name===P?e.Debug.MS_ASYNC_OP_STATUS_CANCELED:e.Debug.MS_ASYNC_OP_STATUS_ERROR);if(o._traceAsyncOperationCompleted(u.asyncOpID,d),f){var h=!1;try{l?(o._traceAsyncCallbackStarting(u.asyncOpID),h=!0,l.handlesOnError||v(f,r,c,t,l),f._setCompleteValue(l(r))):f._setChainedErrorValue(r,t)}catch(e){f._setExceptionValue(e)}finally{h&&o._traceAsyncCallbackCompleted()}f._state!==O&&f._listeners&&n.push(f)}else z.prototype.done.call(t,null,l)}}}function v(e,t,n,r,i){if(w._listeners[E]){if(t instanceof Error&&t.message===P)return;w.dispatchEvent(E,n(e,t,r,i))}}function y(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],s=o.p;if(s)try{s(t)}catch(e){}
  o.c||o.e||!o.promise||o.promise._progress(t)}}}function _(e,t){var n=e._listeners;n?(n=Array.isArray(n)?n:[n]).push(t):n=t,e._listeners=n}function b(e,t,n){e._isException=n||!1,e._errorId=t}function C(e,t,n,r){e._value=t,v(e,t,n,r),e._setState(H)}function S(e,t){var n;n=t&&"object"==typeof t&&"function"==typeof t.then?O:F,e._value=t,e._setState(n)}function x(e,t,n,r){var i=new U(e);return _(e,{promise:i,c:t,e:n,p:r,asyncOpID:o._traceAsyncOperationStarting("WinJS.Promise.then")}),i}e.Debug&&(e.Debug.setNonUserCodeExceptions=!0);var w=new(n.Class.mix(n.Class.define(null,{},{supportedForProcessing:!1}),i.eventMixin));w._listeners={};var E="error",P="Canceled",T=!1,D={promise:1,thenPromise:2,errorPromise:4,exceptionPromise:8,completePromise:16};D.all=D.promise|D.thenPromise|D.errorPromise|D.exceptionPromise|D.completePromise;var k,I,O,R,A,L,M,F,N,H,W=1;k={name:"created",enter:function(e){e._setState(I)},cancel:s,done:s,then:s,_completed:s,_error:s,_notify:s,_progress:s,_setCompleteValue:s,_setErrorValue:s},I={
  name:"working",enter:s,cancel:function(e){e._setState(A)},done:h,then:x,_completed:a,_error:p,_notify:s,_progress:y,_setCompleteValue:S,_setErrorValue:C},O={name:"waiting",enter:function(e){var t=e._value;if(t instanceof U&&t._state!==H&&t._state!==F)_(t,{promise:e});else{var n=function(r){t._errorId?e._chainedError(r,t):(v(e,r,c,t,n),e._error(r))};n.handlesOnError=!0,t.then(e._completed.bind(e),n,e._progress.bind(e))}},cancel:function(e){e._setState(R)},done:h,then:x,_completed:a,_error:p,_notify:s,_progress:y,_setCompleteValue:S,_setErrorValue:C},R={name:"waiting_canceled",enter:function(e){e._setState(L);var t=e._value;t.cancel&&t.cancel()},cancel:s,done:h,then:x,_completed:a,_error:p,_notify:s,_progress:y,_setCompleteValue:S,_setErrorValue:C},A={name:"canceled",enter:function(e){e._setState(L),e._cancelAction()},cancel:s,done:h,then:x,_completed:a,_error:p,_notify:s,_progress:y,_setCompleteValue:S,_setErrorValue:C},L={name:"canceling",enter:function(e){var t=new Error(P);t.name=t.message,e._value=t,
  e._setState(N)},cancel:s,done:s,then:s,_completed:s,_error:s,_notify:s,_progress:s,_setCompleteValue:s,_setErrorValue:s},M={name:"complete_notify",enter:function(e){if(e.done=V.prototype.done,e.then=V.prototype.then,e._listeners)for(var t,n=[e];n.length;)(t=n.shift())._state._notify(t,n);e._setState(F)},cancel:s,done:null,then:null,_completed:s,_error:s,_notify:g,_progress:s,_setCompleteValue:s,_setErrorValue:s},F={name:"success",enter:function(e){e.done=V.prototype.done,e.then=V.prototype.then,e._cleanupAction()},cancel:s,done:null,then:null,_completed:s,_error:s,_notify:g,_progress:s,_setCompleteValue:s,_setErrorValue:s},N={name:"error_notify",enter:function(e){if(e.done=z.prototype.done,e.then=z.prototype.then,e._listeners)for(var t,n=[e];n.length;)(t=n.shift())._state._notify(t,n);e._setState(H)},cancel:s,done:null,then:null,_completed:s,_error:s,_notify:m,_progress:s,_setCompleteValue:s,_setErrorValue:s},H={name:"error",enter:function(e){e.done=z.prototype.done,e.then=z.prototype.then,e._cleanupAction()
  },cancel:s,done:null,then:null,_completed:s,_error:s,_notify:m,_progress:s,_setCompleteValue:s,_setErrorValue:s};var j,B=n.Class.define(null,{_listeners:null,_nextState:null,_state:null,_value:null,cancel:function(){this._state.cancel(this),this._run()},done:function(e,t,n){this._state.done(this,e,t,n)},then:function e(t,n,r){if(this.then===e)return this._state.then(this,t,n,r);this.then(t,n,r)},_chainedError:function(e,t){var n=this._state._error(this,e,l,t);return this._run(),n},_completed:function(e){var t=this._state._completed(this,e);return this._run(),t},_error:function(e){var t=this._state._error(this,e,f);return this._run(),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,l,t);return this._run(),n},_setExceptionValue:function(e){var t=this._state._setErrorValue(this,e,d);return this._run(),t},
  _run:function(){for(;this._nextState;)this._state=this._nextState,this._nextState=null,this._state.enter(this)}},{supportedForProcessing:!1}),U=n.Class.derive(B,function(e){T&&(!0===T||T&D.thenPromise)&&(this._stack=$._getStack()),this._creator=e,this._setState(k),this._run()},{_creator:null,_cancelAction:function(){this._creator&&this._creator.cancel()},_cleanupAction:function(){this._creator=null}},{supportedForProcessing:!1}),z=n.Class.define(function(e){T&&(!0===T||T&D.errorPromise)&&(this._stack=$._getStack()),this._value=e,v(this,e,f)},{cancel:function(){},done:function(e,t){var n=this._value;if(t)try{t.handlesOnError||v(null,n,c,this,t);var r=t(n);return void(r&&"object"==typeof r&&"function"==typeof r.done&&r.done())}catch(e){n=e}n instanceof Error&&n.message===P||$._doneHandler(n)},then:function(e,t){if(!t)return this;var n,r=this._value;try{t.handlesOnError||v(null,r,c,this,t),n=new V(t(r))}catch(e){n=e===r?this:new K(e)}return n}},{supportedForProcessing:!1}),K=n.Class.derive(z,function(e){
  T&&(!0===T||T&D.exceptionPromise)&&(this._stack=$._getStack()),this._value=e,v(this,e,d)},{},{supportedForProcessing:!1}),V=n.Class.define(function(e){if(T&&(!0===T||T&D.completePromise)&&(this._stack=$._getStack()),e&&"object"==typeof e&&"function"==typeof e.then){var t=new U(null);return t._setCompleteValue(e),t}this._value=e},{cancel:function(){},done:function(e){if(e)try{var t=e(this._value);t&&"object"==typeof t&&"function"==typeof t.done&&t.done()}catch(e){$._doneHandler(e)}},then:function(e){try{var t=e?e(this._value):this._value;return t===this._value?this:new V(t)}catch(e){return new K(e)}}},{supportedForProcessing:!1}),$=n.Class.derive(B,function(e,t){T&&(!0===T||T&D.promise)&&(this._stack=$._getStack()),this._oncancel=t,this._setState(k),this._run();try{e(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(e){e.message,e.stack;w.dispatchEvent("error",e)}},_cleanupAction:function(){this._oncancel=null}},{addEventListener:function(e,t,n){w.addEventListener(e,t,n)},any:function(e){return new $(function(t,n){var r=Object.keys(e);0===r.length&&t();var i=0;r.forEach(function(o){$.as(e[o]).then(function(){t({key:o,value:e[o]})},function(s){s instanceof Error&&s.name===P?++i===r.length&&t($.cancel):n({key:o,value:e[o]})})})},function(){Object.keys(e).forEach(function(t){var n=$.as(e[t]);"function"==typeof n.cancel&&n.cancel()})})},as:function(e){return e&&"object"==typeof e&&"function"==typeof e.then?e:new V(e)},cancel:{get:function(){return j=j||new z(new r(P))}},dispatchEvent:function(e,t){return w.dispatchEvent(e,t)},is:function(e){return e&&"object"==typeof e&&"function"==typeof e.then},join:function(e){return new $(function(t,n,r){var i=Object.keys(e),o=Array.isArray(e)?[]:{},s=Array.isArray(e)?[]:{},a=0,u=i.length,c=function(e){if(0==--u){var a=Object.keys(o).length;if(0===a)t(s);else{
  var c=0;i.forEach(function(e){var t=o[e];t instanceof Error&&t.name===P&&c++}),c===a?t($.cancel):n(o)}}else r({Key:e,Done:!0})};i.forEach(function(t){var n=e[t];void 0===n?a++:$.then(n,function(e){s[t]=e,c(t)},function(e){o[t]=e,c(t)})}),0!==(u-=a)||t(s)},function(){Object.keys(e).forEach(function(t){var n=$.as(e[t]);"function"==typeof n.cancel&&n.cancel()})})},removeEventListener:function(e,t,n){w.removeEventListener(e,t,n)},supportedForProcessing:!1,then:function(e,t,n,r){return $.as(e).then(t,n,r)},thenEach:function(e,t,n,r){var i=Array.isArray(e)?[]:{};return Object.keys(e).forEach(function(o){i[o]=$.as(e[o]).then(t,n,r)}),$.join(i)},timeout:function(n,r){var i=function(n){var r;return new $(function(i){n?r=e.setTimeout(i,n):t._setImmediate(i)},function(){r&&e.clearTimeout(r)})}(n);return r?function(e,t){var n=function(){e.cancel()};return e.then(function(){t.cancel()}),t.then(n,n),t}(i,r):i},wrap:function(e){return new V(e)},wrapError:function(e){return new z(e)},_veryExpensiveTagWithStack:{
  get:function(){return T},set:function(e){T=e}},_veryExpensiveTagWithStack_tag:D,_getStack:function(){if(e.Debug&&e.Debug.debuggerEnabled)try{throw new Error}catch(e){return e.stack}},_cancelBlocker:function(e,t){if(!$.is(e))return $.wrap(e);var n,r,i=new $(function(e,t){n=e,r=t},function(){n=null,r=null,t&&t()});return e.then(function(e){n&&n(e)},function(e){r&&r(e)}),i}});return Object.defineProperties($,i.createEventProperties(E)),$._doneHandler=function(e){t._setImmediate(function(){throw e})},{PromiseStateMachine:B,Promise:$,state_created:k}}),t("WinJS/Promise",["WinJS/Core/_Base","WinJS/Promise/_StateMachine"],function(e,t){"use strict";return e.Namespace.define("WinJS",{Promise:t.Promise}),t.Promise}),(r=e["WinJS/Core/_WinJS"]).TPromise=r.Promise,r.PPromise=r.Promise,"undefined"==typeof exports&&"function"==typeof define&&define.amd?define("vs/base/common/winjs.base",[],r):module.exports=r}(),define(e[13],t([0,1,3]),function(e,t,n){"use strict";function r(e){i(e)||t.errorHandler.onUnexpectedError(e)}
  function i(e){return e instanceof Error&&e.name===a&&e.message===a}Object.defineProperty(t,"__esModule",{value:!0});var o={};n.TPromise.addEventListener("error",function(e){var t=e.detail,n=t.id;t.parent?t.handler&&o&&delete o[n]:(o[n]=t,1===Object.keys(o).length&&setTimeout(function(){var e=o;o={},Object.keys(e).forEach(function(t){var n=e[t];n.exception?r(n.exception):n.error&&r(n.error),console.log("WARNING: Promise with no error callback:"+n.id),console.log(n),n.exception&&console.log(n.exception.stack)})},0))});var s=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)}}return e.prototype.addListener=function(e){var t=this;return this.listeners.push(e),function(){t._removeListener(e)}},e.prototype.emit=function(e){this.listeners.forEach(function(t){t(e)})},e.prototype._removeListener=function(e){this.listeners.splice(this.listeners.indexOf(e),1)},
  e.prototype.setUnexpectedErrorHandler=function(e){this.unexpectedErrorHandler=e},e.prototype.getUnexpectedErrorHandler=function(){return this.unexpectedErrorHandler},e.prototype.onUnexpectedError=function(e){this.unexpectedErrorHandler(e),this.emit(e)},e.prototype.onUnexpectedExternalError=function(e){this.unexpectedErrorHandler(e)},e}();t.ErrorHandler=s,t.errorHandler=new s,t.setUnexpectedErrorHandler=function(e){t.errorHandler.setUnexpectedErrorHandler(e)},t.onUnexpectedError=r,t.onUnexpectedExternalError=function(e){i(e)||t.errorHandler.onUnexpectedExternalError(e)},t.transformErrorForSerialization=function(e){if(e instanceof Error)return{$isError:!0,name:e.name,message:e.message,stack:e.stacktrace||e.stack};return e};var a="Canceled";t.isPromiseCanceledError=i,t.canceled=function(){var e=new Error(a);return e.name=e.message,e},t.illegalArgument=function(e){return e?new Error("Illegal argument: "+e):new Error("Illegal argument")},t.illegalState=function(e){
  return e?new Error("Illegal state: "+e):new Error("Illegal state")},t.readonly=function(e){return e?new Error("readonly property '"+e+" cannot be changed'"):new Error("readonly property cannot be changed")},t.disposed=function(e){var t=new Error(e+" has been disposed");return t.name="DISPOSED",t},t.isErrorWithActions=function(e){return e instanceof Error&&Array.isArray(e.actions)},t.create=function(e,t){void 0===t&&(t=Object.create(null));var n=new Error(e);return t.actions&&(n.actions=t.actions),n},t.getErrorMessage=function(e){return e?e.message?e.message:e.stack?e.stack.split("\n")[0]:String(e):"Error"}});var i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,a)}u((r=r.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){function n(n){return function(s){return function(n){
  if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,i&&(o=2&n[0]?i.return:n[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,n[1])).done)return o;switch(i=0,o&&(n=[2&n[0],o.value]),n[0]){case 0:case 1:o=n;break;case 4:return a.label++,{value:n[1],done:!1};case 5:a.label++,i=n[1],n=[0];continue;case 7:n=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){a=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){a.label=n[1];break}if(6===n[0]&&a.label<o[1]){a.label=o[1],o=n;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(n);break}o[2]&&a.ops.pop(),a.trys.pop();continue}n=t.call(e,a)}catch(e){n=[6,e],i=0}finally{r=o=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}([n,s])}}var r,i,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s}
  ;define(e[14],t([0,1,13,3]),function(e,t,n,r){"use strict";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 a(e,t){return u(e,t,0,e.length-1,[]),e}function u(e,t,n,r,i){if(!(r<=n)){var o=n+(r-n)/2|0;u(e,t,n,o,i),u(e,t,o+1,r,i),t(e[o],e[o+1])<=0||function(e,t,n,r,i,o){for(var s=n,a=r+1,u=n;u<=i;u++)o[u]=e[u];for(u=n;u<=i;u++)s>r?e[u]=o[a++]:a>i?e[u]=o[s++]:t(o[a],o[s])<0?e[u]=o[a++]:e[u]=o[s++]}(e,t,n,o,r,i)}}function c(e,t,n){function r(e,t,n){var r;if(0!==t||0!==n.length){var o=i[i.length-1];o&&o.start+o.deleteCount===e?(o.deleteCount+=t,(r=o.toInsert).push.apply(r,n)):i.push({start:e,deleteCount:t,toInsert:n})}}for(var i=[],o=0,s=0;;){if(o===e.length){r(o,0,t.slice(s));break}if(s===t.length){r(o,e.length-o,[]);break}var a=e[o],u=t[s],c=n(a,u);0===c?(o+=1,s+=1):c<0?(r(o,1,[]),o+=1):c>0&&(r(o,0,[u]),s+=1)}return i}function l(e,t,n,r,i){for(var o=function(i){var o=e[r];if(t(o,n[i-1])<0){n.pop();var a=s(n,function(e){return t(o,e)<0})
  ;n.splice(a,0,o)}},a=n.length;r<i;r++)o(a)}function f(e,t){for(var n=0;n<e.length;n++){if(t(e[n]))return n}return-1}Object.defineProperty(t,"__esModule",{value:!0}),t.tail=function(e,t){return void 0===t&&(t=0),e[e.length-(1+t)]},t.tail2=function(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]},t.equals=function(e,t,n){if(void 0===n&&(n=function(e,t){return e===t}),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},t.binarySearch=function(e,t,n){for(var r=0,i=e.length-1;r<=i;){var o=(r+i)/2|0,s=n(e[o],t);if(s<0)r=o+1;else{if(!(s>0))return o;i=o-1}}return-(r+1)},t.findFirstInSorted=s,t.mergeSort=a,t.groupBy=function(e,t){for(var n,r=[],i=0,o=a(e.slice(0),t);i<o.length;i++){var s=o[i];n&&0===t(n[0],s)?n.push(s):(n=[s],r.push(n))}return r},t.sortedDiff=c,t.delta=function(e,t,n){for(var r=[],i=[],o=0,s=c(e,t,n);o<s.length;o++){var a=s[o]
  ;r.push.apply(r,e.slice(a.start,a.start+a.deleteCount)),i.push.apply(i,a.toInsert)}return{removed:r,added:i}},t.top=function(e,t,n){if(0===n)return[];var r=e.slice(0,n).sort(t);return l(e,t,r,n,e.length),r},t.topAsync=function(e,t,s,a,u){var c=this;return 0===s?r.TPromise.as([]):new r.TPromise(function(r,f){i(c,void 0,void 0,function(){var r,i,c,f;return o(this,function(o){switch(o.label){case 0:r=e.length,i=e.slice(0,s).sort(t),c=s,f=Math.min(s+a,r),o.label=1;case 1:return c<r?c>s?[4,new Promise(function(e){return setTimeout(e)})]:[3,3]:[3,5];case 2:o.sent(),o.label=3;case 3:if(u&&u.isCancellationRequested)throw n.canceled();l(e,t,i,c,f),o.label=4;case 4:return c=f,f=Math.min(f+a,r),[3,1];case 5:return[2,i]}})}).then(r,f)})},t.coalesce=function(e,t){if(!e&&!t)return e;if(!t)return e.filter(function(e){return!!e});for(var n=0,r=0;r<e.length;r++)e[r]&&(e[n]=e[r],n+=1);e.length=n},t.move=function(e,t,n){e.splice(n,0,e.splice(t,1)[0])},t.isFalsyOrEmpty=function(e){return!Array.isArray(e)||0===e.length},
  t.distinct=function(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);return!n[r]&&(n[r]=!0,!0)})},t.uniqueFilter=function(e){var t=Object.create(null);return function(n){var r=e(n);return!t[r]&&(t[r]=!0,!0)}},t.firstIndex=f,t.first=function(e,t,n){void 0===n&&(n=null);var r=f(e,t);return r<0?n:e[r]},t.commonPrefixLength=function(e,t,n){void 0===n&&(n=function(e,t){return e===t});for(var r=0,i=0,o=Math.min(e.length,t.length);i<o&&n(e[i],t[i]);i++)r++;return r},t.flatten=function(e){return[].concat.apply([],e)},t.range=function(e,t){var n="number"==typeof t?e:0;"number"==typeof t?n=e:(n=0,t=e);var r=[];if(n<=t)for(i=n;i<t;i++)r.push(i);else for(var i=n;i>t;i--)r.push(i);return r},t.fill=function(e,t,n){void 0===n&&(n=[]);for(var r=0;r<e;r++)n[r]=t();return n},t.index=function(e,t,n){return void 0===n&&(n=function(e){return e}),e.reduce(function(e,r){var i=t(r);return e[i]=n(r,e[i]),e},Object.create(null))},t.insert=function(e,t){
  return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}},t.arrayInsert=function(e,t,n){var r=e.slice(0,t),i=e.slice(t);return r.concat(n,i)},t.shuffle=function(e,t){for(var n="number"==typeof t?function(){var e=179426549*Math.sin(t++);return e-Math.floor(e)}:Math.random,r=e.length-1;r>0;r-=1){var i=Math.floor(n()*(r+1)),o=e[r];e[r]=e[i],e[i]=o}},t.pushToStart=function(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))},t.pushToEnd=function(e,t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))},t.find=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(t(r,n,e))return r}}}),define(e[4],t([0,1,13,58,6,33,3]),function(e,t,r,s,a,u,c){"use strict";function l(e){return function(t,n,r){void 0===n&&(n=null);var i=!1,o=e(function(e){if(!i)return o?o.dispose():i=!0,t.call(n,e)},null,r);return i&&o.dispose(),o}}function f(e,t){return function(n,r,i){return void 0===r&&(r=null),e(function(e){return n.call(r,t(e))},null,i)}}function d(e,t){return function(n,r,i){return void 0===r&&(r=null),
  e(function(e){t(e),n.call(r,e)},null,i)}}function h(e,t){return function(n,r,i){return void 0===r&&(r=null),e(function(e){return t(e)&&n.call(r,e)},null,i)}}function p(e){var t,n=!0;return h(e,function(e){var r=n||e!==t;return n=!1,t=e,r})}Object.defineProperty(t,"__esModule",{value:!0});var g;!function(e){var t={dispose:function(){}};e.None=function(){return t}}(g=t.Event||(t.Event={}));var m=function(){function e(e){this._options=e}return Object.defineProperty(e.prototype,"event",{get:function(){var t=this;return this._event||(this._event=function(n,r,i){t._listeners||(t._listeners=new u.LinkedList);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 a;return a={dispose:function(){a.dispose=e._noop,t._disposed||(s(),
  t._options&&t._options.onLastListenerRemove&&t._listeners.isEmpty()&&t._options.onLastListenerRemove(t))}},Array.isArray(i)&&i.push(a),a}),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],s=i[1];try{"function"==typeof o?o.call(void 0,s):o[0].call(o[1],s)}catch(n){r.onUnexpectedError(n)}}}},e.prototype.dispose=function(){this._listeners&&(this._listeners=void 0),this._deliveryQueue&&(this._deliveryQueue.length=0),this._disposed=!0},e._noop=function(){},e}();t.Emitter=m;var v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.fireAsync=function(e){return i(this,void 0,void 0,function(){var t,n,i,s,a,u;return o(this,function(o){switch(o.label){case 0:if(!this._listeners)return[2]
  ;for(this._asyncDeliveryQueue||(this._asyncDeliveryQueue=[]),t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())u=[],this._asyncDeliveryQueue.push([n.value,e(u,"function"==typeof n.value?n.value:n.value[0]),u]);o.label=1;case 1:if(!(this._asyncDeliveryQueue.length>0))return[3,3];i=this._asyncDeliveryQueue.shift(),s=i[0],a=i[1],u=i[2];try{"function"==typeof s?s.call(void 0,a):s[0].call(s[1],a)}catch(e){return r.onUnexpectedError(e),[3,1]}return Object.freeze(u),[4,Promise.all(u)];case 2:return o.sent(),[3,1];case 3:return[2]}})})},t}(m);t.AsyncEmitter=v;var y=function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new m({onFirstListenerAdd:function(){return e.onFirstListenerAdd()},onLastListenerRemove:function(){return e.onLastListenerRemove()}})}return Object.defineProperty(e.prototype,"event",{get:function(){return this.emitter.event},enumerable:!0,configurable:!0}),e.prototype.add=function(e){var t=this,n={event:e,listener:null};this.events.push(n),
  this.hasListeners&&this.hook(n);return a.toDisposable(s.once(function(){t.hasListeners&&t.unhook(n);var e=t.events.indexOf(n);t.events.splice(e,1)}))},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.dispose(),e.listener=null},e.prototype.dispose=function(){this.emitter.dispose()},e}();t.EventMultiplexer=y,t.fromCallback=function(e){var t,n=new m({onFirstListenerAdd:function(){return t=e(function(e){return n.fire(e)})},onLastListenerRemove:function(){return t.dispose()}});return n.event},t.fromPromise=function(e){var t=new m,n=!1;return e.then(null,function(){return null}).then(function(){n?t.fire():setTimeout(function(){return t.fire()},0)}),n=!0,t.event},
  t.toPromise=function(e){return new c.TPromise(function(t){return l(e)(t)})},t.toNativePromise=function(e){return new Promise(function(t){return l(e)(t)})},t.once=l,t.anyEvent=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t,n,r){return void 0===n&&(n=null),a.combinedDisposable(e.map(function(e){return e(function(e){return t.call(n,e)},null,r)}))}},t.debounceEvent=function(e,t,n,r){void 0===n&&(n=100),void 0===r&&(r=!1);var i,o=void 0,s=void 0,a=0,u=new m({onFirstListenerAdd:function(){i=e(function(e){a++,o=t(o,e),r&&!s&&u.fire(o),clearTimeout(s),s=setTimeout(function(){var e=o;o=void 0,s=void 0,(!r||a>1)&&u.fire(e),a=0},n)})},onLastListenerRemove:function(){i.dispose()}});return u.event};var _=function(){function e(){this.buffers=[]}return 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),e(),this.buffers.pop(),t.forEach(function(e){return e()})},e}();t.EventBufferer=_,t.mapEvent=f,t.forEach=d,t.filterEvent=h,t.signalEvent=function(e){return e};var b=function(){function e(e){this._event=e}return Object.defineProperty(e.prototype,"event",{get:function(){return this._event},enumerable:!0,configurable:!0}),e.prototype.map=function(t){return new e(f(this._event,t))},e.prototype.forEach=function(t){return new e(d(this._event,t))},e.prototype.filter=function(t){return new e(h(this._event,t))},e.prototype.latch=function(){return new e(p(this._event))},e.prototype.on=function(e,t,n){return this._event(e,t,n)},e.prototype.once=function(e,t,n){return l(this._event)(e,t,n)},e}();t.chain=function(e){return new b(e)},t.stopwatch=function(e){var t=(new Date).getTime();return f(l(e),function(e){return(new Date).getTime()-t})},t.buffer=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[]),n=n.slice();var r=e(function(e){n?n.push(e):o.fire(e)}),i=function(){n.forEach(function(e){
  return o.fire(e)}),n=null},o=new m({onFirstListenerAdd:function(){r||(r=e(function(e){return o.fire(e)}))},onFirstListenerDidAdd:function(){n&&(t?setTimeout(i):i())},onLastListenerRemove:function(){r.dispose(),r=null}});return o.event},t.echo=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=[]),n=n.slice(),e(function(e){n.push(e),i.fire(e)});var r=function(e,t){return n.forEach(function(n){return e.call(t,n)})},i=new m({onListenerDidAdd:function(e,n,i){t?setTimeout(function(){return r(n,i)}):r(n,i)}});return i.event};var C=function(){function e(){var e=this;this.listening=!1,this.inputEvent=g.None,this.inputEventListener=a.Disposable.None,this.emitter=new m({onFirstListenerDidAdd:function(){e.listening=!0,e.inputEventListener=e.inputEvent(e.emitter.fire,e.emitter)},onLastListenerRemove:function(){e.listening=!1,e.inputEventListener.dispose()}}),this.event=this.emitter.event}return Object.defineProperty(e.prototype,"input",{set:function(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),
  this.inputEventListener=e(this.emitter.fire,this.emitter))},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.inputEventListener.dispose(),this.emitter.dispose()},e}();t.Relay=C,t.fromNodeEventEmitter=function(e,t,n){void 0===n&&(n=function(e){return e});var r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i.fire(n.apply(void 0,e))},i=new m({onFirstListenerAdd:function(){return e.on(t,r)},onLastListenerRemove:function(){return e.removeListener(t,r)}});return i.event},t.latch=p}),define(e[17],t([0,1,4]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=Object.freeze(function(e,t){var n=setTimeout(e.bind(t),0);return{dispose:function(){clearTimeout(n)}}});!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof o||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,
  onCancellationRequested:n.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:i})}(r=t.CancellationToken||(t.CancellationToken={}));var o=function(){function e(){this._isCancelled=!1}return e.prototype.cancel=function(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))},Object.defineProperty(e.prototype,"isCancellationRequested",{get:function(){return this._isCancelled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onCancellationRequested",{get:function(){return this._isCancelled?i:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._emitter&&(this._emitter.dispose(),this._emitter=void 0)},e}(),s=function(){function e(){}return Object.defineProperty(e.prototype,"token",{get:function(){return this._token||(this._token=new o),this._token},enumerable:!0,configurable:!0}),e.prototype.cancel=function(){
  this._token?this._token instanceof o&&this._token.cancel():this._token=r.Cancelled},e.prototype.dispose=function(){this._token?this._token instanceof o&&this._token.dispose():this._token=r.None},e}();t.CancellationTokenSource=s}),define(e[12],t([0,1,17,13,4,6,3]),function(e,t,r,i,o,s,a){"use strict";function u(e){return e&&"function"==typeof e.then}function c(e){var t=new r.CancellationTokenSource,n=e(t.token),o=new Promise(function(e,r){t.token.onCancellationRequested(function(){r(i.canceled())}),Promise.resolve(n).then(function(n){t.dispose(),e(n)},function(e){t.dispose(),r(e)})});return new(function(){function e(){}return 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)},e}())}function l(e,t){return t?new Promise(function(n,r){var o=setTimeout(n,e);t.onCancellationRequested(function(){clearTimeout(o),r(i.canceled())})}):c(function(t){return l(e,t)})}function f(e){function t(o){
  void 0!==o&&null!==o&&n.push(o);var s=r<i?e[r++]():null;return s?s.then(t):a.TPromise.as(n)}var n=[],r=0,i=e.length;return a.TPromise.as(null).then(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isThenable=u,t.toThenable=function(e){return u(e)?e:a.TPromise.as(e)},t.createCancelablePromise=c,t.asThenable=function(e){return new a.TPromise(function(t,n){var r=e();r instanceof a.TPromise?r.then(t,n):u(r)?r.then(t,n):t(r)})};var d=function(){function e(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}return e.prototype.queue=function(e){var t=this;if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){var n=function(){t.queuedPromise=null;var e=t.queue(t.queuedPromiseFactory);return t.queuedPromiseFactory=null,e};this.queuedPromise=new a.TPromise(function(e){t.activePromise.then(n,n).then(e)})}return new a.TPromise(function(e,n){t.queuedPromise.then(e,n)})}return this.activePromise=e(),new a.TPromise(function(e,n){t.activePromise.then(function(n){
  t.activePromise=null,e(n)},function(e){t.activePromise=null,n(e)})})},e}();t.Throttler=d;var h=function(){function e(){this.current=a.TPromise.wrap(null)}return e.prototype.queue=function(e){return this.current=this.current.then(function(){return e()})},e}();t.SimpleThrottler=h;var p=function(){function e(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.task=null}return e.prototype.trigger=function(e,t){var n=this;return void 0===t&&(t=this.defaultDelay),this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new a.TPromise(function(e,t){n.doResolve=e,n.doReject=t}).then(function(){n.completionPromise=null,n.doResolve=null;var e=n.task;return n.task=null,e()})),this.timeout=setTimeout(function(){n.timeout=null,n.doResolve(null)},t),this.completionPromise},e.prototype.isTriggered=function(){return null!==this.timeout},e.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.doReject(i.canceled()),
  this.completionPromise=null)},e.prototype.cancelTimeout=function(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},e}();t.Delayer=p;var g=function(e){function t(t){var n=e.call(this,t)||this;return n.throttler=new d,n}return n(t,e),t.prototype.trigger=function(t,n){var r=this;return e.prototype.trigger.call(this,function(){return r.throttler.queue(t)},n)},t}(p);t.ThrottledDelayer=g;var m=function(){function e(){var e=this;this._isOpen=!1,this._promise=new a.TPromise(function(t,n){e._completePromise=t})}return e.prototype.isOpen=function(){return this._isOpen},e.prototype.open=function(){this._isOpen=!0,this._completePromise(!0)},e.prototype.wait=function(){return this._promise},e}();t.Barrier=m,t.timeout=l,t.always=function(e,t){function n(){try{t()}catch(e){i.onUnexpectedError(e)}}return e.then(function(e){return n()},function(e){return n()}),e},t.sequence=f,t.first2=function(e,t,n){void 0===t&&(t=function(e){return!!e}),void 0===n&&(n=null);var r=0,i=e.length,o=function(){
  return r>=i?Promise.resolve(n):(0,e[r++])().then(function(e){return t(e)?Promise.resolve(e):o()})};return o()},t.first=function(e,t,n){void 0===t&&(t=function(e){return!!e}),void 0===n&&(n=null);var r=0,i=e.length,o=function(){return r>=i?a.TPromise.as(n):(0,e[r++])().then(function(e){return t(e)?a.TPromise.as(e):o()})};return o()};var v=function(){function e(e){this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new o.Emitter}return Object.defineProperty(e.prototype,"onFinished",{get:function(){return this._onFinished.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this.runningPromises+this.outstandingPromises.length},enumerable:!0,configurable:!0}),e.prototype.queue=function(e){var t=this;return new a.TPromise(function(n,r){t.outstandingPromises.push({factory:e,c:n,e:r}),t.consume()})},e.prototype.consume=function(){
  for(var e=this;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){var t=this.outstandingPromises.shift();this.runningPromises++;var n=t.factory();n.then(t.c,t.e),n.then(function(){return e.consumed()},function(){return e.consumed()})}},e.prototype.consumed=function(){this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onFinished.fire()},e.prototype.dispose=function(){this._onFinished.dispose()},e}();t.Limiter=v;var y=function(e){function t(){return e.call(this,1)||this}return n(t,e),t}(v);t.Queue=y;var _=function(){function e(){this.queues=Object.create(null)}return e.prototype.queueFor=function(e){var t=this,n=e.toString();if(!this.queues[n]){var r=new y;r.onFinished(function(){r.dispose(),delete t.queues[n]}),this.queues[n]=r}return this.queues[n]},e}();t.ResourceQueue=_;var b=function(e){function t(t,n){var r=e.call(this)||this;return r._token=-1,"function"==typeof t&&"number"==typeof n&&r.setIfNotSet(t,n),r}return n(t,e),
  t.prototype.dispose=function(){this.cancel(),e.prototype.dispose.call(this)},t.prototype.cancel=function(){-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;-1===this._token&&(this._token=setTimeout(function(){n._token=-1,e()},t))},t}(s.Disposable);t.TimeoutTimer=b;var C=function(e){function t(){var t=e.call(this)||this;return t._token=-1,t}return n(t,e),t.prototype.dispose=function(){this.cancel(),e.prototype.dispose.call(this)},t.prototype.cancel=function(){-1!==this._token&&(clearInterval(this._token),this._token=-1)},t.prototype.cancelAndSet=function(e,t){this.cancel(),this._token=setInterval(function(){e()},t)},t}(s.Disposable);t.IntervalTimer=C;var S=function(){function e(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,this.timeoutHandler=this.onTimeout.bind(this)}return e.prototype.dispose=function(){this.cancel(),
  this.runner=null},e.prototype.cancel=function(){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()},e}();t.RunOnceScheduler=S;var x=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.units=[],r}return n(t,e),t.prototype.work=function(e){this.units.push(e),this.isScheduled()||this.schedule()},t.prototype.doRun=function(){var e=this.units;this.units=[],this.runner(e)},t.prototype.dispose=function(){this.units=[],e.prototype.dispose.call(this)},t}(S);t.RunOnceWorker=x,t.nfcall=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new a.TPromise(function(n,r){return e.apply(void 0,t.concat([function(e,t){return e?r(e):n(t)}]))})},
  t.ninvoke=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return new a.TPromise(function(r,i){return t.call.apply(t,[e].concat(n,[function(e,t){return e?i(e):r(t)}]))})}}),define(e[27],t([0,1,14,9,19,21,3,12]),function(e,t,n,r,i,o,s,a){"use strict";function u(e){switch(e){case 0:return"";case 1:return S+"*?";default:return"(?:"+C+"|"+S+"+"+C+"|"+C+S+"+)*?"}}function c(e,t){if(!e)return[];for(var n,r=[],i=!1,o=!1,s="",a=0;a<e.length;a++){switch(n=e[a]){case t:if(!i&&!o){r.push(s),s="";continue}break;case"{":i=!0;break;case"}":i=!1;break;case"[":o=!0;break;case"]":o=!1}s+=n}return s&&r.push(s),r}function l(e){if(!e)return"";var t="",n=c(e,b);if(n.every(function(e){return e===_}))t=".*";else{var i=!1;n.forEach(function(e,o){if(e!==_){for(var s,a=!1,f="",d=!1,h="",p=0;p<e.length;p++)if("}"!==(s=e[p])&&a)f+=s;else if(!d||"]"===s&&h)switch(s){case"{":a=!0;continue;case"[":d=!0;continue;case"}":var g="(?:"+c(f,",").map(function(e){return l(e)}).join("|")+")";t+=g,a=!1,f="";break;case"]":
  t+="["+h+"]",d=!1,h="";break;case"?":t+=S;continue;case"*":t+=u(1);continue;default:t+=r.escapeRegExpCharacters(s)}else{h+="-"===s?s:"^"!==s&&"!"!==s||h?s===b?"":r.escapeRegExpCharacters(s):"^"}o<n.length-1&&(n[o+1]!==_||o+2<n.length)&&(t+=C),i=!1}else i||(t+=u(2),i=!0)})}return t}function f(e,t){if(!e)return R;var i;i="string"!=typeof e?e.pattern:e;var o=(i=i.trim())+"_"+!!t.trimForExclusions,s=I.get(o);if(s)return d(s,e);var a;if(w.test(i)){var u=i.substr(4);s=function(e,t){return e&&r.endsWith(e,u)?i:null}}else s=(a=E.exec(h(i,t)))?function(e,t){var n="/"+e,i="\\"+e,o=function(o,s){return o?s?s===e?t:null:o===e||r.endsWith(o,n)||r.endsWith(o,i)?t:null:null},s=[e];return o.basenames=s,o.patterns=[t],o.allBasenames=s,o}(a[1],i):(t.trimForExclusions?T:P).test(i)?function(e,t){var r=y(e.slice(1,-1).split(",").map(function(e){return f(e,t)}).filter(function(e){return e!==R}),e),i=r.length;if(!i)return R;if(1===i)return r[0];var o=function(t,n){for(var i=0,o=r.length;i<o;i++)if(r[i](t,n))return e;return null
  },s=n.first(r,function(e){return!!e.allBasenames});s&&(o.allBasenames=s.allBasenames);var a=r.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);a.length&&(o.allPaths=a);return o}(i,t):(a=D.exec(h(i,t)))?p(a[1].substr(1),i,!0):(a=k.exec(h(i,t)))?p(a[1],i,!1):function(e){try{var t=new RegExp("^"+l(e)+"$");return function(n,r){return t.lastIndex=0,n&&t.test(n)?e:null}}catch(e){return R}}(i);return I.set(o,s),d(s,e)}function d(e,t){return"string"==typeof t?e:function(n,r){return i.isEqualOrParent(n,t.base)?e(t.pathToRelative(t.base,n),r):null}}function h(e,t){return t.trimForExclusions&&r.endsWith(e,"/**")?e.substr(0,e.length-2):e}function p(e,t,n){var o=i.nativeSep!==i.sep?e.replace(x,i.nativeSep):e,s=i.nativeSep+o,a=n?function(e,n){return e&&(e===o||r.endsWith(e,s))?t:null}:function(e,n){return e&&e===o?t:null};return a.allPaths=[(n?"*/":"./")+e],a}function g(e,t){if(void 0===t&&(t={}),!e)return O;if("string"==typeof e||v(e)){var r=f(e,t);if(r===R)return O;var o=function(e,t){return!!r(e,t)}
  ;return r.allBasenames&&(o.allBasenames=r.allBasenames),r.allPaths&&(o.allPaths=r.allPaths),o}return function(e,t){var r=y(Object.getOwnPropertyNames(e).map(function(n){return function(e,t,n){if(!1===t)return R;var r=f(e,n);if(r===R)return R;if("boolean"==typeof t)return r;if(t){var i=t.when;if("string"==typeof i){var o=function(t,n,o,s){if(!s||!r(t,n))return null;var u=i.replace("$(basename)",o),c=s(u);return a.isThenable(c)?c.then(function(t){return t?e:null}):c?e:null};return o.requiresSiblings=!0,o}}return r}(n,e[n],t)}).filter(function(e){return e!==R})),o=r.length;if(!o)return R;if(!r.some(function(e){return e.requiresSiblings})){if(1===o)return r[0];var s=function(e,t){for(var n=0,i=r.length;n<i;n++){var o=r[n](e,t);if(o)return o}return null},u=n.first(r,function(e){return!!e.allBasenames});u&&(s.allBasenames=u.allBasenames);var c=r.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);return c.length&&(s.allPaths=c),s}var l=function(e,t,n){for(var o,s=0,a=r.length;s<a;s++){var u=r[s]
  ;u.requiresSiblings&&n&&(t||(t=i.basename(e)),o||(o=t.substr(0,t.length-i.extname(e).length)));var c=u(e,t,o,n);if(c)return c}return null},d=n.first(r,function(e){return!!e.allBasenames});d&&(l.allBasenames=d.allBasenames);var h=r.reduce(function(e,t){return t.allPaths?e.concat(t.allPaths):e},[]);h.length&&(l.allPaths=h);return l}(e,t)}function m(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function v(e){var t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern&&"function"==typeof t.pathToRelative}function y(e,t){var n=e.filter(function(e){return!!e.basenames});if(n.length<2)return e;var r,i=n.reduce(function(e,t){return e.concat(t.basenames)},[]);if(t){r=[];for(var o=0,s=i.length;o<s;o++)r.push(t)}else r=n.reduce(function(e,t){return e.concat(t.patterns)},[]);var a=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 s=i.indexOf(t);return-1!==s?r[s]:null};a.basenames=i,a.patterns=r,
  a.allBasenames=i;var u=e.filter(function(e){return!e.basenames});return u.push(a),u}Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyExpression=function(){return Object.create(null)};var _="**",b="/",C="[/\\\\]",S="[^/\\\\]",x=/\//g;t.splitGlobAware=c;var w=/^\*\*\/\*\.[\w\.-]+$/,E=/^\*\*\/([\w\.-]+)\/?$/,P=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,T=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,D=/^\*\*((\/[\w\.-]+)+)\/?$/,k=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,I=new o.LRUCache(1e4),O=function(){return!1},R=function(){return null};t.match=function(e,t,n){return!(!e||!t)&&g(e)(t,void 0,n)},t.parse=g,t.hasSiblingPromiseFn=function(e){if(e){var t;return function(n){return t||(t=(e()||s.TPromise.as([])).then(function(e){return e?m(e):{}})),t.then(function(e){return!!e[n]})}}},t.hasSiblingFn=function(e){if(e){var t;return function(n){if(!t){var r=e();t=r?m(r):{}}return!!t[n]}}},t.isRelativePattern=v,t.parseToAsync=function(e,t){var n=g(e,t)
  ;return function(e,t,r){var i=n(e,t,r);return i instanceof s.TPromise?i:s.TPromise.as(i)}},t.getBasenameTerms=function(e){return e.allBasenames||[]},t.getPathTerms=function(e){return e.allPaths||[]}}),define(e[52],t([0,1,14]),function(e,t,n){"use strict";function r(e){return i(e)?!e.value:!Array.isArray(e)||e.every(r)}function i(e){return e instanceof s||!(!e||"object"!=typeof e)&&("string"==typeof e.value&&("boolean"==typeof e.isTrusted||void 0===e.isTrusted))}function o(e,t){return e===t||!(!e||!t)&&(e.value===t.value&&e.isTrusted===t.isTrusted)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e){void 0===e&&(e=""),this.value=e}return e.prototype.appendText=function(e){return this.value+=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),this},e.prototype.appendMarkdown=function(e){return this.value+=e,this},e.prototype.appendCodeblock=function(e,t){return this.value+="\n```",this.value+=e,this.value+="\n",this.value+=t,this.value+="\n```\n",this},e}();t.MarkdownString=s,
  t.isEmptyMarkdownString=r,t.isMarkdownString=i,t.markedStringsEquals=function(e,t){return!e&&!t||!(!e||!t)&&(Array.isArray(e)&&Array.isArray(t)?n.equals(e,t,o):!(!i(e)||!i(t))&&o(e,t))},t.removeMarkdownEscapes=function(e){return e?e.replace(/\\([\\`*_{}[\]()#+\-.!])/g,"$1"):e}}),define(e[116],t([0,1,6,4]),function(e,t,r,i){"use strict";function o(e,t){var n=t-e;return function(t){return e+n*function(e){return 1-function(e){return Math.pow(e,3)}(1-e)}(t)}}Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"}(t.ScrollbarVisibility||(t.ScrollbarVisibility={}));var s=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}return 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,n=this.scrollWidth!==e.scrollWidth,r=this.scrollLeft!==e.scrollLeft,i=this.height!==e.height,o=this.scrollHeight!==e.scrollHeight,s=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:s}},e}();t.ScrollState=s;var a=function(e){function t(t,n){var r=e.call(this)||this;return r._onScroll=r._register(new i.Emitter),r.onScroll=r._onScroll.event,r._smoothScrollDuration=t,r._scheduleAtNextAnimationFrame=n,r._state=new s(0,0,0,0,0,0),r._smoothScrolling=null,r}return n(t,e),t.prototype.dispose=function(){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(){return this._smoothScrolling?this._smoothScrolling.to:this._state},t.prototype.getCurrentScrollPosition=function(){return this._state},t.prototype.setScrollPositionNow=function(e){var t=this._state.withScrollPosition(e);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};r=this._state.withScrollPosition(e);if(this._smoothScrolling.to.scrollLeft===r.scrollLeft&&this._smoothScrolling.to.scrollTop===r.scrollTop)return;var n=this._smoothScrolling.combine(this._state,r,this._smoothScrollDuration);this._smoothScrolling.dispose(),this._smoothScrolling=n}else{var r=this._state.withScrollPosition(e)
  ;this._smoothScrolling=c.start(this._state,r,this._smoothScrollDuration)}this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){t._smoothScrolling&&(t._smoothScrolling.animationFrameDisposable=null,t._performSmoothScrolling())})},t.prototype._performSmoothScrolling=function(){var e=this,t=this._smoothScrolling.tick(),n=this._state.withScrollPosition(t);if(this._setState(n),t.isDone)return this._smoothScrolling.dispose(),void(this._smoothScrolling=null);this._smoothScrolling.animationFrameDisposable=this._scheduleAtNextAnimationFrame(function(){e._smoothScrolling&&(e._smoothScrolling.animationFrameDisposable=null,e._performSmoothScrolling())})},t.prototype._setState=function(e){var t=this._state;t.equals(e)||(this._state=e,this._onScroll.fire(this._state.createScrollEvent(t)))},t}(r.Disposable);t.Scrollable=a;var u=function(){return function(e,t,n){this.scrollLeft=e,this.scrollTop=t,this.isDone=n}}();t.SmoothScrollingUpdate=u;var c=function(){function e(e,t,n,r){
  this.from=e,this.to=t,this.duration=r,this._startTime=n,this.animationFrameDisposable=null,this._initAnimations()}return 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){if(Math.abs(e-t)>2.5*n){var r=void 0,i=void 0;return e<t?(r=e+.75*n,i=t-.75*n):(r=e-.75*n,i=t+.75*n),function(e,t,n){return function(r){return r<n?e(r/n):t((r-n)/(1-n))}}(o(e,r),o(i,t),.33)}return o(e,t)},e.prototype.dispose=function(){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),r=this.scrollTop(t);return new u(n,r,!1)}return new u(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;return new e(t,n,Date.now()-10,r)},e}();t.SmoothScrollingOperation=c}),define(e[131],t([0,1,141]),function(e,t,n){"use strict";function r(e,t,i){if(n.ok(e,"Missing first parameter"),n.ok("function"==typeof t,"Second parameter must be a function that is called for each element"),n.ok("function"==typeof i,"Third parameter must be a function that is called on error and success"),"function"==typeof e)try{e(function(e,n){e?i(e,null):r(n,t,i)})}catch(e){i(e,null)}else{var o=[],s=function(n){if(n<e.length)try{t(e[n],function(e,t){!0!==e&&!1!==e||(t=e,e=null),e?i(e,null):(t&&o.push(t),process.nextTick(function(){s(n+1)}))},n,e.length)}catch(e){i(e,null)}else i(null,o)};s(0)}}function i(e){!function(e){n.ok(e.length>1,"Need at least one error handler and one function to process sequence"),e.forEach(function(e){
  n.ok("function"==typeof e)});var t=e.splice(0,1)[0],i=null;r(e,function(e,t){var n=function(e,n){!0!==e&&!1!==e||(n=e,e=null),e?t(e,null):(i=n,t(null,null))};try{e.call(n,i)}catch(e){t(e,null)}},function(e,n){e&&t(e)})}(Array.isArray(e)?e:Array.prototype.slice.call(arguments))}Object.defineProperty(t,"__esModule",{value:!0}),t.parallel=function(e,t,n){var r=new Array(e.length),i=new Array(e.length),o=!1,s=0;if(0===e.length)return n(null,[]);e.forEach(function(a,u){t(a,function(t,a){if(t?(o=!0,r[u]=null,i[u]=t):(r[u]=a,i[u]=null),++s===e.length)return n(o?i:null,r)})})},t.loop=r,t.sequence=i}),define(e[65],t([0,1,35,3]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readExactlyByFile=function(e,t){return new r.TPromise(function(r,i){n.open(e,"r",null,function(e,o){function s(e,t,s){n.close(o,function(n){return n?i(n):e&&"EISDIR"===e.code?i(e):r({buffer:t,bytesRead:s})})}function a(){n.read(o,u,c,t-c,null,function(e,n){
  return e?s(e,null,0):0===n?s(null,u,c):(c+=n)===t?s(null,u,c):a()})}if(e)return i(e);var u=Buffer.allocUnsafe(t),c=0;a()})})},t.readToMatchingString=function(e,t,i,o){return new r.TPromise(function(r,s){return n.open(e,"r",null,function(a,u){function c(e,t){n.close(u,function(n){return n?s(n):e&&"EISDIR"===e.code?s(e):r(t)})}function l(){n.read(u,f,d,i,null,function(n,r){if(n)return c(n,null);if(0===r)return c(null,null);d+=r;var i=f.indexOf(t);return i>=0?c(null,f.toString("utf8").substr(0,i)):d>=o?c(new Error("Could not find "+t+" in first "+o+" bytes of "+e),null):l()})}if(a)return s(a);var f=Buffer.allocUnsafe(o),d=0;l()})})}}),define(e[67],t([0,1,65,173,3,8,39,172]),function(e,t,r,i,o,s,a,u){"use strict";function c(e){return i.decodeStream(l(e))}function l(e){return e===t.UTF8_with_bom?t.UTF8:e}function f(e,n){if(!e||n<2)return null;var r=e.readUInt8(0),i=e.readUInt8(1);if(254===r&&255===i)return t.UTF16be;if(255===r&&254===i)return t.UTF16le;if(n<3)return null;var o=e.readUInt8(2)
  ;return 239===r&&187===i&&191===o?t.UTF8:null}function d(t){return o.TPromise.wrap(new Promise(function(t,n){e(["jschardet"],t,n)})).then(function(e){e.Constants.MINIMUM_THRESHOLD=g;var n=e.detect(t);if(!n||!n.encoding)return null;var r=n.encoding.toLowerCase();return 0<=m.indexOf(r)?null:h(n.encoding)})}function h(e){var t=e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase();return v[t]||t}function p(e,n){var r=e.buffer,i=e.bytesRead,o=f(r,i),s=!1;if(o!==t.UTF16be&&o!==t.UTF16le){for(var a=!0,u=!0,c=!1,l=0;l<i&&l<y;l++){var h=l%2==1,p=0===r.readInt8(l);if(p&&(c=!0),a&&(h&&!p||!h&&p)&&(a=!1),u&&(h&&p||!h&&!p)&&(u=!1),p&&!a&&!u)break}c&&(a?o=t.UTF16le:u?o=t.UTF16be:s=!0)}return!n||s||o?{seemsBinary:s,encoding:o}:d(r.slice(0,i)).then(function(e){return{seemsBinary:!1,encoding:e}})}Object.defineProperty(t,"__esModule",{value:!0}),t.UTF8="utf8",t.UTF8_with_bom="utf8bom",t.UTF16be="utf16be",t.UTF16le="utf16le",t.toDecodeStream=function(e,r){
  return r.minBytesRequiredForDetection||(r.minBytesRequiredForDetection=r.guessEncoding?b:_),r.overwriteEncoding||(r.overwriteEncoding=function(e){return e||t.UTF8}),new o.TPromise(function(t,i){e.pipe(new(function(e){function i(t){var n=e.call(this,t)||this;return n._buffer=[],n._bytesBuffered=0,n.once("finish",function(){return n._finish()}),n}return n(i,e),i.prototype._write=function(e,t,n){Buffer.isBuffer(e)||n(new Error("data must be a buffer")),this._decodeStream?this._decodeStream.write(e,n):(this._buffer.push(e),this._bytesBuffered+=e.length,this._decodeStreamConstruction?this._decodeStreamConstruction.then(function(e){return n()},function(e){return n(e)}):this._bytesBuffered>=r.minBytesRequiredForDetection?this._startDecodeStream(n):n())},i.prototype._startDecodeStream=function(e){var n=this;this._decodeStreamConstruction=o.TPromise.as(p({buffer:Buffer.concat(this._buffer),bytesRead:this._bytesBuffered},r.guessEncoding)).then(function(i){i.encoding=r.overwriteEncoding(i.encoding),
  n._decodeStream=c(i.encoding);for(var o=0,s=n._buffer;o<s.length;o++){var a=s[o];n._decodeStream.write(a)}e(),t({detected:i,stream:n._decodeStream})},function(t){n.emit("error",t),e(t)})},i.prototype._finish=function(){var e=this;this._decodeStream?this._decodeStream.end():this._startDecodeStream(function(){return e._decodeStream.end()})},i}(u.Writable)))})},t.bomLength=function(e){switch(e){case t.UTF8:return 3;case t.UTF16be:case t.UTF16le:return 2}return 0},t.decode=function(e,t){return i.decode(e,l(t))},t.encode=function(e,t,n){return i.encode(e,l(t),n)},t.encodingExists=function(e){return i.encodingExists(l(e))},t.decodeStream=c,t.encodeStream=function(e,t){return i.encodeStream(l(e),t)},t.detectEncodingByBOMFromBuffer=f,t.detectEncodingByBOM=function(e){return r.readExactlyByFile(e,3).then(function(e){return f(e.buffer,e.bytesRead)})};var g=.2,m=["ascii","utf-8","utf-16","utf-32"];t.guessEncodingByBuffer=d;var v={ibm866:"cp866",big5:"cp950"};t.toCanonicalName=function(e){switch(e){case"shiftjis":
  return"shift-jis";case"utf16le":return"utf-16le";case"utf16be":return"utf-16be";case"big5hkscs":return"big5-hkscs";case"eucjp":return"euc-jp";case"euckr":return"euc-kr";case"koi8r":return"koi8-r";case"koi8u":return"koi8-u";case"macroman":return"x-mac-roman";case"utf8bom":return"utf8";default:var t=e.match(/windows(\d+)/);return t?"windows-"+t[1]:e}};var y=512,_=512,b=4096;t.detectEncodingFromBuffer=p;var C={437:"cp437",850:"cp850",852:"cp852",855:"cp855",857:"cp857",860:"cp860",861:"cp861",863:"cp863",865:"cp865",866:"cp866",869:"cp869",936:"cp936",1252:"cp1252"};t.resolveTerminalEncoding=function(e){var n,r=process.env.VSCODE_CLI_ENCODING;return r?(e&&console.log("Found VSCODE_CLI_ENCODING variable: "+r),n=o.TPromise.as(r)):n=s.isLinux||s.isMacintosh?new o.TPromise(function(t){e&&console.log('Running "locale charmap" to detect terminal encoding...'),a.exec("locale charmap",function(e,n,r){return t(n)})}):new o.TPromise(function(t){e&&console.log('Running "chcp" to detect terminal encoding...'),
  a.exec("chcp",function(e,n,r){if(n)for(var i=Object.keys(C),o=0;o<i.length;o++){var s=i[o];if(n.indexOf(s)>=0)return t(C[s])}return t(void 0)})}),n.then(function(n){if(e&&console.log("Detected raw terminal encoding: "+n),!n||"utf-8"===n.toLowerCase()||n.toLowerCase()===t.UTF8)return t.UTF8;var r=h(n);return i.encodingExists(r)?r:(e&&console.log("Unsupported terminal encoding, falling back to UTF-8."),t.UTF8)})}}),define(e[46],t([0,1,35,20,12,104,8,9,38,3,67,131,6]),function(e,t,n,r,i,o,s,a,u,c,l,f,d){"use strict";function h(e){return s.isMacintosh?n.readdirSync(e).map(function(e){return o.normalizeNFC(e)}):n.readdirSync(e)}function p(e,t){return s.isMacintosh?n.readdir(e,function(e,n){return e?t(e,null):t(null,n.map(function(e){return o.normalizeNFC(e)}))}):n.readdir(e,t)}function g(e,t,i,o){o||(o=Object.create(null)),n.stat(e,function(s,a){if(s)return i(s);if(!a.isDirectory())return function(e,t,r,i){var o=n.createReadStream(e),s=n.createWriteStream(t,{mode:r}),a=!1,u=function(e){a||(a=!0,
  e?i(e):n.chmod(t,r,i))};o.once("error",function(e){return u(e)}),s.once("error",function(e){return u(e)}),s.once("close",function(){return u()}),o.pipe(s)}(e,t,511&a.mode,i);if(o[e])return i(null);o[e]=!0;var u=function(){p(e,function(n,s){x(s,function(n,i){g(r.join(e,n),r.join(t,n),function(e){return i(e,void 0)},o)},i)})};m(t,511&a.mode).then(u,u)})}function m(e,t,o){var s=function(){return i.nfcall(n.mkdir,e,t).then(null,function(t){return"ENOENT"===t.code?c.TPromise.wrapError(t):i.nfcall(n.stat,e).then(function(t){return t.isDirectory()?null:c.TPromise.wrapError(new Error("'"+e+"' exists and is not a directory."))},function(e){return c.TPromise.wrapError(t)})})};return e===r.dirname(e)?c.TPromise.as(!0):s().then(null,function(n){return o&&o.isCancellationRequested?c.TPromise.as(!1):"ENOENT"===n.code?m(r.dirname(e),t).then(s):c.TPromise.wrapError(n)})}function v(e,t){if("\\"===e||"/"===e)return t(new Error("Will not delete root!"));n.exists(e,function(i){i?n.lstat(e,function(i,o){
  if(i||!o)t(i);else if(!o.isDirectory()||o.isSymbolicLink()){var s=o.mode;128&s?n.unlink(e,t):n.chmod(e,128|s,function(r){r?t(r):n.unlink(e,t)})}else p(e,function(i,o){if(i||!o)t(i);else if(0===o.length)n.rmdir(e,t);else{var s=null,a=o.length;o.forEach(function(i){v(r.join(e,i),function(r){a--,r&&(s=s||r),0===a&&(s?t(s):n.rmdir(e,t))})})}})}):t(null)})}function y(e){try{var t=n.lstatSync(e);t.isDirectory()&&!t.isSymbolicLink()?(h(e).forEach(function(t){return y(r.join(e,t))}),n.rmdirSync(e)):n.unlinkSync(e)}catch(e){if("ENOENT"===e.code)return;throw e}}function _(e,t,r,i){r=b(r),"string"==typeof t||Buffer.isBuffer(t)?function(e,t,r,i){r.encoding&&(t=l.encode(t,r.encoding.charset,{addBOM:r.encoding.addBOM}));if(!w)return n.writeFile(e,t,{mode:r.mode,flag:r.flag},i);n.open(e,r.flag,r.mode,function(e,r){if(e)return i(e);n.writeFile(r,t,function(e){if(e)return n.close(r,function(){return i(e)});n.fdatasync(r,function(e){
  return e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),w=!1),n.close(r,function(e){return i(e)})})})})}(e,t,r,i):function(e,t,r,i){var o,s,a=!1,u=function(e){a||(a=!0,e?s?(c.once("close",function(){return i(e)}),c.close()):i(e):i())},c=n.createWriteStream(e,{mode:r.mode,flags:r.flag,autoClose:!1});c.once("open",function(e){o=e,s=!0,r.encoding&&(t=t.pipe(l.encodeStream(r.encoding.charset,{addBOM:r.encoding.addBOM}))),t.pipe(c)}),t.once("error",function(e){return u(e)}),c.once("error",function(e){return u(e)}),c.once("finish",function(){w&&s?n.fdatasync(o,function(e){e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),w=!1),c.close()}):c.close()}),c.once("close",function(){return u()})}(e,t,r,i)}function b(e){if(!e)return{mode:438,flag:"w"};var t={mode:e.mode,flag:e.flag,encoding:e.encoding};return"number"!=typeof t.mode&&(t.mode=438),"string"!=typeof t.flag&&(t.flag="w"),t}function C(e){var t=r.dirname(e)
  ;if(e===t)return e;var n=(r.basename(e)||e).toLowerCase();try{var i=h(t).filter(function(e){return e.toLowerCase()===n});if(1===i.length){if(s=C(t))return r.join(s,i[0])}else if(i.length>1){var o=i.indexOf(n);if(o>=0){var s=C(t);if(s)return r.join(s,i[o])}}}catch(e){}return null}function S(e){return a.rtrim(r.normalize(e),r.sep)}Object.defineProperty(t,"__esModule",{value:!0});var x=f.loop;t.readdirSync=h,t.readdir=p,t.statLink=function(e,t){n.lstat(e,function(r,i){r||i.isSymbolicLink()?n.stat(e,function(e,n){if(e)return t(e,null);t(null,{stat:n,isSymbolicLink:i&&i.isSymbolicLink()})}):t(null,{stat:i,isSymbolicLink:!1})})},t.copy=g,t.mkdirp=m,t.del=function(e,t,i,o){n.exists(e,function(s){if(!s)return i(null);n.stat(e,function(s,c){if(s||!c)return i(s);if("."===e[e.length-1]||a.endsWith(e,"./")||a.endsWith(e,".\\"))return v(e,i);var l=r.join(t,u.generateUuid());n.rename(e,l,function(t){if(t)return v(e,i);i(null),v(l,function(e){e&&console.error(e),o&&o(e)})})})})},t.delSync=y,t.mv=function(e,t,r){
  function i(e){if(e)return r(e);n.stat(t,function(e,i){return e?r(e):i.isDirectory()?r(null):void n.open(t,"a",null,function(e,t){if(e)return r(e);n.futimes(t,i.atime,new Date,function(e){if(e)return r(e);n.close(t,r)})})})}if(e===t)return r(null);n.rename(e,t,function(n){return n?n&&e.toLowerCase()!==t.toLowerCase()&&"EXDEV"===n.code||a.endsWith(e,".")?g(e,t,function(t){if(t)return r(t);v(e,i)}):r(n):i(null)})};var w=!0;t.writeFileAndFlush=_,t.writeFileAndFlushSync=function(e,t,r){if((r=b(r)).encoding&&(t=l.encode(t,r.encoding.charset,{addBOM:r.encoding.addBOM})),!w)return n.writeFileSync(e,t,{mode:r.mode,flag:r.flag});var i=n.openSync(e,r.flag,r.mode);try{n.writeFileSync(i,t);try{n.fdatasyncSync(i)}catch(e){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",e),w=!1}}finally{n.closeSync(i)}},t.realcaseSync=C,t.realpathSync=function(e){try{return n.realpathSync(e)}catch(r){var t=S(e);return n.accessSync(t,n.constants.R_OK),t}},t.realpath=function(e,t){
  return n.realpath(e,function(r,i){if(!r)return t(null,i);var o=S(e);return n.access(o,n.constants.R_OK,function(e){return t(e,o)})})},t.watch=function(e,t,r){try{var i=n.watch(e);return i.on("change",function(e,n){var r=null;n&&(r=n.toString(),s.isMacintosh&&(r=o.normalizeNFC(r))),t(e,r)}),i.on("error",function(t,n){return r("Failed to watch "+e+" for changes ("+t+", "+n+")")}),d.toDisposable(function(){i.removeAllListeners(),i.close()})}catch(t){n.exists(e,function(n){n&&r("Failed to watch "+e+" for changes ("+t.toString()+")")})}return d.Disposable.None},t.sanitizeFilePath=function(e,t){return s.isWindows&&a.endsWith(e,":")&&(e+=r.sep),r.isAbsolute(e)||(e=r.join(t,e)),e=r.normalize(e),s.isWindows?(e=a.rtrim(e,r.sep),a.endsWith(e,":")&&(e+=r.sep)):(e=a.rtrim(e,r.sep))||(e=r.sep),e}}),define(e[30],t([0,1,3,46,20,12,35,29,8,4]),function(e,t,n,r,i,o,s,a,u,c){"use strict";function l(e){return o.nfcall(r.readdir,e)}function f(e){return h(e).then(function(t){
  return t.isDirectory()&&!t.isSymbolicLink()?l(e).then(function(t){return n.TPromise.join(t.map(function(t){return f(i.join(e,t))}))}).then(function(){return p(e)}):g(e)},function(e){if("ENOENT"!==e.code)return n.TPromise.wrapError(e)})}function d(e){return o.nfcall(s.stat,e)}function h(e){return o.nfcall(s.lstat,e)}function p(e){return o.nfcall(s.rmdir,e)}function g(e){return o.nfcall(s.unlink,e)}function m(e,t,n){return function(e){var t=_[e];if(!t){t=new o.Queue,_[e]=t;c.once(t.onFinished)(function(){delete _[e],t.dispose()})}return t}(function(e){var t=e;(u.isWindows||u.isMacintosh)&&(t=t.toLowerCase());return t}(e)).queue(function(){return o.nfcall(r.writeFileAndFlush,e,t,n)})}function v(e){return d(e).then(function(e){return e.isDirectory()},function(){return!1})}function y(e,t){return void 0===t&&(b||(b=a.tmpdir()),t=b),o.nfcall(r.del,e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=l,t.exists=function(e){return new n.TPromise(function(t){return s.exists(e,t)})},t.chmod=function(e,t){
  return o.nfcall(s.chmod,e,t)},t.mkdirp=r.mkdirp,t.rimraf=f,t.realpath=function(e){return o.nfcall(r.realpath,e)},t.stat=d,t.statLink=function(e){return o.nfcall(r.statLink,e)},t.lstat=h,t.rename=function(e,t){return o.nfcall(s.rename,e,t)},t.rmdir=p,t.unlink=g,t.symlink=function(e,t,n){return o.nfcall(s.symlink,e,t,n)},t.readlink=function(e){return o.nfcall(s.readlink,e)},t.truncate=function(e,t){return o.nfcall(s.truncate,e,t)},t.readFile=function(e,t){return o.nfcall(s.readFile,e,t)};var _=Object.create(null);t.writeFile=m,t.readDirsInDir=function(e){return l(e).then(function(t){return n.TPromise.join(t.map(function(t){return v(i.join(e,t))})).then(function(e){return t.filter(function(t,n){return e[n]})})})},t.dirExists=v,t.fileExists=function(e){return d(e).then(function(e){return e.isFile()},function(){return!1})};var b=null;t.del=y,t.whenDeleted=function(e){return new n.TPromise(function(t){var n=!1,r=setInterval(function(){n||(n=!0,s.exists(e,function(e){n=!1,e||(clearInterval(r),t(null))}))},1e3)})},
  t.copy=function(e,t){return o.nfcall(r.copy,e,t)}}),define(e[99],t([0,1,6,4,12,17,13]),function(e,t,n,r,i,o,s){"use strict";function a(e,t){void 0===t&&(t=void 0);var n=Buffer.allocUnsafe(4),r=function(e){return void 0===e?{buffer:d,type:f.Undefined}:"string"==typeof e?{buffer:Buffer.from(e),type:f.String}:Buffer.isBuffer(e)?{buffer:e,type:f.Buffer}:{buffer:Buffer.from(JSON.stringify(e)),type:f.Object}}(t),i=r.buffer,o=r.type,s=Buffer.from(JSON.stringify([e,o]));return n.writeUInt32BE(s.byteLength,0),Buffer.concat([n,s,i])}function u(e){var t=e.readUInt32BE(0),n=e.slice(4,4+t),r=e.slice(4+t),i=JSON.parse(n.toString());return{header:i[0],body:function(e,t){switch(t){case f.Undefined:return;case f.String:return e.toString();case f.Buffer:return e;case f.Object:return JSON.parse(e.toString())}}(r,i[1])}}function c(e){return{call:function(t,n,r){return e.then(function(e){return e.call(t,n,r)})},listen:function(t,n){var i=new r.Relay;return e.then(function(e){return i.input=e.listen(t,n)}),i.event}}}
  Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Promise=100]="Promise",e[e.PromiseCancel=101]="PromiseCancel",e[e.EventListen=102]="EventListen",e[e.EventDispose=103]="EventDispose"}(t.RequestType||(t.RequestType={}));!function(e){e[e.Initialize=200]="Initialize",e[e.PromiseSuccess=201]="PromiseSuccess",e[e.PromiseError=202]="PromiseError",e[e.PromiseErrorObj=203]="PromiseErrorObj",e[e.EventFire=204]="EventFire"}(t.ResponseType||(t.ResponseType={}));var l;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Idle=1]="Idle"}(l||(l={}));var f;!function(e){e[e.Undefined=0]="Undefined",e[e.String=1]="String",e[e.Buffer=2]="Buffer",e[e.Object=3]="Object"}(f||(f={}));var d=Buffer.allocUnsafe(0),h=function(){function e(e){var t=this;this.protocol=e,this.channels=new Map,this.activeRequests=new Map,this.protocolListener=this.protocol.onMessage(function(e){return t.onRawMessage(e)}),this.sendResponse({type:200})}return e.prototype.registerChannel=function(e,t){this.channels.set(e,t)},
  e.prototype.sendResponse=function(e){switch(e.type){case 200:return this.sendBuffer(a([e.type]));case 201:case 202:case 204:case 203:return this.sendBuffer(a([e.type,e.id],e.data))}},e.prototype.sendBuffer=function(e){try{this.protocol.send(e)}catch(e){}},e.prototype.onRawMessage=function(e){var t=u(e),n=t.header,r=t.body,i=n[0];switch(i){case 100:return this.onPromise({type:i,id:n[1],channelName:n[2],name:n[3],arg:r});case 102:return this.onEventListen({type:i,id:n[1],channelName:n[2],name:n[3],arg:r});case 101:case 103:return this.disposeActiveRequest({type:i,id:n[1]})}},e.prototype.onPromise=function(e){var t,r=this,i=this.channels.get(e.channelName),s=new o.CancellationTokenSource;try{t=i.call(e.name,e.arg,s.token)}catch(e){t=Promise.reject(e)}var a=e.id;t.then(function(t){r.sendResponse({id:a,data:t,type:201}),r.activeRequests.delete(e.id)},function(t){t instanceof Error?r.sendResponse({id:a,data:{message:t.message,name:t.name,stack:t.stack?t.stack.split?t.stack.split("\n"):t.stack:void 0},type:202
  }):r.sendResponse({id:a,data:t,type:203}),r.activeRequests.delete(e.id)});var u=n.toDisposable(function(){return s.cancel()});this.activeRequests.set(e.id,u)},e.prototype.onEventListen=function(e){var t=this,n=this.channels.get(e.channelName),r=e.id,i=n.listen(e.name,e.arg)(function(e){return t.sendResponse({id:r,data:e,type:204})});this.activeRequests.set(e.id,i)},e.prototype.disposeActiveRequest=function(e){var t=this.activeRequests.get(e.id);t&&(t.dispose(),this.activeRequests.delete(e.id))},e.prototype.dispose=function(){this.protocolListener.dispose(),this.protocolListener=null,this.activeRequests.forEach(function(e){return e.dispose()}),this.activeRequests.clear()},e}();t.ChannelServer=h;var p=function(){function e(e){var t=this;this.protocol=e,this.state=l.Uninitialized,this.activeRequests=new Set,this.handlers=new Map,this.lastRequestId=0,this._onDidInitialize=new r.Emitter,this.onDidInitialize=this._onDidInitialize.event,this.protocolListener=this.protocol.onMessage(function(e){return t.onBuffer(e)})
  }return e.prototype.getChannel=function(e){var t=this;return{call:function(n,r,i){return t.requestPromise(e,n,r,i)},listen:function(n,r){return t.requestEvent(e,n,r)}}},e.prototype.requestPromise=function(e,t,r,a){var u=this;void 0===a&&(a=o.CancellationToken.None);var c=this.lastRequestId++,l={id:c,type:100,channelName:e,name:t,arg:r};if(a.isCancellationRequested)return Promise.reject(s.canceled());var f,d=new Promise(function(e,t){if(a.isCancellationRequested)return t(s.canceled());var r=i.createCancelablePromise(function(e){return u.whenInitialized()});r.then(function(){r=null;u.handlers.set(c,function(n){switch(n.type){case 201:u.handlers.delete(c),e(n.data);break;case 202:u.handlers.delete(c);var r=new Error(n.data.message);r.stack=n.data.stack,r.name=n.data.name,t(r);break;case 203:u.handlers.delete(c),t(n.data)}}),u.sendRequest(l)});var o=function(){r?(r.cancel(),r=null):u.sendRequest({id:c,type:101}),t(s.canceled())},d=a.onCancellationRequested(o);f=n.combinedDisposable([n.toDisposable(o),d])})
  ;return this.activeRequests.add(f),i.always(d,function(){return u.activeRequests.delete(f)}),d},e.prototype.requestEvent=function(e,t,n){var o=this,s=this.lastRequestId++,a={id:s,type:102,channelName:e,name:t,arg:n},u=null,c=new r.Emitter({onFirstListenerAdd:function(){(u=i.createCancelablePromise(function(e){return o.whenInitialized()})).then(function(){u=null,o.activeRequests.add(c),o.sendRequest(a)})},onLastListenerRemove:function(){u?(u.cancel(),u=null):(o.activeRequests.delete(c),o.sendRequest({id:s,type:103}))}});return this.handlers.set(s,function(e){return c.fire(e.data)}),c.event},e.prototype.sendRequest=function(e){switch(e.type){case 100:case 102:return this.sendBuffer(a([e.type,e.id,e.channelName,e.name],e.arg));case 101:case 103:return this.sendBuffer(a([e.type,e.id]))}},e.prototype.sendBuffer=function(e){try{this.protocol.send(e)}catch(e){}},e.prototype.onBuffer=function(e){var t=u(e),n=t.header,r=t.body;switch(n[0]){case 200:return this.onResponse({type:n[0]});case 201:case 202:case 204:
  case 203:return this.onResponse({type:n[0],id:n[1],data:r})}},e.prototype.onResponse=function(e){if(200===e.type)return this.state=l.Idle,void this._onDidInitialize.fire();var t=this.handlers.get(e.id);t&&t(e)},e.prototype.whenInitialized=function(){return this.state===l.Idle?Promise.resolve(null):r.toNativePromise(this.onDidInitialize)},e.prototype.dispose=function(){this.protocolListener.dispose(),this.protocolListener=null,this.activeRequests.forEach(function(e){return e.dispose()}),this.activeRequests.clear()},e}();t.ChannelClient=p;var g=function(){function e(e){var t=this;this.channels=new Map,this.channelClients=new Map,this.onClientAdded=new r.Emitter,e(function(e){var n=e.protocol,i=e.onDidClientDisconnect;r.once(n.onMessage)(function(e){var r=new h(n),o=new p(n);t.channels.forEach(function(e,t){return r.registerChannel(t,e)});var s=e.toString();t.channelClients.has(s)&&console.warn("IPC client with id '"+s+"' is already registered."),t.channelClients.set(s,o),t.onClientAdded.fire(s),i(function(){
  r.dispose(),o.dispose(),t.channelClients.delete(s)})})})}return Object.defineProperty(e.prototype,"clientKeys",{get:function(){var e=[];return this.channelClients.forEach(function(t,n){return e.push(n)}),e},enumerable:!0,configurable:!0}),e.prototype.getChannel=function(e,t){var n=this;return{call:function(r,i,o){return c(t.routeCall(n.clientKeys,r,i).then(function(e){return n.getClient(e)}).then(function(t){return t.getChannel(e)})).call(r,i,o)},listen:function(r,i){return c(t.routeEvent(n.clientKeys,r,i).then(function(e){return n.getClient(e)}).then(function(t){return t.getChannel(e)})).listen(r,i)}}},e.prototype.registerChannel=function(e,t){this.channels.set(e,t)},e.prototype.getClient=function(e){var t=this;if(!e)return Promise.reject(new Error("Client id should be provided"));var n=this.channelClients.get(e);return n?Promise.resolve(n):new Promise(function(n){r.once(r.filterEvent(t.onClientAdded.event,function(t){return t===e}))(function(){return n(t.channelClients.get(e))})})},
  e.prototype.dispose=function(){this.channels.clear(),this.channelClients.clear(),this.onClientAdded.dispose()},e}();t.IPCServer=g;var m=function(){function e(e,t){e.send(Buffer.from(t)),this.channelClient=new p(e),this.channelServer=new h(e)}return e.prototype.getChannel=function(e){return this.channelClient.getChannel(e)},e.prototype.registerChannel=function(e,t){this.channelServer.registerChannel(e,t)},e.prototype.dispose=function(){this.channelClient.dispose(),this.channelClient=null,this.channelServer.dispose(),this.channelServer=null},e}();t.IPCClient=m,t.getDelayedChannel=c,t.getNextTickChannel=function(e){var t=!1;return{call:function(n,r,o){return t?e.call(n,r,o):i.timeout(0).then(function(){return t=!0}).then(function(){return e.call(n,r,o)})},listen:function(n,o){if(t)return e.listen(n,o);var s=new r.Relay;return i.timeout(0).then(function(){return t=!0}).then(function(){return s.input=e.listen(n,o)}),s.event}}}}),define(e[100],t([0,1,44,4,99,20,29,38,12]),function(e,t,r,i,o,s,a,u,c){"use strict"
  ;Object.defineProperty(t,"__esModule",{value:!0}),t.generateRandomPipeName=function(){var e=u.generateUuid();return"win32"===process.platform?"\\\\.\\pipe\\vscode-ipc-"+e+"-sock":s.join(a.tmpdir(),"vscode-ipc-"+e+".sock")};var l=function(){function e(t,n){var r=this;this._socket=t,this._onMessage=new i.Emitter,this.onMessage=this._onMessage.event,this._onClose=new i.Emitter,this.onClose=this._onClose.event,this._writeBuffer=new(function(){function e(){this._data=[],this._totalLength=0}return e.prototype.add=function(e,t){var n=0===this._totalLength;return this._data.push(e,t),this._totalLength+=e.length+t.length,n},e.prototype.take=function(){var e=Buffer.concat(this._data,this._totalLength);return this._data.length=0,this._totalLength=0,e},e}()),this._isDisposed=!1,this._chunks=[];var o=0,s={readHead:!0,bodyLen:-1},a=function(t){for(r._chunks.push(t),o+=t.length;o>0;){if(s.readHead){if(!(o>=e._headerLen))break;n=Buffer.concat(r._chunks);s.bodyLen=n.readUInt32BE(0),s.readHead=!1;a=n.slice(e._headerLen)
  ;o=a.length,r._chunks=[a]}if(!s.readHead){if(!(o>=s.bodyLen))break;var n,i=(n=Buffer.concat(r._chunks)).slice(0,s.bodyLen),a=n.slice(s.bodyLen);if(o=a.length,r._chunks=[a],s.bodyLen=-1,s.readHead=!0,r._onMessage.fire(i),r._isDisposed)break}}},u=function(){if(n&&n.length>0){var e=n;n=null,a(e)}};this._firstChunkTimer=new c.TimeoutTimer,this._firstChunkTimer.setIfNotSet(function(){u()},0),this._socketDataListener=function(e){u(),a(e)},t.on("data",this._socketDataListener),this._socketEndListener=function(){u()},t.on("end",this._socketEndListener),this._socketCloseListener=function(){r._onClose.fire()},t.once("close",this._socketCloseListener)}return e.prototype.dispose=function(){this._isDisposed=!0,this._firstChunkTimer.dispose(),this._socket.removeListener("data",this._socketDataListener),this._socket.removeListener("end",this._socketEndListener),this._socket.removeListener("close",this._socketCloseListener)},e.prototype.end=function(){this._socket.end()},e.prototype.getBuffer=function(){
  return Buffer.concat(this._chunks)},e.prototype.send=function(t){var n=Buffer.allocUnsafe(e._headerLen);n.writeUInt32BE(t.length,0,!0),this._writeSoon(n,t)},e.prototype._writeSoon=function(e,t){var n=this;this._writeBuffer.add(e,t)&&setImmediate(function(){n._socket.destroyed||n._socket.write(n._writeBuffer.take())})},e._headerLen=4,e}();t.Protocol=l;var f=function(e){function t(n){var r=e.call(this,t.toClientConnectionEvent(n))||this;return r.server=n,r}return n(t,e),t.toClientConnectionEvent=function(e){var t=i.fromNodeEventEmitter(e,"connection");return i.mapEvent(t,function(e){return{protocol:new l(e),onDidClientDisconnect:i.once(i.fromNodeEventEmitter(e,"close"))}})},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.server.close(),this.server=null},t}(o.IPCServer);t.Server=f;var d=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.protocol=t,r}return n(t,e),t.fromSocket=function(e,n){return new t(new l(e),n)},Object.defineProperty(t.prototype,"onClose",{get:function(){
  return this.protocol.onClose},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){e.prototype.dispose.call(this),this.protocol.end()},t}(o.IPCClient);t.Client=d,t.serve=function(e){return new Promise(function(t,n){var i=r.createServer();i.on("error",n),i.listen(e,function(){i.removeListener("error",n),t(new f(i))})})},t.connect=function(e,t){return new Promise(function(n,i){var o=r.createConnection(e,function(){o.removeListener("error",i),n(d.fromSocket(o,t))});o.once("error",i)})}}),define(e[106],t([0,1,55,97,19,8,9]),function(e,t,n,r,i,o,s){"use strict";function a(e,t,n,i){if(!e||!t)return d;var o=e.length,s=t.length;if(o<s)return d;var a=e.toLowerCase();if(!i){if(-1===a.indexOf(n))return d}return function(e,t,n,i,o,s){for(var a=[],u=[],c=0;c<n;c++)for(var l=0;l<s;l++){var d=c*s+l,h=(c-1)*s+l-1,p=l>0?a[d-1]:0,g=c>0&&l>0?a[h]:0,m=c>0&&l>0?u[h]:0,v=void 0;(v=!g&&c>0?0:function(e,t,n,i,o,s,a){var u=0;if(t[n]!==o[s])return u;u+=1,a>0&&(u+=5*a);e[n]===i[s]&&(u+=1);if(0===s)u+=8;else{var c=function(e){
  switch(e){case 47:case 92:return 5;case 95:case 45:case 46:case 32:case 39:case 34:case 58:return 4;default:return 0}}(i.charCodeAt(s-1));c?u+=c:r.isUpper(i.charCodeAt(s))&&(u+=1)}return u}(e,t,c,i,o,l,m))&&g+v>=p?(u[d]=m+1,a[d]=g+v):(u[d]=f,a[d]=p)}var y=[],_=n-1,b=s-1;for(;_>=0&&b>=0;){u[d=_*s+b]===f?b--:(y.push(b),_--,b--)}return[a[n*s-1],y.reverse()]}(t,n,s,e,a,o)}function u(e,t,n,u,c){if(!e||!t.value)return h;var l=u.getItemLabel(e);if(!l)return h;var f,d=u.getItemDescription(e),y=c[f=d?""+l+d+t.value+n:""+l+t.value+n];if(y)return y;var _=function(e,t,n,u,c){if(n&&o.isLinux?u.original===n:s.equalsIgnoreCase(u.original,n))return{score:p,labelMatch:[{start:0,end:e.length}],descriptionMatch:t?[{start:0,end:t.length}]:void 0};if(!n||!u.containsPathSeparator){var l=r.matchesPrefix(u.value,e);if(l)return{score:g,labelMatch:l};var f=r.matchesCamelCase(u.value,e);if(f)return{score:m,labelMatch:f};var d=a(e,u.value,u.lowercase,c),y=d[0],_=d[1];if(y)return{score:y+v,labelMatch:r.createMatches(_)}}if(t){var b=t
  ;n&&(b=""+t+i.nativeSep);var C=b.length,S=a(""+b+e,u.value,u.lowercase,c),x=S[0],w=S[1];if(x){var E=[],P=[];return r.createMatches(w).forEach(function(e){e.start<C&&e.end>C?(E.push({start:0,end:e.end-C}),P.push({start:e.start,end:C})):e.start>=C?E.push({start:e.start-C,end:e.end-C}):P.push(e)}),{score:x,labelMatch:E,descriptionMatch:P}}}return h}(l,d,u.getItemPath(e),t,n);return c[f]=_,_}function c(e,t,n){var r=t.labelMatch&&t.labelMatch.length,i=t.descriptionMatch&&t.descriptionMatch.length,o=-1,s=-1;if(i?o=t.descriptionMatch[0].start:r&&(o=t.labelMatch[0].start),r){if(s=t.labelMatch[t.labelMatch.length-1].end,i){var a=n.getItemDescription(e);a&&(s+=a.length)}}else i&&(s=t.descriptionMatch[t.descriptionMatch.length-1].end);return s-o}function l(e,t,r,i){var o=i.getItemLabel(e),s=i.getItemLabel(t),a=i.getItemDescription(e),u=i.getItemDescription(t),c=o.length+(a?a.length:0),l=s.length+(u?u.length:0);if(c!==l)return c-l;var f=i.getItemPath(e),d=i.getItemPath(t)
  ;return f&&d&&f.length!==d.length?f.length-d.length:o!==s?n.compareAnything(o,s,r.value):a&&u&&a!==u?n.compareAnything(a,u,r.value):f&&d&&f!==d?n.compareAnything(f,d,r.value):0}Object.defineProperty(t,"__esModule",{value:!0});var f=0,d=[f,[]];t.score=a;var h=Object.freeze({score:0}),p=1<<18,g=1<<17,m=65536,v=32768;t.prepareQuery=function(e){var t,n,r;return e&&(r=s.stripWildcards(e).replace(/\s/g,""),o.isWindows&&(r=r.replace(/\//g,i.nativeSep)),t=r.toLowerCase(),n=r.indexOf(i.nativeSep)>=0),{original:e,value:r,lowercase:t,containsPathSeparator:n}},t.scoreItem=u,t.compareItemsByScore=function(e,t,n,r,i,o,s){void 0===s&&(s=l);var a=u(e,n,r,i,o),f=u(t,n,r,i,o),d=a.score,h=f.score;if((d===p||h===p)&&d!==h)return d===p?-1:1;if(d===g||h===g){if(d!==h)return d===g?-1:1;var y=i.getItemLabel(e),_=i.getItemLabel(t);if(y.length!==_.length)return y.length-_.length}if(d===m||h===m){if(d!==h)return d===m?-1:1;var y=i.getItemLabel(e),_=i.getItemLabel(t),b=function(e,t){if(!e&&!t||!e.length&&!t.length)return 0
  ;if(!t||!t.length)return-1;if(!e||!e.length)return 1;var n=e[0].start,r=e[e.length-1].end-n,i=t[0].start,o=t[t.length-1].end-i;return r===o?0:o<r?1:-1}(a.labelMatch,f.labelMatch);if(0!==b)return b;if(y.length!==_.length)return y.length-_.length}if(d>v||h>v){if(h<v)return-1;if(d<v)return 1}if(d!==h)return d>h?-1:1;var C=c(e,a,i),S=c(t,f,i);return C&&S&&C!==S?S>C?-1:1:s(e,t,n,i)},t.fallbackCompare=l}),define(e[34],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){this.lineNumber=e,this.column=t}return e.prototype.equals=function(t){return e.equals(this,t)},e.equals=function(e,t){return!e&&!t||!!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){return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<t.column},e.prototype.isBeforeOrEqual=function(t){return e.isBeforeOrEqual(this,t)},e.isBeforeOrEqual=function(e,t){
  return e.lineNumber<t.lineNumber||!(t.lineNumber<e.lineNumber)&&e.column<=t.column},e.compare=function(e,t){var n=0|e.lineNumber,r=0|t.lineNumber;if(n===r){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},e}();t.Position=n}),define(e[43],t([0,1,34]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n,r){e>n||e===n&&t>r?(this.startLineNumber=n,this.startColumn=r,this.endLineNumber=e,this.endColumn=t):(this.startLineNumber=e,this.startColumn=t,this.endLineNumber=n,this.endColumn=r)}return 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){return!(t.lineNumber<e.startLineNumber||t.lineNumber>e.endLineNumber)&&(!(t.lineNumber===e.startLineNumber&&t.column<e.startColumn)&&!(t.lineNumber===e.endLineNumber&&t.column>e.endColumn))},e.prototype.containsRange=function(t){return e.containsRange(this,t)},e.containsRange=function(e,t){return!(t.startLineNumber<e.startLineNumber||t.endLineNumber<e.startLineNumber)&&(!(t.startLineNumber>e.endLineNumber||t.endLineNumber>e.endLineNumber)&&(!(t.startLineNumber===e.startLineNumber&&t.startColumn<e.startColumn)&&!(t.endLineNumber===e.endLineNumber&&t.endColumn>e.endColumn)))},e.prototype.plusRange=function(t){return e.plusRange(this,t)},e.plusRange=function(t,n){var r,i,o,s;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,i=t.startColumn),
  n.endLineNumber>t.endLineNumber?(o=n.endLineNumber,s=n.endColumn):n.endLineNumber===t.endLineNumber?(o=n.endLineNumber,s=Math.max(n.endColumn,t.endColumn)):(o=t.endLineNumber,s=t.endColumn),new e(r,i,o,s)},e.prototype.intersectRanges=function(t){return e.intersectRanges(this,t)},e.intersectRanges=function(t,n){var r=t.startLineNumber,i=t.startColumn,o=t.endLineNumber,s=t.endColumn,a=n.startLineNumber,u=n.startColumn,c=n.endLineNumber,l=n.endColumn;return r<a?(r=a,i=u):r===a&&(i=Math.max(i,u)),o>c?(o=c,s=l):o===c&&(s=Math.min(s,l)),r>o?null:r===o&&i>s?null:new e(r,i,o,s)},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 n.Position(this.endLineNumber,this.endColumn)},e.prototype.getStartPosition=function(){return new n.Position(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){return void 0===n&&(n=t),new e(t.lineNumber,t.column,n.lineNumber,n.column)},e.lift=function(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null},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){
  return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<e.startColumn)},e.areIntersecting=function(e,t){return!(e.endLineNumber<t.startLineNumber||e.endLineNumber===t.startLineNumber&&e.endColumn<=t.startColumn)&&!(t.endLineNumber<e.startLineNumber||t.endLineNumber===e.startLineNumber&&t.endColumn<=e.startColumn)},e.compareRangesUsingStarts=function(e,t){var n=0|e.startLineNumber,r=0|t.startLineNumber;if(n===r){var i=0|e.startColumn,o=0|t.startColumn;if(i===o){var s=0|e.endLineNumber,a=0|t.endLineNumber;if(s===a){return(0|e.endColumn)-(0|t.endColumn)}return s-a}return i-o}return n-r},e.compareRangesUsingEnds=function(e,t){return e.endLineNumber===t.endLineNumber?e.endColumn===t.endColumn?e.startLineNumber===t.startLineNumber?e.startColumn-t.startColumn:e.startLineNumber-t.startLineNumber:e.endColumn-t.endColumn:e.endLineNumber-t.endLineNumber},
  e.spansMultipleLines=function(e){return e.endLineNumber>e.startLineNumber},e}();t.Range=r}),define(e[111],t([0,1,43,34]),function(e,t,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o;!function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"}(o=t.SelectionDirection||(t.SelectionDirection={}));var s=function(e){function t(t,n,r,i){var o=e.call(this,t,n,r,i)||this;return o.selectionStartLineNumber=t,o.selectionStartColumn=n,o.positionLineNumber=r,o.positionColumn=i,o}return n(t,e),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(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?o.LTR:o.RTL},t.prototype.setEndPosition=function(e,n){return this.getDirection()===o.LTR?new t(this.startLineNumber,this.startColumn,e,n):new t(e,n,this.startLineNumber,this.startColumn)},t.prototype.getPosition=function(){return new i.Position(this.positionLineNumber,this.positionColumn)},t.prototype.setStartPosition=function(e,n){return this.getDirection()===o.LTR?new t(e,n,this.endLineNumber,this.endColumn):new t(this.endLineNumber,this.endColumn,e,n)},t.fromPositions=function(e,n){return void 0===n&&(n=e),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,s){return s===o.LTR?new t(e,n,r,i):new t(r,i,e,n)},t}(r.Range);t.Selection=s}),define(e[114],t([0,1]),function(e,t){"use strict";function n(e){return e<0?0:e>4294967295?4294967295:0|e}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t,n){for(var r=new Uint8Array(e*t),i=0,o=e*t;i<o;i++)r[i]=n;this._data=r,this.rows=e,this.cols=t}return 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},e}();t.Uint8Matrix=r;!function(e){e[e.MAX_SAFE_SMALL_INTEGER=1073741824]="MAX_SAFE_SMALL_INTEGER",e[e.MIN_SAFE_SMALL_INTEGER=-1073741824]="MIN_SAFE_SMALL_INTEGER",e[e.MAX_UINT_8=255]="MAX_UINT_8",e[e.MAX_UINT_16=65535]="MAX_UINT_16",e[e.MAX_UINT_32=4294967295]="MAX_UINT_32"}(t.Constants||(t.Constants={})),t.toUint8=function(e){return e<0?0:e>255?255:0|e},t.toUint32=n,t.toUint32Array=function(e){for(var t=e.length,r=new Uint32Array(t),i=0;i<t;i++)r[i]=n(e[i]);return r}}),define(e[42],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"}(t.OverviewRulerLane||(t.OverviewRulerLane={}));!function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(t.EndOfLinePreference||(t.EndOfLinePreference={}));!function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(t.DefaultEndOfLine||(t.DefaultEndOfLine={}));!function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"
  }(t.EndOfLineSequence||(t.EndOfLineSequence={}));var n=function(){function e(e){this.tabSize=0|e.tabSize,this.insertSpaces=Boolean(e.insertSpaces),this.defaultEOL=0|e.defaultEOL,this.trimAutoWhitespace=Boolean(e.trimAutoWhitespace)}return e.prototype.equals=function(e){return this.tabSize===e.tabSize&&this.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}},e}();t.TextModelResolvedOptions=n;var r=function(){return function(e,t){this.range=e,this.matches=t}}();t.FindMatch=r;!function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"
  }(t.TrackedRangeStickiness||(t.TrackedRangeStickiness={}));var i=function(){return function(e,t,n){this.reverseEdits=e,this.changes=t,this.trimAutoWhitespaceLineNumbers=n}}();t.ApplyEditsResult=i}),define(e[51],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.USUAL_WORD_SEPARATORS="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",t.DEFAULT_WORD_REGEXP=function(e){void 0===e&&(e="");for(var n="(-?\\d*\\.\\d\\w*)|([^",r=0;r<t.USUAL_WORD_SEPARATORS.length;r++)e.indexOf(t.USUAL_WORD_SEPARATORS[r])>=0||(n+="\\"+t.USUAL_WORD_SEPARATORS[r]);return n+="\\s]+)",new RegExp(n,"g")}(),t.ensureValidWordDefinition=function(e){var n=t.DEFAULT_WORD_REGEXP;if(e&&e instanceof RegExp)if(e.global)n=e;else{var r="g";e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),n=new RegExp(e.source,r)}return n.lastIndex=0,n},t.getWordAtText=function(e,t,n,r){t.lastIndex=0;var i=t.exec(n);if(!i)return null;var o=i[0].indexOf(" ")>=0?function(e,t,n,r){var i=e-1-r;t.lastIndex=0;for(var o;o=t.exec(n);){if(o.index>i)return null
  ;if(t.lastIndex>=i)return{word:o[0],startColumn:r+1+o.index,endColumn:r+1+t.lastIndex}}return null}(e,t,n,r):function(e,t,n,r){var i=e-1-r,o=n.lastIndexOf(" ",i-1)+1,s=n.indexOf(" ",i);-1===s&&(s=n.length),t.lastIndex=o;for(var a;a=t.exec(n);)if(a.index<=i&&t.lastIndex>=i)return{word:a[0],startColumn:r+1+a.index,endColumn:r+1+t.lastIndex};return null}(e,t,n,r);return t.lastIndex=0,o}}),define(e[136],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"}(t.IndentAction||(t.IndentAction={}));var n=function(){function e(e){if(this.open=e.open,this.close=e.close,this._standardTokenMask=0,Array.isArray(e.notIn))for(var t=0,n=e.notIn.length;t<n;t++){switch(e.notIn[t]){case"string":this._standardTokenMask|=2;break;case"comment":this._standardTokenMask|=1;break;case"regex":this._standardTokenMask|=4}}}return e.prototype.isOK=function(e){
  return 0==(this._standardTokenMask&e)},e}();t.StandardAutoClosingPairConditional=n}),define(e[40],t([0,1,27]),function(e,t,n){"use strict";function r(e,t,i,o){if(Array.isArray(e)){for(var s=0,a=0,u=e;a<u.length;a++){var c=r(u[a],t,i,o);if(10===c)return c;c>s&&(s=c)}return s}if("string"==typeof e)return o?"*"===e?5:e===i?10:0:0;if(e){var l=e.language,f=e.pattern,d=e.scheme,h=e.hasAccessToAllModels;if(!o&&!h)return 0;s=0;if(d)if(d===t.scheme)s=10;else{if("*"!==d)return 0;s=5}if(l)if(l===i)s=10;else{if("*"!==l)return 0;s=Math.max(s,5)}if(f){if(f!==t.fsPath&&!n.match(f,t.fsPath))return 0;s=10}return s}return 0}Object.defineProperty(t,"__esModule",{value:!0}),t.score=r}),define(e[142],t([0,1,6,4,3]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this._onDidChange=new r.Emitter,this.onDidChange=this._onDidChange.event,this._map=Object.create(null),this._promises=Object.create(null),this._colorMap=null}return e.prototype.fire=function(e){
  this._onDidChange.fire({changedLanguages:e,changedColorMap:!1})},e.prototype.register=function(e,t){var r=this;return this._map[e]=t,this.fire([e]),n.toDisposable(function(){r._map[e]===t&&(delete r._map[e],r.fire([e]))})},e.prototype.registerPromise=function(e,t){var n=this;return this._promises[e]=t.then(function(t){return delete n._promises[e],n.register(e,t)})},e.prototype.getPromise=function(e){var t=this,n=this.get(e);if(n)return i.TPromise.as(n);var r=this._promises[e];return r?r.then(function(n){return t.get(e)}):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(){return this._colorMap[2]},e}();t.TokenizationRegistryImpl=o}),define(e[145],t([0,1,114]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){
  return function(e,t){this.index=e,this.remainder=t}}();t.PrefixSumIndexOfResult=r;var i=function(){function e(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}return e.prototype.getCount=function(){return this.values.length},e.prototype.insertValues=function(e,t){e=n.toUint32(e);var r=this.values,i=this.prefixSum,o=t.length;return 0!==o&&(this.values=new Uint32Array(r.length+o),this.values.set(r.subarray(0,e),0),this.values.set(r.subarray(e),e+o),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(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.changeValue=function(e,t){return e=n.toUint32(e),t=n.toUint32(t),this.values[e]!==t&&(this.values[e]=t,e-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=e-1),!0)},e.prototype.removeValues=function(e,t){e=n.toUint32(e),
  t=n.toUint32(t);var r=this.values,i=this.prefixSum;if(e>=r.length)return!1;var o=r.length-e;return t>=o&&(t=o),0!==t&&(this.values=new Uint32Array(r.length-t),this.values.set(r.subarray(0,e),0),this.values.set(r.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(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)},e.prototype.getTotalValue=function(){return 0===this.values.length?0:this._getAccumulatedValue(this.values.length-1)},e.prototype.getAccumulatedValue=function(e){return e<0?0:(e=n.toUint32(e),this._getAccumulatedValue(e))},e.prototype._getAccumulatedValue=function(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];var t=this.prefixSumValidIndex[0]+1;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]
  ;return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]},e.prototype.getIndexOf=function(e){e=Math.floor(e),this.getTotalValue();for(var t,n,i,o=0,s=this.values.length-1;o<=s;)if(t=o+(s-o)/2|0,n=this.prefixSum[t],i=n-this.values[t],e<i)s=t-1;else{if(!(e>=n))break;o=t+1}return new r(t,e-i)},e}();t.PrefixSumComputer=i;var o=function(){function e(e){this._cacheAccumulatedValueStart=0,this._cache=null,this._actual=new i(e),this._bustCache()}return 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){if(e=Math.floor(e),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){for(var n=[],r=e;r<=t;r++)n[r-e]=this.getIndexOf(r);this._cache=n,this._cacheAccumulatedValueStart=e},e}();t.PrefixSumComputerWithCache=o}),define(e[63],t([0,1,145,34]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t,n,r){this._uri=e,this._lines=t,this._eol=n,this._versionId=r}return e.prototype.dispose=function(){this._lines.length=0},Object.defineProperty(e.prototype,"version",{get:function(){return this._versionId},enumerable:!0,configurable:!0}),e.prototype.getText=function(){return this._lines.join(this._eol)},e.prototype.onEvents=function(e){e.eol&&e.eol!==this._eol&&(this._eol=e.eol,this._lineStarts=null);for(var t=e.changes,n=0,i=t.length;n<i;n++){var o=t[n];this._acceptDeleteRange(o.range),
  this._acceptInsertText(new r.Position(o.range.startLineNumber,o.range.startColumn),o.text)}this._versionId=e.versionId},e.prototype._ensureLineStarts=function(){if(!this._lineStarts){for(var e=this._eol.length,t=this._lines.length,r=new Uint32Array(t),i=0;i<t;i++)r[i]=this._lines[i].length+e;this._lineStarts=new n.PrefixSumComputer(r)}},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)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);else{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))}},e.prototype._acceptInsertText=function(e,t){if(0!==t.length){var n=t.split(/\r\n|\r|\n/);if(1!==n.length){n[n.length-1]+=this._lines[e.lineNumber-1].substring(e.column-1),this._setLineText(e.lineNumber-1,this._lines[e.lineNumber-1].substring(0,e.column-1)+n[0]);for(var r=new Uint32Array(n.length-1),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)}else 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))}},e}();t.MirrorTextModel=i}),define(e[64],t([10,11]),function(e,t){return e.create("vs/base/common/errorMessage",t)}),define(e[41],t([0,1,64,15,14]),function(e,t,n,r,i){"use strict";function o(e,t){
  return e.message?t&&(e.stack||e.stacktrace)?n.localize(0,null,s(e),e.stack||e.stacktrace):s(e):n.localize(1,null)}function s(e){return"string"==typeof e.code&&"number"==typeof e.errno&&"string"==typeof e.syscall?n.localize(2,null,e.message):e.message}function a(e,t){if(void 0===e&&(e=null),void 0===t&&(t=!1),!e)return n.localize(3,null);if(Array.isArray(e)){var s=i.coalesce(e),u=a(s[0],t);return s.length>1?n.localize(4,null,u,s.length):u}if(r.isString(e))return e;if(e.detail){var c=e.detail;if(c.error)return o(c.error,t);if(c.exception)return o(c.exception,t)}return e.stack?o(e,t):e.message?e.message:n.localize(5,null)}Object.defineProperty(t,"__esModule",{value:!0}),t.toErrorMessage=a}),define(e[68],t([10,11]),function(e,t){return e.create("vs/base/common/severity",t)}),define(e[25],t([0,1,68,9]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i;!function(e){e[e.Ignore=0]="Ignore",e[e.Info=1]="Info",e[e.Warning=2]="Warning",e[e.Error=3]="Error"}(i||(i={})),function(e){
  var t="error",i="warning",o="warn",s="info",a=Object.create(null);a[e.Error]=n.localize(0,null),a[e.Warning]=n.localize(1,null),a[e.Info]=n.localize(2,null),e.fromValue=function(n){return n?r.equalsIgnoreCase(t,n)?e.Error:r.equalsIgnoreCase(i,n)||r.equalsIgnoreCase(o,n)?e.Warning:r.equalsIgnoreCase(s,n)?e.Info:e.Ignore:e.Ignore}}(i||(i={})),t.default=i}),define(e[70],t([10,11]),function(e,t){return e.create("vs/editor/common/config/editorOptions",t)});var s=this&&this.__assign||function(){return(s=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)};define(e[71],t([0,1,70,8,116,51,14,22]),function(e,t,n,r,i,o,a,u){"use strict";function c(e,t){return void 0===e?t:"false"!==e&&Boolean(e)}function l(e,t){return"string"!=typeof e?t:e}function f(e,t,n){return"string"!=typeof e?t:-1===n.indexOf(e)?t:e}function d(e,t,n,r){var i;return void 0===e?i=t:(i=parseInt(e,10),
  isNaN(i)&&(i=t)),i=Math.max(n,i),0|(i=Math.min(r,i))}function h(e,t){if("string"!=typeof e)return t;switch(e){case"hidden":return i.ScrollbarVisibility.Hidden;case"visible":return i.ScrollbarVisibility.Visible;default:return i.ScrollbarVisibility.Auto}}Object.defineProperty(t,"__esModule",{value:!0});var p;!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"}(p=t.RenderMinimap||(t.RenderMinimap={}));var g;!function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"}(g=t.WrappingIndent||(t.WrappingIndent={}));var m;!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"}(m=t.TextEditorCursorBlinkingStyle||(t.TextEditorCursorBlinkingStyle={})),t.blinkingStyleToString=function(e){if(e===m.Blink)return"blink";if(e===m.Expand)return"expand";if(e===m.Phase)return"phase"
  ;if(e===m.Smooth)return"smooth";if(e===m.Solid)return"solid";throw new Error("blinkingStyleToString: Unknown blinkingStyle")};var v;!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"}(v=t.TextEditorCursorStyle||(t.TextEditorCursorStyle={})),t.cursorStyleToString=function(e){if(e===v.Line)return"line";if(e===v.Block)return"block";if(e===v.Underline)return"underline";if(e===v.LineThin)return"line-thin";if(e===v.BlockOutline)return"block-outline";if(e===v.UnderlineThin)return"underline-thin";throw new Error("cursorStyleToString: Unknown cursorStyle")};!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.RenderLineNumbersType||(t.RenderLineNumbersType={}));var y=function(){function e(e){this.canUseLayerHinting=e.canUseLayerHinting,this.pixelRatio=e.pixelRatio,this.editorClassName=e.editorClassName,
  this.lineHeight=0|e.lineHeight,this.readOnly=e.readOnly,this.accessibilitySupport=e.accessibilitySupport,this.multiCursorModifier=e.multiCursorModifier,this.multiCursorMergeOverlapping=e.multiCursorMergeOverlapping,this.wordSeparators=e.wordSeparators,this.autoClosingBrackets=e.autoClosingBrackets,this.autoClosingQuotes=e.autoClosingQuotes,this.autoSurround=e.autoSurround,this.autoIndent=e.autoIndent,this.useTabStops=e.useTabStops,this.tabFocusMode=e.tabFocusMode,this.dragAndDrop=e.dragAndDrop,this.emptySelectionClipboard=e.emptySelectionClipboard,this.copyWithSyntaxHighlighting=e.copyWithSyntaxHighlighting,this.layoutInfo=e.layoutInfo,this.fontInfo=e.fontInfo,this.viewInfo=e.viewInfo,this.wrappingInfo=e.wrappingInfo,this.contribInfo=e.contribInfo,this.showUnused=e.showUnused}return e.prototype.equals=function(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&&a.equals(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&&u.equals(t.codeActionsOnSave,n.codeActionsOnSave)&&t.codeActionsOnSaveTimeout===n.codeActionsOnSaveTimeout&&t.lightbulbEnabled===n.lightbulbEnabled
  },e._equalsQuickSuggestions=function(e,t){return"boolean"==typeof e?"boolean"==typeof t&&e===t:"boolean"!=typeof t&&(e.comments===t.comments&&e.other===t.other&&e.strings===t.strings)},e}();t.InternalEditorOptions=y;var _=function(){function e(){}return e.validate=function(e,t){var n=e.wordWrap;!0===n?n="on":!1===n&&(n="off"),n=f(n,t.wordWrap,["off","on","wordWrapColumn","bounded"]);var i,o=this._sanitizeViewInfo(e,t.viewInfo),s=this._sanitizeContribInfo(e,t.contribInfo);"string"==typeof e.multiCursorModifier&&(i="ctrlCmd"===e.multiCursorModifier?r.isMacintosh?"metaKey":"ctrlKey":"altKey");var a,u,h,p=f(i,t.multiCursorModifier,["altKey","metaKey","ctrlKey"]);return"boolean"==typeof e.autoClosingBrackets&&!1===e.autoClosingBrackets?(a="never",u="never",h="never"):(a=f(e.autoClosingBrackets,t.autoClosingBrackets,["always","languageDefined","beforeWhitespace","never"]),u=f(e.autoClosingQuotes,t.autoClosingQuotes,["always","languageDefined","beforeWhitespace","never"]),
  h=f(e.autoSurround,t.autoSurround,["languageDefined","brackets","quotes","never"])),{inDiffEditor:c(e.inDiffEditor,t.inDiffEditor),wordSeparators:l(e.wordSeparators,t.wordSeparators),lineNumbersMinChars:d(e.lineNumbersMinChars,t.lineNumbersMinChars,1,10),lineDecorationsWidth:void 0===e.lineDecorationsWidth?t.lineDecorationsWidth:e.lineDecorationsWidth,readOnly:c(e.readOnly,t.readOnly),mouseStyle:f(e.mouseStyle,t.mouseStyle,["text","default","copy"]),disableLayerHinting:c(e.disableLayerHinting,t.disableLayerHinting),automaticLayout:c(e.automaticLayout,t.automaticLayout),wordWrap:n,wordWrapColumn:d(e.wordWrapColumn,t.wordWrapColumn,1,1073741824),wordWrapMinified:c(e.wordWrapMinified,t.wordWrapMinified),wrappingIndent:function(e,t){return"string"!=typeof e?t:"same"===e?g.Same:"indent"===e?g.Indent:"deepIndent"===e?g.DeepIndent:g.None}(e.wrappingIndent,t.wrappingIndent),wordWrapBreakBeforeCharacters:l(e.wordWrapBreakBeforeCharacters,t.wordWrapBreakBeforeCharacters),
  wordWrapBreakAfterCharacters:l(e.wordWrapBreakAfterCharacters,t.wordWrapBreakAfterCharacters),wordWrapBreakObtrusiveCharacters:l(e.wordWrapBreakObtrusiveCharacters,t.wordWrapBreakObtrusiveCharacters),autoClosingBrackets:a,autoClosingQuotes:u,autoSurround:h,autoIndent:c(e.autoIndent,t.autoIndent),dragAndDrop:c(e.dragAndDrop,t.dragAndDrop),emptySelectionClipboard:c(e.emptySelectionClipboard,t.emptySelectionClipboard),copyWithSyntaxHighlighting:c(e.copyWithSyntaxHighlighting,t.copyWithSyntaxHighlighting),useTabStops:c(e.useTabStops,t.useTabStops),multiCursorModifier:p,multiCursorMergeOverlapping:c(e.multiCursorMergeOverlapping,t.multiCursorMergeOverlapping),accessibilitySupport:f(e.accessibilitySupport,t.accessibilitySupport,["auto","on","off"]),showUnused:c(e.showUnused,t.showUnused),viewInfo:o,contribInfo:s}},e._sanitizeScrollbarOpts=function(e,t,n){if("object"!=typeof e)return t;var r=d(e.horizontalScrollbarSize,t.horizontalScrollbarSize,0,1e3),i=d(e.verticalScrollbarSize,t.verticalScrollbarSize,0,1e3)
  ;return{vertical:h(e.vertical,t.vertical),horizontal:h(e.horizontal,t.horizontal),arrowSize:d(e.arrowSize,t.arrowSize,0,1e3),useShadows:c(e.useShadows,t.useShadows),verticalHasArrows:c(e.verticalHasArrows,t.verticalHasArrows),horizontalHasArrows:c(e.horizontalHasArrows,t.horizontalHasArrows),horizontalScrollbarSize:r,horizontalSliderSize:d(e.horizontalSliderSize,r,0,1e3),verticalScrollbarSize:i,verticalSliderSize:d(e.verticalSliderSize,i,0,1e3),handleMouseWheel:c(e.handleMouseWheel,t.handleMouseWheel),mouseWheelScrollSensitivity:n}},e._sanitizeMinimapOpts=function(e,t){return"object"!=typeof e?t:{enabled:c(e.enabled,t.enabled),side:f(e.side,t.side,["right","left"]),showSlider:f(e.showSlider,t.showSlider,["always","mouseover"]),renderCharacters:c(e.renderCharacters,t.renderCharacters),maxColumn:d(e.maxColumn,t.maxColumn,1,1e4)}},e._santizeFindOpts=function(e,t){return"object"!=typeof e?t:{seedSearchStringFromSelection:c(e.seedSearchStringFromSelection,t.seedSearchStringFromSelection),
  autoFindInSelection:c(e.autoFindInSelection,t.autoFindInSelection),globalFindClipboard:c(e.globalFindClipboard,t.globalFindClipboard)}},e._sanitizeParameterHintOpts=function(e,t){return"object"!=typeof e?t:{enabled:c(e.enabled,t.enabled),cycle:c(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:c(n.enabled,t.enabled),delay:d(n.delay,t.delay,0,1e4),sticky:c(n.sticky,t.sticky)}},e._sanitizeSuggestOpts=function(e,t){var n=e.suggest||{};return{filterGraceful:c(n.filterGraceful,t.filterGraceful),snippets:f(e.snippetSuggestions,t.snippets,["top","bottom","inline","none"]),snippetsPreventQuickSuggestions:c(n.snippetsPreventQuickSuggestions,t.filterGraceful),localityBonus:c(n.localityBonus,t.localityBonus)}},e._sanitizeTabCompletionOpts=function(e,t){return!1===e?"off":!0===e?"onlySnippets":f(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(d(e.rulers[r],0,0,1e4));n.sort()}var o=t.renderLineNumbers,s=t.renderCustomLineNumbers;if(void 0!==e.lineNumbers){var a=e.lineNumbers;!0===a?a="on":!1===a&&(a="off"),"function"==typeof a?(o=4,s=a):o="interval"===a?3:"relative"===a?2:"on"===a?1:0}var u=c(e.fontLigatures,t.fontLigatures),h=c(e.disableMonospaceOptimizations,t.disableMonospaceOptimizations)||u,p=e.renderWhitespace;!0===p?p="boundary":!1===p&&(p="none"),p=f(e.renderWhitespace,t.renderWhitespace,["none","boundary","all"]);var g=e.renderLineHighlight;!0===g?g="line":!1===g&&(g="none"),g=f(e.renderLineHighlight,t.renderLineHighlight,["none","gutter","line","all"]);var y=function(e,t){var n=parseFloat(e);return isNaN(n)&&(n=t),n}(e.mouseWheelScrollSensitivity,t.scrollbar.mouseWheelScrollSensitivity);0===y&&(y=1);var _=this._sanitizeScrollbarOpts(e.scrollbar,t.scrollbar,y),b=this._sanitizeMinimapOpts(e.minimap,t.minimap);return{extraEditorClassName:l(e.extraEditorClassName,t.extraEditorClassName),
  disableMonospaceOptimizations:h,rulers:n,ariaLabel:l(e.ariaLabel,t.ariaLabel),renderLineNumbers:o,renderCustomLineNumbers:s,selectOnLineNumbers:c(e.selectOnLineNumbers,t.selectOnLineNumbers),glyphMargin:c(e.glyphMargin,t.glyphMargin),revealHorizontalRightPadding:d(e.revealHorizontalRightPadding,t.revealHorizontalRightPadding,0,1e3),roundedSelection:c(e.roundedSelection,t.roundedSelection),overviewRulerLanes:d(e.overviewRulerLanes,t.overviewRulerLanes,0,3),overviewRulerBorder:c(e.overviewRulerBorder,t.overviewRulerBorder),cursorBlinking:function(e,t){if("string"!=typeof e)return t;switch(e){case"blink":return m.Blink;case"smooth":return m.Smooth;case"phase":return m.Phase;case"expand":return m.Expand;case"visible":case"solid":return m.Solid}return m.Blink}(e.cursorBlinking,t.cursorBlinking),mouseWheelZoom:c(e.mouseWheelZoom,t.mouseWheelZoom),cursorStyle:function(e,t){
  return"string"!=typeof e?t:"line"===e?v.Line:"block"===e?v.Block:"underline"===e?v.Underline:"line-thin"===e?v.LineThin:"block-outline"===e?v.BlockOutline:"underline-thin"===e?v.UnderlineThin:v.Line}(e.cursorStyle,t.cursorStyle),cursorWidth:d(e.cursorWidth,t.cursorWidth,0,Number.MAX_VALUE),hideCursorInOverviewRuler:c(e.hideCursorInOverviewRuler,t.hideCursorInOverviewRuler),scrollBeyondLastLine:c(e.scrollBeyondLastLine,t.scrollBeyondLastLine),scrollBeyondLastColumn:d(e.scrollBeyondLastColumn,t.scrollBeyondLastColumn,0,1073741824),smoothScrolling:c(e.smoothScrolling,t.smoothScrolling),stopRenderingLineAfter:d(e.stopRenderingLineAfter,t.stopRenderingLineAfter,-1,1073741824),renderWhitespace:p,renderControlCharacters:c(e.renderControlCharacters,t.renderControlCharacters),fontLigatures:u,renderIndentGuides:c(e.renderIndentGuides,t.renderIndentGuides),highlightActiveIndentGuide:c(e.highlightActiveIndentGuide,t.highlightActiveIndentGuide),renderLineHighlight:g,scrollbar:_,minimap:b,
  fixedOverflowWidgets:c(e.fixedOverflowWidgets,t.fixedOverflowWidgets)}},e._sanitizeContribInfo=function(e,t){var n;n="object"==typeof e.quickSuggestions?s({other:!0},e.quickSuggestions):c(e.quickSuggestions,t.quickSuggestions),"boolean"==typeof e.acceptSuggestionOnEnter&&(e.acceptSuggestionOnEnter=e.acceptSuggestionOnEnter?"on":"off");var r=this._santizeFindOpts(e.find,t.find);return{selectionClipboard:c(e.selectionClipboard,t.selectionClipboard),hover:this._santizeHoverOpts(e.hover,t.hover),links:c(e.links,t.links),contextmenu:c(e.contextmenu,t.contextmenu),quickSuggestions:n,quickSuggestionsDelay:d(e.quickSuggestionsDelay,t.quickSuggestionsDelay,-1073741824,1073741824),parameterHints:this._sanitizeParameterHintOpts(e.parameterHints,t.parameterHints),iconsInSuggestions:c(e.iconsInSuggestions,t.iconsInSuggestions),formatOnType:c(e.formatOnType,t.formatOnType),formatOnPaste:c(e.formatOnPaste,t.formatOnPaste),suggestOnTriggerCharacters:c(e.suggestOnTriggerCharacters,t.suggestOnTriggerCharacters),
  acceptSuggestionOnEnter:f(e.acceptSuggestionOnEnter,t.acceptSuggestionOnEnter,["on","smart","off"]),acceptSuggestionOnCommitCharacter:c(e.acceptSuggestionOnCommitCharacter,t.acceptSuggestionOnCommitCharacter),wordBasedSuggestions:c(e.wordBasedSuggestions,t.wordBasedSuggestions),suggestSelection:f(e.suggestSelection,t.suggestSelection,["first","recentlyUsed","recentlyUsedByPrefix"]),suggestFontSize:d(e.suggestFontSize,t.suggestFontSize,0,1e3),suggestLineHeight:d(e.suggestLineHeight,t.suggestLineHeight,0,1e3),tabCompletion:this._sanitizeTabCompletionOpts(e.tabCompletion,t.tabCompletion),suggest:this._sanitizeSuggestOpts(e,t.suggest),selectionHighlight:c(e.selectionHighlight,t.selectionHighlight),occurrencesHighlight:c(e.occurrencesHighlight,t.occurrencesHighlight),codeLens:c(e.codeLens,t.codeLens),folding:c(e.folding,t.folding),foldingStrategy:f(e.foldingStrategy,t.foldingStrategy,["auto","indentation"]),showFoldingControls:f(e.showFoldingControls,t.showFoldingControls,["always","mouseover"]),
  matchBrackets:c(e.matchBrackets,t.matchBrackets),find:r,colorDecorators:c(e.colorDecorators,t.colorDecorators),lightbulbEnabled:c(!!e.lightbulb&&e.lightbulb.enabled,t.lightbulbEnabled),codeActionsOnSave:function(e,t){if(!e)return t;for(var n=Object.create(null),r=0,i=Object.keys(e);r<i.length;r++){var o=i[r],s=e[o];"boolean"==typeof s&&(n[o]=s)}return n}(e.codeActionsOnSave,{}),codeActionsOnSaveTimeout:d(e.codeActionsOnSaveTimeout,t.codeActionsOnSaveTimeout,1,1e4)}},e}();t.EditorOptionsValidator=_;var b=function(){function e(){}return e._tweakValidatedOptions=function(e,t){var r=2===t,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?n.localize(0,null):e.viewInfo.ariaLabel,renderLineNumbers:e.viewInfo.renderLineNumbers,renderCustomLineNumbers:e.viewInfo.renderCustomLineNumbers,selectOnLineNumbers:e.viewInfo.selectOnLineNumbers,
  glyphMargin:e.viewInfo.glyphMargin,revealHorizontalRightPadding:e.viewInfo.revealHorizontalRightPadding,roundedSelection:!r&&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:r?"none":e.viewInfo.renderWhitespace,renderControlCharacters:!r&&e.viewInfo.renderControlCharacters,fontLigatures:!r&&e.viewInfo.fontLigatures,renderIndentGuides:!r&&e.viewInfo.renderIndentGuides,highlightActiveIndentGuide:e.viewInfo.highlightActiveIndentGuide,renderLineHighlight:e.viewInfo.renderLineHighlight,
  scrollbar:e.viewInfo.scrollbar,minimap:{enabled:!r&&e.viewInfo.minimap.enabled,side:e.viewInfo.minimap.side,renderCharacters:e.viewInfo.minimap.renderCharacters,showSlider:e.viewInfo.minimap.showSlider,maxColumn:e.viewInfo.minimap.maxColumn},fixedOverflowWidgets:e.viewInfo.fixedOverflowWidgets},contribInfo:{selectionClipboard:e.contribInfo.selectionClipboard,hover:e.contribInfo.hover,links:!r&&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:!r&&e.contribInfo.selectionHighlight,occurrencesHighlight:!r&&e.contribInfo.occurrencesHighlight,codeLens:!r&&e.contribInfo.codeLens,folding:!r&&e.contribInfo.folding,foldingStrategy:e.contribInfo.foldingStrategy,showFoldingControls:e.contribInfo.showFoldingControls,matchBrackets:!r&&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,i=this._tweakValidatedOptions(t,n)
  ;if("string"==typeof i.lineDecorationsWidth&&/^\d+(\.\d+)?ch$/.test(i.lineDecorationsWidth)){r=parseFloat(i.lineDecorationsWidth.substr(0,i.lineDecorationsWidth.length-2))*e.fontInfo.typicalHalfwidthCharacterWidth}else r=d(i.lineDecorationsWidth,0,0,1e3);i.contribInfo.folding&&(r+=16);var o=C.compute({outerWidth:e.outerWidth,outerHeight:e.outerHeight,showGlyphMargin:i.viewInfo.glyphMargin,lineHeight:e.fontInfo.lineHeight,showLineNumbers:0!==i.viewInfo.renderLineNumbers,lineNumbersMinChars:i.lineNumbersMinChars,lineNumbersDigitCount:e.lineNumbersDigitCount,lineDecorationsWidth:r,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,verticalScrollbarWidth:i.viewInfo.scrollbar.verticalScrollbarSize,horizontalScrollbarHeight:i.viewInfo.scrollbar.horizontalScrollbarSize,scrollbarArrowSize:i.viewInfo.scrollbar.arrowSize,verticalScrollbarHasArrows:i.viewInfo.scrollbar.verticalHasArrows,minimap:i.viewInfo.minimap.enabled,minimapSide:i.viewInfo.minimap.side,
  minimapRenderCharacters:i.viewInfo.minimap.renderCharacters,minimapMaxColumn:i.viewInfo.minimap.maxColumn,pixelRatio:e.pixelRatio}),s=null,a=i.wordWrap,u=i.wordWrapColumn,c=i.wordWrapMinified;s=2===n?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1}:c&&e.isDominatedByLongLines?{isWordWrapMinified:!0,isViewportWrapping:!0,wrappingColumn:Math.max(1,o.viewportColumn)}:"on"===a?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.max(1,o.viewportColumn)}:"bounded"===a?{isWordWrapMinified:!1,isViewportWrapping:!0,wrappingColumn:Math.min(Math.max(1,o.viewportColumn),u)}:"wordWrapColumn"===a?{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:u}:{isWordWrapMinified:!1,isViewportWrapping:!1,wrappingColumn:-1};var l={inDiffEditor:i.inDiffEditor,isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:s.isWordWrapMinified,isViewportWrapping:s.isViewportWrapping,wrappingColumn:s.wrappingColumn,wrappingIndent:i.wrappingIndent,
  wordWrapBreakBeforeCharacters:i.wordWrapBreakBeforeCharacters,wordWrapBreakAfterCharacters:i.wordWrapBreakAfterCharacters,wordWrapBreakObtrusiveCharacters:i.wordWrapBreakObtrusiveCharacters},f="monaco-editor";return i.viewInfo.extraEditorClassName&&(f+=" "+i.viewInfo.extraEditorClassName),e.extraEditorClassName&&(f+=" "+e.extraEditorClassName),i.viewInfo.fontLigatures&&(f+=" enable-ligatures"),"default"===i.mouseStyle?f+=" mouse-default":"copy"===i.mouseStyle&&(f+=" mouse-copy"),new y({canUseLayerHinting:!i.disableLayerHinting,pixelRatio:e.pixelRatio,editorClassName:f,lineHeight:e.fontInfo.lineHeight,readOnly:i.readOnly,accessibilitySupport:n,multiCursorModifier:i.multiCursorModifier,multiCursorMergeOverlapping:i.multiCursorMergeOverlapping,wordSeparators:i.wordSeparators,autoClosingBrackets:i.autoClosingBrackets,autoClosingQuotes:i.autoClosingQuotes,autoSurround:i.autoSurround,autoIndent:i.autoIndent,useTabStops:i.useTabStops,tabFocusMode:!!i.readOnly||e.tabFocusMode,dragAndDrop:i.dragAndDrop,
  emptySelectionClipboard:i.emptySelectionClipboard&&e.emptySelectionClipboard,copyWithSyntaxHighlighting:i.copyWithSyntaxHighlighting,layoutInfo:o,fontInfo:e.fontInfo,viewInfo:i.viewInfo,wrappingInfo:l,contribInfo:i.contribInfo,showUnused:i.showUnused})},e}();t.InternalEditorOptionsFactory=b;var C=function(){function e(){}return e.compute=function(e){var t=0|e.outerWidth,n=0|e.outerHeight,r=e.showGlyphMargin,i=0|e.lineHeight,o=e.showLineNumbers,s=0|e.lineNumbersMinChars,a=0|e.lineNumbersDigitCount,u=0|e.lineDecorationsWidth,c=e.typicalHalfwidthCharacterWidth,l=e.maxDigitWidth,f=0|e.verticalScrollbarWidth,d=e.verticalScrollbarHasArrows,h=0|e.scrollbarArrowSize,g=0|e.horizontalScrollbarHeight,m=e.minimap,v=e.minimapSide,y=e.minimapRenderCharacters,_=0|e.minimapMaxColumn,b=e.pixelRatio,C=0;if(o){var S=Math.max(a,s);C=Math.round(S*l)}var x=0;r&&(x=i);var w,E,P,T,D=0,k=D+x,I=k+C,O=I+u,R=t-x-C-u;if(m){var A=void 0;b>=2?(w=y?p.Large:p.LargeBlocks,A=2/b):(w=y?p.Small:p.SmallBlocks,A=1/b)
  ;(P=Math.max(0,Math.floor((R-f-2)*A/(c+A))))/A>_&&(P=Math.floor(_*A)),T=R-P,"left"===v?(E=0,D+=P,k+=P,I+=P,O+=P):E=t-P-f}else E=0,P=0,w=p.None,T=R;var L=Math.max(1,Math.floor((T-f-2)/c)),M=d?h:0;return{width:t,height:n,glyphMarginLeft:D,glyphMarginWidth:x,glyphMarginHeight:n,lineNumbersLeft:k,lineNumbersWidth:C,lineNumbersHeight:n,decorationsLeft:I,decorationsWidth:u,decorationsHeight:n,contentLeft:O,contentWidth:T,contentHeight:n,renderMinimap:w,minimapLeft:E,minimapWidth:P,viewportColumn:L,verticalScrollbarWidth:f,horizontalScrollbarHeight:g,overviewRuler:{top:M,width:f,height:n-2*M,right:0}}},e}();t.EditorLayoutProvider=C;t.EDITOR_FONT_DEFAULTS={fontFamily:r.isMacintosh?"Menlo, Monaco, 'Courier New', monospace":r.isLinux?"'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'":"Consolas, 'Courier New', monospace",fontWeight:"normal",fontSize:r.isMacintosh?12:14,lineHeight:0,letterSpacing:0},t.EDITOR_MODEL_DEFAULTS={tabSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,
  largeFileOptimizations:!0},t.EDITOR_DEFAULTS={inDiffEditor:!1,wordSeparators:o.USUAL_WORD_SEPARATORS,lineNumbersMinChars:5,lineDecorationsWidth:10,readOnly:!1,mouseStyle:"text",disableLayerHinting:!1,automaticLayout:!1,wordWrap:"off",wordWrapColumn:80,wordWrapMinified:!0,wrappingIndent:g.Same,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:n.localize(1,null),renderLineNumbers:1,renderCustomLineNumbers:null,selectOnLineNumbers:!0,glyphMargin:!0,
  revealHorizontalRightPadding:30,roundedSelection:!0,overviewRulerLanes:2,overviewRulerBorder:!0,cursorBlinking:m.Blink,mouseWheelZoom:!1,cursorStyle:v.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:i.ScrollbarVisibility.Auto,horizontal:i.ScrollbarVisibility.Auto,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}}}),define(e[72],t([10,11]),function(e,t){return e.create("vs/platform/configuration/common/configurationRegistry",t)}),define(e[73],t([10,11]),function(e,t){return e.create("vs/platform/extensionManagement/common/extensionManagement",t)}),define(e[74],t([10,11]),function(e,t){
  return e.create("vs/platform/markers/common/markers",t)}),define(e[75],t([10,11]),function(e,t){return e.create("vs/platform/workspaces/common/workspaces",t)}),define(e[76],t([10,11]),function(e,t){return e.create("vs/workbench/api/node/extHost.api.impl",t)}),define(e[77],t([10,11]),function(e,t){return e.create("vs/workbench/api/node/extHostDebugService",t)}),define(e[78],t([10,11]),function(e,t){return e.create("vs/workbench/api/node/extHostDiagnostics",t)}),define(e[79],t([10,11]),function(e,t){return e.create("vs/workbench/api/node/extHostExtensionActivator",t)}),define(e[80],t([10,11]),function(e,t){return e.create("vs/workbench/api/node/extHostProgress",t)}),define(e[81],t([10,11]),function(e,t){return e.create("vs/workbench/api/node/extHostTask",t)}),define(e[82],t([10,11]),function(e,t){return e.create("vs/workbench/api/node/extHostTreeViews",t)}),define(e[83],t([10,11]),function(e,t){return e.create("vs/workbench/api/node/extHostWorkspace",t)}),define(e[84],t([10,11]),function(e,t){
  return e.create("vs/workbench/node/extensionHostMain",t)}),define(e[85],t([10,11]),function(e,t){return e.create("vs/workbench/parts/debug/node/debugAdapter",t)}),define(e[86],t([10,11]),function(e,t){return e.create("vs/workbench/parts/debug/node/terminals",t)}),define(e[96],t([10,11]),function(e,t){return e.create("vs/workbench/services/configurationResolver/node/variableResolver",t)}),define(e[16],t([0,1]),function(e,t){"use strict";function n(e,t,n,r){t[i.DI_TARGET]===t?t[i.DI_DEPENDENCIES].push({id:e,index:n,optional:r}):(t[i.DI_DEPENDENCIES]=[{id:e,index:n,optional:r}],t[i.DI_TARGET]=t)}function r(e){if(i.serviceIds.has(e))return i.serviceIds.get(e);var t=function(e,r,i){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");n(t,e,i,!1)};return t.toString=function(){return e},i.serviceIds.set(e,t),t}Object.defineProperty(t,"__esModule",{value:!0});var i;!function(e){e.serviceIds=new Map,e.DI_TARGET="$di$target",e.DI_DEPENDENCIES="$di$dependencies",
  e.getServiceDependencies=function(t){return t[e.DI_DEPENDENCIES]||[]}}(i=t._util||(t._util={})),t.IInstantiationService=r("instantiationService"),t.createDecorator=r,t.optional=function(e){return function(t,r,i){if(3!==arguments.length)throw new Error("@optional-decorator can only be used to decorate a parameter");n(e,t,i,!0)}}}),define(e[89],t([0,1,16]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IModelService=n.createDecorator("modelService"),t.shouldSynchronizeModel=function(e){return!e.isTooLargeForSyncing()&&!e.isForSimpleWidget}}),define(e[90],t([0,1,4,6,40,89]),function(e,t,n,r,i,o){"use strict";function s(e){return"string"!=typeof e&&(Array.isArray(e)?e.every(s):e.exclusive)}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(){this._clock=0,this._entries=[],this._onDidChange=new n.Emitter}return Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),
  e.prototype.register=function(e,t){var n=this,i={selector:e,provider:t,_score:-1,_time:this._clock++};return this._entries.push(i),this._lastCandidate=void 0,this._onDidChange.fire(this._entries.length),r.toDisposable(function(){if(i){var e=n._entries.indexOf(i);e>=0&&(n._entries.splice(e,1),n._lastCandidate=void 0,n._onDidChange.fire(n._entries.length),i=void 0)}})},e.prototype.has=function(e){return this.all(e).length>0},e.prototype.all=function(e){if(!e)return[];this._updateScores(e);for(var t=[],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=[];return this._orderedForEach(e,function(e){return t.push(e.provider)}),t},e.prototype.orderedGroups=function(e){var t,n,r=[];return this._orderedForEach(e,function(e){t&&n===e._score?t.push(e.provider):(n=e._score,t=[e.provider],r.push(t))}),r},e.prototype._orderedForEach=function(e,t){if(e){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){this._lastCandidate=n;for(var r=0,a=this._entries;r<a.length;r++){var u=a[r];if(u._score=i.score(u.selector,t.uri,t.getLanguageIdentifier().language,o.shouldSynchronizeModel(t)),s(u.selector)&&u._score>0){for(var c=0,l=this._entries;c<l.length;c++){l[c]._score=0}u._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},e}();t.default=a}),define(e[91],t([0,1,15,90,142]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Null=0]="Null",e[e.PlainText=1]="PlainText"}(t.LanguageId||(t.LanguageId={}));var o=function(){return function(e,t){this.language=e,this.id=t}}();t.LanguageIdentifier=o;!function(e){
  e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline"}(t.FontStyle||(t.FontStyle={}));!function(e){e[e.None=0]="None",e[e.DefaultForeground=1]="DefaultForeground",e[e.DefaultBackground=2]="DefaultBackground"}(t.ColorId||(t.ColorId={}));!function(e){e[e.Other=0]="Other",e[e.Comment=1]="Comment",e[e.String=2]="String",e[e.RegEx=4]="RegEx"}(t.StandardTokenType||(t.StandardTokenType={}));!function(e){e[e.LANGUAGEID_MASK=255]="LANGUAGEID_MASK",e[e.TOKEN_TYPE_MASK=1792]="TOKEN_TYPE_MASK",e[e.FONT_STYLE_MASK=14336]="FONT_STYLE_MASK",e[e.FOREGROUND_MASK=8372224]="FOREGROUND_MASK",e[e.BACKGROUND_MASK=4286578688]="BACKGROUND_MASK",e[e.LANGUAGEID_OFFSET=0]="LANGUAGEID_OFFSET",e[e.TOKEN_TYPE_OFFSET=8]="TOKEN_TYPE_OFFSET",e[e.FONT_STYLE_OFFSET=11]="FONT_STYLE_OFFSET",e[e.FOREGROUND_OFFSET=14]="FOREGROUND_OFFSET",e[e.BACKGROUND_OFFSET=23]="BACKGROUND_OFFSET"}(t.MetadataConsts||(t.MetadataConsts={}));var s=function(){function e(){}
  return e.getLanguageId=function(e){return(255&e)>>>0},e.getTokenType=function(e){return(1792&e)>>>8},e.getFontStyle=function(e){return(14336&e)>>>11},e.getForeground=function(e){return(8372224&e)>>>14},e.getBackground=function(e){return(4286578688&e)>>>23},e.getClassNameFromMetadata=function(e){var t="mtk"+this.getForeground(e),n=this.getFontStyle(e);return 1&n&&(t+=" mtki"),2&n&&(t+=" mtkb"),4&n&&(t+=" mtku"),t},e.getInlineStyleFromMetadata=function(e,t){var n=this.getForeground(e),r=this.getFontStyle(e),i="color: "+t[n]+";";return 1&r&&(i+="font-style: italic;"),2&r&&(i+="font-weight: bold;"),4&r&&(i+="text-decoration: underline;"),i},e}();t.TokenMetadata=s;!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.Snippet=18]="Snippet",e[e.Text=19]="Text",e[e.Color=20]="Color",e[e.File=21]="File",e[e.Reference=22]="Reference",e[e.Customcolor=23]="Customcolor",e[e.Folder=24]="Folder",e[e.TypeParameter=25]="TypeParameter"}(t.SuggestionKind||(t.SuggestionKind={})),t.suggestionKindToCssClass=function(){var e=Object.create(null);return e[0]="method",e[1]="function",e[2]="constructor",e[3]="field",e[4]="variable",e[5]="class",e[6]="struct",e[7]="interface",e[8]="module",e[9]="property",e[10]="event",e[11]="operator",e[12]="unit",e[13]="value",e[14]="constant",e[15]="enum",e[16]="enum-member",e[17]="keyword",e[18]="snippet",e[19]="text",e[20]="color",e[21]="file",e[22]="reference",e[23]="customcolor",e[24]="folder",e[25]="type-parameter",function(t){return e[t]||"property"}}(),t.suggestionKindFromLegacyString=function(){var e=Object.create(null);return e.method=0,e.function=1,e.constructor=2,
  e.field=3,e.variable=4,e.class=5,e.struct=6,e.interface=7,e.module=8,e.property=9,e.event=10,e.operator=11,e.unit=12,e.value=13,e.constant=14,e.enum=15,e["enum-member"]=16,e.keyword=17,e.snippet=18,e.text=19,e.color=20,e.file=21,e.reference=22,e.customcolor=23,e.folder=24,e["type-parameter"]=25,function(t){return e[t]||"property"}}();!function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(t.SuggestTriggerKind||(t.SuggestTriggerKind={}));!function(e){e[e.Automatic=1]="Automatic",e[e.Manual=2]="Manual"}(t.CodeActionTrigger||(t.CodeActionTrigger={}));!function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.Retrigger=3]="Retrigger"}(t.SignatureHelpTriggerReason||(t.SignatureHelpTriggerReason={}));!function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(t.DocumentHighlightKind||(t.DocumentHighlightKind={}));var a;!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"}(a=t.SymbolKind||(t.SymbolKind={})),t.symbolKindToCssClass=function(){var e=Object.create(null);return e[a.File]="file",e[a.Module]="module",e[a.Namespace]="namespace",e[a.Package]="package",e[a.Class]="class",e[a.Method]="method",e[a.Property]="property",e[a.Field]="field",e[a.Constructor]="constructor",e[a.Enum]="enum",e[a.Interface]="interface",e[a.Function]="function",e[a.Variable]="variable",
  e[a.Constant]="constant",e[a.String]="string",e[a.Number]="number",e[a.Boolean]="boolean",e[a.Array]="array",e[a.Object]="object",e[a.Key]="key",e[a.Null]="null",e[a.EnumMember]="enum-member",e[a.Struct]="struct",e[a.Event]="event",e[a.Operator]="operator",e[a.TypeParameter]="type-parameter",function(t){return"symbol-icon "+(e[t]||"property")}}();var u=function(){function e(e){this.value=e}return e.Comment=new e("comment"),e.Imports=new e("imports"),e.Region=new e("region"),e}();t.FoldingRangeKind=u,t.isResourceFileEdit=function(e){return n.isObject(e)&&(Boolean(e.newUri)||Boolean(e.oldUri))},t.isResourceTextEdit=function(e){return n.isObject(e)&&e.resource&&Array.isArray(e.edits)};!function(e){e[e.Collapsed=0]="Collapsed",e[e.Expanded=1]="Expanded"}(t.CommentThreadCollapsibleState||(t.CommentThreadCollapsibleState={})),t.ReferenceProviderRegistry=new r.default,t.RenameProviderRegistry=new r.default,t.SuggestRegistry=new r.default,t.SignatureHelpProviderRegistry=new r.default,
  t.HoverProviderRegistry=new r.default,t.DocumentSymbolProviderRegistry=new r.default,t.DocumentHighlightProviderRegistry=new r.default,t.DefinitionProviderRegistry=new r.default,t.ImplementationProviderRegistry=new r.default,t.TypeDefinitionProviderRegistry=new r.default,t.CodeLensProviderRegistry=new r.default,t.CodeActionProviderRegistry=new r.default,t.DocumentFormattingEditProviderRegistry=new r.default,t.DocumentRangeFormattingEditProviderRegistry=new r.default,t.OnTypeFormattingEditProviderRegistry=new r.default,t.LinkProviderRegistry=new r.default,t.ColorProviderRegistry=new r.default,t.FoldingRangeProviderRegistry=new r.default,t.TokenizationRegistry=new i.TokenizationRegistryImpl}),define(e[92],t([0,1,3,6,15,16,33]),function(e,t,n,r,i,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ICommandService=o.createDecorator("commandService"),t.CommandsRegistry=new(function(){function e(){this._commands=new Map}return 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){for(var o=[],a=0,u=e.description.args;a<u.length;a++){var c=u[a];o.push(c.constraint)}var l=e.handler;e.handler=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return i.validateConstraints(t,o),l.apply(void 0,[e].concat(t))}}var f=e.id,d=this._commands.get(f);d||(d=new s.LinkedList,this._commands.set(f,d));var h=d.unshift(e);return r.toDisposable(function(){h(),n._commands.get(f).isEmpty()&&n._commands.delete(f)})},e.prototype.registerCommandAlias=function(e,n){return t.CommandsRegistry.registerCommand(e,function(e){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];var o;(o=e.get(t.ICommandService)).executeCommand.apply(o,[n].concat(r))})},e.prototype.getCommand=function(e){var t=this._commands.get(e);if(t&&!t.isEmpty())return t.iterator().next().value},e.prototype.getCommands=function(){
  var e=this,t=Object.create(null);return this._commands.forEach(function(n,r){t[r]=e.getCommand(r)}),t},e}()),t.NullCommandService={_serviceBrand:void 0,onWillExecuteCommand:function(){return{dispose:function(){}}},executeCommand:function(){return n.TPromise.as(void 0)}}}),define(e[45],t([0,1,16,9]),function(e,t,r,i){"use strict";function o(e,t){var n=e.getType(),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!")}}Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Defined=1]="Defined",e[e.Not=2]="Not",e[e.Equals=3]="Equals",e[e.NotEquals=4]="NotEquals",e[e.And=5]="And",e[e.Regex=6]="Regex"}(t.ContextKeyExprType||(t.ContextKeyExprType={}));var s=function(){function e(){}return e.has=function(e){return new a(e)},e.equals=function(e,t){return new u(e,t)},e.notEquals=function(e,t){return new c(e,t)},e.regex=function(e,t){return new f(e,t)},e.not=function(e){return new l(e)},e.and=function(){
  for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new d(e)},e.deserialize=function(e){var t=this;if(!e)return null;var n=e.split("&&");return new d(n.map(function(e){return t._deserializeOne(e)})).normalize()},e._deserializeOne=function(e){if((e=e.trim()).indexOf("!=")>=0){t=e.split("!=");return new c(t[0].trim(),this._deserializeValue(t[1]))}if(e.indexOf("==")>=0){t=e.split("==");return new u(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]))}return/^\!\s*/.test(e)?new l(e.substr(1).trim()):new a(e)},e._deserializeValue=function(e){if("true"===(e=e.trim()))return!0;if("false"===e)return!1;var t=/^'([^']*)'$/.exec(e);return t?t[1].trim():e},e._deserializeRegexValue=function(e){if(i.isFalsyOrWhitespace(e))return console.warn("missing regexp-value for =~-expression"),null;var t=e.indexOf("/"),n=e.lastIndexOf("/");if(t===n||t<0)return console.warn("bad regexp-value '"+e+"', missing /-enclosure"),null
  ;var r=e.slice(t+1,n),o="i"===e[n+1]?"i":"";try{return new RegExp(r,o)}catch(t){return console.warn("bad regexp-value '"+e+"', parse error: "+t),null}},e}();t.ContextKeyExpr=s;var a=function(){function e(e){this.key=e}return e.prototype.getType=function(){return 1},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key},e.prototype.evaluate=function(e){return!!e.getValue(this.key)},e.prototype.normalize=function(){return this},e.prototype.serialize=function(){return this.key},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyDefinedExpr=a;var u=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.getType=function(){return 3},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0},e.prototype.equals=function(t){return t instanceof e&&(this.key===t.key&&this.value===t.value)},e.prototype.evaluate=function(e){
  return e.getValue(this.key)==this.value},e.prototype.normalize=function(){return"boolean"==typeof this.value?this.value?new a(this.key):new l(this.key):this},e.prototype.serialize=function(){return"boolean"==typeof this.value?this.normalize().serialize():this.key+" == '"+this.value+"'"},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyEqualsExpr=u;var c=function(){function e(e,t){this.key=e,this.value=t}return e.prototype.getType=function(){return 4},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:this.value<e.value?-1:this.value>e.value?1:0},e.prototype.equals=function(t){return t instanceof e&&(this.key===t.key&&this.value===t.value)},e.prototype.evaluate=function(e){return e.getValue(this.key)!=this.value},e.prototype.normalize=function(){return"boolean"==typeof this.value?this.value?new l(this.key):new a(this.key):this},e.prototype.serialize=function(){return"boolean"==typeof this.value?this.normalize().serialize():this.key+" != '"+this.value+"'"},
  e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyNotEqualsExpr=c;var l=function(){function e(e){this.key=e}return e.prototype.getType=function(){return 2},e.prototype.cmp=function(e){return this.key<e.key?-1:this.key>e.key?1:0},e.prototype.equals=function(t){return t instanceof e&&this.key===t.key},e.prototype.evaluate=function(e){return!e.getValue(this.key)},e.prototype.normalize=function(){return this},e.prototype.serialize=function(){return"!"+this.key},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyNotExpr=l;var f=function(){function e(e,t){this.key=e,this.regexp=t}return e.prototype.getType=function(){return 6},e.prototype.cmp=function(e){if(this.key<e.key)return-1;if(this.key>e.key)return 1;var t=this.regexp?this.regexp.source:void 0;return t<e.regexp.source?-1:t>e.regexp.source?1:0},e.prototype.equals=function(t){if(t instanceof e){var n=this.regexp?this.regexp.source:void 0;return this.key===t.key&&n===t.regexp.source}return!1},e.prototype.evaluate=function(e){
  return!!this.regexp&&this.regexp.test(e.getValue(this.key))},e.prototype.normalize=function(){return this},e.prototype.serialize=function(){var e=this.regexp?"/"+this.regexp.source+"/"+(this.regexp.ignoreCase?"i":""):"/invalid/";return this.key+" =~ "+e},e.prototype.keys=function(){return[this.key]},e}();t.ContextKeyRegexExpr=f;var d=function(){function e(t){this.expr=e._normalizeArr(t)}return e.prototype.getType=function(){return 5},e.prototype.equals=function(t){if(t instanceof e){if(this.expr.length!==t.expr.length)return!1;for(var 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 s=t[r];s&&((s=s.normalize())&&(s instanceof e?n=n.concat(s.expr):n.push(s)))}n.sort(o)}return n},e.prototype.normalize=function(){
  return 0===this.expr.length?null:1===this.expr.length?this.expr[0]:this},e.prototype.serialize=function(){return 0===this.expr.length?"":1===this.expr.length?this.normalize().serialize():this.expr.map(function(e){return e.serialize()}).join(" && ")},e.prototype.keys=function(){for(var e=[],t=0,n=this.expr;t<n.length;t++){var r=n[t];e.push.apply(e,r.keys())}return e},e}();t.ContextKeyAndExpr=d;var h=function(e){function t(t,n){var r=e.call(this,t)||this;return r._defaultValue=n,r}return n(t,e),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)},t.prototype.isEqualTo=function(e){return s.equals(this.key,e)},t.prototype.notEqualsTo=function(e){return s.notEquals(this.key,e)},t}(a);t.RawContextKey=h,t.IContextKeyService=r.createDecorator("contextKeyService"),t.SET_CONTEXT_COMMAND_ID="setContext"}),define(e[94],t([0,1,73,16]),function(e,t,n,r){"use strict"
  ;Object.defineProperty(t,"__esModule",{value:!0}),t.EXTENSION_IDENTIFIER_PATTERN="^([a-z0-9A-Z][a-z0-9-A-Z]*)\\.([a-z0-9A-Z][a-z0-9-A-Z]*)$",t.EXTENSION_IDENTIFIER_REGEX=new RegExp(t.EXTENSION_IDENTIFIER_PATTERN),t.isIExtensionIdentifier=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&(!e.uuid||"string"==typeof e.uuid)};!function(e){e[e.System=0]="System",e[e.User=1]="User"}(t.LocalExtensionType||(t.LocalExtensionType={})),t.IExtensionManagementService=r.createDecorator("extensionManagementService"),t.IExtensionGalleryService=r.createDecorator("extensionGalleryService");!function(e){e[e.NoneOrRelevance=0]="NoneOrRelevance",e[e.LastUpdatedDate=1]="LastUpdatedDate",e[e.Title=2]="Title",e[e.PublisherName=3]="PublisherName",e[e.InstallCount=4]="InstallCount",e[e.PublishedDate=5]="PublishedDate",e[e.AverageRating=6]="AverageRating",e[e.WeightedRating=12]="WeightedRating"}(t.SortBy||(t.SortBy={}));!function(e){e[e.Default=0]="Default",e[e.Ascending=1]="Ascending",e[e.Descending=2]="Descending"
  }(t.SortOrder||(t.SortOrder={}));!function(e){e.Uninstall="uninstall"}(t.StatisticType||(t.StatisticType={}));!function(e){e[e.None=0]="None",e[e.Install=1]="Install",e[e.Update=2]="Update"}(t.InstallOperation||(t.InstallOperation={})),t.IExtensionManagementServerService=r.createDecorator("extensionManagementServerService");!function(e){e[e.Disabled=0]="Disabled",e[e.WorkspaceDisabled=1]="WorkspaceDisabled",e[e.Enabled=2]="Enabled",e[e.WorkspaceEnabled=3]="WorkspaceEnabled"}(t.EnablementState||(t.EnablementState={})),t.IExtensionEnablementService=r.createDecorator("extensionEnablementService"),t.IExtensionTipsService=r.createDecorator("extensionTipsService");!function(e){e[e.Workspace=0]="Workspace",e[e.File=1]="File",e[e.Executable=2]="Executable",e[e.DynamicWorkspace=3]="DynamicWorkspace",e[e.Experimental=4]="Experimental"}(t.ExtensionRecommendationReason||(t.ExtensionRecommendationReason={})),t.ExtensionsLabel=n.localize(0,null),t.ExtensionsChannelId="extensions",t.PreferencesLabel=n.localize(1,null)}),
  define(e[95],t([0,1,19,8,16,9,23,15]),function(e,t,r,i,o,s,a,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IFileService=o.createDecorator("fileService");!function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"}(t.FileType||(t.FileType={}));!function(e){e[e.FileReadWrite=2]="FileReadWrite",e[e.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",e[e.FileFolderCopy=8]="FileFolderCopy",e[e.PathCaseSensitive=1024]="PathCaseSensitive",e[e.Readonly=2048]="Readonly"}(t.FileSystemProviderCapabilities||(t.FileSystemProviderCapabilities={}));!function(e){e[e.CREATE=0]="CREATE",e[e.DELETE=1]="DELETE",e[e.MOVE=2]="MOVE",e[e.COPY=3]="COPY"}(t.FileOperation||(t.FileOperation={}));var c=function(){function e(e,t,n){this._resource=e,this._operation=t,this._target=n}return Object.defineProperty(e.prototype,"resource",{get:function(){return this._resource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"target",{
  get:function(){return this._target},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"operation",{get:function(){return this._operation},enumerable:!0,configurable:!0}),e}();t.FileOperationEvent=c;!function(e){e[e.UPDATED=0]="UPDATED",e[e.ADDED=1]="ADDED",e[e.DELETED=2]="DELETED"}(t.FileChangeType||(t.FileChangeType={}));var l=function(){function e(e){this._changes=e}return Object.defineProperty(e.prototype,"changes",{get:function(){return this._changes},enumerable:!0,configurable:!0}),e.prototype.contains=function(e,t){if(!e)return!1;var n=!u.isUndefinedOrNull(t);return this._changes.some(function(r){return(!n||r.type===t)&&(2===r.type?a.isEqualOrParent(e,r.resource,!i.isLinux):a.isEqual(e,r.resource,!i.isLinux))})},e.prototype.getAdded=function(){return this.getOfType(1)},e.prototype.gotAdded=function(){return this.hasType(1)},e.prototype.getDeleted=function(){return this.getOfType(2)},e.prototype.gotDeleted=function(){return this.hasType(2)},e.prototype.getUpdated=function(){
  return this.getOfType(0)},e.prototype.gotUpdated=function(){return this.hasType(0)},e.prototype.getOfType=function(e){return this._changes.filter(function(t){return t.type===e})},e.prototype.hasType=function(e){return this._changes.some(function(t){return t.type===e})},e}();t.FileChangesEvent=l,t.isParent=function(e,t,n){return!(!e||!t||e===t)&&!(t.length>e.length)&&(t.charAt(t.length-1)!==r.nativeSep&&(t+=r.nativeSep),n?s.startsWithIgnoreCase(e,t):0===e.indexOf(t))};var f=function(){function e(e){this._value=e}return e.prototype.read=function(){var e=this._value;return this._value=null,e},e}();t.StringSnapshot=f,t.snapshotToString=function(e){for(var t,n=[];"string"==typeof(t=e.read());)n.push(t);return n.join("")};var d=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.fileOperationResult=n,i.options=r,i}return n(t,e),t.isFileOperationError=function(e){return e instanceof Error&&!u.isUndefinedOrNull(e.fileOperationResult)},t}(Error);t.FileOperationError=d;!function(e){
  e[e.FILE_IS_BINARY=0]="FILE_IS_BINARY",e[e.FILE_IS_DIRECTORY=1]="FILE_IS_DIRECTORY",e[e.FILE_NOT_FOUND=2]="FILE_NOT_FOUND",e[e.FILE_NOT_MODIFIED_SINCE=3]="FILE_NOT_MODIFIED_SINCE",e[e.FILE_MODIFIED_SINCE=4]="FILE_MODIFIED_SINCE",e[e.FILE_MOVE_CONFLICT=5]="FILE_MOVE_CONFLICT",e[e.FILE_READ_ONLY=6]="FILE_READ_ONLY",e[e.FILE_PERMISSION_DENIED=7]="FILE_PERMISSION_DENIED",e[e.FILE_TOO_LARGE=8]="FILE_TOO_LARGE",e[e.FILE_INVALID_PATH=9]="FILE_INVALID_PATH",e[e.FILE_EXCEED_MEMORY_LIMIT=10]="FILE_EXCEED_MEMORY_LIMIT"}(t.FileOperationResult||(t.FileOperationResult={})),t.AutoSaveConfiguration={OFF:"off",AFTER_DELAY:"afterDelay",ON_FOCUS_CHANGE:"onFocusChange",ON_WINDOW_CHANGE:"onWindowChange"},t.HotExitConfiguration={OFF:"off",ON_EXIT:"onExit",ON_EXIT_AND_WINDOW_CLOSE:"onExitAndWindowClose"},t.CONTENT_CHANGE_EVENT_BUFFER_DELAY=1e3,t.FILES_ASSOCIATIONS_CONFIG="files.associations",t.FILES_EXCLUDE_CONFIG="files.exclude",t.SUPPORTED_ENCODINGS={utf8:{labelLong:"UTF-8",labelShort:"UTF-8",order:1,alias:"utf8bom"},utf8bom:{
  labelLong:"UTF-8 with BOM",labelShort:"UTF-8 with BOM",encodeOnly:!0,order:2,alias:"utf8"},utf16le:{labelLong:"UTF-16 LE",labelShort:"UTF-16 LE",order:3},utf16be:{labelLong:"UTF-16 BE",labelShort:"UTF-16 BE",order:4},windows1252:{labelLong:"Western (Windows 1252)",labelShort:"Windows 1252",order:5},iso88591:{labelLong:"Western (ISO 8859-1)",labelShort:"ISO 8859-1",order:6},iso88593:{labelLong:"Western (ISO 8859-3)",labelShort:"ISO 8859-3",order:7},iso885915:{labelLong:"Western (ISO 8859-15)",labelShort:"ISO 8859-15",order:8},macroman:{labelLong:"Western (Mac Roman)",labelShort:"Mac Roman",order:9},cp437:{labelLong:"DOS (CP 437)",labelShort:"CP437",order:10},windows1256:{labelLong:"Arabic (Windows 1256)",labelShort:"Windows 1256",order:11},iso88596:{labelLong:"Arabic (ISO 8859-6)",labelShort:"ISO 8859-6",order:12},windows1257:{labelLong:"Baltic (Windows 1257)",labelShort:"Windows 1257",order:13},iso88594:{labelLong:"Baltic (ISO 8859-4)",labelShort:"ISO 8859-4",order:14},iso885914:{
  labelLong:"Celtic (ISO 8859-14)",labelShort:"ISO 8859-14",order:15},windows1250:{labelLong:"Central European (Windows 1250)",labelShort:"Windows 1250",order:16},iso88592:{labelLong:"Central European (ISO 8859-2)",labelShort:"ISO 8859-2",order:17},cp852:{labelLong:"Central European (CP 852)",labelShort:"CP 852",order:18},windows1251:{labelLong:"Cyrillic (Windows 1251)",labelShort:"Windows 1251",order:19},cp866:{labelLong:"Cyrillic (CP 866)",labelShort:"CP 866",order:20},iso88595:{labelLong:"Cyrillic (ISO 8859-5)",labelShort:"ISO 8859-5",order:21},koi8r:{labelLong:"Cyrillic (KOI8-R)",labelShort:"KOI8-R",order:22},koi8u:{labelLong:"Cyrillic (KOI8-U)",labelShort:"KOI8-U",order:23},iso885913:{labelLong:"Estonian (ISO 8859-13)",labelShort:"ISO 8859-13",order:24},windows1253:{labelLong:"Greek (Windows 1253)",labelShort:"Windows 1253",order:25},iso88597:{labelLong:"Greek (ISO 8859-7)",labelShort:"ISO 8859-7",order:26},windows1255:{labelLong:"Hebrew (Windows 1255)",labelShort:"Windows 1255",order:27},iso88598:{
  labelLong:"Hebrew (ISO 8859-8)",labelShort:"ISO 8859-8",order:28},iso885910:{labelLong:"Nordic (ISO 8859-10)",labelShort:"ISO 8859-10",order:29},iso885916:{labelLong:"Romanian (ISO 8859-16)",labelShort:"ISO 8859-16",order:30},windows1254:{labelLong:"Turkish (Windows 1254)",labelShort:"Windows 1254",order:31},iso88599:{labelLong:"Turkish (ISO 8859-9)",labelShort:"ISO 8859-9",order:32},windows1258:{labelLong:"Vietnamese (Windows 1258)",labelShort:"Windows 1258",order:33},gbk:{labelLong:"Simplified Chinese (GBK)",labelShort:"GBK",order:34},gb18030:{labelLong:"Simplified Chinese (GB18030)",labelShort:"GB18030",order:35},cp950:{labelLong:"Traditional Chinese (Big5)",labelShort:"Big5",order:36},big5hkscs:{labelLong:"Traditional Chinese (Big5-HKSCS)",labelShort:"Big5-HKSCS",order:37},shiftjis:{labelLong:"Japanese (Shift JIS)",labelShort:"Shift JIS",order:38},eucjp:{labelLong:"Japanese (EUC-JP)",labelShort:"EUC-JP",order:39},euckr:{labelLong:"Korean (EUC-KR)",labelShort:"EUC-KR",order:40},windows874:{
  labelLong:"Thai (Windows 874)",labelShort:"Windows 874",order:41},iso885911:{labelLong:"Latin/Thai (ISO 8859-11)",labelShort:"ISO 8859-11",order:42},koi8ru:{labelLong:"Cyrillic (KOI8-RU)",labelShort:"KOI8-RU",order:43},koi8t:{labelLong:"Tajik (KOI8-T)",labelShort:"KOI8-T",order:44},gb2312:{labelLong:"Simplified Chinese (GB 2312)",labelShort:"GB 2312",order:45},cp865:{labelLong:"Nordic DOS (CP 865)",labelShort:"CP 865",order:46},cp850:{labelLong:"Western European DOS (CP 850)",labelShort:"CP 850",order:47}};!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(t.FileKind||(t.FileKind={})),t.MIN_MAX_MEMORY_SIZE_MB=2048,t.FALLBACK_MAX_MEMORY_SIZE_MB=4096}),define(e[37],t([0,1,16,6,8,4]),function(e,t,r,i,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ILogService=r.createDecorator("logService");var a;!function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",
  e[e.Off=6]="Off"}(a=t.LogLevel||(t.LogLevel={})),t.DEFAULT_LOG_LEVEL=a.Info;var u=function(e){function r(){var n=null!==e&&e.apply(this,arguments)||this;return n.level=t.DEFAULT_LOG_LEVEL,n._onDidChangeLogLevel=n._register(new s.Emitter),n.onDidChangeLogLevel=n._onDidChangeLogLevel.event,n}return n(r,e),r.prototype.setLevel=function(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))},r.prototype.getLevel=function(){return this.level},r}(i.Disposable);t.AbstractLogService=u;var c=function(e){function r(n){void 0===n&&(n=t.DEFAULT_LOG_LEVEL);var r=e.call(this)||this;return r.setLevel(n),r.useColors=!o.isWindows,r}return n(r,e),r.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Trace&&(this.useColors?console.log.apply(console,["[90m[main "+(new Date).toLocaleTimeString()+"][0m",e].concat(t)):console.log.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)))},r.prototype.debug=function(e){
  for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Debug&&(this.useColors?console.log.apply(console,["[90m[main "+(new Date).toLocaleTimeString()+"][0m",e].concat(t)):console.log.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)))},r.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Info&&(this.useColors?console.log.apply(console,["[90m[main "+(new Date).toLocaleTimeString()+"][0m",e].concat(t)):console.log.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)))},r.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Warning&&(this.useColors?console.warn.apply(console,["[93m[main "+(new Date).toLocaleTimeString()+"][0m",e].concat(t)):console.warn.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)))},r.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]
  ;this.getLevel()<=a.Error&&(this.useColors?console.error.apply(console,["[91m[main "+(new Date).toLocaleTimeString()+"][0m",e].concat(t)):console.error.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)))},r.prototype.critical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Critical&&(this.useColors?console.error.apply(console,["[90m[main "+(new Date).toLocaleTimeString()+"][0m",e].concat(t)):console.error.apply(console,["[main "+(new Date).toLocaleTimeString()+"]",e].concat(t)))},r.prototype.dispose=function(){},r}(u);t.ConsoleLogMainService=c;var l=function(e){function r(n){void 0===n&&(n=t.DEFAULT_LOG_LEVEL);var r=e.call(this)||this;return r.setLevel(n),r}return n(r,e),r.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Trace&&console.log.apply(console,["%cTRACE","color: #888",e].concat(t))},r.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]
  ;this.getLevel()<=a.Debug&&console.log.apply(console,["%cDEBUG","background: #eee; color: #888",e].concat(t))},r.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Info&&console.log.apply(console,["%c INFO","color: #33f",e].concat(t))},r.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Warning&&console.log.apply(console,["%c WARN","color: #993",e].concat(t))},r.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Error&&console.log.apply(console,["%c  ERR","color: #f33",e].concat(t))},r.prototype.critical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.getLevel()<=a.Critical&&console.log.apply(console,["%cCRITI","background: #f33; color: white",e].concat(t))},r.prototype.dispose=function(){},r}(u);t.ConsoleLogService=l;var f=function(e){function t(t){var n=e.call(this)||this;return n.logServices=t,
  t.length&&n.setLevel(t[0].getLevel()),n}return n(t,e),t.prototype.setLevel=function(t){for(var n=0,r=this.logServices;n<r.length;n++){r[n].setLevel(t)}e.prototype.setLevel.call(this,t)},t.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.trace.apply(o,[e].concat(t))}},t.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.debug.apply(o,[e].concat(t))}},t.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.info.apply(o,[e].concat(t))}},t.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.warn.apply(o,[e].concat(t))}},t.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]
  ;for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.error.apply(o,[e].concat(t))}},t.prototype.critical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,i=this.logServices;r<i.length;r++){var o=i[r];o.critical.apply(o,[e].concat(t))}},t.prototype.dispose=function(){for(var e=0,t=this.logServices;e<t.length;e++){t[e].dispose()}},t}(u);t.MultiplexLogService=f;var d=function(e){function t(t){var n=e.call(this)||this;return n.logService=t,n._register(t),n}return n(t,e),Object.defineProperty(t.prototype,"onDidChangeLogLevel",{get:function(){return this.logService.onDidChangeLogLevel},enumerable:!0,configurable:!0}),t.prototype.setLevel=function(e){this.logService.setLevel(e)},t.prototype.getLevel=function(){return this.logService.getLevel()},t.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;(r=this.logService).trace.apply(r,[e].concat(t))},t.prototype.debug=function(e){
  for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;(r=this.logService).debug.apply(r,[e].concat(t))},t.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;(r=this.logService).info.apply(r,[e].concat(t))},t.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;(r=this.logService).warn.apply(r,[e].concat(t))},t.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;(r=this.logService).error.apply(r,[e].concat(t))},t.prototype.critical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r;(r=this.logService).critical.apply(r,[e].concat(t))},t}(i.Disposable);t.DelegatedLogService=d;var h=function(){function e(){this.onDidChangeLogLevel=(new s.Emitter).event}return e.prototype.setLevel=function(e){},e.prototype.getLevel=function(){return a.Info},e.prototype.trace=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},
  e.prototype.debug=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.info=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.warn=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.error=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.critical=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n]},e.prototype.dispose=function(){},e}();t.NullLogService=h,t.getLogLevel=function(e){if(e.verbose)return a.Trace;if("string"==typeof e.args.log)switch(e.args.log.toLowerCase()){case"trace":return a.Trace;case"debug":return a.Debug;case"info":return a.Info;case"warn":return a.Warning;case"error":return a.Error;case"critical":return a.Critical;case"off":return a.Off}return t.DEFAULT_LOG_LEVEL}}),define(e[47],t([0,1,20,37]),function(e,t,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createSpdLogService=function(t,n,s){try{
  var a=e.__$__nodeRequire("spdlog");a.setAsyncMode(8192,500);var u=r.join(s,t+".log"),c=new a.RotatingLogger(t,u,5242880,6);return c.setLevel(0),new o(c,n)}catch(e){console.error(e)}return new i.NullLogService},t.createRotatingLogger=function(t,n,r,i){return new(e.__$__nodeRequire("spdlog").RotatingLogger)(t,n,r,i)};var o=function(e){function t(t,n){void 0===n&&(n=i.LogLevel.Error);var r=e.call(this)||this;return r.logger=t,r.setLevel(n),r}return n(t,e),t.prototype.trace=function(){this.getLevel()<=i.LogLevel.Trace&&this.logger.trace(this.format(arguments))},t.prototype.debug=function(){this.getLevel()<=i.LogLevel.Debug&&this.logger.debug(this.format(arguments))},t.prototype.info=function(){this.getLevel()<=i.LogLevel.Info&&this.logger.info(this.format(arguments))},t.prototype.warn=function(){this.getLevel()<=i.LogLevel.Warning&&this.logger.warn(this.format(arguments))},t.prototype.error=function(){if(this.getLevel()<=i.LogLevel.Error){var e=arguments[0];if(e instanceof Error){
  var t=Array.prototype.slice.call(arguments);t[0]=e.stack,this.logger.error(this.format(t))}else this.logger.error(this.format(arguments))}},t.prototype.critical=function(){this.getLevel()<=i.LogLevel.Critical&&this.logger.critical(this.format(arguments))},t.prototype.dispose=function(){this.logger.drop()},t.prototype.format=function(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if("object"==typeof r)try{r=JSON.stringify(r)}catch(e){}t+=(n>0?" ":"")+r}return t},t}(i.AbstractLogService)}),define(e[48],t([0,1,16,74,25]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Unnecessary=1]="Unnecessary"}(t.MarkerTag||(t.MarkerTag={}));var o;!function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"}(o=t.MarkerSeverity||(t.MarkerSeverity={})),function(e){e.compare=function(e,t){return t-e};var t=Object.create(null);t[e.Error]=r.localize(0,null),t[e.Warning]=r.localize(1,null),t[e.Info]=r.localize(2,null),e.toString=function(e){
  return t[e]||""},e.fromSeverity=function(t){switch(t){case i.default.Error:return e.Error;case i.default.Warning:return e.Warning;case i.default.Info:return e.Info;case i.default.Ignore:return e.Hint}}}(o=t.MarkerSeverity||(t.MarkerSeverity={}));!function(e){var t="";e.makeKey=function(e){var n=[t];return 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(o.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),n.join("¦")}}(t.IMarkerData||(t.IMarkerData={})),t.IMarkerService=n.createDecorator("markerService")}),
  define(e[49],t([0,1,20,32]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n.dirname(r.getPathFromAmdModule(e,"")),o=n.join(i,"package.json");t.default=e.__$__nodeRequire(o)}),define(e[50],t([0,1,20,32]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n.dirname(r.getPathFromAmdModule(e,"")),o=n.join(i,"product.json"),s=e.__$__nodeRequire(o);process.env.VSCODE_DEV&&(s.nameShort+=" Dev",s.nameLong+=" Dev",s.dataFolderName+="-dev"),t.default=s}),define(e[101],t([0,1,25,16,4]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Severity=n.default,t.INotificationService=r.createDecorator("notificationService");var o=function(){function e(){this.progress=new s,this._onDidClose=new i.Emitter}return Object.defineProperty(e.prototype,"onDidClose",{get:function(){return this._onDidClose.event},enumerable:!0,configurable:!0}),e.prototype.updateSeverity=function(e){},e.prototype.updateMessage=function(e){},
  e.prototype.updateActions=function(e){},e.prototype.close=function(){this._onDidClose.dispose()},e}();t.NoOpNotification=o;var s=function(){function e(){}return e.prototype.infinite=function(){},e.prototype.done=function(){},e.prototype.total=function(e){},e.prototype.worked=function(e){},e}();t.NoOpProgress=s}),define(e[102],t([0,1,47]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this.appender=n.createRotatingLogger(e,t,31457280,1),this.appender.clearFormatters()}return e.prototype.append=function(e){this.appender.critical(e)},e.prototype.flush=function(){this.appender.flush()},e}();t.OutputAppender=r}),define(e[103],t([0,1,16,17,6]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IProgressService=n.createDecorator("progressService"),t.emptyProgressRunner=Object.freeze({total:function(){},worked:function(){},done:function(){}}),t.emptyProgress=Object.freeze({report:function(){}});var o=function(){
  function e(e){this._callback=e}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),e.prototype.report=function(e){this._value=e,this._callback(this._value)},e}();t.Progress=o;var s=function(){function e(e){this.progressService=e,this.currentOperationId=0,this.currentOperationDisposables=[]}return e.prototype.start=function(e){var t=this;this.stop();var n=++this.currentOperationId,o=new r.CancellationTokenSource;return this.currentProgressTimeout=setTimeout(function(){n===t.currentOperationId&&(t.currentProgressRunner=t.progressService.show(!0))},e),this.currentOperationDisposables.push(i.toDisposable(function(){return clearTimeout(t.currentProgressTimeout)}),i.toDisposable(function(){return o.cancel()}),i.toDisposable(function(){return t.currentProgressRunner?t.currentProgressRunner.done():void 0})),{id:n,token:o.token,stop:function(){return t.doStop(n)},isCurrent:function(){return t.currentOperationId===n}}},e.prototype.stop=function(){
  this.doStop(this.currentOperationId)},e.prototype.doStop=function(e){this.currentOperationId===e&&(this.currentOperationDisposables=i.dispose(this.currentOperationDisposables))},e.prototype.dispose=function(){this.currentOperationDisposables=i.dispose(this.currentOperationDisposables)},e}();t.LongRunningOperation=s}),define(e[26],t([0,1,15,36]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this.data={}}return e.prototype.add=function(e,t){r.ok(n.isString(e)),r.ok(n.isObject(t)),r.ok(!this.data.hasOwnProperty(e),"There is already an extension with this id"),this.data[e]=t},e.prototype.knows=function(e){return this.data.hasOwnProperty(e)},e.prototype.as=function(e){return this.data[e]||null},e}();t.Registry=new i}),define(e[105],t([0,1,26,4]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions={JSONContribution:"base.contributions.json"};var i=new(function(){function e(){
  this._onDidChangeSchema=new r.Emitter,this.onDidChangeSchema=this._onDidChangeSchema.event,this.schemasById={}}return e.prototype.registerSchema=function(e,t){this.schemasById[function(e){return e.length>0&&"#"===e.charAt(e.length-1)?e.substring(0,e.length-1):e}(e)]=t,this._onDidChangeSchema.fire(e)},e.prototype.notifySchemaChanged=function(e){this._onDidChangeSchema.fire(e)},e.prototype.getSchemaContributions=function(){return{schemas:this.schemasById}},e}());n.Registry.add(t.Extensions.JSONContribution,i)}),define(e[28],t([0,1,72,4,26,15,9,105]),function(e,t,n,r,i,o,s,a){"use strict";function u(e){return t.OVERRIDE_PROPERTY_PATTERN.test(e)?n.localize(3,null,e):void 0!==p.getConfigurationProperties()[e]?n.localize(4,null,e):null}Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions={Configuration:"base.contributions.configuration"};!function(e){e[e.APPLICATION=1]="APPLICATION",e[e.WINDOW=2]="WINDOW",e[e.RESOURCE=3]="RESOURCE"}(t.ConfigurationScope||(t.ConfigurationScope={})),t.allSettings={
  properties:{},patternProperties:{}},t.applicationSettings={properties:{},patternProperties:{}},t.windowSettings={properties:{},patternProperties:{}},t.resourceSettings={properties:{},patternProperties:{}},t.editorConfigurationSchemaId="vscode://schemas/settings/editor";var c=i.Registry.as(a.Extensions.JSONContribution),l=function(){function e(){this.overrideIdentifiers=[],this._onDidSchemaChange=new r.Emitter,this.onDidSchemaChange=this._onDidSchemaChange.event,this._onDidRegisterConfiguration=new r.Emitter,this.onDidRegisterConfiguration=this._onDidRegisterConfiguration.event,this.configurationContributors=[],this.editorConfigurationSchema={properties:{},patternProperties:{},additionalProperties:!1,errorMessage:"Unknown editor configuration setting"},this.configurationProperties={},this.excludedConfigurationProperties={},this.computeOverridePropertyPattern(),c.registerSchema(t.editorConfigurationSchemaId,this.editorConfigurationSchema)}return e.prototype.registerConfiguration=function(e,t){
  void 0===t&&(t=!0),this.registerConfigurations([e],[],t)},e.prototype.registerConfigurations=function(e,t,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.notifyConfigurationSchemaUpdated=function(e){c.notifySchemaChanged(t.editorConfigurationSchemaId)},e.prototype.registerOverrideIdentifiers=function(e){var t;(t=this.overrideIdentifiers).push.apply(t,e),this.updateOverridePropertyPatternKey()},e.prototype.toConfiguration=function(e){for(var r={id:"defaultOverrides",title:n.localize(0,null),properties:{}},i=0,o=e;i<o.length;i++){var s=o[i];for(var a in s.defaults){var u=s.defaults[a];t.OVERRIDE_PROPERTY_PATTERN.test(a)&&"object"==typeof u&&(r.properties[a]={type:"object",default:u,description:n.localize(1,null,a),
  $ref:t.editorConfigurationSchemaId})}}return Object.keys(r.properties).length?r:null},e.prototype.validateAndRegisterProperties=function(e,n,r,i){void 0===n&&(n=!0),void 0===r&&(r=2),void 0===i&&(i=!1),r=o.isUndefinedOrNull(e.scope)?r:e.scope,i=e.overridable||i;var s=[],a=e.properties;if(a)for(var c in a){var l=void 0;if(n&&(l=u(c)))console.warn(l),delete a[c];else{var f=a[c],d=f.default;o.isUndefined(d)&&(f.default=function(e){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}}(f.type)),i&&(f.overridable=!0),t.OVERRIDE_PROPERTY_PATTERN.test(c)?f.scope=void 0:f.scope=o.isUndefinedOrNull(f.scope)?r:f.scope,!a[c].hasOwnProperty("included")||a[c].included?(this.configurationProperties[c]=a[c],s.push(c)):(this.excludedConfigurationProperties[c]=a[c],delete a[c])}}var h=e.allOf;if(h)for(var p=0,g=h;p<g.length;p++){var m=g[p];s.push.apply(s,this.validateAndRegisterProperties(m,n,r,i))}
  return s},e.prototype.getConfigurations=function(){return this.configurationContributors},e.prototype.getConfigurationProperties=function(){return this.configurationProperties},e.prototype.getExcludedConfigurationProperties=function(){return this.excludedConfigurationProperties},e.prototype.registerJSONConfiguration=function(e){function n(e){var r=e.properties;if(r)for(var i in r)switch(t.allSettings.properties[i]=r[i],r[i].scope){case 1:t.applicationSettings.properties[i]=r[i];break;case 2:t.windowSettings.properties[i]=r[i];break;case 3:t.resourceSettings.properties[i]=r[i]}var o=e.allOf;o&&o.forEach(n)}n(e),this._onDidSchemaChange.fire()},e.prototype.updateSchemaForOverrideSettingsConfiguration=function(e){e.id!==f&&(this.update(e),c.registerSchema(t.editorConfigurationSchemaId,this.editorConfigurationSchema))},e.prototype.updateOverridePropertyPatternKey=function(){var e=t.allSettings.patternProperties[this.overridePropertyPattern];e||(e={type:"object",description:n.localize(2,null),
  errorMessage:"Unknown Identifier. Use language identifiers",$ref:t.editorConfigurationSchemaId}),delete t.allSettings.patternProperties[this.overridePropertyPattern],delete t.applicationSettings.patternProperties[this.overridePropertyPattern],delete t.windowSettings.patternProperties[this.overridePropertyPattern],delete t.resourceSettings.patternProperties[this.overridePropertyPattern],this.computeOverridePropertyPattern(),t.allSettings.patternProperties[this.overridePropertyPattern]=e,t.applicationSettings.patternProperties[this.overridePropertyPattern]=e,t.windowSettings.patternProperties[this.overridePropertyPattern]=e,t.resourceSettings.patternProperties[this.overridePropertyPattern]=e,this._onDidSchemaChange.fire()},e.prototype.update=function(e){var t=this,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?h.replace("${0}",this.overrideIdentifiers.map(function(e){return s.createRegExp(e,!1).source}).join("|")):d},e}(),f="override",d="\\[.*\\]$",h="\\[(${0})\\]$";t.OVERRIDE_PROPERTY_PATTERN=new RegExp(d);var p=new l;i.Registry.add(t.Extensions.Configuration,p),t.validateProperty=u,t.getScopes=function(){for(var e={},t=p.getConfigurationProperties(),n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];e[i]=t[i].scope}return e.launch=3,e.task=3,e}}),define(e[53],t([0,1,22,15,2,26,16,28]),function(e,t,n,r,i,o,s,a){"use strict";function u(e,t){var n=Object.create(null);for(var r in e)c(n,r,e[r],t);return n}function c(e,t,n,r){for(var i=t.split("."),o=i.pop(),s=e,a=0;a<i.length;a++){var u=i[a],c=s[u];switch(typeof c){case"undefined":c=s[u]=Object.create(null);break;case"object":break;default:return void r("Ignoring "+t+" as "+i.slice(0,a+1).join(".")+" is "+JSON.stringify(c))}s=c}
  "object"==typeof s?s[o]=n:r("Ignoring "+t+" as "+i.join(".")+" is "+JSON.stringify(s))}function l(e,t){var n=t.shift();if(0!==t.length){if(-1!==Object.keys(e).indexOf(n)){var r=e[n];"object"!=typeof r||Array.isArray(r)||(l(r,t),0===Object.keys(r).length&&delete e[n])}}else delete e[n]}function f(e,t,n){var r=function(e,t){for(var n=e,r=0;r<t.length;r++){if("object"!=typeof n||null===n)return;n=n[t[r]]}return n}(e,t.split("."));return void 0===r?n:r}function d(e,t,n){Object.keys(t).forEach(function(i){i in e?r.isObject(e[i])&&r.isObject(t[i])?d(e[i],t[i],n):n&&(e[i]=t[i]):e[i]=t[i]})}function h(e){return e.substring(1,e.length-1)}Object.defineProperty(t,"__esModule",{value:!0}),t.IConfigurationService=s.createDecorator("configurationService"),t.isConfigurationOverrides=function(e){return e&&"object"==typeof e&&(!e.overrideIdentifier||"string"==typeof e.overrideIdentifier)&&(!e.resource||e.resource instanceof i.URI)};!function(e){e[e.USER=1]="USER",e[e.WORKSPACE=2]="WORKSPACE",
  e[e.WORKSPACE_FOLDER=3]="WORKSPACE_FOLDER",e[e.DEFAULT=4]="DEFAULT",e[e.MEMORY=5]="MEMORY"}(t.ConfigurationTarget||(t.ConfigurationTarget={})),t.ConfigurationTargetToString=function(e){switch(e){case 1:return"USER";case 2:return"WORKSPACE";case 3:return"WORKSPACE_FOLDER";case 4:return"DEFAULT";case 5:return"MEMORY"}},t.compare=function(e,t){for(var r=t.keys.filter(function(t){return-1===e.keys.indexOf(t)}),i=e.keys.filter(function(e){return-1===t.keys.indexOf(e)}),o=[],s=0,a=e.keys;s<a.length;s++){var u=a[s],c=f(e.contents,u),l=f(t.contents,u);n.equals(c,l)||o.push(u)}return{added:r,removed:i,updated:o}},t.toOverrides=function(e,t){for(var n=[],r=o.Registry.as(a.Extensions.Configuration).getConfigurationProperties(),i=0,s=Object.keys(e);i<s.length;i++){var c=s[i];if(a.OVERRIDE_PROPERTY_PATTERN.test(c)){var l={};for(var f in e[c])r[f]&&r[f].overridable&&(l[f]=e[c][f]);n.push({identifiers:[h(c).trim()],contents:u(l,t)})}}return n},t.toValuesTree=u,t.addToValueTree=c,t.removeFromValueTree=function(e,t){
  l(e,t.split("."))},t.getConfigurationValue=f,t.merge=d,t.getConfigurationKeys=function(){var e=o.Registry.as(a.Extensions.Configuration).getConfigurationProperties();return Object.keys(e)},t.getDefaultValues=function(){var e=Object.create(null),t=o.Registry.as(a.Extensions.Configuration).getConfigurationProperties();for(var n in t)c(e,n,t[n].default,function(e){return console.error("Conflict in default settings: "+e)});return e},t.overrideIdentifierFromKey=h,t.keyFromOverrideIdentifier=function(e){return"["+e+"]"}}),define(e[54],t([0,1,66,21,14,15,22,28,53]),function(e,t,r,i,o,s,a,u,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=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}return 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?c.getConfigurationValue(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;for(var r={},i=0,s=o.distinct(Object.keys(this.contents).concat(Object.keys(n)));i<s.length;i++){var u=s[i],c=this.contents[u],l=n[u];l&&("object"==typeof c&&"object"==typeof l?(c=a.deepClone(c),this.mergeContents(c,l)):c=l),r[u]=c}return new e(r)},e.prototype.merge=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=a.deepClone(this.contents),i=a.deepClone(this.overrides),s=this.keys.slice(),u=0,c=t;u<c.length;u++){var l=c[u];this.mergeContents(r,l.contents);for(var f=function(e){var t=i.filter(function(t){
  return o.equals(t.identifiers,e.identifiers)})[0];t?d.mergeContents(t.contents,e.contents):i.push(a.deepClone(e))},d=this,h=0,p=l.overrides;h<p.length;h++){f(p[h])}for(var g=0,m=l.keys;g<m.length;g++){var v=m[g];-1===s.indexOf(v)&&s.push(v)}}return new e(r,s,i)},e.prototype.freeze=function(){return this.isFrozen=!0,this},e.prototype.mergeContents=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];i in e&&s.isObject(e[i])&&s.isObject(t[i])?this.mergeContents(e[i],t[i]):e[i]=a.deepClone(t[i])}},e.prototype.checkAndFreeze=function(e){return this.isFrozen&&!Object.isFrozen(e)?a.deepFreeze(e):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),c.addToValueTree(this.contents,e,t,function(e){throw new Error(e)})},
  e.prototype.removeValue=function(e){this.removeKey(e)&&c.removeFromValueTree(this.contents,e)},e.prototype.addKey=function(e){for(var t=this.keys.length,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);return-1!==t&&(this.keys.splice(t,1),!0)},e}();t.ConfigurationModel=l;var f=function(e){function t(){for(var t=c.getDefaultValues(),n=c.getConfigurationKeys(),r=[],i=0,o=Object.keys(t);i<o.length;i++){var s=o[i];u.OVERRIDE_PROPERTY_PATTERN.test(s)&&r.push({identifiers:[c.overrideIdentifierFromKey(s).trim()],contents:c.toValuesTree(t[s],function(e){return console.error("Conflict in default settings file: "+e)})})}return e.call(this,t,n,r)||this}return n(t,e),t}(l);t.DefaultConfigurationModel=f;var d=function(){function e(e){this._name=e,this._configurationModel=null,this._parseErrors=[]}return Object.defineProperty(e.prototype,"configurationModel",{get:function(){return this._configurationModel||new l},enumerable:!0,
  configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this._parseErrors},enumerable:!0,configurable:!0}),e.prototype.parse=function(e){var t=this.parseContent(e),n=this.parseRaw(t);this._configurationModel=new l(n.contents,n.keys,n.overrides)},e.prototype.parseContent=function(e){function t(e){Array.isArray(o)?o.push(e):i&&(o[i]=e)}var n={},i=null,o=[],s=[],a=[],u={onObjectBegin:function(){var e={};t(e),s.push(o),o=e,i=null},onObjectProperty:function(e){i=e},onObjectEnd:function(){o=s.pop()},onArrayBegin:function(){var e=[];t(e),s.push(o),o=e,i=null},onArrayEnd:function(){o=s.pop()},onLiteralValue:t,onError:function(e){a.push({error:e})}};if(e)try{r.visit(e,u),n=o[0]||{}}catch(e){console.error("Error while parsing settings file "+this._name+": "+e),this._parseErrors=[e]}return n},e.prototype.parseRaw=function(e){var t=this;return{contents:c.toValuesTree(e,function(e){return console.error("Conflict in settings file "+t._name+": "+e)}),keys:Object.keys(e),
  overrides:c.toOverrides(e,function(e){return console.error("Conflict in settings file "+t._name+": "+e)})}},e}();t.ConfigurationModelParser=d;var h=function(){function e(e,t,n,r,o,s,a){void 0===n&&(n=new l),void 0===r&&(r=new i.ResourceMap),void 0===o&&(o=new l),void 0===s&&(s=new i.ResourceMap),void 0===a&&(a=!0),this._defaultConfiguration=e,this._userConfiguration=t,this._workspaceConfiguration=n,this._folderConfigurations=r,this._memoryConfiguration=o,this._memoryConfigurationByResource=s,this._freeze=a,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations=new i.ResourceMap}return e.prototype.getValue=function(e,t,n){return this.getConsolidateConfigurationModel(t,n).getValue(e)},e.prototype.updateValue=function(e,t,n){void 0===n&&(n={});var r;n.resource?(r=this._memoryConfigurationByResource.get(n.resource))||(r=new l,this._memoryConfigurationByResource.set(n.resource,r)):r=this._memoryConfiguration,void 0===t?r.removeValue(e):r.setValue(e,t),
  n.resource||(this._workspaceConsolidatedConfiguration=null)},e.prototype.inspect=function(e,t,n){var r=this.getConsolidateConfigurationModel(t,n),i=this.getFolderConfigurationModelForResource(t.resource,n),o=t.resource?this._memoryConfigurationByResource.get(t.resource)||this._memoryConfiguration:this._memoryConfiguration;return{default:t.overrideIdentifier?this._defaultConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._defaultConfiguration.freeze().getValue(e),user:t.overrideIdentifier?this._userConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._userConfiguration.freeze().getValue(e),workspace:n?t.overrideIdentifier?this._workspaceConfiguration.freeze().override(t.overrideIdentifier).getValue(e):this._workspaceConfiguration.freeze().getValue(e):void 0,workspaceFolder:i?t.overrideIdentifier?i.freeze().override(t.overrideIdentifier).getValue(e):i.freeze().getValue(e):void 0,
  memory:t.overrideIdentifier?o.freeze().override(t.overrideIdentifier).getValue(e):o.freeze().getValue(e),value:r.getValue(e)}},e.prototype.keys=function(e){var t=this.getFolderConfigurationModelForResource(null,e);return{default:this._defaultConfiguration.freeze().keys,user:this._userConfiguration.freeze().keys,workspace:this._workspaceConfiguration.freeze().keys,workspaceFolder:t?t.freeze().keys:[]}},e.prototype.updateDefaultConfiguration=function(e){this._defaultConfiguration=e,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()},e.prototype.updateUserConfiguration=function(e){this._userConfiguration=e,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()},e.prototype.updateWorkspaceConfiguration=function(e){this._workspaceConfiguration=e,this._workspaceConsolidatedConfiguration=null,this._foldersConsolidatedConfigurations.clear()},e.prototype.updateFolderConfiguration=function(e,t){this._folderConfigurations.set(e,t),
  this._foldersConsolidatedConfigurations.delete(e)},e.prototype.deleteFolderConfiguration=function(e){this.folders.delete(e),this._foldersConsolidatedConfigurations.delete(e)},Object.defineProperty(e.prototype,"defaults",{get:function(){return this._defaultConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"user",{get:function(){return this._userConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"workspace",{get:function(){return this._workspaceConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"folders",{get:function(){return this._folderConfigurations},enumerable:!0,configurable:!0}),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,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(){return this._workspaceConsolidatedConfiguration||(this._workspaceConsolidatedConfiguration=this._defaultConfiguration.merge(this._userConfiguration,this._workspaceConfiguration,this._memoryConfiguration),this._freeze&&(this._workspaceConfiguration=this._workspaceConfiguration.freeze())),this._workspaceConsolidatedConfiguration},e.prototype.getFolderConsolidatedConfiguration=function(e){var t=this._foldersConsolidatedConfigurations.get(e);if(!t){var n=this.getWorkspaceConsolidatedConfiguration(),r=this._folderConfigurations.get(e);r?(t=n.merge(r),this._freeze&&(t=t.freeze()),this._foldersConsolidatedConfigurations.set(e,t)):t=n}return t},e.prototype.getFolderConfigurationModelForResource=function(e,t){if(t&&e){var n=t.getFolder(e);if(n)return this._folderConfigurations.get(n.uri)}return null},
  e.prototype.toData=function(){var e=this;return{defaults:{contents:this._defaultConfiguration.contents,overrides:this._defaultConfiguration.overrides,keys:this._defaultConfiguration.keys},user:{contents:this._userConfiguration.contents,overrides:this._userConfiguration.overrides,keys:this._userConfiguration.keys},workspace:{contents:this._workspaceConfiguration.contents,overrides:this._workspaceConfiguration.overrides,keys:this._workspaceConfiguration.keys},folders:this._folderConfigurations.keys().reduce(function(t,n){var r=e._folderConfigurations.get(n),i=r.contents,o=r.overrides,s=r.keys;return t[n.toString()]={contents:i,overrides:o,keys:s},t},Object.create({})),isComplete:!0}},e.prototype.allKeys=function(e){var t=this.keys(e),n=t.default.slice(),r=function(e){for(var t=0,r=e;t<r.length;t++){var i=r[t];-1===n.indexOf(i)&&n.push(i)}};r(t.user),r(t.workspace);for(var i=0,o=this.folders.keys();i<o.length;i++){var s=o[i];r(this.folders.get(s).keys)}return n},e}();t.Configuration=h;var p=function(){
  function e(){}return e.prototype.doesConfigurationContains=function(e,t){for(var n,r,i=e.contents,o=c.toValuesTree((n={},n[t]=!0,n),function(){});"object"==typeof o&&(r=Object.keys(o)[0]);){if(!(i=i[r]))return!1;o=o[r]}return!0},e.prototype.updateKeys=function(e,t,n){for(var r=0,i=t;r<i.length;r++){var o=i[r];e.setValue(o,{})}},e}();t.AbstractConfigurationChangeEvent=p;var g=function(e){function t(t,n){void 0===t&&(t=new l),void 0===n&&(n=new i.ResourceMap);var r=e.call(this)||this;return r._changedConfiguration=t,r._changedConfigurationByResource=n,r}return n(t,e),Object.defineProperty(t.prototype,"changedConfiguration",{get:function(){return this._changedConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changedConfigurationByResource",{get:function(){return this._changedConfigurationByResource},enumerable:!0,configurable:!0}),t.prototype.change=function(e,n){if(e instanceof t){this._changedConfiguration=this._changedConfiguration.merge(e._changedConfiguration)
  ;for(var r=0,i=e._changedConfigurationByResource.keys();r<i.length;r++){var o=i[r],s=this.getOrSetChangedConfigurationForResource(o);s=s.merge(e._changedConfigurationByResource.get(o)),this._changedConfigurationByResource.set(o,s)}}else this.changeWithKeys(e,n);return this},t.prototype.telemetryData=function(e,t){return this._source=e,this._sourceConfig=t,this},Object.defineProperty(t.prototype,"affectedKeys",{get:function(){var e=this._changedConfiguration.keys.slice();return this._changedConfigurationByResource.forEach(function(t){return e.push.apply(e,t.keys)}),o.distinct(e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return this._source},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sourceConfig",{get:function(){return this._sourceConfig},enumerable:!0,configurable:!0}),t.prototype.affectsConfiguration=function(e,t){var n=[this._changedConfiguration];if(t){var r=this._changedConfigurationByResource.get(t);r&&n.push(r)
  }else n.push.apply(n,this._changedConfigurationByResource.values());for(var i=0,o=n;i<o.length;i++){var s=o[i];if(this.doesConfigurationContains(s,e))return!0}return!1},t.prototype.changeWithKeys=function(e,t){var n=t?this.getOrSetChangedConfigurationForResource(t):this._changedConfiguration;this.updateKeys(n,e)},t.prototype.getOrSetChangedConfigurationForResource=function(e){var t=this._changedConfigurationByResource.get(e);return t||(t=new l,this._changedConfigurationByResource.set(e,t)),t},t}(p);t.ConfigurationChangeEvent=g}),define(e[109],t([0,1,16,75,2]),function(e,t,n,r,i){"use strict";function o(e){return e&&"object"==typeof e&&"string"==typeof e.path&&(!e.name||"string"==typeof e.name)}function s(e){return e&&"object"==typeof e&&"string"==typeof e.uri&&(!e.name||"string"==typeof e.name)}Object.defineProperty(t,"__esModule",{value:!0}),t.IWorkspacesMainService=n.createDecorator("workspacesMainService"),t.IWorkspacesService=n.createDecorator("workspacesService"),t.WORKSPACE_EXTENSION="code-workspace",
  t.WORKSPACE_FILTER=[{name:r.localize(0,null),extensions:[t.WORKSPACE_EXTENSION]}],t.UNTITLED_WORKSPACE_NAME="workspace.json",t.isStoredWorkspaceFolder=function(e){return o(e)||s(e)},t.isRawFileWorkspaceFolder=o,t.isRawUriWorkspaceFolder=s,t.isSingleFolderWorkspaceIdentifier=function(e){return e instanceof i.URI},t.isWorkspaceIdentifier=function(e){var t=e;return t&&"string"==typeof t.id&&"string"==typeof t.configPath},t.toWorkspaceIdentifier=function(e){return e.configuration?{configPath:e.configuration.fsPath,id:e.id}:1===e.folders.length?e.folders[0].uri:void 0}}),define(e[110],t([0,1,2,19,23,16,21,109,14,8]),function(e,t,n,r,i,o,s,a,u,c){"use strict";function l(e,t){var o=function(e,t){return e.map(function(e,o){var s;if(a.isRawFileWorkspaceFolder(e))s=function(e,t){if(e){if(r.isAbsolute(e))return n.URI.file(e);if(t)return i.joinPath(t,e)}return null}(e.path,t);else if(a.isRawUriWorkspaceFolder(e))try{"/"!==(s=n.URI.parse(e.uri)).path[0]&&(s=s.with({path:"/"+s.path}))}catch(e){console.warn(e)}
  if(s)return new d({uri:s,name:e.name,index:o},e)})}(e,t);return function(e){return u.distinct(e,function(e){return c.isLinux?e.uri.toString():e.uri.toString().toLowerCase()})}(u.coalesce(o)).map(function(e,t){var n=e.uri,r=e.raw,o=e.name;return new d({uri:n,name:o||i.basenameOrAuthority(n),index:t},r)})}Object.defineProperty(t,"__esModule",{value:!0}),t.IWorkspaceContextService=o.createDecorator("contextService");!function(e){e[e.EMPTY=1]="EMPTY",e[e.FOLDER=2]="FOLDER",e[e.WORKSPACE=3]="WORKSPACE"}(t.WorkbenchState||(t.WorkbenchState={}));!function(e){e.isIWorkspace=function(e){return e&&"object"==typeof e&&"string"==typeof e.id&&Array.isArray(e.folders)}}(t.IWorkspace||(t.IWorkspace={}));!function(e){e.isIWorkspaceFolder=function(e){return e&&"object"==typeof e&&n.URI.isUri(e.uri)&&"string"==typeof e.name&&"function"==typeof e.toResource}}(t.IWorkspaceFolder||(t.IWorkspaceFolder={}));var f=function(){function e(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=null),this._id=e,this._configuration=n,this._ctime=r,
  this._foldersMap=s.TernarySearchTree.forPaths(),this.folders=t}return e.prototype.update=function(e){this._id=e.id,this._configuration=e.configuration,this._ctime=e.ctime,this.folders=e.folders},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,"ctime",{get:function(){return this._ctime},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"configuration",{get:function(){return this._configuration},set:function(e){this._configuration=e},enumerable:!0,configurable:!0}),e.prototype.getFolder=function(e){return e?this._foldersMap.findSubstr(e.toString()):null},e.prototype.updateFoldersMap=function(){this._foldersMap=s.TernarySearchTree.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}},e}();t.Workspace=f;var d=function(){function e(e,t){this.raw=t,this.uri=e.uri,this.index=e.index,this.name=e.name}return e.prototype.toResource=function(e){return i.joinPath(this.uri,e)},e.prototype.toJSON=function(){return{uri:this.uri,name:this.name,index:this.index}},e}();t.WorkspaceFolder=d,t.toWorkspaceFolders=l}),define(e[31],t([0,1,79,25,3]),function(e,t,r,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=Object.hasOwnProperty,a=o.TPromise.wrap(void 0),u=function(){function e(e,t,n,r){this.startup=e,this.codeLoadingTime=t,this.activateCallTime=n,this.activateResolvedTime=r}return e.NONE=new e(!1,-1,-1,-1),e}();t.ExtensionActivationTimes=u;var c=function(){function e(e){this._startup=e,this._codeLoadingStart=-1,this._codeLoadingStop=-1,this._activateCallStart=-1,this._activateCallStop=-1,this._activateResolveStart=-1,this._activateResolveStop=-1}
  return e.prototype._delta=function(e,t){return-1===e||-1===t?-1:t-e},e.prototype.build=function(){return new u(this._startup,this._delta(this._codeLoadingStart,this._codeLoadingStop),this._delta(this._activateCallStart,this._activateCallStop),this._delta(this._activateResolveStart,this._activateResolveStop))},e.prototype.codeLoadingStart=function(){this._codeLoadingStart=Date.now()},e.prototype.codeLoadingStop=function(){this._codeLoadingStop=Date.now()},e.prototype.activateCallStart=function(){this._activateCallStart=Date.now()},e.prototype.activateCallStop=function(){this._activateCallStop=Date.now()},e.prototype.activateResolveStart=function(){this._activateResolveStart=Date.now()},e.prototype.activateResolveStop=function(){this._activateResolveStop=Date.now()},e}();t.ExtensionActivationTimesBuilder=c;var l=function(){return function(e,t,n,r,i,o){this.activationFailed=e,this.activationFailedError=t,this.activationTimes=n,this.module=r,this.exports=i,this.subscriptions=o}}();t.ActivatedExtension=l
  ;var f=function(e){function t(t){return e.call(this,!1,null,t,{activate:void 0,deactivate:void 0},void 0,[])||this}return n(t,e),t}(l);t.EmptyExtension=f;var d=function(e){function t(t){return e.call(this,!0,t,u.NONE,{activate:void 0,deactivate:void 0},void 0,[])||this}return n(t,e),t}(l);t.FailedExtension=d;var h=function(){return function(e,t){this.startup=e,this.activationEvent=t}}();t.ExtensionActivatedByEvent=h;var p=function(){return function(e){this.startup=e}}();t.ExtensionActivatedByAPI=p;var g=function(){function e(e,t){this._registry=e,this._host=t,this._activatingExtensions={},this._activatedExtensions={},this._alreadyActivatedEvents=Object.create(null)}return e.prototype.isActivated=function(e){return s.call(this._activatedExtensions,e)},e.prototype.getActivatedExtension=function(e){if(!s.call(this._activatedExtensions,e))throw new Error("Extension `"+e+"` is not known or not activated");return this._activatedExtensions[e]},e.prototype.activateByEvent=function(e,t){var n=this
  ;if(this._alreadyActivatedEvents[e])return a;var r=this._registry.getExtensionDescriptionsForActivationEvent(e);return this._activateExtensions(r,t,0).then(function(){n._alreadyActivatedEvents[e]=!0})},e.prototype.activateById=function(e,t){var n=this._registry.getExtensionDescription(e);if(!n)throw new Error("Extension `"+e+"` is not known");return this._activateExtensions([n],t,0)},e.prototype._handleActivateRequest=function(e,t,n){for(var o=void 0===e.extensionDependencies?[]:e.extensionDependencies,a=!0,u=0,c=o.length;u<c;u++){var l=o[u],f=this._registry.getExtensionDescription(l);if(!f){this._host.showMessage(i.default.Error,r.localize(0,null,e.displayName||e.id,l));p=new Error("Unknown dependency '"+l+"'");return void(this._activatedExtensions[e.id]=new d(p))}if(s.call(this._activatedExtensions,l)){var h=this._activatedExtensions[l];if(h.activationFailed){this._host.showMessage(i.default.Error,r.localize(1,null,e.displayName||e.id,l));var p
  ;return(p=new Error("Dependency "+l+" failed to activate")).detail=h.activationFailedError,void(this._activatedExtensions[e.id]=new d(p))}}else a=!1,t[l]=f}a?t[e.id]=e:n.push(e)},e.prototype._activateExtensions=function(e,t,n){var a=this;if(0===e.length)return o.TPromise.as(void 0);if(0===(e=e.filter(function(e){return!s.call(a._activatedExtensions,e.id)})).length)return o.TPromise.as(void 0);if(n>10){for(var u=0,c=e.length;u<c;u++){this._host.showMessage(i.default.Error,r.localize(2,null,e[u].id));var l=new Error("More than 10 levels of dependencies (most likely a dependency loop)");this._activatedExtensions[e[u].id]=new d(l)}return o.TPromise.as(void 0)}for(var f=Object.create(null),h=[],u=0,c=e.length;u<c;u++)this._handleActivateRequest(e[u],f,h);for(var u=0,c=h.length;u<c;u++)f[h[u].id]&&delete f[h[u].id];var p=Object.keys(f).map(function(e){return f[e]});return 0===h.length?o.TPromise.join(p.map(function(e){return a._activateExtension(e,t)
  })).then(function(e){}):this._activateExtensions(p,t,n+1).then(function(e){return a._activateExtensions(h,t,n+1)})},e.prototype._activateExtension=function(e,t){var n=this;return s.call(this._activatedExtensions,e.id)?o.TPromise.as(void 0):s.call(this._activatingExtensions,e.id)?this._activatingExtensions[e.id]:(this._activatingExtensions[e.id]=this._host.actualActivateExtension(e,t).then(null,function(t){return n._host.showMessage(i.default.Error,r.localize(3,null,e.id,t.message)),console.error("Activating extension `"+e.id+"` failed: ",t.message),console.log("Here is the error stack: ",t.stack),new d(t)}).then(function(t){n._activatedExtensions[e.id]=t,delete n._activatingExtensions[e.id]}),this._activatingExtensions[e.id])},e}();t.ExtensionsActivator=g}),define(e[112],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this._data=new Map}return e.prototype.keep=function(t){var n=e._idPool++;return this._data.set(n,t),n},
  e.prototype.delete=function(e){return this._data.delete(e)},e.prototype.get=function(e){return this._data.get(e)},e.prototype.$onGarbageCollection=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];this.delete(r)}},e._idPool=0,e}();t.ExtHostHeapService=n}),define(e[113],t([0,1,20,14,12,17,41,13,27,23,56,9,3,106]),function(e,t,n,r,i,o,a,u,c,l,f,d,h,p){"use strict";function g(e,t){var n=s({},e||{},t||{});return Object.keys(n).filter(function(e){var t=n[e];return"boolean"==typeof t&&t})}Object.defineProperty(t,"__esModule",{value:!0}),t.resolvePatternsForProvider=g;var m=function(){function e(e,t){this._excludeExpression=s({},e.excludePattern||{},t.excludePattern||{}),this._parsedExcludeExpression=c.parse(this._excludeExpression);var n=e.includePattern;t.includePattern&&(n=n?s({},n,t.includePattern):t.includePattern),n&&(this._parsedIncludeExpression=c.parse(n))}return e.prototype.includedInQuerySync=function(e,t,n){
  return(!this._parsedExcludeExpression||!this._parsedExcludeExpression(e,t,n))&&!(this._parsedIncludeExpression&&!this._parsedIncludeExpression(e,t,n))},e.prototype.includedInQuery=function(e,t,n){var r=this;return(this._parsedExcludeExpression?h.TPromise.as(this._parsedExcludeExpression(e,t,n)).then(function(e){return!!e}):h.TPromise.wrap(!1)).then(function(i){return!i&&(r._parsedIncludeExpression?h.TPromise.as(r._parsedIncludeExpression(e,t,n)).then(function(e){return!!e}):h.TPromise.wrap(!0))}).then(function(e){return e})},e.prototype.hasSiblingExcludeClauses=function(){return function(e){for(var t in e)if("boolean"!=typeof e[t])return!0;return!1}(this._excludeExpression)},e}();t.QueryGlobTester=m;var v=function(){function e(e,t){this.config=e,this.provider=t,this.filesWalked=0,this.dirsWalked=0,this.filePattern=e.filePattern,this.includePattern=e.includePattern&&c.parse(e.includePattern),this.maxResults=e.maxResults||null,this.exists=e.exists,this.resultCount=0,this.isLimitHit=!1,
  this.activeCancellationTokens=new Set,this.filePattern&&(this.normalizedFilePatternLowercase=d.stripWildcards(this.filePattern).toLowerCase()),this.globalExcludePattern=e.excludePattern&&c.parse(e.excludePattern)}return e.prototype.cancel=function(){this.isCanceled=!0,this.activeCancellationTokens.forEach(function(e){return e.cancel()}),this.activeCancellationTokens=new Set},e.prototype.search=function(e){var t=this;if(1!==this.config.folderQueries.length)throw new Error("Searches just one folder");var r=this.config.folderQueries[0];return new h.TPromise(function(i,o){var s=function(n){t.resultCount++,e(n)};if(t.isCanceled)throw u.canceled();return t.config.extraFileResources&&t.config.extraFileResources.forEach(function(e){var r=e.toString(),i=n.basename(r);t.globalExcludePattern&&t.globalExcludePattern(r,i)||t.matchFile(s,{base:e,basename:i})}),t.searchInFolder(r,e).then(function(e){i({isLimitHit:t.isLimitHit,stats:e})},function(e){o(new Error(a.toErrorMessage(e)))})})},
  e.prototype.searchInFolder=function(e,t){var r=this,i=new o.CancellationTokenSource;return new h.TPromise(function(o,s){var a,u,c,l=r.getSearchOptionsForFolder(e),d=r.initDirectoryTree(),p=new m(r.config,e),g=!p.hasSiblingExcludeClauses(),v=function(i){if(!r.isCanceled){var o=n.relative(e.folder.path,i.path);if(g){var s=n.basename(i.path);r.matchFile(t,{base:e.folder,relativePath:o,basename:s,original:i})}else r.addDirectoryEntries(d,e.folder,o,t)}};new h.TPromise(function(e){return process.nextTick(e)}).then(function(){return r.activeCancellationTokens.add(i),a=f.StopWatch.create(),r.provider.provideFileIndex(l,i.token)}).then(function(e){u=a.elapsed();var n=f.StopWatch.create();return r.activeCancellationTokens.delete(i),r.isCanceled?null:(e.forEach(v),r.matchDirectoryTree(d,p,t),c=n.elapsed(),null)}).then(function(){i.dispose(),o({providerTime:u,fileWalkTime:c,directoriesWalked:r.dirsWalked,filesWalked:r.filesWalked})},function(e){i.dispose(),s(e)})})},e.prototype.getSearchOptionsForFolder=function(e){
  var t=g(this.config.includePattern,e.includePattern),n=g(this.config.excludePattern,e.excludePattern);return{folder:e.folder,excludes:n,includes:t,useIgnoreFiles:!this.config.disregardIgnoreFiles,followSymlinks:!this.config.ignoreSymlinks}},e.prototype.initDirectoryTree=function(){var e={rootEntries:[],pathToEntries:Object.create(null)};return e.pathToEntries["."]=e.rootEntries,e},e.prototype.addDirectoryEntries=function(e,t,r,i){function o(e){var r=n.basename(e),i=n.dirname(e),a=s[i];a||(a=s[i]=[],o(i)),a.push({base:t,relativePath:e,basename:r})}var s=e.pathToEntries;if(r===this.filePattern){var a=n.basename(this.filePattern);this.matchFile(i,{base:t,relativePath:this.filePattern,basename:a})}o(r)},e.prototype.matchDirectoryTree=function(e,t,n){function r(e){s.dirsWalked++;for(var i=0,u=e.length;i<u;i++){var l=e[i],f=l.relativePath,d=l.basename,h=c.hasSiblingFn(function(){return e.map(function(e){return e.basename})});if(t.includedInQuerySync(f,d,a!==d?h:void 0)){var p=o[f];if(p)r(p);else{if(s.filesWalked++,
  f===a)continue;s.matchFile(n,l)}if(s.isLimitHit)break}}}var i=e.rootEntries,o=e.pathToEntries,s=this,a=this.filePattern;r(i)},e.prototype.matchFile=function(e,t){!this.isFilePatternMatch(t.relativePath)||this.includePattern&&!this.includePattern(t.relativePath,t.basename)||((this.exists||this.maxResults&&this.resultCount>=this.maxResults)&&(this.isLimitHit=!0,this.cancel()),this.isLimitHit||e(t))},e.prototype.isFilePatternMatch=function(e){return!this.filePattern||("*"===this.filePattern||d.fuzzyContains(e,this.normalizedFilePatternLowercase))},e}();t.FileIndexSearchEngine=v;var y=function(){function e(){this.caches=Object.create(null),this.folderCacheKeys=new Map}return e.prototype.fileSearch=function(t,n,r,i){var o=this;if(t.sortByScore){var a=this.trySortedSearchFromCache(t,i);if(!a){var u=t.maxResults?s({},t,{maxResults:null}):t,c=new v(u,n);a=this.doSortedSearch(c,t,i)}return a.then(function(t){return o.sendAsBatches(t.results,r,e.BATCH_SIZE),t})}var l=new v(t,n)
  ;return this.doSearch(l,i).then(function(t){return o.sendAsBatches(t.results,r,e.BATCH_SIZE),{limitHit:t.limitHit,stats:{type:"fileIndexProvider",detailStats:t.stats,fromCache:!1,resultCount:t.results.length}}})},e.prototype.getFolderCacheKey=function(e){var t=e.folderQueries[0].folder.toString(),n=e.cacheKey&&t+"_"+e.cacheKey;return this.folderCacheKeys.get(e.cacheKey)||this.folderCacheKeys.set(e.cacheKey,new Set),this.folderCacheKeys.get(e.cacheKey).add(n),n},e.prototype.rawMatchToSearchItem=function(e){return{resource:e.original||l.joinPath(e.base,e.relativePath)}},e.prototype.doSortedSearch=function(e,t,n){var r,o=this,s=i.createCancelablePromise(function(t){return o.doSearch(e,t)}),a=this.getFolderCacheKey(t);if(a){var u={promise:s,resolved:!1};(r=this.getOrCreateCache(a)).resultsToSearchCache[t.filePattern]=u,s.then(function(){u.resolved=!0},function(e){delete r.resultsToSearchCache[t.filePattern]}),s=this.preventCancellation(s)}return h.TPromise.wrap(s.then(function(e){
  var i=r?r.scorerCache:Object.create(null),s=("number"!=typeof t.maxResults||t.maxResults>0)&&f.StopWatch.create();return o.sortResults(t,e.results,i,n).then(function(n){var r=s?s.elapsed():-1;return{limitHit:e.limitHit||"number"==typeof t.maxResults&&e.results.length>t.maxResults,results:n,stats:{detailStats:e.stats,fromCache:!1,resultCount:n.length,sortingTime:r,type:"fileIndexProvider"}}})}))},e.prototype.getOrCreateCache=function(e){var t=this.caches[e];return t||(this.caches[e]=new _)},e.prototype.trySortedSearchFromCache=function(e,t){var n=this,r=this.getFolderCacheKey(e),i=r&&this.caches[r];if(i){var o=this.getResultsFromCache(i,e.filePattern,t);return o?o.then(function(r){var o=f.StopWatch.create();return n.sortResults(e,r.results,i.scorerCache,t).then(function(n){if(t&&t.isCancellationRequested)throw u.canceled();return{limitHit:r.limitHit||"number"==typeof e.maxResults&&r.results.length>e.maxResults,results:n,stats:{fromCache:!0,detailStats:r.stats,type:"fileIndexProvider",resultCount:n.length,
  sortingTime:o.elapsed()}}})}):void 0}},e.prototype.sortResults=function(e,t,n,i){var o=p.prepareQuery(e.filePattern);return r.topAsync(t,function(e,t){return p.compareItemsByScore(e,t,o,!0,b,n)},e.maxResults,1e4,i)},e.prototype.sendAsBatches=function(e,t,n){var r=this,i=e.map(function(e){return r.rawMatchToSearchItem(e)});if(n&&n>0)for(var o=0;o<i.length;o+=n)t(i.slice(o,o+n));else t(i)},e.prototype.getResultsFromCache=function(e,t,r){var i=f.StopWatch.create();if(n.isAbsolute(t))return null;var o,s=t.indexOf(n.sep)>=0;for(var a in e.resultsToSearchCache)if(d.startsWith(t,a)){if(s&&a.indexOf(n.sep)<0)continue;var c=e.resultsToSearchCache[a];o={promise:this.preventCancellation(c.promise),resolved:c.resolved};break}if(!o)return null;var l=i.elapsed(),p=f.StopWatch.create();return new h.TPromise(function(e,n){r.onCancellationRequested(function(){return n(u.canceled())}),o.promise.then(function(i){r&&r.isCancellationRequested&&n(u.canceled())
  ;for(var s=[],a=d.stripWildcards(t).toLowerCase(),c=0;c<i.results.length;c++){var f=i.results[c];d.fuzzyContains(f.relativePath,a)&&s.push(f)}e({limitHit:i.limitHit,results:s,stats:{cacheWasResolved:o.resolved,cacheLookupTime:l,cacheFilterTime:p.elapsed(),cacheEntryCount:i.results.length}})},n)})},e.prototype.doSearch=function(e,t){t.onCancellationRequested(function(){return e.cancel()});var n=[];return e.search(function(e){return n.push(e)}).then(function(e){return{limitHit:e.isLimitHit,results:n,stats:e.stats}})},e.prototype.clearCache=function(e){var t=this;if(!this.folderCacheKeys.has(e))return h.TPromise.wrap(void 0);return this.folderCacheKeys.get(e).forEach(function(e){return delete t.caches[e]}),this.folderCacheKeys.delete(e),h.TPromise.as(void 0)},e.prototype.preventCancellation=function(e){return new(function(){function t(){}return t.prototype.cancel=function(){},t.prototype.then=function(t,n){return e.then(t,n)},t.prototype.catch=function(e){return this.then(void 0,e)},t}())},e.BATCH_SIZE=512,e}()
  ;t.FileIndexSearchManager=y;var _=function(){return function(){this.resultsToSearchCache=Object.create(null),this.scorerCache=Object.create(null)}}(),b=new(function(){function e(){}return e.prototype.getItemLabel=function(e){return e.basename},e.prototype.getItemDescription=function(e){return e.relativePath.substr(0,e.relativePath.length-e.basename.length-1)},e.prototype.getItemPath=function(e){return e.relativePath},e}())}),define(e[7],t([0,1,171,2,13,52,20,9,21,14]),function(e,t,r,i,o,s,a,u,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=function(){function e(e){this._callOnDispose=e}return e.from=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new e(function(){if(t){for(var e=0,n=t;e<n.length;e++){var r=n[e];r&&"function"==typeof r.dispose&&r.dispose()}t=void 0}})},e.prototype.dispose=function(){"function"==typeof this._callOnDispose&&(this._callOnDispose(),this._callOnDispose=void 0)},e}();t.Disposable=f;var d=function(){function e(e,t){
  if(e<0)throw o.illegalArgument("line must be non-negative");if(t<0)throw o.illegalArgument("character must be non-negative");this._line=e,this._character=t}return e.Min=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.pop(),r=0,i=e;r<i.length;r++){var o=i[r];o.isBefore(n)&&(n=o)}return n},e.Max=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e.pop(),r=0,i=e;r<i.length;r++){var o=i[r];o.isAfter(n)&&(n=o)}return n},e.isPosition=function(t){if(!t)return!1;if(t instanceof e)return!0;var n=t,r=n.line,i=n.character;return"number"==typeof r&&"number"==typeof i},Object.defineProperty(e.prototype,"line",{get:function(){return this._line},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"character",{get:function(){return this._character},enumerable:!0,configurable:!0}),e.prototype.isBefore=function(e){return this._line<e._line||!(e._line<this._line)&&this._character<e._character},e.prototype.isBeforeOrEqual=function(e){
  return this._line<e._line||!(e._line<this._line)&&this._character<=e._character},e.prototype.isAfter=function(e){return!this.isBeforeOrEqual(e)},e.prototype.isAfterOrEqual=function(e){return!this.isBefore(e)},e.prototype.isEqual=function(e){return this._line===e._line&&this._character===e._character},e.prototype.compareTo=function(e){return this._line<e._line?-1:this._line>e.line?1:this._character<e._character?-1:this._character>e._character?1:0},e.prototype.translate=function(t,n){if(void 0===n&&(n=0),null===t||null===n)throw o.illegalArgument();var r;return void 0===t?r=0:"number"==typeof t?r=t:(r="number"==typeof t.lineDelta?t.lineDelta:0,n="number"==typeof t.characterDelta?t.characterDelta:0),0===r&&0===n?this:new e(this.line+r,this.character+n)},e.prototype.with=function(t,n){if(void 0===n&&(n=this.character),null===t||null===n)throw o.illegalArgument();var r;return void 0===t?r=this.line:"number"==typeof t?r=t:(r="number"==typeof t.line?t.line:this.line,
  n="number"==typeof t.character?t.character:this.character),r===this.line&&n===this.character?this:new e(r,n)},e.prototype.toJSON=function(){return{line:this.line,character:this.character}},e}();t.Position=d;var h=function(){function e(e,t,n,r){var i,o;if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r?(i=new d(e,t),o=new d(n,r)):e instanceof d&&t instanceof d&&(i=e,o=t),!i||!o)throw new Error("Invalid arguments");i.isBefore(o)?(this._start=i,this._end=o):(this._start=o,this._end=i)}return e.isRange=function(t){return t instanceof e||!!t&&(d.isPosition(t.start)&&d.isPosition(t.end))},Object.defineProperty(e.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),e.prototype.contains=function(t){return t instanceof e?this.contains(t._start)&&this.contains(t._end):t instanceof d&&(!t.isBefore(this._start)&&!this._end.isBefore(t))},
  e.prototype.isEqual=function(e){return this._start.isEqual(e._start)&&this._end.isEqual(e._end)},e.prototype.intersection=function(t){var n=d.Max(t.start,this._start),r=d.Min(t.end,this._end);if(!n.isAfter(r))return new e(n,r)},e.prototype.union=function(t){if(this.contains(t))return this;if(t.contains(this))return t;return new e(d.Min(t.start,this._start),d.Max(t.end,this.end))},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return this._start.isEqual(this._end)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isSingleLine",{get:function(){return this._start.line===this._end.line},enumerable:!0,configurable:!0}),e.prototype.with=function(t,n){if(void 0===n&&(n=this.end),null===t||null===n)throw o.illegalArgument();var r;return t?d.isPosition(t)?r=t:(r=t.start||this.start,n=t.end||this.end):r=this.start,r.isEqual(this._start)&&n.isEqual(this.end)?this:new e(r,n)},e.prototype.toJSON=function(){return[this.start,this.end]},e}();t.Range=h;var p=function(e){function t(t,n,r,i){
  var o,s,a=this;if("number"==typeof t&&"number"==typeof n&&"number"==typeof r&&"number"==typeof i?(o=new d(t,n),s=new d(r,i)):t instanceof d&&n instanceof d&&(o=t,s=n),!o||!s)throw new Error("Invalid arguments");return a=e.call(this,o,s)||this,a._anchor=o,a._active=s,a}return n(t,e),t.isSelection=function(e){return e instanceof t||!!e&&(h.isRange(e)&&d.isPosition(e.anchor)&&d.isPosition(e.active)&&"boolean"==typeof e.isReversed)},Object.defineProperty(t.prototype,"anchor",{get:function(){return this._anchor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){return this._active},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isReversed",{get:function(){return this._anchor===this._end},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){return{start:this.start,end:this.end,active:this.active,anchor:this.anchor}},t}(h);t.Selection=p;!function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"}(t.EndOfLine||(t.EndOfLine={}));var g=function(){function e(e,t){
  this.range=e,this.newText=t}return e.isTextEdit=function(t){return t instanceof e||!!t&&(h.isRange(t)&&"string"==typeof t.newText)},e.replace=function(t,n){return new e(t,n)},e.insert=function(t,n){return e.replace(new h(t,t),n)},e.delete=function(t){return e.replace(t,"")},e.setEndOfLine=function(t){var n=new e(void 0,void 0);return n.newEol=t,n},Object.defineProperty(e.prototype,"range",{get:function(){return this._range},set:function(e){if(e&&!h.isRange(e))throw o.illegalArgument("range");this._range=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"newText",{get:function(){return this._newText||""},set:function(e){if(e&&"string"!=typeof e)throw o.illegalArgument("newText");this._newText=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"newEol",{get:function(){return this._newEol},set:function(e){if(e&&"number"!=typeof e)throw o.illegalArgument("newEol");this._newEol=e},enumerable:!0,configurable:!0}),e.prototype.toJSON=function(){return{range:this.range,
  newText:this.newText,newEol:this._newEol}},e}();t.TextEdit=g;var m=function(){function e(){this._edits=new Array}return e.prototype.renameFile=function(e,t,n){this._edits.push({_type:1,from:e,to:t,options:n})},e.prototype.createFile=function(e,t){this._edits.push({_type:1,from:void 0,to:e,options:t})},e.prototype.deleteFile=function(e,t){this._edits.push({_type:1,from:e,to:void 0,options:t})},e.prototype.replace=function(e,t,n){this._edits.push({_type:2,uri:e,edit:new g(t,n)})},e.prototype.insert=function(e,t,n){this.replace(e,new h(t,t),n)},e.prototype.delete=function(e,t){this.replace(e,t,"")},e.prototype.has=function(e){for(var t=0,n=this._edits;t<n.length;t++){var r=n[t];if(2===r._type&&r.uri.toString()===e.toString())return!0}return!1},e.prototype.set=function(e,t){if(t)for(var n=0,r=t;n<r.length;n++){var i=r[n];i&&this._edits.push({_type:2,uri:e,edit:i})}else{for(var o=0;o<this._edits.length;o++){var s=this._edits[o];2===s._type&&s.uri.toString()===e.toString()&&(this._edits[o]=void 0)}
  this._edits=l.coalesce(this._edits)}},e.prototype.get=function(e){for(var t=[],n=0,r=this._edits;n<r.length;n++){var i=r[n];2===i._type&&i.uri.toString()===e.toString()&&t.push(i.edit)}if(0!==t.length)return t},e.prototype.entries=function(){for(var e=new Map,t=0,n=this._edits;t<n.length;t++){var r=n[t];if(2===r._type){var i=e.get(r.uri.toString());i||(i=[r.uri,[]],e.set(r.uri.toString(),i)),i[1].push(r.edit)}}return c.values(e)},e.prototype._allEntries=function(){for(var e=[],t=0,n=this._edits;t<n.length;t++){var r=n[t];1===r._type?e.push([r.from,r.to,r.options]):e.push([r.uri,[r.edit]])}return e},Object.defineProperty(e.prototype,"size",{get:function(){return this.entries().length},enumerable:!0,configurable:!0}),e.prototype.toJSON=function(){return this.entries()},e}();t.WorkspaceEdit=m;var v=function(){function e(e){this._tabstop=1,this.value=e||""}return e.isSnippetString=function(t){return t instanceof e||!!t&&"string"==typeof t.value},e._escape=function(e){return e.replace(/\$|}|\\/g,"\\$&")},
  e.prototype.appendText=function(t){return this.value+=e._escape(t),this},e.prototype.appendTabstop=function(e){return void 0===e&&(e=this._tabstop++),this.value+="$",this.value+=e,this},e.prototype.appendPlaceholder=function(t,n){if(void 0===n&&(n=this._tabstop++),"function"==typeof t){var r=new e;r._tabstop=this._tabstop,t(r),this._tabstop=r._tabstop,t=r.value}else t=e._escape(t);return this.value+="${",this.value+=n,this.value+=":",this.value+=t,this.value+="}",this},e.prototype.appendVariable=function(t,n){if("function"==typeof n){var r=new e;r._tabstop=this._tabstop,n(r),this._tabstop=r._tabstop,n=r.value}else"string"==typeof n&&(n=n.replace(/\$|}/g,"\\$&"));return this.value+="${",this.value+=t,n&&(this.value+=":",this.value+=n),this.value+="}",this},e}();t.SnippetString=v;!function(e){e[e.Unnecessary=1]="Unnecessary"}(t.DiagnosticTag||(t.DiagnosticTag={}));var y;!function(e){e[e.Hint=3]="Hint",e[e.Information=2]="Information",e[e.Warning=1]="Warning",e[e.Error=0]="Error"
  }(y=t.DiagnosticSeverity||(t.DiagnosticSeverity={}));var _=function(){function e(e,t){if(this.uri=e,t)if(t instanceof h)this.range=t;else{if(!(t instanceof d))throw new Error("Illegal argument");this.range=new h(t,t)}else;}return e.isLocation=function(t){return t instanceof e||!!t&&(h.isRange(t.range)&&i.URI.isUri(t.uri))},e.prototype.toJSON=function(){return{uri:this.uri,range:this.range}},e}();t.Location=_;var b=function(){function e(e,t){this.location=e,this.message=t}return e.is=function(e){return!!e&&("string"==typeof e.message&&e.location&&h.isRange(e.location.range)&&i.URI.isUri(e.location.uri))},e.isEqual=function(e,t){return e===t||!(!e||!t)&&(e.message===t.message&&e.location.range.isEqual(t.location.range)&&e.location.uri.toString()===t.location.uri.toString())},e}();t.DiagnosticRelatedInformation=b;var C=function(){function e(e,t,n){void 0===n&&(n=y.Error),this.range=e,this.message=t,this.severity=n}return e.prototype.toJSON=function(){return{severity:y[this.severity],message:this.message,
  range:this.range,source:this.source,code:this.code}},e.isEqual=function(e,t){return e===t||!(!e||!t)&&(e.message===t.message&&e.severity===t.severity&&e.code===t.code&&e.severity===t.severity&&e.source===t.source&&e.range.isEqual(t.range)&&l.equals(e.tags,t.tags)&&l.equals(e.relatedInformation,t.relatedInformation,b.isEqual))},e}();t.Diagnostic=C;var S=function(){return function(e,t){if(!e)throw new Error("Illegal argument, contents must be defined");Array.isArray(e)?this.contents=e:(s.isMarkdownString(e),this.contents=[e]),this.range=t}}();t.Hover=S;var x;!function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"}(x=t.DocumentHighlightKind||(t.DocumentHighlightKind={}));var w=function(){function e(e,t){void 0===t&&(t=x.Text),this.range=e,this.kind=t}return e.prototype.toJSON=function(){return{range:this.range,kind:x[this.kind]}},e}();t.DocumentHighlight=w;var E;!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"}(E=t.SymbolKind||(t.SymbolKind={}));var P=function(){function e(e,t,n,r,i){this.name=e,this.kind=t,this.containerName=i,"string"==typeof n&&(this.containerName=n),r instanceof _?this.location=r:n instanceof h&&(this.location=new _(r,n))}return e.prototype.toJSON=function(){return{name:this.name,kind:E[this.kind],location:this.location,containerName:this.containerName}},e}();t.SymbolInformation=P;var T=function(){return function(e,t,n,r,i){if(this.name=e,this.detail=t,this.kind=n,
  this.range=r,this.selectionRange=i,this.children=[],!this.range.contains(this.selectionRange))throw new Error("selectionRange must be contained in fullRange")}}();t.DocumentSymbol=T;!function(e){e[e.Automatic=1]="Automatic",e[e.Manual=2]="Manual"}(t.CodeActionTrigger||(t.CodeActionTrigger={}));var D=function(){return function(e,t){this.title=e,this.kind=t}}();t.CodeAction=D;var k=function(){function e(e){this.value=e}return e.prototype.append=function(t){return new e(this.value?this.value+e.sep+t:t)},e.prototype.contains=function(t){return this.value===t.value||u.startsWith(t.value,this.value+e.sep)},e.sep=".",e.Empty=new e(""),e.QuickFix=e.Empty.append("quickfix"),e.Refactor=e.Empty.append("refactor"),e.RefactorExtract=e.Refactor.append("extract"),e.RefactorInline=e.Refactor.append("inline"),e.RefactorRewrite=e.Refactor.append("rewrite"),e.Source=e.Empty.append("source"),e.SourceOrganizeImports=e.Source.append("organizeImports"),e}();t.CodeActionKind=k;var I=function(){function e(e,t){this.range=e,
  this.command=t}return Object.defineProperty(e.prototype,"isResolved",{get:function(){return!!this.command},enumerable:!0,configurable:!0}),e}();t.CodeLens=I;var O=function(){function e(e){this.value=e||""}return e.prototype.appendText=function(e){return this.value+=e.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&"),this},e.prototype.appendMarkdown=function(e){return this.value+=e,this},e.prototype.appendCodeblock=function(e,t){return void 0===t&&(t=""),this.value+="\n```",this.value+=t,this.value+="\n",this.value+=e,this.value+="\n```\n",this},e}();t.MarkdownString=O;var R=function(){return function(e,t){this.label=e,this.documentation=t}}();t.ParameterInformation=R;var A=function(){return function(e,t){this.label=e,this.documentation=t,this.parameters=[]}}();t.SignatureInformation=A;var L=function(){return function(){this.signatures=[]}}();t.SignatureHelp=L;!function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.Retrigger=3]="Retrigger"
  }(t.SignatureHelpTriggerReason||(t.SignatureHelpTriggerReason={}));!function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"}(t.CompletionTriggerKind||(t.CompletionTriggerKind={}));var M;!function(e){e[e.Text=0]="Text",e[e.Method=1]="Method",e[e.Function=2]="Function",e[e.Constructor=3]="Constructor",e[e.Field=4]="Field",e[e.Variable=5]="Variable",e[e.Class=6]="Class",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Unit=10]="Unit",e[e.Value=11]="Value",e[e.Enum=12]="Enum",e[e.Keyword=13]="Keyword",e[e.Snippet=14]="Snippet",e[e.Color=15]="Color",e[e.File=16]="File",e[e.Reference=17]="Reference",e[e.Folder=18]="Folder",e[e.EnumMember=19]="EnumMember",e[e.Constant=20]="Constant",e[e.Struct=21]="Struct",e[e.Event=22]="Event",e[e.Operator=23]="Operator",e[e.TypeParameter=24]="TypeParameter"}(M=t.CompletionItemKind||(t.CompletionItemKind={}));var F=function(){function e(e,t){this.label=e,
  this.kind=t}return e.prototype.toJSON=function(){return{label:this.label,kind:M[this.kind],detail:this.detail,documentation:this.documentation,sortText:this.sortText,filterText:this.filterText,preselect:this.preselect,insertText:this.insertText,textEdit:this.textEdit}},e}();t.CompletionItem=F;var N=function(){return function(e,t){void 0===e&&(e=[]),void 0===t&&(t=!1),this.items=e,this.isIncomplete=t}}();t.CompletionList=N;!function(e){e[e.Active=-1]="Active",e[e.Beside=-2]="Beside",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Three=3]="Three",e[e.Four=4]="Four",e[e.Five=5]="Five",e[e.Six=6]="Six",e[e.Seven=7]="Seven",e[e.Eight=8]="Eight",e[e.Nine=9]="Nine"}(t.ViewColumn||(t.ViewColumn={}));!function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"}(t.StatusBarAlignment||(t.StatusBarAlignment={}));!function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative"}(t.TextEditorLineNumbersStyle||(t.TextEditorLineNumbersStyle={}));!function(e){e[e.Manual=1]="Manual",e[e.AfterDelay=2]="AfterDelay",
  e[e.FocusOut=3]="FocusOut"}(t.TextDocumentSaveReason||(t.TextDocumentSaveReason={}));!function(e){e[e.Default=0]="Default",e[e.InCenter=1]="InCenter",e[e.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",e[e.AtTop=3]="AtTop"}(t.TextEditorRevealType||(t.TextEditorRevealType={}));!function(e){e[e.Keyboard=1]="Keyboard",e[e.Mouse=2]="Mouse",e[e.Command=3]="Command"}(t.TextEditorSelectionChangeKind||(t.TextEditorSelectionChangeKind={}));!function(e){e[e.OpenOpen=0]="OpenOpen",e[e.ClosedClosed=1]="ClosedClosed",e[e.OpenClosed=2]="OpenClosed",e[e.ClosedOpen=3]="ClosedOpen"}(t.DecorationRangeBehavior||(t.DecorationRangeBehavior={})),function(e){e.fromValue=function(t){switch(t){case"keyboard":return e.Keyboard;case"mouse":return e.Mouse;case"api":return e.Command}}}(t.TextEditorSelectionChangeKind||(t.TextEditorSelectionChangeKind={}));var H=function(){return function(e,t){if(t&&!(t instanceof i.URI))throw o.illegalArgument("target");if(!h.isRange(e)||e.isEmpty)throw o.illegalArgument("range");this.range=e,
  this.target=t}}();t.DocumentLink=H;var W=function(){return function(e,t,n,r){this.red=e,this.green=t,this.blue=n,this.alpha=r}}();t.Color=W;var j=function(){return function(e,t){if(t&&!(t instanceof W))throw o.illegalArgument("color");if(!h.isRange(e)||e.isEmpty)throw o.illegalArgument("range");this.range=e,this.color=t}}();t.ColorInformation=j;var B=function(){return function(e){if(!e||"string"!=typeof e)throw o.illegalArgument("label");this.label=e}}();t.ColorPresentation=B;!function(e){e[e.RGB=0]="RGB",e[e.HEX=1]="HEX",e[e.HSL=2]="HSL"}(t.ColorFormat||(t.ColorFormat={}));!function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Information=2]="Information"}(t.SourceControlInputBoxValidationType||(t.SourceControlInputBoxValidationType={}));!function(e){e[e.Always=1]="Always",e[e.Silent=2]="Silent",e[e.Never=3]="Never"}(t.TaskRevealKind||(t.TaskRevealKind={}));!function(e){e[e.Shared=1]="Shared",e[e.Dedicated=2]="Dedicated",e[e.New=3]="New"}(t.TaskPanelKind||(t.TaskPanelKind={}));var U=function(){
  function e(e,t){if("string"!=typeof e)throw o.illegalArgument("name");if("string"!=typeof t)throw o.illegalArgument("name");this._id=e}return e.from=function(t){switch(t){case"clean":return e.Clean;case"build":return e.Build;case"rebuild":return e.Rebuild;case"test":return e.Test;default:return}},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),e.Clean=new e("clean","Clean"),e.Build=new e("build","Build"),e.Rebuild=new e("rebuild","Rebuild"),e.Test=new e("test","Test"),e}();t.TaskGroup=U;var z=function(){function e(e,t,n){if("string"!=typeof e)throw o.illegalArgument("process");this._process=e,void 0!==t&&(Array.isArray(t)?(this._args=t,this._options=n):this._options=t),void 0===this._args&&(this._args=[])}return Object.defineProperty(e.prototype,"process",{get:function(){return this._process},set:function(e){if("string"!=typeof e)throw o.illegalArgument("process");this._process=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"args",{
  get:function(){return this._args},set:function(e){Array.isArray(e)||(e=[]),this._args=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=e},enumerable:!0,configurable:!0}),e.prototype.computeId=function(){var e=r.createHash("md5");if(e.update("process"),void 0!==this._process&&e.update(this._process),this._args&&this._args.length>0)for(var t=0,n=this._args;t<n.length;t++){var i=n[t];e.update(i)}return e.digest("hex")},e}();t.ProcessExecution=z;var K=function(){function e(e,t,n){if(Array.isArray(t)){if(!e)throw o.illegalArgument("command can't be undefined or null");if("string"!=typeof e&&"string"!=typeof e.value)throw o.illegalArgument("command");this._command=e,this._args=t,this._options=n}else{if("string"!=typeof e)throw o.illegalArgument("commandLine");this._commandLine=e,this._options=t}}return Object.defineProperty(e.prototype,"commandLine",{get:function(){return this._commandLine},set:function(e){
  if("string"!=typeof e)throw o.illegalArgument("commandLine");this._commandLine=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"command",{get:function(){return this._command},set:function(e){if("string"!=typeof e&&"string"!=typeof e.value)throw o.illegalArgument("command");this._command=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"args",{get:function(){return this._args},set:function(e){this._args=e||[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},set:function(e){this._options=e},enumerable:!0,configurable:!0}),e.prototype.computeId=function(){var e=r.createHash("md5");if(e.update("shell"),void 0!==this._commandLine&&e.update(this._commandLine),void 0!==this._command&&e.update("string"==typeof this._command?this._command:this._command.value),this._args&&this._args.length>0)for(var t=0,n=this._args;t<n.length;t++){var i=n[t];e.update("string"==typeof i?i:i.value)}return e.digest("hex")},e}()
  ;t.ShellExecution=K;!function(e){e[e.Escape=1]="Escape",e[e.Strong=2]="Strong",e[e.Weak=3]="Weak"}(t.ShellQuoting||(t.ShellQuoting={}));var V;!function(e){e[e.Global=1]="Global",e[e.Workspace=2]="Workspace"}(V=t.TaskScope||(t.TaskScope={}));var $=function(){function e(e,t,n,r,i,o){this.definition=e;var s;"string"==typeof t?(this.name=t,this.source=n,this.execution=r,s=i):(t===V.Global||V.Workspace,this.target=t,this.name=n,this.source=r,this.execution=i,s=o),"string"==typeof s?(this._problemMatchers=[s],this._hasDefinedMatchers=!0):Array.isArray(s)?(this._problemMatchers=s,this._hasDefinedMatchers=!0):(this._problemMatchers=[],this._hasDefinedMatchers=!1),this._isBackground=!1}return Object.defineProperty(e.prototype,"_id",{get:function(){return this.__id},set:function(e){this.__id=e},enumerable:!0,configurable:!0}),e.prototype.clear=function(){void 0!==this.__id&&(this.__id=void 0,this._scope=void 0,this._definition=void 0,this._execution instanceof z?this._definition={type:"process",
  id:this._execution.computeId()}:this._execution instanceof K&&(this._definition={type:"shell",id:this._execution.computeId()}))},Object.defineProperty(e.prototype,"definition",{get:function(){return this._definition},set:function(e){if(void 0===e||null===e)throw o.illegalArgument("Kind can't be undefined or null");this.clear(),this._definition=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scope",{get:function(){return this._scope},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"target",{set:function(e){this.clear(),this._scope=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},set:function(e){if("string"!=typeof e)throw o.illegalArgument("name");this.clear(),this._name=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"execution",{get:function(){return this._execution},set:function(e){null===e&&(e=void 0),this.clear(),this._execution=e},enumerable:!0,configurable:!0}),
  Object.defineProperty(e.prototype,"problemMatchers",{get:function(){return this._problemMatchers},set:function(e){if(!Array.isArray(e))return this._problemMatchers=[],void(this._hasDefinedMatchers=!1);this.clear(),this._problemMatchers=e,this._hasDefinedMatchers=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasDefinedMatchers",{get:function(){return this._hasDefinedMatchers},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isBackground",{get:function(){return this._isBackground},set:function(e){!0!==e&&!1!==e&&(e=!1),this.clear(),this._isBackground=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"source",{get:function(){return this._source},set:function(e){if("string"!=typeof e||0===e.length)throw o.illegalArgument("source must be a string of length > 0");this.clear(),this._source=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"group",{get:function(){return this._group},set:function(e){void 0!==e&&null!==e?(this.clear(),
  this._group=e):this._group=void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"presentationOptions",{get:function(){return this._presentationOptions},set:function(e){null===e&&(e=void 0),this.clear(),this._presentationOptions=e},enumerable:!0,configurable:!0}),e}();t.Task=$;!function(e){e[e.SourceControl=1]="SourceControl",e[e.Window=10]="Window",e[e.Notification=15]="Notification"}(t.ProgressLocation||(t.ProgressLocation={}));var q=function(){return function(e,t){void 0===t&&(t=G.None),this.collapsibleState=t,e instanceof i.URI?this.resourceUri=e:this.label=e}}();t.TreeItem=q;var G;!function(e){e[e.None=0]="None",e[e.Collapsed=1]="Collapsed",e[e.Expanded=2]="Expanded"}(G=t.TreeItemCollapsibleState||(t.TreeItemCollapsibleState={}));var J=function(){function e(e){this.id=e}return e.File=new e("file"),e.Folder=new e("folder"),e}();t.ThemeIcon=J;var Q=function(){return function(e){this.id=e}}();t.ThemeColor=Q;!function(e){e[e.Global=1]="Global",e[e.Workspace=2]="Workspace",
  e[e.WorkspaceFolder=3]="WorkspaceFolder"}(t.ConfigurationTarget||(t.ConfigurationTarget={}));var Y=function(){function e(e,t){if(!("string"==typeof e||e&&i.URI.isUri(e.uri)))throw o.illegalArgument("base");if("string"!=typeof t)throw o.illegalArgument("pattern");"string"==typeof e?this.base=e:(this.baseFolder=e.uri,this.base=e.uri.fsPath),this.pattern=t}return e.prototype.pathToRelative=function(e,t){return a.relative(e,t)},e}();t.RelativePattern=Y;var X=function(){return function(e,t,n,r){this.enabled="boolean"!=typeof e||e,"string"==typeof t&&(this.condition=t),"string"==typeof n&&(this.hitCondition=n),"string"==typeof r&&(this.logMessage=r)}}();t.Breakpoint=X;var Z=function(e){function t(t,n,r,i,s){var a=e.call(this,n,r,i,s)||this;if(null===t)throw o.illegalArgument("location");return a.location=t,a}return n(t,e),t}(X);t.SourceBreakpoint=Z;var ee=function(e){function t(t,n,r,i,s){var a=e.call(this,n,r,i,s)||this;if(!t)throw o.illegalArgument("functionName");return a.functionName=t,a}return n(t,e),t}(X)
  ;t.FunctionBreakpoint=ee;var te=function(){return function(e,t,n,r){this.type="executable",this.command=e,this.args=t,this.env=n,this.cwd=r}}();t.DebugAdapterExecutable=te;var ne=function(){return function(e,t){this.type="server",this.port=e,this.host=t}}();t.DebugAdapterServer=ne;var re=function(){return function(e){this.type="implementation",this.implementation=e}}();t.DebugAdapterImplementation=re;!function(e){e[e.Trace=1]="Trace",e[e.Debug=2]="Debug",e[e.Info=3]="Info",e[e.Warning=4]="Warning",e[e.Error=5]="Error",e[e.Critical=6]="Critical",e[e.Off=7]="Off"}(t.LogLevel||(t.LogLevel={}));!function(e){e[e.Changed=1]="Changed",e[e.Created=2]="Created",e[e.Deleted=3]="Deleted"}(t.FileChangeType||(t.FileChangeType={}));var ie=function(e){function t(n,r,o){var s=e.call(this,i.URI.isUri(n)?n.toString(!0):n)||this;return s.name=r?r+" (FileSystemError)":"FileSystemError","function"==typeof Object.setPrototypeOf&&Object.setPrototypeOf(s,t.prototype),
  "function"==typeof Error.captureStackTrace&&"function"==typeof o&&Error.captureStackTrace(s,o),s}return n(t,e),t.FileExists=function(e){return new t(e,"EntryExists",t.FileExists)},t.FileNotFound=function(e){return new t(e,"EntryNotFound",t.FileNotFound)},t.FileNotADirectory=function(e){return new t(e,"EntryNotADirectory",t.FileNotADirectory)},t.FileIsADirectory=function(e){return new t(e,"EntryIsADirectory",t.FileIsADirectory)},t.NoPermissions=function(e){return new t(e,"NoPermissions",t.NoPermissions)},t.Unavailable=function(e){return new t(e,"Unavailable",t.Unavailable)},t}(Error);t.FileSystemError=ie;var oe=function(){return function(e,t,n){this.start=e,this.end=t,this.kind=n}}();t.FoldingRange=oe;!function(e){e[e.Comment=1]="Comment",e[e.Imports=2]="Imports",e[e.Region=3]="Region"}(t.FoldingRangeKind||(t.FoldingRangeKind={}));!function(e){e[e.Collapsed=0]="Collapsed",e[e.Expanded=1]="Expanded"}(t.CommentThreadCollapsibleState||(t.CommentThreadCollapsibleState={}));var se=function(){function e(){}
  return e.Back={iconPath:"back.svg"},e}();t.QuickInputButtons=se}),define(e[57],t([0,1,36,9,63,7,51,3,24]),function(e,t,r,i,o,s,a,u,c){"use strict";function l(e){return f.get(e)}Object.defineProperty(t,"__esModule",{value:!0});var f=new Map;t.setWordDefinitionFor=function(e,t){f.set(e,t)},t.getWordDefinitionFor=l;var d=function(e){function t(t,n,r,i,o,s,a){var u=e.call(this,n,r,i,s)||this;return u._textLines=[],u._isDisposed=!1,u._proxy=t,u._languageId=o,u._isDirty=a,u}return n(t,e),t.prototype.dispose=function(){r.ok(!this._isDisposed),this._isDisposed=!0,this._isDirty=!1},t.prototype.equalLines=function(e){var t=e.length;if(t!==this._lines.length)return!1;for(var n=0;n<t;n++)if(e[n]!==this._lines[n])return!1;return!0},Object.defineProperty(t.prototype,"document",{get:function(){if(!this._document){var e=this;this._document={get uri(){return e._uri},get fileName(){return e._uri.fsPath},get isUntitled(){return e._uri.scheme===c.Schemas.untitled},get languageId(){return e._languageId},get version(){
  return e._versionId},get isClosed(){return e._isDisposed},get isDirty(){return e._isDirty},save:function(){return e._save()},getText:function(t){return t?e._getTextInRange(t):e.getText()},get eol(){return"\n"===e._eol?s.EndOfLine.LF:s.EndOfLine.CRLF},get lineCount(){return e._lines.length},lineAt:function(t){return e._lineAt(t)},offsetAt:function(t){return e._offsetAt(t)},positionAt:function(t){return e._positionAt(t)},validateRange:function(t){return e._validateRange(t)},validatePosition:function(t){return e._validatePosition(t)},getWordRangeAtPosition:function(t,n){return e._getWordRangeAtPosition(t,n)}}}return Object.freeze(this._document)},enumerable:!0,configurable:!0}),t.prototype._acceptLanguageId=function(e){r.ok(!this._isDisposed),this._languageId=e},t.prototype._acceptIsDirty=function(e){r.ok(!this._isDisposed),this._isDirty=e},t.prototype._save=function(){return this._isDisposed?u.TPromise.wrapError(new Error("Document has been closed")):this._proxy.$trySaveDocument(this._uri)},
  t.prototype._getTextInRange=function(e){var t=this._validateRange(e);if(t.isEmpty)return"";if(t.isSingleLine)return this._lines[t.start.line].substring(t.start.character,t.end.character);var n=this._eol,r=t.start.line,i=t.end.line,o=[];o.push(this._lines[r].substring(t.start.character));for(var s=r+1;s<i;s++)o.push(this._lines[s]);return o.push(this._lines[i].substring(0,t.end.character)),o.join(n)},t.prototype._lineAt=function(e){var t;if(e instanceof s.Position?t=e.line:"number"==typeof e&&(t=e),t<0||t>=this._lines.length)throw new Error("Illegal value for `line`");var n=this._textLines[t];if(!n||n.lineNumber!==t||n.text!==this._lines[t]){var r=this._lines[t],i=/^(\s*)/.exec(r)[1].length,o=new s.Range(t,0,t,r.length),a=t<this._lines.length-1?new s.Range(t,0,t+1,0):o;n=Object.freeze({lineNumber:t,range:o,rangeIncludingLineBreak:a,text:r,firstNonWhitespaceCharacterIndex:i,isEmptyOrWhitespace:i===r.length}),this._textLines[t]=n}return n},t.prototype._offsetAt=function(e){return e=this._validatePosition(e),
  this._ensureLineStarts(),this._lineStarts.getAccumulatedValue(e.line-1)+e.character},t.prototype._positionAt=function(e){e=Math.floor(e),e=Math.max(0,e),this._ensureLineStarts();var t=this._lineStarts.getIndexOf(e),n=this._lines[t.index].length;return new s.Position(t.index,Math.min(t.remainder,n))},t.prototype._validateRange=function(e){if(!(e instanceof s.Range))throw new Error("Invalid argument");var t=this._validatePosition(e.start),n=this._validatePosition(e.end);return t===e.start&&n===e.end?e:new s.Range(t.line,t.character,n.line,n.character)},t.prototype._validatePosition=function(e){if(!(e instanceof s.Position))throw new Error("Invalid argument");var t=e.line,n=e.character,r=!1;if(t<0)t=0,n=0,r=!0;else if(t>=this._lines.length)t=this._lines.length-1,n=this._lines[t].length,r=!0;else{var i=this._lines[t].length;n<0?(n=0,r=!0):n>i&&(n=i,r=!0)}return r?new s.Position(t,n):e},t.prototype._getWordRangeAtPosition=function(e,t){var n=this._validatePosition(e)
  ;t?i.regExpLeadsToEndlessLoop(t)&&(console.warn("[getWordRangeAtPosition]: ignoring custom regexp '"+t.source+"' because it matches the empty string."),t=l(this._languageId)):t=l(this._languageId);var r=a.getWordAtText(n.character+1,a.ensureValidWordDefinition(t),this._lines[n.line],0);if(r)return new s.Range(n.line,r.startColumn-1,n.line,r.endColumn-1)},t}(o.MirrorTextModel);t.ExtHostDocumentData=d}),define(e[117],t([0,1,82,19,2,4,3,6,12,7,15,14]),function(e,t,r,i,o,s,a,u,c,l,f,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=function(){function e(e,t,n){var r=this;this._proxy=e,this.commands=t,this.logService=n,this.treeViews=new Map,t.registerArgumentProcessor({processArgument:function(e){return e&&e.$treeViewId&&e.$treeItemHandle?r.convertArgument(e):e}})}return e.prototype.registerTreeDataProvider=function(e,t){var n=this.createTreeView(e,{treeDataProvider:t});return{dispose:function(){return n.dispose()}}},e.prototype.createTreeView=function(e,t){var n=this
  ;if(!t||!t.treeDataProvider)throw new Error("Options with treeDataProvider is mandatory");var r=this.createExtHostTreeViewer(e,t.treeDataProvider);return{get onDidCollapseElement(){return r.onDidCollapseElement},get onDidExpandElement(){return r.onDidExpandElement},get selection(){return r.selectedElements},get onDidChangeSelection(){return r.onDidChangeSelection},get visible(){return r.visible},get onDidChangeVisibility(){return r.onDidChangeVisibility},reveal:function(e,t){return r.reveal(e,t)},dispose:function(){n.treeViews.delete(e),r.dispose()}}},e.prototype.$getChildren=function(e,t){var n=this.treeViews.get(e);return n?n.getChildren(t):a.TPromise.wrapError(new Error(r.localize(0,null,e)))},e.prototype.$setExpanded=function(e,t,n){var i=this.treeViews.get(e);if(!i)throw new Error(r.localize(1,null,e));i.setExpanded(t,n)},e.prototype.$setSelection=function(e,t){var n=this.treeViews.get(e);if(!n)throw new Error(r.localize(2,null,e));n.setSelection(t)},e.prototype.$setVisible=function(e,t){
  var n=this.treeViews.get(e);if(!n)throw new Error(r.localize(3,null,e));n.setVisible(t)},e.prototype.createExtHostTreeViewer=function(e,t){var n=new p(e,t,this._proxy,this.commands.converter,this.logService);return this.treeViews.set(e,n),n},e.prototype.convertArgument=function(e){var t=this.treeViews.get(e.$treeViewId);return t?t.getExtensionElement(e.$treeItemHandle):null},e}();t.ExtHostTreeViews=h;var p=function(e){function t(t,n,r,i,o){var u=e.call(this)||this;if(u.viewId=t,u.dataProvider=n,u.proxy=r,u.commands=i,u.logService=o,u.roots=null,u.elements=new Map,u.nodes=new Map,u._visible=!1,u._selectedHandles=[],u._onDidExpandElement=u._register(new s.Emitter),u.onDidExpandElement=u._onDidExpandElement.event,u._onDidCollapseElement=u._register(new s.Emitter),u.onDidCollapseElement=u._onDidCollapseElement.event,u._onDidChangeSelection=u._register(new s.Emitter),u.onDidChangeSelection=u._onDidChangeSelection.event,u._onDidChangeVisibility=u._register(new s.Emitter),
  u.onDidChangeVisibility=u._onDidChangeVisibility.event,u.refreshPromise=a.TPromise.as(null),u.proxy.$registerTreeViewDataProvider(t),u.dataProvider.onDidChangeTreeData){var c,l;u._register(s.debounceEvent(u.dataProvider.onDidChangeTreeData,function(e,t){return c||(c=new a.TPromise(function(e,t){return l=e}),u.refreshPromise=u.refreshPromise.then(function(){return c})),e?e.concat([t]):[t]},200)(function(e){var t=l;c=null,u.refresh(e).then(function(){return t()})}))}return u}return n(t,e),Object.defineProperty(t.prototype,"visible",{get:function(){return this._visible},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedElements",{get:function(){var e=this;return this._selectedHandles.map(function(t){return e.getExtensionElement(t)}).filter(function(e){return!f.isUndefinedOrNull(e)})},enumerable:!0,configurable:!0}),t.prototype.getChildren=function(e){var t=e?this.getExtensionElement(e):void 0;if(e&&!t)return console.error("No tree item with id '"+e+"' found."),a.TPromise.as([])
  ;var n=this.getChildrenNodes(e);return(n?a.TPromise.as(n):this.fetchChildrenNodes(t)).then(function(e){return e.map(function(e){return e.item})})},t.prototype.getExtensionElement=function(e){return this.elements.get(e)},t.prototype.reveal=function(e,t){var n=this;t=t||{select:!0,focus:!1};var r=!!f.isUndefinedOrNull(t.select)||t.select,i=!f.isUndefinedOrNull(t.focus)&&t.focus;return"function"!=typeof this.dataProvider.getParent?a.TPromise.wrapError(new Error("Required registered TreeDataProvider to implement 'getParent' method to access 'reveal' method")):this.refreshPromise.then(function(){return n.resolveUnknownParentChain(e)}).then(function(t){return n.resolveTreeNode(e,t[t.length-1]).then(function(e){return n.proxy.$reveal(n.viewId,e.item,t.map(function(e){return e.item}),{select:r,focus:i})})},function(e){return n.logService.error(e)})},t.prototype.setExpanded=function(e,t){var n=this.getExtensionElement(e);n&&(t?this._onDidExpandElement.fire(Object.freeze({element:n
  })):this._onDidCollapseElement.fire(Object.freeze({element:n})))},t.prototype.setSelection=function(e){d.equals(this._selectedHandles,e)||(this._selectedHandles=e,this._onDidChangeSelection.fire(Object.freeze({selection:this.selectedElements})))},t.prototype.setVisible=function(e){e!==this._visible&&(this._visible=e,this._onDidChangeVisibility.fire(Object.freeze({visible:this._visible})))},t.prototype.resolveUnknownParentChain=function(e){var t=this;return this.resolveParent(e).then(function(e){return e?t.resolveUnknownParentChain(e).then(function(n){return t.resolveTreeNode(e,n[n.length-1]).then(function(e){return n.push(e),n})}):a.TPromise.as([])})},t.prototype.resolveParent=function(e){var t=this,n=this.nodes.get(e);return n?a.TPromise.as(n.parent?this.elements.get(n.parent.item.handle):null):c.asThenable(function(){return t.dataProvider.getParent(e)})},t.prototype.resolveTreeNode=function(e,t){var n=this;return c.asThenable(function(){return n.dataProvider.getTreeItem(e)}).then(function(r){
  return n.createHandle(e,r,t,!0)}).then(function(e){return n.getChildren(t?t.item.handle:null).then(function(){var t=n.getExtensionElement(e);if(t){var r=n.nodes.get(t);if(r)return a.TPromise.as(r)}throw new Error("Cannot resolve tree item for element "+e)})})},t.prototype.getChildrenNodes=function(e){if(e){var t=void 0;if("string"==typeof e){var n=this.getExtensionElement(e);t=n?this.nodes.get(n):null}else t=e;return t?t.children:null}return this.roots},t.prototype.fetchChildrenNodes=function(e){var t=this;this.clearChildren(e);var n=e?this.nodes.get(e):void 0;return c.asThenable(function(){return t.dataProvider.getChildren(e)}).then(function(e){return a.TPromise.join((e||[]).filter(function(e){return!!e}).map(function(e){return c.asThenable(function(){return t.dataProvider.getTreeItem(e)}).then(function(r){return r?t.createAndRegisterTreeNode(e,r,n):null})}))}).then(function(e){return e.filter(function(e){return!!e})})},t.prototype.refresh=function(e){if(e.some(function(e){return!e}))return this.clearAll(),
  this.proxy.$refresh(this.viewId);var t=this.getHandlesToRefresh(e);return t.length?this.refreshHandles(t):a.TPromise.as(null)},t.prototype.getHandlesToRefresh=function(e){for(var t=this,n=new Set,r=0,i=e;r<i.length;r++){var o=i[r],s=this.nodes.get(o);if(s&&!n.has(s.item.handle)){for(var a=s;a&&a.parent&&!n.has(a.parent.item.handle);){var u=this.elements.get(a.parent.item.handle);a=this.nodes.get(u)}a.parent||n.add(s.item.handle)}}var c=[];return n.forEach(function(e){var r=t.elements.get(e),i=t.nodes.get(r);!i||i.parent&&n.has(i.parent.item.handle)||c.push(e)}),c},t.prototype.refreshHandles=function(e){var t=this,n={};return a.TPromise.join(e.map(function(e){return t.refreshNode(e).then(function(t){t&&(n[e]=t.item)})})).then(function(){return Object.keys(n).length?t.proxy.$refresh(t.viewId,n):null})},t.prototype.refreshNode=function(e){var t=this,n=this.getExtensionElement(e),r=this.nodes.get(n);return this.clearChildren(n),c.asThenable(function(){return t.dataProvider.getTreeItem(n)}).then(function(e){if(e){
  var i=t.createTreeNode(n,e,r.parent);return t.updateNodeCache(n,i,r,r.parent),i}return null})},t.prototype.createAndRegisterTreeNode=function(e,t,n){var i=this.createTreeNode(e,t,n);if(t.id&&this.elements.has(i.item.handle))throw new Error(r.localize(4,null,t.id));return this.addNodeToCache(e,i),this.addNodeToParentCache(i,n),i},t.prototype.createTreeNode=function(e,t,n){return{item:this.createTreeItem(e,t,n),parent:n,children:void 0}},t.prototype.createTreeItem=function(e,t,n){var r=this.createHandle(e,t,n),i=this.getLightIconPath(t);return{handle:r,parentHandle:n?n.item.handle:void 0,label:t.label,resourceUri:t.resourceUri,tooltip:"string"==typeof t.tooltip?t.tooltip:void 0,command:t.command?this.commands.toInternal(t.command):void 0,contextValue:t.contextValue,icon:i,iconDark:this.getDarkIconPath(t)||i,themeIcon:t.iconPath instanceof l.ThemeIcon?{id:t.iconPath.id}:void 0,collapsibleState:f.isUndefinedOrNull(t.collapsibleState)?l.TreeItemCollapsibleState.None:t.collapsibleState}},
  t.prototype.createHandle=function(e,n,r,o){var s=n.id,a=n.label,u=n.resourceUri;if(s)return t.ID_HANDLE_PREFIX+"/"+s;var c=r?r.item.handle:t.LABEL_HANDLE_PREFIX,l=a||(u?i.basename(u.path):"");l=-1!==l.indexOf("/")?l.replace("/","//"):l;var f,d=this.nodes.has(e)?this.nodes.get(e).item.handle:void 0,h=this.getChildrenNodes(r)||[],p=0;do{if(f=c+"/"+p+":"+l,o||!this.elements.has(f)||d===f)break;p++}while(p<=h.length);return f},t.prototype.getLightIconPath=function(e){if(e.iconPath&&!(e.iconPath instanceof l.ThemeIcon))return"string"==typeof e.iconPath||e.iconPath instanceof o.URI?this.getIconPath(e.iconPath):this.getIconPath(e.iconPath.light)},t.prototype.getDarkIconPath=function(e){if(e.iconPath&&!(e.iconPath instanceof l.ThemeIcon)&&e.iconPath.dark)return this.getIconPath(e.iconPath.dark)},t.prototype.getIconPath=function(e){return e instanceof o.URI?e:o.URI.file(e)},t.prototype.addNodeToCache=function(e,t){this.elements.set(t.item.handle,e),this.nodes.set(e,t)},t.prototype.updateNodeCache=function(e,t,n,r){
  this.elements.delete(t.item.handle),this.nodes.delete(e),t.item.handle!==n.item.handle&&this.elements.delete(n.item.handle),this.addNodeToCache(e,t);var i=this.getChildrenNodes(r)||[],o=i.filter(function(e){return e.item.handle===n.item.handle})[0];o&&i.splice(i.indexOf(o),1,t)},t.prototype.addNodeToParentCache=function(e,t){t?(t.children||(t.children=[]),t.children.push(e)):(this.roots||(this.roots=[]),this.roots.push(e))},t.prototype.clearChildren=function(e){if(e){var t=this.nodes.get(e);if(t.children)for(var n=0,r=t.children;n<r.length;n++){var i=r[n],o=this.elements.get(i.item.handle);o&&this.clear(o)}t.children=void 0}else this.clearAll()},t.prototype.clear=function(e){var t=this.nodes.get(e);if(t.children)for(var n=0,r=t.children;n<r.length;n++){var i=r[n],o=this.elements.get(i.item.handle);o&&this.clear(o)}this.nodes.delete(e),this.elements.delete(t.item.handle)},t.prototype.clearAll=function(){this.roots=null,this.elements.clear(),this.nodes.clear()},t.prototype.dispose=function(){this.clearAll()},
  t.LABEL_HANDLE_PREFIX="0",t.ID_HANDLE_PREFIX="1",t}(u.Disposable)}),define(e[118],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Initialized=0]="Initialized",e[e.Ready=1]="Ready",e[e.Terminate=2]="Terminate"}(t.MessageType||(t.MessageType={})),t.createMessageOfType=function(e){var t=Buffer.allocUnsafe(1);switch(e){case 0:t.writeUInt8(1,0);break;case 1:t.writeUInt8(2,0);break;case 2:t.writeUInt8(3,0)}return t},t.isMessageOfType=function(e,t){if(1!==e.length)return!1;switch(e.readUInt8(0)){case 1:return 0===t;case 2:return 1===t;case 3:return 2===t;default:return!1}}}),define(e[119],t([0,1,9]),function(e,t,n){"use strict";function r(e,t){switch(e.type){case"event":var n=e;switch(n.event){case"output":case"loadedSource":t(!1,n.body.source);break;case"breakpoint":t(!1,n.body.breakpoint.source)}break;case"request":var r=e;switch(r.command){case"setBreakpoints":case"source":case"gotoTargets":t(!0,r.arguments.source)}break;case"response":var i=e
  ;switch(i.command){case"stackTrace":i.body.stackFrames.forEach(function(e){return t(!1,e.source)});break;case"loadedSources":i.body.sources.forEach(function(e){return t(!1,e)});break;case"scopes":i.body.scopes.forEach(function(e){return t(!1,e.source)});break;case"setFunctionBreakpoints":i.body.breakpoints.forEach(function(e){return t(!1,e.source)});break;case"setBreakpoints":i.body.breakpoints.forEach(function(e){return t(!1,e.source)})}}}Object.defineProperty(t,"__esModule",{value:!0});var i=/{([^}]+)}/g;t.formatPII=function(e,t,n){return e.replace(i,function(e,r){return t&&r.length>0&&"_"!==r[0]?e:n&&n.hasOwnProperty(r)?n[r]:e})},t.isExtensionHostDebugging=function(e){return e.type&&n.equalsIgnoreCase("vslsShare"===e.type?e.adapterProxy.configuration.type:e.type,"extensionhost")},t.getExactExpressionStartAndEnd=function(e,t,n){for(var r=void 0,i=0,o=/([^()\[\]{}<>\s+\-/%~#^;=|,`!]|\->)+/g,s=void 0;s=o.exec(e);){var a=s.index+1,u=a+s[0].length;if(a<=t&&u>=n){r=s[0],i=a;break}}if(r){
  for(var c=/\w+/g,l=void 0;(l=c.exec(r))&&!(l.index+1+i+l[0].length>=n););l&&(r=r.substring(0,c.lastIndex))}return r?{start:i,end:i+r.length-1}:{start:0,end:0}},t.convertToDAPaths=function(e,t){r(e,function(e,n){e&&n&&t(n)})},t.convertToVSCPaths=function(e,t){r(e,function(e,n){!e&&n&&t(n)})}}),define(e[120],t([0,1,35,39,85,44,19,9,22,8,4,3,94]),function(e,t,r,i,o,s,a,u,c,l,f,d,h){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function e(){this.sequence=1,this.pendingRequests=new Map,this._onError=new f.Emitter,this._onExit=new f.Emitter}return e.prototype.dispose=function(){},Object.defineProperty(e.prototype,"onError",{get:function(){return this._onError.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onExit",{get:function(){return this._onExit.event},enumerable:!0,configurable:!0}),e.prototype.onMessage=function(e){this.eventCallback&&this._onError.fire(new Error("attempt to set more than one 'Message' callback")),this.messageCallback=e},
  e.prototype.onEvent=function(e){this.eventCallback&&this._onError.fire(new Error("attempt to set more than one 'Event' callback")),this.eventCallback=e},e.prototype.onRequest=function(e){this.requestCallback&&this._onError.fire(new Error("attempt to set more than one 'Request' callback")),this.requestCallback=e},e.prototype.sendResponse=function(e){e.seq>0?this._onError.fire(new Error("attempt to send more than one response for command "+e.command)):this.internalSend("response",e)},e.prototype.sendRequest=function(e,t,n,r){var i=this,o={command:e};if(t&&Object.keys(t).length>0&&(o.arguments=t),this.internalSend("request",o),"number"==typeof r)var s=setTimeout(function(){clearTimeout(s);var t=i.pendingRequests.get(o.seq);if(t){i.pendingRequests.delete(o.seq);t({type:"response",seq:0,request_seq:o.seq,success:!1,command:e,message:"timeout after "+r+" ms"})}},r);n&&this.pendingRequests.set(o.seq,n)},e.prototype.acceptMessage=function(e){if(this.messageCallback)this.messageCallback(e);else switch(e.type){
  case"event":this.eventCallback&&this.eventCallback(e);break;case"request":this.requestCallback&&this.requestCallback(e);break;case"response":var t=e,n=this.pendingRequests.get(t.request_seq);n&&(this.pendingRequests.delete(t.request_seq),n(t))}},e.prototype.internalSend=function(e,t){t.type=e,t.seq=this.sequence++,this.sendMessage(t)},e.prototype.cancelPending=function(){var e=this.pendingRequests;this.pendingRequests=new Map,setTimeout(function(t){e.forEach(function(e,t){e({type:"response",seq:0,request_seq:t,success:!1,command:"canceled",message:"canceled"})})},1e3)},e}();t.AbstractDebugAdapter=p;var g=function(e){function t(){return e.call(this)||this}return n(t,e),t.prototype.connect=function(e,t){var n=this;this.outputStream=t,this.rawData=Buffer.allocUnsafe(0),this.contentLength=-1,e.on("data",function(e){return n.handleData(e)})},t.prototype.sendMessage=function(e){if(this.outputStream){var n=JSON.stringify(e);this.outputStream.write("Content-Length: "+Buffer.byteLength(n,"utf8")+t.TWO_CRLF+n,"utf8")}
  },t.prototype.handleData=function(e){for(this.rawData=Buffer.concat([this.rawData,e]);;){if(this.contentLength>=0){if(this.rawData.length>=this.contentLength){var n=this.rawData.toString("utf8",0,this.contentLength);if(this.rawData=this.rawData.slice(this.contentLength),this.contentLength=-1,n.length>0)try{this.acceptMessage(JSON.parse(n))}catch(e){this._onError.fire(new Error((e.message||e)+"\n"+n))}continue}}else{var r=this.rawData.indexOf(t.TWO_CRLF);if(-1!==r){for(var i=0,o=this.rawData.toString("utf8",0,r).split(t.HEADER_LINESEPARATOR);i<o.length;i++){var s=o[i].split(t.HEADER_FIELDSEPARATOR);"Content-Length"===s[0]&&(this.contentLength=Number(s[1]))}this.rawData=this.rawData.slice(r+t.TWO_CRLF.length);continue}}break}},t.TWO_CRLF="\r\n\r\n",t.HEADER_LINESEPARATOR=/\r?\n/,t.HEADER_FIELDSEPARATOR=/: */,t}(p);t.StreamDebugAdapter=g;var m=function(e){function t(t){var n=e.call(this)||this;return n.adapterServer=t,n}return n(t,e),t.prototype.startSession=function(){var e=this
  ;return new d.TPromise(function(t,n){var r=!1;e.socket=s.createConnection(e.adapterServer.port,e.adapterServer.host||"127.0.0.1",function(){e.connect(e.socket,e.socket),t(null),r=!0}),e.socket.on("close",function(){r?e._onError.fire(new Error("connection closed")):n(new Error("connection closed"))}),e.socket.on("error",function(t){r?e._onError.fire(t):n(t)})})},t.prototype.stopSession=function(){return this.cancelPending(),this.socket&&(this.socket.end(),this.socket=void 0),d.TPromise.as(void 0)},t}(g);t.SocketDebugAdapter=m;var v=function(e){function t(t,n,r){var i=e.call(this)||this;return i.adapterExecutable=t,i.debugType=n,i.outputService=r,i}return n(t,e),t.prototype.startSession=function(){var e=this;return new d.TPromise(function(t,n){
  if(e.adapterExecutable.command?a.isAbsolute(e.adapterExecutable.command)?r.existsSync(e.adapterExecutable.command)||n(new Error(o.localize(0,null,e.adapterExecutable.command))):e.adapterExecutable.command.indexOf("/")<0&&e.adapterExecutable.command.indexOf("\\"):n(new Error(o.localize(1,null,e.debugType))),"node"===e.adapterExecutable.command)if(Array.isArray(e.adapterExecutable.args)&&e.adapterExecutable.args.length>0){var s=!!process.env.ELECTRON_RUN_AS_NODE||!!process.versions.electron,u={env:e.adapterExecutable.env?c.mixin(c.mixin({},process.env),e.adapterExecutable.env):process.env,execArgv:s?["-e","delete process.env.ELECTRON_RUN_AS_NODE;require(process.argv[1])"]:[],silent:!0};e.adapterExecutable.cwd&&(u.cwd=e.adapterExecutable.cwd);var l=i.fork(e.adapterExecutable.args[0],e.adapterExecutable.args.slice(1),u);l.pid||n(new Error(o.localize(2,null,e.adapterExecutable.args[0]))),e.serverProcess=l,t(null)}else n(new Error(o.localize(3,null)));else{u={
  env:e.adapterExecutable.env?c.mixin(c.mixin({},process.env),e.adapterExecutable.env):process.env};e.adapterExecutable.cwd&&(u.cwd=e.adapterExecutable.cwd),e.serverProcess=i.spawn(e.adapterExecutable.command,e.adapterExecutable.args,u),t(null)}}).then(function(t){if(e.serverProcess.on("error",function(t){e._onError.fire(t)}),e.serverProcess.on("exit",function(t,n){e._onExit.fire(t)}),e.serverProcess.stdout.on("close",function(){e._onError.fire(new Error("read error"))}),e.serverProcess.stdout.on("error",function(t){e._onError.fire(t)}),e.serverProcess.stdin.on("error",function(t){e._onError.fire(t)}),e.outputService){e.serverProcess.stderr.on("data",function(t){e.outputService.getChannel(h.ExtensionsChannelId).append(function(e){return e.toString().replace(/\r?\n$/gm,"")}(t))})}e.connect(e.serverProcess.stdout,e.serverProcess.stdin)},function(t){e._onError.fire(t)})},t.prototype.stopSession=function(){var e=this;return this.cancelPending(),this.serverProcess?l.isWindows?new d.TPromise(function(t,n){
  var r=i.exec("taskkill /F /T /PID "+e.serverProcess.pid,function(e,t,r){if(e)return n(e)});r.on("exit",t),r.on("error",n)}):(this.serverProcess.kill("SIGTERM"),d.TPromise.as(null)):d.TPromise.as(null)},t.extract=function(e,n){if(e){var r=Object.create(null);return e.runtime&&(0===e.runtime.indexOf("./")?r.runtime=a.join(n,e.runtime):r.runtime=e.runtime),e.runtimeArgs&&(r.runtimeArgs=e.runtimeArgs),e.program&&(a.isAbsolute(e.program)?r.program=e.program:r.program=a.join(n,e.program)),e.args&&(r.args=e.args),e.win&&(r.win=t.extract(e.win,n)),e.winx86&&(r.winx86=t.extract(e.winx86,n)),e.windows&&(r.windows=t.extract(e.windows,n)),e.osx&&(r.osx=t.extract(e.osx,n)),e.linux&&(r.linux=t.extract(e.linux,n)),r}},t.platformAdapterExecutable=function(e,n){var r=Object.create(null);n=n.toLowerCase();for(var i=function(e){if(e.contributes){var i=e.contributes.debuggers;i&&i.length>0&&i.filter(function(e){return u.equalsIgnoreCase(e.type,n)}).forEach(function(n){var i=t.extract(n,e.extensionLocation.fsPath)
  ;c.mixin(r,i,e.isBuiltin)})}},o=0,s=e;o<s.length;o++){i(s[o])}var a;l.isWindows&&!process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432")?a=r.winx86||r.win||r.windows:l.isWindows?a=r.win||r.windows:l.isMacintosh?a=r.osx:l.isLinux&&(a=r.linux);var f=(a=a||r).program||r.program,d=a.args||r.args,h=a.runtime||r.runtime,p=a.runtimeArgs||r.runtimeArgs;return h?{type:"executable",command:h,args:(p||[]).concat([f]).concat(d||[])}:{type:"executable",command:f,args:d||[]}},t}(g);t.ExecutableDebugAdapter=v}),define(e[121],t([0,1,39,86,8,30,22,3,32]),function(e,t,r,i,o,s,a,u,c){"use strict";function l(){return p||(p=new u.TPromise(function(e){o.isLinux?u.TPromise.join([s.exists("/etc/debian_version"),process.lazyEnv]).then(function(t){var n=t[0];e(n?"x-terminal-emulator":"gnome"===process.env.DESKTOP_SESSION||"gnome-classic"===process.env.DESKTOP_SESSION?"gnome-terminal":"kde-plasma"===process.env.DESKTOP_SESSION?"konsole":process.env.COLORTERM?process.env.COLORTERM:process.env.TERM?process.env.TERM:"xterm")}):e("xterm")
  })),p}function f(){if(!g){var e=!!process.env.hasOwnProperty("PROCESSOR_ARCHITEW6432");g=(process.env.windir?process.env.windir:"C:\\Windows")+"\\"+(e?"Sysnative":"System32")+"\\cmd.exe"}return g}Object.defineProperty(t,"__esModule",{value:!0});var d=i.localize(0,null),h=void 0;t.getTerminalLauncher=function(){return h||(o.isWindows?h=new v:o.isMacintosh?h=new y:o.isLinux&&(h=new _)),h};var p=null;t.getDefaultTerminalLinuxReady=l;var g=null;t.getDefaultTerminalWindows=f;var m=function(){function e(){}return e.prototype.runInTerminal=function(e,t){return this.runInTerminal0(e.title,e.cwd,e.args,e.env||{},t)},e.prototype.runInTerminal0=function(e,t,n,r,i){},e}(),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.runInTerminal0=function(e,n,i,o,s){var c=s.external.windowsExec||f();return new u.TPromise(function(e,s){var u='"'+n+" - "+d+'"',l='""'+i.join('" "')+'" & pause"',f=["/c","start",u,"/wait",c,"/c",l],h=a.assign({},process.env,o)
  ;Object.keys(h).filter(function(e){return null===h[e]}).forEach(function(e){return delete h[e]});var p={cwd:n,env:h,windowsVerbatimArguments:!0};r.spawn(t.CMD,f,p).on("error",s),e(null)})},t.CMD="cmd.exe",t}(m),y=function(t){function o(){return null!==t&&t.apply(this,arguments)||this}return n(o,t),o.prototype.runInTerminal0=function(t,n,s,a,l){var f=l.external.osxExec||o.DEFAULT_TERMINAL_OSX;return new u.TPromise(function(u,l){if(f===o.DEFAULT_TERMINAL_OSX||"iTerm.app"===f){for(var h=f===o.DEFAULT_TERMINAL_OSX?"TerminalHelper":"iTermHelper",p=[c.getPathFromAmdModule(e,"vs/workbench/parts/execution/electron-browser/"+h+".scpt"),"-t",t||d,"-w",n],g=0,m=s;g<m.length;g++){var v=m[g];p.push("-a"),p.push(v)}if(a)for(var y in a){var _=a[y];null===_?(p.push("-u"),p.push(y)):(p.push("-e"),p.push(y+"="+_))}var b="",C=r.spawn(o.OSASCRIPT,p);C.on("error",l),C.stderr.on("data",function(e){b+=e.toString()}),C.on("exit",function(e){if(0===e)u(null);else if(b){var t=b.split("\n",1);l(new Error(t[0]))
  }else l(new Error(i.localize(1,null,h,e)))})}else l(new Error(i.localize(2,null,f)))})},o.DEFAULT_TERMINAL_OSX="Terminal.app",o.OSASCRIPT="/usr/bin/osascript",o}(m),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return n(t,e),t.prototype.runInTerminal0=function(e,n,o,s,c){var f=c.external,d=f.linuxExec?u.TPromise.as(f.linuxExec):l();return new u.TPromise(function(e,u){var c=[];d.then(function(l){l.indexOf("gnome-terminal")>=0?c.push("-x"):c.push("-e"),c.push("bash"),c.push("-c");var f=function(e){for(var t="",n=0,r=e;n<r.length;n++){var i=r[n];i.indexOf(" ")>=0?t+='"'+i+'"':t+=i,t+=" "}return t}(o)+'; echo; read -p "'+t.WAIT_MESSAGE+'" -n1;';c.push("''"+f+"''");var d=a.assign({},process.env,s);Object.keys(d).filter(function(e){return null===d[e]}).forEach(function(e){return delete d[e]});var h={cwd:n,env:d},p="",g=r.spawn(l,c,h);g.on("error",u),g.stderr.on("data",function(e){p+=e.toString()}),g.on("exit",function(t){if(0===t)e(null);else if(p){var n=p.split("\n",1)
  ;u(new Error(n[0]))}else u(new Error(i.localize(4,null,l,t)))})})})},t.WAIT_MESSAGE=i.localize(3,null),t}(m);t.hasChildprocesses=function(e){if(e)try{if(o.isWindows){if((t=r.spawnSync("wmic",["process","get","ParentProcessId"])).stdout&&!t.stdout.toString().split("\r\n").some(function(t){return parseInt(t)===e}))return!1}else{var t=r.spawnSync("/usr/bin/pgrep",["-lP",String(e)]);if(t.stdout){var n=t.stdout.toString().trim();if(0===n.length||n.indexOf(" tmux")>=0)return!1}}}catch(e){}return!0};var b;!function(e){e[e.cmd=0]="cmd",e[e.powershell=1]="powershell",e[e.bash=2]="bash"}(b||(b={})),t.prepareCommand=function(e,t){var n,r,i=t.integrated.shell;o.isWindows?(r=i.windows,n=0):o.isLinux?(r=i.linux,n=2):o.isMacintosh&&(r=i.osx,n=2),(r=r.trim().toLowerCase()).indexOf("powershell")>=0||r.indexOf("pwsh")>=0?n=1:r.indexOf("cmd.exe")>=0?n=0:r.indexOf("bash")>=0?n=2:r.indexOf("git\\bin\\bash.exe")>=0&&(n=2);var s,a="";switch(n){case 1:if(s=function(e){return"'"+(e=e.replace(/\'/g,"''"))+"'"},
  e.cwd&&(a+="cd '"+e.cwd+"'; "),e.env)for(var u in e.env)a+=null===(p=e.env[u])?"Remove-Item env:"+u+"; ":"${env:"+u+"}='"+p+"'; ";if(e.args&&e.args.length>0){var c=s(e.args.shift());a+="'"===c[0]?"& "+c+" ":c+" ";for(var l=0,f=e.args;l<f.length;l++)a+=s(v=f[l])+" "}break;case 0:if(s=function(e){return(e=e.replace(/\"/g,'""')).indexOf(" ")>=0||e.indexOf('"')>=0?'"'+e+'"':e},e.cwd&&(a+="cd "+s(e.cwd)+" && "),e.env){a+='cmd /C "';for(var u in e.env)a+=null===(p=e.env[u])?'set "'+u+'=" && ':'set "'+u+"="+(p=p.replace(/[\^\&]/g,function(e){return"^"+e}))+'" && '}for(var d=0,h=e.args;d<h.length;d++)a+=s(v=h[d])+" ";e.env&&(a+='"');break;case 2:if(s=function(e){return(e=e.replace(/\"/g,'\\"')).indexOf(" ")>=0||e.indexOf("\\")>=0?'"'+e+'"':e},e.cwd&&(a+="cd "+s(e.cwd)+" ; "),e.env){a+="env";for(var u in e.env){var p=e.env[u];a+=null===p?' -u "'+u+'"':' "'+u+"="+p+'"'}a+=" "}for(var g=0,m=e.args;g<m.length;g++){var v=m[g];a+=s(v)+" "}}return a}}),define(e[122],t([0,1,15,22,45]),function(e,t,n,r,i){"use strict"
  ;Object.defineProperty(t,"__esModule",{value:!0}),t.TASK_RUNNING_STATE=new i.RawContextKey("taskRunning",!1);!function(e){e[e.Escape=1]="Escape",e[e.Strong=2]="Strong",e[e.Weak=3]="Weak"}(t.ShellQuoting||(t.ShellQuoting={})),function(e){e.from=function(t){if(!t)return e.Strong;switch(t.toLowerCase()){case"escape":return e.Escape;case"strong":return e.Strong;case"weak":return e.Weak;default:return e.Strong}}}(t.ShellQuoting||(t.ShellQuoting={}));!function(e){e[e.Always=1]="Always",e[e.Silent=2]="Silent",e[e.Never=3]="Never"}(t.RevealKind||(t.RevealKind={})),function(e){e.fromString=function(t){switch(t.toLowerCase()){case"always":return e.Always;case"silent":return e.Silent;case"never":return e.Never;default:return e.Always}}}(t.RevealKind||(t.RevealKind={}));!function(e){e[e.Shared=1]="Shared",e[e.Dedicated=2]="Dedicated",e[e.New=3]="New"}(t.PanelKind||(t.PanelKind={})),function(e){e.fromString=function(t){switch(t.toLowerCase()){case"shared":return e.Shared;case"dedicated":return e.Dedicated;case"new":
  return e.New;default:return e.Shared}}}(t.PanelKind||(t.PanelKind={}));var o;!function(e){e[e.Shell=1]="Shell",e[e.Process=2]="Process"}(o=t.RuntimeType||(t.RuntimeType={})),function(e){e.fromString=function(t){switch(t.toLowerCase()){case"shell":return e.Shell;case"process":default:return e.Process}}}(o=t.RuntimeType||(t.RuntimeType={}));!function(e){e.value=function(e){return n.isString(e)?e:e.value}}(t.CommandString||(t.CommandString={}));!function(e){e.Clean="clean",e.Build="build",e.Rebuild="rebuild",e.Test="test",e.is=function(t){return t===e.Clean||t===e.Build||t===e.Rebuild||t===e.Test}}(t.TaskGroup||(t.TaskGroup={}));!function(e){e[e.Global=1]="Global",e[e.Workspace=2]="Workspace",e[e.Folder=3]="Folder"}(t.TaskScope||(t.TaskScope={}));var s;!function(e){e.Workspace="workspace",e.Extension="extension",e.InMemory="inMemory"}(s=t.TaskSourceKind||(t.TaskSourceKind={}));!function(e){e.default="default",e.user="user"}(t.GroupType||(t.GroupType={}));var a;!function(e){e.is=function(e){var t=e
  ;return t&&"custom"===t.type},e.getDefinition=function(e){return{type:void 0!==e.command?e.command.runtime===o.Shell?"shell":"process":"$composite",_key:e._id,id:e._id}},e.customizes=function(e){if(e._source&&e._source.customizes)return e._source.customizes}}(a=t.CustomTask||(t.CustomTask={}));!function(e){e.is=function(e){var t=e;return t&&t.configures&&n.isString(t.configures.type)&&void 0===e.command}}(t.ConfiguringTask||(t.ConfiguringTask={}));var u;!function(e){e.is=function(e){var t=e;return t&&t.defines&&n.isString(t.defines.type)&&void 0!==t.command}}(u=t.ContributedTask||(t.ContributedTask={}));var c;!function(e){e.is=function(e){var t=e;return t&&t._source&&t._source.kind===s.InMemory}}(c=t.InMemoryTask||(t.InMemoryTask={}));var l;!function(e){function t(e){return a.is(e)?e._source.config.workspaceFolder:u.is(e)?e._source.workspaceFolder:void 0}e.getRecentlyUsedKey=function(e){if(!c.is(e)){if(a.is(e)){var t=e._source.config.workspaceFolder;if(!t)return;return n={type:"custom",
  folder:t.uri.toString(),id:e.identifier},JSON.stringify(n)}if(u.is(e)){var n={type:"contributed",scope:e._source.scope,id:e._id};return 3===e._source.scope&&e._source.workspaceFolder&&(n.folder=e._source.workspaceFolder.uri.toString()),JSON.stringify(n)}}},e.getMapKey=function(e){if(a.is(e))return(t=e._source.config.workspaceFolder)?t.uri.toString()+"|"+e._id:e._id;if(u.is(e)){var t=e._source.workspaceFolder;return t?e._source.scope.toString()+"|"+t.uri.toString()+"|"+e._id:e._source.scope.toString()+"|"+e._id}return e._id},e.getWorkspaceFolder=t,e.clone=function(e){return r.assign({},e)},e.getTelemetryKind=function(e){return u.is(e)?"extension":a.is(e)?e._source.customizes?"workspace>extension":"workspace":c.is(e)?"composite":"unknown"},e.matches=function(t,r,i){if(void 0===i&&(i=!1),void 0===r)return!1;if(n.isString(r))return r===t._label||r===t.identifier||i&&r===t._id;var o=e.getTaskDefinition(t,!0);return void 0!==o&&o._key===r._key},e.getQualifiedLabel=function(e){var n=t(e)
  ;return n?e._label+" ("+n.name+")":e._label},e.getTaskDefinition=function(e,t){return void 0===t&&(t=!1),u.is(e)?e.defines:a.is(e)?t&&void 0!==e._source.customizes?e._source.customizes:a.getDefinition(e):void 0},e.getTaskExecution=function(e){return{id:e._id,task:e}}}(l=t.Task||(t.Task={}));!function(e){e[e.Process=1]="Process",e[e.Terminal=2]="Terminal"}(t.ExecutionEngine||(t.ExecutionEngine={})),function(e){e._default=e.Terminal}(t.ExecutionEngine||(t.ExecutionEngine={}));!function(e){e[e.V0_1_0=1]="V0_1_0",e[e.V2_0_0=2]="V2_0_0"}(t.JsonSchemaVersion||(t.JsonSchemaVersion={}));var f=function(){function e(e){this._order=new Map;for(var t=0;t<e.length;t++)this._order.set(e[t].uri.toString(),t)}return e.prototype.compare=function(e,t){var n=l.getWorkspaceFolder(e),r=l.getWorkspaceFolder(t);if(n&&r){var i=this._order.get(n.uri.toString());i=void 0===i?0:i+1;var o=this._order.get(r.uri.toString());return o=void 0===o?0:o+1,i===o?e._label.localeCompare(t._label):i-o}return!n&&r?-1:n&&!r?1:0},e}();t.TaskSorter=f
  ;!function(e){e.Start="start",e.ProcessStarted="processStarted",e.Active="active",e.Inactive="inactive",e.Changed="changed",e.Terminated="terminated",e.ProcessEnded="processEnded",e.End="end"}(t.TaskEventKind||(t.TaskEventKind={}));!function(e){e.SingleRun="singleRun",e.Background="background"}(t.TaskRunType||(t.TaskRunType={}));!function(e){e.create=function(e,t,n){if(t){var r={kind:e,taskId:t._id,taskName:t.name,runType:t.isBackground?"background":"singleRun",group:t.group,processId:void 0,exitCode:void 0,__task:t};return"processStarted"===e?r.processId=n:"processEnded"===e&&(r.exitCode=n),Object.freeze(r)}return Object.freeze({kind:"changed"})}}(t.TaskEvent||(t.TaskEvent={}))}),define(e[123],t([0,1,45,16]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TERMINAL_PANEL_ID="workbench.panel.terminal",t.TERMINAL_SERVICE_ID="terminalService",t.KEYBINDING_CONTEXT_TERMINAL_IS_OPEN=new n.RawContextKey("terminalIsOpen",!1),
  t.KEYBINDING_CONTEXT_TERMINAL_FOCUS=new n.RawContextKey("terminalFocus",void 0),t.KEYBINDING_CONTEXT_TERMINAL_NOT_FOCUSED=t.KEYBINDING_CONTEXT_TERMINAL_FOCUS.toNegated(),t.KEYBINDING_CONTEXT_TERMINAL_TEXT_SELECTED=new n.RawContextKey("terminalTextSelected",void 0),t.KEYBINDING_CONTEXT_TERMINAL_TEXT_NOT_SELECTED=t.KEYBINDING_CONTEXT_TERMINAL_TEXT_SELECTED.toNegated(),t.KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_VISIBLE=new n.RawContextKey("terminalFindWidgetVisible",void 0),t.KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_NOT_VISIBLE=t.KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_VISIBLE.toNegated(),t.KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_INPUT_FOCUSED=new n.RawContextKey("terminalFindWidgetInputFocused",!1),t.KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_FOCUSED=new n.RawContextKey("terminalFindWidgetFocused",!1),t.KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_INPUT_NOT_FOCUSED=t.KEYBINDING_CONTEXT_TERMINAL_FIND_WIDGET_INPUT_FOCUSED.toNegated(),t.IS_WORKSPACE_SHELL_ALLOWED_STORAGE_KEY="terminal.integrated.isWorkspaceShellAllowed",
  t.NEVER_SUGGEST_SELECT_WINDOWS_SHELL_STORAGE_KEY="terminal.integrated.neverSuggestSelectWindowsShell",t.NEVER_MEASURE_RENDER_TIME_STORAGE_KEY="terminal.integrated.neverMeasureRenderTime",t.EXT_HOST_CREATION_DELAY=100,t.ITerminalService=r.createDecorator(t.TERMINAL_SERVICE_ID),t.TerminalCursorStyle={BLOCK:"block",LINE:"line",UNDERLINE:"underline"},t.TERMINAL_CONFIG_SECTION="terminal.integrated",t.DEFAULT_LETTER_SPACING=0,t.MINIMUM_LETTER_SPACING=-5,t.DEFAULT_LINE_HEIGHT=1;!function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.Up=2]="Up",e[e.Down=3]="Down"}(t.Direction||(t.Direction={}));!function(e){e[e.UNINITIALIZED=0]="UNINITIALIZED",e[e.LAUNCHING=1]="LAUNCHING",e[e.RUNNING=2]="RUNNING",e[e.KILLED_DURING_LAUNCH=3]="KILLED_DURING_LAUNCH",e[e.KILLED_BY_USER=4]="KILLED_BY_USER",e[e.KILLED_BY_PROCESS=5]="KILLED_BY_PROCESS"}(t.ProcessState||(t.ProcessState={}))}),define(e[124],t([0,1,29,19,8,49]),function(e,t,n,r,i,o){"use strict";function s(e,t,n){"string"==typeof n?e[t]=n:delete e[t]}function a(e,t,o){
  if(e.cwd)return e.cwd;var s;if(!e.ignoreConfigurationCwd){var a=o.config.cwd;a&&(r.isAbsolute(a)?s=a:t&&(s=r.normalize(r.join(t.fsPath,a))))}return s||(s=t?t.fsPath:n.homedir()),function(e){if(3===i.platform&&e&&":"===e[1])return e[0].toUpperCase()+e.substr(1);return e}(s)}Object.defineProperty(t,"__esModule",{value:!0}),t.mergeEnvironments=function(e,t){if(t)if(i.isWindows)for(var n in t){var r=n;for(var o in e)if(n.toLowerCase()===o.toLowerCase()){r=o;break}var a=t[n];s(e,r,a)}else Object.keys(t).forEach(function(n){var r=t[n];s(e,n,r)})},t.sanitizeEnvironment=function(e){["ELECTRON_ENABLE_STACK_DUMPING","ELECTRON_ENABLE_LOGGING","ELECTRON_NO_ASAR","ELECTRON_NO_ATTACH_CONSOLE","ELECTRON_RUN_AS_NODE","GOOGLE_API_KEY","VSCODE_CLI","VSCODE_DEV","VSCODE_IPC_HOOK","VSCODE_LOGS","VSCODE_NLS_CONFIG","VSCODE_PORTABLE","VSCODE_PID"].forEach(function(t){e[t]&&delete e[t]}),Object.keys(e).forEach(function(t){0===t.search(/^VSCODE_NODE_CACHED_DATA_DIR_\d+$/)&&delete e[t]})},t.addTerminalEnvironmentKeys=function(e,t,n){
  e.TERM_PROGRAM="vscode",e.TERM_PROGRAM_VERSION=o.default.version,t&&!n||(e.LANG=function(e){var t=e?e.split("-"):[],n=t.length;if(0===n)return"en_US.UTF-8";if(1===n){var r={de:"DE",en:"US",es:"ES",fi:"FI",fr:"FR",it:"IT",ja:"JP",ko:"KR",pl:"PL",ru:"RU",zh:"CN"};t[0]in r&&t.push(r[t[0]])}else t[1]=t[1].toUpperCase();return t.join("_")+".UTF-8"}(n))},t.resolveConfigurationVariables=function(e,t,n){return Object.keys(t).forEach(function(r){"string"==typeof t[r]&&(t[r]=e.resolve(n,t[r]))}),t},t.getCwd=a,t.preparePathForTerminal=function(e){if(i.isWindows)return/\s+/.test(e)?'"'+e+'"':e;e=e.replace(/(%5C|\\)/g,"\\\\");for(var t=[" ","'",'"',"?",":",";","!","*","(",")","{","}","[","]"],n=0;n<e.length;n++)t.indexOf(e.charAt(n))>=0&&(e=e.substring(0,n)+"\\"+e.charAt(n)+e.substring(n+1),n++);return e}}),define(e[125],t([0,1,29,20,170,4]),function(e,t,n,r,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t,s,a,u){var c=this;this._currentTitle="",
  this._onProcessData=new o.Emitter,this._onProcessExit=new o.Emitter,this._onProcessIdReady=new o.Emitter,this._onProcessTitleChanged=new o.Emitter;var l,f={name:l="win32"===n.platform()?r.basename(e.executable):"xterm-256color",cwd:t,env:u,cols:s,rows:a};try{this._ptyProcess=i.spawn(e.executable,e.args,f)}catch(e){return this._exitCode=2,void this._queueProcessExit()}this._ptyProcess.on("data",function(e){c._onProcessData.fire(e),c._closeTimeout&&(clearTimeout(c._closeTimeout),c._queueProcessExit())}),this._ptyProcess.on("exit",function(e){c._exitCode=e,c._queueProcessExit()}),setTimeout(function(){c._sendProcessId()},500),this._setupTitlePolling()}return Object.defineProperty(e.prototype,"onProcessData",{get:function(){return this._onProcessData.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onProcessExit",{get:function(){return this._onProcessExit.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onProcessIdReady",{get:function(){
  return this._onProcessIdReady.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onProcessTitleChanged",{get:function(){return this._onProcessTitleChanged.event},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._onProcessData.dispose(),this._onProcessExit.dispose(),this._onProcessIdReady.dispose(),this._onProcessTitleChanged.dispose()},e.prototype._setupTitlePolling=function(){var e=this;setTimeout(function(){e._sendProcessTitle()},0),setInterval(function(){e._currentTitle!==e._ptyProcess.process&&e._sendProcessTitle()},200)},e.prototype._queueProcessExit=function(){var e=this;this._closeTimeout&&clearTimeout(this._closeTimeout),this._closeTimeout=setTimeout(function(){return e._kill()},250)},e.prototype._kill=function(){try{this._ptyProcess.kill()}catch(e){}this._onProcessExit.fire(this._exitCode),this.dispose()},e.prototype._sendProcessId=function(){this._onProcessIdReady.fire(this._ptyProcess.pid)},e.prototype._sendProcessTitle=function(){
  this._currentTitle=this._ptyProcess.process,this._onProcessTitleChanged.fire(this._currentTitle)},e.prototype.shutdown=function(e){e?this._kill():this._queueProcessExit()},e.prototype.input=function(e){this._ptyProcess.write(e)},e.prototype.resize=function(e,t){this._ptyProcess.resize(Math.max(e,1),Math.max(t,1))},e}();t.TerminalProcess=s}),define(e[127],t([0,1,22,53,54,26,28,21]),function(e,t,r,i,o,s,a,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(e){function t(t){var n=e.call(this,t)||this;return n._folders=[],n._settingsModelParser=new f(t,[2,3]),n._launchModel=new o.ConfigurationModel,n}return n(t,e),Object.defineProperty(t.prototype,"folders",{get:function(){return this._folders},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"settingsModel",{get:function(){return this._settingsModelParser.configurationModel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"launchModel",{get:function(){return this._launchModel},enumerable:!0,
  configurable:!0}),t.prototype.reprocessWorkspaceSettings=function(){this._settingsModelParser.reprocess()},t.prototype.parseRaw=function(t){return this._folders=t.folders||[],this._settingsModelParser.parse(t.settings),this._launchModel=this.createConfigurationModelFrom(t,"launch"),e.prototype.parseRaw.call(this,t)},t.prototype.createConfigurationModelFrom=function(e,t){var n=this,r=e[t];if(r){var s=i.toValuesTree(r,function(e){return console.error("Conflict in settings file "+n._name+": "+e)}),a=Object.create(null);a[t]=s;var u=Object.keys(r).map(function(e){return t+"."+e});return new o.ConfigurationModel(a,u,[])}return new o.ConfigurationModel},t}(o.ConfigurationModelParser);t.WorkspaceConfigurationModelParser=c;var l=function(e){function t(t,n){var r=e.call(this,t)||this;return r.scope=n,r}return n(t,e),t.prototype.parseRaw=function(e){var t=this,n=i.toValuesTree(e,function(e){return console.error("Conflict in settings file "+t._name+": "+e)}),r=Object.create(null);r[this.scope]=n;return{contents:r,
  keys:Object.keys(e).map(function(e){return t.scope+"."+e}),overrides:[]}},t}(o.ConfigurationModelParser);t.StandaloneConfigurationModelParser=l;var f=function(e){function t(t,n){var r=e.call(this,t)||this;return r.scopes=n,r}return n(t,e),t.prototype.parse=function(e){this._raw="string"==typeof e?this.parseContent(e):e,this.parseWorkspaceSettings(this._raw)},Object.defineProperty(t.prototype,"configurationModel",{get:function(){return this._settingsModel||new o.ConfigurationModel},enumerable:!0,configurable:!0}),t.prototype.reprocess=function(){this.parse(this._raw)},t.prototype.parseWorkspaceSettings=function(e){var t=s.Registry.as(a.Extensions.Configuration).getConfigurationProperties(),n=this.filterByScope(e,t,!0),r=this.parseRaw(n);this._settingsModel=new o.ConfigurationModel(r.contents,r.keys,r.overrides)},t.prototype.filterByScope=function(e,t,n){var r={};for(var i in e)if(a.OVERRIDE_PROPERTY_PATTERN.test(i)&&n)r[i]=this.filterByScope(e[i],t,!1);else{var o=this.getScope(i,t)
  ;-1!==this.scopes.indexOf(o)&&(r[i]=e[i])}return r},t.prototype.getScope=function(e,t){var n=t[e];return n?n.scope:2},t}(o.ConfigurationModelParser);t.FolderSettingsModelParser=f;var d=function(e){function t(t,n,r,i,o,s,a){var u=e.call(this,t,n,r,i,o,s)||this;return u._workspace=a,u}return n(t,e),t.prototype.getValue=function(t,n){return void 0===n&&(n={}),e.prototype.getValue.call(this,t,n,this._workspace)},t.prototype.inspect=function(t,n){return void 0===n&&(n={}),e.prototype.inspect.call(this,t,n,this._workspace)},t.prototype.keys=function(){return e.prototype.keys.call(this,this._workspace)},t.prototype.compareAndUpdateUserConfiguration=function(t){var n=i.compare(this.user,t),r=n.added,s=n.updated,a=n.removed,u=r.concat(s,a);return u.length&&e.prototype.updateUserConfiguration.call(this,t),(new o.ConfigurationChangeEvent).change(u)},t.prototype.compareAndUpdateWorkspaceConfiguration=function(t){var n=i.compare(this.workspace,t),r=n.added,s=n.updated,a=n.removed,u=r.concat(s,a)
  ;return u.length&&e.prototype.updateWorkspaceConfiguration.call(this,t),(new o.ConfigurationChangeEvent).change(u)},t.prototype.compareAndUpdateFolderConfiguration=function(t,n){var r=this.folders.get(t);if(r){var s=i.compare(r,n),a=s.added,u=s.updated,c=s.removed,l=a.concat(u,c);return l.length&&e.prototype.updateFolderConfiguration.call(this,t,n),(new o.ConfigurationChangeEvent).change(l,t)}return e.prototype.updateFolderConfiguration.call(this,t,n),(new o.ConfigurationChangeEvent).change(n.keys,t)},t.prototype.compareAndDeleteFolderConfiguration=function(t){if(this._workspace&&this._workspace.folders.length>0&&this._workspace.folders[0].uri.toString()===t.toString())return new o.ConfigurationChangeEvent;var n=this.folders.get(t).keys;return e.prototype.deleteFolderConfiguration.call(this,t),(new o.ConfigurationChangeEvent).change(n,t)},t.prototype.compare=function(e){for(var t=this,n=[],i=function(i){(!r.equals(o.getValue(i),e.getValue(i))||o._workspace&&o._workspace.folders.some(function(n){
  return!r.equals(t.getValue(i,{resource:n.uri}),e.getValue(i,{resource:n.uri}))}))&&n.push(i)},o=this,s=0,a=this.allKeys();s<a.length;s++){i(a[s])}return n},t.prototype.allKeys=function(){return e.prototype.allKeys.call(this,this._workspace)},t}(o.Configuration);t.Configuration=d;var h=function(e){function t(t,n,r){var i=e.call(this)||this;return i._configuration=t,i.source=n,i.sourceConfig=r,i._changedConfiguration=null,i}return n(t,e),Object.defineProperty(t.prototype,"changedConfiguration",{get:function(){return this._changedConfiguration||(this._changedConfiguration=new o.ConfigurationModel,this.updateKeys(this._changedConfiguration,this.affectedKeys)),this._changedConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changedConfigurationByResource",{get:function(){return new u.ResourceMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"affectedKeys",{get:function(){return this._configuration.allKeys()},enumerable:!0,configurable:!0}),
  t.prototype.affectsConfiguration=function(e,t){return this.doesConfigurationContains(this.changedConfiguration,e)},t}(o.AbstractConfigurationChangeEvent);t.AllKeysConfigurationChangeEvent=h;var p=function(){function e(e,t){this.configurationChangeEvent=e,this.workspace=t}return Object.defineProperty(e.prototype,"changedConfiguration",{get:function(){return this.configurationChangeEvent.changedConfiguration},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changedConfigurationByResource",{get:function(){return this.configurationChangeEvent.changedConfigurationByResource},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"affectedKeys",{get:function(){return this.configurationChangeEvent.affectedKeys},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"source",{get:function(){return this.configurationChangeEvent.source},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sourceConfig",{get:function(){
  return this.configurationChangeEvent.sourceConfig},enumerable:!0,configurable:!0}),e.prototype.affectsConfiguration=function(e,t){if(this.configurationChangeEvent.affectsConfiguration(e,t))return!0;if(t&&this.workspace){var n=this.workspace.getFolder(t);if(n)return this.configurationChangeEvent.affectsConfiguration(e,n.uri)}return!1},e}();t.WorkspaceConfigurationChangeEvent=p}),define(e[128],t([0,1,22,2,4,7,54,127,21,28,15]),function(e,t,n,r,i,o,s,a,u,c,l){"use strict";function f(e,t){if(t){for(var n=t.split("."),r=e,i=0;r&&i<n.length;i++)r=r[n[i]];return r}}Object.defineProperty(t,"__esModule",{value:!0});var d=function(){function e(t,n,r){this._onDidChangeConfiguration=new i.Emitter,this._proxy=t,this._extHostWorkspace=n,this._configuration=e.parse(r),this._configurationScopes=r.configurationScopes}return Object.defineProperty(e.prototype,"onDidChangeConfiguration",{get:function(){return this._onDidChangeConfiguration&&this._onDidChangeConfiguration.event},enumerable:!0,configurable:!0}),
  e.prototype.$acceptConfigurationChanged=function(t,n){this._configuration=e.parse(t),this._onDidChangeConfiguration.fire(this._toConfigurationChangeEvent(n))},e.prototype.getConfiguration=function(e,t,r){var i=this,s=this._toReadonlyValue(e?f(this._configuration.getValue(null,{resource:t},this._extHostWorkspace.workspace),e):this._configuration.getValue(null,{resource:t},this._extHostWorkspace.workspace));e&&this._validateConfigurationAccess(e,t,r);var a={has:function(e){return void 0!==f(s,e)},get:function(o,a){i._validateConfigurationAccess(e?e+"."+o:o,t,r);var u=f(s,o);if(void 0===u)u=a;else{var c=void 0,d=function(e,t){var r=void 0,i=function(){c=c||n.deepClone(s),r=r||f(c,t)};return l.isObject(e)?new Proxy(e,{get:function(e,n){if("string"==typeof n&&"tojson"===n.toLowerCase())return i(),function(){return r};if(c)return(r=r||f(c,t))[n];var o=e[n];return"string"==typeof n?d(o,t+"."+n):o},set:function(e,t,n){return i(),r[t]=n,!0},deleteProperty:function(e,t){return i(),delete r[t],!0},
  defineProperty:function(e,t,n){return i(),Object.defineProperty(r,t,n),!0}}):e};u=d(u,o)}return u},update:function(n,r,s){n=e?e+"."+n:n;var a=function(e){if(void 0===e||null===e)return null;if("boolean"==typeof e)return e?1:2;switch(e){case o.ConfigurationTarget.Global:return 1;case o.ConfigurationTarget.Workspace:return 2;case o.ConfigurationTarget.WorkspaceFolder:return 3}}(s);return void 0!==r?i._proxy.$updateConfigurationOption(a,n,r,t):i._proxy.$removeConfigurationOption(a,n,t)},inspect:function(r){r=e?e+"."+r:r;var o=n.deepClone(i._configuration.inspect(r,{resource:t},i._extHostWorkspace.workspace));if(o)return{key:r,defaultValue:o.default,globalValue:o.user,workspaceValue:o.workspace,workspaceFolderValue:o.workspaceFolder}}};return"object"==typeof s&&n.mixin(a,s,!1),Object.freeze(a)},e.prototype._toReadonlyValue=function(e){var t=function(e){return l.isObject(e)?new Proxy(e,{get:function(e,n){return t(e[n])},set:function(e,t,n){
  throw new Error("TypeError: Cannot assign to read only property '"+t+"' of object")},deleteProperty:function(e,t){throw new Error("TypeError: Cannot delete read only property '"+t+"' of object")},defineProperty:function(e,t){throw new Error("TypeError: Cannot define property '"+t+"' for a readonly object")},setPrototypeOf:function(e){throw new Error("TypeError: Cannot set prototype for a readonly object")},isExtensible:function(){return!1},preventExtensions:function(){return!0}}):e};return t(e)},e.prototype._validateConfigurationAccess=function(e,t,n){var r=c.OVERRIDE_PROPERTY_PATTERN.test(e)?3:this._configurationScopes[e],i=n?"["+n+"] ":""
  ;3!==r?2!==r||t&&console.warn(i+"Accessing a window scoped configuration for a resource is not expected. To associate '"+e+"' to a resource, define its scope to 'resource' in configuration contributions in 'package.json'."):void 0===t&&console.warn(i+"Accessing a resource scoped configuration without providing a resource is not expected. To get the effective value for '"+e+"', provide the URI of a resource or 'null' for any resource.")},e.prototype._toConfigurationChangeEvent=function(e){for(var t=new s.ConfigurationModel(e.changedConfiguration.contents,e.changedConfiguration.keys,e.changedConfiguration.overrides),n=new u.ResourceMap,i=0,o=Object.keys(e.changedConfigurationByResource);i<o.length;i++){var c=o[i],l=r.URI.parse(c),f=e.changedConfigurationByResource[c];n.set(l,new s.ConfigurationModel(f.contents,f.keys,f.overrides))}var d=new a.WorkspaceConfigurationChangeEvent(new s.ConfigurationChangeEvent(t,n),this._extHostWorkspace.workspace);return Object.freeze({affectsConfiguration:function(e,t){
  return d.affectsConfiguration(e,t)}})},e.parse=function(t){var n=e.parseConfigurationModel(t.defaults),i=e.parseConfigurationModel(t.user),o=e.parseConfigurationModel(t.workspace),a=Object.keys(t.folders).reduce(function(n,i){return n.set(r.URI.parse(i),e.parseConfigurationModel(t.folders[i])),n},new u.ResourceMap);return new s.Configuration(n,i,o,a,new s.ConfigurationModel,new u.ResourceMap,!1)},e.parseConfigurationModel=function(e){return new s.ConfigurationModel(e.contents,e.keys,e.overrides).freeze()},e}();t.ExtHostConfiguration=d}),define(e[129],t([0,1,19,15,22,20,8,108,96]),function(e,t,n,r,i,o,s,a,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){void 0===t&&(t=process.env);var n=this;this._context=e,this._envVariables=t,s.isWindows&&(this._envVariables=Object.create(null),Object.keys(t).forEach(function(e){n._envVariables[e.toLowerCase()]=t[e]}))}return e.prototype.resolve=function(e,t){return this.recursiveResolve(e?e.uri:void 0,t)},
  e.prototype.resolveAny=function(e,t,n){var r=i.deepClone(t);return s.isWindows&&r.windows?Object.keys(r.windows).forEach(function(e){return r[e]=r.windows[e]}):s.isMacintosh&&r.osx?Object.keys(r.osx).forEach(function(e){return r[e]=r.osx[e]}):s.isLinux&&r.linux&&Object.keys(r.linux).forEach(function(e){return r[e]=r.linux[e]}),delete r.windows,delete r.osx,delete r.linux,this.recursiveResolve(e?e.uri:void 0,r,n)},e.prototype.resolveWithCommands=function(e,t){throw new Error("resolveWithCommands not implemented.")},e.prototype.recursiveResolve=function(e,t,n){var i=this;if(r.isString(t))return this.resolveString(e,t,n);if(r.isArray(t))return t.map(function(t){return i.recursiveResolve(e,t,n)});if(r.isObject(t)){var o=Object.create(null);return Object.keys(t).forEach(function(r){var s=i.resolveString(e,r,n);o[s]=i.recursiveResolve(e,t[r],n)}),o}return t},e.prototype.resolveString=function(t,i,c){var l=this,f=this._context.getFilePath();return i.replace(e.VARIABLE_REGEXP,function(e,i){var d,h=i.split(":")
  ;switch(h&&h.length>1&&(i=h[0],d=h[1]),i){case"env":if(d){s.isWindows&&(d=d.toLowerCase());var p=l._envVariables[d];return r.isString(p)?p:""}throw new Error(u.localize(0,null,e));case"config":if(d){var g=l._context.getConfigurationValue(t,d);if(r.isUndefinedOrNull(g))throw new Error(u.localize(1,null,e,d));if(r.isObject(g))throw new Error(u.localize(2,null,e,d));return g}throw new Error(u.localize(3,null,e));case"command":if(d&&c){var m=c[d];if("string"==typeof m)return m;throw new Error(u.localize(4,null,e))}return e;default:switch(i){case"workspaceRoot":case"workspaceFolder":case"workspaceRootFolderName":case"workspaceFolderBasename":case"relativeFile":if(d){var v=l._context.getFolderUri(d);if(!v)throw new Error(u.localize(5,null,e,d));t=v}if(!t){if(l._context.getWorkspaceFolderCount()>1)throw new Error(u.localize(6,null,e));throw new Error(u.localize(7,null,e))}}switch(i){case"file":case"relativeFile":case"fileDirname":case"fileExtname":case"fileBasename":case"fileBasenameNoExtension":
  if(!f)throw new Error(u.localize(8,null,e))}switch(i){case"workspaceRoot":case"workspaceFolder":return a.normalizeDriveLetter(t.fsPath);case"cwd":return t?a.normalizeDriveLetter(t.fsPath):process.cwd();case"workspaceRootFolderName":case"workspaceFolderBasename":return n.basename(t.fsPath);case"lineNumber":var y=l._context.getLineNumber();if(y)return y;throw new Error(u.localize(9,null,e));case"selectedText":var _=l._context.getSelectedText();if(_)return _;throw new Error(u.localize(10,null,e));case"file":return f;case"relativeFile":return t?n.normalize(o.relative(t.fsPath,f)):f;case"fileDirname":return n.dirname(f);case"fileExtname":return n.extname(f);case"fileBasename":return n.basename(f);case"fileBasenameNoExtension":var b=n.basename(f);return b.slice(0,b.length-n.extname(b).length);case"execPath":var C=l._context.getExecPath();return C||e;default:return e}}})},e.VARIABLE_REGEXP=/\$\{(.*?)\}/g,e}();t.AbstractVariableResolverService=c}),define(e[130],t([0,1,16]),function(e,t,n){"use strict"
  ;Object.defineProperty(t,"__esModule",{value:!0}),t.IEditorService=n.createDecorator("editorService"),t.ACTIVE_GROUP=-1,t.SIDE_GROUP=-2}),define(e[18],t([0,1,91,7,42,2,52,48,130,15]),function(e,t,n,r,i,o,a,u,c,l){"use strict";function f(e){return 0===e.length||!!function(e){return void 0!==e.range}(e[0])}Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.to=function(e){var t=e.selectionStartLineNumber,n=e.selectionStartColumn,i=e.positionLineNumber,o=e.positionColumn,s=new r.Position(t-1,n-1),a=new r.Position(i-1,o-1);return new r.Selection(s,a)},e.from=function(e){var t=e.anchor,n=e.active;return{selectionStartLineNumber:t.line+1,selectionStartColumn:t.character+1,positionLineNumber:n.line+1,positionColumn:n.character+1}}}(t.Selection||(t.Selection={}));var d;!function(e){e.from=function(e){if(e){var t=e.start,n=e.end;return{startLineNumber:t.line+1,startColumn:t.character+1,endLineNumber:n.line+1,endColumn:n.character+1}}},e.to=function(e){if(e){
  var t=e.startLineNumber,n=e.startColumn,i=e.endLineNumber,o=e.endColumn;return new r.Range(t-1,n-1,i-1,o-1)}}}(d=t.Range||(t.Range={}));!function(e){e.to=function(e){return new r.Position(e.lineNumber-1,e.column-1)},e.from=function(e){return{lineNumber:e.line+1,column:e.character+1}}}(t.Position||(t.Position={}));var h;!function(e){e.from=function(e){switch(e){case r.DiagnosticTag.Unnecessary:return u.MarkerTag.Unnecessary}}}(h=t.DiagnosticTag||(t.DiagnosticTag={}));!function(e){e.from=function(e){return s({},d.from(e.range),{message:e.message,source:e.source,code:l.isString(e.code)||l.isNumber(e.code)?String(e.code):void 0,severity:g.from(e.severity),relatedInformation:e.relatedInformation&&e.relatedInformation.map(p.from),tags:Array.isArray(e.tags)?e.tags.map(h.from):void 0})}}(t.Diagnostic||(t.Diagnostic={}));var p;!function(e){e.from=function(e){return s({},d.from(e.location.range),{message:e.message,resource:e.location.uri})},e.to=function(e){
  return new r.DiagnosticRelatedInformation(new r.Location(e.resource,d.to(e)),e.message)}}(p=t.DiagnosticRelatedInformation||(t.DiagnosticRelatedInformation={}));var g;!function(e){e.from=function(e){switch(e){case r.DiagnosticSeverity.Error:return u.MarkerSeverity.Error;case r.DiagnosticSeverity.Warning:return u.MarkerSeverity.Warning;case r.DiagnosticSeverity.Information:return u.MarkerSeverity.Info;case r.DiagnosticSeverity.Hint:return u.MarkerSeverity.Hint}return u.MarkerSeverity.Error},e.to=function(e){switch(e){case u.MarkerSeverity.Info:return r.DiagnosticSeverity.Information;case u.MarkerSeverity.Warning:return r.DiagnosticSeverity.Warning;case u.MarkerSeverity.Error:return r.DiagnosticSeverity.Error;case u.MarkerSeverity.Hint:return r.DiagnosticSeverity.Hint}return r.DiagnosticSeverity.Error}}(g=t.DiagnosticSeverity||(t.DiagnosticSeverity={}));!function(e){e.from=function(e){return"number"==typeof e&&e>=r.ViewColumn.One?e-1:e===r.ViewColumn.Beside?c.SIDE_GROUP:c.ACTIVE_GROUP},e.to=function(e){
  if("number"==typeof e&&e>=0)return e+1}}(t.ViewColumn||(t.ViewColumn={})),t.isDecorationOptionsArr=f;var m;!function(e){e.fromMany=function(t){return t.map(e.from)},e.from=function(e){if(function(e){return e&&"object"==typeof e&&"string"==typeof e.language&&"string"==typeof e.value}(e))return{value:"```"+e.language+"\n"+e.value+"\n```\n"};return a.isMarkdownString(e)?e:"string"==typeof e?{value:e}:{value:""}},e.to=function(e){var t=new a.MarkdownString(e.value);return t.isTrusted=e.isTrusted,t},e.fromStrict=function(t){if(t)return"string"==typeof t?t:e.from(t)}}(m=t.MarkdownString||(t.MarkdownString={})),t.fromRangeOrRangeWithMessage=function(e){return f(e)?e.map(function(e){return{range:d.from(e.range),hoverMessage:Array.isArray(e.hoverMessage)?m.fromMany(e.hoverMessage):e.hoverMessage&&m.from(e.hoverMessage),renderOptions:e.renderOptions}}):e.map(function(e){return{range:d.from(e)}})},t.TextEdit={from:function(e){return{text:e.newText,eol:C.from(e.newEol),range:d.from(e.range)}},to:function(e){
  var t=new r.TextEdit(d.to(e.range),e.text);return t.newEol=C.to(e.eol),t}};!function(e){e.from=function(e,n){for(var r={edits:[]},i=0,o=e._allEntries();i<o.length;i++){var s=o[i],a=s[0],u=s[1];if(Array.isArray(u)){var c=n?n.getDocument(a.toString()):void 0;r.edits.push({resource:a,modelVersionId:c&&c.version,edits:u.map(t.TextEdit.from)})}else r.edits.push({oldUri:a,newUri:u,options:s[2]})}return r},e.to=function(e){for(var n=new r.WorkspaceEdit,i=0,s=e.edits;i<s.length;i++){var a=s[i];Array.isArray(a.edits)?n.set(o.URI.revive(a.resource),a.edits.map(t.TextEdit.to)):n.renameFile(o.URI.revive(a.oldUri),o.URI.revive(a.newUri),a.options)}return n}}(t.WorkspaceEdit||(t.WorkspaceEdit={}));var v;!function(e){var t=Object.create(null);t[r.SymbolKind.File]=n.SymbolKind.File,t[r.SymbolKind.Module]=n.SymbolKind.Module,t[r.SymbolKind.Namespace]=n.SymbolKind.Namespace,t[r.SymbolKind.Package]=n.SymbolKind.Package,t[r.SymbolKind.Class]=n.SymbolKind.Class,t[r.SymbolKind.Method]=n.SymbolKind.Method,
  t[r.SymbolKind.Property]=n.SymbolKind.Property,t[r.SymbolKind.Field]=n.SymbolKind.Field,t[r.SymbolKind.Constructor]=n.SymbolKind.Constructor,t[r.SymbolKind.Enum]=n.SymbolKind.Enum,t[r.SymbolKind.Interface]=n.SymbolKind.Interface,t[r.SymbolKind.Function]=n.SymbolKind.Function,t[r.SymbolKind.Variable]=n.SymbolKind.Variable,t[r.SymbolKind.Constant]=n.SymbolKind.Constant,t[r.SymbolKind.String]=n.SymbolKind.String,t[r.SymbolKind.Number]=n.SymbolKind.Number,t[r.SymbolKind.Boolean]=n.SymbolKind.Boolean,t[r.SymbolKind.Array]=n.SymbolKind.Array,t[r.SymbolKind.Object]=n.SymbolKind.Object,t[r.SymbolKind.Key]=n.SymbolKind.Key,t[r.SymbolKind.Null]=n.SymbolKind.Null,t[r.SymbolKind.EnumMember]=n.SymbolKind.EnumMember,t[r.SymbolKind.Struct]=n.SymbolKind.Struct,t[r.SymbolKind.Event]=n.SymbolKind.Event,t[r.SymbolKind.Operator]=n.SymbolKind.Operator,t[r.SymbolKind.TypeParameter]=n.SymbolKind.TypeParameter,e.from=function(e){return t[e]||n.SymbolKind.Property},e.to=function(e){for(var n in t)if(t[n]===e)return Number(n)
  ;return r.SymbolKind.Property}}(v=t.SymbolKind||(t.SymbolKind={}));!function(e){e.from=function(e){return{name:e.name,kind:v.from(e.kind),containerName:e.containerName,location:t.location.from(e.location)}},e.to=function(e){return new r.SymbolInformation(e.name,v.to(e.kind),e.containerName,t.location.to(e.location))}}(t.WorkspaceSymbol||(t.WorkspaceSymbol={}));!function(e){function t(e){var n={name:e.name,detail:e.detail,range:d.from(e.range),selectionRange:d.from(e.selectionRange),kind:v.from(e.kind)};return e.children&&(n.children=e.children.map(t)),n}function n(e){var t=new r.DocumentSymbol(e.name,e.detail,v.to(e.kind),d.to(e.range),d.to(e.selectionRange));return e.children&&(t.children=e.children.map(n)),t}e.from=t,e.to=n}(t.DocumentSymbol||(t.DocumentSymbol={})),t.location={from:function(e){return{range:e.range&&d.from(e.range),uri:e.uri}},to:function(e){return new r.Location(e.uri,d.to(e.range))}};!function(e){e.from=function(e){var t=e,n=e;return{
  origin:t.originSelectionRange?d.from(t.originSelectionRange):void 0,uri:t.targetUri?t.targetUri:n.uri,range:d.from(t.targetRange?t.targetRange:n.range),selectionRange:t.targetSelectionRange?d.from(t.targetSelectionRange):void 0}}}(t.DefinitionLink||(t.DefinitionLink={}));!function(e){e.from=function(e){return{range:d.from(e.range),contents:m.fromMany(e.contents)}},e.to=function(e){return new r.Hover(e.contents.map(m.to),d.to(e.range))}}(t.Hover||(t.Hover={}));!function(e){e.from=function(e){return{range:d.from(e.range),kind:e.kind}},e.to=function(e){return new r.DocumentHighlight(d.to(e.range),e.kind)}}(t.DocumentHighlight||(t.DocumentHighlight={}));var y;!function(e){e.from=function(e){switch(e){case n.SuggestTriggerKind.TriggerCharacter:return r.CompletionTriggerKind.TriggerCharacter;case n.SuggestTriggerKind.TriggerForIncompleteCompletions:return r.CompletionTriggerKind.TriggerForIncompleteCompletions;case n.SuggestTriggerKind.Invoke:default:return r.CompletionTriggerKind.Invoke}}
  }(y=t.CompletionTriggerKind||(t.CompletionTriggerKind={}));!function(e){e.from=function(e){return{triggerKind:y.from(e.triggerKind),triggerCharacter:e.triggerCharacter}}}(t.CompletionContext||(t.CompletionContext={})),t.CompletionItemKind={from:function(e){switch(e){case r.CompletionItemKind.Method:return 0;case r.CompletionItemKind.Function:return 1;case r.CompletionItemKind.Constructor:return 2;case r.CompletionItemKind.Field:return 3;case r.CompletionItemKind.Variable:return 4;case r.CompletionItemKind.Class:return 5;case r.CompletionItemKind.Interface:return 7;case r.CompletionItemKind.Struct:return 6;case r.CompletionItemKind.Module:return 8;case r.CompletionItemKind.Property:return 9;case r.CompletionItemKind.Unit:return 12;case r.CompletionItemKind.Value:return 13;case r.CompletionItemKind.Constant:return 14;case r.CompletionItemKind.Enum:return 15;case r.CompletionItemKind.EnumMember:return 16;case r.CompletionItemKind.Keyword:return 17;case r.CompletionItemKind.Snippet:return 18
  ;case r.CompletionItemKind.Text:return 19;case r.CompletionItemKind.Color:return 20;case r.CompletionItemKind.File:return 21;case r.CompletionItemKind.Reference:return 22;case r.CompletionItemKind.Folder:return 24;case r.CompletionItemKind.Event:return 10;case r.CompletionItemKind.Operator:return 11;case r.CompletionItemKind.TypeParameter:return 25}return 9},to:function(e){switch(e){case 0:return r.CompletionItemKind.Method;case 1:return r.CompletionItemKind.Function;case 2:return r.CompletionItemKind.Constructor;case 3:return r.CompletionItemKind.Field;case 4:return r.CompletionItemKind.Variable;case 5:return r.CompletionItemKind.Class;case 7:return r.CompletionItemKind.Interface;case 6:return r.CompletionItemKind.Struct;case 8:return r.CompletionItemKind.Module;case 9:return r.CompletionItemKind.Property;case 12:return r.CompletionItemKind.Unit;case 13:return r.CompletionItemKind.Value;case 14:return r.CompletionItemKind.Constant;case 15:return r.CompletionItemKind.Enum;case 16:
  return r.CompletionItemKind.EnumMember;case 17:return r.CompletionItemKind.Keyword;case 18:return r.CompletionItemKind.Snippet;case 19:return r.CompletionItemKind.Text;case 20:return r.CompletionItemKind.Color;case 21:return r.CompletionItemKind.File;case 22:return r.CompletionItemKind.Reference;case 24:return r.CompletionItemKind.Folder;case 10:return r.CompletionItemKind.Event;case 11:return r.CompletionItemKind.Operator;case 25:return r.CompletionItemKind.TypeParameter}return r.CompletionItemKind.Property}};!function(e){e.to=function(e,n){var i=new r.CompletionItem(n.label);i.insertText=n.insertText,i.kind=t.CompletionItemKind.to(n.kind),i.detail=n.detail,i.documentation=a.isMarkdownString(n.documentation)?m.to(n.documentation):n.documentation,i.sortText=n.sortText,i.filterText=n.filterText,i.preselect=n.preselect,i.commitCharacters=n.commitCharacters;var o="number"==typeof n.overwriteBefore?n.overwriteBefore:0,s=new r.Position(e.line,Math.max(0,e.character-o)),u=e
  ;return"number"==typeof n.overwriteAfter&&(u=new r.Position(e.line,e.character+n.overwriteAfter)),i.range=new r.Range(s,u),n.insertTextIsSnippet?i.insertText=new r.SnippetString(n.insertText):(i.insertText=n.insertText,i.textEdit=new r.TextEdit(i.range,i.insertText)),i}}(t.Suggest||(t.Suggest={}));var _;!function(e){e.from=function(e){return{label:e.label,documentation:m.fromStrict(e.documentation)}},e.to=function(e){return{label:e.label,documentation:a.isMarkdownString(e.documentation)?m.to(e.documentation):e.documentation}}}(_=t.ParameterInformation||(t.ParameterInformation={}));var b;!function(e){e.from=function(e){return{label:e.label,documentation:m.fromStrict(e.documentation),parameters:e.parameters&&e.parameters.map(_.from)}},e.to=function(e){return{label:e.label,documentation:a.isMarkdownString(e.documentation)?m.to(e.documentation):e.documentation,parameters:e.parameters&&e.parameters.map(_.to)}}}(b=t.SignatureInformation||(t.SignatureInformation={}));!function(e){e.from=function(e){return{
  activeSignature:e.activeSignature,activeParameter:e.activeParameter,signatures:e.signatures&&e.signatures.map(b.from)}},e.to=function(e){return{activeSignature:e.activeSignature,activeParameter:e.activeParameter,signatures:e.signatures&&e.signatures.map(b.to)}}}(t.SignatureHelp||(t.SignatureHelp={}));!function(e){e.from=function(e){return{range:d.from(e.range),url:e.target&&e.target.toString()}},e.to=function(e){return new r.DocumentLink(d.to(e.range),e.url&&o.URI.parse(e.url))}}(t.DocumentLink||(t.DocumentLink={}));!function(e){e.to=function(e){var n=new r.ColorPresentation(e.label);return e.textEdit&&(n.textEdit=t.TextEdit.to(e.textEdit)),e.additionalTextEdits&&(n.additionalTextEdits=e.additionalTextEdits.map(function(e){return t.TextEdit.to(e)})),n},e.from=function(e){return{label:e.label,textEdit:e.textEdit?t.TextEdit.from(e.textEdit):void 0,additionalTextEdits:e.additionalTextEdits?e.additionalTextEdits.map(function(e){return t.TextEdit.from(e)}):void 0}}}(t.ColorPresentation||(t.ColorPresentation={}))
  ;!function(e){e.to=function(e){return new r.Color(e[0],e[1],e[2],e[3])},e.from=function(e){return[e.red,e.green,e.blue,e.alpha]}}(t.Color||(t.Color={}));!function(e){e.to=function(e){switch(e){case 2:return r.TextDocumentSaveReason.AfterDelay;case 1:return r.TextDocumentSaveReason.Manual;case 3:case 4:return r.TextDocumentSaveReason.FocusOut}}}(t.TextDocumentSaveReason||(t.TextDocumentSaveReason={}));var C;!function(e){e.from=function(e){return e===r.EndOfLine.CRLF?i.EndOfLineSequence.CRLF:e===r.EndOfLine.LF?i.EndOfLineSequence.LF:void 0},e.to=function(e){return e===i.EndOfLineSequence.CRLF?r.EndOfLine.CRLF:e===i.EndOfLineSequence.LF?r.EndOfLine.LF:void 0}}(C=t.EndOfLine||(t.EndOfLine={}));!function(e){e.from=function(e){switch(e){case r.ProgressLocation.SourceControl:return 3;case r.ProgressLocation.Window:return 10;case r.ProgressLocation.Notification:return 15}}}(t.ProgressLocation||(t.ProgressLocation={}));!function(e){e.from=function(e){var t={start:e.start+1,end:e.end+1}
  ;return e.kind&&(t.kind=S.from(e.kind)),t}}(t.FoldingRange||(t.FoldingRange={}));var S;!function(e){e.from=function(e){if(e)switch(e){case r.FoldingRangeKind.Comment:return n.FoldingRangeKind.Comment;case r.FoldingRangeKind.Imports:return n.FoldingRangeKind.Imports;case r.FoldingRangeKind.Region:return n.FoldingRangeKind.Region}}}(S=t.FoldingRangeKind||(t.FoldingRangeKind={}));!function(e){e.from=function(e){if(e)return{pinned:"boolean"==typeof e.preview?!e.preview:void 0,preserveFocus:e.preserveFocus,selection:"object"==typeof e.selection?d.from(e.selection):void 0}}}(t.TextEditorOptions||(t.TextEditorOptions={}));var x;!function(e){e.from=function(e){return e instanceof r.RelativePattern?e:"string"==typeof e?e:function(t){var n=e;return n&&"string"==typeof n.base&&"string"==typeof n.pattern}()?new r.RelativePattern(e.base,e.pattern):e}}(x=t.GlobPattern||(t.GlobPattern={}));!function(e){function t(e){return e?Array.isArray(e)?e.map(t):"string"==typeof e?e:{language:e.language,scheme:e.scheme,
  pattern:x.from(e.pattern),exclusive:e.exclusive}:void 0}e.from=t}(t.LanguageSelector||(t.LanguageSelector={}))}),define(e[132],t([0,1,23,18,92]),function(e,t,n,r,i){"use strict";function o(e){return function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return e.apply(void 0,[t.get(i.ICommandService)].concat(n))}}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(){}return e.execute=function(e,t,n,i,o){return e.executeCommand("_workbench.previewHtml",t,"number"==typeof n&&r.ViewColumn.from(n),i,o)},e.ID="vscode.previewHtml",e}();t.PreviewHTMLAPICommand=s,i.CommandsRegistry.registerCommand(s.ID,o(s.execute));var a=function(){function e(){}return e.execute=function(e,t,r){if(!t)return e.executeCommand("_files.pickFolderAndOpen",r);var i=n.isMalformedFileUri(t);return i&&(console.warn("'vscode.openFolder' command invoked with an invalid URI (file:// scheme missing): '"+t+"'. Converted to a 'file://' URI: "+i),t=i),e.executeCommand("_files.windowOpen",[t],r)},
  e.ID="vscode.openFolder",e}();t.OpenFolderAPICommand=a,i.CommandsRegistry.registerCommand(a.ID,o(a.execute));var u=function(){function e(){}return e.execute=function(e,t,n,i,o){return e.executeCommand("_workbench.diff",[t,n,i,void 0,r.TextEditorOptions.from(o),o?r.ViewColumn.from(o.viewColumn):void 0])},e.ID="vscode.diff",e}();t.DiffAPICommand=u,i.CommandsRegistry.registerCommand(u.ID,o(u.execute));var c=function(){function e(){}return e.execute=function(e,t,n,i){var o,s;return n&&("number"==typeof n?s=r.ViewColumn.from(n):(o=r.TextEditorOptions.from(n),s=r.ViewColumn.from(n.viewColumn))),e.executeCommand("_workbench.open",[t,o,s,i])},e.ID="vscode.open",e}();t.OpenAPICommand=c,i.CommandsRegistry.registerCommand(c.ID,o(c.execute));var l=function(){function e(){}return e.execute=function(e,t){return e.executeCommand("_workbench.removeFromRecentlyOpened",t)},e.ID="vscode.removeFromRecentlyOpened",e}();t.RemoveFromRecentlyOpenedAPICommand=l,i.CommandsRegistry.registerCommand(l.ID,o(l.execute));var f=function(){
  function e(){}return e.execute=function(e,t){return e.executeCommand("layoutEditorGroups",t)},e.ID="vscode.setEditorLayout",e}();t.SetEditorLayoutAPICommand=f,i.CommandsRegistry.registerCommand(f.ID,o(f.execute))}),define(e[133],t([0,1,2,3,18,7,132,14]),function(e,t,r,i,o,s,a,u){"use strict";function c(e){return function(t){if(Array.isArray(t))return t.map(e)}}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e){this._disposables=[],this._commands=e}return e.register=function(t){return new e(t).registerCommands()},e.prototype.registerCommands=function(){var e=this;this._register("vscode.executeWorkspaceSymbolProvider",this._executeWorkspaceSymbolProvider,{description:"Execute all workspace symbol provider.",args:[{name:"query",description:"Search string",constraint:String}],returns:"A promise that resolves to an array of SymbolInformation-instances."}),this._register("vscode.executeDefinitionProvider",this._executeDefinitionProvider,{description:"Execute all definition provider.",
  args:[{name:"uri",description:"Uri of a text document",constraint:r.URI},{name:"position",description:"Position of a symbol",constraint:s.Position}],returns:"A promise that resolves to an array of Location-instances."}),this._register("vscode.executeTypeDefinitionProvider",this._executeTypeDefinitionProvider,{description:"Execute all type definition providers.",args:[{name:"uri",description:"Uri of a text document",constraint:r.URI},{name:"position",description:"Position of a symbol",constraint:s.Position}],returns:"A promise that resolves to an array of Location-instances."}),this._register("vscode.executeImplementationProvider",this._executeImplementationProvider,{description:"Execute all implementation providers.",args:[{name:"uri",description:"Uri of a text document",constraint:r.URI},{name:"position",description:"Position of a symbol",constraint:s.Position}],returns:"A promise that resolves to an array of Location-instance."}),this._register("vscode.executeHoverProvider",this._executeHoverProvider,{
  description:"Execute all hover provider.",args:[{name:"uri",description:"Uri of a text document",constraint:r.URI},{name:"position",description:"Position of a symbol",constraint:s.Position}],returns:"A promise that resolves to an array of Hover-instances."}),this._register("vscode.executeDocumentHighlights",this._executeDocumentHighlights,{description:"Execute document highlight provider.",args:[{name:"uri",description:"Uri of a text document",constraint:r.URI},{name:"position",description:"Position in a text document",constraint:s.Position}],returns:"A promise that resolves to an array of DocumentHighlight-instances."}),this._register("vscode.executeReferenceProvider",this._executeReferenceProvider,{description:"Execute reference provider.",args:[{name:"uri",description:"Uri of a text document",constraint:r.URI},{name:"position",description:"Position in a text document",constraint:s.Position}],returns:"A promise that resolves to an array of Location-instances."}),
  this._register("vscode.executeDocumentRenameProvider",this._executeDocumentRenameProvider,{description:"Execute rename provider.",args:[{name:"uri",description:"Uri of a text document",constraint:r.URI},{name:"position",description:"Position in a text document",constraint:s.Position},{name:"newName",description:"The new symbol name",constraint:String}],returns:"A promise that resolves to a WorkspaceEdit."}),this._register("vscode.executeSignatureHelpProvider",this._executeSignatureHelpProvider,{description:"Execute signature help provider.",args:[{name:"uri",description:"Uri of a text document",constraint:r.URI},{name:"position",description:"Position in a text document",constraint:s.Position},{name:"triggerCharacter",description:"(optional) Trigger signature help when the user types the character, like `,` or `(`",constraint:function(e){return void 0===e||"string"==typeof e}}],returns:"A promise that resolves to SignatureHelp."}),
  this._register("vscode.executeDocumentSymbolProvider",this._executeDocumentSymbolProvider,{description:"Execute document symbol provider.",args:[{name:"uri",description:"Uri of a text document",constraint:r.URI}],returns:"A promise that resolves to an array of SymbolInformation and DocumentSymbol instances."}),this._register("vscode.executeCompletionItemProvider",this._executeCompletionItemProvider,{description:"Execute completion item provider.",args:[{name:"uri",description:"Uri of a text document",constraint:r.URI},{name:"position",description:"Position in a text document",constraint:s.Position},{name:"triggerCharacter",description:"(optional) Trigger completion when the user types the character, like `,` or `(`",constraint:function(e){return void 0===e||"string"==typeof e}},{name:"itemResolveCount",description:"(optional) Number of completions to resolve (too large numbers slow down completions)",constraint:function(e){return void 0===e||"number"==typeof e}}],
  returns:"A promise that resolves to a CompletionList-instance."}),this._register("vscode.executeCodeActionProvider",this._executeCodeActionProvider,{description:"Execute code action provider.",args:[{name:"uri",description:"Uri of a text document",constraint:r.URI},{name:"range",description:"Range in a text document",constraint:s.Range}],returns:"A promise that resolves to an array of Command-instances."}),this._register("vscode.executeCodeLensProvider",this._executeCodeLensProvider,{description:"Execute CodeLens provider.",args:[{name:"uri",description:"Uri of a text document",constraint:r.URI},{name:"itemResolveCount",description:"(optional) Number of lenses that should be resolved and returned. Will only retrun resolved lenses, will impact performance)",constraint:function(e){return void 0===e||"number"==typeof e}}],returns:"A promise that resolves to an array of CodeLens-instances."}),this._register("vscode.executeFormatDocumentProvider",this._executeFormatDocumentProvider,{
  description:"Execute document format provider.",args:[{name:"uri",description:"Uri of a text document",constraint:r.URI},{name:"options",description:"Formatting options"}],returns:"A promise that resolves to an array of TextEdits."}),this._register("vscode.executeFormatRangeProvider",this._executeFormatRangeProvider,{description:"Execute range format provider.",args:[{name:"uri",description:"Uri of a text document",constraint:r.URI},{name:"range",description:"Range in a text document",constraint:s.Range},{name:"options",description:"Formatting options"}],returns:"A promise that resolves to an array of TextEdits."}),this._register("vscode.executeFormatOnTypeProvider",this._executeFormatOnTypeProvider,{description:"Execute document format provider.",args:[{name:"uri",description:"Uri of a text document",constraint:r.URI},{name:"position",description:"Position in a text document",constraint:s.Position},{name:"ch",description:"Character that got typed",constraint:String},{name:"options",
  description:"Formatting options"}],returns:"A promise that resolves to an array of TextEdits."}),this._register("vscode.executeLinkProvider",this._executeDocumentLinkProvider,{description:"Execute document link provider.",args:[{name:"uri",description:"Uri of a text document",constraint:r.URI}],returns:"A promise that resolves to an array of DocumentLink-instances."}),this._register("vscode.executeDocumentColorProvider",this._executeDocumentColorProvider,{description:"Execute document color provider.",args:[{name:"uri",description:"Uri of a text document",constraint:r.URI}],returns:"A promise that resolves to an array of ColorInformation objects."}),this._register("vscode.executeColorPresentationProvider",this._executeColorPresentationProvider,{description:"Execute color presentation provider.",args:[{name:"color",description:"The color to show and insert",constraint:s.Color},{name:"context",description:"Context object with uri and range"}],
  returns:"A promise that resolves to an array of ColorPresentation objects."});var t=function(t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return t.apply(void 0,[e._commands].concat(n))}};this._register(a.PreviewHTMLAPICommand.ID,t(a.PreviewHTMLAPICommand.execute),{description:"\n\t\t\t\t\tRender the HTML of the resource in an editor view.\n\n\t\t\t\t\tSee [working with the HTML preview](https://code.visualstudio.com/docs/extensionAPI/vscode-api-commands#working-with-the-html-preview) for more information about the HTML preview's integration with the editor and for best practices for extension authors.\n\t\t\t\t",args:[{name:"uri",description:"Uri of the resource to preview.",constraint:function(e){return e instanceof r.URI||"string"==typeof e}},{name:"column",description:"(optional) Column in which to preview.",constraint:function(e){return void 0===e||"number"==typeof e&&"string"==typeof s.ViewColumn[e]}},{name:"label",
  description:"(optional) An human readable string that is used as title for the preview.",constraint:function(e){return"string"==typeof e||void 0===e}},{name:"options",description:"(optional) Options for controlling webview environment.",constraint:function(e){return"object"==typeof e||void 0===e}}]}),this._register(a.OpenFolderAPICommand.ID,t(a.OpenFolderAPICommand.execute),{description:"Open a folder or workspace in the current window or new window depending on the newWindow argument. Note that opening in the same window will shutdown the current extension host process and start a new one on the given folder/workspace unless the newWindow parameter is set to true.",args:[{name:"uri",description:"(optional) Uri of the folder or workspace file to open. If not provided, a native dialog will ask the user for the folder",constraint:function(e){return void 0===e||e instanceof r.URI}},{name:"newWindow",
  description:"(optional) Whether to open the folder/workspace in a new window or the same. Defaults to opening in the same window.",constraint:function(e){return void 0===e||"boolean"==typeof e}}]}),this._register(a.DiffAPICommand.ID,t(a.DiffAPICommand.execute),{description:"Opens the provided resources in the diff editor to compare their contents.",args:[{name:"left",description:"Left-hand side resource of the diff editor",constraint:r.URI},{name:"right",description:"Right-hand side resource of the diff editor",constraint:r.URI},{name:"title",description:"(optional) Human readable title for the diff editor",constraint:function(e){return void 0===e||"string"==typeof e}},{name:"options",description:"(optional) Editor options, see vscode.TextDocumentShowOptions"}]}),this._register(a.OpenAPICommand.ID,t(a.OpenAPICommand.execute),{
  description:"Opens the provided resource in the editor. Can be a text or binary file, or a http(s) url. If you need more control over the options for opening a text file, use vscode.window.showTextDocument instead.",args:[{name:"resource",description:"Resource to open",constraint:r.URI},{name:"columnOrOptions",description:"(optional) Either the column in which to open or editor options, see vscode.TextDocumentShowOptions",constraint:function(e){return void 0===e||"number"==typeof e||"object"==typeof e}}]}),this._register(a.RemoveFromRecentlyOpenedAPICommand.ID,t(a.RemoveFromRecentlyOpenedAPICommand.execute),{description:"Removes an entry with the given path from the recently opened list.",args:[{name:"path",description:"Path to remove from recently opened.",constraint:function(e){return"string"==typeof e}}]}),this._register(a.SetEditorLayoutAPICommand.ID,t(a.SetEditorLayoutAPICommand.execute),{
  description:"Sets the editor layout. The layout is described as object with an initial (optional) orientation (0 = horizontal, 1 = vertical) and an array of editor groups within. Each editor group can have a size and another array of editor groups that will be laid out orthogonal to the orientation. If editor group sizes are provided, their sum must be 1 to be applied per row or column. Example for a 2x2 grid: `{ orientation: 0, groups: [{ groups: [{}, {}], size: 0.5 }, { groups: [{}, {}], size: 0.5 }] }`",args:[{name:"layout",description:"The editor layout to set.",constraint:function(e){return"object"==typeof e&&Array.isArray(e.groups)}}]})},e.prototype._register=function(e,t,n){var r=this._commands.registerCommand(!1,e,t,this,n);this._disposables.push(r)},e.prototype._executeWorkspaceSymbolProvider=function(e){return this._commands.executeCommand("_executeWorkspaceSymbolProvider",{query:e}).then(function(e){var t=[];if(Array.isArray(e))for(var n=0,r=e;n<r.length;n++){var i=r[n]
  ;t.push.apply(t,i[1].map(o.WorkspaceSymbol.to))}return t})},e.prototype._executeDefinitionProvider=function(e,t){var n={resource:e,position:t&&o.Position.from(t)};return this._commands.executeCommand("_executeDefinitionProvider",n).then(c(o.location.to))},e.prototype._executeTypeDefinitionProvider=function(e,t){var n={resource:e,position:t&&o.Position.from(t)};return this._commands.executeCommand("_executeTypeDefinitionProvider",n).then(c(o.location.to))},e.prototype._executeImplementationProvider=function(e,t){var n={resource:e,position:t&&o.Position.from(t)};return this._commands.executeCommand("_executeImplementationProvider",n).then(c(o.location.to))},e.prototype._executeHoverProvider=function(e,t){var n={resource:e,position:t&&o.Position.from(t)};return this._commands.executeCommand("_executeHoverProvider",n).then(c(o.Hover.to))},e.prototype._executeDocumentHighlights=function(e,t){var n={resource:e,position:t&&o.Position.from(t)}
  ;return this._commands.executeCommand("_executeDocumentHighlights",n).then(c(o.DocumentHighlight.to))},e.prototype._executeReferenceProvider=function(e,t){var n={resource:e,position:t&&o.Position.from(t)};return this._commands.executeCommand("_executeReferenceProvider",n).then(c(o.location.to))},e.prototype._executeDocumentRenameProvider=function(e,t,n){var r={resource:e,position:t&&o.Position.from(t),newName:n};return this._commands.executeCommand("_executeDocumentRenameProvider",r).then(function(e){if(e)return e.rejectReason?i.TPromise.wrapError(new Error(e.rejectReason)):o.WorkspaceEdit.to(e)})},e.prototype._executeSignatureHelpProvider=function(e,t,n){var r={resource:e,position:t&&o.Position.from(t),triggerCharacter:n};return this._commands.executeCommand("_executeSignatureHelpProvider",r).then(function(e){if(e)return o.SignatureHelp.to(e)})},e.prototype._executeCompletionItemProvider=function(e,t,n,r){var i={resource:e,position:t&&o.Position.from(t),triggerCharacter:n,maxItemsToResolve:r}
  ;return this._commands.executeCommand("_executeCompletionItemProvider",i).then(function(e){if(e){var n=e.suggestions.map(function(e){return o.Suggest.to(t,e)});return new s.CompletionList(n,e.incomplete)}})},e.prototype._executeDocumentColorProvider=function(e){var t={resource:e};return this._commands.executeCommand("_executeDocumentColorProvider",t).then(function(e){return e?e.map(function(e){return{range:o.Range.to(e.range),color:o.Color.to(e.color)}}):[]})},e.prototype._executeColorPresentationProvider=function(e,t){var n={resource:t.uri,color:o.Color.from(e),range:o.Range.from(t.range)};return this._commands.executeCommand("_executeColorPresentationProvider",n).then(function(e){return e?e.map(o.ColorPresentation.to):[]})},e.prototype._executeDocumentSymbolProvider=function(e){var t={resource:e};return this._commands.executeCommand("_executeDocumentSymbolProvider",t).then(function(t){if(!u.isFalsyOrEmpty(t)){var r=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return n(r,t),
  r.to=function(t){var n=new r(t.name,o.SymbolKind.to(t.kind),t.containerName,new s.Location(e,o.Range.to(t.range)));return n.detail=t.detail,n.range=n.location.range,n.selectionRange=o.Range.to(t.selectionRange),n.children=t.children&&t.children.map(r.to),n},r}(s.SymbolInformation);return t.map(r.to)}})},e.prototype._executeCodeActionProvider=function(e,t){var n=this,r={resource:e,range:o.Range.from(t)};return this._commands.executeCommand("_executeCodeActionProvider",r).then(c(function(e){if(e._isSynthetic)return n._commands.converter.fromInternal(e.command);var t=new s.CodeAction(e.title,e.kind?new s.CodeActionKind(e.kind):void 0);return e.edit&&(t.edit=o.WorkspaceEdit.to(e.edit)),e.command&&(t.command=n._commands.converter.fromInternal(e.command)),t}))},e.prototype._executeCodeLensProvider=function(e,t){var n=this,r={resource:e,itemResolveCount:t};return this._commands.executeCommand("_executeCodeLensProvider",r).then(c(function(e){
  return new s.CodeLens(o.Range.to(e.range),n._commands.converter.fromInternal(e.command))}))},e.prototype._executeFormatDocumentProvider=function(e,t){var n={resource:e,options:t};return this._commands.executeCommand("_executeFormatDocumentProvider",n).then(c(function(e){return new s.TextEdit(o.Range.to(e.range),e.text)}))},e.prototype._executeFormatRangeProvider=function(e,t,n){var r={resource:e,range:o.Range.from(t),options:n};return this._commands.executeCommand("_executeFormatRangeProvider",r).then(c(function(e){return new s.TextEdit(o.Range.to(e.range),e.text)}))},e.prototype._executeFormatOnTypeProvider=function(e,t,n,r){var i={resource:e,position:o.Position.from(t),ch:n,options:r};return this._commands.executeCommand("_executeFormatOnTypeProvider",i).then(c(function(e){return new s.TextEdit(o.Range.to(e.range),e.text)}))},e.prototype._executeDocumentLinkProvider=function(e){return this._commands.executeCommand("_executeLinkProvider",e).then(c(o.DocumentLink.to))},e}();t.ExtHostApiCommands=l}),
  define(e[134],t([0,1,2,12,13,7,18,33]),function(e,t,n,r,i,o,s,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t,n,r){void 0===r&&(r={timeout:1500,errors:3}),this._logService=e,this._documents=t,this._mainThreadEditors=n,this._thresholds=r,this._callbacks=new a.LinkedList,this._badListeners=new WeakMap}return e.prototype.dispose=function(){this._callbacks.clear()},e.prototype.getOnWillSaveTextDocumentEvent=function(e){var t=this;return function(n,r,i){var o={dispose:t._callbacks.push([n,r,e])};return Array.isArray(i)&&i.push(o),o}},e.prototype.$participateInSave=function(e,t){var i=this,o=n.URI.revive(e),a=this._callbacks.toArray(),u=!1,c=setTimeout(function(){return u=!0},this._thresholds.timeout),l=r.sequence(a.map(function(e){return function(){if(!u){var n=i._documents.getDocumentData(o).document;return i._deliverEventAsyncAndBlameBadListeners(e,{document:n,reason:s.TextDocumentSaveReason.to(t)})}}}));return r.always(l,function(){return clearTimeout(c)})},
  e.prototype._deliverEventAsyncAndBlameBadListeners=function(e,t){var n=this,r=e[0],i=e[1],o=e[2];return this._badListeners.get(r)>this._thresholds.errors?Promise.resolve(!1):this._deliverEventAsync(o,r,i,t).then(function(){return!0},function(e){if(n._logService.error("onWillSaveTextDocument-listener from extension '"+o.id+"' threw ERROR"),n._logService.error(e),!(e instanceof Error)||"concurrent_edits"!==e.message){var t=n._badListeners.get(r);n._badListeners.set(r,t?t+1:1),t>n._thresholds.errors&&n._logService.info("onWillSaveTextDocument-listener from extension '"+o.id+"' will now be IGNORED because of timeouts and/or errors")}return!1})},e.prototype._deliverEventAsync=function(e,t,n,r){var a=this,u=[],c=Date.now(),l=r.document,f=r.reason,d=l.version,h=Object.freeze({document:l,reason:f,waitUntil:function(e){if(Object.isFrozen(u))throw i.illegalState("waitUntil can not be called async");u.push(Promise.resolve(e))}});try{t.apply(n,[h])}catch(e){return Promise.reject(e)}return Object.freeze(u),
  new Promise(function(t,n){var r=setTimeout(function(){return n(new Error("timeout"))},a._thresholds.timeout);return Promise.all(u).then(function(n){a._logService.debug("onWillSaveTextDocument-listener from extension '"+e.id+"' finished after "+(Date.now()-c)+"ms"),clearTimeout(r),t(n)}).catch(function(e){clearTimeout(r),n(e)})}).then(function(e){for(var t={resource:l.uri,edits:[]},n=0,r=e;n<r.length;n++){var i=r[n];if(Array.isArray(i)&&i.every(function(e){return e instanceof o.TextEdit}))for(var u=0,c=i;u<c.length;u++){var f=c[u],h=f.newText,p=f.newEol,g=f.range;t.edits.push({range:g&&s.Range.from(g),text:h,eol:s.EndOfLine.from(p)})}}if(0!==t.edits.length)return d===l.version?a._mainThreadEditors.$tryApplyWorkspaceEdit({edits:[t]}):Promise.reject(new Error("concurrent_edits"))})},e}();t.ExtHostDocumentSaveParticipant=u});var a=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r
  ;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s};define(e[135],t([0,1,18,103,80,17,61]),function(e,t,r,i,o,s,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e){this._handles=0,this._mapHandleToCancellationSource=new Map,this._proxy=e}return e.prototype.withProgress=function(e,t,n){var i=this._handles++,s=t.title,a=t.location,u=t.cancellable,c=o.localize(0,null,e.displayName||e.name);return this._proxy.$startProgress(i,{location:r.ProgressLocation.from(a),title:s,source:c,cancellable:u}),this._withProgress(i,n,u)},e.prototype._withProgress=function(e,t,n){var r,i=this;n&&(r=new s.CancellationTokenSource,this._mapHandleToCancellationSource.set(e,r));var o,a=function(e){i._proxy.$progressEnd(e),i._mapHandleToCancellationSource.delete(e),r&&r.dispose()};try{
  o=t(new l(this._proxy,e),n?r.token:s.CancellationToken.None)}catch(t){throw a(e),t}return o.then(function(t){return a(e)},function(t){return a(e)}),o},e.prototype.$acceptProgressCanceled=function(e){var t=this._mapHandleToCancellationSource.get(e);t&&(t.cancel(),this._mapHandleToCancellationSource.delete(e))},e}();t.ExtHostProgress=c;var l=function(e){function t(t,n){var r=e.call(this,function(e){return r.throttledReport(e)})||this;return r._proxy=t,r._handle=n,r}return n(t,e),t.prototype.throttledReport=function(e){this._proxy.$progressReport(this._handle,e)},a([u.debounce(100,function(e,t){return function(e,t){return e.message=t.message,"number"==typeof t.increment&&("number"==typeof e.increment?e.increment+=t.increment:e.increment=t.increment),e}(e,t)},function(){return Object.create(null)})],t.prototype,"throttledReport",null),t}(i.Progress)}),define(e[59],t([0,1,36,13,107,3,7,18]),function(e,t,n,r,i,o,s,u){"use strict";function c(e,t){
  return void 0===t&&(t="Refer to the documentation for further details."),function(n,r,i){var o=i.value;return i.value=function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return console.warn("[Deprecation Warning] method '"+e+"' is deprecated and should no longer be used. "+t),o.apply(this,n)},i}}function l(e){e.then(null,function(e){console.warn(e)})}Object.defineProperty(t,"__esModule",{value:!0});var f=function(){function e(t,n){this.key=e._Keys.nextId(),this._proxy=t,this._proxy.$registerTextEditorDecorationType(this.key,n)}return e.prototype.dispose=function(){this._proxy.$removeTextEditorDecorationType(this.key)},e._Keys=new i.IdGenerator("TextEditorDecorationType"),e}();t.TextEditorDecorationType=f;var d=function(){function e(e,t){this._document=e,this._documentVersionId=e.version,this._collectedEdits=[],this._setEndOfLine=0,this._undoStopBefore=t.undoStopBefore,this._undoStopAfter=t.undoStopAfter}return e.prototype.finalize=function(){return{documentVersionId:this._documentVersionId,
  edits:this._collectedEdits,setEndOfLine:this._setEndOfLine,undoStopBefore:this._undoStopBefore,undoStopAfter:this._undoStopAfter}},e.prototype.replace=function(e,t){var n=null;if(e instanceof s.Position)n=new s.Range(e,e);else{if(!(e instanceof s.Range))throw new Error("Unrecognized location");n=e}this._pushEdit(n,t,!1)},e.prototype.insert=function(e,t){this._pushEdit(new s.Range(e,e),t,!0)},e.prototype.delete=function(e){var t=null;if(!(e instanceof s.Range))throw new Error("Unrecognized location");t=e,this._pushEdit(t,null,!0)},e.prototype._pushEdit=function(e,t,n){var r=this._document.validateRange(e);this._collectedEdits.push({range:r,text:t,forceMoveMarkers:n})},e.prototype.setEndOfLine=function(e){if(e!==s.EndOfLine.LF&&e!==s.EndOfLine.CRLF)throw r.illegalArgument("endOfLine");this._setEndOfLine=e},e}();t.TextEditorEdit=d;var h=function(){function e(e,t,n){this._proxy=e,this._id=t,this._accept(n)}return e.prototype._accept=function(e){this._tabSize=e.tabSize,this._insertSpaces=e.insertSpaces,
  this._cursorStyle=e.cursorStyle,this._lineNumbers=e.lineNumbers},Object.defineProperty(e.prototype,"tabSize",{get:function(){return this._tabSize},set:function(e){var t=this._validateTabSize(e);if(null!==t){if("number"==typeof t){if(this._tabSize===t)return;this._tabSize=t}l(this._proxy.$trySetOptions(this._id,{tabSize:t}))}},enumerable:!0,configurable:!0}),e.prototype._validateTabSize=function(e){if("auto"===e)return"auto";if("number"==typeof e){return(t=Math.floor(e))>0?t:null}if("string"==typeof e){var t=parseInt(e,10);return isNaN(t)?null:t>0?t:null}return null},Object.defineProperty(e.prototype,"insertSpaces",{get:function(){return this._insertSpaces},set:function(e){var t=this._validateInsertSpaces(e);if("boolean"==typeof t){if(this._insertSpaces===t)return;this._insertSpaces=t}l(this._proxy.$trySetOptions(this._id,{insertSpaces:t}))},enumerable:!0,configurable:!0}),e.prototype._validateInsertSpaces=function(e){return"auto"===e?"auto":"false"!==e&&Boolean(e)},
  Object.defineProperty(e.prototype,"cursorStyle",{get:function(){return this._cursorStyle},set:function(e){this._cursorStyle!==e&&(this._cursorStyle=e,l(this._proxy.$trySetOptions(this._id,{cursorStyle:e})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineNumbers",{get:function(){return this._lineNumbers},set:function(e){this._lineNumbers!==e&&(this._lineNumbers=e,l(this._proxy.$trySetOptions(this._id,{lineNumbers:e})))},enumerable:!0,configurable:!0}),e.prototype.assign=function(e){var t={},n=!1;if(void 0!==e.tabSize){var r=this._validateTabSize(e.tabSize);"auto"===r?(n=!0,t.tabSize=r):"number"==typeof r&&this._tabSize!==r&&(this._tabSize=r,n=!0,t.tabSize=r)}if(void 0!==e.insertSpaces){var i=this._validateInsertSpaces(e.insertSpaces);"auto"===i?(n=!0,t.insertSpaces=i):this._insertSpaces!==i&&(this._insertSpaces=i,n=!0,t.insertSpaces=i)}void 0!==e.cursorStyle&&this._cursorStyle!==e.cursorStyle&&(this._cursorStyle=e.cursorStyle,n=!0,t.cursorStyle=e.cursorStyle),
  void 0!==e.lineNumbers&&this._lineNumbers!==e.lineNumbers&&(this._lineNumbers=e.lineNumbers,n=!0,t.lineNumbers=e.lineNumbers),n&&l(this._proxy.$trySetOptions(this._id,t))},e}();t.ExtHostTextEditorOptions=h;var p=function(){function e(e,t,n,r,i,o,s){this._disposed=!1,this._proxy=e,this._id=t,this._documentData=n,this._selections=r,this._options=new h(this._proxy,this._id,i),this._visibleRanges=o,this._viewColumn=s,this._hasDecorationsForKey=Object.create(null)}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){n.ok(!this._disposed),this._disposed=!0},e.prototype.show=function(e){this._proxy.$tryShowEditor(this._id,u.ViewColumn.from(e))},e.prototype.hide=function(){this._proxy.$tryHideEditor(this._id)},Object.defineProperty(e.prototype,"document",{get:function(){return this._documentData.document},set:function(e){throw r.readonly("document")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{
  get:function(){return this._options},set:function(e){this._disposed||this._options.assign(e)},enumerable:!0,configurable:!0}),e.prototype._acceptOptions=function(e){n.ok(!this._disposed),this._options._accept(e)},Object.defineProperty(e.prototype,"visibleRanges",{get:function(){return this._visibleRanges},set:function(e){throw r.readonly("visibleRanges")},enumerable:!0,configurable:!0}),e.prototype._acceptVisibleRanges=function(e){n.ok(!this._disposed),this._visibleRanges=e},Object.defineProperty(e.prototype,"viewColumn",{get:function(){return this._viewColumn},set:function(e){throw r.readonly("viewColumn")},enumerable:!0,configurable:!0}),e.prototype._acceptViewColumn=function(e){n.ok(!this._disposed),this._viewColumn=e},Object.defineProperty(e.prototype,"selection",{get:function(){return this._selections&&this._selections[0]},set:function(e){if(!(e instanceof s.Selection))throw r.illegalArgument("selection");this._selections=[e],this._trySetSelection()},enumerable:!0,configurable:!0}),
  Object.defineProperty(e.prototype,"selections",{get:function(){return this._selections},set:function(e){if(!Array.isArray(e)||e.some(function(e){return!(e instanceof s.Selection)}))throw r.illegalArgument("selections");this._selections=e,this._trySetSelection()},enumerable:!0,configurable:!0}),e.prototype.setDecorations=function(e,t){var n=this,r=0===t.length;r&&!this._hasDecorationsForKey[e.key]||(r?delete this._hasDecorationsForKey[e.key]:this._hasDecorationsForKey[e.key]=!0,this._runOnProxy(function(){if(u.isDecorationOptionsArr(t))return n._proxy.$trySetDecorations(n._id,e.key,u.fromRangeOrRangeWithMessage(t));for(var r=new Array(4*t.length),i=0,o=t.length;i<o;i++){var s=t[i];r[4*i]=s.start.line+1,r[4*i+1]=s.start.character+1,r[4*i+2]=s.end.line+1,r[4*i+3]=s.end.character+1}return n._proxy.$trySetDecorationsFast(n._id,e.key,r)}))},e.prototype.revealRange=function(e,t){var n=this;this._runOnProxy(function(){return n._proxy.$tryRevealRange(n._id,u.Range.from(e),t||s.TextEditorRevealType.Default)})},
  e.prototype._trySetSelection=function(){var e=this,t=this._selections.map(u.Selection.from);return this._runOnProxy(function(){return e._proxy.$trySetSelections(e._id,t)})},e.prototype._acceptSelections=function(e){n.ok(!this._disposed),this._selections=e},e.prototype.edit=function(e,t){if(void 0===t&&(t={undoStopBefore:!0,undoStopAfter:!0}),this._disposed)return o.TPromise.wrapError(new Error("TextEditor#edit not possible on closed editors"));var n=new d(this._documentData.document,t);return e(n),this._applyEdit(n)},e.prototype._applyEdit=function(e){var t=e.finalize();if(0===t.edits.length&&!t.setEndOfLine)return o.TPromise.wrap(!0);var n=t.edits.map(function(e){return e.range});n.sort(function(e,t){return e.end.line===t.end.line?e.end.character===t.end.character?e.start.line===t.start.line?e.start.character-t.start.character:e.start.line-t.start.line:e.end.character-t.end.character:e.end.line-t.end.line});for(var r=0,i=n.length-1;r<i;r++){var s=n[r].end
  ;if(n[r+1].start.isBefore(s))return o.TPromise.wrapError(new Error("Overlapping ranges are not allowed!"))}var a=t.edits.map(function(e){return{range:u.Range.from(e.range),text:e.text,forceMoveMarkers:e.forceMoveMarkers}});return this._proxy.$tryApplyEdits(this._id,t.documentVersionId,a,{setEndOfLine:t.setEndOfLine,undoStopBefore:t.undoStopBefore,undoStopAfter:t.undoStopAfter})},e.prototype.insertSnippet=function(e,t,n){if(void 0===n&&(n={undoStopBefore:!0,undoStopAfter:!0}),this._disposed)return o.TPromise.wrapError(new Error("TextEditor#insertSnippet not possible on closed editors"));var r;if(!t||Array.isArray(t)&&0===t.length)r=this._selections.map(u.Range.from);else if(t instanceof s.Position){var i=u.Position.from(t);r=[{startLineNumber:d=i.lineNumber,startColumn:h=i.column,endLineNumber:d,endColumn:h}]}else if(t instanceof s.Range)r=[u.Range.from(t)];else{r=[];for(var a=0,c=t;a<c.length;a++){var l=c[a];if(l instanceof s.Range)r.push(u.Range.from(l));else{
  var f=u.Position.from(l),d=f.lineNumber,h=f.column;r.push({startLineNumber:d,startColumn:h,endLineNumber:d,endColumn:h})}}}return this._proxy.$tryInsertSnippet(this._id,e.value,r,n)},e.prototype._runOnProxy=function(e){var t=this;return this._disposed?(console.warn("TextEditor is closed/disposed"),o.TPromise.as(void 0)):e().then(function(){return t},function(e){return e instanceof Error&&"DISPOSED"===e.name||console.warn(e),null})},a([c("TextEditor.show")],e.prototype,"show",null),a([c("TextEditor.hide")],e.prototype,"hide",null),e}();t.ExtHostTextEditor=p}),define(e[137],t([0,1,16]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IExtensionService=n.createDecorator("extensionService");var r=function(){return function(e,t,n,r,i){this.startup=e,this.codeLoadingTime=t,this.activateCallTime=n,this.activateResolvedTime=r,this.activationEvent=i}}();t.ActivationTimes=r;var i=function(){return function(e,t){this.description=e,this.value=t}}();t.ExtensionPointContribution=i,
  t.ExtensionHostLogFileName="exthost"}),define(e[138],t([0,1,19,37,47,137,2]),function(e,t,r,i,o,s,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(e){function t(t,n){var i=e.call(this,o.createSpdLogService(s.ExtensionHostLogFileName,t,n))||this;return i._logsPath=n,i.logFile=a.URI.file(r.join(n,s.ExtensionHostLogFileName+".log")),i}return n(t,e),t.prototype.$setLevel=function(e){this.setLevel(e)},t.prototype.getLogDirectory=function(e){return r.join(this._logsPath,e)},t}(i.DelegatedLogService);t.ExtHostLogService=u}),define(e[139],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.hasOwnProperty,r=function(){function e(e){this._extensionsMap={},this._extensionsArr=[],this._activationMap={};for(var t=0,r=e.length;t<r;t++){var i=e[t];if(n.call(this._extensionsMap,i.id))console.error("Extension `"+i.id+"` is already registered");else if(this._extensionsMap[i.id]=i,this._extensionsArr.push(i),
  Array.isArray(i.activationEvents))for(var o=0,s=i.activationEvents.length;o<s;o++){var a=i.activationEvents[o];"onUri"===a&&(a="onUri:"+i.id),this._activationMap[a]=this._activationMap[a]||[],this._activationMap[a].push(i)}}}return e.prototype.containsActivationEvent=function(e){return n.call(this._activationMap,e)},e.prototype.getExtensionDescriptionsForActivationEvent=function(e){return n.call(this._activationMap,e)?this._activationMap[e].slice(0):[]},e.prototype.getAllExtensionDescriptions=function(){return this._extensionsArr.slice(0)},e.prototype.getExtensionDescription=function(e){return n.call(this._extensionsMap,e)?this._extensionsMap[e]:null},e}();t.ExtensionDescriptionRegistry=r}),define(e[140],t([0,1,3,13]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){this._actual=null,this._actualOk=null,this._actualErr=null,this._hasValue=!1,this._value=null,this._hasErr=!1,this._err=null}return e.prototype._ensureActual=function(){var e=this
  ;return this._actual||(this._actual=new n.TPromise(function(t,n){e._actualOk=t,e._actualErr=n}),this._hasValue&&this._actualOk(this._value),this._hasErr&&this._actualErr(this._err)),this._actual},e.prototype.resolveOk=function(e){this._hasValue||this._hasErr||(this._hasValue=!0,this._value=e,this._actual&&this._actualOk(e))},e.prototype.resolveErr=function(e){this._hasValue||this._hasErr||(this._hasErr=!0,this._err=e,this._actual?this._actualErr(e):r.onUnexpectedError(e))},e.prototype.then=function(e,t){return this._ensureActual().then(e,t)},e}();t.LazyPromise=i}),define(e[60],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(t,n){this.isMain=t,this.sid=n,this.nid=++e.count}return e.count=0,e}();t.ProxyIdentifier=n;var r=[];t.createMainContextProxyIdentifier=function(e){var t=new n(!0,e);return r[t.nid]=t,t},t.createExtHostContextProxyIdentifier=function(e){var t=new n(!1,e);return r[t.nid]=t,t},t.getStringIdentifierForProxy=function(e){
  return r[e].sid}}),define(e[5],t([0,1,2,60]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.Default=0]="Default",e[e.InCenter=1]="InCenter",e[e.InCenterIfOutsideViewport=2]="InCenterIfOutsideViewport",e[e.AtTop=3]="AtTop"}(t.TextEditorRevealType||(t.TextEditorRevealType={}));!function(e){e.name="$ident",e.mixin=function(t,n){return Object.defineProperty(t,e.name,{value:n,enumerable:!0}),t},e.of=function(t){return t[e.name]}}(t.ObjectIdentifier||(t.ObjectIdentifier={}));var i=function(){function e(){}return e.mixin=function(t){return t._id=e._n++,t},e._n=0,e}();t.IdObject=i,t.reviveWorkspaceEditDto=function(e){if(e&&e.edits)for(var t=0,r=e.edits;t<r.length;t++){var i=r[t];"object"==typeof i.resource?i.resource=n.URI.revive(i.resource):(i.newUri=n.URI.revive(i.newUri),i.oldUri=n.URI.revive(i.oldUri))}return e},t.MainContext={MainThreadCommands:r.createMainContextProxyIdentifier("MainThreadCommands"),
  MainThreadComments:r.createMainContextProxyIdentifier("MainThreadComments"),MainThreadConfiguration:r.createMainContextProxyIdentifier("MainThreadConfiguration"),MainThreadDebugService:r.createMainContextProxyIdentifier("MainThreadDebugService"),MainThreadDecorations:r.createMainContextProxyIdentifier("MainThreadDecorations"),MainThreadDiagnostics:r.createMainContextProxyIdentifier("MainThreadDiagnostics"),MainThreadDialogs:r.createMainContextProxyIdentifier("MainThreadDiaglogs"),MainThreadDocuments:r.createMainContextProxyIdentifier("MainThreadDocuments"),MainThreadDocumentContentProviders:r.createMainContextProxyIdentifier("MainThreadDocumentContentProviders"),MainThreadTextEditors:r.createMainContextProxyIdentifier("MainThreadTextEditors"),MainThreadErrors:r.createMainContextProxyIdentifier("MainThreadErrors"),MainThreadTreeViews:r.createMainContextProxyIdentifier("MainThreadTreeViews"),MainThreadLanguageFeatures:r.createMainContextProxyIdentifier("MainThreadLanguageFeatures"),
  MainThreadLanguages:r.createMainContextProxyIdentifier("MainThreadLanguages"),MainThreadMessageService:r.createMainContextProxyIdentifier("MainThreadMessageService"),MainThreadOutputService:r.createMainContextProxyIdentifier("MainThreadOutputService"),MainThreadProgress:r.createMainContextProxyIdentifier("MainThreadProgress"),MainThreadQuickOpen:r.createMainContextProxyIdentifier("MainThreadQuickOpen"),MainThreadStatusBar:r.createMainContextProxyIdentifier("MainThreadStatusBar"),MainThreadStorage:r.createMainContextProxyIdentifier("MainThreadStorage"),MainThreadTelemetry:r.createMainContextProxyIdentifier("MainThreadTelemetry"),MainThreadTerminalService:r.createMainContextProxyIdentifier("MainThreadTerminalService"),MainThreadWebviews:r.createMainContextProxyIdentifier("MainThreadWebviews"),MainThreadUrls:r.createMainContextProxyIdentifier("MainThreadUrls"),MainThreadWorkspace:r.createMainContextProxyIdentifier("MainThreadWorkspace"),
  MainThreadFileSystem:r.createMainContextProxyIdentifier("MainThreadFileSystem"),MainThreadExtensionService:r.createMainContextProxyIdentifier("MainThreadExtensionService"),MainThreadSCM:r.createMainContextProxyIdentifier("MainThreadSCM"),MainThreadSearch:r.createMainContextProxyIdentifier("MainThreadSearch"),MainThreadTask:r.createMainContextProxyIdentifier("MainThreadTask"),MainThreadWindow:r.createMainContextProxyIdentifier("MainThreadWindow")},t.ExtHostContext={ExtHostCommands:r.createExtHostContextProxyIdentifier("ExtHostCommands"),ExtHostConfiguration:r.createExtHostContextProxyIdentifier("ExtHostConfiguration"),ExtHostDiagnostics:r.createExtHostContextProxyIdentifier("ExtHostDiagnostics"),ExtHostDebugService:r.createExtHostContextProxyIdentifier("ExtHostDebugService"),ExtHostDecorations:r.createExtHostContextProxyIdentifier("ExtHostDecorations"),ExtHostDocumentsAndEditors:r.createExtHostContextProxyIdentifier("ExtHostDocumentsAndEditors"),
  ExtHostDocuments:r.createExtHostContextProxyIdentifier("ExtHostDocuments"),ExtHostDocumentContentProviders:r.createExtHostContextProxyIdentifier("ExtHostDocumentContentProviders"),ExtHostDocumentSaveParticipant:r.createExtHostContextProxyIdentifier("ExtHostDocumentSaveParticipant"),ExtHostEditors:r.createExtHostContextProxyIdentifier("ExtHostEditors"),ExtHostTreeViews:r.createExtHostContextProxyIdentifier("ExtHostTreeViews"),ExtHostFileSystem:r.createExtHostContextProxyIdentifier("ExtHostFileSystem"),ExtHostFileSystemEventService:r.createExtHostContextProxyIdentifier("ExtHostFileSystemEventService"),ExtHostHeapService:r.createExtHostContextProxyIdentifier("ExtHostHeapMonitor"),ExtHostLanguageFeatures:r.createExtHostContextProxyIdentifier("ExtHostLanguageFeatures"),ExtHostQuickOpen:r.createExtHostContextProxyIdentifier("ExtHostQuickOpen"),ExtHostExtensionService:r.createExtHostContextProxyIdentifier("ExtHostExtensionService"),ExtHostLogService:r.createExtHostContextProxyIdentifier("ExtHostLogService"),
  ExtHostTerminalService:r.createExtHostContextProxyIdentifier("ExtHostTerminalService"),ExtHostSCM:r.createExtHostContextProxyIdentifier("ExtHostSCM"),ExtHostSearch:r.createExtHostContextProxyIdentifier("ExtHostSearch"),ExtHostTask:r.createExtHostContextProxyIdentifier("ExtHostTask"),ExtHostWorkspace:r.createExtHostContextProxyIdentifier("ExtHostWorkspace"),ExtHostWindow:r.createExtHostContextProxyIdentifier("ExtHostWindow"),ExtHostWebviews:r.createExtHostContextProxyIdentifier("ExtHostWebviews"),ExtHostProgress:r.createMainContextProxyIdentifier("ExtHostProgress"),ExtHostComments:r.createMainContextProxyIdentifier("ExtHostComments"),ExtHostUrls:r.createExtHostContextProxyIdentifier("ExtHostUrls"),ExtHostOutputService:r.createMainContextProxyIdentifier("ExtHostOutputService")}}),define(e[143],t([0,1,15,7,18,22,5,14,98]),function(e,t,n,r,i,o,s,a,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t,n){this._commands=new Map,
  this._proxy=e.getProxy(s.MainContext.MainThreadCommands),this._logService=n,this._converter=new l(this,t),this._argumentProcessors=[{processArgument:function(e){return u.revive(e,0)}}]}return Object.defineProperty(e.prototype,"converter",{get:function(){return this._converter},enumerable:!0,configurable:!0}),e.prototype.registerArgumentProcessor=function(e){this._argumentProcessors.push(e)},e.prototype.registerCommand=function(e,t,n,i,o){var s=this;if(this._logService.trace("ExtHostCommands#registerCommand",t),!t.trim().length)throw new Error("invalid id");if(this._commands.has(t))throw new Error("command '"+t+"' already exists");return this._commands.set(t,{callback:n,thisArg:i,description:o}),e&&this._proxy.$registerCommand(t),new r.Disposable(function(){s._commands.delete(t)&&e&&s._proxy.$unregisterCommand(t)})},e.prototype.executeCommand=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this._logService.trace("ExtHostCommands#executeCommand",e),
  this._commands.has(e)?this._executeContributedCommand(e,t):(t=o.cloneAndChange(t,function(e){return e instanceof r.Position?i.Position.from(e):e instanceof r.Range?i.Range.from(e):e instanceof r.Location?i.location.from(e):Array.isArray(e)?void 0:e}),this._proxy.$executeCommand(e,t).then(function(e){return u.revive(e,0)}))},e.prototype._executeContributedCommand=function(e,t){var r=this._commands.get(e),i=r.callback,o=r.thisArg,s=r.description;if(s)for(var a=0;a<s.args.length;a++)try{n.validateConstraint(t[a],s.args[a].constraint)}catch(t){return Promise.reject(new Error("Running the contributed command:'"+e+"' failed. Illegal argument '"+s.args[a].name+"' - "+s.args[a].description))}try{var u=i.apply(o,t);return Promise.resolve(u)}catch(t){return this._logService.error(t,e),Promise.reject(new Error("Running the contributed command:'"+e+"' failed."))}},e.prototype.$executeContributedCommand=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r]
  ;return this._logService.trace("ExtHostCommands#$executeContributedCommand",e),this._commands.has(e)?(n=n.map(function(e){return t._argumentProcessors.reduce(function(e,t){return t.processArgument(e)},e)}),this._executeContributedCommand(e,n)):Promise.reject(new Error("Contributed command '"+e+"' does not exist."))},e.prototype.getCommands=function(e){return void 0===e&&(e=!1),this._logService.trace("ExtHostCommands#getCommands",e),this._proxy.$getCommands().then(function(t){return e&&(t=t.filter(function(e){return"_"!==e[0]})),t})},e.prototype.$getContributedCommandHandlerDescriptions=function(){var e=Object.create(null);return this._commands.forEach(function(t,n){var r=t.description;r&&(e[n]=r)}),Promise.resolve(e)},e}();t.ExtHostCommands=c;var l=function(){function e(e,t){this._delegatingCommandId="_internal_command_delegation_"+Date.now(),this._commands=e,this._heap=t,this._commands.registerCommand(!0,this._delegatingCommandId,this._executeConvertedCommand,this)}return e.prototype.toInternal=function(e){
  if(e){var t={id:e.command,title:e.title};if(e.command&&!a.isFalsyOrEmpty(e.arguments)){var n=this._heap.keep(e);s.ObjectIdentifier.mixin(t,n),t.id=this._delegatingCommandId,t.arguments=[n]}return e.tooltip&&(t.tooltip=e.tooltip),t}},e.prototype.fromInternal=function(e){if(e){var t=s.ObjectIdentifier.of(e);return"number"==typeof t?this._heap.get(t):{command:e.id,title:e.title,arguments:e.arguments}}},e.prototype._executeConvertedCommand=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,r=this._heap.get(e[0]);return(n=this._commands).executeCommand.apply(n,[r.command].concat(r.arguments))},e}();t.CommandsConverter=l}),define(e[144],t([0,1,12,2,3,18,5,17]),function(e,t,n,r,i,o,s,a){"use strict";function u(e,t,n){return{threadId:t.threadId,resource:t.resource.toString(),range:o.Range.from(t.range),comments:t.comments.map(function(t){return function(e,t,n){var r=!!e.editComment&&t.canEdit,i=!!e.deleteComment&&t.canDelete,s=t.userIconPath?t.userIconPath.toString():t.gravatar;return{
  commentId:t.commentId,body:o.MarkdownString.from(t.body),userName:t.userName,userIconPath:s,canEdit:r,canDelete:i,command:t.command?n.toInternal(t.command):null}}(e,t,n)}),collapsibleState:t.collapsibleState}}function c(e){var t;if(e.userIconPath)try{t=r.URI.parse(e.userIconPath)}catch(e){}return{commentId:e.commentId,body:o.MarkdownString.to(e.body),userName:e.userName,userIconPath:t,canEdit:e.canEdit,canDelete:e.canDelete}}Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e,t,n){this._commandsConverter=t,this._documents=n,this._documentProviders=new Map,this._workspaceProviders=new Map,this._proxy=e.getProxy(s.MainContext.MainThreadComments)}return e.prototype.registerWorkspaceCommentProvider=function(t){var n=this,r=e.handlePool++;return this._workspaceProviders.set(r,t),this._proxy.$registerWorkspaceCommentProvider(r),this.registerListeners(r,t),{dispose:function(){n._proxy.$unregisterWorkspaceCommentProvider(r),n._workspaceProviders.delete(r)}}},
  e.prototype.registerDocumentCommentProvider=function(t){var n=this,r=e.handlePool++;return this._documentProviders.set(r,t),this._proxy.$registerDocumentCommentProvider(r),this.registerListeners(r,t),{dispose:function(){n._proxy.$unregisterDocumentCommentProvider(r),n._documentProviders.delete(r)}}},e.prototype.$createNewCommentThread=function(e,t,s,c){var l=this,f=this._documents.getDocumentData(r.URI.revive(t)),d=o.Range.to(s);if(!f||!f.document)return i.TPromise.as(null);var h=this._documentProviders.get(e);return n.asThenable(function(){return h.createNewCommentThread(f.document,d,c,a.CancellationToken.None)}).then(function(e){return e?u(h,e,l._commandsConverter):null})},e.prototype.$replyToCommentThread=function(e,t,s,l,f){var d=this,h=this._documents.getDocumentData(r.URI.revive(t)),p=o.Range.to(s);if(!h||!h.document)return i.TPromise.as(null);var g=this._documentProviders.get(e);return n.asThenable(function(){return g.replyToCommentThread(h.document,p,function(e){return{threadId:e.threadId,
  resource:r.URI.parse(e.resource),range:o.Range.to(e.range),comments:e.comments.map(c),collapsibleState:e.collapsibleState}}(l),f,a.CancellationToken.None)}).then(function(e){return e?u(g,e,d._commandsConverter):null})},e.prototype.$editComment=function(e,t,i,o){var s=this._documents.getDocumentData(r.URI.revive(t));if(!s||!s.document)throw new Error("Unable to retrieve document from URI");var u=this._documentProviders.get(e);return n.asThenable(function(){return u.editComment(s.document,c(i),o,a.CancellationToken.None)})},e.prototype.$deleteComment=function(e,t,i){var o=this._documents.getDocumentData(r.URI.revive(t));if(!o||!o.document)throw new Error("Unable to retrieve document from URI");var s=this._documentProviders.get(e);return n.asThenable(function(){return s.deleteComment(o.document,c(i),a.CancellationToken.None)})},e.prototype.$provideDocumentComments=function(e,t){var s=this,c=this._documents.getDocumentData(r.URI.revive(t));if(!c||!c.document)return i.TPromise.as(null)
  ;var l=this._documentProviders.get(e);return n.asThenable(function(){return l.provideDocumentComments(c.document,a.CancellationToken.None)}).then(function(t){return t?function(e,t,n,r){return{owner:e,threads:n.threads.map(function(e){return u(t,e,r)}),commentingRanges:n.commentingRanges?n.commentingRanges.map(function(e){return o.Range.from(e)}):[]}}(e,l,t,s._commandsConverter):null})},e.prototype.$provideWorkspaceComments=function(e){var t=this,r=this._workspaceProviders.get(e);return r?n.asThenable(function(){return r.provideWorkspaceComments(a.CancellationToken.None)}).then(function(e){return e.map(function(e){return u(r,e,t._commandsConverter)})}):i.TPromise.as(null)},e.prototype.registerListeners=function(e,t){var n=this;t.onDidChangeCommentThreads(function(r){n._proxy.$onDidCommentThreadsChange(e,{owner:e,changed:r.changed.map(function(e){return u(t,e,n._commandsConverter)}),added:r.added.map(function(e){return u(t,e,n._commandsConverter)}),removed:r.removed.map(function(e){
  return u(t,e,n._commandsConverter)})})})},e.handlePool=0,e}();t.ExtHostComments=l}),define(e[62],t([0,1,19,24,2,3,4,12,77,5,7,38,120,121,129,119,17]),function(e,t,r,i,o,s,a,u,c,l,f,d,h,p,g,m,v){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var y=function(){function e(e,t,n,r,i,o,s){var u=this;this._workspaceService=t,this._extensionService=n,this._editorsService=r,this._configurationService=i,this._terminalService=o,this._commandService=s,this._debugSessions=new Map,this._providerHandleCounter=0,this._providerByHandle=new Map,this._providerByType=new Map,this._providers=[],this._aexCommands=new Map,this._debugAdapters=new Map,this._debugAdaptersTrackers=new Map,this._onDidStartDebugSession=new a.Emitter,this._onDidTerminateDebugSession=new a.Emitter,this._onDidChangeActiveDebugSession=new a.Emitter,this._onDidReceiveDebugSessionCustomEvent=new a.Emitter,this._debugServiceProxy=e.getProxy(l.MainContext.MainThreadDebugService),this._onDidChangeBreakpoints=new a.Emitter({
  onFirstListenerAdd:function(){u.startBreakpoints()}}),this._activeDebugConsole=new b(this._debugServiceProxy),this._breakpoints=new Map,this._breakpointEventsActive=!1;for(var c=[],f=0,d=this._extensionService.getAllExtensionDescriptions();f<d.length;f++){var h=d[f];if(h.contributes){var p=h.contributes.debuggers;if(p&&p.length>0)for(var g=0,m=p;g<m.length;g++){var v=m[g];v.type&&v.label&&(c.push(v.type),v.adapterExecutableCommand&&this._aexCommands.set(v.type,v.adapterExecutableCommand))}}}c.length>0&&this._debugServiceProxy.$registerDebugTypes(c)}return Object.defineProperty(e.prototype,"onDidStartDebugSession",{get:function(){return this._onDidStartDebugSession.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidTerminateDebugSession",{get:function(){return this._onDidTerminateDebugSession.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeActiveDebugSession",{get:function(){return this._onDidChangeActiveDebugSession.event},enumerable:!0,
  configurable:!0}),Object.defineProperty(e.prototype,"activeDebugSession",{get:function(){return this._activeDebugSession},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidReceiveDebugSessionCustomEvent",{get:function(){return this._onDidReceiveDebugSessionCustomEvent.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"activeDebugConsole",{get:function(){return this._activeDebugConsole},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeBreakpoints",{get:function(){return this._onDidChangeBreakpoints.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"breakpoints",{get:function(){this.startBreakpoints();var e=[];return this._breakpoints.forEach(function(t){return e.push(t)}),e},enumerable:!0,configurable:!0}),e.prototype.addBreakpoints=function(e){this.startBreakpoints();for(var t=[],n=0,r=e;n<r.length;n++){var i=(c=r[n])._id;i?this._breakpoints.has(i)||t.push(c):(i=d.generateUuid(),c._id=i,this._breakpoints.set(i,c),
  t.push(c))}this.fireBreakpointChanges(t,[],[]);for(var o=[],s=new Map,a=0,u=t;a<u.length;a++){var c=u[a];if(c instanceof f.SourceBreakpoint){var l=s.get(c.location.uri.toString());l||(l={type:"sourceMulti",uri:c.location.uri,lines:[]},s.set(c.location.uri.toString(),l),o.push(l)),l.lines.push({id:c._id,enabled:c.enabled,condition:c.condition,hitCondition:c.hitCondition,logMessage:c.logMessage,line:c.location.range.start.line,character:c.location.range.start.character})}else c instanceof f.FunctionBreakpoint&&o.push({type:"function",id:c._id,enabled:c.enabled,hitCondition:c.hitCondition,logMessage:c.logMessage,condition:c.condition,functionName:c.functionName})}return this._debugServiceProxy.$registerBreakpoints(o)},e.prototype.removeBreakpoints=function(e){this.startBreakpoints();for(var t=[],n=0,r=e;n<r.length;n++){var i=r[n],o=i._id;o&&this._breakpoints.delete(o)&&t.push(i)}this.fireBreakpointChanges([],t,[]);var s=t.filter(function(e){return e instanceof f.SourceBreakpoint}).map(function(e){return e._id
  }),a=t.filter(function(e){return e instanceof f.FunctionBreakpoint}).map(function(e){return e._id});return this._debugServiceProxy.$unregisterBreakpoints(s,a)},e.prototype.startDebugging=function(e,t){return this._debugServiceProxy.$startDebugging(e?e.uri:void 0,t)},e.prototype.registerDebugConfigurationProvider=function(e,t,n){var r=this;if(!n)return new f.Disposable(function(){});if(n.provideDebugAdapter){if(!this.definesDebugType(e,t))throw new Error("method 'provideDebugAdapter' must only be called from the extension that defines the '"+t+"' debugger.");if(this._providerByType.has(t))throw new Error("a provider with method 'provideDebugAdapter' can only be registered once per a type.");this._providerByType.set(t,n)}var i=this._providerHandleCounter++;return this._providerByHandle.set(i,n),this._providers.push({type:t,provider:n}),
  this._debugServiceProxy.$registerDebugConfigurationProvider(t,!!n.provideDebugConfigurations,!!n.resolveDebugConfiguration,!!n.debugAdapterExecutable||!!n.provideDebugAdapter,!!n.provideDebugAdapterTracker,i),new f.Disposable(function(){r._providerByHandle.delete(i),r._providerByType.delete(t),r._providers=r._providers.filter(function(e){return e.provider!==n}),r._debugServiceProxy.$unregisterDebugConfigurationProvider(i)})},e.prototype.$runInTerminal=function(e,t){var n=this;if("integrated"===e.kind)return this._terminalDisposedListener||(this._terminalDisposedListener=this._terminalService.onDidCloseTerminal(function(e){n._integratedTerminalInstance&&n._integratedTerminalInstance===e&&(n._integratedTerminalInstance=null)})),new s.TPromise(function(e){n._integratedTerminalInstance?n._integratedTerminalInstance.processId.then(function(t){e(p.hasChildprocesses(t))},function(t){e(!0)}):e(!0)}).then(function(r){
  return r&&(n._integratedTerminalInstance=n._terminalService.createTerminal(e.title||c.localize(0,null))),n._integratedTerminalInstance.show(),new s.TPromise(function(r,i){setTimeout(function(i){var o=p.prepareCommand(e,t);n._integratedTerminalInstance.sendText(o,!0),r(void 0)},500)})});if("external"===e.kind){var r=p.getTerminalLauncher();if(r)return r.runInTerminal(e,t)}},e.prototype.$substituteVariables=function(e,t){this._variableResolver||(this._variableResolver=new C(this._workspaceService,this._editorsService,this._configurationService));var n,r=this.getFolder(e);return r&&(n={uri:r.uri,name:r.name,index:r.index,toResource:function(){throw new Error("Not implemented")}}),s.TPromise.wrap(this._variableResolver.resolveAny(n,t))},e.prototype.$startDASession=function(e,t,n,i){var s=this,a=this;return this.getAdapterDescriptor(this._providerByType.get(i.type),t,n,i).then(function(u){var c=void 0;switch(u.type){case"server":c=new h.SocketDebugAdapter(u);break;case"executable":
  c=new h.ExecutableDebugAdapter(u,i.type);break;case"implementation":c=new w(u.implementation)}if(c)return s._debugAdapters.set(e,c),s.getDebugAdapterTrackers(t,n,i).then(function(t){return t&&s._debugAdaptersTrackers.set(e,t),c.onMessage(function(n){t&&t.fromDebugAdapter(n),m.convertToVSCPaths(n,function(e){r.isAbsolute(e.path)&&(e.path=o.URI.file(e.path))}),a._debugServiceProxy.$acceptDAMessage(e,n)}),c.onError(function(n){t.debugAdapterError(n),s._debugServiceProxy.$acceptDAError(e,n.name,n.message,n.stack)}),c.onExit(function(n){t.debugAdapterExit(n,null),s._debugServiceProxy.$acceptDAExit(e,n,null)}),t&&t.startDebugAdapter(),c.startSession()})})},e.prototype.$sendDAMessage=function(e,t){m.convertToDAPaths(t,function(e){"object"==typeof e.path&&(e.path=o.URI.revive(e.path).fsPath)});var n=this._debugAdaptersTrackers.get(e);n&&n.toDebugAdapter(t);var r=this._debugAdapters.get(e);r&&r.sendMessage(t)},e.prototype.$stopDASession=function(e){var t=this._debugAdaptersTrackers.get(e)
  ;this._debugAdaptersTrackers.delete(e),t&&t.stopDebugAdapter();var n=this._debugAdapters.get(e);return this._debugAdapters.delete(e),n?n.stopSession():void 0},e.prototype.$acceptBreakpointsDelta=function(e){var t=[],n=[],r=[];if(e.added)for(var i=0,s=e.added;i<s.length;i++){g=s[i];if(!this._breakpoints.has(g.id)){p=void 0;if("function"===g.type)p=new f.FunctionBreakpoint(g.functionName,g.enabled,g.condition,g.hitCondition,g.logMessage);else{var a=o.URI.revive(g.uri);p=new f.SourceBreakpoint(new f.Location(a,new f.Position(g.line,g.character)),g.enabled,g.condition,g.hitCondition,g.logMessage)}p._id=g.id,this._breakpoints.set(g.id,p),t.push(p)}}if(e.removed)for(var u=0,c=e.removed;u<c.length;u++){var l=c[u];(p=this._breakpoints.get(l))&&(this._breakpoints.delete(l),n.push(p))}if(e.changed)for(var d=0,h=e.changed;d<h.length;d++){var p,g=h[d];if(p=this._breakpoints.get(g.id)){if(p instanceof f.FunctionBreakpoint&&"function"===g.type){var m=p;m.enabled=g.enabled,m.condition=g.condition,
  m.hitCondition=g.hitCondition,m.logMessage=g.logMessage,m.functionName=g.functionName}else if(p instanceof f.SourceBreakpoint&&"source"===g.type){var v=p;v.enabled=g.enabled,v.condition=g.condition,v.hitCondition=g.hitCondition,v.logMessage=g.logMessage,v.location=new f.Location(o.URI.revive(g.uri),new f.Position(g.line,g.character))}r.push(p)}}this.fireBreakpointChanges(t,n,r)},e.prototype.$provideDebugConfigurations=function(e,t){var n=this,r=this._providerByHandle.get(e);return r?r.provideDebugConfigurations?u.asThenable(function(){return r.provideDebugConfigurations(n.getFolder(t),v.CancellationToken.None)}):s.TPromise.wrapError(new Error("handler has no method provideDebugConfigurations")):s.TPromise.wrapError(new Error("no handler found"))},e.prototype.$resolveDebugConfiguration=function(e,t,n){var r=this,i=this._providerByHandle.get(e);return i?i.resolveDebugConfiguration?u.asThenable(function(){return i.resolveDebugConfiguration(r.getFolder(t),n,v.CancellationToken.None)
  }):s.TPromise.wrapError(new Error("handler has no method resolveDebugConfiguration")):s.TPromise.wrapError(new Error("no handler found"))},e.prototype.$provideDebugAdapter=function(e,t,n,r){var i=this._providerByHandle.get(e);return i?i.debugAdapterExecutable||i.provideDebugAdapter?this.getAdapterDescriptor(i,this.getSession(t),n,r):s.TPromise.wrapError(new Error("handler has no methods provideDebugAdapter or debugAdapterExecutable")):s.TPromise.wrapError(new Error("no handler found"))},e.prototype.$acceptDebugSessionStarted=function(e){this._onDidStartDebugSession.fire(this.getSession(e))},e.prototype.$acceptDebugSessionTerminated=function(e){this._onDidTerminateDebugSession.fire(this.getSession(e)),this._debugSessions.delete(e.id)},e.prototype.$acceptDebugSessionActiveChanged=function(e){this._activeDebugSession=e?this.getSession(e):void 0,this._onDidChangeActiveDebugSession.fire(this._activeDebugSession)},e.prototype.$acceptDebugSessionCustomEvent=function(e,t){var n={session:this.getSession(e),
  event:t.event,body:t.body};this._onDidReceiveDebugSessionCustomEvent.fire(n)},e.prototype.definesDebugType=function(e,t){if(e.contributes){var n=e.contributes.debuggers;if(n&&n.length>0)for(var r=0,i=n;r<i.length;r++){var o=i[r];if(o.label&&o.type&&o.type===t)return!0}}return!1},e.prototype.getDebugAdapterTrackers=function(e,t,n){var r=this.getSession(e),i=this.getFolder(t),o=n.type,a=this._providers.filter(function(e){return e.provider.provideDebugAdapterTracker&&(e.type===o||"*"===e.type)}).map(function(e){return e.provider.provideDebugAdapterTracker(r,i,n,v.CancellationToken.None)});return s.TPromise.join(a).then(function(e){if(e.length>0)return new S(e)})},e.prototype.getAdapterDescriptor=function(e,t,n,r){var i=this;if("number"==typeof r.debugServer)return s.TPromise.wrap(new f.DebugAdapterServer(r.debugServer));if(e){if(e.provideDebugAdapter){var a=h.ExecutableDebugAdapter.platformAdapterExecutable(this._extensionService.getAllExtensionDescriptions(),r.type);return u.asThenable(function(){
  return e.provideDebugAdapter(i.getSession(t),i.getFolder(n),a,r,v.CancellationToken.None)})}if(e.debugAdapterExecutable)return u.asThenable(function(){return e.debugAdapterExecutable(i.getFolder(n),v.CancellationToken.None)})}var c=this._aexCommands.get(r.type);if(c){var l=n?o.URI.revive(n).toString():void 0;return this._commandService.executeCommand(c,l).then(function(e){return new f.DebugAdapterExecutable(e.command,e.args||[])})}return s.TPromise.wrap(h.ExecutableDebugAdapter.platformAdapterExecutable(this._extensionService.getAllExtensionDescriptions(),r.type))},e.prototype.startBreakpoints=function(){this._breakpointEventsActive||(this._breakpointEventsActive=!0,this._debugServiceProxy.$startBreakpointEvents())},e.prototype.fireBreakpointChanges=function(e,t,n){(e.length>0||t.length>0||n.length>0)&&this._onDidChangeBreakpoints.fire(Object.freeze({added:e,removed:t,changed:n}))},e.prototype.getSession=function(e){if(e){var t=this._debugSessions.get(e.id)
  ;return t||(t=new _(this._debugServiceProxy,e.id,e.type,e.name),this._debugSessions.set(e.id,t)),t}},e.prototype.getFolder=function(e){if(e){var t=o.URI.revive(e);return this._workspaceService.resolveWorkspaceFolder(t)}},e}();t.ExtHostDebugService=y;var _=function(){function e(e,t,n,r){this._debugServiceProxy=e,this._id=t,this._type=n,this._name=r}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),e.prototype.customRequest=function(e,t){return this._debugServiceProxy.$customDebugAdapterRequest(this._id,e,t)},e}();t.ExtHostDebugSession=_;var b=function(){function e(e){this._debugServiceProxy=e}return e.prototype.append=function(e){this._debugServiceProxy.$appendDebugConsole(e)},e.prototype.appendLine=function(e){this.append(e+"\n")},e}()
  ;t.ExtHostDebugConsole=b;var C=function(e){function t(t,n,o){return e.call(this,{getFolderUri:function(e){var n=t.getWorkspaceFolders().filter(function(t){return t.name===e});if(n&&n.length>0)return n[0].uri},getWorkspaceFolderCount:function(){return t.getWorkspaceFolders().length},getConfigurationValue:function(e,t){return o.getConfiguration(void 0,e).get(t)},getExecPath:function(){},getFilePath:function(){var e=n.activeEditor();if(e){var t=e.document.uri;if(t.scheme===i.Schemas.file)return r.normalize(t.fsPath,!0)}},getSelectedText:function(){var e=n.activeEditor();if(e&&!e.selection.isEmpty)return e.document.getText(e.selection)},getLineNumber:function(){var e=n.activeEditor();if(e)return String(e.selection.end.line+1)}})||this}return n(t,e),t}(g.AbstractVariableResolverService);t.ExtHostVariableResolverService=C;var S=function(){function e(e){this.trackers=e}return e.prototype.startDebugAdapter=function(){this.trackers.forEach(function(e){return e.startDebugAdapter?e.startDebugAdapter():void 0})},
  e.prototype.toDebugAdapter=function(e){this.trackers.forEach(function(t){return t.toDebugAdapter?t.toDebugAdapter(e):void 0})},e.prototype.fromDebugAdapter=function(e){this.trackers.forEach(function(t){return t.fromDebugAdapter?t.fromDebugAdapter(e):void 0})},e.prototype.debugAdapterError=function(e){this.trackers.forEach(function(t){return t.debugAdapterError?t.debugAdapterError(e):void 0})},e.prototype.debugAdapterExit=function(e,t){this.trackers.forEach(function(n){return n.debugAdapterExit?n.debugAdapterExit(e,t):void 0})},e.prototype.stopDebugAdapter=function(){this.trackers.forEach(function(e){return e.stopDebugAdapter?e.stopDebugAdapter():void 0})},e}(),x=function(){function e(e){this.da=e}return e.prototype.start=function(e,t){this._sendUp=e},e.prototype.sendUp=function(e){this._sendUp(e)},e.prototype.send=function(e){this.da.acceptMessage(e)},e.prototype.stop=function(){throw new Error("Method not implemented.")},e}(),w=function(e){function t(t){var n=e.call(this)||this
  ;return t.__setTransport&&(n.transport=new x(n),t.__setTransport(n.transport)),n}return n(t,e),t.prototype.startSession=function(){return s.TPromise.wrap(void 0)},t.prototype.sendMessage=function(e){this.transport.sendUp(e)},t.prototype.stopSession=function(){return this.transport.stop(),s.TPromise.wrap(void 0)},t}(h.AbstractDebugAdapter)}),define(e[146],t([0,1,2,5,3,7]),function(e,t,n,r,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e){this._provider=new Map,this._proxy=e.getProxy(r.MainContext.MainThreadDecorations)}return e.prototype.registerDecorationProvider=function(t,n){var r=this,i=e._handlePool++;this._provider.set(i,{provider:t,extensionId:n}),this._proxy.$registerDecorationProvider(i,n);var s=t.onDidChangeDecorations(function(e){r._proxy.$onDidChange(i,e?Array.isArray(e)?e:[e]:null)});return new o.Disposable(function(){s.dispose(),r._proxy.$unregisterDecorationProvider(i),r._provider.delete(i)})},e.prototype.$provideDecorations=function(e,t){
  var r=this,o=Object.create(null);return i.TPromise.join(e.map(function(e){var i=e.handle,s=e.uri,a=e.id;if(r._provider.has(i)){var u=r._provider.get(i),c=u.provider,l=u.extensionId;return Promise.resolve(c.provideDecoration(n.URI.revive(s),t)).then(function(e){e&&e.letter&&1!==e.letter.length&&console.warn("INVALID decoration from extension '"+l+"'. The 'letter' must be set and be one character, not '"+e.letter+"'."),o[a]=e&&[e.priority,e.bubble,e.title,e.letter,e.color,e.source]},function(e){console.error(e)})}})).then(function(){return o})},e._handlePool=0,e}();t.ExtHostDecorations=s}),define(e[147],t([0,1,78,48,2,5,7,18,14,4,21]),function(e,t,r,i,o,s,a,u,c,l,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d=function(){function e(e,t,n,r,i){this._isDisposed=!1,this._data=new Map,this._name=e,this._owner=t,this._maxDiagnosticsPerFile=n,this._proxy=r,this._onDidChangeDiagnostics=i}return e.prototype.dispose=function(){
  this._isDisposed||(this._onDidChangeDiagnostics.fire(f.keys(this._data)),this._proxy.$clear(this._owner),this._data=void 0,this._isDisposed=!0)},Object.defineProperty(e.prototype,"name",{get:function(){return this._checkDisposed(),this._name},enumerable:!0,configurable:!0}),e.prototype.set=function(t,n){var s;if(t){this._checkDisposed();var l,f=!0;if(t instanceof o.URI){if(f=f&&!c.equals(n,this.get(t),a.Diagnostic.isEqual),!n)return void this.delete(t);this._data.set(t.toString(),n),l=[t]}else if(Array.isArray(t)){l=[];var d=void 0;c.mergeSort(t,e._compareIndexedTuplesByUri);for(var h=0,p=t;h<p.length;h++){var g=p[h],m=g[0],v=g[1];d&&m.toString()===d.toString()||(d&&0===this._data.get(d.toString()).length&&this._data.delete(d.toString()),d=m,l.push(m),this._data.set(m.toString(),[])),v?(s=this._data.get(m.toString())).push.apply(s,v):this._data.get(m.toString()).length=0}}if(this._onDidChangeDiagnostics.fire(l),f){for(var y=[],_=0,b=l;_<b.length;_++){var m=b[_],C=void 0,S=this._data.get(m.toString())
  ;if(S)if(S.length>this._maxDiagnosticsPerFile){C=[];var x=[a.DiagnosticSeverity.Error,a.DiagnosticSeverity.Warning,a.DiagnosticSeverity.Information,a.DiagnosticSeverity.Hint];e:for(var w=0;w<4;w++)for(var E=0,P=S;E<P.length;E++){var T=P[E];if(T.severity===x[w]){if(C.push(u.Diagnostic.from(T))===this._maxDiagnosticsPerFile)break e}}C.push({severity:i.MarkerSeverity.Info,message:r.localize(0,null,S.length-this._maxDiagnosticsPerFile),startLineNumber:C[C.length-1].startLineNumber,startColumn:C[C.length-1].startColumn,endLineNumber:C[C.length-1].endLineNumber,endColumn:C[C.length-1].endColumn})}else C=S.map(u.Diagnostic.from);y.push([m,C])}this._proxy.$changeMany(this._owner,y)}}else this.clear()},e.prototype.delete=function(e){this._checkDisposed(),this._onDidChangeDiagnostics.fire([e]),this._data.delete(e.toString()),this._proxy.$changeMany(this._owner,[[e,void 0]])},e.prototype.clear=function(){this._checkDisposed(),this._onDidChangeDiagnostics.fire(f.keys(this._data)),this._data.clear(),
  this._proxy.$clear(this._owner)},e.prototype.forEach=function(e,t){var n=this;this._checkDisposed(),this._data.forEach(function(r,i){var s=o.URI.parse(i);e.apply(t,[s,n.get(s),n])})},e.prototype.get=function(e){this._checkDisposed();var t=this._data.get(e.toString());if(Array.isArray(t))return Object.freeze(t.slice(0))},e.prototype.has=function(e){return this._checkDisposed(),Array.isArray(this._data.get(e.toString()))},e.prototype._checkDisposed=function(){if(this._isDisposed)throw new Error("illegal state - object is disposed")},e._compareIndexedTuplesByUri=function(e,t){return e[0].toString()<t[0].toString()?-1:e[0].toString()>t[0].toString()?1:0},e}();t.DiagnosticCollection=d;var h=function(){function e(t){this._collections=new Map,this._onDidChangeDiagnostics=new l.Emitter,this.onDidChangeDiagnostics=l.mapEvent(l.debounceEvent(this._onDidChangeDiagnostics.event,e._debouncer,50),e._mapper),this._proxy=t.getProxy(s.MainContext.MainThreadDiagnostics)}return e._debouncer=function(e,t){return e?e.concat(t):t
  },e._mapper=function(e){for(var t=[],n=new Set,r=0,i=e;r<i.length;r++){var s=i[r];"string"==typeof s?n.has(s)||(n.add(s),t.push(o.URI.parse(s))):n.has(s.toString())||(n.add(s.toString()),t.push(s))}return Object.freeze(t),{uris:t}},e.prototype.createDiagnosticCollection=function(t){var r,i=this._collections,o=this._proxy,s=this._onDidChangeDiagnostics;if(t)if(i.has(t)){console.warn("DiagnosticCollection with name '"+t+"' does already exist.");do{r=t+e._idPool++}while(i.has(r))}else r=t;else t="_generated_diagnostic_collection_name_#"+e._idPool++,r=t;return new(function(a){function u(){var n=a.call(this,t,r,e._maxDiagnosticsPerFile,o,s)||this;return i.set(r,n),n}return n(u,a),u.prototype.dispose=function(){a.prototype.dispose.call(this),i.delete(r)},u}(d))},e.prototype.getDiagnostics=function(e){if(e)return this._getDiagnostics(e);var t=new Map,n=[];return this._collections.forEach(function(e){e.forEach(function(e,r){var i,o=t.get(e.toString());void 0===o&&(o=n.length,t.set(e.toString(),o),n.push([e,[]])),
  n[o][1]=(i=n[o][1]).concat.apply(i,r)})}),n},e.prototype._getDiagnostics=function(e){var t=[];return this._collections.forEach(function(n){n.has(e)&&(t=t.concat(n.get(e)))}),t},e._idPool=0,e._maxDiagnosticsPerFile=1e3,e}();t.ExtHostDiagnostics=h}),define(e[148],t([0,1,2,5]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e){this._proxy=e.getProxy(r.MainContext.MainThreadDialogs)}return e.prototype.showOpenDialog=function(e){return this._proxy.$showOpenDialog(e).then(function(e){return e&&e.map(n.URI.file)})},e.prototype.showSaveDialog=function(e){return this._proxy.$showSaveDialog(e).then(function(e){return e&&n.URI.file(e)})},e}();t.ExtHostDialogs=i}),define(e[149],t([0,1,13,2,7,5,24,17]),function(e,t,n,r,i,o,s,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t,n){this._documentsAndEditors=t,this._logService=n,this._documentContentProviders=new Map,
  this._proxy=e.getProxy(o.MainContext.MainThreadDocumentContentProviders)}return e.prototype.dispose=function(){},e.prototype.registerTextDocumentContentProvider=function(t,r){var o=this;if(t===s.Schemas.file||t===s.Schemas.untitled)throw new Error("scheme '"+t+"' already registered");var a=e._handlePool++;this._documentContentProviders.set(a,r),this._proxy.$registerTextContentProvider(a,t);var u;return"function"==typeof r.onDidChange&&(u=r.onDidChange(function(e){e.scheme===t?o._documentsAndEditors.getDocument(e.toString())&&o.$provideTextDocumentContent(a,e).then(function(t){var n=o._documentsAndEditors.getDocument(e.toString());if(n){var r=t.split(/\r\n|\r|\n/);return n.equalLines(r)?void 0:o._proxy.$onVirtualDocumentChange(e,t)}},n.onUnexpectedError):o._logService.warn("Provider for scheme '"+t+"' is firing event for schema '"+e.scheme+"' which will be IGNORED")})),new i.Disposable(function(){o._documentContentProviders.delete(a)&&o._proxy.$unregisterTextContentProvider(a),u&&(u.dispose(),u=void 0)})},
  e.prototype.$provideTextDocumentContent=function(e,t){var n=this._documentContentProviders.get(e);return n?Promise.resolve(n.provideTextDocumentContent(r.URI.revive(t),a.CancellationToken.None)):Promise.reject(new Error("unsupported uri-scheme: "+t.scheme))},e._handlePool=0,e}();t.ExtHostDocumentContentProvider=u}),define(e[150],t([0,1,4,2,6,18,3,5,57]),function(e,t,n,r,i,o,s,a,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){var r=this;this._onDidAddDocument=new n.Emitter,this._onDidRemoveDocument=new n.Emitter,this._onDidChangeDocument=new n.Emitter,this._onDidSaveDocument=new n.Emitter,this.onDidAddDocument=this._onDidAddDocument.event,this.onDidRemoveDocument=this._onDidRemoveDocument.event,this.onDidChangeDocument=this._onDidChangeDocument.event,this.onDidSaveDocument=this._onDidSaveDocument.event,this._documentLoader=new Map,this._proxy=e.getProxy(a.MainContext.MainThreadDocuments),this._documentsAndEditors=t,
  this._toDispose=[this._documentsAndEditors.onDidRemoveDocuments(function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];r._onDidRemoveDocument.fire(i.document)}}),this._documentsAndEditors.onDidAddDocuments(function(e){for(var t=0,n=e;t<n.length;t++){var i=n[t];r._onDidAddDocument.fire(i.document)}})]}return e.prototype.dispose=function(){i.dispose(this._toDispose)},e.prototype.getAllDocumentData=function(){return this._documentsAndEditors.allDocuments()},e.prototype.getDocumentData=function(e){if(e){var t=this._documentsAndEditors.getDocument(e.toString());return t||void 0}},e.prototype.ensureDocumentData=function(e){var t=this,n=this._documentsAndEditors.getDocument(e.toString());if(n)return s.TPromise.as(n);var r=this._documentLoader.get(e.toString());return r||(r=this._proxy.$tryOpenDocument(e).then(function(){return t._documentLoader.delete(e.toString()),t._documentsAndEditors.getDocument(e.toString())},function(n){return t._documentLoader.delete(e.toString()),s.TPromise.wrapError(n)}),
  this._documentLoader.set(e.toString(),r)),r},e.prototype.createDocumentData=function(e){return this._proxy.$tryCreateDocument(e).then(function(e){return r.URI.revive(e)})},e.prototype.$acceptModelModeChanged=function(e,t,n){var i=r.URI.revive(e).toString(),o=this._documentsAndEditors.getDocument(i);this._onDidRemoveDocument.fire(o.document),o._acceptLanguageId(n),this._onDidAddDocument.fire(o.document)},e.prototype.$acceptModelSaved=function(e){var t=r.URI.revive(e).toString(),n=this._documentsAndEditors.getDocument(t);this.$acceptDirtyStateChanged(e,!1),this._onDidSaveDocument.fire(n.document)},e.prototype.$acceptDirtyStateChanged=function(e,t){var n=r.URI.revive(e).toString(),i=this._documentsAndEditors.getDocument(n);i._acceptIsDirty(t),this._onDidChangeDocument.fire({document:i.document,contentChanges:[]})},e.prototype.$acceptModelChanged=function(e,t,n){var i=r.URI.revive(e).toString(),s=this._documentsAndEditors.getDocument(i);s._acceptIsDirty(n),s.onEvents(t),this._onDidChangeDocument.fire({
  document:s.document,contentChanges:t.changes.map(function(e){return{range:o.Range.to(e.range),rangeOffset:e.rangeOffset,rangeLength:e.rangeLength,text:e.text}})})},e.prototype.setWordDefinitionFor=function(e,t){u.setWordDefinitionFor(e,t)},e}();t.ExtHostDocuments=c}),define(e[151],t([0,1,4,6,5,57,59,141,18,2]),function(e,t,n,r,i,o,s,a,u,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(){function e(e){this._mainContext=e,this._disposables=[],this._editors=new Map,this._documents=new Map,this._onDidAddDocuments=new n.Emitter,this._onDidRemoveDocuments=new n.Emitter,this._onDidChangeVisibleTextEditors=new n.Emitter,this._onDidChangeActiveTextEditor=new n.Emitter,this.onDidAddDocuments=this._onDidAddDocuments.event,this.onDidRemoveDocuments=this._onDidRemoveDocuments.event,this.onDidChangeVisibleTextEditors=this._onDidChangeVisibleTextEditors.event,this.onDidChangeActiveTextEditor=this._onDidChangeActiveTextEditor.event}return e.prototype.dispose=function(){
  this._disposables=r.dispose(this._disposables)},e.prototype.$acceptDocumentsAndEditorsDelta=function(e){var t=[],n=[],l=[];if(e.removedDocuments)for(var f=0,d=e.removedDocuments;f<d.length;f++){var h=d[f],p=c.URI.revive(h).toString(),g=this._documents.get(p);this._documents.delete(p),t.push(g)}if(e.addedDocuments)for(var m=0,v=e.addedDocuments;m<v.length;m++){var g=v[m],y=c.URI.revive(g.uri);a.ok(!this._documents.has(y.toString()),"document '"+y+" already exists!'");w=new o.ExtHostDocumentData(this._mainContext.getProxy(i.MainContext.MainThreadDocuments),y,g.lines,g.EOL,g.modeId,g.versionId,g.isDirty);this._documents.set(y.toString(),w),n.push(w)}if(e.removedEditors)for(var _=0,b=e.removedEditors;_<b.length;_++){var p=b[_],C=this._editors.get(p);this._editors.delete(p),l.push(C)}if(e.addedEditors)for(var S=0,x=e.addedEditors;S<x.length;S++){var g=x[S],y=c.URI.revive(g.documentUri);a.ok(this._documents.has(y.toString()),"document '"+y+"' does not exist"),
  a.ok(!this._editors.has(g.id),"editor '"+g.id+"' already exists!");var w=this._documents.get(y.toString()),C=new s.ExtHostTextEditor(this._mainContext.getProxy(i.MainContext.MainThreadTextEditors),g.id,w,g.selections.map(u.Selection.to),g.options,g.visibleRanges.map(u.Range.to),u.ViewColumn.to(g.editorPosition));this._editors.set(g.id,C)}void 0!==e.newActiveEditor&&(a.ok(null===e.newActiveEditor||this._editors.has(e.newActiveEditor),"active editor '"+e.newActiveEditor+"' does not exist"),this._activeEditorId=e.newActiveEditor),r.dispose(t),r.dispose(l),e.removedDocuments&&this._onDidRemoveDocuments.fire(t),e.addedDocuments&&this._onDidAddDocuments.fire(n),(e.removedEditors||e.addedEditors)&&this._onDidChangeVisibleTextEditors.fire(this.allEditors()),void 0!==e.newActiveEditor&&this._onDidChangeActiveTextEditor.fire(this.activeEditor())},e.prototype.getDocument=function(e){return this._documents.get(e)},e.prototype.allDocuments=function(){var e=[];return this._documents.forEach(function(t){return e.push(t)}),e
  },e.prototype.getEditor=function(e){return this._editors.get(e)},e.prototype.activeEditor=function(){return this._activeEditorId?this._editors.get(this._activeEditorId):void 0},e.prototype.allEditors=function(){var e=[];return this._editors.forEach(function(t){return e.push(t)}),e},e}();t.ExtHostDocumentsAndEditors=l}),define(e[152],t([0,1,2,5,6,21,7,24]),function(e,t,n,r,i,o,s,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(){this._schemes=new Set}return e.prototype.add=function(e){this._regex=void 0,this._schemes.add(e)},e.prototype.delete=function(e){this._schemes.delete(e)&&(this._regex=void 0)},e.prototype.provideDocumentLinks=function(e){if(0!==this._schemes.size){this._regex||(this._regex=new RegExp("("+o.values(this._schemes).join("|")+"):[^\\s]+","gi"));for(var t=[],r=Math.min(e.lineCount,2500),i=0;i<r;i++){this._regex.lastIndex=0;for(var a=e.lineAt(i),u=void 0;u=this._regex.exec(a.text);){var c=n.URI.parse(u[0]);if("/"===c.path[0]){
  var l=new s.Range(i,this._regex.lastIndex-u[0].length,i,this._regex.lastIndex);t.push({target:c,range:l})}}}return t}},e}(),c=function(){function e(e,t){this._linkProvider=new u,this._fsProvider=new Map,this._usedSchemes=new Set,this._watches=new Map,this._handlePool=0,this._proxy=e.getProxy(r.MainContext.MainThreadFileSystem),this._usedSchemes.add(a.Schemas.file),this._usedSchemes.add(a.Schemas.untitled),this._usedSchemes.add(a.Schemas.vscode),this._usedSchemes.add(a.Schemas.inMemory),this._usedSchemes.add(a.Schemas.internal),this._usedSchemes.add(a.Schemas.http),this._usedSchemes.add(a.Schemas.https),this._usedSchemes.add(a.Schemas.mailto),this._usedSchemes.add(a.Schemas.data),t.registerDocumentLinkProvider("*",this._linkProvider)}return e.prototype.registerFileSystemProvider=function(e,t,n){var r=this;if(void 0===n&&(n={}),this._usedSchemes.has(e))throw new Error("a provider for the scheme '"+e+"' is already registered");var o=this._handlePool++;this._linkProvider.add(e),this._usedSchemes.add(e),
  this._fsProvider.set(o,t);var a=2;n.isCaseSensitive&&(a+=1024),n.isReadonly&&(a+=2048),"function"==typeof t.copy&&(a+=8),"function"==typeof t.open&&"function"==typeof t.close&&"function"==typeof t.read&&"function"==typeof t.write&&(a+=4),this._proxy.$registerFileSystemProvider(o,e,a);var u=t.onDidChangeFile(function(t){for(var n=[],i=0,a=t;i<a.length;i++){var u=a[i],c=u.uri,l=u.type;if(c.scheme===e){var f=void 0;switch(l){case s.FileChangeType.Changed:f=0;break;case s.FileChangeType.Created:f=1;break;case s.FileChangeType.Deleted:f=2}n.push({resource:c,type:f})}}r._proxy.$onFileSystemChange(o,n)});return i.toDisposable(function(){u.dispose(),r._linkProvider.delete(e),r._usedSchemes.delete(e),r._fsProvider.delete(o),r._proxy.$unregisterProvider(o)})},e.prototype.setUriFormatter=function(e,t){this._proxy.$setUriFormatter(e,t)},e._asIStat=function(e){return{type:e.type,ctime:e.ctime,mtime:e.mtime,size:e.size}},e.prototype.$stat=function(t,r){
  return Promise.resolve(this._fsProvider.get(t).stat(n.URI.revive(r))).then(e._asIStat)},e.prototype.$readdir=function(e,t){return Promise.resolve(this._fsProvider.get(e).readDirectory(n.URI.revive(t)))},e.prototype.$readFile=function(e,t){return Promise.resolve(this._fsProvider.get(e).readFile(n.URI.revive(t))).then(function(e){return Buffer.isBuffer(e)?e:Buffer.from(e.buffer,e.byteOffset,e.byteLength)})},e.prototype.$writeFile=function(e,t,r,i){return Promise.resolve(this._fsProvider.get(e).writeFile(n.URI.revive(t),r,i))},e.prototype.$delete=function(e,t,r){return Promise.resolve(this._fsProvider.get(e).delete(n.URI.revive(t),r))},e.prototype.$rename=function(e,t,r,i){return Promise.resolve(this._fsProvider.get(e).rename(n.URI.revive(t),n.URI.revive(r),i))},e.prototype.$copy=function(e,t,r,i){return Promise.resolve(this._fsProvider.get(e).copy(n.URI.revive(t),n.URI.revive(r),i))},e.prototype.$mkdir=function(e,t){return Promise.resolve(this._fsProvider.get(e).createDirectory(n.URI.revive(t)))},
  e.prototype.$watch=function(e,t,r,i){var o=this._fsProvider.get(e).watch(n.URI.revive(r),i);this._watches.set(t,o)},e.prototype.$unwatch=function(e){var t=this._watches.get(e);t&&(t.dispose(),this._watches.delete(e))},e.prototype.$open=function(e,t){return Promise.resolve(this._fsProvider.get(e).open(n.URI.revive(t)))},e.prototype.$close=function(e,t){return Promise.resolve(this._fsProvider.get(e).close(t))},e.prototype.$read=function(e,t,n,r,i,o){return Promise.resolve(this._fsProvider.get(e).read(t,n,r,i,o))},e.prototype.$write=function(e,t,n,r,i,o){return Promise.resolve(this._fsProvider.get(e).write(t,n,r,i,o))},e}();t.ExtHostFileSystem=c}),define(e[153],t([0,1,14,4,27,2,5,18,7]),function(e,t,n,r,i,o,s,a,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t,n,s,a){var c=this;this._onDidCreate=new r.Emitter,this._onDidChange=new r.Emitter,this._onDidDelete=new r.Emitter,this._config=0,n&&(this._config+=1),s&&(this._config+=2),a&&(this._config+=4)
  ;var l=i.parse(t),f=e(function(e){if(!n)for(var t=0,r=e.created;t<r.length;t++){var i=r[t],u=o.URI.revive(i);l(u.fsPath)&&c._onDidCreate.fire(u)}if(!s)for(var f=0,d=e.changed;f<d.length;f++){var h=d[f],u=o.URI.revive(h);l(u.fsPath)&&c._onDidChange.fire(u)}if(!a)for(var p=0,g=e.deleted;p<g.length;p++){var m=g[p],u=o.URI.revive(m);l(u.fsPath)&&c._onDidDelete.fire(u)}});this._disposable=u.Disposable.from(this._onDidCreate,this._onDidChange,this._onDidDelete,f)}return Object.defineProperty(e.prototype,"ignoreCreateEvents",{get:function(){return Boolean(1&this._config)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ignoreChangeEvents",{get:function(){return Boolean(2&this._config)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ignoreDeleteEvents",{get:function(){return Boolean(4&this._config)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this._disposable.dispose()},Object.defineProperty(e.prototype,"onDidCreate",{get:function(){
  return this._onDidCreate.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChange",{get:function(){return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidDelete",{get:function(){return this._onDidDelete.event},enumerable:!0,configurable:!0}),e}(),l=function(){function e(e,t,n){void 0===n&&(n=e.getProxy(s.MainContext.MainThreadTextEditors)),this._extHostDocumentsAndEditors=t,this._mainThreadTextEditors=n,this._onFileEvent=new r.Emitter,this._onDidRenameFile=new r.Emitter,this._onWillRenameFile=new r.AsyncEmitter,this.onDidRenameFile=this._onDidRenameFile.event}return e.prototype.createFileSystemWatcher=function(e,t,n,r){return new c(this._onFileEvent.event,e,t,n,r)},e.prototype.$onFileEvent=function(e){this._onFileEvent.fire(e)},e.prototype.$onFileRename=function(e,t){this._onDidRenameFile.fire(Object.freeze({oldUri:o.URI.revive(e),newUri:o.URI.revive(t)}))},e.prototype.getOnWillRenameFileEvent=function(e){var t=this
  ;return function(n,r,i){var o=function(){n.apply(r,arguments)};return o.extension=e,t._onWillRenameFile.event(o,void 0,i)}},e.prototype.$onWillRename=function(e,t){var r=this,i=o.URI.revive(e),s=o.URI.revive(t),c=[];return Promise.resolve(this._onWillRenameFile.fireAsync(function(e,t){return{oldUri:i,newUri:s,waitUntil:function(t){if(Object.isFrozen(e))throw new TypeError("waitUntil cannot be called async");var n=e.length,r=Promise.resolve(t).then(function(e){e instanceof u.WorkspaceEdit&&(c[n]=e)});e.push(r)}}}).then(function(){if(0!==c.length){for(var e=new Array,t=0,i=c;t<i.length;t++){var o=i[t];if(o){var s=a.WorkspaceEdit.from(o,r._extHostDocumentsAndEditors).edits;e.push(s)}}return r._mainThreadTextEditors.$tryApplyWorkspaceEdit({edits:n.flatten(e)})}}))},e}();t.ExtHostFileSystemEventService=l}),define(e[154],t([0,1,2,3,22,18,7,12,5,9,43,14,15,111]),function(e,t,n,r,i,o,s,a,u,c,l,f,d,h){"use strict";function p(e){return Array.isArray(e)?e.map(o.DefinitionLink.from):e?[o.DefinitionLink.from(e)]:void 0}
  Object.defineProperty(t,"__esModule",{value:!0});var g=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideDocumentSymbols=function(t,n){var r=this,i=this._documents.getDocumentData(t).document;return a.asThenable(function(){return r._provider.provideDocumentSymbols(i,n)}).then(function(n){if(!f.isFalsyOrEmpty(n))return n[0]instanceof s.DocumentSymbol?n.map(o.DocumentSymbol.from):e._asDocumentSymbolTree(t,n)})},e._asDocumentSymbolTree=function(e,t){t=t.slice(0).sort(function(e,t){var n=e.location.range.start.compareTo(t.location.range.start);return 0===n&&(n=t.location.range.end.compareTo(e.location.range.end)),n});for(var n=[],r=[],i=0;i<t.length;i++)for(var s={name:t[i].name,kind:o.SymbolKind.from(t[i].kind),containerName:t[i].containerName,range:o.Range.from(t[i].location.range),selectionRange:o.Range.from(t[i].location.range),children:[]};;){if(0===r.length){r.push(s),n.push(s);break}var a=r[r.length-1]
  ;if(l.Range.containsRange(a.range,s.range)&&!l.Range.equalsRange(a.range,s.range)){a.children.push(s),r.push(s);break}r.pop()}return n},e}(),m=function(){function e(e,t,n,r){this._documents=e,this._commands=t,this._heapService=n,this._provider=r}return e.prototype.provideCodeLenses=function(e,t){var n=this,r=this._documents.getDocumentData(e).document;return a.asThenable(function(){return n._provider.provideCodeLenses(r,t)}).then(function(e){if(Array.isArray(e))return e.map(function(e){var t=n._heapService.keep(e);return u.ObjectIdentifier.mixin({range:o.Range.from(e.range),command:n._commands.toInternal(e.command)},t)})})},e.prototype.resolveCodeLens=function(t,n,i){var o=this,s=this._heapService.get(u.ObjectIdentifier.of(n));if(s){return("function"!=typeof this._provider.resolveCodeLens||s.isResolved?r.TPromise.as(s):a.asThenable(function(){return o._provider.resolveCodeLens(s,i)})).then(function(t){return t=t||s,n.command=o._commands.toInternal(t.command||e._badCmd),n})}},e._badCmd={command:"missing",
  title:"<<MISSING COMMAND>>"},e}(),v=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideDefinition=function(e,t,n){var r=this,i=this._documents.getDocumentData(e).document,s=o.Position.to(t);return a.asThenable(function(){return r._provider.provideDefinition(i,s,n)}).then(p)},e}(),y=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideImplementation=function(e,t,n){var r=this,i=this._documents.getDocumentData(e).document,s=o.Position.to(t);return a.asThenable(function(){return r._provider.provideImplementation(i,s,n)}).then(p)},e}(),_=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideTypeDefinition=function(e,t,n){var r=this,i=this._documents.getDocumentData(e).document,s=o.Position.to(t);return a.asThenable(function(){return r._provider.provideTypeDefinition(i,s,n)}).then(p)},e}(),b=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideHover=function(e,t,n){
  var r=this,i=this._documents.getDocumentData(e).document,u=o.Position.to(t);return a.asThenable(function(){return r._provider.provideHover(i,u,n)}).then(function(e){if(e&&!f.isFalsyOrEmpty(e.contents))return e.range||(e.range=i.getWordRangeAtPosition(u)),e.range||(e.range=new s.Range(u,u)),o.Hover.from(e)})},e}(),C=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideDocumentHighlights=function(e,t,n){var r=this,i=this._documents.getDocumentData(e).document,s=o.Position.to(t);return a.asThenable(function(){return r._provider.provideDocumentHighlights(i,s,n)}).then(function(e){if(Array.isArray(e))return e.map(o.DocumentHighlight.from)})},e}(),S=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideReferences=function(e,t,n,r){var i=this,s=this._documents.getDocumentData(e).document,u=o.Position.to(t);return a.asThenable(function(){return i._provider.provideReferences(s,u,n,r)}).then(function(e){
  if(Array.isArray(e))return e.map(o.location.from)})},e}(),x=function(){function e(e,t,n,r,i,o){this._documents=e,this._commands=t,this._diagnostics=n,this._provider=r,this._logService=i,this._extensionId=o}return e.prototype.provideCodeActions=function(t,n,r,i){for(var u=this,c=this._documents.getDocumentData(t).document,l=h.Selection.isISelection(n)?o.Selection.to(n):o.Range.to(n),d=[],p=0,g=this._diagnostics.getDiagnostics(t);p<g.length;p++){var m=g[p];l.intersection(m.range)&&d.push(m)}var v={diagnostics:d,only:r.only?new s.CodeActionKind(r.only):void 0};return a.asThenable(function(){return u._provider.provideCodeActions(c,l,v,i)}).then(function(t){if(!f.isFalsyOrEmpty(t)){for(var n=[],r=0,i=t;r<i.length;r++){var s=i[r];s&&(e._isCommand(s)?n.push({_isSynthetic:!0,title:s.title,command:u._commands.toInternal(s)
  }):(v.only&&(s.kind?v.only.contains(s.kind)||u._logService.warn(u._extensionId+" -Code actions of kind '"+v.only.value+" 'requested but returned code action is of kind '"+s.kind.value+"'. Code action will be dropped. Please check 'CodeActionContext.only' to only return requested code actions."):u._logService.warn(u._extensionId+" - Code actions of kind '"+v.only.value+" 'requested but returned code action does not have a 'kind'. Code action will be dropped. Please set 'CodeAction.kind'.")),n.push({title:s.title,command:s.command&&u._commands.toInternal(s.command),diagnostics:s.diagnostics&&s.diagnostics.map(o.Diagnostic.from),edit:s.edit&&o.WorkspaceEdit.from(s.edit),kind:s.kind&&s.kind.value})))}return n}})},e._isCommand=function(e){return"string"==typeof e.command&&"string"==typeof e.title},e}(),w=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideDocumentFormattingEdits=function(e,t,n){var r=this,i=this._documents.getDocumentData(e).document
  ;return a.asThenable(function(){return r._provider.provideDocumentFormattingEdits(i,t,n)}).then(function(e){if(Array.isArray(e))return e.map(o.TextEdit.from)})},e}(),E=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideDocumentRangeFormattingEdits=function(e,t,n,r){var i=this,s=this._documents.getDocumentData(e).document,u=o.Range.to(t);return a.asThenable(function(){return i._provider.provideDocumentRangeFormattingEdits(s,u,n,r)}).then(function(e){if(Array.isArray(e))return e.map(o.TextEdit.from)})},e}(),P=function(){function e(e,t){this._documents=e,this._provider=t,this.autoFormatTriggerCharacters=[]}return e.prototype.provideOnTypeFormattingEdits=function(e,t,n,r,i){var s=this,u=this._documents.getDocumentData(e).document,c=o.Position.to(t);return a.asThenable(function(){return s._provider.provideOnTypeFormattingEdits(u,c,n,r,i)}).then(function(e){if(Array.isArray(e))return e.map(o.TextEdit.from)})},e}(),T=function(){function e(e){this._symbolCache=Object.create(null),
  this._resultCache=Object.create(null),this._provider=e}return e.prototype.provideWorkspaceSymbols=function(e,t){var n=this,r=u.IdObject.mixin({symbols:[]});return a.asThenable(function(){return n._provider.provideWorkspaceSymbols(e,t)}).then(function(e){if(!f.isFalsyOrEmpty(e))for(var t=0,i=e;t<i.length;t++){var s=i[t];if(s)if(s.name){var a=u.IdObject.mixin(o.WorkspaceSymbol.from(s));n._symbolCache[a._id]=s,r.symbols.push(a)}else console.warn("INVALID SymbolInformation, lacks name",s)}}).then(function(){return r.symbols.length>0&&(n._resultCache[r._id]=[r.symbols[0]._id,r.symbols[r.symbols.length-1]._id]),r})},e.prototype.resolveWorkspaceSymbol=function(e,t){var n=this;if("function"!=typeof this._provider.resolveWorkspaceSymbol)return r.TPromise.as(e);var s=this._symbolCache[e._id];return s?a.asThenable(function(){return n._provider.resolveWorkspaceSymbol(s,t)}).then(function(t){return t&&i.mixin(e,o.WorkspaceSymbol.from(t),!0)}):void 0},e.prototype.releaseWorkspaceSymbols=function(e){
  var t=this._resultCache[e];if(t){for(var n=t[0],r=t[1];n<=r;n++)delete this._symbolCache[n];delete this._resultCache[e]}},e}(),D=function(){function e(e,t){this._documents=e,this._provider=t}return e.supportsResolving=function(e){return"function"==typeof e.prepareRename},e.prototype.provideRenameEdits=function(t,n,r,i){var s=this,u=this._documents.getDocumentData(t).document,c=o.Position.to(n);return a.asThenable(function(){return s._provider.provideRenameEdits(u,c,r,i)}).then(function(e){if(e)return o.WorkspaceEdit.from(e)},function(t){var n=e._asMessage(t);return n?{rejectReason:n,edits:void 0}:Promise.reject(t)})},e.prototype.resolveRenameLocation=function(t,n,i){var u=this;if("function"!=typeof this._provider.prepareRename)return r.TPromise.as(void 0);var c=this._documents.getDocumentData(t).document,l=o.Position.to(n);return a.asThenable(function(){return u._provider.prepareRename(c,l,i)}).then(function(e){var t,n;if(s.Range.isRange(e)?(t=e,n=c.getText(e)):d.isObject(e)&&(t=e.range,n=e.placeholder),t){
  if(t.contains(l))return{range:o.Range.from(t),text:n};console.warn("INVALID rename location: range must contain position")}},function(t){var n=e._asMessage(t);return n?{rejectReason:n,range:void 0,text:void 0}:Promise.reject(t)})},e._asMessage=function(e){return"string"==typeof e?e:e instanceof Error&&"string"==typeof e.message?e.message:void 0},e}(),k=function(){function e(e,t,n){this._cache=new Map,this._idPool=0,this._documents=e,this._commands=t,this._provider=n}return e.supportsResolving=function(e){return"function"==typeof e.resolveCompletionItem},e.prototype.provideCompletionItems=function(e,t,n,r){var i=this,u=this._documents.getDocumentData(e).document,c=o.Position.to(t);return a.asThenable(function(){return i._provider.provideCompletionItems(u,c,r,o.CompletionContext.from(n))}).then(function(e){var t,n=i._idPool++,r={_id:n,suggestions:[]};if(e){Array.isArray(e)?t=new s.CompletionList(e):(t=e,r.incomplete=t.isIncomplete);for(var o=(u.getWordRangeAtPosition(c)||new s.Range(c,c)).with({end:c
  }),a=0;a<t.items.length;a++){var l=i._convertCompletionItem(t.items[a],c,o,a,n);l&&r.suggestions.push(l)}return i._cache.set(n,t.items),r}})},e.prototype.resolveCompletionItem=function(e,t,n,u){var c=this;if("function"!=typeof this._provider.resolveCompletionItem)return r.TPromise.as(n);var l=n,f=l._parentId,d=l._id,h=this._cache.has(f)&&this._cache.get(f)[d];return h?a.asThenable(function(){return c._provider.resolveCompletionItem(h,u)}).then(function(r){if(!r)return n;var a=c._documents.getDocumentData(e).document,u=o.Position.to(t),l=(a.getWordRangeAtPosition(u)||new s.Range(u,u)).with({end:u}),h=c._convertCompletionItem(r,u,l,d,f);return h&&i.mixin(n,h,!0),n}):r.TPromise.as(n)},e.prototype.releaseCompletionItems=function(e){this._cache.delete(e)},e.prototype._convertCompletionItem=function(e,t,n,r,i){if("string"==typeof e.label&&0!==e.label.length){var a={_id:r,_parentId:i,label:e.label,kind:o.CompletionItemKind.from(e.kind),detail:e.detail,documentation:e.documentation,filterText:e.filterText,
  sortText:e.sortText,preselect:e.preselect,insertText:void 0,additionalTextEdits:e.additionalTextEdits&&e.additionalTextEdits.map(o.TextEdit.from),command:this._commands.toInternal(e.command),commitCharacters:e.commitCharacters};e.textEdit?(a.insertText=e.textEdit.newText,a.insertTextIsSnippet=!1):"string"==typeof e.insertText?(a.insertText=e.insertText,a.insertTextIsSnippet=!1):e.insertText instanceof s.SnippetString?(a.insertText=e.insertText.value,a.insertTextIsSnippet=!0):(a.insertText=e.label,a.insertTextIsSnippet=!1);var u;if(u=e.textEdit?e.textEdit.range:e.range?e.range:n,a.overwriteBefore=t.character-u.start.character,a.overwriteAfter=u.end.character-t.character,u.isSingleLine&&u.start.line===t.line)return a;console.warn("INVALID text edit -> must be single line and on the same line")}else console.warn("INVALID text edit -> must have at least a label")},e}(),I=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideSignatureHelp=function(e,t,n,r){
  var i=this,s=this._documents.getDocumentData(e).document,u=o.Position.to(t);return a.asThenable(function(){return i._provider.provideSignatureHelp(s,u,r,n)}).then(function(e){if(e)return o.SignatureHelp.from(e)})},e}(),O=function(){function e(e,t,n){this._documents=e,this._heapService=t,this._provider=n}return e.prototype.provideLinks=function(e,t){var n=this,r=this._documents.getDocumentData(e).document;return a.asThenable(function(){return n._provider.provideDocumentLinks(r,t)}).then(function(e){if(Array.isArray(e)){for(var t=[],r=0,i=e;r<i.length;r++){var s=i[r],a=o.DocumentLink.from(s),c=n._heapService.keep(s);u.ObjectIdentifier.mixin(a,c),t.push(a)}return t}})},e.prototype.resolveLink=function(e,t){var n=this;if("function"==typeof this._provider.resolveDocumentLink){var r=u.ObjectIdentifier.of(e),i=this._heapService.get(r);if(i)return a.asThenable(function(){return n._provider.resolveDocumentLink(i,t)}).then(function(e){if(e)return o.DocumentLink.from(e)})}},e}(),R=function(){function e(e,t){
  this._documents=e,this._provider=t}return e.prototype.provideColors=function(e,t){var n=this,r=this._documents.getDocumentData(e).document;return a.asThenable(function(){return n._provider.provideDocumentColors(r,t)}).then(function(e){if(!Array.isArray(e))return[];return e.map(function(e){return{color:o.Color.from(e.color),range:o.Range.from(e.range)}})})},e.prototype.provideColorPresentations=function(e,t,n){var r=this,i=this._documents.getDocumentData(e).document,s=o.Range.to(t.range),u=o.Color.to(t.color);return a.asThenable(function(){return r._provider.provideColorPresentations(u,{document:i,range:s},n)}).then(function(e){return e.map(o.ColorPresentation.from)})},e}(),A=function(){function e(e,t){this._documents=e,this._provider=t}return e.prototype.provideFoldingRanges=function(e,t,n){var r=this,i=this._documents.getDocumentData(e).document;return a.asThenable(function(){return r._provider.provideFoldingRanges(i,t,n)}).then(function(e){if(Array.isArray(e))return e.map(o.FoldingRange.from)})},e
  }(),L=function(){function e(e,t,n,r,i,o,s){this._adapter=new Map,this._schemeTransformer=t,this._proxy=e.getProxy(u.MainContext.MainThreadLanguageFeatures),this._documents=n,this._commands=r,this._heapService=i,this._diagnostics=o,this._logService=s}return e.prototype._transformDocumentSelector=function(e){var t=this;return Array.isArray(e)?e.map(function(e){return t._doTransformDocumentSelector(e)}):[this._doTransformDocumentSelector(e)]},e.prototype._doTransformDocumentSelector=function(e){return"string"==typeof e?{$serialized:!0,language:e}:e?{$serialized:!0,language:e.language,scheme:this._transformScheme(e.scheme),pattern:e.pattern,exclusive:e.exclusive}:void 0},e.prototype._transformScheme=function(e){return this._schemeTransformer&&"string"==typeof e?this._schemeTransformer.transformOutgoing(e):e},e.prototype._createDisposable=function(e){var t=this;return new s.Disposable(function(){t._adapter.delete(e),t._proxy.$unregister(e)})},e.prototype._nextHandle=function(){return e._handlePool++},
  e.prototype._withAdapter=function(e,t,n){var i=this._adapter.get(e);return i instanceof t?n(i):r.TPromise.wrapError(new Error("no adapter found"))},e.prototype._addNewAdapter=function(e){var t=this._nextHandle();return this._adapter.set(t,e),t},e.prototype.registerDocumentSymbolProvider=function(e,t,n){var r=this._addNewAdapter(new g(this._documents,t));return this._proxy.$registerOutlineSupport(r,this._transformDocumentSelector(e),n?n.displayName||n.name:void 0),this._createDisposable(r)},e.prototype.$provideDocumentSymbols=function(e,t,r){return this._withAdapter(e,g,function(e){return e.provideDocumentSymbols(n.URI.revive(t),r)})},e.prototype.registerCodeLensProvider=function(e,t){var n=this,r=this._nextHandle(),i="function"==typeof t.onDidChangeCodeLenses?this._nextHandle():void 0;this._adapter.set(r,new m(this._documents,this._commands.converter,this._heapService,t)),this._proxy.$registerCodeLensSupport(r,this._transformDocumentSelector(e),i);var o=this._createDisposable(r);if(void 0!==i){
  var a=t.onDidChangeCodeLenses(function(e){return n._proxy.$emitCodeLensEvent(i)});o=s.Disposable.from(o,a)}return o},e.prototype.$provideCodeLenses=function(e,t,r){return this._withAdapter(e,m,function(e){return e.provideCodeLenses(n.URI.revive(t),r)})},e.prototype.$resolveCodeLens=function(e,t,r,i){return this._withAdapter(e,m,function(e){return e.resolveCodeLens(n.URI.revive(t),r,i)})},e.prototype.registerDefinitionProvider=function(e,t){var n=this._addNewAdapter(new v(this._documents,t));return this._proxy.$registerDeclaractionSupport(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideDefinition=function(e,t,r,i){return this._withAdapter(e,v,function(e){return e.provideDefinition(n.URI.revive(t),r,i)})},e.prototype.registerImplementationProvider=function(e,t){var n=this._addNewAdapter(new y(this._documents,t));return this._proxy.$registerImplementationSupport(n,this._transformDocumentSelector(e)),this._createDisposable(n)},
  e.prototype.$provideImplementation=function(e,t,r,i){return this._withAdapter(e,y,function(e){return e.provideImplementation(n.URI.revive(t),r,i)})},e.prototype.registerTypeDefinitionProvider=function(e,t){var n=this._addNewAdapter(new _(this._documents,t));return this._proxy.$registerTypeDefinitionSupport(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideTypeDefinition=function(e,t,r,i){return this._withAdapter(e,_,function(e){return e.provideTypeDefinition(n.URI.revive(t),r,i)})},e.prototype.registerHoverProvider=function(e,t,n){var r=this._addNewAdapter(new b(this._documents,t));return this._proxy.$registerHoverProvider(r,this._transformDocumentSelector(e)),this._createDisposable(r)},e.prototype.$provideHover=function(e,t,r,i){return this._withAdapter(e,b,function(e){return e.provideHover(n.URI.revive(t),r,i)})},e.prototype.registerDocumentHighlightProvider=function(e,t){var n=this._addNewAdapter(new C(this._documents,t))
  ;return this._proxy.$registerDocumentHighlightProvider(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideDocumentHighlights=function(e,t,r,i){return this._withAdapter(e,C,function(e){return e.provideDocumentHighlights(n.URI.revive(t),r,i)})},e.prototype.registerReferenceProvider=function(e,t){var n=this._addNewAdapter(new S(this._documents,t));return this._proxy.$registerReferenceSupport(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideReferences=function(e,t,r,i,o){return this._withAdapter(e,S,function(e){return e.provideReferences(n.URI.revive(t),r,i,o)})},e.prototype.registerCodeActionProvider=function(e,t,n,r){var i=this._addNewAdapter(new x(this._documents,this._commands.converter,this._diagnostics,t,this._logService,n?n.id:""));return this._proxy.$registerQuickFixSupport(i,this._transformDocumentSelector(e),r&&r.providedCodeActionKinds?r.providedCodeActionKinds.map(function(e){return e.value}):void 0),this._createDisposable(i)},
  e.prototype.$provideCodeActions=function(e,t,r,i,o){return this._withAdapter(e,x,function(e){return e.provideCodeActions(n.URI.revive(t),r,i,o)})},e.prototype.registerDocumentFormattingEditProvider=function(e,t){var n=this._addNewAdapter(new w(this._documents,t));return this._proxy.$registerDocumentFormattingSupport(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideDocumentFormattingEdits=function(e,t,r,i){return this._withAdapter(e,w,function(e){return e.provideDocumentFormattingEdits(n.URI.revive(t),r,i)})},e.prototype.registerDocumentRangeFormattingEditProvider=function(e,t){var n=this._addNewAdapter(new E(this._documents,t));return this._proxy.$registerRangeFormattingSupport(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideDocumentRangeFormattingEdits=function(e,t,r,i,o){return this._withAdapter(e,E,function(e){return e.provideDocumentRangeFormattingEdits(n.URI.revive(t),r,i,o)})},
  e.prototype.registerOnTypeFormattingEditProvider=function(e,t,n){var r=this._addNewAdapter(new P(this._documents,t));return this._proxy.$registerOnTypeFormattingSupport(r,this._transformDocumentSelector(e),n),this._createDisposable(r)},e.prototype.$provideOnTypeFormattingEdits=function(e,t,r,i,o,s){return this._withAdapter(e,P,function(e){return e.provideOnTypeFormattingEdits(n.URI.revive(t),r,i,o,s)})},e.prototype.registerWorkspaceSymbolProvider=function(e){var t=this._addNewAdapter(new T(e));return this._proxy.$registerNavigateTypeSupport(t),this._createDisposable(t)},e.prototype.$provideWorkspaceSymbols=function(e,t,n){return this._withAdapter(e,T,function(e){return e.provideWorkspaceSymbols(t,n)})},e.prototype.$resolveWorkspaceSymbol=function(e,t,n){return this._withAdapter(e,T,function(e){return e.resolveWorkspaceSymbol(t,n)})},e.prototype.$releaseWorkspaceSymbols=function(e,t){this._withAdapter(e,T,function(e){return e.releaseWorkspaceSymbols(t)})},e.prototype.registerRenameProvider=function(e,t){
  var n=this._addNewAdapter(new D(this._documents,t));return this._proxy.$registerRenameSupport(n,this._transformDocumentSelector(e),D.supportsResolving(t)),this._createDisposable(n)},e.prototype.$provideRenameEdits=function(e,t,r,i,o){return this._withAdapter(e,D,function(e){return e.provideRenameEdits(n.URI.revive(t),r,i,o)})},e.prototype.$resolveRenameLocation=function(e,t,r,i){return this._withAdapter(e,D,function(e){return e.resolveRenameLocation(n.URI.revive(t),r,i)})},e.prototype.registerCompletionItemProvider=function(e,t,n){var r=this._addNewAdapter(new k(this._documents,this._commands.converter,t));return this._proxy.$registerSuggestSupport(r,this._transformDocumentSelector(e),n,k.supportsResolving(t)),this._createDisposable(r)},e.prototype.$provideCompletionItems=function(e,t,r,i,o){return this._withAdapter(e,k,function(e){return e.provideCompletionItems(n.URI.revive(t),r,i,o)})},e.prototype.$resolveCompletionItem=function(e,t,r,i,o){return this._withAdapter(e,k,function(e){
  return e.resolveCompletionItem(n.URI.revive(t),r,i,o)})},e.prototype.$releaseCompletionItems=function(e,t){this._withAdapter(e,k,function(e){return e.releaseCompletionItems(t)})},e.prototype.registerSignatureHelpProvider=function(e,t,n){var r=this._addNewAdapter(new I(this._documents,t));return this._proxy.$registerSignatureHelpProvider(r,this._transformDocumentSelector(e),n),this._createDisposable(r)},e.prototype.$provideSignatureHelp=function(e,t,r,i,o){return this._withAdapter(e,I,function(e){return e.provideSignatureHelp(n.URI.revive(t),r,i,o)})},e.prototype.registerDocumentLinkProvider=function(e,t){var n=this._addNewAdapter(new O(this._documents,this._heapService,t));return this._proxy.$registerDocumentLinkProvider(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideDocumentLinks=function(e,t,r){return this._withAdapter(e,O,function(e){return e.provideLinks(n.URI.revive(t),r)})},e.prototype.$resolveDocumentLink=function(e,t,n){return this._withAdapter(e,O,function(e){
  return e.resolveLink(t,n)})},e.prototype.registerColorProvider=function(e,t){var n=this._addNewAdapter(new R(this._documents,t));return this._proxy.$registerDocumentColorProvider(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideDocumentColors=function(e,t,r){return this._withAdapter(e,R,function(e){return e.provideColors(n.URI.revive(t),r)})},e.prototype.$provideColorPresentations=function(e,t,r,i){return this._withAdapter(e,R,function(e){return e.provideColorPresentations(n.URI.revive(t),r,i)})},e.prototype.registerFoldingRangeProvider=function(e,t){var n=this._addNewAdapter(new A(this._documents,t));return this._proxy.$registerFoldingRangeProvider(n,this._transformDocumentSelector(e)),this._createDisposable(n)},e.prototype.$provideFoldingRanges=function(e,t,r,i){return this._withAdapter(e,A,function(e){return e.provideFoldingRanges(n.URI.revive(t),r,i)})},e._serializeRegExp=function(e){if(void 0!==e)return null===e?null:{pattern:e.source,
  flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")}},e._serializeIndentationRule=function(t){if(void 0!==t)return null===t?null:{decreaseIndentPattern:e._serializeRegExp(t.decreaseIndentPattern),increaseIndentPattern:e._serializeRegExp(t.increaseIndentPattern),indentNextLinePattern:e._serializeRegExp(t.indentNextLinePattern),unIndentedLinePattern:e._serializeRegExp(t.unIndentedLinePattern)}},e._serializeOnEnterRule=function(t){return{beforeText:e._serializeRegExp(t.beforeText),afterText:e._serializeRegExp(t.afterText),oneLineAboveText:e._serializeRegExp(t.oneLineAboveText),action:t.action}},e._serializeOnEnterRules=function(t){if(void 0!==t)return null===t?null:t.map(e._serializeOnEnterRule)},e.prototype.setLanguageConfiguration=function(t,n){var r=n.wordPattern;if(r&&c.regExpLeadsToEndlessLoop(r))throw new Error("Invalid language configuration: wordPattern '"+r+"' is not allowed to match the empty string.")
  ;r?this._documents.setWordDefinitionFor(t,r):this._documents.setWordDefinitionFor(t,null);var i=this._nextHandle(),o={comments:n.comments,brackets:n.brackets,wordPattern:e._serializeRegExp(n.wordPattern),indentationRules:e._serializeIndentationRule(n.indentationRules),onEnterRules:e._serializeOnEnterRules(n.onEnterRules),__electricCharacterSupport:n.__electricCharacterSupport,__characterPairSupport:n.__characterPairSupport};return this._proxy.$setLanguageConfiguration(i,t,o),this._createDisposable(i)},e._handlePool=0,e}();t.ExtHostLanguageFeatures=L}),define(e[155],t([0,1,5]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){this._proxy=e.getProxy(n.MainContext.MainThreadLanguages),this._documents=t}return e.prototype.getLanguages=function(){return this._proxy.$getLanguages()},e.prototype.changeLanguage=function(e,t){var n=this;return this._proxy.$changeLanguage(e,t).then(function(){return n._documents.getDocumentData(e).document})},e}()
  ;t.ExtHostLanguages=r}),define(e[156],t([0,1,5]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this._proxy=e.getProxy(n.MainContext.MainThreadMessageService)}return e.prototype.showMessage=function(e,t,n,r,i){var o,s={extension:e};"string"==typeof r||function(e){return e&&e.title}(r)?o=[r].concat(i):(s.modal=r&&r.modal,o=i);for(var a=[],u=0;u<o.length;u++){var c=o[u];if("string"==typeof c)a.push({title:c,handle:u,isCloseAffordance:!1});else if("object"==typeof c){var l=c.title,f=c.isCloseAffordance;a.push({title:l,isCloseAffordance:f,handle:u})}else console.warn("Invalid message item:",c)}return this._proxy.$showMessage(t,n,s,a).then(function(e){if("number"==typeof e)return o[e]})},e}();t.ExtHostMessageService=r}),define(e[157],t([0,1,5,2,20,102,87,4,6]),function(e,t,r,i,o,s,a,u,c){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=function(e){function t(t,n,r,i){var o=e.call(this)||this
  ;return o._onDidAppend=o._register(new u.Emitter),o.onDidAppend=o._onDidAppend.event,o._name=t,o._proxy=i,o._id=i.$register(o.name,n,r),o._offset=0,o}return n(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t.prototype.append=function(e){this.validate(),this._offset+=e?Buffer.from(e).byteLength:0},t.prototype.update=function(){var e=this;this._id.then(function(t){return e._proxy.$update(t)})},t.prototype.appendLine=function(e){this.validate(),this.append(e+"\n")},t.prototype.clear=function(){var e=this;this.validate();var t=this._offset;this._id.then(function(n){return e._proxy.$clear(n,t)})},t.prototype.show=function(e,t){var n=this;this.validate(),this._id.then(function(r){return n._proxy.$reveal(r,"boolean"==typeof e?e:t)})},t.prototype.hide=function(){var e=this;this.validate(),this._id.then(function(t){return e._proxy.$close(t)})},t.prototype.validate=function(){if(this._disposed)throw new Error("Channel has been closed")},
  t.prototype.dispose=function(){var t=this;e.prototype.dispose.call(this),this._disposed||this._id.then(function(e){return t._proxy.$dispose(e)}).then(function(){return t._disposed=!0})},t}(c.Disposable);t.AbstractExtHostOutputChannel=l;var f=function(e){function t(t,n){return e.call(this,t,!1,null,n)||this}return n(t,e),t.prototype.append=function(t){var n=this;e.prototype.append.call(this,t),this._id.then(function(e){return n._proxy.$append(e,t)}),this._onDidAppend.fire()},t}(l);t.ExtHostPushOutputChannel=f;var d=function(e){function t(n,r,a){var u=this,c=t._namePool+++"-"+n,l=i.URI.file(o.posix.join(r,c+".log"));return u=e.call(this,n,!1,l,a)||this,u._appender=new s.OutputAppender(c,l.fsPath),u}return n(t,e),t.prototype.append=function(t){e.prototype.append.call(this,t),this._appender.append(t),this._onDidAppend.fire()},t.prototype.update=function(){this._appender.flush(),e.prototype.update.call(this)},t.prototype.show=function(t,n){this._appender.flush(),e.prototype.show.call(this,t,n)},
  t.prototype.clear=function(){this._appender.flush(),e.prototype.clear.call(this)},t._namePool=1,t}(l);t.ExtHostOutputChannelBackedByFile=d;var h=function(e){function t(t,n,r){return e.call(this,t,!0,n,r)||this}return n(t,e),t.prototype.append=function(e){throw new Error("Not supported")},t}(l);t.ExtHostLogFileOutputChannel=h;var p=function(){function e(e,t){this._channels=new Map,this._outputDir=o.posix.join(e.fsPath,"output_logging_"+a.toLocalISOString(new Date).replace(/-|:|\.\d+Z$/g,"")),this._proxy=t.getProxy(r.MainContext.MainThreadOutputService)}return e.prototype.$setVisibleChannel=function(e){if(this._visibleChannelDisposable&&(this._visibleChannelDisposable=c.dispose(this._visibleChannelDisposable)),e){var t=this._channels.get(e);t&&(this._visibleChannelDisposable=t.onDidAppend(function(){return t.update()}))}},e.prototype.createOutputChannel=function(e){var t=this,n=this._createOutputChannel(e);return n._id.then(function(e){return t._channels.set(e,n)}),n},
  e.prototype._createOutputChannel=function(e){if(!(e=e.trim()))throw new Error("illegal argument `name`. must not be falsy");try{return new d(e,this._outputDir,this._proxy)}catch(t){return console.log(t),new f(e,this._proxy)}},e.prototype.createOutputChannelFromLogFile=function(e,t){if(!(e=e.trim()))throw new Error("illegal argument `name`. must not be falsy");if(!t)throw new Error("illegal argument `file`. must not be falsy");return new h(e,t,this._proxy)},e}();t.ExtHostOutputService=p}),define(e[158],t([0,1,12,17,4,6,3,5,2,7,13]),function(e,t,r,i,o,s,a,u,c,l,f){"use strict";function d(e){var t=function(e){if(e&&!(e instanceof l.ThemeIcon))return h("string"==typeof e||e instanceof c.URI?e:e.light);return}(e);return{dark:function(e){if(e&&!(e instanceof l.ThemeIcon)&&e.dark)return h(e.dark);return}(e)||t,light:t}}function h(e){return e instanceof c.URI?e:c.URI.file(e)}Object.defineProperty(t,"__esModule",{value:!0});var p=function(){function e(e,t,n){this._sessions=new Map,
  this._proxy=e.getProxy(u.MainContext.MainThreadQuickOpen),this._workspace=t,this._commands=n}return e.prototype.showQuickPick=function(e,t,n,r){var o=this;void 0===r&&(r=i.CancellationToken.None),this._onDidSelectItem=void 0;var s=a.TPromise.wrap(e),u=this._proxy.$show({placeHolder:n&&n.placeHolder,matchOnDescription:n&&n.matchOnDescription,matchOnDetail:n&&n.matchOnDetail,ignoreFocusLost:n&&n.ignoreFocusOut,canPickMany:n&&n.canPickMany},r);return a.TPromise.any([u,s]).then(function(e){if("0"!==e.key)return s.then(function(e){for(var r=[],i=0;i<e.length;i++){var s=e[i],a=void 0,c=void 0,l=void 0,f=void 0,d=void 0;"string"==typeof s?a=s:(a=s.label,c=s.description,l=s.detail,f=s.picked,t&&(d=s.shouldAlwaysShow)),r.push({label:a,description:c,handle:i,detail:l,picked:f,alwaysShow:d})}return n&&"function"==typeof n.onDidSelectItem&&(o._onDidSelectItem=function(t){n.onDidSelectItem(e[t])}),o._proxy.$setItems(r),u.then(function(t){return"number"==typeof t?e[t]:Array.isArray(t)?t.map(function(t){return e[t]}):void 0
  })})}).then(null,function(e){if(!f.isPromiseCanceledError(e))return o._proxy.$setError(e),a.TPromise.wrapError(e)})},e.prototype.$onItemSelected=function(e){this._onDidSelectItem&&this._onDidSelectItem(e)},e.prototype.showInput=function(e,t){var n=this;return void 0===t&&(t=i.CancellationToken.None),this._validateInput=e&&e.validateInput,this._proxy.$input(e,"function"==typeof this._validateInput,t).then(null,function(e){if(!f.isPromiseCanceledError(e))return n._proxy.$setError(e),a.TPromise.wrapError(e)})},e.prototype.$validateInput=function(e){var t=this;if(this._validateInput)return r.asThenable(function(){return t._validateInput(e)})},e.prototype.showWorkspaceFolderPick=function(e,t){var n=this;return void 0===t&&(t=i.CancellationToken.None),this._commands.executeCommand("_workbench.pickWorkspaceFolder",[e]).then(function(e){if(e)return n._workspace.getWorkspaceFolders().filter(function(t){return t.uri.toString()===e.uri.toString()})[0]})},e.prototype.createQuickPick=function(e){
  var t=this,n=new m(this._proxy,e,function(){return t._sessions.delete(n._id)});return this._sessions.set(n._id,n),n},e.prototype.createInputBox=function(e){var t=this,n=new v(this._proxy,e,function(){return t._sessions.delete(n._id)});return this._sessions.set(n._id,n),n},e.prototype.$onDidChangeValue=function(e,t){var n=this._sessions.get(e);n&&n._fireDidChangeValue(t)},e.prototype.$onDidAccept=function(e){var t=this._sessions.get(e);t&&t._fireDidAccept()},e.prototype.$onDidChangeActive=function(e,t){var n=this._sessions.get(e);n instanceof m&&n._fireDidChangeActive(t)},e.prototype.$onDidChangeSelection=function(e,t){var n=this._sessions.get(e);n instanceof m&&n._fireDidChangeSelection(t)},e.prototype.$onDidTriggerButton=function(e,t){var n=this._sessions.get(e);n&&n._fireDidTriggerButton(t)},e.prototype.$onDidHide=function(e){var t=this._sessions.get(e);t&&t._fireDidHide()},e}();t.ExtHostQuickOpen=p;var g=function(){function e(e,t,n){this._proxy=e,this._extensionId=t,this._onDidDispose=n,
  this._id=m._nextId++,this._visible=!1,this._enabled=!0,this._busy=!1,this._ignoreFocusOut=!0,this._value="",this._buttons=[],this._handlesToButtons=new Map,this._onDidAcceptEmitter=new o.Emitter,this._onDidChangeValueEmitter=new o.Emitter,this._onDidTriggerButtonEmitter=new o.Emitter,this._onDidHideEmitter=new o.Emitter,this._pendingUpdate={id:this._id},this._disposed=!1,this._disposables=[this._onDidTriggerButtonEmitter,this._onDidHideEmitter,this._onDidAcceptEmitter,this._onDidChangeValueEmitter],this.onDidChangeValue=this._onDidChangeValueEmitter.event,this.onDidAccept=this._onDidAcceptEmitter.event,this.onDidTriggerButton=this._onDidTriggerButtonEmitter.event,this.onDidHide=this._onDidHideEmitter.event}return Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e,this.update({title:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"step",{get:function(){return this._steps},set:function(e){this._steps=e,this.update({step:e})},
  enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"totalSteps",{get:function(){return this._totalSteps},set:function(e){this._totalSteps=e,this.update({totalSteps:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e,this.update({enabled:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"busy",{get:function(){return this._busy},set:function(e){this._busy=e,this.update({busy:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ignoreFocusOut",{get:function(){return this._ignoreFocusOut},set:function(e){this._ignoreFocusOut=e,this.update({ignoreFocusOut:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._value=e,this.update({value:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){
  this._placeholder=e,this.update({placeholder:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"buttons",{get:function(){return this._buttons},set:function(e){var t=this;this._buttons=e.slice(),this._handlesToButtons.clear(),e.forEach(function(e,n){var r=e===l.QuickInputButtons.Back?-1:n;t._handlesToButtons.set(r,e)}),this.update({buttons:e.map(function(e,t){return{iconPath:d(e.iconPath),tooltip:e.tooltip,handle:e===l.QuickInputButtons.Back?-1:t}})})},enumerable:!0,configurable:!0}),e.prototype.show=function(){this._visible=!0,this.update({visible:!0})},e.prototype.hide=function(){this._visible=!1,this.update({visible:!1})},e.prototype._fireDidAccept=function(){this._onDidAcceptEmitter.fire()},e.prototype._fireDidChangeValue=function(e){this._value=e,this._onDidChangeValueEmitter.fire(e)},e.prototype._fireDidTriggerButton=function(e){var t=this._handlesToButtons.get(e);this._onDidTriggerButtonEmitter.fire(t)},e.prototype._fireDidHide=function(){this._onDidHideEmitter.fire()},
  e.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._fireDidHide(),this._disposables=s.dispose(this._disposables),this._updateTimeout&&(clearTimeout(this._updateTimeout),this._updateTimeout=void 0),this._onDidDispose(),this._proxy.$dispose(this._id))},e.prototype.update=function(e){var t=this;if(!this._disposed){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n],o=e[i];this._pendingUpdate[i]=void 0===o?null:o}"visible"in this._pendingUpdate?(this._updateTimeout&&(clearTimeout(this._updateTimeout),this._updateTimeout=void 0),this.dispatchUpdate()):this._visible&&!this._updateTimeout&&(this._updateTimeout=setTimeout(function(){t._updateTimeout=void 0,t.dispatchUpdate()},0))}},e.prototype.dispatchUpdate=function(){this._proxy.$createOrUpdate(this._pendingUpdate),this._pendingUpdate={id:this._id}},e._nextId=1,e}(),m=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i._items=[],i._handlesToItems=new Map,i._itemsToHandles=new Map,i._canSelectMany=!1,
  i._matchOnDescription=!0,i._matchOnDetail=!0,i._activeItems=[],i._onDidChangeActiveEmitter=new o.Emitter,i._selectedItems=[],i._onDidChangeSelectionEmitter=new o.Emitter,i.onDidChangeActive=i._onDidChangeActiveEmitter.event,i.onDidChangeSelection=i._onDidChangeSelectionEmitter.event,i._disposables.push(i._onDidChangeActiveEmitter,i._onDidChangeSelectionEmitter),i.update({type:"quickPick"}),i}return n(t,e),Object.defineProperty(t.prototype,"items",{get:function(){return this._items},set:function(e){var t=this;this._items=e.slice(),this._handlesToItems.clear(),this._itemsToHandles.clear(),e.forEach(function(e,n){t._handlesToItems.set(n,e),t._itemsToHandles.set(e,n)}),this.update({items:e.map(function(e,t){return{label:e.label,description:e.description,handle:t,detail:e.detail,picked:e.picked}})})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"canSelectMany",{get:function(){return this._canSelectMany},set:function(e){this._canSelectMany=e,this.update({canSelectMany:e})},enumerable:!0,
  configurable:!0}),Object.defineProperty(t.prototype,"matchOnDescription",{get:function(){return this._matchOnDescription},set:function(e){this._matchOnDescription=e,this.update({matchOnDescription:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matchOnDetail",{get:function(){return this._matchOnDetail},set:function(e){this._matchOnDetail=e,this.update({matchOnDetail:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeItems",{get:function(){return this._activeItems},set:function(e){var t=this;this._activeItems=e.filter(function(e){return t._itemsToHandles.has(e)}),this.update({activeItems:this._activeItems.map(function(e){return t._itemsToHandles.get(e)})})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selectedItems",{get:function(){return this._selectedItems},set:function(e){var t=this;this._selectedItems=e.filter(function(e){return t._itemsToHandles.has(e)}),this.update({selectedItems:this._selectedItems.map(function(e){
  return t._itemsToHandles.get(e)})})},enumerable:!0,configurable:!0}),t.prototype._fireDidChangeActive=function(e){var t=this,n=e.map(function(e){return t._handlesToItems.get(e)});this._activeItems=n,this._onDidChangeActiveEmitter.fire(n)},t.prototype._fireDidChangeSelection=function(e){var t=this,n=e.map(function(e){return t._handlesToItems.get(e)});this._selectedItems=n,this._onDidChangeSelectionEmitter.fire(n)},t}(g),v=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.update({type:"inputBox"}),i}return n(t,e),Object.defineProperty(t.prototype,"password",{get:function(){return this._password},set:function(e){this._password=e,this.update({password:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"prompt",{get:function(){return this._prompt},set:function(e){this._prompt=e,this.update({prompt:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validationMessage",{get:function(){return this._validationMessage},set:function(e){
  this._validationMessage=e,this.update({validationMessage:e})},enumerable:!0,configurable:!0}),t}(g)});var u=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};define(e[159],t([0,1,2,3,4,61,6,12,5,14,55,37]),function(e,t,n,r,i,o,s,c,l,f,d,h){"use strict";function p(e){if(e)return"string"==typeof e.iconPath?n.URI.file(e.iconPath).toString():e.iconPath?""+e.iconPath:void 0}function g(e,t){if(!e.iconPath&&!t.iconPath)return 0;if(!e.iconPath)return-1;if(!t.iconPath)return 1;var n="string"==typeof e.iconPath?e.iconPath:e.iconPath.fsPath,r="string"==typeof t.iconPath?t.iconPath:t.iconPath.fsPath;return d.comparePaths(n,r)}function m(e,t){var n=d.comparePaths(e.resourceUri.fsPath,t.resourceUri.fsPath,!0);if(0!==n)return n;if(e.decorations&&t.decorations)n=function(e,t){var n=0;if(e.strikeThrough!==t.strikeThrough)return e.strikeThrough?1:-1;if(e.faded!==t.faded)return e.faded?1:-1;if(e.tooltip!==t.tooltip)return(e.tooltip||"").localeCompare(t.tooltip);if(0!==(n=g(e,t)))return n
  ;if(e.light&&t.light)n=g(e.light,t.light);else{if(e.light)return 1;if(t.light)return-1}if(0!==n)return n;if(e.dark&&t.dark)n=g(e.dark,t.dark);else{if(e.dark)return 1;if(t.dark)return-1}return n}(e.decorations,t.decorations);else{if(e.decorations)return 1;if(t.decorations)return-1}return n}function v(e,t){return e.command===t.command&&e.title===t.title&&e.tooltip===t.tooltip&&(e.arguments&&t.arguments?function(e,t){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(e.arguments,t.arguments):e.arguments===t.arguments)}Object.defineProperty(t,"__esModule",{value:!0});var y=function(){function e(e,t,n){this._extension=e,this._proxy=t,this._sourceControlHandle=n,this._value="",this._onDidChange=new i.Emitter,this._placeholder=""}return Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(e){this._proxy.$setInputBoxValue(this._sourceControlHandle,e),this.updateValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChange",{get:function(){
  return this._onDidChange.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(e){this._proxy.$setInputBoxPlaceholder(this._sourceControlHandle,e),this._placeholder=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validateInput",{get:function(){if(!this._extension.enableProposedApi)throw new Error("["+this._extension.id+"]: Proposed API is only available when running out of dev or with the following command line switch: --enable-proposed-api "+this._extension.id);return this._validateInput},set:function(e){if(!this._extension.enableProposedApi)throw new Error("["+this._extension.id+"]: Proposed API is only available when running out of dev or with the following command line switch: --enable-proposed-api "+this._extension.id);e&&"function"!=typeof e?console.warn("Invalid SCM input box validation function"):(this._validateInput=e,this._proxy.$setValidationProviderIsEnabled(this._sourceControlHandle,!!e))
  },enumerable:!0,configurable:!0}),e.prototype.$onInputBoxValueChange=function(e){this.updateValue(e)},e.prototype.updateValue=function(e){this._value=e,this._onDidChange.fire(e)},e}();t.ExtHostSCMInputBox=y;var _=function(){function e(t,n,r,o,s){this._proxy=t,this._commands=n,this._sourceControlHandle=r,this._id=o,this._label=s,this._resourceHandlePool=0,this._resourceStates=[],this._resourceStatesMap=new Map,this._resourceStatesCommandsMap=new Map,this._onDidUpdateResourceStates=new i.Emitter,this.onDidUpdateResourceStates=this._onDidUpdateResourceStates.event,this._onDidDispose=new i.Emitter,this.onDidDispose=this._onDidDispose.event,this._handlesSnapshot=[],this._resourceSnapshot=[],this._hideWhenEmpty=void 0,this.handle=e._handlePool++,this._disposables=[],this._proxy.$registerGroup(r,this.handle,o,s)}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},set:function(e){
  this._label=e,this._proxy.$updateGroupLabel(this._sourceControlHandle,this.handle,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideWhenEmpty",{get:function(){return this._hideWhenEmpty},set:function(e){this._hideWhenEmpty=e,this._proxy.$updateGroup(this._sourceControlHandle,this.handle,{hideWhenEmpty:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resourceStates",{get:function(){return this._resourceStates.slice()},set:function(e){this._resourceStates=e.slice(),this._onDidUpdateResourceStates.fire()},enumerable:!0,configurable:!0}),e.prototype.getResourceState=function(e){return this._resourceStatesMap.get(e)},e.prototype.$executeResourceCommand=function(e){var t=this,n=this._resourceStatesCommandsMap.get(e);return n?c.asThenable(function(){var e;return(e=t._commands).executeCommand.apply(e,[n.command].concat(n.arguments))}):Promise.resolve(null)},e.prototype._takeResourceStateSnapshot=function(){
  for(var e,t=this,n=this._resourceStates.slice().sort(m),r=f.sortedDiff(this._resourceSnapshot,n,m).map(function(e){var n=e.toInsert.map(function(e){var n=t._resourceHandlePool++;t._resourceStatesMap.set(n,e);var r=e.resourceUri,i=p(e.decorations),o=e.decorations&&p(e.decorations.light)||i,s=e.decorations&&p(e.decorations.dark)||i,a=[];e.command&&t._resourceStatesCommandsMap.set(n,e.command),(o||s)&&a.push(o),s!==o&&a.push(s);return{rawResource:[n,r,a,e.decorations&&e.decorations.tooltip||"",e.decorations&&!!e.decorations.strikeThrough,e.decorations&&!!e.decorations.faded,e.decorations&&e.decorations.source||void 0,e.decorations&&e.decorations.letter||void 0,e.decorations&&e.decorations.color||void 0],handle:n}});return{start:e.start,deleteCount:e.deleteCount,toInsert:n}}),i=r.map(function(e){return[e.start,e.deleteCount,e.toInsert.map(function(e){return e.rawResource})]}),o=0,s=r.reverse();o<s.length;o++)for(var a=s[o],u=a.start,c=a.deleteCount,l=a.toInsert.map(function(e){return e.handle
  }),d=0,h=(e=this._handlesSnapshot).splice.apply(e,[u,c].concat(l));d<h.length;d++){var g=h[d];this._resourceStatesMap.delete(g),this._resourceStatesCommandsMap.delete(g)}return this._resourceSnapshot=n,i},e.prototype.dispose=function(){this._proxy.$unregisterGroup(this._sourceControlHandle,this.handle),this._disposables=s.dispose(this._disposables),this._onDidDispose.fire()},e._handlePool=0,e}(),b=function(){function e(t,n,r,o,s,a){this._proxy=n,this._commands=r,this._id=o,this._label=s,this._rootUri=a,this._groups=new Map,this._count=void 0,this._quickDiffProvider=void 0,this._commitTemplate=void 0,this._acceptInputCommand=void 0,this._statusBarCommands=void 0,this._selected=!1,this._onDidChangeSelection=new i.Emitter,this.onDidChangeSelection=this._onDidChangeSelection.event,this.handle=e._handlePool++,this.updatedResourceGroups=new Set,this._inputBox=new y(t,this._proxy,this.handle),this._proxy.$registerSourceControl(this.handle,o,s,a)}return Object.defineProperty(e.prototype,"id",{get:function(){
  return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"label",{get:function(){return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rootUri",{get:function(){return this._rootUri},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputBox",{get:function(){return this._inputBox},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"count",{get:function(){return this._count},set:function(e){this._count!==e&&(this._count=e,this._proxy.$updateSourceControl(this.handle,{count:e}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"quickDiffProvider",{get:function(){return this._quickDiffProvider},set:function(e){this._quickDiffProvider=e,this._proxy.$updateSourceControl(this.handle,{hasQuickDiffProvider:!!e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"commitTemplate",{get:function(){return this._commitTemplate},set:function(e){this._commitTemplate=e,
  this._proxy.$updateSourceControl(this.handle,{commitTemplate:e})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"acceptInputCommand",{get:function(){return this._acceptInputCommand},set:function(e){this._acceptInputCommand=e;var t=this._commands.converter.toInternal(e);this._proxy.$updateSourceControl(this.handle,{acceptInputCommand:t})},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusBarCommands",{get:function(){return this._statusBarCommands},set:function(e){var t=this;if(!(this._statusBarCommands&&e&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!v(e[n],t[n]))return!1;return!0}(this._statusBarCommands,e))){this._statusBarCommands=e;var n=(e||[]).map(function(e){return t._commands.converter.toInternal(e)});this._proxy.$updateSourceControl(this.handle,{statusBarCommands:n})}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},enumerable:!0,configurable:!0}),
  e.prototype.createResourceGroup=function(e,t){var n=this,r=new _(this._proxy,this._commands,this.handle,e,t),o=r.onDidUpdateResourceStates(function(){n.updatedResourceGroups.add(r),n.eventuallyUpdateResourceStates()});return i.once(r.onDidDispose)(function(){n.updatedResourceGroups.delete(r),o.dispose(),n._groups.delete(r.handle)}),this._groups.set(r.handle,r),r},e.prototype.eventuallyUpdateResourceStates=function(){var e=[];this.updatedResourceGroups.forEach(function(t){var n=t._takeResourceStateSnapshot();0!==n.length&&e.push([t.handle,n])}),e.length>0&&this._proxy.$spliceResourceStates(this.handle,e),this.updatedResourceGroups.clear()},e.prototype.getResourceGroup=function(e){return this._groups.get(e)},e.prototype.setSelectionState=function(e){this._selected=e,this._onDidChangeSelection.fire(e)},e.prototype.dispose=function(){this._groups.forEach(function(e){return e.dispose()}),this._proxy.$unregisterSourceControl(this.handle)},e._handlePool=0,
  a([o.debounce(100)],e.prototype,"eventuallyUpdateResourceStates",null),e}(),C=function(){function e(e,t,n){var r=this;this._commands=t,this.logService=n,this._sourceControls=new Map,this._sourceControlsByExtension=new Map,this._onDidChangeActiveProvider=new i.Emitter,this._selectedSourceControlHandles=new Set,this._proxy=e.getProxy(l.MainContext.MainThreadSCM),t.registerArgumentProcessor({processArgument:function(e){if(e&&3===e.$mid){if(!(n=r._sourceControls.get(e.sourceControlHandle)))return e;var t=n.getResourceGroup(e.groupHandle);return t?t.getResourceState(e.handle):e}if(e&&4===e.$mid){return(n=r._sourceControls.get(e.sourceControlHandle))?n.getResourceGroup(e.groupHandle):e}if(e&&5===e.$mid){var n=r._sourceControls.get(e.handle);return n||e}return e}})}return Object.defineProperty(e.prototype,"onDidChangeActiveProvider",{get:function(){return this._onDidChangeActiveProvider.event},enumerable:!0,configurable:!0}),e.prototype.createSourceControl=function(t,n,r,i){
  this.logService.trace("ExtHostSCM#createSourceControl",t.id,n,r,i);var o=e._handlePool++,s=new b(t,this._proxy,this._commands,n,r,i);this._sourceControls.set(o,s);var a=this._sourceControlsByExtension.get(t.id)||[];return a.push(s),this._sourceControlsByExtension.set(t.id,a),s},e.prototype.getLastInputBox=function(e){this.logService.trace("ExtHostSCM#getLastInputBox",e.id);var t=this._sourceControlsByExtension.get(e.id),n=t&&t[t.length-1];return n&&n.inputBox},e.prototype.$provideOriginalResource=function(e,t,i){var o=n.URI.revive(t);this.logService.trace("ExtHostSCM#$provideOriginalResource",e,o.toString());var s=this._sourceControls.get(e);return s&&s.quickDiffProvider?c.asThenable(function(){return s.quickDiffProvider.provideOriginalResource(o,i)}):r.TPromise.as(null)},e.prototype.$onInputBoxValueChange=function(e,t){this.logService.trace("ExtHostSCM#$onInputBoxValueChange",e);var n=this._sourceControls.get(e);return n?(n.inputBox.$onInputBoxValueChange(t),r.TPromise.as(null)):r.TPromise.as(null)},
  e.prototype.$executeResourceCommand=function(e,t,n){this.logService.trace("ExtHostSCM#$executeResourceCommand",e,t,n);var i=this._sourceControls.get(e);if(!i)return r.TPromise.as(null);var o=i.getResourceGroup(t);return o?o.$executeResourceCommand(n):r.TPromise.as(null)},e.prototype.$validateInput=function(e,t,n){this.logService.trace("ExtHostSCM#$validateInput",e);var i=this._sourceControls.get(e);return i&&i.inputBox.validateInput?c.asThenable(function(){return i.inputBox.validateInput(t,n)}).then(function(e){return e?r.TPromise.as([e.message,e.type]):r.TPromise.as(void 0)}):r.TPromise.as(void 0)},e.prototype.$setSelectedSourceControls=function(e){var t=this;this.logService.trace("ExtHostSCM#$setSelectedSourceControls",e);for(var n=new Set,i=0,o=e;i<o.length;i++){var s=o[i];n.add(s)}return n.forEach(function(e){if(!t._selectedSourceControlHandles.has(e)){var n=t._sourceControls.get(e);if(!n)return;n.setSelectionState(!0)}}),this._selectedSourceControlHandles.forEach(function(e){if(!n.has(e)){
  var r=t._sourceControls.get(e);if(!r)return;r.setSelectionState(!1)}}),this._selectedSourceControlHandles=n,r.TPromise.as(null)},e._handlePool=0,e=a([u(2,h.ILogService)],e)}();t.ExtHostSCM=C}),define(e[160],t([0,1,20,17,41,27,6,23,56,2,3,46,113,5]),function(e,t,n,r,i,o,a,u,c,l,f,d,h,p){"use strict";function g(e){return s({},e,{folderQueries:e.folderQueries&&e.folderQueries.map(m),extraFileResources:e.extraFileResources&&e.extraFileResources.map(function(e){return l.URI.revive(e)})})}function m(e){return s({},e,{folder:l.URI.revive(e.folder)})}Object.defineProperty(t,"__esModule",{value:!0});var v=function(){function e(e,t,n){void 0===n&&(n=d),this._schemeTransformer=t,this._extfs=n,this._fileSearchProvider=new Map,this._textSearchProvider=new Map,this._fileIndexProvider=new Map,this._handlePool=0,this._proxy=e.getProxy(p.MainContext.MainThreadSearch),this._fileSearchManager=new S,this._fileIndexSearchManager=new h.FileIndexSearchManager}return e.prototype._transformScheme=function(e){
  return this._schemeTransformer?this._schemeTransformer.transformOutgoing(e):e},e.prototype.registerFileSearchProvider=function(e,t){var n=this,r=this._handlePool++;return this._fileSearchProvider.set(r,t),this._proxy.$registerFileSearchProvider(r,this._transformScheme(e)),a.toDisposable(function(){n._fileSearchProvider.delete(r),n._proxy.$unregisterProvider(r)})},e.prototype.registerTextSearchProvider=function(e,t){var n=this,r=this._handlePool++;return this._textSearchProvider.set(r,t),this._proxy.$registerTextSearchProvider(r,this._transformScheme(e)),a.toDisposable(function(){n._textSearchProvider.delete(r),n._proxy.$unregisterProvider(r)})},e.prototype.registerFileIndexProvider=function(e,t){var n=this,r=this._handlePool++;return this._fileIndexProvider.set(r,t),this._proxy.$registerFileIndexProvider(r,this._transformScheme(e)),a.toDisposable(function(){n._fileSearchProvider.delete(r),n._proxy.$unregisterProvider(r)})},e.prototype.$provideFileSearchResults=function(e,t,n,r){
  var i=this,o=this._fileSearchProvider.get(e),s=g(n);if(o)return this._fileSearchManager.fileSearch(s,o,function(n){i._proxy.$handleFileMatch(e,t,n.map(function(e){return e.resource}))},r);var a=this._fileIndexProvider.get(e);return this._fileIndexSearchManager.fileSearch(s,a,function(n){i._proxy.$handleFileMatch(e,t,n.map(function(e){return e.resource}))},r)},e.prototype.$clearCache=function(e){return this._fileIndexSearchManager.clearCache(e)},e.prototype.$provideTextSearchResults=function(e,t,n,r,i){var o=this,s=this._textSearchProvider.get(e);if(!s.provideTextSearchResults)return f.TPromise.as(void 0);var a=g(r);return new b(n,a,s,this._extfs).search(function(n){return o._proxy.$handleTextMatch(e,t,n)},i)},e}();t.ExtHostSearch=v;var y=function(){function e(e){var t=this;this._onResult=e,this._batchedCollector=new _(512,function(e){return t.sendItems(e)})}return e.prototype.add=function(e,t){this._currentFileMatch&&(this._currentFolderIdx!==t||u.isEqual(this._currentUri,e.uri))&&(this.pushToCollector(),
  this._currentFileMatch=null),this._currentFileMatch||(this._currentFileMatch={resource:e.uri,matches:[]}),this._currentFileMatch.matches.push(function(e){return{preview:{match:{startLineNumber:e.preview.match.start.line,startColumn:e.preview.match.start.character,endLineNumber:e.preview.match.end.line,endColumn:e.preview.match.end.character},text:e.preview.text},range:{startLineNumber:e.range.start.line,startColumn:e.range.start.character,endLineNumber:e.range.end.line,endColumn:e.range.end.character}}}(e))},e.prototype.pushToCollector=function(){var e=this._currentFileMatch?this._currentFileMatch.matches.length:0;this._batchedCollector.addItem(this._currentFileMatch,e)},e.prototype.flush=function(){this.pushToCollector(),this._batchedCollector.flush()},e.prototype.sendItems=function(e){this._onResult(e)},e}(),_=function(){function e(e,t){this.maxBatchSize=e,this.cb=t,this.totalNumberCompleted=0,this.batch=[],this.batchSize=0}return e.prototype.addItem=function(e,t){e&&this.addItemToBatch(e,t)},
  e.prototype.addItems=function(e,t){e&&(this.maxBatchSize>0?this.addItemsToBatch(e,t):this.cb(e))},e.prototype.addItemToBatch=function(e,t){this.batch.push(e),this.batchSize+=t,this.onUpdate()},e.prototype.addItemsToBatch=function(e,t){this.batch=this.batch.concat(e),this.batchSize+=t,this.onUpdate()},e.prototype.onUpdate=function(){var t=this;this.totalNumberCompleted<e.START_BATCH_AFTER_COUNT?this.flush():this.batchSize>=this.maxBatchSize?this.flush():this.timeoutHandle||(this.timeoutHandle=setTimeout(function(){t.flush()},e.TIMEOUT))},e.prototype.flush=function(){this.batchSize&&(this.totalNumberCompleted+=this.batchSize,this.cb(this.batch),this.batch=[],this.batchSize=0,this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=0))},e.TIMEOUT=4e3,e.START_BATCH_AFTER_COUNT=50,e}(),b=function(){function e(e,t,n,r){this.pattern=e,this.config=t,this.provider=n,this._extfs=r,this.resultCount=0}return e.prototype.search=function(e,t){
  var n=this,o=this.config.folderQueries,s=new r.CancellationTokenSource;return t.onCancellationRequested(function(){return s.cancel()}),new f.TPromise(function(t,r){n.collector=new y(e);var a=!1;f.TPromise.join(o.map(function(e,t){return n.searchInFolder(e,function(e){return function(e,t){a||(n.resultCount>=n.config.maxResults&&(n.isLimitHit=!0,a=!0,s.cancel()),n.isLimitHit||(n.resultCount++,n.collector.add(e,t)))}(e,t)},s.token)})).then(function(e){s.dispose(),n.collector.flush();var r=e.some(function(e){return e&&e.limitHit});t({limitHit:n.isLimitHit||r,stats:{type:"textSearchProvider"}})},function(e){s.dispose();var t=e.map(function(e){return i.toErrorMessage(e)}).filter(function(e){return!!e})[0];r(new Error(t))})})},e.prototype.searchInFolder=function(e,t,r){var i=this,s=new h.QueryGlobTester(this.config,e),a=[],u={report:function(r){var u="file"===e.folder.scheme&&o.hasSiblingPromiseFn(function(){return i.readdir(n.dirname(r.uri.fsPath))}),c=n.relative(e.folder.fsPath,r.uri.fsPath)
  ;a.push(s.includedInQuery(c,n.basename(c),u).then(function(e){e&&t(r)}))}},c=this.getSearchOptionsForFolder(e);return new f.TPromise(function(e){return process.nextTick(e)}).then(function(){return i.provider.provideTextSearchResults(function(e){return{isCaseSensitive:e.isCaseSensitive||!1,isRegExp:e.isRegExp||!1,isWordMatch:e.isWordMatch||!1,pattern:e.pattern}}(i.pattern),c,u,r)}).then(function(e){return f.TPromise.join(a).then(function(){return e})})},e.prototype.readdir=function(e){var t=this;return new f.TPromise(function(n,r){t._extfs.readdir(e,function(e,t){if(e)return r(e);n(t)})})},e.prototype.getSearchOptionsForFolder=function(e){var t=h.resolvePatternsForProvider(this.config.includePattern,e.includePattern),n=h.resolvePatternsForProvider(this.config.excludePattern,e.excludePattern);return{folder:l.URI.from(e.folder),excludes:n,includes:t,useIgnoreFiles:!this.config.disregardIgnoreFiles,followSymlinks:!this.config.ignoreSymlinks,encoding:this.config.fileEncoding,maxFileSize:this.config.maxFileSize,
  maxResults:this.config.maxResults,previewOptions:this.config.previewOptions}},e}(),C=function(){function e(e,t){this.config=e,this.provider=t,this.filePattern=e.filePattern,this.includePattern=e.includePattern&&o.parse(e.includePattern),this.maxResults=e.maxResults||null,this.exists=e.exists,this.resultCount=0,this.isLimitHit=!1,this.activeCancellationTokens=new Set,this.globalExcludePattern=e.excludePattern&&o.parse(e.excludePattern)}return e.prototype.cancel=function(){this.isCanceled=!0,this.activeCancellationTokens.forEach(function(e){return e.cancel()}),this.activeCancellationTokens=new Set},e.prototype.search=function(e){var t=this,r=this.config.folderQueries;return new f.TPromise(function(o,s){var a=function(n){t.resultCount++,e(n)};if(t.isCanceled)return o({limitHit:t.isLimitHit});t.config.extraFileResources&&t.config.extraFileResources.forEach(function(e){var r=e.toString(),i=n.basename(r);t.globalExcludePattern&&t.globalExcludePattern(r,i)||t.matchFile(a,{base:e,basename:i})}),
  f.TPromise.join(r.map(function(e){return t.searchInFolder(e,a)})).then(function(e){o({limitHit:t.isLimitHit,stats:e[0]})},function(e){var t=e.map(function(e){return i.toErrorMessage(e)}).filter(function(e){return!!e})[0];s(new Error(t))})})},e.prototype.searchInFolder=function(e,t){var i=this,o=new r.CancellationTokenSource;return new f.TPromise(function(r,s){var a,u=i.getSearchOptionsForFolder(e),l=i.initDirectoryTree(),d=new h.QueryGlobTester(i.config,e),p=!d.hasSiblingExcludeClauses();new f.TPromise(function(e){return process.nextTick(e)}).then(function(){return i.activeCancellationTokens.add(o),a=c.StopWatch.create(),i.provider.provideFileSearchResults({pattern:i.config.filePattern||""},u,o.token)}).then(function(r){var s=a.elapsed(),u=c.StopWatch.create();return i.isCanceled?null:(r&&r.forEach(function(r){var o=n.relative(e.folder.fsPath,r.fsPath);if(p){var s=n.basename(r.fsPath);i.matchFile(t,{base:e.folder,relativePath:o,basename:s})}else i.addDirectoryEntries(l,e.folder,o,t)}),
  i.activeCancellationTokens.delete(o),i.isCanceled?null:(i.matchDirectoryTree(l,d,t),{providerTime:s,postProcessTime:u.elapsed()}))}).then(function(e){o.dispose(),r(e)},function(e){o.dispose(),s(e)})})},e.prototype.getSearchOptionsForFolder=function(e){var t=h.resolvePatternsForProvider(this.config.includePattern,e.includePattern),n=h.resolvePatternsForProvider(this.config.excludePattern,e.excludePattern);return{folder:e.folder,excludes:n,includes:t,useIgnoreFiles:!this.config.disregardIgnoreFiles,followSymlinks:!this.config.ignoreSymlinks,maxResults:this.config.maxResults}},e.prototype.initDirectoryTree=function(){var e={rootEntries:[],pathToEntries:Object.create(null)};return e.pathToEntries["."]=e.rootEntries,e},e.prototype.addDirectoryEntries=function(e,t,r,i){function o(e){var r=n.basename(e),i=n.dirname(e),a=s[i];a||(a=s[i]=[],o(i)),a.push({base:t,relativePath:e,basename:r})}var s=e.pathToEntries;if(r===this.filePattern){var a=n.basename(this.filePattern);this.matchFile(i,{base:t,
  relativePath:this.filePattern,basename:a})}o(r)},e.prototype.matchDirectoryTree=function(e,t,n){function r(e){for(var i=o.hasSiblingFn(function(){return e.map(function(e){return e.basename})}),c=0,l=e.length;c<l;c++){var f=e[c],d=f.relativePath,h=f.basename;if(t.includedInQuerySync(d,h,u!==h?i:void 0)){var p=s[d];if(p)r(p);else{if(d===u)continue;a.matchFile(n,f)}if(a.isLimitHit)break}}}var i=e.rootEntries,s=e.pathToEntries,a=this,u=this.filePattern;r(i)},e.prototype.matchFile=function(e,t){this.includePattern&&!this.includePattern(t.relativePath,t.basename)||((this.exists||this.maxResults&&this.resultCount>=this.maxResults)&&(this.isLimitHit=!0,this.cancel()),this.isLimitHit||e(t))},e}(),S=function(){function e(){}return e.prototype.fileSearch=function(t,n,r,i){var o=this,s=new C(t,n),a=0;return this.doSearch(s,e.BATCH_SIZE,function(e){a+=e.length,r(e.map(function(e){return o.rawMatchToSearchItem(e)}))},i).then(function(e){return{limitHit:e.limitHit,stats:{fromCache:!1,type:"fileSearchProvider",resultCount:a,
  detailStats:e.stats}}})},e.prototype.rawMatchToSearchItem=function(e){return e.relativePath?{resource:u.joinPath(e.base,e.relativePath)}:{resource:e.base}},e.prototype.doSearch=function(e,t,n,r){r.onCancellationRequested(function(){e.cancel()});var i=[];return e.search(function(e){e&&(i.push(e),t>0&&i.length>=t&&(n(i),i=[]))}).then(function(e){return i.length&&n(i),e},function(e){return i.length&&n(i),f.TPromise.wrapError(e)})},e.BATCH_SIZE=512,e}()}),define(e[161],t([0,1,7,5]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(t,r,i,o){void 0===i&&(i=n.StatusBarAlignment.Left),this._id=e.ID_GEN++,this._proxy=t,this._alignment=i,this._priority=o,this._extensionId=r}return Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"alignment",{get:function(){return this._alignment},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"priority",{get:function(){
  return this._priority},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tooltip",{get:function(){return this._tooltip},set:function(e){this._tooltip=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e,this.update()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"command",{get:function(){return this._command},set:function(e){this._command=e,this.update()},enumerable:!0,configurable:!0}),e.prototype.show=function(){this._visible=!0,this.update()},e.prototype.hide=function(){clearTimeout(this._timeoutHandle),this._visible=!1,this._proxy.$dispose(this.id)},e.prototype.update=function(){var e=this;!this._disposed&&this._visible&&(clearTimeout(this._timeoutHandle),this._timeoutHandle=setTimeout(function(){
  e._timeoutHandle=void 0,e._proxy.$setEntry(e.id,e._extensionId,e.text,e.tooltip,e.command,e.color,e._alignment===n.StatusBarAlignment.Left?0:1,e._priority)},0))},e.prototype.dispose=function(){this.hide(),this._disposed=!0},e.ID_GEN=0,e}();t.ExtHostStatusBarEntry=i;var o=function(){function e(e){this._messages=[],this._item=e.createStatusBarEntry(void 0,n.StatusBarAlignment.Left,Number.MIN_VALUE)}return e.prototype.dispose=function(){this._messages.length=0,this._item.dispose()},e.prototype.setMessage=function(e){var t=this,r={message:e};return this._messages.unshift(r),this._update(),new n.Disposable(function(){var e=t._messages.indexOf(r);e>=0&&(t._messages.splice(e,1),t._update())})},e.prototype._update=function(){this._messages.length>0?(this._item.text=this._messages[0].message,this._item.show()):this._item.hide()},e}(),s=function(){function e(e){this._proxy=e.getProxy(r.MainContext.MainThreadStatusBar),this._statusMessage=new o(this)}return e.prototype.createStatusBarEntry=function(e,t,n){
  return new i(this._proxy,e,t,n)},e.prototype.setStatusBarMessage=function(e,t){var r,i=this._statusMessage.setMessage(e);return"number"==typeof t?r=setTimeout(function(){return i.dispose()},t):void 0!==t&&t.then(function(){return i.dispose()},function(){return i.dispose()}),new n.Disposable(function(){i.dispose(),clearTimeout(r)})},e}();t.ExtHostStatusBar=s}),define(e[162],t([0,1,5]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this._proxy=e.getProxy(n.MainContext.MainThreadStorage)}return e.prototype.getValue=function(e,t,n){return this._proxy.$getValue(e,t).then(function(e){return e||n})},e.prototype.setValue=function(e,t,n){return this._proxy.$setValue(e,t,n)},e}();t.ExtHostStorage=r}),define(e[163],t([0,1,2,81,3,22,12,4,122,5,7,62,17]),function(e,t,n,r,i,o,s,a,u,c,l,f,d){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h;!function(e){e.from=function(e){if(void 0===e||null===e)return u.RevealKind.Always;switch(e){
  case l.TaskRevealKind.Silent:return u.RevealKind.Silent;case l.TaskRevealKind.Never:return u.RevealKind.Never}return u.RevealKind.Always}}(h||(h={}));var p;!function(e){e.from=function(e){if(void 0===e||null===e)return u.PanelKind.Shared;switch(e){case l.TaskPanelKind.Dedicated:return u.PanelKind.Dedicated;case l.TaskPanelKind.New:return u.PanelKind.New;default:return u.PanelKind.Shared}}}(p||(p={}));var g;!function(e){e.from=function(e){return void 0===e||null===e?{reveal:u.RevealKind.Always,echo:!0,focus:!1,panel:u.PanelKind.Shared,showReuseMessage:!0}:{reveal:h.from(e.reveal),echo:void 0===e.echo||!!e.echo,focus:!!e.focus,panel:p.from(e.panel),showReuseMessage:void 0===e.showReuseMessage||!!e.showReuseMessage}}}(g||(g={}));var m;!function(e){e.from=function(e){if(void 0!==e&&null!==e){for(var t=0,n=e;t<n.length;t++)if("string"!=typeof n[t])return[];return e}}}(m||(m={}));var v;!function(e){e.from=function(e){if(void 0!==e&&null!==e){var t={};return"string"==typeof e.cwd&&(t.cwd=e.cwd),
  e.env&&(t.env=Object.create(null),Object.keys(e.env).forEach(function(n){var r=e.env[n];"string"==typeof r&&(t.env[n]=r)})),function(e){return e&&"string"==typeof e.executable}(e)&&(t.shell=_.from(e)),t}}}(v||(v={}));var y;!function(e){e.from=function(e){if(void 0!==e&&null!==e)return{escape:e.escape,strong:e.strong,weak:e.strong}}}(y||(y={}));var _;!function(e){e.from=function(e){if(void 0!==e&&null!==e&&e.executable)return{executable:e.executable,args:m.from(e.shellArgs),quoting:y.from(e.quotes)}}}(_||(_={}));var b;!function(e){e.from=function(e){if(void 0!==e&&null!==e)return e.slice(0)}}(b||(b={}));var C;!function(e){function t(e,t,n){if("string"==typeof e.name){var i,o=e.execution;if(o instanceof l.ProcessExecution)i=function(e){if("string"!=typeof e.process)return;var t={name:e.process,args:m.from(e.args),runtime:u.RuntimeType.Process,suppressTaskName:!0,presentation:void 0};e.options&&(t.options=v.from(e.options));return t}(o);else{if(!(o instanceof l.ShellExecution))return;i=function(e){if(e.args){
  if("string"!=typeof e.command&&"string"!=typeof e.command.value)return;t={name:e.command,args:b.from(e.args),runtime:u.RuntimeType.Shell,presentation:void 0};return e.options&&(t.options=v.from(e.options)),t}if("string"!=typeof e.commandLine)return;var t={name:e.commandLine,runtime:u.RuntimeType.Shell,presentation:void 0};return e.options&&(t.options=v.from(e.options)),t}(o)}if(void 0!==i){i.presentation=g.from(e.presentationOptions);var s,a,c=e.scope;void 0===c?(a=3,s=t):c===l.TaskScope.Global?a=1:c===l.TaskScope.Workspace?a=2:(a=3,s=c);var f={kind:u.TaskSourceKind.Extension,label:"string"==typeof e.source?e.source:n.name,extension:n.id,scope:a,workspaceFolder:void 0};f.__workspaceFolder=s?s.uri:void 0,f.__definition=e.definition;var d=r.localize(0,null,f.label,e.name);return{_id:""+n.id,_source:f,_label:d,type:e.definition.type,defines:void 0,name:e.name,identifier:d,group:e.group?e.group.id:void 0,command:i,isBackground:!!e.isBackground,problemMatchers:e.problemMatchers.slice(),
  hasDefinedMatchers:e.hasDefinedMatchers}}}}e.from=function(e,n,r){if(void 0===e||null===e)return[];for(var i=[],o=0,s=e;o<s.length;o++){var a=t(s[o],n,r);a&&i.push(a)}return i}}(C||(C={}));var S;!function(e){e.from=function(e){if(void 0!==e&&null!==e)return e},e.to=function(e){if(void 0!==e&&null!==e)return e}}(S||(S={}));var x;!function(e){e.from=function(e){if(void 0!==e&&null!==e)return e},e.to=function(e){if(void 0!==e&&null!==e)return e}}(x||(x={}));var w;!function(e){e.from=function(e){if(void 0!==e&&null!==e)return e},e.to=function(e){if(void 0!==e&&null!==e)return e}}(w||(w={}));var E;!function(e){e.is=function(e){var t=e;return t&&!!t.process},e.from=function(e){if(void 0!==e&&null!==e){var t={process:e.process,args:e.args};return e.options&&(t.options=w.from(e.options)),t}},e.to=function(e){if(void 0!==e&&null!==e)return new l.ProcessExecution(e.process,e.args,e.options)}}(E||(E={}));var P;!function(e){e.from=function(e){if(void 0!==e&&null!==e)return e},e.to=function(e){
  if(void 0!==e&&null!==e)return e}}(P||(P={}));var T;!function(e){e.is=function(e){var t=e;return t&&(!!t.commandLine||!!t.command)},e.from=function(e){if(void 0!==e&&null!==e){var t={};return void 0!==e.commandLine?t.commandLine=e.commandLine:(t.command=e.command,t.args=e.args),e.options&&(t.options=P.from(e.options)),t}},e.to=function(e){if(void 0!==e&&null!==e)return e.commandLine?new l.ShellExecution(e.commandLine,e.options):new l.ShellExecution(e.command,e.args?e.args:[],e.options)}}(T||(T={}));var D;!function(e){e.from=function(e){var t;return void 0!==e.scope&&"number"!=typeof e.scope&&(t=e.scope.uri),{id:e._id,workspaceFolder:t}}}(D||(D={}));var k;!function(e){e.from=function(e,t){if(void 0!==e&&null!==e){var n;e.execution instanceof l.ProcessExecution?n=E.from(e.execution):e.execution instanceof l.ShellExecution&&(n=T.from(e.execution));var r,i=S.from(e.definition);if(e.scope&&(r="number"==typeof e.scope?e.scope:e.scope.uri.toJSON()),i&&r){var o=e.group?e.group.id:void 0;return{_id:e._id,definition:i,
  name:e.name,source:{extensionId:t.id,label:e.source,scope:r},execution:n,isBackground:e.isBackground,group:o,presentationOptions:x.from(e.presentationOptions),problemMatchers:e.problemMatchers,hasDefinedMatchers:e.hasDefinedMatchers}}}},e.to=function(e,t){if(void 0!==e&&null!==e){var r;E.is(e.execution)?r=E.to(e.execution):T.is(e.execution)&&(r=T.to(e.execution));var i,o=S.to(e.definition);if(e.source&&(i=void 0!==e.source.scope?"number"==typeof e.source.scope?e.source.scope:t.resolveWorkspaceFolder(n.URI.revive(e.source.scope)):l.TaskScope.Workspace),o&&i){var s=new l.Task(o,i,e.name,e.source.label,r,e.problemMatchers);return void 0!==e.isBackground&&(s.isBackground=e.isBackground),void 0!==e.group&&(s.group=l.TaskGroup.from(e.group)),e.presentationOptions&&(s.presentationOptions=x.to(e.presentationOptions)),e._id&&(s._id=e._id),s}}}}(k||(k={}));var I;!function(e){e.from=function(e){return e},e.to=function(e){if(e)return o.assign(Object.create(null),e)}}(I||(I={}));var O,R=function(){function e(e,t,n){
  this._tasks=e,this._id=t,this._task=n}return Object.defineProperty(e.prototype,"task",{get:function(){return this._task},enumerable:!0,configurable:!0}),e.prototype.terminate=function(){this._tasks.terminateTask(this)},e.prototype.fireDidStartProcess=function(e){},e.prototype.fireDidEndProcess=function(e){},e}();!function(e){e.to=function(e,t){return new R(t,e.id,k.to(e.task,t.extHostWorkspace))},e.from=function(e){return{id:e._id,task:void 0}}}(O||(O={}));var A=function(){function e(e,t,n,r){this._onDidExecuteTask=new a.Emitter,this._onDidTerminateTask=new a.Emitter,this._onDidTaskProcessStarted=new a.Emitter,this._onDidTaskProcessEnded=new a.Emitter,this._proxy=e.getProxy(c.MainContext.MainThreadTask),this._workspaceService=t,this._editorService=n,this._configurationService=r,this._handleCounter=0,this._handlers=new Map,this._taskExecutions=new Map}return Object.defineProperty(e.prototype,"extHostWorkspace",{get:function(){return this._workspaceService},enumerable:!0,configurable:!0}),
  e.prototype.registerTaskProvider=function(e,t){var n=this;if(!t)return new l.Disposable(function(){});var r=this.nextHandle();return this._handlers.set(r,{provider:t,extension:e}),this._proxy.$registerTaskProvider(r),new l.Disposable(function(){n._handlers.delete(r),n._proxy.$unregisterTaskProvider(r)})},e.prototype.registerTaskSystem=function(e,t){this._proxy.$registerTaskSystem(e,t)},e.prototype.fetchTasks=function(e){var t=this;return this._proxy.$fetchTasks(I.from(e)).then(function(e){for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r],s=k.to(o,t._workspaceService);s&&n.push(s)}return n})},e.prototype.executeTask=function(e,t){var n=this,r=t;if(void 0!==r._id)return this._proxy.$executeTask(D.from(r)).then(function(e){return n.getTaskExecution(e,t)});var i=k.from(t,e);return void 0===i?Promise.reject(new Error("Task is not valid")):this._proxy.$executeTask(i).then(function(e){return n.getTaskExecution(e,t)})},Object.defineProperty(e.prototype,"taskExecutions",{get:function(){var e=[]
  ;return this._taskExecutions.forEach(function(t){return e.push(t)}),e},enumerable:!0,configurable:!0}),e.prototype.terminateTask=function(e){if(!(e instanceof R))throw new Error("No valid task execution provided");return this._proxy.$terminateTask(e._id)},Object.defineProperty(e.prototype,"onDidStartTask",{get:function(){return this._onDidExecuteTask.event},enumerable:!0,configurable:!0}),e.prototype.$onDidStartTask=function(e){this._onDidExecuteTask.fire({execution:this.getTaskExecution(e)})},Object.defineProperty(e.prototype,"onDidEndTask",{get:function(){return this._onDidTerminateTask.event},enumerable:!0,configurable:!0}),e.prototype.$OnDidEndTask=function(e){var t=this.getTaskExecution(e);this._taskExecutions.delete(e.id),this._onDidTerminateTask.fire({execution:t})},Object.defineProperty(e.prototype,"onDidStartTaskProcess",{get:function(){return this._onDidTaskProcessStarted.event},enumerable:!0,configurable:!0}),e.prototype.$onDidStartTaskProcess=function(e){var t=this.getTaskExecution(e.id)
  ;t&&this._onDidTaskProcessStarted.fire({execution:t,processId:e.processId})},Object.defineProperty(e.prototype,"onDidEndTaskProcess",{get:function(){return this._onDidTaskProcessEnded.event},enumerable:!0,configurable:!0}),e.prototype.$onDidEndTaskProcess=function(e){var t=this.getTaskExecution(e.id);t&&this._onDidTaskProcessEnded.fire({execution:t,exitCode:e.exitCode})},e.prototype.$provideTasks=function(e,t){var n=this,r=this._handlers.get(e);return r?s.asThenable(function(){return r.provider.provideTasks(d.CancellationToken.None)}).then(function(e){for(var i=[],o=0,s=e;o<s.length;o++){var a=s[o];a.definition&&!0===t[a.definition.type]?i.push(a):(i.push(a),console.warn("The task ["+a.source+", "+a.name+"] uses an undefined task type. The task will be ignored in the future."))}var u=n._workspaceService.getWorkspaceFolders();return{tasks:C.from(i,u&&u.length>0?u[0]:void 0,r.extension),extension:r.extension}}):i.TPromise.wrapError(new Error("no handler found"))},e.prototype.$resolveVariables=function(e,t){
  for(var r=n.URI.revive(e),i=Object.create(null),o=this._workspaceService.resolveWorkspaceFolder(r),s=new f.ExtHostVariableResolverService(this._workspaceService,this._editorService,this._configurationService),a={uri:o.uri,name:o.name,index:o.index,toResource:function(){throw new Error("Not implemented")}},u=0,c=t;u<c.length;u++){var l=c[u];i[l]=s.resolve(a,l)}return i},e.prototype.nextHandle=function(){return this._handleCounter++},e.prototype.getTaskExecution=function(e,t){if("string"==typeof e)return this._taskExecutions.get(e);var n=this._taskExecutions.get(e.id);return n||(n=new R(this,e.id,t||k.to(e.task,this._workspaceService)),this._taskExecutions.set(e.id,n),n)},e}();t.ExtHostTask=A}),define(e[164],t([0,1,29,8,124,4,5,123,125]),function(e,t,r,i,o,a,u,c,l){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var f=-1,d=function(){function e(e,t){var n=this;this._proxy=e,this._disposed=!1,this._queuedRequests=[],this._idPromise=new Promise(function(e){void 0!==t?(n._id=t,
  e(t)):n._idPromiseComplete=e})}return e.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._queueApiRequest(this._proxy.$dispose,[]))},e.prototype._checkDisposed=function(){if(this._disposed)throw new Error("Terminal has already been disposed")},e.prototype._queueApiRequest=function(e,t){var n=new m(e,t);this._id?n.run(this._proxy,this._id):this._queuedRequests.push(n)},e.prototype._runQueuedRequests=function(e){var t=this;this._id=e,this._idPromiseComplete(e),this._queuedRequests.forEach(function(e){e.run(t._proxy,t._id)}),this._queuedRequests.length=0},e}();t.BaseExtHostTerminal=d;var h=function(e){function t(t,n,r,i){var o=e.call(this,t,r)||this;return o._name=n,o._onData=new a.Emitter,o._pidPromise=new Promise(function(e){i===f?e(void 0):o._pidPromiseComplete=e}),o}return n(t,e),Object.defineProperty(t.prototype,"onDidWriteData",{get:function(){var e=this;return this._idPromise.then(function(t){e._proxy.$registerOnDataListener(e._id)}),this._onData&&this._onData.event},enumerable:!0,
  configurable:!0}),t.prototype.create=function(e,t,n,r,i){var o=this;this._proxy.$createTerminal(this._name,e,t,n,r,i).then(function(e){o._runQueuedRequests(e)})},Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"processId",{get:function(){return this._pidPromise},enumerable:!0,configurable:!0}),t.prototype.sendText=function(e,t){void 0===t&&(t=!0),this._checkDisposed(),this._queueApiRequest(this._proxy.$sendText,[e,t])},t.prototype.show=function(e){this._checkDisposed(),this._queueApiRequest(this._proxy.$show,[e])},t.prototype.hide=function(){this._checkDisposed(),this._queueApiRequest(this._proxy.$hide,[])},t.prototype._setProcessId=function(e){this._pidPromiseComplete&&(this._pidPromiseComplete(e),this._pidPromiseComplete=null)},t.prototype._fireOnData=function(e){this._onData.fire(e)},t}(d);t.ExtHostTerminal=h;var p=function(e){function t(t,n,r){var i=e.call(this,t)||this
  ;return i._name=n,i._terminal=r,i._onInput=new a.Emitter,i._onDidChangeMaximumDimensions=new a.Emitter,i._proxy.$createTerminalRenderer(i._name).then(function(e){i._runQueuedRequests(e),i._terminal._runQueuedRequests(e)}),i}return n(t,e),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(e){this._name=e,this._checkDisposed(),this._queueApiRequest(this._proxy.$terminalRendererSetName,[this._name])},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidAcceptInput",{get:function(){return this._checkDisposed(),this._queueApiRequest(this._proxy.$terminalRendererRegisterOnInputListener,[this._id]),this._onInput&&this._onInput.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dimensions",{get:function(){return this._dimensions},set:function(e){this._checkDisposed(),this._dimensions=e,this._queueApiRequest(this._proxy.$terminalRendererSetDimensions,[e])},enumerable:!0,configurable:!0}),
  Object.defineProperty(t.prototype,"maximumDimensions",{get:function(){if(this._maximumDimensions)return{rows:this._maximumDimensions.rows,columns:this._maximumDimensions.columns}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onDidChangeMaximumDimensions",{get:function(){return this._onDidChangeMaximumDimensions&&this._onDidChangeMaximumDimensions.event},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"terminal",{get:function(){return this._terminal},enumerable:!0,configurable:!0}),t.prototype.write=function(e){this._checkDisposed(),this._queueApiRequest(this._proxy.$terminalRendererWrite,[e])},t.prototype._fireOnInput=function(e){this._onInput.fire(e)},t.prototype._setMaximumDimensions=function(e,t){this._maximumDimensions&&this._maximumDimensions.columns===e&&this._maximumDimensions.rows===t||(this._maximumDimensions={columns:e,rows:t},this._onDidChangeMaximumDimensions.fire(this.maximumDimensions))},t}(d);t.ExtHostTerminalRenderer=p;var g=function(){function e(e,t,n){
  this._extHostConfiguration=t,this._logService=n,this._terminals=[],this._terminalProcesses={},this._terminalRenderers=[],this._getTerminalPromises={},this._onDidCloseTerminal=new a.Emitter,this._onDidOpenTerminal=new a.Emitter,this._onDidChangeActiveTerminal=new a.Emitter,this._proxy=e.getProxy(u.MainContext.MainThreadTerminalService)}return Object.defineProperty(e.prototype,"activeTerminal",{get:function(){return this._activeTerminal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"terminals",{get:function(){return this._terminals},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidCloseTerminal",{get:function(){return this._onDidCloseTerminal&&this._onDidCloseTerminal.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidOpenTerminal",{get:function(){return this._onDidOpenTerminal&&this._onDidOpenTerminal.event},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"onDidChangeActiveTerminal",{get:function(){
  return this._onDidChangeActiveTerminal&&this._onDidChangeActiveTerminal.event},enumerable:!0,configurable:!0}),e.prototype.createTerminal=function(e,t,n){var r=new h(this._proxy,e);return r.create(t,n),this._terminals.push(r),r},e.prototype.createTerminalFromOptions=function(e){var t=new h(this._proxy,e.name);return t.create(e.shellPath,e.shellArgs,e.cwd,e.env),this._terminals.push(t),t},e.prototype.createTerminalRenderer=function(e){var t=new h(this._proxy,e);t._setProcessId(void 0),this._terminals.push(t);var n=new p(this._proxy,e,t);return this._terminalRenderers.push(n),n},e.prototype.$acceptActiveTerminalChanged=function(e){var t=this,n=this._activeTerminal;null===e&&(this._activeTerminal=void 0,n!==this._activeTerminal&&this._onDidChangeActiveTerminal.fire(this._activeTerminal)),this._performTerminalIdAction(e,function(e){e&&(t._activeTerminal=e,n!==t._activeTerminal&&t._onDidChangeActiveTerminal.fire(t._activeTerminal))})},e.prototype.$acceptTerminalProcessData=function(e,t){
  this._getTerminalByIdEventually(e).then(function(e){e&&e._fireOnData(t)})},e.prototype.$acceptTerminalRendererDimensions=function(e,t,n){var r=this._getTerminalRendererById(e);r&&r._setMaximumDimensions(t,n)},e.prototype.$acceptTerminalRendererInput=function(e,t){var n=this._getTerminalRendererById(e);n&&n._fireOnInput(t)},e.prototype.$acceptTerminalTitleChange=function(e,t){var n=this._getTerminalObjectById(this.terminals,e);n&&(n.name=t)},e.prototype.$acceptTerminalClosed=function(e){var t=this._getTerminalObjectIndexById(this.terminals,e);if(null!==t){var n=this._terminals.splice(t,1)[0];this._onDidCloseTerminal.fire(n)}},e.prototype.$acceptTerminalOpened=function(e,t){var n=this._getTerminalObjectIndexById(this._terminals,e);if(null===n){var r=this._getTerminalRendererById(e),i=new h(this._proxy,t,e,r?f:void 0);this._terminals.push(i),this._onDidOpenTerminal.fire(i)}else this._onDidOpenTerminal.fire(this.terminals[n])},e.prototype.$acceptTerminalProcessId=function(e,t){
  this._performTerminalIdAction(e,function(e){return e._setProcessId(t)})},e.prototype._performTerminalIdAction=function(e,t){var n=this,r=this._getTerminalById(e);r?t(r):setTimeout(function(){(r=n._getTerminalById(e))&&t(r)},c.EXT_HOST_CREATION_DELAY)},e.prototype.$createProcess=function(e,t,n,a){var u=this,c=this._extHostConfiguration.getConfiguration("terminal.integrated");if(!t.executable){var f=i.isWindows?"windows":i.isMacintosh?"osx":"linux",d=c.get("shell."+f),h=c.get("shellArgs."+f);t.executable=d,t.args=h}var p=r.homedir(),g=s({},process.env);o.mergeEnvironments(g,t.env);var m=c.get("setLocaleVariables")?i.locale:void 0;o.addTerminalEnvironmentKeys(g,i.isWindows,m),this._logService.debug("Terminal process launching on ext host",t,p,n,a,g),this._terminalProcesses[e]=new l.TerminalProcess(t,p,n,a,g),this._terminalProcesses[e].onProcessIdReady(function(t){return u._proxy.$sendProcessPid(e,t)}),this._terminalProcesses[e].onProcessTitleChanged(function(t){return u._proxy.$sendProcessTitle(e,t)}),
  this._terminalProcesses[e].onProcessData(function(t){return u._proxy.$sendProcessData(e,t)}),this._terminalProcesses[e].onProcessExit(function(t){return u._onProcessExit(e,t)})},e.prototype.$acceptProcessInput=function(e,t){this._terminalProcesses[e].input(t)},e.prototype.$acceptProcessResize=function(e,t,n){try{this._terminalProcesses[e].resize(t,n)}catch(e){if("EPIPE"!==e.code&&"ERR_IPC_CHANNEL_CLOSED"!==e.code)throw e}},e.prototype.$acceptProcessShutdown=function(e,t){this._terminalProcesses[e].shutdown(t)},e.prototype._onProcessExit=function(e,t){this._terminalProcesses[e].dispose(),delete this._terminalProcesses[e],this._proxy.$sendProcessExit(e,t)},e.prototype._getTerminalByIdEventually=function(e,t){var n=this;return void 0===t&&(t=5),this._getTerminalPromises[e]?this._getTerminalPromises[e].then(function(r){return n._createGetTerminalPromise(e,t)}):this._getTerminalPromises[e]=this._createGetTerminalPromise(e,t),this._getTerminalPromises[e]},e.prototype._delay=function(e,t){
  return new Promise(function(n){setTimeout(n(t),e)})},e.prototype._createGetTerminalPromise=function(e,t){var n=this;return void 0===t&&(t=5),new Promise(function(r){if(0!==t){var i=n._getTerminalById(e);i?r(i):n._delay(200,r(n._getTerminalByIdEventually(e,t-1)))}else r(void 0)})},e.prototype._getTerminalById=function(e){return this._getTerminalObjectById(this._terminals,e)},e.prototype._getTerminalRendererById=function(e){return this._getTerminalObjectById(this._terminalRenderers,e)},e.prototype._getTerminalObjectById=function(e,t){var n=this._getTerminalObjectIndexById(e,t);return null!==n?e[n]:null},e.prototype._getTerminalObjectIndexById=function(e,t){var n=null;return e.some(function(e,r){return e._id===t&&(n=r,!0)}),n},e}();t.ExtHostTerminalService=g;var m=function(){function e(e,t){this._callback=e,this._args=t}return e.prototype.run=function(e,t){this._callback.apply(e,[t].concat(this._args))},e}()}),define(e[165],t([0,1,4,12,7,18,59,5]),function(e,t,n,r,i,o,s,a){"use strict"
  ;Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t){var r=this;this._onDidChangeTextEditorSelection=new n.Emitter,this._onDidChangeTextEditorOptions=new n.Emitter,this._onDidChangeTextEditorVisibleRanges=new n.Emitter,this._onDidChangeTextEditorViewColumn=new n.Emitter,this._onDidChangeActiveTextEditor=new n.Emitter,this._onDidChangeVisibleTextEditors=new n.Emitter,this.onDidChangeTextEditorSelection=this._onDidChangeTextEditorSelection.event,this.onDidChangeTextEditorOptions=this._onDidChangeTextEditorOptions.event,this.onDidChangeTextEditorVisibleRanges=this._onDidChangeTextEditorVisibleRanges.event,this.onDidChangeTextEditorViewColumn=this._onDidChangeTextEditorViewColumn.event,this.onDidChangeActiveTextEditor=this._onDidChangeActiveTextEditor.event,this.onDidChangeVisibleTextEditors=this._onDidChangeVisibleTextEditors.event,this._proxy=e.getProxy(a.MainContext.MainThreadTextEditors),this._extHostDocumentsAndEditors=t,
  this._extHostDocumentsAndEditors.onDidChangeVisibleTextEditors(function(e){return r._onDidChangeVisibleTextEditors.fire(e)}),this._extHostDocumentsAndEditors.onDidChangeActiveTextEditor(function(e){return r._onDidChangeActiveTextEditor.fire(e)})}return e.prototype.getActiveTextEditor=function(){return this._extHostDocumentsAndEditors.activeEditor()},e.prototype.getVisibleTextEditors=function(){return this._extHostDocumentsAndEditors.allEditors()},e.prototype.showTextDocument=function(e,t,n){var r,i=this;return r="number"==typeof t?{position:o.ViewColumn.from(t),preserveFocus:n}:"object"==typeof t?{position:o.ViewColumn.from(t.viewColumn),preserveFocus:t.preserveFocus,selection:"object"==typeof t.selection?o.Range.from(t.selection):void 0,pinned:"boolean"==typeof t.preview?!t.preview:void 0}:{preserveFocus:!1},this._proxy.$tryShowTextDocument(e.uri,r).then(function(t){var n=i._extHostDocumentsAndEditors.getEditor(t);if(n)return n
  ;throw new Error("Failed to show text document "+e.uri.toString()+", should show in editor #"+t)})},e.prototype.createTextEditorDecorationType=function(e){return new s.TextEditorDecorationType(this._proxy,e)},e.prototype.applyWorkspaceEdit=function(e){var t=o.WorkspaceEdit.from(e,this._extHostDocumentsAndEditors);return this._proxy.$tryApplyWorkspaceEdit(t)},e.prototype.$acceptEditorPropertiesChanged=function(e,t){var n=this._extHostDocumentsAndEditors.getEditor(e);if(t.options&&n._acceptOptions(t.options),t.selections){s=t.selections.selections.map(o.Selection.to);n._acceptSelections(s)}if(t.visibleRanges){a=t.visibleRanges.map(o.Range.to);n._acceptVisibleRanges(a)}if(t.options&&this._onDidChangeTextEditorOptions.fire({textEditor:n,options:t.options}),t.selections){var r=i.TextEditorSelectionChangeKind.fromValue(t.selections.source),s=t.selections.selections.map(o.Selection.to);this._onDidChangeTextEditorSelection.fire({textEditor:n,selections:s,kind:r})}if(t.visibleRanges){
  var a=t.visibleRanges.map(o.Range.to);this._onDidChangeTextEditorVisibleRanges.fire({textEditor:n,visibleRanges:a})}},e.prototype.$acceptEditorPositionData=function(e){for(var t in e){var n=this._extHostDocumentsAndEditors.getEditor(t),r=o.ViewColumn.to(e[t]);n.viewColumn!==r&&(n._acceptViewColumn(r),this._onDidChangeTextEditorViewColumn.fire({textEditor:n,viewColumn:r}))}},e.prototype.getDiffInformation=function(e){return r.toThenable(this._proxy.$getDiffInformation(e))},e}();t.ExtHostEditors=u}),define(e[166],t([0,1,5,2,3,6,13]),function(e,t,n,r,i,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e){this.handles=new Set,this.handlers=new Map,this._proxy=e.getProxy(n.MainContext.MainThreadUrls)}return e.prototype.registerUriHandler=function(t,n){var r=this;if(this.handles.has(t))throw new Error("Protocol handler already registered for extension "+t);var i=e.HandlePool++;return this.handles.add(t),this.handlers.set(i,n),this._proxy.$registerUriHandler(i,t),
  o.toDisposable(function(){r.handles.delete(t),r.handlers.delete(i),r._proxy.$unregisterUriHandler(i)})},e.prototype.$handleExternalUri=function(e,t){var n=this.handlers.get(e);if(!n)return i.TPromise.as(null);try{n.handleUri(r.URI.revive(t))}catch(e){s.onUnexpectedError(e)}return i.TPromise.as(null)},e.HandlePool=0,e}();t.ExtHostUrls=a}),define(e[167],t([0,1,4,2,3,18,5,7]),function(e,t,n,r,i,o,s,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var u=function(){function e(e,t,r){this._isDisposed=!1,this._onMessageEmitter=new n.Emitter,this.onDidReceiveMessage=this._onMessageEmitter.event,this._handle=e,this._proxy=t,this._options=r}return e.prototype.dispose=function(){this._onMessageEmitter.dispose()},Object.defineProperty(e.prototype,"html",{get:function(){return this.assertNotDisposed(),this._html},set:function(e){this.assertNotDisposed(),this._html!==e&&(this._html=e,this._proxy.$setHtml(this._handle,e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{
  get:function(){return this.assertNotDisposed(),this._options},set:function(e){this.assertNotDisposed(),this._proxy.$setOptions(this._handle,e),this._options=e},enumerable:!0,configurable:!0}),e.prototype.postMessage=function(e){return this.assertNotDisposed(),this._proxy.$postMessage(this._handle,e)},e.prototype.assertNotDisposed=function(){if(this._isDisposed)throw new Error("Webview is disposed")},e}();t.ExtHostWebview=u;var c=function(){function e(e,t,r,i,o,s,a){this._isDisposed=!1,this._visible=!0,this._active=!0,this._onDisposeEmitter=new n.Emitter,this.onDidDispose=this._onDisposeEmitter.event,this._onDidChangeViewStateEmitter=new n.Emitter,this.onDidChangeViewState=this._onDidChangeViewStateEmitter.event,this._handle=e,this._proxy=t,this._viewType=r,this._options=s,this._viewColumn=o,this._title=i,this._webview=a}return e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this._onDisposeEmitter.fire(),this._proxy.$disposeWebview(this._handle),this._webview.dispose(),
  this._onDisposeEmitter.dispose(),this._onDidChangeViewStateEmitter.dispose())},Object.defineProperty(e.prototype,"webview",{get:function(){return this.assertNotDisposed(),this._webview},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"viewType",{get:function(){return this.assertNotDisposed(),this._viewType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.assertNotDisposed(),this._title},set:function(e){this.assertNotDisposed(),this._title!==e&&(this._title=e,this._proxy.$setTitle(this._handle,e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"iconPath",{get:function(){return this.assertNotDisposed(),this._iconPath},set:function(e){this.assertNotDisposed(),this._iconPath!==e&&(this._iconPath=e,this._proxy.$setIconPath(this._handle,r.URI.isUri(e)?{light:e,dark:e}:e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this._options},enumerable:!0,configurable:!0}),
  Object.defineProperty(e.prototype,"viewColumn",{get:function(){return this.assertNotDisposed(),this._viewColumn},enumerable:!0,configurable:!0}),e.prototype._setViewColumn=function(e){this.assertNotDisposed(),this._viewColumn=e},Object.defineProperty(e.prototype,"active",{get:function(){return this.assertNotDisposed(),this._active},enumerable:!0,configurable:!0}),e.prototype._setActive=function(e){this.assertNotDisposed(),this._active=e},Object.defineProperty(e.prototype,"visible",{get:function(){return this.assertNotDisposed(),this._visible},enumerable:!0,configurable:!0}),e.prototype._setVisible=function(e){this.assertNotDisposed(),this._visible=e},e.prototype.postMessage=function(e){return this.assertNotDisposed(),this._proxy.$postMessage(this._handle,e)},e.prototype.reveal=function(e,t){this.assertNotDisposed(),this._proxy.$reveal(this._handle,{viewColumn:e?o.ViewColumn.from(e):void 0,preserveFocus:!!t})},e.prototype.assertNotDisposed=function(){if(this._isDisposed)throw new Error("Webview is disposed")},
  e}();t.ExtHostWebviewPanel=c;var l=function(){function e(e){this._webviewPanels=new Map,this._serializers=new Map,this._proxy=e.getProxy(s.MainContext.MainThreadWebviews)}return e.newHandle=function(){return e.webviewHandlePool+++""},e.prototype.createWebview=function(t,n,r,i,s){void 0===s&&(s={});var a="object"==typeof i?i.viewColumn:i,l={viewColumn:o.ViewColumn.from(a),preserveFocus:"object"==typeof i&&!!i.preserveFocus},f=e.newHandle();this._proxy.$createWebviewPanel(f,n,r,l,s,t);var d=new u(f,this._proxy,s),h=new c(f,this._proxy,n,r,a,s,d);return this._webviewPanels.set(f,h),h},e.prototype.registerWebviewPanelSerializer=function(e,t){var n=this;if(this._serializers.has(e))throw new Error("Serializer for '"+e+"' already registered");return this._serializers.set(e,t),this._proxy.$registerSerializer(e),new a.Disposable(function(){n._serializers.delete(e),n._proxy.$unregisterSerializer(e)})},e.prototype.$onMessage=function(e,t){var n=this.getWebviewPanel(e);n&&n.webview._onMessageEmitter.fire(t)},
  e.prototype.$onDidChangeWebviewPanelViewState=function(e,t){var n=this.getWebviewPanel(e);if(n){var r=o.ViewColumn.to(t.position);n.active===t.active&&n.visible===t.visible&&n.viewColumn===r||(n._setActive(t.active),n._setVisible(t.visible),n._setViewColumn(r),n._onDidChangeViewStateEmitter.fire({webviewPanel:n}))}},e.prototype.$onDidDisposeWebviewPanel=function(e){var t=this.getWebviewPanel(e);return t&&(t.dispose(),this._webviewPanels.delete(e)),i.TPromise.as(void 0)},e.prototype.$deserializeWebviewPanel=function(e,t,n,r,s,a){var l=this._serializers.get(t);if(!l)return i.TPromise.wrapError(new Error("No serializer found for '"+t+"'"));var f=new u(e,this._proxy,a),d=new c(e,this._proxy,t,n,o.ViewColumn.to(s),a,f);return this._webviewPanels.set(e,d),l.deserializeWebviewPanel(d,r)},e.prototype.getWebviewPanel=function(e){return this._webviewPanels.get(e)},e.webviewHandlePool=1,e}();t.ExtHostWebviews=l}),define(e[168],t([0,1,4,5]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0})
  ;var i=function(){function e(t){var i=this;this._onDidChangeWindowState=new n.Emitter,this.onDidChangeWindowState=this._onDidChangeWindowState.event,this._state=e.InitialState,this._proxy=t.getProxy(r.MainContext.MainThreadWindow),this._proxy.$getWindowVisibility().then(function(e){return i.$onDidChangeWindowFocus(e)})}return Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),e.prototype.$onDidChangeWindowFocus=function(e){e!==this._state.focused&&(this._state=s({},this._state,{focused:e}),this._onDidChangeWindowState.fire(this._state))},e.InitialState={focused:!0},e}();t.ExtHostWindow=i}),define(e[169],t([0,1,4,40,8,13,50,49,153,151,150,149,134,147,117,158,135,159,112,161,143,157,164,156,165,155,154,133,163,62,168,7,2,25,3,17,19,95,5,136,71,148,152,146,18,31,42,167,144,160,166,76]),function(e,t,n,r,s,a,u,c,l,f,d,h,p,g,m,v,y,_,b,C,S,x,w,E,P,T,D,k,I,O,R,A,L,M,F,N,H,W,j,B,U,z,K,V,$,q,G,J,Q,Y,X,Z){"use strict";function ee(e){e.enableProposedApi||te(e)}
  function te(e){throw new Error("["+e.id+"]: Proposed API is only available when running out of dev or with the following command line switch: --enable-proposed-api "+e.id)}function ne(e,t){return e.enableProposedApi?t:te.bind(null,e)}function re(e){var t=e.fsPath;return/^[a-zA-Z]:/.test(t)&&e.path.charAt(1).toLowerCase()===t.charAt(0)?e.path.charAt(1)+t.substr(1):t}function ie(t,n){return t.getExtensionPathIndex().then(function(t){return function(t,n){var r,i=new Map,o=e.__$__nodeRequire("module"),s=o._load;o._load=function(e,o,a){if("vscode"!==e)return s.apply(this,arguments);var u=n.findSubstr(L.URI.file(o.filename).fsPath);if(u){var c=i.get(u.id);return c||(c=t(u),i.set(u.id,c)),c}if(!r){var l="";n.forEach(function(e,t){return l+="\t"+t+" -> "+e.id+"\n"}),console.warn("Could not identify extension for 'vscode' require call from "+o.filename+". These are the extension path mappings: \n"+l),r=t(se)}return r}}(n,t)})}Object.defineProperty(t,"__esModule",{value:!0}),t.checkProposedApiEnabled=ee,
  t.createApiFactory=function(e,t,H,q,re,ie){t.set(j.ExtHostContext.ExtHostLogService,ie)
  ;var se=t.set(j.ExtHostContext.ExtHostHeapService,new b.ExtHostHeapService),ae=t.set(j.ExtHostContext.ExtHostDecorations,new V.ExtHostDecorations(t)),ue=t.set(j.ExtHostContext.ExtHostWebviews,new J.ExtHostWebviews(t)),ce=t.set(j.ExtHostContext.ExtHostUrls,new X.ExtHostUrls(t)),le=t.set(j.ExtHostContext.ExtHostDocumentsAndEditors,new f.ExtHostDocumentsAndEditors(t)),fe=t.set(j.ExtHostContext.ExtHostDocuments,new d.ExtHostDocuments(t,le)),de=t.set(j.ExtHostContext.ExtHostDocumentContentProviders,new h.ExtHostDocumentContentProvider(t,le,ie)),he=t.set(j.ExtHostContext.ExtHostDocumentSaveParticipant,new p.ExtHostDocumentSaveParticipant(ie,fe,t.getProxy(j.MainContext.MainThreadTextEditors))),pe=t.set(j.ExtHostContext.ExtHostEditors,new P.ExtHostEditors(t,le)),ge=t.set(j.ExtHostContext.ExtHostCommands,new S.ExtHostCommands(t,se,ie)),me=t.set(j.ExtHostContext.ExtHostTreeViews,new m.ExtHostTreeViews(t.getProxy(j.MainContext.MainThreadTreeViews),ge,ie));t.set(j.ExtHostContext.ExtHostWorkspace,H),
  t.set(j.ExtHostContext.ExtHostConfiguration,q);var ve=t.set(j.ExtHostContext.ExtHostDiagnostics,new g.ExtHostDiagnostics(t)),ye=t.set(j.ExtHostContext.ExtHostLanguageFeatures,new D.ExtHostLanguageFeatures(t,null,fe,ge,se,ve,ie)),_e=t.set(j.ExtHostContext.ExtHostFileSystem,new K.ExtHostFileSystem(t,ye)),be=t.set(j.ExtHostContext.ExtHostFileSystemEventService,new l.ExtHostFileSystemEventService(t,le)),Ce=t.set(j.ExtHostContext.ExtHostQuickOpen,new v.ExtHostQuickOpen(t,H,ge)),Se=t.set(j.ExtHostContext.ExtHostTerminalService,new w.ExtHostTerminalService(t,q,ie)),xe=t.set(j.ExtHostContext.ExtHostDebugService,new O.ExtHostDebugService(t,H,re,le,q,Se,ge)),we=t.set(j.ExtHostContext.ExtHostSCM,new _.ExtHostSCM(t,ge,ie)),Ee=t.set(j.ExtHostContext.ExtHostSearch,new Y.ExtHostSearch(t,null)),Pe=t.set(j.ExtHostContext.ExtHostTask,new I.ExtHostTask(t,H,le,q)),Te=t.set(j.ExtHostContext.ExtHostWindow,new R.ExtHostWindow(t));t.set(j.ExtHostContext.ExtHostExtensionService,re)
  ;var De=t.set(j.ExtHostContext.ExtHostProgress,new y.ExtHostProgress(t.getProxy(j.MainContext.MainThreadProgress))),ke=t.set(j.ExtHostContext.ExtHostComments,new Q.ExtHostComments(t,ge.converter,fe)),Ie=t.set(j.ExtHostContext.ExtHostOutputService,new x.ExtHostOutputService(e.logsLocation,t)),Oe=Object.keys(j.ExtHostContext).map(function(e){return j.ExtHostContext[e]});t.assertRegistered(Oe);var Re=new E.ExtHostMessageService(t),Ae=new z.ExtHostDialogs(t),Le=new C.ExtHostStatusBar(t),Me=new T.ExtHostLanguages(t,fe);return Ie.createOutputChannelFromLogFile(Z.localize(0,null),ie.logFile),k.ExtHostApiCommands.register(ge),function(t){var l=this,f=function(){function e(e){n||(console.info("Extension '"+t.id+"' uses a document selector without scheme. Learn more about this: https://go.microsoft.com/fwlink/?linkid=872305"),n=!0)}var n=!t.isUnderDevelopment;return function n(r){return Array.isArray(r)?r.forEach(n):"string"==typeof r?e():(void 0===r.scheme&&e(),
  t.enableProposedApi||"boolean"!=typeof r.exclusive||te(t)),r}}(),d={registerCommand:function(e,t,n){return ge.registerCommand(!0,e,t,n)},registerTextEditorCommand:function(e,t,n){return ge.registerCommand(!0,e,function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=pe.getActiveTextEditor();if(o)return o.edit(function(e){r.unshift(o,e),t.apply(n,r)}).then(function(t){t||console.warn("Edits from command "+e+" were not applied.")},function(t){console.warn("An error occurred while running command "+e,t)});console.warn("Cannot execute "+e+" because there is no active text editor.")})},registerDiffInformationCommand:ne(t,function(e,t,n){return ge.registerCommand(!0,e,function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];return i(l,void 0,void 0,function(){var i,s;return o(this,function(o){switch(o.label){case 0:return(i=pe.getActiveTextEditor())?[4,pe.getDiffInformation(i.id)]:(console.warn("Cannot execute "+e+" because there is no active text editor."),[2,void 0]);case 1:
  return s=o.sent(),t.apply(n,[s].concat(r)),[2]}})})})}),executeCommand:function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return ge.executeCommand.apply(ge,[e].concat(t))},getCommands:function(e){return void 0===e&&(e=!1),ge.getCommands(e)}},h=Object.freeze({get machineId(){return e.telemetryInfo.machineId},get sessionId(){return e.telemetryInfo.sessionId},get language(){return s.language},get appName(){return u.default.nameLong},get appRoot(){return e.environment.appRoot.fsPath},get logLevel(){return ee(t),ie.getLevel()},get onDidChangeLogLevel(){return ee(t),ie.onDidChangeLogLevel}}),p={getExtension:function(e){var t=re.getExtensionDescription(e);if(t)return new oe(re,t)},get all(){return re.getAllExtensionDescriptions().map(function(e){return new oe(re,e)})}},g={createDiagnosticCollection:function(e){return ve.createDiagnosticCollection(e)},get onDidChangeDiagnostics(){return ve.onDidChangeDiagnostics},getDiagnostics:function(e){return ve.getDiagnostics(e)},getLanguages:function(){
  return Me.getLanguages()},setTextDocumentLanguage:function(e,t){return Me.changeLanguage(e.uri,t)},match:function(e,t){return r.score($.LanguageSelector.from(e),t.uri,t.languageId,!0)},registerCodeActionsProvider:function(e,n,r){return ye.registerCodeActionProvider(f(e),n,t,r)},registerCodeLensProvider:function(e,t){return ye.registerCodeLensProvider(f(e),t)},registerDefinitionProvider:function(e,t){return ye.registerDefinitionProvider(f(e),t)},registerImplementationProvider:function(e,t){return ye.registerImplementationProvider(f(e),t)},registerTypeDefinitionProvider:function(e,t){return ye.registerTypeDefinitionProvider(f(e),t)},registerHoverProvider:function(e,n){return ye.registerHoverProvider(f(e),n,t.id)},registerDocumentHighlightProvider:function(e,t){return ye.registerDocumentHighlightProvider(f(e),t)},registerReferenceProvider:function(e,t){return ye.registerReferenceProvider(f(e),t)},registerRenameProvider:function(e,t){return ye.registerRenameProvider(f(e),t)},
  registerDocumentSymbolProvider:function(e,n){return ye.registerDocumentSymbolProvider(f(e),n,t)},registerWorkspaceSymbolProvider:function(e){return ye.registerWorkspaceSymbolProvider(e)},registerDocumentFormattingEditProvider:function(e,t){return ye.registerDocumentFormattingEditProvider(f(e),t)},registerDocumentRangeFormattingEditProvider:function(e,t){return ye.registerDocumentRangeFormattingEditProvider(f(e),t)},registerOnTypeFormattingEditProvider:function(e,t,n){for(var r=[],i=3;i<arguments.length;i++)r[i-3]=arguments[i];return ye.registerOnTypeFormattingEditProvider(f(e),t,[n].concat(r))},registerSignatureHelpProvider:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return ye.registerSignatureHelpProvider(f(e),t,n)},registerCompletionItemProvider:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return ye.registerCompletionItemProvider(f(e),t,n)},registerDocumentLinkProvider:function(e,t){return ye.registerDocumentLinkProvider(f(e),t)},
  registerColorProvider:function(e,t){return ye.registerColorProvider(f(e),t)},registerFoldingRangeProvider:function(e,t){return ye.registerFoldingRangeProvider(f(e),t)},setLanguageConfiguration:function(e,t){return ye.setLanguageConfiguration(e,t)}},m={get activeTextEditor(){return pe.getActiveTextEditor()},get visibleTextEditors(){return pe.getVisibleTextEditors()},get activeTerminal(){return ne(t,Se.activeTerminal)},get terminals(){return Se.terminals},showTextDocument:function(e,t,n){return(L.URI.isUri(e)?F.TPromise.wrap(v.openTextDocument(e)):F.TPromise.wrap(e)).then(function(e){return pe.showTextDocument(e,t,n)})},createTextEditorDecorationType:function(e){return pe.createTextEditorDecorationType(e)},onDidChangeActiveTextEditor:function(e,t,n){return pe.onDidChangeActiveTextEditor(e,t,n)},onDidChangeVisibleTextEditors:function(e,t,n){return pe.onDidChangeVisibleTextEditors(e,t,n)},onDidChangeTextEditorSelection:function(e,t,n){return pe.onDidChangeTextEditorSelection(e,t,n)},
  onDidChangeTextEditorOptions:function(e,t,n){return pe.onDidChangeTextEditorOptions(e,t,n)},onDidChangeTextEditorVisibleRanges:function(e,t,n){return pe.onDidChangeTextEditorVisibleRanges(e,t,n)},onDidChangeTextEditorViewColumn:function(e,t,n){return pe.onDidChangeTextEditorViewColumn(e,t,n)},onDidCloseTerminal:function(e,t,n){return Se.onDidCloseTerminal(e,t,n)},onDidOpenTerminal:function(e,t,n){return Se.onDidOpenTerminal(e,t,n)},onDidChangeActiveTerminal:ne(t,function(e,t,n){return Se.onDidChangeActiveTerminal(e,t,n)}),get state(){return Te.state},onDidChangeWindowState:function(e,t,n){return Te.onDidChangeWindowState(e,t,n)},showInformationMessage:function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return Re.showMessage(t,M.default.Info,e,n,r)},showWarningMessage:function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return Re.showMessage(t,M.default.Warning,e,n,r)},showErrorMessage:function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i]
  ;return Re.showMessage(t,M.default.Error,e,n,r)},showQuickPick:function(e,n,r){return Ce.showQuickPick(e,t.enableProposedApi,n,r)},showWorkspaceFolderPick:function(e){return Ce.showWorkspaceFolderPick(e)},showInputBox:function(e,t){return Ce.showInput(e,t)},showOpenDialog:function(e){return Ae.showOpenDialog(e)},showSaveDialog:function(e){return Ae.showSaveDialog(e)},createStatusBarItem:function(e,n){return Le.createStatusBarEntry(t.id,e,n)},setStatusBarMessage:function(e,t){return Le.setStatusBarMessage(e,t)},withScmProgress:function(e){return console.warn("[Deprecation Warning] function 'withScmProgress' is deprecated and should no longer be used. Use 'withProgress' instead."),De.withProgress(t,{location:A.ProgressLocation.SourceControl},function(t,n){return e({report:function(e){}})})},withProgress:function(e,n){return De.withProgress(t,e,n)},createOutputChannel:function(e){return Ie.createOutputChannel(e)},createWebviewPanel:function(e,n,r,i){return ue.createWebview(t.extensionLocation,e,n,r,i)},
  createTerminal:function(e,t,n){return"object"==typeof e?Se.createTerminalFromOptions(e):Se.createTerminal(e,t,n)},createTerminalRenderer:ne(t,function(e){return Se.createTerminalRenderer(e)}),registerTreeDataProvider:function(e,t){return me.registerTreeDataProvider(e,t)},createTreeView:function(e,t){return me.createTreeView(e,t)},registerWebviewPanelSerializer:function(e,t){return ue.registerWebviewPanelSerializer(e,t)},sampleFunction:ne(t,function(){return Re.showMessage(t,M.default.Info,"Hello Proposed Api!",{},[])}),registerDecorationProvider:ne(t,function(e){return ae.registerDecorationProvider(e,t.id)}),registerUriHandler:function(e){return ce.registerUriHandler(t.id,e)},createQuickPick:function(){return Ce.createQuickPick(t.id)},createInputBox:function(){return Ce.createInputBox(t.id)}},v={get rootPath(){return H.getPath()},set rootPath(e){throw a.readonly()},getWorkspaceFolder:function(e){return H.getWorkspaceFolder(e)},get workspaceFolders(){return H.getWorkspaceFolders()},get name(){return H.name},
  set name(e){throw a.readonly()},updateWorkspaceFolders:function(e,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return H.updateWorkspaceFolders.apply(H,[t,e,n||0].concat(r))},onDidChangeWorkspaceFolders:function(e,t,n){return H.onDidChangeWorkspace(e,t,n)},asRelativePath:function(e,t){return H.getRelativePath(e,t)},findFiles:function(e,n,r,i){return H.findFiles($.GlobPattern.from(e),$.GlobPattern.from(n),r,t.id,i)},findTextInFiles:function(e,n,r,i){var o,s;return"object"==typeof n?(o=n,s=r):(o={},s=n,i=r),H.findTextInFiles(e,o||{},s,t.id,i)},saveAll:function(e){return H.saveAll(e)},applyEdit:function(e){return pe.applyWorkspaceEdit(e)},createFileSystemWatcher:function(e,t,n,r){return be.createFileSystemWatcher($.GlobPattern.from(e),t,n,r)},get textDocuments(){return fe.getAllDocumentData().map(function(e){return e.document})},set textDocuments(e){throw a.readonly()},openTextDocument:function(e){var t,n=e
  ;if("string"==typeof e)t=F.TPromise.as(L.URI.file(e));else if(e instanceof L.URI)t=F.TPromise.as(e);else{if(n&&"object"!=typeof n)throw new Error("illegal argument - uriOrFileNameOrOptions");t=fe.createDocumentData(n)}return t.then(function(e){return fe.ensureDocumentData(e).then(function(){var t=fe.getDocumentData(e);return t&&t.document})})},onDidOpenTextDocument:function(e,t,n){return fe.onDidAddDocument(e,t,n)},onDidCloseTextDocument:function(e,t,n){return fe.onDidRemoveDocument(e,t,n)},onDidChangeTextDocument:function(e,t,n){return fe.onDidChangeDocument(e,t,n)},onDidSaveTextDocument:function(e,t,n){return fe.onDidSaveDocument(e,t,n)},onWillSaveTextDocument:function(e,n,r){return he.getOnWillSaveTextDocumentEvent(t)(e,n,r)},onDidChangeConfiguration:function(e,t,n){return q.onDidChangeConfiguration(e,t,n)},getConfiguration:function(e,n){return n=1===arguments.length?void 0:n,q.getConfiguration(e,n,t.id)},registerTextDocumentContentProvider:function(e,t){return de.registerTextDocumentContentProvider(e,t)},
  registerTaskProvider:function(e,n){return Pe.registerTaskProvider(t,n)},registerFileSystemProvider:function(e,t,n){return _e.registerFileSystemProvider(e,t,n)},registerFileSearchProvider:ne(t,function(e,t){return Ee.registerFileSearchProvider(e,t)}),registerSearchProvider:ne(t,function(){return{dispose:function(){}}}),registerTextSearchProvider:ne(t,function(e,t){return Ee.registerTextSearchProvider(e,t)}),registerFileIndexProvider:ne(t,function(e,t){return Ee.registerFileIndexProvider(e,t)}),registerDocumentCommentProvider:ne(t,function(e){return ke.registerDocumentCommentProvider(e)}),registerWorkspaceCommentProvider:ne(t,function(e){return ke.registerWorkspaceCommentProvider(e)}),onDidRenameFile:ne(t,function(e,t,n){return be.onDidRenameFile(e,t,n)}),onWillRenameFile:ne(t,function(e,n,r){return be.getOnWillRenameFileEvent(t)(e,n,r)})},y={get inputBox(){return we.getLastInputBox(t)},createSourceControl:function(e,n,r){return we.createSourceControl(t,e,n,r)}},_={get activeDebugSession(){
  return xe.activeDebugSession},get activeDebugConsole(){return xe.activeDebugConsole},get breakpoints(){return xe.breakpoints},onDidStartDebugSession:function(e,t,n){return xe.onDidStartDebugSession(e,t,n)},onDidTerminateDebugSession:function(e,t,n){return xe.onDidTerminateDebugSession(e,t,n)},onDidChangeActiveDebugSession:function(e,t,n){return xe.onDidChangeActiveDebugSession(e,t,n)},onDidReceiveDebugSessionCustomEvent:function(e,t,n){return xe.onDidReceiveDebugSessionCustomEvent(e,t,n)},onDidChangeBreakpoints:function(e,t,n){return xe.onDidChangeBreakpoints(e,t,n)},registerDebugConfigurationProvider:function(e,n){return xe.registerDebugConfigurationProvider(t,e,n)},startDebugging:function(e,t){return xe.startDebugging(e,t)},addBreakpoints:function(e){return xe.addBreakpoints(e)},removeBreakpoints:function(e){return xe.removeBreakpoints(e)}},b={registerTaskProvider:function(e,n){return Pe.registerTaskProvider(t,n)},fetchTasks:function(e){return Pe.fetchTasks(e)},executeTask:function(e){
  return Pe.executeTask(t,e)},get taskExecutions(){return Pe.taskExecutions},onDidStartTask:function(e,t,n){return Pe.onDidStartTask(e,t,n)},onDidEndTask:function(e,t,n){return Pe.onDidEndTask(e,t,n)},onDidStartTaskProcess:function(e,t,n){return Pe.onDidStartTaskProcess(e,t,n)},onDidEndTaskProcess:function(e,t,n){return Pe.onDidEndTaskProcess(e,t,n)}};return{version:c.default.version,commands:d,debug:_,env:h,extensions:p,languages:g,scm:y,tasks:b,window:m,workspace:v,Breakpoint:A.Breakpoint,CancellationTokenSource:N.CancellationTokenSource,CodeAction:A.CodeAction,CodeActionKind:A.CodeActionKind,CodeActionTrigger:A.CodeActionTrigger,CodeLens:A.CodeLens,Color:A.Color,ColorInformation:A.ColorInformation,ColorPresentation:A.ColorPresentation,CommentThreadCollapsibleState:A.CommentThreadCollapsibleState,CompletionItem:A.CompletionItem,CompletionItemKind:A.CompletionItemKind,CompletionList:A.CompletionList,CompletionTriggerKind:A.CompletionTriggerKind,ConfigurationTarget:A.ConfigurationTarget,
  DebugAdapterExecutable:A.DebugAdapterExecutable,DebugAdapterServer:A.DebugAdapterServer,DebugAdapterImplementation:A.DebugAdapterImplementation,DecorationRangeBehavior:A.DecorationRangeBehavior,Diagnostic:A.Diagnostic,DiagnosticRelatedInformation:A.DiagnosticRelatedInformation,DiagnosticSeverity:A.DiagnosticSeverity,DiagnosticTag:A.DiagnosticTag,Disposable:A.Disposable,DocumentHighlight:A.DocumentHighlight,DocumentHighlightKind:A.DocumentHighlightKind,DocumentLink:A.DocumentLink,DocumentSymbol:A.DocumentSymbol,EndOfLine:A.EndOfLine,EventEmitter:n.Emitter,FileChangeType:A.FileChangeType,FileSystemError:A.FileSystemError,FileType:W.FileType,FoldingRange:A.FoldingRange,FoldingRangeKind:A.FoldingRangeKind,FunctionBreakpoint:A.FunctionBreakpoint,Hover:A.Hover,IndentAction:B.IndentAction,Location:A.Location,LogLevel:A.LogLevel,MarkdownString:A.MarkdownString,OverviewRulerLane:G.OverviewRulerLane,ParameterInformation:A.ParameterInformation,Position:A.Position,ProcessExecution:A.ProcessExecution,
  ProgressLocation:A.ProgressLocation,QuickInputButtons:A.QuickInputButtons,Range:A.Range,RelativePattern:A.RelativePattern,Selection:A.Selection,ShellExecution:A.ShellExecution,ShellQuoting:A.ShellQuoting,SignatureHelpTriggerReason:A.SignatureHelpTriggerReason,SignatureHelp:A.SignatureHelp,SignatureInformation:A.SignatureInformation,SnippetString:A.SnippetString,SourceBreakpoint:A.SourceBreakpoint,SourceControlInputBoxValidationType:A.SourceControlInputBoxValidationType,StatusBarAlignment:A.StatusBarAlignment,SymbolInformation:A.SymbolInformation,SymbolKind:A.SymbolKind,Task:A.Task,TaskGroup:A.TaskGroup,TaskPanelKind:A.TaskPanelKind,TaskRevealKind:A.TaskRevealKind,TaskScope:A.TaskScope,TextDocumentSaveReason:A.TextDocumentSaveReason,TextEdit:A.TextEdit,TextEditorCursorStyle:U.TextEditorCursorStyle,TextEditorLineNumbersStyle:A.TextEditorLineNumbersStyle,TextEditorRevealType:A.TextEditorRevealType,TextEditorSelectionChangeKind:A.TextEditorSelectionChangeKind,ThemeColor:A.ThemeColor,ThemeIcon:A.ThemeIcon,
  TreeItem:A.TreeItem,TreeItemCollapsibleState:A.TreeItemCollapsibleState,Uri:L.URI,ViewColumn:A.ViewColumn,WorkspaceEdit:A.WorkspaceEdit}}},t.originalFSPath=re;var oe=function(){function e(e,t){this._extensionService=e,this.id=t.id,this.extensionPath=H.normalize(re(t.extensionLocation),!0),this.packageJSON=t}return Object.defineProperty(e.prototype,"isActive",{get:function(){return this._extensionService.isActivated(this.id)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exports",{get:function(){return this._extensionService.getExtensionExports(this.id)},enumerable:!0,configurable:!0}),e.prototype.activate=function(){var e=this;return this._extensionService.activateByIdWithErrors(this.id,new q.ExtensionActivatedByAPI(!1)).then(function(){return e.exports})},e}();t.initializeExtensionApi=ie;var se={id:"nullExtensionDescription",name:"Null Extension Description",publisher:"vscode",activationEvents:void 0,contributes:void 0,enableProposedApi:!1,engines:void 0,extensionDependencies:void 0,
  extensionLocation:void 0,isBuiltin:!1,isUnderDevelopment:!1,main:void 0,version:void 0}}),define(e[126],t([0,1,6,20,30,25,3,139,162,169,5,31,21,12,2]),function(e,t,n,r,s,a,u,c,l,f,d,h,p,g,m){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var v=function(){function e(e,t,n){var r=this;this._id=e,this._shared=t,this._storage=n,this._init=this._storage.getValue(this._shared,this._id,Object.create(null)).then(function(e){return r._value=e,r})}return Object.defineProperty(e.prototype,"whenReady",{get:function(){return this._init},enumerable:!0,configurable:!0}),e.prototype.get=function(e,t){var n=this._value[e];return void 0===n&&(n=t),n},e.prototype.update=function(e,t){return this._value[e]=t,this._storage.setValue(this._shared,this._id,this._value).then(function(){return!0})},e}(),y=function(){function e(e,t){var n=this;this._workspace=e,this._environment=t,this._ready=this._getOrCreateWorkspaceStoragePath().then(function(e){return n._value=e})}
  return Object.defineProperty(e.prototype,"whenReady",{get:function(){return this._ready},enumerable:!0,configurable:!0}),e.prototype.value=function(e){if(this._value)return r.join(this._value,e.id)},e.prototype._getOrCreateWorkspaceStoragePath=function(){return i(this,void 0,void 0,function(){var e,t,n,i;return o(this,function(o){switch(o.label){case 0:return this._workspace?(e=this._workspace.id,t=r.join(this._environment.appSettingsHome.fsPath,"workspaceStorage",e),[4,s.dirExists(t)]):[2,u.TPromise.as(void 0)];case 1:if(n=o.sent())return[2,t];o.label=2;case 2:return o.trys.push([2,5,,6]),[4,s.mkdirp(t)];case 3:return o.sent(),[4,s.writeFile(r.join(t,"meta.json"),JSON.stringify({id:this._workspace.id,configuration:this._workspace.configuration&&m.URI.revive(this._workspace.configuration).toString(),name:this._workspace.name},void 0,2))];case 4:return o.sent(),[2,t];case 5:return i=o.sent(),console.error(i),[2,void 0];case 6:return[2]}})})},e}(),_=function(){function t(e,t,n,r,i){var o=this
  ;this._barrier=new g.Barrier,this._registry=new c.ExtensionDescriptionRegistry(e.extensions),this._extHostLogService=i,this._mainThreadTelemetry=t.getProxy(d.MainContext.MainThreadTelemetry),this._storage=new l.ExtHostStorage(t),this._storagePath=new y(e.workspace,e.environment),this._proxy=t.getProxy(d.MainContext.MainThreadExtensionService),this._activator=null;var s=f.createApiFactory(e,t,n,r,this,this._extHostLogService);f.initializeExtensionApi(this,s).then(function(){o._activator=new h.ExtensionsActivator(o._registry,{showMessage:function(e,t){switch(o._proxy.$localShowMessage(e,t),e){case a.default.Error:console.error(t);break;case a.default.Warning:console.warn(t);break;default:console.log(t)}},actualActivateExtension:function(e,t){return o._activateExtension(e,t)}}),o._barrier.open()})}return t.prototype.onExtensionAPIReady=function(){return this._barrier.wait()},t.prototype.isActivated=function(e){return!!this._barrier.isOpen()&&this._activator.isActivated(e)},
  t.prototype.activateByEvent=function(e,t){var n=this,r=new h.ExtensionActivatedByEvent(t,e);return this._barrier.isOpen()?this._activator.activateByEvent(e,r):this._barrier.wait().then(function(){return n._activator.activateByEvent(e,r)})},t.prototype.activateById=function(e,t){var n=this;return this._barrier.isOpen()?this._activator.activateById(e,t):this._barrier.wait().then(function(){return n._activator.activateById(e,t)})},t.prototype.activateByIdWithErrors=function(e,t){var n=this;return this.activateById(e,t).then(function(){var t=n._activator.getActivatedExtension(e);if(t.activationFailed)return u.TPromise.wrapError(t.activationFailedError)})},t.prototype.getAllExtensionDescriptions=function(){return this._registry.getAllExtensionDescriptions()},t.prototype.getExtensionDescription=function(e){return this._registry.getExtensionDescription(e)},t.prototype.getExtensionExports=function(e){return this._barrier.isOpen()?this._activator.getActivatedExtension(e).exports:null},
  t.prototype.getExtensionPathIndex=function(){if(!this._extensionPathIndex){var e=p.TernarySearchTree.forPaths(),t=this.getAllExtensionDescriptions().map(function(t){if(t.main)return s.realpath(t.extensionLocation.fsPath).then(function(n){return e.set(m.URI.file(n).fsPath,t)})});this._extensionPathIndex=u.TPromise.join(t).then(function(){return e})}return this._extensionPathIndex},t.prototype.deactivate=function(e){var t=u.TPromise.as(void 0);if(!this._barrier.isOpen())return t;if(!this._activator.isActivated(e))return t;var r=this._activator.getActivatedExtension(e);if(!r)return t;try{"function"==typeof r.module.deactivate&&(t=u.TPromise.wrap(r.module.deactivate()).then(null,function(e){return u.TPromise.as(void 0)}))}catch(e){}try{n.dispose(r.subscriptions)}catch(e){}return t},t.prototype.addMessage=function(e,t,n){this._proxy.$addMessage(e,t,n)},t.prototype._activateExtension=function(e,t){var n=this;return this._doActivateExtension(e,t).then(function(r){
  var i=r.activationTimes,o=t instanceof h.ExtensionActivatedByEvent?t.activationEvent:null;return n._proxy.$onExtensionActivated(e.id,i.startup,i.codeLoadingTime,i.activateCallTime,i.activateResolvedTime,o),r},function(t){throw n._proxy.$onExtensionActivationFailed(e.id),t})},t.prototype._doActivateExtension=function(n,r){var i=this,o=function(e,t){var n=t instanceof h.ExtensionActivatedByEvent?t.activationEvent:t instanceof h.ExtensionActivatedByAPI?"api":"";return{id:e.id,name:e.name,publisherDisplayName:e.publisher,activationEvents:e.activationEvents?e.activationEvents.join(","):null,isBuiltin:e.isBuiltin,reason:n}}(n,r);if(this._mainThreadTelemetry.$publicLog("activatePlugin",o),!n.main)return u.TPromise.as(new h.EmptyExtension(h.ExtensionActivationTimes.NONE));this._extHostLogService.info("ExtensionService#_doActivateExtension "+n.id+" "+JSON.stringify(r));var s=new h.ExtensionActivationTimesBuilder(r.startup);return u.TPromise.join([function(t,n,r){var i=null;r.codeLoadingStart(),
  t.info("ExtensionService#loadCommonJSModule "+n);try{i=e.__$__nodeRequire(n)}catch(e){return u.TPromise.wrapError(e)}finally{r.codeLoadingStop()}return u.TPromise.as(i)}(this._extHostLogService,n.main,s),this._loadExtensionContext(n)]).then(function(e){return t._callActivate(i._extHostLogService,n.id,e[0],e[1],s)},function(e){return e[0]?u.TPromise.wrapError(e[0]):e[1]?u.TPromise.wrapError(e[1]):void 0})},t.prototype._loadExtensionContext=function(e){var t=this,n=new v(e.id,!0,this._storage),i=new v(e.id,!1,this._storage);return this._extHostLogService.trace("ExtensionService#loadExtensionContext "+e.id),u.TPromise.join([n.whenReady,i.whenReady,this._storagePath.whenReady]).then(function(){var o=t;return Object.freeze({globalState:n,workspaceState:i,subscriptions:[],get extensionPath(){return e.extensionLocation.fsPath},storagePath:t._storagePath.value(e),asAbsolutePath:function(t){return r.join(e.extensionLocation.fsPath,t)},logPath:o._extHostLogService.getLogDirectory(e.id)})})},
  t._callActivate=function(e,t,n,r,i){return n=n||{activate:void 0,deactivate:void 0},this._callActivateOptional(e,t,n,r,i).then(function(e){return new h.ActivatedExtension(!1,null,i.build(),n,e,r.subscriptions)})},t._callActivateOptional=function(e,t,n,r,i){if("function"!=typeof n.activate)return u.TPromise.as(n);try{i.activateCallStart(),e.trace("ExtensionService#_callActivateOptional "+t);var o=n.activate.apply(global,[r]);return i.activateCallStop(),i.activateResolveStart(),u.TPromise.as(o).then(function(e){return i.activateResolveStop(),e})}catch(e){return u.TPromise.wrapError(e)}},t.prototype.$activateByEvent=function(e){return this.activateByEvent(e,!1)},t}();t.ExtHostExtensionService=_}),define(e[115],t([0,1,20,14,4,21,19,8,23,9,2,3,83,101,110,7,5,17]),function(e,t,r,i,o,s,a,u,c,l,f,d,h,p,g,m,v,y){"use strict";function _(e,t){return c.isEqual(e,t,!u.isLinux)}function b(e,t){return _(e.uri,t.uri)?0:l.compare(e.uri.toString(),t.uri.toString())}function C(e,t){
  return e.index!==t.index?e.index<t.index?-1:1:_(e.uri,t.uri)?l.compare(e.name,t.name):l.compare(e.uri.toString(),t.uri.toString())}function S(e,t,n){var r=e.slice(0).sort(n),o=t.slice(0).sort(n);return i.delta(r,o,n)}Object.defineProperty(t,"__esModule",{value:!0});var x=function(e){function t(t,n,r){var i=e.call(this,t,r.map(function(e){return new g.WorkspaceFolder(e)}))||this;return i._name=n,i._workspaceFolders=[],i._structure=s.TernarySearchTree.forPaths(),r.forEach(function(e){i._workspaceFolders.push(e),i._structure.set(e.uri.toString(),e)}),i}return n(t,e),t.toExtHostWorkspace=function(e,n,r){if(!e)return{workspace:null,added:[],removed:[]};var i=e.id,o=e.name,s=e.folders,a=[],u=n;u?s.forEach(function(e,i){var o=f.URI.revive(e.uri),s=t._findFolder(r||n,o);s?(s.name=e.name,s.index=e.index,a.push(s)):a.push({uri:o,name:e.name,index:i})}):a.push.apply(a,s.map(function(e){var t=e.uri,n=e.name,r=e.index;return{uri:f.URI.revive(t),name:n,index:r}})),a.sort(function(e,t){return e.index<t.index?-1:1})
  ;var c=new t(i,o,a),l=S(u?u.workspaceFolders:[],c.workspaceFolders,b);return{workspace:c,added:l.added,removed:l.removed}},t._findFolder=function(e,t){for(var n=0;n<e.folders.length;n++){var r=e.workspaceFolders[n];if(_(r.uri,t))return r}},Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"workspaceFolders",{get:function(){return this._workspaceFolders.slice(0)},enumerable:!0,configurable:!0}),t.prototype.getWorkspaceFolder=function(e,t){return t&&this._structure.get(e.toString())&&(e=c.dirname(e)),this._structure.findSubstr(e.toString())},t.prototype.resolveWorkspaceFolder=function(e){return this._structure.get(e.toString())},t}(g.Workspace),w=function(){function e(e,t,n,r){this._logService=n,this._requestIdProvider=r,this._onDidChangeWorkspace=new o.Emitter,this.onDidChangeWorkspace=this._onDidChangeWorkspace.event,this._activeSearchCallbacks=[],this._proxy=e.getProxy(v.MainContext.MainThreadWorkspace),
  this._messageService=e.getProxy(v.MainContext.MainThreadMessageService),this._confirmedWorkspace=x.toExtHostWorkspace(t).workspace}return Object.defineProperty(e.prototype,"workspace",{get:function(){return this._actualWorkspace},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._actualWorkspace?this._actualWorkspace.name:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_actualWorkspace",{get:function(){return this._unconfirmedWorkspace||this._confirmedWorkspace},enumerable:!0,configurable:!0}),e.prototype.getWorkspaceFolders=function(){if(this._actualWorkspace)return this._actualWorkspace.workspaceFolders.slice(0)},e.prototype.updateWorkspaceFolders=function(e,t,n){for(var r=this,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=[];if(Array.isArray(i)&&i.forEach(function(e){f.URI.isUri(e.uri)&&!s.some(function(t){return _(t.uri,e.uri)})&&s.push({uri:e.uri,name:e.name||c.basenameOrAuthority(e.uri)})}),
  this._unconfirmedWorkspace)return!1;if([t,n].some(function(e){return"number"!=typeof e||e<0}))return!1;if(0===n&&0===s.length)return!1;var a=this._actualWorkspace?this._actualWorkspace.workspaceFolders:[];if(t+n>a.length)return!1;var u=a.slice(0);u.splice.apply(u,[t,n].concat(s.map(function(e){return{uri:e.uri,name:e.name||c.basenameOrAuthority(e.uri),index:void 0}})));for(var l=function(e){var t=u[e];if(u.some(function(n,r){return r!==e&&_(t.uri,n.uri)}))return{value:!1}},d=0;d<u.length;d++){var g=l(d);if("object"==typeof g)return g.value}u.forEach(function(e,t){return e.index=t});var m=S(a,u,C),v=m.added,y=m.removed;if(0===v.length&&0===y.length)return!1;if(this._proxy){var b=e.displayName||e.name;this._proxy.$updateWorkspaceFolders(b,t,n,s).then(null,function(t){r._unconfirmedWorkspace=void 0,r._messageService.$showMessage(p.Severity.Error,h.localize(0,null,b,t.toString()),{extension:e},[])})}return this.trySetWorkspaceFolders(u),!0},e.prototype.getWorkspaceFolder=function(e,t){
  if(this._actualWorkspace)return this._actualWorkspace.getWorkspaceFolder(e,t)},e.prototype.resolveWorkspaceFolder=function(e){if(this._actualWorkspace)return this._actualWorkspace.resolveWorkspaceFolder(e)},e.prototype.getPath=function(){if(this._actualWorkspace){var e=this._actualWorkspace.folders;if(0!==e.length)return e[0].uri.fsPath}},e.prototype.getRelativePath=function(e,t){var n;if("string"==typeof e?n=e:void 0!==e&&(n=e.fsPath),!n)return n;var i=this.getWorkspaceFolder("string"==typeof e?f.URI.file(e):e,!0);if(!i)return n;void 0===t&&(t=this._actualWorkspace.folders.length>1);var o=r.relative(i.uri.fsPath,n);return t&&(o=i.name+"/"+o),a.normalize(o,!0)},e.prototype.trySetWorkspaceFolders=function(e){this._actualWorkspace&&(this._unconfirmedWorkspace=x.toExtHostWorkspace({id:this._actualWorkspace.id,name:this._actualWorkspace.name,configuration:this._actualWorkspace.configuration,folders:e},this._actualWorkspace).workspace)},e.prototype.$acceptWorkspaceData=function(e){
  var t=x.toExtHostWorkspace(e,this._confirmedWorkspace,this._unconfirmedWorkspace),n=t.workspace,r=t.added,i=t.removed;this._confirmedWorkspace=n,this._unconfirmedWorkspace=void 0,this._onDidChangeWorkspace.fire(Object.freeze({added:r,removed:i}))},e.prototype.findFiles=function(e,t,n,r,i){void 0===i&&(i=y.CancellationToken.None),this._logService.trace("extHostWorkspace#findFiles: fileSearch, extension: "+r+", entryPoint: findFiles");var o,s;e&&("string"==typeof e?o=e:(o=e.pattern,s=e.baseFolder||f.URI.file(e.base)));var a;return null===t?a=!1:t&&(a="string"==typeof t?t:t.pattern),i&&i.isCancellationRequested?d.TPromise.wrap([]):this._proxy.$startFileSearch(o,s,a,n,i).then(function(e){return Array.isArray(e)?e.map(f.URI.revive):[]})},e.prototype.findTextInFiles=function(e,t,n,i,o){var s=this;void 0===o&&(o=y.CancellationToken.None),this._logService.trace("extHostWorkspace#findTextInFiles: textSearch, extension: "+i+", entryPoint: findTextInFiles");var a=this._requestIdProvider.getNext(),u=function(e){
  return"string"==typeof e?e:r.join(e.base,e.pattern)},c=void 0===t.previewOptions?{matchLines:100,charsPerLine:1e4}:t.previewOptions,l={ignoreSymlinks:"boolean"==typeof t.followSymlinks?!t.followSymlinks:void 0,disregardIgnoreFiles:"boolean"==typeof t.useIgnoreFiles?!t.useIgnoreFiles:void 0,disregardExcludeSettings:null===t.exclude,fileEncoding:t.encoding,maxResults:t.maxResults,previewOptions:c,includePattern:t.include&&u(t.include),excludePattern:t.exclude&&u(t.exclude)};return this._activeSearchCallbacks[a]=function(e){e.matches.forEach(function(t){n({uri:f.URI.revive(e.resource),preview:{text:t.preview.text,match:new m.Range(t.preview.match.startLineNumber,t.preview.match.startColumn,t.preview.match.endLineNumber,t.preview.match.endColumn)},range:new m.Range(t.range.startLineNumber,t.range.startColumn,t.range.endLineNumber,t.range.endColumn)})})},o.isCancellationRequested?d.TPromise.wrap(void 0):this._proxy.$startTextSearch(e,l,a,o).then(function(e){return delete s._activeSearchCallbacks[a],e},function(e){
  return delete s._activeSearchCallbacks[a],d.TPromise.wrapError(e)})},e.prototype.$handleTextSearchResult=function(e,t){this._activeSearchCallbacks[t]&&this._activeSearchCallbacks[t](e)},e.prototype.saveAll=function(e){return this._proxy.$saveAll(e)},e}();t.ExtHostWorkspace=w}),define(e[88],t([0,1,3,13,140,60,2,17,12,6,4]),function(e,t,r,i,o,s,a,u,c,l,f){"use strict";function d(e,t,n){if(!e||n>200)return null;if("object"==typeof e){if(e instanceof a.URI)return t.transformOutgoing(e);for(var r in e)if(Object.hasOwnProperty.call(e,r)){var i=d(e[r],t,n+1);null!==i&&(e[r]=i)}}return null}function h(e,t){var n=d(e,t,0);return null===n?e:n}function p(e,t,n){if(!e||n>200)return null;if("object"==typeof e){if(1===e.$mid)return t.transformIncoming(e);for(var r in e)if(Object.hasOwnProperty.call(e,r)){var i=p(e[r],t,n+1);null!==i&&(e[r]=i)}}return null}function g(e,t){var n=p(e,t,0);return null===n?e:n}Object.defineProperty(t,"__esModule",{value:!0}),t.transformOutgoingURIs=h;!function(e){e[e.LocalSide=0]="LocalSide",
  e[e.OtherSide=1]="OtherSide"}(t.RequestInitiator||(t.RequestInitiator={}));!function(e){e[e.Responsive=0]="Responsive",e[e.Unresponsive=1]="Unresponsive"}(t.ResponsiveState||(t.ResponsiveState={}));var m=function(){},v=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=e.call(this)||this;i._onDidChangeResponsiveState=i._register(new f.Emitter),i.onDidChangeResponsiveState=i._onDidChangeResponsiveState.event,i._protocol=t,i._logger=n,i._uriTransformer=r,i._isDisposed=!1,i._locals=[],i._proxies=[];for(var o=0,a=s.ProxyIdentifier.count;o<a;o++)i._locals[o]=null,i._proxies[o]=null;return i._lastMessageId=0,i._cancelInvokedHandlers=Object.create(null),i._pendingRPCReplies={},i._responsiveState=0,i._unacknowledgedCount=0,i._unresponsiveTime=0,i._asyncCheckUresponsive=i._register(new c.RunOnceScheduler(function(){return i._checkUnresponsive()},1e3)),i._protocol.onMessage(function(e){return i._receiveOneMessage(e)}),i}return n(t,e),t.prototype.dispose=function(){var e=this
  ;this._isDisposed=!0,Object.keys(this._pendingRPCReplies).forEach(function(t){e._pendingRPCReplies[t].resolveErr(i.canceled())})},t.prototype._onWillSendRequest=function(e){0===this._unacknowledgedCount&&(this._unresponsiveTime=Date.now()+t.UNRESPONSIVE_TIME),this._unacknowledgedCount++,this._asyncCheckUresponsive.isScheduled()||this._asyncCheckUresponsive.schedule()},t.prototype._onDidReceiveAcknowledge=function(e){this._unresponsiveTime=Date.now()+t.UNRESPONSIVE_TIME,this._unacknowledgedCount--,0===this._unacknowledgedCount&&this._asyncCheckUresponsive.cancel(),this._setResponsiveState(0)},t.prototype._checkUnresponsive=function(){0!==this._unacknowledgedCount&&(Date.now()>this._unresponsiveTime?this._setResponsiveState(1):this._asyncCheckUresponsive.schedule())},t.prototype._setResponsiveState=function(e){this._responsiveState!==e&&(this._responsiveState=e,this._onDidChangeResponsiveState.fire(this._responsiveState))},Object.defineProperty(t.prototype,"responsiveState",{get:function(){
  return this._responsiveState},enumerable:!0,configurable:!0}),t.prototype.transformIncomingURIs=function(e){return this._uriTransformer?g(e,this._uriTransformer):e},t.prototype.getProxy=function(e){var t=e.nid;return this._proxies[t]||(this._proxies[t]=this._createProxy(t)),this._proxies[t]},t.prototype._createProxy=function(e){var t=this,n={get:function(n,r){return n[r]||36!==r.charCodeAt(0)||(n[r]=function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];return t._remoteCall(e,r,n)}),n[r]}};return new Proxy(Object.create(null),n)},t.prototype.set=function(e,t){return this._locals[e.nid]=t,t},t.prototype.assertRegistered=function(e){for(var t=0,n=e.length;t<n;t++){var r=e[t];if(!this._locals[r.nid])throw new Error("Missing actor "+r.sid+" (isMain: "+r.isMain+")")}},t.prototype._receiveOneMessage=function(e){if(!this._isDisposed){var t=e.length,n=_.read(e,0),r=n.readUInt8(),i=n.readUInt32();switch(r){case 1:case 2:var o=b.deserializeRequestJSONArgs(n),s=o.rpcId,a=o.method,u=o.args
  ;this._uriTransformer&&(u=g(u,this._uriTransformer)),this._receiveRequest(t,i,s,a,u,2===r);break;case 3:case 4:var c=b.deserializeRequestMixedArgs(n),s=c.rpcId,a=c.method,u=c.args;this._uriTransformer&&(u=g(u,this._uriTransformer)),this._receiveRequest(t,i,s,a,u,4===r);break;case 5:this._logger&&this._logger.logIncoming(t,i,0,"ack"),this._onDidReceiveAcknowledge(i);break;case 6:this._receiveCancel(t,i);break;case 7:this._receiveReply(t,i,void 0);break;case 9:l=b.deserializeReplyOKJSON(n);this._uriTransformer&&(l=g(l,this._uriTransformer)),this._receiveReply(t,i,l);break;case 8:var l=b.deserializeReplyOKBuffer(n);this._receiveReply(t,i,l);break;case 10:var f=b.deserializeReplyErrError(n);this._uriTransformer&&(f=g(f,this._uriTransformer)),this._receiveReplyErr(t,i,f);break;case 11:this._receiveReplyErr(t,i,void 0)}}},t.prototype._receiveRequest=function(e,t,n,r,i,o){var a=this;this._logger&&this._logger.logIncoming(e,t,1,"receiveRequest "+s.getStringIdentifierForProxy(n)+"."+r+"(",i);var c,l,f=String(t);if(o){
  var d=new u.CancellationTokenSource;i.push(d.token),c=this._invokeHandler(n,r,i),l=function(){return d.cancel()}}else c=this._invokeHandler(n,r,i),l=m;this._cancelInvokedHandlers[f]=l;var p=b.serializeAcknowledged(t);this._logger&&this._logger.logOutgoing(p.byteLength,t,1,"ack"),this._protocol.send(p),c.then(function(e){delete a._cancelInvokedHandlers[f],a._uriTransformer&&(e=h(e,a._uriTransformer));var n=b.serializeReplyOK(t,e);a._logger&&a._logger.logOutgoing(n.byteLength,t,1,"reply:",e),a._protocol.send(n)},function(e){delete a._cancelInvokedHandlers[f];var n=b.serializeReplyErr(t,e);a._logger&&a._logger.logOutgoing(n.byteLength,t,1,"replyErr:",e),a._protocol.send(n)})},t.prototype._receiveCancel=function(e,t){this._logger&&this._logger.logIncoming(e,t,1,"receiveCancel");var n=String(t);this._cancelInvokedHandlers[n]&&this._cancelInvokedHandlers[n]()},t.prototype._receiveReply=function(e,t,n){this._logger&&this._logger.logIncoming(e,t,0,"receiveReply:",n);var r=String(t)
  ;if(this._pendingRPCReplies.hasOwnProperty(r)){var i=this._pendingRPCReplies[r];delete this._pendingRPCReplies[r],i.resolveOk(n)}},t.prototype._receiveReplyErr=function(e,t,n){this._logger&&this._logger.logIncoming(e,t,0,"receiveReplyErr:",n);var r=String(t);if(this._pendingRPCReplies.hasOwnProperty(r)){var i=this._pendingRPCReplies[r];delete this._pendingRPCReplies[r];var o=null;n&&n.$isError&&((o=new Error).name=n.name,o.message=n.message,o.stack=n.stack),i.resolveErr(o)}},t.prototype._invokeHandler=function(e,t,n){try{return r.TPromise.as(this._doInvokeHandler(e,t,n))}catch(e){return r.TPromise.wrapError(e)}},t.prototype._doInvokeHandler=function(e,t,n){var r=this._locals[e];if(!r)throw new Error("Unknown actor "+s.getStringIdentifierForProxy(e));var i=r[t];if("function"!=typeof i)throw new Error("Unknown method "+t+" on actor "+s.getStringIdentifierForProxy(e));return i.apply(r,n)},t.prototype._remoteCall=function(e,t,n){var a=this;if(this._isDisposed)return r.TPromise.wrapError(i.canceled());var c=null
  ;if(n.length>0&&u.CancellationToken.isCancellationToken(n[n.length-1])&&(c=n.pop()),c&&c.isCancellationRequested)return r.TPromise.wrapError(i.canceled());var l=++this._lastMessageId,f=String(l),d=new o.LazyPromise;c&&c.onCancellationRequested(function(){var e=b.serializeCancel(l);a._logger&&a._logger.logOutgoing(e.byteLength,l,0,"cancel"),a._protocol.send(b.serializeCancel(l))}),this._pendingRPCReplies[f]=d,this._onWillSendRequest(l),this._uriTransformer&&(n=h(n,this._uriTransformer));var p=b.serializeRequest(l,e,t,n,!!c);return this._logger&&this._logger.logOutgoing(p.byteLength,l,0,"request: "+s.getStringIdentifierForProxy(e)+"."+t+"(",n),this._protocol.send(p),d},t.UNRESPONSIVE_TIME=1e4,t}(l.Disposable);t.RPCProtocol=v;var y,_=function(){function e(e,t){this._buff=e,this._offset=t}return e.alloc=function(t,n,r){var i=new e(Buffer.allocUnsafe(r+1+4),0);return i.writeUInt8(t),i.writeUInt32(n),i},e.read=function(t,n){return new e(t,n)},Object.defineProperty(e.prototype,"buffer",{get:function(){
  return this._buff},enumerable:!0,configurable:!0}),e.sizeUInt8=function(){return 1},e.prototype.writeUInt8=function(e){this._buff.writeUInt8(e,this._offset,!0),this._offset+=1},e.prototype.readUInt8=function(){var e=this._buff.readUInt8(this._offset,!0);return this._offset+=1,e},e.prototype.writeUInt32=function(e){this._buff.writeUInt32BE(e,this._offset,!0),this._offset+=4},e.prototype.readUInt32=function(){var e=this._buff.readUInt32BE(this._offset,!0);return this._offset+=4,e},e.sizeShortString=function(e,t){return 1+t},e.prototype.writeShortString=function(e,t){this._buff.writeUInt8(t,this._offset,!0),this._offset+=1,this._buff.write(e,this._offset,t,"utf8"),this._offset+=t},e.prototype.readShortString=function(){var e=this._buff.readUInt8(this._offset,!0);this._offset+=1;var t=this._buff.toString("utf8",this._offset,this._offset+e);return this._offset+=e,t},e.sizeLongString=function(e,t){return 4+t},e.prototype.writeLongString=function(e,t){this._buff.writeUInt32LE(t,this._offset,!0),this._offset+=4,
  this._buff.write(e,this._offset,t,"utf8"),this._offset+=t},e.prototype.readLongString=function(){var e=this._buff.readUInt32LE(this._offset,!0);this._offset+=4;var t=this._buff.toString("utf8",this._offset,this._offset+e);return this._offset+=e,t},e.sizeBuffer=function(e,t){return 4+t},e.prototype.writeBuffer=function(e,t){this._buff.writeUInt32LE(t,this._offset,!0),this._offset+=4,e.copy(this._buff,this._offset),this._offset+=t},e.prototype.readBuffer=function(){var e=this._buff.readUInt32LE(this._offset,!0);this._offset+=4;var t=this._buff.slice(this._offset,this._offset+e);return this._offset+=e,t},e.sizeMixedArray=function(e,t){var n=0;n+=1;for(var r=0,i=e.length;r<i;r++){var o=e[r],s=t[r];n+=1,n+="string"==typeof o?this.sizeLongString(o,s):this.sizeBuffer(o,s)}return n},e.prototype.writeMixedArray=function(e,t){this._buff.writeUInt8(e.length,this._offset,!0),this._offset+=1;for(var n=0,r=e.length;n<r;n++){var i=e[n],o=t[n];"string"==typeof i?(this.writeUInt8(1),
  this.writeLongString(i,o)):(this.writeUInt8(2),this.writeBuffer(i,o))}},e.prototype.readMixedArray=function(){var e=this._buff.readUInt8(this._offset,!0);this._offset+=1;for(var t=new Array(e),n=0;n<e;n++){var r=this.readUInt8();t[n]=1===r?this.readLongString():this.readBuffer()}return t},e}(),b=function(){function e(){}return e._arrayContainsBuffer=function(e){for(var t=0,n=e.length;t<n;t++)if(Buffer.isBuffer(e[t]))return!0;return!1},e.serializeRequest=function(e,t,n,r,i){if(this._arrayContainsBuffer(r)){for(var o=new Array(r.length),s=new Array(r.length),a=0,u=r.length;a<u;a++){var c=r[a];Buffer.isBuffer(c)?(o[a]=c,s[a]=c.byteLength):(o[a]=JSON.stringify(c),s[a]=Buffer.byteLength(o[a],"utf8"))}return this._requestMixedArgs(e,t,n,o,s,i)}return this._requestJSONArgs(e,t,n,JSON.stringify(r),i)},e._requestJSONArgs=function(e,t,n,r,i){var o=Buffer.byteLength(n,"utf8"),s=Buffer.byteLength(r,"utf8"),a=0;a+=_.sizeUInt8(),a+=_.sizeShortString(n,o),a+=_.sizeLongString(r,s);var u=_.alloc(i?2:1,e,a)
  ;return u.writeUInt8(t),u.writeShortString(n,o),u.writeLongString(r,s),u.buffer},e.deserializeRequestJSONArgs=function(e){var t=e.readUInt8(),n=e.readShortString(),r=e.readLongString();return{rpcId:t,method:n,args:JSON.parse(r)}},e._requestMixedArgs=function(e,t,n,r,i,o){var s=Buffer.byteLength(n,"utf8"),a=0;a+=_.sizeUInt8(),a+=_.sizeShortString(n,s),a+=_.sizeMixedArray(r,i);var u=_.alloc(o?4:3,e,a);return u.writeUInt8(t),u.writeShortString(n,s),u.writeMixedArray(r,i),u.buffer},e.deserializeRequestMixedArgs=function(e){for(var t=e.readUInt8(),n=e.readShortString(),r=e.readMixedArray(),i=new Array(r.length),o=0,s=r.length;o<s;o++){var a=r[o];i[o]="string"==typeof a?JSON.parse(a):a}return{rpcId:t,method:n,args:i}},e.serializeAcknowledged=function(e){return _.alloc(5,e,0).buffer},e.serializeCancel=function(e){return _.alloc(6,e,0).buffer},e.serializeReplyOK=function(e,t){
  return void 0===t?this._serializeReplyOKEmpty(e):Buffer.isBuffer(t)?this._serializeReplyOKBuffer(e,t):this._serializeReplyOKJSON(e,JSON.stringify(t))},e._serializeReplyOKEmpty=function(e){return _.alloc(7,e,0).buffer},e._serializeReplyOKBuffer=function(e,t){var n=t.byteLength,r=0;r+=_.sizeBuffer(t,n);var i=_.alloc(8,e,r);return i.writeBuffer(t,n),i.buffer},e.deserializeReplyOKBuffer=function(e){return e.readBuffer()},e._serializeReplyOKJSON=function(e,t){var n=Buffer.byteLength(t,"utf8"),r=0;r+=_.sizeLongString(t,n);var i=_.alloc(9,e,r);return i.writeLongString(t,n),i.buffer},e.deserializeReplyOKJSON=function(e){var t=e.readLongString();return JSON.parse(t)},e.serializeReplyErr=function(e,t){return t instanceof Error?this._serializeReplyErrEror(e,t):this._serializeReplyErrEmpty(e)},e._serializeReplyErrEror=function(e,t){var n=JSON.stringify(i.transformErrorForSerialization(t)),r=Buffer.byteLength(n,"utf8"),o=0;o+=_.sizeLongString(n,r);var s=_.alloc(10,e,o);return s.writeLongString(n,r),s.buffer},
  e.deserializeReplyErrError=function(e){var t=e.readLongString();return JSON.parse(t)},e._serializeReplyErrEmpty=function(e){return _.alloc(11,e,0).buffer},e}();!function(e){e[e.RequestJSONArgs=1]="RequestJSONArgs",e[e.RequestJSONArgsWithCancellation=2]="RequestJSONArgsWithCancellation",e[e.RequestMixedArgs=3]="RequestMixedArgs",e[e.RequestMixedArgsWithCancellation=4]="RequestMixedArgsWithCancellation",e[e.Acknowledged=5]="Acknowledged",e[e.Cancel=6]="Cancel",e[e.ReplyOKEmpty=7]="ReplyOKEmpty",e[e.ReplyOKBuffer=8]="ReplyOKBuffer",e[e.ReplyOKJSON=9]="ReplyOKJSON",e[e.ReplyErrError=10]="ReplyErrError",e[e.ReplyErrEmpty=11]="ReplyErrEmpty"}(y||(y={}));var C;!function(e){e[e.String=1]="String",e[e.Buffer=2]="Buffer"}(C||(C={}))}),define(e[69],t([0,1,84,30,3,20,126,128,115,5,13,31,6,88,2,138,12,93,17]),function(e,t,n,r,s,a,u,c,l,f,d,h,p,g,m,v,y,_,b){"use strict";function C(e){S(e)}Object.defineProperty(t,"__esModule",{value:!0}),m.setUriThrowOnMissingScheme(!1);var S=process.exit.bind(process);t.exit=C
  ;var x=function(){function t(e,t){this._isTerminating=!1,this.disposables=[];var n=new g.RPCProtocol(e);t=this.transform(t,n),this._environment=t.environment,this._workspace=t.workspace;!function(e){process.exit=function(t){if(e)C(t);else{var n=new Error("An extension called process.exit() and this was prevented.");console.warn(n.stack)}},process.crash=function(){var e=new Error("An extension called process.crash() and this was prevented.");console.warn(e.stack)}}(!!this._environment.extensionTestsPath),this._extHostLogService=new v.ExtHostLogService(t.logLevel,t.logsLocation.fsPath),this.disposables.push(this._extHostLogService),this._searchRequestIdProvider=new _.Counter;var r=new l.ExtHostWorkspace(n,t.workspace,this._extHostLogService,this._searchRequestIdProvider);this._extHostLogService.info("extension host started"),this._extHostLogService.trace("initData",t),this._extHostConfiguration=new c.ExtHostConfiguration(n.getProxy(f.MainContext.MainThreadConfiguration),r,t.configuration),
  this._extensionService=new u.ExtHostExtensionService(t,n,r,this._extHostConfiguration,this._extHostLogService),Error.stackTraceLimit=100;var i=new WeakMap;this._extensionService.getExtensionPathIndex().then(function(e){Error.prepareStackTrace=function(t,n){for(var r,o,s="",a=0,u=n;a<u.length;a++){var c=u[a];s+="\n\tat "+c.toString(),o=c.getFileName(),!r&&o&&(r=e.findSubstr(o))}return i.set(t,r),(t.name||"Error")+": "+(t.message||"")+s}});var o=n.getProxy(f.MainContext.MainThreadExtensionService),s=n.getProxy(f.MainContext.MainThreadErrors);d.setUnexpectedErrorHandler(function(e){var t=d.transformErrorForSerialization(e),n=i.get(e);n?o.$onExtensionRuntimeError(n.id,t):s.$onUnexpectedError(t)}),this._mainThreadWorkspace=n.getProxy(f.MainContext.MainThreadWorkspace)}return t.prototype.start=function(){var e=this;return this._extensionService.onExtensionAPIReady().then(function(){return e.handleEagerExtensions()}).then(function(){return e.handleExtensionTests()}).then(function(){
  e._extHostLogService.info("eager extensions activated")})},t.prototype.terminate=function(){var e=this;if(!this._isTerminating){this._isTerminating=!0,this.disposables=p.dispose(this.disposables),d.setUnexpectedErrorHandler(function(e){});var t=[];try{t=this._extensionService.getAllExtensionDescriptions().map(function(e){return e.id}).filter(function(t){return e._extensionService.isActivated(t)}).map(function(t){return e._extensionService.deactivate(t)})}catch(e){}var n=s.TPromise.join(t).then(function(){});setTimeout(function(){Promise.race([y.timeout(4e3),n]).then(function(){return C()},function(){return C()})},1e3)}},t.prototype.handleEagerExtensions=function(){return this._extensionService.activateByEvent("*",!0).then(null,function(e){console.error(e)}),this.handleWorkspaceContainsEagerExtensions()},t.prototype.handleWorkspaceContainsEagerExtensions=function(){var e=this
  ;return this._workspace&&0!==this._workspace.folders.length?s.TPromise.join(this._extensionService.getAllExtensionDescriptions().map(function(t){return e.handleWorkspaceContainsEagerExtension(t)})).then(function(){}):s.TPromise.as(null)},t.prototype.handleWorkspaceContainsEagerExtension=function(e){var t=this,n=e.activationEvents;if(!n)return s.TPromise.as(void 0);for(var r=[],i=[],o=0;o<n.length;o++)if(/^workspaceContains:/.test(n[o])){var a=n[o].substr("workspaceContains:".length);a.indexOf("*")>=0||a.indexOf("?")>=0?i.push(a):r.push(a)}if(0===r.length&&0===i.length)return s.TPromise.as(void 0);var u=s.TPromise.join(r.map(function(n){return t.activateIfFileName(e.id,n)})).then(function(){}),c=this.activateIfGlobPatterns(e.id,i);return s.TPromise.join([u,c]).then(function(){})},t.prototype.activateIfFileName=function(e,t){return i(this,void 0,void 0,function(){var n,i,s;return o(this,function(o){switch(o.label){case 0:n=0,i=this._workspace.folders,o.label=1;case 1:return n<i.length?(s=i[n].uri,
  [4,r.exists(a.join(m.URI.revive(s).fsPath,t))]):[3,4];case 2:if(o.sent())return[2,this._extensionService.activateById(e,new h.ExtensionActivatedByEvent(!0,"workspaceContains:"+t)).then(null,function(e){return console.error(e)})];o.label=3;case 3:return n++,[3,1];case 4:return[2,void 0]}})})},t.prototype.activateIfGlobPatterns=function(e,n){return i(this,void 0,void 0,function(){var r,a,u,c,l,f=this;return o(this,function(p){switch(p.label){case 0:if(this._extHostLogService.trace("extensionHostMain#activateIfGlobPatterns: fileSearch, extension: "+e+", entryPoint: workspaceContains"),0===n.length)return[2,s.TPromise.as(void 0)];r=new b.CancellationTokenSource,a=this._mainThreadWorkspace.$checkExists(n,r.token),u=setTimeout(function(){return i(f,void 0,void 0,function(){return o(this,function(t){return r.cancel(),this._extensionService.activateById(e,new h.ExtensionActivatedByEvent(!0,"workspaceContainsTimeout:"+n.join(","))).then(null,function(e){return console.error(e)}),[2]})})},t.WORKSPACE_CONTAINS_TIMEOUT),
  p.label=1;case 1:return p.trys.push([1,3,,4]),[4,a];case 2:return c=p.sent(),[3,4];case 3:return l=p.sent(),d.isPromiseCanceledError(l)||console.error(l),[3,4];case 4:return r.dispose(),clearTimeout(u),c?[2,this._extensionService.activateById(e,new h.ExtensionActivatedByEvent(!0,"workspaceContains:"+n.join(","))).then(null,function(e){return console.error(e)})]:[2,s.TPromise.as(void 0)]}})})},t.prototype.handleExtensionTests=function(){var t=this;if(!this._environment.extensionTestsPath||!this._environment.extensionDevelopmentLocationURI)return s.TPromise.as(null);var r,i;try{r=e.__$__nodeRequire(this._environment.extensionTestsPath)}catch(e){i=e}return r&&"function"==typeof r.run?new s.TPromise(function(e,n){r.run(t._environment.extensionTestsPath,function(r,i){r?n(r.toString()):e(null),t.gracefulExit(i&&i>0?1:0)})}):(this.gracefulExit(1),s.TPromise.wrapError(new Error(i?i.toString():n.localize(0,null,this._environment.extensionTestsPath))))},t.prototype.transform=function(e,t){
  return e.extensions.forEach(function(e){return e.extensionLocation=m.URI.revive(e.extensionLocation)}),e.environment.appRoot=m.URI.revive(e.environment.appRoot),e.environment.appSettingsHome=m.URI.revive(e.environment.appSettingsHome),e.environment.extensionDevelopmentLocationURI=m.URI.revive(e.environment.extensionDevelopmentLocationURI),e.logsLocation=m.URI.revive(e.logsLocation),e.workspace=t.transformIncomingURIs(e.workspace),e},t.prototype.gracefulExit=function(e){setTimeout(function(){return C(e)},500)},t.WORKSPACE_CONTAINS_TIMEOUT=7e3,t}();t.ExtensionHostMain=x}),define(e[174],t([0,1,13,69,100,44,4,118,50]),function(e,t,n,r,i,o,s,a,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(){var t=e.__$__nodeRequire("module"),n=t._load;t._load=function(e){
  if("natives"===e)throw new Error('Either the extension or a NPM dependency is using the "natives" node module which is unsupported as it can cause a crash of the extension host. Click [here](https://go.microsoft.com/fwlink/?linkid=871887) to find out more');return n.apply(this,arguments)}}();var c=function(){r.exit()};!function(){if(process.env.VSCODE_PREVENT_FOREIGN_INSPECT)for(var e=0;e<process.execArgv.length;e++)if(process.execArgv[e].match(/--inspect-brk=\d+|--inspect=\d+/)){process.execArgv.splice(e,1);break}}(),function(){var e=process.env.VSCODE_IPC_HOOK_EXTHOST;return new Promise(function(t,n){var r=o.createConnection(e,function(){r.removeListener("error",n),t(new i.Protocol(r))});r.once("error",n)}).then(function(e){return new(function(){function t(){var t=this;this._terminating=!1,this.onMessage=s.filterEvent(e.onMessage,function(e){return!a.isMessageOfType(e,2)||(t._terminating=!0,c(),!1)})}return t.prototype.send=function(t){this._terminating||e.send(t)},t}())})}().then(function(t){
  return function(t){return new Promise(function(i,o){var s=t.onMessage(function(o){s.dispose();var l=JSON.parse(o.toString()),f=l.commit,d=u.default.commit;f&&d&&f!==d&&r.exit(55);var h=[];process.on("unhandledRejection",function(e,t){h.push(t),setTimeout(function(){var r=h.indexOf(t);r>=0&&(h.splice(r,1),console.warn("rejected promise not handled within 1 second"),n.onUnexpectedError(e))},1e3)}),process.on("rejectionHandled",function(e){var t=h.indexOf(e);t>=0&&h.splice(t,1)}),process.on("uncaughtException",function(e){n.onUnexpectedError(e)}),setInterval(function(){try{process.kill(l.parentPid,0)}catch(e){c()}},1e3);try{e.__$__nodeRequire("native-watchdog").start(l.parentPid)}catch(e){n.onUnexpectedError(e)}t.send(a.createMessageOfType(0)),i({protocol:t,initData:l})});t.send(a.createMessageOfType(1))})}(t)}).then(function(e){var t=new r.ExtensionHostMain(e.protocol,e.initData);return c=function(){return t.terminate()},t.start()}).catch(function(e){return console.error(e)})})}).call(this);
  //# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/7f3ce96ff4729c91352ae6def877e59c561f4850/core/vs\workbench\node\extensionHostProcess.js.map
  