/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
(function(){var e=["exports","require","vs/base/common/platform","vs/base/common/functional","vs/base/common/amd","vs/base/common/uri","vs/base/common/linkedList","vs/base/common/event","vs/base/browser/browser","vs/base/common/errors","vs/base/common/path","vs/base/common/strings","vs/base/common/iterator","vs/base/common/lifecycle","vs/base/node/ps","vs/platform/product/node/product","vs/base/parts/contextmenu/common/contextmenu","vs/base/parts/contextmenu/electron-browser/contextmenu","electron","vs/css!vs/code/electron-browser/processExplorer/media/processExplorer","vs/css!vs/code/electron-browser/processExplorer/processExplorerMain","child_process","vs/code/electron-browser/processExplorer/processExplorerMain","os","vs/nls!vs/code/electron-browser/processExplorer/processExplorerMain"],t=function(t){for(var n=[],r=0,s=t.length;r<s;r++)n[r]=e[t[r]];return n};define(e[9],t([1,0]),function(e,t){"use strict";function n(e){return e instanceof Error&&e.name===s&&e.message===s}
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 s="Canceled";t.isPromiseCanceledError=n,t.canceled=function(){let e=new Error(s);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"}}),define(e[3],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[12],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 s 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=s;class i{constructor(e,t){this.iterator=e,this.fn=t}next(){return this.fn(this.iterator.next())}}t.MappedIterator=i;class o extends i{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[13],t([1,0,3]),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 s{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}}s.None=Object.freeze({dispose(){}}),t.Disposable=s;class i{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,s=n.once(()=>{
0==--t.counter&&(this.destroyReferencedObject(e,t.object),delete this.references[e])});return t.counter++,{object:r,dispose:s}}}t.ReferenceCollection=i;class o{constructor(e){this.object=e}dispose(){}}t.ImmortalReference=o}),define(e[6],t([1,0,12]),function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(e){this.element=e}}class s{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=s});var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(s,i){function o(e){try{l(r.next(e))}catch(e){i(e)}}function c(e){try{l(r.throw(e))}catch(e){i(e)}}function l(e){e.done?s(e.value):new n(function(t){t(e.value)}).then(o,c)}l((r=r.apply(e,t||[])).next())})};define(e[7],t([1,0,9,3,13,6]),function(e,t,r,s,i,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var c;!function(e){function t(e){return(t,n=null,r)=>{let s,i=!1;return s=e(e=>{
if(!i)return s?s.dispose():i=!0,t.call(n,e)},null,r),i&&s.dispose(),s}}function n(e,t){return c((n,r=null,s)=>e(e=>n.call(r,t(e)),null,s))}function r(e,t){return c((n,r=null,s)=>e(e=>{t(e),n.call(r,e)},null,s))}function s(e,t){return c((n,r=null,s)=>e(e=>t(e)&&n.call(r,e),null,s))}function o(e,t,r){let s=r;return n(e,e=>s=t(s,e))}function c(e){let t;const n=new u({onFirstListenerAdd(){t=e(n.fire,n)},onLastListenerRemove(){t.dispose()}});return n.event}function l(e){let t,n=!0;return s(e,e=>{let r=n||e!==t;return n=!1,t=e,r})}const a={dispose(){}};e.None=function(){return a},e.once=t,e.map=n,e.forEach=r,e.filter=s,e.signal=function(e){return e},e.any=function(...e){return(t,n=null,r)=>i.combinedDisposable(e.map(e=>e(e=>t.call(n,e),null,r)))},e.reduce=o,e.snapshot=c,e.debounce=function(e,t,n=100,r=!1,s){let i,o=void 0,c=void 0,l=0;const a=new u({leakWarningThreshold:s,onFirstListenerAdd(){i=e(e=>{l++,o=t(o,e),r&&!c&&a.fire(o),clearTimeout(c),c=setTimeout(()=>{let e=o;o=void 0,c=void 0,(!r||l>1)&&a.fire(e),l=0
},n)})},onLastListenerRemove(){i.dispose()}});return a.event},e.stopwatch=function(e){const r=(new Date).getTime();return n(t(e),e=>(new Date).getTime()-r)},e.latch=l,e.buffer=function(e,t=!1,n=[]){let r=n.slice(),s=e(e=>{r?r.push(e):o.fire(e)});const i=()=>{r&&r.forEach(e=>o.fire(e)),r=null},o=new u({onFirstListenerAdd(){s||(s=e(e=>o.fire(e)))},onFirstListenerDidAdd(){r&&(t?setTimeout(i):i())},onLastListenerRemove(){s&&s.dispose(),s=null}});return o.event},e.echo=function(e,t=!1,n=[]){n=n.slice(),e(e=>{n.push(e),s.fire(e)});const r=(e,t)=>n.forEach(n=>e.call(t,n)),s=new u({onListenerDidAdd(e,n,s){t?setTimeout(()=>r(n,s)):r(n,s)}});return s.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(s(this.event,e))}reduce(e,t){return new h(o(this.event,e,t))}latch(){return new h(l(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)=>s.fire(n(...e)),s=new u({onFirstListenerAdd:()=>e.on(t,r),onLastListenerRemove:()=>e.removeListener(t,r)});return s.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))}}(c=t.Event||(t.Event={}));let l=-1;t.setGlobalLeakWarningThreshold=function(e){let t=l;return l=e,{dispose(){l=t}}};class a{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=l;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=l>0?new a(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 s=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 i;this._leakageMon&&(i=this._leakageMon.check(this._listeners.size));let c;return c={dispose:()=>{if(i&&i(),c.dispose=u._noop,!this._disposed&&(s(),
this._options&&this._options.onLastListenerRemove)){this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)}}},Array.isArray(n)&&n.push(c),c})),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 d{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 i.toDisposable(s.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=d;class f{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=f;class p{constructor(){this.listening=!1,this.inputEvent=c.None,this.inputEventListener=i.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[8],t([1,0,7]),function(e,t,n){"use strict"
;Object.defineProperty(t,"__esModule",{value:!0});class r{constructor(){this._zoomLevel=0,this._lastZoomLevelChangeTime=0,this._onDidChangeZoomLevel=new n.Emitter,this.onDidChangeZoomLevel=this._onDidChangeZoomLevel.event,this._zoomFactor=0,this._onDidChangeFullscreen=new n.Emitter,this.onDidChangeFullscreen=this._onDidChangeFullscreen.event}getZoomLevel(){return this._zoomLevel}getTimeSinceLastZoomLevelChanged(){return Date.now()-this._lastZoomLevelChangeTime}setZoomLevel(e,t){this._zoomLevel!==e&&(this._zoomLevel=e,this._lastZoomLevelChangeTime=t?0:Date.now(),this._onDidChangeZoomLevel.fire(this._zoomLevel))}getZoomFactor(){return this._zoomFactor}setZoomFactor(e){this._zoomFactor=e}getPixelRatio(){let e=document.createElement("canvas").getContext("2d");return(window.devicePixelRatio||1)/(e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1)}setFullscreen(e){this._fullscreen!==e&&(this._fullscreen=e,
this._onDidChangeFullscreen.fire())}isFullscreen(){return this._fullscreen}}r.INSTANCE=new r,t.setZoomLevel=function(e,t){r.INSTANCE.setZoomLevel(e,t)},t.getZoomLevel=function(){return r.INSTANCE.getZoomLevel()},t.getTimeSinceLastZoomLevelChanged=function(){return r.INSTANCE.getTimeSinceLastZoomLevelChanged()},t.onDidChangeZoomLevel=function(e){return r.INSTANCE.onDidChangeZoomLevel(e)},t.getZoomFactor=function(){return r.INSTANCE.getZoomFactor()},t.setZoomFactor=function(e){r.INSTANCE.setZoomFactor(e)},t.getPixelRatio=function(){return r.INSTANCE.getPixelRatio()},t.setFullscreen=function(e){r.INSTANCE.setFullscreen(e)},t.isFullscreen=function(){return r.INSTANCE.isFullscreen()},t.onDidChangeFullscreen=r.INSTANCE.onDidChangeFullscreen;const s=navigator.userAgent;t.isIE=s.indexOf("Trident")>=0,t.isEdge=s.indexOf("Edge/")>=0,t.isEdgeOrIE=t.isIE||t.isEdge,t.isOpera=s.indexOf("Opera")>=0,t.isFirefox=s.indexOf("Firefox")>=0,t.isWebKit=s.indexOf("AppleWebKit")>=0,t.isChrome=s.indexOf("Chrome")>=0,
t.isSafari=!t.isChrome&&s.indexOf("Safari")>=0,t.isWebkitWebView=!t.isChrome&&!t.isSafari&&t.isWebKit,t.isIPad=s.indexOf("iPad")>=0,t.isEdgeWebView=t.isEdge&&s.indexOf("WebView/")>=0,t.hasClipboardSupport=function(){if(t.isIE)return!1;if(t.isEdge){let e=s.indexOf("Edge/"),t=parseInt(s.substring(e+5,s.indexOf(".",e)),10);if(!t||t>=12&&t<=16)return!1}return!0}}),define(e[2],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LANGUAGE_DEFAULT="en";let n=!1,r=!1,s=!1,i=!1,o=!1,c=void 0,l=t.LANGUAGE_DEFAULT,a=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,s="linux"===process.platform,c=t.LANGUAGE_DEFAULT,l=t.LANGUAGE_DEFAULT;const e=process.env.VSCODE_NLS_CONFIG;if(e)try{const n=JSON.parse(e),r=n.availableLanguages["*"];c=n.locale,l=r||t.LANGUAGE_DEFAULT,
a=n._translationsConfigFile}catch(e){}i=!0}}else{const e=navigator.userAgent;n=e.indexOf("Windows")>=0,r=e.indexOf("Macintosh")>=0,s=e.indexOf("Linux")>=0,o=!0,l=c=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;i&&(r?h=1:n?h=3:s&&(h=2)),t.isWindows=n,t.isMacintosh=r,t.isLinux=s,t.isNative=i,t.isWeb=o,t.platform=h,t.isRootUser=function(){return i&&!n&&0===process.getuid()},t.language=l,t.locale=c,t.translationsConfigFile=a;const d="object"==typeof self?self:"object"==typeof global?global:{};t.globals=d;let f=null;t.setImmediate=function(e){return null===f&&(f=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)),f(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[10],t([1,0,2]),function(e,t,n){"use strict";function r(e,t){if("string"!=typeof e)throw new v(t,"string",e)}function s(e){return e===p||e===m}function i(e){return e===p}function o(e){return e>=a&&e<=h||e>=u&&e<=d}function c(e,t,n,r){let s,i="",o=0,c=-1,l=0;for(let a=0;a<=e.length;++a){if(a<e.length)s=e.charCodeAt(a);else{if(r(s))break;s=p}if(r(s)){if(c===a-1||1===l);else if(c!==a-1&&2===l){if(i.length<2||2!==o||i.charCodeAt(i.length-1)!==f||i.charCodeAt(i.length-2)!==f){if(i.length>2){const e=i.lastIndexOf(n);-1===e?(i="",o=0):o=(i=i.slice(0,e)).length-1-i.lastIndexOf(n),c=a,l=0;continue}if(2===i.length||1===i.length){i="",o=0,c=a,l=0;continue}}t&&(i.length>0?i+=`${n}..`:i="..",o=2)}else i.length>0?i+=n+e.slice(c+1,a):i=e.slice(c+1,a),o=a-c-1;c=a,l=0}else s===f&&-1!==l?++l:l=-1}return i}function l(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 a=65,u=97,h=90,d=122,f=46,p=47,m=92,g="undefined"==typeof process?{cwd:()=>"/",env:{},get platform(){return n.isWindows?"win32":"posix"}}:process;class v 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 s;s=`The "${e}" ${-1!==e.indexOf(".")?"property":"argument"} ${r} of type ${t}`,super(s+=`. Received type ${typeof n}`)}}const C={resolve(...e){let t="",n="",i=!1;for(let c=e.length-1;c>=-1;c--){let l;if(c>=0?l=e[c]:t?void 0!==(l=g.env["="+t]||g.cwd())&&l.slice(0,3).toLowerCase()===t.toLowerCase()+"\\"||(l=t+"\\"):l=g.cwd(),r(l,"path"),0===l.length)continue;let a=l.length,u=0,h="",d=!1;const f=l.charCodeAt(0);if(a>1)if(s(f))if(d=!0,s(l.charCodeAt(1))){let e=2,t=e;for(;e<a&&!s(l.charCodeAt(e));++e);if(e<a&&e!==t){const n=l.slice(t,e);for(t=e;e<a&&s(l.charCodeAt(e));++e);if(e<a&&e!==t){for(t=e;e<a&&!s(l.charCodeAt(e));++e);e===a?(h="\\\\"+n+"\\"+l.slice(t),
u=e):e!==t&&(h="\\\\"+n+"\\"+l.slice(t,e),u=e)}}}else u=1;else o(f)&&58===l.charCodeAt(1)&&(h=l.slice(0,2),u=2,a>2&&s(l.charCodeAt(2))&&(d=!0,u=3));else s(f)&&(u=1,d=!0);if(!(h.length>0&&t.length>0&&h.toLowerCase()!==t.toLowerCase())&&(0===t.length&&h.length>0&&(t=h),i||(n=l.slice(u)+"\\"+n,i=d),t.length>0&&i))break}return n=c(n,!i,"\\",s),t+(i?"\\":"")+n||"."},normalize(e){r(e,"path");const t=e.length;if(0===t)return".";let n,i=0,l=!1;const a=e.charCodeAt(0);if(t>1)if(s(a))if(l=!0,s(e.charCodeAt(1))){let r=2,o=r;for(;r<t&&!s(e.charCodeAt(r));++r);if(r<t&&r!==o){const c=e.slice(o,r);for(o=r;r<t&&s(e.charCodeAt(r));++r);if(r<t&&r!==o){for(o=r;r<t&&!s(e.charCodeAt(r));++r);if(r===t)return"\\\\"+c+"\\"+e.slice(o)+"\\";r!==o&&(n="\\\\"+c+"\\"+e.slice(o,r),i=r)}}}else i=1;else o(a)&&58===e.charCodeAt(1)&&(n=e.slice(0,2),i=2,t>2&&s(e.charCodeAt(2))&&(l=!0,i=3));else if(s(a))return"\\";let u;return 0!==(u=i<t?c(e.slice(i),!l,"\\",s):"").length||l||(u="."),u.length>0&&s(e.charCodeAt(t-1))&&(u+="\\"),
void 0===n?l?u.length>0?"\\"+u:"\\":u.length>0?u:"":l?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!!s(n)||!!(o(n)&&t>2&&58===e.charCodeAt(1)&&s(e.charCodeAt(2)))},join(...e){if(0===e.length)return".";let t,n;for(let s=0;s<e.length;++s){let i=e[s];r(i,"path"),i.length>0&&(void 0===t?t=n=i:t+="\\"+i)}if(void 0===t)return".";let i=!0,o=0;if(s(n.charCodeAt(0))){++o;const e=n.length;e>1&&s(n.charCodeAt(1))&&(++o,e>2&&(s(n.charCodeAt(2))?++o:i=!1))}if(i){for(;o<t.length&&s(t.charCodeAt(o));++o);o>=2&&(t="\\"+t.slice(o))}return C.normalize(t)},relative(e,t){if(r(e,"from"),r(t,"to"),e===t)return"";let n=C.resolve(e),s=C.resolve(t);if(n===s)return"";if(e=n.toLowerCase(),t=s.toLowerCase(),e===t)return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===m;++i);let o=e.length;for(;o-1>i&&e.charCodeAt(o-1)===m;--o);let c=o-i,l=0;for(;l<t.length&&t.charCodeAt(l)===m;++l);let a=t.length;for(;a-1>l&&t.charCodeAt(a-1)===m;--a);
let u=a-l,h=c<u?c:u,d=-1,f=0;for(;f<=h;++f){if(f===h){if(u>h){if(t.charCodeAt(l+f)===m)return s.slice(l+f+1);if(2===f)return s.slice(l+f)}c>h&&(e.charCodeAt(i+f)===m?d=f:2===f&&(d=3));break}let n=e.charCodeAt(i+f);if(n!==t.charCodeAt(l+f))break;n===m&&(d=f)}if(f!==h&&-1===d)return s;let p="";for(-1===d&&(d=0),f=i+d+1;f<=o;++f)f!==o&&e.charCodeAt(f)!==m||(0===p.length?p+="..":p+="\\..");return p.length>0?p+s.slice(l+d,a):(l+=d,s.charCodeAt(l)===m&&++l,s.slice(l,a))},toNamespacedPath(e){if("string"!=typeof e)return e;if(0===e.length)return"";const t=C.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!==f)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,i=-1,c=!0,l=0;const a=e.charCodeAt(0);if(t>1)if(s(a)){if(n=l=1,s(e.charCodeAt(1))){let r=2,i=r;for(;r<t&&!s(e.charCodeAt(r));++r);if(r<t&&r!==i){
for(i=r;r<t&&s(e.charCodeAt(r));++r);if(r<t&&r!==i){for(i=r;r<t&&!s(e.charCodeAt(r));++r);if(r===t)return e;r!==i&&(n=l=r+1)}}}}else o(a)&&58===e.charCodeAt(1)&&(n=l=2,t>2&&s(e.charCodeAt(2))&&(n=l=3));else if(s(a))return e;for(let n=t-1;n>=l;--n)if(s(e.charCodeAt(n))){if(!c){i=n;break}}else c=!1;if(-1===i){if(-1===n)return".";i=n}return e.slice(0,i)},basename(e,t){void 0!==t&&r(t,"ext"),r(e,"path");let n,i=0,c=-1,l=!0;if(e.length>=2){o(e.charCodeAt(0))&&58===e.charCodeAt(1)&&(i=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>=i;--n){const a=e.charCodeAt(n);if(s(a)){if(!l){i=n+1;break}}else-1===o&&(l=!1,o=n+1),r>=0&&(a===t.charCodeAt(r)?-1==--r&&(c=n):(r=-1,c=o))}return i===c?c=o:-1===c&&(c=e.length),e.slice(i,c)}for(n=e.length-1;n>=i;--n)if(s(e.charCodeAt(n))){if(!l){i=n+1;break}}else-1===c&&(l=!1,c=n+1);return-1===c?"":e.slice(i,c)},extname(e){r(e,"path");let t=0,n=-1,i=0,c=-1,l=!0,a=0
;e.length>=2&&58===e.charCodeAt(1)&&o(e.charCodeAt(0))&&(t=i=2);for(let r=e.length-1;r>=t;--r){const t=e.charCodeAt(r);if(s(t)){if(!l){i=r+1;break}}else-1===c&&(l=!1,c=r+1),t===f?-1===n?n=r:1!==a&&(a=1):-1!==n&&(a=-1)}return-1===n||-1===c||0===a||1===a&&n===c-1&&n===i+1?"":e.slice(n,c)},format(e){if(null===e||"object"!=typeof e)throw new v("pathObject","Object",e);return l("\\",e)},parse(e){r(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let n=e.length,i=0,c=e.charCodeAt(0);if(n>1){if(s(c)){if(i=1,s(e.charCodeAt(1))){let t=2,r=t;for(;t<n&&!s(e.charCodeAt(t));++t);if(t<n&&t!==r){for(r=t;t<n&&s(e.charCodeAt(t));++t);if(t<n&&t!==r){for(r=t;t<n&&!s(e.charCodeAt(t));++t);t===n?i=t:t!==r&&(i=t+1)}}}}else if(o(c)&&58===e.charCodeAt(1)){if(i=2,!(n>2))return t.root=t.dir=e,t;if(s(e.charCodeAt(2))){if(3===n)return t.root=t.dir=e,t;i=3}}}else if(s(c))return t.root=t.dir=e,t;i>0&&(t.root=e.slice(0,i));let l=-1,a=i,u=-1,h=!0,d=e.length-1,p=0;for(;d>=i;--d)if(c=e.charCodeAt(d),s(c)){
if(!h){a=d+1;break}}else-1===u&&(h=!1,u=d+1),c===f?-1===l?l=d:1!==p&&(p=1):-1!==l&&(p=-1);return-1===l||-1===u||0===p||1===p&&l===u-1&&l===a+1?-1!==u&&(t.base=t.name=e.slice(a,u)):(t.name=e.slice(a,l),t.base=e.slice(a,u),t.ext=e.slice(l,u)),t.dir=a>0&&a!==i?e.slice(0,a-1):t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},b={resolve(...e){let t="",n=!1;for(let s=e.length-1;s>=-1&&!n;s--){let i;r(i=s>=0?e[s]:g.cwd(),"path"),0!==i.length&&(t=i+"/"+t,n=i.charCodeAt(0)===p)}return t=c(t,!n,"/",i),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=c(e,!t,"/",i)).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 s=e.length,i=s-n,o=1;for(;o<t.length&&t.charCodeAt(o)===p;++o);let c=t.length-o,l=i<c?i:c,a=-1,u=0;for(;u<=l;++u){if(u===l){if(c>l){if(t.charCodeAt(o+u)===p)return t.slice(o+u+1);if(0===u)return t.slice(o+u)}else i>l&&(e.charCodeAt(n+u)===p?a=u:0===u&&(a=0));break}let r=e.charCodeAt(n+u);if(r!==t.charCodeAt(o+u))break;r===p&&(a=u)}let h="";for(u=n+a+1;u<=s;++u)u!==s&&e.charCodeAt(u)!==p||(0===h.length?h+="..":h+="/..");return h.length>0?h+t.slice(o+a):(o+=a,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,s=!0;for(let t=e.length-1;t>=1;--t)if(e.charCodeAt(t)===p){if(!s){n=t;break}}else s=!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,s=0,i=-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,c=-1;for(n=e.length-1;n>=0;--n){const l=e.charCodeAt(n);if(l===p){if(!o){s=n+1;break}}else-1===c&&(o=!1,c=n+1),r>=0&&(l===t.charCodeAt(r)?-1==--r&&(i=n):(r=-1,i=c))}return s===i?i=c:-1===i&&(i=e.length),e.slice(s,i)}for(n=e.length-1;n>=0;--n)if(e.charCodeAt(n)===p){if(!o){s=n+1;break}}else-1===i&&(o=!1,i=n+1);return-1===i?"":e.slice(s,i)},extname(e){r(e,"path");let t=-1,n=0,s=-1,i=!0,o=0;for(let r=e.length-1;r>=0;--r){const c=e.charCodeAt(r);if(c!==p)-1===s&&(i=!1,s=r+1),c===f?-1===t?t=r:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=r+1;break}}return-1===t||-1===s||0===o||1===o&&t===s-1&&t===n+1?"":e.slice(t,s)},format(e){if(null===e||"object"!=typeof e)throw new v("pathObject","Object",e);return l("/",e)},parse(e){r(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return t;let n,s=e.charCodeAt(0)===p;s?(t.root="/",n=1):n=0;let i=-1,o=0,c=-1,l=!0,a=e.length-1,u=0;for(;a>=n;--a){const t=e.charCodeAt(a);if(t!==p)-1===c&&(l=!1,c=a+1),
t===f?-1===i?i=a:1!==u&&(u=1):-1!==i&&(u=-1);else if(!l){o=a+1;break}}return-1===i||-1===c||0===u||1===u&&i===c-1&&i===o+1?-1!==c&&(t.base=t.name=0===o&&s?e.slice(1,c):e.slice(o,c)):(0===o&&s?(t.name=e.slice(1,i),t.base=e.slice(1,c)):(t.name=e.slice(o,i),t.base=e.slice(o,c)),t.ext=e.slice(i,c)),o>0?t.dir=e.slice(0,o-1):s&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};b.win32=C.win32=C,b.posix=C.posix=b;return"win32"===g.platform?C:b}),define(e[11],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 s(e,t){if(!e||!t)return e;let n=t.length,r=e.length;if(0===n||0===r)return e;let s=r,i=-1;for(;;){if(-1===(i=e.lastIndexOf(t,s-1))||i+n!==s)break;if(0===i)return"";s=i}return e.substring(0,s)}function i(e,t){return e<t?-1:e>t?1:0}function o(e){return e>=97&&e<=122}function c(e){
return e>=65&&e<=90}function l(e){return o(e)||c(e)}function a(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),s=t.charCodeAt(r);if(n!==s)if(l(n)&&l(s)){let e=Math.abs(n-s);if(0!==e&&32!==e)return!1}else if(String.fromCharCode(n).toLowerCase()!==String.fromCharCode(s).toLowerCase())return!1}return!0}function u(e,t,n,r,s,i){for(;t<n&&s<i;){if(e[t]!==r[s])return!1;t+=1,s+=1}return!0}function h(e){return(e=+e)>=11904&&e<=55215||e>=63744&&e<=64255||e>=65281&&e<=65374}function d(e){return!!(e&&e.length>0&&65279===e.charCodeAt(0))}Object.defineProperty(t,"__esModule",{value:!0}),t.empty="",t.isFalsyOrWhitespace=function(e){return!e||"string"!=typeof e||0===e.trim().length},t.pad=function(e,t,n="0"){let r=""+e,s=[r];for(let e=r.length;e<t;e++)s.push(n);return s.reverse().join("")};const f=/{(\d+)}/g;t.format=function(e,...t){return 0===t.length?e:e.replace(f,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 s(r(e,t),t)},t.ltrim=r,t.rtrim=s,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 s="";return r.global&&(s+="g"),r.matchCase||(s+="i"),r.multiline&&(s+="m"),r.unicode&&(s+="u"),new RegExp(e,s)},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=i,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),s=t.charCodeAt(r);if(n===s)continue;c(n)&&(n+=32),c(s)&&(s+=32);const l=n-s;if(0!==l)return o(n)&&o(s)?l:i(e.toLowerCase(),t.toLowerCase())}
return e.length<t.length?-1:e.length>t.length?1:0},t.isLowerAsciiLetter=o,t.isUpperAsciiLetter=c,t.equalsIgnoreCase=function(e,t){return(e?e.length:0)===(t?t.length:0)&&a(e,t)},t.startsWithIgnoreCase=function(e,t){const n=t.length;return!(t.length>e.length)&&a(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),s=e.length-1,i=t.length-1;for(n=0;n<r;n++)if(e.charCodeAt(s-n)!==t.charCodeAt(i-n))return n;return r},t.overlap=function(e,t){let n=e.length,r=t.length,s=n-r;if(0===s)return e===t?n:0;for(s<0&&(r+=s,s=0);s<n&&r>0;){if(u(e,s,n,t,0,r))return r;r-=1,s+=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 s=0;for(;r.test(e)&&!(e.length-r.lastIndex<n);)s=r.lastIndex,r.lastIndex+=1;return e.substring(s).replace(/^\s/,t.empty)};const v=/\x1B\x5B[12]?K/g,C=/\x1b\[\d+m/g,b=/\x1b\[0?m/g;t.removeAnsiEscapeCodes=function(e){return e&&(e=(e=(e=e.replace(v,"")).replace(C,"")).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=d,t.stripUTF8BOM=function(e){return d(e)?e.substr(1):e},t.safeBtoa=function(e){return btoa(encodeURIComponent(e))},t.repeat=function(e,t){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 s=0,i=-1;for(;s<n;){let e=r.indexOf(t[s],i+1);if(e<0)return!1;i=e,s++}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[5],t([1,0,2]),function(e,t,n){"use strict";function r(e,t){let n=void 0,r=-1;for(let s=0;s<e.length;s++){let i=e.charCodeAt(s);if(i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||45===i||46===i||95===i||126===i||t&&47===i)-1!==r&&(n+=encodeURIComponent(e.substring(r,s)),r=-1),void 0!==n&&(n+=e.charAt(s));else{void 0===n&&(n=e.substr(0,s));let t=p[i];void 0!==t?(-1!==r&&(n+=encodeURIComponent(e.substring(r,s)),r=-1),n+=t):-1===r&&(r=s)}}return-1!==r&&(n+=encodeURIComponent(e.substring(r))),void 0!==n?n:e}function s(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 i(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 s="",{scheme:i,authority:o,path:c,query:l,fragment:a}=e;if(i&&(s+=i,s+=":"),(o||"file"===i)&&(s+=u,s+=u),o){let e=o.indexOf("@");if(-1!==e){const t=o.substr(0,e);o=o.substr(e+1),-1===(e=t.indexOf(":"))?s+=n(t,!1):(s+=n(t.substr(0,e),!1),s+=":",s+=n(t.substr(e+1),!1)),s+="@"}-1===(e=(o=o.toLowerCase()).indexOf(":"))?s+=n(o,!1):(s+=n(o.substr(0,e),!1),s+=o.substr(e))}if(c){if(c.length>=3&&47===c.charCodeAt(0)&&58===c.charCodeAt(2)){let e=c.charCodeAt(1)
;e>=65&&e<=90&&(c=`/${String.fromCharCode(e+32)}:${c.substr(3)}`)}else if(c.length>=2&&58===c.charCodeAt(1)){let e=c.charCodeAt(0);e>=65&&e<=90&&(c=`${String.fromCharCode(e+32)}:${c.substr(2)}`)}s+=n(c,!0)}return l&&(s+="?",s+=n(l,!1)),a&&(s+="#",s+=t?a:r(a,!1)),s}Object.defineProperty(t,"__esModule",{value:!0});const o=/^\w[\w\d+.-]*$/,c=/^\//,l=/^\/\//;let a=!0;t.setUriThrowOnMissingScheme=function(e){const t=a;return a=e,t};const u="/",h=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class d{static isUri(e){return e instanceof d||!!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,s,i){"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=s||"",function(e,t){if(!e.scheme){if(t||a)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(!c.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(l.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}(this,i))}get fsPath(){return s(this)}with(e){if(!e)return this
;let{scheme:t,authority:n,path:r,query:s,fragment:i}=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===s?s=this.query:null===s&&(s=""),void 0===i?i=this.fragment:null===i&&(i=""),t===this.scheme&&n===this.authority&&r===this.path&&s===this.query&&i===this.fragment?this:new f(t,n,r,s,i)}static parse(e,t=!1){const n=h.exec(e);return n?new f(n[2]||"",decodeURIComponent(n[4]||""),decodeURIComponent(n[5]||""),decodeURIComponent(n[7]||""),decodeURIComponent(n[9]||""),t):new f("","","","","")}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 f("file",t,e,"","")}static from(e){return new f(e.scheme,e.authority,e.path,e.query,e.fragment)}toString(e=!1){return i(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof d)return e;{let t=new f(e);return t._fsPath=e.fsPath,
t._formatted=e.external,t}}return e}}t.URI=d;class f extends d{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=s(this)),this._fsPath}toString(e=!1){return e?i(this,!0):(this._formatted||(this._formatted=i(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[4],t([1,0,5]),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[14],t([1,0,21,4]),function(e,t,n,r){
"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.listProcesses=function(t){return new Promise((s,i)=>{function o(e,n,r,s,i){const o=a.get(n);if(e===t||o){const u={name:c(r),cmd:r,pid:e,ppid:n,load:s,mem:i};a.set(e,u),e===t&&(l=u),o&&(o.children||(o.children=[]),o.children.push(u),o.children.length>1&&(o.children=o.children.sort((e,t)=>e.pid-t.pid)))}}function c(e){const t=/--disable-blink-features=Auxclick/;if(/\\watcher\\win32\\CodeHelper\.exe/.exec(e))return"watcherService ";if(/--crashes-directory/.exec(e))return"electron-crash-reporter";if(/\\pipe\\winpty-control/.exec(e))return"winpty-process";if(/conhost\.exe/.exec(e))return"console-window-host (Windows internal process)";let n=/--type=([a-zA-Z-]+)/.exec(e);if(n&&2===n.length)return"renderer"===n[1]?t.exec(e)?"shared-process":"window":n[1];const r=/[a-zA-Z-]+\.js/g;let s="";do{(n=r.exec(e))&&(s+=n+" ")}while(n);return s&&e.indexOf("node ")<0&&e.indexOf("node.exe")<0?`electron_node ${s}`:e}let l;const a=new Map
;if("win32"===process.platform)new Promise((t,n)=>{e(["windows-process-tree"],t,n)}).then(e=>{e.getProcessList(t,n=>{e.getProcessCpuUsage(n,e=>{const n=new Map;e.forEach(e=>{const t=(e=>0===e.indexOf("\\\\?\\")?e.substr(4):0===e.indexOf("\\??\\")?e.substr(4):0===e.indexOf('"\\\\?\\')?'"'+e.substr(5):0===e.indexOf('"\\??\\')?'"'+e.substr(5):e)(e.commandLine||"");n.set(e.pid,{name:c(t),cmd:t,pid:e.pid,ppid:e.ppid,load:e.cpu||0,mem:e.memory||0})}),(l=n.get(t))?(n.forEach(e=>{let t=n.get(e.ppid);t&&(t.children||(t.children=[]),t.children.push(e))}),n.forEach(e=>{e.children&&(e.children=e.children.sort((e,t)=>e.pid-t.pid))}),s(l)):i(new Error(`Root process ${t} not found`))})},e.ProcessDataFlag.CommandLine|e.ProcessDataFlag.Memory)});else{const t=/^\s*([0-9]+)\s+([0-9]+)\s+([0-9]+\.[0-9]+)\s+([0-9]+\.[0-9]+)\s+(.+)$/;n.exec("/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=",{maxBuffer:1024e3,env:{LC_NUMERIC:"en_US.UTF-8"}},(c,u,h)=>{if(c||h)i(c||h.toString());else{const c=u.toString().split("\n");for(const e of c){
let n=t.exec(e.trim());n&&6===n.length&&o(parseInt(n[1]),parseInt(n[2]),n[5],parseFloat(n[3]),parseFloat(n[4]))}if("linux"===process.platform){let t=[l];const o=[];for(;t.length;){const e=t.shift();e&&(o.push(e.pid),e.children&&(t=t.concat(e.children)))}let c=JSON.stringify(r.getPathFromAmdModule(e,"vs/base/node/cpuUsage.sh"));c+=" "+o.join(" "),n.exec(c,{},(e,t,n)=>{if(e||n)i(e||n.toString());else{const e=t.toString().split("\n");for(let t=0;t<o.length;t++)a.get(o[t]).load=parseFloat(e[t]);s(l)}})}else s(l)}})}})}}),define(e[16],t([1,0]),function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CONTEXT_MENU_CHANNEL="vscode:contextmenu",t.CONTEXT_MENU_CLOSE_CHANNEL="vscode:onCloseContextMenu"}),define(e[17],t([1,0,18,16]),function(e,t,n,r){"use strict";function s(e,t){const n={id:t.length,label:e.label,type:e.type,accelerator:e.accelerator,checked:e.checked,enabled:"boolean"!=typeof e.enabled||e.enabled,visible:"boolean"!=typeof e.visible||e.visible};return t.push(e),
Array.isArray(e.submenu)&&(n.submenu=e.submenu.map(e=>s(e,t))),n}Object.defineProperty(t,"__esModule",{value:!0});let i=0;t.popup=function(e,t){const o=[],c=i++,l=`vscode:onContextMenu${c}`,a=(e,t,n)=>{const r=o[t];r.click&&r.click(n)};n.ipcRenderer.once(l,a),n.ipcRenderer.once(r.CONTEXT_MENU_CLOSE_CHANNEL,(e,r)=>{r===c&&(n.ipcRenderer.removeListener(l,a),t&&t.onHide&&t.onHide())}),n.ipcRenderer.send(r.CONTEXT_MENU_CHANNEL,c,e.map(e=>s(e,o)),l,t)}}),define(e[19],t([20]),{}),define(e[15],t([1,0,10,4]),function(e,t,n,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const s=n.dirname(r.getPathFromAmdModule(e,"")),i=n.join(s,"product.json"),o=e.__$__nodeRequire(i);process.env.VSCODE_DEV&&(o.nameShort+=" Dev",o.nameLong+=" Dev",o.dataFolderName+="-dev"),t.default=o}),define(e[22],t([1,0,14,18,11,23,15,24,8,2,17,19]),function(e,t,n,r,s,i,o,c,l,a,u){"use strict";function h(e,t,n){const r=0===n;let c=t.name;if(r&&(c=`${o.default.applicationName} main`),"window"===c){
c=void 0!==v.get(t.pid)?`${c} (${v.get(t.pid)})`:c}const l=r?c:`${s.repeat("    ",n)} ${c}`,a="win32"===process.platform?t.mem:i.totalmem()*(t.mem/100);e.push({cpu:Number(t.load.toFixed(0)),memory:Number((a/1048576).toFixed(0)),pid:Number(t.pid.toFixed(0)),name:c,formattedName:l,cmd:t.cmd}),Array.isArray(t.children)&&t.children.forEach(t=>h(e,t,n+1))}function d(e,t){let n,r=0;return e.forEach(e=>{e[t]>r&&(r=e[t],n=e.pid)}),n}function f(e){r.webFrame.setZoomLevel(e),l.setZoomFactor(r.webFrame.getZoomFactor()),l.setZoomLevel(r.webFrame.getZoomLevel(),!1)}function p(e){e.preventDefault();const t=[],n=parseInt(e.currentTarget.id);if(n&&"number"==typeof n){t.push({label:c.localize(4,null),click(){process.kill(n,"SIGTERM")}}),t.push({label:c.localize(5,null),click(){process.kill(n,"SIGKILL")}}),t.push({type:"separator"}),t.push({label:c.localize(6,null),click(){const e=document.getElementById(n.toString());e&&r.clipboard.writeText(e.innerText)}}),t.push({label:c.localize(7,null),click(){
const e=document.getElementById("process-list");e&&r.clipboard.writeText(e.innerText)}});const e=g.filter(e=>e.pid===n)[0];e&&function(e){const t=C.exec(e);return t&&t.length>=2||e.indexOf("node ")>=0||e.indexOf("node.exe")>=0}(e.cmd)&&(t.push({type:"separator"}),t.push({label:c.localize(8,null),click(){!function(e){const t={type:"node",request:"attach",name:`process ${e.pid}`};let n=C.exec(e.cmd);n&&n.length>=2?(4===n.length&&n[3]&&(t.port=parseInt(n[3])),t.protocol="debug"===n[1]?"legacy":"inspector"):t.processId=String(e.pid),(n=b.exec(e.cmd))&&3===n.length&&(t.port=parseInt(n[2])),r.ipcRenderer.send("vscode:workbenchCommand",{id:"debug.startFromConfig",from:"processExplorer",args:[t]})}(e)}}))}else t.push({label:c.localize(9,null),click(){const e=document.getElementById("process-list");e&&r.clipboard.writeText(e.innerText)}});u.popup(t)}function m(e){!function(e){const t=document.createElement("style"),n=[];e.hoverBackground&&n.push(`tbody > tr:hover  { background-color: ${e.hoverBackground}; }`),
e.hoverForeground&&n.push(`tbody > tr:hover{ color: ${e.hoverForeground}; }`),e.highlightForeground&&n.push(`.highest { color: ${e.highlightForeground}; }`),t.innerHTML=n.join("\n"),document.head&&document.head.appendChild(t),e.color&&(document.body.style.color=e.color)}(e.styles),f(e.zoomLevel),r.ipcRenderer.on("vscode:windowsInfoResponse",(e,t)=>{v=new Map,t.forEach(e=>v.set(e.pid,e.title))}),setInterval(()=>{r.ipcRenderer.send("windowsInfoRequest"),n.listProcesses(e.pid).then(e=>{!function(e){const t=document.getElementById("process-list");if(!t)return;t.innerHTML="";const n=d(e,"cpu"),r=d(e,"memory"),s=document.createElement("thead");s.innerHTML=`<tr>\n\t\t<th scope="col" class="cpu">${c.localize(0,null)}</th>\n\t\t<th scope="col" class="memory">${c.localize(1,null)}</th>\n\t\t<th scope="col" class="pid">${c.localize(2,null)}</th>\n\t\t<th scope="col" class="nameLabel">${c.localize(3,null)}</th>\n\t</tr>`;const i=document.createElement("tbody");e.forEach(e=>{const t=document.createElement("tr");t.id=e.pid
;const s=document.createElement("td");e.pid===n?s.classList.add("centered","highest"):s.classList.add("centered"),s.textContent=e.cpu;const o=document.createElement("td");e.pid===r?o.classList.add("centered","highest"):o.classList.add("centered"),o.textContent=e.memory;const c=document.createElement("td");c.classList.add("centered"),c.textContent=e.pid;const l=document.createElement("th");l.scope="row",l.classList.add("data"),l.title=e.cmd,l.textContent=e.formattedName,t.append(s,o,c,l),i.appendChild(t)}),t.append(s,i)}(g=function(e){const t=[];return e&&h(t,e,0),t}(e));const t=document.getElementsByTagName("tr");for(let e=0;e<t.length;e++){t[e].addEventListener("contextmenu",e=>{p(e)})}})},1200),document.onkeydown=(e=>{const t=a.isMacintosh?e.metaKey:e.ctrlKey;t&&187===e.keyCode&&f(r.webFrame.getZoomLevel()+1),t&&189===e.keyCode&&f(r.webFrame.getZoomLevel()-1)})}Object.defineProperty(t,"__esModule",{value:!0});let g,v=new Map;const C=/\s--(inspect|debug)(-brk|port)?=(\d+)?/,b=/\s--(inspect|debug)-port=(\d+)/
;t.startup=m})}).call(this);
//# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/05f146c7a8f7f78e80261aa3b2a2e642586f9eb3/core/vs/code/electron-browser/processExplorer/processExplorerMain.js.map
