UNPKG

code-server

Version:

Run VS Code on a remote server.

27 lines • 346 kB
/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/(function(){var se=["require","exports","vs/base/common/platform","vs/base/common/event","vs/base/common/lifecycle","vs/base/common/path","vs/base/common/uri","vs/base/common/async","vs/base/common/network","vs/platform/log/common/log","vs/base/common/errors","vs/base/common/strings","vs/base/common/types","vs/base/common/process","os","vs/nls","vs/nls!vs/platform/terminal/node/ptyHostMain","vs/base/common/decorators","vs/base/common/cancellation","vs/base/common/resources","vs/base/node/pfs","child_process","vs/base/common/arrays","vs/base/common/buffer","vs/base/common/extpath","vs/base/common/objects","vs/platform/instantiation/common/instantiation","vs/platform/terminal/common/terminal","vs/base/common/functional","vs/base/common/processes","vs/base/common/map","vs/base/parts/ipc/common/ipc","vs/base/node/processes","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/stopwatch","vs/base/common/cache","vs/base/common/stream","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/date","vs/base/common/date","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/environment/node/argv","vs/nls!vs/platform/files/common/files","vs/nls!vs/platform/terminal/node/ptyService","vs/nls!vs/platform/terminal/node/terminalProcess","vs/platform/environment/common/environmentService","vs/platform/environment/node/argv","vs/platform/environment/node/userDataPath","vs/platform/environment/node/environmentService","vs/platform/files/common/files","vs/platform/log/common/logIpc","vs/platform/log/node/spdlogLog","vs/platform/product/common/product","vs/platform/terminal/common/capabilities/commandDetectionCapability","vs/platform/terminal/common/capabilities/cwdDetectionCapability","vs/platform/terminal/common/capabilities/partialCommandDetectionCapability","vs/platform/terminal/common/capabilities/terminalCapabilityStore","vs/platform/terminal/common/requestStore","vs/platform/terminal/common/terminalAutoResponder","vs/platform/terminal/common/terminalDataBuffering","vs/platform/terminal/common/terminalEnvironment","vs/platform/terminal/common/terminalStrings","vs/platform/terminal/common/xterm/shellIntegrationAddon","vs/platform/terminal/node/heartbeatService","vs/platform/terminal/node/windowsShellHelper","vs/platform/terminal/node/terminalProcess","vs/platform/terminal/node/ptyService","string_decoder","util","minimist","path","xterm-headless","vs/platform/terminal/node/ptyHostMain"],ae=function(Y){for(var e=[],g=0,P=Y.length;g<P;g++)e[g]=se[Y[g]];return e};define(se[17],ae([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.throttle=e.debounce=e.memoize=e.createDecorator=void 0;function g(D){return(_,m,f)=>{let b=null,C=null;if(typeof f.value=="function"?(b="value",C=f.value):typeof f.get=="function"&&(b="get",C=f.get),!C)throw new Error("not supported");f[b]=D(C,m)}}e.createDecorator=g;function P(D,_,m){let f=null,b=null;if(typeof m.value=="function"?(f="value",b=m.value,b.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof m.get=="function"&&(f="get",b=m.get),!b)throw new Error("not supported");const C=`$memoize$${_}`;m[f]=function(...A){return this.hasOwnProperty(C)||Object.defineProperty(this,C,{configurable:!1,enumerable:!1,writable:!1,value:b.apply(this,A)}),this[C]}}e.memoize=P;function y(D,_,m){return g((f,b)=>{const C=`$debounce$${b}`,A=`$debounce$result$${b}`;return function(...p){this[A]||(this[A]=m?m():void 0),clearTimeout(this[C]),_&&(this[A]=_(this[A],...p),p=[this[A]]),this[C]=setTimeout(()=>{f.apply(this,p),this[A]=m?m():void 0},D)}})}e.debounce=y;function E(D,_,m){return g((f,b)=>{const C=`$throttle$timer$${b}`,A=`$throttle$result$${b}`,p=`$throttle$lastRun$${b}`,a=`$throttle$pending$${b}`;return function(...h){if(this[A]||(this[A]=m?m():void 0),(this[p]===null||this[p]===void 0)&&(this[p]=-Number.MAX_VALUE),_&&(this[A]=_(this[A],...h)),this[a])return;const I=this[p]+D;I<=Date.now()?(this[p]=Date.now(),f.apply(this,[this[A]]),this[A]=m?m():void 0):(this[a]=!0,this[C]=setTimeout(()=>{this[a]=!1,this[p]=Date.now(),f.apply(this,[this[A]]),this[A]=m?m():void 0},I-Date.now()))}})}e.throttle=E}),define(se[10],ae([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BugIndicatingError=e.ErrorNoTelemetry=e.ExpectedError=e.NotSupportedError=e.NotImplementedError=e.getErrorMessage=e.disposed=e.readonly=e.illegalState=e.illegalArgument=e.canceled=e.CancellationError=e.isCancellationError=e.transformErrorForSerialization=e.onUnexpectedExternalError=e.onUnexpectedError=e.setUnexpectedErrorHandler=e.errorHandler=e.ErrorHandler=void 0;class g{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(v){setTimeout(()=>{throw v.stack?o.isErrorNoTelemetry(v)?new o(v.message+`

`+v.stack):new Error(v.message+`

`+v.stack):v},0)}}addListener(v){return this.listeners.push(v),()=>{this._removeListener(v)}}emit(v){this.listeners.forEach(d=>{d(v)})}_removeListener(v){this.listeners.splice(this.listeners.indexOf(v),1)}setUnexpectedErrorHandler(v){this.unexpectedErrorHandler=v}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(v){this.unexpectedErrorHandler(v),this.emit(v)}onUnexpectedExternalError(v){this.unexpectedErrorHandler(v)}}e.ErrorHandler=g,e.errorHandler=new g;function P(w){e.errorHandler.setUnexpectedErrorHandler(w)}e.setUnexpectedErrorHandler=P;function y(w){m(w)||e.errorHandler.onUnexpectedError(w)}e.onUnexpectedError=y;function E(w){m(w)||e.errorHandler.onUnexpectedExternalError(w)}e.onUnexpectedExternalError=E;function D(w){if(w instanceof Error){const{name:v,message:d}=w,r=w.stacktrace||w.stack;return{$isError:!0,name:v,message:d,stack:r,noTelemetry:o.isErrorNoTelemetry(w)}}return w}e.transformErrorForSerialization=D;const _="Canceled";function m(w){return w instanceof f?!0:w instanceof Error&&w.name===_&&w.message===_}e.isCancellationError=m;class f extends Error{constructor(){super(_);this.name=this.message}}e.CancellationError=f;function b(){const w=new Error(_);return w.name=w.message,w}e.canceled=b;function C(w){return w?new Error(`Illegal argument: ${w}`):new Error("Illegal argument")}e.illegalArgument=C;function A(w){return w?new Error(`Illegal state: ${w}`):new Error("Illegal state")}e.illegalState=A;function p(w){return w?new Error(`readonly property '${w} cannot be changed'`):new Error("readonly property cannot be changed")}e.readonly=p;function a(w){const v=new Error(`${w} has been disposed`);return v.name="DISPOSED",v}e.disposed=a;function h(w){return w?w.message?w.message:w.stack?w.stack.split(`
`)[0]:String(w):"Error"}e.getErrorMessage=h;class I extends Error{constructor(v){super("NotImplemented");v&&(this.message=v)}}e.NotImplementedError=I;class T extends Error{constructor(v){super("NotSupported");v&&(this.message=v)}}e.NotSupportedError=T;class N extends Error{constructor(){super(...arguments);this.isExpected=!0}}e.ExpectedError=N;class o extends Error{constructor(v){super(v);this.name="ErrorNoTelemetry"}static fromError(v){if(v instanceof o)return v;const d=new o;return d.message=v.message,d.stack=v.stack,d}static isErrorNoTelemetry(v){return v.name==="ErrorNoTelemetry"}}e.ErrorNoTelemetry=o;class u extends Error{constructor(v){super(v||"An unexpected bug occurred.");Object.setPrototypeOf(this,u.prototype);debugger}}e.BugIndicatingError=u}),define(se[22],ae([0,1,10]),function(Y,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayQueue=e.findMinBy=e.findLastMaxBy=e.findMaxBy=e.numberComparator=e.tieBreakComparators=e.compareBy=e.CompareResult=e.splice=e.insertInto=e.mapFind=e.getRandomElement=e.asArray=e.mapArrayOrNot=e.pushMany=e.pushToEnd=e.pushToStart=e.shuffle=e.arrayInsert=e.remove=e.insert=e.index=e.range=e.flatten=e.commonPrefixLength=e.lastOrDefault=e.firstOrDefault=e.lastIndex=e.findLast=e.uniqueFilter=e.distinct=e.isNonEmptyArray=e.isFalsyOrEmpty=e.move=e.coalesceInPlace=e.coalesce=e.topAsync=e.top=e.delta=e.sortedDiff=e.groupBy=e.quickSelect=e.findFirstInSorted=e.binarySearch2=e.binarySearch=e.removeFastWithoutKeepingOrder=e.equals=e.tail2=e.tail=void 0;function P(R,F=0){return R[R.length-(1+F)]}e.tail=P;function y(R){if(R.length===0)throw new Error("Invalid tail call");return[R.slice(0,R.length-1),R[R.length-1]]}e.tail2=y;function E(R,F,B=(K,te)=>K===te){if(R===F)return!0;if(!R||!F||R.length!==F.length)return!1;for(let K=0,te=R.length;K<te;K++)if(!B(R[K],F[K]))return!1;return!0}e.equals=E;function D(R,F){const B=R.length-1;F<B&&(R[F]=R[B]),R.pop()}e.removeFastWithoutKeepingOrder=D;function _(R,F,B){return m(R.length,K=>B(R[K],F))}e.binarySearch=_;function m(R,F){let B=0,K=R-1;for(;B<=K;){const te=(B+K)/2|0,de=F(te);if(de<0)B=te+1;else if(de>0)K=te-1;else return te}return-(B+1)}e.binarySearch2=m;function f(R,F){let B=0,K=R.length;if(K===0)return 0;for(;B<K;){const te=Math.floor((B+K)/2);F(R[te])?K=te:B=te+1}return B}e.findFirstInSorted=f;function b(R,F,B){if(R=R|0,R>=F.length)throw new TypeError("invalid index");const K=F[Math.floor(F.length*Math.random())],te=[],de=[],me=[];for(const _e of F){const ve=B(_e,K);ve<0?te.push(_e):ve>0?de.push(_e):me.push(_e)}return R<te.length?b(R,te,B):R<te.length+me.length?me[0]:b(R-(te.length+me.length),de,B)}e.quickSelect=b;function C(R,F){const B=[];let K;for(const te of R.slice(0).sort(F))!K||F(K[0],te)!==0?(K=[te],B.push(K)):K.push(te);return B}e.groupBy=C;function A(R,F,B){const K=[];function te(_e,ve,pe){if(ve===0&&pe.length===0)return;const Ce=K[K.length-1];Ce&&Ce.start+Ce.deleteCount===_e?(Ce.deleteCount+=ve,Ce.toInsert.push(...pe)):K.push({start:_e,deleteCount:ve,toInsert:pe})}let de=0,me=0;for(;;){if(de===R.length){te(de,0,F.slice(me));break}if(me===F.length){te(de,R.length-de,[]);break}const _e=R[de],ve=F[me],pe=B(_e,ve);pe===0?(de+=1,me+=1):pe<0?(te(de,1,[]),de+=1):pe>0&&(te(de,0,[ve]),me+=1)}return K}e.sortedDiff=A;function p(R,F,B){const K=A(R,F,B),te=[],de=[];for(const me of K)te.push(...R.slice(me.start,me.start+me.deleteCount)),de.push(...me.toInsert);return{removed:te,added:de}}e.delta=p;function a(R,F,B){if(B===0)return[];const K=R.slice(0,B).sort(F);return I(R,F,K,B,R.length),K}e.top=a;function h(R,F,B,K,te){return B===0?Promise.resolve([]):new Promise((de,me)=>{(async()=>{const _e=R.length,ve=R.slice(0,B).sort(F);for(let pe=B,Ce=Math.min(B+K,_e);pe<_e;pe=Ce,Ce=Math.min(Ce+K,_e)){if(pe>B&&await new Promise(Me=>setTimeout(Me)),te&&te.isCancellationRequested)throw new g.CancellationError;I(R,F,ve,pe,Ce)}return ve})().then(de,me)})}e.topAsync=h;function I(R,F,B,K,te){for(const de=B.length;K<te;K++){const me=R[K];if(F(me,B[de-1])<0){B.pop();const _e=f(B,ve=>F(me,ve)<0);B.splice(_e,0,me)}}}function T(R){return R.filter(F=>!!F)}e.coalesce=T;function N(R){let F=0;for(let B=0;B<R.length;B++)R[B]&&(R[F]=R[B],F+=1);R.length=F}e.coalesceInPlace=N;function o(R,F,B){R.splice(B,0,R.splice(F,1)[0])}e.move=o;function u(R){return!Array.isArray(R)||R.length===0}e.isFalsyOrEmpty=u;function w(R){return Array.isArray(R)&&R.length>0}e.isNonEmptyArray=w;function v(R,F=B=>B){const B=new Set;return R.filter(K=>{const te=F(K);return B.has(te)?!1:(B.add(te),!0)})}e.distinct=v;function d(R){const F=new Set;return B=>{const K=R(B);return F.has(K)?!1:(F.add(K),!0)}}e.uniqueFilter=d;function r(R,F){const B=c(R,F);if(B!==-1)return R[B]}e.findLast=r;function c(R,F){for(let B=R.length-1;B>=0;B--){const K=R[B];if(F(K))return B}return-1}e.lastIndex=c;function s(R,F){return R.length>0?R[0]:F}e.firstOrDefault=s;function i(R,F){return R.length>0?R[R.length-1]:F}e.lastOrDefault=i;function n(R,F,B=(K,te)=>K===te){let K=0;for(let te=0,de=Math.min(R.length,F.length);te<de&&B(R[te],F[te]);te++)K++;return K}e.commonPrefixLength=n;function t(R){return[].concat(...R)}e.flatten=t;function l(R,F){let B=typeof F=="number"?R:0;typeof F=="number"?B=R:(B=0,F=R);const K=[];if(B<=F)for(let te=B;te<F;te++)K.push(te);else for(let te=B;te>F;te--)K.push(te);return K}e.range=l;function L(R,F,B){return R.reduce((K,te)=>(K[F(te)]=B?B(te):te,K),Object.create(null))}e.index=L;function j(R,F){return R.push(F),()=>$(R,F)}e.insert=j;function $(R,F){const B=R.indexOf(F);if(B>-1)return R.splice(B,1),F}e.remove=$;function ne(R,F,B){const K=R.slice(0,F),te=R.slice(F);return K.concat(B,te)}e.arrayInsert=ne;function le(R,F){let B;if(typeof F=="number"){let K=F;B=()=>{const te=Math.sin(K++)*179426549;return te-Math.floor(te)}}else B=Math.random;for(let K=R.length-1;K>0;K-=1){const te=Math.floor(B()*(K+1)),de=R[K];R[K]=R[te],R[te]=de}}e.shuffle=le;function ue(R,F){const B=R.indexOf(F);B>-1&&(R.splice(B,1),R.unshift(F))}e.pushToStart=ue;function he(R,F){const B=R.indexOf(F);B>-1&&(R.splice(B,1),R.push(F))}e.pushToEnd=he;function x(R,F){for(const B of F)R.push(B)}e.pushMany=x;function oe(R,F){return Array.isArray(R)?R.map(F):F(R)}e.mapArrayOrNot=oe;function M(R){return Array.isArray(R)?R:[R]}e.asArray=M;function X(R){return R[Math.floor(Math.random()*R.length)]}e.getRandomElement=X;function U(R,F){for(const B of R){const K=F(B);if(K!==void 0)return K}}e.mapFind=U;function O(R,F,B){const K=V(R,F),te=R.length,de=B.length;R.length=te+de;for(let me=te-1;me>=K;me--)R[me+de]=R[me];for(let me=0;me<de;me++)R[me+K]=B[me]}e.insertInto=O;function q(R,F,B,K){const te=V(R,F),de=R.splice(te,B);return O(R,te,K),de}e.splice=q;function V(R,F){return F<0?Math.max(F+R.length,0):Math.min(F,R.length)}var ee;(function(R){function F(te){return te<0}R.isLessThan=F;function B(te){return te>0}R.isGreaterThan=B;function K(te){return te===0}R.isNeitherLessOrGreaterThan=K,R.greaterThan=1,R.lessThan=-1,R.neitherLessOrGreaterThan=0})(ee=e.CompareResult||(e.CompareResult={}));function re(R,F){return(B,K)=>F(R(B),R(K))}e.compareBy=re;function J(...R){return(F,B)=>{for(const K of R){const te=K(F,B);if(!ee.isNeitherLessOrGreaterThan(te))return te}return ee.neitherLessOrGreaterThan}}e.tieBreakComparators=J;const k=(R,F)=>R-F;e.numberComparator=k;function z(R,F){if(R.length===0)return;let B=R[0];for(let K=1;K<R.length;K++){const te=R[K];F(te,B)>0&&(B=te)}return B}e.findMaxBy=z;function W(R,F){if(R.length===0)return;let B=R[0];for(let K=1;K<R.length;K++){const te=R[K];F(te,B)>=0&&(B=te)}return B}e.findLastMaxBy=W;function G(R,F){return z(R,(B,K)=>-F(B,K))}e.findMinBy=G;class Q{constructor(F){this.items=F,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(F){let B=this.firstIdx;for(;B<this.items.length&&F(this.items[B]);)B++;const K=B===this.firstIdx?null:this.items.slice(this.firstIdx,B);return this.firstIdx=B,K}takeFromEndWhile(F){let B=this.lastIdx;for(;B>=0&&F(this.items[B]);)B--;const K=B===this.lastIdx?null:this.items.slice(B+1,this.lastIdx+1);return this.lastIdx=B,K}peek(){if(this.length!==0)return this.items[this.firstIdx]}peekLast(){if(this.length!==0)return this.items[this.lastIdx]}dequeue(){const F=this.items[this.firstIdx];return this.firstIdx++,F}removeLast(){const F=this.items[this.lastIdx];return this.lastIdx--,F}takeCount(F){const B=this.items.slice(this.firstIdx,this.firstIdx+F);return this.firstIdx+=F,B}}e.ArrayQueue=Q}),define(se[28],ae([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function g(P){const y=this;let E=!1,D;return function(){return E||(E=!0,D=P.apply(y,arguments)),D}}e.once=g}),define(se[35],ae([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var g;(function(P){function y(d){return d&&typeof d=="object"&&typeof d[Symbol.iterator]=="function"}P.is=y;const E=Object.freeze([]);function D(){return E}P.empty=D;function*_(d){yield d}P.single=_;function m(d){return d||E}P.from=m;function f(d){return!d||d[Symbol.iterator]().next().done===!0}P.isEmpty=f;function b(d){return d[Symbol.iterator]().next().value}P.first=b;function C(d,r){for(const c of d)if(r(c))return!0;return!1}P.some=C;function A(d,r){for(const c of d)if(r(c))return c}P.find=A;function*p(d,r){for(const c of d)r(c)&&(yield c)}P.filter=p;function*a(d,r){let c=0;for(const s of d)yield r(s,c++)}P.map=a;function*h(...d){for(const r of d)for(const c of r)yield c}P.concat=h;function*I(d){for(const r of d)for(const c of r)yield c}P.concatNested=I;function T(d,r,c){let s=c;for(const i of d)s=r(s,i);return s}P.reduce=T;function N(d,r){let c=0;for(const s of d)r(s,c++)}P.forEach=N;function*o(d,r,c=d.length){for(r<0&&(r+=d.length),c<0?c+=d.length:c>d.length&&(c=d.length);r<c;r++)yield d[r]}P.slice=o;function u(d,r=Number.POSITIVE_INFINITY){const c=[];if(r===0)return[c,d];const s=d[Symbol.iterator]();for(let i=0;i<r;i++){const n=s.next();if(n.done)return[c,P.empty()];c.push(n.value)}return[c,{[Symbol.iterator](){return s}}]}P.consume=u;function w(d){return u(d)[0]}P.collect=w;function v(d,r,c=(s,i)=>s===i){const s=d[Symbol.iterator](),i=r[Symbol.iterator]();for(;;){const n=s.next(),t=i.next();if(n.done!==t.done)return!1;if(n.done)return!0;if(!c(n.value,t.value))return!1}}P.equals=v})(g=e.Iterable||(e.Iterable={}))}),define(se[36],ae([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lazy=void 0;class g{constructor(y){this.executor=y,this._didRun=!1}hasValue(){return this._didRun}getValue(){if(!this._didRun)try{this._value=this.executor()}catch(y){this._error=y}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}map(y){return new g(()=>y(this.getValue()))}}e.Lazy=g}),define(se[4],ae([0,1,28,35]),function(Y,e,g,P){"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 y=!1;let E=null;function D(s){E=s}if(e.setDisposableTracker=D,y){const s="__is_disposable_tracked__";D(new class{trackDisposable(i){const n=new Error("Potentially leaked disposable").stack;setTimeout(()=>{i[s]||console.log(n)},3e3)}setParent(i,n){if(i&&i!==N.None)try{i[s]=!0}catch{}}markAsDisposed(i){if(i&&i!==N.None)try{i[s]=!0}catch{}}markAsSingleton(i){}})}function _(s){return E?.trackDisposable(s),s}function m(s){E?.markAsDisposed(s)}function f(s,i){E?.setParent(s,i)}function b(s,i){if(!!E)for(const n of s)E.setParent(n,i)}function C(s){return E?.markAsSingleton(s),s}e.markAsSingleton=C;class A extends Error{constructor(i){super(`Encountered errors while disposing of store. Errors: [${i.join(", ")}]`);this.errors=i}}e.MultiDisposeError=A;function p(s){return typeof s.dispose=="function"&&s.dispose.length===0}e.isDisposable=p;function a(s){if(P.Iterable.is(s)){const i=[];for(const n of s)if(n)try{n.dispose()}catch(t){i.push(t)}if(i.length===1)throw i[0];if(i.length>1)throw new A(i);return Array.isArray(s)?[]:s}else if(s)return s.dispose(),s}e.dispose=a;function h(...s){const i=I(()=>a(s));return b(s,i),i}e.combinedDisposable=h;function I(s){const i=_({dispose:(0,g.once)(()=>{m(i),s()})});return i}e.toDisposable=I;class T{constructor(){this._toDispose=new Set,this._isDisposed=!1,_(this)}dispose(){this._isDisposed||(m(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){try{a(this._toDispose.values())}finally{this._toDispose.clear()}}add(i){if(!i)return i;if(i===this)throw new Error("Cannot register a disposable on itself!");return f(i,this),this._isDisposed?T.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(i),i}}e.DisposableStore=T,T.DISABLE_DISPOSED_WARNING=!1;class N{constructor(){this._store=new T,_(this),f(this._store,this)}dispose(){m(this),this._store.dispose()}_register(i){if(i===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(i)}}e.Disposable=N,N.None=Object.freeze({dispose(){}});class o{constructor(){this._isDisposed=!1,_(this)}get value(){return this._isDisposed?void 0:this._value}set value(i){this._isDisposed||i===this._value||(this._value?.dispose(),i&&f(i,this),this._value=i)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,m(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){const i=this._value;return this._value=void 0,i&&f(i,null),i}}e.MutableDisposable=o;class u{constructor(i){this._disposable=i,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter==0&&this._disposable.dispose(),this}}e.RefCountedDisposable=u;class w{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,_(this)}set(i){let n=i;return this.unset=()=>n=void 0,this.isset=()=>n!==void 0,this.dispose=()=>{n&&(n(),n=void 0,m(this))},this}}e.SafeDisposable=w;class v{constructor(){this.references=new Map}acquire(i,...n){let t=this.references.get(i);t||(t={counter:0,object:this.createReferencedObject(i,...n)},this.references.set(i,t));const{object:l}=t,L=(0,g.once)(()=>{--t.counter==0&&(this.destroyReferencedObject(i,t.object),this.references.delete(i))});return t.counter++,{object:l,dispose:L}}}e.ReferenceCollection=v;class d{constructor(i){this.referenceCollection=i}async acquire(i,...n){const t=this.referenceCollection.acquire(i,...n);try{return{object:await t.object,dispose:()=>t.dispose()}}catch(l){throw t.dispose(),l}}}e.AsyncReferenceCollection=d;class r{constructor(i){this.object=i}dispose(){}}e.ImmortalReference=r;function c(s){const i=new T;try{s(i)}finally{i.dispose()}}e.disposeOnReturn=c}),define(se[37],ae([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=void 0;class g{constructor(E){this.element=E,this.next=g.Undefined,this.prev=g.Undefined}}g.Undefined=new g(void 0);class P{constructor(){this._first=g.Undefined,this._last=g.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===g.Undefined}clear(){let E=this._first;for(;E!==g.Undefined;){const D=E.next;E.prev=g.Undefined,E.next=g.Undefined,E=D}this._first=g.Undefined,this._last=g.Undefined,this._size=0}unshift(E){return this._insert(E,!1)}push(E){return this._insert(E,!0)}_insert(E,D){const _=new g(E);if(this._first===g.Undefined)this._first=_,this._last=_;else if(D){const f=this._last;this._last=_,_.prev=f,f.next=_}else{const f=this._first;this._first=_,_.next=f,f.prev=_}this._size+=1;let m=!1;return()=>{m||(m=!0,this._remove(_))}}shift(){if(this._first!==g.Undefined){const E=this._first.element;return this._remove(this._first),E}}pop(){if(this._last!==g.Undefined){const E=this._last.element;return this._remove(this._last),E}}_remove(E){if(E.prev!==g.Undefined&&E.next!==g.Undefined){const D=E.prev;D.next=E.next,E.next.prev=D}else E.prev===g.Undefined&&E.next===g.Undefined?(this._first=g.Undefined,this._last=g.Undefined):E.next===g.Undefined?(this._last=this._last.prev,this._last.next=g.Undefined):E.prev===g.Undefined&&(this._first=this._first.next,this._first.prev=g.Undefined);this._size-=1}*[Symbol.iterator](){let E=this._first;for(;E!==g.Undefined;)yield E.element,E=E.next}}e.LinkedList=P}),define(se[2],ae([0,1]),function(Y,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.setTimeout0IsFaster=e.translationsConfigFile=e.locale=e.Language=e.language=e.userAgent=e.platform=e.isCI=e.isIOS=e.isWebWorker=e.isWeb=e.isElectron=e.isNative=e.isLinuxSnap=e.isLinux=e.isMacintosh=e.isWindows=e.PlatformToString=e.Platform=e.globals=void 0;const g="en";let P=!1,y=!1,E=!1,D=!1,_=!1,m=!1,f=!1,b=!1,C=!1,A,p=g,a,h;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 T=typeof I?.versions?.electron=="string",N=T&&I?.type==="renderer";if(typeof navigator=="object"&&!N){h=navigator.userAgent,P=h.indexOf("Windows")>=0,y=h.indexOf("Macintosh")>=0,b=(h.indexOf("Macintosh")>=0||h.indexOf("iPad")>=0||h.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,E=h.indexOf("Linux")>=0,m=!0,A=g,p=A;const i=typeof document!="undefined"&&document.getElementById("vscode-remote-nls-configuration"),n=i&&i.getAttribute("data-settings");if(n)try{const t=JSON.parse(n);A=t.locale,a=t._translationsConfigFile,p=t.availableLanguages["*"]||g}catch{}}else if(typeof I=="object"){P=I.platform==="win32",y=I.platform==="darwin",E=I.platform==="linux",D=E&&!!I.env.SNAP&&!!I.env.SNAP_REVISION,f=T,C=!!I.env.CI||!!I.env.BUILD_ARTIFACTSTAGINGDIRECTORY,A=g,p=g;const i=I.env.VSCODE_NLS_CONFIG;if(i)try{const n=JSON.parse(i),t=n.availableLanguages["*"];A=n.locale,p=t||g,a=n._translationsConfigFile}catch{}_=!0}else console.error("Unable to resolve platform.");var o;(function(i){i[i.Web=0]="Web",i[i.Mac=1]="Mac",i[i.Linux=2]="Linux",i[i.Windows=3]="Windows"})(o=e.Platform||(e.Platform={}));function u(i){switch(i){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}e.PlatformToString=u;let w=0;y?w=1:P?w=3:E&&(w=2),e.isWindows=P,e.isMacintosh=y,e.isLinux=E,e.isLinuxSnap=D,e.isNative=_,e.isElectron=f,e.isWeb=m,e.isWebWorker=m&&typeof e.globals.importScripts=="function",e.isIOS=b,e.isCI=C,e.platform=w,e.userAgent=h,e.language=p;var v;(function(i){function n(){return e.language}i.value=n;function t(){return e.language.length===2?e.language==="en":e.language.length>=3?e.language[0]==="e"&&e.language[1]==="n"&&e.language[2]==="-":!1}i.isDefaultVariant=t;function l(){return e.language==="en"}i.isDefault=l})(v=e.Language||(e.Language={})),e.locale=A,e.translationsConfigFile=a,e.setTimeout0IsFaster=typeof e.globals.postMessage=="function"&&!e.globals.importScripts,e.setTimeout0=(()=>{if(e.setTimeout0IsFaster){const i=[];e.globals.addEventListener("message",t=>{if(t.data&&t.data.vscodeScheduleAsyncWork)for(let l=0,L=i.length;l<L;l++){const j=i[l];if(j.id===t.data.vscodeScheduleAsyncWork){i.splice(l,1),j.callback();return}}});let n=0;return t=>{const l=++n;i.push({id:l,callback:t}),e.globals.postMessage({vscodeScheduleAsyncWork:l},"*")}}return i=>setTimeout(i)})();var d;(function(i){i[i.Windows=1]="Windows",i[i.Macintosh=2]="Macintosh",i[i.Linux=3]="Linux"})(d=e.OperatingSystem||(e.OperatingSystem={})),e.OS=y||b?2:P?1:3;let r=!0,c=!1;function s(){if(!c){c=!0;const i=new Uint8Array(2);i[0]=1,i[1]=2,r=new Uint16Array(i.buffer)[0]===(2<<8)+1}return r}e.isLittleEndian=s,e.isChrome=!!(e.userAgent&&e.userAgent.indexOf("Chrome")>=0),e.isFirefox=!!(e.userAgent&&e.userAgent.indexOf("Firefox")>=0),e.isSafari=!!(!e.isChrome&&e.userAgent&&e.userAgent.indexOf("Safari")>=0),e.isEdge=!!(e.userAgent&&e.userAgent.indexOf("Edg/")>=0),e.isAndroid=!!(e.userAgent&&e.userAgent.indexOf("Android")>=0)}),define(se[13],ae([0,1,2]),function(Y,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arch=e.platform=e.env=e.cwd=void 0;let P;if(typeof g.globals.vscode!="undefined"&&typeof g.globals.vscode.process!="undefined"){const y=g.globals.vscode.process;P={get platform(){return y.platform},get arch(){return y.arch},get env(){return y.env},cwd(){return y.cwd()}}}else typeof process!="undefined"?P={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:P={get platform(){return g.isWindows?"win32":g.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};e.cwd=P.cwd,e.env=P.env,e.platform=P.platform,e.arch=P.arch}),define(se[5],ae([0,1,13]),function(Y,e,g){"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 P=65,y=97,E=90,D=122,_=46,m=47,f=92,b=58,C=63;class A extends Error{constructor(u,w,v){let d;typeof w=="string"&&w.indexOf("not ")===0?(d="must not be",w=w.replace(/^not /,"")):d="must be";const r=u.indexOf(".")!==-1?"property":"argument";let c=`The "${u}" ${r} ${d} of type ${w}`;c+=`. Received type ${typeof v}`;super(c);this.code="ERR_INVALID_ARG_TYPE"}}function p(o,u){if(typeof o!="string")throw new A(u,"string",o)}function a(o){return o===m||o===f}function h(o){return o===m}function I(o){return o>=P&&o<=E||o>=y&&o<=D}function T(o,u,w,v){let d="",r=0,c=-1,s=0,i=0;for(let n=0;n<=o.length;++n){if(n<o.length)i=o.charCodeAt(n);else{if(v(i))break;i=m}if(v(i)){if(!(c===n-1||s===1))if(s===2){if(d.length<2||r!==2||d.charCodeAt(d.length-1)!==_||d.charCodeAt(d.length-2)!==_){if(d.length>2){const t=d.lastIndexOf(w);t===-1?(d="",r=0):(d=d.slice(0,t),r=d.length-1-d.lastIndexOf(w)),c=n,s=0;continue}else if(d.length!==0){d="",r=0,c=n,s=0;continue}}u&&(d+=d.length>0?`${w}..`:"..",r=2)}else d.length>0?d+=`${w}${o.slice(c+1,n)}`:d=o.slice(c+1,n),r=n-c-1;c=n,s=0}else i===_&&s!==-1?++s:s=-1}return d}function N(o,u){if(u===null||typeof u!="object")throw new A("pathObject","Object",u);const w=u.dir||u.root,v=u.base||`${u.name||""}${u.ext||""}`;return w?w===u.root?`${w}${v}`:`${w}${o}${v}`:v}e.win32={resolve(...o){let u="",w="",v=!1;for(let d=o.length-1;d>=-1;d--){let r;if(d>=0){if(r=o[d],p(r,"path"),r.length===0)continue}else u.length===0?r=g.cwd():(r=g.env[`=${u}`]||g.cwd(),(r===void 0||r.slice(0,2).toLowerCase()!==u.toLowerCase()&&r.charCodeAt(2)===f)&&(r=`${u}\\`));const c=r.length;let s=0,i="",n=!1;const t=r.charCodeAt(0);if(c===1)a(t)&&(s=1,n=!0);else if(a(t))if(n=!0,a(r.charCodeAt(1))){let l=2,L=l;for(;l<c&&!a(r.charCodeAt(l));)l++;if(l<c&&l!==L){const j=r.slice(L,l);for(L=l;l<c&&a(r.charCodeAt(l));)l++;if(l<c&&l!==L){for(L=l;l<c&&!a(r.charCodeAt(l));)l++;(l===c||l!==L)&&(i=`\\\\${j}\\${r.slice(L,l)}`,s=l)}}}else s=1;else I(t)&&r.charCodeAt(1)===b&&(i=r.slice(0,2),s=2,c>2&&a(r.charCodeAt(2))&&(n=!0,s=3));if(i.length>0)if(u.length>0){if(i.toLowerCase()!==u.toLowerCase())continue}else u=i;if(v){if(u.length>0)break}else if(w=`${r.slice(s)}\\${w}`,v=n,n&&u.length>0)break}return w=T(w,!v,"\\",a),v?`${u}\\${w}`:`${u}${w}`||"."},normalize(o){p(o,"path");const u=o.length;if(u===0)return".";let w=0,v,d=!1;const r=o.charCodeAt(0);if(u===1)return h(r)?"\\":o;if(a(r))if(d=!0,a(o.charCodeAt(1))){let s=2,i=s;for(;s<u&&!a(o.charCodeAt(s));)s++;if(s<u&&s!==i){const n=o.slice(i,s);for(i=s;s<u&&a(o.charCodeAt(s));)s++;if(s<u&&s!==i){for(i=s;s<u&&!a(o.charCodeAt(s));)s++;if(s===u)return`\\\\${n}\\${o.slice(i)}\\`;s!==i&&(v=`\\\\${n}\\${o.slice(i,s)}`,w=s)}}}else w=1;else I(r)&&o.charCodeAt(1)===b&&(v=o.slice(0,2),w=2,u>2&&a(o.charCodeAt(2))&&(d=!0,w=3));let c=w<u?T(o.slice(w),!d,"\\",a):"";return c.length===0&&!d&&(c="."),c.length>0&&a(o.charCodeAt(u-1))&&(c+="\\"),v===void 0?d?`\\${c}`:c:d?`${v}\\${c}`:`${v}${c}`},isAbsolute(o){p(o,"path");const u=o.length;if(u===0)return!1;const w=o.charCodeAt(0);return a(w)||u>2&&I(w)&&o.charCodeAt(1)===b&&a(o.charCodeAt(2))},join(...o){if(o.length===0)return".";let u,w;for(let r=0;r<o.length;++r){const c=o[r];p(c,"path"),c.length>0&&(u===void 0?u=w=c:u+=`\\${c}`)}if(u===void 0)return".";let v=!0,d=0;if(typeof w=="string"&&a(w.charCodeAt(0))){++d;const r=w.length;r>1&&a(w.charCodeAt(1))&&(++d,r>2&&(a(w.charCodeAt(2))?++d:v=!1))}if(v){for(;d<u.length&&a(u.charCodeAt(d));)d++;d>=2&&(u=`\\${u.slice(d)}`)}return e.win32.normalize(u)},relative(o,u){if(p(o,"from"),p(u,"to"),o===u)return"";const w=e.win32.resolve(o),v=e.win32.resolve(u);if(w===v||(o=w.toLowerCase(),u=v.toLowerCase(),o===u))return"";let d=0;for(;d<o.length&&o.charCodeAt(d)===f;)d++;let r=o.length;for(;r-1>d&&o.charCodeAt(r-1)===f;)r--;const c=r-d;let s=0;for(;s<u.length&&u.charCodeAt(s)===f;)s++;let i=u.length;for(;i-1>s&&u.charCodeAt(i-1)===f;)i--;const n=i-s,t=c<n?c:n;let l=-1,L=0;for(;L<t;L++){const $=o.charCodeAt(d+L);if($!==u.charCodeAt(s+L))break;$===f&&(l=L)}if(L!==t){if(l===-1)return v}else{if(n>t){if(u.charCodeAt(s+L)===f)return v.slice(s+L+1);if(L===2)return v.slice(s+L)}c>t&&(o.charCodeAt(d+L)===f?l=L:L===2&&(l=3)),l===-1&&(l=0)}let j="";for(L=d+l+1;L<=r;++L)(L===r||o.charCodeAt(L)===f)&&(j+=j.length===0?"..":"\\..");return s+=l,j.length>0?`${j}${v.slice(s,i)}`:(v.charCodeAt(s)===f&&++s,v.slice(s,i))},toNamespacedPath(o){if(typeof o!="string")return o;if(o.length===0)return"";const u=e.win32.resolve(o);if(u.length<=2)return o;if(u.charCodeAt(0)===f){if(u.charCodeAt(1)===f){const w=u.charCodeAt(2);if(w!==C&&w!==_)return`\\\\?\\UNC\\${u.slice(2)}`}}else if(I(u.charCodeAt(0))&&u.charCodeAt(1)===b&&u.charCodeAt(2)===f)return`\\\\?\\${u}`;return o},dirname(o){p(o,"path");const u=o.length;if(u===0)return".";let w=-1,v=0;const d=o.charCodeAt(0);if(u===1)return a(d)?o:".";if(a(d)){if(w=v=1,a(o.charCodeAt(1))){let s=2,i=s;for(;s<u&&!a(o.charCodeAt(s));)s++;if(s<u&&s!==i){for(i=s;s<u&&a(o.charCodeAt(s));)s++;if(s<u&&s!==i){for(i=s;s<u&&!a(o.charCodeAt(s));)s++;if(s===u)return o;s!==i&&(w=v=s+1)}}}}else I(d)&&o.charCodeAt(1)===b&&(w=u>2&&a(o.charCodeAt(2))?3:2,v=w);let r=-1,c=!0;for(let s=u-1;s>=v;--s)if(a(o.charCodeAt(s))){if(!c){r=s;break}}else c=!1;if(r===-1){if(w===-1)return".";r=w}return o.slice(0,r)},basename(o,u){u!==void 0&&p(u,"ext"),p(o,"path");let w=0,v=-1,d=!0,r;if(o.length>=2&&I(o.charCodeAt(0))&&o.charCodeAt(1)===b&&(w=2),u!==void 0&&u.length>0&&u.length<=o.length){if(u===o)return"";let c=u.length-1,s=-1;for(r=o.length-1;r>=w;--r){const i=o.charCodeAt(r);if(a(i)){if(!d){w=r+1;break}}else s===-1&&(d=!1,s=r+1),c>=0&&(i===u.charCodeAt(c)?--c==-1&&(v=r):(c=-1,v=s))}return w===v?v=s:v===-1&&(v=o.length),o.slice(w,v)}for(r=o.length-1;r>=w;--r)if(a(o.charCodeAt(r))){if(!d){w=r+1;break}}else v===-1&&(d=!1,v=r+1);return v===-1?"":o.slice(w,v)},extname(o){p(o,"path");let u=0,w=-1,v=0,d=-1,r=!0,c=0;o.length>=2&&o.charCodeAt(1)===b&&I(o.charCodeAt(0))&&(u=v=2);for(let s=o.length-1;s>=u;--s){const i=o.charCodeAt(s);if(a(i)){if(!r){v=s+1;break}continue}d===-1&&(r=!1,d=s+1),i===_?w===-1?w=s:c!==1&&(c=1):w!==-1&&(c=-1)}return w===-1||d===-1||c===0||c===1&&w===d-1&&w===v+1?"":o.slice(w,d)},format:N.bind(null,"\\"),parse(o){p(o,"path");const u={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return u;const w=o.length;let v=0,d=o.charCodeAt(0);if(w===1)return a(d)?(u.root=u.dir=o,u):(u.base=u.name=o,u);if(a(d)){if(v=1,a(o.charCodeAt(1))){let l=2,L=l;for(;l<w&&!a(o.charCodeAt(l));)l++;if(l<w&&l!==L){for(L=l;l<w&&a(o.charCodeAt(l));)l++;if(l<w&&l!==L){for(L=l;l<w&&!a(o.charCodeAt(l));)l++;l===w?v=l:l!==L&&(v=l+1)}}}}else if(I(d)&&o.charCodeAt(1)===b){if(w<=2)return u.root=u.dir=o,u;if(v=2,a(o.charCodeAt(2))){if(w===3)return u.root=u.dir=o,u;v=3}}v>0&&(u.root=o.slice(0,v));let r=-1,c=v,s=-1,i=!0,n=o.length-1,t=0;for(;n>=v;--n){if(d=o.charCodeAt(n),a(d)){if(!i){c=n+1;break}continue}s===-1&&(i=!1,s=n+1),d===_?r===-1?r=n:t!==1&&(t=1):r!==-1&&(t=-1)}return s!==-1&&(r===-1||t===0||t===1&&r===s-1&&r===c+1?u.base=u.name=o.slice(c,s):(u.name=o.slice(c,r),u.base=o.slice(c,s),u.ext=o.slice(r,s))),c>0&&c!==v?u.dir=o.slice(0,c-1):u.dir=u.root,u},sep:"\\",delimiter:";",win32:null,posix:null},e.posix={resolve(...o){let u="",w=!1;for(let v=o.length-1;v>=-1&&!w;v--){const d=v>=0?o[v]:g.cwd();p(d,"path"),d.length!==0&&(u=`${d}/${u}`,w=d.charCodeAt(0)===m)}return u=T(u,!w,"/",h),w?`/${u}`:u.length>0?u:"."},normalize(o){if(p(o,"path"),o.length===0)return".";const u=o.charCodeAt(0)===m,w=o.charCodeAt(o.length-1)===m;return o=T(o,!u,"/",h),o.length===0?u?"/":w?"./":".":(w&&(o+="/"),u?`/${o}`:o)},isAbsolute(o){return p(o,"path"),o.length>0&&o.charCodeAt(0)===m},join(...o){if(o.length===0)return".";let u;for(let w=0;w<o.length;++w){const v=o[w];p(v,"path"),v.length>0&&(u===void 0?u=v:u+=`/${v}`)}return u===void 0?".":e.posix.normalize(u)},relative(o,u){if(p(o,"from"),p(u,"to"),o===u||(o=e.posix.resolve(o),u=e.posix.resolve(u),o===u))return"";const w=1,v=o.length,d=v-w,r=1,c=u.length-r,s=d<c?d:c;let i=-1,n=0;for(;n<s;n++){const l=o.charCodeAt(w+n);if(l!==u.charCodeAt(r+n))break;l===m&&(i=n)}if(n===s)if(c>s){if(u.charCodeAt(r+n)===m)return u.slice(r+n+1);if(n===0)return u.slice(r+n)}else d>s&&(o.charCodeAt(w+n)===m?i=n:n===0&&(i=0));let t="";for(n=w+i+1;n<=v;++n)(n===v||o.charCodeAt(n)===m)&&(t+=t.length===0?"..":"/..");return`${t}${u.slice(r+i)}`},toNamespacedPath(o){return o},dirname(o){if(p(o,"path"),o.length===0)return".";const u=o.charCodeAt(0)===m;let w=-1,v=!0;for(let d=o.length-1;d>=1;--d)if(o.charCodeAt(d)===m){if(!v){w=d;break}}else v=!1;return w===-1?u?"/":".":u&&w===1?"//":o.slice(0,w)},basename(o,u){u!==void 0&&p(u,"ext"),p(o,"path");let w=0,v=-1,d=!0,r;if(u!==void 0&&u.length>0&&u.length<=o.length){if(u===o)return"";let c=u.length-1,s=-1;for(r=o.length-1;r>=0;--r){const i=o.charCodeAt(r);if(i===m){if(!d){w=r+1;break}}else s===-1&&(d=!1,s=r+1),c>=0&&(i===u.charCodeAt(c)?--c==-1&&(v=r):(c=-1,v=s))}return w===v?v=s:v===-1&&(v=o.length),o.slice(w,v)}for(r=o.length-1;r>=0;--r)if(o.charCodeAt(r)===m){if(!d){w=r+1;break}}else v===-1&&(d=!1,v=r+1);return v===-1?"":o.slice(w,v)},extname(o){p(o,"path");let u=-1,w=0,v=-1,d=!0,r=0;for(let c=o.length-1;c>=0;--c){const s=o.charCodeAt(c);if(s===m){if(!d){w=c+1;break}continue}v===-1&&(d=!1,v=c+1),s===_?u===-1?u=c:r!==1&&(r=1):u!==-1&&(r=-1)}return u===-1||v===-1||r===0||r===1&&u===v-1&&u===w+1?"":o.slice(u,v)},format:N.bind(null,"/"),parse(o){p(o,"path");const u={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return u;const w=o.charCodeAt(0)===m;let v;w?(u.root="/",v=1):v=0;let d=-1,r=0,c=-1,s=!0,i=o.length-1,n=0;for(;i>=v;--i){const t=o.charCodeAt(i);if(t===m){if(!s){r=i+1;break}continue}c===-1&&(s=!1,c=i+1),t===_?d===-1?d=i:n!==1&&(n=1):d!==-1&&(n=-1)}if(c!==-1){const t=r===0&&w?1:r;d===-1||n===0||n===1&&d===c-1&&d===r+1?u.base=u.name=o.slice(t,c):(u.name=o.slice(t,d),u.base=o.slice(t,c),u.ext=o.slice(d,c))}return r>0?u.dir=o.slice(0,r-1):w&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null},e.posix.win32=e.win32.win32=e.win32,e.posix.posix=e.win32.posix=e.posix,e.normalize=g.platform==="win32"?e.win32.normalize:e.posix.normalize,e.isAbsolute=g.platform==="win32"?e.win32.isAbsolute:e.posix.isAbsolute,e.join=g.platform==="win32"?e.win32.join:e.posix.join,e.resolve=g.platform==="win32"?e.win32.resolve:e.posix.resolve,e.relative=g.platform==="win32"?e.win32.relative:e.posix.relative,e.dirname=g.platform==="win32"?e.win32.dirname:e.posix.dirname,e.basename=g.platform==="win32"?e.win32.basename:e.posix.basename,e.extname=g.platform==="win32"?e.win32.extname:e.posix.extname,e.format=g.platform==="win32"?e.win32.format:e.posix.format,e.parse=g.platform==="win32"?e.win32.parse:e.posix.parse,e.toNamespacedPath=g.platform==="win32"?e.win32.toNamespacedPath:e.posix.toNamespacedPath,e.sep=g.platform==="win32"?e.win32.sep:e.posix.sep,e.delimiter=g.platform==="win32"?e.win32.delimiter:e.posix.delimiter}),define(se[29],ae([0,1,2]),function(Y,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeDangerousEnvVariables=e.sanitizeProcessEnvironment=e.TerminateResponseCode=e.Source=void 0;var P;(function(_){_[_.stdout=0]="stdout",_[_.stderr=1]="stderr"})(P=e.Source||(e.Source={}));var y;(function(_){_[_.Success=0]="Success",_[_.Unknown=1]="Unknown",_[_.AccessDenied=2]="AccessDenied",_[_.ProcessNotFound=3]="ProcessNotFound"})(y=e.TerminateResponseCode||(e.TerminateResponseCode={}));function E(_,...m){const f=m.reduce((A,p)=>(A[p]=!0,A),{}),b=[/^ELECTRON_.+$/,/^VSCODE_(?!SHELL_LOGIN).+$/,/^SNAP(|_.*)$/,/^GDK_PIXBUF_.+$/,/^CODE_SERVER_.+$/,/^CS_.+$/];Object.keys(_).filter(A=>!f[A]).forEach(A=>{for(let p=0;p<b.length;p++)if(A.search(b[p])!==-1){delete _[A];break}})}e.sanitizeProcessEnvironment=E;function D(_){!_||(delete _.DEBUG,g.isMacintosh&&delete _.DYLD_LIBRARY_PATH,g.isLinux&&delete _.LD_PRELOAD)}e.removeDangerousEnvVariables=D}),define(se[38],ae([0,1,2]),function(Y,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StopWatch=void 0;const P=g.globals.performance&&typeof g.globals.performance.now=="function";class y{constructor(D){this._highResolution=P&&D,this._startTime=this._now(),this._stopTime=-1}static create(D=!0){return new y(D)}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?g.globals.performance.now():Date.now()}}e.StopWatch=y}),define(se[3],ae([0,1,10,28,4,37,38]),function(Y,e,g,P,y,E,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Relay=e.EventBufferer=e.EventMultiplexer=e.MicrotaskEmitter=e.DebounceEmitter=e.PauseableEmitter=e.AsyncEmitter=e.EventDeliveryQueue=e.Emitter=e.setGlobalLeakWarningThreshold=e.Event=void 0;const _=!1,m=!1;var f;(function(i){i.None=()=>y.Disposable.None;function n(z){if(m){const{onListenerDidAdd:W}=z,G=a.create();let Q=0;z.onListenerDidAdd=()=>{++Q==2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),G.print()),W?.()}}}function t(z){return(W,G=null,Q)=>{let R=!1,F;return F=z(B=>{if(!R)return F?F.dispose():R=!0,W.call(G,B)},null,Q),R&&F.dispose(),F}}i.once=t;function l(z,W,G){return ue((Q,R=null,F)=>z(B=>Q.call(R,W(B)),null,F),G)}i.map=l;function L(z,W,G){return ue((Q,R=null,F)=>z(B=>{W(B),Q.call(R,B)},null,F),G)}i.forEach=L;function j(z,W,G){return ue((Q,R=null,F)=>z(B=>W(B)&&Q.call(R,B),null,F),G)}i.filter=j;function $(z){return z}i.signal=$;function ne(...z){return(W,G=null,Q)=>(0,y.combinedDisposable)(...z.map(R=>R(F=>W.call(G,F),null,Q)))}i.any=ne;function le(z,W,G,Q){let R=G;return l(z,F=>(R=W(R,F),R),Q)}i.reduce=le;function ue(z,W){let G;const Q={onFirstListenerAdd(){G=z(R.fire,R)},onLastListenerRemove(){G?.dispose()}};W||n(Q);const R=new I(Q);return W?.add(R),R.event}function he(z,W,G=100,Q=!1,R,F){let B,K,te,de=0;const me={leakWarningThreshold:R,onFirstListenerAdd(){B=z(ve=>{de++,K=W(K,ve),Q&&!te&&(_e.fire(K),K=void 0),clearTimeout(te),te=setTimeout(()=>{const pe=K;K=void 0,te=void 0,(!Q||de>1)&&_e.fire(pe),de=0},G)})},onLastListenerRemove(){B.dispose()}};F||n(me);const _e=new I(me);return F?.add(_e),_e.event}i.debounce=he;function x(z,W=(Q,R)=>Q===R,G){let Q=!0,R;return j(z,F=>{const B=Q||!W(F,R);return Q=!1,R=F,B},G)}i.latch=x;function oe(z,W,G){return[i.filter(z,W,G),i.filter(z,Q=>!W(Q),G)]}i.split=oe;function M(z,W=!1,G=[]){let Q=G.slice(),R=z(K=>{Q?Q.push(K):B.fire(K)});const F=()=>{Q?.forEach(K=>B.fire(K)),Q=null},B=new I({onFirstListenerAdd(){R||(R=z(K=>B.fire(K)))},onFirstListenerDidAdd(){Q&&(W?setTimeout(F):F())},onLastListenerRemove(){R&&R.dispose(),R=null}});return B.event}i.buffer=M;class X{constructor(W){this.event=W,this.disposables=new y.DisposableStore}map(W){return new X(l(this.event,W,this.disposables))}forEach(W){return new X(L(this.event,W,this.disposables))}filter(W){return new X(j(this.event,W,this.disposables))}reduce(W,G){return new X(le(this.event,W,G,this.disposables))}latch(){return new X(x(this.event,void 0,this.disposables))}debounce(W,G=100,Q=!1,R){return new X(he(this.event,W,G,Q,R,this.disposables))}on(W,G,Q){return this.event(W,G,Q)}once(W,G,Q){return t(this.event)(W,G,Q)}dispose(){this.disposables.dispose()}}function U(z){return new X(z)}i.chain=U;function O(z,W,G=Q=>Q){const Q=(...K)=>B.fire(G(...K)),R=()=>z.on(W,Q),F=()=>z.removeListener(W,Q),B=new I({onFirstListenerAdd:R,onLastListenerRemove:F});return B.event}i.fromNodeEventEmitter=O;function q(z,W,G=Q=>Q){const Q=(...K)=>B.fire(G(...K)),R=()=>z.addEventListener(W,Q),F=()=>z.removeEventListener(W,Q),B=new I({onFirstListenerAdd:R,onLastListenerRemove:F});return B.event}i.fromDOMEventEmitter=q;function V(z){return new Promise(W=>t(z)(W))}i.toPromise=V;function ee(z,W){return W(void 0),z(G=>W(G))}i.runAndSubscribe=ee;function re(z,W){let G=null;function Q(F){G?.dispose(),G=new y.DisposableStore,W(F,G)}Q(void 0);const R=z(F=>Q(F));return(0,y.toDisposable)(()=>{R.dispose(),G?.dispose()})}i.runAndSubscribeWithStore=re;class J{constructor(W,G){this.obs=W,this._counter=0,this._hasChanged=!1;const Q={onFirstListenerAdd:()=>{W.addObserver(this)},onLastListenerRemove:()=>{W.removeObserver(this)}};G||n(Q),this.emitter=new I(Q),G&&G.add(this.emitter)}beginUpdate(W){this._counter++}handleChange(W,G){this._hasChanged=!0}endUpdate(W){--this._counter==0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function k(z,W){return new J(z,W).emitter.event}i.fromObservable=k})(f=e.Event||(e.Event={}));class b{constructor(n){this._listenerCount=0,this._invocationCount=0,this._elapsedOverall=0,this._name=`${n}_${b._idPool++}`}start(n){this._stopWatch=new D.StopWatch(!0),this._listenerCount=n}stop(){if(this._stopWatch){const n=this._stopWatch.elapsed();this._elapsedOverall+=n,this._invocationCount+=1,console.info(`did FIRE ${this._name}: elapsed_ms: ${n.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`),this._stopWatch=void 0}}}b._idPool=0;let C=-1;function A(i){const n=C;return C=i,{dispose(){C=n}}}e.setGlobalLeakWarningThreshold=A;class p{constructor(n,t=Math.random().toString(18).slice(2,5)){this.customThreshold=n,this.name=t,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(n,t){let l=C;if(typeof this.customThreshold=="number"&&(l=this.customThreshold),l<=0||t<l)return;this._stacks||(this._stacks=new Map);const L=this._stacks.get(n.value)||0;if(this._stacks.set(n.value,L+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=l*.5;let j,$=0;for(const[ne,le]of this._stacks)(!j||$<le)&&(j=ne,$=le);console.warn(`[${this.name}] potential listener LEAK detected, having ${t} listeners already. MOST frequent listener (${$}):`),console.warn(j)}return()=>{const j=this._stacks.get(n.value)||0;this._stacks.set(n.value,j-1)}}}class a{constructor(n){this.value=n}static create(){return new a(new Error().stack??"")}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}}class h{constructor(n,t,l){this.callback=n,this.callbackThis=t,this.stack=l,this.subscription=new y.SafeDisposable}invoke(n){this.callback.call(this.callbackThis,n)}}class I{constructor(n){this._disposed=!1,this._options=n,this._leakageMon=C>0?new p(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=this._options?._profName?new b(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){if(!this._disposed){if(this._disposed=!0,this._listeners){if(_){const n=Array.from(this._listeners);queueMicrotask(()=>{for(const t of n)t.subscription.isset()&&(t.subscription.unset(),t.stack?.print())})}this._listeners.clear()}this._deliveryQueue?.clear(this),this._options?.onLastListenerRemove?.(),this._leakageMon?.dispose()}}get event(){return this._event||(this._event=(n,t,l)=>{this._listeners||(this._listeners=new E.LinkedList);const L=this._listeners.isEmpty();L&&this._options?.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);let j,$;this._leakageMon&&this._listeners.size>=30&&($=a.create(),j=this._leakageMon.check($,this._listeners.size+1)),_&&($=$??a.create());const ne=new h(n,t,$),le=this._listeners.push(ne);L&&this._options?.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options?.onListenerDidAdd&&this._options.onListenerDidAdd(this,n,t);const ue=ne.subscription.set(()=>{j?.(),this._disposed||(le(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return l instanceof y.DisposableStore?l.add(ue):Array.isArray(l)&&l.push(ue),ue}),this._event}fire(n){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new N);for(const t of this._listeners)this._deliveryQueue.push(this,t,n);this._perfMon?.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),this._perfMon?.stop()}}hasListeners(){return this._listeners?!this._listeners.isEmpty():!1}}e.Emitter=I;class T{constructor(){this._queue=new E.LinkedList}get size(){return this._queue.size}push(n,t,l){this._queue.push(new o(n,t,l))}clear(n){const t=new E.LinkedList;for(const l of this._queue)l.emitter!==n&&t.push(l);this._queue=t}deliver(){for(;this._queue.size>0;){const n=this._queue.shift();try{n.listener.invoke(n.event)}catch(t){(0,g.onUnexpectedError)(t)}}}}e.EventDeliveryQueue=T;class N extends T{clear(n){this._queue.clear()}}class o{constructor(n,t,l){this.emitter=n,this.listener=t,this.event=l}}class u extends I{async fireAsync(n,t,l){if(!!this._listeners){this._asyncDeliveryQueue||(this._asyncDeliveryQueue=new E.LinkedList);for(const L of this._listeners)this._asyncDeliveryQueue.push([L,n]);for(;this._asyncDeliveryQueue.size>0&&!t.isCancellationRequested;){const[L,j]=this._asyncDeliveryQueue.shift(),$=[],ne={...j,token:t,waitUntil:le=>{if(Object.isFrozen($))throw new Error("waitUntil can NOT be called asynchronous");l&&(le=l(le,L.callback)),$.push(le)}};try{L.invoke(ne)}catch(le){(0,g.onUnexpectedError)(le);continue}Object.freeze($),await Promise.allSettled($).then(le=>{for(const ue of le)ue.status==="rejected"&&(0,g.onUnexpectedError)(ue.reason)})}}}}e.AsyncEmitter=u;class w extends I{constructor(n){super(n);this._isPaused=0,this._eventQueue=new E.LinkedList,this._mergeFn=n?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused==0)if(this._mergeFn){const n=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(n))}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(n){this._listeners&&(this._isPaused!==0?this._eventQueue.push(n):super.fire(n))}}e.PauseableEmitter=w;class v extends w{constructor(n){super(n);this._delay=n.delay??100}fire(n){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(n)}}e.DebounceEmitter=v;class d extends I{constructor(n){super(n);this._queuedEvents=[],this._mergeFn=n?.merge}fire(n){this._queuedEvents.push(n),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(t=>super.fire(t)),this._queuedEvents=[]})}}e.MicrotaskEmitter=d;class r{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new I({onFirstListenerAdd:()=>this.onFirstListenerAdd(),onLastListenerRemove:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(n){const t={event:n,listener:null};this.events.push(t),this.hasListeners&&this.hook(t);const l=()=>{this.hasListeners&&this.unhook(t);const L=this.events.indexOf(t);this.events.splice(L,1)};return(0,y.toDisposable)((0,P.once)(l))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(n=>this.hook(n))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(n=>this.unhook(n))}hook(n){n.listener=n.event(t=>this.emitter.fire(t))}unhook(n){n.listener&&n.listener.dispose(),n.listener=null}dispose(){this.emitter.dispose()}}e.EventMultiplexer=r;class c{constructor(){this.buffers=[]}wrapEvent(n){return(t,l,L)=>n(j=>{const $=this.buffers[this.buffers.length-1];$?$.push(()=>t.call(l,j)):t.call(l,j)},void 0,L)}bufferEvents(n){const t=[];this.buffers.push(t);const l=n();return this.buffers.pop(),t.forEach(L=>L()),l}}e.EventBufferer=c;class s{constructor(){this.listening=!1,this.inputEvent=f.None,this.inputEventListener=y.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(n){this.inputEvent=n,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=n(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}e.Relay=s}),define(se[18],ae([0,1,3]),function(Y,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const P=Object.freeze(function(_,m){const f=setTimeout(_.bind(m),0);return{dispose(){clearTimeout(f)}}});var y;(function(_){function m(f){return f===_.None||f===_.Cancelled||f instanceof E?!0:!f||typeof f!="object"?!1:typeof f.isCancellationRequested=="boolean"&&typeof f.onCancellationRequested=="function"}_.isCancellationToken=m,_.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:g.Event.None}),_.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:P})})(y=e.CancellationToken||(e.CancellationToken={}));class E{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?P:(this._emitter||(this._emitter=new g.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class D{constructor(m){this._token=void 0,this._parentListener=void 0,this._parentListener=m&&m.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new E),this._token}cancel(){this._token?this._token instanceof E&&this._token.cancel():this._token=y.Cancelled}dispose(m=!1){m&&this.cancel(),this._parentListener&&this._parentListener.dispose(),this._token?this._token instanceof E&&this._token.dispose():this._token=y.None}}e.CancellationTokenSource=D}),define(se[39],ae([0,1,18]),function(Y,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CachedFunction=e.LRUCachedFunction=e.Cache=void 0;class P{constructor(_){this.task=_,this.result=null}get(){if(this.result)return this.result;const _=new g.CancellationTokenSource,m=this.task(_.token);return this.result={promise:m,dispose:()=>{this.result=null,_.cancel(),_.dispose()}},this.result}}e.Cache=P;class y{constructor(_){this.fn=_,this.lastCache=void 0,this.lastArgKey=void 0}get(_){const m=JSON.stringify(_);return this.lastArgKey!==m&&(this.lastArgKey=m,this.lastCache=this.fn(_)),this.lastCache}}e.LRUCachedFunction=y;class E{constructor(_){this.fn=_,this._map=new Map}get cachedValues(){return this._map}get(_){if(this._map.has(_))return this._map.get(_);const m=this.fn(_);return this._map.set(_,m),m}}e.CachedFunction=E}),define(se[40],ae([0,1,10,4]),function(Y,e,g,P){"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=e.isReadable=void 0;function y(u){const w=u;return w?typeof w.read=="function":!1}e.isReadable=y;function E(u){const w=u;return w?[w.on,w.pause,w.resume,w.destroy].every(v=>typeof v=="function"):!1}e.isReadableStream=E;function D(u){const w=u;return w?E(w.stream)&&Array.isArray(w.buffer)&&typeof w.ended=="boolean":!1}e.isReadableBufferedStream=D;function _(u,w){return new m(u,w)}e.newWriteableStream=_;class m{constructor(w,v){this.reducer=w,this.options=v,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(w){if(!this.state.destroyed){if(this.state.flowing)this.emitData(w);else if(this.buffer.data.push(w),typeof this.options?.highWaterMark=="number"&&this.buffer.data.length>this.options.highWaterMark)return new Promise(v=>this.pendingWritePromises.push(v))}}error(w){this.state.destroyed||(this.state.flowing?this.emitError(w):this.buffer.error.push(w))}end(w){this.state.destroyed||(typeof w!="undefined"&&this.write(w),this.state.flowing?(this.emitEnd(),this.destroy()):this.state.ended=!0)}emitData(w){this.listeners.data.slice(0).forEach(v=>v(w))}emitError(w){this.listeners.error.length===0?(0,g.onUnexpectedError)(w):this.listeners.error.slice(0).forEach(v=>v(w))}emitEnd(){this.listeners.end.slice(0).forEach(w=>w())}on(w,v){if(!this.state.destroyed)switch(w){case"data":this.listeners.data.push(v),this.resume();break;case"end":this.listeners.end.push(v),this.state.flowing&&this.flowEnd()&&this.destroy();break;case"error":this.listeners.error.push(v),this.state.flowing&&this.flowErrors();break}}removeListener(w,v){if(this.state.destroyed)return;let d;switch(w){case"data":d=this.listeners.data;break;case"end":d=this.listeners.end;break;case"error":d=this.listeners.error;break}if(d){const r=d.indexOf(v);r>=0&&d.splice(r,1)}}flowData(){if(this.buffer.data.length>0){const w=this.reducer(this.buffer.data);this.emitData(w),this.buffer.data.length=0;const v=[...this.pendingWritePromises];this.pendingWritePromises.length=0,v.forEach(d=>d())}}flowErrors(){if(this.listeners.error.length>0){for(const w of this.buffer.error)this.emitError(w);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 f(u,w){const v=[];let d;for(;(d=u.read())!==null;)v.push(d);return w(v)}e.consumeReadable=f;function b(u,w,v){const d=[];let r;for(;(r=u.read())!==null&&d.length<v;)d.push(r);return r===null&&d.length>0?w(d):{read:()=>{if(d.length>0)return d.shift();if(typeof r!="undefined"){const c=r;return r=void 0,c}return u.read()}}}e.peekReadable=b;function C(u,w){return new Promise((v,d)=>{const r=[];A(u,{onData:c=>{w&&r.push(c)},onError:c=>{w?d(c):v(void 0)},onEnd:()=>{v(w?w(r):void 0)}})})}e.consumeStream=C;function A(u,w){let v=!1;return u.on("error",d=>{v||w.onError(d)}),u.on("end",()=>{v||w.onEnd()}),u.on("data",d=>{v||w.onData(d)}),(0,P.toDisposable)(()=>v=!0)}e.listenStream=A;function p(u,w){return new Promise((v,d)=>{const r=new P.DisposableStore,c=[],s=t=>{if(c.push(t),c.length>w)return r.dispose(),u.pause(),v({stream:u,buffer:c,ended:!1})},i=t=>d(t),n=()=>v({stream:u,buffer:c,ended:!0});r.add((0,P.toDisposable)(()=>u.removeListener("error",i))),u.on("error",i),r.add((0,P.toDisposable)(()=>u.removeListener("end",n))),u.on("end",n),r.add((0,P.toDisposable)(()=>u.removeListener("data",s))),u.on("data",s)})}e.peekStream=p;function a(u,w){const v=_(w);return v.end(u),v}e.toStream=a;function h(){const u=_(()=>{throw new Error("not supported")});return u.end(),u}e.emptyStream=h;function I(u){let w=!1;return{read:()=>w?null:(w=!0,u)}}e.toReadable=I;function T(u,w,v){const d=_(v);return A(u,{onData:r=>d.write(w.data(r)),onError:r=>d.error(w.error?w.error(r):r),onEnd:()=>d.end()}),d}e.transform=T;function N(u,w,v){let d=!1;return{read:()=>{const r=w.read();return d?r:(d=!0,r!==null?v([u,r]):u)}}}e.prefixedReadable=N;function o(u,w,v){let d=!1;const r=_(v);return A(w,{onData:c=>d?r.write(c):(d=!0,r.write(v([u,c]))),onError:c=>r.error(c),onEnd:()=>{d||(d=!0,r.write(u)),r.end()}}),r}e.prefixedStream=o}),define(se[23],ae([0,1,40]),function(Y,e,g){"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 P=typeof Buffer!="undefined";let y,E;class D{constructor(t){this.buffer=t,this.byteLength=this.buffer.byteLength}static alloc(t){return P?new D(Buffer.allocUnsafe(t)):new D(new Uint8Array(t))}static wrap(t){return P&&!Buffer.isBuffer(t)&&(t=Buffer.from(t.buffer,t.byteOffset,t.byteLength)),new D(t)}static fromString(t,l){return!(l?.dontUseNodeBuffer||!1)&&P?new D(Buffer.from(t)):(y||(y=new TextEncoder),new D(y.encode(t)))}static fromByteArray(t){const l=D.alloc(t.length);for(let L=0,j=t.length;L<j;L++)l.buffer[L]=t[L];return l}static concat(t,l){if(typeof l=="undefined"){l=0;for(let $=0,ne=t.length;$<ne;$++)l+=t[$].byteLength}const L=D.alloc(l);let j=0;for(let $=0,ne=t.length;$<ne;$++){const le=t[$];L.set(le,j),j+=le.byteLength}return L}clone(){const t=D.alloc(this.byteLength);return t.set(this),t}toString(){return P?this.buffer.toString():(E||(E=new TextDecoder),E.decode(this.buffer))}slice(t,l){return new D(this.buffer.subarray(t,l))}set(t,l){if(t instanceof D)this.buffer.set(t.buffer,l);else if(t instanceof Uint8Array)this.buffer.set(t,l);else if(t instanceof ArrayBuffer)this.buffer.set(new Uint8Array(t),l);else if(ArrayBuffer.isView(t))this.buffer.set(new Uint8Array(t.buffer,t.byteOffset,t.byteLength),l);else throw new Error("Unknown argument 'array'")}readUInt32BE(t){return f(this.buffer,t)}writeUInt32BE(t,l){b(this.buffer,t,l)}readUInt32LE(t){return C(this.buffer,t)}writeUInt32LE(t,l){A(this.buffer,t,l)}readUInt8(t){return p(this.buffer,t)}writeUInt8(t,l){a(this.buffer,t,l)}}e.VSBuffer=D;function _(n,t){return n[t+0]<<0>>>0|n[t+1]<<8>>>0}e.readUInt16LE=_;function m(n,t,l){n[l+0]=t&255,t=t>>>8,n[l+1]=t&255}e.writeUInt16LE=m;function f(n,t){return n[t]*2**24+n[t+1]*2**16+n[t+2]*2**8+n[t+3]}e.readUInt32BE=f;function b(n,t,l){n[l+3]=t,t=t>>>8,n[l+2]=t,t=t>>>8,n[l+1]=t,t=t>>>8,n[l]=t}e.writeUInt32BE=b;function C(n,t){return n[t+0]<<0>>>0|n[t+1]<<8>>>0|n[t+2]<<16>>>0|n[t+3]<<24>>>0}e.readUInt32LE=C;function A(n,t,l){n[l+0]=t&255,t=t>>>8,n[l+1]=t&255,t=t>>>8,n[l+2]=t&255,t=t>>>8,n[l+3]=t&255}e.writeUInt32LE=A;function p(n,t){return n[t]}e.readUInt8=p;function a(n,t,l){n[l]=t}e.writeUInt8=a;function h(n){return g.consumeReadable(n,t=>D.concat(t))}e.readableToBuffer=h;function I(n){return g.toReadable(n)}e.bufferToReadable=I;function T(n){return g.consumeStream(n,t=>D.concat(t))}e.streamToBuffer=T;async function N(n){return n.ended?D.concat(n.buffer):D.concat([...n.buffer,await T(n.stream)])}e.bufferedStreamToBuffer=N;function o(n){return g.toStream(n,t=>D.concat(t))}e.bufferToStream=o;function u(n){return g.transform(n,{data:t=>typeof t=="string"?D.fromString(t):D.wrap(t)},t=>D.concat(t))}e.streamToBufferReadableStream=u;function w(n){return g.newWriteableStream(t=>D.concat(t),n)}e.newWriteableBufferStream=w;function v(n,t){return g.prefixedReadable(n,t,l=>D.concat(l))}e.prefixedBufferReadable=v;function d(n,t){return g.prefixedStream(n,t,l=>D.concat(l))}e.prefixedBufferStream=d;function r(n){let t=0,l=0,L=0;const j=new Uint8Array(Math.floor(n.length/4*3)),$=le=>{switch(l){case 3:j[L++]=t|le,l=0;break;case 2:j[L++]=t|le>>>2,t=le<<6,l=3;break;case 1:j[L++]=t|le>>>4,t=le<<4,l=2;break;default:t=le<<2,l=1}};for(let le=0;le<n.length;le++){const ue=n.charCodeAt(le);if(ue>=65&&ue<=90)$(ue-65);else if(ue>=97&&ue<=122)$(ue-97+26);else if(ue>=48&&ue<=57)$(ue-48+52);else if(ue===43||ue===45)$(62);else if(ue===47||ue===95)$(63);else{if(ue===61)break;throw new SyntaxError(`Unexpected base64 character ${n[le]}`)}}const ne=L;for(;l>0;)$(0);return D.wrap(j).slice(0,ne)}e.decodeBase64=r;const c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function i({buffer:n},t=!0,l=!1){const L=l?s:c;let j="";const $=n.byteLength%3;let ne=0;for(;ne<n.byteLength-$;ne+=3){const le=n[ne+0],ue=n[ne+1],he=n[ne+2];j+=L[le>>>2],j+=L[(le<<4|ue>>>4)&63],j+=L[(ue<<2|he>>>6)&63],j+=L[he&63]}if($===1){const le=n[ne+0];j+=L[le>>>2],j+=L[le<<4&63],t&&(j+="==")}else if($===2){const le=n[ne+0],ue=n[ne+1];j+=L[le>>>2],j+=L[(le<<4|ue>>>4)&63],j+=L[ue<<2&63],t&&(j+="=")}return j}e.encodeBase64=i}),define(se[11],ae([0,1,39,36]),function(Y,e,g,P){"use strict";var y;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.isAsciiDigit=e.compareSubstringIgnoreCase=e.compareIgnoreCase=e.compareSubstring=e.compare=e.replaceAsync=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 E(S){return!S||typeof S!="string"?!0:S.trim().length===0}e.isFalsyOrWhitespace=E;const D=/{(\d+)}/g;function _(S,...H){return H.length===0?S:S.replace(D,function(Z,ie){const ce=parseInt(ie,10);return isNaN(ce)||ce<0||ce>=H.length?Z:H[ce]})}e.format=_;const m=/{([^}]+)}/g;function f(S,H){return S.replace(m,(Z,ie)=>H[ie]??Z)}e.format2=f;function b(S){return S.replace(/[<>&]/g,function(H){switch(H){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return H}})}e.escape=b;function C(S){return S.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}e.escapeRegExpCharacters=C;function A(S,H){let Z=0;const ie=H.charCodeAt(0);for(let ce=S.length-1;ce>=0;ce--)S.charCodeAt(ce)===ie&&Z++;return Z}e.count=A;function p(S,H,Z="\u2026"){return S.length<=H?S:`${S.substr(0,H)}${Z}`}e.truncate=p;function a(S,H=" "){const Z=h(S,H);return I(Z,H)}e.trim=a;function h(S,H){if(!S||!H)return S;const Z=H.length;if(Z===0||S.length===0)return S;let ie=0;for(;S.indexOf(H,ie)===ie;)ie=ie+Z;return S.substring(ie)}e.ltrim=h;function I(S,H){if(!S||!H)return S;const Z=H.length,ie=S.length;if(Z===0||ie===0)return S;let ce=ie,ge=-1;for(;ge=S.lastIndexOf(H,ce-1),!(ge===-1||ge+Z!==ce);){if(ge===0)return"";ce=ge}return S.substring(0,ce)}e.rtrim=I;function T(S){return S.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}e.convertSimple2RegExpPattern=T;function N(S){return S.replace(/\*/g,"")}e.stripWildcards=N;function o(S,H,Z={}){if(!S)throw new Error("Cannot create regex from empty string");H||(S=C(S)),Z.wholeWord&&(/\B/.test(S.charAt(0))||(S="\\b"+S),/\B/.test(S.charAt(S.length-1))||(S=S+"\\b"));let ie="";return Z.global&&(ie+="g"),Z.matchCase||(ie+="i"),Z.multiline&&(ie+="m"),Z.unicode&&(ie+="u"),new RegExp(S,ie)}e.createRegExp=o;function u(S){return S.source==="^"||S.source==="^$"||S.source==="$"||S.source==="^\\s*$"?!1:!!(S.exec("")&&S.lastIndex===0)}e.regExpLeadsToEndlessLoop=u;function w(S){return!!S.match(/([^\\]|^)(\\\\)*\\\d+/)}e.regExpContainsBackreference=w;function v(S){return(S.global?"g":"")+(S.ignoreCase?"i":"")+(S.multiline?"m":"")+(S.unicode?"u":"")}e.regExpFlags=v;function d(S){return S.split(/\r\n|\r|\n/)}e.splitLines=d;function r(S){for(let H=0,Z=S.length;H<Z;H++){const ie=S.charCodeAt(H);if(ie!==32&&ie!==9)return H}return-1}e.firstNonWhitespaceIndex=r;function c(S,H=0,Z=S.length){for(let ie=H;ie<Z;ie++){const ce=S.charCodeAt(ie);if(ce!==32&&ce!==9)return S.substring(H,ie)}return S.substring(H,Z)}e.getLeadingWhitespace=c;function s(S,H=S.length-1){for(let Z=H;Z>=0;Z--){const ie=S.charCodeAt(Z);if(ie!==32&&ie!==9)return Z}return-1}e.lastNonWhitespaceIndex=s;function i(S,H,Z){const ie=[];let ce=0;for(const ge of S.matchAll(H)){if(ie.push(S.slice(ce,ge.index)),ge.index===void 0)throw new Error("match.index should be defined");ce=ge.index+ge[0].length,ie.push(Z(ge[0],...ge.slice(1),ge.index,S,ge.groups))}return ie.push(S.slice(ce)),Promise.all(ie).then(ge=>ge.join(""))}e.replaceAsync=i;function n(S,H){return S<H?-1:S>H?1:0}e.compare=n;function t(S,H,Z=0,ie=S.length,ce=0,ge=H.length){for(;Z<ie&&ce<ge;Z++,ce++){const Ee=S.charCodeAt(Z),we=H.charCodeAt(ce);if(Ee<we)return-1;if(Ee>we)return 1}const ye=ie-Z,Ae=ge-ce;return ye<Ae?-1:ye>Ae?1:0}e.compareSubstring=t;function l(S,H){return L(S,H,0,S.length,0,H.length)}e.compareIgnoreCase=l;function L(S,H,Z=0,ie=S.length,ce=0,ge=H.length){for(;Z<ie&&ce<ge;Z++,ce++){let Ee=S.charCodeAt(Z),we=H.charCodeAt(ce);if(Ee===we)continue;if(Ee>=128||we>=128)return t(S.toLowerCase(),H.toLowerCase(),Z,ie,ce,ge);$(Ee)&&(Ee-=32),$(we)&&(we-=32);const be=Ee-we;if(be!==0)return be}const ye=ie-Z,Ae=ge-ce;return ye<Ae?-1:ye>Ae?1:0}e.compareSubstringIgnoreCase=L;function j(S){return S>=48&&S<=57}e.isAsciiDigit=j;function $(S){return S>=97&&S<=122}e.isLowerAsciiLetter=$;function ne(S){return S>=65&&S<=90}e.isUpperAsciiLetter=ne;function le(S,H){return S.length===H.length&&L(S,H)===0}e.equalsIgnoreCase=le;function ue(S,H){const Z=H.length;return H.length>S.length?!1:L(S,H,0,Z)===0}e.startsWithIgnoreCase=ue;function he(S,H){const Z=Math.min(S.length,H.length);let ie;for(ie=0;ie<Z;ie++)if(S.charCodeAt(ie)!==H.charCodeAt(ie))return ie;return Z}e.commonPrefixLength=he;function x(S,H){const Z=Math.min(S.length,H.length);let ie;const ce=S.length-1,ge=H.length-1;for(ie=0;ie<Z;ie++)if(S.charCodeAt(ce-ie)!==H.charCodeAt(ge-ie))return ie;return Z}e.commonSuffixLength=x;function oe(S){return 55296<=S&&S<=56319}e.isHighSurrogate=oe;function M(S){return 56320<=S&&S<=57343}e.isLowSurrogate=M;function X(S,H){return(S-55296<<10)+(H-56320)+65536}e.computeCodePoint=X;function U(S,H,Z){const ie=S.charCodeAt(Z);if(oe(ie)&&Z+1<H){const ce=S.charCodeAt(Z+1);if(M(ce))return X(ie,ce)}return ie}e.getNextCodePoint=U;function O(S,H){const Z=S.charCodeAt(H-1);if(M(Z)&&H>1){const ie=S.charCodeAt(H-2);if(oe(ie))return X(ie,Z)}return Z}class q{constructor(H,Z=0){this._str=H,this._len=H.length,this._offset=Z}get offset(){return this._offset}setOffset(H){this._offset=H}prevCodePoint(){const H=O(this._str,this._offset);return this._offset-=H>=65536?2:1,H}nextCodePoint(){const H=U(this._str,this._len,this._offset);return this._offset+=H>=65536?2:1,H}eol(){return this._offset>=this._len}}e.CodePointIterator=q;class V{constructor(H,Z=0){this._iterator=new q(H,Z)}get offset(){return this._iterator.offset}nextGraphemeLength(){const H=Le.getInstance(),Z=this._iterator,ie=Z.offset;let ce=H.getGraphemeBreakType(Z.nextCodePoint());for(;!Z.eol();){const ge=Z.offset,ye=H.getGraphemeBreakType(Z.nextCodePoint());if(Fe(ce,ye)){Z.setOffset(ge);break}ce=ye}return Z.offset-ie}prevGraphemeLength(){const H=Le.getInstance(),Z=this._iterator,ie=Z.offset;let ce=H.getGraphemeBreakType(Z.prevCodePoint());for(;Z.offset>0;){const ge=Z.offset,ye=H.getGraphemeBreakType(Z.prevCodePoint());if(Fe(ye,ce)){Z.setOffset(ge);break}ce=ye}return ie-Z.offset}eol(){return this._iterator.eol()}}e.GraphemeIterator=V;function ee(S,H){return new V(S,H).nextGraphemeLength()}e.nextCharLength=ee;function re(S,H){return new V(S,H).prevGraphemeLength()}e.prevCharLength=re;function J(S,H){H>0&&M(S.charCodeAt(H))&&H--;const Z=H+ee(S,H);return[Z-re(S,Z),Z]}e.getCharContainingOffset=J;const k=/(?:[\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 z(S){return k.test(S)}e.containsRTL=z;const W=/^[\t\n\r\x20-\x7E]*$/;function G(S){return W.test(S)}e.isBasicASCII=G,e.UNUSUAL_LINE_TERMINATORS=/[\u2028\u2029]/;function Q(S){return e.UNUSUAL_LINE_TERMINATORS.test(S)}e.containsUnusualLineTerminators=Q;function R(S){return S>=11904&&S<=55215||S>=63744&&S<=64255||S>=65281&&S<=65374}e.isFullWidthCharacter=R;function F(S){return S>=127462&&S<=127487||S===8986||S===8987||S===9200||S===9203||S>=9728&&S<=10175||S===11088||S===11093||S>=127744&&S<=128591||S>=128640&&S<=128764||S>=128992&&S<=129008||S>=129280&&S<=129535||S>=129648&&S<=129782}e.isEmojiImprecise=F;function B(S,H){if(S.length<H)return S;const Z=/\b/g;let ie=0;for(;Z.test(S)&&!(S.length-Z.lastIndex<H);)ie=Z.lastIndex,Z.lastIndex+=1;return S.substring(ie).replace(/^\s/,"")}e.lcut=B;const K=/\x1B\x5B[12]?K/g,te=/\x1b\[\d+m/g,de=/\x1b\[0?m/g;function me(S){return S&&(S=S.replace(K,""),S=S.replace(te,""),S=S.replace(de,"")),S}e.removeAnsiEscapeCodes=me,e.UTF8_BOM_CHARACTER=String.fromCharCode(65279);function _e(S){return!!(S&&S.length>0&&S.charCodeAt(0)===65279)}e.startsWithUTF8BOM=_e;function ve(S){return _e(S)?S.substr(1):S}e.stripUTF8BOM=ve;function pe(S,H){if(!S||!H||S.length<H.length)return!1;const Z=H.length,ie=S.toLowerCase();let ce=0,ge=-1;for(;ce<Z;){const ye=ie.indexOf(H[ce],ge+1);if(ye<0)return!1;ge=ye,ce++}return!0}e.fuzzyContains=pe;function Ce(S,H=!1){return S?(H&&(S=S.replace(/\\./g,"")),S.toLowerCase()!==S):!1}e.containsUppercaseCharacter=Ce;function Me(S){return S.charAt(0).toUpperCase()+S.slice(1)}e.uppercaseFirstLetter=Me;function ze(S,H=1){if(H===0)return"";let Z=-1;do Z=S.indexOf(`
`,Z+1),H--;while(H>0&&Z>=0);return Z===-1?S:(S[Z-1]==="\r"&&Z--,S.substr(0,Z))}e.getNLines=ze;function We(S){const H=90-65+1;return S=S%(2*H),S<H?String.fromCharCode(97+S):String.fromCharCode(65+S-H)}e.singleLetterHash=We;function Be(S){return Le.getInstance().getGraphemeBreakType(S)}e.getGraphemeBreakType=Be;function Fe(S,H){return S===0?H!==5&&H!==7:S===2&&H===3?!1:S===4||S===2||S===3||H===4||H===2||H===3?!0:!(S===8&&(H===8||H===9||H===11||H===12)||(S===11||S===9)&&(H===9||H===10)||(S===12||S===10)&&H===10||H===5||H===13||H===7||S===1||S===13&&H===14||S===6&&H===6)}var qe;(function(S){S[S.Other=0]="Other",S[S.Prepend=1]="Prepend",S[S.CR=2]="CR",S[S.LF=3]="LF",S[S.Control=4]="Control",S[S.Extend=5]="Extend",S[S.Regional_Indicator=6]="Regional_Indicator",S[S.SpacingMark=7]="SpacingMark",S[S.L=8]="L",S[S.V=9]="V",S[S.T=10]="T",S[S.LV=11]="LV",S[S.LVT=12]="LVT",S[S.ZWJ=13]="ZWJ",S[S.Extended_Pictographic=14]="Extended_Pictographic"})(qe=e.GraphemeBreakType||(e.GraphemeBreakType={}));class Le{constructor(){this._data=$e()}static getInstance(){return Le._INSTANCE||(Le._INSTANCE=new Le),Le._INSTANCE}getGraphemeBreakType(H){if(H<32)return H===10?3:H===13?2:4;if(H<127)return 0;const Z=this._data,ie=Z.length/3;let ce=1;for(;ce<=ie;)if(H<Z[3*ce])ce=2*ce;else if(H>Z[3*ce+1])ce=2*ce+1;else return Z[3*ce+2];return 0}}Le._INSTANCE=null;function $e(){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 je(S,H){if(S===0)return 0;const Z=He(S,H);if(Z!==void 0)return Z;const ie=new q(H,S);return ie.prevCodePoint(),ie.offset}e.getLeftDeleteOffset=je;function He(S,H){const Z=new q(H,S);let ie=Z.prevCodePoint();for(;Ve(ie)||ie===65039||ie===8419;){if(Z.offset===0)return;ie=Z.prevCodePoint()}if(!F(ie))return;let ce=Z.offset;return ce>0&&Z.prevCodePoint()===8205&&(ce=Z.offset),ce}function Ve(S){return 127995<=S&&S<=127999}var Ne;(function(S){S[S.zwj=8205]="zwj",S[S.emojiVariantSelector=65039]="emojiVariantSelector",S[S.enclosingKeyCap=8419]="enclosingKeyCap"})(Ne||(Ne={})),e.noBreakWhitespace="\xA0";class Pe{constructor(H){this.confusableDictionary=H}static getInstance(H){return Pe.cache.get(Array.from(H))}static getLocales(){return Pe._locales.getValue()}isAmbiguous(H){return this.confusableDictionary.has(H)}getPrimaryConfusable(H){return this.confusableDictionary.get(H)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}e.AmbiguousCharacters=Pe,y=Pe,Pe.ambiguousCharacterData=new P.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]}')),Pe.cache=new g.LRUCachedFunction(S=>{function H(we){const be=new Map;for(let Se=0;Se<we.length;Se+=2)be.set(we[Se],we[Se+1]);return be}function Z(we,be){const Se=new Map(we);for(const[ke,Te]of be)Se.set(ke,Te);return Se}function ie(we,be){if(!we)return be;const Se=new Map;for(const[ke,Te]of we)be.has(ke)&&Se.set(ke,Te);return Se}const ce=y.ambiguousCharacterData.getValue();let ge=S.filter(we=>!we.startsWith("_")&&we in ce);ge.length===0&&(ge=["_default"]);let ye;for(const we of ge){const be=H(ce[we]);ye=ie(ye,be)}const Ae=H(ce._common),Ee=Z(Ae,ye);return new Pe(Ee)}),Pe._locales=new P.Lazy(()=>Object.keys(Pe.ambiguousCharacterData.getValue()).filter(S=>!S.startsWith("_")));class Ie{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(Ie.getRawData())),this._data}static isInvisibleCharacter(H){return Ie.getData().has(H)}static get codePoints(){return Ie.getData()}}e.InvisibleCharacters=Ie,Ie._data=void 0});var Ue=this&&this.__classPrivateFieldSet||function(Y,e,g,P,y){if(P==="m")throw new TypeError("Private method is not writable");if(P==="a"&&!y)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?Y!==e||!y:!e.has(Y))throw new TypeError("Cannot write private member to an object whose class did not declare it");return P==="a"?y.call(Y,g):y?y.value=g:e.set(Y,g),g},De=this&&this.__classPrivateFieldGet||function(Y,e,g,P){if(g==="a"&&!P)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?Y!==e||!P:!e.has(Y))throw new TypeError("Cannot read private member from an object whose class did not declare it");return g==="m"?P:g==="a"?P.call(Y):P?P.value:e.get(Y)};define(se[30],ae([0,1,22,11]),function(Y,e,g,P){"use strict";var y,E,D,_;Object.defineProperty(e,"__esModule",{value:!0}),e.ReadonlyMapView=e.LRUCache=e.LinkedMap=e.Touch=e.ResourceSet=e.ResourceMap=e.TernarySearchTree=e.UriIterator=e.PathIterator=e.ConfigKeysIterator=e.StringIterator=e.setToString=e.mapToString=e.getOrSet=void 0;function m(s,i,n){let t=s.get(i);return t===void 0&&(t=n,s.set(i,t)),t}e.getOrSet=m;function f(s){const i=[];return s.forEach((n,t)=>{i.push(`${t} => ${n}`)}),`Map(${s.size}) {${i.join(", ")}}`}e.mapToString=f;function b(s){const i=[];return s.forEach(n=>{i.push(n)}),`Set(${s.size}) {${i.join(", ")}}`}e.setToString=b;class C{constructor(){this._value="",this._pos=0}reset(i){return this._value=i,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(i){const n=i.charCodeAt(0),t=this._value.charCodeAt(this._pos);return n-t}value(){return this._value[this._pos]}}e.StringIterator=C;class A{constructor(i=!0){this._caseSensitive=i}reset(i){return this._value=i,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let i=!0;for(;this._to<this._value.length;this._to++)if(this._value.charCodeAt(this._to)===46)if(i)this._from++;else break;else i=!1;return this}cmp(i){return this._caseSensitive?(0,P.compareSubstring)(i,this._value,0,i.length,this._from,this._to):(0,P.compareSubstringIgnoreCase)(i,this._value,0,i.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}e.ConfigKeysIterator=A;class p{constructor(i=!0,n=!0){this._splitOnBackslash=i,this._caseSensitive=n}reset(i){this._from=0,this._to=0,this._value=i,this._valueLen=i.length;for(let n=i.length-1;n>=0;n--,this._valueLen--){const t=this._value.charCodeAt(n);if(!(t===47||this._splitOnBackslash&&t===92))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let i=!0;for(;this._to<this._valueLen;this._to++){const n=this._value.charCodeAt(this._to);if(n===47||this._splitOnBackslash&&n===92)if(i)this._from++;else break;else i=!1}return this}cmp(i){return this._caseSensitive?(0,P.compareSubstring)(i,this._value,0,i.length,this._from,this._to):(0,P.compareSubstringIgnoreCase)(i,this._value,0,i.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}e.PathIterator=p;var a;(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"})(a||(a={}));class h{constructor(i,n){this._ignorePathCasing=i,this._ignoreQueryAndFragment=n,this._states=[],this._stateIdx=0}reset(i){return this._value=i,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new p(!1,!this._ignorePathCasing(i)),this._pathIterator.reset(i.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(i)||(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(i){if(this._states[this._stateIdx]===1)return(0,P.compareIgnoreCase)(i,this._value.scheme);if(this._states[this._stateIdx]===2)return(0,P.compareIgnoreCase)(i,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(i);if(this._states[this._stateIdx]===4)return(0,P.compare)(i,this._value.query);if(this._states[this._stateIdx]===5)return(0,P.compare)(i,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=h;class I{constructor(){this.height=1}isEmpty(){return!this.left&&!this.mid&&!this.right&&!this.value}rotateLeft(){const i=this.right;return this.right=i.left,i.left=this,this.updateHeight(),i.updateHeight(),i}rotateRight(){const i=this.left;return this.left=i.right,i.right=this,this.updateHeight(),i.updateHeight(),i}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 T;(function(s){s[s.Left=-1]="Left",s[s.Mid=0]="Mid",s[s.Right=1]="Right"})(T||(T={}));class N{constructor(i){this._iter=i}static forUris(i=()=>!1,n=()=>!1){return new N(new h(i,n))}static forPaths(i=!1){return new N(new p(void 0,!i))}static forStrings(){return new N(new C)}static forConfigKeys(){return new N(new A)}clear(){this._root=void 0}fill(i,n){if(n){const t=n.slice(0);(0,g.shuffle)(t);for(const l of t)this.set(l,i)}else{const t=i.slice(0);(0,g.shuffle)(t);for(const l of t)this.set(l[0],l[1])}}set(i,n){const t=this._iter.reset(i);let l;this._root||(this._root=new I,this._root.segment=t.value());const L=[];for(l=this._root;;){const $=t.cmp(l.segment);if($>0)l.left||(l.left=new I,l.left.segment=t.value()),L.push([-1,l]),l=l.left;else if($<0)l.right||(l.right=new I,l.right.segment=t.value()),L.push([1,l]),l=l.right;else if(t.hasNext())t.next(),l.mid||(l.mid=new I,l.mid.segment=t.value()),L.push([0,l]),l=l.mid;else break}const j=l.value;l.value=n,l.key=i;for(let $=L.length-1;$>=0;$--){const ne=L[$][1];ne.updateHeight();const le=ne.balanceFactor();if(le<-1||le>1){const ue=L[$][0],he=L[$+1][0];if(ue===1&&he===1)L[$][1]=ne.rotateLeft();else if(ue===-1&&he===-1)L[$][1]=ne.rotateRight();else if(ue===1&&he===-1)ne.right=L[$+1][1]=L[$+1][1].rotateRight(),L[$][1]=ne.rotateLeft();else if(ue===-1&&he===1)ne.left=L[$+1][1]=L[$+1][1].rotateLeft(),L[$][1]=ne.rotateRight();else throw new Error;if($>0)switch(L[$-1][0]){case-1:L[$-1][1].left=L[$][1];break;case 1:L[$-1][1].right=L[$][1];break;case 0:L[$-1][1].mid=L[$][1];break}else this._root=L[0][1]}}return j}get(i){return this._getNode(i)?.value}_getNode(i){const n=this._iter.reset(i);let t=this._root;for(;t;){const l=n.cmp(t.segment);if(l>0)t=t.left;else if(l<0)t=t.right;else if(n.hasNext())n.next(),t=t.mid;else break}return t}has(i){const n=this._getNode(i);return!(n?.value===void 0&&n?.mid===void 0)}delete(i){return this._delete(i,!1)}deleteSuperstr(i){return this._delete(i,!0)}_delete(i,n){const t=this._iter.reset(i),l=[];let L=this._root;for(;L;){const j=t.cmp(L.segment);if(j>0)l.push([-1,L]),L=L.left;else if(j<0)l.push([1,L]),L=L.right;else if(t.hasNext())t.next(),l.push([0,L]),L=L.mid;else break}if(!!L){if(n?(L.left=void 0,L.mid=void 0,L.right=void 0,L.height=1):(L.key=void 0,L.value=void 0),!L.mid&&!L.value)if(L.left&&L.right){const j=this._min(L.right),{key:$,value:ne,segment:le}=j;this._delete(j.key,!1),L.key=$,L.value=ne,L.segment=le}else{const j=L.left??L.right;if(l.length>0){const[$,ne]=l[l.length-1];switch($){case-1:ne.left=j;break;case 0:ne.mid=j;break;case 1:ne.right=j;break}}else this._root=j}for(let j=l.length-1;j>=0;j--){const $=l[j][1];$.updateHeight();const ne=$.balanceFactor();if(ne>1?($.right.balanceFactor()>=0||($.right=$.right.rotateRight()),l[j][1]=$.rotateLeft()):ne<-1&&($.left.balanceFactor()<=0||($.left=$.left.rotateLeft()),l[j][1]=$.rotateRight()),j>0)switch(l[j-1][0]){case-1:l[j-1][1].left=l[j][1];break;case 1:l[j-1][1].right=l[j][1];break;case 0:l[j-1][1].mid=l[j][1];break}else this._root=l[0][1]}}}_min(i){for(;i.left;)i=i.left;return i}findSubstr(i){const n=this._iter.reset(i);let t=this._root,l;for(;t;){const L=n.cmp(t.segment);if(L>0)t=t.left;else if(L<0)t=t.right;else if(n.hasNext())n.next(),l=t.value||l,t=t.mid;else break}return t&&t.value||l}findSuperstr(i){const n=this._iter.reset(i);let t=this._root;for(;t;){const l=n.cmp(t.segment);if(l>0)t=t.left;else if(l<0)t=t.right;else if(n.hasNext())n.next(),t=t.mid;else return t.mid?this._entries(t.mid):void 0}}forEach(i){for(const[n,t]of this)i(t,n)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(i){const n=[];return this._dfsEntries(i,n),n[Symbol.iterator]()}_dfsEntries(i,n){!i||(i.left&&this._dfsEntries(i.left,n),i.value&&n.push([i.key,i.value]),i.mid&&this._dfsEntries(i.mid,n),i.right&&this._dfsEntries(i.right,n))}_isBalanced(){const i=n=>{if(!n)return!0;const t=n.balanceFactor();return t<-1||t>1?!1:i(n.left)&&i(n.right)};return i(this._root)}}e.TernarySearchTree=N;class o{constructor(i,n){this.uri=i,this.value=n}}class u{constructor(i,n){this[y]="ResourceMap",i instanceof u?(this.map=new Map(i.map),this.toKey=n??u.defaultToKey):(this.map=new Map,this.toKey=i??u.defaultToKey)}set(i,n){return this.map.set(this.toKey(i),new o(i,n)),this}get(i){return this.map.get(this.toKey(i))?.value}has(i){return this.map.has(this.toKey(i))}get size(){return this.map.size}clear(){this.map.clear()}delete(i){return this.map.delete(this.toKey(i))}forEach(i,n){typeof n!="undefined"&&(i=i.bind(n));for(const[t,l]of this.map)i(l.value,l.uri,this)}*values(){for(const i of this.map.values())yield i.value}*keys(){for(const i of this.map.values())yield i.uri}*entries(){for(const i of this.map.values())yield[i.uri,i.value]}*[(y=Symbol.toStringTag,Symbol.iterator)](){for(const[,i]of this.map)yield[i.uri,i.value]}}e.ResourceMap=u,u.defaultToKey=s=>s.toString();class w{constructor(i,n){this[E]="ResourceSet",!i||typeof i=="function"?this._map=new u(i):(this._map=new u(n),i.forEach(this.add,this))}get size(){return this._map.size}add(i){return this._map.set(i,i),this}clear(){this._map.clear()}delete(i){return this._map.delete(i)}forEach(i,n){this._map.forEach((t,l)=>i.call(n,l,l,this))}has(i){return this._map.has(i)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(E=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}}e.ResourceSet=w;var v;(function(s){s[s.None=0]="None",s[s.AsOld=1]="AsOld",s[s.AsNew=2]="AsNew"})(v=e.Touch||(e.Touch={}));class d{constructor(){this[D]="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(i){return this._map.has(i)}get(i,n=0){const t=this._map.get(i);if(!!t)return n!==0&&this.touch(t,n),t.value}set(i,n,t=0){let l=this._map.get(i);if(l)l.value=n,t!==0&&this.touch(l,t);else{switch(l={key:i,value:n,next:void 0,previous:void 0},t){case 0:this.addItemLast(l);break;case 1:this.addItemFirst(l);break;case 2:this.addItemLast(l);break;default:this.addItemLast(l);break}this._map.set(i,l),this._size++}return this}delete(i){return!!this.remove(i)}remove(i){const n=this._map.get(i);if(!!n)return this._map.delete(i),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const i=this._head;return this._map.delete(i.key),this.removeItem(i),this._size--,i.value}forEach(i,n){const t=this._state;let l=this._head;for(;l;){if(n?i.bind(n)(l.value,l.key,this):i(l.value,l.key,this),this._state!==t)throw new Error("LinkedMap got modified during iteration.");l=l.next}}keys(){const i=this,n=this._state;let t=this._head;const l={[Symbol.iterator](){return l},next(){if(i._state!==n)throw new Error("LinkedMap got modified during iteration.");if(t){const L={value:t.key,done:!1};return t=t.next,L}else return{value:void 0,done:!0}}};return l}values(){const i=this,n=this._state;let t=this._head;const l={[Symbol.iterator](){return l},next(){if(i._state!==n)throw new Error("LinkedMap got modified during iteration.");if(t){const L={value:t.value,done:!1};return t=t.next,L}else return{value:void 0,done:!0}}};return l}entries(){const i=this,n=this._state;let t=this._head;const l={[Symbol.iterator](){return l},next(){if(i._state!==n)throw new Error("LinkedMap got modified during iteration.");if(t){const L={value:[t.key,t.value],done:!1};return t=t.next,L}else return{value:void 0,done:!0}}};return l}[(D=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(i){if(i>=this.size)return;if(i===0){this.clear();return}let n=this._head,t=this.size;for(;n&&t>i;)this._map.delete(n.key),n=n.next,t--;this._head=n,this._size=t,n&&(n.previous=void 0),this._state++}addItemFirst(i){if(!this._head&&!this._tail)this._tail=i;else if(this._head)i.next=this._head,this._head.previous=i;else throw new Error("Invalid list");this._head=i,this._state++}addItemLast(i){if(!this._head&&!this._tail)this._head=i;else if(this._tail)i.previous=this._tail,this._tail.next=i;else throw new Error("Invalid list");this._tail=i,this._state++}removeItem(i){if(i===this._head&&i===this._tail)this._head=void 0,this._tail=void 0;else if(i===this._head){if(!i.next)throw new Error("Invalid list");i.next.previous=void 0,this._head=i.next}else if(i===this._tail){if(!i.previous)throw new Error("Invalid list");i.previous.next=void 0,this._tail=i.previous}else{const n=i.next,t=i.previous;if(!n||!t)throw new Error("Invalid list");n.previous=t,t.next=n}i.next=void 0,i.previous=void 0,this._state++}touch(i,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(i===this._head)return;const t=i.next,l=i.previous;i===this._tail?(l.next=void 0,this._tail=l):(t.previous=l,l.next=t),i.previous=void 0,i.next=this._head,this._head.previous=i,this._head=i,this._state++}else if(n===2){if(i===this._tail)return;const t=i.next,l=i.previous;i===this._head?(t.previous=void 0,this._head=t):(t.previous=l,l.next=t),i.next=void 0,i.previous=this._tail,this._tail.next=i,this._tail=i,this._state++}}}toJSON(){const i=[];return this.forEach((n,t)=>{i.push([t,n])}),i}fromJSON(i){this.clear();for(const[n,t]of i)this.set(n,t)}}e.LinkedMap=d;class r extends d{constructor(i,n=1){super();this._limit=i,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(i){this._limit=i,this.checkTrim()}get ratio(){return this._ratio}set ratio(i){this._ratio=Math.min(Math.max(0,i),1),this.checkTrim()}get(i,n=2){return super.get(i,n)}peek(i){return super.get(i,0)}set(i,n){return super.set(i,n,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}e.LRUCache=r;class c{constructor(i){_.set(this,void 0),Ue(this,_,i,"f")}get size(){return De(this,_,"f").size}forEach(i,n){De(this,_,"f").forEach(i,n)}get(i){return De(this,_,"f").get(i)}has(i){return De(this,_,"f").has(i)}entries(){return De(this,_,"f").entries()}keys(){return De(this,_,"f").keys()}values(){return De(this,_,"f").values()}[(_=new WeakMap,Symbol.iterator)](){return De(this,_,"f").entries()}}e.ReadonlyMapView=c}),define(se[41],ae([0,1,30]),function(Y,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeAccents=e.normalizeNFD=e.normalizeNFC=void 0;const P=new g.LRUCache(1e4);function y(f){return m(f,"NFC",P)}e.normalizeNFC=y;const E=new g.LRUCache(1e4);function D(f){return m(f,"NFD",E)}e.normalizeNFD=D;const _=/[^\u0000-\u0080]/;function m(f,b,C){if(!f)return f;const A=C.get(f);if(A)return A;let p;return _.test(f)?p=f.normalize(b):p=f,C.set(f,p),p}e.removeAccents=function(){const f=/[\u0300-\u036f]/g;return function(b){return D(b).replace(f,"")}}()}),define(se[12],ae([0,1]),function(Y,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.isTypedArray=e.isObject=e.isStringArray=e.isString=e.isArray=void 0;function g(n){return Array.isArray(n)}e.isArray=g;function P(n){return typeof n=="string"}e.isString=P;function y(n){return Array.isArray(n)&&n.every(t=>P(t))}e.isStringArray=y;function E(n){return typeof n=="object"&&n!==null&&!Array.isArray(n)&&!(n instanceof RegExp)&&!(n instanceof Date)}e.isObject=E;function D(n){const t=Object.getPrototypeOf(Uint8Array);return typeof n=="object"&&n instanceof t}e.isTypedArray=D;function _(n){return typeof n=="number"&&!isNaN(n)}e.isNumber=_;function m(n){return!!n&&typeof n[Symbol.iterator]=="function"}e.isIterable=m;function f(n){return n===!0||n===!1}e.isBoolean=f;function b(n){return typeof n=="undefined"}e.isUndefined=b;function C(n){return!A(n)}e.isDefined=C;function A(n){return b(n)||n===null}e.isUndefinedOrNull=A;function p(n,t){if(!n)throw new Error(t?`Unexpected type, expected '${t}'`:"Unexpected type")}e.assertType=p;function a(n){if(A(n))throw new Error("Assertion Failed: argument is undefined or null");return n}e.assertIsDefined=a;function h(...n){const t=[];for(let l=0;l<n.length;l++){const L=n[l];if(A(L))throw new Error(`Assertion Failed: argument at index ${l} is undefined or null`);t.push(L)}return t}e.assertAllDefined=h;const I=Object.prototype.hasOwnProperty;function T(n){if(!E(n))return!1;for(const t in n)if(I.call(n,t))return!1;return!0}e.isEmptyObject=T;function N(n){return typeof n=="function"}e.isFunction=N;function o(...n){return n.length>0&&n.every(N)}e.areFunctions=o;function u(n,t){const l=Math.min(n.length,t.length);for(let L=0;L<l;L++)w(n[L],t[L])}e.validateConstraints=u;function w(n,t){if(P(t)){if(typeof n!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(N(t)){try{if(n instanceof t)return}catch{}if(!A(n)&&n.constructor===t||t.length===1&&t.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=w;function v(n){let t=[],l=Object.getPrototypeOf(n);for(;Object.prototype!==l;)t=t.concat(Object.getOwnPropertyNames(l)),l=Object.getPrototypeOf(l);return t}e.getAllPropertyNames=v;function d(n){const t=[];for(const l of v(n))typeof n[l]=="function"&&t.push(l);return t}e.getAllMethodNames=d;function r(n,t){const l=j=>function(){const $=Array.prototype.slice.call(arguments,0);return t(j,$)},L={};for(const j of n)L[j]=l(j);return L}e.createProxyObject=r;function c(n){return n===null?void 0:n}e.withNullAsUndefined=c;function s(n){return typeof n=="undefined"?null:n}e.withUndefinedAsNull=s;function i(n,t="Unreachable"){throw new Error(t)}e.assertNever=i}),define(se[24],ae([0,1,5,2,11,12]),function(Y,e,g,P,y,E){"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(s){return s===47||s===92}e.isPathSeparator=D;function _(s){return s.replace(/[\\/]/g,g.posix.sep)}e.toSlashes=_;function m(s){return s.indexOf("/")===-1&&(s=_(s)),/^[a-zA-Z]:(\/|$)/.test(s)&&(s="/"+s),s}e.toPosixPath=m;function f(s,i=g.posix.sep){if(!s)return"";const n=s.length,t=s.charCodeAt(0);if(D(t)){if(D(s.charCodeAt(1))&&!D(s.charCodeAt(2))){let L=3;const j=L;for(;L<n&&!D(s.charCodeAt(L));L++);if(j!==L&&!D(s.charCodeAt(L+1))){for(L+=1;L<n;L++)if(D(s.charCodeAt(L)))return s.slice(0,L+1).replace(/[\\/]/g,i)}}return i}else if(T(t)&&s.charCodeAt(1)===58)return D(s.charCodeAt(2))?s.slice(0,2)+i:s.slice(0,2);let l=s.indexOf("://");if(l!==-1){for(l+=3;l<n;l++)if(D(s.charCodeAt(l)))return s.slice(0,l+1)}return""}e.getRoot=f;function b(s){if(!P.isWindows||!s||s.length<5)return!1;let i=s.charCodeAt(0);if(i!==92||(i=s.charCodeAt(1),i!==92))return!1;let n=2;const t=n;for(;n<s.length&&(i=s.charCodeAt(n),i!==92);n++);return!(t===n||(i=s.charCodeAt(n+1),isNaN(i)||i===92))}e.isUNC=b;const C=/[\\/:\*\?"<>\|]/g,A=/[\\/]/g,p=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])(\.(.*?))?$/i;function a(s,i=P.isWindows){const n=i?C:A;return!(!s||s.length===0||/^\s+$/.test(s)||(n.lastIndex=0,n.test(s))||i&&p.test(s)||s==="."||s===".."||i&&s[s.length-1]==="."||i&&s.length!==s.trim().length||s.length>255)}e.isValidBasename=a;function h(s,i,n){const t=s===i;return!n||t?t:!s||!i?!1:(0,y.equalsIgnoreCase)(s,i)}e.isEqual=h;function I(s,i,n,t=g.sep){if(s===i)return!0;if(!s||!i||i.length>s.length)return!1;if(n){if(!(0,y.startsWithIgnoreCase)(s,i))return!1;if(i.length===s.length)return!0;let L=i.length;return i.charAt(i.length-1)===t&&L--,s.charAt(L)===t}return i.charAt(i.length-1)!==t&&(i+=t),s.indexOf(i)===0}e.isEqualOrParent=I;function T(s){return s>=65&&s<=90||s>=97&&s<=122}e.isWindowsDriveLetter=T;function N(s,i){return P.isWindows&&s.endsWith(":")&&(s+=g.sep),(0,g.isAbsolute)(s)||(s=(0,g.join)(i,s)),s=(0,g.normalize)(s),P.isWindows?(s=(0,y.rtrim)(s,g.sep),s.endsWith(":")&&(s+=g.sep)):(s=(0,y.rtrim)(s,g.sep),s||(s=g.sep)),s}e.sanitizeFilePath=N;function o(s){const i=(0,g.normalize)(s);return P.isWindows?s.length>3?!1:u(i)&&(s.length===2||i.charCodeAt(2)===92):i===g.posix.sep}e.isRootOrDriveLetter=o;function u(s,i=P.isWindows){return i?T(s.charCodeAt(0))&&s.charCodeAt(1)===58:!1}e.hasDriveLetter=u;function w(s){return u(s)?s[0]:void 0}e.getDriveLetter=w;function v(s,i,n){return i.length>s.length?-1:s===i?0:(n&&(s=s.toLowerCase(),i=i.toLowerCase()),s.indexOf(i))}e.indexOfPath=v;function d(s){const i=s.split(":");let n,t,l;for(const L of i){const j=Number(L);(0,E.isNumber)(j)?t===void 0?t=j:l===void 0&&(l=j):n=n?[n,L].join(":"):L}if(!n)throw new Error("Format for `--goto` should be: `FILE:LINE(:COLUMN)`");return{path:n,line:t!==void 0?t:void 0,column:l!==void 0?l:t!==void 0?1:void 0}}e.parseLineAndColumnAware=d;const r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function c(s,i,n=8){let t="";for(let L=0;L<n;L++)t+=r.charAt(Math.floor(Math.random()*r.length));let l;return i?l=`${i}-${t}`:l=t,s?(0,g.join)(s,l):l}e.randomPath=c}),define(se[25],ae([0,1,12]),function(Y,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.filter=e.getCaseInsensitive=e.distinct=e.safeStringify=e.equals=e.mixin=e.cloneAndChange=e.deepFreeze=e.deepClone=void 0;function P(a){if(!a||typeof a!="object"||a instanceof RegExp)return a;const h=Array.isArray(a)?[]:{};return Object.keys(a).forEach(I=>{a[I]&&typeof a[I]=="object"?h[I]=P(a[I]):h[I]=a[I]}),h}e.deepClone=P;function y(a){if(!a||typeof a!="object")return a;const h=[a];for(;h.length>0;){const I=h.shift();Object.freeze(I);for(const T in I)if(E.call(I,T)){const N=I[T];typeof N=="object"&&!Object.isFrozen(N)&&!(0,g.isTypedArray)(N)&&h.push(N)}}return a}e.deepFreeze=y;const E=Object.prototype.hasOwnProperty;function D(a,h){return _(a,h,new Set)}e.cloneAndChange=D;function _(a,h,I){if((0,g.isUndefinedOrNull)(a))return a;const T=h(a);if(typeof T!="undefined")return T;if((0,g.isArray)(a)){const N=[];for(const o of a)N.push(_(o,h,I));return N}if((0,g.isObject)(a)){if(I.has(a))throw new Error("Cannot clone recursive data-structure");I.add(a);const N={};for(const o in a)E.call(a,o)&&(N[o]=_(a[o],h,I));return I.delete(a),N}return a}function m(a,h,I=!0){return(0,g.isObject)(a)?((0,g.isObject)(h)&&Object.keys(h).forEach(T=>{T in a?I&&((0,g.isObject)(a[T])&&(0,g.isObject)(h[T])?m(a[T],h[T],I):a[T]=h[T]):a[T]=h[T]}),a):h}e.mixin=m;function f(a,h){if(a===h)return!0;if(a==null||h===null||h===void 0||typeof a!=typeof h||typeof a!="object"||Array.isArray(a)!==Array.isArray(h))return!1;let I,T;if(Array.isArray(a)){if(a.length!==h.length)return!1;for(I=0;I<a.length;I++)if(!f(a[I],h[I]))return!1}else{const N=[];for(T in a)N.push(T);N.sort();const o=[];for(T in h)o.push(T);if(o.sort(),!f(N,o))return!1;for(I=0;I<N.length;I++)if(!f(a[N[I]],h[N[I]]))return!1}return!0}e.equals=f;function b(a){const h=new Set;return JSON.stringify(a,(I,T)=>{if((0,g.isObject)(T)||Array.isArray(T)){if(h.has(T))return"[Circular]";h.add(T)}return T})}e.safeStringify=b;function C(a,h){const I=Object.create(null);return!a||!h||Object.keys(h).forEach(N=>{const o=a[N],u=h[N];f(o,u)||(I[N]=u)}),I}e.distinct=C;function A(a,h){const I=h.toLowerCase(),T=Object.keys(a).find(N=>N.toLowerCase()===I);return T?a[T]:a[h]}e.getCaseInsensitive=A;function p(a,h){const I=Object.create(null);for(const[T,N]of Object.entries(a))h(T,N)&&(I[T]=N);return I}e.filter=p}),define(se[6],ae([0,1,5,2]),function(Y,e,g,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uriToFsPath=e.URI=void 0;const y=/^\w[\w\d+.-]*$/,E=/^\//,D=/^\/\//;function _(r,c){if(!r.scheme&&c)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${r.authority}", path: "${r.path}", query: "${r.query}", fragment: "${r.fragment}"}`);if(r.scheme&&!y.test(r.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(r.path){if(r.authority){if(!E.test(r.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(r.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function m(r,c){return!r&&!c?"file":r}function f(r,c){switch(r){case"https":case"http":case"file":c?c[0]!==C&&(c=C+c):c=C;break}return c}const b="",C="/",A=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class p{constructor(c,s,i,n,t,l=!1){typeof c=="object"?(this.scheme=c.scheme||b,this.authority=c.authority||b,this.path=c.path||b,this.query=c.query||b,this.fragment=c.fragment||b):(this.scheme=m(c,l),this.authority=s||b,this.path=f(this.scheme,i||b),this.query=n||b,this.fragment=t||b,_(this,l))}static isUri(c){return c instanceof p?!0:c?typeof c.authority=="string"&&typeof c.fragment=="string"&&typeof c.path=="string"&&typeof c.query=="string"&&typeof c.scheme=="string"&&typeof c.fsPath=="string"&&typeof c.with=="function"&&typeof c.toString=="function":!1}get fsPath(){return o(this,!1)}with(c){if(!c)return this;let{scheme:s,authority:i,path:n,query:t,fragment:l}=c;return s===void 0?s=this.scheme:s===null&&(s=b),i===void 0?i=this.authority:i===null&&(i=b),n===void 0?n=this.path:n===null&&(n=b),t===void 0?t=this.query:t===null&&(t=b),l===void 0?l=this.fragment:l===null&&(l=b),s===this.scheme&&i===this.authority&&n===this.path&&t===this.query&&l===this.fragment?this:new h(s,i,n,t,l)}static parse(c,s=!1){const i=A.exec(c);return i?new h(i[2]||b,d(i[4]||b),d(i[5]||b),d(i[7]||b),d(i[9]||b),s):new h(b,b,b,b,b)}static file(c){let s=b;if(P.isWindows&&(c=c.replace(/\\/g,C)),c[0]===C&&c[1]===C){const i=c.indexOf(C,2);i===-1?(s=c.substring(2),c=C):(s=c.substring(2,i),c=c.substring(i)||C)}return new h("file",s,c,b,b)}static from(c){const s=new h(c.scheme,c.authority,c.path,c.query,c.fragment);return _(s,!0),s}static joinPath(c,...s){if(!c.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let i;return P.isWindows&&c.scheme==="file"?i=p.file(g.win32.join(o(c,!0),...s)).path:i=g.posix.join(c.path,...s),c.with({path:i})}toString(c=!1){return u(this,c)}toJSON(){return this}static revive(c){if(c){if(c instanceof p)return c;{const s=new h(c);return s._formatted=c.external,s._fsPath=c._sep===a?c.fsPath:null,s}}else return c}}e.URI=p;const a=P.isWindows?1:void 0;class h extends p{constructor(){super(...arguments);this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=o(this,!1)),this._fsPath}toString(c=!1){return c?u(this,!0):(this._formatted||(this._formatted=u(this,!1)),this._formatted)}toJSON(){const c={$mid:1};return this._fsPath&&(c.fsPath=this._fsPath,c._sep=a),this._formatted&&(c.external=this._formatted),this.path&&(c.path=this.path),this.scheme&&(c.scheme=this.scheme),this.authority&&(c.authority=this.authority),this.query&&(c.query=this.query),this.fragment&&(c.fragment=this.fragment),c}}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 T(r,c){let s,i=-1;for(let n=0;n<r.length;n++){const t=r.charCodeAt(n);if(t>=97&&t<=122||t>=65&&t<=90||t>=48&&t<=57||t===45||t===46||t===95||t===126||c&&t===47)i!==-1&&(s+=encodeURIComponent(r.substring(i,n)),i=-1),s!==void 0&&(s+=r.charAt(n));else{s===void 0&&(s=r.substr(0,n));const l=I[t];l!==void 0?(i!==-1&&(s+=encodeURIComponent(r.substring(i,n)),i=-1),s+=l):i===-1&&(i=n)}}return i!==-1&&(s+=encodeURIComponent(r.substring(i))),s!==void 0?s:r}function N(r){let c;for(let s=0;s<r.length;s++){const i=r.charCodeAt(s);i===35||i===63?(c===void 0&&(c=r.substr(0,s)),c+=I[i]):c!==void 0&&(c+=r[s])}return c!==void 0?c:r}function o(r,c){let s;return r.authority&&r.path.length>1&&r.scheme==="file"?s=`//${r.authority}${r.path}`:r.path.charCodeAt(0)===47&&(r.path.charCodeAt(1)>=65&&r.path.charCodeAt(1)<=90||r.path.charCodeAt(1)>=97&&r.path.charCodeAt(1)<=122)&&r.path.charCodeAt(2)===58?c?s=r.path.substr(1):s=r.path[1].toLowerCase()+r.path.substr(2):s=r.path,P.isWindows&&(s=s.replace(/\//g,"\\")),s}e.uriToFsPath=o;function u(r,c){const s=c?N:T;let i="",{scheme:n,authority:t,path:l,query:L,fragment:j}=r;if(n&&(i+=n,i+=":"),(t||n==="file")&&(i+=C,i+=C),t){let $=t.indexOf("@");if($!==-1){const ne=t.substr(0,$);t=t.substr($+1),$=ne.indexOf(":"),$===-1?i+=s(ne,!1):(i+=s(ne.substr(0,$),!1),i+=":",i+=s(ne.substr($+1),!1)),i+="@"}t=t.toLowerCase(),$=t.indexOf(":"),$===-1?i+=s(t,!1):(i+=s(t.substr(0,$),!1),i+=t.substr($))}if(l){if(l.length>=3&&l.charCodeAt(0)===47&&l.charCodeAt(2)===58){const $=l.charCodeAt(1);$>=65&&$<=90&&(l=`/${String.fromCharCode($+32)}:${l.substr(3)}`)}else if(l.length>=2&&l.charCodeAt(1)===58){const $=l.charCodeAt(0);$>=65&&$<=90&&(l=`${String.fromCharCode($+32)}:${l.substr(2)}`)}i+=s(l,!0)}return L&&(i+="?",i+=s(L,!1)),j&&(i+="#",i+=c?j:T(j,!1)),i}function w(r){try{return decodeURIComponent(r)}catch{return r.length>3?r.substr(0,3)+w(r.substr(3)):r}}const v=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function d(r){return r.match(v)?r.replace(v,c=>w(c)):r}}),define(se[42],ae([0,1,6]),function(Y,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.log=e.getFirstFrame=e.parse=e.isRemoteConsoleLog=void 0;function P(f){const b=f;return b&&typeof b.type=="string"&&typeof b.severity=="string"}e.isRemoteConsoleLog=P;function y(f){const b=[];let C;try{const A=JSON.parse(f.arguments),p=A[A.length-1];p&&p.__$stack&&(A.pop(),C=p.__$stack),b.push(...A)}catch{b.push("Unable to log remote console arguments",f.arguments)}return{args:b,stack:C}}e.parse=y;function E(f){if(typeof f!="string")return E(y(f).stack);const b=f;if(b){const C=D(b),A=/at [^\/]*((?:(?:[a-zA-Z]+:)|(?:[\/])|(?:\\\\))(?:.+)):(\d+):(\d+)/.exec(C||"");if(A&&A.length===4)return{uri:g.URI.file(A[1]),line:Number(A[2]),column:Number(A[3])}}}e.getFirstFrame=E;function D(f){if(!f)return f;const b=f.indexOf(`
`);return b===-1?f:f.substring(0,b)}function _(f,b){const{args:C,stack:A}=y(f),p=typeof C[0]=="string"&&C.length===1;let a=D(A);a&&(a=`(${a.trim()})`);let h=[];if(typeof C[0]=="string"?a&&p?h=[`%c[${b}] %c${C[0]} %c${a}`,m("blue"),m(""),m("grey")]:h=[`%c[${b}] %c${C[0]}`,m("blue"),m(""),...C.slice(1)]:h=[`%c[${b}]%`,m("blue"),...C],a&&!p&&h.push(a),typeof console[f.severity]!="function")throw new Error("Unknown console method");console[f.severity].apply(console,h)}e.log=_;function m(f){return`color: ${f}`}}),define(se[43],ae([0,1,23,11,6]),function(Y,e,g,P,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.revive=e.parse=e.stringify=void 0;function E(f){return JSON.stringify(f,_)}e.stringify=E;function D(f){let b=JSON.parse(f);return b=m(b),b}e.parse=D;function _(f,b){return b instanceof RegExp?{$mid:2,source:b.source,flags:(0,P.regExpFlags)(b)}:b}function m(f,b=0){if(!f||b>200)return f;if(typeof f=="object"){switch(f.$mid){case 1:return y.URI.revive(f);case 2:return new RegExp(f.source,f.flags);case 14:return new Date(f.source)}if(f instanceof g.VSBuffer||f instanceof Uint8Array)return f;if(Array.isArray(f))for(let C=0;C<f.length;++C)f[C]=m(f[C],b+1);else for(const C in f)Object.hasOwnProperty.call(f,C)&&(f[C]=m(f[C],b+1))}return f}e.revive=m}),define(se[8],ae([0,1,2,6]),function(Y,e,g,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileAccess=e.RemoteAuthorities=e.connectionTokenQueryName=e.connectionTokenCookieName=e.Schemas=void 0;var y;(function(_){_.inMemory="inmemory",_.vscode="vscode",_.internal="private",_.walkThrough="walkThrough",_.walkThroughSnippet="walkThroughSnippet",_.http="http",_.https="https",_.file="file",_.mailto="mailto",_.untitled="untitled",_.data="data",_.command="command",_.vscodeRemote="vscode-remote",_.vscodeRemoteResource="vscode-remote-resource",_.vscodeUserData="vscode-userdata",_.vscodeCustomEditor="vscode-custom-editor",_.vscodeNotebook="vscode-notebook",_.vscodeNotebookCell="vscode-notebook-cell",_.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",_.vscodeNotebookCellOutput="vscode-notebook-cell-output",_.vscodeInteractive="vscode-interactive",_.vscodeInteractiveInput="vscode-interactive-input",_.vscodeSettings="vscode-settings",_.vscodeWorkspaceTrust="vscode-workspace-trust",_.vscodeTerminal="vscode-terminal",_.webviewPanel="webview-panel",_.vscodeWebview="vscode-webview",_.extension="extension",_.vscodeFileResource="vscode-file",_.tmp="tmp",_.vsls="vsls",_.vscodeSourceControl="vscode-scm"})(y=e.Schemas||(e.Schemas={})),e.connectionTokenCookieName="vscode-tkn",e.connectionTokenQueryName="tkn";class E{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._remoteResourcesPath=`/${y.vscodeRemoteResource}`}setPreferredWebSchema(m){this._preferredWebSchema=m}setDelegate(m){this._delegate=m}setServerRootPath(m){this._remoteResourcesPath=`${m}/${y.vscodeRemoteResource}`}set(m,f,b){this._hosts[m]=f,this._ports[m]=b}setConnectionToken(m,f){this._connectionTokens[m]=f}getPreferredWebSchema(){return this._preferredWebSchema}rewrite(m){if(this._delegate)return this._delegate(m);const f=m.authority;let b=this._hosts[f];b&&b.indexOf(":")!==-1&&(b=`[${b}]`);const C=this._ports[f],A=this._connectionTokens[f];let p=`path=${encodeURIComponent(m.path)}`;return typeof A=="string"&&(p+=`&${e.connectionTokenQueryName}=${encodeURIComponent(A)}`),P.URI.from({scheme:g.isWeb?this._preferredWebSchema:y.vscodeRemoteResource,authority:`${b}:${C}`,path:g.isWeb?(window.location.pathname+"/"+this._remoteResourcesPath).replace(/\/\/+/g,"/"):this._remoteResourcesPath,query:p})}}e.RemoteAuthorities=new E;class D{asBrowserUri(m,f){const b=this.toUri(m,f);return b.scheme===y.vscodeRemote?e.RemoteAuthorities.rewrite(b):b.scheme===y.file&&(g.isNative||g.isWebWorker&&g.globals.origin===`${y.vscodeFileResource}://${D.FALLBACK_AUTHORITY}`)?b.with({scheme:y.vscodeFileResource,authority:b.authority||D.FALLBACK_AUTHORITY,query:null,fragment:null}):b}asFileUri(m,f){const b=this.toUri(m,f);return b.scheme===y.vscodeFileResource?b.with({scheme:y.file,authority:b.authority!==D.FALLBACK_AUTHORITY?b.authority:null,query:null,fragment:null}):b}toUri(m,f){return P.URI.isUri(m)?m:P.URI.parse(f.toUrl(m))}}D.FALLBACK_AUTHORITY="vscode-app",e.FileAccess=new D}),define(se[19],ae([0,1,24,8,5,2,11,6]),function(Y,e,g,P,y,E,D,_){"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 m(p){return(0,_.uriToFsPath)(p,!0)}e.originalFSPath=m;class f{constructor(a){this._ignorePathCasing=a}compare(a,h,I=!1){return a===h?0:(0,D.compare)(this.getComparisonKey(a,I),this.getComparisonKey(h,I))}isEqual(a,h,I=!1){return a===h?!0:!a||!h?!1:this.getComparisonKey(a,I)===this.getComparisonKey(h,I)}getComparisonKey(a,h=!1){return a.with({path:this._ignorePathCasing(a)?a.path.toLowerCase():void 0,fragment:h?null:void 0}).toString()}ignorePathCasing(a){return this._ignorePathCasing(a)}isEqualOrParent(a,h,I=!1){if(a.scheme===h.scheme){if(a.scheme===P.Schemas.file)return g.isEqualOrParent(m(a),m(h),this._ignorePathCasing(a))&&a.query===h.query&&(I||a.fragment===h.fragment);if((0,e.isEqualAuthority)(a.authority,h.authority))return g.isEqualOrParent(a.path,h.path,this._ignorePathCasing(a),"/")&&a.query===h.query&&(I||a.fragment===h.fragment)}return!1}joinPath(a,...h){return _.URI.joinPath(a,...h)}basenameOrAuthority(a){return(0,e.basename)(a)||a.authority}basename(a){return y.posix.basename(a.path)}extname(a){return y.posix.extname(a.path)}dirname(a){if(a.path.length===0)return a;let h;return a.scheme===P.Schemas.file?h=_.URI.file(y.dirname(m(a))).path:(h=y.posix.dirname(a.path),a.authority&&h.length&&h.charCodeAt(0)!==47&&(console.error(`dirname("${a.toString})) resulted in a relative path`),h="/")),a.with({path:h})}normalizePath(a){if(!a.path.length)return a;let h;return a.scheme===P.Schemas.file?h=_.URI.file(y.normalize(m(a))).path:h=y.posix.normalize(a.path),a.with({path:h})}relativePath(a,h){if(a.scheme!==h.scheme||!(0,e.isEqualAuthority)(a.authority,h.authority))return;if(a.scheme===P.Schemas.file){const N=y.relative(m(a),m(h));return E.isWindows?g.toSlashes(N):N}let I=a.path||"/";const T=h.path||"/";if(this._ignorePathCasing(a)){let N=0;for(const o=Math.min(I.length,T.length);N<o&&!(I.charCodeAt(N)!==T.charCodeAt(N)&&I.charAt(N).toLowerCase()!==T.charAt(N).toLowerCase());N++);I=T.substr(0,N)+I.substr(N)}return y.posix.relative(I,T)}resolvePath(a,h){if(a.scheme===P.Schemas.file){const I=_.URI.file(y.resolve(m(a),h));return a.with({authority:I.authority,path:I.path})}return h=g.toPosixPath(h),a.with({path:y.posix.resolve(a.path,h)})}isAbsolutePath(a){return!!a.path&&a.path[0]==="/"}isEqualAuthority(a,h){return a===h||a!==void 0&&h!==void 0&&(0,D.equalsIgnoreCase)(a,h)}hasTrailingPathSeparator(a,h=y.sep){if(a.scheme===P.Schemas.file){const I=m(a);return I.length>g.getRoot(I).length&&I[I.length-1]===h}else{const I=a.path;return I.length>1&&I.charCodeAt(I.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(a.fsPath)}}removeTrailingPathSeparator(a,h=y.sep){return(0,e.hasTrailingPathSeparator)(a,h)?a.with({path:a.path.substr(0,a.path.length-1)}):a}addTrailingPathSeparator(a,h=y.sep){let I=!1;if(a.scheme===P.Schemas.file){const T=m(a);I=T!==void 0&&T.length===g.getRoot(T).length&&T[T.length-1]===h}else{h="/";const T=a.path;I=T.length===1&&T.charCodeAt(T.length-1)===47}return!I&&!(0,e.hasTrailingPathSeparator)(a,h)?a.with({path:a.path+"/"}):a}}e.ExtUri=f,e.extUri=new f(()=>!1),e.extUriBiasedIgnorePathCase=new f(p=>p.scheme===P.Schemas.file?!E.isLinux:!0),e.extUriIgnorePathCase=new f(p=>!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 b(p,a){const h=[];for(let I=0;I<p.length;I++){const T=a(p[I]);p.some((N,o)=>o===I?!1:(0,e.isEqualOrParent)(T,a(N)))||h.push(p[I])}return h}e.distinctParents=b;var C;(function(p){p.META_DATA_LABEL="label",p.META_DATA_DESCRIPTION="description",p.META_DATA_SIZE="size",p.META_DATA_MIME="mime";function a(h){const I=new Map;h.path.substring(h.path.indexOf(";")+1,h.path.lastIndexOf(";")).split(";").forEach(o=>{const[u,w]=o.split(":");u&&w&&I.set(u,w)});const N=h.path.substring(0,h.path.indexOf(";"));return N&&I.set(p.META_DATA_MIME,N),I}p.parseMetaData=a})(C=e.DataUri||(e.DataUri={}));function A(p,a,h){if(a){let I=p.path;return I&&I[0]!==y.posix.sep&&(I=y.posix.sep+I),p.with({scheme:h,authority:a,path:I})}return p.with({scheme:h})}e.toLocalResource=A}),define(se[7],ae([0,1,18,10,3,4,19,2]),function(Y,e,g,P,y,E,D,_){"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 m(J){return!!J&&typeof J.then=="function"}e.isThenable=m;function f(J){const k=new g.CancellationTokenSource,z=J(k.token),W=new Promise((G,Q)=>{const R=k.token.onCancellationRequested(()=>{R.dispose(),k.dispose(),Q(new P.CancellationError)});Promise.resolve(z).then(F=>{R.dispose(),k.dispose(),G(F)},F=>{R.dispose(),k.dispose(),Q(F)})});return new class{cancel(){k.cancel()}then(G,Q){return W.then(G,Q)}catch(G){return this.then(void 0,G)}finally(G){return W.finally(G)}}}e.createCancelablePromise=f;function b(J,k,z){return new Promise((W,G)=>{const Q=k.onCancellationRequested(()=>{Q.dispose(),W(z)});J.then(W,G).finally(()=>Q.dispose())})}e.raceCancellation=b;function C(J,k){return new Promise((z,W)=>{const G=k.onCancellationRequested(()=>{G.dispose(),W(new P.CancellationError)});J.then(z,W).finally(()=>G.dispose())})}e.raceCancellationError=C;async function A(J){let k=-1;const z=J.map((G,Q)=>G.then(R=>(k=Q,R))),W=await Promise.race(z);return J.forEach((G,Q)=>{Q!==k&&G.cancel()}),W}e.raceCancellablePromises=A;function p(J,k,z){let W;const G=setTimeout(()=>{W?.(void 0),z?.()},k);return Promise.race([J.finally(()=>clearTimeout(G)),new Promise(Q=>W=Q)])}e.raceTimeout=p;function a(J){return new Promise((k,z)=>{const W=J();m(W)?W.then(k,z):k(W)})}e.asPromise=a;class h{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(k){if(this.activePromise){if(this.queuedPromiseFactory=k,!this.queuedPromise){const z=()=>{this.queuedPromise=null;const W=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,W};this.queuedPromise=new Promise(W=>{this.activePromise.then(z,z).then(W)})}return new Promise((z,W)=>{this.queuedPromise.then(z,W)})}return this.activePromise=k(),new Promise((z,W)=>{this.activePromise.then(G=>{this.activePromise=null,z(G)},G=>{this.activePromise=null,W(G)})})}}e.Throttler=h;class I{constructor(){this.current=Promise.resolve(null)}queue(k){return this.current=this.current.then(()=>k(),()=>k())}}e.Sequencer=I;class T{constructor(){this.promiseMap=new Map}queue(k,z){const G=(this.promiseMap.get(k)??Promise.resolve()).catch(()=>{}).then(z).finally(()=>{this.promiseMap.get(k)===G&&this.promiseMap.delete(k)});return this.promiseMap.set(k,G),G}}e.SequencerByKey=T;const N=(J,k)=>{let z=!0;const W=setTimeout(()=>{z=!1,k()},J);return{isTriggered:()=>z,dispose:()=>{clearTimeout(W),z=!1}}},o=J=>{let k=!0;return queueMicrotask(()=>{k&&(k=!1,J())}),{isTriggered:()=>k,dispose:()=>{k=!1}}};e.MicrotaskDelay=Symbol("MicrotaskDelay");class u{constructor(k){this.defaultDelay=k,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(k,z=this.defaultDelay){this.task=k,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((G,Q)=>{this.doResolve=G,this.doReject=Q}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const G=this.task;return this.task=null,G()}}));const W=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=z===e.MicrotaskDelay?o(W):N(z,W),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new P.CancellationError),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}e.Delayer=u;class w{constructor(k){this.delayer=new u(k),this.throttler=new h}trigger(k,z){return this.delayer.trigger(()=>this.throttler.queue(k),z)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}}e.ThrottledDelayer=w;class v{constructor(){this._isOpen=!1,this._promise=new Promise((k,z)=>{this._completePromise=k})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}}e.Barrier=v;class d extends v{constructor(k){super();this._timeout=setTimeout(()=>this.open(),k)}open(){clearTimeout(this._timeout),super.open()}}e.AutoOpenBarrier=d;function r(J,k){return k?new Promise((z,W)=>{const G=setTimeout(()=>{Q.dispose(),z()},J),Q=k.onCancellationRequested(()=>{clearTimeout(G),Q.dispose(),W(new P.CancellationError)})}):f(z=>r(J,z))}e.timeout=r;function c(J,k=0){const z=setTimeout(J,k);return(0,E.toDisposable)(()=>clearTimeout(z))}e.disposableTimeout=c;function s(J){const k=[];let z=0;const W=J.length;function G(){return z<W?J[z++]():null}function Q(R){R!=null&&k.push(R);const F=G();return F?F.then(Q):Promise.resolve(k)}return Promise.resolve(null).then(Q)}e.sequence=s;function i(J,k=W=>!!W,z=null){let W=0;const G=J.length,Q=()=>{if(W>=G)return Promise.resolve(z);const R=J[W++];return Promise.resolve(R()).then(B=>k(B)?Promise.resolve(B):Q())};return Q()}e.first=i;function n(J,k=W=>!!W,z=null){if(J.length===0)return Promise.resolve(z);let W=J.length;const G=()=>{W=-1;for(const Q of J)Q.cancel?.()};return new Promise((Q,R)=>{for(const F of J)F.then(B=>{--W>=0&&k(B)?(G(),Q(B)):W===0&&Q(z)}).catch(B=>{--W>=0&&(G(),R(B))})})}e.firstParallel=n;class t{constructor(k){this._size=0,this.maxDegreeOfParalellism=k,this.outstandingPromises=[],this.runningPromises=0,this._onDrained=new y.Emitter}get onDrained(){return this._onDrained.event}get size(){return this._size}queue(k){return this._size++,new Promise((z,W)=>{this.outstandingPromises.push({factory:k,c:z,e:W}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){const k=this.outstandingPromises.shift();this.runningPromises++;const z=k.factory();z.then(k.c,k.e),z.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onDrained.fire()}dispose(){this._onDrained.dispose()}}e.Limiter=t;class l extends t{constructor(){super(1)}}e.Queue=l;class L{constructor(){this.queues=new Map,this.drainers=new Set}async whenDrained(){if(this.isDrained())return;const k=new U;return this.drainers.add(k),k.p}isDrained(){for(const[,k]of this.queues)if(k.size>0)return!1;return!0}queueFor(k,z=D.extUri){const W=z.getComparisonKey(k);let G=this.queues.get(W);return G||(G=new l,y.Event.once(G.onDrained)(()=>{G?.dispose(),this.queues.delete(W),this.onDidQueueDrain()}),this.queues.set(W,G)),G}onDidQueueDrain(){!this.isDrained()||this.releaseDrainers()}releaseDrainers(){for(const k of this.drainers)k.complete();this.drainers.clear()}dispose(){for(const[,k]of this.queues)k.dispose();this.queues.clear(),this.releaseDrainers()}}e.ResourceQueue=L;class j{constructor(k,z){this._token=-1,typeof k=="function"&&typeof z=="number"&&this.setIfNotSet(k,z)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(k,z){this.cancel(),this._token=setTimeout(()=>{this._token=-1,k()},z)}setIfNotSet(k,z){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,k()},z))}}e.TimeoutTimer=j;class ${constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(k,z){this.cancel(),this._token=setInterval(()=>{k()},z)}}e.IntervalTimer=$;class ne{constructor(k,z){this.timeoutToken=-1,this.runner=k,this.timeout=z,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(k=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,k)}get delay(){return this.timeout}set delay(k){this.timeout=k}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}e.RunOnceScheduler=ne;class le{constructor(k,z){z%1e3!=0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${z}ms is not a multiple of 1000ms.`),this.runner=k,this.timeout=z,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(k=this.timeout){k%1e3!=0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${k}ms is not a multiple of 1000ms.`),this.cancel(),this.counter=Math.ceil(k/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?.())}}e.ProcessTimeRunOnceScheduler=le;class ue extends ne{constructor(k,z){super(k,z);this.units=[]}work(k){this.units.push(k),this.isScheduled()||this.schedule()}doRun(){const k=this.units;this.units=[],this.runner?.(k)}dispose(){this.units=[],super.dispose()}}e.RunOnceWorker=ue;class he extends E.Disposable{constructor(k,z){super();this.options=k,this.handler=z,this.pendingWork=[],this.throttler=this._register(new E.MutableDisposable),this.disposed=!1}get pending(){return this.pendingWork.length}work(k){if(this.disposed)return!1;if(typeof this.options.maxBufferedWork=="number"){if(this.throttler.value){if(this.pending+k.length>this.options.maxBufferedWork)return!1}else if(this.pending+k.length-this.options.maxWorkChunkSize>this.options.maxBufferedWork)return!1}return this.pendingWork.push(...k),this.throttler.value||this.doWork(),!0}doWork(){this.handler(this.pendingWork.splice(0,this.options.maxWorkChunkSize)),this.pendingWork.length>0&&(this.throttler.value=new ne(()=>{this.throttler.clear(),this.doWork()},this.options.throttleDelay),this.throttler.value.schedule())}dispose(){super.dispose(),this.disposed=!0}}e.ThrottledWorker=he,function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?e.runWhenIdle=J=>{(0,_.setTimeout0)(()=>{if(k)return;const z=Date.now()+15;J(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,z-Date.now())}}))});let k=!1;return{dispose(){k||(k=!0)}}}:e.runWhenIdle=(J,k)=>{const z=requestIdleCallback(J,typeof k=="number"?{timeout:k}:void 0);let W=!1;return{dispose(){W||(W=!0,cancelIdleCallback(z))}}}}();class x{constructor(k){this._didRun=!1,this._executor=()=>{try{this._value=k()}catch(z){this._error=z}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=x;async function oe(J,k,z){let W;for(let G=0;G<z;G++)try{return await J()}catch(Q){W=Q,await r(k)}throw W}e.retry=oe;class M{hasPending(k){return this._pending?typeof k=="number"?this._pending.taskId===k:!!this._pending:!1}get pending(){return this._pending?this._pending.promise:void 0}cancelPending(){this._pending?.cancel()}setPending(k,z,W){return this._pending={taskId:k,cancel:()=>W?.(),promise:z},z.then(()=>this.donePending(k),()=>this.donePending(k)),z}donePending(k){this._pending&&k===this._pending.taskId&&(this._pending=void 0,this.triggerNext())}triggerNext(){if(this._next){const k=this._next;this._next=void 0,k.run().then(k.promiseResolve,k.promiseReject)}}setNext(k){if(this._next)this._next.run=k;else{let z,W;const G=new Promise((Q,R)=>{z=Q,W=R});this._next={run:k,promise:G,promiseResolve:z,promiseReject:W}}return this._next.promise}}e.TaskSequentializer=M;class X{constructor(k,z=()=>Date.now()){this.interval=k,this.nowFn=z,this.lastIncrementTime=0,this.value=0}increment(){const k=this.nowFn();return k-this.lastIncrementTime>this.interval&&(this.lastIncrementTime=k,this.value=0),this.value++,this.value}}e.IntervalCounter=X;class U{constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((k,z)=>{this.completeCallback=k,this.errorCallback=z})}get isRejected(){return this.rejected}get isResolved(){return this.resolved}get isSettled(){return this.rejected||this.resolved}complete(k){return new Promise(z=>{this.completeCallback(k),this.resolved=!0,z()})}error(k){return new Promise(z=>{this.errorCallback(k),this.rejected=!0,z()})}cancel(){new Promise(k=>{this.errorCallback(new P.CancellationError),this.rejected=!0,k()})}}e.DeferredPromise=U;var O;(function(J){async function k(W){let G;const Q=await Promise.all(W.map(R=>R.then(F=>F,F=>{G||(G=F)})));if(typeof G!="undefined")throw G;return Q}J.settled=k;function z(W){return new Promise(async(G,Q)=>{try{await W(G,Q)}catch(R){Q(R)}})}J.withAsyncBody=z})(O=e.Promises||(e.Promises={}));var q;(function(J){J[J.Initial=0]="Initial",J[J.DoneOK=1]="DoneOK",J[J.DoneError=2]="DoneError"})(q||(q={}));class V{constructor(k){this._state=0,this._results=[],this._error=null,this._onStateChanged=new y.Emitter,queueMicrotask(async()=>{const z={emitOne:W=>this.emitOne(W),emitMany:W=>this.emitMany(W),reject:W=>this.reject(W)};try{await Promise.resolve(k(z)),this.resolve()}catch(W){this.reject(W)}finally{z.emitOne=void 0,z.emitMany=void 0,z.reject=void 0}})}static fromArray(k){return new V(z=>{z.emitMany(k)})}static fromPromise(k){return new V(async z=>{z.emitMany(await k)})}static fromPromises(k){return new V(async z=>{await Promise.all(k.map(async W=>z.emitOne(await W)))})}static merge(k){return new V(async z=>{await Promise.all(k.map(async W=>{for await(const G of W)z.emitOne(G)}))})}[Symbol.asyncIterator](){let k=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(k<this._results.length)return{done:!1,value:this._results[k++]};if(this._state===1)return{done:!0,value:void 0};await y.Event.toPromise(this._onStateChanged.event)}while(!0)}}}static map(k,z){return new V(async W=>{for await(const G of k)W.emitOne(z(G))})}map(k){return V.map(this,k)}static filter(k,z){return new V(async W=>{for await(const G of k)z(G)&&W.emitOne(G)})}filter(k){return V.filter(this,k)}static coalesce(k){return V.filter(k,z=>!!z)}coalesce(){return V.coalesce(this)}static async toPromise(k){const z=[];for await(const W of k)z.push(W);return z}toPromise(){return V.toPromise(this)}emitOne(k){this._state===0&&(this._results.push(k),this._onStateChanged.fire())}emitMany(k){this._state===0&&(this._results=this._results.concat(k),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(k){this._state===0&&(this._state=2,this._error=k,this._onStateChanged.fire())}}e.AsyncIterableObject=V,V.EMPTY=V.fromArray([]);class ee extends V{constructor(k,z){super(z);this._source=k}cancel(){this._source.cancel()}}e.CancelableAsyncIterableObject=ee;function re(J){const k=new g.CancellationTokenSource,z=J(k.token);return new ee(k,async W=>{const G=k.token.onCancellationRequested(()=>{G.dispose(),k.dispose(),W.reject(new P.CancellationError)});try{for await(const Q of z){if(k.token.isCancellationRequested)return;W.emitOne(Q)}G.dispose(),k.dispose()}catch(Q){G.dispose(),k.dispose(),W.reject(Q)}})}e.createCancelableAsyncIterable=re}),define(se[44],ae([0,1,81]),function(Y,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LineDecoder=void 0;class P{constructor(E="utf8"){this.stringDecoder=new g.StringDecoder(E),this.remaining=null}write(E){const D=[],_=this.remaining?this.remaining+this.stringDecoder.write(E):this.stringDecoder.write(E);if(_.length<1)return D;let m=0,f,b=m;for(;b<_.length;)if(f=_.charCodeAt(b),f===13||f===10){if(D.push(_.substring(m,b)),b++,b<_.length){const C=f;f=_.charCodeAt(b),(C===13&&f===10||C===10&&f===13)&&b++}m=b}else b++;return this.remaining=m<_.length?_.substr(m):null,D}end(){return this.remaining}}e.LineDecoder=P}),define(se[20],ae([0,1,45,14,82,7,24,41,5,2,19,6]),function(Y,e,g,P,y,E,D,_,m,f,b,C){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Promises=e.writeFileSync=e.configureFlushOnWrite=e.SymlinkSupport=e.whenDeleted=e.readdirSync=e.rimrafSync=e.RimRafMode=void 0;var A;(function(x){x[x.UNLINK=0]="UNLINK",x[x.MOVE=1]="MOVE"})(A=e.RimRafMode||(e.RimRafMode={}));async function p(x,oe=A.UNLINK){if((0,D.isRootOrDriveLetter)(x))throw new Error("rimraf - will refuse to recursively delete root");return oe===A.UNLINK?h(x):a(x)}async function a(x){try{const oe=(0,D.randomPath)((0,P.tmpdir)());try{await g.promises.rename(x,oe)}catch{return h(x)}h(oe).catch(M=>{})}catch(oe){if(oe.code!=="ENOENT")throw oe}}async function h(x){return(0,y.promisify)(g.rm)(x,{recursive:!0,force:!0,maxRetries:3})}function I(x){if((0,D.isRootOrDriveLetter)(x))throw new Error("rimraf - will refuse to recursively delete root");g.rmSync(x,{recursive:!0,force:!0,maxRetries:3})}e.rimrafSync=I;async function T(x,oe){return u(await(oe?N(x):(0,y.promisify)(g.readdir)(x)))}async function N(x){try{return await(0,y.promisify)(g.readdir)(x,{withFileTypes:!0})}catch(X){console.warn("[node.js fs] readdir with filetypes failed with error: ",X)}const oe=[],M=await T(x);for(const X of M){let U=!1,O=!1,q=!1;try{const V=await e.Promises.lstat((0,m.join)(x,X));U=V.isFile(),O=V.isDirectory(),q=V.isSymbolicLink()}catch(V){console.warn("[node.js fs] unexpected error from lstat after readdir: ",V)}oe.push({name:X,isFile:()=>U,isDirectory:()=>O,isSymbolicLink:()=>q})}return oe}function o(x){return u(g.readdirSync(x))}e.readdirSync=o;function u(x){return x.map(oe=>typeof oe=="string"?f.isMacintosh?(0,_.normalizeNFC)(oe):oe:(oe.name=f.isMacintosh?(0,_.normalizeNFC)(oe.name):oe.name,oe))}async function w(x){const oe=await T(x),M=[];for(const X of oe)await d.existsDirectory((0,m.join)(x,X))&&M.push(X);return M}function v(x,oe=1e3){return new Promise(M=>{let X=!1;const U=setInterval(()=>{X||(X=!0,g.access(x,O=>{X=!1,O&&(clearInterval(U),M(void 0))}))},oe)})}e.whenDeleted=v;var d;(function(x){async function oe(U){let O;try{if(O=await e.Promises.lstat(U),!O.isSymbolicLink())return{stat:O}}catch{}try{return{stat:await e.Promises.stat(U),symbolicLink:O?.isSymbolicLink()?{dangling:!1}:void 0}}catch(q){if(q.code==="ENOENT"&&O)return{stat:O,symbolicLink:{dangling:!0}};if(f.isWindows&&q.code==="EACCES")try{return{stat:await e.Promises.stat(await e.Promises.readlink(U)),symbolicLink:{dangling:!1}}}catch(V){if(V.code==="ENOENT"&&O)return{stat:O,symbolicLink:{dangling:!0}};throw V}throw q}}x.stat=oe;async function M(U){try{const{stat:O,symbolicLink:q}=await x.stat(U);return O.isFile()&&q?.dangling!==!0}catch{}return!1}x.existsFile=M;async function X(U){try{const{stat:O,symbolicLink:q}=await x.stat(U);return O.isDirectory()&&q?.dangling!==!0}catch{}return!1}x.existsDirectory=X})(d=e.SymlinkSupport||(e.SymlinkSupport={}));const r=new E.ResourceQueue;function c(x,oe,M){return r.queueFor(C.URI.file(x),b.extUriBiasedIgnorePathCase).queue(()=>{const X=l(M);return new Promise((U,O)=>n(x,oe,X,q=>q?O(q):U()))})}let s=!0;function i(x){s=x}e.configureFlushOnWrite=i;function n(x,oe,M,X){if(!s)return g.writeFile(x,oe,{mode:M.mode,flag:M.flag},X);g.open(x,M.flag,M.mode,(U,O)=>{if(U)return X(U);g.writeFile(O,oe,q=>{if(q)return g.close(O,()=>X(q));g.fdatasync(O,V=>(V&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",V),i(!1)),g.close(O,ee=>X(ee))))})})}function t(x,oe,M){const X=l(M);if(!s)return g.writeFileSync(x,oe,{mode:X.mode,flag:X.flag});const U=g.openSync(x,X.flag,X.mode);try{g.writeFileSync(U,oe);try{g.fdatasyncSync(U)}catch(O){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",O),i(!1)}}finally{g.closeSync(U)}}e.writeFileSync=t;function l(x){return x?{mode:typeof x.mode=="number"?x.mode:438,flag:typeof x.flag=="string"?x.flag:"w"}:{mode:438,flag:"w"}}async function L(x,oe){if(x!==oe)try{await e.Promises.rename(x,oe)}catch(M){if(x.toLowerCase()!==oe.toLowerCase()&&M.code==="EXDEV"||x.endsWith("."))await j(x,oe,{preserveSymlinks:!1}),await p(x,A.MOVE);else throw M}}async function j(x,oe,M){return ne(x,oe,{root:{source:x,target:oe},options:M,handledSourcePaths:new Set})}const $=511;async function ne(x,oe,M){if(M.handledSourcePaths.has(x))return;M.handledSourcePaths.add(x);const{stat:X,symbolicLink:U}=await d.stat(x);if(U){if(M.options.preserveSymlinks)try{return await he(x,oe,M)}catch(O){console.warn("[node.js fs] copy of symlink failed: ",O)}if(U.dangling)return}return X.isDirectory()?le(x,oe,X.mode&$,M):ue(x,oe,X.mode&$)}async function le(x,oe,M,X){await e.Promises.mkdir(oe,{recursive:!0,mode:M});const U=await T(x);for(const O of U)await ne((0,m.join)(x,O),(0,m.join)(oe,O),X)}async function ue(x,oe,M){await e.Promises.copyFile(x,oe),await e.Promises.chmod(oe,M)}async function he(x,oe,M){let X=await e.Promises.readlink(x);(0,D.isEqualOrParent)(X,M.root.source,!f.isLinux)&&(X=(0,m.join)(M.root.target,X.substr(M.root.source.length+1))),await e.Promises.symlink(X,oe)}e.Promises=new class{get access(){return(0,y.promisify)(g.access)}get stat(){return(0,y.promisify)(g.stat)}get lstat(){return(0,y.promisify)(g.lstat)}get utimes(){return(0,y.promisify)(g.utimes)}get read(){return(x,oe,M,X,U)=>new Promise((O,q)=>{g.read(x,oe,M,X,U,(V,ee,re)=>V?q(V):O({bytesRead:ee,buffer:re}))})}get readFile(){return(0,y.promisify)(g.readFile)}get write(){return(x,oe,M,X,U)=>new Promise((O,q)=>{g.write(x,oe,M,X,U,(V,ee,re)=>V?q(V):O({bytesWritten:ee,buffer:re}))})}get appendFile(){return(0,y.promisify)(g.appendFile)}get fdatasync(){return(0,y.promisify)(g.fdatasync)}get truncate(){return(0,y.promisify)(g.truncate)}get rename(){return(0,y.promisify)(g.rename)}get copyFile(){return(0,y.promisify)(g.copyFile)}get open(){return(0,y.promisify)(g.open)}get close(){return(0,y.promisify)(g.close)}get symlink(){return(0,y.promisify)(g.symlink)}get readlink(){return(0,y.promisify)(g.readlink)}get chmod(){return(0,y.promisify)(g.chmod)}get mkdir(){return(0,y.promisify)(g.mkdir)}get unlink(){return(0,y.promisify)(g.unlink)}get rmdir(){return(0,y.promisify)(g.rmdir)}get realpath(){return(0,y.promisify)(g.realpath)}async exists(x){try{return await e.Promises.access(x),!0}catch{return!1}}get readdir(){return T}get readDirsInDir(){return w}get writeFile(){return c}get rm(){return p}get move(){return L}get copy(){return j}}}),define(se[46],ae([0,1,14,5,20]),function(Y,e,g,P,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFirstAvailablePowerShellInstallation=e.enumeratePowerShellInstallations=void 0;const E=/^\d+$/,D=/^Microsoft.PowerShell_.*/,_=/^Microsoft.PowerShellPreview_.*/;var m;(function(u){u[u.x64=0]="x64",u[u.x86=1]="x86",u[u.ARM=2]="ARM"})(m||(m={}));let f;switch(process.arch){case"ia32":case"x32":f=1;break;case"arm":case"arm64":f=2;break;default:f=0;break}let b;process.env.PROCESSOR_ARCHITEW6432?b=process.env.PROCESSOR_ARCHITEW6432==="ARM64"?2:0:process.env.PROCESSOR_ARCHITECTURE==="ARM64"?b=2:process.env.PROCESSOR_ARCHITECTURE==="X86"?b=1:b=0;class C{constructor(w,v,d){this.exePath=w,this.displayName=v,this.knownToExist=d}async exists(){return this.knownToExist===void 0&&(this.knownToExist=await y.SymlinkSupport.existsFile(this.exePath)),this.knownToExist}}function A({useAlternateBitness:u=!1}={}){return u?f===0?process.env["ProgramFiles(x86)"]||null:b===0&&process.env.ProgramW6432||null:process.env.ProgramFiles||null}async function p({useAlternateBitness:u=!1,findPreview:w=!1}={}){const v=A({useAlternateBitness:u});if(!v)return null;const d=P.join(v,"PowerShell");if(!await y.SymlinkSupport.existsDirectory(d))return null;let r=-1,c=null;for(const n of await y.Promises.readdir(d)){let t=-1;if(w){const L=n.indexOf("-");if(L<0)continue;const j=n.substring(0,L);if(!E.test(j)||n.substring(L+1)!=="preview")continue;t=parseInt(j,10)}else{if(!E.test(n))continue;t=parseInt(n,10)}if(t<=r)continue;const l=P.join(d,n,"pwsh.exe");!await y.SymlinkSupport.existsFile(l)||(c=l,r=t)}if(!c)return null;const s=v.includes("x86")?" (x86)":"",i=w?" Preview":"";return new C(c,`PowerShell${i}${s}`,!0)}async function a({findPreview:u}={}){if(!process.env.LOCALAPPDATA)return null;const w=P.join(process.env.LOCALAPPDATA,"Microsoft","WindowsApps");if(!await y.SymlinkSupport.existsDirectory(w))return null;const{pwshMsixDirRegex:v,pwshMsixName:d}=u?{pwshMsixDirRegex:_,pwshMsixName:"PowerShell Preview (Store)"}:{pwshMsixDirRegex:D,pwshMsixName:"PowerShell (Store)"};for(const r of await y.Promises.readdir(w))if(v.test(r)){const c=P.join(w,r,"pwsh.exe");return new C(c,d)}return null}function h(){const u=P.join(g.homedir(),".dotnet","tools","pwsh.exe");return new C(u,".NET Core PowerShell Global Tool")}function I(){const u=P.join(process.env.windir,f===1&&b!==1?"SysNative":"System32","WindowsPowerShell","v1.0","powershell.exe");return new C(u,"Windows PowerShell",!0)}async function*T(){let u=await p();u&&(yield u),u=await p({useAlternateBitness:!0}),u&&(yield u),u=await a(),u&&(yield u),u=h(),u&&(yield u),u=await p({findPreview:!0}),u&&(yield u),u=await a({findPreview:!0}),u&&(yield u),u=await p({useAlternateBitness:!0,findPreview:!0}),u&&(yield u),u=I(),u&&(yield u)}async function*N(){for await(const u of T())await u.exists()&&(yield u)}e.enumeratePowerShellInstallations=N;async function o(){for await(const u of N())return u;return null}e.getFirstAvailablePowerShellInstallation=o}),define(se[47],ae([0,1,21,8]),function(Y,e,g,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.listProcesses=void 0;function y(D){return new Promise((_,m)=>{let f;const b=new Map;function C(p,a,h,I,T){const N=b.get(a);if(p===D||N){const o={name:A(h),cmd:h,pid:p,ppid:a,load:I,mem:T};b.set(p,o),p===D&&(f=o),N&&(N.children||(N.children=[]),N.children.push(o),N.children.length>1&&(N.children=N.children.sort((u,w)=>u.pid-w.pid)))}}function A(p){const a=/--vscode-window-kind=shared-process/,h=/--vscode-window-kind=issue-reporter/,I=/--vscode-window-kind=process-explorer/,T=/--utility-sub-type=network/,N=/--utility-sub-type=node.mojom.NodeService/,o=/--crashes-directory/,u=/\\pipe\\winpty-control/,w=/conhost\.exe/,v=/--type=([a-zA-Z-]+)/;if(o.exec(p))return"electron-crash-reporter";if(u.exec(p))return"winpty-process";if(w.exec(p))return"console-window-host (Windows internal process)";let d=v.exec(p);if(d&&d.length===2){if(d[1]==="renderer")return a.exec(p)?"shared-process":h.exec(p)?"issue-reporter":I.exec(p)?"process-explorer":"window";if(d[1]==="utility"){if(T.exec(p))return"utility-network-service";if(N.exec(p))return"extension-host"}return d[1]}const r=/[a-zA-Z-]+\.js/g;let c="";do d=r.exec(p),d&&(c+=d+" ");while(d);return c&&p.indexOf("node ")<0&&p.indexOf("node.exe")<0?`electron_node ${c}`:p}if(process.platform==="win32"){const p=a=>a.indexOf("\\\\?\\")===0||a.indexOf("\\??\\")===0?a.substr(4):a.indexOf('"\\\\?\\')===0||a.indexOf('"\\??\\')===0?'"'+a.substr(5):a;new Promise((a,h)=>{Y(["windows-process-tree"],a,h)}).then(a=>{a.getProcessList(D,h=>{if(!h){m(new Error(`Root process ${D} not found`));return}a.getProcessCpuUsage(h,I=>{const T=new Map;I.forEach(N=>{const o=p(N.commandLine||"");T.set(N.pid,{name:A(o),cmd:o,pid:N.pid,ppid:N.ppid,load:N.cpu||0,mem:N.memory||0})}),f=T.get(D),f?(T.forEach(N=>{const o=T.get(N.ppid);o&&(o.children||(o.children=[]),o.children.push(N))}),T.forEach(N=>{N.children&&(N.children=N.children.sort((o,u)=>o.pid-u.pid))}),_(f)):m(new Error(`Root process ${D} not found`))})},a.ProcessDataFlag.CommandLine|a.ProcessDataFlag.Memory)})}else{let p=function(){let a=[f];const h=[];for(;a.length;){const T=a.shift();T&&(h.push(T.pid),T.children&&(a=a.concat(T.children)))}let I=JSON.stringify(P.FileAccess.asFileUri("vs/base/node/cpuUsage.sh",Y).fsPath);I+=" "+h.join(" "),(0,g.exec)(I,{},(T,N,o)=>{if(T||o)m(T||new Error(o.toString()));else{const u=N.toString().split(`
`);for(let w=0;w<h.length;w++){const v=b.get(h[w]);v.load=parseFloat(u[w])}if(!f){m(new Error(`Root process ${D} not found`));return}_(f)}})};(0,g.exec)("which ps",{},(a,h,I)=>{if(a||I)if(process.platform!=="linux")m(a||new Error(I.toString()));else{const T=JSON.stringify(P.FileAccess.asFileUri("vs/base/node/ps.sh",Y).fsPath);(0,g.exec)(T,{},(N,o,u)=>{N||u?m(N||new Error(u.toString())):(E(o,C),p())})}else{const T=h.toString().trim(),N="-ax -o pid=,ppid=,pcpu=,pmem=,command=";(0,g.exec)(`${T} ${N}`,{maxBuffer:1e3*1024,env:{LC_NUMERIC:"en_US.UTF-8"}},(o,u,w)=>{o||w&&!w.includes("screen size is bogus")?m(o||new Error(w.toString())):(E(u,C),process.platform==="linux"?p():f?_(f):m(new Error(`Root process ${D} not found`)))})}})}})}e.listProcesses=y;function E(D,_){const m=/^\s*([0-9]+)\s+([0-9]+)\s+([0-9]+\.[0-9]+)\s+([0-9]+\.[0-9]+)\s+(.+)$/,f=D.toString().split(`
`);for(const b of f){const C=m.exec(b.trim());C&&C.length===6&&_(parseInt(C[1]),parseInt(C[2]),C[5],parseFloat(C[3]),parseFloat(C[4]))}}});var fe=this&&this.__decorate||function(Y,e,g,P){var y=arguments.length,E=y<3?e:P===null?P=Object.getOwnPropertyDescriptor(e,g):P,D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(Y,e,g,P);else for(var _=Y.length-1;_>=0;_--)(D=Y[_])&&(E=(y<3?D(E):y>3?D(e,g,E):D(e,g))||E);return y>3&&E&&Object.defineProperty(e,g,E),E};define(se[31],ae([0,1,22,7,23,18,17,10,3,4,43,11,12]),function(Y,e,g,P,y,E,D,_,m,f,b,C,A){"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 p;(function(U){U[U.Promise=100]="Promise",U[U.PromiseCancel=101]="PromiseCancel",U[U.EventListen=102]="EventListen",U[U.EventDispose=103]="EventDispose"})(p=e.RequestType||(e.RequestType={}));function a(U){switch(U){case 100:return"req";case 101:return"cancel";case 102:return"subscribe";case 103:return"unsubscribe"}}var h;(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"})(h=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 T;(function(U){U[U.Uninitialized=0]="Uninitialized",U[U.Idle=1]="Idle"})(T||(T={}));class N{constructor(O){this.buffer=O,this.pos=0}read(O){const q=this.buffer.slice(this.pos,this.pos+O);return this.pos+=q.byteLength,q}}class o{constructor(){this.buffers=[]}get buffer(){return y.VSBuffer.concat(this.buffers)}write(O){this.buffers.push(O)}}var u;(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"})(u||(u={}));function w(U){const O=y.VSBuffer.alloc(4);return O.writeUInt32BE(U,0),O}function v(U){return U.read(4).readUInt32BE(0)}function d(U){const O=y.VSBuffer.alloc(1);return O.writeUInt8(U,0),O}const r={Undefined:d(u.Undefined),String:d(u.String),Buffer:d(u.Buffer),VSBuffer:d(u.VSBuffer),Array:d(u.Array),Object:d(u.Object)},c=typeof Buffer!="undefined";function s(U,O){if(typeof O=="undefined")U.write(r.Undefined);else if(typeof O=="string"){const q=y.VSBuffer.fromString(O);U.write(r.String),U.write(w(q.byteLength)),U.write(q)}else if(c&&Buffer.isBuffer(O)){const q=y.VSBuffer.wrap(O);U.write(r.Buffer),U.write(w(q.byteLength)),U.write(q)}else if(O instanceof y.VSBuffer)U.write(r.VSBuffer),U.write(w(O.byteLength)),U.write(O);else if(Array.isArray(O)){U.write(r.Array),U.write(w(O.length));for(const q of O)s(U,q)}else{const q=y.VSBuffer.fromString(JSON.stringify(O));U.write(r.Object),U.write(w(q.byteLength)),U.write(q)}}function i(U){switch(U.read(1).readUInt8(0)){case u.Undefined:return;case u.String:return U.read(v(U)).toString();case u.Buffer:return U.read(v(U)).buffer;case u.VSBuffer:return U.read(v(U));case u.Array:{const q=v(U),V=[];for(let ee=0;ee<q;ee++)V.push(i(U));return V}case u.Object:return JSON.parse(U.read(v(U)).toString())}}class n{constructor(O,q,V=null,ee=1e3){this.protocol=O,this.ctx=q,this.logger=V,this.timeoutDelay=ee,this.channels=new Map,this.activeRequests=new Map,this.pendingRequests=new Map,this.protocolListener=this.protocol.onMessage(re=>this.onRawMessage(re)),this.sendResponse({type:200})}registerChannel(O,q){this.channels.set(O,q),setTimeout(()=>this.flushPendingRequests(O),0)}sendResponse(O){switch(O.type){case 200:{const q=this.send([O.type]);this.logger?.logOutgoing(q,0,1,I(O.type));return}case 201:case 202:case 204:case 203:{const q=this.send([O.type,O.id],O.data);this.logger?.logOutgoing(q,O.id,1,I(O.type),O.data);return}}}send(O,q=void 0){const V=new o;return s(V,O),s(V,q),this.sendBuffer(V.buffer)}sendBuffer(O){try{return this.protocol.send(O),O.byteLength}catch{return 0}}onRawMessage(O){const q=new N(O),V=i(q),ee=i(q),re=V[0];switch(re){case 100:return this.logger?.logIncoming(O.byteLength,V[1],1,`${a(re)}: ${V[2]}.${V[3]}`,ee),this.onPromise({type:re,id:V[1],channelName:V[2],name:V[3],arg:ee});case 102:return this.logger?.logIncoming(O.byteLength,V[1],1,`${a(re)}: ${V[2]}.${V[3]}`,ee),this.onEventListen({type:re,id:V[1],channelName:V[2],name:V[3],arg:ee});case 101:return this.logger?.logIncoming(O.byteLength,V[1],1,`${a(re)}`),this.disposeActiveRequest({type:re,id:V[1]});case 103:return this.logger?.logIncoming(O.byteLength,V[1],1,`${a(re)}`),this.disposeActiveRequest({type:re,id:V[1]})}}onPromise(O){const q=this.channels.get(O.channelName);if(!q){this.collectPendingRequest(O);return}const V=new E.CancellationTokenSource;let ee;try{ee=q.call(this.ctx,O.name,O.arg,V.token)}catch(k){ee=Promise.reject(k)}const re=O.id;ee.then(k=>{this.sendResponse({id:re,data:k,type:201}),this.activeRequests.delete(O.id)},k=>{k instanceof Error?this.sendResponse({id:re,data:{message:k.message,name:k.name,stack:k.stack?k.stack.split?k.stack.split(`
`):k.stack:void 0},type:202}):this.sendResponse({id:re,data:k,type:203}),this.activeRequests.delete(O.id)});const J=(0,f.toDisposable)(()=>V.cancel());this.activeRequests.set(O.id,J)}onEventListen(O){const q=this.channels.get(O.channelName);if(!q){this.collectPendingRequest(O);return}const V=O.id,re=q.listen(this.ctx,O.name,O.arg)(J=>this.sendResponse({id:V,data:J,type:204}));this.activeRequests.set(O.id,re)}disposeActiveRequest(O){const q=this.activeRequests.get(O.id);q&&(q.dispose(),this.activeRequests.delete(O.id))}collectPendingRequest(O){let q=this.pendingRequests.get(O.channelName);q||(q=[],this.pendingRequests.set(O.channelName,q));const V=setTimeout(()=>{console.error(`Unknown channel: ${O.channelName}`),O.type===100&&this.sendResponse({id:O.id,data:{name:"Unknown channel",message:`Channel name '${O.channelName}' timed out after ${this.timeoutDelay}ms`,stack:void 0},type:202})},this.timeoutDelay);q.push({request:O,timeoutTimer:V})}flushPendingRequests(O){const q=this.pendingRequests.get(O);if(q){for(const V of q)switch(clearTimeout(V.timeoutTimer),V.request.type){case 100:this.onPromise(V.request);break;case 102:this.onEventListen(V.request);break}this.pendingRequests.delete(O)}}dispose(){this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),(0,f.dispose)(this.activeRequests.values()),this.activeRequests.clear()}}e.ChannelServer=n;var t;(function(U){U[U.LocalSide=0]="LocalSide",U[U.OtherSide=1]="OtherSide"})(t=e.RequestInitiator||(e.RequestInitiator={}));class l{constructor(O,q=null){this.protocol=O,this.isDisposed=!1,this.state=T.Uninitialized,this.activeRequests=new Set,this.handlers=new Map,this.lastRequestId=0,this._onDidInitialize=new m.Emitter,this.onDidInitialize=this._onDidInitialize.event,this.protocolListener=this.protocol.onMessage(V=>this.onBuffer(V)),this.logger=q}getChannel(O){const q=this;return{call(V,ee,re){return q.isDisposed?Promise.reject(_.canceled()):q.requestPromise(O,V,ee,re)},listen(V,ee){return q.isDisposed?m.Event.None:q.requestEvent(O,V,ee)}}}requestPromise(O,q,V,ee=E.CancellationToken.None){const re=this.lastRequestId++,k={id:re,type:100,channelName:O,name:q,arg:V};if(ee.isCancellationRequested)return Promise.reject(_.canceled());let z;return new Promise((G,Q)=>{if(ee.isCancellationRequested)return Q(_.canceled());const R=()=>{const te=de=>{switch(de.type){case 201:this.handlers.delete(re),G(de.data);break;case 202:{this.handlers.delete(re);const me=new Error(de.data.message);me.stack=de.data.stack,me.name=de.data.name,Q(me);break}case 203:this.handlers.delete(re),Q(de.data);break}};this.handlers.set(re,te),this.sendRequest(k)};let F=null;this.state===T.Idle?R():(F=(0,P.createCancelablePromise)(te=>this.whenInitialized()),F.then(()=>{F=null,R()}));const B=()=>{F?(F.cancel(),F=null):this.sendRequest({id:re,type:101}),Q(_.canceled())},K=ee.onCancellationRequested(B);z=(0,f.combinedDisposable)((0,f.toDisposable)(B),K),this.activeRequests.add(z)}).finally(()=>{this.activeRequests.delete(z)})}requestEvent(O,q,V){const ee=this.lastRequestId++,J={id:ee,type:102,channelName:O,name:q,arg:V};let k=null;const z=new m.Emitter({onFirstListenerAdd:()=>{k=(0,P.createCancelablePromise)(G=>this.whenInitialized()),k.then(()=>{k=null,this.activeRequests.add(z),this.sendRequest(J)})},onLastListenerRemove:()=>{k?(k.cancel(),k=null):(this.activeRequests.delete(z),this.sendRequest({id:ee,type:103}))}}),W=G=>z.fire(G.data);return this.handlers.set(ee,W),z.event}sendRequest(O){switch(O.type){case 100:case 102:{const q=this.send([O.type,O.id,O.channelName,O.name],O.arg);this.logger?.logOutgoing(q,O.id,0,`${a(O.type)}: ${O.channelName}.${O.name}`,O.arg);return}case 101:case 103:{const q=this.send([O.type,O.id]);this.logger?.logOutgoing(q,O.id,0,a(O.type));return}}}send(O,q=void 0){const V=new o;return s(V,O),s(V,q),this.sendBuffer(V.buffer)}sendBuffer(O){try{return this.protocol.send(O),O.byteLength}catch{return 0}}onBuffer(O){const q=new N(O),V=i(q),ee=i(q),re=V[0];switch(re){case 200:return this.logger?.logIncoming(O.byteLength,0,0,I(re)),this.onResponse({type:V[0]});case 201:case 202:case 204:case 203:return this.logger?.logIncoming(O.byteLength,V[1],0,I(re),ee),this.onResponse({type:V[0],id:V[1],data:ee})}}onResponse(O){if(O.type===200){this.state=T.Idle,this._onDidInitialize.fire();return}this.handlers.get(O.id)?.(O)}get onDidInitializePromise(){return m.Event.toPromise(this.onDidInitialize)}whenInitialized(){return this.state===T.Idle?Promise.resolve():this.onDidInitializePromise}dispose(){this.isDisposed=!0,this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),(0,f.dispose)(this.activeRequests.values()),this.activeRequests.clear()}}fe([D.memoize],l.prototype,"onDidInitializePromise",null),e.ChannelClient=l;class L{constructor(O){this.channels=new Map,this._connections=new Set,this._onDidAddConnection=new m.Emitter,this.onDidAddConnection=this._onDidAddConnection.event,this._onDidRemoveConnection=new m.Emitter,this.onDidRemoveConnection=this._onDidRemoveConnection.event,O(({protocol:q,onDidClientDisconnect:V})=>{m.Event.once(q.onMessage)(re=>{const J=new N(re),k=i(J),z=new n(q,k),W=new l(q);this.channels.forEach((Q,R)=>z.registerChannel(R,Q));const G={channelServer:z,channelClient:W,ctx:k};this._connections.add(G),this._onDidAddConnection.fire(G),V(()=>{z.dispose(),W.dispose(),this._connections.delete(G),this._onDidRemoveConnection.fire(G)})})})}get connections(){const O=[];return this._connections.forEach(q=>O.push(q)),O}getChannel(O,q){const V=this;return{call(ee,re,J){let k;if((0,A.isFunction)(q)){const W=(0,g.getRandomElement)(V.connections.filter(q));k=W?Promise.resolve(W):m.Event.toPromise(m.Event.filter(V.onDidAddConnection,q))}else k=q.routeCall(V,ee,re);const z=k.then(W=>W.channelClient.getChannel(O));return $(z).call(ee,re,J)},listen(ee,re){if((0,A.isFunction)(q))return V.getMulticastEvent(O,q,ee,re);const J=q.routeEvent(V,ee,re).then(k=>k.channelClient.getChannel(O));return $(J).listen(ee,re)}}}getMulticastEvent(O,q,V,ee){const re=this;let J=new f.DisposableStore;const k=new m.Emitter({onFirstListenerAdd:()=>{J=new f.DisposableStore;const z=new m.EventMultiplexer,W=new Map,G=R=>{const B=R.channelClient.getChannel(O).listen(V,ee),K=z.add(B);W.set(R,K)},Q=R=>{const F=W.get(R);!F||(F.dispose(),W.delete(R))};re.connections.filter(q).forEach(G),m.Event.filter(re.onDidAddConnection,q)(G,void 0,J),re.onDidRemoveConnection(Q,void 0,J),z.event(k.fire,k,J),J.add(z)},onLastListenerRemove:()=>{J.dispose()}});return k.event}registerChannel(O,q){this.channels.set(O,q),this._connections.forEach(V=>{V.channelServer.registerChannel(O,q)})}dispose(){this.channels.clear(),this._connections.clear(),this._onDidAddConnection.dispose(),this._onDidRemoveConnection.dispose()}}e.IPCServer=L;class j{constructor(O,q,V=null){const ee=new o;s(ee,q),O.send(ee.buffer),this.channelClient=new l(O,V),this.channelServer=new n(O,q,V)}getChannel(O){return this.channelClient.getChannel(O)}registerChannel(O,q){this.channelServer.registerChannel(O,q)}dispose(){this.channelClient.dispose(),this.channelServer.dispose()}}e.IPCClient=j;function $(U){return{call(O,q,V){return U.then(ee=>ee.call(O,q,V))},listen(O,q){const V=new m.Relay;return U.then(ee=>V.input=ee.listen(O,q)),V.event}}}e.getDelayedChannel=$;function ne(U){let O=!1;return{call(q,V,ee){return O?U.call(q,V,ee):(0,P.timeout)(0).then(()=>O=!0).then(()=>U.call(q,V,ee))},listen(q,V){if(O)return U.listen(q,V);const ee=new m.Relay;return(0,P.timeout)(0).then(()=>O=!0).then(()=>ee.input=U.listen(q,V)),ee.event}}}e.getNextTickChannel=ne;class le{constructor(O){this.fn=O}routeCall(O){return this.route(O)}routeEvent(O){return this.route(O)}async route(O){for(const q of O.connections)if(await Promise.resolve(this.fn(q.ctx)))return Promise.resolve(q);return await m.Event.toPromise(O.onDidAddConnection),await this.route(O)}}e.StaticRouter=le;var ue;(function(U){function O(re,J){const k=re,z=J&&J.disableMarshalling,W=new Map;for(const G in k)V(G)&&W.set(G,m.Event.buffer(k[G],!0));return new class{listen(G,Q,R){const F=W.get(Q);if(F)return F;if(ee(Q)){const B=k[Q];if(typeof B=="function")return B.call(k,R)}throw new Error(`Event not found: ${Q}`)}call(G,Q,R){const F=k[Q];if(typeof F=="function"){if(!z&&Array.isArray(R))for(let B=0;B<R.length;B++)R[B]=(0,b.revive)(R[B]);return F.apply(k,R)}throw new Error(`Method not found: ${Q}`)}}}U.fromService=O;function q(re,J){const k=J&&J.disableMarshalling;return new Proxy({},{get(z,W){if(typeof W=="string")return J?.properties?.has(W)?J.properties.get(W):ee(W)?function(G){return re.listen(W,G)}:V(W)?re.listen(W):async function(...G){let Q;J&&!(0,A.isUndefinedOrNull)(J.context)?Q=[J.context,...G]:Q=G;const R=await re.call(W,Q);return k?R:(0,b.revive)(R)};throw new Error(`Property not found: ${String(W)}`)}})}U.toService=q;function V(re){return re[0]==="o"&&re[1]==="n"&&C.isUpperAsciiLetter(re.charCodeAt(2))}function ee(re){return/^onDynamic/.test(re)&&C.isUpperAsciiLetter(re.charCodeAt(9))}})(ue=e.ProxyChannel||(e.ProxyChannel={}));const he=[["#2977B1","#FC802D","#34A13A","#D3282F","#9366BA"],["#8B564C","#E177C0","#7F7F7F","#BBBE3D","#2EBECD"]];function x(U){if(Array.isArray(U))return U;if(U&&typeof U=="object"&&typeof U.toString=="function"){const O=U.toString();if(O!=="[object Object]")return O}return U}function oe(U){return Array.isArray(U)?U.map(x):x(U)}function M(U,O,q,V,ee,re,J){J=oe(J);const k=he[ee],z=k[V%k.length];let W=[`%c[${U}]%c[${String(O).padStart(7," ")}]%c[len: ${String(q).padStart(5," ")}]%c${String(V).padStart(5," ")} - ${re}`,"color: darkgreen","color: grey","color: grey",`color: ${z}`];/\($/.test(re)?(W=W.concat(J),W.push(")")):W.push(J),console.log.apply(console,W)}e.logWithColors=M;class X{constructor(O,q){this._outgoingPrefix=O,this._incomingPrefix=q,this._totalIncoming=0,this._totalOutgoing=0}logOutgoing(O,q,V,ee,re){this._totalOutgoing+=O,M(this._outgoingPrefix,this._totalOutgoing,O,q,V,ee,re)}logIncoming(O,q,V,ee,re){this._totalIncoming+=O,M(this._incomingPrefix,this._totalIncoming,O,q,V,ee,re)}}e.IPCLogger=X}),define(se[48],ae([15,16]),function(Y,e){return Y.create("vs/base/common/date",e)}),define(se[49],ae([0,1,48]),function(Y,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toLocalISOString=e.fromNow=void 0;const P=60,y=P*60,E=y*24,D=E*7,_=E*30,m=E*365;function f(C,A,p){typeof C!="number"&&(C=C.getTime());const a=Math.round((new Date().getTime()-C)/1e3);if(a<-30)return(0,g.localize)(0,null,f(new Date().getTime()+a*1e3,!1));if(a<30)return(0,g.localize)(1,null);let h;return a<P?(h=a,A?h===1?p?(0,g.localize)(2,null,h):(0,g.localize)(3,null,h):p?(0,g.localize)(4,null,h):(0,g.localize)(5,null,h):h===1?p?(0,g.localize)(6,null,h):(0,g.localize)(7,null,h):p?(0,g.localize)(8,null,h):(0,g.localize)(9,null,h)):a<y?(h=Math.floor(a/P),A?h===1?p?(0,g.localize)(10,null,h):(0,g.localize)(11,null,h):p?(0,g.localize)(12,null,h):(0,g.localize)(13,null,h):h===1?p?(0,g.localize)(14,null,h):(0,g.localize)(15,null,h):p?(0,g.localize)(16,null,h):(0,g.localize)(17,null,h)):a<E?(h=Math.floor(a/y),A?h===1?p?(0,g.localize)(18,null,h):(0,g.localize)(19,null,h):p?(0,g.localize)(20,null,h):(0,g.localize)(21,null,h):h===1?p?(0,g.localize)(22,null,h):(0,g.localize)(23,null,h):p?(0,g.localize)(24,null,h):(0,g.localize)(25,null,h)):a<D?(h=Math.floor(a/E),A?h===1?(0,g.localize)(26,null,h):(0,g.localize)(27,null,h):h===1?(0,g.localize)(28,null,h):(0,g.localize)(29,null,h)):a<_?(h=Math.floor(a/D),A?h===1?p?(0,g.localize)(30,null,h):(0,g.localize)(31,null,h):p?(0,g.localize)(32,null,h):(0,g.localize)(33,null,h):h===1?p?(0,g.localize)(34,null,h):(0,g.localize)(35,null,h):p?(0,g.localize)(36,null,h):(0,g.localize)(37,null,h)):a<m?(h=Math.floor(a/_),A?h===1?p?(0,g.localize)(38,null,h):(0,g.localize)(39,null,h):p?(0,g.localize)(40,null,h):(0,g.localize)(41,null,h):h===1?p?(0,g.localize)(42,null,h):(0,g.localize)(43,null,h):p?(0,g.localize)(44,null,h):(0,g.localize)(45,null,h)):(h=Math.floor(a/m),A?h===1?p?(0,g.localize)(46,null,h):(0,g.localize)(47,null,h):p?(0,g.localize)(48,null,h):(0,g.localize)(49,null,h):h===1?p?(0,g.localize)(50,null,h):(0,g.localize)(51,null,h):p?(0,g.localize)(52,null,h):(0,g.localize)(53,null,h))}e.fromNow=f;function b(C){return C.getFullYear()+"-"+String(C.getMonth()+1).padStart(2,"0")+"-"+String(C.getDate()).padStart(2,"0")+"T"+String(C.getHours()).padStart(2,"0")+":"+String(C.getMinutes()).padStart(2,"0")+":"+String(C.getSeconds()).padStart(2,"0")+"."+(C.getMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"}e.toLocalISOString=b}),define(se[50],ae([15,16]),function(Y,e){return Y.create("vs/base/common/errorMessage",e)}),define(se[51],ae([0,1,22,12,50]),function(Y,e,g,P,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createErrorWithActions=e.isErrorWithActions=e.toErrorMessage=void 0;function E(C,A){return A&&(C.stack||C.stacktrace)?y.localize(0,null,_(C),D(C.stack)||D(C.stacktrace)):_(C)}function D(C){return Array.isArray(C)?C.join(`
`):C}function _(C){return typeof C.code=="string"&&typeof C.errno=="number"&&typeof C.syscall=="string"?y.localize(1,null,C.message):C.message||y.localize(2,null)}function m(C=null,A=!1){if(!C)return y.localize(3,null);if(Array.isArray(C)){const p=g.coalesce(C),a=m(p[0],A);return p.length>1?y.localize(4,null,a,p.length):a}if(P.isString(C))return C;if(C.detail){const p=C.detail;if(p.error)return E(p.error,A);if(p.exception)return E(p.exception,A)}return C.stack?E(C,A):C.message?C.message:y.localize(5,null)}e.toErrorMessage=m;function f(C){const A=C;return A instanceof Error&&Array.isArray(A.actions)}e.isErrorWithActions=f;function b(C,A){let p;return typeof C=="string"?p=new Error(C):p=C,p.actions=A,p}e.createErrorWithActions=b}),define(se[52],ae([15,16]),function(Y,e){return Y.create("vs/base/node/processes",e)}),define(se[32],ae([0,1,21,24,8,25,5,2,13,29,12,44,20,52]),function(Y,e,g,P,y,E,D,_,m,f,b,C,A,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.win32=e.createQueuedSender=e.LineProcess=e.AbstractProcess=e.getWindowsShell=e.TerminateResponseCode=e.Source=void 0,Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return f.Source}}),Object.defineProperty(e,"TerminateResponseCode",{enumerable:!0,get:function(){return f.TerminateResponseCode}});function a(w){switch(w){case 0:return 0;case 1:return 2;case 128:return 3;default:return 1}}function h(w,v){if(_.isWindows)try{const d={stdio:["pipe","pipe","ignore"]};v&&(d.cwd=v);const r=g.execFile("taskkill",["/T","/F","/PID",w.pid.toString()],d);return new Promise(c=>{r.once("error",s=>{c({success:!1,error:s})}),r.once("exit",(s,i)=>{c(s===0?{success:!0}:{success:!1,code:s!==null?s:1})})})}catch(d){return Promise.resolve({success:!1,error:d,code:d.status?a(d.status):1})}else if(_.isLinux||_.isMacintosh)try{const d=y.FileAccess.asFileUri("vs/base/node/terminateProcess.sh",Y).fsPath;return new Promise(r=>{g.execFile(d,[w.pid.toString()],{encoding:"utf8",shell:!0},(c,s,i)=>{r(c?{success:!1,error:c}:{success:!0})})})}catch(d){return Promise.resolve({success:!1,error:d})}else w.kill("SIGKILL");return Promise.resolve({success:!0})}function I(w=m.env){return w.comspec||"cmd.exe"}e.getWindowsShell=I;class T{constructor(v,d,r,c){if(d!==void 0&&r!==void 0&&c!==void 0)this.cmd=v,this.args=d,this.shell=r,this.options=c;else{const s=v;this.cmd=s.command,this.shell=s.isShellCommand,this.args=s.args.slice(0),this.options=s.options||{}}if(this.childProcess=null,this.childProcessPromise=null,this.terminateRequested=!1,this.options.env){const s=Object.create(null);Object.keys(m.env).forEach(i=>{s[i]=m.env[i]}),Object.keys(this.options.env).forEach(i=>{s[i]=this.options.env[i]}),this.options.env=s}}getSanitizedCommand(){let v=this.cmd.toLowerCase();const d=v.lastIndexOf(D.sep);return d!==-1&&(v=v.substring(d+1)),T.WellKnowCommands[v]?v:"other"}start(v){return _.isWindows&&(this.options&&this.options.cwd&&P.isUNC(this.options.cwd)||!this.options&&P.isUNC(m.cwd()))?Promise.reject(new Error(p.localize(0,null))):this.useExec().then(d=>{let r,c;const s=new Promise((i,n)=>{r=i,c=n});if(d){let i=this.cmd;this.args&&(i=i+" "+this.args.join(" ")),this.childProcess=g.exec(i,this.options,(n,t,l)=>{this.childProcess=null;const L=n;L&&L.killed?c({killed:this.terminateRequested,stdout:t.toString(),stderr:l.toString()}):this.handleExec(r,v,n,t,l)})}else{let i=null;const n=t=>{this.childProcess=null,this.childProcessPromise=null,this.handleClose(t,r,v,c);const l={terminated:this.terminateRequested};b.isNumber(t)&&(l.cmdCode=t),r(l)};if(this.shell&&_.isWindows){const t=E.deepClone(this.options);t.windowsVerbatimArguments=!0,t.detached=!1;let l=!1,L=!1;const j=[];let $=this.ensureQuotes(this.cmd);j.push($.value),l=$.quoted,this.args&&this.args.forEach(le=>{$=this.ensureQuotes(le),j.push($.value),L=L&&$.quoted});const ne=["/s","/c"];l?L?ne.push('"'+j.join(" ")+'"'):j.length>1?ne.push('"'+j[0]+'" '+j.slice(1).join(" ")):ne.push('"'+j[0]+'"'):ne.push(j.join(" ")),i=g.spawn(I(),ne,t)}else this.cmd&&(i=g.spawn(this.cmd,this.args,this.options));i&&(this.childProcess=i,this.childProcessPromise=Promise.resolve(i),this.pidResolve&&(this.pidResolve(b.isNumber(i.pid)?i.pid:-1),this.pidResolve=void 0),i.on("error",t=>{this.childProcess=null,c({terminated:this.terminateRequested,error:t})}),i.pid&&(this.childProcess.on("close",n),this.handleSpawn(i,r,v,c,!0)))}return s})}handleClose(v,d,r,c){}ensureQuotes(v){return T.regexp.test(v)?{value:'"'+v+'"',quoted:!0}:{value:v,quoted:v.length>0&&v[0]==='"'&&v[v.length-1]==='"'}}get pid(){return this.childProcessPromise?this.childProcessPromise.then(v=>v.pid,v=>-1):new Promise(v=>{this.pidResolve=v})}terminate(){return this.childProcessPromise?this.childProcessPromise.then(v=>(this.terminateRequested=!0,h(v,this.options.cwd).then(d=>(d.success&&(this.childProcess=null),d))),v=>({success:!0})):Promise.resolve({success:!0})}useExec(){return new Promise(v=>{if(!this.shell||!_.isWindows)return v(!1);const d=g.spawn(I(),["/s","/c"]);d.on("error",r=>v(!0)),d.on("exit",r=>v(!1))})}}e.AbstractProcess=T,T.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},T.regexp=/^[^"].* .*[^"]/;class N extends T{constructor(v,d,r,c){super(v,d,r,c);this.stdoutLineDecoder=null,this.stderrLineDecoder=null}handleExec(v,d,r,c,s){[c,s].forEach((i,n)=>{const t=new C.LineDecoder;t.write(i).forEach(j=>{d({line:j,source:n===0?0:1})});const L=t.end();L&&d({line:L,source:n===0?0:1})}),v({terminated:this.terminateRequested,error:r})}handleSpawn(v,d,r,c,s){const i=new C.LineDecoder,n=new C.LineDecoder;v.stdout.on("data",t=>{i.write(t).forEach(L=>r({line:L,source:0}))}),v.stderr.on("data",t=>{n.write(t).forEach(L=>r({line:L,source:1}))}),this.stdoutLineDecoder=i,this.stderrLineDecoder=n}handleClose(v,d,r,c){const s=this.stdoutLineDecoder?this.stdoutLineDecoder.end():null;s&&r({line:s,source:0});const i=this.stderrLineDecoder?this.stderrLineDecoder.end():null;i&&r({line:i,source:1})}}e.LineProcess=N;function o(w){let v=[],d=!1;const r=function(c){if(d){v.push(c);return}(!w.send(c,i=>{if(i&&console.error(i),d=!1,v.length>0){const n=v.slice(0);v=[],n.forEach(t=>r(t))}})||_.isWindows)&&(d=!0)};return{send:r}}e.createQueuedSender=o;var u;(function(w){async function v(d,r,c){if(D.isAbsolute(d))return d;if(r===void 0&&(r=m.cwd()),D.dirname(d)!=="."||(c===void 0&&b.isString(m.env.PATH)&&(c=m.env.PATH.split(D.delimiter)),c===void 0||c.length===0))return D.join(r,d);async function i(n){if(await A.Promises.exists(n)){let t;try{t=await A.Promises.stat(n)}catch(l){l.message.startsWith("EACCES")&&(t=await A.Promises.lstat(n))}return t?!t.isDirectory():!1}return!1}for(const n of c){let t;if(D.isAbsolute(n)?t=D.join(n,d):t=D.join(r,n,d),await i(t))return t;let l=t+".com";if(await i(l)||(l=t+".exe",await i(l)))return l}return D.join(r,d)}w.findExecutable=v})(u=e.win32||(e.win32={}))}),define(se[53],ae([0,1,14,2,46,32]),function(Y,e,g,P,y,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSystemShellSync=e.getSystemShell=void 0;async function D(p,a){return p===1?P.isWindows?C():E.getWindowsShell(a):f(p,a)}e.getSystemShell=D;function _(p,a){return p===1?P.isWindows?A(a):E.getWindowsShell(a):f(p,a)}e.getSystemShellSync=_;let m=null;function f(p,a){if(P.isLinux&&p===2||P.isMacintosh&&p===3)return"/bin/bash";if(!m){let h;if(P.isWindows)h="/bin/bash";else{if(h=a.SHELL,!h)try{h=(0,g.userInfo)().shell}catch{}h||(h="sh"),h==="/bin/false"&&(h="/bin/bash")}m=h}return m}let b=null;async function C(){return b||(b=(await(0,y.getFirstAvailablePowerShellInstallation)()).exePath),b}function A(p){if(b)return b;const a=P.isWindows&&parseFloat((0,g.release)())>=10,h=p.hasOwnProperty("PROCESSOR_ARCHITEW6432"),I=`${p.windir}\\${h?"Sysnative":"System32"}\\WindowsPowerShell\\v1.0\\powershell.exe`;return a?I:E.getWindowsShell(p)}}),define(se[54],ae([0,1,21,7,23,18,42,10,3,4,25,32,29,31]),function(Y,e,g,P,y,E,D,_,m,f,b,C,A,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Client=e.Server=void 0;class a extends p.ChannelServer{constructor(T){super({send:N=>{try{process.send?.(N.buffer.toString("base64"))}catch{}},onMessage:m.Event.fromNodeEventEmitter(process,"message",N=>y.VSBuffer.wrap(Buffer.from(N,"base64")))},T);process.once("disconnect",()=>this.dispose())}}e.Server=a;class h{constructor(T,N){this.modulePath=T,this.options=N,this.activeRequests=new Set,this.channels=new Map,this._onDidProcessExit=new m.Emitter,this.onDidProcessExit=this._onDidProcessExit.event;const o=N&&N.timeout?N.timeout:6e4;this.disposeDelayer=new P.Delayer(o),this.child=null,this._client=null}getChannel(T){const N=this;return{call(o,u,w){return N.requestPromise(T,o,u,w)},listen(o,u){return N.requestEvent(T,o,u)}}}requestPromise(T,N,o,u=E.CancellationToken.None){if(!this.disposeDelayer)return Promise.reject(new Error("disposed"));if(u.isCancellationRequested)return Promise.reject(_.canceled());this.disposeDelayer.cancel();const w=this.getCachedChannel(T),v=(0,P.createCancelablePromise)(c=>w.call(N,o,c)),d=u.onCancellationRequested(()=>v.cancel()),r=(0,f.toDisposable)(()=>v.cancel());return this.activeRequests.add(r),v.finally(()=>{d.dispose(),this.activeRequests.delete(r),this.activeRequests.size===0&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}),v}requestEvent(T,N,o){if(!this.disposeDelayer)return m.Event.None;this.disposeDelayer.cancel();let u;const w=new m.Emitter({onFirstListenerAdd:()=>{u=this.getCachedChannel(T).listen(N,o)(w.fire,w),this.activeRequests.add(u)},onLastListenerRemove:()=>{this.activeRequests.delete(u),u.dispose(),this.activeRequests.size===0&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}});return w.event}get client(){if(!this._client){const T=this.options&&this.options.args?this.options.args:[],N=Object.create(null);N.env={...(0,b.deepClone)(process.env),VSCODE_PARENT_PID:String(process.pid)},this.options&&this.options.env&&(N.env={...N.env,...this.options.env}),this.options&&this.options.freshExecArgv&&(N.execArgv=[]),this.options&&typeof this.options.debug=="number"&&(N.execArgv=["--nolazy","--inspect="+this.options.debug]),this.options&&typeof this.options.debugBrk=="number"&&(N.execArgv=["--nolazy","--inspect-brk="+this.options.debugBrk]),N.execArgv===void 0&&(N.execArgv=process.execArgv.filter(s=>!/^--inspect(-brk)?=/.test(s))),(0,A.removeDangerousEnvVariables)(N.env),this.child=(0,g.fork)(this.modulePath,T,N);const o=new m.Emitter;m.Event.fromNodeEventEmitter(this.child,"message",s=>s)(s=>{if((0,D.isRemoteConsoleLog)(s)){(0,D.log)(s,`IPC Library: ${this.options.serverName}`);return}o.fire(y.VSBuffer.wrap(Buffer.from(s,"base64")))});const w=this.options.useQueue?(0,C.createQueuedSender)(this.child):this.child,v=s=>this.child&&this.child.connected&&w.send(s.buffer.toString("base64")),d=o.event,r={send:v,onMessage:d};this._client=new p.ChannelClient(r);const c=()=>this.disposeClient();process.once("exit",c),this.child.on("error",s=>console.warn('IPC "'+this.options.serverName+'" errored with '+s)),this.child.on("exit",(s,i)=>{process.removeListener("exit",c),this.activeRequests.forEach(n=>(0,f.dispose)(n)),this.activeRequests.clear(),s!==0&&i!=="SIGTERM"&&console.warn('IPC "'+this.options.serverName+'" crashed with exit code '+s+" and signal "+i),this.disposeDelayer&&this.disposeDelayer.cancel(),this.disposeClient(),this._onDidProcessExit.fire({code:s,signal:i})})}return this._client}getCachedChannel(T){let N=this.channels.get(T);return N||(N=this.client.getChannel(T),this.channels.set(T,N)),N}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=h}),define(se[55],ae([15,16]),function(Y,e){return Y.create("vs/platform/environment/node/argv",e)}),define(se[56],ae([15,16]),function(Y,e){return Y.create("vs/platform/files/common/files",e)}),define(se[57],ae([15,16]),function(Y,e){return Y.create("vs/platform/terminal/node/ptyService",e)}),define(se[58],ae([15,16]),function(Y,e){return Y.create("vs/platform/terminal/node/terminalProcess",e)}),define(se[59],ae([0,1,49,17,8,5,13,19,6]),function(Y,e,g,P,y,E,D,_,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePtyHostPort=e.parseSearchPort=e.parseExtensionHostPort=e.AbstractNativeEnvironmentService=void 0;class f{constructor(h,I,T){this._args=h,this.paths=I,this.productService=T,this.editSessionId=this.args.editSessionId}get appRoot(){return(0,E.dirname)(y.FileAccess.asFileUri("",Y).fsPath)}get userHome(){return m.URI.file(this.paths.homeDir)}get userDataPath(){return this.paths.userDataDir}get appSettingsHome(){return m.URI.file((0,E.join)(this.userDataPath,"User"))}get tmpDir(){return m.URI.file(this.paths.tmpDir)}get cacheHome(){return m.URI.file(this.userDataPath)}get stateResource(){return(0,_.joinPath)(this.appSettingsHome,"globalStorage","storage.json")}get userRoamingDataHome(){return this.appSettingsHome}get userDataSyncHome(){return(0,_.joinPath)(this.userRoamingDataHome,"sync")}get logsPath(){if(!this.args.logsPath){const h=(0,g.toLocalISOString)(new Date).replace(/-|:|\.\d+Z$/g,"");this.args.logsPath=(0,E.join)(this.userDataPath,"logs",h)}return this.args.logsPath}get userDataSyncLogResource(){return m.URI.file((0,E.join)(this.logsPath,"userDataSync.log"))}get editSessionsLogResource(){return m.URI.file((0,E.join)(this.logsPath,"editSessions.log"))}get sync(){return this.args.sync}get machineSettingsResource(){return(0,_.joinPath)(m.URI.file((0,E.join)(this.userDataPath,"Machine")),"settings.json")}get workspaceStorageHome(){return(0,_.joinPath)(this.appSettingsHome,"workspaceStorage")}get localHistoryHome(){return(0,_.joinPath)(this.appSettingsHome,"History")}get keyboardLayoutResource(){return(0,_.joinPath)(this.userRoamingDataHome,"keyboardLayout.json")}get argvResource(){const h=D.env.VSCODE_PORTABLE;return h?m.URI.file((0,E.join)(h,"argv.json")):(0,_.joinPath)(this.appSettingsHome,"argv.json")}get isExtensionDevelopment(){return!!this.args.extensionDevelopmentPath}get untitledWorkspacesHome(){return m.URI.file((0,E.join)(this.userDataPath,"Workspaces"))}get installSourcePath(){return(0,E.join)(this.userDataPath,"installSource")}get builtinExtensionsPath(){const h=this.args["builtin-extensions-dir"];return h?(0,E.resolve)(h):(0,E.normalize)((0,E.join)(y.FileAccess.asFileUri("",Y).fsPath,"..","extensions"))}get extensionsDownloadPath(){const h=this.args["extensions-download-dir"];return h?(0,E.resolve)(h):(0,E.join)(this.userDataPath,"CachedExtensionVSIXs")}get extensionsPath(){const h=this.args["extensions-dir"];if(h)return(0,E.resolve)(h);const I=D.env.VSCODE_EXTENSIONS;if(I)return I;const T=D.env.VSCODE_PORTABLE;return T?(0,E.join)(T,"extensions"):(0,_.joinPath)(this.userHome,this.productService.dataFolderName,"extensions").fsPath}get extensionDevelopmentLocationURI(){const h=this.args.extensionDevelopmentPath;if(Array.isArray(h))return h.map(I=>/^[^:/?#]+?:\/\//.test(I)?m.URI.parse(I):m.URI.file((0,E.normalize)(I)))}get extensionDevelopmentKind(){return this.args.extensionDevelopmentKind?.map(h=>h==="ui"||h==="workspace"||h==="web"?h:"workspace")}get extensionTestsLocationURI(){const h=this.args.extensionTestsPath;if(h)return/^[^:/?#]+?:\/\//.test(h)?m.URI.parse(h):m.URI.file((0,E.normalize)(h))}get disableExtensions(){if(this.args["disable-extensions"])return!0;const h=this.args["disable-extension"];if(h){if(typeof h=="string")return[h];if(Array.isArray(h)&&h.length>0)return h}return!1}get debugExtensionHost(){return b(this.args,this.isBuilt)}get debugRenderer(){return!!this.args.debugRenderer}get isBuilt(){return!D.env.VSCODE_DEV}get verbose(){return!!this.args.verbose}get logLevel(){return this.args.log}get serviceMachineIdResource(){return(0,_.joinPath)(m.URI.file(this.userDataPath),"machineid")}get crashReporterId(){return this.args["crash-reporter-id"]}get crashReporterDirectory(){return this.args["crash-reporter-directory"]}get telemetryLogResource(){return m.URI.file((0,E.join)(this.logsPath,"telemetry.log"))}get disableTelemetry(){return!!this.args["disable-telemetry"]}get disableWorkspaceTrust(){return!!this.args["disable-workspace-trust"]}get policyFile(){if(this.args["__enable-file-policy"]){const h=D.env.VSCODE_PORTABLE;return h?m.URI.file((0,E.join)(h,"policy.json")):(0,_.joinPath)(this.userHome,this.productService.dataFolderName,"policy.json")}}get args(){return this._args}}fe([P.memoize],f.prototype,"appRoot",null),fe([P.memoize],f.prototype,"userHome",null),fe([P.memoize],f.prototype,"userDataPath",null),fe([P.memoize],f.prototype,"appSettingsHome",null),fe([P.memoize],f.prototype,"tmpDir",null),fe([P.memoize],f.prototype,"cacheHome",null),fe([P.memoize],f.prototype,"stateResource",null),fe([P.memoize],f.prototype,"userRoamingDataHome",null),fe([P.memoize],f.prototype,"userDataSyncHome",null),fe([P.memoize],f.prototype,"userDataSyncLogResource",null),fe([P.memoize],f.prototype,"editSessionsLogResource",null),fe([P.memoize],f.prototype,"sync",null),fe([P.memoize],f.prototype,"machineSettingsResource",null),fe([P.memoize],f.prototype,"workspaceStorageHome",null),fe([P.memoize],f.prototype,"localHistoryHome",null),fe([P.memoize],f.prototype,"keyboardLayoutResource",null),fe([P.memoize],f.prototype,"argvResource",null),fe([P.memoize],f.prototype,"isExtensionDevelopment",null),fe([P.memoize],f.prototype,"untitledWorkspacesHome",null),fe([P.memoize],f.prototype,"installSourcePath",null),fe([P.memoize],f.prototype,"builtinExtensionsPath",null),fe([P.memoize],f.prototype,"extensionsPath",null),fe([P.memoize],f.prototype,"extensionDevelopmentLocationURI",null),fe([P.memoize],f.prototype,"extensionDevelopmentKind",null),fe([P.memoize],f.prototype,"extensionTestsLocationURI",null),fe([P.memoize],f.prototype,"debugExtensionHost",null),fe([P.memoize],f.prototype,"serviceMachineIdResource",null),fe([P.memoize],f.prototype,"telemetryLogResource",null),fe([P.memoize],f.prototype,"disableWorkspaceTrust",null),fe([P.memoize],f.prototype,"policyFile",null),e.AbstractNativeEnvironmentService=f;function b(a,h){return p(a["inspect-extensions"],a["inspect-brk-extensions"],5870,h,a.debugId,a.extensionEnvironment)}e.parseExtensionHostPort=b;function C(a,h){return p(a["inspect-search"],a["inspect-brk-search"],5876,h,a.extensionEnvironment)}e.parseSearchPort=C;function A(a,h){return p(a["inspect-ptyhost"],a["inspect-brk-ptyhost"],5877,h,a.extensionEnvironment)}e.parsePtyHostPort=A;function p(a,h,I,T,N,o){const w=Number(h||a)||(T?null:I),v=w?Boolean(!!h):!1;let d;if(o)try{d=JSON.parse(o)}catch{}return{port:w,break:v,debugId:N,env:d}}}),define(se[60],ae([0,1,83,2,55]),function(Y,e,g,P,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildVersionMessage=e.buildHelpMessage=e.formatOptions=e.parseArgs=e.OPTIONS=void 0;const E={o:(0,y.localize)(0,null),e:(0,y.localize)(1,null),t:(0,y.localize)(2,null)};e.OPTIONS={diff:{type:"boolean",cat:"o",alias:"d",args:["file","file"],description:(0,y.localize)(3,null)},merge:{type:"boolean",cat:"o",alias:"m",args:["path1","path2","base","result"],description:(0,y.localize)(4,null)},add:{type:"boolean",cat:"o",alias:"a",args:"folder",description:(0,y.localize)(5,null)},goto:{type:"boolean",cat:"o",alias:"g",args:"file:line[:character]",description:(0,y.localize)(6,null)},"new-window":{type:"boolean",cat:"o",alias:"n",description:(0,y.localize)(7,null)},"reuse-window":{type:"boolean",cat:"o",alias:"r",description:(0,y.localize)(8,null)},wait:{type:"boolean",cat:"o",alias:"w",description:(0,y.localize)(9,null)},waitMarkerFilePath:{type:"string"},locale:{type:"string",cat:"o",args:"locale",description:(0,y.localize)(10,null)},"user-data-dir":{type:"string",cat:"o",args:"dir",description:(0,y.localize)(11,null)},help:{type:"boolean",cat:"o",alias:"h",description:(0,y.localize)(12,null)},"extensions-dir":{type:"string",deprecates:["extensionHomePath"],cat:"e",args:"dir",description:(0,y.localize)(13,null)},"extensions-download-dir":{type:"string"},"builtin-extensions-dir":{type:"string"},"list-extensions":{type:"boolean",cat:"e",description:(0,y.localize)(14,null)},"show-versions":{type:"boolean",cat:"e",description:(0,y.localize)(15,null)},category:{type:"string",cat:"e",description:(0,y.localize)(16,null),args:"category"},"install-extension":{type:"string[]",cat:"e",args:"ext-id | path",description:(0,y.localize)(17,null)},"pre-release":{type:"boolean",cat:"e",description:(0,y.localize)(18,null)},"uninstall-extension":{type:"string[]",cat:"e",args:"ext-id",description:(0,y.localize)(19,null)},"enable-proposed-api":{type:"string[]",allowEmptyValue:!0,cat:"e",args:"ext-id",description:(0,y.localize)(20,null)},version:{type:"boolean",cat:"t",alias:"v",description:(0,y.localize)(21,null)},verbose:{type:"boolean",cat:"t",description:(0,y.localize)(22,null)},log:{type:"string",cat:"t",args:"level",description:(0,y.localize)(23,null)},status:{type:"boolean",alias:"s",cat:"t",description:(0,y.localize)(24,null)},"prof-startup":{type:"boolean",cat:"t",description:(0,y.localize)(25,null)},"prof-append-timers":{type:"string"},"no-cached-data":{type:"boolean"},"prof-startup-prefix":{type:"string"},"prof-v8-extensions":{type:"boolean"},"disable-extensions":{type:"boolean",deprecates:["disableExtensions"],cat:"t",description:(0,y.localize)(26,null)},"disable-extension":{type:"string[]",cat:"t",args:"ext-id",description:(0,y.localize)(27,null)},sync:{type:"string",cat:"t",description:(0,y.localize)(28,null),args:["on | off"]},"inspect-extensions":{type:"string",allowEmptyValue:!0,deprecates:["debugPluginHost"],args:"port",cat:"t",description:(0,y.localize)(29,null)},"inspect-brk-extensions":{type:"string",allowEmptyValue:!0,deprecates:["debugBrkPluginHost"],args:"port",cat:"t",description:(0,y.localize)(30,null)},"disable-gpu":{type:"boolean",cat:"t",description:(0,y.localize)(31,null)},"ms-enable-electron-run-as-node":{type:"boolean"},"max-memory":{type:"string",cat:"t",description:(0,y.localize)(32,null),args:"memory"},telemetry:{type:"boolean",cat:"t",description:(0,y.localize)(33,null)},remote:{type:"string",allowEmptyValue:!0},"folder-uri":{type:"string[]",cat:"o",args:"uri"},"file-uri":{type:"string[]",cat:"o",args:"uri"},"locate-extension":{type:"string[]"},extensionDevelopmentPath:{type:"string[]"},extensionDevelopmentKind:{type:"string[]"},extensionTestsPath:{type:"string"},extensionEnvironment:{type:"string"},debugId:{type:"string"},debugRenderer:{type:"boolean"},"inspect-ptyhost":{type:"string",allowEmptyValue:!0},"inspect-brk-ptyhost":{type:"string",allowEmptyValue:!0},"inspect-search":{type:"string",deprecates:["debugSearch"],allowEmptyValue:!0},"inspect-brk-search":{type:"string",deprecates:["debugBrkSearch"],allowEmptyValue:!0},"export-default-configuration":{type:"string"},"install-source":{type:"string"},"enable-smoke-test-driver":{type:"boolean"},logExtensionHostCommunication:{type:"boolean"},"skip-release-notes":{type:"boolean"},"skip-welcome":{type:"boolean"},"disable-telemetry":{type:"boolean"},"disable-updates":{type:"boolean"},"disable-keytar":{type:"boolean"},"disable-workspace-trust":{type:"boolean"},"disable-crash-reporter":{type:"boolean"},"crash-reporter-directory":{type:"string"},"crash-reporter-id":{type:"string"},"skip-add-to-recently-opened":{type:"boolean"},"unity-launch":{type:"boolean"},"open-url":{type:"boolean"},"file-write":{type:"boolean"},"file-chmod":{type:"boolean"},"install-builtin-extension":{type:"string[]"},force:{type:"boolean"},"do-not-sync":{type:"boolean"},trace:{type:"boolean"},"trace-category-filter":{type:"string"},"trace-options":{type:"string"},"force-user-env":{type:"boolean"},"force-disable-user-env":{type:"boolean"},"open-devtools":{type:"boolean"},logsPath:{type:"string"},"__enable-file-policy":{type:"boolean"},editSessionId:{type:"string"},"locate-shell-integration-path":{type:"string",args:["bash","pwsh","zsh"]},"no-proxy-server":{type:"boolean"},"no-sandbox":{type:"boolean",alias:"sandbox"},"proxy-server":{type:"string"},"proxy-bypass-list":{type:"string"},"proxy-pac-url":{type:"string"},"js-flags":{type:"string"},inspect:{type:"string",allowEmptyValue:!0},"inspect-brk":{type:"string",allowEmptyValue:!0},nolazy:{type:"boolean"},"force-device-scale-factor":{type:"string"},"force-renderer-accessibility":{type:"boolean"},"ignore-certificate-errors":{type:"boolean"},"allow-insecure-localhost":{type:"boolean"},"log-net-log":{type:"string"},vmodule:{type:"string"},_urls:{type:"string[]"},"disable-dev-shm-usage":{type:"boolean"},_:{type:"string[]"}};const D={onUnknownOption:()=>{},onMultipleValues:()=>{},onEmptyValue:()=>{},onDeprecatedOption:()=>{}};function _(a,h,I=D){const T={},N=["_"],o=[];for(const d in h){const r=h[d];r.alias&&(T[d]=r.alias),r.type==="string"||r.type==="string[]"?(N.push(d),r.deprecates&&N.push(...r.deprecates)):r.type==="boolean"&&(o.push(d),r.deprecates&&o.push(...r.deprecates))}const u=g(a,{string:N,boolean:o,alias:T}),w={},v=u;w._=u._.map(d=>String(d)).filter(d=>d.length>0),delete v._;for(const d in h){const r=h[d];r.alias&&delete v[r.alias];let c=v[d];if(r.deprecates)for(const s of r.deprecates)v.hasOwnProperty(s)&&(c||(c=v[s],c&&I.onDeprecatedOption(s,r.deprecationMessage||(0,y.localize)(34,null,d))),delete v[s]);if(typeof c!="undefined"){if(r.type==="string[]"){if(Array.isArray(c)||(c=[c]),!r.allowEmptyValue){const s=c.filter(i=>i.length>0);s.length!==c.length&&(I.onEmptyValue(d),c=s.length>0?s:void 0)}}else r.type==="string"&&(Array.isArray(c)?(c=c.pop(),I.onMultipleValues(d,c)):!c&&!r.allowEmptyValue&&(I.onEmptyValue(d),c=void 0));w[d]=c,r.deprecationMessage&&I.onDeprecatedOption(d,r.deprecationMessage)}delete v[d]}for(const d in v)I.onUnknownOption(d);return w}e.parseArgs=_;function m(a,h){let I="";return h.args&&(Array.isArray(h.args)?I=` <${h.args.join("> <")}>`:I=` <${h.args}>`),h.alias?`-${h.alias} --${a}${I}`:`--${a}${I}`}function f(a,h){let I=0;const T=[];for(const w in a){const v=a[w],d=m(w,v);I=Math.max(I,d.length),T.push([d,v.description])}const N=I+2+1;if(h-N<25)return T.reduce((w,v)=>w.concat([`  ${v[0]}`,`      ${v[1]}`]),[]);const o=h-N-1,u=[];for(const w of T){const v=w[0],d=C(w[1],o),r=b(N-v.length-2);u.push("  "+v+r+d[0]);for(let c=1;c<d.length;c++)u.push(b(N)+d[c])}return u}e.formatOptions=f;function b(a){return" ".repeat(a)}function C(a,h){const I=[];for(;a.length;){const T=a.length<h?a.length:a.lastIndexOf(" ",h),N=a.slice(0,T).trim();a=a.slice(T),I.push(N)}return I}function A(a,h,I,T,N){const o=process.stdout.isTTY&&process.stdout.columns||80,u=N?.noInputFiles!==!0?`[${(0,y.localize)(35,null)}...]`:"",w=[`${a} ${I}`];w.push(""),w.push(`${(0,y.localize)(36,null)}: ${h} [${(0,y.localize)(37,null)}]${u}`),w.push(""),N?.noPipe!==!0&&(P.isWindows?w.push((0,y.localize)(38,null,h)):w.push((0,y.localize)(39,null,h)),w.push(""));const v={};for(const d in T){const r=T[d];if(r.description&&r.cat){let c=v[r.cat];c||(v[r.cat]=c={}),c[d]=r}}for(const d in v){const r=d,c=v[r];c&&(w.push(E[r]),w.push(...f(c,o)),w.push(""))}return w.join(`
`)}e.buildHelpMessage=A;function p(a,h){return`${a||(0,y.localize)(40,null)}
${h||(0,y.localize)(41,null)}
${process.arch}`}e.buildVersionMessage=p}),function(){"use strict";function Y(e,g,P,y){function E(_){const m=D(_),f=[m];return e.isAbsolute(m)||f.unshift(y),e.resolve(...f)}function D(_){const m=process.env.VSCODE_PORTABLE;if(m)return e.join(m,"user-data");let f=process.env.VSCODE_APPDATA;if(f)return e.join(f,P);const b=_["user-data-dir"];if(b)return b;switch(process.platform){case"win32":if(f=process.env.APPDATA,!f){const C=process.env.USERPROFILE;if(typeof C!="string")throw new Error("Windows: Unexpected undefined %USERPROFILE% environment variable");f=e.join(C,"AppData","Roaming")}break;case"darwin":f=e.join(g.homedir(),"Library","Application Support");break;case"linux":f=process.env.XDG_CONFIG_HOME||e.join(g.homedir(),".config");break;default:throw new Error("Platform not supported")}return e.join(f,P)}return{getUserDataPath:E}}if(typeof define=="function")define(se[61],ae([0,84,14,8,19,13]),function(e,g,P,y,E,D){const _=E.dirname(y.FileAccess.asFileUri("",e)),m=e.__$__nodeRequire(E.joinPath(_,"package.json").fsPath);return Y(g,P,m.name,D.cwd())});else if(typeof module=="object"&&typeof module.exports=="object"){const e=require("../../../../../package.json"),g=require("path"),P=require("os");module.exports=Y(g,P,e.name,process.env.VSCODE_CWD||process.cwd())}else throw new Error("Unknown context")}(),define(se[62],ae([0,1,14,59,61]),function(Y,e,g,P,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeEnvironmentService=void 0;class E extends P.AbstractNativeEnvironmentService{constructor(_,m){super(_,{homeDir:(0,g.homedir)(),tmpDir:(0,g.tmpdir)(),userDataDir:(0,y.getUserDataPath)(_)},m)}}e.NativeEnvironmentService=E}),define(se[26],ae([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.refineServiceDecorator=e.createDecorator=e.IInstantiationService=e._util=void 0;var g;(function(D){D.serviceIds=new Map,D.DI_TARGET="$di$target",D.DI_DEPENDENCIES="$di$dependencies";function _(m){return m[D.DI_DEPENDENCIES]||[]}D.getServiceDependencies=_})(g=e._util||(e._util={})),e.IInstantiationService=y("instantiationService");function P(D,_,m){_[g.DI_TARGET]===_?_[g.DI_DEPENDENCIES].push({id:D,index:m}):(_[g.DI_DEPENDENCIES]=[{id:D,index:m}],_[g.DI_TARGET]=_)}function y(D){if(g.serviceIds.has(D))return g.serviceIds.get(D);const _=function(m,f,b){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");P(_,m,b)};return _.toString=()=>D,g.serviceIds.set(D,_),_}e.createDecorator=y;function E(D){return D}e.refineServiceDecorator=E}),define(se[63],ae([0,1,30,5,11,12,6,56,26]),function(Y,e,g,P,y,E,D,_,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPlatformLimits=e.Arch=e.ByteSize=e.FALLBACK_MAX_MEMORY_SIZE_MB=e.MIN_MAX_MEMORY_SIZE_MB=e.whenProviderRegistered=e.etag=e.ETAG_DISABLED=e.FileKind=e.FILES_EXCLUDE_CONFIG=e.FILES_ASSOCIATIONS_CONFIG=e.HotExitConfiguration=e.AutoSaveConfiguration=e.FileOperationResult=e.NotModifiedSinceFileOperationError=e.FileOperationError=e.isParent=e.FileChangesEvent=e.FileChangeType=e.FileOperationEvent=e.FileOperation=e.toFileOperationResult=e.toFileSystemProviderErrorCode=e.markAsFileSystemProviderError=e.ensureFileSystemProviderError=e.createFileSystemProviderError=e.FileSystemProviderError=e.FileSystemProviderErrorCode=e.hasFileAtomicReadCapability=e.hasFileReadStreamCapability=e.hasOpenReadWriteCloseCapability=e.hasFileCloneCapability=e.hasFileFolderCopyCapability=e.hasReadWriteCapability=e.FileSystemProviderCapabilities=e.FilePermission=e.FileType=e.isFileOpenForWriteOptions=e.IFileService=void 0,e.IFileService=(0,m.createDecorator)("fileService");function f(M){return M.create===!0}e.isFileOpenForWriteOptions=f;var b;(function(M){M[M.Unknown=0]="Unknown",M[M.File=1]="File",M[M.Directory=2]="Directory",M[M.SymbolicLink=64]="SymbolicLink"})(b=e.FileType||(e.FileType={}));var C;(function(M){M[M.Readonly=1]="Readonly"})(C=e.FilePermission||(e.FilePermission={}));var A;(function(M){M[M.FileReadWrite=2]="FileReadWrite",M[M.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",M[M.FileReadStream=16]="FileReadStream",M[M.FileFolderCopy=8]="FileFolderCopy",M[M.PathCaseSensitive=1024]="PathCaseSensitive",M[M.Readonly=2048]="Readonly",M[M.Trash=4096]="Trash",M[M.FileWriteUnlock=8192]="FileWriteUnlock",M[M.FileAtomicRead=16384]="FileAtomicRead",M[M.FileClone=32768]="FileClone"})(A=e.FileSystemProviderCapabilities||(e.FileSystemProviderCapabilities={}));function p(M){return!!(M.capabilities&2)}e.hasReadWriteCapability=p;function a(M){return!!(M.capabilities&8)}e.hasFileFolderCopyCapability=a;function h(M){return!!(M.capabilities&32768)}e.hasFileCloneCapability=h;function I(M){return!!(M.capabilities&4)}e.hasOpenReadWriteCloseCapability=I;function T(M){return!!(M.capabilities&16)}e.hasFileReadStreamCapability=T;function N(M){return p(M)?!!(M.capabilities&16384):!1}e.hasFileAtomicReadCapability=N;var o;(function(M){M.FileExists="EntryExists",M.FileNotFound="EntryNotFound",M.FileNotADirectory="EntryNotADirectory",M.FileIsADirectory="EntryIsADirectory",M.FileExceedsMemoryLimit="EntryExceedsMemoryLimit",M.FileTooLarge="EntryTooLarge",M.FileWriteLocked="EntryWriteLocked",M.NoPermissions="NoPermissions",M.Unavailable="Unavailable",M.Unknown="Unknown"})(o=e.FileSystemProviderErrorCode||(e.FileSystemProviderErrorCode={}));class u extends Error{constructor(X,U){super(X);this.code=U}}e.FileSystemProviderError=u;function w(M,X){const U=new u(M.toString(),X);return d(U,X),U}e.createFileSystemProviderError=w;function v(M){return M||w((0,_.localize)(0,null),o.Unknown)}e.ensureFileSystemProviderError=v;function d(M,X){return M.name=X?`${X} (FileSystemError)`:"FileSystemError",M}e.markAsFileSystemProviderError=d;function r(M){if(!M)return o.Unknown;if(M instanceof u)return M.code;const X=/^(.+) \(FileSystemError\)$/.exec(M.name);if(!X)return o.Unknown;switch(X[1]){case o.FileExists:return o.FileExists;case o.FileIsADirectory:return o.FileIsADirectory;case o.FileNotADirectory:return o.FileNotADirectory;case o.FileNotFound:return o.FileNotFound;case o.FileExceedsMemoryLimit:return o.FileExceedsMemoryLimit;case o.FileTooLarge:return o.FileTooLarge;case o.FileWriteLocked:return o.FileWriteLocked;case o.NoPermissions:return o.NoPermissions;case o.Unavailable:return o.Unavailable}return o.Unknown}e.toFileSystemProviderErrorCode=r;function c(M){if(M instanceof L)return M.fileOperationResult;switch(r(M)){case o.FileNotFound:return 1;case o.FileIsADirectory:return 0;case o.FileNotADirectory:return 10;case o.FileWriteLocked:return 5;case o.NoPermissions:return 6;case o.FileExists:return 4;case o.FileExceedsMemoryLimit:return 9;case o.FileTooLarge:return 7;default:return 11}}e.toFileOperationResult=c;var s;(function(M){M[M.CREATE=0]="CREATE",M[M.DELETE=1]="DELETE",M[M.MOVE=2]="MOVE",M[M.COPY=3]="COPY",M[M.WRITE=4]="WRITE"})(s=e.FileOperation||(e.FileOperation={}));class i{constructor(X,U,O){this.resource=X,this.operation=U,this.target=O}isOperation(X){return this.operation===X}}e.FileOperationEvent=i;var n;(function(M){M[M.UPDATED=0]="UPDATED",M[M.ADDED=1]="ADDED",M[M.DELETED=2]="DELETED"})(n=e.FileChangeType||(e.FileChangeType={}));class t{constructor(X,U){this.added=void 0,this.updated=void 0,this.deleted=void 0,this.rawChanges=[],this.rawAdded=[],this.rawUpdated=[],this.rawDeleted=[],this.rawChanges=X;const O=new Map;for(const q of X){const V=O.get(q.type);switch(V?V.push([q.resource,q]):O.set(q.type,[[q.resource,q]]),q.type){case 1:this.rawAdded.push(q.resource);break;case 0:this.rawUpdated.push(q.resource);break;case 2:this.rawDeleted.push(q.resource);break}}for(const[q,V]of O)switch(q){case 1:this.added=g.TernarySearchTree.forUris(()=>U),this.added.fill(V);break;case 0:this.updated=g.TernarySearchTree.forUris(()=>U),this.updated.fill(V);break;case 2:this.deleted=g.TernarySearchTree.forUris(()=>U),this.deleted.fill(V);break}}contains(X,...U){return this.doContains(X,{includeChildren:!1},...U)}affects(X,...U){return this.doContains(X,{includeChildren:!0},...U)}doContains(X,U,...O){if(!X)return!1;const q=O.length>0;return!!((!q||O.includes(1))&&(this.added?.get(X)||U.includeChildren&&this.added?.findSuperstr(X))||(!q||O.includes(0))&&(this.updated?.get(X)||U.includeChildren&&this.updated?.findSuperstr(X))||(!q||O.includes(2))&&(this.deleted?.findSubstr(X)||U.includeChildren&&this.deleted?.findSuperstr(X)))}gotAdded(){return!!this.added}gotDeleted(){return!!this.deleted}gotUpdated(){return!!this.updated}}e.FileChangesEvent=t;function l(M,X,U){return!M||!X||M===X||X.length>M.length?!1:(X.charAt(X.length-1)!==P.sep&&(X+=P.sep),U?(0,y.startsWithIgnoreCase)(M,X):M.indexOf(X)===0)}e.isParent=l;class L extends Error{constructor(X,U,O){super(X);this.fileOperationResult=U,this.options=O}}e.FileOperationError=L;class j extends L{constructor(X,U,O){super(X,2,O);this.stat=U}}e.NotModifiedSinceFileOperationError=j;var $;(function(M){M[M.FILE_IS_DIRECTORY=0]="FILE_IS_DIRECTORY",M[M.FILE_NOT_FOUND=1]="FILE_NOT_FOUND",M[M.FILE_NOT_MODIFIED_SINCE=2]="FILE_NOT_MODIFIED_SINCE",M[M.FILE_MODIFIED_SINCE=3]="FILE_MODIFIED_SINCE",M[M.FILE_MOVE_CONFLICT=4]="FILE_MOVE_CONFLICT",M[M.FILE_WRITE_LOCKED=5]="FILE_WRITE_LOCKED",M[M.FILE_PERMISSION_DENIED=6]="FILE_PERMISSION_DENIED",M[M.FILE_TOO_LARGE=7]="FILE_TOO_LARGE",M[M.FILE_INVALID_PATH=8]="FILE_INVALID_PATH",M[M.FILE_EXCEEDS_MEMORY_LIMIT=9]="FILE_EXCEEDS_MEMORY_LIMIT",M[M.FILE_NOT_DIRECTORY=10]="FILE_NOT_DIRECTORY",M[M.FILE_OTHER_ERROR=11]="FILE_OTHER_ERROR"})($=e.FileOperationResult||(e.FileOperationResult={})),e.AutoSaveConfiguration={OFF:"off",AFTER_DELAY:"afterDelay",ON_FOCUS_CHANGE:"onFocusChange",ON_WINDOW_CHANGE:"onWindowChange"},e.HotExitConfiguration={OFF:"off",ON_EXIT:"onExit",ON_EXIT_AND_WINDOW_CLOSE:"onExitAndWindowClose"},e.FILES_ASSOCIATIONS_CONFIG="files.associations",e.FILES_EXCLUDE_CONFIG="files.exclude";var ne;(function(M){M[M.FILE=0]="FILE",M[M.FOLDER=1]="FOLDER",M[M.ROOT_FOLDER=2]="ROOT_FOLDER"})(ne=e.FileKind||(e.FileKind={})),e.ETAG_DISABLED="";function le(M){if(!(typeof M.size!="number"||typeof M.mtime!="number"))return M.mtime.toString(29)+M.size.toString(31)}e.etag=le;async function ue(M,X){if(!X.hasProvider(D.URI.from({scheme:M.scheme})))return new Promise(U=>{const O=X.onDidChangeFileSystemProviderRegistrations(q=>{q.scheme===M.scheme&&q.added&&(O.dispose(),U())})})}e.whenProviderRegistered=ue,e.MIN_MAX_MEMORY_SIZE_MB=2048,e.FALLBACK_MAX_MEMORY_SIZE_MB=4096;class he{static formatSize(X){return(0,E.isNumber)(X)||(X=0),X<he.KB?(0,_.localize)(1,null,X.toFixed(0)):X<he.MB?(0,_.localize)(2,null,(X/he.KB).toFixed(2)):X<he.GB?(0,_.localize)(3,null,(X/he.MB).toFixed(2)):X<he.TB?(0,_.localize)(4,null,(X/he.GB).toFixed(2)):(0,_.localize)(5,null,(X/he.TB).toFixed(2))}}e.ByteSize=he,he.KB=1024,he.MB=he.KB*he.KB,he.GB=he.MB*he.KB,he.TB=he.GB*he.KB;var x;(function(M){M[M.IA32=0]="IA32",M[M.OTHER=1]="OTHER"})(x=e.Arch||(e.Arch={}));function oe(M){return{maxFileSize:M===0?300*he.MB:16*he.GB,maxHeapSize:M===0?700*he.MB:2*700*he.MB}}e.getPlatformLimits=oe}),define(se[9],ae([0,1,51,3,4,2,26]),function(Y,e,g,P,y,E,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 _(){return new Date().toISOString()}var m;(function(d){d[d.Trace=0]="Trace",d[d.Debug=1]="Debug",d[d.Info=2]="Info",d[d.Warning=3]="Warning",d[d.Error=4]="Error",d[d.Critical=5]="Critical",d[d.Off=6]="Off"})(m=e.LogLevel||(e.LogLevel={})),e.DEFAULT_LOG_LEVEL=m.Info;function f(d,r,c){switch(r){case m.Trace:d.trace(c);break;case m.Debug:d.debug(c);break;case m.Info:d.info(c);break;case m.Warning:d.warn(c);break;case m.Error:d.error(c);break;case m.Critical:d.critical(c);break;default:throw new Error("Invalid log level")}}e.log=f;function b(d){let r="";for(let c=0;c<d.length;c++){let s=d[c];if(typeof s=="object")try{s=JSON.stringify(s)}catch{}r+=(c>0?" ":"")+s}return r}e.format=b;class C extends y.Disposable{constructor(){super(...arguments);this.level=e.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new P.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(r){this.level!==r&&(this.level=r,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}e.AbstractLogger=C;class A extends C{constructor(r){super();this.logAlways=r}checkLogLevel(r){return this.logAlways||this.getLevel()<=r}trace(r,...c){this.checkLogLevel(m.Trace)&&this.log(m.Trace,b([r,...c]))}debug(r,...c){this.checkLogLevel(m.Debug)&&this.log(m.Debug,b([r,...c]))}info(r,...c){this.checkLogLevel(m.Info)&&this.log(m.Info,b([r,...c]))}warn(r,...c){this.checkLogLevel(m.Warning)&&this.log(m.Warning,b([r,...c]))}error(r,...c){if(this.checkLogLevel(m.Error))if(r instanceof Error){const s=Array.prototype.slice.call(arguments);s[0]=r.stack,this.log(m.Error,b(s))}else this.log(m.Error,b([r,...c]))}critical(r,...c){this.checkLogLevel(m.Critical)&&this.log(m.Critical,b([r,...c]))}flush(){}}e.AbstractMessageLogger=A;class p extends C{constructor(r=e.DEFAULT_LOG_LEVEL){super();this.setLevel(r),this.useColors=!E.isWindows}trace(r,...c){this.getLevel()<=m.Trace&&(this.useColors?console.log(`[main ${_()}]`,r,...c):console.log(`[main ${_()}]`,r,...c))}debug(r,...c){this.getLevel()<=m.Debug&&(this.useColors?console.log(`[main ${_()}]`,r,...c):console.log(`[main ${_()}]`,r,...c))}info(r,...c){this.getLevel()<=m.Info&&(this.useColors?console.log(`[main ${_()}]`,r,...c):console.log(`[main ${_()}]`,r,...c))}warn(r,...c){this.getLevel()<=m.Warning&&(this.useColors?console.warn(`[main ${_()}]`,r,...c):console.warn(`[main ${_()}]`,r,...c))}error(r,...c){this.getLevel()<=m.Error&&(this.useColors?console.error(`[main ${_()}]`,r,...c):console.error(`[main ${_()}]`,r,...c))}critical(r,...c){this.getLevel()<=m.Critical&&(this.useColors?console.error(`[main ${_()}]`,r,...c):console.error(`[main ${_()}]`,r,...c))}dispose(){}flush(){}}e.ConsoleMainLogger=p;class a extends C{constructor(r=e.DEFAULT_LOG_LEVEL){super();this.setLevel(r)}trace(r,...c){this.getLevel()<=m.Trace&&console.log("%cTRACE","color: #888",r,...c)}debug(r,...c){this.getLevel()<=m.Debug&&console.log("%cDEBUG","background: #eee; color: #888",r,...c)}info(r,...c){this.getLevel()<=m.Info&&console.log("%c INFO","color: #33f",r,...c)}warn(r,...c){this.getLevel()<=m.Warning&&console.log("%c WARN","color: #993",r,...c)}error(r,...c){this.getLevel()<=m.Error&&console.log("%c  ERR","color: #f33",r,...c)}critical(r,...c){this.getLevel()<=m.Critical&&console.log("%cCRITI","background: #f33; color: white",r,...c)}dispose(){}flush(){}}e.ConsoleLogger=a;class h extends C{constructor(r,c=e.DEFAULT_LOG_LEVEL){super();this.adapter=r,this.setLevel(c)}trace(r,...c){this.getLevel()<=m.Trace&&this.adapter.log(m.Trace,[this.extractMessage(r),...c])}debug(r,...c){this.getLevel()<=m.Debug&&this.adapter.log(m.Debug,[this.extractMessage(r),...c])}info(r,...c){this.getLevel()<=m.Info&&this.adapter.log(m.Info,[this.extractMessage(r),...c])}warn(r,...c){this.getLevel()<=m.Warning&&this.adapter.log(m.Warning,[this.extractMessage(r),...c])}error(r,...c){this.getLevel()<=m.Error&&this.adapter.log(m.Error,[this.extractMessage(r),...c])}critical(r,...c){this.getLevel()<=m.Critical&&this.adapter.log(m.Critical,[this.extractMessage(r),...c])}extractMessage(r){return typeof r=="string"?r:(0,g.toErrorMessage)(r,this.getLevel()<=m.Trace)}dispose(){}flush(){}}e.AdapterLogger=h;class I extends C{constructor(r){super();this.logServices=r,r.length&&this.setLevel(r[0].getLevel())}setLevel(r){for(const c of this.logServices)c.setLevel(r);super.setLevel(r)}trace(r,...c){for(const s of this.logServices)s.trace(r,...c)}debug(r,...c){for(const s of this.logServices)s.debug(r,...c)}info(r,...c){for(const s of this.logServices)s.info(r,...c)}warn(r,...c){for(const s of this.logServices)s.warn(r,...c)}error(r,...c){for(const s of this.logServices)s.error(r,...c)}critical(r,...c){for(const s of this.logServices)s.critical(r,...c)}flush(){for(const r of this.logServices)r.flush()}dispose(){for(const r of this.logServices)r.dispose()}}e.MultiplexLogService=I;class T extends y.Disposable{constructor(r){super();this.logger=r,this._register(r)}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(r){this.logger.setLevel(r)}getLevel(){return this.logger.getLevel()}trace(r,...c){this.logger.trace(r,...c)}debug(r,...c){this.logger.debug(r,...c)}info(r,...c){this.logger.info(r,...c)}warn(r,...c){this.logger.warn(r,...c)}error(r,...c){this.logger.error(r,...c)}critical(r,...c){this.logger.critical(r,...c)}flush(){this.logger.flush()}}e.LogService=T;class N extends y.Disposable{constructor(r,c){super();this.logLevel=r,this.loggers=new Map,this.logLevelChangeableLoggers=[],this._register(c(s=>{this.logLevel=s,this.logLevelChangeableLoggers.forEach(i=>i.setLevel(s))}))}getLogger(r){return this.loggers.get(r.toString())}createLogger(r,c){let s=this.loggers.get(r.toString());return s||(s=this.doCreateLogger(r,c?.always?m.Trace:this.logLevel,c),this.loggers.set(r.toString(),s),c?.always||this.logLevelChangeableLoggers.push(s)),s}dispose(){this.logLevelChangeableLoggers.splice(0,this.logLevelChangeableLoggers.length),this.loggers.forEach(r=>r.dispose()),this.loggers.clear(),super.dispose()}}e.AbstractLoggerService=N;class o{constructor(){this.onDidChangeLogLevel=new P.Emitter().event}setLevel(r){}getLevel(){return m.Info}trace(r,...c){}debug(r,...c){}info(r,...c){}warn(r,...c){}error(r,...c){}critical(r,...c){}dispose(){}flush(){}}e.NullLogService=o;function u(d){if(d.verbose)return m.Trace;if(typeof d.logLevel=="string"){const r=w(d.logLevel.toLowerCase());if(r!==void 0)return r}return e.DEFAULT_LOG_LEVEL}e.getLogLevel=u;function w(d){switch(d){case"trace":return m.Trace;case"debug":return m.Debug;case"info":return m.Info;case"warn":return m.Warning;case"error":return m.Error;case"critical":return m.Critical;case"off":return m.Off}}e.parseLogLevel=w;function v(d){switch(d){case m.Trace:return"trace";case m.Debug:return"debug";case m.Info:return"info";case m.Warning:return"warn";case m.Error:return"error";case m.Critical:return"critical";case m.Off:return"off"}}e.LogLevelToString=v}),define(se[64],ae([0,1,3,6,9]),function(Y,e,g,P,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FollowerLogService=e.LoggerChannelClient=e.LoggerChannel=e.LogLevelChannelClient=e.LogLevelChannel=void 0;class E{constructor(A){this.service=A,this.onDidChangeLogLevel=g.Event.buffer(A.onDidChangeLogLevel,!0)}listen(A,p){switch(p){case"onDidChangeLogLevel":return this.onDidChangeLogLevel}throw new Error(`Event not found: ${p}`)}async call(A,p,a){switch(p){case"setLevel":return this.service.setLevel(a)}throw new Error(`Call not found: ${p}`)}}e.LogLevelChannel=E;class D{constructor(A){this.channel=A}get onDidChangeLogLevel(){return this.channel.listen("onDidChangeLogLevel")}setLevel(A){D.setLevel(this.channel,A)}static setLevel(A,p){return A.call("setLevel",p)}}e.LogLevelChannelClient=D;class _{constructor(A){this.loggerService=A,this.loggers=new Map}listen(A,p){throw new Error(`Event not found: ${p}`)}async call(A,p,a){switch(p){case"createLogger":this.createLogger(P.URI.revive(a[0]),a[1]);return;case"log":return this.log(P.URI.revive(a[0]),a[1]);case"consoleLog":return this.consoleLog(a[0],a[1])}throw new Error(`Call not found: ${p}`)}createLogger(A,p){this.loggers.set(A.toString(),this.loggerService.createLogger(A,p))}consoleLog(A,p){let a=console.log;switch(A){case y.LogLevel.Error:a=console.error;break;case y.LogLevel.Warning:a=console.warn;break;case y.LogLevel.Info:a=console.info;break}a.call(console,...p)}log(A,p){const a=this.loggers.get(A.toString());if(!a)throw new Error("Create the logger before logging");for(const[h,I]of p)(0,y.log)(a,h,I)}}e.LoggerChannel=_;class m extends y.AbstractLoggerService{constructor(A,p,a){super(A,p);this.channel=a}createConsoleMainLogger(){return new y.AdapterLogger({log:(A,p)=>{this.channel.call("consoleLog",[A,p])}})}doCreateLogger(A,p,a){return new f(this.channel,A,p,a)}}e.LoggerChannelClient=m;class f extends y.AbstractMessageLogger{constructor(A,p,a,h){super(h?.always);this.channel=A,this.file=p,this.isLoggerCreated=!1,this.buffer=[],this.setLevel(a),this.channel.call("createLogger",[p,h]).then(()=>{this.doLog(this.buffer),this.isLoggerCreated=!0})}log(A,p){const a=[[A,p]];this.isLoggerCreated?this.doLog(a):this.buffer.push(...a)}doLog(A){this.channel.call("log",[this.file,A])}}class b extends y.LogService{constructor(A,p){super(p);this.parent=A,this._register(A.onDidChangeLogLevel(a=>p.setLevel(a)))}setLevel(A){super.setLevel(A),this.parent.setLevel(A)}}e.FollowerLogService=b}),define(se[65],ae([0,1,63,9]),function(Y,e,g,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SpdLogLogger=void 0;async function y(_,m,f,b,C){try{const A=await new Promise((a,h)=>{Y(["spdlog"],a,h)});A.setFlushOn(P.LogLevel.Trace);const p=await A.createAsyncRotatingLogger(_,m,f,b);return C&&p.clearFormatters(),p}catch(A){console.error(A)}return null}function E(_,m,f){switch(m){case P.LogLevel.Trace:_.trace(f);break;case P.LogLevel.Debug:_.debug(f);break;case P.LogLevel.Info:_.info(f);break;case P.LogLevel.Warning:_.warn(f);break;case P.LogLevel.Error:_.error(f);break;case P.LogLevel.Critical:_.critical(f);break;default:throw new Error("Invalid log level")}}class D extends P.AbstractMessageLogger{constructor(m,f,b,C,A){super();this.buffer=[],this.setLevel(A),this._loggerCreationPromise=this._createSpdLogLogger(m,f,b,C),this._register(this.onDidChangeLogLevel(p=>{this._logger?.setLevel(p)}))}async _createSpdLogLogger(m,f,b,C){const A=b?6:1,p=30/A*g.ByteSize.MB,a=await y(m,f,p,A,C);if(a){this._logger=a,this._logger.setLevel(this.getLevel());for(const{level:h,message:I}of this.buffer)E(this._logger,h,I);this.buffer=[]}}log(m,f){this._logger?E(this._logger,m,f):this.getLevel()<=m&&this.buffer.push({level:m,message:f})}flush(){this._logger?this._logger.flush():this._loggerCreationPromise.then(()=>this.flush())}dispose(){this._logger?this.disposeLogger():this._loggerCreationPromise.then(()=>this.disposeLogger())}disposeLogger(){this._logger&&(this._logger.drop(),this._logger=void 0)}}e.SpdLogLogger=D}),define(se[66],ae([0,1,8,2,13,19]),function(Y,e,g,P,y,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let D;if(typeof P.globals.vscode!="undefined"&&typeof P.globals.vscode.context!="undefined"){const _=P.globals.vscode.context.configuration();if(_)D=_.product;else throw new Error("Sandbox: unable to resolve product configuration from preload script.")}else if(typeof Y?.__$__nodeRequire=="function"){const _=(0,E.dirname)(g.FileAccess.asFileUri("",Y));D=Y.__$__nodeRequire((0,E.joinPath)(_,"product.json").fsPath);const m=Y.__$__nodeRequire((0,E.joinPath)(_,"package.json").fsPath);y.env.VSCODE_DEV&&Object.assign(D,{nameShort:`${D.nameShort} Dev`,nameLong:`${D.nameLong} Dev`,dataFolderName:`${D.dataFolderName}-dev`,serverDataFolderName:D.serverDataFolderName?`${D.serverDataFolderName}-dev`:void 0}),Object.assign(D,{version:m.version,extensionsGallery:y.env.EXTENSIONS_GALLERY?JSON.parse(y.env.EXTENSIONS_GALLERY):D.extensionsGallery||{serviceUrl:"https://open-vsx.org/vscode/gallery",itemUrl:"https://open-vsx.org/vscode/item",resourceUrlTemplate:"https://open-vsx.org/vscode/asset/{publisher}/{name}/{version}/Microsoft.VisualStudio.Code.WebResources/{path}",controlUrl:"",recommendationsUrl:""}})}else D={nameShort:"code-server",nameLong:"code-server",applicationName:"code-server",dataFolderName:".code-server",win32MutexName:"codeserver",licenseName:"MIT",licenseUrl:"https://github.com/coder/code-server/blob/main/LICENSE",serverGreeting:[],serverLicense:[],serverLicensePrompt:"",serverApplicationName:"code-server-oss",serverDataFolderName:".vscode-server-oss",win32DirName:"code-server",win32NameVersion:"code-server",win32RegValueName:"CodeOSS",win32AppId:"{{E34003BB-9E10-4501-8C11-BE3FAA83F23F}",win32x64AppId:"{{D77B7E06-80BA-4137-BCF4-654B95CCEBC5}",win32arm64AppId:"{{D1ACE434-89C5-48D1-88D3-E2991DF85475}",win32UserAppId:"{{C6065F05-9603-4FC4-8101-B9781A25D88E}",win32x64UserAppId:"{{CC6B787D-37A0-49E8-AE24-8559A032BE0C}",win32arm64UserAppId:"{{3AEBF0C8-F733-4AD4-BADE-FDB816D53D7B}",win32AppUserModelId:"coder.code-server",win32ShellNameShort:"c&ode-server",darwinBundleIdentifier:"com.coder.code.server",linuxIconName:"com.coder.code.server",licenseFileName:"LICENSE.txt",reportIssueUrl:"https://github.com/coder/code-server/issues/new",urlProtocol:"code-oss",webviewContentExternalBaseUrlTemplate:"https://{{uuid}}.vscode-cdn.net/insider/3c8520fab514b9f56070214496b26ff68d1b1cb5/out/vs/workbench/contrib/webview/browser/pre/",builtInExtensions:[{name:"ms-vscode.js-debug-companion",version:"1.0.18",repo:"https://github.com/microsoft/vscode-js-debug-companion",metadata:{id:"99cb0b7f-7354-4278-b8da-6cc79972169d",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}},{name:"ms-vscode.js-debug",version:"1.70.0",repo:"https://github.com/microsoft/vscode-js-debug",metadata:{id:"25629058-ddac-4e17-abba-74678e126c5d",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}},{name:"ms-vscode.vscode-js-profile-table",version:"1.0.3",repo:"https://github.com/microsoft/vscode-js-profile-visualizer",metadata:{id:"7e52b41b-71ad-457b-ab7e-0620f1fc4feb",publisherId:{publisherId:"5f5636e7-69ed-4afe-b5d6-8d231fb3d3ee",publisherName:"ms-vscode",displayName:"Microsoft",flags:"verified"},publisherDisplayName:"Microsoft"}}],enableTelemetry:!0,quality:"stable",codeServerVersion:"4.6.1",documentationUrl:"https://go.microsoft.com/fwlink/?LinkID=533484#vscode",keyboardShortcutsUrlMac:"https://go.microsoft.com/fwlink/?linkid=832143",keyboardShortcutsUrlLinux:"https://go.microsoft.com/fwlink/?linkid=832144",keyboardShortcutsUrlWin:"https://go.microsoft.com/fwlink/?linkid=832145",introductoryVideosUrl:"https://go.microsoft.com/fwlink/?linkid=832146",tipsAndTricksUrl:"https://go.microsoft.com/fwlink/?linkid=852118",newsletterSignupUrl:"https://www.research.net/r/vsc-newsletter",linkProtectionTrustedDomains:["https://open-vsx.org"],version:"1.70.2",commit:"e4503b30fc78200f846c62cf8091b76ff5547662",date:"2022-08-31T17:57:20.072Z"},Object.keys(D).length===0&&Object.assign(D,{version:"1.67.0-dev",nameShort:"Code - OSS Dev",nameLong:"Code - OSS Dev",applicationName:"code-oss",dataFolderName:".vscode-oss",urlProtocol:"code-oss",reportIssueUrl:"https://github.com/microsoft/vscode/issues/new",licenseName:"MIT",licenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt"});e.default=D});var Re=this&&this.__param||function(Y,e){return function(g,P){e(g,P,Y)}};define(se[67],ae([0,1,7,17,3,9]),function(Y,e,g,P,y,E){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CommandDetectionCapability=void 0;let D=class{constructor(f,b){this._terminal=f,this._logService=b,this.type=2,this._commands=[],this._currentCommand={},this._isWindowsPty=!1,this._commandMarkers=[],this.__isCommandStorageDisabled=!1,this._onCommandStarted=new y.Emitter,this.onCommandStarted=this._onCommandStarted.event,this._onBeforeCommandFinished=new y.Emitter,this.onBeforeCommandFinished=this._onBeforeCommandFinished.event,this._onCommandFinished=new y.Emitter,this.onCommandFinished=this._onCommandFinished.event,this._onCommandInvalidated=new y.Emitter,this.onCommandInvalidated=this._onCommandInvalidated.event,this._onCurrentCommandInvalidated=new y.Emitter,this.onCurrentCommandInvalidated=this._onCurrentCommandInvalidated.event,this._dimensions={cols:this._terminal.cols,rows:this._terminal.rows},this._terminal.onResize(C=>this._handleResize(C)),this._terminal.onCursorMove(()=>this._handleCursorMove()),this._setupClearListeners()}get commands(){return this._commands}get executingCommand(){return this._currentCommand.command}get executingCommandObject(){if(this._currentCommand.commandStartMarker)return{marker:this._currentCommand.commandStartMarker}}get cwd(){return this._cwd}_handleResize(f){this._isWindowsPty&&this._preHandleResizeWindows(f),this._dimensions.cols=f.cols,this._dimensions.rows=f.rows}_handleCursorMove(){this._terminal.buffer.active===this._terminal.buffer.normal&&this._currentCommand.commandStartMarker&&this._terminal.buffer.active.baseY+this._terminal.buffer.active.cursorY<this._currentCommand.commandStartMarker.line&&(this._clearCommandsInViewport(),this._currentCommand.isInvalid=!0,this._onCurrentCommandInvalidated.fire({reason:"windows"}))}_setupClearListeners(){this.onBeforeCommandFinished(f=>{this._isWindowsPty&&(f.command.trim().toLowerCase()==="clear"||f.command.trim().toLowerCase()==="cls")&&(this._clearCommandsInViewport(),this._currentCommand.isInvalid=!0,this._onCurrentCommandInvalidated.fire({reason:"windows"}))}),this._terminal.parser.registerCsiHandler({final:"J"},f=>(this._isWindowsPty||f.length>=1&&(f[0]===2||f[0]===3)&&this._clearCommandsInViewport(),!1))}_preHandleResizeWindows(f){const b=this._terminal.buffer.active.baseY,C=f.rows-this._dimensions.rows;C>0&&this._waitForCursorMove().then(()=>{const A=Math.min(C,b);for(let p=this.commands.length-1;p>=0;p--){const a=this.commands[p];if(!a.marker||a.marker.line<b||a.commandStartLineContent===void 0)break;const h=this._terminal.buffer.active.getLine(a.marker.line);if(!h||h.translateToString(!0)===a.commandStartLineContent)continue;const I=a.marker.line-A;this._terminal.buffer.active.getLine(I)?.translateToString(!0)===a.commandStartLineContent&&this._terminal._core._bufferService.buffer.lines.onDeleteEmitter.fire({index:this._terminal.buffer.active.baseY,amount:A})}})}_clearCommandsInViewport(){let f=0;for(let b=this._commands.length-1;b>=0;b--){const C=this._commands[b].marker?.line;if(C&&C<this._terminal.buffer.active.baseY)break;f++}f>0&&this._onCommandInvalidated.fire(this._commands.splice(this._commands.length-f,f))}_waitForCursorMove(){const f=this._terminal.buffer.active.cursorX,b=this._terminal.buffer.active.cursorY;let C=0;return new Promise((A,p)=>{const a=setInterval(()=>{if(f!==this._terminal.buffer.active.cursorX||b!==this._terminal.buffer.active.cursorY){A(),clearInterval(a);return}C+=10,C>1e3&&(clearInterval(a),A())},10)})}setCwd(f){this._cwd=f}setIsWindowsPty(f){this._isWindowsPty=f}setIsCommandStorageDisabled(){this.__isCommandStorageDisabled=!0}getCwdForLine(f){return this._currentCommand.promptStartMarker&&f>=this._currentCommand.promptStartMarker?.line?this._cwd:[...this._commands].reverse().find(C=>C.marker.line<=f-1)?.cwd}handlePromptStart(f){this._currentCommand.promptStartMarker=f?.marker||this._terminal.registerMarker(0),this._logService.debug("CommandDetectionCapability#handlePromptStart",this._terminal.buffer.active.cursorX,this._currentCommand.promptStartMarker?.line)}handleContinuationStart(){this._currentCommand.currentContinuationMarker=this._terminal.registerMarker(0),this._logService.debug("CommandDetectionCapability#handleContinuationStart",this._currentCommand.currentContinuationMarker)}handleContinuationEnd(){if(!this._currentCommand.currentContinuationMarker){this._logService.warn("CommandDetectionCapability#handleContinuationEnd Received continuation end without start");return}this._currentCommand.continuations||(this._currentCommand.continuations=[]),this._currentCommand.continuations.push({marker:this._currentCommand.currentContinuationMarker,end:this._terminal.buffer.active.cursorX}),this._currentCommand.currentContinuationMarker=void 0,this._logService.debug("CommandDetectionCapability#handleContinuationEnd",this._currentCommand.continuations[this._currentCommand.continuations.length-1])}handleRightPromptStart(){this._currentCommand.commandRightPromptStartX=this._terminal.buffer.active.cursorX,this._logService.debug("CommandDetectionCapability#handleRightPromptStart",this._currentCommand.commandRightPromptStartX)}handleRightPromptEnd(){this._currentCommand.commandRightPromptEndX=this._terminal.buffer.active.cursorX,this._logService.debug("CommandDetectionCapability#handleRightPromptEnd",this._currentCommand.commandRightPromptEndX)}handleCommandStart(f){if(this._handleCommandStartOptions=f,this._currentCommand.commandStartMarker=f?.marker||this._currentCommand.commandStartMarker,this._currentCommand.commandStartMarker?.line===this._terminal.buffer.active.cursorY){this._currentCommand.commandStartX=this._terminal.buffer.active.cursorX,this._logService.debug("CommandDetectionCapability#handleCommandStart",this._currentCommand.commandStartX,this._currentCommand.commandStartMarker?.line);return}if(this._isWindowsPty){this._handleCommandStartWindows();return}this._currentCommand.commandStartX=this._terminal.buffer.active.cursorX,this._currentCommand.commandStartMarker=f?.marker||this._terminal.registerMarker(0),this._onCommandStarted.fire({marker:f?.marker||this._currentCommand.commandStartMarker,genericMarkProperties:f?.genericMarkProperties}),this._logService.debug("CommandDetectionCapability#handleCommandStart",this._currentCommand.commandStartX,this._currentCommand.commandStartMarker?.line)}_handleCommandStartWindows(){this._currentCommand.commandStartX=this._terminal.buffer.active.cursorX,this._commandMarkers.length=0,(0,g.timeout)(0).then(()=>{if(this._currentCommand.commandExecutedMarker||(this._onCursorMoveListener=this._terminal.onCursorMove(()=>{if(this._commandMarkers.length===0||this._commandMarkers[this._commandMarkers.length-1].line!==this._terminal.buffer.active.cursorY){const f=this._terminal.registerMarker(0);f&&this._commandMarkers.push(f)}})),this._currentCommand.commandStartMarker=this._terminal.registerMarker(0),this._currentCommand.commandStartMarker){const f=this._terminal.buffer.active.getLine(this._currentCommand.commandStartMarker.line);f&&(this._currentCommand.commandStartLineContent=f.translateToString(!0))}this._onCommandStarted.fire({marker:this._currentCommand.commandStartMarker}),this._logService.debug("CommandDetectionCapability#_handleCommandStartWindows",this._currentCommand.commandStartX,this._currentCommand.commandStartMarker?.line)})}handleGenericCommand(f){f?.genericMarkProperties?.disableCommandStorage&&this.setIsCommandStorageDisabled(),this.handlePromptStart(f),this.handleCommandStart(f),this.handleCommandExecuted(f),this.handleCommandFinished(void 0,f)}handleCommandExecuted(f){if(this._isWindowsPty){this._handleCommandExecutedWindows();return}if(this._currentCommand.commandExecutedMarker=f?.marker||this._terminal.registerMarker(0),this._currentCommand.commandExecutedX=this._terminal.buffer.active.cursorX,this._logService.debug("CommandDetectionCapability#handleCommandExecuted",this._currentCommand.commandExecutedX,this._currentCommand.commandExecutedMarker?.line),!this._currentCommand.commandStartMarker||!this._currentCommand.commandExecutedMarker||this._currentCommand.commandStartX===void 0)return;this._currentCommand.command=this.__isCommandStorageDisabled?"":this._terminal.buffer.active.getLine(this._currentCommand.commandStartMarker.line)?.translateToString(!0,this._currentCommand.commandStartX,this._currentCommand.commandRightPromptStartX).trim();let b=this._currentCommand.commandStartMarker.line+1;const C=this._currentCommand.commandExecutedMarker.line;for(;b<C;b++){const A=this._terminal.buffer.active.getLine(b);if(A){const p=this._currentCommand.continuations?.find(h=>h.marker.line===b);p&&(this._currentCommand.command+=`
`);const a=p?.end??0;this._currentCommand.command+=A.translateToString(!0,a)}}b===C&&(this._currentCommand.command+=this._terminal.buffer.active.getLine(C)?.translateToString(!0,void 0,this._currentCommand.commandExecutedX)||"")}_handleCommandExecutedWindows(){this._onCursorMoveListener?.dispose(),this._onCursorMoveListener=void 0,this._evaluateCommandMarkersWindows(),this._currentCommand.commandExecutedX=this._terminal.buffer.active.cursorX,this._logService.debug("CommandDetectionCapability#handleCommandExecuted",this._currentCommand.commandExecutedX,this._currentCommand.commandExecutedMarker?.line)}invalidateCurrentCommand(f){this._currentCommand.isInvalid=!0,this._onCurrentCommandInvalidated.fire(f)}handleCommandFinished(f,b){this._isWindowsPty&&this._preHandleCommandFinishedWindows(),this._currentCommand.commandFinishedMarker=b?.marker||this._terminal.registerMarker(0);let C=this._currentCommand.command;if(this._logService.debug("CommandDetectionCapability#handleCommandFinished",this._terminal.buffer.active.cursorX,this._currentCommand.commandFinishedMarker?.line,this._currentCommand.command,this._currentCommand),this._exitCode=f,this._exitCode===void 0){const A=this.commands.length>0?this.commands[this.commands.length-1]:void 0;C&&C.length>0&&A?.command===C&&(this._exitCode=A.exitCode)}if(!(this._currentCommand.commandStartMarker===void 0||!this._terminal.buffer.active)){if(this._exitCode===void 0&&C===void 0&&(C=""),C!==void 0&&!C.startsWith("\\")||this._handleCommandStartOptions?.ignoreCommandLine){const A=this._terminal.buffer.active,p=Date.now(),a=this._currentCommand.commandExecutedMarker,h=this._currentCommand.commandFinishedMarker,I={command:this._handleCommandStartOptions?.ignoreCommandLine?"":C||"",marker:this._currentCommand.commandStartMarker,endMarker:h,executedMarker:a,timestamp:p,cwd:this._cwd,exitCode:this._exitCode,commandStartLineContent:this._currentCommand.commandStartLineContent,hasOutput:()=>!a?.isDisposed&&!h?.isDisposed&&!!(a&&h&&a?.line<h.line),getOutput:()=>_(a,h,A),genericMarkProperties:b?.genericMarkProperties};this._commands.push(I),this._logService.debug("CommandDetectionCapability#onCommandFinished",I),this._onBeforeCommandFinished.fire(I),this._currentCommand.isInvalid||this._onCommandFinished.fire(I)}this._currentCommand.previousCommandMarker=this._currentCommand.commandStartMarker,this._currentCommand={},this._handleCommandStartOptions=void 0}}_preHandleCommandFinishedWindows(){this._currentCommand.commandExecutedMarker||(this._commandMarkers.length===0&&(this._currentCommand.commandStartMarker||(this._currentCommand.commandStartMarker=this._terminal.registerMarker(0)),this._currentCommand.commandStartMarker&&this._commandMarkers.push(this._currentCommand.commandStartMarker)),this._evaluateCommandMarkersWindows())}_evaluateCommandMarkersWindows(){if(this._commandMarkers.length!==0){if(this._commandMarkers=this._commandMarkers.sort((f,b)=>f.line-b.line),this._currentCommand.commandStartMarker=this._commandMarkers[0],this._currentCommand.commandStartMarker){const f=this._terminal.buffer.active.getLine(this._currentCommand.commandStartMarker.line);f&&(this._currentCommand.commandStartLineContent=f.translateToString(!0))}this._currentCommand.commandExecutedMarker=this._commandMarkers[this._commandMarkers.length-1]}}setCommandLine(f){this._logService.debug("CommandDetectionCapability#setCommandLine",f),this._currentCommand.command=f}serialize(){const f=this.commands.map(b=>({startLine:b.marker?.line,startX:void 0,endLine:b.endMarker?.line,executedLine:b.executedMarker?.line,command:this.__isCommandStorageDisabled?"":b.command,cwd:b.cwd,exitCode:b.exitCode,commandStartLineContent:b.commandStartLineContent,timestamp:b.timestamp}));return this._currentCommand.commandStartMarker&&f.push({startLine:this._currentCommand.commandStartMarker.line,startX:this._currentCommand.commandStartX,endLine:void 0,executedLine:void 0,command:"",cwd:this._cwd,exitCode:void 0,commandStartLineContent:void 0,timestamp:0}),{isWindowsPty:this._isWindowsPty,commands:f}}deserialize(f){f.isWindowsPty&&this.setIsWindowsPty(f.isWindowsPty);const b=this._terminal.buffer.normal;for(const C of f.commands){const A=C.startLine!==void 0?this._terminal.registerMarker(C.startLine-(b.baseY+b.cursorY)):void 0;if(!A)continue;if(!C.endLine){this._currentCommand.commandStartMarker=A,this._currentCommand.commandStartX=C.startX,this._cwd=C.cwd,this._onCommandStarted.fire({marker:A});continue}const p=C.endLine!==void 0?this._terminal.registerMarker(C.endLine-(b.baseY+b.cursorY)):void 0,a=C.executedLine!==void 0?this._terminal.registerMarker(C.executedLine-(b.baseY+b.cursorY)):void 0,h={command:this.__isCommandStorageDisabled?"":C.command,marker:A,endMarker:p,executedMarker:a,timestamp:C.timestamp,cwd:C.cwd,commandStartLineContent:C.commandStartLineContent,exitCode:C.exitCode,hasOutput:()=>!a?.isDisposed&&!p?.isDisposed&&!!(a&&p&&a.line<p.line),getOutput:()=>_(a,p,b),genericMarkProperties:C.genericMarkProperties};this._commands.push(h),this._logService.debug("CommandDetectionCapability#onCommandFinished",h),this._onCommandFinished.fire(h)}}};fe([(0,P.debounce)(500)],D.prototype,"_handleCursorMove",null),D=fe([Re(1,E.ILogService)],D),e.CommandDetectionCapability=D;function _(m,f,b){if(!m||!f)return;const C=m.line,A=f.line;if(C===A)return;let p="",a;for(let h=C;h<A;h++)a=b.getLine(h),!!a&&(p+=a.translateToString(!a.isWrapped)+(a.isWrapped?"":`
`));return p===""?void 0:p}}),define(se[68],ae([0,1,3]),function(Y,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CwdDetectionCapability=void 0;class P{constructor(){this.type=0,this._cwd="",this._cwds=new Map,this._onDidChangeCwd=new g.Emitter,this.onDidChangeCwd=this._onDidChangeCwd.event}get cwds(){return Array.from(this._cwds.keys())}getCwd(){return this._cwd}updateCwd(E){const D=this._cwd!==E;this._cwd=E;const _=this._cwds.get(this._cwd)||0;this._cwds.delete(this._cwd),this._cwds.set(this._cwd,_+1),D&&this._onDidChangeCwd.fire(E)}}e.CwdDetectionCapability=P}),define(se[69],ae([0,1,3]),function(Y,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PartialCommandDetectionCapability=void 0;var P;(function(E){E[E.MinimumPromptLength=2]="MinimumPromptLength"})(P||(P={}));class y{constructor(D){this._terminal=D,this.type=3,this._commands=[],this._onCommandFinished=new g.Emitter,this.onCommandFinished=this._onCommandFinished.event,this._terminal.onData(_=>this._onData(_)),this._terminal.parser.registerCsiHandler({final:"J"},_=>(_.length>=1&&(_[0]===2||_[0]===3)&&this._clearCommandsInViewport(),!1))}get commands(){return this._commands}_onData(D){D==="\r"&&this._onEnter()}_onEnter(){if(!!this._terminal&&this._terminal.buffer.active.cursorX>=2){const D=this._terminal.registerMarker(0);D&&(this._commands.push(D),this._onCommandFinished.fire(D))}}_clearCommandsInViewport(){let D=0;for(let _=this._commands.length-1;_>=0&&!(this._commands[_].line<this._terminal.buffer.active.baseY);_--)D++;this._commands.splice(this._commands.length-D,D)}}e.PartialCommandDetectionCapability=y}),define(se[70],ae([0,1,3,4]),function(Y,e,g,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalCapabilityStoreMultiplexer=e.TerminalCapabilityStore=void 0;class y extends P.Disposable{constructor(){super(...arguments);this._map=new Map,this._onDidRemoveCapability=this._register(new g.Emitter),this.onDidRemoveCapability=this._onDidRemoveCapability.event,this._onDidAddCapability=this._register(new g.Emitter),this.onDidAddCapability=this._onDidAddCapability.event}get items(){return this._map.keys()}add(_,m){this._map.set(_,m),this._onDidAddCapability.fire(_)}get(_){return this._map.get(_)}remove(_){!this._map.has(_)||(this._map.delete(_),this._onDidRemoveCapability.fire(_))}has(_){return this._map.has(_)}}e.TerminalCapabilityStore=y;class E extends P.Disposable{constructor(){super(...arguments);this._stores=[],this._onDidRemoveCapability=this._register(new g.Emitter),this.onDidRemoveCapability=this._onDidRemoveCapability.event,this._onDidAddCapability=this._register(new g.Emitter),this.onDidAddCapability=this._onDidAddCapability.event}get items(){return this._items()}*_items(){for(const _ of this._stores)for(const m of _.items)yield m}has(_){for(const m of this._stores)for(const f of m.items)if(f===_)return!0;return!1}get(_){for(const m of this._stores){const f=m.get(_);if(f)return f}}add(_){this._stores.push(_);for(const m of _.items)this._onDidAddCapability.fire(m);_.onDidAddCapability(m=>this._onDidAddCapability.fire(m)),_.onDidRemoveCapability(m=>this._onDidRemoveCapability.fire(m))}}e.TerminalCapabilityStoreMultiplexer=E}),define(se[71],ae([0,1,7,18,3,4,9]),function(Y,e,g,P,y,E,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RequestStore=void 0;let _=class extends E.Disposable{constructor(f,b){super();this._logService=b,this._lastRequestId=0,this._pendingRequests=new Map,this._pendingRequestDisposables=new Map,this._onCreateRequest=this._register(new y.Emitter),this.onCreateRequest=this._onCreateRequest.event,this._timeout=f===void 0?15e3:f}createRequest(f){return new Promise((b,C)=>{const A=++this._lastRequestId;this._pendingRequests.set(A,b),this._onCreateRequest.fire({requestId:A,...f});const p=new P.CancellationTokenSource;(0,g.timeout)(this._timeout,p.token).then(()=>C(`Request ${A} timed out (${this._timeout}ms)`)),this._pendingRequestDisposables.set(A,[(0,E.toDisposable)(()=>p.cancel())])})}acceptReply(f,b){const C=this._pendingRequests.get(f);C?(this._pendingRequests.delete(f),(0,E.dispose)(this._pendingRequestDisposables.get(f)||[]),this._pendingRequestDisposables.delete(f),C(b)):this._logService.warn(`RequestStore#acceptReply was called without receiving a matching request ${f}`)}};_=fe([Re(1,D.ILogService)],_),e.RequestStore=_}),define(se[27],ae([0,1,26]),function(Y,e,g){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalExitReason=e.ShellIntegrationStatus=e.ProfileSource=e.FlowControlConstants=e.LocalReconnectConstants=e.TerminalLocationString=e.TerminalLocation=e.HeartbeatConstants=e.ProcessPropertyType=e.IPtyService=e.TerminalIpcChannels=e.TitleEventSource=e.WindowsShellType=e.PosixShellType=e.TerminalLogConstants=e.TerminalSettingId=e.TerminalSettingPrefix=void 0;var P;(function(o){o.Shell="terminal.integrated.shell.",o.ShellArgs="terminal.integrated.shellArgs.",o.DefaultProfile="terminal.integrated.defaultProfile.",o.Profiles="terminal.integrated.profiles."})(P=e.TerminalSettingPrefix||(e.TerminalSettingPrefix={}));var y;(function(o){o.ShellLinux="terminal.integrated.shell.linux",o.ShellMacOs="terminal.integrated.shell.osx",o.ShellWindows="terminal.integrated.shell.windows",o.SendKeybindingsToShell="terminal.integrated.sendKeybindingsToShell",o.AutomationShellLinux="terminal.integrated.automationShell.linux",o.AutomationShellMacOs="terminal.integrated.automationShell.osx",o.AutomationShellWindows="terminal.integrated.automationShell.windows",o.AutomationProfileLinux="terminal.integrated.automationProfile.linux",o.AutomationProfileMacOs="terminal.integrated.automationProfile.osx",o.AutomationProfileWindows="terminal.integrated.automationProfile.windows",o.ShellArgsLinux="terminal.integrated.shellArgs.linux",o.ShellArgsMacOs="terminal.integrated.shellArgs.osx",o.ShellArgsWindows="terminal.integrated.shellArgs.windows",o.ProfilesWindows="terminal.integrated.profiles.windows",o.ProfilesMacOs="terminal.integrated.profiles.osx",o.ProfilesLinux="terminal.integrated.profiles.linux",o.DefaultProfileLinux="terminal.integrated.defaultProfile.linux",o.DefaultProfileMacOs="terminal.integrated.defaultProfile.osx",o.DefaultProfileWindows="terminal.integrated.defaultProfile.windows",o.UseWslProfiles="terminal.integrated.useWslProfiles",o.TabsDefaultColor="terminal.integrated.tabs.defaultColor",o.TabsDefaultIcon="terminal.integrated.tabs.defaultIcon",o.TabsEnabled="terminal.integrated.tabs.enabled",o.TabsEnableAnimation="terminal.integrated.tabs.enableAnimation",o.TabsHideCondition="terminal.integrated.tabs.hideCondition",o.TabsShowActiveTerminal="terminal.integrated.tabs.showActiveTerminal",o.TabsShowActions="terminal.integrated.tabs.showActions",o.TabsLocation="terminal.integrated.tabs.location",o.TabsFocusMode="terminal.integrated.tabs.focusMode",o.MacOptionIsMeta="terminal.integrated.macOptionIsMeta",o.MacOptionClickForcesSelection="terminal.integrated.macOptionClickForcesSelection",o.AltClickMovesCursor="terminal.integrated.altClickMovesCursor",o.CopyOnSelection="terminal.integrated.copyOnSelection",o.EnableMultiLinePasteWarning="terminal.integrated.enableMultiLinePasteWarning",o.DrawBoldTextInBrightColors="terminal.integrated.drawBoldTextInBrightColors",o.FontFamily="terminal.integrated.fontFamily",o.FontSize="terminal.integrated.fontSize",o.LetterSpacing="terminal.integrated.letterSpacing",o.LineHeight="terminal.integrated.lineHeight",o.MinimumContrastRatio="terminal.integrated.minimumContrastRatio",o.FastScrollSensitivity="terminal.integrated.fastScrollSensitivity",o.MouseWheelScrollSensitivity="terminal.integrated.mouseWheelScrollSensitivity",o.BellDuration="terminal.integrated.bellDuration",o.FontWeight="terminal.integrated.fontWeight",o.FontWeightBold="terminal.integrated.fontWeightBold",o.CursorBlinking="terminal.integrated.cursorBlinking",o.CursorStyle="terminal.integrated.cursorStyle",o.CursorWidth="terminal.integrated.cursorWidth",o.Scrollback="terminal.integrated.scrollback",o.DetectLocale="terminal.integrated.detectLocale",o.DefaultLocation="terminal.integrated.defaultLocation",o.GpuAcceleration="terminal.integrated.gpuAcceleration",o.TerminalTitleSeparator="terminal.integrated.tabs.separator",o.TerminalTitle="terminal.integrated.tabs.title",o.TerminalDescription="terminal.integrated.tabs.description",o.RightClickBehavior="terminal.integrated.rightClickBehavior",o.Cwd="terminal.integrated.cwd",o.ConfirmOnExit="terminal.integrated.confirmOnExit",o.ConfirmOnKill="terminal.integrated.confirmOnKill",o.EnableBell="terminal.integrated.enableBell",o.CommandsToSkipShell="terminal.integrated.commandsToSkipShell",o.AllowChords="terminal.integrated.allowChords",o.AllowMnemonics="terminal.integrated.allowMnemonics",o.EnvMacOs="terminal.integrated.env.osx",o.EnvLinux="terminal.integrated.env.linux",o.EnvWindows="terminal.integrated.env.windows",o.EnvironmentChangesIndicator="terminal.integrated.environmentChangesIndicator",o.EnvironmentChangesRelaunch="terminal.integrated.environmentChangesRelaunch",o.ShowExitAlert="terminal.integrated.showExitAlert",o.SplitCwd="terminal.integrated.splitCwd",o.WindowsEnableConpty="terminal.integrated.windowsEnableConpty",o.WordSeparators="terminal.integrated.wordSeparators",o.EnableFileLinks="terminal.integrated.enableFileLinks",o.UnicodeVersion="terminal.integrated.unicodeVersion",o.LocalEchoLatencyThreshold="terminal.integrated.localEchoLatencyThreshold",o.LocalEchoEnabled="terminal.integrated.localEchoEnabled",o.LocalEchoExcludePrograms="terminal.integrated.localEchoExcludePrograms",o.LocalEchoStyle="terminal.integrated.localEchoStyle",o.EnablePersistentSessions="terminal.integrated.enablePersistentSessions",o.PersistentSessionReviveProcess="terminal.integrated.persistentSessionReviveProcess",o.CustomGlyphs="terminal.integrated.customGlyphs",o.PersistentSessionScrollback="terminal.integrated.persistentSessionScrollback",o.InheritEnv="terminal.integrated.inheritEnv",o.ShowLinkHover="terminal.integrated.showLinkHover",o.IgnoreProcessNames="terminal.integrated.ignoreProcessNames",o.AutoReplies="terminal.integrated.autoReplies",o.ShellIntegrationEnabled="terminal.integrated.shellIntegration.enabled",o.ShellIntegrationShowWelcome="terminal.integrated.shellIntegration.showWelcome",o.ShellIntegrationDecorationsEnabled="terminal.integrated.shellIntegration.decorationsEnabled",o.ShellIntegrationDecorationIcon="terminal.integrated.shellIntegration.decorationIcon",o.ShellIntegrationDecorationIconError="terminal.integrated.shellIntegration.decorationIconError",o.ShellIntegrationDecorationIconSuccess="terminal.integrated.shellIntegration.decorationIconSuccess",o.ShellIntegrationCommandHistory="terminal.integrated.shellIntegration.history"})(y=e.TerminalSettingId||(e.TerminalSettingId={}));var E;(function(o){o.FileName="ptyhost"})(E=e.TerminalLogConstants||(e.TerminalLogConstants={}));var D;(function(o){o.PowerShell="pwsh",o.Bash="bash",o.Fish="fish",o.Sh="sh",o.Csh="csh",o.Ksh="ksh",o.Zsh="zsh"})(D=e.PosixShellType||(e.PosixShellType={}));var _;(function(o){o.CommandPrompt="cmd",o.PowerShell="pwsh",o.Wsl="wsl",o.GitBash="gitbash"})(_=e.WindowsShellType||(e.WindowsShellType={}));var m;(function(o){o[o.Api=0]="Api",o[o.Process=1]="Process",o[o.Sequence=2]="Sequence",o[o.Config=3]="Config"})(m=e.TitleEventSource||(e.TitleEventSource={}));var f;(function(o){o.LocalPty="localPty",o.PtyHost="ptyHost",o.Log="log",o.Heartbeat="heartbeat"})(f=e.TerminalIpcChannels||(e.TerminalIpcChannels={})),e.IPtyService=(0,g.createDecorator)("ptyService");var b;(function(o){o.Cwd="cwd",o.InitialCwd="initialCwd",o.FixedDimensions="fixedDimensions",o.Title="title",o.ShellType="shellType",o.HasChildProcesses="hasChildProcesses",o.ResolvedShellLaunchConfig="resolvedShellLaunchConfig",o.OverrideDimensions="overrideDimensions",o.FailedShellIntegrationActivation="failedShellIntegrationActivation",o.UsedShellIntegrationInjection="usedShellIntegrationInjection"})(b=e.ProcessPropertyType||(e.ProcessPropertyType={}));var C;(function(o){o[o.BeatInterval=5e3]="BeatInterval",o[o.FirstWaitMultiplier=1.2]="FirstWaitMultiplier",o[o.SecondWaitMultiplier=1]="SecondWaitMultiplier",o[o.CreateProcessTimeout=5e3]="CreateProcessTimeout"})(C=e.HeartbeatConstants||(e.HeartbeatConstants={}));var A;(function(o){o[o.Panel=1]="Panel",o[o.Editor=2]="Editor"})(A=e.TerminalLocation||(e.TerminalLocation={}));var p;(function(o){o.TerminalView="view",o.Editor="editor"})(p=e.TerminalLocationString||(e.TerminalLocationString={}));var a;(function(o){o[o.GraceTime=6e4]="GraceTime",o[o.ShortGraceTime=6e3]="ShortGraceTime"})(a=e.LocalReconnectConstants||(e.LocalReconnectConstants={}));var h;(function(o){o[o.HighWatermarkChars=1e5]="HighWatermarkChars",o[o.LowWatermarkChars=5e3]="LowWatermarkChars",o[o.CharCountAckSize=5e3]="CharCountAckSize"})(h=e.FlowControlConstants||(e.FlowControlConstants={}));var I;(function(o){o.GitBash="Git Bash",o.Pwsh="PowerShell"})(I=e.ProfileSource||(e.ProfileSource={}));var T;(function(o){o[o.Off=0]="Off",o[o.FinalTerm=1]="FinalTerm",o[o.VSCode=2]="VSCode"})(T=e.ShellIntegrationStatus||(e.ShellIntegrationStatus={}));var N;(function(o){o[o.Unknown=0]="Unknown",o[o.Shutdown=1]="Shutdown",o[o.Process=2]="Process",o[o.User=3]="User",o[o.Extension=4]="Extension"})(N=e.TerminalExitReason||(e.TerminalExitReason={}))}),define(se[72],ae([0,1,7,4,2]),function(Y,e,g,P,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalAutoResponder=void 0;class E extends P.Disposable{constructor(_,m,f){super();this._pointer=0,this._paused=!1,this._throttled=!1,this._register(_.onProcessData(b=>{if(this._paused||this._throttled)return;const C=typeof b=="string"?b:b.data;for(let A=0;A<C.length;A++)C[A]===m[this._pointer]?this._pointer++:this._reset(),this._pointer===m.length&&(_.input(f),this._throttled=!0,(0,g.timeout)(1e3).then(()=>this._throttled=!1),this._reset())}))}_reset(){this._pointer=0}handleResize(){y.isWindows&&(this._paused=!0)}handleInput(){this._paused=!1}}e.TerminalAutoResponder=E}),define(se[73],ae([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalDataBufferer=void 0;class g{constructor(y){this._callback=y,this._terminalBufferMap=new Map}dispose(){for(const y of this._terminalBufferMap.values())y.dispose()}startBuffering(y,E,D=5){const _=E(m=>{const f=typeof m=="string"?m:m.data;let b=this._terminalBufferMap.get(y);if(b){b.data.push(f);return}const C=setTimeout(()=>this.flushBuffer(y),D);b={data:[f],timeoutId:C,dispose:()=>{clearTimeout(C),this.flushBuffer(y),_.dispose()}},this._terminalBufferMap.set(y,b)});return _}stopBuffering(y){const E=this._terminalBufferMap.get(y);E&&E.dispose()}flushBuffer(y){const E=this._terminalBufferMap.get(y);E&&(this._terminalBufferMap.delete(y),this._callback(y,E.data.join("")))}}e.TerminalDataBufferer=g}),define(se[74],ae([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.collapseTildePath=e.escapeNonWindowsPath=void 0;function g(y){let E=y;E.indexOf("\\")!==0&&(E=E.replace(/\\/g,"\\\\"));const D=/[\`\$\|\&\>\~\#\!\^\*\;\<\"\']/g;return E=E.replace(D,""),`'${E}'`}e.escapeNonWindowsPath=g;function P(y,E,D){if(!y)return"";if(!E)return y;E.match(/[\/\\]$/)&&(E=E.slice(0,E.length-1));const _=y.replace(/\\/g,"/").toLowerCase(),m=E.replace(/\\/g,"/").toLowerCase();return _.includes(m)?`~${D}${y.slice(E.length+1)}`:y}e.collapseTildePath=P}),define(se[75],ae([0,1]),function(Y,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.formatMessageForTerminal=void 0;function g(P,y={}){let E="";return y.excludeLeadingNewLine||(E+=`\r
`),E+=" * ",y.loudFormatting?E+="":E+="",E+=` ${P} 
\r`,E}e.formatMessageForTerminal=g}),define(se[76],ae([0,1,4,70,67,68,69,9,3]),function(Y,e,g,P,y,E,D,_,m){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ShellIntegrationAddon=void 0;var f;(function(p){p[p.FinalTerm=133]="FinalTerm",p[p.VSCode=633]="VSCode",p[p.ITerm=1337]="ITerm"})(f||(f={}));var b;(function(p){p.PromptStart="A",p.CommandStart="B",p.CommandExecuted="C",p.CommandFinished="D",p.CommandLine="E",p.ContinuationStart="F",p.ContinuationEnd="G",p.RightPromptStart="H",p.RightPromptEnd="I",p.Property="P"})(b||(b={}));var C;(function(p){p.SetMark="SetMark"})(C||(C={}));let A=class extends g.Disposable{constructor(a,h,I){super();this._disableTelemetry=a,this._telemetryService=h,this._logService=I,this.capabilities=new P.TerminalCapabilityStore,this._hasUpdatedTelemetry=!1,this._commonProtocolDisposables=[],this._status=0,this._onDidChangeStatus=new m.Emitter,this.onDidChangeStatus=this._onDidChangeStatus.event,this._register((0,g.toDisposable)(()=>{this._clearActivationTimeout(),this._disposeCommonProtocol()}))}get status(){return this._status}_disposeCommonProtocol(){(0,g.dispose)(this._commonProtocolDisposables),this._commonProtocolDisposables.length=0}activate(a){this._terminal=a,this.capabilities.add(3,new D.PartialCommandDetectionCapability(this._terminal)),this._register(a.parser.registerOscHandler(633,h=>this._handleVSCodeSequence(h))),this._register(a.parser.registerOscHandler(1337,h=>this._doHandleITermSequence(h))),this._commonProtocolDisposables.push(a.parser.registerOscHandler(133,h=>this._handleFinalTermSequence(h))),this._ensureCapabilitiesOrAddFailureTelemetry()}_handleFinalTermSequence(a){const h=this._doHandleFinalTermSequence(a);return this._status===0&&(this._status=1,this._onDidChangeStatus.fire(this._status)),h}_doHandleFinalTermSequence(a){if(!this._terminal)return!1;const[h,...I]=a.split(";");switch(h){case"A":return this._createOrGetCommandDetection(this._terminal).handlePromptStart(),!0;case"B":return this._createOrGetCommandDetection(this._terminal).handleCommandStart({ignoreCommandLine:!0}),!0;case"C":return this._createOrGetCommandDetection(this._terminal).handleCommandExecuted(),!0;case"D":{const T=I.length===1?parseInt(I[0]):void 0;return this._createOrGetCommandDetection(this._terminal).handleCommandFinished(T),!0}}return!1}_handleVSCodeSequence(a){const h=this._doHandleVSCodeSequence(a);return!this._hasUpdatedTelemetry&&h&&(this._telemetryService?.publicLog2("terminal/shellIntegrationActivationSucceeded"),this._hasUpdatedTelemetry=!0,this._clearActivationTimeout()),this._status!==2&&(this._status=2,this._onDidChangeStatus.fire(this._status)),h}async _ensureCapabilitiesOrAddFailureTelemetry(){!this._telemetryService||this._disableTelemetry||(this._activationTimeout=setTimeout(()=>{!this.capabilities.get(2)&&!this.capabilities.get(0)&&(this._telemetryService?.publicLog2("terminal/shellIntegrationActivationTimeout"),this._logService.warn("Shell integration failed to add capabilities within 10 seconds")),this._hasUpdatedTelemetry=!0},1e4))}_clearActivationTimeout(){this._activationTimeout!==void 0&&(clearTimeout(this._activationTimeout),this._activationTimeout=void 0)}_doHandleVSCodeSequence(a){if(!this._terminal)return!1;const[h,...I]=a.split(";");switch(h){case"A":return this._createOrGetCommandDetection(this._terminal).handlePromptStart(),!0;case"B":return this._createOrGetCommandDetection(this._terminal).handleCommandStart(),!0;case"C":return this._createOrGetCommandDetection(this._terminal).handleCommandExecuted(),!0;case"D":{const T=I.length===1?parseInt(I[0]):void 0;return this._createOrGetCommandDetection(this._terminal).handleCommandFinished(T),!0}case"E":{let T;return I.length===1?T=this._deserializeMessage(I[0]):T="",this._createOrGetCommandDetection(this._terminal).setCommandLine(T),!0}case"F":return this._createOrGetCommandDetection(this._terminal).handleContinuationStart(),!0;case"G":return this._createOrGetCommandDetection(this._terminal).handleContinuationEnd(),!0;case"H":return this._createOrGetCommandDetection(this._terminal).handleRightPromptStart(),!0;case"I":return this._createOrGetCommandDetection(this._terminal).handleRightPromptEnd(),!0;case"P":{const[T,N]=I[0].split("=");if(N===void 0)return!0;const o=this._deserializeMessage(N);switch(T){case"Cwd":return this._createOrGetCwdDetection().updateCwd(o),this.capabilities.get(2)?.setCwd(o),!0;case"IsWindows":return this._createOrGetCommandDetection(this._terminal).setIsWindowsPty(o==="True"),!0;case"Task":this.capabilities.get(2)?.setIsCommandStorageDisabled()}}}return!1}_doHandleITermSequence(a){if(!this._terminal)return!1;const[h]=a.split(";");switch(h){case"SetMark":this._createOrGetCommandDetection(this._terminal).handleGenericCommand({genericMarkProperties:{disableCommandStorage:!0}})}return!1}serialize(){return!this._terminal||!this.capabilities.has(2)?{isWindowsPty:!1,commands:[]}:this._createOrGetCommandDetection(this._terminal).serialize()}deserialize(a){if(!this._terminal)throw new Error("Cannot restore commands before addon is activated");this._createOrGetCommandDetection(this._terminal).deserialize(a)}_createOrGetCwdDetection(){let a=this.capabilities.get(0);return a||(a=new E.CwdDetectionCapability,this.capabilities.add(0,a)),a}_createOrGetCommandDetection(a){let h=this.capabilities.get(2);return h||(h=new y.CommandDetectionCapability(a,this._logService),this.capabilities.add(2,h)),h}_deserializeMessage(a){return a.replace(/<LF>/g,`
`).replace(/<CL>/g,";").replace(/<ST>/g,"\x07")}};A=fe([Re(2,_.ILogService)],A),e.ShellIntegrationAddon=A}),define(se[33],ae([0,1,5,17,3,4,47,9]),function(Y,e,g,P,y,E,D,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ChildProcessMonitor=e.ignoreProcessNames=void 0;var m;(function(b){b[b.InactiveThrottleDuration=5e3]="InactiveThrottleDuration",b[b.ActiveDebounceDuration=1e3]="ActiveDebounceDuration"})(m||(m={})),e.ignoreProcessNames=[];let f=class extends E.Disposable{constructor(C,A){super();this._pid=C,this._logService=A,this._isDisposed=!1,this._hasChildProcesses=!1,this._onDidChangeHasChildProcesses=this._register(new y.Emitter),this.onDidChangeHasChildProcesses=this._onDidChangeHasChildProcesses.event}set hasChildProcesses(C){this._hasChildProcesses!==C&&(this._hasChildProcesses=C,this._logService.debug("ChildProcessMonitor: Has child processes changed",C),this._onDidChangeHasChildProcesses.fire(C))}get hasChildProcesses(){return this._hasChildProcesses}dispose(){this._isDisposed=!0,super.dispose()}handleInput(){this._refreshActive()}handleOutput(){this._refreshInactive()}async _refreshActive(){if(!this._isDisposed)try{const C=await(0,D.listProcesses)(this._pid);this.hasChildProcesses=this._processContainsChildren(C)}catch(C){this._logService.debug("ChildProcessMonitor: Fetching process tree failed",C)}}_refreshInactive(){this._refreshActive()}_processContainsChildren(C){if(!C.children)return!1;if(C.children.length===1){const A=C.children[0];let p;if(A.cmd.startsWith('"'))p=A.cmd.substring(1,A.cmd.indexOf('"',1));else{const a=A.cmd.indexOf(" ");a===-1?p=A.cmd:p=A.cmd.substring(0,a)}return e.ignoreProcessNames.indexOf((0,g.parse)(p).name)===-1}return C.children.length>0}};fe([(0,P.debounce)(1e3)],f.prototype,"_refreshActive",null),fe([(0,P.throttle)(5e3)],f.prototype,"_refreshInactive",null),f=fe([Re(1,_.ILogService)],f),e.ChildProcessMonitor=f}),define(se[77],ae([0,1,3,4,27]),function(Y,e,g,P,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HeartbeatService=void 0;class E extends P.Disposable{constructor(){super();this._onBeat=this._register(new g.Emitter),this.onBeat=this._onBeat.event;const _=setInterval(()=>{this._onBeat.fire()},y.HeartbeatConstants.BeatInterval);this._register((0,P.toDisposable)(()=>clearInterval(_)))}}e.HeartbeatService=E}),define(se[34],ae([0,1,14,8,25,5,2,13,11,12,20]),function(Y,e,g,P,y,E,D,_,m,f,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shellIntegrationArgs=e.ShellIntegrationExecutable=e.getShellIntegrationInjection=e.findExecutable=e.getWindowsBuildNumber=void 0;function C(){const u=/(\d+)\.(\d+)\.(\d+)/g.exec(g.release());let w=0;return u&&u.length===4&&(w=parseInt(u[3])),w}e.getWindowsBuildNumber=C;async function A(u,w,v,d=_.env,r=b.Promises.exists){if(E.isAbsolute(u))return await r(u)?u:void 0;if(w===void 0&&(w=_.cwd()),E.dirname(u)!=="."){const n=E.join(w,u);return await r(n)?n:void 0}const s=(0,y.getCaseInsensitive)(d,"PATH");if(v===void 0&&(0,f.isString)(s)&&(v=s.split(E.delimiter)),v===void 0||v.length===0){const n=E.join(w,u);return await r(n)?n:void 0}for(const n of v){let t;if(E.isAbsolute(n)?t=E.join(n,u):t=E.join(w,n,u),await r(t))return t;if(D.isWindows){let l=t+".com";if(await r(l)||(l=t+".exe",await r(l)))return l}}const i=E.join(w,u);return await r(i)?i:void 0}e.findExecutable=A;function p(u,w,v){if(!w.enabled||!u.executable||u.isFeatureTerminal||u.hideFromUser||u.ignoreShellIntegration)return;const d=u.args,r=_.platform==="win32"?E.basename(u.executable).toLowerCase():E.basename(u.executable),c=E.dirname(P.FileAccess.asFileUri("",Y).fsPath);let s;const i={VSCODE_INJECTION:"1"};if(D.isWindows){if(r==="pwsh.exe")return!d||N(d)?s=e.shellIntegrationArgs.get(a.WindowsPwsh):T(d)&&(s=e.shellIntegrationArgs.get(a.WindowsPwshLogin)),s?(s&&(s=[...s],s[s.length-1]=(0,m.format)(s[s.length-1],c,"")),{newArgs:s,envMixin:i}):void 0;v.warn(`Shell integration cannot be enabled for executable "${u.executable}" and args`,u.args);return}switch(r){case"bash":return!d||d.length===0?s=e.shellIntegrationArgs.get(a.Bash):o(d)&&(i.VSCODE_SHELL_LOGIN="1",s=e.shellIntegrationArgs.get(a.Bash)),s?(s=[...s],s[s.length-1]=(0,m.format)(s[s.length-1],c),{newArgs:s,envMixin:i}):void 0;case"pwsh":return!d||N(d)?s=e.shellIntegrationArgs.get(a.Pwsh):T(d)&&(s=e.shellIntegrationArgs.get(a.PwshLogin)),s?(s=[...s],s[s.length-1]=(0,m.format)(s[s.length-1],c,""),{newArgs:s,envMixin:i}):void 0;case"zsh":{if(!d||d.length===0?s=e.shellIntegrationArgs.get(a.Zsh):o(d)?s=e.shellIntegrationArgs.get(a.ZshLogin):(d===e.shellIntegrationArgs.get(a.Zsh)||d===e.shellIntegrationArgs.get(a.ZshLogin))&&(s=d),!s)return;s=[...s],s[s.length-1]=(0,m.format)(s[s.length-1],c);const n=E.join(g.tmpdir(),"vscode-zsh");i.ZDOTDIR=n;const t=[];return t.push({source:E.join(c,"out/vs/workbench/contrib/terminal/browser/media/shellIntegration-rc.zsh"),dest:E.join(n,".zshrc")}),t.push({source:E.join(c,"out/vs/workbench/contrib/terminal/browser/media/shellIntegration-profile.zsh"),dest:E.join(n,".zprofile")}),t.push({source:E.join(c,"out/vs/workbench/contrib/terminal/browser/media/shellIntegration-env.zsh"),dest:E.join(n,".zshenv")}),t.push({source:E.join(c,"out/vs/workbench/contrib/terminal/browser/media/shellIntegration-login.zsh"),dest:E.join(n,".zlogin")}),{newArgs:s,envMixin:i,filesToCopy:t}}}v.warn(`Shell integration cannot be enabled for executable "${u.executable}" and args`,u.args)}e.getShellIntegrationInjection=p;var a;(function(u){u.WindowsPwsh="windows-pwsh",u.WindowsPwshLogin="windows-pwsh-login",u.Pwsh="pwsh",u.PwshLogin="pwsh-login",u.Zsh="zsh",u.ZshLogin="zsh-login",u.Bash="bash"})(a=e.ShellIntegrationExecutable||(e.ShellIntegrationExecutable={})),e.shellIntegrationArgs=new Map,e.shellIntegrationArgs.set(a.WindowsPwsh,["-noexit","-command",'try { . "{0}\\out\\vs\\workbench\\contrib\\terminal\\browser\\media\\shellIntegration.ps1" } catch {}{1}']),e.shellIntegrationArgs.set(a.WindowsPwshLogin,["-l","-noexit","-command",'try { . "{0}\\out\\vs\\workbench\\contrib\\terminal\\browser\\media\\shellIntegration.ps1" } catch {}{1}']),e.shellIntegrationArgs.set(a.Pwsh,["-noexit","-command",'. "{0}/out/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1"{1}']),e.shellIntegrationArgs.set(a.PwshLogin,["-l","-noexit","-command",'. "{0}/out/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1"']),e.shellIntegrationArgs.set(a.Zsh,["-i"]),e.shellIntegrationArgs.set(a.ZshLogin,["-il"]),e.shellIntegrationArgs.set(a.Bash,["--init-file","{0}/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh"]);const h=["-login","-l"],I=["-nol","-nologo"];function T(u){return typeof u=="string"?h.includes(u.toLowerCase()):u.length===1&&h.includes(u[0].toLowerCase())||u.length===2&&(h.includes(u[0].toLowerCase())||h.includes(u[1].toLowerCase()))&&(I.includes(u[0].toLowerCase())||I.includes(u[1].toLowerCase()))}function N(u){return typeof u=="string"?I.includes(u.toLowerCase()):u.length===0||u?.length===1&&I.includes(u[0].toLowerCase())}function o(u){return u==="string"&&h.includes(u.toLowerCase())||typeof u!="string"&&u.length===1&&h.includes(u[0].toLowerCase())}}),define(se[78],ae([0,1,7,17,3,4,2]),function(Y,e,g,P,y,E,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WindowsShellHelper=void 0;const _=["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 m;class f extends E.Disposable{constructor(C){super();if(this._rootProcessId=C,this._shellTitle="",this._onShellNameChanged=new y.Emitter,this._onShellTypeChanged=new y.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,g.timeout)(300),this.getShellName().then(C=>{const A=this.getShellType(C);A!==this._shellType&&(this._onShellTypeChanged.fire(A),this._onShellNameChanged.fire(C),this._shellType=A,this._shellTitle=C)}))}traverseTree(C){if(!C)return"";if(_.indexOf(C.name)===-1||!C.children||C.children.length===0)return C.name;let A=0;for(;A<C.children.length;A++){const p=C.children[A];if(!p.children||p.children.length===0||p.children[0].name!=="conhost.exe")break}return A>=C.children.length?C.name:this.traverseTree(C.children[A])}dispose(){this._isDisposed=!0,super.dispose()}async getShellName(){return this._isDisposed?Promise.resolve(""):this._currentRequest?this._currentRequest:(m||(m=await new Promise((C,A)=>{Y(["windows-process-tree"],C,A)})),this._currentRequest=new Promise(C=>{m.getProcessTree(this._rootProcessId,A=>{const p=this.traverseTree(A);this._currentRequest=void 0,C(p)})}),this._currentRequest)}getShellType(C){switch(C.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}}}fe([(0,P.debounce)(500)],f.prototype,"checkShell",null),e.WindowsShellHelper=f}),define(se[79],ae([0,1,21,45,14,7,3,4,8,5,2,6,20,58,9,33,34,78]),function(Y,e,g,P,y,E,D,_,m,f,b,C,A,p,a,h,I,T){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalProcess=void 0;var N;(function(d){d[d.DataFlushTimeout=250]="DataFlushTimeout",d[d.MaximumShutdownTime=5e3]="MaximumShutdownTime"})(N||(N={}));var o;(function(d){d[d.KillSpawnThrottleInterval=250]="KillSpawnThrottleInterval",d[d.KillSpawnSpacingDuration=50]="KillSpawnSpacingDuration",d[d.WriteMaxChunkSize=50]="WriteMaxChunkSize",d[d.WriteInterval=5]="WriteInterval"})(o||(o={}));const u=new Map([["bash","bash"],["csh","csh"],["fish","fish"],["ksh","ksh"],["sh","sh"],["pwsh","pwsh"],["zsh","zsh"]]);let w=class Oe extends _.Disposable{constructor(r,c,s,i,n,t,l,L){super();this.shellLaunchConfig=r,this._executableEnv=t,this._options=l,this._logService=L,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,failedShellIntegrationActivation:!1,usedShellIntegrationInjection: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 j;b.isWindows?j=f.basename(this.shellLaunchConfig.executable||""):j="xterm-256color",this._initialCwd=c,this._properties.initialCwd=this._initialCwd,this._properties.cwd=this._initialCwd;const $=this._options.windowsEnableConpty&&process.platform==="win32"&&(0,I.getWindowsBuildNumber)()>=18309;this._ptyOptions={name:j,cwd:c,env:n,cols:s,rows:i,useConpty:$,conptyInheritCursor:$&&!!r.initialText},b.isWindows&&($&&s===0&&i===0&&this.shellLaunchConfig.executable?.endsWith("Git\\bin\\bash.exe")&&(this._delayedResizer=new v,this._register(this._delayedResizer.onTrigger(ne=>{this._delayedResizer?.dispose(),this._delayedResizer=void 0,ne.cols&&ne.rows&&this.resize(ne.cols,ne.rows)}))),this.onProcessReady(ne=>{this._windowsShellHelper=this._register(new T.WindowsShellHelper(ne.pid)),this._register(this._windowsShellHelper.onShellTypeChanged(le=>this._onDidChangeProperty.fire({type:"shellType",value:le}))),this._register(this._windowsShellHelper.onShellNameChanged(le=>this._onDidChangeProperty.fire({type:"title",value:le})))}))}get exitMessage(){return this._exitMessage}get currentTitle(){return this._windowsShellHelper?.shellTitle||this._currentTitle}get shellType(){return b.isWindows?this._windowsShellHelper?.shellType:u.get(this._currentTitle)}async start(){var r;const s=(await Promise.all([this._validateCwd(),this._validateExecutable()])).find(n=>n!==void 0);if(s)return s;let i;if(this._options.shellIntegration.enabled)if(i=(0,I.getShellIntegrationInjection)(this.shellLaunchConfig,this._options.shellIntegration,this._logService),i){if(this._onDidChangeProperty.fire({type:"usedShellIntegrationInjection",value:!0}),i.envMixin)for(const[n,t]of Object.entries(i.envMixin))(r=this._ptyOptions).env||(r.env={}),this._ptyOptions.env[n]=t;if(i.filesToCopy)for(const n of i.filesToCopy)await P.promises.mkdir(f.dirname(n.dest),{recursive:!0}),await P.promises.copyFile(n.source,n.dest)}else this._onDidChangeProperty.fire({type:"failedShellIntegrationActivation",value:!0});if(this.shellLaunchConfig.env?._ZDOTDIR==="1"){const n=f.join((0,y.tmpdir)(),"vscode-zsh");await P.promises.mkdir(n,{recursive:!0});const t=f.join(f.dirname(m.FileAccess.asFileUri("",Y).fsPath),"out/vs/workbench/contrib/terminal/browser/media/shellIntegration-rc.zsh");await P.promises.copyFile(t,f.join(n,".zshrc")),this._ptyOptions.env=this._ptyOptions.env||{},this._ptyOptions.env.ZDOTDIR=n,delete this._ptyOptions.env._ZDOTDIR}try{await this.setupPtyProcess(this.shellLaunchConfig,this._ptyOptions,i);return}catch(n){return this._logService.trace("IPty#spawn native exception",n),{message:`A native exception occurred during launch (${n.message})`}}}async _validateCwd(){try{if(!(await A.Promises.stat(this._initialCwd)).isDirectory())return{message:(0,p.localize)(0,null,this._initialCwd.toString())}}catch(r){if(r?.code==="ENOENT")return{message:(0,p.localize)(1,null,this._initialCwd.toString())}}this._onDidChangeProperty.fire({type:"initialCwd",value:this._initialCwd})}async _validateExecutable(){const r=this.shellLaunchConfig;if(!r.executable)throw new Error("IShellLaunchConfig.executable not set");try{const c=await A.Promises.stat(r.executable);if(!c.isFile()&&!c.isSymbolicLink())return{message:(0,p.localize)(2,null,r.executable)}}catch(c){if(c?.code==="ENOENT"){const s=r.cwd instanceof C.URI?r.cwd.path:r.cwd,i=r.env&&r.env.PATH?r.env.PATH.split(f.delimiter):void 0,n=await(0,I.findExecutable)(r.executable,s,i,this._executableEnv);if(!n)return{message:(0,p.localize)(3,null,r.executable)};r.executable=n}}}async setupPtyProcess(r,c,s){const i=s?.newArgs||r.args||[];await this._throttleKillSpawn(),this._logService.trace("IPty#spawn",r.executable,i,c);const n=(await new Promise((t,l)=>{Y(["node-pty"],t,l)})).spawn(r.executable,i,c);this._ptyProcess=n,this._childProcessMonitor=this._register(new h.ChildProcessMonitor(n.pid,this._logService)),this._childProcessMonitor.onDidChangeHasChildProcesses(t=>this._onDidChangeProperty.fire({type:"hasChildProcesses",value:t})),this._processStartupComplete=new Promise(t=>{this.onProcessReady(()=>t())}),n.onData(t=>{this._unacknowledgedCharCount+=t.length,!this._isPtyPaused&&this._unacknowledgedCharCount>1e5&&(this._logService.trace(`Flow control: Pause (${this._unacknowledgedCharCount} > ${1e5})`),this._isPtyPaused=!0,n.pause()),this._logService.trace("IPty#onData",t),this._onProcessData.fire(t),this._closeTimeout&&this._queueProcessExit(),this._windowsShellHelper?.checkShell(),this._childProcessMonitor?.handleOutput()}),n.onExit(t=>{this._exitCode=t.exitCode,this._queueProcessExit()}),this._sendProcessId(n.pid),this._setupTitlePolling(n)}dispose(){this._isDisposed=!0,this._titleInterval&&clearInterval(this._titleInterval),this._titleInterval=null,super.dispose()}_setupTitlePolling(r){setTimeout(()=>this._sendProcessTitle(r)),b.isWindows||(this._titleInterval=setInterval(()=>{this._currentTitle!==r.process&&this._sendProcessTitle(r)},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(!(!b.isWindows||!("useConpty"in this._ptyOptions)||!this._ptyOptions.useConpty)){for(;Date.now()-Oe._lastKillOrStart<250;)this._logService.trace("Throttling kill/spawn call"),await(0,E.timeout)(250-(Date.now()-Oe._lastKillOrStart)+50);Oe._lastKillOrStart=Date.now()}}_sendProcessId(r){this._onProcessReady.fire({pid:r,cwd:this._initialCwd,requiresWindowsMode:b.isWindows&&(0,I.getWindowsBuildNumber)()<21376})}_sendProcessTitle(r){this._isDisposed||(this._currentTitle=r.process,this._onDidChangeProperty.fire({type:"title",value:this._currentTitle}),this._onDidChangeProperty.fire({type:"shellType",value:u.get(this.currentTitle)}))}shutdown(r){r&&!b.isWindows?this._kill():!this._closeTimeout&&!this._isDisposed&&(this._queueProcessExit(),setTimeout(()=>{this._closeTimeout&&!this._isDisposed&&(this._closeTimeout=void 0,this._kill())},5e3))}input(r,c){if(!(this._isDisposed||!this._ptyProcess)){for(let s=0;s<=Math.floor(r.length/50);s++){const i={isBinary:c||!1,data:r.substr(s*50,50)};this._writeQueue.push(i)}this._startWrite()}}async processBinary(r){this.input(r,!0)}async refreshProperty(r){switch(r){case"cwd":{const c=await this.getCwd();return c!==this._properties.cwd&&(this._properties.cwd=c,this._onDidChangeProperty.fire({type:"cwd",value:this._properties.cwd})),c}case"initialCwd":{const c=await this.getInitialCwd();return c!==this._properties.initialCwd&&(this._properties.initialCwd=c,this._onDidChangeProperty.fire({type:"initialCwd",value:this._properties.initialCwd})),c}case"title":return this.currentTitle;default:return this.shellType}}async updateProperty(r,c){r==="fixedDimensions"&&(this._properties.fixedDimensions=c)}_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 r=this._writeQueue.shift();this._logService.trace("IPty#write",r.data),r.isBinary?this._ptyProcess.write(Buffer.from(r.data,"binary")):this._ptyProcess.write(r.data),this._childProcessMonitor?.handleInput()}resize(r,c){if(!this._isDisposed&&!(typeof r!="number"||typeof c!="number"||isNaN(r)||isNaN(c))&&this._ptyProcess){if(r=Math.max(r,1),c=Math.max(c,1),this._delayedResizer){this._delayedResizer.cols=r,this._delayedResizer.rows=c;return}this._logService.trace("IPty#resize",r,c);try{this._ptyProcess.resize(r,c)}catch(s){if(this._logService.trace("IPty#resize exception "+s.message),this._exitCode!==void 0&&s.message!=="ioctl(2) failed, EBADF"&&s.message!=="Cannot resize a pty that has already exited")throw s}}}acknowledgeDataEvent(r){this._unacknowledgedCharCount=Math.max(this._unacknowledgedCharCount-r,0),this._logService.trace(`Flow control: Ack ${r} 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(r){}getInitialCwd(){return Promise.resolve(this._initialCwd)}async getCwd(){if(b.isMacintosh)return new Promise(r=>{if(!this._ptyProcess){r(this._initialCwd);return}this._logService.trace("IPty#pid"),(0,g.exec)("lsof -OPln -p "+this._ptyProcess.pid+" | grep cwd",(c,s,i)=>{!c&&s!==""?r(s.substring(s.indexOf("/"),s.length-1)):(this._logService.error("lsof did not run successfully, it may not be on the $PATH?",c,s,i),r(this._initialCwd))})});if(b.isLinux){if(!this._ptyProcess)return this._initialCwd;this._logService.trace("IPty#pid");try{return await A.Promises.readlink(`/proc/${this._ptyProcess.pid}/cwd`)}catch{return this._initialCwd}}return this._initialCwd}getLatency(){return Promise.resolve(0)}};w._lastKillOrStart=0,w=fe([Re(7,a.ILogService)],w),e.TerminalProcess=w;class v extends _.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(se[80],ae([0,1,21,7,3,4,2,53,71,27,73,74,85,34,79,57,33,72,10,76,75]),function(Y,e,g,P,y,E,D,_,m,f,b,C,A,p,a,h,I,T,N,o,u){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PersistentTerminalProcess=e.PtyService=void 0;let w,v;class d extends E.Disposable{constructor(t,l,L){super();this._lastPtyId=t,this._logService=l,this._reconnectConstants=L,this._ptys=new Map,this._workspaceLayoutInfos=new Map,this._revivedPtyIdMap=new Map,this._autoReplies=new Map,this._onHeartbeat=this._register(new y.Emitter),this.onHeartbeat=this._onHeartbeat.event,this._onProcessData=this._register(new y.Emitter),this.onProcessData=this._onProcessData.event,this._onProcessReplay=this._register(new y.Emitter),this.onProcessReplay=this._onProcessReplay.event,this._onProcessReady=this._register(new y.Emitter),this.onProcessReady=this._onProcessReady.event,this._onProcessExit=this._register(new y.Emitter),this.onProcessExit=this._onProcessExit.event,this._onProcessOrphanQuestion=this._register(new y.Emitter),this.onProcessOrphanQuestion=this._onProcessOrphanQuestion.event,this._onDidRequestDetach=this._register(new y.Emitter),this.onDidRequestDetach=this._onDidRequestDetach.event,this._onDidChangeProperty=this._register(new y.Emitter),this.onDidChangeProperty=this._onDidChangeProperty.event,this._register((0,E.toDisposable)(()=>{for(const j of this._ptys.values())j.shutdown(!0);this._ptys.clear()})),this._detachInstanceRequestStore=this._register(new m.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,l){return this._detachInstanceRequestStore.createRequest({workspaceId:t,instanceId:l})}async acceptDetachInstanceReply(t,l){let L;const j=this._ptys.get(l);j&&(L=await this._buildProcessDetails(l,j)),this._detachInstanceRequestStore.acceptReply(t,L)}async serializeTerminalState(t){const l=[];for(const[j,$]of this._ptys.entries())$.hasWrittenData&&t.indexOf(j)!==-1&&l.push(P.Promises.withAsyncBody(async ne=>{ne({id:j,shellLaunchConfig:$.shellLaunchConfig,processDetails:await this._buildProcessDetails(j,$),processLaunchConfig:$.processLaunchOptions,unicodeVersion:$.unicodeVersion,replayEvent:await $.serializeNormalBuffer(),timestamp:Date.now()})}));const L={version:1,state:await Promise.all(l)};return JSON.stringify(L)}async reviveTerminalProcesses(t,l){for(const L of t){const j=(0,h.localize)(0,null),$=await this.createProcess({...L.shellLaunchConfig,cwd:L.processDetails.cwd,color:L.processDetails.color,icon:L.processDetails.icon,name:L.processDetails.titleSource===f.TitleEventSource.Api?L.processDetails.title:void 0,initialText:L.replayEvent.events[0].data+(0,u.formatMessageForTerminal)(j,{loudFormatting:!0})},L.processDetails.cwd,L.replayEvent.events[0].cols,L.replayEvent.events[0].rows,L.unicodeVersion,L.processLaunchConfig.env,L.processLaunchConfig.executableEnv,L.processLaunchConfig.options,!0,L.processDetails.workspaceId,L.processDetails.workspaceName,!0,L.replayEvent.events[0].data);this._revivedPtyIdMap.set(L.id,{newId:$,state:L})}}async shutdownAll(){this.dispose()}async createProcess(t,l,L,j,$,ne,le,ue,he,x,oe,M,X){if(t.attachPersistentProcess)throw new Error("Attempt to create a process when attach object was provided");const U=++this._lastPtyId,O=new a.TerminalProcess(t,l,L,j,ne,le,ue,this._logService);O.onProcessData(ee=>this._onProcessData.fire({id:U,event:ee}));const q={env:ne,executableEnv:le,options:ue},V=new c(U,O,x,oe,he,L,j,q,$,this._reconnectConstants,this._logService,M&&typeof t.initialText=="string"?t.initialText:void 0,X,t.icon,t.color,t.name,t.fixedDimensions);return O.onDidChangeProperty(ee=>this._onDidChangeProperty.fire({id:U,property:ee})),O.onProcessExit(ee=>{V.dispose(),this._ptys.delete(U),this._onProcessExit.fire({id:U,event:ee})}),V.onProcessReplay(ee=>this._onProcessReplay.fire({id:U,event:ee})),V.onProcessReady(ee=>this._onProcessReady.fire({id:U,event:ee})),V.onProcessOrphanQuestion(()=>this._onProcessOrphanQuestion.fire({id:U})),V.onDidChangeProperty(ee=>this._onDidChangeProperty.fire({id:U,property:ee})),V.onPersistentProcessReady(()=>{for(const ee of this._autoReplies.entries())V.installAutoReply(ee[0],ee[1])}),this._ptys.set(U,V),U}async attachToProcess(t){try{await this._throwIfNoPty(t).attach(),this._logService.trace(`Persistent process reconnection "${t}"`)}catch(l){throw this._logService.trace(`Persistent process reconnection "${t}" failed`,l.message),l}}async updateTitle(t,l,L){this._throwIfNoPty(t).setTitle(l,L)}async updateIcon(t,l,L){this._throwIfNoPty(t).setIcon(l,L)}async refreshProperty(t,l){return this._throwIfNoPty(t).refreshProperty(l)}async updateProperty(t,l,L){return this._throwIfNoPty(t).updateProperty(l,L)}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(([j,$])=>$.shouldPersistTerminal);this._logService.info(`Listing ${t.length} persistent terminals, ${this._ptys.size} total terminals`);const l=t.map(async([j,$])=>this._buildProcessDetails(j,$));return(await Promise.all(l)).filter(j=>j.isOrphan)}async start(t){this._logService.trace("ptyService#start",t);const l=this._ptys.get(t);return l?l.start():{message:`Could not find pty with id "${t}"`}}async shutdown(t,l){return this._logService.trace("ptyService#shutDown",t,l),this._ptys.get(t)?.shutdown(l)}async input(t,l){return this._throwIfNoPty(t).input(l)}async processBinary(t,l){return this._throwIfNoPty(t).writeBinary(l)}async resize(t,l,L){return this._throwIfNoPty(t).resize(l,L)}async getInitialCwd(t){return this._throwIfNoPty(t).getInitialCwd()}async getCwd(t){return this._throwIfNoPty(t).getCwd()}async acknowledgeDataEvent(t,l){return this._throwIfNoPty(t).acknowledgeDataEvent(l)}async setUnicodeVersion(t,l){return this._throwIfNoPty(t).setUnicodeVersion(l)}async getLatency(t){return 0}async orphanQuestionReply(t){return this._throwIfNoPty(t).orphanQuestionReply()}async installAutoReply(t,l){this._autoReplies.set(t,l);for(const L of this._ptys.values())L.installAutoReply(t,l)}async uninstallAllAutoReplies(){for(const t of this._autoReplies.keys())for(const l of this._ptys.values())l.uninstallAutoReply(t)}async uninstallAutoReply(t){for(const l of this._ptys.values())l.uninstallAutoReply(t)}async getDefaultSystemShell(t=D.OS){return(0,_.getSystemShell)(t,process.env)}async getEnvironment(){return{...process.env}}async getWslPath(t){return D.isWindows?(0,p.getWindowsBuildNumber)()<17063?t.replace(/\\/g,"/"):new Promise(l=>{(0,g.execFile)("bash.exe",["-c",`wslpath ${(0,C.escapeNonWindowsPath)(t)}`],{},(j,$,ne)=>{l((0,C.escapeNonWindowsPath)($.trim()))}).stdin.end()}):t}async getRevivedPtyNewId(t){try{return this._revivedPtyIdMap.get(t)?.newId}catch(l){this._logService.trace(`Couldn't find terminal ID ${t}`,l.message)}}async setTerminalLayoutInfo(t){this._logService.trace("ptyService#setLayoutInfo",t.tabs),this._workspaceLayoutInfos.set(t.workspaceId,t)}async getTerminalLayoutInfo(t){const l=this._workspaceLayoutInfos.get(t.workspaceId);if(this._logService.trace("ptyService#getLayoutInfo",t),l){const j=(await Promise.all(l.tabs.map(async $=>this._expandTerminalTab($)))).filter($=>$.terminals.length>0);return this._logService.trace("ptyService#returnLayoutInfo",j),{tabs:j}}}async _expandTerminalTab(t){const L=(await Promise.all(t.terminals.map(j=>this._expandTerminalInstance(j)))).filter(j=>j.terminal!==null);return{isActive:t.isActive,activePersistentProcessId:t.activePersistentProcessId,terminals:L}}async _expandTerminalInstance(t){try{const l=this._revivedPtyIdMap.get(t.terminal)?.newId,L=l??t.terminal,j=this._throwIfNoPty(L);return{terminal:{...j&&await this._buildProcessDetails(t.terminal,j,l!==void 0),id:L},relativeSize:t.relativeSize}}catch(l){return this._logService.trace("Couldn't get layout info, a terminal was probably disconnected",l.message),{terminal:null,relativeSize:t.relativeSize}}}async _buildProcessDetails(t,l,L=!1){const[j,$]=await Promise.all([l.getCwd(),L?!0:l.isOrphaned()]);return{id:t,title:l.title,titleSource:l.titleSource,pid:l.pid,workspaceId:l.workspaceId,workspaceName:l.workspaceName,cwd:j,isOrphan:$,icon:l.icon,color:l.color,fixedDimensions:l.fixedDimensions,environmentVariableCollections:l.processLaunchOptions.options.environmentVariableCollections,reconnectionOwner:l.shellLaunchConfig.reconnectionOwner,task:l.shellLaunchConfig.task,waitOnExit:l.shellLaunchConfig.waitOnExit,hideFromUser:l.shellLaunchConfig.hideFromUser,isFeatureTerminal:l.shellLaunchConfig.isFeatureTerminal,type:l.shellLaunchConfig.type}}_throwIfNoPty(t){const l=this._ptys.get(t);if(!l)throw new N.ErrorNoTelemetry("Could not find pty on pty host");return l}}e.PtyService=d;var r;(function(n){n[n.None=0]="None",n[n.ReplayOnly=1]="ReplayOnly",n[n.Session=2]="Session"})(r||(r={}));class c extends E.Disposable{constructor(t,l,L,j,$,ne,le,ue,he,x,oe,M,X,U,O,q,V){super();this._persistentProcessId=t,this._terminalProcess=l,this.workspaceId=L,this.workspaceName=j,this.shouldPersistTerminal=$,this.processLaunchOptions=ue,this.unicodeVersion=he,this._logService=oe,this._icon=U,this._color=O,this._autoReplies=new Map,this._pendingCommands=new Map,this._isStarted=!1,this._interactionState=0,this._orphanRequestQueue=new P.Queue,this._onProcessReplay=this._register(new y.Emitter),this.onProcessReplay=this._onProcessReplay.event,this._onProcessReady=this._register(new y.Emitter),this.onProcessReady=this._onProcessReady.event,this._onPersistentProcessReady=this._register(new y.Emitter),this.onPersistentProcessReady=this._onPersistentProcessReady.event,this._onProcessData=this._register(new y.Emitter),this.onProcessData=this._onProcessData.event,this._onProcessOrphanQuestion=this._register(new y.Emitter),this.onProcessOrphanQuestion=this._onProcessOrphanQuestion.event,this._onDidChangeProperty=this._register(new y.Emitter),this.onDidChangeProperty=this._onDidChangeProperty.event,this._inReplay=!1,this._pid=-1,this._cwd="",this._titleSource=f.TitleEventSource.Process,this._logService.trace("persistentTerminalProcess#ctor",t,arguments),this._wasRevived=M!==void 0,this._serializer=new s(ne,le,x.scrollback,he,M,$?X:void 0,this._logService),q&&this.setTitle(q,f.TitleEventSource.Api),this._fixedDimensions=V,this._orphanQuestionBarrier=null,this._orphanQuestionReplyTime=0,this._disconnectRunner1=this._register(new P.ProcessTimeRunOnceScheduler(()=>{this._logService.info(`Persistent process "${this._persistentProcessId}": The reconnection grace time of ${i(x.graceTime)} has expired, shutting down pid "${this._pid}"`),this.shutdown(!0)},x.graceTime)),this._disconnectRunner2=this._register(new P.ProcessTimeRunOnceScheduler(()=>{this._logService.info(`Persistent process "${this._persistentProcessId}": The short reconnection grace time of ${i(x.shortGraceTime)} has expired, shutting down pid ${this._pid}`),this.shutdown(!0)},x.shortGraceTime)),this._register(this._terminalProcess.onProcessExit(()=>this._bufferer.stopBuffering(this._persistentProcessId))),this._register(this._terminalProcess.onProcessReady(ee=>{this._pid=ee.pid,this._cwd=ee.cwd,this._onProcessReady.fire(ee)})),this._register(this._terminalProcess.onDidChangeProperty(ee=>{this._onDidChangeProperty.fire(ee)})),this._bufferer=new b.TerminalDataBufferer((ee,re)=>this._onProcessData.fire(re)),this._register(this._bufferer.startBuffering(this._persistentProcessId,this._terminalProcess.onProcessData)),this._register(this.onProcessData(ee=>this._serializer.handleData(ee))),this._register((0,E.toDisposable)(()=>{for(const ee of this._autoReplies.values())ee.dispose();this._autoReplies.clear()}))}get pid(){return this._pid}get shellLaunchConfig(){return this._terminalProcess.shellLaunchConfig}get hasWrittenData(){return this._interactionState!==0}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,l){l===f.TitleEventSource.Api&&(this._interactionState=2,this._serializer.freeRawReviveBuffer()),this._title=t,this._titleSource=l}setIcon(t,l){(!this._icon||"id"in t&&"id"in this._icon&&t.id!==this._icon.id||!this.color||l!==this._color)&&(this._serializer.freeRawReviveBuffer(),this._interactionState=2),this._icon=t,this._color=l}_setFixedDimensions(t){this._fixedDimensions=t}async attach(){if(this._logService.trace("persistentTerminalProcess#attach",this._persistentProcessId),!this._disconnectRunner1.isScheduled()&&!this._disconnectRunner2.isScheduled()){if(!await this._isOrphaned())throw new Error(`Cannot attach to persistent process "${this._persistentProcessId}", it is already adopted`);this._logService.warn(`Persistent process "${this._persistentProcessId}": Process had no disconnect runners but was an orphan`)}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,this._interactionState!==2)}async refreshProperty(t){return this._terminalProcess.refreshProperty(t)}async updateProperty(t,l){if(t==="fixedDimensions")return this._setFixedDimensions(l)}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,p.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._interactionState=2,this._serializer.freeRawReviveBuffer(),!this._inReplay){for(const l of this._autoReplies.values())l.handleInput();return this._terminalProcess.input(t)}}writeBinary(t){return this._terminalProcess.processBinary(t)}resize(t,l){if(!this._inReplay){this._serializer.handleResize(t,l),this._bufferer.flushBuffer(this._persistentProcessId);for(const L of this._autoReplies.values())L.handleResize();return this._terminalProcess.resize(t,l)}}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._interactionState===0&&(this._interactionState=1);const t=await this._serializer.generateReplayEvent();let l=0;for(const L of t.events)l+=L.data.length;this._logService.info(`Persistent process "${this._persistentProcessId}": Replaying ${l} chars and ${t.events.length} size events`),this._onProcessReplay.fire(t),this._terminalProcess.clearUnacknowledgedChars(),this._onPersistentProcessReady.fire()}installAutoReply(t,l){this._autoReplies.get(t)?.dispose(),this._autoReplies.set(t,new T.TerminalAutoResponder(this._terminalProcess,t,l))}uninstallAutoReply(t){this._autoReplies.get(t)?.dispose(),this._autoReplies.delete(t)}sendCommandResult(t,l,L){!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 P.AutoOpenBarrier(4e3),this._orphanQuestionReplyTime=0,this._onProcessOrphanQuestion.fire()),await this._orphanQuestionBarrier.wait(),Date.now()-this._orphanQuestionReplyTime>500)}}e.PersistentTerminalProcess=c;class s{constructor(t,l,L,j,$,ne,le){this._rawReviveBuffer=ne,this._xterm=new A.Terminal({cols:t,rows:l,scrollback:L}),$&&this._xterm.writeln($),this.setUnicodeVersion(j),this._shellIntegrationAddon=new o.ShellIntegrationAddon(!0,void 0,le),this._xterm.loadAddon(this._shellIntegrationAddon)}freeRawReviveBuffer(){this._rawReviveBuffer=void 0}handleData(t){this._xterm.write(t)}handleResize(t,l){this._xterm.resize(t,l)}async generateReplayEvent(t,l){const L=new(await this._getSerializeConstructor());this._xterm.loadAddon(L);const j={scrollback:this._xterm.getOption("scrollback")};t&&(j.excludeAltBuffer=!0,j.excludeModes=!0);let $;return l&&this._rawReviveBuffer?$=this._rawReviveBuffer:$=L.serialize(j),{events:[{cols:this._xterm.cols,rows:this._xterm.rows,data:$}],commands:this._shellIntegrationAddon.serialize()}}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 v||(v=(await new Promise((t,l)=>{Y(["xterm-addon-unicode11"],t,l)})).Unicode11Addon),v}async _getSerializeConstructor(){return w||(w=(await new Promise((t,l)=>{Y(["xterm-addon-serialize"],t,l)})).SerializeAddon),w}}function i(n){let t=0,l=0,L=0;n>=1e3&&(L=Math.floor(n/1e3),n-=L*1e3),L>=60&&(l=Math.floor(L/60),L-=l*60),l>=60&&(t=Math.floor(l/60),l-=t*60);const j=t?`${t}h`:"",$=l?`${l}m`:"",ne=L?`${L}s`:"",le=n?`${n}ms`:"";return`${j}${$}${ne}${le}`}}),define(se[86],ae([0,1,5,31,54,60,62,9,64,65,66,27,77,80]),function(Y,e,g,P,y,E,D,_,m,f,b,C,A,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const a=new y.Server("ptyHost"),h=parseInt(process.env.VSCODE_LAST_PTY_ID||"0");delete process.env.VSCODE_LAST_PTY_ID;const I={_serviceBrand:void 0,...b.default},T=new D.NativeEnvironmentService((0,E.parseArgs)(process.argv,E.OPTIONS),I),N=new _.LogService(new _.MultiplexLogService([new _.ConsoleLogger,new f.SpdLogLogger("ptyhost",(0,g.join)(T.logsPath,"ptyhost.log"),!0,!1,(0,_.getLogLevel)(T))])),o=new m.LogLevelChannel(N);a.registerChannel(C.TerminalIpcChannels.Log,o);const u=new A.HeartbeatService;a.registerChannel(C.TerminalIpcChannels.Heartbeat,P.ProxyChannel.fromService(u));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 v=new p.PtyService(h,N,w);a.registerChannel(C.TerminalIpcChannels.PtyHost,P.ProxyChannel.fromService(v)),process.once("exit",()=>{N.dispose(),u.dispose(),v.dispose()})})}).call(this);

//# sourceMappingURL=ptyHostMain.js.map