@vtj/designer 0.13.9 → 0.13.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Editor-DwL27mG6.js +4 -0
- package/dist/{css.worker-lFIlFDcO.js → css.worker-DdCwg2F4.js} +1 -1
- package/dist/{html.worker-DK9ABwjs.js → html.worker-Bgmn5TLa.js} +1 -1
- package/dist/{index-V80MAGGS.js → index-5zqRqSIr.js} +3476 -3406
- package/dist/index.mjs +1 -1
- package/dist/{json.worker-BGme9zBl.js → json.worker-D1UBs5tZ.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{ts.worker-Bchzq6r_.js → ts.worker-CtXbW5f6.js} +2 -2
- package/package.json +7 -7
- package/types/components/hooks/useWorkspace.d.ts +2 -0
- package/types/components/setters/file.d.ts +4 -1
- package/types/components/setters/index.d.ts +3 -1
- package/types/components/shared/action-menu.d.ts +2 -0
- package/types/components/shared/viewer.d.ts +2 -2
- package/types/components/widgets/apis/mock-template.d.ts +1 -1
- package/types/components/widgets/apis/request-settings.d.ts +1 -1
- package/types/version.d.ts +2 -2
- package/dist/Editor-BkKVBGS0.js +0 -4
@@ -1,4 +1,4 @@
|
|
1
|
-
const i = 'var O1=Object.defineProperty;var $1=(st,$e,Ce)=>$e in st?O1(st,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):st[$e]=Ce;var it=(st,$e,Ce)=>$1(st,typeof $e!="symbol"?$e+"":$e,Ce);(function(){"use strict";var me,G;class st{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?ht.isErrorNoTelemetry(t)?new ht(t.message+`\n\n`+t.stack):new Error(t.message+`\n\n`+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const $e=new st;function Ce(e){Wo(e)||$e.onUnexpectedError(e)}function si(e){if(e instanceof Error){const{name:t,message:n}=e,r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r,noTelemetry:ht.isErrorNoTelemetry(e)}}return e}const Hn="Canceled";function Wo(e){return e instanceof Ho?!0:e instanceof Error&&e.name===Hn&&e.message===Hn}class Ho extends Error{constructor(){super(Hn),this.name=this.message}}class ht extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof ht)return t;const n=new ht;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class pe extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,pe.prototype)}}function zo(e,t){const n=this;let r=!1,i;return function(){return r||(r=!0,i=e.apply(n,arguments)),i}}var an;(function(e){function t(x){return x&&typeof x=="object"&&typeof x[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*i(x){yield x}e.single=i;function s(x){return t(x)?x:i(x)}e.wrap=s;function a(x){return x||n}e.from=a;function*l(x){for(let b=x.length-1;b>=0;b--)yield x[b]}e.reverse=l;function o(x){return!x||x[Symbol.iterator]().next().done===!0}e.isEmpty=o;function u(x){return x[Symbol.iterator]().next().value}e.first=u;function h(x,b){let L=0;for(const S of x)if(b(S,L++))return!0;return!1}e.some=h;function f(x,b){for(const L of x)if(b(L))return L}e.find=f;function*m(x,b){for(const L of x)b(L)&&(yield L)}e.filter=m;function*d(x,b){let L=0;for(const S of x)yield b(S,L++)}e.map=d;function*g(x,b){let L=0;for(const S of x)yield*b(S,L++)}e.flatMap=g;function*p(...x){for(const b of x)yield*b}e.concat=p;function y(x,b,L){let S=L;for(const M of x)S=b(S,M);return S}e.reduce=y;function*w(x,b,L=x.length){for(b<0&&(b+=x.length),L<0?L+=x.length:L>x.length&&(L=x.length);b<L;b++)yield x[b]}e.slice=w;function _(x,b=Number.POSITIVE_INFINITY){const L=[];if(b===0)return[L,x];const S=x[Symbol.iterator]();for(let M=0;M<b;M++){const F=S.next();if(F.done)return[L,e.empty()];L.push(F.value)}return[L,{[Symbol.iterator](){return S}}]}e.consume=_;async function v(x){const b=[];for await(const L of x)b.push(L);return Promise.resolve(b)}e.asyncToArray=v})(an||(an={}));function B1(e){return e}function U1(e,t){}function ai(e){if(an.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function Go(...e){return on(()=>ai(e))}function on(e){return{dispose:zo(()=>{e()})}}const Vn=class Vn{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{ai(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Vn.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(t),t}deleteAndLeak(t){t&&this._toDispose.has(t)&&this._toDispose.delete(t)}};Vn.DISABLE_DISPOSED_WARNING=!1;let Ot=Vn;const ri=class ri{constructor(){this._store=new Ot,this._store}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}};ri.None=Object.freeze({dispose(){}});let mt=ri;const Tt=class Tt{constructor(t){this.element=t,this.next=Tt.Undefined,this.prev=Tt.Undefined}};Tt.Undefined=new Tt(void 0);let Q=Tt;class Jo{constructor(){this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Q.Undefined}clear(){let t=this._first;for(;t!==Q.Undefined;){const n=t.next;t.prev=Q.Undefined,t.next=Q.Undefined,t=n}this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const r=new Q(t);if(this._first===Q.Undefined)this._first=r,this._last=r;else if(n){const s=this._last;this._last=r,r.prev=s,s.next=r}else{const s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==Q.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==Q.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==Q.Undefined&&t.next!==Q.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===Q.Undefined&&t.next===Q.Undefined?(this._first=Q.Undefined,this._last=Q.Undefined):t.next===Q.Undefined?(this._last=this._last.prev,this._last.next=Q.Undefined):t.prev===Q.Undefined&&(this._first=this._first.next,this._first.prev=Q.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==Q.Undefined;)yield t.element,t=t.next}}const Xo=globalThis.performance&&typeof globalThis.performance.now=="function";class ln{static create(t){return new ln(t)}constructor(t){this._now=Xo&&t===!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}}var un;(function(e){e.None=()=>mt.None;function t(k,R){return m(k,()=>{},0,void 0,!0,void 0,R)}e.defer=t;function n(k){return(R,I=null,T)=>{let P=!1,D;return D=k(B=>{if(!P)return D?D.dispose():P=!0,R.call(I,B)},null,T),P&&D.dispose(),D}}e.once=n;function r(k,R){return e.once(e.filter(k,R))}e.onceIf=r;function i(k,R,I){return h((T,P=null,D)=>k(B=>T.call(P,R(B)),null,D),I)}e.map=i;function s(k,R,I){return h((T,P=null,D)=>k(B=>{R(B),T.call(P,B)},null,D),I)}e.forEach=s;function a(k,R,I){return h((T,P=null,D)=>k(B=>R(B)&&T.call(P,B),null,D),I)}e.filter=a;function l(k){return k}e.signal=l;function o(...k){return(R,I=null,T)=>{const P=Go(...k.map(D=>D(B=>R.call(I,B))));return f(P,T)}}e.any=o;function u(k,R,I,T){let P=I;return i(k,D=>(P=R(P,D),P),T)}e.reduce=u;function h(k,R){let I;const T={onWillAddFirstListener(){I=k(P.fire,P)},onDidRemoveLastListener(){I?.dispose()}},P=new _e(T);return R?.add(P),P.event}function f(k,R){return R instanceof Array?R.push(k):R&&R.add(k),k}function m(k,R,I=100,T=!1,P=!1,D,B){let j,ne,Dt,qn=0,sn;const F1={leakWarningThreshold:D,onWillAddFirstListener(){j=k(V1=>{qn++,ne=R(ne,V1),T&&!Dt&&(jn.fire(ne),ne=void 0),sn=()=>{const D1=ne;ne=void 0,Dt=void 0,(!T||qn>1)&&jn.fire(D1),qn=0},typeof I=="number"?(clearTimeout(Dt),Dt=setTimeout(sn,I)):Dt===void 0&&(Dt=0,queueMicrotask(sn))})},onWillRemoveListener(){P&&qn>0&&sn?.()},onDidRemoveLastListener(){sn=void 0,j.dispose()}},jn=new _e(F1);return B?.add(jn),jn.event}e.debounce=m;function d(k,R=0,I){return e.debounce(k,(T,P)=>T?(T.push(P),T):[P],R,void 0,!0,void 0,I)}e.accumulate=d;function g(k,R=(T,P)=>T===P,I){let T=!0,P;return a(k,D=>{const B=T||!R(D,P);return T=!1,P=D,B},I)}e.latch=g;function p(k,R,I){return[e.filter(k,R,I),e.filter(k,T=>!R(T),I)]}e.split=p;function y(k,R=!1,I=[],T){let P=I.slice(),D=k(ne=>{P?P.push(ne):j.fire(ne)});T&&T.add(D);const B=()=>{P?.forEach(ne=>j.fire(ne)),P=null},j=new _e({onWillAddFirstListener(){D||(D=k(ne=>j.fire(ne)),T&&T.add(D))},onDidAddFirstListener(){P&&(R?setTimeout(B):B())},onDidRemoveLastListener(){D&&D.dispose(),D=null}});return T&&T.add(j),j.event}e.buffer=y;function w(k,R){return(T,P,D)=>{const B=R(new v);return k(function(j){const ne=B.evaluate(j);ne!==_&&T.call(P,ne)},void 0,D)}}e.chain=w;const _=Symbol("HaltChainable");class v{constructor(){this.steps=[]}map(R){return this.steps.push(R),this}forEach(R){return this.steps.push(I=>(R(I),I)),this}filter(R){return this.steps.push(I=>R(I)?I:_),this}reduce(R,I){let T=I;return this.steps.push(P=>(T=R(T,P),T)),this}latch(R=(I,T)=>I===T){let I=!0,T;return this.steps.push(P=>{const D=I||!R(P,T);return I=!1,T=P,D?P:_}),this}evaluate(R){for(const I of this.steps)if(R=I(R),R===_)break;return R}}function x(k,R,I=T=>T){const T=(...j)=>B.fire(I(...j)),P=()=>k.on(R,T),D=()=>k.removeListener(R,T),B=new _e({onWillAddFirstListener:P,onDidRemoveLastListener:D});return B.event}e.fromNodeEventEmitter=x;function b(k,R,I=T=>T){const T=(...j)=>B.fire(I(...j)),P=()=>k.addEventListener(R,T),D=()=>k.removeEventListener(R,T),B=new _e({onWillAddFirstListener:P,onDidRemoveLastListener:D});return B.event}e.fromDOMEventEmitter=b;function L(k){return new Promise(R=>n(k)(R))}e.toPromise=L;function S(k){const R=new _e;return k.then(I=>{R.fire(I)},()=>{R.fire(void 0)}).finally(()=>{R.dispose()}),R.event}e.fromPromise=S;function M(k,R){return k(I=>R.fire(I))}e.forward=M;function F(k,R,I){return R(I),k(T=>R(T))}e.runAndSubscribe=F;class O{constructor(R,I){this._observable=R,this._counter=0,this._hasChanged=!1;const T={onWillAddFirstListener:()=>{R.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{R.removeObserver(this)}};this.emitter=new _e(T),I&&I.add(this.emitter)}beginUpdate(R){this._counter++}handlePossibleChange(R){}handleChange(R,I){this._hasChanged=!0}endUpdate(R){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function C(k,R){return new O(k,R).emitter.event}e.fromObservable=C;function N(k){return(R,I,T)=>{let P=0,D=!1;const B={beginUpdate(){P++},endUpdate(){P--,P===0&&(k.reportChanges(),D&&(D=!1,R.call(I)))},handlePossibleChange(){},handleChange(){D=!0}};k.addObserver(B),k.reportChanges();const j={dispose(){k.removeObserver(B)}};return T instanceof Ot?T.add(j):Array.isArray(T)&&T.push(j),j}}e.fromObservableLight=N})(un||(un={}));const Pt=class Pt{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${Pt._idPool++}`,Pt.all.add(this)}start(t){this._stopWatch=new ln,this.listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};Pt.all=new Set,Pt._idPool=0;let zn=Pt,Qo=-1;const Dn=class Dn{constructor(t,n,r=(Dn._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(t,n){const r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;const[s,a]=this.getMostFrequentStack(),l=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${a}):`;console.warn(l),console.warn(s);const o=new Yo(l,s);this._errorHandler(o)}return()=>{const s=this._stacks.get(t.value)||0;this._stacks.set(t.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,n=0;for(const[r,i]of this._stacks)(!t||n<i)&&(t=[r,i],n=i);return t}};Dn._idPool=1;let Gn=Dn;class Jn{static create(){const t=new Error;return new Jn(t.stack??"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`\n`).slice(2).join(`\n`))}}class Yo extends Error{constructor(t,n){super(t),this.name="ListenerLeakError",this.stack=n}}class Zo extends Error{constructor(t,n){super(t),this.name="ListenerRefusalError",this.stack=n}}class Xn{constructor(t){this.value=t}}const Ko=2;class _e{constructor(t){this._size=0,this._options=t,this._leakageMon=this._options?.leakWarningThreshold?new Gn(t?.onListenerError??Ce,this._options?.leakWarningThreshold??Qo):void 0,this._perfMon=this._options?._profName?new zn(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??(this._event=(t,n,r)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const l=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(l);const o=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],u=new Zo(`${l}. HINT: Stack shows most frequent listener (${o[1]}-times)`,o[0]);return(this._options?.onListenerError||Ce)(u),mt.None}if(this._disposed)return mt.None;n&&(t=t.bind(n));const i=new Xn(t);let s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(i.stack=Jn.create(),s=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof Xn?(this._deliveryQueue??(this._deliveryQueue=new el),this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=on(()=>{s?.(),this._removeListener(i)});return r instanceof Ot?r.add(a):Array.isArray(r)&&r.push(a),a}),this._event}_removeListener(t){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 n=this._listeners,r=n.indexOf(t);if(r===-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--,n[r]=void 0;const i=this._deliveryQueue.current===this;if(this._size*Ko<=n.length){let s=0;for(let a=0;a<n.length;a++)n[a]?n[s++]=n[a]:i&&(this._deliveryQueue.end--,s<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=s}}_deliver(t,n){if(!t)return;const r=this._options?.onListenerError||Ce;if(!r){t.value(n);return}try{t.value(n)}catch(i){r(i)}}_deliverQueue(t){const n=t.current._listeners;for(;t.i<t.end;)this._deliver(n[t.i++],t.value);t.reset()}fire(t){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof Xn)this._deliver(this._listeners,t);else{const n=this._deliveryQueue;n.enqueue(this,t,this._listeners.length),this._deliverQueue(n)}this._perfMon?.stop()}hasListeners(){return this._size>0}}class el{constructor(){this.i=-1,this.end=0}enqueue(t,n,r){this.i=0,this.end=r,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function tl(){return globalThis._VSCODE_NLS_MESSAGES}function oi(){return globalThis._VSCODE_NLS_LANGUAGE}const nl=oi()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function li(e,t){let n;return t.length===0?n=e:n=e.replace(/\\{(\\d+)\\}/g,(r,i)=>{const s=i[0],a=t[s];let l=r;return typeof a=="string"?l=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(l=String(a)),l}),nl&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function X(e,t,...n){return li(typeof e=="number"?rl(e,t):t,n)}function rl(e,t){const n=tl()?.[e];if(typeof n!="string"){if(typeof t=="string")return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}const dt="en";let Qn=!1,Yn=!1,Zn=!1,ui=!1,Kn=!1,cn,er=dt,ci=dt,il,Be;const Ue=globalThis;let be;typeof Ue.vscode<"u"&&typeof Ue.vscode.process<"u"?be=Ue.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(be=process);const sl=typeof be?.versions?.electron=="string"&&be?.type==="renderer";if(typeof be=="object"){Qn=be.platform==="win32",Yn=be.platform==="darwin",Zn=be.platform==="linux",Zn&&be.env.SNAP&&be.env.SNAP_REVISION,be.env.CI||be.env.BUILD_ARTIFACTSTAGINGDIRECTORY,cn=dt,er=dt;const e=be.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);cn=t.userLocale,ci=t.osLocale,er=t.resolvedLanguage||dt,il=t.languagePack?.translationsConfigFile}catch{}ui=!0}else typeof navigator=="object"&&!sl?(Be=navigator.userAgent,Qn=Be.indexOf("Windows")>=0,Yn=Be.indexOf("Macintosh")>=0,(Be.indexOf("Macintosh")>=0||Be.indexOf("iPad")>=0||Be.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Zn=Be.indexOf("Linux")>=0,Be?.indexOf("Mobi")>=0,Kn=!0,er=oi()||dt,cn=navigator.language.toLowerCase(),ci=cn):console.error("Unable to resolve platform.");const $t=Qn,al=Yn,ol=ui,ll=Kn,ul=Kn&&typeof Ue.importScripts=="function"?Ue.origin:void 0,Te=Be,cl=typeof Ue.postMessage=="function"&&!Ue.importScripts;(()=>{if(cl){const e=[];Ue.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=e.length;r<i;r++){const s=e[r];if(s.id===n.data.vscodeScheduleAsyncWork){e.splice(r,1),s.callback();return}}});let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),Ue.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})();const fl=!!(Te&&Te.indexOf("Chrome")>=0);Te&&Te.indexOf("Firefox")>=0,!fl&&Te&&Te.indexOf("Safari")>=0,Te&&Te.indexOf("Edg/")>=0,Te&&Te.indexOf("Android")>=0;function hl(e){return e}class ml{constructor(t,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof t=="function"?(this._fn=t,this._computeKey=hl):(this._fn=n,this._computeKey=t.getCacheKey)}get(t){const n=this._computeKey(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(t)),this.lastCache}}class fi{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function dl(e){return e.replace(/[\\\\\\{\\}\\*\\+\\?\\|\\^\\$\\.\\[\\]\\(\\)]/g,"\\\\$&")}function gl(e){return e.split(/\\r\\n|\\r|\\n/)}function pl(e){for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}return-1}function bl(e,t=e.length-1){for(let n=t;n>=0;n--){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function hi(e){return e>=65&&e<=90}function tr(e){return 55296<=e&&e<=56319}function yl(e){return 56320<=e&&e<=57343}function vl(e,t){return(e-55296<<10)+(t-56320)+65536}function xl(e,t,n){const r=e.charCodeAt(n);if(tr(r)&&n+1<t){const i=e.charCodeAt(n+1);if(yl(i))return vl(r,i)}return r}const wl=/^[\\t\\n\\r\\x20-\\x7E]*$/;function _l(e){return wl.test(e)}const Oe=class Oe{static getInstance(t){return Oe.cache.get(Array.from(t))}static getLocales(){return Oe._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};Oe.ambiguousCharacterData=new fi(()=>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]}\')),Oe.cache=new ml({getCacheKey:JSON.stringify},t=>{function n(h){const f=new Map;for(let m=0;m<h.length;m+=2)f.set(h[m],h[m+1]);return f}function r(h,f){const m=new Map(h);for(const[d,g]of f)m.set(d,g);return m}function i(h,f){if(!h)return f;const m=new Map;for(const[d,g]of h)f.has(d)&&m.set(d,g);return m}const s=Oe.ambiguousCharacterData.value;let a=t.filter(h=>!h.startsWith("_")&&h in s);a.length===0&&(a=["_default"]);let l;for(const h of a){const f=n(s[h]);l=i(l,f)}const o=n(s._common),u=r(o,l);return new Oe(u)}),Oe._locales=new fi(()=>Object.keys(Oe.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")));let Bt=Oe;const It=class It{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(It.getRawData())),this._data}static isInvisibleCharacter(t){return It.getData().has(t)}static get codePoints(){return It.getData()}};It._data=void 0;let Ut=It;var mi={ENV_TYPE:"local",NODE_ENV:"production"};let gt;const nr=globalThis.vscode;if(typeof nr<"u"&&typeof nr.process<"u"){const e=nr.process;gt={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?gt={get platform(){return process.platform},get arch(){return process.arch},get env(){return mi},cwd(){return mi.VSCODE_CWD||process.cwd()}}:gt={get platform(){return $t?"win32":al?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const fn=gt.cwd,Ll=gt.env,Nl=gt.platform,Sl=65,Al=97,kl=90,Rl=122,Ge=46,oe=47,ge=92,Je=58,El=63;class di extends Error{constructor(t,n,r){let i;typeof n=="string"&&n.indexOf("not ")===0?(i="must not be",n=n.replace(/^not /,"")):i="must be";const s=t.indexOf(".")!==-1?"property":"argument";let a=`The "${t}" ${s} ${i} of type ${n}`;a+=`. Received type ${typeof r}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function Ml(e,t){if(e===null||typeof e!="object")throw new di(t,"Object",e)}function K(e,t){if(typeof e!="string")throw new di(t,"string",e)}const qe=Nl==="win32";function U(e){return e===oe||e===ge}function rr(e){return e===oe}function Xe(e){return e>=Sl&&e<=kl||e>=Al&&e<=Rl}function hn(e,t,n,r){let i="",s=0,a=-1,l=0,o=0;for(let u=0;u<=e.length;++u){if(u<e.length)o=e.charCodeAt(u);else{if(r(o))break;o=oe}if(r(o)){if(!(a===u-1||l===1))if(l===2){if(i.length<2||s!==2||i.charCodeAt(i.length-1)!==Ge||i.charCodeAt(i.length-2)!==Ge){if(i.length>2){const h=i.lastIndexOf(n);h===-1?(i="",s=0):(i=i.slice(0,h),s=i.length-1-i.lastIndexOf(n)),a=u,l=0;continue}else if(i.length!==0){i="",s=0,a=u,l=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(a+1,u)}`:i=e.slice(a+1,u),s=u-a-1;a=u,l=0}else o===Ge&&l!==-1?++l:l=-1}return i}function Cl(e){return e?`${e[0]==="."?"":"."}${e}`:""}function gi(e,t){Ml(t,"pathObject");const n=t.dir||t.root,r=t.base||`${t.name||""}${Cl(t.ext)}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const ue={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],K(s,`paths[${i}]`),s.length===0)continue}else t.length===0?s=fn():(s=Ll[`=${t}`]||fn(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===ge)&&(s=`${t}\\\\`));const a=s.length;let l=0,o="",u=!1;const h=s.charCodeAt(0);if(a===1)U(h)&&(l=1,u=!0);else if(U(h))if(u=!0,U(s.charCodeAt(1))){let f=2,m=f;for(;f<a&&!U(s.charCodeAt(f));)f++;if(f<a&&f!==m){const d=s.slice(m,f);for(m=f;f<a&&U(s.charCodeAt(f));)f++;if(f<a&&f!==m){for(m=f;f<a&&!U(s.charCodeAt(f));)f++;(f===a||f!==m)&&(o=`\\\\\\\\${d}\\\\${s.slice(m,f)}`,l=f)}}}else l=1;else Xe(h)&&s.charCodeAt(1)===Je&&(o=s.slice(0,2),l=2,a>2&&U(s.charCodeAt(2))&&(u=!0,l=3));if(o.length>0)if(t.length>0){if(o.toLowerCase()!==t.toLowerCase())continue}else t=o;if(r){if(t.length>0)break}else if(n=`${s.slice(l)}\\\\${n}`,r=u,u&&t.length>0)break}return n=hn(n,!r,"\\\\",U),r?`${t}\\\\${n}`:`${t}${n}`||"."},normalize(e){K(e,"path");const t=e.length;if(t===0)return".";let n=0,r,i=!1;const s=e.charCodeAt(0);if(t===1)return rr(s)?"\\\\":e;if(U(s))if(i=!0,U(e.charCodeAt(1))){let l=2,o=l;for(;l<t&&!U(e.charCodeAt(l));)l++;if(l<t&&l!==o){const u=e.slice(o,l);for(o=l;l<t&&U(e.charCodeAt(l));)l++;if(l<t&&l!==o){for(o=l;l<t&&!U(e.charCodeAt(l));)l++;if(l===t)return`\\\\\\\\${u}\\\\${e.slice(o)}\\\\`;l!==o&&(r=`\\\\\\\\${u}\\\\${e.slice(o,l)}`,n=l)}}}else n=1;else Xe(s)&&e.charCodeAt(1)===Je&&(r=e.slice(0,2),n=2,t>2&&U(e.charCodeAt(2))&&(i=!0,n=3));let a=n<t?hn(e.slice(n),!i,"\\\\",U):"";return a.length===0&&!i&&(a="."),a.length>0&&U(e.charCodeAt(t-1))&&(a+="\\\\"),r===void 0?i?`\\\\${a}`:a:i?`${r}\\\\${a}`:`${r}${a}`},isAbsolute(e){K(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return U(n)||t>2&&Xe(n)&&e.charCodeAt(1)===Je&&U(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let s=0;s<e.length;++s){const a=e[s];K(a,"path"),a.length>0&&(t===void 0?t=n=a:t+=`\\\\${a}`)}if(t===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&U(n.charCodeAt(0))){++i;const s=n.length;s>1&&U(n.charCodeAt(1))&&(++i,s>2&&(U(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&U(t.charCodeAt(i));)i++;i>=2&&(t=`\\\\${t.slice(i)}`)}return ue.normalize(t)},relative(e,t){if(K(e,"from"),K(t,"to"),e===t)return"";const n=ue.resolve(e),r=ue.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===ge;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===ge;)s--;const a=s-i;let l=0;for(;l<t.length&&t.charCodeAt(l)===ge;)l++;let o=t.length;for(;o-1>l&&t.charCodeAt(o-1)===ge;)o--;const u=o-l,h=a<u?a:u;let f=-1,m=0;for(;m<h;m++){const g=e.charCodeAt(i+m);if(g!==t.charCodeAt(l+m))break;g===ge&&(f=m)}if(m!==h){if(f===-1)return r}else{if(u>h){if(t.charCodeAt(l+m)===ge)return r.slice(l+m+1);if(m===2)return r.slice(l+m)}a>h&&(e.charCodeAt(i+m)===ge?f=m:m===2&&(f=3)),f===-1&&(f=0)}let d="";for(m=i+f+1;m<=s;++m)(m===s||e.charCodeAt(m)===ge)&&(d+=d.length===0?"..":"\\\\..");return l+=f,d.length>0?`${d}${r.slice(l,o)}`:(r.charCodeAt(l)===ge&&++l,r.slice(l,o))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=ue.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===ge){if(t.charCodeAt(1)===ge){const n=t.charCodeAt(2);if(n!==El&&n!==Ge)return`\\\\\\\\?\\\\UNC\\\\${t.slice(2)}`}}else if(Xe(t.charCodeAt(0))&&t.charCodeAt(1)===Je&&t.charCodeAt(2)===ge)return`\\\\\\\\?\\\\${t}`;return e},dirname(e){K(e,"path");const t=e.length;if(t===0)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(t===1)return U(i)?e:".";if(U(i)){if(n=r=1,U(e.charCodeAt(1))){let l=2,o=l;for(;l<t&&!U(e.charCodeAt(l));)l++;if(l<t&&l!==o){for(o=l;l<t&&U(e.charCodeAt(l));)l++;if(l<t&&l!==o){for(o=l;l<t&&!U(e.charCodeAt(l));)l++;if(l===t)return e;l!==o&&(n=r=l+1)}}}}else Xe(i)&&e.charCodeAt(1)===Je&&(n=t>2&&U(e.charCodeAt(2))?3:2,r=n);let s=-1,a=!0;for(let l=t-1;l>=r;--l)if(U(e.charCodeAt(l))){if(!a){s=l;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return e.slice(0,s)},basename(e,t){t!==void 0&&K(t,"suffix"),K(e,"path");let n=0,r=-1,i=!0,s;if(e.length>=2&&Xe(e.charCodeAt(0))&&e.charCodeAt(1)===Je&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(s=e.length-1;s>=n;--s){const o=e.charCodeAt(s);if(U(o)){if(!i){n=s+1;break}}else l===-1&&(i=!1,l=s+1),a>=0&&(o===t.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=n;--s)if(U(e.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){K(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,a=0;e.length>=2&&e.charCodeAt(1)===Je&&Xe(e.charCodeAt(0))&&(t=r=2);for(let l=e.length-1;l>=t;--l){const o=e.charCodeAt(l);if(U(o)){if(!s){r=l+1;break}continue}i===-1&&(s=!1,i=l+1),o===Ge?n===-1?n=l:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||i===-1||a===0||a===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:gi.bind(null,"\\\\"),parse(e){K(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(n===1)return U(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(U(i)){if(r=1,U(e.charCodeAt(1))){let f=2,m=f;for(;f<n&&!U(e.charCodeAt(f));)f++;if(f<n&&f!==m){for(m=f;f<n&&U(e.charCodeAt(f));)f++;if(f<n&&f!==m){for(m=f;f<n&&!U(e.charCodeAt(f));)f++;f===n?r=f:f!==m&&(r=f+1)}}}}else if(Xe(i)&&e.charCodeAt(1)===Je){if(n<=2)return t.root=t.dir=e,t;if(r=2,U(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,a=r,l=-1,o=!0,u=e.length-1,h=0;for(;u>=r;--u){if(i=e.charCodeAt(u),U(i)){if(!o){a=u+1;break}continue}l===-1&&(o=!1,l=u+1),i===Ge?s===-1?s=u:h!==1&&(h=1):s!==-1&&(h=-1)}return l!==-1&&(s===-1||h===0||h===1&&s===l-1&&s===a+1?t.base=t.name=e.slice(a,l):(t.name=e.slice(a,s),t.base=e.slice(a,l),t.ext=e.slice(s,l))),a>0&&a!==r?t.dir=e.slice(0,a-1):t.dir=t.root,t},sep:"\\\\",delimiter:";",win32:null,posix:null},Tl=(()=>{if(qe){const e=/\\\\/g;return()=>{const t=fn().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>fn()})(),ce={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:Tl();K(i,`paths[${r}]`),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===oe)}return t=hn(t,!n,"/",rr),n?`/${t}`:t.length>0?t:"."},normalize(e){if(K(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===oe,n=e.charCodeAt(e.length-1)===oe;return e=hn(e,!t,"/",rr),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return K(e,"path"),e.length>0&&e.charCodeAt(0)===oe},join(...e){if(e.length===0)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];K(r,"path"),r.length>0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?".":ce.normalize(t)},relative(e,t){if(K(e,"from"),K(t,"to"),e===t||(e=ce.resolve(e),t=ce.resolve(t),e===t))return"";const n=1,r=e.length,i=r-n,s=1,a=t.length-s,l=i<a?i:a;let o=-1,u=0;for(;u<l;u++){const f=e.charCodeAt(n+u);if(f!==t.charCodeAt(s+u))break;f===oe&&(o=u)}if(u===l)if(a>l){if(t.charCodeAt(s+u)===oe)return t.slice(s+u+1);if(u===0)return t.slice(s+u)}else i>l&&(e.charCodeAt(n+u)===oe?o=u:u===0&&(o=0));let h="";for(u=n+o+1;u<=r;++u)(u===r||e.charCodeAt(u)===oe)&&(h+=h.length===0?"..":"/..");return`${h}${t.slice(s+o)}`},toNamespacedPath(e){return e},dirname(e){if(K(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===oe;let n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===oe){if(!r){n=i;break}}else r=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&K(t,"ext"),K(e,"path");let n=0,r=-1,i=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(s=e.length-1;s>=0;--s){const o=e.charCodeAt(s);if(o===oe){if(!i){n=s+1;break}}else l===-1&&(i=!1,l=s+1),a>=0&&(o===t.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===oe){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){K(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let a=e.length-1;a>=0;--a){const l=e.charCodeAt(a);if(l===oe){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),l===Ge?t===-1?t=a:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||r===-1||s===0||s===1&&t===r-1&&t===n+1?"":e.slice(t,r)},format:gi.bind(null,"/"),parse(e){K(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===oe;let r;n?(t.root="/",r=1):r=0;let i=-1,s=0,a=-1,l=!0,o=e.length-1,u=0;for(;o>=r;--o){const h=e.charCodeAt(o);if(h===oe){if(!l){s=o+1;break}continue}a===-1&&(l=!1,a=o+1),h===Ge?i===-1?i=o:u!==1&&(u=1):i!==-1&&(u=-1)}if(a!==-1){const h=s===0&&n?1:s;i===-1||u===0||u===1&&i===a-1&&i===s+1?t.base=t.name=e.slice(h,a):(t.name=e.slice(h,i),t.base=e.slice(h,a),t.ext=e.slice(i,a))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ce.win32=ue.win32=ue,ce.posix=ue.posix=ce,qe?ue.normalize:ce.normalize;const Pl=qe?ue.join:ce.join;qe?ue.resolve:ce.resolve,qe?ue.relative:ce.relative,qe?ue.dirname:ce.dirname,qe?ue.basename:ce.basename,qe?ue.extname:ce.extname,qe?ue.sep:ce.sep;const Il=/^\\w[\\w\\d+.-]*$/,Fl=/^\\//,Vl=/^\\/\\//;function Dl(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Il.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!Fl.test(e.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(Vl.test(e.path))throw new Error(\'[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")\')}}function Ol(e,t){return!e&&!t?"file":e}function $l(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Ae&&(t=Ae+t):t=Ae;break}return t}const J="",Ae="/",Bl=/^(([^:/?#]+?):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/;let Pe=class Wn{static isUri(t){return t instanceof Wn?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,n,r,i,s,a=!1){typeof t=="object"?(this.scheme=t.scheme||J,this.authority=t.authority||J,this.path=t.path||J,this.query=t.query||J,this.fragment=t.fragment||J):(this.scheme=Ol(t,a),this.authority=n||J,this.path=$l(this.scheme,r||J),this.query=i||J,this.fragment=s||J,Dl(this,a))}get fsPath(){return ir(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:r,path:i,query:s,fragment:a}=t;return n===void 0?n=this.scheme:n===null&&(n=J),r===void 0?r=this.authority:r===null&&(r=J),i===void 0?i=this.path:i===null&&(i=J),s===void 0?s=this.query:s===null&&(s=J),a===void 0?a=this.fragment:a===null&&(a=J),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new pt(n,r,i,s,a)}static parse(t,n=!1){const r=Bl.exec(t);return r?new pt(r[2]||J,mn(r[4]||J),mn(r[5]||J),mn(r[7]||J),mn(r[9]||J),n):new pt(J,J,J,J,J)}static file(t){let n=J;if($t&&(t=t.replace(/\\\\/g,Ae)),t[0]===Ae&&t[1]===Ae){const r=t.indexOf(Ae,2);r===-1?(n=t.substring(2),t=Ae):(n=t.substring(2,r),t=t.substring(r)||Ae)}return new pt("file",n,t,J,J)}static from(t,n){return new pt(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return $t&&t.scheme==="file"?r=Wn.file(ue.join(ir(t,!0),...n)).path:r=ce.join(t.path,...n),t.with({path:r})}toString(t=!1){return sr(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof Wn)return t;{const n=new pt(t);return n._formatted=t.external??null,n._fsPath=t._sep===pi?t.fsPath??null:null,n}}else return t}};const pi=$t?1:void 0;class pt extends Pe{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=ir(this,!1)),this._fsPath}toString(t=!1){return t?sr(this,!0):(this._formatted||(this._formatted=sr(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=pi),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const bi={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 yi(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){const a=e.charCodeAt(s);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||t&&a===47||n&&a===91||n&&a===93||n&&a===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r!==void 0&&(r+=e.charAt(s));else{r===void 0&&(r=e.substr(0,s));const l=bi[a];l!==void 0?(i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=l):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r!==void 0?r:e}function Ul(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=bi[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function ir(e,t){let n;return e.authority&&e.path.length>1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,$t&&(n=n.replace(/\\//g,"\\\\")),n}function sr(e,t){const n=t?Ul:yi;let r="",{scheme:i,authority:s,path:a,query:l,fragment:o}=e;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=Ae,r+=Ae),s){let u=s.indexOf("@");if(u!==-1){const h=s.substr(0,u);s=s.substr(u+1),u=h.lastIndexOf(":"),u===-1?r+=n(h,!1,!1):(r+=n(h.substr(0,u),!1,!1),r+=":",r+=n(h.substr(u+1),!1,!0)),r+="@"}s=s.toLowerCase(),u=s.lastIndexOf(":"),u===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,u),!1,!0),r+=s.substr(u))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const u=a.charCodeAt(1);u>=65&&u<=90&&(a=`/${String.fromCharCode(u+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const u=a.charCodeAt(0);u>=65&&u<=90&&(a=`${String.fromCharCode(u+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return l&&(r+="?",r+=n(l,!1,!1)),o&&(r+="#",r+=t?o:yi(o,!1,!1)),r}function vi(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+vi(e.substr(3)):e}}const xi=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function mn(e){return e.match(xi)?e.replace(xi,t=>vi(t)):e}var Qe;(function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"})(Qe||(Qe={}));const ql="tkn";class jl{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(t){this._preferredWebSchema=t}get _remoteResourcesPath(){return ce.join(this._serverRootPath,Qe.vscodeRemoteResource)}rewrite(t){if(this._delegate)try{return this._delegate(t)}catch(l){return Ce(l),t}const n=t.authority;let r=this._hosts[n];r&&r.indexOf(":")!==-1&&r.indexOf("[")===-1&&(r=`[${r}]`);const i=this._ports[n],s=this._connectionTokens[n];let a=`path=${encodeURIComponent(t.path)}`;return typeof s=="string"&&(a+=`&${ql}=${encodeURIComponent(s)}`),Pe.from({scheme:ll?this._preferredWebSchema:Qe.vscodeRemoteResource,authority:`${r}:${i}`,path:this._remoteResourcesPath,query:a})}}const Wl=new jl,Hl="vscode-app",tn=class tn{asBrowserUri(t){const n=this.toUri(t);return this.uriToBrowserUri(n)}uriToBrowserUri(t){return t.scheme===Qe.vscodeRemote?Wl.rewrite(t):t.scheme===Qe.file&&(ol||ul===`${Qe.vscodeFileResource}://${tn.FALLBACK_AUTHORITY}`)?t.with({scheme:Qe.vscodeFileResource,authority:t.authority||tn.FALLBACK_AUTHORITY,query:null,fragment:null}):t}toUri(t,n){if(Pe.isUri(t))return t;if(globalThis._VSCODE_FILE_ROOT){const r=globalThis._VSCODE_FILE_ROOT;if(/^\\w[\\w\\d+.-]*:\\/\\//.test(r))return Pe.joinPath(Pe.parse(r,!0),t);const i=Pl(r,t);return Pe.file(i)}return Pe.parse(n.toUrl(t))}};tn.FALLBACK_AUTHORITY=Hl;let ar=tn;const wi=new ar;var _i;(function(e){const t=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"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";function r(s){let a;typeof s=="string"?a=new URL(s).searchParams:s instanceof URL?a=s.searchParams:Pe.isUri(s)&&(a=new URL(s.toString(!0)).searchParams);const l=a?.get(n);if(l)return t.get(l)}e.getHeadersFromQuery=r;function i(s,a,l){if(!globalThis.crossOriginIsolated)return;const o=a&&l?"3":l?"2":"1";s instanceof URLSearchParams?s.set(n,o):s[n]=o}e.addSearchParam=i})(_i||(_i={}));const or="default",zl="$initialize";class Gl{constructor(t,n,r,i,s){this.vsWorker=t,this.req=n,this.channel=r,this.method=i,this.args=s,this.type=0}}class Li{constructor(t,n,r,i){this.vsWorker=t,this.seq=n,this.res=r,this.err=i,this.type=1}}class Jl{constructor(t,n,r,i,s){this.vsWorker=t,this.req=n,this.channel=r,this.eventName=i,this.arg=s,this.type=2}}class Xl{constructor(t,n,r){this.vsWorker=t,this.req=n,this.event=r,this.type=3}}class Ql{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}}class Yl{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,n,r){const i=String(++this._lastSentReq);return new Promise((s,a)=>{this._pendingReplies[i]={resolve:s,reject:a},this._send(new Gl(this._workerId,i,t,n,r))})}listen(t,n,r){let i=null;const s=new _e({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new Jl(this._workerId,i,t,n,r))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new Ql(this._workerId,i)),i=null}});return s.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}createProxyToRemoteChannel(t,n){const r={get:(i,s)=>(typeof s=="string"&&!i[s]&&(Si(s)?i[s]=a=>this.listen(t,s,a):Ni(s)?i[s]=this.listen(t,s,void 0):s.charCodeAt(0)===36&&(i[s]=async(...a)=>(await n?.(),this.sendMessage(t,s,a)))),i[s])};return new Proxy(Object.create(null),r)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let r=t.err;t.err.$isError&&(r=new Error,r.name=t.err.name,r.message=t.err.message,r.stack=t.err.stack),n.reject(r);return}n.resolve(t.res)}_handleRequestMessage(t){const n=t.req;this._handler.handleMessage(t.channel,t.method,t.args).then(i=>{this._send(new Li(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=si(i.detail)),this._send(new Li(this._workerId,n,void 0,si(i)))})}_handleSubscribeEventMessage(t){const n=t.req,r=this._handler.handleEvent(t.channel,t.eventName,t.arg)(i=>{this._send(new Xl(this._workerId,n,i))});this._pendingEvents.set(n,r)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){const n=[];if(t.type===0)for(let r=0;r<t.args.length;r++)t.args[r]instanceof ArrayBuffer&&n.push(t.args[r]);else t.type===1&&t.res instanceof ArrayBuffer&&n.push(t.res);this._handler.sendMessage(t,n)}}function Ni(e){return e[0]==="o"&&e[1]==="n"&&hi(e.charCodeAt(2))}function Si(e){return/^onDynamic/.test(e)&&hi(e.charCodeAt(9))}class Zl{constructor(t,n){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new Yl({sendMessage:(r,i)=>{t(r,i)},handleMessage:(r,i,s)=>this._handleMessage(r,i,s),handleEvent:(r,i,s)=>this._handleEvent(r,i,s)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n,r){if(t===or&&n===zl)return this.initialize(r[0],r[1],r[2]);const i=t===or?this._requestHandler:this._localChannels.get(t);if(!i)return Promise.reject(new Error(`Missing channel ${t} on worker thread`));if(typeof i[n]!="function")return Promise.reject(new Error(`Missing method ${n} on worker thread channel ${t}`));try{return Promise.resolve(i[n].apply(i,r))}catch(s){return Promise.reject(s)}}_handleEvent(t,n,r){const i=t===or?this._requestHandler:this._localChannels.get(t);if(!i)throw new Error(`Missing channel ${t} on worker thread`);if(Si(n)){const s=i[n].call(i,r);if(typeof s!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);return s}if(Ni(n)){const s=i[n];if(typeof s!="function")throw new Error(`Missing event ${n} on request handler.`);return s}throw new Error(`Malformed event name ${n}`)}getChannel(t){if(!this._remoteChannels.has(t)){const n=this._protocol.createProxyToRemoteChannel(t);this._remoteChannels.set(t,n)}return this._remoteChannels.get(t)}async initialize(t,n,r){if(this._protocol.setWorkerId(t),this._requestHandlerFactory){this._requestHandler=this._requestHandlerFactory(this);return}return n&&(typeof n.baseUrl<"u"&&delete n.baseUrl,typeof n.paths<"u"&&typeof n.paths.vs<"u"&&delete n.paths.vs,typeof n.trustedTypesPolicy<"u"&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),import(`${wi.asBrowserUri(`${r}.js`).toString(!0)}`).then(s=>{if(this._requestHandler=s.create(this),!this._requestHandler)throw new Error("No RequestHandler!")})}}class Ye{constructor(t,n,r,i){this.originalStart=t,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Ai(e,t){return(t<<5)-t+e|0}function Kl(e,t){t=Ai(149417,t);for(let n=0,r=e.length;n<r;n++)t=Ai(e.charCodeAt(n),t);return t}class ki{constructor(t){this.source=t}getElements(){const t=this.source,n=new Int32Array(t.length);for(let r=0,i=t.length;r<i;r++)n[r]=t.charCodeAt(r);return n}}function eu(e,t,n){return new Ze(new ki(e),new ki(t)).ComputeDiff(n).changes}class bt{static Assert(t,n){if(!t)throw new Error(n)}}class yt{static Copy(t,n,r,i,s){for(let a=0;a<s;a++)r[i+a]=t[n+a]}static Copy2(t,n,r,i,s){for(let a=0;a<s;a++)r[i+a]=t[n+a]}}class Ri{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Ye(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class Ze{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;const[i,s,a]=Ze._getElements(t),[l,o,u]=Ze._getElements(n);this._hasStrings=a&&u,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=l,this._modifiedElementsOrHash=o,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const n=t.getElements();if(Ze._isStringArray(n)){const r=new Int32Array(n.length);for(let i=0,s=n.length;i<s;i++)r[i]=Kl(n[i],0);return[n,r,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(t,n){if(!this.ElementsAreEqual(t,n))return!1;const r=Ze._getStrictElement(this._originalSequence,t),i=Ze._getStrictElement(this._modifiedSequence,n);return r===i}static _getStrictElement(t,n){return typeof t.getStrictElement=="function"?t.getStrictElement(n):null}OriginalElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(t,n){return this._modifiedElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[t]===this._modifiedStringElements[n]:!0}ComputeDiff(t){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,t)}_ComputeDiff(t,n,r,i,s){const a=[!1];let l=this.ComputeDiffRecursive(t,n,r,i,a);return s&&(l=this.PrettifyChanges(l)),{quitEarly:a[0],changes:l}}ComputeDiffRecursive(t,n,r,i,s){for(s[0]=!1;t<=n&&r<=i&&this.ElementsAreEqual(t,r);)t++,r++;for(;n>=t&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(t>n||r>i){let f;return r<=i?(bt.Assert(t===n+1,"originalStart should only be one more than originalEnd"),f=[new Ye(t,0,r,i-r+1)]):t<=n?(bt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),f=[new Ye(t,n-t+1,r,0)]):(bt.Assert(t===n+1,"originalStart should only be one more than originalEnd"),bt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),f=[]),f}const a=[0],l=[0],o=this.ComputeRecursionPoint(t,n,r,i,a,l,s),u=a[0],h=l[0];if(o!==null)return o;if(!s[0]){const f=this.ComputeDiffRecursive(t,u,r,h,s);let m=[];return s[0]?m=[new Ye(u+1,n-(u+1)+1,h+1,i-(h+1)+1)]:m=this.ComputeDiffRecursive(u+1,n,h+1,i,s),this.ConcatenateChanges(f,m)}return[new Ye(t,n-t+1,r,i-r+1)]}WALKTRACE(t,n,r,i,s,a,l,o,u,h,f,m,d,g,p,y,w,_){let v=null,x=null,b=new Ri,L=n,S=r,M=d[0]-y[0]-i,F=-1073741824,O=this.m_forwardHistory.length-1;do{const C=M+t;C===L||C<S&&u[C-1]<u[C+1]?(f=u[C+1],g=f-M-i,f<F&&b.MarkNextChange(),F=f,b.AddModifiedElement(f+1,g),M=C+1-t):(f=u[C-1]+1,g=f-M-i,f<F&&b.MarkNextChange(),F=f-1,b.AddOriginalElement(f,g+1),M=C-1-t),O>=0&&(u=this.m_forwardHistory[O],t=u[0],L=1,S=u.length-1)}while(--O>=-1);if(v=b.getReverseChanges(),_[0]){let C=d[0]+1,N=y[0]+1;if(v!==null&&v.length>0){const k=v[v.length-1];C=Math.max(C,k.getOriginalEnd()),N=Math.max(N,k.getModifiedEnd())}x=[new Ye(C,m-C+1,N,p-N+1)]}else{b=new Ri,L=a,S=l,M=d[0]-y[0]-o,F=1073741824,O=w?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const C=M+s;C===L||C<S&&h[C-1]>=h[C+1]?(f=h[C+1]-1,g=f-M-o,f>F&&b.MarkNextChange(),F=f+1,b.AddOriginalElement(f+1,g+1),M=C+1-s):(f=h[C-1],g=f-M-o,f>F&&b.MarkNextChange(),F=f,b.AddModifiedElement(f+1,g+1),M=C-1-s),O>=0&&(h=this.m_reverseHistory[O],s=h[0],L=1,S=h.length-1)}while(--O>=-1);x=b.getChanges()}return this.ConcatenateChanges(v,x)}ComputeRecursionPoint(t,n,r,i,s,a,l){let o=0,u=0,h=0,f=0,m=0,d=0;t--,r--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=n-t+(i-r),p=g+1,y=new Int32Array(p),w=new Int32Array(p),_=i-r,v=n-t,x=t-r,b=n-i,S=(v-_)%2===0;y[_]=t,w[v]=n,l[0]=!1;for(let M=1;M<=g/2+1;M++){let F=0,O=0;h=this.ClipDiagonalBound(_-M,M,_,p),f=this.ClipDiagonalBound(_+M,M,_,p);for(let N=h;N<=f;N+=2){N===h||N<f&&y[N-1]<y[N+1]?o=y[N+1]:o=y[N-1]+1,u=o-(N-_)-x;const k=o;for(;o<n&&u<i&&this.ElementsAreEqual(o+1,u+1);)o++,u++;if(y[N]=o,o+u>F+O&&(F=o,O=u),!S&&Math.abs(N-v)<=M-1&&o>=w[N])return s[0]=o,a[0]=u,k<=w[N]&&M<=1448?this.WALKTRACE(_,h,f,x,v,m,d,b,y,w,o,n,s,u,i,a,S,l):null}const C=(F-t+(O-r)-M)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(F,C))return l[0]=!0,s[0]=F,a[0]=O,C>0&&M<=1448?this.WALKTRACE(_,h,f,x,v,m,d,b,y,w,o,n,s,u,i,a,S,l):(t++,r++,[new Ye(t,n-t+1,r,i-r+1)]);m=this.ClipDiagonalBound(v-M,M,v,p),d=this.ClipDiagonalBound(v+M,M,v,p);for(let N=m;N<=d;N+=2){N===m||N<d&&w[N-1]>=w[N+1]?o=w[N+1]-1:o=w[N-1],u=o-(N-v)-b;const k=o;for(;o>t&&u>r&&this.ElementsAreEqual(o,u);)o--,u--;if(w[N]=o,S&&Math.abs(N-_)<=M&&o<=y[N])return s[0]=o,a[0]=u,k>=y[N]&&M<=1448?this.WALKTRACE(_,h,f,x,v,m,d,b,y,w,o,n,s,u,i,a,S,l):null}if(M<=1447){let N=new Int32Array(f-h+2);N[0]=_-h+1,yt.Copy2(y,h,N,1,f-h+1),this.m_forwardHistory.push(N),N=new Int32Array(d-m+2),N[0]=v-m+1,yt.Copy2(w,m,N,1,d-m+1),this.m_reverseHistory.push(N)}}return this.WALKTRACE(_,h,f,x,v,m,d,b,y,w,o,n,s,u,i,a,S,l)}PrettifyChanges(t){for(let n=0;n<t.length;n++){const r=t[n],i=n<t.length-1?t[n+1].originalStart:this._originalElementsOrHash.length,s=n<t.length-1?t[n+1].modifiedStart:this._modifiedElementsOrHash.length,a=r.originalLength>0,l=r.modifiedLength>0;for(;r.originalStart+r.originalLength<i&&r.modifiedStart+r.modifiedLength<s&&(!a||this.OriginalElementsAreEqual(r.originalStart,r.originalStart+r.originalLength))&&(!l||this.ModifiedElementsAreEqual(r.modifiedStart,r.modifiedStart+r.modifiedLength));){const u=this.ElementsAreStrictEqual(r.originalStart,r.modifiedStart);if(this.ElementsAreStrictEqual(r.originalStart+r.originalLength,r.modifiedStart+r.modifiedLength)&&!u)break;r.originalStart++,r.modifiedStart++}const o=[null];if(n<t.length-1&&this.ChangesOverlap(t[n],t[n+1],o)){t[n]=o[0],t.splice(n+1,1),n--;continue}}for(let n=t.length-1;n>=0;n--){const r=t[n];let i=0,s=0;if(n>0){const f=t[n-1];i=f.originalStart+f.originalLength,s=f.modifiedStart+f.modifiedLength}const a=r.originalLength>0,l=r.modifiedLength>0;let o=0,u=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let f=1;;f++){const m=r.originalStart-f,d=r.modifiedStart-f;if(m<i||d<s||a&&!this.OriginalElementsAreEqual(m,m+r.originalLength)||l&&!this.ModifiedElementsAreEqual(d,d+r.modifiedLength))break;const p=(m===i&&d===s?5:0)+this._boundaryScore(m,r.originalLength,d,r.modifiedLength);p>u&&(u=p,o=f)}r.originalStart-=o,r.modifiedStart-=o;const h=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],h)){t[n-1]=h[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=t.length;n<r;n++){const i=t[n-1],s=t[n],a=s.originalStart-i.originalStart-i.originalLength,l=i.originalStart,o=s.originalStart+s.originalLength,u=o-l,h=i.modifiedStart,f=s.modifiedStart+s.modifiedLength,m=f-h;if(a<5&&u<20&&m<20){const d=this._findBetterContiguousSequence(l,u,h,m,a);if(d){const[g,p]=d;(g!==i.originalStart+i.originalLength||p!==i.modifiedStart+i.modifiedLength)&&(i.originalLength=g-i.originalStart,i.modifiedLength=p-i.modifiedStart,s.originalStart=g+a,s.modifiedStart=p+a,s.originalLength=o-s.originalStart,s.modifiedLength=f-s.modifiedStart)}}}return t}_findBetterContiguousSequence(t,n,r,i,s){if(n<s||i<s)return null;const a=t+n-s+1,l=r+i-s+1;let o=0,u=0,h=0;for(let f=t;f<a;f++)for(let m=r;m<l;m++){const d=this._contiguousSequenceScore(f,m,s);d>0&&d>o&&(o=d,u=f,h=m)}return o>0?[u,h]:null}_contiguousSequenceScore(t,n,r){let i=0;for(let s=0;s<r;s++){if(!this.ElementsAreEqual(t+s,n+s))return 0;i+=this._originalStringElements[t+s].length}return i}_OriginalIsBoundary(t){return t<=0||t>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){const r=t+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){const r=t+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(t,n,r,i){const s=this._OriginalRegionIsBoundary(t,n)?1:0,a=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+a}ConcatenateChanges(t,n){const r=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],r)){const i=new Array(t.length+n.length-1);return yt.Copy(t,0,i,0,t.length-1),i[t.length-1]=r[0],yt.Copy(n,1,i,t.length,n.length-1),i}else{const i=new Array(t.length+n.length);return yt.Copy(t,0,i,0,t.length),yt.Copy(n,0,i,t.length,n.length),i}}ChangesOverlap(t,n,r){if(bt.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),bt.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){const i=t.originalStart;let s=t.originalLength;const a=t.modifiedStart;let l=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(l=n.modifiedStart+n.modifiedLength-t.modifiedStart),r[0]=new Ye(i,s,a,l),!0}else return r[0]=null,!1}ClipDiagonalBound(t,n,r,i){if(t>=0&&t<i)return t;const s=r,a=i-r-1,l=n%2===0;if(t<0){const o=s%2===0;return l===o?0:1}else{const o=a%2===0;return l===o?i-1:i-2}}}let ee=class ft{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new ft(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return ft.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return ft.isBefore(this,t)}static isBefore(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<n.column}isBeforeOrEqual(t){return ft.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<=n.column}static compare(t,n){const r=t.lineNumber|0,i=n.lineNumber|0;if(r===i){const s=t.column|0,a=n.column|0;return s-a}return r-i}clone(){return new ft(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new ft(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},z=class re{constructor(t,n,r,i){t>r||t===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return re.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return re.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<t.startColumn||n.lineNumber===t.endLineNumber&&n.column>t.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return re.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>t.endColumn)}strictContainsRange(t){return re.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return re.plusRange(this,t)}static plusRange(t,n){let r,i,s,a;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,i=t.startColumn),n.endLineNumber>t.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===t.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,t.endColumn)):(s=t.endLineNumber,a=t.endColumn),new re(r,i,s,a)}intersectRanges(t){return re.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,s=t.endLineNumber,a=t.endColumn;const l=n.startLineNumber,o=n.startColumn,u=n.endLineNumber,h=n.endColumn;return r<l?(r=l,i=o):r===l&&(i=Math.max(i,o)),s>u?(s=u,a=h):s===u&&(a=Math.min(a,h)),r>s||r===s&&i>a?null:new re(r,i,s,a)}equalsRange(t){return re.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return re.getEndPosition(this)}static getEndPosition(t){return new ee(t.endLineNumber,t.endColumn)}getStartPosition(){return re.getStartPosition(this)}static getStartPosition(t){return new ee(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new re(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new re(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return re.collapseToStart(this)}static collapseToStart(t){return new re(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return re.collapseToEnd(this)}static collapseToEnd(t){return new re(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new re(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new re(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new re(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn)}static areIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<=n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<=t.startColumn)}static compareRangesUsingStarts(t,n){if(t&&n){const s=t.startLineNumber|0,a=n.startLineNumber|0;if(s===a){const l=t.startColumn|0,o=n.startColumn|0;if(l===o){const u=t.endLineNumber|0,h=n.endLineNumber|0;if(u===h){const f=t.endColumn|0,m=n.endColumn|0;return f-m}return u-h}return l-o}return s-a}return(t?1:0)-(n?1:0)}static compareRangesUsingEnds(t,n){return t.endLineNumber===n.endLineNumber?t.endColumn===n.endColumn?t.startLineNumber===n.startLineNumber?t.startColumn-n.startColumn:t.startLineNumber-n.startLineNumber:t.endColumn-n.endColumn:t.endLineNumber-n.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}};function Ei(e){return e<0?0:e>255?255:e|0}function vt(e){return e<0?0:e>4294967295?4294967295:e|0}class lr{constructor(t){const n=Ei(t);this._defaultValue=n,this._asciiMap=lr._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const r=Ei(n);t>=0&&t<256?this._asciiMap[t]=r:this._map.set(t,r)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class tu{constructor(t,n,r){const i=new Uint8Array(t*n);for(let s=0,a=t*n;s<a;s++)i[s]=r;this._data=i,this.rows=t,this.cols=n}get(t,n){return this._data[t*this.cols+n]}set(t,n,r){this._data[t*this.cols+n]=r}}class nu{constructor(t){let n=0,r=0;for(let s=0,a=t.length;s<a;s++){const[l,o,u]=t[s];o>n&&(n=o),l>r&&(r=l),u>r&&(r=u)}n++,r++;const i=new tu(r,n,0);for(let s=0,a=t.length;s<a;s++){const[l,o,u]=t[s];i.set(l,o,u)}this._states=i,this._maxCharCode=n}nextState(t,n){return n<0||n>=this._maxCharCode?0:this._states.get(t,n)}}let ur=null;function ru(){return ur===null&&(ur=new nu([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),ur}let qt=null;function iu(){if(qt===null){qt=new lr(0);const e=` <>\'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;n<e.length;n++)qt.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)qt.set(t.charCodeAt(n),2)}return qt}class dn{static _createLink(t,n,r,i,s){let a=s-1;do{const l=n.charCodeAt(a);if(t.get(l)!==2)break;a--}while(a>i);if(i>0){const l=n.charCodeAt(i-1),o=n.charCodeAt(a);(l===40&&o===41||l===91&&o===93||l===123&&o===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:n.substring(i,a+1)}}static computeLinks(t,n=ru()){const r=iu(),i=[];for(let s=1,a=t.getLineCount();s<=a;s++){const l=t.getLineContent(s),o=l.length;let u=0,h=0,f=0,m=1,d=!1,g=!1,p=!1,y=!1;for(;u<o;){let w=!1;const _=l.charCodeAt(u);if(m===13){let v;switch(_){case 40:d=!0,v=0;break;case 41:v=d?0:1;break;case 91:p=!0,g=!0,v=0;break;case 93:p=!1,v=g?0:1;break;case 123:y=!0,v=0;break;case 125:v=y?0:1;break;case 39:case 34:case 96:f===_?v=1:f===39||f===34||f===96?v=0:v=1;break;case 42:v=f===42?1:0;break;case 124:v=f===124?1:0;break;case 32:v=p?0:1;break;default:v=r.get(_)}v===1&&(i.push(dn._createLink(r,l,s,h,u)),w=!0)}else if(m===12){let v;_===91?(g=!0,v=0):v=r.get(_),v===1?w=!0:m=13}else m=n.nextState(m,_),m===0&&(w=!0);w&&(m=1,d=!1,g=!1,y=!1,h=u+1,f=_),u++}m===13&&i.push(dn._createLink(r,l,s,h,o))}return i}}function su(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:dn.computeLinks(e)}const On=class On{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(t,n,r,i,s){if(t&&n){const a=this.doNavigateValueSet(n,s);if(a)return{range:t,value:a}}if(r&&i){const a=this.doNavigateValueSet(i,s);if(a)return{range:r,value:a}}return null}doNavigateValueSet(t,n){const r=this.numberReplace(t,n);return r!==null?r:this.textReplace(t,n)}numberReplace(t,n){const r=Math.pow(10,t.length-(t.lastIndexOf(".")+1));let i=Number(t);const s=parseFloat(t);return!isNaN(i)&&!isNaN(s)&&i===s?i===0&&!n?null:(i=Math.floor(i*r),i+=n?r:-r,String(i/r)):null}textReplace(t,n){return this.valueSetsReplace(this._defaultValueSet,t,n)}valueSetsReplace(t,n,r){let i=null;for(let s=0,a=t.length;i===null&&s<a;s++)i=this.valueSetReplace(t[s],n,r);return i}valueSetReplace(t,n,r){let i=t.indexOf(n);return i>=0?(i+=r?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null}};On.INSTANCE=new On;let cr=On;const Mi=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var gn;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof pn?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:un.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Mi})})(gn||(gn={}));class pn{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?Mi:(this._emitter||(this._emitter=new _e),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class au{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new pn),this._token}cancel(){this._token?this._token instanceof pn&&this._token.cancel():this._token=gn.Cancelled}dispose(t=!1){t&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof pn&&this._token.dispose():this._token=gn.None}}class fr{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const bn=new fr,hr=new fr,mr=new fr,ou=new Array(230),lu=Object.create(null),uu=Object.create(null);(function(){const t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\\\",220,"VK_OEM_5","\\\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"\'",222,"VK_OEM_7","\'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]],n=[],r=[];for(const i of t){const[s,a,l,o,u,h,f,m,d]=i;if(r[a]||(r[a]=!0,lu[l]=a,uu[l.toLowerCase()]=a),!n[o]){if(n[o]=!0,!u)throw new Error(`String representation missing for key code ${o} around scan code ${l}`);bn.define(o,u),hr.define(o,m||u),mr.define(o,d||m||u)}h&&(ou[h]=o)}})();var Ci;(function(e){function t(l){return bn.keyCodeToStr(l)}e.toString=t;function n(l){return bn.strToKeyCode(l)}e.fromString=n;function r(l){return hr.keyCodeToStr(l)}e.toUserSettingsUS=r;function i(l){return mr.keyCodeToStr(l)}e.toUserSettingsGeneral=i;function s(l){return hr.strToKeyCode(l)||mr.strToKeyCode(l)}e.fromUserSettings=s;function a(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return bn.keyCodeToStr(l)}e.toElectronAccelerator=a})(Ci||(Ci={}));function cu(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class ye extends z{constructor(t,n,r,i){super(t,n,r,i),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return ye.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new ye(this.startLineNumber,this.startColumn,t,n):new ye(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new ee(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new ee(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new ye(t,n,this.endLineNumber,this.endColumn):new ye(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new ye(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new ye(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new ye(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new ye(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let r=0,i=t.length;r<i;r++)if(!this.selectionsEqual(t[r],n[r]))return!1;return!0}static isISelection(t){return t&&typeof t.selectionStartLineNumber=="number"&&typeof t.selectionStartColumn=="number"&&typeof t.positionLineNumber=="number"&&typeof t.positionColumn=="number"}static createWithDirection(t,n,r,i,s){return s===0?new ye(t,n,r,i):new ye(r,i,t,n)}}function fu(e){return typeof e=="string"}const Ti=Object.create(null);function c(e,t){if(fu(t)){const n=Ti[t];if(n===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return Ti[e]=t,{id:e}}const hu={add:c("add",6e4),plus:c("plus",6e4),gistNew:c("gist-new",6e4),repoCreate:c("repo-create",6e4),lightbulb:c("lightbulb",60001),lightBulb:c("light-bulb",60001),repo:c("repo",60002),repoDelete:c("repo-delete",60002),gistFork:c("gist-fork",60003),repoForked:c("repo-forked",60003),gitPullRequest:c("git-pull-request",60004),gitPullRequestAbandoned:c("git-pull-request-abandoned",60004),recordKeys:c("record-keys",60005),keyboard:c("keyboard",60005),tag:c("tag",60006),gitPullRequestLabel:c("git-pull-request-label",60006),tagAdd:c("tag-add",60006),tagRemove:c("tag-remove",60006),person:c("person",60007),personFollow:c("person-follow",60007),personOutline:c("person-outline",60007),personFilled:c("person-filled",60007),gitBranch:c("git-branch",60008),gitBranchCreate:c("git-branch-create",60008),gitBranchDelete:c("git-branch-delete",60008),sourceControl:c("source-control",60008),mirror:c("mirror",60009),mirrorPublic:c("mirror-public",60009),star:c("star",60010),starAdd:c("star-add",60010),starDelete:c("star-delete",60010),starEmpty:c("star-empty",60010),comment:c("comment",60011),commentAdd:c("comment-add",60011),alert:c("alert",60012),warning:c("warning",60012),search:c("search",60013),searchSave:c("search-save",60013),logOut:c("log-out",60014),signOut:c("sign-out",60014),logIn:c("log-in",60015),signIn:c("sign-in",60015),eye:c("eye",60016),eyeUnwatch:c("eye-unwatch",60016),eyeWatch:c("eye-watch",60016),circleFilled:c("circle-filled",60017),primitiveDot:c("primitive-dot",60017),closeDirty:c("close-dirty",60017),debugBreakpoint:c("debug-breakpoint",60017),debugBreakpointDisabled:c("debug-breakpoint-disabled",60017),debugHint:c("debug-hint",60017),terminalDecorationSuccess:c("terminal-decoration-success",60017),primitiveSquare:c("primitive-square",60018),edit:c("edit",60019),pencil:c("pencil",60019),info:c("info",60020),issueOpened:c("issue-opened",60020),gistPrivate:c("gist-private",60021),gitForkPrivate:c("git-fork-private",60021),lock:c("lock",60021),mirrorPrivate:c("mirror-private",60021),close:c("close",60022),removeClose:c("remove-close",60022),x:c("x",60022),repoSync:c("repo-sync",60023),sync:c("sync",60023),clone:c("clone",60024),desktopDownload:c("desktop-download",60024),beaker:c("beaker",60025),microscope:c("microscope",60025),vm:c("vm",60026),deviceDesktop:c("device-desktop",60026),file:c("file",60027),fileText:c("file-text",60027),more:c("more",60028),ellipsis:c("ellipsis",60028),kebabHorizontal:c("kebab-horizontal",60028),mailReply:c("mail-reply",60029),reply:c("reply",60029),organization:c("organization",60030),organizationFilled:c("organization-filled",60030),organizationOutline:c("organization-outline",60030),newFile:c("new-file",60031),fileAdd:c("file-add",60031),newFolder:c("new-folder",60032),fileDirectoryCreate:c("file-directory-create",60032),trash:c("trash",60033),trashcan:c("trashcan",60033),history:c("history",60034),clock:c("clock",60034),folder:c("folder",60035),fileDirectory:c("file-directory",60035),symbolFolder:c("symbol-folder",60035),logoGithub:c("logo-github",60036),markGithub:c("mark-github",60036),github:c("github",60036),terminal:c("terminal",60037),console:c("console",60037),repl:c("repl",60037),zap:c("zap",60038),symbolEvent:c("symbol-event",60038),error:c("error",60039),stop:c("stop",60039),variable:c("variable",60040),symbolVariable:c("symbol-variable",60040),array:c("array",60042),symbolArray:c("symbol-array",60042),symbolModule:c("symbol-module",60043),symbolPackage:c("symbol-package",60043),symbolNamespace:c("symbol-namespace",60043),symbolObject:c("symbol-object",60043),symbolMethod:c("symbol-method",60044),symbolFunction:c("symbol-function",60044),symbolConstructor:c("symbol-constructor",60044),symbolBoolean:c("symbol-boolean",60047),symbolNull:c("symbol-null",60047),symbolNumeric:c("symbol-numeric",60048),symbolNumber:c("symbol-number",60048),symbolStructure:c("symbol-structure",60049),symbolStruct:c("symbol-struct",60049),symbolParameter:c("symbol-parameter",60050),symbolTypeParameter:c("symbol-type-parameter",60050),symbolKey:c("symbol-key",60051),symbolText:c("symbol-text",60051),symbolReference:c("symbol-reference",60052),goToFile:c("go-to-file",60052),symbolEnum:c("symbol-enum",60053),symbolValue:c("symbol-value",60053),symbolRuler:c("symbol-ruler",60054),symbolUnit:c("symbol-unit",60054),activateBreakpoints:c("activate-breakpoints",60055),archive:c("archive",60056),arrowBoth:c("arrow-both",60057),arrowDown:c("arrow-down",60058),arrowLeft:c("arrow-left",60059),arrowRight:c("arrow-right",60060),arrowSmallDown:c("arrow-small-down",60061),arrowSmallLeft:c("arrow-small-left",60062),arrowSmallRight:c("arrow-small-right",60063),arrowSmallUp:c("arrow-small-up",60064),arrowUp:c("arrow-up",60065),bell:c("bell",60066),bold:c("bold",60067),book:c("book",60068),bookmark:c("bookmark",60069),debugBreakpointConditionalUnverified:c("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:c("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:c("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:c("debug-breakpoint-data-unverified",60072),debugBreakpointData:c("debug-breakpoint-data",60073),debugBreakpointDataDisabled:c("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:c("debug-breakpoint-log-unverified",60074),debugBreakpointLog:c("debug-breakpoint-log",60075),debugBreakpointLogDisabled:c("debug-breakpoint-log-disabled",60075),briefcase:c("briefcase",60076),broadcast:c("broadcast",60077),browser:c("browser",60078),bug:c("bug",60079),calendar:c("calendar",60080),caseSensitive:c("case-sensitive",60081),check:c("check",60082),checklist:c("checklist",60083),chevronDown:c("chevron-down",60084),chevronLeft:c("chevron-left",60085),chevronRight:c("chevron-right",60086),chevronUp:c("chevron-up",60087),chromeClose:c("chrome-close",60088),chromeMaximize:c("chrome-maximize",60089),chromeMinimize:c("chrome-minimize",60090),chromeRestore:c("chrome-restore",60091),circleOutline:c("circle-outline",60092),circle:c("circle",60092),debugBreakpointUnverified:c("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:c("terminal-decoration-incomplete",60092),circleSlash:c("circle-slash",60093),circuitBoard:c("circuit-board",60094),clearAll:c("clear-all",60095),clippy:c("clippy",60096),closeAll:c("close-all",60097),cloudDownload:c("cloud-download",60098),cloudUpload:c("cloud-upload",60099),code:c("code",60100),collapseAll:c("collapse-all",60101),colorMode:c("color-mode",60102),commentDiscussion:c("comment-discussion",60103),creditCard:c("credit-card",60105),dash:c("dash",60108),dashboard:c("dashboard",60109),database:c("database",60110),debugContinue:c("debug-continue",60111),debugDisconnect:c("debug-disconnect",60112),debugPause:c("debug-pause",60113),debugRestart:c("debug-restart",60114),debugStart:c("debug-start",60115),debugStepInto:c("debug-step-into",60116),debugStepOut:c("debug-step-out",60117),debugStepOver:c("debug-step-over",60118),debugStop:c("debug-stop",60119),debug:c("debug",60120),deviceCameraVideo:c("device-camera-video",60121),deviceCamera:c("device-camera",60122),deviceMobile:c("device-mobile",60123),diffAdded:c("diff-added",60124),diffIgnored:c("diff-ignored",60125),diffModified:c("diff-modified",60126),diffRemoved:c("diff-removed",60127),diffRenamed:c("diff-renamed",60128),diff:c("diff",60129),diffSidebyside:c("diff-sidebyside",60129),discard:c("discard",60130),editorLayout:c("editor-layout",60131),emptyWindow:c("empty-window",60132),exclude:c("exclude",60133),extensions:c("extensions",60134),eyeClosed:c("eye-closed",60135),fileBinary:c("file-binary",60136),fileCode:c("file-code",60137),fileMedia:c("file-media",60138),filePdf:c("file-pdf",60139),fileSubmodule:c("file-submodule",60140),fileSymlinkDirectory:c("file-symlink-directory",60141),fileSymlinkFile:c("file-symlink-file",60142),fileZip:c("file-zip",60143),files:c("files",60144),filter:c("filter",60145),flame:c("flame",60146),foldDown:c("fold-down",60147),foldUp:c("fold-up",60148),fold:c("fold",60149),folderActive:c("folder-active",60150),folderOpened:c("folder-opened",60151),gear:c("gear",60152),gift:c("gift",60153),gistSecret:c("gist-secret",60154),gist:c("gist",60155),gitCommit:c("git-commit",60156),gitCompare:c("git-compare",60157),compareChanges:c("compare-changes",60157),gitMerge:c("git-merge",60158),githubAction:c("github-action",60159),githubAlt:c("github-alt",60160),globe:c("globe",60161),grabber:c("grabber",60162),graph:c("graph",60163),gripper:c("gripper",60164),heart:c("heart",60165),home:c("home",60166),horizontalRule:c("horizontal-rule",60167),hubot:c("hubot",60168),inbox:c("inbox",60169),issueReopened:c("issue-reopened",60171),issues:c("issues",60172),italic:c("italic",60173),jersey:c("jersey",60174),json:c("json",60175),kebabVertical:c("kebab-vertical",60176),key:c("key",60177),law:c("law",60178),lightbulbAutofix:c("lightbulb-autofix",60179),linkExternal:c("link-external",60180),link:c("link",60181),listOrdered:c("list-ordered",60182),listUnordered:c("list-unordered",60183),liveShare:c("live-share",60184),loading:c("loading",60185),location:c("location",60186),mailRead:c("mail-read",60187),mail:c("mail",60188),markdown:c("markdown",60189),megaphone:c("megaphone",60190),mention:c("mention",60191),milestone:c("milestone",60192),gitPullRequestMilestone:c("git-pull-request-milestone",60192),mortarBoard:c("mortar-board",60193),move:c("move",60194),multipleWindows:c("multiple-windows",60195),mute:c("mute",60196),noNewline:c("no-newline",60197),note:c("note",60198),octoface:c("octoface",60199),openPreview:c("open-preview",60200),package:c("package",60201),paintcan:c("paintcan",60202),pin:c("pin",60203),play:c("play",60204),run:c("run",60204),plug:c("plug",60205),preserveCase:c("preserve-case",60206),preview:c("preview",60207),project:c("project",60208),pulse:c("pulse",60209),question:c("question",60210),quote:c("quote",60211),radioTower:c("radio-tower",60212),reactions:c("reactions",60213),references:c("references",60214),refresh:c("refresh",60215),regex:c("regex",60216),remoteExplorer:c("remote-explorer",60217),remote:c("remote",60218),remove:c("remove",60219),replaceAll:c("replace-all",60220),replace:c("replace",60221),repoClone:c("repo-clone",60222),repoForcePush:c("repo-force-push",60223),repoPull:c("repo-pull",60224),repoPush:c("repo-push",60225),report:c("report",60226),requestChanges:c("request-changes",60227),rocket:c("rocket",60228),rootFolderOpened:c("root-folder-opened",60229),rootFolder:c("root-folder",60230),rss:c("rss",60231),ruby:c("ruby",60232),saveAll:c("save-all",60233),saveAs:c("save-as",60234),save:c("save",60235),screenFull:c("screen-full",60236),screenNormal:c("screen-normal",60237),searchStop:c("search-stop",60238),server:c("server",60240),settingsGear:c("settings-gear",60241),settings:c("settings",60242),shield:c("shield",60243),smiley:c("smiley",60244),sortPrecedence:c("sort-precedence",60245),splitHorizontal:c("split-horizontal",60246),splitVertical:c("split-vertical",60247),squirrel:c("squirrel",60248),starFull:c("star-full",60249),starHalf:c("star-half",60250),symbolClass:c("symbol-class",60251),symbolColor:c("symbol-color",60252),symbolConstant:c("symbol-constant",60253),symbolEnumMember:c("symbol-enum-member",60254),symbolField:c("symbol-field",60255),symbolFile:c("symbol-file",60256),symbolInterface:c("symbol-interface",60257),symbolKeyword:c("symbol-keyword",60258),symbolMisc:c("symbol-misc",60259),symbolOperator:c("symbol-operator",60260),symbolProperty:c("symbol-property",60261),wrench:c("wrench",60261),wrenchSubaction:c("wrench-subaction",60261),symbolSnippet:c("symbol-snippet",60262),tasklist:c("tasklist",60263),telescope:c("telescope",60264),textSize:c("text-size",60265),threeBars:c("three-bars",60266),thumbsdown:c("thumbsdown",60267),thumbsup:c("thumbsup",60268),tools:c("tools",60269),triangleDown:c("triangle-down",60270),triangleLeft:c("triangle-left",60271),triangleRight:c("triangle-right",60272),triangleUp:c("triangle-up",60273),twitter:c("twitter",60274),unfold:c("unfold",60275),unlock:c("unlock",60276),unmute:c("unmute",60277),unverified:c("unverified",60278),verified:c("verified",60279),versions:c("versions",60280),vmActive:c("vm-active",60281),vmOutline:c("vm-outline",60282),vmRunning:c("vm-running",60283),watch:c("watch",60284),whitespace:c("whitespace",60285),wholeWord:c("whole-word",60286),window:c("window",60287),wordWrap:c("word-wrap",60288),zoomIn:c("zoom-in",60289),zoomOut:c("zoom-out",60290),listFilter:c("list-filter",60291),listFlat:c("list-flat",60292),listSelection:c("list-selection",60293),selection:c("selection",60293),listTree:c("list-tree",60294),debugBreakpointFunctionUnverified:c("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:c("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:c("debug-breakpoint-function-disabled",60296),debugStackframeActive:c("debug-stackframe-active",60297),circleSmallFilled:c("circle-small-filled",60298),debugStackframeDot:c("debug-stackframe-dot",60298),terminalDecorationMark:c("terminal-decoration-mark",60298),debugStackframe:c("debug-stackframe",60299),debugStackframeFocused:c("debug-stackframe-focused",60299),debugBreakpointUnsupported:c("debug-breakpoint-unsupported",60300),symbolString:c("symbol-string",60301),debugReverseContinue:c("debug-reverse-continue",60302),debugStepBack:c("debug-step-back",60303),debugRestartFrame:c("debug-restart-frame",60304),debugAlt:c("debug-alt",60305),callIncoming:c("call-incoming",60306),callOutgoing:c("call-outgoing",60307),menu:c("menu",60308),expandAll:c("expand-all",60309),feedback:c("feedback",60310),gitPullRequestReviewer:c("git-pull-request-reviewer",60310),groupByRefType:c("group-by-ref-type",60311),ungroupByRefType:c("ungroup-by-ref-type",60312),account:c("account",60313),gitPullRequestAssignee:c("git-pull-request-assignee",60313),bellDot:c("bell-dot",60314),debugConsole:c("debug-console",60315),library:c("library",60316),output:c("output",60317),runAll:c("run-all",60318),syncIgnored:c("sync-ignored",60319),pinned:c("pinned",60320),githubInverted:c("github-inverted",60321),serverProcess:c("server-process",60322),serverEnvironment:c("server-environment",60323),pass:c("pass",60324),issueClosed:c("issue-closed",60324),stopCircle:c("stop-circle",60325),playCircle:c("play-circle",60326),record:c("record",60327),debugAltSmall:c("debug-alt-small",60328),vmConnect:c("vm-connect",60329),cloud:c("cloud",60330),merge:c("merge",60331),export:c("export",60332),graphLeft:c("graph-left",60333),magnet:c("magnet",60334),notebook:c("notebook",60335),redo:c("redo",60336),checkAll:c("check-all",60337),pinnedDirty:c("pinned-dirty",60338),passFilled:c("pass-filled",60339),circleLargeFilled:c("circle-large-filled",60340),circleLarge:c("circle-large",60341),circleLargeOutline:c("circle-large-outline",60341),combine:c("combine",60342),gather:c("gather",60342),table:c("table",60343),variableGroup:c("variable-group",60344),typeHierarchy:c("type-hierarchy",60345),typeHierarchySub:c("type-hierarchy-sub",60346),typeHierarchySuper:c("type-hierarchy-super",60347),gitPullRequestCreate:c("git-pull-request-create",60348),runAbove:c("run-above",60349),runBelow:c("run-below",60350),notebookTemplate:c("notebook-template",60351),debugRerun:c("debug-rerun",60352),workspaceTrusted:c("workspace-trusted",60353),workspaceUntrusted:c("workspace-untrusted",60354),workspaceUnknown:c("workspace-unknown",60355),terminalCmd:c("terminal-cmd",60356),terminalDebian:c("terminal-debian",60357),terminalLinux:c("terminal-linux",60358),terminalPowershell:c("terminal-powershell",60359),terminalTmux:c("terminal-tmux",60360),terminalUbuntu:c("terminal-ubuntu",60361),terminalBash:c("terminal-bash",60362),arrowSwap:c("arrow-swap",60363),copy:c("copy",60364),personAdd:c("person-add",60365),filterFilled:c("filter-filled",60366),wand:c("wand",60367),debugLineByLine:c("debug-line-by-line",60368),inspect:c("inspect",60369),layers:c("layers",60370),layersDot:c("layers-dot",60371),layersActive:c("layers-active",60372),compass:c("compass",60373),compassDot:c("compass-dot",60374),compassActive:c("compass-active",60375),azure:c("azure",60376),issueDraft:c("issue-draft",60377),gitPullRequestClosed:c("git-pull-request-closed",60378),gitPullRequestDraft:c("git-pull-request-draft",60379),debugAll:c("debug-all",60380),debugCoverage:c("debug-coverage",60381),runErrors:c("run-errors",60382),folderLibrary:c("folder-library",60383),debugContinueSmall:c("debug-continue-small",60384),beakerStop:c("beaker-stop",60385),graphLine:c("graph-line",60386),graphScatter:c("graph-scatter",60387),pieChart:c("pie-chart",60388),bracket:c("bracket",60175),bracketDot:c("bracket-dot",60389),bracketError:c("bracket-error",60390),lockSmall:c("lock-small",60391),azureDevops:c("azure-devops",60392),verifiedFilled:c("verified-filled",60393),newline:c("newline",60394),layout:c("layout",60395),layoutActivitybarLeft:c("layout-activitybar-left",60396),layoutActivitybarRight:c("layout-activitybar-right",60397),layoutPanelLeft:c("layout-panel-left",60398),layoutPanelCenter:c("layout-panel-center",60399),layoutPanelJustify:c("layout-panel-justify",60400),layoutPanelRight:c("layout-panel-right",60401),layoutPanel:c("layout-panel",60402),layoutSidebarLeft:c("layout-sidebar-left",60403),layoutSidebarRight:c("layout-sidebar-right",60404),layoutStatusbar:c("layout-statusbar",60405),layoutMenubar:c("layout-menubar",60406),layoutCentered:c("layout-centered",60407),target:c("target",60408),indent:c("indent",60409),recordSmall:c("record-small",60410),errorSmall:c("error-small",60411),terminalDecorationError:c("terminal-decoration-error",60411),arrowCircleDown:c("arrow-circle-down",60412),arrowCircleLeft:c("arrow-circle-left",60413),arrowCircleRight:c("arrow-circle-right",60414),arrowCircleUp:c("arrow-circle-up",60415),layoutSidebarRightOff:c("layout-sidebar-right-off",60416),layoutPanelOff:c("layout-panel-off",60417),layoutSidebarLeftOff:c("layout-sidebar-left-off",60418),blank:c("blank",60419),heartFilled:c("heart-filled",60420),map:c("map",60421),mapHorizontal:c("map-horizontal",60421),foldHorizontal:c("fold-horizontal",60421),mapFilled:c("map-filled",60422),mapHorizontalFilled:c("map-horizontal-filled",60422),foldHorizontalFilled:c("fold-horizontal-filled",60422),circleSmall:c("circle-small",60423),bellSlash:c("bell-slash",60424),bellSlashDot:c("bell-slash-dot",60425),commentUnresolved:c("comment-unresolved",60426),gitPullRequestGoToChanges:c("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:c("git-pull-request-new-changes",60428),searchFuzzy:c("search-fuzzy",60429),commentDraft:c("comment-draft",60430),send:c("send",60431),sparkle:c("sparkle",60432),insert:c("insert",60433),mic:c("mic",60434),thumbsdownFilled:c("thumbsdown-filled",60435),thumbsupFilled:c("thumbsup-filled",60436),coffee:c("coffee",60437),snake:c("snake",60438),game:c("game",60439),vr:c("vr",60440),chip:c("chip",60441),piano:c("piano",60442),music:c("music",60443),micFilled:c("mic-filled",60444),repoFetch:c("repo-fetch",60445),copilot:c("copilot",60446),lightbulbSparkle:c("lightbulb-sparkle",60447),robot:c("robot",60448),sparkleFilled:c("sparkle-filled",60449),diffSingle:c("diff-single",60450),diffMultiple:c("diff-multiple",60451),surroundWith:c("surround-with",60452),share:c("share",60453),gitStash:c("git-stash",60454),gitStashApply:c("git-stash-apply",60455),gitStashPop:c("git-stash-pop",60456),vscode:c("vscode",60457),vscodeInsiders:c("vscode-insiders",60458),codeOss:c("code-oss",60459),runCoverage:c("run-coverage",60460),runAllCoverage:c("run-all-coverage",60461),coverage:c("coverage",60462),githubProject:c("github-project",60463),mapVertical:c("map-vertical",60464),foldVertical:c("fold-vertical",60464),mapVerticalFilled:c("map-vertical-filled",60465),foldVerticalFilled:c("fold-vertical-filled",60465),goToSearch:c("go-to-search",60466),percentage:c("percentage",60467),sortPercentage:c("sort-percentage",60467),attach:c("attach",60468)},mu={dialogError:c("dialog-error","error"),dialogWarning:c("dialog-warning","warning"),dialogInfo:c("dialog-info","info"),dialogClose:c("dialog-close","close"),treeItemExpanded:c("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:c("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:c("tree-filter-on-type-off","list-selection"),treeFilterClear:c("tree-filter-clear","close"),treeItemLoading:c("tree-item-loading","loading"),menuSelection:c("menu-selection","check"),menuSubmenu:c("menu-submenu","chevron-right"),menuBarMore:c("menubar-more","more"),scrollbarButtonLeft:c("scrollbar-button-left","triangle-left"),scrollbarButtonRight:c("scrollbar-button-right","triangle-right"),scrollbarButtonUp:c("scrollbar-button-up","triangle-up"),scrollbarButtonDown:c("scrollbar-button-down","triangle-down"),toolBarMore:c("toolbar-more","more"),quickInputBack:c("quick-input-back","arrow-left"),dropDownButton:c("drop-down-button",60084),symbolCustomColor:c("symbol-customcolor",60252),exportIcon:c("export",60332),workspaceUnspecified:c("workspace-unspecified",60355),newLine:c("newline",60394),thumbsDownFilled:c("thumbsdown-filled",60435),thumbsUpFilled:c("thumbsup-filled",60436),gitFetch:c("git-fetch",60445),lightbulbSparkleAutofix:c("lightbulb-sparkle-autofix",60447),debugBreakpointPending:c("debug-breakpoint-pending",60377)},V={...hu,...mu};class Pi{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new _e,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(t){this._onDidChange.fire({changedLanguages:t,changedColorMap:!1})}register(t,n){return this._tokenizationSupports.set(t,n),this.handleChange([t]),on(()=>{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){this._factories.get(t)?.dispose();const r=new du(this,t,n);return this._factories.set(t,r),on(()=>{const i=this._factories.get(t);!i||i!==r||(this._factories.delete(t),i.dispose())})}async getOrCreate(t){const n=this.get(t);if(n)return n;const r=this._factories.get(t);return!r||r.isResolved?null:(await r.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;const r=this._factories.get(t);return!!(!r||r.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class du extends mt{get isResolved(){return this._isResolved}constructor(t,n,r){super(),this._registry=t,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}}class gu{constructor(t,n,r){this.offset=t,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Ii;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(Ii||(Ii={}));var Fi;(function(e){const t=new Map;t.set(0,V.symbolMethod),t.set(1,V.symbolFunction),t.set(2,V.symbolConstructor),t.set(3,V.symbolField),t.set(4,V.symbolVariable),t.set(5,V.symbolClass),t.set(6,V.symbolStruct),t.set(7,V.symbolInterface),t.set(8,V.symbolModule),t.set(9,V.symbolProperty),t.set(10,V.symbolEvent),t.set(11,V.symbolOperator),t.set(12,V.symbolUnit),t.set(13,V.symbolValue),t.set(15,V.symbolEnum),t.set(14,V.symbolConstant),t.set(15,V.symbolEnum),t.set(16,V.symbolEnumMember),t.set(17,V.symbolKeyword),t.set(27,V.symbolSnippet),t.set(18,V.symbolText),t.set(19,V.symbolColor),t.set(20,V.symbolFile),t.set(21,V.symbolReference),t.set(22,V.symbolCustomColor),t.set(23,V.symbolFolder),t.set(24,V.symbolTypeParameter),t.set(25,V.account),t.set(26,V.issues);function n(s){let a=t.get(s);return a||(console.info("No codicon found for CompletionItemKind "+s),a=V.symbolProperty),a}e.toIcon=n;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function i(s,a){let l=r.get(s);return typeof l>"u"&&!a&&(l=9),l}e.fromString=i})(Fi||(Fi={}));var Vi;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Vi||(Vi={}));var Di;(function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"})(Di||(Di={}));var Oi;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Oi||(Oi={}));var $i;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})($i||($i={})),X("Array","array"),X("Boolean","boolean"),X("Class","class"),X("Constant","constant"),X("Constructor","constructor"),X("Enum","enumeration"),X("EnumMember","enumeration member"),X("Event","event"),X("Field","field"),X("File","file"),X("Function","function"),X("Interface","interface"),X("Key","key"),X("Method","method"),X("Module","module"),X("Namespace","namespace"),X("Null","null"),X("Number","number"),X("Object","object"),X("Operator","operator"),X("Package","package"),X("Property","property"),X("String","string"),X("Struct","struct"),X("TypeParameter","type parameter"),X("Variable","variable");var Bi;(function(e){const t=new Map;t.set(0,V.symbolFile),t.set(1,V.symbolModule),t.set(2,V.symbolNamespace),t.set(3,V.symbolPackage),t.set(4,V.symbolClass),t.set(5,V.symbolMethod),t.set(6,V.symbolProperty),t.set(7,V.symbolField),t.set(8,V.symbolConstructor),t.set(9,V.symbolEnum),t.set(10,V.symbolInterface),t.set(11,V.symbolFunction),t.set(12,V.symbolVariable),t.set(13,V.symbolConstant),t.set(14,V.symbolString),t.set(15,V.symbolNumber),t.set(16,V.symbolBoolean),t.set(17,V.symbolArray),t.set(18,V.symbolObject),t.set(19,V.symbolKey),t.set(20,V.symbolNull),t.set(21,V.symbolEnumMember),t.set(22,V.symbolStruct),t.set(23,V.symbolEvent),t.set(24,V.symbolOperator),t.set(25,V.symbolTypeParameter);function n(r){let i=t.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=V.symbolProperty),i}e.toIcon=n})(Bi||(Bi={}));let W1=(me=class{static fromValue(t){switch(t){case"comment":return me.Comment;case"imports":return me.Imports;case"region":return me.Region}return new me(t)}constructor(t){this.value=t}},me.Comment=new me("comment"),me.Imports=new me("imports"),me.Region=new me("region"),me);var Ui;(function(e){e[e.AIGenerated=1]="AIGenerated"})(Ui||(Ui={}));var qi;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(qi||(qi={}));var ji;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(ji||(ji={}));var Wi;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Wi||(Wi={})),new Pi,new Pi;var Hi;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Hi||(Hi={}));var zi;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(zi||(zi={}));var Gi;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Gi||(Gi={}));var Ji;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(Ji||(Ji={}));var Xi;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(Xi||(Xi={}));var Qi;(function(e){e[e.Deprecated=1]="Deprecated"})(Qi||(Qi={}));var Yi;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Yi||(Yi={}));var Zi;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Zi||(Zi={}));var Ki;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(Ki||(Ki={}));var es;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(es||(es={}));var ts;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(ts||(ts={}));var ns;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(ns||(ns={}));var rs;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"})(rs||(rs={}));var is;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(is||(is={}));var ss;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(ss||(ss={}));var as;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(as||(as={}));var os;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(os||(os={}));var ls;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(ls||(ls={}));var us;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(us||(us={}));var cs;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(cs||(cs={}));var fs;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(fs||(fs={}));var hs;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(hs||(hs={}));var dr;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(dr||(dr={}));var gr;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(gr||(gr={}));var pr;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(pr||(pr={}));var ms;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(ms||(ms={}));var ds;(function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"})(ds||(ds={}));var gs;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(gs||(gs={}));var ps;(function(e){e[e.AIGenerated=1]="AIGenerated"})(ps||(ps={}));var bs;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(bs||(bs={}));var ys;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(ys||(ys={}));var vs;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(vs||(vs={}));var xs;(function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"})(xs||(xs={}));var ws;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(ws||(ws={}));var _s;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(_s||(_s={}));var Ls;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(Ls||(Ls={}));var Ns;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(Ns||(Ns={}));var Ss;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(Ss||(Ss={}));var br;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(br||(br={}));var As;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(As||(As={}));var ks;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(ks||(ks={}));var Rs;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(Rs||(Rs={}));var Es;(function(e){e[e.Deprecated=1]="Deprecated"})(Es||(Es={}));var Ms;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(Ms||(Ms={}));var Cs;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(Cs||(Cs={}));var Ts;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Ts||(Ts={}));var Ps;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(Ps||(Ps={}));const Ft=class Ft{static chord(t,n){return cu(t,n)}};Ft.CtrlCmd=2048,Ft.Shift=1024,Ft.Alt=512,Ft.WinCtrl=256;let yr=Ft;function pu(){return{editor:void 0,languages:void 0,CancellationTokenSource:au,Emitter:_e,KeyCode:dr,KeyMod:yr,Position:ee,Range:z,Selection:ye,SelectionDirection:br,MarkerSeverity:gr,MarkerTag:pr,Uri:Pe,Token:gu}}const nn=class nn{static getChannel(t){return t.getChannel(nn.CHANNEL_NAME)}static setChannel(t,n){t.setChannel(nn.CHANNEL_NAME,n)}};nn.CHANNEL_NAME="editorWorkerHost";let vr=nn;var Is;class bu{constructor(){this[Is]="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,n=0){const r=this._map.get(t);if(r)return n!==0&&this.touch(r,n),r.value}set(t,n,r=0){let i=this._map.get(t);if(i)i.value=n,r!==0&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){const n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){const r=this._state;let i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const t=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}values(){const t=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}entries(){const t=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}[(Is=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}trimNew(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._tail,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.previous,r--;this._tail=n,this._size=r,n&&(n.next=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 n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(t===this._head)return;const r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===2){if(t===this._tail)return;const r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){const t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(const[n,r]of t)this.set(n,r)}}class yu extends bu{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get(t,n=2){return super.get(t,n)}peek(t){return super.get(t,0)}set(t,n){return super.set(t,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class vu extends yu{constructor(t,n=1){super(t,n)}trim(t){this.trimOld(t)}set(t,n){return super.set(t,n),this.checkTrim(),this}}class xu{constructor(){this.map=new Map}add(t,n){let r=this.map.get(t);r||(r=new Set,this.map.set(t,r)),r.add(n)}delete(t,n){const r=this.map.get(t);r&&(r.delete(n),r.size===0&&this.map.delete(t))}forEach(t,n){const r=this.map.get(t);r&&r.forEach(n)}get(t){const n=this.map.get(t);return n||new Set}}new vu(10);function wu(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function Fs(e){const t=[];for(const n of wu(e))typeof e[n]=="function"&&t.push(n);return t}function _u(e,t){const n=i=>function(){const s=Array.prototype.slice.call(arguments,0);return t(i,s)},r={};for(const i of e)r[i]=n(i);return r}var Vs;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(Vs||(Vs={}));var Ds;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(Ds||(Ds={}));var Os;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Os||(Os={}));function Lu(e,t,n,r,i){if(r===0)return!0;const s=t.charCodeAt(r-1);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=t.charCodeAt(r);if(e.get(a)!==0)return!0}return!1}function Nu(e,t,n,r,i){if(r+i===n)return!0;const s=t.charCodeAt(r+i);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=t.charCodeAt(r+i-1);if(e.get(a)!==0)return!0}return!1}function Su(e,t,n,r,i){return Lu(e,t,n,r,i)&&Nu(e,t,n,r,i)}class Au{constructor(t,n){this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){const n=t.length;let r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(t),!r))return null;const i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){xl(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||Su(this._wordSeparators,t,n,i,s))return r}while(r);return null}}function ku(e,t="Unreachable"){throw new Error(t)}function yn(e){if(!e()){debugger;e(),Ce(new pe("Assertion Failed"))}}function $s(e,t){let n=0;for(;n<e.length-1;){const r=e[n],i=e[n+1];if(!t(r,i))return!1;n++}return!0}const Ru="`~!@#$%^&*()-=+[{]}\\\\|;:\'\\",.<>/?";function Eu(e=""){let t="(-?\\\\d*\\\\.\\\\d\\\\w*)|([^";for(const n of Ru)e.indexOf(n)>=0||(t+="\\\\"+n);return t+="\\\\s]+)",new RegExp(t,"g")}const Bs=Eu();function Us(e){let t=Bs;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const qs=new Jo;qs.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function xr(e,t,n,r,i){if(t=Us(t),i||(i=an.first(qs)),n.length>i.maxLen){let u=e-i.maxLen/2;return u<0?u=0:r+=u,n=n.substring(u,e+i.maxLen/2),xr(e,t,n,r,i)}const s=Date.now(),a=e-1-r;let l=-1,o=null;for(let u=1;!(Date.now()-s>=i.timeBudget);u++){const h=a-i.windowSize*u;t.lastIndex=Math.max(0,h);const f=Mu(t,n,a,l);if(!f&&o||(o=f,h<=0))break;l=h}if(o){const u={word:o[0],startColumn:r+1+o.index,endColumn:r+1+o.index+o[0].length};return t.lastIndex=0,u}return null}function Mu(e,t,n,r){let i;for(;i=e.exec(t);){const s=i.index||0;if(s<=n&&e.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}class Cu{static computeUnicodeHighlights(t,n,r){const i=r?r.startLineNumber:1,s=r?r.endLineNumber:t.getLineCount(),a=new js(n),l=a.getCandidateCodePoints();let o;l==="allNonBasicAscii"?o=new RegExp("[^\\\\t\\\\n\\\\r\\\\x20-\\\\x7E]","g"):o=new RegExp(`${Tu(Array.from(l))}`,"g");const u=new Au(null,o),h=[];let f=!1,m,d=0,g=0,p=0;e:for(let y=i,w=s;y<=w;y++){const _=t.getLineContent(y),v=_.length;u.reset(0);do if(m=u.next(_),m){let x=m.index,b=m.index+m[0].length;if(x>0){const F=_.charCodeAt(x-1);tr(F)&&x--}if(b+1<v){const F=_.charCodeAt(b-1);tr(F)&&b++}const L=_.substring(x,b);let S=xr(x+1,Bs,_,0);S&&S.endColumn<=x+1&&(S=null);const M=a.shouldHighlightNonBasicASCII(L,S?S.word:null);if(M!==0){if(M===3?d++:M===2?g++:M===1?p++:ku(),h.length>=1e3){f=!0;break e}h.push(new z(y,x+1,y,b+1))}}while(m)}return{ranges:h,hasMore:f,ambiguousCharacterCount:d,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:p}}static computeUnicodeHighlightReason(t,n){const r=new js(n);switch(r.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=t.codePointAt(0),a=r.ambiguousCharacters.getPrimaryConfusable(s),l=Bt.getLocales().filter(o=>!Bt.getInstance(new Set([...n.allowedLocales,o])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:l}}case 1:return{kind:2}}}}function Tu(e,t){return`[${dl(e.map(r=>String.fromCodePoint(r)).join(""))}]`}class js{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=Bt.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const n of Ut.codePoints)Ws(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(const n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){const r=t.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(n)for(const a of n){const l=a.codePointAt(0),o=_l(a);i=i||o,!o&&!this.ambiguousCharacters.isAmbiguous(l)&&!Ut.isInvisibleCharacter(l)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!Ws(t)&&Ut.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function Ws(e){return e===" "||e===`\n`||e===" "}class vn{constructor(t,n,r){this.changes=t,this.moves=n,this.hitTimeout=r}}class Pu{constructor(t,n){this.lineRangeMapping=t,this.changes=n}}class W{static addRange(t,n){let r=0;for(;r<n.length&&n[r].endExclusive<t.start;)r++;let i=r;for(;i<n.length&&n[i].start<=t.endExclusive;)i++;if(r===i)n.splice(r,0,t);else{const s=Math.min(t.start,n[r].start),a=Math.max(t.endExclusive,n[i-1].endExclusive);n.splice(r,i-r,new W(s,a))}}static tryCreate(t,n){if(!(t>n))return new W(t,n)}static ofLength(t){return new W(0,t)}static ofStartAndLength(t,n){return new W(t,t+n)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new pe(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new W(this.start+t,this.endExclusive+t)}deltaStart(t){return new W(this.start+t,this.endExclusive)}deltaEnd(t){return new W(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(t){return this.start<=t&&t<this.endExclusive}join(t){return new W(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);if(n<=r)return new W(n,r)}intersects(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);return n<r}isBefore(t){return this.endExclusive<=t.start}isAfter(t){return this.start>=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}substring(t){return t.substring(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new pe(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new pe(`Invalid clipping range: ${this.toString()}`);return t<this.start?this.endExclusive-(this.start-t)%this.length:t>=this.endExclusive?this.start+(t-this.start)%this.length:t}forEach(t){for(let n=this.start;n<this.endExclusive;n++)t(n)}}function xt(e,t){const n=jt(e,t);return n===-1?void 0:e[n]}function jt(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const a=Math.floor((i+s)/2);t(e[a])?i=a+1:s=a}return i-1}function Iu(e,t){const n=wr(e,t);return n===e.length?void 0:e[n]}function wr(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const a=Math.floor((i+s)/2);t(e[a])?s=a:i=a+1}return i}const $n=class $n{constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if($n.assertInvariants){if(this._prevFindLastPredicate){for(const r of this._array)if(this._prevFindLastPredicate(r)&&!t(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}const n=jt(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};$n.assertInvariants=!1;let xn=$n;class ${static fromRangeInclusive(t){return new $(t.startLineNumber,t.endLineNumber+1)}static joinMany(t){if(t.length===0)return[];let n=new Ie(t[0].slice());for(let r=1;r<t.length;r++)n=n.getUnion(new Ie(t[r].slice()));return n.ranges}static join(t){if(t.length===0)throw new pe("lineRanges cannot be empty");let n=t[0].startLineNumber,r=t[0].endLineNumberExclusive;for(let i=1;i<t.length;i++)n=Math.min(n,t[i].startLineNumber),r=Math.max(r,t[i].endLineNumberExclusive);return new $(n,r)}static ofLength(t,n){return new $(t,t+n)}static deserialize(t){return new $(t[0],t[1])}constructor(t,n){if(t>n)throw new pe(`startLineNumber ${t} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new $(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new $(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new $(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(t){const n=Math.max(this.startLineNumber,t.startLineNumber),r=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(n<=r)return new $(n,r)}intersectsStrict(t){return this.startLineNumber<t.endLineNumberExclusive&&t.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(t){return this.startLineNumber<=t.endLineNumberExclusive&&t.startLineNumber<=this.endLineNumberExclusive}equals(t){return this.startLineNumber===t.startLineNumber&&this.endLineNumberExclusive===t.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new z(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new z(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(t){const n=[];for(let r=this.startLineNumber;r<this.endLineNumberExclusive;r++)n.push(t(r));return n}forEach(t){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}toOffsetRange(){return new W(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class Ie{constructor(t=[]){this._normalizedRanges=t}get ranges(){return this._normalizedRanges}addRange(t){if(t.length===0)return;const n=wr(this._normalizedRanges,i=>i.endLineNumberExclusive>=t.startLineNumber),r=jt(this._normalizedRanges,i=>i.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)this._normalizedRanges.splice(n,0,t);else if(n===r-1){const i=this._normalizedRanges[n];this._normalizedRanges[n]=i.join(t)}else{const i=this._normalizedRanges[n].join(this._normalizedRanges[r-1]).join(t);this._normalizedRanges.splice(n,r-n,i)}}contains(t){const n=xt(this._normalizedRanges,r=>r.startLineNumber<=t);return!!n&&n.endLineNumberExclusive>t}intersects(t){const n=xt(this._normalizedRanges,r=>r.startLineNumber<t.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>t.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;const n=[];let r=0,i=0,s=null;for(;r<this._normalizedRanges.length||i<t._normalizedRanges.length;){let a=null;if(r<this._normalizedRanges.length&&i<t._normalizedRanges.length){const l=this._normalizedRanges[r],o=t._normalizedRanges[i];l.startLineNumber<o.startLineNumber?(a=l,r++):(a=o,i++)}else r<this._normalizedRanges.length?(a=this._normalizedRanges[r],r++):(a=t._normalizedRanges[i],i++);s===null?s=a:s.endLineNumberExclusive>=a.startLineNumber?s=new $(s.startLineNumber,Math.max(s.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(s),s=a)}return s!==null&&n.push(s),new Ie(n)}subtractFrom(t){const n=wr(this._normalizedRanges,a=>a.endLineNumberExclusive>=t.startLineNumber),r=jt(this._normalizedRanges,a=>a.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)return new Ie([t]);const i=[];let s=t.startLineNumber;for(let a=n;a<r;a++){const l=this._normalizedRanges[a];l.startLineNumber>s&&i.push(new $(s,l.startLineNumber)),s=l.endLineNumberExclusive}return s<t.endLineNumberExclusive&&i.push(new $(s,t.endLineNumberExclusive)),new Ie(i)}toString(){return this._normalizedRanges.map(t=>t.toString()).join(", ")}getIntersection(t){const n=[];let r=0,i=0;for(;r<this._normalizedRanges.length&&i<t._normalizedRanges.length;){const s=this._normalizedRanges[r],a=t._normalizedRanges[i],l=s.intersect(a);l&&!l.isEmpty&&n.push(l),s.endLineNumberExclusive<a.endLineNumberExclusive?r++:i++}return new Ie(n)}getWithDelta(t){return new Ie(this._normalizedRanges.map(n=>n.delta(t)))}}const rt=class rt{static betweenPositions(t,n){return t.lineNumber===n.lineNumber?new rt(0,n.column-t.column):new rt(n.lineNumber-t.lineNumber,n.column-1)}static ofRange(t){return rt.betweenPositions(t.getStartPosition(),t.getEndPosition())}static ofText(t){let n=0,r=0;for(const i of t)i===`\n`?(n++,r=0):r++;return new rt(n,r)}constructor(t,n){this.lineCount=t,this.columnCount=n}isGreaterThanOrEqualTo(t){return this.lineCount!==t.lineCount?this.lineCount>t.lineCount:this.columnCount>=t.columnCount}createRange(t){return this.lineCount===0?new z(t.lineNumber,t.column,t.lineNumber,t.column+this.columnCount):new z(t.lineNumber,t.column,t.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(t){return this.lineCount===0?new ee(t.lineNumber,t.column+this.columnCount):new ee(t.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};rt.zero=new rt(0,0);let Hs=rt;class Fu{constructor(t,n){this.range=t,this.text=n}toSingleEditOperation(){return{range:this.range,text:this.text}}}class Le{static inverse(t,n,r){const i=[];let s=1,a=1;for(const o of t){const u=new Le(new $(s,o.original.startLineNumber),new $(a,o.modified.startLineNumber));u.modified.isEmpty||i.push(u),s=o.original.endLineNumberExclusive,a=o.modified.endLineNumberExclusive}const l=new Le(new $(s,n+1),new $(a,r+1));return l.modified.isEmpty||i.push(l),i}static clip(t,n,r){const i=[];for(const s of t){const a=s.original.intersect(n),l=s.modified.intersect(r);a&&!a.isEmpty&&l&&!l.isEmpty&&i.push(new Le(a,l))}return i}constructor(t,n){this.original=t,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Le(this.modified,this.original)}join(t){return new Le(this.original.join(t.original),this.modified.join(t.modified))}toRangeMapping(){const t=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(t&&n)return new ke(t,n);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new pe("not a valid diff");return new ke(new z(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new z(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new ke(new z(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new z(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(t,n){if(zs(this.original.endLineNumberExclusive,t)&&zs(this.modified.endLineNumberExclusive,n))return new ke(new z(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new z(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new ke(z.fromPositions(new ee(this.original.startLineNumber,1),wt(new ee(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),z.fromPositions(new ee(this.modified.startLineNumber,1),wt(new ee(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new ke(z.fromPositions(wt(new ee(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),wt(new ee(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),z.fromPositions(wt(new ee(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),n),wt(new ee(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));throw new pe}}function wt(e,t){if(e.lineNumber<1)return new ee(1,1);if(e.lineNumber>t.length)return new ee(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new ee(e.lineNumber,n.length+1):e}function zs(e,t){return e>=1&&e<=t.length}class je extends Le{static fromRangeMappings(t){const n=$.join(t.map(i=>$.fromRangeInclusive(i.originalRange))),r=$.join(t.map(i=>$.fromRangeInclusive(i.modifiedRange)));return new je(n,r,t)}constructor(t,n,r){super(t,n),this.innerChanges=r}flip(){return new je(this.modified,this.original,this.innerChanges?.map(t=>t.flip()))}withInnerChangesFromLineRanges(){return new je(this.original,this.modified,[this.toRangeMapping()])}}class ke{static assertSorted(t){for(let n=1;n<t.length;n++){const r=t[n-1],i=t[n];if(!(r.originalRange.getEndPosition().isBeforeOrEqual(i.originalRange.getStartPosition())&&r.modifiedRange.getEndPosition().isBeforeOrEqual(i.modifiedRange.getStartPosition())))throw new pe("Range mappings must be sorted")}}constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new ke(this.modifiedRange,this.originalRange)}toTextEdit(t){const n=t.getValueOfRange(this.modifiedRange);return new Fu(this.originalRange,n)}}const Vu=3;class Du{computeDiff(t,n,r){const s=new Bu(t,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),a=[];let l=null;for(const o of s.changes){let u;o.originalEndLineNumber===0?u=new $(o.originalStartLineNumber+1,o.originalStartLineNumber+1):u=new $(o.originalStartLineNumber,o.originalEndLineNumber+1);let h;o.modifiedEndLineNumber===0?h=new $(o.modifiedStartLineNumber+1,o.modifiedStartLineNumber+1):h=new $(o.modifiedStartLineNumber,o.modifiedEndLineNumber+1);let f=new je(u,h,o.charChanges?.map(m=>new ke(new z(m.originalStartLineNumber,m.originalStartColumn,m.originalEndLineNumber,m.originalEndColumn),new z(m.modifiedStartLineNumber,m.modifiedStartColumn,m.modifiedEndLineNumber,m.modifiedEndColumn))));l&&(l.modified.endLineNumberExclusive===f.modified.startLineNumber||l.original.endLineNumberExclusive===f.original.startLineNumber)&&(f=new je(l.original.join(f.original),l.modified.join(f.modified),l.innerChanges&&f.innerChanges?l.innerChanges.concat(f.innerChanges):void 0),a.pop()),a.push(f),l=f}return yn(()=>$s(a,(o,u)=>u.original.startLineNumber-o.original.endLineNumberExclusive===u.modified.startLineNumber-o.modified.endLineNumberExclusive&&o.original.endLineNumberExclusive<u.original.startLineNumber&&o.modified.endLineNumberExclusive<u.modified.startLineNumber)),new vn(a,[],s.quitEarly)}}function Gs(e,t,n,r){return new Ze(e,t,n).ComputeDiff(r)}let Js=class{constructor(t){const n=[],r=[];for(let i=0,s=t.length;i<s;i++)n[i]=_r(t[i],1),r[i]=Lr(t[i],1);this.lines=t,this._startColumns=n,this._endColumns=r}getElements(){const t=[];for(let n=0,r=this.lines.length;n<r;n++)t[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return t}getStrictElement(t){return this.lines[t]}getStartLineNumber(t){return t+1}getEndLineNumber(t){return t+1}createCharSequence(t,n,r){const i=[],s=[],a=[];let l=0;for(let o=n;o<=r;o++){const u=this.lines[o],h=t?this._startColumns[o]:1,f=t?this._endColumns[o]:u.length+1;for(let m=h;m<f;m++)i[l]=u.charCodeAt(m-1),s[l]=o+1,a[l]=m,l++;!t&&o<r&&(i[l]=10,s[l]=o+1,a[l]=u.length+1,l++)}return new Ou(i,s,a)}};class Ou{constructor(t,n,r){this._charCodes=t,this._lineNumbers=n,this._columns=r}toString(){return"["+this._charCodes.map((t,n)=>(t===10?"\\\\n":String.fromCharCode(t))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(t,n){if(t<0||t>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}}class _t{constructor(t,n,r,i,s,a,l,o){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=l,this.modifiedEndColumn=o}static createFromDiffChange(t,n,r){const i=n.getStartLineNumber(t.originalStart),s=n.getStartColumn(t.originalStart),a=n.getEndLineNumber(t.originalStart+t.originalLength-1),l=n.getEndColumn(t.originalStart+t.originalLength-1),o=r.getStartLineNumber(t.modifiedStart),u=r.getStartColumn(t.modifiedStart),h=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),f=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new _t(i,s,a,l,o,u,h,f)}}function $u(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r<i;r++){const s=e[r],a=s.originalStart-(n.originalStart+n.originalLength),l=s.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,l)<Vu?(n.originalLength=s.originalStart+s.originalLength-n.originalStart,n.modifiedLength=s.modifiedStart+s.modifiedLength-n.modifiedStart):(t.push(s),n=s)}return t}class Wt{constructor(t,n,r,i,s){this.originalStartLineNumber=t,this.originalEndLineNumber=n,this.modifiedStartLineNumber=r,this.modifiedEndLineNumber=i,this.charChanges=s}static createFromDiffResult(t,n,r,i,s,a,l){let o,u,h,f,m;if(n.originalLength===0?(o=r.getStartLineNumber(n.originalStart)-1,u=0):(o=r.getStartLineNumber(n.originalStart),u=r.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(h=i.getStartLineNumber(n.modifiedStart)-1,f=0):(h=i.getStartLineNumber(n.modifiedStart),f=i.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const d=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),g=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(d.getElements().length>0&&g.getElements().length>0){let p=Gs(d,g,s,!0).changes;l&&(p=$u(p)),m=[];for(let y=0,w=p.length;y<w;y++)m.push(_t.createFromDiffChange(p[y],d,g))}}return new Wt(o,u,h,f,m)}}class Bu{constructor(t,n,r){this.shouldComputeCharChanges=r.shouldComputeCharChanges,this.shouldPostProcessCharChanges=r.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=r.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=r.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=n,this.original=new Js(t),this.modified=new Js(n),this.continueLineDiff=Xs(r.maxComputationTime),this.continueCharDiff=Xs(r.maxComputationTime===0?0:Math.min(r.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const t=Gs(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=t.changes,r=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){const l=[];for(let o=0,u=n.length;o<u;o++)l.push(Wt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[o],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:r,changes:l}}const i=[];let s=0,a=0;for(let l=-1,o=n.length;l<o;l++){const u=l+1<o?n[l+1]:null,h=u?u.originalStart:this.originalLines.length,f=u?u.modifiedStart:this.modifiedLines.length;for(;s<h&&a<f;){const m=this.originalLines[s],d=this.modifiedLines[a];if(m!==d){{let g=_r(m,1),p=_r(d,1);for(;g>1&&p>1;){const y=m.charCodeAt(g-2),w=d.charCodeAt(p-2);if(y!==w)break;g--,p--}(g>1||p>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,g,a+1,1,p)}{let g=Lr(m,1),p=Lr(d,1);const y=m.length+1,w=d.length+1;for(;g<y&&p<w;){const _=m.charCodeAt(g-1),v=m.charCodeAt(p-1);if(_!==v)break;g++,p++}(g<y||p<w)&&this._pushTrimWhitespaceCharChange(i,s+1,g,y,a+1,p,w)}}s++,a++}u&&(i.push(Wt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,u,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=u.originalLength,a+=u.modifiedLength)}return{quitEarly:r,changes:i}}_pushTrimWhitespaceCharChange(t,n,r,i,s,a,l){if(this._mergeTrimWhitespaceCharChange(t,n,r,i,s,a,l))return;let o;this.shouldComputeCharChanges&&(o=[new _t(n,r,n,i,s,a,s,l)]),t.push(new Wt(n,n,s,s,o))}_mergeTrimWhitespaceCharChange(t,n,r,i,s,a,l){const o=t.length;if(o===0)return!1;const u=t[o-1];return u.originalEndLineNumber===0||u.modifiedEndLineNumber===0?!1:u.originalEndLineNumber===n&&u.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new _t(n,r,n,i,s,a,s,l)),!0):u.originalEndLineNumber+1===n&&u.modifiedEndLineNumber+1===s?(u.originalEndLineNumber=n,u.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new _t(n,r,n,i,s,a,s,l)),!0):!1}}function _r(e,t){const n=pl(e);return n===-1?t:n+1}function Lr(e,t){const n=bl(e);return n===-1?t:n+2}function Xs(e){if(e===0)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}function Uu(e,t,n=(r,i)=>r===i){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}function*qu(e,t){let n,r;for(const i of e)r!==void 0&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function ju(e,t){for(let n=0;n<=e.length;n++)t(n===0?void 0:e[n-1],n===e.length?void 0:e[n])}function Wu(e,t){for(let n=0;n<e.length;n++)t(n===0?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function Hu(e,t){for(const n of t)e.push(n)}var Nr;(function(e){function t(s){return s<0}e.isLessThan=t;function n(s){return s<=0}e.isLessThanOrEqual=n;function r(s){return s>0}e.isGreaterThan=r;function i(s){return s===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(Nr||(Nr={}));function wn(e,t){return(n,r)=>t(e(n),e(r))}const _n=(e,t)=>e-t;function zu(e){return(t,n)=>-e(t,n)}const Vt=class Vt{constructor(t){this.iterate=t}toArray(){const t=[];return this.iterate(n=>(t.push(n),!0)),t}filter(t){return new Vt(n=>this.iterate(r=>t(r)?n(r):!0))}map(t){return new Vt(n=>this.iterate(r=>n(t(r))))}findLast(t){let n;return this.iterate(r=>(t(r)&&(n=r),!0)),n}findLastMaxBy(t){let n,r=!0;return this.iterate(i=>((r||Nr.isGreaterThan(t(i,n)))&&(r=!1,n=i),!0)),n}};Vt.empty=new Vt(t=>{});let Qs=Vt;class We{static trivial(t,n){return new We([new Y(W.ofLength(t.length),W.ofLength(n.length))],!1)}static trivialTimedOut(t,n){return new We([new Y(W.ofLength(t.length),W.ofLength(n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}}class Y{static invert(t,n){const r=[];return ju(t,(i,s)=>{r.push(Y.fromOffsetPairs(i?i.getEndExclusives():He.zero,s?s.getStarts():new He(n,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new Y(new W(t.offset1,n.offset1),new W(t.offset2,n.offset2))}static assertSorted(t){let n;for(const r of t){if(n&&!(n.seq1Range.endExclusive<=r.seq1Range.start&&n.seq2Range.endExclusive<=r.seq2Range.start))throw new pe("Sequence diffs must be sorted");n=r}}constructor(t,n){this.seq1Range=t,this.seq2Range=n}swap(){return new Y(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new Y(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new Y(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new Y(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new Y(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){const n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(!(!n||!r))return new Y(n,r)}getStarts(){return new He(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new He(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}const ct=class ct{constructor(t,n){this.offset1=t,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(t){return t===0?this:new ct(this.offset1+t,this.offset2+t)}equals(t){return this.offset1===t.offset1&&this.offset2===t.offset2}};ct.zero=new ct(0,0),ct.max=new ct(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);let He=ct;const Bn=class Bn{isValid(){return!0}};Bn.instance=new Bn;let Ht=Bn;class Gu{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new pe("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class Sr{constructor(t,n){this.width=t,this.height=n,this.array=[],this.array=new Array(t*n)}get(t,n){return this.array[t+n*this.width]}set(t,n,r){this.array[t+n*this.width]=r}}function Ar(e){return e===32||e===9}const rn=class rn{static getKey(t){let n=this.chrKeys.get(t);return n===void 0&&(n=this.chrKeys.size,this.chrKeys.set(t,n)),n}constructor(t,n,r){this.range=t,this.lines=n,this.source=r,this.histogram=[];let i=0;for(let s=t.startLineNumber-1;s<t.endLineNumberExclusive-1;s++){const a=n[s];for(let o=0;o<a.length;o++){i++;const u=a[o],h=rn.getKey(u);this.histogram[h]=(this.histogram[h]||0)+1}i++;const l=rn.getKey(`\n`);this.histogram[l]=(this.histogram[l]||0)+1}this.totalCount=i}computeSimilarity(t){let n=0;const r=Math.max(this.histogram.length,t.histogram.length);for(let i=0;i<r;i++)n+=Math.abs((this.histogram[i]??0)-(t.histogram[i]??0));return 1-n/(this.totalCount+t.totalCount)}};rn.chrKeys=new Map;let Ln=rn;class Ju{compute(t,n,r=Ht.instance,i){if(t.length===0||n.length===0)return We.trivial(t,n);const s=new Sr(t.length,n.length),a=new Sr(t.length,n.length),l=new Sr(t.length,n.length);for(let g=0;g<t.length;g++)for(let p=0;p<n.length;p++){if(!r.isValid())return We.trivialTimedOut(t,n);const y=g===0?0:s.get(g-1,p),w=p===0?0:s.get(g,p-1);let _;t.getElement(g)===n.getElement(p)?(g===0||p===0?_=0:_=s.get(g-1,p-1),g>0&&p>0&&a.get(g-1,p-1)===3&&(_+=l.get(g-1,p-1)),_+=i?i(g,p):1):_=-1;const v=Math.max(y,w,_);if(v===_){const x=g>0&&p>0?l.get(g-1,p-1):0;l.set(g,p,x+1),a.set(g,p,3)}else v===y?(l.set(g,p,0),a.set(g,p,1)):v===w&&(l.set(g,p,0),a.set(g,p,2));s.set(g,p,v)}const o=[];let u=t.length,h=n.length;function f(g,p){(g+1!==u||p+1!==h)&&o.push(new Y(new W(g+1,u),new W(p+1,h))),u=g,h=p}let m=t.length-1,d=n.length-1;for(;m>=0&&d>=0;)a.get(m,d)===3?(f(m,d),m--,d--):a.get(m,d)===1?m--:d--;return f(-1,-1),o.reverse(),new We(o,!1)}}class Ys{compute(t,n,r=Ht.instance){if(t.length===0||n.length===0)return We.trivial(t,n);const i=t,s=n;function a(p,y){for(;p<i.length&&y<s.length&&i.getElement(p)===s.getElement(y);)p++,y++;return p}let l=0;const o=new Xu;o.set(0,a(0,0));const u=new Qu;u.set(0,o.get(0)===0?null:new Zs(null,0,0,o.get(0)));let h=0;e:for(;;){if(l++,!r.isValid())return We.trivialTimedOut(i,s);const p=-Math.min(l,s.length+l%2),y=Math.min(l,i.length+l%2);for(h=p;h<=y;h+=2){const w=h===y?-1:o.get(h+1),_=h===p?-1:o.get(h-1)+1,v=Math.min(Math.max(w,_),i.length),x=v-h;if(v>i.length||x>s.length)continue;const b=a(v,x);o.set(h,b);const L=v===w?u.get(h+1):u.get(h-1);if(u.set(h,b!==v?new Zs(L,v,x,b-v):L),o.get(h)===i.length&&o.get(h)-h===s.length)break e}}let f=u.get(h);const m=[];let d=i.length,g=s.length;for(;;){const p=f?f.x+f.length:0,y=f?f.y+f.length:0;if((p!==d||y!==g)&&m.push(new Y(new W(p,d),new W(y,g))),!f)break;d=f.x,g=f.y,f=f.prev}return m.reverse(),new We(m,!1)}}class Zs{constructor(t,n,r,i){this.prev=t,this.x=n,this.y=r,this.length=i}}class Xu{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){if(t<0){if(t=-t-1,t>=this.negativeArr.length){const r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[t]=n}else{if(t>=this.positiveArr.length){const r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[t]=n}}}class Qu{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){t<0?(t=-t-1,this.negativeArr[t]=n):this.positiveArr[t]=n}}class Nn{constructor(t,n,r){this.lines=t,this.range=n,this.considerWhitespaceChanges=r,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let i=this.range.startLineNumber;i<=this.range.endLineNumber;i++){let s=t[i-1],a=0;i===this.range.startLineNumber&&this.range.startColumn>1&&(a=this.range.startColumn-1,s=s.substring(a)),this.lineStartOffsets.push(a);let l=0;if(!r){const u=s.trimStart();l=s.length-u.length,s=u.trimEnd()}this.trimmedWsLengthsByLineIdx.push(l);const o=i===this.range.endLineNumber?Math.min(this.range.endColumn-1-a-l,s.length):s.length;for(let u=0;u<o;u++)this.elements.push(s.charCodeAt(u));i<this.range.endLineNumber&&(this.elements.push(10),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new W(0,this.length))}getText(t){return this.elements.slice(t.start,t.endExclusive).map(n=>String.fromCharCode(n)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){const n=ea(t>0?this.elements[t-1]:-1),r=ea(t<this.elements.length?this.elements[t]:-1);if(n===7&&r===8)return 0;if(n===8)return 150;let i=0;return n!==r&&(i+=10,n===0&&r===1&&(i+=1)),i+=Ks(n),i+=Ks(r),i}translateOffset(t,n="right"){const r=jt(this.firstElementOffsetByLineIdx,s=>s<=t),i=t-this.firstElementOffsetByLineIdx[r];return new ee(this.range.startLineNumber+r,1+this.lineStartOffsets[r]+i+(i===0&&n==="left"?0:this.trimmedWsLengthsByLineIdx[r]))}translateRange(t){const n=this.translateOffset(t.start,"right"),r=this.translateOffset(t.endExclusive,"left");return r.isBefore(n)?z.fromPositions(r,r):z.fromPositions(n,r)}findWordContaining(t){if(t<0||t>=this.elements.length||!kr(this.elements[t]))return;let n=t;for(;n>0&&kr(this.elements[n-1]);)n--;let r=t;for(;r<this.elements.length&&kr(this.elements[r]);)r++;return new W(n,r)}countLinesIn(t){return this.translateOffset(t.endExclusive).lineNumber-this.translateOffset(t.start).lineNumber}isStronglyEqual(t,n){return this.elements[t]===this.elements[n]}extendToFullLines(t){const n=xt(this.firstElementOffsetByLineIdx,i=>i<=t.start)??0,r=Iu(this.firstElementOffsetByLineIdx,i=>t.endExclusive<=i)??this.elements.length;return new W(n,r)}}function kr(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const Yu={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Ks(e){return Yu[e]}function ea(e){return e===10?8:e===13?7:Ar(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}function Zu(e,t,n,r,i,s){let{moves:a,excludedChanges:l}=ec(e,t,n,s);if(!s.isValid())return[];const o=e.filter(h=>!l.has(h)),u=tc(o,r,i,t,n,s);return Hu(a,u),a=nc(a),a=a.filter(h=>{const f=h.original.toOffsetRange().slice(t).map(d=>d.trim());return f.join(`\n`).length>=15&&Ku(f,d=>d.length>=2)>=2}),a=rc(e,a),a}function Ku(e,t){let n=0;for(const r of e)t(r)&&n++;return n}function ec(e,t,n,r){const i=[],s=e.filter(o=>o.modified.isEmpty&&o.original.length>=3).map(o=>new Ln(o.original,t,o)),a=new Set(e.filter(o=>o.original.isEmpty&&o.modified.length>=3).map(o=>new Ln(o.modified,n,o))),l=new Set;for(const o of s){let u=-1,h;for(const f of a){const m=o.computeSimilarity(f);m>u&&(u=m,h=f)}if(u>.9&&h&&(a.delete(h),i.push(new Le(o.range,h.range)),l.add(o.source),l.add(h.source)),!r.isValid())return{moves:i,excludedChanges:l}}return{moves:i,excludedChanges:l}}function tc(e,t,n,r,i,s){const a=[],l=new xu;for(const m of e)for(let d=m.original.startLineNumber;d<m.original.endLineNumberExclusive-2;d++){const g=`${t[d-1]}:${t[d+1-1]}:${t[d+2-1]}`;l.add(g,{range:new $(d,d+3)})}const o=[];e.sort(wn(m=>m.modified.startLineNumber,_n));for(const m of e){let d=[];for(let g=m.modified.startLineNumber;g<m.modified.endLineNumberExclusive-2;g++){const p=`${n[g-1]}:${n[g+1-1]}:${n[g+2-1]}`,y=new $(g,g+3),w=[];l.forEach(p,({range:_})=>{for(const x of d)if(x.originalLineRange.endLineNumberExclusive+1===_.endLineNumberExclusive&&x.modifiedLineRange.endLineNumberExclusive+1===y.endLineNumberExclusive){x.originalLineRange=new $(x.originalLineRange.startLineNumber,_.endLineNumberExclusive),x.modifiedLineRange=new $(x.modifiedLineRange.startLineNumber,y.endLineNumberExclusive),w.push(x);return}const v={modifiedLineRange:y,originalLineRange:_};o.push(v),w.push(v)}),d=w}if(!s.isValid())return[]}o.sort(zu(wn(m=>m.modifiedLineRange.length,_n)));const u=new Ie,h=new Ie;for(const m of o){const d=m.modifiedLineRange.startLineNumber-m.originalLineRange.startLineNumber,g=u.subtractFrom(m.modifiedLineRange),p=h.subtractFrom(m.originalLineRange).getWithDelta(d),y=g.getIntersection(p);for(const w of y.ranges){if(w.length<3)continue;const _=w,v=w.delta(-d);a.push(new Le(v,_)),u.addRange(_),h.addRange(v)}}a.sort(wn(m=>m.original.startLineNumber,_n));const f=new xn(e);for(let m=0;m<a.length;m++){const d=a[m],g=f.findLastMonotonous(L=>L.original.startLineNumber<=d.original.startLineNumber),p=xt(e,L=>L.modified.startLineNumber<=d.modified.startLineNumber),y=Math.max(d.original.startLineNumber-g.original.startLineNumber,d.modified.startLineNumber-p.modified.startLineNumber),w=f.findLastMonotonous(L=>L.original.startLineNumber<d.original.endLineNumberExclusive),_=xt(e,L=>L.modified.startLineNumber<d.modified.endLineNumberExclusive),v=Math.max(w.original.endLineNumberExclusive-d.original.endLineNumberExclusive,_.modified.endLineNumberExclusive-d.modified.endLineNumberExclusive);let x;for(x=0;x<y;x++){const L=d.original.startLineNumber-x-1,S=d.modified.startLineNumber-x-1;if(L>r.length||S>i.length||u.contains(S)||h.contains(L)||!ta(r[L-1],i[S-1],s))break}x>0&&(h.addRange(new $(d.original.startLineNumber-x,d.original.startLineNumber)),u.addRange(new $(d.modified.startLineNumber-x,d.modified.startLineNumber)));let b;for(b=0;b<v;b++){const L=d.original.endLineNumberExclusive+b,S=d.modified.endLineNumberExclusive+b;if(L>r.length||S>i.length||u.contains(S)||h.contains(L)||!ta(r[L-1],i[S-1],s))break}b>0&&(h.addRange(new $(d.original.endLineNumberExclusive,d.original.endLineNumberExclusive+b)),u.addRange(new $(d.modified.endLineNumberExclusive,d.modified.endLineNumberExclusive+b))),(x>0||b>0)&&(a[m]=new Le(new $(d.original.startLineNumber-x,d.original.endLineNumberExclusive+b),new $(d.modified.startLineNumber-x,d.modified.endLineNumberExclusive+b)))}return a}function ta(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=new Ys().compute(new Nn([e],new z(1,1,1,e.length),!1),new Nn([t],new z(1,1,1,t.length),!1),n);let s=0;const a=Y.invert(i.diffs,e.length);for(const h of a)h.seq1Range.forEach(f=>{Ar(e.charCodeAt(f))||s++});function l(h){let f=0;for(let m=0;m<e.length;m++)Ar(h.charCodeAt(m))||f++;return f}const o=l(e.length>t.length?e:t);return s/o>.6&&o>10}function nc(e){if(e.length===0)return e;e.sort(wn(n=>n.original.startLineNumber,_n));const t=[e[0]];for(let n=1;n<e.length;n++){const r=t[t.length-1],i=e[n],s=i.original.startLineNumber-r.original.endLineNumberExclusive,a=i.modified.startLineNumber-r.modified.endLineNumberExclusive;if(s>=0&&a>=0&&s+a<=2){t[t.length-1]=r.join(i);continue}t.push(i)}return t}function rc(e,t){const n=new xn(e);return t=t.filter(r=>{const i=n.findLastMonotonous(l=>l.original.startLineNumber<r.original.endLineNumberExclusive)||new Le(new $(1,1),new $(1,1)),s=xt(e,l=>l.modified.startLineNumber<r.modified.endLineNumberExclusive);return i!==s}),t}function na(e,t,n){let r=n;return r=ra(e,t,r),r=ra(e,t,r),r=ic(e,t,r),r}function ra(e,t,n){if(n.length===0)return n;const r=[];r.push(n[0]);for(let s=1;s<n.length;s++){const a=r[r.length-1];let l=n[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=l.seq1Range.start-a.seq1Range.endExclusive;let u;for(u=1;u<=o&&!(e.getElement(l.seq1Range.start-u)!==e.getElement(l.seq1Range.endExclusive-u)||t.getElement(l.seq2Range.start-u)!==t.getElement(l.seq2Range.endExclusive-u));u++);if(u--,u===o){r[r.length-1]=new Y(new W(a.seq1Range.start,l.seq1Range.endExclusive-o),new W(a.seq2Range.start,l.seq2Range.endExclusive-o));continue}l=l.delta(-u)}r.push(l)}const i=[];for(let s=0;s<r.length-1;s++){const a=r[s+1];let l=r[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=a.seq1Range.start-l.seq1Range.endExclusive;let u;for(u=0;u<o&&!(!e.isStronglyEqual(l.seq1Range.start+u,l.seq1Range.endExclusive+u)||!t.isStronglyEqual(l.seq2Range.start+u,l.seq2Range.endExclusive+u));u++);if(u===o){r[s+1]=new Y(new W(l.seq1Range.start+o,a.seq1Range.endExclusive),new W(l.seq2Range.start+o,a.seq2Range.endExclusive));continue}u>0&&(l=l.delta(u))}i.push(l)}return r.length>0&&i.push(r[r.length-1]),i}function ic(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const i=r>0?n[r-1]:void 0,s=n[r],a=r+1<n.length?n[r+1]:void 0,l=new W(i?i.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),o=new W(i?i.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[r]=ia(s,e,t,l,o):s.seq2Range.isEmpty&&(n[r]=ia(s.swap(),t,e,o,l).swap())}return n}function ia(e,t,n,r,i){let a=1;for(;e.seq1Range.start-a>=r.start&&e.seq2Range.start-a>=i.start&&n.isStronglyEqual(e.seq2Range.start-a,e.seq2Range.endExclusive-a)&&a<100;)a++;a--;let l=0;for(;e.seq1Range.start+l<r.endExclusive&&e.seq2Range.endExclusive+l<i.endExclusive&&n.isStronglyEqual(e.seq2Range.start+l,e.seq2Range.endExclusive+l)&&l<100;)l++;if(a===0&&l===0)return e;let o=0,u=-1;for(let h=-a;h<=l;h++){const f=e.seq2Range.start+h,m=e.seq2Range.endExclusive+h,d=e.seq1Range.start+h,g=t.getBoundaryScore(d)+n.getBoundaryScore(f)+n.getBoundaryScore(m);g>u&&(u=g,o=h)}return e.delta(o)}function sc(e,t,n){const r=[];for(const i of n){const s=r[r.length-1];if(!s){r.push(i);continue}i.seq1Range.start-s.seq1Range.endExclusive<=2||i.seq2Range.start-s.seq2Range.endExclusive<=2?r[r.length-1]=new Y(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function ac(e,t,n){const r=Y.invert(n,e.length),i=[];let s=new He(0,0);function a(o,u){if(o.offset1<s.offset1||o.offset2<s.offset2)return;const h=e.findWordContaining(o.offset1),f=t.findWordContaining(o.offset2);if(!h||!f)return;let m=new Y(h,f);const d=m.intersect(u);let g=d.seq1Range.length,p=d.seq2Range.length;for(;r.length>0;){const y=r[0];if(!(y.seq1Range.intersects(m.seq1Range)||y.seq2Range.intersects(m.seq2Range)))break;const _=e.findWordContaining(y.seq1Range.start),v=t.findWordContaining(y.seq2Range.start),x=new Y(_,v),b=x.intersect(y);if(g+=b.seq1Range.length,p+=b.seq2Range.length,m=m.join(x),m.seq1Range.endExclusive>=y.seq1Range.endExclusive)r.shift();else break}g+p<(m.seq1Range.length+m.seq2Range.length)*2/3&&i.push(m),s=m.getEndExclusives()}for(;r.length>0;){const o=r.shift();o.seq1Range.isEmpty||(a(o.getStarts(),o),a(o.getEndExclusives().delta(-1),o))}return oc(n,i)}function oc(e,t){const n=[];for(;e.length>0||t.length>0;){const r=e[0],i=t[0];let s;r&&(!i||r.seq1Range.start<i.seq1Range.start)?s=e.shift():s=t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function lc(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const a=[r[0]];for(let l=1;l<r.length;l++){let h=function(m,d){const g=new W(u.seq1Range.endExclusive,o.seq1Range.start);return e.getText(g).replace(/\\s/g,"").length<=4&&(m.seq1Range.length+m.seq2Range.length>5||d.seq1Range.length+d.seq2Range.length>5)};const o=r[l],u=a[a.length-1];h(u,o)?(s=!0,a[a.length-1]=a[a.length-1].join(o)):a.push(o)}r=a}while(i++<10&&s);return r}function uc(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const l=[r[0]];for(let o=1;o<r.length;o++){let f=function(d,g){const p=new W(h.seq1Range.endExclusive,u.seq1Range.start);if(e.countLinesIn(p)>5||p.length>500)return!1;const w=e.getText(p).trim();if(w.length>20||w.split(/\\r\\n|\\r|\\n/).length>1)return!1;const _=e.countLinesIn(d.seq1Range),v=d.seq1Range.length,x=t.countLinesIn(d.seq2Range),b=d.seq2Range.length,L=e.countLinesIn(g.seq1Range),S=g.seq1Range.length,M=t.countLinesIn(g.seq2Range),F=g.seq2Range.length,O=130;function C(N){return Math.min(N,O)}return Math.pow(Math.pow(C(_*40+v),1.5)+Math.pow(C(x*40+b),1.5),1.5)+Math.pow(Math.pow(C(L*40+S),1.5)+Math.pow(C(M*40+F),1.5),1.5)>(O**1.5)**1.5*1.3};const u=r[o],h=l[l.length-1];f(h,u)?(s=!0,l[l.length-1]=l[l.length-1].join(u)):l.push(u)}r=l}while(i++<10&&s);const a=[];return Wu(r,(l,o,u)=>{let h=o;function f(w){return w.length>0&&w.trim().length<=3&&o.seq1Range.length+o.seq2Range.length>100}const m=e.extendToFullLines(o.seq1Range),d=e.getText(new W(m.start,o.seq1Range.start));f(d)&&(h=h.deltaStart(-d.length));const g=e.getText(new W(o.seq1Range.endExclusive,m.endExclusive));f(g)&&(h=h.deltaEnd(g.length));const p=Y.fromOffsetPairs(l?l.getEndExclusives():He.zero,u?u.getStarts():He.max),y=h.intersect(p);a.length>0&&y.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(y):a.push(y)}),a}class sa{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){const n=t===0?0:aa(this.lines[t-1]),r=t===this.lines.length?0:aa(this.lines[t]);return 1e3-(n+r)}getText(t){return this.lines.slice(t.start,t.endExclusive).join(`\n`)}isStronglyEqual(t,n){return this.lines[t]===this.lines[n]}}function aa(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}class cc{constructor(){this.dynamicProgrammingDiffing=new Ju,this.myersDiffingAlgorithm=new Ys}computeDiff(t,n,r){if(t.length<=1&&Uu(t,n,(b,L)=>b===L))return new vn([],[],!1);if(t.length===1&&t[0].length===0||n.length===1&&n[0].length===0)return new vn([new je(new $(1,t.length+1),new $(1,n.length+1),[new ke(new z(1,1,t.length,t[t.length-1].length+1),new z(1,1,n.length,n[n.length-1].length+1))])],[],!1);const i=r.maxComputationTimeMs===0?Ht.instance:new Gu(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,a=new Map;function l(b){let L=a.get(b);return L===void 0&&(L=a.size,a.set(b,L)),L}const o=t.map(b=>l(b.trim())),u=n.map(b=>l(b.trim())),h=new sa(o,t),f=new sa(u,n),m=h.length+f.length<1700?this.dynamicProgrammingDiffing.compute(h,f,i,(b,L)=>t[b]===n[L]?n[L].length===0?.1:1+Math.log(1+n[L].length):.99):this.myersDiffingAlgorithm.compute(h,f,i);let d=m.diffs,g=m.hitTimeout;d=na(h,f,d),d=lc(h,f,d);const p=[],y=b=>{if(s)for(let L=0;L<b;L++){const S=w+L,M=_+L;if(t[S]!==n[M]){const F=this.refineDiff(t,n,new Y(new W(S,S+1),new W(M,M+1)),i,s);for(const O of F.mappings)p.push(O);F.hitTimeout&&(g=!0)}}};let w=0,_=0;for(const b of d){yn(()=>b.seq1Range.start-w===b.seq2Range.start-_);const L=b.seq1Range.start-w;y(L),w=b.seq1Range.endExclusive,_=b.seq2Range.endExclusive;const S=this.refineDiff(t,n,b,i,s);S.hitTimeout&&(g=!0);for(const M of S.mappings)p.push(M)}y(t.length-w);const v=oa(p,t,n);let x=[];return r.computeMoves&&(x=this.computeMoves(v,t,n,o,u,i,s)),yn(()=>{function b(S,M){if(S.lineNumber<1||S.lineNumber>M.length)return!1;const F=M[S.lineNumber-1];return!(S.column<1||S.column>F.length+1)}function L(S,M){return!(S.startLineNumber<1||S.startLineNumber>M.length+1||S.endLineNumberExclusive<1||S.endLineNumberExclusive>M.length+1)}for(const S of v){if(!S.innerChanges)return!1;for(const M of S.innerChanges)if(!(b(M.modifiedRange.getStartPosition(),n)&&b(M.modifiedRange.getEndPosition(),n)&&b(M.originalRange.getStartPosition(),t)&&b(M.originalRange.getEndPosition(),t)))return!1;if(!L(S.modified,n)||!L(S.original,t))return!1}return!0}),new vn(v,x,g)}computeMoves(t,n,r,i,s,a,l){return Zu(t,n,r,i,s,a).map(h=>{const f=this.refineDiff(n,r,new Y(h.original.toOffsetRange(),h.modified.toOffsetRange()),a,l),m=oa(f.mappings,n,r,!0);return new Pu(h,m)})}refineDiff(t,n,r,i,s){const l=hc(r).toRangeMapping2(t,n),o=new Nn(t,l.originalRange,s),u=new Nn(n,l.modifiedRange,s),h=o.length+u.length<500?this.dynamicProgrammingDiffing.compute(o,u,i):this.myersDiffingAlgorithm.compute(o,u,i);let f=h.diffs;return f=na(o,u,f),f=ac(o,u,f),f=sc(o,u,f),f=uc(o,u,f),{mappings:f.map(d=>new ke(o.translateRange(d.seq1Range),u.translateRange(d.seq2Range))),hitTimeout:h.hitTimeout}}}function oa(e,t,n,r=!1){const i=[];for(const s of qu(e.map(a=>fc(a,t,n)),(a,l)=>a.original.overlapOrTouch(l.original)||a.modified.overlapOrTouch(l.modified))){const a=s[0],l=s[s.length-1];i.push(new je(a.original.join(l.original),a.modified.join(l.modified),s.map(o=>o.innerChanges[0])))}return yn(()=>!r&&i.length>0&&(i[0].modified.startLineNumber!==i[0].original.startLineNumber||n.length-i[i.length-1].modified.endLineNumberExclusive!==t.length-i[i.length-1].original.endLineNumberExclusive)?!1:$s(i,(s,a)=>a.original.startLineNumber-s.original.endLineNumberExclusive===a.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive<a.original.startLineNumber&&s.modified.endLineNumberExclusive<a.modified.startLineNumber)),i}function fc(e,t,n){let r=0,i=0;e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(i=-1),e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1);const s=new $(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),a=new $(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new je(s,a,[e])}function hc(e){return new Le(new $(e.seq1Range.start+1,e.seq1Range.endExclusive+1),new $(e.seq2Range.start+1,e.seq2Range.endExclusive+1))}const la={getLegacy:()=>new Du,getDefault:()=>new cc};function Ke(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class ae{constructor(t,n,r,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,r))|0,this.a=Ke(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}}class Ne{constructor(t,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Ke(Math.max(Math.min(1,n),0),3),this.l=Ke(Math.max(Math.min(1,r),0),3),this.a=Ke(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.l===n.l&&t.a===n.a}static fromRGBA(t){const n=t.r/255,r=t.g/255,i=t.b/255,s=t.a,a=Math.max(n,r,i),l=Math.min(n,r,i);let o=0,u=0;const h=(l+a)/2,f=a-l;if(f>0){switch(u=Math.min(h<=.5?f/(2*h):f/(2-2*h),1),a){case n:o=(r-i)/f+(r<i?6:0);break;case r:o=(i-n)/f+2;break;case i:o=(n-r)/f+4;break}o*=60,o=Math.round(o)}return new Ne(o,u,h,s)}static _hue2rgb(t,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}static toRGBA(t){const n=t.h/360,{s:r,l:i,a:s}=t;let a,l,o;if(r===0)a=l=o=i;else{const u=i<.5?i*(1+r):i+r-i*r,h=2*i-u;a=Ne._hue2rgb(h,u,n+1/3),l=Ne._hue2rgb(h,u,n),o=Ne._hue2rgb(h,u,n-1/3)}return new ae(Math.round(a*255),Math.round(l*255),Math.round(o*255),s)}}class Lt{constructor(t,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Ke(Math.max(Math.min(1,n),0),3),this.v=Ke(Math.max(Math.min(1,r),0),3),this.a=Ke(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.v===n.v&&t.a===n.a}static fromRGBA(t){const n=t.r/255,r=t.g/255,i=t.b/255,s=Math.max(n,r,i),a=Math.min(n,r,i),l=s-a,o=s===0?0:l/s;let u;return l===0?u=0:s===n?u=((r-i)/l%6+6)%6:s===r?u=(i-n)/l+2:u=(n-r)/l+4,new Lt(Math.round(u*60),o,s,t.a)}static toRGBA(t){const{h:n,s:r,v:i,a:s}=t,a=i*r,l=a*(1-Math.abs(n/60%2-1)),o=i-a;let[u,h,f]=[0,0,0];return n<60?(u=a,h=l):n<120?(u=l,h=a):n<180?(h=a,f=l):n<240?(h=l,f=a):n<300?(u=l,f=a):n<=360&&(u=a,f=l),u=Math.round((u+o)*255),h=Math.round((h+o)*255),f=Math.round((f+o)*255),new ae(u,h,f,s)}}let Sn=(G=class{static fromHex(t){return G.Format.CSS.parseHex(t)||G.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:Ne.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Lt.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof ae)this.rgba=t;else if(t instanceof Ne)this._hsla=t,this.rgba=Ne.toRGBA(t);else if(t instanceof Lt)this._hsva=t,this.rgba=Lt.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&ae.equals(this.rgba,t.rgba)&&Ne.equals(this.hsla,t.hsla)&&Lt.equals(this.hsva,t.hsva)}getRelativeLuminance(){const t=G._relativeLuminanceForComponent(this.rgba.r),n=G._relativeLuminanceForComponent(this.rgba.g),r=G._relativeLuminanceForComponent(this.rgba.b),i=.2126*t+.7152*n+.0722*r;return Ke(i,4)}static _relativeLuminanceForComponent(t){const n=t/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n>r}isDarkerThan(t){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n<r}lighten(t){return new G(new Ne(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new G(new Ne(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){const{r:n,g:r,b:i,a:s}=this.rgba;return new G(new ae(n,r,i,s*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new G(new ae(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;const{r:n,g:r,b:i,a:s}=this.rgba;return new G(new ae(t.rgba.r-s*(t.rgba.r-n),t.rgba.g-s*(t.rgba.g-r),t.rgba.b-s*(t.rgba.b-i),1))}toString(){return this._toString||(this._toString=G.Format.CSS.format(this)),this._toString}static getLighterColor(t,n,r){if(t.isLighterThan(n))return t;r=r||.5;const i=t.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(s-i)/s,t.lighten(r)}static getDarkerColor(t,n,r){if(t.isDarkerThan(n))return t;r=r||.5;const i=t.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(i-s)/i,t.darken(r)}},G.white=new G(new ae(255,255,255,1)),G.black=new G(new ae(0,0,0,1)),G.red=new G(new ae(255,0,0,1)),G.blue=new G(new ae(0,0,255,1)),G.green=new G(new ae(0,255,0,1)),G.cyan=new G(new ae(0,255,255,1)),G.lightgrey=new G(new ae(211,211,211,1)),G.transparent=new G(new ae(0,0,0,0)),G);(function(e){(function(t){(function(n){function r(d){return d.rgba.a===1?`rgb(${d.rgba.r}, ${d.rgba.g}, ${d.rgba.b})`:e.Format.CSS.formatRGBA(d)}n.formatRGB=r;function i(d){return`rgba(${d.rgba.r}, ${d.rgba.g}, ${d.rgba.b}, ${+d.rgba.a.toFixed(2)})`}n.formatRGBA=i;function s(d){return d.hsla.a===1?`hsl(${d.hsla.h}, ${(d.hsla.s*100).toFixed(2)}%, ${(d.hsla.l*100).toFixed(2)}%)`:e.Format.CSS.formatHSLA(d)}n.formatHSL=s;function a(d){return`hsla(${d.hsla.h}, ${(d.hsla.s*100).toFixed(2)}%, ${(d.hsla.l*100).toFixed(2)}%, ${d.hsla.a.toFixed(2)})`}n.formatHSLA=a;function l(d){const g=d.toString(16);return g.length!==2?"0"+g:g}function o(d){return`#${l(d.rgba.r)}${l(d.rgba.g)}${l(d.rgba.b)}`}n.formatHex=o;function u(d,g=!1){return g&&d.rgba.a===1?e.Format.CSS.formatHex(d):`#${l(d.rgba.r)}${l(d.rgba.g)}${l(d.rgba.b)}${l(Math.round(d.rgba.a*255))}`}n.formatHexA=u;function h(d){return d.isOpaque()?e.Format.CSS.formatHex(d):e.Format.CSS.formatRGBA(d)}n.format=h;function f(d){const g=d.length;if(g===0||d.charCodeAt(0)!==35)return null;if(g===7){const p=16*m(d.charCodeAt(1))+m(d.charCodeAt(2)),y=16*m(d.charCodeAt(3))+m(d.charCodeAt(4)),w=16*m(d.charCodeAt(5))+m(d.charCodeAt(6));return new e(new ae(p,y,w,1))}if(g===9){const p=16*m(d.charCodeAt(1))+m(d.charCodeAt(2)),y=16*m(d.charCodeAt(3))+m(d.charCodeAt(4)),w=16*m(d.charCodeAt(5))+m(d.charCodeAt(6)),_=16*m(d.charCodeAt(7))+m(d.charCodeAt(8));return new e(new ae(p,y,w,_/255))}if(g===4){const p=m(d.charCodeAt(1)),y=m(d.charCodeAt(2)),w=m(d.charCodeAt(3));return new e(new ae(16*p+p,16*y+y,16*w+w))}if(g===5){const p=m(d.charCodeAt(1)),y=m(d.charCodeAt(2)),w=m(d.charCodeAt(3)),_=m(d.charCodeAt(4));return new e(new ae(16*p+p,16*y+y,16*w+w,(16*_+_)/255))}return null}n.parseHex=f;function m(d){switch(d){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(t.CSS||(t.CSS={}))})(e.Format||(e.Format={}))})(Sn||(Sn={}));function ua(e){const t=[];for(const n of e){const r=Number(n);(r||r===0&&n.replace(/\\s/g,"")!=="")&&t.push(r)}return t}function Rr(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function zt(e,t){const n=t.index,r=t[0].length;if(!n)return;const i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function mc(e,t){if(!e)return;const n=Sn.Format.CSS.parseHex(t);if(n)return{range:e,color:Rr(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function ca(e,t,n){if(!e||t.length!==1)return;const i=t[0].values(),s=ua(i);return{range:e,color:Rr(s[0],s[1],s[2],n?s[3]:1)}}function fa(e,t,n){if(!e||t.length!==1)return;const i=t[0].values(),s=ua(i),a=new Sn(new Ne(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:e,color:Rr(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function Gt(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function dc(e){const t=[],r=Gt(e,/\\b(rgb|rgba|hsl|hsla)(\\([0-9\\s,.\\%]*\\))|(#)([A-Fa-f0-9]{3})\\b|(#)([A-Fa-f0-9]{4})\\b|(#)([A-Fa-f0-9]{6})\\b|(#)([A-Fa-f0-9]{8})\\b/gm);if(r.length>0)for(const i of r){const s=i.filter(u=>u!==void 0),a=s[1],l=s[2];if(!l)continue;let o;if(a==="rgb"){const u=/^\\(\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*\\)$/gm;o=ca(zt(e,i),Gt(l,u),!1)}else if(a==="rgba"){const u=/^\\(\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\\s*\\)$/gm;o=ca(zt(e,i),Gt(l,u),!0)}else if(a==="hsl"){const u=/^\\(\\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*\\)$/gm;o=fa(zt(e,i),Gt(l,u),!1)}else if(a==="hsla"){const u=/^\\(\\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*,\\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\\s*\\)$/gm;o=fa(zt(e,i),Gt(l,u),!0)}else a==="#"&&(o=mc(zt(e,i),a+l));o&&t.push(o)}return t}function gc(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:dc(e)}const ha=new RegExp("\\\\bMARK:\\\\s*(.*)$","d"),pc=/^-+|-+$/g;function bc(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const r=yc(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){const r=vc(e);n=n.concat(r)}return n}function yc(e,t){const n=[],r=e.getLineCount();for(let i=1;i<=r;i++){const s=e.getLineContent(i),a=s.match(t.foldingRules.markers.start);if(a){const l={startLineNumber:i,startColumn:a[0].length+1,endLineNumber:i,endColumn:s.length+1};if(l.endColumn>l.startColumn){const o={range:l,...ma(s.substring(a[0].length)),shouldBeInComments:!1};(o.text||o.hasSeparatorLine)&&n.push(o)}}}return n}function vc(e){const t=[],n=e.getLineCount();for(let r=1;r<=n;r++){const i=e.getLineContent(r);xc(i,r,t)}return t}function xc(e,t,n){ha.lastIndex=0;const r=ha.exec(e);if(r){const i=r.indices[1][0]+1,s=r.indices[1][1]+1,a={startLineNumber:t,startColumn:i,endLineNumber:t,endColumn:s};if(a.endColumn>a.startColumn){const l={range:a,...ma(r[1]),shouldBeInComments:!0};(l.text||l.hasSeparatorLine)&&n.push(l)}}}function ma(e){e=e.trim();const t=e.startsWith("-");return e=e.replace(pc,""),{text:e,hasSeparatorLine:t}}var da;(function(e){async function t(r){let i;const s=await Promise.all(r.map(a=>a.then(l=>l,l=>{i||(i=l)})));if(typeof i<"u")throw i;return s}e.settled=t;function n(r){return new Promise(async(i,s)=>{try{await r(i,s)}catch(a){s(a)}})}e.withAsyncBody=n})(da||(da={}));const de=class de{static fromArray(t){return new de(n=>{n.emitMany(t)})}static fromPromise(t){return new de(async n=>{n.emitMany(await t)})}static fromPromises(t){return new de(async n=>{await Promise.all(t.map(async r=>n.emitOne(await r)))})}static merge(t){return new de(async n=>{await Promise.all(t.map(async r=>{for await(const i of r)n.emitOne(i)}))})}constructor(t,n){this._state=0,this._results=[],this._error=null,this._onReturn=n,this._onStateChanged=new _e,queueMicrotask(async()=>{const r={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{await Promise.resolve(t(r)),this.resolve()}catch(i){this.reject(i)}finally{r.emitOne=void 0,r.emitMany=void 0,r.reject=void 0}})}[Symbol.asyncIterator](){let t=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(t<this._results.length)return{done:!1,value:this._results[t++]};if(this._state===1)return{done:!0,value:void 0};await un.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(t,n){return new de(async r=>{for await(const i of t)r.emitOne(n(i))})}map(t){return de.map(this,t)}static filter(t,n){return new de(async r=>{for await(const i of t)n(i)&&r.emitOne(i)})}filter(t){return de.filter(this,t)}static coalesce(t){return de.filter(t,n=>!!n)}coalesce(){return de.coalesce(this)}static async toPromise(t){const n=[];for await(const r of t)n.push(r);return n}toPromise(){return de.toPromise(this)}emitOne(t){this._state===0&&(this._results.push(t),this._onStateChanged.fire())}emitMany(t){this._state===0&&(this._results=this._results.concat(t),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(t){this._state===0&&(this._state=2,this._error=t,this._onStateChanged.fire())}};de.EMPTY=de.fromArray([]);let ga=de;class wc{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=vt(t);const r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t),t+s),this.values.set(n,t),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=vt(t),n=vt(n),this.values[t]===n?!1:(this.values[t]=n,t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),!0)}removeValues(t,n){t=vt(t),n=vt(n);const r=this.values,i=this.prefixSum;if(t>=r.length)return!1;const s=r.length-t;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=vt(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let r=n;r<=t;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,a=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],a=s-this.values[i],t<a)r=i-1;else if(t>=s)n=i+1;else break;return new _c(i,t-a)}}class _c{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class Lc{constructor(t,n,r,i){this._uri=t,this._lines=n,this._eol=r,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);const n=t.changes;for(const r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new ee(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i<n;i++)r[i]=this._lines[i].length+t;this._lineStarts=new wc(r)}}_setLineText(t,n){this._lines[t]=n,this._lineStarts&&this._lineStarts.setValue(t,this._lines[t].length+this._eol.length)}_acceptDeleteRange(t){if(t.startLineNumber===t.endLineNumber){if(t.startColumn===t.endColumn)return;this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.startLineNumber-1].substring(t.endColumn-1));return}this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.endLineNumber-1].substring(t.endColumn-1)),this._lines.splice(t.startLineNumber,t.endLineNumber-t.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(t.startLineNumber,t.endLineNumber-t.startLineNumber)}_acceptInsertText(t,n){if(n.length===0)return;const r=gl(n);if(r.length===1){this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]+this._lines[t.lineNumber-1].substring(t.column-1));return}r[r.length-1]+=this._lines[t.lineNumber-1].substring(t.column-1),this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]);const i=new Uint32Array(r.length-1);for(let s=1;s<r.length;s++)this._lines.splice(t.lineNumber+s-1,0,r[s]),i[s-1]=r[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(t.lineNumber,i)}}class Nc{constructor(){this._models=Object.create(null)}getModel(t){return this._models[t]}getModels(){const t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}$acceptNewModel(t){this._models[t.url]=new Sc(Pe.parse(t.url),t.lines,t.EOL,t.versionId)}$acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}$acceptRemovedModel(t){this._models[t]&&delete this._models[t]}}class Sc extends Lc{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){const n=[];for(let r=0;r<this._lines.length;r++){const i=this._lines[r],s=this.offsetAt(new ee(r+1,1)),a=i.matchAll(t);for(const l of a)(l.index||l.index===0)&&(l.index=l.index+s),n.push(l)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(t){return this._lines[t-1]}getWordAtPosition(t,n){const r=xr(t.column,Us(n),this._lines[t.lineNumber-1],0);return r?new z(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):null}words(t){const n=this._lines,r=this._wordenize.bind(this);let i=0,s="",a=0,l=[];return{*[Symbol.iterator](){for(;;)if(a<l.length){const o=s.substring(l[a].start,l[a].end);a+=1,yield o}else if(i<n.length)s=n[i],l=r(s,t),a=0,i+=1;else break}}}getLineWords(t,n){const r=this._lines[t-1],i=this._wordenize(r,n),s=[];for(const a of i)s.push({word:r.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1});return s}_wordenize(t,n){const r=[];let i;for(n.lastIndex=0;(i=n.exec(t))&&i[0].length!==0;)r.push({start:i.index,end:i.index+i[0].length});return r}getValueInRange(t){if(t=this._validateRange(t),t.startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);const n=this._eol,r=t.startLineNumber-1,i=t.endLineNumber-1,s=[];s.push(this._lines[r].substring(t.startColumn-1));for(let a=r+1;a<i;a++)s.push(this._lines[a]);return s.push(this._lines[i].substring(0,t.endColumn-1)),s.join(n)}offsetAt(t){return t=this._validatePosition(t),this._ensureLineStarts(),this._lineStarts.getPrefixSum(t.lineNumber-2)+(t.column-1)}positionAt(t){t=Math.floor(t),t=Math.max(0,t),this._ensureLineStarts();const n=this._lineStarts.getIndexOf(t),r=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,r)}}_validateRange(t){const n=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),r=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return n.lineNumber!==t.startLineNumber||n.column!==t.startColumn||r.lineNumber!==t.endLineNumber||r.column!==t.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:r.lineNumber,endColumn:r.column}:t}_validatePosition(t){if(!ee.isIPosition(t))throw new Error("bad position");let{lineNumber:n,column:r}=t,i=!1;if(n<1)n=1,r=1,i=!0;else if(n>this._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{const s=this._lines[n-1].length+1;r<1?(r=1,i=!0):r>s&&(r=s,i=!0)}return i?{lineNumber:n,column:r}:t}}const Un=class Un{constructor(){this._workerTextModelSyncServer=new Nc}dispose(){}_getModel(t){return this._workerTextModelSyncServer.getModel(t)}_getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(t){this._workerTextModelSyncServer.$acceptNewModel(t)}$acceptModelChanged(t,n){this._workerTextModelSyncServer.$acceptModelChanged(t,n)}$acceptRemovedModel(t){this._workerTextModelSyncServer.$acceptRemovedModel(t)}async $computeUnicodeHighlights(t,n,r){const i=this._getModel(t);return i?Cu.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(t,n){const r=this._getModel(t);return r?bc(r,n):[]}async $computeDiff(t,n,r,i){const s=this._getModel(t),a=this._getModel(n);return!s||!a?null:An.computeDiff(s,a,r,i)}static computeDiff(t,n,r,i){const s=i==="advanced"?la.getDefault():la.getLegacy(),a=t.getLinesContent(),l=n.getLinesContent(),o=s.computeDiff(a,l,r),u=o.changes.length>0?!1:this._modelsAreIdentical(t,n);function h(f){return f.map(m=>[m.original.startLineNumber,m.original.endLineNumberExclusive,m.modified.startLineNumber,m.modified.endLineNumberExclusive,m.innerChanges?.map(d=>[d.originalRange.startLineNumber,d.originalRange.startColumn,d.originalRange.endLineNumber,d.originalRange.endColumn,d.modifiedRange.startLineNumber,d.modifiedRange.startColumn,d.modifiedRange.endLineNumber,d.modifiedRange.endColumn])])}return{identical:u,quitEarly:o.hitTimeout,changes:h(o.changes),moves:o.moves.map(f=>[f.lineRangeMapping.original.startLineNumber,f.lineRangeMapping.original.endLineNumberExclusive,f.lineRangeMapping.modified.startLineNumber,f.lineRangeMapping.modified.endLineNumberExclusive,h(f.changes)])}}static _modelsAreIdentical(t,n){const r=t.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){const a=t.getLineContent(s),l=n.getLineContent(s);if(a!==l)return!1}return!0}async $computeMoreMinimalEdits(t,n,r){const i=this._getModel(t);if(!i)return n;const s=[];let a;n=n.slice(0).sort((o,u)=>{if(o.range&&u.range)return z.compareRangesUsingStarts(o.range,u.range);const h=o.range?0:1,f=u.range?0:1;return h-f});let l=0;for(let o=1;o<n.length;o++)z.getEndPosition(n[l].range).equals(z.getStartPosition(n[o].range))?(n[l].range=z.fromPositions(z.getStartPosition(n[l].range),z.getEndPosition(n[o].range)),n[l].text+=n[o].text):(l++,n[l]=n[o]);n.length=l+1;for(let{range:o,text:u,eol:h}of n){if(typeof h=="number"&&(a=h),z.isEmpty(o)&&!u)continue;const f=i.getValueInRange(o);if(u=u.replace(/\\r\\n|\\n|\\r/g,i.eol),f===u)continue;if(Math.max(u.length,f.length)>An._diffLimit){s.push({range:o,text:u});continue}const m=eu(f,u,r),d=i.offsetAt(z.lift(o).getStartPosition());for(const g of m){const p=i.positionAt(d+g.originalStart),y=i.positionAt(d+g.originalStart+g.originalLength),w={text:u.substr(g.modifiedStart,g.modifiedLength),range:{startLineNumber:p.lineNumber,startColumn:p.column,endLineNumber:y.lineNumber,endColumn:y.column}};i.getValueInRange(w.range)!==w.text&&s.push(w)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async $computeLinks(t){const n=this._getModel(t);return n?su(n):null}async $computeDefaultDocumentColors(t){const n=this._getModel(t);return n?gc(n):null}async $textualSuggest(t,n,r,i){const s=new ln,a=new RegExp(r,i),l=new Set;e:for(const o of t){const u=this._getModel(o);if(u){for(const h of u.words(a))if(!(h===n||!isNaN(Number(h)))&&(l.add(h),l.size>An._suggestionsLimit))break e}}return{words:Array.from(l),duration:s.elapsed()}}async $computeWordRanges(t,n,r,i){const s=this._getModel(t);if(!s)return Object.create(null);const a=new RegExp(r,i),l=Object.create(null);for(let o=n.startLineNumber;o<n.endLineNumber;o++){const u=s.getLineWords(o,a);for(const h of u){if(!isNaN(Number(h.word)))continue;let f=l[h.word];f||(f=[],l[h.word]=f),f.push({startLineNumber:o,startColumn:h.startColumn,endLineNumber:o,endColumn:h.endColumn})}}return l}async $navigateValueSet(t,n,r,i,s){const a=this._getModel(t);if(!a)return null;const l=new RegExp(i,s);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});const o=a.getValueInRange(n),u=a.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},l);if(!u)return null;const h=a.getValueInRange(u);return cr.INSTANCE.navigateValueSet(n,o,u,h,r)}};Un._diffLimit=1e5,Un._suggestionsLimit=1e4;let Er=Un;class An extends Er{constructor(t,n){super(),this._host=t,this._foreignModuleFactory=n,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(t,n,r){const a={host:_u(r,(l,o)=>this._host.$fhr(l,o)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,n),Promise.resolve(Fs(this._foreignModule))):new Promise((l,o)=>{const u=h=>{this._foreignModule=h.create(a,n),l(Fs(this._foreignModule))};import(`${wi.asBrowserUri(`${t}.js`).toString(!0)}`).then(u).catch(o)})}$fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(r){return Promise.reject(r)}}}typeof importScripts=="function"&&(globalThis.monaco=pu());let Mr=!1;function pa(e){if(Mr)return;Mr=!0;const t=new Zl(n=>{globalThis.postMessage(n)},n=>new An(vr.getChannel(n),e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{Mr||pa(null)};/*!-----------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)\n * Released under the MIT license\n * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt\n *-----------------------------------------------------------------------------*/function Cr(e,t=!1){const n=e.length;let r=0,i="",s=0,a=16,l=0,o=0,u=0,h=0,f=0;function m(v,x){let b=0,L=0;for(;b<v;){let S=e.charCodeAt(r);if(S>=48&&S<=57)L=L*16+S-48;else if(S>=65&&S<=70)L=L*16+S-65+10;else if(S>=97&&S<=102)L=L*16+S-97+10;else break;r++,b++}return b<v&&(L=-1),L}function d(v){r=v,i="",s=0,a=16,f=0}function g(){let v=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&Nt(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&Nt(e.charCodeAt(r)))for(r++;r<e.length&&Nt(e.charCodeAt(r));)r++;else return f=3,e.substring(v,r);let x=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&Nt(e.charCodeAt(r))){for(r++;r<e.length&&Nt(e.charCodeAt(r));)r++;x=r}else f=3;return e.substring(v,x)}function p(){let v="",x=r;for(;;){if(r>=n){v+=e.substring(x,r),f=2;break}const b=e.charCodeAt(r);if(b===34){v+=e.substring(x,r),r++;break}if(b===92){if(v+=e.substring(x,r),r++,r>=n){f=2;break}switch(e.charCodeAt(r++)){case 34:v+=\'"\';break;case 92:v+="\\\\";break;case 47:v+="/";break;case 98:v+="\\b";break;case 102:v+="\\f";break;case 110:v+=`\n`;break;case 114:v+="\\r";break;case 116:v+=" ";break;case 117:const S=m(4);S>=0?v+=String.fromCharCode(S):f=4;break;default:f=5}x=r;continue}if(b>=0&&b<=31)if(Jt(b)){v+=e.substring(x,r),f=2;break}else f=6;r++}return v}function y(){if(i="",f=0,s=r,o=l,h=u,r>=n)return s=n,a=17;let v=e.charCodeAt(r);if(Tr(v)){do r++,i+=String.fromCharCode(v),v=e.charCodeAt(r);while(Tr(v));return a=15}if(Jt(v))return r++,i+=String.fromCharCode(v),v===13&&e.charCodeAt(r)===10&&(r++,i+=`\n`),l++,u=r,a=14;switch(v){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,i=p(),a=10;case 47:const x=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!Jt(e.charCodeAt(r));)r++;return i=e.substring(x,r),a=12}if(e.charCodeAt(r+1)===42){r+=2;const b=n-1;let L=!1;for(;r<b;){const S=e.charCodeAt(r);if(S===42&&e.charCodeAt(r+1)===47){r+=2,L=!0;break}r++,Jt(S)&&(S===13&&e.charCodeAt(r)===10&&r++,l++,u=r)}return L||(r++,f=1),i=e.substring(x,r),a=13}return i+=String.fromCharCode(v),r++,a=16;case 45:if(i+=String.fromCharCode(v),r++,r===n||!Nt(e.charCodeAt(r)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=g(),a=11;default:for(;r<n&&w(v);)r++,v=e.charCodeAt(r);if(s!==r){switch(i=e.substring(s,r),i){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(v),r++,a=16}}function w(v){if(Tr(v)||Jt(v))return!1;switch(v){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function _(){let v;do v=y();while(v>=12&&v<=15);return v}return{setPosition:d,getPosition:()=>r,scan:t?_:y,getToken:()=>a,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>r-s,getTokenStartLine:()=>o,getTokenStartCharacter:()=>s-h,getTokenError:()=>f}}function Tr(e){return e===32||e===9}function Jt(e){return e===10||e===13}function Nt(e){return e>=48&&e<=57}var ba;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(ba||(ba={}));var Se=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),St=200,ya={" ":{"\\n":new Array(St).fill(0).map((e,t)=>`\n`+" ".repeat(t)),"\\r":new Array(St).fill(0).map((e,t)=>"\\r"+" ".repeat(t)),"\\r\\n":new Array(St).fill(0).map((e,t)=>`\\r\n`+" ".repeat(t))}," ":{"\\n":new Array(St).fill(0).map((e,t)=>`\n`+" ".repeat(t)),"\\r":new Array(St).fill(0).map((e,t)=>"\\r"+" ".repeat(t)),"\\r\\n":new Array(St).fill(0).map((e,t)=>`\\r\n`+" ".repeat(t))}},Ac=[`\n`,"\\r",`\\r\n`];function kc(e,t,n){let r,i,s,a,l;if(t){for(a=t.offset,l=a+t.length,s=a;s>0&&!va(e,s-1);)s--;let b=l;for(;b<e.length&&!va(e,b);)b++;i=e.substring(s,b),r=Rc(i,n)}else i=e,r=0,s=0,a=0,l=e.length;const o=Ec(n,e),u=Ac.includes(o);let h=0,f=0,m;n.insertSpaces?m=Se[n.tabSize||4]??At(Se[1],n.tabSize||4):m=" ";const d=m===" "?" ":" ";let g=Cr(i,!1),p=!1;function y(){if(h>1)return At(o,h)+At(m,r+f);const b=m.length*(r+f);return!u||b>ya[d][o].length?o+At(m,r+f):b<=0?o:ya[d][o][b]}function w(){let b=g.scan();for(h=0;b===15||b===14;)b===14&&n.keepLines?h+=1:b===14&&(h=1),b=g.scan();return p=b===16||g.getTokenError()!==0,b}const _=[];function v(b,L,S){!p&&(!t||L<l&&S>a)&&e.substring(L,S)!==b&&_.push({offset:L,length:S-L,content:b})}let x=w();if(n.keepLines&&h>0&&v(At(o,h),0,0),x!==17){let b=g.getTokenOffset()+s,L=m.length*r<20&&n.insertSpaces?Se[m.length*r]:At(m,r);v(L,s,b)}for(;x!==17;){let b=g.getTokenOffset()+g.getTokenLength()+s,L=w(),S="",M=!1;for(;h===0&&(L===12||L===13);){let O=g.getTokenOffset()+s;v(Se[1],b,O),b=g.getTokenOffset()+g.getTokenLength()+s,M=L===12,S=M?y():"",L=w()}if(L===2)x!==1&&f--,n.keepLines&&h>0||!n.keepLines&&x!==1?S=y():n.keepLines&&(S=Se[1]);else if(L===4)x!==3&&f--,n.keepLines&&h>0||!n.keepLines&&x!==3?S=y():n.keepLines&&(S=Se[1]);else{switch(x){case 3:case 1:f++,n.keepLines&&h>0||!n.keepLines?S=y():S=Se[1];break;case 5:n.keepLines&&h>0||!n.keepLines?S=y():S=Se[1];break;case 12:S=y();break;case 13:h>0?S=y():M||(S=Se[1]);break;case 6:n.keepLines&&h>0?S=y():M||(S=Se[1]);break;case 10:n.keepLines&&h>0?S=y():L===6&&!M&&(S="");break;case 7:case 8:case 9:case 11:case 2:case 4:n.keepLines&&h>0?S=y():(L===12||L===13)&&!M?S=Se[1]:L!==5&&L!==17&&(p=!0);break;case 16:p=!0;break}h>0&&(L===12||L===13)&&(S=y())}L===17&&(n.keepLines&&h>0?S=y():S=n.insertFinalNewline?o:"");const F=g.getTokenOffset()+s;v(S,b,F),x=L}return _}function At(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function Rc(e,t){let n=0,r=0;const i=t.tabSize||4;for(;n<e.length;){let s=e.charAt(n);if(s===Se[1])r++;else if(s===" ")r+=i;else break;n++}return Math.floor(r/i)}function Ec(e,t){for(let n=0;n<t.length;n++){const r=t.charAt(n);if(r==="\\r")return n+1<t.length&&t.charAt(n+1)===`\n`?`\\r\n`:"\\r";if(r===`\n`)return`\n`}return e&&e.eol||`\n`}function va(e,t){return`\\r\n`.indexOf(e.charAt(t))!==-1}var kn;(function(e){e.DEFAULT={allowTrailingComma:!1}})(kn||(kn={}));function Mc(e,t=[],n=kn.DEFAULT){let r=null,i=[];const s=[];function a(o){Array.isArray(i)?i.push(o):r!==null&&(i[r]=o)}return Tc(e,{onObjectBegin:()=>{const o={};a(o),s.push(i),i=o,r=null},onObjectProperty:o=>{r=o},onObjectEnd:()=>{i=s.pop()},onArrayBegin:()=>{const o=[];a(o),s.push(i),i=o,r=null},onArrayEnd:()=>{i=s.pop()},onLiteralValue:a,onError:(o,u,h)=>{t.push({error:o,offset:u,length:h})}},n),i[0]}function xa(e){if(!e.parent||!e.parent.children)return[];const t=xa(e.parent);if(e.parent.type==="property"){const n=e.parent.children[0].value;t.push(n)}else if(e.parent.type==="array"){const n=e.parent.children.indexOf(e);n!==-1&&t.push(n)}return t}function Pr(e){switch(e.type){case"array":return e.children.map(Pr);case"object":const t=Object.create(null);for(let n of e.children){const r=n.children[1];r&&(t[n.children[0].value]=Pr(r))}return t;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function Cc(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}function wa(e,t,n=!1){if(Cc(e,t,n)){const r=e.children;if(Array.isArray(r))for(let i=0;i<r.length&&r[i].offset<=t;i++){const s=wa(r[i],t,n);if(s)return s}return e}}function Tc(e,t,n=kn.DEFAULT){const r=Cr(e,!1),i=[];function s(N){return N?()=>N(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(N){return N?()=>N(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}function l(N){return N?k=>N(k,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function o(N){return N?k=>N(k,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}const u=a(t.onObjectBegin),h=o(t.onObjectProperty),f=s(t.onObjectEnd),m=a(t.onArrayBegin),d=s(t.onArrayEnd),g=o(t.onLiteralValue),p=l(t.onSeparator),y=s(t.onComment),w=l(t.onError),_=n&&n.disallowComments,v=n&&n.allowTrailingComma;function x(){for(;;){const N=r.scan();switch(r.getTokenError()){case 4:b(14);break;case 5:b(15);break;case 3:b(13);break;case 1:_||b(11);break;case 2:b(12);break;case 6:b(16);break}switch(N){case 12:case 13:_?b(10):y();break;case 16:b(1);break;case 15:case 14:break;default:return N}}}function b(N,k=[],R=[]){if(w(N),k.length+R.length>0){let I=r.getToken();for(;I!==17;){if(k.indexOf(I)!==-1){x();break}else if(R.indexOf(I)!==-1)break;I=x()}}}function L(N){const k=r.getTokenValue();return N?g(k):(h(k),i.push(k)),x(),!0}function S(){switch(r.getToken()){case 11:const N=r.getTokenValue();let k=Number(N);isNaN(k)&&(b(2),k=0),g(k);break;case 7:g(null);break;case 8:g(!0);break;case 9:g(!1);break;default:return!1}return x(),!0}function M(){return r.getToken()!==10?(b(3,[],[2,5]),!1):(L(!1),r.getToken()===6?(p(":"),x(),C()||b(4,[],[2,5])):b(5,[],[2,5]),i.pop(),!0)}function F(){u(),x();let N=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(N||b(4,[],[]),p(","),x(),r.getToken()===2&&v)break}else N&&b(6,[],[]);M()||b(4,[],[2,5]),N=!0}return f(),r.getToken()!==2?b(7,[2],[]):x(),!0}function O(){m(),x();let N=!0,k=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(k||b(4,[],[]),p(","),x(),r.getToken()===4&&v)break}else k&&b(6,[],[]);N?(i.push(0),N=!1):i[i.length-1]++,C()||b(4,[],[4,5]),k=!0}return d(),N||i.pop(),r.getToken()!==4?b(8,[4],[]):x(),!0}function C(){switch(r.getToken()){case 3:return O();case 1:return F();case 10:return L(!0);default:return S()}}return x(),r.getToken()===17?n.allowEmptyContent?!0:(b(4,[],[]),!1):C()?(r.getToken()!==17&&b(9,[],[]),!0):(b(4,[],[]),!1)}var at=Cr,_a;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(_a||(_a={}));var La;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(La||(La={}));var Pc=Mc,Ic=wa,Fc=xa,Vc=Pr,Na;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(Na||(Na={}));function Dc(e,t,n){return kc(e,t,n)}function kt(e,t){if(e===t)return!0;if(e==null||t===null||t===void 0||typeof e!=typeof t||typeof e!="object"||Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!kt(e[n],t[n]))return!1}else{const i=[];for(r in e)i.push(r);i.sort();const s=[];for(r in t)s.push(r);if(s.sort(),!kt(i,s))return!1;for(n=0;n<i.length;n++)if(!kt(e[i[n]],t[i[n]]))return!1}return!0}function fe(e){return typeof e=="number"}function Re(e){return typeof e<"u"}function Fe(e){return typeof e=="boolean"}function Sa(e){return typeof e=="string"}function et(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Oc(e,t){if(e.length<t.length)return!1;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function Xt(e,t){const n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:n===0?e===t:!1}function Rn(e){let t="";Oc(e,"(?i)")&&(e=e.substring(4),t="i");try{return new RegExp(e,t+"u")}catch{try{return new RegExp(e,t)}catch{return}}}function Aa(e){let t=0;for(let n=0;n<e.length;n++){t++;const r=e.charCodeAt(n);55296<=r&&r<=56319&&n++}return t}var ka;(function(e){function t(n){return typeof n=="string"}e.is=t})(ka||(ka={}));var Ir;(function(e){function t(n){return typeof n=="string"}e.is=t})(Ir||(Ir={}));var Ra;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Ra||(Ra={}));var En;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(En||(En={}));var Z;(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=En.MAX_VALUE),i===Number.MAX_VALUE&&(i=En.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return A.objectLiteral(i)&&A.uinteger(i.line)&&A.uinteger(i.character)}e.is=n})(Z||(Z={}));var q;(function(e){function t(r,i,s,a){if(A.uinteger(r)&&A.uinteger(i)&&A.uinteger(s)&&A.uinteger(a))return{start:Z.create(r,i),end:Z.create(s,a)};if(Z.is(r)&&Z.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${s}, ${a}]`)}e.create=t;function n(r){let i=r;return A.objectLiteral(i)&&Z.is(i.start)&&Z.is(i.end)}e.is=n})(q||(q={}));var Rt;(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return A.objectLiteral(i)&&q.is(i.range)&&(A.string(i.uri)||A.undefined(i.uri))}e.is=n})(Rt||(Rt={}));var Ea;(function(e){function t(r,i,s,a){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}e.create=t;function n(r){let i=r;return A.objectLiteral(i)&&q.is(i.targetRange)&&A.string(i.targetUri)&&q.is(i.targetSelectionRange)&&(q.is(i.originSelectionRange)||A.undefined(i.originSelectionRange))}e.is=n})(Ea||(Ea={}));var Fr;(function(e){function t(r,i,s,a){return{red:r,green:i,blue:s,alpha:a}}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&A.numberRange(i.red,0,1)&&A.numberRange(i.green,0,1)&&A.numberRange(i.blue,0,1)&&A.numberRange(i.alpha,0,1)}e.is=n})(Fr||(Fr={}));var Ma;(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&q.is(i.range)&&Fr.is(i.color)}e.is=n})(Ma||(Ma={}));var Ca;(function(e){function t(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&A.string(i.label)&&(A.undefined(i.textEdit)||Ve.is(i))&&(A.undefined(i.additionalTextEdits)||A.typedArray(i.additionalTextEdits,Ve.is))}e.is=n})(Ca||(Ca={}));var Qt;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Qt||(Qt={}));var Ta;(function(e){function t(r,i,s,a,l,o){const u={startLine:r,endLine:i};return A.defined(s)&&(u.startCharacter=s),A.defined(a)&&(u.endCharacter=a),A.defined(l)&&(u.kind=l),A.defined(o)&&(u.collapsedText=o),u}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&A.uinteger(i.startLine)&&A.uinteger(i.startLine)&&(A.undefined(i.startCharacter)||A.uinteger(i.startCharacter))&&(A.undefined(i.endCharacter)||A.uinteger(i.endCharacter))&&(A.undefined(i.kind)||A.string(i.kind))}e.is=n})(Ta||(Ta={}));var Vr;(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return A.defined(i)&&Rt.is(i.location)&&A.string(i.message)}e.is=n})(Vr||(Vr={}));var ve;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(ve||(ve={}));var Pa;(function(e){e.Unnecessary=1,e.Deprecated=2})(Pa||(Pa={}));var Ia;(function(e){function t(n){const r=n;return A.objectLiteral(r)&&A.string(r.href)}e.is=t})(Ia||(Ia={}));var ze;(function(e){function t(r,i,s,a,l,o){let u={range:r,message:i};return A.defined(s)&&(u.severity=s),A.defined(a)&&(u.code=a),A.defined(l)&&(u.source=l),A.defined(o)&&(u.relatedInformation=o),u}e.create=t;function n(r){var i;let s=r;return A.defined(s)&&q.is(s.range)&&A.string(s.message)&&(A.number(s.severity)||A.undefined(s.severity))&&(A.integer(s.code)||A.string(s.code)||A.undefined(s.code))&&(A.undefined(s.codeDescription)||A.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(A.string(s.source)||A.undefined(s.source))&&(A.undefined(s.relatedInformation)||A.typedArray(s.relatedInformation,Vr.is))}e.is=n})(ze||(ze={}));var Et;(function(e){function t(r,i,...s){let a={title:r,command:i};return A.defined(s)&&s.length>0&&(a.arguments=s),a}e.create=t;function n(r){let i=r;return A.defined(i)&&A.string(i.title)&&A.string(i.command)}e.is=n})(Et||(Et={}));var Ve;(function(e){function t(s,a){return{range:s,newText:a}}e.replace=t;function n(s,a){return{range:{start:s,end:s},newText:a}}e.insert=n;function r(s){return{range:s,newText:""}}e.del=r;function i(s){const a=s;return A.objectLiteral(a)&&A.string(a.newText)&&q.is(a.range)}e.is=i})(Ve||(Ve={}));var Dr;(function(e){function t(r,i,s){const a={label:r};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&A.string(i.label)&&(A.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(A.string(i.description)||i.description===void 0)}e.is=n})(Dr||(Dr={}));var Mt;(function(e){function t(n){const r=n;return A.string(r)}e.is=t})(Mt||(Mt={}));var Fa;(function(e){function t(s,a,l){return{range:s,newText:a,annotationId:l}}e.replace=t;function n(s,a,l){return{range:{start:s,end:s},newText:a,annotationId:l}}e.insert=n;function r(s,a){return{range:s,newText:"",annotationId:a}}e.del=r;function i(s){const a=s;return Ve.is(a)&&(Dr.is(a.annotationId)||Mt.is(a.annotationId))}e.is=i})(Fa||(Fa={}));var Or;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return A.defined(i)&&jr.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Or||(Or={}));var $r;(function(e){function t(r,i,s){let a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&A.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||A.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||A.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Mt.is(i.annotationId))}e.is=n})($r||($r={}));var Br;(function(e){function t(r,i,s,a){let l={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),a!==void 0&&(l.annotationId=a),l}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&A.string(i.oldUri)&&A.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||A.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||A.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Mt.is(i.annotationId))}e.is=n})(Br||(Br={}));var Ur;(function(e){function t(r,i,s){let a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&A.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||A.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||A.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Mt.is(i.annotationId))}e.is=n})(Ur||(Ur={}));var qr;(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>A.string(i.kind)?$r.is(i)||Br.is(i)||Ur.is(i):Or.is(i)))}e.is=t})(qr||(qr={}));var Va;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)}e.is=n})(Va||(Va={}));var Da;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)&&A.integer(i.version)}e.is=n})(Da||(Da={}));var jr;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)&&(i.version===null||A.integer(i.version))}e.is=n})(jr||(jr={}));var Oa;(function(e){function t(r,i,s,a){return{uri:r,languageId:i,version:s,text:a}}e.create=t;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)&&A.string(i.languageId)&&A.integer(i.version)&&A.string(i.text)}e.is=n})(Oa||(Oa={}));var ot;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){const r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(ot||(ot={}));var Yt;(function(e){function t(n){const r=n;return A.objectLiteral(n)&&ot.is(r.kind)&&A.string(r.value)}e.is=t})(Yt||(Yt={}));var xe;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(xe||(xe={}));var ie;(function(e){e.PlainText=1,e.Snippet=2})(ie||(ie={}));var $a;(function(e){e.Deprecated=1})($a||($a={}));var Ba;(function(e){function t(r,i,s){return{newText:r,insert:i,replace:s}}e.create=t;function n(r){const i=r;return i&&A.string(i.newText)&&q.is(i.insert)&&q.is(i.replace)}e.is=n})(Ba||(Ba={}));var Ua;(function(e){e.asIs=1,e.adjustIndentation=2})(Ua||(Ua={}));var qa;(function(e){function t(n){const r=n;return r&&(A.string(r.detail)||r.detail===void 0)&&(A.string(r.description)||r.description===void 0)}e.is=t})(qa||(qa={}));var Wr;(function(e){function t(n){return{label:n}}e.create=t})(Wr||(Wr={}));var ja;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(ja||(ja={}));var Mn;(function(e){function t(r){return r.replace(/[\\\\`*_{}[\\]()#+\\-.!]/g,"\\\\$&")}e.fromPlainText=t;function n(r){const i=r;return A.string(i)||A.objectLiteral(i)&&A.string(i.language)&&A.string(i.value)}e.is=n})(Mn||(Mn={}));var Wa;(function(e){function t(n){let r=n;return!!r&&A.objectLiteral(r)&&(Yt.is(r.contents)||Mn.is(r.contents)||A.typedArray(r.contents,Mn.is))&&(n.range===void 0||q.is(n.range))}e.is=t})(Wa||(Wa={}));var Ha;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Ha||(Ha={}));var za;(function(e){function t(n,r,...i){let s={label:n};return A.defined(r)&&(s.documentation=r),A.defined(i)?s.parameters=i:s.parameters=[],s}e.create=t})(za||(za={}));var Ga;(function(e){e.Text=1,e.Read=2,e.Write=3})(Ga||(Ga={}));var Ja;(function(e){function t(n,r){let i={range:n};return A.number(r)&&(i.kind=r),i}e.create=t})(Ja||(Ja={}));var De;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(De||(De={}));var Xa;(function(e){e.Deprecated=1})(Xa||(Xa={}));var Qa;(function(e){function t(n,r,i,s,a){let l={name:n,kind:r,location:{uri:s,range:i}};return a&&(l.containerName=a),l}e.create=t})(Qa||(Qa={}));var Ya;(function(e){function t(n,r,i,s){return s!==void 0?{name:n,kind:r,location:{uri:i,range:s}}:{name:n,kind:r,location:{uri:i}}}e.create=t})(Ya||(Ya={}));var Za;(function(e){function t(r,i,s,a,l,o){let u={name:r,detail:i,kind:s,range:a,selectionRange:l};return o!==void 0&&(u.children=o),u}e.create=t;function n(r){let i=r;return i&&A.string(i.name)&&A.number(i.kind)&&q.is(i.range)&&q.is(i.selectionRange)&&(i.detail===void 0||A.string(i.detail))&&(i.deprecated===void 0||A.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(Za||(Za={}));var Ka;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Ka||(Ka={}));var Cn;(function(e){e.Invoked=1,e.Automatic=2})(Cn||(Cn={}));var eo;(function(e){function t(r,i,s){let a={diagnostics:r};return i!=null&&(a.only=i),s!=null&&(a.triggerKind=s),a}e.create=t;function n(r){let i=r;return A.defined(i)&&A.typedArray(i.diagnostics,ze.is)&&(i.only===void 0||A.typedArray(i.only,A.string))&&(i.triggerKind===void 0||i.triggerKind===Cn.Invoked||i.triggerKind===Cn.Automatic)}e.is=n})(eo||(eo={}));var to;(function(e){function t(r,i,s){let a={title:r},l=!0;return typeof i=="string"?(l=!1,a.kind=i):Et.is(i)?a.command=i:a.edit=i,l&&s!==void 0&&(a.kind=s),a}e.create=t;function n(r){let i=r;return i&&A.string(i.title)&&(i.diagnostics===void 0||A.typedArray(i.diagnostics,ze.is))&&(i.kind===void 0||A.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Et.is(i.command))&&(i.isPreferred===void 0||A.boolean(i.isPreferred))&&(i.edit===void 0||qr.is(i.edit))}e.is=n})(to||(to={}));var no;(function(e){function t(r,i){let s={range:r};return A.defined(i)&&(s.data=i),s}e.create=t;function n(r){let i=r;return A.defined(i)&&q.is(i.range)&&(A.undefined(i.command)||Et.is(i.command))}e.is=n})(no||(no={}));var ro;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return A.defined(i)&&A.uinteger(i.tabSize)&&A.boolean(i.insertSpaces)}e.is=n})(ro||(ro={}));var io;(function(e){function t(r,i,s){return{range:r,target:i,data:s}}e.create=t;function n(r){let i=r;return A.defined(i)&&q.is(i.range)&&(A.undefined(i.target)||A.string(i.target))}e.is=n})(io||(io={}));var Tn;(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return A.objectLiteral(i)&&q.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(Tn||(Tn={}));var so;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(so||(so={}));var ao;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(ao||(ao={}));var oo;(function(e){function t(n){const r=n;return A.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(oo||(oo={}));var lo;(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){const i=r;return i!=null&&q.is(i.range)&&A.string(i.text)}e.is=n})(lo||(lo={}));var uo;(function(e){function t(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}e.create=t;function n(r){const i=r;return i!=null&&q.is(i.range)&&A.boolean(i.caseSensitiveLookup)&&(A.string(i.variableName)||i.variableName===void 0)}e.is=n})(uo||(uo={}));var co;(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){const i=r;return i!=null&&q.is(i.range)&&(A.string(i.expression)||i.expression===void 0)}e.is=n})(co||(co={}));var fo;(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){const i=r;return A.defined(i)&&q.is(r.stoppedLocation)}e.is=n})(fo||(fo={}));var Hr;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(Hr||(Hr={}));var zr;(function(e){function t(r){return{value:r}}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&(i.tooltip===void 0||A.string(i.tooltip)||Yt.is(i.tooltip))&&(i.location===void 0||Rt.is(i.location))&&(i.command===void 0||Et.is(i.command))}e.is=n})(zr||(zr={}));var ho;(function(e){function t(r,i,s){const a={position:r,label:i};return s!==void 0&&(a.kind=s),a}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&Z.is(i.position)&&(A.string(i.label)||A.typedArray(i.label,zr.is))&&(i.kind===void 0||Hr.is(i.kind))&&i.textEdits===void 0||A.typedArray(i.textEdits,Ve.is)&&(i.tooltip===void 0||A.string(i.tooltip)||Yt.is(i.tooltip))&&(i.paddingLeft===void 0||A.boolean(i.paddingLeft))&&(i.paddingRight===void 0||A.boolean(i.paddingRight))}e.is=n})(ho||(ho={}));var mo;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(mo||(mo={}));var go;(function(e){function t(n,r,i,s){return{insertText:n,filterText:r,range:i,command:s}}e.create=t})(go||(go={}));var po;(function(e){function t(n){return{items:n}}e.create=t})(po||(po={}));var bo;(function(e){e.Invoked=0,e.Automatic=1})(bo||(bo={}));var yo;(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(yo||(yo={}));var vo;(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(vo||(vo={}));var xo;(function(e){function t(n){const r=n;return A.objectLiteral(r)&&Ir.is(r.uri)&&A.string(r.name)}e.is=t})(xo||(xo={}));var wo;(function(e){function t(s,a,l,o){return new $c(s,a,l,o)}e.create=t;function n(s){let a=s;return!!(A.defined(a)&&A.string(a.uri)&&(A.undefined(a.languageId)||A.string(a.languageId))&&A.uinteger(a.lineCount)&&A.func(a.getText)&&A.func(a.positionAt)&&A.func(a.offsetAt))}e.is=n;function r(s,a){let l=s.getText(),o=i(a,(h,f)=>{let m=h.range.start.line-f.range.start.line;return m===0?h.range.start.character-f.range.start.character:m}),u=l.length;for(let h=o.length-1;h>=0;h--){let f=o[h],m=s.offsetAt(f.range.start),d=s.offsetAt(f.range.end);if(d<=u)l=l.substring(0,m)+f.newText+l.substring(d,l.length);else throw new Error("Overlapping edit");u=m}return l}e.applyEdits=r;function i(s,a){if(s.length<=1)return s;const l=s.length/2|0,o=s.slice(0,l),u=s.slice(l);i(o,a),i(u,a);let h=0,f=0,m=0;for(;h<o.length&&f<u.length;)a(o[h],u[f])<=0?s[m++]=o[h++]:s[m++]=u[f++];for(;h<o.length;)s[m++]=o[h++];for(;f<u.length;)s[m++]=u[f++];return s}})(wo||(wo={}));var $c=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n=i==="\\r"||i===`\n`,i==="\\r"&&r+1<t.length&&t.charAt(r+1)===`\n`&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(r===0)return Z.create(0,e);for(;n<r;){let s=Math.floor((n+r)/2);t[s]>e?r=s:n=s+1}let i=n-1;return Z.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}},A;(function(e){const t=Object.prototype.toString;function n(d){return typeof d<"u"}e.defined=n;function r(d){return typeof d>"u"}e.undefined=r;function i(d){return d===!0||d===!1}e.boolean=i;function s(d){return t.call(d)==="[object String]"}e.string=s;function a(d){return t.call(d)==="[object Number]"}e.number=a;function l(d,g,p){return t.call(d)==="[object Number]"&&g<=d&&d<=p}e.numberRange=l;function o(d){return t.call(d)==="[object Number]"&&-2147483648<=d&&d<=2147483647}e.integer=o;function u(d){return t.call(d)==="[object Number]"&&0<=d&&d<=2147483647}e.uinteger=u;function h(d){return t.call(d)==="[object Function]"}e.func=h;function f(d){return d!==null&&typeof d=="object"}e.objectLiteral=f;function m(d,g){return Array.isArray(d)&&d.every(g)}e.typedArray=m})(A||(A={}));var _o=class ii{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){const n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(ii.isIncremental(r)){const i=No(r.range),s=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(a,this._content.length);const l=Math.max(i.start.line,0),o=Math.max(i.end.line,0);let u=this._lineOffsets;const h=Lo(r.text,!1,s);if(o-l===h.length)for(let m=0,d=h.length;m<d;m++)u[m+l+1]=h[m];else h.length<1e4?u.splice(l+1,o-l,...h):this._lineOffsets=u=u.slice(0,l+1).concat(h,u.slice(o+1));const f=r.text.length-(a-s);if(f!==0)for(let m=l+1+h.length,d=u.length;m<d;m++)u[m]=u[m]+f}else if(ii.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Lo(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let a=Math.floor((r+i)/2);n[a]>t?i=a:r=a+1}let s=r-1;return{line:s,character:t-n[s]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}},Ee;(function(e){function t(i,s,a,l){return new _o(i,s,a,l)}e.create=t;function n(i,s,a){if(i instanceof _o)return i.update(s,a),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,s){let a=i.getText(),l=Gr(s.map(Bc),(h,f)=>{let m=h.range.start.line-f.range.start.line;return m===0?h.range.start.character-f.range.start.character:m}),o=0;const u=[];for(const h of l){let f=i.offsetAt(h.range.start);if(f<o)throw new Error("Overlapping edit");f>o&&u.push(a.substring(o,f)),h.newText.length&&u.push(h.newText),o=i.offsetAt(h.range.end)}return u.push(a.substr(o)),u.join("")}e.applyEdits=r})(Ee||(Ee={}));function Gr(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);Gr(r,t),Gr(i,t);let s=0,a=0,l=0;for(;s<r.length&&a<i.length;)t(r[s],i[a])<=0?e[l++]=r[s++]:e[l++]=i[a++];for(;s<r.length;)e[l++]=r[s++];for(;a<i.length;)e[l++]=i[a++];return e}function Lo(e,t,n=0){const r=t?[n]:[];for(let i=0;i<e.length;i++){let s=e.charCodeAt(i);(s===13||s===10)&&(s===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function No(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Bc(e){const t=No(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var H;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.Deprecated=2]="Deprecated",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.PropertyKeysMustBeDoublequoted=528]="PropertyKeysMustBeDoublequoted",e[e.SchemaResolveError=768]="SchemaResolveError",e[e.SchemaUnsupportedFeature=769]="SchemaUnsupportedFeature"})(H||(H={}));var Me;(function(e){e[e.v3=3]="v3",e[e.v4=4]="v4",e[e.v6=6]="v6",e[e.v7=7]="v7",e[e.v2019_09=19]="v2019_09",e[e.v2020_12=20]="v2020_12"})(Me||(Me={}));var Jr;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[ot.Markdown,ot.PlainText],commitCharactersSupport:!0,labelDetailsSupport:!0}}}}})(Jr||(Jr={}));function E(...e){const t=e[0];let n,r,i;if(typeof t=="string")n=t,r=t,e.splice(0,1),i=!e||typeof e[0]!="object"?e:e[0];else if(t instanceof Array){const s=e.slice(1);if(t.length!==s.length+1)throw new Error("expected a string as the first argument to l10n.t");let a=t[0];for(let l=1;l<t.length;l++)a+=`{${l-1}}`+t[l];return E(a,...s)}else r=t.message,n=r,t.comment&&t.comment.length>0&&(n+=`/${Array.isArray(t.comment)?t.comment.join(""):t.comment}`),i=t.args??{};return qc(r,i)}var Uc=/{([^}]+)}/g;function qc(e,t){return Object.keys(t).length===0?e:e.replace(Uc,(n,r)=>t[r]??n)}var jc={"color-hex":{errorMessage:E("Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:E("String is not a RFC3339 date-time."),pattern:/^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:E("String is not a RFC3339 date."),pattern:/^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:E("String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:E("String is not an e-mail address."),pattern:/^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}))$/},hostname:{errorMessage:E("String is not a hostname."),pattern:/^(?=.{1,253}\\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\\.?$/i},ipv4:{errorMessage:E("String is not an IPv4 address."),pattern:/^(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)$/},ipv6:{errorMessage:E("String is not an IPv6 address."),pattern:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))$/i}},lt=class{constructor(e,t,n=0){this.offset=t,this.length=n,this.parent=e}get children(){return[]}toString(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")}},Wc=class extends lt{constructor(e,t){super(e,t),this.type="null",this.value=null}},So=class extends lt{constructor(e,t,n){super(e,n),this.type="boolean",this.value=t}},Hc=class extends lt{constructor(e,t){super(e,t),this.type="array",this.items=[]}get children(){return this.items}},zc=class extends lt{constructor(e,t){super(e,t),this.type="number",this.isInteger=!0,this.value=Number.NaN}},Xr=class extends lt{constructor(e,t,n){super(e,t,n),this.type="string",this.value=""}},Gc=class extends lt{constructor(e,t,n){super(e,t),this.type="property",this.colonOffset=-1,this.keyNode=n}get children(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]}},Jc=class extends lt{constructor(e,t){super(e,t),this.type="object",this.properties=[]}get children(){return this.properties}};function we(e){return Fe(e)?e?{}:{not:{}}:e}var Ao;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Ao||(Ao={}));var Xc={"http://json-schema.org/draft-03/schema#":Me.v3,"http://json-schema.org/draft-04/schema#":Me.v4,"http://json-schema.org/draft-06/schema#":Me.v6,"http://json-schema.org/draft-07/schema#":Me.v7,"https://json-schema.org/draft/2019-09/schema":Me.v2019_09,"https://json-schema.org/draft/2020-12/schema":Me.v2020_12},ko=class{constructor(e){this.schemaDraft=e}},Qc=class jo{constructor(t=-1,n){this.focusOffset=t,this.exclude=n,this.schemas=[]}add(t){this.schemas.push(t)}merge(t){Array.prototype.push.apply(this.schemas,t.schemas)}include(t){return(this.focusOffset===-1||Ro(t,this.focusOffset))&&t!==this.exclude}newSub(){return new jo(-1,this.exclude)}},Zt=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};Zt.instance=new Zt;var he=class{constructor(){this.problems=[],this.propertiesMatches=0,this.processedProperties=new Set,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}hasProblems(){return!!this.problems.length}merge(e){this.problems=this.problems.concat(e.problems),this.propertiesMatches+=e.propertiesMatches,this.propertiesValueMatches+=e.propertiesValueMatches,this.mergeProcessedProperties(e)}mergeEnumValues(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(const t of this.problems)t.code===H.EnumValueMismatch&&(t.message=E("Value is not accepted. Valid values: {0}.",this.enumValues.map(n=>JSON.stringify(n)).join(", ")))}}mergePropertyMatch(e){this.problems=this.problems.concat(e.problems),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&e.enumValues.length===1&&this.primaryValueMatches++}mergeProcessedProperties(e){e.processedProperties.forEach(t=>this.processedProperties.add(t))}compare(e){const t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.propertiesMatches-e.propertiesMatches}};function Yc(e,t=[]){return new Eo(e,t,[])}function ut(e){return Vc(e)}function Qr(e){return Fc(e)}function Ro(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}var Eo=class{constructor(e,t=[],n=[]){this.root=e,this.syntaxErrors=t,this.comments=n}getNodeFromOffset(e,t=!1){if(this.root)return Ic(this.root,e,t)}visit(e){if(this.root){const t=n=>{let r=e(n);const i=n.children;if(Array.isArray(i))for(let s=0;s<i.length&&r;s++)r=t(i[s]);return r};t(this.root)}}validate(e,t,n=ve.Warning,r){if(this.root&&t){const i=new he;return le(this.root,t,i,Zt.instance,new ko(r??Mo(t))),i.problems.map(s=>{const a=q.create(e.positionAt(s.location.offset),e.positionAt(s.location.offset+s.location.length));return ze.create(a,s.message,s.severity??n,s.code)})}}getMatchingSchemas(e,t=-1,n){if(this.root&&e){const r=new Qc(t,n),i=Mo(e),s=new ko(i);return le(this.root,e,new he,r,s),r.schemas}return[]}};function Mo(e,t=Me.v2020_12){let n=e.$schema;return n?Xc[n]??t:t}function le(e,t,n,r,i){if(!e||!r.include(e))return;if(e.type==="property")return le(e.valueNode,t,n,r,i);const s=e;switch(a(),s.type){case"object":h(s);break;case"array":u(s);break;case"string":o(s);break;case"number":l(s);break}r.add({node:s,schema:t});function a(){function f(_){return s.type===_||_==="integer"&&s.type==="number"&&s.isInteger}if(Array.isArray(t.type)?t.type.some(f)||n.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||E("Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(f(t.type)||n.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||E(\'Incorrect type. Expected "{0}".\',t.type)})),Array.isArray(t.allOf))for(const _ of t.allOf){const v=new he,x=r.newSub();le(s,we(_),v,x,i),n.merge(v),r.merge(x)}const m=we(t.not);if(m){const _=new he,v=r.newSub();le(s,m,_,v,i),_.hasProblems()||n.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||E("Matches a schema that is not allowed.")});for(const x of v.schemas)x.inverted=!x.inverted,r.add(x)}const d=(_,v)=>{const x=[];let b;for(const L of _){const S=we(L),M=new he,F=r.newSub();if(le(s,S,M,F,i),M.hasProblems()||x.push(S),!b)b={schema:S,validationResult:M,matchingSchemas:F};else if(!v&&!M.hasProblems()&&!b.validationResult.hasProblems())b.matchingSchemas.merge(F),b.validationResult.propertiesMatches+=M.propertiesMatches,b.validationResult.propertiesValueMatches+=M.propertiesValueMatches,b.validationResult.mergeProcessedProperties(M);else{const O=M.compare(b.validationResult);O>0?b={schema:S,validationResult:M,matchingSchemas:F}:O===0&&(b.matchingSchemas.merge(F),b.validationResult.mergeEnumValues(M))}}return x.length>1&&v&&n.problems.push({location:{offset:s.offset,length:1},message:E("Matches multiple schemas when only one must validate.")}),b&&(n.merge(b.validationResult),r.merge(b.matchingSchemas)),x.length};Array.isArray(t.anyOf)&&d(t.anyOf,!1),Array.isArray(t.oneOf)&&d(t.oneOf,!0);const g=_=>{const v=new he,x=r.newSub();le(s,we(_),v,x,i),n.merge(v),r.merge(x)},p=(_,v,x)=>{const b=we(_),L=new he,S=r.newSub();le(s,b,L,S,i),r.merge(S),n.mergeProcessedProperties(L),L.hasProblems()?x&&g(x):v&&g(v)},y=we(t.if);if(y&&p(y,we(t.then),we(t.else)),Array.isArray(t.enum)){const _=ut(s);let v=!1;for(const x of t.enum)if(kt(_,x)){v=!0;break}n.enumValues=t.enum,n.enumValueMatch=v,v||n.problems.push({location:{offset:s.offset,length:s.length},code:H.EnumValueMismatch,message:t.errorMessage||E("Value is not accepted. Valid values: {0}.",t.enum.map(x=>JSON.stringify(x)).join(", "))})}if(Re(t.const)){const _=ut(s);kt(_,t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:s.offset,length:s.length},code:H.EnumValueMismatch,message:t.errorMessage||E("Value must be {0}.",JSON.stringify(t.const))}),n.enumValueMatch=!1),n.enumValues=[t.const]}let w=t.deprecationMessage;if(w||t.deprecated){w=w||E("Value is deprecated");let _=s.parent?.type==="property"?s.parent:s;n.problems.push({location:{offset:_.offset,length:_.length},severity:ve.Warning,message:w,code:H.Deprecated})}}function l(f){const m=f.value;function d(x){const b=/^(-?\\d+)(?:\\.(\\d+))?(?:e([-+]\\d+))?$/.exec(x.toString());return b&&{value:Number(b[1]+(b[2]||"")),multiplier:(b[2]?.length||0)-(parseInt(b[3])||0)}}if(fe(t.multipleOf)){let x=-1;if(Number.isInteger(t.multipleOf))x=m%t.multipleOf;else{let b=d(t.multipleOf),L=d(m);if(b&&L){const S=10**Math.abs(L.multiplier-b.multiplier);L.multiplier<b.multiplier?L.value*=S:b.value*=S,x=L.value%b.value}}x!==0&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Value is not divisible by {0}.",t.multipleOf)})}function g(x,b){if(fe(b))return b;if(Fe(b)&&b)return x}function p(x,b){if(!Fe(b)||!b)return x}const y=g(t.minimum,t.exclusiveMinimum);fe(y)&&m<=y&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Value is below the exclusive minimum of {0}.",y)});const w=g(t.maximum,t.exclusiveMaximum);fe(w)&&m>=w&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Value is above the exclusive maximum of {0}.",w)});const _=p(t.minimum,t.exclusiveMinimum);fe(_)&&m<_&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Value is below the minimum of {0}.",_)});const v=p(t.maximum,t.exclusiveMaximum);fe(v)&&m>v&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Value is above the maximum of {0}.",v)})}function o(f){if(fe(t.minLength)&&Aa(f.value)<t.minLength&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("String is shorter than the minimum length of {0}.",t.minLength)}),fe(t.maxLength)&&Aa(f.value)>t.maxLength&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("String is longer than the maximum length of {0}.",t.maxLength)}),Sa(t.pattern)&&(Rn(t.pattern)?.test(f.value)||n.problems.push({location:{offset:f.offset,length:f.length},message:t.patternErrorMessage||t.errorMessage||E(\'String does not match the pattern of "{0}".\',t.pattern)})),t.format)switch(t.format){case"uri":case"uri-reference":{let d;if(!f.value)d=E("URI expected.");else{const g=/^(([^:/?#]+?):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/.exec(f.value);g?!g[2]&&t.format==="uri"&&(d=E("URI with a scheme is expected.")):d=E("URI is expected.")}d&&n.problems.push({location:{offset:f.offset,length:f.length},message:t.patternErrorMessage||t.errorMessage||E("String is not a URI: {0}",d)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":case"hostname":case"ipv4":case"ipv6":const m=jc[t.format];(!f.value||!m.pattern.exec(f.value))&&n.problems.push({location:{offset:f.offset,length:f.length},message:t.patternErrorMessage||t.errorMessage||m.errorMessage})}}function u(f){let m,d;i.schemaDraft>=Me.v2020_12?(m=t.prefixItems,d=Array.isArray(t.items)?void 0:t.items):(m=Array.isArray(t.items)?t.items:void 0,d=Array.isArray(t.items)?t.additionalItems:t.items);let g=0;if(m!==void 0){const w=Math.min(m.length,f.items.length);for(;g<w;g++){const _=m[g],v=we(_),x=new he,b=f.items[g];b&&(le(b,v,x,r,i),n.mergePropertyMatch(x)),n.processedProperties.add(String(g))}}if(d!==void 0&&g<f.items.length)if(typeof d=="boolean")for(d===!1&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Array has too many items according to schema. Expected {0} or fewer.",g)});g<f.items.length;g++)n.processedProperties.add(String(g)),n.propertiesValueMatches++;else for(;g<f.items.length;g++){const w=new he;le(f.items[g],d,w,r,i),n.mergePropertyMatch(w),n.processedProperties.add(String(g))}const p=we(t.contains);if(p){let w=0;for(let _=0;_<f.items.length;_++){const v=f.items[_],x=new he;le(v,p,x,Zt.instance,i),x.hasProblems()||(w++,i.schemaDraft>=Me.v2020_12&&n.processedProperties.add(String(_)))}w===0&&!fe(t.minContains)&&n.problems.push({location:{offset:f.offset,length:f.length},message:t.errorMessage||E("Array does not contain required item.")}),fe(t.minContains)&&w<t.minContains&&n.problems.push({location:{offset:f.offset,length:f.length},message:t.errorMessage||E("Array has too few items that match the contains contraint. Expected {0} or more.",t.minContains)}),fe(t.maxContains)&&w>t.maxContains&&n.problems.push({location:{offset:f.offset,length:f.length},message:t.errorMessage||E("Array has too many items that match the contains contraint. Expected {0} or less.",t.maxContains)})}const y=t.unevaluatedItems;if(y!==void 0)for(let w=0;w<f.items.length;w++){if(!n.processedProperties.has(String(w)))if(y===!1)n.problems.push({location:{offset:f.offset,length:f.length},message:E("Item does not match any validation rule from the array.")});else{const _=new he;le(f.items[w],t.unevaluatedItems,_,r,i),n.mergePropertyMatch(_)}n.processedProperties.add(String(w)),n.propertiesValueMatches++}if(fe(t.minItems)&&f.items.length<t.minItems&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Array has too few items. Expected {0} or more.",t.minItems)}),fe(t.maxItems)&&f.items.length>t.maxItems&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Array has too many items. Expected {0} or fewer.",t.maxItems)}),t.uniqueItems===!0){let w=function(){for(let v=0;v<_.length-1;v++){const x=_[v];for(let b=v+1;b<_.length;b++)if(kt(x,_[b]))return!0}return!1};const _=ut(f);w()&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Array has duplicate items.")})}}function h(f){const m=Object.create(null),d=new Set;for(const v of f.properties){const x=v.keyNode.value;m[x]=v.valueNode,d.add(x)}if(Array.isArray(t.required)){for(const v of t.required)if(!m[v]){const x=f.parent&&f.parent.type==="property"&&f.parent.keyNode,b=x?{offset:x.offset,length:x.length}:{offset:f.offset,length:1};n.problems.push({location:b,message:E(\'Missing property "{0}".\',v)})}}const g=v=>{d.delete(v),n.processedProperties.add(v)};if(t.properties)for(const v of Object.keys(t.properties)){g(v);const x=t.properties[v],b=m[v];if(b)if(Fe(x))if(x)n.propertiesMatches++,n.propertiesValueMatches++;else{const L=b.parent;n.problems.push({location:{offset:L.keyNode.offset,length:L.keyNode.length},message:t.errorMessage||E("Property {0} is not allowed.",v)})}else{const L=new he;le(b,x,L,r,i),n.mergePropertyMatch(L)}}if(t.patternProperties)for(const v of Object.keys(t.patternProperties)){const x=Rn(v);if(x){const b=[];for(const L of d)if(x.test(L)){b.push(L);const S=m[L];if(S){const M=t.patternProperties[v];if(Fe(M))if(M)n.propertiesMatches++,n.propertiesValueMatches++;else{const F=S.parent;n.problems.push({location:{offset:F.keyNode.offset,length:F.keyNode.length},message:t.errorMessage||E("Property {0} is not allowed.",L)})}else{const F=new he;le(S,M,F,r,i),n.mergePropertyMatch(F)}}}b.forEach(g)}}const p=t.additionalProperties;if(p!==void 0)for(const v of d){g(v);const x=m[v];if(x){if(p===!1){const b=x.parent;n.problems.push({location:{offset:b.keyNode.offset,length:b.keyNode.length},message:t.errorMessage||E("Property {0} is not allowed.",v)})}else if(p!==!0){const b=new he;le(x,p,b,r,i),n.mergePropertyMatch(b)}}}const y=t.unevaluatedProperties;if(y!==void 0){const v=[];for(const x of d)if(!n.processedProperties.has(x)){v.push(x);const b=m[x];if(b){if(y===!1){const L=b.parent;n.problems.push({location:{offset:L.keyNode.offset,length:L.keyNode.length},message:t.errorMessage||E("Property {0} is not allowed.",x)})}else if(y!==!0){const L=new he;le(b,y,L,r,i),n.mergePropertyMatch(L)}}}v.forEach(g)}if(fe(t.maxProperties)&&f.properties.length>t.maxProperties&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Object has more properties than limit of {0}.",t.maxProperties)}),fe(t.minProperties)&&f.properties.length<t.minProperties&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Object has fewer properties than the required number of {0}",t.minProperties)}),t.dependentRequired)for(const v in t.dependentRequired){const x=m[v],b=t.dependentRequired[v];x&&Array.isArray(b)&&_(v,b)}if(t.dependentSchemas)for(const v in t.dependentSchemas){const x=m[v],b=t.dependentSchemas[v];x&&et(b)&&_(v,b)}if(t.dependencies)for(const v in t.dependencies)m[v]&&_(v,t.dependencies[v]);const w=we(t.propertyNames);if(w)for(const v of f.properties){const x=v.keyNode;x&&le(x,w,n,Zt.instance,i)}function _(v,x){if(Array.isArray(x))for(const b of x)m[b]?n.propertiesValueMatches++:n.problems.push({location:{offset:f.offset,length:f.length},message:E("Object is missing property {0} required by property {1}.",b,v)});else{const b=we(x);if(b){const L=new he;le(f,b,L,r,i),n.mergePropertyMatch(L)}}}}}function Zc(e,t){const n=[];let r=-1;const i=e.getText(),s=at(i,!1),a=t&&t.collectComments?[]:void 0;function l(){for(;;){const L=s.scan();switch(h(),L){case 12:case 13:Array.isArray(a)&&a.push(q.create(e.positionAt(s.getTokenOffset()),e.positionAt(s.getTokenOffset()+s.getTokenLength())));break;case 15:case 14:break;default:return L}}}function o(L,S,M,F,O=ve.Error){if(n.length===0||M!==r){const C=q.create(e.positionAt(M),e.positionAt(F));n.push(ze.create(C,L,O,S,e.languageId)),r=M}}function u(L,S,M=void 0,F=[],O=[]){let C=s.getTokenOffset(),N=s.getTokenOffset()+s.getTokenLength();if(C===N&&C>0){for(C--;C>0&&/\\s/.test(i.charAt(C));)C--;N=C+1}if(o(L,S,C,N),M&&f(M,!1),F.length+O.length>0){let k=s.getToken();for(;k!==17;){if(F.indexOf(k)!==-1){l();break}else if(O.indexOf(k)!==-1)break;k=l()}}return M}function h(){switch(s.getTokenError()){case 4:return u(E("Invalid unicode sequence in string."),H.InvalidUnicode),!0;case 5:return u(E("Invalid escape character in string."),H.InvalidEscapeCharacter),!0;case 3:return u(E("Unexpected end of number."),H.UnexpectedEndOfNumber),!0;case 1:return u(E("Unexpected end of comment."),H.UnexpectedEndOfComment),!0;case 2:return u(E("Unexpected end of string."),H.UnexpectedEndOfString),!0;case 6:return u(E("Invalid characters in string. Control characters must be escaped."),H.InvalidCharacter),!0}return!1}function f(L,S){return L.length=s.getTokenOffset()+s.getTokenLength()-L.offset,S&&l(),L}function m(L){if(s.getToken()!==3)return;const S=new Hc(L,s.getTokenOffset());l();let M=!1;for(;s.getToken()!==4&&s.getToken()!==17;){if(s.getToken()===5){M||u(E("Value expected"),H.ValueExpected);const O=s.getTokenOffset();if(l(),s.getToken()===4){M&&o(E("Trailing comma"),H.TrailingComma,O,O+1);continue}}else M&&u(E("Expected comma"),H.CommaExpected);const F=v(S);F?S.items.push(F):u(E("Value expected"),H.ValueExpected,void 0,[],[4,5]),M=!0}return s.getToken()!==4?u(E("Expected comma or closing bracket"),H.CommaOrCloseBacketExpected,S):f(S,!0)}const d=new Xr(void 0,0,0);function g(L,S){const M=new Gc(L,s.getTokenOffset(),d);let F=y(M);if(!F)if(s.getToken()===16){u(E("Property keys must be doublequoted"),H.PropertyKeysMustBeDoublequoted);const C=new Xr(M,s.getTokenOffset(),s.getTokenLength());C.value=s.getTokenValue(),F=C,l()}else return;if(M.keyNode=F,F.value!=="//"){const C=S[F.value];C?(o(E("Duplicate object key"),H.DuplicateKey,M.keyNode.offset,M.keyNode.offset+M.keyNode.length,ve.Warning),et(C)&&o(E("Duplicate object key"),H.DuplicateKey,C.keyNode.offset,C.keyNode.offset+C.keyNode.length,ve.Warning),S[F.value]=!0):S[F.value]=M}if(s.getToken()===6)M.colonOffset=s.getTokenOffset(),l();else if(u(E("Colon expected"),H.ColonExpected),s.getToken()===10&&e.positionAt(F.offset+F.length).line<e.positionAt(s.getTokenOffset()).line)return M.length=F.length,M;const O=v(M);return O?(M.valueNode=O,M.length=O.offset+O.length-M.offset,M):u(E("Value expected"),H.ValueExpected,M,[],[2,5])}function p(L){if(s.getToken()!==1)return;const S=new Jc(L,s.getTokenOffset()),M=Object.create(null);l();let F=!1;for(;s.getToken()!==2&&s.getToken()!==17;){if(s.getToken()===5){F||u(E("Property expected"),H.PropertyExpected);const C=s.getTokenOffset();if(l(),s.getToken()===2){F&&o(E("Trailing comma"),H.TrailingComma,C,C+1);continue}}else F&&u(E("Expected comma"),H.CommaExpected);const O=g(S,M);O?S.properties.push(O):u(E("Property expected"),H.PropertyExpected,void 0,[],[2,5]),F=!0}return s.getToken()!==2?u(E("Expected comma or closing brace"),H.CommaOrCloseBraceExpected,S):f(S,!0)}function y(L){if(s.getToken()!==10)return;const S=new Xr(L,s.getTokenOffset());return S.value=s.getTokenValue(),f(S,!0)}function w(L){if(s.getToken()!==11)return;const S=new zc(L,s.getTokenOffset());if(s.getTokenError()===0){const M=s.getTokenValue();try{const F=JSON.parse(M);if(!fe(F))return u(E("Invalid number format."),H.Undefined,S);S.value=F}catch{return u(E("Invalid number format."),H.Undefined,S)}S.isInteger=M.indexOf(".")===-1}return f(S,!0)}function _(L){switch(s.getToken()){case 7:return f(new Wc(L,s.getTokenOffset()),!0);case 8:return f(new So(L,!0,s.getTokenOffset()),!0);case 9:return f(new So(L,!1,s.getTokenOffset()),!0);default:return}}function v(L){return m(L)||p(L)||y(L)||w(L)||_(L)}let x;return l()!==17&&(x=v(x),x?s.getToken()!==17&&u(E("End of file expected."),H.Undefined):u(E("Expected a JSON object, array or literal."),H.Undefined)),new Eo(x,n,a)}function Yr(e,t,n){if(e!==null&&typeof e=="object"){const r=t+" ";if(Array.isArray(e)){if(e.length===0)return"[]";let i=`[\n`;for(let s=0;s<e.length;s++)i+=r+Yr(e[s],r,n),s<e.length-1&&(i+=","),i+=`\n`;return i+=t+"]",i}else{const i=Object.keys(e);if(i.length===0)return"{}";let s=`{\n`;for(let a=0;a<i.length;a++){const l=i[a];s+=r+JSON.stringify(l)+": "+Yr(e[l],r,n),a<i.length-1&&(s+=","),s+=`\n`}return s+=t+"}",s}}return n(e)}var Kc=class{constructor(e,t=[],n=Promise,r={}){this.schemaService=e,this.contributions=t,this.promiseConstructor=n,this.clientCapabilities=r}doResolve(e){for(let t=this.contributions.length-1;t>=0;t--){const n=this.contributions[t].resolveCompletion;if(n){const r=n(e);if(r)return r}}return this.promiseConstructor.resolve(e)}doComplete(e,t,n){const r={items:[],isIncomplete:!1},i=e.getText(),s=e.offsetAt(t);let a=n.getNodeFromOffset(s,!0);if(this.isInComment(e,a?a.offset:0,s))return Promise.resolve(r);if(a&&s===a.offset+a.length&&s>0){const f=i[s-1];(a.type==="object"&&f==="}"||a.type==="array"&&f==="]")&&(a=a.parent)}const l=this.getCurrentWord(e,s);let o;if(a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null"))o=q.create(e.positionAt(a.offset),e.positionAt(a.offset+a.length));else{let f=s-l.length;f>0&&i[f-1]===\'"\'&&f--,o=q.create(e.positionAt(f),t)}const u=new Map,h={add:f=>{let m=f.label;const d=u.get(m);if(d)d.documentation||(d.documentation=f.documentation),d.detail||(d.detail=f.detail),d.labelDetails||(d.labelDetails=f.labelDetails);else{if(m=m.replace(/[\\n]/g,"↵"),m.length>60){const g=m.substr(0,57).trim()+"...";u.has(g)||(m=g)}f.textEdit=Ve.replace(o,f.insertText),f.label=m,u.set(m,f),r.items.push(f)}},setAsIncomplete:()=>{r.isIncomplete=!0},error:f=>{console.error(f)},getNumberOfProposals:()=>r.items.length};return this.schemaService.getSchemaForResource(e.uri,n).then(f=>{const m=[];let d=!0,g="",p;if(a&&a.type==="string"){const w=a.parent;w&&w.type==="property"&&w.keyNode===a&&(d=!w.valueNode,p=w,g=i.substr(a.offset+1,a.length-2),w&&(a=w.parent))}if(a&&a.type==="object"){if(a.offset===s)return r;a.properties.forEach(x=>{(!p||p!==x)&&u.set(x.keyNode.value,Wr.create("__"))});let _="";d&&(_=this.evaluateSeparatorAfter(e,e.offsetAt(o.end))),f?this.getPropertyCompletions(f,n,a,d,_,h):this.getSchemaLessPropertyCompletions(n,a,g,h);const v=Qr(a);this.contributions.forEach(x=>{const b=x.collectPropertyCompletions(e.uri,v,l,d,_==="",h);b&&m.push(b)}),!f&&l.length>0&&i.charAt(s-l.length-1)!==\'"\'&&(h.add({kind:xe.Property,label:this.getLabelForValue(l),insertText:this.getInsertTextForProperty(l,void 0,!1,_),insertTextFormat:ie.Snippet,documentation:""}),h.setAsIncomplete())}const y={};return f?this.getValueCompletions(f,n,a,s,e,h,y):this.getSchemaLessValueCompletions(n,a,s,e,h),this.contributions.length>0&&this.getContributedValueCompletions(n,a,s,e,h,m),this.promiseConstructor.all(m).then(()=>{if(h.getNumberOfProposals()===0){let w=s;a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null")&&(w=a.offset+a.length);const _=this.evaluateSeparatorAfter(e,w);this.addFillerValueCompletions(y,_,h)}return r})})}getPropertyCompletions(e,t,n,r,i,s){t.getMatchingSchemas(e.schema,n.offset).forEach(l=>{if(l.node===n&&!l.inverted){const o=l.schema.properties;o&&Object.keys(o).forEach(h=>{const f=o[h];if(typeof f=="object"&&!f.deprecationMessage&&!f.doNotSuggest){const m={kind:xe.Property,label:h,insertText:this.getInsertTextForProperty(h,f,r,i),insertTextFormat:ie.Snippet,filterText:this.getFilterTextForValue(h),documentation:this.fromMarkup(f.markdownDescription)||f.description||""};f.suggestSortText!==void 0&&(m.sortText=f.suggestSortText),m.insertText&&Xt(m.insertText,`$1${i}`)&&(m.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(m)}});const u=l.schema.propertyNames;if(typeof u=="object"&&!u.deprecationMessage&&!u.doNotSuggest){const h=(f,m=void 0)=>{const d={kind:xe.Property,label:f,insertText:this.getInsertTextForProperty(f,void 0,r,i),insertTextFormat:ie.Snippet,filterText:this.getFilterTextForValue(f),documentation:m||this.fromMarkup(u.markdownDescription)||u.description||""};u.suggestSortText!==void 0&&(d.sortText=u.suggestSortText),d.insertText&&Xt(d.insertText,`$1${i}`)&&(d.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(d)};if(u.enum)for(let f=0;f<u.enum.length;f++){let m;u.markdownEnumDescriptions&&f<u.markdownEnumDescriptions.length?m=this.fromMarkup(u.markdownEnumDescriptions[f]):u.enumDescriptions&&f<u.enumDescriptions.length&&(m=u.enumDescriptions[f]),h(u.enum[f],m)}u.const&&h(u.const)}}})}getSchemaLessPropertyCompletions(e,t,n,r){const i=s=>{s.properties.forEach(a=>{const l=a.keyNode.value;r.add({kind:xe.Property,label:l,insertText:this.getInsertTextForValue(l,""),insertTextFormat:ie.Snippet,filterText:this.getFilterTextForValue(l),documentation:""})})};if(t.parent)if(t.parent.type==="property"){const s=t.parent.keyNode.value;e.visit(a=>(a.type==="property"&&a!==t.parent&&a.keyNode.value===s&&a.valueNode&&a.valueNode.type==="object"&&i(a.valueNode),!0))}else t.parent.type==="array"&&t.parent.items.forEach(s=>{s.type==="object"&&s!==t&&i(s)});else t.type==="object"&&r.add({kind:xe.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:ie.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})}getSchemaLessValueCompletions(e,t,n,r,i){let s=n;if(t&&(t.type==="string"||t.type==="number"||t.type==="boolean"||t.type==="null")&&(s=t.offset+t.length,t=t.parent),!t){i.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:ie.Snippet,documentation:""}),i.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:ie.Snippet,documentation:""});return}const a=this.evaluateSeparatorAfter(r,s),l=o=>{o.parent&&!Ro(o.parent,n,!0)&&i.add({kind:this.getSuggestionKind(o.type),label:this.getLabelTextForMatchingNode(o,r),insertText:this.getInsertTextForMatchingNode(o,r,a),insertTextFormat:ie.Snippet,documentation:""}),o.type==="boolean"&&this.addBooleanValueCompletion(!o.value,a,i)};if(t.type==="property"&&n>(t.colonOffset||0)){const o=t.valueNode;if(o&&(n>o.offset+o.length||o.type==="object"||o.type==="array"))return;const u=t.keyNode.value;e.visit(h=>(h.type==="property"&&h.keyNode.value===u&&h.valueNode&&l(h.valueNode),!0)),u==="$schema"&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(a,i)}if(t.type==="array")if(t.parent&&t.parent.type==="property"){const o=t.parent.keyNode.value;e.visit(u=>(u.type==="property"&&u.keyNode.value===o&&u.valueNode&&u.valueNode.type==="array"&&u.valueNode.items.forEach(l),!0))}else t.items.forEach(l)}getValueCompletions(e,t,n,r,i,s,a){let l=r,o,u;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(l=n.offset+n.length,u=n,n=n.parent),!n){this.addSchemaValueCompletions(e.schema,"",s,a);return}if(n.type==="property"&&r>(n.colonOffset||0)){const h=n.valueNode;if(h&&r>h.offset+h.length)return;o=n.keyNode.value,n=n.parent}if(n&&(o!==void 0||n.type==="array")){const h=this.evaluateSeparatorAfter(i,l),f=t.getMatchingSchemas(e.schema,n.offset,u);for(const m of f)if(m.node===n&&!m.inverted&&m.schema){if(n.type==="array"&&m.schema.items){let d=s;if(m.schema.uniqueItems){const g=new Set;n.children.forEach(p=>{p.type!=="array"&&p.type!=="object"&&g.add(this.getLabelForValue(ut(p)))}),d={...s,add(p){g.has(p.label)||s.add(p)}}}if(Array.isArray(m.schema.items)){const g=this.findItemAtOffset(n,i,r);g<m.schema.items.length&&this.addSchemaValueCompletions(m.schema.items[g],h,d,a)}else this.addSchemaValueCompletions(m.schema.items,h,d,a)}if(o!==void 0){let d=!1;if(m.schema.properties){const g=m.schema.properties[o];g&&(d=!0,this.addSchemaValueCompletions(g,h,s,a))}if(m.schema.patternProperties&&!d){for(const g of Object.keys(m.schema.patternProperties))if(Rn(g)?.test(o)){d=!0;const y=m.schema.patternProperties[g];this.addSchemaValueCompletions(y,h,s,a)}}if(m.schema.additionalProperties&&!d){const g=m.schema.additionalProperties;this.addSchemaValueCompletions(g,h,s,a)}}}o==="$schema"&&!n.parent&&this.addDollarSchemaCompletions(h,s),a.boolean&&(this.addBooleanValueCompletion(!0,h,s),this.addBooleanValueCompletion(!1,h,s)),a.null&&this.addNullValueCompletion(h,s)}}getContributedValueCompletions(e,t,n,r,i,s){if(!t)this.contributions.forEach(a=>{const l=a.collectDefaultCompletions(r.uri,i);l&&s.push(l)});else if((t.type==="string"||t.type==="number"||t.type==="boolean"||t.type==="null")&&(t=t.parent),t&&t.type==="property"&&n>(t.colonOffset||0)){const a=t.keyNode.value,l=t.valueNode;if((!l||n<=l.offset+l.length)&&t.parent){const o=Qr(t.parent);this.contributions.forEach(u=>{const h=u.collectValueCompletions(r.uri,o,a,i);h&&s.push(h)})}}}addSchemaValueCompletions(e,t,n,r){typeof e=="object"&&(this.addEnumValueCompletions(e,t,n),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),Array.isArray(e.allOf)&&e.allOf.forEach(i=>this.addSchemaValueCompletions(i,t,n,r)),Array.isArray(e.anyOf)&&e.anyOf.forEach(i=>this.addSchemaValueCompletions(i,t,n,r)),Array.isArray(e.oneOf)&&e.oneOf.forEach(i=>this.addSchemaValueCompletions(i,t,n,r)))}addDefaultValueCompletions(e,t,n,r=0){let i=!1;if(Re(e.default)){let s=e.type,a=e.default;for(let o=r;o>0;o--)a=[a],s="array";const l={kind:this.getSuggestionKind(s),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t),insertTextFormat:ie.Snippet};this.doesSupportsLabelDetails()?l.labelDetails={description:E("Default value")}:l.detail=E("Default value"),n.add(l),i=!0}Array.isArray(e.examples)&&e.examples.forEach(s=>{let a=e.type,l=s;for(let o=r;o>0;o--)l=[l],a="array";n.add({kind:this.getSuggestionKind(a),label:this.getLabelForValue(l),insertText:this.getInsertTextForValue(l,t),insertTextFormat:ie.Snippet}),i=!0}),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach(s=>{let a=e.type,l=s.body,o=s.label,u,h;if(Re(l)){e.type;for(let f=r;f>0;f--)l=[l];u=this.getInsertTextForSnippetValue(l,t),h=this.getFilterTextForSnippetValue(l),o=o||this.getLabelForSnippetValue(l)}else if(typeof s.bodyText=="string"){let f="",m="",d="";for(let g=r;g>0;g--)f=f+d+`[\n`,m=m+`\n`+d+"]",d+=" ",a="array";u=f+d+s.bodyText.split(`\n`).join(`\n`+d)+m+t,o=o||u,h=u.replace(/[\\n]/g,"")}else return;n.add({kind:this.getSuggestionKind(a),label:o,documentation:this.fromMarkup(s.markdownDescription)||s.description,insertText:u,insertTextFormat:ie.Snippet,filterText:h}),i=!0}),!i&&typeof e.items=="object"&&!Array.isArray(e.items)&&r<5&&this.addDefaultValueCompletions(e.items,t,n,r+1)}addEnumValueCompletions(e,t,n){if(Re(e.const)&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:ie.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let r=0,i=e.enum.length;r<i;r++){const s=e.enum[r];let a=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&r<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?a=this.fromMarkup(e.markdownEnumDescriptions[r]):e.enumDescriptions&&r<e.enumDescriptions.length&&(a=e.enumDescriptions[r]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(s),insertText:this.getInsertTextForValue(s,t),insertTextFormat:ie.Snippet,documentation:a})}}collectTypes(e,t){if(Array.isArray(e.enum)||Re(e.const))return;const n=e.type;Array.isArray(n)?n.forEach(r=>t[r]=!0):n&&(t[n]=!0)}addFillerValueCompletions(e,t,n){e.object&&n.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},t),insertTextFormat:ie.Snippet,detail:E("New object"),documentation:""}),e.array&&n.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],t),insertTextFormat:ie.Snippet,detail:E("New array"),documentation:""})}addBooleanValueCompletion(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t),insertTextFormat:ie.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:ie.Snippet,documentation:""})}addDollarSchemaCompletions(e,t){this.schemaService.getRegisteredSchemaIds(r=>r==="http"||r==="https").forEach(r=>{r.startsWith("http://json-schema.org/draft-")&&(r=r+"#"),t.add({kind:xe.Module,label:this.getLabelForValue(r),filterText:this.getFilterTextForValue(r),insertText:this.getInsertTextForValue(r,e),insertTextFormat:ie.Snippet,documentation:""})})}getLabelForValue(e){return JSON.stringify(e)}getValueFromLabel(e){return JSON.parse(e)}getFilterTextForValue(e){return JSON.stringify(e)}getFilterTextForSnippetValue(e){return JSON.stringify(e).replace(/\\$\\{\\d+:([^}]+)\\}|\\$\\d+/g,"$1")}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\\$\\{\\d+:([^}]+)\\}|\\$\\d+/g,"$1")}getInsertTextForPlainText(e){return e.replace(/[\\\\\\$\\}]/g,"\\\\$&")}getInsertTextForValue(e,t){const n=JSON.stringify(e,null," ");return n==="{}"?"{$1}"+t:n==="[]"?"[$1]"+t:this.getInsertTextForPlainText(n+t)}getInsertTextForSnippetValue(e,t){return Yr(e,"",r=>typeof r=="string"&&r[0]==="^"?r.substr(1):JSON.stringify(r))+t}getInsertTextForGuessedValue(e,t){switch(typeof e){case"object":return e===null?"${1:null}"+t:this.getInsertTextForValue(e,t);case"string":let n=JSON.stringify(e);return n=n.substr(1,n.length-2),n=this.getInsertTextForPlainText(n),\'"${1:\'+n+\'}"\'+t;case"number":case"boolean":return"${1:"+JSON.stringify(e)+"}"+t}return this.getInsertTextForValue(e,t)}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:void 0}if(!e)return xe.Value;switch(e){case"string":return xe.Value;case"object":return xe.Module;case"property":return xe.Property;default:return xe.Value}}getLabelTextForMatchingNode(e,t){switch(e.type){case"array":return"[]";case"object":return"{}";default:return t.getText().substr(e.offset,e.length)}}getInsertTextForMatchingNode(e,t,n){switch(e.type){case"array":return this.getInsertTextForValue([],n);case"object":return this.getInsertTextForValue({},n);default:const r=t.getText().substr(e.offset,e.length)+n;return this.getInsertTextForPlainText(r)}}getInsertTextForProperty(e,t,n,r){const i=this.getInsertTextForValue(e,"");if(!n)return i;const s=i+": ";let a,l=0;if(t){if(Array.isArray(t.defaultSnippets)){if(t.defaultSnippets.length===1){const o=t.defaultSnippets[0].body;Re(o)&&(a=this.getInsertTextForSnippetValue(o,""))}l+=t.defaultSnippets.length}if(t.enum&&(!a&&t.enum.length===1&&(a=this.getInsertTextForGuessedValue(t.enum[0],"")),l+=t.enum.length),Re(t.const)&&(a||(a=this.getInsertTextForGuessedValue(t.const,"")),l++),Re(t.default)&&(a||(a=this.getInsertTextForGuessedValue(t.default,"")),l++),Array.isArray(t.examples)&&t.examples.length&&(a||(a=this.getInsertTextForGuessedValue(t.examples[0],"")),l+=t.examples.length),l===0){let o=Array.isArray(t.type)?t.type[0]:t.type;switch(o||(t.properties?o="object":t.items&&(o="array")),o){case"boolean":a="$1";break;case"string":a=\'"$1"\';break;case"object":a="{$1}";break;case"array":a="[$1]";break;case"number":case"integer":a="${1:0}";break;case"null":a="${1:null}";break;default:return i}}}return(!a||l>1)&&(a="$1"),s+a+r}getCurrentWord(e,t){let n=t-1;const r=e.getText();for(;n>=0&&` \n\\r\\v":{[,]}`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,t)}evaluateSeparatorAfter(e,t){const n=at(e.getText(),!0);switch(n.setPosition(t),n.scan()){case 5:case 2:case 4:case 17:return"";default:return","}}findItemAtOffset(e,t,n){const r=at(t.getText(),!0),i=e.items;for(let s=i.length-1;s>=0;s--){const a=i[s];if(n>a.offset+a.length)return r.setPosition(a.offset+a.length),r.scan()===5&&n>=r.getTokenOffset()+r.getTokenLength()?s+1:s;if(n>=a.offset)return s}return 0}isInComment(e,t,n){const r=at(e.getText(),!1);r.setPosition(t);let i=r.scan();for(;i!==17&&r.getTokenOffset()+r.getTokenLength()<n;)i=r.scan();return(i===12||i===13)&&r.getTokenOffset()<=n}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:ot.Markdown,value:e}}doesSupportMarkdown(){if(!Re(this.supportsMarkdown)){const e=this.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&e.indexOf(ot.Markdown)!==-1}return this.supportsMarkdown}doesSupportsCommitCharacters(){return Re(this.supportsCommitCharacters)||(this.labelDetailsSupport=this.clientCapabilities.textDocument?.completion?.completionItem?.commitCharactersSupport),this.supportsCommitCharacters}doesSupportsLabelDetails(){return Re(this.labelDetailsSupport)||(this.labelDetailsSupport=this.clientCapabilities.textDocument?.completion?.completionItem?.labelDetailsSupport),this.labelDetailsSupport}},e1=class{constructor(e,t=[],n){this.schemaService=e,this.contributions=t,this.promise=n||Promise}doHover(e,t,n){const r=e.offsetAt(t);let i=n.getNodeFromOffset(r);if(!i||(i.type==="object"||i.type==="array")&&r>i.offset+1&&r<i.offset+i.length-1)return this.promise.resolve(null);const s=i;if(i.type==="string"){const u=i.parent;if(u&&u.type==="property"&&u.keyNode===i&&(i=u.valueNode,!i))return this.promise.resolve(null)}const a=q.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length)),l=u=>({contents:u,range:a}),o=Qr(i);for(let u=this.contributions.length-1;u>=0;u--){const f=this.contributions[u].getInfoContribution(e.uri,o);if(f)return f.then(m=>l(m))}return this.schemaService.getSchemaForResource(e.uri,n).then(u=>{if(u&&i){const h=n.getMatchingSchemas(u.schema,i.offset);let f,m,d,g;h.every(y=>{if(y.node===i&&!y.inverted&&y.schema&&(f=f||y.schema.title,m=m||y.schema.markdownDescription||Zr(y.schema.description),y.schema.enum)){const w=y.schema.enum.indexOf(ut(i));y.schema.markdownEnumDescriptions?d=y.schema.markdownEnumDescriptions[w]:y.schema.enumDescriptions&&(d=Zr(y.schema.enumDescriptions[w])),d&&(g=y.schema.enum[w],typeof g!="string"&&(g=JSON.stringify(g)))}return!0});let p="";return f&&(p=Zr(f)),m&&(p.length>0&&(p+=`\n\n`),p+=m),d&&(p.length>0&&(p+=`\n\n`),p+=`\\`${t1(g)}\\`: ${d}`),l([p])}return null})}};function Zr(e){if(e)return e.replace(/([^\\n\\r])(\\r?\\n)([^\\n\\r])/gm,`$1\n\n$3`).replace(/[\\\\`*_{}[\\]()#+\\-.!]/g,"\\\\$&")}function t1(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var n1=class{constructor(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}configure(e){e&&(this.validationEnabled=e.validate!==!1,this.commentSeverity=e.allowComments?void 0:ve.Error)}doValidation(e,t,n,r){if(!this.validationEnabled)return this.promise.resolve([]);const i=[],s={},a=o=>{const u=o.range.start.line+" "+o.range.start.character+" "+o.message;s[u]||(s[u]=!0,i.push(o))},l=o=>{let u=n?.trailingCommas?Pn(n.trailingCommas):ve.Error,h=n?.comments?Pn(n.comments):this.commentSeverity,f=n?.schemaValidation?Pn(n.schemaValidation):ve.Warning,m=n?.schemaRequest?Pn(n.schemaRequest):ve.Warning;if(o){const d=(g,p)=>{if(t.root&&m){const y=t.root,w=y.type==="object"?y.properties[0]:void 0;if(w&&w.keyNode.value==="$schema"){const _=w.valueNode||w,v=q.create(e.positionAt(_.offset),e.positionAt(_.offset+_.length));a(ze.create(v,g,m,p))}else{const _=q.create(e.positionAt(y.offset),e.positionAt(y.offset+1));a(ze.create(_,g,m,p))}}};if(o.errors.length)d(o.errors[0],H.SchemaResolveError);else if(f){for(const p of o.warnings)d(p,H.SchemaUnsupportedFeature);const g=t.validate(e,o.schema,f,n?.schemaDraft);g&&g.forEach(a)}Co(o.schema)&&(h=void 0),To(o.schema)&&(u=void 0)}for(const d of t.syntaxErrors){if(d.code===H.TrailingComma){if(typeof u!="number")continue;d.severity=u}a(d)}if(typeof h=="number"){const d=E("Comments are not permitted in JSON.");t.comments.forEach(g=>{a(ze.create(g,d,h,H.CommentNotPermitted))})}return i};if(r){const o=r.id||"schemaservice://untitled/"+r1++;return this.jsonSchemaService.registerExternalSchema({uri:o,schema:r}).getResolvedSchema().then(h=>l(h))}return this.jsonSchemaService.getSchemaForResource(e.uri,t).then(o=>l(o))}getLanguageStatus(e,t){return{schemas:this.jsonSchemaService.getSchemaURIsForResource(e.uri,t)}}},r1=0;function Co(e){if(e&&typeof e=="object"){if(Fe(e.allowComments))return e.allowComments;if(e.allOf)for(const t of e.allOf){const n=Co(t);if(Fe(n))return n}}}function To(e){if(e&&typeof e=="object"){if(Fe(e.allowTrailingCommas))return e.allowTrailingCommas;const t=e;if(Fe(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(const n of e.allOf){const r=To(n);if(Fe(r))return r}}}function Pn(e){switch(e){case"error":return ve.Error;case"warning":return ve.Warning;case"ignore":return}}var Po=48,i1=57,s1=65,In=97,a1=102;function te(e){return e<Po?0:e<=i1?e-Po:(e<In&&(e+=In-s1),e>=In&&e<=a1?e-In+10:0)}function o1(e){if(e[0]==="#")switch(e.length){case 4:return{red:te(e.charCodeAt(1))*17/255,green:te(e.charCodeAt(2))*17/255,blue:te(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:te(e.charCodeAt(1))*17/255,green:te(e.charCodeAt(2))*17/255,blue:te(e.charCodeAt(3))*17/255,alpha:te(e.charCodeAt(4))*17/255};case 7:return{red:(te(e.charCodeAt(1))*16+te(e.charCodeAt(2)))/255,green:(te(e.charCodeAt(3))*16+te(e.charCodeAt(4)))/255,blue:(te(e.charCodeAt(5))*16+te(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(te(e.charCodeAt(1))*16+te(e.charCodeAt(2)))/255,green:(te(e.charCodeAt(3))*16+te(e.charCodeAt(4)))/255,blue:(te(e.charCodeAt(5))*16+te(e.charCodeAt(6)))/255,alpha:(te(e.charCodeAt(7))*16+te(e.charCodeAt(8)))/255}}}var l1=class{constructor(e){this.schemaService=e}findDocumentSymbols(e,t,n={resultLimit:Number.MAX_VALUE}){const r=t.root;if(!r)return[];let i=n.resultLimit||Number.MAX_VALUE;const s=e.uri;if((s==="vscode://defaultsettings/keybindings.json"||Xt(s.toLowerCase(),"/user/keybindings.json"))&&r.type==="array"){const f=[];for(const m of r.items)if(m.type==="object"){for(const d of m.properties)if(d.keyNode.value==="key"&&d.valueNode){const g=Rt.create(e.uri,tt(e,m));if(f.push({name:Io(d.valueNode),kind:De.Function,location:g}),i--,i<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),f}}return f}const a=[{node:r,containerName:""}];let l=0,o=!1;const u=[],h=(f,m)=>{f.type==="array"?f.items.forEach(d=>{d&&a.push({node:d,containerName:m})}):f.type==="object"&&f.properties.forEach(d=>{const g=d.valueNode;if(g)if(i>0){i--;const p=Rt.create(e.uri,tt(e,d)),y=m?m+"."+d.keyNode.value:d.keyNode.value;u.push({name:this.getKeyLabel(d),kind:this.getSymbolKind(g.type),location:p,containerName:m}),a.push({node:g,containerName:y})}else o=!0})};for(;l<a.length;){const f=a[l++];h(f.node,f.containerName)}return o&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),u}findDocumentSymbols2(e,t,n={resultLimit:Number.MAX_VALUE}){const r=t.root;if(!r)return[];let i=n.resultLimit||Number.MAX_VALUE;const s=e.uri;if((s==="vscode://defaultsettings/keybindings.json"||Xt(s.toLowerCase(),"/user/keybindings.json"))&&r.type==="array"){const f=[];for(const m of r.items)if(m.type==="object"){for(const d of m.properties)if(d.keyNode.value==="key"&&d.valueNode){const g=tt(e,m),p=tt(e,d.keyNode);if(f.push({name:Io(d.valueNode),kind:De.Function,range:g,selectionRange:p}),i--,i<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),f}}return f}const a=[],l=[{node:r,result:a}];let o=0,u=!1;const h=(f,m)=>{f.type==="array"?f.items.forEach((d,g)=>{if(d)if(i>0){i--;const p=tt(e,d),y=p,_={name:String(g),kind:this.getSymbolKind(d.type),range:p,selectionRange:y,children:[]};m.push(_),l.push({result:_.children,node:d})}else u=!0}):f.type==="object"&&f.properties.forEach(d=>{const g=d.valueNode;if(g)if(i>0){i--;const p=tt(e,d),y=tt(e,d.keyNode),w=[],_={name:this.getKeyLabel(d),kind:this.getSymbolKind(g.type),range:p,selectionRange:y,children:w,detail:this.getDetail(g)};m.push(_),l.push({result:w,node:g})}else u=!0})};for(;o<l.length;){const f=l[o++];h(f.node,f.result)}return u&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),a}getSymbolKind(e){switch(e){case"object":return De.Module;case"string":return De.String;case"number":return De.Number;case"array":return De.Array;case"boolean":return De.Boolean;default:return De.Variable}}getKeyLabel(e){let t=e.keyNode.value;return t&&(t=t.replace(/[\\n]/g,"↵")),t&&t.trim()?t:`"${t}"`}getDetail(e){if(e){if(e.type==="boolean"||e.type==="number"||e.type==="null"||e.type==="string")return String(e.value);if(e.type==="array")return e.children.length?void 0:"[]";if(e.type==="object")return e.children.length?void 0:"{}"}}findDocumentColors(e,t,n){return this.schemaService.getSchemaForResource(e.uri,t).then(r=>{const i=[];if(r){let s=n&&typeof n.resultLimit=="number"?n.resultLimit:Number.MAX_VALUE;const a=t.getMatchingSchemas(r.schema),l={};for(const o of a)if(!o.inverted&&o.schema&&(o.schema.format==="color"||o.schema.format==="color-hex")&&o.node&&o.node.type==="string"){const u=String(o.node.offset);if(!l[u]){const h=o1(ut(o.node));if(h){const f=tt(e,o.node);i.push({color:h,range:f})}if(l[u]=!0,s--,s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(e.uri),i}}}return i})}getColorPresentations(e,t,n,r){const i=[],s=Math.round(n.red*255),a=Math.round(n.green*255),l=Math.round(n.blue*255);function o(h){const f=h.toString(16);return f.length!==2?"0"+f:f}let u;return n.alpha===1?u=`#${o(s)}${o(a)}${o(l)}`:u=`#${o(s)}${o(a)}${o(l)}${o(Math.round(n.alpha*255))}`,i.push({label:u,textEdit:Ve.replace(r,JSON.stringify(u))}),i}};function tt(e,t){return q.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}function Io(e){return ut(e)||E("<empty>")}var Kr={schemaAssociations:[],schemas:{"http://json-schema.org/draft-04/schema#":{$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},u1={id:E("A unique identifier for the schema."),$schema:E("The schema to verify this document against."),title:E("A descriptive title of the element."),description:E("A long description of the element. Used in hover menus and suggestions."),default:E("A default value. Used by suggestions."),multipleOf:E("A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:E("The maximum numerical value, inclusive by default."),exclusiveMaximum:E("Makes the maximum property exclusive."),minimum:E("The minimum numerical value, inclusive by default."),exclusiveMinimum:E("Makes the minimum property exclusive."),maxLength:E("The maximum length of a string."),minLength:E("The minimum length of a string."),pattern:E("A regular expression to match the string against. It is not implicitly anchored."),additionalItems:E("For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:E("For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:E("The maximum number of items that can be inside an array. Inclusive."),minItems:E("The minimum number of items that can be inside an array. Inclusive."),uniqueItems:E("If all of the items in the array must be unique. Defaults to false."),maxProperties:E("The maximum number of properties an object can have. Inclusive."),minProperties:E("The minimum number of properties an object can have. Inclusive."),required:E("An array of strings that lists the names of all properties required on this object."),additionalProperties:E("Either a schema or a boolean. If a schema, then used to validate all properties not matched by \'properties\' or \'patternProperties\'. If false, then any properties not matched by either will cause this schema to fail."),definitions:E("Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:E("A map of property names to schemas for each property."),patternProperties:E("A map of regular expressions on property names to schemas for matching properties."),dependencies:E("A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:E("The set of literal values that are valid."),type:E("Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:E("Describes the format expected for the value."),allOf:E("An array of schemas, all of which must match."),anyOf:E("An array of schemas, where at least one must match."),oneOf:E("An array of schemas, exactly one of which must match."),not:E("A schema which must not match."),$id:E("A unique identifier for the schema."),$ref:E("Reference a definition hosted on any location."),$comment:E("Comments from schema authors to readers or maintainers of the schema."),readOnly:E("Indicates that the value of the instance is managed exclusively by the owning authority."),examples:E("Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:E(\'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.\'),propertyNames:E("If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:E("An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:E("Describes the media type of a string property."),contentEncoding:E("Describes the content encoding of a string property."),if:E(\'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.\'),then:E(\'The "if" subschema is used for validation when the "if" subschema succeeds.\'),else:E(\'The "else" subschema is used for validation when the "if" subschema fails.\')};for(const e in Kr.schemas){const t=Kr.schemas[e];for(const n in t.properties){let r=t.properties[n];typeof r=="boolean"&&(r=t.properties[n]={});const i=u1[n];i&&(r.description=i)}}var Fo;(()=>{var e={470:i=>{function s(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function a(o,u){for(var h,f="",m=0,d=-1,g=0,p=0;p<=o.length;++p){if(p<o.length)h=o.charCodeAt(p);else{if(h===47)break;h=47}if(h===47){if(!(d===p-1||g===1))if(d!==p-1&&g===2){if(f.length<2||m!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var y=f.lastIndexOf("/");if(y!==f.length-1){y===-1?(f="",m=0):m=(f=f.slice(0,y)).length-1-f.lastIndexOf("/"),d=p,g=0;continue}}else if(f.length===2||f.length===1){f="",m=0,d=p,g=0;continue}}u&&(f.length>0?f+="/..":f="..",m=2)}else f.length>0?f+="/"+o.slice(d+1,p):f=o.slice(d+1,p),m=p-d-1;d=p,g=0}else h===46&&g!==-1?++g:g=-1}return f}var l={resolve:function(){for(var o,u="",h=!1,f=arguments.length-1;f>=-1&&!h;f--){var m;f>=0?m=arguments[f]:(o===void 0&&(o=process.cwd()),m=o),s(m),m.length!==0&&(u=m+"/"+u,h=m.charCodeAt(0)===47)}return u=a(u,!h),h?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(o){if(s(o),o.length===0)return".";var u=o.charCodeAt(0)===47,h=o.charCodeAt(o.length-1)===47;return(o=a(o,!u)).length!==0||u||(o="."),o.length>0&&h&&(o+="/"),u?"/"+o:o},isAbsolute:function(o){return s(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,u=0;u<arguments.length;++u){var h=arguments[u];s(h),h.length>0&&(o===void 0?o=h:o+="/"+h)}return o===void 0?".":l.normalize(o)},relative:function(o,u){if(s(o),s(u),o===u||(o=l.resolve(o))===(u=l.resolve(u)))return"";for(var h=1;h<o.length&&o.charCodeAt(h)===47;++h);for(var f=o.length,m=f-h,d=1;d<u.length&&u.charCodeAt(d)===47;++d);for(var g=u.length-d,p=m<g?m:g,y=-1,w=0;w<=p;++w){if(w===p){if(g>p){if(u.charCodeAt(d+w)===47)return u.slice(d+w+1);if(w===0)return u.slice(d+w)}else m>p&&(o.charCodeAt(h+w)===47?y=w:w===0&&(y=0));break}var _=o.charCodeAt(h+w);if(_!==u.charCodeAt(d+w))break;_===47&&(y=w)}var v="";for(w=h+y+1;w<=f;++w)w!==f&&o.charCodeAt(w)!==47||(v.length===0?v+="..":v+="/..");return v.length>0?v+u.slice(d+y):(d+=y,u.charCodeAt(d)===47&&++d,u.slice(d))},_makeLong:function(o){return o},dirname:function(o){if(s(o),o.length===0)return".";for(var u=o.charCodeAt(0),h=u===47,f=-1,m=!0,d=o.length-1;d>=1;--d)if((u=o.charCodeAt(d))===47){if(!m){f=d;break}}else m=!1;return f===-1?h?"/":".":h&&f===1?"//":o.slice(0,f)},basename:function(o,u){if(u!==void 0&&typeof u!="string")throw new TypeError(\'"ext" argument must be a string\');s(o);var h,f=0,m=-1,d=!0;if(u!==void 0&&u.length>0&&u.length<=o.length){if(u.length===o.length&&u===o)return"";var g=u.length-1,p=-1;for(h=o.length-1;h>=0;--h){var y=o.charCodeAt(h);if(y===47){if(!d){f=h+1;break}}else p===-1&&(d=!1,p=h+1),g>=0&&(y===u.charCodeAt(g)?--g==-1&&(m=h):(g=-1,m=p))}return f===m?m=p:m===-1&&(m=o.length),o.slice(f,m)}for(h=o.length-1;h>=0;--h)if(o.charCodeAt(h)===47){if(!d){f=h+1;break}}else m===-1&&(d=!1,m=h+1);return m===-1?"":o.slice(f,m)},extname:function(o){s(o);for(var u=-1,h=0,f=-1,m=!0,d=0,g=o.length-1;g>=0;--g){var p=o.charCodeAt(g);if(p!==47)f===-1&&(m=!1,f=g+1),p===46?u===-1?u=g:d!==1&&(d=1):u!==-1&&(d=-1);else if(!m){h=g+1;break}}return u===-1||f===-1||d===0||d===1&&u===f-1&&u===h+1?"":o.slice(u,f)},format:function(o){if(o===null||typeof o!="object")throw new TypeError(\'The "pathObject" argument must be of type Object. Received type \'+typeof o);return function(u,h){var f=h.dir||h.root,m=h.base||(h.name||"")+(h.ext||"");return f?f===h.root?f+m:f+"/"+m:m}(0,o)},parse:function(o){s(o);var u={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return u;var h,f=o.charCodeAt(0),m=f===47;m?(u.root="/",h=1):h=0;for(var d=-1,g=0,p=-1,y=!0,w=o.length-1,_=0;w>=h;--w)if((f=o.charCodeAt(w))!==47)p===-1&&(y=!1,p=w+1),f===46?d===-1?d=w:_!==1&&(_=1):d!==-1&&(_=-1);else if(!y){g=w+1;break}return d===-1||p===-1||_===0||_===1&&d===p-1&&d===g+1?p!==-1&&(u.base=u.name=g===0&&m?o.slice(1,p):o.slice(g,p)):(g===0&&m?(u.name=o.slice(1,d),u.base=o.slice(1,p)):(u.name=o.slice(g,d),u.base=o.slice(g,p)),u.ext=o.slice(d,p)),g>0?u.dir=o.slice(0,g-1):m&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,i.exports=l}},t={};function n(i){var s=t[i];if(s!==void 0)return s.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.d=(i,s)=>{for(var a in s)n.o(s,a)&&!n.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:s[a]})},n.o=(i,s)=>Object.prototype.hasOwnProperty.call(i,s),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;n.r(r),n.d(r,{URI:()=>m,Utils:()=>O}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const s=/^\\w[\\w\\d+.-]*$/,a=/^\\//,l=/^\\/\\//;function o(C,N){if(!C.scheme&&N)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${C.authority}", path: "${C.path}", query: "${C.query}", fragment: "${C.fragment}"}`);if(C.scheme&&!s.test(C.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(C.path){if(C.authority){if(!a.test(C.path))throw new Error(\'[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character\')}else if(l.test(C.path))throw new Error(\'[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")\')}}const u="",h="/",f=/^(([^:/?#]+?):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/;class m{constructor(N,k,R,I,T,P=!1){it(this,"scheme");it(this,"authority");it(this,"path");it(this,"query");it(this,"fragment");typeof N=="object"?(this.scheme=N.scheme||u,this.authority=N.authority||u,this.path=N.path||u,this.query=N.query||u,this.fragment=N.fragment||u):(this.scheme=function(D,B){return D||B?D:"file"}(N,P),this.authority=k||u,this.path=function(D,B){switch(D){case"https":case"http":case"file":B?B[0]!==h&&(B=h+B):B=h}return B}(this.scheme,R||u),this.query=I||u,this.fragment=T||u,o(this,P))}static isUri(N){return N instanceof m||!!N&&typeof N.authority=="string"&&typeof N.fragment=="string"&&typeof N.path=="string"&&typeof N.query=="string"&&typeof N.scheme=="string"&&typeof N.fsPath=="string"&&typeof N.with=="function"&&typeof N.toString=="function"}get fsPath(){return _(this)}with(N){if(!N)return this;let{scheme:k,authority:R,path:I,query:T,fragment:P}=N;return k===void 0?k=this.scheme:k===null&&(k=u),R===void 0?R=this.authority:R===null&&(R=u),I===void 0?I=this.path:I===null&&(I=u),T===void 0?T=this.query:T===null&&(T=u),P===void 0?P=this.fragment:P===null&&(P=u),k===this.scheme&&R===this.authority&&I===this.path&&T===this.query&&P===this.fragment?this:new g(k,R,I,T,P)}static parse(N,k=!1){const R=f.exec(N);return R?new g(R[2]||u,L(R[4]||u),L(R[5]||u),L(R[7]||u),L(R[9]||u),k):new g(u,u,u,u,u)}static file(N){let k=u;if(i&&(N=N.replace(/\\\\/g,h)),N[0]===h&&N[1]===h){const R=N.indexOf(h,2);R===-1?(k=N.substring(2),N=h):(k=N.substring(2,R),N=N.substring(R)||h)}return new g("file",k,N,u,u)}static from(N){const k=new g(N.scheme,N.authority,N.path,N.query,N.fragment);return o(k,!0),k}toString(N=!1){return v(this,N)}toJSON(){return this}static revive(N){if(N){if(N instanceof m)return N;{const k=new g(N);return k._formatted=N.external,k._fsPath=N._sep===d?N.fsPath:null,k}}return N}}const d=i?1:void 0;class g extends m{constructor(){super(...arguments);it(this,"_formatted",null);it(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=_(this)),this._fsPath}toString(k=!1){return k?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const k={$mid:1};return this._fsPath&&(k.fsPath=this._fsPath,k._sep=d),this._formatted&&(k.external=this._formatted),this.path&&(k.path=this.path),this.scheme&&(k.scheme=this.scheme),this.authority&&(k.authority=this.authority),this.query&&(k.query=this.query),this.fragment&&(k.fragment=this.fragment),k}}const p={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 y(C,N,k){let R,I=-1;for(let T=0;T<C.length;T++){const P=C.charCodeAt(T);if(P>=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===45||P===46||P===95||P===126||N&&P===47||k&&P===91||k&&P===93||k&&P===58)I!==-1&&(R+=encodeURIComponent(C.substring(I,T)),I=-1),R!==void 0&&(R+=C.charAt(T));else{R===void 0&&(R=C.substr(0,T));const D=p[P];D!==void 0?(I!==-1&&(R+=encodeURIComponent(C.substring(I,T)),I=-1),R+=D):I===-1&&(I=T)}}return I!==-1&&(R+=encodeURIComponent(C.substring(I))),R!==void 0?R:C}function w(C){let N;for(let k=0;k<C.length;k++){const R=C.charCodeAt(k);R===35||R===63?(N===void 0&&(N=C.substr(0,k)),N+=p[R]):N!==void 0&&(N+=C[k])}return N!==void 0?N:C}function _(C,N){let k;return k=C.authority&&C.path.length>1&&C.scheme==="file"?`//${C.authority}${C.path}`:C.path.charCodeAt(0)===47&&(C.path.charCodeAt(1)>=65&&C.path.charCodeAt(1)<=90||C.path.charCodeAt(1)>=97&&C.path.charCodeAt(1)<=122)&&C.path.charCodeAt(2)===58?C.path[1].toLowerCase()+C.path.substr(2):C.path,i&&(k=k.replace(/\\//g,"\\\\")),k}function v(C,N){const k=N?w:y;let R="",{scheme:I,authority:T,path:P,query:D,fragment:B}=C;if(I&&(R+=I,R+=":"),(T||I==="file")&&(R+=h,R+=h),T){let j=T.indexOf("@");if(j!==-1){const ne=T.substr(0,j);T=T.substr(j+1),j=ne.lastIndexOf(":"),j===-1?R+=k(ne,!1,!1):(R+=k(ne.substr(0,j),!1,!1),R+=":",R+=k(ne.substr(j+1),!1,!0)),R+="@"}T=T.toLowerCase(),j=T.lastIndexOf(":"),j===-1?R+=k(T,!1,!0):(R+=k(T.substr(0,j),!1,!0),R+=T.substr(j))}if(P){if(P.length>=3&&P.charCodeAt(0)===47&&P.charCodeAt(2)===58){const j=P.charCodeAt(1);j>=65&&j<=90&&(P=`/${String.fromCharCode(j+32)}:${P.substr(3)}`)}else if(P.length>=2&&P.charCodeAt(1)===58){const j=P.charCodeAt(0);j>=65&&j<=90&&(P=`${String.fromCharCode(j+32)}:${P.substr(2)}`)}R+=k(P,!0,!1)}return D&&(R+="?",R+=k(D,!1,!1)),B&&(R+="#",R+=N?B:y(B,!1,!1)),R}function x(C){try{return decodeURIComponent(C)}catch{return C.length>3?C.substr(0,3)+x(C.substr(3)):C}}const b=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function L(C){return C.match(b)?C.replace(b,N=>x(N)):C}var S=n(470);const M=S.posix||S,F="/";var O;(function(C){C.joinPath=function(N,...k){return N.with({path:M.join(N.path,...k)})},C.resolvePath=function(N,...k){let R=N.path,I=!1;R[0]!==F&&(R=F+R,I=!0);let T=M.resolve(R,...k);return I&&T[0]===F&&!N.authority&&(T=T.substring(1)),N.with({path:T})},C.dirname=function(N){if(N.path.length===0||N.path===F)return N;let k=M.dirname(N.path);return k.length===1&&k.charCodeAt(0)===46&&(k=""),N.with({path:k})},C.basename=function(N){return M.basename(N.path)},C.extname=function(N){return M.extname(N.path)}})(O||(O={}))})(),Fo=r})();var{URI:Ct,Utils:H1}=Fo;function c1(e,t){if(typeof e!="string")throw new TypeError("Expected a string");const n=String(e);let r="";const i=!!t,s=!!t;let a=!1;const l=t&&typeof t.flags=="string"?t.flags:"";let o;for(let u=0,h=n.length;u<h;u++)switch(o=n[u],o){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+="\\\\"+o;break;case"?":if(i){r+=".";break}case"[":case"]":if(i){r+=o;break}case"{":if(i){a=!0,r+="(";break}case"}":if(i){a=!1,r+=")";break}case",":if(a){r+="|";break}r+="\\\\"+o;break;case"*":const f=n[u-1];let m=1;for(;n[u+1]==="*";)m++,u++;const d=n[u+1];s?m>1&&(f==="/"||f===void 0||f==="{"||f===",")&&(d==="/"||d===void 0||d===","||d==="}")?(d==="/"?u++:f==="/"&&r.endsWith("\\\\/")&&(r=r.substr(0,r.length-2)),r+="((?:[^/]*(?:/|$))*)"):r+="([^/]*)":r+=".*";break;default:r+=o}return(!l||!~l.indexOf("g"))&&(r="^"+r+"$"),new RegExp(r,l)}var f1="!",h1="/",m1=class{constructor(e,t,n){this.folderUri=t,this.uris=n,this.globWrappers=[];try{for(let r of e){const i=r[0]!==f1;i||(r=r.substring(1)),r.length>0&&(r[0]===h1&&(r=r.substring(1)),this.globWrappers.push({regexp:c1("**/"+r,{extended:!0,globstar:!0}),include:i}))}t&&(t=Do(t),t.endsWith("/")||(t=t+"/"),this.folderUri=t)}catch{this.globWrappers.length=0,this.uris=[]}}matchesPattern(e){if(this.folderUri&&!e.startsWith(this.folderUri))return!1;let t=!1;for(const{regexp:n,include:r}of this.globWrappers)n.test(e)&&(t=r);return t}getURIs(){return this.uris}},d1=class{constructor(e,t,n){this.service=e,this.uri=t,this.dependencies=new Set,this.anchors=void 0,n&&(this.unresolvedSchema=this.service.promise.resolve(new Kt(n)))}getUnresolvedSchema(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.uri)),this.unresolvedSchema}getResolvedSchema(){return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(e=>this.service.resolveSchemaContent(e,this))),this.resolvedSchema}clearSchema(){const e=!!this.unresolvedSchema;return this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies.clear(),this.anchors=void 0,e}},Kt=class{constructor(e,t=[]){this.schema=e,this.errors=t}},Vo=class{constructor(e,t=[],n=[],r){this.schema=e,this.errors=t,this.warnings=n,this.schemaDraft=r}getSection(e){const t=this.getSectionRecursive(e,this.schema);if(t)return we(t)}getSectionRecursive(e,t){if(!t||typeof t=="boolean"||e.length===0)return t;const n=e.shift();if(t.properties&&typeof t.properties[n])return this.getSectionRecursive(e,t.properties[n]);if(t.patternProperties){for(const r of Object.keys(t.patternProperties))if(Rn(r)?.test(n))return this.getSectionRecursive(e,t.patternProperties[r])}else{if(typeof t.additionalProperties=="object")return this.getSectionRecursive(e,t.additionalProperties);if(n.match("[0-9]+")){if(Array.isArray(t.items)){const r=parseInt(n,10);if(!isNaN(r)&&t.items[r])return this.getSectionRecursive(e,t.items[r])}else if(t.items)return this.getSectionRecursive(e,t.items)}}}},g1=class{constructor(e,t,n){this.contextService=t,this.requestService=e,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}getRegisteredSchemaIds(e){return Object.keys(this.registeredSchemasIds).filter(t=>{const n=Ct.parse(t).scheme;return n!=="schemaservice"&&(!e||e(n))})}get promise(){return this.promiseConstructor}dispose(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()}onResourceChange(e){this.cachedSchemaForResource=void 0;let t=!1;e=nt(e);const n=[e],r=Object.keys(this.schemasById).map(i=>this.schemasById[i]);for(;n.length;){const i=n.pop();for(let s=0;s<r.length;s++){const a=r[s];a&&(a.uri===i||a.dependencies.has(i))&&(a.uri!==i&&n.push(a.uri),a.clearSchema()&&(t=!0),r[s]=void 0)}}return t}setSchemaContributions(e){if(e.schemas){const t=e.schemas;for(const n in t){const r=nt(n);this.contributionSchemas[r]=this.addSchemaHandle(r,t[n])}}if(Array.isArray(e.schemaAssociations)){const t=e.schemaAssociations;for(let n of t){const r=n.uris.map(nt),i=this.addFilePatternAssociation(n.pattern,n.folderUri,r);this.contributionAssociations.push(i)}}}addSchemaHandle(e,t){const n=new d1(this,e,t);return this.schemasById[e]=n,n}getOrAddSchemaHandle(e,t){return this.schemasById[e]||this.addSchemaHandle(e,t)}addFilePatternAssociation(e,t,n){const r=new m1(e,t,n);return this.filePatternAssociations.push(r),r}registerExternalSchema(e){const t=nt(e.uri);return this.registeredSchemasIds[t]=!0,this.cachedSchemaForResource=void 0,e.fileMatch&&e.fileMatch.length&&this.addFilePatternAssociation(e.fileMatch,e.folderUri,[t]),e.schema?this.addSchemaHandle(t,e.schema):this.getOrAddSchemaHandle(t)}clearExternalSchemas(){this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0;for(const e in this.contributionSchemas)this.schemasById[e]=this.contributionSchemas[e],this.registeredSchemasIds[e]=!0;for(const e of this.contributionAssociations)this.filePatternAssociations.push(e)}getResolvedSchema(e){const t=nt(e),n=this.schemasById[t];return n?n.getResolvedSchema():this.promise.resolve(void 0)}loadSchema(e){if(!this.requestService){const t=E("Unable to load schema from \'{0}\'. No schema request service available",en(e));return this.promise.resolve(new Kt({},[t]))}return e.startsWith("http://json-schema.org/")&&(e="https"+e.substring(4)),this.requestService(e).then(t=>{if(!t){const s=E("Unable to load schema from \'{0}\': No content.",en(e));return new Kt({},[s])}const n=[];t.charCodeAt(0)===65279&&(n.push(E("Problem reading content from \'{0}\': UTF-8 with BOM detected, only UTF 8 is allowed.",en(e))),t=t.trimStart());let r={};const i=[];return r=Pc(t,i),i.length&&n.push(E("Unable to parse content from \'{0}\': Parse error at offset {1}.",en(e),i[0].offset)),new Kt(r,n)},t=>{let n=t.toString();const r=t.toString().split("Error: ");return r.length>1&&(n=r[1]),Xt(n,".")&&(n=n.substr(0,n.length-1)),new Kt({},[E("Unable to load schema from \'{0}\': {1}.",en(e),n)])})}resolveSchemaContent(e,t){const n=e.errors.slice(0),r=e.schema;let i=r.$schema?nt(r.$schema):void 0;if(i==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Vo({},[E("Draft-03 schemas are not supported.")],[],i));let s=new Set;const a=this.contextService,l=(g,p)=>{p=decodeURIComponent(p);let y=g;return p[0]==="/"&&(p=p.substring(1)),p.split("/").some(w=>(w=w.replace(/~1/g,"/").replace(/~0/g,"~"),y=y[w],!y)),y},o=(g,p,y)=>(p.anchors||(p.anchors=d(g)),p.anchors.get(y)),u=(g,p)=>{for(const y in p)p.hasOwnProperty(y)&&y!=="id"&&y!=="$id"&&(g[y]=p[y])},h=(g,p,y,w)=>{let _;w===void 0||w.length===0?_=p:w.charAt(0)==="/"?_=l(p,w):_=o(p,y,w),_?u(g,_):n.push(E("$ref \'{0}\' in \'{1}\' can not be resolved.",w||"",y.uri))},f=(g,p,y,w)=>{a&&!/^[A-Za-z][A-Za-z0-9+\\-.+]*:\\/\\/.*/.test(p)&&(p=a.resolveRelativePath(p,w.uri)),p=nt(p);const _=this.getOrAddSchemaHandle(p);return _.getUnresolvedSchema().then(v=>{if(w.dependencies.add(p),v.errors.length){const x=y?p+"#"+y:p;n.push(E("Problems loading reference \'{0}\': {1}",x,v.errors[0]))}return h(g,v.schema,_,y),m(g,v.schema,_)})},m=(g,p,y)=>{const w=[];return this.traverseNodes(g,_=>{const v=new Set;for(;_.$ref;){const x=_.$ref,b=x.split("#",2);if(delete _.$ref,b[0].length>0){w.push(f(_,b[0],b[1],y));return}else if(!v.has(x)){const L=b[1];h(_,p,y,L),v.add(x)}}_.$recursiveRef&&s.add("$recursiveRef"),_.$dynamicRef&&s.add("$dynamicRef")}),this.promise.all(w)},d=g=>{const p=new Map;return this.traverseNodes(g,y=>{const w=y.$id||y.id,_=Sa(w)&&w.charAt(0)==="#"?w.substring(1):y.$anchor;_&&(p.has(_)?n.push(E("Duplicate anchor declaration: \'{0}\'",_)):p.set(_,y)),y.$recursiveAnchor&&s.add("$recursiveAnchor"),y.$dynamicAnchor&&s.add("$dynamicAnchor")}),p};return m(r,r,t).then(g=>{let p=[];return s.size&&p.push(E("The schema uses meta-schema features ({0}) that are not yet supported by the validator.",Array.from(s.keys()).join(", "))),new Vo(r,n,p,i)})}traverseNodes(e,t){if(!e||typeof e!="object")return Promise.resolve(null);const n=new Set,r=(...u)=>{for(const h of u)et(h)&&l.push(h)},i=(...u)=>{for(const h of u)if(et(h))for(const f in h){const d=h[f];et(d)&&l.push(d)}},s=(...u)=>{for(const h of u)if(Array.isArray(h))for(const f of h)et(f)&&l.push(f)},a=u=>{if(Array.isArray(u))for(const h of u)et(h)&&l.push(h);else et(u)&&l.push(u)},l=[e];let o=l.pop();for(;o;)n.has(o)||(n.add(o),t(o),r(o.additionalItems,o.additionalProperties,o.not,o.contains,o.propertyNames,o.if,o.then,o.else,o.unevaluatedItems,o.unevaluatedProperties),i(o.definitions,o.$defs,o.properties,o.patternProperties,o.dependencies,o.dependentSchemas),s(o.anyOf,o.allOf,o.oneOf,o.prefixItems),a(o.items)),o=l.pop()}getSchemaFromProperty(e,t){if(t.root?.type==="object"){for(const n of t.root.properties)if(n.keyNode.value==="$schema"&&n.valueNode?.type==="string"){let r=n.valueNode.value;return this.contextService&&!/^\\w[\\w\\d+.-]*:/.test(r)&&(r=this.contextService.resolveRelativePath(r,e)),r}}}getAssociatedSchemas(e){const t=Object.create(null),n=[],r=Do(e);for(const i of this.filePatternAssociations)if(i.matchesPattern(r))for(const s of i.getURIs())t[s]||(n.push(s),t[s]=!0);return n}getSchemaURIsForResource(e,t){let n=t&&this.getSchemaFromProperty(e,t);return n?[n]:this.getAssociatedSchemas(e)}getSchemaForResource(e,t){if(t){let i=this.getSchemaFromProperty(e,t);if(i){const s=nt(i);return this.getOrAddSchemaHandle(s).getResolvedSchema()}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;const n=this.getAssociatedSchemas(e),r=n.length>0?this.createCombinedSchema(e,n).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:r},r}createCombinedSchema(e,t){if(t.length===1)return this.getOrAddSchemaHandle(t[0]);{const n="schemaservice://combinedSchema/"+encodeURIComponent(e),r={allOf:t.map(i=>({$ref:i}))};return this.addSchemaHandle(n,r)}}getMatchingSchemas(e,t,n){if(n){const r=n.id||"schemaservice://untitled/matchingSchemas/"+p1++;return this.addSchemaHandle(r,n).getResolvedSchema().then(s=>t.getMatchingSchemas(s.schema).filter(a=>!a.inverted))}return this.getSchemaForResource(e.uri,t).then(r=>r?t.getMatchingSchemas(r.schema).filter(i=>!i.inverted):[])}},p1=0;function nt(e){try{return Ct.parse(e).toString(!0)}catch{return e}}function Do(e){try{return Ct.parse(e).with({fragment:null,query:null}).toString(!0)}catch{return e}}function en(e){try{const t=Ct.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}function b1(e,t){const n=[],r=[],i=[];let s=-1;const a=at(e.getText(),!1);let l=a.scan();function o(g){n.push(g),r.push(i.length)}for(;l!==17;){switch(l){case 1:case 3:{const g=e.positionAt(a.getTokenOffset()).line,p={startLine:g,endLine:g,kind:l===1?"object":"array"};i.push(p);break}case 2:case 4:{const g=l===2?"object":"array";if(i.length>0&&i[i.length-1].kind===g){const p=i.pop(),y=e.positionAt(a.getTokenOffset()).line;p&&y>p.startLine+1&&s!==p.startLine&&(p.endLine=y-1,o(p),s=p.startLine)}break}case 13:{const g=e.positionAt(a.getTokenOffset()).line,p=e.positionAt(a.getTokenOffset()+a.getTokenLength()).line;a.getTokenError()===1&&g+1<e.lineCount?a.setPosition(e.offsetAt(Z.create(g+1,0))):g<p&&(o({startLine:g,endLine:p,kind:Qt.Comment}),s=g);break}case 12:{const p=e.getText().substr(a.getTokenOffset(),a.getTokenLength()).match(/^\\/\\/\\s*#(region\\b)|(endregion\\b)/);if(p){const y=e.positionAt(a.getTokenOffset()).line;if(p[1]){const w={startLine:y,endLine:y,kind:Qt.Region};i.push(w)}else{let w=i.length-1;for(;w>=0&&i[w].kind!==Qt.Region;)w--;if(w>=0){const _=i[w];i.length=w,y>_.startLine&&s!==_.startLine&&(_.endLine=y,o(_),s=_.startLine)}}}break}}l=a.scan()}const u=t&&t.rangeLimit;if(typeof u!="number"||n.length<=u)return n;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);const h=[];for(let g of r)g<30&&(h[g]=(h[g]||0)+1);let f=0,m=0;for(let g=0;g<h.length;g++){const p=h[g];if(p){if(p+f>u){m=g;break}f+=p}}const d=[];for(let g=0;g<n.length;g++){const p=r[g];typeof p=="number"&&(p<m||p===m&&f++<u)&&d.push(n[g])}return d}function y1(e,t,n){function r(l){let o=e.offsetAt(l),u=n.getNodeFromOffset(o,!0);const h=[];for(;u;){switch(u.type){case"string":case"object":case"array":const m=u.offset+1,d=u.offset+u.length-1;m<d&&o>=m&&o<=d&&h.push(i(m,d)),h.push(i(u.offset,u.offset+u.length));break;case"number":case"boolean":case"null":case"property":h.push(i(u.offset,u.offset+u.length));break}if(u.type==="property"||u.parent&&u.parent.type==="array"){const m=a(u.offset+u.length,5);m!==-1&&h.push(i(u.offset,m))}u=u.parent}let f;for(let m=h.length-1;m>=0;m--)f=Tn.create(h[m],f);return f||(f=Tn.create(q.create(l,l))),f}function i(l,o){return q.create(e.positionAt(l),e.positionAt(o))}const s=at(e.getText(),!0);function a(l,o){return s.setPosition(l),s.scan()===o?s.getTokenOffset()+s.getTokenLength():-1}return t.map(r)}function ei(e,t,n){let r;if(n){const s=e.offsetAt(n.start),a=e.offsetAt(n.end)-s;r={offset:s,length:a}}const i={tabSize:t?t.tabSize:4,insertSpaces:t?.insertSpaces===!0,insertFinalNewline:t?.insertFinalNewline===!0,eol:`\n`,keepLines:t?.keepLines===!0};return Dc(e.getText(),r,i).map(s=>Ve.replace(q.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length)),s.content))}var se;(function(e){e[e.Object=0]="Object",e[e.Array=1]="Array"})(se||(se={}));var Fn=class{constructor(e,t){this.propertyName=e??"",this.beginningLineNumber=t,this.childrenProperties=[],this.lastProperty=!1,this.noKeyName=!1}addChildProperty(e){if(e.parent=this,this.childrenProperties.length>0){let t=0;e.noKeyName?t=this.childrenProperties.length:t=x1(this.childrenProperties,e,v1),t<0&&(t=t*-1-1),this.childrenProperties.splice(t,0,e)}else this.childrenProperties.push(e);return e}};function v1(e,t){const n=e.propertyName.toLowerCase(),r=t.propertyName.toLowerCase();return n<r?-1:n>r?1:0}function x1(e,t,n){const r=t.propertyName.toLowerCase(),i=e[0].propertyName.toLowerCase(),s=e[e.length-1].propertyName.toLowerCase();if(r<i)return 0;if(r>s)return e.length;let a=0,l=e.length-1;for(;a<=l;){let o=l+a>>1,u=n(t,e[o]);if(u>0)a=o+1;else if(u<0)l=o-1;else return o}return-a-1}function w1(e,t){const n={...t,keepLines:!1},r=Ee.applyEdits(e,ei(e,n,void 0)),i=Ee.create("test://test.json","json",0,r),s=_1(i),a=L1(i,s),l=ei(a,n,void 0),o=Ee.applyEdits(a,l);return[Ve.replace(q.create(Z.create(0,0),e.positionAt(e.getText().length)),o)]}function _1(e){const t=e.getText(),n=at(t,!1);let r=new Fn,i=r,s=r,a=r,l,o=0,u=0,h,f,m=-1,d=-1,g=0,p=0,y=[],w=!1,_=!1;for(;(l=n.scan())!==17;){if(w===!0&&l!==14&&l!==15&&l!==12&&l!==13&&s.endLineNumber===void 0){let v=n.getTokenStartLine();f===2||f===4?a.endLineNumber=v-1:s.endLineNumber=v-1,g=v,w=!1}if(_===!0&&l!==14&&l!==15&&l!==12&&l!==13&&(g=n.getTokenStartLine(),_=!1),n.getTokenStartLine()!==o){for(let v=o;v<n.getTokenStartLine();v++){const x=e.getText(q.create(Z.create(v,0),Z.create(v+1,0))).length;u=u+x}o=n.getTokenStartLine()}switch(l){case 10:{if(h===void 0||h===1||h===5&&y[y.length-1]===se.Object){const v=new Fn(n.getTokenValue(),g);a=s,s=i.addChildProperty(v)}break}case 3:{if(r.beginningLineNumber===void 0&&(r.beginningLineNumber=n.getTokenStartLine()),y[y.length-1]===se.Object)i=s;else if(y[y.length-1]===se.Array){const v=new Fn(n.getTokenValue(),g);v.noKeyName=!0,a=s,s=i.addChildProperty(v),i=s}y.push(se.Array),s.type=se.Array,g=n.getTokenStartLine(),g++;break}case 1:{if(r.beginningLineNumber===void 0)r.beginningLineNumber=n.getTokenStartLine();else if(y[y.length-1]===se.Array){const v=new Fn(n.getTokenValue(),g);v.noKeyName=!0,a=s,s=i.addChildProperty(v)}s.type=se.Object,y.push(se.Object),i=s,g=n.getTokenStartLine(),g++;break}case 4:{p=n.getTokenStartLine(),y.pop(),s.endLineNumber===void 0&&(h===2||h===4)&&(s.endLineNumber=p-1,s.lastProperty=!0,s.lineWhereToAddComma=m,s.indexWhereToAddComa=d,a=s,s=s?s.parent:void 0,i=s),r.endLineNumber=p,g=p+1;break}case 2:{p=n.getTokenStartLine(),y.pop(),h!==1&&(s.endLineNumber===void 0&&(s.endLineNumber=p-1,s.lastProperty=!0,s.lineWhereToAddComma=m,s.indexWhereToAddComa=d),a=s,s=s?s.parent:void 0,i=s),r.endLineNumber=n.getTokenStartLine(),g=p+1;break}case 5:{p=n.getTokenStartLine(),s.endLineNumber===void 0&&(y[y.length-1]===se.Object||y[y.length-1]===se.Array&&(h===2||h===4))&&(s.endLineNumber=p,s.commaIndex=n.getTokenOffset()-u,s.commaLine=p),(h===2||h===4)&&(a=s,s=s?s.parent:void 0,i=s),g=p+1;break}case 13:{h===5&&m===n.getTokenStartLine()&&(y[y.length-1]===se.Array&&(f===2||f===4)||y[y.length-1]===se.Object)&&(y[y.length-1]===se.Array&&(f===2||f===4)||y[y.length-1]===se.Object)&&(s.endLineNumber=void 0,w=!0),(h===1||h===3)&&m===n.getTokenStartLine()&&(_=!0);break}}l!==14&&l!==13&&l!==12&&l!==15&&(f=h,h=l,m=n.getTokenStartLine(),d=n.getTokenOffset()+n.getTokenLength()-u)}return r}function L1(e,t){if(t.childrenProperties.length===0)return e;const n=Ee.create("test://test.json","json",0,e.getText()),r=[];for(Oo(r,t,t.beginningLineNumber);r.length>0;){const i=r.shift(),s=i.propertyTreeArray;let a=i.beginningLineNumber;for(let l=0;l<s.length;l++){const o=s[l],u=q.create(Z.create(o.beginningLineNumber,0),Z.create(o.endLineNumber+1,0)),h=e.getText(u),f=Ee.create("test://test.json","json",0,h);if(o.lastProperty===!0&&l!==s.length-1){const g=o.lineWhereToAddComma-o.beginningLineNumber,p=o.indexWhereToAddComa,y={range:q.create(Z.create(g,p),Z.create(g,p)),text:","};Ee.update(f,[y],1)}else if(o.lastProperty===!1&&l===s.length-1){const g=o.commaIndex,y=o.commaLine-o.beginningLineNumber,w={range:q.create(Z.create(y,g),Z.create(y,g+1)),text:""};Ee.update(f,[w],1)}const m=o.endLineNumber-o.beginningLineNumber+1,d={range:q.create(Z.create(a,0),Z.create(a+m,0)),text:f.getText()};Ee.update(n,[d],1),Oo(r,o,a),a=a+m}}return n}function Oo(e,t,n){if(t.childrenProperties.length!==0)if(t.type===se.Object){let r=1/0;for(const s of t.childrenProperties)s.beginningLineNumber<r&&(r=s.beginningLineNumber);const i=r-t.beginningLineNumber;n=n+i,e.push(new Bo(n,t.childrenProperties))}else t.type===se.Array&&$o(e,t,n)}function $o(e,t,n){for(const r of t.childrenProperties){if(r.type===se.Object){let i=1/0;for(const a of r.childrenProperties)a.beginningLineNumber<i&&(i=a.beginningLineNumber);const s=i-r.beginningLineNumber;e.push(new Bo(n+r.beginningLineNumber-t.beginningLineNumber+s,r.childrenProperties))}r.type===se.Array&&$o(e,r,n+r.beginningLineNumber-t.beginningLineNumber)}}var Bo=class{constructor(e,t){this.beginningLineNumber=e,this.propertyTreeArray=t}};function N1(e,t){const n=[];return t.visit(r=>{if(r.type==="property"&&r.keyNode.value==="$ref"&&r.valueNode?.type==="string"){const i=r.valueNode.value,s=A1(t,i);if(s){const a=e.positionAt(s.offset);n.push({target:`${e.uri}#${a.line+1},${a.character+1}`,range:S1(e,r.valueNode)})}}return!0}),Promise.resolve(n)}function S1(e,t){return q.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function A1(e,t){const n=k1(t);return n?ti(n,e.root):null}function ti(e,t){if(!t)return null;if(e.length===0)return t;const n=e.shift();if(t&&t.type==="object"){const r=t.properties.find(i=>i.keyNode.value===n);return r?ti(e,r.valueNode):null}else if(t&&t.type==="array"&&n.match(/^(0|[1-9][0-9]*)$/)){const r=Number.parseInt(n),i=t.items[r];return i?ti(e,i):null}return null}function k1(e){return e==="#"?[]:e[0]!=="#"||e[1]!=="/"?null:e.substring(2).split(/\\//).map(R1)}function R1(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function E1(e){const t=e.promiseConstructor||Promise,n=new g1(e.schemaRequestService,e.workspaceContext,t);n.setSchemaContributions(Kr);const r=new Kc(n,e.contributions,t,e.clientCapabilities),i=new e1(n,e.contributions,t),s=new l1(n),a=new n1(n,t);return{configure:l=>{n.clearExternalSchemas(),l.schemas?.forEach(n.registerExternalSchema.bind(n)),a.configure(l)},resetSchema:l=>n.onResourceChange(l),doValidation:a.doValidation.bind(a),getLanguageStatus:a.getLanguageStatus.bind(a),parseJSONDocument:l=>Zc(l,{collectComments:!0}),newJSONDocument:(l,o)=>Yc(l,o),getMatchingSchemas:n.getMatchingSchemas.bind(n),doResolve:r.doResolve.bind(r),doComplete:r.doComplete.bind(r),findDocumentSymbols:s.findDocumentSymbols.bind(s),findDocumentSymbols2:s.findDocumentSymbols2.bind(s),findDocumentColors:s.findDocumentColors.bind(s),getColorPresentations:s.getColorPresentations.bind(s),doHover:i.doHover.bind(i),getFoldingRanges:b1,getSelectionRanges:y1,findDefinition:()=>Promise.resolve([]),findLinks:N1,format:(l,o,u)=>ei(l,u,o),sort:(l,o)=>w1(l,o)}}var Uo;typeof fetch<"u"&&(Uo=function(e){return fetch(e).then(t=>t.text())});var M1=class{constructor(e,t){this._ctx=e,this._languageSettings=t.languageSettings,this._languageId=t.languageId,this._languageService=E1({workspaceContext:{resolveRelativePath:(n,r)=>{const i=r.substr(0,r.lastIndexOf("/")+1);return P1(i,n)}},schemaRequestService:t.enableSchemaRequest?Uo:void 0,clientCapabilities:Jr.LATEST}),this._languageService.configure(this._languageSettings)}async doValidation(e){let t=this._getTextDocument(e);if(t){let n=this._languageService.parseJSONDocument(t);return this._languageService.doValidation(t,n,this._languageSettings)}return Promise.resolve([])}async doComplete(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseJSONDocument(n);return this._languageService.doComplete(n,t,r)}async doResolve(e){return this._languageService.doResolve(e)}async doHover(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseJSONDocument(n);return this._languageService.doHover(n,t,r)}async format(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.format(r,t,n);return Promise.resolve(i)}async resetSchema(e){return Promise.resolve(this._languageService.resetSchema(e))}async findDocumentSymbols(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t),r=this._languageService.findDocumentSymbols2(t,n);return Promise.resolve(r)}async findDocumentColors(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t),r=this._languageService.findDocumentColors(t,n);return Promise.resolve(r)}async getColorPresentations(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.parseJSONDocument(r),s=this._languageService.getColorPresentations(r,i,t,n);return Promise.resolve(s)}async getFoldingRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.getFoldingRanges(n,t);return Promise.resolve(r)}async getSelectionRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.parseJSONDocument(n),i=this._languageService.getSelectionRanges(n,t,r);return Promise.resolve(i)}async parseJSONDocument(e){let t=this._getTextDocument(e);if(!t)return null;let n=this._languageService.parseJSONDocument(t);return Promise.resolve(n)}async getMatchingSchemas(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t);return Promise.resolve(this._languageService.getMatchingSchemas(t,n))}_getTextDocument(e){let t=this._ctx.getMirrorModels();for(let n of t)if(n.uri.toString()===e)return Ee.create(e,this._languageId,n.version,n.getValue());return null}},C1=47,ni=46;function T1(e){return e.charCodeAt(0)===C1}function P1(e,t){if(T1(t)){const n=Ct.parse(e),r=t.split("/");return n.with({path:qo(r)}).toString()}return I1(e,t)}function qo(e){const t=[];for(const r of e)r.length===0||r.length===1&&r.charCodeAt(0)===ni||(r.length===2&&r.charCodeAt(0)===ni&&r.charCodeAt(1)===ni?t.pop():t.push(r));e.length>1&&e[e.length-1].length===0&&t.push("");let n=t.join("/");return e[0].length===0&&(n="/"+n),n}function I1(e,...t){const n=Ct.parse(e),r=n.path.split("/");for(let i of t)r.push(...i.split("/"));return n.with({path:qo(r)}).toString()}self.onmessage=()=>{pa((e,t)=>new M1(e,t))}})();\n', r = typeof self < "u" && self.Blob && new Blob([i], { type: "text/javascript;charset=utf-8" });
|
1
|
+
const i = 'var O1=Object.defineProperty;var $1=(st,$e,Ce)=>$e in st?O1(st,$e,{enumerable:!0,configurable:!0,writable:!0,value:Ce}):st[$e]=Ce;var it=(st,$e,Ce)=>$1(st,typeof $e!="symbol"?$e+"":$e,Ce);(function(){"use strict";var me,G;class st{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?ht.isErrorNoTelemetry(t)?new ht(t.message+`\n\n`+t.stack):new Error(t.message+`\n\n`+t.stack):t},0)}}emit(t){this.listeners.forEach(n=>{n(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}}const $e=new st;function Ce(e){Wo(e)||$e.onUnexpectedError(e)}function si(e){if(e instanceof Error){const{name:t,message:n}=e,r=e.stacktrace||e.stack;return{$isError:!0,name:t,message:n,stack:r,noTelemetry:ht.isErrorNoTelemetry(e)}}return e}const Hn="Canceled";function Wo(e){return e instanceof Ho?!0:e instanceof Error&&e.name===Hn&&e.message===Hn}class Ho extends Error{constructor(){super(Hn),this.name=this.message}}class ht extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof ht)return t;const n=new ht;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class pe extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,pe.prototype)}}function zo(e,t){const n=this;let r=!1,i;return function(){return r||(r=!0,i=e.apply(n,arguments)),i}}var an;(function(e){function t(x){return x&&typeof x=="object"&&typeof x[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*i(x){yield x}e.single=i;function s(x){return t(x)?x:i(x)}e.wrap=s;function a(x){return x||n}e.from=a;function*l(x){for(let b=x.length-1;b>=0;b--)yield x[b]}e.reverse=l;function o(x){return!x||x[Symbol.iterator]().next().done===!0}e.isEmpty=o;function u(x){return x[Symbol.iterator]().next().value}e.first=u;function h(x,b){let L=0;for(const S of x)if(b(S,L++))return!0;return!1}e.some=h;function f(x,b){for(const L of x)if(b(L))return L}e.find=f;function*m(x,b){for(const L of x)b(L)&&(yield L)}e.filter=m;function*d(x,b){let L=0;for(const S of x)yield b(S,L++)}e.map=d;function*g(x,b){let L=0;for(const S of x)yield*b(S,L++)}e.flatMap=g;function*p(...x){for(const b of x)yield*b}e.concat=p;function y(x,b,L){let S=L;for(const M of x)S=b(S,M);return S}e.reduce=y;function*w(x,b,L=x.length){for(b<0&&(b+=x.length),L<0?L+=x.length:L>x.length&&(L=x.length);b<L;b++)yield x[b]}e.slice=w;function _(x,b=Number.POSITIVE_INFINITY){const L=[];if(b===0)return[L,x];const S=x[Symbol.iterator]();for(let M=0;M<b;M++){const F=S.next();if(F.done)return[L,e.empty()];L.push(F.value)}return[L,{[Symbol.iterator](){return S}}]}e.consume=_;async function v(x){const b=[];for await(const L of x)b.push(L);return Promise.resolve(b)}e.asyncToArray=v})(an||(an={}));function B1(e){return e}function U1(e,t){}function ai(e){if(an.is(e)){const t=[];for(const n of e)if(n)try{n.dispose()}catch(r){t.push(r)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function Go(...e){return on(()=>ai(e))}function on(e){return{dispose:zo(()=>{e()})}}const Vn=class Vn{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{ai(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?Vn.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(t),t}deleteAndLeak(t){t&&this._toDispose.has(t)&&this._toDispose.delete(t)}};Vn.DISABLE_DISPOSED_WARNING=!1;let Ot=Vn;const ri=class ri{constructor(){this._store=new Ot,this._store}dispose(){this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}};ri.None=Object.freeze({dispose(){}});let mt=ri;const Tt=class Tt{constructor(t){this.element=t,this.next=Tt.Undefined,this.prev=Tt.Undefined}};Tt.Undefined=new Tt(void 0);let Q=Tt;class Jo{constructor(){this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Q.Undefined}clear(){let t=this._first;for(;t!==Q.Undefined;){const n=t.next;t.prev=Q.Undefined,t.next=Q.Undefined,t=n}this._first=Q.Undefined,this._last=Q.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const r=new Q(t);if(this._first===Q.Undefined)this._first=r,this._last=r;else if(n){const s=this._last;this._last=r,r.prev=s,s.next=r}else{const s=this._first;this._first=r,r.next=s,s.prev=r}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(r))}}shift(){if(this._first!==Q.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==Q.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==Q.Undefined&&t.next!==Q.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===Q.Undefined&&t.next===Q.Undefined?(this._first=Q.Undefined,this._last=Q.Undefined):t.next===Q.Undefined?(this._last=this._last.prev,this._last.next=Q.Undefined):t.prev===Q.Undefined&&(this._first=this._first.next,this._first.prev=Q.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==Q.Undefined;)yield t.element,t=t.next}}const Xo=globalThis.performance&&typeof globalThis.performance.now=="function";class ln{static create(t){return new ln(t)}constructor(t){this._now=Xo&&t===!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}}var un;(function(e){e.None=()=>mt.None;function t(k,R){return m(k,()=>{},0,void 0,!0,void 0,R)}e.defer=t;function n(k){return(R,I=null,T)=>{let P=!1,D;return D=k(B=>{if(!P)return D?D.dispose():P=!0,R.call(I,B)},null,T),P&&D.dispose(),D}}e.once=n;function r(k,R){return e.once(e.filter(k,R))}e.onceIf=r;function i(k,R,I){return h((T,P=null,D)=>k(B=>T.call(P,R(B)),null,D),I)}e.map=i;function s(k,R,I){return h((T,P=null,D)=>k(B=>{R(B),T.call(P,B)},null,D),I)}e.forEach=s;function a(k,R,I){return h((T,P=null,D)=>k(B=>R(B)&&T.call(P,B),null,D),I)}e.filter=a;function l(k){return k}e.signal=l;function o(...k){return(R,I=null,T)=>{const P=Go(...k.map(D=>D(B=>R.call(I,B))));return f(P,T)}}e.any=o;function u(k,R,I,T){let P=I;return i(k,D=>(P=R(P,D),P),T)}e.reduce=u;function h(k,R){let I;const T={onWillAddFirstListener(){I=k(P.fire,P)},onDidRemoveLastListener(){I?.dispose()}},P=new _e(T);return R?.add(P),P.event}function f(k,R){return R instanceof Array?R.push(k):R&&R.add(k),k}function m(k,R,I=100,T=!1,P=!1,D,B){let j,ne,Dt,qn=0,sn;const F1={leakWarningThreshold:D,onWillAddFirstListener(){j=k(V1=>{qn++,ne=R(ne,V1),T&&!Dt&&(jn.fire(ne),ne=void 0),sn=()=>{const D1=ne;ne=void 0,Dt=void 0,(!T||qn>1)&&jn.fire(D1),qn=0},typeof I=="number"?(clearTimeout(Dt),Dt=setTimeout(sn,I)):Dt===void 0&&(Dt=0,queueMicrotask(sn))})},onWillRemoveListener(){P&&qn>0&&sn?.()},onDidRemoveLastListener(){sn=void 0,j.dispose()}},jn=new _e(F1);return B?.add(jn),jn.event}e.debounce=m;function d(k,R=0,I){return e.debounce(k,(T,P)=>T?(T.push(P),T):[P],R,void 0,!0,void 0,I)}e.accumulate=d;function g(k,R=(T,P)=>T===P,I){let T=!0,P;return a(k,D=>{const B=T||!R(D,P);return T=!1,P=D,B},I)}e.latch=g;function p(k,R,I){return[e.filter(k,R,I),e.filter(k,T=>!R(T),I)]}e.split=p;function y(k,R=!1,I=[],T){let P=I.slice(),D=k(ne=>{P?P.push(ne):j.fire(ne)});T&&T.add(D);const B=()=>{P?.forEach(ne=>j.fire(ne)),P=null},j=new _e({onWillAddFirstListener(){D||(D=k(ne=>j.fire(ne)),T&&T.add(D))},onDidAddFirstListener(){P&&(R?setTimeout(B):B())},onDidRemoveLastListener(){D&&D.dispose(),D=null}});return T&&T.add(j),j.event}e.buffer=y;function w(k,R){return(T,P,D)=>{const B=R(new v);return k(function(j){const ne=B.evaluate(j);ne!==_&&T.call(P,ne)},void 0,D)}}e.chain=w;const _=Symbol("HaltChainable");class v{constructor(){this.steps=[]}map(R){return this.steps.push(R),this}forEach(R){return this.steps.push(I=>(R(I),I)),this}filter(R){return this.steps.push(I=>R(I)?I:_),this}reduce(R,I){let T=I;return this.steps.push(P=>(T=R(T,P),T)),this}latch(R=(I,T)=>I===T){let I=!0,T;return this.steps.push(P=>{const D=I||!R(P,T);return I=!1,T=P,D?P:_}),this}evaluate(R){for(const I of this.steps)if(R=I(R),R===_)break;return R}}function x(k,R,I=T=>T){const T=(...j)=>B.fire(I(...j)),P=()=>k.on(R,T),D=()=>k.removeListener(R,T),B=new _e({onWillAddFirstListener:P,onDidRemoveLastListener:D});return B.event}e.fromNodeEventEmitter=x;function b(k,R,I=T=>T){const T=(...j)=>B.fire(I(...j)),P=()=>k.addEventListener(R,T),D=()=>k.removeEventListener(R,T),B=new _e({onWillAddFirstListener:P,onDidRemoveLastListener:D});return B.event}e.fromDOMEventEmitter=b;function L(k){return new Promise(R=>n(k)(R))}e.toPromise=L;function S(k){const R=new _e;return k.then(I=>{R.fire(I)},()=>{R.fire(void 0)}).finally(()=>{R.dispose()}),R.event}e.fromPromise=S;function M(k,R){return k(I=>R.fire(I))}e.forward=M;function F(k,R,I){return R(I),k(T=>R(T))}e.runAndSubscribe=F;class O{constructor(R,I){this._observable=R,this._counter=0,this._hasChanged=!1;const T={onWillAddFirstListener:()=>{R.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{R.removeObserver(this)}};this.emitter=new _e(T),I&&I.add(this.emitter)}beginUpdate(R){this._counter++}handlePossibleChange(R){}handleChange(R,I){this._hasChanged=!0}endUpdate(R){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function C(k,R){return new O(k,R).emitter.event}e.fromObservable=C;function N(k){return(R,I,T)=>{let P=0,D=!1;const B={beginUpdate(){P++},endUpdate(){P--,P===0&&(k.reportChanges(),D&&(D=!1,R.call(I)))},handlePossibleChange(){},handleChange(){D=!0}};k.addObserver(B),k.reportChanges();const j={dispose(){k.removeObserver(B)}};return T instanceof Ot?T.add(j):Array.isArray(T)&&T.push(j),j}}e.fromObservableLight=N})(un||(un={}));const Pt=class Pt{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${Pt._idPool++}`,Pt.all.add(this)}start(t){this._stopWatch=new ln,this.listenerCount=t}stop(){if(this._stopWatch){const t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};Pt.all=new Set,Pt._idPool=0;let zn=Pt,Qo=-1;const Dn=class Dn{constructor(t,n,r=(Dn._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=n,this.name=r,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(t,n){const r=this.threshold;if(r<=0||n<r)return;this._stacks||(this._stacks=new Map);const i=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=r*.5;const[s,a]=this.getMostFrequentStack(),l=`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${a}):`;console.warn(l),console.warn(s);const o=new Yo(l,s);this._errorHandler(o)}return()=>{const s=this._stacks.get(t.value)||0;this._stacks.set(t.value,s-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,n=0;for(const[r,i]of this._stacks)(!t||n<i)&&(t=[r,i],n=i);return t}};Dn._idPool=1;let Gn=Dn;class Jn{static create(){const t=new Error;return new Jn(t.stack??"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`\n`).slice(2).join(`\n`))}}class Yo extends Error{constructor(t,n){super(t),this.name="ListenerLeakError",this.stack=n}}class Zo extends Error{constructor(t,n){super(t),this.name="ListenerRefusalError",this.stack=n}}class Xn{constructor(t){this.value=t}}const Ko=2;class _e{constructor(t){this._size=0,this._options=t,this._leakageMon=this._options?.leakWarningThreshold?new Gn(t?.onListenerError??Ce,this._options?.leakWarningThreshold??Qo):void 0,this._perfMon=this._options?._profName?new zn(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){this._disposed||(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose())}get event(){return this._event??(this._event=(t,n,r)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){const l=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(l);const o=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],u=new Zo(`${l}. HINT: Stack shows most frequent listener (${o[1]}-times)`,o[0]);return(this._options?.onListenerError||Ce)(u),mt.None}if(this._disposed)return mt.None;n&&(t=t.bind(n));const i=new Xn(t);let s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(i.stack=Jn.create(),s=this._leakageMon.check(i.stack,this._size+1)),this._listeners?this._listeners instanceof Xn?(this._deliveryQueue??(this._deliveryQueue=new el),this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._size++;const a=on(()=>{s?.(),this._removeListener(i)});return r instanceof Ot?r.add(a):Array.isArray(r)&&r.push(a),a}),this._event}_removeListener(t){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 n=this._listeners,r=n.indexOf(t);if(r===-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--,n[r]=void 0;const i=this._deliveryQueue.current===this;if(this._size*Ko<=n.length){let s=0;for(let a=0;a<n.length;a++)n[a]?n[s++]=n[a]:i&&(this._deliveryQueue.end--,s<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=s}}_deliver(t,n){if(!t)return;const r=this._options?.onListenerError||Ce;if(!r){t.value(n);return}try{t.value(n)}catch(i){r(i)}}_deliverQueue(t){const n=t.current._listeners;for(;t.i<t.end;)this._deliver(n[t.i++],t.value);t.reset()}fire(t){if(this._deliveryQueue?.current&&(this._deliverQueue(this._deliveryQueue),this._perfMon?.stop()),this._perfMon?.start(this._size),this._listeners)if(this._listeners instanceof Xn)this._deliver(this._listeners,t);else{const n=this._deliveryQueue;n.enqueue(this,t,this._listeners.length),this._deliverQueue(n)}this._perfMon?.stop()}hasListeners(){return this._size>0}}class el{constructor(){this.i=-1,this.end=0}enqueue(t,n,r){this.i=0,this.end=r,this.current=t,this.value=n}reset(){this.i=this.end,this.current=void 0,this.value=void 0}}function tl(){return globalThis._VSCODE_NLS_MESSAGES}function oi(){return globalThis._VSCODE_NLS_LANGUAGE}const nl=oi()==="pseudo"||typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function li(e,t){let n;return t.length===0?n=e:n=e.replace(/\\{(\\d+)\\}/g,(r,i)=>{const s=i[0],a=t[s];let l=r;return typeof a=="string"?l=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(l=String(a)),l}),nl&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function X(e,t,...n){return li(typeof e=="number"?rl(e,t):t,n)}function rl(e,t){const n=tl()?.[e];if(typeof n!="string"){if(typeof t=="string")return t;throw new Error(`!!! NLS MISSING: ${e} !!!`)}return n}const dt="en";let Qn=!1,Yn=!1,Zn=!1,ui=!1,Kn=!1,cn,er=dt,ci=dt,il,Be;const Ue=globalThis;let be;typeof Ue.vscode<"u"&&typeof Ue.vscode.process<"u"?be=Ue.vscode.process:typeof process<"u"&&typeof process?.versions?.node=="string"&&(be=process);const sl=typeof be?.versions?.electron=="string"&&be?.type==="renderer";if(typeof be=="object"){Qn=be.platform==="win32",Yn=be.platform==="darwin",Zn=be.platform==="linux",Zn&&be.env.SNAP&&be.env.SNAP_REVISION,be.env.CI||be.env.BUILD_ARTIFACTSTAGINGDIRECTORY,cn=dt,er=dt;const e=be.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e);cn=t.userLocale,ci=t.osLocale,er=t.resolvedLanguage||dt,il=t.languagePack?.translationsConfigFile}catch{}ui=!0}else typeof navigator=="object"&&!sl?(Be=navigator.userAgent,Qn=Be.indexOf("Windows")>=0,Yn=Be.indexOf("Macintosh")>=0,(Be.indexOf("Macintosh")>=0||Be.indexOf("iPad")>=0||Be.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Zn=Be.indexOf("Linux")>=0,Be?.indexOf("Mobi")>=0,Kn=!0,er=oi()||dt,cn=navigator.language.toLowerCase(),ci=cn):console.error("Unable to resolve platform.");const $t=Qn,al=Yn,ol=ui,ll=Kn,ul=Kn&&typeof Ue.importScripts=="function"?Ue.origin:void 0,Te=Be,cl=typeof Ue.postMessage=="function"&&!Ue.importScripts;(()=>{if(cl){const e=[];Ue.addEventListener("message",n=>{if(n.data&&n.data.vscodeScheduleAsyncWork)for(let r=0,i=e.length;r<i;r++){const s=e[r];if(s.id===n.data.vscodeScheduleAsyncWork){e.splice(r,1),s.callback();return}}});let t=0;return n=>{const r=++t;e.push({id:r,callback:n}),Ue.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})();const fl=!!(Te&&Te.indexOf("Chrome")>=0);Te&&Te.indexOf("Firefox")>=0,!fl&&Te&&Te.indexOf("Safari")>=0,Te&&Te.indexOf("Edg/")>=0,Te&&Te.indexOf("Android")>=0;function hl(e){return e}class ml{constructor(t,n){this.lastCache=void 0,this.lastArgKey=void 0,typeof t=="function"?(this._fn=t,this._computeKey=hl):(this._fn=n,this._computeKey=t.getCacheKey)}get(t){const n=this._computeKey(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this._fn(t)),this.lastCache}}class fi{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}function dl(e){return e.replace(/[\\\\\\{\\}\\*\\+\\?\\|\\^\\$\\.\\[\\]\\(\\)]/g,"\\\\$&")}function gl(e){return e.split(/\\r\\n|\\r|\\n/)}function pl(e){for(let t=0,n=e.length;t<n;t++){const r=e.charCodeAt(t);if(r!==32&&r!==9)return t}return-1}function bl(e,t=e.length-1){for(let n=t;n>=0;n--){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return-1}function hi(e){return e>=65&&e<=90}function tr(e){return 55296<=e&&e<=56319}function yl(e){return 56320<=e&&e<=57343}function vl(e,t){return(e-55296<<10)+(t-56320)+65536}function xl(e,t,n){const r=e.charCodeAt(n);if(tr(r)&&n+1<t){const i=e.charCodeAt(n+1);if(yl(i))return vl(r,i)}return r}const wl=/^[\\t\\n\\r\\x20-\\x7E]*$/;function _l(e){return wl.test(e)}const Oe=class Oe{static getInstance(t){return Oe.cache.get(Array.from(t))}static getLocales(){return Oe._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};Oe.ambiguousCharacterData=new fi(()=>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]}\')),Oe.cache=new ml({getCacheKey:JSON.stringify},t=>{function n(h){const f=new Map;for(let m=0;m<h.length;m+=2)f.set(h[m],h[m+1]);return f}function r(h,f){const m=new Map(h);for(const[d,g]of f)m.set(d,g);return m}function i(h,f){if(!h)return f;const m=new Map;for(const[d,g]of h)f.has(d)&&m.set(d,g);return m}const s=Oe.ambiguousCharacterData.value;let a=t.filter(h=>!h.startsWith("_")&&h in s);a.length===0&&(a=["_default"]);let l;for(const h of a){const f=n(s[h]);l=i(l,f)}const o=n(s._common),u=r(o,l);return new Oe(u)}),Oe._locales=new fi(()=>Object.keys(Oe.ambiguousCharacterData.value).filter(t=>!t.startsWith("_")));let Bt=Oe;const It=class It{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(It.getRawData())),this._data}static isInvisibleCharacter(t){return It.getData().has(t)}static get codePoints(){return It.getData()}};It._data=void 0;let Ut=It;var mi={ENV_TYPE:"local",NODE_ENV:"production"};let gt;const nr=globalThis.vscode;if(typeof nr<"u"&&typeof nr.process<"u"){const e=nr.process;gt={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"&&typeof process?.versions?.node=="string"?gt={get platform(){return process.platform},get arch(){return process.arch},get env(){return mi},cwd(){return mi.VSCODE_CWD||process.cwd()}}:gt={get platform(){return $t?"win32":al?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const fn=gt.cwd,Ll=gt.env,Nl=gt.platform,Sl=65,Al=97,kl=90,Rl=122,Ge=46,oe=47,ge=92,Je=58,El=63;class di extends Error{constructor(t,n,r){let i;typeof n=="string"&&n.indexOf("not ")===0?(i="must not be",n=n.replace(/^not /,"")):i="must be";const s=t.indexOf(".")!==-1?"property":"argument";let a=`The "${t}" ${s} ${i} of type ${n}`;a+=`. Received type ${typeof r}`,super(a),this.code="ERR_INVALID_ARG_TYPE"}}function Ml(e,t){if(e===null||typeof e!="object")throw new di(t,"Object",e)}function K(e,t){if(typeof e!="string")throw new di(t,"string",e)}const qe=Nl==="win32";function U(e){return e===oe||e===ge}function rr(e){return e===oe}function Xe(e){return e>=Sl&&e<=kl||e>=Al&&e<=Rl}function hn(e,t,n,r){let i="",s=0,a=-1,l=0,o=0;for(let u=0;u<=e.length;++u){if(u<e.length)o=e.charCodeAt(u);else{if(r(o))break;o=oe}if(r(o)){if(!(a===u-1||l===1))if(l===2){if(i.length<2||s!==2||i.charCodeAt(i.length-1)!==Ge||i.charCodeAt(i.length-2)!==Ge){if(i.length>2){const h=i.lastIndexOf(n);h===-1?(i="",s=0):(i=i.slice(0,h),s=i.length-1-i.lastIndexOf(n)),a=u,l=0;continue}else if(i.length!==0){i="",s=0,a=u,l=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(a+1,u)}`:i=e.slice(a+1,u),s=u-a-1;a=u,l=0}else o===Ge&&l!==-1?++l:l=-1}return i}function Cl(e){return e?`${e[0]==="."?"":"."}${e}`:""}function gi(e,t){Ml(t,"pathObject");const n=t.dir||t.root,r=t.base||`${t.name||""}${Cl(t.ext)}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const ue={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],K(s,`paths[${i}]`),s.length===0)continue}else t.length===0?s=fn():(s=Ll[`=${t}`]||fn(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===ge)&&(s=`${t}\\\\`));const a=s.length;let l=0,o="",u=!1;const h=s.charCodeAt(0);if(a===1)U(h)&&(l=1,u=!0);else if(U(h))if(u=!0,U(s.charCodeAt(1))){let f=2,m=f;for(;f<a&&!U(s.charCodeAt(f));)f++;if(f<a&&f!==m){const d=s.slice(m,f);for(m=f;f<a&&U(s.charCodeAt(f));)f++;if(f<a&&f!==m){for(m=f;f<a&&!U(s.charCodeAt(f));)f++;(f===a||f!==m)&&(o=`\\\\\\\\${d}\\\\${s.slice(m,f)}`,l=f)}}}else l=1;else Xe(h)&&s.charCodeAt(1)===Je&&(o=s.slice(0,2),l=2,a>2&&U(s.charCodeAt(2))&&(u=!0,l=3));if(o.length>0)if(t.length>0){if(o.toLowerCase()!==t.toLowerCase())continue}else t=o;if(r){if(t.length>0)break}else if(n=`${s.slice(l)}\\\\${n}`,r=u,u&&t.length>0)break}return n=hn(n,!r,"\\\\",U),r?`${t}\\\\${n}`:`${t}${n}`||"."},normalize(e){K(e,"path");const t=e.length;if(t===0)return".";let n=0,r,i=!1;const s=e.charCodeAt(0);if(t===1)return rr(s)?"\\\\":e;if(U(s))if(i=!0,U(e.charCodeAt(1))){let l=2,o=l;for(;l<t&&!U(e.charCodeAt(l));)l++;if(l<t&&l!==o){const u=e.slice(o,l);for(o=l;l<t&&U(e.charCodeAt(l));)l++;if(l<t&&l!==o){for(o=l;l<t&&!U(e.charCodeAt(l));)l++;if(l===t)return`\\\\\\\\${u}\\\\${e.slice(o)}\\\\`;l!==o&&(r=`\\\\\\\\${u}\\\\${e.slice(o,l)}`,n=l)}}}else n=1;else Xe(s)&&e.charCodeAt(1)===Je&&(r=e.slice(0,2),n=2,t>2&&U(e.charCodeAt(2))&&(i=!0,n=3));let a=n<t?hn(e.slice(n),!i,"\\\\",U):"";return a.length===0&&!i&&(a="."),a.length>0&&U(e.charCodeAt(t-1))&&(a+="\\\\"),r===void 0?i?`\\\\${a}`:a:i?`${r}\\\\${a}`:`${r}${a}`},isAbsolute(e){K(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return U(n)||t>2&&Xe(n)&&e.charCodeAt(1)===Je&&U(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,n;for(let s=0;s<e.length;++s){const a=e[s];K(a,"path"),a.length>0&&(t===void 0?t=n=a:t+=`\\\\${a}`)}if(t===void 0)return".";let r=!0,i=0;if(typeof n=="string"&&U(n.charCodeAt(0))){++i;const s=n.length;s>1&&U(n.charCodeAt(1))&&(++i,s>2&&(U(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&U(t.charCodeAt(i));)i++;i>=2&&(t=`\\\\${t.slice(i)}`)}return ue.normalize(t)},relative(e,t){if(K(e,"from"),K(t,"to"),e===t)return"";const n=ue.resolve(e),r=ue.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===ge;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===ge;)s--;const a=s-i;let l=0;for(;l<t.length&&t.charCodeAt(l)===ge;)l++;let o=t.length;for(;o-1>l&&t.charCodeAt(o-1)===ge;)o--;const u=o-l,h=a<u?a:u;let f=-1,m=0;for(;m<h;m++){const g=e.charCodeAt(i+m);if(g!==t.charCodeAt(l+m))break;g===ge&&(f=m)}if(m!==h){if(f===-1)return r}else{if(u>h){if(t.charCodeAt(l+m)===ge)return r.slice(l+m+1);if(m===2)return r.slice(l+m)}a>h&&(e.charCodeAt(i+m)===ge?f=m:m===2&&(f=3)),f===-1&&(f=0)}let d="";for(m=i+f+1;m<=s;++m)(m===s||e.charCodeAt(m)===ge)&&(d+=d.length===0?"..":"\\\\..");return l+=f,d.length>0?`${d}${r.slice(l,o)}`:(r.charCodeAt(l)===ge&&++l,r.slice(l,o))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=ue.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===ge){if(t.charCodeAt(1)===ge){const n=t.charCodeAt(2);if(n!==El&&n!==Ge)return`\\\\\\\\?\\\\UNC\\\\${t.slice(2)}`}}else if(Xe(t.charCodeAt(0))&&t.charCodeAt(1)===Je&&t.charCodeAt(2)===ge)return`\\\\\\\\?\\\\${t}`;return e},dirname(e){K(e,"path");const t=e.length;if(t===0)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(t===1)return U(i)?e:".";if(U(i)){if(n=r=1,U(e.charCodeAt(1))){let l=2,o=l;for(;l<t&&!U(e.charCodeAt(l));)l++;if(l<t&&l!==o){for(o=l;l<t&&U(e.charCodeAt(l));)l++;if(l<t&&l!==o){for(o=l;l<t&&!U(e.charCodeAt(l));)l++;if(l===t)return e;l!==o&&(n=r=l+1)}}}}else Xe(i)&&e.charCodeAt(1)===Je&&(n=t>2&&U(e.charCodeAt(2))?3:2,r=n);let s=-1,a=!0;for(let l=t-1;l>=r;--l)if(U(e.charCodeAt(l))){if(!a){s=l;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return e.slice(0,s)},basename(e,t){t!==void 0&&K(t,"suffix"),K(e,"path");let n=0,r=-1,i=!0,s;if(e.length>=2&&Xe(e.charCodeAt(0))&&e.charCodeAt(1)===Je&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(s=e.length-1;s>=n;--s){const o=e.charCodeAt(s);if(U(o)){if(!i){n=s+1;break}}else l===-1&&(i=!1,l=s+1),a>=0&&(o===t.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=n;--s)if(U(e.charCodeAt(s))){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){K(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,a=0;e.length>=2&&e.charCodeAt(1)===Je&&Xe(e.charCodeAt(0))&&(t=r=2);for(let l=e.length-1;l>=t;--l){const o=e.charCodeAt(l);if(U(o)){if(!s){r=l+1;break}continue}i===-1&&(s=!1,i=l+1),o===Ge?n===-1?n=l:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||i===-1||a===0||a===1&&n===i-1&&n===r+1?"":e.slice(n,i)},format:gi.bind(null,"\\\\"),parse(e){K(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.length;let r=0,i=e.charCodeAt(0);if(n===1)return U(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(U(i)){if(r=1,U(e.charCodeAt(1))){let f=2,m=f;for(;f<n&&!U(e.charCodeAt(f));)f++;if(f<n&&f!==m){for(m=f;f<n&&U(e.charCodeAt(f));)f++;if(f<n&&f!==m){for(m=f;f<n&&!U(e.charCodeAt(f));)f++;f===n?r=f:f!==m&&(r=f+1)}}}}else if(Xe(i)&&e.charCodeAt(1)===Je){if(n<=2)return t.root=t.dir=e,t;if(r=2,U(e.charCodeAt(2))){if(n===3)return t.root=t.dir=e,t;r=3}}r>0&&(t.root=e.slice(0,r));let s=-1,a=r,l=-1,o=!0,u=e.length-1,h=0;for(;u>=r;--u){if(i=e.charCodeAt(u),U(i)){if(!o){a=u+1;break}continue}l===-1&&(o=!1,l=u+1),i===Ge?s===-1?s=u:h!==1&&(h=1):s!==-1&&(h=-1)}return l!==-1&&(s===-1||h===0||h===1&&s===l-1&&s===a+1?t.base=t.name=e.slice(a,l):(t.name=e.slice(a,s),t.base=e.slice(a,l),t.ext=e.slice(s,l))),a>0&&a!==r?t.dir=e.slice(0,a-1):t.dir=t.root,t},sep:"\\\\",delimiter:";",win32:null,posix:null},Tl=(()=>{if(qe){const e=/\\\\/g;return()=>{const t=fn().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>fn()})(),ce={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:Tl();K(i,`paths[${r}]`),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===oe)}return t=hn(t,!n,"/",rr),n?`/${t}`:t.length>0?t:"."},normalize(e){if(K(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===oe,n=e.charCodeAt(e.length-1)===oe;return e=hn(e,!t,"/",rr),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return K(e,"path"),e.length>0&&e.charCodeAt(0)===oe},join(...e){if(e.length===0)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];K(r,"path"),r.length>0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?".":ce.normalize(t)},relative(e,t){if(K(e,"from"),K(t,"to"),e===t||(e=ce.resolve(e),t=ce.resolve(t),e===t))return"";const n=1,r=e.length,i=r-n,s=1,a=t.length-s,l=i<a?i:a;let o=-1,u=0;for(;u<l;u++){const f=e.charCodeAt(n+u);if(f!==t.charCodeAt(s+u))break;f===oe&&(o=u)}if(u===l)if(a>l){if(t.charCodeAt(s+u)===oe)return t.slice(s+u+1);if(u===0)return t.slice(s+u)}else i>l&&(e.charCodeAt(n+u)===oe?o=u:u===0&&(o=0));let h="";for(u=n+o+1;u<=r;++u)(u===r||e.charCodeAt(u)===oe)&&(h+=h.length===0?"..":"/..");return`${h}${t.slice(s+o)}`},toNamespacedPath(e){return e},dirname(e){if(K(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===oe;let n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===oe){if(!r){n=i;break}}else r=!1;return n===-1?t?"/":".":t&&n===1?"//":e.slice(0,n)},basename(e,t){t!==void 0&&K(t,"ext"),K(e,"path");let n=0,r=-1,i=!0,s;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,l=-1;for(s=e.length-1;s>=0;--s){const o=e.charCodeAt(s);if(o===oe){if(!i){n=s+1;break}}else l===-1&&(i=!1,l=s+1),a>=0&&(o===t.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=l))}return n===r?r=l:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===oe){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){K(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let a=e.length-1;a>=0;--a){const l=e.charCodeAt(a);if(l===oe){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),l===Ge?t===-1?t=a:s!==1&&(s=1):t!==-1&&(s=-1)}return t===-1||r===-1||s===0||s===1&&t===r-1&&t===n+1?"":e.slice(t,r)},format:gi.bind(null,"/"),parse(e){K(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===oe;let r;n?(t.root="/",r=1):r=0;let i=-1,s=0,a=-1,l=!0,o=e.length-1,u=0;for(;o>=r;--o){const h=e.charCodeAt(o);if(h===oe){if(!l){s=o+1;break}continue}a===-1&&(l=!1,a=o+1),h===Ge?i===-1?i=o:u!==1&&(u=1):i!==-1&&(u=-1)}if(a!==-1){const h=s===0&&n?1:s;i===-1||u===0||u===1&&i===a-1&&i===s+1?t.base=t.name=e.slice(h,a):(t.name=e.slice(h,i),t.base=e.slice(h,a),t.ext=e.slice(i,a))}return s>0?t.dir=e.slice(0,s-1):n&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};ce.win32=ue.win32=ue,ce.posix=ue.posix=ce,qe?ue.normalize:ce.normalize;const Pl=qe?ue.join:ce.join;qe?ue.resolve:ce.resolve,qe?ue.relative:ce.relative,qe?ue.dirname:ce.dirname,qe?ue.basename:ce.basename,qe?ue.extname:ce.extname,qe?ue.sep:ce.sep;const Il=/^\\w[\\w\\d+.-]*$/,Fl=/^\\//,Vl=/^\\/\\//;function Dl(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!Il.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!Fl.test(e.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(Vl.test(e.path))throw new Error(\'[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")\')}}function Ol(e,t){return!e&&!t?"file":e}function $l(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==Ae&&(t=Ae+t):t=Ae;break}return t}const J="",Ae="/",Bl=/^(([^:/?#]+?):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/;let Pe=class Wn{static isUri(t){return t instanceof Wn?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,n,r,i,s,a=!1){typeof t=="object"?(this.scheme=t.scheme||J,this.authority=t.authority||J,this.path=t.path||J,this.query=t.query||J,this.fragment=t.fragment||J):(this.scheme=Ol(t,a),this.authority=n||J,this.path=$l(this.scheme,r||J),this.query=i||J,this.fragment=s||J,Dl(this,a))}get fsPath(){return ir(this,!1)}with(t){if(!t)return this;let{scheme:n,authority:r,path:i,query:s,fragment:a}=t;return n===void 0?n=this.scheme:n===null&&(n=J),r===void 0?r=this.authority:r===null&&(r=J),i===void 0?i=this.path:i===null&&(i=J),s===void 0?s=this.query:s===null&&(s=J),a===void 0?a=this.fragment:a===null&&(a=J),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new pt(n,r,i,s,a)}static parse(t,n=!1){const r=Bl.exec(t);return r?new pt(r[2]||J,mn(r[4]||J),mn(r[5]||J),mn(r[7]||J),mn(r[9]||J),n):new pt(J,J,J,J,J)}static file(t){let n=J;if($t&&(t=t.replace(/\\\\/g,Ae)),t[0]===Ae&&t[1]===Ae){const r=t.indexOf(Ae,2);r===-1?(n=t.substring(2),t=Ae):(n=t.substring(2,r),t=t.substring(r)||Ae)}return new pt("file",n,t,J,J)}static from(t,n){return new pt(t.scheme,t.authority,t.path,t.query,t.fragment,n)}static joinPath(t,...n){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let r;return $t&&t.scheme==="file"?r=Wn.file(ue.join(ir(t,!0),...n)).path:r=ce.join(t.path,...n),t.with({path:r})}toString(t=!1){return sr(this,t)}toJSON(){return this}static revive(t){if(t){if(t instanceof Wn)return t;{const n=new pt(t);return n._formatted=t.external??null,n._fsPath=t._sep===pi?t.fsPath??null:null,n}}else return t}};const pi=$t?1:void 0;class pt extends Pe{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=ir(this,!1)),this._fsPath}toString(t=!1){return t?sr(this,!0):(this._formatted||(this._formatted=sr(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=pi),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}}const bi={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 yi(e,t,n){let r,i=-1;for(let s=0;s<e.length;s++){const a=e.charCodeAt(s);if(a>=97&&a<=122||a>=65&&a<=90||a>=48&&a<=57||a===45||a===46||a===95||a===126||t&&a===47||n&&a===91||n&&a===93||n&&a===58)i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r!==void 0&&(r+=e.charAt(s));else{r===void 0&&(r=e.substr(0,s));const l=bi[a];l!==void 0?(i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=l):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r!==void 0?r:e}function Ul(e){let t;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);r===35||r===63?(t===void 0&&(t=e.substr(0,n)),t+=bi[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function ir(e,t){let n;return e.authority&&e.path.length>1&&e.scheme==="file"?n=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,$t&&(n=n.replace(/\\//g,"\\\\")),n}function sr(e,t){const n=t?Ul:yi;let r="",{scheme:i,authority:s,path:a,query:l,fragment:o}=e;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=Ae,r+=Ae),s){let u=s.indexOf("@");if(u!==-1){const h=s.substr(0,u);s=s.substr(u+1),u=h.lastIndexOf(":"),u===-1?r+=n(h,!1,!1):(r+=n(h.substr(0,u),!1,!1),r+=":",r+=n(h.substr(u+1),!1,!0)),r+="@"}s=s.toLowerCase(),u=s.lastIndexOf(":"),u===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,u),!1,!0),r+=s.substr(u))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const u=a.charCodeAt(1);u>=65&&u<=90&&(a=`/${String.fromCharCode(u+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const u=a.charCodeAt(0);u>=65&&u<=90&&(a=`${String.fromCharCode(u+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return l&&(r+="?",r+=n(l,!1,!1)),o&&(r+="#",r+=t?o:yi(o,!1,!1)),r}function vi(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+vi(e.substr(3)):e}}const xi=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function mn(e){return e.match(xi)?e.replace(xi,t=>vi(t)):e}var Qe;(function(e){e.inMemory="inmemory",e.vscode="vscode",e.internal="private",e.walkThrough="walkThrough",e.walkThroughSnippet="walkThroughSnippet",e.http="http",e.https="https",e.file="file",e.mailto="mailto",e.untitled="untitled",e.data="data",e.command="command",e.vscodeRemote="vscode-remote",e.vscodeRemoteResource="vscode-remote-resource",e.vscodeManagedRemoteResource="vscode-managed-remote-resource",e.vscodeUserData="vscode-userdata",e.vscodeCustomEditor="vscode-custom-editor",e.vscodeNotebookCell="vscode-notebook-cell",e.vscodeNotebookCellMetadata="vscode-notebook-cell-metadata",e.vscodeNotebookCellMetadataDiff="vscode-notebook-cell-metadata-diff",e.vscodeNotebookCellOutput="vscode-notebook-cell-output",e.vscodeNotebookCellOutputDiff="vscode-notebook-cell-output-diff",e.vscodeNotebookMetadata="vscode-notebook-metadata",e.vscodeInteractiveInput="vscode-interactive-input",e.vscodeSettings="vscode-settings",e.vscodeWorkspaceTrust="vscode-workspace-trust",e.vscodeTerminal="vscode-terminal",e.vscodeChatCodeBlock="vscode-chat-code-block",e.vscodeChatCodeCompareBlock="vscode-chat-code-compare-block",e.vscodeChatSesssion="vscode-chat-editor",e.webviewPanel="webview-panel",e.vscodeWebview="vscode-webview",e.extension="extension",e.vscodeFileResource="vscode-file",e.tmp="tmp",e.vsls="vsls",e.vscodeSourceControl="vscode-scm",e.commentsInput="comment",e.codeSetting="code-setting",e.outputChannel="output"})(Qe||(Qe={}));const ql="tkn";class jl{constructor(){this._hosts=Object.create(null),this._ports=Object.create(null),this._connectionTokens=Object.create(null),this._preferredWebSchema="http",this._delegate=null,this._serverRootPath="/"}setPreferredWebSchema(t){this._preferredWebSchema=t}get _remoteResourcesPath(){return ce.join(this._serverRootPath,Qe.vscodeRemoteResource)}rewrite(t){if(this._delegate)try{return this._delegate(t)}catch(l){return Ce(l),t}const n=t.authority;let r=this._hosts[n];r&&r.indexOf(":")!==-1&&r.indexOf("[")===-1&&(r=`[${r}]`);const i=this._ports[n],s=this._connectionTokens[n];let a=`path=${encodeURIComponent(t.path)}`;return typeof s=="string"&&(a+=`&${ql}=${encodeURIComponent(s)}`),Pe.from({scheme:ll?this._preferredWebSchema:Qe.vscodeRemoteResource,authority:`${r}:${i}`,path:this._remoteResourcesPath,query:a})}}const Wl=new jl,Hl="vscode-app",tn=class tn{asBrowserUri(t){const n=this.toUri(t);return this.uriToBrowserUri(n)}uriToBrowserUri(t){return t.scheme===Qe.vscodeRemote?Wl.rewrite(t):t.scheme===Qe.file&&(ol||ul===`${Qe.vscodeFileResource}://${tn.FALLBACK_AUTHORITY}`)?t.with({scheme:Qe.vscodeFileResource,authority:t.authority||tn.FALLBACK_AUTHORITY,query:null,fragment:null}):t}toUri(t,n){if(Pe.isUri(t))return t;if(globalThis._VSCODE_FILE_ROOT){const r=globalThis._VSCODE_FILE_ROOT;if(/^\\w[\\w\\d+.-]*:\\/\\//.test(r))return Pe.joinPath(Pe.parse(r,!0),t);const i=Pl(r,t);return Pe.file(i)}return Pe.parse(n.toUrl(t))}};tn.FALLBACK_AUTHORITY=Hl;let ar=tn;const wi=new ar;var _i;(function(e){const t=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"}]]);e.CoopAndCoep=Object.freeze(t.get("3"));const n="vscode-coi";function r(s){let a;typeof s=="string"?a=new URL(s).searchParams:s instanceof URL?a=s.searchParams:Pe.isUri(s)&&(a=new URL(s.toString(!0)).searchParams);const l=a?.get(n);if(l)return t.get(l)}e.getHeadersFromQuery=r;function i(s,a,l){if(!globalThis.crossOriginIsolated)return;const o=a&&l?"3":l?"2":"1";s instanceof URLSearchParams?s.set(n,o):s[n]=o}e.addSearchParam=i})(_i||(_i={}));const or="default",zl="$initialize";class Gl{constructor(t,n,r,i,s){this.vsWorker=t,this.req=n,this.channel=r,this.method=i,this.args=s,this.type=0}}class Li{constructor(t,n,r,i){this.vsWorker=t,this.seq=n,this.res=r,this.err=i,this.type=1}}class Jl{constructor(t,n,r,i,s){this.vsWorker=t,this.req=n,this.channel=r,this.eventName=i,this.arg=s,this.type=2}}class Xl{constructor(t,n,r){this.vsWorker=t,this.req=n,this.event=r,this.type=3}}class Ql{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}}class Yl{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,n,r){const i=String(++this._lastSentReq);return new Promise((s,a)=>{this._pendingReplies[i]={resolve:s,reject:a},this._send(new Gl(this._workerId,i,t,n,r))})}listen(t,n,r){let i=null;const s=new _e({onWillAddFirstListener:()=>{i=String(++this._lastSentReq),this._pendingEmitters.set(i,s),this._send(new Jl(this._workerId,i,t,n,r))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(i),this._send(new Ql(this._workerId,i)),i=null}});return s.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}createProxyToRemoteChannel(t,n){const r={get:(i,s)=>(typeof s=="string"&&!i[s]&&(Si(s)?i[s]=a=>this.listen(t,s,a):Ni(s)?i[s]=this.listen(t,s,void 0):s.charCodeAt(0)===36&&(i[s]=async(...a)=>(await n?.(),this.sendMessage(t,s,a)))),i[s])};return new Proxy(Object.create(null),r)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}const n=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let r=t.err;t.err.$isError&&(r=new Error,r.name=t.err.name,r.message=t.err.message,r.stack=t.err.stack),n.reject(r);return}n.resolve(t.res)}_handleRequestMessage(t){const n=t.req;this._handler.handleMessage(t.channel,t.method,t.args).then(i=>{this._send(new Li(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=si(i.detail)),this._send(new Li(this._workerId,n,void 0,si(i)))})}_handleSubscribeEventMessage(t){const n=t.req,r=this._handler.handleEvent(t.channel,t.eventName,t.arg)(i=>{this._send(new Xl(this._workerId,n,i))});this._pendingEvents.set(n,r)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){const n=[];if(t.type===0)for(let r=0;r<t.args.length;r++)t.args[r]instanceof ArrayBuffer&&n.push(t.args[r]);else t.type===1&&t.res instanceof ArrayBuffer&&n.push(t.res);this._handler.sendMessage(t,n)}}function Ni(e){return e[0]==="o"&&e[1]==="n"&&hi(e.charCodeAt(2))}function Si(e){return/^onDynamic/.test(e)&&hi(e.charCodeAt(9))}class Zl{constructor(t,n){this._localChannels=new Map,this._remoteChannels=new Map,this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new Yl({sendMessage:(r,i)=>{t(r,i)},handleMessage:(r,i,s)=>this._handleMessage(r,i,s),handleEvent:(r,i,s)=>this._handleEvent(r,i,s)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n,r){if(t===or&&n===zl)return this.initialize(r[0],r[1],r[2]);const i=t===or?this._requestHandler:this._localChannels.get(t);if(!i)return Promise.reject(new Error(`Missing channel ${t} on worker thread`));if(typeof i[n]!="function")return Promise.reject(new Error(`Missing method ${n} on worker thread channel ${t}`));try{return Promise.resolve(i[n].apply(i,r))}catch(s){return Promise.reject(s)}}_handleEvent(t,n,r){const i=t===or?this._requestHandler:this._localChannels.get(t);if(!i)throw new Error(`Missing channel ${t} on worker thread`);if(Si(n)){const s=i[n].call(i,r);if(typeof s!="function")throw new Error(`Missing dynamic event ${n} on request handler.`);return s}if(Ni(n)){const s=i[n];if(typeof s!="function")throw new Error(`Missing event ${n} on request handler.`);return s}throw new Error(`Malformed event name ${n}`)}getChannel(t){if(!this._remoteChannels.has(t)){const n=this._protocol.createProxyToRemoteChannel(t);this._remoteChannels.set(t,n)}return this._remoteChannels.get(t)}async initialize(t,n,r){if(this._protocol.setWorkerId(t),this._requestHandlerFactory){this._requestHandler=this._requestHandlerFactory(this);return}return n&&(typeof n.baseUrl<"u"&&delete n.baseUrl,typeof n.paths<"u"&&typeof n.paths.vs<"u"&&delete n.paths.vs,typeof n.trustedTypesPolicy<"u"&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),import(`${wi.asBrowserUri(`${r}.js`).toString(!0)}`).then(s=>{if(this._requestHandler=s.create(this),!this._requestHandler)throw new Error("No RequestHandler!")})}}class Ye{constructor(t,n,r,i){this.originalStart=t,this.originalLength=n,this.modifiedStart=r,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function Ai(e,t){return(t<<5)-t+e|0}function Kl(e,t){t=Ai(149417,t);for(let n=0,r=e.length;n<r;n++)t=Ai(e.charCodeAt(n),t);return t}class ki{constructor(t){this.source=t}getElements(){const t=this.source,n=new Int32Array(t.length);for(let r=0,i=t.length;r<i;r++)n[r]=t.charCodeAt(r);return n}}function eu(e,t,n){return new Ze(new ki(e),new ki(t)).ComputeDiff(n).changes}class bt{static Assert(t,n){if(!t)throw new Error(n)}}class yt{static Copy(t,n,r,i,s){for(let a=0;a<s;a++)r[i+a]=t[n+a]}static Copy2(t,n,r,i,s){for(let a=0;a<s;a++)r[i+a]=t[n+a]}}class Ri{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Ye(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_originalCount++}AddModifiedElement(t,n){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,n),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class Ze{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;const[i,s,a]=Ze._getElements(t),[l,o,u]=Ze._getElements(n);this._hasStrings=a&&u,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=l,this._modifiedElementsOrHash=o,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){const n=t.getElements();if(Ze._isStringArray(n)){const r=new Int32Array(n.length);for(let i=0,s=n.length;i<s;i++)r[i]=Kl(n[i],0);return[n,r,!0]}return n instanceof Int32Array?[[],n,!1]:[[],new Int32Array(n),!1]}ElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._modifiedStringElements[n]:!0}ElementsAreStrictEqual(t,n){if(!this.ElementsAreEqual(t,n))return!1;const r=Ze._getStrictElement(this._originalSequence,t),i=Ze._getStrictElement(this._modifiedSequence,n);return r===i}static _getStrictElement(t,n){return typeof t.getStrictElement=="function"?t.getStrictElement(n):null}OriginalElementsAreEqual(t,n){return this._originalElementsOrHash[t]!==this._originalElementsOrHash[n]?!1:this._hasStrings?this._originalStringElements[t]===this._originalStringElements[n]:!0}ModifiedElementsAreEqual(t,n){return this._modifiedElementsOrHash[t]!==this._modifiedElementsOrHash[n]?!1:this._hasStrings?this._modifiedStringElements[t]===this._modifiedStringElements[n]:!0}ComputeDiff(t){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,t)}_ComputeDiff(t,n,r,i,s){const a=[!1];let l=this.ComputeDiffRecursive(t,n,r,i,a);return s&&(l=this.PrettifyChanges(l)),{quitEarly:a[0],changes:l}}ComputeDiffRecursive(t,n,r,i,s){for(s[0]=!1;t<=n&&r<=i&&this.ElementsAreEqual(t,r);)t++,r++;for(;n>=t&&i>=r&&this.ElementsAreEqual(n,i);)n--,i--;if(t>n||r>i){let f;return r<=i?(bt.Assert(t===n+1,"originalStart should only be one more than originalEnd"),f=[new Ye(t,0,r,i-r+1)]):t<=n?(bt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),f=[new Ye(t,n-t+1,r,0)]):(bt.Assert(t===n+1,"originalStart should only be one more than originalEnd"),bt.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),f=[]),f}const a=[0],l=[0],o=this.ComputeRecursionPoint(t,n,r,i,a,l,s),u=a[0],h=l[0];if(o!==null)return o;if(!s[0]){const f=this.ComputeDiffRecursive(t,u,r,h,s);let m=[];return s[0]?m=[new Ye(u+1,n-(u+1)+1,h+1,i-(h+1)+1)]:m=this.ComputeDiffRecursive(u+1,n,h+1,i,s),this.ConcatenateChanges(f,m)}return[new Ye(t,n-t+1,r,i-r+1)]}WALKTRACE(t,n,r,i,s,a,l,o,u,h,f,m,d,g,p,y,w,_){let v=null,x=null,b=new Ri,L=n,S=r,M=d[0]-y[0]-i,F=-1073741824,O=this.m_forwardHistory.length-1;do{const C=M+t;C===L||C<S&&u[C-1]<u[C+1]?(f=u[C+1],g=f-M-i,f<F&&b.MarkNextChange(),F=f,b.AddModifiedElement(f+1,g),M=C+1-t):(f=u[C-1]+1,g=f-M-i,f<F&&b.MarkNextChange(),F=f-1,b.AddOriginalElement(f,g+1),M=C-1-t),O>=0&&(u=this.m_forwardHistory[O],t=u[0],L=1,S=u.length-1)}while(--O>=-1);if(v=b.getReverseChanges(),_[0]){let C=d[0]+1,N=y[0]+1;if(v!==null&&v.length>0){const k=v[v.length-1];C=Math.max(C,k.getOriginalEnd()),N=Math.max(N,k.getModifiedEnd())}x=[new Ye(C,m-C+1,N,p-N+1)]}else{b=new Ri,L=a,S=l,M=d[0]-y[0]-o,F=1073741824,O=w?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const C=M+s;C===L||C<S&&h[C-1]>=h[C+1]?(f=h[C+1]-1,g=f-M-o,f>F&&b.MarkNextChange(),F=f+1,b.AddOriginalElement(f+1,g+1),M=C+1-s):(f=h[C-1],g=f-M-o,f>F&&b.MarkNextChange(),F=f,b.AddModifiedElement(f+1,g+1),M=C-1-s),O>=0&&(h=this.m_reverseHistory[O],s=h[0],L=1,S=h.length-1)}while(--O>=-1);x=b.getChanges()}return this.ConcatenateChanges(v,x)}ComputeRecursionPoint(t,n,r,i,s,a,l){let o=0,u=0,h=0,f=0,m=0,d=0;t--,r--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const g=n-t+(i-r),p=g+1,y=new Int32Array(p),w=new Int32Array(p),_=i-r,v=n-t,x=t-r,b=n-i,S=(v-_)%2===0;y[_]=t,w[v]=n,l[0]=!1;for(let M=1;M<=g/2+1;M++){let F=0,O=0;h=this.ClipDiagonalBound(_-M,M,_,p),f=this.ClipDiagonalBound(_+M,M,_,p);for(let N=h;N<=f;N+=2){N===h||N<f&&y[N-1]<y[N+1]?o=y[N+1]:o=y[N-1]+1,u=o-(N-_)-x;const k=o;for(;o<n&&u<i&&this.ElementsAreEqual(o+1,u+1);)o++,u++;if(y[N]=o,o+u>F+O&&(F=o,O=u),!S&&Math.abs(N-v)<=M-1&&o>=w[N])return s[0]=o,a[0]=u,k<=w[N]&&M<=1448?this.WALKTRACE(_,h,f,x,v,m,d,b,y,w,o,n,s,u,i,a,S,l):null}const C=(F-t+(O-r)-M)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(F,C))return l[0]=!0,s[0]=F,a[0]=O,C>0&&M<=1448?this.WALKTRACE(_,h,f,x,v,m,d,b,y,w,o,n,s,u,i,a,S,l):(t++,r++,[new Ye(t,n-t+1,r,i-r+1)]);m=this.ClipDiagonalBound(v-M,M,v,p),d=this.ClipDiagonalBound(v+M,M,v,p);for(let N=m;N<=d;N+=2){N===m||N<d&&w[N-1]>=w[N+1]?o=w[N+1]-1:o=w[N-1],u=o-(N-v)-b;const k=o;for(;o>t&&u>r&&this.ElementsAreEqual(o,u);)o--,u--;if(w[N]=o,S&&Math.abs(N-_)<=M&&o<=y[N])return s[0]=o,a[0]=u,k>=y[N]&&M<=1448?this.WALKTRACE(_,h,f,x,v,m,d,b,y,w,o,n,s,u,i,a,S,l):null}if(M<=1447){let N=new Int32Array(f-h+2);N[0]=_-h+1,yt.Copy2(y,h,N,1,f-h+1),this.m_forwardHistory.push(N),N=new Int32Array(d-m+2),N[0]=v-m+1,yt.Copy2(w,m,N,1,d-m+1),this.m_reverseHistory.push(N)}}return this.WALKTRACE(_,h,f,x,v,m,d,b,y,w,o,n,s,u,i,a,S,l)}PrettifyChanges(t){for(let n=0;n<t.length;n++){const r=t[n],i=n<t.length-1?t[n+1].originalStart:this._originalElementsOrHash.length,s=n<t.length-1?t[n+1].modifiedStart:this._modifiedElementsOrHash.length,a=r.originalLength>0,l=r.modifiedLength>0;for(;r.originalStart+r.originalLength<i&&r.modifiedStart+r.modifiedLength<s&&(!a||this.OriginalElementsAreEqual(r.originalStart,r.originalStart+r.originalLength))&&(!l||this.ModifiedElementsAreEqual(r.modifiedStart,r.modifiedStart+r.modifiedLength));){const u=this.ElementsAreStrictEqual(r.originalStart,r.modifiedStart);if(this.ElementsAreStrictEqual(r.originalStart+r.originalLength,r.modifiedStart+r.modifiedLength)&&!u)break;r.originalStart++,r.modifiedStart++}const o=[null];if(n<t.length-1&&this.ChangesOverlap(t[n],t[n+1],o)){t[n]=o[0],t.splice(n+1,1),n--;continue}}for(let n=t.length-1;n>=0;n--){const r=t[n];let i=0,s=0;if(n>0){const f=t[n-1];i=f.originalStart+f.originalLength,s=f.modifiedStart+f.modifiedLength}const a=r.originalLength>0,l=r.modifiedLength>0;let o=0,u=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let f=1;;f++){const m=r.originalStart-f,d=r.modifiedStart-f;if(m<i||d<s||a&&!this.OriginalElementsAreEqual(m,m+r.originalLength)||l&&!this.ModifiedElementsAreEqual(d,d+r.modifiedLength))break;const p=(m===i&&d===s?5:0)+this._boundaryScore(m,r.originalLength,d,r.modifiedLength);p>u&&(u=p,o=f)}r.originalStart-=o,r.modifiedStart-=o;const h=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],h)){t[n-1]=h[0],t.splice(n,1),n++;continue}}if(this._hasStrings)for(let n=1,r=t.length;n<r;n++){const i=t[n-1],s=t[n],a=s.originalStart-i.originalStart-i.originalLength,l=i.originalStart,o=s.originalStart+s.originalLength,u=o-l,h=i.modifiedStart,f=s.modifiedStart+s.modifiedLength,m=f-h;if(a<5&&u<20&&m<20){const d=this._findBetterContiguousSequence(l,u,h,m,a);if(d){const[g,p]=d;(g!==i.originalStart+i.originalLength||p!==i.modifiedStart+i.modifiedLength)&&(i.originalLength=g-i.originalStart,i.modifiedLength=p-i.modifiedStart,s.originalStart=g+a,s.modifiedStart=p+a,s.originalLength=o-s.originalStart,s.modifiedLength=f-s.modifiedStart)}}}return t}_findBetterContiguousSequence(t,n,r,i,s){if(n<s||i<s)return null;const a=t+n-s+1,l=r+i-s+1;let o=0,u=0,h=0;for(let f=t;f<a;f++)for(let m=r;m<l;m++){const d=this._contiguousSequenceScore(f,m,s);d>0&&d>o&&(o=d,u=f,h=m)}return o>0?[u,h]:null}_contiguousSequenceScore(t,n,r){let i=0;for(let s=0;s<r;s++){if(!this.ElementsAreEqual(t+s,n+s))return 0;i+=this._originalStringElements[t+s].length}return i}_OriginalIsBoundary(t){return t<=0||t>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,n){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(n>0){const r=t+n;if(this._OriginalIsBoundary(r-1)||this._OriginalIsBoundary(r))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,n){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(n>0){const r=t+n;if(this._ModifiedIsBoundary(r-1)||this._ModifiedIsBoundary(r))return!0}return!1}_boundaryScore(t,n,r,i){const s=this._OriginalRegionIsBoundary(t,n)?1:0,a=this._ModifiedRegionIsBoundary(r,i)?1:0;return s+a}ConcatenateChanges(t,n){const r=[];if(t.length===0||n.length===0)return n.length>0?n:t;if(this.ChangesOverlap(t[t.length-1],n[0],r)){const i=new Array(t.length+n.length-1);return yt.Copy(t,0,i,0,t.length-1),i[t.length-1]=r[0],yt.Copy(n,1,i,t.length,n.length-1),i}else{const i=new Array(t.length+n.length);return yt.Copy(t,0,i,0,t.length),yt.Copy(n,0,i,t.length,n.length),i}}ChangesOverlap(t,n,r){if(bt.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),bt.Assert(t.modifiedStart<=n.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=n.originalStart||t.modifiedStart+t.modifiedLength>=n.modifiedStart){const i=t.originalStart;let s=t.originalLength;const a=t.modifiedStart;let l=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(l=n.modifiedStart+n.modifiedLength-t.modifiedStart),r[0]=new Ye(i,s,a,l),!0}else return r[0]=null,!1}ClipDiagonalBound(t,n,r,i){if(t>=0&&t<i)return t;const s=r,a=i-r-1,l=n%2===0;if(t<0){const o=s%2===0;return l===o?0:1}else{const o=a%2===0;return l===o?i-1:i-2}}}let ee=class ft{constructor(t,n){this.lineNumber=t,this.column=n}with(t=this.lineNumber,n=this.column){return t===this.lineNumber&&n===this.column?this:new ft(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return ft.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return ft.isBefore(this,t)}static isBefore(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<n.column}isBeforeOrEqual(t){return ft.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,n){return t.lineNumber<n.lineNumber?!0:n.lineNumber<t.lineNumber?!1:t.column<=n.column}static compare(t,n){const r=t.lineNumber|0,i=n.lineNumber|0;if(r===i){const s=t.column|0,a=n.column|0;return s-a}return r-i}clone(){return new ft(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new ft(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}},z=class re{constructor(t,n,r,i){t>r||t===r&&n>i?(this.startLineNumber=r,this.startColumn=i,this.endLineNumber=t,this.endColumn=n):(this.startLineNumber=t,this.startColumn=n,this.endLineNumber=r,this.endColumn=i)}isEmpty(){return re.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return re.containsPosition(this,t)}static containsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<t.startColumn||n.lineNumber===t.endLineNumber&&n.column>t.endColumn)}static strictContainsPosition(t,n){return!(n.lineNumber<t.startLineNumber||n.lineNumber>t.endLineNumber||n.lineNumber===t.startLineNumber&&n.column<=t.startColumn||n.lineNumber===t.endLineNumber&&n.column>=t.endColumn)}containsRange(t){return re.containsRange(this,t)}static containsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>t.endColumn)}strictContainsRange(t){return re.strictContainsRange(this,t)}static strictContainsRange(t,n){return!(n.startLineNumber<t.startLineNumber||n.endLineNumber<t.startLineNumber||n.startLineNumber>t.endLineNumber||n.endLineNumber>t.endLineNumber||n.startLineNumber===t.startLineNumber&&n.startColumn<=t.startColumn||n.endLineNumber===t.endLineNumber&&n.endColumn>=t.endColumn)}plusRange(t){return re.plusRange(this,t)}static plusRange(t,n){let r,i,s,a;return n.startLineNumber<t.startLineNumber?(r=n.startLineNumber,i=n.startColumn):n.startLineNumber===t.startLineNumber?(r=n.startLineNumber,i=Math.min(n.startColumn,t.startColumn)):(r=t.startLineNumber,i=t.startColumn),n.endLineNumber>t.endLineNumber?(s=n.endLineNumber,a=n.endColumn):n.endLineNumber===t.endLineNumber?(s=n.endLineNumber,a=Math.max(n.endColumn,t.endColumn)):(s=t.endLineNumber,a=t.endColumn),new re(r,i,s,a)}intersectRanges(t){return re.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,s=t.endLineNumber,a=t.endColumn;const l=n.startLineNumber,o=n.startColumn,u=n.endLineNumber,h=n.endColumn;return r<l?(r=l,i=o):r===l&&(i=Math.max(i,o)),s>u?(s=u,a=h):s===u&&(a=Math.min(a,h)),r>s||r===s&&i>a?null:new re(r,i,s,a)}equalsRange(t){return re.equalsRange(this,t)}static equalsRange(t,n){return!t&&!n?!0:!!t&&!!n&&t.startLineNumber===n.startLineNumber&&t.startColumn===n.startColumn&&t.endLineNumber===n.endLineNumber&&t.endColumn===n.endColumn}getEndPosition(){return re.getEndPosition(this)}static getEndPosition(t){return new ee(t.endLineNumber,t.endColumn)}getStartPosition(){return re.getStartPosition(this)}static getStartPosition(t){return new ee(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new re(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new re(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return re.collapseToStart(this)}static collapseToStart(t){return new re(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return re.collapseToEnd(this)}static collapseToEnd(t){return new re(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new re(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new re(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new re(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<t.startColumn)}static areIntersecting(t,n){return!(t.endLineNumber<n.startLineNumber||t.endLineNumber===n.startLineNumber&&t.endColumn<=n.startColumn||n.endLineNumber<t.startLineNumber||n.endLineNumber===t.startLineNumber&&n.endColumn<=t.startColumn)}static compareRangesUsingStarts(t,n){if(t&&n){const s=t.startLineNumber|0,a=n.startLineNumber|0;if(s===a){const l=t.startColumn|0,o=n.startColumn|0;if(l===o){const u=t.endLineNumber|0,h=n.endLineNumber|0;if(u===h){const f=t.endColumn|0,m=n.endColumn|0;return f-m}return u-h}return l-o}return s-a}return(t?1:0)-(n?1:0)}static compareRangesUsingEnds(t,n){return t.endLineNumber===n.endLineNumber?t.endColumn===n.endColumn?t.startLineNumber===n.startLineNumber?t.startColumn-n.startColumn:t.startLineNumber-n.startLineNumber:t.endColumn-n.endColumn:t.endLineNumber-n.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}};function Ei(e){return e<0?0:e>255?255:e|0}function vt(e){return e<0?0:e>4294967295?4294967295:e|0}class lr{constructor(t){const n=Ei(t);this._defaultValue=n,this._asciiMap=lr._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const r=Ei(n);t>=0&&t<256?this._asciiMap[t]=r:this._map.set(t,r)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class tu{constructor(t,n,r){const i=new Uint8Array(t*n);for(let s=0,a=t*n;s<a;s++)i[s]=r;this._data=i,this.rows=t,this.cols=n}get(t,n){return this._data[t*this.cols+n]}set(t,n,r){this._data[t*this.cols+n]=r}}class nu{constructor(t){let n=0,r=0;for(let s=0,a=t.length;s<a;s++){const[l,o,u]=t[s];o>n&&(n=o),l>r&&(r=l),u>r&&(r=u)}n++,r++;const i=new tu(r,n,0);for(let s=0,a=t.length;s<a;s++){const[l,o,u]=t[s];i.set(l,o,u)}this._states=i,this._maxCharCode=n}nextState(t,n){return n<0||n>=this._maxCharCode?0:this._states.get(t,n)}}let ur=null;function ru(){return ur===null&&(ur=new nu([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),ur}let qt=null;function iu(){if(qt===null){qt=new lr(0);const e=` <>\'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;n<e.length;n++)qt.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)qt.set(t.charCodeAt(n),2)}return qt}class dn{static _createLink(t,n,r,i,s){let a=s-1;do{const l=n.charCodeAt(a);if(t.get(l)!==2)break;a--}while(a>i);if(i>0){const l=n.charCodeAt(i-1),o=n.charCodeAt(a);(l===40&&o===41||l===91&&o===93||l===123&&o===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:n.substring(i,a+1)}}static computeLinks(t,n=ru()){const r=iu(),i=[];for(let s=1,a=t.getLineCount();s<=a;s++){const l=t.getLineContent(s),o=l.length;let u=0,h=0,f=0,m=1,d=!1,g=!1,p=!1,y=!1;for(;u<o;){let w=!1;const _=l.charCodeAt(u);if(m===13){let v;switch(_){case 40:d=!0,v=0;break;case 41:v=d?0:1;break;case 91:p=!0,g=!0,v=0;break;case 93:p=!1,v=g?0:1;break;case 123:y=!0,v=0;break;case 125:v=y?0:1;break;case 39:case 34:case 96:f===_?v=1:f===39||f===34||f===96?v=0:v=1;break;case 42:v=f===42?1:0;break;case 124:v=f===124?1:0;break;case 32:v=p?0:1;break;default:v=r.get(_)}v===1&&(i.push(dn._createLink(r,l,s,h,u)),w=!0)}else if(m===12){let v;_===91?(g=!0,v=0):v=r.get(_),v===1?w=!0:m=13}else m=n.nextState(m,_),m===0&&(w=!0);w&&(m=1,d=!1,g=!1,y=!1,h=u+1,f=_),u++}m===13&&i.push(dn._createLink(r,l,s,h,o))}return i}}function su(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:dn.computeLinks(e)}const On=class On{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(t,n,r,i,s){if(t&&n){const a=this.doNavigateValueSet(n,s);if(a)return{range:t,value:a}}if(r&&i){const a=this.doNavigateValueSet(i,s);if(a)return{range:r,value:a}}return null}doNavigateValueSet(t,n){const r=this.numberReplace(t,n);return r!==null?r:this.textReplace(t,n)}numberReplace(t,n){const r=Math.pow(10,t.length-(t.lastIndexOf(".")+1));let i=Number(t);const s=parseFloat(t);return!isNaN(i)&&!isNaN(s)&&i===s?i===0&&!n?null:(i=Math.floor(i*r),i+=n?r:-r,String(i/r)):null}textReplace(t,n){return this.valueSetsReplace(this._defaultValueSet,t,n)}valueSetsReplace(t,n,r){let i=null;for(let s=0,a=t.length;i===null&&s<a;s++)i=this.valueSetReplace(t[s],n,r);return i}valueSetReplace(t,n,r){let i=t.indexOf(n);return i>=0?(i+=r?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null}};On.INSTANCE=new On;let cr=On;const Mi=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var gn;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof pn?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:un.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Mi})})(gn||(gn={}));class pn{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?Mi:(this._emitter||(this._emitter=new _e),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class au{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new pn),this._token}cancel(){this._token?this._token instanceof pn&&this._token.cancel():this._token=gn.Cancelled}dispose(t=!1){t&&this.cancel(),this._parentListener?.dispose(),this._token?this._token instanceof pn&&this._token.dispose():this._token=gn.None}}class fr{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,n){this._keyCodeToStr[t]=n,this._strToKeyCode[n.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}}const bn=new fr,hr=new fr,mr=new fr,ou=new Array(230),lu=Object.create(null),uu=Object.create(null);(function(){const t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN","",""],[1,1,"Hyper",0,"",0,"","",""],[1,2,"Super",0,"",0,"","",""],[1,3,"Fn",0,"",0,"","",""],[1,4,"FnLock",0,"",0,"","",""],[1,5,"Suspend",0,"",0,"","",""],[1,6,"Resume",0,"",0,"","",""],[1,7,"Turbo",0,"",0,"","",""],[1,8,"Sleep",0,"",0,"VK_SLEEP","",""],[1,9,"WakeUp",0,"",0,"","",""],[0,10,"KeyA",31,"A",65,"VK_A","",""],[0,11,"KeyB",32,"B",66,"VK_B","",""],[0,12,"KeyC",33,"C",67,"VK_C","",""],[0,13,"KeyD",34,"D",68,"VK_D","",""],[0,14,"KeyE",35,"E",69,"VK_E","",""],[0,15,"KeyF",36,"F",70,"VK_F","",""],[0,16,"KeyG",37,"G",71,"VK_G","",""],[0,17,"KeyH",38,"H",72,"VK_H","",""],[0,18,"KeyI",39,"I",73,"VK_I","",""],[0,19,"KeyJ",40,"J",74,"VK_J","",""],[0,20,"KeyK",41,"K",75,"VK_K","",""],[0,21,"KeyL",42,"L",76,"VK_L","",""],[0,22,"KeyM",43,"M",77,"VK_M","",""],[0,23,"KeyN",44,"N",78,"VK_N","",""],[0,24,"KeyO",45,"O",79,"VK_O","",""],[0,25,"KeyP",46,"P",80,"VK_P","",""],[0,26,"KeyQ",47,"Q",81,"VK_Q","",""],[0,27,"KeyR",48,"R",82,"VK_R","",""],[0,28,"KeyS",49,"S",83,"VK_S","",""],[0,29,"KeyT",50,"T",84,"VK_T","",""],[0,30,"KeyU",51,"U",85,"VK_U","",""],[0,31,"KeyV",52,"V",86,"VK_V","",""],[0,32,"KeyW",53,"W",87,"VK_W","",""],[0,33,"KeyX",54,"X",88,"VK_X","",""],[0,34,"KeyY",55,"Y",89,"VK_Y","",""],[0,35,"KeyZ",56,"Z",90,"VK_Z","",""],[0,36,"Digit1",22,"1",49,"VK_1","",""],[0,37,"Digit2",23,"2",50,"VK_2","",""],[0,38,"Digit3",24,"3",51,"VK_3","",""],[0,39,"Digit4",25,"4",52,"VK_4","",""],[0,40,"Digit5",26,"5",53,"VK_5","",""],[0,41,"Digit6",27,"6",54,"VK_6","",""],[0,42,"Digit7",28,"7",55,"VK_7","",""],[0,43,"Digit8",29,"8",56,"VK_8","",""],[0,44,"Digit9",30,"9",57,"VK_9","",""],[0,45,"Digit0",21,"0",48,"VK_0","",""],[1,46,"Enter",3,"Enter",13,"VK_RETURN","",""],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE","",""],[1,48,"Backspace",1,"Backspace",8,"VK_BACK","",""],[1,49,"Tab",2,"Tab",9,"VK_TAB","",""],[1,50,"Space",10,"Space",32,"VK_SPACE","",""],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\\\",220,"VK_OEM_5","\\\\","OEM_5"],[0,56,"IntlHash",0,"",0,"","",""],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"\'",222,"VK_OEM_7","\'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL","",""],[1,64,"F1",59,"F1",112,"VK_F1","",""],[1,65,"F2",60,"F2",113,"VK_F2","",""],[1,66,"F3",61,"F3",114,"VK_F3","",""],[1,67,"F4",62,"F4",115,"VK_F4","",""],[1,68,"F5",63,"F5",116,"VK_F5","",""],[1,69,"F6",64,"F6",117,"VK_F6","",""],[1,70,"F7",65,"F7",118,"VK_F7","",""],[1,71,"F8",66,"F8",119,"VK_F8","",""],[1,72,"F9",67,"F9",120,"VK_F9","",""],[1,73,"F10",68,"F10",121,"VK_F10","",""],[1,74,"F11",69,"F11",122,"VK_F11","",""],[1,75,"F12",70,"F12",123,"VK_F12","",""],[1,76,"PrintScreen",0,"",0,"","",""],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL","",""],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE","",""],[1,79,"Insert",19,"Insert",45,"VK_INSERT","",""],[1,80,"Home",14,"Home",36,"VK_HOME","",""],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR","",""],[1,82,"Delete",20,"Delete",46,"VK_DELETE","",""],[1,83,"End",13,"End",35,"VK_END","",""],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT","",""],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",""],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",""],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",""],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",""],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK","",""],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE","",""],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY","",""],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT","",""],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD","",""],[1,94,"NumpadEnter",3,"",0,"","",""],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1","",""],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2","",""],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3","",""],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4","",""],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5","",""],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6","",""],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7","",""],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8","",""],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9","",""],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0","",""],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL","",""],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102","",""],[1,107,"ContextMenu",58,"ContextMenu",93,"","",""],[1,108,"Power",0,"",0,"","",""],[1,109,"NumpadEqual",0,"",0,"","",""],[1,110,"F13",71,"F13",124,"VK_F13","",""],[1,111,"F14",72,"F14",125,"VK_F14","",""],[1,112,"F15",73,"F15",126,"VK_F15","",""],[1,113,"F16",74,"F16",127,"VK_F16","",""],[1,114,"F17",75,"F17",128,"VK_F17","",""],[1,115,"F18",76,"F18",129,"VK_F18","",""],[1,116,"F19",77,"F19",130,"VK_F19","",""],[1,117,"F20",78,"F20",131,"VK_F20","",""],[1,118,"F21",79,"F21",132,"VK_F21","",""],[1,119,"F22",80,"F22",133,"VK_F22","",""],[1,120,"F23",81,"F23",134,"VK_F23","",""],[1,121,"F24",82,"F24",135,"VK_F24","",""],[1,122,"Open",0,"",0,"","",""],[1,123,"Help",0,"",0,"","",""],[1,124,"Select",0,"",0,"","",""],[1,125,"Again",0,"",0,"","",""],[1,126,"Undo",0,"",0,"","",""],[1,127,"Cut",0,"",0,"","",""],[1,128,"Copy",0,"",0,"","",""],[1,129,"Paste",0,"",0,"","",""],[1,130,"Find",0,"",0,"","",""],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE","",""],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP","",""],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN","",""],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR","",""],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1","",""],[1,136,"KanaMode",0,"",0,"","",""],[0,137,"IntlYen",0,"",0,"","",""],[1,138,"Convert",0,"",0,"","",""],[1,139,"NonConvert",0,"",0,"","",""],[1,140,"Lang1",0,"",0,"","",""],[1,141,"Lang2",0,"",0,"","",""],[1,142,"Lang3",0,"",0,"","",""],[1,143,"Lang4",0,"",0,"","",""],[1,144,"Lang5",0,"",0,"","",""],[1,145,"Abort",0,"",0,"","",""],[1,146,"Props",0,"",0,"","",""],[1,147,"NumpadParenLeft",0,"",0,"","",""],[1,148,"NumpadParenRight",0,"",0,"","",""],[1,149,"NumpadBackspace",0,"",0,"","",""],[1,150,"NumpadMemoryStore",0,"",0,"","",""],[1,151,"NumpadMemoryRecall",0,"",0,"","",""],[1,152,"NumpadMemoryClear",0,"",0,"","",""],[1,153,"NumpadMemoryAdd",0,"",0,"","",""],[1,154,"NumpadMemorySubtract",0,"",0,"","",""],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR","",""],[1,156,"NumpadClearEntry",0,"",0,"","",""],[1,0,"",5,"Ctrl",17,"VK_CONTROL","",""],[1,0,"",4,"Shift",16,"VK_SHIFT","",""],[1,0,"",6,"Alt",18,"VK_MENU","",""],[1,0,"",57,"Meta",91,"VK_COMMAND","",""],[1,157,"ControlLeft",5,"",0,"VK_LCONTROL","",""],[1,158,"ShiftLeft",4,"",0,"VK_LSHIFT","",""],[1,159,"AltLeft",6,"",0,"VK_LMENU","",""],[1,160,"MetaLeft",57,"",0,"VK_LWIN","",""],[1,161,"ControlRight",5,"",0,"VK_RCONTROL","",""],[1,162,"ShiftRight",4,"",0,"VK_RSHIFT","",""],[1,163,"AltRight",6,"",0,"VK_RMENU","",""],[1,164,"MetaRight",57,"",0,"VK_RWIN","",""],[1,165,"BrightnessUp",0,"",0,"","",""],[1,166,"BrightnessDown",0,"",0,"","",""],[1,167,"MediaPlay",0,"",0,"","",""],[1,168,"MediaRecord",0,"",0,"","",""],[1,169,"MediaFastForward",0,"",0,"","",""],[1,170,"MediaRewind",0,"",0,"","",""],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK","",""],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK","",""],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP","",""],[1,174,"Eject",0,"",0,"","",""],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE","",""],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT","",""],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL","",""],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2","",""],[1,179,"LaunchApp1",0,"",0,"VK_MEDIA_LAUNCH_APP1","",""],[1,180,"SelectTask",0,"",0,"","",""],[1,181,"LaunchScreenSaver",0,"",0,"","",""],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH","",""],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME","",""],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK","",""],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD","",""],[1,186,"BrowserStop",0,"",0,"VK_BROWSER_STOP","",""],[1,187,"BrowserRefresh",0,"",0,"VK_BROWSER_REFRESH","",""],[1,188,"BrowserFavorites",0,"",0,"VK_BROWSER_FAVORITES","",""],[1,189,"ZoomToggle",0,"",0,"","",""],[1,190,"MailReply",0,"",0,"","",""],[1,191,"MailForward",0,"",0,"","",""],[1,192,"MailSend",0,"",0,"","",""],[1,0,"",114,"KeyInComposition",229,"","",""],[1,0,"",116,"ABNT_C2",194,"VK_ABNT_C2","",""],[1,0,"",96,"OEM_8",223,"VK_OEM_8","",""],[1,0,"",0,"",0,"VK_KANA","",""],[1,0,"",0,"",0,"VK_HANGUL","",""],[1,0,"",0,"",0,"VK_JUNJA","",""],[1,0,"",0,"",0,"VK_FINAL","",""],[1,0,"",0,"",0,"VK_HANJA","",""],[1,0,"",0,"",0,"VK_KANJI","",""],[1,0,"",0,"",0,"VK_CONVERT","",""],[1,0,"",0,"",0,"VK_NONCONVERT","",""],[1,0,"",0,"",0,"VK_ACCEPT","",""],[1,0,"",0,"",0,"VK_MODECHANGE","",""],[1,0,"",0,"",0,"VK_SELECT","",""],[1,0,"",0,"",0,"VK_PRINT","",""],[1,0,"",0,"",0,"VK_EXECUTE","",""],[1,0,"",0,"",0,"VK_SNAPSHOT","",""],[1,0,"",0,"",0,"VK_HELP","",""],[1,0,"",0,"",0,"VK_APPS","",""],[1,0,"",0,"",0,"VK_PROCESSKEY","",""],[1,0,"",0,"",0,"VK_PACKET","",""],[1,0,"",0,"",0,"VK_DBE_SBCSCHAR","",""],[1,0,"",0,"",0,"VK_DBE_DBCSCHAR","",""],[1,0,"",0,"",0,"VK_ATTN","",""],[1,0,"",0,"",0,"VK_CRSEL","",""],[1,0,"",0,"",0,"VK_EXSEL","",""],[1,0,"",0,"",0,"VK_EREOF","",""],[1,0,"",0,"",0,"VK_PLAY","",""],[1,0,"",0,"",0,"VK_ZOOM","",""],[1,0,"",0,"",0,"VK_NONAME","",""],[1,0,"",0,"",0,"VK_PA1","",""],[1,0,"",0,"",0,"VK_OEM_CLEAR","",""]],n=[],r=[];for(const i of t){const[s,a,l,o,u,h,f,m,d]=i;if(r[a]||(r[a]=!0,lu[l]=a,uu[l.toLowerCase()]=a),!n[o]){if(n[o]=!0,!u)throw new Error(`String representation missing for key code ${o} around scan code ${l}`);bn.define(o,u),hr.define(o,m||u),mr.define(o,d||m||u)}h&&(ou[h]=o)}})();var Ci;(function(e){function t(l){return bn.keyCodeToStr(l)}e.toString=t;function n(l){return bn.strToKeyCode(l)}e.fromString=n;function r(l){return hr.keyCodeToStr(l)}e.toUserSettingsUS=r;function i(l){return mr.keyCodeToStr(l)}e.toUserSettingsGeneral=i;function s(l){return hr.strToKeyCode(l)||mr.strToKeyCode(l)}e.fromUserSettings=s;function a(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return bn.keyCodeToStr(l)}e.toElectronAccelerator=a})(Ci||(Ci={}));function cu(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class ye extends z{constructor(t,n,r,i){super(t,n,r,i),this.selectionStartLineNumber=t,this.selectionStartColumn=n,this.positionLineNumber=r,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return ye.selectionsEqual(this,t)}static selectionsEqual(t,n){return t.selectionStartLineNumber===n.selectionStartLineNumber&&t.selectionStartColumn===n.selectionStartColumn&&t.positionLineNumber===n.positionLineNumber&&t.positionColumn===n.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,n){return this.getDirection()===0?new ye(this.startLineNumber,this.startColumn,t,n):new ye(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new ee(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new ee(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new ye(t,n,this.endLineNumber,this.endColumn):new ye(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new ye(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new ye(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new ye(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new ye(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,n){if(t&&!n||!t&&n)return!1;if(!t&&!n)return!0;if(t.length!==n.length)return!1;for(let r=0,i=t.length;r<i;r++)if(!this.selectionsEqual(t[r],n[r]))return!1;return!0}static isISelection(t){return t&&typeof t.selectionStartLineNumber=="number"&&typeof t.selectionStartColumn=="number"&&typeof t.positionLineNumber=="number"&&typeof t.positionColumn=="number"}static createWithDirection(t,n,r,i,s){return s===0?new ye(t,n,r,i):new ye(r,i,t,n)}}function fu(e){return typeof e=="string"}const Ti=Object.create(null);function c(e,t){if(fu(t)){const n=Ti[t];if(n===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return Ti[e]=t,{id:e}}const hu={add:c("add",6e4),plus:c("plus",6e4),gistNew:c("gist-new",6e4),repoCreate:c("repo-create",6e4),lightbulb:c("lightbulb",60001),lightBulb:c("light-bulb",60001),repo:c("repo",60002),repoDelete:c("repo-delete",60002),gistFork:c("gist-fork",60003),repoForked:c("repo-forked",60003),gitPullRequest:c("git-pull-request",60004),gitPullRequestAbandoned:c("git-pull-request-abandoned",60004),recordKeys:c("record-keys",60005),keyboard:c("keyboard",60005),tag:c("tag",60006),gitPullRequestLabel:c("git-pull-request-label",60006),tagAdd:c("tag-add",60006),tagRemove:c("tag-remove",60006),person:c("person",60007),personFollow:c("person-follow",60007),personOutline:c("person-outline",60007),personFilled:c("person-filled",60007),gitBranch:c("git-branch",60008),gitBranchCreate:c("git-branch-create",60008),gitBranchDelete:c("git-branch-delete",60008),sourceControl:c("source-control",60008),mirror:c("mirror",60009),mirrorPublic:c("mirror-public",60009),star:c("star",60010),starAdd:c("star-add",60010),starDelete:c("star-delete",60010),starEmpty:c("star-empty",60010),comment:c("comment",60011),commentAdd:c("comment-add",60011),alert:c("alert",60012),warning:c("warning",60012),search:c("search",60013),searchSave:c("search-save",60013),logOut:c("log-out",60014),signOut:c("sign-out",60014),logIn:c("log-in",60015),signIn:c("sign-in",60015),eye:c("eye",60016),eyeUnwatch:c("eye-unwatch",60016),eyeWatch:c("eye-watch",60016),circleFilled:c("circle-filled",60017),primitiveDot:c("primitive-dot",60017),closeDirty:c("close-dirty",60017),debugBreakpoint:c("debug-breakpoint",60017),debugBreakpointDisabled:c("debug-breakpoint-disabled",60017),debugHint:c("debug-hint",60017),terminalDecorationSuccess:c("terminal-decoration-success",60017),primitiveSquare:c("primitive-square",60018),edit:c("edit",60019),pencil:c("pencil",60019),info:c("info",60020),issueOpened:c("issue-opened",60020),gistPrivate:c("gist-private",60021),gitForkPrivate:c("git-fork-private",60021),lock:c("lock",60021),mirrorPrivate:c("mirror-private",60021),close:c("close",60022),removeClose:c("remove-close",60022),x:c("x",60022),repoSync:c("repo-sync",60023),sync:c("sync",60023),clone:c("clone",60024),desktopDownload:c("desktop-download",60024),beaker:c("beaker",60025),microscope:c("microscope",60025),vm:c("vm",60026),deviceDesktop:c("device-desktop",60026),file:c("file",60027),fileText:c("file-text",60027),more:c("more",60028),ellipsis:c("ellipsis",60028),kebabHorizontal:c("kebab-horizontal",60028),mailReply:c("mail-reply",60029),reply:c("reply",60029),organization:c("organization",60030),organizationFilled:c("organization-filled",60030),organizationOutline:c("organization-outline",60030),newFile:c("new-file",60031),fileAdd:c("file-add",60031),newFolder:c("new-folder",60032),fileDirectoryCreate:c("file-directory-create",60032),trash:c("trash",60033),trashcan:c("trashcan",60033),history:c("history",60034),clock:c("clock",60034),folder:c("folder",60035),fileDirectory:c("file-directory",60035),symbolFolder:c("symbol-folder",60035),logoGithub:c("logo-github",60036),markGithub:c("mark-github",60036),github:c("github",60036),terminal:c("terminal",60037),console:c("console",60037),repl:c("repl",60037),zap:c("zap",60038),symbolEvent:c("symbol-event",60038),error:c("error",60039),stop:c("stop",60039),variable:c("variable",60040),symbolVariable:c("symbol-variable",60040),array:c("array",60042),symbolArray:c("symbol-array",60042),symbolModule:c("symbol-module",60043),symbolPackage:c("symbol-package",60043),symbolNamespace:c("symbol-namespace",60043),symbolObject:c("symbol-object",60043),symbolMethod:c("symbol-method",60044),symbolFunction:c("symbol-function",60044),symbolConstructor:c("symbol-constructor",60044),symbolBoolean:c("symbol-boolean",60047),symbolNull:c("symbol-null",60047),symbolNumeric:c("symbol-numeric",60048),symbolNumber:c("symbol-number",60048),symbolStructure:c("symbol-structure",60049),symbolStruct:c("symbol-struct",60049),symbolParameter:c("symbol-parameter",60050),symbolTypeParameter:c("symbol-type-parameter",60050),symbolKey:c("symbol-key",60051),symbolText:c("symbol-text",60051),symbolReference:c("symbol-reference",60052),goToFile:c("go-to-file",60052),symbolEnum:c("symbol-enum",60053),symbolValue:c("symbol-value",60053),symbolRuler:c("symbol-ruler",60054),symbolUnit:c("symbol-unit",60054),activateBreakpoints:c("activate-breakpoints",60055),archive:c("archive",60056),arrowBoth:c("arrow-both",60057),arrowDown:c("arrow-down",60058),arrowLeft:c("arrow-left",60059),arrowRight:c("arrow-right",60060),arrowSmallDown:c("arrow-small-down",60061),arrowSmallLeft:c("arrow-small-left",60062),arrowSmallRight:c("arrow-small-right",60063),arrowSmallUp:c("arrow-small-up",60064),arrowUp:c("arrow-up",60065),bell:c("bell",60066),bold:c("bold",60067),book:c("book",60068),bookmark:c("bookmark",60069),debugBreakpointConditionalUnverified:c("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:c("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:c("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:c("debug-breakpoint-data-unverified",60072),debugBreakpointData:c("debug-breakpoint-data",60073),debugBreakpointDataDisabled:c("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:c("debug-breakpoint-log-unverified",60074),debugBreakpointLog:c("debug-breakpoint-log",60075),debugBreakpointLogDisabled:c("debug-breakpoint-log-disabled",60075),briefcase:c("briefcase",60076),broadcast:c("broadcast",60077),browser:c("browser",60078),bug:c("bug",60079),calendar:c("calendar",60080),caseSensitive:c("case-sensitive",60081),check:c("check",60082),checklist:c("checklist",60083),chevronDown:c("chevron-down",60084),chevronLeft:c("chevron-left",60085),chevronRight:c("chevron-right",60086),chevronUp:c("chevron-up",60087),chromeClose:c("chrome-close",60088),chromeMaximize:c("chrome-maximize",60089),chromeMinimize:c("chrome-minimize",60090),chromeRestore:c("chrome-restore",60091),circleOutline:c("circle-outline",60092),circle:c("circle",60092),debugBreakpointUnverified:c("debug-breakpoint-unverified",60092),terminalDecorationIncomplete:c("terminal-decoration-incomplete",60092),circleSlash:c("circle-slash",60093),circuitBoard:c("circuit-board",60094),clearAll:c("clear-all",60095),clippy:c("clippy",60096),closeAll:c("close-all",60097),cloudDownload:c("cloud-download",60098),cloudUpload:c("cloud-upload",60099),code:c("code",60100),collapseAll:c("collapse-all",60101),colorMode:c("color-mode",60102),commentDiscussion:c("comment-discussion",60103),creditCard:c("credit-card",60105),dash:c("dash",60108),dashboard:c("dashboard",60109),database:c("database",60110),debugContinue:c("debug-continue",60111),debugDisconnect:c("debug-disconnect",60112),debugPause:c("debug-pause",60113),debugRestart:c("debug-restart",60114),debugStart:c("debug-start",60115),debugStepInto:c("debug-step-into",60116),debugStepOut:c("debug-step-out",60117),debugStepOver:c("debug-step-over",60118),debugStop:c("debug-stop",60119),debug:c("debug",60120),deviceCameraVideo:c("device-camera-video",60121),deviceCamera:c("device-camera",60122),deviceMobile:c("device-mobile",60123),diffAdded:c("diff-added",60124),diffIgnored:c("diff-ignored",60125),diffModified:c("diff-modified",60126),diffRemoved:c("diff-removed",60127),diffRenamed:c("diff-renamed",60128),diff:c("diff",60129),diffSidebyside:c("diff-sidebyside",60129),discard:c("discard",60130),editorLayout:c("editor-layout",60131),emptyWindow:c("empty-window",60132),exclude:c("exclude",60133),extensions:c("extensions",60134),eyeClosed:c("eye-closed",60135),fileBinary:c("file-binary",60136),fileCode:c("file-code",60137),fileMedia:c("file-media",60138),filePdf:c("file-pdf",60139),fileSubmodule:c("file-submodule",60140),fileSymlinkDirectory:c("file-symlink-directory",60141),fileSymlinkFile:c("file-symlink-file",60142),fileZip:c("file-zip",60143),files:c("files",60144),filter:c("filter",60145),flame:c("flame",60146),foldDown:c("fold-down",60147),foldUp:c("fold-up",60148),fold:c("fold",60149),folderActive:c("folder-active",60150),folderOpened:c("folder-opened",60151),gear:c("gear",60152),gift:c("gift",60153),gistSecret:c("gist-secret",60154),gist:c("gist",60155),gitCommit:c("git-commit",60156),gitCompare:c("git-compare",60157),compareChanges:c("compare-changes",60157),gitMerge:c("git-merge",60158),githubAction:c("github-action",60159),githubAlt:c("github-alt",60160),globe:c("globe",60161),grabber:c("grabber",60162),graph:c("graph",60163),gripper:c("gripper",60164),heart:c("heart",60165),home:c("home",60166),horizontalRule:c("horizontal-rule",60167),hubot:c("hubot",60168),inbox:c("inbox",60169),issueReopened:c("issue-reopened",60171),issues:c("issues",60172),italic:c("italic",60173),jersey:c("jersey",60174),json:c("json",60175),kebabVertical:c("kebab-vertical",60176),key:c("key",60177),law:c("law",60178),lightbulbAutofix:c("lightbulb-autofix",60179),linkExternal:c("link-external",60180),link:c("link",60181),listOrdered:c("list-ordered",60182),listUnordered:c("list-unordered",60183),liveShare:c("live-share",60184),loading:c("loading",60185),location:c("location",60186),mailRead:c("mail-read",60187),mail:c("mail",60188),markdown:c("markdown",60189),megaphone:c("megaphone",60190),mention:c("mention",60191),milestone:c("milestone",60192),gitPullRequestMilestone:c("git-pull-request-milestone",60192),mortarBoard:c("mortar-board",60193),move:c("move",60194),multipleWindows:c("multiple-windows",60195),mute:c("mute",60196),noNewline:c("no-newline",60197),note:c("note",60198),octoface:c("octoface",60199),openPreview:c("open-preview",60200),package:c("package",60201),paintcan:c("paintcan",60202),pin:c("pin",60203),play:c("play",60204),run:c("run",60204),plug:c("plug",60205),preserveCase:c("preserve-case",60206),preview:c("preview",60207),project:c("project",60208),pulse:c("pulse",60209),question:c("question",60210),quote:c("quote",60211),radioTower:c("radio-tower",60212),reactions:c("reactions",60213),references:c("references",60214),refresh:c("refresh",60215),regex:c("regex",60216),remoteExplorer:c("remote-explorer",60217),remote:c("remote",60218),remove:c("remove",60219),replaceAll:c("replace-all",60220),replace:c("replace",60221),repoClone:c("repo-clone",60222),repoForcePush:c("repo-force-push",60223),repoPull:c("repo-pull",60224),repoPush:c("repo-push",60225),report:c("report",60226),requestChanges:c("request-changes",60227),rocket:c("rocket",60228),rootFolderOpened:c("root-folder-opened",60229),rootFolder:c("root-folder",60230),rss:c("rss",60231),ruby:c("ruby",60232),saveAll:c("save-all",60233),saveAs:c("save-as",60234),save:c("save",60235),screenFull:c("screen-full",60236),screenNormal:c("screen-normal",60237),searchStop:c("search-stop",60238),server:c("server",60240),settingsGear:c("settings-gear",60241),settings:c("settings",60242),shield:c("shield",60243),smiley:c("smiley",60244),sortPrecedence:c("sort-precedence",60245),splitHorizontal:c("split-horizontal",60246),splitVertical:c("split-vertical",60247),squirrel:c("squirrel",60248),starFull:c("star-full",60249),starHalf:c("star-half",60250),symbolClass:c("symbol-class",60251),symbolColor:c("symbol-color",60252),symbolConstant:c("symbol-constant",60253),symbolEnumMember:c("symbol-enum-member",60254),symbolField:c("symbol-field",60255),symbolFile:c("symbol-file",60256),symbolInterface:c("symbol-interface",60257),symbolKeyword:c("symbol-keyword",60258),symbolMisc:c("symbol-misc",60259),symbolOperator:c("symbol-operator",60260),symbolProperty:c("symbol-property",60261),wrench:c("wrench",60261),wrenchSubaction:c("wrench-subaction",60261),symbolSnippet:c("symbol-snippet",60262),tasklist:c("tasklist",60263),telescope:c("telescope",60264),textSize:c("text-size",60265),threeBars:c("three-bars",60266),thumbsdown:c("thumbsdown",60267),thumbsup:c("thumbsup",60268),tools:c("tools",60269),triangleDown:c("triangle-down",60270),triangleLeft:c("triangle-left",60271),triangleRight:c("triangle-right",60272),triangleUp:c("triangle-up",60273),twitter:c("twitter",60274),unfold:c("unfold",60275),unlock:c("unlock",60276),unmute:c("unmute",60277),unverified:c("unverified",60278),verified:c("verified",60279),versions:c("versions",60280),vmActive:c("vm-active",60281),vmOutline:c("vm-outline",60282),vmRunning:c("vm-running",60283),watch:c("watch",60284),whitespace:c("whitespace",60285),wholeWord:c("whole-word",60286),window:c("window",60287),wordWrap:c("word-wrap",60288),zoomIn:c("zoom-in",60289),zoomOut:c("zoom-out",60290),listFilter:c("list-filter",60291),listFlat:c("list-flat",60292),listSelection:c("list-selection",60293),selection:c("selection",60293),listTree:c("list-tree",60294),debugBreakpointFunctionUnverified:c("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:c("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:c("debug-breakpoint-function-disabled",60296),debugStackframeActive:c("debug-stackframe-active",60297),circleSmallFilled:c("circle-small-filled",60298),debugStackframeDot:c("debug-stackframe-dot",60298),terminalDecorationMark:c("terminal-decoration-mark",60298),debugStackframe:c("debug-stackframe",60299),debugStackframeFocused:c("debug-stackframe-focused",60299),debugBreakpointUnsupported:c("debug-breakpoint-unsupported",60300),symbolString:c("symbol-string",60301),debugReverseContinue:c("debug-reverse-continue",60302),debugStepBack:c("debug-step-back",60303),debugRestartFrame:c("debug-restart-frame",60304),debugAlt:c("debug-alt",60305),callIncoming:c("call-incoming",60306),callOutgoing:c("call-outgoing",60307),menu:c("menu",60308),expandAll:c("expand-all",60309),feedback:c("feedback",60310),gitPullRequestReviewer:c("git-pull-request-reviewer",60310),groupByRefType:c("group-by-ref-type",60311),ungroupByRefType:c("ungroup-by-ref-type",60312),account:c("account",60313),gitPullRequestAssignee:c("git-pull-request-assignee",60313),bellDot:c("bell-dot",60314),debugConsole:c("debug-console",60315),library:c("library",60316),output:c("output",60317),runAll:c("run-all",60318),syncIgnored:c("sync-ignored",60319),pinned:c("pinned",60320),githubInverted:c("github-inverted",60321),serverProcess:c("server-process",60322),serverEnvironment:c("server-environment",60323),pass:c("pass",60324),issueClosed:c("issue-closed",60324),stopCircle:c("stop-circle",60325),playCircle:c("play-circle",60326),record:c("record",60327),debugAltSmall:c("debug-alt-small",60328),vmConnect:c("vm-connect",60329),cloud:c("cloud",60330),merge:c("merge",60331),export:c("export",60332),graphLeft:c("graph-left",60333),magnet:c("magnet",60334),notebook:c("notebook",60335),redo:c("redo",60336),checkAll:c("check-all",60337),pinnedDirty:c("pinned-dirty",60338),passFilled:c("pass-filled",60339),circleLargeFilled:c("circle-large-filled",60340),circleLarge:c("circle-large",60341),circleLargeOutline:c("circle-large-outline",60341),combine:c("combine",60342),gather:c("gather",60342),table:c("table",60343),variableGroup:c("variable-group",60344),typeHierarchy:c("type-hierarchy",60345),typeHierarchySub:c("type-hierarchy-sub",60346),typeHierarchySuper:c("type-hierarchy-super",60347),gitPullRequestCreate:c("git-pull-request-create",60348),runAbove:c("run-above",60349),runBelow:c("run-below",60350),notebookTemplate:c("notebook-template",60351),debugRerun:c("debug-rerun",60352),workspaceTrusted:c("workspace-trusted",60353),workspaceUntrusted:c("workspace-untrusted",60354),workspaceUnknown:c("workspace-unknown",60355),terminalCmd:c("terminal-cmd",60356),terminalDebian:c("terminal-debian",60357),terminalLinux:c("terminal-linux",60358),terminalPowershell:c("terminal-powershell",60359),terminalTmux:c("terminal-tmux",60360),terminalUbuntu:c("terminal-ubuntu",60361),terminalBash:c("terminal-bash",60362),arrowSwap:c("arrow-swap",60363),copy:c("copy",60364),personAdd:c("person-add",60365),filterFilled:c("filter-filled",60366),wand:c("wand",60367),debugLineByLine:c("debug-line-by-line",60368),inspect:c("inspect",60369),layers:c("layers",60370),layersDot:c("layers-dot",60371),layersActive:c("layers-active",60372),compass:c("compass",60373),compassDot:c("compass-dot",60374),compassActive:c("compass-active",60375),azure:c("azure",60376),issueDraft:c("issue-draft",60377),gitPullRequestClosed:c("git-pull-request-closed",60378),gitPullRequestDraft:c("git-pull-request-draft",60379),debugAll:c("debug-all",60380),debugCoverage:c("debug-coverage",60381),runErrors:c("run-errors",60382),folderLibrary:c("folder-library",60383),debugContinueSmall:c("debug-continue-small",60384),beakerStop:c("beaker-stop",60385),graphLine:c("graph-line",60386),graphScatter:c("graph-scatter",60387),pieChart:c("pie-chart",60388),bracket:c("bracket",60175),bracketDot:c("bracket-dot",60389),bracketError:c("bracket-error",60390),lockSmall:c("lock-small",60391),azureDevops:c("azure-devops",60392),verifiedFilled:c("verified-filled",60393),newline:c("newline",60394),layout:c("layout",60395),layoutActivitybarLeft:c("layout-activitybar-left",60396),layoutActivitybarRight:c("layout-activitybar-right",60397),layoutPanelLeft:c("layout-panel-left",60398),layoutPanelCenter:c("layout-panel-center",60399),layoutPanelJustify:c("layout-panel-justify",60400),layoutPanelRight:c("layout-panel-right",60401),layoutPanel:c("layout-panel",60402),layoutSidebarLeft:c("layout-sidebar-left",60403),layoutSidebarRight:c("layout-sidebar-right",60404),layoutStatusbar:c("layout-statusbar",60405),layoutMenubar:c("layout-menubar",60406),layoutCentered:c("layout-centered",60407),target:c("target",60408),indent:c("indent",60409),recordSmall:c("record-small",60410),errorSmall:c("error-small",60411),terminalDecorationError:c("terminal-decoration-error",60411),arrowCircleDown:c("arrow-circle-down",60412),arrowCircleLeft:c("arrow-circle-left",60413),arrowCircleRight:c("arrow-circle-right",60414),arrowCircleUp:c("arrow-circle-up",60415),layoutSidebarRightOff:c("layout-sidebar-right-off",60416),layoutPanelOff:c("layout-panel-off",60417),layoutSidebarLeftOff:c("layout-sidebar-left-off",60418),blank:c("blank",60419),heartFilled:c("heart-filled",60420),map:c("map",60421),mapHorizontal:c("map-horizontal",60421),foldHorizontal:c("fold-horizontal",60421),mapFilled:c("map-filled",60422),mapHorizontalFilled:c("map-horizontal-filled",60422),foldHorizontalFilled:c("fold-horizontal-filled",60422),circleSmall:c("circle-small",60423),bellSlash:c("bell-slash",60424),bellSlashDot:c("bell-slash-dot",60425),commentUnresolved:c("comment-unresolved",60426),gitPullRequestGoToChanges:c("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:c("git-pull-request-new-changes",60428),searchFuzzy:c("search-fuzzy",60429),commentDraft:c("comment-draft",60430),send:c("send",60431),sparkle:c("sparkle",60432),insert:c("insert",60433),mic:c("mic",60434),thumbsdownFilled:c("thumbsdown-filled",60435),thumbsupFilled:c("thumbsup-filled",60436),coffee:c("coffee",60437),snake:c("snake",60438),game:c("game",60439),vr:c("vr",60440),chip:c("chip",60441),piano:c("piano",60442),music:c("music",60443),micFilled:c("mic-filled",60444),repoFetch:c("repo-fetch",60445),copilot:c("copilot",60446),lightbulbSparkle:c("lightbulb-sparkle",60447),robot:c("robot",60448),sparkleFilled:c("sparkle-filled",60449),diffSingle:c("diff-single",60450),diffMultiple:c("diff-multiple",60451),surroundWith:c("surround-with",60452),share:c("share",60453),gitStash:c("git-stash",60454),gitStashApply:c("git-stash-apply",60455),gitStashPop:c("git-stash-pop",60456),vscode:c("vscode",60457),vscodeInsiders:c("vscode-insiders",60458),codeOss:c("code-oss",60459),runCoverage:c("run-coverage",60460),runAllCoverage:c("run-all-coverage",60461),coverage:c("coverage",60462),githubProject:c("github-project",60463),mapVertical:c("map-vertical",60464),foldVertical:c("fold-vertical",60464),mapVerticalFilled:c("map-vertical-filled",60465),foldVerticalFilled:c("fold-vertical-filled",60465),goToSearch:c("go-to-search",60466),percentage:c("percentage",60467),sortPercentage:c("sort-percentage",60467),attach:c("attach",60468)},mu={dialogError:c("dialog-error","error"),dialogWarning:c("dialog-warning","warning"),dialogInfo:c("dialog-info","info"),dialogClose:c("dialog-close","close"),treeItemExpanded:c("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:c("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:c("tree-filter-on-type-off","list-selection"),treeFilterClear:c("tree-filter-clear","close"),treeItemLoading:c("tree-item-loading","loading"),menuSelection:c("menu-selection","check"),menuSubmenu:c("menu-submenu","chevron-right"),menuBarMore:c("menubar-more","more"),scrollbarButtonLeft:c("scrollbar-button-left","triangle-left"),scrollbarButtonRight:c("scrollbar-button-right","triangle-right"),scrollbarButtonUp:c("scrollbar-button-up","triangle-up"),scrollbarButtonDown:c("scrollbar-button-down","triangle-down"),toolBarMore:c("toolbar-more","more"),quickInputBack:c("quick-input-back","arrow-left"),dropDownButton:c("drop-down-button",60084),symbolCustomColor:c("symbol-customcolor",60252),exportIcon:c("export",60332),workspaceUnspecified:c("workspace-unspecified",60355),newLine:c("newline",60394),thumbsDownFilled:c("thumbsdown-filled",60435),thumbsUpFilled:c("thumbsup-filled",60436),gitFetch:c("git-fetch",60445),lightbulbSparkleAutofix:c("lightbulb-sparkle-autofix",60447),debugBreakpointPending:c("debug-breakpoint-pending",60377)},V={...hu,...mu};class Pi{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new _e,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(t){this._onDidChange.fire({changedLanguages:t,changedColorMap:!1})}register(t,n){return this._tokenizationSupports.set(t,n),this.handleChange([t]),on(()=>{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){this._factories.get(t)?.dispose();const r=new du(this,t,n);return this._factories.set(t,r),on(()=>{const i=this._factories.get(t);!i||i!==r||(this._factories.delete(t),i.dispose())})}async getOrCreate(t){const n=this.get(t);if(n)return n;const r=this._factories.get(t);return!r||r.isResolved?null:(await r.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;const r=this._factories.get(t);return!!(!r||r.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}}class du extends mt{get isResolved(){return this._isResolved}constructor(t,n,r){super(),this._registry=t,this._languageId=n,this._factory=r,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){const t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}}class gu{constructor(t,n,r){this.offset=t,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Ii;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(Ii||(Ii={}));var Fi;(function(e){const t=new Map;t.set(0,V.symbolMethod),t.set(1,V.symbolFunction),t.set(2,V.symbolConstructor),t.set(3,V.symbolField),t.set(4,V.symbolVariable),t.set(5,V.symbolClass),t.set(6,V.symbolStruct),t.set(7,V.symbolInterface),t.set(8,V.symbolModule),t.set(9,V.symbolProperty),t.set(10,V.symbolEvent),t.set(11,V.symbolOperator),t.set(12,V.symbolUnit),t.set(13,V.symbolValue),t.set(15,V.symbolEnum),t.set(14,V.symbolConstant),t.set(15,V.symbolEnum),t.set(16,V.symbolEnumMember),t.set(17,V.symbolKeyword),t.set(27,V.symbolSnippet),t.set(18,V.symbolText),t.set(19,V.symbolColor),t.set(20,V.symbolFile),t.set(21,V.symbolReference),t.set(22,V.symbolCustomColor),t.set(23,V.symbolFolder),t.set(24,V.symbolTypeParameter),t.set(25,V.account),t.set(26,V.issues);function n(s){let a=t.get(s);return a||(console.info("No codicon found for CompletionItemKind "+s),a=V.symbolProperty),a}e.toIcon=n;const r=new Map;r.set("method",0),r.set("function",1),r.set("constructor",2),r.set("field",3),r.set("variable",4),r.set("class",5),r.set("struct",6),r.set("interface",7),r.set("module",8),r.set("property",9),r.set("event",10),r.set("operator",11),r.set("unit",12),r.set("value",13),r.set("constant",14),r.set("enum",15),r.set("enum-member",16),r.set("enumMember",16),r.set("keyword",17),r.set("snippet",27),r.set("text",18),r.set("color",19),r.set("file",20),r.set("reference",21),r.set("customcolor",22),r.set("folder",23),r.set("type-parameter",24),r.set("typeParameter",24),r.set("account",25),r.set("issue",26);function i(s,a){let l=r.get(s);return typeof l>"u"&&!a&&(l=9),l}e.fromString=i})(Fi||(Fi={}));var Vi;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Vi||(Vi={}));var Di;(function(e){e[e.Automatic=0]="Automatic",e[e.PasteAs=1]="PasteAs"})(Di||(Di={}));var Oi;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Oi||(Oi={}));var $i;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})($i||($i={})),X("Array","array"),X("Boolean","boolean"),X("Class","class"),X("Constant","constant"),X("Constructor","constructor"),X("Enum","enumeration"),X("EnumMember","enumeration member"),X("Event","event"),X("Field","field"),X("File","file"),X("Function","function"),X("Interface","interface"),X("Key","key"),X("Method","method"),X("Module","module"),X("Namespace","namespace"),X("Null","null"),X("Number","number"),X("Object","object"),X("Operator","operator"),X("Package","package"),X("Property","property"),X("String","string"),X("Struct","struct"),X("TypeParameter","type parameter"),X("Variable","variable");var Bi;(function(e){const t=new Map;t.set(0,V.symbolFile),t.set(1,V.symbolModule),t.set(2,V.symbolNamespace),t.set(3,V.symbolPackage),t.set(4,V.symbolClass),t.set(5,V.symbolMethod),t.set(6,V.symbolProperty),t.set(7,V.symbolField),t.set(8,V.symbolConstructor),t.set(9,V.symbolEnum),t.set(10,V.symbolInterface),t.set(11,V.symbolFunction),t.set(12,V.symbolVariable),t.set(13,V.symbolConstant),t.set(14,V.symbolString),t.set(15,V.symbolNumber),t.set(16,V.symbolBoolean),t.set(17,V.symbolArray),t.set(18,V.symbolObject),t.set(19,V.symbolKey),t.set(20,V.symbolNull),t.set(21,V.symbolEnumMember),t.set(22,V.symbolStruct),t.set(23,V.symbolEvent),t.set(24,V.symbolOperator),t.set(25,V.symbolTypeParameter);function n(r){let i=t.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=V.symbolProperty),i}e.toIcon=n})(Bi||(Bi={}));let W1=(me=class{static fromValue(t){switch(t){case"comment":return me.Comment;case"imports":return me.Imports;case"region":return me.Region}return new me(t)}constructor(t){this.value=t}},me.Comment=new me("comment"),me.Imports=new me("imports"),me.Region=new me("region"),me);var Ui;(function(e){e[e.AIGenerated=1]="AIGenerated"})(Ui||(Ui={}));var qi;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(qi||(qi={}));var ji;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(ji||(ji={}));var Wi;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Wi||(Wi={})),new Pi,new Pi;var Hi;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(Hi||(Hi={}));var zi;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(zi||(zi={}));var Gi;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Gi||(Gi={}));var Ji;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(Ji||(Ji={}));var Xi;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(Xi||(Xi={}));var Qi;(function(e){e[e.Deprecated=1]="Deprecated"})(Qi||(Qi={}));var Yi;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Yi||(Yi={}));var Zi;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Zi||(Zi={}));var Ki;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(Ki||(Ki={}));var es;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(es||(es={}));var ts;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(ts||(ts={}));var ns;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(ns||(ns={}));var rs;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.inlineEdit=63]="inlineEdit",e[e.letterSpacing=64]="letterSpacing",e[e.lightbulb=65]="lightbulb",e[e.lineDecorationsWidth=66]="lineDecorationsWidth",e[e.lineHeight=67]="lineHeight",e[e.lineNumbers=68]="lineNumbers",e[e.lineNumbersMinChars=69]="lineNumbersMinChars",e[e.linkedEditing=70]="linkedEditing",e[e.links=71]="links",e[e.matchBrackets=72]="matchBrackets",e[e.minimap=73]="minimap",e[e.mouseStyle=74]="mouseStyle",e[e.mouseWheelScrollSensitivity=75]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=76]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=77]="multiCursorMergeOverlapping",e[e.multiCursorModifier=78]="multiCursorModifier",e[e.multiCursorPaste=79]="multiCursorPaste",e[e.multiCursorLimit=80]="multiCursorLimit",e[e.occurrencesHighlight=81]="occurrencesHighlight",e[e.overviewRulerBorder=82]="overviewRulerBorder",e[e.overviewRulerLanes=83]="overviewRulerLanes",e[e.padding=84]="padding",e[e.pasteAs=85]="pasteAs",e[e.parameterHints=86]="parameterHints",e[e.peekWidgetDefaultFocus=87]="peekWidgetDefaultFocus",e[e.placeholder=88]="placeholder",e[e.definitionLinkOpensInPeek=89]="definitionLinkOpensInPeek",e[e.quickSuggestions=90]="quickSuggestions",e[e.quickSuggestionsDelay=91]="quickSuggestionsDelay",e[e.readOnly=92]="readOnly",e[e.readOnlyMessage=93]="readOnlyMessage",e[e.renameOnType=94]="renameOnType",e[e.renderControlCharacters=95]="renderControlCharacters",e[e.renderFinalNewline=96]="renderFinalNewline",e[e.renderLineHighlight=97]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=98]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=99]="renderValidationDecorations",e[e.renderWhitespace=100]="renderWhitespace",e[e.revealHorizontalRightPadding=101]="revealHorizontalRightPadding",e[e.roundedSelection=102]="roundedSelection",e[e.rulers=103]="rulers",e[e.scrollbar=104]="scrollbar",e[e.scrollBeyondLastColumn=105]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=106]="scrollBeyondLastLine",e[e.scrollPredominantAxis=107]="scrollPredominantAxis",e[e.selectionClipboard=108]="selectionClipboard",e[e.selectionHighlight=109]="selectionHighlight",e[e.selectOnLineNumbers=110]="selectOnLineNumbers",e[e.showFoldingControls=111]="showFoldingControls",e[e.showUnused=112]="showUnused",e[e.snippetSuggestions=113]="snippetSuggestions",e[e.smartSelect=114]="smartSelect",e[e.smoothScrolling=115]="smoothScrolling",e[e.stickyScroll=116]="stickyScroll",e[e.stickyTabStops=117]="stickyTabStops",e[e.stopRenderingLineAfter=118]="stopRenderingLineAfter",e[e.suggest=119]="suggest",e[e.suggestFontSize=120]="suggestFontSize",e[e.suggestLineHeight=121]="suggestLineHeight",e[e.suggestOnTriggerCharacters=122]="suggestOnTriggerCharacters",e[e.suggestSelection=123]="suggestSelection",e[e.tabCompletion=124]="tabCompletion",e[e.tabIndex=125]="tabIndex",e[e.unicodeHighlighting=126]="unicodeHighlighting",e[e.unusualLineTerminators=127]="unusualLineTerminators",e[e.useShadowDOM=128]="useShadowDOM",e[e.useTabStops=129]="useTabStops",e[e.wordBreak=130]="wordBreak",e[e.wordSegmenterLocales=131]="wordSegmenterLocales",e[e.wordSeparators=132]="wordSeparators",e[e.wordWrap=133]="wordWrap",e[e.wordWrapBreakAfterCharacters=134]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=135]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=136]="wordWrapColumn",e[e.wordWrapOverride1=137]="wordWrapOverride1",e[e.wordWrapOverride2=138]="wordWrapOverride2",e[e.wrappingIndent=139]="wrappingIndent",e[e.wrappingStrategy=140]="wrappingStrategy",e[e.showDeprecated=141]="showDeprecated",e[e.inlayHints=142]="inlayHints",e[e.editorClassName=143]="editorClassName",e[e.pixelRatio=144]="pixelRatio",e[e.tabFocusMode=145]="tabFocusMode",e[e.layoutInfo=146]="layoutInfo",e[e.wrappingInfo=147]="wrappingInfo",e[e.defaultColorDecorators=148]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=149]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=150]="inlineCompletionsAccessibilityVerbose"})(rs||(rs={}));var is;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(is||(is={}));var ss;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(ss||(ss={}));var as;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(as||(as={}));var os;(function(e){e[e.Increase=0]="Increase",e[e.Decrease=1]="Decrease"})(os||(os={}));var ls;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(ls||(ls={}));var us;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(us||(us={}));var cs;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(cs||(cs={}));var fs;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(fs||(fs={}));var hs;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(hs||(hs={}));var dr;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(dr||(dr={}));var gr;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(gr||(gr={}));var pr;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(pr||(pr={}));var ms;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(ms||(ms={}));var ds;(function(e){e[e.Normal=1]="Normal",e[e.Underlined=2]="Underlined"})(ds||(ds={}));var gs;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(gs||(gs={}));var ps;(function(e){e[e.AIGenerated=1]="AIGenerated"})(ps||(ps={}));var bs;(function(e){e[e.Invoke=0]="Invoke",e[e.Automatic=1]="Automatic"})(bs||(bs={}));var ys;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(ys||(ys={}));var vs;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(vs||(vs={}));var xs;(function(e){e[e.Word=0]="Word",e[e.Line=1]="Line",e[e.Suggest=2]="Suggest"})(xs||(xs={}));var ws;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(ws||(ws={}));var _s;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(_s||(_s={}));var Ls;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(Ls||(Ls={}));var Ns;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(Ns||(Ns={}));var Ss;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(Ss||(Ss={}));var br;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(br||(br={}));var As;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(As||(As={}));var ks;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(ks||(ks={}));var Rs;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(Rs||(Rs={}));var Es;(function(e){e[e.Deprecated=1]="Deprecated"})(Es||(Es={}));var Ms;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(Ms||(Ms={}));var Cs;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(Cs||(Cs={}));var Ts;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Ts||(Ts={}));var Ps;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(Ps||(Ps={}));const Ft=class Ft{static chord(t,n){return cu(t,n)}};Ft.CtrlCmd=2048,Ft.Shift=1024,Ft.Alt=512,Ft.WinCtrl=256;let yr=Ft;function pu(){return{editor:void 0,languages:void 0,CancellationTokenSource:au,Emitter:_e,KeyCode:dr,KeyMod:yr,Position:ee,Range:z,Selection:ye,SelectionDirection:br,MarkerSeverity:gr,MarkerTag:pr,Uri:Pe,Token:gu}}const nn=class nn{static getChannel(t){return t.getChannel(nn.CHANNEL_NAME)}static setChannel(t,n){t.setChannel(nn.CHANNEL_NAME,n)}};nn.CHANNEL_NAME="editorWorkerHost";let vr=nn;var Is;class bu{constructor(){this[Is]="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,n=0){const r=this._map.get(t);if(r)return n!==0&&this.touch(r,n),r.value}set(t,n,r=0){let i=this._map.get(t);if(i)i.value=n,r!==0&&this.touch(i,r);else{switch(i={key:t,value:n,next:void 0,previous:void 0},r){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){const n=this._map.get(t);if(n)return this._map.delete(t),this.removeItem(n),this._size--,n.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");const t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,n){const r=this._state;let i=this._head;for(;i;){if(n?t.bind(n)(i.value,i.key,this):t(i.value,i.key,this),this._state!==r)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){const t=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.key,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}values(){const t=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:r.value,done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}entries(){const t=this,n=this._state;let r=this._head;const i={[Symbol.iterator](){return i},next(){if(t._state!==n)throw new Error("LinkedMap got modified during iteration.");if(r){const s={value:[r.key,r.value],done:!1};return r=r.next,s}else return{value:void 0,done:!0}}};return i}[(Is=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._head,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.next,r--;this._head=n,this._size=r,n&&(n.previous=void 0),this._state++}trimNew(t){if(t>=this.size)return;if(t===0){this.clear();return}let n=this._tail,r=this.size;for(;n&&r>t;)this._map.delete(n.key),n=n.previous,r--;this._tail=n,this._size=r,n&&(n.next=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 n=t.next,r=t.previous;if(!n||!r)throw new Error("Invalid list");n.previous=r,r.next=n}t.next=void 0,t.previous=void 0,this._state++}touch(t,n){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(n!==1&&n!==2)){if(n===1){if(t===this._head)return;const r=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(r.previous=i,i.next=r),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(n===2){if(t===this._tail)return;const r=t.next,i=t.previous;t===this._head?(r.previous=void 0,this._head=r):(r.previous=i,i.next=r),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){const t=[];return this.forEach((n,r)=>{t.push([r,n])}),t}fromJSON(t){this.clear();for(const[n,r]of t)this.set(n,r)}}class yu extends bu{constructor(t,n=1){super(),this._limit=t,this._ratio=Math.min(Math.max(0,n),1)}get limit(){return this._limit}set limit(t){this._limit=t,this.checkTrim()}get(t,n=2){return super.get(t,n)}peek(t){return super.get(t,0)}set(t,n){return super.set(t,n,2),this}checkTrim(){this.size>this._limit&&this.trim(Math.round(this._limit*this._ratio))}}class vu extends yu{constructor(t,n=1){super(t,n)}trim(t){this.trimOld(t)}set(t,n){return super.set(t,n),this.checkTrim(),this}}class xu{constructor(){this.map=new Map}add(t,n){let r=this.map.get(t);r||(r=new Set,this.map.set(t,r)),r.add(n)}delete(t,n){const r=this.map.get(t);r&&(r.delete(n),r.size===0&&this.map.delete(t))}forEach(t,n){const r=this.map.get(t);r&&r.forEach(n)}get(t){const n=this.map.get(t);return n||new Set}}new vu(10);function wu(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function Fs(e){const t=[];for(const n of wu(e))typeof e[n]=="function"&&t.push(n);return t}function _u(e,t){const n=i=>function(){const s=Array.prototype.slice.call(arguments,0);return t(i,s)},r={};for(const i of e)r[i]=n(i);return r}var Vs;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(Vs||(Vs={}));var Ds;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=3]="Right"})(Ds||(Ds={}));var Os;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Os||(Os={}));function Lu(e,t,n,r,i){if(r===0)return!0;const s=t.charCodeAt(r-1);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=t.charCodeAt(r);if(e.get(a)!==0)return!0}return!1}function Nu(e,t,n,r,i){if(r+i===n)return!0;const s=t.charCodeAt(r+i);if(e.get(s)!==0||s===13||s===10)return!0;if(i>0){const a=t.charCodeAt(r+i-1);if(e.get(a)!==0)return!0}return!1}function Su(e,t,n,r,i){return Lu(e,t,n,r,i)&&Nu(e,t,n,r,i)}class Au{constructor(t,n){this._wordSeparators=t,this._searchRegex=n,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){const n=t.length;let r;do{if(this._prevMatchStartIndex+this._prevMatchLength===n||(r=this._searchRegex.exec(t),!r))return null;const i=r.index,s=r[0].length;if(i===this._prevMatchStartIndex&&s===this._prevMatchLength){if(s===0){xl(t,n,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=s,!this._wordSeparators||Su(this._wordSeparators,t,n,i,s))return r}while(r);return null}}function ku(e,t="Unreachable"){throw new Error(t)}function yn(e){if(!e()){debugger;e(),Ce(new pe("Assertion Failed"))}}function $s(e,t){let n=0;for(;n<e.length-1;){const r=e[n],i=e[n+1];if(!t(r,i))return!1;n++}return!0}const Ru="`~!@#$%^&*()-=+[{]}\\\\|;:\'\\",.<>/?";function Eu(e=""){let t="(-?\\\\d*\\\\.\\\\d\\\\w*)|([^";for(const n of Ru)e.indexOf(n)>=0||(t+="\\\\"+n);return t+="\\\\s]+)",new RegExp(t,"g")}const Bs=Eu();function Us(e){let t=Bs;if(e&&e instanceof RegExp)if(e.global)t=e;else{let n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}const qs=new Jo;qs.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function xr(e,t,n,r,i){if(t=Us(t),i||(i=an.first(qs)),n.length>i.maxLen){let u=e-i.maxLen/2;return u<0?u=0:r+=u,n=n.substring(u,e+i.maxLen/2),xr(e,t,n,r,i)}const s=Date.now(),a=e-1-r;let l=-1,o=null;for(let u=1;!(Date.now()-s>=i.timeBudget);u++){const h=a-i.windowSize*u;t.lastIndex=Math.max(0,h);const f=Mu(t,n,a,l);if(!f&&o||(o=f,h<=0))break;l=h}if(o){const u={word:o[0],startColumn:r+1+o.index,endColumn:r+1+o.index+o[0].length};return t.lastIndex=0,u}return null}function Mu(e,t,n,r){let i;for(;i=e.exec(t);){const s=i.index||0;if(s<=n&&e.lastIndex>=n)return i;if(r>0&&s>r)return null}return null}class Cu{static computeUnicodeHighlights(t,n,r){const i=r?r.startLineNumber:1,s=r?r.endLineNumber:t.getLineCount(),a=new js(n),l=a.getCandidateCodePoints();let o;l==="allNonBasicAscii"?o=new RegExp("[^\\\\t\\\\n\\\\r\\\\x20-\\\\x7E]","g"):o=new RegExp(`${Tu(Array.from(l))}`,"g");const u=new Au(null,o),h=[];let f=!1,m,d=0,g=0,p=0;e:for(let y=i,w=s;y<=w;y++){const _=t.getLineContent(y),v=_.length;u.reset(0);do if(m=u.next(_),m){let x=m.index,b=m.index+m[0].length;if(x>0){const F=_.charCodeAt(x-1);tr(F)&&x--}if(b+1<v){const F=_.charCodeAt(b-1);tr(F)&&b++}const L=_.substring(x,b);let S=xr(x+1,Bs,_,0);S&&S.endColumn<=x+1&&(S=null);const M=a.shouldHighlightNonBasicASCII(L,S?S.word:null);if(M!==0){if(M===3?d++:M===2?g++:M===1?p++:ku(),h.length>=1e3){f=!0;break e}h.push(new z(y,x+1,y,b+1))}}while(m)}return{ranges:h,hasMore:f,ambiguousCharacterCount:d,invisibleCharacterCount:g,nonBasicAsciiCharacterCount:p}}static computeUnicodeHighlightReason(t,n){const r=new js(n);switch(r.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{const s=t.codePointAt(0),a=r.ambiguousCharacters.getPrimaryConfusable(s),l=Bt.getLocales().filter(o=>!Bt.getInstance(new Set([...n.allowedLocales,o])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:l}}case 1:return{kind:2}}}}function Tu(e,t){return`[${dl(e.map(r=>String.fromCodePoint(r)).join(""))}]`}class js{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=Bt.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const n of Ut.codePoints)Ws(String.fromCodePoint(n))||t.add(n);if(this.options.ambiguousCharacters)for(const n of this.ambiguousCharacters.getConfusableCodePoints())t.add(n);for(const n of this.allowedCodePoints)t.delete(n);return t}shouldHighlightNonBasicASCII(t,n){const r=t.codePointAt(0);if(this.allowedCodePoints.has(r))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,s=!1;if(n)for(const a of n){const l=a.codePointAt(0),o=_l(a);i=i||o,!o&&!this.ambiguousCharacters.isAmbiguous(l)&&!Ut.isInvisibleCharacter(l)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!Ws(t)&&Ut.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function Ws(e){return e===" "||e===`\n`||e===" "}class vn{constructor(t,n,r){this.changes=t,this.moves=n,this.hitTimeout=r}}class Pu{constructor(t,n){this.lineRangeMapping=t,this.changes=n}}class W{static addRange(t,n){let r=0;for(;r<n.length&&n[r].endExclusive<t.start;)r++;let i=r;for(;i<n.length&&n[i].start<=t.endExclusive;)i++;if(r===i)n.splice(r,0,t);else{const s=Math.min(t.start,n[r].start),a=Math.max(t.endExclusive,n[i-1].endExclusive);n.splice(r,i-r,new W(s,a))}}static tryCreate(t,n){if(!(t>n))return new W(t,n)}static ofLength(t){return new W(0,t)}static ofStartAndLength(t,n){return new W(t,t+n)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new pe(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new W(this.start+t,this.endExclusive+t)}deltaStart(t){return new W(this.start+t,this.endExclusive)}deltaEnd(t){return new W(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}contains(t){return this.start<=t&&t<this.endExclusive}join(t){return new W(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);if(n<=r)return new W(n,r)}intersects(t){const n=Math.max(this.start,t.start),r=Math.min(this.endExclusive,t.endExclusive);return n<r}isBefore(t){return this.endExclusive<=t.start}isAfter(t){return this.start>=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}substring(t){return t.substring(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new pe(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new pe(`Invalid clipping range: ${this.toString()}`);return t<this.start?this.endExclusive-(this.start-t)%this.length:t>=this.endExclusive?this.start+(t-this.start)%this.length:t}forEach(t){for(let n=this.start;n<this.endExclusive;n++)t(n)}}function xt(e,t){const n=jt(e,t);return n===-1?void 0:e[n]}function jt(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const a=Math.floor((i+s)/2);t(e[a])?i=a+1:s=a}return i-1}function Iu(e,t){const n=wr(e,t);return n===e.length?void 0:e[n]}function wr(e,t,n=0,r=e.length){let i=n,s=r;for(;i<s;){const a=Math.floor((i+s)/2);t(e[a])?s=a:i=a+1}return i}const $n=class $n{constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if($n.assertInvariants){if(this._prevFindLastPredicate){for(const r of this._array)if(this._prevFindLastPredicate(r)&&!t(r))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}const n=jt(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=n+1,n===-1?void 0:this._array[n]}};$n.assertInvariants=!1;let xn=$n;class ${static fromRangeInclusive(t){return new $(t.startLineNumber,t.endLineNumber+1)}static joinMany(t){if(t.length===0)return[];let n=new Ie(t[0].slice());for(let r=1;r<t.length;r++)n=n.getUnion(new Ie(t[r].slice()));return n.ranges}static join(t){if(t.length===0)throw new pe("lineRanges cannot be empty");let n=t[0].startLineNumber,r=t[0].endLineNumberExclusive;for(let i=1;i<t.length;i++)n=Math.min(n,t[i].startLineNumber),r=Math.max(r,t[i].endLineNumberExclusive);return new $(n,r)}static ofLength(t,n){return new $(t,t+n)}static deserialize(t){return new $(t[0],t[1])}constructor(t,n){if(t>n)throw new pe(`startLineNumber ${t} cannot be after endLineNumberExclusive ${n}`);this.startLineNumber=t,this.endLineNumberExclusive=n}contains(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new $(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new $(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new $(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(t){const n=Math.max(this.startLineNumber,t.startLineNumber),r=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(n<=r)return new $(n,r)}intersectsStrict(t){return this.startLineNumber<t.endLineNumberExclusive&&t.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(t){return this.startLineNumber<=t.endLineNumberExclusive&&t.startLineNumber<=this.endLineNumberExclusive}equals(t){return this.startLineNumber===t.startLineNumber&&this.endLineNumberExclusive===t.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new z(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new z(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(t){const n=[];for(let r=this.startLineNumber;r<this.endLineNumberExclusive;r++)n.push(t(r));return n}forEach(t){for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)t(n)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}toOffsetRange(){return new W(this.startLineNumber-1,this.endLineNumberExclusive-1)}}class Ie{constructor(t=[]){this._normalizedRanges=t}get ranges(){return this._normalizedRanges}addRange(t){if(t.length===0)return;const n=wr(this._normalizedRanges,i=>i.endLineNumberExclusive>=t.startLineNumber),r=jt(this._normalizedRanges,i=>i.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)this._normalizedRanges.splice(n,0,t);else if(n===r-1){const i=this._normalizedRanges[n];this._normalizedRanges[n]=i.join(t)}else{const i=this._normalizedRanges[n].join(this._normalizedRanges[r-1]).join(t);this._normalizedRanges.splice(n,r-n,i)}}contains(t){const n=xt(this._normalizedRanges,r=>r.startLineNumber<=t);return!!n&&n.endLineNumberExclusive>t}intersects(t){const n=xt(this._normalizedRanges,r=>r.startLineNumber<t.endLineNumberExclusive);return!!n&&n.endLineNumberExclusive>t.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;const n=[];let r=0,i=0,s=null;for(;r<this._normalizedRanges.length||i<t._normalizedRanges.length;){let a=null;if(r<this._normalizedRanges.length&&i<t._normalizedRanges.length){const l=this._normalizedRanges[r],o=t._normalizedRanges[i];l.startLineNumber<o.startLineNumber?(a=l,r++):(a=o,i++)}else r<this._normalizedRanges.length?(a=this._normalizedRanges[r],r++):(a=t._normalizedRanges[i],i++);s===null?s=a:s.endLineNumberExclusive>=a.startLineNumber?s=new $(s.startLineNumber,Math.max(s.endLineNumberExclusive,a.endLineNumberExclusive)):(n.push(s),s=a)}return s!==null&&n.push(s),new Ie(n)}subtractFrom(t){const n=wr(this._normalizedRanges,a=>a.endLineNumberExclusive>=t.startLineNumber),r=jt(this._normalizedRanges,a=>a.startLineNumber<=t.endLineNumberExclusive)+1;if(n===r)return new Ie([t]);const i=[];let s=t.startLineNumber;for(let a=n;a<r;a++){const l=this._normalizedRanges[a];l.startLineNumber>s&&i.push(new $(s,l.startLineNumber)),s=l.endLineNumberExclusive}return s<t.endLineNumberExclusive&&i.push(new $(s,t.endLineNumberExclusive)),new Ie(i)}toString(){return this._normalizedRanges.map(t=>t.toString()).join(", ")}getIntersection(t){const n=[];let r=0,i=0;for(;r<this._normalizedRanges.length&&i<t._normalizedRanges.length;){const s=this._normalizedRanges[r],a=t._normalizedRanges[i],l=s.intersect(a);l&&!l.isEmpty&&n.push(l),s.endLineNumberExclusive<a.endLineNumberExclusive?r++:i++}return new Ie(n)}getWithDelta(t){return new Ie(this._normalizedRanges.map(n=>n.delta(t)))}}const rt=class rt{static betweenPositions(t,n){return t.lineNumber===n.lineNumber?new rt(0,n.column-t.column):new rt(n.lineNumber-t.lineNumber,n.column-1)}static ofRange(t){return rt.betweenPositions(t.getStartPosition(),t.getEndPosition())}static ofText(t){let n=0,r=0;for(const i of t)i===`\n`?(n++,r=0):r++;return new rt(n,r)}constructor(t,n){this.lineCount=t,this.columnCount=n}isGreaterThanOrEqualTo(t){return this.lineCount!==t.lineCount?this.lineCount>t.lineCount:this.columnCount>=t.columnCount}createRange(t){return this.lineCount===0?new z(t.lineNumber,t.column,t.lineNumber,t.column+this.columnCount):new z(t.lineNumber,t.column,t.lineNumber+this.lineCount,this.columnCount+1)}addToPosition(t){return this.lineCount===0?new ee(t.lineNumber,t.column+this.columnCount):new ee(t.lineNumber+this.lineCount,this.columnCount+1)}toString(){return`${this.lineCount},${this.columnCount}`}};rt.zero=new rt(0,0);let Hs=rt;class Fu{constructor(t,n){this.range=t,this.text=n}toSingleEditOperation(){return{range:this.range,text:this.text}}}class Le{static inverse(t,n,r){const i=[];let s=1,a=1;for(const o of t){const u=new Le(new $(s,o.original.startLineNumber),new $(a,o.modified.startLineNumber));u.modified.isEmpty||i.push(u),s=o.original.endLineNumberExclusive,a=o.modified.endLineNumberExclusive}const l=new Le(new $(s,n+1),new $(a,r+1));return l.modified.isEmpty||i.push(l),i}static clip(t,n,r){const i=[];for(const s of t){const a=s.original.intersect(n),l=s.modified.intersect(r);a&&!a.isEmpty&&l&&!l.isEmpty&&i.push(new Le(a,l))}return i}constructor(t,n){this.original=t,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Le(this.modified,this.original)}join(t){return new Le(this.original.join(t.original),this.modified.join(t.modified))}toRangeMapping(){const t=this.original.toInclusiveRange(),n=this.modified.toInclusiveRange();if(t&&n)return new ke(t,n);if(this.original.startLineNumber===1||this.modified.startLineNumber===1){if(!(this.modified.startLineNumber===1&&this.original.startLineNumber===1))throw new pe("not a valid diff");return new ke(new z(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new z(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1))}else return new ke(new z(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),new z(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER,this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER))}toRangeMapping2(t,n){if(zs(this.original.endLineNumberExclusive,t)&&zs(this.modified.endLineNumberExclusive,n))return new ke(new z(this.original.startLineNumber,1,this.original.endLineNumberExclusive,1),new z(this.modified.startLineNumber,1,this.modified.endLineNumberExclusive,1));if(!this.original.isEmpty&&!this.modified.isEmpty)return new ke(z.fromPositions(new ee(this.original.startLineNumber,1),wt(new ee(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),z.fromPositions(new ee(this.modified.startLineNumber,1),wt(new ee(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));if(this.original.startLineNumber>1&&this.modified.startLineNumber>1)return new ke(z.fromPositions(wt(new ee(this.original.startLineNumber-1,Number.MAX_SAFE_INTEGER),t),wt(new ee(this.original.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),t)),z.fromPositions(wt(new ee(this.modified.startLineNumber-1,Number.MAX_SAFE_INTEGER),n),wt(new ee(this.modified.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER),n)));throw new pe}}function wt(e,t){if(e.lineNumber<1)return new ee(1,1);if(e.lineNumber>t.length)return new ee(t.length,t[t.length-1].length+1);const n=t[e.lineNumber-1];return e.column>n.length+1?new ee(e.lineNumber,n.length+1):e}function zs(e,t){return e>=1&&e<=t.length}class je extends Le{static fromRangeMappings(t){const n=$.join(t.map(i=>$.fromRangeInclusive(i.originalRange))),r=$.join(t.map(i=>$.fromRangeInclusive(i.modifiedRange)));return new je(n,r,t)}constructor(t,n,r){super(t,n),this.innerChanges=r}flip(){return new je(this.modified,this.original,this.innerChanges?.map(t=>t.flip()))}withInnerChangesFromLineRanges(){return new je(this.original,this.modified,[this.toRangeMapping()])}}class ke{static assertSorted(t){for(let n=1;n<t.length;n++){const r=t[n-1],i=t[n];if(!(r.originalRange.getEndPosition().isBeforeOrEqual(i.originalRange.getStartPosition())&&r.modifiedRange.getEndPosition().isBeforeOrEqual(i.modifiedRange.getStartPosition())))throw new pe("Range mappings must be sorted")}}constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new ke(this.modifiedRange,this.originalRange)}toTextEdit(t){const n=t.getValueOfRange(this.modifiedRange);return new Fu(this.originalRange,n)}}const Vu=3;class Du{computeDiff(t,n,r){const s=new Bu(t,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),a=[];let l=null;for(const o of s.changes){let u;o.originalEndLineNumber===0?u=new $(o.originalStartLineNumber+1,o.originalStartLineNumber+1):u=new $(o.originalStartLineNumber,o.originalEndLineNumber+1);let h;o.modifiedEndLineNumber===0?h=new $(o.modifiedStartLineNumber+1,o.modifiedStartLineNumber+1):h=new $(o.modifiedStartLineNumber,o.modifiedEndLineNumber+1);let f=new je(u,h,o.charChanges?.map(m=>new ke(new z(m.originalStartLineNumber,m.originalStartColumn,m.originalEndLineNumber,m.originalEndColumn),new z(m.modifiedStartLineNumber,m.modifiedStartColumn,m.modifiedEndLineNumber,m.modifiedEndColumn))));l&&(l.modified.endLineNumberExclusive===f.modified.startLineNumber||l.original.endLineNumberExclusive===f.original.startLineNumber)&&(f=new je(l.original.join(f.original),l.modified.join(f.modified),l.innerChanges&&f.innerChanges?l.innerChanges.concat(f.innerChanges):void 0),a.pop()),a.push(f),l=f}return yn(()=>$s(a,(o,u)=>u.original.startLineNumber-o.original.endLineNumberExclusive===u.modified.startLineNumber-o.modified.endLineNumberExclusive&&o.original.endLineNumberExclusive<u.original.startLineNumber&&o.modified.endLineNumberExclusive<u.modified.startLineNumber)),new vn(a,[],s.quitEarly)}}function Gs(e,t,n,r){return new Ze(e,t,n).ComputeDiff(r)}let Js=class{constructor(t){const n=[],r=[];for(let i=0,s=t.length;i<s;i++)n[i]=_r(t[i],1),r[i]=Lr(t[i],1);this.lines=t,this._startColumns=n,this._endColumns=r}getElements(){const t=[];for(let n=0,r=this.lines.length;n<r;n++)t[n]=this.lines[n].substring(this._startColumns[n]-1,this._endColumns[n]-1);return t}getStrictElement(t){return this.lines[t]}getStartLineNumber(t){return t+1}getEndLineNumber(t){return t+1}createCharSequence(t,n,r){const i=[],s=[],a=[];let l=0;for(let o=n;o<=r;o++){const u=this.lines[o],h=t?this._startColumns[o]:1,f=t?this._endColumns[o]:u.length+1;for(let m=h;m<f;m++)i[l]=u.charCodeAt(m-1),s[l]=o+1,a[l]=m,l++;!t&&o<r&&(i[l]=10,s[l]=o+1,a[l]=u.length+1,l++)}return new Ou(i,s,a)}};class Ou{constructor(t,n,r){this._charCodes=t,this._lineNumbers=n,this._columns=r}toString(){return"["+this._charCodes.map((t,n)=>(t===10?"\\\\n":String.fromCharCode(t))+`-(${this._lineNumbers[n]},${this._columns[n]})`).join(", ")+"]"}_assertIndex(t,n){if(t<0||t>=n.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}}class _t{constructor(t,n,r,i,s,a,l,o){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=l,this.modifiedEndColumn=o}static createFromDiffChange(t,n,r){const i=n.getStartLineNumber(t.originalStart),s=n.getStartColumn(t.originalStart),a=n.getEndLineNumber(t.originalStart+t.originalLength-1),l=n.getEndColumn(t.originalStart+t.originalLength-1),o=r.getStartLineNumber(t.modifiedStart),u=r.getStartColumn(t.modifiedStart),h=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),f=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new _t(i,s,a,l,o,u,h,f)}}function $u(e){if(e.length<=1)return e;const t=[e[0]];let n=t[0];for(let r=1,i=e.length;r<i;r++){const s=e[r],a=s.originalStart-(n.originalStart+n.originalLength),l=s.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,l)<Vu?(n.originalLength=s.originalStart+s.originalLength-n.originalStart,n.modifiedLength=s.modifiedStart+s.modifiedLength-n.modifiedStart):(t.push(s),n=s)}return t}class Wt{constructor(t,n,r,i,s){this.originalStartLineNumber=t,this.originalEndLineNumber=n,this.modifiedStartLineNumber=r,this.modifiedEndLineNumber=i,this.charChanges=s}static createFromDiffResult(t,n,r,i,s,a,l){let o,u,h,f,m;if(n.originalLength===0?(o=r.getStartLineNumber(n.originalStart)-1,u=0):(o=r.getStartLineNumber(n.originalStart),u=r.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(h=i.getStartLineNumber(n.modifiedStart)-1,f=0):(h=i.getStartLineNumber(n.modifiedStart),f=i.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const d=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),g=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(d.getElements().length>0&&g.getElements().length>0){let p=Gs(d,g,s,!0).changes;l&&(p=$u(p)),m=[];for(let y=0,w=p.length;y<w;y++)m.push(_t.createFromDiffChange(p[y],d,g))}}return new Wt(o,u,h,f,m)}}class Bu{constructor(t,n,r){this.shouldComputeCharChanges=r.shouldComputeCharChanges,this.shouldPostProcessCharChanges=r.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=r.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=r.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=n,this.original=new Js(t),this.modified=new Js(n),this.continueLineDiff=Xs(r.maxComputationTime),this.continueCharDiff=Xs(r.maxComputationTime===0?0:Math.min(r.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};const t=Gs(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=t.changes,r=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){const l=[];for(let o=0,u=n.length;o<u;o++)l.push(Wt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[o],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:r,changes:l}}const i=[];let s=0,a=0;for(let l=-1,o=n.length;l<o;l++){const u=l+1<o?n[l+1]:null,h=u?u.originalStart:this.originalLines.length,f=u?u.modifiedStart:this.modifiedLines.length;for(;s<h&&a<f;){const m=this.originalLines[s],d=this.modifiedLines[a];if(m!==d){{let g=_r(m,1),p=_r(d,1);for(;g>1&&p>1;){const y=m.charCodeAt(g-2),w=d.charCodeAt(p-2);if(y!==w)break;g--,p--}(g>1||p>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,g,a+1,1,p)}{let g=Lr(m,1),p=Lr(d,1);const y=m.length+1,w=d.length+1;for(;g<y&&p<w;){const _=m.charCodeAt(g-1),v=m.charCodeAt(p-1);if(_!==v)break;g++,p++}(g<y||p<w)&&this._pushTrimWhitespaceCharChange(i,s+1,g,y,a+1,p,w)}}s++,a++}u&&(i.push(Wt.createFromDiffResult(this.shouldIgnoreTrimWhitespace,u,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=u.originalLength,a+=u.modifiedLength)}return{quitEarly:r,changes:i}}_pushTrimWhitespaceCharChange(t,n,r,i,s,a,l){if(this._mergeTrimWhitespaceCharChange(t,n,r,i,s,a,l))return;let o;this.shouldComputeCharChanges&&(o=[new _t(n,r,n,i,s,a,s,l)]),t.push(new Wt(n,n,s,s,o))}_mergeTrimWhitespaceCharChange(t,n,r,i,s,a,l){const o=t.length;if(o===0)return!1;const u=t[o-1];return u.originalEndLineNumber===0||u.modifiedEndLineNumber===0?!1:u.originalEndLineNumber===n&&u.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new _t(n,r,n,i,s,a,s,l)),!0):u.originalEndLineNumber+1===n&&u.modifiedEndLineNumber+1===s?(u.originalEndLineNumber=n,u.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&u.charChanges&&u.charChanges.push(new _t(n,r,n,i,s,a,s,l)),!0):!1}}function _r(e,t){const n=pl(e);return n===-1?t:n+1}function Lr(e,t){const n=bl(e);return n===-1?t:n+2}function Xs(e){if(e===0)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}function Uu(e,t,n=(r,i)=>r===i){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0,i=e.length;r<i;r++)if(!n(e[r],t[r]))return!1;return!0}function*qu(e,t){let n,r;for(const i of e)r!==void 0&&t(r,i)?n.push(i):(n&&(yield n),n=[i]),r=i;n&&(yield n)}function ju(e,t){for(let n=0;n<=e.length;n++)t(n===0?void 0:e[n-1],n===e.length?void 0:e[n])}function Wu(e,t){for(let n=0;n<e.length;n++)t(n===0?void 0:e[n-1],e[n],n+1===e.length?void 0:e[n+1])}function Hu(e,t){for(const n of t)e.push(n)}var Nr;(function(e){function t(s){return s<0}e.isLessThan=t;function n(s){return s<=0}e.isLessThanOrEqual=n;function r(s){return s>0}e.isGreaterThan=r;function i(s){return s===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(Nr||(Nr={}));function wn(e,t){return(n,r)=>t(e(n),e(r))}const _n=(e,t)=>e-t;function zu(e){return(t,n)=>-e(t,n)}const Vt=class Vt{constructor(t){this.iterate=t}toArray(){const t=[];return this.iterate(n=>(t.push(n),!0)),t}filter(t){return new Vt(n=>this.iterate(r=>t(r)?n(r):!0))}map(t){return new Vt(n=>this.iterate(r=>n(t(r))))}findLast(t){let n;return this.iterate(r=>(t(r)&&(n=r),!0)),n}findLastMaxBy(t){let n,r=!0;return this.iterate(i=>((r||Nr.isGreaterThan(t(i,n)))&&(r=!1,n=i),!0)),n}};Vt.empty=new Vt(t=>{});let Qs=Vt;class We{static trivial(t,n){return new We([new Y(W.ofLength(t.length),W.ofLength(n.length))],!1)}static trivialTimedOut(t,n){return new We([new Y(W.ofLength(t.length),W.ofLength(n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}}class Y{static invert(t,n){const r=[];return ju(t,(i,s)=>{r.push(Y.fromOffsetPairs(i?i.getEndExclusives():He.zero,s?s.getStarts():new He(n,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+n)))}),r}static fromOffsetPairs(t,n){return new Y(new W(t.offset1,n.offset1),new W(t.offset2,n.offset2))}static assertSorted(t){let n;for(const r of t){if(n&&!(n.seq1Range.endExclusive<=r.seq1Range.start&&n.seq2Range.endExclusive<=r.seq2Range.start))throw new pe("Sequence diffs must be sorted");n=r}}constructor(t,n){this.seq1Range=t,this.seq2Range=n}swap(){return new Y(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new Y(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new Y(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new Y(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new Y(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){const n=this.seq1Range.intersect(t.seq1Range),r=this.seq2Range.intersect(t.seq2Range);if(!(!n||!r))return new Y(n,r)}getStarts(){return new He(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new He(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}}const ct=class ct{constructor(t,n){this.offset1=t,this.offset2=n}toString(){return`${this.offset1} <-> ${this.offset2}`}delta(t){return t===0?this:new ct(this.offset1+t,this.offset2+t)}equals(t){return this.offset1===t.offset1&&this.offset2===t.offset2}};ct.zero=new ct(0,0),ct.max=new ct(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);let He=ct;const Bn=class Bn{isValid(){return!0}};Bn.instance=new Bn;let Ht=Bn;class Gu{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new pe("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class Sr{constructor(t,n){this.width=t,this.height=n,this.array=[],this.array=new Array(t*n)}get(t,n){return this.array[t+n*this.width]}set(t,n,r){this.array[t+n*this.width]=r}}function Ar(e){return e===32||e===9}const rn=class rn{static getKey(t){let n=this.chrKeys.get(t);return n===void 0&&(n=this.chrKeys.size,this.chrKeys.set(t,n)),n}constructor(t,n,r){this.range=t,this.lines=n,this.source=r,this.histogram=[];let i=0;for(let s=t.startLineNumber-1;s<t.endLineNumberExclusive-1;s++){const a=n[s];for(let o=0;o<a.length;o++){i++;const u=a[o],h=rn.getKey(u);this.histogram[h]=(this.histogram[h]||0)+1}i++;const l=rn.getKey(`\n`);this.histogram[l]=(this.histogram[l]||0)+1}this.totalCount=i}computeSimilarity(t){let n=0;const r=Math.max(this.histogram.length,t.histogram.length);for(let i=0;i<r;i++)n+=Math.abs((this.histogram[i]??0)-(t.histogram[i]??0));return 1-n/(this.totalCount+t.totalCount)}};rn.chrKeys=new Map;let Ln=rn;class Ju{compute(t,n,r=Ht.instance,i){if(t.length===0||n.length===0)return We.trivial(t,n);const s=new Sr(t.length,n.length),a=new Sr(t.length,n.length),l=new Sr(t.length,n.length);for(let g=0;g<t.length;g++)for(let p=0;p<n.length;p++){if(!r.isValid())return We.trivialTimedOut(t,n);const y=g===0?0:s.get(g-1,p),w=p===0?0:s.get(g,p-1);let _;t.getElement(g)===n.getElement(p)?(g===0||p===0?_=0:_=s.get(g-1,p-1),g>0&&p>0&&a.get(g-1,p-1)===3&&(_+=l.get(g-1,p-1)),_+=i?i(g,p):1):_=-1;const v=Math.max(y,w,_);if(v===_){const x=g>0&&p>0?l.get(g-1,p-1):0;l.set(g,p,x+1),a.set(g,p,3)}else v===y?(l.set(g,p,0),a.set(g,p,1)):v===w&&(l.set(g,p,0),a.set(g,p,2));s.set(g,p,v)}const o=[];let u=t.length,h=n.length;function f(g,p){(g+1!==u||p+1!==h)&&o.push(new Y(new W(g+1,u),new W(p+1,h))),u=g,h=p}let m=t.length-1,d=n.length-1;for(;m>=0&&d>=0;)a.get(m,d)===3?(f(m,d),m--,d--):a.get(m,d)===1?m--:d--;return f(-1,-1),o.reverse(),new We(o,!1)}}class Ys{compute(t,n,r=Ht.instance){if(t.length===0||n.length===0)return We.trivial(t,n);const i=t,s=n;function a(p,y){for(;p<i.length&&y<s.length&&i.getElement(p)===s.getElement(y);)p++,y++;return p}let l=0;const o=new Xu;o.set(0,a(0,0));const u=new Qu;u.set(0,o.get(0)===0?null:new Zs(null,0,0,o.get(0)));let h=0;e:for(;;){if(l++,!r.isValid())return We.trivialTimedOut(i,s);const p=-Math.min(l,s.length+l%2),y=Math.min(l,i.length+l%2);for(h=p;h<=y;h+=2){const w=h===y?-1:o.get(h+1),_=h===p?-1:o.get(h-1)+1,v=Math.min(Math.max(w,_),i.length),x=v-h;if(v>i.length||x>s.length)continue;const b=a(v,x);o.set(h,b);const L=v===w?u.get(h+1):u.get(h-1);if(u.set(h,b!==v?new Zs(L,v,x,b-v):L),o.get(h)===i.length&&o.get(h)-h===s.length)break e}}let f=u.get(h);const m=[];let d=i.length,g=s.length;for(;;){const p=f?f.x+f.length:0,y=f?f.y+f.length:0;if((p!==d||y!==g)&&m.push(new Y(new W(p,d),new W(y,g))),!f)break;d=f.x,g=f.y,f=f.prev}return m.reverse(),new We(m,!1)}}class Zs{constructor(t,n,r,i){this.prev=t,this.x=n,this.y=r,this.length=i}}class Xu{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){if(t<0){if(t=-t-1,t>=this.negativeArr.length){const r=this.negativeArr;this.negativeArr=new Int32Array(r.length*2),this.negativeArr.set(r)}this.negativeArr[t]=n}else{if(t>=this.positiveArr.length){const r=this.positiveArr;this.positiveArr=new Int32Array(r.length*2),this.positiveArr.set(r)}this.positiveArr[t]=n}}}class Qu{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,n){t<0?(t=-t-1,this.negativeArr[t]=n):this.positiveArr[t]=n}}class Nn{constructor(t,n,r){this.lines=t,this.range=n,this.considerWhitespaceChanges=r,this.elements=[],this.firstElementOffsetByLineIdx=[],this.lineStartOffsets=[],this.trimmedWsLengthsByLineIdx=[],this.firstElementOffsetByLineIdx.push(0);for(let i=this.range.startLineNumber;i<=this.range.endLineNumber;i++){let s=t[i-1],a=0;i===this.range.startLineNumber&&this.range.startColumn>1&&(a=this.range.startColumn-1,s=s.substring(a)),this.lineStartOffsets.push(a);let l=0;if(!r){const u=s.trimStart();l=s.length-u.length,s=u.trimEnd()}this.trimmedWsLengthsByLineIdx.push(l);const o=i===this.range.endLineNumber?Math.min(this.range.endColumn-1-a-l,s.length):s.length;for(let u=0;u<o;u++)this.elements.push(s.charCodeAt(u));i<this.range.endLineNumber&&(this.elements.push(10),this.firstElementOffsetByLineIdx.push(this.elements.length))}}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new W(0,this.length))}getText(t){return this.elements.slice(t.start,t.endExclusive).map(n=>String.fromCharCode(n)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){const n=ea(t>0?this.elements[t-1]:-1),r=ea(t<this.elements.length?this.elements[t]:-1);if(n===7&&r===8)return 0;if(n===8)return 150;let i=0;return n!==r&&(i+=10,n===0&&r===1&&(i+=1)),i+=Ks(n),i+=Ks(r),i}translateOffset(t,n="right"){const r=jt(this.firstElementOffsetByLineIdx,s=>s<=t),i=t-this.firstElementOffsetByLineIdx[r];return new ee(this.range.startLineNumber+r,1+this.lineStartOffsets[r]+i+(i===0&&n==="left"?0:this.trimmedWsLengthsByLineIdx[r]))}translateRange(t){const n=this.translateOffset(t.start,"right"),r=this.translateOffset(t.endExclusive,"left");return r.isBefore(n)?z.fromPositions(r,r):z.fromPositions(n,r)}findWordContaining(t){if(t<0||t>=this.elements.length||!kr(this.elements[t]))return;let n=t;for(;n>0&&kr(this.elements[n-1]);)n--;let r=t;for(;r<this.elements.length&&kr(this.elements[r]);)r++;return new W(n,r)}countLinesIn(t){return this.translateOffset(t.endExclusive).lineNumber-this.translateOffset(t.start).lineNumber}isStronglyEqual(t,n){return this.elements[t]===this.elements[n]}extendToFullLines(t){const n=xt(this.firstElementOffsetByLineIdx,i=>i<=t.start)??0,r=Iu(this.firstElementOffsetByLineIdx,i=>t.endExclusive<=i)??this.elements.length;return new W(n,r)}}function kr(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const Yu={0:0,1:0,2:0,3:10,4:2,5:30,6:3,7:10,8:10};function Ks(e){return Yu[e]}function ea(e){return e===10?8:e===13?7:Ar(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}function Zu(e,t,n,r,i,s){let{moves:a,excludedChanges:l}=ec(e,t,n,s);if(!s.isValid())return[];const o=e.filter(h=>!l.has(h)),u=tc(o,r,i,t,n,s);return Hu(a,u),a=nc(a),a=a.filter(h=>{const f=h.original.toOffsetRange().slice(t).map(d=>d.trim());return f.join(`\n`).length>=15&&Ku(f,d=>d.length>=2)>=2}),a=rc(e,a),a}function Ku(e,t){let n=0;for(const r of e)t(r)&&n++;return n}function ec(e,t,n,r){const i=[],s=e.filter(o=>o.modified.isEmpty&&o.original.length>=3).map(o=>new Ln(o.original,t,o)),a=new Set(e.filter(o=>o.original.isEmpty&&o.modified.length>=3).map(o=>new Ln(o.modified,n,o))),l=new Set;for(const o of s){let u=-1,h;for(const f of a){const m=o.computeSimilarity(f);m>u&&(u=m,h=f)}if(u>.9&&h&&(a.delete(h),i.push(new Le(o.range,h.range)),l.add(o.source),l.add(h.source)),!r.isValid())return{moves:i,excludedChanges:l}}return{moves:i,excludedChanges:l}}function tc(e,t,n,r,i,s){const a=[],l=new xu;for(const m of e)for(let d=m.original.startLineNumber;d<m.original.endLineNumberExclusive-2;d++){const g=`${t[d-1]}:${t[d+1-1]}:${t[d+2-1]}`;l.add(g,{range:new $(d,d+3)})}const o=[];e.sort(wn(m=>m.modified.startLineNumber,_n));for(const m of e){let d=[];for(let g=m.modified.startLineNumber;g<m.modified.endLineNumberExclusive-2;g++){const p=`${n[g-1]}:${n[g+1-1]}:${n[g+2-1]}`,y=new $(g,g+3),w=[];l.forEach(p,({range:_})=>{for(const x of d)if(x.originalLineRange.endLineNumberExclusive+1===_.endLineNumberExclusive&&x.modifiedLineRange.endLineNumberExclusive+1===y.endLineNumberExclusive){x.originalLineRange=new $(x.originalLineRange.startLineNumber,_.endLineNumberExclusive),x.modifiedLineRange=new $(x.modifiedLineRange.startLineNumber,y.endLineNumberExclusive),w.push(x);return}const v={modifiedLineRange:y,originalLineRange:_};o.push(v),w.push(v)}),d=w}if(!s.isValid())return[]}o.sort(zu(wn(m=>m.modifiedLineRange.length,_n)));const u=new Ie,h=new Ie;for(const m of o){const d=m.modifiedLineRange.startLineNumber-m.originalLineRange.startLineNumber,g=u.subtractFrom(m.modifiedLineRange),p=h.subtractFrom(m.originalLineRange).getWithDelta(d),y=g.getIntersection(p);for(const w of y.ranges){if(w.length<3)continue;const _=w,v=w.delta(-d);a.push(new Le(v,_)),u.addRange(_),h.addRange(v)}}a.sort(wn(m=>m.original.startLineNumber,_n));const f=new xn(e);for(let m=0;m<a.length;m++){const d=a[m],g=f.findLastMonotonous(L=>L.original.startLineNumber<=d.original.startLineNumber),p=xt(e,L=>L.modified.startLineNumber<=d.modified.startLineNumber),y=Math.max(d.original.startLineNumber-g.original.startLineNumber,d.modified.startLineNumber-p.modified.startLineNumber),w=f.findLastMonotonous(L=>L.original.startLineNumber<d.original.endLineNumberExclusive),_=xt(e,L=>L.modified.startLineNumber<d.modified.endLineNumberExclusive),v=Math.max(w.original.endLineNumberExclusive-d.original.endLineNumberExclusive,_.modified.endLineNumberExclusive-d.modified.endLineNumberExclusive);let x;for(x=0;x<y;x++){const L=d.original.startLineNumber-x-1,S=d.modified.startLineNumber-x-1;if(L>r.length||S>i.length||u.contains(S)||h.contains(L)||!ta(r[L-1],i[S-1],s))break}x>0&&(h.addRange(new $(d.original.startLineNumber-x,d.original.startLineNumber)),u.addRange(new $(d.modified.startLineNumber-x,d.modified.startLineNumber)));let b;for(b=0;b<v;b++){const L=d.original.endLineNumberExclusive+b,S=d.modified.endLineNumberExclusive+b;if(L>r.length||S>i.length||u.contains(S)||h.contains(L)||!ta(r[L-1],i[S-1],s))break}b>0&&(h.addRange(new $(d.original.endLineNumberExclusive,d.original.endLineNumberExclusive+b)),u.addRange(new $(d.modified.endLineNumberExclusive,d.modified.endLineNumberExclusive+b))),(x>0||b>0)&&(a[m]=new Le(new $(d.original.startLineNumber-x,d.original.endLineNumberExclusive+b),new $(d.modified.startLineNumber-x,d.modified.endLineNumberExclusive+b)))}return a}function ta(e,t,n){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;const i=new Ys().compute(new Nn([e],new z(1,1,1,e.length),!1),new Nn([t],new z(1,1,1,t.length),!1),n);let s=0;const a=Y.invert(i.diffs,e.length);for(const h of a)h.seq1Range.forEach(f=>{Ar(e.charCodeAt(f))||s++});function l(h){let f=0;for(let m=0;m<e.length;m++)Ar(h.charCodeAt(m))||f++;return f}const o=l(e.length>t.length?e:t);return s/o>.6&&o>10}function nc(e){if(e.length===0)return e;e.sort(wn(n=>n.original.startLineNumber,_n));const t=[e[0]];for(let n=1;n<e.length;n++){const r=t[t.length-1],i=e[n],s=i.original.startLineNumber-r.original.endLineNumberExclusive,a=i.modified.startLineNumber-r.modified.endLineNumberExclusive;if(s>=0&&a>=0&&s+a<=2){t[t.length-1]=r.join(i);continue}t.push(i)}return t}function rc(e,t){const n=new xn(e);return t=t.filter(r=>{const i=n.findLastMonotonous(l=>l.original.startLineNumber<r.original.endLineNumberExclusive)||new Le(new $(1,1),new $(1,1)),s=xt(e,l=>l.modified.startLineNumber<r.modified.endLineNumberExclusive);return i!==s}),t}function na(e,t,n){let r=n;return r=ra(e,t,r),r=ra(e,t,r),r=ic(e,t,r),r}function ra(e,t,n){if(n.length===0)return n;const r=[];r.push(n[0]);for(let s=1;s<n.length;s++){const a=r[r.length-1];let l=n[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=l.seq1Range.start-a.seq1Range.endExclusive;let u;for(u=1;u<=o&&!(e.getElement(l.seq1Range.start-u)!==e.getElement(l.seq1Range.endExclusive-u)||t.getElement(l.seq2Range.start-u)!==t.getElement(l.seq2Range.endExclusive-u));u++);if(u--,u===o){r[r.length-1]=new Y(new W(a.seq1Range.start,l.seq1Range.endExclusive-o),new W(a.seq2Range.start,l.seq2Range.endExclusive-o));continue}l=l.delta(-u)}r.push(l)}const i=[];for(let s=0;s<r.length-1;s++){const a=r[s+1];let l=r[s];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){const o=a.seq1Range.start-l.seq1Range.endExclusive;let u;for(u=0;u<o&&!(!e.isStronglyEqual(l.seq1Range.start+u,l.seq1Range.endExclusive+u)||!t.isStronglyEqual(l.seq2Range.start+u,l.seq2Range.endExclusive+u));u++);if(u===o){r[s+1]=new Y(new W(l.seq1Range.start+o,a.seq1Range.endExclusive),new W(l.seq2Range.start+o,a.seq2Range.endExclusive));continue}u>0&&(l=l.delta(u))}i.push(l)}return r.length>0&&i.push(r[r.length-1]),i}function ic(e,t,n){if(!e.getBoundaryScore||!t.getBoundaryScore)return n;for(let r=0;r<n.length;r++){const i=r>0?n[r-1]:void 0,s=n[r],a=r+1<n.length?n[r+1]:void 0,l=new W(i?i.seq1Range.endExclusive+1:0,a?a.seq1Range.start-1:e.length),o=new W(i?i.seq2Range.endExclusive+1:0,a?a.seq2Range.start-1:t.length);s.seq1Range.isEmpty?n[r]=ia(s,e,t,l,o):s.seq2Range.isEmpty&&(n[r]=ia(s.swap(),t,e,o,l).swap())}return n}function ia(e,t,n,r,i){let a=1;for(;e.seq1Range.start-a>=r.start&&e.seq2Range.start-a>=i.start&&n.isStronglyEqual(e.seq2Range.start-a,e.seq2Range.endExclusive-a)&&a<100;)a++;a--;let l=0;for(;e.seq1Range.start+l<r.endExclusive&&e.seq2Range.endExclusive+l<i.endExclusive&&n.isStronglyEqual(e.seq2Range.start+l,e.seq2Range.endExclusive+l)&&l<100;)l++;if(a===0&&l===0)return e;let o=0,u=-1;for(let h=-a;h<=l;h++){const f=e.seq2Range.start+h,m=e.seq2Range.endExclusive+h,d=e.seq1Range.start+h,g=t.getBoundaryScore(d)+n.getBoundaryScore(f)+n.getBoundaryScore(m);g>u&&(u=g,o=h)}return e.delta(o)}function sc(e,t,n){const r=[];for(const i of n){const s=r[r.length-1];if(!s){r.push(i);continue}i.seq1Range.start-s.seq1Range.endExclusive<=2||i.seq2Range.start-s.seq2Range.endExclusive<=2?r[r.length-1]=new Y(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function ac(e,t,n){const r=Y.invert(n,e.length),i=[];let s=new He(0,0);function a(o,u){if(o.offset1<s.offset1||o.offset2<s.offset2)return;const h=e.findWordContaining(o.offset1),f=t.findWordContaining(o.offset2);if(!h||!f)return;let m=new Y(h,f);const d=m.intersect(u);let g=d.seq1Range.length,p=d.seq2Range.length;for(;r.length>0;){const y=r[0];if(!(y.seq1Range.intersects(m.seq1Range)||y.seq2Range.intersects(m.seq2Range)))break;const _=e.findWordContaining(y.seq1Range.start),v=t.findWordContaining(y.seq2Range.start),x=new Y(_,v),b=x.intersect(y);if(g+=b.seq1Range.length,p+=b.seq2Range.length,m=m.join(x),m.seq1Range.endExclusive>=y.seq1Range.endExclusive)r.shift();else break}g+p<(m.seq1Range.length+m.seq2Range.length)*2/3&&i.push(m),s=m.getEndExclusives()}for(;r.length>0;){const o=r.shift();o.seq1Range.isEmpty||(a(o.getStarts(),o),a(o.getEndExclusives().delta(-1),o))}return oc(n,i)}function oc(e,t){const n=[];for(;e.length>0||t.length>0;){const r=e[0],i=t[0];let s;r&&(!i||r.seq1Range.start<i.seq1Range.start)?s=e.shift():s=t.shift(),n.length>0&&n[n.length-1].seq1Range.endExclusive>=s.seq1Range.start?n[n.length-1]=n[n.length-1].join(s):n.push(s)}return n}function lc(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const a=[r[0]];for(let l=1;l<r.length;l++){let h=function(m,d){const g=new W(u.seq1Range.endExclusive,o.seq1Range.start);return e.getText(g).replace(/\\s/g,"").length<=4&&(m.seq1Range.length+m.seq2Range.length>5||d.seq1Range.length+d.seq2Range.length>5)};const o=r[l],u=a[a.length-1];h(u,o)?(s=!0,a[a.length-1]=a[a.length-1].join(o)):a.push(o)}r=a}while(i++<10&&s);return r}function uc(e,t,n){let r=n;if(r.length===0)return r;let i=0,s;do{s=!1;const l=[r[0]];for(let o=1;o<r.length;o++){let f=function(d,g){const p=new W(h.seq1Range.endExclusive,u.seq1Range.start);if(e.countLinesIn(p)>5||p.length>500)return!1;const w=e.getText(p).trim();if(w.length>20||w.split(/\\r\\n|\\r|\\n/).length>1)return!1;const _=e.countLinesIn(d.seq1Range),v=d.seq1Range.length,x=t.countLinesIn(d.seq2Range),b=d.seq2Range.length,L=e.countLinesIn(g.seq1Range),S=g.seq1Range.length,M=t.countLinesIn(g.seq2Range),F=g.seq2Range.length,O=130;function C(N){return Math.min(N,O)}return Math.pow(Math.pow(C(_*40+v),1.5)+Math.pow(C(x*40+b),1.5),1.5)+Math.pow(Math.pow(C(L*40+S),1.5)+Math.pow(C(M*40+F),1.5),1.5)>(O**1.5)**1.5*1.3};const u=r[o],h=l[l.length-1];f(h,u)?(s=!0,l[l.length-1]=l[l.length-1].join(u)):l.push(u)}r=l}while(i++<10&&s);const a=[];return Wu(r,(l,o,u)=>{let h=o;function f(w){return w.length>0&&w.trim().length<=3&&o.seq1Range.length+o.seq2Range.length>100}const m=e.extendToFullLines(o.seq1Range),d=e.getText(new W(m.start,o.seq1Range.start));f(d)&&(h=h.deltaStart(-d.length));const g=e.getText(new W(o.seq1Range.endExclusive,m.endExclusive));f(g)&&(h=h.deltaEnd(g.length));const p=Y.fromOffsetPairs(l?l.getEndExclusives():He.zero,u?u.getStarts():He.max),y=h.intersect(p);a.length>0&&y.getStarts().equals(a[a.length-1].getEndExclusives())?a[a.length-1]=a[a.length-1].join(y):a.push(y)}),a}class sa{constructor(t,n){this.trimmedHash=t,this.lines=n}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){const n=t===0?0:aa(this.lines[t-1]),r=t===this.lines.length?0:aa(this.lines[t]);return 1e3-(n+r)}getText(t){return this.lines.slice(t.start,t.endExclusive).join(`\n`)}isStronglyEqual(t,n){return this.lines[t]===this.lines[n]}}function aa(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}class cc{constructor(){this.dynamicProgrammingDiffing=new Ju,this.myersDiffingAlgorithm=new Ys}computeDiff(t,n,r){if(t.length<=1&&Uu(t,n,(b,L)=>b===L))return new vn([],[],!1);if(t.length===1&&t[0].length===0||n.length===1&&n[0].length===0)return new vn([new je(new $(1,t.length+1),new $(1,n.length+1),[new ke(new z(1,1,t.length,t[t.length-1].length+1),new z(1,1,n.length,n[n.length-1].length+1))])],[],!1);const i=r.maxComputationTimeMs===0?Ht.instance:new Gu(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,a=new Map;function l(b){let L=a.get(b);return L===void 0&&(L=a.size,a.set(b,L)),L}const o=t.map(b=>l(b.trim())),u=n.map(b=>l(b.trim())),h=new sa(o,t),f=new sa(u,n),m=h.length+f.length<1700?this.dynamicProgrammingDiffing.compute(h,f,i,(b,L)=>t[b]===n[L]?n[L].length===0?.1:1+Math.log(1+n[L].length):.99):this.myersDiffingAlgorithm.compute(h,f,i);let d=m.diffs,g=m.hitTimeout;d=na(h,f,d),d=lc(h,f,d);const p=[],y=b=>{if(s)for(let L=0;L<b;L++){const S=w+L,M=_+L;if(t[S]!==n[M]){const F=this.refineDiff(t,n,new Y(new W(S,S+1),new W(M,M+1)),i,s);for(const O of F.mappings)p.push(O);F.hitTimeout&&(g=!0)}}};let w=0,_=0;for(const b of d){yn(()=>b.seq1Range.start-w===b.seq2Range.start-_);const L=b.seq1Range.start-w;y(L),w=b.seq1Range.endExclusive,_=b.seq2Range.endExclusive;const S=this.refineDiff(t,n,b,i,s);S.hitTimeout&&(g=!0);for(const M of S.mappings)p.push(M)}y(t.length-w);const v=oa(p,t,n);let x=[];return r.computeMoves&&(x=this.computeMoves(v,t,n,o,u,i,s)),yn(()=>{function b(S,M){if(S.lineNumber<1||S.lineNumber>M.length)return!1;const F=M[S.lineNumber-1];return!(S.column<1||S.column>F.length+1)}function L(S,M){return!(S.startLineNumber<1||S.startLineNumber>M.length+1||S.endLineNumberExclusive<1||S.endLineNumberExclusive>M.length+1)}for(const S of v){if(!S.innerChanges)return!1;for(const M of S.innerChanges)if(!(b(M.modifiedRange.getStartPosition(),n)&&b(M.modifiedRange.getEndPosition(),n)&&b(M.originalRange.getStartPosition(),t)&&b(M.originalRange.getEndPosition(),t)))return!1;if(!L(S.modified,n)||!L(S.original,t))return!1}return!0}),new vn(v,x,g)}computeMoves(t,n,r,i,s,a,l){return Zu(t,n,r,i,s,a).map(h=>{const f=this.refineDiff(n,r,new Y(h.original.toOffsetRange(),h.modified.toOffsetRange()),a,l),m=oa(f.mappings,n,r,!0);return new Pu(h,m)})}refineDiff(t,n,r,i,s){const l=hc(r).toRangeMapping2(t,n),o=new Nn(t,l.originalRange,s),u=new Nn(n,l.modifiedRange,s),h=o.length+u.length<500?this.dynamicProgrammingDiffing.compute(o,u,i):this.myersDiffingAlgorithm.compute(o,u,i);let f=h.diffs;return f=na(o,u,f),f=ac(o,u,f),f=sc(o,u,f),f=uc(o,u,f),{mappings:f.map(d=>new ke(o.translateRange(d.seq1Range),u.translateRange(d.seq2Range))),hitTimeout:h.hitTimeout}}}function oa(e,t,n,r=!1){const i=[];for(const s of qu(e.map(a=>fc(a,t,n)),(a,l)=>a.original.overlapOrTouch(l.original)||a.modified.overlapOrTouch(l.modified))){const a=s[0],l=s[s.length-1];i.push(new je(a.original.join(l.original),a.modified.join(l.modified),s.map(o=>o.innerChanges[0])))}return yn(()=>!r&&i.length>0&&(i[0].modified.startLineNumber!==i[0].original.startLineNumber||n.length-i[i.length-1].modified.endLineNumberExclusive!==t.length-i[i.length-1].original.endLineNumberExclusive)?!1:$s(i,(s,a)=>a.original.startLineNumber-s.original.endLineNumberExclusive===a.modified.startLineNumber-s.modified.endLineNumberExclusive&&s.original.endLineNumberExclusive<a.original.startLineNumber&&s.modified.endLineNumberExclusive<a.modified.startLineNumber)),i}function fc(e,t,n){let r=0,i=0;e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+r<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+r<=e.modifiedRange.endLineNumber&&(i=-1),e.modifiedRange.startColumn-1>=n[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(r=1);const s=new $(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),a=new $(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new je(s,a,[e])}function hc(e){return new Le(new $(e.seq1Range.start+1,e.seq1Range.endExclusive+1),new $(e.seq2Range.start+1,e.seq2Range.endExclusive+1))}const la={getLegacy:()=>new Du,getDefault:()=>new cc};function Ke(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class ae{constructor(t,n,r,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,n))|0,this.b=Math.min(255,Math.max(0,r))|0,this.a=Ke(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a}}class Ne{constructor(t,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Ke(Math.max(Math.min(1,n),0),3),this.l=Ke(Math.max(Math.min(1,r),0),3),this.a=Ke(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.l===n.l&&t.a===n.a}static fromRGBA(t){const n=t.r/255,r=t.g/255,i=t.b/255,s=t.a,a=Math.max(n,r,i),l=Math.min(n,r,i);let o=0,u=0;const h=(l+a)/2,f=a-l;if(f>0){switch(u=Math.min(h<=.5?f/(2*h):f/(2-2*h),1),a){case n:o=(r-i)/f+(r<i?6:0);break;case r:o=(i-n)/f+2;break;case i:o=(n-r)/f+4;break}o*=60,o=Math.round(o)}return new Ne(o,u,h,s)}static _hue2rgb(t,n,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+(n-t)*6*r:r<1/2?n:r<2/3?t+(n-t)*(2/3-r)*6:t}static toRGBA(t){const n=t.h/360,{s:r,l:i,a:s}=t;let a,l,o;if(r===0)a=l=o=i;else{const u=i<.5?i*(1+r):i+r-i*r,h=2*i-u;a=Ne._hue2rgb(h,u,n+1/3),l=Ne._hue2rgb(h,u,n),o=Ne._hue2rgb(h,u,n-1/3)}return new ae(Math.round(a*255),Math.round(l*255),Math.round(o*255),s)}}class Lt{constructor(t,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Ke(Math.max(Math.min(1,n),0),3),this.v=Ke(Math.max(Math.min(1,r),0),3),this.a=Ke(Math.max(Math.min(1,i),0),3)}static equals(t,n){return t.h===n.h&&t.s===n.s&&t.v===n.v&&t.a===n.a}static fromRGBA(t){const n=t.r/255,r=t.g/255,i=t.b/255,s=Math.max(n,r,i),a=Math.min(n,r,i),l=s-a,o=s===0?0:l/s;let u;return l===0?u=0:s===n?u=((r-i)/l%6+6)%6:s===r?u=(i-n)/l+2:u=(n-r)/l+4,new Lt(Math.round(u*60),o,s,t.a)}static toRGBA(t){const{h:n,s:r,v:i,a:s}=t,a=i*r,l=a*(1-Math.abs(n/60%2-1)),o=i-a;let[u,h,f]=[0,0,0];return n<60?(u=a,h=l):n<120?(u=l,h=a):n<180?(h=a,f=l):n<240?(h=l,f=a):n<300?(u=l,f=a):n<=360&&(u=a,f=l),u=Math.round((u+o)*255),h=Math.round((h+o)*255),f=Math.round((f+o)*255),new ae(u,h,f,s)}}let Sn=(G=class{static fromHex(t){return G.Format.CSS.parseHex(t)||G.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:Ne.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Lt.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof ae)this.rgba=t;else if(t instanceof Ne)this._hsla=t,this.rgba=Ne.toRGBA(t);else if(t instanceof Lt)this._hsva=t,this.rgba=Lt.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&ae.equals(this.rgba,t.rgba)&&Ne.equals(this.hsla,t.hsla)&&Lt.equals(this.hsva,t.hsva)}getRelativeLuminance(){const t=G._relativeLuminanceForComponent(this.rgba.r),n=G._relativeLuminanceForComponent(this.rgba.g),r=G._relativeLuminanceForComponent(this.rgba.b),i=.2126*t+.7152*n+.0722*r;return Ke(i,4)}static _relativeLuminanceForComponent(t){const n=t/255;return n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n>r}isDarkerThan(t){const n=this.getRelativeLuminance(),r=t.getRelativeLuminance();return n<r}lighten(t){return new G(new Ne(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new G(new Ne(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){const{r:n,g:r,b:i,a:s}=this.rgba;return new G(new ae(n,r,i,s*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new G(new ae(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;const{r:n,g:r,b:i,a:s}=this.rgba;return new G(new ae(t.rgba.r-s*(t.rgba.r-n),t.rgba.g-s*(t.rgba.g-r),t.rgba.b-s*(t.rgba.b-i),1))}toString(){return this._toString||(this._toString=G.Format.CSS.format(this)),this._toString}static getLighterColor(t,n,r){if(t.isLighterThan(n))return t;r=r||.5;const i=t.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(s-i)/s,t.lighten(r)}static getDarkerColor(t,n,r){if(t.isDarkerThan(n))return t;r=r||.5;const i=t.getRelativeLuminance(),s=n.getRelativeLuminance();return r=r*(i-s)/i,t.darken(r)}},G.white=new G(new ae(255,255,255,1)),G.black=new G(new ae(0,0,0,1)),G.red=new G(new ae(255,0,0,1)),G.blue=new G(new ae(0,0,255,1)),G.green=new G(new ae(0,255,0,1)),G.cyan=new G(new ae(0,255,255,1)),G.lightgrey=new G(new ae(211,211,211,1)),G.transparent=new G(new ae(0,0,0,0)),G);(function(e){(function(t){(function(n){function r(d){return d.rgba.a===1?`rgb(${d.rgba.r}, ${d.rgba.g}, ${d.rgba.b})`:e.Format.CSS.formatRGBA(d)}n.formatRGB=r;function i(d){return`rgba(${d.rgba.r}, ${d.rgba.g}, ${d.rgba.b}, ${+d.rgba.a.toFixed(2)})`}n.formatRGBA=i;function s(d){return d.hsla.a===1?`hsl(${d.hsla.h}, ${(d.hsla.s*100).toFixed(2)}%, ${(d.hsla.l*100).toFixed(2)}%)`:e.Format.CSS.formatHSLA(d)}n.formatHSL=s;function a(d){return`hsla(${d.hsla.h}, ${(d.hsla.s*100).toFixed(2)}%, ${(d.hsla.l*100).toFixed(2)}%, ${d.hsla.a.toFixed(2)})`}n.formatHSLA=a;function l(d){const g=d.toString(16);return g.length!==2?"0"+g:g}function o(d){return`#${l(d.rgba.r)}${l(d.rgba.g)}${l(d.rgba.b)}`}n.formatHex=o;function u(d,g=!1){return g&&d.rgba.a===1?e.Format.CSS.formatHex(d):`#${l(d.rgba.r)}${l(d.rgba.g)}${l(d.rgba.b)}${l(Math.round(d.rgba.a*255))}`}n.formatHexA=u;function h(d){return d.isOpaque()?e.Format.CSS.formatHex(d):e.Format.CSS.formatRGBA(d)}n.format=h;function f(d){const g=d.length;if(g===0||d.charCodeAt(0)!==35)return null;if(g===7){const p=16*m(d.charCodeAt(1))+m(d.charCodeAt(2)),y=16*m(d.charCodeAt(3))+m(d.charCodeAt(4)),w=16*m(d.charCodeAt(5))+m(d.charCodeAt(6));return new e(new ae(p,y,w,1))}if(g===9){const p=16*m(d.charCodeAt(1))+m(d.charCodeAt(2)),y=16*m(d.charCodeAt(3))+m(d.charCodeAt(4)),w=16*m(d.charCodeAt(5))+m(d.charCodeAt(6)),_=16*m(d.charCodeAt(7))+m(d.charCodeAt(8));return new e(new ae(p,y,w,_/255))}if(g===4){const p=m(d.charCodeAt(1)),y=m(d.charCodeAt(2)),w=m(d.charCodeAt(3));return new e(new ae(16*p+p,16*y+y,16*w+w))}if(g===5){const p=m(d.charCodeAt(1)),y=m(d.charCodeAt(2)),w=m(d.charCodeAt(3)),_=m(d.charCodeAt(4));return new e(new ae(16*p+p,16*y+y,16*w+w,(16*_+_)/255))}return null}n.parseHex=f;function m(d){switch(d){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(t.CSS||(t.CSS={}))})(e.Format||(e.Format={}))})(Sn||(Sn={}));function ua(e){const t=[];for(const n of e){const r=Number(n);(r||r===0&&n.replace(/\\s/g,"")!=="")&&t.push(r)}return t}function Rr(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function zt(e,t){const n=t.index,r=t[0].length;if(!n)return;const i=e.positionAt(n);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+r}}function mc(e,t){if(!e)return;const n=Sn.Format.CSS.parseHex(t);if(n)return{range:e,color:Rr(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function ca(e,t,n){if(!e||t.length!==1)return;const i=t[0].values(),s=ua(i);return{range:e,color:Rr(s[0],s[1],s[2],n?s[3]:1)}}function fa(e,t,n){if(!e||t.length!==1)return;const i=t[0].values(),s=ua(i),a=new Sn(new Ne(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:e,color:Rr(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function Gt(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function dc(e){const t=[],r=Gt(e,/\\b(rgb|rgba|hsl|hsla)(\\([0-9\\s,.\\%]*\\))|(#)([A-Fa-f0-9]{3})\\b|(#)([A-Fa-f0-9]{4})\\b|(#)([A-Fa-f0-9]{6})\\b|(#)([A-Fa-f0-9]{8})\\b/gm);if(r.length>0)for(const i of r){const s=i.filter(u=>u!==void 0),a=s[1],l=s[2];if(!l)continue;let o;if(a==="rgb"){const u=/^\\(\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*\\)$/gm;o=ca(zt(e,i),Gt(l,u),!1)}else if(a==="rgba"){const u=/^\\(\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\\s*,\\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\\s*\\)$/gm;o=ca(zt(e,i),Gt(l,u),!0)}else if(a==="hsl"){const u=/^\\(\\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*\\)$/gm;o=fa(zt(e,i),Gt(l,u),!1)}else if(a==="hsla"){const u=/^\\(\\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*,\\s*(100|\\d{1,2}[.]\\d*|\\d{1,2})%\\s*,\\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\\s*\\)$/gm;o=fa(zt(e,i),Gt(l,u),!0)}else a==="#"&&(o=mc(zt(e,i),a+l));o&&t.push(o)}return t}function gc(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:dc(e)}const ha=new RegExp("\\\\bMARK:\\\\s*(.*)$","d"),pc=/^-+|-+$/g;function bc(e,t){let n=[];if(t.findRegionSectionHeaders&&t.foldingRules?.markers){const r=yc(e,t);n=n.concat(r)}if(t.findMarkSectionHeaders){const r=vc(e);n=n.concat(r)}return n}function yc(e,t){const n=[],r=e.getLineCount();for(let i=1;i<=r;i++){const s=e.getLineContent(i),a=s.match(t.foldingRules.markers.start);if(a){const l={startLineNumber:i,startColumn:a[0].length+1,endLineNumber:i,endColumn:s.length+1};if(l.endColumn>l.startColumn){const o={range:l,...ma(s.substring(a[0].length)),shouldBeInComments:!1};(o.text||o.hasSeparatorLine)&&n.push(o)}}}return n}function vc(e){const t=[],n=e.getLineCount();for(let r=1;r<=n;r++){const i=e.getLineContent(r);xc(i,r,t)}return t}function xc(e,t,n){ha.lastIndex=0;const r=ha.exec(e);if(r){const i=r.indices[1][0]+1,s=r.indices[1][1]+1,a={startLineNumber:t,startColumn:i,endLineNumber:t,endColumn:s};if(a.endColumn>a.startColumn){const l={range:a,...ma(r[1]),shouldBeInComments:!0};(l.text||l.hasSeparatorLine)&&n.push(l)}}}function ma(e){e=e.trim();const t=e.startsWith("-");return e=e.replace(pc,""),{text:e,hasSeparatorLine:t}}var da;(function(e){async function t(r){let i;const s=await Promise.all(r.map(a=>a.then(l=>l,l=>{i||(i=l)})));if(typeof i<"u")throw i;return s}e.settled=t;function n(r){return new Promise(async(i,s)=>{try{await r(i,s)}catch(a){s(a)}})}e.withAsyncBody=n})(da||(da={}));const de=class de{static fromArray(t){return new de(n=>{n.emitMany(t)})}static fromPromise(t){return new de(async n=>{n.emitMany(await t)})}static fromPromises(t){return new de(async n=>{await Promise.all(t.map(async r=>n.emitOne(await r)))})}static merge(t){return new de(async n=>{await Promise.all(t.map(async r=>{for await(const i of r)n.emitOne(i)}))})}constructor(t,n){this._state=0,this._results=[],this._error=null,this._onReturn=n,this._onStateChanged=new _e,queueMicrotask(async()=>{const r={emitOne:i=>this.emitOne(i),emitMany:i=>this.emitMany(i),reject:i=>this.reject(i)};try{await Promise.resolve(t(r)),this.resolve()}catch(i){this.reject(i)}finally{r.emitOne=void 0,r.emitMany=void 0,r.reject=void 0}})}[Symbol.asyncIterator](){let t=0;return{next:async()=>{do{if(this._state===2)throw this._error;if(t<this._results.length)return{done:!1,value:this._results[t++]};if(this._state===1)return{done:!0,value:void 0};await un.toPromise(this._onStateChanged.event)}while(!0)},return:async()=>(this._onReturn?.(),{done:!0,value:void 0})}}static map(t,n){return new de(async r=>{for await(const i of t)r.emitOne(n(i))})}map(t){return de.map(this,t)}static filter(t,n){return new de(async r=>{for await(const i of t)n(i)&&r.emitOne(i)})}filter(t){return de.filter(this,t)}static coalesce(t){return de.filter(t,n=>!!n)}coalesce(){return de.coalesce(this)}static async toPromise(t){const n=[];for await(const r of t)n.push(r);return n}toPromise(){return de.toPromise(this)}emitOne(t){this._state===0&&(this._results.push(t),this._onStateChanged.fire())}emitMany(t){this._state===0&&(this._results=this._results.concat(t),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(t){this._state===0&&(this._state=2,this._error=t,this._onStateChanged.fire())}};de.EMPTY=de.fromArray([]);let ga=de;class wc{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=vt(t);const r=this.values,i=this.prefixSum,s=n.length;return s===0?!1:(this.values=new Uint32Array(r.length+s),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t),t+s),this.values.set(n,t),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,n){return t=vt(t),n=vt(n),this.values[t]===n?!1:(this.values[t]=n,t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),!0)}removeValues(t,n){t=vt(t),n=vt(n);const r=this.values,i=this.prefixSum;if(t>=r.length)return!1;const s=r.length-t;return n>=s&&(n=s),n===0?!1:(this.values=new Uint32Array(r.length-n),this.values.set(r.subarray(0,t),0),this.values.set(r.subarray(t+n),t),this.prefixSum=new Uint32Array(this.values.length),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=vt(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let n=this.prefixSumValidIndex[0]+1;n===0&&(this.prefixSum[0]=this.values[0],n++),t>=this.values.length&&(t=this.values.length-1);for(let r=n;r<=t;r++)this.prefixSum[r]=this.prefixSum[r-1]+this.values[r];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let n=0,r=this.values.length-1,i=0,s=0,a=0;for(;n<=r;)if(i=n+(r-n)/2|0,s=this.prefixSum[i],a=s-this.values[i],t<a)r=i-1;else if(t>=s)n=i+1;else break;return new _c(i,t-a)}}class _c{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class Lc{constructor(t,n,r,i){this._uri=t,this._lines=n,this._eol=r,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);const n=t.changes;for(const r of n)this._acceptDeleteRange(r.range),this._acceptInsertText(new ee(r.range.startLineNumber,r.range.startColumn),r.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){const t=this._eol.length,n=this._lines.length,r=new Uint32Array(n);for(let i=0;i<n;i++)r[i]=this._lines[i].length+t;this._lineStarts=new wc(r)}}_setLineText(t,n){this._lines[t]=n,this._lineStarts&&this._lineStarts.setValue(t,this._lines[t].length+this._eol.length)}_acceptDeleteRange(t){if(t.startLineNumber===t.endLineNumber){if(t.startColumn===t.endColumn)return;this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.startLineNumber-1].substring(t.endColumn-1));return}this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.endLineNumber-1].substring(t.endColumn-1)),this._lines.splice(t.startLineNumber,t.endLineNumber-t.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(t.startLineNumber,t.endLineNumber-t.startLineNumber)}_acceptInsertText(t,n){if(n.length===0)return;const r=gl(n);if(r.length===1){this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]+this._lines[t.lineNumber-1].substring(t.column-1));return}r[r.length-1]+=this._lines[t.lineNumber-1].substring(t.column-1),this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+r[0]);const i=new Uint32Array(r.length-1);for(let s=1;s<r.length;s++)this._lines.splice(t.lineNumber+s-1,0,r[s]),i[s-1]=r[s].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(t.lineNumber,i)}}class Nc{constructor(){this._models=Object.create(null)}getModel(t){return this._models[t]}getModels(){const t=[];return Object.keys(this._models).forEach(n=>t.push(this._models[n])),t}$acceptNewModel(t){this._models[t.url]=new Sc(Pe.parse(t.url),t.lines,t.EOL,t.versionId)}$acceptModelChanged(t,n){if(!this._models[t])return;this._models[t].onEvents(n)}$acceptRemovedModel(t){this._models[t]&&delete this._models[t]}}class Sc extends Lc{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){const n=[];for(let r=0;r<this._lines.length;r++){const i=this._lines[r],s=this.offsetAt(new ee(r+1,1)),a=i.matchAll(t);for(const l of a)(l.index||l.index===0)&&(l.index=l.index+s),n.push(l)}return n}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(t){return this._lines[t-1]}getWordAtPosition(t,n){const r=xr(t.column,Us(n),this._lines[t.lineNumber-1],0);return r?new z(t.lineNumber,r.startColumn,t.lineNumber,r.endColumn):null}words(t){const n=this._lines,r=this._wordenize.bind(this);let i=0,s="",a=0,l=[];return{*[Symbol.iterator](){for(;;)if(a<l.length){const o=s.substring(l[a].start,l[a].end);a+=1,yield o}else if(i<n.length)s=n[i],l=r(s,t),a=0,i+=1;else break}}}getLineWords(t,n){const r=this._lines[t-1],i=this._wordenize(r,n),s=[];for(const a of i)s.push({word:r.substring(a.start,a.end),startColumn:a.start+1,endColumn:a.end+1});return s}_wordenize(t,n){const r=[];let i;for(n.lastIndex=0;(i=n.exec(t))&&i[0].length!==0;)r.push({start:i.index,end:i.index+i[0].length});return r}getValueInRange(t){if(t=this._validateRange(t),t.startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);const n=this._eol,r=t.startLineNumber-1,i=t.endLineNumber-1,s=[];s.push(this._lines[r].substring(t.startColumn-1));for(let a=r+1;a<i;a++)s.push(this._lines[a]);return s.push(this._lines[i].substring(0,t.endColumn-1)),s.join(n)}offsetAt(t){return t=this._validatePosition(t),this._ensureLineStarts(),this._lineStarts.getPrefixSum(t.lineNumber-2)+(t.column-1)}positionAt(t){t=Math.floor(t),t=Math.max(0,t),this._ensureLineStarts();const n=this._lineStarts.getIndexOf(t),r=this._lines[n.index].length;return{lineNumber:1+n.index,column:1+Math.min(n.remainder,r)}}_validateRange(t){const n=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),r=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return n.lineNumber!==t.startLineNumber||n.column!==t.startColumn||r.lineNumber!==t.endLineNumber||r.column!==t.endColumn?{startLineNumber:n.lineNumber,startColumn:n.column,endLineNumber:r.lineNumber,endColumn:r.column}:t}_validatePosition(t){if(!ee.isIPosition(t))throw new Error("bad position");let{lineNumber:n,column:r}=t,i=!1;if(n<1)n=1,r=1,i=!0;else if(n>this._lines.length)n=this._lines.length,r=this._lines[n-1].length+1,i=!0;else{const s=this._lines[n-1].length+1;r<1?(r=1,i=!0):r>s&&(r=s,i=!0)}return i?{lineNumber:n,column:r}:t}}const Un=class Un{constructor(){this._workerTextModelSyncServer=new Nc}dispose(){}_getModel(t){return this._workerTextModelSyncServer.getModel(t)}_getModels(){return this._workerTextModelSyncServer.getModels()}$acceptNewModel(t){this._workerTextModelSyncServer.$acceptNewModel(t)}$acceptModelChanged(t,n){this._workerTextModelSyncServer.$acceptModelChanged(t,n)}$acceptRemovedModel(t){this._workerTextModelSyncServer.$acceptRemovedModel(t)}async $computeUnicodeHighlights(t,n,r){const i=this._getModel(t);return i?Cu.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async $findSectionHeaders(t,n){const r=this._getModel(t);return r?bc(r,n):[]}async $computeDiff(t,n,r,i){const s=this._getModel(t),a=this._getModel(n);return!s||!a?null:An.computeDiff(s,a,r,i)}static computeDiff(t,n,r,i){const s=i==="advanced"?la.getDefault():la.getLegacy(),a=t.getLinesContent(),l=n.getLinesContent(),o=s.computeDiff(a,l,r),u=o.changes.length>0?!1:this._modelsAreIdentical(t,n);function h(f){return f.map(m=>[m.original.startLineNumber,m.original.endLineNumberExclusive,m.modified.startLineNumber,m.modified.endLineNumberExclusive,m.innerChanges?.map(d=>[d.originalRange.startLineNumber,d.originalRange.startColumn,d.originalRange.endLineNumber,d.originalRange.endColumn,d.modifiedRange.startLineNumber,d.modifiedRange.startColumn,d.modifiedRange.endLineNumber,d.modifiedRange.endColumn])])}return{identical:u,quitEarly:o.hitTimeout,changes:h(o.changes),moves:o.moves.map(f=>[f.lineRangeMapping.original.startLineNumber,f.lineRangeMapping.original.endLineNumberExclusive,f.lineRangeMapping.modified.startLineNumber,f.lineRangeMapping.modified.endLineNumberExclusive,h(f.changes)])}}static _modelsAreIdentical(t,n){const r=t.getLineCount(),i=n.getLineCount();if(r!==i)return!1;for(let s=1;s<=r;s++){const a=t.getLineContent(s),l=n.getLineContent(s);if(a!==l)return!1}return!0}async $computeMoreMinimalEdits(t,n,r){const i=this._getModel(t);if(!i)return n;const s=[];let a;n=n.slice(0).sort((o,u)=>{if(o.range&&u.range)return z.compareRangesUsingStarts(o.range,u.range);const h=o.range?0:1,f=u.range?0:1;return h-f});let l=0;for(let o=1;o<n.length;o++)z.getEndPosition(n[l].range).equals(z.getStartPosition(n[o].range))?(n[l].range=z.fromPositions(z.getStartPosition(n[l].range),z.getEndPosition(n[o].range)),n[l].text+=n[o].text):(l++,n[l]=n[o]);n.length=l+1;for(let{range:o,text:u,eol:h}of n){if(typeof h=="number"&&(a=h),z.isEmpty(o)&&!u)continue;const f=i.getValueInRange(o);if(u=u.replace(/\\r\\n|\\n|\\r/g,i.eol),f===u)continue;if(Math.max(u.length,f.length)>An._diffLimit){s.push({range:o,text:u});continue}const m=eu(f,u,r),d=i.offsetAt(z.lift(o).getStartPosition());for(const g of m){const p=i.positionAt(d+g.originalStart),y=i.positionAt(d+g.originalStart+g.originalLength),w={text:u.substr(g.modifiedStart,g.modifiedLength),range:{startLineNumber:p.lineNumber,startColumn:p.column,endLineNumber:y.lineNumber,endColumn:y.column}};i.getValueInRange(w.range)!==w.text&&s.push(w)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s}async $computeLinks(t){const n=this._getModel(t);return n?su(n):null}async $computeDefaultDocumentColors(t){const n=this._getModel(t);return n?gc(n):null}async $textualSuggest(t,n,r,i){const s=new ln,a=new RegExp(r,i),l=new Set;e:for(const o of t){const u=this._getModel(o);if(u){for(const h of u.words(a))if(!(h===n||!isNaN(Number(h)))&&(l.add(h),l.size>An._suggestionsLimit))break e}}return{words:Array.from(l),duration:s.elapsed()}}async $computeWordRanges(t,n,r,i){const s=this._getModel(t);if(!s)return Object.create(null);const a=new RegExp(r,i),l=Object.create(null);for(let o=n.startLineNumber;o<n.endLineNumber;o++){const u=s.getLineWords(o,a);for(const h of u){if(!isNaN(Number(h.word)))continue;let f=l[h.word];f||(f=[],l[h.word]=f),f.push({startLineNumber:o,startColumn:h.startColumn,endLineNumber:o,endColumn:h.endColumn})}}return l}async $navigateValueSet(t,n,r,i,s){const a=this._getModel(t);if(!a)return null;const l=new RegExp(i,s);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});const o=a.getValueInRange(n),u=a.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},l);if(!u)return null;const h=a.getValueInRange(u);return cr.INSTANCE.navigateValueSet(n,o,u,h,r)}};Un._diffLimit=1e5,Un._suggestionsLimit=1e4;let Er=Un;class An extends Er{constructor(t,n){super(),this._host=t,this._foreignModuleFactory=n,this._foreignModule=null}async $ping(){return"pong"}$loadForeignModule(t,n,r){const a={host:_u(r,(l,o)=>this._host.$fhr(l,o)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,n),Promise.resolve(Fs(this._foreignModule))):new Promise((l,o)=>{const u=h=>{this._foreignModule=h.create(a,n),l(Fs(this._foreignModule))};import(`${wi.asBrowserUri(`${t}.js`).toString(!0)}`).then(u).catch(o)})}$fmr(t,n){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,n))}catch(r){return Promise.reject(r)}}}typeof importScripts=="function"&&(globalThis.monaco=pu());let Mr=!1;function pa(e){if(Mr)return;Mr=!0;const t=new Zl(n=>{globalThis.postMessage(n)},n=>new An(vr.getChannel(n),e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{Mr||pa(null)};/*!-----------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Version: 0.52.2(404545bded1df6ffa41ea0af4e8ddb219018c6c1)\n * Released under the MIT license\n * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt\n *-----------------------------------------------------------------------------*/function Cr(e,t=!1){const n=e.length;let r=0,i="",s=0,a=16,l=0,o=0,u=0,h=0,f=0;function m(v,x){let b=0,L=0;for(;b<v;){let S=e.charCodeAt(r);if(S>=48&&S<=57)L=L*16+S-48;else if(S>=65&&S<=70)L=L*16+S-65+10;else if(S>=97&&S<=102)L=L*16+S-97+10;else break;r++,b++}return b<v&&(L=-1),L}function d(v){r=v,i="",s=0,a=16,f=0}function g(){let v=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&Nt(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&Nt(e.charCodeAt(r)))for(r++;r<e.length&&Nt(e.charCodeAt(r));)r++;else return f=3,e.substring(v,r);let x=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&Nt(e.charCodeAt(r))){for(r++;r<e.length&&Nt(e.charCodeAt(r));)r++;x=r}else f=3;return e.substring(v,x)}function p(){let v="",x=r;for(;;){if(r>=n){v+=e.substring(x,r),f=2;break}const b=e.charCodeAt(r);if(b===34){v+=e.substring(x,r),r++;break}if(b===92){if(v+=e.substring(x,r),r++,r>=n){f=2;break}switch(e.charCodeAt(r++)){case 34:v+=\'"\';break;case 92:v+="\\\\";break;case 47:v+="/";break;case 98:v+="\\b";break;case 102:v+="\\f";break;case 110:v+=`\n`;break;case 114:v+="\\r";break;case 116:v+=" ";break;case 117:const S=m(4);S>=0?v+=String.fromCharCode(S):f=4;break;default:f=5}x=r;continue}if(b>=0&&b<=31)if(Jt(b)){v+=e.substring(x,r),f=2;break}else f=6;r++}return v}function y(){if(i="",f=0,s=r,o=l,h=u,r>=n)return s=n,a=17;let v=e.charCodeAt(r);if(Tr(v)){do r++,i+=String.fromCharCode(v),v=e.charCodeAt(r);while(Tr(v));return a=15}if(Jt(v))return r++,i+=String.fromCharCode(v),v===13&&e.charCodeAt(r)===10&&(r++,i+=`\n`),l++,u=r,a=14;switch(v){case 123:return r++,a=1;case 125:return r++,a=2;case 91:return r++,a=3;case 93:return r++,a=4;case 58:return r++,a=6;case 44:return r++,a=5;case 34:return r++,i=p(),a=10;case 47:const x=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!Jt(e.charCodeAt(r));)r++;return i=e.substring(x,r),a=12}if(e.charCodeAt(r+1)===42){r+=2;const b=n-1;let L=!1;for(;r<b;){const S=e.charCodeAt(r);if(S===42&&e.charCodeAt(r+1)===47){r+=2,L=!0;break}r++,Jt(S)&&(S===13&&e.charCodeAt(r)===10&&r++,l++,u=r)}return L||(r++,f=1),i=e.substring(x,r),a=13}return i+=String.fromCharCode(v),r++,a=16;case 45:if(i+=String.fromCharCode(v),r++,r===n||!Nt(e.charCodeAt(r)))return a=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=g(),a=11;default:for(;r<n&&w(v);)r++,v=e.charCodeAt(r);if(s!==r){switch(i=e.substring(s,r),i){case"true":return a=8;case"false":return a=9;case"null":return a=7}return a=16}return i+=String.fromCharCode(v),r++,a=16}}function w(v){if(Tr(v)||Jt(v))return!1;switch(v){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function _(){let v;do v=y();while(v>=12&&v<=15);return v}return{setPosition:d,getPosition:()=>r,scan:t?_:y,getToken:()=>a,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>r-s,getTokenStartLine:()=>o,getTokenStartCharacter:()=>s-h,getTokenError:()=>f}}function Tr(e){return e===32||e===9}function Jt(e){return e===10||e===13}function Nt(e){return e>=48&&e<=57}var ba;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(ba||(ba={}));var Se=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),St=200,ya={" ":{"\\n":new Array(St).fill(0).map((e,t)=>`\n`+" ".repeat(t)),"\\r":new Array(St).fill(0).map((e,t)=>"\\r"+" ".repeat(t)),"\\r\\n":new Array(St).fill(0).map((e,t)=>`\\r\n`+" ".repeat(t))}," ":{"\\n":new Array(St).fill(0).map((e,t)=>`\n`+" ".repeat(t)),"\\r":new Array(St).fill(0).map((e,t)=>"\\r"+" ".repeat(t)),"\\r\\n":new Array(St).fill(0).map((e,t)=>`\\r\n`+" ".repeat(t))}},Ac=[`\n`,"\\r",`\\r\n`];function kc(e,t,n){let r,i,s,a,l;if(t){for(a=t.offset,l=a+t.length,s=a;s>0&&!va(e,s-1);)s--;let b=l;for(;b<e.length&&!va(e,b);)b++;i=e.substring(s,b),r=Rc(i,n)}else i=e,r=0,s=0,a=0,l=e.length;const o=Ec(n,e),u=Ac.includes(o);let h=0,f=0,m;n.insertSpaces?m=Se[n.tabSize||4]??At(Se[1],n.tabSize||4):m=" ";const d=m===" "?" ":" ";let g=Cr(i,!1),p=!1;function y(){if(h>1)return At(o,h)+At(m,r+f);const b=m.length*(r+f);return!u||b>ya[d][o].length?o+At(m,r+f):b<=0?o:ya[d][o][b]}function w(){let b=g.scan();for(h=0;b===15||b===14;)b===14&&n.keepLines?h+=1:b===14&&(h=1),b=g.scan();return p=b===16||g.getTokenError()!==0,b}const _=[];function v(b,L,S){!p&&(!t||L<l&&S>a)&&e.substring(L,S)!==b&&_.push({offset:L,length:S-L,content:b})}let x=w();if(n.keepLines&&h>0&&v(At(o,h),0,0),x!==17){let b=g.getTokenOffset()+s,L=m.length*r<20&&n.insertSpaces?Se[m.length*r]:At(m,r);v(L,s,b)}for(;x!==17;){let b=g.getTokenOffset()+g.getTokenLength()+s,L=w(),S="",M=!1;for(;h===0&&(L===12||L===13);){let O=g.getTokenOffset()+s;v(Se[1],b,O),b=g.getTokenOffset()+g.getTokenLength()+s,M=L===12,S=M?y():"",L=w()}if(L===2)x!==1&&f--,n.keepLines&&h>0||!n.keepLines&&x!==1?S=y():n.keepLines&&(S=Se[1]);else if(L===4)x!==3&&f--,n.keepLines&&h>0||!n.keepLines&&x!==3?S=y():n.keepLines&&(S=Se[1]);else{switch(x){case 3:case 1:f++,n.keepLines&&h>0||!n.keepLines?S=y():S=Se[1];break;case 5:n.keepLines&&h>0||!n.keepLines?S=y():S=Se[1];break;case 12:S=y();break;case 13:h>0?S=y():M||(S=Se[1]);break;case 6:n.keepLines&&h>0?S=y():M||(S=Se[1]);break;case 10:n.keepLines&&h>0?S=y():L===6&&!M&&(S="");break;case 7:case 8:case 9:case 11:case 2:case 4:n.keepLines&&h>0?S=y():(L===12||L===13)&&!M?S=Se[1]:L!==5&&L!==17&&(p=!0);break;case 16:p=!0;break}h>0&&(L===12||L===13)&&(S=y())}L===17&&(n.keepLines&&h>0?S=y():S=n.insertFinalNewline?o:"");const F=g.getTokenOffset()+s;v(S,b,F),x=L}return _}function At(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function Rc(e,t){let n=0,r=0;const i=t.tabSize||4;for(;n<e.length;){let s=e.charAt(n);if(s===Se[1])r++;else if(s===" ")r+=i;else break;n++}return Math.floor(r/i)}function Ec(e,t){for(let n=0;n<t.length;n++){const r=t.charAt(n);if(r==="\\r")return n+1<t.length&&t.charAt(n+1)===`\n`?`\\r\n`:"\\r";if(r===`\n`)return`\n`}return e&&e.eol||`\n`}function va(e,t){return`\\r\n`.indexOf(e.charAt(t))!==-1}var kn;(function(e){e.DEFAULT={allowTrailingComma:!1}})(kn||(kn={}));function Mc(e,t=[],n=kn.DEFAULT){let r=null,i=[];const s=[];function a(o){Array.isArray(i)?i.push(o):r!==null&&(i[r]=o)}return Tc(e,{onObjectBegin:()=>{const o={};a(o),s.push(i),i=o,r=null},onObjectProperty:o=>{r=o},onObjectEnd:()=>{i=s.pop()},onArrayBegin:()=>{const o=[];a(o),s.push(i),i=o,r=null},onArrayEnd:()=>{i=s.pop()},onLiteralValue:a,onError:(o,u,h)=>{t.push({error:o,offset:u,length:h})}},n),i[0]}function xa(e){if(!e.parent||!e.parent.children)return[];const t=xa(e.parent);if(e.parent.type==="property"){const n=e.parent.children[0].value;t.push(n)}else if(e.parent.type==="array"){const n=e.parent.children.indexOf(e);n!==-1&&t.push(n)}return t}function Pr(e){switch(e.type){case"array":return e.children.map(Pr);case"object":const t=Object.create(null);for(let n of e.children){const r=n.children[1];r&&(t[n.children[0].value]=Pr(r))}return t;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function Cc(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}function wa(e,t,n=!1){if(Cc(e,t,n)){const r=e.children;if(Array.isArray(r))for(let i=0;i<r.length&&r[i].offset<=t;i++){const s=wa(r[i],t,n);if(s)return s}return e}}function Tc(e,t,n=kn.DEFAULT){const r=Cr(e,!1),i=[];function s(N){return N?()=>N(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(N){return N?()=>N(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}function l(N){return N?k=>N(k,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function o(N){return N?k=>N(k,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}const u=a(t.onObjectBegin),h=o(t.onObjectProperty),f=s(t.onObjectEnd),m=a(t.onArrayBegin),d=s(t.onArrayEnd),g=o(t.onLiteralValue),p=l(t.onSeparator),y=s(t.onComment),w=l(t.onError),_=n&&n.disallowComments,v=n&&n.allowTrailingComma;function x(){for(;;){const N=r.scan();switch(r.getTokenError()){case 4:b(14);break;case 5:b(15);break;case 3:b(13);break;case 1:_||b(11);break;case 2:b(12);break;case 6:b(16);break}switch(N){case 12:case 13:_?b(10):y();break;case 16:b(1);break;case 15:case 14:break;default:return N}}}function b(N,k=[],R=[]){if(w(N),k.length+R.length>0){let I=r.getToken();for(;I!==17;){if(k.indexOf(I)!==-1){x();break}else if(R.indexOf(I)!==-1)break;I=x()}}}function L(N){const k=r.getTokenValue();return N?g(k):(h(k),i.push(k)),x(),!0}function S(){switch(r.getToken()){case 11:const N=r.getTokenValue();let k=Number(N);isNaN(k)&&(b(2),k=0),g(k);break;case 7:g(null);break;case 8:g(!0);break;case 9:g(!1);break;default:return!1}return x(),!0}function M(){return r.getToken()!==10?(b(3,[],[2,5]),!1):(L(!1),r.getToken()===6?(p(":"),x(),C()||b(4,[],[2,5])):b(5,[],[2,5]),i.pop(),!0)}function F(){u(),x();let N=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(N||b(4,[],[]),p(","),x(),r.getToken()===2&&v)break}else N&&b(6,[],[]);M()||b(4,[],[2,5]),N=!0}return f(),r.getToken()!==2?b(7,[2],[]):x(),!0}function O(){m(),x();let N=!0,k=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(k||b(4,[],[]),p(","),x(),r.getToken()===4&&v)break}else k&&b(6,[],[]);N?(i.push(0),N=!1):i[i.length-1]++,C()||b(4,[],[4,5]),k=!0}return d(),N||i.pop(),r.getToken()!==4?b(8,[4],[]):x(),!0}function C(){switch(r.getToken()){case 3:return O();case 1:return F();case 10:return L(!0);default:return S()}}return x(),r.getToken()===17?n.allowEmptyContent?!0:(b(4,[],[]),!1):C()?(r.getToken()!==17&&b(9,[],[]),!0):(b(4,[],[]),!1)}var at=Cr,_a;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(_a||(_a={}));var La;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(La||(La={}));var Pc=Mc,Ic=wa,Fc=xa,Vc=Pr,Na;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(Na||(Na={}));function Dc(e,t,n){return kc(e,t,n)}function kt(e,t){if(e===t)return!0;if(e==null||t===null||t===void 0||typeof e!=typeof t||typeof e!="object"||Array.isArray(e)!==Array.isArray(t))return!1;let n,r;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(!kt(e[n],t[n]))return!1}else{const i=[];for(r in e)i.push(r);i.sort();const s=[];for(r in t)s.push(r);if(s.sort(),!kt(i,s))return!1;for(n=0;n<i.length;n++)if(!kt(e[i[n]],t[i[n]]))return!1}return!0}function fe(e){return typeof e=="number"}function Re(e){return typeof e<"u"}function Fe(e){return typeof e=="boolean"}function Sa(e){return typeof e=="string"}function et(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Oc(e,t){if(e.length<t.length)return!1;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function Xt(e,t){const n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:n===0?e===t:!1}function Rn(e){let t="";Oc(e,"(?i)")&&(e=e.substring(4),t="i");try{return new RegExp(e,t+"u")}catch{try{return new RegExp(e,t)}catch{return}}}function Aa(e){let t=0;for(let n=0;n<e.length;n++){t++;const r=e.charCodeAt(n);55296<=r&&r<=56319&&n++}return t}var ka;(function(e){function t(n){return typeof n=="string"}e.is=t})(ka||(ka={}));var Ir;(function(e){function t(n){return typeof n=="string"}e.is=t})(Ir||(Ir={}));var Ra;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(Ra||(Ra={}));var En;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=t})(En||(En={}));var Z;(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=En.MAX_VALUE),i===Number.MAX_VALUE&&(i=En.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){let i=r;return A.objectLiteral(i)&&A.uinteger(i.line)&&A.uinteger(i.character)}e.is=n})(Z||(Z={}));var q;(function(e){function t(r,i,s,a){if(A.uinteger(r)&&A.uinteger(i)&&A.uinteger(s)&&A.uinteger(a))return{start:Z.create(r,i),end:Z.create(s,a)};if(Z.is(r)&&Z.is(i))return{start:r,end:i};throw new Error(`Range#create called with invalid arguments[${r}, ${i}, ${s}, ${a}]`)}e.create=t;function n(r){let i=r;return A.objectLiteral(i)&&Z.is(i.start)&&Z.is(i.end)}e.is=n})(q||(q={}));var Rt;(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){let i=r;return A.objectLiteral(i)&&q.is(i.range)&&(A.string(i.uri)||A.undefined(i.uri))}e.is=n})(Rt||(Rt={}));var Ea;(function(e){function t(r,i,s,a){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}e.create=t;function n(r){let i=r;return A.objectLiteral(i)&&q.is(i.targetRange)&&A.string(i.targetUri)&&q.is(i.targetSelectionRange)&&(q.is(i.originSelectionRange)||A.undefined(i.originSelectionRange))}e.is=n})(Ea||(Ea={}));var Fr;(function(e){function t(r,i,s,a){return{red:r,green:i,blue:s,alpha:a}}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&A.numberRange(i.red,0,1)&&A.numberRange(i.green,0,1)&&A.numberRange(i.blue,0,1)&&A.numberRange(i.alpha,0,1)}e.is=n})(Fr||(Fr={}));var Ma;(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&q.is(i.range)&&Fr.is(i.color)}e.is=n})(Ma||(Ma={}));var Ca;(function(e){function t(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&A.string(i.label)&&(A.undefined(i.textEdit)||Ve.is(i))&&(A.undefined(i.additionalTextEdits)||A.typedArray(i.additionalTextEdits,Ve.is))}e.is=n})(Ca||(Ca={}));var Qt;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Qt||(Qt={}));var Ta;(function(e){function t(r,i,s,a,l,o){const u={startLine:r,endLine:i};return A.defined(s)&&(u.startCharacter=s),A.defined(a)&&(u.endCharacter=a),A.defined(l)&&(u.kind=l),A.defined(o)&&(u.collapsedText=o),u}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&A.uinteger(i.startLine)&&A.uinteger(i.startLine)&&(A.undefined(i.startCharacter)||A.uinteger(i.startCharacter))&&(A.undefined(i.endCharacter)||A.uinteger(i.endCharacter))&&(A.undefined(i.kind)||A.string(i.kind))}e.is=n})(Ta||(Ta={}));var Vr;(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){let i=r;return A.defined(i)&&Rt.is(i.location)&&A.string(i.message)}e.is=n})(Vr||(Vr={}));var ve;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(ve||(ve={}));var Pa;(function(e){e.Unnecessary=1,e.Deprecated=2})(Pa||(Pa={}));var Ia;(function(e){function t(n){const r=n;return A.objectLiteral(r)&&A.string(r.href)}e.is=t})(Ia||(Ia={}));var ze;(function(e){function t(r,i,s,a,l,o){let u={range:r,message:i};return A.defined(s)&&(u.severity=s),A.defined(a)&&(u.code=a),A.defined(l)&&(u.source=l),A.defined(o)&&(u.relatedInformation=o),u}e.create=t;function n(r){var i;let s=r;return A.defined(s)&&q.is(s.range)&&A.string(s.message)&&(A.number(s.severity)||A.undefined(s.severity))&&(A.integer(s.code)||A.string(s.code)||A.undefined(s.code))&&(A.undefined(s.codeDescription)||A.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(A.string(s.source)||A.undefined(s.source))&&(A.undefined(s.relatedInformation)||A.typedArray(s.relatedInformation,Vr.is))}e.is=n})(ze||(ze={}));var Et;(function(e){function t(r,i,...s){let a={title:r,command:i};return A.defined(s)&&s.length>0&&(a.arguments=s),a}e.create=t;function n(r){let i=r;return A.defined(i)&&A.string(i.title)&&A.string(i.command)}e.is=n})(Et||(Et={}));var Ve;(function(e){function t(s,a){return{range:s,newText:a}}e.replace=t;function n(s,a){return{range:{start:s,end:s},newText:a}}e.insert=n;function r(s){return{range:s,newText:""}}e.del=r;function i(s){const a=s;return A.objectLiteral(a)&&A.string(a.newText)&&q.is(a.range)}e.is=i})(Ve||(Ve={}));var Dr;(function(e){function t(r,i,s){const a={label:r};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&A.string(i.label)&&(A.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(A.string(i.description)||i.description===void 0)}e.is=n})(Dr||(Dr={}));var Mt;(function(e){function t(n){const r=n;return A.string(r)}e.is=t})(Mt||(Mt={}));var Fa;(function(e){function t(s,a,l){return{range:s,newText:a,annotationId:l}}e.replace=t;function n(s,a,l){return{range:{start:s,end:s},newText:a,annotationId:l}}e.insert=n;function r(s,a){return{range:s,newText:"",annotationId:a}}e.del=r;function i(s){const a=s;return Ve.is(a)&&(Dr.is(a.annotationId)||Mt.is(a.annotationId))}e.is=i})(Fa||(Fa={}));var Or;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){let i=r;return A.defined(i)&&jr.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Or||(Or={}));var $r;(function(e){function t(r,i,s){let a={kind:"create",uri:r};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="create"&&A.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||A.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||A.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Mt.is(i.annotationId))}e.is=n})($r||($r={}));var Br;(function(e){function t(r,i,s,a){let l={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(l.options=s),a!==void 0&&(l.annotationId=a),l}e.create=t;function n(r){let i=r;return i&&i.kind==="rename"&&A.string(i.oldUri)&&A.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||A.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||A.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||Mt.is(i.annotationId))}e.is=n})(Br||(Br={}));var Ur;(function(e){function t(r,i,s){let a={kind:"delete",uri:r};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(a.options=i),s!==void 0&&(a.annotationId=s),a}e.create=t;function n(r){let i=r;return i&&i.kind==="delete"&&A.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||A.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||A.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||Mt.is(i.annotationId))}e.is=n})(Ur||(Ur={}));var qr;(function(e){function t(n){let r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(i=>A.string(i.kind)?$r.is(i)||Br.is(i)||Ur.is(i):Or.is(i)))}e.is=t})(qr||(qr={}));var Va;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)}e.is=n})(Va||(Va={}));var Da;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)&&A.integer(i.version)}e.is=n})(Da||(Da={}));var jr;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)&&(i.version===null||A.integer(i.version))}e.is=n})(jr||(jr={}));var Oa;(function(e){function t(r,i,s,a){return{uri:r,languageId:i,version:s,text:a}}e.create=t;function n(r){let i=r;return A.defined(i)&&A.string(i.uri)&&A.string(i.languageId)&&A.integer(i.version)&&A.string(i.text)}e.is=n})(Oa||(Oa={}));var ot;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){const r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(ot||(ot={}));var Yt;(function(e){function t(n){const r=n;return A.objectLiteral(n)&&ot.is(r.kind)&&A.string(r.value)}e.is=t})(Yt||(Yt={}));var xe;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(xe||(xe={}));var ie;(function(e){e.PlainText=1,e.Snippet=2})(ie||(ie={}));var $a;(function(e){e.Deprecated=1})($a||($a={}));var Ba;(function(e){function t(r,i,s){return{newText:r,insert:i,replace:s}}e.create=t;function n(r){const i=r;return i&&A.string(i.newText)&&q.is(i.insert)&&q.is(i.replace)}e.is=n})(Ba||(Ba={}));var Ua;(function(e){e.asIs=1,e.adjustIndentation=2})(Ua||(Ua={}));var qa;(function(e){function t(n){const r=n;return r&&(A.string(r.detail)||r.detail===void 0)&&(A.string(r.description)||r.description===void 0)}e.is=t})(qa||(qa={}));var Wr;(function(e){function t(n){return{label:n}}e.create=t})(Wr||(Wr={}));var ja;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(ja||(ja={}));var Mn;(function(e){function t(r){return r.replace(/[\\\\`*_{}[\\]()#+\\-.!]/g,"\\\\$&")}e.fromPlainText=t;function n(r){const i=r;return A.string(i)||A.objectLiteral(i)&&A.string(i.language)&&A.string(i.value)}e.is=n})(Mn||(Mn={}));var Wa;(function(e){function t(n){let r=n;return!!r&&A.objectLiteral(r)&&(Yt.is(r.contents)||Mn.is(r.contents)||A.typedArray(r.contents,Mn.is))&&(n.range===void 0||q.is(n.range))}e.is=t})(Wa||(Wa={}));var Ha;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(Ha||(Ha={}));var za;(function(e){function t(n,r,...i){let s={label:n};return A.defined(r)&&(s.documentation=r),A.defined(i)?s.parameters=i:s.parameters=[],s}e.create=t})(za||(za={}));var Ga;(function(e){e.Text=1,e.Read=2,e.Write=3})(Ga||(Ga={}));var Ja;(function(e){function t(n,r){let i={range:n};return A.number(r)&&(i.kind=r),i}e.create=t})(Ja||(Ja={}));var De;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(De||(De={}));var Xa;(function(e){e.Deprecated=1})(Xa||(Xa={}));var Qa;(function(e){function t(n,r,i,s,a){let l={name:n,kind:r,location:{uri:s,range:i}};return a&&(l.containerName=a),l}e.create=t})(Qa||(Qa={}));var Ya;(function(e){function t(n,r,i,s){return s!==void 0?{name:n,kind:r,location:{uri:i,range:s}}:{name:n,kind:r,location:{uri:i}}}e.create=t})(Ya||(Ya={}));var Za;(function(e){function t(r,i,s,a,l,o){let u={name:r,detail:i,kind:s,range:a,selectionRange:l};return o!==void 0&&(u.children=o),u}e.create=t;function n(r){let i=r;return i&&A.string(i.name)&&A.number(i.kind)&&q.is(i.range)&&q.is(i.selectionRange)&&(i.detail===void 0||A.string(i.detail))&&(i.deprecated===void 0||A.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(Za||(Za={}));var Ka;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Ka||(Ka={}));var Cn;(function(e){e.Invoked=1,e.Automatic=2})(Cn||(Cn={}));var eo;(function(e){function t(r,i,s){let a={diagnostics:r};return i!=null&&(a.only=i),s!=null&&(a.triggerKind=s),a}e.create=t;function n(r){let i=r;return A.defined(i)&&A.typedArray(i.diagnostics,ze.is)&&(i.only===void 0||A.typedArray(i.only,A.string))&&(i.triggerKind===void 0||i.triggerKind===Cn.Invoked||i.triggerKind===Cn.Automatic)}e.is=n})(eo||(eo={}));var to;(function(e){function t(r,i,s){let a={title:r},l=!0;return typeof i=="string"?(l=!1,a.kind=i):Et.is(i)?a.command=i:a.edit=i,l&&s!==void 0&&(a.kind=s),a}e.create=t;function n(r){let i=r;return i&&A.string(i.title)&&(i.diagnostics===void 0||A.typedArray(i.diagnostics,ze.is))&&(i.kind===void 0||A.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Et.is(i.command))&&(i.isPreferred===void 0||A.boolean(i.isPreferred))&&(i.edit===void 0||qr.is(i.edit))}e.is=n})(to||(to={}));var no;(function(e){function t(r,i){let s={range:r};return A.defined(i)&&(s.data=i),s}e.create=t;function n(r){let i=r;return A.defined(i)&&q.is(i.range)&&(A.undefined(i.command)||Et.is(i.command))}e.is=n})(no||(no={}));var ro;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){let i=r;return A.defined(i)&&A.uinteger(i.tabSize)&&A.boolean(i.insertSpaces)}e.is=n})(ro||(ro={}));var io;(function(e){function t(r,i,s){return{range:r,target:i,data:s}}e.create=t;function n(r){let i=r;return A.defined(i)&&q.is(i.range)&&(A.undefined(i.target)||A.string(i.target))}e.is=n})(io||(io={}));var Tn;(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){let i=r;return A.objectLiteral(i)&&q.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(Tn||(Tn={}));var so;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(so||(so={}));var ao;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(ao||(ao={}));var oo;(function(e){function t(n){const r=n;return A.objectLiteral(r)&&(r.resultId===void 0||typeof r.resultId=="string")&&Array.isArray(r.data)&&(r.data.length===0||typeof r.data[0]=="number")}e.is=t})(oo||(oo={}));var lo;(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){const i=r;return i!=null&&q.is(i.range)&&A.string(i.text)}e.is=n})(lo||(lo={}));var uo;(function(e){function t(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}e.create=t;function n(r){const i=r;return i!=null&&q.is(i.range)&&A.boolean(i.caseSensitiveLookup)&&(A.string(i.variableName)||i.variableName===void 0)}e.is=n})(uo||(uo={}));var co;(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){const i=r;return i!=null&&q.is(i.range)&&(A.string(i.expression)||i.expression===void 0)}e.is=n})(co||(co={}));var fo;(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){const i=r;return A.defined(i)&&q.is(r.stoppedLocation)}e.is=n})(fo||(fo={}));var Hr;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(Hr||(Hr={}));var zr;(function(e){function t(r){return{value:r}}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&(i.tooltip===void 0||A.string(i.tooltip)||Yt.is(i.tooltip))&&(i.location===void 0||Rt.is(i.location))&&(i.command===void 0||Et.is(i.command))}e.is=n})(zr||(zr={}));var ho;(function(e){function t(r,i,s){const a={position:r,label:i};return s!==void 0&&(a.kind=s),a}e.create=t;function n(r){const i=r;return A.objectLiteral(i)&&Z.is(i.position)&&(A.string(i.label)||A.typedArray(i.label,zr.is))&&(i.kind===void 0||Hr.is(i.kind))&&i.textEdits===void 0||A.typedArray(i.textEdits,Ve.is)&&(i.tooltip===void 0||A.string(i.tooltip)||Yt.is(i.tooltip))&&(i.paddingLeft===void 0||A.boolean(i.paddingLeft))&&(i.paddingRight===void 0||A.boolean(i.paddingRight))}e.is=n})(ho||(ho={}));var mo;(function(e){function t(n){return{kind:"snippet",value:n}}e.createSnippet=t})(mo||(mo={}));var go;(function(e){function t(n,r,i,s){return{insertText:n,filterText:r,range:i,command:s}}e.create=t})(go||(go={}));var po;(function(e){function t(n){return{items:n}}e.create=t})(po||(po={}));var bo;(function(e){e.Invoked=0,e.Automatic=1})(bo||(bo={}));var yo;(function(e){function t(n,r){return{range:n,text:r}}e.create=t})(yo||(yo={}));var vo;(function(e){function t(n,r){return{triggerKind:n,selectedCompletionInfo:r}}e.create=t})(vo||(vo={}));var xo;(function(e){function t(n){const r=n;return A.objectLiteral(r)&&Ir.is(r.uri)&&A.string(r.name)}e.is=t})(xo||(xo={}));var wo;(function(e){function t(s,a,l,o){return new $c(s,a,l,o)}e.create=t;function n(s){let a=s;return!!(A.defined(a)&&A.string(a.uri)&&(A.undefined(a.languageId)||A.string(a.languageId))&&A.uinteger(a.lineCount)&&A.func(a.getText)&&A.func(a.positionAt)&&A.func(a.offsetAt))}e.is=n;function r(s,a){let l=s.getText(),o=i(a,(h,f)=>{let m=h.range.start.line-f.range.start.line;return m===0?h.range.start.character-f.range.start.character:m}),u=l.length;for(let h=o.length-1;h>=0;h--){let f=o[h],m=s.offsetAt(f.range.start),d=s.offsetAt(f.range.end);if(d<=u)l=l.substring(0,m)+f.newText+l.substring(d,l.length);else throw new Error("Overlapping edit");u=m}return l}e.applyEdits=r;function i(s,a){if(s.length<=1)return s;const l=s.length/2|0,o=s.slice(0,l),u=s.slice(l);i(o,a),i(u,a);let h=0,f=0,m=0;for(;h<o.length&&f<u.length;)a(o[h],u[f])<=0?s[m++]=o[h++]:s[m++]=u[f++];for(;h<o.length;)s[m++]=o[h++];for(;f<u.length;)s[m++]=u[f++];return s}})(wo||(wo={}));var $c=class{constructor(e,t,n,r){this._uri=e,this._languageId=t,this._version=n,this._content=r,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(e){if(e){let t=this.offsetAt(e.start),n=this.offsetAt(e.end);return this._content.substring(t,n)}return this._content}update(e,t){this._content=e.text,this._version=t,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let e=[],t=this._content,n=!0;for(let r=0;r<t.length;r++){n&&(e.push(r),n=!1);let i=t.charAt(r);n=i==="\\r"||i===`\n`,i==="\\r"&&r+1<t.length&&t.charAt(r+1)===`\n`&&r++}n&&t.length>0&&e.push(t.length),this._lineOffsets=e}return this._lineOffsets}positionAt(e){e=Math.max(Math.min(e,this._content.length),0);let t=this.getLineOffsets(),n=0,r=t.length;if(r===0)return Z.create(0,e);for(;n<r;){let s=Math.floor((n+r)/2);t[s]>e?r=s:n=s+1}let i=n-1;return Z.create(i,e-t[i])}offsetAt(e){let t=this.getLineOffsets();if(e.line>=t.length)return this._content.length;if(e.line<0)return 0;let n=t[e.line],r=e.line+1<t.length?t[e.line+1]:this._content.length;return Math.max(Math.min(n+e.character,r),n)}get lineCount(){return this.getLineOffsets().length}},A;(function(e){const t=Object.prototype.toString;function n(d){return typeof d<"u"}e.defined=n;function r(d){return typeof d>"u"}e.undefined=r;function i(d){return d===!0||d===!1}e.boolean=i;function s(d){return t.call(d)==="[object String]"}e.string=s;function a(d){return t.call(d)==="[object Number]"}e.number=a;function l(d,g,p){return t.call(d)==="[object Number]"&&g<=d&&d<=p}e.numberRange=l;function o(d){return t.call(d)==="[object Number]"&&-2147483648<=d&&d<=2147483647}e.integer=o;function u(d){return t.call(d)==="[object Number]"&&0<=d&&d<=2147483647}e.uinteger=u;function h(d){return t.call(d)==="[object Function]"}e.func=h;function f(d){return d!==null&&typeof d=="object"}e.objectLiteral=f;function m(d,g){return Array.isArray(d)&&d.every(g)}e.typedArray=m})(A||(A={}));var _o=class ii{constructor(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){const n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content}update(t,n){for(let r of t)if(ii.isIncremental(r)){const i=No(r.range),s=this.offsetAt(i.start),a=this.offsetAt(i.end);this._content=this._content.substring(0,s)+r.text+this._content.substring(a,this._content.length);const l=Math.max(i.start.line,0),o=Math.max(i.end.line,0);let u=this._lineOffsets;const h=Lo(r.text,!1,s);if(o-l===h.length)for(let m=0,d=h.length;m<d;m++)u[m+l+1]=h[m];else h.length<1e4?u.splice(l+1,o-l,...h):this._lineOffsets=u=u.slice(0,l+1).concat(h,u.slice(o+1));const f=r.text.length-(a-s);if(f!==0)for(let m=l+1+h.length,d=u.length;m<d;m++)u[m]=u[m]+f}else if(ii.isFull(r))this._content=r.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Lo(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){let a=Math.floor((r+i)/2);n[a]>t?i=a:r=a+1}let s=r-1;return{line:s,character:t-n[s]}}offsetAt(t){let n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;let r=n[t.line],i=t.line+1<n.length?n[t.line+1]:this._content.length;return Math.max(Math.min(r+t.character,i),r)}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(t){let n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}},Ee;(function(e){function t(i,s,a,l){return new _o(i,s,a,l)}e.create=t;function n(i,s,a){if(i instanceof _o)return i.update(s,a),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function r(i,s){let a=i.getText(),l=Gr(s.map(Bc),(h,f)=>{let m=h.range.start.line-f.range.start.line;return m===0?h.range.start.character-f.range.start.character:m}),o=0;const u=[];for(const h of l){let f=i.offsetAt(h.range.start);if(f<o)throw new Error("Overlapping edit");f>o&&u.push(a.substring(o,f)),h.newText.length&&u.push(h.newText),o=i.offsetAt(h.range.end)}return u.push(a.substr(o)),u.join("")}e.applyEdits=r})(Ee||(Ee={}));function Gr(e,t){if(e.length<=1)return e;const n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);Gr(r,t),Gr(i,t);let s=0,a=0,l=0;for(;s<r.length&&a<i.length;)t(r[s],i[a])<=0?e[l++]=r[s++]:e[l++]=i[a++];for(;s<r.length;)e[l++]=r[s++];for(;a<i.length;)e[l++]=i[a++];return e}function Lo(e,t,n=0){const r=t?[n]:[];for(let i=0;i<e.length;i++){let s=e.charCodeAt(i);(s===13||s===10)&&(s===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,r.push(n+i+1))}return r}function No(e){const t=e.start,n=e.end;return t.line>n.line||t.line===n.line&&t.character>n.character?{start:n,end:t}:e}function Bc(e){const t=No(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var H;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.Deprecated=2]="Deprecated",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.PropertyKeysMustBeDoublequoted=528]="PropertyKeysMustBeDoublequoted",e[e.SchemaResolveError=768]="SchemaResolveError",e[e.SchemaUnsupportedFeature=769]="SchemaUnsupportedFeature"})(H||(H={}));var Me;(function(e){e[e.v3=3]="v3",e[e.v4=4]="v4",e[e.v6=6]="v6",e[e.v7=7]="v7",e[e.v2019_09=19]="v2019_09",e[e.v2020_12=20]="v2020_12"})(Me||(Me={}));var Jr;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[ot.Markdown,ot.PlainText],commitCharactersSupport:!0,labelDetailsSupport:!0}}}}})(Jr||(Jr={}));function E(...e){const t=e[0];let n,r,i;if(typeof t=="string")n=t,r=t,e.splice(0,1),i=!e||typeof e[0]!="object"?e:e[0];else if(t instanceof Array){const s=e.slice(1);if(t.length!==s.length+1)throw new Error("expected a string as the first argument to l10n.t");let a=t[0];for(let l=1;l<t.length;l++)a+=`{${l-1}}`+t[l];return E(a,...s)}else r=t.message,n=r,t.comment&&t.comment.length>0&&(n+=`/${Array.isArray(t.comment)?t.comment.join(""):t.comment}`),i=t.args??{};return qc(r,i)}var Uc=/{([^}]+)}/g;function qc(e,t){return Object.keys(t).length===0?e:e.replace(Uc,(n,r)=>t[r]??n)}var jc={"color-hex":{errorMessage:E("Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:E("String is not a RFC3339 date-time."),pattern:/^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:E("String is not a RFC3339 date."),pattern:/^(\\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:E("String is not a RFC3339 time."),pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\\.[0-9]+)?(Z|(\\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:E("String is not an e-mail address."),pattern:/^(([^<>()\\[\\]\\\\.,;:\\s@"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@"]+)*)|(".+"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z0-9-]+\\.)+[a-zA-Z]{2,}))$/},hostname:{errorMessage:E("String is not a hostname."),pattern:/^(?=.{1,253}\\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\\.?$/i},ipv4:{errorMessage:E("String is not an IPv4 address."),pattern:/^(?:(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)\\.){3}(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)$/},ipv6:{errorMessage:E("String is not an IPv6 address."),pattern:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))$/i}},lt=class{constructor(e,t,n=0){this.offset=t,this.length=n,this.parent=e}get children(){return[]}toString(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")}},Wc=class extends lt{constructor(e,t){super(e,t),this.type="null",this.value=null}},So=class extends lt{constructor(e,t,n){super(e,n),this.type="boolean",this.value=t}},Hc=class extends lt{constructor(e,t){super(e,t),this.type="array",this.items=[]}get children(){return this.items}},zc=class extends lt{constructor(e,t){super(e,t),this.type="number",this.isInteger=!0,this.value=Number.NaN}},Xr=class extends lt{constructor(e,t,n){super(e,t,n),this.type="string",this.value=""}},Gc=class extends lt{constructor(e,t,n){super(e,t),this.type="property",this.colonOffset=-1,this.keyNode=n}get children(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]}},Jc=class extends lt{constructor(e,t){super(e,t),this.type="object",this.properties=[]}get children(){return this.properties}};function we(e){return Fe(e)?e?{}:{not:{}}:e}var Ao;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Ao||(Ao={}));var Xc={"http://json-schema.org/draft-03/schema#":Me.v3,"http://json-schema.org/draft-04/schema#":Me.v4,"http://json-schema.org/draft-06/schema#":Me.v6,"http://json-schema.org/draft-07/schema#":Me.v7,"https://json-schema.org/draft/2019-09/schema":Me.v2019_09,"https://json-schema.org/draft/2020-12/schema":Me.v2020_12},ko=class{constructor(e){this.schemaDraft=e}},Qc=class jo{constructor(t=-1,n){this.focusOffset=t,this.exclude=n,this.schemas=[]}add(t){this.schemas.push(t)}merge(t){Array.prototype.push.apply(this.schemas,t.schemas)}include(t){return(this.focusOffset===-1||Ro(t,this.focusOffset))&&t!==this.exclude}newSub(){return new jo(-1,this.exclude)}},Zt=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};Zt.instance=new Zt;var he=class{constructor(){this.problems=[],this.propertiesMatches=0,this.processedProperties=new Set,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=void 0}hasProblems(){return!!this.problems.length}merge(e){this.problems=this.problems.concat(e.problems),this.propertiesMatches+=e.propertiesMatches,this.propertiesValueMatches+=e.propertiesValueMatches,this.mergeProcessedProperties(e)}mergeEnumValues(e){if(!this.enumValueMatch&&!e.enumValueMatch&&this.enumValues&&e.enumValues){this.enumValues=this.enumValues.concat(e.enumValues);for(const t of this.problems)t.code===H.EnumValueMismatch&&(t.message=E("Value is not accepted. Valid values: {0}.",this.enumValues.map(n=>JSON.stringify(n)).join(", ")))}}mergePropertyMatch(e){this.problems=this.problems.concat(e.problems),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&e.enumValues.length===1&&this.primaryValueMatches++}mergeProcessedProperties(e){e.processedProperties.forEach(t=>this.processedProperties.add(t))}compare(e){const t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.propertiesMatches-e.propertiesMatches}};function Yc(e,t=[]){return new Eo(e,t,[])}function ut(e){return Vc(e)}function Qr(e){return Fc(e)}function Ro(e,t,n=!1){return t>=e.offset&&t<e.offset+e.length||n&&t===e.offset+e.length}var Eo=class{constructor(e,t=[],n=[]){this.root=e,this.syntaxErrors=t,this.comments=n}getNodeFromOffset(e,t=!1){if(this.root)return Ic(this.root,e,t)}visit(e){if(this.root){const t=n=>{let r=e(n);const i=n.children;if(Array.isArray(i))for(let s=0;s<i.length&&r;s++)r=t(i[s]);return r};t(this.root)}}validate(e,t,n=ve.Warning,r){if(this.root&&t){const i=new he;return le(this.root,t,i,Zt.instance,new ko(r??Mo(t))),i.problems.map(s=>{const a=q.create(e.positionAt(s.location.offset),e.positionAt(s.location.offset+s.location.length));return ze.create(a,s.message,s.severity??n,s.code)})}}getMatchingSchemas(e,t=-1,n){if(this.root&&e){const r=new Qc(t,n),i=Mo(e),s=new ko(i);return le(this.root,e,new he,r,s),r.schemas}return[]}};function Mo(e,t=Me.v2020_12){let n=e.$schema;return n?Xc[n]??t:t}function le(e,t,n,r,i){if(!e||!r.include(e))return;if(e.type==="property")return le(e.valueNode,t,n,r,i);const s=e;switch(a(),s.type){case"object":h(s);break;case"array":u(s);break;case"string":o(s);break;case"number":l(s);break}r.add({node:s,schema:t});function a(){function f(_){return s.type===_||_==="integer"&&s.type==="number"&&s.isInteger}if(Array.isArray(t.type)?t.type.some(f)||n.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||E("Incorrect type. Expected one of {0}.",t.type.join(", "))}):t.type&&(f(t.type)||n.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||E(\'Incorrect type. Expected "{0}".\',t.type)})),Array.isArray(t.allOf))for(const _ of t.allOf){const v=new he,x=r.newSub();le(s,we(_),v,x,i),n.merge(v),r.merge(x)}const m=we(t.not);if(m){const _=new he,v=r.newSub();le(s,m,_,v,i),_.hasProblems()||n.problems.push({location:{offset:s.offset,length:s.length},message:t.errorMessage||E("Matches a schema that is not allowed.")});for(const x of v.schemas)x.inverted=!x.inverted,r.add(x)}const d=(_,v)=>{const x=[];let b;for(const L of _){const S=we(L),M=new he,F=r.newSub();if(le(s,S,M,F,i),M.hasProblems()||x.push(S),!b)b={schema:S,validationResult:M,matchingSchemas:F};else if(!v&&!M.hasProblems()&&!b.validationResult.hasProblems())b.matchingSchemas.merge(F),b.validationResult.propertiesMatches+=M.propertiesMatches,b.validationResult.propertiesValueMatches+=M.propertiesValueMatches,b.validationResult.mergeProcessedProperties(M);else{const O=M.compare(b.validationResult);O>0?b={schema:S,validationResult:M,matchingSchemas:F}:O===0&&(b.matchingSchemas.merge(F),b.validationResult.mergeEnumValues(M))}}return x.length>1&&v&&n.problems.push({location:{offset:s.offset,length:1},message:E("Matches multiple schemas when only one must validate.")}),b&&(n.merge(b.validationResult),r.merge(b.matchingSchemas)),x.length};Array.isArray(t.anyOf)&&d(t.anyOf,!1),Array.isArray(t.oneOf)&&d(t.oneOf,!0);const g=_=>{const v=new he,x=r.newSub();le(s,we(_),v,x,i),n.merge(v),r.merge(x)},p=(_,v,x)=>{const b=we(_),L=new he,S=r.newSub();le(s,b,L,S,i),r.merge(S),n.mergeProcessedProperties(L),L.hasProblems()?x&&g(x):v&&g(v)},y=we(t.if);if(y&&p(y,we(t.then),we(t.else)),Array.isArray(t.enum)){const _=ut(s);let v=!1;for(const x of t.enum)if(kt(_,x)){v=!0;break}n.enumValues=t.enum,n.enumValueMatch=v,v||n.problems.push({location:{offset:s.offset,length:s.length},code:H.EnumValueMismatch,message:t.errorMessage||E("Value is not accepted. Valid values: {0}.",t.enum.map(x=>JSON.stringify(x)).join(", "))})}if(Re(t.const)){const _=ut(s);kt(_,t.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:s.offset,length:s.length},code:H.EnumValueMismatch,message:t.errorMessage||E("Value must be {0}.",JSON.stringify(t.const))}),n.enumValueMatch=!1),n.enumValues=[t.const]}let w=t.deprecationMessage;if(w||t.deprecated){w=w||E("Value is deprecated");let _=s.parent?.type==="property"?s.parent:s;n.problems.push({location:{offset:_.offset,length:_.length},severity:ve.Warning,message:w,code:H.Deprecated})}}function l(f){const m=f.value;function d(x){const b=/^(-?\\d+)(?:\\.(\\d+))?(?:e([-+]\\d+))?$/.exec(x.toString());return b&&{value:Number(b[1]+(b[2]||"")),multiplier:(b[2]?.length||0)-(parseInt(b[3])||0)}}if(fe(t.multipleOf)){let x=-1;if(Number.isInteger(t.multipleOf))x=m%t.multipleOf;else{let b=d(t.multipleOf),L=d(m);if(b&&L){const S=10**Math.abs(L.multiplier-b.multiplier);L.multiplier<b.multiplier?L.value*=S:b.value*=S,x=L.value%b.value}}x!==0&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Value is not divisible by {0}.",t.multipleOf)})}function g(x,b){if(fe(b))return b;if(Fe(b)&&b)return x}function p(x,b){if(!Fe(b)||!b)return x}const y=g(t.minimum,t.exclusiveMinimum);fe(y)&&m<=y&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Value is below the exclusive minimum of {0}.",y)});const w=g(t.maximum,t.exclusiveMaximum);fe(w)&&m>=w&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Value is above the exclusive maximum of {0}.",w)});const _=p(t.minimum,t.exclusiveMinimum);fe(_)&&m<_&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Value is below the minimum of {0}.",_)});const v=p(t.maximum,t.exclusiveMaximum);fe(v)&&m>v&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Value is above the maximum of {0}.",v)})}function o(f){if(fe(t.minLength)&&Aa(f.value)<t.minLength&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("String is shorter than the minimum length of {0}.",t.minLength)}),fe(t.maxLength)&&Aa(f.value)>t.maxLength&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("String is longer than the maximum length of {0}.",t.maxLength)}),Sa(t.pattern)&&(Rn(t.pattern)?.test(f.value)||n.problems.push({location:{offset:f.offset,length:f.length},message:t.patternErrorMessage||t.errorMessage||E(\'String does not match the pattern of "{0}".\',t.pattern)})),t.format)switch(t.format){case"uri":case"uri-reference":{let d;if(!f.value)d=E("URI expected.");else{const g=/^(([^:/?#]+?):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/.exec(f.value);g?!g[2]&&t.format==="uri"&&(d=E("URI with a scheme is expected.")):d=E("URI is expected.")}d&&n.problems.push({location:{offset:f.offset,length:f.length},message:t.patternErrorMessage||t.errorMessage||E("String is not a URI: {0}",d)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":case"hostname":case"ipv4":case"ipv6":const m=jc[t.format];(!f.value||!m.pattern.exec(f.value))&&n.problems.push({location:{offset:f.offset,length:f.length},message:t.patternErrorMessage||t.errorMessage||m.errorMessage})}}function u(f){let m,d;i.schemaDraft>=Me.v2020_12?(m=t.prefixItems,d=Array.isArray(t.items)?void 0:t.items):(m=Array.isArray(t.items)?t.items:void 0,d=Array.isArray(t.items)?t.additionalItems:t.items);let g=0;if(m!==void 0){const w=Math.min(m.length,f.items.length);for(;g<w;g++){const _=m[g],v=we(_),x=new he,b=f.items[g];b&&(le(b,v,x,r,i),n.mergePropertyMatch(x)),n.processedProperties.add(String(g))}}if(d!==void 0&&g<f.items.length)if(typeof d=="boolean")for(d===!1&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Array has too many items according to schema. Expected {0} or fewer.",g)});g<f.items.length;g++)n.processedProperties.add(String(g)),n.propertiesValueMatches++;else for(;g<f.items.length;g++){const w=new he;le(f.items[g],d,w,r,i),n.mergePropertyMatch(w),n.processedProperties.add(String(g))}const p=we(t.contains);if(p){let w=0;for(let _=0;_<f.items.length;_++){const v=f.items[_],x=new he;le(v,p,x,Zt.instance,i),x.hasProblems()||(w++,i.schemaDraft>=Me.v2020_12&&n.processedProperties.add(String(_)))}w===0&&!fe(t.minContains)&&n.problems.push({location:{offset:f.offset,length:f.length},message:t.errorMessage||E("Array does not contain required item.")}),fe(t.minContains)&&w<t.minContains&&n.problems.push({location:{offset:f.offset,length:f.length},message:t.errorMessage||E("Array has too few items that match the contains contraint. Expected {0} or more.",t.minContains)}),fe(t.maxContains)&&w>t.maxContains&&n.problems.push({location:{offset:f.offset,length:f.length},message:t.errorMessage||E("Array has too many items that match the contains contraint. Expected {0} or less.",t.maxContains)})}const y=t.unevaluatedItems;if(y!==void 0)for(let w=0;w<f.items.length;w++){if(!n.processedProperties.has(String(w)))if(y===!1)n.problems.push({location:{offset:f.offset,length:f.length},message:E("Item does not match any validation rule from the array.")});else{const _=new he;le(f.items[w],t.unevaluatedItems,_,r,i),n.mergePropertyMatch(_)}n.processedProperties.add(String(w)),n.propertiesValueMatches++}if(fe(t.minItems)&&f.items.length<t.minItems&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Array has too few items. Expected {0} or more.",t.minItems)}),fe(t.maxItems)&&f.items.length>t.maxItems&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Array has too many items. Expected {0} or fewer.",t.maxItems)}),t.uniqueItems===!0){let w=function(){for(let v=0;v<_.length-1;v++){const x=_[v];for(let b=v+1;b<_.length;b++)if(kt(x,_[b]))return!0}return!1};const _=ut(f);w()&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Array has duplicate items.")})}}function h(f){const m=Object.create(null),d=new Set;for(const v of f.properties){const x=v.keyNode.value;m[x]=v.valueNode,d.add(x)}if(Array.isArray(t.required)){for(const v of t.required)if(!m[v]){const x=f.parent&&f.parent.type==="property"&&f.parent.keyNode,b=x?{offset:x.offset,length:x.length}:{offset:f.offset,length:1};n.problems.push({location:b,message:E(\'Missing property "{0}".\',v)})}}const g=v=>{d.delete(v),n.processedProperties.add(v)};if(t.properties)for(const v of Object.keys(t.properties)){g(v);const x=t.properties[v],b=m[v];if(b)if(Fe(x))if(x)n.propertiesMatches++,n.propertiesValueMatches++;else{const L=b.parent;n.problems.push({location:{offset:L.keyNode.offset,length:L.keyNode.length},message:t.errorMessage||E("Property {0} is not allowed.",v)})}else{const L=new he;le(b,x,L,r,i),n.mergePropertyMatch(L)}}if(t.patternProperties)for(const v of Object.keys(t.patternProperties)){const x=Rn(v);if(x){const b=[];for(const L of d)if(x.test(L)){b.push(L);const S=m[L];if(S){const M=t.patternProperties[v];if(Fe(M))if(M)n.propertiesMatches++,n.propertiesValueMatches++;else{const F=S.parent;n.problems.push({location:{offset:F.keyNode.offset,length:F.keyNode.length},message:t.errorMessage||E("Property {0} is not allowed.",L)})}else{const F=new he;le(S,M,F,r,i),n.mergePropertyMatch(F)}}}b.forEach(g)}}const p=t.additionalProperties;if(p!==void 0)for(const v of d){g(v);const x=m[v];if(x){if(p===!1){const b=x.parent;n.problems.push({location:{offset:b.keyNode.offset,length:b.keyNode.length},message:t.errorMessage||E("Property {0} is not allowed.",v)})}else if(p!==!0){const b=new he;le(x,p,b,r,i),n.mergePropertyMatch(b)}}}const y=t.unevaluatedProperties;if(y!==void 0){const v=[];for(const x of d)if(!n.processedProperties.has(x)){v.push(x);const b=m[x];if(b){if(y===!1){const L=b.parent;n.problems.push({location:{offset:L.keyNode.offset,length:L.keyNode.length},message:t.errorMessage||E("Property {0} is not allowed.",x)})}else if(y!==!0){const L=new he;le(b,y,L,r,i),n.mergePropertyMatch(L)}}}v.forEach(g)}if(fe(t.maxProperties)&&f.properties.length>t.maxProperties&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Object has more properties than limit of {0}.",t.maxProperties)}),fe(t.minProperties)&&f.properties.length<t.minProperties&&n.problems.push({location:{offset:f.offset,length:f.length},message:E("Object has fewer properties than the required number of {0}",t.minProperties)}),t.dependentRequired)for(const v in t.dependentRequired){const x=m[v],b=t.dependentRequired[v];x&&Array.isArray(b)&&_(v,b)}if(t.dependentSchemas)for(const v in t.dependentSchemas){const x=m[v],b=t.dependentSchemas[v];x&&et(b)&&_(v,b)}if(t.dependencies)for(const v in t.dependencies)m[v]&&_(v,t.dependencies[v]);const w=we(t.propertyNames);if(w)for(const v of f.properties){const x=v.keyNode;x&&le(x,w,n,Zt.instance,i)}function _(v,x){if(Array.isArray(x))for(const b of x)m[b]?n.propertiesValueMatches++:n.problems.push({location:{offset:f.offset,length:f.length},message:E("Object is missing property {0} required by property {1}.",b,v)});else{const b=we(x);if(b){const L=new he;le(f,b,L,r,i),n.mergePropertyMatch(L)}}}}}function Zc(e,t){const n=[];let r=-1;const i=e.getText(),s=at(i,!1),a=t&&t.collectComments?[]:void 0;function l(){for(;;){const L=s.scan();switch(h(),L){case 12:case 13:Array.isArray(a)&&a.push(q.create(e.positionAt(s.getTokenOffset()),e.positionAt(s.getTokenOffset()+s.getTokenLength())));break;case 15:case 14:break;default:return L}}}function o(L,S,M,F,O=ve.Error){if(n.length===0||M!==r){const C=q.create(e.positionAt(M),e.positionAt(F));n.push(ze.create(C,L,O,S,e.languageId)),r=M}}function u(L,S,M=void 0,F=[],O=[]){let C=s.getTokenOffset(),N=s.getTokenOffset()+s.getTokenLength();if(C===N&&C>0){for(C--;C>0&&/\\s/.test(i.charAt(C));)C--;N=C+1}if(o(L,S,C,N),M&&f(M,!1),F.length+O.length>0){let k=s.getToken();for(;k!==17;){if(F.indexOf(k)!==-1){l();break}else if(O.indexOf(k)!==-1)break;k=l()}}return M}function h(){switch(s.getTokenError()){case 4:return u(E("Invalid unicode sequence in string."),H.InvalidUnicode),!0;case 5:return u(E("Invalid escape character in string."),H.InvalidEscapeCharacter),!0;case 3:return u(E("Unexpected end of number."),H.UnexpectedEndOfNumber),!0;case 1:return u(E("Unexpected end of comment."),H.UnexpectedEndOfComment),!0;case 2:return u(E("Unexpected end of string."),H.UnexpectedEndOfString),!0;case 6:return u(E("Invalid characters in string. Control characters must be escaped."),H.InvalidCharacter),!0}return!1}function f(L,S){return L.length=s.getTokenOffset()+s.getTokenLength()-L.offset,S&&l(),L}function m(L){if(s.getToken()!==3)return;const S=new Hc(L,s.getTokenOffset());l();let M=!1;for(;s.getToken()!==4&&s.getToken()!==17;){if(s.getToken()===5){M||u(E("Value expected"),H.ValueExpected);const O=s.getTokenOffset();if(l(),s.getToken()===4){M&&o(E("Trailing comma"),H.TrailingComma,O,O+1);continue}}else M&&u(E("Expected comma"),H.CommaExpected);const F=v(S);F?S.items.push(F):u(E("Value expected"),H.ValueExpected,void 0,[],[4,5]),M=!0}return s.getToken()!==4?u(E("Expected comma or closing bracket"),H.CommaOrCloseBacketExpected,S):f(S,!0)}const d=new Xr(void 0,0,0);function g(L,S){const M=new Gc(L,s.getTokenOffset(),d);let F=y(M);if(!F)if(s.getToken()===16){u(E("Property keys must be doublequoted"),H.PropertyKeysMustBeDoublequoted);const C=new Xr(M,s.getTokenOffset(),s.getTokenLength());C.value=s.getTokenValue(),F=C,l()}else return;if(M.keyNode=F,F.value!=="//"){const C=S[F.value];C?(o(E("Duplicate object key"),H.DuplicateKey,M.keyNode.offset,M.keyNode.offset+M.keyNode.length,ve.Warning),et(C)&&o(E("Duplicate object key"),H.DuplicateKey,C.keyNode.offset,C.keyNode.offset+C.keyNode.length,ve.Warning),S[F.value]=!0):S[F.value]=M}if(s.getToken()===6)M.colonOffset=s.getTokenOffset(),l();else if(u(E("Colon expected"),H.ColonExpected),s.getToken()===10&&e.positionAt(F.offset+F.length).line<e.positionAt(s.getTokenOffset()).line)return M.length=F.length,M;const O=v(M);return O?(M.valueNode=O,M.length=O.offset+O.length-M.offset,M):u(E("Value expected"),H.ValueExpected,M,[],[2,5])}function p(L){if(s.getToken()!==1)return;const S=new Jc(L,s.getTokenOffset()),M=Object.create(null);l();let F=!1;for(;s.getToken()!==2&&s.getToken()!==17;){if(s.getToken()===5){F||u(E("Property expected"),H.PropertyExpected);const C=s.getTokenOffset();if(l(),s.getToken()===2){F&&o(E("Trailing comma"),H.TrailingComma,C,C+1);continue}}else F&&u(E("Expected comma"),H.CommaExpected);const O=g(S,M);O?S.properties.push(O):u(E("Property expected"),H.PropertyExpected,void 0,[],[2,5]),F=!0}return s.getToken()!==2?u(E("Expected comma or closing brace"),H.CommaOrCloseBraceExpected,S):f(S,!0)}function y(L){if(s.getToken()!==10)return;const S=new Xr(L,s.getTokenOffset());return S.value=s.getTokenValue(),f(S,!0)}function w(L){if(s.getToken()!==11)return;const S=new zc(L,s.getTokenOffset());if(s.getTokenError()===0){const M=s.getTokenValue();try{const F=JSON.parse(M);if(!fe(F))return u(E("Invalid number format."),H.Undefined,S);S.value=F}catch{return u(E("Invalid number format."),H.Undefined,S)}S.isInteger=M.indexOf(".")===-1}return f(S,!0)}function _(L){switch(s.getToken()){case 7:return f(new Wc(L,s.getTokenOffset()),!0);case 8:return f(new So(L,!0,s.getTokenOffset()),!0);case 9:return f(new So(L,!1,s.getTokenOffset()),!0);default:return}}function v(L){return m(L)||p(L)||y(L)||w(L)||_(L)}let x;return l()!==17&&(x=v(x),x?s.getToken()!==17&&u(E("End of file expected."),H.Undefined):u(E("Expected a JSON object, array or literal."),H.Undefined)),new Eo(x,n,a)}function Yr(e,t,n){if(e!==null&&typeof e=="object"){const r=t+" ";if(Array.isArray(e)){if(e.length===0)return"[]";let i=`[\n`;for(let s=0;s<e.length;s++)i+=r+Yr(e[s],r,n),s<e.length-1&&(i+=","),i+=`\n`;return i+=t+"]",i}else{const i=Object.keys(e);if(i.length===0)return"{}";let s=`{\n`;for(let a=0;a<i.length;a++){const l=i[a];s+=r+JSON.stringify(l)+": "+Yr(e[l],r,n),a<i.length-1&&(s+=","),s+=`\n`}return s+=t+"}",s}}return n(e)}var Kc=class{constructor(e,t=[],n=Promise,r={}){this.schemaService=e,this.contributions=t,this.promiseConstructor=n,this.clientCapabilities=r}doResolve(e){for(let t=this.contributions.length-1;t>=0;t--){const n=this.contributions[t].resolveCompletion;if(n){const r=n(e);if(r)return r}}return this.promiseConstructor.resolve(e)}doComplete(e,t,n){const r={items:[],isIncomplete:!1},i=e.getText(),s=e.offsetAt(t);let a=n.getNodeFromOffset(s,!0);if(this.isInComment(e,a?a.offset:0,s))return Promise.resolve(r);if(a&&s===a.offset+a.length&&s>0){const f=i[s-1];(a.type==="object"&&f==="}"||a.type==="array"&&f==="]")&&(a=a.parent)}const l=this.getCurrentWord(e,s);let o;if(a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null"))o=q.create(e.positionAt(a.offset),e.positionAt(a.offset+a.length));else{let f=s-l.length;f>0&&i[f-1]===\'"\'&&f--,o=q.create(e.positionAt(f),t)}const u=new Map,h={add:f=>{let m=f.label;const d=u.get(m);if(d)d.documentation||(d.documentation=f.documentation),d.detail||(d.detail=f.detail),d.labelDetails||(d.labelDetails=f.labelDetails);else{if(m=m.replace(/[\\n]/g,"↵"),m.length>60){const g=m.substr(0,57).trim()+"...";u.has(g)||(m=g)}f.textEdit=Ve.replace(o,f.insertText),f.label=m,u.set(m,f),r.items.push(f)}},setAsIncomplete:()=>{r.isIncomplete=!0},error:f=>{console.error(f)},getNumberOfProposals:()=>r.items.length};return this.schemaService.getSchemaForResource(e.uri,n).then(f=>{const m=[];let d=!0,g="",p;if(a&&a.type==="string"){const w=a.parent;w&&w.type==="property"&&w.keyNode===a&&(d=!w.valueNode,p=w,g=i.substr(a.offset+1,a.length-2),w&&(a=w.parent))}if(a&&a.type==="object"){if(a.offset===s)return r;a.properties.forEach(x=>{(!p||p!==x)&&u.set(x.keyNode.value,Wr.create("__"))});let _="";d&&(_=this.evaluateSeparatorAfter(e,e.offsetAt(o.end))),f?this.getPropertyCompletions(f,n,a,d,_,h):this.getSchemaLessPropertyCompletions(n,a,g,h);const v=Qr(a);this.contributions.forEach(x=>{const b=x.collectPropertyCompletions(e.uri,v,l,d,_==="",h);b&&m.push(b)}),!f&&l.length>0&&i.charAt(s-l.length-1)!==\'"\'&&(h.add({kind:xe.Property,label:this.getLabelForValue(l),insertText:this.getInsertTextForProperty(l,void 0,!1,_),insertTextFormat:ie.Snippet,documentation:""}),h.setAsIncomplete())}const y={};return f?this.getValueCompletions(f,n,a,s,e,h,y):this.getSchemaLessValueCompletions(n,a,s,e,h),this.contributions.length>0&&this.getContributedValueCompletions(n,a,s,e,h,m),this.promiseConstructor.all(m).then(()=>{if(h.getNumberOfProposals()===0){let w=s;a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null")&&(w=a.offset+a.length);const _=this.evaluateSeparatorAfter(e,w);this.addFillerValueCompletions(y,_,h)}return r})})}getPropertyCompletions(e,t,n,r,i,s){t.getMatchingSchemas(e.schema,n.offset).forEach(l=>{if(l.node===n&&!l.inverted){const o=l.schema.properties;o&&Object.keys(o).forEach(h=>{const f=o[h];if(typeof f=="object"&&!f.deprecationMessage&&!f.doNotSuggest){const m={kind:xe.Property,label:h,insertText:this.getInsertTextForProperty(h,f,r,i),insertTextFormat:ie.Snippet,filterText:this.getFilterTextForValue(h),documentation:this.fromMarkup(f.markdownDescription)||f.description||""};f.suggestSortText!==void 0&&(m.sortText=f.suggestSortText),m.insertText&&Xt(m.insertText,`$1${i}`)&&(m.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(m)}});const u=l.schema.propertyNames;if(typeof u=="object"&&!u.deprecationMessage&&!u.doNotSuggest){const h=(f,m=void 0)=>{const d={kind:xe.Property,label:f,insertText:this.getInsertTextForProperty(f,void 0,r,i),insertTextFormat:ie.Snippet,filterText:this.getFilterTextForValue(f),documentation:m||this.fromMarkup(u.markdownDescription)||u.description||""};u.suggestSortText!==void 0&&(d.sortText=u.suggestSortText),d.insertText&&Xt(d.insertText,`$1${i}`)&&(d.command={title:"Suggest",command:"editor.action.triggerSuggest"}),s.add(d)};if(u.enum)for(let f=0;f<u.enum.length;f++){let m;u.markdownEnumDescriptions&&f<u.markdownEnumDescriptions.length?m=this.fromMarkup(u.markdownEnumDescriptions[f]):u.enumDescriptions&&f<u.enumDescriptions.length&&(m=u.enumDescriptions[f]),h(u.enum[f],m)}u.const&&h(u.const)}}})}getSchemaLessPropertyCompletions(e,t,n,r){const i=s=>{s.properties.forEach(a=>{const l=a.keyNode.value;r.add({kind:xe.Property,label:l,insertText:this.getInsertTextForValue(l,""),insertTextFormat:ie.Snippet,filterText:this.getFilterTextForValue(l),documentation:""})})};if(t.parent)if(t.parent.type==="property"){const s=t.parent.keyNode.value;e.visit(a=>(a.type==="property"&&a!==t.parent&&a.keyNode.value===s&&a.valueNode&&a.valueNode.type==="object"&&i(a.valueNode),!0))}else t.parent.type==="array"&&t.parent.items.forEach(s=>{s.type==="object"&&s!==t&&i(s)});else t.type==="object"&&r.add({kind:xe.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",void 0,!0,""),insertTextFormat:ie.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})}getSchemaLessValueCompletions(e,t,n,r,i){let s=n;if(t&&(t.type==="string"||t.type==="number"||t.type==="boolean"||t.type==="null")&&(s=t.offset+t.length,t=t.parent),!t){i.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:ie.Snippet,documentation:""}),i.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:ie.Snippet,documentation:""});return}const a=this.evaluateSeparatorAfter(r,s),l=o=>{o.parent&&!Ro(o.parent,n,!0)&&i.add({kind:this.getSuggestionKind(o.type),label:this.getLabelTextForMatchingNode(o,r),insertText:this.getInsertTextForMatchingNode(o,r,a),insertTextFormat:ie.Snippet,documentation:""}),o.type==="boolean"&&this.addBooleanValueCompletion(!o.value,a,i)};if(t.type==="property"&&n>(t.colonOffset||0)){const o=t.valueNode;if(o&&(n>o.offset+o.length||o.type==="object"||o.type==="array"))return;const u=t.keyNode.value;e.visit(h=>(h.type==="property"&&h.keyNode.value===u&&h.valueNode&&l(h.valueNode),!0)),u==="$schema"&&t.parent&&!t.parent.parent&&this.addDollarSchemaCompletions(a,i)}if(t.type==="array")if(t.parent&&t.parent.type==="property"){const o=t.parent.keyNode.value;e.visit(u=>(u.type==="property"&&u.keyNode.value===o&&u.valueNode&&u.valueNode.type==="array"&&u.valueNode.items.forEach(l),!0))}else t.items.forEach(l)}getValueCompletions(e,t,n,r,i,s,a){let l=r,o,u;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(l=n.offset+n.length,u=n,n=n.parent),!n){this.addSchemaValueCompletions(e.schema,"",s,a);return}if(n.type==="property"&&r>(n.colonOffset||0)){const h=n.valueNode;if(h&&r>h.offset+h.length)return;o=n.keyNode.value,n=n.parent}if(n&&(o!==void 0||n.type==="array")){const h=this.evaluateSeparatorAfter(i,l),f=t.getMatchingSchemas(e.schema,n.offset,u);for(const m of f)if(m.node===n&&!m.inverted&&m.schema){if(n.type==="array"&&m.schema.items){let d=s;if(m.schema.uniqueItems){const g=new Set;n.children.forEach(p=>{p.type!=="array"&&p.type!=="object"&&g.add(this.getLabelForValue(ut(p)))}),d={...s,add(p){g.has(p.label)||s.add(p)}}}if(Array.isArray(m.schema.items)){const g=this.findItemAtOffset(n,i,r);g<m.schema.items.length&&this.addSchemaValueCompletions(m.schema.items[g],h,d,a)}else this.addSchemaValueCompletions(m.schema.items,h,d,a)}if(o!==void 0){let d=!1;if(m.schema.properties){const g=m.schema.properties[o];g&&(d=!0,this.addSchemaValueCompletions(g,h,s,a))}if(m.schema.patternProperties&&!d){for(const g of Object.keys(m.schema.patternProperties))if(Rn(g)?.test(o)){d=!0;const y=m.schema.patternProperties[g];this.addSchemaValueCompletions(y,h,s,a)}}if(m.schema.additionalProperties&&!d){const g=m.schema.additionalProperties;this.addSchemaValueCompletions(g,h,s,a)}}}o==="$schema"&&!n.parent&&this.addDollarSchemaCompletions(h,s),a.boolean&&(this.addBooleanValueCompletion(!0,h,s),this.addBooleanValueCompletion(!1,h,s)),a.null&&this.addNullValueCompletion(h,s)}}getContributedValueCompletions(e,t,n,r,i,s){if(!t)this.contributions.forEach(a=>{const l=a.collectDefaultCompletions(r.uri,i);l&&s.push(l)});else if((t.type==="string"||t.type==="number"||t.type==="boolean"||t.type==="null")&&(t=t.parent),t&&t.type==="property"&&n>(t.colonOffset||0)){const a=t.keyNode.value,l=t.valueNode;if((!l||n<=l.offset+l.length)&&t.parent){const o=Qr(t.parent);this.contributions.forEach(u=>{const h=u.collectValueCompletions(r.uri,o,a,i);h&&s.push(h)})}}}addSchemaValueCompletions(e,t,n,r){typeof e=="object"&&(this.addEnumValueCompletions(e,t,n),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),Array.isArray(e.allOf)&&e.allOf.forEach(i=>this.addSchemaValueCompletions(i,t,n,r)),Array.isArray(e.anyOf)&&e.anyOf.forEach(i=>this.addSchemaValueCompletions(i,t,n,r)),Array.isArray(e.oneOf)&&e.oneOf.forEach(i=>this.addSchemaValueCompletions(i,t,n,r)))}addDefaultValueCompletions(e,t,n,r=0){let i=!1;if(Re(e.default)){let s=e.type,a=e.default;for(let o=r;o>0;o--)a=[a],s="array";const l={kind:this.getSuggestionKind(s),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t),insertTextFormat:ie.Snippet};this.doesSupportsLabelDetails()?l.labelDetails={description:E("Default value")}:l.detail=E("Default value"),n.add(l),i=!0}Array.isArray(e.examples)&&e.examples.forEach(s=>{let a=e.type,l=s;for(let o=r;o>0;o--)l=[l],a="array";n.add({kind:this.getSuggestionKind(a),label:this.getLabelForValue(l),insertText:this.getInsertTextForValue(l,t),insertTextFormat:ie.Snippet}),i=!0}),Array.isArray(e.defaultSnippets)&&e.defaultSnippets.forEach(s=>{let a=e.type,l=s.body,o=s.label,u,h;if(Re(l)){e.type;for(let f=r;f>0;f--)l=[l];u=this.getInsertTextForSnippetValue(l,t),h=this.getFilterTextForSnippetValue(l),o=o||this.getLabelForSnippetValue(l)}else if(typeof s.bodyText=="string"){let f="",m="",d="";for(let g=r;g>0;g--)f=f+d+`[\n`,m=m+`\n`+d+"]",d+=" ",a="array";u=f+d+s.bodyText.split(`\n`).join(`\n`+d)+m+t,o=o||u,h=u.replace(/[\\n]/g,"")}else return;n.add({kind:this.getSuggestionKind(a),label:o,documentation:this.fromMarkup(s.markdownDescription)||s.description,insertText:u,insertTextFormat:ie.Snippet,filterText:h}),i=!0}),!i&&typeof e.items=="object"&&!Array.isArray(e.items)&&r<5&&this.addDefaultValueCompletions(e.items,t,n,r+1)}addEnumValueCompletions(e,t,n){if(Re(e.const)&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t),insertTextFormat:ie.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let r=0,i=e.enum.length;r<i;r++){const s=e.enum[r];let a=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&r<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?a=this.fromMarkup(e.markdownEnumDescriptions[r]):e.enumDescriptions&&r<e.enumDescriptions.length&&(a=e.enumDescriptions[r]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(s),insertText:this.getInsertTextForValue(s,t),insertTextFormat:ie.Snippet,documentation:a})}}collectTypes(e,t){if(Array.isArray(e.enum)||Re(e.const))return;const n=e.type;Array.isArray(n)?n.forEach(r=>t[r]=!0):n&&(t[n]=!0)}addFillerValueCompletions(e,t,n){e.object&&n.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},t),insertTextFormat:ie.Snippet,detail:E("New object"),documentation:""}),e.array&&n.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],t),insertTextFormat:ie.Snippet,detail:E("New array"),documentation:""})}addBooleanValueCompletion(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t),insertTextFormat:ie.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:ie.Snippet,documentation:""})}addDollarSchemaCompletions(e,t){this.schemaService.getRegisteredSchemaIds(r=>r==="http"||r==="https").forEach(r=>{r.startsWith("http://json-schema.org/draft-")&&(r=r+"#"),t.add({kind:xe.Module,label:this.getLabelForValue(r),filterText:this.getFilterTextForValue(r),insertText:this.getInsertTextForValue(r,e),insertTextFormat:ie.Snippet,documentation:""})})}getLabelForValue(e){return JSON.stringify(e)}getValueFromLabel(e){return JSON.parse(e)}getFilterTextForValue(e){return JSON.stringify(e)}getFilterTextForSnippetValue(e){return JSON.stringify(e).replace(/\\$\\{\\d+:([^}]+)\\}|\\$\\d+/g,"$1")}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\\$\\{\\d+:([^}]+)\\}|\\$\\d+/g,"$1")}getInsertTextForPlainText(e){return e.replace(/[\\\\\\$\\}]/g,"\\\\$&")}getInsertTextForValue(e,t){const n=JSON.stringify(e,null," ");return n==="{}"?"{$1}"+t:n==="[]"?"[$1]"+t:this.getInsertTextForPlainText(n+t)}getInsertTextForSnippetValue(e,t){return Yr(e,"",r=>typeof r=="string"&&r[0]==="^"?r.substr(1):JSON.stringify(r))+t}getInsertTextForGuessedValue(e,t){switch(typeof e){case"object":return e===null?"${1:null}"+t:this.getInsertTextForValue(e,t);case"string":let n=JSON.stringify(e);return n=n.substr(1,n.length-2),n=this.getInsertTextForPlainText(n),\'"${1:\'+n+\'}"\'+t;case"number":case"boolean":return"${1:"+JSON.stringify(e)+"}"+t}return this.getInsertTextForValue(e,t)}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:void 0}if(!e)return xe.Value;switch(e){case"string":return xe.Value;case"object":return xe.Module;case"property":return xe.Property;default:return xe.Value}}getLabelTextForMatchingNode(e,t){switch(e.type){case"array":return"[]";case"object":return"{}";default:return t.getText().substr(e.offset,e.length)}}getInsertTextForMatchingNode(e,t,n){switch(e.type){case"array":return this.getInsertTextForValue([],n);case"object":return this.getInsertTextForValue({},n);default:const r=t.getText().substr(e.offset,e.length)+n;return this.getInsertTextForPlainText(r)}}getInsertTextForProperty(e,t,n,r){const i=this.getInsertTextForValue(e,"");if(!n)return i;const s=i+": ";let a,l=0;if(t){if(Array.isArray(t.defaultSnippets)){if(t.defaultSnippets.length===1){const o=t.defaultSnippets[0].body;Re(o)&&(a=this.getInsertTextForSnippetValue(o,""))}l+=t.defaultSnippets.length}if(t.enum&&(!a&&t.enum.length===1&&(a=this.getInsertTextForGuessedValue(t.enum[0],"")),l+=t.enum.length),Re(t.const)&&(a||(a=this.getInsertTextForGuessedValue(t.const,"")),l++),Re(t.default)&&(a||(a=this.getInsertTextForGuessedValue(t.default,"")),l++),Array.isArray(t.examples)&&t.examples.length&&(a||(a=this.getInsertTextForGuessedValue(t.examples[0],"")),l+=t.examples.length),l===0){let o=Array.isArray(t.type)?t.type[0]:t.type;switch(o||(t.properties?o="object":t.items&&(o="array")),o){case"boolean":a="$1";break;case"string":a=\'"$1"\';break;case"object":a="{$1}";break;case"array":a="[$1]";break;case"number":case"integer":a="${1:0}";break;case"null":a="${1:null}";break;default:return i}}}return(!a||l>1)&&(a="$1"),s+a+r}getCurrentWord(e,t){let n=t-1;const r=e.getText();for(;n>=0&&` \n\\r\\v":{[,]}`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,t)}evaluateSeparatorAfter(e,t){const n=at(e.getText(),!0);switch(n.setPosition(t),n.scan()){case 5:case 2:case 4:case 17:return"";default:return","}}findItemAtOffset(e,t,n){const r=at(t.getText(),!0),i=e.items;for(let s=i.length-1;s>=0;s--){const a=i[s];if(n>a.offset+a.length)return r.setPosition(a.offset+a.length),r.scan()===5&&n>=r.getTokenOffset()+r.getTokenLength()?s+1:s;if(n>=a.offset)return s}return 0}isInComment(e,t,n){const r=at(e.getText(),!1);r.setPosition(t);let i=r.scan();for(;i!==17&&r.getTokenOffset()+r.getTokenLength()<n;)i=r.scan();return(i===12||i===13)&&r.getTokenOffset()<=n}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:ot.Markdown,value:e}}doesSupportMarkdown(){if(!Re(this.supportsMarkdown)){const e=this.clientCapabilities.textDocument?.completion?.completionItem?.documentationFormat;this.supportsMarkdown=Array.isArray(e)&&e.indexOf(ot.Markdown)!==-1}return this.supportsMarkdown}doesSupportsCommitCharacters(){return Re(this.supportsCommitCharacters)||(this.labelDetailsSupport=this.clientCapabilities.textDocument?.completion?.completionItem?.commitCharactersSupport),this.supportsCommitCharacters}doesSupportsLabelDetails(){return Re(this.labelDetailsSupport)||(this.labelDetailsSupport=this.clientCapabilities.textDocument?.completion?.completionItem?.labelDetailsSupport),this.labelDetailsSupport}},e1=class{constructor(e,t=[],n){this.schemaService=e,this.contributions=t,this.promise=n||Promise}doHover(e,t,n){const r=e.offsetAt(t);let i=n.getNodeFromOffset(r);if(!i||(i.type==="object"||i.type==="array")&&r>i.offset+1&&r<i.offset+i.length-1)return this.promise.resolve(null);const s=i;if(i.type==="string"){const u=i.parent;if(u&&u.type==="property"&&u.keyNode===i&&(i=u.valueNode,!i))return this.promise.resolve(null)}const a=q.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length)),l=u=>({contents:u,range:a}),o=Qr(i);for(let u=this.contributions.length-1;u>=0;u--){const f=this.contributions[u].getInfoContribution(e.uri,o);if(f)return f.then(m=>l(m))}return this.schemaService.getSchemaForResource(e.uri,n).then(u=>{if(u&&i){const h=n.getMatchingSchemas(u.schema,i.offset);let f,m,d,g;h.every(y=>{if(y.node===i&&!y.inverted&&y.schema&&(f=f||y.schema.title,m=m||y.schema.markdownDescription||Zr(y.schema.description),y.schema.enum)){const w=y.schema.enum.indexOf(ut(i));y.schema.markdownEnumDescriptions?d=y.schema.markdownEnumDescriptions[w]:y.schema.enumDescriptions&&(d=Zr(y.schema.enumDescriptions[w])),d&&(g=y.schema.enum[w],typeof g!="string"&&(g=JSON.stringify(g)))}return!0});let p="";return f&&(p=Zr(f)),m&&(p.length>0&&(p+=`\n\n`),p+=m),d&&(p.length>0&&(p+=`\n\n`),p+=`\\`${t1(g)}\\`: ${d}`),l([p])}return null})}};function Zr(e){if(e)return e.replace(/([^\\n\\r])(\\r?\\n)([^\\n\\r])/gm,`$1\n\n$3`).replace(/[\\\\`*_{}[\\]()#+\\-.!]/g,"\\\\$&")}function t1(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var n1=class{constructor(e,t){this.jsonSchemaService=e,this.promise=t,this.validationEnabled=!0}configure(e){e&&(this.validationEnabled=e.validate!==!1,this.commentSeverity=e.allowComments?void 0:ve.Error)}doValidation(e,t,n,r){if(!this.validationEnabled)return this.promise.resolve([]);const i=[],s={},a=o=>{const u=o.range.start.line+" "+o.range.start.character+" "+o.message;s[u]||(s[u]=!0,i.push(o))},l=o=>{let u=n?.trailingCommas?Pn(n.trailingCommas):ve.Error,h=n?.comments?Pn(n.comments):this.commentSeverity,f=n?.schemaValidation?Pn(n.schemaValidation):ve.Warning,m=n?.schemaRequest?Pn(n.schemaRequest):ve.Warning;if(o){const d=(g,p)=>{if(t.root&&m){const y=t.root,w=y.type==="object"?y.properties[0]:void 0;if(w&&w.keyNode.value==="$schema"){const _=w.valueNode||w,v=q.create(e.positionAt(_.offset),e.positionAt(_.offset+_.length));a(ze.create(v,g,m,p))}else{const _=q.create(e.positionAt(y.offset),e.positionAt(y.offset+1));a(ze.create(_,g,m,p))}}};if(o.errors.length)d(o.errors[0],H.SchemaResolveError);else if(f){for(const p of o.warnings)d(p,H.SchemaUnsupportedFeature);const g=t.validate(e,o.schema,f,n?.schemaDraft);g&&g.forEach(a)}Co(o.schema)&&(h=void 0),To(o.schema)&&(u=void 0)}for(const d of t.syntaxErrors){if(d.code===H.TrailingComma){if(typeof u!="number")continue;d.severity=u}a(d)}if(typeof h=="number"){const d=E("Comments are not permitted in JSON.");t.comments.forEach(g=>{a(ze.create(g,d,h,H.CommentNotPermitted))})}return i};if(r){const o=r.id||"schemaservice://untitled/"+r1++;return this.jsonSchemaService.registerExternalSchema({uri:o,schema:r}).getResolvedSchema().then(h=>l(h))}return this.jsonSchemaService.getSchemaForResource(e.uri,t).then(o=>l(o))}getLanguageStatus(e,t){return{schemas:this.jsonSchemaService.getSchemaURIsForResource(e.uri,t)}}},r1=0;function Co(e){if(e&&typeof e=="object"){if(Fe(e.allowComments))return e.allowComments;if(e.allOf)for(const t of e.allOf){const n=Co(t);if(Fe(n))return n}}}function To(e){if(e&&typeof e=="object"){if(Fe(e.allowTrailingCommas))return e.allowTrailingCommas;const t=e;if(Fe(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(const n of e.allOf){const r=To(n);if(Fe(r))return r}}}function Pn(e){switch(e){case"error":return ve.Error;case"warning":return ve.Warning;case"ignore":return}}var Po=48,i1=57,s1=65,In=97,a1=102;function te(e){return e<Po?0:e<=i1?e-Po:(e<In&&(e+=In-s1),e>=In&&e<=a1?e-In+10:0)}function o1(e){if(e[0]==="#")switch(e.length){case 4:return{red:te(e.charCodeAt(1))*17/255,green:te(e.charCodeAt(2))*17/255,blue:te(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:te(e.charCodeAt(1))*17/255,green:te(e.charCodeAt(2))*17/255,blue:te(e.charCodeAt(3))*17/255,alpha:te(e.charCodeAt(4))*17/255};case 7:return{red:(te(e.charCodeAt(1))*16+te(e.charCodeAt(2)))/255,green:(te(e.charCodeAt(3))*16+te(e.charCodeAt(4)))/255,blue:(te(e.charCodeAt(5))*16+te(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(te(e.charCodeAt(1))*16+te(e.charCodeAt(2)))/255,green:(te(e.charCodeAt(3))*16+te(e.charCodeAt(4)))/255,blue:(te(e.charCodeAt(5))*16+te(e.charCodeAt(6)))/255,alpha:(te(e.charCodeAt(7))*16+te(e.charCodeAt(8)))/255}}}var l1=class{constructor(e){this.schemaService=e}findDocumentSymbols(e,t,n={resultLimit:Number.MAX_VALUE}){const r=t.root;if(!r)return[];let i=n.resultLimit||Number.MAX_VALUE;const s=e.uri;if((s==="vscode://defaultsettings/keybindings.json"||Xt(s.toLowerCase(),"/user/keybindings.json"))&&r.type==="array"){const f=[];for(const m of r.items)if(m.type==="object"){for(const d of m.properties)if(d.keyNode.value==="key"&&d.valueNode){const g=Rt.create(e.uri,tt(e,m));if(f.push({name:Io(d.valueNode),kind:De.Function,location:g}),i--,i<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),f}}return f}const a=[{node:r,containerName:""}];let l=0,o=!1;const u=[],h=(f,m)=>{f.type==="array"?f.items.forEach(d=>{d&&a.push({node:d,containerName:m})}):f.type==="object"&&f.properties.forEach(d=>{const g=d.valueNode;if(g)if(i>0){i--;const p=Rt.create(e.uri,tt(e,d)),y=m?m+"."+d.keyNode.value:d.keyNode.value;u.push({name:this.getKeyLabel(d),kind:this.getSymbolKind(g.type),location:p,containerName:m}),a.push({node:g,containerName:y})}else o=!0})};for(;l<a.length;){const f=a[l++];h(f.node,f.containerName)}return o&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),u}findDocumentSymbols2(e,t,n={resultLimit:Number.MAX_VALUE}){const r=t.root;if(!r)return[];let i=n.resultLimit||Number.MAX_VALUE;const s=e.uri;if((s==="vscode://defaultsettings/keybindings.json"||Xt(s.toLowerCase(),"/user/keybindings.json"))&&r.type==="array"){const f=[];for(const m of r.items)if(m.type==="object"){for(const d of m.properties)if(d.keyNode.value==="key"&&d.valueNode){const g=tt(e,m),p=tt(e,d.keyNode);if(f.push({name:Io(d.valueNode),kind:De.Function,range:g,selectionRange:p}),i--,i<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),f}}return f}const a=[],l=[{node:r,result:a}];let o=0,u=!1;const h=(f,m)=>{f.type==="array"?f.items.forEach((d,g)=>{if(d)if(i>0){i--;const p=tt(e,d),y=p,_={name:String(g),kind:this.getSymbolKind(d.type),range:p,selectionRange:y,children:[]};m.push(_),l.push({result:_.children,node:d})}else u=!0}):f.type==="object"&&f.properties.forEach(d=>{const g=d.valueNode;if(g)if(i>0){i--;const p=tt(e,d),y=tt(e,d.keyNode),w=[],_={name:this.getKeyLabel(d),kind:this.getSymbolKind(g.type),range:p,selectionRange:y,children:w,detail:this.getDetail(g)};m.push(_),l.push({result:w,node:g})}else u=!0})};for(;o<l.length;){const f=l[o++];h(f.node,f.result)}return u&&n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(s),a}getSymbolKind(e){switch(e){case"object":return De.Module;case"string":return De.String;case"number":return De.Number;case"array":return De.Array;case"boolean":return De.Boolean;default:return De.Variable}}getKeyLabel(e){let t=e.keyNode.value;return t&&(t=t.replace(/[\\n]/g,"↵")),t&&t.trim()?t:`"${t}"`}getDetail(e){if(e){if(e.type==="boolean"||e.type==="number"||e.type==="null"||e.type==="string")return String(e.value);if(e.type==="array")return e.children.length?void 0:"[]";if(e.type==="object")return e.children.length?void 0:"{}"}}findDocumentColors(e,t,n){return this.schemaService.getSchemaForResource(e.uri,t).then(r=>{const i=[];if(r){let s=n&&typeof n.resultLimit=="number"?n.resultLimit:Number.MAX_VALUE;const a=t.getMatchingSchemas(r.schema),l={};for(const o of a)if(!o.inverted&&o.schema&&(o.schema.format==="color"||o.schema.format==="color-hex")&&o.node&&o.node.type==="string"){const u=String(o.node.offset);if(!l[u]){const h=o1(ut(o.node));if(h){const f=tt(e,o.node);i.push({color:h,range:f})}if(l[u]=!0,s--,s<=0)return n&&n.onResultLimitExceeded&&n.onResultLimitExceeded(e.uri),i}}}return i})}getColorPresentations(e,t,n,r){const i=[],s=Math.round(n.red*255),a=Math.round(n.green*255),l=Math.round(n.blue*255);function o(h){const f=h.toString(16);return f.length!==2?"0"+f:f}let u;return n.alpha===1?u=`#${o(s)}${o(a)}${o(l)}`:u=`#${o(s)}${o(a)}${o(l)}${o(Math.round(n.alpha*255))}`,i.push({label:u,textEdit:Ve.replace(r,JSON.stringify(u))}),i}};function tt(e,t){return q.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}function Io(e){return ut(e)||E("<empty>")}var Kr={schemaAssociations:[],schemas:{"http://json-schema.org/draft-04/schema#":{$schema:"http://json-schema.org/draft-04/schema#",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{type:"string",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minLength:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minItems:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},uniqueItems:{type:"boolean",default:!1},maxProperties:{allOf:[{$ref:"#/definitions/positiveInteger"}]},minProperties:{allOf:[{$ref:"#/definitions/positiveIntegerDefault0"}]},required:{allOf:[{$ref:"#/definitions/stringArray"}]},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{anyOf:[{type:"string",enum:["date-time","uri","email","hostname","ipv4","ipv6","regex"]},{type:"string"}]},allOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},anyOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},oneOf:{allOf:[{$ref:"#/definitions/schemaArray"}]},not:{allOf:[{$ref:"#"}]}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}},"http://json-schema.org/draft-07/schema#":{definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}}},u1={id:E("A unique identifier for the schema."),$schema:E("The schema to verify this document against."),title:E("A descriptive title of the element."),description:E("A long description of the element. Used in hover menus and suggestions."),default:E("A default value. Used by suggestions."),multipleOf:E("A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:E("The maximum numerical value, inclusive by default."),exclusiveMaximum:E("Makes the maximum property exclusive."),minimum:E("The minimum numerical value, inclusive by default."),exclusiveMinimum:E("Makes the minimum property exclusive."),maxLength:E("The maximum length of a string."),minLength:E("The minimum length of a string."),pattern:E("A regular expression to match the string against. It is not implicitly anchored."),additionalItems:E("For arrays, only when items is set as an array. If it is a schema, then this schema validates items after the ones specified by the items array. If it is false, then additional items will cause validation to fail."),items:E("For arrays. Can either be a schema to validate every element against or an array of schemas to validate each item against in order (the first schema will validate the first element, the second schema will validate the second element, and so on."),maxItems:E("The maximum number of items that can be inside an array. Inclusive."),minItems:E("The minimum number of items that can be inside an array. Inclusive."),uniqueItems:E("If all of the items in the array must be unique. Defaults to false."),maxProperties:E("The maximum number of properties an object can have. Inclusive."),minProperties:E("The minimum number of properties an object can have. Inclusive."),required:E("An array of strings that lists the names of all properties required on this object."),additionalProperties:E("Either a schema or a boolean. If a schema, then used to validate all properties not matched by \'properties\' or \'patternProperties\'. If false, then any properties not matched by either will cause this schema to fail."),definitions:E("Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:E("A map of property names to schemas for each property."),patternProperties:E("A map of regular expressions on property names to schemas for matching properties."),dependencies:E("A map of property names to either an array of property names or a schema. An array of property names means the property named in the key depends on the properties in the array being present in the object in order to be valid. If the value is a schema, then the schema is only applied to the object if the property in the key exists on the object."),enum:E("The set of literal values that are valid."),type:E("Either a string of one of the basic schema types (number, integer, null, array, object, boolean, string) or an array of strings specifying a subset of those types."),format:E("Describes the format expected for the value."),allOf:E("An array of schemas, all of which must match."),anyOf:E("An array of schemas, where at least one must match."),oneOf:E("An array of schemas, exactly one of which must match."),not:E("A schema which must not match."),$id:E("A unique identifier for the schema."),$ref:E("Reference a definition hosted on any location."),$comment:E("Comments from schema authors to readers or maintainers of the schema."),readOnly:E("Indicates that the value of the instance is managed exclusively by the owning authority."),examples:E("Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:E(\'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.\'),propertyNames:E("If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:E("An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:E("Describes the media type of a string property."),contentEncoding:E("Describes the content encoding of a string property."),if:E(\'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.\'),then:E(\'The "if" subschema is used for validation when the "if" subschema succeeds.\'),else:E(\'The "else" subschema is used for validation when the "if" subschema fails.\')};for(const e in Kr.schemas){const t=Kr.schemas[e];for(const n in t.properties){let r=t.properties[n];typeof r=="boolean"&&(r=t.properties[n]={});const i=u1[n];i&&(r.description=i)}}var Fo;(()=>{var e={470:i=>{function s(o){if(typeof o!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(o))}function a(o,u){for(var h,f="",m=0,d=-1,g=0,p=0;p<=o.length;++p){if(p<o.length)h=o.charCodeAt(p);else{if(h===47)break;h=47}if(h===47){if(!(d===p-1||g===1))if(d!==p-1&&g===2){if(f.length<2||m!==2||f.charCodeAt(f.length-1)!==46||f.charCodeAt(f.length-2)!==46){if(f.length>2){var y=f.lastIndexOf("/");if(y!==f.length-1){y===-1?(f="",m=0):m=(f=f.slice(0,y)).length-1-f.lastIndexOf("/"),d=p,g=0;continue}}else if(f.length===2||f.length===1){f="",m=0,d=p,g=0;continue}}u&&(f.length>0?f+="/..":f="..",m=2)}else f.length>0?f+="/"+o.slice(d+1,p):f=o.slice(d+1,p),m=p-d-1;d=p,g=0}else h===46&&g!==-1?++g:g=-1}return f}var l={resolve:function(){for(var o,u="",h=!1,f=arguments.length-1;f>=-1&&!h;f--){var m;f>=0?m=arguments[f]:(o===void 0&&(o=process.cwd()),m=o),s(m),m.length!==0&&(u=m+"/"+u,h=m.charCodeAt(0)===47)}return u=a(u,!h),h?u.length>0?"/"+u:"/":u.length>0?u:"."},normalize:function(o){if(s(o),o.length===0)return".";var u=o.charCodeAt(0)===47,h=o.charCodeAt(o.length-1)===47;return(o=a(o,!u)).length!==0||u||(o="."),o.length>0&&h&&(o+="/"),u?"/"+o:o},isAbsolute:function(o){return s(o),o.length>0&&o.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var o,u=0;u<arguments.length;++u){var h=arguments[u];s(h),h.length>0&&(o===void 0?o=h:o+="/"+h)}return o===void 0?".":l.normalize(o)},relative:function(o,u){if(s(o),s(u),o===u||(o=l.resolve(o))===(u=l.resolve(u)))return"";for(var h=1;h<o.length&&o.charCodeAt(h)===47;++h);for(var f=o.length,m=f-h,d=1;d<u.length&&u.charCodeAt(d)===47;++d);for(var g=u.length-d,p=m<g?m:g,y=-1,w=0;w<=p;++w){if(w===p){if(g>p){if(u.charCodeAt(d+w)===47)return u.slice(d+w+1);if(w===0)return u.slice(d+w)}else m>p&&(o.charCodeAt(h+w)===47?y=w:w===0&&(y=0));break}var _=o.charCodeAt(h+w);if(_!==u.charCodeAt(d+w))break;_===47&&(y=w)}var v="";for(w=h+y+1;w<=f;++w)w!==f&&o.charCodeAt(w)!==47||(v.length===0?v+="..":v+="/..");return v.length>0?v+u.slice(d+y):(d+=y,u.charCodeAt(d)===47&&++d,u.slice(d))},_makeLong:function(o){return o},dirname:function(o){if(s(o),o.length===0)return".";for(var u=o.charCodeAt(0),h=u===47,f=-1,m=!0,d=o.length-1;d>=1;--d)if((u=o.charCodeAt(d))===47){if(!m){f=d;break}}else m=!1;return f===-1?h?"/":".":h&&f===1?"//":o.slice(0,f)},basename:function(o,u){if(u!==void 0&&typeof u!="string")throw new TypeError(\'"ext" argument must be a string\');s(o);var h,f=0,m=-1,d=!0;if(u!==void 0&&u.length>0&&u.length<=o.length){if(u.length===o.length&&u===o)return"";var g=u.length-1,p=-1;for(h=o.length-1;h>=0;--h){var y=o.charCodeAt(h);if(y===47){if(!d){f=h+1;break}}else p===-1&&(d=!1,p=h+1),g>=0&&(y===u.charCodeAt(g)?--g==-1&&(m=h):(g=-1,m=p))}return f===m?m=p:m===-1&&(m=o.length),o.slice(f,m)}for(h=o.length-1;h>=0;--h)if(o.charCodeAt(h)===47){if(!d){f=h+1;break}}else m===-1&&(d=!1,m=h+1);return m===-1?"":o.slice(f,m)},extname:function(o){s(o);for(var u=-1,h=0,f=-1,m=!0,d=0,g=o.length-1;g>=0;--g){var p=o.charCodeAt(g);if(p!==47)f===-1&&(m=!1,f=g+1),p===46?u===-1?u=g:d!==1&&(d=1):u!==-1&&(d=-1);else if(!m){h=g+1;break}}return u===-1||f===-1||d===0||d===1&&u===f-1&&u===h+1?"":o.slice(u,f)},format:function(o){if(o===null||typeof o!="object")throw new TypeError(\'The "pathObject" argument must be of type Object. Received type \'+typeof o);return(function(u,h){var f=h.dir||h.root,m=h.base||(h.name||"")+(h.ext||"");return f?f===h.root?f+m:f+"/"+m:m})(0,o)},parse:function(o){s(o);var u={root:"",dir:"",base:"",ext:"",name:""};if(o.length===0)return u;var h,f=o.charCodeAt(0),m=f===47;m?(u.root="/",h=1):h=0;for(var d=-1,g=0,p=-1,y=!0,w=o.length-1,_=0;w>=h;--w)if((f=o.charCodeAt(w))!==47)p===-1&&(y=!1,p=w+1),f===46?d===-1?d=w:_!==1&&(_=1):d!==-1&&(_=-1);else if(!y){g=w+1;break}return d===-1||p===-1||_===0||_===1&&d===p-1&&d===g+1?p!==-1&&(u.base=u.name=g===0&&m?o.slice(1,p):o.slice(g,p)):(g===0&&m?(u.name=o.slice(1,d),u.base=o.slice(1,p)):(u.name=o.slice(g,d),u.base=o.slice(g,p)),u.ext=o.slice(d,p)),g>0?u.dir=o.slice(0,g-1):m&&(u.dir="/"),u},sep:"/",delimiter:":",win32:null,posix:null};l.posix=l,i.exports=l}},t={};function n(i){var s=t[i];if(s!==void 0)return s.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}n.d=(i,s)=>{for(var a in s)n.o(s,a)&&!n.o(i,a)&&Object.defineProperty(i,a,{enumerable:!0,get:s[a]})},n.o=(i,s)=>Object.prototype.hasOwnProperty.call(i,s),n.r=i=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})};var r={};(()=>{let i;n.r(r),n.d(r,{URI:()=>m,Utils:()=>O}),typeof process=="object"?i=process.platform==="win32":typeof navigator=="object"&&(i=navigator.userAgent.indexOf("Windows")>=0);const s=/^\\w[\\w\\d+.-]*$/,a=/^\\//,l=/^\\/\\//;function o(C,N){if(!C.scheme&&N)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${C.authority}", path: "${C.path}", query: "${C.query}", fragment: "${C.fragment}"}`);if(C.scheme&&!s.test(C.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(C.path){if(C.authority){if(!a.test(C.path))throw new Error(\'[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character\')}else if(l.test(C.path))throw new Error(\'[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")\')}}const u="",h="/",f=/^(([^:/?#]+?):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/;class m{constructor(N,k,R,I,T,P=!1){it(this,"scheme");it(this,"authority");it(this,"path");it(this,"query");it(this,"fragment");typeof N=="object"?(this.scheme=N.scheme||u,this.authority=N.authority||u,this.path=N.path||u,this.query=N.query||u,this.fragment=N.fragment||u):(this.scheme=(function(D,B){return D||B?D:"file"})(N,P),this.authority=k||u,this.path=(function(D,B){switch(D){case"https":case"http":case"file":B?B[0]!==h&&(B=h+B):B=h}return B})(this.scheme,R||u),this.query=I||u,this.fragment=T||u,o(this,P))}static isUri(N){return N instanceof m||!!N&&typeof N.authority=="string"&&typeof N.fragment=="string"&&typeof N.path=="string"&&typeof N.query=="string"&&typeof N.scheme=="string"&&typeof N.fsPath=="string"&&typeof N.with=="function"&&typeof N.toString=="function"}get fsPath(){return _(this)}with(N){if(!N)return this;let{scheme:k,authority:R,path:I,query:T,fragment:P}=N;return k===void 0?k=this.scheme:k===null&&(k=u),R===void 0?R=this.authority:R===null&&(R=u),I===void 0?I=this.path:I===null&&(I=u),T===void 0?T=this.query:T===null&&(T=u),P===void 0?P=this.fragment:P===null&&(P=u),k===this.scheme&&R===this.authority&&I===this.path&&T===this.query&&P===this.fragment?this:new g(k,R,I,T,P)}static parse(N,k=!1){const R=f.exec(N);return R?new g(R[2]||u,L(R[4]||u),L(R[5]||u),L(R[7]||u),L(R[9]||u),k):new g(u,u,u,u,u)}static file(N){let k=u;if(i&&(N=N.replace(/\\\\/g,h)),N[0]===h&&N[1]===h){const R=N.indexOf(h,2);R===-1?(k=N.substring(2),N=h):(k=N.substring(2,R),N=N.substring(R)||h)}return new g("file",k,N,u,u)}static from(N){const k=new g(N.scheme,N.authority,N.path,N.query,N.fragment);return o(k,!0),k}toString(N=!1){return v(this,N)}toJSON(){return this}static revive(N){if(N){if(N instanceof m)return N;{const k=new g(N);return k._formatted=N.external,k._fsPath=N._sep===d?N.fsPath:null,k}}return N}}const d=i?1:void 0;class g extends m{constructor(){super(...arguments);it(this,"_formatted",null);it(this,"_fsPath",null)}get fsPath(){return this._fsPath||(this._fsPath=_(this)),this._fsPath}toString(k=!1){return k?v(this,!0):(this._formatted||(this._formatted=v(this,!1)),this._formatted)}toJSON(){const k={$mid:1};return this._fsPath&&(k.fsPath=this._fsPath,k._sep=d),this._formatted&&(k.external=this._formatted),this.path&&(k.path=this.path),this.scheme&&(k.scheme=this.scheme),this.authority&&(k.authority=this.authority),this.query&&(k.query=this.query),this.fragment&&(k.fragment=this.fragment),k}}const p={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 y(C,N,k){let R,I=-1;for(let T=0;T<C.length;T++){const P=C.charCodeAt(T);if(P>=97&&P<=122||P>=65&&P<=90||P>=48&&P<=57||P===45||P===46||P===95||P===126||N&&P===47||k&&P===91||k&&P===93||k&&P===58)I!==-1&&(R+=encodeURIComponent(C.substring(I,T)),I=-1),R!==void 0&&(R+=C.charAt(T));else{R===void 0&&(R=C.substr(0,T));const D=p[P];D!==void 0?(I!==-1&&(R+=encodeURIComponent(C.substring(I,T)),I=-1),R+=D):I===-1&&(I=T)}}return I!==-1&&(R+=encodeURIComponent(C.substring(I))),R!==void 0?R:C}function w(C){let N;for(let k=0;k<C.length;k++){const R=C.charCodeAt(k);R===35||R===63?(N===void 0&&(N=C.substr(0,k)),N+=p[R]):N!==void 0&&(N+=C[k])}return N!==void 0?N:C}function _(C,N){let k;return k=C.authority&&C.path.length>1&&C.scheme==="file"?`//${C.authority}${C.path}`:C.path.charCodeAt(0)===47&&(C.path.charCodeAt(1)>=65&&C.path.charCodeAt(1)<=90||C.path.charCodeAt(1)>=97&&C.path.charCodeAt(1)<=122)&&C.path.charCodeAt(2)===58?C.path[1].toLowerCase()+C.path.substr(2):C.path,i&&(k=k.replace(/\\//g,"\\\\")),k}function v(C,N){const k=N?w:y;let R="",{scheme:I,authority:T,path:P,query:D,fragment:B}=C;if(I&&(R+=I,R+=":"),(T||I==="file")&&(R+=h,R+=h),T){let j=T.indexOf("@");if(j!==-1){const ne=T.substr(0,j);T=T.substr(j+1),j=ne.lastIndexOf(":"),j===-1?R+=k(ne,!1,!1):(R+=k(ne.substr(0,j),!1,!1),R+=":",R+=k(ne.substr(j+1),!1,!0)),R+="@"}T=T.toLowerCase(),j=T.lastIndexOf(":"),j===-1?R+=k(T,!1,!0):(R+=k(T.substr(0,j),!1,!0),R+=T.substr(j))}if(P){if(P.length>=3&&P.charCodeAt(0)===47&&P.charCodeAt(2)===58){const j=P.charCodeAt(1);j>=65&&j<=90&&(P=`/${String.fromCharCode(j+32)}:${P.substr(3)}`)}else if(P.length>=2&&P.charCodeAt(1)===58){const j=P.charCodeAt(0);j>=65&&j<=90&&(P=`${String.fromCharCode(j+32)}:${P.substr(2)}`)}R+=k(P,!0,!1)}return D&&(R+="?",R+=k(D,!1,!1)),B&&(R+="#",R+=N?B:y(B,!1,!1)),R}function x(C){try{return decodeURIComponent(C)}catch{return C.length>3?C.substr(0,3)+x(C.substr(3)):C}}const b=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function L(C){return C.match(b)?C.replace(b,N=>x(N)):C}var S=n(470);const M=S.posix||S,F="/";var O;(function(C){C.joinPath=function(N,...k){return N.with({path:M.join(N.path,...k)})},C.resolvePath=function(N,...k){let R=N.path,I=!1;R[0]!==F&&(R=F+R,I=!0);let T=M.resolve(R,...k);return I&&T[0]===F&&!N.authority&&(T=T.substring(1)),N.with({path:T})},C.dirname=function(N){if(N.path.length===0||N.path===F)return N;let k=M.dirname(N.path);return k.length===1&&k.charCodeAt(0)===46&&(k=""),N.with({path:k})},C.basename=function(N){return M.basename(N.path)},C.extname=function(N){return M.extname(N.path)}})(O||(O={}))})(),Fo=r})();var{URI:Ct,Utils:H1}=Fo;function c1(e,t){if(typeof e!="string")throw new TypeError("Expected a string");const n=String(e);let r="";const i=!!t,s=!!t;let a=!1;const l=t&&typeof t.flags=="string"?t.flags:"";let o;for(let u=0,h=n.length;u<h;u++)switch(o=n[u],o){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+="\\\\"+o;break;case"?":if(i){r+=".";break}case"[":case"]":if(i){r+=o;break}case"{":if(i){a=!0,r+="(";break}case"}":if(i){a=!1,r+=")";break}case",":if(a){r+="|";break}r+="\\\\"+o;break;case"*":const f=n[u-1];let m=1;for(;n[u+1]==="*";)m++,u++;const d=n[u+1];s?m>1&&(f==="/"||f===void 0||f==="{"||f===",")&&(d==="/"||d===void 0||d===","||d==="}")?(d==="/"?u++:f==="/"&&r.endsWith("\\\\/")&&(r=r.substr(0,r.length-2)),r+="((?:[^/]*(?:/|$))*)"):r+="([^/]*)":r+=".*";break;default:r+=o}return(!l||!~l.indexOf("g"))&&(r="^"+r+"$"),new RegExp(r,l)}var f1="!",h1="/",m1=class{constructor(e,t,n){this.folderUri=t,this.uris=n,this.globWrappers=[];try{for(let r of e){const i=r[0]!==f1;i||(r=r.substring(1)),r.length>0&&(r[0]===h1&&(r=r.substring(1)),this.globWrappers.push({regexp:c1("**/"+r,{extended:!0,globstar:!0}),include:i}))}t&&(t=Do(t),t.endsWith("/")||(t=t+"/"),this.folderUri=t)}catch{this.globWrappers.length=0,this.uris=[]}}matchesPattern(e){if(this.folderUri&&!e.startsWith(this.folderUri))return!1;let t=!1;for(const{regexp:n,include:r}of this.globWrappers)n.test(e)&&(t=r);return t}getURIs(){return this.uris}},d1=class{constructor(e,t,n){this.service=e,this.uri=t,this.dependencies=new Set,this.anchors=void 0,n&&(this.unresolvedSchema=this.service.promise.resolve(new Kt(n)))}getUnresolvedSchema(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.uri)),this.unresolvedSchema}getResolvedSchema(){return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(e=>this.service.resolveSchemaContent(e,this))),this.resolvedSchema}clearSchema(){const e=!!this.unresolvedSchema;return this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies.clear(),this.anchors=void 0,e}},Kt=class{constructor(e,t=[]){this.schema=e,this.errors=t}},Vo=class{constructor(e,t=[],n=[],r){this.schema=e,this.errors=t,this.warnings=n,this.schemaDraft=r}getSection(e){const t=this.getSectionRecursive(e,this.schema);if(t)return we(t)}getSectionRecursive(e,t){if(!t||typeof t=="boolean"||e.length===0)return t;const n=e.shift();if(t.properties&&typeof t.properties[n])return this.getSectionRecursive(e,t.properties[n]);if(t.patternProperties){for(const r of Object.keys(t.patternProperties))if(Rn(r)?.test(n))return this.getSectionRecursive(e,t.patternProperties[r])}else{if(typeof t.additionalProperties=="object")return this.getSectionRecursive(e,t.additionalProperties);if(n.match("[0-9]+")){if(Array.isArray(t.items)){const r=parseInt(n,10);if(!isNaN(r)&&t.items[r])return this.getSectionRecursive(e,t.items[r])}else if(t.items)return this.getSectionRecursive(e,t.items)}}}},g1=class{constructor(e,t,n){this.contextService=t,this.requestService=e,this.promiseConstructor=n||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}getRegisteredSchemaIds(e){return Object.keys(this.registeredSchemasIds).filter(t=>{const n=Ct.parse(t).scheme;return n!=="schemaservice"&&(!e||e(n))})}get promise(){return this.promiseConstructor}dispose(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()}onResourceChange(e){this.cachedSchemaForResource=void 0;let t=!1;e=nt(e);const n=[e],r=Object.keys(this.schemasById).map(i=>this.schemasById[i]);for(;n.length;){const i=n.pop();for(let s=0;s<r.length;s++){const a=r[s];a&&(a.uri===i||a.dependencies.has(i))&&(a.uri!==i&&n.push(a.uri),a.clearSchema()&&(t=!0),r[s]=void 0)}}return t}setSchemaContributions(e){if(e.schemas){const t=e.schemas;for(const n in t){const r=nt(n);this.contributionSchemas[r]=this.addSchemaHandle(r,t[n])}}if(Array.isArray(e.schemaAssociations)){const t=e.schemaAssociations;for(let n of t){const r=n.uris.map(nt),i=this.addFilePatternAssociation(n.pattern,n.folderUri,r);this.contributionAssociations.push(i)}}}addSchemaHandle(e,t){const n=new d1(this,e,t);return this.schemasById[e]=n,n}getOrAddSchemaHandle(e,t){return this.schemasById[e]||this.addSchemaHandle(e,t)}addFilePatternAssociation(e,t,n){const r=new m1(e,t,n);return this.filePatternAssociations.push(r),r}registerExternalSchema(e){const t=nt(e.uri);return this.registeredSchemasIds[t]=!0,this.cachedSchemaForResource=void 0,e.fileMatch&&e.fileMatch.length&&this.addFilePatternAssociation(e.fileMatch,e.folderUri,[t]),e.schema?this.addSchemaHandle(t,e.schema):this.getOrAddSchemaHandle(t)}clearExternalSchemas(){this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0;for(const e in this.contributionSchemas)this.schemasById[e]=this.contributionSchemas[e],this.registeredSchemasIds[e]=!0;for(const e of this.contributionAssociations)this.filePatternAssociations.push(e)}getResolvedSchema(e){const t=nt(e),n=this.schemasById[t];return n?n.getResolvedSchema():this.promise.resolve(void 0)}loadSchema(e){if(!this.requestService){const t=E("Unable to load schema from \'{0}\'. No schema request service available",en(e));return this.promise.resolve(new Kt({},[t]))}return e.startsWith("http://json-schema.org/")&&(e="https"+e.substring(4)),this.requestService(e).then(t=>{if(!t){const s=E("Unable to load schema from \'{0}\': No content.",en(e));return new Kt({},[s])}const n=[];t.charCodeAt(0)===65279&&(n.push(E("Problem reading content from \'{0}\': UTF-8 with BOM detected, only UTF 8 is allowed.",en(e))),t=t.trimStart());let r={};const i=[];return r=Pc(t,i),i.length&&n.push(E("Unable to parse content from \'{0}\': Parse error at offset {1}.",en(e),i[0].offset)),new Kt(r,n)},t=>{let n=t.toString();const r=t.toString().split("Error: ");return r.length>1&&(n=r[1]),Xt(n,".")&&(n=n.substr(0,n.length-1)),new Kt({},[E("Unable to load schema from \'{0}\': {1}.",en(e),n)])})}resolveSchemaContent(e,t){const n=e.errors.slice(0),r=e.schema;let i=r.$schema?nt(r.$schema):void 0;if(i==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Vo({},[E("Draft-03 schemas are not supported.")],[],i));let s=new Set;const a=this.contextService,l=(g,p)=>{p=decodeURIComponent(p);let y=g;return p[0]==="/"&&(p=p.substring(1)),p.split("/").some(w=>(w=w.replace(/~1/g,"/").replace(/~0/g,"~"),y=y[w],!y)),y},o=(g,p,y)=>(p.anchors||(p.anchors=d(g)),p.anchors.get(y)),u=(g,p)=>{for(const y in p)p.hasOwnProperty(y)&&y!=="id"&&y!=="$id"&&(g[y]=p[y])},h=(g,p,y,w)=>{let _;w===void 0||w.length===0?_=p:w.charAt(0)==="/"?_=l(p,w):_=o(p,y,w),_?u(g,_):n.push(E("$ref \'{0}\' in \'{1}\' can not be resolved.",w||"",y.uri))},f=(g,p,y,w)=>{a&&!/^[A-Za-z][A-Za-z0-9+\\-.+]*:\\/\\/.*/.test(p)&&(p=a.resolveRelativePath(p,w.uri)),p=nt(p);const _=this.getOrAddSchemaHandle(p);return _.getUnresolvedSchema().then(v=>{if(w.dependencies.add(p),v.errors.length){const x=y?p+"#"+y:p;n.push(E("Problems loading reference \'{0}\': {1}",x,v.errors[0]))}return h(g,v.schema,_,y),m(g,v.schema,_)})},m=(g,p,y)=>{const w=[];return this.traverseNodes(g,_=>{const v=new Set;for(;_.$ref;){const x=_.$ref,b=x.split("#",2);if(delete _.$ref,b[0].length>0){w.push(f(_,b[0],b[1],y));return}else if(!v.has(x)){const L=b[1];h(_,p,y,L),v.add(x)}}_.$recursiveRef&&s.add("$recursiveRef"),_.$dynamicRef&&s.add("$dynamicRef")}),this.promise.all(w)},d=g=>{const p=new Map;return this.traverseNodes(g,y=>{const w=y.$id||y.id,_=Sa(w)&&w.charAt(0)==="#"?w.substring(1):y.$anchor;_&&(p.has(_)?n.push(E("Duplicate anchor declaration: \'{0}\'",_)):p.set(_,y)),y.$recursiveAnchor&&s.add("$recursiveAnchor"),y.$dynamicAnchor&&s.add("$dynamicAnchor")}),p};return m(r,r,t).then(g=>{let p=[];return s.size&&p.push(E("The schema uses meta-schema features ({0}) that are not yet supported by the validator.",Array.from(s.keys()).join(", "))),new Vo(r,n,p,i)})}traverseNodes(e,t){if(!e||typeof e!="object")return Promise.resolve(null);const n=new Set,r=(...u)=>{for(const h of u)et(h)&&l.push(h)},i=(...u)=>{for(const h of u)if(et(h))for(const f in h){const d=h[f];et(d)&&l.push(d)}},s=(...u)=>{for(const h of u)if(Array.isArray(h))for(const f of h)et(f)&&l.push(f)},a=u=>{if(Array.isArray(u))for(const h of u)et(h)&&l.push(h);else et(u)&&l.push(u)},l=[e];let o=l.pop();for(;o;)n.has(o)||(n.add(o),t(o),r(o.additionalItems,o.additionalProperties,o.not,o.contains,o.propertyNames,o.if,o.then,o.else,o.unevaluatedItems,o.unevaluatedProperties),i(o.definitions,o.$defs,o.properties,o.patternProperties,o.dependencies,o.dependentSchemas),s(o.anyOf,o.allOf,o.oneOf,o.prefixItems),a(o.items)),o=l.pop()}getSchemaFromProperty(e,t){if(t.root?.type==="object"){for(const n of t.root.properties)if(n.keyNode.value==="$schema"&&n.valueNode?.type==="string"){let r=n.valueNode.value;return this.contextService&&!/^\\w[\\w\\d+.-]*:/.test(r)&&(r=this.contextService.resolveRelativePath(r,e)),r}}}getAssociatedSchemas(e){const t=Object.create(null),n=[],r=Do(e);for(const i of this.filePatternAssociations)if(i.matchesPattern(r))for(const s of i.getURIs())t[s]||(n.push(s),t[s]=!0);return n}getSchemaURIsForResource(e,t){let n=t&&this.getSchemaFromProperty(e,t);return n?[n]:this.getAssociatedSchemas(e)}getSchemaForResource(e,t){if(t){let i=this.getSchemaFromProperty(e,t);if(i){const s=nt(i);return this.getOrAddSchemaHandle(s).getResolvedSchema()}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===e)return this.cachedSchemaForResource.resolvedSchema;const n=this.getAssociatedSchemas(e),r=n.length>0?this.createCombinedSchema(e,n).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:e,resolvedSchema:r},r}createCombinedSchema(e,t){if(t.length===1)return this.getOrAddSchemaHandle(t[0]);{const n="schemaservice://combinedSchema/"+encodeURIComponent(e),r={allOf:t.map(i=>({$ref:i}))};return this.addSchemaHandle(n,r)}}getMatchingSchemas(e,t,n){if(n){const r=n.id||"schemaservice://untitled/matchingSchemas/"+p1++;return this.addSchemaHandle(r,n).getResolvedSchema().then(s=>t.getMatchingSchemas(s.schema).filter(a=>!a.inverted))}return this.getSchemaForResource(e.uri,t).then(r=>r?t.getMatchingSchemas(r.schema).filter(i=>!i.inverted):[])}},p1=0;function nt(e){try{return Ct.parse(e).toString(!0)}catch{return e}}function Do(e){try{return Ct.parse(e).with({fragment:null,query:null}).toString(!0)}catch{return e}}function en(e){try{const t=Ct.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}function b1(e,t){const n=[],r=[],i=[];let s=-1;const a=at(e.getText(),!1);let l=a.scan();function o(g){n.push(g),r.push(i.length)}for(;l!==17;){switch(l){case 1:case 3:{const g=e.positionAt(a.getTokenOffset()).line,p={startLine:g,endLine:g,kind:l===1?"object":"array"};i.push(p);break}case 2:case 4:{const g=l===2?"object":"array";if(i.length>0&&i[i.length-1].kind===g){const p=i.pop(),y=e.positionAt(a.getTokenOffset()).line;p&&y>p.startLine+1&&s!==p.startLine&&(p.endLine=y-1,o(p),s=p.startLine)}break}case 13:{const g=e.positionAt(a.getTokenOffset()).line,p=e.positionAt(a.getTokenOffset()+a.getTokenLength()).line;a.getTokenError()===1&&g+1<e.lineCount?a.setPosition(e.offsetAt(Z.create(g+1,0))):g<p&&(o({startLine:g,endLine:p,kind:Qt.Comment}),s=g);break}case 12:{const p=e.getText().substr(a.getTokenOffset(),a.getTokenLength()).match(/^\\/\\/\\s*#(region\\b)|(endregion\\b)/);if(p){const y=e.positionAt(a.getTokenOffset()).line;if(p[1]){const w={startLine:y,endLine:y,kind:Qt.Region};i.push(w)}else{let w=i.length-1;for(;w>=0&&i[w].kind!==Qt.Region;)w--;if(w>=0){const _=i[w];i.length=w,y>_.startLine&&s!==_.startLine&&(_.endLine=y,o(_),s=_.startLine)}}}break}}l=a.scan()}const u=t&&t.rangeLimit;if(typeof u!="number"||n.length<=u)return n;t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri);const h=[];for(let g of r)g<30&&(h[g]=(h[g]||0)+1);let f=0,m=0;for(let g=0;g<h.length;g++){const p=h[g];if(p){if(p+f>u){m=g;break}f+=p}}const d=[];for(let g=0;g<n.length;g++){const p=r[g];typeof p=="number"&&(p<m||p===m&&f++<u)&&d.push(n[g])}return d}function y1(e,t,n){function r(l){let o=e.offsetAt(l),u=n.getNodeFromOffset(o,!0);const h=[];for(;u;){switch(u.type){case"string":case"object":case"array":const m=u.offset+1,d=u.offset+u.length-1;m<d&&o>=m&&o<=d&&h.push(i(m,d)),h.push(i(u.offset,u.offset+u.length));break;case"number":case"boolean":case"null":case"property":h.push(i(u.offset,u.offset+u.length));break}if(u.type==="property"||u.parent&&u.parent.type==="array"){const m=a(u.offset+u.length,5);m!==-1&&h.push(i(u.offset,m))}u=u.parent}let f;for(let m=h.length-1;m>=0;m--)f=Tn.create(h[m],f);return f||(f=Tn.create(q.create(l,l))),f}function i(l,o){return q.create(e.positionAt(l),e.positionAt(o))}const s=at(e.getText(),!0);function a(l,o){return s.setPosition(l),s.scan()===o?s.getTokenOffset()+s.getTokenLength():-1}return t.map(r)}function ei(e,t,n){let r;if(n){const s=e.offsetAt(n.start),a=e.offsetAt(n.end)-s;r={offset:s,length:a}}const i={tabSize:t?t.tabSize:4,insertSpaces:t?.insertSpaces===!0,insertFinalNewline:t?.insertFinalNewline===!0,eol:`\n`,keepLines:t?.keepLines===!0};return Dc(e.getText(),r,i).map(s=>Ve.replace(q.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length)),s.content))}var se;(function(e){e[e.Object=0]="Object",e[e.Array=1]="Array"})(se||(se={}));var Fn=class{constructor(e,t){this.propertyName=e??"",this.beginningLineNumber=t,this.childrenProperties=[],this.lastProperty=!1,this.noKeyName=!1}addChildProperty(e){if(e.parent=this,this.childrenProperties.length>0){let t=0;e.noKeyName?t=this.childrenProperties.length:t=x1(this.childrenProperties,e,v1),t<0&&(t=t*-1-1),this.childrenProperties.splice(t,0,e)}else this.childrenProperties.push(e);return e}};function v1(e,t){const n=e.propertyName.toLowerCase(),r=t.propertyName.toLowerCase();return n<r?-1:n>r?1:0}function x1(e,t,n){const r=t.propertyName.toLowerCase(),i=e[0].propertyName.toLowerCase(),s=e[e.length-1].propertyName.toLowerCase();if(r<i)return 0;if(r>s)return e.length;let a=0,l=e.length-1;for(;a<=l;){let o=l+a>>1,u=n(t,e[o]);if(u>0)a=o+1;else if(u<0)l=o-1;else return o}return-a-1}function w1(e,t){const n={...t,keepLines:!1},r=Ee.applyEdits(e,ei(e,n,void 0)),i=Ee.create("test://test.json","json",0,r),s=_1(i),a=L1(i,s),l=ei(a,n,void 0),o=Ee.applyEdits(a,l);return[Ve.replace(q.create(Z.create(0,0),e.positionAt(e.getText().length)),o)]}function _1(e){const t=e.getText(),n=at(t,!1);let r=new Fn,i=r,s=r,a=r,l,o=0,u=0,h,f,m=-1,d=-1,g=0,p=0,y=[],w=!1,_=!1;for(;(l=n.scan())!==17;){if(w===!0&&l!==14&&l!==15&&l!==12&&l!==13&&s.endLineNumber===void 0){let v=n.getTokenStartLine();f===2||f===4?a.endLineNumber=v-1:s.endLineNumber=v-1,g=v,w=!1}if(_===!0&&l!==14&&l!==15&&l!==12&&l!==13&&(g=n.getTokenStartLine(),_=!1),n.getTokenStartLine()!==o){for(let v=o;v<n.getTokenStartLine();v++){const x=e.getText(q.create(Z.create(v,0),Z.create(v+1,0))).length;u=u+x}o=n.getTokenStartLine()}switch(l){case 10:{if(h===void 0||h===1||h===5&&y[y.length-1]===se.Object){const v=new Fn(n.getTokenValue(),g);a=s,s=i.addChildProperty(v)}break}case 3:{if(r.beginningLineNumber===void 0&&(r.beginningLineNumber=n.getTokenStartLine()),y[y.length-1]===se.Object)i=s;else if(y[y.length-1]===se.Array){const v=new Fn(n.getTokenValue(),g);v.noKeyName=!0,a=s,s=i.addChildProperty(v),i=s}y.push(se.Array),s.type=se.Array,g=n.getTokenStartLine(),g++;break}case 1:{if(r.beginningLineNumber===void 0)r.beginningLineNumber=n.getTokenStartLine();else if(y[y.length-1]===se.Array){const v=new Fn(n.getTokenValue(),g);v.noKeyName=!0,a=s,s=i.addChildProperty(v)}s.type=se.Object,y.push(se.Object),i=s,g=n.getTokenStartLine(),g++;break}case 4:{p=n.getTokenStartLine(),y.pop(),s.endLineNumber===void 0&&(h===2||h===4)&&(s.endLineNumber=p-1,s.lastProperty=!0,s.lineWhereToAddComma=m,s.indexWhereToAddComa=d,a=s,s=s?s.parent:void 0,i=s),r.endLineNumber=p,g=p+1;break}case 2:{p=n.getTokenStartLine(),y.pop(),h!==1&&(s.endLineNumber===void 0&&(s.endLineNumber=p-1,s.lastProperty=!0,s.lineWhereToAddComma=m,s.indexWhereToAddComa=d),a=s,s=s?s.parent:void 0,i=s),r.endLineNumber=n.getTokenStartLine(),g=p+1;break}case 5:{p=n.getTokenStartLine(),s.endLineNumber===void 0&&(y[y.length-1]===se.Object||y[y.length-1]===se.Array&&(h===2||h===4))&&(s.endLineNumber=p,s.commaIndex=n.getTokenOffset()-u,s.commaLine=p),(h===2||h===4)&&(a=s,s=s?s.parent:void 0,i=s),g=p+1;break}case 13:{h===5&&m===n.getTokenStartLine()&&(y[y.length-1]===se.Array&&(f===2||f===4)||y[y.length-1]===se.Object)&&(y[y.length-1]===se.Array&&(f===2||f===4)||y[y.length-1]===se.Object)&&(s.endLineNumber=void 0,w=!0),(h===1||h===3)&&m===n.getTokenStartLine()&&(_=!0);break}}l!==14&&l!==13&&l!==12&&l!==15&&(f=h,h=l,m=n.getTokenStartLine(),d=n.getTokenOffset()+n.getTokenLength()-u)}return r}function L1(e,t){if(t.childrenProperties.length===0)return e;const n=Ee.create("test://test.json","json",0,e.getText()),r=[];for(Oo(r,t,t.beginningLineNumber);r.length>0;){const i=r.shift(),s=i.propertyTreeArray;let a=i.beginningLineNumber;for(let l=0;l<s.length;l++){const o=s[l],u=q.create(Z.create(o.beginningLineNumber,0),Z.create(o.endLineNumber+1,0)),h=e.getText(u),f=Ee.create("test://test.json","json",0,h);if(o.lastProperty===!0&&l!==s.length-1){const g=o.lineWhereToAddComma-o.beginningLineNumber,p=o.indexWhereToAddComa,y={range:q.create(Z.create(g,p),Z.create(g,p)),text:","};Ee.update(f,[y],1)}else if(o.lastProperty===!1&&l===s.length-1){const g=o.commaIndex,y=o.commaLine-o.beginningLineNumber,w={range:q.create(Z.create(y,g),Z.create(y,g+1)),text:""};Ee.update(f,[w],1)}const m=o.endLineNumber-o.beginningLineNumber+1,d={range:q.create(Z.create(a,0),Z.create(a+m,0)),text:f.getText()};Ee.update(n,[d],1),Oo(r,o,a),a=a+m}}return n}function Oo(e,t,n){if(t.childrenProperties.length!==0)if(t.type===se.Object){let r=1/0;for(const s of t.childrenProperties)s.beginningLineNumber<r&&(r=s.beginningLineNumber);const i=r-t.beginningLineNumber;n=n+i,e.push(new Bo(n,t.childrenProperties))}else t.type===se.Array&&$o(e,t,n)}function $o(e,t,n){for(const r of t.childrenProperties){if(r.type===se.Object){let i=1/0;for(const a of r.childrenProperties)a.beginningLineNumber<i&&(i=a.beginningLineNumber);const s=i-r.beginningLineNumber;e.push(new Bo(n+r.beginningLineNumber-t.beginningLineNumber+s,r.childrenProperties))}r.type===se.Array&&$o(e,r,n+r.beginningLineNumber-t.beginningLineNumber)}}var Bo=class{constructor(e,t){this.beginningLineNumber=e,this.propertyTreeArray=t}};function N1(e,t){const n=[];return t.visit(r=>{if(r.type==="property"&&r.keyNode.value==="$ref"&&r.valueNode?.type==="string"){const i=r.valueNode.value,s=A1(t,i);if(s){const a=e.positionAt(s.offset);n.push({target:`${e.uri}#${a.line+1},${a.character+1}`,range:S1(e,r.valueNode)})}}return!0}),Promise.resolve(n)}function S1(e,t){return q.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function A1(e,t){const n=k1(t);return n?ti(n,e.root):null}function ti(e,t){if(!t)return null;if(e.length===0)return t;const n=e.shift();if(t&&t.type==="object"){const r=t.properties.find(i=>i.keyNode.value===n);return r?ti(e,r.valueNode):null}else if(t&&t.type==="array"&&n.match(/^(0|[1-9][0-9]*)$/)){const r=Number.parseInt(n),i=t.items[r];return i?ti(e,i):null}return null}function k1(e){return e==="#"?[]:e[0]!=="#"||e[1]!=="/"?null:e.substring(2).split(/\\//).map(R1)}function R1(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function E1(e){const t=e.promiseConstructor||Promise,n=new g1(e.schemaRequestService,e.workspaceContext,t);n.setSchemaContributions(Kr);const r=new Kc(n,e.contributions,t,e.clientCapabilities),i=new e1(n,e.contributions,t),s=new l1(n),a=new n1(n,t);return{configure:l=>{n.clearExternalSchemas(),l.schemas?.forEach(n.registerExternalSchema.bind(n)),a.configure(l)},resetSchema:l=>n.onResourceChange(l),doValidation:a.doValidation.bind(a),getLanguageStatus:a.getLanguageStatus.bind(a),parseJSONDocument:l=>Zc(l,{collectComments:!0}),newJSONDocument:(l,o)=>Yc(l,o),getMatchingSchemas:n.getMatchingSchemas.bind(n),doResolve:r.doResolve.bind(r),doComplete:r.doComplete.bind(r),findDocumentSymbols:s.findDocumentSymbols.bind(s),findDocumentSymbols2:s.findDocumentSymbols2.bind(s),findDocumentColors:s.findDocumentColors.bind(s),getColorPresentations:s.getColorPresentations.bind(s),doHover:i.doHover.bind(i),getFoldingRanges:b1,getSelectionRanges:y1,findDefinition:()=>Promise.resolve([]),findLinks:N1,format:(l,o,u)=>ei(l,u,o),sort:(l,o)=>w1(l,o)}}var Uo;typeof fetch<"u"&&(Uo=function(e){return fetch(e).then(t=>t.text())});var M1=class{constructor(e,t){this._ctx=e,this._languageSettings=t.languageSettings,this._languageId=t.languageId,this._languageService=E1({workspaceContext:{resolveRelativePath:(n,r)=>{const i=r.substr(0,r.lastIndexOf("/")+1);return P1(i,n)}},schemaRequestService:t.enableSchemaRequest?Uo:void 0,clientCapabilities:Jr.LATEST}),this._languageService.configure(this._languageSettings)}async doValidation(e){let t=this._getTextDocument(e);if(t){let n=this._languageService.parseJSONDocument(t);return this._languageService.doValidation(t,n,this._languageSettings)}return Promise.resolve([])}async doComplete(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseJSONDocument(n);return this._languageService.doComplete(n,t,r)}async doResolve(e){return this._languageService.doResolve(e)}async doHover(e,t){let n=this._getTextDocument(e);if(!n)return null;let r=this._languageService.parseJSONDocument(n);return this._languageService.doHover(n,t,r)}async format(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.format(r,t,n);return Promise.resolve(i)}async resetSchema(e){return Promise.resolve(this._languageService.resetSchema(e))}async findDocumentSymbols(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t),r=this._languageService.findDocumentSymbols2(t,n);return Promise.resolve(r)}async findDocumentColors(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t),r=this._languageService.findDocumentColors(t,n);return Promise.resolve(r)}async getColorPresentations(e,t,n){let r=this._getTextDocument(e);if(!r)return[];let i=this._languageService.parseJSONDocument(r),s=this._languageService.getColorPresentations(r,i,t,n);return Promise.resolve(s)}async getFoldingRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.getFoldingRanges(n,t);return Promise.resolve(r)}async getSelectionRanges(e,t){let n=this._getTextDocument(e);if(!n)return[];let r=this._languageService.parseJSONDocument(n),i=this._languageService.getSelectionRanges(n,t,r);return Promise.resolve(i)}async parseJSONDocument(e){let t=this._getTextDocument(e);if(!t)return null;let n=this._languageService.parseJSONDocument(t);return Promise.resolve(n)}async getMatchingSchemas(e){let t=this._getTextDocument(e);if(!t)return[];let n=this._languageService.parseJSONDocument(t);return Promise.resolve(this._languageService.getMatchingSchemas(t,n))}_getTextDocument(e){let t=this._ctx.getMirrorModels();for(let n of t)if(n.uri.toString()===e)return Ee.create(e,this._languageId,n.version,n.getValue());return null}},C1=47,ni=46;function T1(e){return e.charCodeAt(0)===C1}function P1(e,t){if(T1(t)){const n=Ct.parse(e),r=t.split("/");return n.with({path:qo(r)}).toString()}return I1(e,t)}function qo(e){const t=[];for(const r of e)r.length===0||r.length===1&&r.charCodeAt(0)===ni||(r.length===2&&r.charCodeAt(0)===ni&&r.charCodeAt(1)===ni?t.pop():t.push(r));e.length>1&&e[e.length-1].length===0&&t.push("");let n=t.join("/");return e[0].length===0&&(n="/"+n),n}function I1(e,...t){const n=Ct.parse(e),r=n.path.split("/");for(let i of t)r.push(...i.split("/"));return n.with({path:qo(r)}).toString()}self.onmessage=()=>{pa((e,t)=>new M1(e,t))}})();\n', r = typeof self < "u" && self.Blob && new Blob([i], { type: "text/javascript;charset=utf-8" });
|
2
2
|
function s(n) {
|
3
3
|
let e;
|
4
4
|
try {
|