/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){
var e=["exports","require","vs/base/common/path","vs/base/common/platform","vs/base/common/strings","vs/base/common/event","vs/base/common/async","vs/base/common/lifecycle","vs/base/common/uri","vs/base/common/map","vs/base/common/errors","fs","os","vs/base/common/iterator","vs/base/common/amd","vs/platform/environment/node/argv","vs/base/common/arrays","vs/base/common/functional","vs/base/node/encoding","vs/base/node/extfs","vs/base/node/pfs","vs/base/common/types","vs/base/common/extpath","vs/base/common/resources","vs/base/common/uuid","vs/base/node/flow","assert","vs/base/node/ports","vs/platform/product/node/product","vs/base/node/stream","vs/base/common/objects","vs/base/common/cancellation","iconv-lite","child_process","vs/platform/product/node/package","vs/base/common/linkedList","vs/base/common/network","vs/base/common/glob","vs/code/node/wait","vs/nls!vs/platform/environment/node/argv","vs/nls","vs/nls!vs/code/node/cli","vs/nls!vs/platform/environment/node/argvHelper","vs/base/common/normalization","vs/platform/environment/node/argvHelper","vs/platform/instantiation/common/instantiation","vs/platform/files/common/files","minimist","stream","net","vs/code/node/cli"],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([1,0]),function(e,t){"use strict";function n(e){return e instanceof Error&&e.name===i&&e.message===i}Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{if(e.stack)throw new Error(e.message+"\n\n"+e.stack);throw e},0)}}addListener(e){return this.listeners.push(e),()=>{this._removeListener(e)}}emit(e){this.listeners.forEach(t=>{t(e)})}_removeListener(e){this.listeners.splice(this.listeners.indexOf(e),1)}setUnexpectedErrorHandler(e){this.unexpectedErrorHandler=e}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}t.ErrorHandler=r,t.errorHandler=new r,t.setUnexpectedErrorHandler=function(e){t.errorHandler.setUnexpectedErrorHandler(e)},t.onUnexpectedError=function(e){n(e)||t.errorHandler.onUnexpectedError(e)},
t.onUnexpectedExternalError=function(e){n(e)||t.errorHandler.onUnexpectedExternalError(e)},t.transformErrorForSerialization=function(e){if(e instanceof Error){let{name:t,message:n}=e;return{$isError:!0,name:t,message:n,stack:e.stacktrace||e.stack}}return e};const i="Canceled";t.isPromiseCanceledError=n,t.canceled=function(){let e=new Error(i);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){const t=new Error(`${e} has been disposed`);return t.name="DISPOSED",t},t.getErrorMessage=function(e){return e?e.message?e.message:e.stack?e.stack.split("\n")[0]:String(e):"Error"}});var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(i,s){function o(e){try{
a(r.next(e))}catch(e){s(e)}}function l(e){try{a(r.throw(e))}catch(e){s(e)}}function a(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(o,l)}a((r=r.apply(e,t||[])).next())})};define(e[16],t([1,0,10]),function(e,t,r){"use strict";function i(e,t){let n=0,r=e.length;if(0===r)return 0;for(;n<r;){let i=Math.floor((n+r)/2);t(e[i])?r=i:n=i+1}return n}function s(e,t){return o(e,t,0,e.length-1,[]),e}function o(e,t,n,r,i){if(r<=n)return;let s=n+(r-n)/2|0;o(e,t,n,s,i),o(e,t,s+1,r,i),t(e[s],e[s+1])<=0||function(e,t,n,r,i,s){let o=n,l=r+1;for(let t=n;t<=i;t++)s[t]=e[t];for(let a=n;a<=i;a++)o>r?e[a]=s[l++]:l>i?e[a]=s[o++]:t(s[l],s[o])<0?e[a]=s[l++]:e[a]=s[o++]}(e,t,n,s,r,i)}function l(e,t,n){function r(e,t,n){if(0===t&&0===n.length)return;const r=i[i.length-1];r&&r.start+r.deleteCount===e?(r.deleteCount+=t,r.toInsert.push(...n)):i.push({start:e,deleteCount:t,toInsert:n})}const i=[];let s=0,o=0;for(;;){if(s===e.length){r(s,0,t.slice(o));break}if(o===t.length){r(s,e.length-s,[]);break}const i=e[s],l=t[o],a=n(i,l)
;0===a?(s+=1,o+=1):a<0?(r(s,1,[]),s+=1):a>0&&(r(s,0,[l]),o+=1)}return i}function a(e,t,n,r,s){for(const o=n.length;r<s;r++){const s=e[r];if(t(s,n[o-1])<0){n.pop();const e=i(n,e=>t(s,e)<0);n.splice(e,0,s)}}}function c(e,t){for(let n=0;n<e.length;n++){if(t(e[n]))return n}return-1}Object.defineProperty(t,"__esModule",{value:!0}),t.tail=function(e,t=0){return e[e.length-(1+t)]},t.tail2=function(e){if(0===e.length)throw new Error("Invalid tail call");return[e.slice(0,e.length-1),e[e.length-1]]},t.equals=function(e,t,n=((e,t)=>e===t)){if(e===t)return!0;if(!e||!t)return!1;if(e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0},t.binarySearch=function(e,t,n){let r=0,i=e.length-1;for(;r<=i;){let s=(r+i)/2|0,o=n(e[s],t);if(o<0)r=s+1;else{if(!(o>0))return s;i=s-1}}return-(r+1)},t.findFirstInSorted=i,t.mergeSort=s,t.groupBy=function(e,t){const n=[];let r=void 0;for(const i of s(e.slice(0),t))r&&0===t(r[0],i)?r.push(i):(r=[i],n.push(r));return n},t.sortedDiff=l,
t.delta=function(e,t,n){const r=l(e,t,n),i=[],s=[];for(const t of r)i.push(...e.slice(t.start,t.start+t.deleteCount)),s.push(...t.toInsert);return{removed:i,added:s}},t.top=function(e,t,n){if(0===n)return[];const r=e.slice(0,n).sort(t);return a(e,t,r,n,e.length),r},t.topAsync=function(e,t,i,s,o){return 0===i?Promise.resolve([]):new Promise((l,c)=>{(()=>n(this,void 0,void 0,function*(){const n=e.length,l=e.slice(0,i).sort(t);for(let c=i,u=Math.min(i+s,n);c<n;c=u,u=Math.min(u+s,n)){if(c>i&&(yield new Promise(e=>setTimeout(e))),o&&o.isCancellationRequested)throw r.canceled();a(e,t,l,c,u)}return l}))().then(l,c)})},t.coalesce=function(e){return e?e.filter(e=>!!e):e},t.coalesceInPlace=function(e){if(!e)return;let t=0;for(let n=0;n<e.length;n++)e[n]&&(e[t]=e[n],t+=1);e.length=t},t.move=function(e,t,n){e.splice(n,0,e.splice(t,1)[0])},t.isFalsyOrEmpty=function(e){return!Array.isArray(e)||0===e.length},t.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},t.distinct=function(e,t){
if(!t)return e.filter((t,n)=>e.indexOf(t)===n);const n=Object.create(null);return e.filter(e=>{const r=t(e);return!n[r]&&(n[r]=!0,!0)})},t.uniqueFilter=function(e){const t=Object.create(null);return n=>{const r=e(n);return!t[r]&&(t[r]=!0,!0)}},t.firstIndex=c,t.first=function(e,t,n=null){const r=c(e,t);return r<0?n:e[r]},t.commonPrefixLength=function(e,t,n=((e,t)=>e===t)){let r=0;for(let i=0,s=Math.min(e.length,t.length);i<s&&n(e[i],t[i]);i++)r++;return r},t.flatten=function(e){return[].concat(...e)},t.range=function(e,t){let n="number"==typeof t?e:0;"number"==typeof t?n=e:(n=0,t=e);const r=[];if(n<=t)for(let e=n;e<t;e++)r.push(e);else for(let e=n;e>t;e--)r.push(e);return r},t.fill=function(e,t,n=[]){for(let r=0;r<e;r++)n[r]=t;return n},t.index=function(e,t,n=(e=>e)){return e.reduce((e,r)=>{const i=t(r);return e[i]=n(r,e[i]),e},Object.create(null))},t.insert=function(e,t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},t.arrayInsert=function(e,t,n){const r=e.slice(0,t),i=e.slice(t)
;return r.concat(n,i)},t.shuffle=function(e,t){let n;if("number"==typeof t){let e=t;n=(()=>{const t=179426549*Math.sin(e++);return t-Math.floor(t)})}else n=Math.random;for(let t=e.length-1;t>0;t-=1){let r=Math.floor(n()*(t+1)),i=e[t];e[t]=e[r],e[r]=i}},t.pushToStart=function(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.unshift(t))},t.pushToEnd=function(e,t){const n=e.indexOf(t);n>-1&&(e.splice(n,1),e.push(t))},t.find=function(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r,n,e))return r}},t.mapArrayOrNot=function(e,t){return Array.isArray(e)?e.map(t):t(e)}}),define(e[17],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=function(e){const t=this;let n,r=!1;return function(){return r?n:(r=!0,n=e.apply(t,arguments))}}}),define(e[13],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FIN={done:!0,value:void 0};var n;!function(e){function n(e,t){for(let n=e.next();!n.done;n=e.next())t(n.value)}const r={next:()=>t.FIN}
;e.empty=function(){return r},e.fromArray=function(e,n=0,r=e.length){return{next:()=>n>=r?t.FIN:{done:!1,value:e[n++]}}},e.from=function(t){return t?Array.isArray(t)?e.fromArray(t):t:e.empty()},e.map=function(e,n){return{next(){const r=e.next();return r.done?t.FIN:{done:!1,value:n(r.value)}}}},e.filter=function(e,n){return{next(){for(;;){const r=e.next();if(r.done)return t.FIN;if(n(r.value))return{done:!1,value:r.value}}}}},e.forEach=n,e.collect=function(e){const t=[];return n(e,e=>t.push(e)),t}}(n=t.Iterator||(t.Iterator={})),t.getSequenceIterator=function(e){return Array.isArray(e)?n.fromArray(e):e};class r{constructor(e,t=0,n=e.length,r=t-1){this.items=e,this.start=t,this.end=n,this.index=r}first(){return this.index=this.start,this.current()}next(){return this.index=Math.min(this.index+1,this.end),this.current()}current(){return this.index===this.start-1||this.index===this.end?null:this.items[this.index]}}t.ArrayIterator=r;class i extends r{constructor(e,t=0,n=e.length,r=t-1){super(e,t,n,r)}current(){
return super.current()}previous(){return this.index=Math.max(this.index-1,this.start-1),this.current()}first(){return this.index=this.start,this.current()}last(){return this.index=this.end-1,this.current()}parent(){return null}}t.ArrayNavigator=i;class s{constructor(e,t){this.iterator=e,this.fn=t}next(){return this.fn(this.iterator.next())}}t.MappedIterator=s;class o extends s{constructor(e,t){super(e,t),this.navigator=e}current(){return this.fn(this.navigator.current())}previous(){return this.fn(this.navigator.previous())}parent(){return this.fn(this.navigator.parent())}first(){return this.fn(this.navigator.first())}last(){return this.fn(this.navigator.last())}next(){return this.fn(this.navigator.next())}}t.MappedNavigator=o}),define(e[7],t([1,0,17]),function(e,t,n){"use strict";function r(e,...t){if(Array.isArray(e))return e.forEach(e=>e&&e.dispose()),[];if(0!==t.length)return r(e),r(t),[];if(e)return e.dispose(),e}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:()=>r(e)}},t.toDisposable=function(e){return{dispose(){e()}}};class i{constructor(){this._toDispose=[],this._lifecycle_disposable_isDisposed=!1}get toDispose(){return this._toDispose}dispose(){this._lifecycle_disposable_isDisposed=!0,this._toDispose=r(this._toDispose)}_register(e){return this._lifecycle_disposable_isDisposed?(console.warn("Registering disposable on object that has already been disposed."),e.dispose()):this._toDispose.push(e),e}}i.None=Object.freeze({dispose(){}}),t.Disposable=i;class s{constructor(){this.references=Object.create(null)}acquire(e){let t=this.references[e];t||(t=this.references[e]={counter:0,object:this.createReferencedObject(e)});const{object:r}=t,i=n.once(()=>{0==--t.counter&&(this.destroyReferencedObject(e,t.object),delete this.references[e])});return t.counter++,{object:r,dispose:i}}}t.ReferenceCollection=s;class o{constructor(e){this.object=e}dispose(){}}
t.ImmortalReference=o}),define(e[35],t([1,0,13]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e){this.element=e}}class i{constructor(){this._size=0}get size(){return this._size}isEmpty(){return!this._first}clear(){this._first=void 0,this._last=void 0,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){const n=new r(e);if(this._first)if(t){const e=this._last;this._last=n,n.prev=e,e.next=n}else{const e=this._first;this._first=n,n.next=e,e.prev=n}else this._first=n,this._last=n;return this._size+=1,this._remove.bind(this,n)}shift(){if(this._first){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last){const e=this._last.element;return this._remove(this._last),e}}_remove(e){let t=this._first;for(;t instanceof r;){if(t===e){if(t.prev&&t.next){let e=t.prev;e.next=t.next,t.next.prev=e}else t.prev||t.next?t.next?t.prev||(this._first=this._first.next,
this._first.prev=void 0):(this._last=this._last.prev,this._last.next=void 0):(this._first=void 0,this._last=void 0);this._size-=1;break}t=t.next}}iterator(){let e,t=this._first;return{next:()=>t?(e?e.value=t.element:e={done:!1,value:t.element},t=t.next,e):n.FIN}}toArray(){let e=[];for(let t=this._first;t instanceof r;t=t.next)e.push(t.element);return e}}t.LinkedList=i}),define(e[5],t([1,0,10,17,7,35]),function(e,t,r,i,s,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l;!function(e){function t(e){return(t,n=null,r)=>{let i,s=!1;return i=e(e=>{if(!s)return i?i.dispose():s=!0,t.call(n,e)},null,r),s&&i.dispose(),i}}function n(e,t){return l((n,r=null,i)=>e(e=>n.call(r,t(e)),null,i))}function r(e,t){return l((n,r=null,i)=>e(e=>{t(e),n.call(r,e)},null,i))}function i(e,t){return l((n,r=null,i)=>e(e=>t(e)&&n.call(r,e),null,i))}function o(e,t,r){let i=r;return n(e,e=>i=t(i,e))}function l(e){let t;const n=new u({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event
}function a(e){let t,n=!0;return i(e,e=>{let r=n||e!==t;return n=!1,t=e,r})}const c={dispose(){}};e.None=function(){return c},e.once=t,e.map=n,e.forEach=r,e.filter=i,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>s.combinedDisposable(e.map(e=>e(e=>t.call(n,e),null,r)))},e.reduce=o,e.snapshot=l,e.debounce=function(e,t,n=100,r=!1,i){let s,o=void 0,l=void 0,a=0;const c=new u({leakWarningThreshold:i,onFirstListenerAdd(){s=e(e=>{a++,o=t(o,e),r&&!l&&c.fire(o),clearTimeout(l),l=setTimeout(()=>{let e=o;o=void 0,l=void 0,(!r||a>1)&&c.fire(e),a=0},n)})},onLastListenerRemove(){s.dispose()}});return c.event},e.stopwatch=function(e){const r=(new Date).getTime();return n(t(e),e=>(new Date).getTime()-r)},e.latch=a,e.buffer=function(e,t=!1,n=[]){let r=n.slice(),i=e(e=>{r?r.push(e):o.fire(e)});const s=()=>{r&&r.forEach(e=>o.fire(e)),r=null},o=new u({onFirstListenerAdd(){i||(i=e(e=>o.fire(e)))},onFirstListenerDidAdd(){r&&(t?setTimeout(s):s())},onLastListenerRemove(){i&&i.dispose(),i=null}})
;return o.event},e.echo=function(e,t=!1,n=[]){n=n.slice(),e(e=>{n.push(e),i.fire(e)});const r=(e,t)=>n.forEach(n=>e.call(t,n)),i=new u({onListenerDidAdd(e,n,i){t?setTimeout(()=>r(n,i)):r(n,i)}});return i.event};class h{constructor(e){this.event=e}map(e){return new h(n(this.event,e))}forEach(e){return new h(r(this.event,e))}filter(e){return new h(i(this.event,e))}reduce(e,t){return new h(o(this.event,e,t))}latch(){return new h(a(this.event))}on(e,t,n){return this.event(e,t,n)}once(e,n,r){return t(this.event)(e,n,r)}}e.chain=function(e){return new h(e)},e.fromNodeEventEmitter=function(e,t,n=(e=>e)){const r=(...e)=>i.fire(n(...e)),i=new u({onFirstListenerAdd:()=>e.on(t,r),onLastListenerRemove:()=>e.removeListener(t,r)});return i.event},e.fromPromise=function(e){const t=new u;let n=!1;return e.then(void 0,()=>null).then(()=>{n?t.fire(void 0):setTimeout(()=>t.fire(void 0),0)}),n=!0,t.event},e.toPromise=function(e){return new Promise(n=>t(e)(n))}}(l=t.Event||(t.Event={}));let a=-1
;t.setGlobalLeakWarningThreshold=function(e){let t=a;return a=e,{dispose(){a=t}}};class c{constructor(e,t=Math.random().toString(18).slice(2,5)){this.customThreshold=e,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(e){let t=a;if("number"==typeof this.customThreshold&&(t=this.customThreshold),t<=0||e<t)return;this._stacks||(this._stacks=new Map);let n=(new Error).stack.split("\n").slice(3).join("\n"),r=this._stacks.get(n)||0;if(this._stacks.set(n,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=.5*t;let n,r=0;this._stacks.forEach((e,t)=>{(!n||r<e)&&(n=t,r=e)}),console.warn(`[${this.name}] potential listener LEAK detected, having ${e} listeners already. MOST frequent listener (${r}):`),console.warn(n)}return()=>{let e=this._stacks.get(n)||0;this._stacks.set(n,e-1)}}}class u{constructor(e){this._disposed=!1,this._options=e,this._leakageMon=a>0?new c(this._options&&this._options.leakWarningThreshold):void 0}get event(){
return this._event||(this._event=((e,t,n)=>{this._listeners||(this._listeners=new o.LinkedList);const r=this._listeners.isEmpty();r&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const i=this._listeners.push(t?[e,t]:e);r&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,e,t);let s;this._leakageMon&&(s=this._leakageMon.check(this._listeners.size));let l;return l={dispose:()=>{if(s&&s(),l.dispose=u._noop,!this._disposed&&(i(),this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}},Array.isArray(n)&&n.push(l),l})),this._event}fire(e){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=[]);for(let t=this._listeners.iterator(),n=t.next();!n.done;n=t.next())this._deliveryQueue.push([n.value,e]);for(;this._deliveryQueue.length>0;){
const[e,t]=this._deliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){r.onUnexpectedError(e)}}}}dispose(){this._listeners&&(this._listeners=void 0),this._deliveryQueue&&(this._deliveryQueue.length=0),this._leakageMon&&this._leakageMon.dispose(),this._disposed=!0}}u._noop=function(){},t.Emitter=u;class h extends u{fireAsync(e){return n(this,void 0,void 0,function*(){if(this._listeners){this._asyncDeliveryQueue||(this._asyncDeliveryQueue=[]);for(let t=this._listeners.iterator(),n=t.next();!n.done;n=t.next()){let t=[];this._asyncDeliveryQueue.push([n.value,e(t,"function"==typeof n.value?n.value:n.value[0]),t])}for(;this._asyncDeliveryQueue.length>0;){const[e,t,n]=this._asyncDeliveryQueue.shift();try{"function"==typeof e?e.call(void 0,t):e[0].call(e[1],t)}catch(e){r.onUnexpectedError(e);continue}Object.freeze(n),yield Promise.all(n)}}})}}t.AsyncEmitter=h;class f{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new u({
onFirstListenerAdd:()=>this.onFirstListenerAdd(),onLastListenerRemove:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const t={event:e,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);return s.toDisposable(i.once(()=>{this.hasListeners&&this.unhook(t);const e=this.events.indexOf(t);this.events.splice(e,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(e=>this.emitter.fire(e))}unhook(e){e.listener&&e.listener.dispose(),e.listener=null}dispose(){this.emitter.dispose()}}t.EventMultiplexer=f;class d{constructor(){this.buffers=[]}wrapEvent(e){return(t,n,r)=>e(e=>{const r=this.buffers[this.buffers.length-1];r?r.push(()=>t.call(n,e)):t.call(n,e)},void 0,r)}bufferEvents(e){const t=[];this.buffers.push(t);const n=e();return this.buffers.pop(),t.forEach(e=>e()),n}}t.EventBufferer=d;class p{constructor(){this.listening=!1,
this.inputEvent=l.None,this.inputEventListener=s.Disposable.None,this.emitter=new u({onFirstListenerDidAdd:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onLastListenerRemove:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}t.Relay=p}),define(e[31],t([1,0,5]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=Object.freeze(function(e,t){let n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var i;!function(e){e.isCancellationToken=function(t){return t===e.None||t===e.Cancelled||t instanceof s||!(!t||"object"!=typeof t)&&"boolean"==typeof t.isCancellationRequested&&"function"==typeof t.onCancellationRequested},e.None=Object.freeze({isCancellationRequested:!1,
onCancellationRequested:n.Event.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:r})}(i=t.CancellationToken||(t.CancellationToken={}));class s{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?r:(this._emitter||(this._emitter=new n.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class o{get token(){return this._token||(this._token=new s),this._token}cancel(){this._token?this._token instanceof s&&this._token.cancel():this._token=i.Cancelled}dispose(){this._token?this._token instanceof s&&this._token.dispose():this._token=i.None}}t.CancellationTokenSource=o}),define(e[6],t([1,0,31,10,5,7]),function(e,t,n,r,i,s){"use strict";function o(e){return e&&"function"==typeof e.then}function l(e){
const t=new n.CancellationTokenSource,i=e(t.token),s=new Promise((e,n)=>{t.token.onCancellationRequested(()=>{n(r.canceled())}),Promise.resolve(i).then(n=>{t.dispose(),e(n)},e=>{t.dispose(),n(e)})});return new class{cancel(){t.cancel()}then(e,t){return s.then(e,t)}catch(e){return this.then(void 0,e)}finally(e){return s.finally(e)}}}function a(e,t){return t?new Promise((n,i)=>{const s=setTimeout(n,e);t.onCancellationRequested(()=>{clearTimeout(s),i(r.canceled())})}):l(t=>a(e,t))}function c(e){function t(s){void 0!==s&&null!==s&&n.push(s);const o=r<i?e[r++]():null;return o?o.then(t):Promise.resolve(n)}const n=[];let r=0;const i=e.length;return Promise.resolve(null).then(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.isThenable=o,t.createCancelablePromise=l,t.asPromise=function(e){return new Promise((t,n)=>{let r=e();o(r)?r.then(t,n):t(r)})};class u{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,
!this.queuedPromise){const e=()=>{this.queuedPromise=null;const e=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,e};this.queuedPromise=new Promise(t=>{this.activePromise.then(e,e).then(t)})}return new Promise((e,t)=>{this.queuedPromise.then(e,t)})}return this.activePromise=e(),new Promise((e,t)=>{this.activePromise.then(t=>{this.activePromise=null,e(t)},e=>{this.activePromise=null,t(e)})})}}t.Throttler=u;class h{constructor(){this.current=Promise.resolve(null)}queue(e){return this.current=this.current.then(()=>e())}}t.Sequencer=h;class f{constructor(e){this.defaultDelay=e,this.timeout=null,this.completionPromise=null,this.doResolve=null,this.task=null}trigger(e,t=this.defaultDelay){return this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((e,t)=>{this.doResolve=e,this.doReject=t}).then(()=>{this.completionPromise=null,this.doResolve=null;const e=this.task;return this.task=null,e()})),this.timeout=setTimeout(()=>{this.timeout=null,
this.doResolve(null)},t),this.completionPromise}isTriggered(){return null!==this.timeout}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject(r.canceled()),this.completionPromise=null)}cancelTimeout(){null!==this.timeout&&(clearTimeout(this.timeout),this.timeout=null)}dispose(){this.cancelTimeout()}}t.Delayer=f;class d{constructor(e){this.delayer=new f(e),this.throttler=new u}trigger(e,t){return this.delayer.trigger(()=>this.throttler.queue(e),t)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}}t.ThrottledDelayer=d;class p{constructor(){this._isOpen=!1,this._promise=new Promise((e,t)=>{this._completePromise=e})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}}t.Barrier=p,t.timeout=a,t.disposableTimeout=function(e,t=0){const n=setTimeout(e,t);return s.toDisposable(()=>clearTimeout(n))},t.ignoreErrors=function(e){return e.then(void 0,e=>void 0)},t.sequence=c,
t.first=function(e,t=(e=>!!e),n=null){let r=0;const i=e.length,s=()=>{if(r>=i)return Promise.resolve(n);const o=e[r++];return Promise.resolve(o()).then(e=>t(e)?Promise.resolve(e):s())};return s()};class m{constructor(e){this._size=0,this.maxDegreeOfParalellism=e,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new i.Emitter}get onFinished(){return this._onFinished.event}get size(){return this._size}queue(e){return this._size++,new Promise((t,n)=>{this.outstandingPromises.push({factory:e,c:t,e:n}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){const e=this.outstandingPromises.shift();this.runningPromises++;const t=e.factory();t.then(e.c,e.e),t.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onFinished.fire()}dispose(){this._onFinished.dispose()}}t.Limiter=m;class g extends m{constructor(){super(1)}}t.Queue=g;class _{
constructor(){this.queues=Object.create(null)}queueFor(e){const t=e.toString();if(!this.queues[t]){const e=new g;e.onFinished(()=>{e.dispose(),delete this.queues[t]}),this.queues[t]=e}return this.queues[t]}}t.ResourceQueue=_;class y extends s.Disposable{constructor(e,t){super(),this._token=-1,"function"==typeof e&&"number"==typeof t&&this.setIfNotSet(e,t)}dispose(){this.cancel(),super.dispose()}cancel(){-1!==this._token&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},t)}setIfNotSet(e,t){-1===this._token&&(this._token=setTimeout(()=>{this._token=-1,e()},t))}}t.TimeoutTimer=y;class b extends s.Disposable{constructor(){super(),this._token=-1}dispose(){this.cancel(),super.dispose()}cancel(){-1!==this._token&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,t){this.cancel(),this._token=setInterval(()=>{e()},t)}}t.IntervalTimer=b;class v{constructor(e,t){this.timeoutToken=-1,this.runner=e,this.timeout=t,
this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}isScheduled(){return-1!==this.timeoutToken}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}t.RunOnceScheduler=v;class w extends v{constructor(e,t){super(e,t),this.units=[]}work(e){this.units.push(e),this.isScheduled()||this.schedule()}doRun(){const e=this.units;this.units=[],this.runner&&this.runner(e)}dispose(){this.units=[],super.dispose()}}t.RunOnceWorker=w,t.nfcall=function(e,...t){return new Promise((n,r)=>e(...t,(e,t)=>e?r(e):n(t)))},t.ninvoke=function(e,t,...n){return new Promise((r,i)=>t.call(e,...n,(e,t)=>e?i(e):r(t)))},function(){if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){let e=Object.freeze({didTimeout:!0,timeRemaining:()=>15});t.runWhenIdle=(t=>{
let n=setTimeout(()=>t(e)),r=!1;return{dispose(){r||(r=!0,clearTimeout(n))}}})}else t.runWhenIdle=((e,t)=>{let n=requestIdleCallback(e,"number"==typeof t?{timeout:t}:void 0),r=!1;return{dispose(){r||(r=!0,cancelIdleCallback(n))}}})}();class E{constructor(e){this._executor=(()=>{try{this._value=e()}catch(e){this._error=e}finally{this._didRun=!0}}),this._handle=t.runWhenIdle(()=>this._executor())}dispose(){this._handle.dispose()}getValue(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}}t.IdleValue=E}),define(e[36],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});!function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command"}(t.Schemas||(t.Schemas={}))}),define(e[3],t([1,0]),function(e,t){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0}),t.LANGUAGE_DEFAULT="en";let n=!1,r=!1,i=!1,s=!1,o=!1,l=void 0,a=t.LANGUAGE_DEFAULT,c=void 0;const u="undefined"!=typeof process&&void 0!==process.versions&&void 0!==process.versions.electron&&"renderer"===process.type;if("object"!=typeof navigator||u){if("object"==typeof process){n="win32"===process.platform,r="darwin"===process.platform,i="linux"===process.platform,l=t.LANGUAGE_DEFAULT,a=t.LANGUAGE_DEFAULT;const e=process.env.VSCODE_NLS_CONFIG;if(e)try{const n=JSON.parse(e),r=n.availableLanguages["*"];l=n.locale,a=r||t.LANGUAGE_DEFAULT,c=n._translationsConfigFile}catch(e){}s=!0}}else{const e=navigator.userAgent;n=e.indexOf("Windows")>=0,r=e.indexOf("Macintosh")>=0,i=e.indexOf("Linux")>=0,o=!0,a=l=navigator.language}!function(e){e[e.Web=0]="Web",e[e.Mac=1]="Mac",e[e.Linux=2]="Linux",e[e.Windows=3]="Windows"}(t.Platform||(t.Platform={})),t.PlatformToString=function(e){switch(e){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}
;let h=0;s&&(r?h=1:n?h=3:i&&(h=2)),t.isWindows=n,t.isMacintosh=r,t.isLinux=i,t.isNative=s,t.isWeb=o,t.platform=h,t.isRootUser=function(){return s&&!n&&0===process.getuid()},t.language=a,t.locale=l,t.translationsConfigFile=c;const f="object"==typeof self?self:"object"==typeof global?global:{};t.globals=f;let d=null;t.setImmediate=function(e){return null===d&&(d=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)),d(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}),define(e[2],t([1,0,3]),function(e,t,n){"use strict";function r(e,t){if("string"!=typeof e)throw new _(t,"string",e)}function i(e){return e===p||e===m}function s(e){return e===p}function o(e){return e>=c&&e<=h||e>=u&&e<=f}function l(e,t,n,r){let i,s="",o=0,l=-1,a=0;for(let c=0;c<=e.length;++c){
if(c<e.length)i=e.charCodeAt(c);else{if(r(i))break;i=p}if(r(i)){if(l===c-1||1===a);else if(l!==c-1&&2===a){if(s.length<2||2!==o||s.charCodeAt(s.length-1)!==d||s.charCodeAt(s.length-2)!==d){if(s.length>2){const e=s.lastIndexOf(n);-1===e?(s="",o=0):o=(s=s.slice(0,e)).length-1-s.lastIndexOf(n),l=c,a=0;continue}if(2===s.length||1===s.length){s="",o=0,l=c,a=0;continue}}t&&(s.length>0?s+=`${n}..`:s="..",o=2)}else s.length>0?s+=n+e.slice(l+1,c):s=e.slice(l+1,c),o=c-l-1;l=c,a=0}else i===d&&-1!==a?++a:a=-1}return s}function a(e,t){const n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}const c=65,u=97,h=90,f=122,d=46,p=47,m=92,g="undefined"==typeof process?{cwd:()=>"/",env:{},get platform(){return n.isWindows?"win32":"posix"}}:process;class _ extends Error{constructor(e,t,n){let r;"string"==typeof t&&0===t.indexOf("not ")?(r="must not be",t=t.replace(/^not /,"")):r="must be";let i;i=`The "${e}" ${-1!==e.indexOf(".")?"property":"argument"} ${r} of type ${t}`,
super(i+=`. Received type ${typeof n}`)}}const y={resolve(...e){let t="",n="",s=!1;for(let l=e.length-1;l>=-1;l--){let a;if(l>=0?a=e[l]:t?void 0!==(a=g.env["="+t]||g.cwd())&&a.slice(0,3).toLowerCase()===t.toLowerCase()+"\\"||(a=t+"\\"):a=g.cwd(),r(a,"path"),0===a.length)continue;let c=a.length,u=0,h="",f=!1;const d=a.charCodeAt(0);if(c>1)if(i(d))if(f=!0,i(a.charCodeAt(1))){let e=2,t=e;for(;e<c&&!i(a.charCodeAt(e));++e);if(e<c&&e!==t){const n=a.slice(t,e);for(t=e;e<c&&i(a.charCodeAt(e));++e);if(e<c&&e!==t){for(t=e;e<c&&!i(a.charCodeAt(e));++e);e===c?(h="\\\\"+n+"\\"+a.slice(t),u=e):e!==t&&(h="\\\\"+n+"\\"+a.slice(t,e),u=e)}}}else u=1;else o(d)&&58===a.charCodeAt(1)&&(h=a.slice(0,2),u=2,c>2&&i(a.charCodeAt(2))&&(f=!0,u=3));else i(d)&&(u=1,f=!0);if(!(h.length>0&&t.length>0&&h.toLowerCase()!==t.toLowerCase())&&(0===t.length&&h.length>0&&(t=h),s||(n=a.slice(u)+"\\"+n,s=f),t.length>0&&s))break}return n=l(n,!s,"\\",i),t+(s?"\\":"")+n||"."},normalize(e){r(e,"path");const t=e.length;if(0===t)return".";let n,s=0,a=!1
;const c=e.charCodeAt(0);if(t>1)if(i(c))if(a=!0,i(e.charCodeAt(1))){let r=2,o=r;for(;r<t&&!i(e.charCodeAt(r));++r);if(r<t&&r!==o){const l=e.slice(o,r);for(o=r;r<t&&i(e.charCodeAt(r));++r);if(r<t&&r!==o){for(o=r;r<t&&!i(e.charCodeAt(r));++r);if(r===t)return"\\\\"+l+"\\"+e.slice(o)+"\\";r!==o&&(n="\\\\"+l+"\\"+e.slice(o,r),s=r)}}}else s=1;else o(c)&&58===e.charCodeAt(1)&&(n=e.slice(0,2),s=2,t>2&&i(e.charCodeAt(2))&&(a=!0,s=3));else if(i(c))return"\\";let u;return 0!==(u=s<t?l(e.slice(s),!a,"\\",i):"").length||a||(u="."),u.length>0&&i(e.charCodeAt(t-1))&&(u+="\\"),void 0===n?a?u.length>0?"\\"+u:"\\":u.length>0?u:"":a?u.length>0?n+"\\"+u:n+"\\":u.length>0?n+u:n},isAbsolute(e){r(e,"path");const t=e.length;if(0===t)return!1;const n=e.charCodeAt(0);return!!i(n)||!!(o(n)&&t>2&&58===e.charCodeAt(1)&&i(e.charCodeAt(2)))},join(...e){if(0===e.length)return".";let t,n;for(let i=0;i<e.length;++i){let s=e[i];r(s,"path"),s.length>0&&(void 0===t?t=n=s:t+="\\"+s)}if(void 0===t)return".";let s=!0,o=0;if(i(n.charCodeAt(0))){++o
;const e=n.length;e>1&&i(n.charCodeAt(1))&&(++o,e>2&&(i(n.charCodeAt(2))?++o:s=!1))}if(s){for(;o<t.length&&i(t.charCodeAt(o));++o);o>=2&&(t="\\"+t.slice(o))}return y.normalize(t)},relative(e,t){if(r(e,"from"),r(t,"to"),e===t)return"";let n=y.resolve(e),i=y.resolve(t);if(n===i)return"";if(e=n.toLowerCase(),t=i.toLowerCase(),e===t)return"";let s=0;for(;s<e.length&&e.charCodeAt(s)===m;++s);let o=e.length;for(;o-1>s&&e.charCodeAt(o-1)===m;--o);let l=o-s,a=0;for(;a<t.length&&t.charCodeAt(a)===m;++a);let c=t.length;for(;c-1>a&&t.charCodeAt(c-1)===m;--c);let u=c-a,h=l<u?l:u,f=-1,d=0;for(;d<=h;++d){if(d===h){if(u>h){if(t.charCodeAt(a+d)===m)return i.slice(a+d+1);if(2===d)return i.slice(a+d)}l>h&&(e.charCodeAt(s+d)===m?f=d:2===d&&(f=3));break}let n=e.charCodeAt(s+d);if(n!==t.charCodeAt(a+d))break;n===m&&(f=d)}if(d!==h&&-1===f)return i;let p="";for(-1===f&&(f=0),d=s+f+1;d<=o;++d)d!==o&&e.charCodeAt(d)!==m||(0===p.length?p+="..":p+="\\..");return p.length>0?p+i.slice(a+f,c):(a+=f,i.charCodeAt(a)===m&&++a,i.slice(a,c))},
toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=y.resolve(e);if(t.length>=3)if(t.charCodeAt(0)===m){if(t.charCodeAt(1)===m){const e=t.charCodeAt(2);if(63!==e&&e!==d)return"\\\\?\\UNC\\"+t.slice(2)}}else if(o(t.charCodeAt(0))&&58===t.charCodeAt(1)&&t.charCodeAt(2)===m)return"\\\\?\\"+t;return e},dirname(e){r(e,"path");const t=e.length;if(0===t)return".";let n=-1,s=-1,l=!0,a=0;const c=e.charCodeAt(0);if(t>1)if(i(c)){if(n=a=1,i(e.charCodeAt(1))){let r=2,s=r;for(;r<t&&!i(e.charCodeAt(r));++r);if(r<t&&r!==s){for(s=r;r<t&&i(e.charCodeAt(r));++r);if(r<t&&r!==s){for(s=r;r<t&&!i(e.charCodeAt(r));++r);if(r===t)return e;r!==s&&(n=a=r+1)}}}}else o(c)&&58===e.charCodeAt(1)&&(n=a=2,t>2&&i(e.charCodeAt(2))&&(n=a=3));else if(i(c))return e;for(let n=t-1;n>=a;--n)if(i(e.charCodeAt(n))){if(!l){s=n;break}}else l=!1;if(-1===s){if(-1===n)return".";s=n}return e.slice(0,s)},basename(e,t){void 0!==t&&r(t,"ext"),r(e,"path");let n,s=0,l=-1,a=!0;if(e.length>=2){
o(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(s=2)}if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let r=t.length-1,o=-1;for(n=e.length-1;n>=s;--n){const c=e.charCodeAt(n);if(i(c)){if(!a){s=n+1;break}}else-1===o&&(a=!1,o=n+1),r>=0&&(c===t.charCodeAt(r)?-1==--r&&(l=n):(r=-1,l=o))}return s===l?l=o:-1===l&&(l=e.length),e.slice(s,l)}for(n=e.length-1;n>=s;--n)if(i(e.charCodeAt(n))){if(!a){s=n+1;break}}else-1===l&&(a=!1,l=n+1);return-1===l?"":e.slice(s,l)},extname(e){r(e,"path");let t=0,n=-1,s=0,l=-1,a=!0,c=0;e.length>=2&&58===e.charCodeAt(1)&&o(e.charCodeAt(0))&&(t=s=2);for(let r=e.length-1;r>=t;--r){const t=e.charCodeAt(r);if(i(t)){if(!a){s=r+1;break}}else-1===l&&(a=!1,l=r+1),t===d?-1===n?n=r:1!==c&&(c=1):-1!==n&&(c=-1)}return-1===n||-1===l||0===c||1===c&&n===l-1&&n===s+1?"":e.slice(n,l)},format(e){if(null===e||"object"!=typeof e)throw new _("pathObject","Object",e);return a("\\",e)},parse(e){r(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t
;let n=e.length,s=0,l=e.charCodeAt(0);if(n>1){if(i(l)){if(s=1,i(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!i(e.charCodeAt(t));++t);if(t<n&&t!==r){for(r=t;t<n&&i(e.charCodeAt(t));++t);if(t<n&&t!==r){for(r=t;t<n&&!i(e.charCodeAt(t));++t);t===n?s=t:t!==r&&(s=t+1)}}}}else if(o(l)&&58===e.charCodeAt(1)){if(s=2,!(n>2))return t.root=t.dir=e,t;if(i(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;s=3}}}else if(i(l))return t.root=t.dir=e,t;s>0&&(t.root=e.slice(0,s));let a=-1,c=s,u=-1,h=!0,f=e.length-1,p=0;for(;f>=s;--f)if(l=e.charCodeAt(f),i(l)){if(!h){c=f+1;break}}else-1===u&&(h=!1,u=f+1),l===d?-1===a?a=f:1!==p&&(p=1):-1!==a&&(p=-1);return-1===a||-1===u||0===p||1===p&&a===u-1&&a===c+1?-1!==u&&(t.base=t.name=e.slice(c,u)):(t.name=e.slice(c,a),t.base=e.slice(c,u),t.ext=e.slice(a,u)),t.dir=c>0&&c!==s?e.slice(0,c-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},b={resolve(...e){let t="",n=!1;for(let i=e.length-1;i>=-1&&!n;i--){let s;r(s=i>=0?e[i]:g.cwd(),"path"),0!==s.length&&(t=s+"/"+t,n=s.charCodeAt(0)===p)}
return t=l(t,!n,"/",s),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize(e){if(r(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===p,n=e.charCodeAt(e.length-1)===p;return 0!==(e=l(e,!t,"/",s)).length||t||(e="."),e.length>0&&n&&(e+="/"),t?"/"+e:e},isAbsolute:e=>(r(e,"path"),e.length>0&&e.charCodeAt(0)===p),join(...e){if(0===e.length)return".";let t;for(let n=0;n<e.length;++n){let e=arguments[n];r(e,"path"),e.length>0&&(void 0===t?t=e:t+="/"+e)}return void 0===t?".":b.normalize(t)},relative(e,t){if(r(e,"from"),r(t,"to"),e===t)return"";if(e=b.resolve(e),t=b.resolve(t),e===t)return"";let n=1;for(;n<e.length&&e.charCodeAt(n)===p;++n);let i=e.length,s=i-n,o=1;for(;o<t.length&&t.charCodeAt(o)===p;++o);let l=t.length-o,a=s<l?s:l,c=-1,u=0;for(;u<=a;++u){if(u===a){if(l>a){if(t.charCodeAt(o+u)===p)return t.slice(o+u+1);if(0===u)return t.slice(o+u)}else s>a&&(e.charCodeAt(n+u)===p?c=u:0===u&&(c=0));break}let r=e.charCodeAt(n+u);if(r!==t.charCodeAt(o+u))break;r===p&&(c=u)}let h=""
;for(u=n+c+1;u<=i;++u)u!==i&&e.charCodeAt(u)!==p||(0===h.length?h+="..":h+="/..");return h.length>0?h+t.slice(o+c):(o+=c,t.charCodeAt(o)===p&&++o,t.slice(o))},toNamespacedPath:e=>e,dirname(e){if(r(e,"path"),0===e.length)return".";const t=e.charCodeAt(0)===p;let n=-1,i=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===p){if(!i){n=t;break}}else i=!1;return-1===n?t?"/":".":t&&1===n?"//":e.slice(0,n)},basename(e,t){void 0!==t&&r(t,"ext"),r(e,"path");let n,i=0,s=-1,o=!0;if(void 0!==t&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let r=t.length-1,l=-1;for(n=e.length-1;n>=0;--n){const a=e.charCodeAt(n);if(a===p){if(!o){i=n+1;break}}else-1===l&&(o=!1,l=n+1),r>=0&&(a===t.charCodeAt(r)?-1==--r&&(s=n):(r=-1,s=l))}return i===s?s=l:-1===s&&(s=e.length),e.slice(i,s)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===p){if(!o){i=n+1;break}}else-1===s&&(o=!1,s=n+1);return-1===s?"":e.slice(i,s)},extname(e){r(e,"path");let t=-1,n=0,i=-1,s=!0,o=0;for(let r=e.length-1;r>=0;--r){const l=e.charCodeAt(r)
;if(l!==p)-1===i&&(s=!1,i=r+1),l===d?-1===t?t=r:1!==o&&(o=1):-1!==t&&(o=-1);else if(!s){n=r+1;break}}return-1===t||-1===i||0===o||1===o&&t===i-1&&t===n+1?"":e.slice(t,i)},format(e){if(null===e||"object"!=typeof e)throw new _("pathObject","Object",e);return a("/",e)},parse(e){r(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let n,i=e.charCodeAt(0)===p;i?(t.root="/",n=1):n=0;let s=-1,o=0,l=-1,a=!0,c=e.length-1,u=0;for(;c>=n;--c){const t=e.charCodeAt(c);if(t!==p)-1===l&&(a=!1,l=c+1),t===d?-1===s?s=c:1!==u&&(u=1):-1!==s&&(u=-1);else if(!a){o=c+1;break}}return-1===s||-1===l||0===u||1===u&&s===l-1&&s===o+1?-1!==l&&(t.base=t.name=0===o&&i?e.slice(1,l):e.slice(o,l)):(0===o&&i?(t.name=e.slice(1,s),t.base=e.slice(1,l)):(t.name=e.slice(o,s),t.base=e.slice(o,l)),t.ext=e.slice(s,l)),o>0?t.dir=e.slice(0,o-1):i&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};b.win32=y.win32=y,b.posix=y.posix=b;return"win32"===g.platform?y:b}),define(e[4],t([1,0]),function(e,t){"use strict"
;function n(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\[\]\(\)\#]/g,"\\$&")}function r(e,t){if(!e||!t)return e;let n=t.length;if(0===n||0===e.length)return e;let r=0;for(;e.indexOf(t,r)===r;)r+=n;return e.substring(r)}function i(e,t){if(!e||!t)return e;let n=t.length,r=e.length;if(0===n||0===r)return e;let i=r,s=-1;for(;;){if(-1===(s=e.lastIndexOf(t,i-1))||s+n!==i)break;if(0===s)return"";i=s}return e.substring(0,i)}function s(e,t){return e<t?-1:e>t?1:0}function o(e){return e>=97&&e<=122}function l(e){return e>=65&&e<=90}function a(e){return o(e)||l(e)}function c(e,t,n=e.length){if("string"!=typeof e||"string"!=typeof t)return!1;for(let r=0;r<n;r++){const n=e.charCodeAt(r),i=t.charCodeAt(r);if(n!==i)if(a(n)&&a(i)){let e=Math.abs(n-i);if(0!==e&&32!==e)return!1}else if(String.fromCharCode(n).toLowerCase()!==String.fromCharCode(i).toLowerCase())return!1}return!0}function u(e,t,n,r,i,s){for(;t<n&&i<s;){if(e[t]!==r[i])return!1;t+=1,i+=1}return!0}function h(e){
return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function f(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="0"){let r=""+e,i=[r];for(let e=r.length;e<t;e++)i.push(n);return i.reverse().join("")};const d=/{(\d+)}/g;t.format=function(e,...t){return 0===t.length?e:e.replace(d,function(e,n){let 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 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(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0},t.endsWith=function(e,t){let n=e.length-t.length;return n>0?e.indexOf(t,n)===n:0===n&&e===t},t.createRegExp=function(e,t,r={}){if(!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"));let i="";return r.global&&(i+="g"),r.matchCase||(i+="i"),r.multiline&&(i+="m"),r.unicode&&(i+="u"),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.regExpFlags=function(e){return(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")},t.firstNonWhitespaceIndex=function(e){for(let t=0,n=e.length;t<n;t++){let n=e.charCodeAt(t);if(32!==n&&9!==n)return t}return-1},
t.getLeadingWhitespace=function(e,t=0,n=e.length){for(let r=t;r<n;r++){let n=e.charCodeAt(r);if(32!==n&&9!==n)return e.substring(t,r)}return e.substring(t,n)},t.lastNonWhitespaceIndex=function(e,t=e.length-1){for(let n=t;n>=0;n--){let t=e.charCodeAt(n);if(32!==t&&9!==t)return n}return-1},t.compare=s,t.compareIgnoreCase=function(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++){let n=e.charCodeAt(r),i=t.charCodeAt(r);if(n===i)continue;l(n)&&(n+=32),l(i)&&(i+=32);const a=n-i;if(0!==a)return o(n)&&o(i)?a:s(e.toLowerCase(),t.toLowerCase())}return e.length<t.length?-1:e.length>t.length?1:0},t.isLowerAsciiLetter=o,t.isUpperAsciiLetter=l,t.equalsIgnoreCase=function(e,t){return(e?e.length:0)===(t?t.length:0)&&c(e,t)},t.startsWithIgnoreCase=function(e,t){const n=t.length;return!(t.length>e.length)&&c(e,t,n)},t.commonPrefixLength=function(e,t){let 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){
let n,r=Math.min(e.length,t.length),i=e.length-1,s=t.length-1;for(n=0;n<r;n++)if(e.charCodeAt(i-n)!==t.charCodeAt(s-n))return n;return r},t.overlap=function(e,t){let 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(u(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};const p=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u08BD\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE33\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDCFF]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD50-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;t.containsRTL=function(e){return p.test(e)}
;const m=/(?:[\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 m.test(e)};const g=/^[\t\n\r\x20-\x7E]*$/;t.isBasicASCII=function(e){return g.test(e)},t.containsFullWidthCharacter=function(e){for(let t=0,n=e.length;t<n;t++)if(h(e.charCodeAt(t)))return!0;return!1},t.isFullWidthCharacter=h,t.lcut=function(e,n){if(e.length<n)return e;const r=/\b/g;let i=0;for(;r.test(e)&&!(e.length-r.lastIndex<n);)i=r.lastIndex,r.lastIndex+=1;return e.substring(i).replace(/^\s/,t.empty)};const _=/\x1B\x5B[12]?K/g,y=/\x1b\[\d+m/g,b=/\x1b\[0?m/g;t.removeAnsiEscapeCodes=function(e){return e&&(e=(e=(e=e.replace(_,"")).replace(y,"")).replace(b,"")),e},t.removeAccents=function(){if("function"!=typeof String.prototype.normalize)return function(e){return e};{const e=/[\u0300-\u036f]/g;return function(n){return n.normalize("NFD").replace(e,t.empty)}}}(),t.UTF8_BOM_CHARACTER=String.fromCharCode(65279),
t.startsWithUTF8BOM=f,t.stripUTF8BOM=function(e){return f(e)?e.substr(1):e},t.safeBtoa=function(e){return btoa(encodeURIComponent(e))},t.repeat=function(e,t){let n="";for(let 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;const n=t.length,r=e.toLowerCase();let i=0,s=-1;for(;i<n;){let e=r.indexOf(t[i],s+1);if(e<0)return!1;s=e,i++}return!0},t.containsUppercaseCharacter=function(e,t=!1){return!!e&&(t&&(e=e.replace(/\\./g,"")),e.toLowerCase()!==e)},t.uppercaseFirstLetter=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},t.getNLines=function(e,t=1){if(0===t)return"";let n=-1;do{n=e.indexOf("\n",n+1),t--}while(t>0&&n>=0);return n>=0?e.substr(0,n):e}}),define(e[22],t([1,0,3,4,2]),function(e,t,n,r,i){"use strict";function s(e){return 47===e||92===e}function o(e){return e>=65&&e<=90||e>=97&&e<=122}Object.defineProperty(t,"__esModule",{value:!0}),t.toSlashes=function(e){return e.replace(/[\\/]/g,"/")},t.getRoot=function(e,t="/"){if(!e)return""
;let n=e.length;const r=e.charCodeAt(0);if(s(r)){if(s(e.charCodeAt(1))&&!s(e.charCodeAt(2))){let r=3,i=r;for(;r<n&&!s(e.charCodeAt(r));r++);if(i!==r&&!s(e.charCodeAt(r+1)))for(r+=1;r<n;r++)if(s(e.charCodeAt(r)))return e.slice(0,r+1).replace(/[\\/]/g,t)}return t}if(o(r)&&58===e.charCodeAt(1))return s(e.charCodeAt(2))?e.slice(0,2)+t:e.slice(0,2);let i=e.indexOf("://");if(-1!==i)for(i+=3;i<n;i++)if(s(e.charCodeAt(i)))return e.slice(0,i+1);return""},t.isUNC=function(e){if(!n.isWindows)return!1;if(!e||e.length<5)return!1;let t=e.charCodeAt(0);if(92!==t)return!1;if(92!==(t=e.charCodeAt(1)))return!1;let r=2,i=r;for(;r<e.length&&92!==(t=e.charCodeAt(r));r++);return i!==r&&(t=e.charCodeAt(r+1),!isNaN(t)&&92!==t)};const l=n.isWindows?/[\\/:\*\?"<>\|]/g:/[\\/]/g,a=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])$/i;t.isValidBasename=function(e){return!(!e||0===e.length||/^\s+$/.test(e)||(l.lastIndex=0,
l.test(e)||n.isWindows&&a.test(e)||"."===e||".."===e||n.isWindows&&"."===e[e.length-1]||n.isWindows&&e.length!==e.trim().length||e.length>255))},t.isEqual=function(e,t,n){const i=e===t;return!n||i?i:!(!e||!t)&&r.equalsIgnoreCase(e,t)},t.isEqualOrParent=function(e,t,n,s=i.sep){if(e===t)return!0;if(!e||!t)return!1;if(t.length>e.length)return!1;if(n){if(!r.startsWithIgnoreCase(e,t))return!1;if(t.length===e.length)return!0;let n=t.length;return t.charAt(t.length-1)===s&&n--,e.charAt(n)===s}return t.charAt(t.length-1)!==s&&(t+=s),0===e.indexOf(t)},t.isWindowsDriveLetter=o}),define(e[21],t([1,0]),function(e,t){"use strict";function n(e){return Array.isArray?Array.isArray(e):!(!e||typeof e.length!==c.number||e.constructor!==Array)}function r(e){return typeof e===c.string||e instanceof String}function i(e){return!(typeof e!==c.object||null===e||Array.isArray(e)||e instanceof RegExp||e instanceof Date)}function s(e){return typeof e===c.undefined}function o(e){return s(e)||null===e}function l(e){
return typeof e===c.function}function a(e,t){if(r(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(l(t)){try{if(e instanceof t)return}catch(e){}if(!o(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});const c={number:"number",string:"string",undefined:"undefined",object:"object",function:"function"};t.isArray=n,t.isString=r,t.isStringArray=function(e){return n(e)&&e.every(e=>r(e))},t.isObject=i,t.isNumber=function(e){return(typeof e===c.number||e instanceof Number)&&!isNaN(e)},t.isBoolean=function(e){return!0===e||!1===e},t.isUndefined=s,t.isUndefinedOrNull=o;const u=Object.prototype.hasOwnProperty;t.isEmptyObject=function(e){if(!i(e))return!1;for(let t in e)if(u.call(e,t))return!1;return!0},t.isFunction=l,t.areFunctions=function(...e){
return e.length>0&&e.every(l)},t.validateConstraints=function(e,t){const n=Math.min(e.length,t.length);for(let r=0;r<n;r++)a(e[r],t[r])},t.validateConstraint=a,t.create=function(e,...t){if(function(e){return"function"==typeof e&&e.hasOwnProperty("prototype")&&!e.hasOwnProperty("arguments")}(e))return new e(...t);{let n=Object.create(e.prototype);return e.apply(n,t),n}},t.getAllPropertyNames=function(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}}),define(e[30],t([1,0,21]),function(e,t,n){"use strict";function r(e){if(!e||"object"!=typeof e)return e;if(e instanceof RegExp)return e;const t=Array.isArray(e)?[]:{};return Object.keys(e).forEach(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;const s=t(e);if(void 0!==s)return s;if(n.isArray(e)){const n=[];for(const s of e)n.push(i(s,t,r));return n}if(n.isObject(e)){
if(r.has(e))throw new Error("Cannot clone recursive data-structure");r.add(e);const n={};for(let s in e)l.call(e,s)&&(n[s]=i(e[s],t,r));return r.delete(e),n}return e}function s(e,t,r=!0){return n.isObject(e)?(n.isObject(t)&&Object.keys(t).forEach(i=>{i in e?r&&(n.isObject(e[i])&&n.isObject(t[i])?s(e[i],t[i],r):e[i]=t[i]):e[i]=t[i]}),e):t}function o(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;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!o(e[n],t[n]))return!1}else{const i=[];for(r in e)i.push(r);i.sort();const s=[];for(r in t)s.push(r);if(s.sort(),!o(i,s))return!1;for(n=0;n<i.length;n++)if(!o(e[i[n]],t[i[n]]))return!1}return!0}Object.defineProperty(t,"__esModule",{value:!0}),t.deepClone=r,t.deepFreeze=function(e){if(!e||"object"!=typeof e)return e;const t=[e];for(;t.length>0;){let e=t.shift();Object.freeze(e)
;for(const n in e)if(l.call(e,n)){let r=e[n];"object"!=typeof r||Object.isFrozen(r)||t.push(r)}}return e};const l=Object.prototype.hasOwnProperty;t.cloneAndChange=function(e,t){return i(e,t,new Set)},t.mixin=s,t.assign=function(e,...t){return t.forEach(t=>Object.keys(t).forEach(n=>e[n]=t[n])),e},t.equals=o,t.createKeywordMatcher=function(e,t=!1){t&&(e=e.map(function(e){return e.toLowerCase()}));const n=function(e){const t={};for(const n of e)t[n]=!0;return t}(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){const t=[];return JSON.stringify(e,(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){const r=t(e);return void 0===r?n:r},t.distinct=function(e,t){const n=Object.create(null);return e&&t?(Object.keys(t).forEach(r=>{const i=e[r],s=t[r];o(i,s)||(n[r]=s)}),n):n}}),
define(e[8],t([1,0,3]),function(e,t,n){"use strict";function r(e,t){let n=void 0,r=-1;for(let i=0;i<e.length;i++){let s=e.charCodeAt(i);if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||45===s||46===s||95===s||126===s||t&&47===s)-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));let t=p[s];void 0!==t?(-1!==r&&(n+=encodeURIComponent(e.substring(r,i)),r=-1),n+=t):-1===r&&(r=i)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function i(e){let 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,n.isWindows&&(t=t.replace(/\//g,"\\")),t}function s(e,t){const n=t?function(e){let t=void 0;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);35===r||63===r?(void 0===t&&(t=e.substr(0,n)),
t+=p[r]):void 0!==t&&(t+=e[n])}return void 0!==t?t:e}:r;let i="",{scheme:s,authority:o,path:l,query:a,fragment:c}=e;if(s&&(i+=s,i+=":"),(o||"file"===s)&&(i+=u,i+=u),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),-1===(e=t.indexOf(":"))?i+=n(t,!1):(i+=n(t.substr(0,e),!1),i+=":",i+=n(t.substr(e+1),!1)),i+="@"}-1===(e=(o=o.toLowerCase()).indexOf(":"))?i+=n(o,!1):(i+=n(o.substr(0,e),!1),i+=o.substr(e))}if(l){if(l.length>=3&&47===l.charCodeAt(0)&&58===l.charCodeAt(2)){let e=l.charCodeAt(1);e>=65&&e<=90&&(l=`/${String.fromCharCode(e+32)}:${l.substr(3)}`)}else if(l.length>=2&&58===l.charCodeAt(1)){let e=l.charCodeAt(0);e>=65&&e<=90&&(l=`${String.fromCharCode(e+32)}:${l.substr(2)}`)}i+=n(l,!0)}return a&&(i+="?",i+=n(a,!1)),c&&(i+="#",i+=t?c:r(c,!1)),i}Object.defineProperty(t,"__esModule",{value:!0});const o=/^\w[\w\d+.-]*$/,l=/^\//,a=/^\/\//;let c=!0;t.setUriThrowOnMissingScheme=function(e){const t=c;return c=e,t};const u="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/
;class f{static isUri(e){return e instanceof f||!!e&&("string"==typeof e.authority&&"string"==typeof e.fragment&&"string"==typeof e.path&&"string"==typeof e.query&&"string"==typeof e.scheme&&"function"==typeof e.fsPath&&"function"==typeof e.with&&"function"==typeof e.toString)}constructor(e,t,n,r,i,s){"object"==typeof e?(this.scheme=e.scheme||"",this.authority=e.authority||"",this.path=e.path||"",this.query=e.query||"",this.fragment=e.fragment||""):(this.scheme=e||"",this.authority=t||"",this.path=function(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==u&&(t=u+t):t=u}return t}(this.scheme,n||""),this.query=r||"",this.fragment=i||"",function(e,t){if(!e.scheme){if(t||c)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);console.warn(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`)}
if(e.scheme&&!o.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path)if(e.authority){if(!l.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(a.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,s))}get fsPath(){return i(this)}with(e){if(!e)return this;let{scheme:t,authority:n,path:r,query:i,fragment:s}=e;return void 0===t?t=this.scheme:null===t&&(t=""),void 0===n?n=this.authority:null===n&&(n=""),void 0===r?r=this.path:null===r&&(r=""),void 0===i?i=this.query:null===i&&(i=""),void 0===s?s=this.fragment:null===s&&(s=""),t===this.scheme&&n===this.authority&&r===this.path&&i===this.query&&s===this.fragment?this:new d(t,n,r,i,s)}static parse(e,t=!1){const n=h.exec(e)
;return n?new d(n[2]||"",decodeURIComponent(n[4]||""),decodeURIComponent(n[5]||""),decodeURIComponent(n[7]||""),decodeURIComponent(n[9]||""),t):new d("","","","","")}static file(e){let t="";if(n.isWindows&&(e=e.replace(/\\/g,u)),e[0]===u&&e[1]===u){let n=e.indexOf(u,2);-1===n?(t=e.substring(2),e=u):(t=e.substring(2,n),e=e.substring(n)||u)}return new d("file",t,e,"","")}static from(e){return new d(e.scheme,e.authority,e.path,e.query,e.fragment)}toString(e=!1){return s(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof f)return e;{let t=new d(e);return t._fsPath=e.fsPath,t._formatted=e.external,t}}return e}}t.URI=f;class d extends f{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=i(this)),this._fsPath}toString(e=!1){return e?s(this,!0):(this._formatted||(this._formatted=s(this,!1)),this._formatted)}toJSON(){const 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}}const p={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"}}),define(e[14],t([1,0,8]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPathFromAmdModule=function(e,t){return n.URI.parse(e.toUrl(t)).fsPath}}),define(e[9],t([1,0,8,13]),function(e,t,n,r){"use strict";function i(e){const t=[];return e.forEach(e=>t.push(e)),t}function s(e){const t=[];return e.forEach((e,n)=>t.push(n)),t}Object.defineProperty(t,"__esModule",{value:!0}),t.values=i,t.keys=s,t.getOrSet=function(e,t,n){let r=e.get(t);return void 0===r&&(r=n,e.set(t,r)),r},t.mapToString=function(e){const t=[];return e.forEach((e,n)=>{t.push(`${n} => ${e}`)}),`Map(${e.size}) {${t.join(", ")}}`},
t.setToString=function(e){const t=[];return e.forEach(e=>{t.push(e)}),`Set(${e.size}) {${t.join(", ")}}`},t.mapToSerializable=function(e){const t=[];return e.forEach((e,n)=>{t.push([n,e])}),t},t.serializableToMap=function(e){const t=new Map;for(const[n,r]of e)t.set(n,r);return t};class o{constructor(){this._value="",this._pos=0}reset(e){return this._value=e,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(e){return e.charCodeAt(0)-this._value.charCodeAt(this._pos)}value(){return this._value[this._pos]}}t.StringIterator=o;class l{reset(e){return this._value=e.replace(/\\$|\/$/,""),this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let e=!0;for(;this._to<this._value.length;this._to++){const t=this._value.charCodeAt(this._to);if(47===t||92===t){if(!e)break;this._from++}else e=!1}return this}cmp(e){let t=0,n=e.length,r=this._from;for(;t<n&&r<this._to;){let n=e.charCodeAt(t)-this._value.charCodeAt(r)
;if(0!==n)return n;t+=1,r+=1}return n===this._to-this._from?0:t<n?-1:1}value(){return this._value.substring(this._from,this._to)}}t.PathIterator=l;class a{isEmpty(){return!(this.left||this.mid||this.right||this.value)}}class c{constructor(e){this._iter=e}static forPaths(){return new c(new l)}static forStrings(){return new c(new o)}clear(){this._root=void 0}set(e,t){let n,r=this._iter.reset(e);for(this._root||(this._root=new a,this._root.segment=r.value()),n=this._root;;){let e=r.cmp(n.segment);if(e>0)n.left||(n.left=new a,n.left.segment=r.value()),n=n.left;else if(e<0)n.right||(n.right=new a,n.right.segment=r.value()),n=n.right;else{if(!r.hasNext())break;r.next(),n.mid||(n.mid=new a,n.mid.segment=r.value()),n=n.mid}}const i=n.value;return n.value=t,n.key=e,i}get(e){let t=this._iter.reset(e),n=this._root;for(;n;){let e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),n=n.mid}}return n?n.value:void 0}delete(e){let t=this._iter.reset(e),n=[],r=this._root;for(;r;){
let e=t.cmp(r.segment);if(e>0)n.push([1,r]),r=r.left;else if(e<0)n.push([-1,r]),r=r.right;else{if(!t.hasNext()){for(r.value=void 0;n.length>0&&r.isEmpty();){let[e,t]=n.pop();switch(e){case 1:t.left=void 0;break;case 0:t.mid=void 0;break;case-1:t.right=void 0}r=t}break}t.next(),n.push([0,r]),r=r.mid}}}findSubstr(e){let t=this._iter.reset(e),n=this._root,r=void 0;for(;n;){let e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())break;t.next(),r=n.value||r,n=n.mid}}return n&&n.value||r}findSuperstr(e){let t=this._iter.reset(e),n=this._root;for(;n;){let e=t.cmp(n.segment);if(e>0)n=n.left;else if(e<0)n=n.right;else{if(!t.hasNext())return n.mid?this._nodeIterator(n.mid):void 0;t.next(),n=n.mid}}}_nodeIterator(e){let t,n,i;return{next:()=>(i||(i=[],n=0,this._forEach(e,e=>i.push(e))),n>=i.length?r.FIN:(t?t.value=i[n++]:t={done:!1,value:i[n++]},t))}}forEach(e){this._forEach(this._root,e)}_forEach(e,t){e&&(this._forEach(e.left,t),e.value&&t(e.value,e.key),this._forEach(e.mid,t),
this._forEach(e.right,t))}}t.TernarySearchTree=c;class u{constructor(){this.map=new Map,this.ignoreCase=!1}set(e,t){this.map.set(this.toKey(e),t)}get(e){return this.map.get(this.toKey(e))}has(e){return this.map.has(this.toKey(e))}get size(){return this.map.size}clear(){this.map.clear()}delete(e){return this.map.delete(this.toKey(e))}forEach(e){this.map.forEach(e)}values(){return i(this.map)}toKey(e){let t=e.toString();return this.ignoreCase&&(t=t.toLowerCase()),t}keys(){return s(this.map).map(e=>n.URI.parse(e))}clone(){const e=new u;return this.map.forEach((t,n)=>e.map.set(n,t)),e}}t.ResourceMap=u;!function(e){e[e.None=0]="None",e[e.AsOld=1]="AsOld",e[e.AsNew=2]="AsNew"}(t.Touch||(t.Touch={}));class h{constructor(){this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}has(e){return this._map.has(e)}get(e,t=0){const n=this._map.get(e)
;if(n)return 0!==t&&this.touch(n,t),n.value}set(e,t,n=0){let r=this._map.get(e);if(r)r.value=t,0!==n&&this.touch(r,n);else{switch(r={key:e,value:t,next:void 0,previous:void 0},n){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:default:this.addItemLast(r)}this._map.set(e,r),this._size++}}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(t)return this._map.delete(e),this.removeItem(t),this._size--,t.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const e=this._head;return this._map.delete(e.key),this.removeItem(e),this._size--,e.value}forEach(e,t){let n=this._head;for(;n;)t?e.bind(t)(n.value,n.key,this):e(n.value,n.key,this),n=n.next}values(){let e=[],t=this._head;for(;t;)e.push(t.value),t=t.next;return e}keys(){let e=[],t=this._head;for(;t;)e.push(t.key),t=t.next;return e}trimOld(e){if(e>=this.size)return;if(0===e)return void this.clear();let t=this._head,n=this.size;for(;t&&n>e;)this._map.delete(t.key),
t=t.next,n--;this._head=t,this._size=n,t&&(t.previous=void 0)}addItemFirst(e){if(this._head||this._tail){if(!this._head)throw new Error("Invalid list");e.next=this._head,this._head.previous=e}else this._tail=e;this._head=e}addItemLast(e){if(this._head||this._tail){if(!this._tail)throw new Error("Invalid list");e.previous=this._tail,this._tail.next=e}else this._head=e;this._tail=e}removeItem(e){if(e===this._head&&e===this._tail)this._head=void 0,this._tail=void 0;else if(e===this._head){if(!e.next)throw new Error("Invalid list");e.next.previous=void 0,this._head=e.next}else if(e===this._tail){if(!e.previous)throw new Error("Invalid list");e.previous.next=void 0,this._tail=e.previous}else{const t=e.next,n=e.previous;if(!t||!n)throw new Error("Invalid list");t.previous=n,n.next=t}e.next=void 0,e.previous=void 0}touch(e,t){if(!this._head||!this._tail)throw new Error("Invalid list");if(1===t||2===t)if(1===t){if(e===this._head)return;const t=e.next,n=e.previous;e===this._tail?(n.next=void 0,
this._tail=n):(t.previous=n,n.next=t),e.previous=void 0,e.next=this._head,this._head.previous=e,this._head=e}else if(2===t){if(e===this._tail)return;const t=e.next,n=e.previous;e===this._head?(t.previous=void 0,this._head=t):(t.previous=n,n.next=t),e.next=void 0,e.previous=this._tail,this._tail.next=e,this._tail=e}}toJSON(){const e=[];return this.forEach((t,n)=>{e.push([n,t])}),e}fromJSON(e){this.clear();for(const[t,n]of e)this.set(t,n)}}t.LinkedMap=h;class f extends h{constructor(e,t=1){super(),this._limit=e,this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e,this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1),this.checkTrim()}get(e){return super.get(e,2)}peek(e){return super.get(e,0)}set(e,t){super.set(e,t,2),this.checkTrim()}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}t.LRUCache=f}),define(e[37],t([1,0,16,4,22,2,9,6]),function(e,t,n,r,i,s,o,l){"use strict";function a(e){
switch(e){case 0:return"";case 1:return`${E}*?`;default:return`(?:${w}|${E}+${w}|${w}${E}+)*?`}}function c(e,t){if(!e)return[];let n=[],r=!1,i=!1,s="";for(const o of e){switch(o){case t:if(!r&&!i){n.push(s),s="";continue}break;case"{":r=!0;break;case"}":r=!1;break;case"[":i=!0;break;case"]":i=!1}s+=o}return s&&n.push(s),n}function u(e){if(!e)return"";let t="",n=c(e,v);if(n.every(e=>e===b))t=".*";else{let e=!1;n.forEach((i,s)=>{if(i===b)return void(e||(t+=a(2),e=!0));let o=!1,l="",h=!1,f="";for(const e of i)if("}"!==e&&o)l+=e;else if(!h||"]"===e&&f)switch(e){case"{":o=!0;continue;case"[":h=!0;continue;case"}":let n=`(?:${c(l,",").map(e=>u(e)).join("|")})`;t+=n,o=!1,l="";break;case"]":t+="["+f+"]",h=!1,f="";break;case"?":t+=E;continue;case"*":t+=a(1);continue;default:t+=r.escapeRegExpCharacters(e)}else{let t;f+=t="-"===e?e:"^"!==e&&"!"!==e||f?e===v?"":r.escapeRegExpCharacters(e):"^"}s<n.length-1&&(n[s+1]!==b||s+2<n.length)&&(t+=w),e=!1})}return t}function h(e,t){if(!e)return P;let i
;i="string"!=typeof e?e.pattern:e;const s=`${i=i.trim()}_${!!t.trimForExclusions}`;let o=L.get(s);if(o)return f(o,e);let l;if(x.test(i)){const e=i.substr(4);o=function(t,n){return"string"==typeof t&&r.endsWith(t,e)?i:null}}else o=(l=A.exec(d(i,t)))?function(e,t){const n=`/${e}`,i=`\\${e}`,s=function(s,o){return"string"!=typeof s?null:o?o===e?t:null:s===e||r.endsWith(s,n)||r.endsWith(s,i)?t:null},o=[e];return s.basenames=o,s.patterns=[t],s.allBasenames=o,s}(l[1],i):(t.trimForExclusions?O:S).test(i)?function(e,t){const r=y(e.slice(1,-1).split(",").map(e=>h(e,t)).filter(e=>e!==P),e),i=r.length;if(!i)return P;if(1===i)return r[0];const s=function(t,n){for(let i=0,s=r.length;i<s;i++)if(r[i](t,n))return e;return null},o=n.first(r,e=>!!e.allBasenames);o&&(s.allBasenames=o.allBasenames);const l=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);l.length&&(s.allPaths=l);return s}(i,t):(l=F.exec(d(i,t)))?p(l[1].substr(1),i,!0):(l=I.exec(d(i,t)))?p(l[1],i,!1):function(e){try{const t=new RegExp(`^${u(e)}$`)
;return function(n,r){return t.lastIndex=0,"string"==typeof n&&t.test(n)?e:null}}catch(e){return P}}(i);return L.set(s,o),f(o,e)}function f(e,t){return"string"==typeof t?e:function(n,r){return i.isEqualOrParent(n,t.base)?e(s.relative(t.base,n),r):null}}function d(e,t){return t.trimForExclusions&&r.endsWith(e,"/**")?e.substr(0,e.length-2):e}function p(e,t,n){const i=s.sep!==s.posix.sep?e.replace(C,s.sep):e,o=s.sep+i,l=n?function(e,n){return"string"!=typeof e||e!==i&&!r.endsWith(e,o)?null:t}:function(e,n){return"string"==typeof e&&e===i?t:null};return l.allPaths=[(n?"*/":"./")+e],l}function m(e,t={}){if(!e)return D;if("string"==typeof e||_(e)){const n=h(e,t);if(n===P)return D;const r=function(e,t){return!!n(e,t)};return n.allBasenames&&(r.allBasenames=n.allBasenames),n.allPaths&&(r.allPaths=n.allPaths),r}return function(e,t){const r=y(Object.getOwnPropertyNames(e).map(n=>(function(e,t,n){if(!1===t)return P;const r=h(e,n);if(r===P)return P;if("boolean"==typeof t)return r;if(t){const n=t.when
;if("string"==typeof n){const t=(t,i,s,o)=>{if(!o||!r(t,i))return null;const a=n.replace("$(basename)",s),c=o(a);return l.isThenable(c)?c.then(t=>t?e:null):c?e:null};return t.requiresSiblings=!0,t}}return r})(n,e[n],t)).filter(e=>e!==P)),i=r.length;if(!i)return P;if(!r.some(e=>!!e.requiresSiblings)){if(1===i)return r[0];const e=function(e,t){for(let n=0,i=r.length;n<i;n++){const i=r[n](e,t);if(i)return i}return null},t=n.first(r,e=>!!e.allBasenames);t&&(e.allBasenames=t.allBasenames);const s=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);return s.length&&(e.allPaths=s),e}const o=function(e,t,n){let i=void 0;for(let o=0,l=r.length;o<l;o++){const l=r[o];l.requiresSiblings&&n&&(t||(t=s.basename(e)),i||(i=t.substr(0,t.length-s.extname(e).length)));const a=l(e,t,i,n);if(a)return a}return null},a=n.first(r,e=>!!e.allBasenames);a&&(o.allBasenames=a.allBasenames);const c=r.reduce((e,t)=>t.allPaths?e.concat(t.allPaths):e,[]);c.length&&(o.allPaths=c);return o}(e,t)}function g(e){const t={}
;for(const n of e)t[n]=!0;return t}function _(e){const t=e;return t&&"string"==typeof t.base&&"string"==typeof t.pattern}function y(e,t){const n=e.filter(e=>!!e.basenames);if(n.length<2)return e;const r=n.reduce((e,t)=>{const n=t.basenames;return n?e.concat(n):e},[]);let i;if(t){i=[];for(let e=0,n=r.length;e<n;e++)i.push(t)}else i=n.reduce((e,t)=>{const n=t.patterns;return n?e.concat(n):e},[]);const s=function(e,t){if("string"!=typeof e)return null;if(!t){let n;for(n=e.length;n>0;n--){const t=e.charCodeAt(n-1);if(47===t||92===t)break}t=e.substr(n)}const n=r.indexOf(t);return-1!==n?i[n]:null};s.basenames=r,s.patterns=i,s.allBasenames=r;const o=e.filter(e=>!e.basenames);return o.push(s),o}Object.defineProperty(t,"__esModule",{value:!0}),t.getEmptyExpression=function(){return Object.create(null)};const b="**",v="/",w="[/\\\\]",E="[^/\\\\]",C=/\//g;t.splitGlobAware=c
;const x=/^\*\*\/\*\.[\w\.-]+$/,A=/^\*\*\/([\w\.-]+)\/?$/,S=/^{\*\*\/[\*\.]?[\w\.-]+\/?(,\*\*\/[\*\.]?[\w\.-]+\/?)*}$/,O=/^{\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?(,\*\*\/[\*\.]?[\w\.-]+(\/(\*\*)?)?)*}$/,F=/^\*\*((\/[\w\.-]+)+)\/?$/,I=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,L=new o.LRUCache(1e4),D=function(){return!1},P=function(){return null};t.match=function(e,t,n){return!(!e||"string"!=typeof t)&&m(e)(t,void 0,n)},t.parse=m,t.hasSiblingPromiseFn=function(e){if(!e)return;let t;return n=>(t||(t=(e()||Promise.resolve([])).then(e=>e?g(e):{})),t.then(e=>!!e[n]))},t.hasSiblingFn=function(e){if(!e)return;let t;return n=>{if(!t){const n=e();t=n?g(n):{}}return!!t[n]}},t.isRelativePattern=_,t.parseToAsync=function(e,t){const n=m(e,t);return(e,t,r)=>{const i=n(e,t,r);return l.isThenable(i)?i:Promise.resolve(i)}},t.getBasenameTerms=function(e){return e.allBasenames||[]},t.getPathTerms=function(e){return e.allPaths||[]}}),define(e[43],t([1,0,9]),function(e,t,n){"use strict";function r(e,n,r){if(!t.canNormalize||!e)return e
;const i=r.get(e);if(i)return i;let s;return s=o.test(e)?e.normalize(n):e,r.set(e,s),s}Object.defineProperty(t,"__esModule",{value:!0}),t.canNormalize="function"==typeof"".normalize;const i=new n.LRUCache(1e4);t.normalizeNFC=function(e){return r(e,"NFC",i)};const s=new n.LRUCache(1e4);t.normalizeNFD=function(e){return r(e,"NFD",s)};const o=/[^\u0000-\u0080]/}),define(e[23],t([1,0,22,2,8,4,36,3,37,9]),function(e,t,n,r,i,s,o,l,a,c){"use strict";function u(e){return!e||e.scheme!==o.Schemas.file||!l.isLinux}function h(e,t,r=u(e)){if(e.scheme===t.scheme){if(e.scheme===o.Schemas.file)return n.isEqualOrParent(p(e),p(t),r);if(f(e.authority,t.authority))return n.isEqualOrParent(e.path,t.path,r,"/")}return!1}function f(e,t){return e===t||s.equalsIgnoreCase(e,t)}function d(e){return r.posix.basename(e.path)}function p(e){let t;const r=e.path
;return t=e.authority&&r.length>1&&"file"===e.scheme?`//${e.authority}${r}`:l.isWindows&&47===r.charCodeAt(0)&&n.isWindowsDriveLetter(r.charCodeAt(1))&&58===r.charCodeAt(2)?r.substr(1):r,l.isWindows&&(t=t.replace(/\//g,"\\")),t}function m(e){if(e.scheme===o.Schemas.file){const t=p(e);return t.length>n.getRoot(t).length&&t[t.length-1]===r.sep}{let t=e.path;return t.length>1&&47===t.charCodeAt(t.length-1)}}function g(e,t){if(e.scheme===t.scheme&&f(e.authority,t.authority)){if(e.scheme===o.Schemas.file){const i=r.relative(e.path,t.path);return l.isWindows?n.toSlashes(i):i}return r.posix.relative(e.path||"/",t.path||"/")}}Object.defineProperty(t,"__esModule",{value:!0}),t.getComparisonKey=function(e){return u(e)?e.toString().toLowerCase():e.toString()},t.hasToIgnoreCase=u,t.basenameOrAuthority=function(e){return d(e)||e.authority},t.isEqualOrParent=h,t.isEqualAuthority=f,t.isEqual=function(e,t,n=u(e)){if(e===t)return!0;if(!e||!t)return!1;if(e.scheme!==t.scheme||!f(e.authority,t.authority))return!1
;const r=e.path||"/",i=t.path||"/";return r===i||n&&s.equalsIgnoreCase(r||"/",i||"/")},t.basename=d,t.extname=function(e){return r.posix.extname(e.path)},t.dirname=function(e){if(0===e.path.length)return e;if(e.scheme===o.Schemas.file)return i.URI.file(r.dirname(p(e)));let t=r.posix.dirname(e.path);return e.authority&&t.length&&47!==t.charCodeAt(0)&&(console.error(`dirname("${e.toString})) resulted in a relative path`),t="/"),e.with({path:t})},t.joinPath=function(e,...t){let n;return n=e.scheme===o.Schemas.file?i.URI.file(r.join(p(e),...t)).path:r.posix.join(e.path||"/",...t),e.with({path:n})},t.normalizePath=function(e){if(!e.path.length)return e;let t;return t=e.scheme===o.Schemas.file?i.URI.file(r.normalize(p(e))).path:r.posix.normalize(e.path),e.with({path:t})},t.originalFSPath=p,t.isAbsolutePath=function(e){return!!e.path&&"/"===e.path[0]},t.hasTrailingPathSeparator=m,t.removeTrailingPathSeparator=function(e){return m(e)?e.with({path:e.path.substr(0,e.path.length-1)}):e},t.relativePath=g,
t.resolvePath=function(e,t){let n;return n=e.scheme===o.Schemas.file?i.URI.file(r.resolve(p(e),t)).path:r.posix.resolve(e.path,t),e.with({path:n})},t.distinctParents=function(e,t){const n=[];for(let r=0;r<e.length;r++){const i=t(e[r]);e.some((e,n)=>n!==r&&h(i,t(e)))||n.push(e[r])}return n},t.isMalformedFileUri=function(e){if(!e.scheme||l.isWindows&&e.scheme.match(/^[a-zA-Z]$/))return i.URI.file((e.scheme?e.scheme+":":"")+e.path)};!function(e){e.META_DATA_LABEL="label",e.META_DATA_DESCRIPTION="description",e.META_DATA_SIZE="size",e.META_DATA_MIME="mime",e.parseMetaData=function(t){const n=new Map;t.path.substring(t.path.indexOf(";")+1,t.path.lastIndexOf(";")).split(";").forEach(e=>{const[t,r]=e.split(":");t&&r&&n.set(t,r)});const r=t.path.substring(0,t.path.indexOf(";"));return r&&n.set(e.META_DATA_MIME,r),n}}(t.DataUri||(t.DataUri={}));class _{constructor(e,t){this.expressionsByRoot=c.TernarySearchTree.forPaths(),this.globalExpression=a.parse(e);for(const e of t)this.expressionsByRoot.set(e.root.toString(),{
root:e.root,expression:a.parse(e.expression)})}matches(e){const t=this.expressionsByRoot.findSubstr(e.toString());if(t){const n=g(t.root,e);if(n&&t.expression(n))return!0}return!!this.globalExpression(e.path)}}t.ResourceGlobMatcher=_}),define(e[24],t([1,0]),function(e,t){"use strict";function n(){return new s}function r(e){return o.test(e)}Object.defineProperty(t,"__esModule",{value:!0});class i{constructor(e){this._value=e}asHex(){return this._value}}class s extends i{constructor(){super([s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),"-",s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),"-","4",s._randomHex(),s._randomHex(),s._randomHex(),"-",s._oneOf(s._timeHighBits),s._randomHex(),s._randomHex(),s._randomHex(),"-",s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex(),s._randomHex()].join(""))}static _oneOf(e){
return e[Math.floor(e.length*Math.random())]}static _randomHex(){return s._oneOf(s._chars)}}s._chars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],s._timeHighBits=["8","9","a","b"],t.v4=n;const o=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;t.isUUID=r,t.parse=function(e){if(!r(e))throw new Error("invalid uuid");return new i(e)},t.generateUuid=function(){return n().asHex()}}),define(e[25],t([1,0,26]),function(e,t,n){"use strict";function r(e,t,i){if(n.ok(e,"Missing first parameter"),n.ok("function"==typeof t,"Second parameter must be a function that is called for each element"),n.ok("function"==typeof i,"Third parameter must be a function that is called on error and success"),"function"==typeof e)try{e((e,n)=>{e?i(e,null):r(n,t,i)})}catch(e){i(e,null)}else{let n=[],r=function(s){if(s<e.length)try{t(e[s],(e,t)=>{!0!==e&&!1!==e||(t=e,e=null),e?i(e,null):(t&&n.push(t),process.nextTick(()=>{r(s+1)}))},s,e.length)}catch(e){i(e,null)}else i(null,n)};r(0)}}function i(e){
!function(e){n.ok(e.length>1,"Need at least one error handler and one function to process sequence"),e.forEach(e=>{n.ok("function"==typeof e)});let t=e.splice(0,1)[0],i=null;r(e,(e,t)=>{let n=function(e,n){!0!==e&&!1!==e||(n=e,e=null),e?t(e,null):(i=n,t(null,null))};try{e.call(n,i)}catch(e){t(e,null)}},(e,n)=>{e&&t(e)})}(Array.isArray(e)?e:Array.prototype.slice.call(arguments))}Object.defineProperty(t,"__esModule",{value:!0}),t.parallel=function(e,t,n){let r=new Array(e.length),i=new Array(e.length),s=!1,o=0;if(0===e.length)return n(null,[]);e.forEach((l,a)=>{t(l,(t,l)=>{if(t?(s=!0,r[a]=null,i[a]=t):(r[a]=l,i[a]=null),++o===e.length)return n(s?i:null,r)})})},t.loop=r,t.sequence=i}),define(e[27],t([1,0,49]),function(e,t,n){"use strict";function r(e,t,s){if(0===t)return s(0);const o=new n.Socket;o.once("connect",()=>(i(o),r(e+1,t-1,s))),o.once("data",()=>{}),o.once("error",n=>(i(o),"ECONNREFUSED"!==n.code?r(e+1,t-1,s):s(e))),o.connect(e,"127.0.0.1")}function i(e){try{e.removeAllListeners("connect"),
e.removeAllListeners("error"),e.end(),e.destroy(),e.unref()}catch(e){console.error(e)}}Object.defineProperty(t,"__esModule",{value:!0}),t.randomPort=function(){return 1025+Math.floor(64510*Math.random())},t.findFreePort=function(e,t,n){let i=!1;return new Promise(s=>{const o=setTimeout(()=>{if(!i)return i=!0,s(0)},n);r(e,t,e=>{if(!i)return i=!0,clearTimeout(o),s(e)})})}}),define(e[29],t([1,0,11]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readExactlyByFile=function(e,t){return new Promise((r,i)=>{n.open(e,"r",null,(e,s)=>{function o(e,t,o){n.close(s,n=>n?i(n):e&&"EISDIR"===e.code?i(e):r({buffer:t,bytesRead:o}))}function l(){n.read(s,a,c,t-c,null,(e,n)=>e?o(e,null,0):0===n?o(null,a,c):(c+=n)===t?o(null,a,c):l())}if(e)return i(e);const a=Buffer.allocUnsafe(t);let c=0;l()})})},t.readToMatchingString=function(e,t,r,i){return new Promise((s,o)=>n.open(e,"r",null,(l,a)=>{function c(e,t){n.close(a,n=>n?o(n):e&&"EISDIR"===e.code?o(e):s(t))}function u(){n.read(a,h,f,r,null,(n,r)=>{
if(n)return c(n,null);if(0===r)return c(null,null);f+=r;const s=h.indexOf(t);return s>=0?c(null,h.toString("utf8").substr(0,s)):f>=i?c(new Error(`Could not find ${t} in first ${i} bytes of ${e}`),null):u()})}if(l)return o(l);let h=Buffer.allocUnsafe(i),f=0;u()}))}}),define(e[18],t([1,0,29,32,3,33,48]),function(e,t,n,r,i,s,o){"use strict";function l(e){return r.decodeStream(a(e))}function a(e){return e===t.UTF8_with_bom||null===e?t.UTF8:e}function c(e,n){if(!e||n<2)return null;const r=e.readUInt8(0),i=e.readUInt8(1);if(254===r&&255===i)return t.UTF16be;if(255===r&&254===i)return t.UTF16le;if(n<3)return null;const s=e.readUInt8(2);return 239===r&&187===i&&191===s?t.UTF8:null}function u(t){return new Promise((t,n)=>{e(["jschardet"],t,n)}).then(e=>{e.Constants.MINIMUM_THRESHOLD=d;const n=e.detect(t);if(!n||!n.encoding)return null;const r=n.encoding.toLowerCase();return 0<=p.indexOf(r)?null:h(n.encoding)})}function h(e){const t=e.replace(/[^a-zA-Z0-9]/g,"").toLowerCase();return m[t]||t}
function f({buffer:e,bytesRead:n},r){let i=c(e,n),s=!1;if(i!==t.UTF16be&&i!==t.UTF16le&&e){let r=!0,o=!0,l=!1;for(let t=0;t<n&&t<g;t++){const n=t%2==1,i=0===e.readInt8(t);if(i&&(l=!0),r&&(n&&!i||!n&&i)&&(r=!1),o&&(n&&i||!n&&!i)&&(o=!1),i&&!r&&!o)break}l&&(r?i=t.UTF16le:o?i=t.UTF16be:s=!0)}return r&&!s&&!i&&e?u(e.slice(0,n)).then(e=>({seemsBinary:!1,encoding:e})):{seemsBinary:s,encoding:i}}Object.defineProperty(t,"__esModule",{value:!0}),t.UTF8="utf8",t.UTF8_with_bom="utf8bom",t.UTF16be="utf16be",t.UTF16le="utf16le",t.toDecodeStream=function(e,n){return n.minBytesRequiredForDetection||(n.minBytesRequiredForDetection=n.guessEncoding?y:_),n.overwriteEncoding||(n.overwriteEncoding=(e=>e||t.UTF8)),new Promise((t,r)=>{e.on("error",r),e.pipe(new class extends o.Writable{constructor(){super(...arguments),this._buffer=[],this._bytesBuffered=0}_write(e,t,r){Buffer.isBuffer(e)||r(new Error("data must be a buffer")),this._decodeStream?this._decodeStream.write(e,r):(this._buffer.push(e),this._bytesBuffered+=e.length,
this._decodeStreamConstruction?this._decodeStreamConstruction.then(e=>r(),e=>r(e)):"number"==typeof n.minBytesRequiredForDetection&&this._bytesBuffered>=n.minBytesRequiredForDetection?this._startDecodeStream(r):r())}_startDecodeStream(e){this._decodeStreamConstruction=Promise.resolve(f({buffer:Buffer.concat(this._buffer),bytesRead:this._bytesBuffered},n.guessEncoding)).then(r=>{n.overwriteEncoding&&(r.encoding=n.overwriteEncoding(r.encoding)),this._decodeStream=l(r.encoding);for(const e of this._buffer)this._decodeStream.write(e);e(),t({detected:r,stream:this._decodeStream})},t=>{this.emit("error",t),e(t)})}_final(e){this._decodeStream?this._decodeStream.end(e):this._startDecodeStream(()=>this._decodeStream.end(e))}})})},t.bomLength=function(e){switch(e){case t.UTF8:return 3;case t.UTF16be:case t.UTF16le:return 2}return 0},t.decode=function(e,t){return r.decode(e,a(t))},t.encode=function(e,t,n){return r.encode(e,a(t),n)},t.encodingExists=function(e){return r.encodingExists(a(e))},t.decodeStream=l,
t.encodeStream=function(e,t){return r.encodeStream(a(e),t)},t.detectEncodingByBOMFromBuffer=c,t.detectEncodingByBOM=function(e){return n.readExactlyByFile(e,3).then(({buffer:e,bytesRead:t})=>c(e,t))};const d=.2,p=["ascii","utf-8","utf-16","utf-32"];t.guessEncodingByBuffer=u;const m={ibm866:"cp866",big5:"cp950"};t.toCanonicalName=function(e){switch(e){case"shiftjis":return"shift-jis";case"utf16le":return"utf-16le";case"utf16be":return"utf-16be";case"big5hkscs":return"big5-hkscs";case"eucjp":return"euc-jp";case"euckr":return"euc-kr";case"koi8r":return"koi8-r";case"koi8u":return"koi8-u";case"macroman":return"x-mac-roman";case"utf8bom":return"utf8";default:const t=e.match(/windows(\d+)/);return t?"windows-"+t[1]:e}};const g=512,_=512,y=4096;t.detectEncodingFromBuffer=f;const b={437:"cp437",850:"cp850",852:"cp852",855:"cp855",857:"cp857",860:"cp860",861:"cp861",863:"cp863",865:"cp865",866:"cp866",869:"cp869",936:"cp936",1252:"cp1252"};t.resolveTerminalEncoding=function(e){let n
;const o=process.env.VSCODE_CLI_ENCODING;return o?(e&&console.log(`Found VSCODE_CLI_ENCODING variable: ${o}`),n=Promise.resolve(o)):n=i.isLinux||i.isMacintosh?new Promise(t=>{e&&console.log('Running "locale charmap" to detect terminal encoding...'),s.exec("locale charmap",(e,n,r)=>t(n))}):new Promise(t=>{e&&console.log('Running "chcp" to detect terminal encoding...'),s.exec("chcp",(e,n,r)=>{if(n){const e=Object.keys(b);for(const r of e)if(n.indexOf(r)>=0)return t(b[r])}return t(void 0)})}),n.then(n=>{if(e&&console.log(`Detected raw terminal encoding: ${n}`),!n||"utf-8"===n.toLowerCase()||n.toLowerCase()===t.UTF8)return t.UTF8;const i=h(n);return r.encodingExists(i)?i:(e&&console.log("Unsupported terminal encoding, falling back to UTF-8."),t.UTF8)})}}),define(e[19],t([1,0,11,2,6,43,3,4,24,18,25,7]),function(e,t,n,r,i,s,o,l,a,c,u,h){"use strict";function f(e){return o.isMacintosh?n.readdirSync(e).map(e=>s.normalizeNFC(e)):n.readdirSync(e)}function d(e,t){
return o.isMacintosh?n.readdir(e,(e,n)=>e?t(e,[]):t(null,n.map(e=>s.normalizeNFC(e)))):n.readdir(e,t)}function p(e,t,i,s){const o=s||Object.create(null);n.stat(e,(s,l)=>{if(s)return i(s);if(!l.isDirectory())return function(e,t,r,i){const s=n.createReadStream(e),o=n.createWriteStream(t,{mode:r});let l=!1;const a=e=>{l||(l=!0,e?i(e):n.chmod(t,r,i))};s.once("error",e=>a(e)),o.once("error",e=>a(e)),o.once("close",()=>a()),s.pipe(o)}(e,t,511&l.mode,i);if(o[e])return i(null);o[e]=!0;const a=function(){d(e,(n,s)=>{E(s,(n,i)=>{p(r.join(e,n),r.join(t,n),e=>i(e,[]),o)},i)})};m(t,511&l.mode).then(a,a)})}function m(e,t,s){const o=()=>i.nfcall(n.mkdir,e,t).then(void 0,t=>"ENOENT"===t.code?Promise.reject(t):i.nfcall(n.stat,e).then(t=>t.isDirectory()?null:Promise.reject(new Error(`'${e}' exists and is not a directory.`)),e=>Promise.reject(t)));return e===r.dirname(e)?Promise.resolve(!0):o().then(void 0,n=>s&&s.isCancellationRequested?Promise.resolve(!1):"ENOENT"===n.code?m(r.dirname(e),t).then(o):Promise.reject(n))}
function g(e,t){if("\\"===e||"/"===e)return t(new Error("Will not delete root!"));n.exists(e,i=>{i?n.lstat(e,(i,s)=>{if(i||!s)t(i);else if(!s.isDirectory()||s.isSymbolicLink()){const r=s.mode;128&r?n.unlink(e,t):n.chmod(e,128|r,r=>{r?t(r):n.unlink(e,t)})}else d(e,(i,s)=>{if(i||!s)t(i);else if(0===s.length)n.rmdir(e,t);else{let i=null,o=s.length;s.forEach(s=>{g(r.join(e,s),r=>{o--,r&&(i=i||r),0===o&&(i?t(i):n.rmdir(e,t))})})}})}):t(null)})}function _(e){try{const t=n.lstatSync(e);t.isDirectory()&&!t.isSymbolicLink()?(f(e).forEach(t=>_(r.join(e,t))),n.rmdirSync(e)):n.unlinkSync(e)}catch(e){if("ENOENT"===e.code)return;throw e}}function y(e,t,r,i){r=b(r),"string"==typeof t||Buffer.isBuffer(t)?function(e,t,r,i){r.encoding&&(t=c.encode(t,r.encoding.charset,{addBOM:r.encoding.addBOM}));if(!C)return n.writeFile(e,t,{mode:r.mode,flag:r.flag},i);n.open(e,"string"==typeof r.flag?r.flag:"r",r.mode,(e,r)=>{if(e)return i(e);n.writeFile(r,t,e=>{if(e)return n.close(r,()=>i(e))
;n.fdatasync(r,e=>(e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),C=!1),n.close(r,e=>i(e))))})})}(e,t,r,i):function(e,t,r,i){let s=!1;const o=e=>{s||(s=!0,e?u?(l.once("close",()=>i(e)),l.destroy()):i(e):i())},l=n.createWriteStream(e,{mode:r.mode,flags:r.flag,autoClose:!1});let a,u;l.once("open",e=>{a=e,u=!0,r.encoding&&(t=t.pipe(c.encodeStream(r.encoding.charset,{addBOM:r.encoding.addBOM}))),t.pipe(l)}),t.once("error",e=>o(e)),l.once("error",e=>o(e)),l.once("finish",()=>{C&&u?n.fdatasync(a,e=>{e&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",e),C=!1),l.destroy()}):l.destroy()}),l.once("close",()=>o())}(e,t,r,i)}function b(e){if(!e)return{mode:438,flag:"w"};const t={mode:e.mode,flag:e.flag,encoding:e.encoding};return"number"!=typeof t.mode&&(t.mode=438),"string"!=typeof t.flag&&(t.flag="w"),t}function v(e){const t=r.dirname(e);if(e===t)return e;const n=(r.basename(e)||e).toLowerCase();try{
const e=f(t).filter(e=>e.toLowerCase()===n);if(1===e.length){const n=v(t);if(n)return r.join(n,e[0])}else if(e.length>1){const i=e.indexOf(n);if(i>=0){const n=v(t);if(n)return r.join(n,e[i])}}}catch(e){}return null}function w(e){return l.rtrim(r.normalize(e),r.sep)}Object.defineProperty(t,"__esModule",{value:!0});const E=u.loop;t.readdirSync=f,t.readdir=d,t.statLink=function(e,t){n.lstat(e,(r,i)=>{r||i.isSymbolicLink()?n.stat(e,(e,n)=>{if(e)return t(e,null);t(null,{stat:n,isSymbolicLink:i&&i.isSymbolicLink()})}):t(null,{stat:i,isSymbolicLink:!1})})},t.copy=p,t.mkdirp=m,t.del=function(e,t,i,s){n.exists(e,o=>{if(!o)return i(null);n.stat(e,(o,c)=>{if(o||!c)return i(o);if("."===e[e.length-1]||l.endsWith(e,"./")||l.endsWith(e,".\\"))return g(e,i);const u=r.join(t,a.generateUuid());n.rename(e,u,t=>{if(t)return g(e,i);i(null),g(u,e=>{e&&console.error(e),s&&s(e)})})})})},t.delSync=_,t.mv=function(e,t,r){function i(e){if(e)return r(e);n.stat(t,(e,i)=>e?r(e):i.isDirectory()?r(null):void n.open(t,"a",null,(e,t)=>{
if(e)return r(e);n.futimes(t,i.atime,new Date,e=>{if(e)return r(e);n.close(t,r)})}))}if(e===t)return r(null);n.rename(e,t,n=>n?n&&e.toLowerCase()!==t.toLowerCase()&&"EXDEV"===n.code||l.endsWith(e,".")?p(e,t,t=>{if(t)return r(t);g(e,i)}):r(n):i(null))};let C=!0;t.writeFileAndFlush=y,t.writeFileAndFlushSync=function(e,t,r){if((r=b(r)).encoding&&(t=c.encode(t,r.encoding.charset,{addBOM:r.encoding.addBOM})),!C)return n.writeFileSync(e,t,{mode:r.mode,flag:r.flag});const i=n.openSync(e,"string"==typeof r.flag?r.flag:"r",r.mode);try{n.writeFileSync(i,t);try{n.fdatasyncSync(i)}catch(e){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",e),C=!1}}finally{n.closeSync(i)}},t.realcaseSync=v,t.realpathSync=function(e){try{return n.realpathSync(e)}catch(t){const r=w(e);return n.accessSync(r,n.constants.R_OK),r}},t.realpath=function(e,t){return n.realpath(e,(r,i)=>{if(!r)return t(null,i);const s=w(e);return n.access(s,n.constants.R_OK,e=>t(e,s))})},t.watch=function(e,t,r){try{
const i=n.watch(e);return i.on("change",(e,n)=>{let r;n&&(r=n.toString(),o.isMacintosh&&(r=s.normalizeNFC(r))),t(e,r)}),i.on("error",(t,n)=>r(`Failed to watch ${e} for changes (${t}, ${n})`)),h.toDisposable(()=>{i.removeAllListeners(),i.close()})}catch(t){n.exists(e,n=>{n&&r(`Failed to watch ${e} for changes (${t.toString()})`)})}return h.Disposable.None},t.sanitizeFilePath=function(e,t){return o.isWindows&&l.endsWith(e,":")&&(e+=r.sep),r.isAbsolute(e)||(e=r.join(t,e)),e=r.normalize(e),o.isWindows?(e=l.rtrim(e,r.sep),l.endsWith(e,":")&&(e+=r.sep)):(e=l.rtrim(e,r.sep))||(e=r.sep),e}}),define(e[20],t([1,0,19,2,6,11,12,3,5]),function(e,t,n,r,i,s,o,l,a){"use strict";function c(e){return i.nfcall(n.readdir,e)}function u(e){return f(e).then(t=>t.isDirectory()&&!t.isSymbolicLink()?c(e).then(t=>Promise.all(t.map(t=>u(r.join(e,t))))).then(()=>d(e)):p(e),e=>{if("ENOENT"!==e.code)return Promise.reject(e)})}function h(e){return i.nfcall(s.stat,e)}function f(e){return i.nfcall(s.lstat,e)}function d(e){
return i.nfcall(s.rmdir,e)}function p(e){return i.nfcall(s.unlink,e)}function m(e,t,r){return function(e){let t=y[e];if(!t){t=new i.Queue,y[e]=t;a.Event.once(t.onFinished)(()=>{delete y[e],t.dispose()})}return t}(function(e){let t=e;(l.isWindows||l.isMacintosh)&&(t=t.toLowerCase());return t}(e)).queue(()=>i.nfcall(n.writeFileAndFlush,e,t,r))}function g(e){return h(e).then(e=>e.isDirectory(),()=>!1)}function _(e,t=(b||(b=o.tmpdir()),b)){return i.nfcall(n.del,e,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.readdir=c,t.exists=function(e){return new Promise(t=>s.exists(e,t))},t.chmod=function(e,t){return i.nfcall(s.chmod,e,t)},t.mkdirp=n.mkdirp,t.rimraf=u,t.realpath=function(e){return i.nfcall(n.realpath,e)},t.stat=h,t.statLink=function(e){return i.nfcall(n.statLink,e)},t.lstat=f,t.rename=function(e,t){return i.nfcall(s.rename,e,t)},t.renameIgnoreError=function(e,t){return new Promise(n=>{s.rename(e,t,()=>n())})},t.rmdir=d,t.unlink=p,t.symlink=function(e,t,n){return i.nfcall(s.symlink,e,t,n)},
t.readlink=function(e){return i.nfcall(s.readlink,e)},t.truncate=function(e,t){return i.nfcall(s.truncate,e,t)},t.readFile=function(e,t){return i.nfcall(s.readFile,e,t)};const y=Object.create(null);t.writeFile=m,t.readDirsInDir=function(e){return c(e).then(t=>Promise.all(t.map(t=>g(r.join(e,t)))).then(e=>t.filter((t,n)=>e[n])))},t.dirExists=g,t.fileExists=function(e){return h(e).then(e=>e.isFile(),()=>!1)};let b=null;t.del=_,t.whenDeleted=function(e){return new Promise(t=>{let n=!1;const r=setInterval(()=>{n||(n=!0,s.exists(e,e=>{n=!1,e||(clearInterval(r),t(void 0))}))},1e3)})},t.copy=function(e,t){return i.nfcall(n.copy,e,t)}}),define(e[38],t([1,0,2,12,20]),function(e,t,n,r,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createWaitMarkerFile=function(e){const t=n.join(r.tmpdir(),Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,10));return i.writeFile(t,"").then(()=>(e&&console.log(`Marker file for --wait created: ${t}`),
t),t=>(e&&console.error(`Failed to create marker file for --wait: ${t}`),Promise.resolve(void 0)))}}),define(e[39],t([40,41]),function(e,t){return e.create("vs/platform/environment/node/argv",t)}),define(e[42],t([40,41]),function(e,t){return e.create("vs/platform/environment/node/argvHelper",t)}),define(e[15],t([1,0,47,12,39]),function(e,t,n,r,i){"use strict";function s(e){let t="";return e.args&&(t=Array.isArray(e.args)?` <${e.args.join("> <")}>`:` <${e.args}>`),e.alias?`-${e.alias} --${e.id}${t}`:`--${e.id}${t}`}function o(e,t){let n=e.map(s),r=Math.max.apply(null,n.map(e=>e.length))+2+1;if(t-r<25)return e.reduce((e,t,r)=>e.concat([`  ${n[r]}`,`      ${t.description}`]),[]);let i=t-r-1,o=[];return e.forEach((e,t)=>{let s=n[t],a=function(e,t){let n=[];for(;e.length;){let r=e.length<t?e.length:e.lastIndexOf(" ",t),i=e.slice(0,r).trim();e=e.slice(r),n.push(i)}return n}(e.description,i),c=l(r-s.length-2);o.push("  "+s+c+a[0]);for(let e=1;e<a.length;e++)o.push(l(r)+a[e])}),o}function l(e){return" ".repeat(e)}
Object.defineProperty(t,"__esModule",{value:!0});class a{constructor(){this.o=i.localize(0,null),this.e=i.localize(1,null),this.t=i.localize(2,null)}}t.options=[{id:"diff",type:"boolean",cat:"o",alias:"d",args:["file","file"],description:i.localize(3,null)},{id:"add",type:"boolean",cat:"o",alias:"a",args:"folder",description:i.localize(4,null)},{id:"goto",type:"boolean",cat:"o",alias:"g",args:"file:line[:character]",description:i.localize(5,null)},{id:"new-window",type:"boolean",cat:"o",alias:"n",description:i.localize(6,null)},{id:"reuse-window",type:"boolean",cat:"o",alias:"r",description:i.localize(7,null)},{id:"wait",type:"boolean",cat:"o",alias:"w",description:i.localize(8,null)},{id:"locale",type:"string",cat:"o",args:"locale",description:i.localize(9,null)},{id:"user-data-dir",type:"string",cat:"o",args:"dir",description:i.localize(10,null)},{id:"version",type:"boolean",cat:"o",alias:"v",description:i.localize(11,null)},{id:"help",type:"boolean",cat:"o",alias:"h",description:i.localize(12,null)},{
id:"folder-uri",type:"string",cat:"o",args:"uri",description:i.localize(13,null)},{id:"file-uri",type:"string",cat:"o",args:"uri",description:i.localize(14,null)},{id:"extensions-dir",type:"string",deprecates:"extensionHomePath",cat:"e",args:"dir",description:i.localize(15,null)},{id:"list-extensions",type:"boolean",cat:"e",description:i.localize(16,null)},{id:"show-versions",type:"boolean",cat:"e",description:i.localize(17,null)},{id:"install-extension",type:"string",cat:"e",args:"extension-id",description:i.localize(18,null)},{id:"uninstall-extension",type:"string",cat:"e",args:"extension-id",description:i.localize(19,null)},{id:"enable-proposed-api",type:"string",cat:"e",args:"extension-id",description:i.localize(20,null)},{id:"verbose",type:"boolean",cat:"t",description:i.localize(21,null)},{id:"log",type:"string",cat:"t",args:"level",description:i.localize(22,null)},{id:"status",type:"boolean",alias:"s",cat:"t",description:i.localize(23,null)},{id:"prof-modules",type:"boolean",alias:"p",cat:"t",
description:i.localize(24,null)},{id:"prof-startup",type:"boolean",cat:"t",description:i.localize(25,null)},{id:"disable-extensions",type:"boolean",deprecates:"disableExtensions",cat:"t",description:i.localize(26,null)},{id:"disable-extension",type:"string",cat:"t",args:"extension-id",description:i.localize(27,null)},{id:"inspect-extensions",type:"string",deprecates:"debugPluginHost",args:"port",cat:"t",description:i.localize(28,null)},{id:"inspect-brk-extensions",type:"string",deprecates:"debugBrkPluginHost",args:"port",cat:"t",description:i.localize(29,null)},{id:"disable-gpu",type:"boolean",cat:"t",description:i.localize(30,null)},{id:"upload-logs",type:"string",cat:"t",description:i.localize(31,null)},{id:"max-memory",type:"string",cat:"t",description:i.localize(32,null)},{id:"remote",type:"string"},{id:"extensionDevelopmentPath",type:"string"},{id:"extensionTestsPath",type:"string"},{id:"debugId",type:"string"},{id:"inspect-search",type:"string",deprecates:"debugSearch"},{id:"inspect-brk-search",
type:"string",deprecates:"debugBrkSearch"},{id:"export-default-configuration",type:"string"},{id:"install-source",type:"string"},{id:"driver",type:"string"},{id:"logExtensionHostCommunication",type:"boolean"},{id:"skip-getting-started",type:"boolean"},{id:"skip-release-notes",type:"boolean"},{id:"sticky-quickopen",type:"boolean"},{id:"disable-restore-windows",type:"boolean"},{id:"disable-telemetry",type:"boolean"},{id:"disable-updates",type:"boolean"},{id:"disable-crash-reporter",type:"boolean"},{id:"skip-add-to-recently-opened",type:"boolean"},{id:"unity-launch",type:"boolean"},{id:"open-url",type:"boolean"},{id:"nolazy",type:"boolean"},{id:"issue",type:"boolean"},{id:"file-write",type:"boolean"},{id:"file-chmod",type:"boolean"},{id:"driver-verbose",type:"boolean"},{id:"force",type:"boolean"},{id:"trace-category-filter",type:"string"},{id:"trace-options",type:"string"},{id:"prof-code-loading",type:"boolean"}],t.parseArgs=function(e,r=(e=>!0)){const i={},s=[],o=[]
;for(let e of t.options)r(e)&&e.alias&&(i[e.id]=e.alias),"string"===e.type?(s.push(e.id),e.deprecates&&s.push(e.deprecates)):"boolean"===e.type&&(o.push(e.id),e.deprecates&&o.push(e.deprecates));const l=n(e,{string:s,boolean:o,alias:i});for(let e of t.options)e.alias&&delete l[e.alias],e.deprecates&&l.hasOwnProperty(e.deprecates)&&!l[e.id]&&(l[e.id]=l[e.deprecates],delete l[e.deprecates]);return l},t.formatOptions=o,t.buildHelpMessage=function(e,n,s,l=(e=>!0)){const c=process.stdout.isTTY&&process.stdout.columns||80;let u=new a,h=[`${e} ${s}`];h.push(""),h.push(`${i.localize(33,null)}: ${n} [${i.localize(34,null)}][${i.localize(35,null)}...]`),h.push(""),"win32"===r.platform()?h.push(i.localize(36,null,n)):h.push(i.localize(37,null,n)),h.push("");for(let e in u){let n=t.options.filter(t=>!!t.description&&t.cat===e&&l(t));n.length&&(h.push(u[e]),h.push(...o(n,c)),h.push(""))}return h.join("\n")},t.buildVersionMessage=function(e,t){return`${e||i.localize(38,null)}\n${t||i.localize(39,null)}\n${process.arch}`},
t.asArray=function(e){return e?Array.isArray(e)?e:[e]:[]},t.hasArgs=function(e){return!(!e||Array.isArray(e)&&!e.length)}}),define(e[45],t([1,0]),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);const 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=(()=>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[46],t([1,0,2,3,45,5,4,7,23,21,6]),function(e,t,n,r,i,s,o,l,a,c,u){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IFileService=i.createDecorator("fileService");class h extends l.Disposable{constructor(e,t){super(),this.file=e,this.fileService=t,this._onDidContentChange=new s.Emitter,this.onDidContentChange=this._onDidContentChange.event,this.watching=!1,this.delayer=new u.ThrottledDelayer(500)}watch(e){this.watching||(this.etag=e,this.poll(),this.watching=!0)}poll(){this.delayer.trigger(()=>this.doWatch().then(()=>this.poll()))}doWatch(){return this.fileService.resolveFile(this.file).then(e=>{e.etag!==this.etag&&(this.etag=e.etag,this._onDidContentChange.fire(e))})}unwatch(){this.watching&&(this.delayer.cancel(),this.watching=!1)}dispose(){this.unwatch(),super.dispose()}}t.FileListener=h;!function(e){e[e.Unknown=0]="Unknown",e[e.File=1]="File",
e[e.Directory=2]="Directory",e[e.SymbolicLink=64]="SymbolicLink"}(t.FileType||(t.FileType={}));!function(e){e[e.FileReadWrite=2]="FileReadWrite",e[e.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",e[e.FileFolderCopy=8]="FileFolderCopy",e[e.PathCaseSensitive=1024]="PathCaseSensitive",e[e.Readonly=2048]="Readonly"}(t.FileSystemProviderCapabilities||(t.FileSystemProviderCapabilities={}));!function(e){e[e.CREATE=0]="CREATE",e[e.DELETE=1]="DELETE",e[e.MOVE=2]="MOVE",e[e.COPY=3]="COPY"}(t.FileOperation||(t.FileOperation={}));class f{constructor(e,t,n){this._resource=e,this._operation=t,this._target=n}get resource(){return this._resource}get target(){return this._target}get operation(){return this._operation}}t.FileOperationEvent=f;!function(e){e[e.UPDATED=0]="UPDATED",e[e.ADDED=1]="ADDED",e[e.DELETED=2]="DELETED"}(t.FileChangeType||(t.FileChangeType={}));class d{constructor(e){this._changes=e}get changes(){return this._changes}contains(e,t){if(!e)return!1;const n=!c.isUndefinedOrNull(t)
;return this._changes.some(i=>(!n||i.type===t)&&(2===i.type?a.isEqualOrParent(e,i.resource,!r.isLinux):a.isEqual(e,i.resource,!r.isLinux)))}getAdded(){return this.getOfType(1)}gotAdded(){return this.hasType(1)}getDeleted(){return this.getOfType(2)}gotDeleted(){return this.hasType(2)}getUpdated(){return this.getOfType(0)}gotUpdated(){return this.hasType(0)}getOfType(e){return this._changes.filter(t=>t.type===e)}hasType(e){return this._changes.some(t=>t.type===e)}}t.FileChangesEvent=d,t.isParent=function(e,t,r){return!(!e||!t||e===t)&&!(t.length>e.length)&&(t.charAt(t.length-1)!==n.sep&&(t+=n.sep),r?o.startsWithIgnoreCase(e,t):0===e.indexOf(t))};class p{constructor(e){this._value=e}read(){let e=this._value;return this._value=null,e}}t.StringSnapshot=p,t.snapshotToString=function(e){const t=[];let n;for(;"string"==typeof(n=e.read());)t.push(n);return t.join("")};class m extends Error{constructor(e,t,n){super(e),this.fileOperationResult=t,this.options=n}static isFileOperationError(e){
return e instanceof Error&&!c.isUndefinedOrNull(e.fileOperationResult)}}t.FileOperationError=m;!function(e){e[e.FILE_IS_BINARY=0]="FILE_IS_BINARY",e[e.FILE_IS_DIRECTORY=1]="FILE_IS_DIRECTORY",e[e.FILE_NOT_FOUND=2]="FILE_NOT_FOUND",e[e.FILE_NOT_MODIFIED_SINCE=3]="FILE_NOT_MODIFIED_SINCE",e[e.FILE_MODIFIED_SINCE=4]="FILE_MODIFIED_SINCE",e[e.FILE_MOVE_CONFLICT=5]="FILE_MOVE_CONFLICT",e[e.FILE_READ_ONLY=6]="FILE_READ_ONLY",e[e.FILE_PERMISSION_DENIED=7]="FILE_PERMISSION_DENIED",e[e.FILE_TOO_LARGE=8]="FILE_TOO_LARGE",e[e.FILE_INVALID_PATH=9]="FILE_INVALID_PATH",e[e.FILE_EXCEED_MEMORY_LIMIT=10]="FILE_EXCEED_MEMORY_LIMIT"}(t.FileOperationResult||(t.FileOperationResult={})),t.AutoSaveConfiguration={OFF:"off",AFTER_DELAY:"afterDelay",ON_FOCUS_CHANGE:"onFocusChange",ON_WINDOW_CHANGE:"onWindowChange"},t.HotExitConfiguration={OFF:"off",ON_EXIT:"onExit",ON_EXIT_AND_WINDOW_CLOSE:"onExitAndWindowClose"},t.CONTENT_CHANGE_EVENT_BUFFER_DELAY=1e3,t.FILES_ASSOCIATIONS_CONFIG="files.associations",
t.FILES_EXCLUDE_CONFIG="files.exclude",t.SUPPORTED_ENCODINGS={utf8:{labelLong:"UTF-8",labelShort:"UTF-8",order:1,alias:"utf8bom"},utf8bom:{labelLong:"UTF-8 with BOM",labelShort:"UTF-8 with BOM",encodeOnly:!0,order:2,alias:"utf8"},utf16le:{labelLong:"UTF-16 LE",labelShort:"UTF-16 LE",order:3},utf16be:{labelLong:"UTF-16 BE",labelShort:"UTF-16 BE",order:4},windows1252:{labelLong:"Western (Windows 1252)",labelShort:"Windows 1252",order:5},iso88591:{labelLong:"Western (ISO 8859-1)",labelShort:"ISO 8859-1",order:6},iso88593:{labelLong:"Western (ISO 8859-3)",labelShort:"ISO 8859-3",order:7},iso885915:{labelLong:"Western (ISO 8859-15)",labelShort:"ISO 8859-15",order:8},macroman:{labelLong:"Western (Mac Roman)",labelShort:"Mac Roman",order:9},cp437:{labelLong:"DOS (CP 437)",labelShort:"CP437",order:10},windows1256:{labelLong:"Arabic (Windows 1256)",labelShort:"Windows 1256",order:11},iso88596:{labelLong:"Arabic (ISO 8859-6)",labelShort:"ISO 8859-6",order:12},windows1257:{labelLong:"Baltic (Windows 1257)",
labelShort:"Windows 1257",order:13},iso88594:{labelLong:"Baltic (ISO 8859-4)",labelShort:"ISO 8859-4",order:14},iso885914:{labelLong:"Celtic (ISO 8859-14)",labelShort:"ISO 8859-14",order:15},windows1250:{labelLong:"Central European (Windows 1250)",labelShort:"Windows 1250",order:16},iso88592:{labelLong:"Central European (ISO 8859-2)",labelShort:"ISO 8859-2",order:17},cp852:{labelLong:"Central European (CP 852)",labelShort:"CP 852",order:18},windows1251:{labelLong:"Cyrillic (Windows 1251)",labelShort:"Windows 1251",order:19},cp866:{labelLong:"Cyrillic (CP 866)",labelShort:"CP 866",order:20},iso88595:{labelLong:"Cyrillic (ISO 8859-5)",labelShort:"ISO 8859-5",order:21},koi8r:{labelLong:"Cyrillic (KOI8-R)",labelShort:"KOI8-R",order:22},koi8u:{labelLong:"Cyrillic (KOI8-U)",labelShort:"KOI8-U",order:23},iso885913:{labelLong:"Estonian (ISO 8859-13)",labelShort:"ISO 8859-13",order:24},windows1253:{labelLong:"Greek (Windows 1253)",labelShort:"Windows 1253",order:25},iso88597:{labelLong:"Greek (ISO 8859-7)",
labelShort:"ISO 8859-7",order:26},windows1255:{labelLong:"Hebrew (Windows 1255)",labelShort:"Windows 1255",order:27},iso88598:{labelLong:"Hebrew (ISO 8859-8)",labelShort:"ISO 8859-8",order:28},iso885910:{labelLong:"Nordic (ISO 8859-10)",labelShort:"ISO 8859-10",order:29},iso885916:{labelLong:"Romanian (ISO 8859-16)",labelShort:"ISO 8859-16",order:30},windows1254:{labelLong:"Turkish (Windows 1254)",labelShort:"Windows 1254",order:31},iso88599:{labelLong:"Turkish (ISO 8859-9)",labelShort:"ISO 8859-9",order:32},windows1258:{labelLong:"Vietnamese (Windows 1258)",labelShort:"Windows 1258",order:33},gbk:{labelLong:"Simplified Chinese (GBK)",labelShort:"GBK",order:34},gb18030:{labelLong:"Simplified Chinese (GB18030)",labelShort:"GB18030",order:35},cp950:{labelLong:"Traditional Chinese (Big5)",labelShort:"Big5",order:36},big5hkscs:{labelLong:"Traditional Chinese (Big5-HKSCS)",labelShort:"Big5-HKSCS",order:37},shiftjis:{labelLong:"Japanese (Shift JIS)",labelShort:"Shift JIS",order:38},eucjp:{
labelLong:"Japanese (EUC-JP)",labelShort:"EUC-JP",order:39},euckr:{labelLong:"Korean (EUC-KR)",labelShort:"EUC-KR",order:40},windows874:{labelLong:"Thai (Windows 874)",labelShort:"Windows 874",order:41},iso885911:{labelLong:"Latin/Thai (ISO 8859-11)",labelShort:"ISO 8859-11",order:42},koi8ru:{labelLong:"Cyrillic (KOI8-RU)",labelShort:"KOI8-RU",order:43},koi8t:{labelLong:"Tajik (KOI8-T)",labelShort:"KOI8-T",order:44},gb2312:{labelLong:"Simplified Chinese (GB 2312)",labelShort:"GB 2312",order:45},cp865:{labelLong:"Nordic DOS (CP 865)",labelShort:"CP 865",order:46},cp850:{labelLong:"Western European DOS (CP 850)",labelShort:"CP 850",order:47}};!function(e){e[e.FILE=0]="FILE",e[e.FOLDER=1]="FOLDER",e[e.ROOT_FOLDER=2]="ROOT_FOLDER"}(t.FileKind||(t.FileKind={})),t.MIN_MAX_MEMORY_SIZE_MB=2048,t.FALLBACK_MAX_MEMORY_SIZE_MB=4096}),define(e[44],t([1,0,26,16,42,46,15]),function(e,t,n,r,i,s,o){"use strict";function l(e){return e.goto&&e._.forEach(e=>n(/^(\w:)?[^:]+(:\d*){0,2}$/.test(e),i.localize(0,null))),
e["max-memory"]&&n(parseInt(e["max-memory"])>=s.MIN_MAX_MEMORY_SIZE_MB,`The max-memory argument cannot be specified lower than ${s.MIN_MAX_MEMORY_SIZE_MB} MB.`),e}function a(e){const t=r.firstIndex(e,e=>!/^-/.test(e));if(t>-1)return[...e.slice(0,t),...e.slice(t+1)]}Object.defineProperty(t,"__esModule",{value:!0}),t.parseMainProcessArgv=function(e){let[,...t]=e;return process.env.VSCODE_DEV&&(t=a(t)||[]),l(o.parseArgs(t))},t.parseCLIProcessArgv=function(e){let[,,...t]=e;return process.env.VSCODE_DEV&&(t=a(t)||[]),l(o.parseArgs(t))}}),define(e[34],t([1,0,2,14]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n.dirname(r.getPathFromAmdModule(e,"")),s=n.join(i,"package.json");t.default=e.__$__nodeRequire(s)}),define(e[28],t([1,0,2,14]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n.dirname(r.getPathFromAmdModule(e,"")),s=n.join(i,"product.json"),o=e.__$__nodeRequire(s);process.env.VSCODE_DEV&&(o.nameShort+=" Dev",
o.nameLong+=" Dev",o.dataFolderName+="-dev"),t.default=o}),define(e[50],t([1,0,33,30,15,28,34,2,12,11,20,27,18,32,19,3,38,44]),function(e,t,r,i,s,o,l,a,c,u,h,f,d,p,m,g,_,y){"use strict";function b(t){return n(this,void 0,void 0,function*(){let b;try{b=y.parseCLIProcessArgv(t)}catch(e){return void console.error(e.message)}if(b.help){const e=`${o.default.applicationName}${"win32"===c.platform()?".exe":""}`;console.log(s.buildHelpMessage(o.default.nameLong,e,l.default.version))}else if(b.version)console.log(s.buildVersionMessage(l.default.version,o.default.commit));else{if(function(e){return!!(e["install-source"]||e["list-extensions"]||e["install-extension"]||e["uninstall-extension"])}(b)){return void(yield(yield new Promise((t,n)=>e(["vs/code/node/cliProcessMain"],t,n))).main(b))}if(!b["file-write"]){const s=i.assign({},process.env,{VSCODE_CLI:"1",ELECTRON_NO_ATTACH_CONSOLE:"1"});delete s.ELECTRON_RUN_AS_NODE;const l=[],m=b.verbose||b.status||void 0!==b["upload-logs"];m&&(s.ELECTRON_ENABLE_LOGGING="1",
l.push(e=>n(this,void 0,void 0,function*(){e.stdout.on("data",e=>console.log(e.toString("utf8").trim())),e.stderr.on("data",e=>console.log(e.toString("utf8").trim())),yield new Promise(t=>e.once("exit",()=>t()))})));let y=!1;try{y=!process.stdin.isTTY}catch(e){}const v=b._.some(e=>"-"===e);v&&(b._=b._.filter(e=>"-"!==e),t=t.filter(e=>"-"!==e));let w;if(y)if(0===b._.length&&v){w=a.join(c.tmpdir(),`code-stdin-${Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,3)}.txt`);let e,n;try{n=u.createWriteStream(w)}catch(t){e=t}e||(d.resolveTerminalEncoding(m).then(e=>{const t=p.decodeStream(e);process.stdin.pipe(t).pipe(n)}),t.push(w),t.push("--wait"),t.push("--skip-add-to-recently-opened"),b.wait=!0),m&&(e?console.error(`Failed to create file to read via stdin: ${e.toString()}`):console.log(`Reading from stdin via: ${w}`))}else 0===b._.length&&l.push(e=>new Promise(e=>{const t=()=>{
g.isWindows?console.log(`Run with '${o.default.applicationName} -' to read output from another program (e.g. 'echo Hello World | ${o.default.applicationName} -').`):console.log(`Run with '${o.default.applicationName} -' to read from stdin (e.g. 'ps aux | grep code | ${o.default.applicationName} -').`),e(void 0)};setTimeout(()=>{process.stdin.removeListener("data",t),e(void 0)},1e3),process.stdin.once("data",t)}));let E;if(b.wait&&(E=yield _.createWaitMarkerFile(m))&&t.push("--waitMarkerFilePath",E),b["prof-startup"]){const r=yield f.findFreePort(f.randomPort(),10,3e3),i=yield f.findFreePort(r+1,10,3e3),s=yield f.findFreePort(i+1,10,3e3);if(r*i*s==0)throw new Error("Failed to find free ports for profiler. Make sure to shutdown all instances of the editor first.");const o=a.join(c.homedir(),"prof-"+Math.random().toString(16).slice(-4));t.push(`--inspect-brk=${r}`),t.push(`--remote-debugging-port=${i}`),t.push(`--inspect-brk-extensions=${s}`),t.push("--prof-startup-prefix",o),t.push("--no-cached-data"),
u.writeFileSync(o,t.slice(-6).join("|")),l.push(t=>n(this,void 0,void 0,function*(){class t{static start(t,r,i){return n(this,void 0,void 0,function*(){const s=yield new Promise((t,n)=>{e(["v8-inspect-profiler"],t,n)});let o;try{o=yield s.startProfiling(i)}catch(e){console.error(`FAILED to start profiling for '${t}' on port '${i.port}'`)}return{stop(){return n(this,void 0,void 0,function*(){if(!o)return;let e="",n=yield o.stop();process.env.VSCODE_DEV||(n=s.rewriteAbsolutePaths(n,"piiRemoved"),e=".txt"),yield s.writeProfile(n,`${r}.${t}.cpuprofile${e}`)})}}})}}try{const e=yield t.start("main",o,{port:r}),n=yield t.start("extHost",o,{port:s,tries:300}),l=yield t.start("renderer",o,{port:i,tries:200,target:function(e){return e.filter(e=>!!e.webSocketDebuggerUrl&&("page"!==e.type||e.url.indexOf("workbench/workbench.html")>0))[0]}});yield h.whenDeleted(o),yield e.stop(),yield l.stop(),yield n.stop(),u.writeFileSync(o,"")}catch(e){console.error("Failed to profile startup. Make sure to quit Code first.")}}))}
if(b["js-flags"]){const e=/max_old_space_size=(\d+)/g.exec(b["js-flags"]);e&&!b["max-memory"]&&t.push(`--max-memory=${e[1]}`)}const C={detached:!0,env:s};void 0!==b["upload-logs"]?C.stdio=["pipe","pipe","pipe"]:m||(C.stdio="ignore");const x=r.spawn(process.execPath,t.slice(2),C);return b.wait&&E?new Promise(e=>{x.once("exit",()=>e(void 0)),h.whenDeleted(E).then(e,e)}).then(()=>{w&&u.unlinkSync(w)}):Promise.all(l.map(e=>e(x)))}{const e=b._[0],t=b._[1];if(!(e&&t&&e!==t&&a.isAbsolute(e)&&a.isAbsolute(t)&&u.existsSync(e)&&u.statSync(e).isFile()&&u.existsSync(t)&&u.statSync(t).isFile()))throw new Error("Using --file-write with invalid arguments.");try{let n=0,r=!1;b["file-chmod"]&&(128&(n=u.statSync(t).mode)||(u.chmodSync(t,128|n),r=!0));const i=u.readFileSync(e);g.isWindows?(u.truncateSync(t,0),m.writeFileAndFlushSync(t,i,{flag:"r+"})):m.writeFileAndFlushSync(t,i),r&&u.chmodSync(t,n)}catch(e){throw e.message=`Error using --file-write: ${e.message}`,e}}}})}function v(e){setTimeout(()=>process.exit(e),0)}
Object.defineProperty(t,"__esModule",{value:!0}),t.main=b,b(process.argv).then(()=>v(0)).then(null,e=>{console.error(e.message||e.stack||e),v(1)})})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/05f146c7a8f7f78e80261aa3b2a2e642586f9eb3/core/vs/code/node/cli.js.map
