UNPKG

@coder/code-server-pr

Version:

Run VS Code on a remote server.

8 lines (7 loc) • 275 kB
/*!-------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/(function(){var ne=["require","exports","vs/base/common/platform","vs/base/common/lifecycle","vs/base/common/event","vs/base/common/path","vs/base/common/async","vs/base/common/uri","vs/base/common/errors","vs/base/common/types","vs/base/common/cancellation","vs/base/common/strings","vs/platform/log/common/log","vs/base/common/decorators","vs/base/node/pfs","child_process","vs/platform/terminal/common/terminal","vs/base/common/arrays","vs/base/common/process","vs/base/common/buffer","vs/base/common/extpath","vs/base/common/objects","vs/base/common/network","os","vs/nls","vs/nls!vs/platform/terminal/node/ptyHostMain","vs/base/common/functional","vs/base/common/resources","vs/base/parts/ipc/common/ipc","vs/base/node/processes","vs/platform/instantiation/common/instantiation","vs/platform/terminal/node/childProcessMonitor","vs/platform/terminal/node/terminalEnvironment","vs/base/common/iterator","vs/base/common/lazy","vs/base/common/linkedList","vs/base/common/processes","vs/base/common/stopwatch","vs/base/common/cache","vs/base/common/stream","vs/base/common/map","vs/base/common/normalization","vs/base/common/console","vs/base/common/marshalling","vs/base/node/decoder","vs/base/node/powershell","vs/base/node/ps","vs/nls!vs/base/common/errorMessage","vs/base/common/errorMessage","vs/nls!vs/base/node/processes","vs/base/node/shell","vs/base/parts/ipc/node/ipc.cp","vs/nls!vs/platform/terminal/node/ptyService","vs/nls!vs/platform/terminal/node/terminalProcess","vs/platform/log/common/logIpc","vs/platform/terminal/common/requestStore","vs/platform/terminal/common/terminalAutoResponder","vs/platform/terminal/common/terminalDataBuffering","vs/platform/terminal/common/terminalEnvironment","vs/platform/terminal/node/heartbeatService","vs/platform/terminal/node/windowsShellHelper","vs/platform/terminal/node/terminalProcess","vs/platform/terminal/node/ptyService","string_decoder","fs","util","xterm-headless","vs/platform/terminal/node/ptyHostMain"],re=function(J){for(var e=[],C=0,T=J.length;C<T;C++)e[C]=ne[J[C]];return e};define(ne[13],re([0,1]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=e.debounce=e.memoize=e.createDecorator=void 0;function C(A){return(O,g,_)=>{let v=null,S=null;if(typeof _.value=="function"?(v="value",S=_.value):typeof _.get=="function"&&(v="get",S=_.get),!S)throw new Error("not supported");_[v]=A(S,g)}}e.createDecorator=C;function T(A,O,g){let _=null,v=null;if(typeof g.value=="function"?(_="value",v=g.value,v.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof g.get=="function"&&(_="get",v=g.get),!v)throw new Error("not supported");const S=`$memoize$${O}`;g[_]=function(...D){return this.hasOwnProperty(S)||Object.defineProperty(this,S,{configurable:!1,enumerable:!1,writable:!1,value:v.apply(this,D)}),this[S]}}e.memoize=T;function b(A,O,g){return C((_,v)=>{const S=`$debounce$${v}`,D=`$debounce$result$${v}`;return function(...L){this[D]||(this[D]=g?g():void 0),clearTimeout(this[S]),O&&(this[D]=O(this[D],...L),L=[this[D]]),this[S]=setTimeout(()=>{_.apply(this,L),this[D]=g?g():void 0},A)}})}e.debounce=b;function k(A,O,g){return C((_,v)=>{const S=`$throttle$timer$${v}`,D=`$throttle$result$${v}`,L=`$throttle$lastRun$${v}`,m=`$throttle$pending$${v}`;return function(...l){if(this[D]||(this[D]=g?g():void 0),(this[L]===null||this[L]===void 0)&&(this[L]=-Number.MAX_VALUE),O&&(this[D]=O(this[D],...l)),this[m])return;const U=this[L]+A;U<=Date.now()?(this[L]=Date.now(),_.apply(this,[this[D]]),this[D]=g?g():void 0):(this[m]=!0,this[S]=setTimeout(()=>{this[m]=!1,this[L]=Date.now(),_.apply(this,[this[D]]),this[D]=g?g():void 0},U-Date.now()))}})}e.throttle=k}),define(ne[8],re([0,1]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createErrorWithActions=e.isErrorWithActions=e.ExpectedError=e.NotSupportedError=e.NotImplementedError=e.getErrorMessage=e.disposed=e.readonly=e.illegalState=e.illegalArgument=e.canceled=e.CancellationError=e.isCancellationError=e.transformErrorForSerialization=e.onUnexpectedExternalError=e.onUnexpectedError=e.setUnexpectedErrorHandler=e.errorHandler=e.ErrorHandler=void 0;class C{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(d){setTimeout(()=>{throw d.stack?new Error(d.message+` `+d.stack):d},0)}}addListener(d){return this.listeners.push(d),()=>{this._removeListener(d)}}emit(d){this.listeners.forEach(h=>{h(d)})}_removeListener(d){this.listeners.splice(this.listeners.indexOf(d),1)}setUnexpectedErrorHandler(d){this.unexpectedErrorHandler=d}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(d){this.unexpectedErrorHandler(d),this.emit(d)}onUnexpectedExternalError(d){this.unexpectedErrorHandler(d)}}e.ErrorHandler=C,e.errorHandler=new C;function T(a){e.errorHandler.setUnexpectedErrorHandler(a)}e.setUnexpectedErrorHandler=T;function b(a){g(a)||e.errorHandler.onUnexpectedError(a)}e.onUnexpectedError=b;function k(a){g(a)||e.errorHandler.onUnexpectedExternalError(a)}e.onUnexpectedExternalError=k;function A(a){if(a instanceof Error){let{name:d,message:h}=a;const o=a.stacktrace||a.stack;return{$isError:!0,name:d,message:h,stack:o}}return a}e.transformErrorForSerialization=A;const O="Canceled";function g(a){return a instanceof _?!0:a instanceof Error&&a.name===O&&a.message===O}e.isCancellationError=g;class _ extends Error{constructor(){super(O);this.name=this.message}}e.CancellationError=_;function v(){const a=new Error(O);return a.name=a.message,a}e.canceled=v;function S(a){return a?new Error(`Illegal argument: ${a}`):new Error("Illegal argument")}e.illegalArgument=S;function D(a){return a?new Error(`Illegal state: ${a}`):new Error("Illegal state")}e.illegalState=D;function L(a){return a?new Error(`readonly property '${a} cannot be changed'`):new Error("readonly property cannot be changed")}e.readonly=L;function m(a){const d=new Error(`${a} has been disposed`);return d.name="DISPOSED",d}e.disposed=m;function l(a){return a?a.message?a.message:a.stack?a.stack.split(` `)[0]:String(a):"Error"}e.getErrorMessage=l;class U extends Error{constructor(d){super("NotImplemented");d&&(this.message=d)}}e.NotImplementedError=U;class N extends Error{constructor(d){super("NotSupported");d&&(this.message=d)}}e.NotSupportedError=N;class B extends Error{constructor(){super(...arguments);this.isExpected=!0}}e.ExpectedError=B;function c(a){const d=a;return d instanceof Error&&Array.isArray(d.actions)}e.isErrorWithActions=c;function s(a,d=Object.create(null)){const h=new Error(a);return d.actions&&(h.actions=d.actions),h}e.createErrorWithActions=s}),define(ne[17],re([0,1,8]),function(J,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayQueue=e.findMinBy=e.findLastMaxBy=e.findMaxBy=e.numberComparator=e.compareBy=e.splice=e.insertInto=e.mapFind=e.getRandomElement=e.asArray=e.mapArrayOrNot=e.pushToEnd=e.pushToStart=e.shuffle=e.arrayInsert=e.remove=e.insert=e.index=e.range=e.flatten=e.commonPrefixLength=e.firstOrDefault=e.lastIndex=e.findLast=e.uniqueFilter=e.distinct=e.isNonEmptyArray=e.isFalsyOrEmpty=e.move=e.coalesceInPlace=e.coalesce=e.topAsync=e.top=e.delta=e.sortedDiff=e.groupBy=e.quickSelect=e.findFirstInSorted=e.binarySearch=e.equals=e.tail2=e.tail=void 0;function T(w,f=0){return w[w.length-(1+f)]}e.tail=T;function b(w){if(w.length===0)throw new Error("Invalid tail call");return[w.slice(0,w.length-1),w[w.length-1]]}e.tail2=b;function k(w,f,p=(R,W)=>R===W){if(w===f)return!0;if(!w||!f||w.length!==f.length)return!1;for(let R=0,W=w.length;R<W;R++)if(!p(w[R],f[R]))return!1;return!0}e.equals=k;function A(w,f,p){let R=0,W=w.length-1;for(;R<=W;){const Q=(R+W)/2|0,Z=p(w[Q],f);if(Z<0)R=Q+1;else if(Z>0)W=Q-1;else return Q}return-(R+1)}e.binarySearch=A;function O(w,f){let p=0,R=w.length;if(R===0)return 0;for(;p<R;){const W=Math.floor((p+R)/2);f(w[W])?R=W:p=W+1}return p}e.findFirstInSorted=O;function g(w,f,p){if(w=w|0,w>=f.length)throw new TypeError("invalid index");let R=f[Math.floor(f.length*Math.random())],W=[],Q=[],Z=[];for(let ae of f){const ce=p(ae,R);ce<0?W.push(ae):ce>0?Q.push(ae):Z.push(ae)}return w<W.length?g(w,W,p):w<W.length+Z.length?Z[0]:g(w-(W.length+Z.length),Q,p)}e.quickSelect=g;function _(w,f){const p=[];let R;for(const W of w.slice(0).sort(f))!R||f(R[0],W)!==0?(R=[W],p.push(R)):R.push(W);return p}e.groupBy=_;function v(w,f,p){const R=[];function W(ae,ce,fe){if(ce===0&&fe.length===0)return;const ge=R[R.length-1];ge&&ge.start+ge.deleteCount===ae?(ge.deleteCount+=ce,ge.toInsert.push(...fe)):R.push({start:ae,deleteCount:ce,toInsert:fe})}let Q=0,Z=0;for(;;){if(Q===w.length){W(Q,0,f.slice(Z));break}if(Z===f.length){W(Q,w.length-Q,[]);break}const ae=w[Q],ce=f[Z],fe=p(ae,ce);fe===0?(Q+=1,Z+=1):fe<0?(W(Q,1,[]),Q+=1):fe>0&&(W(Q,0,[ce]),Z+=1)}return R}e.sortedDiff=v;function S(w,f,p){const R=v(w,f,p),W=[],Q=[];for(const Z of R)W.push(...w.slice(Z.start,Z.start+Z.deleteCount)),Q.push(...Z.toInsert);return{removed:W,added:Q}}e.delta=S;function D(w,f,p){if(p===0)return[];const R=w.slice(0,p).sort(f);return m(w,f,R,p,w.length),R}e.top=D;function L(w,f,p,R,W){return p===0?Promise.resolve([]):new Promise((Q,Z)=>{(async()=>{const ae=w.length,ce=w.slice(0,p).sort(f);for(let fe=p,ge=Math.min(p+R,ae);fe<ae;fe=ge,ge=Math.min(ge+R,ae)){if(fe>p&&await new Promise(we=>setTimeout(we)),W&&W.isCancellationRequested)throw(0,C.canceled)();m(w,f,ce,fe,ge)}return ce})().then(Q,Z)})}e.topAsync=L;function m(w,f,p,R,W){for(const Q=p.length;R<W;R++){const Z=w[R];if(f(Z,p[Q-1])<0){p.pop();const ae=O(p,ce=>f(Z,ce)<0);p.splice(ae,0,Z)}}}function l(w){return w.filter(f=>!!f)}e.coalesce=l;function U(w){let f=0;for(let p=0;p<w.length;p++)w[p]&&(w[f]=w[p],f+=1);w.length=f}e.coalesceInPlace=U;function N(w,f,p){w.splice(p,0,w.splice(f,1)[0])}e.move=N;function B(w){return!Array.isArray(w)||w.length===0}e.isFalsyOrEmpty=B;function c(w){return Array.isArray(w)&&w.length>0}e.isNonEmptyArray=c;function s(w,f=p=>p){const p=new Set;return w.filter(R=>{const W=f(R);return p.has(W)?!1:(p.add(W),!0)})}e.distinct=s;function a(w){const f=new Set;return p=>{const R=w(p);return f.has(R)?!1:(f.add(R),!0)}}e.uniqueFilter=a;function d(w,f){const p=h(w,f);if(p!==-1)return w[p]}e.findLast=d;function h(w,f){for(let p=w.length-1;p>=0;p--){const R=w[p];if(f(R))return p}return-1}e.lastIndex=h;function o(w,f){return w.length>0?w[0]:f}e.firstOrDefault=o;function t(w,f,p=(R,W)=>R===W){let R=0;for(let W=0,Q=Math.min(w.length,f.length);W<Q&&p(w[W],f[W]);W++)R++;return R}e.commonPrefixLength=t;function i(w){return[].concat(...w)}e.flatten=i;function n(w,f){let p=typeof f=="number"?w:0;typeof f=="number"?p=w:(p=0,f=w);const R=[];if(p<=f)for(let W=p;W<f;W++)R.push(W);else for(let W=p;W>f;W--)R.push(W);return R}e.range=n;function r(w,f,p){return w.reduce((R,W)=>(R[f(W)]=p?p(W):W,R),Object.create(null))}e.index=r;function u(w,f){return w.push(f),()=>P(w,f)}e.insert=u;function P(w,f){const p=w.indexOf(f);if(p>-1)return w.splice(p,1),f}e.remove=P;function M(w,f,p){const R=w.slice(0,f),W=w.slice(f);return R.concat(p,W)}e.arrayInsert=M;function G(w,f){let p;if(typeof f=="number"){let R=f;p=()=>{const W=Math.sin(R++)*179426549;return W-Math.floor(W)}}else p=Math.random;for(let R=w.length-1;R>0;R-=1){const W=Math.floor(p()*(R+1)),Q=w[R];w[R]=w[W],w[W]=Q}}e.shuffle=G;function te(w,f){const p=w.indexOf(f);p>-1&&(w.splice(p,1),w.unshift(f))}e.pushToStart=te;function X(w,f){const p=w.indexOf(f);p>-1&&(w.splice(p,1),w.push(f))}e.pushToEnd=X;function oe(w,f){return Array.isArray(w)?w.map(f):f(w)}e.mapArrayOrNot=oe;function le(w){return Array.isArray(w)?w:[w]}e.asArray=le;function j(w){return w[Math.floor(Math.random()*w.length)]}e.getRandomElement=j;function Y(w,f){for(const p of w){const R=f(p);if(R!==void 0)return R}}e.mapFind=Y;function ie(w,f,p){const R=H(w,f),W=w.length,Q=p.length;w.length=W+Q;for(let Z=W-1;Z>=R;Z--)w[Z+Q]=w[Z];for(let Z=0;Z<Q;Z++)w[Z+R]=p[Z]}e.insertInto=ie;function ee(w,f,p,R){const W=H(w,f),Q=w.splice(W,p);return ie(w,W,R),Q}e.splice=ee;function H(w,f){return f<0?Math.max(f+w.length,0):Math.min(f,w.length)}function I(w,f){return(p,R)=>f(w(p),w(R))}e.compareBy=I;const E=(w,f)=>w-f;e.numberComparator=E;function F(w,f){if(w.length===0)return;let p=w[0];for(let R=1;R<w.length;R++){const W=w[R];f(W,p)>0&&(p=W)}return p}e.findMaxBy=F;function $(w,f){if(w.length===0)return;let p=w[0];for(let R=1;R<w.length;R++){const W=w[R];f(W,p)>=0&&(p=W)}return p}e.findLastMaxBy=$;function V(w,f){return F(w,(p,R)=>-f(p,R))}e.findMinBy=V;class K{constructor(f){this.items=f,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(f){let p=this.firstIdx;for(;p<this.items.length&&f(this.items[p]);)p++;const R=p===this.firstIdx?null:this.items.slice(this.firstIdx,p);return this.firstIdx=p,R}takeFromEndWhile(f){let p=this.lastIdx;for(;p>=0&&f(this.items[p]);)p--;const R=p===this.lastIdx?null:this.items.slice(p+1,this.lastIdx+1);return this.lastIdx=p,R}peek(){return this.items[this.firstIdx]}dequeue(){const f=this.items[this.firstIdx];return this.firstIdx++,f}takeCount(f){const p=this.items.slice(this.firstIdx,this.firstIdx+f);return this.firstIdx+=f,p}}e.ArrayQueue=K}),define(ne[26],re([0,1]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function C(T){const b=this;let k=!1,A;return function(){return k||(k=!0,A=T.apply(b,arguments)),A}}e.once=C}),define(ne[33],re([0,1]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var C;(function(T){function b(a){return a&&typeof a=="object"&&typeof a[Symbol.iterator]=="function"}T.is=b;const k=Object.freeze([]);function A(){return k}T.empty=A;function*O(a){yield a}T.single=O;function g(a){return a||k}T.from=g;function _(a){return!a||a[Symbol.iterator]().next().done===!0}T.isEmpty=_;function v(a){return a[Symbol.iterator]().next().value}T.first=v;function S(a,d){for(const h of a)if(d(h))return!0;return!1}T.some=S;function D(a,d){for(const h of a)if(d(h))return h}T.find=D;function*L(a,d){for(const h of a)d(h)&&(yield h)}T.filter=L;function*m(a,d){let h=0;for(const o of a)yield d(o,h++)}T.map=m;function*l(...a){for(const d of a)for(const h of d)yield h}T.concat=l;function*U(a){for(const d of a)for(const h of d)yield h}T.concatNested=U;function N(a,d,h){let o=h;for(const t of a)o=d(o,t);return o}T.reduce=N;function*B(a,d,h=a.length){for(d<0&&(d+=a.length),h<0?h+=a.length:h>a.length&&(h=a.length);d<h;d++)yield a[d]}T.slice=B;function c(a,d=Number.POSITIVE_INFINITY){const h=[];if(d===0)return[h,a];const o=a[Symbol.iterator]();for(let t=0;t<d;t++){const i=o.next();if(i.done)return[h,T.empty()];h.push(i.value)}return[h,{[Symbol.iterator](){return o}}]}T.consume=c;function s(a,d,h=(o,t)=>o===t){const o=a[Symbol.iterator](),t=d[Symbol.iterator]();for(;;){const i=o.next(),n=t.next();if(i.done!==n.done)return!1;if(i.done)return!0;if(!h(i.value,n.value))return!1}}T.equals=s})(C=e.Iterable||(e.Iterable={}))}),define(ne[34],re([0,1]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lazy=void 0;class C{constructor(b){this.executor=b,this._didRun=!1}hasValue(){return this._didRun}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(b){this._error=b}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}map(b){return new C(()=>b(this.getValue()))}}e.Lazy=C}),define(ne[3],re([0,1,26,33]),function(J,e,C,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.disposeOnReturn=e.ImmortalReference=e.AsyncReferenceCollection=e.ReferenceCollection=e.RefCountedDisposable=e.MutableDisposable=e.Disposable=e.DisposableStore=e.toDisposable=e.combinedDisposable=e.dispose=e.isDisposable=e.MultiDisposeError=e.markAsSingleton=e.setDisposableTracker=void 0;const b=!1;let k=null;function A(t){k=t}if(e.setDisposableTracker=A,b){const t="__is_disposable_tracked__";A(new class{trackDisposable(i){const n=new Error("Potentially leaked disposable").stack;setTimeout(()=>{i[t]||console.log(n)},3e3)}setParent(i,n){if(i&&i!==B.None)try{i[t]=!0}catch{}}markAsDisposed(i){if(i&&i!==B.None)try{i[t]=!0}catch{}}markAsSingleton(i){}})}function O(t){return k?.trackDisposable(t),t}function g(t){k?.markAsDisposed(t)}function _(t,i){k?.setParent(t,i)}function v(t,i){if(!!k)for(const n of t)k.setParent(n,i)}function S(t){return k?.markAsSingleton(t),t}e.markAsSingleton=S;class D extends Error{constructor(i){super(`Encountered errors while disposing of store. Errors: [${i.join(", ")}]`);this.errors=i}}e.MultiDisposeError=D;function L(t){return typeof t.dispose=="function"&&t.dispose.length===0}e.isDisposable=L;function m(t){if(T.Iterable.is(t)){let i=[];for(const n of t)if(n)try{n.dispose()}catch(r){i.push(r)}if(i.length===1)throw i[0];if(i.length>1)throw new D(i);return Array.isArray(t)?[]:t}else if(t)return t.dispose(),t}e.dispose=m;function l(...t){const i=U(()=>m(t));return v(t,i),i}e.combinedDisposable=l;function U(t){const i=O({dispose:(0,C.once)(()=>{g(i),t()})});return i}e.toDisposable=U;class N{constructor(){this._toDispose=new Set,this._isDisposed=!1,O(this)}dispose(){this._isDisposed||(g(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{m(this._toDispose.values())}finally{this._toDispose.clear()}}add(i){if(!i)return i;if(i===this)throw new Error("Cannot register a disposable on itself!");return _(i,this),this._isDisposed?N.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(i),i}}e.DisposableStore=N,N.DISABLE_DISPOSED_WARNING=!1;class B{constructor(){this._store=new N,O(this),_(this._store,this)}dispose(){g(this),this._store.dispose()}_register(i){if(i===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(i)}}e.Disposable=B,B.None=Object.freeze({dispose(){}});class c{constructor(){this._isDisposed=!1,O(this)}get value(){return this._isDisposed?void 0:this._value}set value(i){this._isDisposed||i===this._value||(this._value?.dispose(),i&&_(i,this),this._value=i)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,g(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){const i=this._value;return this._value=void 0,i&&_(i,null),i}}e.MutableDisposable=c;class s{constructor(i){this._disposable=i,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter==0&&this._disposable.dispose(),this}}e.RefCountedDisposable=s;class a{constructor(){this.references=new Map}acquire(i,...n){let r=this.references.get(i);r||(r={counter:0,object:this.createReferencedObject(i,...n)},this.references.set(i,r));const{object:u}=r,P=(0,C.once)(()=>{--r.counter==0&&(this.destroyReferencedObject(i,r.object),this.references.delete(i))});return r.counter++,{object:u,dispose:P}}}e.ReferenceCollection=a;class d{constructor(i){this.referenceCollection=i}async acquire(i,...n){const r=this.referenceCollection.acquire(i,...n);try{return{object:await r.object,dispose:()=>r.dispose()}}catch(u){throw r.dispose(),u}}}e.AsyncReferenceCollection=d;class h{constructor(i){this.object=i}dispose(){}}e.ImmortalReference=h;function o(t){const i=new N;try{t(i)}finally{i.dispose()}}e.disposeOnReturn=o}),define(ne[35],re([0,1]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=void 0;class C{constructor(k){this.element=k,this.next=C.Undefined,this.prev=C.Undefined}}C.Undefined=new C(void 0);class T{constructor(){this._first=C.Undefined,this._last=C.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===C.Undefined}clear(){let k=this._first;for(;k!==C.Undefined;){const A=k.next;k.prev=C.Undefined,k.next=C.Undefined,k=A}this._first=C.Undefined,this._last=C.Undefined,this._size=0}unshift(k){return this._insert(k,!1)}push(k){return this._insert(k,!0)}_insert(k,A){const O=new C(k);if(this._first===C.Undefined)this._first=O,this._last=O;else if(A){const _=this._last;this._last=O,O.prev=_,_.next=O}else{const _=this._first;this._first=O,O.next=_,_.prev=O}this._size+=1;let g=!1;return()=>{g||(g=!0,this._remove(O))}}shift(){if(this._first!==C.Undefined){const k=this._first.element;return this._remove(this._first),k}}pop(){if(this._last!==C.Undefined){const k=this._last.element;return this._remove(this._last),k}}_remove(k){if(k.prev!==C.Undefined&&k.next!==C.Undefined){const A=k.prev;A.next=k.next,k.next.prev=A}else k.prev===C.Undefined&&k.next===C.Undefined?(this._first=C.Undefined,this._last=C.Undefined):k.next===C.Undefined?(this._last=this._last.prev,this._last.next=C.Undefined):k.prev===C.Undefined&&(this._first=this._first.next,this._first.prev=C.Undefined);this._size-=1}*[Symbol.iterator](){let k=this._first;for(;k!==C.Undefined;)yield k.element,k=k.next}}e.LinkedList=T}),define(ne[2],re([0,1]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAndroid=e.isEdge=e.isSafari=e.isFirefox=e.isChrome=e.isLittleEndian=e.OS=e.OperatingSystem=e.setTimeout0=e.translationsConfigFile=e.locale=e.Language=e.language=e.userAgent=e.platform=e.isIOS=e.isWeb=e.isElectron=e.isNative=e.isLinuxSnap=e.isLinux=e.isMacintosh=e.isWindows=e.PlatformToString=e.Platform=e.isElectronSandboxed=e.globals=void 0;const C="en";let T=!1,b=!1,k=!1,A=!1,O=!1,g=!1,_=!1,v=!1,S,D=C,L,m;e.globals=typeof self=="object"?self:typeof global=="object"?global:{};let l;typeof e.globals.vscode!="undefined"&&typeof e.globals.vscode.process!="undefined"?l=e.globals.vscode.process:typeof process!="undefined"&&(l=process);const U=typeof l?.versions?.electron=="string",N=U&&l?.type==="renderer";if(e.isElectronSandboxed=N&&l?.sandboxed,typeof navigator=="object"&&!N){m=navigator.userAgent,T=m.indexOf("Windows")>=0,b=m.indexOf("Macintosh")>=0,v=(m.indexOf("Macintosh")>=0||m.indexOf("iPad")>=0||m.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,k=m.indexOf("Linux")>=0,g=!0,S=navigator.language,D=S;const i=typeof document!="undefined"&&document.getElementById("vscode-remote-nls-configuration"),n=i&&i.getAttribute("data-settings");if(n)try{const r=JSON.parse(n);S=r.locale,L=r._translationsConfigFile,D=r.availableLanguages["*"]||C}catch{}}else if(typeof l=="object"){T=l.platform==="win32",b=l.platform==="darwin",k=l.platform==="linux",A=k&&!!l.env.SNAP&&!!l.env.SNAP_REVISION,_=U,S=C,D=C;const i=l.env.VSCODE_NLS_CONFIG;if(i)try{const n=JSON.parse(i),r=n.availableLanguages["*"];S=n.locale,D=r||C,L=n._translationsConfigFile}catch{}O=!0}else console.error("Unable to resolve platform.");var B;(function(i){i[i.Web=0]="Web",i[i.Mac=1]="Mac",i[i.Linux=2]="Linux",i[i.Windows=3]="Windows"})(B=e.Platform||(e.Platform={}));function c(i){switch(i){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}e.PlatformToString=c;let s=0;b?s=1:T?s=3:k&&(s=2),e.isWindows=T,e.isMacintosh=b,e.isLinux=k,e.isLinuxSnap=A,e.isNative=O,e.isElectron=_,e.isWeb=g,e.isIOS=v,e.platform=s,e.userAgent=m,e.language=D;var a;(function(i){function n(){return e.language}i.value=n;function r(){return e.language.length===2?e.language==="en":e.language.length>=3?e.language[0]==="e"&&e.language[1]==="n"&&e.language[2]==="-":!1}i.isDefaultVariant=r;function u(){return e.language==="en"}i.isDefault=u})(a=e.Language||(e.Language={})),e.locale=S,e.translationsConfigFile=L,e.setTimeout0=(()=>{if(typeof e.globals.postMessage=="function"&&!e.globals.importScripts){let i=[];e.globals.addEventListener("message",r=>{if(r.data&&r.data.vscodeScheduleAsyncWork)for(let u=0,P=i.length;u<P;u++){const M=i[u];if(M.id===r.data.vscodeScheduleAsyncWork){i.splice(u,1),M.callback();return}}});let n=0;return r=>{const u=++n;i.push({id:u,callback:r}),e.globals.postMessage({vscodeScheduleAsyncWork:u},"*")}}return i=>setTimeout(i)})();var d;(function(i){i[i.Windows=1]="Windows",i[i.Macintosh=2]="Macintosh",i[i.Linux=3]="Linux"})(d=e.OperatingSystem||(e.OperatingSystem={})),e.OS=b||v?2:T?1:3;let h=!0,o=!1;function t(){if(!o){o=!0;const i=new Uint8Array(2);i[0]=1,i[1]=2,h=new Uint16Array(i.buffer)[0]===(2<<8)+1}return h}e.isLittleEndian=t,e.isChrome=!!(e.userAgent&&e.userAgent.indexOf("Chrome")>=0),e.isFirefox=!!(e.userAgent&&e.userAgent.indexOf("Firefox")>=0),e.isSafari=!!(!e.isChrome&&e.userAgent&&e.userAgent.indexOf("Safari")>=0),e.isEdge=!!(e.userAgent&&e.userAgent.indexOf("Edg/")>=0),e.isAndroid=!!(e.userAgent&&e.userAgent.indexOf("Android")>=0)}),define(ne[18],re([0,1,2]),function(J,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arch=e.platform=e.env=e.cwd=void 0;let T;if(typeof C.globals.vscode!="undefined"&&typeof C.globals.vscode.process!="undefined"){const b=C.globals.vscode.process;T={get platform(){return b.platform},get arch(){return b.arch},get env(){return b.env},cwd(){return b.cwd()}}}else typeof process!="undefined"?T={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:T={get platform(){return C.isWindows?"win32":C.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};e.cwd=T.cwd,e.env=T.env,e.platform=T.platform,e.arch=T.arch}),define(ne[5],re([0,1,18]),function(J,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.delimiter=e.sep=e.toNamespacedPath=e.parse=e.format=e.extname=e.basename=e.dirname=e.relative=e.resolve=e.join=e.isAbsolute=e.normalize=e.posix=e.win32=void 0;const T=65,b=97,k=90,A=122,O=46,g=47,_=92,v=58,S=63;class D extends Error{constructor(s,a,d){let h;typeof a=="string"&&a.indexOf("not ")===0?(h="must not be",a=a.replace(/^not /,"")):h="must be";const o=s.indexOf(".")!==-1?"property":"argument";let t=`The "${s}" ${o} ${h} of type ${a}`;t+=`. Received type ${typeof d}`;super(t);this.code="ERR_INVALID_ARG_TYPE"}}function L(c,s){if(typeof c!="string")throw new D(s,"string",c)}function m(c){return c===g||c===_}function l(c){return c===g}function U(c){return c>=T&&c<=k||c>=b&&c<=A}function N(c,s,a,d){let h="",o=0,t=-1,i=0,n=0;for(let r=0;r<=c.length;++r){if(r<c.length)n=c.charCodeAt(r);else{if(d(n))break;n=g}if(d(n)){if(!(t===r-1||i===1))if(i===2){if(h.length<2||o!==2||h.charCodeAt(h.length-1)!==O||h.charCodeAt(h.length-2)!==O){if(h.length>2){const u=h.lastIndexOf(a);u===-1?(h="",o=0):(h=h.slice(0,u),o=h.length-1-h.lastIndexOf(a)),t=r,i=0;continue}else if(h.length!==0){h="",o=0,t=r,i=0;continue}}s&&(h+=h.length>0?`${a}..`:"..",o=2)}else h.length>0?h+=`${a}${c.slice(t+1,r)}`:h=c.slice(t+1,r),o=r-t-1;t=r,i=0}else n===O&&i!==-1?++i:i=-1}return h}function B(c,s){if(s===null||typeof s!="object")throw new D("pathObject","Object",s);const a=s.dir||s.root,d=s.base||`${s.name||""}${s.ext||""}`;return a?a===s.root?`${a}${d}`:`${a}${c}${d}`:d}e.win32={resolve(...c){let s="",a="",d=!1;for(let h=c.length-1;h>=-1;h--){let o;if(h>=0){if(o=c[h],L(o,"path"),o.length===0)continue}else s.length===0?o=C.cwd():(o=C.env[`=${s}`]||C.cwd(),(o===void 0||o.slice(0,2).toLowerCase()!==s.toLowerCase()&&o.charCodeAt(2)===_)&&(o=`${s}\\`));const t=o.length;let i=0,n="",r=!1;const u=o.charCodeAt(0);if(t===1)m(u)&&(i=1,r=!0);else if(m(u))if(r=!0,m(o.charCodeAt(1))){let P=2,M=P;for(;P<t&&!m(o.charCodeAt(P));)P++;if(P<t&&P!==M){const G=o.slice(M,P);for(M=P;P<t&&m(o.charCodeAt(P));)P++;if(P<t&&P!==M){for(M=P;P<t&&!m(o.charCodeAt(P));)P++;(P===t||P!==M)&&(n=`\\\\${G}\\${o.slice(M,P)}`,i=P)}}}else i=1;else U(u)&&o.charCodeAt(1)===v&&(n=o.slice(0,2),i=2,t>2&&m(o.charCodeAt(2))&&(r=!0,i=3));if(n.length>0)if(s.length>0){if(n.toLowerCase()!==s.toLowerCase())continue}else s=n;if(d){if(s.length>0)break}else if(a=`${o.slice(i)}\\${a}`,d=r,r&&s.length>0)break}return a=N(a,!d,"\\",m),d?`${s}\\${a}`:`${s}${a}`||"."},normalize(c){L(c,"path");const s=c.length;if(s===0)return".";let a=0,d,h=!1;const o=c.charCodeAt(0);if(s===1)return l(o)?"\\":c;if(m(o))if(h=!0,m(c.charCodeAt(1))){let i=2,n=i;for(;i<s&&!m(c.charCodeAt(i));)i++;if(i<s&&i!==n){const r=c.slice(n,i);for(n=i;i<s&&m(c.charCodeAt(i));)i++;if(i<s&&i!==n){for(n=i;i<s&&!m(c.charCodeAt(i));)i++;if(i===s)return`\\\\${r}\\${c.slice(n)}\\`;i!==n&&(d=`\\\\${r}\\${c.slice(n,i)}`,a=i)}}}else a=1;else U(o)&&c.charCodeAt(1)===v&&(d=c.slice(0,2),a=2,s>2&&m(c.charCodeAt(2))&&(h=!0,a=3));let t=a<s?N(c.slice(a),!h,"\\",m):"";return t.length===0&&!h&&(t="."),t.length>0&&m(c.charCodeAt(s-1))&&(t+="\\"),d===void 0?h?`\\${t}`:t:h?`${d}\\${t}`:`${d}${t}`},isAbsolute(c){L(c,"path");const s=c.length;if(s===0)return!1;const a=c.charCodeAt(0);return m(a)||s>2&&U(a)&&c.charCodeAt(1)===v&&m(c.charCodeAt(2))},join(...c){if(c.length===0)return".";let s,a;for(let o=0;o<c.length;++o){const t=c[o];L(t,"path"),t.length>0&&(s===void 0?s=a=t:s+=`\\${t}`)}if(s===void 0)return".";let d=!0,h=0;if(typeof a=="string"&&m(a.charCodeAt(0))){++h;const o=a.length;o>1&&m(a.charCodeAt(1))&&(++h,o>2&&(m(a.charCodeAt(2))?++h:d=!1))}if(d){for(;h<s.length&&m(s.charCodeAt(h));)h++;h>=2&&(s=`\\${s.slice(h)}`)}return e.win32.normalize(s)},relative(c,s){if(L(c,"from"),L(s,"to"),c===s)return"";const a=e.win32.resolve(c),d=e.win32.resolve(s);if(a===d||(c=a.toLowerCase(),s=d.toLowerCase(),c===s))return"";let h=0;for(;h<c.length&&c.charCodeAt(h)===_;)h++;let o=c.length;for(;o-1>h&&c.charCodeAt(o-1)===_;)o--;const t=o-h;let i=0;for(;i<s.length&&s.charCodeAt(i)===_;)i++;let n=s.length;for(;n-1>i&&s.charCodeAt(n-1)===_;)n--;const r=n-i,u=t<r?t:r;let P=-1,M=0;for(;M<u;M++){const te=c.charCodeAt(h+M);if(te!==s.charCodeAt(i+M))break;te===_&&(P=M)}if(M!==u){if(P===-1)return d}else{if(r>u){if(s.charCodeAt(i+M)===_)return d.slice(i+M+1);if(M===2)return d.slice(i+M)}t>u&&(c.charCodeAt(h+M)===_?P=M:M===2&&(P=3)),P===-1&&(P=0)}let G="";for(M=h+P+1;M<=o;++M)(M===o||c.charCodeAt(M)===_)&&(G+=G.length===0?"..":"\\..");return i+=P,G.length>0?`${G}${d.slice(i,n)}`:(d.charCodeAt(i)===_&&++i,d.slice(i,n))},toNamespacedPath(c){if(typeof c!="string")return c;if(c.length===0)return"";const s=e.win32.resolve(c);if(s.length<=2)return c;if(s.charCodeAt(0)===_){if(s.charCodeAt(1)===_){const a=s.charCodeAt(2);if(a!==S&&a!==O)return`\\\\?\\UNC\\${s.slice(2)}`}}else if(U(s.charCodeAt(0))&&s.charCodeAt(1)===v&&s.charCodeAt(2)===_)return`\\\\?\\${s}`;return c},dirname(c){L(c,"path");const s=c.length;if(s===0)return".";let a=-1,d=0;const h=c.charCodeAt(0);if(s===1)return m(h)?c:".";if(m(h)){if(a=d=1,m(c.charCodeAt(1))){let i=2,n=i;for(;i<s&&!m(c.charCodeAt(i));)i++;if(i<s&&i!==n){for(n=i;i<s&&m(c.charCodeAt(i));)i++;if(i<s&&i!==n){for(n=i;i<s&&!m(c.charCodeAt(i));)i++;if(i===s)return c;i!==n&&(a=d=i+1)}}}}else U(h)&&c.charCodeAt(1)===v&&(a=s>2&&m(c.charCodeAt(2))?3:2,d=a);let o=-1,t=!0;for(let i=s-1;i>=d;--i)if(m(c.charCodeAt(i))){if(!t){o=i;break}}else t=!1;if(o===-1){if(a===-1)return".";o=a}return c.slice(0,o)},basename(c,s){s!==void 0&&L(s,"ext"),L(c,"path");let a=0,d=-1,h=!0,o;if(c.length>=2&&U(c.charCodeAt(0))&&c.charCodeAt(1)===v&&(a=2),s!==void 0&&s.length>0&&s.length<=c.length){if(s===c)return"";let t=s.length-1,i=-1;for(o=c.length-1;o>=a;--o){const n=c.charCodeAt(o);if(m(n)){if(!h){a=o+1;break}}else i===-1&&(h=!1,i=o+1),t>=0&&(n===s.charCodeAt(t)?--t==-1&&(d=o):(t=-1,d=i))}return a===d?d=i:d===-1&&(d=c.length),c.slice(a,d)}for(o=c.length-1;o>=a;--o)if(m(c.charCodeAt(o))){if(!h){a=o+1;break}}else d===-1&&(h=!1,d=o+1);return d===-1?"":c.slice(a,d)},extname(c){L(c,"path");let s=0,a=-1,d=0,h=-1,o=!0,t=0;c.length>=2&&c.charCodeAt(1)===v&&U(c.charCodeAt(0))&&(s=d=2);for(let i=c.length-1;i>=s;--i){const n=c.charCodeAt(i);if(m(n)){if(!o){d=i+1;break}continue}h===-1&&(o=!1,h=i+1),n===O?a===-1?a=i:t!==1&&(t=1):a!==-1&&(t=-1)}return a===-1||h===-1||t===0||t===1&&a===h-1&&a===d+1?"":c.slice(a,h)},format:B.bind(null,"\\"),parse(c){L(c,"path");const s={root:"",dir:"",base:"",ext:"",name:""};if(c.length===0)return s;const a=c.length;let d=0,h=c.charCodeAt(0);if(a===1)return m(h)?(s.root=s.dir=c,s):(s.base=s.name=c,s);if(m(h)){if(d=1,m(c.charCodeAt(1))){let P=2,M=P;for(;P<a&&!m(c.charCodeAt(P));)P++;if(P<a&&P!==M){for(M=P;P<a&&m(c.charCodeAt(P));)P++;if(P<a&&P!==M){for(M=P;P<a&&!m(c.charCodeAt(P));)P++;P===a?d=P:P!==M&&(d=P+1)}}}}else if(U(h)&&c.charCodeAt(1)===v){if(a<=2)return s.root=s.dir=c,s;if(d=2,m(c.charCodeAt(2))){if(a===3)return s.root=s.dir=c,s;d=3}}d>0&&(s.root=c.slice(0,d));let o=-1,t=d,i=-1,n=!0,r=c.length-1,u=0;for(;r>=d;--r){if(h=c.charCodeAt(r),m(h)){if(!n){t=r+1;break}continue}i===-1&&(n=!1,i=r+1),h===O?o===-1?o=r:u!==1&&(u=1):o!==-1&&(u=-1)}return i!==-1&&(o===-1||u===0||u===1&&o===i-1&&o===t+1?s.base=s.name=c.slice(t,i):(s.name=c.slice(t,o),s.base=c.slice(t,i),s.ext=c.slice(o,i))),t>0&&t!==d?s.dir=c.slice(0,t-1):s.dir=s.root,s},sep:"\\",delimiter:";",win32:null,posix:null},e.posix={resolve(...c){let s="",a=!1;for(let d=c.length-1;d>=-1&&!a;d--){const h=d>=0?c[d]:C.cwd();L(h,"path"),h.length!==0&&(s=`${h}/${s}`,a=h.charCodeAt(0)===g)}return s=N(s,!a,"/",l),a?`/${s}`:s.length>0?s:"."},normalize(c){if(L(c,"path"),c.length===0)return".";const s=c.charCodeAt(0)===g,a=c.charCodeAt(c.length-1)===g;return c=N(c,!s,"/",l),c.length===0?s?"/":a?"./":".":(a&&(c+="/"),s?`/${c}`:c)},isAbsolute(c){return L(c,"path"),c.length>0&&c.charCodeAt(0)===g},join(...c){if(c.length===0)return".";let s;for(let a=0;a<c.length;++a){const d=c[a];L(d,"path"),d.length>0&&(s===void 0?s=d:s+=`/${d}`)}return s===void 0?".":e.posix.normalize(s)},relative(c,s){if(L(c,"from"),L(s,"to"),c===s||(c=e.posix.resolve(c),s=e.posix.resolve(s),c===s))return"";const a=1,d=c.length,h=d-a,o=1,t=s.length-o,i=h<t?h:t;let n=-1,r=0;for(;r<i;r++){const P=c.charCodeAt(a+r);if(P!==s.charCodeAt(o+r))break;P===g&&(n=r)}if(r===i)if(t>i){if(s.charCodeAt(o+r)===g)return s.slice(o+r+1);if(r===0)return s.slice(o+r)}else h>i&&(c.charCodeAt(a+r)===g?n=r:r===0&&(n=0));let u="";for(r=a+n+1;r<=d;++r)(r===d||c.charCodeAt(r)===g)&&(u+=u.length===0?"..":"/..");return`${u}${s.slice(o+n)}`},toNamespacedPath(c){return c},dirname(c){if(L(c,"path"),c.length===0)return".";const s=c.charCodeAt(0)===g;let a=-1,d=!0;for(let h=c.length-1;h>=1;--h)if(c.charCodeAt(h)===g){if(!d){a=h;break}}else d=!1;return a===-1?s?"/":".":s&&a===1?"//":c.slice(0,a)},basename(c,s){s!==void 0&&L(s,"ext"),L(c,"path");let a=0,d=-1,h=!0,o;if(s!==void 0&&s.length>0&&s.length<=c.length){if(s===c)return"";let t=s.length-1,i=-1;for(o=c.length-1;o>=0;--o){const n=c.charCodeAt(o);if(n===g){if(!h){a=o+1;break}}else i===-1&&(h=!1,i=o+1),t>=0&&(n===s.charCodeAt(t)?--t==-1&&(d=o):(t=-1,d=i))}return a===d?d=i:d===-1&&(d=c.length),c.slice(a,d)}for(o=c.length-1;o>=0;--o)if(c.charCodeAt(o)===g){if(!h){a=o+1;break}}else d===-1&&(h=!1,d=o+1);return d===-1?"":c.slice(a,d)},extname(c){L(c,"path");let s=-1,a=0,d=-1,h=!0,o=0;for(let t=c.length-1;t>=0;--t){const i=c.charCodeAt(t);if(i===g){if(!h){a=t+1;break}continue}d===-1&&(h=!1,d=t+1),i===O?s===-1?s=t:o!==1&&(o=1):s!==-1&&(o=-1)}return s===-1||d===-1||o===0||o===1&&s===d-1&&s===a+1?"":c.slice(s,d)},format:B.bind(null,"/"),parse(c){L(c,"path");const s={root:"",dir:"",base:"",ext:"",name:""};if(c.length===0)return s;const a=c.charCodeAt(0)===g;let d;a?(s.root="/",d=1):d=0;let h=-1,o=0,t=-1,i=!0,n=c.length-1,r=0;for(;n>=d;--n){const u=c.charCodeAt(n);if(u===g){if(!i){o=n+1;break}continue}t===-1&&(i=!1,t=n+1),u===O?h===-1?h=n:r!==1&&(r=1):h!==-1&&(r=-1)}if(t!==-1){const u=o===0&&a?1:o;h===-1||r===0||r===1&&h===t-1&&h===o+1?s.base=s.name=c.slice(u,t):(s.name=c.slice(u,h),s.base=c.slice(u,t),s.ext=c.slice(h,t))}return o>0?s.dir=c.slice(0,o-1):a&&(s.dir="/"),s},sep:"/",delimiter:":",win32:null,posix:null},e.posix.win32=e.win32.win32=e.win32,e.posix.posix=e.win32.posix=e.posix,e.normalize=C.platform==="win32"?e.win32.normalize:e.posix.normalize,e.isAbsolute=C.platform==="win32"?e.win32.isAbsolute:e.posix.isAbsolute,e.join=C.platform==="win32"?e.win32.join:e.posix.join,e.resolve=C.platform==="win32"?e.win32.resolve:e.posix.resolve,e.relative=C.platform==="win32"?e.win32.relative:e.posix.relative,e.dirname=C.platform==="win32"?e.win32.dirname:e.posix.dirname,e.basename=C.platform==="win32"?e.win32.basename:e.posix.basename,e.extname=C.platform==="win32"?e.win32.extname:e.posix.extname,e.format=C.platform==="win32"?e.win32.format:e.posix.format,e.parse=C.platform==="win32"?e.win32.parse:e.posix.parse,e.toNamespacedPath=C.platform==="win32"?e.win32.toNamespacedPath:e.posix.toNamespacedPath,e.sep=C.platform==="win32"?e.win32.sep:e.posix.sep,e.delimiter=C.platform==="win32"?e.win32.delimiter:e.posix.delimiter}),define(ne[36],re([0,1]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeProcessEnvironment=e.TerminateResponseCode=e.Source=void 0;var C;(function(k){k[k.stdout=0]="stdout",k[k.stderr=1]="stderr"})(C=e.Source||(e.Source={}));var T;(function(k){k[k.Success=0]="Success",k[k.Unknown=1]="Unknown",k[k.AccessDenied=2]="AccessDenied",k[k.ProcessNotFound=3]="ProcessNotFound"})(T=e.TerminateResponseCode||(e.TerminateResponseCode={}));function b(k,...A){const O=A.reduce((v,S)=>(v[S]=!0,v),{}),g=[/^ELECTRON_.+$/,/^VSCODE_(?!SHELL_LOGIN).+$/,/^SNAP(|_.*)$/,/^GDK_PIXBUF_.+$/,/^CODE_SERVER_.+$/,/^CS_.+$/];Object.keys(k).filter(v=>!O[v]).forEach(v=>{for(let S=0;S<g.length;S++)if(v.search(g[S])!==-1){delete k[v];break}})}e.sanitizeProcessEnvironment=b}),define(ne[37],re([0,1,2]),function(J,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StopWatch=void 0;const T=C.globals.performance&&typeof C.globals.performance.now=="function";class b{constructor(A){this._highResolution=T&&A,this._startTime=this._now(),this._stopTime=-1}static create(A=!0){return new b(A)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?C.globals.performance.now():Date.now()}}e.StopWatch=b}),define(ne[4],re([0,1,8,26,3,35,37]),function(J,e,C,T,b,k,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Relay=e.EventBufferer=e.EventMultiplexer=e.MicrotaskEmitter=e.DebounceEmitter=e.PauseableEmitter=e.AsyncEmitter=e.Emitter=e.setGlobalLeakWarningThreshold=e.Event=void 0;var O;(function(s){s.None=()=>b.Disposable.None;function a(H){return(I,E=null,F)=>{let $=!1,V;return V=H(K=>{if(!$)return V?V.dispose():$=!0,I.call(E,K)},null,F),$&&V.dispose(),V}}s.once=a;function d(H,I){return r((E,F=null,$)=>H(V=>E.call(F,I(V)),null,$))}s.map=d;function h(H,I){return r((E,F=null,$)=>H(V=>{I(V),E.call(F,V)},null,$))}s.forEach=h;function o(H,I){return r((E,F=null,$)=>H(V=>I(V)&&E.call(F,V),null,$))}s.filter=o;function t(H){return H}s.signal=t;function i(...H){return(I,E=null,F)=>(0,b.combinedDisposable)(...H.map($=>$(V=>I.call(E,V),null,F)))}s.any=i;function n(H,I,E){let F=E;return d(H,$=>(F=I(F,$),F))}s.reduce=n;function r(H){let I;const E=new D({onFirstListenerAdd(){I=H(E.fire,E)},onLastListenerRemove(){I.dispose()}});return E.event}function u(H,I,E,F=100,$=!1){let V,K,w=0;return H(f=>{w++,V=E(V,f),$&&!K&&(I(V),V=void 0),clearTimeout(K),K=setTimeout(()=>{const p=V;V=void 0,K=void 0,(!$||w>1)&&I(p),w=0},F)})}s.debouncedListener=u;function P(H,I,E=100,F=!1,$){let V,K,w,f=0;const p=new D({leakWarningThreshold:$,onFirstListenerAdd(){V=H(R=>{f++,K=I(K,R),F&&!w&&(p.fire(K),K=void 0),clearTimeout(w),w=setTimeout(()=>{const W=K;K=void 0,w=void 0,(!F||f>1)&&p.fire(W),f=0},E)})},onLastListenerRemove(){V.dispose()}});return p.event}s.debounce=P;function M(H,I=(E,F)=>E===F){let E=!0,F;return o(H,$=>{const V=E||!I($,F);return E=!1,F=$,V})}s.latch=M;function G(H,I){return[s.filter(H,I),s.filter(H,E=>!I(E))]}s.split=G;function te(H,I=!1,E=[]){let F=E.slice(),$=H(w=>{F?F.push(w):K.fire(w)});const V=()=>{F&&F.forEach(w=>K.fire(w)),F=null},K=new D({onFirstListenerAdd(){$||($=H(w=>K.fire(w)))},onFirstListenerDidAdd(){F&&(I?setTimeout(V):V())},onLastListenerRemove(){$&&$.dispose(),$=null}});return K.event}s.buffer=te;class X{constructor(I){this.event=I}map(I){return new X(d(this.event,I))}forEach(I){return new X(h(this.event,I))}filter(I){return new X(o(this.event,I))}reduce(I,E){return new X(n(this.event,I,E))}latch(){return new X(M(this.event))}debounce(I,E=100,F=!1,$){return new X(P(this.event,I,E,F,$))}on(I,E,F){return this.event(I,E,F)}once(I,E,F){return a(this.event)(I,E,F)}}function oe(H){return new X(H)}s.chain=oe;function le(H,I,E=F=>F){const F=(...w)=>K.fire(E(...w)),$=()=>H.on(I,F),V=()=>H.removeListener(I,F),K=new D({onFirstListenerAdd:$,onLastListenerRemove:V});return K.event}s.fromNodeEventEmitter=le;function j(H,I,E=F=>F){const F=(...w)=>K.fire(E(...w)),$=()=>H.addEventListener(I,F),V=()=>H.removeEventListener(I,F),K=new D({onFirstListenerAdd:$,onLastListenerRemove:V});return K.event}s.fromDOMEventEmitter=j;function Y(H){return new Promise(I=>a(H)(I))}s.toPromise=Y;function ie(H,I){return I(void 0),H(E=>I(E))}s.runAndSubscribe=ie;function ee(H,I){let E=null;function F(V){E?.dispose(),E=new b.DisposableStore,I(V,E)}F(void 0);const $=H(V=>F(V));return(0,b.toDisposable)(()=>{$.dispose(),E?.dispose()})}s.runAndSubscribeWithStore=ee})(O=e.Event||(e.Event={}));class g{constructor(a){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${a}_${g._idPool++}`}start(a){this._stopWatch=new A.StopWatch(!0),this._listenerCount=a}stop(){if(this._stopWatch){const a=this._stopWatch.elapsed();this._elapsedOverall+=a,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${a.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}g._idPool=0;let _=-1;function v(s){const a=_;return _=s,{dispose(){_=a}}}e.setGlobalLeakWarningThreshold=v;class S{constructor(a,d=Math.random().toString(18).slice(2,5)){this.customThreshold=a,this.name=d,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(a){let d=_;if(typeof this.customThreshold=="number"&&(d=this.customThreshold),d<=0||a<d)return;this._stacks||(this._stacks=new Map);const h=new Error().stack.split(` `).slice(3).join(` `),o=this._stacks.get(h)||0;if(this._stacks.set(h,o+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=d*.5;let t,i=0;for(const[n,r]of this._stacks)(!t||i<r)&&(t=n,i=r);console.warn(`[${this.name}] potential listener LEAK detected, having ${a} listeners already. MOST frequent listener (${i}):`),console.warn(t)}return()=>{const t=this._stacks.get(h)||0;this._stacks.set(h,t-1)}}}class D{constructor(a){this._disposed=!1,this._options=a,this._leakageMon=_>0?new S(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=this._options?._profName?new g(this._options._profName):void 0}get event(){return this._event||(this._event=(a,d,h)=>{this._listeners||(this._listeners=new k.LinkedList);const o=this._listeners.isEmpty();o&&this._options&&this._options.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);const t=this._listeners.push(d?[a,d]:a);o&&this._options&&this._options.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options&&this._options.onListenerDidAdd&&this._options.onListenerDidAdd(this,a,d);const i=this._leakageMon?.check(this._listeners.size),n=(0,b.toDisposable)(()=>{i&&i(),this._disposed||(t(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return h instanceof b.DisposableStore?h.add(n):Array.isArray(h)&&h.push(n),n}),this._event}fire(a){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new k.LinkedList);for(let d of this._listeners)this._deliveryQueue.push([d,a]);for(this._perfMon?.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[d,h]=this._deliveryQueue.shift();try{typeof d=="function"?d.call(void 0,h):d[0].call(d[1],h)}catch(o){(0,C.onUnexpectedError)(o)}}this._perfMon?.stop()}}dispose(){this._disposed||(this._disposed=!0,this._listeners?.clear(),this._deliveryQueue?.clear(),this._options?.onLastListenerRemove?.(),this._leakageMon?.dispose())}}e.Emitter=D;class L extends D{async fireAsync(a,d,h){if(!!this._listeners){this._asyncDeliveryQueue||(this._asyncDeliveryQueue=new k.LinkedList);for(const o of this._listeners)this._asyncDeliveryQueue.push([o,a]);for(;this._asyncDeliveryQueue.size>0&&!d.isCancellationRequested;){const[o,t]=this._asyncDeliveryQueue.shift(),i=[],n={...t,token:d,waitUntil:r=>{if(Object.isFrozen(i))throw new Error("waitUntil can NOT be called asynchronous");h&&(r=h(r,typeof o=="function"?o:o[0])),i.push(r)}};try{typeof o=="function"?o.call(void 0,n):o[0].call(o[1],n)}catch(r){(0,C.onUnexpectedError)(r);continue}Object.freeze(i),await Promise.allSettled(i).then(r=>{for(const u of r)u.status==="rejected"&&(0,C.onUnexpectedError)(u.reason)})}}}}e.AsyncEmitter=L;class m extends D{constructor(a){super(a);this._isPaused=0,this._eventQueue=new k.LinkedList,this._mergeFn=a?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused==0)if(this._mergeFn){const a=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(a))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(a){this._listeners&&(this._isPaused!==0?this._eventQueue.push(a):super.fire(a))}}e.PauseableEmitter=m;class l extends m{constructor(a){super(a);this._delay=a.delay??100}fire(a){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(a)}}e.DebounceEmitter=l;class U extends D{constructor(a){super(a);this._queuedEvents=[],this._mergeFn=a?.merge}fire(a){this._queuedEvents.push(a),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(d=>super.fire(d)),this._queuedEvents=[]})}}e.MicrotaskEmitter=U;class N{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new D({onFirstListenerAdd:()=>this.onFirstListenerAdd(),onLastListenerRemove:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(a){const d={event:a,listener:null};this.events.push(d),this.hasListeners&&this.hook(d);const h=()=>{this.hasListeners&&this.unhook(d);const o=this.events.indexOf(d);this.events.splice(o,1)};return(0,b.toDisposable)((0,T.once)(h))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(a=>this.hook(a))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(a=>this.unhook(a))}hook(a){a.listener=a.event(d=>this.emitter.fire(d))}unhook(a){a.listener&&a.listener.dispose(),a.listener=null}dispose(){this.emitter.dispose()}}e.EventMultiplexer=N;class B{constructor(){this.buffers=[]}wrapEvent(a){return(d,h,o)=>a(t=>{const i=this.buffers[this.buffers.length-1];i?i.push(()=>d.call(h,t)):d.call(h,t)},void 0,o)}bufferEvents(a){const d=[];this.buffers.push(d);const h=a();return this.buffers.pop(),d.forEach(o=>o()),h}}e.EventBufferer=B;class c{constructor(){this.listening=!1,this.inputEvent=O.None,this.inputEventListener=b.Disposable.None,this.emitter=new D({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(a){this.inputEvent=a,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=a(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}e.Relay=c}),define(ne[10],re([0,1,4]),function(J,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const T=Object.freeze(function(O,g){const _=setTimeout(O.bind(g),0);return{dispose(){clearTimeout(_)}}});var b;(function(O){function g(_){return _===O.None||_===O.Cancelled||_ instanceof k?!0:!_||typeof _!="object"?!1:typeof _.isCancellationRequested=="boolean"&&typeof _.onCancellationRequested=="function"}O.isCancellationToken=g,O.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:C.Event.None}),O.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:T})})(b=e.CancellationToken||(e.CancellationToken={}));class k{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?T:(this._emitter||(this._emitter=new C.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class A{constructor(g){this._token=void 0,this._parentListener=void 0,this._parentListener=g&&g.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new k),this._token}cancel(){this._token?this._token instanceof k&&this._token.cancel():this._token=b.Cancelled}dispose(g=!1){g&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof k&&this._token.dispose():this._token=b.None}}e.CancellationTokenSource=A}),define(ne[38],re([0,1,10]),function(J,e,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCachedComputed=e.Cache=void 0;class T{constructor(A){this.task=A,this.result=null}get(){if(this.result)return this.result;const A=new C.CancellationTokenSource,O=this.task(A.token);return this.result={promise:O,dispose:()=>{this.result=null,A.cancel(),A.dispose()}},this.result}}e.Cache=T;class b{constructor(A){this.computeFn=A,this.lastCache=void 0,this.lastArgKey=void 0}get(A){const O=JSON.stringify(A);return this.lastArgKey!==O&&(this.lastArgKey=O,this.lastCache=this.computeFn(A)),this.lastCache}}e.LRUCachedComputed=b}),define(ne[39],re([0,1,8,3]),function(J,e,C,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prefixedStream=e.prefixedReadable=e.transform=e.toReadable=e.emptyStream=e.toStream=e.peekStream=e.liste