code-server
Version:
Run VS Code on a remote server.
20 lines • 276 kB
JavaScript
/*!--------------------------------------------------------
* Copyright (C) Microsoft Corporation. All rights reserved.
*--------------------------------------------------------*/(function(){var ie=["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/network","vs/base/node/pfs","os","child_process","vs/base/common/decorators","vs/base/common/arrays","vs/base/common/process","vs/base/common/buffer","vs/base/common/extpath","vs/base/common/objects","vs/nls","vs/nls!vs/platform/terminal/node/ptyHostMain","vs/platform/terminal/common/terminal","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","fs","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","util","xterm-headless","vs/platform/terminal/node/ptyHostMain"],se=function(J){for(var e=[],v=0,R=J.length;v<R;v++)e[v]=ie[J[v]];return e};define(ie[17],se([0,1]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=e.debounce=e.memoize=e.createDecorator=void 0;function v(D){return(A,g,C)=>{let E=null,b=null;if(typeof C.value=="function"?(E="value",b=C.value):typeof C.get=="function"&&(E="get",b=C.get),!b)throw new Error("not supported");C[E]=D(b,g)}}e.createDecorator=v;function R(D,A,g){let C=null,E=null;if(typeof g.value=="function"?(C="value",E=g.value,E.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof g.get=="function"&&(C="get",E=g.get),!E)throw new Error("not supported");const b=`$memoize$${A}`;g[C]=function(...O){return this.hasOwnProperty(b)||Object.defineProperty(this,b,{configurable:!1,enumerable:!1,writable:!1,value:E.apply(this,O)}),this[b]}}e.memoize=R;function p(D,A,g){return v((C,E)=>{const b=`$debounce$${E}`,O=`$debounce$result$${E}`;return function(...L){this[O]||(this[O]=g?g():void 0),clearTimeout(this[b]),A&&(this[O]=A(this[O],...L),L=[this[O]]),this[b]=setTimeout(()=>{C.apply(this,L),this[O]=g?g():void 0},D)}})}e.debounce=p;function T(D,A,g){return v((C,E)=>{const b=`$throttle$timer$${E}`,O=`$throttle$result$${E}`,L=`$throttle$lastRun$${E}`,w=`$throttle$pending$${E}`;return function(...l){if(this[O]||(this[O]=g?g():void 0),(this[L]===null||this[L]===void 0)&&(this[L]=-Number.MAX_VALUE),A&&(this[O]=A(this[O],...l)),this[w])return;const I=this[L]+D;I<=Date.now()?(this[L]=Date.now(),C.apply(this,[this[O]]),this[O]=g?g():void 0):(this[w]=!0,this[b]=setTimeout(()=>{this[w]=!1,this[L]=Date.now(),C.apply(this,[this[O]]),this[O]=g?g():void 0},I-Date.now()))}})}e.throttle=T}),define(ie[8],se([0,1]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),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(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(P=>{P(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=v,e.errorHandler=new v;function R(o){e.errorHandler.setUnexpectedErrorHandler(o)}e.setUnexpectedErrorHandler=R;function p(o){g(o)||e.errorHandler.onUnexpectedError(o)}e.onUnexpectedError=p;function T(o){g(o)||e.errorHandler.onUnexpectedExternalError(o)}e.onUnexpectedExternalError=T;function D(o){if(o instanceof Error){let{name:d,message:P}=o;const u=o.stacktrace||o.stack;return{$isError:!0,name:d,message:P,stack:u}}return o}e.transformErrorForSerialization=D;const A="Canceled";function g(o){return o instanceof C?!0:o instanceof Error&&o.name===A&&o.message===A}e.isCancellationError=g;class C extends Error{constructor(){super(A);this.name=this.message}}e.CancellationError=C;function E(){const o=new Error(A);return o.name=o.message,o}e.canceled=E;function b(o){return o?new Error(`Illegal argument: ${o}`):new Error("Illegal argument")}e.illegalArgument=b;function O(o){return o?new Error(`Illegal state: ${o}`):new Error("Illegal state")}e.illegalState=O;function L(o){return o?new Error(`readonly property '${o} cannot be changed'`):new Error("readonly property cannot be changed")}e.readonly=L;function w(o){const d=new Error(`${o} has been disposed`);return d.name="DISPOSED",d}e.disposed=w;function l(o){return o?o.message?o.message:o.stack?o.stack.split(`
`)[0]:String(o):"Error"}e.getErrorMessage=l;class I extends Error{constructor(d){super("NotImplemented");d&&(this.message=d)}}e.NotImplementedError=I;class M extends Error{constructor(d){super("NotSupported");d&&(this.message=d)}}e.NotSupportedError=M;class B extends Error{constructor(){super(...arguments);this.isExpected=!0}}e.ExpectedError=B;class h extends Error{constructor(){super(...arguments);this.logTelemetry=!1}}e.ErrorNoTelemetry=h}),define(ie[18],se([0,1,8]),function(J,e,v){"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 R(f,c=0){return f[f.length-(1+c)]}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 T(f,c,m=(S,N)=>S===N){if(f===c)return!0;if(!f||!c||f.length!==c.length)return!1;for(let S=0,N=f.length;S<N;S++)if(!m(f[S],c[S]))return!1;return!0}e.equals=T;function D(f,c,m){let S=0,N=f.length-1;for(;S<=N;){const K=(S+N)/2|0,Z=m(f[K],c);if(Z<0)S=K+1;else if(Z>0)N=K-1;else return K}return-(S+1)}e.binarySearch=D;function A(f,c){let m=0,S=f.length;if(S===0)return 0;for(;m<S;){const N=Math.floor((m+S)/2);c(f[N])?S=N:m=N+1}return m}e.findFirstInSorted=A;function g(f,c,m){if(f=f|0,f>=c.length)throw new TypeError("invalid index");let S=c[Math.floor(c.length*Math.random())],N=[],K=[],Z=[];for(let ae of c){const le=m(ae,S);le<0?N.push(ae):le>0?K.push(ae):Z.push(ae)}return f<N.length?g(f,N,m):f<N.length+Z.length?Z[0]:g(f-(N.length+Z.length),K,m)}e.quickSelect=g;function C(f,c){const m=[];let S;for(const N of f.slice(0).sort(c))!S||c(S[0],N)!==0?(S=[N],m.push(S)):S.push(N);return m}e.groupBy=C;function E(f,c,m){const S=[];function N(ae,le,fe){if(le===0&&fe.length===0)return;const ge=S[S.length-1];ge&&ge.start+ge.deleteCount===ae?(ge.deleteCount+=le,ge.toInsert.push(...fe)):S.push({start:ae,deleteCount:le,toInsert:fe})}let K=0,Z=0;for(;;){if(K===f.length){N(K,0,c.slice(Z));break}if(Z===c.length){N(K,f.length-K,[]);break}const ae=f[K],le=c[Z],fe=m(ae,le);fe===0?(K+=1,Z+=1):fe<0?(N(K,1,[]),K+=1):fe>0&&(N(K,0,[le]),Z+=1)}return S}e.sortedDiff=E;function b(f,c,m){const S=E(f,c,m),N=[],K=[];for(const Z of S)N.push(...f.slice(Z.start,Z.start+Z.deleteCount)),K.push(...Z.toInsert);return{removed:N,added:K}}e.delta=b;function O(f,c,m){if(m===0)return[];const S=f.slice(0,m).sort(c);return w(f,c,S,m,f.length),S}e.top=O;function L(f,c,m,S,N){return m===0?Promise.resolve([]):new Promise((K,Z)=>{(async()=>{const ae=f.length,le=f.slice(0,m).sort(c);for(let fe=m,ge=Math.min(m+S,ae);fe<ae;fe=ge,ge=Math.min(ge+S,ae)){if(fe>m&&await new Promise(we=>setTimeout(we)),N&&N.isCancellationRequested)throw(0,v.canceled)();w(f,c,le,fe,ge)}return le})().then(K,Z)})}e.topAsync=L;function w(f,c,m,S,N){for(const K=m.length;S<N;S++){const Z=f[S];if(c(Z,m[K-1])<0){m.pop();const ae=A(m,le=>c(Z,le)<0);m.splice(ae,0,Z)}}}function l(f){return f.filter(c=>!!c)}e.coalesce=l;function I(f){let c=0;for(let m=0;m<f.length;m++)f[m]&&(f[c]=f[m],c+=1);f.length=c}e.coalesceInPlace=I;function M(f,c,m){f.splice(m,0,f.splice(c,1)[0])}e.move=M;function B(f){return!Array.isArray(f)||f.length===0}e.isFalsyOrEmpty=B;function h(f){return Array.isArray(f)&&f.length>0}e.isNonEmptyArray=h;function o(f,c=m=>m){const m=new Set;return f.filter(S=>{const N=c(S);return m.has(N)?!1:(m.add(N),!0)})}e.distinct=o;function d(f){const c=new Set;return m=>{const S=f(m);return c.has(S)?!1:(c.add(S),!0)}}e.uniqueFilter=d;function P(f,c){const m=u(f,c);if(m!==-1)return f[m]}e.findLast=P;function u(f,c){for(let m=f.length-1;m>=0;m--){const S=f[m];if(c(S))return m}return-1}e.lastIndex=u;function s(f,c){return f.length>0?f[0]:c}e.firstOrDefault=s;function t(f,c,m=(S,N)=>S===N){let S=0;for(let N=0,K=Math.min(f.length,c.length);N<K&&m(f[N],c[N]);N++)S++;return S}e.commonPrefixLength=t;function i(f){return[].concat(...f)}e.flatten=i;function n(f,c){let m=typeof c=="number"?f:0;typeof c=="number"?m=f:(m=0,c=f);const S=[];if(m<=c)for(let N=m;N<c;N++)S.push(N);else for(let N=m;N>c;N--)S.push(N);return S}e.range=n;function r(f,c,m){return f.reduce((S,N)=>(S[c(N)]=m?m(N):N,S),Object.create(null))}e.index=r;function a(f,c){return f.push(c),()=>_(f,c)}e.insert=a;function _(f,c){const m=f.indexOf(c);if(m>-1)return f.splice(m,1),c}e.remove=_;function F(f,c,m){const S=f.slice(0,c),N=f.slice(c);return S.concat(m,N)}e.arrayInsert=F;function H(f,c){let m;if(typeof c=="number"){let S=c;m=()=>{const N=Math.sin(S++)*179426549;return N-Math.floor(N)}}else m=Math.random;for(let S=f.length-1;S>0;S-=1){const N=Math.floor(m()*(S+1)),K=f[S];f[S]=f[N],f[N]=K}}e.shuffle=H;function G(f,c){const m=f.indexOf(c);m>-1&&(f.splice(m,1),f.unshift(c))}e.pushToStart=G;function re(f,c){const m=f.indexOf(c);m>-1&&(f.splice(m,1),f.push(c))}e.pushToEnd=re;function oe(f,c){return Array.isArray(f)?f.map(c):c(f)}e.mapArrayOrNot=oe;function ce(f){return Array.isArray(f)?f:[f]}e.asArray=ce;function Q(f){return f[Math.floor(Math.random()*f.length)]}e.getRandomElement=Q;function Y(f,c){for(const m of f){const S=c(m);if(S!==void 0)return S}}e.mapFind=Y;function te(f,c,m){const S=x(f,c),N=f.length,K=m.length;f.length=N+K;for(let Z=N-1;Z>=S;Z--)f[Z+K]=f[Z];for(let Z=0;Z<K;Z++)f[Z+S]=m[Z]}e.insertInto=te;function ee(f,c,m,S){const N=x(f,c),K=f.splice(N,m);return te(f,N,S),K}e.splice=ee;function x(f,c){return c<0?Math.max(c+f.length,0):Math.min(c,f.length)}function U(f,c){return(m,S)=>c(f(m),f(S))}e.compareBy=U;const k=(f,c)=>f-c;e.numberComparator=k;function $(f,c){if(f.length===0)return;let m=f[0];for(let S=1;S<f.length;S++){const N=f[S];c(N,m)>0&&(m=N)}return m}e.findMaxBy=$;function W(f,c){if(f.length===0)return;let m=f[0];for(let S=1;S<f.length;S++){const N=f[S];c(N,m)>=0&&(m=N)}return m}e.findLastMaxBy=W;function z(f,c){return $(f,(m,S)=>-c(m,S))}e.findMinBy=z;class V{constructor(c){this.items=c,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(c){let m=this.firstIdx;for(;m<this.items.length&&c(this.items[m]);)m++;const S=m===this.firstIdx?null:this.items.slice(this.firstIdx,m);return this.firstIdx=m,S}takeFromEndWhile(c){let m=this.lastIdx;for(;m>=0&&c(this.items[m]);)m--;const S=m===this.lastIdx?null:this.items.slice(m+1,this.lastIdx+1);return this.lastIdx=m,S}peek(){return this.items[this.firstIdx]}dequeue(){const c=this.items[this.firstIdx];return this.firstIdx++,c}takeCount(c){const m=this.items.slice(this.firstIdx,this.firstIdx+c);return this.firstIdx+=c,m}}e.ArrayQueue=V}),define(ie[26],se([0,1]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function v(R){const p=this;let T=!1,D;return function(){return T||(T=!0,D=R.apply(p,arguments)),D}}e.once=v}),define(ie[33],se([0,1]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var v;(function(R){function p(d){return d&&typeof d=="object"&&typeof d[Symbol.iterator]=="function"}R.is=p;const T=Object.freeze([]);function D(){return T}R.empty=D;function*A(d){yield d}R.single=A;function g(d){return d||T}R.from=g;function C(d){return!d||d[Symbol.iterator]().next().done===!0}R.isEmpty=C;function E(d){return d[Symbol.iterator]().next().value}R.first=E;function b(d,P){for(const u of d)if(P(u))return!0;return!1}R.some=b;function O(d,P){for(const u of d)if(P(u))return u}R.find=O;function*L(d,P){for(const u of d)P(u)&&(yield u)}R.filter=L;function*w(d,P){let u=0;for(const s of d)yield P(s,u++)}R.map=w;function*l(...d){for(const P of d)for(const u of P)yield u}R.concat=l;function*I(d){for(const P of d)for(const u of P)yield u}R.concatNested=I;function M(d,P,u){let s=u;for(const t of d)s=P(s,t);return s}R.reduce=M;function*B(d,P,u=d.length){for(P<0&&(P+=d.length),u<0?u+=d.length:u>d.length&&(u=d.length);P<u;P++)yield d[P]}R.slice=B;function h(d,P=Number.POSITIVE_INFINITY){const u=[];if(P===0)return[u,d];const s=d[Symbol.iterator]();for(let t=0;t<P;t++){const i=s.next();if(i.done)return[u,R.empty()];u.push(i.value)}return[u,{[Symbol.iterator](){return s}}]}R.consume=h;function o(d,P,u=(s,t)=>s===t){const s=d[Symbol.iterator](),t=P[Symbol.iterator]();for(;;){const i=s.next(),n=t.next();if(i.done!==n.done)return!1;if(i.done)return!0;if(!u(i.value,n.value))return!1}}R.equals=o})(v=e.Iterable||(e.Iterable={}))}),define(ie[34],se([0,1]),function(J,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(ie[3],se([0,1,26,33]),function(J,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.dispose=e.isDisposable=e.MultiDisposeError=e.markAsSingleton=e.setDisposableTracker=void 0;const p=!1;let T=null;function D(i){T=i}if(e.setDisposableTracker=D,p){const i="__is_disposable_tracked__";D(new class{trackDisposable(n){const r=new Error("Potentially leaked disposable").stack;setTimeout(()=>{n[i]||console.log(r)},3e3)}setParent(n,r){if(n&&n!==B.None)try{n[i]=!0}catch{}}markAsDisposed(n){if(n&&n!==B.None)try{n[i]=!0}catch{}}markAsSingleton(n){}})}function A(i){return T?.trackDisposable(i),i}function g(i){T?.markAsDisposed(i)}function C(i,n){T?.setParent(i,n)}function E(i,n){if(!!T)for(const r of i)T.setParent(r,n)}function b(i){return T?.markAsSingleton(i),i}e.markAsSingleton=b;class O extends Error{constructor(n){super(`Encountered errors while disposing of store. Errors: [${n.join(", ")}]`);this.errors=n}}e.MultiDisposeError=O;function L(i){return typeof i.dispose=="function"&&i.dispose.length===0}e.isDisposable=L;function w(i){if(R.Iterable.is(i)){let n=[];for(const r of i)if(r)try{r.dispose()}catch(a){n.push(a)}if(n.length===1)throw n[0];if(n.length>1)throw new O(n);return Array.isArray(i)?[]:i}else if(i)return i.dispose(),i}e.dispose=w;function l(...i){const n=I(()=>w(i));return E(i,n),n}e.combinedDisposable=l;function I(i){const n=A({dispose:(0,v.once)(()=>{g(n),i()})});return n}e.toDisposable=I;class M{constructor(){this._toDispose=new Set,this._isDisposed=!1,A(this)}dispose(){this._isDisposed||(g(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{w(this._toDispose.values())}finally{this._toDispose.clear()}}add(n){if(!n)return n;if(n===this)throw new Error("Cannot register a disposable on itself!");return C(n,this),this._isDisposed?M.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(n),n}}e.DisposableStore=M,M.DISABLE_DISPOSED_WARNING=!1;class B{constructor(){this._store=new M,A(this),C(this._store,this)}dispose(){g(this),this._store.dispose()}_register(n){if(n===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(n)}}e.Disposable=B,B.None=Object.freeze({dispose(){}});class h{constructor(){this._isDisposed=!1,A(this)}get value(){return this._isDisposed?void 0:this._value}set value(n){this._isDisposed||n===this._value||(this._value?.dispose(),n&&C(n,this),this._value=n)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,g(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){const n=this._value;return this._value=void 0,n&&C(n,null),n}}e.MutableDisposable=h;class o{constructor(n){this._disposable=n,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter==0&&this._disposable.dispose(),this}}e.RefCountedDisposable=o;class d{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,A(this)}set(n){let r=n;return this.unset=()=>r=void 0,this.isset=()=>r!==void 0,this.dispose=()=>{r&&(r(),r=void 0,g(this))},this}}e.SafeDisposable=d;class P{constructor(){this.references=new Map}acquire(n,...r){let a=this.references.get(n);a||(a={counter:0,object:this.createReferencedObject(n,...r)},this.references.set(n,a));const{object:_}=a,F=(0,v.once)(()=>{--a.counter==0&&(this.destroyReferencedObject(n,a.object),this.references.delete(n))});return a.counter++,{object:_,dispose:F}}}e.ReferenceCollection=P;class u{constructor(n){this.referenceCollection=n}async acquire(n,...r){const a=this.referenceCollection.acquire(n,...r);try{return{object:await a.object,dispose:()=>a.dispose()}}catch(_){throw a.dispose(),_}}}e.AsyncReferenceCollection=u;class s{constructor(n){this.object=n}dispose(){}}e.ImmortalReference=s;function t(i){const n=new M;try{i(n)}finally{n.dispose()}}e.disposeOnReturn=t}),define(ie[35],se([0,1]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=void 0;class v{constructor(T){this.element=T,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 T=this._first;for(;T!==v.Undefined;){const D=T.next;T.prev=v.Undefined,T.next=v.Undefined,T=D}this._first=v.Undefined,this._last=v.Undefined,this._size=0}unshift(T){return this._insert(T,!1)}push(T){return this._insert(T,!0)}_insert(T,D){const A=new v(T);if(this._first===v.Undefined)this._first=A,this._last=A;else if(D){const C=this._last;this._last=A,A.prev=C,C.next=A}else{const C=this._first;this._first=A,A.next=C,C.prev=A}this._size+=1;let g=!1;return()=>{g||(g=!0,this._remove(A))}}shift(){if(this._first!==v.Undefined){const T=this._first.element;return this._remove(this._first),T}}pop(){if(this._last!==v.Undefined){const T=this._last.element;return this._remove(this._last),T}}_remove(T){if(T.prev!==v.Undefined&&T.next!==v.Undefined){const D=T.prev;D.next=T.next,T.next.prev=D}else T.prev===v.Undefined&&T.next===v.Undefined?(this._first=v.Undefined,this._last=v.Undefined):T.next===v.Undefined?(this._last=this._last.prev,this._last.next=v.Undefined):T.prev===v.Undefined&&(this._first=this._first.next,this._first.prev=v.Undefined);this._size-=1}*[Symbol.iterator](){let T=this._first;for(;T!==v.Undefined;)yield T.element,T=T.next}}e.LinkedList=R}),define(ie[2],se([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.isCI=e.isIOS=e.isWebWorker=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 v="en";let R=!1,p=!1,T=!1,D=!1,A=!1,g=!1,C=!1,E=!1,b=!1,O,L=v,w,l;e.globals=typeof self=="object"?self:typeof global=="object"?global:{};let I;typeof e.globals.vscode!="undefined"&&typeof e.globals.vscode.process!="undefined"?I=e.globals.vscode.process:typeof process!="undefined"&&(I=process);const M=typeof I?.versions?.electron=="string",B=M&&I?.type==="renderer";if(e.isElectronSandboxed=B&&I?.sandboxed,typeof navigator=="object"&&!B){l=navigator.userAgent,R=l.indexOf("Windows")>=0,p=l.indexOf("Macintosh")>=0,E=(l.indexOf("Macintosh")>=0||l.indexOf("iPad")>=0||l.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,T=l.indexOf("Linux")>=0,g=!0,O=navigator.language,L=O;const n=typeof document!="undefined"&&document.getElementById("vscode-remote-nls-configuration"),r=n&&n.getAttribute("data-settings");if(r)try{const a=JSON.parse(r);O=a.locale,w=a._translationsConfigFile,L=a.availableLanguages["*"]||v}catch{}}else if(typeof I=="object"){R=I.platform==="win32",p=I.platform==="darwin",T=I.platform==="linux",D=T&&!!I.env.SNAP&&!!I.env.SNAP_REVISION,C=M,b=!!I.env.CI||!!I.env.BUILD_ARTIFACTSTAGINGDIRECTORY,O=v,L=v;const n=I.env.VSCODE_NLS_CONFIG;if(n)try{const r=JSON.parse(n),a=r.availableLanguages["*"];O=r.locale,L=a||v,w=r._translationsConfigFile}catch{}A=!0}else console.error("Unable to resolve platform.");var h;(function(n){n[n.Web=0]="Web",n[n.Mac=1]="Mac",n[n.Linux=2]="Linux",n[n.Windows=3]="Windows"})(h=e.Platform||(e.Platform={}));function o(n){switch(n){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}e.PlatformToString=o;let d=0;p?d=1:R?d=3:T&&(d=2),e.isWindows=R,e.isMacintosh=p,e.isLinux=T,e.isLinuxSnap=D,e.isNative=A,e.isElectron=C,e.isWeb=g,e.isWebWorker=g&&typeof e.globals.importScripts=="function",e.isIOS=E,e.isCI=b,e.platform=d,e.userAgent=l,e.language=L;var P;(function(n){function r(){return e.language}n.value=r;function a(){return e.language.length===2?e.language==="en":e.language.length>=3?e.language[0]==="e"&&e.language[1]==="n"&&e.language[2]==="-":!1}n.isDefaultVariant=a;function _(){return e.language==="en"}n.isDefault=_})(P=e.Language||(e.Language={})),e.locale=O,e.translationsConfigFile=w,e.setTimeout0=(()=>{if(typeof e.globals.postMessage=="function"&&!e.globals.importScripts){let n=[];e.globals.addEventListener("message",a=>{if(a.data&&a.data.vscodeScheduleAsyncWork)for(let _=0,F=n.length;_<F;_++){const H=n[_];if(H.id===a.data.vscodeScheduleAsyncWork){n.splice(_,1),H.callback();return}}});let r=0;return a=>{const _=++r;n.push({id:_,callback:a}),e.globals.postMessage({vscodeScheduleAsyncWork:_},"*")}}return n=>setTimeout(n)})();var u;(function(n){n[n.Windows=1]="Windows",n[n.Macintosh=2]="Macintosh",n[n.Linux=3]="Linux"})(u=e.OperatingSystem||(e.OperatingSystem={})),e.OS=p||E?2:R?1:3;let s=!0,t=!1;function i(){if(!t){t=!0;const n=new Uint8Array(2);n[0]=1,n[1]=2,s=new Uint16Array(n.buffer)[0]===(2<<8)+1}return s}e.isLittleEndian=i,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(ie[19],se([0,1,2]),function(J,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(ie[5],se([0,1,19]),function(J,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,T=90,D=122,A=46,g=47,C=92,E=58,b=63;class O extends Error{constructor(o,d,P){let u;typeof d=="string"&&d.indexOf("not ")===0?(u="must not be",d=d.replace(/^not /,"")):u="must be";const s=o.indexOf(".")!==-1?"property":"argument";let t=`The "${o}" ${s} ${u} of type ${d}`;t+=`. Received type ${typeof P}`;super(t);this.code="ERR_INVALID_ARG_TYPE"}}function L(h,o){if(typeof h!="string")throw new O(o,"string",h)}function w(h){return h===g||h===C}function l(h){return h===g}function I(h){return h>=R&&h<=T||h>=p&&h<=D}function M(h,o,d,P){let u="",s=0,t=-1,i=0,n=0;for(let r=0;r<=h.length;++r){if(r<h.length)n=h.charCodeAt(r);else{if(P(n))break;n=g}if(P(n)){if(!(t===r-1||i===1))if(i===2){if(u.length<2||s!==2||u.charCodeAt(u.length-1)!==A||u.charCodeAt(u.length-2)!==A){if(u.length>2){const a=u.lastIndexOf(d);a===-1?(u="",s=0):(u=u.slice(0,a),s=u.length-1-u.lastIndexOf(d)),t=r,i=0;continue}else if(u.length!==0){u="",s=0,t=r,i=0;continue}}o&&(u+=u.length>0?`${d}..`:"..",s=2)}else u.length>0?u+=`${d}${h.slice(t+1,r)}`:u=h.slice(t+1,r),s=r-t-1;t=r,i=0}else n===A&&i!==-1?++i:i=-1}return u}function B(h,o){if(o===null||typeof o!="object")throw new O("pathObject","Object",o);const d=o.dir||o.root,P=o.base||`${o.name||""}${o.ext||""}`;return d?d===o.root?`${d}${P}`:`${d}${h}${P}`:P}e.win32={resolve(...h){let o="",d="",P=!1;for(let u=h.length-1;u>=-1;u--){let s;if(u>=0){if(s=h[u],L(s,"path"),s.length===0)continue}else o.length===0?s=v.cwd():(s=v.env[`=${o}`]||v.cwd(),(s===void 0||s.slice(0,2).toLowerCase()!==o.toLowerCase()&&s.charCodeAt(2)===C)&&(s=`${o}\\`));const t=s.length;let i=0,n="",r=!1;const a=s.charCodeAt(0);if(t===1)w(a)&&(i=1,r=!0);else if(w(a))if(r=!0,w(s.charCodeAt(1))){let _=2,F=_;for(;_<t&&!w(s.charCodeAt(_));)_++;if(_<t&&_!==F){const H=s.slice(F,_);for(F=_;_<t&&w(s.charCodeAt(_));)_++;if(_<t&&_!==F){for(F=_;_<t&&!w(s.charCodeAt(_));)_++;(_===t||_!==F)&&(n=`\\\\${H}\\${s.slice(F,_)}`,i=_)}}}else i=1;else I(a)&&s.charCodeAt(1)===E&&(n=s.slice(0,2),i=2,t>2&&w(s.charCodeAt(2))&&(r=!0,i=3));if(n.length>0)if(o.length>0){if(n.toLowerCase()!==o.toLowerCase())continue}else o=n;if(P){if(o.length>0)break}else if(d=`${s.slice(i)}\\${d}`,P=r,r&&o.length>0)break}return d=M(d,!P,"\\",w),P?`${o}\\${d}`:`${o}${d}`||"."},normalize(h){L(h,"path");const o=h.length;if(o===0)return".";let d=0,P,u=!1;const s=h.charCodeAt(0);if(o===1)return l(s)?"\\":h;if(w(s))if(u=!0,w(h.charCodeAt(1))){let i=2,n=i;for(;i<o&&!w(h.charCodeAt(i));)i++;if(i<o&&i!==n){const r=h.slice(n,i);for(n=i;i<o&&w(h.charCodeAt(i));)i++;if(i<o&&i!==n){for(n=i;i<o&&!w(h.charCodeAt(i));)i++;if(i===o)return`\\\\${r}\\${h.slice(n)}\\`;i!==n&&(P=`\\\\${r}\\${h.slice(n,i)}`,d=i)}}}else d=1;else I(s)&&h.charCodeAt(1)===E&&(P=h.slice(0,2),d=2,o>2&&w(h.charCodeAt(2))&&(u=!0,d=3));let t=d<o?M(h.slice(d),!u,"\\",w):"";return t.length===0&&!u&&(t="."),t.length>0&&w(h.charCodeAt(o-1))&&(t+="\\"),P===void 0?u?`\\${t}`:t:u?`${P}\\${t}`:`${P}${t}`},isAbsolute(h){L(h,"path");const o=h.length;if(o===0)return!1;const d=h.charCodeAt(0);return w(d)||o>2&&I(d)&&h.charCodeAt(1)===E&&w(h.charCodeAt(2))},join(...h){if(h.length===0)return".";let o,d;for(let s=0;s<h.length;++s){const t=h[s];L(t,"path"),t.length>0&&(o===void 0?o=d=t:o+=`\\${t}`)}if(o===void 0)return".";let P=!0,u=0;if(typeof d=="string"&&w(d.charCodeAt(0))){++u;const s=d.length;s>1&&w(d.charCodeAt(1))&&(++u,s>2&&(w(d.charCodeAt(2))?++u:P=!1))}if(P){for(;u<o.length&&w(o.charCodeAt(u));)u++;u>=2&&(o=`\\${o.slice(u)}`)}return e.win32.normalize(o)},relative(h,o){if(L(h,"from"),L(o,"to"),h===o)return"";const d=e.win32.resolve(h),P=e.win32.resolve(o);if(d===P||(h=d.toLowerCase(),o=P.toLowerCase(),h===o))return"";let u=0;for(;u<h.length&&h.charCodeAt(u)===C;)u++;let s=h.length;for(;s-1>u&&h.charCodeAt(s-1)===C;)s--;const t=s-u;let i=0;for(;i<o.length&&o.charCodeAt(i)===C;)i++;let n=o.length;for(;n-1>i&&o.charCodeAt(n-1)===C;)n--;const r=n-i,a=t<r?t:r;let _=-1,F=0;for(;F<a;F++){const G=h.charCodeAt(u+F);if(G!==o.charCodeAt(i+F))break;G===C&&(_=F)}if(F!==a){if(_===-1)return P}else{if(r>a){if(o.charCodeAt(i+F)===C)return P.slice(i+F+1);if(F===2)return P.slice(i+F)}t>a&&(h.charCodeAt(u+F)===C?_=F:F===2&&(_=3)),_===-1&&(_=0)}let H="";for(F=u+_+1;F<=s;++F)(F===s||h.charCodeAt(F)===C)&&(H+=H.length===0?"..":"\\..");return i+=_,H.length>0?`${H}${P.slice(i,n)}`:(P.charCodeAt(i)===C&&++i,P.slice(i,n))},toNamespacedPath(h){if(typeof h!="string")return h;if(h.length===0)return"";const o=e.win32.resolve(h);if(o.length<=2)return h;if(o.charCodeAt(0)===C){if(o.charCodeAt(1)===C){const d=o.charCodeAt(2);if(d!==b&&d!==A)return`\\\\?\\UNC\\${o.slice(2)}`}}else if(I(o.charCodeAt(0))&&o.charCodeAt(1)===E&&o.charCodeAt(2)===C)return`\\\\?\\${o}`;return h},dirname(h){L(h,"path");const o=h.length;if(o===0)return".";let d=-1,P=0;const u=h.charCodeAt(0);if(o===1)return w(u)?h:".";if(w(u)){if(d=P=1,w(h.charCodeAt(1))){let i=2,n=i;for(;i<o&&!w(h.charCodeAt(i));)i++;if(i<o&&i!==n){for(n=i;i<o&&w(h.charCodeAt(i));)i++;if(i<o&&i!==n){for(n=i;i<o&&!w(h.charCodeAt(i));)i++;if(i===o)return h;i!==n&&(d=P=i+1)}}}}else I(u)&&h.charCodeAt(1)===E&&(d=o>2&&w(h.charCodeAt(2))?3:2,P=d);let s=-1,t=!0;for(let i=o-1;i>=P;--i)if(w(h.charCodeAt(i))){if(!t){s=i;break}}else t=!1;if(s===-1){if(d===-1)return".";s=d}return h.slice(0,s)},basename(h,o){o!==void 0&&L(o,"ext"),L(h,"path");let d=0,P=-1,u=!0,s;if(h.length>=2&&I(h.charCodeAt(0))&&h.charCodeAt(1)===E&&(d=2),o!==void 0&&o.length>0&&o.length<=h.length){if(o===h)return"";let t=o.length-1,i=-1;for(s=h.length-1;s>=d;--s){const n=h.charCodeAt(s);if(w(n)){if(!u){d=s+1;break}}else i===-1&&(u=!1,i=s+1),t>=0&&(n===o.charCodeAt(t)?--t==-1&&(P=s):(t=-1,P=i))}return d===P?P=i:P===-1&&(P=h.length),h.slice(d,P)}for(s=h.length-1;s>=d;--s)if(w(h.charCodeAt(s))){if(!u){d=s+1;break}}else P===-1&&(u=!1,P=s+1);return P===-1?"":h.slice(d,P)},extname(h){L(h,"path");let o=0,d=-1,P=0,u=-1,s=!0,t=0;h.length>=2&&h.charCodeAt(1)===E&&I(h.charCodeAt(0))&&(o=P=2);for(let i=h.length-1;i>=o;--i){const n=h.charCodeAt(i);if(w(n)){if(!s){P=i+1;break}continue}u===-1&&(s=!1,u=i+1),n===A?d===-1?d=i:t!==1&&(t=1):d!==-1&&(t=-1)}return d===-1||u===-1||t===0||t===1&&d===u-1&&d===P+1?"":h.slice(d,u)},format:B.bind(null,"\\"),parse(h){L(h,"path");const o={root:"",dir:"",base:"",ext:"",name:""};if(h.length===0)return o;const d=h.length;let P=0,u=h.charCodeAt(0);if(d===1)return w(u)?(o.root=o.dir=h,o):(o.base=o.name=h,o);if(w(u)){if(P=1,w(h.charCodeAt(1))){let _=2,F=_;for(;_<d&&!w(h.charCodeAt(_));)_++;if(_<d&&_!==F){for(F=_;_<d&&w(h.charCodeAt(_));)_++;if(_<d&&_!==F){for(F=_;_<d&&!w(h.charCodeAt(_));)_++;_===d?P=_:_!==F&&(P=_+1)}}}}else if(I(u)&&h.charCodeAt(1)===E){if(d<=2)return o.root=o.dir=h,o;if(P=2,w(h.charCodeAt(2))){if(d===3)return o.root=o.dir=h,o;P=3}}P>0&&(o.root=h.slice(0,P));let s=-1,t=P,i=-1,n=!0,r=h.length-1,a=0;for(;r>=P;--r){if(u=h.charCodeAt(r),w(u)){if(!n){t=r+1;break}continue}i===-1&&(n=!1,i=r+1),u===A?s===-1?s=r:a!==1&&(a=1):s!==-1&&(a=-1)}return i!==-1&&(s===-1||a===0||a===1&&s===i-1&&s===t+1?o.base=o.name=h.slice(t,i):(o.name=h.slice(t,s),o.base=h.slice(t,i),o.ext=h.slice(s,i))),t>0&&t!==P?o.dir=h.slice(0,t-1):o.dir=o.root,o},sep:"\\",delimiter:";",win32:null,posix:null},e.posix={resolve(...h){let o="",d=!1;for(let P=h.length-1;P>=-1&&!d;P--){const u=P>=0?h[P]:v.cwd();L(u,"path"),u.length!==0&&(o=`${u}/${o}`,d=u.charCodeAt(0)===g)}return o=M(o,!d,"/",l),d?`/${o}`:o.length>0?o:"."},normalize(h){if(L(h,"path"),h.length===0)return".";const o=h.charCodeAt(0)===g,d=h.charCodeAt(h.length-1)===g;return h=M(h,!o,"/",l),h.length===0?o?"/":d?"./":".":(d&&(h+="/"),o?`/${h}`:h)},isAbsolute(h){return L(h,"path"),h.length>0&&h.charCodeAt(0)===g},join(...h){if(h.length===0)return".";let o;for(let d=0;d<h.length;++d){const P=h[d];L(P,"path"),P.length>0&&(o===void 0?o=P:o+=`/${P}`)}return o===void 0?".":e.posix.normalize(o)},relative(h,o){if(L(h,"from"),L(o,"to"),h===o||(h=e.posix.resolve(h),o=e.posix.resolve(o),h===o))return"";const d=1,P=h.length,u=P-d,s=1,t=o.length-s,i=u<t?u:t;let n=-1,r=0;for(;r<i;r++){const _=h.charCodeAt(d+r);if(_!==o.charCodeAt(s+r))break;_===g&&(n=r)}if(r===i)if(t>i){if(o.charCodeAt(s+r)===g)return o.slice(s+r+1);if(r===0)return o.slice(s+r)}else u>i&&(h.charCodeAt(d+r)===g?n=r:r===0&&(n=0));let a="";for(r=d+n+1;r<=P;++r)(r===P||h.charCodeAt(r)===g)&&(a+=a.length===0?"..":"/..");return`${a}${o.slice(s+n)}`},toNamespacedPath(h){return h},dirname(h){if(L(h,"path"),h.length===0)return".";const o=h.charCodeAt(0)===g;let d=-1,P=!0;for(let u=h.length-1;u>=1;--u)if(h.charCodeAt(u)===g){if(!P){d=u;break}}else P=!1;return d===-1?o?"/":".":o&&d===1?"//":h.slice(0,d)},basename(h,o){o!==void 0&&L(o,"ext"),L(h,"path");let d=0,P=-1,u=!0,s;if(o!==void 0&&o.length>0&&o.length<=h.length){if(o===h)return"";let t=o.length-1,i=-1;for(s=h.length-1;s>=0;--s){const n=h.charCodeAt(s);if(n===g){if(!u){d=s+1;break}}else i===-1&&(u=!1,i=s+1),t>=0&&(n===o.charCodeAt(t)?--t==-1&&(P=s):(t=-1,P=i))}return d===P?P=i:P===-1&&(P=h.length),h.slice(d,P)}for(s=h.length-1;s>=0;--s)if(h.charCodeAt(s)===g){if(!u){d=s+1;break}}else P===-1&&(u=!1,P=s+1);return P===-1?"":h.slice(d,P)},extname(h){L(h,"path");let o=-1,d=0,P=-1,u=!0,s=0;for(let t=h.length-1;t>=0;--t){const i=h.charCodeAt(t);if(i===g){if(!u){d=t+1;break}continue}P===-1&&(u=!1,P=t+1),i===A?o===-1?o=t:s!==1&&(s=1):o!==-1&&(s=-1)}return o===-1||P===-1||s===0||s===1&&o===P-1&&o===d+1?"":h.slice(o,P)},format:B.bind(null,"/"),parse(h){L(h,"path");const o={root:"",dir:"",base:"",ext:"",name:""};if(h.length===0)return o;const d=h.charCodeAt(0)===g;let P;d?(o.root="/",P=1):P=0;let u=-1,s=0,t=-1,i=!0,n=h.length-1,r=0;for(;n>=P;--n){const a=h.charCodeAt(n);if(a===g){if(!i){s=n+1;break}continue}t===-1&&(i=!1,t=n+1),a===A?u===-1?u=n:r!==1&&(r=1):u!==-1&&(r=-1)}if(t!==-1){const a=s===0&&d?1:s;u===-1||r===0||r===1&&u===t-1&&u===s+1?o.base=o.name=h.slice(a,t):(o.name=h.slice(a,u),o.base=h.slice(a,t),o.ext=h.slice(u,t))}return s>0?o.dir=h.slice(0,s-1):d&&(o.dir="/"),o},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(ie[36],se([0,1]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeProcessEnvironment=e.TerminateResponseCode=e.Source=void 0;var v;(function(T){T[T.stdout=0]="stdout",T[T.stderr=1]="stderr"})(v=e.Source||(e.Source={}));var R;(function(T){T[T.Success=0]="Success",T[T.Unknown=1]="Unknown",T[T.AccessDenied=2]="AccessDenied",T[T.ProcessNotFound=3]="ProcessNotFound"})(R=e.TerminateResponseCode||(e.TerminateResponseCode={}));function p(T,...D){const A=D.reduce((E,b)=>(E[b]=!0,E),{}),g=[/^ELECTRON_.+$/,/^VSCODE_(?!SHELL_LOGIN).+$/,/^SNAP(|_.*)$/,/^GDK_PIXBUF_.+$/,/^CODE_SERVER_.+$/,/^CS_.+$/];Object.keys(T).filter(E=>!A[E]).forEach(E=>{for(let b=0;b<g.length;b++)if(E.search(g[b])!==-1){delete T[E];break}})}e.sanitizeProcessEnvironment=p}),define(ie[37],se([0,1,2]),function(J,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(D){this._highResolution=R&&D,this._startTime=this._now(),this._stopTime=-1}static create(D=!0){return new p(D)}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(ie[4],se([0,1,8,26,3,35,37]),function(J,e,v,R,p,T,D){"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;let A=!1,g=!1;var C;(function(s){s.None=()=>p.Disposable.None;function t(W){if(g){const{onListenerDidAdd:z}=W,V=w.create();let f=0;W.onListenerDidAdd=()=>{++f==2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),V.print()),z?.()}}}function i(W){return(z,V=null,f)=>{let c=!1,m;return m=W(S=>{if(!c)return m?m.dispose():c=!0,z.call(V,S)},null,f),c&&m.dispose(),m}}s.once=i;function n(W,z,V){return G((f,c=null,m)=>W(S=>f.call(c,z(S)),null,m),V)}s.map=n;function r(W,z,V){return G((f,c=null,m)=>W(S=>{z(S),f.call(c,S)},null,m),V)}s.forEach=r;function a(W,z,V){return G((f,c=null,m)=>W(S=>z(S)&&f.call(c,S),null,m),V)}s.filter=a;function _(W){return W}s.signal=_;function F(...W){return(z,V=null,f)=>(0,p.combinedDisposable)(...W.map(c=>c(m=>z.call(V,m),null,f)))}s.any=F;function H(W,z,V,f){let c=V;return n(W,m=>(c=z(c,m),c),f)}s.reduce=H;function G(W,z){let V;const f={onFirstListenerAdd(){V=W(c.fire,c)},onLastListenerRemove(){V.dispose()}};z||t(f);const c=new I(f);return z&&z.add(c),c.event}function re(W,z,V=100,f=!1,c,m){let S,N,K,Z=0;const ae={leakWarningThreshold:c,onFirstListenerAdd(){S=W(fe=>{Z++,N=z(N,fe),f&&!K&&(le.fire(N),N=void 0),clearTimeout(K),K=setTimeout(()=>{const ge=N;N=void 0,K=void 0,(!f||Z>1)&&le.fire(ge),Z=0},V)})},onLastListenerRemove(){S.dispose()}};m||t(ae);const le=new I(ae);return m&&m.add(le),le.event}s.debounce=re;function oe(W,z=(f,c)=>f===c,V){let f=!0,c;return a(W,m=>{const S=f||!z(m,c);return f=!1,c=m,S},V)}s.latch=oe;function ce(W,z,V){return[s.filter(W,z,V),s.filter(W,f=>!z(f),V)]}s.split=ce;function Q(W,z=!1,V=[]){let f=V.slice(),c=W(N=>{f?f.push(N):S.fire(N)});const m=()=>{f&&f.forEach(N=>S.fire(N)),f=null},S=new I({onFirstListenerAdd(){c||(c=W(N=>S.fire(N)))},onFirstListenerDidAdd(){f&&(z?setTimeout(m):m())},onLastListenerRemove(){c&&c.dispose(),c=null}});return S.event}s.buffer=Q;class Y{constructor(z){this.event=z}map(z){return new Y(n(this.event,z))}forEach(z){return new Y(r(this.event,z))}filter(z){return new Y(a(this.event,z))}reduce(z,V){return new Y(H(this.event,z,V))}latch(){return new Y(oe(this.event))}debounce(z,V=100,f=!1,c){return new Y(re(this.event,z,V,f,c))}on(z,V,f){return this.event(z,V,f)}once(z,V,f){return i(this.event)(z,V,f)}}function te(W){return new Y(W)}s.chain=te;function ee(W,z,V=f=>f){const f=(...N)=>S.fire(V(...N)),c=()=>W.on(z,f),m=()=>W.removeListener(z,f),S=new I({onFirstListenerAdd:c,onLastListenerRemove:m});return S.event}s.fromNodeEventEmitter=ee;function x(W,z,V=f=>f){const f=(...N)=>S.fire(V(...N)),c=()=>W.addEventListener(z,f),m=()=>W.removeEventListener(z,f),S=new I({onFirstListenerAdd:c,onLastListenerRemove:m});return S.event}s.fromDOMEventEmitter=x;function U(W){return new Promise(z=>i(W)(z))}s.toPromise=U;function k(W,z){return z(void 0),W(V=>z(V))}s.runAndSubscribe=k;function $(W,z){let V=null;function f(m){V?.dispose(),V=new p.DisposableStore,z(m,V)}f(void 0);const c=W(m=>f(m));return(0,p.toDisposable)(()=>{c.dispose(),V?.dispose()})}s.runAndSubscribeWithStore=$})(C=e.Event||(e.Event={}));class E{constructor(t){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${t}_${E._idPool++}`}start(t){this._stopWatch=new D.StopWatch(!0),this._listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this._elapsedOverall+=t,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${t.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}E._idPool=0;let b=-1;function O(s){const t=b;return b=s,{dispose(){b=t}}}e.setGlobalLeakWarningThreshold=O;class L{constructor(t,i=Math.random().toString(18).slice(2,5)){this.customThreshold=t,this.name=i,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(t,i){let n=b;if(typeof this.customThreshold=="number"&&(n=this.customThreshold),n<=0||i<n)return;this._stacks||(this._stacks=new Map);const r=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,r+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=n*.5;let a,_=0;for(const[F,H]of this._stacks)(!a||_<H)&&(a=F,_=H);console.warn(`[${this.name}] potential listener LEAK detected, having ${i} listeners already. MOST frequent listener (${_}):`),console.warn(a)}return()=>{const a=this._stacks.get(t.value)||0;this._stacks.set(t.value,a-1)}}}class w{constructor(t){this.value=t}static create(){return new w(new Error().stack??"")}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}}class l{constructor(t,i,n){this.callback=t,this.callbackThis=i,this.stack=n,this.subscription=new p.SafeDisposable}invoke(t){this.callback.call(this.callbackThis,t)}}class I{constructor(t){this._disposed=!1,this._options=t,this._leakageMon=b>0?new L(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=this._options?._profName?new E(this._options._profName):void 0}dispose(){if(!this._disposed){if(this._disposed=!0,this._listeners){if(A){const t=Array.from(this._listeners);queueMicrotask(()=>{for(const i of t)i.subscription.isset()&&(i.subscription.unset(),i.stack?.print())})}this._listeners.clear()}this._deliveryQueue?.clear(),this._options?.onLastListenerRemove?.(),this._leakageMon?.dispose()}}get event(){return this._event||(this._event=(t,i,n)=>{this._listeners||(this._listeners=new T.LinkedList);const r=this._listeners.isEmpty();r&&this._options?.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);let a,_;this._leakageMon&&this._listeners.size>=30&&(_=w.create(),a=this._leakageMon.check(_,this._listeners.size+1)),A&&(_=_??w.create());const F=new l(t,i,_),H=this._listeners.push(F);r&&this._options?.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options?.onListenerDidAdd&&this._options.onListenerDidAdd(this,t,i);const G=F.subscription.set(()=>{a&&a(),this._disposed||(H(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return n instanceof p.DisposableStore?n.add(G):Array.isArray(n)&&n.push(G),G}),this._event}fire(t){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new T.LinkedList);for(let i of this._listeners)this._deliveryQueue.push([i,t]);for(this._perfMon?.start(this._deliveryQueue.size);this._deliveryQueue.size>0;){const[i,n]=this._deliveryQueue.shift();try{i.invoke(n)}catch(r){(0,v.onUnexpectedError)(r)}}this._perfMon?.stop()}}hasListeners(){return this._listeners?!this._listeners.isEmpty():!1}}e.Emitter=I;class M extends I{async fireAsync(t,i,n){if(!!this._listeners){this._asyncDeliveryQueue||(this._asyncDeliveryQueue=new T.LinkedList);for(const r of this._listeners)this._asyncDeliveryQueue.push([r,t]);for(;this._asyncDeliveryQueue.size>0&&!i.isCancellationRequested;){const[r,a]=this._asyncDeliveryQueue.shift(),_=[],F={...a,token:i,waitUntil:H=>{if(Object.isFrozen(_))throw new Error("waitUntil can NOT be called asynchronous");n&&(H=n(H,r.callback)),_.push(H)}};try{r.invoke(F)}catch(H){(0,v.onUnexpectedError)(H);continue}Object.freeze(_),await Promise.allSettled(_).then(H=>{for(const G of H)G.status==="rejected"&&(0,v.onUnexpectedError)(G.reason)})}}}}e.AsyncEmitter=M;class B extends I{constructor(t){super(t);this._isPaused=0,this._eventQueue=new T.LinkedList,this._mergeFn=t?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused==0)if(this._mergeFn){const t=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(t))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(t){this._listeners&&(this._isPaused!==0?this._eventQueue.push(t):super.fire(t))}}e.PauseableEmitter=B;class h extends B{constructor(t){super(t);this._delay=t.delay??100}fire(t){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(t)}}e.DebounceEmitter=h;class o extends I{constructor(t){super(t);this._queuedEvents=[],this._mergeFn=t?.merge}fire(t){this._queuedEvents.push(t),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(i=>super.fire(i)),this._queuedEvents=[]})}}e.MicrotaskEmitter=o;class d{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new I({onFirstListenerAdd:()=>this.onFirstListenerAdd(),onLastListenerRemove:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(t){const i={event:t,listener:null};this.events.push(i),this.hasListeners&&this.hook(i);const n=()=>{this.hasListeners&&this.unhook(i);const r=this.events.indexOf(i);this.events.splice(r,1)};return(0,p.toDisposable)((0,R.once)(n))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(t=>this.hook(t))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(t=>this.unhook(t))}hook(t){t.listener=t.event(i=>this.emitter.fire(i))}unhook(t){t.listener&&t.listener.dispose(),t.listener=null}dispose(){this.emitter.dispose()}}e.EventMultiplexer=d;class P{constructor(){this.buffers=[]}wrapEvent(t){return(i,n,r)=>t(a=>{const _=this.buffers[this.buffers.length-1];_?_.push(()=>i.call(n,a)):i.call(n,a)},void 0,r)}bufferEvents(t){const i=[];this.buffers.push(i);const n=t();return this.buffers.pop(),i.forEach(r=>r()),n}}e.EventBufferer=P;class u{constructor(){this.listening=!1,this.inputEvent=C.None,this.inputEventListener=p.Disposable.None,this.emitter=new I({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(t){this.inputEvent=t,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=t(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}e.Relay=u}),define(ie[10],se([0,1,4]),function(J,e,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const R=Object.freeze(function(A,g){const C=setTimeout(A.bind(g),0);return{dispose(){clearTimeout(C)}}});var p;(function(A){function g(C){return C===A.None||C===A.Cancelled||C instanceof T?!0:!C||typeof C!="object"?!1:typeof C.isCancellationRequested=="boolean"&&typeof C.onCancellationRequested=="function"}A.isCancellationToken=g,A.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:v.Event.None}),A.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:R})})(p=e.CancellationToken||(e.CancellationToken={}));class T{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?R:(this._emitter||(this._emitter=new v.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class D{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 T),this._token}cancel(){this._token?this._token instanceof T&&this._token.cancel():this._token=p.Cancelled}dispose(g=!1){g&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof T&&this._token.dispose():this._token=p.None}}e.CancellationTokenSource=D}),define(ie[38],se([0,1,10]),function(J,e,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCachedComputed=e.Cache=void 0;class R{constructor(D){this.task=D,this.result=null}get(){if(this.result)return this.result;const D=new v.CancellationTokenSource,A=this.task(D.token);return this.result={promise:A,dispose:()=>{this.result=null,D.cancel(),D.dispose()}},this.result}}e.Cache=R;class p{constructor(D){this.computeFn=D,this.lastCache=void 0,this.lastArgKey=void 0}get(D){const A=JSON.stringify(D);return this.lastArgKey!==A&&(this.lastArgKey=A,this.lastCache=this.computeFn(D)),this.lastCache}}e.LRUCachedComputed=p}),define(ie[39],se([0,1,8,3]),function(J,e,v,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prefixedStream=e.prefixedReadable=e.transform=e.toReadable=e.emptyStream=e.toStream=e.peekStream=e.listenStream=e.consumeStream=e.peekReadable=e.consumeReadable=e.newWriteableStream=e.isReadableBufferedStream=e.isReadableStream=void 0;function p(h){const o=h;return o?[o.on,o.pause,o.resume,o.destroy].every(d=>typeof d=="function"):!1}e.isReadableStream=p;function T(h){const o=h;return o?p(o.stream)&&Array.isArray(o.buffer)&&typeof o.ended=="boolean":!1}e.isReadableBufferedStream=T;function D(h,o){return new A(h,o)}e.newWriteableStream=D;class A{constructor(o,d){this.reducer=o,this.options=d,this.state={flowing:!1,ended:!1,destroyed:!1},this.buffer={data:[],error:[]},this.listeners={data:[],error:[],end:[]},this.pendingWritePromises=[]}pause(){this.state.destroyed||(this.state.flowing=!1)}resume(){this.state.destroyed||this.state.flowing||(this.state.flowing=!0,this.flowData(),this.flowErrors(),this.flowEnd())}write(o){if(!this.state.destroyed){if(this.state.flowing)this.emitData(o);else if(this.buffer.data.push(o),typeof this.options?.highWaterMark=="number"&&this.buffer.data.length>this.options.highWaterMark)return new Promise(d=>this.pendingWritePromises.push(d))}}error(o){this.state.destroyed||(this.state.flowing?this.emitError(o):this.buffer.error.push(o))}end(o){this.state.destroyed||(typeof o!="undefined"&&this.write(o),this.state.flowing?(this.emitEnd(),this.destroy()):this.state.ended=!0)}emitData(o){this.listeners.data.slice(0).forEach(d=>d(o))}emitError(o){this.listeners.error.length===0?(0,v.onUnexpectedError)(o):this.listeners.error.slice(0).forEach(d=>d(o))}emitEnd(){this.listeners.end.slice(0).forEach(o=>o())}on(o,d){if(!this.state.destroyed)switch(o){case"data":this.listeners.data.push(d),this.resume();break;case"end":this.listeners.end.push(d),this.state.flowing&&this.flowEnd()&&this.destroy();break;case"error":this.listeners.error.push(d),this.state.flowing&&this.flowErrors();break}}removeListener(o,d){if(this.state.destroyed)return;let P;switch(o){case"data":P=this.listeners.data;break;case"end":P=this.listeners.end;break;case"error":P=this.listeners.error;break}if(P){const u=P.indexOf(d);u>=0&&P.splice(u,1)}}flowData(){if(this.buffer.data.length>0){const o=this.reducer(this.buffer.data);this.emitData(o),this.buffer.data.length=0;const d=[...this.pendingWritePromises];this.pendingWritePromises.length=0,d.forEach(P=>P())}}flowErrors(){if(this.listeners.error.length>0){for(const o of this.buffer.error)this.emitError(o);this.buffer.error.length=0}}flowEnd(){return this.state.ended?(this.emitEnd(),this.listeners.end.length>0):!1}destroy(){this.state.destroyed||(this.state.destroyed=!0,this.state.ended=!0,this.buffer.data.length=0,this.buffer.error.length=0,this.listeners.data.length=0,this.listeners.error.length=0,this.listeners.end.length=0,this.pendingWritePromises.length=0)}}function g(h,o){const d=[];let P;for(;(P=h.read())!==null;)d.push(P);return o(d)}e.consumeReadable=g;function C(h,o,d){const P=[];let u;for(;(u=h.read())!==null&&P.length<d;)P.push(u);return u===null&&P.length>0?o(P):{read:()=>{if(P.length>0)return P.shift();if(typeof u!="undefined"){const s=u;return u=void 0,s}return h.read()}}}e.peekReadable=C;function E(h,o){return new Promise((d,P)=>{const u=[];b(h,{onData:s=>{o&&u.push(s)},onError:s=>{o?P(s):d(void 0)},onEnd:()=>{d(o?o(u):void 0)}})})}e.consumeStream=E;function b(h,o){let d=!1;return h.on("error",P=>{d||o.onError(P)}),h.on("end",()=>{d||o.onEnd()}),h.on("data",P=>{d||o.onData(P)}),(0,R.toDisposable)(()=>d=!0)}e.listenStream=b;function O(h,o){return new Promise((d,P)=>{const u=new R.DisposableStore,s=[],t=r=>{if(s.push(r),s.length>o)return u.dispose(),h.pause(),d({stream:h,buffer:s,ended:!1})},i=r=>P(r),n=()=>d({stream:h,buffer:s,ended:!0});u.add((0,R.toDisposable)(()=>h.removeListener("error",i))),h.on("error",i),u.add((0,R.toDisposable)(()=>h.removeListener("end",n))),h.on("end",n),u.add((0,R.toDisposable)(()=>h.removeListener("data",t))),h.on("data",t)})}e.peekStream=O;function L(h,o){const d=D(o);return d.end(h),d}e.toStream=L;function w(){const h=D(()=>{throw new Error("not supported")});return h.end(),h}e.emptyStream=w;function l(h){let o=!1;return{read:()=>o?null:(o=!0,h)}}e.toReadable=l;function I(h,o,d){const P=D(d);return b(h,{onData:u=>P.write(o.data(u)),onError:u=>P.error(o.error?o.error(u):u),onEnd:()=>P.end()}),P}e.transform=I;function M(h,o,d){let P=!1;return{read:()=>{const u=o.read();return P?u:(P=!0,u!==null?d([h,u]):h)}}}e.prefixedReadable=M;function B(h,o,d){let P=!1;const u=D(d);return b(o,{onData:s=>P?u.write(s):(P=!0,u.write(d([h,s]))),onError:s=>u.error(s),onEnd:()=>{P||(P=!0,u.write(h)),u.end()}}),u}e.prefixedStream=B}),define(ie[20],se([0,1,39]),function(J,e,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeBase64=e.decodeBase64=e.prefixedBufferStream=e.prefixedBufferReadable=e.newWriteableBufferStream=e.streamToBufferReadableStream=e.bufferToStream=e.bufferedStreamToBuffer=e.streamToBuffer=e.bufferToReadable=e.readableToBuffer=e.writeUInt8=e.readUInt8=e.writeUInt32LE=e.readUInt32LE=e.writeUInt32BE=e.readUInt32BE=e.writeUInt16LE=e.readUInt16LE=e.VSBuffer=void 0;const R=typeof Buffer!="undefined";let p,T;class D{constructor(a){this.buffer=a,this.byteLength=this.buffer.byteLength}static alloc(a){return R?new D(Buffer.allocUnsafe(a)):new D(new Uint8Array(a))}static wrap(a){return R&&!Buffer.isBuffer(a)&&(a=Buffer.from(a.buffer,a.byteOffset,a.byteLength)),new D(a)}static fromString(a,_){return!(_?.dontUseNodeBuffer||!1)&&R?new D(Buffer.from(a)):(p||(p=new TextEncoder),new D(p.encode(a)))}static fromByteArray(a){const _=D.alloc(a.length);for(let F=0,H=a.length;F<H;F++)_.buffer[F]=a[F];return _}static concat(a,_){if(typeof _=="undefined"){_=0;for(let G=0,re=a.length;G<re;G++)_+=a[G].byteLength}const F=D.alloc(_);let H=0;for(let G=0,re=a.length;G<re;G++){const oe=a[G];F.set(oe,H),H+=oe.byteLength}return F}clone(){const a=D.alloc(this.byteLength);return a.set(this),a}toString(){return R?this.buffer.toString():(T||(T=new TextDecoder),T.decode(this.buffer))}slice(a,_){return new D(this.buffer.subarray(a,_))}set(a,_){if(a instanceof D)this.buffer.set(a.buffer,_);else if(a instanceof Uint8Array)this.buffer.set(a,_);else if(a instanceof ArrayBuffer)this.buffer.set(new Uint8Array(a),_);else if(ArrayBuffer.isView(a))this.buffer.set(new Uint8Array(a.buffer,a.byteOffset,a.byteLength),_);else throw new Error("Unknown argument 'array'")}readUInt32BE(a){return C(this.buffer,a)}writeUInt32BE(a,_){E(this.buffer,a,_)}readUInt32LE(a){return b(this.buffer,a)}writeUInt32LE(a,_){O(this.buffer,a,_)}readUInt8(a){return L(this.buffer,a)}writeUInt8(a,_){w(this.buffer,a,_)}}e.VSBuffer=D;function A(r,a){return r[a+0]<<0>>>0|r[a+1]<<8>>>0}e.readUInt16LE=A;function g(r,a,_){r[_+0]=a&255,a=a>>>8,r[_+1]=a&255}e.writeUInt16LE=g;function C(r,a){return r[a]*2**24+r[a+1]*2**16+r[a+2]*2**8+r[a+3]}e.readUInt32BE=C;function E(r,a,_){r[_+3]=a,a=a>>>8,r[_+2]=a,a=a>>>8,r[_+1]=a,a=a>>>8,r[_]=a}e.writeUInt32BE=E;function b(r,a){return r[a+0]<<0>>>0|r[a+1]<<8>>>0|r[a+2]<<16>>>0|r[a+3]<<24>>>0}e.readUInt32LE=b;function O(r,a,_){r[_+0]=a&255,a=a>>>8,r[_+1]=a&255,a=a>>>8,r[_+2]=a&255,a=a>>>8,r[_+3]=a&255}e.writeUInt32LE=O;function L(r,a){return r[a]}e.readUInt8=L;function w(r,a,_){r[_]=a}e.writeUInt8=w;function l(r){return v.consumeReadable(r,a=>D.concat(a))}e.readableToBuffer=l;function I(r){return v.toReadable(r)}e.bufferToReadable=I;function M(r){return v.consumeStream(r,a=>D.concat(a))}e.streamToBuffer=M;async function B(r){return r.ended?D.concat(r.buffer):D.concat([...r.buffer,await M(r.stream)])}e.bufferedStreamToBuffer=B;function h(r){return v.toStream(r,a=>D.concat(a))}e.bufferToStream=h;function o(r){return v.transform(r,{data:a=>typeof a=="string"?D.fromString(a):D.wrap(a)},a=>D.concat(a))}e.streamToBufferReadableStream=o;function d(r){return v.newWriteableStream(a=>D.concat(a),r)}e.newWriteableBufferStream=d;function P(r,a){return v.prefixedReadable(r,a,_=>D.concat(_))}e.prefixedBufferReadable=P;function u(r,a){return v.prefixedStream(r,a,_=>D.concat(_))}e.prefixedBufferStream=u;function s(r){let a=0,_=0,F=0;const H=new Uint8Array(Math.floor(r.length/4*3)),G=oe=>{switch(_){case 3:H[F++]=a|oe,_=0;break;case 2:H[F++]=a|oe>>>2,a=oe<<6,_=3;break;case 1:H[F++]=a|oe>>>4,a=oe<<4,_=2;break;default:a=oe<<2,_=1}};for(let oe=0;oe<r.length;oe++){const ce=r.charCodeAt(oe);if(ce>=65&&ce<=90)G(ce-65);else if(ce>=97&&ce<=122)G(ce-97+26);else if(ce>=48&&ce<=57)G(ce-48+52);else if(ce===43||ce===45)G(62);else if(ce===47||ce===95)G(63);else{if(ce===61)break;throw new SyntaxError(`Unexpected base64 character ${r[oe]}`)}}const re=F;for(;_>0;)G(0);return D.wrap(H).slice(0,re)}e.decodeBase64=s;const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function n({buffer:r},a=!0,_=!1){const F=_?i:t;let H="";const G=r.byteLength%3;let re=0;for(;re<r.byteLength-G;re+=3){const oe=r[re+0],ce=r[re+1],Q=r[re+2];H+=F[oe>>>2],H+=F[(oe<<4|ce>>>4)&63],H+=F[(ce<<2|Q>>>6)&63],H+=F[Q&63]}if(G===1){const oe=r[re+0];H+=F[oe>>>2],H+=F[oe<<4&63],a&&(H+="==")}else if(G===2){const oe=r[re+0],ce=r[re+1];H+=F[oe>>>2],H+=F[(oe<<4|ce>>>4)&63],H+=F[ce<<2&63],a&&(H+="=")}return H}e.encodeBase64=n}),define(ie[11],se([0,1,38,34]),function(J,e,v,R){"use strict";var p;Object.defineProperty(e,"__esModule",{value:!0}),e.InvisibleCharacters=e.AmbiguousCharacters=e.noBreakWhitespace=e.getLeftDeleteOffset=e.GraphemeBreakType=e.getGraphemeBreakType=e.singleLetterHash=e.getNLines=e.uppercaseFirstLetter=e.containsUppercaseCharacter=e.fuzzyContains=e.stripUTF8BOM=e.startsWithUTF8BOM=e.UTF8_BOM_CHARACTER=e.removeAnsiEscapeCodes=e.lcut=e.isEmojiImprecise=e.isFullWidthCharacter=e.containsUnusualLineTerminators=e.UNUSUAL_LINE_TERMINATORS=e.isBasicASCII=e.containsRTL=e.getCharContainingOffset=e.prevCharLength=e.nextCharLength=e.GraphemeIterator=e.CodePointIterator=e.getNextCodePoint=e.computeCodePoint=e.isLowSurrogate=e.isHighSurrogate=e.commonSuffixLength=e.commonPrefixLength=e.startsWithIgnoreCase=e.equalsIgnoreCase=e.isUpperAsciiLetter=e.isLowerAsciiLetter=e.compareSubstringIgnoreCase=e.compareIgnoreCase=e.compareSubstring=e.compare=e.lastNonWhitespaceIndex=e.getLeadingWhitespace=e.firstNonWhitespaceIndex=e.splitLines=e.regExpFlags=e.regExpContainsBackreference=e.regExpLeadsToEndlessLoop=e.createRegExp=e.stripWildcards=e.convertSimple2RegExpPattern=e.rtrim=e.ltrim=e.trim=e.truncate=e.count=e.escapeRegExpCharacters=e.escape=e.format2=e.format=e.isFalsyOrWhitespace=void 0;function T(y){return!y||typeof y!="string"?!0:y.trim().length===0}e.isFalsyOrWhitespace=T;const D=/{(\d+)}/g;function A(y,...q){return q.length===0?y:y.replace(D,function(j,X){const ne=parseInt(X,10);return isNaN(ne)||ne<0||ne>=q.length?j:q[ne]})}e.format=A;const g=/{([^}]+)}/g;function C(y,q){return y.replace(g,(j,X)=>q[X]??j)}e.format2=C;function E(y){return y.replace(/[<>&]/g,function(q){switch(q){case"<":return"<";case">":return">";case"&":return"&";default:return q}})}e.escape=E;function b(y){return y.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}e.escapeRegExpCharacters=b;function O(y,q){let j=0;const X=q.charCodeAt(0);for(let ne=y.length-1;ne>=0;ne--)y.charCodeAt(ne)===X&&j++;return j}e.count=O;function L(y,q,j="\u2026"){return y.length<=q?y:`${y.substr(0,q)}${j}`}e.truncate=L;function w(y,q=" "){const j=l(y,q);return I(j,q)}e.trim=w;function l(y,q){if(!y||!q)return y;const j=q.length;if(j===0||y.length===0)return y;let X=0;for(;y.indexOf(q,X)===X;)X=X+j;return y.substring(X)}e.ltrim=l;function I(y,q){if(!y||!q)return y;const j=q.length,X=y.length;if(j===0||X===0)return y;let ne=X,ue=-1;for(;ue=y.lastIndexOf(q,ne-1),!(ue===-1||ue+j!==ne);){if(ue===0)return"";ne=ue}return y.substring(0,ne)}e.rtrim=I;function M(y){return y.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}e.convertSimple2RegExpPattern=M;function B(y){return y.replace(/\*/g,"")}e.stripWildcards=B;function h(y,q,j={}){if(!y)throw new Error("Cannot create regex from empty string");q||(y=b(y)),j.wholeWord&&(/\B/.test(y.charAt(0))||(y="\\b"+y),/\B/.test(y.charAt(y.length-1))||(y=y+"\\b"));let X="";return j.global&&(X+="g"),j.matchCase||(X+="i"),j.multiline&&(X+="m"),j.unicode&&(X+="u"),new RegExp(y,X)}e.createRegExp=h;function o(y){return y.source==="^"||y.source==="^$"||y.source==="$"||y.source==="^\\s*$"?!1:!!(y.exec("")&&y.lastIndex===0)}e.regExpLeadsToEndlessLoop=o;function d(y){return!!y.match(/([^\\]|^)(\\\\)*\\\d+/)}e.regExpContainsBackreference=d;function P(y){return(y.global?"g":"")+(y.ignoreCase?"i":"")+(y.multiline?"m":"")+(y.unicode?"u":"")}e.regExpFlags=P;function u(y){return y.split(/\r\n|\r|\n/)}e.splitLines=u;function s(y){for(let q=0,j=y.length;q<j;q++){const X=y.charCodeAt(q);if(X!==32&&X!==9)return q}return-1}e.firstNonWhitespaceIndex=s;function t(y,q=0,j=y.length){for(let X=q;X<j;X++){const ne=y.charCodeAt(X);if(ne!==32&&ne!==9)return y.substring(q,X)}return y.substring(q,j)}e.getLeadingWhitespace=t;function i(y,q=y.length-1){for(let j=q;j>=0;j--){const X=y.charCodeAt(j);if(X!==32&&X!==9)return j}return-1}e.lastNonWhitespaceIndex=i;function n(y,q){return y<q?-1:y>q?1:0}e.compare=n;function r(y,q,j=0,X=y.length,ne=0,ue=q.length){for(;j<X&&ne<ue;j++,ne++){let ve=y.charCodeAt(j),he=q.charCodeAt(ne);if(ve<he)return-1;if(ve>he)return 1}const de=X-j,be=ue-ne;return de<be?-1:de>be?1:0}e.compareSubstring=r;function a(y,q){return _(y,q,0,y.length,0,q.length)}e.compareIgnoreCase=a;function _(y,q,j=0,X=y.length,ne=0,ue=q.length){for(;j<X&&ne<ue;j++,ne++){let ve=y.charCodeAt(j),he=q.charCodeAt(ne);if(ve===he)continue;if(ve>=128||he>=128)return r(y.toLowerCase(),q.toLowerCase(),j,X,ne,ue);F(ve)&&(ve-=32),F(he)&&(he-=32);const me=ve-he;if(me!==0)return me}const de=X-j,be=ue-ne;return de<be?-1:de>be?1:0}e.compareSubstringIgnoreCase=_;function F(y){return y>=97&&y<=122}e.isLowerAsciiLetter=F;function H(y){return y>=65&&y<=90}e.isUpperAsciiLetter=H;function G(y,q){return y.length===q.length&&_(y,q)===0}e.equalsIgnoreCase=G;function re(y,q){const j=q.length;return q.length>y.length?!1:_(y,q,0,j)===0}e.startsWithIgnoreCase=re;function oe(y,q){let j,X=Math.min(y.length,q.length);for(j=0;j<X;j++)if(y.charCodeAt(j)!==q.charCodeAt(j))return j;return X}e.commonPrefixLength=oe;function ce(y,q){let j,X=Math.min(y.length,q.length);const ne=y.length-1,ue=q.length-1;for(j=0;j<X;j++)if(y.charCodeAt(ne-j)!==q.charCodeAt(ue-j))return j;return X}e.commonSuffixLength=ce;function Q(y){return 55296<=y&&y<=56319}e.isHighSurrogate=Q;function Y(y){return 56320<=y&&y<=57343}e.isLowSurrogate=Y;function te(y,q){return(y-55296<<10)+(q-56320)+65536}e.computeCodePoint=te;function ee(y,q,j){const X=y.charCodeAt(j);if(Q(X)&&j+1<q){const ne=y.charCodeAt(j+1);if(Y(ne))return te(X,ne)}return X}e.getNextCodePoint=ee;function x(y,q){const j=y.charCodeAt(q-1);if(Y(j)&&q>1){const X=y.charCodeAt(q-2);if(Q(X))return te(X,j)}return j}class U{constructor(q,j=0){this._str=q,this._len=q.length,this._offset=j}get offset(){return this._offset}setOffset(q){this._offset=q}prevCodePoint(){const q=x(this._str,this._offset);return this._offset-=q>=65536?2:1,q}nextCodePoint(){const q=ee(this._str,this._len,this._offset);return this._offset+=q>=65536?2:1,q}eol(){return this._offset>=this._len}}e.CodePointIterator=U;class k{constructor(q,j=0){this._iterator=new U(q,j)}get offset(){return this._iterator.offset}nextGraphemeLength(){const q=Ce.getInstance(),j=this._iterator,X=j.offset;let ne=q.getGraphemeBreakType(j.nextCodePoint());for(;!j.eol();){const ue=j.offset,de=q.getGraphemeBreakType(j.nextCodePoint());if(Ie(ne,de)){j.setOffset(ue);break}ne=de}return j.offset-X}prevGraphemeLength(){const q=Ce.getInstance(),j=this._iterator,X=j.offset;let ne=q.getGraphemeBreakType(j.prevCodePoint());for(;j.offset>0;){const ue=j.offset,de=q.getGraphemeBreakType(j.prevCodePoint());if(Ie(de,ne)){j.setOffset(ue);break}ne=de}return X-j.offset}eol(){return this._iterator.eol()}}e.GraphemeIterator=k;function $(y,q){return new k(y,q).nextGraphemeLength()}e.nextCharLength=$;function W(y,q){return new k(y,q).prevGraphemeLength()}e.prevCharLength=W;function z(y,q){q>0&&Y(y.charCodeAt(q))&&q--;const j=q+$(y,q);return[j-W(y,j),j]}e.getCharContainingOffset=z;const V=/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/;function f(y){return V.test(y)}e.containsRTL=f;const c=/^[\t\n\r\x20-\x7E]*$/;function m(y){return c.test(y)}e.isBasicASCII=m,e.UNUSUAL_LINE_TERMINATORS=/[\u2028\u2029]/;function S(y){return e.UNUSUAL_LINE_TERMINATORS.test(y)}e.containsUnusualLineTerminators=S;function N(y){return y>=11904&&y<=55215||y>=63744&&y<=64255||y>=65281&&y<=65374}e.isFullWidthCharacter=N;function K(y){return y>=127462&&y<=127487||y===8986||y===8987||y===9200||y===9203||y>=9728&&y<=10175||y===11088||y===11093||y>=127744&&y<=128591||y>=128640&&y<=128764||y>=128992&&y<=129008||y>=129280&&y<=129535||y>=129648&&y<=129782}e.isEmojiImprecise=K;function Z(y,q){if(y.length<q)return y;const j=/\b/g;let X=0;for(;j.test(y)&&!(y.length-j.lastIndex<q);)X=j.lastIndex,j.lastIndex+=1;return y.substring(X).replace(/^\s/,"")}e.lcut=Z;const ae=/\x1B\x5B[12]?K/g,le=/\x1b\[\d+m/g,fe=/\x1b\[0?m/g;function ge(y){return y&&(y=y.replace(ae,""),y=y.replace(le,""),y=y.replace(fe,"")),y}e.removeAnsiEscapeCodes=ge,e.UTF8_BOM_CHARACTER=String.fromCharCode(65279);function we(y){return!!(y&&y.length>0&&y.charCodeAt(0)===65279)}e.startsWithUTF8BOM=we;function Se(y){return we(y)?y.substr(1):y}e.stripUTF8BOM=Se;function Te(y,q){if(!y||!q||y.length<q.length)return!1;const j=q.length,X=y.toLowerCase();let ne=0,ue=-1;for(;ne<j;){const de=X.indexOf(q[ne],ue+1);if(de<0)return!1;ue=de,ne++}return!0}e.fuzzyContains=Te;function Me(y,q=!1){return y?(q&&(y=y.replace(/\\./g,"")),y.toLowerCase()!==y):!1}e.containsUppercaseCharacter=Me;function Ne(y){return y.charAt(0).toUpperCase()+y.slice(1)}e.uppercaseFirstLetter=Ne;function Fe(y,q=1){if(q===0)return"";let j=-1;do j=y.indexOf(`
`,j+1),q--;while(q>0&&j>=0);return j===-1?y:(y[j-1]==="\r"&&j--,y.substr(0,j))}e.getNLines=Fe;function Ue(y){const q=90-65+1;return y=y%(2*q),y<q?String.fromCharCode(97+y):String.fromCharCode(65+y-q)}e.singleLetterHash=Ue;function We(y){return Ce.getInstance().getGraphemeBreakType(y)}e.getGraphemeBreakType=We;function Ie(y,q){return y===0?q!==5&&q!==7:y===2&&q===3?!1:y===4||y===2||y===3||q===4||q===2||q===3?!0:!(y===8&&(q===8||q===9||q===11||q===12)||(y===11||y===9)&&(q===9||q===10)||(y===12||y===10)&&q===10||q===5||q===13||q===7||y===1||y===13&&q===14||y===6&&q===6)}var qe;(function(y){y[y.Other=0]="Other",y[y.Prepend=1]="Prepend",y[y.CR=2]="CR",y[y.LF=3]="LF",y[y.Control=4]="Control",y[y.Extend=5]="Extend",y[y.Regional_Indicator=6]="Regional_Indicator",y[y.SpacingMark=7]="SpacingMark",y[y.L=8]="L",y[y.V=9]="V",y[y.T=10]="T",y[y.LV=11]="LV",y[y.LVT=12]="LVT",y[y.ZWJ=13]="ZWJ",y[y.Extended_Pictographic=14]="Extended_Pictographic"})(qe=e.GraphemeBreakType||(e.GraphemeBreakType={}));class Ce{constructor(){this._data=Be()}static getInstance(){return Ce._INSTANCE||(Ce._INSTANCE=new Ce),Ce._INSTANCE}getGraphemeBreakType(q){if(q<32)return q===10?3:q===13?2:4;if(q<127)return 0;const j=this._data,X=j.length/3;let ne=1;for(;ne<=X;)if(q<j[3*ne])ne=2*ne;else if(q>j[3*ne+1])ne=2*ne+1;else return j[3*ne+2];return 0}}Ce._INSTANCE=null;function Be(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function $e(y,q){if(y===0)return 0;const j=ze(y,q);if(j!==void 0)return j;const X=new U(q,y);return X.prevCodePoint(),X.offset}e.getLeftDeleteOffset=$e;function ze(y,q){const j=new U(q,y);let X=j.prevCodePoint();for(;je(X)||X===65039||X===8419;){if(j.offset===0)return;X=j.prevCodePoint()}if(!K(X))return;let ne=j.offset;return ne>0&&j.prevCodePoint()===8205&&(ne=j.offset),ne}function je(y){return 127995<=y&&y<=127999}var Oe;(function(y){y[y.zwj=8205]="zwj",y[y.emojiVariantSelector=65039]="emojiVariantSelector",y[y.enclosingKeyCap=8419]="enclosingKeyCap"})(Oe||(Oe={})),e.noBreakWhitespace="\xA0";class _e{constructor(q){this.confusableDictionary=q}static getInstance(q){return _e.cache.get(Array.from(q))}static getLocales(){return _e._locales.getValue()}isAmbiguous(q){return this.confusableDictionary.has(q)}getPrimaryConfusable(q){return this.confusableDictionary.get(q)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}e.AmbiguousCharacters=_e,p=_e,_e.ambiguousCharacterData=new R.Lazy(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),_e.cache=new v.LRUCachedComputed(y=>{function q(he){const me=new Map;for(let ye=0;ye<he.length;ye+=2)me.set(he[ye],he[ye+1]);return me}function j(he,me){const ye=new Map(he);for(const[Le,Re]of me)ye.set(Le,Re);return ye}function X(he,me){if(!he)return me;const ye=new Map;for(const[Le,Re]of he)me.has(Le)&&ye.set(Le,Re);return ye}const ne=p.ambiguousCharacterData.getValue();let ue=y.filter(he=>!he.startsWith("_")&&he in ne);ue.length===0&&(ue=["_default"]);let de;for(const he of ue){const me=q(ne[he]);de=X(de,me)}const be=q(ne._common),ve=j(be,de);return new _e(ve)}),_e._locales=new R.Lazy(()=>Object.keys(_e.ambiguousCharacterData.getValue()).filter(y=>!y.startsWith("_")));class Ee{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(Ee.getRawData())),this._data}static isInvisibleCharacter(q){return Ee.getData().has(q)}static get codePoints(){return Ee.getData()}}e.InvisibleCharacters=Ee,Ee._data=void 0});var ke=this&&this.__classPrivateFieldSet||function(J,e,v,R,p){if(R==="m")throw new TypeError("Private method is not writable");if(R==="a"&&!p)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?J!==e||!p:!e.has(J))throw new TypeError("Cannot write private member to an object whose class did not declare it");return R==="a"?p.call(J,v):p?p.value=v:e.set(J,v),v},Pe=this&&this.__classPrivateFieldGet||function(J,e,v,R){if(v==="a"&&!R)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?J!==e||!R:!e.has(J))throw new TypeError("Cannot read private member from an object whose class did not declare it");return v==="m"?R:v==="a"?R.call(J):R?R.value:e.get(J)};define(ie[40],se([0,1,18,11]),function(J,e,v,R){"use strict";var p,T,D;Object.defineProperty(e,"__esModule",{value:!0}),e.ReadonlyMapView=e.LRUCache=e.LinkedMap=e.Touch=e.ResourceMap=e.TernarySearchTree=e.UriIterator=e.PathIterator=e.ConfigKeysIterator=e.StringIterator=e.setToString=e.mapToString=e.getOrSet=void 0;function A(s,t,i){let n=s.get(t);return n===void 0&&(n=i,s.set(t,n)),n}e.getOrSet=A;function g(s){const t=[];return s.forEach((i,n)=>{t.push(`${n} => ${i}`)}),`Map(${s.size}) {${t.join(", ")}}`}e.mapToString=g;function C(s){const t=[];return s.forEach(i=>{t.push(i)}),`Set(${s.size}) {${t.join(", ")}}`}e.setToString=C;class E{constructor(){this._value="",this._pos=0}reset(t){return this._value=t,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(t){const i=t.charCodeAt(0),n=this._value.charCodeAt(this._pos);return i-n}value(){return this._value[this._pos]}}e.StringIterator=E;class b{constructor(t=!0){this._caseSensitive=t}reset(t){return this._value=t,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let t=!0;for(;this._to<this._value.length;this._to++)if(this._value.charCodeAt(this._to)===46)if(t)this._from++;else break;else t=!1;return this}cmp(t){return this._caseSensitive?(0,R.compareSubstring)(t,this._value,0,t.length,this._from,this._to):(0,R.compareSubstringIgnoreCase)(t,this._value,0,t.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}e.ConfigKeysIterator=b;class O{constructor(t=!0,i=!0){this._splitOnBackslash=t,this._caseSensitive=i}reset(t){this._from=0,this._to=0,this._value=t,this._valueLen=t.length;for(let i=t.length-1;i>=0;i--,this._valueLen--){const n=this._value.charCodeAt(i);if(!(n===47||this._splitOnBackslash&&n===92))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let t=!0;for(;this._to<this._valueLen;this._to++){const i=this._value.charCodeAt(this._to);if(i===47||this._splitOnBackslash&&i===92)if(t)this._from++;else break;else t=!1}return this}cmp(t){return this._caseSensitive?(0,R.compareSubstring)(t,this._value,0,t.length,this._from,this._to):(0,R.compareSubstringIgnoreCase)(t,this._value,0,t.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}e.PathIterator=O;var L;(function(s){s[s.Scheme=1]="Scheme",s[s.Authority=2]="Authority",s[s.Path=3]="Path",s[s.Query=4]="Query",s[s.Fragment=5]="Fragment"})(L||(L={}));class w{constructor(t){this._ignorePathCasing=t,this._states=[],this._stateIdx=0}reset(t){return this._value=t,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new O(!1,!this._ignorePathCasing(t)),this._pathIterator.reset(t.path),this._pathIterator.value()&&this._states.push(3)),this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5),this._stateIdx=0,this}next(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(t){if(this._states[this._stateIdx]===1)return(0,R.compareIgnoreCase)(t,this._value.scheme);if(this._states[this._stateIdx]===2)return(0,R.compareIgnoreCase)(t,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(t);if(this._states[this._stateIdx]===4)return(0,R.compare)(t,this._value.query);if(this._states[this._stateIdx]===5)return(0,R.compare)(t,this._value.fragment);throw new Error}value(){if(this._states[this._stateIdx]===1)return this._value.scheme;if(this._states[this._stateIdx]===2)return this._value.authority;if(this._states[this._stateIdx]===3)return this._pathIterator.value();if(this._states[this._stateIdx]===4)return this._value.query;if(this._states[this._stateIdx]===5)return this._value.fragment;throw new Error}}e.UriIterator=w;class l{constructor(){this.height=1}isEmpty(){return!this.left&&!this.mid&&!this.right&&!this.value}rotateLeft(){const t=this.right;return this.right=t.left,t.left=this,this.updateHeight(),t.updateHeight(),t}rotateRight(){const t=this.left;return this.left=t.right,t.right=this,this.updateHeight(),t.updateHeight(),t}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){return this.left?.height??0}get heightRight(){return this.right?.height??0}}var I;(function(s){s[s.Left=-1]="Left",s[s.Mid=0]="Mid",s[s.Right=1]="Right"})(I||(I={}));class M{constructor(t){this._iter=t}static forUris(t=()=>!1){return new M(new w(t))}static forPaths(t=!1){return new M(new O(void 0,!t))}static forStrings(){return new M(new E)}static forConfigKeys(){return new M(new b)}clear(){this._root=void 0}fill(t,i){if(i){const n=i.slice(0);(0,v.shuffle)(n);for(let r of n)this.set(r,t)}else{const n=t.slice(0);(0,v.shuffle)(n);for(let r of n)this.set(r[0],r[1])}}set(t,i){const n=this._iter.reset(t);let r;this._root||(this._root=new l,this._root.segment=n.value());const a=[];for(r=this._root;;){const F=n.cmp(r.segment);if(F>0)r.left||(r.left=new l,r.left.segment=n.value()),a.push([-1,r]),r=r.left;else if(F<0)r.right||(r.right=new l,r.right.segment=n.value()),a.push([1,r]),r=r.right;else if(n.hasNext())n.next(),r.mid||(r.mid=new l,r.mid.segment=n.value()),a.push([0,r]),r=r.mid;else break}const _=r.value;r.value=i,r.key=t;for(let F=a.length-1;F>=0;F--){const H=a[F][1];H.updateHeight();const G=H.balanceFactor();if(G<-1||G>1){const re=a[F][0],oe=a[F+1][0];if(re===1&&oe===1)a[F][1]=H.rotateLeft();else if(re===-1&&oe===-1)a[F][1]=H.rotateRight();else if(re===1&&oe===-1)H.right=a[F+1][1]=a[F+1][1].rotateRight(),a[F][1]=H.rotateLeft();else if(re===-1&&oe===1)H.left=a[F+1][1]=a[F+1][1].rotateLeft(),a[F][1]=H.rotateRight();else throw new Error;if(F>0)switch(a[F-1][0]){case-1:a[F-1][1].left=a[F][1];break;case 1:a[F-1][1].right=a[F][1];break;case 0:a[F-1][1].mid=a[F][1];break}else this._root=a[0][1]}}return _}get(t){return this._getNode(t)?.value}_getNode(t){const i=this._iter.reset(t);let n=this._root;for(;n;){const r=i.cmp(n.segment);if(r>0)n=n.left;else if(r<0)n=n.right;else if(i.hasNext())i.next(),n=n.mid;else break}return n}has(t){const i=this._getNode(t);return!(i?.value===void 0&&i?.mid===void 0)}delete(t){return this._delete(t,!1)}deleteSuperstr(t){return this._delete(t,!0)}_delete(t,i){const n=this._iter.reset(t),r=[];let a=this._root;for(;a;){const _=n.cmp(a.segment);if(_>0)r.push([-1,a]),a=a.left;else if(_<0)r.push([1,a]),a=a.right;else if(n.hasNext())n.next(),r.push([0,a]),a=a.mid;else break}if(!!a){if(i?(a.left=void 0,a.mid=void 0,a.right=void 0,a.height=1):(a.key=void 0,a.value=void 0),!a.mid&&!a.value)if(a.left&&a.right){const _=this._min(a.right),{key:F,value:H,segment:G}=_;this._delete(_.key,!1),a.key=F,a.value=H,a.segment=G}else{const _=a.left??a.right;if(r.length>0){const[F,H]=r[r.length-1];switch(F){case-1:H.left=_;break;case 0:H.mid=_;break;case 1:H.right=_;break}}else this._root=_}for(let _=r.length-1;_>=0;_--){const F=r[_][1];F.updateHeight();const H=F.balanceFactor();if(H>1?(F.right.balanceFactor()>=0||(F.right=F.right.rotateRight()),r[_][1]=F.rotateLeft()):H<-1&&(F.left.balanceFactor()<=0||(F.left=F.left.rotateLeft()),r[_][1]=F.rotateRight()),_>0)switch(r[_-1][0]){case-1:r[_-1][1].left=r[_][1];break;case 1:r[_-1][1].right=r[_][1];break;case 0:r[_-1][1].mid=r[_][1];break}else this._root=r[0][1]}}}_min(t){for(;t.left;)t=t.left;return t}findSubstr(t){const i=this._iter.reset(t);let n=this._root,r;for(;n;){const a=i.cmp(n.segment);if(a>0)n=n.left;else if(a<0)n=n.right;else if(i.hasNext())i.next(),r=n.value||r,n=n.mid;else break}return n&&n.value||r}findSuperstr(t){const i=this._iter.reset(t);let n=this._root;for(;n;){const r=i.cmp(n.segment);if(r>0)n=n.left;else if(r<0)n=n.right;else if(i.hasNext())i.next(),n=n.mid;else return n.mid?this._entries(n.mid):void 0}}forEach(t){for(const[i,n]of this)t(n,i)}*[Symbol.iterator](){yield*this._entries(this._root)}*_entries(t){!t||(t.left&&(yield*this._entries(t.left)),t.value&&(yield[t.key,t.value]),t.mid&&(yield*this._entries(t.mid)),t.right&&(yield*this._entries(t.right)))}_isBalanced(){const t=i=>{if(!i)return!0;const n=i.balanceFactor();return n<-1||n>1?!1:t(i.left)&&t(i.right)};return t(this._root)}}e.TernarySearchTree=M;class B{constructor(t,i){this.uri=t,this.value=i}}class h{constructor(t,i){this[p]="ResourceMap",t instanceof h?(this.map=new Map(t.map),this.toKey=i??h.defaultToKey):(this.map=new Map,this.toKey=t??h.defaultToKey)}set(t,i){return this.map.set(this.toKey(t),new B(t,i)),this}get(t){return this.map.get(this.toKey(t))?.value}has(t){return this.map.has(this.toKey(t))}get size(){return this.map.size}clear(){this.map.clear()}delete(t){return this.map.delete(this.toKey(t))}forEach(t,i){typeof i!="undefined"&&(t=t.bind(i));for(let[n,r]of this.map)t(r.value,r.uri,this)}*values(){for(let t of this.map.values())yield t.value}*keys(){for(let t of this.map.values())yield t.uri}*entries(){for(let t of this.map.values())yield[t.uri,t.value]}*[(p=Symbol.toStringTag,Symbol.iterator)](){for(let[,t]of this.map)yield[t.uri,t.value]}}e.ResourceMap=h,h.defaultToKey=s=>s.toString();var o;(function(s){s[s.None=0]="None",s[s.AsOld=1]="AsOld",s[s.AsNew=2]="AsNew"})(o=e.Touch||(e.Touch={}));class d{constructor(){this[T]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,i=0){const n=this._map.get(t);if(!!n)return i!==0&&this.touch(n,i),n.value}set(t,i,n=0){let r=this._map.get(t);if(r)r.value=i,n!==0&&this.touch(r,n);else{switch(r={key:t,value:i,next:void 0,previous:void 0},n){case 0:this.addItemLast(r);break;case 1:this.addItemFirst(r);break;case 2:this.addItemLast(r);break;default:this.addItemLast(r);break}this._map.set(t,r),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){const i=this._map.get(t);if(!!i)return this._map.delete(t),this.removeItem(i),this._size--,i.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,i){const n=this._state;let r=this._head;for(;r;){if(i?t.bind(i)(r.value,r.key,this):t(r.value,r.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");r=r.next}}keys(){const t=this,i=this._state;let n=this._head;const r={[Symbol.iterator](){return r},next(){if(t._state!==i)throw new Error("LinkedMap got modified during iteration.");if(n){const a={value:n.key,done:!1};return n=n.next,a}else return{value:void 0,done:!0}}};return r}values(){const t=this,i=this._state;let n=this._head;const r={[Symbol.iterator](){return r},next(){if(t._state!==i)throw new Error("LinkedMap got modified during iteration.");if(n){const a={value:n.value,done:!1};return n=n.next,a}else return{value:void 0,done:!0}}};return r}entries(){const t=this,i=this._state;let n=this._head;const r={[Symbol.iterator](){return r},next(){if(t._state!==i)throw new Error("LinkedMap got modified during iteration.");if(n){const a={value:[n.key,n.value],done:!1};return n=n.next,a}else return{value:void 0,done:!0}}};return r}[(T=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let i=this._head,n=this.size;for(;i&&n>t;)this._map.delete(i.key),i=i.next,n--;this._head=i,this._size=n,i&&(i.previous=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{const i=t.next,n=t.previous;if(!i||!n)throw new Error("Invalid list");i.previous=n,n.next=i}t.next=void 0,t.previous=void 0,this._state++}touch(t,i){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(i!==1&&i!==2)){if(i===1){if(t===this._head)return;const n=t.next,r=t.previous;t===this._tail?(r.next=void 0,this._tail=r):(n.previous=r,r.next=n),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(i===2){if(t===this._tail)return;const n=t.next,r=t.previous;t===this._head?(n.previous=void 0,this._head=n):(n.previous=r,r.next=n),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){const t=[];return this.forEach((i,n)=>{t.push([n,i])}),t}fromJSON(t){this.clear();for(const[i,n]of t)this.set(i,n)}}e.LinkedMap=d;class P extends d{constructor(t,i=1){super();this._limit=t,this._ratio=Math.min(Math.max(0,i),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get ratio(){return this._ratio}set ratio(t){this._ratio=Math.min(Math.max(0,t),1),this.checkTrim()}get(t,i=2){return super.get(t,i)}peek(t){return super.get(t,0)}set(t,i){return super.set(t,i,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}e.LRUCache=P;class u{constructor(t){D.set(this,void 0),ke(this,D,t,"f")}get size(){return Pe(this,D,"f").size}forEach(t,i){Pe(this,D,"f").forEach(t,i)}get(t){return Pe(this,D,"f").get(t)}has(t){return Pe(this,D,"f").has(t)}entries(){return Pe(this,D,"f").entries()}keys(){return Pe(this,D,"f").keys()}values(){return Pe(this,D,"f").values()}[(D=new WeakMap,Symbol.iterator)](){return Pe(this,D,"f").entries()}}e.ReadonlyMapView=u}),define(ie[41],se([0,1,40]),function(J,e,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeAccents=e.normalizeNFD=e.normalizeNFC=void 0;const R=new v.LRUCache(1e4);function p(C){return g(C,"NFC",R)}e.normalizeNFC=p;const T=new v.LRUCache(1e4);function D(C){return g(C,"NFD",T)}e.normalizeNFD=D;const A=/[^\u0000-\u0080]/;function g(C,E,b){if(!C)return C;const O=b.get(C);if(O)return O;let L;return A.test(C)?L=C.normalize(E):L=C,b.set(C,L),L}e.removeAccents=function(){const C=/[\u0300-\u036f]/g;return function(E){return D(E).replace(C,"")}}()}),define(ie[9],se([0,1]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assertNever=e.withUndefinedAsNull=e.withNullAsUndefined=e.createProxyObject=e.getAllMethodNames=e.getAllPropertyNames=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.isObject=e.isStringArray=e.isString=e.isArray=void 0;function v(n){return Array.isArray(n)}e.isArray=v;function R(n){return typeof n=="string"}e.isString=R;function p(n){return Array.isArray(n)&&n.every(r=>R(r))}e.isStringArray=p;function T(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}e.isObject=T;function D(n){return typeof n=="number"&&!isNaN(n)}e.isNumber=D;function A(n){return!!n&&typeof n[Symbol.iterator]=="function"}e.isIterable=A;function g(n){return n===!0||n===!1}e.isBoolean=g;function C(n){return typeof n=="undefined"}e.isUndefined=C;function E(n){return!b(n)}e.isDefined=E;function b(n){return C(n)||n===null}e.isUndefinedOrNull=b;function O(n,r){if(!n)throw new Error(r?`Unexpected type, expected '${r}'`:"Unexpected type")}e.assertType=O;function L(n){if(b(n))throw new Error("Assertion Failed: argument is undefined or null");return n}e.assertIsDefined=L;function w(...n){const r=[];for(let a=0;a<n.length;a++){const _=n[a];if(b(_))throw new Error(`Assertion Failed: argument at index ${a} is undefined or null`);r.push(_)}return r}e.assertAllDefined=w;const l=Object.prototype.hasOwnProperty;function I(n){if(!T(n))return!1;for(let r in n)if(l.call(n,r))return!1;return!0}e.isEmptyObject=I;function M(n){return typeof n=="function"}e.isFunction=M;function B(...n){return n.length>0&&n.every(M)}e.areFunctions=B;function h(n,r){const a=Math.min(n.length,r.length);for(let _=0;_<a;_++)o(n[_],r[_])}e.validateConstraints=h;function o(n,r){if(R(r)){if(typeof n!==r)throw new Error(`argument does not match constraint: typeof ${r}`)}else if(M(r)){try{if(n instanceof r)return}catch{}if(!b(n)&&n.constructor===r||r.length===1&&r.call(void 0,n)===!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=o;function d(n){let r=[],a=Object.getPrototypeOf(n);for(;Object.prototype!==a;)r=r.concat(Object.getOwnPropertyNames(a)),a=Object.getPrototypeOf(a);return r}e.getAllPropertyNames=d;function P(n){const r=[];for(const a of d(n))typeof n[a]=="function"&&r.push(a);return r}e.getAllMethodNames=P;function u(n,r){const a=F=>function(){const H=Array.prototype.slice.call(arguments,0);return r(F,H)};let _={};for(const F of n)_[F]=a(F);return _}e.createProxyObject=u;function s(n){return n===null?void 0:n}e.withNullAsUndefined=s;function t(n){return typeof n=="undefined"?null:n}e.withUndefinedAsNull=t;function i(n,r="Unreachable"){throw new Error(r)}e.assertNever=i}),define(ie[21],se([0,1,5,2,11,9]),function(J,e,v,R,p,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomPath=e.parseLineAndColumnAware=e.indexOfPath=e.getDriveLetter=e.hasDriveLetter=e.isRootOrDriveLetter=e.sanitizeFilePath=e.isWindowsDriveLetter=e.isEqualOrParent=e.isEqual=e.isValidBasename=e.isUNC=e.getRoot=e.toPosixPath=e.toSlashes=e.isPathSeparator=void 0;function D(i){return i===47||i===92}e.isPathSeparator=D;function A(i){return i.replace(/[\\/]/g,v.posix.sep)}e.toSlashes=A;function g(i){return i.indexOf("/")===-1&&(i=A(i)),/^[a-zA-Z]:(\/|$)/.test(i)&&(i="/"+i),i}e.toPosixPath=g;function C(i,n=v.posix.sep){if(!i)return"";const r=i.length,a=i.charCodeAt(0);if(D(a)){if(D(i.charCodeAt(1))&&!D(i.charCodeAt(2))){let F=3;const H=F;for(;F<r&&!D(i.charCodeAt(F));F++);if(H!==F&&!D(i.charCodeAt(F+1))){for(F+=1;F<r;F++)if(D(i.charCodeAt(F)))return i.slice(0,F+1).replace(/[\\/]/g,n)}}return n}else if(M(a)&&i.charCodeAt(1)===58)return D(i.charCodeAt(2))?i.slice(0,2)+n:i.slice(0,2);let _=i.indexOf("://");if(_!==-1){for(_+=3;_<r;_++)if(D(i.charCodeAt(_)))return i.slice(0,_+1)}return""}e.getRoot=C;function E(i){if(!R.isWindows||!i||i.length<5)return!1;let n=i.charCodeAt(0);if(n!==92||(n=i.charCodeAt(1),n!==92))return!1;let r=2;const a=r;for(;r<i.length&&(n=i.charCodeAt(r),n!==92);r++);return!(a===r||(n=i.charCodeAt(r+1),isNaN(n)||n===92))}e.isUNC=E;const b=/[\\/:\*\?"<>\|]/g,O=/[\\/]/g,L=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])(\.(.*?))?$/i;function w(i,n=R.isWindows){const r=n?b:O;return!(!i||i.length===0||/^\s+$/.test(i)||(r.lastIndex=0,r.test(i))||n&&L.test(i)||i==="."||i===".."||n&&i[i.length-1]==="."||n&&i.length!==i.trim().length||i.length>255)}e.isValidBasename=w;function l(i,n,r){const a=i===n;return!r||a?a:!i||!n?!1:(0,p.equalsIgnoreCase)(i,n)}e.isEqual=l;function I(i,n,r,a=v.sep){if(i===n)return!0;if(!i||!n||n.length>i.length)return!1;if(r){if(!(0,p.startsWithIgnoreCase)(i,n))return!1;if(n.length===i.length)return!0;let F=n.length;return n.charAt(n.length-1)===a&&F--,i.charAt(F)===a}return n.charAt(n.length-1)!==a&&(n+=a),i.indexOf(n)===0}e.isEqualOrParent=I;function M(i){return i>=65&&i<=90||i>=97&&i<=122}e.isWindowsDriveLetter=M;function B(i,n){return R.isWindows&&i.endsWith(":")&&(i+=v.sep),(0,v.isAbsolute)(i)||(i=(0,v.join)(n,i)),i=(0,v.normalize)(i),R.isWindows?(i=(0,p.rtrim)(i,v.sep),i.endsWith(":")&&(i+=v.sep)):(i=(0,p.rtrim)(i,v.sep),i||(i=v.sep)),i}e.sanitizeFilePath=B;function h(i){const n=(0,v.normalize)(i);return R.isWindows?i.length>3?!1:o(n)&&(i.length===2||n.charCodeAt(2)===92):n===v.posix.sep}e.isRootOrDriveLetter=h;function o(i,n){return(n!==void 0?n:R.isWindows)?M(i.charCodeAt(0))&&i.charCodeAt(1)===58:!1}e.hasDriveLetter=o;function d(i){return o(i)?i[0]:void 0}e.getDriveLetter=d;function P(i,n,r){return n.length>i.length?-1:i===n?0:(r&&(i=i.toLowerCase(),n=n.toLowerCase()),i.indexOf(n))}e.indexOfPath=P;function u(i){const n=i.split(":");let r,a,_;for(const F of n){const H=Number(F);(0,T.isNumber)(H)?a===void 0?a=H:_===void 0&&(_=H):r=r?[r,F].join(":"):F}if(!r)throw new Error("Format for `--goto` should be: `FILE:LINE(:COLUMN)`");return{path:r,line:a!==void 0?a:void 0,column:_!==void 0?_:a!==void 0?1:void 0}}e.parseLineAndColumnAware=u;const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function t(i,n,r=8){let a="";for(let F=0;F<r;F++)a+=s.charAt(Math.floor(Math.random()*s.length));let _;return n?_=`${n}-${a}`:_=a,i?(0,v.join)(i,_):_}e.randomPath=t}),define(ie[22],se([0,1,9]),function(J,e,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filter=e.getCaseInsensitive=e.distinct=e.getOrDefault=e.safeStringify=e.equals=e.mixin=e.cloneAndChange=e.deepFreeze=e.deepClone=void 0;function R(l){if(!l||typeof l!="object"||l instanceof RegExp)return l;const I=Array.isArray(l)?[]:{};return Object.keys(l).forEach(M=>{l[M]&&typeof l[M]=="object"?I[M]=R(l[M]):I[M]=l[M]}),I}e.deepClone=R;function p(l){if(!l||typeof l!="object")return l;const I=[l];for(;I.length>0;){const M=I.shift();Object.freeze(M);for(const B in M)if(T.call(M,B)){const h=M[B];typeof h=="object"&&!Object.isFrozen(h)&&I.push(h)}}return l}e.deepFreeze=p;const T=Object.prototype.hasOwnProperty;function D(l,I){return A(l,I,new Set)}e.cloneAndChange=D;function A(l,I,M){if((0,v.isUndefinedOrNull)(l))return l;const B=I(l);if(typeof B!="undefined")return B;if((0,v.isArray)(l)){const h=[];for(const o of l)h.push(A(o,I,M));return h}if((0,v.isObject)(l)){if(M.has(l))throw new Error("Cannot clone recursive data-structure");M.add(l);const h={};for(let o in l)T.call(l,o)&&(h[o]=A(l[o],I,M));return M.delete(l),h}return l}function g(l,I,M=!0){return(0,v.isObject)(l)?((0,v.isObject)(I)&&Object.keys(I).forEach(B=>{B in l?M&&((0,v.isObject)(l[B])&&(0,v.isObject)(I[B])?g(l[B],I[B],M):l[B]=I[B]):l[B]=I[B]}),l):I}e.mixin=g;function C(l,I){if(l===I)return!0;if(l==null||I===null||I===void 0||typeof l!=typeof I||typeof l!="object"||Array.isArray(l)!==Array.isArray(I))return!1;let M,B;if(Array.isArray(l)){if(l.length!==I.length)return!1;for(M=0;M<l.length;M++)if(!C(l[M],I[M]))return!1}else{const h=[];for(B in l)h.push(B);h.sort();const o=[];for(B in I)o.push(B);if(o.sort(),!C(h,o))return!1;for(M=0;M<h.length;M++)if(!C(l[h[M]],I[h[M]]))return!1}return!0}e.equals=C;function E(l){const I=new Set;return JSON.stringify(l,(M,B)=>{if((0,v.isObject)(B)||Array.isArray(B)){if(I.has(B))return"[Circular]";I.add(B)}return B})}e.safeStringify=E;function b(l,I,M){const B=I(l);return typeof B=="undefined"?M:B}e.getOrDefault=b;function O(l,I){const M=Object.create(null);return!l||!I||Object.keys(I).forEach(h=>{const o=l[h],d=I[h];C(o,d)||(M[h]=d)}),M}e.distinct=O;function L(l,I){const M=I.toLowerCase(),B=Object.keys(l).find(h=>h.toLowerCase()===M);return B?l[B]:l[I]}e.getCaseInsensitive=L;function w(l,I){const M=Object.create(null);for(const[B,h]of Object.entries(l))I(B,h)&&(M[B]=h);return M}e.filter=w}),define(ie[7],se([0,1,5,2]),function(J,e,v,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uriToFsPath=e.URI=void 0;const p=/^\w[\w\d+.-]*$/,T=/^\//,D=/^\/\//;function A(s,t){if(!s.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${s.authority}", path: "${s.path}", query: "${s.query}", fragment: "${s.fragment}"}`);if(s.scheme&&!p.test(s.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(s.path){if(s.authority){if(!T.test(s.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(D.test(s.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function g(s,t){return!s&&!t?"file":s}function C(s,t){switch(s){case"https":case"http":case"file":t?t[0]!==b&&(t=b+t):t=b;break}return t}const E="",b="/",O=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class L{constructor(t,i,n,r,a,_=!1){typeof t=="object"?(this.scheme=t.scheme||E,this.authority=t.authority||E,this.path=t.path||E,this.query=t.query||E,this.fragment=t.fragment||E):(this.scheme=g(t,_),this.authority=i||E,this.path=C(this.scheme,n||E),this.query=r||E,this.fragment=a||E,A(this,_))}static isUri(t){return t instanceof L?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}get fsPath(){return h(this,!1)}with(t){if(!t)return this;let{scheme:i,authority:n,path:r,query:a,fragment:_}=t;return i===void 0?i=this.scheme:i===null&&(i=E),n===void 0?n=this.authority:n===null&&(n=E),r===void 0?r=this.path:r===null&&(r=E),a===void 0?a=this.query:a===null&&(a=E),_===void 0?_=this.fragment:_===null&&(_=E),i===this.scheme&&n===this.authority&&r===this.path&&a===this.query&&_===this.fragment?this:new l(i,n,r,a,_)}static parse(t,i=!1){const n=O.exec(t);return n?new l(n[2]||E,u(n[4]||E),u(n[5]||E),u(n[7]||E),u(n[9]||E),i):new l(E,E,E,E,E)}static file(t){let i=E;if(R.isWindows&&(t=t.replace(/\\/g,b)),t[0]===b&&t[1]===b){const n=t.indexOf(b,2);n===-1?(i=t.substring(2),t=b):(i=t.substring(2,n),t=t.substring(n)||b)}return new l("file",i,t,E,E)}static from(t){const i=new l(t.scheme,t.authority,t.path,t.query,t.fragment);return A(i,!0),i}static joinPath(t,...i){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return R.isWindows&&t.scheme==="file"?n=L.file(v.win32.join(h(t,!0),...i)).path:n=v.posix.join(t.path,...i),t.with({path:n})}toString(t=!1){return o(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof L)return t;{const i=new l(t);return i._formatted=t.external,i._fsPath=t._sep===w?t.fsPath:null,i}}else return t}}e.URI=L;const w=R.isWindows?1:void 0;class l extends L{constructor(){super(...arguments);this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=h(this,!1)),this._fsPath}toString(t=!1){return t?o(this,!0):(this._formatted||(this._formatted=o(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=w),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const I={[58]:"%3A",[47]:"%2F",[63]:"%3F",[35]:"%23",[91]:"%5B",[93]:"%5D",[64]:"%40",[33]:"%21",[36]:"%24",[38]:"%26",[39]:"%27",[40]:"%28",[41]:"%29",[42]:"%2A",[43]:"%2B",[44]:"%2C",[59]:"%3B",[61]:"%3D",[32]:"%20"};function M(s,t){let i,n=-1;for(let r=0;r<s.length;r++){const a=s.charCodeAt(r);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||t&&a===47)n!==-1&&(i+=encodeURIComponent(s.substring(n,r)),n=-1),i!==void 0&&(i+=s.charAt(r));else{i===void 0&&(i=s.substr(0,r));const _=I[a];_!==void 0?(n!==-1&&(i+=encodeURIComponent(s.substring(n,r)),n=-1),i+=_):n===-1&&(n=r)}}return n!==-1&&(i+=encodeURIComponent(s.substring(n))),i!==void 0?i:s}function B(s){let t;for(let i=0;i<s.length;i++){const n=s.charCodeAt(i);n===35||n===63?(t===void 0&&(t=s.substr(0,i)),t+=I[n]):t!==void 0&&(t+=s[i])}return t!==void 0?t:s}function h(s,t){let i;return s.authority&&s.path.length>1&&s.scheme==="file"?i=`//${s.authority}${s.path}`:s.path.charCodeAt(0)===47&&(s.path.charCodeAt(1)>=65&&s.path.charCodeAt(1)<=90||s.path.charCodeAt(1)>=97&&s.path.charCodeAt(1)<=122)&&s.path.charCodeAt(2)===58?t?i=s.path.substr(1):i=s.path[1].toLowerCase()+s.path.substr(2):i=s.path,R.isWindows&&(i=i.replace(/\//g,"\\")),i}e.uriToFsPath=h;function o(s,t){const i=t?B:M;let n="",{scheme:r,authority:a,path:_,query:F,fragment:H}=s;if(r&&(n+=r,n+=":"),(a||r==="file")&&(n+=b,n+=b),a){let G=a.indexOf("@");if(G!==-1){const re=a.substr(0,G);a=a.substr(G+1),G=re.indexOf(":"),G===-1?n+=i(re,!1):(n+=i(re.substr(0,G),!1),n+=":",n+=i(re.substr(G+1),!1)),n+="@"}a=a.toLowerCase(),G=a.indexOf(":"),G===-1?n+=i(a,!1):(n+=i(a.substr(0,G),!1),n+=a.substr(G))}if(_){if(_.length>=3&&_.charCodeAt(0)===47&&_.charCodeAt(2)===58){const G=_.charCodeAt(1);G>=65&&G<=90&&(_=`/${String.fromCharCode(G+32)}:${_.substr(3)}`)}else if(_.length>=2&&_.charCodeAt(1)===58){const G=_.charCodeAt(0);G>=65&&G<=90&&(_=`${String.fromCharCode(G+32)}:${_.substr(2)}`)}n+=i(_,!0)}return F&&(n+="?",n+=i(F,!1)),H&&(n+="#",n+=t?H:M(H,!1)),n}function d(s){try{return decodeURIComponent(s)}catch{return s.length>3?s.substr(0,3)+d(s.substr(3)):s}}const P=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function u(s){return s.match(P)?s.replace(P,t=>d(t)):s}}),define(ie[42],se([0,1,7]),function(J,e,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.log=e.getFirstFrame=e.parse=e.isRemoteConsoleLog=void 0;function R(C){const E=C;return E&&typeof E.type=="string"&&typeof E.severity=="string"}e.isRemoteConsoleLog=R;function p(C){const E=[];let b;try{const O=JSON.parse(C.arguments),L=O[O.length-1];L&&L.__$stack&&(O.pop(),b=L.__$stack),E.push(...O)}catch{E.push("Unable to log remote console arguments",C.arguments)}return{args:E,stack:b}}e.parse=p;function T(C){if(typeof C!="string")return T(p(C).stack);const E=C;if(E){const b=D(E),O=/at [^\/]*((?:(?:[a-zA-Z]+:)|(?:[\/])|(?:\\\\))(?:.+)):(\d+):(\d+)/.exec(b||"");if(O&&O.length===4)return{uri:v.URI.file(O[1]),line:Number(O[2]),column:Number(O[3])}}}e.getFirstFrame=T;function D(C){if(!C)return C;const E=C.indexOf(`
`);return E===-1?C:C.substring(0,E)}function A(C,E){const{args:b,stack:O}=p(C),L=typeof b[0]=="string"&&b.length===1;let w=D(O);w&&(w=`(${w.trim()})`);let l=[];if(typeof b[0]=="string"?w&&L?l=[`%c[${E}] %c${b[0]} %c${w}`,g("blue"),g(""),g("grey")]:l=[`%c[${E}] %c${b[0]}`,g("blue"),g(""),...b.slice(1)]:l=[`%c[${E}]%`,g("blue"),...b],w&&!L&&l.push(w),typeof console[C.severity]!="function")throw new Error("Unknown console method");console[C.severity].apply(console,l)}e.log=A;function g(C){return`color: ${C}`}}),define(ie[43],se([0,1,20,11,7]),function(J,e,v,R,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.revive=e.parse=e.stringify=void 0;function T(C){return JSON.stringify(C,A)}e.stringify=T;function D(C){let E=JSON.parse(C);return E=g(E),E}e.parse=D;function A(C,E){return E instanceof RegExp?{$mid:2,source:E.source,flags:(0,R.regExpFlags)(E)}:E}function g(C,E=0){if(!C||E>200)return C;if(typeof C=="object"){switch(C.$mid){case 1:return p.URI.revive(C);case 2:return new RegExp(C.source,C.flags);case 14:return new Date(C.source)}if(C instanceof v.VSBuffer||C instanceof Uint8Array)return C;if(Array.isArray(C))for(let b=0;b<C.length;++b)C[b]=g(C[b],E+1);else for(const b in C)Object.hasOwnProperty.call(C,b)&&(C[b]=g(C[b],E+1))}return C}e.revive=g}),define(ie[13],se([0,1,2,7]),function(J,e,v,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileAccess=e.RemoteAuthorities=e.connectionTokenQueryName=e.connectionTokenCookieName=e.Schemas=void 0;var p;(function(A){A.inMemory="inmemory",A.vscode="vscode",A.internal="private",A.walkThrough="walkThrough",A.walkThroughSnippet="walkThroughSnippet",A.http="http",A.https="https",A.file="file",A.mailto="mailto",A.untitled="untitled",A.data="data",A.command="command",A.vscodeRemote="vscode-remote",A.vscodeRemoteResource="vscode-remote-resource",A.userData="vscode-userdata",A.vscodeCustomEditor="vscode-custom-editor",A.vscodeNotebook="vscode-notebook",A.vscodeNotebookCell="vscode-notebook-cell",A.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",A.vscodeNotebookCellOutput="vscode-notebook-cell-output",A.vscodeInteractive="vscode-interactive",A.vscodeInteractiveInput="vscode-interactive-input",A.vscodeSettings="vscode-settings",A.vscodeWorkspaceTrust="vscode-workspace-trust",A.vscodeTerminal="vscode-terminal",A.webviewPanel="webview-panel",A.vscodeWebview="vscode-webview",A.extension="extension",A.vscodeFileResource="vscode-file",A.tmp="tmp",A.vsls="vsls"})(p=e.Schemas||(e.Schemas={})),e.connectionTokenCookieName="vscode-tkn",e.connectionTokenQueryName="tkn";class T{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null}setPreferredWebSchema(g){this._preferredWebSchema=g}setDelegate(g){this._delegate=g}set(g,C,E){this._hosts[g]=C,this._ports[g]=E}setConnectionToken(g,C){this._connectionTokens[g]=C}getPreferredWebSchema(){return this._preferredWebSchema}rewrite(g){if(this._delegate)return this._delegate(g);const C=g.authority;let E=this._hosts[C];E&&E.indexOf(":")!==-1&&(E=`[${E}]`);const b=this._ports[C],O=this._connectionTokens[C];let L=`path=${encodeURIComponent(g.path)}`;return typeof O=="string"&&(L+=`&${e.connectionTokenQueryName}=${encodeURIComponent(O)}`),R.URI.from({scheme:v.isWeb?this._preferredWebSchema:p.vscodeRemoteResource,authority:v.isWeb?window.location.host:`${E}:${b}`,path:v.isWeb?R.URI.joinPath(R.URI.parse(window.location.href),"/vscode-remote-resource").path:"/vscode-remote-resource",query:L})}}e.RemoteAuthorities=new T;class D{asBrowserUri(g,C){const E=this.toUri(g,C);return E.scheme===p.vscodeRemote?e.RemoteAuthorities.rewrite(E):E.scheme===p.file&&(v.isNative||v.isWebWorker&&v.globals.origin===`${p.vscodeFileResource}://${D.FALLBACK_AUTHORITY}`)?E.with({scheme:p.vscodeFileResource,authority:E.authority||D.FALLBACK_AUTHORITY,query:null,fragment:null}):E}asFileUri(g,C){const E=this.toUri(g,C);return E.scheme===p.vscodeFileResource?E.with({scheme:p.file,authority:E.authority!==D.FALLBACK_AUTHORITY?E.authority:null,query:null,fragment:null}):E}toUri(g,C){return R.URI.isUri(g)?g:R.URI.parse(C.toUrl(g))}}D.FALLBACK_AUTHORITY="vscode-app",e.FileAccess=new D}),define(ie[27],se([0,1,21,13,5,2,11,7]),function(J,e,v,R,p,T,D,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toLocalResource=e.DataUri=e.distinctParents=e.addTrailingPathSeparator=e.removeTrailingPathSeparator=e.hasTrailingPathSeparator=e.isEqualAuthority=e.isAbsolutePath=e.resolvePath=e.relativePath=e.normalizePath=e.joinPath=e.dirname=e.extname=e.basename=e.basenameOrAuthority=e.getComparisonKey=e.isEqualOrParent=e.isEqual=e.extUriIgnorePathCase=e.extUriBiasedIgnorePathCase=e.extUri=e.ExtUri=e.originalFSPath=void 0;function g(L){return(0,A.uriToFsPath)(L,!0)}e.originalFSPath=g;class C{constructor(w){this._ignorePathCasing=w}compare(w,l,I=!1){return w===l?0:(0,D.compare)(this.getComparisonKey(w,I),this.getComparisonKey(l,I))}isEqual(w,l,I=!1){return w===l?!0:!w||!l?!1:this.getComparisonKey(w,I)===this.getComparisonKey(l,I)}getComparisonKey(w,l=!1){return w.with({path:this._ignorePathCasing(w)?w.path.toLowerCase():void 0,fragment:l?null:void 0}).toString()}ignorePathCasing(w){return this._ignorePathCasing(w)}isEqualOrParent(w,l,I=!1){if(w.scheme===l.scheme){if(w.scheme===R.Schemas.file)return v.isEqualOrParent(g(w),g(l),this._ignorePathCasing(w))&&w.query===l.query&&(I||w.fragment===l.fragment);if((0,e.isEqualAuthority)(w.authority,l.authority))return v.isEqualOrParent(w.path,l.path,this._ignorePathCasing(w),"/")&&w.query===l.query&&(I||w.fragment===l.fragment)}return!1}joinPath(w,...l){return A.URI.joinPath(w,...l)}basenameOrAuthority(w){return(0,e.basename)(w)||w.authority}basename(w){return p.posix.basename(w.path)}extname(w){return p.posix.extname(w.path)}dirname(w){if(w.path.length===0)return w;let l;return w.scheme===R.Schemas.file?l=A.URI.file(p.dirname(g(w))).path:(l=p.posix.dirname(w.path),w.authority&&l.length&&l.charCodeAt(0)!==47&&(console.error(`dirname("${w.toString})) resulted in a relative path`),l="/")),w.with({path:l})}normalizePath(w){if(!w.path.length)return w;let l;return w.scheme===R.Schemas.file?l=A.URI.file(p.normalize(g(w))).path:l=p.posix.normalize(w.path),w.with({path:l})}relativePath(w,l){if(w.scheme!==l.scheme||!(0,e.isEqualAuthority)(w.authority,l.authority))return;if(w.scheme===R.Schemas.file){const B=p.relative(g(w),g(l));return T.isWindows?v.toSlashes(B):B}let I=w.path||"/",M=l.path||"/";if(this._ignorePathCasing(w)){let B=0;for(const h=Math.min(I.length,M.length);B<h&&!(I.charCodeAt(B)!==M.charCodeAt(B)&&I.charAt(B).toLowerCase()!==M.charAt(B).toLowerCase());B++);I=M.substr(0,B)+I.substr(B)}return p.posix.relative(I,M)}resolvePath(w,l){if(w.scheme===R.Schemas.file){const I=A.URI.file(p.resolve(g(w),l));return w.with({authority:I.authority,path:I.path})}return l=v.toPosixPath(l),w.with({path:p.posix.resolve(w.path,l)})}isAbsolutePath(w){return!!w.path&&w.path[0]==="/"}isEqualAuthority(w,l){return w===l||w!==void 0&&l!==void 0&&(0,D.equalsIgnoreCase)(w,l)}hasTrailingPathSeparator(w,l=p.sep){if(w.scheme===R.Schemas.file){const I=g(w);return I.length>v.getRoot(I).length&&I[I.length-1]===l}else{const I=w.path;return I.length>1&&I.charCodeAt(I.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(w.fsPath)}}removeTrailingPathSeparator(w,l=p.sep){return(0,e.hasTrailingPathSeparator)(w,l)?w.with({path:w.path.substr(0,w.path.length-1)}):w}addTrailingPathSeparator(w,l=p.sep){let I=!1;if(w.scheme===R.Schemas.file){const M=g(w);I=M!==void 0&&M.length===v.getRoot(M).length&&M[M.length-1]===l}else{l="/";const M=w.path;I=M.length===1&&M.charCodeAt(M.length-1)===47}return!I&&!(0,e.hasTrailingPathSeparator)(w,l)?w.with({path:w.path+"/"}):w}}e.ExtUri=C,e.extUri=new C(()=>!1),e.extUriBiasedIgnorePathCase=new C(L=>L.scheme===R.Schemas.file?!T.isLinux:!0),e.extUriIgnorePathCase=new C(L=>!0),e.isEqual=e.extUri.isEqual.bind(e.extUri),e.isEqualOrParent=e.extUri.isEqualOrParent.bind(e.extUri),e.getComparisonKey=e.extUri.getComparisonKey.bind(e.extUri),e.basenameOrAuthority=e.extUri.basenameOrAuthority.bind(e.extUri),e.basename=e.extUri.basename.bind(e.extUri),e.extname=e.extUri.extname.bind(e.extUri),e.dirname=e.extUri.dirname.bind(e.extUri),e.joinPath=e.extUri.joinPath.bind(e.extUri),e.normalizePath=e.extUri.normalizePath.bind(e.extUri),e.relativePath=e.extUri.relativePath.bind(e.extUri),e.resolvePath=e.extUri.resolvePath.bind(e.extUri),e.isAbsolutePath=e.extUri.isAbsolutePath.bind(e.extUri),e.isEqualAuthority=e.extUri.isEqualAuthority.bind(e.extUri),e.hasTrailingPathSeparator=e.extUri.hasTrailingPathSeparator.bind(e.extUri),e.removeTrailingPathSeparator=e.extUri.removeTrailingPathSeparator.bind(e.extUri),e.addTrailingPathSeparator=e.extUri.addTrailingPathSeparator.bind(e.extUri);function E(L,w){const l=[];for(let I=0;I<L.length;I++){const M=w(L[I]);L.some((B,h)=>h===I?!1:(0,e.isEqualOrParent)(M,w(B)))||l.push(L[I])}return l}e.distinctParents=E;var b;(function(L){L.META_DATA_LABEL="label",L.META_DATA_DESCRIPTION="description",L.META_DATA_SIZE="size",L.META_DATA_MIME="mime";function w(l){const I=new Map;l.path.substring(l.path.indexOf(";")+1,l.path.lastIndexOf(";")).split(";").forEach(h=>{const[o,d]=h.split(":");o&&d&&I.set(o,d)});const B=l.path.substring(0,l.path.indexOf(";"));return B&&I.set(L.META_DATA_MIME,B),I}L.parseMetaData=w})(b=e.DataUri||(e.DataUri={}));function O(L,w,l){if(w){let I=L.path;return I&&I[0]!==p.posix.sep&&(I=p.posix.sep+I),L.with({scheme:l,authority:w,path:I})}return L.with({scheme:l})}e.toLocalResource=O}),define(ie[6],se([0,1,10,8,4,3,27,2]),function(J,e,v,R,p,T,D,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCancelableAsyncIterable=e.CancelableAsyncIterableObject=e.AsyncIterableObject=e.Promises=e.DeferredPromise=e.IntervalCounter=e.TaskSequentializer=e.retry=e.IdleValue=e.runWhenIdle=e.ThrottledWorker=e.RunOnceWorker=e.ProcessTimeRunOnceScheduler=e.RunOnceScheduler=e.IntervalTimer=e.TimeoutTimer=e.ResourceQueue=e.Queue=e.Limiter=e.firstParallel=e.first=e.sequence=e.disposableTimeout=e.timeout=e.AutoOpenBarrier=e.Barrier=e.ThrottledDelayer=e.Delayer=e.MicrotaskDelay=e.SequencerByKey=e.Sequencer=e.Throttler=e.asPromise=e.raceTimeout=e.raceCancellablePromises=e.raceCancellationError=e.raceCancellation=e.createCancelablePromise=e.isThenable=void 0;function g(f){return!!f&&typeof f.then=="function"}e.isThenable=g;function C(f){const c=new v.CancellationTokenSource,m=f(c.token),S=new Promise((N,K)=>{const Z=c.token.onCancellationRequested(()=>{Z.dispose(),c.dispose(),K(new R.CancellationError)});Promise.resolve(m).then(ae=>{Z.dispose(),c.dispose(),N(ae)},ae=>{Z.dispose(),c.dispose(),K(ae)})});return new class{cancel(){c.cancel()}then(N,K){return S.then(N,K)}catch(N){return this.then(void 0,N)}finally(N){return S.finally(N)}}}e.createCancelablePromise=C;function E(f,c,m){return new Promise((S,N)=>{const K=c.onCancellationRequested(()=>{K.dispose(),S(m)});f.then(S,N).finally(()=>K.dispose())})}e.raceCancellation=E;function b(f,c){return new Promise((m,S)=>{const N=c.onCancellationRequested(()=>{N.dispose(),S(new R.CancellationError)});f.then(m,S).finally(()=>N.dispose())})}e.raceCancellationError=b;async function O(f){let c=-1;const m=f.map((N,K)=>N.then(Z=>(c=K,Z))),S=await Promise.race(m);return f.forEach((N,K)=>{K!==c&&N.cancel()}),S}e.raceCancellablePromises=O;function L(f,c,m){let S;const N=setTimeout(()=>{S?.(void 0),m?.()},c);return Promise.race([f.finally(()=>clearTimeout(N)),new Promise(K=>S=K)])}e.raceTimeout=L;function w(f){return new Promise((c,m)=>{const S=f();g(S)?S.then(c,m):c(S)})}e.asPromise=w;class l{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(c){if(this.activePromise){if(this.queuedPromiseFactory=c,!this.queuedPromise){const m=()=>{this.queuedPromise=null;const S=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,S};this.queuedPromise=new Promise(S=>{this.activePromise.then(m,m).then(S)})}return new Promise((m,S)=>{this.queuedPromise.then(m,S)})}return this.activePromise=c(),new Promise((m,S)=>{this.activePromise.then(N=>{this.activePromise=null,m(N)},N=>{this.activePromise=null,S(N)})})}}e.Throttler=l;class I{constructor(){this.current=Promise.resolve(null)}queue(c){return this.current=this.current.then(()=>c(),()=>c())}}e.Sequencer=I;class M{constructor(){this.promiseMap=new Map}queue(c,m){const N=(this.promiseMap.get(c)??Promise.resolve()).catch(()=>{}).then(m).finally(()=>{this.promiseMap.get(c)===N&&this.promiseMap.delete(c)});return this.promiseMap.set(c,N),N}}e.SequencerByKey=M;const B=(f,c)=>{let m=!0;const S=setTimeout(()=>{m=!1,c()},f);return{isTriggered:()=>m,dispose:()=>{clearTimeout(S),m=!1}}},h=f=>{let c=!0;return queueMicrotask(()=>{c&&(c=!1,f())}),{isTriggered:()=>c,dispose:()=>{c=!1}}};e.MicrotaskDelay=Symbol("MicrotaskDelay");class o{constructor(c){this.defaultDelay=c,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(c,m=this.defaultDelay){this.task=c,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((N,K)=>{this.doResolve=N,this.doReject=K}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const N=this.task;return this.task=null,N()}}));const S=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=m===e.MicrotaskDelay?h(S):B(m,S),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject&&this.doReject(new R.CancellationError),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}e.Delayer=o;class d{constructor(c){this.delayer=new o(c),this.throttler=new l}trigger(c,m){return this.delayer.trigger(()=>this.throttler.queue(c),m)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}}e.ThrottledDelayer=d;class P{constructor(){this._isOpen=!1,this._promise=new Promise((c,m)=>{this._completePromise=c})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}}e.Barrier=P;class u extends P{constructor(c){super();this._timeout=setTimeout(()=>this.open(),c)}open(){clearTimeout(this._timeout),super.open()}}e.AutoOpenBarrier=u;function s(f,c){return c?new Promise((m,S)=>{const N=setTimeout(()=>{K.dispose(),m()},f),K=c.onCancellationRequested(()=>{clearTimeout(N),K.dispose(),S(new R.CancellationError)})}):C(m=>s(f,m))}e.timeout=s;function t(f,c=0){const m=setTimeout(f,c);return(0,T.toDisposable)(()=>clearTimeout(m))}e.disposableTimeout=t;function i(f){const c=[];let m=0;const S=f.length;function N(){return m<S?f[m++]():null}function K(Z){Z!=null&&c.push(Z);const ae=N();return ae?ae.then(K):Promise.resolve(c)}return Promise.resolve(null).then(K)}e.sequence=i;function n(f,c=S=>!!S,m=null){let S=0;const N=f.length,K=()=>{if(S>=N)return Promise.resolve(m);const Z=f[S++];return Promise.resolve(Z()).then(le=>c(le)?Promise.resolve(le):K())};return K()}e.first=n;function r(f,c=S=>!!S,m=null){if(f.length===0)return Promise.resolve(m);let S=f.length;const N=()=>{S=-1;for(const K of f)K.cancel?.()};return new Promise((K,Z)=>{for(const ae of f)ae.then(le=>{--S>=0&&c(le)?(N(),K(le)):S===0&&K(m)}).catch(le=>{--S>=0&&(N(),Z(le))})})}e.firstParallel=r;class a{constructor(c){this._size=0,this.maxDegreeOfParalellism=c,this.outstandingPromises=[],this.runningPromises=0,this._onFinished=new p.Emitter}get onFinished(){return this._onFinished.event}get size(){return this._size}queue(c){return this._size++,new Promise((m,S)=>{this.outstandingPromises.push({factory:c,c:m,e:S}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){const c=this.outstandingPromises.shift();this.runningPromises++;const m=c.factory();m.then(c.c,c.e),m.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onFinished.fire()}dispose(){this._onFinished.dispose()}}e.Limiter=a;class _ extends a{constructor(){super(1)}}e.Queue=_;class F{constructor(){this.queues=new Map,this.drainers=new Set}async whenDrained(){if(this.isDrained())return;const c=new U;return this.drainers.add(c),c.p}isDrained(){for(const[,c]of this.queues)if(c.size>0)return!1;return!0}queueFor(c,m=D.extUri){const S=m.getComparisonKey(c);let N=this.queues.get(S);return N||(N=new _,p.Event.once(N.onFinished)(()=>{N?.dispose(),this.queues.delete(S),this.onDidQueueFinish()}),this.queues.set(S,N)),N}onDidQueueFinish(){!this.isDrained()||this.releaseDrainers()}releaseDrainers(){for(const c of this.drainers)c.complete();this.drainers.clear()}dispose(){for(const[,c]of this.queues)c.dispose();this.queues.clear(),this.releaseDrainers()}}e.ResourceQueue=F;class H{constructor(c,m){this._token=-1,typeof c=="function"&&typeof m=="number"&&this.setIfNotSet(c,m)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(c,m){this.cancel(),this._token=setTimeout(()=>{this._token=-1,c()},m)}setIfNotSet(c,m){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,c()},m))}}e.TimeoutTimer=H;class G{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(c,m){this.cancel(),this._token=setInterval(()=>{c()},m)}}e.IntervalTimer=G;class re{constructor(c,m){this.timeoutToken=-1,this.runner=c,this.timeout=m,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(c=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,c)}get delay(){return this.timeout}set delay(c){this.timeout=c}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner&&this.runner()}}e.RunOnceScheduler=re;class oe{constructor(c,m){m%1e3!=0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${m}ms is not a multiple of 1000ms.`),this.runner=c,this.timeout=m,this.counter=0,this.intervalToken=-1,this.intervalHandler=this.onInterval.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearInterval(this.intervalToken),this.intervalToken=-1)}schedule(c=this.timeout){c%1e3!=0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${c}ms is not a multiple of 1000ms.`),this.cancel(),this.counter=Math.ceil(c/1e3),this.intervalToken=setInterval(this.intervalHandler,1e3)}isScheduled(){return this.intervalToken!==-1}onInterval(){this.counter--,!(this.counter>0)&&(clearInterval(this.intervalToken),this.intervalToken=-1,this.runner&&this.runner())}}e.ProcessTimeRunOnceScheduler=oe;class ce extends re{constructor(c,m){super(c,m);this.units=[]}work(c){this.units.push(c),this.isScheduled()||this.schedule()}doRun(){const c=this.units;this.units=[],this.runner&&this.runner(c)}dispose(){this.units=[],super.dispose()}}e.RunOnceWorker=ce;class Q extends T.Disposable{constructor(c,m){super();this.options=c,this.handler=m,this.pendingWork=[],this.throttler=this._register(new T.MutableDisposable),this.disposed=!1}get pending(){return this.pendingWork.length}work(c){if(this.disposed)return!1;if(typeof this.options.maxBufferedWork=="number"){if(this.throttler.value){if(this.pending+c.length>this.options.maxBufferedWork)return!1}else if(this.pending+c.length-this.options.maxWorkChunkSize>this.options.maxBufferedWork)return!1}return this.pendingWork.push(...c),this.throttler.value||this.doWork(),!0}doWork(){this.handler(this.pendingWork.splice(0,this.options.maxWorkChunkSize)),this.pendingWork.length>0&&(this.throttler.value=new re(()=>{this.throttler.clear(),this.doWork()},this.options.throttleDelay),this.throttler.value.schedule())}dispose(){super.dispose(),this.disposed=!0}}e.ThrottledWorker=Q,function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?e.runWhenIdle=f=>{(0,A.setTimeout0)(()=>{if(c)return;const m=Date.now()+15;f(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,m-Date.now())}}))});let c=!1;return{dispose(){c||(c=!0)}}}:e.runWhenIdle=(f,c)=>{const m=requestIdleCallback(f,typeof c=="number"?{timeout:c}:void 0);let S=!1;return{dispose(){S||(S=!0,cancelIdleCallback(m))}}}}();class Y{constructor(c){this._didRun=!1,this._executor=()=>{try{this._value=c()}catch(m){this._error=m}finally{this._didRun=!0}},this._handle=(0,e.runWhenIdle)(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}e.IdleValue=Y;async function te(f,c,m){let S;for(let N=0;N<m;N++)try{return await f()}catch(K){S=K,await s(c)}throw S}e.retry=te;class ee{hasPending(c){return this._pending?typeof c=="number"?this._pending.taskId===c:!!this._pending:!1}get pending(){return this._pending?this._pending.promise:void 0}cancelPending(){this._pending?.cancel()}setPending(c,m,S){return this._pending={taskId:c,cancel:()=>S?.(),promise:m},m.then(()=>this.donePending(c),()=>this.donePending(c)),m}donePending(c){this._pending&&c===this._pending.taskId&&(this._pending=void 0,this.triggerNext())}triggerNext(){if(this._next){const c=this._next;this._next=void 0,c.run().then(c.promiseResolve,c.promiseReject)}}setNext(c){if(this._next)this._next.run=c;else{let m,S;const N=new Promise((K,Z)=>{m=K,S=Z});this._next={run:c,promise:N,promiseResolve:m,promiseReject:S}}return this._next.promise}}e.TaskSequentializer=ee;class x{constructor(c,m=()=>Date.now()){this.interval=c,this.nowFn=m,this.lastIncrementTime=0,this.value=0}increment(){const c=this.nowFn();return c-this.lastIncrementTime>this.interval&&(this.lastIncrementTime=c,this.value=0),this.value++,this.value}}e.IntervalCounter=x;class U{constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((c,m)=>{this.completeCallback=c,this.errorCallback=m})}get isRejected(){return this.rejected}get isResolved(){return this.resolved}get isSettled(){return this.rejected||this.resolved}complete(c){return new Promise(m=>{this.completeCallback(c),this.resolved=!0,m()})}error(c){return new Promise(m=>{this.errorCallback(c),this.rejected=!0,m()})}cancel(){new Promise(c=>{this.errorCallback(new R.CancellationError),this.rejected=!0,c()})}}e.DeferredPromise=U;var k;(function(f){async function c(S){let N;const K=await Promise.all(S.map(Z=>Z.then(ae=>ae,ae=>{N||(N=ae)})));if(typeof N!="undefined")throw N;return K}f.settled=c;function m(S){return new Promise(async(N,K)=>{try{await S(N,K)}catch(Z){K(Z)}})}f.withAsyncBody=m})(k=e.Promises||(e.Promises={}));var $;(function(f){f[f.Initial=0]="Initial",f[f.DoneOK=1]="DoneOK",f[f.DoneError=2]="DoneError"})($||($={}));class W{constructor(c){this._state=0,this._results=[],this._error=null,this._onStateChanged=new p.Emitter,queueMicrotask(async()=>{const m={emitOne:S=>this.emitOne(S),emitMany:S=>this.emitMany(S),reject:S=>this.reject(S)};try{await Promise.resolve(c(m)),this.resolve()}catch(S){this.reject(S)}finally{m.emitOne=void 0,m.emitMany=void 0,m.reject=void 0}})}static fromArray(c){return new W(m=>{m.emitMany(c)})}static fromPromise(c){return new W(async m=>{m.emitMany(await c)})}static fromPromises(c){return new W(async m=>{await Promise.all(c.map(async S=>m.emitOne(await S)))})}static merge(c){return new W(async m=>{await Promise.all(c.map(async S=>{for await(const N of S)m.emitOne(N)}))})}[Symbol.asyncIterator](){let c=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(c<this._results.length)return{done:!1,value:this._results[c++]};if(this._state===1)return{done:!0,value:void 0};await p.Event.toPromise(this._onStateChanged.event)}while(!0)}}}static map(c,m){return new W(async S=>{for await(const N of c)S.emitOne(m(N))})}map(c){return W.map(this,c)}static filter(c,m){return new W(async S=>{for await(const N of c)m(N)&&S.emitOne(N)})}filter(c){return W.filter(this,c)}static coalesce(c){return W.filter(c,m=>!!m)}coalesce(){return W.coalesce(this)}static async toPromise(c){const m=[];for await(const S of c)m.push(S);return m}toPromise(){return W.toPromise(this)}emitOne(c){this._state===0&&(this._results.push(c),this._onStateChanged.fire())}emitMany(c){this._state===0&&(this._results=this._results.concat(c),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(c){this._state===0&&(this._state=2,this._error=c,this._onStateChanged.fire())}}e.AsyncIterableObject=W,W.EMPTY=W.fromArray([]);class z extends W{constructor(c,m){super(m);this._source=c}cancel(){this._source.cancel()}}e.CancelableAsyncIterableObject=z;function V(f){const c=new v.CancellationTokenSource,m=f(c.token);return new z(c,async S=>{const N=c.token.onCancellationRequested(()=>{N.dispose(),c.dispose(),S.reject(new R.CancellationError)});try{for await(const K of m){if(c.token.isCancellationRequested)return;S.emitOne(K)}N.dispose(),c.dispose()}catch(K){N.dispose(),c.dispose(),S.reject(K)}})}e.createCancelableAsyncIterable=V}),define(ie[44],se([0,1,64]),function(J,e,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineDecoder=void 0;class R{constructor(T="utf8"){this.stringDecoder=new v.StringDecoder(T),this.remaining=null}write(T){const D=[],A=this.remaining?this.remaining+this.stringDecoder.write(T):this.stringDecoder.write(T);if(A.length<1)return D;let g=0,C,E=g;for(;E<A.length;)if(C=A.charCodeAt(E),C===13||C===10){if(D.push(A.substring(g,E)),E++,E<A.length){const b=C;C=A.charCodeAt(E),(b===13&&C===10||b===10&&C===13)&&E++}g=E}else E++;return this.remaining=g<A.length?A.substr(g):null,D}end(){return this.remaining}}e.LineDecoder=R}),define(ie[14],se([0,1,45,15,65,6,21,41,5,2,27,7]),function(J,e,v,R,p,T,D,A,g,C,E,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Promises=e.writeFileSync=e.SymlinkSupport=e.whenDeleted=e.readdirSync=e.rimrafSync=e.RimRafMode=void 0;var O;(function(Q){Q[Q.UNLINK=0]="UNLINK",Q[Q.MOVE=1]="MOVE"})(O=e.RimRafMode||(e.RimRafMode={}));async function L(Q,Y=O.UNLINK){if((0,D.isRootOrDriveLetter)(Q))throw new Error("rimraf - will refuse to recursively delete root");return Y===O.UNLINK?l(Q):w(Q)}async function w(Q){try{const Y=(0,D.randomPath)((0,R.tmpdir)());try{await v.promises.rename(Q,Y)}catch{return l(Q)}l(Y).catch(te=>{})}catch(Y){if(Y.code!=="ENOENT")throw Y}}async function l(Q){return e.Promises.rmdir(Q,{recursive:!0,maxRetries:3})}function I(Q){if((0,D.isRootOrDriveLetter)(Q))throw new Error("rimraf - will refuse to recursively delete root");v.rmdirSync(Q,{recursive:!0})}e.rimrafSync=I;async function M(Q,Y){return o(await(Y?B(Q):(0,p.promisify)(v.readdir)(Q)))}async function B(Q){try{return await(0,p.promisify)(v.readdir)(Q,{withFileTypes:!0})}catch(ee){console.warn("[node.js fs] readdir with filetypes failed with error: ",ee)}const Y=[],te=await M(Q);for(const ee of te){let x=!1,U=!1,k=!1;try{const $=await e.Promises.lstat((0,g.join)(Q,ee));x=$.isFile(),U=$.isDirectory(),k=$.isSymbolicLink()}catch($){console.warn("[node.js fs] unexpected error from lstat after readdir: ",$)}Y.push({name:ee,isFile:()=>x,isDirectory:()=>U,isSymbolicLink:()=>k})}return Y}function h(Q){return o(v.readdirSync(Q))}e.readdirSync=h;function o(Q){return Q.map(Y=>typeof Y=="string"?C.isMacintosh?(0,A.normalizeNFC)(Y):Y:(Y.name=C.isMacintosh?(0,A.normalizeNFC)(Y.name):Y.name,Y))}async function d(Q){const Y=await M(Q),te=[];for(const ee of Y)await u.existsDirectory((0,g.join)(Q,ee))&&te.push(ee);return te}function P(Q,Y=1e3){return new Promise(te=>{let ee=!1;const x=setInterval(()=>{ee||(ee=!0,v.access(Q,U=>{ee=!1,U&&(clearInterval(x),te(void 0))}))},Y)})}e.whenDeleted=P;var u;(function(Q){async function Y(x){let U;try{if(U=await e.Promises.lstat(x),!U.isSymbolicLink())return{stat:U}}catch{}try{return{stat:await e.Promises.stat(x),symbolicLink:U?.isSymbolicLink()?{dangling:!1}:void 0}}catch(k){if(k.code==="ENOENT"&&U)return{stat:U,symbolicLink:{dangling:!0}};if(C.isWindows&&k.code==="EACCES")try{return{stat:await e.Promises.stat(await e.Promises.readlink(x)),symbolicLink:{dangling:!1}}}catch($){if($.code==="ENOENT"&&U)return{stat:U,symbolicLink:{dangling:!0}};throw $}throw k}}Q.stat=Y;async function te(x){try{const{stat:U,symbolicLink:k}=await Q.stat(x);return U.isFile()&&k?.dangling!==!0}catch{}return!1}Q.existsFile=te;async function ee(x){try{const{stat:U,symbolicLink:k}=await Q.stat(x);return U.isDirectory()&&k?.dangling!==!0}catch{}return!1}Q.existsDirectory=ee})(u=e.SymlinkSupport||(e.SymlinkSupport={}));const s=new T.ResourceQueue;function t(Q,Y,te){return s.queueFor(b.URI.file(Q),E.extUriBiasedIgnorePathCase).queue(()=>{const ee=a(te);return new Promise((x,U)=>n(Q,Y,ee,k=>k?U(k):x()))})}let i=!0;function n(Q,Y,te,ee){if(!i)return v.writeFile(Q,Y,{mode:te.mode,flag:te.flag},ee);v.open(Q,te.flag,te.mode,(x,U)=>{if(x)return ee(x);v.writeFile(U,Y,k=>{if(k)return v.close(U,()=>ee(k));v.fdatasync(U,$=>($&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",$),i=!1),v.close(U,W=>ee(W))))})})}function r(Q,Y,te){const ee=a(te);if(!i)return v.writeFileSync(Q,Y,{mode:ee.mode,flag:ee.flag});const x=v.openSync(Q,ee.flag,ee.mode);try{v.writeFileSync(x,Y);try{v.fdatasyncSync(x)}catch(U){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",U),i=!1}}finally{v.closeSync(x)}}e.writeFileSync=r;function a(Q){return Q?{mode:typeof Q.mode=="number"?Q.mode:438,flag:typeof Q.flag=="string"?Q.flag:"w"}:{mode:438,flag:"w"}}async function _(Q,Y){if(Q!==Y)try{await e.Promises.rename(Q,Y)}catch(te){if(Q.toLowerCase()!==Y.toLowerCase()&&te.code==="EXDEV"||Q.endsWith("."))await F(Q,Y,{preserveSymlinks:!1}),await L(Q,O.MOVE);else throw te}}async function F(Q,Y,te){return G(Q,Y,{root:{source:Q,target:Y},options:te,handledSourcePaths:new Set})}const H=511;async function G(Q,Y,te){if(te.handledSourcePaths.has(Q))return;te.handledSourcePaths.add(Q);const{stat:ee,symbolicLink:x}=await u.stat(Q);if(x){if(te.options.preserveSymlinks)try{return await ce(Q,Y,te)}catch(U){console.warn("[node.js fs] copy of symlink failed: ",U)}if(x.dangling)return}return ee.isDirectory()?re(Q,Y,ee.mode&H,te):oe(Q,Y,ee.mode&H)}async function re(Q,Y,te,ee){await e.Promises.mkdir(Y,{recursive:!0,mode:te});const x=await M(Q);for(const U of x)await G((0,g.join)(Q,U),(0,g.join)(Y,U),ee)}async function oe(Q,Y,te){await e.Promises.copyFile(Q,Y),await e.Promises.chmod(Y,te)}async function ce(Q,Y,te){let ee=await e.Promises.readlink(Q);(0,D.isEqualOrParent)(ee,te.root.source,!C.isLinux)&&(ee=(0,g.join)(te.root.target,ee.substr(te.root.source.length+1))),await e.Promises.symlink(ee,Y)}e.Promises=new class{get access(){return(0,p.promisify)(v.access)}get stat(){return(0,p.promisify)(v.stat)}get lstat(){return(0,p.promisify)(v.lstat)}get utimes(){return(0,p.promisify)(v.utimes)}get read(){return(Q,Y,te,ee,x)=>new Promise((U,k)=>{v.read(Q,Y,te,ee,x,($,W,z)=>$?k($):U({bytesRead:W,buffer:z}))})}get readFile(){return(0,p.promisify)(v.readFile)}get write(){return(Q,Y,te,ee,x)=>new Promise((U,k)=>{v.write(Q,Y,te,ee,x,($,W,z)=>$?k($):U({bytesWritten:W,buffer:z}))})}get appendFile(){return(0,p.promisify)(v.appendFile)}get fdatasync(){return(0,p.promisify)(v.fdatasync)}get truncate(){return(0,p.promisify)(v.truncate)}get rename(){return(0,p.promisify)(v.rename)}get copyFile(){return(0,p.promisify)(v.copyFile)}get open(){return(0,p.promisify)(v.open)}get close(){return(0,p.promisify)(v.close)}get symlink(){return(0,p.promisify)(v.symlink)}get readlink(){return(0,p.promisify)(v.readlink)}get chmod(){return(0,p.promisify)(v.chmod)}get mkdir(){return(0,p.promisify)(v.mkdir)}get unlink(){return(0,p.promisify)(v.unlink)}get rmdir(){return(0,p.promisify)(v.rmdir)}get realpath(){return(0,p.promisify)(v.realpath)}async exists(Q){try{return await e.Promises.access(Q),!0}catch{return!1}}get readdir(){return M}get readDirsInDir(){return d}get writeFile(){return t}get rm(){return L}get move(){return _}get copy(){return F}}}),define(ie[46],se([0,1,15,5,14]),function(J,e,v,R,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFirstAvailablePowerShellInstallation=e.enumeratePowerShellInstallations=void 0;const T=/^\d+$/,D=/^Microsoft.PowerShell_.*/,A=/^Microsoft.PowerShellPreview_.*/;var g;(function(o){o[o.x64=0]="x64",o[o.x86=1]="x86",o[o.ARM=2]="ARM"})(g||(g={}));let C;switch(process.arch){case"ia32":case"x32":C=1;break;case"arm":case"arm64":C=2;break;default:C=0;break}let E;process.env.PROCESSOR_ARCHITEW6432?E=process.env.PROCESSOR_ARCHITEW6432==="ARM64"?2:0:process.env.PROCESSOR_ARCHITECTURE==="ARM64"?E=2:process.env.PROCESSOR_ARCHITECTURE==="X86"?E=1:E=0;class b{constructor(d,P,u){this.exePath=d,this.displayName=P,this.knownToExist=u}async exists(){return this.knownToExist===void 0&&(this.knownToExist=await p.SymlinkSupport.existsFile(this.exePath)),this.knownToExist}}function O({useAlternateBitness:o=!1}={}){return o?C===0?process.env["ProgramFiles(x86)"]||null:E===0&&process.env.ProgramW6432||null:process.env.ProgramFiles||null}async function L({useAlternateBitness:o=!1,findPreview:d=!1}={}){const P=O({useAlternateBitness:o});if(!P)return null;const u=R.join(P,"PowerShell");if(!await p.SymlinkSupport.existsDirectory(u))return null;let s=-1,t=null;for(const r of await p.Promises.readdir(u)){let a=-1;if(d){const F=r.indexOf("-");if(F<0)continue;const H=r.substring(0,F);if(!T.test(H)||r.substring(F+1)!=="preview")continue;a=parseInt(H,10)}else{if(!T.test(r))continue;a=parseInt(r,10)}if(a<=s)continue;const _=R.join(u,r,"pwsh.exe");!await p.SymlinkSupport.existsFile(_)||(t=_,s=a)}if(!t)return null;const i=P.includes("x86")?" (x86)":"",n=d?" Preview":"";return new b(t,`PowerShell${n}${i}`,!0)}async function w({findPreview:o}={}){if(!process.env.LOCALAPPDATA)return null;const d=R.join(process.env.LOCALAPPDATA,"Microsoft","WindowsApps");if(!await p.SymlinkSupport.existsDirectory(d))return null;const{pwshMsixDirRegex:P,pwshMsixName:u}=o?{pwshMsixDirRegex:A,pwshMsixName:"PowerShell Preview (Store)"}:{pwshMsixDirRegex:D,pwshMsixName:"PowerShell (Store)"};for(const s of await p.Promises.readdir(d))if(P.test(s)){const t=R.join(d,s,"pwsh.exe");return new b(t,u)}return null}function l(){const o=R.join(v.homedir(),".dotnet","tools","pwsh.exe");return new b(o,".NET Core PowerShell Global Tool")}function I(){const o=R.join(process.env.windir,C===1&&E!==1?"SysNative":"System32","WindowsPowerShell","v1.0","powershell.exe");return new b(o,"Windows PowerShell",!0)}async function*M(){let o=await L();o&&(yield o),o=await L({useAlternateBitness:!0}),o&&(yield o),o=await w(),o&&(yield o),o=l(),o&&(yield o),o=await L({findPreview:!0}),o&&(yield o),o=await w({findPreview:!0}),o&&(yield o),o=await L({useAlternateBitness:!0,findPreview:!0}),o&&(yield o),o=I(),o&&(yield o)}async function*B(){for await(const o of M())await o.exists()&&(yield o)}e.enumeratePowerShellInstallations=B;async function h(){for await(const o of B())return o;return null}e.getFirstAvailablePowerShellInstallation=h}),define(ie[47],se([0,1,16,13]),function(J,e,v,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.listProcesses=void 0;function p(D){return new Promise((A,g)=>{let C;const E=new Map;function b(L,w,l,I,M){const B=E.get(w);if(L===D||B){const h={name:O(l),cmd:l,pid:L,ppid:w,load:I,mem:M};E.set(L,h),L===D&&(C=h),B&&(B.children||(B.children=[]),B.children.push(h),B.children.length>1&&(B.children=B.children.sort((o,d)=>o.pid-d.pid)))}}function O(L){const w=/--vscode-window-kind=shared-process/,l=/--vscode-window-kind=issue-reporter/,I=/--vscode-window-kind=process-explorer/,M=/--utility-sub-type=network/,B=/--crashes-directory/,h=/\\pipe\\winpty-control/,o=/conhost\.exe/,d=/--type=([a-zA-Z-]+)/;if(B.exec(L))return"electron-crash-reporter";if(h.exec(L))return"winpty-process";if(o.exec(L))return"console-window-host (Windows internal process)";let P=d.exec(L);if(P&&P.length===2)return P[1]==="renderer"?w.exec(L)?"shared-process":l.exec(L)?"issue-reporter":I.exec(L)?"process-explorer":"window":P[1]==="utility"&&M.exec(L)?"utility-network-service":P[1];const u=/[a-zA-Z-]+\.js/g;let s="";do P=u.exec(L),P&&(s+=P+" ");while(P);return s&&L.indexOf("node ")<0&&L.indexOf("node.exe")<0?`electron_node ${s}`:L}if(process.platform==="win32"){const L=w=>w.indexOf("\\\\?\\")===0||w.indexOf("\\??\\")===0?w.substr(4):w.indexOf('"\\\\?\\')===0||w.indexOf('"\\??\\')===0?'"'+w.substr(5):w;new Promise((w,l)=>{J(["windows-process-tree"],w,l)}).then(w=>{w.getProcessList(D,l=>{w.getProcessCpuUsage(l,I=>{const M=new Map;I.forEach(B=>{const h=L(B.commandLine||"");M.set(B.pid,{name:O(h),cmd:h,pid:B.pid,ppid:B.ppid,load:B.cpu||0,mem:B.memory||0})}),C=M.get(D),C?(M.forEach(B=>{const h=M.get(B.ppid);h&&(h.children||(h.children=[]),h.children.push(B))}),M.forEach(B=>{B.children&&(B.children=B.children.sort((h,o)=>h.pid-o.pid))}),A(C)):g(new Error(`Root process ${D} not found`))})},w.ProcessDataFlag.CommandLine|w.ProcessDataFlag.Memory)})}else{let L=function(){let w=[C];const l=[];for(;w.length;){const M=w.shift();M&&(l.push(M.pid),M.children&&(w=w.concat(M.children)))}let I=JSON.stringify(R.FileAccess.asFileUri("vs/base/node/cpuUsage.sh",J).fsPath);I+=" "+l.join(" "),(0,v.exec)(I,{},(M,B,h)=>{if(M||h)g(M||new Error(h.toString()));else{const o=B.toString().split(`
`);for(let d=0;d<l.length;d++){const P=E.get(l[d]);P.load=parseFloat(o[d])}if(!C){g(new Error(`Root process ${D} not found`));return}A(C)}})};(0,v.exec)("which ps",{},(w,l,I)=>{if(w||I)if(process.platform!=="linux")g(w||new Error(I.toString()));else{const M=JSON.stringify(R.FileAccess.asFileUri("vs/base/node/ps.sh",J).fsPath);(0,v.exec)(M,{},(B,h,o)=>{B||o?g(B||new Error(o.toString())):(T(h,b),L())})}else{const M=l.toString().trim(),B="-ax -o pid=,ppid=,pcpu=,pmem=,command=";(0,v.exec)(`${M} ${B}`,{maxBuffer:1e3*1024,env:{LC_NUMERIC:"en_US.UTF-8"}},(h,o,d)=>{h||d&&!d.includes("screen size is bogus")?g(h||new Error(d.toString())):(T(o,b),process.platform==="linux"?L():C?A(C):g(new Error(`Root process ${D} not found`)))})}})}})}e.listProcesses=p;function T(D,A){const g=/^\s*([0-9]+)\s+([0-9]+)\s+([0-9]+\.[0-9]+)\s+([0-9]+\.[0-9]+)\s+(.+)$/,C=D.toString().split(`
`);for(const E of C){const b=g.exec(E.trim());b&&b.length===6&&A(parseInt(b[1]),parseInt(b[2]),b[5],parseFloat(b[3]),parseFloat(b[4]))}}});var pe=this&&this.__decorate||function(J,e,v,R){var p=arguments.length,T=p<3?e:R===null?R=Object.getOwnPropertyDescriptor(e,v):R,D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(J,e,v,R);else for(var A=J.length-1;A>=0;A--)(D=J[A])&&(T=(p<3?D(T):p>3?D(e,v,T):D(e,v))||T);return p>3&&T&&Object.defineProperty(e,v,T),T};define(ie[28],se([0,1,18,6,20,10,17,8,4,3,43,11,9]),function(J,e,v,R,p,T,D,A,g,C,E,b,O){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IPCLogger=e.logWithColors=e.ProxyChannel=e.StaticRouter=e.getNextTickChannel=e.getDelayedChannel=e.IPCClient=e.IPCServer=e.ChannelClient=e.RequestInitiator=e.ChannelServer=e.ResponseType=e.RequestType=void 0;var L;(function(U){U[U.Promise=100]="Promise",U[U.PromiseCancel=101]="PromiseCancel",U[U.EventListen=102]="EventListen",U[U.EventDispose=103]="EventDispose"})(L=e.RequestType||(e.RequestType={}));function w(U){switch(U){case 100:return"req";case 101:return"cancel";case 102:return"subscribe";case 103:return"unsubscribe"}}var l;(function(U){U[U.Initialize=200]="Initialize",U[U.PromiseSuccess=201]="PromiseSuccess",U[U.PromiseError=202]="PromiseError",U[U.PromiseErrorObj=203]="PromiseErrorObj",U[U.EventFire=204]="EventFire"})(l=e.ResponseType||(e.ResponseType={}));function I(U){switch(U){case 200:return"init";case 201:return"reply:";case 202:case 203:return"replyErr:";case 204:return"event:"}}var M;(function(U){U[U.Uninitialized=0]="Uninitialized",U[U.Idle=1]="Idle"})(M||(M={}));class B{constructor(k){this.buffer=k,this.pos=0}read(k){const $=this.buffer.slice(this.pos,this.pos+k);return this.pos+=$.byteLength,$}}class h{constructor(){this.buffers=[]}get buffer(){return p.VSBuffer.concat(this.buffers)}write(k){this.buffers.push(k)}}var o;(function(U){U[U.Undefined=0]="Undefined",U[U.String=1]="String",U[U.Buffer=2]="Buffer",U[U.VSBuffer=3]="VSBuffer",U[U.Array=4]="Array",U[U.Object=5]="Object"})(o||(o={}));function d(U){const k=p.VSBuffer.alloc(4);return k.writeUInt32BE(U,0),k}function P(U){return U.read(4).readUInt32BE(0)}function u(U){const k=p.VSBuffer.alloc(1);return k.writeUInt8(U,0),k}const s={Undefined:u(o.Undefined),String:u(o.String),Buffer:u(o.Buffer),VSBuffer:u(o.VSBuffer),Array:u(o.Array),Object:u(o.Object)},t=typeof Buffer!="undefined";function i(U,k){if(typeof k=="undefined")U.write(s.Undefined);else if(typeof k=="string"){const $=p.VSBuffer.fromString(k);U.write(s.String),U.write(d($.byteLength)),U.write($)}else if(t&&Buffer.isBuffer(k)){const $=p.VSBuffer.wrap(k);U.write(s.Buffer),U.write(d($.byteLength)),U.write($)}else if(k instanceof p.VSBuffer)U.write(s.VSBuffer),U.write(d(k.byteLength)),U.write(k);else if(Array.isArray(k)){U.write(s.Array),U.write(d(k.length));for(const $ of k)i(U,$)}else{const $=p.VSBuffer.fromString(JSON.stringify(k));U.write(s.Object),U.write(d($.byteLength)),U.write($)}}function n(U){switch(U.read(1).readUInt8(0)){case o.Undefined:return;case o.String:return U.read(P(U)).toString();case o.Buffer:return U.read(P(U)).buffer;case o.VSBuffer:return U.read(P(U));case o.Array:{const $=P(U),W=[];for(let z=0;z<$;z++)W.push(n(U));return W}case o.Object:return JSON.parse(U.read(P(U)).toString())}}class r{constructor(k,$,W=null,z=1e3){this.protocol=k,this.ctx=$,this.logger=W,this.timeoutDelay=z,this.channels=new Map,this.activeRequests=new Map,this.pendingRequests=new Map,this.protocolListener=this.protocol.onMessage(V=>this.onRawMessage(V)),this.sendResponse({type:200})}registerChannel(k,$){this.channels.set(k,$),setTimeout(()=>this.flushPendingRequests(k),0)}sendResponse(k){switch(k.type){case 200:{const $=this.send([k.type]);this.logger?.logOutgoing($,0,1,I(k.type));return}case 201:case 202:case 204:case 203:{const $=this.send([k.type,k.id],k.data);this.logger?.logOutgoing($,k.id,1,I(k.type),k.data);return}}}send(k,$=void 0){const W=new h;return i(W,k),i(W,$),this.sendBuffer(W.buffer)}sendBuffer(k){try{return this.protocol.send(k),k.byteLength}catch{return 0}}onRawMessage(k){const $=new B(k),W=n($),z=n($),V=W[0];switch(V){case 100:return this.logger?.logIncoming(k.byteLength,W[1],1,`${w(V)}: ${W[2]}.${W[3]}`,z),this.onPromise({type:V,id:W[1],channelName:W[2],name:W[3],arg:z});case 102:return this.logger?.logIncoming(k.byteLength,W[1],1,`${w(V)}: ${W[2]}.${W[3]}`,z),this.onEventListen({type:V,id:W[1],channelName:W[2],name:W[3],arg:z});case 101:return this.logger?.logIncoming(k.byteLength,W[1],1,`${w(V)}`),this.disposeActiveRequest({type:V,id:W[1]});case 103:return this.logger?.logIncoming(k.byteLength,W[1],1,`${w(V)}`),this.disposeActiveRequest({type:V,id:W[1]})}}onPromise(k){const $=this.channels.get(k.channelName);if(!$){this.collectPendingRequest(k);return}const W=new T.CancellationTokenSource;let z;try{z=$.call(this.ctx,k.name,k.arg,W.token)}catch(c){z=Promise.reject(c)}const V=k.id;z.then(c=>{this.sendResponse({id:V,data:c,type:201}),this.activeRequests.delete(k.id)},c=>{c instanceof Error?this.sendResponse({id:V,data:{message:c.message,name:c.name,stack:c.stack?c.stack.split?c.stack.split(`
`):c.stack:void 0},type:202}):this.sendResponse({id:V,data:c,type:203}),this.activeRequests.delete(k.id)});const f=(0,C.toDisposable)(()=>W.cancel());this.activeRequests.set(k.id,f)}onEventListen(k){const $=this.channels.get(k.channelName);if(!$){this.collectPendingRequest(k);return}const W=k.id,V=$.listen(this.ctx,k.name,k.arg)(f=>this.sendResponse({id:W,data:f,type:204}));this.activeRequests.set(k.id,V)}disposeActiveRequest(k){const $=this.activeRequests.get(k.id);$&&($.dispose(),this.activeRequests.delete(k.id))}collectPendingRequest(k){let $=this.pendingRequests.get(k.channelName);$||($=[],this.pendingRequests.set(k.channelName,$));const W=setTimeout(()=>{console.error(`Unknown channel: ${k.channelName}`),k.type===100&&this.sendResponse({id:k.id,data:{name:"Unknown channel",message:`Channel name '${k.channelName}' timed out after ${this.timeoutDelay}ms`,stack:void 0},type:202})},this.timeoutDelay);$.push({request:k,timeoutTimer:W})}flushPendingRequests(k){const $=this.pendingRequests.get(k);if($){for(const W of $)switch(clearTimeout(W.timeoutTimer),W.request.type){case 100:this.onPromise(W.request);break;case 102:this.onEventListen(W.request);break}this.pendingRequests.delete(k)}}dispose(){this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),(0,C.dispose)(this.activeRequests.values()),this.activeRequests.clear()}}e.ChannelServer=r;var a;(function(U){U[U.LocalSide=0]="LocalSide",U[U.OtherSide=1]="OtherSide"})(a=e.RequestInitiator||(e.RequestInitiator={}));class _{constructor(k,$=null){this.protocol=k,this.isDisposed=!1,this.state=M.Uninitialized,this.activeRequests=new Set,this.handlers=new Map,this.lastRequestId=0,this._onDidInitialize=new g.Emitter,this.onDidInitialize=this._onDidInitialize.event,this.protocolListener=this.protocol.onMessage(W=>this.onBuffer(W)),this.logger=$}getChannel(k){const $=this;return{call(W,z,V){return $.isDisposed?Promise.reject(A.canceled()):$.requestPromise(k,W,z,V)},listen(W,z){return $.isDisposed?g.Event.None:$.requestEvent(k,W,z)}}}requestPromise(k,$,W,z=T.CancellationToken.None){const V=this.lastRequestId++,c={id:V,type:100,channelName:k,name:$,arg:W};if(z.isCancellationRequested)return Promise.reject(A.canceled());let m;return new Promise((N,K)=>{if(z.isCancellationRequested)return K(A.canceled());const Z=()=>{const ge=we=>{switch(we.type){case 201:this.handlers.delete(V),N(we.data);break;case 202:{this.handlers.delete(V);const Se=new Error(we.data.message);Se.stack=we.data.stack,Se.name=we.data.name,K(Se);break}case 203:this.handlers.delete(V),K(we.data);break}};this.handlers.set(V,ge),this.sendRequest(c)};let ae=null;this.state===M.Idle?Z():(ae=(0,R.createCancelablePromise)(ge=>this.whenInitialized()),ae.then(()=>{ae=null,Z()}));const le=()=>{ae?(ae.cancel(),ae=null):this.sendRequest({id:V,type:101}),K(A.canceled())},fe=z.onCancellationRequested(le);m=(0,C.combinedDisposable)((0,C.toDisposable)(le),fe),this.activeRequests.add(m)}).finally(()=>{this.activeRequests.delete(m)})}requestEvent(k,$,W){const z=this.lastRequestId++,f={id:z,type:102,channelName:k,name:$,arg:W};let c=null;const m=new g.Emitter({onFirstListenerAdd:()=>{c=(0,R.createCancelablePromise)(N=>this.whenInitialized()),c.then(()=>{c=null,this.activeRequests.add(m),this.sendRequest(f)})},onLastListenerRemove:()=>{c?(c.cancel(),c=null):(this.activeRequests.delete(m),this.sendRequest({id:z,type:103}))}}),S=N=>m.fire(N.data);return this.handlers.set(z,S),m.event}sendRequest(k){switch(k.type){case 100:case 102:{const $=this.send([k.type,k.id,k.channelName,k.name],k.arg);this.logger&&this.logger.logOutgoing($,k.id,0,`${w(k.type)}: ${k.channelName}.${k.name}`,k.arg);return}case 101:case 103:{const $=this.send([k.type,k.id]);this.logger&&this.logger.logOutgoing($,k.id,0,w(k.type));return}}}send(k,$=void 0){const W=new h;return i(W,k),i(W,$),this.sendBuffer(W.buffer)}sendBuffer(k){try{return this.protocol.send(k),k.byteLength}catch{return 0}}onBuffer(k){const $=new B(k),W=n($),z=n($),V=W[0];switch(V){case 200:return this.logger&&this.logger.logIncoming(k.byteLength,0,0,I(V)),this.onResponse({type:W[0]});case 201:case 202:case 204:case 203:return this.logger&&this.logger.logIncoming(k.byteLength,W[1],0,I(V),z),this.onResponse({type:W[0],id:W[1],data:z})}}onResponse(k){if(k.type===200){this.state=M.Idle,this._onDidInitialize.fire();return}const $=this.handlers.get(k.id);$&&$(k)}get onDidInitializePromise(){return g.Event.toPromise(this.onDidInitialize)}whenInitialized(){return this.state===M.Idle?Promise.resolve():this.onDidInitializePromise}dispose(){this.isDisposed=!0,this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),(0,C.dispose)(this.activeRequests.values()),this.activeRequests.clear()}}pe([D.memoize],_.prototype,"onDidInitializePromise",null),e.ChannelClient=_;class F{constructor(k){this.channels=new Map,this._connections=new Set,this._onDidAddConnection=new g.Emitter,this.onDidAddConnection=this._onDidAddConnection.event,this._onDidRemoveConnection=new g.Emitter,this.onDidRemoveConnection=this._onDidRemoveConnection.event,k(({protocol:$,onDidClientDisconnect:W})=>{g.Event.once($.onMessage)(V=>{const f=new B(V),c=n(f),m=new r($,c),S=new _($);this.channels.forEach((K,Z)=>m.registerChannel(Z,K));const N={channelServer:m,channelClient:S,ctx:c};this._connections.add(N),this._onDidAddConnection.fire(N),W(()=>{m.dispose(),S.dispose(),this._connections.delete(N),this._onDidRemoveConnection.fire(N)})})})}get connections(){const k=[];return this._connections.forEach($=>k.push($)),k}getChannel(k,$){const W=this;return{call(z,V,f){let c;if((0,O.isFunction)($)){let S=(0,v.getRandomElement)(W.connections.filter($));c=S?Promise.resolve(S):g.Event.toPromise(g.Event.filter(W.onDidAddConnection,$))}else c=$.routeCall(W,z,V);const m=c.then(S=>S.channelClient.getChannel(k));return G(m).call(z,V,f)},listen(z,V){if((0,O.isFunction)($))return W.getMulticastEvent(k,$,z,V);const f=$.routeEvent(W,z,V).then(c=>c.channelClient.getChannel(k));return G(f).listen(z,V)}}}getMulticastEvent(k,$,W,z){const V=this;let f=new C.DisposableStore;const c=new g.Emitter({onFirstListenerAdd:()=>{f=new C.DisposableStore;const m=new g.EventMultiplexer,S=new Map,N=Z=>{const le=Z.channelClient.getChannel(k).listen(W,z),fe=m.add(le);S.set(Z,fe)},K=Z=>{const ae=S.get(Z);!ae||(ae.dispose(),S.delete(Z))};V.connections.filter($).forEach(N),g.Event.filter(V.onDidAddConnection,$)(N,void 0,f),V.onDidRemoveConnection(K,void 0,f),m.event(c.fire,c,f),f.add(m)},onLastListenerRemove:()=>{f.dispose()}});return c.event}registerChannel(k,$){this.channels.set(k,$),this._connections.forEach(W=>{W.channelServer.registerChannel(k,$)})}dispose(){this.channels.clear(),this._connections.clear(),this._onDidAddConnection.dispose(),this._onDidRemoveConnection.dispose()}}e.IPCServer=F;class H{constructor(k,$,W=null){const z=new h;i(z,$),k.send(z.buffer),this.channelClient=new _(k,W),this.channelServer=new r(k,$,W)}getChannel(k){return this.channelClient.getChannel(k)}registerChannel(k,$){this.channelServer.registerChannel(k,$)}dispose(){this.channelClient.dispose(),this.channelServer.dispose()}}e.IPCClient=H;function G(U){return{call(k,$,W){return U.then(z=>z.call(k,$,W))},listen(k,$){const W=new g.Relay;return U.then(z=>W.input=z.listen(k,$)),W.event}}}e.getDelayedChannel=G;function re(U){let k=!1;return{call($,W,z){return k?U.call($,W,z):(0,R.timeout)(0).then(()=>k=!0).then(()=>U.call($,W,z))},listen($,W){if(k)return U.listen($,W);const z=new g.Relay;return(0,R.timeout)(0).then(()=>k=!0).then(()=>z.input=U.listen($,W)),z.event}}}e.getNextTickChannel=re;class oe{constructor(k){this.fn=k}routeCall(k){return this.route(k)}routeEvent(k){return this.route(k)}async route(k){for(const $ of k.connections)if(await Promise.resolve(this.fn($.ctx)))return Promise.resolve($);return await g.Event.toPromise(k.onDidAddConnection),await this.route(k)}}e.StaticRouter=oe;var ce;(function(U){function k(V,f){const c=V,m=f&&f.disableMarshalling,S=new Map;for(const N in c)W(N)&&S.set(N,g.Event.buffer(c[N],!0));return new class{listen(N,K,Z){const ae=S.get(K);if(ae)return ae;if(z(K)){const le=c[K];if(typeof le=="function")return le.call(c,Z)}throw new Error(`Event not found: ${K}`)}call(N,K,Z){const ae=c[K];if(typeof ae=="function"){if(!m&&Array.isArray(Z))for(let le=0;le<Z.length;le++)Z[le]=(0,E.revive)(Z[le]);return ae.apply(c,Z)}throw new Error(`Method not found: ${K}`)}}}U.fromService=k;function $(V,f){const c=f&&f.disableMarshalling;return new Proxy({},{get(m,S){if(typeof S=="string")return f?.properties?.has(S)?f.properties.get(S):z(S)?function(N){return V.listen(S,N)}:W(S)?V.listen(S):async function(...N){let K;f&&!(0,O.isUndefinedOrNull)(f.context)?K=[f.context,...N]:K=N;const Z=await V.call(S,K);return c?Z:(0,E.revive)(Z)};throw new Error(`Property not found: ${String(S)}`)}})}U.toService=$;function W(V){return V[0]==="o"&&V[1]==="n"&&b.isUpperAsciiLetter(V.charCodeAt(2))}function z(V){return/^onDynamic/.test(V)&&b.isUpperAsciiLetter(V.charCodeAt(9))}})(ce=e.ProxyChannel||(e.ProxyChannel={}));const Q=[["#2977B1","#FC802D","#34A13A","#D3282F","#9366BA"],["#8B564C","#E177C0","#7F7F7F","#BBBE3D","#2EBECD"]];function Y(U){if(Array.isArray(U))return U;if(U&&typeof U=="object"&&typeof U.toString=="function"){let k=U.toString();if(k!=="[object Object]")return k}return U}function te(U){return Array.isArray(U)?U.map(Y):Y(U)}function ee(U,k,$,W,z,V,f){f=te(f);const c=Q[z],m=c[W%c.length];let S=[`%c[${U}]%c[${String(k).padStart(7," ")}]%c[len: ${String($).padStart(5," ")}]%c${String(W).padStart(5," ")} - ${V}`,"color: darkgreen","color: grey","color: grey",`color: ${m}`];/\($/.test(V)?(S=S.concat(f),S.push(")")):S.push(f),console.log.apply(console,S)}e.logWithColors=ee;class x{constructor(k,$){this._outgoingPrefix=k,this._incomingPrefix=$,this._totalIncoming=0,this._totalOutgoing=0}logOutgoing(k,$,W,z,V){this._totalOutgoing+=k,ee(this._outgoingPrefix,this._totalOutgoing,k,$,W,z,V)}logIncoming(k,$,W,z,V){this._totalIncoming+=k,ee(this._incomingPrefix,this._totalIncoming,k,$,W,z,V)}}e.IPCLogger=x}),define(ie[48],se([23,24]),function(J,e){return J.create("vs/base/common/errorMessage",e)}),define(ie[49],se([0,1,18,9,48]),function(J,e,v,R,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createErrorWithActions=e.isErrorWithActions=e.toErrorMessage=void 0;function T(b,O){return O&&(b.stack||b.stacktrace)?p.localize(0,null,A(b),D(b.stack)||D(b.stacktrace)):A(b)}function D(b){return Array.isArray(b)?b.join(`
`):b}function A(b){return typeof b.code=="string"&&typeof b.errno=="number"&&typeof b.syscall=="string"?p.localize(1,null,b.message):b.message||p.localize(2,null)}function g(b=null,O=!1){if(!b)return p.localize(3,null);if(Array.isArray(b)){const L=v.coalesce(b),w=g(L[0],O);return L.length>1?p.localize(4,null,w,L.length):w}if(R.isString(b))return b;if(b.detail){const L=b.detail;if(L.error)return T(L.error,O);if(L.exception)return T(L.exception,O)}return b.stack?T(b,O):b.message?b.message:p.localize(5,null)}e.toErrorMessage=g;function C(b){const O=b;return O instanceof Error&&Array.isArray(O.actions)}e.isErrorWithActions=C;function E(b,O=Object.create(null)){const L=new Error(b);return O.actions&&(L.actions=O.actions),L}e.createErrorWithActions=E}),define(ie[50],se([23,24]),function(J,e){return J.create("vs/base/node/processes",e)}),define(ie[29],se([0,1,16,21,13,22,5,2,19,36,9,44,14,50]),function(J,e,v,R,p,T,D,A,g,C,E,b,O,L){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.win32=e.createQueuedSender=e.LineProcess=e.AbstractProcess=e.getWindowsShell=e.removeDangerousEnvVariables=e.TerminateResponseCode=e.Source=void 0,Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return C.Source}}),Object.defineProperty(e,"TerminateResponseCode",{enumerable:!0,get:function(){return C.TerminateResponseCode}});function w(P){switch(P){case 0:return 0;case 1:return 2;case 128:return 3;default:return 1}}function l(P,u){if(A.isWindows)try{const s={stdio:["pipe","pipe","ignore"]};u&&(s.cwd=u);const t=v.execFile("taskkill",["/T","/F","/PID",P.pid.toString()],s);return new Promise(i=>{t.once("error",n=>{i({success:!1,error:n})}),t.once("exit",(n,r)=>{i(n===0?{success:!0}:{success:!1,code:n!==null?n:1})})})}catch(s){return Promise.resolve({success:!1,error:s,code:s.status?w(s.status):1})}else if(A.isLinux||A.isMacintosh)try{const s=p.FileAccess.asFileUri("vs/base/node/terminateProcess.sh",J).fsPath;return new Promise(t=>{v.execFile(s,[P.pid.toString()],{encoding:"utf8",shell:!0},(i,n,r)=>{t(i?{success:!1,error:i}:{success:!0})})})}catch(s){return Promise.resolve({success:!1,error:s})}else P.kill("SIGKILL");return Promise.resolve({success:!0})}function I(P){!P||(delete P.DEBUG,A.isMacintosh&&delete P.DYLD_LIBRARY_PATH,A.isLinux&&delete P.LD_PRELOAD)}e.removeDangerousEnvVariables=I;function M(P=g.env){return P.comspec||"cmd.exe"}e.getWindowsShell=M;class B{constructor(u,s,t,i){if(s!==void 0&&t!==void 0&&i!==void 0)this.cmd=u,this.args=s,this.shell=t,this.options=i;else{const n=u;this.cmd=n.command,this.shell=n.isShellCommand,this.args=n.args.slice(0),this.options=n.options||{}}if(this.childProcess=null,this.childProcessPromise=null,this.terminateRequested=!1,this.options.env){const n=Object.create(null);Object.keys(g.env).forEach(r=>{n[r]=g.env[r]}),Object.keys(this.options.env).forEach(r=>{n[r]=this.options.env[r]}),this.options.env=n}}getSanitizedCommand(){let u=this.cmd.toLowerCase();const s=u.lastIndexOf(D.sep);return s!==-1&&(u=u.substring(s+1)),B.WellKnowCommands[u]?u:"other"}start(u){return A.isWindows&&(this.options&&this.options.cwd&&R.isUNC(this.options.cwd)||!this.options&&R.isUNC(g.cwd()))?Promise.reject(new Error(L.localize(0,null))):this.useExec().then(s=>{let t,i;const n=new Promise((r,a)=>{t=r,i=a});if(s){let r=this.cmd;this.args&&(r=r+" "+this.args.join(" ")),this.childProcess=v.exec(r,this.options,(a,_,F)=>{this.childProcess=null;const H=a;H&&H.killed?i({killed:this.terminateRequested,stdout:_.toString(),stderr:F.toString()}):this.handleExec(t,u,a,_,F)})}else{let r=null;const a=_=>{this.childProcess=null,this.childProcessPromise=null,this.handleClose(_,t,u,i);const F={terminated:this.terminateRequested};E.isNumber(_)&&(F.cmdCode=_),t(F)};if(this.shell&&A.isWindows){const _=T.deepClone(this.options);_.windowsVerbatimArguments=!0,_.detached=!1;let F=!1,H=!1;const G=[];let re=this.ensureQuotes(this.cmd);G.push(re.value),F=re.quoted,this.args&&this.args.forEach(ce=>{re=this.ensureQuotes(ce),G.push(re.value),H=H&&re.quoted});const oe=["/s","/c"];F?H?oe.push('"'+G.join(" ")+'"'):G.length>1?oe.push('"'+G[0]+'" '+G.slice(1).join(" ")):oe.push('"'+G[0]+'"'):oe.push(G.join(" ")),r=v.spawn(M(),oe,_)}else this.cmd&&(r=v.spawn(this.cmd,this.args,this.options));r&&(this.childProcess=r,this.childProcessPromise=Promise.resolve(r),this.pidResolve&&(this.pidResolve(E.isNumber(r.pid)?r.pid:-1),this.pidResolve=void 0),r.on("error",_=>{this.childProcess=null,i({terminated:this.terminateRequested,error:_})}),r.pid&&(this.childProcess.on("close",a),this.handleSpawn(r,t,u,i,!0)))}return n})}handleClose(u,s,t,i){}ensureQuotes(u){return B.regexp.test(u)?{value:'"'+u+'"',quoted:!0}:{value:u,quoted:u.length>0&&u[0]==='"'&&u[u.length-1]==='"'}}get pid(){return this.childProcessPromise?this.childProcessPromise.then(u=>u.pid,u=>-1):new Promise(u=>{this.pidResolve=u})}terminate(){return this.childProcessPromise?this.childProcessPromise.then(u=>(this.terminateRequested=!0,l(u,this.options.cwd).then(s=>(s.success&&(this.childProcess=null),s))),u=>({success:!0})):Promise.resolve({success:!0})}useExec(){return new Promise(u=>{if(!this.shell||!A.isWindows)return u(!1);const s=v.spawn(M(),["/s","/c"]);s.on("error",t=>u(!0)),s.on("exit",t=>u(!1))})}}e.AbstractProcess=B,B.WellKnowCommands={ant:!0,cmake:!0,eslint:!0,gradle:!0,grunt:!0,gulp:!0,jake:!0,jenkins:!0,jshint:!0,make:!0,maven:!0,msbuild:!0,msc:!0,nmake:!0,npm:!0,rake:!0,tsc:!0,xbuild:!0},B.regexp=/^[^"].* .*[^"]/;class h extends B{constructor(u,s,t,i){super(u,s,t,i);this.stdoutLineDecoder=null,this.stderrLineDecoder=null}handleExec(u,s,t,i,n){[i,n].forEach((r,a)=>{const _=new b.LineDecoder;_.write(r).forEach(G=>{s({line:G,source:a===0?0:1})});const H=_.end();H&&s({line:H,source:a===0?0:1})}),u({terminated:this.terminateRequested,error:t})}handleSpawn(u,s,t,i,n){const r=new b.LineDecoder,a=new b.LineDecoder;u.stdout.on("data",_=>{r.write(_).forEach(H=>t({line:H,source:0}))}),u.stderr.on("data",_=>{a.write(_).forEach(H=>t({line:H,source:1}))}),this.stdoutLineDecoder=r,this.stderrLineDecoder=a}handleClose(u,s,t,i){const n=this.stdoutLineDecoder?this.stdoutLineDecoder.end():null;n&&t({line:n,source:0});const r=this.stderrLineDecoder?this.stderrLineDecoder.end():null;r&&t({line:r,source:1})}}e.LineProcess=h;function o(P){let u=[],s=!1;const t=function(i){if(s){u.push(i);return}(!P.send(i,r=>{if(r&&console.error(r),s=!1,u.length>0){const a=u.slice(0);u=[],a.forEach(_=>t(_))}})||A.isWindows)&&(s=!0)};return{send:t}}e.createQueuedSender=o;var d;(function(P){async function u(s,t,i){if(D.isAbsolute(s))return s;if(t===void 0&&(t=g.cwd()),D.dirname(s)!=="."||(i===void 0&&E.isString(g.env.PATH)&&(i=g.env.PATH.split(D.delimiter)),i===void 0||i.length===0))return D.join(t,s);async function r(a){if(await O.Promises.exists(a)){let _;try{_=await O.Promises.stat(a)}catch(F){F.message.startsWith("EACCES")&&(_=await O.Promises.lstat(a))}return _?!_.isDirectory():!1}return!1}for(let a of i){let _;if(D.isAbsolute(a)?_=D.join(a,s):_=D.join(t,a,s),await r(_))return _;let F=_+".com";if(await r(F)||(F=_+".exe",await r(F)))return F}return D.join(t,s)}P.findExecutable=u})(d=e.win32||(e.win32={}))}),define(ie[51],se([0,1,15,2,46,29]),function(J,e,v,R,p,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSystemShellSync=e.getSystemShell=void 0;async function D(L,w){return L===1?R.isWindows?b():T.getWindowsShell(w):C(L,w)}e.getSystemShell=D;function A(L,w){return L===1?R.isWindows?O(w):T.getWindowsShell(w):C(L,w)}e.getSystemShellSync=A;let g=null;function C(L,w){if(R.isLinux&&L===2||R.isMacintosh&&L===3)return"/bin/bash";if(!g){let l;if(R.isWindows)l="/bin/bash";else{if(l=w.SHELL,!l)try{l=(0,v.userInfo)().shell}catch{}l||(l="sh"),l==="/bin/false"&&(l="/bin/bash")}g=l}return g}let E=null;async function b(){return E||(E=(await(0,p.getFirstAvailablePowerShellInstallation)()).exePath),E}function O(L){if(E)return E;const w=R.isWindows&&parseFloat((0,v.release)())>=10,l=L.hasOwnProperty("PROCESSOR_ARCHITEW6432"),I=`${L.windir}\\${l?"Sysnative":"System32"}\\WindowsPowerShell\\v1.0\\powershell.exe`;return w?I:T.getWindowsShell(L)}}),define(ie[52],se([0,1,16,6,20,10,42,8,4,3,22,29,28]),function(J,e,v,R,p,T,D,A,g,C,E,b,O){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Client=e.Server=void 0;class L extends O.ChannelServer{constructor(I){super({send:M=>{try{process.send&&process.send(M.buffer.toString("base64"))}catch{}},onMessage:g.Event.fromNodeEventEmitter(process,"message",M=>p.VSBuffer.wrap(Buffer.from(M,"base64")))},I);process.once("disconnect",()=>this.dispose())}}e.Server=L;class w{constructor(I,M){this.modulePath=I,this.options=M,this.activeRequests=new Set,this.channels=new Map,this._onDidProcessExit=new g.Emitter,this.onDidProcessExit=this._onDidProcessExit.event;const B=M&&M.timeout?M.timeout:6e4;this.disposeDelayer=new R.Delayer(B),this.child=null,this._client=null}getChannel(I){const M=this;return{call(B,h,o){return M.requestPromise(I,B,h,o)},listen(B,h){return M.requestEvent(I,B,h)}}}requestPromise(I,M,B,h=T.CancellationToken.None){if(!this.disposeDelayer)return Promise.reject(new Error("disposed"));if(h.isCancellationRequested)return Promise.reject(A.canceled());this.disposeDelayer.cancel();const o=this.getCachedChannel(I),d=(0,R.createCancelablePromise)(s=>o.call(M,B,s)),P=h.onCancellationRequested(()=>d.cancel()),u=(0,C.toDisposable)(()=>d.cancel());return this.activeRequests.add(u),d.finally(()=>{P.dispose(),this.activeRequests.delete(u),this.activeRequests.size===0&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}),d}requestEvent(I,M,B){if(!this.disposeDelayer)return g.Event.None;this.disposeDelayer.cancel();let h;const o=new g.Emitter({onFirstListenerAdd:()=>{h=this.getCachedChannel(I).listen(M,B)(o.fire,o),this.activeRequests.add(h)},onLastListenerRemove:()=>{this.activeRequests.delete(h),h.dispose(),this.activeRequests.size===0&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}});return o.event}get client(){if(!this._client){const I=this.options&&this.options.args?this.options.args:[],M=Object.create(null);M.env={...(0,E.deepClone)(process.env),VSCODE_PARENT_PID:String(process.pid)},this.options&&this.options.env&&(M.env={...M.env,...this.options.env}),this.options&&this.options.freshExecArgv&&(M.execArgv=[]),this.options&&typeof this.options.debug=="number"&&(M.execArgv=["--nolazy","--inspect="+this.options.debug]),this.options&&typeof this.options.debugBrk=="number"&&(M.execArgv=["--nolazy","--inspect-brk="+this.options.debugBrk]),M.execArgv===void 0&&(M.execArgv=process.execArgv.filter(t=>!/^--inspect(-brk)?=/.test(t))),(0,b.removeDangerousEnvVariables)(M.env),this.child=(0,v.fork)(this.modulePath,I,M);const B=new g.Emitter;g.Event.fromNodeEventEmitter(this.child,"message",t=>t)(t=>{if((0,D.isRemoteConsoleLog)(t)){(0,D.log)(t,`IPC Library: ${this.options.serverName}`);return}B.fire(p.VSBuffer.wrap(Buffer.from(t,"base64")))});const o=this.options.useQueue?(0,b.createQueuedSender)(this.child):this.child,d=t=>this.child&&this.child.connected&&o.send(t.buffer.toString("base64")),P=B.event,u={send:d,onMessage:P};this._client=new O.ChannelClient(u);const s=()=>this.disposeClient();process.once("exit",s),this.child.on("error",t=>console.warn('IPC "'+this.options.serverName+'" errored with '+t)),this.child.on("exit",(t,i)=>{process.removeListener("exit",s),this.activeRequests.forEach(n=>(0,C.dispose)(n)),this.activeRequests.clear(),t!==0&&i!=="SIGTERM"&&console.warn('IPC "'+this.options.serverName+'" crashed with exit code '+t+" and signal "+i),this.disposeDelayer&&this.disposeDelayer.cancel(),this.disposeClient(),this._onDidProcessExit.fire({code:t,signal:i})})}return this._client}getCachedChannel(I){let M=this.channels.get(I);return M||(M=this.client.getChannel(I),this.channels.set(I,M)),M}disposeClient(){this._client&&(this.child&&(this.child.kill(),this.child=null),this._client=null,this.channels.clear())}dispose(){this._onDidProcessExit.dispose(),this.disposeDelayer&&(this.disposeDelayer.cancel(),this.disposeDelayer=void 0),this.disposeClient(),this.activeRequests.clear()}}e.Client=w}),define(ie[53],se([23,24]),function(J,e){return J.create("vs/platform/terminal/node/ptyService",e)}),define(ie[54],se([23,24]),function(J,e){return J.create("vs/platform/terminal/node/terminalProcess",e)}),define(ie[30],se([0,1]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.refineServiceDecorator=e.createDecorator=e.IInstantiationService=e._util=void 0;var v;(function(D){D.serviceIds=new Map,D.DI_TARGET="$di$target",D.DI_DEPENDENCIES="$di$dependencies";function A(g){return g[D.DI_DEPENDENCIES]||[]}D.getServiceDependencies=A})(v=e._util||(e._util={})),e.IInstantiationService=p("instantiationService");function R(D,A,g){A[v.DI_TARGET]===A?A[v.DI_DEPENDENCIES].push({id:D,index:g}):(A[v.DI_DEPENDENCIES]=[{id:D,index:g}],A[v.DI_TARGET]=A)}function p(D){if(v.serviceIds.has(D))return v.serviceIds.get(D);const A=function(g,C,E){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");R(A,g,E)};return A.toString=()=>D,v.serviceIds.set(D,A),A}e.createDecorator=p;function T(D){return D}e.refineServiceDecorator=T}),define(ie[12],se([0,1,49,4,3,2,30]),function(J,e,v,R,p,T,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LogLevelToString=e.parseLogLevel=e.getLogLevel=e.NullLogService=e.AbstractLoggerService=e.LogService=e.MultiplexLogService=e.AdapterLogger=e.ConsoleLogger=e.ConsoleMainLogger=e.AbstractMessageLogger=e.AbstractLogger=e.format=e.log=e.DEFAULT_LOG_LEVEL=e.LogLevel=e.ILoggerService=e.ILogService=void 0,e.ILogService=(0,D.createDecorator)("logService"),e.ILoggerService=(0,D.createDecorator)("loggerService");function A(){return new Date().toISOString()}var g;(function(u){u[u.Trace=0]="Trace",u[u.Debug=1]="Debug",u[u.Info=2]="Info",u[u.Warning=3]="Warning",u[u.Error=4]="Error",u[u.Critical=5]="Critical",u[u.Off=6]="Off"})(g=e.LogLevel||(e.LogLevel={})),e.DEFAULT_LOG_LEVEL=g.Info;function C(u,s,t){switch(s){case g.Trace:u.trace(t);break;case g.Debug:u.debug(t);break;case g.Info:u.info(t);break;case g.Warning:u.warn(t);break;case g.Error:u.error(t);break;case g.Critical:u.critical(t);break;default:throw new Error("Invalid log level")}}e.log=C;function E(u){let s="";for(let t=0;t<u.length;t++){let i=u[t];if(typeof i=="object")try{i=JSON.stringify(i)}catch{}s+=(t>0?" ":"")+i}return s}e.format=E;class b extends p.Disposable{constructor(){super(...arguments);this.level=e.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new R.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(s){this.level!==s&&(this.level=s,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}e.AbstractLogger=b;class O extends b{constructor(s){super();this.logAlways=s}checkLogLevel(s){return this.logAlways||this.getLevel()<=s}trace(s,...t){this.checkLogLevel(g.Trace)&&this.log(g.Trace,E([s,...t]))}debug(s,...t){this.checkLogLevel(g.Debug)&&this.log(g.Debug,E([s,...t]))}info(s,...t){this.checkLogLevel(g.Info)&&this.log(g.Info,E([s,...t]))}warn(s,...t){this.checkLogLevel(g.Warning)&&this.log(g.Warning,E([s,...t]))}error(s,...t){if(this.checkLogLevel(g.Error))if(s instanceof Error){const i=Array.prototype.slice.call(arguments);i[0]=s.stack,this.log(g.Error,E(i))}else this.log(g.Error,E([s,...t]))}critical(s,...t){this.checkLogLevel(g.Critical)&&this.log(g.Critical,E([s,...t]))}flush(){}}e.AbstractMessageLogger=O;class L extends b{constructor(s=e.DEFAULT_LOG_LEVEL){super();this.setLevel(s),this.useColors=!T.isWindows}trace(s,...t){this.getLevel()<=g.Trace&&(this.useColors?console.log(`[90m[main ${A()}][0m`,s,...t):console.log(`[main ${A()}]`,s,...t))}debug(s,...t){this.getLevel()<=g.Debug&&(this.useColors?console.log(`[90m[main ${A()}][0m`,s,...t):console.log(`[main ${A()}]`,s,...t))}info(s,...t){this.getLevel()<=g.Info&&(this.useColors?console.log(`[90m[main ${A()}][0m`,s,...t):console.log(`[main ${A()}]`,s,...t))}warn(s,...t){this.getLevel()<=g.Warning&&(this.useColors?console.warn(`[93m[main ${A()}][0m`,s,...t):console.warn(`[main ${A()}]`,s,...t))}error(s,...t){this.getLevel()<=g.Error&&(this.useColors?console.error(`[91m[main ${A()}][0m`,s,...t):console.error(`[main ${A()}]`,s,...t))}critical(s,...t){this.getLevel()<=g.Critical&&(this.useColors?console.error(`[90m[main ${A()}][0m`,s,...t):console.error(`[main ${A()}]`,s,...t))}dispose(){}flush(){}}e.ConsoleMainLogger=L;class w extends b{constructor(s=e.DEFAULT_LOG_LEVEL){super();this.setLevel(s)}trace(s,...t){this.getLevel()<=g.Trace&&console.log("%cTRACE","color: #888",s,...t)}debug(s,...t){this.getLevel()<=g.Debug&&console.log("%cDEBUG","background: #eee; color: #888",s,...t)}info(s,...t){this.getLevel()<=g.Info&&console.log("%c INFO","color: #33f",s,...t)}warn(s,...t){this.getLevel()<=g.Warning&&console.log("%c WARN","color: #993",s,...t)}error(s,...t){this.getLevel()<=g.Error&&console.log("%c ERR","color: #f33",s,...t)}critical(s,...t){this.getLevel()<=g.Critical&&console.log("%cCRITI","background: #f33; color: white",s,...t)}dispose(){}flush(){}}e.ConsoleLogger=w;class l extends b{constructor(s,t=e.DEFAULT_LOG_LEVEL){super();this.adapter=s,this.setLevel(t)}trace(s,...t){this.getLevel()<=g.Trace&&this.adapter.log(g.Trace,[this.extractMessage(s),...t])}debug(s,...t){this.getLevel()<=g.Debug&&this.adapter.log(g.Debug,[this.extractMessage(s),...t])}info(s,...t){this.getLevel()<=g.Info&&this.adapter.log(g.Info,[this.extractMessage(s),...t])}warn(s,...t){this.getLevel()<=g.Warning&&this.adapter.log(g.Warning,[this.extractMessage(s),...t])}error(s,...t){this.getLevel()<=g.Error&&this.adapter.log(g.Error,[this.extractMessage(s),...t])}critical(s,...t){this.getLevel()<=g.Critical&&this.adapter.log(g.Critical,[this.extractMessage(s),...t])}extractMessage(s){return typeof s=="string"?s:(0,v.toErrorMessage)(s,this.getLevel()<=g.Trace)}dispose(){}flush(){}}e.AdapterLogger=l;class I extends b{constructor(s){super();this.logServices=s,s.length&&this.setLevel(s[0].getLevel())}setLevel(s){for(const t of this.logServices)t.setLevel(s);super.setLevel(s)}trace(s,...t){for(const i of this.logServices)i.trace(s,...t)}debug(s,...t){for(const i of this.logServices)i.debug(s,...t)}info(s,...t){for(const i of this.logServices)i.info(s,...t)}warn(s,...t){for(const i of this.logServices)i.warn(s,...t)}error(s,...t){for(const i of this.logServices)i.error(s,...t)}critical(s,...t){for(const i of this.logServices)i.critical(s,...t)}flush(){for(const s of this.logServices)s.flush()}dispose(){for(const s of this.logServices)s.dispose()}}e.MultiplexLogService=I;class M extends p.Disposable{constructor(s){super();this.logger=s,this._register(s)}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(s){this.logger.setLevel(s)}getLevel(){return this.logger.getLevel()}trace(s,...t){this.logger.trace(s,...t)}debug(s,...t){this.logger.debug(s,...t)}info(s,...t){this.logger.info(s,...t)}warn(s,...t){this.logger.warn(s,...t)}error(s,...t){this.logger.error(s,...t)}critical(s,...t){this.logger.critical(s,...t)}flush(){this.logger.flush()}}e.LogService=M;class B extends p.Disposable{constructor(s,t){super();this.logLevel=s,this.loggers=new Map,this.logLevelChangeableLoggers=[],this._register(t(i=>{this.logLevel=i,this.logLevelChangeableLoggers.forEach(n=>n.setLevel(i))}))}getLogger(s){return this.loggers.get(s.toString())}createLogger(s,t){let i=this.loggers.get(s.toString());return i||(i=this.doCreateLogger(s,t?.always?g.Trace:this.logLevel,t),this.loggers.set(s.toString(),i),t?.always||this.logLevelChangeableLoggers.push(i)),i}dispose(){this.logLevelChangeableLoggers.splice(0,this.logLevelChangeableLoggers.length),this.loggers.forEach(s=>s.dispose()),this.loggers.clear(),super.dispose()}}e.AbstractLoggerService=B;class h{constructor(){this.onDidChangeLogLevel=new R.Emitter().event}setLevel(s){}getLevel(){return g.Info}trace(s,...t){}debug(s,...t){}info(s,...t){}warn(s,...t){}error(s,...t){}critical(s,...t){}dispose(){}flush(){}}e.NullLogService=h;function o(u){if(u.verbose)return g.Trace;if(typeof u.logLevel=="string"){const s=d(u.logLevel.toLowerCase());if(s!==void 0)return s}return e.DEFAULT_LOG_LEVEL}e.getLogLevel=o;function d(u){switch(u){case"trace":return g.Trace;case"debug":return g.Debug;case"info":return g.Info;case"warn":return g.Warning;case"error":return g.Error;case"critical":return g.Critical;case"off":return g.Off}}e.parseLogLevel=d;function P(u){switch(u){case g.Trace:return"trace";case g.Debug:return"debug";case g.Info:return"info";case g.Warning:return"warn";case g.Error:return"error";case g.Critical:return"critical";case g.Off:return"off"}}e.LogLevelToString=P}),define(ie[55],se([0,1,4,7,12]),function(J,e,v,R,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FollowerLogService=e.LoggerChannelClient=e.LoggerChannel=e.LogLevelChannelClient=e.LogLevelChannel=void 0;class T{constructor(O){this.service=O,this.onDidChangeLogLevel=v.Event.buffer(O.onDidChangeLogLevel,!0)}listen(O,L){switch(L){case"onDidChangeLogLevel":return this.onDidChangeLogLevel}throw new Error(`Event not found: ${L}`)}async call(O,L,w){switch(L){case"setLevel":return this.service.setLevel(w)}throw new Error(`Call not found: ${L}`)}}e.LogLevelChannel=T;class D{constructor(O){this.channel=O}get onDidChangeLogLevel(){return this.channel.listen("onDidChangeLogLevel")}setLevel(O){D.setLevel(this.channel,O)}static setLevel(O,L){return O.call("setLevel",L)}}e.LogLevelChannelClient=D;class A{constructor(O){this.loggerService=O,this.loggers=new Map}listen(O,L){throw new Error(`Event not found: ${L}`)}async call(O,L,w){switch(L){case"createLogger":this.createLogger(R.URI.revive(w[0]),w[1]);return;case"log":return this.log(R.URI.revive(w[0]),w[1]);case"consoleLog":return this.consoleLog(w[0],w[1])}throw new Error(`Call not found: ${L}`)}createLogger(O,L){this.loggers.set(O.toString(),this.loggerService.createLogger(O,L))}consoleLog(O,L){let w=console.log;switch(O){case p.LogLevel.Error:w=console.error;break;case p.LogLevel.Warning:w=console.warn;break;case p.LogLevel.Info:w=console.info;break}w.call(console,...L)}log(O,L){const w=this.loggers.get(O.toString());if(!w)throw new Error("Create the logger before logging");for(const[l,I]of L)(0,p.log)(w,l,I)}}e.LoggerChannel=A;class g extends p.AbstractLoggerService{constructor(O,L,w){super(O,L);this.channel=w}createConsoleMainLogger(){return new p.AdapterLogger({log:(O,L)=>{this.channel.call("consoleLog",[O,L])}})}doCreateLogger(O,L,w){return new C(this.channel,O,L,w)}}e.LoggerChannelClient=g;class C extends p.AbstractMessageLogger{constructor(O,L,w,l){super(l?.always);this.channel=O,this.file=L,this.isLoggerCreated=!1,this.buffer=[],this.setLevel(w),this.channel.call("createLogger",[L,l]).then(()=>{this.doLog(this.buffer),this.isLoggerCreated=!0})}log(O,L){const w=[[O,L]];this.isLoggerCreated?this.doLog(w):this.buffer.push(...w)}doLog(O){this.channel.call("log",[this.file,O])}}class E extends p.LogService{constructor(O,L){super(L);this.parent=O,this._register(O.onDidChangeLogLevel(w=>L.setLevel(w)))}setLevel(O){super.setLevel(O),this.parent.setLevel(O)}}e.FollowerLogService=E});var De=this&&this.__param||function(J,e){return function(v,R){e(v,R,J)}};define(ie[56],se([0,1,6,10,4,3,12]),function(J,e,v,R,p,T,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RequestStore=void 0;let A=class extends T.Disposable{constructor(C,E){super();this._logService=E,this._lastRequestId=0,this._pendingRequests=new Map,this._pendingRequestDisposables=new Map,this._onCreateRequest=this._register(new p.Emitter),this.onCreateRequest=this._onCreateRequest.event,this._timeout=C===void 0?15e3:C}createRequest(C){return new Promise((E,b)=>{const O=++this._lastRequestId;this._pendingRequests.set(O,E),this._onCreateRequest.fire({requestId:O,...C});const L=new R.CancellationTokenSource;(0,v.timeout)(this._timeout,L.token).then(()=>b(`Request ${O} timed out (${this._timeout}ms)`)),this._pendingRequestDisposables.set(O,[(0,T.toDisposable)(()=>L.cancel())])})}acceptReply(C,E){const b=this._pendingRequests.get(C);b?(this._pendingRequests.delete(C),(0,T.dispose)(this._pendingRequestDisposables.get(C)||[]),this._pendingRequestDisposables.delete(C),b(E)):this._logService.warn(`RequestStore#acceptReply was called without receiving a matching request ${C}`)}};A=pe([De(1,D.ILogService)],A),e.RequestStore=A}),define(ie[25],se([0,1,30]),function(J,e,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ProfileSource=e.FlowControlConstants=e.LocalReconnectConstants=e.TerminalLocationString=e.TerminalLocation=e.HeartbeatConstants=e.ProcessPropertyType=e.IPtyService=e.TerminalIpcChannels=e.TitleEventSource=e.WindowsShellType=e.TerminalSettingId=e.TerminalSettingPrefix=void 0;var R;(function(l){l.Shell="terminal.integrated.shell.",l.ShellArgs="terminal.integrated.shellArgs.",l.DefaultProfile="terminal.integrated.defaultProfile.",l.Profiles="terminal.integrated.profiles."})(R=e.TerminalSettingPrefix||(e.TerminalSettingPrefix={}));var p;(function(l){l.ShellLinux="terminal.integrated.shell.linux",l.ShellMacOs="terminal.integrated.shell.osx",l.ShellWindows="terminal.integrated.shell.windows",l.SendKeybindingsToShell="terminal.integrated.sendKeybindingsToShell",l.AutomationShellLinux="terminal.integrated.automationShell.linux",l.AutomationShellMacOs="terminal.integrated.automationShell.osx",l.AutomationShellWindows="terminal.integrated.automationShell.windows",l.AutomationProfileLinux="terminal.integrated.automationProfile.linux",l.AutomationProfileMacOs="terminal.integrated.automationProfile.osx",l.AutomationProfileWindows="terminal.integrated.automationProfile.windows",l.ShellArgsLinux="terminal.integrated.shellArgs.linux",l.ShellArgsMacOs="terminal.integrated.shellArgs.osx",l.ShellArgsWindows="terminal.integrated.shellArgs.windows",l.ProfilesWindows="terminal.integrated.profiles.windows",l.ProfilesMacOs="terminal.integrated.profiles.osx",l.ProfilesLinux="terminal.integrated.profiles.linux",l.DefaultProfileLinux="terminal.integrated.defaultProfile.linux",l.DefaultProfileMacOs="terminal.integrated.defaultProfile.osx",l.DefaultProfileWindows="terminal.integrated.defaultProfile.windows",l.UseWslProfiles="terminal.integrated.useWslProfiles",l.TabsEnabled="terminal.integrated.tabs.enabled",l.TabsEnableAnimation="terminal.integrated.tabs.enableAnimation",l.TabsHideCondition="terminal.integrated.tabs.hideCondition",l.TabsShowActiveTerminal="terminal.integrated.tabs.showActiveTerminal",l.TabsShowActions="terminal.integrated.tabs.showActions",l.TabsLocation="terminal.integrated.tabs.location",l.TabsFocusMode="terminal.integrated.tabs.focusMode",l.MacOptionIsMeta="terminal.integrated.macOptionIsMeta",l.MacOptionClickForcesSelection="terminal.integrated.macOptionClickForcesSelection",l.AltClickMovesCursor="terminal.integrated.altClickMovesCursor",l.CopyOnSelection="terminal.integrated.copyOnSelection",l.EnableMultiLinePasteWarning="terminal.integrated.enableMultiLinePasteWarning",l.DrawBoldTextInBrightColors="terminal.integrated.drawBoldTextInBrightColors",l.FontFamily="terminal.integrated.fontFamily",l.FontSize="terminal.integrated.fontSize",l.LetterSpacing="terminal.integrated.letterSpacing",l.LineHeight="terminal.integrated.lineHeight",l.MinimumContrastRatio="terminal.integrated.minimumContrastRatio",l.FastScrollSensitivity="terminal.integrated.fastScrollSensitivity",l.MouseWheelScrollSensitivity="terminal.integrated.mouseWheelScrollSensitivity",l.BellDuration="terminal.integrated.bellDuration",l.FontWeight="terminal.integrated.fontWeight",l.FontWeightBold="terminal.integrated.fontWeightBold",l.CursorBlinking="terminal.integrated.cursorBlinking",l.CursorStyle="terminal.integrated.cursorStyle",l.CursorWidth="terminal.integrated.cursorWidth",l.Scrollback="terminal.integrated.scrollback",l.DetectLocale="terminal.integrated.detectLocale",l.DefaultLocation="terminal.integrated.defaultLocation",l.GpuAcceleration="terminal.integrated.gpuAcceleration",l.TerminalTitleSeparator="terminal.integrated.tabs.separator",l.TerminalTitle="terminal.integrated.tabs.title",l.TerminalDescription="terminal.integrated.tabs.description",l.RightClickBehavior="terminal.integrated.rightClickBehavior",l.Cwd="terminal.integrated.cwd",l.ConfirmOnExit="terminal.integrated.confirmOnExit",l.ConfirmOnKill="terminal.integrated.confirmOnKill",l.EnableBell="terminal.integrated.enableBell",l.CommandsToSkipShell="terminal.integrated.commandsToSkipShell",l.AllowChords="terminal.integrated.allowChords",l.AllowMnemonics="terminal.integrated.allowMnemonics",l.EnvMacOs="terminal.integrated.env.osx",l.EnvLinux="terminal.integrated.env.linux",l.EnvWindows="terminal.integrated.env.windows",l.EnvironmentChangesIndicator="terminal.integrated.environmentChangesIndicator",l.EnvironmentChangesRelaunch="terminal.integrated.environmentChangesRelaunch",l.ShowExitAlert="terminal.integrated.showExitAlert",l.SplitCwd="terminal.integrated.splitCwd",l.WindowsEnableConpty="terminal.integrated.windowsEnableConpty",l.WordSeparators="terminal.integrated.wordSeparators",l.EnableFileLinks="terminal.integrated.enableFileLinks",l.UnicodeVersion="terminal.integrated.unicodeVersion",l.LocalEchoLatencyThreshold="terminal.integrated.localEchoLatencyThreshold",l.LocalEchoEnabled="terminal.integrated.localEchoEnabled",l.LocalEchoExcludePrograms="terminal.integrated.localEchoExcludePrograms",l.LocalEchoStyle="terminal.integrated.localEchoStyle",l.EnablePersistentSessions="terminal.integrated.enablePersistentSessions",l.PersistentSessionReviveProcess="terminal.integrated.persistentSessionReviveProcess",l.CustomGlyphs="terminal.integrated.customGlyphs",l.PersistentSessionScrollback="terminal.integrated.persistentSessionScrollback",l.InheritEnv="terminal.integrated.inheritEnv",l.ShowLinkHover="terminal.integrated.showLinkHover",l.IgnoreProcessNames="terminal.integrated.ignoreProcessNames",l.AutoReplies="terminal.integrated.autoReplies",l.ShellIntegrationEnabled="terminal.integrated.shellIntegration.enabled",l.ShellIntegrationShowWelcome="terminal.integrated.shellIntegration.showWelcome",l.ShellIntegrationDecorationsEnabled="terminal.integrated.shellIntegration.decorationsEnabled",l.ShellIntegrationDecorationIcon="terminal.integrated.shellIntegration.decorationIcon",l.ShellIntegrationDecorationIconError="terminal.integrated.shellIntegration.decorationIconError",l.ShellIntegrationDecorationIconSuccess="terminal.integrated.shellIntegration.decorationIconSuccess",l.ShellIntegrationCommandHistory="terminal.integrated.shellIntegration.history"})(p=e.TerminalSettingId||(e.TerminalSettingId={}));var T;(function(l){l.CommandPrompt="cmd",l.PowerShell="pwsh",l.Wsl="wsl",l.GitBash="gitbash"})(T=e.WindowsShellType||(e.WindowsShellType={}));var D;(function(l){l[l.Api=0]="Api",l[l.Process=1]="Process",l[l.Sequence=2]="Sequence",l[l.Config=3]="Config"})(D=e.TitleEventSource||(e.TitleEventSource={}));var A;(function(l){l.LocalPty="localPty",l.PtyHost="ptyHost",l.Log="log",l.Heartbeat="heartbeat"})(A=e.TerminalIpcChannels||(e.TerminalIpcChannels={})),e.IPtyService=(0,v.createDecorator)("ptyService");var g;(function(l){l.Cwd="cwd",l.InitialCwd="initialCwd",l.FixedDimensions="fixedDimensions",l.Title="title",l.ShellType="shellType",l.HasChildProcesses="hasChildProcesses",l.ResolvedShellLaunchConfig="resolvedShellLaunchConfig",l.OverrideDimensions="overrideDimensions"})(g=e.ProcessPropertyType||(e.ProcessPropertyType={}));var C;(function(l){l[l.BeatInterval=5e3]="BeatInterval",l[l.FirstWaitMultiplier=1.2]="FirstWaitMultiplier",l[l.SecondWaitMultiplier=1]="SecondWaitMultiplier",l[l.CreateProcessTimeout=5e3]="CreateProcessTimeout"})(C=e.HeartbeatConstants||(e.HeartbeatConstants={}));var E;(function(l){l[l.Panel=1]="Panel",l[l.Editor=2]="Editor"})(E=e.TerminalLocation||(e.TerminalLocation={}));var b;(function(l){l.TerminalView="view",l.Editor="editor"})(b=e.TerminalLocationString||(e.TerminalLocationString={}));var O;(function(l){l[l.GraceTime=6e4]="GraceTime",l[l.ShortGraceTime=6e3]="ShortGraceTime"})(O=e.LocalReconnectConstants||(e.LocalReconnectConstants={}));var L;(function(l){l[l.HighWatermarkChars=1e5]="HighWatermarkChars",l[l.LowWatermarkChars=5e3]="LowWatermarkChars",l[l.CharCountAckSize=5e3]="CharCountAckSize"})(L=e.FlowControlConstants||(e.FlowControlConstants={}));var w;(function(l){l.GitBash="Git Bash",l.Pwsh="PowerShell"})(w=e.ProfileSource||(e.ProfileSource={}))}),define(ie[57],se([0,1,6,3,2]),function(J,e,v,R,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalAutoResponder=void 0;class T extends R.Disposable{constructor(A,g,C){super();this._pointer=0,this._paused=!1,this._throttled=!1,this._register(A.onProcessData(E=>{if(this._paused||this._throttled)return;const b=typeof E=="string"?E:E.data;for(let O=0;O<b.length;O++)b[O]===g[this._pointer]?this._pointer++:this._reset(),this._pointer===g.length&&(A.input(C),this._throttled=!0,(0,v.timeout)(1e3).then(()=>this._throttled=!1),this._reset())}))}_reset(){this._pointer=0}handleResize(){p.isWindows&&(this._paused=!0)}handleInput(){this._paused=!1}}e.TerminalAutoResponder=T}),define(ie[58],se([0,1]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalDataBufferer=void 0;class v{constructor(p){this._callback=p,this._terminalBufferMap=new Map}dispose(){for(const p of this._terminalBufferMap.values())p.dispose()}startBuffering(p,T,D=5){let A;return A=T(g=>{const C=typeof g=="string"?g:g.data;let E=this._terminalBufferMap.get(p);if(E){E.data.push(C);return}const b=setTimeout(()=>this.flushBuffer(p),D);E={data:[C],timeoutId:b,dispose:()=>{clearTimeout(b),this.flushBuffer(p),A.dispose()}},this._terminalBufferMap.set(p,E)}),A}stopBuffering(p){const T=this._terminalBufferMap.get(p);T&&T.dispose()}flushBuffer(p){const T=this._terminalBufferMap.get(p);T&&(this._terminalBufferMap.delete(p),this._callback(p,T.data.join("")))}}e.TerminalDataBufferer=v}),define(ie[59],se([0,1]),function(J,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.escapeNonWindowsPath=void 0;function v(R){let p=R;p.indexOf("\\")!==0&&(p=p.replace(/\\/g,"\\\\"));const T=/[\`\$\|\&\>\~\#\!\^\*\;\<\"\']/g;return p=p.replace(T,""),`'${p}'`}e.escapeNonWindowsPath=v}),define(ie[31],se([0,1,5,17,4,3,47,12]),function(J,e,v,R,p,T,D,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ChildProcessMonitor=e.ignoreProcessNames=void 0;var g;(function(E){E[E.InactiveThrottleDuration=5e3]="InactiveThrottleDuration",E[E.ActiveDebounceDuration=1e3]="ActiveDebounceDuration"})(g||(g={})),e.ignoreProcessNames=[];let C=class extends T.Disposable{constructor(b,O){super();this._pid=b,this._logService=O,this._isDisposed=!1,this._hasChildProcesses=!1,this._onDidChangeHasChildProcesses=this._register(new p.Emitter),this.onDidChangeHasChildProcesses=this._onDidChangeHasChildProcesses.event}set hasChildProcesses(b){this._hasChildProcesses!==b&&(this._hasChildProcesses=b,this._logService.debug("ChildProcessMonitor: Has child processes changed",b),this._onDidChangeHasChildProcesses.fire(b))}get hasChildProcesses(){return this._hasChildProcesses}dispose(){this._isDisposed=!0,super.dispose()}handleInput(){this._refreshActive()}handleOutput(){this._refreshInactive()}async _refreshActive(){if(!this._isDisposed)try{const b=await(0,D.listProcesses)(this._pid);this.hasChildProcesses=this._processContainsChildren(b)}catch(b){this._logService.debug("ChildProcessMonitor: Fetching process tree failed",b)}}_refreshInactive(){this._refreshActive()}_processContainsChildren(b){if(!b.children)return!1;if(b.children.length===1){const O=b.children[0];let L;if(O.cmd.startsWith('"'))L=O.cmd.substring(1,O.cmd.indexOf('"',1));else{const w=O.cmd.indexOf(" ");w===-1?L=O.cmd:L=O.cmd.substring(0,w)}return e.ignoreProcessNames.indexOf((0,v.parse)(L).name)===-1}return b.children.length>0}};pe([(0,R.debounce)(1e3)],C.prototype,"_refreshActive",null),pe([(0,R.throttle)(5e3)],C.prototype,"_refreshInactive",null),C=pe([De(1,A.ILogService)],C),e.ChildProcessMonitor=C}),define(ie[60],se([0,1,4,3,25]),function(J,e,v,R,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HeartbeatService=void 0;class T extends R.Disposable{constructor(){super();this._onBeat=this._register(new v.Emitter),this.onBeat=this._onBeat.event;const A=setInterval(()=>{this._onBeat.fire()},p.HeartbeatConstants.BeatInterval);this._register((0,R.toDisposable)(()=>clearInterval(A)))}}e.HeartbeatService=T}),define(ie[32],se([0,1,15,22,5,2,19,9,14]),function(J,e,v,R,p,T,D,A,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findExecutable=e.getWindowsBuildNumber=void 0;function C(){const b=/(\d+)\.(\d+)\.(\d+)/g.exec(v.release());let O=0;return b&&b.length===4&&(O=parseInt(b[3])),O}e.getWindowsBuildNumber=C;async function E(b,O,L,w=D.env,l=g.Promises.exists){if(p.isAbsolute(b))return await l(b)?b:void 0;if(O===void 0&&(O=D.cwd()),p.dirname(b)!=="."){const h=p.join(O,b);return await l(h)?h:void 0}const M=(0,R.getCaseInsensitive)(w,"PATH");if(L===void 0&&(0,A.isString)(M)&&(L=M.split(p.delimiter)),L===void 0||L.length===0){const h=p.join(O,b);return await l(h)?h:void 0}for(let h of L){let o;if(p.isAbsolute(h)?o=p.join(h,b):o=p.join(O,h,b),await l(o))return o;if(T.isWindows){let d=o+".com";if(await l(d)||(d=o+".exe",await l(d)))return d}}const B=p.join(O,b);return await l(B)?B:void 0}e.findExecutable=E}),define(ie[61],se([0,1,6,17,4,3,2]),function(J,e,v,R,p,T,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WindowsShellHelper=void 0;const A=["cmd.exe","powershell.exe","pwsh.exe","bash.exe","wsl.exe","ubuntu.exe","ubuntu1804.exe","kali.exe","debian.exe","opensuse-42.exe","sles-12.exe"];let g;class C extends T.Disposable{constructor(b){super();if(this._rootProcessId=b,this._shellTitle="",this._onShellNameChanged=new p.Emitter,this._onShellTypeChanged=new p.Emitter,!D.isWindows)throw new Error(`WindowsShellHelper cannot be instantiated on ${D.platform}`);this._isDisposed=!1,this._startMonitoringShell()}get shellType(){return this._shellType}get shellTitle(){return this._shellTitle}get onShellNameChanged(){return this._onShellNameChanged.event}get onShellTypeChanged(){return this._onShellTypeChanged.event}async _startMonitoringShell(){this._isDisposed||this.checkShell()}async checkShell(){D.isWindows&&(await(0,v.timeout)(300),this.getShellName().then(b=>{const O=this.getShellType(b);O!==this._shellType&&(this._onShellTypeChanged.fire(O),this._onShellNameChanged.fire(b),this._shellType=O,this._shellTitle=b)}))}traverseTree(b){if(!b)return"";if(A.indexOf(b.name)===-1||!b.children||b.children.length===0)return b.name;let O=0;for(;O<b.children.length;O++){const L=b.children[O];if(!L.children||L.children.length===0||L.children[0].name!=="conhost.exe")break}return O>=b.children.length?b.name:this.traverseTree(b.children[O])}dispose(){this._isDisposed=!0,super.dispose()}async getShellName(){return this._isDisposed?Promise.resolve(""):this._currentRequest?this._currentRequest:(g||(g=await new Promise((b,O)=>{J(["windows-process-tree"],b,O)})),this._currentRequest=new Promise(b=>{g.getProcessTree(this._rootProcessId,O=>{const L=this.traverseTree(O);this._currentRequest=void 0,b(L)})}),this._currentRequest)}getShellType(b){switch(b.toLowerCase()){case"cmd.exe":return"cmd";case"powershell.exe":case"pwsh.exe":return"pwsh";case"bash.exe":case"git-cmd.exe":return"gitbash";case"wsl.exe":case"ubuntu.exe":case"ubuntu1804.exe":case"kali.exe":case"debian.exe":case"opensuse-42.exe":case"sles-12.exe":return"wsl";default:return}}}pe([(0,R.debounce)(500)],C.prototype,"checkShell",null),e.WindowsShellHelper=C}),define(ie[62],se([0,1,16,45,15,6,4,3,13,5,2,7,14,54,12,31,32,61]),function(J,e,v,R,p,T,D,A,g,C,E,b,O,L,w,l,I,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalProcess=void 0;var B;(function(P){P[P.DataFlushTimeout=250]="DataFlushTimeout",P[P.MaximumShutdownTime=5e3]="MaximumShutdownTime"})(B||(B={}));var h;(function(P){P[P.KillSpawnThrottleInterval=250]="KillSpawnThrottleInterval",P[P.KillSpawnSpacingDuration=50]="KillSpawnSpacingDuration",P[P.WriteMaxChunkSize=50]="WriteMaxChunkSize",P[P.WriteInterval=5]="WriteInterval"})(h||(h={}));let o=class Ae extends A.Disposable{constructor(u,s,t,i,n,r,a,_){super();this.shellLaunchConfig=u,this._executableEnv=r,this._logService=_,this.id=0,this.shouldPersist=!1,this._properties={cwd:"",initialCwd:"",fixedDimensions:{cols:void 0,rows:void 0},title:"",shellType:void 0,hasChildProcesses:!0,resolvedShellLaunchConfig:{},overrideDimensions:void 0},this._currentTitle="",this._isDisposed=!1,this._titleInterval=null,this._writeQueue=[],this._isPtyPaused=!1,this._unacknowledgedCharCount=0,this._onProcessData=this._register(new D.Emitter),this.onProcessData=this._onProcessData.event,this._onProcessReady=this._register(new D.Emitter),this.onProcessReady=this._onProcessReady.event,this._onDidChangeProperty=this._register(new D.Emitter),this.onDidChangeProperty=this._onDidChangeProperty.event,this._onProcessExit=this._register(new D.Emitter),this.onProcessExit=this._onProcessExit.event;let F;E.isWindows?F=C.basename(this.shellLaunchConfig.executable||""):F="xterm-256color",this._initialCwd=s,this._properties.initialCwd=this._initialCwd,this._properties.cwd=this._initialCwd;const H=a&&process.platform==="win32"&&(0,I.getWindowsBuildNumber)()>=18309;this._ptyOptions={name:F,cwd:s,env:n,cols:t,rows:i,useConpty:H,conptyInheritCursor:H&&!!u.initialText},E.isWindows&&(H&&t===0&&i===0&&this.shellLaunchConfig.executable?.endsWith("Git\\bin\\bash.exe")&&(this._delayedResizer=new d,this._register(this._delayedResizer.onTrigger(G=>{this._delayedResizer?.dispose(),this._delayedResizer=void 0,G.cols&&G.rows&&this.resize(G.cols,G.rows)}))),this.onProcessReady(G=>{this._windowsShellHelper=this._register(new M.WindowsShellHelper(G.pid)),this._register(this._windowsShellHelper.onShellTypeChanged(re=>this._onDidChangeProperty.fire({type:"shellType",value:re}))),this._register(this._windowsShellHelper.onShellNameChanged(re=>this._onDidChangeProperty.fire({type:"title",value:re})))}))}get exitMessage(){return this._exitMessage}get currentTitle(){return this._windowsShellHelper?.shellTitle||this._currentTitle}get shellType(){return this._windowsShellHelper?this._windowsShellHelper.shellType:void 0}async start(){const s=(await Promise.all([this._validateCwd(),this._validateExecutable()])).find(t=>t!==void 0);if(s)return s;if(this.shellLaunchConfig.env?._ZDOTDIR==="1"){const t=C.join((0,p.tmpdir)(),"vscode-zsh");await R.promises.mkdir(t,{recursive:!0});const i=C.join(C.dirname(g.FileAccess.asFileUri("",J).fsPath),"out/vs/workbench/contrib/terminal/browser/media/shellIntegration.zsh");await R.promises.copyFile(i,C.join(t,".zshrc")),this._ptyOptions.env=this._ptyOptions.env||{},this._ptyOptions.env.ZDOTDIR=t,delete this._ptyOptions.env._ZDOTDIR}try{await this.setupPtyProcess(this.shellLaunchConfig,this._ptyOptions);return}catch(t){return this._logService.trace("IPty#spawn native exception",t),{message:`A native exception occurred during launch (${t.message})`}}}async _validateCwd(){try{if(!(await O.Promises.stat(this._initialCwd)).isDirectory())return{message:(0,L.localize)(0,null,this._initialCwd.toString())}}catch(u){if(u?.code==="ENOENT")return{message:(0,L.localize)(1,null,this._initialCwd.toString())}}this._onDidChangeProperty.fire({type:"initialCwd",value:this._initialCwd})}async _validateExecutable(){const u=this.shellLaunchConfig;if(!u.executable)throw new Error("IShellLaunchConfig.executable not set");try{const s=await O.Promises.stat(u.executable);if(!s.isFile()&&!s.isSymbolicLink())return{message:(0,L.localize)(2,null,u.executable)}}catch(s){if(s?.code==="ENOENT"){let t=u.cwd instanceof b.URI?u.cwd.path:u.cwd;const i=u.env&&u.env.PATH?u.env.PATH.split(C.delimiter):void 0,n=await(0,I.findExecutable)(u.executable,t,i,this._executableEnv);if(!n)return{message:(0,L.localize)(3,null,u.executable)};u.executable=n}}}async setupPtyProcess(u,s){const t=u.args||[];await this._throttleKillSpawn(),this._logService.trace("IPty#spawn",u.executable,t,s);const i=(await new Promise((n,r)=>{J(["node-pty"],n,r)})).spawn(u.executable,t,s);this._ptyProcess=i,this._childProcessMonitor=this._register(new l.ChildProcessMonitor(i.pid,this._logService)),this._childProcessMonitor.onDidChangeHasChildProcesses(n=>this._onDidChangeProperty.fire({type:"hasChildProcesses",value:n})),this._processStartupComplete=new Promise(n=>{this.onProcessReady(()=>n())}),i.onData(n=>{this._unacknowledgedCharCount+=n.length,!this._isPtyPaused&&this._unacknowledgedCharCount>1e5&&(this._logService.trace(`Flow control: Pause (${this._unacknowledgedCharCount} > ${1e5})`),this._isPtyPaused=!0,i.pause()),this._onProcessData.fire(n),this._closeTimeout&&this._queueProcessExit(),this._windowsShellHelper?.checkShell(),this._childProcessMonitor?.handleOutput()}),i.onExit(n=>{this._exitCode=n.exitCode,this._queueProcessExit()}),this._sendProcessId(i.pid),this._setupTitlePolling(i)}dispose(){this._isDisposed=!0,this._titleInterval&&clearInterval(this._titleInterval),this._titleInterval=null,super.dispose()}_setupTitlePolling(u){setTimeout(()=>this._sendProcessTitle(u)),E.isWindows||(this._titleInterval=setInterval(()=>{this._currentTitle!==u.process&&this._sendProcessTitle(u)},200))}_queueProcessExit(){this._closeTimeout&&clearTimeout(this._closeTimeout),this._closeTimeout=setTimeout(()=>{this._closeTimeout=void 0,this._kill()},250)}async _kill(){if(await this._processStartupComplete,!this._isDisposed){try{this._ptyProcess&&(await this._throttleKillSpawn(),this._logService.trace("IPty#kill"),this._ptyProcess.kill())}catch{}this._onProcessExit.fire(this._exitCode||0),this.dispose()}}async _throttleKillSpawn(){if(!(!E.isWindows||!("useConpty"in this._ptyOptions)||!this._ptyOptions.useConpty)){for(;Date.now()-Ae._lastKillOrStart<250;)this._logService.trace("Throttling kill/spawn call"),await(0,T.timeout)(250-(Date.now()-Ae._lastKillOrStart)+50);Ae._lastKillOrStart=Date.now()}}_sendProcessId(u){this._onProcessReady.fire({pid:u,cwd:this._initialCwd,requiresWindowsMode:E.isWindows&&(0,I.getWindowsBuildNumber)()<21376})}_sendProcessTitle(u){this._isDisposed||(this._currentTitle=u.process,this._onDidChangeProperty.fire({type:"title",value:this._currentTitle}))}shutdown(u){u&&!E.isWindows?this._kill():!this._closeTimeout&&!this._isDisposed&&(this._queueProcessExit(),setTimeout(()=>{this._closeTimeout&&!this._isDisposed&&(this._closeTimeout=void 0,this._kill())},5e3))}input(u,s){if(!(this._isDisposed||!this._ptyProcess)){for(let t=0;t<=Math.floor(u.length/50);t++){const i={isBinary:s||!1,data:u.substr(t*50,50)};this._writeQueue.push(i)}this._startWrite()}}async processBinary(u){this.input(u,!0)}async refreshProperty(u){switch(u){case"cwd":{const s=await this.getCwd();return s!==this._properties.cwd&&(this._properties.cwd=s,this._onDidChangeProperty.fire({type:"cwd",value:this._properties.cwd})),s}case"initialCwd":{const s=await this.getInitialCwd();return s!==this._properties.initialCwd&&(this._properties.initialCwd=s,this._onDidChangeProperty.fire({type:"initialCwd",value:this._properties.initialCwd})),s}case"title":return this.currentTitle;default:return this.shellType}}async updateProperty(u,s){u==="fixedDimensions"&&(this._properties.fixedDimensions=s)}_startWrite(){if(!(this._writeTimeout!==void 0||this._writeQueue.length===0)){if(this._doWrite(),this._writeQueue.length===0){this._writeTimeout=void 0;return}this._writeTimeout=setTimeout(()=>{this._writeTimeout=void 0,this._startWrite()},5)}}_doWrite(){const u=this._writeQueue.shift();u.isBinary?this._ptyProcess.write(Buffer.from(u.data,"binary")):this._ptyProcess.write(u.data),this._childProcessMonitor?.handleInput()}resize(u,s){if(!this._isDisposed&&!(typeof u!="number"||typeof s!="number"||isNaN(u)||isNaN(s))&&this._ptyProcess){if(u=Math.max(u,1),s=Math.max(s,1),this._delayedResizer){this._delayedResizer.cols=u,this._delayedResizer.rows=s;return}this._logService.trace("IPty#resize",u,s);try{this._ptyProcess.resize(u,s)}catch(t){if(this._logService.trace("IPty#resize exception "+t.message),this._exitCode!==void 0&&t.message!=="ioctl(2) failed, EBADF"&&t.message!=="Cannot resize a pty that has already exited")throw t}}}acknowledgeDataEvent(u){this._unacknowledgedCharCount=Math.max(this._unacknowledgedCharCount-u,0),this._logService.trace(`Flow control: Ack ${u} chars (unacknowledged: ${this._unacknowledgedCharCount})`),this._isPtyPaused&&this._unacknowledgedCharCount<5e3&&(this._logService.trace(`Flow control: Resume (${this._unacknowledgedCharCount} < ${5e3})`),this._ptyProcess?.resume(),this._isPtyPaused=!1)}clearUnacknowledgedChars(){this._unacknowledgedCharCount=0,this._logService.trace("Flow control: Cleared all unacknowledged chars, forcing resume"),this._isPtyPaused&&(this._ptyProcess?.resume(),this._isPtyPaused=!1)}async setUnicodeVersion(u){}getInitialCwd(){return Promise.resolve(this._initialCwd)}async getCwd(){if(E.isMacintosh)return new Promise(u=>{if(!this._ptyProcess){u(this._initialCwd);return}this._logService.trace("IPty#pid"),(0,v.exec)("lsof -OPln -p "+this._ptyProcess.pid+" | grep cwd",(s,t,i)=>{!s&&t!==""?u(t.substring(t.indexOf("/"),t.length-1)):(this._logService.error("lsof did not run successfully, it may not be on the $PATH?",s,t,i),u(this._initialCwd))})});if(E.isLinux){if(!this._ptyProcess)return this._initialCwd;this._logService.trace("IPty#pid");try{return await O.Promises.readlink(`/proc/${this._ptyProcess.pid}/cwd`)}catch{return this._initialCwd}}return this._initialCwd}getLatency(){return Promise.resolve(0)}};o._lastKillOrStart=0,o=pe([De(7,w.ILogService)],o),e.TerminalProcess=o;class d extends A.Disposable{constructor(){super();this._onTrigger=this._register(new D.Emitter),this._timeout=setTimeout(()=>{this._onTrigger.fire({rows:this.rows,cols:this.cols})},1e3),this._register({dispose:()=>{clearTimeout(this._timeout)}})}get onTrigger(){return this._onTrigger.event}dispose(){super.dispose(),clearTimeout(this._timeout)}}}),define(ie[63],se([0,1,16,6,4,3,2,51,56,25,58,59,66,32,62,53,31,57]),function(J,e,v,R,p,T,D,A,g,C,E,b,O,L,w,l,I,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PersistentTerminalProcess=e.PtyService=void 0;let B,h;class o extends T.Disposable{constructor(t,i,n){super();this._lastPtyId=t,this._logService=i,this._reconnectConstants=n,this._ptys=new Map,this._workspaceLayoutInfos=new Map,this._revivedPtyIdMap=new Map,this._autoReplies=new Map,this._onHeartbeat=this._register(new p.Emitter),this.onHeartbeat=this._onHeartbeat.event,this._onProcessData=this._register(new p.Emitter),this.onProcessData=this._onProcessData.event,this._onProcessReplay=this._register(new p.Emitter),this.onProcessReplay=this._onProcessReplay.event,this._onProcessReady=this._register(new p.Emitter),this.onProcessReady=this._onProcessReady.event,this._onProcessExit=this._register(new p.Emitter),this.onProcessExit=this._onProcessExit.event,this._onProcessOrphanQuestion=this._register(new p.Emitter),this.onProcessOrphanQuestion=this._onProcessOrphanQuestion.event,this._onDidRequestDetach=this._register(new p.Emitter),this.onDidRequestDetach=this._onDidRequestDetach.event,this._onDidChangeProperty=this._register(new p.Emitter),this.onDidChangeProperty=this._onDidChangeProperty.event,this._register((0,T.toDisposable)(()=>{for(const r of this._ptys.values())r.shutdown(!0);this._ptys.clear()})),this._detachInstanceRequestStore=this._register(new g.RequestStore(void 0,this._logService)),this._detachInstanceRequestStore.onCreateRequest(this._onDidRequestDetach.fire,this._onDidRequestDetach)}async refreshIgnoreProcessNames(t){I.ignoreProcessNames.length=0,I.ignoreProcessNames.push(...t)}async requestDetachInstance(t,i){return this._detachInstanceRequestStore.createRequest({workspaceId:t,instanceId:i})}async acceptDetachInstanceReply(t,i){let n;const r=this._ptys.get(i);r&&(n=await this._buildProcessDetails(i,r)),this._detachInstanceRequestStore.acceptReply(t,n)}async serializeTerminalState(t){const i=[];for(const[r,a]of this._ptys.entries())a.hasWrittenData&&t.indexOf(r)!==-1&&i.push(R.Promises.withAsyncBody(async _=>{_({id:r,shellLaunchConfig:a.shellLaunchConfig,processDetails:await this._buildProcessDetails(r,a),processLaunchOptions:a.processLaunchOptions,unicodeVersion:a.unicodeVersion,replayEvent:await a.serializeNormalBuffer(),timestamp:Date.now()})}));const n={version:1,state:await Promise.all(i)};return JSON.stringify(n)}async reviveTerminalProcesses(t,i){for(const n of t){const r=(0,l.localize)(0,null,new Date(n.timestamp).toLocaleDateString(i),new Date(n.timestamp).toLocaleTimeString(i)),a=await this.createProcess({...n.shellLaunchConfig,cwd:n.processDetails.cwd,color:n.processDetails.color,icon:n.processDetails.icon,name:n.processDetails.titleSource===C.TitleEventSource.Api?n.processDetails.title:void 0,initialText:n.replayEvent.events[0].data+`[0m
\r[1;48;5;252;38;5;234m `+r+` [K[0m
\r`},n.processDetails.cwd,n.replayEvent.events[0].cols,n.replayEvent.events[0].rows,n.unicodeVersion,n.processLaunchOptions.env,n.processLaunchOptions.executableEnv,n.processLaunchOptions.windowsEnableConpty,!0,n.processDetails.workspaceId,n.processDetails.workspaceName,!0);this._revivedPtyIdMap.set(n.id,{newId:a,state:n})}}async shutdownAll(){this.dispose()}async createProcess(t,i,n,r,a,_,F,H,G,re,oe,ce){if(t.attachPersistentProcess)throw new Error("Attempt to create a process when attach object was provided");const Q=++this._lastPtyId,Y=new w.TerminalProcess(t,i,n,r,_,F,H,this._logService);Y.onProcessData(x=>this._onProcessData.fire({id:Q,event:x}));const te={env:_,executableEnv:F,windowsEnableConpty:H},ee=new d(Q,Y,re,oe,G,n,r,te,a,this._reconnectConstants,this._logService,ce?t.initialText:void 0,t.icon,t.color,t.name,t.fixedDimensions);return Y.onDidChangeProperty(x=>this._onDidChangeProperty.fire({id:Q,property:x})),Y.onProcessExit(x=>{ee.dispose(),this._ptys.delete(Q),this._onProcessExit.fire({id:Q,event:x})}),ee.onProcessReplay(x=>this._onProcessReplay.fire({id:Q,event:x})),ee.onProcessReady(x=>this._onProcessReady.fire({id:Q,event:x})),ee.onProcessOrphanQuestion(()=>this._onProcessOrphanQuestion.fire({id:Q})),ee.onDidChangeProperty(x=>this._onDidChangeProperty.fire({id:Q,property:x})),ee.onPersistentProcessReady(()=>{for(const x of this._autoReplies.entries())ee.installAutoReply(x[0],x[1])}),this._ptys.set(Q,ee),Q}async attachToProcess(t){try{this._throwIfNoPty(t).attach(),this._logService.trace(`Persistent process reconnection "${t}"`)}catch(i){this._logService.trace(`Persistent process reconnection "${t}" failed`,i.message)}}async updateTitle(t,i,n){this._throwIfNoPty(t).setTitle(i,n)}async updateIcon(t,i,n){this._throwIfNoPty(t).setIcon(i,n)}async refreshProperty(t,i){return this._throwIfNoPty(t).refreshProperty(i)}async updateProperty(t,i,n){return this._throwIfNoPty(t).updateProperty(i,n)}async detachFromProcess(t){return this._throwIfNoPty(t).detach()}async reduceConnectionGraceTime(){for(const t of this._ptys.values())t.reduceGraceTime()}async listProcesses(){const t=Array.from(this._ptys.entries()).filter(([r,a])=>a.shouldPersistTerminal);this._logService.info(`Listing ${t.length} persistent terminals, ${this._ptys.size} total terminals`);const i=t.map(async([r,a])=>this._buildProcessDetails(r,a));return(await Promise.all(i)).filter(r=>r.isOrphan)}async start(t){this._logService.trace("ptyService#start",t);const i=this._ptys.get(t);return i?i.start():{message:`Could not find pty with id "${t}"`}}async shutdown(t,i){return this._logService.trace("ptyService#shutDown",t,i),this._ptys.get(t)?.shutdown(i)}async input(t,i){return this._throwIfNoPty(t).input(i)}async processBinary(t,i){return this._throwIfNoPty(t).writeBinary(i)}async resize(t,i,n){return this._throwIfNoPty(t).resize(i,n)}async getInitialCwd(t){return this._throwIfNoPty(t).getInitialCwd()}async getCwd(t){return this._throwIfNoPty(t).getCwd()}async acknowledgeDataEvent(t,i){return this._throwIfNoPty(t).acknowledgeDataEvent(i)}async setUnicodeVersion(t,i){return this._throwIfNoPty(t).setUnicodeVersion(i)}async getLatency(t){return 0}async orphanQuestionReply(t){return this._throwIfNoPty(t).orphanQuestionReply()}async installAutoReply(t,i){this._autoReplies.set(t,i);for(const n of this._ptys.values())n.installAutoReply(t,i)}async uninstallAllAutoReplies(){for(const t of this._autoReplies.keys())for(const i of this._ptys.values())i.uninstallAutoReply(t)}async uninstallAutoReply(t){for(const i of this._ptys.values())i.uninstallAutoReply(t)}async getDefaultSystemShell(t=D.OS){return(0,A.getSystemShell)(t,process.env)}async getEnvironment(){return{...process.env}}async getWslPath(t){return D.isWindows?(0,L.getWindowsBuildNumber)()<17063?t.replace(/\\/g,"/"):new Promise(i=>{(0,v.execFile)("bash.exe",["-c",`wslpath ${(0,b.escapeNonWindowsPath)(t)}`],{},(r,a,_)=>{i((0,b.escapeNonWindowsPath)(a.trim()))}).stdin.end()}):t}async setTerminalLayoutInfo(t){this._workspaceLayoutInfos.set(t.workspaceId,t)}async getTerminalLayoutInfo(t){const i=this._workspaceLayoutInfos.get(t.workspaceId);if(this._logService.trace("ptyService#getLayoutInfo",t),i){const r=(await Promise.all(i.tabs.map(async a=>this._expandTerminalTab(a)))).filter(a=>a.terminals.length>0);return this._logService.trace("ptyService#returnLayoutInfo",r),{tabs:r}}}async _expandTerminalTab(t){const n=(await Promise.all(t.terminals.map(r=>this._expandTerminalInstance(r)))).filter(r=>r.terminal!==null);return{isActive:t.isActive,activePersistentProcessId:t.activePersistentProcessId,terminals:n}}async _expandTerminalInstance(t){try{const i=this._revivedPtyIdMap.get(t.terminal)?.newId,n=i??t.terminal,r=this._throwIfNoPty(n);return{terminal:{...r&&await this._buildProcessDetails(t.terminal,r,i!==void 0),id:n},relativeSize:t.relativeSize}}catch(i){return this._logService.trace("Couldn't get layout info, a terminal was probably disconnected",i.message),{terminal:null,relativeSize:t.relativeSize}}}async _buildProcessDetails(t,i,n=!1){const[r,a]=await Promise.all([i.getCwd(),n?!0:i.isOrphaned()]);return{id:t,title:i.title,titleSource:i.titleSource,pid:i.pid,workspaceId:i.workspaceId,workspaceName:i.workspaceName,cwd:r,isOrphan:a,icon:i.icon,color:i.color,fixedDimensions:i.fixedDimensions}}_throwIfNoPty(t){const i=this._ptys.get(t);if(!i)throw new Error("Could not find pty on pty host");return i}}e.PtyService=o;class d extends T.Disposable{constructor(t,i,n,r,a,_,F,H,G,re,oe,ce,Q,Y,te,ee){super();this._persistentProcessId=t,this._terminalProcess=i,this.workspaceId=n,this.workspaceName=r,this.shouldPersistTerminal=a,this.processLaunchOptions=H,this.unicodeVersion=G,this._logService=oe,this._icon=Q,this._color=Y,this._autoReplies=new Map,this._pendingCommands=new Map,this._isStarted=!1,this._hasWrittenData=!1,this._orphanRequestQueue=new R.Queue,this._onProcessReplay=this._register(new p.Emitter),this.onProcessReplay=this._onProcessReplay.event,this._onProcessReady=this._register(new p.Emitter),this.onProcessReady=this._onProcessReady.event,this._onPersistentProcessReady=this._register(new p.Emitter),this.onPersistentProcessReady=this._onPersistentProcessReady.event,this._onProcessData=this._register(new p.Emitter),this.onProcessData=this._onProcessData.event,this._onProcessOrphanQuestion=this._register(new p.Emitter),this.onProcessOrphanQuestion=this._onProcessOrphanQuestion.event,this._onDidChangeProperty=this._register(new p.Emitter),this.onDidChangeProperty=this._onDidChangeProperty.event,this._inReplay=!1,this._pid=-1,this._cwd="",this._titleSource=C.TitleEventSource.Process,te&&this.setTitle(te,C.TitleEventSource.Api),this._logService.trace("persistentTerminalProcess#ctor",t,arguments),this._wasRevived=ce!==void 0,this._serializer=new P(_,F,re.scrollback,G,ce),this._fixedDimensions=ee,this._orphanQuestionBarrier=null,this._orphanQuestionReplyTime=0,this._disconnectRunner1=this._register(new R.ProcessTimeRunOnceScheduler(()=>{this._logService.info(`Persistent process "${this._persistentProcessId}": The reconnection grace time of ${u(re.graceTime)} has expired, shutting down pid "${this._pid}"`),this.shutdown(!0)},re.graceTime)),this._disconnectRunner2=this._register(new R.ProcessTimeRunOnceScheduler(()=>{this._logService.info(`Persistent process "${this._persistentProcessId}": The short reconnection grace time of ${u(re.shortGraceTime)} has expired, shutting down pid ${this._pid}`),this.shutdown(!0)},re.shortGraceTime)),this._register(this._terminalProcess.onProcessExit(()=>this._bufferer.stopBuffering(this._persistentProcessId))),this._register(this._terminalProcess.onProcessReady(x=>{this._pid=x.pid,this._cwd=x.cwd,this._onProcessReady.fire(x)})),this._register(this._terminalProcess.onDidChangeProperty(x=>{this._onDidChangeProperty.fire(x)})),this._bufferer=new E.TerminalDataBufferer((x,U)=>this._onProcessData.fire(U)),this._register(this._bufferer.startBuffering(this._persistentProcessId,this._terminalProcess.onProcessData)),this._register(this.onProcessData(x=>this._serializer.handleData(x))),this._register((0,T.toDisposable)(()=>{for(const x of this._autoReplies.values())x.dispose();this._autoReplies.clear()}))}get pid(){return this._pid}get shellLaunchConfig(){return this._terminalProcess.shellLaunchConfig}get hasWrittenData(){return this._hasWrittenData}get title(){return this._title||this._terminalProcess.currentTitle}get titleSource(){return this._titleSource}get icon(){return this._icon}get color(){return this._color}get fixedDimensions(){return this._fixedDimensions}setTitle(t,i){this._hasWrittenData=!0,this._title=t,this._titleSource=i}setIcon(t,i){this._hasWrittenData=!0,this._icon=t,this._color=i}_setFixedDimensions(t){this._fixedDimensions=t}attach(){this._logService.trace("persistentTerminalProcess#attach",this._persistentProcessId),this._disconnectRunner1.cancel(),this._disconnectRunner2.cancel()}async detach(){this._logService.trace("persistentTerminalProcess#detach",this._persistentProcessId),this.shouldPersistTerminal?this._disconnectRunner1.schedule():this.shutdown(!0)}serializeNormalBuffer(){return this._serializer.generateReplayEvent(!0)}async refreshProperty(t){return this._terminalProcess.refreshProperty(t)}async updateProperty(t,i){if(t==="fixedDimensions")return this._setFixedDimensions(i)}async start(){if(this._logService.trace("persistentTerminalProcess#start",this._persistentProcessId,this._isStarted),this._isStarted)this._onProcessReady.fire({pid:this._pid,cwd:this._cwd,requiresWindowsMode:D.isWindows&&(0,L.getWindowsBuildNumber)()<21376}),this._onDidChangeProperty.fire({type:"title",value:this._terminalProcess.currentTitle}),this._onDidChangeProperty.fire({type:"shellType",value:this._terminalProcess.shellType}),this.triggerReplay();else{const t=await this._terminalProcess.start();if(t)return t;this._isStarted=!0,this._wasRevived?this.triggerReplay():this._onPersistentProcessReady.fire()}}shutdown(t){return this._terminalProcess.shutdown(t)}input(t){if(this._hasWrittenData=!0,!this._inReplay){for(const i of this._autoReplies.values())i.handleInput();return this._terminalProcess.input(t)}}writeBinary(t){return this._terminalProcess.processBinary(t)}resize(t,i){if(!this._inReplay){this._serializer.handleResize(t,i),this._bufferer.flushBuffer(this._persistentProcessId);for(const n of this._autoReplies.values())n.handleResize();return this._terminalProcess.resize(t,i)}}setUnicodeVersion(t){this.unicodeVersion=t,this._serializer.setUnicodeVersion?.(t)}acknowledgeDataEvent(t){if(!this._inReplay)return this._terminalProcess.acknowledgeDataEvent(t)}getInitialCwd(){return this._terminalProcess.getInitialCwd()}getCwd(){return this._terminalProcess.getCwd()}getLatency(){return this._terminalProcess.getLatency()}async triggerReplay(){this._hasWrittenData=!0;const t=await this._serializer.generateReplayEvent();let i=0;for(const n of t.events)i+=n.data.length;this._logService.info(`Persistent process "${this._persistentProcessId}": Replaying ${i} chars and ${t.events.length} size events`),this._onProcessReplay.fire(t),this._terminalProcess.clearUnacknowledgedChars(),this._onPersistentProcessReady.fire()}installAutoReply(t,i){this._autoReplies.get(t)?.dispose(),this._autoReplies.set(t,new M.TerminalAutoResponder(this._terminalProcess,t,i))}uninstallAutoReply(t){this._autoReplies.get(t)?.dispose(),this._autoReplies.delete(t)}sendCommandResult(t,i,n){!this._pendingCommands.get(t)||this._pendingCommands.delete(t)}orphanQuestionReply(){if(this._orphanQuestionReplyTime=Date.now(),this._orphanQuestionBarrier){const t=this._orphanQuestionBarrier;this._orphanQuestionBarrier=null,t.open()}}reduceGraceTime(){this._disconnectRunner2.isScheduled()||this._disconnectRunner1.isScheduled()&&this._disconnectRunner2.schedule()}async isOrphaned(){return await this._orphanRequestQueue.queue(async()=>this._isOrphaned())}async _isOrphaned(){return this._disconnectRunner1.isScheduled()||this._disconnectRunner2.isScheduled()?!0:(this._orphanQuestionBarrier||(this._orphanQuestionBarrier=new R.AutoOpenBarrier(4e3),this._orphanQuestionReplyTime=0,this._onProcessOrphanQuestion.fire()),await this._orphanQuestionBarrier.wait(),Date.now()-this._orphanQuestionReplyTime>500)}}e.PersistentTerminalProcess=d;class P{constructor(t,i,n,r,a){this._shellIntegrationEnabled=!1,this._xterm=new O.Terminal({cols:t,rows:i,scrollback:n}),a&&(this._xterm.writeln(a),this._shellIntegrationEnabled&&this._xterm.write("033]133;E007")),this._xterm.parser.registerOscHandler(133,_=>this._handleShellIntegration(_)),this.setUnicodeVersion(r)}_handleShellIntegration(t){const[i]=t.split(";");return i==="E"?(this._shellIntegrationEnabled=!0,!0):!1}handleData(t){this._xterm.write(t)}handleResize(t,i){this._xterm.resize(t,i)}async generateReplayEvent(t){const i=new(await this._getSerializeConstructor());this._xterm.loadAddon(i);const n={scrollback:this._xterm.getOption("scrollback")};t&&(n.excludeAltBuffer=!0,n.excludeModes=!0);const r=i.serialize(n);return{events:[{cols:this._xterm.getOption("cols"),rows:this._xterm.getOption("rows"),data:r}]}}async setUnicodeVersion(t){this._xterm.unicode.activeVersion!==t&&(t==="11"?(this._unicodeAddon=new(await this._getUnicode11Constructor()),this._xterm.loadAddon(this._unicodeAddon)):(this._unicodeAddon?.dispose(),this._unicodeAddon=void 0),this._xterm.unicode.activeVersion=t)}async _getUnicode11Constructor(){return h||(h=(await new Promise((t,i)=>{J(["xterm-addon-unicode11"],t,i)})).Unicode11Addon),h}async _getSerializeConstructor(){return B||(B=(await new Promise((t,i)=>{J(["xterm-addon-serialize"],t,i)})).SerializeAddon),B}}function u(s){let t=0,i=0,n=0;s>=1e3&&(n=Math.floor(s/1e3),s-=n*1e3),n>=60&&(i=Math.floor(n/60),n-=i*60),i>=60&&(t=Math.floor(i/60),i-=t*60);const r=t?`${t}h`:"",a=i?`${i}m`:"",_=n?`${n}s`:"",F=s?`${s}ms`:"";return`${r}${a}${_}${F}`}}),define(ie[67],se([0,1,28,52,12,55,25,60,63]),function(J,e,v,R,p,T,D,A,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const C=new R.Server("ptyHost"),E=parseInt(process.env.VSCODE_LAST_PTY_ID||"0");delete process.env.VSCODE_LAST_PTY_ID;const b=new p.LogService(new p.ConsoleLogger),O=new T.LogLevelChannel(b);C.registerChannel(D.TerminalIpcChannels.Log,O);const L=new A.HeartbeatService;C.registerChannel(D.TerminalIpcChannels.Heartbeat,v.ProxyChannel.fromService(L));const w={graceTime:parseInt(process.env.VSCODE_RECONNECT_GRACE_TIME||"0"),shortGraceTime:parseInt(process.env.VSCODE_RECONNECT_SHORT_GRACE_TIME||"0"),scrollback:parseInt(process.env.VSCODE_RECONNECT_SCROLLBACK||"100")};delete process.env.VSCODE_RECONNECT_GRACE_TIME,delete process.env.VSCODE_RECONNECT_SHORT_GRACE_TIME,delete process.env.VSCODE_RECONNECT_SCROLLBACK;const l=new g.PtyService(E,b,w);C.registerChannel(D.TerminalIpcChannels.PtyHost,v.ProxyChannel.fromService(l)),process.once("exit",()=>{b.dispose(),L.dispose(),l.dispose()})})}).call(this);
//# sourceMappingURL=ptyHostMain.js.map