cloudstudio
Version:
Run VS Code on a remote server.
10 lines (8 loc) • 191 kB
JavaScript
/*!--------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/(function(){var he=["require","exports","vs/base/common/platform","vs/base/common/path","vs/base/common/extpath","vs/base/common/errors","vs/base/common/strings","vs/base/common/uri","vs/base/common/functional","vs/base/common/lifecycle","vs/base/common/process","vs/base/common/event","vs/base/common/cancellation","vs/base/common/resources","vs/base/common/async","fs","os","vs/base/common/arrays","vs/base/common/iterator","vs/base/common/lazy","vs/base/common/linkedList","vs/base/common/types","vs/nls!vs/base/common/platform","vs/nls","vs/nls!vs/server/node/server.cli","vs/base/common/stopwatch","vs/base/common/cache","vs/base/common/map","vs/base/common/normalization","vs/base/common/network","vs/base/node/pfs","vs/base/node/terminalEncoding","child_process","vs/nls!vs/platform/environment/node/argv","vs/platform/environment/node/argv","vs/platform/environment/node/stdin","vs/platform/environment/node/wait","util","minimist","vs/server/node/server.cli","url","http"],de=function(ue){for(var e=[],v=0,R=ue.length;v<R;v++)e[v]=he[ue[v]];return e};define(he[5],de([0,1]),function(ue,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BugIndicatingError=e.ErrorNoTelemetry=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 v{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(g){setTimeout(()=>{throw g.stack?l.isErrorNoTelemetry(g)?new l(g.message+`
`+g.stack):new Error(g.message+`
`+g.stack):g},0)}}addListener(g){return this.listeners.push(g),()=>{this._removeListener(g)}}emit(g){this.listeners.forEach(a=>{a(g)})}_removeListener(g){this.listeners.splice(this.listeners.indexOf(g),1)}setUnexpectedErrorHandler(g){this.unexpectedErrorHandler=g}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(g){this.unexpectedErrorHandler(g),this.emit(g)}onUnexpectedExternalError(g){this.unexpectedErrorHandler(g)}}e.ErrorHandler=v,e.errorHandler=new v;function R(d){e.errorHandler.setUnexpectedErrorHandler(d)}e.setUnexpectedErrorHandler=R;function p(d){S(d)||e.errorHandler.onUnexpectedError(d)}e.onUnexpectedError=p;function M(d){S(d)||e.errorHandler.onUnexpectedExternalError(d)}e.onUnexpectedExternalError=M;function Q(d){if(d instanceof Error){const{name:g,message:a}=d,r=d.stacktrace||d.stack;return{$isError:!0,name:g,message:a,stack:r,noTelemetry:l.isErrorNoTelemetry(d)}}return d}e.transformErrorForSerialization=Q;const F="Canceled";function S(d){return d instanceof k?!0:d instanceof Error&&d.name===F&&d.message===F}e.isCancellationError=S;class k extends Error{constructor(){super(F);this.name=this.message}}e.CancellationError=k;function U(){const d=new Error(F);return d.name=d.message,d}e.canceled=U;function B(d){return d?new Error(`Illegal argument: ${d}`):new Error("Illegal argument")}e.illegalArgument=B;function ee(d){return d?new Error(`Illegal state: ${d}`):new Error("Illegal state")}e.illegalState=ee;function N(d){return d?new Error(`readonly property '${d} cannot be changed'`):new Error("readonly property cannot be changed")}e.readonly=N;function h(d){const g=new Error(`${d} has been disposed`);return g.name="DISPOSED",g}e.disposed=h;function L(d){return d?d.message?d.message:d.stack?d.stack.split(`
`)[0]:String(d):"Error"}e.getErrorMessage=L;class D extends Error{constructor(g){super("NotImplemented");g&&(this.message=g)}}e.NotImplementedError=D;class q extends Error{constructor(g){super("NotSupported");g&&(this.message=g)}}e.NotSupportedError=q;class K extends Error{constructor(){super(...arguments);this.isExpected=!0}}e.ExpectedError=K;class l extends Error{constructor(g){super(g);this.name="CodeExpectedError"}static fromError(g){if(g instanceof l)return g;const a=new l;return a.message=g.message,a.stack=g.stack,a}static isErrorNoTelemetry(g){return g.name==="CodeExpectedError"}}e.ErrorNoTelemetry=l;class c extends Error{constructor(g){super(g||"An unexpected bug occurred.");Object.setPrototypeOf(this,c.prototype);debugger}}e.BugIndicatingError=c}),define(he[17],de([0,1,5]),function(ue,e,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CallbackIterable=e.ArrayQueue=e.findMinBy=e.findLastMaxBy=e.findMaxBy=e.numberComparator=e.tieBreakComparators=e.compareBy=e.CompareResult=e.splice=e.insertInto=e.mapFind=e.getRandomElement=e.asArray=e.mapArrayOrNot=e.pushMany=e.pushToEnd=e.pushToStart=e.shuffle=e.arrayInsert=e.remove=e.insert=e.index=e.range=e.flatten=e.commonPrefixLength=e.lastOrDefault=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.binarySearch2=e.binarySearch=e.removeFastWithoutKeepingOrder=e.equals=e.tail2=e.tail=void 0;function R(f,_=0){return f[f.length-(1+_)]}e.tail=R;function p(f){if(f.length===0)throw new Error("Invalid tail call");return[f.slice(0,f.length-1),f[f.length-1]]}e.tail2=p;function M(f,_,b=(O,j)=>O===j){if(f===_)return!0;if(!f||!_||f.length!==_.length)return!1;for(let O=0,j=f.length;O<j;O++)if(!b(f[O],_[O]))return!1;return!0}e.equals=M;function Q(f,_){const b=f.length-1;_<b&&(f[_]=f[b]),f.pop()}e.removeFastWithoutKeepingOrder=Q;function F(f,_,b){return S(f.length,O=>b(f[O],_))}e.binarySearch=F;function S(f,_){let b=0,O=f-1;for(;b<=O;){const j=(b+O)/2|0,ae=_(j);if(ae<0)b=j+1;else if(ae>0)O=j-1;else return j}return-(b+1)}e.binarySearch2=S;function k(f,_){let b=0,O=f.length;if(O===0)return 0;for(;b<O;){const j=Math.floor((b+O)/2);_(f[j])?O=j:b=j+1}return b}e.findFirstInSorted=k;function U(f,_,b){if(f=f|0,f>=_.length)throw new TypeError("invalid index");const O=_[Math.floor(_.length*Math.random())],j=[],ae=[],oe=[];for(const ve of _){const _e=b(ve,O);_e<0?j.push(ve):_e>0?ae.push(ve):oe.push(ve)}return f<j.length?U(f,j,b):f<j.length+oe.length?oe[0]:U(f-(j.length+oe.length),ae,b)}e.quickSelect=U;function B(f,_){const b=[];let O;for(const j of f.slice(0).sort(_))!O||_(O[0],j)!==0?(O=[j],b.push(O)):O.push(j);return b}e.groupBy=B;function ee(f,_,b){const O=[];function j(ve,_e,pe){if(_e===0&&pe.length===0)return;const be=O[O.length-1];be&&be.start+be.deleteCount===ve?(be.deleteCount+=_e,be.toInsert.push(...pe)):O.push({start:ve,deleteCount:_e,toInsert:pe})}let ae=0,oe=0;for(;;){if(ae===f.length){j(ae,0,_.slice(oe));break}if(oe===_.length){j(ae,f.length-ae,[]);break}const ve=f[ae],_e=_[oe],pe=b(ve,_e);pe===0?(ae+=1,oe+=1):pe<0?(j(ae,1,[]),ae+=1):pe>0&&(j(ae,0,[_e]),oe+=1)}return O}e.sortedDiff=ee;function N(f,_,b){const O=ee(f,_,b),j=[],ae=[];for(const oe of O)j.push(...f.slice(oe.start,oe.start+oe.deleteCount)),ae.push(...oe.toInsert);return{removed:j,added:ae}}e.delta=N;function h(f,_,b){if(b===0)return[];const O=f.slice(0,b).sort(_);return D(f,_,O,b,f.length),O}e.top=h;function L(f,_,b,O,j){return b===0?Promise.resolve([]):new Promise((ae,oe)=>{(async()=>{const ve=f.length,_e=f.slice(0,b).sort(_);for(let pe=b,be=Math.min(b+O,ve);pe<ve;pe=be,be=Math.min(be+O,ve)){if(pe>b&&await new Promise(ke=>setTimeout(ke)),j&&j.isCancellationRequested)throw new v.CancellationError;D(f,_,_e,pe,be)}return _e})().then(ae,oe)})}e.topAsync=L;function D(f,_,b,O,j){for(const ae=b.length;O<j;O++){const oe=f[O];if(_(oe,b[ae-1])<0){b.pop();const ve=k(b,_e=>_(oe,_e)<0);b.splice(ve,0,oe)}}}function q(f){return f.filter(_=>!!_)}e.coalesce=q;function K(f){let _=0;for(let b=0;b<f.length;b++)f[b]&&(f[_]=f[b],_+=1);f.length=_}e.coalesceInPlace=K;function l(f,_,b){f.splice(b,0,f.splice(_,1)[0])}e.move=l;function c(f){return!Array.isArray(f)||f.length===0}e.isFalsyOrEmpty=c;function d(f){return Array.isArray(f)&&f.length>0}e.isNonEmptyArray=d;function g(f,_=b=>b){const b=new Set;return f.filter(O=>{const j=_(O);return b.has(j)?!1:(b.add(j),!0)})}e.distinct=g;function a(f){const _=new Set;return b=>{const O=f(b);return _.has(O)?!1:(_.add(O),!0)}}e.uniqueFilter=a;function r(f,_){const b=t(f,_);if(b!==-1)return f[b]}e.findLast=r;function t(f,_){for(let b=f.length-1;b>=0;b--){const O=f[b];if(_(O))return b}return-1}e.lastIndex=t;function n(f,_){return f.length>0?f[0]:_}e.firstOrDefault=n;function s(f,_){return f.length>0?f[f.length-1]:_}e.lastOrDefault=s;function i(f,_,b=(O,j)=>O===j){let O=0;for(let j=0,ae=Math.min(f.length,_.length);j<ae&&b(f[j],_[j]);j++)O++;return O}e.commonPrefixLength=i;function u(f){return[].concat(...f)}e.flatten=u;function y(f,_){let b=typeof _=="number"?f:0;typeof _=="number"?b=f:(b=0,_=f);const O=[];if(b<=_)for(let j=b;j<_;j++)O.push(j);else for(let j=b;j>_;j--)O.push(j);return O}e.range=y;function A(f,_,b){return f.reduce((O,j)=>(O[_(j)]=b?b(j):j,O),Object.create(null))}e.index=A;function Z(f,_){return f.push(_),()=>$(f,_)}e.insert=Z;function $(f,_){const b=f.indexOf(_);if(b>-1)return f.splice(b,1),_}e.remove=$;function se(f,_,b){const O=f.slice(0,_),j=f.slice(_);return O.concat(b,j)}e.arrayInsert=se;function re(f,_){let b;if(typeof _=="number"){let O=_;b=()=>{const j=Math.sin(O++)*179426549;return j-Math.floor(j)}}else b=Math.random;for(let O=f.length-1;O>0;O-=1){const j=Math.floor(b()*(O+1)),ae=f[O];f[O]=f[j],f[j]=ae}}e.shuffle=re;function fe(f,_){const b=f.indexOf(_);b>-1&&(f.splice(b,1),f.unshift(_))}e.pushToStart=fe;function ye(f,_){const b=f.indexOf(_);b>-1&&(f.splice(b,1),f.push(_))}e.pushToEnd=ye;function P(f,_){for(const b of _)f.push(b)}e.pushMany=P;function V(f,_){return Array.isArray(f)?f.map(_):_(f)}e.mapArrayOrNot=V;function G(f){return Array.isArray(f)?f:[f]}e.asArray=G;function Y(f){return f[Math.floor(Math.random()*f.length)]}e.getRandomElement=Y;function ne(f,_){for(const b of f){const O=_(b);if(O!==void 0)return O}}e.mapFind=ne;function te(f,_,b){const O=ie(f,_),j=f.length,ae=b.length;f.length=j+ae;for(let oe=j-1;oe>=O;oe--)f[oe+ae]=f[oe];for(let oe=0;oe<ae;oe++)f[oe+O]=b[oe]}e.insertInto=te;function ce(f,_,b,O){const j=ie(f,_),ae=f.splice(j,b);return te(f,j,O),ae}e.splice=ce;function ie(f,_){return _<0?Math.max(_+f.length,0):Math.min(_,f.length)}var me;(function(f){function _(j){return j<0}f.isLessThan=_;function b(j){return j>0}f.isGreaterThan=b;function O(j){return j===0}f.isNeitherLessOrGreaterThan=O,f.greaterThan=1,f.lessThan=-1,f.neitherLessOrGreaterThan=0})(me=e.CompareResult||(e.CompareResult={}));function x(f,_){return(b,O)=>_(f(b),f(O))}e.compareBy=x;function z(...f){return(_,b)=>{for(const O of f){const j=O(_,b);if(!me.isNeitherLessOrGreaterThan(j))return j}return me.neitherLessOrGreaterThan}}e.tieBreakComparators=z;const m=(f,_)=>f-_;e.numberComparator=m;function w(f,_){if(f.length===0)return;let b=f[0];for(let O=1;O<f.length;O++){const j=f[O];_(j,b)>0&&(b=j)}return b}e.findMaxBy=w;function C(f,_){if(f.length===0)return;let b=f[0];for(let O=1;O<f.length;O++){const j=f[O];_(j,b)>=0&&(b=j)}return b}e.findLastMaxBy=C;function I(f,_){return w(f,(b,O)=>-_(b,O))}e.findMinBy=I;class W{constructor(_){this.items=_,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(_){let b=this.firstIdx;for(;b<this.items.length&&_(this.items[b]);)b++;const O=b===this.firstIdx?null:this.items.slice(this.firstIdx,b);return this.firstIdx=b,O}takeFromEndWhile(_){let b=this.lastIdx;for(;b>=0&&_(this.items[b]);)b--;const O=b===this.lastIdx?null:this.items.slice(b+1,this.lastIdx+1);return this.lastIdx=b,O}peek(){if(this.length!==0)return this.items[this.firstIdx]}peekLast(){if(this.length!==0)return this.items[this.lastIdx]}dequeue(){const _=this.items[this.firstIdx];return this.firstIdx++,_}removeLast(){const _=this.items[this.lastIdx];return this.lastIdx--,_}takeCount(_){const b=this.items.slice(this.firstIdx,this.firstIdx+_);return this.firstIdx+=_,b}}e.ArrayQueue=W;class J{constructor(_){this.iterate=_}forEach(_){this.iterate(b=>(_(b),!0))}toArray(){const _=[];return this.iterate(b=>(_.push(b),!0)),_}filter(_){return new J(b=>this.iterate(O=>_(O)?b(O):!0))}map(_){return new J(b=>this.iterate(O=>b(_(O))))}some(_){let b=!1;return this.iterate(O=>(b=_(O),!b)),b}findFirst(_){let b;return this.iterate(O=>_(O)?(b=O,!1):!0),b}findLast(_){let b;return this.iterate(O=>(_(O)&&(b=O),!0)),b}findLastMaxBy(_){let b,O=!0;return this.iterate(j=>((O||me.isGreaterThan(_(j,b)))&&(O=!1,b=j),!0)),b}}e.CallbackIterable=J,J.empty=new J(f=>{})}),define(he[8],de([0,1]),function(ue,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function v(R){const p=this;let M=!1,Q;return function(){return M||(M=!0,Q=R.apply(p,arguments)),Q}}e.once=v}),define(he[18],de([0,1]),function(ue,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var v;(function(R){function p(a){return a&&typeof a=="object"&&typeof a[Symbol.iterator]=="function"}R.is=p;const M=Object.freeze([]);function Q(){return M}R.empty=Q;function*F(a){yield a}R.single=F;function S(a){return a||M}R.from=S;function k(a){return!a||a[Symbol.iterator]().next().done===!0}R.isEmpty=k;function U(a){return a[Symbol.iterator]().next().value}R.first=U;function B(a,r){for(const t of a)if(r(t))return!0;return!1}R.some=B;function ee(a,r){for(const t of a)if(r(t))return t}R.find=ee;function*N(a,r){for(const t of a)r(t)&&(yield t)}R.filter=N;function*h(a,r){let t=0;for(const n of a)yield r(n,t++)}R.map=h;function*L(...a){for(const r of a)for(const t of r)yield t}R.concat=L;function*D(a){for(const r of a)for(const t of r)yield t}R.concatNested=D;function q(a,r,t){let n=t;for(const s of a)n=r(n,s);return n}R.reduce=q;function K(a,r){let t=0;for(const n of a)r(n,t++)}R.forEach=K;function*l(a,r,t=a.length){for(r<0&&(r+=a.length),t<0?t+=a.length:t>a.length&&(t=a.length);r<t;r++)yield a[r]}R.slice=l;function c(a,r=Number.POSITIVE_INFINITY){const t=[];if(r===0)return[t,a];const n=a[Symbol.iterator]();for(let s=0;s<r;s++){const i=n.next();if(i.done)return[t,R.empty()];t.push(i.value)}return[t,{[Symbol.iterator](){return n}}]}R.consume=c;function d(a){return c(a)[0]}R.collect=d;function g(a,r,t=(n,s)=>n===s){const n=a[Symbol.iterator](),s=r[Symbol.iterator]();for(;;){const i=n.next(),u=s.next();if(i.done!==u.done)return!1;if(i.done)return!0;if(!t(i.value,u.value))return!1}}R.equals=g})(v=e.Iterable||(e.Iterable={}))}),define(he[19],de([0,1]),function(ue,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lazy=void 0;class v{constructor(p){this.executor=p,this._didRun=!1}hasValue(){return this._didRun}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(p){this._error=p}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}map(p){return new v(()=>p(this.getValue()))}}e.Lazy=v}),define(he[9],de([0,1,8,18]),function(ue,e,v,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.disposeOnReturn=e.ImmortalReference=e.AsyncReferenceCollection=e.ReferenceCollection=e.SafeDisposable=e.RefCountedDisposable=e.MutableDisposable=e.Disposable=e.DisposableStore=e.toDisposable=e.combinedDisposable=e.disposeIfDisposable=e.dispose=e.isDisposable=e.MultiDisposeError=e.markAsSingleton=e.setDisposableTracker=void 0;const p=!1;let M=null;function Q(s){M=s}if(e.setDisposableTracker=Q,p){const s="__is_disposable_tracked__";Q(new class{trackDisposable(i){const u=new Error("Potentially leaked disposable").stack;setTimeout(()=>{i[s]||console.log(u)},3e3)}setParent(i,u){if(i&&i!==l.None)try{i[s]=!0}catch{}}markAsDisposed(i){if(i&&i!==l.None)try{i[s]=!0}catch{}}markAsSingleton(i){}})}function F(s){return M?.trackDisposable(s),s}function S(s){M?.markAsDisposed(s)}function k(s,i){M?.setParent(s,i)}function U(s,i){if(!!M)for(const u of s)M.setParent(u,i)}function B(s){return M?.markAsSingleton(s),s}e.markAsSingleton=B;class ee extends Error{constructor(i){super(`Encountered errors while disposing of store. Errors: [${i.join(", ")}]`);this.errors=i}}e.MultiDisposeError=ee;function N(s){return typeof s.dispose=="function"&&s.dispose.length===0}e.isDisposable=N;function h(s){if(R.Iterable.is(s)){const i=[];for(const u of s)if(u)try{u.dispose()}catch(y){i.push(y)}if(i.length===1)throw i[0];if(i.length>1)throw new ee(i);return Array.isArray(s)?[]:s}else if(s)return s.dispose(),s}e.dispose=h;function L(s){for(const i of s)N(i)&&i.dispose();return[]}e.disposeIfDisposable=L;function D(...s){const i=q(()=>h(s));return U(s,i),i}e.combinedDisposable=D;function q(s){const i=F({dispose:(0,v.once)(()=>{S(i),s()})});return i}e.toDisposable=q;class K{constructor(){this._toDispose=new Set,this._isDisposed=!1,F(this)}dispose(){this._isDisposed||(S(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{h(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 k(i,this),this._isDisposed?K.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=K,K.DISABLE_DISPOSED_WARNING=!1;class l{constructor(){this._store=new K,F(this),k(this._store,this)}dispose(){S(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=l,l.None=Object.freeze({dispose(){}});class c{constructor(){this._isDisposed=!1,F(this)}get value(){return this._isDisposed?void 0:this._value}set value(i){this._isDisposed||i===this._value||(this._value?.dispose(),i&&k(i,this),this._value=i)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,S(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){const i=this._value;return this._value=void 0,i&&k(i,null),i}}e.MutableDisposable=c;class d{constructor(i){this._disposable=i,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter==0&&this._disposable.dispose(),this}}e.RefCountedDisposable=d;class g{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,F(this)}set(i){let u=i;return this.unset=()=>u=void 0,this.isset=()=>u!==void 0,this.dispose=()=>{u&&(u(),u=void 0,S(this))},this}}e.SafeDisposable=g;class a{constructor(){this.references=new Map}acquire(i,...u){let y=this.references.get(i);y||(y={counter:0,object:this.createReferencedObject(i,...u)},this.references.set(i,y));const{object:A}=y,Z=(0,v.once)(()=>{--y.counter==0&&(this.destroyReferencedObject(i,y.object),this.references.delete(i))});return y.counter++,{object:A,dispose:Z}}}e.ReferenceCollection=a;class r{constructor(i){this.referenceCollection=i}async acquire(i,...u){const y=this.referenceCollection.acquire(i,...u);try{return{object:await y.object,dispose:()=>y.dispose()}}catch(A){throw y.dispose(),A}}}e.AsyncReferenceCollection=r;class t{constructor(i){this.object=i}dispose(){}}e.ImmortalReference=t;function n(s){const i=new K;try{s(i)}finally{i.dispose()}}e.disposeOnReturn=n}),define(he[20],de([0,1]),function(ue,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=void 0;class v{constructor(M){this.element=M,this.next=v.Undefined,this.prev=v.Undefined}}v.Undefined=new v(void 0);class R{constructor(){this._first=v.Undefined,this._last=v.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===v.Undefined}clear(){let M=this._first;for(;M!==v.Undefined;){const Q=M.next;M.prev=v.Undefined,M.next=v.Undefined,M=Q}this._first=v.Undefined,this._last=v.Undefined,this._size=0}unshift(M){return this._insert(M,!1)}push(M){return this._insert(M,!0)}_insert(M,Q){const F=new v(M);if(this._first===v.Undefined)this._first=F,this._last=F;else if(Q){const k=this._last;this._last=F,F.prev=k,k.next=F}else{const k=this._first;this._first=F,F.next=k,k.prev=F}this._size+=1;let S=!1;return()=>{S||(S=!0,this._remove(F))}}shift(){if(this._first!==v.Undefined){const M=this._first.element;return this._remove(this._first),M}}pop(){if(this._last!==v.Undefined){const M=this._last.element;return this._remove(this._last),M}}_remove(M){if(M.prev!==v.Undefined&&M.next!==v.Undefined){const Q=M.prev;Q.next=M.next,M.next.prev=Q}else M.prev===v.Undefined&&M.next===v.Undefined?(this._first=v.Undefined,this._last=v.Undefined):M.next===v.Undefined?(this._last=this._last.prev,this._last.next=v.Undefined):M.prev===v.Undefined&&(this._first=this._first.next,this._first.prev=v.Undefined);this._size-=1}*[Symbol.iterator](){let M=this._first;for(;M!==v.Undefined;)yield M.element,M=M.next}}e.LinkedList=R}),define(he[21],de([0,1]),function(ue,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.withUndefinedAsNull=e.withNullAsUndefined=e.validateConstraint=e.validateConstraints=e.areFunctions=e.isFunction=e.isEmptyObject=e.assertAllDefined=e.assertIsDefined=e.assertType=e.isUndefinedOrNull=e.isDefined=e.isUndefined=e.isBoolean=e.isIterable=e.isNumber=e.isTypedArray=e.isObject=e.isStringArray=e.isString=void 0;function v(a){return typeof a=="string"}e.isString=v;function R(a){return Array.isArray(a)&&a.every(r=>v(r))}e.isStringArray=R;function p(a){return typeof a=="object"&&a!==null&&!Array.isArray(a)&&!(a instanceof RegExp)&&!(a instanceof Date)}e.isObject=p;function M(a){const r=Object.getPrototypeOf(Uint8Array);return typeof a=="object"&&a instanceof r}e.isTypedArray=M;function Q(a){return typeof a=="number"&&!isNaN(a)}e.isNumber=Q;function F(a){return!!a&&typeof a[Symbol.iterator]=="function"}e.isIterable=F;function S(a){return a===!0||a===!1}e.isBoolean=S;function k(a){return typeof a=="undefined"}e.isUndefined=k;function U(a){return!B(a)}e.isDefined=U;function B(a){return k(a)||a===null}e.isUndefinedOrNull=B;function ee(a,r){if(!a)throw new Error(r?`Unexpected type, expected '${r}'`:"Unexpected type")}e.assertType=ee;function N(a){if(B(a))throw new Error("Assertion Failed: argument is undefined or null");return a}e.assertIsDefined=N;function h(...a){const r=[];for(let t=0;t<a.length;t++){const n=a[t];if(B(n))throw new Error(`Assertion Failed: argument at index ${t} is undefined or null`);r.push(n)}return r}e.assertAllDefined=h;const L=Object.prototype.hasOwnProperty;function D(a){if(!p(a))return!1;for(const r in a)if(L.call(a,r))return!1;return!0}e.isEmptyObject=D;function q(a){return typeof a=="function"}e.isFunction=q;function K(...a){return a.length>0&&a.every(q)}e.areFunctions=K;function l(a,r){const t=Math.min(a.length,r.length);for(let n=0;n<t;n++)c(a[n],r[n])}e.validateConstraints=l;function c(a,r){if(v(r)){if(typeof a!==r)throw new Error(`argument does not match constraint: typeof ${r}`)}else if(q(r)){try{if(a instanceof r)return}catch{}if(!B(a)&&a.constructor===r||r.length===1&&r.call(void 0,a)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}e.validateConstraint=c;function d(a){return a===null?void 0:a}e.withNullAsUndefined=d;function g(a){return typeof a=="undefined"?null:a}e.withUndefinedAsNull=g}),define(he[22],de([23,24]),function(ue,e){return ue.create("vs/base/common/platform",e)}),define(he[2],de([0,1,22]),function(ue,e,v){"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.setTimeout0IsFaster=e.translationsConfigFile=e.locale=e.Language=e.language=e.userAgent=e.platform=e.isCI=e.isIOS=e.isWebWorker=e.isWeb=e.isElectron=e.isNative=e.isLinuxSnap=e.isLinux=e.isMacintosh=e.isWindows=e.PlatformToString=e.Platform=e.globals=void 0;const R="en";let p=!1,M=!1,Q=!1,F=!1,S=!1,k=!1,U=!1,B=!1,ee=!1,N,h=R,L,D;e.globals=typeof self=="object"?self:typeof global=="object"?global:{};let q;typeof e.globals.vscode!="undefined"&&typeof e.globals.vscode.process!="undefined"?q=e.globals.vscode.process:typeof process!="undefined"&&(q=process);const K=typeof q?.versions?.electron=="string",l=K&&q?.type==="renderer";if(typeof navigator=="object"&&!l){D=navigator.userAgent,p=D.indexOf("Windows")>=0,M=D.indexOf("Macintosh")>=0,B=(D.indexOf("Macintosh")>=0||D.indexOf("iPad")>=0||D.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Q=D.indexOf("Linux")>=0,k=!0,N=v.getConfiguredDefaultLocale(v.localize(0,null))||R,h=N;const u=typeof document!="undefined"&&document.getElementById("vscode-remote-nls-configuration"),y=u&&u.getAttribute("data-settings");if(y)try{const A=JSON.parse(y);N=A.locale,L=A._translationsConfigFile,h=A.availableLanguages["*"]||R}catch{}}else if(typeof q=="object"){p=q.platform==="win32",M=q.platform==="darwin",Q=q.platform==="linux",F=Q&&!!q.env.SNAP&&!!q.env.SNAP_REVISION,U=K,ee=!!q.env.CI||!!q.env.BUILD_ARTIFACTSTAGINGDIRECTORY,N=R,h=R;const i=q.env.VSCODE_NLS_CONFIG;if(i)try{const u=JSON.parse(i),y=u.availableLanguages["*"];N=u.locale,h=y||R,L=u._translationsConfigFile}catch{}S=!0}else console.error("Unable to resolve platform.");var c;(function(i){i[i.Web=0]="Web",i[i.Mac=1]="Mac",i[i.Linux=2]="Linux",i[i.Windows=3]="Windows"})(c=e.Platform||(e.Platform={}));function d(i){switch(i){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}e.PlatformToString=d;let g=0;M?g=1:p?g=3:Q&&(g=2),e.isWindows=p,e.isMacintosh=M,e.isLinux=Q,e.isLinuxSnap=F,e.isNative=S,e.isElectron=U,e.isWeb=k,e.isWebWorker=k&&typeof e.globals.importScripts=="function",e.isIOS=B,e.isCI=ee,e.platform=g,e.userAgent=D,e.language=h;var a;(function(i){function u(){return e.language}i.value=u;function y(){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=y;function A(){return e.language==="en"}i.isDefault=A})(a=e.Language||(e.Language={})),e.locale=N,e.translationsConfigFile=L,e.setTimeout0IsFaster=typeof e.globals.postMessage=="function"&&!e.globals.importScripts,e.setTimeout0=(()=>{if(e.setTimeout0IsFaster){const i=[];e.globals.addEventListener("message",y=>{if(y.data&&y.data.vscodeScheduleAsyncWork)for(let A=0,Z=i.length;A<Z;A++){const $=i[A];if($.id===y.data.vscodeScheduleAsyncWork){i.splice(A,1),$.callback();return}}});let u=0;return y=>{const A=++u;i.push({id:A,callback:y}),e.globals.postMessage({vscodeScheduleAsyncWork:A},"*")}}return i=>setTimeout(i)})();var r;(function(i){i[i.Windows=1]="Windows",i[i.Macintosh=2]="Macintosh",i[i.Linux=3]="Linux"})(r=e.OperatingSystem||(e.OperatingSystem={})),e.OS=M||B?2:p?1:3;let t=!0,n=!1;function s(){if(!n){n=!0;const i=new Uint8Array(2);i[0]=1,i[1]=2,t=new Uint16Array(i.buffer)[0]===(2<<8)+1}return t}e.isLittleEndian=s,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(he[10],de([0,1,2]),function(ue,e,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arch=e.platform=e.env=e.cwd=void 0;let R;if(typeof v.globals.vscode!="undefined"&&typeof v.globals.vscode.process!="undefined"){const p=v.globals.vscode.process;R={get platform(){return p.platform},get arch(){return p.arch},get env(){return p.env},cwd(){return p.cwd()}}}else typeof process!="undefined"?R={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:R={get platform(){return v.isWindows?"win32":v.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};e.cwd=R.cwd,e.env=R.env,e.platform=R.platform,e.arch=R.arch}),define(he[3],de([0,1,10]),function(ue,e,v){"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 R=65,p=97,M=90,Q=122,F=46,S=47,k=92,U=58,B=63;class ee extends Error{constructor(c,d,g){let a;typeof d=="string"&&d.indexOf("not ")===0?(a="must not be",d=d.replace(/^not /,"")):a="must be";const r=c.indexOf(".")!==-1?"property":"argument";let t=`The "${c}" ${r} ${a} of type ${d}`;t+=`. Received type ${typeof g}`;super(t);this.code="ERR_INVALID_ARG_TYPE"}}function N(l,c){if(typeof l!="string")throw new ee(c,"string",l)}function h(l){return l===S||l===k}function L(l){return l===S}function D(l){return l>=R&&l<=M||l>=p&&l<=Q}function q(l,c,d,g){let a="",r=0,t=-1,n=0,s=0;for(let i=0;i<=l.length;++i){if(i<l.length)s=l.charCodeAt(i);else{if(g(s))break;s=S}if(g(s)){if(!(t===i-1||n===1))if(n===2){if(a.length<2||r!==2||a.charCodeAt(a.length-1)!==F||a.charCodeAt(a.length-2)!==F){if(a.length>2){const u=a.lastIndexOf(d);u===-1?(a="",r=0):(a=a.slice(0,u),r=a.length-1-a.lastIndexOf(d)),t=i,n=0;continue}else if(a.length!==0){a="",r=0,t=i,n=0;continue}}c&&(a+=a.length>0?`${d}..`:"..",r=2)}else a.length>0?a+=`${d}${l.slice(t+1,i)}`:a=l.slice(t+1,i),r=i-t-1;t=i,n=0}else s===F&&n!==-1?++n:n=-1}return a}function K(l,c){if(c===null||typeof c!="object")throw new ee("pathObject","Object",c);const d=c.dir||c.root,g=c.base||`${c.name||""}${c.ext||""}`;return d?d===c.root?`${d}${g}`:`${d}${l}${g}`:g}e.win32={resolve(...l){let c="",d="",g=!1;for(let a=l.length-1;a>=-1;a--){let r;if(a>=0){if(r=l[a],N(r,"path"),r.length===0)continue}else c.length===0?r=v.cwd():(r=v.env[`=${c}`]||v.cwd(),(r===void 0||r.slice(0,2).toLowerCase()!==c.toLowerCase()&&r.charCodeAt(2)===k)&&(r=`${c}\\`));const t=r.length;let n=0,s="",i=!1;const u=r.charCodeAt(0);if(t===1)h(u)&&(n=1,i=!0);else if(h(u))if(i=!0,h(r.charCodeAt(1))){let y=2,A=y;for(;y<t&&!h(r.charCodeAt(y));)y++;if(y<t&&y!==A){const Z=r.slice(A,y);for(A=y;y<t&&h(r.charCodeAt(y));)y++;if(y<t&&y!==A){for(A=y;y<t&&!h(r.charCodeAt(y));)y++;(y===t||y!==A)&&(s=`\\\\${Z}\\${r.slice(A,y)}`,n=y)}}}else n=1;else D(u)&&r.charCodeAt(1)===U&&(s=r.slice(0,2),n=2,t>2&&h(r.charCodeAt(2))&&(i=!0,n=3));if(s.length>0)if(c.length>0){if(s.toLowerCase()!==c.toLowerCase())continue}else c=s;if(g){if(c.length>0)break}else if(d=`${r.slice(n)}\\${d}`,g=i,i&&c.length>0)break}return d=q(d,!g,"\\",h),g?`${c}\\${d}`:`${c}${d}`||"."},normalize(l){N(l,"path");const c=l.length;if(c===0)return".";let d=0,g,a=!1;const r=l.charCodeAt(0);if(c===1)return L(r)?"\\":l;if(h(r))if(a=!0,h(l.charCodeAt(1))){let n=2,s=n;for(;n<c&&!h(l.charCodeAt(n));)n++;if(n<c&&n!==s){const i=l.slice(s,n);for(s=n;n<c&&h(l.charCodeAt(n));)n++;if(n<c&&n!==s){for(s=n;n<c&&!h(l.charCodeAt(n));)n++;if(n===c)return`\\\\${i}\\${l.slice(s)}\\`;n!==s&&(g=`\\\\${i}\\${l.slice(s,n)}`,d=n)}}}else d=1;else D(r)&&l.charCodeAt(1)===U&&(g=l.slice(0,2),d=2,c>2&&h(l.charCodeAt(2))&&(a=!0,d=3));let t=d<c?q(l.slice(d),!a,"\\",h):"";return t.length===0&&!a&&(t="."),t.length>0&&h(l.charCodeAt(c-1))&&(t+="\\"),g===void 0?a?`\\${t}`:t:a?`${g}\\${t}`:`${g}${t}`},isAbsolute(l){N(l,"path");const c=l.length;if(c===0)return!1;const d=l.charCodeAt(0);return h(d)||c>2&&D(d)&&l.charCodeAt(1)===U&&h(l.charCodeAt(2))},join(...l){if(l.length===0)return".";let c,d;for(let r=0;r<l.length;++r){const t=l[r];N(t,"path"),t.length>0&&(c===void 0?c=d=t:c+=`\\${t}`)}if(c===void 0)return".";let g=!0,a=0;if(typeof d=="string"&&h(d.charCodeAt(0))){++a;const r=d.length;r>1&&h(d.charCodeAt(1))&&(++a,r>2&&(h(d.charCodeAt(2))?++a:g=!1))}if(g){for(;a<c.length&&h(c.charCodeAt(a));)a++;a>=2&&(c=`\\${c.slice(a)}`)}return e.win32.normalize(c)},relative(l,c){if(N(l,"from"),N(c,"to"),l===c)return"";const d=e.win32.resolve(l),g=e.win32.resolve(c);if(d===g||(l=d.toLowerCase(),c=g.toLowerCase(),l===c))return"";let a=0;for(;a<l.length&&l.charCodeAt(a)===k;)a++;let r=l.length;for(;r-1>a&&l.charCodeAt(r-1)===k;)r--;const t=r-a;let n=0;for(;n<c.length&&c.charCodeAt(n)===k;)n++;let s=c.length;for(;s-1>n&&c.charCodeAt(s-1)===k;)s--;const i=s-n,u=t<i?t:i;let y=-1,A=0;for(;A<u;A++){const $=l.charCodeAt(a+A);if($!==c.charCodeAt(n+A))break;$===k&&(y=A)}if(A!==u){if(y===-1)return g}else{if(i>u){if(c.charCodeAt(n+A)===k)return g.slice(n+A+1);if(A===2)return g.slice(n+A)}t>u&&(l.charCodeAt(a+A)===k?y=A:A===2&&(y=3)),y===-1&&(y=0)}let Z="";for(A=a+y+1;A<=r;++A)(A===r||l.charCodeAt(A)===k)&&(Z+=Z.length===0?"..":"\\..");return n+=y,Z.length>0?`${Z}${g.slice(n,s)}`:(g.charCodeAt(n)===k&&++n,g.slice(n,s))},toNamespacedPath(l){if(typeof l!="string")return l;if(l.length===0)return"";const c=e.win32.resolve(l);if(c.length<=2)return l;if(c.charCodeAt(0)===k){if(c.charCodeAt(1)===k){const d=c.charCodeAt(2);if(d!==B&&d!==F)return`\\\\?\\UNC\\${c.slice(2)}`}}else if(D(c.charCodeAt(0))&&c.charCodeAt(1)===U&&c.charCodeAt(2)===k)return`\\\\?\\${c}`;return l},dirname(l){N(l,"path");const c=l.length;if(c===0)return".";let d=-1,g=0;const a=l.charCodeAt(0);if(c===1)return h(a)?l:".";if(h(a)){if(d=g=1,h(l.charCodeAt(1))){let n=2,s=n;for(;n<c&&!h(l.charCodeAt(n));)n++;if(n<c&&n!==s){for(s=n;n<c&&h(l.charCodeAt(n));)n++;if(n<c&&n!==s){for(s=n;n<c&&!h(l.charCodeAt(n));)n++;if(n===c)return l;n!==s&&(d=g=n+1)}}}}else D(a)&&l.charCodeAt(1)===U&&(d=c>2&&h(l.charCodeAt(2))?3:2,g=d);let r=-1,t=!0;for(let n=c-1;n>=g;--n)if(h(l.charCodeAt(n))){if(!t){r=n;break}}else t=!1;if(r===-1){if(d===-1)return".";r=d}return l.slice(0,r)},basename(l,c){c!==void 0&&N(c,"ext"),N(l,"path");let d=0,g=-1,a=!0,r;if(l.length>=2&&D(l.charCodeAt(0))&&l.charCodeAt(1)===U&&(d=2),c!==void 0&&c.length>0&&c.length<=l.length){if(c===l)return"";let t=c.length-1,n=-1;for(r=l.length-1;r>=d;--r){const s=l.charCodeAt(r);if(h(s)){if(!a){d=r+1;break}}else n===-1&&(a=!1,n=r+1),t>=0&&(s===c.charCodeAt(t)?--t==-1&&(g=r):(t=-1,g=n))}return d===g?g=n:g===-1&&(g=l.length),l.slice(d,g)}for(r=l.length-1;r>=d;--r)if(h(l.charCodeAt(r))){if(!a){d=r+1;break}}else g===-1&&(a=!1,g=r+1);return g===-1?"":l.slice(d,g)},extname(l){N(l,"path");let c=0,d=-1,g=0,a=-1,r=!0,t=0;l.length>=2&&l.charCodeAt(1)===U&&D(l.charCodeAt(0))&&(c=g=2);for(let n=l.length-1;n>=c;--n){const s=l.charCodeAt(n);if(h(s)){if(!r){g=n+1;break}continue}a===-1&&(r=!1,a=n+1),s===F?d===-1?d=n:t!==1&&(t=1):d!==-1&&(t=-1)}return d===-1||a===-1||t===0||t===1&&d===a-1&&d===g+1?"":l.slice(d,a)},format:K.bind(null,"\\"),parse(l){N(l,"path");const c={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return c;const d=l.length;let g=0,a=l.charCodeAt(0);if(d===1)return h(a)?(c.root=c.dir=l,c):(c.base=c.name=l,c);if(h(a)){if(g=1,h(l.charCodeAt(1))){let y=2,A=y;for(;y<d&&!h(l.charCodeAt(y));)y++;if(y<d&&y!==A){for(A=y;y<d&&h(l.charCodeAt(y));)y++;if(y<d&&y!==A){for(A=y;y<d&&!h(l.charCodeAt(y));)y++;y===d?g=y:y!==A&&(g=y+1)}}}}else if(D(a)&&l.charCodeAt(1)===U){if(d<=2)return c.root=c.dir=l,c;if(g=2,h(l.charCodeAt(2))){if(d===3)return c.root=c.dir=l,c;g=3}}g>0&&(c.root=l.slice(0,g));let r=-1,t=g,n=-1,s=!0,i=l.length-1,u=0;for(;i>=g;--i){if(a=l.charCodeAt(i),h(a)){if(!s){t=i+1;break}continue}n===-1&&(s=!1,n=i+1),a===F?r===-1?r=i:u!==1&&(u=1):r!==-1&&(u=-1)}return n!==-1&&(r===-1||u===0||u===1&&r===n-1&&r===t+1?c.base=c.name=l.slice(t,n):(c.name=l.slice(t,r),c.base=l.slice(t,n),c.ext=l.slice(r,n))),t>0&&t!==g?c.dir=l.slice(0,t-1):c.dir=c.root,c},sep:"\\",delimiter:";",win32:null,posix:null},e.posix={resolve(...l){let c="",d=!1;for(let g=l.length-1;g>=-1&&!d;g--){const a=g>=0?l[g]:v.cwd();N(a,"path"),a.length!==0&&(c=`${a}/${c}`,d=a.charCodeAt(0)===S)}return c=q(c,!d,"/",L),d?`/${c}`:c.length>0?c:"."},normalize(l){if(N(l,"path"),l.length===0)return".";const c=l.charCodeAt(0)===S,d=l.charCodeAt(l.length-1)===S;return l=q(l,!c,"/",L),l.length===0?c?"/":d?"./":".":(d&&(l+="/"),c?`/${l}`:l)},isAbsolute(l){return N(l,"path"),l.length>0&&l.charCodeAt(0)===S},join(...l){if(l.length===0)return".";let c;for(let d=0;d<l.length;++d){const g=l[d];N(g,"path"),g.length>0&&(c===void 0?c=g:c+=`/${g}`)}return c===void 0?".":e.posix.normalize(c)},relative(l,c){if(N(l,"from"),N(c,"to"),l===c||(l=e.posix.resolve(l),c=e.posix.resolve(c),l===c))return"";const d=1,g=l.length,a=g-d,r=1,t=c.length-r,n=a<t?a:t;let s=-1,i=0;for(;i<n;i++){const y=l.charCodeAt(d+i);if(y!==c.charCodeAt(r+i))break;y===S&&(s=i)}if(i===n)if(t>n){if(c.charCodeAt(r+i)===S)return c.slice(r+i+1);if(i===0)return c.slice(r+i)}else a>n&&(l.charCodeAt(d+i)===S?s=i:i===0&&(s=0));let u="";for(i=d+s+1;i<=g;++i)(i===g||l.charCodeAt(i)===S)&&(u+=u.length===0?"..":"/..");return`${u}${c.slice(r+s)}`},toNamespacedPath(l){return l},dirname(l){if(N(l,"path"),l.length===0)return".";const c=l.charCodeAt(0)===S;let d=-1,g=!0;for(let a=l.length-1;a>=1;--a)if(l.charCodeAt(a)===S){if(!g){d=a;break}}else g=!1;return d===-1?c?"/":".":c&&d===1?"//":l.slice(0,d)},basename(l,c){c!==void 0&&N(c,"ext"),N(l,"path");let d=0,g=-1,a=!0,r;if(c!==void 0&&c.length>0&&c.length<=l.length){if(c===l)return"";let t=c.length-1,n=-1;for(r=l.length-1;r>=0;--r){const s=l.charCodeAt(r);if(s===S){if(!a){d=r+1;break}}else n===-1&&(a=!1,n=r+1),t>=0&&(s===c.charCodeAt(t)?--t==-1&&(g=r):(t=-1,g=n))}return d===g?g=n:g===-1&&(g=l.length),l.slice(d,g)}for(r=l.length-1;r>=0;--r)if(l.charCodeAt(r)===S){if(!a){d=r+1;break}}else g===-1&&(a=!1,g=r+1);return g===-1?"":l.slice(d,g)},extname(l){N(l,"path");let c=-1,d=0,g=-1,a=!0,r=0;for(let t=l.length-1;t>=0;--t){const n=l.charCodeAt(t);if(n===S){if(!a){d=t+1;break}continue}g===-1&&(a=!1,g=t+1),n===F?c===-1?c=t:r!==1&&(r=1):c!==-1&&(r=-1)}return c===-1||g===-1||r===0||r===1&&c===g-1&&c===d+1?"":l.slice(c,g)},format:K.bind(null,"/"),parse(l){N(l,"path");const c={root:"",dir:"",base:"",ext:"",name:""};if(l.length===0)return c;const d=l.charCodeAt(0)===S;let g;d?(c.root="/",g=1):g=0;let a=-1,r=0,t=-1,n=!0,s=l.length-1,i=0;for(;s>=g;--s){const u=l.charCodeAt(s);if(u===S){if(!n){r=s+1;break}continue}t===-1&&(n=!1,t=s+1),u===F?a===-1?a=s:i!==1&&(i=1):a!==-1&&(i=-1)}if(t!==-1){const u=r===0&&d?1:r;a===-1||i===0||i===1&&a===t-1&&a===r+1?c.base=c.name=l.slice(u,t):(c.name=l.slice(u,a),c.base=l.slice(u,t),c.ext=l.slice(a,t))}return r>0?c.dir=l.slice(0,r-1):d&&(c.dir="/"),c},sep:"/",delimiter:":",win32:null,posix:null},e.posix.win32=e.win32.win32=e.win32,e.posix.posix=e.win32.posix=e.posix,e.normalize=v.platform==="win32"?e.win32.normalize:e.posix.normalize,e.isAbsolute=v.platform==="win32"?e.win32.isAbsolute:e.posix.isAbsolute,e.join=v.platform==="win32"?e.win32.join:e.posix.join,e.resolve=v.platform==="win32"?e.win32.resolve:e.posix.resolve,e.relative=v.platform==="win32"?e.win32.relative:e.posix.relative,e.dirname=v.platform==="win32"?e.win32.dirname:e.posix.dirname,e.basename=v.platform==="win32"?e.win32.basename:e.posix.basename,e.extname=v.platform==="win32"?e.win32.extname:e.posix.extname,e.format=v.platform==="win32"?e.win32.format:e.posix.format,e.parse=v.platform==="win32"?e.win32.parse:e.posix.parse,e.toNamespacedPath=v.platform==="win32"?e.win32.toNamespacedPath:e.posix.toNamespacedPath,e.sep=v.platform==="win32"?e.win32.sep:e.posix.sep,e.delimiter=v.platform==="win32"?e.win32.delimiter:e.posix.delimiter}),define(he[25],de([0,1,2]),function(ue,e,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StopWatch=void 0;const R=v.globals.performance&&typeof v.globals.performance.now=="function";class p{constructor(Q){this._highResolution=R&&Q,this._startTime=this._now(),this._stopTime=-1}static create(Q=!0){return new p(Q)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?v.globals.performance.now():Date.now()}}e.StopWatch=p}),define(he[11],de([0,1,5,8,9,20,25]),function(ue,e,v,R,p,M,Q){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Relay=e.EventBufferer=e.EventMultiplexer=e.MicrotaskEmitter=e.DebounceEmitter=e.PauseableEmitter=e.AsyncEmitter=e.EventDeliveryQueue=e.Emitter=e.setGlobalLeakWarningThreshold=e.Event=void 0;const F=!1,S=!1;var k;(function(s){s.None=()=>p.Disposable.None;function i(w){if(S){const{onListenerDidAdd:C}=w,I=h.create();let W=0;w.onListenerDidAdd=()=>{++W==2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),I.print()),C?.()}}}function u(w){return(C,I=null,W)=>{let J=!1,f;return f=w(_=>{if(!J)return f?f.dispose():J=!0,C.call(I,_)},null,W),J&&f.dispose(),f}}s.once=u;function y(w,C,I){return fe((W,J=null,f)=>w(_=>W.call(J,C(_)),null,f),I)}s.map=y;function A(w,C,I){return fe((W,J=null,f)=>w(_=>{C(_),W.call(J,_)},null,f),I)}s.forEach=A;function Z(w,C,I){return fe((W,J=null,f)=>w(_=>C(_)&&W.call(J,_),null,f),I)}s.filter=Z;function $(w){return w}s.signal=$;function se(...w){return(C,I=null,W)=>(0,p.combinedDisposable)(...w.map(J=>J(f=>C.call(I,f),null,W)))}s.any=se;function re(w,C,I,W){let J=I;return y(w,f=>(J=C(J,f),J),W)}s.reduce=re;function fe(w,C){let I;const W={onFirstListenerAdd(){I=w(J.fire,J)},onLastListenerRemove(){I?.dispose()}};C||i(W);const J=new D(W);return C?.add(J),J.event}function ye(w,C,I=100,W=!1,J,f){let _,b,O,j=0;const ae={leakWarningThreshold:J,onFirstListenerAdd(){_=w(ve=>{j++,b=C(b,ve),W&&!O&&(oe.fire(b),b=void 0),clearTimeout(O),O=setTimeout(()=>{const _e=b;b=void 0,O=void 0,(!W||j>1)&&oe.fire(_e),j=0},I)})},onLastListenerRemove(){_.dispose()}};f||i(ae);const oe=new D(ae);return f?.add(oe),oe.event}s.debounce=ye;function P(w,C=(W,J)=>W===J,I){let W=!0,J;return Z(w,f=>{const _=W||!C(f,J);return W=!1,J=f,_},I)}s.latch=P;function V(w,C,I){return[s.filter(w,C,I),s.filter(w,W=>!C(W),I)]}s.split=V;function G(w,C=!1,I=[]){let W=I.slice(),J=w(b=>{W?W.push(b):_.fire(b)});const f=()=>{W?.forEach(b=>_.fire(b)),W=null},_=new D({onFirstListenerAdd(){J||(J=w(b=>_.fire(b)))},onFirstListenerDidAdd(){W&&(C?setTimeout(f):f())},onLastListenerRemove(){J&&J.dispose(),J=null}});return _.event}s.buffer=G;class Y{constructor(C){this.event=C,this.disposables=new p.DisposableStore}map(C){return new Y(y(this.event,C,this.disposables))}forEach(C){return new Y(A(this.event,C,this.disposables))}filter(C){return new Y(Z(this.event,C,this.disposables))}reduce(C,I){return new Y(re(this.event,C,I,this.disposables))}latch(){return new Y(P(this.event,void 0,this.disposables))}debounce(C,I=100,W=!1,J){return new Y(ye(this.event,C,I,W,J,this.disposables))}on(C,I,W){return this.event(C,I,W)}once(C,I,W){return u(this.event)(C,I,W)}dispose(){this.disposables.dispose()}}function ne(w){return new Y(w)}s.chain=ne;function te(w,C,I=W=>W){const W=(...b)=>_.fire(I(...b)),J=()=>w.on(C,W),f=()=>w.removeListener(C,W),_=new D({onFirstListenerAdd:J,onLastListenerRemove:f});return _.event}s.fromNodeEventEmitter=te;function ce(w,C,I=W=>W){const W=(...b)=>_.fire(I(...b)),J=()=>w.addEventListener(C,W),f=()=>w.removeEventListener(C,W),_=new D({onFirstListenerAdd:J,onLastListenerRemove:f});return _.event}s.fromDOMEventEmitter=ce;function ie(w){return new Promise(C=>u(w)(C))}s.toPromise=ie;function me(w,C){return C(void 0),w(I=>C(I))}s.runAndSubscribe=me;function x(w,C){let I=null;function W(f){I?.dispose(),I=new p.DisposableStore,C(f,I)}W(void 0);const J=w(f=>W(f));return(0,p.toDisposable)(()=>{J.dispose(),I?.dispose()})}s.runAndSubscribeWithStore=x;class z{constructor(C,I){this.obs=C,this._counter=0,this._hasChanged=!1;const W={onFirstListenerAdd:()=>{C.addObserver(this)},onLastListenerRemove:()=>{C.removeObserver(this)}};I||i(W),this.emitter=new D(W),I&&I.add(this.emitter)}beginUpdate(C){this._counter++}handleChange(C,I){this._hasChanged=!0}endUpdate(C){--this._counter==0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function m(w,C){return new z(w,C).emitter.event}s.fromObservable=m})(k=e.Event||(e.Event={}));class U{constructor(i){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${i}_${U._idPool++}`}start(i){this._stopWatch=new Q.StopWatch(!0),this._listenerCount=i}stop(){if(this._stopWatch){const i=this._stopWatch.elapsed();this._elapsedOverall+=i,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${i.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}U._idPool=0;let B=-1;function ee(s){const i=B;return B=s,{dispose(){B=i}}}e.setGlobalLeakWarningThreshold=ee;class N{constructor(i,u=Math.random().toString(18).slice(2,5)){this.customThreshold=i,this.name=u,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(i,u){let y=B;if(typeof this.customThreshold=="number"&&(y=this.customThreshold),y<=0||u<y)return;this._stacks||(this._stacks=new Map);const A=this._stacks.get(i.value)||0;if(this._stacks.set(i.value,A+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=y*.5;let Z,$=0;for(const[se,re]of this._stacks)(!Z||$<re)&&(Z=se,$=re);console.warn(`[${this.name}] potential listener LEAK detected, having ${u} listeners already. MOST frequent listener (${$}):`),console.warn(Z)}return()=>{const Z=this._stacks.get(i.value)||0;this._stacks.set(i.value,Z-1)}}}class h{constructor(i){this.value=i}static create(){return new h(new Error().stack??"")}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}}class L{constructor(i,u,y){this.callback=i,this.callbackThis=u,this.stack=y,this.subscription=new p.SafeDisposable}invoke(i){this.callback.call(this.callbackThis,i)}}class D{constructor(i){this._disposed=!1,this._options=i,this._leakageMon=B>0?new N(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=this._options?._profName?new U(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){if(!this._disposed){if(this._disposed=!0,this._listeners){if(F){const i=Array.from(this._listeners);queueMicrotask(()=>{for(const u of i)u.subscription.isset()&&(u.subscription.unset(),u.stack?.print())})}this._listeners.clear()}this._deliveryQueue?.clear(this),this._options?.onLastListenerRemove?.(),this._leakageMon?.dispose()}}get event(){return this._event||(this._event=(i,u,y)=>{this._listeners||(this._listeners=new M.LinkedList);const A=this._listeners.isEmpty();A&&this._options?.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);let Z,$;this._leakageMon&&this._listeners.size>=30&&($=h.create(),Z=this._leakageMon.check($,this._listeners.size+1)),F&&($=$??h.create());const se=new L(i,u,$),re=this._listeners.push(se);A&&this._options?.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options?.onListenerDidAdd&&this._options.onListenerDidAdd(this,i,u);const fe=se.subscription.set(()=>{Z?.(),this._disposed||(re(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return y instanceof p.DisposableStore?y.add(fe):Array.isArray(y)&&y.push(fe),fe}),this._event}fire(i){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new K);for(const u of this._listeners)this._deliveryQueue.push(this,u,i);this._perfMon?.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),this._perfMon?.stop()}}hasListeners(){return this._listeners?!this._listeners.isEmpty():!1}}e.Emitter=D;class q{constructor(){this._queue=new M.LinkedList}get size(){return this._queue.size}push(i,u,y){this._queue.push(new l(i,u,y))}clear(i){const u=new M.LinkedList;for(const y of this._queue)y.emitter!==i&&u.push(y);this._queue=u}deliver(){for(;this._queue.size>0;){const i=this._queue.shift();try{i.listener.invoke(i.event)}catch(u){(0,v.onUnexpectedError)(u)}}}}e.EventDeliveryQueue=q;class K extends q{clear(i){this._queue.clear()}}class l{constructor(i,u,y){this.emitter=i,this.listener=u,this.event=y}}class c extends D{async fireAsync(i,u,y){if(!!this._listeners){this._asyncDeliveryQueue||(this._asyncDeliveryQueue=new M.LinkedList);for(const A of this._listeners)this._asyncDeliveryQueue.push([A,i]);for(;this._asyncDeliveryQueue.size>0&&!u.isCancellationRequested;){const[A,Z]=this._asyncDeliveryQueue.shift(),$=[],se={...Z,token:u,waitUntil:re=>{if(Object.isFrozen($))throw new Error("waitUntil can NOT be called asynchronous");y&&(re=y(re,A.callback)),$.push(re)}};try{A.invoke(se)}catch(re){(0,v.onUnexpectedError)(re);continue}Object.freeze($),await Promise.allSettled($).then(re=>{for(const fe of re)fe.status==="rejected"&&(0,v.onUnexpectedError)(fe.reason)})}}}}e.AsyncEmitter=c;class d extends D{constructor(i){super(i);this._isPaused=0,this._eventQueue=new M.LinkedList,this._mergeFn=i?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused==0)if(this._mergeFn){const i=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(i))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(i){this._listeners&&(this._isPaused!==0?this._eventQueue.push(i):super.fire(i))}}e.PauseableEmitter=d;class g extends d{constructor(i){super(i);this._delay=i.delay??100}fire(i){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(i)}}e.DebounceEmitter=g;class a extends D{constructor(i){super(i);this._queuedEvents=[],this._mergeFn=i?.merge}fire(i){this._queuedEvents.push(i),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(u=>super.fire(u)),this._queuedEvents=[]})}}e.MicrotaskEmitter=a;class r{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new D({onFirstListenerAdd:()=>this.onFirstListenerAdd(),onLastListenerRemove:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(i){const u={event:i,listener:null};this.events.push(u),this.hasListeners&&this.hook(u);const y=()=>{this.hasListeners&&this.unhook(u);const A=this.events.indexOf(u);this.events.splice(A,1)};return(0,p.toDisposable)((0,R.once)(y))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(i=>this.hook(i))}onLastListenerRemove(){this.hasListen