/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){var e=["require","exports","vs/base/common/winjs.base","vs/base/common/lifecycle","vs/base/common/event","vs/base/common/platform","vs/base/common/types","vs/base/common/objects","vs/base/common/errors","vs/base/common/uri","vs/base/common/functional","vs/base/common/processes","vs/base/common/amd","vs/base/common/strings","vs/base/common/paths","vs/base/common/linkedList","vs/base/common/cancellation","vs/base/common/async","vs/base/node/console","vs/base/node/decoder","vs/platform/telemetry/node/telemetryIpc","vs/base/parts/ipc/node/ipc","vs/nls!vs/base/node/processes","vs/platform/telemetry/node/appInsightsAppender","vs/platform/log/common/log","vs/base/node/processes","vs/platform/instantiation/common/instantiation","child_process","vs/base/parts/ipc/node/ipc.cp","path","vs/nls!vs/workbench/parts/debug/node/telemetryApp","vs/nls","applicationinsights","string_decoder","vs/workbench/parts/debug/node/telemetryApp"],t=function(t){for(var n=[],r=0,i=t.length;r<i;r++)n[r]=e[t[r]];return n}
;define(e[10],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[3],t([0,1,10]),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[15],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[5],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,u=void 0,c=void 0,a=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,u=t.LANGUAGE_DEFAULT,c=t.LANGUAGE_DEFAULT;var l=process.env.VSCODE_NLS_CONFIG;if(l)try{var f=JSON.parse(l),h=f.availableLanguages["*"];u=f.locale,c=h||t.LANGUAGE_DEFAULT,a=f._translationsConfigFile}catch(e){}o=!0}else if("object"==typeof navigator){var p=navigator.userAgent;n=p.indexOf("Windows")>=0,r=p.indexOf("Macintosh")>=0,i=p.indexOf("Linux")>=0,s=!0,c=u=navigator.language}var d;!function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"}(d=t.Platform||(t.Platform={}));var v=d.Web;o&&(r?v=d.Mac:n?v=d.Windows:i&&(v=d.Linux)),t.isWindows=n,t.isMacintosh=r,t.isLinux=i,t.isNative=o,t.isWeb=s,t.platform=v,t.isRootUser=function(){return o&&!n&&0===process.getuid()},t.language=c,t.locale=u,t.translationsConfigFile=a
;var m="object"==typeof self?self:"object"==typeof global?global:{};t.globals=m;var g=null;t.setImmediate=function(e){return null===g&&(g=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)),g(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[11],t([0,1]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e[e.stdout=0]="stdout",e[e.stderr=1]="stderr"}(t.Source||(t.Source={}));!function(e){e[e.Success=0]="Success",e[e.Unknown=1]="Unknown",e[e.AccessDenied=2]="AccessDenied",e[e.ProcessNotFound=3]="ProcessNotFound"}(t.TerminateResponseCode||(t.TerminateResponseCode={}))}),
define(e[13],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 u(e){return e>=65&&e<=90}function c(e){return s(e)||u(e)}function a(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(c(i)&&c(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 h(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 p=/{(\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(p,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),c=t.charCodeAt(r);if(i!==c){u(i)&&(i+=32),u(c)&&(c+=32);var a=i-c;if(0!==a)return s(i)&&s(c)?a:o(e.toLowerCase(),t.toLowerCase())}}return e.length<t.length?-1:e.length>t.length?1:0},t.isLowerAsciiLetter=s,t.isUpperAsciiLetter=u,t.equalsIgnoreCase=function(e,t){return(e?e.length:0)===(t?t.length:0)&&a(e,t)},t.startsWithIgnoreCase=function(e,t){var n=t.length;return!(t.length>e.length)&&a(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 d=/(?:[\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 d.test(e)}
;var v=/(?:[\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 v.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 g=/\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(g,"")).replace(y,"")).replace(_,"")),e},t.UTF8_BOM_CHARACTER=String.fromCharCode(65279),t.startsWithUTF8BOM=h,t.stripUTF8BOM=function(e){return h(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[14],t([0,1,5,13]),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?!h.test(e):!f.test(e)}(e,i))return e
;for(var o=i?"\\":"/",s=c(e,o),a=s.length,l=!1,p="",d=s.length;d<=r;d++)if(d===r||47===e.charCodeAt(d)||92===e.charCodeAt(d)){if(u(e,a,d,"..")){var v=p.lastIndexOf(o),m=p.slice(v+1);(s||m.length>0)&&".."!==m&&(p=-1===v?"":p.slice(0,v),l=!0)}else u(e,a,d,".")&&(s||p||d<r-1)&&(l=!0);if(!l){var g=e.slice(a,d);""!==p&&p[p.length-1]!==o&&(p+=o),p+=g}a=d+1,l=!1}return s+p}function u(e,t,n,r){return t+r.length===n&&e.indexOf(r,t)===t}function c(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 a(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=/(\/\.\.?\/)|(\/\.\.?)$|^(\.\.?\/)|(\/\/+)|(\\)/,h=/(\\\.\.?\\)|(\\\.\.?)$|^(\.\.?\\)|(\\\\+)|(\/)/;t.normalize=s,t.getRoot=c,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 p=n.isWindows?/[\\/:\*\?"<>\|]/g:/[\\/]/g,d=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;t.isValidBasename=function(e){return!(!e||0===e.length||/^\s+$/.test(e)||(p.lastIndex=0,p.test(e)||n.isWindows&&d.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?a(e):l(e)},t.isAbsolute_win32=a,t.isAbsolute_posix=l}),
define(e[6],t([0,1]),function(e,t){"use strict";function n(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==a.number||e.constructor!==Array)}function r(e){return typeof e===a.string||e instanceof String}function i(e){return!(typeof e!==a.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function o(e){return typeof e===a.undefined}function s(e){return o(e)||null===e}function u(e){return typeof e===a.function}function c(e,t){if(r(t)){if(typeof e!==t)throw new Error("argument does not match constraint: typeof "+t)}else if(u(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 a={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===a.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=u,t.areFunctions=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e&&e.length>0&&e.every(u)},t.validateConstraints=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++)c(e[r],t[r])},t.validateConstraint=c,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[7],t([0,1,6]),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=[],u=0;u<e.length;u++)s.push(i(e[u],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 a={};for(var l in e)c.call(e,l)&&(a[l]=i(e[l],t,r));return r.pop(),a}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 u(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(c.call(n,r)){var i=n[r];"object"!=typeof i||Object.isFrozen(i)||t.push(i)}}return e};var c=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=u,t.createKeywordMatcher=function(e,t){void 0===t&&(t=!1),t&&(e=e.map(function(e){return e.toLowerCase()}));var n=u(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=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])};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[9],t([0,1,5]),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=m[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+=m[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}:i,r="",o=e.scheme,s=e.authority,u=e.path,c=e.query,a=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(u){if(u.length>=3&&47===u.charCodeAt(0)&&58===u.charCodeAt(2)){(p=u.charCodeAt(1))>=65&&p<=90&&(u="/"+String.fromCharCode(p+32)+":"+u.substr(3))}else if(u.length>=2&&58===u.charCodeAt(1)){var p=u.charCodeAt(0);p>=65&&p<=90&&(u=String.fromCharCode(p+32)+":"+u.substr(2))}r+=n(u,!0)}return c&&(r+="?",r+=n(c,!1)),a&&(r+="#",r+=t?a:i(a,!1)),r}Object.defineProperty(t,"__esModule",{value:!0});var u,c=/^\w[\w\d+.-]*$/,a=/^\//,l=/^\/\//,f="",h="/",p=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,d=function(){function e(e,t,n,r,i){"object"==typeof e?(this.scheme=e.scheme||f,this.authority=e.authority||f,this.path=e.path||f,this.query=e.query||f,this.fragment=e.fragment||f):(this.scheme=e||f,this.authority=t||f,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||f),this.query=r||f,this.fragment=i||f,function(e){
if(e.scheme||console.warn('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}'),e.scheme&&!c.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!a.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=f),void 0===n?n=this.authority:null===n&&(n=f),void 0===r?r=this.path:null===r&&(r=f),void 0===i?i=this.query:null===i&&(i=f),void 0===o?o=this.fragment:null===o&&(o=f),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&o===this.fragment?this:new v(t,n,r,i,o)},e.parse=function(e){var t=p.exec(e);return t?new v(t[2]||f,decodeURIComponent(t[4]||f),decodeURIComponent(t[5]||f),decodeURIComponent(t[7]||f),decodeURIComponent(t[9]||f)):new v(f,f,f,f,f)},e.file=function(e){var t=f;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 v("file",t,e,f,f)},e.from=function(e){return new v(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 v(t);return n._fsPath=t.fsPath,n._formatted=t.external,n}return t},e}();t.URI=d,t.default=d;var v=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}(d),m=(u={},u[58]="%3A",u[47]="%2F",u[63]="%3F",u[35]="%23",u[91]="%5B",u[93]="%5D",u[64]="%40",u[33]="%21",u[36]="%24",u[38]="%26",u[39]="%27",
u[40]="%28",u[41]="%29",u[42]="%2A",u[43]="%2B",u[44]="%2C",u[59]="%3B",u[61]="%3D",u[32]="%20",u)}),define(e[12],t([0,1,9]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathFromAmdModule=function(e,t){return n.default.parse(e.toUrl(t)).fsPath}});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]}),u=r.apply({},s);e[t]=o?i:u};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),u=Array.isArray(e);for(i=0,o=s.length;i<o;i++){var c=s[i],a=95!==c.charCodeAt(0),l=t[c];!l||"object"!=typeof l||void 0===l.value&&"function"!=typeof l.get&&"function"!=typeof l.set?a?u?e.forEach(function(e){e[c]=l}):e[c]=l:(r=r||{})[c]={value:l,enumerable:a,configurable:!0,writable:!0}:(void 0===l.enumerable&&(l.enumerable=a),n&&l.setName&&"function"==typeof l.setName&&l.setName(n+"."+c),(r=r||{})[c]=l)}r&&(u?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,u=o.length;s<u;s++){var c=o[s];i[c]||Object.defineProperty(i,c,{
value:{},writable:!1,enumerable:!0,configurable:!0}),i=i[c]}}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 u={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=u.uninitialized;return{setName:function(e){t=e},get:function(){switch(i){case u.initialized:return n;case u.uninitialized:i=u.working;try{r("WinJS.Namespace._lazy:"+t+",StartTM"),n=e()}finally{r("WinJS.Namespace._lazy:"+t+",StopTM"),i=u.uninitialized}return e=null,i=u.initialized,n;case u.working:throw"Illegal: reentrancy on initialization";default:throw"Illegal"}},set:function(e){switch(i){case u.working:throw"Illegal: reentrancy on initialization";default:i=u.initialized,n=e}},enumerable:!0,configurable:!0}},writable:!0,enumerable:!0,
configurable:!0},_moduleDefine:{value:function(e,r,o){var s=[e],u=null;return r&&(u=n(t,r),s.push(u)),i(s,o,r||"<ANONYMOUS>"),u},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 u=e.prototype;return r.prototype=Object.create(u),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 u(e,t){var n;n=t&&"object"==typeof t&&"function"==typeof t.then?k:I,e._value=t,e._setState(n)}function c(e,t,n,r,i,o){return{exception:e,error:t,promise:n,
handler:o,id:r,parent:i}}function a(e,t,n,r){var i=n._isException,o=n._errorId;return c(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),c(r?t:null,r?null:t,e,i,n)}function f(e,t){var n=++W;return b(e,n),c(null,t,e,n)}function h(e,t){var n=++W;return b(e,n,!0),c(t,null,e,n)}function p(e,t,n,r){_(e,{c:t,e:n,p:r,asyncOpID:o._traceAsyncOperationStarting("WinJS.Promise.done")})}function d(e,t,n,r){e._value=t,g(e,t,n,r),e._setState(q)}function v(t,n){var r=t._value,i=t._listeners;if(i){t._listeners=null;var s,u;for(s=0,u=Array.isArray(i)?i.length:1;s<u;s++){var c=1===u?i:i[s],a=c.c,l=c.promise;if(o._traceAsyncOperationCompleted(c.asyncOpID,e.Debug&&e.Debug.MS_ASYNC_OP_STATUS_SUCCESS),l){o._traceAsyncCallbackStarting(c.asyncOpID);try{l._setCompleteValue(a?a(r):r)}catch(e){l._setExceptionValue(e)}finally{o._traceAsyncCallbackCompleted()}l._state!==k&&l._listeners&&n.push(l)}else V.prototype.done.call(t,a)}}}function m(t,n){var r=t._value,i=t._listeners;if(i){
t._listeners=null;var s,u;for(s=0,u=Array.isArray(i)?i.length:1;s<u;s++){var c=1===u?i:i[s],l=c.e,f=c.promise,h=e.Debug&&(r&&r.name===D?e.Debug.MS_ASYNC_OP_STATUS_CANCELED:e.Debug.MS_ASYNC_OP_STATUS_ERROR);if(o._traceAsyncOperationCompleted(c.asyncOpID,h),f){var p=!1;try{l?(o._traceAsyncCallbackStarting(c.asyncOpID),p=!0,l.handlesOnError||g(f,r,a,t,l),f._setCompleteValue(l(r))):f._setChainedErrorValue(r,t)}catch(e){f._setExceptionValue(e)}finally{p&&o._traceAsyncCallbackCompleted()}f._state!==k&&f._listeners&&n.push(f)}else J.prototype.done.call(t,null,l)}}}function g(e,t,n,r,i){if(P._listeners[S]){if(t instanceof Error&&t.message===D)return;P.dispatchEvent(S,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,g(e,t,n,r),e._setState(N)}function E(e,t){var n;n=t&&"object"==typeof t&&"function"==typeof t.then?k:F,e._value=t,e._setState(n)}function w(e,t,n,r){var i=new B(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 P=new(n.Class.mix(n.Class.define(null,{},{supportedForProcessing:!1}),i.eventMixin));P._listeners={};var S="error",D="Canceled",A=!1,O={promise:1,thenPromise:2,errorPromise:4,exceptionPromise:8,completePromise:16};O.all=O.promise|O.thenPromise|O.errorPromise|O.exceptionPromise|O.completePromise;var L,x,k,T,R,j,I,F,q,N,W=1;L={name:"created",enter:function(e){e._setState(x)},cancel:s,done:s,then:s,_completed:s,_error:s,_notify:s,_progress:s,_setCompleteValue:s,_setErrorValue:s},x={name:"working",enter:s,cancel:function(e){e._setState(R)},done:p,then:w,_completed:u,_error:d,_notify:s,_progress:y,_setCompleteValue:E,_setErrorValue:C},k={name:"waiting",enter:function(e){
var t=e._value;if(t instanceof B&&t._state!==N&&t._state!==F)_(t,{promise:e});else{var n=function(r){t._errorId?e._chainedError(r,t):(g(e,r,a,t,n),e._error(r))};n.handlesOnError=!0,t.then(e._completed.bind(e),n,e._progress.bind(e))}},cancel:function(e){e._setState(T)},done:p,then:w,_completed:u,_error:d,_notify:s,_progress:y,_setCompleteValue:E,_setErrorValue:C},T={name:"waiting_canceled",enter:function(e){e._setState(j);var t=e._value;t.cancel&&t.cancel()},cancel:s,done:p,then:w,_completed:u,_error:d,_notify:s,_progress:y,_setCompleteValue:E,_setErrorValue:C},R={name:"canceled",enter:function(e){e._setState(j),e._cancelAction()},cancel:s,done:p,then:w,_completed:u,_error:d,_notify:s,_progress:y,_setCompleteValue:E,_setErrorValue:C},j={name:"canceling",enter:function(e){var t=new Error(D);t.name=t.message,e._value=t,e._setState(q)},cancel:s,done:s,then:s,_completed:s,_error:s,_notify:s,_progress:s,_setCompleteValue:s,_setErrorValue:s},I={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:v,_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:v,_progress:s,_setCompleteValue:s,_setErrorValue:s},q={name:"error_notify",enter:function(e){if(e.done=J.prototype.done,e.then=J.prototype.then,e._listeners)for(var t,n=[e];n.length;)(t=n.shift())._state._notify(t,n);e._setState(N)},cancel:s,done:null,then:null,_completed:s,_error:s,_notify:m,_progress:s,_setCompleteValue:s,_setErrorValue:s},N={name:"error",enter:function(e){e.done=J.prototype.done,e.then=J.prototype.then,e._cleanupAction()},cancel:s,done:null,then:null,_completed:s,_error:s,_notify:m,_progress:s,_setCompleteValue:s,_setErrorValue:s};var U,M=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,h);return this._run(),t},_run:function(){for(;this._nextState;)this._state=this._nextState,this._nextState=null,this._state.enter(this)}},{supportedForProcessing:!1}),B=n.Class.derive(M,function(e){
A&&(!0===A||A&O.thenPromise)&&(this._stack=G._getStack()),this._creator=e,this._setState(L),this._run()},{_creator:null,_cancelAction:function(){this._creator&&this._creator.cancel()},_cleanupAction:function(){this._creator=null}},{supportedForProcessing:!1}),J=n.Class.define(function(e){A&&(!0===A||A&O.errorPromise)&&(this._stack=G._getStack()),this._value=e,g(this,e,f)},{cancel:function(){},done:function(e,t){var n=this._value;if(t)try{t.handlesOnError||g(null,n,a,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===D||G._doneHandler(n)},then:function(e,t){if(!t)return this;var n,r=this._value;try{t.handlesOnError||g(null,r,a,this,t),n=new V(t(r))}catch(e){n=e===r?this:new z(e)}return n}},{supportedForProcessing:!1}),z=n.Class.derive(J,function(e){A&&(!0===A||A&O.exceptionPromise)&&(this._stack=G._getStack()),this._value=e,g(this,e,h)},{},{supportedForProcessing:!1}),V=n.Class.define(function(e){
if(A&&(!0===A||A&O.completePromise)&&(this._stack=G._getStack()),e&&"object"==typeof e&&"function"==typeof e.then){var t=new B(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){G._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 z(e)}}},{supportedForProcessing:!1}),G=n.Class.derive(M,function(e,t){A&&(!0===A||A&O.promise)&&(this._stack=G._getStack()),this._oncancel=t,this._setState(L),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;P.dispatchEvent("error",e)}},_cleanupAction:function(){this._oncancel=null}},{addEventListener:function(e,t,n){
P.addEventListener(e,t,n)},any:function(e){return new G(function(t,n){var r=Object.keys(e);0===r.length&&t();var i=0;r.forEach(function(o){G.as(e[o]).then(function(){t({key:o,value:e[o]})},function(s){s instanceof Error&&s.name===D?++i===r.length&&t(G.cancel):n({key:o,value:e[o]})})})},function(){Object.keys(e).forEach(function(t){var n=G.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 U=U||new J(new r(D))}},dispatchEvent:function(e,t){return P.dispatchEvent(e,t)},is:function(e){return e&&"object"==typeof e&&"function"==typeof e.then},join:function(e){return new G(function(t,n,r){var i=Object.keys(e),o=Array.isArray(e)?[]:{},s=Array.isArray(e)?[]:{},u=0,c=i.length,a=function(e){if(0==--c){var u=Object.keys(o).length;if(0===u)t(s);else{var a=0;i.forEach(function(e){var t=o[e];t instanceof Error&&t.name===D&&a++}),a===u?t(G.cancel):n(o)}}else r({Key:e,Done:!0})};i.forEach(function(t){var n=e[t]
;void 0===n?u++:G.then(n,function(e){s[t]=e,a(t)},function(e){o[t]=e,a(t)})}),0!==(c-=u)||t(s)},function(){Object.keys(e).forEach(function(t){var n=G.as(e[t]);"function"==typeof n.cancel&&n.cancel()})})},removeEventListener:function(e,t,n){P.removeEventListener(e,t,n)},supportedForProcessing:!1,then:function(e,t,n,r){return G.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]=G.as(e[o]).then(t,n,r)}),G.join(i)},timeout:function(n,r){var i=function(n){var r;return new G(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 J(e)},_veryExpensiveTagWithStack:{get:function(){return A},set:function(e){A=e}},_veryExpensiveTagWithStack_tag:O,_getStack:function(){if(e.Debug&&e.Debug.debuggerEnabled)try{throw new Error}catch(e){
return e.stack}},_cancelBlocker:function(e,t){if(!G.is(e))return G.wrap(e);var n,r,i=new G(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(G,i.createEventProperties(S)),G._doneHandler=function(e){t._setImmediate(function(){throw e})},{PromiseStateMachine:M,Promise:G,state_created:L}}),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[8],t([0,1,2]),function(e,t,n){"use strict";function r(e){i(e)||t.errorHandler.onUnexpectedError(e)}function i(e){return e instanceof Error&&e.name===u&&e.message===u}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 u="Canceled";t.isPromiseCanceledError=i,t.canceled=function(){var e=new Error(u);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{c(r.next(e))}catch(e){o(e)}}function u(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(s,u)}c((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(;u;)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 u.label++,{value:n[1],done:!1};case 5:u.label++,i=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(o=u.trys,!(o=o.length>0&&o[o.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!o||n[1]>o[0]&&n[1]<o[3])){u.label=n[1];break}if(6===n[0]&&u.label<o[1]){u.label=o[1],o=n;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(n);break}o[2]&&u.ops.pop(),u.trys.pop();continue}n=t.call(e,u)}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,u={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[4],t([0,1,8,10,3,15,2]),function(e,t,r,s,u,c,a){"use strict";function l(e){return function(t,n,r){void 0===n&&(n=null);var i=e(function(e){return i.dispose(),t.call(n,e)},null,r);return i}}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 h(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 p(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 d(e){var t,n=!0;return p(e,function(e){var r=n||e!==t;return n=!1,t=e,r})}Object.defineProperty(t,"__esModule",{value:!0});!function(e){var t={dispose:function(){}};e.None=function(){return t}}(t.Event||(t.Event={}));var v=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 c.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 u;return u={dispose:function(){u.dispose=e._noop,t._disposed||(s(),t._options&&t._options.onLastListenerRemove&&t._listeners.isEmpty()&&t._options.onLastListenerRemove(t))}},Array.isArray(i)&&i.push(u),u}),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=v;var m=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,u,c;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())c=[],this._asyncDeliveryQueue.push([n.value,e(c,"function"==typeof n.value?n.value:n.value[0]),c]);o.label=1;case 1:if(!(this._asyncDeliveryQueue.length>0))return[3,3];i=this._asyncDeliveryQueue.shift(),s=i[0],u=i[1],c=i[2];try{"function"==typeof s?s.call(void 0,u):s[0].call(s[1],u)}catch(e){return r.onUnexpectedError(e),[3,1]}return Object.freeze(c),[4,Promise.all(c)];case 2:return o.sent(),[3,1];case 3:return[2]}})})},t}(v);t.AsyncEmitter=m;var g=function(){function e(){var e=this;this.hasListeners=!1,this.events=[],this.emitter=new v({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 u.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=g,t.fromCallback=function(e){var t,n=new v({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 v,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 a.TPromise(function(t){var n=e(function(e){n.dispose(),t(e)})})},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),u.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,u=0,c=new v({onFirstListenerAdd:function(){i=e(function(e){u++,o=t(o,e),r&&!s&&c.fire(o),clearTimeout(s),s=setTimeout(function(){var e=o;o=void 0,s=void 0,(!r||u>1)&&c.fire(e),u=0},n)})},onLastListenerRemove:function(){i.dispose()}});return c.event};var y=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=y,t.mapEvent=f,t.forEach=h,t.filterEvent=p;var _=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(h(this._event,t))},e.prototype.filter=function(t){return new e(p(this._event,t))},e.prototype.latch=function(){return new e(d(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 _(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 v({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 v({onListenerDidAdd:function(e,n,i){t?setTimeout(function(){return r(n,i)}):r(n,i)}});return i.event};var b=function(){function e(){this.emitter=new v,this.event=this.emitter.event,this.disposable=u.Disposable.None}return Object.defineProperty(e.prototype,"input",{set:function(e){this.disposable.dispose(),this.disposable=e(this.emitter.fire,this.emitter)},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){this.disposable.dispose(),this.emitter.dispose()},e}();t.Relay=b,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 v({onFirstListenerAdd:function(){return e.on(t,r)},onLastListenerRemove:function(){return e.removeListener(t,r)}});return i.event},t.latch=d}),define(e[16],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.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[17],t([0,1,8,2,16,3,4]),function(e,t,r,i,o,s,u){"use strict";function c(e){return e&&"function"==typeof e.then}function a(e){var t=new o.CancellationTokenSource,n=e(t.token),i=new Promise(function(e,i){
t.token.onCancellationRequested(function(){i(r.canceled())}),Promise.resolve(n).then(function(n){t.dispose(),e(n)},function(e){t.dispose(),i(e)})});return new(function(){function e(){}return e.prototype.cancel=function(){t.cancel()},e.prototype.then=function(e,t){return i.then(e,t)},e.prototype.catch=function(e){return this.then(void 0,e)},e}())}function l(e){return c(e)&&"function"==typeof e.done}function f(e,t){return l(e)?new i.TPromise(function(n,i){e.done(function(e){try{t(e)}catch(e){r.onUnexpectedError(e)}n(e)},function(e){try{t(e)}catch(e){r.onUnexpectedError(e)}i(e)})},function(){e.cancel()}):(e.then(function(e){return t()},function(e){return t()}),e)}function h(e){function t(s){void 0!==s&&null!==s&&n.push(s);var u=r<o?e[r++]():null;return u?u.then(t):i.TPromise.as(n)}var n=[],r=0,o=e.length;return i.TPromise.as(null).then(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isThenable=c,t.toThenable=function(e){return c(e)?e:i.TPromise.as(e)},t.toWinJsPromise=function(e){
return e instanceof i.TPromise?e:new i.TPromise(function(t,n){return e.then(t,n)})},t.createCancelablePromise=a,t.asWinJsPromise=function(e){var t=new o.CancellationTokenSource;return new i.TPromise(function(n,r){var o=e(t.token);o instanceof i.TPromise?o.then(function(e){t.dispose(),n(e)},function(e){t.dispose(),r(e)}):c(o)?o.then(function(e){t.dispose(),n(e)},function(e){t.dispose(),r(e)}):(t.dispose(),n(o))},function(){t.cancel()})},t.wireCancellationToken=function(e,t,n){var o=e.onCancellationRequested(function(){return t.cancel()});return n&&(t=t.then(void 0,function(e){if(!r.isPromiseCanceledError(e))return i.TPromise.wrapError(e)})),f(t,function(){return o.dispose()})},t.asDisposablePromise=function(e,t,n){var o,s={promise:new i.TPromise(function(n,i){o=function(){n(t),l(e)&&e.cancel()},e.then(n,function(e){r.isPromiseCanceledError(e)?n(t):i(e)})}),dispose:o};return Array.isArray(n)&&n.push(s),s};var p=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 i.TPromise(function(e){t.activePromise.then(n,n).done(e)},function(){t.activePromise.cancel()})}return new i.TPromise(function(e,n){t.queuedPromise.then(e,n)},function(){})}return this.activePromise=e(),new i.TPromise(function(e,n){t.activePromise.done(function(n){t.activePromise=null,e(n)},function(e){t.activePromise=null,n(e)})},function(){t.activePromise.cancel()})},e}();t.Throttler=p;var d=function(){function e(){this.current=i.TPromise.wrap(null)}return e.prototype.queue=function(e){return this.current=this.current.then(function(){return e()})},e}();t.SimpleThrottler=d;var v=function(){function e(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.onSuccess=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 i.TPromise(function(e){n.onSuccess=e},function(){}).then(function(){n.completionPromise=null,n.onSuccess=null;var e=n.task;return n.task=null,e()})),this.timeout=setTimeout(function(){n.timeout=null,n.onSuccess(null)},t),this.completionPromise},e.prototype.isTriggered=function(){return null!==this.timeout},e.prototype.cancel=function(){this.cancelTimeout(),this.completionPromise&&(this.completionPromise.cancel(),this.completionPromise=null)},e.prototype.cancelTimeout=function(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)},e}();t.Delayer=v;var m=function(e){function t(t){var n=e.call(this,t)||this;return n.throttler=new p,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}(v);t.ThrottledDelayer=m;var g=function(){
function e(){var e=this;this._isOpen=!1,this._promise=new i.TPromise(function(t,n){e._completePromise=t},function(){console.warn("You should really not try to cancel this ready promise!")})}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=g;var y=function(e){function t(t){var n,i,o=this;return o=e.call(this,function(e,t){n=e,i=t},function(){i(r.canceled())})||this,t.then(n,i),o}return n(t,e),t}(i.TPromise);t.ShallowCancelThenPromise=y,t.timeout=function(e){return a(function(t){return new Promise(function(n,i){var o=setTimeout(n,e);t.onCancellationRequested(function(e){clearTimeout(o),i(r.canceled())})})})},t.isWinJSPromise=l,t.always=f,t.sequence=h,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,o=e.length,s=function(){return r>=o?i.TPromise.as(n):(0,e[r++])().then(function(e){return t(e)?i.TPromise.as(e):s()})};return s()};var _=function(){function e(e){this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new u.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 i.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.done(t.c,t.e),n.done(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=_;var b=function(e){function t(){return e.call(this,1)||this}return n(t,e),t}(_);t.Queue=b;var C=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 b;r.onFinished(function(){r.dispose(),delete t.queues[n]}),this.queues[n]=r}return this.queues[n]},e}();t.ResourceQueue=C,t.setDisposableTimeout=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=setTimeout.apply(void 0,[e,t].concat(n));return{dispose:function(){clearTimeout(i)}}};var E=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&&(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=E;var w=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=w;var P=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=P;var S=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}(P);t.RunOnceWorker=S,t.nfcall=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new i.TPromise(function(n,r){return e.apply(void 0,t.concat([function(e,t){return e?r(e):n(t)}]))},function(){return null})},t.ninvoke=function(e,t){
for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return new i.TPromise(function(r,i){return t.call.apply(t,[e].concat(n,[function(e,t){return e?i(e):r(t)}]))},function(){return null})}}),define(e[18],t([0,1,9]),function(e,t,n){"use strict";function r(e){var t,n=[];try{var r=JSON.parse(e.arguments),i=r[r.length-1];i&&i.__$stack&&(r.pop(),t=i.__$stack),n.push.apply(n,r)}catch(t){n.push("Unable to log remote console arguments",e.arguments)}return{args:n,stack:t}}function i(e){if("string"!=typeof e)return i(r(e).stack);var t=e;if(t){var s=o(t),u=/at [^\/]*((?:(?:[a-zA-Z]+:)|(?:[\/])|(?:\\\\))(?:.+)):(\d+):(\d+)/.exec(s);if(u&&4===u.length)return{uri:n.default.file(u[1]),line:Number(u[2]),column:Number(u[3])}}}function o(e){if(!e)return e;var t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function s(e){return"color: "+e}Object.defineProperty(t,"__esModule",{value:!0}),t.isRemoteConsoleLog=function(e){var t=e;return t&&"string"==typeof t.type&&"string"==typeof t.severity},t.parse=r,t.getFirstFrame=i,
t.log=function(e,t){var n=r(e),i=n.args,u=n.stack,c="string"==typeof i[0]&&1===i.length,a=o(u);a&&(a="("+a.trim()+")");var l=[];l="string"==typeof i[0]?a&&c?["%c["+t+"] %c"+i[0]+" %c"+a,s("blue"),s("black"),s("grey")]:["%c["+t+"] %c"+i[0],s("blue"),s("black")].concat(i.slice(1)):["%c["+t+"]%",s("blue")].concat(i),a&&!c&&l.push(a),console[e.severity].apply(console,l)}}),define(e[19],t([0,1,33]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){void 0===e&&(e="utf8"),this.stringDecoder=new n.StringDecoder(e),this.remaining=null}return e.prototype.write=function(e){var t=[],n=this.remaining?this.remaining+this.stringDecoder.write(e):this.stringDecoder.write(e);if(n.length<1)return t;for(var r,i=0,o=i;o<n.length;)if(13===(r=n.charCodeAt(o))||10===r){if(t.push(n.substring(i,o)),++o<n.length){var s=r;r=n.charCodeAt(o),(13===s&&10===r||10===s&&13===r)&&o++}i=o}else o++;return this.remaining=i<n.length?n.substr(i):null,t},e.prototype.end=function(){
return this.remaining},e}();t.LineDecoder=r}),define(e[21],t([0,1,2,3,4]),function(e,t,n,r,i){"use strict";function o(e,t){void 0===t&&(t=void 0);var n=Buffer.allocUnsafe(4),r=function(e){return void 0===e?{buffer:h,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 s(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 u(e){return{call:function(t,n){return e.then(function(e){return e.call(t,n)})},listen:function(t,n){var r=new i.Relay;return e.then(function(e){return r.input=e.listen(t,n)}),r.event}}}
Object.defineProperty(t,"__esModule",{value:!0});var c;!function(e){e[e.Promise=100]="Promise",e[e.PromiseCancel=101]="PromiseCancel",e[e.EventListen=102]="EventListen",e[e.EventDispose=103]="EventDispose"}(c=t.RequestType||(t.RequestType={}));var a;!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"}(a=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 h=Buffer.allocUnsafe(0),p=function(){function e(e){var t=this;this.protocol=e,this.channels=Object.create(null),this.activeRequests=Object.create(null),this.protocolListener=this.protocol.onMessage(function(e){return t.onRawMessage(e)}),this.sendResponse({type:a.Initialize})}
return e.prototype.registerChannel=function(e,t){this.channels[e]=t},e.prototype.onPromise=function(e){var t,i=this,o=this.channels[e.channelName];try{t=o.call(e.name,e.arg)}catch(e){t=n.TPromise.wrapError(e)}var s=e.id,u=t.then(function(t){i.sendResponse({id:s,data:t,type:a.PromiseSuccess}),delete i.activeRequests[e.id]},function(t){t instanceof Error?i.sendResponse({id:s,data:{message:t.message,name:t.name,stack:t.stack?t.stack.split?t.stack.split("\n"):t.stack:void 0},type:a.PromiseError}):i.sendResponse({id:s,data:t,type:a.PromiseErrorObj}),delete i.activeRequests[e.id]});this.activeRequests[e.id]=r.toDisposable(function(){return u.cancel()})},e.prototype.onEventListen=function(e){var t=this,n=this.channels[e.channelName],r=e.id,i=n.listen(e.name,e.arg)(function(e){return t.sendResponse({id:r,data:e,type:a.EventFire})});this.activeRequests[e.id]=i},e.prototype.disposeActiveRequest=function(e){var t=this.activeRequests[e.id];t&&(t.dispose(),delete this.activeRequests[e.id])},
e.prototype.onRawMessage=function(e){var t,n=s(e),r=n.header,i=n.body;switch(r[0]){case c.Promise:case c.EventListen:t={type:r[0],id:r[1],channelName:r[2],name:r[3],arg:i};break;case c.PromiseCancel:case c.EventDispose:t={type:r[0],id:r[1]};break;default:return}this.onRequest(t)},e.prototype.onRequest=function(e){switch(e.type){case c.Promise:this.onPromise(e);break;case c.EventListen:this.onEventListen(e);break;case c.PromiseCancel:case c.EventDispose:this.disposeActiveRequest(e)}},e.prototype.sendResponse=function(e){var t;switch(e.type){case a.Initialize:t=o([e.type]);break;case a.PromiseSuccess:case a.PromiseError:case a.EventFire:case a.PromiseErrorObj:t=o([e.type,e.id],e.data)}this.sendRawMessage(t)},e.prototype.sendRawMessage=function(e){try{this.protocol.send(e)}catch(e){}},e.prototype.dispose=function(){var e=this;this.protocolListener.dispose(),this.protocolListener=null,Object.keys(this.activeRequests).forEach(function(t){e.activeRequests[t].dispose()}),this.activeRequests=null},e}()
;t.ChannelServer=p;var d=function(){function e(e){var t=this;this.protocol=e,this.state=l.Uninitialized,this.activeRequests=[],this.bufferedRequests=[],this.handlers=Object.create(null),this.lastRequestId=0,this._onDidInitialize=new i.Emitter,this.onDidInitialize=this._onDidInitialize.event,this.protocolListener=this.protocol.onMessage(function(e){return t.onRawMessage(e)})}return e.prototype.getChannel=function(e){var t=this;return{call:function(n,r){return t.requestPromise(e,n,r)},listen:function(n,r){return t.requestEvent(e,n,r)}}},e.prototype.requestPromise=function(e,t,n){var i=this,o={raw:{id:this.lastRequestId++,type:c.Promise,channelName:e,name:t,arg:n}},s=this.state===l.Uninitialized?this.bufferRequest(o):this.doRequest(o),u=r.toDisposable(function(){return s.cancel()});return this.activeRequests.push(u),s.then(null,function(e){return null}).done(function(){return i.activeRequests=i.activeRequests.filter(function(e){return e!==u})}),s},e.prototype.requestEvent=function(e,t,n){
var r=this,o=this.lastRequestId++,s={raw:{id:o,type:c.EventListen,channelName:e,name:t,arg:n}},u=null,a=new i.Emitter({onFirstListenerAdd:function(){(u=r.whenInitialized()).then(function(){u=null,r.sendRequest(s.raw)})},onLastListenerRemove:function(){u?(u.cancel(),u=null):r.sendRequest({id:o,type:c.EventDispose})}});return this.handlers[o]=function(e){return a.fire(e.data)},a.event},e.prototype.doRequest=function(e){var t=this,r=e.raw.id;return new n.TPromise(function(n,i){t.handlers[r]=function(e){switch(e.type){case a.PromiseSuccess:delete t.handlers[r],n(e.data);break;case a.PromiseError:delete t.handlers[r];var o=new Error(e.data.message);o.stack=e.data.stack,o.name=e.data.name,i(o);break;case a.PromiseErrorObj:delete t.handlers[r],i(e.data)}},t.sendRequest(e.raw)},function(){return t.sendRequest({id:r,type:c.PromiseCancel})})},e.prototype.bufferRequest=function(e){var t=this,r=null;return new n.TPromise(function(n,i){t.bufferedRequests.push(e),e.flush=function(){e.flush=null,r=t.doRequest(e).then(n,i)}
},function(){if(e.flush=null,t.state===l.Uninitialized){var n=t.bufferedRequests.indexOf(e);-1!==n&&t.bufferedRequests.splice(n,1)}else r&&(r.cancel(),r=null)})},e.prototype.onRawMessage=function(e){var t,n=s(e),r=n.header,i=n.body;switch(r[0]){case a.Initialize:t={type:r[0]};break;case a.PromiseSuccess:case a.PromiseError:case a.EventFire:case a.PromiseErrorObj:t={type:r[0],id:r[1],data:i};break;default:return}this.onResponse(t)},e.prototype.onResponse=function(e){if(e.type===a.Initialize)return this.state=l.Idle,this._onDidInitialize.fire(),this.bufferedRequests.forEach(function(e){return e.flush&&e.flush()}),void(this.bufferedRequests=null);var t=this.handlers[e.id];t&&t(e)},e.prototype.sendRequest=function(e){var t;switch(e.type){case c.Promise:case c.EventListen:t=o([e.type,e.id,e.channelName,e.name],e.arg);break;case c.PromiseCancel:case c.EventDispose:t=o([e.type,e.id])}this.sendRawMessage(t)},e.prototype.sendRawMessage=function(e){try{this.protocol.send(e)}catch(e){}},
e.prototype.whenInitialized=function(){return this.state===l.Idle?n.TPromise.as(null):n.TPromise.wrap(i.toPromise(this.onDidInitialize))},e.prototype.dispose=function(){this.protocolListener.dispose(),this.protocolListener=null,this.activeRequests=r.dispose(this.activeRequests)},e}();t.ChannelClient=d;var v=function(){function e(e){var t=this;this.channels=Object.create(null),this.channelClients=Object.create(null),this.onClientAdded=new i.Emitter,e(function(e){var n=e.protocol,r=e.onDidClientDisconnect;i.once(n.onMessage)(function(e){var i=new p(n),o=new d(n);Object.keys(t.channels).forEach(function(e){return i.registerChannel(e,t.channels[e])});var s=e.toString();t.channelClients[s]=o,t.onClientAdded.fire(s),r(function(){i.dispose(),o.dispose(),delete t.channelClients[s]})})})}return e.prototype.getChannel=function(e,t){var n=this;return{call:function(r,i){return u(t.routeCall(r,i).then(function(e){return n.getClient(e)}).then(function(t){return t.getChannel(e)})).call(r,i)},listen:function(r,i){
return u(t.routeEvent(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[e]=t},e.prototype.getClient=function(e){var t=this;if(!e)return n.TPromise.wrapError(new Error("Client id should be provided"));var r=this.channelClients[e];return r?n.TPromise.as(r):new n.TPromise(function(n){i.once(i.filterEvent(t.onClientAdded.event,function(t){return t===e}))(function(){return n(t.channelClients[e])})})},e.prototype.dispose=function(){this.channels=Object.create(null),this.channelClients=Object.create(null),this.onClientAdded.dispose()},e}();t.IPCServer=v;var m=function(){function e(e,t){e.send(Buffer.from(t)),this.channelClient=new d(e),this.channelServer=new p(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=u,t.getNextTickChannel=function(e){var t=!1;return{call:function(r,i){return t?e.call(r,i):n.TPromise.timeout(0).then(function(){return t=!0}).then(function(){return e.call(r,i)})},listen:function(r,o){if(t)return e.listen(r,o);var s=new i.Relay;return n.TPromise.timeout(0).then(function(){return t=!0}).then(function(){return s.input=e.listen(r,o)}),s.event}}}}),define(e[22],t([31,30]),function(e,t){return e.create("vs/base/node/processes",t)}),define(e[25],t([0,1,29,27,22,2,6,7,14,5,19,11,12]),function(e,t,r,i,o,s,u,c,a,l,f,h,p){"use strict";function d(t,n){if(l.isWindows)try{var r={stdio:["pipe","pipe","ignore"]};n&&(r.cwd=n),i.execFileSync("taskkill",["/T","/F","/PID",t.pid.toString()],r)}catch(e){return{success:!1,error:e,code:e.status?function(e){switch(e){case 0:return h.TerminateResponseCode.Success;case 1:return h.TerminateResponseCode.AccessDenied;case 128:
return h.TerminateResponseCode.ProcessNotFound;default:return h.TerminateResponseCode.Unknown}}(e.status):h.TerminateResponseCode.Unknown}}else if(l.isLinux||l.isMacintosh)try{var o=p.getPathFromAmdModule(e,"vs/base/node/terminateProcess.sh"),s=i.spawnSync(o,[t.pid.toString()]);if(s.error)return{success:!1,error:s.error}}catch(e){return{success:!1,error:e}}else t.kill("SIGKILL");return{success:!0}}function v(){return process.env.comspec||"cmd.exe"}Object.defineProperty(t,"__esModule",{value:!0}),t.Source=h.Source,t.TerminateResponseCode=h.TerminateResponseCode,t.terminateProcess=d,t.getWindowsShell=v;var m=function(){function e(e,t,n,r){var i=this;if(void 0!==t&&void 0!==n&&void 0!==r)this.cmd=e,this.args=t,this.shell=n,this.options=r;else{var o=e;this.cmd=o.command,this.shell=o.isShellCommand,this.args=o.args.slice(0),this.options=o.options||{}}if(this.childProcess=null,this.terminateRequested=!1,this.options.env){var s=Object.create(null);Object.keys(process.env).forEach(function(e){s[e]=process.env[e]}),
Object.keys(this.options.env).forEach(function(e){s[e]=i.options.env[e]}),this.options.env=s}}return e.prototype.getSanitizedCommand=function(){var t=this.cmd.toLowerCase(),n=t.lastIndexOf(r.sep);return-1!==n&&(t=t.substring(n+1)),e.WellKnowCommands[t]?t:"other"},e.prototype.start=function(e){var t=this;return l.isWindows&&(this.options&&this.options.cwd&&a.isUNC(this.options.cwd)||!this.options&&!this.options.cwd&&a.isUNC(process.cwd()))?s.TPromise.wrapError(new Error(o.localize(0,null))):this.useExec().then(function(n){var r,o,a=new s.TPromise(function(e,t){r=e,o=t});if(n){var f=t.cmd;t.args&&(f=f+" "+t.args.join(" ")),t.childProcess=i.exec(f,t.options,function(n,i,s){t.childProcess=null;var u=n;u&&u.killed?o({killed:t.terminateRequested,stdout:i.toString(),stderr:s.toString()}):t.handleExec(r,e,n,i,s)})}else{var h=null,p=function(n){t.childProcess=null,t.childProcessPromise=null,t.handleClose(n,r,e,o);var i={terminated:t.terminateRequested};u.isNumber(n)&&(i.cmdCode=n),r(i)};if(t.shell&&l.isWindows){
var d=c.deepClone(t.options);d.windowsVerbatimArguments=!0,d.detached=!1;var m=!1,g=!1,y=[],_=t.ensureQuotes(t.cmd);y.push(_.value),m=_.quoted,t.args&&t.args.forEach(function(e){_=t.ensureQuotes(e),y.push(_.value),g=g&&_.quoted});var b=["/s","/c"];m?g?b.push('"'+y.join(" ")+'"'):y.length>1?b.push('"'+y[0]+'" '+y.slice(1).join(" ")):b.push('"'+y[0]+'"'):b.push(y.join(" ")),h=i.spawn(v(),b,d)}else t.cmd&&(h=i.spawn(t.cmd,t.args,t.options));h&&(t.childProcess=h,t.childProcessPromise=s.TPromise.as(h),t.pidResolve&&(t.pidResolve(u.isNumber(h.pid)?h.pid:-1),t.pidResolve=void 0),h.on("error",function(e){t.childProcess=null,o({terminated:t.terminateRequested,error:e})}),h.pid&&(t.childProcess.on("close",p),t.handleSpawn(h,r,e,o,!0)))}return a})},e.prototype.handleClose=function(e,t,n,r){},e.prototype.ensureQuotes=function(t){return e.regexp.test(t)?{value:'"'+t+'"',quoted:!0}:{value:t,quoted:t.length>0&&'"'===t[0]&&'"'===t[t.length-1]}},Object.defineProperty(e.prototype,"pid",{get:function(){var e=this
;return this.childProcessPromise?this.childProcessPromise.then(function(e){return e.pid},function(e){return-1}):new s.TPromise(function(t){e.pidResolve=t})},enumerable:!0,configurable:!0}),e.prototype.terminate=function(){var e=this;return this.childProcessPromise?this.childProcessPromise.then(function(t){e.terminateRequested=!0;var n=d(t,e.options.cwd);return n.success&&(e.childProcess=null),n},function(e){return{success:!0}}):s.TPromise.as({success:!0})},e.prototype.useExec=function(){var e=this;return new s.TPromise(function(t,n){e.shell&&l.isWindows||t(!1);var r=i.spawn(v(),["/s","/c"]);r.on("error",function(e){t(!0)}),r.on("exit",function(e){t(!1)})})},e.WellKnowCommands={ant:!0,cmake:!0,eslint:!0,gradle:!0,grunt:!0,gulp:!0,jake:!0,jenkins:!0,jshint:!0,make:!0,maven:!0,msbuild:!0,msc:!0,nmake:!0,npm:!0,rake:!0,tsc:!0,xbuild:!0},e.regexp=/^[^"].* .*[^"]/,e}();t.AbstractProcess=m;var g=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return n(t,e),
t.prototype.handleExec=function(e,t,n,r,i){[r,i].forEach(function(e,n){var r=new f.LineDecoder;r.write(e).forEach(function(e){t({line:e,source:0===n?h.Source.stdout:h.Source.stderr})});var i=r.end();i&&t({line:i,source:0===n?h.Source.stdout:h.Source.stderr})}),e({terminated:this.terminateRequested,error:n})},t.prototype.handleSpawn=function(e,t,n,r,i){var o=this;this.stdoutLineDecoder=new f.LineDecoder,this.stderrLineDecoder=new f.LineDecoder,e.stdout.on("data",function(e){o.stdoutLineDecoder.write(e).forEach(function(e){return n({line:e,source:h.Source.stdout})})}),e.stderr.on("data",function(e){o.stderrLineDecoder.write(e).forEach(function(e){return n({line:e,source:h.Source.stderr})})})},t.prototype.handleClose=function(e,t,n,r){[this.stdoutLineDecoder.end(),this.stderrLineDecoder.end()].forEach(function(e,t){e&&n({line:e,source:0===t?h.Source.stdout:h.Source.stderr})})},t}(m);t.LineProcess=g,t.createQueuedSender=function(e){var t=[],n=!1,r=function(i){n?t.push(i):e.send(i,function(e){
if(e&&console.error(e),n=!1,t.length>0){var i=t.slice(0);t=[],i.forEach(function(e){return r(e)})}})&&!l.isWindows||(n=!0)};return{send:r}}}),define(e[28],t([0,1,27,3,2,17,7,4,25,21,18]),function(e,t,r,i,o,s,u,c,a,l,f){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var h=function(e){function t(){var t=e.call(this,{send:function(e){try{process.send(e.toString("base64"))}catch(e){}},onMessage:c.fromNodeEventEmitter(process,"message",function(e){return Buffer.from(e,"base64")})})||this;return process.once("disconnect",function(){return t.dispose()}),t}return n(t,e),t}(l.ChannelServer);t.Server=h;var p=function(){function e(e,t){this.modulePath=e,this.options=t,this._onDidProcessExit=new c.Emitter,this.onDidProcessExit=this._onDidProcessExit.event;var n=t&&t.timeout?t.timeout:6e4;this.disposeDelayer=new s.Delayer(n),this.activeRequests=[],this.child=null,this._client=null,this.channels=Object.create(null)}return e.prototype.getChannel=function(e){var t=this;return{call:function(n,r){
return t.requestPromise(e,n,r)},listen:function(n,r){return t.requestEvent(e,n,r)}}},e.prototype.requestPromise=function(e,t,n){var r=this;if(!this.disposeDelayer)return o.TPromise.wrapError(new Error("disposed"));this.disposeDelayer.cancel();var s=(this.channels[e]||(this.channels[e]=this.client.getChannel(e))).call(t,n),u=new o.TPromise(function(e,t){s.then(e,t).done(function(){r.activeRequests&&(r.activeRequests.splice(r.activeRequests.indexOf(c),1),0===r.activeRequests.length&&r.disposeDelayer.trigger(function(){return r.disposeClient()}))})},function(){return s.cancel()}),c=i.toDisposable(function(){return u.cancel()});return this.activeRequests.push(c),u},e.prototype.requestEvent=function(e,t,n){var r=this;if(!this.disposeDelayer)return c.Event.None;this.disposeDelayer.cancel();var i,o=new c.Emitter({onFirstListenerAdd:function(){var s=(r.channels[e]||(r.channels[e]=r.client.getChannel(e))).listen(t,n);i=s(o.fire,o),r.activeRequests.push(i)},onLastListenerRemove:function(){
r.activeRequests&&(r.activeRequests.splice(r.activeRequests.indexOf(i),1),i.dispose(),0===r.activeRequests.length&&r.disposeDelayer.trigger(function(){return r.disposeClient()}))}});return o.event},Object.defineProperty(e.prototype,"client",{get:function(){var e=this;if(!this._client){var t=this.options&&this.options.args?this.options.args:[],n=Object.create(null);n.env=u.assign(u.deepClone(process.env),{VSCODE_PARENT_PID:String(process.pid)}),this.options&&this.options.env&&(n.env=u.assign(n.env,this.options.env)),this.options&&this.options.freshExecArgv&&(n.execArgv=[]),this.options&&"number"==typeof this.options.debug&&(n.execArgv=["--nolazy","--inspect="+this.options.debug]),this.options&&"number"==typeof this.options.debugBrk&&(n.execArgv=["--nolazy","--inspect-brk="+this.options.debugBrk]),this.child=r.fork(this.modulePath,t,n);var o=new c.Emitter;c.fromNodeEventEmitter(this.child,"message",function(e){return e})(function(t){
if(f.isRemoteConsoleLog(t))return f.log(t,"IPC Library: "+e.options.serverName),null;o.fire(Buffer.from(t,"base64"))});var s=this.options.useQueue?a.createQueuedSender(this.child):this.child,h={send:function(t){return e.child&&e.child.connected&&s.send(t.toString("base64"))},onMessage:o.event};this._client=new l.ChannelClient(h);var p=function(){return e.disposeClient()};process.once("exit",p),this.child.on("error",function(t){return console.warn('IPC "'+e.options.serverName+'" errored with '+t)}),this.child.on("exit",function(t,n){process.removeListener("exit",p),e.activeRequests&&(e.activeRequests=i.dispose(e.activeRequests)),0!==t&&"SIGTERM"!==n&&(console.warn('IPC "'+e.options.serverName+'" crashed with exit code '+t+" and signal "+n),e.disposeDelayer.cancel(),e.disposeClient()),e._onDidProcessExit.fire({code:t,signal:n})})}return this._client},enumerable:!0,configurable:!0}),e.prototype.disposeClient=function(){this._client&&(this.child.kill(),this.child=null,this._client=null,
this.channels=Object.create(null))},e.prototype.dispose=function(){this._onDidProcessExit.dispose(),this.disposeDelayer.cancel(),this.disposeDelayer=null,this.disposeClient(),this.activeRequests=null},e}();t.Client=p}),define(e[26],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[24],t([0,1,26,3,5,4]),function(e,t,r,i,o,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ILogService=r.createDecorator("logService");var u;!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"}(u=t.LogLevel||(t.LogLevel={})),t.DEFAULT_LOG_LEVEL=u.Info;var c=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=c;var a=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()<=u.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()<=u.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()<=u.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()<=u.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()<=u.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()<=u.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}(c);t.ConsoleLogMainService=a;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()<=u.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()<=u.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()<=u.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()<=u.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()<=u.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()<=u.Critical&&console.log.apply(console,["%cCRITI","background: #f33; color: white",e].concat(t))},r.prototype.dispose=function(){},r}(c);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}(c);t.MultiplexLogService=f;var h=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=h;var p=function(){function e(){this.onDidChangeLogLevel=(new s.Emitter).event}return e.prototype.setLevel=function(e){},e.prototype.getLevel=function(){return u.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=p,t.getLogLevel=function(e){if(e.verbose)return u.Trace;if("string"==typeof e.args.log)switch(e.args.log.toLowerCase()){case"trace":return u.Trace;case"debug":return u.Debug;case"info":return u.Info;case"warn":return u.Warning;case"error":return u.Error;case"critical":return u.Critical;case"off":return u.Off}return t.DEFAULT_LOG_LEVEL}});var s=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 u=e.length-1;u>=0;u--)(i=e[u])&&(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},u=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}};define(e[23],t([0,1,32,6,7,2,24]),function(e,t,n,r,i,o,c){"use strict";function a(e){
!1===l&&(n.setup("2588e01f-f6c9-4cd6-a348-143741f8d702").setAutoCollectConsole(!1).setAutoCollectExceptions(!1).setAutoCollectPerformance(!1).setAutoCollectRequests(!1),l=!0);var t=n.getClient(e);return t.channel.setOfflineMode(!0),t.context.tags[t.context.keys.deviceMachineName]="",0===e.indexOf("AIF-")&&(t.config.endpointUrl="https://vortex.data.microsoft.com/collect/v1"),t}Object.defineProperty(t,"__esModule",{value:!0});var l=!1,f=function(){function e(e,t,n,r){this._eventPrefix=e,this._defaultData=t,this._logService=r,this._defaultData||(this._defaultData=Object.create(null)),"string"==typeof n?this._aiClient=a(n):"function"==typeof n&&(this._aiClient=n())}return e._getData=function(t){var n=Object.create(null),r=Object.create(null),i=Object.create(null);e._flaten(t,i);for(var o in i){var s=i[o=o.length>150?o.substr(o.length-149):o];"number"==typeof s?r[o]=s:"boolean"==typeof s?r[o]=s?1:0:"string"==typeof s?n[o]=s.substring(0,1023):void 0!==s&&null!==s&&(n[o]=s)}return{properties:n,measurements:r}},
e._flaten=function(t,n,o,s){if(void 0===o&&(o=0),t)for(var u=0,c=Object.getOwnPropertyNames(t);u<c.length;u++){var a=c[u],l=t[a],f=s?s+a:a;Array.isArray(l)?n[f]=i.safeStringify(l):l instanceof Date?n[f]=l.toISOString():r.isObject(l)?o<2?e._flaten(l,n,o+1,f+"."):n[f]=i.safeStringify(l):n[f]=l}},e.prototype.log=function(t,n){this._aiClient&&(n=i.mixin(n,this._defaultData),n=e._getData(n),this._logService&&this._logService.trace("telemetry/"+t,n),this._aiClient.trackEvent(this._eventPrefix+"/"+t,n.properties,n.measurements))},e.prototype.dispose=function(){var e=this;if(this._aiClient)return new o.TPromise(function(t){e._aiClient.sendPendingData(function(){e._aiClient=void 0,t(void 0)})})},e=s([u(3,c.ILogService)],e)}();t.AppInsightsAppender=f}),define(e[20],t([0,1,2]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e){this.appender=e}return e.prototype.listen=function(e,t){throw new Error("No events")},e.prototype.call=function(e,t){
var r=t.eventName,i=t.data;return this.appender.log(r,i),n.TPromise.as(null)},e}();t.TelemetryAppenderChannel=r;var i=function(){function e(e){this.channel=e}return e.prototype.log=function(e,t){return this.channel.call("log",{eventName:e,data:t}).done(null,function(e){return"Failed to log telemetry: "+console.warn(e)}),n.TPromise.as(null)},e.prototype.dispose=function(){},e}();t.TelemetryAppenderClient=i}),define(e[34],t([0,1,28,23,20]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=new r.AppInsightsAppender(process.argv[2],JSON.parse(process.argv[3]),process.argv[4]);process.once("exit",function(){return o.dispose()});var s=new i.TelemetryAppenderChannel(o);(new n.Server).registerChannel("telemetryAppender",s)})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/5944e81f3c46a3938a82c701f96d7a59b074cfdc/core/vs/workbench/parts/debug/node/telemetryApp.js.map
