/*!-------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/(function(){var ae=["require","exports","vs/base/common/platform","vs/base/common/event","vs/base/common/lifecycle","vs/base/common/path","vs/base/common/uri","vs/platform/log/common/log","vs/base/common/async","vs/base/common/errors","vs/base/common/types","vs/base/common/strings","vs/nls","vs/nls!vs/platform/terminal/node/ptyHostMain","vs/base/common/process","vs/base/common/decorators","vs/base/common/cancellation","vs/base/common/network","os","vs/base/common/resources","vs/base/node/pfs","vs/platform/instantiation/common/instantiation","vs/base/common/arrays","vs/base/common/buffer","child_process","vs/platform/terminal/common/terminal","vs/base/common/functional","vs/base/common/map","vs/base/common/objects","vs/base/common/processes","vs/base/common/extpath","vs/base/node/processes","vs/base/parts/ipc/common/ipc","vs/platform/terminal/common/terminalEnvironment","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/normalization","vs/base/common/stream","vs/base/common/uuid","vs/nls!vs/base/common/date","vs/base/common/date","vs/nls!vs/base/common/errorMessage","vs/base/common/errorMessage","vs/nls!vs/base/common/platform","vs/base/common/stopwatch","vs/base/common/cache","vs/base/common/ternarySearchTree","vs/base/common/console","vs/base/common/marshalling","fs","vs/base/node/powershell","vs/base/node/ps","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/bufferLog","vs/platform/log/common/logIpc","vs/platform/log/node/spdlogLog","vs/platform/log/node/loggerService","vs/platform/product/common/product","vs/platform/product/common/productService","vs/platform/terminal/common/capabilities/bufferMarkCapability","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/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","util","minimist","path","xterm-headless","vs/platform/terminal/node/ptyHostMain"],le=function(x){for(var e=[],f=0,R=x.length;f{let D=null,A=null;if(typeof d.value=="function"?(D="value",A=d.value):typeof d.get=="function"&&(D="get",A=d.get),!A)throw new Error("not supported");d[D]=S(A,v)}}e.createDecorator=f;function R(S,y,v){let d=null,D=null;if(typeof v.value=="function"?(d="value",D=v.value,D.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof v.get=="function"&&(d="get",D=v.get),!D)throw new Error("not supported");const A=`$memoize$${y}`;v[d]=function(...C){return this.hasOwnProperty(A)||Object.defineProperty(this,A,{configurable:!1,enumerable:!1,writable:!1,value:D.apply(this,C)}),this[A]}}e.memoize=R;function b(S,y,v){return f((d,D)=>{const A=`$debounce$${D}`,C=`$debounce$result$${D}`;return function(...o){this[C]||(this[C]=v?v():void 0),clearTimeout(this[A]),y&&(this[C]=y(this[C],...o),o=[this[C]]),this[A]=setTimeout(()=>{d.apply(this,o),this[C]=v?v():void 0},S)}})}e.debounce=b;function P(S,y,v){return f((d,D)=>{const A=`$throttle$timer$${D}`,C=`$throttle$result$${D}`,o=`$throttle$lastRun$${D}`,s=`$throttle$pending$${D}`;return function(...r){if(this[C]||(this[C]=v?v():void 0),(this[o]===null||this[o]===void 0)&&(this[o]=-Number.MAX_VALUE),y&&(this[C]=y(this[C],...r)),this[s])return;const w=this[o]+S;w<=Date.now()?(this[o]=Date.now(),d.apply(this,[this[C]]),this[C]=v?v():void 0):(this[s]=!0,this[A]=setTimeout(()=>{this[s]=!1,this[o]=Date.now(),d.apply(this,[this[C]]),this[C]=v?v():void 0},w-Date.now()))}})}e.throttle=P}),define(ae[9],le([0,1]),function(x,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 f{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(_){setTimeout(()=>{throw _.stack?t.isErrorNoTelemetry(_)?new t(_.message+` `+_.stack):new Error(_.message+` `+_.stack):_},0)}}addListener(_){return this.listeners.push(_),()=>{this._removeListener(_)}}emit(_){this.listeners.forEach(h=>{h(_)})}_removeListener(_){this.listeners.splice(this.listeners.indexOf(_),1)}setUnexpectedErrorHandler(_){this.unexpectedErrorHandler=_}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(_){this.unexpectedErrorHandler(_),this.emit(_)}onUnexpectedExternalError(_){this.unexpectedErrorHandler(_)}}e.ErrorHandler=f,e.errorHandler=new f;function R(c){e.errorHandler.setUnexpectedErrorHandler(c)}e.setUnexpectedErrorHandler=R;function b(c){v(c)||e.errorHandler.onUnexpectedError(c)}e.onUnexpectedError=b;function P(c){v(c)||e.errorHandler.onUnexpectedExternalError(c)}e.onUnexpectedExternalError=P;function S(c){if(c instanceof Error){const{name:_,message:h}=c,p=c.stacktrace||c.stack;return{$isError:!0,name:_,message:h,stack:p,noTelemetry:t.isErrorNoTelemetry(c)}}return c}e.transformErrorForSerialization=S;const y="Canceled";function v(c){return c instanceof d?!0:c instanceof Error&&c.name===y&&c.message===y}e.isCancellationError=v;class d extends Error{constructor(){super(y),this.name=this.message}}e.CancellationError=d;function D(){const c=new Error(y);return c.name=c.message,c}e.canceled=D;function A(c){return c?new Error(`Illegal argument: ${c}`):new Error("Illegal argument")}e.illegalArgument=A;function C(c){return c?new Error(`Illegal state: ${c}`):new Error("Illegal state")}e.illegalState=C;function o(c){return c?new Error(`readonly property '${c} cannot be changed'`):new Error("readonly property cannot be changed")}e.readonly=o;function s(c){const _=new Error(`${c} has been disposed`);return _.name="DISPOSED",_}e.disposed=s;function r(c){return c?c.message?c.message:c.stack?c.stack.split(` `)[0]:String(c):"Error"}e.getErrorMessage=r;class w extends Error{constructor(_){super("NotImplemented"),_&&(this.message=_)}}e.NotImplementedError=w;class u extends Error{constructor(_){super("NotSupported"),_&&(this.message=_)}}e.NotSupportedError=u;class E extends Error{constructor(){super(...arguments),this.isExpected=!0}}e.ExpectedError=E;class t extends Error{constructor(_){super(_),this.name="CodeExpectedError"}static fromError(_){if(_ instanceof t)return _;const h=new t;return h.message=_.message,h.stack=_.stack,h}static isErrorNoTelemetry(_){return _.name==="CodeExpectedError"}}e.ErrorNoTelemetry=t;class n extends Error{constructor(_){super(_||"An unexpected bug occurred."),Object.setPrototypeOf(this,n.prototype);debugger}}e.BugIndicatingError=n}),define(ae[22],le([0,1,9]),function(x,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CallbackIterable=e.ArrayQueue=e.findMinBy=e.findLastMaxBy=e.findMaxBy=e.numberComparator=e.tieBreakComparators=e.compareBy=e.CompareResult=e.splice=e.insertInto=e.mapFind=e.getRandomElement=e.asArray=e.mapArrayOrNot=e.pushMany=e.pushToEnd=e.pushToStart=e.shuffle=e.arrayInsert=e.remove=e.insert=e.index=e.range=e.flatten=e.commonPrefixLength=e.lastOrDefault=e.firstOrDefault=e.lastIndex=e.findLast=e.uniqueFilter=e.distinct=e.isNonEmptyArray=e.isFalsyOrEmpty=e.move=e.coalesceInPlace=e.coalesce=e.topAsync=e.top=e.delta=e.sortedDiff=e.groupBy=e.quickSelect=e.findFirstInSorted=e.binarySearch2=e.binarySearch=e.removeFastWithoutKeepingOrder=e.equals=e.tail2=e.tail=void 0;function R(O,F=0){return O[O.length-(1+F)]}e.tail=R;function b(O){if(O.length===0)throw new Error("Invalid tail call");return[O.slice(0,O.length-1),O[O.length-1]]}e.tail2=b;function P(O,F,U=(V,Z)=>V===Z){if(O===F)return!0;if(!O||!F||O.length!==F.length)return!1;for(let V=0,Z=O.length;VU(O[V],F))}e.binarySearch=y;function v(O,F){let U=0,V=O-1;for(;U<=V;){const Z=(U+V)/2|0,me=F(Z);if(me<0)U=Z+1;else if(me>0)V=Z-1;else return Z}return-(U+1)}e.binarySearch2=v;function d(O,F){let U=0,V=O.length;if(V===0)return 0;for(;U=F.length)throw new TypeError("invalid index");const V=F[Math.floor(F.length*Math.random())],Z=[],me=[],ge=[];for(const we of F){const ve=U(we,V);ve<0?Z.push(we):ve>0?me.push(we):ge.push(we)}return O0&&(Z(me,0,[ve]),ge+=1)}return V}e.sortedDiff=C;function o(O,F,U){const V=C(O,F,U),Z=[],me=[];for(const ge of V)Z.push(...O.slice(ge.start,ge.start+ge.deleteCount)),me.push(...ge.toInsert);return{removed:Z,added:me}}e.delta=o;function s(O,F,U){if(U===0)return[];const V=O.slice(0,U).sort(F);return w(O,F,V,U,O.length),V}e.top=s;function r(O,F,U,V,Z){return U===0?Promise.resolve([]):new Promise((me,ge)=>{(async()=>{const we=O.length,ve=O.slice(0,U).sort(F);for(let Ce=U,be=Math.min(U+V,we);CeU&&await new Promise(Me=>setTimeout(Me)),Z&&Z.isCancellationRequested)throw new f.CancellationError;w(O,F,ve,Ce,be)}return ve})().then(me,ge)})}e.topAsync=r;function w(O,F,U,V,Z){for(const me=U.length;VF(ge,ve)<0);U.splice(we,0,ge)}}}function u(O){return O.filter(F=>!!F)}e.coalesce=u;function E(O){let F=0;for(let U=0;U0}e.isNonEmptyArray=c;function _(O,F=U=>U){const U=new Set;return O.filter(V=>{const Z=F(V);return U.has(Z)?!1:(U.add(Z),!0)})}e.distinct=_;function h(O){const F=new Set;return U=>{const V=O(U);return F.has(V)?!1:(F.add(V),!0)}}e.uniqueFilter=h;function p(O,F){const U=L(O,F);if(U!==-1)return O[U]}e.findLast=p;function L(O,F){for(let U=O.length-1;U>=0;U--){const V=O[U];if(F(V))return U}return-1}e.lastIndex=L;function g(O,F){return O.length>0?O[0]:F}e.firstOrDefault=g;function m(O,F){return O.length>0?O[O.length-1]:F}e.lastOrDefault=m;function i(O,F,U=(V,Z)=>V===Z){let V=0;for(let Z=0,me=Math.min(O.length,F.length);ZF;Z--)V.push(Z);return V}e.range=l;function k(O,F,U){return O.reduce((V,Z)=>(V[F(Z)]=U?U(Z):Z,V),Object.create(null))}e.index=k;function B(O,F){return O.push(F),()=>G(O,F)}e.insert=B;function G(O,F){const U=O.indexOf(F);if(U>-1)return O.splice(U,1),F}e.remove=G;function ne(O,F,U){const V=O.slice(0,F),Z=O.slice(F);return V.concat(U,Z)}e.arrayInsert=ne;function ce(O,F){let U;if(typeof F=="number"){let V=F;U=()=>{const Z=Math.sin(V++)*179426549;return Z-Math.floor(Z)}}else U=Math.random;for(let V=O.length-1;V>0;V-=1){const Z=Math.floor(U()*(V+1)),me=O[V];O[V]=O[Z],O[Z]=me}}e.shuffle=ce;function he(O,F){const U=O.indexOf(F);U>-1&&(O.splice(U,1),O.unshift(F))}e.pushToStart=he;function de(O,F){const U=O.indexOf(F);U>-1&&(O.splice(U,1),O.push(F))}e.pushToEnd=de;function ee(O,F){for(const U of F)O.push(U)}e.pushMany=ee;function oe(O,F){return Array.isArray(O)?O.map(F):F(O)}e.mapArrayOrNot=oe;function N(O){return Array.isArray(O)?O:[O]}e.asArray=N;function J(O){return O[Math.floor(Math.random()*O.length)]}e.getRandomElement=J;function z(O,F){for(const U of O){const V=F(U);if(V!==void 0)return V}}e.mapFind=z;function M(O,F,U){const V=j(O,F),Z=O.length,me=U.length;O.length=Z+me;for(let ge=Z-1;ge>=V;ge--)O[ge+me]=O[ge];for(let ge=0;ge0}O.isGreaterThan=U;function V(Z){return Z===0}O.isNeitherLessOrGreaterThan=V,O.greaterThan=1,O.lessThan=-1,O.neitherLessOrGreaterThan=0})(re=e.CompareResult||(e.CompareResult={}));function te(O,F){return(U,V)=>F(O(U),O(V))}e.compareBy=te;function Y(...O){return(F,U)=>{for(const V of O){const Z=V(F,U);if(!re.isNeitherLessOrGreaterThan(Z))return Z}return re.neitherLessOrGreaterThan}}e.tieBreakComparators=Y;const T=(O,F)=>O-F;e.numberComparator=T;function $(O,F){if(O.length===0)return;let U=O[0];for(let V=1;V0&&(U=Z)}return U}e.findMaxBy=$;function Q(O,F){if(O.length===0)return;let U=O[0];for(let V=1;V=0&&(U=Z)}return U}e.findLastMaxBy=Q;function H(O,F){return $(O,(U,V)=>-F(U,V))}e.findMinBy=H;class K{constructor(F){this.items=F,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(F){let U=this.firstIdx;for(;U=0&&F(this.items[U]);)U--;const V=U===this.lastIdx?null:this.items.slice(U+1,this.lastIdx+1);return this.lastIdx=U,V}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 U=this.items.slice(this.firstIdx,this.firstIdx+F);return this.firstIdx+=F,U}}e.ArrayQueue=K;class ie{constructor(F){this.iterate=F}forEach(F){this.iterate(U=>(F(U),!0))}toArray(){const F=[];return this.iterate(U=>(F.push(U),!0)),F}filter(F){return new ie(U=>this.iterate(V=>F(V)?U(V):!0))}map(F){return new ie(U=>this.iterate(V=>U(F(V))))}some(F){let U=!1;return this.iterate(V=>(U=F(V),!U)),U}findFirst(F){let U;return this.iterate(V=>F(V)?(U=V,!1):!0),U}findLast(F){let U;return this.iterate(V=>(F(V)&&(U=V),!0)),U}findLastMaxBy(F){let U,V=!0;return this.iterate(Z=>((V||re.isGreaterThan(F(Z,U)))&&(V=!1,U=Z),!0)),U}}e.CallbackIterable=ie,ie.empty=new ie(O=>{})}),define(ae[26],le([0,1]),function(x,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function f(R){const b=this;let P=!1,S;return function(){return P||(P=!0,S=R.apply(b,arguments)),S}}e.once=f}),define(ae[36],le([0,1]),function(x,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var f;(function(R){function b(n){return n&&typeof n=="object"&&typeof n[Symbol.iterator]=="function"}R.is=b;const P=Object.freeze([]);function S(){return P}R.empty=S;function*y(n){yield n}R.single=y;function v(n){return b(n)?n:y(n)}R.wrap=v;function d(n){return n||P}R.from=d;function D(n){return!n||n[Symbol.iterator]().next().done===!0}R.isEmpty=D;function A(n){return n[Symbol.iterator]().next().value}R.first=A;function C(n,c){for(const _ of n)if(c(_))return!0;return!1}R.some=C;function o(n,c){for(const _ of n)if(c(_))return _}R.find=o;function*s(n,c){for(const _ of n)c(_)&&(yield _)}R.filter=s;function*r(n,c){let _=0;for(const h of n)yield c(h,_++)}R.map=r;function*w(...n){for(const c of n)for(const _ of c)yield _}R.concat=w;function u(n,c,_){let h=_;for(const p of n)h=c(h,p);return h}R.reduce=u;function*E(n,c,_=n.length){for(c<0&&(c+=n.length),_<0?_+=n.length:_>n.length&&(_=n.length);c<_;c++)yield n[c]}R.slice=E;function t(n,c=Number.POSITIVE_INFINITY){const _=[];if(c===0)return[_,n];const h=n[Symbol.iterator]();for(let p=0;pb(this.getValue()))}}e.Lazy=f}),define(ae[4],le([0,1,26,36]),function(x,e,f,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DisposableMap=e.disposeOnReturn=e.ImmortalReference=e.AsyncReferenceCollection=e.ReferenceCollection=e.SafeDisposable=e.RefCountedDisposable=e.MutableDisposable=e.Disposable=e.DisposableStore=e.toDisposable=e.combinedDisposable=e.disposeIfDisposable=e.dispose=e.isDisposable=e.markAsSingleton=e.setDisposableTracker=void 0;const b=!1;let P=null;function S(m){P=m}if(e.setDisposableTracker=S,b){const m="__is_disposable_tracked__";S(new class{trackDisposable(i){const a=new Error("Potentially leaked disposable").stack;setTimeout(()=>{i[m]||console.log(a)},3e3)}setParent(i,a){if(i&&i!==E.None)try{i[m]=!0}catch{}}markAsDisposed(i){if(i&&i!==E.None)try{i[m]=!0}catch{}}markAsSingleton(i){}})}function y(m){return P?.trackDisposable(m),m}function v(m){P?.markAsDisposed(m)}function d(m,i){P?.setParent(m,i)}function D(m,i){if(!!P)for(const a of m)P.setParent(a,i)}function A(m){return P?.markAsSingleton(m),m}e.markAsSingleton=A;function C(m){return typeof m.dispose=="function"&&m.dispose.length===0}e.isDisposable=C;function o(m){if(R.Iterable.is(m)){const i=[];for(const a of m)if(a)try{a.dispose()}catch(l){i.push(l)}if(i.length===1)throw i[0];if(i.length>1)throw new AggregateError(i,"Encountered errors while disposing of store");return Array.isArray(m)?[]:m}else if(m)return m.dispose(),m}e.dispose=o;function s(m){for(const i of m)C(i)&&i.dispose();return[]}e.disposeIfDisposable=s;function r(...m){const i=w(()=>o(m));return D(m,i),i}e.combinedDisposable=r;function w(m){const i=y({dispose:(0,f.once)(()=>{v(i),m()})});return i}e.toDisposable=w;class u{constructor(){this._toDispose=new Set,this._isDisposed=!1,y(this)}dispose(){this._isDisposed||(v(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{o(this._toDispose)}finally{this._toDispose.clear()}}add(i){if(!i)return i;if(i===this)throw new Error("Cannot register a disposable on itself!");return d(i,this),this._isDisposed?u.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=u,u.DISABLE_DISPOSED_WARNING=!1;class E{constructor(){this._store=new u,y(this),d(this._store,this)}dispose(){v(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=E,E.None=Object.freeze({dispose(){}});class t{constructor(){this._isDisposed=!1,y(this)}get value(){return this._isDisposed?void 0:this._value}set value(i){this._isDisposed||i===this._value||(this._value?.dispose(),i&&d(i,this),this._value=i)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,v(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){const i=this._value;return this._value=void 0,i&&d(i,null),i}}e.MutableDisposable=t;class n{constructor(i){this._disposable=i,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}e.RefCountedDisposable=n;class c{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,y(this)}set(i){let a=i;return this.unset=()=>a=void 0,this.isset=()=>a!==void 0,this.dispose=()=>{a&&(a(),a=void 0,v(this))},this}}e.SafeDisposable=c;class _{constructor(){this.references=new Map}acquire(i,...a){let l=this.references.get(i);l||(l={counter:0,object:this.createReferencedObject(i,...a)},this.references.set(i,l));const{object:k}=l,B=(0,f.once)(()=>{--l.counter===0&&(this.destroyReferencedObject(i,l.object),this.references.delete(i))});return l.counter++,{object:k,dispose:B}}}e.ReferenceCollection=_;class h{constructor(i){this.referenceCollection=i}async acquire(i,...a){const l=this.referenceCollection.acquire(i,...a);try{return{object:await l.object,dispose:()=>l.dispose()}}catch(k){throw l.dispose(),k}}}e.AsyncReferenceCollection=h;class p{constructor(i){this.object=i}dispose(){}}e.ImmortalReference=p;function L(m){const i=new u;try{m(i)}finally{i.dispose()}}e.disposeOnReturn=L;class g{constructor(){this._store=new Map,this._isDisposed=!1,y(this)}dispose(){v(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(!!this._store.size)try{o(this._store.values())}finally{this._store.clear()}}has(i){return this._store.has(i)}get(i){return this._store.get(i)}set(i,a,l=!1){this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),l||this._store.get(i)?.dispose(),this._store.set(i,a)}deleteAndDispose(i){this._store.get(i)?.dispose(),this._store.delete(i)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}e.DisposableMap=g}),define(ae[38],le([0,1]),function(x,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=void 0;class f{constructor(P){this.element=P,this.next=f.Undefined,this.prev=f.Undefined}}f.Undefined=new f(void 0);class R{constructor(){this._first=f.Undefined,this._last=f.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===f.Undefined}clear(){let P=this._first;for(;P!==f.Undefined;){const S=P.next;P.prev=f.Undefined,P.next=f.Undefined,P=S}this._first=f.Undefined,this._last=f.Undefined,this._size=0}unshift(P){return this._insert(P,!1)}push(P){return this._insert(P,!0)}_insert(P,S){const y=new f(P);if(this._first===f.Undefined)this._first=y,this._last=y;else if(S){const d=this._last;this._last=y,y.prev=d,d.next=y}else{const d=this._first;this._first=y,y.next=d,d.prev=y}this._size+=1;let v=!1;return()=>{v||(v=!0,this._remove(y))}}shift(){if(this._first!==f.Undefined){const P=this._first.element;return this._remove(this._first),P}}pop(){if(this._last!==f.Undefined){const P=this._last.element;return this._remove(this._last),P}}_remove(P){if(P.prev!==f.Undefined&&P.next!==f.Undefined){const S=P.prev;S.next=P.next,P.next.prev=S}else P.prev===f.Undefined&&P.next===f.Undefined?(this._first=f.Undefined,this._last=f.Undefined):P.next===f.Undefined?(this._last=this._last.prev,this._last.next=f.Undefined):P.prev===f.Undefined&&(this._first=this._first.next,this._first.prev=f.Undefined);this._size-=1}*[Symbol.iterator](){let P=this._first;for(;P!==f.Undefined;)yield P.element,P=P.next}}e.LinkedList=R}),define(ae[27],le([0,1]),function(x,e){"use strict";var f,R,b;Object.defineProperty(e,"__esModule",{value:!0}),e.LRUCache=e.LinkedMap=e.Touch=e.ResourceSet=e.ResourceMap=e.setToString=e.mapToString=e.getOrSet=void 0;function P(s,r,w){let u=s.get(r);return u===void 0&&(u=w,s.set(r,u)),u}e.getOrSet=P;function S(s){const r=[];return s.forEach((w,u)=>{r.push(`${u} => ${w}`)}),`Map(${s.size}) {${r.join(", ")}}`}e.mapToString=S;function y(s){const r=[];return s.forEach(w=>{r.push(w)}),`Set(${s.size}) {${r.join(", ")}}`}e.setToString=y;class v{constructor(r,w){this.uri=r,this.value=w}}class d{constructor(r,w){this[f]="ResourceMap",r instanceof d?(this.map=new Map(r.map),this.toKey=w??d.defaultToKey):(this.map=new Map,this.toKey=r??d.defaultToKey)}set(r,w){return this.map.set(this.toKey(r),new v(r,w)),this}get(r){return this.map.get(this.toKey(r))?.value}has(r){return this.map.has(this.toKey(r))}get size(){return this.map.size}clear(){this.map.clear()}delete(r){return this.map.delete(this.toKey(r))}forEach(r,w){typeof w<"u"&&(r=r.bind(w));for(const[u,E]of this.map)r(E.value,E.uri,this)}*values(){for(const r of this.map.values())yield r.value}*keys(){for(const r of this.map.values())yield r.uri}*entries(){for(const r of this.map.values())yield[r.uri,r.value]}*[(f=Symbol.toStringTag,Symbol.iterator)](){for(const[,r]of this.map)yield[r.uri,r.value]}}e.ResourceMap=d,d.defaultToKey=s=>s.toString();class D{constructor(r,w){this[R]="ResourceSet",!r||typeof r=="function"?this._map=new d(r):(this._map=new d(w),r.forEach(this.add,this))}get size(){return this._map.size}add(r){return this._map.set(r,r),this}clear(){this._map.clear()}delete(r){return this._map.delete(r)}forEach(r,w){this._map.forEach((u,E)=>r.call(w,E,E,this))}has(r){return this._map.has(r)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(R=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}}e.ResourceSet=D;var A;(function(s){s[s.None=0]="None",s[s.AsOld=1]="AsOld",s[s.AsNew=2]="AsNew"})(A=e.Touch||(e.Touch={}));class C{constructor(){this[b]="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(r){return this._map.has(r)}get(r,w=0){const u=this._map.get(r);if(!!u)return w!==0&&this.touch(u,w),u.value}set(r,w,u=0){let E=this._map.get(r);if(E)E.value=w,u!==0&&this.touch(E,u);else{switch(E={key:r,value:w,next:void 0,previous:void 0},u){case 0:this.addItemLast(E);break;case 1:this.addItemFirst(E);break;case 2:this.addItemLast(E);break;default:this.addItemLast(E);break}this._map.set(r,E),this._size++}return this}delete(r){return!!this.remove(r)}remove(r){const w=this._map.get(r);if(!!w)return this._map.delete(r),this.removeItem(w),this._size--,w.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const r=this._head;return this._map.delete(r.key),this.removeItem(r),this._size--,r.value}forEach(r,w){const u=this._state;let E=this._head;for(;E;){if(w?r.bind(w)(E.value,E.key,this):r(E.value,E.key,this),this._state!==u)throw new Error("LinkedMap got modified during iteration.");E=E.next}}keys(){const r=this,w=this._state;let u=this._head;const E={[Symbol.iterator](){return E},next(){if(r._state!==w)throw new Error("LinkedMap got modified during iteration.");if(u){const t={value:u.key,done:!1};return u=u.next,t}else return{value:void 0,done:!0}}};return E}values(){const r=this,w=this._state;let u=this._head;const E={[Symbol.iterator](){return E},next(){if(r._state!==w)throw new Error("LinkedMap got modified during iteration.");if(u){const t={value:u.value,done:!1};return u=u.next,t}else return{value:void 0,done:!0}}};return E}entries(){const r=this,w=this._state;let u=this._head;const E={[Symbol.iterator](){return E},next(){if(r._state!==w)throw new Error("LinkedMap got modified during iteration.");if(u){const t={value:[u.key,u.value],done:!1};return u=u.next,t}else return{value:void 0,done:!0}}};return E}[(b=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(r){if(r>=this.size)return;if(r===0){this.clear();return}let w=this._head,u=this.size;for(;w&&u>r;)this._map.delete(w.key),w=w.next,u--;this._head=w,this._size=u,w&&(w.previous=void 0),this._state++}addItemFirst(r){if(!this._head&&!this._tail)this._tail=r;else if(this._head)r.next=this._head,this._head.previous=r;else throw new Error("Invalid list");this._head=r,this._state++}addItemLast(r){if(!this._head&&!this._tail)this._head=r;else if(this._tail)r.previous=this._tail,this._tail.next=r;else throw new Error("Invalid list");this._tail=r,this._state++}removeItem(r){if(r===this._head&&r===this._tail)this._head=void 0,this._tail=void 0;else if(r===this._head){if(!r.next)throw new Error("Invalid list");r.next.previous=void 0,this._head=r.next}else if(r===this._tail){if(!r.previous)throw new Error("Invalid list");r.previous.next=void 0,this._tail=r.previous}else{const w=r.next,u=r.previous;if(!w||!u)throw new Error("Invalid list");w.previous=u,u.next=w}r.next=void 0,r.previous=void 0,this._state++}touch(r,w){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(w!==1&&w!==2)){if(w===1){if(r===this._head)return;const u=r.next,E=r.previous;r===this._tail?(E.next=void 0,this._tail=E):(u.previous=E,E.next=u),r.previous=void 0,r.next=this._head,this._head.previous=r,this._head=r,this._state++}else if(w===2){if(r===this._tail)return;const u=r.next,E=r.previous;r===this._head?(u.previous=void 0,this._head=u):(u.previous=E,E.next=u),r.next=void 0,r.previous=this._tail,this._tail.next=r,this._tail=r,this._state++}}}toJSON(){const r=[];return this.forEach((w,u)=>{r.push([u,w])}),r}fromJSON(r){this.clear();for(const[w,u]of r)this.set(w,u)}}e.LinkedMap=C;class o extends C{constructor(r,w=1){super(),this._limit=r,this._ratio=Math.min(Math.max(0,w),1)}get limit(){return this._limit}set limit(r){this._limit=r,this.checkTrim()}get ratio(){return this._ratio}set ratio(r){this._ratio=Math.min(Math.max(0,r),1),this.checkTrim()}get(r,w=2){return super.get(r,w)}peek(r){return super.get(r,0)}set(r,w){return super.set(r,w,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}e.LRUCache=o}),define(ae[39],le([0,1,27]),function(x,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeAccents=e.normalizeNFD=e.normalizeNFC=void 0;const R=new f.LRUCache(1e4);function b(d){return v(d,"NFC",R)}e.normalizeNFC=b;const P=new f.LRUCache(1e4);function S(d){return v(d,"NFD",P)}e.normalizeNFD=S;const y=/[^\u0000-\u0080]/;function v(d,D,A){if(!d)return d;const C=A.get(d);if(C)return C;let o;return y.test(d)?o=d.normalize(D):o=d,A.set(d,o),o}e.removeAccents=function(){const d=/[\u0300-\u036f]/g;return function(D){return S(D).replace(d,"")}}()}),define(ae[40],le([0,1,9,4]),function(x,e,f,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prefixedStream=e.prefixedReadable=e.transform=e.toReadable=e.emptyStream=e.toStream=e.peekStream=e.listenStream=e.consumeStream=e.peekReadable=e.consumeReadable=e.newWriteableStream=e.isReadableBufferedStream=e.isReadableStream=e.isReadable=void 0;function b(n){const c=n;return c?typeof c.read=="function":!1}e.isReadable=b;function P(n){const c=n;return c?[c.on,c.pause,c.resume,c.destroy].every(_=>typeof _=="function"):!1}e.isReadableStream=P;function S(n){const c=n;return c?P(c.stream)&&Array.isArray(c.buffer)&&typeof c.ended=="boolean":!1}e.isReadableBufferedStream=S;function y(n,c){return new v(n,c)}e.newWriteableStream=y;class v{constructor(c,_){this.reducer=c,this.options=_,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(c){if(!this.state.destroyed){if(this.state.flowing)this.emitData(c);else if(this.buffer.data.push(c),typeof this.options?.highWaterMark=="number"&&this.buffer.data.length>this.options.highWaterMark)return new Promise(_=>this.pendingWritePromises.push(_))}}error(c){this.state.destroyed||(this.state.flowing?this.emitError(c):this.buffer.error.push(c))}end(c){this.state.destroyed||(typeof c<"u"&&this.write(c),this.state.flowing?(this.emitEnd(),this.destroy()):this.state.ended=!0)}emitData(c){this.listeners.data.slice(0).forEach(_=>_(c))}emitError(c){this.listeners.error.length===0?(0,f.onUnexpectedError)(c):this.listeners.error.slice(0).forEach(_=>_(c))}emitEnd(){this.listeners.end.slice(0).forEach(c=>c())}on(c,_){if(!this.state.destroyed)switch(c){case"data":this.listeners.data.push(_),this.resume();break;case"end":this.listeners.end.push(_),this.state.flowing&&this.flowEnd()&&this.destroy();break;case"error":this.listeners.error.push(_),this.state.flowing&&this.flowErrors();break}}removeListener(c,_){if(this.state.destroyed)return;let h;switch(c){case"data":h=this.listeners.data;break;case"end":h=this.listeners.end;break;case"error":h=this.listeners.error;break}if(h){const p=h.indexOf(_);p>=0&&h.splice(p,1)}}flowData(){if(this.buffer.data.length>0){const c=this.reducer(this.buffer.data);this.emitData(c),this.buffer.data.length=0;const _=[...this.pendingWritePromises];this.pendingWritePromises.length=0,_.forEach(h=>h())}}flowErrors(){if(this.listeners.error.length>0){for(const c of this.buffer.error)this.emitError(c);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 d(n,c){const _=[];let h;for(;(h=n.read())!==null;)_.push(h);return c(_)}e.consumeReadable=d;function D(n,c,_){const h=[];let p;for(;(p=n.read())!==null&&h.length<_;)h.push(p);return p===null&&h.length>0?c(h):{read:()=>{if(h.length>0)return h.shift();if(typeof p<"u"){const L=p;return p=void 0,L}return n.read()}}}e.peekReadable=D;function A(n,c){return new Promise((_,h)=>{const p=[];C(n,{onData:L=>{c&&p.push(L)},onError:L=>{c?h(L):_(void 0)},onEnd:()=>{_(c?c(p):void 0)}})})}e.consumeStream=A;function C(n,c){let _=!1;return n.on("error",h=>{_||c.onError(h)}),n.on("end",()=>{_||c.onEnd()}),n.on("data",h=>{_||c.onData(h)}),(0,R.toDisposable)(()=>_=!0)}e.listenStream=C;function o(n,c){return new Promise((_,h)=>{const p=new R.DisposableStore,L=[],g=a=>{if(L.push(a),L.length>c)return p.dispose(),n.pause(),_({stream:n,buffer:L,ended:!1})},m=a=>h(a),i=()=>_({stream:n,buffer:L,ended:!0});p.add((0,R.toDisposable)(()=>n.removeListener("error",m))),n.on("error",m),p.add((0,R.toDisposable)(()=>n.removeListener("end",i))),n.on("end",i),p.add((0,R.toDisposable)(()=>n.removeListener("data",g))),n.on("data",g)})}e.peekStream=o;function s(n,c){const _=y(c);return _.end(n),_}e.toStream=s;function r(){const n=y(()=>{throw new Error("not supported")});return n.end(),n}e.emptyStream=r;function w(n){let c=!1;return{read:()=>c?null:(c=!0,n)}}e.toReadable=w;function u(n,c,_){const h=y(_);return C(n,{onData:p=>h.write(c.data(p)),onError:p=>h.error(c.error?c.error(p):p),onEnd:()=>h.end()}),h}e.transform=u;function E(n,c,_){let h=!1;return{read:()=>{const p=c.read();return h?p:(h=!0,p!==null?_([n,p]):n)}}}e.prefixedReadable=E;function t(n,c,_){let h=!1;const p=y(_);return C(c,{onData:L=>h?p.write(L):(h=!0,p.write(_([n,L]))),onError:L=>p.error(L),onEnd:()=>{h||(h=!0,p.write(n)),p.end()}}),p}e.prefixedStream=t}),define(ae[23],le([0,1,40]),function(x,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.encodeBase64=e.decodeBase64=e.prefixedBufferStream=e.prefixedBufferReadable=e.newWriteableBufferStream=e.streamToBufferReadableStream=e.bufferToStream=e.bufferedStreamToBuffer=e.streamToBuffer=e.bufferToReadable=e.readableToBuffer=e.writeUInt8=e.readUInt8=e.writeUInt32LE=e.readUInt32LE=e.writeUInt32BE=e.readUInt32BE=e.writeUInt16LE=e.readUInt16LE=e.VSBuffer=void 0;const R=typeof Buffer<"u";let b,P;class S{static alloc(a){return R?new S(Buffer.allocUnsafe(a)):new S(new Uint8Array(a))}static wrap(a){return R&&!Buffer.isBuffer(a)&&(a=Buffer.from(a.buffer,a.byteOffset,a.byteLength)),new S(a)}static fromString(a,l){return!(l?.dontUseNodeBuffer||!1)&&R?new S(Buffer.from(a)):(b||(b=new TextEncoder),new S(b.encode(a)))}static fromByteArray(a){const l=S.alloc(a.length);for(let k=0,B=a.length;k"u"){l=0;for(let G=0,ne=a.length;G>>0|i[a+1]<<8>>>0}e.readUInt16LE=y;function v(i,a,l){i[l+0]=a&255,a=a>>>8,i[l+1]=a&255}e.writeUInt16LE=v;function d(i,a){return i[a]*2**24+i[a+1]*2**16+i[a+2]*2**8+i[a+3]}e.readUInt32BE=d;function D(i,a,l){i[l+3]=a,a=a>>>8,i[l+2]=a,a=a>>>8,i[l+1]=a,a=a>>>8,i[l]=a}e.writeUInt32BE=D;function A(i,a){return i[a+0]<<0>>>0|i[a+1]<<8>>>0|i[a+2]<<16>>>0|i[a+3]<<24>>>0}e.readUInt32LE=A;function C(i,a,l){i[l+0]=a&255,a=a>>>8,i[l+1]=a&255,a=a>>>8,i[l+2]=a&255,a=a>>>8,i[l+3]=a&255}e.writeUInt32LE=C;function o(i,a){return i[a]}e.readUInt8=o;function s(i,a,l){i[l]=a}e.writeUInt8=s;function r(i){return f.consumeReadable(i,a=>S.concat(a))}e.readableToBuffer=r;function w(i){return f.toReadable(i)}e.bufferToReadable=w;function u(i){return f.consumeStream(i,a=>S.concat(a))}e.streamToBuffer=u;async function E(i){return i.ended?S.concat(i.buffer):S.concat([...i.buffer,await u(i.stream)])}e.bufferedStreamToBuffer=E;function t(i){return f.toStream(i,a=>S.concat(a))}e.bufferToStream=t;function n(i){return f.transform(i,{data:a=>typeof a=="string"?S.fromString(a):S.wrap(a)},a=>S.concat(a))}e.streamToBufferReadableStream=n;function c(i){return f.newWriteableStream(a=>S.concat(a),i)}e.newWriteableBufferStream=c;function _(i,a){return f.prefixedReadable(i,a,l=>S.concat(l))}e.prefixedBufferReadable=_;function h(i,a){return f.prefixedStream(i,a,l=>S.concat(l))}e.prefixedBufferStream=h;function p(i){let a=0,l=0,k=0;const B=new Uint8Array(Math.floor(i.length/4*3)),G=ce=>{switch(l){case 3:B[k++]=a|ce,l=0;break;case 2:B[k++]=a|ce>>>2,a=ce<<6,l=3;break;case 1:B[k++]=a|ce>>>4,a=ce<<4,l=2;break;default:a=ce<<2,l=1}};for(let ce=0;ce=65&&he<=90)G(he-65);else if(he>=97&&he<=122)G(he-97+26);else if(he>=48&&he<=57)G(he-48+52);else if(he===43||he===45)G(62);else if(he===47||he===95)G(63);else{if(he===61)break;throw new SyntaxError(`Unexpected base64 character ${i[ce]}`)}}const ne=k;for(;l>0;)G(0);return S.wrap(B).slice(0,ne)}e.decodeBase64=p;const L="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function m({buffer:i},a=!0,l=!1){const k=l?g:L;let B="";const G=i.byteLength%3;let ne=0;for(;ne>>2],B+=k[(ce<<4|he>>>4)&63],B+=k[(he<<2|de>>>6)&63],B+=k[de&63]}if(G===1){const ce=i[ne+0];B+=k[ce>>>2],B+=k[ce<<4&63],a&&(B+="==")}else if(G===2){const ce=i[ne+0],he=i[ne+1];B+=k[ce>>>2],B+=k[(ce<<4|he>>>4)&63],B+=k[he<<2&63],a&&(B+="=")}return B}e.encodeBase64=m}),define(ae[10],le([0,1]),function(x,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.withUndefinedAsNull=e.withNullAsUndefined=e.validateConstraint=e.validateConstraints=e.areFunctions=e.isFunction=e.isEmptyObject=e.assertAllDefined=e.assertIsDefined=e.assertType=e.isUndefinedOrNull=e.isDefined=e.isUndefined=e.isBoolean=e.isIterable=e.isNumber=e.isTypedArray=e.isObject=e.isStringArray=e.isString=void 0;function f(h){return typeof h=="string"}e.isString=f;function R(h){return Array.isArray(h)&&h.every(p=>f(p))}e.isStringArray=R;function b(h){return typeof h=="object"&&h!==null&&!Array.isArray(h)&&!(h instanceof RegExp)&&!(h instanceof Date)}e.isObject=b;function P(h){const p=Object.getPrototypeOf(Uint8Array);return typeof h=="object"&&h instanceof p}e.isTypedArray=P;function S(h){return typeof h=="number"&&!isNaN(h)}e.isNumber=S;function y(h){return!!h&&typeof h[Symbol.iterator]=="function"}e.isIterable=y;function v(h){return h===!0||h===!1}e.isBoolean=v;function d(h){return typeof h>"u"}e.isUndefined=d;function D(h){return!A(h)}e.isDefined=D;function A(h){return d(h)||h===null}e.isUndefinedOrNull=A;function C(h,p){if(!h)throw new Error(p?`Unexpected type, expected '${p}'`:"Unexpected type")}e.assertType=C;function o(h){if(A(h))throw new Error("Assertion Failed: argument is undefined or null");return h}e.assertIsDefined=o;function s(...h){const p=[];for(let L=0;L0&&h.every(u)}e.areFunctions=E;function t(h,p){const L=Math.min(h.length,p.length);for(let g=0;g"u"?null:h}e.withUndefinedAsNull=_}),define(ae[28],le([0,1,10]),function(x,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createProxyObject=e.getAllMethodNames=e.getAllPropertyNames=e.filter=e.getCaseInsensitive=e.distinct=e.safeStringify=e.equals=e.mixin=e.cloneAndChange=e.deepFreeze=e.deepClone=void 0;function R(u){if(!u||typeof u!="object"||u instanceof RegExp)return u;const E=Array.isArray(u)?[]:{};return Object.entries(u).forEach(([t,n])=>{E[t]=n&&typeof n=="object"?R(n):n}),E}e.deepClone=R;function b(u){if(!u||typeof u!="object")return u;const E=[u];for(;E.length>0;){const t=E.shift();Object.freeze(t);for(const n in t)if(P.call(t,n)){const c=t[n];typeof c=="object"&&!Object.isFrozen(c)&&!(0,f.isTypedArray)(c)&&E.push(c)}}return u}e.deepFreeze=b;const P=Object.prototype.hasOwnProperty;function S(u,E){return y(u,E,new Set)}e.cloneAndChange=S;function y(u,E,t){if((0,f.isUndefinedOrNull)(u))return u;const n=E(u);if(typeof n<"u")return n;if(Array.isArray(u)){const c=[];for(const _ of u)c.push(y(_,E,t));return c}if((0,f.isObject)(u)){if(t.has(u))throw new Error("Cannot clone recursive data-structure");t.add(u);const c={};for(const _ in u)P.call(u,_)&&(c[_]=y(u[_],E,t));return t.delete(u),c}return u}function v(u,E,t=!0){return(0,f.isObject)(u)?((0,f.isObject)(E)&&Object.keys(E).forEach(n=>{n in u?t&&((0,f.isObject)(u[n])&&(0,f.isObject)(E[n])?v(u[n],E[n],t):u[n]=E[n]):u[n]=E[n]}),u):E}e.mixin=v;function d(u,E){if(u===E)return!0;if(u==null||E===null||E===void 0||typeof u!=typeof E||typeof u!="object"||Array.isArray(u)!==Array.isArray(E))return!1;let t,n;if(Array.isArray(u)){if(u.length!==E.length)return!1;for(t=0;t{if((0,f.isObject)(n)||Array.isArray(n)){if(E.has(n))return"[Circular]";E.add(n)}return n})}e.safeStringify=D;function A(u,E){const t=Object.create(null);return!u||!E||Object.keys(E).forEach(c=>{const _=u[c],h=E[c];d(_,h)||(t[c]=h)}),t}e.distinct=A;function C(u,E){const t=E.toLowerCase(),n=Object.keys(u).find(c=>c.toLowerCase()===t);return n?u[n]:u[E]}e.getCaseInsensitive=C;function o(u,E){const t=Object.create(null);for(const[n,c]of Object.entries(u))E(n,c)&&(t[n]=c);return t}e.filter=o;function s(u){let E=[],t=Object.getPrototypeOf(u);for(;Object.prototype!==t;)E=E.concat(Object.getOwnPropertyNames(t)),t=Object.getPrototypeOf(t);return E}e.getAllPropertyNames=s;function r(u){const E=[];for(const t of s(u))typeof u[t]=="function"&&E.push(t);return E}e.getAllMethodNames=r;function w(u,E){const t=c=>function(){const _=Array.prototype.slice.call(arguments,0);return E(c,_)},n={};for(const c of u)n[c]=t(c);return n}e.createProxyObject=w}),define(ae[41],le([0,1]),function(x,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateUuid=e.isUUID=void 0;const f=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;function R(b){return f.test(b)}e.isUUID=R,e.generateUuid=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let b;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?b=crypto.getRandomValues.bind(crypto):b=function(y){for(let v=0;v1?b.localize(4,null,s,o.length):s}if(R.isString(A))return A;if(A.detail){const o=A.detail;if(o.error)return P(o.error,C);if(o.exception)return P(o.exception,C)}return A.stack?P(A,C):A.message?A.message:b.localize(5,null)}e.toErrorMessage=v;function d(A){const C=A;return C instanceof Error&&Array.isArray(C.actions)}e.isErrorWithActions=d;function D(A,C){let o;return typeof A=="string"?o=new Error(A):o=A,o.actions=C,o}e.createErrorWithActions=D}),define(ae[46],le([12,13]),function(x,e){return x.create("vs/base/common/platform",e)}),define(ae[2],le([0,1,46]),function(x,e,f){"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.isMobile=e.isIOS=e.isWebWorker=e.isWeb=e.isElectron=e.isNative=e.isLinuxSnap=e.isLinux=e.isMacintosh=e.isWindows=e.PlatformToString=e.Platform=e.globals=e.LANGUAGE_DEFAULT=void 0,e.LANGUAGE_DEFAULT="en";let R=!1,b=!1,P=!1,S=!1,y=!1,v=!1,d=!1,D=!1,A=!1,C=!1,o,s=e.LANGUAGE_DEFAULT,r,w;e.globals=typeof self=="object"?self:typeof global=="object"?global:{};let u;typeof e.globals.vscode<"u"&&typeof e.globals.vscode.process<"u"?u=e.globals.vscode.process:typeof process<"u"&&(u=process);const E=typeof u?.versions?.electron=="string",t=E&&u?.type==="renderer";if(typeof navigator=="object"&&!t)w=navigator.userAgent,R=w.indexOf("Windows")>=0,b=w.indexOf("Macintosh")>=0,D=(w.indexOf("Macintosh")>=0||w.indexOf("iPad")>=0||w.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,P=w.indexOf("Linux")>=0,C=w?.indexOf("Mobi")>=0,v=!0,o=f.getConfiguredDefaultLocale(f.localize(0,null))||e.LANGUAGE_DEFAULT,s=o;else if(typeof u=="object"){R=u.platform==="win32",b=u.platform==="darwin",P=u.platform==="linux",S=P&&!!u.env.SNAP&&!!u.env.SNAP_REVISION,d=E,A=!!u.env.CI||!!u.env.BUILD_ARTIFACTSTAGINGDIRECTORY,o=e.LANGUAGE_DEFAULT,s=e.LANGUAGE_DEFAULT;const i=u.env.VSCODE_NLS_CONFIG;if(i)try{const a=JSON.parse(i),l=a.availableLanguages["*"];o=a.locale,s=l||e.LANGUAGE_DEFAULT,r=a._translationsConfigFile}catch{}y=!0}else console.error("Unable to resolve platform.");var n;(function(i){i[i.Web=0]="Web",i[i.Mac=1]="Mac",i[i.Linux=2]="Linux",i[i.Windows=3]="Windows"})(n=e.Platform||(e.Platform={}));function c(i){switch(i){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}e.PlatformToString=c;let _=0;b?_=1:R?_=3:P&&(_=2),e.isWindows=R,e.isMacintosh=b,e.isLinux=P,e.isLinuxSnap=S,e.isNative=y,e.isElectron=d,e.isWeb=v,e.isWebWorker=v&&typeof e.globals.importScripts=="function",e.isIOS=D,e.isMobile=C,e.isCI=A,e.platform=_,e.userAgent=w,e.language=s;var h;(function(i){function a(){return e.language}i.value=a;function l(){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=l;function k(){return e.language==="en"}i.isDefault=k})(h=e.Language||(e.Language={})),e.locale=o,e.translationsConfigFile=r,e.setTimeout0IsFaster=typeof e.globals.postMessage=="function"&&!e.globals.importScripts,e.setTimeout0=(()=>{if(e.setTimeout0IsFaster){const i=[];e.globals.addEventListener("message",l=>{if(l.data&&l.data.vscodeScheduleAsyncWork)for(let k=0,B=i.length;k{const k=++a;i.push({id:k,callback:l}),e.globals.postMessage({vscodeScheduleAsyncWork:k},"*")}}return i=>setTimeout(i)})();var p;(function(i){i[i.Windows=1]="Windows",i[i.Macintosh=2]="Macintosh",i[i.Linux=3]="Linux"})(p=e.OperatingSystem||(e.OperatingSystem={})),e.OS=b||D?2:R?1:3;let L=!0,g=!1;function m(){if(!g){g=!0;const i=new Uint8Array(2);i[0]=1,i[1]=2,L=new Uint16Array(i.buffer)[0]===(2<<8)+1}return L}e.isLittleEndian=m,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(ae[14],le([0,1,2]),function(x,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arch=e.platform=e.env=e.cwd=void 0;let R;if(typeof f.globals.vscode<"u"&&typeof f.globals.vscode.process<"u"){const b=f.globals.vscode.process;R={get platform(){return b.platform},get arch(){return b.arch},get env(){return b.env},cwd(){return b.cwd()}}}else typeof process<"u"?R={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:R={get platform(){return f.isWindows?"win32":f.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};e.cwd=R.cwd,e.env=R.env,e.platform=R.platform,e.arch=R.arch}),define(ae[5],le([0,1,14]),function(x,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.delimiter=e.sep=e.toNamespacedPath=e.parse=e.format=e.extname=e.basename=e.dirname=e.relative=e.resolve=e.join=e.isAbsolute=e.normalize=e.posix=e.win32=void 0;const R=65,b=97,P=90,S=122,y=46,v=47,d=92,D=58,A=63;class C extends Error{constructor(n,c,_){let h;typeof c=="string"&&c.indexOf("not ")===0?(h="must not be",c=c.replace(/^not /,"")):h="must be";const p=n.indexOf(".")!==-1?"property":"argument";let L=`The "${n}" ${p} ${h} of type ${c}`;L+=`. Received type ${typeof _}`,super(L),this.code="ERR_INVALID_ARG_TYPE"}}function o(t,n){if(typeof t!="string")throw new C(n,"string",t)}function s(t){return t===v||t===d}function r(t){return t===v}function w(t){return t>=R&&t<=P||t>=b&&t<=S}function u(t,n,c,_){let h="",p=0,L=-1,g=0,m=0;for(let i=0;i<=t.length;++i){if(i2){const a=h.lastIndexOf(c);a===-1?(h="",p=0):(h=h.slice(0,a),p=h.length-1-h.lastIndexOf(c)),L=i,g=0;continue}else if(h.length!==0){h="",p=0,L=i,g=0;continue}}n&&(h+=h.length>0?`${c}..`:"..",p=2)}else h.length>0?h+=`${c}${t.slice(L+1,i)}`:h=t.slice(L+1,i),p=i-L-1;L=i,g=0}else m===y&&g!==-1?++g:g=-1}return h}function E(t,n){if(n===null||typeof n!="object")throw new C("pathObject","Object",n);const c=n.dir||n.root,_=n.base||`${n.name||""}${n.ext||""}`;return c?c===n.root?`${c}${_}`:`${c}${t}${_}`:_}e.win32={resolve(...t){let n="",c="",_=!1;for(let h=t.length-1;h>=-1;h--){let p;if(h>=0){if(p=t[h],o(p,"path"),p.length===0)continue}else n.length===0?p=f.cwd():(p=f.env[`=${n}`]||f.cwd(),(p===void 0||p.slice(0,2).toLowerCase()!==n.toLowerCase()&&p.charCodeAt(2)===d)&&(p=`${n}\\`));const L=p.length;let g=0,m="",i=!1;const a=p.charCodeAt(0);if(L===1)s(a)&&(g=1,i=!0);else if(s(a))if(i=!0,s(p.charCodeAt(1))){let l=2,k=l;for(;l2&&s(p.charCodeAt(2))&&(i=!0,g=3));if(m.length>0)if(n.length>0){if(m.toLowerCase()!==n.toLowerCase())continue}else n=m;if(_){if(n.length>0)break}else if(c=`${p.slice(g)}\\${c}`,_=i,i&&n.length>0)break}return c=u(c,!_,"\\",s),_?`${n}\\${c}`:`${n}${c}`||"."},normalize(t){o(t,"path");const n=t.length;if(n===0)return".";let c=0,_,h=!1;const p=t.charCodeAt(0);if(n===1)return r(p)?"\\":t;if(s(p))if(h=!0,s(t.charCodeAt(1))){let g=2,m=g;for(;g2&&s(t.charCodeAt(2))&&(h=!0,c=3));let L=c0&&s(t.charCodeAt(n-1))&&(L+="\\"),_===void 0?h?`\\${L}`:L:h?`${_}\\${L}`:`${_}${L}`},isAbsolute(t){o(t,"path");const n=t.length;if(n===0)return!1;const c=t.charCodeAt(0);return s(c)||n>2&&w(c)&&t.charCodeAt(1)===D&&s(t.charCodeAt(2))},join(...t){if(t.length===0)return".";let n,c;for(let p=0;p0&&(n===void 0?n=c=L:n+=`\\${L}`)}if(n===void 0)return".";let _=!0,h=0;if(typeof c=="string"&&s(c.charCodeAt(0))){++h;const p=c.length;p>1&&s(c.charCodeAt(1))&&(++h,p>2&&(s(c.charCodeAt(2))?++h:_=!1))}if(_){for(;h=2&&(n=`\\${n.slice(h)}`)}return e.win32.normalize(n)},relative(t,n){if(o(t,"from"),o(n,"to"),t===n)return"";const c=e.win32.resolve(t),_=e.win32.resolve(n);if(c===_||(t=c.toLowerCase(),n=_.toLowerCase(),t===n))return"";let h=0;for(;hh&&t.charCodeAt(p-1)===d;)p--;const L=p-h;let g=0;for(;gg&&n.charCodeAt(m-1)===d;)m--;const i=m-g,a=La){if(n.charCodeAt(g+k)===d)return _.slice(g+k+1);if(k===2)return _.slice(g+k)}L>a&&(t.charCodeAt(h+k)===d?l=k:k===2&&(l=3)),l===-1&&(l=0)}let B="";for(k=h+l+1;k<=p;++k)(k===p||t.charCodeAt(k)===d)&&(B+=B.length===0?"..":"\\..");return g+=l,B.length>0?`${B}${_.slice(g,m)}`:(_.charCodeAt(g)===d&&++g,_.slice(g,m))},toNamespacedPath(t){if(typeof t!="string")return t;if(t.length===0)return"";const n=e.win32.resolve(t);if(n.length<=2)return t;if(n.charCodeAt(0)===d){if(n.charCodeAt(1)===d){const c=n.charCodeAt(2);if(c!==A&&c!==y)return`\\\\?\\UNC\\${n.slice(2)}`}}else if(w(n.charCodeAt(0))&&n.charCodeAt(1)===D&&n.charCodeAt(2)===d)return`\\\\?\\${n}`;return t},dirname(t){o(t,"path");const n=t.length;if(n===0)return".";let c=-1,_=0;const h=t.charCodeAt(0);if(n===1)return s(h)?t:".";if(s(h)){if(c=_=1,s(t.charCodeAt(1))){let g=2,m=g;for(;g2&&s(t.charCodeAt(2))?3:2,_=c);let p=-1,L=!0;for(let g=n-1;g>=_;--g)if(s(t.charCodeAt(g))){if(!L){p=g;break}}else L=!1;if(p===-1){if(c===-1)return".";p=c}return t.slice(0,p)},basename(t,n){n!==void 0&&o(n,"ext"),o(t,"path");let c=0,_=-1,h=!0,p;if(t.length>=2&&w(t.charCodeAt(0))&&t.charCodeAt(1)===D&&(c=2),n!==void 0&&n.length>0&&n.length<=t.length){if(n===t)return"";let L=n.length-1,g=-1;for(p=t.length-1;p>=c;--p){const m=t.charCodeAt(p);if(s(m)){if(!h){c=p+1;break}}else g===-1&&(h=!1,g=p+1),L>=0&&(m===n.charCodeAt(L)?--L===-1&&(_=p):(L=-1,_=g))}return c===_?_=g:_===-1&&(_=t.length),t.slice(c,_)}for(p=t.length-1;p>=c;--p)if(s(t.charCodeAt(p))){if(!h){c=p+1;break}}else _===-1&&(h=!1,_=p+1);return _===-1?"":t.slice(c,_)},extname(t){o(t,"path");let n=0,c=-1,_=0,h=-1,p=!0,L=0;t.length>=2&&t.charCodeAt(1)===D&&w(t.charCodeAt(0))&&(n=_=2);for(let g=t.length-1;g>=n;--g){const m=t.charCodeAt(g);if(s(m)){if(!p){_=g+1;break}continue}h===-1&&(p=!1,h=g+1),m===y?c===-1?c=g:L!==1&&(L=1):c!==-1&&(L=-1)}return c===-1||h===-1||L===0||L===1&&c===h-1&&c===_+1?"":t.slice(c,h)},format:E.bind(null,"\\"),parse(t){o(t,"path");const n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;const c=t.length;let _=0,h=t.charCodeAt(0);if(c===1)return s(h)?(n.root=n.dir=t,n):(n.base=n.name=t,n);if(s(h)){if(_=1,s(t.charCodeAt(1))){let l=2,k=l;for(;l0&&(n.root=t.slice(0,_));let p=-1,L=_,g=-1,m=!0,i=t.length-1,a=0;for(;i>=_;--i){if(h=t.charCodeAt(i),s(h)){if(!m){L=i+1;break}continue}g===-1&&(m=!1,g=i+1),h===y?p===-1?p=i:a!==1&&(a=1):p!==-1&&(a=-1)}return g!==-1&&(p===-1||a===0||a===1&&p===g-1&&p===L+1?n.base=n.name=t.slice(L,g):(n.name=t.slice(L,p),n.base=t.slice(L,g),n.ext=t.slice(p,g))),L>0&&L!==_?n.dir=t.slice(0,L-1):n.dir=n.root,n},sep:"\\",delimiter:";",win32:null,posix:null},e.posix={resolve(...t){let n="",c=!1;for(let _=t.length-1;_>=-1&&!c;_--){const h=_>=0?t[_]:f.cwd();o(h,"path"),h.length!==0&&(n=`${h}/${n}`,c=h.charCodeAt(0)===v)}return n=u(n,!c,"/",r),c?`/${n}`:n.length>0?n:"."},normalize(t){if(o(t,"path"),t.length===0)return".";const n=t.charCodeAt(0)===v,c=t.charCodeAt(t.length-1)===v;return t=u(t,!n,"/",r),t.length===0?n?"/":c?"./":".":(c&&(t+="/"),n?`/${t}`:t)},isAbsolute(t){return o(t,"path"),t.length>0&&t.charCodeAt(0)===v},join(...t){if(t.length===0)return".";let n;for(let c=0;c0&&(n===void 0?n=_:n+=`/${_}`)}return n===void 0?".":e.posix.normalize(n)},relative(t,n){if(o(t,"from"),o(n,"to"),t===n||(t=e.posix.resolve(t),n=e.posix.resolve(n),t===n))return"";const c=1,_=t.length,h=_-c,p=1,L=n.length-p,g=hg){if(n.charCodeAt(p+i)===v)return n.slice(p+i+1);if(i===0)return n.slice(p+i)}else h>g&&(t.charCodeAt(c+i)===v?m=i:i===0&&(m=0));let a="";for(i=c+m+1;i<=_;++i)(i===_||t.charCodeAt(i)===v)&&(a+=a.length===0?"..":"/..");return`${a}${n.slice(p+m)}`},toNamespacedPath(t){return t},dirname(t){if(o(t,"path"),t.length===0)return".";const n=t.charCodeAt(0)===v;let c=-1,_=!0;for(let h=t.length-1;h>=1;--h)if(t.charCodeAt(h)===v){if(!_){c=h;break}}else _=!1;return c===-1?n?"/":".":n&&c===1?"//":t.slice(0,c)},basename(t,n){n!==void 0&&o(n,"ext"),o(t,"path");let c=0,_=-1,h=!0,p;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n===t)return"";let L=n.length-1,g=-1;for(p=t.length-1;p>=0;--p){const m=t.charCodeAt(p);if(m===v){if(!h){c=p+1;break}}else g===-1&&(h=!1,g=p+1),L>=0&&(m===n.charCodeAt(L)?--L===-1&&(_=p):(L=-1,_=g))}return c===_?_=g:_===-1&&(_=t.length),t.slice(c,_)}for(p=t.length-1;p>=0;--p)if(t.charCodeAt(p)===v){if(!h){c=p+1;break}}else _===-1&&(h=!1,_=p+1);return _===-1?"":t.slice(c,_)},extname(t){o(t,"path");let n=-1,c=0,_=-1,h=!0,p=0;for(let L=t.length-1;L>=0;--L){const g=t.charCodeAt(L);if(g===v){if(!h){c=L+1;break}continue}_===-1&&(h=!1,_=L+1),g===y?n===-1?n=L:p!==1&&(p=1):n!==-1&&(p=-1)}return n===-1||_===-1||p===0||p===1&&n===_-1&&n===c+1?"":t.slice(n,_)},format:E.bind(null,"/"),parse(t){o(t,"path");const n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;const c=t.charCodeAt(0)===v;let _;c?(n.root="/",_=1):_=0;let h=-1,p=0,L=-1,g=!0,m=t.length-1,i=0;for(;m>=_;--m){const a=t.charCodeAt(m);if(a===v){if(!g){p=m+1;break}continue}L===-1&&(g=!1,L=m+1),a===y?h===-1?h=m:i!==1&&(i=1):h!==-1&&(i=-1)}if(L!==-1){const a=p===0&&c?1:p;h===-1||i===0||i===1&&h===L-1&&h===p+1?n.base=n.name=t.slice(a,L):(n.name=t.slice(a,h),n.base=t.slice(a,L),n.ext=t.slice(h,L))}return p>0?n.dir=t.slice(0,p-1):c&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null},e.posix.win32=e.win32.win32=e.win32,e.posix.posix=e.win32.posix=e.posix,e.normalize=f.platform==="win32"?e.win32.normalize:e.posix.normalize,e.isAbsolute=f.platform==="win32"?e.win32.isAbsolute:e.posix.isAbsolute,e.join=f.platform==="win32"?e.win32.join:e.posix.join,e.resolve=f.platform==="win32"?e.win32.resolve:e.posix.resolve,e.relative=f.platform==="win32"?e.win32.relative:e.posix.relative,e.dirname=f.platform==="win32"?e.win32.dirname:e.posix.dirname,e.basename=f.platform==="win32"?e.win32.basename:e.posix.basename,e.extname=f.platform==="win32"?e.win32.extname:e.posix.extname,e.format=f.platform==="win32"?e.win32.format:e.posix.format,e.parse=f.platform==="win32"?e.win32.parse:e.posix.parse,e.toNamespacedPath=f.platform==="win32"?e.win32.toNamespacedPath:e.posix.toNamespacedPath,e.sep=f.platform==="win32"?e.win32.sep:e.posix.sep,e.delimiter=f.platform==="win32"?e.win32.delimiter:e.posix.delimiter}),define(ae[29],le([0,1,2]),function(x,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeDangerousEnvVariables=e.sanitizeProcessEnvironment=e.TerminateResponseCode=e.Source=void 0;var R;(function(y){y[y.stdout=0]="stdout",y[y.stderr=1]="stderr"})(R=e.Source||(e.Source={}));var b;(function(y){y[y.Success=0]="Success",y[y.Unknown=1]="Unknown",y[y.AccessDenied=2]="AccessDenied",y[y.ProcessNotFound=3]="ProcessNotFound"})(b=e.TerminateResponseCode||(e.TerminateResponseCode={}));function P(y,...v){const d=v.reduce((C,o)=>(C[o]=!0,C),{}),D=[/^ELECTRON_.+$/,/^VSCODE_(?!SHELL_LOGIN).+$/,/^SNAP(|_.*)$/,/^GDK_PIXBUF_.+$/];Object.keys(y).filter(C=>!d[C]).forEach(C=>{for(let o=0;ob.Disposable.None;function i(H){if(v){const{onListenerDidAdd:K}=H,ie=s.create();let O=0;H.onListenerDidAdd=()=>{++O===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),ie.print()),K?.()}}}function a(H,K){return oe(H,()=>{},0,void 0,void 0,K)}m.defer=a;function l(H,K=0,ie){return m.debounce(H,(O,F)=>O?(O.push(F),O):[F],K,void 0,void 0,ie)}m.accumulate=l;function k(H){return(K,ie=null,O)=>{let F=!1,U;return U=H(V=>{if(!F)return U?U.dispose():F=!0,K.call(ie,V)},null,O),F&&U.dispose(),U}}m.once=k;function B(H,K,ie){return ee((O,F=null,U)=>H(V=>O.call(F,K(V)),null,U),ie)}m.map=B;function G(H,K,ie){return ee((O,F=null,U)=>H(V=>{K(V),O.call(F,V)},null,U),ie)}m.forEach=G;function ne(H,K,ie){return ee((O,F=null,U)=>H(V=>K(V)&&O.call(F,V),null,U),ie)}m.filter=ne;function ce(H){return H}m.signal=ce;function he(...H){return(K,ie=null,O)=>(0,b.combinedDisposable)(...H.map(F=>F(U=>K.call(ie,U),null,O)))}m.any=he;function de(H,K,ie,O){let F=ie;return B(H,U=>(F=K(F,U),F),O)}m.reduce=de;function ee(H,K){let ie;const O={onFirstListenerAdd(){ie=H(F.fire,F)},onLastListenerRemove(){ie?.dispose()}};K||i(O);const F=new w(O);return K?.add(F),F.event}function oe(H,K,ie=100,O=!1,F,U){let V,Z,me,ge=0;const we={leakWarningThreshold:F,onFirstListenerAdd(){V=H(Ce=>{ge++,Z=K(Z,Ce),O&&!me&&(ve.fire(Z),Z=void 0),clearTimeout(me),me=setTimeout(()=>{const be=Z;Z=void 0,me=void 0,(!O||ge>1)&&ve.fire(be),ge=0},ie)})},onLastListenerRemove(){V.dispose()}};U||i(we);const ve=new w(we);return U?.add(ve),ve.event}m.debounce=oe;function N(H,K=(O,F)=>O===F,ie){let O=!0,F;return ne(H,U=>{const V=O||!K(U,F);return O=!1,F=U,V},ie)}m.latch=N;function J(H,K,ie){return[m.filter(H,K,ie),m.filter(H,O=>!K(O),ie)]}m.split=J;function z(H,K=!1,ie=[]){let O=ie.slice(),F=H(Z=>{O?O.push(Z):V.fire(Z)});const U=()=>{O?.forEach(Z=>V.fire(Z)),O=null},V=new w({onFirstListenerAdd(){F||(F=H(Z=>V.fire(Z)))},onFirstListenerDidAdd(){O&&(K?setTimeout(U):U())},onLastListenerRemove(){F&&F.dispose(),F=null}});return V.event}m.buffer=z;class M{constructor(K){this.event=K,this.disposables=new b.DisposableStore}map(K){return new M(B(this.event,K,this.disposables))}forEach(K){return new M(G(this.event,K,this.disposables))}filter(K){return new M(ne(this.event,K,this.disposables))}reduce(K,ie){return new M(de(this.event,K,ie,this.disposables))}latch(){return new M(N(this.event,void 0,this.disposables))}debounce(K,ie=100,O=!1,F){return new M(oe(this.event,K,ie,O,F,this.disposables))}on(K,ie,O){return this.event(K,ie,O)}once(K,ie,O){return k(this.event)(K,ie,O)}dispose(){this.disposables.dispose()}}function W(H){return new M(H)}m.chain=W;function j(H,K,ie=O=>O){const O=(...Z)=>V.fire(ie(...Z)),F=()=>H.on(K,O),U=()=>H.removeListener(K,O),V=new w({onFirstListenerAdd:F,onLastListenerRemove:U});return V.event}m.fromNodeEventEmitter=j;function re(H,K,ie=O=>O){const O=(...Z)=>V.fire(ie(...Z)),F=()=>H.addEventListener(K,O),U=()=>H.removeEventListener(K,O),V=new w({onFirstListenerAdd:F,onLastListenerRemove:U});return V.event}m.fromDOMEventEmitter=re;function te(H){return new Promise(K=>k(H)(K))}m.toPromise=te;function Y(H,K){return K(void 0),H(ie=>K(ie))}m.runAndSubscribe=Y;function T(H,K){let ie=null;function O(U){ie?.dispose(),ie=new b.DisposableStore,K(U,ie)}O(void 0);const F=H(U=>O(U));return(0,b.toDisposable)(()=>{F.dispose(),ie?.dispose()})}m.runAndSubscribeWithStore=T;class ${constructor(K,ie){this.obs=K,this._counter=0,this._hasChanged=!1;const O={onFirstListenerAdd:()=>{K.addObserver(this)},onLastListenerRemove:()=>{K.removeObserver(this)}};ie||i(O),this.emitter=new w(O),ie&&ie.add(this.emitter)}beginUpdate(K){this._counter++}handleChange(K,ie){this._hasChanged=!0}endUpdate(K){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function Q(H,K){return new $(H,K).emitter.event}m.fromObservable=Q})(d=e.Event||(e.Event={}));class D{constructor(i){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${i}_${D._idPool++}`,D.all.add(this)}start(i){this._stopWatch=new S.StopWatch(!0),this.listenerCount=i}stop(){if(this._stopWatch){const i=this._stopWatch.elapsed();this.durations.push(i),this.elapsedOverall+=i,this.invocationCount+=1,this._stopWatch=void 0}}}e.EventProfiling=D,D.all=new Set,D._idPool=0;let A=-1;function C(m){const i=A;return A=m,{dispose(){A=i}}}e.setGlobalLeakWarningThreshold=C;class o{constructor(i,a=Math.random().toString(18).slice(2,5)){this.customThreshold=i,this.name=a,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(i,a){let l=A;if(typeof this.customThreshold=="number"&&(l=this.customThreshold),l<=0||a{const B=this._stacks.get(i.value)||0;this._stacks.set(i.value,B-1)}}}class s{static create(){return new s(new Error().stack??"")}constructor(i){this.value=i}print(){console.warn(this.value.split(` `).slice(2).join(` `))}}class r{constructor(i,a,l){this.callback=i,this.callbackThis=a,this.stack=l,this.subscription=new b.SafeDisposable}invoke(i){this.callback.call(this.callbackThis,i)}}class w{constructor(i){this._disposed=!1,this._options=i,this._leakageMon=A>0?new o(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=this._options?._profName?new D(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){if(!this._disposed){if(this._disposed=!0,this._listeners){if(y){const i=Array.from(this._listeners);queueMicrotask(()=>{for(const a of i)a.subscription.isset()&&(a.subscription.unset(),a.stack?.print())})}this._listeners.clear()}this._deliveryQueue?.clear(this),this._options?.onLastListenerRemove?.(),this._leakageMon?.dispose()}}get event(){return this._event||(this._event=(i,a,l)=>{this._listeners||(this._listeners=new P.LinkedList);const k=this._listeners.isEmpty();k&&this._options?.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);let B,G;this._leakageMon&&this._listeners.size>=30&&(G=s.create(),B=this._leakageMon.check(G,this._listeners.size+1)),y&&(G=G??s.create());const ne=new r(i,a,G),ce=this._listeners.push(ne);k&&this._options?.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options?.onListenerDidAdd&&this._options.onListenerDidAdd(this,i,a);const he=ne.subscription.set(()=>{B?.(),this._disposed||(ce(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return l instanceof b.DisposableStore?l.add(he):Array.isArray(l)&&l.push(he),he}),this._event}fire(i){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new E);for(const a of this._listeners)this._deliveryQueue.push(this,a,i);this._perfMon?.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),this._perfMon?.stop()}}hasListeners(){return this._listeners?!this._listeners.isEmpty():!1}}e.Emitter=w;class u{constructor(){this._queue=new P.LinkedList}get size(){return this._queue.size}push(i,a,l){this._queue.push(new t(i,a,l))}clear(i){const a=new P.LinkedList;for(const l of this._queue)l.emitter!==i&&a.push(l);this._queue=a}deliver(){for(;this._queue.size>0;){const i=this._queue.shift();try{i.listener.invoke(i.event)}catch(a){(0,f.onUnexpectedError)(a)}}}}e.EventDeliveryQueue=u;class E extends u{clear(i){this._queue.clear()}}class t{constructor(i,a,l){this.emitter=i,this.listener=a,this.event=l}}class n extends w{async fireAsync(i,a,l){if(!!this._listeners){this._asyncDeliveryQueue||(this._asyncDeliveryQueue=new P.LinkedList);for(const k of this._listeners)this._asyncDeliveryQueue.push([k,i]);for(;this._asyncDeliveryQueue.size>0&&!a.isCancellationRequested;){const[k,B]=this._asyncDeliveryQueue.shift(),G=[],ne={...B,token:a,waitUntil:ce=>{if(Object.isFrozen(G))throw new Error("waitUntil can NOT be called asynchronous");l&&(ce=l(ce,k.callback)),G.push(ce)}};try{k.invoke(ne)}catch(ce){(0,f.onUnexpectedError)(ce);continue}Object.freeze(G),await Promise.allSettled(G).then(ce=>{for(const he of ce)he.status==="rejected"&&(0,f.onUnexpectedError)(he.reason)})}}}}e.AsyncEmitter=n;class c extends w{constructor(i){super(i),this._isPaused=0,this._eventQueue=new P.LinkedList,this._mergeFn=i?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const i=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(i))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(i){this._listeners&&(this._isPaused!==0?this._eventQueue.push(i):super.fire(i))}}e.PauseableEmitter=c;class _ extends c{constructor(i){super(i),this._delay=i.delay??100}fire(i){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(i)}}e.DebounceEmitter=_;class h extends w{constructor(i){super(i),this._queuedEvents=[],this._mergeFn=i?.merge}fire(i){!this.hasListeners()||(this._queuedEvents.push(i),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(a=>super.fire(a)),this._queuedEvents=[]}))}}e.MicrotaskEmitter=h;class p{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new w({onFirstListenerAdd:()=>this.onFirstListenerAdd(),onLastListenerRemove:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(i){const a={event:i,listener:null};this.events.push(a),this.hasListeners&&this.hook(a);const l=()=>{this.hasListeners&&this.unhook(a);const k=this.events.indexOf(a);this.events.splice(k,1)};return(0,b.toDisposable)((0,R.once)(l))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(i=>this.hook(i))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(i=>this.unhook(i))}hook(i){i.listener=i.event(a=>this.emitter.fire(a))}unhook(i){i.listener&&i.listener.dispose(),i.listener=null}dispose(){this.emitter.dispose()}}e.EventMultiplexer=p;class L{constructor(){this.buffers=[]}wrapEvent(i){return(a,l,k)=>i(B=>{const G=this.buffers[this.buffers.length-1];G?G.push(()=>a.call(l,B)):a.call(l,B)},void 0,k)}bufferEvents(i){const a=[];this.buffers.push(a);const l=i();return this.buffers.pop(),a.forEach(k=>k()),l}}e.EventBufferer=L;class g{constructor(){this.listening=!1,this.inputEvent=d.None,this.inputEventListener=b.Disposable.None,this.emitter=new w({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(i){this.inputEvent=i,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=i(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}e.Relay=g}),define(ae[16],le([0,1,3]),function(x,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const R=Object.freeze(function(y,v){const d=setTimeout(y.bind(v),0);return{dispose(){clearTimeout(d)}}});var b;(function(y){function v(d){return d===y.None||d===y.Cancelled||d instanceof P?!0:!d||typeof d!="object"?!1:typeof d.isCancellationRequested=="boolean"&&typeof d.onCancellationRequested=="function"}y.isCancellationToken=v,y.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:f.Event.None}),y.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:R})})(b=e.CancellationToken||(e.CancellationToken={}));class P{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?R:(this._emitter||(this._emitter=new f.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class S{constructor(v){this._token=void 0,this._parentListener=void 0,this._parentListener=v&&v.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new P),this._token}cancel(){this._token?this._token instanceof P&&this._token.cancel():this._token=b.Cancelled}dispose(v=!1){v&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof P&&this._token.dispose():this._token=b.None}}e.CancellationTokenSource=S}),define(ae[48],le([0,1,16]),function(x,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CachedFunction=e.LRUCachedFunction=e.Cache=void 0;class R{constructor(y){this.task=y,this.result=null}get(){if(this.result)return this.result;const y=new f.CancellationTokenSource,v=this.task(y.token);return this.result={promise:v,dispose:()=>{this.result=null,y.cancel(),y.dispose()}},this.result}}e.Cache=R;class b{constructor(y){this.fn=y,this.lastCache=void 0,this.lastArgKey=void 0}get(y){const v=JSON.stringify(y);return this.lastArgKey!==v&&(this.lastArgKey=v,this.lastCache=this.fn(y)),this.lastCache}}e.LRUCachedFunction=b;class P{get cachedValues(){return this._map}constructor(y){this.fn=y,this._map=new Map}get(y){if(this._map.has(y))return this._map.get(y);const v=this.fn(y);return this._map.set(y,v),v}}e.CachedFunction=P}),define(ae[11],le([0,1,48,37]),function(x,e,f,R){"use strict";var b;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.charCount=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 P(I){return!I||typeof I!="string"?!0:I.trim().length===0}e.isFalsyOrWhitespace=P;const S=/{(\d+)}/g;function y(I,...q){return q.length===0?I:I.replace(S,function(X,se){const ue=parseInt(se,10);return isNaN(ue)||ue<0||ue>=q.length?X:q[ue]})}e.format=y;const v=/{([^}]+)}/g;function d(I,q){return I.replace(v,(X,se)=>q[se]??X)}e.format2=d;function D(I){return I.replace(/[<>&]/g,function(q){switch(q){case"<":return"<";case">":return">";case"&":return"&";default:return q}})}e.escape=D;function A(I){return I.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}e.escapeRegExpCharacters=A;function C(I,q){let X=0;const se=q.charCodeAt(0);for(let ue=I.length-1;ue>=0;ue--)I.charCodeAt(ue)===se&&X++;return X}e.count=C;function o(I,q,X="\u2026"){return I.length<=q?I:`${I.substr(0,q)}${X}`}e.truncate=o;function s(I,q=" "){const X=r(I,q);return w(X,q)}e.trim=s;function r(I,q){if(!I||!q)return I;const X=q.length;if(X===0||I.length===0)return I;let se=0;for(;I.indexOf(q,se)===se;)se=se+X;return I.substring(se)}e.ltrim=r;function w(I,q){if(!I||!q)return I;const X=q.length,se=I.length;if(X===0||se===0)return I;let ue=se,_e=-1;for(;_e=I.lastIndexOf(q,ue-1),!(_e===-1||_e+X!==ue);){if(_e===0)return"";ue=_e}return I.substring(0,ue)}e.rtrim=w;function u(I){return I.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}e.convertSimple2RegExpPattern=u;function E(I){return I.replace(/\*/g,"")}e.stripWildcards=E;function t(I,q,X={}){if(!I)throw new Error("Cannot create regex from empty string");q||(I=A(I)),X.wholeWord&&(/\B/.test(I.charAt(0))||(I="\\b"+I),/\B/.test(I.charAt(I.length-1))||(I=I+"\\b"));let se="";return X.global&&(se+="g"),X.matchCase||(se+="i"),X.multiline&&(se+="m"),X.unicode&&(se+="u"),new RegExp(I,se)}e.createRegExp=t;function n(I){return I.source==="^"||I.source==="^$"||I.source==="$"||I.source==="^\\s*$"?!1:!!(I.exec("")&&I.lastIndex===0)}e.regExpLeadsToEndlessLoop=n;function c(I){return!!I.match(/([^\\]|^)(\\\\)*\\\d+/)}e.regExpContainsBackreference=c;function _(I){return(I.global?"g":"")+(I.ignoreCase?"i":"")+(I.multiline?"m":"")+(I.unicode?"u":"")}e.regExpFlags=_;function h(I){return I.split(/\r\n|\r|\n/)}e.splitLines=h;function p(I){for(let q=0,X=I.length;q=0;X--){const se=I.charCodeAt(X);if(se!==32&&se!==9)return X}return-1}e.lastNonWhitespaceIndex=g;function m(I,q,X){const se=[];let ue=0;for(const _e of I.matchAll(q)){if(se.push(I.slice(ue,_e.index)),_e.index===void 0)throw new Error("match.index should be defined");ue=_e.index+_e[0].length,se.push(X(_e[0],..._e.slice(1),_e.index,I,_e.groups))}return se.push(I.slice(ue)),Promise.all(se).then(_e=>_e.join(""))}e.replaceAsync=m;function i(I,q){return Iq?1:0}e.compare=i;function a(I,q,X=0,se=I.length,ue=0,_e=q.length){for(;Xye)return 1}const pe=se-X,Ie=_e-ue;return peIe?1:0}e.compareSubstring=a;function l(I,q){return k(I,q,0,I.length,0,q.length)}e.compareIgnoreCase=l;function k(I,q,X=0,se=I.length,ue=0,_e=q.length){for(;X=128||ye>=128)return a(I.toLowerCase(),q.toLowerCase(),X,se,ue,_e);G(Pe)&&(Pe-=32),G(ye)&&(ye-=32);const Se=Pe-ye;if(Se!==0)return Se}const pe=se-X,Ie=_e-ue;return peIe?1:0}e.compareSubstringIgnoreCase=k;function B(I){return I>=48&&I<=57}e.isAsciiDigit=B;function G(I){return I>=97&&I<=122}e.isLowerAsciiLetter=G;function ne(I){return I>=65&&I<=90}e.isUpperAsciiLetter=ne;function ce(I,q){return I.length===q.length&&k(I,q)===0}e.equalsIgnoreCase=ce;function he(I,q){const X=q.length;return q.length>I.length?!1:k(I,q,0,X)===0}e.startsWithIgnoreCase=he;function de(I,q){const X=Math.min(I.length,q.length);let se;for(se=0;se1){const se=I.charCodeAt(q-2);if(oe(se))return J(se,X)}return X}class W{get offset(){return this._offset}constructor(q,X=0){this._str=q,this._len=q.length,this._offset=X}setOffset(q){this._offset=q}prevCodePoint(){const q=M(this._str,this._offset);return this._offset-=q>=65536?2:1,q}nextCodePoint(){const q=z(this._str,this._len,this._offset);return this._offset+=q>=65536?2:1,q}eol(){return this._offset>=this._len}}e.CodePointIterator=W;class j{get offset(){return this._iterator.offset}constructor(q,X=0){this._iterator=new W(q,X)}nextGraphemeLength(){const q=De.getInstance(),X=this._iterator,se=X.offset;let ue=q.getGraphemeBreakType(X.nextCodePoint());for(;!X.eol();){const _e=X.offset,pe=q.getGraphemeBreakType(X.nextCodePoint());if(Fe(ue,pe)){X.setOffset(_e);break}ue=pe}return X.offset-se}prevGraphemeLength(){const q=De.getInstance(),X=this._iterator,se=X.offset;let ue=q.getGraphemeBreakType(X.prevCodePoint());for(;X.offset>0;){const _e=X.offset,pe=q.getGraphemeBreakType(X.prevCodePoint());if(Fe(pe,ue)){X.setOffset(_e);break}ue=pe}return se-X.offset}eol(){return this._iterator.eol()}}e.GraphemeIterator=j;function re(I,q){return new j(I,q).nextGraphemeLength()}e.nextCharLength=re;function te(I,q){return new j(I,q).prevGraphemeLength()}e.prevCharLength=te;function Y(I,q){q>0&&N(I.charCodeAt(q))&&q--;const X=q+re(I,q);return[X-te(I,X),X]}e.getCharContainingOffset=Y;function T(I){const q=new j(I);let X=0;for(;!q.eol();)X++,q.nextGraphemeLength();return X}e.charCount=T;let $;function Q(){return/(?:[\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 H(I){return $||($=Q()),$.test(I)}e.containsRTL=H;const K=/^[\t\n\r\x20-\x7E]*$/;function ie(I){return K.test(I)}e.isBasicASCII=ie,e.UNUSUAL_LINE_TERMINATORS=/[\u2028\u2029]/;function O(I){return e.UNUSUAL_LINE_TERMINATORS.test(I)}e.containsUnusualLineTerminators=O;function F(I){return I>=11904&&I<=55215||I>=63744&&I<=64255||I>=65281&&I<=65374}e.isFullWidthCharacter=F;function U(I){return I>=127462&&I<=127487||I===8986||I===8987||I===9200||I===9203||I>=9728&&I<=10175||I===11088||I===11093||I>=127744&&I<=128591||I>=128640&&I<=128764||I>=128992&&I<=129008||I>=129280&&I<=129535||I>=129648&&I<=129782}e.isEmojiImprecise=U;function V(I,q){if(I.length0&&I.charCodeAt(0)===65279)}e.startsWithUTF8BOM=ve;function Ce(I){return ve(I)?I.substr(1):I}e.stripUTF8BOM=Ce;function be(I,q){if(!I||!q||I.length0&&X>=0);return X===-1?I:(I[X-1]==="\r"&&X--,I.substr(0,X))}e.getNLines=ze;function We(I){return I=I%(2*26),I<26?String.fromCharCode(97+I):String.fromCharCode(65+I-26)}e.singleLetterHash=We;function Be(I){return De.getInstance().getGraphemeBreakType(I)}e.getGraphemeBreakType=Be;function Fe(I,q){return I===0?q!==5&&q!==7:I===2&&q===3?!1:I===4||I===2||I===3||q===4||q===2||q===3?!0:!(I===8&&(q===8||q===9||q===11||q===12)||(I===11||I===9)&&(q===9||q===10)||(I===12||I===10)&&q===10||q===5||q===13||q===7||I===1||I===13&&q===14||I===6&&q===6)}var qe;(function(I){I[I.Other=0]="Other",I[I.Prepend=1]="Prepend",I[I.CR=2]="CR",I[I.LF=3]="LF",I[I.Control=4]="Control",I[I.Extend=5]="Extend",I[I.Regional_Indicator=6]="Regional_Indicator",I[I.SpacingMark=7]="SpacingMark",I[I.L=8]="L",I[I.V=9]="V",I[I.T=10]="T",I[I.LV=11]="LV",I[I.LVT=12]="LVT",I[I.ZWJ=13]="ZWJ",I[I.Extended_Pictographic=14]="Extended_Pictographic"})(qe=e.GraphemeBreakType||(e.GraphemeBreakType={}));class De{static getInstance(){return De._INSTANCE||(De._INSTANCE=new De),De._INSTANCE}constructor(){this._data=$e()}getGraphemeBreakType(q){if(q<32)return q===10?3:q===13?2:4;if(q<127)return 0;const X=this._data,se=X.length/3;let ue=1;for(;ue<=se;)if(qX[3*ue+1])ue=2*ue+1;else return X[3*ue+2];return 0}}De._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(I,q){if(I===0)return 0;const X=He(I,q);if(X!==void 0)return X;const se=new W(q,I);return se.prevCodePoint(),se.offset}e.getLeftDeleteOffset=je;function He(I,q){const X=new W(q,I);let se=X.prevCodePoint();for(;Ve(se)||se===65039||se===8419;){if(X.offset===0)return;se=X.prevCodePoint()}if(!U(se))return;let ue=X.offset;return ue>0&&X.prevCodePoint()===8205&&(ue=X.offset),ue}function Ve(I){return 127995<=I&&I<=127999}var Ne;(function(I){I[I.zwj=8205]="zwj",I[I.emojiVariantSelector=65039]="emojiVariantSelector",I[I.enclosingKeyCap=8419]="enclosingKeyCap"})(Ne||(Ne={})),e.noBreakWhitespace="\xA0";class Ee{static getInstance(q){return Ee.cache.get(Array.from(q))}static getLocales(){return Ee._locales.getValue()}constructor(q){this.confusableDictionary=q}isAmbiguous(q){return this.confusableDictionary.has(q)}getPrimaryConfusable(q){return this.confusableDictionary.get(q)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}e.AmbiguousCharacters=Ee,b=Ee,Ee.ambiguousCharacterData=new R.Lazy(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}')),Ee.cache=new f.LRUCachedFunction(I=>{function q(ye){const Se=new Map;for(let Le=0;Le!ye.startsWith("_")&&ye in ue);_e.length===0&&(_e=["_default"]);let pe;for(const ye of _e){const Se=q(ue[ye]);pe=se(pe,Se)}const Ie=q(ue._common),Pe=X(Ie,pe);return new Ee(Pe)}),Ee._locales=new R.Lazy(()=>Object.keys(Ee.ambiguousCharacterData.getValue()).filter(I=>!I.startsWith("_")));class Re{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(Re.getRawData())),this._data}static isInvisibleCharacter(q){return Re.getData().has(q)}static get codePoints(){return Re.getData()}}e.InvisibleCharacters=Re,Re._data=void 0}),define(ae[30],le([0,1,5,2,11,10]),function(x,e,f,R,b,P){"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 S(g){return g===47||g===92}e.isPathSeparator=S;function y(g){return g.replace(/[\\/]/g,f.posix.sep)}e.toSlashes=y;function v(g){return g.indexOf("/")===-1&&(g=y(g)),/^[a-zA-Z]:(\/|$)/.test(g)&&(g="/"+g),g}e.toPosixPath=v;function d(g,m=f.posix.sep){if(!g)return"";const i=g.length,a=g.charCodeAt(0);if(S(a)){if(S(g.charCodeAt(1))&&!S(g.charCodeAt(2))){let k=3;const B=k;for(;k\|]/g,C=/[\\/]/g,o=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])(\.(.*?))?$/i;function s(g,m=R.isWindows){const i=m?A:C;return!(!g||g.length===0||/^\s+$/.test(g)||(i.lastIndex=0,i.test(g))||m&&o.test(g)||g==="."||g===".."||m&&g[g.length-1]==="."||m&&g.length!==g.trim().length||g.length>255)}e.isValidBasename=s;function r(g,m,i){const a=g===m;return!i||a?a:!g||!m?!1:(0,b.equalsIgnoreCase)(g,m)}e.isEqual=r;function w(g,m,i,a=f.sep){if(g===m)return!0;if(!g||!m||m.length>g.length)return!1;if(i){if(!(0,b.startsWithIgnoreCase)(g,m))return!1;if(m.length===g.length)return!0;let k=m.length;return m.charAt(m.length-1)===a&&k--,g.charAt(k)===a}return m.charAt(m.length-1)!==a&&(m+=a),g.indexOf(m)===0}e.isEqualOrParent=w;function u(g){return g>=65&&g<=90||g>=97&&g<=122}e.isWindowsDriveLetter=u;function E(g,m){return R.isWindows&&g.endsWith(":")&&(g+=f.sep),(0,f.isAbsolute)(g)||(g=(0,f.join)(m,g)),g=(0,f.normalize)(g),R.isWindows?(g=(0,b.rtrim)(g,f.sep),g.endsWith(":")&&(g+=f.sep)):(g=(0,b.rtrim)(g,f.sep),g||(g=f.sep)),g}e.sanitizeFilePath=E;function t(g){const m=(0,f.normalize)(g);return R.isWindows?g.length>3?!1:n(m)&&(g.length===2||m.charCodeAt(2)===92):m===f.posix.sep}e.isRootOrDriveLetter=t;function n(g,m=R.isWindows){return m?u(g.charCodeAt(0))&&g.charCodeAt(1)===58:!1}e.hasDriveLetter=n;function c(g){return n(g)?g[0]:void 0}e.getDriveLetter=c;function _(g,m,i){return m.length>g.length?-1:g===m?0:(i&&(g=g.toLowerCase(),m=m.toLowerCase()),g.indexOf(m))}e.indexOfPath=_;function h(g){const m=g.split(":");let i,a,l;for(const k of m){const B=Number(k);(0,P.isNumber)(B)?a===void 0?a=B:l===void 0&&(l=B):i=i?[i,k].join(":"):k}if(!i)throw new Error("Format for `--goto` should be: `FILE:LINE(:COLUMN)`");return{path:i,line:a!==void 0?a:void 0,column:l!==void 0?l:a!==void 0?1:void 0}}e.parseLineAndColumnAware=h;const p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function L(g,m,i=8){let a="";for(let k=0;k=0;s--,this._valueLen--){const r=this._value.charCodeAt(s);if(!(r===47||this._splitOnBackslash&&r===92))break}return this.next()}hasNext(){return this._to!1,s=()=>!1){return new A(new v(o,s))}static forPaths(o=!1){return new A(new S(void 0,!o))}static forStrings(){return new A(new b)}static forConfigKeys(){return new A(new P)}constructor(o){this._iter=o}clear(){this._root=void 0}fill(o,s){if(s){const r=s.slice(0);(0,f.shuffle)(r);for(const w of r)this.set(w,o)}else{const r=o.slice(0);(0,f.shuffle)(r);for(const w of r)this.set(w[0],w[1])}}set(o,s){const r=this._iter.reset(o);let w;this._root||(this._root=new d,this._root.segment=r.value());const u=[];for(w=this._root;;){const t=r.cmp(w.segment);if(t>0)w.left||(w.left=new d,w.left.segment=r.value()),u.push([-1,w]),w=w.left;else if(t<0)w.right||(w.right=new d,w.right.segment=r.value()),u.push([1,w]),w=w.right;else if(r.hasNext())r.next(),w.mid||(w.mid=new d,w.mid.segment=r.value()),u.push([0,w]),w=w.mid;else break}const E=w.value;w.value=s,w.key=o;for(let t=u.length-1;t>=0;t--){const n=u[t][1];n.updateHeight();const c=n.balanceFactor();if(c<-1||c>1){const _=u[t][0],h=u[t+1][0];if(_===1&&h===1)u[t][1]=n.rotateLeft();else if(_===-1&&h===-1)u[t][1]=n.rotateRight();else if(_===1&&h===-1)n.right=u[t+1][1]=u[t+1][1].rotateRight(),u[t][1]=n.rotateLeft();else if(_===-1&&h===1)n.left=u[t+1][1]=u[t+1][1].rotateLeft(),u[t][1]=n.rotateRight();else throw new Error;if(t>0)switch(u[t-1][0]){case-1:u[t-1][1].left=u[t][1];break;case 1:u[t-1][1].right=u[t][1];break;case 0:u[t-1][1].mid=u[t][1];break}else this._root=u[0][1]}}return E}get(o){return this._getNode(o)?.value}_getNode(o){const s=this._iter.reset(o);let r=this._root;for(;r;){const w=s.cmp(r.segment);if(w>0)r=r.left;else if(w<0)r=r.right;else if(s.hasNext())s.next(),r=r.mid;else break}return r}has(o){const s=this._getNode(o);return!(s?.value===void 0&&s?.mid===void 0)}delete(o){return this._delete(o,!1)}deleteSuperstr(o){return this._delete(o,!0)}_delete(o,s){const r=this._iter.reset(o),w=[];let u=this._root;for(;u;){const E=r.cmp(u.segment);if(E>0)w.push([-1,u]),u=u.left;else if(E<0)w.push([1,u]),u=u.right;else if(r.hasNext())r.next(),w.push([0,u]),u=u.mid;else break}if(!!u){if(s?(u.left=void 0,u.mid=void 0,u.right=void 0,u.height=1):(u.key=void 0,u.value=void 0),!u.mid&&!u.value)if(u.left&&u.right){const E=this._min(u.right);if(E.key){const{key:t,value:n,segment:c}=E;this._delete(E.key,!1),u.key=t,u.value=n,u.segment=c}}else{const E=u.left??u.right;if(w.length>0){const[t,n]=w[w.length-1];switch(t){case-1:n.left=E;break;case 0:n.mid=E;break;case 1:n.right=E;break}}else this._root=E}for(let E=w.length-1;E>=0;E--){const t=w[E][1];t.updateHeight();const n=t.balanceFactor();if(n>1?(t.right.balanceFactor()>=0||(t.right=t.right.rotateRight()),w[E][1]=t.rotateLeft()):n<-1&&(t.left.balanceFactor()<=0||(t.left=t.left.rotateLeft()),w[E][1]=t.rotateRight()),E>0)switch(w[E-1][0]){case-1:w[E-1][1].left=w[E][1];break;case 1:w[E-1][1].right=w[E][1];break;case 0:w[E-1][1].mid=w[E][1];break}else this._root=w[0][1]}}}_min(o){for(;o.left;)o=o.left;return o}findSubstr(o){const s=this._iter.reset(o);let r=this._root,w;for(;r;){const u=s.cmp(r.segment);if(u>0)r=r.left;else if(u<0)r=r.right;else if(s.hasNext())s.next(),w=r.value||w,r=r.mid;else break}return r&&r.value||w}findSuperstr(o){const s=this._iter.reset(o);let r=this._root;for(;r;){const w=s.cmp(r.segment);if(w>0)r=r.left;else if(w<0)r=r.right;else if(s.hasNext())s.next(),r=r.mid;else return r.mid?this._entries(r.mid):void 0}}forEach(o){for(const[s,r]of this)o(r,s)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(o){const s=[];return this._dfsEntries(o,s),s[Symbol.iterator]()}_dfsEntries(o,s){!o||(o.left&&this._dfsEntries(o.left,s),o.value&&s.push([o.key,o.value]),o.mid&&this._dfsEntries(o.mid,s),o.right&&this._dfsEntries(o.right,s))}_isBalanced(){const o=s=>{if(!s)return!0;const r=s.balanceFactor();return r<-1||r>1?!1:o(s.left)&&o(s.right)};return o(this._root)}}e.TernarySearchTree=A}),define(ae[6],le([0,1,5,2]),function(x,e,f,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uriToFsPath=e.URI=void 0;const b=/^\w[\w\d+.-]*$/,P=/^\//,S=/^\/\//;function y(p,L){if(!p.scheme&&L)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${p.authority}", path: "${p.path}", query: "${p.query}", fragment: "${p.fragment}"}`);if(p.scheme&&!b.test(p.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(p.path){if(p.authority){if(!P.test(p.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(S.test(p.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function v(p,L){return!p&&!L?"file":p}function d(p,L){switch(p){case"https":case"http":case"file":L?L[0]!==A&&(L=A+L):L=A;break}return L}const D="",A="/",C=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class o{static isUri(L){return L instanceof o?!0:L?typeof L.authority=="string"&&typeof L.fragment=="string"&&typeof L.path=="string"&&typeof L.query=="string"&&typeof L.scheme=="string"&&typeof L.fsPath=="string"&&typeof L.with=="function"&&typeof L.toString=="function":!1}constructor(L,g,m,i,a,l=!1){typeof L=="object"?(this.scheme=L.scheme||D,this.authority=L.authority||D,this.path=L.path||D,this.query=L.query||D,this.fragment=L.fragment||D):(this.scheme=v(L,l),this.authority=g||D,this.path=d(this.scheme,m||D),this.query=i||D,this.fragment=a||D,y(this,l))}get fsPath(){return t(this,!1)}with(L){if(!L)return this;let{scheme:g,authority:m,path:i,query:a,fragment:l}=L;return g===void 0?g=this.scheme:g===null&&(g=D),m===void 0?m=this.authority:m===null&&(m=D),i===void 0?i=this.path:i===null&&(i=D),a===void 0?a=this.query:a===null&&(a=D),l===void 0?l=this.fragment:l===null&&(l=D),g===this.scheme&&m===this.authority&&i===this.path&&a===this.query&&l===this.fragment?this:new r(g,m,i,a,l)}static parse(L,g=!1){const m=C.exec(L);return m?new r(m[2]||D,h(m[4]||D),h(m[5]||D),h(m[7]||D),h(m[9]||D),g):new r(D,D,D,D,D)}static file(L){let g=D;if(R.isWindows&&(L=L.replace(/\\/g,A)),L[0]===A&&L[1]===A){const m=L.indexOf(A,2);m===-1?(g=L.substring(2),L=A):(g=L.substring(2,m),L=L.substring(m)||A)}return new r("file",g,L,D,D)}static from(L){const g=new r(L.scheme,L.authority,L.path,L.query,L.fragment);return y(g,!0),g}static joinPath(L,...g){if(!L.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let m;return R.isWindows&&L.scheme==="file"?m=o.file(f.win32.join(t(L,!0),...g)).path:m=f.posix.join(L.path,...g),L.with({path:m})}toString(L=!1){return n(this,L)}toJSON(){return this}static revive(L){if(L){if(L instanceof o)return L;{const g=new r(L);return g._formatted=L.external,g._fsPath=L._sep===s?L.fsPath:null,g}}else return L}}e.URI=o;const s=R.isWindows?1:void 0;class r extends o{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=t(this,!1)),this._fsPath}toString(L=!1){return L?n(this,!0):(this._formatted||(this._formatted=n(this,!1)),this._formatted)}toJSON(){const L={$mid:1};return this._fsPath&&(L.fsPath=this._fsPath,L._sep=s),this._formatted&&(L.external=this._formatted),this.path&&(L.path=this.path),this.scheme&&(L.scheme=this.scheme),this.authority&&(L.authority=this.authority),this.query&&(L.query=this.query),this.fragment&&(L.fragment=this.fragment),L}}const w={[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 u(p,L){let g,m=-1;for(let i=0;i=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||L&&a===47)m!==-1&&(g+=encodeURIComponent(p.substring(m,i)),m=-1),g!==void 0&&(g+=p.charAt(i));else{g===void 0&&(g=p.substr(0,i));const l=w[a];l!==void 0?(m!==-1&&(g+=encodeURIComponent(p.substring(m,i)),m=-1),g+=l):m===-1&&(m=i)}}return m!==-1&&(g+=encodeURIComponent(p.substring(m))),g!==void 0?g:p}function E(p){let L;for(let g=0;g1&&p.scheme==="file"?g=`//${p.authority}${p.path}`:p.path.charCodeAt(0)===47&&(p.path.charCodeAt(1)>=65&&p.path.charCodeAt(1)<=90||p.path.charCodeAt(1)>=97&&p.path.charCodeAt(1)<=122)&&p.path.charCodeAt(2)===58?L?g=p.path.substr(1):g=p.path[1].toLowerCase()+p.path.substr(2):g=p.path,R.isWindows&&(g=g.replace(/\//g,"\\")),g}e.uriToFsPath=t;function n(p,L){const g=L?E:u;let m="",{scheme:i,authority:a,path:l,query:k,fragment:B}=p;if(i&&(m+=i,m+=":"),(a||i==="file")&&(m+=A,m+=A),a){let G=a.indexOf("@");if(G!==-1){const ne=a.substr(0,G);a=a.substr(G+1),G=ne.indexOf(":"),G===-1?m+=g(ne,!1):(m+=g(ne.substr(0,G),!1),m+=":",m+=g(ne.substr(G+1),!1)),m+="@"}a=a.toLowerCase(),G=a.indexOf(":"),G===-1?m+=g(a,!1):(m+=g(a.substr(0,G),!1),m+=a.substr(G))}if(l){if(l.length>=3&&l.charCodeAt(0)===47&&l.charCodeAt(2)===58){const G=l.charCodeAt(1);G>=65&&G<=90&&(l=`/${String.fromCharCode(G+32)}:${l.substr(3)}`)}else if(l.length>=2&&l.charCodeAt(1)===58){const G=l.charCodeAt(0);G>=65&&G<=90&&(l=`${String.fromCharCode(G+32)}:${l.substr(2)}`)}m+=g(l,!0)}return k&&(m+="?",m+=g(k,!1)),B&&(m+="#",m+=L?B:u(B,!1)),m}function c(p){try{return decodeURIComponent(p)}catch{return p.length>3?p.substr(0,3)+c(p.substr(3)):p}}const _=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function h(p){return p.match(_)?p.replace(_,L=>c(L)):p}}),define(ae[50],le([0,1,6]),function(x,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.log=e.getFirstFrame=e.parse=e.isRemoteConsoleLog=void 0;function R(d){const D=d;return D&&typeof D.type=="string"&&typeof D.severity=="string"}e.isRemoteConsoleLog=R;function b(d){const D=[];let A;try{const C=JSON.parse(d.arguments),o=C[C.length-1];o&&o.__$stack&&(C.pop(),A=o.__$stack),D.push(...C)}catch{D.push("Unable to log remote console arguments",d.arguments)}return{args:D,stack:A}}e.parse=b;function P(d){if(typeof d!="string")return P(b(d).stack);const D=d;if(D){const A=S(D),C=/at [^\/]*((?:(?:[a-zA-Z]+:)|(?:[\/])|(?:\\\\))(?:.+)):(\d+):(\d+)/.exec(A||"");if(C&&C.length===4)return{uri:f.URI.file(C[1]),line:Number(C[2]),column:Number(C[3])}}}e.getFirstFrame=P;function S(d){if(!d)return d;const D=d.indexOf(` `);return D===-1?d:d.substring(0,D)}function y(d,D){const{args:A,stack:C}=b(d),o=typeof A[0]=="string"&&A.length===1;let s=S(C);s&&(s=`(${s.trim()})`);let r=[];if(typeof A[0]=="string"?s&&o?r=[`%c[${D}] %c${A[0]} %c${s}`,v("blue"),v(""),v("grey")]:r=[`%c[${D}] %c${A[0]}`,v("blue"),v(""),...A.slice(1)]:r=[`%c[${D}]%`,v("blue"),...A],s&&!o&&r.push(s),typeof console[d.severity]!="function")throw new Error("Unknown console method");console[d.severity].apply(console,r)}e.log=y;function v(d){return`color: ${d}`}}),define(ae[51],le([0,1,23,11,6]),function(x,e,f,R,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.revive=e.parse=e.stringify=void 0;function P(d){return JSON.stringify(d,y)}e.stringify=P;function S(d){let D=JSON.parse(d);return D=v(D),D}e.parse=S;function y(d,D){return D instanceof RegExp?{$mid:2,source:D.source,flags:(0,R.regExpFlags)(D)}:D}function v(d,D=0){if(!d||D>200)return d;if(typeof d=="object"){switch(d.$mid){case 1:return b.URI.revive(d);case 2:return new RegExp(d.source,d.flags);case 15:return new Date(d.source)}if(d instanceof f.VSBuffer||d instanceof Uint8Array)return d;if(Array.isArray(d))for(let A=0;Af.getRoot(w).length&&w[w.length-1]===r}else{const w=s.path;return w.length>1&&w.charCodeAt(w.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(s.fsPath)}}removeTrailingPathSeparator(s,r=b.sep){return(0,e.hasTrailingPathSeparator)(s,r)?s.with({path:s.path.substr(0,s.path.length-1)}):s}addTrailingPathSeparator(s,r=b.sep){let w=!1;if(s.scheme===R.Schemas.file){const u=v(s);w=u!==void 0&&u.length===f.getRoot(u).length&&u[u.length-1]===r}else{r="/";const u=s.path;w=u.length===1&&u.charCodeAt(u.length-1)===47}return!w&&!(0,e.hasTrailingPathSeparator)(s,r)?s.with({path:s.path+"/"}):s}}e.ExtUri=d,e.extUri=new d(()=>!1),e.extUriBiasedIgnorePathCase=new d(o=>o.scheme===R.Schemas.file?!P.isLinux:!0),e.extUriIgnorePathCase=new d(o=>!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 D(o,s){const r=[];for(let w=0;wt===w?!1:(0,e.isEqualOrParent)(u,s(E)))||r.push(o[w])}return r}e.distinctParents=D;var A;(function(o){o.META_DATA_LABEL="label",o.META_DATA_DESCRIPTION="description",o.META_DATA_SIZE="size",o.META_DATA_MIME="mime";function s(r){const w=new Map;r.path.substring(r.path.indexOf(";")+1,r.path.lastIndexOf(";")).split(";").forEach(t=>{const[n,c]=t.split(":");n&&c&&w.set(n,c)});const E=r.path.substring(0,r.path.indexOf(";"));return E&&w.set(o.META_DATA_MIME,E),w}o.parseMetaData=s})(A=e.DataUri||(e.DataUri={}));function C(o,s,r){if(s){let w=o.path;return w&&w[0]!==b.posix.sep&&(w=b.posix.sep+w),o.with({scheme:r,authority:s,path:w})}return o.with({scheme:r})}e.toLocalResource=C}),define(ae[8],le([0,1,16,9,3,4,19,2]),function(x,e,f,R,b,P,S,y){"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 v(Y){return!!Y&&typeof Y.then=="function"}e.isThenable=v;function d(Y){const T=new f.CancellationTokenSource,$=Y(T.token),Q=new Promise((H,K)=>{const ie=T.token.onCancellationRequested(()=>{ie.dispose(),T.dispose(),K(new R.CancellationError)});Promise.resolve($).then(O=>{ie.dispose(),T.dispose(),H(O)},O=>{ie.dispose(),T.dispose(),K(O)})});return new class{cancel(){T.cancel()}then(H,K){return Q.then(H,K)}catch(H){return this.then(void 0,H)}finally(H){return Q.finally(H)}}}e.createCancelablePromise=d;function D(Y,T,$){return new Promise((Q,H)=>{const K=T.onCancellationRequested(()=>{K.dispose(),Q($)});Y.then(Q,H).finally(()=>K.dispose())})}e.raceCancellation=D;function A(Y,T){return new Promise(($,Q)=>{const H=T.onCancellationRequested(()=>{H.dispose(),Q(new R.CancellationError)});Y.then($,Q).finally(()=>H.dispose())})}e.raceCancellationError=A;async function C(Y){let T=-1;const $=Y.map((H,K)=>H.then(ie=>(T=K,ie))),Q=await Promise.race($);return Y.forEach((H,K)=>{K!==T&&H.cancel()}),Q}e.raceCancellablePromises=C;function o(Y,T,$){let Q;const H=setTimeout(()=>{Q?.(void 0),$?.()},T);return Promise.race([Y.finally(()=>clearTimeout(H)),new Promise(K=>Q=K)])}e.raceTimeout=o;function s(Y){return new Promise((T,$)=>{const Q=Y();v(Q)?Q.then(T,$):T(Q)})}e.asPromise=s;class r{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(T){if(this.activePromise){if(this.queuedPromiseFactory=T,!this.queuedPromise){const $=()=>{this.queuedPromise=null;const Q=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,Q};this.queuedPromise=new Promise(Q=>{this.activePromise.then($,$).then(Q)})}return new Promise(($,Q)=>{this.queuedPromise.then($,Q)})}return this.activePromise=T(),new Promise(($,Q)=>{this.activePromise.then(H=>{this.activePromise=null,$(H)},H=>{this.activePromise=null,Q(H)})})}}e.Throttler=r;class w{constructor(){this.current=Promise.resolve(null)}queue(T){return this.current=this.current.then(()=>T(),()=>T())}}e.Sequencer=w;class u{constructor(){this.promiseMap=new Map}queue(T,$){const H=(this.promiseMap.get(T)??Promise.resolve()).catch(()=>{}).then($).finally(()=>{this.promiseMap.get(T)===H&&this.promiseMap.delete(T)});return this.promiseMap.set(T,H),H}}e.SequencerByKey=u;const E=(Y,T)=>{let $=!0;const Q=setTimeout(()=>{$=!1,T()},Y);return{isTriggered:()=>$,dispose:()=>{clearTimeout(Q),$=!1}}},t=Y=>{let T=!0;return queueMicrotask(()=>{T&&(T=!1,Y())}),{isTriggered:()=>T,dispose:()=>{T=!1}}};e.MicrotaskDelay=Symbol("MicrotaskDelay");class n{constructor(T){this.defaultDelay=T,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(T,$=this.defaultDelay){this.task=T,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((H,K)=>{this.doResolve=H,this.doReject=K}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const H=this.task;return this.task=null,H()}}));const Q=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=$===e.MicrotaskDelay?t(Q):E($,Q),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new R.CancellationError),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}e.Delayer=n;class c{constructor(T){this.delayer=new n(T),this.throttler=new r}trigger(T,$){return this.delayer.trigger(()=>this.throttler.queue(T),$)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}}e.ThrottledDelayer=c;class _{constructor(){this._isOpen=!1,this._promise=new Promise((T,$)=>{this._completePromise=T})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}}e.Barrier=_;class h extends _{constructor(T){super(),this._timeout=setTimeout(()=>this.open(),T)}open(){clearTimeout(this._timeout),super.open()}}e.AutoOpenBarrier=h;function p(Y,T){return T?new Promise(($,Q)=>{const H=setTimeout(()=>{K.dispose(),$()},Y),K=T.onCancellationRequested(()=>{clearTimeout(H),K.dispose(),Q(new R.CancellationError)})}):d($=>p(Y,$))}e.timeout=p;function L(Y,T=0){const $=setTimeout(Y,T);return(0,P.toDisposable)(()=>clearTimeout($))}e.disposableTimeout=L;function g(Y){const T=[];let $=0;const Q=Y.length;function H(){return $!!Q,$=null){let Q=0;const H=Y.length,K=()=>{if(Q>=H)return Promise.resolve($);const ie=Y[Q++];return Promise.resolve(ie()).then(F=>T(F)?Promise.resolve(F):K())};return K()}e.first=m;function i(Y,T=Q=>!!Q,$=null){if(Y.length===0)return Promise.resolve($);let Q=Y.length;const H=()=>{Q=-1;for(const K of Y)K.cancel?.()};return new Promise((K,ie)=>{for(const O of Y)O.then(F=>{--Q>=0&&T(F)?(H(),K(F)):Q===0&&K($)}).catch(F=>{--Q>=0&&(H(),ie(F))})})}e.firstParallel=i;class a{constructor(T){this._size=0,this.maxDegreeOfParalellism=T,this.outstandingPromises=[],this.runningPromises=0,this._onDrained=new b.Emitter}get onDrained(){return this._onDrained.event}get size(){return this._size}queue(T){return this._size++,new Promise(($,Q)=>{this.outstandingPromises.push({factory:T,c:$,e:Q}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromisesthis.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onDrained.fire()}dispose(){this._onDrained.dispose()}}e.Limiter=a;class l extends a{constructor(){super(1)}}e.Queue=l;class k{constructor(){this.queues=new Map,this.drainers=new Set}async whenDrained(){if(this.isDrained())return;const T=new z;return this.drainers.add(T),T.p}isDrained(){for(const[,T]of this.queues)if(T.size>0)return!1;return!0}queueFor(T,$=S.extUri){const Q=$.getComparisonKey(T);let H=this.queues.get(Q);return H||(H=new l,b.Event.once(H.onDrained)(()=>{H?.dispose(),this.queues.delete(Q),this.onDidQueueDrain()}),this.queues.set(Q,H)),H}onDidQueueDrain(){!this.isDrained()||this.releaseDrainers()}releaseDrainers(){for(const T of this.drainers)T.complete();this.drainers.clear()}dispose(){for(const[,T]of this.queues)T.dispose();this.queues.clear(),this.releaseDrainers()}}e.ResourceQueue=k;class B{constructor(T,$){this._token=-1,typeof T=="function"&&typeof $=="number"&&this.setIfNotSet(T,$)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(T,$){this.cancel(),this._token=setTimeout(()=>{this._token=-1,T()},$)}setIfNotSet(T,$){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,T()},$))}}e.TimeoutTimer=B;class G{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(T,$){this.cancel(),this._token=setInterval(()=>{T()},$)}}e.IntervalTimer=G;class ne{constructor(T,$){this.timeoutToken=-1,this.runner=T,this.timeout=$,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(T=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,T)}get delay(){return this.timeout}set delay(T){this.timeout=T}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}e.RunOnceScheduler=ne;class ce{constructor(T,$){$%1e3!==0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${$}ms is not a multiple of 1000ms.`),this.runner=T,this.timeout=$,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(T=this.timeout){T%1e3!==0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${T}ms is not a multiple of 1000ms.`),this.cancel(),this.counter=Math.ceil(T/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=ce;class he extends ne{constructor(T,$){super(T,$),this.units=[]}work(T){this.units.push(T),this.isScheduled()||this.schedule()}doRun(){const T=this.units;this.units=[],this.runner?.(T)}dispose(){this.units=[],super.dispose()}}e.RunOnceWorker=he;class de extends P.Disposable{constructor(T,$){super(),this.options=T,this.handler=$,this.pendingWork=[],this.throttler=this._register(new P.MutableDisposable),this.disposed=!1}get pending(){return this.pendingWork.length}work(T){if(this.disposed)return!1;if(typeof this.options.maxBufferedWork=="number"){if(this.throttler.value){if(this.pending+T.length>this.options.maxBufferedWork)return!1}else if(this.pending+T.length-this.options.maxWorkChunkSize>this.options.maxBufferedWork)return!1}return this.pendingWork.push(...T),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=de,function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?e.runWhenIdle=Y=>{(0,y.setTimeout0)(()=>{if(T)return;const $=Date.now()+15;Y(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,$-Date.now())}}))});let T=!1;return{dispose(){T||(T=!0)}}}:e.runWhenIdle=(Y,T)=>{const $=requestIdleCallback(Y,typeof T=="number"?{timeout:T}:void 0);let Q=!1;return{dispose(){Q||(Q=!0,cancelIdleCallback($))}}}}();class ee{constructor(T){this._didRun=!1,this._executor=()=>{try{this._value=T()}catch($){this._error=$}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=ee;async function oe(Y,T,$){let Q;for(let H=0;H<$;H++)try{return await Y()}catch(K){Q=K,await p(T)}throw Q}e.retry=oe;class N{hasPending(T){return this._pending?typeof T=="number"?this._pending.taskId===T:!!this._pending:!1}get pending(){return this._pending?.promise}cancelPending(){this._pending?.cancel()}setPending(T,$,Q){return this._pending={taskId:T,cancel:()=>Q?.(),promise:$},$.then(()=>this.donePending(T),()=>this.donePending(T)),$}donePending(T){this._pending&&T===this._pending.taskId&&(this._pending=void 0,this.triggerNext())}triggerNext(){if(this._next){const T=this._next;this._next=void 0,T.run().then(T.promiseResolve,T.promiseReject)}}setNext(T){if(this._next)this._next.run=T;else{let $,Q;const H=new Promise((K,ie)=>{$=K,Q=ie});this._next={run:T,promise:H,promiseResolve:$,promiseReject:Q}}return this._next.promise}hasNext(){return!!this._next}async join(){return this._next?.promise??this._pending?.promise}}e.TaskSequentializer=N;class J{constructor(T,$=()=>Date.now()){this.interval=T,this.nowFn=$,this.lastIncrementTime=0,this.value=0}increment(){const T=this.nowFn();return T-this.lastIncrementTime>this.interval&&(this.lastIncrementTime=T,this.value=0),this.value++,this.value}}e.IntervalCounter=J;class z{get isRejected(){return this.rejected}get isResolved(){return this.resolved}get isSettled(){return this.rejected||this.resolved}constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((T,$)=>{this.completeCallback=T,this.errorCallback=$})}complete(T){return new Promise($=>{this.completeCallback(T),this.resolved=!0,$()})}error(T){return new Promise($=>{this.errorCallback(T),this.rejected=!0,$()})}cancel(){new Promise(T=>{this.errorCallback(new R.CancellationError),this.rejected=!0,T()})}}e.DeferredPromise=z;var M;(function(Y){async function T(Q){let H;const K=await Promise.all(Q.map(ie=>ie.then(O=>O,O=>{H||(H=O)})));if(typeof H<"u")throw H;return K}Y.settled=T;function $(Q){return new Promise(async(H,K)=>{try{await Q(H,K)}catch(ie){K(ie)}})}Y.withAsyncBody=$})(M=e.Promises||(e.Promises={}));var W;(function(Y){Y[Y.Initial=0]="Initial",Y[Y.DoneOK=1]="DoneOK",Y[Y.DoneError=2]="DoneError"})(W||(W={}));class j{static fromArray(T){return new j($=>{$.emitMany(T)})}static fromPromise(T){return new j(async $=>{$.emitMany(await T)})}static fromPromises(T){return new j(async $=>{await Promise.all(T.map(async Q=>$.emitOne(await Q)))})}static merge(T){return new j(async $=>{await Promise.all(T.map(async Q=>{for await(const H of Q)$.emitOne(H)}))})}constructor(T){this._state=0,this._results=[],this._error=null,this._onStateChanged=new b.Emitter,queueMicrotask(async()=>{const $={emitOne:Q=>this.emitOne(Q),emitMany:Q=>this.emitMany(Q),reject:Q=>this.reject(Q)};try{await Promise.resolve(T($)),this.resolve()}catch(Q){this.reject(Q)}finally{$.emitOne=void 0,$.emitMany=void 0,$.reject=void 0}})}[Symbol.asyncIterator](){let T=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(T{for await(const H of T)Q.emitOne($(H))})}map(T){return j.map(this,T)}static filter(T,$){return new j(async Q=>{for await(const H of T)$(H)&&Q.emitOne(H)})}filter(T){return j.filter(this,T)}static coalesce(T){return j.filter(T,$=>!!$)}coalesce(){return j.coalesce(this)}static async toPromise(T){const $=[];for await(const Q of T)$.push(Q);return $}toPromise(){return j.toPromise(this)}emitOne(T){this._state===0&&(this._results.push(T),this._onStateChanged.fire())}emitMany(T){this._state===0&&(this._results=this._results.concat(T),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(T){this._state===0&&(this._state=2,this._error=T,this._onStateChanged.fire())}}e.AsyncIterableObject=j,j.EMPTY=j.fromArray([]);class re extends j{constructor(T,$){super($),this._source=T}cancel(){this._source.cancel()}}e.CancelableAsyncIterableObject=re;function te(Y){const T=new f.CancellationTokenSource,$=Y(T.token);return new re(T,async Q=>{const H=T.token.onCancellationRequested(()=>{H.dispose(),T.dispose(),Q.reject(new R.CancellationError)});try{for await(const K of $){if(T.token.isCancellationRequested)return;Q.emitOne(K)}H.dispose(),T.dispose()}catch(K){H.dispose(),T.dispose(),Q.reject(K)}})}e.createCancelableAsyncIterable=te}),define(ae[20],le([0,1,52,18,86,8,30,39,5,2,19,6]),function(x,e,f,R,b,P,S,y,v,d,D,A){"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 C;(function(ee){ee[ee.UNLINK=0]="UNLINK",ee[ee.MOVE=1]="MOVE"})(C=e.RimRafMode||(e.RimRafMode={}));async function o(ee,oe=C.UNLINK){if((0,S.isRootOrDriveLetter)(ee))throw new Error("rimraf - will refuse to recursively delete root");return oe===C.UNLINK?r(ee):s(ee)}async function s(ee){try{const oe=(0,S.randomPath)((0,R.tmpdir)());try{await f.promises.rename(ee,oe)}catch(N){return N.code==="ENOENT"?void 0:r(ee)}r(oe).catch(N=>{})}catch(oe){if(oe.code!=="ENOENT")throw oe}}async function r(ee){return(0,b.promisify)(f.rm)(ee,{recursive:!0,force:!0,maxRetries:3})}function w(ee){if((0,S.isRootOrDriveLetter)(ee))throw new Error("rimraf - will refuse to recursively delete root");f.rmSync(ee,{recursive:!0,force:!0,maxRetries:3})}e.rimrafSync=w;async function u(ee,oe){return n(await(oe?E(ee):(0,b.promisify)(f.readdir)(ee)))}async function E(ee){try{return await(0,b.promisify)(f.readdir)(ee,{withFileTypes:!0})}catch(J){console.warn("[node.js fs] readdir with filetypes failed with error: ",J)}const oe=[],N=await u(ee);for(const J of N){let z=!1,M=!1,W=!1;try{const j=await e.Promises.lstat((0,v.join)(ee,J));z=j.isFile(),M=j.isDirectory(),W=j.isSymbolicLink()}catch(j){console.warn("[node.js fs] unexpected error from lstat after readdir: ",j)}oe.push({name:J,isFile:()=>z,isDirectory:()=>M,isSymbolicLink:()=>W})}return oe}function t(ee){return n(f.readdirSync(ee))}e.readdirSync=t;function n(ee){return ee.map(oe=>typeof oe=="string"?d.isMacintosh?(0,y.normalizeNFC)(oe):oe:(oe.name=d.isMacintosh?(0,y.normalizeNFC)(oe.name):oe.name,oe))}async function c(ee){const oe=await u(ee),N=[];for(const J of oe)await h.existsDirectory((0,v.join)(ee,J))&&N.push(J);return N}function _(ee,oe=1e3){return new Promise(N=>{let J=!1;const z=setInterval(()=>{J||(J=!0,f.access(ee,M=>{J=!1,M&&(clearInterval(z),N(void 0))}))},oe)})}e.whenDeleted=_;var h;(function(ee){async function oe(z){let M;try{if(M=await e.Promises.lstat(z),!M.isSymbolicLink())return{stat:M}}catch{}try{return{stat:await e.Promises.stat(z),symbolicLink:M?.isSymbolicLink()?{dangling:!1}:void 0}}catch(W){if(W.code==="ENOENT"&&M)return{stat:M,symbolicLink:{dangling:!0}};if(d.isWindows&&W.code==="EACCES")try{return{stat:await e.Promises.stat(await e.Promises.readlink(z)),symbolicLink:{dangling:!1}}}catch(j){if(j.code==="ENOENT"&&M)return{stat:M,symbolicLink:{dangling:!0}};throw j}throw W}}ee.stat=oe;async function N(z){try{const{stat:M,symbolicLink:W}=await ee.stat(z);return M.isFile()&&W?.dangling!==!0}catch{}return!1}ee.existsFile=N;async function J(z){try{const{stat:M,symbolicLink:W}=await ee.stat(z);return M.isDirectory()&&W?.dangling!==!0}catch{}return!1}ee.existsDirectory=J})(h=e.SymlinkSupport||(e.SymlinkSupport={}));const p=new P.ResourceQueue;function L(ee,oe,N){return p.queueFor(A.URI.file(ee),D.extUriBiasedIgnorePathCase).queue(()=>{const J=l(N);return new Promise((z,M)=>i(ee,oe,J,W=>W?M(W):z()))})}let g=!0;function m(ee){g=ee}e.configureFlushOnWrite=m;function i(ee,oe,N,J){if(!g)return f.writeFile(ee,oe,{mode:N.mode,flag:N.flag},J);f.open(ee,N.flag,N.mode,(z,M)=>{if(z)return J(z);f.writeFile(M,oe,W=>{if(W)return f.close(M,()=>J(W));f.fdatasync(M,j=>(j&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",j),m(!1)),f.close(M,re=>J(re))))})})}function a(ee,oe,N){const J=l(N);if(!g)return f.writeFileSync(ee,oe,{mode:J.mode,flag:J.flag});const z=f.openSync(ee,J.flag,J.mode);try{f.writeFileSync(z,oe);try{f.fdatasyncSync(z)}catch(M){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",M),m(!1)}}finally{f.closeSync(z)}}e.writeFileSync=a;function l(ee){return ee?{mode:typeof ee.mode=="number"?ee.mode:438,flag:typeof ee.flag=="string"?ee.flag:"w"}:{mode:438,flag:"w"}}async function k(ee,oe){if(ee!==oe)try{await e.Promises.rename(ee,oe)}catch(N){if(ee.toLowerCase()!==oe.toLowerCase()&&N.code==="EXDEV"||ee.endsWith("."))await B(ee,oe,{preserveSymlinks:!1}),await o(ee,C.MOVE);else throw N}}async function B(ee,oe,N){return ne(ee,oe,{root:{source:ee,target:oe},options:N,handledSourcePaths:new Set})}const G=511;async function ne(ee,oe,N){if(N.handledSourcePaths.has(ee))return;N.handledSourcePaths.add(ee);const{stat:J,symbolicLink:z}=await h.stat(ee);if(z){if(N.options.preserveSymlinks)try{return await de(ee,oe,N)}catch(M){console.warn("[node.js fs] copy of symlink failed: ",M)}if(z.dangling)return}return J.isDirectory()?ce(ee,oe,J.mode&G,N):he(ee,oe,J.mode&G)}async function ce(ee,oe,N,J){await e.Promises.mkdir(oe,{recursive:!0,mode:N});const z=await u(ee);for(const M of z)await ne((0,v.join)(ee,M),(0,v.join)(oe,M),J)}async function he(ee,oe,N){await e.Promises.copyFile(ee,oe),await e.Promises.chmod(oe,N)}async function de(ee,oe,N){let J=await e.Promises.readlink(ee);(0,S.isEqualOrParent)(J,N.root.source,!d.isLinux)&&(J=(0,v.join)(N.root.target,J.substr(N.root.source.length+1))),await e.Promises.symlink(J,oe)}e.Promises=new class{get access(){return(0,b.promisify)(f.access)}get stat(){return(0,b.promisify)(f.stat)}get lstat(){return(0,b.promisify)(f.lstat)}get utimes(){return(0,b.promisify)(f.utimes)}get read(){return(ee,oe,N,J,z)=>new Promise((M,W)=>{f.read(ee,oe,N,J,z,(j,re,te)=>j?W(j):M({bytesRead:re,buffer:te}))})}get readFile(){return(0,b.promisify)(f.readFile)}get write(){return(ee,oe,N,J,z)=>new Promise((M,W)=>{f.write(ee,oe,N,J,z,(j,re,te)=>j?W(j):M({bytesWritten:re,buffer:te}))})}get appendFile(){return(0,b.promisify)(f.appendFile)}get fdatasync(){return(0,b.promisify)(f.fdatasync)}get truncate(){return(0,b.promisify)(f.truncate)}get rename(){return(0,b.promisify)(f.rename)}get copyFile(){return(0,b.promisify)(f.copyFile)}get open(){return(0,b.promisify)(f.open)}get close(){return(0,b.promisify)(f.close)}get symlink(){return(0,b.promisify)(f.symlink)}get readlink(){return(0,b.promisify)(f.readlink)}get chmod(){return(0,b.promisify)(f.chmod)}get mkdir(){return(0,b.promisify)(f.mkdir)}get unlink(){return(0,b.promisify)(f.unlink)}get rmdir(){return(0,b.promisify)(f.rmdir)}get realpath(){return(0,b.promisify)(f.realpath)}async exists(ee){try{return await e.Promises.access(ee),!0}catch{return!1}}get readdir(){return u}get readDirsInDir(){return c}get writeFile(){return L}get rm(){return o}get move(){return k}get copy(){return B}}}),define(ae[53],le([0,1,18,5,20]),function(x,e,f,R,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFirstAvailablePowerShellInstallation=e.enumeratePowerShellInstallations=void 0;const P=/^\d+$/,S=/^Microsoft.PowerShell_.*/,y=/^Microsoft.PowerShellPreview_.*/;var v;(function(n){n[n.x64=0]="x64",n[n.x86=1]="x86",n[n.ARM=2]="ARM"})(v||(v={}));let d;switch(process.arch){case"ia32":case"x32":d=1;break;case"arm":case"arm64":d=2;break;default:d=0;break}let D;process.env.PROCESSOR_ARCHITEW6432?D=process.env.PROCESSOR_ARCHITEW6432==="ARM64"?2:0:process.env.PROCESSOR_ARCHITECTURE==="ARM64"?D=2:process.env.PROCESSOR_ARCHITECTURE==="X86"?D=1:D=0;class A{constructor(c,_,h){this.exePath=c,this.displayName=_,this.knownToExist=h}async exists(){return this.knownToExist===void 0&&(this.knownToExist=await b.SymlinkSupport.existsFile(this.exePath)),this.knownToExist}}function C({useAlternateBitness:n=!1}={}){return n?d===0?process.env["ProgramFiles(x86)"]||null:D===0&&process.env.ProgramW6432||null:process.env.ProgramFiles||null}async function o({useAlternateBitness:n=!1,findPreview:c=!1}={}){const _=C({useAlternateBitness:n});if(!_)return null;const h=R.join(_,"PowerShell");if(!await b.SymlinkSupport.existsDirectory(h))return null;let p=-1,L=null;for(const i of await b.Promises.readdir(h)){let a=-1;if(c){const k=i.indexOf("-");if(k<0)continue;const B=i.substring(0,k);if(!P.test(B)||i.substring(k+1)!=="preview")continue;a=parseInt(B,10)}else{if(!P.test(i))continue;a=parseInt(i,10)}if(a<=p)continue;const l=R.join(h,i,"pwsh.exe");!await b.SymlinkSupport.existsFile(l)||(L=l,p=a)}if(!L)return null;const g=_.includes("x86")?" (x86)":"",m=c?" Preview":"";return new A(L,`PowerShell${m}${g}`,!0)}async function s({findPreview:n}={}){if(!process.env.LOCALAPPDATA)return null;const c=R.join(process.env.LOCALAPPDATA,"Microsoft","WindowsApps");if(!await b.SymlinkSupport.existsDirectory(c))return null;const{pwshMsixDirRegex:_,pwshMsixName:h}=n?{pwshMsixDirRegex:y,pwshMsixName:"PowerShell Preview (Store)"}:{pwshMsixDirRegex:S,pwshMsixName:"PowerShell (Store)"};for(const p of await b.Promises.readdir(c))if(_.test(p)){const L=R.join(c,p,"pwsh.exe");return new A(L,h)}return null}function r(){const n=R.join(f.homedir(),".dotnet","tools","pwsh.exe");return new A(n,".NET Core PowerShell Global Tool")}function w(){const n=R.join(process.env.windir,d===1&&D!==1?"SysNative":"System32","WindowsPowerShell","v1.0","powershell.exe");return new A(n,"Windows PowerShell",!0)}async function*u(){let n=await o();n&&(yield n),n=await o({useAlternateBitness:!0}),n&&(yield n),n=await s(),n&&(yield n),n=r(),n&&(yield n),n=await o({findPreview:!0}),n&&(yield n),n=await s({findPreview:!0}),n&&(yield n),n=await o({useAlternateBitness:!0,findPreview:!0}),n&&(yield n),n=w(),n&&(yield n)}async function*E(){for await(const n of u())await n.exists()&&(yield n)}e.enumeratePowerShellInstallations=E;async function t(){for await(const n of E())return n;return null}e.getFirstAvailablePowerShellInstallation=t}),define(ae[31],le([0,1,5,2,14,29,10,20]),function(x,e,f,R,b,P,S,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.win32=e.createQueuedSender=e.getWindowsShell=e.TerminateResponseCode=e.Source=void 0,Object.defineProperty(e,"Source",{enumerable:!0,get:function(){return P.Source}}),Object.defineProperty(e,"TerminateResponseCode",{enumerable:!0,get:function(){return P.TerminateResponseCode}});function v(A=b.env){return A.comspec||"cmd.exe"}e.getWindowsShell=v;function d(A){let C=[],o=!1;const s=function(r){if(o){C.push(r);return}(!A.send(r,u=>{if(u&&console.error(u),o=!1,C.length>0){const E=C.slice(0);C=[],E.forEach(t=>s(t))}})||R.isWindows)&&(o=!0)};return{send:s}}e.createQueuedSender=d;var D;(function(A){async function C(o,s,r){if(f.isAbsolute(o))return o;if(s===void 0&&(s=b.cwd()),f.dirname(o)!=="."||(r===void 0&&S.isString(b.env.PATH)&&(r=b.env.PATH.split(f.delimiter)),r===void 0||r.length===0))return f.join(s,o);async function u(E){if(await y.Promises.exists(E)){let t;try{t=await y.Promises.stat(E)}catch(n){n.message.startsWith("EACCES")&&(t=await y.Promises.lstat(E))}return t?!t.isDirectory():!1}return!1}for(const E of r){let t;if(f.isAbsolute(E)?t=f.join(E,o):t=f.join(s,E,o),await u(t))return t;let n=t+".com";if(await u(n)||(n=t+".exe",await u(n)))return n}return f.join(s,o)}A.findExecutable=C})(D=e.win32||(e.win32={}))}),define(ae[54],le([0,1,24,17]),function(x,e,f,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.listProcesses=void 0;function b(S){return new Promise((y,v)=>{let d;const D=new Map;function A(o,s,r,w,u){const E=D.get(s);if(o===S||E){const t={name:C(r),cmd:r,pid:o,ppid:s,load:w,mem:u};D.set(o,t),o===S&&(d=t),E&&(E.children||(E.children=[]),E.children.push(t),E.children.length>1&&(E.children=E.children.sort((n,c)=>n.pid-c.pid)))}}function C(o){const s=/--vscode-window-kind=shared-process/,r=/--vscode-window-kind=issue-reporter/,w=/--vscode-window-kind=process-explorer/,u=/--utility-sub-type=network/,E=/--utility-sub-type=node.mojom.NodeService/,t=/--crashes-directory/,n=/\\pipe\\winpty-control/,c=/conhost\.exe/,_=/--type=([a-zA-Z-]+)/;if(t.exec(o))return"electron-crash-reporter";if(n.exec(o))return"winpty-process";if(c.exec(o))return"console-window-host (Windows internal process)";let h=_.exec(o);if(h&&h.length===2){if(h[1]==="renderer")return s.exec(o)?"shared-process":r.exec(o)?"issue-reporter":w.exec(o)?"process-explorer":"window";if(h[1]==="utility"){if(u.exec(o))return"utility-network-service";if(E.exec(o))return"extension-host"}return h[1]}const p=/[a-zA-Z-]+\.js/g;let L="";do h=p.exec(o),h&&(L+=h+" ");while(h);return L&&o.indexOf("node ")<0&&o.indexOf("node.exe")<0?`electron_node ${L}`:o}if(process.platform==="win32"){const o=s=>s.indexOf("\\\\?\\")===0||s.indexOf("\\??\\")===0?s.substr(4):s.indexOf('"\\\\?\\')===0||s.indexOf('"\\??\\')===0?'"'+s.substr(5):s;new Promise((s,r)=>{x(["windows-process-tree"],s,r)}).then(s=>{s.getProcessList(S,r=>{if(!r){v(new Error(`Root process ${S} not found`));return}s.getProcessCpuUsage(r,w=>{const u=new Map;w.forEach(E=>{const t=o(E.commandLine||"");u.set(E.pid,{name:C(t),cmd:t,pid:E.pid,ppid:E.ppid,load:E.cpu||0,mem:E.memory||0})}),d=u.get(S),d?(u.forEach(E=>{const t=u.get(E.ppid);t&&(t.children||(t.children=[]),t.children.push(E))}),u.forEach(E=>{E.children&&(E.children=E.children.sort((t,n)=>t.pid-n.pid))}),y(d)):v(new Error(`Root process ${S} not found`))})},s.ProcessDataFlag.CommandLine|s.ProcessDataFlag.Memory)})}else{let o=function(){let s=[d];const r=[];for(;s.length;){const u=s.shift();u&&(r.push(u.pid),u.children&&(s=s.concat(u.children)))}let w=JSON.stringify(R.FileAccess.asFileUri("vs/base/node/cpuUsage.sh",x).fsPath);w+=" "+r.join(" "),(0,f.exec)(w,{},(u,E,t)=>{if(u||t)v(u||new Error(t.toString()));else{const n=E.toString().split(` `);for(let c=0;c{if(s||w)if(process.platform!=="linux")v(s||new Error(w.toString()));else{const u=JSON.stringify(R.FileAccess.asFileUri("vs/base/node/ps.sh",x).fsPath);(0,f.exec)(u,{},(E,t,n)=>{E||n?v(E||new Error(n.toString())):(P(t,A),o())})}else{const u=r.toString().trim(),E="-ax -o pid=,ppid=,pcpu=,pmem=,command=";(0,f.exec)(`${u} ${E}`,{maxBuffer:1e3*1024,env:{LC_NUMERIC:"en_US.UTF-8"}},(t,n,c)=>{t||c&&!c.includes("screen size is bogus")?v(t||new Error(c.toString())):(P(n,A),process.platform==="linux"?o():d?y(d):v(new Error(`Root process ${S} not found`)))})}})}})}e.listProcesses=b;function P(S,y){const v=/^\s*([0-9]+)\s+([0-9]+)\s+([0-9]+\.[0-9]+)\s+([0-9]+\.[0-9]+)\s+(.+)$/,d=S.toString().split(` `);for(const D of d){const A=v.exec(D.trim());A&&A.length===6&&y(parseInt(A[1]),parseInt(A[2]),A[5],parseFloat(A[3]),parseFloat(A[4]))}}}),define(ae[55],le([0,1,18,2,53,31]),function(x,e,f,R,b,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSystemShellSync=e.getSystemShell=void 0;async function S(o,s){return o===1?R.isWindows?A():P.getWindowsShell(s):d(o,s)}e.getSystemShell=S;function y(o,s){return o===1?R.isWindows?C(s):P.getWindowsShell(s):d(o,s)}e.getSystemShellSync=y;let v=null;function d(o,s){if(R.isLinux&&o===2||R.isMacintosh&&o===3)return"/bin/bash";if(!v){let r;if(R.isWindows)r="/bin/bash";else{if(r=s.SHELL,!r)try{r=(0,f.userInfo)().shell}catch{}r||(r="sh"),r==="/bin/false"&&(r="/bin/bash")}v=r}return v}let D=null;async function A(){return D||(D=(await(0,b.getFirstAvailablePowerShellInstallation)()).exePath),D}function C(o){if(D)return D;const s=R.isWindows&&parseFloat((0,f.release)())>=10,r=o.hasOwnProperty("PROCESSOR_ARCHITEW6432"),w=`${o.windir}\\${r?"Sysnative":"System32"}\\WindowsPowerShell\\v1.0\\powershell.exe`;return s?w:P.getWindowsShell(o)}});var fe=this&&this.__decorate||function(x,e,f,R){var b=arguments.length,P=b<3?e:R===null?R=Object.getOwnPropertyDescriptor(e,f):R,S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(x,e,f,R);else for(var y=x.length-1;y>=0;y--)(S=x[y])&&(P=(b<3?S(P):b>3?S(e,f,P):S(e,f))||P);return b>3&&P&&Object.defineProperty(e,f,P),P};define(ae[32],le([0,1,22,8,23,16,15,9,3,4,51,11,10]),function(x,e,f,R,b,P,S,y,v,d,D,A,C){"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 o;(function(z){z[z.Promise=100]="Promise",z[z.PromiseCancel=101]="PromiseCancel",z[z.EventListen=102]="EventListen",z[z.EventDispose=103]="EventDispose"})(o=e.RequestType||(e.RequestType={}));function s(z){switch(z){case 100:return"req";case 101:return"cancel";case 102:return"subscribe";case 103:return"unsubscribe"}}var r;(function(z){z[z.Initialize=200]="Initialize",z[z.PromiseSuccess=201]="PromiseSuccess",z[z.PromiseError=202]="PromiseError",z[z.PromiseErrorObj=203]="PromiseErrorObj",z[z.EventFire=204]="EventFire"})(r=e.ResponseType||(e.ResponseType={}));function w(z){switch(z){case 200:return"init";case 201:return"reply:";case 202:case 203:return"replyErr:";case 204:return"event:"}}var u;(function(z){z[z.Uninitialized=0]="Uninitialized",z[z.Idle=1]="Idle"})(u||(u={}));class E{constructor(M){this.buffer=M,this.pos=0}read(M){const W=this.buffer.slice(this.pos,this.pos+M);return this.pos+=W.byteLength,W}}class t{constructor(){this.buffers=[]}get buffer(){return b.VSBuffer.concat(this.buffers)}write(M){this.buffers.push(M)}}var n;(function(z){z[z.Undefined=0]="Undefined",z[z.String=1]="String",z[z.Buffer=2]="Buffer",z[z.VSBuffer=3]="VSBuffer",z[z.Array=4]="Array",z[z.Object=5]="Object"})(n||(n={}));function c(z){const M=b.VSBuffer.alloc(4);return M.writeUInt32BE(z,0),M}function _(z){return z.read(4).readUInt32BE(0)}function h(z){const M=b.VSBuffer.alloc(1);return M.writeUInt8(z,0),M}const p={Undefined:h(n.Undefined),String:h(n.String),Buffer:h(n.Buffer),VSBuffer:h(n.VSBuffer),Array:h(n.Array),Object:h(n.Object)},L=typeof Buffer<"u";function g(z,M){if(typeof M>"u")z.write(p.Undefined);else if(typeof M=="string"){const W=b.VSBuffer.fromString(M);z.write(p.String),z.write(c(W.byteLength)),z.write(W)}else if(L&&Buffer.isBuffer(M)){const W=b.VSBuffer.wrap(M);z.write(p.Buffer),z.write(c(W.byteLength)),z.write(W)}else if(M instanceof b.VSBuffer)z.write(p.VSBuffer),z.write(c(M.byteLength)),z.write(M);else if(Array.isArray(M)){z.write(p.Array),z.write(c(M.length));for(const W of M)g(z,W)}else{const W=b.VSBuffer.fromString(JSON.stringify(M));z.write(p.Object),z.write(c(W.byteLength)),z.write(W)}}function m(z){switch(z.read(1).readUInt8(0)){case n.Undefined:return;case n.String:return z.read(_(z)).toString();case n.Buffer:return z.read(_(z)).buffer;case n.VSBuffer:return z.read(_(z));case n.Array:{const W=_(z),j=[];for(let re=0;rethis.onRawMessage(te)),this.sendResponse({type:200})}registerChannel(M,W){this.channels.set(M,W),setTimeout(()=>this.flushPendingRequests(M),0)}sendResponse(M){switch(M.type){case 200:{const W=this.send([M.type]);this.logger?.logOutgoing(W,0,1,w(M.type));return}case 201:case 202:case 204:case 203:{const W=this.send([M.type,M.id],M.data);this.logger?.logOutgoing(W,M.id,1,w(M.type),M.data);return}}}send(M,W=void 0){const j=new t;return g(j,M),g(j,W),this.sendBuffer(j.buffer)}sendBuffer(M){try{return this.protocol.send(M),M.byteLength}catch{return 0}}onRawMessage(M){const W=new E(M),j=m(W),re=m(W),te=j[0];switch(te){case 100:return this.logger?.logIncoming(M.byteLength,j[1],1,`${s(te)}: ${j[2]}.${j[3]}`,re),this.onPromise({type:te,id:j[1],channelName:j[2],name:j[3],arg:re});case 102:return this.logger?.logIncoming(M.byteLength,j[1],1,`${s(te)}: ${j[2]}.${j[3]}`,re),this.onEventListen({type:te,id:j[1],channelName:j[2],name:j[3],arg:re});case 101:return this.logger?.logIncoming(M.byteLength,j[1],1,`${s(te)}`),this.disposeActiveRequest({type:te,id:j[1]});case 103:return this.logger?.logIncoming(M.byteLength,j[1],1,`${s(te)}`),this.disposeActiveRequest({type:te,id:j[1]})}}onPromise(M){const W=this.channels.get(M.channelName);if(!W){this.collectPendingRequest(M);return}const j=new P.CancellationTokenSource;let re;try{re=W.call(this.ctx,M.name,M.arg,j.token)}catch(T){re=Promise.reject(T)}const te=M.id;re.then(T=>{this.sendResponse({id:te,data:T,type:201}),this.activeRequests.delete(M.id)},T=>{T instanceof Error?this.sendResponse({id:te,data:{message:T.message,name:T.name,stack:T.stack?T.stack.split?T.stack.split(` `):T.stack:void 0},type:202}):this.sendResponse({id:te,data:T,type:203}),this.activeRequests.delete(M.id)});const Y=(0,d.toDisposable)(()=>j.cancel());this.activeRequests.set(M.id,Y)}onEventListen(M){const W=this.channels.get(M.channelName);if(!W){this.collectPendingRequest(M);return}const j=M.id,te=W.listen(this.ctx,M.name,M.arg)(Y=>this.sendResponse({id:j,data:Y,type:204}));this.activeRequests.set(M.id,te)}disposeActiveRequest(M){const W=this.activeRequests.get(M.id);W&&(W.dispose(),this.activeRequests.delete(M.id))}collectPendingRequest(M){let W=this.pendingRequests.get(M.channelName);W||(W=[],this.pendingRequests.set(M.channelName,W));const j=setTimeout(()=>{console.error(`Unknown channel: ${M.channelName}`),M.type===100&&this.sendResponse({id:M.id,data:{name:"Unknown channel",message:`Channel name '${M.channelName}' timed out after ${this.timeoutDelay}ms`,stack:void 0},type:202})},this.timeoutDelay);W.push({request:M,timeoutTimer:j})}flushPendingRequests(M){const W=this.pendingRequests.get(M);if(W){for(const j of W)switch(clearTimeout(j.timeoutTimer),j.request.type){case 100:this.onPromise(j.request);break;case 102:this.onEventListen(j.request);break}this.pendingRequests.delete(M)}}dispose(){this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),(0,d.dispose)(this.activeRequests.values()),this.activeRequests.clear()}}e.ChannelServer=i;var a;(function(z){z[z.LocalSide=0]="LocalSide",z[z.OtherSide=1]="OtherSide"})(a=e.RequestInitiator||(e.RequestInitiator={}));class l{constructor(M,W=null){this.protocol=M,this.isDisposed=!1,this.state=u.Uninitialized,this.activeRequests=new Set,this.handlers=new Map,this.lastRequestId=0,this._onDidInitialize=new v.Emitter,this.onDidInitialize=this._onDidInitialize.event,this.protocolListener=this.protocol.onMessage(j=>this.onBuffer(j)),this.logger=W}getChannel(M){const W=this;return{call(j,re,te){return W.isDisposed?Promise.reject(new y.CancellationError):W.requestPromise(M,j,re,te)},listen(j,re){return W.isDisposed?v.Event.None:W.requestEvent(M,j,re)}}}requestPromise(M,W,j,re=P.CancellationToken.None){const te=this.lastRequestId++,T={id:te,type:100,channelName:M,name:W,arg:j};if(re.isCancellationRequested)return Promise.reject(new y.CancellationError);let $;return new Promise((H,K)=>{if(re.isCancellationRequested)return K(new y.CancellationError);const ie=()=>{const V=Z=>{switch(Z.type){case 201:this.handlers.delete(te),H(Z.data);break;case 202:{this.handlers.delete(te);const me=new Error(Z.data.message);me.stack=Array.isArray(Z.data.stack)?Z.data.stack.join(` `):Z.data.stack,me.name=Z.data.name,K(me);break}case 203:this.handlers.delete(te),K(Z.data);break}};this.handlers.set(te,V),this.sendRequest(T)};let O=null;this.state===u.Idle?ie():(O=(0,R.createCancelablePromise)(V=>this.whenInitialized()),O.then(()=>{O=null,ie()}));const F=()=>{O?(O.cancel(),O=null):this.sendRequest({id:te,type:101}),K(new y.CancellationError)},U=re.onCancellationRequested(F);$=(0,d.combinedDisposable)((0,d.toDisposable)(F),U),this.activeRequests.add($)}).finally(()=>{this.activeRequests.delete($)})}requestEvent(M,W,j){const re=this.lastRequestId++,Y={id:re,type:102,channelName:M,name:W,arg:j};let T=null;const $=new v.Emitter({onFirstListenerAdd:()=>{T=(0,R.createCancelablePromise)(H=>this.whenInitialized()),T.then(()=>{T=null,this.activeRequests.add($),this.sendRequest(Y)})},onLastListenerRemove:()=>{T?(T.cancel(),T=null):(this.activeRequests.delete($),this.sendRequest({id:re,type:103}))}}),Q=H=>$.fire(H.data);return this.handlers.set(re,Q),$.event}sendRequest(M){switch(M.type){case 100:case 102:{const W=this.send([M.type,M.id,M.channelName,M.name],M.arg);this.logger?.logOutgoing(W,M.id,0,`${s(M.type)}: ${M.channelName}.${M.name}`,M.arg);return}case 101:case 103:{const W=this.send([M.type,M.id]);this.logger?.logOutgoing(W,M.id,0,s(M.type));return}}}send(M,W=void 0){const j=new t;return g(j,M),g(j,W),this.sendBuffer(j.buffer)}sendBuffer(M){try{return this.protocol.send(M),M.byteLength}catch{return 0}}onBuffer(M){const W=new E(M),j=m(W),re=m(W),te=j[0];switch(te){case 200:return this.logger?.logIncoming(M.byteLength,0,0,w(te)),this.onResponse({type:j[0]});case 201:case 202:case 204:case 203:return this.logger?.logIncoming(M.byteLength,j[1],0,w(te),re),this.onResponse({type:j[0],id:j[1],data:re})}}onResponse(M){if(M.type===200){this.state=u.Idle,this._onDidInitialize.fire();return}this.handlers.get(M.id)?.(M)}get onDidInitializePromise(){return v.Event.toPromise(this.onDidInitialize)}whenInitialized(){return this.state===u.Idle?Promise.resolve():this.onDidInitializePromise}dispose(){this.isDisposed=!0,this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),(0,d.dispose)(this.activeRequests.values()),this.activeRequests.clear()}}fe([S.memoize],l.prototype,"onDidInitializePromise",null),e.ChannelClient=l;class k{get connections(){const M=[];return this._connections.forEach(W=>M.push(W)),M}constructor(M){this.channels=new Map,this._connections=new Set,this._onDidAddConnection=new v.Emitter,this.onDidAddConnection=this._onDidAddConnection.event,this._onDidRemoveConnection=new v.Emitter,this.onDidRemoveConnection=this._onDidRemoveConnection.event,M(({protocol:W,onDidClientDisconnect:j})=>{v.Event.once(W.onMessage)(te=>{const Y=new E(te),T=m(Y),$=new i(W,T),Q=new l(W);this.channels.forEach((K,ie)=>$.registerChannel(ie,K));const H={channelServer:$,channelClient:Q,ctx:T};this._connections.add(H),this._onDidAddConnection.fire(H),j(()=>{$.dispose(),Q.dispose(),this._connections.delete(H),this._onDidRemoveConnection.fire(H)})})})}getChannel(M,W){const j=this;return{call(re,te,Y){let T;if((0,C.isFunction)(W)){const Q=(0,f.getRandomElement)(j.connections.filter(W));T=Q?Promise.resolve(Q):v.Event.toPromise(v.Event.filter(j.onDidAddConnection,W))}else T=W.routeCall(j,re,te);const $=T.then(Q=>Q.channelClient.getChannel(M));return G($).call(re,te,Y)},listen(re,te){if((0,C.isFunction)(W))return j.getMulticastEvent(M,W,re,te);const Y=W.routeEvent(j,re,te).then(T=>T.channelClient.getChannel(M));return G(Y).listen(re,te)}}}getMulticastEvent(M,W,j,re){const te=this;let Y=new d.DisposableStore;const T=new v.Emitter({onFirstListenerAdd:()=>{Y=new d.DisposableStore;const $=new v.EventMultiplexer,Q=new Map,H=ie=>{const F=ie.channelClient.getChannel(M).listen(j,re),U=$.add(F);Q.set(ie,U)},K=ie=>{const O=Q.get(ie);!O||(O.dispose(),Q.delete(ie))};te.connections.filter(W).forEach(H),v.Event.filter(te.onDidAddConnection,W)(H,void 0,Y),te.onDidRemoveConnection(K,void 0,Y),$.event(T.fire,T,Y),Y.add($)},onLastListenerRemove:()=>{Y.dispose()}});return T.event}registerChannel(M,W){this.channels.set(M,W),this._connections.forEach(j=>{j.channelServer.registerChannel(M,W)})}dispose(){this.channels.clear(),this._connections.clear(),this._onDidAddConnection.dispose(),this._onDidRemoveConnection.dispose()}}e.IPCServer=k;class B{constructor(M,W,j=null){const re=new t;g(re,W),M.send(re.buffer),this.channelClient=new l(M,j),this.channelServer=new i(M,W,j)}getChannel(M){return this.channelClient.getChannel(M)}registerChannel(M,W){this.channelServer.registerChannel(M,W)}dispose(){this.channelClient.dispose(),this.channelServer.dispose()}}e.IPCClient=B;function G(z){return{call(M,W,j){return z.then(re=>re.call(M,W,j))},listen(M,W){const j=new v.Relay;return z.then(re=>j.input=re.listen(M,W)),j.event}}}e.getDelayedChannel=G;function ne(z){let M=!1;return{call(W,j,re){return M?z.call(W,j,re):(0,R.timeout)(0).then(()=>M=!0).then(()=>z.call(W,j,re))},listen(W,j){if(M)return z.listen(W,j);const re=new v.Relay;return(0,R.timeout)(0).then(()=>M=!0).then(()=>re.input=z.listen(W,j)),re.event}}}e.getNextTickChannel=ne;class ce{constructor(M){this.fn=M}routeCall(M){return this.route(M)}routeEvent(M){return this.route(M)}async route(M){for(const W of M.connections)if(await Promise.resolve(this.fn(W.ctx)))return Promise.resolve(W);return await v.Event.toPromise(M.onDidAddConnection),await this.route(M)}}e.StaticRouter=ce;var he;(function(z){function M(te,Y){const T=te,$=Y&&Y.disableMarshalling,Q=new Map;for(const H in T)j(H)&&Q.set(H,v.Event.buffer(T[H],!0));return new class{listen(H,K,ie){const O=Q.get(K);if(O)return O;if(re(K)){const F=T[K];if(typeof F=="function")return F.call(T,ie)}throw new Error(`Event not found: ${K}`)}call(H,K,ie){const O=T[K];if(typeof O=="function"){if(!$&&Array.isArray(ie))for(let F=0;F{try{process.send?.(E.buffer.toString("base64"))}catch{}},onMessage:v.Event.fromNodeEventEmitter(process,"message",E=>b.VSBuffer.wrap(Buffer.from(E,"base64")))},u),process.once("disconnect",()=>this.dispose())}}e.Server=s;class r{constructor(u,E){this.modulePath=u,this.options=E,this.activeRequests=new Set,this.channels=new Map,this._onDidProcessExit=new v.Emitter,this.onDidProcessExit=this._onDidProcessExit.event;const t=E&&E.timeout?E.timeout:6e4;this.disposeDelayer=new R.Delayer(t),this.child=null,this._client=null}getChannel(u){const E=this;return{call(t,n,c){return E.requestPromise(u,t,n,c)},listen(t,n){return E.requestEvent(u,t,n)}}}requestPromise(u,E,t,n=P.CancellationToken.None){if(!this.disposeDelayer)return Promise.reject(new Error("disposed"));if(n.isCancellationRequested)return Promise.reject(y.canceled());this.disposeDelayer.cancel();const c=this.getCachedChannel(u),_=(0,R.createCancelablePromise)(L=>c.call(E,t,L)),h=n.onCancellationRequested(()=>_.cancel()),p=(0,d.toDisposable)(()=>_.cancel());return this.activeRequests.add(p),_.finally(()=>{h.dispose(),this.activeRequests.delete(p),this.activeRequests.size===0&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}),_}requestEvent(u,E,t){if(!this.disposeDelayer)return v.Event.None;this.disposeDelayer.cancel();let n;const c=new v.Emitter({onFirstListenerAdd:()=>{n=this.getCachedChannel(u).listen(E,t)(c.fire,c),this.activeRequests.add(n)},onLastListenerRemove:()=>{this.activeRequests.delete(n),n.dispose(),this.activeRequests.size===0&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}});return c.event}get client(){if(!this._client){const u=this.options&&this.options.args?this.options.args:[],E=Object.create(null);E.env={...(0,D.deepClone)(process.env),VSCODE_PARENT_PID:String(process.pid)},this.options&&this.options.env&&(E.env={...E.env,...this.options.env}),this.options&&this.options.freshExecArgv&&(E.execArgv=[]),this.options&&typeof this.options.debug=="number"&&(E.execArgv=["--nolazy","--inspect="+this.options.debug]),this.options&&typeof this.options.debugBrk=="number"&&(E.execArgv=["--nolazy","--inspect-brk="+this.options.debugBrk]),E.execArgv===void 0&&(E.execArgv=process.execArgv.filter(g=>!/^--inspect(-brk)?=/.test(g))),(0,C.removeDangerousEnvVariables)(E.env),this.child=(0,f.fork)(this.modulePath,u,E);const t=new v.Emitter;v.Event.fromNodeEventEmitter(this.child,"message",g=>g)(g=>{if((0,S.isRemoteConsoleLog)(g)){(0,S.log)(g,`IPC Library: ${this.options.serverName}`);return}t.fire(b.VSBuffer.wrap(Buffer.from(g,"base64")))});const c=this.options.useQueue?(0,A.createQueuedSender)(this.child):this.child,_=g=>this.child&&this.child.connected&&c.send(g.buffer.toString("base64")),h=t.event,p={send:_,onMessage:h};this._client=new o.ChannelClient(p);const L=()=>this.disposeClient();process.once("exit",L),this.child.on("error",g=>console.warn('IPC "'+this.options.serverName+'" errored with '+g)),this.child.on("exit",(g,m)=>{process.removeListener("exit",L),this.activeRequests.forEach(i=>(0,d.dispose)(i)),this.activeRequests.clear(),g!==0&&m!=="SIGTERM"&&console.warn('IPC "'+this.options.serverName+'" crashed with exit code '+g+" and signal "+m),this.disposeDelayer?.cancel(),this.disposeClient(),this._onDidProcessExit.fire({code:g,signal:m})})}return this._client}getCachedChannel(u){let E=this.channels.get(u);return E||(E=this.client.getChannel(u),this.channels.set(u,E)),E}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=r}),define(ae[57],le([12,13]),function(x,e){return x.create("vs/platform/environment/node/argv",e)}),define(ae[58],le([12,13]),function(x,e){return x.create("vs/platform/files/common/files",e)}),define(ae[59],le([12,13]),function(x,e){return x.create("vs/platform/terminal/node/ptyService",e)}),define(ae[60],le([12,13]),function(x,e){return x.create("vs/platform/terminal/node/terminalProcess",e)}),define(ae[61],le([0,1,43,15,17,5,14,19,6]),function(x,e,f,R,b,P,S,y,v){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePtyHostPort=e.parseSearchPort=e.parseExtensionHostPort=e.AbstractNativeEnvironmentService=e.EXTENSION_IDENTIFIER_WITH_LOG_REGEX=void 0,e.EXTENSION_IDENTIFIER_WITH_LOG_REGEX=/^([^.]+\..+):(.+)$/;class d{get appRoot(){return(0,P.dirname)(b.FileAccess.asFileUri("",x).fsPath)}get userHome(){return v.URI.file(this.paths.homeDir)}get userDataPath(){return this.paths.userDataDir}get appSettingsHome(){return v.URI.file((0,P.join)(this.userDataPath,"User"))}get tmpDir(){return v.URI.file(this.paths.tmpDir)}get cacheHome(){return v.URI.file(this.userDataPath)}get stateResource(){return(0,y.joinPath)(this.appSettingsHome,"globalStorage","storage.json")}get userRoamingDataHome(){return this.appSettingsHome}get userDataSyncHome(){return(0,y.joinPath)(this.userRoamingDataHome,"sync")}get logsPath(){if(!this.args.logsPath){const r=(0,f.toLocalISOString)(new Date).replace(/-|:|\.\d+Z$/g,"");this.args.logsPath=(0,P.join)(this.userDataPath,"logs",r)}return this.args.logsPath}get userDataSyncLogResource(){return v.URI.file((0,P.join)(this.logsPath,"userDataSync.log"))}get editSessionsLogResource(){return v.URI.file((0,P.join)(this.logsPath,"editSessions.log"))}get remoteTunnelLogResource(){return v.URI.file((0,P.join)(this.logsPath,"remoteTunnel.log"))}get sync(){return this.args.sync}get machineSettingsResource(){return(0,y.joinPath)(v.URI.file((0,P.join)(this.userDataPath,"Machine")),"settings.json")}get workspaceStorageHome(){return(0,y.joinPath)(this.appSettingsHome,"workspaceStorage")}get localHistoryHome(){return(0,y.joinPath)(this.appSettingsHome,"History")}get keyboardLayoutResource(){return(0,y.joinPath)(this.userRoamingDataHome,"keyboardLayout.json")}get argvResource(){const r=S.env.VSCODE_PORTABLE;return r?v.URI.file((0,P.join)(r,"argv.json")):(0,y.joinPath)(this.userHome,this.productService.dataFolderName,"argv.json")}get isExtensionDevelopment(){return!!this.args.extensionDevelopmentPath}get untitledWorkspacesHome(){return v.URI.file((0,P.join)(this.userDataPath,"Workspaces"))}get installSourcePath(){return(0,P.join)(this.userDataPath,"installSource")}get builtinExtensionsPath(){const r=this.args["builtin-extensions-dir"];return r?(0,P.resolve)(r):(0,P.normalize)((0,P.join)(b.FileAccess.asFileUri("",x).fsPath,"..","extensions"))}get extensionsDownloadLocation(){const r=this.args["extensions-download-dir"];return r?v.URI.file((0,P.resolve)(r)):v.URI.file((0,P.join)(this.userDataPath,"CachedExtensionVSIXs"))}get extensionsPath(){const r=this.args["extensions-dir"];if(r)return(0,P.resolve)(r);const w=S.env.VSCODE_EXTENSIONS;if(w)return w;const u=S.env.VSCODE_PORTABLE;return u?(0,P.join)(u,"extensions"):(0,y.joinPath)(this.userHome,this.productService.dataFolderName,"extensions").fsPath}get extensionDevelopmentLocationURI(){const r=this.args.extensionDevelopmentPath;if(Array.isArray(r))return r.map(w=>/^[^:/?#]+?:\/\//.test(w)?v.URI.parse(w):v.URI.file((0,P.normalize)(w)))}get extensionDevelopmentKind(){return this.args.extensionDevelopmentKind?.map(r=>r==="ui"||r==="workspace"||r==="web"?r:"workspace")}get extensionTestsLocationURI(){const r=this.args.extensionTestsPath;if(r)return/^[^:/?#]+?:\/\//.test(r)?v.URI.parse(r):v.URI.file((0,P.normalize)(r))}get disableExtensions(){if(this.args["disable-extensions"])return!0;const r=this.args["disable-extension"];if(r){if(typeof r=="string")return[r];if(Array.isArray(r)&&r.length>0)return r}return!1}get debugExtensionHost(){return D(this.args,this.isBuilt)}get debugRenderer(){return!!this.args.debugRenderer}get isBuilt(){return!S.env.VSCODE_DEV}get verbose(){return!!this.args.verbose}get logLevel(){return this.args.log?.find(r=>!e.EXTENSION_IDENTIFIER_WITH_LOG_REGEX.test(r))}get extensionLogLevel(){const r=[];for(const w of this.args.log||[]){const u=e.EXTENSION_IDENTIFIER_WITH_LOG_REGEX.exec(w);u&&u[1]&&u[2]&&r.push([u[1],u[2]])}return r.length?r:void 0}get serviceMachineIdResource(){return(0,y.joinPath)(v.URI.file(this.userDataPath),"machineid")}get crashReporterId(){return this.args["crash-reporter-id"]}get crashReporterDirectory(){return this.args["crash-reporter-directory"]}get telemetryLogResource(){return v.URI.file((0,P.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 r=S.env.VSCODE_PORTABLE;return r?v.URI.file((0,P.join)(r,"policy.json")):(0,y.joinPath)(this.userHome,this.productService.dataFolderName,"policy.json")}}get continueOn(){return this.args.continueOn}set continueOn(r){this.args.continueOn=r}get args(){return this._args}constructor(r,w,u){this._args=r,this.paths=w,this.productService=u,this.editSessionId=this.args.editSessionId}}fe([R.memoize],d.prototype,"appRoot",null),fe([R.memoize],d.prototype,"userHome",null),fe([R.memoize],d.prototype,"userDataPath",null),fe([R.memoize],d.prototype,"appSettingsHome",null),fe([R.memoize],d.prototype,"tmpDir",null),fe([R.memoize],d.prototype,"cacheHome",null),fe([R.memoize],d.prototype,"stateResource",null),fe([R.memoize],d.prototype,"userRoamingDataHome",null),fe([R.memoize],d.prototype,"userDataSyncHome",null),fe([R.memoize],d.prototype,"userDataSyncLogResource",null),fe([R.memoize],d.prototype,"editSessionsLogResource",null),fe([R.memoize],d.prototype,"remoteTunnelLogResource",null),fe([R.memoize],d.prototype,"sync",null),fe([R.memoize],d.prototype,"machineSettingsResource",null),fe([R.memoize],d.prototype,"workspaceStorageHome",null),fe([R.memoize],d.prototype,"localHistoryHome",null),fe([R.memoize],d.prototype,"keyboardLayoutResource",null),fe([R.memoize],d.prototype,"argvResource",null),fe([R.memoize],d.prototype,"isExtensionDevelopment",null),fe([R.memoize],d.prototype,"untitledWorkspacesHome",null),fe([R.memoize],d.prototype,"installSourcePath",null),fe([R.memoize],d.prototype,"builtinExtensionsPath",null),fe([R.memoize],d.prototype,"extensionsPath",null),fe([R.memoize],d.prototype,"extensionDevelopmentLocationURI",null),fe([R.memoize],d.prototype,"extensionDevelopmentKind",null),fe([R.memoize],d.prototype,"extensionTestsLocationURI",null),fe([R.memoize],d.prototype,"debugExtensionHost",null),fe([R.memoize],d.prototype,"logLevel",null),fe([R.memoize],d.prototype,"extensionLogLevel",null),fe([R.memoize],d.prototype,"serviceMachineIdResource",null),fe([R.memoize],d.prototype,"telemetryLogResource",null),fe([R.memoize],d.prototype,"disableWorkspaceTrust",null),fe([R.memoize],d.prototype,"policyFile",null),e.AbstractNativeEnvironmentService=d;function D(s,r){return o(s["inspect-extensions"],s["inspect-brk-extensions"],5870,r,s.debugId,s.extensionEnvironment)}e.parseExtensionHostPort=D;function A(s,r){return o(s["inspect-search"],s["inspect-brk-search"],5876,r,s.extensionEnvironment)}e.parseSearchPort=A;function C(s,r){return o(s["inspect-ptyhost"],s["inspect-brk-ptyhost"],5877,r,s.extensionEnvironment)}e.parsePtyHostPort=C;function o(s,r,w,u,E,t){const c=Number(r||s)||(u?null:w),_=c?Boolean(!!r):!1;let h;if(t)try{h=JSON.parse(t)}catch{}return{port:c,break:_,debugId:E,env:h}}}),define(ae[62],le([0,1,87,2,57]),function(x,e,f,R,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildVersionMessage=e.buildHelpMessage=e.formatOptions=e.parseArgs=e.OPTIONS=void 0;const P={o:(0,b.localize)(0,null),e:(0,b.localize)(1,null),t:(0,b.localize)(2,null)};e.OPTIONS={tunnel:{type:"subcommand",description:"Make the current machine accessible from vscode.dev or other machines through a secure tunnel",options:{"cli-data-dir":{type:"string",args:"dir",description:(0,b.localize)(3,null)},"disable-telemetry":{type:"boolean"},"telemetry-level":{type:"string"},user:{type:"subcommand",options:{login:{type:"subcommand",options:{provider:{type:"string"},"access-token":{type:"string"}}}}}}},diff:{type:"boolean",cat:"o",alias:"d",args:["file","file"],description:(0,b.localize)(4,null)},merge:{type:"boolean",cat:"o",alias:"m",args:["path1","path2","base","result"],description:(0,b.localize)(5,null)},add:{type:"boolean",cat:"o",alias:"a",args:"folder",description:(0,b.localize)(6,null)},goto:{type:"boolean",cat:"o",alias:"g",args:"file:line[:character]",description:(0,b.localize)(7,null)},"new-window":{type:"boolean",cat:"o",alias:"n",description:(0,b.localize)(8,null)},"reuse-window":{type:"boolean",cat:"o",alias:"r",description:(0,b.localize)(9,null)},wait:{type:"boolean",cat:"o",alias:"w",description:(0,b.localize)(10,null)},waitMarkerFilePath:{type:"string"},locale:{type:"string",cat:"o",args:"locale",description:(0,b.localize)(11,null)},"user-data-dir":{type:"string",cat:"o",args:"dir",description:(0,b.localize)(12,null)},profile:{type:"string",cat:"o",args:"settingsProfileName",description:(0,b.localize)(13,null)},help:{type:"boolean",cat:"o",alias:"h",description:(0,b.localize)(14,null)},"extensions-dir":{type:"string",deprecates:["extensionHomePath"],cat:"e",args:"dir",description:(0,b.localize)(15,null)},"extensions-download-dir":{type:"string"},"builtin-extensions-dir":{type:"string"},"list-extensions":{type:"boolean",cat:"e",description:(0,b.localize)(16,null)},"show-versions":{type:"boolean",cat:"e",description:(0,b.localize)(17,null)},category:{type:"string",cat:"e",description:(0,b.localize)(18,null),args:"category"},"install-extension":{type:"string[]",cat:"e",args:"ext-id | path",description:(0,b.localize)(19,null)},"pre-release":{type:"boolean",cat:"e",description:(0,b.localize)(20,null)},"uninstall-extension":{type:"string[]",cat:"e",args:"ext-id",description:(0,b.localize)(21,null)},"enable-proposed-api":{type:"string[]",allowEmptyValue:!0,cat:"e",args:"ext-id",description:(0,b.localize)(22,null)},version:{type:"boolean",cat:"t",alias:"v",description:(0,b.localize)(23,null)},verbose:{type:"boolean",cat:"t",global:!0,description:(0,b.localize)(24,null)},log:{type:"string[]",cat:"t",args:"level",global:!0,description:(0,b.localize)(25,null)},status:{type:"boolean",alias:"s",cat:"t",description:(0,b.localize)(26,null)},"prof-startup":{type:"boolean",cat:"t",description:(0,b.localize)(27,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,b.localize)(28,null)},"disable-extension":{type:"string[]",cat:"t",args:"ext-id",description:(0,b.localize)(29,null)},sync:{type:"string",cat:"t",description:(0,b.localize)(30,null),args:["on | off"]},"inspect-extensions":{type:"string",allowEmptyValue:!0,deprecates:["debugPluginHost"],args:"port",cat:"t",description:(0,b.localize)(31,null)},"inspect-brk-extensions":{type:"string",allowEmptyValue:!0,deprecates:["debugBrkPluginHost"],args:"port",cat:"t",description:(0,b.localize)(32,null)},"disable-gpu":{type:"boolean",cat:"t",description:(0,b.localize)(33,null)},"ms-enable-electron-run-as-node":{type:"boolean",global:!0},"max-memory":{type:"string",cat:"t",description:(0,b.localize)(34,null),args:"memory"},telemetry:{type:"boolean",cat:"t",description:(0,b.localize)(35,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"},continueOn:{type:"string"},"locate-shell-integration-path":{type:"string",args:["bash","pwsh","zsh","fish"]},"enable-coi":{type:"boolean"},"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"},"profile-temp":{type:"boolean"},_:{type:"string[]"}};const S={onUnknownOption:()=>{},onMultipleValues:()=>{},onEmptyValue:()=>{},onDeprecatedOption:()=>{}};function y(r,w,u=S){const E=r.find(m=>m.length>0&&m[0]!=="-"),t={},n=["_"],c=[],_={};let h;for(const m in w){const i=w[m];i.type==="subcommand"?m===E&&(h=i):(i.alias&&(t[m]=i.alias),i.type==="string"||i.type==="string[]"?(n.push(m),i.deprecates&&n.push(...i.deprecates)):i.type==="boolean"&&(c.push(m),i.deprecates&&c.push(...i.deprecates)),i.global&&(_[m]=i))}if(h&&E){const m=_;for(const k in h.options)m[k]=h.options[k];const i=r.filter(k=>k!==E),a=u.getSubcommandReporter?u.getSubcommandReporter(E):void 0,l=y(i,m,a);return{[E]:l,_:[]}}const p=f(r,{string:n,boolean:c,alias:t}),L={},g=p;L._=p._.map(m=>String(m)).filter(m=>m.length>0),delete g._;for(const m in w){const i=w[m];if(i.type==="subcommand")continue;i.alias&&delete g[i.alias];let a=g[m];if(i.deprecates)for(const l of i.deprecates)g.hasOwnProperty(l)&&(a||(a=g[l],a&&u.onDeprecatedOption(l,i.deprecationMessage||(0,b.localize)(36,null,m))),delete g[l]);if(typeof a<"u"){if(i.type==="string[]"){if(Array.isArray(a)||(a=[a]),!i.allowEmptyValue){const l=a.filter(k=>k.length>0);l.length!==a.length&&(u.onEmptyValue(m),a=l.length>0?l:void 0)}}else i.type==="string"&&(Array.isArray(a)?(a=a.pop(),u.onMultipleValues(m,a)):!a&&!i.allowEmptyValue&&(u.onEmptyValue(m),a=void 0));L[m]=a,i.deprecationMessage&&u.onDeprecatedOption(m,i.deprecationMessage)}delete g[m]}for(const m in g)u.onUnknownOption(m);return L}e.parseArgs=y;function v(r,w){let u="";return w.args&&(Array.isArray(w.args)?u=` <${w.args.join("> <")}>`:u=` <${w.args}>`),w.alias?`-${w.alias} --${r}${u}`:`--${r}${u}`}function d(r,w){const u=[];for(const E in r){const t=r[E],n=v(E,t);u.push([n,t.description])}return D(u,w)}e.formatOptions=d;function D(r,w){const E=r.reduce((c,_)=>Math.max(c,_[0].length),12)+2+1;if(w-E<25)return r.reduce((c,_)=>c.concat([` ${_[0]}`,` ${_[1]}`]),[]);const t=w-E-1,n=[];for(const c of r){const _=c[0],h=C(c[1],t),p=A(E-_.length-2);n.push(" "+_+p+h[0]);for(let L=1;L[L.command,L.description]),n)),_.push("")),_.join(` `)}e.buildHelpMessage=o;function s(r,w){return`${r||(0,b.localize)(43,null)} ${w||(0,b.localize)(44,null)} ${process.arch}`}e.buildVersionMessage=s}),function(){"use strict";function x(e,f,R){function b(S,y){const v=P(S,y),d=[v];return e.isAbsolute(v)||d.unshift(R),e.resolve(...d)}function P(S,y){process.env.VSCODE_DEV&&(y="code-oss-dev");const v=process.env.VSCODE_PORTABLE;if(v)return e.join(v,"user-data");let d=process.env.VSCODE_APPDATA;if(d)return e.join(d,y);const D=S["user-data-dir"];if(D)return D;switch(process.platform){case"win32":if(d=process.env.APPDATA,!d){const A=process.env.USERPROFILE;if(typeof A!="string")throw new Error("Windows: Unexpected undefined %USERPROFILE% environment variable");d=e.join(A,"AppData","Roaming")}break;case"darwin":d=e.join(f.homedir(),"Library","Application Support");break;case"linux":d=process.env.XDG_CONFIG_HOME||e.join(f.homedir(),".config");break;default:throw new Error("Platform not supported")}return e.join(d,y)}return{getUserDataPath:b}}if(typeof define=="function")define(ae[63],le([88,18,14]),function(e,f,R){return x(e,f,R.cwd())});else if(typeof module=="object"&&typeof module.exports=="object"){const e=require("path"),f=require("os");module.exports=x(e,f,process.env.VSCODE_CWD||process.cwd())}else throw new Error("Unknown context")}(),define(ae[64],le([0,1,18,61,63]),function(x,e,f,R,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NativeEnvironmentService=void 0;class P extends R.AbstractNativeEnvironmentService{constructor(y,v){super(y,{homeDir:(0,f.homedir)(),tmpDir:(0,f.tmpdir)(),userDataDir:(0,b.getUserDataPath)(y,v.nameShort)},v)}}e.NativeEnvironmentService=P}),define(ae[21],le([0,1]),function(x,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.refineServiceDecorator=e.createDecorator=e.IInstantiationService=e._util=void 0;var f;(function(S){S.serviceIds=new Map,S.DI_TARGET="$di$target",S.DI_DEPENDENCIES="$di$dependencies";function y(v){return v[S.DI_DEPENDENCIES]||[]}S.getServiceDependencies=y})(f=e._util||(e._util={})),e.IInstantiationService=b("instantiationService");function R(S,y,v){y[f.DI_TARGET]===y?y[f.DI_DEPENDENCIES].push({id:S,index:v}):(y[f.DI_DEPENDENCIES]=[{id:S,index:v}],y[f.DI_TARGET]=y)}function b(S){if(f.serviceIds.has(S))return f.serviceIds.get(S);const y=function(v,d,D){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");R(y,v,D)};return y.toString=()=>S,f.serviceIds.set(S,y),y}e.createDecorator=b;function P(S){return S}e.refineServiceDecorator=P}),define(ae[65],le([0,1,49,5,11,10,6,58,21]),function(x,e,f,R,b,P,S,y,v){"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,v.createDecorator)("fileService");function d(N){return N.create===!0}e.isFileOpenForWriteOptions=d;var D;(function(N){N[N.Unknown=0]="Unknown",N[N.File=1]="File",N[N.Directory=2]="Directory",N[N.SymbolicLink=64]="SymbolicLink"})(D=e.FileType||(e.FileType={}));var A;(function(N){N[N.Readonly=1]="Readonly"})(A=e.FilePermission||(e.FilePermission={}));var C;(function(N){N[N.FileReadWrite=2]="FileReadWrite",N[N.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",N[N.FileReadStream=16]="FileReadStream",N[N.FileFolderCopy=8]="FileFolderCopy",N[N.PathCaseSensitive=1024]="PathCaseSensitive",N[N.Readonly=2048]="Readonly",N[N.Trash=4096]="Trash",N[N.FileWriteUnlock=8192]="FileWriteUnlock",N[N.FileAtomicRead=16384]="FileAtomicRead",N[N.FileClone=32768]="FileClone"})(C=e.FileSystemProviderCapabilities||(e.FileSystemProviderCapabilities={}));function o(N){return!!(N.capabilities&2)}e.hasReadWriteCapability=o;function s(N){return!!(N.capabilities&8)}e.hasFileFolderCopyCapability=s;function r(N){return!!(N.capabilities&32768)}e.hasFileCloneCapability=r;function w(N){return!!(N.capabilities&4)}e.hasOpenReadWriteCloseCapability=w;function u(N){return!!(N.capabilities&16)}e.hasFileReadStreamCapability=u;function E(N){return o(N)?!!(N.capabilities&16384):!1}e.hasFileAtomicReadCapability=E;var t;(function(N){N.FileExists="EntryExists",N.FileNotFound="EntryNotFound",N.FileNotADirectory="EntryNotADirectory",N.FileIsADirectory="EntryIsADirectory",N.FileExceedsMemoryLimit="EntryExceedsMemoryLimit",N.FileTooLarge="EntryTooLarge",N.FileWriteLocked="EntryWriteLocked",N.NoPermissions="NoPermissions",N.Unavailable="Unavailable",N.Unknown="Unknown"})(t=e.FileSystemProviderErrorCode||(e.FileSystemProviderErrorCode={}));class n extends Error{constructor(J,z){super(J),this.code=z}}e.FileSystemProviderError=n;function c(N,J){const z=new n(N.toString(),J);return h(z,J),z}e.createFileSystemProviderError=c;function _(N){return N||c((0,y.localize)(0,null),t.Unknown)}e.ensureFileSystemProviderError=_;function h(N,J){return N.name=J?`${J} (FileSystemError)`:"FileSystemError",N}e.markAsFileSystemProviderError=h;function p(N){if(!N)return t.Unknown;if(N instanceof n)return N.code;const J=/^(.+) \(FileSystemError\)$/.exec(N.name);if(!J)return t.Unknown;switch(J[1]){case t.FileExists:return t.FileExists;case t.FileIsADirectory:return t.FileIsADirectory;case t.FileNotADirectory:return t.FileNotADirectory;case t.FileNotFound:return t.FileNotFound;case t.FileExceedsMemoryLimit:return t.FileExceedsMemoryLimit;case t.FileTooLarge:return t.FileTooLarge;case t.FileWriteLocked:return t.FileWriteLocked;case t.NoPermissions:return t.NoPermissions;case t.Unavailable:return t.Unavailable}return t.Unknown}e.toFileSystemProviderErrorCode=p;function L(N){if(N instanceof k)return N.fileOperationResult;switch(p(N)){case t.FileNotFound:return 1;case t.FileIsADirectory:return 0;case t.FileNotADirectory:return 10;case t.FileWriteLocked:return 5;case t.NoPermissions:return 6;case t.FileExists:return 4;case t.FileExceedsMemoryLimit:return 9;case t.FileTooLarge:return 7;default:return 11}}e.toFileOperationResult=L;var g;(function(N){N[N.CREATE=0]="CREATE",N[N.DELETE=1]="DELETE",N[N.MOVE=2]="MOVE",N[N.COPY=3]="COPY",N[N.WRITE=4]="WRITE"})(g=e.FileOperation||(e.FileOperation={}));class m{constructor(J,z,M){this.resource=J,this.operation=z,this.target=M}isOperation(J){return this.operation===J}}e.FileOperationEvent=m;var i;(function(N){N[N.UPDATED=0]="UPDATED",N[N.ADDED=1]="ADDED",N[N.DELETED=2]="DELETED"})(i=e.FileChangeType||(e.FileChangeType={}));class a{constructor(J,z){this.added=void 0,this.updated=void 0,this.deleted=void 0,this.rawChanges=[],this.rawAdded=[],this.rawUpdated=[],this.rawDeleted=[],this.rawChanges=J;const M=new Map;for(const W of J){const j=M.get(W.type);switch(j?j.push([W.resource,W]):M.set(W.type,[[W.resource,W]]),W.type){case 1:this.rawAdded.push(W.resource);break;case 0:this.rawUpdated.push(W.resource);break;case 2:this.rawDeleted.push(W.resource);break}}for(const[W,j]of M)switch(W){case 1:this.added=f.TernarySearchTree.forUris(()=>z),this.added.fill(j);break;case 0:this.updated=f.TernarySearchTree.forUris(()=>z),this.updated.fill(j);break;case 2:this.deleted=f.TernarySearchTree.forUris(()=>z),this.deleted.fill(j);break}}contains(J,...z){return this.doContains(J,{includeChildren:!1},...z)}affects(J,...z){return this.doContains(J,{includeChildren:!0},...z)}doContains(J,z,...M){if(!J)return!1;const W=M.length>0;return!!((!W||M.includes(1))&&(this.added?.get(J)||z.includeChildren&&this.added?.findSuperstr(J))||(!W||M.includes(0))&&(this.updated?.get(J)||z.includeChildren&&this.updated?.findSuperstr(J))||(!W||M.includes(2))&&(this.deleted?.findSubstr(J)||z.includeChildren&&this.deleted?.findSuperstr(J)))}gotAdded(){return!!this.added}gotDeleted(){return!!this.deleted}gotUpdated(){return!!this.updated}}e.FileChangesEvent=a;function l(N,J,z){return!N||!J||N===J||J.length>N.length?!1:(J.charAt(J.length-1)!==R.sep&&(J+=R.sep),z?(0,b.startsWithIgnoreCase)(N,J):N.indexOf(J)===0)}e.isParent=l;class k extends Error{constructor(J,z,M){super(J),this.fileOperationResult=z,this.options=M}}e.FileOperationError=k;class B extends k{constructor(J,z,M){super(J,2,M),this.stat=z}}e.NotModifiedSinceFileOperationError=B;var G;(function(N){N[N.FILE_IS_DIRECTORY=0]="FILE_IS_DIRECTORY",N[N.FILE_NOT_FOUND=1]="FILE_NOT_FOUND",N[N.FILE_NOT_MODIFIED_SINCE=2]="FILE_NOT_MODIFIED_SINCE",N[N.FILE_MODIFIED_SINCE=3]="FILE_MODIFIED_SINCE",N[N.FILE_MOVE_CONFLICT=4]="FILE_MOVE_CONFLICT",N[N.FILE_WRITE_LOCKED=5]="FILE_WRITE_LOCKED",N[N.FILE_PERMISSION_DENIED=6]="FILE_PERMISSION_DENIED",N[N.FILE_TOO_LARGE=7]="FILE_TOO_LARGE",N[N.FILE_INVALID_PATH=8]="FILE_INVALID_PATH",N[N.FILE_EXCEEDS_MEMORY_LIMIT=9]="FILE_EXCEEDS_MEMORY_LIMIT",N[N.FILE_NOT_DIRECTORY=10]="FILE_NOT_DIRECTORY",N[N.FILE_OTHER_ERROR=11]="FILE_OTHER_ERROR"})(G=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(N){N[N.FILE=0]="FILE",N[N.FOLDER=1]="FOLDER",N[N.ROOT_FOLDER=2]="ROOT_FOLDER"})(ne=e.FileKind||(e.FileKind={})),e.ETAG_DISABLED="";function ce(N){if(!(typeof N.size!="number"||typeof N.mtime!="number"))return N.mtime.toString(29)+N.size.toString(31)}e.etag=ce;async function he(N,J){if(!J.hasProvider(S.URI.from({scheme:N.scheme})))return new Promise(z=>{const M=J.onDidChangeFileSystemProviderRegistrations(W=>{W.scheme===N.scheme&&W.added&&(M.dispose(),z())})})}e.whenProviderRegistered=he,e.MIN_MAX_MEMORY_SIZE_MB=2048,e.FALLBACK_MAX_MEMORY_SIZE_MB=4096;class de{static formatSize(J){return(0,P.isNumber)(J)||(J=0),J0?" ":"")+l}return i}e.format=C;class o extends b.Disposable{constructor(){super(...arguments),this.level=e.DEFAULT_LOG_LEVEL,this._onDidChangeLogLevel=this._register(new R.Emitter),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(i){this.level!==i&&(this.level=i,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}}e.AbstractLogger=o;class s extends o{constructor(i){super(),this.logAlways=i}checkLogLevel(i){return this.logAlways||this.getLevel()<=i}trace(i,...a){this.checkLogLevel(D.Trace)&&this.log(D.Trace,C([i,...a]))}debug(i,...a){this.checkLogLevel(D.Debug)&&this.log(D.Debug,C([i,...a]))}info(i,...a){this.checkLogLevel(D.Info)&&this.log(D.Info,C([i,...a]))}warn(i,...a){this.checkLogLevel(D.Warning)&&this.log(D.Warning,C([i,...a]))}error(i,...a){if(this.checkLogLevel(D.Error))if(i instanceof Error){const l=Array.prototype.slice.call(arguments);l[0]=i.stack,this.log(D.Error,C(l))}else this.log(D.Error,C([i,...a]))}critical(i,...a){this.checkLogLevel(D.Critical)&&this.log(D.Critical,C([i,...a]))}flush(){}}e.AbstractMessageLogger=s;class r extends o{constructor(i=e.DEFAULT_LOG_LEVEL){super(),this.setLevel(i),this.useColors=!S.isWindows}trace(i,...a){this.getLevel()<=D.Trace&&(this.useColors?console.log(`\x1B[90m[main ${d()}]\x1B[0m`,i,...a):console.log(`[main ${d()}]`,i,...a))}debug(i,...a){this.getLevel()<=D.Debug&&(this.useColors?console.log(`\x1B[90m[main ${d()}]\x1B[0m`,i,...a):console.log(`[main ${d()}]`,i,...a))}info(i,...a){this.getLevel()<=D.Info&&(this.useColors?console.log(`\x1B[90m[main ${d()}]\x1B[0m`,i,...a):console.log(`[main ${d()}]`,i,...a))}warn(i,...a){this.getLevel()<=D.Warning&&(this.useColors?console.warn(`\x1B[93m[main ${d()}]\x1B[0m`,i,...a):console.warn(`[main ${d()}]`,i,...a))}error(i,...a){this.getLevel()<=D.Error&&(this.useColors?console.error(`\x1B[91m[main ${d()}]\x1B[0m`,i,...a):console.error(`[main ${d()}]`,i,...a))}critical(i,...a){this.getLevel()<=D.Critical&&(this.useColors?console.error(`\x1B[90m[main ${d()}]\x1B[0m`,i,...a):console.error(`[main ${d()}]`,i,...a))}dispose(){}flush(){}}e.ConsoleMainLogger=r;class w extends o{constructor(i=e.DEFAULT_LOG_LEVEL){super(),this.setLevel(i)}trace(i,...a){this.getLevel()<=D.Trace&&console.log("%cTRACE","color: #888",i,...a)}debug(i,...a){this.getLevel()<=D.Debug&&console.log("%cDEBUG","background: #eee; color: #888",i,...a)}info(i,...a){this.getLevel()<=D.Info&&console.log("%c INFO","color: #33f",i,...a)}warn(i,...a){this.getLevel()<=D.Warning&&console.log("%c WARN","color: #993",i,...a)}error(i,...a){this.getLevel()<=D.Error&&console.log("%c ERR","color: #f33",i,...a)}critical(i,...a){this.getLevel()<=D.Critical&&console.log("%cCRITI","background: #f33; color: white",i,...a)}dispose(){}flush(){}}e.ConsoleLogger=w;class u extends o{constructor(i,a=e.DEFAULT_LOG_LEVEL){super(),this.adapter=i,this.setLevel(a)}trace(i,...a){this.getLevel()<=D.Trace&&this.adapter.log(D.Trace,[this.extractMessage(i),...a])}debug(i,...a){this.getLevel()<=D.Debug&&this.adapter.log(D.Debug,[this.extractMessage(i),...a])}info(i,...a){this.getLevel()<=D.Info&&this.adapter.log(D.Info,[this.extractMessage(i),...a])}warn(i,...a){this.getLevel()<=D.Warning&&this.adapter.log(D.Warning,[this.extractMessage(i),...a])}error(i,...a){this.getLevel()<=D.Error&&this.adapter.log(D.Error,[this.extractMessage(i),...a])}critical(i,...a){this.getLevel()<=D.Critical&&this.adapter.log(D.Critical,[this.extractMessage(i),...a])}extractMessage(i){return typeof i=="string"?i:(0,f.toErrorMessage)(i,this.getLevel()<=D.Trace)}dispose(){}flush(){}}e.AdapterLogger=u;class E extends o{constructor(i){super(),this.logServices=i,i.length&&this.setLevel(i[0].getLevel())}setLevel(i){for(const a of this.logServices)a.setLevel(i);super.setLevel(i)}trace(i,...a){for(const l of this.logServices)l.trace(i,...a)}debug(i,...a){for(const l of this.logServices)l.debug(i,...a)}info(i,...a){for(const l of this.logServices)l.info(i,...a)}warn(i,...a){for(const l of this.logServices)l.warn(i,...a)}error(i,...a){for(const l of this.logServices)l.error(i,...a)}critical(i,...a){for(const l of this.logServices)l.critical(i,...a)}flush(){for(const i of this.logServices)i.flush()}dispose(){for(const i of this.logServices)i.dispose()}}e.MultiplexLogService=E;class t extends b.Disposable{constructor(i){super(),this.logger=i,this._register(i)}get onDidChangeLogLevel(){return this.logger.onDidChangeLogLevel}setLevel(i){this.logger.setLevel(i)}getLevel(){return this.logger.getLevel()}trace(i,...a){this.logger.trace(i,...a)}debug(i,...a){this.logger.debug(i,...a)}info(i,...a){this.logger.info(i,...a)}warn(i,...a){this.logger.warn(i,...a)}error(i,...a){this.logger.error(i,...a)}critical(i,...a){this.logger.critical(i,...a)}flush(){this.logger.flush()}}e.LogService=t;class n extends b.Disposable{constructor(i,a){super(),this.logLevel=i,this.loggerItems=new P.ResourceMap,this._register(a(l=>this.setLevel(l)))}getLoggers(){return[...this.loggerItems.values()].map(({logger:i})=>i)}getLogger(i){return this.loggerItems.get(i)?.logger}createLogger(i,a,l){let k=this.loggerItems.get(i)?.logger;return k||(l=a?.always?D.Trace:l,k=this.doCreateLogger(i,l??this.logLevel,a),this.loggerItems.set(i,{logger:k,logLevel:l})),k}setLevel(i,a){const l=y.URI.isUri(i)?i:void 0,k=l?a:i;if(l){const B=this.loggerItems.get(l);B&&B.logLevel!==k&&(B.logLevel=k,B.logger.setLevel(k))}else this.logLevel=k,this.loggerItems.forEach(({logLevel:B,logger:G})=>{B===void 0&&G.setLevel(this.logLevel)})}getLogLevel(i){return this.loggerItems.get(i)?.logLevel}dispose(){this.loggerItems.forEach(({logger:i})=>i.dispose()),this.loggerItems.clear(),super.dispose()}}e.AbstractLoggerService=n;class c{constructor(){this.onDidChangeLogLevel=new R.Emitter().event}setLevel(i){}getLevel(){return D.Info}trace(i,...a){}debug(i,...a){}info(i,...a){}warn(i,...a){}error(i,...a){}critical(i,...a){}dispose(){}flush(){}}e.NullLogger=c;class _ extends c{}e.NullLogService=_;class h extends n{constructor(){super(D.Info,R.Event.None)}doCreateLogger(i,a,l){return new c}}e.NullLoggerService=h;function p(m){if(m.verbose)return D.Trace;if(typeof m.logLevel=="string"){const i=L(m.logLevel.toLowerCase());if(i!==void 0)return i}return e.DEFAULT_LOG_LEVEL}e.getLogLevel=p;function L(m){switch(m){case"trace":return D.Trace;case"debug":return D.Debug;case"info":return D.Info;case"warn":return D.Warning;case"error":return D.Error;case"critical":return D.Critical;case"off":return D.Off}}e.parseLogLevel=L;function g(m){switch(m){case D.Trace:return"trace";case D.Debug:return"debug";case D.Info:return"info";case D.Warning:return"warn";case D.Error:return"error";case D.Critical:return"critical";case D.Off:return"off"}}e.LogLevelToString=g}),define(ae[66],le([0,1,7]),function(x,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BufferLogService=void 0;function R(P,S){switch(S){case f.LogLevel.Trace:return P.trace;case f.LogLevel.Debug:return P.debug;case f.LogLevel.Info:return P.info;case f.LogLevel.Warning:return P.warn;case f.LogLevel.Error:return P.error;case f.LogLevel.Critical:return P.critical;default:throw new Error("Invalid log level")}}class b extends f.AbstractLogger{constructor(S=f.DEFAULT_LOG_LEVEL){super(),this.buffer=[],this._logger=void 0,this.setLevel(S),this._register(this.onDidChangeLogLevel(y=>{this._logger?.setLevel(y)}))}set logger(S){this._logger=S;for(const{level:y,args:v}of this.buffer)R(S,y).apply(S,v);this.buffer=[]}_log(S,...y){this._logger?R(this._logger,S).apply(this._logger,y):this.getLevel()<=S&&this.buffer.push({level:S,args:y})}trace(S,...y){this._log(f.LogLevel.Trace,S,...y)}debug(S,...y){this._log(f.LogLevel.Debug,S,...y)}info(S,...y){this._log(f.LogLevel.Info,S,...y)}warn(S,...y){this._log(f.LogLevel.Warning,S,...y)}error(S,...y){this._log(f.LogLevel.Error,S,...y)}critical(S,...y){this._log(f.LogLevel.Critical,S,...y)}dispose(){this._logger?.dispose()}flush(){this._logger?.flush()}}e.BufferLogService=b}),define(ae[67],le([0,1,3,6,7]),function(x,e,f,R,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FollowerLogService=e.LoggerChannelClient=e.LoggerChannel=e.LogLevelChannelClient=e.LogLevelChannel=void 0;class P{constructor(C,o){this.logService=C,this.loggerService=o,this.onDidChangeLogLevel=f.Event.buffer(C.onDidChangeLogLevel,!0)}listen(C,o){switch(o){case"onDidChangeLogLevel":return this.onDidChangeLogLevel}throw new Error(`Event not found: ${o}`)}async call(C,o,s){switch(o){case"setLevel":return s[1]?this.loggerService.setLevel(R.URI.revive(s[1]),s[0]):this.logService.setLevel(s[0])}throw new Error(`Call not found: ${o}`)}}e.LogLevelChannel=P;class S{constructor(C){this.channel=C}get onDidChangeLogLevel(){return this.channel.listen("onDidChangeLogLevel")}setLevel(C,o){S.setLevel(this.channel,C,o)}static setLevel(C,o,s){return C.call("setLevel",[o,s])}}e.LogLevelChannelClient=S;class y{constructor(C){this.loggerService=C,this.loggers=new Map}listen(C,o){throw new Error(`Event not found: ${o}`)}async call(C,o,s){switch(o){case"createLogger":this.createLogger(R.URI.revive(s[0]),s[1]);return;case"log":return this.log(R.URI.revive(s[0]),s[1]);case"consoleLog":return this.consoleLog(s[0],s[1])}throw new Error(`Call not found: ${o}`)}createLogger(C,o){this.loggers.set(C.toString(),this.loggerService.createLogger(C,o))}consoleLog(C,o){let s=console.log;switch(C){case b.LogLevel.Error:s=console.error;break;case b.LogLevel.Warning:s=console.warn;break;case b.LogLevel.Info:s=console.info;break}s.call(console,...o)}log(C,o){const s=this.loggers.get(C.toString());if(!s)throw new Error("Create the logger before logging");for(const[r,w]of o)(0,b.log)(s,r,w)}}e.LoggerChannel=y;class v extends b.AbstractLoggerService{constructor(C,o,s){super(C,o),this.channel=s}createConsoleMainLogger(){return new b.AdapterLogger({log:(C,o)=>{this.channel.call("consoleLog",[C,o])}})}doCreateLogger(C,o,s){return new d(this.channel,C,o,s)}}e.LoggerChannelClient=v;class d extends b.AbstractMessageLogger{constructor(C,o,s,r){super(r?.always),this.channel=C,this.file=o,this.isLoggerCreated=!1,this.buffer=[],this.setLevel(s),this.channel.call("createLogger",[o,r]).then(()=>{this.doLog(this.buffer),this.isLoggerCreated=!0})}log(C,o){const s=[[C,o]];this.isLoggerCreated?this.doLog(s):this.buffer.push(...s)}doLog(C){this.channel.call("log",[this.file,C])}}class D extends b.LogService{constructor(C,o){super(o),this.parent=C,this._register(C.onDidChangeLogLevel(s=>o.setLevel(s)))}setLevel(C){super.setLevel(C),this.parent.setLevel(C)}}e.FollowerLogService=D}),define(ae[68],le([0,1,65,7]),function(x,e,f,R){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SpdLogLogger=void 0;async function b(y,v,d,D,A){try{const C=await new Promise((s,r)=>{x(["spdlog"],s,r)});C.setFlushOn(R.LogLevel.Trace);const o=await C.createAsyncRotatingLogger(y,v,d,D);return A?o.clearFormatters():o.setPattern("%Y-%m-%d %H:%M:%S.%e [%l] %v"),o}catch(C){console.error(C)}return null}function P(y,v,d){switch(v){case R.LogLevel.Trace:y.trace(d);break;case R.LogLevel.Debug:y.debug(d);break;case R.LogLevel.Info:y.info(d);break;case R.LogLevel.Warning:y.warn(d);break;case R.LogLevel.Error:y.error(d);break;case R.LogLevel.Critical:y.critical(d);break;default:throw new Error("Invalid log level")}}class S extends R.AbstractMessageLogger{constructor(v,d,D,A,C){super(),this.buffer=[],this.setLevel(C),this._loggerCreationPromise=this._createSpdLogLogger(v,d,D,A),this._register(this.onDidChangeLogLevel(o=>{this._logger?.setLevel(o)}))}async _createSpdLogLogger(v,d,D,A){const C=D?6:1,o=30/C*f.ByteSize.MB,s=await b(v,d,o,C,A);if(s){this._logger=s,this._logger.setLevel(this.getLevel());for(const{level:r,message:w}of this.buffer)P(this._logger,r,w);this.buffer=[]}}log(v,d){this._logger?P(this._logger,v,d):this.getLevel()<=v&&this.buffer.push({level:v,message:d})}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=S});var Ae=this&&this.__param||function(x,e){return function(f,R){e(f,R,x)}};define(ae[69],le([0,1,41,7,68]),function(x,e,f,R,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LoggerService=void 0;let P=class extends R.AbstractLoggerService{constructor(y){super(y.getLevel(),y.onDidChangeLogLevel)}doCreateLogger(y,v,d){return new b.SpdLogLogger(d?.name||(0,f.generateUuid)(),y.fsPath,!d?.donotRotate,!!d?.donotUseFormatters,v)}};P=fe([Ae(0,R.ILogService)],P),e.LoggerService=P}),define(ae[70],le([0,1,17,2,14,19]),function(x,e,f,R,b,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let S;if(typeof R.globals.vscode<"u"&&typeof R.globals.vscode.context<"u"){const y=R.globals.vscode.context.configuration();if(y)S=y.product;else throw new Error("Sandbox: unable to resolve product configuration from preload script.")}else if(typeof x?.__$__nodeRequire=="function"){const y=(0,P.dirname)(f.FileAccess.asFileUri("",x));if(S=x.__$__nodeRequire((0,P.joinPath)(y,"product.json").fsPath),b.env.VSCODE_DEV&&Object.assign(S,{nameShort:`${S.nameShort} Dev`,nameLong:`${S.nameLong} Dev`,dataFolderName:`${S.dataFolderName}-dev`,serverDataFolderName:S.serverDataFolderName?`${S.serverDataFolderName}-dev`:void 0}),!S.version){const v=x.__$__nodeRequire((0,P.joinPath)(y,"package.json").fsPath);Object.assign(S,{version:v.version})}}else S={},Object.keys(S).length===0&&Object.assign(S,{version:"1.72.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=S}),define(ae[71],le([0,1,21]),function(x,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.productSchemaId=e.IProductService=void 0,e.IProductService=(0,f.createDecorator)("productService"),e.productSchemaId="vscode://schemas/vscode-product"}),define(ae[72],le([0,1,3]),function(x,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BufferMarkCapability=void 0;class R{constructor(P){this._terminal=P,this.type=4,this._idToMarkerMap=new Map,this._anonymousMarkers=[],this._onMarkAdded=new f.Emitter,this.onMarkAdded=this._onMarkAdded.event}*markers(){for(const P of this._idToMarkerMap.values())yield P;for(const P of this._anonymousMarkers)yield P}addMark(P){const S=P?.marker||this._terminal.registerMarker(),y=P?.id;!S||(y?(this._idToMarkerMap.set(y,S),S.onDispose(()=>this._idToMarkerMap.delete(y))):(this._anonymousMarkers.push(S),S.onDispose(()=>this._anonymousMarkers.filter(v=>v!==S))),this._onMarkAdded.fire({marker:S,id:y,hidden:P?.hidden,hoverMessage:P?.hoverMessage}))}getMark(P){return this._idToMarkerMap.get(P)}}e.BufferMarkCapability=R}),define(ae[73],le([0,1,8,15,3,7]),function(x,e,f,R,b,P){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOutputMatchForCommand=e.CommandDetectionCapability=void 0;let S=class{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}get _isInputting(){return!!(this._currentCommand.commandStartMarker&&!this._currentCommand.commandExecutedMarker)}get hasInput(){if(!(!this._isInputting||!this._currentCommand?.commandStartMarker)){if(this._terminal.buffer.active.baseY+this._terminal.buffer.active.cursorY===this._currentCommand.commandStartMarker?.line){const C=this._terminal.buffer.active.getLine(this._terminal.buffer.active.cursorY)?.translateToString(!0,this._currentCommand.commandStartX);return C===void 0?void 0:C.length>0}return!0}}constructor(C,o){this._terminal=C,this._logService=o,this.type=2,this._commands=[],this._currentCommand={},this._isWindowsPty=!1,this._commandMarkers=[],this.__isCommandStorageDisabled=!1,this._onCommandStarted=new b.Emitter,this.onCommandStarted=this._onCommandStarted.event,this._onBeforeCommandFinished=new b.Emitter,this.onBeforeCommandFinished=this._onBeforeCommandFinished.event,this._onCommandFinished=new b.Emitter,this.onCommandFinished=this._onCommandFinished.event,this._onCommandExecuted=new b.Emitter,this.onCommandExecuted=this._onCommandExecuted.event,this._onCommandInvalidated=new b.Emitter,this.onCommandInvalidated=this._onCommandInvalidated.event,this._onCurrentCommandInvalidated=new b.Emitter,this.onCurrentCommandInvalidated=this._onCurrentCommandInvalidated.event,this._dimensions={cols:this._terminal.cols,rows:this._terminal.rows},this._terminal.onResize(s=>this._handleResize(s)),this._terminal.onCursorMove(()=>this._handleCursorMove()),this._setupClearListeners()}_handleResize(C){this._isWindowsPty&&this._preHandleResizeWindows(C),this._dimensions.cols=C.cols,this._dimensions.rows=C.rows}_handleCursorMove(){this._terminal.buffer.active===this._terminal.buffer.normal&&this._currentCommand.commandStartMarker&&this._terminal.buffer.active.baseY+this._terminal.buffer.active.cursorY{this._isWindowsPty&&(C.command.trim().toLowerCase()==="clear"||C.command.trim().toLowerCase()==="cls")&&(this._clearCommandsInViewport(),this._currentCommand.isInvalid=!0,this._onCurrentCommandInvalidated.fire({reason:"windows"}))}),this._terminal.parser.registerCsiHandler({final:"J"},C=>(this._isWindowsPty||C.length>=1&&(C[0]===2||C[0]===3)&&this._clearCommandsInViewport(),!1))}_preHandleResizeWindows(C){const o=this._terminal.buffer.active.baseY,s=C.rows-this._dimensions.rows;s>0&&this._waitForCursorMove().then(()=>{const r=Math.min(s,o);for(let w=this.commands.length-1;w>=0;w--){const u=this.commands[w];if(!u.marker||u.marker.line=0;o--){const s=this._commands[o].marker?.line;if(s&&s0&&this._onCommandInvalidated.fire(this._commands.splice(this._commands.length-C,C))}_waitForCursorMove(){const C=this._terminal.buffer.active.cursorX,o=this._terminal.buffer.active.cursorY;let s=0;return new Promise((r,w)=>{const u=setInterval(()=>{if(C!==this._terminal.buffer.active.cursorX||o!==this._terminal.buffer.active.cursorY){r(),clearInterval(u);return}s+=10,s>1e3&&(clearInterval(u),r())},10)})}setCwd(C){this._cwd=C}setIsWindowsPty(C){this._isWindowsPty=C}setIsCommandStorageDisabled(){this.__isCommandStorageDisabled=!0}getCwdForLine(C){return this._currentCommand.promptStartMarker&&C>=this._currentCommand.promptStartMarker?.line?this._cwd:[...this._commands].reverse().find(s=>s.marker.line<=C-1)?.cwd}handlePromptStart(C){this._currentCommand.promptStartMarker=C?.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(C){if(this._handleCommandStartOptions=C,this._currentCommand.commandStartMarker=C?.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=C?.marker||this._terminal.registerMarker(0),this._currentCommand.commandExecutedMarker?.dispose(),this._currentCommand.commandExecutedMarker=void 0,this._currentCommand.commandExecutedX=void 0;for(const o of this._commandMarkers)o.dispose();this._commandMarkers.length=0,this._onCommandStarted.fire({marker:C?.marker||this._currentCommand.commandStartMarker,markProperties:C?.markProperties}),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,f.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 C=this._terminal.registerMarker(0);C&&this._commandMarkers.push(C)}})),this._currentCommand.commandStartMarker=this._terminal.registerMarker(0),this._currentCommand.commandStartMarker){const C=this._terminal.buffer.active.getLine(this._currentCommand.commandStartMarker.line);C&&(this._currentCommand.commandStartLineContent=C.translateToString(!0))}this._onCommandStarted.fire({marker:this._currentCommand.commandStartMarker}),this._logService.debug("CommandDetectionCapability#_handleCommandStartWindows",this._currentCommand.commandStartX,this._currentCommand.commandStartMarker?.line)})}handleGenericCommand(C){C?.markProperties?.disableCommandStorage&&this.setIsCommandStorageDisabled(),this.handlePromptStart(C),this.handleCommandStart(C),this.handleCommandExecuted(C),this.handleCommandFinished(void 0,C)}handleCommandExecuted(C){if(this._isWindowsPty){this._handleCommandExecutedWindows();return}if(this._currentCommand.commandExecutedMarker=C?.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 o=this._currentCommand.commandStartMarker.line+1;const s=this._currentCommand.commandExecutedMarker.line;for(;oE.marker.line===o);w&&(this._currentCommand.command+=` `);const u=w?.end??0;this._currentCommand.command+=r.translateToString(!0,u)}}o===s&&(this._currentCommand.command+=this._terminal.buffer.active.getLine(s)?.translateToString(!0,void 0,this._currentCommand.commandExecutedX)||""),this._onCommandExecuted.fire()}_handleCommandExecutedWindows(){this._onCursorMoveListener?.dispose(),this._onCursorMoveListener=void 0,this._evaluateCommandMarkersWindows(),this._currentCommand.commandExecutedX=this._terminal.buffer.active.cursorX,this._onCommandExecuted.fire(),this._logService.debug("CommandDetectionCapability#handleCommandExecuted",this._currentCommand.commandExecutedX,this._currentCommand.commandExecutedMarker?.line)}invalidateCurrentCommand(C){this._currentCommand.isInvalid=!0,this._onCurrentCommandInvalidated.fire(C)}handleCommandFinished(C,o){this._isWindowsPty&&this._preHandleCommandFinishedWindows(),this._currentCommand.commandFinishedMarker=o?.marker||this._terminal.registerMarker(0);let s=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=C,this._exitCode===void 0){const r=this.commands.length>0?this.commands[this.commands.length-1]:void 0;s&&s.length>0&&r?.command===s&&(this._exitCode=r.exitCode)}if(!(this._currentCommand.commandStartMarker===void 0||!this._terminal.buffer.active)){if(this._exitCode===void 0&&s===void 0&&(s=""),s!==void 0&&!s.startsWith("\\")||this._handleCommandStartOptions?.ignoreCommandLine){const r=this._terminal.buffer.active,w=Date.now(),u=this._currentCommand.commandExecutedMarker,E=this._currentCommand.commandFinishedMarker,t={command:this._handleCommandStartOptions?.ignoreCommandLine?"":s||"",marker:this._currentCommand.commandStartMarker,endMarker:E,executedMarker:u,timestamp:w,cwd:this._cwd,exitCode:this._exitCode,commandStartLineContent:this._currentCommand.commandStartLineContent,hasOutput:()=>!u?.isDisposed&&!E?.isDisposed&&!!(u&&E&&u?.liney(u,E,r),getOutputMatch:n=>v(u,E,r,this._terminal.cols,n),markProperties:o?.markProperties};this._commands.push(t),this._logService.debug("CommandDetectionCapability#onCommandFinished",t),this._onBeforeCommandFinished.fire(t),this._currentCommand.isInvalid||this._onCommandFinished.fire(t)}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((C,o)=>C.line-o.line),this._currentCommand.commandStartMarker=this._commandMarkers[0],this._currentCommand.commandStartMarker){const C=this._terminal.buffer.active.getLine(this._currentCommand.commandStartMarker.line);C&&(this._currentCommand.commandStartLineContent=C.translateToString(!0))}this._currentCommand.commandExecutedMarker=this._commandMarkers[this._commandMarkers.length-1]}}setCommandLine(C){this._logService.debug("CommandDetectionCapability#setCommandLine",C),this._currentCommand.command=C}serialize(){const C=this.commands.map(o=>({startLine:o.marker?.line,startX:void 0,endLine:o.endMarker?.line,executedLine:o.executedMarker?.line,command:this.__isCommandStorageDisabled?"":o.command,cwd:o.cwd,exitCode:o.exitCode,commandStartLineContent:o.commandStartLineContent,timestamp:o.timestamp,markProperties:o.markProperties}));return this._currentCommand.commandStartMarker&&C.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,markProperties:void 0}),{isWindowsPty:this._isWindowsPty,commands:C}}deserialize(C){C.isWindowsPty&&this.setIsWindowsPty(C.isWindowsPty);const o=this._terminal.buffer.normal;for(const s of C.commands){const r=s.startLine!==void 0?this._terminal.registerMarker(s.startLine-(o.baseY+o.cursorY)):void 0;if(!r)continue;if(!s.endLine){this._currentCommand.commandStartMarker=r,this._currentCommand.commandStartX=s.startX,this._cwd=s.cwd,this._onCommandStarted.fire({marker:r});continue}const w=s.endLine!==void 0?this._terminal.registerMarker(s.endLine-(o.baseY+o.cursorY)):void 0,u=s.executedLine!==void 0?this._terminal.registerMarker(s.executedLine-(o.baseY+o.cursorY)):void 0,E={command:this.__isCommandStorageDisabled?"":s.command,marker:r,endMarker:w,executedMarker:u,timestamp:s.timestamp,cwd:s.cwd,commandStartLineContent:s.commandStartLineContent,exitCode:s.exitCode,hasOutput:()=>!u?.isDisposed&&!w?.isDisposed&&!!(u&&w&&u.liney(u,w,o),getOutputMatch:t=>v(u,w,o,this._terminal.cols,t),markProperties:s.markProperties};this._commands.push(E),this._logService.debug("CommandDetectionCapability#onCommandFinished",E),this._onCommandFinished.fire(E)}}};fe([(0,R.debounce)(500)],S.prototype,"_handleCursorMove",null),S=fe([Ae(1,P.ILogService)],S),e.CommandDetectionCapability=S;function y(A,C,o){if(!A||!C)return;const s=A.line,r=C.line;if(s===r)return;let w="",u;for(let E=s;E=w;c--){let _=c;const h=c;for(;_>=w&&o.getLine(_)?.isWrapped;)_--;c=_,n.unshift(d(o,_,h,s)),n.length>t&&n.pop();const p=n.join(` `).match(E);if(p)return p}else for(let c=w+(r.offset||0);cthis._onData(y)),this._terminal.parser.registerCsiHandler({final:"J"},y=>(y.length>=1&&(y[0]===2||y[0]===3)&&this._clearCommandsInViewport(),!1))}_onData(S){S==="\r"&&this._onEnter()}_onEnter(){if(!!this._terminal&&this._terminal.buffer.active.cursorX>=2){const S=this._terminal.registerMarker(0);S&&(this._commands.push(S),this._onCommandFinished.fire(S))}}_clearCommandsInViewport(){let S=0;for(let y=this._commands.length-1;y>=0&&!(this._commands[y].linethis._onDidAddCapability.fire(v)),y.onDidRemoveCapability(v=>this._onDidRemoveCapability.fire(v))}}e.TerminalCapabilityStoreMultiplexer=P}),define(ae[77],le([0,1,8,16,3,4,7]),function(x,e,f,R,b,P,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.RequestStore=void 0;let y=class extends P.Disposable{constructor(d,D){super(),this._logService=D,this._lastRequestId=0,this._pendingRequests=new Map,this._pendingRequestDisposables=new Map,this._onCreateRequest=this._register(new b.Emitter),this.onCreateRequest=this._onCreateRequest.event,this._timeout=d===void 0?15e3:d}createRequest(d){return new Promise((D,A)=>{const C=++this._lastRequestId;this._pendingRequests.set(C,D),this._onCreateRequest.fire({requestId:C,...d});const o=new R.CancellationTokenSource;(0,f.timeout)(this._timeout,o.token).then(()=>A(`Request ${C} timed out (${this._timeout}ms)`)),this._pendingRequestDisposables.set(C,[(0,P.toDisposable)(()=>o.cancel())])})}acceptReply(d,D){const A=this._pendingRequests.get(d);A?(this._pendingRequests.delete(d),(0,P.dispose)(this._pendingRequestDisposables.get(d)||[]),this._pendingRequestDisposables.delete(d),A(D)):this._logService.warn(`RequestStore#acceptReply was called without receiving a matching request ${d}`)}};y=fe([Ae(1,S.ILogService)],y),e.RequestStore=y}),define(ae[25],le([0,1,21]),function(x,e,f){"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 R;(function(t){t.Shell="terminal.integrated.shell.",t.ShellArgs="terminal.integrated.shellArgs.",t.DefaultProfile="terminal.integrated.defaultProfile.",t.Profiles="terminal.integrated.profiles."})(R=e.TerminalSettingPrefix||(e.TerminalSettingPrefix={}));var b;(function(t){t.ShellLinux="terminal.integrated.shell.linux",t.ShellMacOs="terminal.integrated.shell.osx",t.ShellWindows="terminal.integrated.shell.windows",t.SendKeybindingsToShell="terminal.integrated.sendKeybindingsToShell",t.AutomationShellLinux="terminal.integrated.automationShell.linux",t.AutomationShellMacOs="terminal.integrated.automationShell.osx",t.AutomationShellWindows="terminal.integrated.automationShell.windows",t.AutomationProfileLinux="terminal.integrated.automationProfile.linux",t.AutomationProfileMacOs="terminal.integrated.automationProfile.osx",t.AutomationProfileWindows="terminal.integrated.automationProfile.windows",t.ShellArgsLinux="terminal.integrated.shellArgs.linux",t.ShellArgsMacOs="terminal.integrated.shellArgs.osx",t.ShellArgsWindows="terminal.integrated.shellArgs.windows",t.ProfilesWindows="terminal.integrated.profiles.windows",t.ProfilesMacOs="terminal.integrated.profiles.osx",t.ProfilesLinux="terminal.integrated.profiles.linux",t.DefaultProfileLinux="terminal.integrated.defaultProfile.linux",t.DefaultProfileMacOs="terminal.integrated.defaultProfile.osx",t.DefaultProfileWindows="terminal.integrated.defaultProfile.windows",t.UseWslProfiles="terminal.integrated.useWslProfiles",t.TabsDefaultColor="terminal.integrated.tabs.defaultColor",t.TabsDefaultIcon="terminal.integrated.tabs.defaultIcon",t.TabsEnabled="terminal.integrated.tabs.enabled",t.TabsEnableAnimation="terminal.integrated.tabs.enableAnimation",t.TabsHideCondition="terminal.integrated.tabs.hideCondition",t.TabsShowActiveTerminal="terminal.integrated.tabs.showActiveTerminal",t.TabsShowActions="terminal.integrated.tabs.showActions",t.TabsLocation="terminal.integrated.tabs.location",t.TabsFocusMode="terminal.integrated.tabs.focusMode",t.MacOptionIsMeta="terminal.integrated.macOptionIsMeta",t.MacOptionClickForcesSelection="terminal.integrated.macOptionClickForcesSelection",t.AltClickMovesCursor="terminal.integrated.altClickMovesCursor",t.CopyOnSelection="terminal.integrated.copyOnSelection",t.EnableMultiLinePasteWarning="terminal.integrated.enableMultiLinePasteWarning",t.DrawBoldTextInBrightColors="terminal.integrated.drawBoldTextInBrightColors",t.FontFamily="terminal.integrated.fontFamily",t.FontSize="terminal.integrated.fontSize",t.LetterSpacing="terminal.integrated.letterSpacing",t.LineHeight="terminal.integrated.lineHeight",t.MinimumContrastRatio="terminal.integrated.minimumContrastRatio",t.FastScrollSensitivity="terminal.integrated.fastScrollSensitivity",t.MouseWheelScrollSensitivity="terminal.integrated.mouseWheelScrollSensitivity",t.BellDuration="terminal.integrated.bellDuration",t.FontWeight="terminal.integrated.fontWeight",t.FontWeightBold="terminal.integrated.fontWeightBold",t.CursorBlinking="terminal.integrated.cursorBlinking",t.CursorStyle="terminal.integrated.cursorStyle",t.CursorWidth="terminal.integrated.cursorWidth",t.Scrollback="terminal.integrated.scrollback",t.DetectLocale="terminal.integrated.detectLocale",t.DefaultLocation="terminal.integrated.defaultLocation",t.GpuAcceleration="terminal.integrated.gpuAcceleration",t.TerminalTitleSeparator="terminal.integrated.tabs.separator",t.TerminalTitle="terminal.integrated.tabs.title",t.TerminalDescription="terminal.integrated.tabs.description",t.RightClickBehavior="terminal.integrated.rightClickBehavior",t.Cwd="terminal.integrated.cwd",t.ConfirmOnExit="terminal.integrated.confirmOnExit",t.ConfirmOnKill="terminal.integrated.confirmOnKill",t.EnableBell="terminal.integrated.enableBell",t.CommandsToSkipShell="terminal.integrated.commandsToSkipShell",t.AllowChords="terminal.integrated.allowChords",t.AllowMnemonics="terminal.integrated.allowMnemonics",t.EnvMacOs="terminal.integrated.env.osx",t.EnvLinux="terminal.integrated.env.linux",t.EnvWindows="terminal.integrated.env.windows",t.EnvironmentChangesIndicator="terminal.integrated.environmentChangesIndicator",t.EnvironmentChangesRelaunch="terminal.integrated.environmentChangesRelaunch",t.ShowExitAlert="terminal.integrated.showExitAlert",t.SplitCwd="terminal.integrated.splitCwd",t.WindowsEnableConpty="terminal.integrated.windowsEnableConpty",t.WordSeparators="terminal.integrated.wordSeparators",t.EnableFileLinks="terminal.integrated.enableFileLinks",t.UnicodeVersion="terminal.integrated.unicodeVersion",t.LocalEchoLatencyThreshold="terminal.integrated.localEchoLatencyThreshold",t.LocalEchoEnabled="terminal.integrated.localEchoEnabled",t.LocalEchoExcludePrograms="terminal.integrated.localEchoExcludePrograms",t.LocalEchoStyle="terminal.integrated.localEchoStyle",t.EnablePersistentSessions="terminal.integrated.enablePersistentSessions",t.PersistentSessionReviveProcess="terminal.integrated.persistentSessionReviveProcess",t.CustomGlyphs="terminal.integrated.customGlyphs",t.PersistentSessionScrollback="terminal.integrated.persistentSessionScrollback",t.InheritEnv="terminal.integrated.inheritEnv",t.ShowLinkHover="terminal.integrated.showLinkHover",t.IgnoreProcessNames="terminal.integrated.ignoreProcessNames",t.AutoReplies="terminal.integrated.autoReplies",t.ShellIntegrationEnabled="terminal.integrated.shellIntegration.enabled",t.ShellIntegrationShowWelcome="terminal.integrated.shellIntegration.showWelcome",t.ShellIntegrationDecorationsEnabled="terminal.integrated.shellIntegration.decorationsEnabled",t.ShellIntegrationCommandHistory="terminal.integrated.shellIntegration.history",t.SmoothScrolling="terminal.integrated.smoothScrolling"})(b=e.TerminalSettingId||(e.TerminalSettingId={}));var P;(function(t){t.FileName="ptyhost"})(P=e.TerminalLogConstants||(e.TerminalLogConstants={}));var S;(function(t){t.PowerShell="pwsh",t.Bash="bash",t.Fish="fish",t.Sh="sh",t.Csh="csh",t.Ksh="ksh",t.Zsh="zsh"})(S=e.PosixShellType||(e.PosixShellType={}));var y;(function(t){t.CommandPrompt="cmd",t.PowerShell="pwsh",t.Wsl="wsl",t.GitBash="gitbash"})(y=e.WindowsShellType||(e.WindowsShellType={}));var v;(function(t){t[t.Api=0]="Api",t[t.Process=1]="Process",t[t.Sequence=2]="Sequence",t[t.Config=3]="Config"})(v=e.TitleEventSource||(e.TitleEventSource={}));var d;(function(t){t.LocalPty="localPty",t.PtyHost="ptyHost",t.Log="log",t.Heartbeat="heartbeat"})(d=e.TerminalIpcChannels||(e.TerminalIpcChannels={})),e.IPtyService=(0,f.createDecorator)("ptyService");var D;(function(t){t.Cwd="cwd",t.InitialCwd="initialCwd",t.FixedDimensions="fixedDimensions",t.Title="title",t.ShellType="shellType",t.HasChildProcesses="hasChildProcesses",t.ResolvedShellLaunchConfig="resolvedShellLaunchConfig",t.OverrideDimensions="overrideDimensions",t.FailedShellIntegrationActivation="failedShellIntegrationActivation",t.UsedShellIntegrationInjection="usedShellIntegrationInjection"})(D=e.ProcessPropertyType||(e.ProcessPropertyType={}));var A;(function(t){t[t.BeatInterval=5e3]="BeatInterval",t[t.FirstWaitMultiplier=1.2]="FirstWaitMultiplier",t[t.SecondWaitMultiplier=1]="SecondWaitMultiplier",t[t.CreateProcessTimeout=5e3]="CreateProcessTimeout"})(A=e.HeartbeatConstants||(e.HeartbeatConstants={}));var C;(function(t){t[t.Panel=1]="Panel",t[t.Editor=2]="Editor"})(C=e.TerminalLocation||(e.TerminalLocation={}));var o;(function(t){t.TerminalView="view",t.Editor="editor"})(o=e.TerminalLocationString||(e.TerminalLocationString={}));var s;(function(t){t[t.GraceTime=6e4]="GraceTime",t[t.ShortGraceTime=6e3]="ShortGraceTime"})(s=e.LocalReconnectConstants||(e.LocalReconnectConstants={}));var r;(function(t){t[t.HighWatermarkChars=1e5]="HighWatermarkChars",t[t.LowWatermarkChars=5e3]="LowWatermarkChars",t[t.CharCountAckSize=5e3]="CharCountAckSize"})(r=e.FlowControlConstants||(e.FlowControlConstants={}));var w;(function(t){t.GitBash="Git Bash",t.Pwsh="PowerShell"})(w=e.ProfileSource||(e.ProfileSource={}));var u;(function(t){t[t.Off=0]="Off",t[t.FinalTerm=1]="FinalTerm",t[t.VSCode=2]="VSCode"})(u=e.ShellIntegrationStatus||(e.ShellIntegrationStatus={}));var E;(function(t){t[t.Unknown=0]="Unknown",t[t.Shutdown=1]="Shutdown",t[t.Process=2]="Process",t[t.User=3]="User",t[t.Extension=4]="Extension"})(E=e.TerminalExitReason||(e.TerminalExitReason={}))}),define(ae[78],le([0,1,8,4,2]),function(x,e,f,R,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalAutoResponder=void 0;class P extends R.Disposable{constructor(y,v,d,D){super(),this._pointer=0,this._paused=!1,this._throttled=!1,this._register(y.onProcessData(A=>{if(this._paused||this._throttled)return;const C=typeof A=="string"?A:A.data;for(let o=0;othis._throttled=!1),this._reset())}))}_reset(){this._pointer=0}handleResize(){b.isWindows&&(this._paused=!0)}handleInput(){this._paused=!1}}e.TerminalAutoResponder=P}),define(ae[79],le([0,1]),function(x,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalDataBufferer=void 0;class f{constructor(b){this._callback=b,this._terminalBufferMap=new Map}dispose(){for(const b of this._terminalBufferMap.values())b.dispose()}startBuffering(b,P,S=5){const y=P(v=>{const d=typeof v=="string"?v:v.data;let D=this._terminalBufferMap.get(b);if(D){D.data.push(d);return}const A=setTimeout(()=>this.flushBuffer(b),S);D={data:[d],timeoutId:A,dispose:()=>{clearTimeout(A),this.flushBuffer(b),y.dispose()}},this._terminalBufferMap.set(b,D)});return y}stopBuffering(b){this._terminalBufferMap.get(b)?.dispose()}flushBuffer(b){const P=this._terminalBufferMap.get(b);P&&(this._terminalBufferMap.delete(b),this._callback(b,P.data.join("")))}}e.TerminalDataBufferer=f}),define(ae[33],le([0,1,2]),function(x,e,f){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeCwd=e.collapseTildePath=e.escapeNonWindowsPath=void 0;function R(S){let y=S;y.indexOf("\\")!==0&&(y=y.replace(/\\/g,"\\\\"));const v=/[\`\$\|\&\>\~\#\!\^\*\;\<\"\']/g;return y=y.replace(v,""),`'${y}'`}e.escapeNonWindowsPath=R;function b(S,y,v){if(!S)return"";if(!y)return S;y.match(/[\/\\]$/)&&(y=y.slice(0,y.length-1));const d=S.replace(/\\/g,"/").toLowerCase(),D=y.replace(/\\/g,"/").toLowerCase();return d.includes(D)?`~${v}${S.slice(y.length+1)}`:S}e.collapseTildePath=b;function P(S){return S.match(/^['"].*['"]$/)&&(S=S.substring(1,S.length-1)),f.OS===1&&S&&S[1]===":"?S[0].toUpperCase()+S.substring(1):S}e.sanitizeCwd=P}),define(ae[80],le([0,1]),function(x,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.formatMessageForTerminal=void 0;function f(R,b={}){let P="";return b.excludeLeadingNewLine||(P+=`\r `),P+="\x1B[0m\x1B[7m * ",b.loudFormatting?P+="\x1B[0;104m":P+="\x1B[0m",P+=` ${R} \x1B[0m \r`,P}e.formatMessageForTerminal=f}),define(ae[81],le([0,1,4,76,73,74,75,7,3,72,6,33]),function(x,e,f,R,b,P,S,y,v,d,D,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseMarkSequence=e.parseKeyValueAssignment=e.deserializeMessage=e.ShellIntegrationAddon=void 0;var C;(function(t){t[t.FinalTerm=133]="FinalTerm",t[t.VSCode=633]="VSCode",t[t.ITerm=1337]="ITerm",t[t.SetCwd=7]="SetCwd",t[t.SetWindowsFriendlyCwd=9]="SetWindowsFriendlyCwd"})(C||(C={}));var o;(function(t){t.PromptStart="A",t.CommandStart="B",t.CommandExecuted="C",t.CommandFinished="D",t.CommandLine="E",t.ContinuationStart="F",t.ContinuationEnd="G",t.RightPromptStart="H",t.RightPromptEnd="I",t.Property="P",t.SetMark="SetMark"})(o||(o={}));var s;(function(t){t.SetMark="SetMark",t.CurrentDir="CurrentDir"})(s||(s={}));let r=class extends f.Disposable{get status(){return this._status}constructor(n,c,_){super(),this._disableTelemetry=n,this._telemetryService=c,this._logService=_,this.capabilities=new R.TerminalCapabilityStore,this._hasUpdatedTelemetry=!1,this._commonProtocolDisposables=[],this._status=0,this._onDidChangeStatus=new v.Emitter,this.onDidChangeStatus=this._onDidChangeStatus.event,this._register((0,f.toDisposable)(()=>{this._clearActivationTimeout(),this._disposeCommonProtocol()}))}_disposeCommonProtocol(){(0,f.dispose)(this._commonProtocolDisposables),this._commonProtocolDisposables.length=0}activate(n){this._terminal=n,this.capabilities.add(3,new S.PartialCommandDetectionCapability(this._terminal)),this._register(n.parser.registerOscHandler(633,c=>this._handleVSCodeSequence(c))),this._register(n.parser.registerOscHandler(1337,c=>this._doHandleITermSequence(c))),this._commonProtocolDisposables.push(n.parser.registerOscHandler(133,c=>this._handleFinalTermSequence(c))),this._register(n.parser.registerOscHandler(7,c=>this._doHandleSetCwd(c))),this._register(n.parser.registerOscHandler(9,c=>this._doHandleSetWindowsFriendlyCwd(c))),this._ensureCapabilitiesOrAddFailureTelemetry()}_handleFinalTermSequence(n){const c=this._doHandleFinalTermSequence(n);return this._status===0&&(this._status=1,this._onDidChangeStatus.fire(this._status)),c}_doHandleFinalTermSequence(n){if(!this._terminal)return!1;const[c,..._]=n.split(";");switch(c){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 h=_.length===1?parseInt(_[0]):void 0;return this._createOrGetCommandDetection(this._terminal).handleCommandFinished(h),!0}}return!1}_handleVSCodeSequence(n){const c=this._doHandleVSCodeSequence(n);return!this._hasUpdatedTelemetry&&c&&(this._telemetryService?.publicLog2("terminal/shellIntegrationActivationSucceeded"),this._hasUpdatedTelemetry=!0,this._clearActivationTimeout()),this._status!==2&&(this._status=2,this._onDidChangeStatus.fire(this._status)),c}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(n){if(!this._terminal)return!1;const[c,..._]=n.split(";");switch(c){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 h=_.length===1?parseInt(_[0]):void 0;return this._createOrGetCommandDetection(this._terminal).handleCommandFinished(h),!0}case"E":{let h;return _.length===1?h=w(_[0]):h="",this._createOrGetCommandDetection(this._terminal).setCommandLine(h),!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{key:h,value:p}=u(_[0]);if(p===void 0)return!0;switch(h){case"Cwd":return this._updateCwd(p),!0;case"IsWindows":return this._createOrGetCommandDetection(this._terminal).setIsWindowsPty(p==="True"),!0;case"Task":return this._createOrGetBufferMarkDetection(this._terminal),this.capabilities.get(2)?.setIsCommandStorageDisabled(),!0}}case"SetMark":return this._createOrGetBufferMarkDetection(this._terminal).addMark(E(_)),!0}return!1}_updateCwd(n){n=(0,A.sanitizeCwd)(n),this._createOrGetCwdDetection().updateCwd(n),this.capabilities.get(2)?.setCwd(n)}_doHandleITermSequence(n){if(!this._terminal)return!1;const[c]=n.split(";");switch(c){case"SetMark":this._createOrGetBufferMarkDetection(this._terminal).addMark();default:{const{key:_,value:h}=u(c);if(h===void 0)return!0;switch(_){case"CurrentDir":return this._updateCwd(h),!0}}}return!1}_doHandleSetWindowsFriendlyCwd(n){if(!this._terminal)return!1;const[c,..._]=n.split(";");switch(c){case"9":return _.length&&this._updateCwd(_[0]),!0}return!1}_doHandleSetCwd(n){if(!this._terminal)return!1;const[c]=n.split(";");if(c.match(/^file:\/\/.*\//)){const _=D.URI.parse(c);if(_.path&&_.path.length>0)return this._updateCwd(_.path),!0}return!1}serialize(){return!this._terminal||!this.capabilities.has(2)?{isWindowsPty:!1,commands:[]}:this._createOrGetCommandDetection(this._terminal).serialize()}deserialize(n){if(!this._terminal)throw new Error("Cannot restore commands before addon is activated");this._createOrGetCommandDetection(this._terminal).deserialize(n)}_createOrGetCwdDetection(){let n=this.capabilities.get(0);return n||(n=new P.CwdDetectionCapability,this.capabilities.add(0,n)),n}_createOrGetCommandDetection(n){let c=this.capabilities.get(2);return c||(c=new b.CommandDetectionCapability(n,this._logService),this.capabilities.add(2,c)),c}_createOrGetBufferMarkDetection(n){let c=this.capabilities.get(4);return c||(c=new d.BufferMarkCapability(n),this.capabilities.add(4,c)),c}};r=fe([Ae(2,y.ILogService)],r),e.ShellIntegrationAddon=r;function w(t){let n=t.replace(/\\\\/g,"\\");const c=/\\x([0-9a-f]{2})/i;for(;;){const _=n.match(c);if(!_?.index||_.length<2)break;n=n.slice(0,_.index)+String.fromCharCode(parseInt(_[1],16))+n.slice(_.index+4)}return n}e.deserializeMessage=w;function u(t){const n=w(t),c=n.indexOf("=");return c===-1?{key:n,value:void 0}:{key:n.substring(0,c),value:n.substring(1+c)}}e.parseKeyValueAssignment=u;function E(t){let n,c=!1;for(const _ of t)_==="Hidden"&&(c=!0),_.startsWith("Id=")&&(n=_.substring(3));return{id:n,hidden:c}}e.parseMarkSequence=E}),define(ae[34],le([0,1,5,15,3,4,54,7]),function(x,e,f,R,b,P,S,y){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ChildProcessMonitor=e.ignoreProcessNames=void 0;var v;(function(D){D[D.InactiveThrottleDuration=5e3]="InactiveThrottleDuration",D[D.ActiveDebounceDuration=1e3]="ActiveDebounceDuration"})(v||(v={})),e.ignoreProcessNames=[];let d=class extends P.Disposable{set hasChildProcesses(A){this._hasChildProcesses!==A&&(this._hasChildProcesses=A,this._logService.debug("ChildProcessMonitor: Has child processes changed",A),this._onDidChangeHasChildProcesses.fire(A))}get hasChildProcesses(){return this._hasChildProcesses}constructor(A,C){super(),this._pid=A,this._logService=C,this._isDisposed=!1,this._hasChildProcesses=!1,this._onDidChangeHasChildProcesses=this._register(new b.Emitter),this.onDidChangeHasChildProcesses=this._onDidChangeHasChildProcesses.event}dispose(){this._isDisposed=!0,super.dispose()}handleInput(){this._refreshActive()}handleOutput(){this._refreshInactive()}async _refreshActive(){if(!this._isDisposed)try{const A=await(0,S.listProcesses)(this._pid);this.hasChildProcesses=this._processContainsChildren(A)}catch(A){this._logService.debug("ChildProcessMonitor: Fetching process tree failed",A)}}_refreshInactive(){this._refreshActive()}_processContainsChildren(A){if(!A.children)return!1;if(A.children.length===1){const C=A.children[0];let o;if(C.cmd.startsWith('"'))o=C.cmd.substring(1,C.cmd.indexOf('"',1));else{const s=C.cmd.indexOf(" ");s===-1?o=C.cmd:o=C.cmd.substring(0,s)}return e.ignoreProcessNames.indexOf((0,f.parse)(o).name)===-1}return A.children.length>0}};fe([(0,R.debounce)(1e3)],d.prototype,"_refreshActive",null),fe([(0,R.throttle)(5e3)],d.prototype,"_refreshInactive",null),d=fe([Ae(1,y.ILogService)],d),e.ChildProcessMonitor=d}),define(ae[82],le([0,1,3,4,25]),function(x,e,f,R,b){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HeartbeatService=void 0;class P extends R.Disposable{constructor(){super(),this._onBeat=this._register(new f.Emitter),this.onBeat=this._onBeat.event;const y=setInterval(()=>{this._onBeat.fire()},b.HeartbeatConstants.BeatInterval);this._register((0,R.toDisposable)(()=>clearInterval(y)))}}e.HeartbeatService=P}),define(ae[35],le([0,1,18,17,28,5,2,14,11,10,20]),function(x,e,f,R,b,P,S,y,v,d,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.shellIntegrationArgs=e.ShellIntegrationExecutable=e.getShellIntegrationInjection=e.findExecutable=e.getWindowsBuildNumber=void 0;function A(){const n=/(\d+)\.(\d+)\.(\d+)/g.exec(f.release());let c=0;return n&&n.length===4&&(c=parseInt(n[3])),c}e.getWindowsBuildNumber=A;async function C(n,c,_,h=y.env,p=D.Promises.exists){if(P.isAbsolute(n))return await p(n)?n:void 0;if(c===void 0&&(c=y.cwd()),P.dirname(n)!=="."){const i=P.join(c,n);return await p(i)?i:void 0}const g=(0,b.getCaseInsensitive)(h,"PATH");if(_===void 0&&(0,d.isString)(g)&&(_=g.split(P.delimiter)),_===void 0||_.length===0){const i=P.join(c,n);return await p(i)?i:void 0}for(const i of _){let a;if(P.isAbsolute(i)?a=P.join(i,n):a=P.join(c,i,n),await p(a))return a;if(S.isWindows){let l=a+".com";if(await p(l)||(l=a+".exe",await p(l)))return l}}const m=P.join(c,n);return await p(m)?m:void 0}e.findExecutable=C;function o(n,c,_,h,p){if(!c.shellIntegration.enabled||!n.executable||n.isFeatureTerminal||n.hideFromUser||n.ignoreShellIntegration||S.isWindows&&!c.windowsEnableConpty)return;const L=n.args,g=y.platform==="win32"?P.basename(n.executable).toLowerCase():P.basename(n.executable),m=P.dirname(R.FileAccess.asFileUri("",x).fsPath);let i;const a={VSCODE_INJECTION:"1"};if(S.isWindows){if(g==="pwsh.exe")return!L||E(L)?i=e.shellIntegrationArgs.get(s.WindowsPwsh):u(L)&&(i=e.shellIntegrationArgs.get(s.WindowsPwshLogin)),i?(i=[...i],i[i.length-1]=(0,v.format)(i[i.length-1],m,""),{newArgs:i,envMixin:a}):void 0;h.warn(`Shell integration cannot be enabled for executable "${n.executable}" and args`,n.args);return}switch(g){case"bash":return!L||L.length===0?i=e.shellIntegrationArgs.get(s.Bash):t(L)&&(a.VSCODE_SHELL_LOGIN="1",i=e.shellIntegrationArgs.get(s.Bash)),i?(i=[...i],i[i.length-1]=(0,v.format)(i[i.length-1],m),{newArgs:i,envMixin:a}):void 0;case"pwsh":return!L||E(L)?i=e.shellIntegrationArgs.get(s.Pwsh):u(L)&&(i=e.shellIntegrationArgs.get(s.PwshLogin)),i?(i=[...i],i[i.length-1]=(0,v.format)(i[i.length-1],m,""),{newArgs:i,envMixin:a}):void 0;case"zsh":{if(!L||L.length===0?i=e.shellIntegrationArgs.get(s.Zsh):t(L)?i=e.shellIntegrationArgs.get(s.ZshLogin):(L===e.shellIntegrationArgs.get(s.Zsh)||L===e.shellIntegrationArgs.get(s.ZshLogin))&&(i=L),!i)return;i=[...i],i[i.length-1]=(0,v.format)(i[i.length-1],m);const l=P.join(f.tmpdir(),`${f.userInfo().username}-${p.applicationName}-zsh`);a.ZDOTDIR=l;const k=_?.ZDOTDIR??f.homedir()??"~";a.USER_ZDOTDIR=k;const B=[];return B.push({source:P.join(m,"out/vs/workbench/contrib/terminal/browser/media/shellIntegration-rc.zsh"),dest:P.join(l,".zshrc")}),B.push({source:P.join(m,"out/vs/workbench/contrib/terminal/browser/media/shellIntegration-profile.zsh"),dest:P.join(l,".zprofile")}),B.push({source:P.join(m,"out/vs/workbench/contrib/terminal/browser/media/shellIntegration-env.zsh"),dest:P.join(l,".zshenv")}),B.push({source:P.join(m,"out/vs/workbench/contrib/terminal/browser/media/shellIntegration-login.zsh"),dest:P.join(l,".zlogin")}),{newArgs:i,envMixin:a,filesToCopy:B}}}h.warn(`Shell integration cannot be enabled for executable "${n.executable}" and args`,n.args)}e.getShellIntegrationInjection=o;var s;(function(n){n.WindowsPwsh="windows-pwsh",n.WindowsPwshLogin="windows-pwsh-login",n.Pwsh="pwsh",n.PwshLogin="pwsh-login",n.Zsh="zsh",n.ZshLogin="zsh-login",n.Bash="bash"})(s=e.ShellIntegrationExecutable||(e.ShellIntegrationExecutable={})),e.shellIntegrationArgs=new Map,e.shellIntegrationArgs.set(s.WindowsPwsh,["-noexit","-command",'try { . "{0}\\out\\vs\\workbench\\contrib\\terminal\\browser\\media\\shellIntegration.ps1" } catch {}{1}']),e.shellIntegrationArgs.set(s.WindowsPwshLogin,["-l","-noexit","-command",'try { . "{0}\\out\\vs\\workbench\\contrib\\terminal\\browser\\media\\shellIntegration.ps1" } catch {}{1}']),e.shellIntegrationArgs.set(s.Pwsh,["-noexit","-command",'. "{0}/out/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1"{1}']),e.shellIntegrationArgs.set(s.PwshLogin,["-l","-noexit","-command",'. "{0}/out/vs/workbench/contrib/terminal/browser/media/shellIntegration.ps1"']),e.shellIntegrationArgs.set(s.Zsh,["-i"]),e.shellIntegrationArgs.set(s.ZshLogin,["-il"]),e.shellIntegrationArgs.set(s.Bash,["--init-file","{0}/out/vs/workbench/contrib/terminal/browser/media/shellIntegration-bash.sh"]);const r=["-login","-l"],w=["-nol","-nologo"];function u(n){return typeof n=="string"?r.includes(n.toLowerCase()):n.length===1&&r.includes(n[0].toLowerCase())||n.length===2&&(r.includes(n[0].toLowerCase())||r.includes(n[1].toLowerCase()))&&(w.includes(n[0].toLowerCase())||w.includes(n[1].toLowerCase()))}function E(n){return typeof n=="string"?w.includes(n.toLowerCase()):n.length===0||n?.length===1&&w.includes(n[0].toLowerCase())}function t(n){return n==="string"&&r.includes(n.toLowerCase())||typeof n!="string"&&n.length===1&&r.includes(n[0].toLowerCase())}}),define(ae[83],le([0,1,8,15,3,4,2]),function(x,e,f,R,b,P,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.WindowsShellHelper=void 0;const y=["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 v;class d extends P.Disposable{get shellType(){return this._shellType}get shellTitle(){return this._shellTitle}get onShellNameChanged(){return this._onShellNameChanged.event}get onShellTypeChanged(){return this._onShellTypeChanged.event}constructor(A){if(super(),this._rootProcessId=A,this._shellTitle="",this._onShellNameChanged=new b.Emitter,this._onShellTypeChanged=new b.Emitter,!S.isWindows)throw new Error(`WindowsShellHelper cannot be instantiated on ${S.platform}`);this._isDisposed=!1,this._startMonitoringShell()}async _startMonitoringShell(){this._isDisposed||this.checkShell()}async checkShell(){S.isWindows&&(await(0,f.timeout)(300),this.getShellName().then(A=>{const C=this.getShellType(A);C!==this._shellType&&(this._onShellTypeChanged.fire(C),this._onShellNameChanged.fire(A),this._shellType=C,this._shellTitle=A)}))}traverseTree(A){if(!A)return"";if(y.indexOf(A.name)===-1||!A.children||A.children.length===0)return A.name;let C=0;for(;C=A.children.length?A.name:this.traverseTree(A.children[C])}dispose(){this._isDisposed=!0,super.dispose()}async getShellName(){return this._isDisposed?Promise.resolve(""):this._currentRequest?this._currentRequest:(v||(v=await new Promise((A,C)=>{x(["windows-process-tree"],A,C)})),this._currentRequest=new Promise(A=>{v.getProcessTree(this._rootProcessId,C=>{const o=this.traverseTree(C);this._currentRequest=void 0,A(o)})}),this._currentRequest)}getShellType(A){switch(A.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,R.debounce)(500)],d.prototype,"checkShell",null),e.WindowsShellHelper=d}),define(ae[84],le([0,1,24,52,8,3,4,5,2,6,20,60,7,71,34,35,83]),function(x,e,f,R,b,P,S,y,v,d,D,A,C,o,s,r,w){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TerminalProcess=void 0;var u;(function(_){_[_.DataFlushTimeout=250]="DataFlushTimeout",_[_.MaximumShutdownTime=5e3]="MaximumShutdownTime"})(u||(u={}));var E;(function(_){_[_.KillSpawnThrottleInterval=250]="KillSpawnThrottleInterval",_[_.KillSpawnSpacingDuration=50]="KillSpawnSpacingDuration",_[_.WriteMaxChunkSize=50]="WriteMaxChunkSize",_[_.WriteInterval=5]="WriteInterval"})(E||(E={}));const t=new Map([["bash","bash"],["csh","csh"],["fish","fish"],["ksh","ksh"],["sh","sh"],["pwsh","pwsh"],["zsh","zsh"]]);let n=class Oe extends S.Disposable{get exitMessage(){return this._exitMessage}get currentTitle(){return this._windowsShellHelper?.shellTitle||this._currentTitle}get shellType(){return v.isWindows?this._windowsShellHelper?.shellType:t.get(this._currentTitle)}constructor(h,p,L,g,m,i,a,l,k){super(),this.shellLaunchConfig=h,this._executableEnv=i,this._options=a,this._logService=l,this._productService=k,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 P.Emitter),this.onProcessData=this._onProcessData.event,this._onProcessReady=this._register(new P.Emitter),this.onProcessReady=this._onProcessReady.event,this._onDidChangeProperty=this._register(new P.Emitter),this.onDidChangeProperty=this._onDidChangeProperty.event,this._onProcessExit=this._register(new P.Emitter),this.onProcessExit=this._onProcessExit.event;let B;v.isWindows?B=y.basename(this.shellLaunchConfig.executable||""):B="xterm-256color",this._initialCwd=p,this._properties.initialCwd=this._initialCwd,this._properties.cwd=this._initialCwd;const G=this._options.windowsEnableConpty&&process.platform==="win32"&&(0,r.getWindowsBuildNumber)()>=18309;this._ptyOptions={name:B,cwd:p,env:m,cols:L,rows:g,useConpty:G,conptyInheritCursor:G&&!!h.initialText},v.isWindows&&(G&&L===0&&g===0&&this.shellLaunchConfig.executable?.endsWith("Git\\bin\\bash.exe")&&(this._delayedResizer=new c,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 w.WindowsShellHelper(ne.pid)),this._register(this._windowsShellHelper.onShellTypeChanged(ce=>this._onDidChangeProperty.fire({type:"shellType",value:ce}))),this._register(this._windowsShellHelper.onShellNameChanged(ce=>this._onDidChangeProperty.fire({type:"title",value:ce})))}))}async start(){const p=(await Promise.all([this._validateCwd(),this._validateExecutable()])).find(g=>g!==void 0);if(p)return p;let L;if(this._options.shellIntegration.enabled)if(L=(0,r.getShellIntegrationInjection)(this.shellLaunchConfig,{shellIntegration:this._options.shellIntegration,windowsEnableConpty:this._options.windowsEnableConpty},this._ptyOptions.env,this._logService,this._productService),L){if(this._onDidChangeProperty.fire({type:"usedShellIntegrationInjection",value:!0}),L.envMixin)for(const[g,m]of Object.entries(L.envMixin))this._ptyOptions.env||={},this._ptyOptions.env[g]=m;if(L.filesToCopy)for(const g of L.filesToCopy){await R.promises.mkdir(y.dirname(g.dest),{recursive:!0});try{await R.promises.copyFile(g.source,g.dest)}catch{}}}else this._onDidChangeProperty.fire({type:"failedShellIntegrationActivation",value:!0});try{await this.setupPtyProcess(this.shellLaunchConfig,this._ptyOptions,L);return}catch(g){return this._logService.trace("IPty#spawn native exception",g),{message:`A native exception occurred during launch (${g.message})`}}}async _validateCwd(){try{if(!(await D.Promises.stat(this._initialCwd)).isDirectory())return{message:(0,A.localize)(0,null,this._initialCwd.toString())}}catch(h){if(h?.code==="ENOENT")return{message:(0,A.localize)(1,null,this._initialCwd.toString())}}this._onDidChangeProperty.fire({type:"initialCwd",value:this._initialCwd})}async _validateExecutable(){const h=this.shellLaunchConfig;if(!h.executable)throw new Error("IShellLaunchConfig.executable not set");const p=h.cwd instanceof d.URI?h.cwd.path:h.cwd,L=h.env&&h.env.PATH?h.env.PATH.split(y.delimiter):void 0,g=await(0,r.findExecutable)(h.executable,p,L,this._executableEnv);if(!g)return{message:(0,A.localize)(2,null,h.executable)};try{const m=await D.Promises.stat(g);if(!m.isFile()&&!m.isSymbolicLink())return{message:(0,A.localize)(3,null,h.executable)};h.executable=g}catch(m){if(m?.code!=="EACCES")throw m}}async setupPtyProcess(h,p,L){const g=L?.newArgs||h.args||[];await this._throttleKillSpawn(),this._logService.trace("IPty#spawn",h.executable,g,p);const m=(await new Promise((i,a)=>{x(["node-pty"],i,a)})).spawn(h.executable,g,p);this._ptyProcess=m,this._childProcessMonitor=this._register(new s.ChildProcessMonitor(m.pid,this._logService)),this._childProcessMonitor.onDidChangeHasChildProcesses(i=>this._onDidChangeProperty.fire({type:"hasChildProcesses",value:i})),this._processStartupComplete=new Promise(i=>{this.onProcessReady(()=>i())}),m.onData(i=>{this._unacknowledgedCharCount+=i.length,!this._isPtyPaused&&this._unacknowledgedCharCount>1e5&&(this._logService.trace(`Flow control: Pause (${this._unacknowledgedCharCount} > ${1e5})`),this._isPtyPaused=!0,m.pause()),this._logService.trace("IPty#onData",i),this._onProcessData.fire(i),this._closeTimeout&&this._queueProcessExit(),this._windowsShellHelper?.checkShell(),this._childProcessMonitor?.handleOutput()}),m.onExit(i=>{this._exitCode=i.exitCode,this._queueProcessExit()}),this._sendProcessId(m.pid),this._setupTitlePolling(m)}dispose(){this._isDisposed=!0,this._titleInterval&&clearInterval(this._titleInterval),this._titleInterval=null,super.dispose()}_setupTitlePolling(h){setTimeout(()=>this._sendProcessTitle(h)),v.isWindows||(this._titleInterval=setInterval(()=>{this._currentTitle!==h.process&&this._sendProcessTitle(h)},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(!(!v.isWindows||!("useConpty"in this._ptyOptions)||!this._ptyOptions.useConpty)){for(;Date.now()-Oe._lastKillOrStart<250;)this._logService.trace("Throttling kill/spawn call"),await(0,b.timeout)(250-(Date.now()-Oe._lastKillOrStart)+50);Oe._lastKillOrStart=Date.now()}}_sendProcessId(h){this._onProcessReady.fire({pid:h,cwd:this._initialCwd,requiresWindowsMode:v.isWindows&&(0,r.getWindowsBuildNumber)()<21376})}_sendProcessTitle(h){if(this._isDisposed)return;this._currentTitle=h.process,this._onDidChangeProperty.fire({type:"title",value:this._currentTitle});const p=this.currentTitle.replace(/ \(figterm\)$/g,"");this._onDidChangeProperty.fire({type:"shellType",value:t.get(p)})}shutdown(h){h&&!v.isWindows?this._kill():!this._closeTimeout&&!this._isDisposed&&(this._queueProcessExit(),setTimeout(()=>{this._closeTimeout&&!this._isDisposed&&(this._closeTimeout=void 0,this._kill())},5e3))}input(h,p){if(!(this._isDisposed||!this._ptyProcess)){for(let L=0;L<=Math.floor(h.length/50);L++){const g={isBinary:p||!1,data:h.substr(L*50,50)};this._writeQueue.push(g)}this._startWrite()}}async processBinary(h){this.input(h,!0)}async refreshProperty(h){switch(h){case"cwd":{const p=await this.getCwd();return p!==this._properties.cwd&&(this._properties.cwd=p,this._onDidChangeProperty.fire({type:"cwd",value:this._properties.cwd})),p}case"initialCwd":{const p=await this.getInitialCwd();return p!==this._properties.initialCwd&&(this._properties.initialCwd=p,this._onDidChangeProperty.fire({type:"initialCwd",value:this._properties.initialCwd})),p}case"title":return this.currentTitle;default:return this.shellType}}async updateProperty(h,p){h==="fixedDimensions"&&(this._properties.fixedDimensions=p)}_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 h=this._writeQueue.shift();this._logService.trace("IPty#write",h.data),h.isBinary?this._ptyProcess.write(Buffer.from(h.data,"binary")):this._ptyProcess.write(h.data),this._childProcessMonitor?.handleInput()}resize(h,p){if(!this._isDisposed&&!(typeof h!="number"||typeof p!="number"||isNaN(h)||isNaN(p))&&this._ptyProcess){if(h=Math.max(h,1),p=Math.max(p,1),this._delayedResizer){this._delayedResizer.cols=h,this._delayedResizer.rows=p;return}this._logService.trace("IPty#resize",h,p);try{this._ptyProcess.resize(h,p)}catch(L){if(this._logService.trace("IPty#resize exception "+L.message),this._exitCode!==void 0&&L.message!=="ioctl(2) failed, EBADF"&&L.message!=="Cannot resize a pty that has already exited")throw L}}}acknowledgeDataEvent(h){this._unacknowledgedCharCount=Math.max(this._unacknowledgedCharCount-h,0),this._logService.trace(`Flow control: Ack ${h} 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(h){}getInitialCwd(){return Promise.resolve(this._initialCwd)}async getCwd(){if(v.isMacintosh)return new Promise(h=>{if(!this._ptyProcess){h(this._initialCwd);return}this._logService.trace("IPty#pid"),(0,f.exec)("lsof -OPln -p "+this._ptyProcess.pid+" | grep cwd",{env:{...process.env,LANG:"en_US.UTF-8"}},(p,L,g)=>{!p&&L!==""?h(L.substring(L.indexOf("/"),L.length-1)):(this._logService.error("lsof did not run successfully, it may not be on the $PATH?",p,L,g),h(this._initialCwd))})});if(v.isLinux){if(!this._ptyProcess)return this._initialCwd;this._logService.trace("IPty#pid");try{return await D.Promises.readlink(`/proc/${this._ptyProcess.pid}/cwd`)}catch{return this._initialCwd}}return this._initialCwd}getLatency(){return Promise.resolve(0)}};n._lastKillOrStart=0,n=fe([Ae(7,C.ILogService),Ae(8,o.IProductService)],n),e.TerminalProcess=n;class c extends S.Disposable{get onTrigger(){return this._onTrigger.event}constructor(){super(),this._onTrigger=this._register(new P.Emitter),this._timeout=setTimeout(()=>{this._onTrigger.fire({rows:this.rows,cols:this.cols})},1e3),this._register({dispose:()=>{clearTimeout(this._timeout)}})}dispose(){super.dispose(),clearTimeout(this._timeout)}}}),define(ae[85],le([0,1,24,8,3,4,2,55,77,25,79,33,89,35,84,59,34,78,9,81,80]),function(x,e,f,R,b,P,S,y,v,d,D,A,C,o,s,r,w,u,E,t,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PersistentTerminalProcess=e.PtyService=void 0;let c,_;class h extends P.Disposable{constructor(l,k,B,G){super(),this._lastPtyId=l,this._logService=k,this._productService=B,this._reconnectConstants=G,this._ptys=new Map,this._workspaceLayoutInfos=new Map,this._revivedPtyIdMap=new Map,this._autoReplies=new Map,this._onHeartbeat=this._register(new b.Emitter),this.onHeartbeat=this._onHeartbeat.event,this._onProcessData=this._register(new b.Emitter),this.onProcessData=this._onProcessData.event,this._onProcessReplay=this._register(new b.Emitter),this.onProcessReplay=this._onProcessReplay.event,this._onProcessReady=this._register(new b.Emitter),this.onProcessReady=this._onProcessReady.event,this._onProcessExit=this._register(new b.Emitter),this.onProcessExit=this._onProcessExit.event,this._onProcessOrphanQuestion=this._register(new b.Emitter),this.onProcessOrphanQuestion=this._onProcessOrphanQuestion.event,this._onDidRequestDetach=this._register(new b.Emitter),this.onDidRequestDetach=this._onDidRequestDetach.event,this._onDidChangeProperty=this._register(new b.Emitter),this.onDidChangeProperty=this._onDidChangeProperty.event,this._register((0,P.toDisposable)(()=>{for(const ne of this._ptys.values())ne.shutdown(!0);this._ptys.clear()})),this._detachInstanceRequestStore=this._register(new v.RequestStore(void 0,this._logService)),this._detachInstanceRequestStore.onCreateRequest(this._onDidRequestDetach.fire,this._onDidRequestDetach)}async refreshIgnoreProcessNames(l){w.ignoreProcessNames.length=0,w.ignoreProcessNames.push(...l)}async requestDetachInstance(l,k){return this._detachInstanceRequestStore.createRequest({workspaceId:l,instanceId:k})}async acceptDetachInstanceReply(l,k){let B;const G=this._ptys.get(k);G&&(B=await this._buildProcessDetails(k,G)),this._detachInstanceRequestStore.acceptReply(l,B)}async freePortKillProcess(l){const B=(await new Promise((G,ne)=>{(0,f.exec)(S.isWindows?`netstat -ano | findstr "${l}"`:`lsof -nP -iTCP -sTCP:LISTEN | grep ${l}`,{},(ce,he)=>{if(ce)return ne("Problem occurred when listing active processes");G(he)})})).split(` `);if(B.length>=1){const G=/\s+(\d+)\s+/,ne=B[0].match(G)?.[1];if(ne)try{process.kill(Number.parseInt(ne))}catch{}else throw new Error(`Processes for port ${l} were not found`);return{port:l,processId:ne}}throw new Error(`Could not kill process with port ${l}`)}async serializeTerminalState(l){const k=[];for(const[G,ne]of this._ptys.entries())ne.hasWrittenData&&l.indexOf(G)!==-1&&k.push(R.Promises.withAsyncBody(async ce=>{ce({id:G,shellLaunchConfig:ne.shellLaunchConfig,processDetails:await this._buildProcessDetails(G,ne),processLaunchConfig:ne.processLaunchOptions,unicodeVersion:ne.unicodeVersion,replayEvent:await ne.serializeNormalBuffer(),timestamp:Date.now()})}));const B={version:1,state:await Promise.all(k)};return JSON.stringify(B)}async reviveTerminalProcesses(l,k){for(const B of l){const G=(0,r.localize)(0,null),ne=await this.createProcess({...B.shellLaunchConfig,cwd:B.processDetails.cwd,color:B.processDetails.color,icon:B.processDetails.icon,name:B.processDetails.titleSource===d.TitleEventSource.Api?B.processDetails.title:void 0,initialText:B.replayEvent.events[0].data+(0,n.formatMessageForTerminal)(G,{loudFormatting:!0})},B.processDetails.cwd,B.replayEvent.events[0].cols,B.replayEvent.events[0].rows,B.unicodeVersion,B.processLaunchConfig.env,B.processLaunchConfig.executableEnv,B.processLaunchConfig.options,!0,B.processDetails.workspaceId,B.processDetails.workspaceName,!0,B.replayEvent.events[0].data);this._revivedPtyIdMap.set(B.id,{newId:ne,state:B})}}async shutdownAll(){this.dispose()}async createProcess(l,k,B,G,ne,ce,he,de,ee,oe,N,J,z){if(l.attachPersistentProcess)throw new Error("Attempt to create a process when attach object was provided");const M=++this._lastPtyId,W=new s.TerminalProcess(l,k,B,G,ce,he,de,this._logService,this._productService);W.onProcessData(te=>this._onProcessData.fire({id:M,event:te}));const j={env:ce,executableEnv:he,options:de},re=new L(M,W,oe,N,ee,B,G,j,ne,this._reconnectConstants,this._logService,J&&typeof l.initialText=="string"?l.initialText:void 0,z,l.icon,l.color,l.name,l.fixedDimensions);return W.onDidChangeProperty(te=>this._onDidChangeProperty.fire({id:M,property:te})),W.onProcessExit(te=>{re.dispose(),this._ptys.delete(M),this._onProcessExit.fire({id:M,event:te})}),re.onProcessReplay(te=>this._onProcessReplay.fire({id:M,event:te})),re.onProcessReady(te=>this._onProcessReady.fire({id:M,event:te})),re.onProcessOrphanQuestion(()=>this._onProcessOrphanQuestion.fire({id:M})),re.onDidChangeProperty(te=>this._onDidChangeProperty.fire({id:M,property:te})),re.onPersistentProcessReady(()=>{for(const te of this._autoReplies.entries())re.installAutoReply(te[0],te[1])}),this._ptys.set(M,re),M}async attachToProcess(l){try{await this._throwIfNoPty(l).attach(),this._logService.info(`Persistent process reconnection "${l}"`)}catch(k){throw this._logService.warn(`Persistent process reconnection "${l}" failed`,k.message),k}}async updateTitle(l,k,B){this._throwIfNoPty(l).setTitle(k,B)}async updateIcon(l,k,B,G){this._throwIfNoPty(l).setIcon(k,B,G)}async refreshProperty(l,k){return this._throwIfNoPty(l).refreshProperty(k)}async updateProperty(l,k,B){return this._throwIfNoPty(l).updateProperty(k,B)}async detachFromProcess(l,k){return this._throwIfNoPty(l).detach(k)}async reduceConnectionGraceTime(){for(const l of this._ptys.values())l.reduceGraceTime()}async listProcesses(){const l=Array.from(this._ptys.entries()).filter(([G,ne])=>ne.shouldPersistTerminal);this._logService.info(`Listing ${l.length} persistent terminals, ${this._ptys.size} total terminals`);const k=l.map(async([G,ne])=>this._buildProcessDetails(G,ne));return(await Promise.all(k)).filter(G=>G.isOrphan)}async start(l){this._logService.trace("ptyService#start",l);const k=this._ptys.get(l);return k?k.start():{message:`Could not find pty with id "${l}"`}}async shutdown(l,k){return this._logService.trace("ptyService#shutDown",l,k),this._ptys.get(l)?.shutdown(k)}async input(l,k){return this._throwIfNoPty(l).input(k)}async processBinary(l,k){return this._throwIfNoPty(l).writeBinary(k)}async resize(l,k,B){return this._throwIfNoPty(l).resize(k,B)}async getInitialCwd(l){return this._throwIfNoPty(l).getInitialCwd()}async getCwd(l){return this._throwIfNoPty(l).getCwd()}async acknowledgeDataEvent(l,k){return this._throwIfNoPty(l).acknowledgeDataEvent(k)}async setUnicodeVersion(l,k){return this._throwIfNoPty(l).setUnicodeVersion(k)}async getLatency(l){return 0}async orphanQuestionReply(l){return this._throwIfNoPty(l).orphanQuestionReply()}async installAutoReply(l,k){this._autoReplies.set(l,k);for(const B of this._ptys.values())B.installAutoReply(l,k)}async uninstallAllAutoReplies(){for(const l of this._autoReplies.keys())for(const k of this._ptys.values())k.uninstallAutoReply(l)}async uninstallAutoReply(l){for(const k of this._ptys.values())k.uninstallAutoReply(l)}async getDefaultSystemShell(l=S.OS){return(0,y.getSystemShell)(l,process.env)}async getEnvironment(){return{...process.env}}async getWslPath(l){return S.isWindows?(0,o.getWindowsBuildNumber)()<17063?l.replace(/\\/g,"/"):new Promise(k=>{(0,f.execFile)("bash.exe",["-c",`wslpath ${(0,A.escapeNonWindowsPath)(l)}`],{},(G,ne,ce)=>{k((0,A.escapeNonWindowsPath)(ne.trim()))}).stdin.end()}):l}async getRevivedPtyNewId(l){try{return this._revivedPtyIdMap.get(l)?.newId}catch(k){this._logService.warn(`Couldn't find terminal ID ${l}`,k.message)}}async setTerminalLayoutInfo(l){this._logService.trace("ptyService#setLayoutInfo",l.tabs),this._workspaceLayoutInfos.set(l.workspaceId,l)}async getTerminalLayoutInfo(l){const k=this._workspaceLayoutInfos.get(l.workspaceId);if(this._logService.trace("ptyService#getLayoutInfo",l),k){const G=(await Promise.all(k.tabs.map(async ne=>this._expandTerminalTab(ne)))).filter(ne=>ne.terminals.length>0);return this._logService.trace("ptyService#returnLayoutInfo",G),{tabs:G}}}async _expandTerminalTab(l){const B=(await Promise.all(l.terminals.map(G=>this._expandTerminalInstance(G)))).filter(G=>G.terminal!==null);return{isActive:l.isActive,activePersistentProcessId:l.activePersistentProcessId,terminals:B}}async _expandTerminalInstance(l){try{const k=this._revivedPtyIdMap.get(l.terminal)?.newId;this._revivedPtyIdMap.delete(l.terminal);const B=k??l.terminal,G=this._throwIfNoPty(B);return{terminal:{...G&&await this._buildProcessDetails(l.terminal,G,k!==void 0),id:B},relativeSize:l.relativeSize}}catch(k){return this._logService.warn("Couldn't get layout info, a terminal was probably disconnected",k.message),{terminal:null,relativeSize:l.relativeSize}}}async _buildProcessDetails(l,k,B=!1){const[G,ne]=await Promise.all([k.getCwd(),B?!0:k.isOrphaned()]);return{id:l,title:k.title,titleSource:k.titleSource,pid:k.pid,workspaceId:k.workspaceId,workspaceName:k.workspaceName,cwd:G,isOrphan:ne,icon:k.icon,color:k.color,fixedDimensions:k.fixedDimensions,environmentVariableCollections:k.processLaunchOptions.options.environmentVariableCollections,reconnectionProperties:k.shellLaunchConfig.reconnectionProperties,waitOnExit:k.shellLaunchConfig.waitOnExit,hideFromUser:k.shellLaunchConfig.hideFromUser,isFeatureTerminal:k.shellLaunchConfig.isFeatureTerminal,type:k.shellLaunchConfig.type}}_throwIfNoPty(l){const k=this._ptys.get(l);if(!k)throw new E.ErrorNoTelemetry("Could not find pty on pty host");return k}}e.PtyService=h;var p;(function(a){a.None="None",a.ReplayOnly="ReplayOnly",a.Session="Session"})(p||(p={}));class L extends P.Disposable{get pid(){return this._pid}get shellLaunchConfig(){return this._terminalProcess.shellLaunchConfig}get hasWrittenData(){return this._interactionState.value!=="None"}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(l,k){k===d.TitleEventSource.Api&&(this._interactionState.setValue("Session","setTitle"),this._serializer.freeRawReviveBuffer()),this._title=l,this._titleSource=k}setIcon(l,k,B){(!this._icon||"id"in k&&"id"in this._icon&&k.id!==this._icon.id||!this.color||B!==this._color)&&(this._serializer.freeRawReviveBuffer(),l&&this._interactionState.setValue("Session","setIcon")),this._icon=k,this._color=B}_setFixedDimensions(l){this._fixedDimensions=l}constructor(l,k,B,G,ne,ce,he,de,ee,oe,N,J,z,M,W,j,re){super(),this._persistentProcessId=l,this._terminalProcess=k,this.workspaceId=B,this.workspaceName=G,this.shouldPersistTerminal=ne,this.processLaunchOptions=de,this.unicodeVersion=ee,this._logService=N,this._icon=M,this._color=W,this._autoReplies=new Map,this._pendingCommands=new Map,this._isStarted=!1,this._orphanRequestQueue=new R.Queue,this._onProcessReplay=this._register(new b.Emitter),this.onProcessReplay=this._onProcessReplay.event,this._onProcessReady=this._register(new b.Emitter),this.onProcessReady=this._onProcessReady.event,this._onPersistentProcessReady=this._register(new b.Emitter),this.onPersistentProcessReady=this._onPersistentProcessReady.event,this._onProcessData=this._register(new b.Emitter),this.onProcessData=this._onProcessData.event,this._onProcessOrphanQuestion=this._register(new b.Emitter),this.onProcessOrphanQuestion=this._onProcessOrphanQuestion.event,this._onDidChangeProperty=this._register(new b.Emitter),this.onDidChangeProperty=this._onDidChangeProperty.event,this._inReplay=!1,this._pid=-1,this._cwd="",this._titleSource=d.TitleEventSource.Process,this._logService.trace("persistentTerminalProcess#ctor",l,arguments),this._interactionState=new g(`Persistent process "${this._persistentProcessId}" interaction state`,"None",this._logService),this._wasRevived=J!==void 0,this._serializer=new m(ce,he,oe.scrollback,ee,J,ne?z:void 0,this._logService),j&&this.setTitle(j,d.TitleEventSource.Api),this._fixedDimensions=re,this._orphanQuestionBarrier=null,this._orphanQuestionReplyTime=0,this._disconnectRunner1=this._register(new R.ProcessTimeRunOnceScheduler(()=>{this._logService.info(`Persistent process "${this._persistentProcessId}": The reconnection grace time of ${i(oe.graceTime)} has expired, shutting down pid "${this._pid}"`),this.shutdown(!0)},oe.graceTime)),this._disconnectRunner2=this._register(new R.ProcessTimeRunOnceScheduler(()=>{this._logService.info(`Persistent process "${this._persistentProcessId}": The short reconnection grace time of ${i(oe.shortGraceTime)} has expired, shutting down pid ${this._pid}`),this.shutdown(!0)},oe.shortGraceTime)),this._register(this._terminalProcess.onProcessExit(()=>this._bufferer.stopBuffering(this._persistentProcessId))),this._register(this._terminalProcess.onProcessReady(te=>{this._pid=te.pid,this._cwd=te.cwd,this._onProcessReady.fire(te)})),this._register(this._terminalProcess.onDidChangeProperty(te=>{this._onDidChangeProperty.fire(te)})),this._bufferer=new D.TerminalDataBufferer((te,Y)=>this._onProcessData.fire(Y)),this._register(this._bufferer.startBuffering(this._persistentProcessId,this._terminalProcess.onProcessData)),this._register(this.onProcessData(te=>this._serializer.handleData(te))),this._register((0,P.toDisposable)(()=>{for(const te of this._autoReplies.values())te.dispose();this._autoReplies.clear()}))}async attach(){if(this._logService.trace("persistentTerminalProcess#attach",this._persistentProcessId),!await this._isOrphaned())throw new Error(`Cannot attach to persistent process "${this._persistentProcessId}", it is already adopted`);!this._disconnectRunner1.isScheduled()&&!this._disconnectRunner2.isScheduled()&&this._logService.warn(`Persistent process "${this._persistentProcessId}": Process had no disconnect runners but was an orphan`),this._disconnectRunner1.cancel(),this._disconnectRunner2.cancel()}async detach(l){this._logService.trace("persistentTerminalProcess#detach",this._persistentProcessId,l),this.shouldPersistTerminal&&(this._interactionState.value!=="None"||l)?this._disconnectRunner1.schedule():this.shutdown(!0)}serializeNormalBuffer(){return this._serializer.generateReplayEvent(!0,this._interactionState.value!=="Session")}async refreshProperty(l){return this._terminalProcess.refreshProperty(l)}async updateProperty(l,k){if(l==="fixedDimensions")return this._setFixedDimensions(k)}async start(){if(this._logService.trace("persistentTerminalProcess#start",this._persistentProcessId,this._isStarted),this._isStarted)this._onProcessReady.fire({pid:this._pid,cwd:this._cwd,requiresWindowsMode:S.isWindows&&(0,o.getWindowsBuildNumber)()<21376}),this._onDidChangeProperty.fire({type:"title",value:this._terminalProcess.currentTitle}),this._onDidChangeProperty.fire({type:"shellType",value:this._terminalProcess.shellType}),this.triggerReplay();else{const l=await this._terminalProcess.start();if(l)return l;this._isStarted=!0,this._wasRevived?this.triggerReplay():this._onPersistentProcessReady.fire()}}shutdown(l){return this._terminalProcess.shutdown(l)}input(l){if(this._interactionState.setValue("Session","input"),this._serializer.freeRawReviveBuffer(),!this._inReplay){for(const k of this._autoReplies.values())k.handleInput();return this._terminalProcess.input(l)}}writeBinary(l){return this._terminalProcess.processBinary(l)}resize(l,k){if(!this._inReplay){this._serializer.handleResize(l,k),this._bufferer.flushBuffer(this._persistentProcessId);for(const B of this._autoReplies.values())B.handleResize();return this._terminalProcess.resize(l,k)}}setUnicodeVersion(l){this.unicodeVersion=l,this._serializer.setUnicodeVersion?.(l)}acknowledgeDataEvent(l){if(!this._inReplay)return this._terminalProcess.acknowledgeDataEvent(l)}getInitialCwd(){return this._terminalProcess.getInitialCwd()}getCwd(){return this._terminalProcess.getCwd()}getLatency(){return this._terminalProcess.getLatency()}async triggerReplay(){this._interactionState.value==="None"&&this._interactionState.setValue("ReplayOnly","triggerReplay");const l=await this._serializer.generateReplayEvent();let k=0;for(const B of l.events)k+=B.data.length;this._logService.info(`Persistent process "${this._persistentProcessId}": Replaying ${k} chars and ${l.events.length} size events`),this._onProcessReplay.fire(l),this._terminalProcess.clearUnacknowledgedChars(),this._onPersistentProcessReady.fire()}installAutoReply(l,k){this._autoReplies.get(l)?.dispose(),this._autoReplies.set(l,new u.TerminalAutoResponder(this._terminalProcess,l,k,this._logService))}uninstallAutoReply(l){this._autoReplies.get(l)?.dispose(),this._autoReplies.delete(l)}sendCommandResult(l,k,B){!this._pendingCommands.get(l)||this._pendingCommands.delete(l)}orphanQuestionReply(){if(this._orphanQuestionReplyTime=Date.now(),this._orphanQuestionBarrier){const l=this._orphanQuestionBarrier;this._orphanQuestionBarrier=null,l.open()}}reduceGraceTime(){this._disconnectRunner2.isScheduled()||this._disconnectRunner1.isScheduled()&&this._disconnectRunner2.schedule()}async isOrphaned(){return await this._orphanRequestQueue.queue(async()=>this._isOrphaned())}async _isOrphaned(){return this._disconnectRunner1.isScheduled()||this._disconnectRunner2.isScheduled()?!0:(this._orphanQuestionBarrier||(this._orphanQuestionBarrier=new R.AutoOpenBarrier(4e3),this._orphanQuestionReplyTime=0,this._onProcessOrphanQuestion.fire()),await this._orphanQuestionBarrier.wait(),Date.now()-this._orphanQuestionReplyTime>500)}}e.PersistentTerminalProcess=L;class g{get value(){return this._value}setValue(l,k){this._value!==l&&(this._value=l,this._log(k))}constructor(l,k,B){this._name=l,this._value=k,this._logService=B,this._log("initialized")}_log(l){this._logService.debug(`MutationLogger "${this._name}" set to "${this._value}", reason: ${l}`)}}class m{constructor(l,k,B,G,ne,ce,he){this._rawReviveBuffer=ce,this._xterm=new C.Terminal({cols:l,rows:k,scrollback:B,allowProposedApi:!0}),ne&&this._xterm.writeln(ne),this.setUnicodeVersion(G),this._shellIntegrationAddon=new t.ShellIntegrationAddon(!0,void 0,he),this._xterm.loadAddon(this._shellIntegrationAddon)}freeRawReviveBuffer(){this._rawReviveBuffer=void 0}handleData(l){this._xterm.write(l)}handleResize(l,k){this._xterm.resize(l,k)}async generateReplayEvent(l,k){const B=new(await this._getSerializeConstructor());this._xterm.loadAddon(B);const G={scrollback:this._xterm.options.scrollback};l&&(G.excludeAltBuffer=!0,G.excludeModes=!0);let ne;return k&&this._rawReviveBuffer?ne=this._rawReviveBuffer:ne=B.serialize(G),{events:[{cols:this._xterm.cols,rows:this._xterm.rows,data:ne}],commands:this._shellIntegrationAddon.serialize()}}async setUnicodeVersion(l){this._xterm.unicode.activeVersion!==l&&(l==="11"?(this._unicodeAddon=new(await this._getUnicode11Constructor()),this._xterm.loadAddon(this._unicodeAddon)):(this._unicodeAddon?.dispose(),this._unicodeAddon=void 0),this._xterm.unicode.activeVersion=l)}async _getUnicode11Constructor(){return _||(_=(await new Promise((l,k)=>{x(["xterm-addon-unicode11"],l,k)})).Unicode11Addon),_}async _getSerializeConstructor(){return c||(c=(await new Promise((l,k)=>{x(["xterm-addon-serialize"],l,k)})).SerializeAddon),c}}function i(a){let l=0,k=0,B=0;a>=1e3&&(B=Math.floor(a/1e3),a-=B*1e3),B>=60&&(k=Math.floor(B/60),B-=k*60),k>=60&&(l=Math.floor(k/60),k-=l*60);const G=l?`${l}h`:"",ne=k?`${k}m`:"",ce=B?`${B}s`:"",he=a?`${a}ms`:"";return`${G}${ne}${ce}${he}`}}),define(ae[90],le([0,1,5,6,32,56,62,64,66,7,67,69,70,25,82,85]),function(x,e,f,R,b,P,S,y,v,d,D,A,C,o,s,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const w=new P.Server("ptyHost"),u=parseInt(process.env.VSCODE_LAST_PTY_ID||"0");delete process.env.VSCODE_LAST_PTY_ID;const E={_serviceBrand:void 0,...C.default},t=new y.NativeEnvironmentService((0,S.parseArgs)(process.argv,S.OPTIONS),E),n=new v.BufferLogService,c=new d.LogService(new d.MultiplexLogService([new d.ConsoleLogger,n])),_=new A.LoggerService(c);n.logger=_.createLogger(R.URI.file((0,f.join)(t.logsPath,"ptyhost.log")),{name:"ptyhost"});const h=new D.LogLevelChannel(c,_);w.registerChannel(o.TerminalIpcChannels.Log,h);const p=new s.HeartbeatService;w.registerChannel(o.TerminalIpcChannels.Heartbeat,b.ProxyChannel.fromService(p));const L={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 g=new r.PtyService(u,c,E,L);w.registerChannel(o.TerminalIpcChannels.PtyHost,b.ProxyChannel.fromService(g)),process.once("exit",()=>{c.dispose(),p.dispose(),g.dispose()})})}).call(this); //# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/6261075646f055b99068d3688932416f2346dd3b/core/vs/platform/terminal/node/ptyHostMain.js.map x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586