????

Your IP : 3.139.59.149


Current Path : C:/Program Files/Azure Data Studio/resources/app/out/vs/code/node/
Upload File :
Current File : C:/Program Files/Azure Data Studio/resources/app/out/vs/code/node/cli.js

/*!--------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/(function(){var me=["require","exports","vs/base/common/platform","vs/base/common/path","vs/base/common/extpath","vs/base/common/strings","vs/base/common/uri","vs/base/common/errors","vs/base/common/lifecycle","vs/base/common/cancellation","vs/base/common/async","vs/base/node/pfs","fs","vs/base/common/event","vs/nls","vs/nls!vs/code/node/cli","vs/base/common/process","vs/base/common/network","os","vs/base/common/arrays","vs/base/common/functional","vs/base/common/map","vs/base/common/normalization","vs/base/common/types","vs/base/common/resources","vs/platform/environment/node/argv","vs/platform/instantiation/common/instantiation","vs/base/common/iterator","vs/base/common/lazy","vs/base/common/linkedList","vs/base/common/ports","vs/base/common/stopwatch","vs/base/common/cache","vs/base/common/symbols","vs/base/common/ternarySearchTree","vs/base/node/ports","vs/nls!vs/base/common/platform","vs/base/common/glob","vs/base/node/extpath","vs/base/node/terminalEncoding","child_process","vs/nls!vs/platform/environment/node/argv","vs/nls!vs/platform/environment/node/argvHelper","vs/nls!vs/platform/files/common/files","vs/platform/environment/node/argvHelper","vs/platform/environment/node/stdin","vs/platform/environment/node/wait","vs/platform/files/common/files","vs/platform/files/common/watcher","vs/platform/files/node/watcher/nodejs/nodejsWatcherLib","vs/platform/product/common/product","vs/platform/profiling/common/profiling","net","util","minimist","assert","vs/code/node/cli","vs/base/node/unc"],ye=function(ce){for(var e=[],A=0,S=ce.length;A<S;A++)e[A]=me[ce[A]];return e};define(me[7],ye([0,1]),function(ce,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.isSigPipeError=e.setUnexpectedErrorHandler=e.errorHandler=e.ErrorHandler=void 0;class A{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(s){setTimeout(()=>{throw s.stack?T.isErrorNoTelemetry(s)?new T(s.message+`

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

`+s.stack):s},0)}}addListener(s){return this.listeners.push(s),()=>{this._removeListener(s)}}emit(s){this.listeners.forEach(C=>{C(s)})}_removeListener(s){this.listeners.splice(this.listeners.indexOf(s),1)}setUnexpectedErrorHandler(s){this.unexpectedErrorHandler=s}getUnexpectedErrorHandler(){return this.unexpectedErrorHandler}onUnexpectedError(s){this.unexpectedErrorHandler(s),this.emit(s)}onUnexpectedExternalError(s){this.unexpectedErrorHandler(s)}}e.ErrorHandler=A,e.errorHandler=new A;function S(i){e.errorHandler.setUnexpectedErrorHandler(i)}e.setUnexpectedErrorHandler=S;function p(i){if(!i||typeof i!="object")return!1;const s=i;return s.code==="EPIPE"&&s.syscall?.toUpperCase()==="WRITE"}e.isSigPipeError=p;function U(i){P(i)||e.errorHandler.onUnexpectedError(i)}e.onUnexpectedError=U;function z(i){P(i)||e.errorHandler.onUnexpectedExternalError(i)}e.onUnexpectedExternalError=z;function I(i){if(i instanceof Error){const{name:s,message:C}=i;let w=i.errorCode;const u=i.stacktrace||i.stack;return{$isError:!0,name:s,message:C,stack:u,errorCode:w,data:i.data}}return i}e.transformErrorForSerialization=I;const R="Canceled";function P(i){return i instanceof D?!0:i instanceof Error&&i.name===R&&i.message===R}e.isCancellationError=P;class D extends Error{constructor(){super(R),this.name=this.message}}e.CancellationError=D;function M(){const i=new Error(R);return i.name=i.message,i}e.canceled=M;function W(i){return i?new Error(`Illegal argument: ${i}`):new Error("Illegal argument")}e.illegalArgument=W;function g(i){return i?new Error(`Illegal state: ${i}`):new Error("Illegal state")}e.illegalState=g;function f(i){return i?new Error(`readonly property '${i} cannot be changed'`):new Error("readonly property cannot be changed")}e.readonly=f;function m(i){const s=new Error(`${i} has been disposed`);return s.name="DISPOSED",s}e.disposed=m;function t(i){return i?i.message?i.message:i.stack?i.stack.split(`
`)[0]:String(i):"Error"}e.getErrorMessage=t;class o extends Error{constructor(s){super("NotImplemented"),s&&(this.message=s)}}e.NotImplementedError=o;class d extends Error{constructor(s){super("NotSupported"),s&&(this.message=s)}}e.NotSupportedError=d;class L extends Error{constructor(){super(...arguments),this.isExpected=!0}}e.ExpectedError=L;class T extends Error{constructor(s){super(s),this.name="CodeExpectedError"}static fromError(s){if(s instanceof T)return s;const C=new T;return C.message=s.message,C.stack=s.stack,C}static isErrorNoTelemetry(s){return s.name==="CodeExpectedError"}}e.ErrorNoTelemetry=T;class X extends Error{constructor(s){super(s||"An unexpected bug occurred."),Object.setPrototypeOf(this,X.prototype)}}e.BugIndicatingError=X}),define(me[19],ye([0,1,7]),function(ce,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CallbackIterable=e.ArrayQueue=e.findMaxIdxBy=e.findMinBy=e.findLastMaxBy=e.findMaxBy=e.reverseOrder=e.booleanComparator=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.findLastIndex=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 S(l,b=0){return l[l.length-(1+b)]}e.tail=S;function p(l){if(l.length===0)throw new Error("Invalid tail call");return[l.slice(0,l.length-1),l[l.length-1]]}e.tail2=p;function U(l,b,_=(O,K)=>O===K){if(l===b)return!0;if(!l||!b||l.length!==b.length)return!1;for(let O=0,K=l.length;O<K;O++)if(!_(l[O],b[O]))return!1;return!0}e.equals=U;function z(l,b){const _=l.length-1;b<_&&(l[b]=l[_]),l.pop()}e.removeFastWithoutKeepingOrder=z;function I(l,b,_){return R(l.length,O=>_(l[O],b))}e.binarySearch=I;function R(l,b){let _=0,O=l-1;for(;_<=O;){const K=(_+O)/2|0,ae=b(K);if(ae<0)_=K+1;else if(ae>0)O=K-1;else return K}return-(_+1)}e.binarySearch2=R;function P(l,b){let _=0,O=l.length;if(O===0)return 0;for(;_<O;){const K=Math.floor((_+O)/2);b(l[K])?O=K:_=K+1}return _}e.findFirstInSorted=P;function D(l,b,_){if(l=l|0,l>=b.length)throw new TypeError("invalid index");const O=b[Math.floor(b.length*Math.random())],K=[],ae=[],ge=[];for(const Ee of b){const pe=_(Ee,O);pe<0?K.push(Ee):pe>0?ae.push(Ee):ge.push(Ee)}return l<K.length?D(l,K,_):l<K.length+ge.length?ge[0]:D(l-(K.length+ge.length),ae,_)}e.quickSelect=D;function M(l,b){const _=[];let O;for(const K of l.slice(0).sort(b))!O||b(O[0],K)!==0?(O=[K],_.push(O)):O.push(K);return _}e.groupBy=M;function W(l,b,_){const O=[];function K(Ee,pe,be){if(pe===0&&be.length===0)return;const Ce=O[O.length-1];Ce&&Ce.start+Ce.deleteCount===Ee?(Ce.deleteCount+=pe,Ce.toInsert.push(...be)):O.push({start:Ee,deleteCount:pe,toInsert:be})}let ae=0,ge=0;for(;;){if(ae===l.length){K(ae,0,b.slice(ge));break}if(ge===b.length){K(ae,l.length-ae,[]);break}const Ee=l[ae],pe=b[ge],be=_(Ee,pe);be===0?(ae+=1,ge+=1):be<0?(K(ae,1,[]),ae+=1):be>0&&(K(ae,0,[pe]),ge+=1)}return O}e.sortedDiff=W;function g(l,b,_){const O=W(l,b,_),K=[],ae=[];for(const ge of O)K.push(...l.slice(ge.start,ge.start+ge.deleteCount)),ae.push(...ge.toInsert);return{removed:K,added:ae}}e.delta=g;function f(l,b,_){if(_===0)return[];const O=l.slice(0,_).sort(b);return t(l,b,O,_,l.length),O}e.top=f;function m(l,b,_,O,K){return _===0?Promise.resolve([]):new Promise((ae,ge)=>{(async()=>{const Ee=l.length,pe=l.slice(0,_).sort(b);for(let be=_,Ce=Math.min(_+O,Ee);be<Ee;be=Ce,Ce=Math.min(Ce+O,Ee)){if(be>_&&await new Promise(Fe=>setTimeout(Fe)),K&&K.isCancellationRequested)throw new A.CancellationError;t(l,b,pe,be,Ce)}return pe})().then(ae,ge)})}e.topAsync=m;function t(l,b,_,O,K){for(const ae=_.length;O<K;O++){const ge=l[O];if(b(ge,_[ae-1])<0){_.pop();const Ee=P(_,pe=>b(ge,pe)<0);_.splice(Ee,0,ge)}}}function o(l){return l.filter(b=>!!b)}e.coalesce=o;function d(l){let b=0;for(let _=0;_<l.length;_++)l[_]&&(l[b]=l[_],b+=1);l.length=b}e.coalesceInPlace=d;function L(l,b,_){l.splice(_,0,l.splice(b,1)[0])}e.move=L;function T(l){return!Array.isArray(l)||l.length===0}e.isFalsyOrEmpty=T;function X(l){return Array.isArray(l)&&l.length>0}e.isNonEmptyArray=X;function i(l,b=_=>_){const _=new Set;return l.filter(O=>{const K=b(O);return _.has(K)?!1:(_.add(K),!0)})}e.distinct=i;function s(l){const b=new Set;return _=>{const O=l(_);return b.has(O)?!1:(b.add(O),!0)}}e.uniqueFilter=s;function C(l,b){const _=w(l,b);if(_!==-1)return l[_]}e.findLast=C;function w(l,b){for(let _=l.length-1;_>=0;_--){const O=l[_];if(b(O))return _}return-1}e.findLastIndex=w;function u(l,b){return l.length>0?l[0]:b}e.firstOrDefault=u;function n(l,b){return l.length>0?l[l.length-1]:b}e.lastOrDefault=n;function r(l,b,_=(O,K)=>O===K){let O=0;for(let K=0,ae=Math.min(l.length,b.length);K<ae&&_(l[K],b[K]);K++)O++;return O}e.commonPrefixLength=r;function a(l){return[].concat(...l)}e.flatten=a;function v(l,b){let _=typeof b=="number"?l:0;typeof b=="number"?_=l:(_=0,b=l);const O=[];if(_<=b)for(let K=_;K<b;K++)O.push(K);else for(let K=_;K>b;K--)O.push(K);return O}e.range=v;function h(l,b,_){return l.reduce((O,K)=>(O[b(K)]=_?_(K):K,O),Object.create(null))}e.index=h;function k(l,b){return l.push(b),()=>V(l,b)}e.insert=k;function V(l,b){const _=l.indexOf(b);if(_>-1)return l.splice(_,1),b}e.remove=V;function J(l,b,_){const O=l.slice(0,b),K=l.slice(b);return O.concat(_,K)}e.arrayInsert=J;function fe(l,b){let _;if(typeof b=="number"){let O=b;_=()=>{const K=Math.sin(O++)*179426549;return K-Math.floor(K)}}else _=Math.random;for(let O=l.length-1;O>0;O-=1){const K=Math.floor(_()*(O+1)),ae=l[O];l[O]=l[K],l[K]=ae}}e.shuffle=fe;function he(l,b){const _=l.indexOf(b);_>-1&&(l.splice(_,1),l.unshift(b))}e.pushToStart=he;function ve(l,b){const _=l.indexOf(b);_>-1&&(l.splice(_,1),l.push(b))}e.pushToEnd=ve;function oe(l,b){for(const _ of b)l.push(_)}e.pushMany=oe;function H(l,b){return Array.isArray(l)?l.map(b):b(l)}e.mapArrayOrNot=H;function te(l){return Array.isArray(l)?l:[l]}e.asArray=te;function re(l){return l[Math.floor(Math.random()*l.length)]}e.getRandomElement=re;function j(l,b){for(const _ of l){const O=b(_);if(O!==void 0)return O}}e.mapFind=j;function B(l,b,_){const O=y(l,b),K=l.length,ae=_.length;l.length=K+ae;for(let ge=K-1;ge>=O;ge--)l[ge+ae]=l[ge];for(let ge=0;ge<ae;ge++)l[ge+O]=_[ge]}e.insertInto=B;function $(l,b,_,O){const K=y(l,b),ae=l.splice(K,_);return B(l,K,O),ae}e.splice=$;function y(l,b){return b<0?Math.max(b+l.length,0):Math.min(b,l.length)}var N;(function(l){function b(ae){return ae<0}l.isLessThan=b;function _(ae){return ae<=0}l.isLessThanOrEqual=_;function O(ae){return ae>0}l.isGreaterThan=O;function K(ae){return ae===0}l.isNeitherLessOrGreaterThan=K,l.greaterThan=1,l.lessThan=-1,l.neitherLessOrGreaterThan=0})(N||(e.CompareResult=N={}));function ee(l,b){return(_,O)=>b(l(_),l(O))}e.compareBy=ee;function se(...l){return(b,_)=>{for(const O of l){const K=O(b,_);if(!N.isNeitherLessOrGreaterThan(K))return K}return N.neitherLessOrGreaterThan}}e.tieBreakComparators=se;const Z=(l,b)=>l-b;e.numberComparator=Z;const le=(l,b)=>(0,e.numberComparator)(l?1:0,b?1:0);e.booleanComparator=le;function G(l){return(b,_)=>-l(b,_)}e.reverseOrder=G;function E(l,b){if(l.length===0)return;let _=l[0];for(let O=1;O<l.length;O++){const K=l[O];b(K,_)>0&&(_=K)}return _}e.findMaxBy=E;function q(l,b){if(l.length===0)return;let _=l[0];for(let O=1;O<l.length;O++){const K=l[O];b(K,_)>=0&&(_=K)}return _}e.findLastMaxBy=q;function Y(l,b){return E(l,(_,O)=>-b(_,O))}e.findMinBy=Y;function ne(l,b){if(l.length===0)return-1;let _=0;for(let O=1;O<l.length;O++){const K=l[O];b(K,l[_])>0&&(_=O)}return _}e.findMaxIdxBy=ne;class de{constructor(b){this.items=b,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(b){let _=this.firstIdx;for(;_<this.items.length&&b(this.items[_]);)_++;const O=_===this.firstIdx?null:this.items.slice(this.firstIdx,_);return this.firstIdx=_,O}takeFromEndWhile(b){let _=this.lastIdx;for(;_>=0&&b(this.items[_]);)_--;const O=_===this.lastIdx?null:this.items.slice(_+1,this.lastIdx+1);return this.lastIdx=_,O}peek(){if(this.length!==0)return this.items[this.firstIdx]}peekLast(){if(this.length!==0)return this.items[this.lastIdx]}dequeue(){const b=this.items[this.firstIdx];return this.firstIdx++,b}removeLast(){const b=this.items[this.lastIdx];return this.lastIdx--,b}takeCount(b){const _=this.items.slice(this.firstIdx,this.firstIdx+b);return this.firstIdx+=b,_}}e.ArrayQueue=de;class x{static{this.empty=new x(b=>{})}constructor(b){this.iterate=b}forEach(b){this.iterate(_=>(b(_),!0))}toArray(){const b=[];return this.iterate(_=>(b.push(_),!0)),b}filter(b){return new x(_=>this.iterate(O=>b(O)?_(O):!0))}map(b){return new x(_=>this.iterate(O=>_(b(O))))}some(b){let _=!1;return this.iterate(O=>(_=b(O),!_)),_}findFirst(b){let _;return this.iterate(O=>b(O)?(_=O,!1):!0),_}findLast(b){let _;return this.iterate(O=>(b(O)&&(_=O),!0)),_}findLastMaxBy(b){let _,O=!0;return this.iterate(K=>((O||N.isGreaterThan(b(K,_)))&&(O=!1,_=K),!0)),_}}e.CallbackIterable=x}),define(me[20],ye([0,1]),function(ce,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.once=void 0;function A(S){const p=this;let U=!1,z;return function(){return U||(U=!0,z=S.apply(p,arguments)),z}}e.once=A}),define(me[27],ye([0,1]),function(ce,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Iterable=void 0;var A;(function(S){function p(T){return T&&typeof T=="object"&&typeof T[Symbol.iterator]=="function"}S.is=p;const U=Object.freeze([]);function z(){return U}S.empty=z;function*I(T){yield T}S.single=I;function R(T){return p(T)?T:I(T)}S.wrap=R;function P(T){return T||U}S.from=P;function D(T){return!T||T[Symbol.iterator]().next().done===!0}S.isEmpty=D;function M(T){return T[Symbol.iterator]().next().value}S.first=M;function W(T,X){for(const i of T)if(X(i))return!0;return!1}S.some=W;function g(T,X){for(const i of T)if(X(i))return i}S.find=g;function*f(T,X){for(const i of T)X(i)&&(yield i)}S.filter=f;function*m(T,X){let i=0;for(const s of T)yield X(s,i++)}S.map=m;function*t(...T){for(const X of T)for(const i of X)yield i}S.concat=t;function o(T,X,i){let s=i;for(const C of T)s=X(s,C);return s}S.reduce=o;function*d(T,X,i=T.length){for(X<0&&(X+=T.length),i<0?i+=T.length:i>T.length&&(i=T.length);X<i;X++)yield T[X]}S.slice=d;function L(T,X=Number.POSITIVE_INFINITY){const i=[];if(X===0)return[i,T];const s=T[Symbol.iterator]();for(let C=0;C<X;C++){const w=s.next();if(w.done)return[i,S.empty()];i.push(w.value)}return[i,{[Symbol.iterator](){return s}}]}S.consume=L})(A||(e.Iterable=A={}))}),define(me[28],ye([0,1]),function(ce,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Lazy=void 0;class A{constructor(p){this.executor=p,this._didRun=!1}get hasValue(){return this._didRun}get value(){if(!this._didRun)try{this._value=this.executor()}catch(p){this._error=p}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}e.Lazy=A}),define(me[8],ye([0,1,20,27]),function(ce,e,A,S){"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 p=!1;let U=null;function z(n){U=n}if(e.setDisposableTracker=z,p){const n="__is_disposable_tracked__";z(new class{trackDisposable(r){const a=new Error("Potentially leaked disposable").stack;setTimeout(()=>{r[n]||console.log(a)},3e3)}setParent(r,a){if(r&&r!==d.None)try{r[n]=!0}catch{}}markAsDisposed(r){if(r&&r!==d.None)try{r[n]=!0}catch{}}markAsSingleton(r){}})}function I(n){return U?.trackDisposable(n),n}function R(n){U?.markAsDisposed(n)}function P(n,r){U?.setParent(n,r)}function D(n,r){if(U)for(const a of n)U.setParent(a,r)}function M(n){return U?.markAsSingleton(n),n}e.markAsSingleton=M;function W(n){return typeof n.dispose=="function"&&n.dispose.length===0}e.isDisposable=W;function g(n){if(S.Iterable.is(n)){const r=[];for(const a of n)if(a)try{a.dispose()}catch(v){r.push(v)}if(r.length===1)throw r[0];if(r.length>1)throw new AggregateError(r,"Encountered errors while disposing of store");return Array.isArray(n)?[]:n}else if(n)return n.dispose(),n}e.dispose=g;function f(n){for(const r of n)W(r)&&r.dispose();return[]}e.disposeIfDisposable=f;function m(...n){const r=t(()=>g(n));return D(n,r),r}e.combinedDisposable=m;function t(n){const r=I({dispose:(0,A.once)(()=>{R(r),n()})});return r}e.toDisposable=t;class o{static{this.DISABLE_DISPOSED_WARNING=!1}constructor(){this._toDispose=new Set,this._isDisposed=!1,I(this)}dispose(){this._isDisposed||(R(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{g(this._toDispose)}finally{this._toDispose.clear()}}add(r){if(!r)return r;if(r===this)throw new Error("Cannot register a disposable on itself!");return P(r,this),this._isDisposed?o.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(r),r}}e.DisposableStore=o;class d{static{this.None=Object.freeze({dispose(){}})}constructor(){this._store=new o,I(this),P(this._store,this)}dispose(){R(this),this._store.dispose()}_register(r){if(r===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(r)}}e.Disposable=d;class L{constructor(){this._isDisposed=!1,I(this)}get value(){return this._isDisposed?void 0:this._value}set value(r){this._isDisposed||r===this._value||(this._value?.dispose(),r&&P(r,this),this._value=r)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,R(this),this._value?.dispose(),this._value=void 0}clearAndLeak(){const r=this._value;return this._value=void 0,r&&P(r,null),r}}e.MutableDisposable=L;class T{constructor(r){this._disposable=r,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}e.RefCountedDisposable=T;class X{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1,I(this)}set(r){let a=r;return this.unset=()=>a=void 0,this.isset=()=>a!==void 0,this.dispose=()=>{a&&(a(),a=void 0,R(this))},this}}e.SafeDisposable=X;class i{constructor(){this.references=new Map}acquire(r,...a){let v=this.references.get(r);v||(v={counter:0,object:this.createReferencedObject(r,...a)},this.references.set(r,v));const{object:h}=v,k=(0,A.once)(()=>{--v.counter===0&&(this.destroyReferencedObject(r,v.object),this.references.delete(r))});return v.counter++,{object:h,dispose:k}}}e.ReferenceCollection=i;class s{constructor(r){this.referenceCollection=r}async acquire(r,...a){const v=this.referenceCollection.acquire(r,...a);try{return{object:await v.object,dispose:()=>v.dispose()}}catch(h){throw v.dispose(),h}}}e.AsyncReferenceCollection=s;class C{constructor(r){this.object=r}dispose(){}}e.ImmortalReference=C;function w(n){const r=new o;try{n(r)}finally{r.dispose()}}e.disposeOnReturn=w;class u{constructor(){this._store=new Map,this._isDisposed=!1,I(this)}dispose(){R(this),this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{g(this._store.values())}finally{this._store.clear()}}has(r){return this._store.has(r)}get(r){return this._store.get(r)}set(r,a,v=!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),v||this._store.get(r)?.dispose(),this._store.set(r,a)}deleteAndDispose(r){this._store.get(r)?.dispose(),this._store.delete(r)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}e.DisposableMap=u}),define(me[29],ye([0,1]),function(ce,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.LinkedList=void 0;class A{static{this.Undefined=new A(void 0)}constructor(U){this.element=U,this.next=A.Undefined,this.prev=A.Undefined}}class S{constructor(){this._first=A.Undefined,this._last=A.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===A.Undefined}clear(){let U=this._first;for(;U!==A.Undefined;){const z=U.next;U.prev=A.Undefined,U.next=A.Undefined,U=z}this._first=A.Undefined,this._last=A.Undefined,this._size=0}unshift(U){return this._insert(U,!1)}push(U){return this._insert(U,!0)}_insert(U,z){const I=new A(U);if(this._first===A.Undefined)this._first=I,this._last=I;else if(z){const P=this._last;this._last=I,I.prev=P,P.next=I}else{const P=this._first;this._first=I,I.next=P,P.prev=I}this._size+=1;let R=!1;return()=>{R||(R=!0,this._remove(I))}}shift(){if(this._first!==A.Undefined){const U=this._first.element;return this._remove(this._first),U}}pop(){if(this._last!==A.Undefined){const U=this._last.element;return this._remove(this._last),U}}_remove(U){if(U.prev!==A.Undefined&&U.next!==A.Undefined){const z=U.prev;z.next=U.next,U.next.prev=z}else U.prev===A.Undefined&&U.next===A.Undefined?(this._first=A.Undefined,this._last=A.Undefined):U.next===A.Undefined?(this._last=this._last.prev,this._last.next=A.Undefined):U.prev===A.Undefined&&(this._first=this._first.next,this._first.prev=A.Undefined);this._size-=1}*[Symbol.iterator](){let U=this._first;for(;U!==A.Undefined;)yield U.element,U=U.next}}e.LinkedList=S}),define(me[21],ye([0,1]),function(ce,e){"use strict";var A,S,p;Object.defineProperty(e,"__esModule",{value:!0}),e.CounterSet=e.LRUCache=e.LinkedMap=e.Touch=e.ResourceSet=e.ResourceMap=e.setToString=e.mapToString=e.getOrSet=void 0;function U(m,t,o){let d=m.get(t);return d===void 0&&(d=o,m.set(t,d)),d}e.getOrSet=U;function z(m){const t=[];return m.forEach((o,d)=>{t.push(`${d} => ${o}`)}),`Map(${m.size}) {${t.join(", ")}}`}e.mapToString=z;function I(m){const t=[];return m.forEach(o=>{t.push(o)}),`Set(${m.size}) {${t.join(", ")}}`}e.setToString=I;class R{constructor(t,o){this.uri=t,this.value=o}}class P{static{this.defaultToKey=t=>t.toString()}constructor(t,o){this[A]="ResourceMap",t instanceof P?(this.map=new Map(t.map),this.toKey=o??P.defaultToKey):(this.map=new Map,this.toKey=t??P.defaultToKey)}set(t,o){return this.map.set(this.toKey(t),new R(t,o)),this}get(t){return this.map.get(this.toKey(t))?.value}has(t){return this.map.has(this.toKey(t))}get size(){return this.map.size}clear(){this.map.clear()}delete(t){return this.map.delete(this.toKey(t))}forEach(t,o){typeof o<"u"&&(t=t.bind(o));for(const[d,L]of this.map)t(L.value,L.uri,this)}*values(){for(const t of this.map.values())yield t.value}*keys(){for(const t of this.map.values())yield t.uri}*entries(){for(const t of this.map.values())yield[t.uri,t.value]}*[(A=Symbol.toStringTag,Symbol.iterator)](){for(const[,t]of this.map)yield[t.uri,t.value]}}e.ResourceMap=P;class D{constructor(t,o){this[S]="ResourceSet",!t||typeof t=="function"?this._map=new P(t):(this._map=new P(o),t.forEach(this.add,this))}get size(){return this._map.size}add(t){return this._map.set(t,t),this}clear(){this._map.clear()}delete(t){return this._map.delete(t)}forEach(t,o){this._map.forEach((d,L)=>t.call(o,L,L,this))}has(t){return this._map.has(t)}entries(){return this._map.entries()}keys(){return this._map.keys()}values(){return this._map.keys()}[(S=Symbol.toStringTag,Symbol.iterator)](){return this.keys()}}e.ResourceSet=D;var M;(function(m){m[m.None=0]="None",m[m.AsOld=1]="AsOld",m[m.AsNew=2]="AsNew"})(M||(e.Touch=M={}));class W{constructor(){this[p]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(t){return this._map.has(t)}get(t,o=0){const d=this._map.get(t);if(d)return o!==0&&this.touch(d,o),d.value}set(t,o,d=0){let L=this._map.get(t);if(L)L.value=o,d!==0&&this.touch(L,d);else{switch(L={key:t,value:o,next:void 0,previous:void 0},d){case 0:this.addItemLast(L);break;case 1:this.addItemFirst(L);break;case 2:this.addItemLast(L);break;default:this.addItemLast(L);break}this._map.set(t,L),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){const o=this._map.get(t);if(o)return this._map.delete(t),this.removeItem(o),this._size--,o.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,o){const d=this._state;let L=this._head;for(;L;){if(o?t.bind(o)(L.value,L.key,this):t(L.value,L.key,this),this._state!==d)throw new Error("LinkedMap got modified during iteration.");L=L.next}}keys(){const t=this,o=this._state;let d=this._head;const L={[Symbol.iterator](){return L},next(){if(t._state!==o)throw new Error("LinkedMap got modified during iteration.");if(d){const T={value:d.key,done:!1};return d=d.next,T}else return{value:void 0,done:!0}}};return L}values(){const t=this,o=this._state;let d=this._head;const L={[Symbol.iterator](){return L},next(){if(t._state!==o)throw new Error("LinkedMap got modified during iteration.");if(d){const T={value:d.value,done:!1};return d=d.next,T}else return{value:void 0,done:!0}}};return L}entries(){const t=this,o=this._state;let d=this._head;const L={[Symbol.iterator](){return L},next(){if(t._state!==o)throw new Error("LinkedMap got modified during iteration.");if(d){const T={value:[d.key,d.value],done:!1};return d=d.next,T}else return{value:void 0,done:!0}}};return L}[(p=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let o=this._head,d=this.size;for(;o&&d>t;)this._map.delete(o.key),o=o.next,d--;this._head=o,this._size=d,o&&(o.previous=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{const o=t.next,d=t.previous;if(!o||!d)throw new Error("Invalid list");o.previous=d,d.next=o}t.next=void 0,t.previous=void 0,this._state++}touch(t,o){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(o!==1&&o!==2)){if(o===1){if(t===this._head)return;const d=t.next,L=t.previous;t===this._tail?(L.next=void 0,this._tail=L):(d.previous=L,L.next=d),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(o===2){if(t===this._tail)return;const d=t.next,L=t.previous;t===this._head?(d.previous=void 0,this._head=d):(d.previous=L,L.next=d),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){const t=[];return this.forEach((o,d)=>{t.push([d,o])}),t}fromJSON(t){this.clear();for(const[o,d]of t)this.set(o,d)}}e.LinkedMap=W;class g extends W{constructor(t,o=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,o),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get ratio(){return this._ratio}set ratio(t){this._ratio=Math.min(Math.max(0,t),1),this.checkTrim()}get(t,o=2){return super.get(t,o)}peek(t){return super.get(t,0)}set(t,o){return super.set(t,o,2),this.checkTrim(),this}checkTrim(){this.size>this._limit&&this.trimOld(Math.round(this._limit*this._ratio))}}e.LRUCache=g;class f{constructor(){this.map=new Map}add(t){return this.map.set(t,(this.map.get(t)||0)+1),this}delete(t){let o=this.map.get(t)||0;return o===0?!1:(o--,o===0?this.map.delete(t):this.map.set(t,o),!0)}has(t){return this.map.has(t)}}e.CounterSet=f}),define(me[22],ye([0,1,21]),function(ce,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeAccents=e.normalizeNFD=e.normalizeNFC=void 0;const S=new A.LRUCache(1e4);function p(P){return R(P,"NFC",S)}e.normalizeNFC=p;const U=new A.LRUCache(1e4);function z(P){return R(P,"NFD",U)}e.normalizeNFD=z;const I=/[^\u0000-\u0080]/;function R(P,D,M){if(!P)return P;const W=M.get(P);if(W)return W;let g;return I.test(P)?g=P.normalize(D):g=P,M.set(P,g),g}e.removeAccents=function(){const P=/[\u0300-\u036f]/g;return function(D){return z(D).replace(P,"")}}()}),define(me[30],ye([0,1]),function(ce,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.randomPort=void 0;function A(){return 1025+Math.floor((65535-1025)*Math.random())}e.randomPort=A}),define(me[31],ye([0,1]),function(ce,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.StopWatch=void 0;const A=globalThis.performance&&typeof globalThis.performance.now=="function";class S{static create(U){return new S(U)}constructor(U){this._now=A&&U===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}e.StopWatch=S}),define(me[13],ye([0,1,7,20,8,29,31]),function(ce,e,A,S,p,U,z){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Relay=e.EventBufferer=e.DynamicListEventMultiplexer=e.EventMultiplexer=e.MicrotaskEmitter=e.DebounceEmitter=e.PauseableEmitter=e.AsyncEmitter=e.createEventDeliveryQueue=e.Emitter=e.setGlobalLeakWarningThreshold=e.EventProfiling=e.Event=void 0;const I=!1,R=!1;var P;(function(v){v.None=()=>p.Disposable.None;function h(x){if(R){const{onDidAddListener:l}=x,b=f.create();let _=0;x.onDidAddListener=()=>{++_===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),b.print()),l?.()}}}function k(x,l){return re(x,()=>{},0,void 0,!0,void 0,l)}v.defer=k;function V(x){return(l,b=null,_)=>{let O=!1,K;return K=x(ae=>{if(!O)return K?K.dispose():O=!0,l.call(b,ae)},null,_),O&&K.dispose(),K}}v.once=V;function J(x,l,b){return te((_,O=null,K)=>x(ae=>_.call(O,l(ae)),null,K),b)}v.map=J;function fe(x,l,b){return te((_,O=null,K)=>x(ae=>{l(ae),_.call(O,ae)},null,K),b)}v.forEach=fe;function he(x,l,b){return te((_,O=null,K)=>x(ae=>l(ae)&&_.call(O,ae),null,K),b)}v.filter=he;function ve(x){return x}v.signal=ve;function oe(...x){return(l,b=null,_)=>(0,p.combinedDisposable)(...x.map(O=>O(K=>l.call(b,K),null,_)))}v.any=oe;function H(x,l,b,_){let O=b;return J(x,K=>(O=l(O,K),O),_)}v.reduce=H;function te(x,l){let b;const _={onWillAddFirstListener(){b=x(O.fire,O)},onDidRemoveLastListener(){b?.dispose()}};l||h(_);const O=new L(_);return l?.add(O),O.event}function re(x,l,b=100,_=!1,O=!1,K,ae){let ge,Ee,pe,be=0,Ce;const Fe={leakWarningThreshold:K,onWillAddFirstListener(){ge=x(Ne=>{be++,Ee=l(Ee,Ne),_&&!pe&&(Le.fire(Ee),Ee=void 0),Ce=()=>{const Me=Ee;Ee=void 0,pe=void 0,(!_||be>1)&&Le.fire(Me),be=0},typeof b=="number"?(clearTimeout(pe),pe=setTimeout(Ce,b)):pe===void 0&&(pe=0,queueMicrotask(Ce))})},onWillRemoveListener(){O&&be>0&&Ce?.()},onDidRemoveLastListener(){Ce=void 0,ge.dispose()}};ae||h(Fe);const Le=new L(Fe);return ae?.add(Le),Le.event}v.debounce=re;function j(x,l=0,b){return v.debounce(x,(_,O)=>_?(_.push(O),_):[O],l,void 0,!0,void 0,b)}v.accumulate=j;function B(x,l=(_,O)=>_===O,b){let _=!0,O;return he(x,K=>{const ae=_||!l(K,O);return _=!1,O=K,ae},b)}v.latch=B;function $(x,l,b){return[v.filter(x,l,b),v.filter(x,_=>!l(_),b)]}v.split=$;function y(x,l=!1,b=[]){let _=b.slice(),O=x(ge=>{_?_.push(ge):ae.fire(ge)});const K=()=>{_?.forEach(ge=>ae.fire(ge)),_=null},ae=new L({onWillAddFirstListener(){O||(O=x(ge=>ae.fire(ge)))},onDidAddFirstListener(){_&&(l?setTimeout(K):K())},onDidRemoveLastListener(){O&&O.dispose(),O=null}});return ae.event}v.buffer=y;class N{constructor(l){this.event=l,this.disposables=new p.DisposableStore}map(l){return new N(J(this.event,l,this.disposables))}forEach(l){return new N(fe(this.event,l,this.disposables))}filter(l){return new N(he(this.event,l,this.disposables))}reduce(l,b){return new N(H(this.event,l,b,this.disposables))}latch(){return new N(B(this.event,void 0,this.disposables))}debounce(l,b=100,_=!1,O=!1,K){return new N(re(this.event,l,b,_,O,K,this.disposables))}on(l,b,_){return this.event(l,b,_)}once(l,b,_){return V(this.event)(l,b,_)}dispose(){this.disposables.dispose()}}function ee(x){return new N(x)}v.chain=ee;function se(x,l,b=_=>_){const _=(...ge)=>ae.fire(b(...ge)),O=()=>x.on(l,_),K=()=>x.removeListener(l,_),ae=new L({onWillAddFirstListener:O,onDidRemoveLastListener:K});return ae.event}v.fromNodeEventEmitter=se;function Z(x,l,b=_=>_){const _=(...ge)=>ae.fire(b(...ge)),O=()=>x.addEventListener(l,_),K=()=>x.removeEventListener(l,_),ae=new L({onWillAddFirstListener:O,onDidRemoveLastListener:K});return ae.event}v.fromDOMEventEmitter=Z;function le(x){return new Promise(l=>V(x)(l))}v.toPromise=le;function G(x){const l=new L;return x.then(b=>{l.fire(b)},()=>{l.fire(void 0)}).finally(()=>{l.dispose()}),l.event}v.fromPromise=G;function E(x,l){return l(void 0),x(b=>l(b))}v.runAndSubscribe=E;function q(x,l){let b=null;function _(K){b?.dispose(),b=new p.DisposableStore,l(K,b)}_(void 0);const O=x(K=>_(K));return(0,p.toDisposable)(()=>{O.dispose(),b?.dispose()})}v.runAndSubscribeWithStore=q;class Y{constructor(l,b){this._observable=l,this._counter=0,this._hasChanged=!1;const _={onWillAddFirstListener:()=>{l.addObserver(this)},onDidRemoveLastListener:()=>{l.removeObserver(this)}};b||h(_),this.emitter=new L(_),b&&b.add(this.emitter)}beginUpdate(l){this._counter++}handlePossibleChange(l){}handleChange(l,b){this._hasChanged=!0}endUpdate(l){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function ne(x,l){return new Y(x,l).emitter.event}v.fromObservable=ne;function de(x){return l=>{let b=0,_=!1;const O={beginUpdate(){b++},endUpdate(){b--,b===0&&(x.reportChanges(),_&&(_=!1,l()))},handlePossibleChange(){},handleChange(){_=!0}};return x.addObserver(O),x.reportChanges(),{dispose(){x.removeObserver(O)}}}}v.fromObservableLight=de})(P||(e.Event=P={}));class D{static{this.all=new Set}static{this._idPool=0}constructor(h){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${h}_${D._idPool++}`,D.all.add(this)}start(h){this._stopWatch=new z.StopWatch,this.listenerCount=h}stop(){if(this._stopWatch){const h=this._stopWatch.elapsed();this.durations.push(h),this.elapsedOverall+=h,this.invocationCount+=1,this._stopWatch=void 0}}}e.EventProfiling=D;let M=-1;function W(v){const h=M;return M=v,{dispose(){M=h}}}e.setGlobalLeakWarningThreshold=W;class g{constructor(h,k=Math.random().toString(18).slice(2,5)){this.threshold=h,this.name=k,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(h,k){const V=this.threshold;if(V<=0||k<V)return;this._stacks||(this._stacks=new Map);const J=this._stacks.get(h.value)||0;if(this._stacks.set(h.value,J+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=V*.5;let fe,he=0;for(const[ve,oe]of this._stacks)(!fe||he<oe)&&(fe=ve,he=oe);console.warn(`[${this.name}] potential listener LEAK detected, having ${k} listeners already. MOST frequent listener (${he}):`),console.warn(fe)}return()=>{const fe=this._stacks.get(h.value)||0;this._stacks.set(h.value,fe-1)}}}class f{static create(){return new f(new Error().stack??"")}constructor(h){this.value=h}print(){console.warn(this.value.split(`
`).slice(2).join(`
`))}}let m=0;class t{constructor(h){this.value=h,this.id=m++}}const o=2,d=(v,h)=>{if(v instanceof t)h(v);else for(let k=0;k<v.length;k++){const V=v[k];V&&h(V)}};class L{constructor(h){this._size=0,this._options=h,this._leakageMon=M>0||this._options?.leakWarningThreshold?new g(this._options?.leakWarningThreshold??M):void 0,this._perfMon=this._options?._profName?new D(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){if(!this._disposed){if(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners){if(I){const h=this._listeners;queueMicrotask(()=>{d(h,k=>k.stack?.print())})}this._listeners=void 0,this._size=0}this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose()}}get event(){return this._event??=(h,k,V)=>{if(this._disposed)return p.Disposable.None;k&&(h=h.bind(k));const J=new t(h);let fe,he;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(J.stack=f.create(),fe=this._leakageMon.check(J.stack,this._size+1)),I&&(J.stack=he??f.create()),this._listeners?this._listeners instanceof t?(this._deliveryQueue??=new X,this._listeners=[this._listeners,J]):this._listeners.push(J):(this._options?.onWillAddFirstListener?.(this),this._listeners=J,this._options?.onDidAddFirstListener?.(this)),this._size++;const ve=(0,p.toDisposable)(()=>{fe?.(),this._removeListener(J)});return V instanceof p.DisposableStore?V.add(ve):Array.isArray(V)&&V.push(ve),ve},this._event}_removeListener(h){if(this._options?.onWillRemoveListener?.(this),!this._listeners)return;if(this._size===1){this._listeners=void 0,this._options?.onDidRemoveLastListener?.(this),this._size=0;return}const k=this._listeners,V=k.indexOf(h);if(V===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,k[V]=void 0;const J=this._deliveryQueue.current===this;if(this._size*o<=k.length){let fe=0;for(let he=0;he<k.length;he++)k[he]?k[fe++]=k[he]:J&&(this._deliveryQueue.end--,fe<this._deliveryQueue.i&&this._deliveryQueue.i--);k.length=fe}}_deliver(h,k){if(!h)return;const V=this._options?.onListenerError||A.onUnexpectedError;if(!V){h.value(k);return}try{h.value(k)}catch(J){V(J)}}_deliverQueue(h){const k=h.current._listeners;for(;h.i<h.end;)this._deliver(k[h.i++],h.value);h.reset()}fire(h){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof t)this._deliver(this._listeners,h);else{const k=this._deliveryQueue;k.enqueue(this,h,this._listeners.length),this._deliverQueue(k)}this._perfMon?.stop()}hasListeners(){return this._size>0}}e.Emitter=L;const T=()=>new X;e.createEventDeliveryQueue=T;class X{constructor(){this.i=-1,this.end=0}enqueue(h,k,V){this.i=0,this.end=V,this.current=h,this.value=k}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}class i extends L{async fireAsync(h,k,V){if(this._listeners)for(this._asyncDeliveryQueue||(this._asyncDeliveryQueue=new U.LinkedList),d(this._listeners,J=>this._asyncDeliveryQueue.push([J.value,h]));this._asyncDeliveryQueue.size>0&&!k.isCancellationRequested;){const[J,fe]=this._asyncDeliveryQueue.shift(),he=[],ve={...fe,token:k,waitUntil:oe=>{if(Object.isFrozen(he))throw new Error("waitUntil can NOT be called asynchronous");V&&(oe=V(oe,J)),he.push(oe)}};try{J(ve)}catch(oe){(0,A.onUnexpectedError)(oe);continue}Object.freeze(he),await Promise.allSettled(he).then(oe=>{for(const H of oe)H.status==="rejected"&&(0,A.onUnexpectedError)(H.reason)})}}}e.AsyncEmitter=i;class s extends L{get isPaused(){return this._isPaused!==0}constructor(h){super(h),this._isPaused=0,this._eventQueue=new U.LinkedList,this._mergeFn=h?.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const h=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(h))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(h){this._size&&(this._isPaused!==0?this._eventQueue.push(h):super.fire(h))}}e.PauseableEmitter=s;class C extends s{constructor(h){super(h),this._delay=h.delay??100}fire(h){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(h)}}e.DebounceEmitter=C;class w extends L{constructor(h){super(h),this._queuedEvents=[],this._mergeFn=h?.merge}fire(h){this.hasListeners()&&(this._queuedEvents.push(h),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(k=>super.fire(k)),this._queuedEvents=[]}))}}e.MicrotaskEmitter=w;class u{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new L({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(h){const k={event:h,listener:null};this.events.push(k),this.hasListeners&&this.hook(k);const V=()=>{this.hasListeners&&this.unhook(k);const J=this.events.indexOf(k);this.events.splice(J,1)};return(0,p.toDisposable)((0,S.once)(V))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(h=>this.hook(h))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(h=>this.unhook(h))}hook(h){h.listener=h.event(k=>this.emitter.fire(k))}unhook(h){h.listener&&h.listener.dispose(),h.listener=null}dispose(){this.emitter.dispose()}}e.EventMultiplexer=u;class n{constructor(h,k,V,J){this._store=new p.DisposableStore;const fe=this._store.add(new u),he=this._store.add(new p.DisposableMap);function ve(oe){he.set(oe,fe.add(J(oe)))}for(const oe of h)ve(oe);this._store.add(k(oe=>{ve(oe)})),this._store.add(V(oe=>{he.deleteAndDispose(oe)})),this.event=fe.event}dispose(){this._store.dispose()}}e.DynamicListEventMultiplexer=n;class r{constructor(){this.buffers=[]}wrapEvent(h){return(k,V,J)=>h(fe=>{const he=this.buffers[this.buffers.length-1];he?he.push(()=>k.call(V,fe)):k.call(V,fe)},void 0,J)}bufferEvents(h){const k=[];this.buffers.push(k);const V=h();return this.buffers.pop(),k.forEach(J=>J()),V}}e.EventBufferer=r;class a{constructor(){this.listening=!1,this.inputEvent=P.None,this.inputEventListener=p.Disposable.None,this.emitter=new L({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(h){this.inputEvent=h,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=h(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}e.Relay=a}),define(me[9],ye([0,1,13]),function(ce,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CancellationTokenSource=e.CancellationToken=void 0;const S=Object.freeze(function(I,R){const P=setTimeout(I.bind(R),0);return{dispose(){clearTimeout(P)}}});var p;(function(I){function R(P){return P===I.None||P===I.Cancelled||P instanceof U?!0:!P||typeof P!="object"?!1:typeof P.isCancellationRequested=="boolean"&&typeof P.onCancellationRequested=="function"}I.isCancellationToken=R,I.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:A.Event.None}),I.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:S})})(p||(e.CancellationToken=p={}));class U{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?S:(this._emitter||(this._emitter=new A.Emitter),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class z{constructor(R){this._token=void 0,this._parentListener=void 0,this._parentListener=R&&R.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new U),this._token}cancel(){this._token?this._token instanceof U&&this._token.cancel():this._token=p.Cancelled}dispose(R=!1){R&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof U&&this._token.dispose():this._token=p.None}}e.CancellationTokenSource=z}),define(me[32],ye([0,1,9]),function(ce,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CachedFunction=e.LRUCachedFunction=e.Cache=void 0;class S{constructor(I){this.task=I,this.result=null}get(){if(this.result)return this.result;const I=new A.CancellationTokenSource,R=this.task(I.token);return this.result={promise:R,dispose:()=>{this.result=null,I.cancel(),I.dispose()}},this.result}}e.Cache=S;class p{constructor(I){this.fn=I,this.lastCache=void 0,this.lastArgKey=void 0}get(I){const R=JSON.stringify(I);return this.lastArgKey!==R&&(this.lastArgKey=R,this.lastCache=this.fn(I)),this.lastCache}}e.LRUCachedFunction=p;class U{get cachedValues(){return this._map}constructor(I){this.fn=I,this._map=new Map}get(I){if(this._map.has(I))return this._map.get(I);const R=this.fn(I);return this._map.set(I,R),R}}e.CachedFunction=U}),define(me[5],ye([0,1,32,28]),function(ce,e,A,S){"use strict";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.repeat=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.regExpLeadsToEndlessLoop=e.createRegExp=e.stripWildcards=e.convertSimple2RegExpPattern=e.rtrim=e.ltrim=e.trim=e.truncate=e.count=e.escapeRegExpCharacters=e.escape=e.format2=e.format=e.isFalsyOrWhitespace=void 0;function p(c){return!c||typeof c!="string"?!0:c.trim().length===0}e.isFalsyOrWhitespace=p;const U=/{(\d+)}/g;function z(c,...F){return F.length===0?c:c.replace(U,function(Q,ie){const ue=parseInt(ie,10);return isNaN(ue)||ue<0||ue>=F.length?Q:F[ue]})}e.format=z;const I=/{([^}]+)}/g;function R(c,F){return c.replace(I,(Q,ie)=>F[ie]??Q)}e.format2=R;function P(c){return c.replace(/[<>&]/g,function(F){switch(F){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";default:return F}})}e.escape=P;function D(c){return c.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}e.escapeRegExpCharacters=D;function M(c,F){let Q=0;const ie=F.charCodeAt(0);for(let ue=c.length-1;ue>=0;ue--)c.charCodeAt(ue)===ie&&Q++;return Q}e.count=M;function W(c,F,Q="\u2026"){return c.length<=F?c:`${c.substr(0,F)}${Q}`}e.truncate=W;function g(c,F=" "){const Q=f(c,F);return m(Q,F)}e.trim=g;function f(c,F){if(!c||!F)return c;const Q=F.length;if(Q===0||c.length===0)return c;let ie=0;for(;c.indexOf(F,ie)===ie;)ie=ie+Q;return c.substring(ie)}e.ltrim=f;function m(c,F){if(!c||!F)return c;const Q=F.length,ie=c.length;if(Q===0||ie===0)return c;let ue=ie,we=-1;for(;we=c.lastIndexOf(F,ue-1),!(we===-1||we+Q!==ue);){if(we===0)return"";ue=we}return c.substring(0,ue)}e.rtrim=m;function t(c){return c.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}e.convertSimple2RegExpPattern=t;function o(c){return c.replace(/\*/g,"")}e.stripWildcards=o;function d(c,F,Q={}){if(!c)throw new Error("Cannot create regex from empty string");F||(c=D(c)),Q.wholeWord&&(/\B/.test(c.charAt(0))||(c="\\b"+c),/\B/.test(c.charAt(c.length-1))||(c=c+"\\b"));let ie="";return Q.global&&(ie+="g"),Q.matchCase||(ie+="i"),Q.multiline&&(ie+="m"),Q.unicode&&(ie+="u"),new RegExp(c,ie)}e.createRegExp=d;function L(c){return c.source==="^"||c.source==="^$"||c.source==="$"||c.source==="^\\s*$"?!1:!!(c.exec("")&&c.lastIndex===0)}e.regExpLeadsToEndlessLoop=L;function T(c){return c.split(/\r\n|\r|\n/)}e.splitLines=T;function X(c){for(let F=0,Q=c.length;F<Q;F++){const ie=c.charCodeAt(F);if(ie!==32&&ie!==9)return F}return-1}e.firstNonWhitespaceIndex=X;function i(c,F=0,Q=c.length){for(let ie=F;ie<Q;ie++){const ue=c.charCodeAt(ie);if(ue!==32&&ue!==9)return c.substring(F,ie)}return c.substring(F,Q)}e.getLeadingWhitespace=i;function s(c,F=c.length-1){for(let Q=F;Q>=0;Q--){const ie=c.charCodeAt(Q);if(ie!==32&&ie!==9)return Q}return-1}e.lastNonWhitespaceIndex=s;function C(c,F,Q){const ie=[];let ue=0;for(const we of c.matchAll(F)){if(ie.push(c.slice(ue,we.index)),we.index===void 0)throw new Error("match.index should be defined");ue=we.index+we[0].length,ie.push(Q(we[0],...we.slice(1),we.index,c,we.groups))}return ie.push(c.slice(ue)),Promise.all(ie).then(we=>we.join(""))}e.replaceAsync=C;function w(c,F){return c<F?-1:c>F?1:0}e.compare=w;function u(c,F,Q=0,ie=c.length,ue=0,we=F.length){for(;Q<ie&&ue<we;Q++,ue++){const Pe=c.charCodeAt(Q),De=F.charCodeAt(ue);if(Pe<De)return-1;if(Pe>De)return 1}const _e=ie-Q,Ie=we-ue;return _e<Ie?-1:_e>Ie?1:0}e.compareSubstring=u;function n(c,F){return r(c,F,0,c.length,0,F.length)}e.compareIgnoreCase=n;function r(c,F,Q=0,ie=c.length,ue=0,we=F.length){for(;Q<ie&&ue<we;Q++,ue++){let Pe=c.charCodeAt(Q),De=F.charCodeAt(ue);if(Pe===De)continue;if(Pe>=128||De>=128)return u(c.toLowerCase(),F.toLowerCase(),Q,ie,ue,we);v(Pe)&&(Pe-=32),v(De)&&(De-=32);const Ae=Pe-De;if(Ae!==0)return Ae}const _e=ie-Q,Ie=we-ue;return _e<Ie?-1:_e>Ie?1:0}e.compareSubstringIgnoreCase=r;function a(c){return c>=48&&c<=57}e.isAsciiDigit=a;function v(c){return c>=97&&c<=122}e.isLowerAsciiLetter=v;function h(c){return c>=65&&c<=90}e.isUpperAsciiLetter=h;function k(c,F){return c.length===F.length&&r(c,F)===0}e.equalsIgnoreCase=k;function V(c,F){const Q=F.length;return F.length>c.length?!1:r(c,F,0,Q)===0}e.startsWithIgnoreCase=V;function J(c,F){const Q=Math.min(c.length,F.length);let ie;for(ie=0;ie<Q;ie++)if(c.charCodeAt(ie)!==F.charCodeAt(ie))return ie;return Q}e.commonPrefixLength=J;function fe(c,F){const Q=Math.min(c.length,F.length);let ie;const ue=c.length-1,we=F.length-1;for(ie=0;ie<Q;ie++)if(c.charCodeAt(ue-ie)!==F.charCodeAt(we-ie))return ie;return Q}e.commonSuffixLength=fe;function he(c){return 55296<=c&&c<=56319}e.isHighSurrogate=he;function ve(c){return 56320<=c&&c<=57343}e.isLowSurrogate=ve;function oe(c,F){return(c-55296<<10)+(F-56320)+65536}e.computeCodePoint=oe;function H(c,F,Q){const ie=c.charCodeAt(Q);if(he(ie)&&Q+1<F){const ue=c.charCodeAt(Q+1);if(ve(ue))return oe(ie,ue)}return ie}e.getNextCodePoint=H;function te(c,F){const Q=c.charCodeAt(F-1);if(ve(Q)&&F>1){const ie=c.charCodeAt(F-2);if(he(ie))return oe(ie,Q)}return Q}class re{get offset(){return this._offset}constructor(F,Q=0){this._str=F,this._len=F.length,this._offset=Q}setOffset(F){this._offset=F}prevCodePoint(){const F=te(this._str,this._offset);return this._offset-=F>=65536?2:1,F}nextCodePoint(){const F=H(this._str,this._len,this._offset);return this._offset+=F>=65536?2:1,F}eol(){return this._offset>=this._len}}e.CodePointIterator=re;class j{get offset(){return this._iterator.offset}constructor(F,Q=0){this._iterator=new re(F,Q)}nextGraphemeLength(){const F=Le.getInstance(),Q=this._iterator,ie=Q.offset;let ue=F.getGraphemeBreakType(Q.nextCodePoint());for(;!Q.eol();){const we=Q.offset,_e=F.getGraphemeBreakType(Q.nextCodePoint());if(Ce(ue,_e)){Q.setOffset(we);break}ue=_e}return Q.offset-ie}prevGraphemeLength(){const F=Le.getInstance(),Q=this._iterator,ie=Q.offset;let ue=F.getGraphemeBreakType(Q.prevCodePoint());for(;Q.offset>0;){const we=Q.offset,_e=F.getGraphemeBreakType(Q.prevCodePoint());if(Ce(_e,ue)){Q.setOffset(we);break}ue=_e}return ie-Q.offset}eol(){return this._iterator.eol()}}e.GraphemeIterator=j;function B(c,F){return new j(c,F).nextGraphemeLength()}e.nextCharLength=B;function $(c,F){return new j(c,F).prevGraphemeLength()}e.prevCharLength=$;function y(c,F){F>0&&ve(c.charCodeAt(F))&&F--;const Q=F+B(c,F);return[Q-$(c,Q),Q]}e.getCharContainingOffset=y;function N(c){const F=new j(c);let Q=0;for(;!F.eol();)Q++,F.nextGraphemeLength();return Q}e.charCount=N;let ee;function se(){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 Z(c){return ee||(ee=se()),ee.test(c)}e.containsRTL=Z;const le=/^[\t\n\r\x20-\x7E]*$/;function G(c){return le.test(c)}e.isBasicASCII=G,e.UNUSUAL_LINE_TERMINATORS=/[\u2028\u2029]/;function E(c){return e.UNUSUAL_LINE_TERMINATORS.test(c)}e.containsUnusualLineTerminators=E;function q(c){return c>=11904&&c<=55215||c>=63744&&c<=64255||c>=65281&&c<=65374}e.isFullWidthCharacter=q;function Y(c){return c>=127462&&c<=127487||c===8986||c===8987||c===9200||c===9203||c>=9728&&c<=10175||c===11088||c===11093||c>=127744&&c<=128591||c>=128640&&c<=128764||c>=128992&&c<=129008||c>=129280&&c<=129535||c>=129648&&c<=129782}e.isEmojiImprecise=Y;function ne(c,F){if(c.length<F)return c;const Q=/\b/g;let ie=0;for(;Q.test(c)&&!(c.length-Q.lastIndex<F);)ie=Q.lastIndex,Q.lastIndex+=1;return c.substring(ie).replace(/^\s/,"")}e.lcut=ne;const de=/(:?\x1b\[|\x9B)[=?>!]?[\d;:]*["$#'* ]?[a-zA-Z@^`{}|~]/g,x=/\x1b\].*?\x07/g;function l(c){return c&&(c=c.replace(de,"").replace(x,"")),c}e.removeAnsiEscapeCodes=l,e.UTF8_BOM_CHARACTER=String.fromCharCode(65279);function b(c){return!!(c&&c.length>0&&c.charCodeAt(0)===65279)}e.startsWithUTF8BOM=b;function _(c){return b(c)?c.substr(1):c}e.stripUTF8BOM=_;function O(c,F){let Q="";for(let ie=0;ie<F;ie++)Q+=c;return Q}e.repeat=O;function K(c,F){if(!c||!F||c.length<F.length)return!1;const Q=F.length,ie=c.toLowerCase();let ue=0,we=-1;for(;ue<Q;){const _e=ie.indexOf(F[ue],we+1);if(_e<0)return!1;we=_e,ue++}return!0}e.fuzzyContains=K;function ae(c,F=!1){return c?(F&&(c=c.replace(/\\./g,"")),c.toLowerCase()!==c):!1}e.containsUppercaseCharacter=ae;function ge(c){return c.charAt(0).toUpperCase()+c.slice(1)}e.uppercaseFirstLetter=ge;function Ee(c,F=1){if(F===0)return"";let Q=-1;do Q=c.indexOf(`
`,Q+1),F--;while(F>0&&Q>=0);return Q===-1?c:(c[Q-1]==="\r"&&Q--,c.substr(0,Q))}e.getNLines=Ee;function pe(c){return c=c%(2*26),c<26?String.fromCharCode(97+c):String.fromCharCode(65+c-26)}e.singleLetterHash=pe;function be(c){return Le.getInstance().getGraphemeBreakType(c)}e.getGraphemeBreakType=be;function Ce(c,F){return c===0?F!==5&&F!==7:c===2&&F===3?!1:c===4||c===2||c===3||F===4||F===2||F===3?!0:!(c===8&&(F===8||F===9||F===11||F===12)||(c===11||c===9)&&(F===9||F===10)||(c===12||c===10)&&F===10||F===5||F===13||F===7||c===1||c===13&&F===14||c===6&&F===6)}var Fe;(function(c){c[c.Other=0]="Other",c[c.Prepend=1]="Prepend",c[c.CR=2]="CR",c[c.LF=3]="LF",c[c.Control=4]="Control",c[c.Extend=5]="Extend",c[c.Regional_Indicator=6]="Regional_Indicator",c[c.SpacingMark=7]="SpacingMark",c[c.L=8]="L",c[c.V=9]="V",c[c.T=10]="T",c[c.LV=11]="LV",c[c.LVT=12]="LVT",c[c.ZWJ=13]="ZWJ",c[c.Extended_Pictographic=14]="Extended_Pictographic"})(Fe||(e.GraphemeBreakType=Fe={}));class Le{static{this._INSTANCE=null}static getInstance(){return Le._INSTANCE||(Le._INSTANCE=new Le),Le._INSTANCE}constructor(){this._data=Ne()}getGraphemeBreakType(F){if(F<32)return F===10?3:F===13?2:4;if(F<127)return 0;const Q=this._data,ie=Q.length/3;let ue=1;for(;ue<=ie;)if(F<Q[3*ue])ue=2*ue;else if(F>Q[3*ue+1])ue=2*ue+1;else return Q[3*ue+2];return 0}}function Ne(){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 Me(c,F){if(c===0)return 0;const Q=qe(c,F);if(Q!==void 0)return Q;const ie=new re(F,c);return ie.prevCodePoint(),ie.offset}e.getLeftDeleteOffset=Me;function qe(c,F){const Q=new re(F,c);let ie=Q.prevCodePoint();for(;$e(ie)||ie===65039||ie===8419;){if(Q.offset===0)return;ie=Q.prevCodePoint()}if(!Y(ie))return;let ue=Q.offset;return ue>0&&Q.prevCodePoint()===8205&&(ue=Q.offset),ue}function $e(c){return 127995<=c&&c<=127999}var We;(function(c){c[c.zwj=8205]="zwj",c[c.emojiVariantSelector=65039]="emojiVariantSelector",c[c.enclosingKeyCap=8419]="enclosingKeyCap"})(We||(We={})),e.noBreakWhitespace="\xA0";class Re{static{this.ambiguousCharacterData=new S.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,119846,109],"_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]}'))}static{this.cache=new A.LRUCachedFunction(F=>{function Q(Ae){const Oe=new Map;for(let Se=0;Se<Ae.length;Se+=2)Oe.set(Ae[Se],Ae[Se+1]);return Oe}function ie(Ae,Oe){const Se=new Map(Ae);for(const[ke,Ue]of Oe)Se.set(ke,Ue);return Se}function ue(Ae,Oe){if(!Ae)return Oe;const Se=new Map;for(const[ke,Ue]of Ae)Oe.has(ke)&&Se.set(ke,Ue);return Se}const we=this.ambiguousCharacterData.value;let _e=F.filter(Ae=>!Ae.startsWith("_")&&Ae in we);_e.length===0&&(_e=["_default"]);let Ie;for(const Ae of _e){const Oe=Q(we[Ae]);Ie=ue(Ie,Oe)}const Pe=Q(we._common),De=ie(Pe,Ie);return new Re(De)})}static getInstance(F){return Re.cache.get(Array.from(F))}static{this._locales=new S.Lazy(()=>Object.keys(Re.ambiguousCharacterData.value).filter(F=>!F.startsWith("_")))}static getLocales(){return Re._locales.value}constructor(F){this.confusableDictionary=F}isAmbiguous(F){return this.confusableDictionary.has(F)}getPrimaryConfusable(F){return this.confusableDictionary.get(F)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}e.AmbiguousCharacters=Re;class Te{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{this._data=void 0}static getData(){return this._data||(this._data=new Set(Te.getRawData())),this._data}static isInvisibleCharacter(F){return Te.getData().has(F)}static get codePoints(){return Te.getData()}}e.InvisibleCharacters=Te}),define(me[33],ye([0,1]),function(ce,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MicrotaskDelay=void 0,e.MicrotaskDelay=Symbol("MicrotaskDelay")}),define(me[34],ye([0,1,19,5]),function(ce,e,A,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TernarySearchTree=e.UriIterator=e.PathIterator=e.ConfigKeysIterator=e.StringIterator=void 0;class p{constructor(){this._value="",this._pos=0}reset(g){return this._value=g,this._pos=0,this}next(){return this._pos+=1,this}hasNext(){return this._pos<this._value.length-1}cmp(g){const f=g.charCodeAt(0),m=this._value.charCodeAt(this._pos);return f-m}value(){return this._value[this._pos]}}e.StringIterator=p;class U{constructor(g=!0){this._caseSensitive=g}reset(g){return this._value=g,this._from=0,this._to=0,this.next()}hasNext(){return this._to<this._value.length}next(){this._from=this._to;let g=!0;for(;this._to<this._value.length;this._to++)if(this._value.charCodeAt(this._to)===46)if(g)this._from++;else break;else g=!1;return this}cmp(g){return this._caseSensitive?(0,S.compareSubstring)(g,this._value,0,g.length,this._from,this._to):(0,S.compareSubstringIgnoreCase)(g,this._value,0,g.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}e.ConfigKeysIterator=U;class z{constructor(g=!0,f=!0){this._splitOnBackslash=g,this._caseSensitive=f}reset(g){this._from=0,this._to=0,this._value=g,this._valueLen=g.length;for(let f=g.length-1;f>=0;f--,this._valueLen--){const m=this._value.charCodeAt(f);if(!(m===47||this._splitOnBackslash&&m===92))break}return this.next()}hasNext(){return this._to<this._valueLen}next(){this._from=this._to;let g=!0;for(;this._to<this._valueLen;this._to++){const f=this._value.charCodeAt(this._to);if(f===47||this._splitOnBackslash&&f===92)if(g)this._from++;else break;else g=!1}return this}cmp(g){return this._caseSensitive?(0,S.compareSubstring)(g,this._value,0,g.length,this._from,this._to):(0,S.compareSubstringIgnoreCase)(g,this._value,0,g.length,this._from,this._to)}value(){return this._value.substring(this._from,this._to)}}e.PathIterator=z;var I;(function(W){W[W.Scheme=1]="Scheme",W[W.Authority=2]="Authority",W[W.Path=3]="Path",W[W.Query=4]="Query",W[W.Fragment=5]="Fragment"})(I||(I={}));class R{constructor(g,f){this._ignorePathCasing=g,this._ignoreQueryAndFragment=f,this._states=[],this._stateIdx=0}reset(g){return this._value=g,this._states=[],this._value.scheme&&this._states.push(1),this._value.authority&&this._states.push(2),this._value.path&&(this._pathIterator=new z(!1,!this._ignorePathCasing(g)),this._pathIterator.reset(g.path),this._pathIterator.value()&&this._states.push(3)),this._ignoreQueryAndFragment(g)||(this._value.query&&this._states.push(4),this._value.fragment&&this._states.push(5)),this._stateIdx=0,this}next(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()?this._pathIterator.next():this._stateIdx+=1,this}hasNext(){return this._states[this._stateIdx]===3&&this._pathIterator.hasNext()||this._stateIdx<this._states.length-1}cmp(g){if(this._states[this._stateIdx]===1)return(0,S.compareIgnoreCase)(g,this._value.scheme);if(this._states[this._stateIdx]===2)return(0,S.compareIgnoreCase)(g,this._value.authority);if(this._states[this._stateIdx]===3)return this._pathIterator.cmp(g);if(this._states[this._stateIdx]===4)return(0,S.compare)(g,this._value.query);if(this._states[this._stateIdx]===5)return(0,S.compare)(g,this._value.fragment);throw new Error}value(){if(this._states[this._stateIdx]===1)return this._value.scheme;if(this._states[this._stateIdx]===2)return this._value.authority;if(this._states[this._stateIdx]===3)return this._pathIterator.value();if(this._states[this._stateIdx]===4)return this._value.query;if(this._states[this._stateIdx]===5)return this._value.fragment;throw new Error}}e.UriIterator=R;class P{constructor(){this.height=1}isEmpty(){return!this.left&&!this.mid&&!this.right&&!this.value}rotateLeft(){const g=this.right;return this.right=g.left,g.left=this,this.updateHeight(),g.updateHeight(),g}rotateRight(){const g=this.left;return this.left=g.right,g.right=this,this.updateHeight(),g.updateHeight(),g}updateHeight(){this.height=1+Math.max(this.heightLeft,this.heightRight)}balanceFactor(){return this.heightRight-this.heightLeft}get heightLeft(){return this.left?.height??0}get heightRight(){return this.right?.height??0}}var D;(function(W){W[W.Left=-1]="Left",W[W.Mid=0]="Mid",W[W.Right=1]="Right"})(D||(D={}));class M{static forUris(g=()=>!1,f=()=>!1){return new M(new R(g,f))}static forPaths(g=!1){return new M(new z(void 0,!g))}static forStrings(){return new M(new p)}static forConfigKeys(){return new M(new U)}constructor(g){this._iter=g}clear(){this._root=void 0}fill(g,f){if(f){const m=f.slice(0);(0,A.shuffle)(m);for(const t of m)this.set(t,g)}else{const m=g.slice(0);(0,A.shuffle)(m);for(const t of m)this.set(t[0],t[1])}}set(g,f){const m=this._iter.reset(g);let t;this._root||(this._root=new P,this._root.segment=m.value());const o=[];for(t=this._root;;){const L=m.cmp(t.segment);if(L>0)t.left||(t.left=new P,t.left.segment=m.value()),o.push([-1,t]),t=t.left;else if(L<0)t.right||(t.right=new P,t.right.segment=m.value()),o.push([1,t]),t=t.right;else if(m.hasNext())m.next(),t.mid||(t.mid=new P,t.mid.segment=m.value()),o.push([0,t]),t=t.mid;else break}const d=t.value;t.value=f,t.key=g;for(let L=o.length-1;L>=0;L--){const T=o[L][1];T.updateHeight();const X=T.balanceFactor();if(X<-1||X>1){const i=o[L][0],s=o[L+1][0];if(i===1&&s===1)o[L][1]=T.rotateLeft();else if(i===-1&&s===-1)o[L][1]=T.rotateRight();else if(i===1&&s===-1)T.right=o[L+1][1]=o[L+1][1].rotateRight(),o[L][1]=T.rotateLeft();else if(i===-1&&s===1)T.left=o[L+1][1]=o[L+1][1].rotateLeft(),o[L][1]=T.rotateRight();else throw new Error;if(L>0)switch(o[L-1][0]){case-1:o[L-1][1].left=o[L][1];break;case 1:o[L-1][1].right=o[L][1];break;case 0:o[L-1][1].mid=o[L][1];break}else this._root=o[0][1]}}return d}get(g){return this._getNode(g)?.value}_getNode(g){const f=this._iter.reset(g);let m=this._root;for(;m;){const t=f.cmp(m.segment);if(t>0)m=m.left;else if(t<0)m=m.right;else if(f.hasNext())f.next(),m=m.mid;else break}return m}has(g){const f=this._getNode(g);return!(f?.value===void 0&&f?.mid===void 0)}delete(g){return this._delete(g,!1)}deleteSuperstr(g){return this._delete(g,!0)}_delete(g,f){const m=this._iter.reset(g),t=[];let o=this._root;for(;o;){const d=m.cmp(o.segment);if(d>0)t.push([-1,o]),o=o.left;else if(d<0)t.push([1,o]),o=o.right;else if(m.hasNext())m.next(),t.push([0,o]),o=o.mid;else break}if(o){if(f?(o.left=void 0,o.mid=void 0,o.right=void 0,o.height=1):(o.key=void 0,o.value=void 0),!o.mid&&!o.value)if(o.left&&o.right){const d=this._min(o.right);if(d.key){const{key:L,value:T,segment:X}=d;this._delete(d.key,!1),o.key=L,o.value=T,o.segment=X}}else{const d=o.left??o.right;if(t.length>0){const[L,T]=t[t.length-1];switch(L){case-1:T.left=d;break;case 0:T.mid=d;break;case 1:T.right=d;break}}else this._root=d}for(let d=t.length-1;d>=0;d--){const L=t[d][1];L.updateHeight();const T=L.balanceFactor();if(T>1?(L.right.balanceFactor()>=0||(L.right=L.right.rotateRight()),t[d][1]=L.rotateLeft()):T<-1&&(L.left.balanceFactor()<=0||(L.left=L.left.rotateLeft()),t[d][1]=L.rotateRight()),d>0)switch(t[d-1][0]){case-1:t[d-1][1].left=t[d][1];break;case 1:t[d-1][1].right=t[d][1];break;case 0:t[d-1][1].mid=t[d][1];break}else this._root=t[0][1]}}}_min(g){for(;g.left;)g=g.left;return g}findSubstr(g){const f=this._iter.reset(g);let m=this._root,t;for(;m;){const o=f.cmp(m.segment);if(o>0)m=m.left;else if(o<0)m=m.right;else if(f.hasNext())f.next(),t=m.value||t,m=m.mid;else break}return m&&m.value||t}findSuperstr(g){return this._findSuperstrOrElement(g,!1)}_findSuperstrOrElement(g,f){const m=this._iter.reset(g);let t=this._root;for(;t;){const o=m.cmp(t.segment);if(o>0)t=t.left;else if(o<0)t=t.right;else if(m.hasNext())m.next(),t=t.mid;else return t.mid?this._entries(t.mid):f?t.value:void 0}}hasElementOrSubtree(g){return this._findSuperstrOrElement(g,!0)!==void 0}forEach(g){for(const[f,m]of this)g(m,f)}*[Symbol.iterator](){yield*this._entries(this._root)}_entries(g){const f=[];return this._dfsEntries(g,f),f[Symbol.iterator]()}_dfsEntries(g,f){g&&(g.left&&this._dfsEntries(g.left,f),g.value&&f.push([g.key,g.value]),g.mid&&this._dfsEntries(g.mid,f),g.right&&this._dfsEntries(g.right,f))}_isBalanced(){const g=f=>{if(!f)return!0;const m=f.balanceFactor();return m<-1||m>1?!1:g(f.left)&&g(f.right)};return g(this._root)}}e.TernarySearchTree=M}),define(me[23],ye([0,1]),function(ce,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),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 A(i){return typeof i=="string"}e.isString=A;function S(i){return Array.isArray(i)&&i.every(s=>A(s))}e.isStringArray=S;function p(i){return typeof i=="object"&&i!==null&&!Array.isArray(i)&&!(i instanceof RegExp)&&!(i instanceof Date)}e.isObject=p;function U(i){const s=Object.getPrototypeOf(Uint8Array);return typeof i=="object"&&i instanceof s}e.isTypedArray=U;function z(i){return typeof i=="number"&&!isNaN(i)}e.isNumber=z;function I(i){return!!i&&typeof i[Symbol.iterator]=="function"}e.isIterable=I;function R(i){return i===!0||i===!1}e.isBoolean=R;function P(i){return typeof i>"u"}e.isUndefined=P;function D(i){return!M(i)}e.isDefined=D;function M(i){return P(i)||i===null}e.isUndefinedOrNull=M;function W(i,s){if(!i)throw new Error(s?`Unexpected type, expected '${s}'`:"Unexpected type")}e.assertType=W;function g(i){if(M(i))throw new Error("Assertion Failed: argument is undefined or null");return i}e.assertIsDefined=g;function f(...i){const s=[];for(let C=0;C<i.length;C++){const w=i[C];if(M(w))throw new Error(`Assertion Failed: argument at index ${C} is undefined or null`);s.push(w)}return s}e.assertAllDefined=f;const m=Object.prototype.hasOwnProperty;function t(i){if(!p(i))return!1;for(const s in i)if(m.call(i,s))return!1;return!0}e.isEmptyObject=t;function o(i){return typeof i=="function"}e.isFunction=o;function d(...i){return i.length>0&&i.every(o)}e.areFunctions=d;function L(i,s){const C=Math.min(i.length,s.length);for(let w=0;w<C;w++)T(i[w],s[w])}e.validateConstraints=L;function T(i,s){if(A(s)){if(typeof i!==s)throw new Error(`argument does not match constraint: typeof ${s}`)}else if(o(s)){try{if(i instanceof s)return}catch{}if(!M(i)&&i.constructor===s||s.length===1&&s.call(void 0,i)===!0)return;throw new Error("argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}e.validateConstraint=T;function X(i){return i===null?void 0:i}e.withNullAsUndefined=X}),define(me[35],ye([0,1,52]),function(ce,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findFreePortFaster=e.BROWSER_RESTRICTED_PORTS=e.findFreePort=void 0;function S(I,R,P,D=1){let M=!1;return new Promise(W=>{const g=setTimeout(()=>{if(!M)return M=!0,W(0)},P);p(I,R,D,f=>{if(!M)return M=!0,clearTimeout(g),W(f)})})}e.findFreePort=S;function p(I,R,P,D){if(R===0)return D(0);const M=new A.Socket;M.once("connect",()=>(z(M),p(I+P,R-1,P,D))),M.once("data",()=>{}),M.once("error",W=>(z(M),W.code!=="ECONNREFUSED"?p(I+P,R-1,P,D):D(I))),M.connect(I,"127.0.0.1")}e.BROWSER_RESTRICTED_PORTS={1:!0,7:!0,9:!0,11:!0,13:!0,15:!0,17:!0,19:!0,20:!0,21:!0,22:!0,23:!0,25:!0,37:!0,42:!0,43:!0,53:!0,69:!0,77:!0,79:!0,87:!0,95:!0,101:!0,102:!0,103:!0,104:!0,109:!0,110:!0,111:!0,113:!0,115:!0,117:!0,119:!0,123:!0,135:!0,137:!0,139:!0,143:!0,161:!0,179:!0,389:!0,427:!0,465:!0,512:!0,513:!0,514:!0,515:!0,526:!0,530:!0,531:!0,532:!0,540:!0,548:!0,554:!0,556:!0,563:!0,587:!0,601:!0,636:!0,989:!0,990:!0,993:!0,995:!0,1719:!0,1720:!0,1723:!0,2049:!0,3659:!0,4045:!0,5060:!0,5061:!0,6e3:!0,6566:!0,6665:!0,6666:!0,6667:!0,6668:!0,6669:!0,6697:!0,10080:!0};function U(I,R,P,D="127.0.0.1"){let M=!1,W,g=1;const f=A.createServer({pauseOnConnect:!0});function m(t,o){M||(M=!0,f.removeAllListeners(),f.close(),W&&clearTimeout(W),o(t))}return new Promise(t=>{W=setTimeout(()=>{m(0,t)},P),f.on("listening",()=>{m(I,t)}),f.on("error",o=>{o&&(o.code==="EADDRINUSE"||o.code==="EACCES")&&g<R?(I++,g++,f.listen(I,D)):m(0,t)}),f.on("close",()=>{m(0,t)}),f.listen(I,D)})}e.findFreePortFaster=U;function z(I){try{I.removeAllListeners("connect"),I.removeAllListeners("error"),I.end(),I.destroy(),I.unref()}catch(R){console.error(R)}}}),function(){function ce(){function e(){return process.uncHostAllowlist}function A(R){const P=new Set;if(Array.isArray(R))for(const D of R)typeof D=="string"&&P.add(D);return Array.from(P)}function S(){const R=e();return R?Array.from(R):[]}function p(R){if(process.platform!=="win32")return;const P=e();if(P)if(typeof R=="string")P.add(R.toLowerCase());else for(const D of A(R))p(D)}function U(R){if(typeof R!="string")return;const P=["\\\\.\\UNC\\","\\\\?\\UNC\\","\\\\"];let D;for(const M of P){if(R.indexOf(M)!==0)continue;const g=R.indexOf("\\",M.length);if(g===-1)continue;const f=R.substring(M.length,g);if(f){D=f;break}}return D}function z(){process.platform==="win32"&&(process.restrictUNCAccess=!1)}function I(){return process.platform!=="win32"?!0:process.enableUNCAccessChecks===!1}return{getUNCHostAllowlist:S,addUNCHostToAllowlist:p,getUNCHost:U,disableUNCAccessRestrictions:z,isUNCAccessRestrictionsDisabled:I}}typeof define=="function"?define("vs/base/node/unc",[],function(){return ce()}):typeof module=="object"&&typeof module.exports=="object"?module.exports=ce():console.trace("vs/base/node/unc defined in UNKNOWN context (neither requirejs or commonjs)")}(),define(me[36],ye([14,15]),function(ce,e){return ce.create("vs/base/common/platform",e)}),define(me[2],ye([0,1,36]),function(ce,e,A){"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.platformLocale=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 S=!1,p=!1,U=!1,z=!1,I=!1,R=!1,P=!1,D=!1,M=!1,W=!1,g,f=e.LANGUAGE_DEFAULT,m=e.LANGUAGE_DEFAULT,t,o;e.globals=typeof self=="object"?self:typeof global=="object"?global:{};let d;typeof e.globals.vscode<"u"&&typeof e.globals.vscode.process<"u"?d=e.globals.vscode.process:typeof process<"u"&&(d=process);const L=typeof d?.versions?.electron=="string",T=L&&d?.type==="renderer";if(typeof navigator=="object"&&!T)o=navigator.userAgent,S=o.indexOf("Windows")>=0,p=o.indexOf("Macintosh")>=0,D=(o.indexOf("Macintosh")>=0||o.indexOf("iPad")>=0||o.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,U=o.indexOf("Linux")>=0,W=o?.indexOf("Mobi")>=0,R=!0,g=A.getConfiguredDefaultLocale(A.localize(0,null))||e.LANGUAGE_DEFAULT,f=g,m=navigator.language;else if(typeof d=="object"){S=d.platform==="win32",p=d.platform==="darwin",U=d.platform==="linux",z=U&&!!d.env.SNAP&&!!d.env.SNAP_REVISION,P=L,M=!!d.env.CI||!!d.env.BUILD_ARTIFACTSTAGINGDIRECTORY,g=e.LANGUAGE_DEFAULT,f=e.LANGUAGE_DEFAULT;const a=d.env.VSCODE_NLS_CONFIG;if(a)try{const v=JSON.parse(a),h=v.availableLanguages["*"];g=v.locale,m=v.osLocale,f=h||e.LANGUAGE_DEFAULT,t=v._translationsConfigFile}catch{}I=!0}else console.error("Unable to resolve platform.");var X;(function(a){a[a.Web=0]="Web",a[a.Mac=1]="Mac",a[a.Linux=2]="Linux",a[a.Windows=3]="Windows"})(X||(e.Platform=X={}));function i(a){switch(a){case 0:return"Web";case 1:return"Mac";case 2:return"Linux";case 3:return"Windows"}}e.PlatformToString=i;let s=0;p?s=1:S?s=3:U&&(s=2),e.isWindows=S,e.isMacintosh=p,e.isLinux=U,e.isLinuxSnap=z,e.isNative=I,e.isElectron=P,e.isWeb=R,e.isWebWorker=R&&typeof e.globals.importScripts=="function",e.isIOS=D,e.isMobile=W,e.isCI=M,e.platform=s,e.userAgent=o,e.language=f;var C;(function(a){function v(){return e.language}a.value=v;function h(){return e.language.length===2?e.language==="en":e.language.length>=3?e.language[0]==="e"&&e.language[1]==="n"&&e.language[2]==="-":!1}a.isDefaultVariant=h;function k(){return e.language==="en"}a.isDefault=k})(C||(e.Language=C={})),e.locale=g,e.platformLocale=m,e.translationsConfigFile=t,e.setTimeout0IsFaster=typeof e.globals.postMessage=="function"&&!e.globals.importScripts,e.setTimeout0=(()=>{if(e.setTimeout0IsFaster){const a=[];e.globals.addEventListener("message",h=>{if(h.data&&h.data.vscodeScheduleAsyncWork)for(let k=0,V=a.length;k<V;k++){const J=a[k];if(J.id===h.data.vscodeScheduleAsyncWork){a.splice(k,1),J.callback();return}}});let v=0;return h=>{const k=++v;a.push({id:k,callback:h}),e.globals.postMessage({vscodeScheduleAsyncWork:k},"*")}}return a=>setTimeout(a)})();var w;(function(a){a[a.Windows=1]="Windows",a[a.Macintosh=2]="Macintosh",a[a.Linux=3]="Linux"})(w||(e.OperatingSystem=w={})),e.OS=p||D?2:S?1:3;let u=!0,n=!1;function r(){if(!n){n=!0;const a=new Uint8Array(2);a[0]=1,a[1]=2,u=new Uint16Array(a.buffer)[0]===(2<<8)+1}return u}e.isLittleEndian=r,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(me[16],ye([0,1,2]),function(ce,e,A){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arch=e.platform=e.env=e.cwd=void 0;let S;if(typeof A.globals.vscode<"u"&&typeof A.globals.vscode.process<"u"){const p=A.globals.vscode.process;S={get platform(){return p.platform},get arch(){return p.arch},get env(){return p.env},cwd(){return p.cwd()}}}else typeof process<"u"?S={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:S={get platform(){return A.isWindows?"win32":A.isMacintosh?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};e.cwd=S.cwd,e.env=S.env,e.platform=S.platform,e.arch=S.arch}),define(me[3],ye([0,1,16]),function(ce,e,A){"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 S=65,p=97,U=90,z=122,I=46,R=47,P=92,D=58,M=63;class W extends Error{constructor(s,C,w){let u;typeof C=="string"&&C.indexOf("not ")===0?(u="must not be",C=C.replace(/^not /,"")):u="must be";const n=s.indexOf(".")!==-1?"property":"argument";let r=`The "${s}" ${n} ${u} of type ${C}`;r+=`. Received type ${typeof w}`,super(r),this.code="ERR_INVALID_ARG_TYPE"}}function g(i,s){if(i===null||typeof i!="object")throw new W(s,"Object",i)}function f(i,s){if(typeof i!="string")throw new W(s,"string",i)}const m=A.platform==="win32";function t(i){return i===R||i===P}function o(i){return i===R}function d(i){return i>=S&&i<=U||i>=p&&i<=z}function L(i,s,C,w){let u="",n=0,r=-1,a=0,v=0;for(let h=0;h<=i.length;++h){if(h<i.length)v=i.charCodeAt(h);else{if(w(v))break;v=R}if(w(v)){if(!(r===h-1||a===1))if(a===2){if(u.length<2||n!==2||u.charCodeAt(u.length-1)!==I||u.charCodeAt(u.length-2)!==I){if(u.length>2){const k=u.lastIndexOf(C);k===-1?(u="",n=0):(u=u.slice(0,k),n=u.length-1-u.lastIndexOf(C)),r=h,a=0;continue}else if(u.length!==0){u="",n=0,r=h,a=0;continue}}s&&(u+=u.length>0?`${C}..`:"..",n=2)}else u.length>0?u+=`${C}${i.slice(r+1,h)}`:u=i.slice(r+1,h),n=h-r-1;r=h,a=0}else v===I&&a!==-1?++a:a=-1}return u}function T(i,s){g(s,"pathObject");const C=s.dir||s.root,w=s.base||`${s.name||""}${s.ext||""}`;return C?C===s.root?`${C}${w}`:`${C}${i}${w}`:w}e.win32={resolve(...i){let s="",C="",w=!1;for(let u=i.length-1;u>=-1;u--){let n;if(u>=0){if(n=i[u],f(n,"path"),n.length===0)continue}else s.length===0?n=A.cwd():(n=A.env[`=${s}`]||A.cwd(),(n===void 0||n.slice(0,2).toLowerCase()!==s.toLowerCase()&&n.charCodeAt(2)===P)&&(n=`${s}\\`));const r=n.length;let a=0,v="",h=!1;const k=n.charCodeAt(0);if(r===1)t(k)&&(a=1,h=!0);else if(t(k))if(h=!0,t(n.charCodeAt(1))){let V=2,J=V;for(;V<r&&!t(n.charCodeAt(V));)V++;if(V<r&&V!==J){const fe=n.slice(J,V);for(J=V;V<r&&t(n.charCodeAt(V));)V++;if(V<r&&V!==J){for(J=V;V<r&&!t(n.charCodeAt(V));)V++;(V===r||V!==J)&&(v=`\\\\${fe}\\${n.slice(J,V)}`,a=V)}}}else a=1;else d(k)&&n.charCodeAt(1)===D&&(v=n.slice(0,2),a=2,r>2&&t(n.charCodeAt(2))&&(h=!0,a=3));if(v.length>0)if(s.length>0){if(v.toLowerCase()!==s.toLowerCase())continue}else s=v;if(w){if(s.length>0)break}else if(C=`${n.slice(a)}\\${C}`,w=h,h&&s.length>0)break}return C=L(C,!w,"\\",t),w?`${s}\\${C}`:`${s}${C}`||"."},normalize(i){f(i,"path");const s=i.length;if(s===0)return".";let C=0,w,u=!1;const n=i.charCodeAt(0);if(s===1)return o(n)?"\\":i;if(t(n))if(u=!0,t(i.charCodeAt(1))){let a=2,v=a;for(;a<s&&!t(i.charCodeAt(a));)a++;if(a<s&&a!==v){const h=i.slice(v,a);for(v=a;a<s&&t(i.charCodeAt(a));)a++;if(a<s&&a!==v){for(v=a;a<s&&!t(i.charCodeAt(a));)a++;if(a===s)return`\\\\${h}\\${i.slice(v)}\\`;a!==v&&(w=`\\\\${h}\\${i.slice(v,a)}`,C=a)}}}else C=1;else d(n)&&i.charCodeAt(1)===D&&(w=i.slice(0,2),C=2,s>2&&t(i.charCodeAt(2))&&(u=!0,C=3));let r=C<s?L(i.slice(C),!u,"\\",t):"";return r.length===0&&!u&&(r="."),r.length>0&&t(i.charCodeAt(s-1))&&(r+="\\"),w===void 0?u?`\\${r}`:r:u?`${w}\\${r}`:`${w}${r}`},isAbsolute(i){f(i,"path");const s=i.length;if(s===0)return!1;const C=i.charCodeAt(0);return t(C)||s>2&&d(C)&&i.charCodeAt(1)===D&&t(i.charCodeAt(2))},join(...i){if(i.length===0)return".";let s,C;for(let n=0;n<i.length;++n){const r=i[n];f(r,"path"),r.length>0&&(s===void 0?s=C=r:s+=`\\${r}`)}if(s===void 0)return".";let w=!0,u=0;if(typeof C=="string"&&t(C.charCodeAt(0))){++u;const n=C.length;n>1&&t(C.charCodeAt(1))&&(++u,n>2&&(t(C.charCodeAt(2))?++u:w=!1))}if(w){for(;u<s.length&&t(s.charCodeAt(u));)u++;u>=2&&(s=`\\${s.slice(u)}`)}return e.win32.normalize(s)},relative(i,s){if(f(i,"from"),f(s,"to"),i===s)return"";const C=e.win32.resolve(i),w=e.win32.resolve(s);if(C===w||(i=C.toLowerCase(),s=w.toLowerCase(),i===s))return"";let u=0;for(;u<i.length&&i.charCodeAt(u)===P;)u++;let n=i.length;for(;n-1>u&&i.charCodeAt(n-1)===P;)n--;const r=n-u;let a=0;for(;a<s.length&&s.charCodeAt(a)===P;)a++;let v=s.length;for(;v-1>a&&s.charCodeAt(v-1)===P;)v--;const h=v-a,k=r<h?r:h;let V=-1,J=0;for(;J<k;J++){const he=i.charCodeAt(u+J);if(he!==s.charCodeAt(a+J))break;he===P&&(V=J)}if(J!==k){if(V===-1)return w}else{if(h>k){if(s.charCodeAt(a+J)===P)return w.slice(a+J+1);if(J===2)return w.slice(a+J)}r>k&&(i.charCodeAt(u+J)===P?V=J:J===2&&(V=3)),V===-1&&(V=0)}let fe="";for(J=u+V+1;J<=n;++J)(J===n||i.charCodeAt(J)===P)&&(fe+=fe.length===0?"..":"\\..");return a+=V,fe.length>0?`${fe}${w.slice(a,v)}`:(w.charCodeAt(a)===P&&++a,w.slice(a,v))},toNamespacedPath(i){if(typeof i!="string"||i.length===0)return i;const s=e.win32.resolve(i);if(s.length<=2)return i;if(s.charCodeAt(0)===P){if(s.charCodeAt(1)===P){const C=s.charCodeAt(2);if(C!==M&&C!==I)return`\\\\?\\UNC\\${s.slice(2)}`}}else if(d(s.charCodeAt(0))&&s.charCodeAt(1)===D&&s.charCodeAt(2)===P)return`\\\\?\\${s}`;return i},dirname(i){f(i,"path");const s=i.length;if(s===0)return".";let C=-1,w=0;const u=i.charCodeAt(0);if(s===1)return t(u)?i:".";if(t(u)){if(C=w=1,t(i.charCodeAt(1))){let a=2,v=a;for(;a<s&&!t(i.charCodeAt(a));)a++;if(a<s&&a!==v){for(v=a;a<s&&t(i.charCodeAt(a));)a++;if(a<s&&a!==v){for(v=a;a<s&&!t(i.charCodeAt(a));)a++;if(a===s)return i;a!==v&&(C=w=a+1)}}}}else d(u)&&i.charCodeAt(1)===D&&(C=s>2&&t(i.charCodeAt(2))?3:2,w=C);let n=-1,r=!0;for(let a=s-1;a>=w;--a)if(t(i.charCodeAt(a))){if(!r){n=a;break}}else r=!1;if(n===-1){if(C===-1)return".";n=C}return i.slice(0,n)},basename(i,s){s!==void 0&&f(s,"ext"),f(i,"path");let C=0,w=-1,u=!0,n;if(i.length>=2&&d(i.charCodeAt(0))&&i.charCodeAt(1)===D&&(C=2),s!==void 0&&s.length>0&&s.length<=i.length){if(s===i)return"";let r=s.length-1,a=-1;for(n=i.length-1;n>=C;--n){const v=i.charCodeAt(n);if(t(v)){if(!u){C=n+1;break}}else a===-1&&(u=!1,a=n+1),r>=0&&(v===s.charCodeAt(r)?--r===-1&&(w=n):(r=-1,w=a))}return C===w?w=a:w===-1&&(w=i.length),i.slice(C,w)}for(n=i.length-1;n>=C;--n)if(t(i.charCodeAt(n))){if(!u){C=n+1;break}}else w===-1&&(u=!1,w=n+1);return w===-1?"":i.slice(C,w)},extname(i){f(i,"path");let s=0,C=-1,w=0,u=-1,n=!0,r=0;i.length>=2&&i.charCodeAt(1)===D&&d(i.charCodeAt(0))&&(s=w=2);for(let a=i.length-1;a>=s;--a){const v=i.charCodeAt(a);if(t(v)){if(!n){w=a+1;break}continue}u===-1&&(n=!1,u=a+1),v===I?C===-1?C=a:r!==1&&(r=1):C!==-1&&(r=-1)}return C===-1||u===-1||r===0||r===1&&C===u-1&&C===w+1?"":i.slice(C,u)},format:T.bind(null,"\\"),parse(i){f(i,"path");const s={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return s;const C=i.length;let w=0,u=i.charCodeAt(0);if(C===1)return t(u)?(s.root=s.dir=i,s):(s.base=s.name=i,s);if(t(u)){if(w=1,t(i.charCodeAt(1))){let V=2,J=V;for(;V<C&&!t(i.charCodeAt(V));)V++;if(V<C&&V!==J){for(J=V;V<C&&t(i.charCodeAt(V));)V++;if(V<C&&V!==J){for(J=V;V<C&&!t(i.charCodeAt(V));)V++;V===C?w=V:V!==J&&(w=V+1)}}}}else if(d(u)&&i.charCodeAt(1)===D){if(C<=2)return s.root=s.dir=i,s;if(w=2,t(i.charCodeAt(2))){if(C===3)return s.root=s.dir=i,s;w=3}}w>0&&(s.root=i.slice(0,w));let n=-1,r=w,a=-1,v=!0,h=i.length-1,k=0;for(;h>=w;--h){if(u=i.charCodeAt(h),t(u)){if(!v){r=h+1;break}continue}a===-1&&(v=!1,a=h+1),u===I?n===-1?n=h:k!==1&&(k=1):n!==-1&&(k=-1)}return a!==-1&&(n===-1||k===0||k===1&&n===a-1&&n===r+1?s.base=s.name=i.slice(r,a):(s.name=i.slice(r,n),s.base=i.slice(r,a),s.ext=i.slice(n,a))),r>0&&r!==w?s.dir=i.slice(0,r-1):s.dir=s.root,s},sep:"\\",delimiter:";",win32:null,posix:null};const X=(()=>{if(m){const i=/\\/g;return()=>{const s=A.cwd().replace(i,"/");return s.slice(s.indexOf("/"))}}return()=>A.cwd()})();e.posix={resolve(...i){let s="",C=!1;for(let w=i.length-1;w>=-1&&!C;w--){const u=w>=0?i[w]:X();f(u,"path"),u.length!==0&&(s=`${u}/${s}`,C=u.charCodeAt(0)===R)}return s=L(s,!C,"/",o),C?`/${s}`:s.length>0?s:"."},normalize(i){if(f(i,"path"),i.length===0)return".";const s=i.charCodeAt(0)===R,C=i.charCodeAt(i.length-1)===R;return i=L(i,!s,"/",o),i.length===0?s?"/":C?"./":".":(C&&(i+="/"),s?`/${i}`:i)},isAbsolute(i){return f(i,"path"),i.length>0&&i.charCodeAt(0)===R},join(...i){if(i.length===0)return".";let s;for(let C=0;C<i.length;++C){const w=i[C];f(w,"path"),w.length>0&&(s===void 0?s=w:s+=`/${w}`)}return s===void 0?".":e.posix.normalize(s)},relative(i,s){if(f(i,"from"),f(s,"to"),i===s||(i=e.posix.resolve(i),s=e.posix.resolve(s),i===s))return"";const C=1,w=i.length,u=w-C,n=1,r=s.length-n,a=u<r?u:r;let v=-1,h=0;for(;h<a;h++){const V=i.charCodeAt(C+h);if(V!==s.charCodeAt(n+h))break;V===R&&(v=h)}if(h===a)if(r>a){if(s.charCodeAt(n+h)===R)return s.slice(n+h+1);if(h===0)return s.slice(n+h)}else u>a&&(i.charCodeAt(C+h)===R?v=h:h===0&&(v=0));let k="";for(h=C+v+1;h<=w;++h)(h===w||i.charCodeAt(h)===R)&&(k+=k.length===0?"..":"/..");return`${k}${s.slice(n+v)}`},toNamespacedPath(i){return i},dirname(i){if(f(i,"path"),i.length===0)return".";const s=i.charCodeAt(0)===R;let C=-1,w=!0;for(let u=i.length-1;u>=1;--u)if(i.charCodeAt(u)===R){if(!w){C=u;break}}else w=!1;return C===-1?s?"/":".":s&&C===1?"//":i.slice(0,C)},basename(i,s){s!==void 0&&f(s,"ext"),f(i,"path");let C=0,w=-1,u=!0,n;if(s!==void 0&&s.length>0&&s.length<=i.length){if(s===i)return"";let r=s.length-1,a=-1;for(n=i.length-1;n>=0;--n){const v=i.charCodeAt(n);if(v===R){if(!u){C=n+1;break}}else a===-1&&(u=!1,a=n+1),r>=0&&(v===s.charCodeAt(r)?--r===-1&&(w=n):(r=-1,w=a))}return C===w?w=a:w===-1&&(w=i.length),i.slice(C,w)}for(n=i.length-1;n>=0;--n)if(i.charCodeAt(n)===R){if(!u){C=n+1;break}}else w===-1&&(u=!1,w=n+1);return w===-1?"":i.slice(C,w)},extname(i){f(i,"path");let s=-1,C=0,w=-1,u=!0,n=0;for(let r=i.length-1;r>=0;--r){const a=i.charCodeAt(r);if(a===R){if(!u){C=r+1;break}continue}w===-1&&(u=!1,w=r+1),a===I?s===-1?s=r:n!==1&&(n=1):s!==-1&&(n=-1)}return s===-1||w===-1||n===0||n===1&&s===w-1&&s===C+1?"":i.slice(s,w)},format:T.bind(null,"/"),parse(i){f(i,"path");const s={root:"",dir:"",base:"",ext:"",name:""};if(i.length===0)return s;const C=i.charCodeAt(0)===R;let w;C?(s.root="/",w=1):w=0;let u=-1,n=0,r=-1,a=!0,v=i.length-1,h=0;for(;v>=w;--v){const k=i.charCodeAt(v);if(k===R){if(!a){n=v+1;break}continue}r===-1&&(a=!1,r=v+1),k===I?u===-1?u=v:h!==1&&(h=1):u!==-1&&(h=-1)}if(r!==-1){const k=n===0&&C?1:n;u===-1||h===0||h===1&&u===r-1&&u===n+1?s.base=s.name=i.slice(k,r):(s.name=i.slice(k,u),s.base=i.slice(k,r),s.ext=i.slice(u,r))}return n>0?s.dir=i.slice(0,n-1):C&&(s.dir="/"),s},sep:"/",delimiter:":",win32:null,posix:null},e.posix.win32=e.win32.win32=e.win32,e.posix.posix=e.win32.posix=e.posix,e.normalize=m?e.win32.normalize:e.posix.normalize,e.isAbsolute=m?e.win32.isAbsolute:e.posix.isAbsolute,e.join=m?e.win32.join:e.posix.join,e.resolve=m?e.win32.resolve:e.posix.resolve,e.relative=m?e.win32.relative:e.posix.relative,e.dirname=m?e.win32.dirname:e.posix.dirname,e.basename=m?e.win32.basename:e.posix.basename,e.extname=m?e.win32.extname:e.posix.extname,e.format=m?e.win32.format:e.posix.format,e.parse=m?e.win32.parse:e.posix.parse,e.toNamespacedPath=m?e.win32.toNamespacedPath:e.posix.toNamespacedPath,e.sep=m?e.win32.sep:e.posix.sep,e.delimiter=m?e.win32.delimiter:e.posix.delimiter}),define(me[4],ye([0,1,3,2,5,23]),function(ce,e,A,S,p,U){"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 z(n){return n===47||n===92}e.isPathSeparator=z;function I(n){return n.replace(/[\\/]/g,A.posix.sep)}e.toSlashes=I;function R(n){return n.indexOf("/")===-1&&(n=I(n)),/^[a-zA-Z]:(\/|$)/.test(n)&&(n="/"+n),n}e.toPosixPath=R;function P(n,r=A.posix.sep){if(!n)return"";const a=n.length,v=n.charCodeAt(0);if(z(v)){if(z(n.charCodeAt(1))&&!z(n.charCodeAt(2))){let k=3;const V=k;for(;k<a&&!z(n.charCodeAt(k));k++);if(V!==k&&!z(n.charCodeAt(k+1))){for(k+=1;k<a;k++)if(z(n.charCodeAt(k)))return n.slice(0,k+1).replace(/[\\/]/g,r)}}return r}else if(o(v)&&n.charCodeAt(1)===58)return z(n.charCodeAt(2))?n.slice(0,2)+r:n.slice(0,2);let h=n.indexOf("://");if(h!==-1){for(h+=3;h<a;h++)if(z(n.charCodeAt(h)))return n.slice(0,h+1)}return""}e.getRoot=P;function D(n){if(!S.isWindows||!n||n.length<5)return!1;let r=n.charCodeAt(0);if(r!==92||(r=n.charCodeAt(1),r!==92))return!1;let a=2;const v=a;for(;a<n.length&&(r=n.charCodeAt(a),r!==92);a++);return!(v===a||(r=n.charCodeAt(a+1),isNaN(r)||r===92))}e.isUNC=D;const M=/[\\/:\*\?"<>\|]/g,W=/[\\/]/g,g=/^(con|prn|aux|clock\$|nul|lpt[0-9]|com[0-9])(\.(.*?))?$/i;function f(n,r=S.isWindows){const a=r?M:W;return!(!n||n.length===0||/^\s+$/.test(n)||(a.lastIndex=0,a.test(n))||r&&g.test(n)||n==="."||n===".."||r&&n[n.length-1]==="."||r&&n.length!==n.trim().length||n.length>255)}e.isValidBasename=f;function m(n,r,a){const v=n===r;return!a||v?v:!n||!r?!1:(0,p.equalsIgnoreCase)(n,r)}e.isEqual=m;function t(n,r,a,v=A.sep){if(n===r)return!0;if(!n||!r||r.length>n.length)return!1;if(a){if(!(0,p.startsWithIgnoreCase)(n,r))return!1;if(r.length===n.length)return!0;let k=r.length;return r.charAt(r.length-1)===v&&k--,n.charAt(k)===v}return r.charAt(r.length-1)!==v&&(r+=v),n.indexOf(r)===0}e.isEqualOrParent=t;function o(n){return n>=65&&n<=90||n>=97&&n<=122}e.isWindowsDriveLetter=o;function d(n,r){return S.isWindows&&n.endsWith(":")&&(n+=A.sep),(0,A.isAbsolute)(n)||(n=(0,A.join)(r,n)),n=(0,A.normalize)(n),S.isWindows?(n=(0,p.rtrim)(n,A.sep),n.endsWith(":")&&(n+=A.sep)):(n=(0,p.rtrim)(n,A.sep),n||(n=A.sep)),n}e.sanitizeFilePath=d;function L(n){const r=(0,A.normalize)(n);return S.isWindows?n.length>3?!1:T(r)&&(n.length===2||r.charCodeAt(2)===92):r===A.posix.sep}e.isRootOrDriveLetter=L;function T(n,r=S.isWindows){return r?o(n.charCodeAt(0))&&n.charCodeAt(1)===58:!1}e.hasDriveLetter=T;function X(n,r=S.isWindows){return T(n,r)?n[0]:void 0}e.getDriveLetter=X;function i(n,r,a){return r.length>n.length?-1:n===r?0:(a&&(n=n.toLowerCase(),r=r.toLowerCase()),n.indexOf(r))}e.indexOfPath=i;function s(n){const r=n.split(":");let a,v,h;for(const k of r){const V=Number(k);(0,U.isNumber)(V)?v===void 0?v=V:h===void 0&&(h=V):a=a?[a,k].join(":"):k}if(!a)throw new Error("Format for `--goto` should be: `FILE:LINE(:COLUMN)`");return{path:a,line:v!==void 0?v:void 0,column:h!==void 0?h:v!==void 0?1:void 0}}e.parseLineAndColumnAware=s;const C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",w="BDEFGHIJKMOQRSTUVWXYZbdefghijkmoqrstuvwxyz0123456789";function u(n,r,a=8){let v="";for(let k=0;k<a;k++){let V;k===0&&S.isWindows&&!r&&(a===3||a===4)?V=w:V=C,v+=V.charAt(Math.floor(Math.random()*V.length))}let h;return r?h=`${r}-${v}`:h=v,n?(0,A.join)(n,h):h}e.randomPath=u}),define(me[6],ye([0,1,3,2]),function(ce,e,A,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.uriToFsPath=e.isUriComponents=e.URI=void 0;const p=/^\w[\w\d+.-]*$/,U=/^\//,z=/^\/\//;function I(w,u){if(!w.scheme&&u)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${w.authority}", path: "${w.path}", query: "${w.query}", fragment: "${w.fragment}"}`);if(w.scheme&&!p.test(w.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(w.path){if(w.authority){if(!U.test(w.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(z.test(w.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function R(w,u){return!w&&!u?"file":w}function P(w,u){switch(w){case"https":case"http":case"file":u?u[0]!==M&&(u=M+u):u=M;break}return u}const D="",M="/",W=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class g{static isUri(u){return u instanceof g?!0:u?typeof u.authority=="string"&&typeof u.fragment=="string"&&typeof u.path=="string"&&typeof u.query=="string"&&typeof u.scheme=="string"&&typeof u.fsPath=="string"&&typeof u.with=="function"&&typeof u.toString=="function":!1}constructor(u,n,r,a,v,h=!1){typeof u=="object"?(this.scheme=u.scheme||D,this.authority=u.authority||D,this.path=u.path||D,this.query=u.query||D,this.fragment=u.fragment||D):(this.scheme=R(u,h),this.authority=n||D,this.path=P(this.scheme,r||D),this.query=a||D,this.fragment=v||D,I(this,h))}get fsPath(){return T(this,!1)}with(u){if(!u)return this;let{scheme:n,authority:r,path:a,query:v,fragment:h}=u;return n===void 0?n=this.scheme:n===null&&(n=D),r===void 0?r=this.authority:r===null&&(r=D),a===void 0?a=this.path:a===null&&(a=D),v===void 0?v=this.query:v===null&&(v=D),h===void 0?h=this.fragment:h===null&&(h=D),n===this.scheme&&r===this.authority&&a===this.path&&v===this.query&&h===this.fragment?this:new t(n,r,a,v,h)}static parse(u,n=!1){const r=W.exec(u);return r?new t(r[2]||D,C(r[4]||D),C(r[5]||D),C(r[7]||D),C(r[9]||D),n):new t(D,D,D,D,D)}static file(u){let n=D;if(S.isWindows&&(u=u.replace(/\\/g,M)),u[0]===M&&u[1]===M){const r=u.indexOf(M,2);r===-1?(n=u.substring(2),u=M):(n=u.substring(2,r),u=u.substring(r)||M)}return new t("file",n,u,D,D)}static from(u,n){return new t(u.scheme,u.authority,u.path,u.query,u.fragment,n)}static joinPath(u,...n){if(!u.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return S.isWindows&&u.scheme==="file"?r=g.file(A.win32.join(T(u,!0),...n)).path:r=A.posix.join(u.path,...n),u.with({path:r})}toString(u=!1){return X(this,u)}toJSON(){return this}static revive(u){if(u){if(u instanceof g)return u;{const n=new t(u);return n._formatted=u.external??null,n._fsPath=u._sep===m?u.fsPath??null:null,n}}else return}}e.URI=g;function f(w){return!w||typeof w!="object"?!1:typeof w.scheme=="string"&&(typeof w.authority=="string"||typeof w.authority>"u")&&(typeof w.path=="string"||typeof w.path>"u")&&(typeof w.query=="string"||typeof w.query>"u")&&(typeof w.fragment=="string"||typeof w.fragment>"u")}e.isUriComponents=f;const m=S.isWindows?1:void 0;class t extends g{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=T(this,!1)),this._fsPath}toString(u=!1){return u?X(this,!0):(this._formatted||(this._formatted=X(this,!1)),this._formatted)}toJSON(){const u={$mid:1};return this._fsPath&&(u.fsPath=this._fsPath,u._sep=m),this._formatted&&(u.external=this._formatted),this.path&&(u.path=this.path),this.scheme&&(u.scheme=this.scheme),this.authority&&(u.authority=this.authority),this.query&&(u.query=this.query),this.fragment&&(u.fragment=this.fragment),u}}const o={[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 d(w,u,n){let r,a=-1;for(let v=0;v<w.length;v++){const h=w.charCodeAt(v);if(h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===45||h===46||h===95||h===126||u&&h===47||n&&h===91||n&&h===93||n&&h===58)a!==-1&&(r+=encodeURIComponent(w.substring(a,v)),a=-1),r!==void 0&&(r+=w.charAt(v));else{r===void 0&&(r=w.substr(0,v));const k=o[h];k!==void 0?(a!==-1&&(r+=encodeURIComponent(w.substring(a,v)),a=-1),r+=k):a===-1&&(a=v)}}return a!==-1&&(r+=encodeURIComponent(w.substring(a))),r!==void 0?r:w}function L(w){let u;for(let n=0;n<w.length;n++){const r=w.charCodeAt(n);r===35||r===63?(u===void 0&&(u=w.substr(0,n)),u+=o[r]):u!==void 0&&(u+=w[n])}return u!==void 0?u:w}function T(w,u){let n;return w.authority&&w.path.length>1&&w.scheme==="file"?n=`//${w.authority}${w.path}`:w.path.charCodeAt(0)===47&&(w.path.charCodeAt(1)>=65&&w.path.charCodeAt(1)<=90||w.path.charCodeAt(1)>=97&&w.path.charCodeAt(1)<=122)&&w.path.charCodeAt(2)===58?u?n=w.path.substr(1):n=w.path[1].toLowerCase()+w.path.substr(2):n=w.path,S.isWindows&&(n=n.replace(/\//g,"\\")),n}e.uriToFsPath=T;function X(w,u){const n=u?L:d;let r="",{scheme:a,authority:v,path:h,query:k,fragment:V}=w;if(a&&(r+=a,r+=":"),(v||a==="file")&&(r+=M,r+=M),v){let J=v.indexOf("@");if(J!==-1){const fe=v.substr(0,J);v=v.substr(J+1),J=fe.lastIndexOf(":"),J===-1?r+=n(fe,!1,!1):(r+=n(fe.substr(0,J),!1,!1),r+=":",r+=n(fe.substr(J+1),!1,!0)),r+="@"}v=v.toLowerCase(),J=v.lastIndexOf(":"),J===-1?r+=n(v,!1,!0):(r+=n(v.substr(0,J),!1,!0),r+=v.substr(J))}if(h){if(h.length>=3&&h.charCodeAt(0)===47&&h.charCodeAt(2)===58){const J=h.charCodeAt(1);J>=65&&J<=90&&(h=`/${String.fromCharCode(J+32)}:${h.substr(3)}`)}else if(h.length>=2&&h.charCodeAt(1)===58){const J=h.charCodeAt(0);J>=65&&J<=90&&(h=`${String.fromCharCode(J+32)}:${h.substr(2)}`)}r+=n(h,!0,!1)}return k&&(r+="?",r+=n(k,!1,!1)),V&&(r+="#",r+=u?V:d(V,!1,!1)),r}function i(w){try{return decodeURIComponent(w)}catch{return w.length>3?w.substr(0,3)+i(w.substr(3)):w}}const s=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function C(w){return w.match(s)?w.replace(s,u=>i(u)):w}}),define(me[17],ye([0,1,7,2,6]),function(ce,e,A,S,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.COI=e.FileAccess=e.nodeModulesAsarUnpackedPath=e.nodeModulesAsarPath=e.nodeModulesPath=e.builtinExtensionsPath=e.RemoteAuthorities=e.connectionTokenQueryName=e.connectionTokenCookieName=e.Schemas=void 0;var U;(function(P){P.inMemory="inmemory",P.vscode="vscode",P.internal="private",P.walkThrough="walkThrough",P.walkThroughSnippet="walkThroughSnippet",P.http="http",P.https="https",P.file="file",P.mailto="mailto",P.untitled="untitled",P.data="data",P.attachment="attachment",P.command="command",P.vscodeRemote="vscode-remote",P.vscodeRemoteResource="vscode-remote-resource",P.vscodeManagedRemoteResource="vscode-managed-remote-resource",P.vscodeUserData="vscode-userdata",P.vscodeCustomEditor="vscode-custom-editor",P.vscodeNotebookCell="vscode-notebook-cell",P.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",P.vscodeNotebookCellOutput="vscode-notebook-cell-output",P.vscodeInteractiveInput="vscode-interactive-input",P.vscodeSettings="vscode-settings",P.vscodeWorkspaceTrust="vscode-workspace-trust",P.vscodeTerminal="vscode-terminal",P.vscodeChatSesssion="vscode-chat-editor",P.webviewPanel="webview-panel",P.vscodeWebview="vscode-webview",P.extension="extension",P.vscodeFileResource="vscode-file",P.tmp="tmp",P.vsls="vsls",P.vscodeSourceControl="vscode-scm"})(U||(e.Schemas=U={})),e.connectionTokenCookieName="vscode-tkn",e.connectionTokenQueryName="tkn";class z{constructor(){this._defaultWebPort=80,this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._remoteResourcesPath=`/${U.vscodeRemoteResource}`}setPreferredWebSchema(D){this._preferredWebSchema=D}setDelegate(D){this._delegate=D}setServerRootPath(D){this._remoteResourcesPath=`${D}/${U.vscodeRemoteResource}`}set(D,M,W){this._hosts[D]=M,this._ports[D]=W}setConnectionToken(D,M){this._connectionTokens[D]=M}getPreferredWebSchema(){return this._preferredWebSchema}rewrite(D){if(this._delegate)try{return this._delegate(D)}catch(t){return A.onUnexpectedError(t),D}const M=D.authority;let W=this._hosts[M];W&&W.indexOf(":")!==-1&&W.indexOf("[")===-1&&(W=`[${W}]`);const g=this._ports[M],f=this._connectionTokens[M];let m=`path=${encodeURIComponent(D.path)}`;return typeof f=="string"&&(m+=`&${e.connectionTokenQueryName}=${encodeURIComponent(f)}`),p.URI.from({scheme:S.isWeb?this._preferredWebSchema:U.vscodeRemoteResource,authority:S.isWeb&&g===this._defaultWebPort?`${W}`:`${W}:${g}`,path:this._remoteResourcesPath,query:m})}}e.RemoteAuthorities=new z,e.builtinExtensionsPath="vs/../../extensions",e.nodeModulesPath="vs/../../node_modules",e.nodeModulesAsarPath="vs/../../node_modules.asar",e.nodeModulesAsarUnpackedPath="vs/../../node_modules.asar.unpacked";class I{static{this.FALLBACK_AUTHORITY="vscode-app"}asBrowserUri(D){const M=this.toUri(D,ce);return this.uriToBrowserUri(M)}uriToBrowserUri(D){return D.scheme===U.vscodeRemote?e.RemoteAuthorities.rewrite(D):D.scheme===U.file&&(S.isNative||S.isWebWorker&&S.globals.origin===`${U.vscodeFileResource}://${I.FALLBACK_AUTHORITY}`)?D.with({scheme:U.vscodeFileResource,authority:D.authority||I.FALLBACK_AUTHORITY,query:null,fragment:null}):D}asFileUri(D){const M=this.toUri(D,ce);return this.uriToFileUri(M)}uriToFileUri(D){return D.scheme===U.vscodeFileResource?D.with({scheme:U.file,authority:D.authority!==I.FALLBACK_AUTHORITY?D.authority:null,query:null,fragment:null}):D}toUri(D,M){return p.URI.isUri(D)?D:p.URI.parse(M.toUrl(D))}}e.FileAccess=new I;var R;(function(P){const D=new Map([["1",{"Cross-Origin-Opener-Policy":"same-origin"}],["2",{"Cross-Origin-Embedder-Policy":"require-corp"}],["3",{"Cross-Origin-Opener-Policy":"same-origin","Cross-Origin-Embedder-Policy":"require-corp"}]]);P.CoopAndCoep=Object.freeze(D.get("3"));const M="vscode-coi";function W(f){let m;typeof f=="string"?m=new URL(f).searchParams:f instanceof URL?m=f.searchParams:p.URI.isUri(f)&&(m=new URL(f.toString(!0)).searchParams);const t=m?.get(M);if(t)return D.get(t)}P.getHeadersFromQuery=W;function g(f,m,t){if(!globalThis.crossOriginIsolated)return;const o=m&&t?"3":t?"2":"1";f instanceof URLSearchParams?f.set(M,o):f[M]=o}P.addSearchParam=g})(R||(e.COI=R={}))}),define(me[24],ye([0,1,4,17,3,2,5,6]),function(ce,e,A,S,p,U,z,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toLocalResource=e.DataUri=e.distinctParents=e.addTrailingPathSeparator=e.removeTrailingPathSeparator=e.hasTrailingPathSeparator=e.isEqualAuthority=e.isAbsolutePath=e.resolvePath=e.relativePath=e.normalizePath=e.joinPath=e.dirname=e.extname=e.basename=e.basenameOrAuthority=e.getComparisonKey=e.isEqualOrParent=e.isEqual=e.extUriIgnorePathCase=e.extUriBiasedIgnorePathCase=e.extUri=e.ExtUri=e.originalFSPath=void 0;function R(g){return(0,I.uriToFsPath)(g,!0)}e.originalFSPath=R;class P{constructor(f){this._ignorePathCasing=f}compare(f,m,t=!1){return f===m?0:(0,z.compare)(this.getComparisonKey(f,t),this.getComparisonKey(m,t))}isEqual(f,m,t=!1){return f===m?!0:!f||!m?!1:this.getComparisonKey(f,t)===this.getComparisonKey(m,t)}getComparisonKey(f,m=!1){return f.with({path:this._ignorePathCasing(f)?f.path.toLowerCase():void 0,fragment:m?null:void 0}).toString()}ignorePathCasing(f){return this._ignorePathCasing(f)}isEqualOrParent(f,m,t=!1){if(f.scheme===m.scheme){if(f.scheme===S.Schemas.file)return A.isEqualOrParent(R(f),R(m),this._ignorePathCasing(f))&&f.query===m.query&&(t||f.fragment===m.fragment);if((0,e.isEqualAuthority)(f.authority,m.authority))return A.isEqualOrParent(f.path,m.path,this._ignorePathCasing(f),"/")&&f.query===m.query&&(t||f.fragment===m.fragment)}return!1}joinPath(f,...m){return I.URI.joinPath(f,...m)}basenameOrAuthority(f){return(0,e.basename)(f)||f.authority}basename(f){return p.posix.basename(f.path)}extname(f){return p.posix.extname(f.path)}dirname(f){if(f.path.length===0)return f;let m;return f.scheme===S.Schemas.file?m=I.URI.file(p.dirname(R(f))).path:(m=p.posix.dirname(f.path),f.authority&&m.length&&m.charCodeAt(0)!==47&&(console.error(`dirname("${f.toString})) resulted in a relative path`),m="/")),f.with({path:m})}normalizePath(f){if(!f.path.length)return f;let m;return f.scheme===S.Schemas.file?m=I.URI.file(p.normalize(R(f))).path:m=p.posix.normalize(f.path),f.with({path:m})}relativePath(f,m){if(f.scheme!==m.scheme||!(0,e.isEqualAuthority)(f.authority,m.authority))return;if(f.scheme===S.Schemas.file){const d=p.relative(R(f),R(m));return U.isWindows?A.toSlashes(d):d}let t=f.path||"/";const o=m.path||"/";if(this._ignorePathCasing(f)){let d=0;for(const L=Math.min(t.length,o.length);d<L&&!(t.charCodeAt(d)!==o.charCodeAt(d)&&t.charAt(d).toLowerCase()!==o.charAt(d).toLowerCase());d++);t=o.substr(0,d)+t.substr(d)}return p.posix.relative(t,o)}resolvePath(f,m){if(f.scheme===S.Schemas.file){const t=I.URI.file(p.resolve(R(f),m));return f.with({authority:t.authority,path:t.path})}return m=A.toPosixPath(m),f.with({path:p.posix.resolve(f.path,m)})}isAbsolutePath(f){return!!f.path&&f.path[0]==="/"}isEqualAuthority(f,m){return f===m||f!==void 0&&m!==void 0&&(0,z.equalsIgnoreCase)(f,m)}hasTrailingPathSeparator(f,m=p.sep){if(f.scheme===S.Schemas.file){const t=R(f);return t.length>A.getRoot(t).length&&t[t.length-1]===m}else{const t=f.path;return t.length>1&&t.charCodeAt(t.length-1)===47&&!/^[a-zA-Z]:(\/$|\\$)/.test(f.fsPath)}}removeTrailingPathSeparator(f,m=p.sep){return(0,e.hasTrailingPathSeparator)(f,m)?f.with({path:f.path.substr(0,f.path.length-1)}):f}addTrailingPathSeparator(f,m=p.sep){let t=!1;if(f.scheme===S.Schemas.file){const o=R(f);t=o!==void 0&&o.length===A.getRoot(o).length&&o[o.length-1]===m}else{m="/";const o=f.path;t=o.length===1&&o.charCodeAt(o.length-1)===47}return!t&&!(0,e.hasTrailingPathSeparator)(f,m)?f.with({path:f.path+"/"}):f}}e.ExtUri=P,e.extUri=new P(()=>!1),e.extUriBiasedIgnorePathCase=new P(g=>g.scheme===S.Schemas.file?!U.isLinux:!0),e.extUriIgnorePathCase=new P(g=>!0),e.isEqual=e.extUri.isEqual.bind(e.extUri),e.isEqualOrParent=e.extUri.isEqualOrParent.bind(e.extUri),e.getComparisonKey=e.extUri.getComparisonKey.bind(e.extUri),e.basenameOrAuthority=e.extUri.basenameOrAuthority.bind(e.extUri),e.basename=e.extUri.basename.bind(e.extUri),e.extname=e.extUri.extname.bind(e.extUri),e.dirname=e.extUri.dirname.bind(e.extUri),e.joinPath=e.extUri.joinPath.bind(e.extUri),e.normalizePath=e.extUri.normalizePath.bind(e.extUri),e.relativePath=e.extUri.relativePath.bind(e.extUri),e.resolvePath=e.extUri.resolvePath.bind(e.extUri),e.isAbsolutePath=e.extUri.isAbsolutePath.bind(e.extUri),e.isEqualAuthority=e.extUri.isEqualAuthority.bind(e.extUri),e.hasTrailingPathSeparator=e.extUri.hasTrailingPathSeparator.bind(e.extUri),e.removeTrailingPathSeparator=e.extUri.removeTrailingPathSeparator.bind(e.extUri),e.addTrailingPathSeparator=e.extUri.addTrailingPathSeparator.bind(e.extUri);function D(g,f){const m=[];for(let t=0;t<g.length;t++){const o=f(g[t]);g.some((d,L)=>L===t?!1:(0,e.isEqualOrParent)(o,f(d)))||m.push(g[t])}return m}e.distinctParents=D;var M;(function(g){g.META_DATA_LABEL="label",g.META_DATA_DESCRIPTION="description",g.META_DATA_SIZE="size",g.META_DATA_MIME="mime";function f(m){const t=new Map;m.path.substring(m.path.indexOf(";")+1,m.path.lastIndexOf(";")).split(";").forEach(L=>{const[T,X]=L.split(":");T&&X&&t.set(T,X)});const d=m.path.substring(0,m.path.indexOf(";"));return d&&t.set(g.META_DATA_MIME,d),t}g.parseMetaData=f})(M||(e.DataUri=M={}));function W(g,f,m){if(f){let t=g.path;return t&&t[0]!==p.posix.sep&&(t=p.posix.sep+t),g.with({scheme:m,authority:f,path:t})}return g.with({scheme:m})}e.toLocalResource=W}),define(me[10],ye([0,1,9,7,13,8,24,2,33]),function(ce,e,A,S,p,U,z,I,R){"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.LimitedQueue=e.Queue=e.Limiter=e.firstParallel=e.first=e.sequence=e.disposableTimeout=e.timeout=e.AutoOpenBarrier=e.Barrier=e.ThrottledDelayer=e.Delayer=e.SequencerByKey=e.Sequencer=e.Throttler=e.asPromise=e.raceTimeout=e.raceCancellablePromises=e.raceCancellationError=e.raceCancellation=e.createCancelablePromise=e.isThenable=void 0;function P(G){return!!G&&typeof G.then=="function"}e.isThenable=P;function D(G){const E=new A.CancellationTokenSource,q=G(E.token),Y=new Promise((ne,de)=>{const x=E.token.onCancellationRequested(()=>{x.dispose(),E.dispose(),de(new S.CancellationError)});Promise.resolve(q).then(l=>{x.dispose(),E.dispose(),ne(l)},l=>{x.dispose(),E.dispose(),de(l)})});return new class{cancel(){E.cancel()}then(ne,de){return Y.then(ne,de)}catch(ne){return this.then(void 0,ne)}finally(ne){return Y.finally(ne)}}}e.createCancelablePromise=D;function M(G,E,q){return new Promise((Y,ne)=>{const de=E.onCancellationRequested(()=>{de.dispose(),Y(q)});G.then(Y,ne).finally(()=>de.dispose())})}e.raceCancellation=M;function W(G,E){return new Promise((q,Y)=>{const ne=E.onCancellationRequested(()=>{ne.dispose(),Y(new S.CancellationError)});G.then(q,Y).finally(()=>ne.dispose())})}e.raceCancellationError=W;async function g(G){let E=-1;const q=G.map((Y,ne)=>Y.then(de=>(E=ne,de)));try{return await Promise.race(q)}finally{G.forEach((Y,ne)=>{ne!==E&&Y.cancel()})}}e.raceCancellablePromises=g;function f(G,E,q){let Y;const ne=setTimeout(()=>{Y?.(void 0),q?.()},E);return Promise.race([G.finally(()=>clearTimeout(ne)),new Promise(de=>Y=de)])}e.raceTimeout=f;function m(G){return new Promise((E,q)=>{const Y=G();P(Y)?Y.then(E,q):E(Y)})}e.asPromise=m;class t{constructor(){this.isDisposed=!1,this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(E){if(this.isDisposed)throw new Error("Throttler is disposed");if(this.activePromise){if(this.queuedPromiseFactory=E,!this.queuedPromise){const q=()=>{if(this.queuedPromise=null,this.isDisposed)return;const Y=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,Y};this.queuedPromise=new Promise(Y=>{this.activePromise.then(q,q).then(Y)})}return new Promise((q,Y)=>{this.queuedPromise.then(q,Y)})}return this.activePromise=E(),new Promise((q,Y)=>{this.activePromise.then(ne=>{this.activePromise=null,q(ne)},ne=>{this.activePromise=null,Y(ne)})})}dispose(){this.isDisposed=!0}}e.Throttler=t;class o{constructor(){this.current=Promise.resolve(null)}queue(E){return this.current=this.current.then(()=>E(),()=>E())}}e.Sequencer=o;class d{constructor(){this.promiseMap=new Map}queue(E,q){const ne=(this.promiseMap.get(E)??Promise.resolve()).catch(()=>{}).then(q).finally(()=>{this.promiseMap.get(E)===ne&&this.promiseMap.delete(E)});return this.promiseMap.set(E,ne),ne}}e.SequencerByKey=d;const L=(G,E)=>{let q=!0;const Y=setTimeout(()=>{q=!1,E()},G);return{isTriggered:()=>q,dispose:()=>{clearTimeout(Y),q=!1}}},T=G=>{let E=!0;return queueMicrotask(()=>{E&&(E=!1,G())}),{isTriggered:()=>E,dispose:()=>{E=!1}}};class X{constructor(E){this.defaultDelay=E,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(E,q=this.defaultDelay){this.task=E,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((ne,de)=>{this.doResolve=ne,this.doReject=de}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const ne=this.task;return this.task=null,ne()}}));const Y=()=>{this.deferred=null,this.doResolve?.(null)};return this.deferred=q===R.MicrotaskDelay?T(Y):L(q,Y),this.completionPromise}isTriggered(){return!!this.deferred?.isTriggered()}cancel(){this.cancelTimeout(),this.completionPromise&&(this.doReject?.(new S.CancellationError),this.completionPromise=null)}cancelTimeout(){this.deferred?.dispose(),this.deferred=null}dispose(){this.cancel()}}e.Delayer=X;class i{constructor(E){this.delayer=new X(E),this.throttler=new t}trigger(E,q){return this.delayer.trigger(()=>this.throttler.queue(E),q)}isTriggered(){return this.delayer.isTriggered()}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose(),this.throttler.dispose()}}e.ThrottledDelayer=i;class s{constructor(){this._isOpen=!1,this._promise=new Promise((E,q)=>{this._completePromise=E})}isOpen(){return this._isOpen}open(){this._isOpen=!0,this._completePromise(!0)}wait(){return this._promise}}e.Barrier=s;class C extends s{constructor(E){super(),this._timeout=setTimeout(()=>this.open(),E)}open(){clearTimeout(this._timeout),super.open()}}e.AutoOpenBarrier=C;function w(G,E){return E?new Promise((q,Y)=>{const ne=setTimeout(()=>{de.dispose(),q()},G),de=E.onCancellationRequested(()=>{clearTimeout(ne),de.dispose(),Y(new S.CancellationError)})}):D(q=>w(G,q))}e.timeout=w;function u(G,E=0){const q=setTimeout(G,E);return(0,U.toDisposable)(()=>clearTimeout(q))}e.disposableTimeout=u;function n(G){const E=[];let q=0;const Y=G.length;function ne(){return q<Y?G[q++]():null}function de(x){x!=null&&E.push(x);const l=ne();return l?l.then(de):Promise.resolve(E)}return Promise.resolve(null).then(de)}e.sequence=n;function r(G,E=Y=>!!Y,q=null){let Y=0;const ne=G.length,de=()=>{if(Y>=ne)return Promise.resolve(q);const x=G[Y++];return Promise.resolve(x()).then(b=>E(b)?Promise.resolve(b):de())};return de()}e.first=r;function a(G,E=Y=>!!Y,q=null){if(G.length===0)return Promise.resolve(q);let Y=G.length;const ne=()=>{Y=-1;for(const de of G)de.cancel?.()};return new Promise((de,x)=>{for(const l of G)l.then(b=>{--Y>=0&&E(b)?(ne(),de(b)):Y===0&&de(q)}).catch(b=>{--Y>=0&&(ne(),x(b))})})}e.firstParallel=a;class v{constructor(E){this._size=0,this.maxDegreeOfParalellism=E,this.outstandingPromises=[],this.runningPromises=0,this._onDrained=new p.Emitter}get onDrained(){return this._onDrained.event}get size(){return this._size}queue(E){return this._size++,new Promise((q,Y)=>{this.outstandingPromises.push({factory:E,c:q,e:Y}),this.consume()})}consume(){for(;this.outstandingPromises.length&&this.runningPromises<this.maxDegreeOfParalellism;){const E=this.outstandingPromises.shift();this.runningPromises++;const q=E.factory();q.then(E.c,E.e),q.then(()=>this.consumed(),()=>this.consumed())}}consumed(){this._size--,this.runningPromises--,this.outstandingPromises.length>0?this.consume():this._onDrained.fire()}dispose(){this._onDrained.dispose()}}e.Limiter=v;class h extends v{constructor(){super(1)}}e.Queue=h;class k{constructor(){this.sequentializer=new j,this.tasks=0}queue(E){return this.sequentializer.isRunning()?this.sequentializer.queue(()=>this.sequentializer.run(this.tasks++,E())):this.sequentializer.run(this.tasks++,E())}}e.LimitedQueue=k;class V{constructor(){this.queues=new Map,this.drainers=new Set}async whenDrained(){if(this.isDrained())return;const E=new y;return this.drainers.add(E),E.p}isDrained(){for(const[,E]of this.queues)if(E.size>0)return!1;return!0}queueFor(E,q=z.extUri){const Y=q.getComparisonKey(E);let ne=this.queues.get(Y);return ne||(ne=new h,p.Event.once(ne.onDrained)(()=>{ne?.dispose(),this.queues.delete(Y),this.onDidQueueDrain()}),this.queues.set(Y,ne)),ne}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=V;class J{constructor(E,q){this._token=-1,typeof E=="function"&&typeof q=="number"&&this.setIfNotSet(E,q)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(E,q){this.cancel(),this._token=setTimeout(()=>{this._token=-1,E()},q)}setIfNotSet(E,q){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,E()},q))}}e.TimeoutTimer=J;class fe{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(E,q){this.cancel(),this._token=setInterval(()=>{E()},q)}}e.IntervalTimer=fe;class he{constructor(E,q){this.timeoutToken=-1,this.runner=E,this.timeout=q,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}flush(){this.isScheduled()&&(this.cancel(),this.doRun())}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){this.runner?.()}}e.RunOnceScheduler=he;class ve{constructor(E,q){q%1e3!==0&&console.warn(`ProcessTimeRunOnceScheduler resolution is 1s, ${q}ms is not a multiple of 1000ms.`),this.runner=E,this.timeout=q,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=ve;class oe extends he{constructor(E,q){super(E,q),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=oe;class H extends U.Disposable{constructor(E,q){super(),this.options=E,this.handler=q,this.pendingWork=[],this.throttler=this._register(new U.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}for(const q of E)this.pendingWork.push(q);return this.throttler.value||this.doWork(),!0}doWork(){this.handler(this.pendingWork.splice(0,this.options.maxWorkChunkSize)),this.pendingWork.length>0&&(this.throttler.value=new he(()=>{this.throttler.clear(),this.doWork()},this.options.throttleDelay),this.throttler.value.schedule())}dispose(){super.dispose(),this.disposed=!0}}e.ThrottledWorker=H,function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?e.runWhenIdle=G=>{(0,I.setTimeout0)(()=>{if(E)return;const q=Date.now()+15;G(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,q-Date.now())}}))});let E=!1;return{dispose(){E||(E=!0)}}}:e.runWhenIdle=(G,E)=>{const q=requestIdleCallback(G,typeof E=="number"?{timeout:E}:void 0);let Y=!1;return{dispose(){Y||(Y=!0,cancelIdleCallback(q))}}}}();class te{constructor(E){this._didRun=!1,this._executor=()=>{try{this._value=E()}catch(q){this._error=q}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=te;async function re(G,E,q){let Y;for(let ne=0;ne<q;ne++)try{return await G()}catch(de){Y=de,await w(E)}throw Y}e.retry=re;class j{isRunning(E){return typeof E=="number"?this._running?.taskId===E:!!this._running}get running(){return this._running?.promise}cancelRunning(){this._running?.cancel()}run(E,q,Y){return this._running={taskId:E,cancel:()=>Y?.(),promise:q},q.then(()=>this.doneRunning(E),()=>this.doneRunning(E)),q}doneRunning(E){this._running&&E===this._running.taskId&&(this._running=void 0,this.runQueued())}runQueued(){if(this._queued){const E=this._queued;this._queued=void 0,E.run().then(E.promiseResolve,E.promiseReject)}}queue(E){if(this._queued)this._queued.run=E;else{let q,Y;const ne=new Promise((de,x)=>{q=de,Y=x});this._queued={run:E,promise:ne,promiseResolve:q,promiseReject:Y}}return this._queued.promise}hasQueued(){return!!this._queued}async join(){return this._queued?.promise??this._running?.promise}}e.TaskSequentializer=j;class B{constructor(E,q=()=>Date.now()){this.interval=E,this.nowFn=q,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=B;var $;(function(G){G[G.Resolved=0]="Resolved",G[G.Rejected=1]="Rejected"})($||($={}));class y{get isRejected(){return this.outcome?.outcome===1}get isResolved(){return this.outcome?.outcome===0}get isSettled(){return!!this.outcome}get value(){return this.outcome?.outcome===0?this.outcome?.value:void 0}constructor(){this.p=new Promise((E,q)=>{this.completeCallback=E,this.errorCallback=q})}complete(E){return new Promise(q=>{this.completeCallback(E),this.outcome={outcome:0,value:E},q()})}error(E){return new Promise(q=>{this.errorCallback(E),this.outcome={outcome:1,value:E},q()})}cancel(){return this.error(new S.CancellationError)}}e.DeferredPromise=y;var N;(function(G){async function E(Y){let ne;const de=await Promise.all(Y.map(x=>x.then(l=>l,l=>{ne||(ne=l)})));if(typeof ne<"u")throw ne;return de}G.settled=E;function q(Y){return new Promise(async(ne,de)=>{try{await Y(ne,de)}catch(x){de(x)}})}G.withAsyncBody=q})(N||(e.Promises=N={}));var ee;(function(G){G[G.Initial=0]="Initial",G[G.DoneOK=1]="DoneOK",G[G.DoneError=2]="DoneError"})(ee||(ee={}));class se{static fromArray(E){return new se(q=>{q.emitMany(E)})}static fromPromise(E){return new se(async q=>{q.emitMany(await E)})}static fromPromises(E){return new se(async q=>{await Promise.all(E.map(async Y=>q.emitOne(await Y)))})}static merge(E){return new se(async q=>{await Promise.all(E.map(async Y=>{for await(const ne of Y)q.emitOne(ne)}))})}static{this.EMPTY=se.fromArray([])}constructor(E){this._state=0,this._results=[],this._error=null,this._onStateChanged=new p.Emitter,queueMicrotask(async()=>{const q={emitOne:Y=>this.emitOne(Y),emitMany:Y=>this.emitMany(Y),reject:Y=>this.reject(Y)};try{await Promise.resolve(E(q)),this.resolve()}catch(Y){this.reject(Y)}finally{q.emitOne=void 0,q.emitMany=void 0,q.reject=void 0}})}[Symbol.asyncIterator](){let E=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(E<this._results.length)return{done:!1,value:this._results[E++]};if(this._state===1)return{done:!0,value:void 0};await p.Event.toPromise(this._onStateChanged.event)}while(!0)}}}static map(E,q){return new se(async Y=>{for await(const ne of E)Y.emitOne(q(ne))})}map(E){return se.map(this,E)}static filter(E,q){return new se(async Y=>{for await(const ne of E)q(ne)&&Y.emitOne(ne)})}filter(E){return se.filter(this,E)}static coalesce(E){return se.filter(E,q=>!!q)}coalesce(){return se.coalesce(this)}static async toPromise(E){const q=[];for await(const Y of E)q.push(Y);return q}toPromise(){return se.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=se;class Z extends se{constructor(E,q){super(q),this._source=E}cancel(){this._source.cancel()}}e.CancelableAsyncIterableObject=Z;function le(G){const E=new A.CancellationTokenSource,q=G(E.token);return new Z(E,async Y=>{const ne=E.token.onCancellationRequested(()=>{ne.dispose(),E.dispose(),Y.reject(new S.CancellationError)});try{for await(const de of q){if(E.token.isCancellationRequested)return;Y.emitOne(de)}ne.dispose(),E.dispose()}catch(de){ne.dispose(),E.dispose(),Y.reject(de)}})}e.createCancelableAsyncIterable=le}),define(me[37],ye([0,1,19,10,4,21,3,2,5]),function(ce,e,A,S,p,U,z,I,R){"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 P(){return Object.create(null)}e.getEmptyExpression=P,e.GLOBSTAR="**",e.GLOB_SPLIT="/";const D="[/\\\\]",M="[^/\\\\]",W=/\//g;function g(j,B){switch(j){case 0:return"";case 1:return`${M}*?`;default:return`(?:${D}|${M}+${D}${B?`|${D}${M}+`:""})*?`}}function f(j,B){if(!j)return[];const $=[];let y=!1,N=!1,ee="";for(const se of j){switch(se){case B:if(!y&&!N){$.push(ee),ee="";continue}break;case"{":y=!0;break;case"}":y=!1;break;case"[":N=!0;break;case"]":N=!1;break}ee+=se}return ee&&$.push(ee),$}e.splitGlobAware=f;function m(j){if(!j)return"";let B="";const $=f(j,e.GLOB_SPLIT);if($.every(y=>y===e.GLOBSTAR))B=".*";else{let y=!1;$.forEach((N,ee)=>{if(N===e.GLOBSTAR){if(y)return;B+=g(2,ee===$.length-1)}else{let se=!1,Z="",le=!1,G="";for(const E of N){if(E!=="}"&&se){Z+=E;continue}if(le&&(E!=="]"||!G)){let q;E==="-"?q=E:(E==="^"||E==="!")&&!G?q="^":E===e.GLOB_SPLIT?q="":q=(0,R.escapeRegExpCharacters)(E),G+=q;continue}switch(E){case"{":se=!0;continue;case"[":le=!0;continue;case"}":{const Y=`(?:${f(Z,",").map(ne=>m(ne)).join("|")})`;B+=Y,se=!1,Z="";break}case"]":{B+="["+G+"]",le=!1,G="";break}case"?":B+=M;continue;case"*":B+=g(1);continue;default:B+=(0,R.escapeRegExpCharacters)(E)}}ee<$.length-1&&($[ee+1]!==e.GLOBSTAR||ee+2<$.length)&&(B+=D)}y=N===e.GLOBSTAR})}return B}const t=/^\*\*\/\*\.[\w\.-]+$/,o=/^\*\*\/([\w\.-]+)\/?$/,d=/^{\*\*\/\*?[\w\.-]+\/?(,\*\*\/\*?[\w\.-]+\/?)*}$/,L=/^{\*\*\/\*?[\w\.-]+(\/(\*\*)?)?(,\*\*\/\*?[\w\.-]+(\/(\*\*)?)?)*}$/,T=/^\*\*((\/[\w\.-]+)+)\/?$/,X=/^([\w\.-]+(\/[\w\.-]+)*)\/?$/,i=new U.LRUCache(1e4),s=function(){return!1},C=function(){return null};function w(j,B){if(!j)return C;let $;typeof j!="string"?$=j.pattern:$=j,$=$.trim();const y=`${$}_${!!B.trimForExclusions}`;let N=i.get(y);if(N)return u(N,j);let ee;return t.test($)?N=r($.substr(4),$):(ee=o.exec(n($,B)))?N=a(ee[1],$):(B.trimForExclusions?L:d).test($)?N=v($,B):(ee=T.exec(n($,B)))?N=h(ee[1].substr(1),$,!0):(ee=X.exec(n($,B)))?N=h(ee[1],$,!1):N=k($),i.set(y,N),u(N,j)}function u(j,B){if(typeof B=="string")return j;const $=function(y,N){return(0,p.isEqualOrParent)(y,B.base,!I.isLinux)?j((0,R.ltrim)(y.substr(B.base.length),z.sep),N):null};return $.allBasenames=j.allBasenames,$.allPaths=j.allPaths,$.basenames=j.basenames,$.patterns=j.patterns,$}function n(j,B){return B.trimForExclusions&&j.endsWith("/**")?j.substr(0,j.length-2):j}function r(j,B){return function($,y){return typeof $=="string"&&$.endsWith(j)?B:null}}function a(j,B){const $=`/${j}`,y=`\\${j}`,N=function(se,Z){return typeof se!="string"?null:Z?Z===j?B:null:se===j||se.endsWith($)||se.endsWith(y)?B:null},ee=[j];return N.basenames=ee,N.patterns=[B],N.allBasenames=ee,N}function v(j,B){const $=te(j.slice(1,-1).split(",").map(Z=>w(Z,B)).filter(Z=>Z!==C),j),y=$.length;if(!y)return C;if(y===1)return $[0];const N=function(Z,le){for(let G=0,E=$.length;G<E;G++)if($[G](Z,le))return j;return null},ee=$.find(Z=>!!Z.allBasenames);ee&&(N.allBasenames=ee.allBasenames);const se=$.reduce((Z,le)=>le.allPaths?Z.concat(le.allPaths):Z,[]);return se.length&&(N.allPaths=se),N}function h(j,B,$){const y=z.sep===z.posix.sep,N=y?j:j.replace(W,z.sep),ee=z.sep+N,se=z.posix.sep+j;let Z;return $?Z=function(le,G){return typeof le=="string"&&(le===N||le.endsWith(ee)||!y&&(le===j||le.endsWith(se)))?B:null}:Z=function(le,G){return typeof le=="string"&&(le===N||!y&&le===j)?B:null},Z.allPaths=[($?"*/":"./")+j],Z}function k(j){try{const B=new RegExp(`^${m(j)}$`);return function($){return B.lastIndex=0,typeof $=="string"&&B.test($)?j:null}}catch{return C}}function V(j,B,$){return!j||typeof B!="string"?!1:J(j)(B,void 0,$)}e.match=V;function J(j,B={}){if(!j)return s;if(typeof j=="string"||fe(j)){const $=w(j,B);if($===C)return s;const y=function(N,ee){return!!$(N,ee)};return $.allBasenames&&(y.allBasenames=$.allBasenames),$.allPaths&&(y.allPaths=$.allPaths),y}return oe(j,B)}e.parse=J;function fe(j){const B=j;return B?typeof B.base=="string"&&typeof B.pattern=="string":!1}e.isRelativePattern=fe;function he(j){return j.allBasenames||[]}e.getBasenameTerms=he;function ve(j){return j.allPaths||[]}e.getPathTerms=ve;function oe(j,B){const $=te(Object.getOwnPropertyNames(j).map(Z=>H(Z,j[Z],B)).filter(Z=>Z!==C)),y=$.length;if(!y)return C;if(!$.some(Z=>!!Z.requiresSiblings)){if(y===1)return $[0];const Z=function(E,q){let Y;for(let ne=0,de=$.length;ne<de;ne++){const x=$[ne](E,q);if(typeof x=="string")return x;(0,S.isThenable)(x)&&(Y||(Y=[]),Y.push(x))}return Y?(async()=>{for(const ne of Y){const de=await ne;if(typeof de=="string")return de}return null})():null},le=$.find(E=>!!E.allBasenames);le&&(Z.allBasenames=le.allBasenames);const G=$.reduce((E,q)=>q.allPaths?E.concat(q.allPaths):E,[]);return G.length&&(Z.allPaths=G),Z}const N=function(Z,le,G){let E,q;for(let Y=0,ne=$.length;Y<ne;Y++){const de=$[Y];de.requiresSiblings&&G&&(le||(le=(0,z.basename)(Z)),E||(E=le.substr(0,le.length-(0,z.extname)(Z).length)));const x=de(Z,le,E,G);if(typeof x=="string")return x;(0,S.isThenable)(x)&&(q||(q=[]),q.push(x))}return q?(async()=>{for(const Y of q){const ne=await Y;if(typeof ne=="string")return ne}return null})():null},ee=$.find(Z=>!!Z.allBasenames);ee&&(N.allBasenames=ee.allBasenames);const se=$.reduce((Z,le)=>le.allPaths?Z.concat(le.allPaths):Z,[]);return se.length&&(N.allPaths=se),N}function H(j,B,$){if(B===!1)return C;const y=w(j,$);if(y===C)return C;if(typeof B=="boolean")return y;if(B){const N=B.when;if(typeof N=="string"){const ee=(se,Z,le,G)=>{if(!G||!y(se,Z))return null;const E=N.replace("$(basename)",()=>le),q=G(E);return(0,S.isThenable)(q)?q.then(Y=>Y?j:null):q?j:null};return ee.requiresSiblings=!0,ee}}return y}function te(j,B){const $=j.filter(Z=>!!Z.basenames);if($.length<2)return j;const y=$.reduce((Z,le)=>{const G=le.basenames;return G?Z.concat(G):Z},[]);let N;if(B){N=[];for(let Z=0,le=y.length;Z<le;Z++)N.push(B)}else N=$.reduce((Z,le)=>{const G=le.patterns;return G?Z.concat(G):Z},[]);const ee=function(Z,le){if(typeof Z!="string")return null;if(!le){let E;for(E=Z.length;E>0;E--){const q=Z.charCodeAt(E-1);if(q===47||q===92)break}le=Z.substr(E)}const G=y.indexOf(le);return G!==-1?N[G]:null};ee.basenames=y,ee.patterns=N,ee.allBasenames=y;const se=j.filter(Z=>!Z.basenames);return se.push(ee),se}function re(j,B){return(0,A.equals)(j,B,($,y)=>typeof $=="string"&&typeof y=="string"?$===y:typeof $!="string"&&typeof y!="string"?$.base===y.base&&$.pattern===y.pattern:!1)}e.patternsEquals=re}),define(me[11],ye([0,1,12,18,53,10,4,22,3,2,24,6]),function(ce,e,A,S,p,U,z,I,R,P,D,M){"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 W;(function(H){H[H.UNLINK=0]="UNLINK",H[H.MOVE=1]="MOVE"})(W||(e.RimRafMode=W={}));async function g(H,te=W.UNLINK,re){if((0,z.isRootOrDriveLetter)(H))throw new Error("rimraf - will refuse to recursively delete root");return te===W.UNLINK?m(H):f(H,re)}async function f(H,te=(0,z.randomPath)((0,S.tmpdir)())){try{try{await A.promises.rename(H,te)}catch(re){return re.code==="ENOENT"?void 0:m(H)}m(te).catch(re=>{})}catch(re){if(re.code!=="ENOENT")throw re}}async function m(H){return(0,p.promisify)(A.rm)(H,{recursive:!0,force:!0,maxRetries:3})}function t(H){if((0,z.isRootOrDriveLetter)(H))throw new Error("rimraf - will refuse to recursively delete root");A.rmSync(H,{recursive:!0,force:!0,maxRetries:3})}e.rimrafSync=t;async function o(H,te){return T(await(te?d(H):(0,p.promisify)(A.readdir)(H)))}async function d(H){try{return await(0,p.promisify)(A.readdir)(H,{withFileTypes:!0})}catch(j){console.warn("[node.js fs] readdir with filetypes failed with error: ",j)}const te=[],re=await o(H);for(const j of re){let B=!1,$=!1,y=!1;try{const N=await e.Promises.lstat((0,R.join)(H,j));B=N.isFile(),$=N.isDirectory(),y=N.isSymbolicLink()}catch(N){console.warn("[node.js fs] unexpected error from lstat after readdir: ",N)}te.push({name:j,isFile:()=>B,isDirectory:()=>$,isSymbolicLink:()=>y})}return te}function L(H){return T(A.readdirSync(H))}e.readdirSync=L;function T(H){return H.map(te=>typeof te=="string"?P.isMacintosh?(0,I.normalizeNFC)(te):te:(te.name=P.isMacintosh?(0,I.normalizeNFC)(te.name):te.name,te))}async function X(H){const te=await o(H),re=[];for(const j of te)await s.existsDirectory((0,R.join)(H,j))&&re.push(j);return re}function i(H,te=1e3){return new Promise(re=>{let j=!1;const B=setInterval(()=>{j||(j=!0,A.access(H,$=>{j=!1,$&&(clearInterval(B),re(void 0))}))},te)})}e.whenDeleted=i;var s;(function(H){async function te(B){let $;try{if($=await e.Promises.lstat(B),!$.isSymbolicLink())return{stat:$}}catch{}try{return{stat:await e.Promises.stat(B),symbolicLink:$?.isSymbolicLink()?{dangling:!1}:void 0}}catch(y){if(y.code==="ENOENT"&&$)return{stat:$,symbolicLink:{dangling:!0}};if(P.isWindows&&y.code==="EACCES")try{return{stat:await e.Promises.stat(await e.Promises.readlink(B)),symbolicLink:{dangling:!1}}}catch(N){if(N.code==="ENOENT"&&$)return{stat:$,symbolicLink:{dangling:!0}};throw N}throw y}}H.stat=te;async function re(B){try{const{stat:$,symbolicLink:y}=await H.stat(B);return $.isFile()&&y?.dangling!==!0}catch{}return!1}H.existsFile=re;async function j(B){try{const{stat:$,symbolicLink:y}=await H.stat(B);return $.isDirectory()&&y?.dangling!==!0}catch{}return!1}H.existsDirectory=j})(s||(e.SymlinkSupport=s={}));const C=new U.ResourceQueue;function w(H,te,re){return C.queueFor(M.URI.file(H),D.extUriBiasedIgnorePathCase).queue(()=>{const j=v(re);return new Promise((B,$)=>r(H,te,j,y=>y?$(y):B()))})}let u=!0;function n(H){u=H}e.configureFlushOnWrite=n;function r(H,te,re,j){if(!u)return A.writeFile(H,te,{mode:re.mode,flag:re.flag},j);A.open(H,re.flag,re.mode,(B,$)=>{if(B)return j(B);A.writeFile($,te,y=>{if(y)return A.close($,()=>j(y));A.fdatasync($,N=>(N&&(console.warn("[node.js fs] fdatasync is now disabled for this session because it failed: ",N),n(!1)),A.close($,ee=>j(ee))))})})}function a(H,te,re){const j=v(re);if(!u)return A.writeFileSync(H,te,{mode:j.mode,flag:j.flag});const B=A.openSync(H,j.flag,j.mode);try{A.writeFileSync(B,te);try{A.fdatasyncSync(B)}catch($){console.warn("[node.js fs] fdatasyncSync is now disabled for this session because it failed: ",$),n(!1)}}finally{A.closeSync(B)}}e.writeFileSync=a;function v(H){return H?{mode:typeof H.mode=="number"?H.mode:438,flag:typeof H.flag=="string"?H.flag:"w"}:{mode:438,flag:"w"}}async function h(H,te,re=6e4){if(H!==te)try{P.isWindows&&typeof re=="number"?await k(H,te,Date.now(),re):await(0,p.promisify)(A.rename)(H,te)}catch(j){if(H.toLowerCase()!==te.toLowerCase()&&j.code==="EXDEV"||H.endsWith("."))await V(H,te,{preserveSymlinks:!1}),await g(H,W.MOVE);else throw j}}async function k(H,te,re,j,B=0){try{return await(0,p.promisify)(A.rename)(H,te)}catch($){if($.code!=="EACCES"&&$.code!=="EPERM"&&$.code!=="EBUSY")throw $;if(Date.now()-re>=j)throw console.error(`[node.js fs] rename failed after ${B} retries with error: ${$}`),$;if(B===0){let y=!1;try{const{stat:N}=await s.stat(te);N.isFile()||(y=!0)}catch{}if(y)throw $}return await(0,U.timeout)(Math.min(100,B*10)),k(H,te,re,j,B+1)}}async function V(H,te,re){return fe(H,te,{root:{source:H,target:te},options:re,handledSourcePaths:new Set})}const J=511;async function fe(H,te,re){if(re.handledSourcePaths.has(H))return;re.handledSourcePaths.add(H);const{stat:j,symbolicLink:B}=await s.stat(H);if(B){if(re.options.preserveSymlinks)try{return await oe(H,te,re)}catch($){console.warn("[node.js fs] copy of symlink failed: ",$)}if(B.dangling)return}return j.isDirectory()?he(H,te,j.mode&J,re):ve(H,te,j.mode&J)}async function he(H,te,re,j){await e.Promises.mkdir(te,{recursive:!0,mode:re});const B=await o(H);for(const $ of B)await fe((0,R.join)(H,$),(0,R.join)(te,$),j)}async function ve(H,te,re){await e.Promises.copyFile(H,te),await e.Promises.chmod(te,re)}async function oe(H,te,re){let j=await e.Promises.readlink(H);(0,z.isEqualOrParent)(j,re.root.source,!P.isLinux)&&(j=(0,R.join)(re.root.target,j.substr(re.root.source.length+1))),await e.Promises.symlink(j,te)}e.Promises=new class{get access(){return(0,p.promisify)(A.access)}get stat(){return(0,p.promisify)(A.stat)}get lstat(){return(0,p.promisify)(A.lstat)}get utimes(){return(0,p.promisify)(A.utimes)}get read(){return(H,te,re,j,B)=>new Promise(($,y)=>{A.read(H,te,re,j,B,(N,ee,se)=>N?y(N):$({bytesRead:ee,buffer:se}))})}get readFile(){return(0,p.promisify)(A.readFile)}get write(){return(H,te,re,j,B)=>new Promise(($,y)=>{A.write(H,te,re,j,B,(N,ee,se)=>N?y(N):$({bytesWritten:ee,buffer:se}))})}get appendFile(){return(0,p.promisify)(A.appendFile)}get fdatasync(){return(0,p.promisify)(A.fdatasync)}get truncate(){return(0,p.promisify)(A.truncate)}get copyFile(){return(0,p.promisify)(A.copyFile)}get open(){return(0,p.promisify)(A.open)}get close(){return(0,p.promisify)(A.close)}get symlink(){return(0,p.promisify)(A.symlink)}get readlink(){return(0,p.promisify)(A.readlink)}get chmod(){return(0,p.promisify)(A.chmod)}get mkdir(){return(0,p.promisify)(A.mkdir)}get unlink(){return(0,p.promisify)(A.unlink)}get rmdir(){return(0,p.promisify)(A.rmdir)}get realpath(){return(0,p.promisify)(A.realpath)}async exists(H){try{return await e.Promises.access(H),!0}catch{return!1}}get readdir(){return o}get readDirsInDir(){return X}get writeFile(){return w}get rm(){return g}get rename(){return h}get copy(){return V}}}),define(me[38],ye([0,1,12,3,2,5,11]),function(ce,e,A,S,p,U,z){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.realpathSync=e.realpath=e.realcase=e.realcaseSync=void 0;function I(W){if(p.isLinux)return W;const g=(0,S.dirname)(W);if(W===g)return W;const f=((0,S.basename)(W)||W).toLowerCase();try{const t=(0,z.readdirSync)(g).filter(o=>o.toLowerCase()===f);if(t.length===1){const o=I(g);if(o)return(0,S.join)(o,t[0])}else if(t.length>1){const o=t.indexOf(f);if(o>=0){const d=I(g);if(d)return(0,S.join)(d,t[o])}}}catch{}return null}e.realcaseSync=I;async function R(W){if(p.isLinux)return W;const g=(0,S.dirname)(W);if(W===g)return W;const f=((0,S.basename)(W)||W).toLowerCase();try{const t=(await z.Promises.readdir(g)).filter(o=>o.toLowerCase()===f);if(t.length===1){const o=await R(g);if(o)return(0,S.join)(o,t[0])}else if(t.length>1){const o=t.indexOf(f);if(o>=0){const d=await R(g);if(d)return(0,S.join)(d,t[o])}}}catch{}return null}e.realcase=R;async function P(W){try{return await z.Promises.realpath(W)}catch{const f=M(W);return await z.Promises.access(f,A.constants.R_OK),f}}e.realpath=P;function D(W){try{return A.realpathSync(W)}catch{const f=M(W);return A.accessSync(f,A.constants.R_OK),f}}e.realpathSync=D;function M(W){return(0,U.rtrim)((0,S.normalize)(W),S.sep)}}),define(me[39],ye([0,1,40,2]),function(ce,e,A,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.resolveTerminalEncoding=void 0;const p={437:"cp437",850:"cp850",852:"cp852",855:"cp855",857:"cp857",860:"cp860",861:"cp861",863:"cp863",865:"cp865",866:"cp866",869:"cp869",936:"cp936",1252:"cp1252"};function U(P){const D=P.replace(/[^a-zA-Z0-9]/g,"").toLowerCase();return z[D]||D}const z={ibm866:"cp866",big5:"cp950"},I="utf8";async function R(P){let D;const M=process.env.VSCODE_CLI_ENCODING;M?(P&&console.log(`Found VSCODE_CLI_ENCODING variable: ${M}`),D=Promise.resolve(M)):S.isWindows?D=new Promise(g=>{P&&console.log('Running "chcp" to detect terminal encoding...'),(0,A.exec)("chcp",(f,m,t)=>{if(m){P&&console.log(`Output from "chcp" command is: ${m}`);const o=Object.keys(p);for(const d of o)if(m.indexOf(d)>=0)return g(p[d])}return g(void 0)})}):D=new Promise(g=>{P&&console.log('Running "locale charmap" to detect terminal encoding...'),(0,A.exec)("locale charmap",(f,m,t)=>g(m))});const W=await D;return P&&console.log(`Detected raw terminal encoding: ${W}`),!W||W.toLowerCase()==="utf-8"||W.toLowerCase()===I?I:U(W)}e.resolveTerminalEncoding=R}),define(me[41],ye([14,15]),function(ce,e){return ce.create("vs/platform/environment/node/argv",e)}),define(me[42],ye([14,15]),function(ce,e){return ce.create("vs/platform/environment/node/argvHelper",e)}),define(me[43],ye([14,15]),function(ce,e){return ce.create("vs/platform/files/common/files",e)}),define(me[25],ye([0,1,54,2,41]),function(ce,e,A,S,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.buildVersionMessage=e.buildHelpMessage=e.formatOptions=e.parseArgs=e.OPTIONS=e.NATIVE_CLI_COMMANDS=void 0;const U={o:(0,p.localize)(0,null),e:(0,p.localize)(1,null),t:(0,p.localize)(2,null)};e.NATIVE_CLI_COMMANDS=["tunnel","serve-web"],e.OPTIONS={tunnel:{type:"subcommand",description:"Make the current machine accessible from vscode.dev or other machines through a secure tunnel",options:{"cli-data-dir":{type:"string",args:"dir",description:(0,p.localize)(3,null)},"disable-telemetry":{type:"boolean"},"telemetry-level":{type:"string"},user:{type:"subcommand",options:{login:{type:"subcommand",options:{provider:{type:"string"},"access-token":{type:"string"}}}}}}},"serve-web":{type:"subcommand",description:"Make the current machine accessible from vscode.dev or other machines through a secure tunnel",options:{"cli-data-dir":{type:"string",args:"dir",description:(0,p.localize)(4,null)},"disable-telemetry":{type:"boolean"},"telemetry-level":{type:"string"}}},diff:{type:"boolean",cat:"o",alias:"d",args:["file","file"],description:(0,p.localize)(5,null)},merge:{type:"boolean",cat:"o",alias:"m",args:["path1","path2","base","result"],description:(0,p.localize)(6,null)},add:{type:"boolean",cat:"o",alias:"a",args:"folder",description:(0,p.localize)(7,null)},goto:{type:"boolean",cat:"o",alias:"g",args:"file:line[:character]",description:(0,p.localize)(8,null)},"new-window":{type:"boolean",cat:"o",alias:"n",description:(0,p.localize)(9,null)},"reuse-window":{type:"boolean",cat:"o",alias:"r",description:(0,p.localize)(10,null)},wait:{type:"boolean",cat:"o",alias:"w",description:(0,p.localize)(11,null)},waitMarkerFilePath:{type:"string"},locale:{type:"string",cat:"o",args:"locale",description:(0,p.localize)(12,null)},"user-data-dir":{type:"string",cat:"o",args:"dir",description:(0,p.localize)(13,null)},profile:{type:"string",cat:"o",args:"profileName",description:(0,p.localize)(14,null)},help:{type:"boolean",cat:"o",alias:"h",description:(0,p.localize)(15,null)},"extensions-dir":{type:"string",deprecates:["extensionHomePath"],cat:"e",args:"dir",description:(0,p.localize)(16,null)},"extensions-download-dir":{type:"string"},"builtin-extensions-dir":{type:"string"},"list-extensions":{type:"boolean",cat:"e",description:(0,p.localize)(17,null)},"show-versions":{type:"boolean",cat:"e",description:(0,p.localize)(18,null)},category:{type:"string",allowEmptyValue:!0,cat:"e",description:(0,p.localize)(19,null),args:"category"},"install-extension":{type:"string[]",cat:"e",args:"ext-id | path",description:(0,p.localize)(20,null)},"pre-release":{type:"boolean",cat:"e",description:(0,p.localize)(21,null)},"uninstall-extension":{type:"string[]",cat:"e",args:"ext-id",description:(0,p.localize)(22,null)},"enable-proposed-api":{type:"string[]",allowEmptyValue:!0,cat:"e",args:"ext-id",description:(0,p.localize)(23,null)},version:{type:"boolean",cat:"t",alias:"v",description:(0,p.localize)(24,null)},verbose:{type:"boolean",cat:"t",global:!0,description:(0,p.localize)(25,null)},log:{type:"string[]",cat:"t",args:"level",global:!0,description:(0,p.localize)(26,null)},status:{type:"boolean",alias:"s",cat:"t",description:(0,p.localize)(27,null)},"prof-startup":{type:"boolean",cat:"t",description:(0,p.localize)(28,null)},"prof-append-timers":{type:"string"},"prof-duration-markers":{type:"string[]"},"prof-duration-markers-file":{type:"string"},"no-cached-data":{type:"boolean"},"prof-startup-prefix":{type:"string"},"prof-v8-extensions":{type:"boolean"},"disable-extensions":{type:"boolean",deprecates:["disableExtensions"],cat:"t",description:(0,p.localize)(29,null)},"disable-extension":{type:"string[]",cat:"t",args:"ext-id",description:(0,p.localize)(30,null)},sync:{type:"string",cat:"t",description:(0,p.localize)(31,null),args:["on | off"]},"inspect-extensions":{type:"string",allowEmptyValue:!0,deprecates:["debugPluginHost"],args:"port",cat:"t",description:(0,p.localize)(32,null)},"inspect-brk-extensions":{type:"string",allowEmptyValue:!0,deprecates:["debugBrkPluginHost"],args:"port",cat:"t",description:(0,p.localize)(33,null)},"disable-gpu":{type:"boolean",cat:"t",description:(0,p.localize)(34,null)},"disable-chromium-sandbox":{type:"boolean",cat:"t",description:(0,p.localize)(35,null)},telemetry:{type:"boolean",cat:"t",description:(0,p.localize)(36,null)},remote:{type:"string",allowEmptyValue:!0},"folder-uri":{type:"string[]",cat:"o",args:"uri"},"file-uri":{type:"string[]",cat:"o",args:"uri"},"locate-extension":{type:"string[]"},extensionDevelopmentPath:{type:"string[]"},extensionDevelopmentKind:{type:"string[]"},extensionTestsPath:{type:"string"},extensionEnvironment:{type:"string"},debugId:{type:"string"},debugRenderer:{type:"boolean"},"inspect-ptyhost":{type:"string",allowEmptyValue:!0},"inspect-brk-ptyhost":{type:"string",allowEmptyValue:!0},"inspect-search":{type:"string",deprecates:["debugSearch"],allowEmptyValue:!0},"inspect-brk-search":{type:"string",deprecates:["debugBrkSearch"],allowEmptyValue:!0},"inspect-sharedprocess":{type:"string",allowEmptyValue:!0},"inspect-brk-sharedprocess":{type:"string",allowEmptyValue:!0},"export-default-configuration":{type:"string"},"install-source":{type:"string"},"enable-smoke-test-driver":{type:"boolean"},logExtensionHostCommunication:{type:"boolean"},"skip-release-notes":{type:"boolean"},"skip-welcome":{type:"boolean"},"disable-telemetry":{type:"boolean"},"disable-updates":{type:"boolean"},"disable-keytar":{type:"boolean"},"password-store":{type:"string"},"disable-workspace-trust":{type:"boolean"},"disable-crash-reporter":{type:"boolean"},"crash-reporter-directory":{type:"string"},"crash-reporter-id":{type:"string"},"skip-add-to-recently-opened":{type:"boolean"},"unity-launch":{type:"boolean"},"open-url":{type:"boolean"},"file-write":{type:"boolean"},"file-chmod":{type:"boolean"},"install-builtin-extension":{type:"string[]"},force:{type:"boolean"},"do-not-sync":{type:"boolean"},trace:{type:"boolean"},"trace-category-filter":{type:"string"},"trace-options":{type:"string"},"force-user-env":{type:"boolean"},"force-disable-user-env":{type:"boolean"},"open-devtools":{type:"boolean"},"disable-gpu-sandbox":{type:"boolean"},logsPath:{type:"string"},"__enable-file-policy":{type:"boolean"},editSessionId:{type:"string"},continueOn:{type:"string"},"locate-shell-integration-path":{type:"string",args:["bash","pwsh","zsh","fish"]},"enable-coi":{type:"boolean"},aad:{type:"boolean",cat:"o",description:(0,p.localize)(37,null)},applicationName:{type:"string",alias:"A",cat:"o",allowEmptyValue:!0,description:(0,p.localize)(38,null)},authenticationType:{type:"string",alias:"T",cat:"o",allowEmptyValue:!0,deprecates:["aad","integrated"],description:(0,p.localize)(39,null)},command:{type:"string",alias:"c",cat:"o",args:"command-name",allowEmptyValue:!0,description:(0,p.localize)(40,null)},connectionProperties:{type:"string",alias:"Z",cat:"o",allowEmptyValue:!0,description:(0,p.localize)(41,null)},database:{type:"string",alias:"D",cat:"o",args:"database",allowEmptyValue:!0,description:(0,p.localize)(42,null)},integrated:{type:"boolean",alias:"E",cat:"o",description:(0,p.localize)(43,null)},provider:{type:"string",alias:"P",cat:"o",allowEmptyValue:!0,description:(0,p.localize)(44,null)},server:{type:"string",alias:"S",cat:"o",args:"server",allowEmptyValue:!0,description:(0,p.localize)(45,null)},showDashboard:{type:"boolean",cat:"o",description:(0,p.localize)(46,null)},user:{type:"string",alias:"U",cat:"o",args:"user-name",allowEmptyValue:!0,description:(0,p.localize)(47,null)},"no-proxy-server":{type:"boolean"},"no-sandbox":{type:"boolean",alias:"sandbox"},"proxy-server":{type:"string"},"proxy-bypass-list":{type:"string"},"proxy-pac-url":{type:"string"},"js-flags":{type:"string"},inspect:{type:"string",allowEmptyValue:!0},"inspect-brk":{type:"string",allowEmptyValue:!0},nolazy:{type:"boolean"},"force-device-scale-factor":{type:"string"},"force-renderer-accessibility":{type:"boolean"},"ignore-certificate-errors":{type:"boolean"},"allow-insecure-localhost":{type:"boolean"},"log-net-log":{type:"string"},vmodule:{type:"string"},_urls:{type:"string[]"},"disable-dev-shm-usage":{type:"boolean"},"profile-temp":{type:"boolean"},_:{type:"string[]"}};const z={onUnknownOption:()=>{},onMultipleValues:()=>{},onEmptyValue:()=>{},onDeprecatedOption:()=>{}};function I(m,t,o=z){const d=m.find(n=>n.length>0&&n[0]!=="-"),L={},T=["_"],X=[],i={};let s;for(const n in t){const r=t[n];r.type==="subcommand"?n===d&&(s=r):(r.alias&&(L[n]=r.alias),r.type==="string"||r.type==="string[]"?(T.push(n),r.deprecates&&T.push(...r.deprecates)):r.type==="boolean"&&(X.push(n),r.deprecates&&X.push(...r.deprecates)),r.global&&(i[n]=r))}if(s&&d){const n=i;for(const h in s.options)n[h]=s.options[h];const r=m.filter(h=>h!==d),a=o.getSubcommandReporter?o.getSubcommandReporter(d):void 0,v=I(r,n,a);return{[d]:v,_:[]}}const C=A(m,{string:T,boolean:X,alias:L}),w={},u=C;w._=C._.map(n=>String(n)).filter(n=>n.length>0),delete u._;for(const n in t){const r=t[n];if(r.type==="subcommand")continue;r.alias&&delete u[r.alias];let a=u[n];if(r.deprecates)for(const v of r.deprecates)u.hasOwnProperty(v)&&(a||(a=u[v],a&&o.onDeprecatedOption(v,r.deprecationMessage||(0,p.localize)(48,null,n))),delete u[v]);if(typeof a<"u"){if(r.type==="string[]"){if(Array.isArray(a)||(a=[a]),!r.allowEmptyValue){const v=a.filter(h=>h.length>0);v.length!==a.length&&(o.onEmptyValue(n),a=v.length>0?v:void 0)}}else r.type==="string"&&(Array.isArray(a)?(a=a.pop(),o.onMultipleValues(n,a)):!a&&!r.allowEmptyValue&&(o.onEmptyValue(n),a=void 0));w[n]=a,r.deprecationMessage&&o.onDeprecatedOption(n,r.deprecationMessage)}delete u[n]}for(const n in u)o.onUnknownOption(n);return w}e.parseArgs=I;function R(m,t){let o="";return t.args&&(Array.isArray(t.args)?o=` <${t.args.join("> <")}>`:o=` <${t.args}>`),t.alias?`-${t.alias} --${m}${o}`:`--${m}${o}`}function P(m,t){const o=[];for(const d in m){const L=m[d],T=R(d,L);o.push([T,L.description])}return D(o,t)}e.formatOptions=P;function D(m,t){const d=m.reduce((X,i)=>Math.max(X,i[0].length),12)+2+1;if(t-d<25)return m.reduce((X,i)=>X.concat([`  ${i[0]}`,`      ${i[1]}`]),[]);const L=t-d-1,T=[];for(const X of m){const i=X[0],s=W(X[1],L),C=M(d-i.length-2);T.push("  "+i+C+s[0]);for(let w=1;w<s.length;w++)T.push(M(d)+s[w])}return T}function M(m){return" ".repeat(m)}function W(m,t){const o=[];for(;m.length;){const d=m.length<t?m.length:m.lastIndexOf(" ",t),L=m.slice(0,d).trim();m=m.slice(d),o.push(L)}return o}function g(m,t,o,d,L){const T=process.stdout.isTTY&&process.stdout.columns||80,X=L?.noInputFiles!==!0?`[${(0,p.localize)(49,null)}...]`:"",i=[`${m} ${o}`];i.push(""),i.push(`${(0,p.localize)(50,null)}: ${t} [${(0,p.localize)(51,null)}]${X}`),i.push(""),L?.noPipe!==!0&&(S.isWindows?i.push((0,p.localize)(52,null,t)):i.push((0,p.localize)(53,null,t)),i.push(""));const s={},C=[];for(const w in d){const u=d[w];if(u.type==="subcommand")u.description&&C.push({command:w,description:u.description});else if(u.description&&u.cat){let n=s[u.cat];n||(s[u.cat]=n={}),n[w]=u}}for(const w in s){const u=w,n=s[u];n&&(i.push(U[u]),i.push(...P(n,T)),i.push(""))}return C.length&&(i.push((0,p.localize)(54,null)),i.push(...D(C.map(w=>[w.command,w.description]),T)),i.push("")),i.join(`
`)}e.buildHelpMessage=g;function f(m,t){return`${m||(0,p.localize)(55,null)}
${t||(0,p.localize)(56,null)}
${process.arch}`}e.buildVersionMessage=f}),define(me[44],ye([0,1,55,42,25]),function(ce,e,A,S,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isLaunchedFromCli=e.addArg=e.parseCLIProcessArgv=e.parseMainProcessArgv=void 0;function U(M,W){const g=(L,T)=>{console.warn((0,S.localize)(0,null,L,T))},f=L=>{console.warn((0,S.localize)(1,null,L))},m=(L,T)=>{console.warn((0,S.localize)(2,null,L,T))},t=L=>({onUnknownOption:T=>{p.NATIVE_CLI_COMMANDS.includes(L)||console.warn((0,S.localize)(3,null,T,L))},onMultipleValues:g,onEmptyValue:f,onDeprecatedOption:m,getSubcommandReporter:p.NATIVE_CLI_COMMANDS.includes(L)?t:void 0}),o={onUnknownOption:L=>{console.warn((0,S.localize)(4,null,L))},onMultipleValues:g,onEmptyValue:f,onDeprecatedOption:m,getSubcommandReporter:t},d=(0,p.parseArgs)(M,p.OPTIONS,W?o:void 0);return d.goto&&d._.forEach(L=>A(/^(\w:)?[^:]+(:\d*){0,2}:?$/.test(L),(0,S.localize)(5,null))),d}function z(M){const W=M.findIndex(g=>!/^-/.test(g));if(W>-1)return[...M.slice(0,W),...M.slice(W+1)]}function I(M){let[,...W]=M;process.env.VSCODE_DEV&&(W=z(W)||[]);const g=!D(process.env);return U(W,g)}e.parseMainProcessArgv=I;function R(M){let[,,...W]=M;return process.env.VSCODE_DEV&&(W=z(W)||[]),U(W,!0)}e.parseCLIProcessArgv=R;function P(M,...W){const g=M.indexOf("--");return g===-1?M.push(...W):M.splice(g,0,...W),M}e.addArg=P;function D(M){return M.VSCODE_CLI==="1"}e.isLaunchedFromCli=D}),define(me[45],ye([0,1,18,10,4,11,39]),function(ce,e,A,S,p,U,z){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.readFromStdin=e.getStdinFilePath=e.stdinDataListener=e.hasStdinWithoutTty=void 0;function I(){try{return!process.stdin.isTTY}catch{}return!1}e.hasStdinWithoutTty=I;function R(M){return new Promise(W=>{const g=()=>W(!0);setTimeout(()=>{process.stdin.removeListener("data",g),W(!1)},M),process.stdin.once("data",g)})}e.stdinDataListener=R;function P(){return(0,p.randomPath)((0,A.tmpdir)(),"code-stdin",3)}e.getStdinFilePath=P;async function D(M,W){let[g,f]=await Promise.all([(0,z.resolveTerminalEncoding)(W),new Promise((o,d)=>{ce(["@vscode/iconv-lite-umd"],o,d)}),U.Promises.appendFile(M,"")]);f.encodingExists(g)||(console.log(`Unsupported terminal encoding: ${g}, falling back to UTF-8.`),g="utf8");const m=new S.Queue,t=f.getDecoder(g);process.stdin.on("data",o=>{const d=t.write(o);m.queue(()=>U.Promises.appendFile(M,d))}),process.stdin.on("end",()=>{const o=t.end();typeof o=="string"&&m.queue(()=>U.Promises.appendFile(M,o))})}e.readFromStdin=D}),define(me[46],ye([0,1,12,18,4]),function(ce,e,A,S,p){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createWaitMarkerFileSync=void 0;function U(z){const I=(0,p.randomPath)((0,S.tmpdir)());try{return(0,A.writeFileSync)(I,""),z&&console.log(`Marker file for --wait created: ${I}`),I}catch(R){z&&console.error(`Failed to create marker file for --wait: ${R}`);return}}e.createWaitMarkerFileSync=U}),define(me[26],ye([0,1]),function(ce,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.refineServiceDecorator=e.createDecorator=e.IInstantiationService=e._util=void 0;var A;(function(z){z.serviceIds=new Map,z.DI_TARGET="$di$target",z.DI_DEPENDENCIES="$di$dependencies";function I(R){return R[z.DI_DEPENDENCIES]||[]}z.getServiceDependencies=I})(A||(e._util=A={})),e.IInstantiationService=p("instantiationService");function S(z,I,R){I[A.DI_TARGET]===I?I[A.DI_DEPENDENCIES].push({id:z,index:R}):(I[A.DI_DEPENDENCIES]=[{id:z,index:R}],I[A.DI_TARGET]=I)}function p(z){if(A.serviceIds.has(z))return A.serviceIds.get(z);const I=function(R,P,D){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");S(I,R,D)};return I.toString=()=>z,A.serviceIds.set(z,I),I}e.createDecorator=p;function U(z){return z}e.refineServiceDecorator=U}),define(me[47],ye([0,1,34,3,5,23,6,43,26,2,17]),function(ce,e,A,S,p,U,z,I,R,P,D){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLargeFileConfirmationLimit=e.ByteSize=e.whenProviderRegistered=e.etag=e.ETAG_DISABLED=e.FileKind=e.FILES_READONLY_FROM_PERMISSIONS_CONFIG=e.FILES_READONLY_EXCLUDE_CONFIG=e.FILES_READONLY_INCLUDE_CONFIG=e.FILES_EXCLUDE_CONFIG=e.FILES_ASSOCIATIONS_CONFIG=e.HotExitConfiguration=e.AutoSaveConfiguration=e.FileOperationResult=e.NotModifiedSinceFileOperationError=e.TooLargeFileOperationError=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.hasReadonlyCapability=e.hasFileAtomicDeleteCapability=e.hasFileAtomicWriteCapability=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,R.createDecorator)("fileService");function M(y){return y.create===!0}e.isFileOpenForWriteOptions=M;var W;(function(y){y[y.Unknown=0]="Unknown",y[y.File=1]="File",y[y.Directory=2]="Directory",y[y.SymbolicLink=64]="SymbolicLink"})(W||(e.FileType=W={}));var g;(function(y){y[y.Readonly=1]="Readonly",y[y.Locked=2]="Locked"})(g||(e.FilePermission=g={}));var f;(function(y){y[y.None=0]="None",y[y.FileReadWrite=2]="FileReadWrite",y[y.FileOpenReadWriteClose=4]="FileOpenReadWriteClose",y[y.FileReadStream=16]="FileReadStream",y[y.FileFolderCopy=8]="FileFolderCopy",y[y.PathCaseSensitive=1024]="PathCaseSensitive",y[y.Readonly=2048]="Readonly",y[y.Trash=4096]="Trash",y[y.FileWriteUnlock=8192]="FileWriteUnlock",y[y.FileAtomicRead=16384]="FileAtomicRead",y[y.FileAtomicWrite=32768]="FileAtomicWrite",y[y.FileAtomicDelete=65536]="FileAtomicDelete",y[y.FileClone=131072]="FileClone"})(f||(e.FileSystemProviderCapabilities=f={}));function m(y){return!!(y.capabilities&2)}e.hasReadWriteCapability=m;function t(y){return!!(y.capabilities&8)}e.hasFileFolderCopyCapability=t;function o(y){return!!(y.capabilities&131072)}e.hasFileCloneCapability=o;function d(y){return!!(y.capabilities&4)}e.hasOpenReadWriteCloseCapability=d;function L(y){return!!(y.capabilities&16)}e.hasFileReadStreamCapability=L;function T(y){return m(y)?!!(y.capabilities&16384):!1}e.hasFileAtomicReadCapability=T;function X(y){return m(y)?!!(y.capabilities&32768):!1}e.hasFileAtomicWriteCapability=X;function i(y){return!!(y.capabilities&65536)}e.hasFileAtomicDeleteCapability=i;function s(y){return!!(y.capabilities&2048)}e.hasReadonlyCapability=s;var C;(function(y){y.FileExists="EntryExists",y.FileNotFound="EntryNotFound",y.FileNotADirectory="EntryNotADirectory",y.FileIsADirectory="EntryIsADirectory",y.FileExceedsStorageQuota="EntryExceedsStorageQuota",y.FileTooLarge="EntryTooLarge",y.FileWriteLocked="EntryWriteLocked",y.NoPermissions="NoPermissions",y.Unavailable="Unavailable",y.Unknown="Unknown"})(C||(e.FileSystemProviderErrorCode=C={}));class w extends Error{static create(N,ee){const se=new w(N.toString(),ee);return r(se,ee),se}constructor(N,ee){super(N),this.code=ee}}e.FileSystemProviderError=w;function u(y,N){return w.create(y,N)}e.createFileSystemProviderError=u;function n(y){return y||u((0,I.localize)(0,null),C.Unknown)}e.ensureFileSystemProviderError=n;function r(y,N){return y.name=N?`${N} (FileSystemError)`:"FileSystemError",y}e.markAsFileSystemProviderError=r;function a(y){if(!y)return C.Unknown;if(y instanceof w)return y.code;const N=/^(.+) \(FileSystemError\)$/.exec(y.name);if(!N)return C.Unknown;switch(N[1]){case C.FileExists:return C.FileExists;case C.FileIsADirectory:return C.FileIsADirectory;case C.FileNotADirectory:return C.FileNotADirectory;case C.FileNotFound:return C.FileNotFound;case C.FileTooLarge:return C.FileTooLarge;case C.FileWriteLocked:return C.FileWriteLocked;case C.NoPermissions:return C.NoPermissions;case C.Unavailable:return C.Unavailable}return C.Unknown}e.toFileSystemProviderErrorCode=a;function v(y){if(y instanceof he)return y.fileOperationResult;switch(a(y)){case C.FileNotFound:return 1;case C.FileIsADirectory:return 0;case C.FileNotADirectory:return 9;case C.FileWriteLocked:return 5;case C.NoPermissions:return 6;case C.FileExists:return 4;case C.FileTooLarge:return 7;default:return 10}}e.toFileOperationResult=v;var h;(function(y){y[y.CREATE=0]="CREATE",y[y.DELETE=1]="DELETE",y[y.MOVE=2]="MOVE",y[y.COPY=3]="COPY",y[y.WRITE=4]="WRITE"})(h||(e.FileOperation=h={}));class k{constructor(N,ee,se){this.resource=N,this.operation=ee,this.target=se}isOperation(N){return this.operation===N}}e.FileOperationEvent=k;var V;(function(y){y[y.UPDATED=0]="UPDATED",y[y.ADDED=1]="ADDED",y[y.DELETED=2]="DELETED"})(V||(e.FileChangeType=V={}));class J{constructor(N,ee){this.added=void 0,this.updated=void 0,this.deleted=void 0,this.rawAdded=[],this.rawUpdated=[],this.rawDeleted=[];const se=new Map;for(const Z of N){const le=se.get(Z.type);switch(le?le.push([Z.resource,Z]):se.set(Z.type,[[Z.resource,Z]]),Z.type){case 1:this.rawAdded.push(Z.resource);break;case 0:this.rawUpdated.push(Z.resource);break;case 2:this.rawDeleted.push(Z.resource);break}}for(const[Z,le]of se)switch(Z){case 1:this.added=A.TernarySearchTree.forUris(()=>ee),this.added.fill(le);break;case 0:this.updated=A.TernarySearchTree.forUris(()=>ee),this.updated.fill(le);break;case 2:this.deleted=A.TernarySearchTree.forUris(()=>ee),this.deleted.fill(le);break}}contains(N,...ee){return this.doContains(N,{includeChildren:!1},...ee)}affects(N,...ee){return this.doContains(N,{includeChildren:!0},...ee)}doContains(N,ee,...se){if(!N)return!1;const Z=se.length>0;return!!((!Z||se.includes(1))&&(this.added?.get(N)||ee.includeChildren&&this.added?.findSuperstr(N))||(!Z||se.includes(0))&&(this.updated?.get(N)||ee.includeChildren&&this.updated?.findSuperstr(N))||(!Z||se.includes(2))&&(this.deleted?.findSubstr(N)||ee.includeChildren&&this.deleted?.findSuperstr(N)))}gotAdded(){return!!this.added}gotDeleted(){return!!this.deleted}gotUpdated(){return!!this.updated}}e.FileChangesEvent=J;function fe(y,N,ee){return!y||!N||y===N||N.length>y.length?!1:(N.charAt(N.length-1)!==S.sep&&(N+=S.sep),ee?(0,p.startsWithIgnoreCase)(y,N):y.indexOf(N)===0)}e.isParent=fe;class he extends Error{constructor(N,ee,se){super(N),this.fileOperationResult=ee,this.options=se}}e.FileOperationError=he;class ve extends he{constructor(N,ee,se,Z){super(N,ee,Z),this.fileOperationResult=ee,this.size=se}}e.TooLargeFileOperationError=ve;class oe extends he{constructor(N,ee,se){super(N,2,se),this.stat=ee}}e.NotModifiedSinceFileOperationError=oe;var H;(function(y){y[y.FILE_IS_DIRECTORY=0]="FILE_IS_DIRECTORY",y[y.FILE_NOT_FOUND=1]="FILE_NOT_FOUND",y[y.FILE_NOT_MODIFIED_SINCE=2]="FILE_NOT_MODIFIED_SINCE",y[y.FILE_MODIFIED_SINCE=3]="FILE_MODIFIED_SINCE",y[y.FILE_MOVE_CONFLICT=4]="FILE_MOVE_CONFLICT",y[y.FILE_WRITE_LOCKED=5]="FILE_WRITE_LOCKED",y[y.FILE_PERMISSION_DENIED=6]="FILE_PERMISSION_DENIED",y[y.FILE_TOO_LARGE=7]="FILE_TOO_LARGE",y[y.FILE_INVALID_PATH=8]="FILE_INVALID_PATH",y[y.FILE_NOT_DIRECTORY=9]="FILE_NOT_DIRECTORY",y[y.FILE_OTHER_ERROR=10]="FILE_OTHER_ERROR"})(H||(e.FileOperationResult=H={})),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",e.FILES_READONLY_INCLUDE_CONFIG="files.readonlyInclude",e.FILES_READONLY_EXCLUDE_CONFIG="files.readonlyExclude",e.FILES_READONLY_FROM_PERMISSIONS_CONFIG="files.readonlyFromPermissions";var te;(function(y){y[y.FILE=0]="FILE",y[y.FOLDER=1]="FOLDER",y[y.ROOT_FOLDER=2]="ROOT_FOLDER"})(te||(e.FileKind=te={})),e.ETAG_DISABLED="";function re(y){if(!(typeof y.size!="number"||typeof y.mtime!="number"))return y.mtime.toString(29)+y.size.toString(31)}e.etag=re;async function j(y,N){if(!N.hasProvider(z.URI.from({scheme:y.scheme})))return new Promise(ee=>{const se=N.onDidChangeFileSystemProviderRegistrations(Z=>{Z.scheme===y.scheme&&Z.added&&(se.dispose(),ee())})})}e.whenProviderRegistered=j;class B{static{this.KB=1024}static{this.MB=B.KB*B.KB}static{this.GB=B.MB*B.KB}static{this.TB=B.GB*B.KB}static formatSize(N){return(0,U.isNumber)(N)||(N=0),N<B.KB?(0,I.localize)(1,null,N.toFixed(0)):N<B.MB?(0,I.localize)(2,null,(N/B.KB).toFixed(2)):N<B.GB?(0,I.localize)(3,null,(N/B.MB).toFixed(2)):N<B.TB?(0,I.localize)(4,null,(N/B.GB).toFixed(2)):(0,I.localize)(5,null,(N/B.TB).toFixed(2))}}e.ByteSize=B;function $(y){const N=typeof y=="string"||y?.scheme===D.Schemas.vscodeRemote;return typeof y!="string"&&y?.scheme===D.Schemas.file?1024*B.MB:N?10*B.MB:P.isWeb?50*B.MB:1024*B.MB}e.getLargeFileConfirmationLimit=$}),define(me[48],ye([0,1,37,8,3,2,6,47]),function(ce,e,A,S,p,U,z,I){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseWatcherPatterns=e.normalizeWatcherPattern=e.coalesceEvents=e.toFileChanges=e.AbstractUniversalWatcherClient=e.AbstractNonRecursiveWatcherClient=e.AbstractWatcherClient=e.isRecursiveWatchRequest=void 0;function R(o){return o.recursive===!0}e.isRecursiveWatchRequest=R;class P extends S.Disposable{static{this.MAX_RESTARTS=5}constructor(d,L,T,X){super(),this.onFileChanges=d,this.onLogMessage=L,this.verboseLogging=T,this.options=X,this.watcherDisposables=this._register(new S.MutableDisposable),this.requests=void 0,this.restartCounter=0}init(){const d=new S.DisposableStore;this.watcherDisposables.value=d,this.watcher=this.createWatcher(d),this.watcher.setVerboseLogging(this.verboseLogging),d.add(this.watcher.onDidChangeFile(L=>this.onFileChanges(L))),d.add(this.watcher.onDidLogMessage(L=>this.onLogMessage(L))),d.add(this.watcher.onDidError(L=>this.onError(L)))}onError(d){this.options.restartOnError?this.restartCounter<P.MAX_RESTARTS&&this.requests?(this.error(`restarting watcher after error: ${d}`),this.restart(this.requests)):this.error(`gave up attempting to restart watcher after error: ${d}`):this.error(d)}restart(d){this.restartCounter++,this.init(),this.watch(d)}async watch(d){this.requests=d,await this.watcher?.watch(d)}async setVerboseLogging(d){this.verboseLogging=d,await this.watcher?.setVerboseLogging(d)}error(d){this.onLogMessage({type:"error",message:`[File Watcher (${this.options.type})] ${d}`})}trace(d){this.onLogMessage({type:"trace",message:`[File Watcher (${this.options.type})] ${d}`})}dispose(){return this.watcher=void 0,super.dispose()}}e.AbstractWatcherClient=P;class D extends P{constructor(d,L,T){super(d,L,T,{type:"node.js",restartOnError:!1})}}e.AbstractNonRecursiveWatcherClient=D;class M extends P{constructor(d,L,T){super(d,L,T,{type:"universal",restartOnError:!0})}}e.AbstractUniversalWatcherClient=M;function W(o){return o.map(d=>({type:d.type,resource:z.URI.file(d.path)}))}e.toFileChanges=W;function g(o){const d=new t;for(const L of o)d.processEvent(L);return d.coalesce()}e.coalesceEvents=g;function f(o,d){return typeof d=="string"&&!d.startsWith(A.GLOBSTAR)&&!(0,p.isAbsolute)(d)?{base:o,pattern:d}:d}e.normalizeWatcherPattern=f;function m(o,d){const L=[];for(const T of d)L.push((0,A.parse)(f(o,T)));return L}e.parseWatcherPatterns=m;class t{constructor(){this.coalesced=new Set,this.mapPathToChange=new Map}toKey(d){return U.isLinux?d.path:d.path.toLowerCase()}processEvent(d){const L=this.mapPathToChange.get(this.toKey(d));let T=!1;if(L){const X=L.type,i=d.type;L.path!==d.path&&(d.type===2||d.type===1)?T=!0:X===1&&i===2?(this.mapPathToChange.delete(this.toKey(d)),this.coalesced.delete(L)):X===2&&i===1?L.type=0:X===1&&i===0||(L.type=i)}else T=!0;T&&(this.coalesced.add(d),this.mapPathToChange.set(this.toKey(d),d))}coalesce(){const d=[],L=[];return Array.from(this.coalesced).filter(T=>T.type!==2?(d.push(T),!1):!0).sort((T,X)=>T.path.length-X.path.length).filter(T=>L.some(X=>(0,I.isParent)(T.path,X,!U.isLinux))?!1:(L.push(T.path),!0)).concat(d)}}}),define(me[49],ye([0,1,12,10,9,4,8,22,3,2,38,11,48]),function(ce,e,A,S,p,U,z,I,R,P,D,M,W){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.watchFileContents=e.NodeJSFileWatcherLibrary=void 0;class g extends z.Disposable{static{this.FILE_DELETE_HANDLER_DELAY=100}static{this.FILE_CHANGES_HANDLER_DELAY=75}constructor(t,o,d,L){super(),this.request=t,this.onDidFilesChange=o,this.onLogMessage=d,this.verboseLogging=L,this.throttledFileChangesEmitter=this._register(new S.ThrottledWorker({maxWorkChunkSize:100,throttleDelay:200,maxBufferedWork:1e4},T=>this.onDidFilesChange(T))),this.fileChangesAggregator=this._register(new S.RunOnceWorker(T=>this.handleFileChanges(T),g.FILE_CHANGES_HANDLER_DELAY)),this.excludes=(0,W.parseWatcherPatterns)(this.request.path,this.request.excludes),this.includes=this.request.includes?(0,W.parseWatcherPatterns)(this.request.path,this.request.includes):void 0,this.cts=new p.CancellationTokenSource,this.ready=this.watch()}async watch(){try{const t=await this.normalizePath(this.request);if(this.cts.token.isCancellationRequested)return;const o=await M.Promises.stat(t);this._register(await this.doWatch(t,o.isDirectory()))}catch(t){t.code!=="ENOENT"?this.error(t):this.trace(t)}}async normalizePath(t){let o=t.path;try{o=await M.Promises.realpath(t.path),t.path===o&&(o=await(0,D.realcase)(t.path)??t.path),t.path!==o&&this.trace(`correcting a path to watch that seems to be a symbolic link or wrong casing (original: ${t.path}, real: ${o})`)}catch{}return o}async doWatch(t,o){if(P.isMacintosh&&(0,U.isEqualOrParent)(t,"/Volumes/",!0))return this.error(`Refusing to watch ${t} for changes using fs.watch() for possibly being a network share where watching is unreliable and unstable.`),z.Disposable.None;const d=new p.CancellationTokenSource(this.cts.token),L=new z.DisposableStore;try{const T=(0,R.basename)(t),X=(0,A.watch)(t);L.add((0,z.toDisposable)(()=>{X.removeAllListeners(),X.close()})),this.trace(`Started watching: '${t}'`);const i=new Set;if(o)try{for(const C of await M.Promises.readdir(t))i.add(C)}catch(C){this.error(C)}const s=new Map;L.add((0,z.toDisposable)(()=>{for(const[,C]of s)C.dispose();s.clear()})),X.on("error",(C,w)=>{this.error(`Failed to watch ${t} for changes using fs.watch() (${C}, ${w})`),this.dispose()}),X.on("change",(C,w)=>{if(d.token.isCancellationRequested)return;this.trace(`[raw] ["${C}"] ${w}`);let u="";if(w&&(u=w.toString(),P.isMacintosh&&(u=(0,I.normalizeNFC)(u))),!(!u||C!=="change"&&C!=="rename"))if(o)if(C==="rename"){s.get(u)?.dispose();const n=setTimeout(async()=>{if(s.delete(u),u===T&&!await M.Promises.exists(t)){this.warn("Watcher shutdown because watched path got deleted"),this.dispose();return}const r=await this.existsChildStrictCase((0,R.join)(t,u));if(d.token.isCancellationRequested)return;let a;r?i.has(u)?a=0:(a=1,i.add(u)):(i.delete(u),a=2),this.onFileChange({path:(0,R.join)(this.request.path,u),type:a})},g.FILE_DELETE_HANDLER_DELAY);s.set(u,(0,z.toDisposable)(()=>clearTimeout(n)))}else{let n;i.has(u)?n=0:(n=1,i.add(u)),this.onFileChange({path:(0,R.join)(this.request.path,u),type:n})}else if(C==="rename"||u!==T){const n=setTimeout(async()=>{const r=await M.Promises.exists(t);d.token.isCancellationRequested||(r?(this.onFileChange({path:this.request.path,type:0},!0),L.add(await this.doWatch(t,!1))):(this.onFileChange({path:this.request.path,type:2},!0),this.fileChangesAggregator.flush(),this.dispose()))},g.FILE_DELETE_HANDLER_DELAY);L.clear(),L.add((0,z.toDisposable)(()=>clearTimeout(n)))}else this.onFileChange({path:this.request.path,type:0},!0)})}catch(T){await M.Promises.exists(t)&&!d.token.isCancellationRequested&&this.error(`Failed to watch ${t} for changes using fs.watch() (${T.toString()})`)}return(0,z.toDisposable)(()=>{d.dispose(!0),L.dispose()})}onFileChange(t,o=!1){this.cts.token.isCancellationRequested||(this.verboseLogging&&this.trace(`${t.type===1?"[ADDED]":t.type===2?"[DELETED]":"[CHANGED]"} ${t.path}`),!o&&this.excludes.some(d=>d(t.path))?this.verboseLogging&&this.trace(` >> ignored (excluded) ${t.path}`):!o&&this.includes&&this.includes.length>0&&!this.includes.some(d=>d(t.path))?this.verboseLogging&&this.trace(` >> ignored (not included) ${t.path}`):this.fileChangesAggregator.work(t))}handleFileChanges(t){const o=(0,W.coalesceEvents)(t);if(o.length>0){if(this.verboseLogging)for(const L of o)this.trace(`>> normalized ${L.type===1?"[ADDED]":L.type===2?"[DELETED]":"[CHANGED]"} ${L.path}`);this.throttledFileChangesEmitter.work(o)?this.throttledFileChangesEmitter.pending>0&&this.trace(`started throttling events due to large amount of file change events at once (pending: ${this.throttledFileChangesEmitter.pending}, most recent change: ${o[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: ${o.length}, most recent change: ${o[0].path}). Use 'files.watcherExclude' setting to exclude folders with lots of changing files (e.g. compilation output).`)}}async existsChildStrictCase(t){if(P.isLinux)return M.Promises.exists(t);try{const o=(0,R.basename)(t);return(await M.Promises.readdir((0,R.dirname)(t))).some(L=>L===o)}catch(o){return this.trace(o),!1}}setVerboseLogging(t){this.verboseLogging=t}error(t){this.cts.token.isCancellationRequested||this.onLogMessage?.({type:"error",message:`[File Watcher (node.js)] ${t}`})}warn(t){this.cts.token.isCancellationRequested||this.onLogMessage?.({type:"warn",message:`[File Watcher (node.js)] ${t}`})}trace(t){!this.cts.token.isCancellationRequested&&this.verboseLogging&&this.onLogMessage?.({type:"trace",message:`[File Watcher (node.js)] ${t}`})}dispose(){this.trace(`stopping file watcher on ${this.request.path}`),this.cts.dispose(!0),super.dispose()}}e.NodeJSFileWatcherLibrary=g;async function f(m,t,o,d,L=512){const T=await M.Promises.open(m,"r"),X=Buffer.allocUnsafe(L),i=new p.CancellationTokenSource(d);let s,C=!1;const w={path:m,excludes:[],recursive:!1},u=new g(w,n=>{(async()=>{for(const{type:r}of n)if(r===0){if(C)return;C=!0;try{for(;!i.token.isCancellationRequested;){const{bytesRead:a}=await M.Promises.read(T,X,0,L,null);if(!a||i.token.isCancellationRequested)break;t(X.slice(0,a))}}catch(a){s=new Error(a),i.dispose(!0)}finally{C=!1}}})()});return await u.ready,o(),new Promise((n,r)=>{i.token.onCancellationRequested(async()=>{u.dispose();try{await M.Promises.close(T)}catch(a){s=new Error(a)}s?r(s):n()})})}e.watchFileContents=f}),define(me[50],ye([0,1,2,16]),function(ce,e,A,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0});let p;if(typeof A.globals.vscode<"u"&&typeof A.globals.vscode.context<"u"){const U=A.globals.vscode.context.configuration();if(U)p=U.product;else throw new Error("Sandbox: unable to resolve product configuration from preload script.")}else if(globalThis._VSCODE_PRODUCT_JSON&&globalThis._VSCODE_PACKAGE_JSON){if(p=globalThis._VSCODE_PRODUCT_JSON,S.env.VSCODE_DEV&&Object.assign(p,{nameShort:`${p.nameShort} Dev`,nameLong:`${p.nameLong} Dev`,dataFolderName:`${p.dataFolderName}-dev`,serverDataFolderName:p.serverDataFolderName?`${p.serverDataFolderName}-dev`:void 0}),!p.version){const U=globalThis._VSCODE_PACKAGE_JSON;Object.assign(p,{version:U.version})}}else p={},Object.keys(p).length===0&&Object.assign(p,{version:"1.78.0-dev",nameShort:"Azure Data Studio Dev",nameLong:"Azure Data Studio Dev",applicationName:"azuredatastudio-oss",dataFolderName:"azuredatastudio-oss",urlProtocol:"azuredatastudio-oss",reportIssueUrl:"https://github.com/microsoft/azuredatastudio/issues/new",licenseName:"MIT",licenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt",serverLicenseUrl:"https://github.com/microsoft/vscode/blob/main/LICENSE.txt"});e.default=p}),define(me[51],ye([0,1,3,26]),function(ce,e,A,S){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Utils=e.IV8InspectProfilingService=void 0,e.IV8InspectProfilingService=(0,S.createDecorator)("IV8InspectProfilingService");var p;(function(U){function z(R){return!!(R.samples&&R.timeDeltas)}U.isValidProfile=z;function I(R,P="noAbsolutePaths"){for(const D of R.nodes)D.callFrame&&D.callFrame.url&&((0,A.isAbsolute)(D.callFrame.url)||/^\w[\w\d+.-]*:\/\/\/?/.test(D.callFrame.url))&&(D.callFrame.url=(0,A.join)(P,(0,A.basename)(D.callFrame.url)));return R}U.rewriteAbsolutePaths=I})(p||(e.Utils=p={}))}),define(me[56],ye([0,1,40,12,18,13,3,2,30,11,35,49,25,44,45,46,50,9,4,51,17,16,57,6]),function(ce,e,A,S,p,U,z,I,R,P,D,M,W,g,f,m,t,o,d,L,T,X,i,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.main=void 0;function C(r){return!!r["install-source"]||!!r["list-extensions"]||!!r["install-extension"]||!!r["uninstall-extension"]||!!r["locate-extension"]||!!r.telemetry}async function w(r){let a;try{a=(0,g.parseCLIProcessArgv)(r)}catch(v){console.error(v.message);return}for(const v of W.NATIVE_CLI_COMMANDS)if(a[v]){if(!t.default.tunnelApplicationName){console.error(`'${v}' command not supported in ${t.default.applicationName}`);return}const h=r.slice(r.indexOf(v)+1);return new Promise((k,V)=>{let J;const fe=["ignore","pipe","pipe"];if(process.env.VSCODE_DEV)J=(0,A.spawn)("cargo",["run","--",v,...h],{cwd:(0,z.join)(u(),"cli"),stdio:fe});else{const he=process.platform==="darwin"?(0,z.join)((0,z.dirname)((0,z.dirname)(process.execPath)),"Resources","app"):(0,z.dirname)(process.execPath),ve=(0,z.join)(he,"bin",`${t.default.tunnelApplicationName}${I.isWindows?".exe":""}`);J=(0,A.spawn)(ve,[v,...h],{cwd:(0,X.cwd)(),stdio:fe})}J.stdout.pipe(process.stdout),J.stderr.pipe(process.stderr),J.on("exit",k),J.on("error",V)})}if(a.help){const v=`${t.default.applicationName}${I.isWindows?".exe":""}`;console.log((0,W.buildHelpMessage)(t.default.nameLong,v,t.default.version,W.OPTIONS))}else if(a.version)console.log((0,W.buildVersionMessage)(t.default.version,t.default.commit));else if(a["locate-shell-integration-path"]){let v;switch(a["locate-shell-integration-path"]){case"bash":v="shellIntegration-bash.sh";break;case"pwsh":v="shellIntegration.ps1";break;case"zsh":v="shellIntegration-rc.zsh";break;case"fish":v="fish_xdg_data/fish/vendor_conf.d/shellIntegration.fish";break;default:throw new Error("Error using --locate-shell-integration-path: Invalid shell type")}console.log((0,z.join)(u(),"out","vs","workbench","contrib","terminal","browser","media",v))}else if(C(a)){await(await new Promise((h,k)=>ce(["vs/code/node/cliProcessMain"],h,k))).main(a);return}else if(a["file-write"]){const v=a._[0],h=a._[1];if(I.isWindows)for(const k of[v,h])(0,d.isUNC)(k)&&(0,i.addUNCHostToAllowlist)(s.URI.file(k).authority);if(!v||!h||v===h||!(0,z.isAbsolute)(v)||!(0,z.isAbsolute)(h)||!(0,S.existsSync)(v)||!(0,S.statSync)(v).isFile()||!(0,S.existsSync)(h)||!(0,S.statSync)(h).isFile())throw new Error("Using --file-write with invalid arguments.");try{let k=0,V=!1;a["file-chmod"]&&(k=(0,S.statSync)(h).mode,k&128||((0,S.chmodSync)(h,k|128),V=!0));const J=(0,S.readFileSync)(v);I.isWindows?((0,S.truncateSync)(h,0),(0,P.writeFileSync)(h,J,{flag:"r+"})):(0,P.writeFileSync)(h,J),V&&(0,S.chmodSync)(h,k)}catch(k){throw k.message=`Error using --file-write: ${k.message}`,k}}else{const v={...process.env,ELECTRON_NO_ATTACH_CONSOLE:"1"};delete v.ELECTRON_RUN_AS_NODE;const h=[];a.verbose&&(v.ELECTRON_ENABLE_LOGGING="1"),(a.verbose||a.status)&&h.push(async oe=>{oe.stdout?.on("data",H=>console.log(H.toString("utf8").trim())),oe.stderr?.on("data",H=>console.log(H.toString("utf8").trim())),await U.Event.toPromise(U.Event.fromNodeEventEmitter(oe,"exit"))});const k=a._.some(oe=>oe==="-");k&&(a._=a._.filter(oe=>oe!=="-"),r=r.filter(oe=>oe!=="-"));let V;if((0,f.hasStdinWithoutTty)())if(k){V=(0,f.getStdinFilePath)();try{await(0,f.readFromStdin)(V,!!a.verbose),(0,g.addArg)(r,V),(0,g.addArg)(r,"--wait"),(0,g.addArg)(r,"--skip-add-to-recently-opened"),a.wait=!0,console.log(`Reading from stdin via: ${V}`)}catch(oe){console.log(`Failed to create file to read via stdin: ${oe.toString()}`),V=void 0}}else h.push(oe=>(0,f.stdinDataListener)(1e3).then(H=>{H&&(I.isWindows?console.log(`Run with '${t.default.applicationName} -' to read output from another program (e.g. 'echo Hello World | ${t.default.applicationName} -').`):console.log(`Run with '${t.default.applicationName} -' to read from stdin (e.g. 'ps aux | grep code | ${t.default.applicationName} -').`))}));const J=I.isMacintosh&&(0,p.release)()>"20.0.0";let fe;if(a.wait&&(fe=(0,m.createWaitMarkerFileSync)(a.verbose),fe&&(0,g.addArg)(r,"--waitMarkerFilePath",fe),h.push(async oe=>{let H;J?H=new Promise(te=>{oe.on("exit",(re,j)=>{(re!==0||j)&&te()})}):H=U.Event.toPromise(U.Event.fromNodeEventEmitter(oe,"exit"));try{await Promise.race([(0,P.whenDeleted)(fe),U.Event.toPromise(U.Event.fromNodeEventEmitter(oe,"error")),H])}finally{V&&(0,S.unlinkSync)(V)}})),a["prof-startup"]){const oe=await(0,D.findFreePort)((0,R.randomPort)(),10,3e3),H=await(0,D.findFreePort)(oe+1,10,3e3),te=await(0,D.findFreePort)(H+1,10,3e3);if(oe*H*te===0)throw new Error("Failed to find free ports for profiler. Make sure to shutdown all instances of the editor first.");const re=(0,d.randomPath)((0,p.homedir)(),"prof");(0,g.addArg)(r,`--inspect-brk=${oe}`),(0,g.addArg)(r,`--remote-debugging-port=${H}`),(0,g.addArg)(r,`--inspect-brk-extensions=${te}`),(0,g.addArg)(r,"--prof-startup-prefix",re),(0,g.addArg)(r,"--no-cached-data"),(0,P.writeFileSync)(re,r.slice(-6).join("|")),h.push(async j=>{class B{static async start(y,N,ee){const se=await new Promise((le,G)=>{ce(["v8-inspect-profiler"],le,G)});let Z;try{Z=await se.startProfiling(ee)}catch{console.error(`FAILED to start profiling for '${y}' on port '${ee.port}'`)}return{async stop(){if(!Z)return;let le="";const G=await Z.stop();process.env.VSCODE_DEV||(G.profile=L.Utils.rewriteAbsolutePaths(G.profile,"piiRemoved"),le=".txt"),(0,P.writeFileSync)(`${N}.${y}.cpuprofile${le}`,JSON.stringify(G.profile,void 0,4))}}}}try{const $=B.start("main",re,{port:oe}),y=B.start("extHost",re,{port:te,tries:300}),N=B.start("renderer",re,{port:H,tries:200,target:function(le){return le.filter(G=>G.webSocketDebuggerUrl?G.type==="page"?G.url.indexOf("workbench/workbench.html")>0||G.url.indexOf("workbench/workbench-dev.html")>0:!0:!1)[0]}}),ee=await $,se=await y,Z=await N;await(0,P.whenDeleted)(re),await ee.stop(),await Z.stop(),await se.stop(),(0,P.writeFileSync)(re,"")}catch{console.error("Failed to profile startup. Make sure to quit Code first.")}})}const he={detached:!0,env:v};a.verbose||(he.stdio="ignore");let ve;if(!J)!a.verbose&&a.status&&(he.stdio=["ignore","pipe","ignore"]),ve=(0,A.spawn)(process.execPath,r.slice(2),he);else{const oe=["-n","-g"];if(oe.push("-a",process.execPath),a.verbose||a.status){oe.push("--wait-apps");for(const H of a.verbose?["stdout","stderr"]:["stdout"]){const te=(0,d.randomPath)((0,p.tmpdir)(),`code-${H}`);(0,P.writeFileSync)(te,""),oe.push(`--${H}`,te),h.push(async re=>{try{const j=H==="stdout"?process.stdout:process.stderr,B=new o.CancellationTokenSource;re.on("close",()=>{setTimeout(()=>B.dispose(!0),200)}),await(0,M.watchFileContents)(te,$=>j.write($),()=>{},B.token)}finally{(0,S.unlinkSync)(te)}})}}for(const H in v)H!=="_"&&(oe.push("--env"),oe.push(`${H}=${v[H]}`));if(oe.push("--args",...r.slice(2)),v.VSCODE_DEV){const H=".",te=oe.indexOf(H);te!==-1&&(oe[te]=(0,z.resolve)(H))}ve=(0,A.spawn)("open",oe,{...he,env:{}})}return Promise.all(h.map(oe=>oe(ve)))}}e.main=w;function u(){return(0,z.dirname)(T.FileAccess.asFileUri("").fsPath)}function n(r){setTimeout(()=>process.exit(r),0)}w(process.argv).then(()=>n(0)).then(null,r=>{console.error(r.message||r.stack||r),n(1)})})}).call(this);

//# sourceMappingURL=https://sqlopsbuilds.blob.core.windows.net/sourcemaps/82e35eb142bf0f4567ff8c6dd4f16f33abfc2d50/core/vs/code/node/cli.js.map