/*!-------------------------------------------------------- * Copyright (C) Microsoft Corporation. All rights reserved. *--------------------------------------------------------*/(function(){var ce=["require","exports","vs/base/common/platform","vs/base/common/path","vs/base/common/lifecycle","vs/base/common/strings","vs/base/common/event","vs/base/common/uri","vs/base/common/async","vs/base/common/errors","vs/base/common/types","vs/base/common/cancellation","vs/base/common/extpath","vs/base/common/arrays","vs/base/common/normalization","vs/base/common/buffer","vs/base/common/glob","vs/base/node/pfs","fs","vs/base/common/functional","vs/base/common/map","vs/nls","vs/nls!vs/platform/files/node/watcher/watcherMain","vs/base/common/process","vs/base/common/processes","vs/base/common/ternarySearchTree","vs/base/common/resources","vs/base/node/extpath","vs/base/parts/ipc/common/ipc","vs/platform/files/common/watcher","vs/platform/files/node/watcher/nodejs/nodejsWatcherLib","vs/base/common/decorators","vs/base/common/iterator","vs/base/common/lazy","vs/base/common/linkedList","vs/base/common/stream","vs/base/common/objects","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/console","vs/base/common/marshalling","vs/base/common/network","os","vs/base/node/processes","vs/base/parts/ipc/node/ipc.cp","vs/nls!vs/platform/files/common/files","vs/platform/instantiation/common/instantiation","vs/platform/files/common/files","vs/platform/files/node/watcher/nodejs/nodejsWatcher","vs/platform/files/node/watcher/parcel/parcelWatcher","vs/platform/files/node/watcher/watcher","util","child_process","@parcel/watcher","vs/platform/files/node/watcher/watcherMain"],ue=function(oe){for(var e=[],_=0,W=oe.length;_{let O=null,I=null;if(typeof A.value=="function"?(O="value",I=A.value):typeof A.get=="function"&&(O="get",I=A.get),!I)throw new Error("not supported");A[O]=B(I,S)}}e.createDecorator=_;function W(B,T,S){let A=null,O=null;if(typeof S.value=="function"?(A="value",O=S.value,O.length!==0&&console.warn("Memoize should only be used in functions with zero parameters")):typeof S.get=="function"&&(A="get",O=S.get),!O)throw new Error("not supported");const I=`$memoize$${T}`;S[A]=function(...U){return this.hasOwnProperty(I)||Object.defineProperty(this,I,{configurable:!1,enumerable:!1,writable:!1,value:O.apply(this,U)}),this[I]}}e.memoize=W;function M(B,T,S){return _((A,O)=>{const I=`$debounce$${O}`,U=`$debounce$result$${O}`;return function(...m){this[U]||(this[U]=S?S():void 0),clearTimeout(this[I]),T&&(this[U]=T(this[U],...m),m=[this[U]]),this[I]=setTimeout(()=>{A.apply(this,m),this[U]=S?S():void 0},B)}})}e.debounce=M;function j(B,T,S){return _((A,O)=>{const I=`$throttle$timer$${O}`,U=`$throttle$result$${O}`,m=`$throttle$lastRun$${O}`,f=`$throttle$pending$${O}`;return function(...o){if(this[U]||(this[U]=S?S():void 0),(this[m]===null||this[m]===void 0)&&(this[m]=-Number.MAX_VALUE),T&&(this[U]=T(this[U],...o)),this[f])return;const g=this[m]+B;g<=Date.now()?(this[m]=Date.now(),A.apply(this,[this[U]]),this[U]=S?S():void 0):(this[f]=!0,this[I]=setTimeout(()=>{this[f]=!1,this[m]=Date.now(),A.apply(this,[this[U]]),this[U]=S?S():void 0},g-Date.now()))}})}e.throttle=j}),define(ce[9],ue([0,1]),function(oe,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 _{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(r){setTimeout(()=>{throw r.stack?n.isErrorNoTelemetry(r)?new n(r.message+` `+r.stack):new Error(r.message+` `+r.stack):r},0)}}addListener(r){return this.listeners.push(r),()=>{this._removeListener(r)}}emit(r){this.listeners.forEach(h=>{h(r)})}_removeListener(r){this.listeners.splice(this.listeners.indexOf(r),1)}setUnexpectedErrorHandler(r){this.unexpectedErrorHandler=r}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(r){this.unexpectedErrorHandler(r),this.emit(r)}onUnexpectedExternalError(r){this.unexpectedErrorHandler(r)}}e.ErrorHandler=_,e.errorHandler=new _;function W(a){e.errorHandler.setUnexpectedErrorHandler(a)}e.setUnexpectedErrorHandler=W;function M(a){S(a)||e.errorHandler.onUnexpectedError(a)}e.onUnexpectedError=M;function j(a){S(a)||e.errorHandler.onUnexpectedExternalError(a)}e.onUnexpectedExternalError=j;function B(a){if(a instanceof Error){const{name:r,message:h}=a,c=a.stacktrace||a.stack;return{$isError:!0,name:r,message:h,stack:c,noTelemetry:n.isErrorNoTelemetry(a)}}return a}e.transformErrorForSerialization=B;const T="Canceled";function S(a){return a instanceof A?!0:a instanceof Error&&a.name===T&&a.message===T}e.isCancellationError=S;class A extends Error{constructor(){super(T),this.name=this.message}}e.CancellationError=A;function O(){const a=new Error(T);return a.name=a.message,a}e.canceled=O;function I(a){return a?new Error(`Illegal argument: ${a}`):new Error("Illegal argument")}e.illegalArgument=I;function U(a){return a?new Error(`Illegal state: ${a}`):new Error("Illegal state")}e.illegalState=U;function m(a){return a?new Error(`readonly property '${a} cannot be changed'`):new Error("readonly property cannot be changed")}e.readonly=m;function f(a){const r=new Error(`${a} has been disposed`);return r.name="DISPOSED",r}e.disposed=f;function o(a){return a?a.message?a.message:a.stack?a.stack.split(` `)[0]:String(a):"Error"}e.getErrorMessage=o;class g extends Error{constructor(r){super("NotImplemented"),r&&(this.message=r)}}e.NotImplementedError=g;class u extends Error{constructor(r){super("NotSupported"),r&&(this.message=r)}}e.NotSupportedError=u;class v extends Error{constructor(){super(...arguments),this.isExpected=!0}}e.ExpectedError=v;class n extends Error{constructor(r){super(r),this.name="CodeExpectedError"}static fromError(r){if(r instanceof n)return r;const h=new n;return h.message=r.message,h.stack=r.stack,h}static isErrorNoTelemetry(r){return r.name==="CodeExpectedError"}}e.ErrorNoTelemetry=n;class t extends Error{constructor(r){super(r||"An unexpected bug occurred."),Object.setPrototypeOf(this,t.prototype);debugger}}e.BugIndicatingError=t}),define(ce[13],ue([0,1,9]),function(oe,e,_){"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 W(C,p=0){return C[C.length-(1+p)]}e.tail=W;function M(C){if(C.length===0)throw new Error("Invalid tail call");return[C.slice(0,C.length-1),C[C.length-1]]}e.tail2=M;function j(C,p,F=(H,X)=>H===X){if(C===p)return!0;if(!C||!p||C.length!==p.length)return!1;for(let H=0,X=C.length;HF(C[H],p))}e.binarySearch=T;function S(C,p){let F=0,H=C-1;for(;F<=H;){const X=(F+H)/2|0,de=p(X);if(de<0)F=X+1;else if(de>0)H=X-1;else return X}return-(F+1)}e.binarySearch2=S;function A(C,p){let F=0,H=C.length;if(H===0)return 0;for(;F=p.length)throw new TypeError("invalid index");const H=p[Math.floor(p.length*Math.random())],X=[],de=[],ge=[];for(const ye of p){const we=F(ye,H);we<0?X.push(ye):we>0?de.push(ye):ge.push(ye)}return C0&&(X(de,0,[we]),ge+=1)}return H}e.sortedDiff=U;function m(C,p,F){const H=U(C,p,F),X=[],de=[];for(const ge of H)X.push(...C.slice(ge.start,ge.start+ge.deleteCount)),de.push(...ge.toInsert);return{removed:X,added:de}}e.delta=m;function f(C,p,F){if(F===0)return[];const H=C.slice(0,F).sort(p);return g(C,p,H,F,C.length),H}e.top=f;function o(C,p,F,H,X){return F===0?Promise.resolve([]):new Promise((de,ge)=>{(async()=>{const ye=C.length,we=C.slice(0,F).sort(p);for(let be=F,Ce=Math.min(F+H,ye);beF&&await new Promise(Ie=>setTimeout(Ie)),X&&X.isCancellationRequested)throw new _.CancellationError;g(C,p,we,be,Ce)}return we})().then(de,ge)})}e.topAsync=o;function g(C,p,F,H,X){for(const de=F.length;Hp(ge,we)<0);F.splice(ye,0,ge)}}}function u(C){return C.filter(p=>!!p)}e.coalesce=u;function v(C){let p=0;for(let F=0;F0}e.isNonEmptyArray=a;function r(C,p=F=>F){const F=new Set;return C.filter(H=>{const X=p(H);return F.has(X)?!1:(F.add(X),!0)})}e.distinct=r;function h(C){const p=new Set;return F=>{const H=C(F);return p.has(H)?!1:(p.add(H),!0)}}e.uniqueFilter=h;function c(C,p){const F=w(C,p);if(F!==-1)return C[F]}e.findLast=c;function w(C,p){for(let F=C.length-1;F>=0;F--){const H=C[F];if(p(H))return F}return-1}e.lastIndex=w;function i(C,p){return C.length>0?C[0]:p}e.firstOrDefault=i;function l(C,p){return C.length>0?C[C.length-1]:p}e.lastOrDefault=l;function s(C,p,F=(H,X)=>H===X){let H=0;for(let X=0,de=Math.min(C.length,p.length);Xp;X--)H.push(X);return H}e.range=D;function K(C,p,F){return C.reduce((H,X)=>(H[p(X)]=F?F(X):X,H),Object.create(null))}e.index=K;function ie(C,p){return C.push(p),()=>te(C,p)}e.insert=ie;function te(C,p){const F=C.indexOf(p);if(F>-1)return C.splice(F,1),p}e.remove=te;function le(C,p,F){const H=C.slice(0,p),X=C.slice(p);return H.concat(F,X)}e.arrayInsert=le;function ae(C,p){let F;if(typeof p=="number"){let H=p;F=()=>{const X=Math.sin(H++)*179426549;return X-Math.floor(X)}}else F=Math.random;for(let H=C.length-1;H>0;H-=1){const X=Math.floor(F()*(H+1)),de=C[H];C[H]=C[X],C[X]=de}}e.shuffle=ae;function he(C,p){const F=C.indexOf(p);F>-1&&(C.splice(F,1),C.unshift(p))}e.pushToStart=he;function fe(C,p){const F=C.indexOf(p);F>-1&&(C.splice(F,1),C.push(p))}e.pushToEnd=fe;function ee(C,p){for(const F of p)C.push(F)}e.pushMany=ee;function se(C,p){return Array.isArray(C)?C.map(p):p(C)}e.mapArrayOrNot=se;function R(C){return Array.isArray(C)?C:[C]}e.asArray=R;function x(C){return C[Math.floor(Math.random()*C.length)]}e.getRandomElement=x;function L(C,p){for(const F of C){const H=p(F);if(H!==void 0)return H}}e.mapFind=L;function y(C,p,F){const H=N(C,p),X=C.length,de=F.length;C.length=X+de;for(let ge=X-1;ge>=H;ge--)C[ge+de]=C[ge];for(let ge=0;ge0}C.isGreaterThan=F;function H(X){return X===0}C.isNeitherLessOrGreaterThan=H,C.greaterThan=1,C.lessThan=-1,C.neitherLessOrGreaterThan=0})(Q=e.CompareResult||(e.CompareResult={}));function Z(C,p){return(F,H)=>p(C(F),C(H))}e.compareBy=Z;function V(...C){return(p,F)=>{for(const H of C){const X=H(p,F);if(!Q.isNeitherLessOrGreaterThan(X))return X}return Q.neitherLessOrGreaterThan}}e.tieBreakComparators=V;const E=(C,p)=>C-p;e.numberComparator=E;function k(C,p){if(C.length===0)return;let F=C[0];for(let H=1;H0&&(F=X)}return F}e.findMaxBy=k;function z(C,p){if(C.length===0)return;let F=C[0];for(let H=1;H=0&&(F=X)}return F}e.findLastMaxBy=z;function q(C,p){return k(C,(F,H)=>-p(F,H))}e.findMinBy=q;class G{constructor(p){this.items=p,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(p){let F=this.firstIdx;for(;F=0&&p(this.items[F]);)F--;const H=F===this.lastIdx?null:this.items.slice(F+1,this.lastIdx+1);return this.lastIdx=F,H}peek(){if(this.length!==0)return this.items[this.firstIdx]}peekLast(){if(this.length!==0)return this.items[this.lastIdx]}dequeue(){const p=this.items[this.firstIdx];return this.firstIdx++,p}removeLast(){const p=this.items[this.lastIdx];return this.lastIdx--,p}takeCount(p){const F=this.items.slice(this.firstIdx,this.firstIdx+p);return this.firstIdx+=p,F}}e.ArrayQueue=G;class J{constructor(p){this.iterate=p}forEach(p){this.iterate(F=>(p(F),!0))}toArray(){const p=[];return this.iterate(F=>(p.push(F),!0)),p}filter(p){return new J(F=>this.iterate(H=>p(H)?F(H):!0))}map(p){return new J(F=>this.iterate(H=>F(p(H))))}some(p){let F=!1;return this.iterate(H=>(F=p(H),!F)),F}findFirst(p){let F;return this.iterate(H=>p(H)?(F=H,!1):!0),F}findLast(p){let F;return this.iterate(H=>(p(H)&&(F=H),!0)),F}findLastMaxBy(p){let F,H=!0;return this.iterate(X=>((H||Q.isGreaterThan(p(X,F)))&&(H=!1,F=X),!0)),F}}e.CallbackIterable=J,J.empty=new J(C=>{})}),define(ce[19],ue([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function _(W){const M=this;let j=!1,B;return function(){return j||(j=!0,B=W.apply(M,arguments)),B}}e.once=_}),define(ce[32],ue([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var _;(function(W){function M(t){return t&&typeof t=="object"&&typeof t[Symbol.iterator]=="function"}W.is=M;const j=Object.freeze([]);function B(){return j}W.empty=B;function*T(t){yield t}W.single=T;function S(t){return M(t)?t:T(t)}W.wrap=S;function A(t){return t||j}W.from=A;function O(t){return!t||t[Symbol.iterator]().next().done===!0}W.isEmpty=O;function I(t){return t[Symbol.iterator]().next().value}W.first=I;function U(t,a){for(const r of t)if(a(r))return!0;return!1}W.some=U;function m(t,a){for(const r of t)if(a(r))return r}W.find=m;function*f(t,a){for(const r of t)a(r)&&(yield r)}W.filter=f;function*o(t,a){let r=0;for(const h of t)yield a(h,r++)}W.map=o;function*g(...t){for(const a of t)for(const r of a)yield r}W.concat=g;function u(t,a,r){let h=r;for(const c of t)h=a(h,c);return h}W.reduce=u;function*v(t,a,r=t.length){for(a<0&&(a+=t.length),r<0?r+=t.length:r>t.length&&(r=t.length);aM(this.getValue()))}}e.Lazy=_}),define(ce[4],ue([0,1,19,32]),function(oe,e,_,W){"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 M=!1;let j=null;function B(l){j=l}if(e.setDisposableTracker=B,M){const l="__is_disposable_tracked__";B(new class{trackDisposable(s){const d=new Error("Potentially leaked disposable").stack;setTimeout(()=>{s[l]||console.log(d)},3e3)}setParent(s,d){if(s&&s!==v.None)try{s[l]=!0}catch{}}markAsDisposed(s){if(s&&s!==v.None)try{s[l]=!0}catch{}}markAsSingleton(s){}})}function T(l){return j?.trackDisposable(l),l}function S(l){j?.markAsDisposed(l)}function A(l,s){j?.setParent(l,s)}function O(l,s){if(!!j)for(const d of l)j.setParent(d,s)}function I(l){return j?.markAsSingleton(l),l}e.markAsSingleton=I;function U(l){return typeof l.dispose=="function"&&l.dispose.length===0}e.isDisposable=U;function m(l){if(W.Iterable.is(l)){const s=[];for(const d of l)if(d)try{d.dispose()}catch(D){s.push(D)}if(s.length===1)throw s[0];if(s.length>1)throw new AggregateError(s,"Encountered errors while disposing of store");return Array.isArray(l)?[]:l}else if(l)return l.dispose(),l}e.dispose=m;function f(l){for(const s of l)U(s)&&s.dispose();return[]}e.disposeIfDisposable=f;function o(...l){const s=g(()=>m(l));return O(l,s),s}e.combinedDisposable=o;function g(l){const s=T({dispose:(0,_.once)(()=>{S(s),l()})});return s}e.toDisposable=g;class u{constructor(){this._toDispose=new Set,this._isDisposed=!1,T(this)}dispose(){this._isDisposed||(S(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{m(this._toDispose)}finally{this._toDispose.clear()}}add(s){if(!s)return s;if(s===this)throw new Error("Cannot register a disposable on itself!");return A(s,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(s),s}}e.DisposableStore=u,u.DISABLE_DISPOSED_WARNING=!1;class v{constructor(){this._store=new u,T(this),A(this._store,this)}dispose(){S(this),this._store.dispose()}_register(s){if(s===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(s)}}e.Disposable=v,v.None=Object.freeze({dispose(){}});class n{constructor(){this._isDisposed=!1,T(this)}get value(){return this._isDisposed?void 0:this._value}set value(s){this._isDisposed||s===this._value||(this._value?.dispose(),s&&A(s,this),this._value=s)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,S(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){const s=this._value;return this._value=void 0,s&&A(s,null),s}}e.MutableDisposable=n;class t{constructor(s){this._disposable=s,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}e.RefCountedDisposable=t;class a{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,T(this)}set(s){let d=s;return this.unset=()=>d=void 0,this.isset=()=>d!==void 0,this.dispose=()=>{d&&(d(),d=void 0,S(this))},this}}e.SafeDisposable=a;class r{constructor(){this.references=new Map}acquire(s,...d){let D=this.references.get(s);D||(D={counter:0,object:this.createReferencedObject(s,...d)},this.references.set(s,D));const{object:K}=D,ie=(0,_.once)(()=>{--D.counter===0&&(this.destroyReferencedObject(s,D.object),this.references.delete(s))});return D.counter++,{object:K,dispose:ie}}}e.ReferenceCollection=r;class h{constructor(s){this.referenceCollection=s}async acquire(s,...d){const D=this.referenceCollection.acquire(s,...d);try{return{object:await D.object,dispose:()=>D.dispose()}}catch(K){throw D.dispose(),K}}}e.AsyncReferenceCollection=h;class c{constructor(s){this.object=s}dispose(){}}e.ImmortalReference=c;function w(l){const s=new u;try{l(s)}finally{s.dispose()}}e.disposeOnReturn=w;class i{constructor(){this._store=new Map,this._isDisposed=!1,T(this)}dispose(){S(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(!!this._store.size)try{m(this._store.values())}finally{this._store.clear()}}has(s){return this._store.has(s)}get(s){return this._store.get(s)}set(s,d,D=!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),D||this._store.get(s)?.dispose(),this._store.set(s,d)}deleteAndDispose(s){this._store.get(s)?.dispose(),this._store.delete(s)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}e.DisposableMap=i}),define(ce[34],ue([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=void 0;class _{constructor(j){this.element=j,this.next=_.Undefined,this.prev=_.Undefined}}_.Undefined=new _(void 0);class W{constructor(){this._first=_.Undefined,this._last=_.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===_.Undefined}clear(){let j=this._first;for(;j!==_.Undefined;){const B=j.next;j.prev=_.Undefined,j.next=_.Undefined,j=B}this._first=_.Undefined,this._last=_.Undefined,this._size=0}unshift(j){return this._insert(j,!1)}push(j){return this._insert(j,!0)}_insert(j,B){const T=new _(j);if(this._first===_.Undefined)this._first=T,this._last=T;else if(B){const A=this._last;this._last=T,T.prev=A,A.next=T}else{const A=this._first;this._first=T,T.next=A,A.prev=T}this._size+=1;let S=!1;return()=>{S||(S=!0,this._remove(T))}}shift(){if(this._first!==_.Undefined){const j=this._first.element;return this._remove(this._first),j}}pop(){if(this._last!==_.Undefined){const j=this._last.element;return this._remove(this._last),j}}_remove(j){if(j.prev!==_.Undefined&&j.next!==_.Undefined){const B=j.prev;B.next=j.next,j.next.prev=B}else j.prev===_.Undefined&&j.next===_.Undefined?(this._first=_.Undefined,this._last=_.Undefined):j.next===_.Undefined?(this._last=this._last.prev,this._last.next=_.Undefined):j.prev===_.Undefined&&(this._first=this._first.next,this._first.prev=_.Undefined);this._size-=1}*[Symbol.iterator](){let j=this._first;for(;j!==_.Undefined;)yield j.element,j=j.next}}e.LinkedList=W}),define(ce[20],ue([0,1]),function(oe,e){"use strict";var _,W,M;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 j(f,o,g){let u=f.get(o);return u===void 0&&(u=g,f.set(o,u)),u}e.getOrSet=j;function B(f){const o=[];return f.forEach((g,u)=>{o.push(`${u} => ${g}`)}),`Map(${f.size}) {${o.join(", ")}}`}e.mapToString=B;function T(f){const o=[];return f.forEach(g=>{o.push(g)}),`Set(${f.size}) {${o.join(", ")}}`}e.setToString=T;class S{constructor(o,g){this.uri=o,this.value=g}}class A{constructor(o,g){this[_]="ResourceMap",o instanceof A?(this.map=new Map(o.map),this.toKey=g??A.defaultToKey):(this.map=new Map,this.toKey=o??A.defaultToKey)}set(o,g){return this.map.set(this.toKey(o),new S(o,g)),this}get(o){return this.map.get(this.toKey(o))?.value}has(o){return this.map.has(this.toKey(o))}get size(){return this.map.size}clear(){this.map.clear()}delete(o){return this.map.delete(this.toKey(o))}forEach(o,g){typeof g<"u"&&(o=o.bind(g));for(const[u,v]of this.map)o(v.value,v.uri,this)}*values(){for(const o of this.map.values())yield o.value}*keys(){for(const o of this.map.values())yield o.uri}*entries(){for(const o of this.map.values())yield[o.uri,o.value]}*[(_=Symbol.toStringTag,Symbol.iterator)](){for(const[,o]of this.map)yield[o.uri,o.value]}}e.ResourceMap=A,A.defaultToKey=f=>f.toString();class O{constructor(o,g){this[W]="ResourceSet",!o||typeof o=="function"?this._map=new A(o):(this._map=new A(g),o.forEach(this.add,this))}get size(){return this._map.size}add(o){return this._map.set(o,o),this}clear(){this._map.clear()}delete(o){return this._map.delete(o)}forEach(o,g){this._map.forEach((u,v)=>o.call(g,v,v,this))}has(o){return this._map.has(o)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(W=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}}e.ResourceSet=O;var I;(function(f){f[f.None=0]="None",f[f.AsOld=1]="AsOld",f[f.AsNew=2]="AsNew"})(I=e.Touch||(e.Touch={}));class U{constructor(){this[M]="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(o){return this._map.has(o)}get(o,g=0){const u=this._map.get(o);if(!!u)return g!==0&&this.touch(u,g),u.value}set(o,g,u=0){let v=this._map.get(o);if(v)v.value=g,u!==0&&this.touch(v,u);else{switch(v={key:o,value:g,next:void 0,previous:void 0},u){case 0:this.addItemLast(v);break;case 1:this.addItemFirst(v);break;case 2:this.addItemLast(v);break;default:this.addItemLast(v);break}this._map.set(o,v),this._size++}return this}delete(o){return!!this.remove(o)}remove(o){const g=this._map.get(o);if(!!g)return this._map.delete(o),this.removeItem(g),this._size--,g.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const o=this._head;return this._map.delete(o.key),this.removeItem(o),this._size--,o.value}forEach(o,g){const u=this._state;let v=this._head;for(;v;){if(g?o.bind(g)(v.value,v.key,this):o(v.value,v.key,this),this._state!==u)throw new Error("LinkedMap got modified during iteration.");v=v.next}}keys(){const o=this,g=this._state;let u=this._head;const v={[Symbol.iterator](){return v},next(){if(o._state!==g)throw new Error("LinkedMap got modified during iteration.");if(u){const n={value:u.key,done:!1};return u=u.next,n}else return{value:void 0,done:!0}}};return v}values(){const o=this,g=this._state;let u=this._head;const v={[Symbol.iterator](){return v},next(){if(o._state!==g)throw new Error("LinkedMap got modified during iteration.");if(u){const n={value:u.value,done:!1};return u=u.next,n}else return{value:void 0,done:!0}}};return v}entries(){const o=this,g=this._state;let u=this._head;const v={[Symbol.iterator](){return v},next(){if(o._state!==g)throw new Error("LinkedMap got modified during iteration.");if(u){const n={value:[u.key,u.value],done:!1};return u=u.next,n}else return{value:void 0,done:!0}}};return v}[(M=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(o){if(o>=this.size)return;if(o===0){this.clear();return}let g=this._head,u=this.size;for(;g&&u>o;)this._map.delete(g.key),g=g.next,u--;this._head=g,this._size=u,g&&(g.previous=void 0),this._state++}addItemFirst(o){if(!this._head&&!this._tail)this._tail=o;else if(this._head)o.next=this._head,this._head.previous=o;else throw new Error("Invalid list");this._head=o,this._state++}addItemLast(o){if(!this._head&&!this._tail)this._head=o;else if(this._tail)o.previous=this._tail,this._tail.next=o;else throw new Error("Invalid list");this._tail=o,this._state++}removeItem(o){if(o===this._head&&o===this._tail)this._head=void 0,this._tail=void 0;else if(o===this._head){if(!o.next)throw new Error("Invalid list");o.next.previous=void 0,this._head=o.next}else if(o===this._tail){if(!o.previous)throw new Error("Invalid list");o.previous.next=void 0,this._tail=o.previous}else{const g=o.next,u=o.previous;if(!g||!u)throw new Error("Invalid list");g.previous=u,u.next=g}o.next=void 0,o.previous=void 0,this._state++}touch(o,g){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(g!==1&&g!==2)){if(g===1){if(o===this._head)return;const u=o.next,v=o.previous;o===this._tail?(v.next=void 0,this._tail=v):(u.previous=v,v.next=u),o.previous=void 0,o.next=this._head,this._head.previous=o,this._head=o,this._state++}else if(g===2){if(o===this._tail)return;const u=o.next,v=o.previous;o===this._head?(u.previous=void 0,this._head=u):(u.previous=v,v.next=u),o.next=void 0,o.previous=this._tail,this._tail.next=o,this._tail=o,this._state++}}}toJSON(){const o=[];return this.forEach((g,u)=>{o.push([u,g])}),o}fromJSON(o){this.clear();for(const[g,u]of o)this.set(g,u)}}e.LinkedMap=U;class m extends U{constructor(o,g=1){super(),this._limit=o,this._ratio=Math.min(Math.max(0,g),1)}get limit(){return this._limit}set limit(o){this._limit=o,this.checkTrim()}get ratio(){return this._ratio}set ratio(o){this._ratio=Math.min(Math.max(0,o),1),this.checkTrim()}get(o,g=2){return super.get(o,g)}peek(o){return super.get(o,0)}set(o,g){return super.set(o,g,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}e.LRUCache=m}),define(ce[14],ue([0,1,20]),function(oe,e,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeAccents=e.normalizeNFD=e.normalizeNFC=void 0;const W=new _.LRUCache(1e4);function M(A){return S(A,"NFC",W)}e.normalizeNFC=M;const j=new _.LRUCache(1e4);function B(A){return S(A,"NFD",j)}e.normalizeNFD=B;const T=/[^\u0000-\u0080]/;function S(A,O,I){if(!A)return A;const U=I.get(A);if(U)return U;let m;return T.test(A)?m=A.normalize(O):m=A,I.set(A,m),m}e.removeAccents=function(){const A=/[\u0300-\u036f]/g;return function(O){return B(O).replace(A,"")}}()}),define(ce[35],ue([0,1,9,4]),function(oe,e,_,W){"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 M(t){const a=t;return a?typeof a.read=="function":!1}e.isReadable=M;function j(t){const a=t;return a?[a.on,a.pause,a.resume,a.destroy].every(r=>typeof r=="function"):!1}e.isReadableStream=j;function B(t){const a=t;return a?j(a.stream)&&Array.isArray(a.buffer)&&typeof a.ended=="boolean":!1}e.isReadableBufferedStream=B;function T(t,a){return new S(t,a)}e.newWriteableStream=T;class S{constructor(a,r){this.reducer=a,this.options=r,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(a){if(!this.state.destroyed){if(this.state.flowing)this.emitData(a);else if(this.buffer.data.push(a),typeof this.options?.highWaterMark=="number"&&this.buffer.data.length>this.options.highWaterMark)return new Promise(r=>this.pendingWritePromises.push(r))}}error(a){this.state.destroyed||(this.state.flowing?this.emitError(a):this.buffer.error.push(a))}end(a){this.state.destroyed||(typeof a<"u"&&this.write(a),this.state.flowing?(this.emitEnd(),this.destroy()):this.state.ended=!0)}emitData(a){this.listeners.data.slice(0).forEach(r=>r(a))}emitError(a){this.listeners.error.length===0?(0,_.onUnexpectedError)(a):this.listeners.error.slice(0).forEach(r=>r(a))}emitEnd(){this.listeners.end.slice(0).forEach(a=>a())}on(a,r){if(!this.state.destroyed)switch(a){case"data":this.listeners.data.push(r),this.resume();break;case"end":this.listeners.end.push(r),this.state.flowing&&this.flowEnd()&&this.destroy();break;case"error":this.listeners.error.push(r),this.state.flowing&&this.flowErrors();break}}removeListener(a,r){if(this.state.destroyed)return;let h;switch(a){case"data":h=this.listeners.data;break;case"end":h=this.listeners.end;break;case"error":h=this.listeners.error;break}if(h){const c=h.indexOf(r);c>=0&&h.splice(c,1)}}flowData(){if(this.buffer.data.length>0){const a=this.reducer(this.buffer.data);this.emitData(a),this.buffer.data.length=0;const r=[...this.pendingWritePromises];this.pendingWritePromises.length=0,r.forEach(h=>h())}}flowErrors(){if(this.listeners.error.length>0){for(const a of this.buffer.error)this.emitError(a);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 A(t,a){const r=[];let h;for(;(h=t.read())!==null;)r.push(h);return a(r)}e.consumeReadable=A;function O(t,a,r){const h=[];let c;for(;(c=t.read())!==null&&h.length0?a(h):{read:()=>{if(h.length>0)return h.shift();if(typeof c<"u"){const w=c;return c=void 0,w}return t.read()}}}e.peekReadable=O;function I(t,a){return new Promise((r,h)=>{const c=[];U(t,{onData:w=>{a&&c.push(w)},onError:w=>{a?h(w):r(void 0)},onEnd:()=>{r(a?a(c):void 0)}})})}e.consumeStream=I;function U(t,a){let r=!1;return t.on("error",h=>{r||a.onError(h)}),t.on("end",()=>{r||a.onEnd()}),t.on("data",h=>{r||a.onData(h)}),(0,W.toDisposable)(()=>r=!0)}e.listenStream=U;function m(t,a){return new Promise((r,h)=>{const c=new W.DisposableStore,w=[],i=d=>{if(w.push(d),w.length>a)return c.dispose(),t.pause(),r({stream:t,buffer:w,ended:!1})},l=d=>h(d),s=()=>r({stream:t,buffer:w,ended:!0});c.add((0,W.toDisposable)(()=>t.removeListener("error",l))),t.on("error",l),c.add((0,W.toDisposable)(()=>t.removeListener("end",s))),t.on("end",s),c.add((0,W.toDisposable)(()=>t.removeListener("data",i))),t.on("data",i)})}e.peekStream=m;function f(t,a){const r=T(a);return r.end(t),r}e.toStream=f;function o(){const t=T(()=>{throw new Error("not supported")});return t.end(),t}e.emptyStream=o;function g(t){let a=!1;return{read:()=>a?null:(a=!0,t)}}e.toReadable=g;function u(t,a,r){const h=T(r);return U(t,{onData:c=>h.write(a.data(c)),onError:c=>h.error(a.error?a.error(c):c),onEnd:()=>h.end()}),h}e.transform=u;function v(t,a,r){let h=!1;return{read:()=>{const c=a.read();return h?c:(h=!0,c!==null?r([t,c]):t)}}}e.prefixedReadable=v;function n(t,a,r){let h=!1;const c=T(r);return U(a,{onData:w=>h?c.write(w):(h=!0,c.write(r([t,w]))),onError:w=>c.error(w),onEnd:()=>{h||(h=!0,c.write(t)),c.end()}}),c}e.prefixedStream=n}),define(ce[15],ue([0,1,35]),function(oe,e,_){"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 W=typeof Buffer<"u";let M,j;class B{static alloc(d){return W?new B(Buffer.allocUnsafe(d)):new B(new Uint8Array(d))}static wrap(d){return W&&!Buffer.isBuffer(d)&&(d=Buffer.from(d.buffer,d.byteOffset,d.byteLength)),new B(d)}static fromString(d,D){return!(D?.dontUseNodeBuffer||!1)&&W?new B(Buffer.from(d)):(M||(M=new TextEncoder),new B(M.encode(d)))}static fromByteArray(d){const D=B.alloc(d.length);for(let K=0,ie=d.length;K"u"){D=0;for(let te=0,le=d.length;te>>0|s[d+1]<<8>>>0}e.readUInt16LE=T;function S(s,d,D){s[D+0]=d&255,d=d>>>8,s[D+1]=d&255}e.writeUInt16LE=S;function A(s,d){return s[d]*2**24+s[d+1]*2**16+s[d+2]*2**8+s[d+3]}e.readUInt32BE=A;function O(s,d,D){s[D+3]=d,d=d>>>8,s[D+2]=d,d=d>>>8,s[D+1]=d,d=d>>>8,s[D]=d}e.writeUInt32BE=O;function I(s,d){return s[d+0]<<0>>>0|s[d+1]<<8>>>0|s[d+2]<<16>>>0|s[d+3]<<24>>>0}e.readUInt32LE=I;function U(s,d,D){s[D+0]=d&255,d=d>>>8,s[D+1]=d&255,d=d>>>8,s[D+2]=d&255,d=d>>>8,s[D+3]=d&255}e.writeUInt32LE=U;function m(s,d){return s[d]}e.readUInt8=m;function f(s,d,D){s[D]=d}e.writeUInt8=f;function o(s){return _.consumeReadable(s,d=>B.concat(d))}e.readableToBuffer=o;function g(s){return _.toReadable(s)}e.bufferToReadable=g;function u(s){return _.consumeStream(s,d=>B.concat(d))}e.streamToBuffer=u;async function v(s){return s.ended?B.concat(s.buffer):B.concat([...s.buffer,await u(s.stream)])}e.bufferedStreamToBuffer=v;function n(s){return _.toStream(s,d=>B.concat(d))}e.bufferToStream=n;function t(s){return _.transform(s,{data:d=>typeof d=="string"?B.fromString(d):B.wrap(d)},d=>B.concat(d))}e.streamToBufferReadableStream=t;function a(s){return _.newWriteableStream(d=>B.concat(d),s)}e.newWriteableBufferStream=a;function r(s,d){return _.prefixedReadable(s,d,D=>B.concat(D))}e.prefixedBufferReadable=r;function h(s,d){return _.prefixedStream(s,d,D=>B.concat(D))}e.prefixedBufferStream=h;function c(s){let d=0,D=0,K=0;const ie=new Uint8Array(Math.floor(s.length/4*3)),te=ae=>{switch(D){case 3:ie[K++]=d|ae,D=0;break;case 2:ie[K++]=d|ae>>>2,d=ae<<6,D=3;break;case 1:ie[K++]=d|ae>>>4,d=ae<<4,D=2;break;default:d=ae<<2,D=1}};for(let ae=0;ae=65&&he<=90)te(he-65);else if(he>=97&&he<=122)te(he-97+26);else if(he>=48&&he<=57)te(he-48+52);else if(he===43||he===45)te(62);else if(he===47||he===95)te(63);else{if(he===61)break;throw new SyntaxError(`Unexpected base64 character ${s[ae]}`)}}const le=K;for(;D>0;)te(0);return B.wrap(ie).slice(0,le)}e.decodeBase64=c;const w="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_";function l({buffer:s},d=!0,D=!1){const K=D?i:w;let ie="";const te=s.byteLength%3;let le=0;for(;le>>2],ie+=K[(ae<<4|he>>>4)&63],ie+=K[(he<<2|fe>>>6)&63],ie+=K[fe&63]}if(te===1){const ae=s[le+0];ie+=K[ae>>>2],ie+=K[ae<<4&63],d&&(ie+="==")}else if(te===2){const ae=s[le+0],he=s[le+1];ie+=K[ae>>>2],ie+=K[(ae<<4|he>>>4)&63],ie+=K[he<<2&63],d&&(ie+="=")}return ie}e.encodeBase64=l}),define(ce[10],ue([0,1]),function(oe,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 _(h){return typeof h=="string"}e.isString=_;function W(h){return Array.isArray(h)&&h.every(c=>_(c))}e.isStringArray=W;function M(h){return typeof h=="object"&&h!==null&&!Array.isArray(h)&&!(h instanceof RegExp)&&!(h instanceof Date)}e.isObject=M;function j(h){const c=Object.getPrototypeOf(Uint8Array);return typeof h=="object"&&h instanceof c}e.isTypedArray=j;function B(h){return typeof h=="number"&&!isNaN(h)}e.isNumber=B;function T(h){return!!h&&typeof h[Symbol.iterator]=="function"}e.isIterable=T;function S(h){return h===!0||h===!1}e.isBoolean=S;function A(h){return typeof h>"u"}e.isUndefined=A;function O(h){return!I(h)}e.isDefined=O;function I(h){return A(h)||h===null}e.isUndefinedOrNull=I;function U(h,c){if(!h)throw new Error(c?`Unexpected type, expected '${c}'`:"Unexpected type")}e.assertType=U;function m(h){if(I(h))throw new Error("Assertion Failed: argument is undefined or null");return h}e.assertIsDefined=m;function f(...h){const c=[];for(let w=0;w0&&h.every(u)}e.areFunctions=v;function n(h,c){const w=Math.min(h.length,c.length);for(let i=0;i"u"?null:h}e.withUndefinedAsNull=r}),define(ce[36],ue([0,1,10]),function(oe,e,_){"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 W(u){if(!u||typeof u!="object"||u instanceof RegExp)return u;const v=Array.isArray(u)?[]:{};return Object.entries(u).forEach(([n,t])=>{v[n]=t&&typeof t=="object"?W(t):t}),v}e.deepClone=W;function M(u){if(!u||typeof u!="object")return u;const v=[u];for(;v.length>0;){const n=v.shift();Object.freeze(n);for(const t in n)if(j.call(n,t)){const a=n[t];typeof a=="object"&&!Object.isFrozen(a)&&!(0,_.isTypedArray)(a)&&v.push(a)}}return u}e.deepFreeze=M;const j=Object.prototype.hasOwnProperty;function B(u,v){return T(u,v,new Set)}e.cloneAndChange=B;function T(u,v,n){if((0,_.isUndefinedOrNull)(u))return u;const t=v(u);if(typeof t<"u")return t;if(Array.isArray(u)){const a=[];for(const r of u)a.push(T(r,v,n));return a}if((0,_.isObject)(u)){if(n.has(u))throw new Error("Cannot clone recursive data-structure");n.add(u);const a={};for(const r in u)j.call(u,r)&&(a[r]=T(u[r],v,n));return n.delete(u),a}return u}function S(u,v,n=!0){return(0,_.isObject)(u)?((0,_.isObject)(v)&&Object.keys(v).forEach(t=>{t in u?n&&((0,_.isObject)(u[t])&&(0,_.isObject)(v[t])?S(u[t],v[t],n):u[t]=v[t]):u[t]=v[t]}),u):v}e.mixin=S;function A(u,v){if(u===v)return!0;if(u==null||v===null||v===void 0||typeof u!=typeof v||typeof u!="object"||Array.isArray(u)!==Array.isArray(v))return!1;let n,t;if(Array.isArray(u)){if(u.length!==v.length)return!1;for(n=0;n{if((0,_.isObject)(t)||Array.isArray(t)){if(v.has(t))return"[Circular]";v.add(t)}return t})}e.safeStringify=O;function I(u,v){const n=Object.create(null);return!u||!v||Object.keys(v).forEach(a=>{const r=u[a],h=v[a];A(r,h)||(n[a]=h)}),n}e.distinct=I;function U(u,v){const n=v.toLowerCase(),t=Object.keys(u).find(a=>a.toLowerCase()===n);return t?u[t]:u[v]}e.getCaseInsensitive=U;function m(u,v){const n=Object.create(null);for(const[t,a]of Object.entries(u))v(t,a)&&(n[t]=a);return n}e.filter=m;function f(u){let v=[],n=Object.getPrototypeOf(u);for(;Object.prototype!==n;)v=v.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return v}e.getAllPropertyNames=f;function o(u){const v=[];for(const n of f(u))typeof u[n]=="function"&&v.push(n);return v}e.getAllMethodNames=o;function g(u,v){const n=a=>function(){const r=Array.prototype.slice.call(arguments,0);return v(a,r)},t={};for(const a of u)t[a]=n(a);return t}e.createProxyObject=g}),define(ce[37],ue([21,22]),function(oe,e){return oe.create("vs/base/common/errorMessage",e)}),define(ce[38],ue([0,1,13,10,37]),function(oe,e,_,W,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createErrorWithActions=e.isErrorWithActions=e.toErrorMessage=void 0;function j(I,U){return U&&(I.stack||I.stacktrace)?M.localize(0,null,T(I),B(I.stack)||B(I.stacktrace)):T(I)}function B(I){return Array.isArray(I)?I.join(` `):I}function T(I){return typeof I.code=="string"&&typeof I.errno=="number"&&typeof I.syscall=="string"?M.localize(1,null,I.message):I.message||M.localize(2,null)}function S(I=null,U=!1){if(!I)return M.localize(3,null);if(Array.isArray(I)){const m=_.coalesce(I),f=S(m[0],U);return m.length>1?M.localize(4,null,f,m.length):f}if(W.isString(I))return I;if(I.detail){const m=I.detail;if(m.error)return j(m.error,U);if(m.exception)return j(m.exception,U)}return I.stack?j(I,U):I.message?I.message:M.localize(5,null)}e.toErrorMessage=S;function A(I){const U=I;return U instanceof Error&&Array.isArray(U.actions)}e.isErrorWithActions=A;function O(I,U){let m;return typeof I=="string"?m=new Error(I):m=I,m.actions=U,m}e.createErrorWithActions=O}),define(ce[39],ue([21,22]),function(oe,e){return oe.create("vs/base/common/platform",e)}),define(ce[2],ue([0,1,39]),function(oe,e,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAndroid=e.isEdge=e.isSafari=e.isFirefox=e.isChrome=e.isLittleEndian=e.OS=e.OperatingSystem=e.setTimeout0=e.setTimeout0IsFaster=e.translationsConfigFile=e.locale=e.Language=e.language=e.userAgent=e.platform=e.isCI=e.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 W=!1,M=!1,j=!1,B=!1,T=!1,S=!1,A=!1,O=!1,I=!1,U=!1,m,f=e.LANGUAGE_DEFAULT,o,g;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 v=typeof u?.versions?.electron=="string",n=v&&u?.type==="renderer";if(typeof navigator=="object"&&!n)g=navigator.userAgent,W=g.indexOf("Windows")>=0,M=g.indexOf("Macintosh")>=0,O=(g.indexOf("Macintosh")>=0||g.indexOf("iPad")>=0||g.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,j=g.indexOf("Linux")>=0,U=g?.indexOf("Mobi")>=0,S=!0,m=_.getConfiguredDefaultLocale(_.localize(0,null))||e.LANGUAGE_DEFAULT,f=m;else if(typeof u=="object"){W=u.platform==="win32",M=u.platform==="darwin",j=u.platform==="linux",B=j&&!!u.env.SNAP&&!!u.env.SNAP_REVISION,A=v,I=!!u.env.CI||!!u.env.BUILD_ARTIFACTSTAGINGDIRECTORY,m=e.LANGUAGE_DEFAULT,f=e.LANGUAGE_DEFAULT;const s=u.env.VSCODE_NLS_CONFIG;if(s)try{const d=JSON.parse(s),D=d.availableLanguages["*"];m=d.locale,f=D||e.LANGUAGE_DEFAULT,o=d._translationsConfigFile}catch{}T=!0}else console.error("Unable to resolve platform.");var t;(function(s){s[s.Web=0]="Web",s[s.Mac=1]="Mac",s[s.Linux=2]="Linux",s[s.Windows=3]="Windows"})(t=e.Platform||(e.Platform={}));function a(s){switch(s){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}e.PlatformToString=a;let r=0;M?r=1:W?r=3:j&&(r=2),e.isWindows=W,e.isMacintosh=M,e.isLinux=j,e.isLinuxSnap=B,e.isNative=T,e.isElectron=A,e.isWeb=S,e.isWebWorker=S&&typeof e.globals.importScripts=="function",e.isIOS=O,e.isMobile=U,e.isCI=I,e.platform=r,e.userAgent=g,e.language=f;var h;(function(s){function d(){return e.language}s.value=d;function D(){return e.language.length===2?e.language==="en":e.language.length>=3?e.language[0]==="e"&&e.language[1]==="n"&&e.language[2]==="-":!1}s.isDefaultVariant=D;function K(){return e.language==="en"}s.isDefault=K})(h=e.Language||(e.Language={})),e.locale=m,e.translationsConfigFile=o,e.setTimeout0IsFaster=typeof e.globals.postMessage=="function"&&!e.globals.importScripts,e.setTimeout0=(()=>{if(e.setTimeout0IsFaster){const s=[];e.globals.addEventListener("message",D=>{if(D.data&&D.data.vscodeScheduleAsyncWork)for(let K=0,ie=s.length;K{const K=++d;s.push({id:K,callback:D}),e.globals.postMessage({vscodeScheduleAsyncWork:K},"*")}}return s=>setTimeout(s)})();var c;(function(s){s[s.Windows=1]="Windows",s[s.Macintosh=2]="Macintosh",s[s.Linux=3]="Linux"})(c=e.OperatingSystem||(e.OperatingSystem={})),e.OS=M||O?2:W?1:3;let w=!0,i=!1;function l(){if(!i){i=!0;const s=new Uint8Array(2);s[0]=1,s[1]=2,w=new Uint16Array(s.buffer)[0]===(2<<8)+1}return w}e.isLittleEndian=l,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(ce[23],ue([0,1,2]),function(oe,e,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arch=e.platform=e.env=e.cwd=void 0;let W;if(typeof _.globals.vscode<"u"&&typeof _.globals.vscode.process<"u"){const M=_.globals.vscode.process;W={get platform(){return M.platform},get arch(){return M.arch},get env(){return M.env},cwd(){return M.cwd()}}}else typeof process<"u"?W={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:W={get platform(){return _.isWindows?"win32":_.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};e.cwd=W.cwd,e.env=W.env,e.platform=W.platform,e.arch=W.arch}),define(ce[3],ue([0,1,23]),function(oe,e,_){"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 W=65,M=97,j=90,B=122,T=46,S=47,A=92,O=58,I=63;class U extends Error{constructor(t,a,r){let h;typeof a=="string"&&a.indexOf("not ")===0?(h="must not be",a=a.replace(/^not /,"")):h="must be";const c=t.indexOf(".")!==-1?"property":"argument";let w=`The "${t}" ${c} ${h} of type ${a}`;w+=`. Received type ${typeof r}`,super(w),this.code="ERR_INVALID_ARG_TYPE"}}function m(n,t){if(typeof n!="string")throw new U(t,"string",n)}function f(n){return n===S||n===A}function o(n){return n===S}function g(n){return n>=W&&n<=j||n>=M&&n<=B}function u(n,t,a,r){let h="",c=0,w=-1,i=0,l=0;for(let s=0;s<=n.length;++s){if(s2){const d=h.lastIndexOf(a);d===-1?(h="",c=0):(h=h.slice(0,d),c=h.length-1-h.lastIndexOf(a)),w=s,i=0;continue}else if(h.length!==0){h="",c=0,w=s,i=0;continue}}t&&(h+=h.length>0?`${a}..`:"..",c=2)}else h.length>0?h+=`${a}${n.slice(w+1,s)}`:h=n.slice(w+1,s),c=s-w-1;w=s,i=0}else l===T&&i!==-1?++i:i=-1}return h}function v(n,t){if(t===null||typeof t!="object")throw new U("pathObject","Object",t);const a=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return a?a===t.root?`${a}${r}`:`${a}${n}${r}`:r}e.win32={resolve(...n){let t="",a="",r=!1;for(let h=n.length-1;h>=-1;h--){let c;if(h>=0){if(c=n[h],m(c,"path"),c.length===0)continue}else t.length===0?c=_.cwd():(c=_.env[`=${t}`]||_.cwd(),(c===void 0||c.slice(0,2).toLowerCase()!==t.toLowerCase()&&c.charCodeAt(2)===A)&&(c=`${t}\\`));const w=c.length;let i=0,l="",s=!1;const d=c.charCodeAt(0);if(w===1)f(d)&&(i=1,s=!0);else if(f(d))if(s=!0,f(c.charCodeAt(1))){let D=2,K=D;for(;D2&&f(c.charCodeAt(2))&&(s=!0,i=3));if(l.length>0)if(t.length>0){if(l.toLowerCase()!==t.toLowerCase())continue}else t=l;if(r){if(t.length>0)break}else if(a=`${c.slice(i)}\\${a}`,r=s,s&&t.length>0)break}return a=u(a,!r,"\\",f),r?`${t}\\${a}`:`${t}${a}`||"."},normalize(n){m(n,"path");const t=n.length;if(t===0)return".";let a=0,r,h=!1;const c=n.charCodeAt(0);if(t===1)return o(c)?"\\":n;if(f(c))if(h=!0,f(n.charCodeAt(1))){let i=2,l=i;for(;i2&&f(n.charCodeAt(2))&&(h=!0,a=3));let w=a0&&f(n.charCodeAt(t-1))&&(w+="\\"),r===void 0?h?`\\${w}`:w:h?`${r}\\${w}`:`${r}${w}`},isAbsolute(n){m(n,"path");const t=n.length;if(t===0)return!1;const a=n.charCodeAt(0);return f(a)||t>2&&g(a)&&n.charCodeAt(1)===O&&f(n.charCodeAt(2))},join(...n){if(n.length===0)return".";let t,a;for(let c=0;c0&&(t===void 0?t=a=w:t+=`\\${w}`)}if(t===void 0)return".";let r=!0,h=0;if(typeof a=="string"&&f(a.charCodeAt(0))){++h;const c=a.length;c>1&&f(a.charCodeAt(1))&&(++h,c>2&&(f(a.charCodeAt(2))?++h:r=!1))}if(r){for(;h=2&&(t=`\\${t.slice(h)}`)}return e.win32.normalize(t)},relative(n,t){if(m(n,"from"),m(t,"to"),n===t)return"";const a=e.win32.resolve(n),r=e.win32.resolve(t);if(a===r||(n=a.toLowerCase(),t=r.toLowerCase(),n===t))return"";let h=0;for(;hh&&n.charCodeAt(c-1)===A;)c--;const w=c-h;let i=0;for(;ii&&t.charCodeAt(l-1)===A;)l--;const s=l-i,d=wd){if(t.charCodeAt(i+K)===A)return r.slice(i+K+1);if(K===2)return r.slice(i+K)}w>d&&(n.charCodeAt(h+K)===A?D=K:K===2&&(D=3)),D===-1&&(D=0)}let ie="";for(K=h+D+1;K<=c;++K)(K===c||n.charCodeAt(K)===A)&&(ie+=ie.length===0?"..":"\\..");return i+=D,ie.length>0?`${ie}${r.slice(i,l)}`:(r.charCodeAt(i)===A&&++i,r.slice(i,l))},toNamespacedPath(n){if(typeof n!="string")return n;if(n.length===0)return"";const t=e.win32.resolve(n);if(t.length<=2)return n;if(t.charCodeAt(0)===A){if(t.charCodeAt(1)===A){const a=t.charCodeAt(2);if(a!==I&&a!==T)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(g(t.charCodeAt(0))&&t.charCodeAt(1)===O&&t.charCodeAt(2)===A)return`\\\\?\\${t}`;return n},dirname(n){m(n,"path");const t=n.length;if(t===0)return".";let a=-1,r=0;const h=n.charCodeAt(0);if(t===1)return f(h)?n:".";if(f(h)){if(a=r=1,f(n.charCodeAt(1))){let i=2,l=i;for(;i2&&f(n.charCodeAt(2))?3:2,r=a);let c=-1,w=!0;for(let i=t-1;i>=r;--i)if(f(n.charCodeAt(i))){if(!w){c=i;break}}else w=!1;if(c===-1){if(a===-1)return".";c=a}return n.slice(0,c)},basename(n,t){t!==void 0&&m(t,"ext"),m(n,"path");let a=0,r=-1,h=!0,c;if(n.length>=2&&g(n.charCodeAt(0))&&n.charCodeAt(1)===O&&(a=2),t!==void 0&&t.length>0&&t.length<=n.length){if(t===n)return"";let w=t.length-1,i=-1;for(c=n.length-1;c>=a;--c){const l=n.charCodeAt(c);if(f(l)){if(!h){a=c+1;break}}else i===-1&&(h=!1,i=c+1),w>=0&&(l===t.charCodeAt(w)?--w===-1&&(r=c):(w=-1,r=i))}return a===r?r=i:r===-1&&(r=n.length),n.slice(a,r)}for(c=n.length-1;c>=a;--c)if(f(n.charCodeAt(c))){if(!h){a=c+1;break}}else r===-1&&(h=!1,r=c+1);return r===-1?"":n.slice(a,r)},extname(n){m(n,"path");let t=0,a=-1,r=0,h=-1,c=!0,w=0;n.length>=2&&n.charCodeAt(1)===O&&g(n.charCodeAt(0))&&(t=r=2);for(let i=n.length-1;i>=t;--i){const l=n.charCodeAt(i);if(f(l)){if(!c){r=i+1;break}continue}h===-1&&(c=!1,h=i+1),l===T?a===-1?a=i:w!==1&&(w=1):a!==-1&&(w=-1)}return a===-1||h===-1||w===0||w===1&&a===h-1&&a===r+1?"":n.slice(a,h)},format:v.bind(null,"\\"),parse(n){m(n,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return t;const a=n.length;let r=0,h=n.charCodeAt(0);if(a===1)return f(h)?(t.root=t.dir=n,t):(t.base=t.name=n,t);if(f(h)){if(r=1,f(n.charCodeAt(1))){let D=2,K=D;for(;D0&&(t.root=n.slice(0,r));let c=-1,w=r,i=-1,l=!0,s=n.length-1,d=0;for(;s>=r;--s){if(h=n.charCodeAt(s),f(h)){if(!l){w=s+1;break}continue}i===-1&&(l=!1,i=s+1),h===T?c===-1?c=s:d!==1&&(d=1):c!==-1&&(d=-1)}return i!==-1&&(c===-1||d===0||d===1&&c===i-1&&c===w+1?t.base=t.name=n.slice(w,i):(t.name=n.slice(w,c),t.base=n.slice(w,i),t.ext=n.slice(c,i))),w>0&&w!==r?t.dir=n.slice(0,w-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},e.posix={resolve(...n){let t="",a=!1;for(let r=n.length-1;r>=-1&&!a;r--){const h=r>=0?n[r]:_.cwd();m(h,"path"),h.length!==0&&(t=`${h}/${t}`,a=h.charCodeAt(0)===S)}return t=u(t,!a,"/",o),a?`/${t}`:t.length>0?t:"."},normalize(n){if(m(n,"path"),n.length===0)return".";const t=n.charCodeAt(0)===S,a=n.charCodeAt(n.length-1)===S;return n=u(n,!t,"/",o),n.length===0?t?"/":a?"./":".":(a&&(n+="/"),t?`/${n}`:n)},isAbsolute(n){return m(n,"path"),n.length>0&&n.charCodeAt(0)===S},join(...n){if(n.length===0)return".";let t;for(let a=0;a0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?".":e.posix.normalize(t)},relative(n,t){if(m(n,"from"),m(t,"to"),n===t||(n=e.posix.resolve(n),t=e.posix.resolve(t),n===t))return"";const a=1,r=n.length,h=r-a,c=1,w=t.length-c,i=hi){if(t.charCodeAt(c+s)===S)return t.slice(c+s+1);if(s===0)return t.slice(c+s)}else h>i&&(n.charCodeAt(a+s)===S?l=s:s===0&&(l=0));let d="";for(s=a+l+1;s<=r;++s)(s===r||n.charCodeAt(s)===S)&&(d+=d.length===0?"..":"/..");return`${d}${t.slice(c+l)}`},toNamespacedPath(n){return n},dirname(n){if(m(n,"path"),n.length===0)return".";const t=n.charCodeAt(0)===S;let a=-1,r=!0;for(let h=n.length-1;h>=1;--h)if(n.charCodeAt(h)===S){if(!r){a=h;break}}else r=!1;return a===-1?t?"/":".":t&&a===1?"//":n.slice(0,a)},basename(n,t){t!==void 0&&m(t,"ext"),m(n,"path");let a=0,r=-1,h=!0,c;if(t!==void 0&&t.length>0&&t.length<=n.length){if(t===n)return"";let w=t.length-1,i=-1;for(c=n.length-1;c>=0;--c){const l=n.charCodeAt(c);if(l===S){if(!h){a=c+1;break}}else i===-1&&(h=!1,i=c+1),w>=0&&(l===t.charCodeAt(w)?--w===-1&&(r=c):(w=-1,r=i))}return a===r?r=i:r===-1&&(r=n.length),n.slice(a,r)}for(c=n.length-1;c>=0;--c)if(n.charCodeAt(c)===S){if(!h){a=c+1;break}}else r===-1&&(h=!1,r=c+1);return r===-1?"":n.slice(a,r)},extname(n){m(n,"path");let t=-1,a=0,r=-1,h=!0,c=0;for(let w=n.length-1;w>=0;--w){const i=n.charCodeAt(w);if(i===S){if(!h){a=w+1;break}continue}r===-1&&(h=!1,r=w+1),i===T?t===-1?t=w:c!==1&&(c=1):t!==-1&&(c=-1)}return t===-1||r===-1||c===0||c===1&&t===r-1&&t===a+1?"":n.slice(t,r)},format:v.bind(null,"/"),parse(n){m(n,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(n.length===0)return t;const a=n.charCodeAt(0)===S;let r;a?(t.root="/",r=1):r=0;let h=-1,c=0,w=-1,i=!0,l=n.length-1,s=0;for(;l>=r;--l){const d=n.charCodeAt(l);if(d===S){if(!i){c=l+1;break}continue}w===-1&&(i=!1,w=l+1),d===T?h===-1?h=l:s!==1&&(s=1):h!==-1&&(s=-1)}if(w!==-1){const d=c===0&&a?1:c;h===-1||s===0||s===1&&h===w-1&&h===c+1?t.base=t.name=n.slice(d,w):(t.name=n.slice(d,h),t.base=n.slice(d,w),t.ext=n.slice(h,w))}return c>0?t.dir=n.slice(0,c-1):a&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null},e.posix.win32=e.win32.win32=e.win32,e.posix.posix=e.win32.posix=e.posix,e.normalize=_.platform==="win32"?e.win32.normalize:e.posix.normalize,e.isAbsolute=_.platform==="win32"?e.win32.isAbsolute:e.posix.isAbsolute,e.join=_.platform==="win32"?e.win32.join:e.posix.join,e.resolve=_.platform==="win32"?e.win32.resolve:e.posix.resolve,e.relative=_.platform==="win32"?e.win32.relative:e.posix.relative,e.dirname=_.platform==="win32"?e.win32.dirname:e.posix.dirname,e.basename=_.platform==="win32"?e.win32.basename:e.posix.basename,e.extname=_.platform==="win32"?e.win32.extname:e.posix.extname,e.format=_.platform==="win32"?e.win32.format:e.posix.format,e.parse=_.platform==="win32"?e.win32.parse:e.posix.parse,e.toNamespacedPath=_.platform==="win32"?e.win32.toNamespacedPath:e.posix.toNamespacedPath,e.sep=_.platform==="win32"?e.win32.sep:e.posix.sep,e.delimiter=_.platform==="win32"?e.win32.delimiter:e.posix.delimiter}),define(ce[24],ue([0,1,2]),function(oe,e,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeDangerousEnvVariables=e.sanitizeProcessEnvironment=e.TerminateResponseCode=e.Source=void 0;var W;(function(T){T[T.stdout=0]="stdout",T[T.stderr=1]="stderr"})(W=e.Source||(e.Source={}));var M;(function(T){T[T.Success=0]="Success",T[T.Unknown=1]="Unknown",T[T.AccessDenied=2]="AccessDenied",T[T.ProcessNotFound=3]="ProcessNotFound"})(M=e.TerminateResponseCode||(e.TerminateResponseCode={}));function j(T,...S){const A=S.reduce((U,m)=>(U[m]=!0,U),{}),O=[/^ELECTRON_.+$/,/^VSCODE_(?!SHELL_LOGIN).+$/,/^SNAP(|_.*)$/,/^GDK_PIXBUF_.+$/];Object.keys(T).filter(U=>!A[U]).forEach(U=>{for(let m=0;mM.Disposable.None;function s(q){if(S){const{onListenerDidAdd:G}=q,J=f.create();let C=0;q.onListenerDidAdd=()=>{++C===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),J.print()),G?.()}}}function d(q,G){return se(q,()=>{},0,void 0,void 0,G)}l.defer=d;function D(q,G=0,J){return l.debounce(q,(C,p)=>C?(C.push(p),C):[p],G,void 0,void 0,J)}l.accumulate=D;function K(q){return(G,J=null,C)=>{let p=!1,F;return F=q(H=>{if(!p)return F?F.dispose():p=!0,G.call(J,H)},null,C),p&&F.dispose(),F}}l.once=K;function ie(q,G,J){return ee((C,p=null,F)=>q(H=>C.call(p,G(H)),null,F),J)}l.map=ie;function te(q,G,J){return ee((C,p=null,F)=>q(H=>{G(H),C.call(p,H)},null,F),J)}l.forEach=te;function le(q,G,J){return ee((C,p=null,F)=>q(H=>G(H)&&C.call(p,H),null,F),J)}l.filter=le;function ae(q){return q}l.signal=ae;function he(...q){return(G,J=null,C)=>(0,M.combinedDisposable)(...q.map(p=>p(F=>G.call(J,F),null,C)))}l.any=he;function fe(q,G,J,C){let p=J;return ie(q,F=>(p=G(p,F),p),C)}l.reduce=fe;function ee(q,G){let J;const C={onFirstListenerAdd(){J=q(p.fire,p)},onLastListenerRemove(){J?.dispose()}};G||s(C);const p=new g(C);return G?.add(p),p.event}function se(q,G,J=100,C=!1,p,F){let H,X,de,ge=0;const ye={leakWarningThreshold:p,onFirstListenerAdd(){H=q(be=>{ge++,X=G(X,be),C&&!de&&(we.fire(X),X=void 0),clearTimeout(de),de=setTimeout(()=>{const Ce=X;X=void 0,de=void 0,(!C||ge>1)&&we.fire(Ce),ge=0},J)})},onLastListenerRemove(){H.dispose()}};F||s(ye);const we=new g(ye);return F?.add(we),we.event}l.debounce=se;function R(q,G=(C,p)=>C===p,J){let C=!0,p;return le(q,F=>{const H=C||!G(F,p);return C=!1,p=F,H},J)}l.latch=R;function x(q,G,J){return[l.filter(q,G,J),l.filter(q,C=>!G(C),J)]}l.split=x;function L(q,G=!1,J=[]){let C=J.slice(),p=q(X=>{C?C.push(X):H.fire(X)});const F=()=>{C?.forEach(X=>H.fire(X)),C=null},H=new g({onFirstListenerAdd(){p||(p=q(X=>H.fire(X)))},onFirstListenerDidAdd(){C&&(G?setTimeout(F):F())},onLastListenerRemove(){p&&p.dispose(),p=null}});return H.event}l.buffer=L;class y{constructor(G){this.event=G,this.disposables=new M.DisposableStore}map(G){return new y(ie(this.event,G,this.disposables))}forEach(G){return new y(te(this.event,G,this.disposables))}filter(G){return new y(le(this.event,G,this.disposables))}reduce(G,J){return new y(fe(this.event,G,J,this.disposables))}latch(){return new y(R(this.event,void 0,this.disposables))}debounce(G,J=100,C=!1,p){return new y(se(this.event,G,J,C,p,this.disposables))}on(G,J,C){return this.event(G,J,C)}once(G,J,C){return K(this.event)(G,J,C)}dispose(){this.disposables.dispose()}}function P(q){return new y(q)}l.chain=P;function N(q,G,J=C=>C){const C=(...X)=>H.fire(J(...X)),p=()=>q.on(G,C),F=()=>q.removeListener(G,C),H=new g({onFirstListenerAdd:p,onLastListenerRemove:F});return H.event}l.fromNodeEventEmitter=N;function Q(q,G,J=C=>C){const C=(...X)=>H.fire(J(...X)),p=()=>q.addEventListener(G,C),F=()=>q.removeEventListener(G,C),H=new g({onFirstListenerAdd:p,onLastListenerRemove:F});return H.event}l.fromDOMEventEmitter=Q;function Z(q){return new Promise(G=>K(q)(G))}l.toPromise=Z;function V(q,G){return G(void 0),q(J=>G(J))}l.runAndSubscribe=V;function E(q,G){let J=null;function C(F){J?.dispose(),J=new M.DisposableStore,G(F,J)}C(void 0);const p=q(F=>C(F));return(0,M.toDisposable)(()=>{p.dispose(),J?.dispose()})}l.runAndSubscribeWithStore=E;class k{constructor(G,J){this.obs=G,this._counter=0,this._hasChanged=!1;const C={onFirstListenerAdd:()=>{G.addObserver(this)},onLastListenerRemove:()=>{G.removeObserver(this)}};J||s(C),this.emitter=new g(C),J&&J.add(this.emitter)}beginUpdate(G){this._counter++}handleChange(G,J){this._hasChanged=!0}endUpdate(G){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function z(q,G){return new k(q,G).emitter.event}l.fromObservable=z})(A=e.Event||(e.Event={}));class O{constructor(s){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${s}_${O._idPool++}`,O.all.add(this)}start(s){this._stopWatch=new B.StopWatch(!0),this.listenerCount=s}stop(){if(this._stopWatch){const s=this._stopWatch.elapsed();this.durations.push(s),this.elapsedOverall+=s,this.invocationCount+=1,this._stopWatch=void 0}}}e.EventProfiling=O,O.all=new Set,O._idPool=0;let I=-1;function U(l){const s=I;return I=l,{dispose(){I=s}}}e.setGlobalLeakWarningThreshold=U;class m{constructor(s,d=Math.random().toString(18).slice(2,5)){this.customThreshold=s,this.name=d,this._warnCountdown=0}dispose(){this._stacks&&this._stacks.clear()}check(s,d){let D=I;if(typeof this.customThreshold=="number"&&(D=this.customThreshold),D<=0||d{const ie=this._stacks.get(s.value)||0;this._stacks.set(s.value,ie-1)}}}class f{static create(){return new f(new Error().stack??"")}constructor(s){this.value=s}print(){console.warn(this.value.split(` `).slice(2).join(` `))}}class o{constructor(s,d,D){this.callback=s,this.callbackThis=d,this.stack=D,this.subscription=new M.SafeDisposable}invoke(s){this.callback.call(this.callbackThis,s)}}class g{constructor(s){this._disposed=!1,this._options=s,this._leakageMon=I>0?new m(this._options&&this._options.leakWarningThreshold):void 0,this._perfMon=this._options?._profName?new O(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){if(!this._disposed){if(this._disposed=!0,this._listeners){if(T){const s=Array.from(this._listeners);queueMicrotask(()=>{for(const d of s)d.subscription.isset()&&(d.subscription.unset(),d.stack?.print())})}this._listeners.clear()}this._deliveryQueue?.clear(this),this._options?.onLastListenerRemove?.(),this._leakageMon?.dispose()}}get event(){return this._event||(this._event=(s,d,D)=>{this._listeners||(this._listeners=new j.LinkedList);const K=this._listeners.isEmpty();K&&this._options?.onFirstListenerAdd&&this._options.onFirstListenerAdd(this);let ie,te;this._leakageMon&&this._listeners.size>=30&&(te=f.create(),ie=this._leakageMon.check(te,this._listeners.size+1)),T&&(te=te??f.create());const le=new o(s,d,te),ae=this._listeners.push(le);K&&this._options?.onFirstListenerDidAdd&&this._options.onFirstListenerDidAdd(this),this._options?.onListenerDidAdd&&this._options.onListenerDidAdd(this,s,d);const he=le.subscription.set(()=>{ie?.(),this._disposed||(ae(),this._options&&this._options.onLastListenerRemove&&(this._listeners&&!this._listeners.isEmpty()||this._options.onLastListenerRemove(this)))});return D instanceof M.DisposableStore?D.add(he):Array.isArray(D)&&D.push(he),he}),this._event}fire(s){if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new v);for(const d of this._listeners)this._deliveryQueue.push(this,d,s);this._perfMon?.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),this._perfMon?.stop()}}hasListeners(){return this._listeners?!this._listeners.isEmpty():!1}}e.Emitter=g;class u{constructor(){this._queue=new j.LinkedList}get size(){return this._queue.size}push(s,d,D){this._queue.push(new n(s,d,D))}clear(s){const d=new j.LinkedList;for(const D of this._queue)D.emitter!==s&&d.push(D);this._queue=d}deliver(){for(;this._queue.size>0;){const s=this._queue.shift();try{s.listener.invoke(s.event)}catch(d){(0,_.onUnexpectedError)(d)}}}}e.EventDeliveryQueue=u;class v extends u{clear(s){this._queue.clear()}}class n{constructor(s,d,D){this.emitter=s,this.listener=d,this.event=D}}class t extends g{async fireAsync(s,d,D){if(!!this._listeners){this._asyncDeliveryQueue||(this._asyncDeliveryQueue=new j.LinkedList);for(const K of this._listeners)this._asyncDeliveryQueue.push([K,s]);for(;this._asyncDeliveryQueue.size>0&&!d.isCancellationRequested;){const[K,ie]=this._asyncDeliveryQueue.shift(),te=[],le={...ie,token:d,waitUntil:ae=>{if(Object.isFrozen(te))throw new Error("waitUntil can NOT be called asynchronous");D&&(ae=D(ae,K.callback)),te.push(ae)}};try{K.invoke(le)}catch(ae){(0,_.onUnexpectedError)(ae);continue}Object.freeze(te),await Promise.allSettled(te).then(ae=>{for(const he of ae)he.status==="rejected"&&(0,_.onUnexpectedError)(he.reason)})}}}}e.AsyncEmitter=t;class a extends g{constructor(s){super(s),this._isPaused=0,this._eventQueue=new j.LinkedList,this._mergeFn=s?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const s=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(s))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(s){this._listeners&&(this._isPaused!==0?this._eventQueue.push(s):super.fire(s))}}e.PauseableEmitter=a;class r extends a{constructor(s){super(s),this._delay=s.delay??100}fire(s){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(s)}}e.DebounceEmitter=r;class h extends g{constructor(s){super(s),this._queuedEvents=[],this._mergeFn=s?.merge}fire(s){!this.hasListeners()||(this._queuedEvents.push(s),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(d=>super.fire(d)),this._queuedEvents=[]}))}}e.MicrotaskEmitter=h;class c{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new g({onFirstListenerAdd:()=>this.onFirstListenerAdd(),onLastListenerRemove:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(s){const d={event:s,listener:null};this.events.push(d),this.hasListeners&&this.hook(d);const D=()=>{this.hasListeners&&this.unhook(d);const K=this.events.indexOf(d);this.events.splice(K,1)};return(0,M.toDisposable)((0,W.once)(D))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(s=>this.hook(s))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(s=>this.unhook(s))}hook(s){s.listener=s.event(d=>this.emitter.fire(d))}unhook(s){s.listener&&s.listener.dispose(),s.listener=null}dispose(){this.emitter.dispose()}}e.EventMultiplexer=c;class w{constructor(){this.buffers=[]}wrapEvent(s){return(d,D,K)=>s(ie=>{const te=this.buffers[this.buffers.length-1];te?te.push(()=>d.call(D,ie)):d.call(D,ie)},void 0,K)}bufferEvents(s){const d=[];this.buffers.push(d);const D=s();return this.buffers.pop(),d.forEach(K=>K()),D}}e.EventBufferer=w;class i{constructor(){this.listening=!1,this.inputEvent=A.None,this.inputEventListener=M.Disposable.None,this.emitter=new g({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(s){this.inputEvent=s,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=s(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}e.Relay=i}),define(ce[11],ue([0,1,6]),function(oe,e,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const W=Object.freeze(function(T,S){const A=setTimeout(T.bind(S),0);return{dispose(){clearTimeout(A)}}});var M;(function(T){function S(A){return A===T.None||A===T.Cancelled||A instanceof j?!0:!A||typeof A!="object"?!1:typeof A.isCancellationRequested=="boolean"&&typeof A.onCancellationRequested=="function"}T.isCancellationToken=S,T.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:_.Event.None}),T.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:W})})(M=e.CancellationToken||(e.CancellationToken={}));class j{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?W:(this._emitter||(this._emitter=new _.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class B{constructor(S){this._token=void 0,this._parentListener=void 0,this._parentListener=S&&S.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new j),this._token}cancel(){this._token?this._token instanceof j&&this._token.cancel():this._token=M.Cancelled}dispose(S=!1){S&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof j&&this._token.dispose():this._token=M.None}}e.CancellationTokenSource=B}),define(ce[41],ue([0,1,11]),function(oe,e,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CachedFunction=e.LRUCachedFunction=e.Cache=void 0;class W{constructor(T){this.task=T,this.result=null}get(){if(this.result)return this.result;const T=new _.CancellationTokenSource,S=this.task(T.token);return this.result={promise:S,dispose:()=>{this.result=null,T.cancel(),T.dispose()}},this.result}}e.Cache=W;class M{constructor(T){this.fn=T,this.lastCache=void 0,this.lastArgKey=void 0}get(T){const S=JSON.stringify(T);return this.lastArgKey!==S&&(this.lastArgKey=S,this.lastCache=this.fn(T)),this.lastCache}}e.LRUCachedFunction=M;class j{get cachedValues(){return this._map}constructor(T){this.fn=T,this._map=new Map}get(T){if(this._map.has(T))return this._map.get(T);const S=this.fn(T);return this._map.set(T,S),S}}e.CachedFunction=j}),define(ce[5],ue([0,1,41,33]),function(oe,e,_,W){"use strict";var M;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 j(b){return!b||typeof b!="string"?!0:b.trim().length===0}e.isFalsyOrWhitespace=j;const B=/{(\d+)}/g;function T(b,...$){return $.length===0?b:b.replace(B,function(Y,ne){const re=parseInt(ne,10);return isNaN(re)||re<0||re>=$.length?Y:$[re]})}e.format=T;const S=/{([^}]+)}/g;function A(b,$){return b.replace(S,(Y,ne)=>$[ne]??Y)}e.format2=A;function O(b){return b.replace(/[<>&]/g,function($){switch($){case"<":return"<";case">":return">";case"&":return"&";default:return $}})}e.escape=O;function I(b){return b.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}e.escapeRegExpCharacters=I;function U(b,$){let Y=0;const ne=$.charCodeAt(0);for(let re=b.length-1;re>=0;re--)b.charCodeAt(re)===ne&&Y++;return Y}e.count=U;function m(b,$,Y="\u2026"){return b.length<=$?b:`${b.substr(0,$)}${Y}`}e.truncate=m;function f(b,$=" "){const Y=o(b,$);return g(Y,$)}e.trim=f;function o(b,$){if(!b||!$)return b;const Y=$.length;if(Y===0||b.length===0)return b;let ne=0;for(;b.indexOf($,ne)===ne;)ne=ne+Y;return b.substring(ne)}e.ltrim=o;function g(b,$){if(!b||!$)return b;const Y=$.length,ne=b.length;if(Y===0||ne===0)return b;let re=ne,me=-1;for(;me=b.lastIndexOf($,re-1),!(me===-1||me+Y!==re);){if(me===0)return"";re=me}return b.substring(0,re)}e.rtrim=g;function u(b){return b.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}e.convertSimple2RegExpPattern=u;function v(b){return b.replace(/\*/g,"")}e.stripWildcards=v;function n(b,$,Y={}){if(!b)throw new Error("Cannot create regex from empty string");$||(b=I(b)),Y.wholeWord&&(/\B/.test(b.charAt(0))||(b="\\b"+b),/\B/.test(b.charAt(b.length-1))||(b=b+"\\b"));let ne="";return Y.global&&(ne+="g"),Y.matchCase||(ne+="i"),Y.multiline&&(ne+="m"),Y.unicode&&(ne+="u"),new RegExp(b,ne)}e.createRegExp=n;function t(b){return b.source==="^"||b.source==="^$"||b.source==="$"||b.source==="^\\s*$"?!1:!!(b.exec("")&&b.lastIndex===0)}e.regExpLeadsToEndlessLoop=t;function a(b){return!!b.match(/([^\\]|^)(\\\\)*\\\d+/)}e.regExpContainsBackreference=a;function r(b){return(b.global?"g":"")+(b.ignoreCase?"i":"")+(b.multiline?"m":"")+(b.unicode?"u":"")}e.regExpFlags=r;function h(b){return b.split(/\r\n|\r|\n/)}e.splitLines=h;function c(b){for(let $=0,Y=b.length;$=0;Y--){const ne=b.charCodeAt(Y);if(ne!==32&&ne!==9)return Y}return-1}e.lastNonWhitespaceIndex=i;function l(b,$,Y){const ne=[];let re=0;for(const me of b.matchAll($)){if(ne.push(b.slice(re,me.index)),me.index===void 0)throw new Error("match.index should be defined");re=me.index+me[0].length,ne.push(Y(me[0],...me.slice(1),me.index,b,me.groups))}return ne.push(b.slice(re)),Promise.all(ne).then(me=>me.join(""))}e.replaceAsync=l;function s(b,$){return b<$?-1:b>$?1:0}e.compare=s;function d(b,$,Y=0,ne=b.length,re=0,me=$.length){for(;YEe)return 1}const ve=ne-Y,De=me-re;return veDe?1:0}e.compareSubstring=d;function D(b,$){return K(b,$,0,b.length,0,$.length)}e.compareIgnoreCase=D;function K(b,$,Y=0,ne=b.length,re=0,me=$.length){for(;Y=128||Ee>=128)return d(b.toLowerCase(),$.toLowerCase(),Y,ne,re,me);te(Le)&&(Le-=32),te(Ee)&&(Ee-=32);const _e=Le-Ee;if(_e!==0)return _e}const ve=ne-Y,De=me-re;return veDe?1:0}e.compareSubstringIgnoreCase=K;function ie(b){return b>=48&&b<=57}e.isAsciiDigit=ie;function te(b){return b>=97&&b<=122}e.isLowerAsciiLetter=te;function le(b){return b>=65&&b<=90}e.isUpperAsciiLetter=le;function ae(b,$){return b.length===$.length&&K(b,$)===0}e.equalsIgnoreCase=ae;function he(b,$){const Y=$.length;return $.length>b.length?!1:K(b,$,0,Y)===0}e.startsWithIgnoreCase=he;function fe(b,$){const Y=Math.min(b.length,$.length);let ne;for(ne=0;ne1){const ne=b.charCodeAt($-2);if(se(ne))return x(ne,Y)}return Y}class P{get offset(){return this._offset}constructor($,Y=0){this._str=$,this._len=$.length,this._offset=Y}setOffset($){this._offset=$}prevCodePoint(){const $=y(this._str,this._offset);return this._offset-=$>=65536?2:1,$}nextCodePoint(){const $=L(this._str,this._len,this._offset);return this._offset+=$>=65536?2:1,$}eol(){return this._offset>=this._len}}e.CodePointIterator=P;class N{get offset(){return this._iterator.offset}constructor($,Y=0){this._iterator=new P($,Y)}nextGraphemeLength(){const $=Se.getInstance(),Y=this._iterator,ne=Y.offset;let re=$.getGraphemeBreakType(Y.nextCodePoint());for(;!Y.eol();){const me=Y.offset,ve=$.getGraphemeBreakType(Y.nextCodePoint());if(Fe(re,ve)){Y.setOffset(me);break}re=ve}return Y.offset-ne}prevGraphemeLength(){const $=Se.getInstance(),Y=this._iterator,ne=Y.offset;let re=$.getGraphemeBreakType(Y.prevCodePoint());for(;Y.offset>0;){const me=Y.offset,ve=$.getGraphemeBreakType(Y.prevCodePoint());if(Fe(ve,re)){Y.setOffset(me);break}re=ve}return ne-Y.offset}eol(){return this._iterator.eol()}}e.GraphemeIterator=N;function Q(b,$){return new N(b,$).nextGraphemeLength()}e.nextCharLength=Q;function Z(b,$){return new N(b,$).prevGraphemeLength()}e.prevCharLength=Z;function V(b,$){$>0&&R(b.charCodeAt($))&&$--;const Y=$+Q(b,$);return[Y-Z(b,Y),Y]}e.getCharContainingOffset=V;function E(b){const $=new N(b);let Y=0;for(;!$.eol();)Y++,$.nextGraphemeLength();return Y}e.charCount=E;let k;function z(){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 q(b){return k||(k=z()),k.test(b)}e.containsRTL=q;const G=/^[\t\n\r\x20-\x7E]*$/;function J(b){return G.test(b)}e.isBasicASCII=J,e.UNUSUAL_LINE_TERMINATORS=/[\u2028\u2029]/;function C(b){return e.UNUSUAL_LINE_TERMINATORS.test(b)}e.containsUnusualLineTerminators=C;function p(b){return b>=11904&&b<=55215||b>=63744&&b<=64255||b>=65281&&b<=65374}e.isFullWidthCharacter=p;function F(b){return b>=127462&&b<=127487||b===8986||b===8987||b===9200||b===9203||b>=9728&&b<=10175||b===11088||b===11093||b>=127744&&b<=128591||b>=128640&&b<=128764||b>=128992&&b<=129008||b>=129280&&b<=129535||b>=129648&&b<=129782}e.isEmojiImprecise=F;function H(b,$){if(b.length<$)return b;const Y=/\b/g;let ne=0;for(;Y.test(b)&&!(b.length-Y.lastIndex<$);)ne=Y.lastIndex,Y.lastIndex+=1;return b.substring(ne).replace(/^\s/,"")}e.lcut=H;const X=/\x1B\x5B[12]?K/g,de=/\x1b\[\d+m/g,ge=/\x1b\[0?m/g;function ye(b){return b&&(b=b.replace(X,""),b=b.replace(de,""),b=b.replace(ge,"")),b}e.removeAnsiEscapeCodes=ye,e.UTF8_BOM_CHARACTER=String.fromCharCode(65279);function we(b){return!!(b&&b.length>0&&b.charCodeAt(0)===65279)}e.startsWithUTF8BOM=we;function be(b){return we(b)?b.substr(1):b}e.stripUTF8BOM=be;function Ce(b,$){if(!b||!$||b.length<$.length)return!1;const Y=$.length,ne=b.toLowerCase();let re=0,me=-1;for(;re0&&Y>=0);return Y===-1?b:(b[Y-1]==="\r"&&Y--,b.substr(0,Y))}e.getNLines=Ne;function Ue(b){return b=b%(2*26),b<26?String.fromCharCode(97+b):String.fromCharCode(65+b-26)}e.singleLetterHash=Ue;function We(b){return Se.getInstance().getGraphemeBreakType(b)}e.getGraphemeBreakType=We;function Fe(b,$){return b===0?$!==5&&$!==7:b===2&&$===3?!1:b===4||b===2||b===3||$===4||$===2||$===3?!0:!(b===8&&($===8||$===9||$===11||$===12)||(b===11||b===9)&&($===9||$===10)||(b===12||b===10)&&$===10||$===5||$===13||$===7||b===1||b===13&&$===14||b===6&&$===6)}var Be;(function(b){b[b.Other=0]="Other",b[b.Prepend=1]="Prepend",b[b.CR=2]="CR",b[b.LF=3]="LF",b[b.Control=4]="Control",b[b.Extend=5]="Extend",b[b.Regional_Indicator=6]="Regional_Indicator",b[b.SpacingMark=7]="SpacingMark",b[b.L=8]="L",b[b.V=9]="V",b[b.T=10]="T",b[b.LV=11]="LV",b[b.LVT=12]="LVT",b[b.ZWJ=13]="ZWJ",b[b.Extended_Pictographic=14]="Extended_Pictographic"})(Be=e.GraphemeBreakType||(e.GraphemeBreakType={}));class Se{static getInstance(){return Se._INSTANCE||(Se._INSTANCE=new Se),Se._INSTANCE}constructor(){this._data=qe()}getGraphemeBreakType($){if($<32)return $===10?3:$===13?2:4;if($<127)return 0;const Y=this._data,ne=Y.length/3;let re=1;for(;re<=ne;)if($Y[3*re+1])re=2*re+1;else return Y[3*re+2];return 0}}Se._INSTANCE=null;function qe(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function $e(b,$){if(b===0)return 0;const Y=je(b,$);if(Y!==void 0)return Y;const ne=new P($,b);return ne.prevCodePoint(),ne.offset}e.getLeftDeleteOffset=$e;function je(b,$){const Y=new P($,b);let ne=Y.prevCodePoint();for(;ze(ne)||ne===65039||ne===8419;){if(Y.offset===0)return;ne=Y.prevCodePoint()}if(!F(ne))return;let re=Y.offset;return re>0&&Y.prevCodePoint()===8205&&(re=Y.offset),re}function ze(b){return 127995<=b&&b<=127999}var Te;(function(b){b[b.zwj=8205]="zwj",b[b.emojiVariantSelector=65039]="emojiVariantSelector",b[b.enclosingKeyCap=8419]="enclosingKeyCap"})(Te||(Te={})),e.noBreakWhitespace="\xA0";class Ae{static getInstance($){return Ae.cache.get(Array.from($))}static getLocales(){return Ae._locales.getValue()}constructor($){this.confusableDictionary=$}isAmbiguous($){return this.confusableDictionary.has($)}getPrimaryConfusable($){return this.confusableDictionary.get($)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}e.AmbiguousCharacters=Ae,M=Ae,Ae.ambiguousCharacterData=new W.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]}')),Ae.cache=new _.LRUCachedFunction(b=>{function $(Ee){const _e=new Map;for(let Pe=0;Pe!Ee.startsWith("_")&&Ee in re);me.length===0&&(me=["_default"]);let ve;for(const Ee of me){const _e=$(re[Ee]);ve=ne(ve,_e)}const De=$(re._common),Le=Y(De,ve);return new Ae(Le)}),Ae._locales=new W.Lazy(()=>Object.keys(Ae.ambiguousCharacterData.getValue()).filter(b=>!b.startsWith("_")));class pe{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(pe.getRawData())),this._data}static isInvisibleCharacter($){return pe.getData().has($)}static get codePoints(){return pe.getData()}}e.InvisibleCharacters=pe,pe._data=void 0}),define(ce[12],ue([0,1,3,2,5,10]),function(oe,e,_,W,M,j){"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 B(i){return i===47||i===92}e.isPathSeparator=B;function T(i){return i.replace(/[\\/]/g,_.posix.sep)}e.toSlashes=T;function S(i){return i.indexOf("/")===-1&&(i=T(i)),/^[a-zA-Z]:(\/|$)/.test(i)&&(i="/"+i),i}e.toPosixPath=S;function A(i,l=_.posix.sep){if(!i)return"";const s=i.length,d=i.charCodeAt(0);if(B(d)){if(B(i.charCodeAt(1))&&!B(i.charCodeAt(2))){let K=3;const ie=K;for(;K\|]/g,U=/[\\/]/g,m=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])(\.(.*?))?$/i;function f(i,l=W.isWindows){const s=l?I:U;return!(!i||i.length===0||/^\s+$/.test(i)||(s.lastIndex=0,s.test(i))||l&&m.test(i)||i==="."||i===".."||l&&i[i.length-1]==="."||l&&i.length!==i.trim().length||i.length>255)}e.isValidBasename=f;function o(i,l,s){const d=i===l;return!s||d?d:!i||!l?!1:(0,M.equalsIgnoreCase)(i,l)}e.isEqual=o;function g(i,l,s,d=_.sep){if(i===l)return!0;if(!i||!l||l.length>i.length)return!1;if(s){if(!(0,M.startsWithIgnoreCase)(i,l))return!1;if(l.length===i.length)return!0;let K=l.length;return l.charAt(l.length-1)===d&&K--,i.charAt(K)===d}return l.charAt(l.length-1)!==d&&(l+=d),i.indexOf(l)===0}e.isEqualOrParent=g;function u(i){return i>=65&&i<=90||i>=97&&i<=122}e.isWindowsDriveLetter=u;function v(i,l){return W.isWindows&&i.endsWith(":")&&(i+=_.sep),(0,_.isAbsolute)(i)||(i=(0,_.join)(l,i)),i=(0,_.normalize)(i),W.isWindows?(i=(0,M.rtrim)(i,_.sep),i.endsWith(":")&&(i+=_.sep)):(i=(0,M.rtrim)(i,_.sep),i||(i=_.sep)),i}e.sanitizeFilePath=v;function n(i){const l=(0,_.normalize)(i);return W.isWindows?i.length>3?!1:t(l)&&(i.length===2||l.charCodeAt(2)===92):l===_.posix.sep}e.isRootOrDriveLetter=n;function t(i,l=W.isWindows){return l?u(i.charCodeAt(0))&&i.charCodeAt(1)===58:!1}e.hasDriveLetter=t;function a(i){return t(i)?i[0]:void 0}e.getDriveLetter=a;function r(i,l,s){return l.length>i.length?-1:i===l?0:(s&&(i=i.toLowerCase(),l=l.toLowerCase()),i.indexOf(l))}e.indexOfPath=r;function h(i){const l=i.split(":");let s,d,D;for(const K of l){const ie=Number(K);(0,j.isNumber)(ie)?d===void 0?d=ie:D===void 0&&(D=ie):s=s?[s,K].join(":"):K}if(!s)throw new Error("Format for `--goto` should be: `FILE:LINE(:COLUMN)`");return{path:s,line:d!==void 0?d:void 0,column:D!==void 0?D:d!==void 0?1:void 0}}e.parseLineAndColumnAware=h;const c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";function w(i,l,s=8){let d="";for(let K=0;K=0;f--,this._valueLen--){const o=this._value.charCodeAt(f);if(!(o===47||this._splitOnBackslash&&o===92))break}return this.next()}hasNext(){return this._to!1,f=()=>!1){return new I(new S(m,f))}static forPaths(m=!1){return new I(new B(void 0,!m))}static forStrings(){return new I(new M)}static forConfigKeys(){return new I(new j)}constructor(m){this._iter=m}clear(){this._root=void 0}fill(m,f){if(f){const o=f.slice(0);(0,_.shuffle)(o);for(const g of o)this.set(g,m)}else{const o=m.slice(0);(0,_.shuffle)(o);for(const g of o)this.set(g[0],g[1])}}set(m,f){const o=this._iter.reset(m);let g;this._root||(this._root=new A,this._root.segment=o.value());const u=[];for(g=this._root;;){const n=o.cmp(g.segment);if(n>0)g.left||(g.left=new A,g.left.segment=o.value()),u.push([-1,g]),g=g.left;else if(n<0)g.right||(g.right=new A,g.right.segment=o.value()),u.push([1,g]),g=g.right;else if(o.hasNext())o.next(),g.mid||(g.mid=new A,g.mid.segment=o.value()),u.push([0,g]),g=g.mid;else break}const v=g.value;g.value=f,g.key=m;for(let n=u.length-1;n>=0;n--){const t=u[n][1];t.updateHeight();const a=t.balanceFactor();if(a<-1||a>1){const r=u[n][0],h=u[n+1][0];if(r===1&&h===1)u[n][1]=t.rotateLeft();else if(r===-1&&h===-1)u[n][1]=t.rotateRight();else if(r===1&&h===-1)t.right=u[n+1][1]=u[n+1][1].rotateRight(),u[n][1]=t.rotateLeft();else if(r===-1&&h===1)t.left=u[n+1][1]=u[n+1][1].rotateLeft(),u[n][1]=t.rotateRight();else throw new Error;if(n>0)switch(u[n-1][0]){case-1:u[n-1][1].left=u[n][1];break;case 1:u[n-1][1].right=u[n][1];break;case 0:u[n-1][1].mid=u[n][1];break}else this._root=u[0][1]}}return v}get(m){return this._getNode(m)?.value}_getNode(m){const f=this._iter.reset(m);let o=this._root;for(;o;){const g=f.cmp(o.segment);if(g>0)o=o.left;else if(g<0)o=o.right;else if(f.hasNext())f.next(),o=o.mid;else break}return o}has(m){const f=this._getNode(m);return!(f?.value===void 0&&f?.mid===void 0)}delete(m){return this._delete(m,!1)}deleteSuperstr(m){return this._delete(m,!0)}_delete(m,f){const o=this._iter.reset(m),g=[];let u=this._root;for(;u;){const v=o.cmp(u.segment);if(v>0)g.push([-1,u]),u=u.left;else if(v<0)g.push([1,u]),u=u.right;else if(o.hasNext())o.next(),g.push([0,u]),u=u.mid;else break}if(!!u){if(f?(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 v=this._min(u.right);if(v.key){const{key:n,value:t,segment:a}=v;this._delete(v.key,!1),u.key=n,u.value=t,u.segment=a}}else{const v=u.left??u.right;if(g.length>0){const[n,t]=g[g.length-1];switch(n){case-1:t.left=v;break;case 0:t.mid=v;break;case 1:t.right=v;break}}else this._root=v}for(let v=g.length-1;v>=0;v--){const n=g[v][1];n.updateHeight();const t=n.balanceFactor();if(t>1?(n.right.balanceFactor()>=0||(n.right=n.right.rotateRight()),g[v][1]=n.rotateLeft()):t<-1&&(n.left.balanceFactor()<=0||(n.left=n.left.rotateLeft()),g[v][1]=n.rotateRight()),v>0)switch(g[v-1][0]){case-1:g[v-1][1].left=g[v][1];break;case 1:g[v-1][1].right=g[v][1];break;case 0:g[v-1][1].mid=g[v][1];break}else this._root=g[0][1]}}}_min(m){for(;m.left;)m=m.left;return m}findSubstr(m){const f=this._iter.reset(m);let o=this._root,g;for(;o;){const u=f.cmp(o.segment);if(u>0)o=o.left;else if(u<0)o=o.right;else if(f.hasNext())f.next(),g=o.value||g,o=o.mid;else break}return o&&o.value||g}findSuperstr(m){const f=this._iter.reset(m);let o=this._root;for(;o;){const g=f.cmp(o.segment);if(g>0)o=o.left;else if(g<0)o=o.right;else if(f.hasNext())f.next(),o=o.mid;else return o.mid?this._entries(o.mid):void 0}}forEach(m){for(const[f,o]of this)m(o,f)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(m){const f=[];return this._dfsEntries(m,f),f[Symbol.iterator]()}_dfsEntries(m,f){!m||(m.left&&this._dfsEntries(m.left,f),m.value&&f.push([m.key,m.value]),m.mid&&this._dfsEntries(m.mid,f),m.right&&this._dfsEntries(m.right,f))}_isBalanced(){const m=f=>{if(!f)return!0;const o=f.balanceFactor();return o<-1||o>1?!1:m(f.left)&&m(f.right)};return m(this._root)}}e.TernarySearchTree=I}),define(ce[7],ue([0,1,3,2]),function(oe,e,_,W){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uriToFsPath=e.URI=void 0;const M=/^\w[\w\d+.-]*$/,j=/^\//,B=/^\/\//;function T(c,w){if(!c.scheme&&w)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${c.authority}", path: "${c.path}", query: "${c.query}", fragment: "${c.fragment}"}`);if(c.scheme&&!M.test(c.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(c.path){if(c.authority){if(!j.test(c.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(B.test(c.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function S(c,w){return!c&&!w?"file":c}function A(c,w){switch(c){case"https":case"http":case"file":w?w[0]!==I&&(w=I+w):w=I;break}return w}const O="",I="/",U=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class m{static isUri(w){return w instanceof m?!0:w?typeof w.authority=="string"&&typeof w.fragment=="string"&&typeof w.path=="string"&&typeof w.query=="string"&&typeof w.scheme=="string"&&typeof w.fsPath=="string"&&typeof w.with=="function"&&typeof w.toString=="function":!1}constructor(w,i,l,s,d,D=!1){typeof w=="object"?(this.scheme=w.scheme||O,this.authority=w.authority||O,this.path=w.path||O,this.query=w.query||O,this.fragment=w.fragment||O):(this.scheme=S(w,D),this.authority=i||O,this.path=A(this.scheme,l||O),this.query=s||O,this.fragment=d||O,T(this,D))}get fsPath(){return n(this,!1)}with(w){if(!w)return this;let{scheme:i,authority:l,path:s,query:d,fragment:D}=w;return i===void 0?i=this.scheme:i===null&&(i=O),l===void 0?l=this.authority:l===null&&(l=O),s===void 0?s=this.path:s===null&&(s=O),d===void 0?d=this.query:d===null&&(d=O),D===void 0?D=this.fragment:D===null&&(D=O),i===this.scheme&&l===this.authority&&s===this.path&&d===this.query&&D===this.fragment?this:new o(i,l,s,d,D)}static parse(w,i=!1){const l=U.exec(w);return l?new o(l[2]||O,h(l[4]||O),h(l[5]||O),h(l[7]||O),h(l[9]||O),i):new o(O,O,O,O,O)}static file(w){let i=O;if(W.isWindows&&(w=w.replace(/\\/g,I)),w[0]===I&&w[1]===I){const l=w.indexOf(I,2);l===-1?(i=w.substring(2),w=I):(i=w.substring(2,l),w=w.substring(l)||I)}return new o("file",i,w,O,O)}static from(w){const i=new o(w.scheme,w.authority,w.path,w.query,w.fragment);return T(i,!0),i}static joinPath(w,...i){if(!w.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let l;return W.isWindows&&w.scheme==="file"?l=m.file(_.win32.join(n(w,!0),...i)).path:l=_.posix.join(w.path,...i),w.with({path:l})}toString(w=!1){return t(this,w)}toJSON(){return this}static revive(w){if(w){if(w instanceof m)return w;{const i=new o(w);return i._formatted=w.external,i._fsPath=w._sep===f?w.fsPath:null,i}}else return w}}e.URI=m;const f=W.isWindows?1:void 0;class o extends m{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=n(this,!1)),this._fsPath}toString(w=!1){return w?t(this,!0):(this._formatted||(this._formatted=t(this,!1)),this._formatted)}toJSON(){const w={$mid:1};return this._fsPath&&(w.fsPath=this._fsPath,w._sep=f),this._formatted&&(w.external=this._formatted),this.path&&(w.path=this.path),this.scheme&&(w.scheme=this.scheme),this.authority&&(w.authority=this.authority),this.query&&(w.query=this.query),this.fragment&&(w.fragment=this.fragment),w}}const g={[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(c,w){let i,l=-1;for(let s=0;s=97&&d<=122||d>=65&&d<=90||d>=48&&d<=57||d===45||d===46||d===95||d===126||w&&d===47)l!==-1&&(i+=encodeURIComponent(c.substring(l,s)),l=-1),i!==void 0&&(i+=c.charAt(s));else{i===void 0&&(i=c.substr(0,s));const D=g[d];D!==void 0?(l!==-1&&(i+=encodeURIComponent(c.substring(l,s)),l=-1),i+=D):l===-1&&(l=s)}}return l!==-1&&(i+=encodeURIComponent(c.substring(l))),i!==void 0?i:c}function v(c){let w;for(let i=0;i1&&c.scheme==="file"?i=`//${c.authority}${c.path}`:c.path.charCodeAt(0)===47&&(c.path.charCodeAt(1)>=65&&c.path.charCodeAt(1)<=90||c.path.charCodeAt(1)>=97&&c.path.charCodeAt(1)<=122)&&c.path.charCodeAt(2)===58?w?i=c.path.substr(1):i=c.path[1].toLowerCase()+c.path.substr(2):i=c.path,W.isWindows&&(i=i.replace(/\//g,"\\")),i}e.uriToFsPath=n;function t(c,w){const i=w?v:u;let l="",{scheme:s,authority:d,path:D,query:K,fragment:ie}=c;if(s&&(l+=s,l+=":"),(d||s==="file")&&(l+=I,l+=I),d){let te=d.indexOf("@");if(te!==-1){const le=d.substr(0,te);d=d.substr(te+1),te=le.indexOf(":"),te===-1?l+=i(le,!1):(l+=i(le.substr(0,te),!1),l+=":",l+=i(le.substr(te+1),!1)),l+="@"}d=d.toLowerCase(),te=d.indexOf(":"),te===-1?l+=i(d,!1):(l+=i(d.substr(0,te),!1),l+=d.substr(te))}if(D){if(D.length>=3&&D.charCodeAt(0)===47&&D.charCodeAt(2)===58){const te=D.charCodeAt(1);te>=65&&te<=90&&(D=`/${String.fromCharCode(te+32)}:${D.substr(3)}`)}else if(D.length>=2&&D.charCodeAt(1)===58){const te=D.charCodeAt(0);te>=65&&te<=90&&(D=`${String.fromCharCode(te+32)}:${D.substr(2)}`)}l+=i(D,!0)}return K&&(l+="?",l+=i(K,!1)),ie&&(l+="#",l+=w?ie:u(ie,!1)),l}function a(c){try{return decodeURIComponent(c)}catch{return c.length>3?c.substr(0,3)+a(c.substr(3)):c}}const r=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function h(c){return c.match(r)?c.replace(r,w=>a(w)):c}}),define(ce[42],ue([0,1,7]),function(oe,e,_){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.log=e.getFirstFrame=e.parse=e.isRemoteConsoleLog=void 0;function W(A){const O=A;return O&&typeof O.type=="string"&&typeof O.severity=="string"}e.isRemoteConsoleLog=W;function M(A){const O=[];let I;try{const U=JSON.parse(A.arguments),m=U[U.length-1];m&&m.__$stack&&(U.pop(),I=m.__$stack),O.push(...U)}catch{O.push("Unable to log remote console arguments",A.arguments)}return{args:O,stack:I}}e.parse=M;function j(A){if(typeof A!="string")return j(M(A).stack);const O=A;if(O){const I=B(O),U=/at [^\/]*((?:(?:[a-zA-Z]+:)|(?:[\/])|(?:\\\\))(?:.+)):(\d+):(\d+)/.exec(I||"");if(U&&U.length===4)return{uri:_.URI.file(U[1]),line:Number(U[2]),column:Number(U[3])}}}e.getFirstFrame=j;function B(A){if(!A)return A;const O=A.indexOf(` `);return O===-1?A:A.substring(0,O)}function T(A,O){const{args:I,stack:U}=M(A),m=typeof I[0]=="string"&&I.length===1;let f=B(U);f&&(f=`(${f.trim()})`);let o=[];if(typeof I[0]=="string"?f&&m?o=[`%c[${O}] %c${I[0]} %c${f}`,S("blue"),S(""),S("grey")]:o=[`%c[${O}] %c${I[0]}`,S("blue"),S(""),...I.slice(1)]:o=[`%c[${O}]%`,S("blue"),...I],f&&!m&&o.push(f),typeof console[A.severity]!="function")throw new Error("Unknown console method");console[A.severity].apply(console,o)}e.log=T;function S(A){return`color: ${A}`}}),define(ce[43],ue([0,1,15,5,7]),function(oe,e,_,W,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.revive=e.parse=e.stringify=void 0;function j(A){return JSON.stringify(A,T)}e.stringify=j;function B(A){let O=JSON.parse(A);return O=S(O),O}e.parse=B;function T(A,O){return O instanceof RegExp?{$mid:2,source:O.source,flags:(0,W.regExpFlags)(O)}:O}function S(A,O=0){if(!A||O>200)return A;if(typeof A=="object"){switch(A.$mid){case 1:return M.URI.revive(A);case 2:return new RegExp(A.source,A.flags);case 15:return new Date(A.source)}if(A instanceof _.VSBuffer||A instanceof Uint8Array)return A;if(Array.isArray(A))for(let I=0;I_.getRoot(g).length&&g[g.length-1]===o}else{const g=f.path;return g.length>1&&g.charCodeAt(g.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(f.fsPath)}}removeTrailingPathSeparator(f,o=M.sep){return(0,e.hasTrailingPathSeparator)(f,o)?f.with({path:f.path.substr(0,f.path.length-1)}):f}addTrailingPathSeparator(f,o=M.sep){let g=!1;if(f.scheme===W.Schemas.file){const u=S(f);g=u!==void 0&&u.length===_.getRoot(u).length&&u[u.length-1]===o}else{o="/";const u=f.path;g=u.length===1&&u.charCodeAt(u.length-1)===47}return!g&&!(0,e.hasTrailingPathSeparator)(f,o)?f.with({path:f.path+"/"}):f}}e.ExtUri=A,e.extUri=new A(()=>!1),e.extUriBiasedIgnorePathCase=new A(m=>m.scheme===W.Schemas.file?!j.isLinux:!0),e.extUriIgnorePathCase=new A(m=>!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 O(m,f){const o=[];for(let g=0;gn===g?!1:(0,e.isEqualOrParent)(u,f(v)))||o.push(m[g])}return o}e.distinctParents=O;var I;(function(m){m.META_DATA_LABEL="label",m.META_DATA_DESCRIPTION="description",m.META_DATA_SIZE="size",m.META_DATA_MIME="mime";function f(o){const g=new Map;o.path.substring(o.path.indexOf(";")+1,o.path.lastIndexOf(";")).split(";").forEach(n=>{const[t,a]=n.split(":");t&&a&&g.set(t,a)});const v=o.path.substring(0,o.path.indexOf(";"));return v&&g.set(m.META_DATA_MIME,v),g}m.parseMetaData=f})(I=e.DataUri||(e.DataUri={}));function U(m,f,o){if(f){let g=m.path;return g&&g[0]!==M.posix.sep&&(g=M.posix.sep+g),m.with({scheme:o,authority:f,path:g})}return m.with({scheme:o})}e.toLocalResource=U}),define(ce[8],ue([0,1,11,9,6,4,26,2]),function(oe,e,_,W,M,j,B,T){"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 S(V){return!!V&&typeof V.then=="function"}e.isThenable=S;function A(V){const E=new _.CancellationTokenSource,k=V(E.token),z=new Promise((q,G)=>{const J=E.token.onCancellationRequested(()=>{J.dispose(),E.dispose(),G(new W.CancellationError)});Promise.resolve(k).then(C=>{J.dispose(),E.dispose(),q(C)},C=>{J.dispose(),E.dispose(),G(C)})});return new class{cancel(){E.cancel()}then(q,G){return z.then(q,G)}catch(q){return this.then(void 0,q)}finally(q){return z.finally(q)}}}e.createCancelablePromise=A;function O(V,E,k){return new Promise((z,q)=>{const G=E.onCancellationRequested(()=>{G.dispose(),z(k)});V.then(z,q).finally(()=>G.dispose())})}e.raceCancellation=O;function I(V,E){return new Promise((k,z)=>{const q=E.onCancellationRequested(()=>{q.dispose(),z(new W.CancellationError)});V.then(k,z).finally(()=>q.dispose())})}e.raceCancellationError=I;async function U(V){let E=-1;const k=V.map((q,G)=>q.then(J=>(E=G,J))),z=await Promise.race(k);return V.forEach((q,G)=>{G!==E&&q.cancel()}),z}e.raceCancellablePromises=U;function m(V,E,k){let z;const q=setTimeout(()=>{z?.(void 0),k?.()},E);return Promise.race([V.finally(()=>clearTimeout(q)),new Promise(G=>z=G)])}e.raceTimeout=m;function f(V){return new Promise((E,k)=>{const z=V();S(z)?z.then(E,k):E(z)})}e.asPromise=f;class o{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(E){if(this.activePromise){if(this.queuedPromiseFactory=E,!this.queuedPromise){const k=()=>{this.queuedPromise=null;const z=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,z};this.queuedPromise=new Promise(z=>{this.activePromise.then(k,k).then(z)})}return new Promise((k,z)=>{this.queuedPromise.then(k,z)})}return this.activePromise=E(),new Promise((k,z)=>{this.activePromise.then(q=>{this.activePromise=null,k(q)},q=>{this.activePromise=null,z(q)})})}}e.Throttler=o;class g{constructor(){this.current=Promise.resolve(null)}queue(E){return this.current=this.current.then(()=>E(),()=>E())}}e.Sequencer=g;class u{constructor(){this.promiseMap=new Map}queue(E,k){const q=(this.promiseMap.get(E)??Promise.resolve()).catch(()=>{}).then(k).finally(()=>{this.promiseMap.get(E)===q&&this.promiseMap.delete(E)});return this.promiseMap.set(E,q),q}}e.SequencerByKey=u;const v=(V,E)=>{let k=!0;const z=setTimeout(()=>{k=!1,E()},V);return{isTriggered:()=>k,dispose:()=>{clearTimeout(z),k=!1}}},n=V=>{let E=!0;return queueMicrotask(()=>{E&&(E=!1,V())}),{isTriggered:()=>E,dispose:()=>{E=!1}}};e.MicrotaskDelay=Symbol("MicrotaskDelay");class t{constructor(E){this.defaultDelay=E,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(E,k=this.defaultDelay){this.task=E,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((q,G)=>{this.doResolve=q,this.doReject=G}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const q=this.task;return this.task=null,q()}}));const z=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=k===e.MicrotaskDelay?n(z):v(k,z),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new W.CancellationError),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}e.Delayer=t;class a{constructor(E){this.delayer=new t(E),this.throttler=new o}trigger(E,k){return this.delayer.trigger(()=>this.throttler.queue(E),k)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}}e.ThrottledDelayer=a;class r{constructor(){this._isOpen=!1,this._promise=new Promise((E,k)=>{this._completePromise=E})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}}e.Barrier=r;class h extends r{constructor(E){super(),this._timeout=setTimeout(()=>this.open(),E)}open(){clearTimeout(this._timeout),super.open()}}e.AutoOpenBarrier=h;function c(V,E){return E?new Promise((k,z)=>{const q=setTimeout(()=>{G.dispose(),k()},V),G=E.onCancellationRequested(()=>{clearTimeout(q),G.dispose(),z(new W.CancellationError)})}):A(k=>c(V,k))}e.timeout=c;function w(V,E=0){const k=setTimeout(V,E);return(0,j.toDisposable)(()=>clearTimeout(k))}e.disposableTimeout=w;function i(V){const E=[];let k=0;const z=V.length;function q(){return k!!z,k=null){let z=0;const q=V.length,G=()=>{if(z>=q)return Promise.resolve(k);const J=V[z++];return Promise.resolve(J()).then(p=>E(p)?Promise.resolve(p):G())};return G()}e.first=l;function s(V,E=z=>!!z,k=null){if(V.length===0)return Promise.resolve(k);let z=V.length;const q=()=>{z=-1;for(const G of V)G.cancel?.()};return new Promise((G,J)=>{for(const C of V)C.then(p=>{--z>=0&&E(p)?(q(),G(p)):z===0&&G(k)}).catch(p=>{--z>=0&&(q(),J(p))})})}e.firstParallel=s;class d{constructor(E){this._size=0,this.maxDegreeOfParalellism=E,this.outstandingPromises=[],this.runningPromises=0,this._onDrained=new M.Emitter}get onDrained(){return this._onDrained.event}get size(){return this._size}queue(E){return this._size++,new Promise((k,z)=>{this.outstandingPromises.push({factory:E,c:k,e:z}),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=d;class D extends d{constructor(){super(1)}}e.Queue=D;class K{constructor(){this.queues=new Map,this.drainers=new Set}async whenDrained(){if(this.isDrained())return;const E=new L;return this.drainers.add(E),E.p}isDrained(){for(const[,E]of this.queues)if(E.size>0)return!1;return!0}queueFor(E,k=B.extUri){const z=k.getComparisonKey(E);let q=this.queues.get(z);return q||(q=new D,M.Event.once(q.onDrained)(()=>{q?.dispose(),this.queues.delete(z),this.onDidQueueDrain()}),this.queues.set(z,q)),q}onDidQueueDrain(){!this.isDrained()||this.releaseDrainers()}releaseDrainers(){for(const E of this.drainers)E.complete();this.drainers.clear()}dispose(){for(const[,E]of this.queues)E.dispose();this.queues.clear(),this.releaseDrainers()}}e.ResourceQueue=K;class ie{constructor(E,k){this._token=-1,typeof E=="function"&&typeof k=="number"&&this.setIfNotSet(E,k)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(E,k){this.cancel(),this._token=setTimeout(()=>{this._token=-1,E()},k)}setIfNotSet(E,k){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,E()},k))}}e.TimeoutTimer=ie;class te{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(E,k){this.cancel(),this._token=setInterval(()=>{E()},k)}}e.IntervalTimer=te;class le{constructor(E,k){this.timeoutToken=-1,this.runner=E,this.timeout=k,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(E=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,E)}get delay(){return this.timeout}set delay(E){this.timeout=E}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}e.RunOnceScheduler=le;class ae{constructor(E,k){k%1e3!==0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${k}ms is not a multiple of 1000ms.`),this.runner=E,this.timeout=k,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(E=this.timeout){E%1e3!==0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${E}ms is not a multiple of 1000ms.`),this.cancel(),this.counter=Math.ceil(E/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=ae;class he extends le{constructor(E,k){super(E,k),this.units=[]}work(E){this.units.push(E),this.isScheduled()||this.schedule()}doRun(){const E=this.units;this.units=[],this.runner?.(E)}dispose(){this.units=[],super.dispose()}}e.RunOnceWorker=he;class fe extends j.Disposable{constructor(E,k){super(),this.options=E,this.handler=k,this.pendingWork=[],this.throttler=this._register(new j.MutableDisposable),this.disposed=!1}get pending(){return this.pendingWork.length}work(E){if(this.disposed)return!1;if(typeof this.options.maxBufferedWork=="number"){if(this.throttler.value){if(this.pending+E.length>this.options.maxBufferedWork)return!1}else if(this.pending+E.length-this.options.maxWorkChunkSize>this.options.maxBufferedWork)return!1}return this.pendingWork.push(...E),this.throttler.value||this.doWork(),!0}doWork(){this.handler(this.pendingWork.splice(0,this.options.maxWorkChunkSize)),this.pendingWork.length>0&&(this.throttler.value=new le(()=>{this.throttler.clear(),this.doWork()},this.options.throttleDelay),this.throttler.value.schedule())}dispose(){super.dispose(),this.disposed=!0}}e.ThrottledWorker=fe,function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?e.runWhenIdle=V=>{(0,T.setTimeout0)(()=>{if(E)return;const k=Date.now()+15;V(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,k-Date.now())}}))});let E=!1;return{dispose(){E||(E=!0)}}}:e.runWhenIdle=(V,E)=>{const k=requestIdleCallback(V,typeof E=="number"?{timeout:E}:void 0);let z=!1;return{dispose(){z||(z=!0,cancelIdleCallback(k))}}}}();class ee{constructor(E){this._didRun=!1,this._executor=()=>{try{this._value=E()}catch(k){this._error=k}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 se(V,E,k){let z;for(let q=0;qz?.(),promise:k},k.then(()=>this.donePending(E),()=>this.donePending(E)),k}donePending(E){this._pending&&E===this._pending.taskId&&(this._pending=void 0,this.triggerNext())}triggerNext(){if(this._next){const E=this._next;this._next=void 0,E.run().then(E.promiseResolve,E.promiseReject)}}setNext(E){if(this._next)this._next.run=E;else{let k,z;const q=new Promise((G,J)=>{k=G,z=J});this._next={run:E,promise:q,promiseResolve:k,promiseReject:z}}return this._next.promise}hasNext(){return!!this._next}async join(){return this._next?.promise??this._pending?.promise}}e.TaskSequentializer=R;class x{constructor(E,k=()=>Date.now()){this.interval=E,this.nowFn=k,this.lastIncrementTime=0,this.value=0}increment(){const E=this.nowFn();return E-this.lastIncrementTime>this.interval&&(this.lastIncrementTime=E,this.value=0),this.value++,this.value}}e.IntervalCounter=x;class L{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((E,k)=>{this.completeCallback=E,this.errorCallback=k})}complete(E){return new Promise(k=>{this.completeCallback(E),this.resolved=!0,k()})}error(E){return new Promise(k=>{this.errorCallback(E),this.rejected=!0,k()})}cancel(){new Promise(E=>{this.errorCallback(new W.CancellationError),this.rejected=!0,E()})}}e.DeferredPromise=L;var y;(function(V){async function E(z){let q;const G=await Promise.all(z.map(J=>J.then(C=>C,C=>{q||(q=C)})));if(typeof q<"u")throw q;return G}V.settled=E;function k(z){return new Promise(async(q,G)=>{try{await z(q,G)}catch(J){G(J)}})}V.withAsyncBody=k})(y=e.Promises||(e.Promises={}));var P;(function(V){V[V.Initial=0]="Initial",V[V.DoneOK=1]="DoneOK",V[V.DoneError=2]="DoneError"})(P||(P={}));class N{static fromArray(E){return new N(k=>{k.emitMany(E)})}static fromPromise(E){return new N(async k=>{k.emitMany(await E)})}static fromPromises(E){return new N(async k=>{await Promise.all(E.map(async z=>k.emitOne(await z)))})}static merge(E){return new N(async k=>{await Promise.all(E.map(async z=>{for await(const q of z)k.emitOne(q)}))})}constructor(E){this._state=0,this._results=[],this._error=null,this._onStateChanged=new M.Emitter,queueMicrotask(async()=>{const k={emitOne:z=>this.emitOne(z),emitMany:z=>this.emitMany(z),reject:z=>this.reject(z)};try{await Promise.resolve(E(k)),this.resolve()}catch(z){this.reject(z)}finally{k.emitOne=void 0,k.emitMany=void 0,k.reject=void 0}})}[Symbol.asyncIterator](){let E=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(E{for await(const q of E)z.emitOne(k(q))})}map(E){return N.map(this,E)}static filter(E,k){return new N(async z=>{for await(const q of E)k(q)&&z.emitOne(q)})}filter(E){return N.filter(this,E)}static coalesce(E){return N.filter(E,k=>!!k)}coalesce(){return N.coalesce(this)}static async toPromise(E){const k=[];for await(const z of E)k.push(z);return k}toPromise(){return N.toPromise(this)}emitOne(E){this._state===0&&(this._results.push(E),this._onStateChanged.fire())}emitMany(E){this._state===0&&(this._results=this._results.concat(E),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(E){this._state===0&&(this._state=2,this._error=E,this._onStateChanged.fire())}}e.AsyncIterableObject=N,N.EMPTY=N.fromArray([]);class Q extends N{constructor(E,k){super(k),this._source=E}cancel(){this._source.cancel()}}e.CancelableAsyncIterableObject=Q;function Z(V){const E=new _.CancellationTokenSource,k=V(E.token);return new Q(E,async z=>{const q=E.token.onCancellationRequested(()=>{q.dispose(),E.dispose(),z.reject(new W.CancellationError)});try{for await(const G of k){if(E.token.isCancellationRequested)return;z.emitOne(G)}q.dispose(),E.dispose()}catch(G){q.dispose(),E.dispose(),z.reject(G)}})}e.createCancelableAsyncIterable=Z}),define(ce[16],ue([0,1,13,8,12,20,3,2,5]),function(oe,e,_,W,M,j,B,T,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.patternsEquals=e.getPathTerms=e.getBasenameTerms=e.isRelativePattern=e.parse=e.match=e.splitGlobAware=e.GLOB_SPLIT=e.GLOBSTAR=e.getEmptyExpression=void 0;function A(){return Object.create(null)}e.getEmptyExpression=A,e.GLOBSTAR="**",e.GLOB_SPLIT="/";const O="[/\\\\]",I="[^/\\\\]",U=/\//g;function m(L,y){switch(L){case 0:return"";case 1:return`${I}*?`;default:return`(?:${O}|${I}+${O}${y?`|${O}${I}+`:""})*?`}}function f(L,y){if(!L)return[];const P=[];let N=!1,Q=!1,Z="";for(const V of L){switch(V){case y:if(!N&&!Q){P.push(Z),Z="";continue}break;case"{":N=!0;break;case"}":N=!1;break;case"[":Q=!0;break;case"]":Q=!1;break}Z+=V}return Z&&P.push(Z),P}e.splitGlobAware=f;function o(L){if(!L)return"";let y="";const P=f(L,e.GLOB_SPLIT);if(P.every(N=>N===e.GLOBSTAR))y=".*";else{let N=!1;P.forEach((Q,Z)=>{if(Q===e.GLOBSTAR){if(N)return;y+=m(2,Z===P.length-1)}else{let V=!1,E="",k=!1,z="";for(const q of Q){if(q!=="}"&&V){E+=q;continue}if(k&&(q!=="]"||!z)){let G;q==="-"?G=q:(q==="^"||q==="!")&&!z?G="^":q===e.GLOB_SPLIT?G="":G=(0,S.escapeRegExpCharacters)(q),z+=G;continue}switch(q){case"{":V=!0;continue;case"[":k=!0;continue;case"}":{y+=`(?:${f(E,",").map(C=>o(C)).join("|")})`,V=!1,E="";break}case"]":{y+="["+z+"]",k=!1,z="";break}case"?":y+=I;continue;case"*":y+=m(1);continue;default:y+=(0,S.escapeRegExpCharacters)(q)}}Zw(E,y)).filter(E=>E!==c),L),N=P.length;if(!N)return c;if(N===1)return P[0];const Q=function(E,k){for(let z=0,q=P.length;z!!E.allBasenames);Z&&(Q.allBasenames=Z.allBasenames);const V=P.reduce((E,k)=>k.allPaths?E.concat(k.allPaths):E,[]);return V.length&&(Q.allPaths=V),Q}function K(L,y,P){const N=B.sep===B.posix.sep,Q=N?L:L.replace(U,B.sep),Z=B.sep+Q,V=B.posix.sep+L;let E;return P?E=function(k,z){return typeof k=="string"&&(k===Q||k.endsWith(Z)||!N&&(k===L||k.endsWith(V)))?y:null}:E=function(k,z){return typeof k=="string"&&(k===Q||!N&&k===L)?y:null},E.allPaths=[(P?"*/":"./")+L],E}function ie(L){try{const y=new RegExp(`^${o(L)}$`);return function(P){return y.lastIndex=0,typeof P=="string"&&y.test(P)?L:null}}catch{return c}}function te(L,y,P){return!L||typeof y!="string"?!1:le(L)(y,void 0,P)}e.match=te;function le(L,y={}){if(!L)return h;if(typeof L=="string"||ae(L)){const P=w(L,y);if(P===c)return h;const N=function(Q,Z){return!!P(Q,Z)};return P.allBasenames&&(N.allBasenames=P.allBasenames),P.allPaths&&(N.allPaths=P.allPaths),N}return ee(L,y)}e.parse=le;function ae(L){const y=L;return y?typeof y.base=="string"&&typeof y.pattern=="string":!1}e.isRelativePattern=ae;function he(L){return L.allBasenames||[]}e.getBasenameTerms=he;function fe(L){return L.allPaths||[]}e.getPathTerms=fe;function ee(L,y){const P=R(Object.getOwnPropertyNames(L).map(E=>se(E,L[E],y)).filter(E=>E!==c)),N=P.length;if(!N)return c;if(!P.some(E=>!!E.requiresSiblings)){if(N===1)return P[0];const E=function(q,G){let J;for(let C=0,p=P.length;C{for(const C of J){const p=await C;if(typeof p=="string")return p}return null})():null},k=P.find(q=>!!q.allBasenames);k&&(E.allBasenames=k.allBasenames);const z=P.reduce((q,G)=>G.allPaths?q.concat(G.allPaths):q,[]);return z.length&&(E.allPaths=z),E}const Q=function(E,k,z){let q,G;for(let J=0,C=P.length;J{for(const J of G){const C=await J;if(typeof C=="string")return C}return null})():null},Z=P.find(E=>!!E.allBasenames);Z&&(Q.allBasenames=Z.allBasenames);const V=P.reduce((E,k)=>k.allPaths?E.concat(k.allPaths):E,[]);return V.length&&(Q.allPaths=V),Q}function se(L,y,P){if(y===!1)return c;const N=w(L,P);if(N===c)return c;if(typeof y=="boolean")return N;if(y){const Q=y.when;if(typeof Q=="string"){const Z=(V,E,k,z)=>{if(!z||!N(V,E))return null;const q=Q.replace("$(basename)",k),G=z(q);return(0,W.isThenable)(G)?G.then(J=>J?L:null):G?L:null};return Z.requiresSiblings=!0,Z}}return N}function R(L,y){const P=L.filter(E=>!!E.basenames);if(P.length<2)return L;const N=P.reduce((E,k)=>{const z=k.basenames;return z?E.concat(z):E},[]);let Q;if(y){Q=[];for(let E=0,k=N.length;E{const z=k.patterns;return z?E.concat(z):E},[]);const Z=function(E,k){if(typeof E!="string")return null;if(!k){let q;for(q=E.length;q>0;q--){const G=E.charCodeAt(q-1);if(G===47||G===92)break}k=E.substr(q)}const z=N.indexOf(k);return z!==-1?Q[z]:null};Z.basenames=N,Z.patterns=Q,Z.allBasenames=N;const V=L.filter(E=>!E.basenames);return V.push(Z),V}function x(L,y){return(0,_.equals)(L,y,(P,N)=>typeof P=="string"&&typeof N=="string"?P===N:typeof P!="string"&&typeof N!="string"?P.base===N.base&&P.pattern===N.pattern:!1)}e.patternsEquals=x}),define(ce[17],ue([0,1,18,45,54,8,12,14,3,2,26,7]),function(oe,e,_,W,M,j,B,T,S,A,O,I){"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 U;(function(ee){ee[ee.UNLINK=0]="UNLINK",ee[ee.MOVE=1]="MOVE"})(U=e.RimRafMode||(e.RimRafMode={}));async function m(ee,se=U.UNLINK){if((0,B.isRootOrDriveLetter)(ee))throw new Error("rimraf - will refuse to recursively delete root");return se===U.UNLINK?o(ee):f(ee)}async function f(ee){try{const se=(0,B.randomPath)((0,W.tmpdir)());try{await _.promises.rename(ee,se)}catch(R){return R.code==="ENOENT"?void 0:o(ee)}o(se).catch(R=>{})}catch(se){if(se.code!=="ENOENT")throw se}}async function o(ee){return(0,M.promisify)(_.rm)(ee,{recursive:!0,force:!0,maxRetries:3})}function g(ee){if((0,B.isRootOrDriveLetter)(ee))throw new Error("rimraf - will refuse to recursively delete root");_.rmSync(ee,{recursive:!0,force:!0,maxRetries:3})}e.rimrafSync=g;async function u(ee,se){return t(await(se?v(ee):(0,M.promisify)(_.readdir)(ee)))}async function v(ee){try{return await(0,M.promisify)(_.readdir)(ee,{withFileTypes:!0})}catch(x){console.warn("[node.js fs] readdir with filetypes failed with error: ",x)}const se=[],R=await u(ee);for(const x of R){let L=!1,y=!1,P=!1;try{const N=await e.Promises.lstat((0,S.join)(ee,x));L=N.isFile(),y=N.isDirectory(),P=N.isSymbolicLink()}catch(N){console.warn("[node.js fs] unexpected error from lstat after readdir: ",N)}se.push({name:x,isFile:()=>L,isDirectory:()=>y,isSymbolicLink:()=>P})}return se}function n(ee){return t(_.readdirSync(ee))}e.readdirSync=n;function t(ee){return ee.map(se=>typeof se=="string"?A.isMacintosh?(0,T.normalizeNFC)(se):se:(se.name=A.isMacintosh?(0,T.normalizeNFC)(se.name):se.name,se))}async function a(ee){const se=await u(ee),R=[];for(const x of se)await h.existsDirectory((0,S.join)(ee,x))&&R.push(x);return R}function r(ee,se=1e3){return new Promise(R=>{let x=!1;const L=setInterval(()=>{x||(x=!0,_.access(ee,y=>{x=!1,y&&(clearInterval(L),R(void 0))}))},se)})}e.whenDeleted=r;var h;(function(ee){async function se(L){let y;try{if(y=await e.Promises.lstat(L),!y.isSymbolicLink())return{stat:y}}catch{}try{return{stat:await e.Promises.stat(L),symbolicLink:y?.isSymbolicLink()?{dangling:!1}:void 0}}catch(P){if(P.code==="ENOENT"&&y)return{stat:y,symbolicLink:{dangling:!0}};if(A.isWindows&&P.code==="EACCES")try{return{stat:await e.Promises.stat(await e.Promises.readlink(L)),symbolicLink:{dangling:!1}}}catch(N){if(N.code==="ENOENT"&&y)return{stat:y,symbolicLink:{dangling:!0}};throw N}throw P}}ee.stat=se;async function R(L){try{const{stat:y,symbolicLink:P}=await ee.stat(L);return y.isFile()&&P?.dangling!==!0}catch{}return!1}ee.existsFile=R;async function x(L){try{const{stat:y,symbolicLink:P}=await ee.stat(L);return y.isDirectory()&&P?.dangling!==!0}catch{}return!1}ee.existsDirectory=x})(h=e.SymlinkSupport||(e.SymlinkSupport={}));const c=new j.ResourceQueue;function w(ee,se,R){return c.queueFor(I.URI.file(ee),O.extUriBiasedIgnorePathCase).queue(()=>{const x=D(R);return new Promise((L,y)=>s(ee,se,x,P=>P?y(P):L()))})}let i=!0;function l(ee){i=ee}e.configureFlushOnWrite=l;function s(ee,se,R,x){if(!i)return _.writeFile(ee,se,{mode:R.mode,flag:R.flag},x);_.open(ee,R.flag,R.mode,(L,y)=>{if(L)return x(L);_.writeFile(y,se,P=>{if(P)return _.close(y,()=>x(P));_.fdatasync(y,N=>(N&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",N),l(!1)),_.close(y,Q=>x(Q))))})})}function d(ee,se,R){const x=D(R);if(!i)return _.writeFileSync(ee,se,{mode:x.mode,flag:x.flag});const L=_.openSync(ee,x.flag,x.mode);try{_.writeFileSync(L,se);try{_.fdatasyncSync(L)}catch(y){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",y),l(!1)}}finally{_.closeSync(L)}}e.writeFileSync=d;function D(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,se){if(ee!==se)try{await e.Promises.rename(ee,se)}catch(R){if(ee.toLowerCase()!==se.toLowerCase()&&R.code==="EXDEV"||ee.endsWith("."))await ie(ee,se,{preserveSymlinks:!1}),await m(ee,U.MOVE);else throw R}}async function ie(ee,se,R){return le(ee,se,{root:{source:ee,target:se},options:R,handledSourcePaths:new Set})}const te=511;async function le(ee,se,R){if(R.handledSourcePaths.has(ee))return;R.handledSourcePaths.add(ee);const{stat:x,symbolicLink:L}=await h.stat(ee);if(L){if(R.options.preserveSymlinks)try{return await fe(ee,se,R)}catch(y){console.warn("[node.js fs] copy of symlink failed: ",y)}if(L.dangling)return}return x.isDirectory()?ae(ee,se,x.mode&te,R):he(ee,se,x.mode&te)}async function ae(ee,se,R,x){await e.Promises.mkdir(se,{recursive:!0,mode:R});const L=await u(ee);for(const y of L)await le((0,S.join)(ee,y),(0,S.join)(se,y),x)}async function he(ee,se,R){await e.Promises.copyFile(ee,se),await e.Promises.chmod(se,R)}async function fe(ee,se,R){let x=await e.Promises.readlink(ee);(0,B.isEqualOrParent)(x,R.root.source,!A.isLinux)&&(x=(0,S.join)(R.root.target,x.substr(R.root.source.length+1))),await e.Promises.symlink(x,se)}e.Promises=new class{get access(){return(0,M.promisify)(_.access)}get stat(){return(0,M.promisify)(_.stat)}get lstat(){return(0,M.promisify)(_.lstat)}get utimes(){return(0,M.promisify)(_.utimes)}get read(){return(ee,se,R,x,L)=>new Promise((y,P)=>{_.read(ee,se,R,x,L,(N,Q,Z)=>N?P(N):y({bytesRead:Q,buffer:Z}))})}get readFile(){return(0,M.promisify)(_.readFile)}get write(){return(ee,se,R,x,L)=>new Promise((y,P)=>{_.write(ee,se,R,x,L,(N,Q,Z)=>N?P(N):y({bytesWritten:Q,buffer:Z}))})}get appendFile(){return(0,M.promisify)(_.appendFile)}get fdatasync(){return(0,M.promisify)(_.fdatasync)}get truncate(){return(0,M.promisify)(_.truncate)}get rename(){return(0,M.promisify)(_.rename)}get copyFile(){return(0,M.promisify)(_.copyFile)}get open(){return(0,M.promisify)(_.open)}get close(){return(0,M.promisify)(_.close)}get symlink(){return(0,M.promisify)(_.symlink)}get readlink(){return(0,M.promisify)(_.readlink)}get chmod(){return(0,M.promisify)(_.chmod)}get mkdir(){return(0,M.promisify)(_.mkdir)}get unlink(){return(0,M.promisify)(_.unlink)}get rmdir(){return(0,M.promisify)(_.rmdir)}get realpath(){return(0,M.promisify)(_.realpath)}async exists(ee){try{return await e.Promises.access(ee),!0}catch{return!1}}get readdir(){return u}get readDirsInDir(){return a}get writeFile(){return w}get rm(){return m}get move(){return K}get copy(){return ie}}}),define(ce[27],ue([0,1,18,3,2,5,17]),function(oe,e,_,W,M,j,B){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.realpathSync=e.realpath=e.realcase=e.realcaseSync=void 0;function T(U){if(M.isLinux)return U;const m=(0,W.dirname)(U);if(U===m)return U;const f=((0,W.basename)(U)||U).toLowerCase();try{const g=(0,B.readdirSync)(m).filter(u=>u.toLowerCase()===f);if(g.length===1){const u=T(m);if(u)return(0,W.join)(u,g[0])}else if(g.length>1){const u=g.indexOf(f);if(u>=0){const v=T(m);if(v)return(0,W.join)(v,g[u])}}}catch{}return null}e.realcaseSync=T;async function S(U){if(M.isLinux)return U;const m=(0,W.dirname)(U);if(U===m)return U;const f=((0,W.basename)(U)||U).toLowerCase();try{const g=(await B.Promises.readdir(m)).filter(u=>u.toLowerCase()===f);if(g.length===1){const u=await S(m);if(u)return(0,W.join)(u,g[0])}else if(g.length>1){const u=g.indexOf(f);if(u>=0){const v=await S(m);if(v)return(0,W.join)(v,g[u])}}}catch{}return null}e.realcase=S;async function A(U){try{return await B.Promises.realpath(U)}catch{const f=I(U);return await B.Promises.access(f,_.constants.R_OK),f}}e.realpath=A;function O(U){try{return _.realpathSync(U)}catch{const f=I(U);return _.accessSync(f,_.constants.R_OK),f}}e.realpathSync=O;function I(U){return(0,j.rtrim)((0,W.normalize)(U),W.sep)}}),define(ce[46],ue([0,1,3,2,23,24,10,17]),function(oe,e,_,W,M,j,B,T){"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 j.Source}}),Object.defineProperty(e,"TerminateResponseCode",{enumerable:!0,get:function(){return j.TerminateResponseCode}});function S(I=M.env){return I.comspec||"cmd.exe"}e.getWindowsShell=S;function A(I){let U=[],m=!1;const f=function(o){if(m){U.push(o);return}(!I.send(o,u=>{if(u&&console.error(u),m=!1,U.length>0){const v=U.slice(0);U=[],v.forEach(n=>f(n))}})||W.isWindows)&&(m=!0)};return{send:f}}e.createQueuedSender=A;var O;(function(I){async function U(m,f,o){if(_.isAbsolute(m))return m;if(f===void 0&&(f=M.cwd()),_.dirname(m)!=="."||(o===void 0&&B.isString(M.env.PATH)&&(o=M.env.PATH.split(_.delimiter)),o===void 0||o.length===0))return _.join(f,m);async function u(v){if(await T.Promises.exists(v)){let n;try{n=await T.Promises.stat(v)}catch(t){t.message.startsWith("EACCES")&&(n=await T.Promises.lstat(v))}return n?!n.isDirectory():!1}return!1}for(const v of o){let n;if(_.isAbsolute(v)?n=_.join(v,m):n=_.join(f,v,m),await u(n))return n;let t=n+".com";if(await u(t)||(t=n+".exe",await u(t)))return t}return _.join(f,m)}I.findExecutable=U})(O=e.win32||(e.win32={}))});var ke=this&&this.__decorate||function(oe,e,_,W){var M=arguments.length,j=M<3?e:W===null?W=Object.getOwnPropertyDescriptor(e,_):W,B;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")j=Reflect.decorate(oe,e,_,W);else for(var T=oe.length-1;T>=0;T--)(B=oe[T])&&(j=(M<3?B(j):M>3?B(e,_,j):B(e,_))||j);return M>3&&j&&Object.defineProperty(e,_,j),j};define(ce[28],ue([0,1,13,8,15,11,31,9,6,4,43,5,10]),function(oe,e,_,W,M,j,B,T,S,A,O,I,U){"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 m;(function(L){L[L.Promise=100]="Promise",L[L.PromiseCancel=101]="PromiseCancel",L[L.EventListen=102]="EventListen",L[L.EventDispose=103]="EventDispose"})(m=e.RequestType||(e.RequestType={}));function f(L){switch(L){case 100:return"req";case 101:return"cancel";case 102:return"subscribe";case 103:return"unsubscribe"}}var o;(function(L){L[L.Initialize=200]="Initialize",L[L.PromiseSuccess=201]="PromiseSuccess",L[L.PromiseError=202]="PromiseError",L[L.PromiseErrorObj=203]="PromiseErrorObj",L[L.EventFire=204]="EventFire"})(o=e.ResponseType||(e.ResponseType={}));function g(L){switch(L){case 200:return"init";case 201:return"reply:";case 202:case 203:return"replyErr:";case 204:return"event:"}}var u;(function(L){L[L.Uninitialized=0]="Uninitialized",L[L.Idle=1]="Idle"})(u||(u={}));class v{constructor(y){this.buffer=y,this.pos=0}read(y){const P=this.buffer.slice(this.pos,this.pos+y);return this.pos+=P.byteLength,P}}class n{constructor(){this.buffers=[]}get buffer(){return M.VSBuffer.concat(this.buffers)}write(y){this.buffers.push(y)}}var t;(function(L){L[L.Undefined=0]="Undefined",L[L.String=1]="String",L[L.Buffer=2]="Buffer",L[L.VSBuffer=3]="VSBuffer",L[L.Array=4]="Array",L[L.Object=5]="Object"})(t||(t={}));function a(L){const y=M.VSBuffer.alloc(4);return y.writeUInt32BE(L,0),y}function r(L){return L.read(4).readUInt32BE(0)}function h(L){const y=M.VSBuffer.alloc(1);return y.writeUInt8(L,0),y}const c={Undefined:h(t.Undefined),String:h(t.String),Buffer:h(t.Buffer),VSBuffer:h(t.VSBuffer),Array:h(t.Array),Object:h(t.Object)},w=typeof Buffer<"u";function i(L,y){if(typeof y>"u")L.write(c.Undefined);else if(typeof y=="string"){const P=M.VSBuffer.fromString(y);L.write(c.String),L.write(a(P.byteLength)),L.write(P)}else if(w&&Buffer.isBuffer(y)){const P=M.VSBuffer.wrap(y);L.write(c.Buffer),L.write(a(P.byteLength)),L.write(P)}else if(y instanceof M.VSBuffer)L.write(c.VSBuffer),L.write(a(y.byteLength)),L.write(y);else if(Array.isArray(y)){L.write(c.Array),L.write(a(y.length));for(const P of y)i(L,P)}else{const P=M.VSBuffer.fromString(JSON.stringify(y));L.write(c.Object),L.write(a(P.byteLength)),L.write(P)}}function l(L){switch(L.read(1).readUInt8(0)){case t.Undefined:return;case t.String:return L.read(r(L)).toString();case t.Buffer:return L.read(r(L)).buffer;case t.VSBuffer:return L.read(r(L));case t.Array:{const P=r(L),N=[];for(let Q=0;Qthis.onRawMessage(Z)),this.sendResponse({type:200})}registerChannel(y,P){this.channels.set(y,P),setTimeout(()=>this.flushPendingRequests(y),0)}sendResponse(y){switch(y.type){case 200:{const P=this.send([y.type]);this.logger?.logOutgoing(P,0,1,g(y.type));return}case 201:case 202:case 204:case 203:{const P=this.send([y.type,y.id],y.data);this.logger?.logOutgoing(P,y.id,1,g(y.type),y.data);return}}}send(y,P=void 0){const N=new n;return i(N,y),i(N,P),this.sendBuffer(N.buffer)}sendBuffer(y){try{return this.protocol.send(y),y.byteLength}catch{return 0}}onRawMessage(y){const P=new v(y),N=l(P),Q=l(P),Z=N[0];switch(Z){case 100:return this.logger?.logIncoming(y.byteLength,N[1],1,`${f(Z)}: ${N[2]}.${N[3]}`,Q),this.onPromise({type:Z,id:N[1],channelName:N[2],name:N[3],arg:Q});case 102:return this.logger?.logIncoming(y.byteLength,N[1],1,`${f(Z)}: ${N[2]}.${N[3]}`,Q),this.onEventListen({type:Z,id:N[1],channelName:N[2],name:N[3],arg:Q});case 101:return this.logger?.logIncoming(y.byteLength,N[1],1,`${f(Z)}`),this.disposeActiveRequest({type:Z,id:N[1]});case 103:return this.logger?.logIncoming(y.byteLength,N[1],1,`${f(Z)}`),this.disposeActiveRequest({type:Z,id:N[1]})}}onPromise(y){const P=this.channels.get(y.channelName);if(!P){this.collectPendingRequest(y);return}const N=new j.CancellationTokenSource;let Q;try{Q=P.call(this.ctx,y.name,y.arg,N.token)}catch(E){Q=Promise.reject(E)}const Z=y.id;Q.then(E=>{this.sendResponse({id:Z,data:E,type:201}),this.activeRequests.delete(y.id)},E=>{E instanceof Error?this.sendResponse({id:Z,data:{message:E.message,name:E.name,stack:E.stack?E.stack.split?E.stack.split(` `):E.stack:void 0},type:202}):this.sendResponse({id:Z,data:E,type:203}),this.activeRequests.delete(y.id)});const V=(0,A.toDisposable)(()=>N.cancel());this.activeRequests.set(y.id,V)}onEventListen(y){const P=this.channels.get(y.channelName);if(!P){this.collectPendingRequest(y);return}const N=y.id,Z=P.listen(this.ctx,y.name,y.arg)(V=>this.sendResponse({id:N,data:V,type:204}));this.activeRequests.set(y.id,Z)}disposeActiveRequest(y){const P=this.activeRequests.get(y.id);P&&(P.dispose(),this.activeRequests.delete(y.id))}collectPendingRequest(y){let P=this.pendingRequests.get(y.channelName);P||(P=[],this.pendingRequests.set(y.channelName,P));const N=setTimeout(()=>{console.error(`Unknown channel: ${y.channelName}`),y.type===100&&this.sendResponse({id:y.id,data:{name:"Unknown channel",message:`Channel name '${y.channelName}' timed out after ${this.timeoutDelay}ms`,stack:void 0},type:202})},this.timeoutDelay);P.push({request:y,timeoutTimer:N})}flushPendingRequests(y){const P=this.pendingRequests.get(y);if(P){for(const N of P)switch(clearTimeout(N.timeoutTimer),N.request.type){case 100:this.onPromise(N.request);break;case 102:this.onEventListen(N.request);break}this.pendingRequests.delete(y)}}dispose(){this.protocolListener&&(this.protocolListener.dispose(),this.protocolListener=null),(0,A.dispose)(this.activeRequests.values()),this.activeRequests.clear()}}e.ChannelServer=s;var d;(function(L){L[L.LocalSide=0]="LocalSide",L[L.OtherSide=1]="OtherSide"})(d=e.RequestInitiator||(e.RequestInitiator={}));class D{constructor(y,P=null){this.protocol=y,this.isDisposed=!1,this.state=u.Uninitialized,this.activeRequests=new Set,this.handlers=new Map,this.lastRequestId=0,this._onDidInitialize=new S.Emitter,this.onDidInitialize=this._onDidInitialize.event,this.protocolListener=this.protocol.onMessage(N=>this.onBuffer(N)),this.logger=P}getChannel(y){const P=this;return{call(N,Q,Z){return P.isDisposed?Promise.reject(new T.CancellationError):P.requestPromise(y,N,Q,Z)},listen(N,Q){return P.isDisposed?S.Event.None:P.requestEvent(y,N,Q)}}}requestPromise(y,P,N,Q=j.CancellationToken.None){const Z=this.lastRequestId++,E={id:Z,type:100,channelName:y,name:P,arg:N};if(Q.isCancellationRequested)return Promise.reject(new T.CancellationError);let k;return new Promise((q,G)=>{if(Q.isCancellationRequested)return G(new T.CancellationError);const J=()=>{const H=X=>{switch(X.type){case 201:this.handlers.delete(Z),q(X.data);break;case 202:{this.handlers.delete(Z);const de=new Error(X.data.message);de.stack=Array.isArray(X.data.stack)?X.data.stack.join(` `):X.data.stack,de.name=X.data.name,G(de);break}case 203:this.handlers.delete(Z),G(X.data);break}};this.handlers.set(Z,H),this.sendRequest(E)};let C=null;this.state===u.Idle?J():(C=(0,W.createCancelablePromise)(H=>this.whenInitialized()),C.then(()=>{C=null,J()}));const p=()=>{C?(C.cancel(),C=null):this.sendRequest({id:Z,type:101}),G(new T.CancellationError)},F=Q.onCancellationRequested(p);k=(0,A.combinedDisposable)((0,A.toDisposable)(p),F),this.activeRequests.add(k)}).finally(()=>{this.activeRequests.delete(k)})}requestEvent(y,P,N){const Q=this.lastRequestId++,V={id:Q,type:102,channelName:y,name:P,arg:N};let E=null;const k=new S.Emitter({onFirstListenerAdd:()=>{E=(0,W.createCancelablePromise)(q=>this.whenInitialized()),E.then(()=>{E=null,this.activeRequests.add(k),this.sendRequest(V)})},onLastListenerRemove:()=>{E?(E.cancel(),E=null):(this.activeRequests.delete(k),this.sendRequest({id:Q,type:103}))}}),z=q=>k.fire(q.data);return this.handlers.set(Q,z),k.event}sendRequest(y){switch(y.type){case 100:case 102:{const P=this.send([y.type,y.id,y.channelName,y.name],y.arg);this.logger?.logOutgoing(P,y.id,0,`${f(y.type)}: ${y.channelName}.${y.name}`,y.arg);return}case 101:case 103:{const P=this.send([y.type,y.id]);this.logger?.logOutgoing(P,y.id,0,f(y.type));return}}}send(y,P=void 0){const N=new n;return i(N,y),i(N,P),this.sendBuffer(N.buffer)}sendBuffer(y){try{return this.protocol.send(y),y.byteLength}catch{return 0}}onBuffer(y){const P=new v(y),N=l(P),Q=l(P),Z=N[0];switch(Z){case 200:return this.logger?.logIncoming(y.byteLength,0,0,g(Z)),this.onResponse({type:N[0]});case 201:case 202:case 204:case 203:return this.logger?.logIncoming(y.byteLength,N[1],0,g(Z),Q),this.onResponse({type:N[0],id:N[1],data:Q})}}onResponse(y){if(y.type===200){this.state=u.Idle,this._onDidInitialize.fire();return}this.handlers.get(y.id)?.(y)}get onDidInitializePromise(){return S.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,A.dispose)(this.activeRequests.values()),this.activeRequests.clear()}}ke([B.memoize],D.prototype,"onDidInitializePromise",null),e.ChannelClient=D;class K{get connections(){const y=[];return this._connections.forEach(P=>y.push(P)),y}constructor(y){this.channels=new Map,this._connections=new Set,this._onDidAddConnection=new S.Emitter,this.onDidAddConnection=this._onDidAddConnection.event,this._onDidRemoveConnection=new S.Emitter,this.onDidRemoveConnection=this._onDidRemoveConnection.event,y(({protocol:P,onDidClientDisconnect:N})=>{S.Event.once(P.onMessage)(Z=>{const V=new v(Z),E=l(V),k=new s(P,E),z=new D(P);this.channels.forEach((G,J)=>k.registerChannel(J,G));const q={channelServer:k,channelClient:z,ctx:E};this._connections.add(q),this._onDidAddConnection.fire(q),N(()=>{k.dispose(),z.dispose(),this._connections.delete(q),this._onDidRemoveConnection.fire(q)})})})}getChannel(y,P){const N=this;return{call(Q,Z,V){let E;if((0,U.isFunction)(P)){const z=(0,_.getRandomElement)(N.connections.filter(P));E=z?Promise.resolve(z):S.Event.toPromise(S.Event.filter(N.onDidAddConnection,P))}else E=P.routeCall(N,Q,Z);const k=E.then(z=>z.channelClient.getChannel(y));return te(k).call(Q,Z,V)},listen(Q,Z){if((0,U.isFunction)(P))return N.getMulticastEvent(y,P,Q,Z);const V=P.routeEvent(N,Q,Z).then(E=>E.channelClient.getChannel(y));return te(V).listen(Q,Z)}}}getMulticastEvent(y,P,N,Q){const Z=this;let V=new A.DisposableStore;const E=new S.Emitter({onFirstListenerAdd:()=>{V=new A.DisposableStore;const k=new S.EventMultiplexer,z=new Map,q=J=>{const p=J.channelClient.getChannel(y).listen(N,Q),F=k.add(p);z.set(J,F)},G=J=>{const C=z.get(J);!C||(C.dispose(),z.delete(J))};Z.connections.filter(P).forEach(q),S.Event.filter(Z.onDidAddConnection,P)(q,void 0,V),Z.onDidRemoveConnection(G,void 0,V),k.event(E.fire,E,V),V.add(k)},onLastListenerRemove:()=>{V.dispose()}});return E.event}registerChannel(y,P){this.channels.set(y,P),this._connections.forEach(N=>{N.channelServer.registerChannel(y,P)})}dispose(){this.channels.clear(),this._connections.clear(),this._onDidAddConnection.dispose(),this._onDidRemoveConnection.dispose()}}e.IPCServer=K;class ie{constructor(y,P,N=null){const Q=new n;i(Q,P),y.send(Q.buffer),this.channelClient=new D(y,N),this.channelServer=new s(y,P,N)}getChannel(y){return this.channelClient.getChannel(y)}registerChannel(y,P){this.channelServer.registerChannel(y,P)}dispose(){this.channelClient.dispose(),this.channelServer.dispose()}}e.IPCClient=ie;function te(L){return{call(y,P,N){return L.then(Q=>Q.call(y,P,N))},listen(y,P){const N=new S.Relay;return L.then(Q=>N.input=Q.listen(y,P)),N.event}}}e.getDelayedChannel=te;function le(L){let y=!1;return{call(P,N,Q){return y?L.call(P,N,Q):(0,W.timeout)(0).then(()=>y=!0).then(()=>L.call(P,N,Q))},listen(P,N){if(y)return L.listen(P,N);const Q=new S.Relay;return(0,W.timeout)(0).then(()=>y=!0).then(()=>Q.input=L.listen(P,N)),Q.event}}}e.getNextTickChannel=le;class ae{constructor(y){this.fn=y}routeCall(y){return this.route(y)}routeEvent(y){return this.route(y)}async route(y){for(const P of y.connections)if(await Promise.resolve(this.fn(P.ctx)))return Promise.resolve(P);return await S.Event.toPromise(y.onDidAddConnection),await this.route(y)}}e.StaticRouter=ae;var he;(function(L){function y(Z,V){const E=Z,k=V&&V.disableMarshalling,z=new Map;for(const q in E)N(q)&&z.set(q,S.Event.buffer(E[q],!0));return new class{listen(q,G,J){const C=z.get(G);if(C)return C;if(Q(G)){const p=E[G];if(typeof p=="function")return p.call(E,J)}throw new Error(`Event not found: ${G}`)}call(q,G,J){const C=E[G];if(typeof C=="function"){if(!k&&Array.isArray(J))for(let p=0;p{try{process.send?.(v.buffer.toString("base64"))}catch{}},onMessage:S.Event.fromNodeEventEmitter(process,"message",v=>M.VSBuffer.wrap(Buffer.from(v,"base64")))},u),process.once("disconnect",()=>this.dispose())}}e.Server=f;class o{constructor(u,v){this.modulePath=u,this.options=v,this.activeRequests=new Set,this.channels=new Map,this._onDidProcessExit=new S.Emitter,this.onDidProcessExit=this._onDidProcessExit.event;const n=v&&v.timeout?v.timeout:6e4;this.disposeDelayer=new W.Delayer(n),this.child=null,this._client=null}getChannel(u){const v=this;return{call(n,t,a){return v.requestPromise(u,n,t,a)},listen(n,t){return v.requestEvent(u,n,t)}}}requestPromise(u,v,n,t=j.CancellationToken.None){if(!this.disposeDelayer)return Promise.reject(new Error("disposed"));if(t.isCancellationRequested)return Promise.reject(T.canceled());this.disposeDelayer.cancel();const a=this.getCachedChannel(u),r=(0,W.createCancelablePromise)(w=>a.call(v,n,w)),h=t.onCancellationRequested(()=>r.cancel()),c=(0,A.toDisposable)(()=>r.cancel());return this.activeRequests.add(c),r.finally(()=>{h.dispose(),this.activeRequests.delete(c),this.activeRequests.size===0&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}),r}requestEvent(u,v,n){if(!this.disposeDelayer)return S.Event.None;this.disposeDelayer.cancel();let t;const a=new S.Emitter({onFirstListenerAdd:()=>{t=this.getCachedChannel(u).listen(v,n)(a.fire,a),this.activeRequests.add(t)},onLastListenerRemove:()=>{this.activeRequests.delete(t),t.dispose(),this.activeRequests.size===0&&this.disposeDelayer&&this.disposeDelayer.trigger(()=>this.disposeClient())}});return a.event}get client(){if(!this._client){const u=this.options&&this.options.args?this.options.args:[],v=Object.create(null);v.env={...(0,O.deepClone)(process.env),VSCODE_PARENT_PID:String(process.pid)},this.options&&this.options.env&&(v.env={...v.env,...this.options.env}),this.options&&this.options.freshExecArgv&&(v.execArgv=[]),this.options&&typeof this.options.debug=="number"&&(v.execArgv=["--nolazy","--inspect="+this.options.debug]),this.options&&typeof this.options.debugBrk=="number"&&(v.execArgv=["--nolazy","--inspect-brk="+this.options.debugBrk]),v.execArgv===void 0&&(v.execArgv=process.execArgv.filter(i=>!/^--inspect(-brk)?=/.test(i))),(0,U.removeDangerousEnvVariables)(v.env),this.child=(0,_.fork)(this.modulePath,u,v);const n=new S.Emitter;S.Event.fromNodeEventEmitter(this.child,"message",i=>i)(i=>{if((0,B.isRemoteConsoleLog)(i)){(0,B.log)(i,`IPC Library: ${this.options.serverName}`);return}n.fire(M.VSBuffer.wrap(Buffer.from(i,"base64")))});const a=this.options.useQueue?(0,I.createQueuedSender)(this.child):this.child,r=i=>this.child&&this.child.connected&&a.send(i.buffer.toString("base64")),h=n.event,c={send:r,onMessage:h};this._client=new m.ChannelClient(c);const w=()=>this.disposeClient();process.once("exit",w),this.child.on("error",i=>console.warn('IPC "'+this.options.serverName+'" errored with '+i)),this.child.on("exit",(i,l)=>{process.removeListener("exit",w),this.activeRequests.forEach(s=>(0,A.dispose)(s)),this.activeRequests.clear(),i!==0&&l!=="SIGTERM"&&console.warn('IPC "'+this.options.serverName+'" crashed with exit code '+i+" and signal "+l),this.disposeDelayer?.cancel(),this.disposeClient(),this._onDidProcessExit.fire({code:i,signal:l})})}return this._client}getCachedChannel(u){let v=this.channels.get(u);return v||(v=this.client.getChannel(u),this.channels.set(u,v)),v}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=o}),define(ce[48],ue([21,22]),function(oe,e){return oe.create("vs/platform/files/common/files",e)}),define(ce[49],ue([0,1]),function(oe,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.refineServiceDecorator=e.createDecorator=e.IInstantiationService=e._util=void 0;var _;(function(B){B.serviceIds=new Map,B.DI_TARGET="$di$target",B.DI_DEPENDENCIES="$di$dependencies";function T(S){return S[B.DI_DEPENDENCIES]||[]}B.getServiceDependencies=T})(_=e._util||(e._util={})),e.IInstantiationService=M("instantiationService");function W(B,T,S){T[_.DI_TARGET]===T?T[_.DI_DEPENDENCIES].push({id:B,index:S}):(T[_.DI_DEPENDENCIES]=[{id:B,index:S}],T[_.DI_TARGET]=T)}function M(B){if(_.serviceIds.has(B))return _.serviceIds.get(B);const T=function(S,A,O){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");W(T,S,O)};return T.toString=()=>B,_.serviceIds.set(B,T),T}e.createDecorator=M;function j(B){return B}e.refineServiceDecorator=j}),define(ce[50],ue([0,1,25,3,5,10,7,48,49]),function(oe,e,_,W,M,j,B,T,S){"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,S.createDecorator)("fileService");function A(R){return R.create===!0}e.isFileOpenForWriteOptions=A;var O;(function(R){R[R.Unknown=0]="Unknown",R[R.File=1]="File",R[R.Directory=2]="Directory",R[R.SymbolicLink=64]="SymbolicLink"})(O=e.FileType||(e.FileType={}));var I;(function(R){R[R.Readonly=1]="Readonly"})(I=e.FilePermission||(e.FilePermission={}));var U;(function(R){R[R.FileReadWrite=2]="FileReadWrite",R[R.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",R[R.FileReadStream=16]="FileReadStream",R[R.FileFolderCopy=8]="FileFolderCopy",R[R.PathCaseSensitive=1024]="PathCaseSensitive",R[R.Readonly=2048]="Readonly",R[R.Trash=4096]="Trash",R[R.FileWriteUnlock=8192]="FileWriteUnlock",R[R.FileAtomicRead=16384]="FileAtomicRead",R[R.FileClone=32768]="FileClone"})(U=e.FileSystemProviderCapabilities||(e.FileSystemProviderCapabilities={}));function m(R){return!!(R.capabilities&2)}e.hasReadWriteCapability=m;function f(R){return!!(R.capabilities&8)}e.hasFileFolderCopyCapability=f;function o(R){return!!(R.capabilities&32768)}e.hasFileCloneCapability=o;function g(R){return!!(R.capabilities&4)}e.hasOpenReadWriteCloseCapability=g;function u(R){return!!(R.capabilities&16)}e.hasFileReadStreamCapability=u;function v(R){return m(R)?!!(R.capabilities&16384):!1}e.hasFileAtomicReadCapability=v;var n;(function(R){R.FileExists="EntryExists",R.FileNotFound="EntryNotFound",R.FileNotADirectory="EntryNotADirectory",R.FileIsADirectory="EntryIsADirectory",R.FileExceedsMemoryLimit="EntryExceedsMemoryLimit",R.FileTooLarge="EntryTooLarge",R.FileWriteLocked="EntryWriteLocked",R.NoPermissions="NoPermissions",R.Unavailable="Unavailable",R.Unknown="Unknown"})(n=e.FileSystemProviderErrorCode||(e.FileSystemProviderErrorCode={}));class t extends Error{constructor(x,L){super(x),this.code=L}}e.FileSystemProviderError=t;function a(R,x){const L=new t(R.toString(),x);return h(L,x),L}e.createFileSystemProviderError=a;function r(R){return R||a((0,T.localize)(0,null),n.Unknown)}e.ensureFileSystemProviderError=r;function h(R,x){return R.name=x?`${x} (FileSystemError)`:"FileSystemError",R}e.markAsFileSystemProviderError=h;function c(R){if(!R)return n.Unknown;if(R instanceof t)return R.code;const x=/^(.+) \(FileSystemError\)$/.exec(R.name);if(!x)return n.Unknown;switch(x[1]){case n.FileExists:return n.FileExists;case n.FileIsADirectory:return n.FileIsADirectory;case n.FileNotADirectory:return n.FileNotADirectory;case n.FileNotFound:return n.FileNotFound;case n.FileExceedsMemoryLimit:return n.FileExceedsMemoryLimit;case n.FileTooLarge:return n.FileTooLarge;case n.FileWriteLocked:return n.FileWriteLocked;case n.NoPermissions:return n.NoPermissions;case n.Unavailable:return n.Unavailable}return n.Unknown}e.toFileSystemProviderErrorCode=c;function w(R){if(R instanceof K)return R.fileOperationResult;switch(c(R)){case n.FileNotFound:return 1;case n.FileIsADirectory:return 0;case n.FileNotADirectory:return 10;case n.FileWriteLocked:return 5;case n.NoPermissions:return 6;case n.FileExists:return 4;case n.FileExceedsMemoryLimit:return 9;case n.FileTooLarge:return 7;default:return 11}}e.toFileOperationResult=w;var i;(function(R){R[R.CREATE=0]="CREATE",R[R.DELETE=1]="DELETE",R[R.MOVE=2]="MOVE",R[R.COPY=3]="COPY",R[R.WRITE=4]="WRITE"})(i=e.FileOperation||(e.FileOperation={}));class l{constructor(x,L,y){this.resource=x,this.operation=L,this.target=y}isOperation(x){return this.operation===x}}e.FileOperationEvent=l;var s;(function(R){R[R.UPDATED=0]="UPDATED",R[R.ADDED=1]="ADDED",R[R.DELETED=2]="DELETED"})(s=e.FileChangeType||(e.FileChangeType={}));class d{constructor(x,L){this.added=void 0,this.updated=void 0,this.deleted=void 0,this.rawChanges=[],this.rawAdded=[],this.rawUpdated=[],this.rawDeleted=[],this.rawChanges=x;const y=new Map;for(const P of x){const N=y.get(P.type);switch(N?N.push([P.resource,P]):y.set(P.type,[[P.resource,P]]),P.type){case 1:this.rawAdded.push(P.resource);break;case 0:this.rawUpdated.push(P.resource);break;case 2:this.rawDeleted.push(P.resource);break}}for(const[P,N]of y)switch(P){case 1:this.added=_.TernarySearchTree.forUris(()=>L),this.added.fill(N);break;case 0:this.updated=_.TernarySearchTree.forUris(()=>L),this.updated.fill(N);break;case 2:this.deleted=_.TernarySearchTree.forUris(()=>L),this.deleted.fill(N);break}}contains(x,...L){return this.doContains(x,{includeChildren:!1},...L)}affects(x,...L){return this.doContains(x,{includeChildren:!0},...L)}doContains(x,L,...y){if(!x)return!1;const P=y.length>0;return!!((!P||y.includes(1))&&(this.added?.get(x)||L.includeChildren&&this.added?.findSuperstr(x))||(!P||y.includes(0))&&(this.updated?.get(x)||L.includeChildren&&this.updated?.findSuperstr(x))||(!P||y.includes(2))&&(this.deleted?.findSubstr(x)||L.includeChildren&&this.deleted?.findSuperstr(x)))}gotAdded(){return!!this.added}gotDeleted(){return!!this.deleted}gotUpdated(){return!!this.updated}}e.FileChangesEvent=d;function D(R,x,L){return!R||!x||R===x||x.length>R.length?!1:(x.charAt(x.length-1)!==W.sep&&(x+=W.sep),L?(0,M.startsWithIgnoreCase)(R,x):R.indexOf(x)===0)}e.isParent=D;class K extends Error{constructor(x,L,y){super(x),this.fileOperationResult=L,this.options=y}}e.FileOperationError=K;class ie extends K{constructor(x,L,y){super(x,2,y),this.stat=L}}e.NotModifiedSinceFileOperationError=ie;var te;(function(R){R[R.FILE_IS_DIRECTORY=0]="FILE_IS_DIRECTORY",R[R.FILE_NOT_FOUND=1]="FILE_NOT_FOUND",R[R.FILE_NOT_MODIFIED_SINCE=2]="FILE_NOT_MODIFIED_SINCE",R[R.FILE_MODIFIED_SINCE=3]="FILE_MODIFIED_SINCE",R[R.FILE_MOVE_CONFLICT=4]="FILE_MOVE_CONFLICT",R[R.FILE_WRITE_LOCKED=5]="FILE_WRITE_LOCKED",R[R.FILE_PERMISSION_DENIED=6]="FILE_PERMISSION_DENIED",R[R.FILE_TOO_LARGE=7]="FILE_TOO_LARGE",R[R.FILE_INVALID_PATH=8]="FILE_INVALID_PATH",R[R.FILE_EXCEEDS_MEMORY_LIMIT=9]="FILE_EXCEEDS_MEMORY_LIMIT",R[R.FILE_NOT_DIRECTORY=10]="FILE_NOT_DIRECTORY",R[R.FILE_OTHER_ERROR=11]="FILE_OTHER_ERROR"})(te=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 le;(function(R){R[R.FILE=0]="FILE",R[R.FOLDER=1]="FOLDER",R[R.ROOT_FOLDER=2]="ROOT_FOLDER"})(le=e.FileKind||(e.FileKind={})),e.ETAG_DISABLED="";function ae(R){if(!(typeof R.size!="number"||typeof R.mtime!="number"))return R.mtime.toString(29)+R.size.toString(31)}e.etag=ae;async function he(R,x){if(!x.hasProvider(B.URI.from({scheme:R.scheme})))return new Promise(L=>{const y=x.onDidChangeFileSystemProviderRegistrations(P=>{P.scheme===R.scheme&&P.added&&(y.dispose(),L())})})}e.whenProviderRegistered=he,e.MIN_MAX_MEMORY_SIZE_MB=2048,e.FALLBACK_MAX_MEMORY_SIZE_MB=4096;class fe{static formatSize(x){return(0,j.isNumber)(x)||(x=0),xthis.onFileChanges(n))),v.add(this.watcher.onDidLogMessage(n=>this.onLogMessage(n))),v.add(this.watcher.onDidError(n=>this.onError(n)))}onError(v){this.options.restartOnError?this.restartCounter({type:v.type,resource:B.URI.file(v.path)}))}e.toFileChanges=U;function m(u){const v=new g;for(const n of u)v.processEvent(n);return v.coalesce()}e.coalesceEvents=m;function f(u,v){return typeof v=="string"&&!v.startsWith(_.GLOBSTAR)&&!(0,M.isAbsolute)(v)?{base:u,pattern:v}:v}e.normalizeWatcherPattern=f;function o(u,v){const n=[];for(const t of v)n.push((0,_.parse)(f(u,t)));return n}e.parseWatcherPatterns=o;class g{constructor(){this.coalesced=new Set,this.mapPathToChange=new Map}toKey(v){return j.isLinux?v.path:v.path.toLowerCase()}processEvent(v){const n=this.mapPathToChange.get(this.toKey(v));let t=!1;if(n){const a=n.type,r=v.type;n.path!==v.path&&(v.type===2||v.type===1)?t=!0:a===1&&r===2?(this.mapPathToChange.delete(this.toKey(v)),this.coalesced.delete(n)):a===2&&r===1?n.type=0:a===1&&r===0||(n.type=r)}else t=!0;t&&(this.coalesced.add(v),this.mapPathToChange.set(this.toKey(v),v))}coalesce(){const v=[],n=[];return Array.from(this.coalesced).filter(t=>t.type!==2?(v.push(t),!1):!0).sort((t,a)=>t.path.length-a.path.length).filter(t=>n.some(a=>(0,T.isParent)(t.path,a,!j.isLinux))?!1:(n.push(t.path),!0)).concat(v)}}}),define(ce[30],ue([0,1,18,8,11,12,4,14,3,2,27,17,29]),function(oe,e,_,W,M,j,B,T,S,A,O,I,U){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.watchFileContents=e.NodeJSFileWatcherLibrary=void 0;class m extends B.Disposable{constructor(g,u,v,n){super(),this.request=g,this.onDidFilesChange=u,this.onLogMessage=v,this.verboseLogging=n,this.throttledFileChangesWorker=new W.ThrottledWorker({maxWorkChunkSize:100,throttleDelay:200,maxBufferedWork:1e4},t=>this.onDidFilesChange(t)),this.fileChangesDelayer=this._register(new W.ThrottledDelayer(m.FILE_CHANGES_HANDLER_DELAY)),this.fileChangesBuffer=[],this.excludes=(0,U.parseWatcherPatterns)(this.request.path,this.request.excludes),this.includes=this.request.includes?(0,U.parseWatcherPatterns)(this.request.path,this.request.includes):void 0,this.cts=new M.CancellationTokenSource,this.ready=this.watch()}async watch(){try{const g=await this.normalizePath(this.request);if(this.cts.token.isCancellationRequested)return;const u=await I.Promises.stat(g);this._register(await this.doWatch(g,u.isDirectory()))}catch(g){g.code!=="ENOENT"?this.error(g):this.trace(g)}}async normalizePath(g){let u=g.path;try{u=await I.Promises.realpath(g.path),g.path===u&&(u=await(0,O.realcase)(g.path)??g.path),g.path!==u&&this.trace(`correcting a path to watch that seems to be a symbolic link or wrong casing (original: ${g.path}, real: ${u})`)}catch{}return u}async doWatch(g,u){if(A.isMacintosh&&(0,j.isEqualOrParent)(g,"/Volumes/",!0))return this.error(`Refusing to watch ${g} for changes using fs.watch() for possibly being a network share where watching is unreliable and unstable.`),B.Disposable.None;const v=new M.CancellationTokenSource(this.cts.token),n=new B.DisposableStore;try{const t=(0,S.basename)(g),a=(0,_.watch)(g);n.add((0,B.toDisposable)(()=>{a.removeAllListeners(),a.close()})),this.trace(`Started watching: '${g}'`);const r=new Set;if(u)try{for(const c of await I.Promises.readdir(g))r.add(c)}catch(c){this.error(c)}const h=new Map;n.add((0,B.toDisposable)(()=>{for(const[,c]of h)c.dispose();h.clear()})),a.on("error",(c,w)=>{this.error(`Failed to watch ${g} for changes using fs.watch() (${c}, ${w})`),this.dispose()}),a.on("change",(c,w)=>{if(v.token.isCancellationRequested)return;this.trace(`[raw] ["${c}"] ${w}`);let i="";if(w&&(i=w.toString(),A.isMacintosh&&(i=(0,T.normalizeNFC)(i))),!(!i||c!=="change"&&c!=="rename"))if(u)if(c==="rename"){h.get(i)?.dispose();const l=setTimeout(async()=>{if(h.delete(i),i===t&&!await I.Promises.exists(g)){this.warn("Watcher shutdown because watched path got deleted"),this.dispose();return}const s=await this.existsChildStrictCase((0,S.join)(g,i));if(v.token.isCancellationRequested)return;let d;s?r.has(i)?d=0:(d=1,r.add(i)):(r.delete(i),d=2),this.onFileChange({path:(0,S.join)(this.request.path,i),type:d})},m.FILE_DELETE_HANDLER_DELAY);h.set(i,(0,B.toDisposable)(()=>clearTimeout(l)))}else{let l;r.has(i)?l=0:(l=1,r.add(i)),this.onFileChange({path:(0,S.join)(this.request.path,i),type:l})}else if(c==="rename"||i!==t){const l=setTimeout(async()=>{const s=await I.Promises.exists(g);v.token.isCancellationRequested||(s?(this.onFileChange({path:this.request.path,type:0},!0),n.add(await this.doWatch(g,!1))):(await this.onFileChange({path:this.request.path,type:2},!0),this.dispose()))},m.FILE_DELETE_HANDLER_DELAY);n.clear(),n.add((0,B.toDisposable)(()=>clearTimeout(l)))}else this.onFileChange({path:this.request.path,type:0},!0)})}catch(t){await I.Promises.exists(g)&&!v.token.isCancellationRequested&&this.error(`Failed to watch ${g} for changes using fs.watch() (${t.toString()})`)}return(0,B.toDisposable)(()=>{v.dispose(!0),n.dispose()})}async onFileChange(g,u=!1){if(!this.cts.token.isCancellationRequested){this.verboseLogging&&this.trace(`${g.type===1?"[ADDED]":g.type===2?"[DELETED]":"[CHANGED]"} ${g.path}`),!u&&this.excludes.some(v=>v(g.path))?this.verboseLogging&&this.trace(` >> ignored (excluded) ${g.path}`):!u&&this.includes&&this.includes.length>0&&!this.includes.some(v=>v(g.path))?this.verboseLogging&&this.trace(` >> ignored (not included) ${g.path}`):this.fileChangesBuffer.push(g);try{await this.fileChangesDelayer.trigger(async()=>{const v=this.fileChangesBuffer;this.fileChangesBuffer=[];const n=(0,U.coalesceEvents)(v);if(n.length>0){if(this.verboseLogging)for(const a of n)this.trace(`>> normalized ${a.type===1?"[ADDED]":a.type===2?"[DELETED]":"[CHANGED]"} ${a.path}`);this.throttledFileChangesWorker.work(n)?this.throttledFileChangesWorker.pending>0&&this.trace(`started throttling events due to large amount of file change events at once (pending: ${this.throttledFileChangesWorker.pending}, most recent change: ${n[0].path}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`):this.warn(`started ignoring events due to too many file change events at once (incoming: ${n.length}, most recent change: ${n[0].path}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`)}})}catch{}}}async existsChildStrictCase(g){if(A.isLinux)return I.Promises.exists(g);try{const u=(0,S.basename)(g);return(await I.Promises.readdir((0,S.dirname)(g))).some(n=>n===u)}catch(u){return this.trace(u),!1}}setVerboseLogging(g){this.verboseLogging=g}error(g){this.cts.token.isCancellationRequested||this.onLogMessage?.({type:"error",message:`[File Watcher (node.js)] ${g}`})}warn(g){this.cts.token.isCancellationRequested||this.onLogMessage?.({type:"warn",message:`[File Watcher (node.js)] ${g}`})}trace(g){!this.cts.token.isCancellationRequested&&this.verboseLogging&&this.onLogMessage?.({type:"trace",message:`[File Watcher (node.js)] ${g}`})}dispose(){this.trace(`stopping file watcher on ${this.request.path}`),this.cts.dispose(!0),super.dispose()}}e.NodeJSFileWatcherLibrary=m,m.FILE_DELETE_HANDLER_DELAY=100,m.FILE_CHANGES_HANDLER_DELAY=50;async function f(o,g,u,v,n=512){const t=await I.Promises.open(o,"r"),a=Buffer.allocUnsafe(n),r=new M.CancellationTokenSource(v);let h,c=!1;const w={path:o,excludes:[],recursive:!1},i=new m(w,l=>{(async()=>{for(const{type:s}of l)if(s===0){if(c)return;c=!0;try{for(;!r.token.isCancellationRequested;){const{bytesRead:d}=await I.Promises.read(t,a,0,n,null);if(!d||r.token.isCancellationRequested)break;g(a.slice(0,d))}}catch(d){h=new Error(d),r.dispose(!0)}finally{c=!1}}})()});return await i.ready,u(),new Promise((l,s)=>{r.token.onCancellationRequested(async()=>{i.dispose();try{await I.Promises.close(t)}catch(d){h=new Error(d)}h?s(h):l()})})}e.watchFileContents=f}),define(ce[51],ue([0,1,6,16,4,2,30]),function(oe,e,_,W,M,j,B){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NodeJSWatcher=void 0;class T extends M.Disposable{constructor(){super(...arguments),this._onDidChangeFile=this._register(new _.Emitter),this.onDidChangeFile=this._onDidChangeFile.event,this._onDidLogMessage=this._register(new _.Emitter),this.onDidLogMessage=this._onDidLogMessage.event,this.onDidError=_.Event.None,this.watchers=new Map,this.verboseLogging=!1}async watch(A){const O=this.normalizeRequests(A),I=O.filter(m=>{const f=this.watchers.get(m.path);return f?!(0,W.patternsEquals)(f.request.excludes,m.excludes)||!(0,W.patternsEquals)(f.request.includes,m.includes):!0}),U=Array.from(this.watchers.values()).filter(({request:m})=>!O.find(f=>f.path===m.path&&(0,W.patternsEquals)(f.excludes,m.excludes)&&(0,W.patternsEquals)(f.includes,m.includes))).map(({request:m})=>m.path);I.length&&this.trace(`Request to start watching: ${I.map(m=>`${m.path} (excludes: ${m.excludes.length>0?m.excludes:""}, includes: ${m.includes&&m.includes.length>0?JSON.stringify(m.includes):""})`).join(",")}`),U.length&&this.trace(`Request to stop watching: ${U.join(",")}`);for(const m of U)this.stopWatching(m);for(const m of I)this.startWatching(m)}startWatching(A){const O=new B.NodeJSFileWatcherLibrary(A,U=>this._onDidChangeFile.fire(U),U=>this._onDidLogMessage.fire(U),this.verboseLogging),I={request:A,instance:O};this.watchers.set(A.path,I)}async stop(){for(const[A]of this.watchers)this.stopWatching(A);this.watchers.clear()}stopWatching(A){const O=this.watchers.get(A);O&&(this.watchers.delete(A),O.instance.dispose())}normalizeRequests(A){const O=new Map;for(const I of A){const U=j.isLinux?I.path:I.path.toLowerCase();O.set(U,I)}return Array.from(O.values())}async setVerboseLogging(A){this.verboseLogging=A;for(const[,O]of this.watchers)O.instance.setVerboseLogging(A)}trace(A){this.verboseLogging&&this._onDidLogMessage.fire({type:"trace",message:this.toMessage(A)})}toMessage(A,O){return O?`[File Watcher (node.js)] ${A} (path: ${O.request.path})`:`[File Watcher (node.js)] ${A}`}}e.NodeJSWatcher=T}),define(ce[52],ue([0,1,56,18,45,8,11,38,6,12,16,4,25,14,3,2,5,27,30,29]),function(oe,e,_,W,M,j,B,T,S,A,O,I,U,m,f,o,g,u,v,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ParcelWatcher=void 0;class t extends I.Disposable{constructor(){super(),this._onDidChangeFile=this._register(new S.Emitter),this.onDidChangeFile=this._onDidChangeFile.event,this._onDidLogMessage=this._register(new S.Emitter),this.onDidLogMessage=this._onDidLogMessage.event,this._onDidError=this._register(new S.Emitter),this.onDidError=this._onDidError.event,this.watchers=new Map,this.throttledFileChangesWorker=new j.ThrottledWorker({maxWorkChunkSize:500,throttleDelay:200,maxBufferedWork:3e4},r=>this._onDidChangeFile.fire(r)),this.verboseLogging=!1,this.enospcErrorLogged=!1,this.registerListeners()}registerListeners(){process.on("uncaughtException",r=>this.onUnexpectedError(r)),process.on("unhandledRejection",r=>this.onUnexpectedError(r))}async watch(r){const h=this.normalizeRequests(r),c=h.filter(i=>{const l=this.watchers.get(i.path);return l?!(0,O.patternsEquals)(l.request.excludes,i.excludes)||!(0,O.patternsEquals)(l.request.includes,i.includes)||l.request.pollingInterval!==i.pollingInterval:!0}),w=Array.from(this.watchers.values()).filter(({request:i})=>!h.find(l=>l.path===i.path&&(0,O.patternsEquals)(l.excludes,i.excludes)&&(0,O.patternsEquals)(l.includes,i.includes)&&l.pollingInterval===i.pollingInterval)).map(({request:i})=>i.path);c.length&&this.trace(`Request to start watching: ${c.map(i=>`${i.path} (excludes: ${i.excludes.length>0?i.excludes:""}, includes: ${i.includes&&i.includes.length>0?JSON.stringify(i.includes):""})`).join(",")}`),w.length&&this.trace(`Request to stop watching: ${w.join(",")}`);for(const i of w)await this.stopWatching(i);for(const i of c)i.pollingInterval?this.startPolling(i,i.pollingInterval):this.startWatching(i)}toExcludePaths(r,h){if(!Array.isArray(h))return;const c=new Set;for(const w of h){const i=w.includes(t.GLOB_MARKERS.Star);let l;if(i)if(w===t.GLOB_MARKERS.GlobStar||w===t.GLOB_MARKERS.GlobStarPosix||w===t.GLOB_MARKERS.GlobStarWindows)l=r;else{const s=w.startsWith(t.GLOB_MARKERS.GlobStarPathStartPosix)||w.startsWith(t.GLOB_MARKERS.GlobStarPathStartWindows),d=w.endsWith(t.GLOB_MARKERS.GlobStarPathEndPosix)||w.endsWith(t.GLOB_MARKERS.GlobStarPathEndWindows);(s||d)&&(s&&d?l=w.substring(t.GLOB_MARKERS.GlobStarPathStartPosix.length,w.length-t.GLOB_MARKERS.GlobStarPathEndPosix.length):s?l=w.substring(t.GLOB_MARKERS.GlobStarPathStartPosix.length):l=w.substring(0,w.length-t.GLOB_MARKERS.GlobStarPathEndPosix.length)),o.isLinux&&l&&l?.endsWith(t.GLOB_MARKERS.StarPathEndPosix)&&(l=l.substring(0,l.length-t.GLOB_MARKERS.StarPathEndPosix.length))}else l=w;if(!(!l||l.includes(t.GLOB_MARKERS.Star))){if((0,f.isAbsolute)(l)){if(!(0,A.isEqualOrParent)(l,r,!o.isLinux))continue;l=l.substr(r.length)}c.add((0,g.rtrim)((0,f.join)(r,l),f.sep))}}if(c.size>0)return Array.from(c)}startPolling(r,h,c=0){const w=new B.CancellationTokenSource,i=new j.DeferredPromise,l=(0,A.randomPath)((0,M.tmpdir)(),"vscode-watcher-snapshot"),s={request:r,ready:i.p,restarts:c,token:w.token,stop:async()=>{w.dispose(!0),he.dispose(),(0,W.unlinkSync)(l)}};this.watchers.set(r.path,s);const{realPath:d,realPathDiffers:D,realPathLength:K}=this.normalizePath(r),ie=(0,n.parseWatcherPatterns)(r.path,r.excludes),te=r.includes?(0,n.parseWatcherPatterns)(r.path,r.includes):void 0,le=this.toExcludePaths(d,s.request.excludes);this.trace(`Started watching: '${d}' with polling interval '${h}' and native excludes '${le?.join(", ")}'`);let ae=0;const he=new j.RunOnceScheduler(async()=>{if(ae++,!w.token.isCancellationRequested){if(ae>1){const fe=await _.getEventsSince(d,l,{ignore:le,backend:t.PARCEL_WATCHER_BACKEND});if(w.token.isCancellationRequested)return;this.onParcelEvents(fe,s,ie,te,D,K)}await _.writeSnapshot(d,l,{ignore:le,backend:t.PARCEL_WATCHER_BACKEND}),ae===1&&i.complete(),!w.token.isCancellationRequested&&he.schedule()}},h);he.schedule(0)}startWatching(r,h=0){const c=new B.CancellationTokenSource,w=new j.DeferredPromise,i={request:r,ready:w.p,restarts:h,token:c.token,stop:async()=>{c.dispose(!0),await(await w.p)?.unsubscribe()}};this.watchers.set(r.path,i);const{realPath:l,realPathDiffers:s,realPathLength:d}=this.normalizePath(r),D=(0,n.parseWatcherPatterns)(r.path,r.excludes),K=r.includes?(0,n.parseWatcherPatterns)(r.path,r.includes):void 0,ie=this.toExcludePaths(l,i.request.excludes);_.subscribe(l,(te,le)=>{i.token.isCancellationRequested||(te&&this.onUnexpectedError(te,i),this.onParcelEvents(le,i,D,K,s,d))},{backend:t.PARCEL_WATCHER_BACKEND,ignore:ie}).then(te=>{this.trace(`Started watching: '${l}' with backend '${t.PARCEL_WATCHER_BACKEND}' and native excludes '${ie?.join(", ")}'`),w.complete(te)}).catch(te=>{this.onUnexpectedError(te,i),w.complete(void 0)})}onParcelEvents(r,h,c,w,i,l){if(r.length===0)return;const{events:s,rootDeleted:d}=this.normalizeEvents(r,h.request,i,l),D=this.handleExcludeIncludes(s,c,w),K=(0,n.coalesceEvents)(D),ie=this.filterEvents(K,h.request,d);this.emitEvents(ie),d&&K.some(te=>te.path===h.request.path&&te.type===2)&&this.onWatchedPathDeleted(h)}handleExcludeIncludes(r,h,c){const w=[];for(const{path:i,type:l}of r){const s=t.MAP_PARCEL_WATCHER_ACTION_TO_FILE_CHANGE.get(l);this.verboseLogging&&this.trace(`${s===1?"[ADDED]":s===2?"[DELETED]":"[CHANGED]"} ${i}`),h.some(d=>d(i))?this.verboseLogging&&this.trace(` >> ignored (excluded) ${i}`):c&&c.length>0&&!c.some(d=>d(i))?this.verboseLogging&&this.trace(` >> ignored (not included) ${i}`):w.push({type:s,path:i})}return w}emitEvents(r){if(r.length===0)return;if(this.verboseLogging)for(const c of r)this.trace(` >> normalized ${c.type===1?"[ADDED]":c.type===2?"[DELETED]":"[CHANGED]"} ${c.path}`);this.throttledFileChangesWorker.work(r)?this.throttledFileChangesWorker.pending>0&&this.trace(`started throttling events due to large amount of file change events at once (pending: ${this.throttledFileChangesWorker.pending}, most recent change: ${r[0].path}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`):this.warn(`started ignoring events due to too many file change events at once (incoming: ${r.length}, most recent change: ${r[0].path}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`)}normalizePath(r){let h=r.path,c=!1,w=r.path.length;try{h=(0,u.realpathSync)(r.path),r.path===h&&(h=(0,u.realcaseSync)(r.path)??r.path),r.path!==h&&(w=h.length,c=!0,this.trace(`correcting a path to watch that seems to be a symbolic link or wrong casing (original: ${r.path}, real: ${h})`))}catch{}return{realPath:h,realPathDiffers:c,realPathLength:w}}normalizeEvents(r,h,c,w){let i=!1;for(const l of r)o.isMacintosh&&(l.path=(0,m.normalizeNFC)(l.path)),o.isWindows&&h.path.length<=3&&(l.path=(0,f.normalize)(l.path)),c&&(l.path=h.path+l.path.substr(w)),l.path===h.path&&l.type==="delete"&&(i=!0);return{events:r,rootDeleted:i}}filterEvents(r,h,c){return c?r.filter(w=>!(w.path===h.path&&w.type===2)):r}onWatchedPathDeleted(r){this.warn("Watcher shutdown because watched path got deleted",r);const h=(0,f.dirname)(r.request.path);if((0,W.existsSync)(h)){const c=new v.NodeJSFileWatcherLibrary({path:h,excludes:[],recursive:!1},w=>{if(!r.token.isCancellationRequested){for(const{path:i,type:l}of w)if(i===r.request.path&&(l===1||l===0)){this.warn("Watcher restarts because watched path got created again",r),c.dispose(),this.restartWatching(r);break}}},w=>this._onDidLogMessage.fire(w),this.verboseLogging);r.token.onCancellationRequested(()=>c.dispose())}}onUnexpectedError(r,h){const c=(0,T.toErrorMessage)(r);c.indexOf("No space left on device")!==-1?this.enospcErrorLogged||(this.error("Inotify limit reached (ENOSPC)",h),this.enospcErrorLogged=!0):(this.error(`Unexpected error: ${c} (EUNKNOWN)`,h),this._onDidError.fire(c))}async stop(){for(const[r]of this.watchers)await this.stopWatching(r);this.watchers.clear()}restartWatching(r,h=800){const c=new j.RunOnceScheduler(async()=>{r.token.isCancellationRequested||(await this.stopWatching(r.request.path),r.request.pollingInterval?this.startPolling(r.request,r.request.pollingInterval,r.restarts+1):this.startWatching(r.request,r.restarts+1))},h);c.schedule(),r.token.onCancellationRequested(()=>c.dispose())}async stopWatching(r){const h=this.watchers.get(r);if(h){this.trace(`stopping file watcher on ${h.request.path}`),this.watchers.delete(r);try{await h.stop()}catch(c){this.error(`Unexpected error stopping watcher: ${(0,T.toErrorMessage)(c)}`,h)}}}normalizeRequests(r,h=!0){const c=U.TernarySearchTree.forPaths(!o.isLinux);r.sort((w,i)=>w.path.length-i.path.length);for(const w of r)if(!w.excludes.includes(O.GLOBSTAR)){if(c.findSubstr(w.path))try{if((0,u.realpathSync)(w.path)===w.path){this.trace(`ignoring a path for watching who's parent is already watched: ${w.path}`);continue}}catch(i){this.trace(`ignoring a path for watching who's realpath failed to resolve: ${w.path} (error: ${i})`);continue}if(h)try{if(!(0,W.statSync)(w.path).isDirectory()){this.trace(`ignoring a path for watching that is a file and not a folder: ${w.path}`);continue}}catch(i){this.trace(`ignoring a path for watching who's stat info failed to resolve: ${w.path} (error: ${i})`);continue}c.set(w.path,w)}return Array.from(c).map(([,w])=>w)}async setVerboseLogging(r){this.verboseLogging=r}trace(r){this.verboseLogging&&this._onDidLogMessage.fire({type:"trace",message:this.toMessage(r)})}warn(r,h){this._onDidLogMessage.fire({type:"warn",message:this.toMessage(r,h)})}error(r,h){this._onDidLogMessage.fire({type:"error",message:this.toMessage(r,h)})}toMessage(r,h){return h?`[File Watcher (parcel)] ${r} (path: ${h.request.path})`:`[File Watcher (parcel)] ${r}`}}e.ParcelWatcher=t,t.MAP_PARCEL_WATCHER_ACTION_TO_FILE_CHANGE=new Map([["create",1],["update",0],["delete",2]]),t.GLOB_MARKERS={Star:"*",GlobStar:"**",GlobStarPosix:"**/**",GlobStarWindows:"**\\**",GlobStarPathStartPosix:"**/",GlobStarPathEndPosix:"/**",StarPathEndPosix:"/*",GlobStarPathStartWindows:"**\\",GlobStarPathEndWindows:"\\**"},t.PARCEL_WATCHER_BACKEND=o.isWindows?"windows":o.isLinux?"inotify":"fs-events"}),define(ce[53],ue([0,1,4,6,52,51,8]),function(oe,e,_,W,M,j,B){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.UniversalWatcher=void 0;class T extends _.Disposable{constructor(){super(...arguments),this.recursiveWatcher=this._register(new M.ParcelWatcher),this.nonRecursiveWatcher=this._register(new j.NodeJSWatcher),this.onDidChangeFile=W.Event.any(this.recursiveWatcher.onDidChangeFile,this.nonRecursiveWatcher.onDidChangeFile),this.onDidLogMessage=W.Event.any(this.recursiveWatcher.onDidLogMessage,this.nonRecursiveWatcher.onDidLogMessage),this.onDidError=W.Event.any(this.recursiveWatcher.onDidError,this.nonRecursiveWatcher.onDidError)}async watch(A){const O=[],I=[];for(const U of A)U.recursive?O.push(U):I.push(U);await B.Promises.settled([this.recursiveWatcher.watch(O),this.nonRecursiveWatcher.watch(I)])}async setVerboseLogging(A){await B.Promises.settled([this.recursiveWatcher.setVerboseLogging(A),this.nonRecursiveWatcher.setVerboseLogging(A)])}async stop(){await B.Promises.settled([this.recursiveWatcher.stop(),this.nonRecursiveWatcher.stop()])}}e.UniversalWatcher=T}),define(ce[57],ue([0,1,28,47,53]),function(oe,e,_,W,M){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const j=new W.Server("watcher"),B=new M.UniversalWatcher;j.registerChannel("watcher",_.ProxyChannel.fromService(B))})}).call(this); //# sourceMappingURL=https://ticino.blob.core.windows.net/sourcemaps/6261075646f055b99068d3688932416f2346dd3b/core/vs/platform/files/node/watcher/watcherMain.js.map x

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