@ansible/ansible-ui-framework 2.4.590 → 2.4.592

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,465 +0,0 @@
1
- (function(){"use strict";function tg(e,t){return t.forEach(function(n){n&&typeof n!="string"&&!Array.isArray(n)&&Object.keys(n).forEach(function(r){if(r!=="default"&&!(r in e)){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}})}),Object.freeze(e)}class ng{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?aa.isErrorNoTelemetry(t)?new aa(t.message+`
2
-
3
- `+t.stack):new Error(t.message+`
4
-
5
- `+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 rg=new ng;function sp(e){ig(e)||rg.onUnexpectedError(e)}function ap(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:aa.isErrorNoTelemetry(e)}}return e}const vl="Canceled";function ig(e){return e instanceof sg?!0:e instanceof Error&&e.name===vl&&e.message===vl}class sg extends Error{constructor(){super(vl),this.name=this.message}}class aa extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof aa)return t;const n=new aa;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class oa extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,oa.prototype)}}function ag(e){const t=this;let n=!1,r;return function(){return n||(n=!0,r=e.apply(t,arguments)),r}}var Vo;(function(e){function t(ae){return ae&&typeof ae=="object"&&typeof ae[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*i(ae){yield ae}e.single=i;function s(ae){return t(ae)?ae:i(ae)}e.wrap=s;function a(ae){return ae||n}e.from=a;function o(ae){return!ae||ae[Symbol.iterator]().next().done===!0}e.isEmpty=o;function u(ae){return ae[Symbol.iterator]().next().value}e.first=u;function l(ae,we){for(const Te of ae)if(we(Te))return!0;return!1}e.some=l;function C(ae,we){for(const Te of ae)if(we(Te))return Te}e.find=C;function*c(ae,we){for(const Te of ae)we(Te)&&(yield Te)}e.filter=c;function*B(ae,we){let Te=0;for(const Ge of ae)yield we(Ge,Te++)}e.map=B;function*N(...ae){for(const we of ae)for(const Te of we)yield Te}e.concat=N;function ee(ae,we,Te){let Ge=Te;for(const pe of ae)Ge=we(Ge,pe);return Ge}e.reduce=ee;function*ne(ae,we,Te=ae.length){for(we<0&&(we+=ae.length),Te<0?Te+=ae.length:Te>ae.length&&(Te=ae.length);we<Te;we++)yield ae[we]}e.slice=ne;function O(ae,we=Number.POSITIVE_INFINITY){const Te=[];if(we===0)return[Te,ae];const Ge=ae[Symbol.iterator]();for(let pe=0;pe<we;pe++){const Se=Ge.next();if(Se.done)return[Te,e.empty()];Te.push(Se.value)}return[Te,{[Symbol.iterator](){return Ge}}]}e.consume=O})(Vo||(Vo={}));function YE(e){return e}function HE(e,t){}function op(e){if(Vo.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 og(...e){return to(()=>op(e))}function to(e){return{dispose:ag(()=>{e()})}}class Os{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{op(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?Os.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}}Os.DISABLE_DISPOSED_WARNING=!1;class no{constructor(){this._store=new Os,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)}}no.None=Object.freeze({dispose(){}});class vr{constructor(t){this.element=t,this.next=vr.Undefined,this.prev=vr.Undefined}}vr.Undefined=new vr(void 0);class ug{constructor(){this._first=vr.Undefined,this._last=vr.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===vr.Undefined}clear(){let t=this._first;for(;t!==vr.Undefined;){const n=t.next;t.prev=vr.Undefined,t.next=vr.Undefined,t=n}this._first=vr.Undefined,this._last=vr.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const r=new vr(t);if(this._first===vr.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!==vr.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==vr.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==vr.Undefined&&t.next!==vr.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===vr.Undefined&&t.next===vr.Undefined?(this._first=vr.Undefined,this._last=vr.Undefined):t.next===vr.Undefined?(this._last=this._last.prev,this._last.next=vr.Undefined):t.prev===vr.Undefined&&(this._first=this._first.next,this._first.prev=vr.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==vr.Undefined;)yield t.element,t=t.next}}const lg=globalThis.performance&&typeof globalThis.performance.now=="function";class qo{static create(t){return new qo(t)}constructor(t){this._now=lg&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}}var El;(function(e){e.None=()=>no.None;function t(Ae,Ne){return C(Ae,()=>{},0,void 0,!0,void 0,Ne)}e.defer=t;function n(Ae){return(Ne,ze=null,qe)=>{let jt=!1,fn;return fn=Ae(xn=>{if(!jt)return fn?fn.dispose():jt=!0,Ne.call(ze,xn)},null,qe),jt&&fn.dispose(),fn}}e.once=n;function r(Ae,Ne,ze){return l((qe,jt=null,fn)=>Ae(xn=>qe.call(jt,Ne(xn)),null,fn),ze)}e.map=r;function i(Ae,Ne,ze){return l((qe,jt=null,fn)=>Ae(xn=>{Ne(xn),qe.call(jt,xn)},null,fn),ze)}e.forEach=i;function s(Ae,Ne,ze){return l((qe,jt=null,fn)=>Ae(xn=>Ne(xn)&&qe.call(jt,xn),null,fn),ze)}e.filter=s;function a(Ae){return Ae}e.signal=a;function o(...Ae){return(Ne,ze=null,qe)=>og(...Ae.map(jt=>jt(fn=>Ne.call(ze,fn),null,qe)))}e.any=o;function u(Ae,Ne,ze,qe){let jt=ze;return r(Ae,fn=>(jt=Ne(jt,fn),jt),qe)}e.reduce=u;function l(Ae,Ne){let ze;const qe={onWillAddFirstListener(){ze=Ae(jt.fire,jt)},onDidRemoveLastListener(){ze==null||ze.dispose()}},jt=new Xi(qe);return Ne==null||Ne.add(jt),jt.event}function C(Ae,Ne,ze=100,qe=!1,jt=!1,fn,xn){let Lt,Tt,qt,en=0,Ln;const Un={leakWarningThreshold:fn,onWillAddFirstListener(){Lt=Ae(zr=>{en++,Tt=Ne(Tt,zr),qe&&!qt&&(Pn.fire(Tt),Tt=void 0),Ln=()=>{const Qr=Tt;Tt=void 0,qt=void 0,(!qe||en>1)&&Pn.fire(Qr),en=0},typeof ze=="number"?(clearTimeout(qt),qt=setTimeout(Ln,ze)):qt===void 0&&(qt=0,queueMicrotask(Ln))})},onWillRemoveListener(){jt&&en>0&&(Ln==null||Ln())},onDidRemoveLastListener(){Ln=void 0,Lt.dispose()}},Pn=new Xi(Un);return xn==null||xn.add(Pn),Pn.event}e.debounce=C;function c(Ae,Ne=0,ze){return e.debounce(Ae,(qe,jt)=>qe?(qe.push(jt),qe):[jt],Ne,void 0,!0,void 0,ze)}e.accumulate=c;function B(Ae,Ne=(qe,jt)=>qe===jt,ze){let qe=!0,jt;return s(Ae,fn=>{const xn=qe||!Ne(fn,jt);return qe=!1,jt=fn,xn},ze)}e.latch=B;function N(Ae,Ne,ze){return[e.filter(Ae,Ne,ze),e.filter(Ae,qe=>!Ne(qe),ze)]}e.split=N;function ee(Ae,Ne=!1,ze=[]){let qe=ze.slice(),jt=Ae(Lt=>{qe?qe.push(Lt):xn.fire(Lt)});const fn=()=>{qe==null||qe.forEach(Lt=>xn.fire(Lt)),qe=null},xn=new Xi({onWillAddFirstListener(){jt||(jt=Ae(Lt=>xn.fire(Lt)))},onDidAddFirstListener(){qe&&(Ne?setTimeout(fn):fn())},onDidRemoveLastListener(){jt&&jt.dispose(),jt=null}});return xn.event}e.buffer=ee;class ne{constructor(Ne){this.event=Ne,this.disposables=new Os}map(Ne){return new ne(r(this.event,Ne,this.disposables))}forEach(Ne){return new ne(i(this.event,Ne,this.disposables))}filter(Ne){return new ne(s(this.event,Ne,this.disposables))}reduce(Ne,ze){return new ne(u(this.event,Ne,ze,this.disposables))}latch(){return new ne(B(this.event,void 0,this.disposables))}debounce(Ne,ze=100,qe=!1,jt=!1,fn){return new ne(C(this.event,Ne,ze,qe,jt,fn,this.disposables))}on(Ne,ze,qe){return this.event(Ne,ze,qe)}once(Ne,ze,qe){return n(this.event)(Ne,ze,qe)}dispose(){this.disposables.dispose()}}function O(Ae){return new ne(Ae)}e.chain=O;function ae(Ae,Ne,ze=qe=>qe){const qe=(...Lt)=>xn.fire(ze(...Lt)),jt=()=>Ae.on(Ne,qe),fn=()=>Ae.removeListener(Ne,qe),xn=new Xi({onWillAddFirstListener:jt,onDidRemoveLastListener:fn});return xn.event}e.fromNodeEventEmitter=ae;function we(Ae,Ne,ze=qe=>qe){const qe=(...Lt)=>xn.fire(ze(...Lt)),jt=()=>Ae.addEventListener(Ne,qe),fn=()=>Ae.removeEventListener(Ne,qe),xn=new Xi({onWillAddFirstListener:jt,onDidRemoveLastListener:fn});return xn.event}e.fromDOMEventEmitter=we;function Te(Ae){return new Promise(Ne=>n(Ae)(Ne))}e.toPromise=Te;function Ge(Ae,Ne){return Ne(void 0),Ae(ze=>Ne(ze))}e.runAndSubscribe=Ge;function pe(Ae,Ne){let ze=null;function qe(fn){ze==null||ze.dispose(),ze=new Os,Ne(fn,ze)}qe(void 0);const jt=Ae(fn=>qe(fn));return to(()=>{jt.dispose(),ze==null||ze.dispose()})}e.runAndSubscribeWithStore=pe;class Se{constructor(Ne,ze){this._observable=Ne,this._counter=0,this._hasChanged=!1;const qe={onWillAddFirstListener:()=>{Ne.addObserver(this)},onDidRemoveLastListener:()=>{Ne.removeObserver(this)}};this.emitter=new Xi(qe),ze&&ze.add(this.emitter)}beginUpdate(Ne){this._counter++}handlePossibleChange(Ne){}handleChange(Ne,ze){this._hasChanged=!0}endUpdate(Ne){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function Qe(Ae,Ne){return new Se(Ae,Ne).emitter.event}e.fromObservable=Qe;function mt(Ae){return Ne=>{let ze=0,qe=!1;const jt={beginUpdate(){ze++},endUpdate(){ze--,ze===0&&(Ae.reportChanges(),qe&&(qe=!1,Ne()))},handlePossibleChange(){},handleChange(){qe=!0}};return Ae.addObserver(jt),Ae.reportChanges(),{dispose(){Ae.removeObserver(jt)}}}}e.fromObservableLight=mt})(El||(El={}));class ua{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${ua._idPool++}`,ua.all.add(this)}start(t){this._stopWatch=new qo,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}}}ua.all=new Set,ua._idPool=0;let cg=-1;class fg{constructor(t,n=Math.random().toString(18).slice(2,5)){this.threshold=t,this.name=n,this._warnCountdown=0}dispose(){var t;(t=this._stacks)===null||t===void 0||t.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;let s,a=0;for(const[o,u]of this._stacks)(!s||a<u)&&(s=o,a=u);console.warn(`[${this.name}] potential listener LEAK detected, having ${n} listeners already. MOST frequent listener (${a}):`),console.warn(s)}return()=>{const s=this._stacks.get(t.value)||0;this._stacks.set(t.value,s-1)}}}class Al{static create(){var t;return new Al((t=new Error().stack)!==null&&t!==void 0?t:"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
6
- `).slice(2).join(`
7
- `))}}class Cl{constructor(t){this.value=t}}const pg=2;class Xi{constructor(t){var n,r,i,s,a;this._size=0,this._options=t,this._leakageMon=!((n=this._options)===null||n===void 0)&&n.leakWarningThreshold?new fg((i=(r=this._options)===null||r===void 0?void 0:r.leakWarningThreshold)!==null&&i!==void 0?i:cg):void 0,this._perfMon=!((s=this._options)===null||s===void 0)&&s._profName?new ua(this._options._profName):void 0,this._deliveryQueue=(a=this._options)===null||a===void 0?void 0:a.deliveryQueue}dispose(){var t,n,r,i;this._disposed||(this._disposed=!0,((t=this._deliveryQueue)===null||t===void 0?void 0:t.current)===this&&this._deliveryQueue.reset(),this._listeners&&(this._listeners=void 0,this._size=0),(r=(n=this._options)===null||n===void 0?void 0:n.onDidRemoveLastListener)===null||r===void 0||r.call(n),(i=this._leakageMon)===null||i===void 0||i.dispose())}get event(){var t;return(t=this._event)!==null&&t!==void 0||(this._event=(n,r,i)=>{var s,a,o,u,l;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),no.None;if(this._disposed)return no.None;r&&(n=n.bind(r));const C=new Cl(n);let c;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(C.stack=Al.create(),c=this._leakageMon.check(C.stack,this._size+1)),this._listeners?this._listeners instanceof Cl?((l=this._deliveryQueue)!==null&&l!==void 0||(this._deliveryQueue=new dg),this._listeners=[this._listeners,C]):this._listeners.push(C):((a=(s=this._options)===null||s===void 0?void 0:s.onWillAddFirstListener)===null||a===void 0||a.call(s,this),this._listeners=C,(u=(o=this._options)===null||o===void 0?void 0:o.onDidAddFirstListener)===null||u===void 0||u.call(o,this)),this._size++;const B=to(()=>{c==null||c(),this._removeListener(C)});return i instanceof Os?i.add(B):Array.isArray(i)&&i.push(B),B}),this._event}_removeListener(t){var n,r,i,s;if((r=(n=this._options)===null||n===void 0?void 0:n.onWillRemoveListener)===null||r===void 0||r.call(n,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(s=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||s===void 0||s.call(i,this),this._size=0;return}const a=this._listeners,o=a.indexOf(t);if(o===-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--,a[o]=void 0;const u=this._deliveryQueue.current===this;if(this._size*pg<=a.length){let l=0;for(let C=0;C<a.length;C++)a[C]?a[l++]=a[C]:u&&(this._deliveryQueue.end--,l<this._deliveryQueue.i&&this._deliveryQueue.i--);a.length=l}}_deliver(t,n){var r;if(!t)return;const i=((r=this._options)===null||r===void 0?void 0:r.onListenerError)||sp;if(!i){t.value(n);return}try{t.value(n)}catch(s){i(s)}}_deliverQueue(t){const n=t.current._listeners;for(;t.i<t.end;)this._deliver(n[t.i++],t.value);t.reset()}fire(t){var n,r,i,s;if(!((n=this._deliveryQueue)===null||n===void 0)&&n.current&&(this._deliverQueue(this._deliveryQueue),(r=this._perfMon)===null||r===void 0||r.stop()),(i=this._perfMon)===null||i===void 0||i.start(this._size),this._listeners)if(this._listeners instanceof Cl)this._deliver(this._listeners,t);else{const a=this._deliveryQueue;a.enqueue(this,t,this._listeners.length),this._deliverQueue(a)}(s=this._perfMon)===null||s===void 0||s.stop()}hasListeners(){return this._size>0}}class dg{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 hg(e){return typeof e=="string"}function mg(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function Sl(e){const t=[];for(const n of mg(e))typeof e[n]=="function"&&t.push(n);return t}function gg(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}let yg=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Dg(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 o=r;return typeof a=="string"?o=a:(typeof a=="number"||typeof a=="boolean"||a===void 0||a===null)&&(o=String(a)),o}),yg&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function Er(e,t,...n){return Dg(t,n)}function zE(e){}var xl;const la="en";let wl=!1,Fl=!1,Nl=!1,up=!1,Uo,_l=la,lp=la,bg,$i;const Vi=typeof self=="object"?self:typeof global=="object"?global:{};let Kr;typeof Vi.vscode<"u"&&typeof Vi.vscode.process<"u"?Kr=Vi.vscode.process:typeof process<"u"&&(Kr=process);const vg=typeof((xl=Kr==null?void 0:Kr.versions)===null||xl===void 0?void 0:xl.electron)=="string"&&(Kr==null?void 0:Kr.type)==="renderer";if(typeof navigator=="object"&&!vg)$i=navigator.userAgent,wl=$i.indexOf("Windows")>=0,Fl=$i.indexOf("Macintosh")>=0,($i.indexOf("Macintosh")>=0||$i.indexOf("iPad")>=0||$i.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Nl=$i.indexOf("Linux")>=0,($i==null?void 0:$i.indexOf("Mobi"))>=0,up=!0,Er({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Uo=la,_l=Uo,lp=navigator.language;else if(typeof Kr=="object"){wl=Kr.platform==="win32",Fl=Kr.platform==="darwin",Nl=Kr.platform==="linux",Nl&&Kr.env.SNAP&&Kr.env.SNAP_REVISION,Kr.env.CI||Kr.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Uo=la,_l=la;const e=Kr.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];Uo=t.locale,lp=t.osLocale,_l=n||la,bg=t._translationsConfigFile}catch{}}else console.error("Unable to resolve platform.");const ro=wl,Eg=Fl;up&&Vi.importScripts;const Ki=$i,Ag=typeof Vi.postMessage=="function"&&!Vi.importScripts;(()=>{if(Ag){const e=[];Vi.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}),Vi.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})();const Cg=!!(Ki&&Ki.indexOf("Chrome")>=0);Ki&&Ki.indexOf("Firefox")>=0,!Cg&&Ki&&Ki.indexOf("Safari")>=0,Ki&&Ki.indexOf("Edg/")>=0,Ki&&Ki.indexOf("Android")>=0;class Sg{constructor(t){this.fn=t,this.lastCache=void 0,this.lastArgKey=void 0}get(t){const n=JSON.stringify(t);return this.lastArgKey!==n&&(this.lastArgKey=n,this.lastCache=this.fn(t)),this.lastCache}}class cp{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}}var fp;function xg(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function wg(e){return e.split(/\r\n|\r|\n/)}function Fg(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 Ng(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 pp(e){return e>=65&&e<=90}function Tl(e){return 55296<=e&&e<=56319}function _g(e){return 56320<=e&&e<=57343}function Tg(e,t){return(e-55296<<10)+(t-56320)+65536}function kg(e,t,n){const r=e.charCodeAt(n);if(Tl(r)&&n+1<t){const i=e.charCodeAt(n+1);if(_g(i))return Tg(r,i)}return r}const Lg=/^[\t\n\r\x20-\x7E]*$/;function Pg(e){return Lg.test(e)}class Ti{static getInstance(t){return Ti.cache.get(Array.from(t))}static getLocales(){return Ti._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())}}fp=Ti,Ti.ambiguousCharacterData=new cp(()=>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]}')),Ti.cache=new Sg(e=>{function t(l){const C=new Map;for(let c=0;c<l.length;c+=2)C.set(l[c],l[c+1]);return C}function n(l,C){const c=new Map(l);for(const[B,N]of C)c.set(B,N);return c}function r(l,C){if(!l)return C;const c=new Map;for(const[B,N]of l)C.has(B)&&c.set(B,N);return c}const i=fp.ambiguousCharacterData.value;let s=e.filter(l=>!l.startsWith("_")&&l in i);s.length===0&&(s=["_default"]);let a;for(const l of s){const C=t(i[l]);a=r(a,C)}const o=t(i._common),u=n(o,a);return new Ti(u)}),Ti._locales=new cp(()=>Object.keys(Ti.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));class bs{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(bs.getRawData())),this._data}static isInvisibleCharacter(t){return bs.getData().has(t)}static get codePoints(){return bs.getData()}}bs._data=void 0;const Bg="$initialize";class Mg{constructor(t,n,r,i){this.vsWorker=t,this.req=n,this.method=r,this.args=i,this.type=0}}class dp{constructor(t,n,r,i){this.vsWorker=t,this.seq=n,this.res=r,this.err=i,this.type=1}}class Ig{constructor(t,n,r,i){this.vsWorker=t,this.req=n,this.eventName=r,this.arg=i,this.type=2}}class Og{constructor(t,n,r){this.vsWorker=t,this.req=n,this.event=r,this.type=3}}class jg{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}}class Rg{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){const r=String(++this._lastSentReq);return new Promise((i,s)=>{this._pendingReplies[r]={resolve:i,reject:s},this._send(new Mg(this._workerId,r,t,n))})}listen(t,n){let r=null;const i=new Xi({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new Ig(this._workerId,r,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new jg(this._workerId,r)),r=null}});return i.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}_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.method,t.args).then(i=>{this._send(new dp(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=ap(i.detail)),this._send(new dp(this._workerId,n,void 0,ap(i)))})}_handleSubscribeEventMessage(t){const n=t.req,r=this._handler.handleEvent(t.eventName,t.arg)(i=>{this._send(new Og(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 hp(e){return e[0]==="o"&&e[1]==="n"&&pp(e.charCodeAt(2))}function mp(e){return/^onDynamic/.test(e)&&pp(e.charCodeAt(9))}function $g(e,t,n){const r=a=>function(){const o=Array.prototype.slice.call(arguments,0);return t(a,o)},i=a=>function(o){return n(a,o)},s={};for(const a of e){if(mp(a)){s[a]=i(a);continue}if(hp(a)){s[a]=n(a,void 0);continue}s[a]=r(a)}return s}class Vg{constructor(t,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new Rg({sendMessage:(r,i)=>{t(r,i)},handleMessage:(r,i)=>this._handleMessage(r,i),handleEvent:(r,i)=>this._handleEvent(r,i)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,n){if(t===Bg)return this.initialize(n[0],n[1],n[2],n[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,n))}catch(r){return Promise.reject(r)}}_handleEvent(t,n){if(!this._requestHandler)throw new Error("Missing requestHandler");if(mp(t)){const r=this._requestHandler[t].call(this._requestHandler,n);if(typeof r!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);return r}if(hp(t)){const r=this._requestHandler[t];if(typeof r!="function")throw new Error(`Missing event ${t} on request handler.`);return r}throw new Error(`Malformed event name ${t}`)}initialize(t,n,r,i){this._protocol.setWorkerId(t);const o=$g(i,(u,l)=>this._protocol.sendMessage(u,l),(u,l)=>this._protocol.listen(u,l));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(o),Promise.resolve(Sl(this._requestHandler))):(n&&(typeof n.baseUrl<"u"&&delete n.baseUrl,typeof n.paths<"u"&&typeof n.paths.vs<"u"&&delete n.paths.vs,typeof n.trustedTypesPolicy!==void 0&&delete n.trustedTypesPolicy,n.catchError=!0,globalThis.require.config(n)),new Promise((u,l)=>{const C=globalThis.require;C([r],c=>{if(this._requestHandler=c.create(o),!this._requestHandler){l(new Error("No RequestHandler!"));return}u(Sl(this._requestHandler))},l)}))}}class vs{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 gp(e,t){return(t<<5)-t+e|0}function qg(e,t){t=gp(149417,t);for(let n=0,r=e.length;n<r;n++)t=gp(e.charCodeAt(n),t);return t}class yp{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 Ug(e,t,n){return new Es(new yp(e),new yp(t)).ComputeDiff(n).changes}class ca{static Assert(t,n){if(!t)throw new Error(n)}}class fa{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 Dp{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 vs(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 Es{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;const[i,s,a]=Es._getElements(t),[o,u,l]=Es._getElements(n);this._hasStrings=a&&l,this._originalStringElements=i,this._originalElementsOrHash=s,this._modifiedStringElements=o,this._modifiedElementsOrHash=u,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(Es._isStringArray(n)){const r=new Int32Array(n.length);for(let i=0,s=n.length;i<s;i++)r[i]=qg(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=Es._getStrictElement(this._originalSequence,t),i=Es._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 o=this.ComputeDiffRecursive(t,n,r,i,a);return s&&(o=this.PrettifyChanges(o)),{quitEarly:a[0],changes:o}}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 c;return r<=i?(ca.Assert(t===n+1,"originalStart should only be one more than originalEnd"),c=[new vs(t,0,r,i-r+1)]):t<=n?(ca.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),c=[new vs(t,n-t+1,r,0)]):(ca.Assert(t===n+1,"originalStart should only be one more than originalEnd"),ca.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),c=[]),c}const a=[0],o=[0],u=this.ComputeRecursionPoint(t,n,r,i,a,o,s),l=a[0],C=o[0];if(u!==null)return u;if(!s[0]){const c=this.ComputeDiffRecursive(t,l,r,C,s);let B=[];return s[0]?B=[new vs(l+1,n-(l+1)+1,C+1,i-(C+1)+1)]:B=this.ComputeDiffRecursive(l+1,n,C+1,i,s),this.ConcatenateChanges(c,B)}return[new vs(t,n-t+1,r,i-r+1)]}WALKTRACE(t,n,r,i,s,a,o,u,l,C,c,B,N,ee,ne,O,ae,we){let Te=null,Ge=null,pe=new Dp,Se=n,Qe=r,mt=N[0]-O[0]-i,Ae=-1073741824,Ne=this.m_forwardHistory.length-1;do{const ze=mt+t;ze===Se||ze<Qe&&l[ze-1]<l[ze+1]?(c=l[ze+1],ee=c-mt-i,c<Ae&&pe.MarkNextChange(),Ae=c,pe.AddModifiedElement(c+1,ee),mt=ze+1-t):(c=l[ze-1]+1,ee=c-mt-i,c<Ae&&pe.MarkNextChange(),Ae=c-1,pe.AddOriginalElement(c,ee+1),mt=ze-1-t),Ne>=0&&(l=this.m_forwardHistory[Ne],t=l[0],Se=1,Qe=l.length-1)}while(--Ne>=-1);if(Te=pe.getReverseChanges(),we[0]){let ze=N[0]+1,qe=O[0]+1;if(Te!==null&&Te.length>0){const jt=Te[Te.length-1];ze=Math.max(ze,jt.getOriginalEnd()),qe=Math.max(qe,jt.getModifiedEnd())}Ge=[new vs(ze,B-ze+1,qe,ne-qe+1)]}else{pe=new Dp,Se=a,Qe=o,mt=N[0]-O[0]-u,Ae=1073741824,Ne=ae?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const ze=mt+s;ze===Se||ze<Qe&&C[ze-1]>=C[ze+1]?(c=C[ze+1]-1,ee=c-mt-u,c>Ae&&pe.MarkNextChange(),Ae=c+1,pe.AddOriginalElement(c+1,ee+1),mt=ze+1-s):(c=C[ze-1],ee=c-mt-u,c>Ae&&pe.MarkNextChange(),Ae=c,pe.AddModifiedElement(c+1,ee+1),mt=ze-1-s),Ne>=0&&(C=this.m_reverseHistory[Ne],s=C[0],Se=1,Qe=C.length-1)}while(--Ne>=-1);Ge=pe.getChanges()}return this.ConcatenateChanges(Te,Ge)}ComputeRecursionPoint(t,n,r,i,s,a,o){let u=0,l=0,C=0,c=0,B=0,N=0;t--,r--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const ee=n-t+(i-r),ne=ee+1,O=new Int32Array(ne),ae=new Int32Array(ne),we=i-r,Te=n-t,Ge=t-r,pe=n-i,Qe=(Te-we)%2===0;O[we]=t,ae[Te]=n,o[0]=!1;for(let mt=1;mt<=ee/2+1;mt++){let Ae=0,Ne=0;C=this.ClipDiagonalBound(we-mt,mt,we,ne),c=this.ClipDiagonalBound(we+mt,mt,we,ne);for(let qe=C;qe<=c;qe+=2){qe===C||qe<c&&O[qe-1]<O[qe+1]?u=O[qe+1]:u=O[qe-1]+1,l=u-(qe-we)-Ge;const jt=u;for(;u<n&&l<i&&this.ElementsAreEqual(u+1,l+1);)u++,l++;if(O[qe]=u,u+l>Ae+Ne&&(Ae=u,Ne=l),!Qe&&Math.abs(qe-Te)<=mt-1&&u>=ae[qe])return s[0]=u,a[0]=l,jt<=ae[qe]&&1447>0&&mt<=1447+1?this.WALKTRACE(we,C,c,Ge,Te,B,N,pe,O,ae,u,n,s,l,i,a,Qe,o):null}const ze=(Ae-t+(Ne-r)-mt)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Ae,ze))return o[0]=!0,s[0]=Ae,a[0]=Ne,ze>0&&1447>0&&mt<=1447+1?this.WALKTRACE(we,C,c,Ge,Te,B,N,pe,O,ae,u,n,s,l,i,a,Qe,o):(t++,r++,[new vs(t,n-t+1,r,i-r+1)]);B=this.ClipDiagonalBound(Te-mt,mt,Te,ne),N=this.ClipDiagonalBound(Te+mt,mt,Te,ne);for(let qe=B;qe<=N;qe+=2){qe===B||qe<N&&ae[qe-1]>=ae[qe+1]?u=ae[qe+1]-1:u=ae[qe-1],l=u-(qe-Te)-pe;const jt=u;for(;u>t&&l>r&&this.ElementsAreEqual(u,l);)u--,l--;if(ae[qe]=u,Qe&&Math.abs(qe-we)<=mt&&u<=O[qe])return s[0]=u,a[0]=l,jt>=O[qe]&&1447>0&&mt<=1447+1?this.WALKTRACE(we,C,c,Ge,Te,B,N,pe,O,ae,u,n,s,l,i,a,Qe,o):null}if(mt<=1447){let qe=new Int32Array(c-C+2);qe[0]=we-C+1,fa.Copy2(O,C,qe,1,c-C+1),this.m_forwardHistory.push(qe),qe=new Int32Array(N-B+2),qe[0]=Te-B+1,fa.Copy2(ae,B,qe,1,N-B+1),this.m_reverseHistory.push(qe)}}return this.WALKTRACE(we,C,c,Ge,Te,B,N,pe,O,ae,u,n,s,l,i,a,Qe,o)}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,o=r.modifiedLength>0;for(;r.originalStart+r.originalLength<i&&r.modifiedStart+r.modifiedLength<s&&(!a||this.OriginalElementsAreEqual(r.originalStart,r.originalStart+r.originalLength))&&(!o||this.ModifiedElementsAreEqual(r.modifiedStart,r.modifiedStart+r.modifiedLength));){const l=this.ElementsAreStrictEqual(r.originalStart,r.modifiedStart);if(this.ElementsAreStrictEqual(r.originalStart+r.originalLength,r.modifiedStart+r.modifiedLength)&&!l)break;r.originalStart++,r.modifiedStart++}const u=[null];if(n<t.length-1&&this.ChangesOverlap(t[n],t[n+1],u)){t[n]=u[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 c=t[n-1];i=c.originalStart+c.originalLength,s=c.modifiedStart+c.modifiedLength}const a=r.originalLength>0,o=r.modifiedLength>0;let u=0,l=this._boundaryScore(r.originalStart,r.originalLength,r.modifiedStart,r.modifiedLength);for(let c=1;;c++){const B=r.originalStart-c,N=r.modifiedStart-c;if(B<i||N<s||a&&!this.OriginalElementsAreEqual(B,B+r.originalLength)||o&&!this.ModifiedElementsAreEqual(N,N+r.modifiedLength))break;const ne=(B===i&&N===s?5:0)+this._boundaryScore(B,r.originalLength,N,r.modifiedLength);ne>l&&(l=ne,u=c)}r.originalStart-=u,r.modifiedStart-=u;const C=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],C)){t[n-1]=C[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,o=i.originalStart,u=s.originalStart+s.originalLength,l=u-o,C=i.modifiedStart,c=s.modifiedStart+s.modifiedLength,B=c-C;if(a<5&&l<20&&B<20){const N=this._findBetterContiguousSequence(o,l,C,B,a);if(N){const[ee,ne]=N;(ee!==i.originalStart+i.originalLength||ne!==i.modifiedStart+i.modifiedLength)&&(i.originalLength=ee-i.originalStart,i.modifiedLength=ne-i.modifiedStart,s.originalStart=ee+a,s.modifiedStart=ne+a,s.originalLength=u-s.originalStart,s.modifiedLength=c-s.modifiedStart)}}}return t}_findBetterContiguousSequence(t,n,r,i,s){if(n<s||i<s)return null;const a=t+n-s+1,o=r+i-s+1;let u=0,l=0,C=0;for(let c=t;c<a;c++)for(let B=r;B<o;B++){const N=this._contiguousSequenceScore(c,B,s);N>0&&N>u&&(u=N,l=c,C=B)}return u>0?[l,C]: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 fa.Copy(t,0,i,0,t.length-1),i[t.length-1]=r[0],fa.Copy(n,1,i,t.length,n.length-1),i}else{const i=new Array(t.length+n.length);return fa.Copy(t,0,i,0,t.length),fa.Copy(n,0,i,t.length,n.length),i}}ChangesOverlap(t,n,r){if(ca.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),ca.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 o=t.modifiedLength;return t.originalStart+t.originalLength>=n.originalStart&&(s=n.originalStart+n.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=n.modifiedStart&&(o=n.modifiedStart+n.modifiedLength-t.modifiedStart),r[0]=new vs(i,s,a,o),!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,o=n%2===0;if(t<0){const u=s%2===0;return o===u?0:1}else{const u=a%2===0;return o===u?i-1:i-2}}}let pa;if(typeof Vi.vscode<"u"&&typeof Vi.vscode.process<"u"){const e=Vi.vscode.process;pa={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"?pa={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:pa={get platform(){return ro?"win32":Eg?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Wo=pa.cwd,Wg=pa.env,Gg=pa.platform,Jg=65,Yg=97,Hg=90,zg=122,As=46,Jr=47,fi=92,Cs=58,Qg=63;class bp 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 Xg(e,t){if(e===null||typeof e!="object")throw new bp(t,"Object",e)}function Lr(e,t){if(typeof e!="string")throw new bp(t,"string",e)}const Ss=Gg==="win32";function Kn(e){return e===Jr||e===fi}function kl(e){return e===Jr}function xs(e){return e>=Jg&&e<=Hg||e>=Yg&&e<=zg}function Go(e,t,n,r){let i="",s=0,a=-1,o=0,u=0;for(let l=0;l<=e.length;++l){if(l<e.length)u=e.charCodeAt(l);else{if(r(u))break;u=Jr}if(r(u)){if(!(a===l-1||o===1))if(o===2){if(i.length<2||s!==2||i.charCodeAt(i.length-1)!==As||i.charCodeAt(i.length-2)!==As){if(i.length>2){const C=i.lastIndexOf(n);C===-1?(i="",s=0):(i=i.slice(0,C),s=i.length-1-i.lastIndexOf(n)),a=l,o=0;continue}else if(i.length!==0){i="",s=0,a=l,o=0;continue}}t&&(i+=i.length>0?`${n}..`:"..",s=2)}else i.length>0?i+=`${n}${e.slice(a+1,l)}`:i=e.slice(a+1,l),s=l-a-1;a=l,o=0}else u===As&&o!==-1?++o:o=-1}return i}function vp(e,t){Xg(t,"pathObject");const n=t.dir||t.root,r=t.base||`${t.name||""}${t.ext||""}`;return n?n===t.root?`${n}${r}`:`${n}${e}${r}`:r}const si={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],Lr(s,"path"),s.length===0)continue}else t.length===0?s=Wo():(s=Wg[`=${t}`]||Wo(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===fi)&&(s=`${t}\\`));const a=s.length;let o=0,u="",l=!1;const C=s.charCodeAt(0);if(a===1)Kn(C)&&(o=1,l=!0);else if(Kn(C))if(l=!0,Kn(s.charCodeAt(1))){let c=2,B=c;for(;c<a&&!Kn(s.charCodeAt(c));)c++;if(c<a&&c!==B){const N=s.slice(B,c);for(B=c;c<a&&Kn(s.charCodeAt(c));)c++;if(c<a&&c!==B){for(B=c;c<a&&!Kn(s.charCodeAt(c));)c++;(c===a||c!==B)&&(u=`\\\\${N}\\${s.slice(B,c)}`,o=c)}}}else o=1;else xs(C)&&s.charCodeAt(1)===Cs&&(u=s.slice(0,2),o=2,a>2&&Kn(s.charCodeAt(2))&&(l=!0,o=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(r){if(t.length>0)break}else if(n=`${s.slice(o)}\\${n}`,r=l,l&&t.length>0)break}return n=Go(n,!r,"\\",Kn),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){Lr(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 kl(s)?"\\":e;if(Kn(s))if(i=!0,Kn(e.charCodeAt(1))){let o=2,u=o;for(;o<t&&!Kn(e.charCodeAt(o));)o++;if(o<t&&o!==u){const l=e.slice(u,o);for(u=o;o<t&&Kn(e.charCodeAt(o));)o++;if(o<t&&o!==u){for(u=o;o<t&&!Kn(e.charCodeAt(o));)o++;if(o===t)return`\\\\${l}\\${e.slice(u)}\\`;o!==u&&(r=`\\\\${l}\\${e.slice(u,o)}`,n=o)}}}else n=1;else xs(s)&&e.charCodeAt(1)===Cs&&(r=e.slice(0,2),n=2,t>2&&Kn(e.charCodeAt(2))&&(i=!0,n=3));let a=n<t?Go(e.slice(n),!i,"\\",Kn):"";return a.length===0&&!i&&(a="."),a.length>0&&Kn(e.charCodeAt(t-1))&&(a+="\\"),r===void 0?i?`\\${a}`:a:i?`${r}\\${a}`:`${r}${a}`},isAbsolute(e){Lr(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return Kn(n)||t>2&&xs(n)&&e.charCodeAt(1)===Cs&&Kn(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];Lr(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"&&Kn(n.charCodeAt(0))){++i;const s=n.length;s>1&&Kn(n.charCodeAt(1))&&(++i,s>2&&(Kn(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&Kn(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return si.normalize(t)},relative(e,t){if(Lr(e,"from"),Lr(t,"to"),e===t)return"";const n=si.resolve(e),r=si.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===fi;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===fi;)s--;const a=s-i;let o=0;for(;o<t.length&&t.charCodeAt(o)===fi;)o++;let u=t.length;for(;u-1>o&&t.charCodeAt(u-1)===fi;)u--;const l=u-o,C=a<l?a:l;let c=-1,B=0;for(;B<C;B++){const ee=e.charCodeAt(i+B);if(ee!==t.charCodeAt(o+B))break;ee===fi&&(c=B)}if(B!==C){if(c===-1)return r}else{if(l>C){if(t.charCodeAt(o+B)===fi)return r.slice(o+B+1);if(B===2)return r.slice(o+B)}a>C&&(e.charCodeAt(i+B)===fi?c=B:B===2&&(c=3)),c===-1&&(c=0)}let N="";for(B=i+c+1;B<=s;++B)(B===s||e.charCodeAt(B)===fi)&&(N+=N.length===0?"..":"\\..");return o+=c,N.length>0?`${N}${r.slice(o,u)}`:(r.charCodeAt(o)===fi&&++o,r.slice(o,u))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=si.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===fi){if(t.charCodeAt(1)===fi){const n=t.charCodeAt(2);if(n!==Qg&&n!==As)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(xs(t.charCodeAt(0))&&t.charCodeAt(1)===Cs&&t.charCodeAt(2)===fi)return`\\\\?\\${t}`;return e},dirname(e){Lr(e,"path");const t=e.length;if(t===0)return".";let n=-1,r=0;const i=e.charCodeAt(0);if(t===1)return Kn(i)?e:".";if(Kn(i)){if(n=r=1,Kn(e.charCodeAt(1))){let o=2,u=o;for(;o<t&&!Kn(e.charCodeAt(o));)o++;if(o<t&&o!==u){for(u=o;o<t&&Kn(e.charCodeAt(o));)o++;if(o<t&&o!==u){for(u=o;o<t&&!Kn(e.charCodeAt(o));)o++;if(o===t)return e;o!==u&&(n=r=o+1)}}}}else xs(i)&&e.charCodeAt(1)===Cs&&(n=t>2&&Kn(e.charCodeAt(2))?3:2,r=n);let s=-1,a=!0;for(let o=t-1;o>=r;--o)if(Kn(e.charCodeAt(o))){if(!a){s=o;break}}else a=!1;if(s===-1){if(n===-1)return".";s=n}return e.slice(0,s)},basename(e,t){t!==void 0&&Lr(t,"ext"),Lr(e,"path");let n=0,r=-1,i=!0,s;if(e.length>=2&&xs(e.charCodeAt(0))&&e.charCodeAt(1)===Cs&&(n=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let a=t.length-1,o=-1;for(s=e.length-1;s>=n;--s){const u=e.charCodeAt(s);if(Kn(u)){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(u===t.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=n;--s)if(Kn(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){Lr(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,a=0;e.length>=2&&e.charCodeAt(1)===Cs&&xs(e.charCodeAt(0))&&(t=r=2);for(let o=e.length-1;o>=t;--o){const u=e.charCodeAt(o);if(Kn(u)){if(!s){r=o+1;break}continue}i===-1&&(s=!1,i=o+1),u===As?n===-1?n=o: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:vp.bind(null,"\\"),parse(e){Lr(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 Kn(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(Kn(i)){if(r=1,Kn(e.charCodeAt(1))){let c=2,B=c;for(;c<n&&!Kn(e.charCodeAt(c));)c++;if(c<n&&c!==B){for(B=c;c<n&&Kn(e.charCodeAt(c));)c++;if(c<n&&c!==B){for(B=c;c<n&&!Kn(e.charCodeAt(c));)c++;c===n?r=c:c!==B&&(r=c+1)}}}}else if(xs(i)&&e.charCodeAt(1)===Cs){if(n<=2)return t.root=t.dir=e,t;if(r=2,Kn(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,o=-1,u=!0,l=e.length-1,C=0;for(;l>=r;--l){if(i=e.charCodeAt(l),Kn(i)){if(!u){a=l+1;break}continue}o===-1&&(u=!1,o=l+1),i===As?s===-1?s=l:C!==1&&(C=1):s!==-1&&(C=-1)}return o!==-1&&(s===-1||C===0||C===1&&s===o-1&&s===a+1?t.base=t.name=e.slice(a,o):(t.name=e.slice(a,s),t.base=e.slice(a,o),t.ext=e.slice(s,o))),a>0&&a!==r?t.dir=e.slice(0,a-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},Kg=(()=>{if(Ss){const e=/\\/g;return()=>{const t=Wo().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>Wo()})(),pi={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:Kg();Lr(i,"path"),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===Jr)}return t=Go(t,!n,"/",kl),n?`/${t}`:t.length>0?t:"."},normalize(e){if(Lr(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Jr,n=e.charCodeAt(e.length-1)===Jr;return e=Go(e,!t,"/",kl),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return Lr(e,"path"),e.length>0&&e.charCodeAt(0)===Jr},join(...e){if(e.length===0)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];Lr(r,"path"),r.length>0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?".":pi.normalize(t)},relative(e,t){if(Lr(e,"from"),Lr(t,"to"),e===t||(e=pi.resolve(e),t=pi.resolve(t),e===t))return"";const n=1,r=e.length,i=r-n,s=1,a=t.length-s,o=i<a?i:a;let u=-1,l=0;for(;l<o;l++){const c=e.charCodeAt(n+l);if(c!==t.charCodeAt(s+l))break;c===Jr&&(u=l)}if(l===o)if(a>o){if(t.charCodeAt(s+l)===Jr)return t.slice(s+l+1);if(l===0)return t.slice(s+l)}else i>o&&(e.charCodeAt(n+l)===Jr?u=l:l===0&&(u=0));let C="";for(l=n+u+1;l<=r;++l)(l===r||e.charCodeAt(l)===Jr)&&(C+=C.length===0?"..":"/..");return`${C}${t.slice(s+u)}`},toNamespacedPath(e){return e},dirname(e){if(Lr(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Jr;let n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===Jr){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&&Lr(t,"ext"),Lr(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,o=-1;for(s=e.length-1;s>=0;--s){const u=e.charCodeAt(s);if(u===Jr){if(!i){n=s+1;break}}else o===-1&&(i=!1,o=s+1),a>=0&&(u===t.charCodeAt(a)?--a===-1&&(r=s):(a=-1,r=o))}return n===r?r=o:r===-1&&(r=e.length),e.slice(n,r)}for(s=e.length-1;s>=0;--s)if(e.charCodeAt(s)===Jr){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){Lr(e,"path");let t=-1,n=0,r=-1,i=!0,s=0;for(let a=e.length-1;a>=0;--a){const o=e.charCodeAt(a);if(o===Jr){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),o===As?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:vp.bind(null,"/"),parse(e){Lr(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===Jr;let r;n?(t.root="/",r=1):r=0;let i=-1,s=0,a=-1,o=!0,u=e.length-1,l=0;for(;u>=r;--u){const C=e.charCodeAt(u);if(C===Jr){if(!o){s=u+1;break}continue}a===-1&&(o=!1,a=u+1),C===As?i===-1?i=u:l!==1&&(l=1):i!==-1&&(l=-1)}if(a!==-1){const C=s===0&&n?1:s;i===-1||l===0||l===1&&i===a-1&&i===s+1?t.base=t.name=e.slice(C,a):(t.name=e.slice(C,i),t.base=e.slice(C,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};pi.win32=si.win32=si,pi.posix=si.posix=pi,Ss?si.normalize:pi.normalize,Ss?si.resolve:pi.resolve,Ss?si.relative:pi.relative,Ss?si.dirname:pi.dirname,Ss?si.basename:pi.basename,Ss?si.extname:pi.extname,Ss?si.sep:pi.sep;const Zg=/^\w[\w\d+.-]*$/,e1=/^\//,t1=/^\/\//;function n1(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&&!Zg.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!e1.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(t1.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 r1(e,t){return!e&&!t?"file":e}function i1(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==qi&&(t=qi+t):t=qi;break}return t}const Ar="",qi="/",s1=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let Ll=class bl{static isUri(t){return t instanceof bl?!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||Ar,this.authority=t.authority||Ar,this.path=t.path||Ar,this.query=t.query||Ar,this.fragment=t.fragment||Ar):(this.scheme=r1(t,a),this.authority=n||Ar,this.path=i1(this.scheme,r||Ar),this.query=i||Ar,this.fragment=s||Ar,n1(this,a))}get fsPath(){return Pl(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=Ar),r===void 0?r=this.authority:r===null&&(r=Ar),i===void 0?i=this.path:i===null&&(i=Ar),s===void 0?s=this.query:s===null&&(s=Ar),a===void 0?a=this.fragment:a===null&&(a=Ar),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new da(n,r,i,s,a)}static parse(t,n=!1){const r=s1.exec(t);return r?new da(r[2]||Ar,Jo(r[4]||Ar),Jo(r[5]||Ar),Jo(r[7]||Ar),Jo(r[9]||Ar),n):new da(Ar,Ar,Ar,Ar,Ar)}static file(t){let n=Ar;if(ro&&(t=t.replace(/\\/g,qi)),t[0]===qi&&t[1]===qi){const r=t.indexOf(qi,2);r===-1?(n=t.substring(2),t=qi):(n=t.substring(2,r),t=t.substring(r)||qi)}return new da("file",n,t,Ar,Ar)}static from(t,n){return new da(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 ro&&t.scheme==="file"?r=bl.file(si.join(Pl(t,!0),...n)).path:r=pi.join(t.path,...n),t.with({path:r})}toString(t=!1){return Bl(this,t)}toJSON(){return this}static revive(t){var n,r;if(t){if(t instanceof bl)return t;{const i=new da(t);return i._formatted=(n=t.external)!==null&&n!==void 0?n:null,i._fsPath=t._sep===Ep&&(r=t.fsPath)!==null&&r!==void 0?r:null,i}}else return t}};const Ep=ro?1:void 0;class da extends Ll{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Pl(this,!1)),this._fsPath}toString(t=!1){return t?Bl(this,!0):(this._formatted||(this._formatted=Bl(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=Ep),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 Ap={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 Cp(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 o=Ap[a];o!==void 0?(i!==-1&&(r+=encodeURIComponent(e.substring(i,s)),i=-1),r+=o):i===-1&&(i=s)}}return i!==-1&&(r+=encodeURIComponent(e.substring(i))),r!==void 0?r:e}function a1(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+=Ap[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function Pl(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,ro&&(n=n.replace(/\//g,"\\")),n}function Bl(e,t){const n=t?a1:Cp;let r="",{scheme:i,authority:s,path:a,query:o,fragment:u}=e;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=qi,r+=qi),s){let l=s.indexOf("@");if(l!==-1){const C=s.substr(0,l);s=s.substr(l+1),l=C.lastIndexOf(":"),l===-1?r+=n(C,!1,!1):(r+=n(C.substr(0,l),!1,!1),r+=":",r+=n(C.substr(l+1),!1,!0)),r+="@"}s=s.toLowerCase(),l=s.lastIndexOf(":"),l===-1?r+=n(s,!1,!0):(r+=n(s.substr(0,l),!1,!0),r+=s.substr(l))}if(a){if(a.length>=3&&a.charCodeAt(0)===47&&a.charCodeAt(2)===58){const l=a.charCodeAt(1);l>=65&&l<=90&&(a=`/${String.fromCharCode(l+32)}:${a.substr(3)}`)}else if(a.length>=2&&a.charCodeAt(1)===58){const l=a.charCodeAt(0);l>=65&&l<=90&&(a=`${String.fromCharCode(l+32)}:${a.substr(2)}`)}r+=n(a,!0,!1)}return o&&(r+="?",r+=n(o,!1,!1)),u&&(r+="#",r+=t?u:Cp(u,!1,!1)),r}function Sp(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+Sp(e.substr(3)):e}}const xp=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Jo(e){return e.match(xp)?e.replace(xp,t=>Sp(t)):e}let Zi=class sa{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 sa(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return sa.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return sa.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 sa.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 sa(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new sa(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}},di=class Rr{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 Rr.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return Rr.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 Rr.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 Rr.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 Rr.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 Rr(r,i,s,a)}intersectRanges(t){return Rr.intersectRanges(this,t)}static intersectRanges(t,n){let r=t.startLineNumber,i=t.startColumn,s=t.endLineNumber,a=t.endColumn;const o=n.startLineNumber,u=n.startColumn,l=n.endLineNumber,C=n.endColumn;return r<o?(r=o,i=u):r===o&&(i=Math.max(i,u)),s>l?(s=l,a=C):s===l&&(a=Math.min(a,C)),r>s||r===s&&i>a?null:new Rr(r,i,s,a)}equalsRange(t){return Rr.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 Rr.getEndPosition(this)}static getEndPosition(t){return new Zi(t.endLineNumber,t.endColumn)}getStartPosition(){return Rr.getStartPosition(this)}static getStartPosition(t){return new Zi(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new Rr(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new Rr(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return Rr.collapseToStart(this)}static collapseToStart(t){return new Rr(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return Rr.collapseToEnd(this)}static collapseToEnd(t){return new Rr(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new Rr(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new Rr(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new Rr(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 o=t.startColumn|0,u=n.startColumn|0;if(o===u){const l=t.endLineNumber|0,C=n.endLineNumber|0;if(l===C){const c=t.endColumn|0,B=n.endColumn|0;return c-B}return l-C}return o-u}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}};var wp;(function(e){function t(i){return i<0}e.isLessThan=t;function n(i){return i>0}e.isGreaterThan=n;function r(i){return i===0}e.isNeitherLessOrGreaterThan=r,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(wp||(wp={}));function Fp(e){return e<0?0:e>255?255:e|0}function ha(e){return e<0?0:e>4294967295?4294967295:e|0}class o1{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,n){t=ha(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=ha(t),n=ha(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=ha(t),n=ha(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=ha(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 u1(i,t-a)}}class u1{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class l1{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 Zi(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 o1(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=wg(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)}}const c1="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function f1(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of c1)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}const Np=f1();function p1(e){let t=Np;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 _p=new ug;_p.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Ml(e,t,n,r,i){if(i||(i=Vo.first(_p)),n.length>i.maxLen){let l=e-i.maxLen/2;return l<0?l=0:r+=l,n=n.substring(l,e+i.maxLen/2),Ml(e,t,n,r,i)}const s=Date.now(),a=e-1-r;let o=-1,u=null;for(let l=1;!(Date.now()-s>=i.timeBudget);l++){const C=a-i.windowSize*l;t.lastIndex=Math.max(0,C);const c=d1(t,n,a,o);if(!c&&u||(u=c,C<=0))break;o=C}if(u){const l={word:u[0],startColumn:r+1+u.index,endColumn:r+1+u.index+u[0].length};return t.lastIndex=0,l}return null}function d1(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 Il{constructor(t){const n=Fp(t);this._defaultValue=n,this._asciiMap=Il._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const r=Fp(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 h1{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 m1{constructor(t){let n=0,r=0;for(let s=0,a=t.length;s<a;s++){const[o,u,l]=t[s];u>n&&(n=u),o>r&&(r=o),l>r&&(r=l)}n++,r++;const i=new h1(r,n,0);for(let s=0,a=t.length;s<a;s++){const[o,u,l]=t[s];i.set(o,u,l)}this._states=i,this._maxCharCode=n}nextState(t,n){return n<0||n>=this._maxCharCode?0:this._states.get(t,n)}}let Ol=null;function g1(){return Ol===null&&(Ol=new m1([[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]])),Ol}let io=null;function y1(){if(io===null){io=new Il(0);const e=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;n<e.length;n++)io.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)io.set(t.charCodeAt(n),2)}return io}class Yo{static _createLink(t,n,r,i,s){let a=s-1;do{const o=n.charCodeAt(a);if(t.get(o)!==2)break;a--}while(a>i);if(i>0){const o=n.charCodeAt(i-1),u=n.charCodeAt(a);(o===40&&u===41||o===91&&u===93||o===123&&u===125)&&a--}return{range:{startLineNumber:r,startColumn:i+1,endLineNumber:r,endColumn:a+2},url:n.substring(i,a+1)}}static computeLinks(t,n=g1()){const r=y1(),i=[];for(let s=1,a=t.getLineCount();s<=a;s++){const o=t.getLineContent(s),u=o.length;let l=0,C=0,c=0,B=1,N=!1,ee=!1,ne=!1,O=!1;for(;l<u;){let ae=!1;const we=o.charCodeAt(l);if(B===13){let Te;switch(we){case 40:N=!0,Te=0;break;case 41:Te=N?0:1;break;case 91:ne=!0,ee=!0,Te=0;break;case 93:ne=!1,Te=ee?0:1;break;case 123:O=!0,Te=0;break;case 125:Te=O?0:1;break;case 39:case 34:case 96:c===we?Te=1:c===39||c===34||c===96?Te=0:Te=1;break;case 42:Te=c===42?1:0;break;case 124:Te=c===124?1:0;break;case 32:Te=ne?0:1;break;default:Te=r.get(we)}Te===1&&(i.push(Yo._createLink(r,o,s,C,l)),ae=!0)}else if(B===12){let Te;we===91?(ee=!0,Te=0):Te=r.get(we),Te===1?ae=!0:B=13}else B=n.nextState(B,we),B===0&&(ae=!0);ae&&(B=1,N=!1,ee=!1,O=!1,C=l+1,c=we),l++}B===13&&i.push(Yo._createLink(r,o,s,C,u))}return i}}function D1(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:Yo.computeLinks(e)}class jl{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}}jl.INSTANCE=new jl;const Tp=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var Ho;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof zo?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:El.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Tp})})(Ho||(Ho={}));class zo{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?Tp:(this._emitter||(this._emitter=new Xi),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class b1{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 zo),this._token}cancel(){this._token?this._token instanceof zo&&this._token.cancel():this._token=Ho.Cancelled}dispose(t=!1){var n;t&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof zo&&this._token.dispose():this._token=Ho.None}}class Rl{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 Qo=new Rl,$l=new Rl,Vl=new Rl,v1=new Array(230),E1=Object.create(null),A1=Object.create(null);(function(){const e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[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,e,0,e,e,e],[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",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],n=[],r=[];for(const i of t){const[s,a,o,u,l,C,c,B,N]=i;if(r[a]||(r[a]=!0,E1[o]=a,A1[o.toLowerCase()]=a),!n[u]){if(n[u]=!0,!l)throw new Error(`String representation missing for key code ${u} around scan code ${o}`);Qo.define(u,l),$l.define(u,B||l),Vl.define(u,N||B||l)}C&&(v1[C]=u)}})();var kp;(function(e){function t(o){return Qo.keyCodeToStr(o)}e.toString=t;function n(o){return Qo.strToKeyCode(o)}e.fromString=n;function r(o){return $l.keyCodeToStr(o)}e.toUserSettingsUS=r;function i(o){return Vl.keyCodeToStr(o)}e.toUserSettingsGeneral=i;function s(o){return $l.strToKeyCode(o)||Vl.strToKeyCode(o)}e.fromUserSettings=s;function a(o){if(o>=98&&o<=113)return null;switch(o){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return Qo.keyCodeToStr(o)}e.toElectronAccelerator=a})(kp||(kp={}));function C1(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class Ei extends di{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 Ei.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 Ei(this.startLineNumber,this.startColumn,t,n):new Ei(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new Zi(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Zi(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new Ei(t,n,this.endLineNumber,this.endColumn):new Ei(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new Ei(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new Ei(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new Ei(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new Ei(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 Ei(t,n,r,i):new Ei(r,i,t,n)}}const Lp=Object.create(null);function P(e,t){if(hg(t)){const n=Lp[t];if(n===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return Lp[e]=t,{id:e}}const _n={add:P("add",6e4),plus:P("plus",6e4),gistNew:P("gist-new",6e4),repoCreate:P("repo-create",6e4),lightbulb:P("lightbulb",60001),lightBulb:P("light-bulb",60001),repo:P("repo",60002),repoDelete:P("repo-delete",60002),gistFork:P("gist-fork",60003),repoForked:P("repo-forked",60003),gitPullRequest:P("git-pull-request",60004),gitPullRequestAbandoned:P("git-pull-request-abandoned",60004),recordKeys:P("record-keys",60005),keyboard:P("keyboard",60005),tag:P("tag",60006),tagAdd:P("tag-add",60006),tagRemove:P("tag-remove",60006),person:P("person",60007),personFollow:P("person-follow",60007),personOutline:P("person-outline",60007),personFilled:P("person-filled",60007),gitBranch:P("git-branch",60008),gitBranchCreate:P("git-branch-create",60008),gitBranchDelete:P("git-branch-delete",60008),sourceControl:P("source-control",60008),mirror:P("mirror",60009),mirrorPublic:P("mirror-public",60009),star:P("star",60010),starAdd:P("star-add",60010),starDelete:P("star-delete",60010),starEmpty:P("star-empty",60010),comment:P("comment",60011),commentAdd:P("comment-add",60011),alert:P("alert",60012),warning:P("warning",60012),search:P("search",60013),searchSave:P("search-save",60013),logOut:P("log-out",60014),signOut:P("sign-out",60014),logIn:P("log-in",60015),signIn:P("sign-in",60015),eye:P("eye",60016),eyeUnwatch:P("eye-unwatch",60016),eyeWatch:P("eye-watch",60016),circleFilled:P("circle-filled",60017),primitiveDot:P("primitive-dot",60017),closeDirty:P("close-dirty",60017),debugBreakpoint:P("debug-breakpoint",60017),debugBreakpointDisabled:P("debug-breakpoint-disabled",60017),debugHint:P("debug-hint",60017),primitiveSquare:P("primitive-square",60018),edit:P("edit",60019),pencil:P("pencil",60019),info:P("info",60020),issueOpened:P("issue-opened",60020),gistPrivate:P("gist-private",60021),gitForkPrivate:P("git-fork-private",60021),lock:P("lock",60021),mirrorPrivate:P("mirror-private",60021),close:P("close",60022),removeClose:P("remove-close",60022),x:P("x",60022),repoSync:P("repo-sync",60023),sync:P("sync",60023),clone:P("clone",60024),desktopDownload:P("desktop-download",60024),beaker:P("beaker",60025),microscope:P("microscope",60025),vm:P("vm",60026),deviceDesktop:P("device-desktop",60026),file:P("file",60027),fileText:P("file-text",60027),more:P("more",60028),ellipsis:P("ellipsis",60028),kebabHorizontal:P("kebab-horizontal",60028),mailReply:P("mail-reply",60029),reply:P("reply",60029),organization:P("organization",60030),organizationFilled:P("organization-filled",60030),organizationOutline:P("organization-outline",60030),newFile:P("new-file",60031),fileAdd:P("file-add",60031),newFolder:P("new-folder",60032),fileDirectoryCreate:P("file-directory-create",60032),trash:P("trash",60033),trashcan:P("trashcan",60033),history:P("history",60034),clock:P("clock",60034),folder:P("folder",60035),fileDirectory:P("file-directory",60035),symbolFolder:P("symbol-folder",60035),logoGithub:P("logo-github",60036),markGithub:P("mark-github",60036),github:P("github",60036),terminal:P("terminal",60037),console:P("console",60037),repl:P("repl",60037),zap:P("zap",60038),symbolEvent:P("symbol-event",60038),error:P("error",60039),stop:P("stop",60039),variable:P("variable",60040),symbolVariable:P("symbol-variable",60040),array:P("array",60042),symbolArray:P("symbol-array",60042),symbolModule:P("symbol-module",60043),symbolPackage:P("symbol-package",60043),symbolNamespace:P("symbol-namespace",60043),symbolObject:P("symbol-object",60043),symbolMethod:P("symbol-method",60044),symbolFunction:P("symbol-function",60044),symbolConstructor:P("symbol-constructor",60044),symbolBoolean:P("symbol-boolean",60047),symbolNull:P("symbol-null",60047),symbolNumeric:P("symbol-numeric",60048),symbolNumber:P("symbol-number",60048),symbolStructure:P("symbol-structure",60049),symbolStruct:P("symbol-struct",60049),symbolParameter:P("symbol-parameter",60050),symbolTypeParameter:P("symbol-type-parameter",60050),symbolKey:P("symbol-key",60051),symbolText:P("symbol-text",60051),symbolReference:P("symbol-reference",60052),goToFile:P("go-to-file",60052),symbolEnum:P("symbol-enum",60053),symbolValue:P("symbol-value",60053),symbolRuler:P("symbol-ruler",60054),symbolUnit:P("symbol-unit",60054),activateBreakpoints:P("activate-breakpoints",60055),archive:P("archive",60056),arrowBoth:P("arrow-both",60057),arrowDown:P("arrow-down",60058),arrowLeft:P("arrow-left",60059),arrowRight:P("arrow-right",60060),arrowSmallDown:P("arrow-small-down",60061),arrowSmallLeft:P("arrow-small-left",60062),arrowSmallRight:P("arrow-small-right",60063),arrowSmallUp:P("arrow-small-up",60064),arrowUp:P("arrow-up",60065),bell:P("bell",60066),bold:P("bold",60067),book:P("book",60068),bookmark:P("bookmark",60069),debugBreakpointConditionalUnverified:P("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:P("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:P("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:P("debug-breakpoint-data-unverified",60072),debugBreakpointData:P("debug-breakpoint-data",60073),debugBreakpointDataDisabled:P("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:P("debug-breakpoint-log-unverified",60074),debugBreakpointLog:P("debug-breakpoint-log",60075),debugBreakpointLogDisabled:P("debug-breakpoint-log-disabled",60075),briefcase:P("briefcase",60076),broadcast:P("broadcast",60077),browser:P("browser",60078),bug:P("bug",60079),calendar:P("calendar",60080),caseSensitive:P("case-sensitive",60081),check:P("check",60082),checklist:P("checklist",60083),chevronDown:P("chevron-down",60084),dropDownButton:P("drop-down-button",60084),chevronLeft:P("chevron-left",60085),chevronRight:P("chevron-right",60086),chevronUp:P("chevron-up",60087),chromeClose:P("chrome-close",60088),chromeMaximize:P("chrome-maximize",60089),chromeMinimize:P("chrome-minimize",60090),chromeRestore:P("chrome-restore",60091),circle:P("circle",60092),circleOutline:P("circle-outline",60092),debugBreakpointUnverified:P("debug-breakpoint-unverified",60092),circleSlash:P("circle-slash",60093),circuitBoard:P("circuit-board",60094),clearAll:P("clear-all",60095),clippy:P("clippy",60096),closeAll:P("close-all",60097),cloudDownload:P("cloud-download",60098),cloudUpload:P("cloud-upload",60099),code:P("code",60100),collapseAll:P("collapse-all",60101),colorMode:P("color-mode",60102),commentDiscussion:P("comment-discussion",60103),compareChanges:P("compare-changes",60157),creditCard:P("credit-card",60105),dash:P("dash",60108),dashboard:P("dashboard",60109),database:P("database",60110),debugContinue:P("debug-continue",60111),debugDisconnect:P("debug-disconnect",60112),debugPause:P("debug-pause",60113),debugRestart:P("debug-restart",60114),debugStart:P("debug-start",60115),debugStepInto:P("debug-step-into",60116),debugStepOut:P("debug-step-out",60117),debugStepOver:P("debug-step-over",60118),debugStop:P("debug-stop",60119),debug:P("debug",60120),deviceCameraVideo:P("device-camera-video",60121),deviceCamera:P("device-camera",60122),deviceMobile:P("device-mobile",60123),diffAdded:P("diff-added",60124),diffIgnored:P("diff-ignored",60125),diffModified:P("diff-modified",60126),diffRemoved:P("diff-removed",60127),diffRenamed:P("diff-renamed",60128),diff:P("diff",60129),discard:P("discard",60130),editorLayout:P("editor-layout",60131),emptyWindow:P("empty-window",60132),exclude:P("exclude",60133),extensions:P("extensions",60134),eyeClosed:P("eye-closed",60135),fileBinary:P("file-binary",60136),fileCode:P("file-code",60137),fileMedia:P("file-media",60138),filePdf:P("file-pdf",60139),fileSubmodule:P("file-submodule",60140),fileSymlinkDirectory:P("file-symlink-directory",60141),fileSymlinkFile:P("file-symlink-file",60142),fileZip:P("file-zip",60143),files:P("files",60144),filter:P("filter",60145),flame:P("flame",60146),foldDown:P("fold-down",60147),foldUp:P("fold-up",60148),fold:P("fold",60149),folderActive:P("folder-active",60150),folderOpened:P("folder-opened",60151),gear:P("gear",60152),gift:P("gift",60153),gistSecret:P("gist-secret",60154),gist:P("gist",60155),gitCommit:P("git-commit",60156),gitCompare:P("git-compare",60157),gitMerge:P("git-merge",60158),githubAction:P("github-action",60159),githubAlt:P("github-alt",60160),globe:P("globe",60161),grabber:P("grabber",60162),graph:P("graph",60163),gripper:P("gripper",60164),heart:P("heart",60165),home:P("home",60166),horizontalRule:P("horizontal-rule",60167),hubot:P("hubot",60168),inbox:P("inbox",60169),issueClosed:P("issue-closed",60324),issueReopened:P("issue-reopened",60171),issues:P("issues",60172),italic:P("italic",60173),jersey:P("jersey",60174),json:P("json",60175),bracket:P("bracket",60175),kebabVertical:P("kebab-vertical",60176),key:P("key",60177),law:P("law",60178),lightbulbAutofix:P("lightbulb-autofix",60179),linkExternal:P("link-external",60180),link:P("link",60181),listOrdered:P("list-ordered",60182),listUnordered:P("list-unordered",60183),liveShare:P("live-share",60184),loading:P("loading",60185),location:P("location",60186),mailRead:P("mail-read",60187),mail:P("mail",60188),markdown:P("markdown",60189),megaphone:P("megaphone",60190),mention:P("mention",60191),milestone:P("milestone",60192),mortarBoard:P("mortar-board",60193),move:P("move",60194),multipleWindows:P("multiple-windows",60195),mute:P("mute",60196),noNewline:P("no-newline",60197),note:P("note",60198),octoface:P("octoface",60199),openPreview:P("open-preview",60200),package_:P("package",60201),paintcan:P("paintcan",60202),pin:P("pin",60203),play:P("play",60204),run:P("run",60204),plug:P("plug",60205),preserveCase:P("preserve-case",60206),preview:P("preview",60207),project:P("project",60208),pulse:P("pulse",60209),question:P("question",60210),quote:P("quote",60211),radioTower:P("radio-tower",60212),reactions:P("reactions",60213),references:P("references",60214),refresh:P("refresh",60215),regex:P("regex",60216),remoteExplorer:P("remote-explorer",60217),remote:P("remote",60218),remove:P("remove",60219),replaceAll:P("replace-all",60220),replace:P("replace",60221),repoClone:P("repo-clone",60222),repoForcePush:P("repo-force-push",60223),repoPull:P("repo-pull",60224),repoPush:P("repo-push",60225),report:P("report",60226),requestChanges:P("request-changes",60227),rocket:P("rocket",60228),rootFolderOpened:P("root-folder-opened",60229),rootFolder:P("root-folder",60230),rss:P("rss",60231),ruby:P("ruby",60232),saveAll:P("save-all",60233),saveAs:P("save-as",60234),save:P("save",60235),screenFull:P("screen-full",60236),screenNormal:P("screen-normal",60237),searchStop:P("search-stop",60238),server:P("server",60240),settingsGear:P("settings-gear",60241),settings:P("settings",60242),shield:P("shield",60243),smiley:P("smiley",60244),sortPrecedence:P("sort-precedence",60245),splitHorizontal:P("split-horizontal",60246),splitVertical:P("split-vertical",60247),squirrel:P("squirrel",60248),starFull:P("star-full",60249),starHalf:P("star-half",60250),symbolClass:P("symbol-class",60251),symbolColor:P("symbol-color",60252),symbolCustomColor:P("symbol-customcolor",60252),symbolConstant:P("symbol-constant",60253),symbolEnumMember:P("symbol-enum-member",60254),symbolField:P("symbol-field",60255),symbolFile:P("symbol-file",60256),symbolInterface:P("symbol-interface",60257),symbolKeyword:P("symbol-keyword",60258),symbolMisc:P("symbol-misc",60259),symbolOperator:P("symbol-operator",60260),symbolProperty:P("symbol-property",60261),wrench:P("wrench",60261),wrenchSubaction:P("wrench-subaction",60261),symbolSnippet:P("symbol-snippet",60262),tasklist:P("tasklist",60263),telescope:P("telescope",60264),textSize:P("text-size",60265),threeBars:P("three-bars",60266),thumbsdown:P("thumbsdown",60267),thumbsup:P("thumbsup",60268),tools:P("tools",60269),triangleDown:P("triangle-down",60270),triangleLeft:P("triangle-left",60271),triangleRight:P("triangle-right",60272),triangleUp:P("triangle-up",60273),twitter:P("twitter",60274),unfold:P("unfold",60275),unlock:P("unlock",60276),unmute:P("unmute",60277),unverified:P("unverified",60278),verified:P("verified",60279),versions:P("versions",60280),vmActive:P("vm-active",60281),vmOutline:P("vm-outline",60282),vmRunning:P("vm-running",60283),watch:P("watch",60284),whitespace:P("whitespace",60285),wholeWord:P("whole-word",60286),window:P("window",60287),wordWrap:P("word-wrap",60288),zoomIn:P("zoom-in",60289),zoomOut:P("zoom-out",60290),listFilter:P("list-filter",60291),listFlat:P("list-flat",60292),listSelection:P("list-selection",60293),selection:P("selection",60293),listTree:P("list-tree",60294),debugBreakpointFunctionUnverified:P("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:P("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:P("debug-breakpoint-function-disabled",60296),debugStackframeActive:P("debug-stackframe-active",60297),circleSmallFilled:P("circle-small-filled",60298),debugStackframeDot:P("debug-stackframe-dot",60298),debugStackframe:P("debug-stackframe",60299),debugStackframeFocused:P("debug-stackframe-focused",60299),debugBreakpointUnsupported:P("debug-breakpoint-unsupported",60300),symbolString:P("symbol-string",60301),debugReverseContinue:P("debug-reverse-continue",60302),debugStepBack:P("debug-step-back",60303),debugRestartFrame:P("debug-restart-frame",60304),callIncoming:P("call-incoming",60306),callOutgoing:P("call-outgoing",60307),menu:P("menu",60308),expandAll:P("expand-all",60309),feedback:P("feedback",60310),groupByRefType:P("group-by-ref-type",60311),ungroupByRefType:P("ungroup-by-ref-type",60312),account:P("account",60313),bellDot:P("bell-dot",60314),debugConsole:P("debug-console",60315),library:P("library",60316),output:P("output",60317),runAll:P("run-all",60318),syncIgnored:P("sync-ignored",60319),pinned:P("pinned",60320),githubInverted:P("github-inverted",60321),debugAlt:P("debug-alt",60305),serverProcess:P("server-process",60322),serverEnvironment:P("server-environment",60323),pass:P("pass",60324),stopCircle:P("stop-circle",60325),playCircle:P("play-circle",60326),record:P("record",60327),debugAltSmall:P("debug-alt-small",60328),vmConnect:P("vm-connect",60329),cloud:P("cloud",60330),merge:P("merge",60331),exportIcon:P("export",60332),graphLeft:P("graph-left",60333),magnet:P("magnet",60334),notebook:P("notebook",60335),redo:P("redo",60336),checkAll:P("check-all",60337),pinnedDirty:P("pinned-dirty",60338),passFilled:P("pass-filled",60339),circleLargeFilled:P("circle-large-filled",60340),circleLarge:P("circle-large",60341),circleLargeOutline:P("circle-large-outline",60341),combine:P("combine",60342),gather:P("gather",60342),table:P("table",60343),variableGroup:P("variable-group",60344),typeHierarchy:P("type-hierarchy",60345),typeHierarchySub:P("type-hierarchy-sub",60346),typeHierarchySuper:P("type-hierarchy-super",60347),gitPullRequestCreate:P("git-pull-request-create",60348),runAbove:P("run-above",60349),runBelow:P("run-below",60350),notebookTemplate:P("notebook-template",60351),debugRerun:P("debug-rerun",60352),workspaceTrusted:P("workspace-trusted",60353),workspaceUntrusted:P("workspace-untrusted",60354),workspaceUnspecified:P("workspace-unspecified",60355),terminalCmd:P("terminal-cmd",60356),terminalDebian:P("terminal-debian",60357),terminalLinux:P("terminal-linux",60358),terminalPowershell:P("terminal-powershell",60359),terminalTmux:P("terminal-tmux",60360),terminalUbuntu:P("terminal-ubuntu",60361),terminalBash:P("terminal-bash",60362),arrowSwap:P("arrow-swap",60363),copy:P("copy",60364),personAdd:P("person-add",60365),filterFilled:P("filter-filled",60366),wand:P("wand",60367),debugLineByLine:P("debug-line-by-line",60368),inspect:P("inspect",60369),layers:P("layers",60370),layersDot:P("layers-dot",60371),layersActive:P("layers-active",60372),compass:P("compass",60373),compassDot:P("compass-dot",60374),compassActive:P("compass-active",60375),azure:P("azure",60376),issueDraft:P("issue-draft",60377),gitPullRequestClosed:P("git-pull-request-closed",60378),gitPullRequestDraft:P("git-pull-request-draft",60379),debugAll:P("debug-all",60380),debugCoverage:P("debug-coverage",60381),runErrors:P("run-errors",60382),folderLibrary:P("folder-library",60383),debugContinueSmall:P("debug-continue-small",60384),beakerStop:P("beaker-stop",60385),graphLine:P("graph-line",60386),graphScatter:P("graph-scatter",60387),pieChart:P("pie-chart",60388),bracketDot:P("bracket-dot",60389),bracketError:P("bracket-error",60390),lockSmall:P("lock-small",60391),azureDevops:P("azure-devops",60392),verifiedFilled:P("verified-filled",60393),newLine:P("newline",60394),layout:P("layout",60395),layoutActivitybarLeft:P("layout-activitybar-left",60396),layoutActivitybarRight:P("layout-activitybar-right",60397),layoutPanelLeft:P("layout-panel-left",60398),layoutPanelCenter:P("layout-panel-center",60399),layoutPanelJustify:P("layout-panel-justify",60400),layoutPanelRight:P("layout-panel-right",60401),layoutPanel:P("layout-panel",60402),layoutSidebarLeft:P("layout-sidebar-left",60403),layoutSidebarRight:P("layout-sidebar-right",60404),layoutStatusbar:P("layout-statusbar",60405),layoutMenubar:P("layout-menubar",60406),layoutCentered:P("layout-centered",60407),layoutSidebarRightOff:P("layout-sidebar-right-off",60416),layoutPanelOff:P("layout-panel-off",60417),layoutSidebarLeftOff:P("layout-sidebar-left-off",60418),target:P("target",60408),indent:P("indent",60409),recordSmall:P("record-small",60410),errorSmall:P("error-small",60411),arrowCircleDown:P("arrow-circle-down",60412),arrowCircleLeft:P("arrow-circle-left",60413),arrowCircleRight:P("arrow-circle-right",60414),arrowCircleUp:P("arrow-circle-up",60415),heartFilled:P("heart-filled",60420),map:P("map",60421),mapFilled:P("map-filled",60422),circleSmall:P("circle-small",60423),bellSlash:P("bell-slash",60424),bellSlashDot:P("bell-slash-dot",60425),commentUnresolved:P("comment-unresolved",60426),gitPullRequestGoToChanges:P("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:P("git-pull-request-new-changes",60428),searchFuzzy:P("search-fuzzy",60429),commentDraft:P("comment-draft",60430),send:P("send",60431),sparkle:P("sparkle",60432),insert:P("insert",60433),dialogError:P("dialog-error","error"),dialogWarning:P("dialog-warning","warning"),dialogInfo:P("dialog-info","info"),dialogClose:P("dialog-close","close"),treeItemExpanded:P("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:P("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:P("tree-filter-on-type-off","list-selection"),treeFilterClear:P("tree-filter-clear","close"),treeItemLoading:P("tree-item-loading","loading"),menuSelection:P("menu-selection","check"),menuSubmenu:P("menu-submenu","chevron-right"),menuBarMore:P("menubar-more","more"),scrollbarButtonLeft:P("scrollbar-button-left","triangle-left"),scrollbarButtonRight:P("scrollbar-button-right","triangle-right"),scrollbarButtonUp:P("scrollbar-button-up","triangle-up"),scrollbarButtonDown:P("scrollbar-button-down","triangle-down"),toolBarMore:P("toolbar-more","more"),quickInputBack:P("quick-input-back","arrow-left")};var ql=function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(C){try{l(r.next(C))}catch(c){a(c)}}function u(C){try{l(r.throw(C))}catch(c){a(c)}}function l(C){C.done?s(C.value):i(C.value).then(o,u)}l((r=r.apply(e,t||[])).next())})};class S1{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new Xi,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]),to(()=>{this._tokenizationSupports.get(t)===n&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,n){var r;(r=this._factories.get(t))===null||r===void 0||r.dispose();const i=new x1(this,t,n);return this._factories.set(t,i),to(()=>{const s=this._factories.get(t);!s||s!==i||(this._factories.delete(t),s.dispose())})}getOrCreate(t){return ql(this,void 0,void 0,function*(){const n=this.get(t);if(n)return n;const r=this._factories.get(t);return!r||r.isResolved?null:(yield 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 x1 extends no{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()}resolve(){return ql(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return ql(this,void 0,void 0,function*(){const t=yield this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))})}}class w1{constructor(t,n,r){this.offset=t,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Pp;(function(e){const t=new Map;t.set(0,_n.symbolMethod),t.set(1,_n.symbolFunction),t.set(2,_n.symbolConstructor),t.set(3,_n.symbolField),t.set(4,_n.symbolVariable),t.set(5,_n.symbolClass),t.set(6,_n.symbolStruct),t.set(7,_n.symbolInterface),t.set(8,_n.symbolModule),t.set(9,_n.symbolProperty),t.set(10,_n.symbolEvent),t.set(11,_n.symbolOperator),t.set(12,_n.symbolUnit),t.set(13,_n.symbolValue),t.set(15,_n.symbolEnum),t.set(14,_n.symbolConstant),t.set(15,_n.symbolEnum),t.set(16,_n.symbolEnumMember),t.set(17,_n.symbolKeyword),t.set(27,_n.symbolSnippet),t.set(18,_n.symbolText),t.set(19,_n.symbolColor),t.set(20,_n.symbolFile),t.set(21,_n.symbolReference),t.set(22,_n.symbolCustomColor),t.set(23,_n.symbolFolder),t.set(24,_n.symbolTypeParameter),t.set(25,_n.account),t.set(26,_n.issues);function n(s){let a=t.get(s);return a||(console.info("No codicon found for CompletionItemKind "+s),a=_n.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 o=r.get(s);return typeof o>"u"&&!a&&(o=9),o}e.fromString=i})(Pp||(Pp={}));var Bp;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Bp||(Bp={}));var Mp;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Mp||(Mp={}));var Ip;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Ip||(Ip={})),Er("Array","array"),Er("Boolean","boolean"),Er("Class","class"),Er("Constant","constant"),Er("Constructor","constructor"),Er("Enum","enumeration"),Er("EnumMember","enumeration member"),Er("Event","event"),Er("Field","field"),Er("File","file"),Er("Function","function"),Er("Interface","interface"),Er("Key","key"),Er("Method","method"),Er("Module","module"),Er("Namespace","namespace"),Er("Null","null"),Er("Number","number"),Er("Object","object"),Er("Operator","operator"),Er("Package","package"),Er("Property","property"),Er("String","string"),Er("Struct","struct"),Er("TypeParameter","type parameter"),Er("Variable","variable");var Op;(function(e){const t=new Map;t.set(0,_n.symbolFile),t.set(1,_n.symbolModule),t.set(2,_n.symbolNamespace),t.set(3,_n.symbolPackage),t.set(4,_n.symbolClass),t.set(5,_n.symbolMethod),t.set(6,_n.symbolProperty),t.set(7,_n.symbolField),t.set(8,_n.symbolConstructor),t.set(9,_n.symbolEnum),t.set(10,_n.symbolInterface),t.set(11,_n.symbolFunction),t.set(12,_n.symbolVariable),t.set(13,_n.symbolConstant),t.set(14,_n.symbolString),t.set(15,_n.symbolNumber),t.set(16,_n.symbolBoolean),t.set(17,_n.symbolArray),t.set(18,_n.symbolObject),t.set(19,_n.symbolKey),t.set(20,_n.symbolNull),t.set(21,_n.symbolEnumMember),t.set(22,_n.symbolStruct),t.set(23,_n.symbolEvent),t.set(24,_n.symbolOperator),t.set(25,_n.symbolTypeParameter);function n(r){let i=t.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=_n.symbolProperty),i}e.toIcon=n})(Op||(Op={}));var jp;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(jp||(jp={}));var Rp;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Rp||(Rp={})),new S1;var $p;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})($p||($p={}));var Vp;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Vp||(Vp={}));var qp;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(qp||(qp={}));var Up;(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"})(Up||(Up={}));var Wp;(function(e){e[e.Deprecated=1]="Deprecated"})(Wp||(Wp={}));var Gp;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Gp||(Gp={}));var Jp;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Jp||(Jp={}));var Yp;(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"})(Yp||(Yp={}));var Hp;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Hp||(Hp={}));var zp;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(zp||(zp={}));var Qp;(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"})(Qp||(Qp={}));var Xp;(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.screenReaderAnnounceInlineSuggestion=7]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=8]="autoClosingDelete",e[e.autoClosingOvertype=9]="autoClosingOvertype",e[e.autoClosingQuotes=10]="autoClosingQuotes",e[e.autoIndent=11]="autoIndent",e[e.automaticLayout=12]="automaticLayout",e[e.autoSurround=13]="autoSurround",e[e.bracketPairColorization=14]="bracketPairColorization",e[e.guides=15]="guides",e[e.codeLens=16]="codeLens",e[e.codeLensFontFamily=17]="codeLensFontFamily",e[e.codeLensFontSize=18]="codeLensFontSize",e[e.colorDecorators=19]="colorDecorators",e[e.colorDecoratorsLimit=20]="colorDecoratorsLimit",e[e.columnSelection=21]="columnSelection",e[e.comments=22]="comments",e[e.contextmenu=23]="contextmenu",e[e.copyWithSyntaxHighlighting=24]="copyWithSyntaxHighlighting",e[e.cursorBlinking=25]="cursorBlinking",e[e.cursorSmoothCaretAnimation=26]="cursorSmoothCaretAnimation",e[e.cursorStyle=27]="cursorStyle",e[e.cursorSurroundingLines=28]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=29]="cursorSurroundingLinesStyle",e[e.cursorWidth=30]="cursorWidth",e[e.disableLayerHinting=31]="disableLayerHinting",e[e.disableMonospaceOptimizations=32]="disableMonospaceOptimizations",e[e.domReadOnly=33]="domReadOnly",e[e.dragAndDrop=34]="dragAndDrop",e[e.dropIntoEditor=35]="dropIntoEditor",e[e.emptySelectionClipboard=36]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=37]="experimentalWhitespaceRendering",e[e.extraEditorClassName=38]="extraEditorClassName",e[e.fastScrollSensitivity=39]="fastScrollSensitivity",e[e.find=40]="find",e[e.fixedOverflowWidgets=41]="fixedOverflowWidgets",e[e.folding=42]="folding",e[e.foldingStrategy=43]="foldingStrategy",e[e.foldingHighlight=44]="foldingHighlight",e[e.foldingImportsByDefault=45]="foldingImportsByDefault",e[e.foldingMaximumRegions=46]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=47]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=48]="fontFamily",e[e.fontInfo=49]="fontInfo",e[e.fontLigatures=50]="fontLigatures",e[e.fontSize=51]="fontSize",e[e.fontWeight=52]="fontWeight",e[e.fontVariations=53]="fontVariations",e[e.formatOnPaste=54]="formatOnPaste",e[e.formatOnType=55]="formatOnType",e[e.glyphMargin=56]="glyphMargin",e[e.gotoLocation=57]="gotoLocation",e[e.hideCursorInOverviewRuler=58]="hideCursorInOverviewRuler",e[e.hover=59]="hover",e[e.inDiffEditor=60]="inDiffEditor",e[e.inlineSuggest=61]="inlineSuggest",e[e.letterSpacing=62]="letterSpacing",e[e.lightbulb=63]="lightbulb",e[e.lineDecorationsWidth=64]="lineDecorationsWidth",e[e.lineHeight=65]="lineHeight",e[e.lineNumbers=66]="lineNumbers",e[e.lineNumbersMinChars=67]="lineNumbersMinChars",e[e.linkedEditing=68]="linkedEditing",e[e.links=69]="links",e[e.matchBrackets=70]="matchBrackets",e[e.minimap=71]="minimap",e[e.mouseStyle=72]="mouseStyle",e[e.mouseWheelScrollSensitivity=73]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=74]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=75]="multiCursorMergeOverlapping",e[e.multiCursorModifier=76]="multiCursorModifier",e[e.multiCursorPaste=77]="multiCursorPaste",e[e.multiCursorLimit=78]="multiCursorLimit",e[e.occurrencesHighlight=79]="occurrencesHighlight",e[e.overviewRulerBorder=80]="overviewRulerBorder",e[e.overviewRulerLanes=81]="overviewRulerLanes",e[e.padding=82]="padding",e[e.pasteAs=83]="pasteAs",e[e.parameterHints=84]="parameterHints",e[e.peekWidgetDefaultFocus=85]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=86]="definitionLinkOpensInPeek",e[e.quickSuggestions=87]="quickSuggestions",e[e.quickSuggestionsDelay=88]="quickSuggestionsDelay",e[e.readOnly=89]="readOnly",e[e.readOnlyMessage=90]="readOnlyMessage",e[e.renameOnType=91]="renameOnType",e[e.renderControlCharacters=92]="renderControlCharacters",e[e.renderFinalNewline=93]="renderFinalNewline",e[e.renderLineHighlight=94]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=95]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=96]="renderValidationDecorations",e[e.renderWhitespace=97]="renderWhitespace",e[e.revealHorizontalRightPadding=98]="revealHorizontalRightPadding",e[e.roundedSelection=99]="roundedSelection",e[e.rulers=100]="rulers",e[e.scrollbar=101]="scrollbar",e[e.scrollBeyondLastColumn=102]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=103]="scrollBeyondLastLine",e[e.scrollPredominantAxis=104]="scrollPredominantAxis",e[e.selectionClipboard=105]="selectionClipboard",e[e.selectionHighlight=106]="selectionHighlight",e[e.selectOnLineNumbers=107]="selectOnLineNumbers",e[e.showFoldingControls=108]="showFoldingControls",e[e.showUnused=109]="showUnused",e[e.snippetSuggestions=110]="snippetSuggestions",e[e.smartSelect=111]="smartSelect",e[e.smoothScrolling=112]="smoothScrolling",e[e.stickyScroll=113]="stickyScroll",e[e.stickyTabStops=114]="stickyTabStops",e[e.stopRenderingLineAfter=115]="stopRenderingLineAfter",e[e.suggest=116]="suggest",e[e.suggestFontSize=117]="suggestFontSize",e[e.suggestLineHeight=118]="suggestLineHeight",e[e.suggestOnTriggerCharacters=119]="suggestOnTriggerCharacters",e[e.suggestSelection=120]="suggestSelection",e[e.tabCompletion=121]="tabCompletion",e[e.tabIndex=122]="tabIndex",e[e.unicodeHighlighting=123]="unicodeHighlighting",e[e.unusualLineTerminators=124]="unusualLineTerminators",e[e.useShadowDOM=125]="useShadowDOM",e[e.useTabStops=126]="useTabStops",e[e.wordBreak=127]="wordBreak",e[e.wordSeparators=128]="wordSeparators",e[e.wordWrap=129]="wordWrap",e[e.wordWrapBreakAfterCharacters=130]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=131]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=132]="wordWrapColumn",e[e.wordWrapOverride1=133]="wordWrapOverride1",e[e.wordWrapOverride2=134]="wordWrapOverride2",e[e.wrappingIndent=135]="wrappingIndent",e[e.wrappingStrategy=136]="wrappingStrategy",e[e.showDeprecated=137]="showDeprecated",e[e.inlayHints=138]="inlayHints",e[e.editorClassName=139]="editorClassName",e[e.pixelRatio=140]="pixelRatio",e[e.tabFocusMode=141]="tabFocusMode",e[e.layoutInfo=142]="layoutInfo",e[e.wrappingInfo=143]="wrappingInfo",e[e.defaultColorDecorators=144]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=145]="colorDecoratorsActivatedOn"})(Xp||(Xp={}));var Kp;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Kp||(Kp={}));var Zp;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(Zp||(Zp={}));var ed;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(ed||(ed={}));var td;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(td||(td={}));var nd;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(nd||(nd={}));var rd;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(rd||(rd={}));var id;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(id||(id={}));var Ul;(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"})(Ul||(Ul={}));var Wl;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(Wl||(Wl={}));var Gl;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(Gl||(Gl={}));var sd;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(sd||(sd={}));var ad;(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"})(ad||(ad={}));var od;(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"})(od||(od={}));var ud;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(ud||(ud={}));var ld;(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"})(ld||(ld={}));var cd;(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"})(cd||(cd={}));var fd;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(fd||(fd={}));var pd;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(pd||(pd={}));var dd;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(dd||(dd={}));var Jl;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(Jl||(Jl={}));var hd;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(hd||(hd={}));var md;(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"})(md||(md={}));var gd;(function(e){e[e.Deprecated=1]="Deprecated"})(gd||(gd={}));var yd;(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"})(yd||(yd={}));var Dd;(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"})(Dd||(Dd={}));var bd;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(bd||(bd={}));var vd;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(vd||(vd={}));class so{static chord(t,n){return C1(t,n)}}so.CtrlCmd=2048,so.Shift=1024,so.Alt=512,so.WinCtrl=256;function F1(){return{editor:void 0,languages:void 0,CancellationTokenSource:b1,Emitter:Xi,KeyCode:Ul,KeyMod:so,Position:Zi,Range:di,Selection:Ei,SelectionDirection:Jl,MarkerSeverity:Wl,MarkerTag:Gl,Uri:Ll,Token:w1}}var Ed;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(Ed||(Ed={}));var Ad;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(Ad||(Ad={}));var Cd;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(Cd||(Cd={}));var Sd;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Sd||(Sd={}));function N1(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 _1(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 T1(e,t,n,r,i){return N1(e,t,n,r,i)&&_1(e,t,n,r,i)}class k1{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){kg(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||T1(this._wordSeparators,t,n,i,s))return r}while(r);return null}}function L1(e,t="Unreachable"){throw new Error(t)}function Xo(e){if(!e()){debugger;e(),sp(new oa("Assertion Failed"))}}function xd(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}class P1{static computeUnicodeHighlights(t,n,r){const i=r?r.startLineNumber:1,s=r?r.endLineNumber:t.getLineCount(),a=new wd(n),o=a.getCandidateCodePoints();let u;o==="allNonBasicAscii"?u=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):u=new RegExp(`${B1(Array.from(o))}`,"g");const l=new k1(null,u),C=[];let c=!1,B,N=0,ee=0,ne=0;e:for(let O=i,ae=s;O<=ae;O++){const we=t.getLineContent(O),Te=we.length;l.reset(0);do if(B=l.next(we),B){let Ge=B.index,pe=B.index+B[0].length;if(Ge>0){const Ae=we.charCodeAt(Ge-1);Tl(Ae)&&Ge--}if(pe+1<Te){const Ae=we.charCodeAt(pe-1);Tl(Ae)&&pe++}const Se=we.substring(Ge,pe);let Qe=Ml(Ge+1,Np,we,0);Qe&&Qe.endColumn<=Ge+1&&(Qe=null);const mt=a.shouldHighlightNonBasicASCII(Se,Qe?Qe.word:null);if(mt!==0){mt===3?N++:mt===2?ee++:mt===1?ne++:L1();const Ae=1e3;if(C.length>=Ae){c=!0;break e}C.push(new di(O,Ge+1,O,pe+1))}}while(B)}return{ranges:C,hasMore:c,ambiguousCharacterCount:N,invisibleCharacterCount:ee,nonBasicAsciiCharacterCount:ne}}static computeUnicodeHighlightReason(t,n){const r=new wd(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),o=Ti.getLocales().filter(u=>!Ti.getInstance(new Set([...n.allowedLocales,u])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}function B1(e,t){return`[${xg(e.map(r=>String.fromCodePoint(r)).join(""))}]`}class wd{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=Ti.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const n of bs.codePoints)Fd(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 o=a.codePointAt(0),u=Pg(a);i=i||u,!u&&!this.ambiguousCharacters.isAmbiguous(o)&&!bs.isInvisibleCharacter(o)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!Fd(t)&&bs.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function Fd(e){return e===" "||e===`
8
- `||e===" "}class Tr{static fromRange(t){return new Tr(t.startLineNumber,t.endLineNumber)}static subtract(t,n){return n?t.startLineNumber<n.startLineNumber&&n.endLineNumberExclusive<t.endLineNumberExclusive?[new Tr(t.startLineNumber,n.startLineNumber),new Tr(n.endLineNumberExclusive,t.endLineNumberExclusive)]:n.startLineNumber<=t.startLineNumber&&t.endLineNumberExclusive<=n.endLineNumberExclusive?[]:n.endLineNumberExclusive<t.endLineNumberExclusive?[new Tr(Math.max(n.endLineNumberExclusive,t.startLineNumber),t.endLineNumberExclusive)]:[new Tr(t.startLineNumber,Math.min(n.startLineNumber,t.endLineNumberExclusive))]:[t]}static joinMany(t){if(t.length===0)return[];let n=t[0];for(let r=1;r<t.length;r++)n=this.join(n,t[r]);return n}static join(t,n){if(t.length===0)return n;if(n.length===0)return t;const r=[];let i=0,s=0,a=null;for(;i<t.length||s<n.length;){let o=null;if(i<t.length&&s<n.length){const u=t[i],l=n[s];u.startLineNumber<l.startLineNumber?(o=u,i++):(o=l,s++)}else i<t.length?(o=t[i],i++):(o=n[s],s++);a===null?a=o:a.endLineNumberExclusive>=o.startLineNumber?a=new Tr(a.startLineNumber,Math.max(a.endLineNumberExclusive,o.endLineNumberExclusive)):(r.push(a),a=o)}return a!==null&&r.push(a),r}static ofLength(t,n){return new Tr(t,t+n)}static deserialize(t){return new Tr(t[0],t[1])}constructor(t,n){if(t>n)throw new oa(`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 Tr(this.startLineNumber+t,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new Tr(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 Tr(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 di(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new di(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}}class Nd{constructor(t,n,r){this.changes=t,this.moves=n,this.hitTimeout=r}}class ss{static inverse(t,n,r){const i=[];let s=1,a=1;for(const u of t){const l=new ss(new Tr(s,u.originalRange.startLineNumber),new Tr(a,u.modifiedRange.startLineNumber),void 0);l.modifiedRange.isEmpty||i.push(l),s=u.originalRange.endLineNumberExclusive,a=u.modifiedRange.endLineNumberExclusive}const o=new ss(new Tr(s,n+1),new Tr(a,r+1),void 0);return o.modifiedRange.isEmpty||i.push(o),i}constructor(t,n,r){this.originalRange=t,this.modifiedRange=n,this.innerChanges=r}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}get changedLineCount(){return Math.max(this.originalRange.length,this.modifiedRange.length)}flip(){var t;return new ss(this.modifiedRange,this.originalRange,(t=this.innerChanges)===null||t===void 0?void 0:t.map(n=>n.flip()))}}class ao{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new ao(this.modifiedRange,this.originalRange)}}class Yl{constructor(t,n){this.original=t,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Yl(this.modified,this.original)}}class Hl{constructor(t,n){this.lineRangeMapping=t,this.changes=n}flip(){return new Hl(this.lineRangeMapping.flip(),this.changes.map(t=>t.flip()))}}const M1=3;class I1{computeDiff(t,n,r){var i;const a=new R1(t,n,{maxComputationTime:r.maxComputationTimeMs,shouldIgnoreTrimWhitespace:r.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),o=[];let u=null;for(const l of a.changes){let C;l.originalEndLineNumber===0?C=new Tr(l.originalStartLineNumber+1,l.originalStartLineNumber+1):C=new Tr(l.originalStartLineNumber,l.originalEndLineNumber+1);let c;l.modifiedEndLineNumber===0?c=new Tr(l.modifiedStartLineNumber+1,l.modifiedStartLineNumber+1):c=new Tr(l.modifiedStartLineNumber,l.modifiedEndLineNumber+1);let B=new ss(C,c,(i=l.charChanges)===null||i===void 0?void 0:i.map(N=>new ao(new di(N.originalStartLineNumber,N.originalStartColumn,N.originalEndLineNumber,N.originalEndColumn),new di(N.modifiedStartLineNumber,N.modifiedStartColumn,N.modifiedEndLineNumber,N.modifiedEndColumn))));u&&(u.modifiedRange.endLineNumberExclusive===B.modifiedRange.startLineNumber||u.originalRange.endLineNumberExclusive===B.originalRange.startLineNumber)&&(B=new ss(u.originalRange.join(B.originalRange),u.modifiedRange.join(B.modifiedRange),u.innerChanges&&B.innerChanges?u.innerChanges.concat(B.innerChanges):void 0),o.pop()),o.push(B),u=B}return Xo(()=>xd(o,(l,C)=>C.originalRange.startLineNumber-l.originalRange.endLineNumberExclusive===C.modifiedRange.startLineNumber-l.modifiedRange.endLineNumberExclusive&&l.originalRange.endLineNumberExclusive<C.originalRange.startLineNumber&&l.modifiedRange.endLineNumberExclusive<C.modifiedRange.startLineNumber)),new Nd(o,[],a.quitEarly)}}function _d(e,t,n,r){return new Es(e,t,n).ComputeDiff(r)}let Td=class{constructor(t){const n=[],r=[];for(let i=0,s=t.length;i<s;i++)n[i]=zl(t[i],1),r[i]=Ql(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 o=0;for(let u=n;u<=r;u++){const l=this.lines[u],C=t?this._startColumns[u]:1,c=t?this._endColumns[u]:l.length+1;for(let B=C;B<c;B++)i[o]=l.charCodeAt(B-1),s[o]=u+1,a[o]=B,o++;!t&&u<r&&(i[o]=10,s[o]=u+1,a[o]=l.length+1,o++)}return new O1(i,s,a)}};class O1{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 ma{constructor(t,n,r,i,s,a,o,u){this.originalStartLineNumber=t,this.originalStartColumn=n,this.originalEndLineNumber=r,this.originalEndColumn=i,this.modifiedStartLineNumber=s,this.modifiedStartColumn=a,this.modifiedEndLineNumber=o,this.modifiedEndColumn=u}static createFromDiffChange(t,n,r){const i=n.getStartLineNumber(t.originalStart),s=n.getStartColumn(t.originalStart),a=n.getEndLineNumber(t.originalStart+t.originalLength-1),o=n.getEndColumn(t.originalStart+t.originalLength-1),u=r.getStartLineNumber(t.modifiedStart),l=r.getStartColumn(t.modifiedStart),C=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),c=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new ma(i,s,a,o,u,l,C,c)}}function j1(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),o=s.modifiedStart-(n.modifiedStart+n.modifiedLength);Math.min(a,o)<M1?(n.originalLength=s.originalStart+s.originalLength-n.originalStart,n.modifiedLength=s.modifiedStart+s.modifiedLength-n.modifiedStart):(t.push(s),n=s)}return t}class oo{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,o){let u,l,C,c,B;if(n.originalLength===0?(u=r.getStartLineNumber(n.originalStart)-1,l=0):(u=r.getStartLineNumber(n.originalStart),l=r.getEndLineNumber(n.originalStart+n.originalLength-1)),n.modifiedLength===0?(C=i.getStartLineNumber(n.modifiedStart)-1,c=0):(C=i.getStartLineNumber(n.modifiedStart),c=i.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const N=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),ee=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(N.getElements().length>0&&ee.getElements().length>0){let ne=_d(N,ee,s,!0).changes;o&&(ne=j1(ne)),B=[];for(let O=0,ae=ne.length;O<ae;O++)B.push(ma.createFromDiffChange(ne[O],N,ee))}}return new oo(u,l,C,c,B)}}class R1{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 Td(t),this.modified=new Td(n),this.continueLineDiff=kd(r.maxComputationTime),this.continueCharDiff=kd(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=_d(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),n=t.changes,r=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){const o=[];for(let u=0,l=n.length;u<l;u++)o.push(oo.createFromDiffResult(this.shouldIgnoreTrimWhitespace,n[u],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:r,changes:o}}const i=[];let s=0,a=0;for(let o=-1,u=n.length;o<u;o++){const l=o+1<u?n[o+1]:null,C=l?l.originalStart:this.originalLines.length,c=l?l.modifiedStart:this.modifiedLines.length;for(;s<C&&a<c;){const B=this.originalLines[s],N=this.modifiedLines[a];if(B!==N){{let ee=zl(B,1),ne=zl(N,1);for(;ee>1&&ne>1;){const O=B.charCodeAt(ee-2),ae=N.charCodeAt(ne-2);if(O!==ae)break;ee--,ne--}(ee>1||ne>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,ee,a+1,1,ne)}{let ee=Ql(B,1),ne=Ql(N,1);const O=B.length+1,ae=N.length+1;for(;ee<O&&ne<ae;){const we=B.charCodeAt(ee-1),Te=B.charCodeAt(ne-1);if(we!==Te)break;ee++,ne++}(ee<O||ne<ae)&&this._pushTrimWhitespaceCharChange(i,s+1,ee,O,a+1,ne,ae)}}s++,a++}l&&(i.push(oo.createFromDiffResult(this.shouldIgnoreTrimWhitespace,l,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),s+=l.originalLength,a+=l.modifiedLength)}return{quitEarly:r,changes:i}}_pushTrimWhitespaceCharChange(t,n,r,i,s,a,o){if(this._mergeTrimWhitespaceCharChange(t,n,r,i,s,a,o))return;let u;this.shouldComputeCharChanges&&(u=[new ma(n,r,n,i,s,a,s,o)]),t.push(new oo(n,n,s,s,u))}_mergeTrimWhitespaceCharChange(t,n,r,i,s,a,o){const u=t.length;if(u===0)return!1;const l=t[u-1];return l.originalEndLineNumber===0||l.modifiedEndLineNumber===0?!1:l.originalEndLineNumber===n&&l.modifiedEndLineNumber===s?(this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new ma(n,r,n,i,s,a,s,o)),!0):l.originalEndLineNumber+1===n&&l.modifiedEndLineNumber+1===s?(l.originalEndLineNumber=n,l.modifiedEndLineNumber=s,this.shouldComputeCharChanges&&l.charChanges&&l.charChanges.push(new ma(n,r,n,i,s,a,s,o)),!0):!1}}function zl(e,t){const n=Fg(e);return n===-1?t:n+1}function Ql(e,t){const n=Ng(e);return n===-1?t:n+2}function kd(e){if(e===0)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}class dr{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 dr(s,a))}}static tryCreate(t,n){if(!(t>n))return new dr(t,n)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new oa(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new dr(this.start+t,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(t){return this.start===t.start&&this.endExclusive===t.endExclusive}containsRange(t){return this.start<=t.start&&t.endExclusive<=this.endExclusive}contains(t){return this.start<=t&&t<this.endExclusive}join(t){return new dr(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 dr(n,r)}}class as{static trivial(t,n){return new as([new hi(new dr(0,t.length),new dr(0,n.length))],!1)}static trivialTimedOut(t,n){return new as([new hi(new dr(0,t.length),new dr(0,n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}}class hi{constructor(t,n){this.seq1Range=t,this.seq2Range=n}reverse(){return new hi(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new hi(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new hi(this.seq1Range.delta(t),this.seq2Range.delta(t))}}class uo{isValid(){return!0}}uo.instance=new uo;class $1{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new oa("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class Xl{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}}class V1{compute(t,n,r=uo.instance,i){if(t.length===0||n.length===0)return as.trivial(t,n);const s=new Xl(t.length,n.length),a=new Xl(t.length,n.length),o=new Xl(t.length,n.length);for(let ee=0;ee<t.length;ee++)for(let ne=0;ne<n.length;ne++){if(!r.isValid())return as.trivialTimedOut(t,n);const O=ee===0?0:s.get(ee-1,ne),ae=ne===0?0:s.get(ee,ne-1);let we;t.getElement(ee)===n.getElement(ne)?(ee===0||ne===0?we=0:we=s.get(ee-1,ne-1),ee>0&&ne>0&&a.get(ee-1,ne-1)===3&&(we+=o.get(ee-1,ne-1)),we+=i?i(ee,ne):1):we=-1;const Te=Math.max(O,ae,we);if(Te===we){const Ge=ee>0&&ne>0?o.get(ee-1,ne-1):0;o.set(ee,ne,Ge+1),a.set(ee,ne,3)}else Te===O?(o.set(ee,ne,0),a.set(ee,ne,1)):Te===ae&&(o.set(ee,ne,0),a.set(ee,ne,2));s.set(ee,ne,Te)}const u=[];let l=t.length,C=n.length;function c(ee,ne){(ee+1!==l||ne+1!==C)&&u.push(new hi(new dr(ee+1,l),new dr(ne+1,C))),l=ee,C=ne}let B=t.length-1,N=n.length-1;for(;B>=0&&N>=0;)a.get(B,N)===3?(c(B,N),B--,N--):a.get(B,N)===1?B--:N--;return c(-1,-1),u.reverse(),new as(u,!1)}}function Ld(e,t,n){let r=n;return r=W1(e,t,r),r=G1(e,t,r),r}function q1(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 hi(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function U1(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 o=1;o<r.length;o++){let C=function(B,N){const ee=new dr(l.seq1Range.endExclusive,u.seq1Range.start);if(e.countLinesIn(ee)>5||ee.length>500)return!1;const O=e.getText(ee).trim();if(O.length>20||O.split(/\r\n|\r|\n/).length>1)return!1;const ae=e.countLinesIn(B.seq1Range),we=B.seq1Range.length,Te=t.countLinesIn(B.seq2Range),Ge=B.seq2Range.length,pe=e.countLinesIn(N.seq1Range),Se=N.seq1Range.length,Qe=t.countLinesIn(N.seq2Range),mt=N.seq2Range.length,Ae=2*40+50;function Ne(ze){return Math.min(ze,Ae)}return Math.pow(Math.pow(Ne(ae*40+we),1.5)+Math.pow(Ne(Te*40+Ge),1.5),1.5)+Math.pow(Math.pow(Ne(pe*40+Se),1.5)+Math.pow(Ne(Qe*40+mt),1.5),1.5)>Math.pow(Math.pow(Ae,1.5),1.5)*1.3};const u=r[o],l=a[a.length-1];C(l,u)?(s=!0,a[a.length-1]=a[a.length-1].join(u)):a.push(u)}r=a}while(i++<10&&s);return r}function W1(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 o=n[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const u=o.seq1Range.start-a.seq1Range.endExclusive;let l;for(l=1;l<=u&&!(e.getElement(o.seq1Range.start-l)!==e.getElement(o.seq1Range.endExclusive-l)||t.getElement(o.seq2Range.start-l)!==t.getElement(o.seq2Range.endExclusive-l));l++);if(l--,l===u){r[r.length-1]=new hi(new dr(a.seq1Range.start,o.seq1Range.endExclusive-u),new dr(a.seq2Range.start,o.seq2Range.endExclusive-u));continue}o=o.delta(-l)}r.push(o)}const i=[];for(let s=0;s<r.length-1;s++){const a=r[s+1];let o=r[s];if(o.seq1Range.isEmpty||o.seq2Range.isEmpty){const u=a.seq1Range.start-o.seq1Range.endExclusive;let l;for(l=0;l<u&&!(e.getElement(o.seq1Range.start+l)!==e.getElement(o.seq1Range.endExclusive+l)||t.getElement(o.seq2Range.start+l)!==t.getElement(o.seq2Range.endExclusive+l));l++);if(l===u){r[s+1]=new hi(new dr(o.seq1Range.start+u,a.seq1Range.endExclusive),new dr(o.seq2Range.start+u,a.seq2Range.endExclusive));continue}l>0&&(o=o.delta(l))}i.push(o)}return r.length>0&&i.push(r[r.length-1]),i}function G1(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,o=new dr(i?i.seq1Range.start+1:0,a?a.seq1Range.endExclusive-1:e.length),u=new dr(i?i.seq2Range.start+1:0,a?a.seq2Range.endExclusive-1:t.length);s.seq1Range.isEmpty?n[r]=Pd(s,e,t,o,u):s.seq2Range.isEmpty&&(n[r]=Pd(s.reverse(),t,e,u,o).reverse())}return n}function Pd(e,t,n,r,i){let a=1;for(;e.seq1Range.start-a>=r.start&&e.seq2Range.start-a>=i.start&&n.getElement(e.seq2Range.start-a)===n.getElement(e.seq2Range.endExclusive-a)&&a<100;)a++;a--;let o=0;for(;e.seq1Range.start+o<r.endExclusive&&e.seq2Range.endExclusive+o<i.endExclusive&&n.getElement(e.seq2Range.start+o)===n.getElement(e.seq2Range.endExclusive+o)&&o<100;)o++;if(a===0&&o===0)return e;let u=0,l=-1;for(let C=-a;C<=o;C++){const c=e.seq2Range.start+C,B=e.seq2Range.endExclusive+C,N=e.seq1Range.start+C,ee=t.getBoundaryScore(N)+n.getBoundaryScore(c)+n.getBoundaryScore(B);ee>l&&(l=ee,u=C)}return e.delta(u)}class J1{compute(t,n,r=uo.instance){if(t.length===0||n.length===0)return as.trivial(t,n);function i(N,ee){for(;N<t.length&&ee<n.length&&t.getElement(N)===n.getElement(ee);)N++,ee++;return N}let s=0;const a=new Y1;a.set(0,i(0,0));const o=new H1;o.set(0,a.get(0)===0?null:new Bd(null,0,0,a.get(0)));let u=0;e:for(;;){if(s++,!r.isValid())return as.trivialTimedOut(t,n);const N=-Math.min(s,n.length+s%2),ee=Math.min(s,t.length+s%2);for(u=N;u<=ee;u+=2){const ne=u===ee?-1:a.get(u+1),O=u===N?-1:a.get(u-1)+1,ae=Math.min(Math.max(ne,O),t.length),we=ae-u;if(ae>t.length||we>n.length)continue;const Te=i(ae,we);a.set(u,Te);const Ge=ae===ne?o.get(u+1):o.get(u-1);if(o.set(u,Te!==ae?new Bd(Ge,ae,we,Te-ae):Ge),a.get(u)===t.length&&a.get(u)-u===n.length)break e}}let l=o.get(u);const C=[];let c=t.length,B=n.length;for(;;){const N=l?l.x+l.length:0,ee=l?l.y+l.length:0;if((N!==c||ee!==B)&&C.push(new hi(new dr(N,c),new dr(ee,B))),!l)break;c=l.x,B=l.y,l=l.prev}return C.reverse(),new as(C,!1)}}class Bd{constructor(t,n,r,i){this.prev=t,this.x=n,this.y=r,this.length=i}}class Y1{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 H1{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 z1{constructor(){this.dynamicProgrammingDiffing=new V1,this.myersDiffingAlgorithm=new J1}computeDiff(t,n,r){if(t.length===1&&t[0].length===0||n.length===1&&n[0].length===0)return{changes:[new ss(new Tr(1,t.length+1),new Tr(1,n.length+1),[new ao(new di(1,1,t.length,t[0].length+1),new di(1,1,n.length,n[0].length+1))])],hitTimeout:!1,moves:[]};const i=r.maxComputationTimeMs===0?uo.instance:new $1(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,a=new Map;function o(pe){let Se=a.get(pe);return Se===void 0&&(Se=a.size,a.set(pe,Se)),Se}const u=t.map(pe=>o(pe.trim())),l=n.map(pe=>o(pe.trim())),C=new Id(u,t),c=new Id(l,n),B=(()=>C.length+c.length<1500?this.dynamicProgrammingDiffing.compute(C,c,i,(pe,Se)=>t[pe]===n[Se]?n[Se].length===0?.1:1+Math.log(1+n[Se].length):.99):this.myersDiffingAlgorithm.compute(C,c))();let N=B.diffs,ee=B.hitTimeout;N=Ld(C,c,N);const ne=[],O=pe=>{if(s)for(let Se=0;Se<pe;Se++){const Qe=ae+Se,mt=we+Se;if(t[Qe]!==n[mt]){const Ae=this.refineDiff(t,n,new hi(new dr(Qe,Qe+1),new dr(mt,mt+1)),i,s);for(const Ne of Ae.mappings)ne.push(Ne);Ae.hitTimeout&&(ee=!0)}}};let ae=0,we=0;for(const pe of N){Xo(()=>pe.seq1Range.start-ae===pe.seq2Range.start-we);const Se=pe.seq1Range.start-ae;O(Se),ae=pe.seq1Range.endExclusive,we=pe.seq2Range.endExclusive;const Qe=this.refineDiff(t,n,pe,i,s);Qe.hitTimeout&&(ee=!0);for(const mt of Qe.mappings)ne.push(mt)}O(t.length-ae);const Te=Md(ne,t,n),Ge=[];if(r.computeMoves){const pe=Te.filter(Qe=>Qe.modifiedRange.isEmpty&&Qe.originalRange.length>=3).map(Qe=>new qd(Qe.originalRange,t)),Se=new Set(Te.filter(Qe=>Qe.originalRange.isEmpty&&Qe.modifiedRange.length>=3).map(Qe=>new qd(Qe.modifiedRange,n)));for(const Qe of pe){let mt=-1,Ae;for(const Ne of Se){const ze=Qe.computeSimilarity(Ne);ze>mt&&(mt=ze,Ae=Ne)}if(mt>.9&&Ae){const Ne=this.refineDiff(t,n,new hi(new dr(Qe.range.startLineNumber-1,Qe.range.endLineNumberExclusive-1),new dr(Ae.range.startLineNumber-1,Ae.range.endLineNumberExclusive-1)),i,s),ze=Md(Ne.mappings,t,n,!0);Se.delete(Ae),Ge.push(new Hl(new Yl(Qe.range,Ae.range),ze))}}}return Xo(()=>{function pe(Qe,mt){if(Qe.lineNumber<1||Qe.lineNumber>mt.length)return!1;const Ae=mt[Qe.lineNumber-1];return!(Qe.column<1||Qe.column>Ae.length+1)}function Se(Qe,mt){return!(Qe.startLineNumber<1||Qe.startLineNumber>mt.length+1||Qe.endLineNumberExclusive<1||Qe.endLineNumberExclusive>mt.length+1)}for(const Qe of Te){if(!Qe.innerChanges)return!1;for(const mt of Qe.innerChanges)if(!(pe(mt.modifiedRange.getStartPosition(),n)&&pe(mt.modifiedRange.getEndPosition(),n)&&pe(mt.originalRange.getStartPosition(),t)&&pe(mt.originalRange.getEndPosition(),t)))return!1;if(!Se(Qe.modifiedRange,n)||!Se(Qe.originalRange,t))return!1}return!0}),new Nd(Te,Ge,ee)}refineDiff(t,n,r,i,s){const a=new jd(t,r.seq1Range,s),o=new jd(n,r.seq2Range,s),u=a.length+o.length<500?this.dynamicProgrammingDiffing.compute(a,o,i):this.myersDiffingAlgorithm.compute(a,o,i);let l=u.diffs;return l=Ld(a,o,l),l=Q1(a,o,l),l=q1(a,o,l),l=U1(a,o,l),{mappings:l.map(c=>new ao(a.translateRange(c.seq1Range),o.translateRange(c.seq2Range))),hitTimeout:u.hitTimeout}}}function Q1(e,t,n){const r=[];let i;function s(){if(!i)return;const o=i.s1Range.length-i.deleted;i.s2Range.length-i.added,Math.max(i.deleted,i.added)+(i.count-1)>o&&r.push(new hi(i.s1Range,i.s2Range)),i=void 0}for(const o of n){let u=function(N,ee){var ne,O,ae,we;if(!i||!i.s1Range.containsRange(N)||!i.s2Range.containsRange(ee))if(i&&!(i.s1Range.endExclusive<N.start&&i.s2Range.endExclusive<ee.start)){const pe=dr.tryCreate(i.s1Range.endExclusive,N.start),Se=dr.tryCreate(i.s2Range.endExclusive,ee.start);i.deleted+=(ne=pe==null?void 0:pe.length)!==null&&ne!==void 0?ne:0,i.added+=(O=Se==null?void 0:Se.length)!==null&&O!==void 0?O:0,i.s1Range=i.s1Range.join(N),i.s2Range=i.s2Range.join(ee)}else s(),i={added:0,deleted:0,count:0,s1Range:N,s2Range:ee};const Te=N.intersect(o.seq1Range),Ge=ee.intersect(o.seq2Range);i.count++,i.deleted+=(ae=Te==null?void 0:Te.length)!==null&&ae!==void 0?ae:0,i.added+=(we=Ge==null?void 0:Ge.length)!==null&&we!==void 0?we:0};const l=e.findWordContaining(o.seq1Range.start-1),C=t.findWordContaining(o.seq2Range.start-1),c=e.findWordContaining(o.seq1Range.endExclusive),B=t.findWordContaining(o.seq2Range.endExclusive);l&&c&&C&&B&&l.equals(c)&&C.equals(B)?u(l,C):(l&&C&&u(l,C),c&&B&&u(c,B))}return s(),X1(n,r)}function X1(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 Md(e,t,n,r=!1){const i=[];for(const s of Z1(e.map(a=>K1(a,t,n)),(a,o)=>a.originalRange.overlapOrTouch(o.originalRange)||a.modifiedRange.overlapOrTouch(o.modifiedRange))){const a=s[0],o=s[s.length-1];i.push(new ss(a.originalRange.join(o.originalRange),a.modifiedRange.join(o.modifiedRange),s.map(u=>u.innerChanges[0])))}return Xo(()=>!r&&i.length>0&&i[0].originalRange.startLineNumber!==i[0].modifiedRange.startLineNumber?!1:xd(i,(s,a)=>a.originalRange.startLineNumber-s.originalRange.endLineNumberExclusive===a.modifiedRange.startLineNumber-s.modifiedRange.endLineNumberExclusive&&s.originalRange.endLineNumberExclusive<a.originalRange.startLineNumber&&s.modifiedRange.endLineNumberExclusive<a.modifiedRange.startLineNumber)),i}function K1(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 Tr(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),a=new Tr(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new ss(s,a,[e])}function*Z1(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)}class Id{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:Od(this.lines[t-1]),r=t===this.lines.length?0:Od(this.lines[t]);return 1e3-(n+r)}}function Od(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}class jd{constructor(t,n,r){this.lines=t,this.considerWhitespaceChanges=r,this.elements=[],this.firstCharOffsetByLineMinusOne=[],this.offsetByLine=[];let i=!1;n.start>0&&n.endExclusive>=t.length&&(n=new dr(n.start-1,n.endExclusive),i=!0),this.lineRange=n;for(let s=this.lineRange.start;s<this.lineRange.endExclusive;s++){let a=t[s],o=0;if(i)o=a.length,a="",i=!1;else if(!r){const u=a.trimStart();o=a.length-u.length,a=u.trimEnd()}this.offsetByLine.push(o);for(let u=0;u<a.length;u++)this.elements.push(a.charCodeAt(u));s<t.length-1&&(this.elements.push(`
9
- `.charCodeAt(0)),this.firstCharOffsetByLineMinusOne[s-this.lineRange.start]=this.elements.length)}this.offsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new dr(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=$d(t>0?this.elements[t-1]:-1),r=$d(t<this.elements.length?this.elements[t]:-1);if(n===6&&r===7)return 0;let i=0;return n!==r&&(i+=10,r===1&&(i+=1)),i+=Rd(n),i+=Rd(r),i}translateOffset(t){if(this.lineRange.isEmpty)return new Zi(this.lineRange.start+1,1);let n=0,r=this.firstCharOffsetByLineMinusOne.length;for(;n<r;){const s=Math.floor((n+r)/2);this.firstCharOffsetByLineMinusOne[s]>t?r=s:n=s+1}const i=n===0?0:this.firstCharOffsetByLineMinusOne[n-1];return new Zi(this.lineRange.start+n+1,t-i+1+this.offsetByLine[n])}translateRange(t){return di.fromPositions(this.translateOffset(t.start),this.translateOffset(t.endExclusive))}findWordContaining(t){if(t<0||t>=this.elements.length||!Kl(this.elements[t]))return;let n=t;for(;n>0&&Kl(this.elements[n-1]);)n--;let r=t;for(;r<this.elements.length&&Kl(this.elements[r]);)r++;return new dr(n,r)}countLinesIn(t){return this.translateOffset(t.endExclusive).lineNumber-this.translateOffset(t.start).lineNumber}}function Kl(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const ey={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function Rd(e){return ey[e]}function $d(e){return e===10?7:e===13?6:ty(e)?5:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:4}function ty(e){return e===32||e===9}const Zl=new Map;function Vd(e){let t=Zl.get(e);return t===void 0&&(t=Zl.size,Zl.set(e,t)),t}class qd{constructor(t,n){this.range=t,this.lines=n,this.histogram=[];let r=0;for(let i=t.startLineNumber-1;i<t.endLineNumberExclusive-1;i++){const s=n[i];for(let o=0;o<s.length;o++){r++;const u=s[o],l=Vd(u);this.histogram[l]=(this.histogram[l]||0)+1}r++;const a=Vd(`
10
- `);this.histogram[a]=(this.histogram[a]||0)+1}this.totalCount=r}computeSimilarity(t){var n,r;let i=0;const s=Math.max(this.histogram.length,t.histogram.length);for(let a=0;a<s;a++)i+=Math.abs(((n=this.histogram[a])!==null&&n!==void 0?n:0)-((r=t.histogram[a])!==null&&r!==void 0?r:0));return 1-i/(this.totalCount+t.totalCount)}}const Ud={getLegacy:()=>new I1,getAdvanced:()=>new z1};function ws(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class Ur{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=ws(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 ki{constructor(t,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=ws(Math.max(Math.min(1,n),0),3),this.l=ws(Math.max(Math.min(1,r),0),3),this.a=ws(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),o=Math.min(n,r,i);let u=0,l=0;const C=(o+a)/2,c=a-o;if(c>0){switch(l=Math.min(C<=.5?c/(2*C):c/(2-2*C),1),a){case n:u=(r-i)/c+(r<i?6:0);break;case r:u=(i-n)/c+2;break;case i:u=(n-r)/c+4;break}u*=60,u=Math.round(u)}return new ki(u,l,C,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,o,u;if(r===0)a=o=u=i;else{const l=i<.5?i*(1+r):i+r-i*r,C=2*i-l;a=ki._hue2rgb(C,l,n+1/3),o=ki._hue2rgb(C,l,n),u=ki._hue2rgb(C,l,n-1/3)}return new Ur(Math.round(a*255),Math.round(o*255),Math.round(u*255),s)}}class ga{constructor(t,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=ws(Math.max(Math.min(1,n),0),3),this.v=ws(Math.max(Math.min(1,r),0),3),this.a=ws(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),o=s-a,u=s===0?0:o/s;let l;return o===0?l=0:s===n?l=((r-i)/o%6+6)%6:s===r?l=(i-n)/o+2:l=(n-r)/o+4,new ga(Math.round(l*60),u,s,t.a)}static toRGBA(t){const{h:n,s:r,v:i,a:s}=t,a=i*r,o=a*(1-Math.abs(n/60%2-1)),u=i-a;let[l,C,c]=[0,0,0];return n<60?(l=a,C=o):n<120?(l=o,C=a):n<180?(C=a,c=o):n<240?(C=o,c=a):n<300?(l=o,c=a):n<=360&&(l=a,c=o),l=Math.round((l+u)*255),C=Math.round((C+u)*255),c=Math.round((c+u)*255),new Ur(l,C,c,s)}}let $r=class Ri{static fromHex(t){return Ri.Format.CSS.parseHex(t)||Ri.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:ki.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:ga.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof Ur)this.rgba=t;else if(t instanceof ki)this._hsla=t,this.rgba=ki.toRGBA(t);else if(t instanceof ga)this._hsva=t,this.rgba=ga.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&Ur.equals(this.rgba,t.rgba)&&ki.equals(this.hsla,t.hsla)&&ga.equals(this.hsva,t.hsva)}getRelativeLuminance(){const t=Ri._relativeLuminanceForComponent(this.rgba.r),n=Ri._relativeLuminanceForComponent(this.rgba.g),r=Ri._relativeLuminanceForComponent(this.rgba.b),i=.2126*t+.7152*n+.0722*r;return ws(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 Ri(new ki(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new Ri(new ki(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 Ri(new Ur(n,r,i,s*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new Ri(new Ur(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 Ri(new Ur(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=Ri.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)}};$r.white=new $r(new Ur(255,255,255,1)),$r.black=new $r(new Ur(0,0,0,1)),$r.red=new $r(new Ur(255,0,0,1)),$r.blue=new $r(new Ur(0,0,255,1)),$r.green=new $r(new Ur(0,255,0,1)),$r.cyan=new $r(new Ur(0,255,255,1)),$r.lightgrey=new $r(new Ur(211,211,211,1)),$r.transparent=new $r(new Ur(0,0,0,0)),function(e){(function(t){(function(n){function r(N){return N.rgba.a===1?`rgb(${N.rgba.r}, ${N.rgba.g}, ${N.rgba.b})`:e.Format.CSS.formatRGBA(N)}n.formatRGB=r;function i(N){return`rgba(${N.rgba.r}, ${N.rgba.g}, ${N.rgba.b}, ${+N.rgba.a.toFixed(2)})`}n.formatRGBA=i;function s(N){return N.hsla.a===1?`hsl(${N.hsla.h}, ${(N.hsla.s*100).toFixed(2)}%, ${(N.hsla.l*100).toFixed(2)}%)`:e.Format.CSS.formatHSLA(N)}n.formatHSL=s;function a(N){return`hsla(${N.hsla.h}, ${(N.hsla.s*100).toFixed(2)}%, ${(N.hsla.l*100).toFixed(2)}%, ${N.hsla.a.toFixed(2)})`}n.formatHSLA=a;function o(N){const ee=N.toString(16);return ee.length!==2?"0"+ee:ee}function u(N){return`#${o(N.rgba.r)}${o(N.rgba.g)}${o(N.rgba.b)}`}n.formatHex=u;function l(N,ee=!1){return ee&&N.rgba.a===1?e.Format.CSS.formatHex(N):`#${o(N.rgba.r)}${o(N.rgba.g)}${o(N.rgba.b)}${o(Math.round(N.rgba.a*255))}`}n.formatHexA=l;function C(N){return N.isOpaque()?e.Format.CSS.formatHex(N):e.Format.CSS.formatRGBA(N)}n.format=C;function c(N){const ee=N.length;if(ee===0||N.charCodeAt(0)!==35)return null;if(ee===7){const ne=16*B(N.charCodeAt(1))+B(N.charCodeAt(2)),O=16*B(N.charCodeAt(3))+B(N.charCodeAt(4)),ae=16*B(N.charCodeAt(5))+B(N.charCodeAt(6));return new e(new Ur(ne,O,ae,1))}if(ee===9){const ne=16*B(N.charCodeAt(1))+B(N.charCodeAt(2)),O=16*B(N.charCodeAt(3))+B(N.charCodeAt(4)),ae=16*B(N.charCodeAt(5))+B(N.charCodeAt(6)),we=16*B(N.charCodeAt(7))+B(N.charCodeAt(8));return new e(new Ur(ne,O,ae,we/255))}if(ee===4){const ne=B(N.charCodeAt(1)),O=B(N.charCodeAt(2)),ae=B(N.charCodeAt(3));return new e(new Ur(16*ne+ne,16*O+O,16*ae+ae))}if(ee===5){const ne=B(N.charCodeAt(1)),O=B(N.charCodeAt(2)),ae=B(N.charCodeAt(3)),we=B(N.charCodeAt(4));return new e(new Ur(16*ne+ne,16*O+O,16*ae+ae,(16*we+we)/255))}return null}n.parseHex=c;function B(N){switch(N){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={}))}($r||($r={}));function Wd(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 ec(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function lo(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 ny(e,t){if(!e)return;const n=$r.Format.CSS.parseHex(t);if(n)return{range:e,color:ec(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function Gd(e,t,n){if(!e||t.length!==1)return;const i=t[0].values(),s=Wd(i);return{range:e,color:ec(s[0],s[1],s[2],n?s[3]:1)}}function Jd(e,t,n){if(!e||t.length!==1)return;const i=t[0].values(),s=Wd(i),a=new $r(new ki(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:e,color:ec(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function co(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function ry(e){const t=[],r=co(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(l=>l!==void 0),a=s[1],o=s[2];if(!o)continue;let u;if(a==="rgb"){const l=/^\(\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;u=Gd(lo(e,i),co(o,l),!1)}else if(a==="rgba"){const l=/^\(\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;u=Gd(lo(e,i),co(o,l),!0)}else if(a==="hsl"){const l=/^\(\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;u=Jd(lo(e,i),co(o,l),!1)}else if(a==="hsla"){const l=/^\(\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;u=Jd(lo(e,i),co(o,l),!0)}else a==="#"&&(u=ny(lo(e,i),a+o));u&&t.push(u)}return t}function iy(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:ry(e)}var Fs=function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function o(C){try{l(r.next(C))}catch(c){a(c)}}function u(C){try{l(r.throw(C))}catch(c){a(c)}}function l(C){C.done?s(C.value):i(C.value).then(o,u)}l((r=r.apply(e,t||[])).next())})};class sy extends l1{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 Zi(r+1,1)),a=i.matchAll(t);for(const o of a)(o.index||o.index===0)&&(o.index=o.index+s),n.push(o)}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=Ml(t.column,p1(n),this._lines[t.lineNumber-1],0);return r?new di(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,o=[];return{*[Symbol.iterator](){for(;;)if(a<o.length){const u=s.substring(o[a].start,o[a].end);a+=1,yield u}else if(i<n.length)s=n[i],o=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(!Zi.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}}class js{constructor(t,n){this._host=t,this._models=Object.create(null),this._foreignModuleFactory=n,this._foreignModule=null}dispose(){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 sy(Ll.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]}computeUnicodeHighlights(t,n,r){return Fs(this,void 0,void 0,function*(){const i=this._getModel(t);return i?P1.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(t,n,r,i){return Fs(this,void 0,void 0,function*(){const s=this._getModel(t),a=this._getModel(n);return!s||!a?null:js.computeDiff(s,a,r,i)})}static computeDiff(t,n,r,i){const s=i==="advanced"?Ud.getAdvanced():Ud.getLegacy(),a=t.getLinesContent(),o=n.getLinesContent(),u=s.computeDiff(a,o,r),l=u.changes.length>0?!1:this._modelsAreIdentical(t,n);function C(c){return c.map(B=>{var N;return[B.originalRange.startLineNumber,B.originalRange.endLineNumberExclusive,B.modifiedRange.startLineNumber,B.modifiedRange.endLineNumberExclusive,(N=B.innerChanges)===null||N===void 0?void 0:N.map(ee=>[ee.originalRange.startLineNumber,ee.originalRange.startColumn,ee.originalRange.endLineNumber,ee.originalRange.endColumn,ee.modifiedRange.startLineNumber,ee.modifiedRange.startColumn,ee.modifiedRange.endLineNumber,ee.modifiedRange.endColumn])]})}return{identical:l,quitEarly:u.hitTimeout,changes:C(u.changes),moves:u.moves.map(c=>[c.lineRangeMapping.original.startLineNumber,c.lineRangeMapping.original.endLineNumberExclusive,c.lineRangeMapping.modified.startLineNumber,c.lineRangeMapping.modified.endLineNumberExclusive,C(c.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),o=n.getLineContent(s);if(a!==o)return!1}return!0}computeMoreMinimalEdits(t,n,r){return Fs(this,void 0,void 0,function*(){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 di.compareRangesUsingStarts(o.range,u.range);const l=o.range?0:1,C=u.range?0:1;return l-C});for(let{range:o,text:u,eol:l}of n){if(typeof l=="number"&&(a=l),di.isEmpty(o)&&!u)continue;const C=i.getValueInRange(o);if(u=u.replace(/\r\n|\n|\r/g,i.eol),C===u)continue;if(Math.max(u.length,C.length)>js._diffLimit){s.push({range:o,text:u});continue}const c=Ug(C,u,r),B=i.offsetAt(di.lift(o).getStartPosition());for(const N of c){const ee=i.positionAt(B+N.originalStart),ne=i.positionAt(B+N.originalStart+N.originalLength),O={text:u.substr(N.modifiedStart,N.modifiedLength),range:{startLineNumber:ee.lineNumber,startColumn:ee.column,endLineNumber:ne.lineNumber,endColumn:ne.column}};i.getValueInRange(O.range)!==O.text&&s.push(O)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s})}computeLinks(t){return Fs(this,void 0,void 0,function*(){const n=this._getModel(t);return n?D1(n):null})}computeDefaultDocumentColors(t){return Fs(this,void 0,void 0,function*(){const n=this._getModel(t);return n?iy(n):null})}textualSuggest(t,n,r,i){return Fs(this,void 0,void 0,function*(){const s=new qo,a=new RegExp(r,i),o=new Set;e:for(const u of t){const l=this._getModel(u);if(l){for(const C of l.words(a))if(!(C===n||!isNaN(Number(C)))&&(o.add(C),o.size>js._suggestionsLimit))break e}}return{words:Array.from(o),duration:s.elapsed()}})}computeWordRanges(t,n,r,i){return Fs(this,void 0,void 0,function*(){const s=this._getModel(t);if(!s)return Object.create(null);const a=new RegExp(r,i),o=Object.create(null);for(let u=n.startLineNumber;u<n.endLineNumber;u++){const l=s.getLineWords(u,a);for(const C of l){if(!isNaN(Number(C.word)))continue;let c=o[C.word];c||(c=[],o[C.word]=c),c.push({startLineNumber:u,startColumn:C.startColumn,endLineNumber:u,endColumn:C.endColumn})}}return o})}navigateValueSet(t,n,r,i,s){return Fs(this,void 0,void 0,function*(){const a=this._getModel(t);if(!a)return null;const o=new RegExp(i,s);n.startColumn===n.endColumn&&(n={startLineNumber:n.startLineNumber,startColumn:n.startColumn,endLineNumber:n.endLineNumber,endColumn:n.endColumn+1});const u=a.getValueInRange(n),l=a.getWordAtPosition({lineNumber:n.startLineNumber,column:n.startColumn},o);if(!l)return null;const C=a.getValueInRange(l);return jl.INSTANCE.navigateValueSet(n,u,l,C,r)})}loadForeignModule(t,n,r){const a={host:gg(r,(o,u)=>this._host.fhr(o,u)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,n),Promise.resolve(Sl(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}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)}}}js._diffLimit=1e5,js._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=F1());let tc=!1;function Yd(e){if(tc)return;tc=!0;const t=new Vg(n=>{globalThis.postMessage(n)},n=>new js(n,e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{tc||Yd(null)};function ay(e){self.onmessage=()=>{Yd((t,n)=>Object.create(e(t,n)))}}var oy=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))},Hd=function(){function e(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(t){if(t){var n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content},e.prototype.update=function(t,n){for(var r=0,i=t;r<i.length;r++){var s=i[r];if(e.isIncremental(s)){var a=Qd(s.range),o=this.offsetAt(a.start),u=this.offsetAt(a.end);this._content=this._content.substring(0,o)+s.text+this._content.substring(u,this._content.length);var l=Math.max(a.start.line,0),C=Math.max(a.end.line,0),c=this._lineOffsets,B=zd(s.text,!1,o);if(C-l===B.length)for(var N=0,ee=B.length;N<ee;N++)c[N+l+1]=B[N];else B.length<1e4?c.splice.apply(c,oy([l+1,C-l],B,!1)):this._lineOffsets=c=c.slice(0,l+1).concat(B,c.slice(C+1));var ne=s.text.length-(u-o);if(ne!==0)for(var N=l+1+B.length,ee=c.length;N<ee;N++)c[N]=c[N]+ne}else if(e.isFull(s))this._content=s.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received")}this._version=n},e.prototype.getLineOffsets=function(){return this._lineOffsets===void 0&&(this._lineOffsets=zd(this._content,!0)),this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return{line:0,character:t};for(;r<i;){var s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}var a=r-1;return{line:a,character:t-n[a]}},e.prototype.offsetAt=function(t){var n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;var 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)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e.isIncremental=function(t){var n=t;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")},e.isFull=function(t){var n=t;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0},e}(),nc;(function(e){function t(i,s,a,o){return new Hd(i,s,a,o)}e.create=t;function n(i,s,a){if(i instanceof Hd)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){for(var a=i.getText(),o=rc(s.map(uy),function(ee,ne){var O=ee.range.start.line-ne.range.start.line;return O===0?ee.range.start.character-ne.range.start.character:O}),u=0,l=[],C=0,c=o;C<c.length;C++){var B=c[C],N=i.offsetAt(B.range.start);if(N<u)throw new Error("Overlapping edit");N>u&&l.push(a.substring(u,N)),B.newText.length&&l.push(B.newText),u=i.offsetAt(B.range.end)}return l.push(a.substr(u)),l.join("")}e.applyEdits=r})(nc||(nc={}));function rc(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);rc(r,t),rc(i,t);for(var s=0,a=0,o=0;s<r.length&&a<i.length;){var u=t(r[s],i[a]);u<=0?e[o++]=r[s++]:e[o++]=i[a++]}for(;s<r.length;)e[o++]=r[s++];for(;a<i.length;)e[o++]=i[a++];return e}function zd(e,t,n){n===void 0&&(n=0);for(var r=t?[n]:[],i=0;i<e.length;i++){var 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 Qd(e){var 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 uy(e){var t=Qd(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function ly(e,t=!1){const n=e.length;let r=0,i="",s=0,a=16,o=0,u=0,l=0,C=0,c=0;function B(Te,Ge){let pe=0,Se=0;for(;pe<Te||!Ge;){let Qe=e.charCodeAt(r);if(Qe>=48&&Qe<=57)Se=Se*16+Qe-48;else if(Qe>=65&&Qe<=70)Se=Se*16+Qe-65+10;else if(Qe>=97&&Qe<=102)Se=Se*16+Qe-97+10;else break;r++,pe++}return pe<Te&&(Se=-1),Se}function N(Te){r=Te,i="",s=0,a=16,c=0}function ee(){let Te=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&ya(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&ya(e.charCodeAt(r)))for(r++;r<e.length&&ya(e.charCodeAt(r));)r++;else return c=3,e.substring(Te,r);let Ge=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&&ya(e.charCodeAt(r))){for(r++;r<e.length&&ya(e.charCodeAt(r));)r++;Ge=r}else c=3;return e.substring(Te,Ge)}function ne(){let Te="",Ge=r;for(;;){if(r>=n){Te+=e.substring(Ge,r),c=2;break}const pe=e.charCodeAt(r);if(pe===34){Te+=e.substring(Ge,r),r++;break}if(pe===92){if(Te+=e.substring(Ge,r),r++,r>=n){c=2;break}switch(e.charCodeAt(r++)){case 34:Te+='"';break;case 92:Te+="\\";break;case 47:Te+="/";break;case 98:Te+="\b";break;case 102:Te+="\f";break;case 110:Te+=`
11
- `;break;case 114:Te+="\r";break;case 116:Te+=" ";break;case 117:const Qe=B(4,!0);Qe>=0?Te+=String.fromCharCode(Qe):c=4;break;default:c=5}Ge=r;continue}if(pe>=0&&pe<=31)if(fo(pe)){Te+=e.substring(Ge,r),c=2;break}else c=6;r++}return Te}function O(){if(i="",c=0,s=r,u=o,C=l,r>=n)return s=n,a=17;let Te=e.charCodeAt(r);if(ic(Te)){do r++,i+=String.fromCharCode(Te),Te=e.charCodeAt(r);while(ic(Te));return a=15}if(fo(Te))return r++,i+=String.fromCharCode(Te),Te===13&&e.charCodeAt(r)===10&&(r++,i+=`
12
- `),o++,l=r,a=14;switch(Te){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=ne(),a=10;case 47:const Ge=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!fo(e.charCodeAt(r));)r++;return i=e.substring(Ge,r),a=12}if(e.charCodeAt(r+1)===42){r+=2;const pe=n-1;let Se=!1;for(;r<pe;){const Qe=e.charCodeAt(r);if(Qe===42&&e.charCodeAt(r+1)===47){r+=2,Se=!0;break}r++,fo(Qe)&&(Qe===13&&e.charCodeAt(r)===10&&r++,o++,l=r)}return Se||(r++,c=1),i=e.substring(Ge,r),a=13}return i+=String.fromCharCode(Te),r++,a=16;case 45:if(i+=String.fromCharCode(Te),r++,r===n||!ya(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+=ee(),a=11;default:for(;r<n&&ae(Te);)r++,Te=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(Te),r++,a=16}}function ae(Te){if(ic(Te)||fo(Te))return!1;switch(Te){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function we(){let Te;do Te=O();while(Te>=12&&Te<=15);return Te}return{setPosition:N,getPosition:()=>r,scan:t?we:O,getToken:()=>a,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>r-s,getTokenStartLine:()=>u,getTokenStartCharacter:()=>s-C,getTokenError:()=>c}}function ic(e){return e===32||e===9}function fo(e){return e===10||e===13}function ya(e){return e>=48&&e<=57}var Xd;(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"})(Xd||(Xd={}));var Ko;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Ko||(Ko={}));function cy(e,t=[],n=Ko.DEFAULT){let r=null,i=[];const s=[];function a(u){Array.isArray(i)?i.push(u):r!==null&&(i[r]=u)}return fy(e,{onObjectBegin:()=>{const u={};a(u),s.push(i),i=u,r=null},onObjectProperty:u=>{r=u},onObjectEnd:()=>{i=s.pop()},onArrayBegin:()=>{const u=[];a(u),s.push(i),i=u,r=null},onArrayEnd:()=>{i=s.pop()},onLiteralValue:a,onError:(u,l,C)=>{t.push({error:u,offset:l,length:C})}},n),i[0]}function sc(e){switch(e.type){case"array":return e.children.map(sc);case"object":const t=Object.create(null);for(let n of e.children){const r=n.children[1];r&&(t[n.children[0].value]=sc(r))}return t;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function fy(e,t,n=Ko.DEFAULT){const r=ly(e,!1),i=[];function s(qe){return qe?()=>qe(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(qe){return qe?()=>qe(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}function o(qe){return qe?jt=>qe(jt,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function u(qe){return qe?jt=>qe(jt,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}const l=a(t.onObjectBegin),C=u(t.onObjectProperty),c=s(t.onObjectEnd),B=a(t.onArrayBegin),N=s(t.onArrayEnd),ee=u(t.onLiteralValue),ne=o(t.onSeparator),O=s(t.onComment),ae=o(t.onError),we=n&&n.disallowComments,Te=n&&n.allowTrailingComma;function Ge(){for(;;){const qe=r.scan();switch(r.getTokenError()){case 4:pe(14);break;case 5:pe(15);break;case 3:pe(13);break;case 1:we||pe(11);break;case 2:pe(12);break;case 6:pe(16);break}switch(qe){case 12:case 13:we?pe(10):O();break;case 16:pe(1);break;case 15:case 14:break;default:return qe}}}function pe(qe,jt=[],fn=[]){if(ae(qe),jt.length+fn.length>0){let xn=r.getToken();for(;xn!==17;){if(jt.indexOf(xn)!==-1){Ge();break}else if(fn.indexOf(xn)!==-1)break;xn=Ge()}}}function Se(qe){const jt=r.getTokenValue();return qe?ee(jt):(C(jt),i.push(jt)),Ge(),!0}function Qe(){switch(r.getToken()){case 11:const qe=r.getTokenValue();let jt=Number(qe);isNaN(jt)&&(pe(2),jt=0),ee(jt);break;case 7:ee(null);break;case 8:ee(!0);break;case 9:ee(!1);break;default:return!1}return Ge(),!0}function mt(){return r.getToken()!==10?(pe(3,[],[2,5]),!1):(Se(!1),r.getToken()===6?(ne(":"),Ge(),ze()||pe(4,[],[2,5])):pe(5,[],[2,5]),i.pop(),!0)}function Ae(){l(),Ge();let qe=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(qe||pe(4,[],[]),ne(","),Ge(),r.getToken()===2&&Te)break}else qe&&pe(6,[],[]);mt()||pe(4,[],[2,5]),qe=!0}return c(),r.getToken()!==2?pe(7,[2],[]):Ge(),!0}function Ne(){B(),Ge();let qe=!0,jt=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(jt||pe(4,[],[]),ne(","),Ge(),r.getToken()===4&&Te)break}else jt&&pe(6,[],[]);qe?(i.push(0),qe=!1):i[i.length-1]++,ze()||pe(4,[],[4,5]),jt=!0}return N(),qe||i.pop(),r.getToken()!==4?pe(8,[4],[]):Ge(),!0}function ze(){switch(r.getToken()){case 3:return Ne();case 1:return Ae();case 10:return Se(!0);default:return Qe()}}return Ge(),r.getToken()===17?n.allowEmptyContent?!0:(pe(4,[],[]),!1):ze()?(r.getToken()!==17&&pe(9,[],[]),!0):(pe(4,[],[]),!1)}var Kd;(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"})(Kd||(Kd={}));var Zd;(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"})(Zd||(Zd={}));const py=cy,dy=sc;var eh;(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"})(eh||(eh={}));var th;(()=>{var e={470:i=>{function s(u){if(typeof u!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(u))}function a(u,l){for(var C,c="",B=0,N=-1,ee=0,ne=0;ne<=u.length;++ne){if(ne<u.length)C=u.charCodeAt(ne);else{if(C===47)break;C=47}if(C===47){if(!(N===ne-1||ee===1))if(N!==ne-1&&ee===2){if(c.length<2||B!==2||c.charCodeAt(c.length-1)!==46||c.charCodeAt(c.length-2)!==46){if(c.length>2){var O=c.lastIndexOf("/");if(O!==c.length-1){O===-1?(c="",B=0):B=(c=c.slice(0,O)).length-1-c.lastIndexOf("/"),N=ne,ee=0;continue}}else if(c.length===2||c.length===1){c="",B=0,N=ne,ee=0;continue}}l&&(c.length>0?c+="/..":c="..",B=2)}else c.length>0?c+="/"+u.slice(N+1,ne):c=u.slice(N+1,ne),B=ne-N-1;N=ne,ee=0}else C===46&&ee!==-1?++ee:ee=-1}return c}var o={resolve:function(){for(var u,l="",C=!1,c=arguments.length-1;c>=-1&&!C;c--){var B;c>=0?B=arguments[c]:(u===void 0&&(u=process.cwd()),B=u),s(B),B.length!==0&&(l=B+"/"+l,C=B.charCodeAt(0)===47)}return l=a(l,!C),C?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(u){if(s(u),u.length===0)return".";var l=u.charCodeAt(0)===47,C=u.charCodeAt(u.length-1)===47;return(u=a(u,!l)).length!==0||l||(u="."),u.length>0&&C&&(u+="/"),l?"/"+u:u},isAbsolute:function(u){return s(u),u.length>0&&u.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var u,l=0;l<arguments.length;++l){var C=arguments[l];s(C),C.length>0&&(u===void 0?u=C:u+="/"+C)}return u===void 0?".":o.normalize(u)},relative:function(u,l){if(s(u),s(l),u===l||(u=o.resolve(u))===(l=o.resolve(l)))return"";for(var C=1;C<u.length&&u.charCodeAt(C)===47;++C);for(var c=u.length,B=c-C,N=1;N<l.length&&l.charCodeAt(N)===47;++N);for(var ee=l.length-N,ne=B<ee?B:ee,O=-1,ae=0;ae<=ne;++ae){if(ae===ne){if(ee>ne){if(l.charCodeAt(N+ae)===47)return l.slice(N+ae+1);if(ae===0)return l.slice(N+ae)}else B>ne&&(u.charCodeAt(C+ae)===47?O=ae:ae===0&&(O=0));break}var we=u.charCodeAt(C+ae);if(we!==l.charCodeAt(N+ae))break;we===47&&(O=ae)}var Te="";for(ae=C+O+1;ae<=c;++ae)ae!==c&&u.charCodeAt(ae)!==47||(Te.length===0?Te+="..":Te+="/..");return Te.length>0?Te+l.slice(N+O):(N+=O,l.charCodeAt(N)===47&&++N,l.slice(N))},_makeLong:function(u){return u},dirname:function(u){if(s(u),u.length===0)return".";for(var l=u.charCodeAt(0),C=l===47,c=-1,B=!0,N=u.length-1;N>=1;--N)if((l=u.charCodeAt(N))===47){if(!B){c=N;break}}else B=!1;return c===-1?C?"/":".":C&&c===1?"//":u.slice(0,c)},basename:function(u,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');s(u);var C,c=0,B=-1,N=!0;if(l!==void 0&&l.length>0&&l.length<=u.length){if(l.length===u.length&&l===u)return"";var ee=l.length-1,ne=-1;for(C=u.length-1;C>=0;--C){var O=u.charCodeAt(C);if(O===47){if(!N){c=C+1;break}}else ne===-1&&(N=!1,ne=C+1),ee>=0&&(O===l.charCodeAt(ee)?--ee==-1&&(B=C):(ee=-1,B=ne))}return c===B?B=ne:B===-1&&(B=u.length),u.slice(c,B)}for(C=u.length-1;C>=0;--C)if(u.charCodeAt(C)===47){if(!N){c=C+1;break}}else B===-1&&(N=!1,B=C+1);return B===-1?"":u.slice(c,B)},extname:function(u){s(u);for(var l=-1,C=0,c=-1,B=!0,N=0,ee=u.length-1;ee>=0;--ee){var ne=u.charCodeAt(ee);if(ne!==47)c===-1&&(B=!1,c=ee+1),ne===46?l===-1?l=ee:N!==1&&(N=1):l!==-1&&(N=-1);else if(!B){C=ee+1;break}}return l===-1||c===-1||N===0||N===1&&l===c-1&&l===C+1?"":u.slice(l,c)},format:function(u){if(u===null||typeof u!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof u);return function(l,C){var c=C.dir||C.root,B=C.base||(C.name||"")+(C.ext||"");return c?c===C.root?c+B:c+"/"+B:B}(0,u)},parse:function(u){s(u);var l={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return l;var C,c=u.charCodeAt(0),B=c===47;B?(l.root="/",C=1):C=0;for(var N=-1,ee=0,ne=-1,O=!0,ae=u.length-1,we=0;ae>=C;--ae)if((c=u.charCodeAt(ae))!==47)ne===-1&&(O=!1,ne=ae+1),c===46?N===-1?N=ae:we!==1&&(we=1):N!==-1&&(we=-1);else if(!O){ee=ae+1;break}return N===-1||ne===-1||we===0||we===1&&N===ne-1&&N===ee+1?ne!==-1&&(l.base=l.name=ee===0&&B?u.slice(1,ne):u.slice(ee,ne)):(ee===0&&B?(l.name=u.slice(1,N),l.base=u.slice(1,ne)):(l.name=u.slice(ee,N),l.base=u.slice(ee,ne)),l.ext=u.slice(N,ne)),ee>0?l.dir=u.slice(0,ee-1):B&&(l.dir="/"),l},sep:"/",delimiter:":",win32:null,posix:null};o.posix=o,i.exports=o}},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={};(()=>{var i;if(n.r(r),n.d(r,{URI:()=>O,Utils:()=>ze}),typeof process=="object")i=process.platform==="win32";else if(typeof navigator=="object"){var s=navigator.userAgent;i=s.indexOf("Windows")>=0}var a,o,u=(a=function(Lt,Tt){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(qt,en){qt.__proto__=en}||function(qt,en){for(var Ln in en)Object.prototype.hasOwnProperty.call(en,Ln)&&(qt[Ln]=en[Ln])},a(Lt,Tt)},function(Lt,Tt){if(typeof Tt!="function"&&Tt!==null)throw new TypeError("Class extends value "+String(Tt)+" is not a constructor or null");function qt(){this.constructor=Lt}a(Lt,Tt),Lt.prototype=Tt===null?Object.create(Tt):(qt.prototype=Tt.prototype,new qt)}),l=/^\w[\w\d+.-]*$/,C=/^\//,c=/^\/\//;function B(Lt,Tt){if(!Lt.scheme&&Tt)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'.concat(Lt.authority,'", path: "').concat(Lt.path,'", query: "').concat(Lt.query,'", fragment: "').concat(Lt.fragment,'"}'));if(Lt.scheme&&!l.test(Lt.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(Lt.path){if(Lt.authority){if(!C.test(Lt.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(c.test(Lt.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}var N="",ee="/",ne=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,O=function(){function Lt(Tt,qt,en,Ln,Un,Pn){Pn===void 0&&(Pn=!1),typeof Tt=="object"?(this.scheme=Tt.scheme||N,this.authority=Tt.authority||N,this.path=Tt.path||N,this.query=Tt.query||N,this.fragment=Tt.fragment||N):(this.scheme=function(zr,Qr){return zr||Qr?zr:"file"}(Tt,Pn),this.authority=qt||N,this.path=function(zr,Qr){switch(zr){case"https":case"http":case"file":Qr?Qr[0]!==ee&&(Qr=ee+Qr):Qr=ee}return Qr}(this.scheme,en||N),this.query=Ln||N,this.fragment=Un||N,B(this,Pn))}return Lt.isUri=function(Tt){return Tt instanceof Lt||!!Tt&&typeof Tt.authority=="string"&&typeof Tt.fragment=="string"&&typeof Tt.path=="string"&&typeof Tt.query=="string"&&typeof Tt.scheme=="string"&&typeof Tt.fsPath=="string"&&typeof Tt.with=="function"&&typeof Tt.toString=="function"},Object.defineProperty(Lt.prototype,"fsPath",{get:function(){return Se(this,!1)},enumerable:!1,configurable:!0}),Lt.prototype.with=function(Tt){if(!Tt)return this;var qt=Tt.scheme,en=Tt.authority,Ln=Tt.path,Un=Tt.query,Pn=Tt.fragment;return qt===void 0?qt=this.scheme:qt===null&&(qt=N),en===void 0?en=this.authority:en===null&&(en=N),Ln===void 0?Ln=this.path:Ln===null&&(Ln=N),Un===void 0?Un=this.query:Un===null&&(Un=N),Pn===void 0?Pn=this.fragment:Pn===null&&(Pn=N),qt===this.scheme&&en===this.authority&&Ln===this.path&&Un===this.query&&Pn===this.fragment?this:new we(qt,en,Ln,Un,Pn)},Lt.parse=function(Tt,qt){qt===void 0&&(qt=!1);var en=ne.exec(Tt);return en?new we(en[2]||N,Ne(en[4]||N),Ne(en[5]||N),Ne(en[7]||N),Ne(en[9]||N),qt):new we(N,N,N,N,N)},Lt.file=function(Tt){var qt=N;if(i&&(Tt=Tt.replace(/\\/g,ee)),Tt[0]===ee&&Tt[1]===ee){var en=Tt.indexOf(ee,2);en===-1?(qt=Tt.substring(2),Tt=ee):(qt=Tt.substring(2,en),Tt=Tt.substring(en)||ee)}return new we("file",qt,Tt,N,N)},Lt.from=function(Tt){var qt=new we(Tt.scheme,Tt.authority,Tt.path,Tt.query,Tt.fragment);return B(qt,!0),qt},Lt.prototype.toString=function(Tt){return Tt===void 0&&(Tt=!1),Qe(this,Tt)},Lt.prototype.toJSON=function(){return this},Lt.revive=function(Tt){if(Tt){if(Tt instanceof Lt)return Tt;var qt=new we(Tt);return qt._formatted=Tt.external,qt._fsPath=Tt._sep===ae?Tt.fsPath:null,qt}return Tt},Lt}(),ae=i?1:void 0,we=function(Lt){function Tt(){var qt=Lt!==null&&Lt.apply(this,arguments)||this;return qt._formatted=null,qt._fsPath=null,qt}return u(Tt,Lt),Object.defineProperty(Tt.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Se(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),Tt.prototype.toString=function(qt){return qt===void 0&&(qt=!1),qt?Qe(this,!0):(this._formatted||(this._formatted=Qe(this,!1)),this._formatted)},Tt.prototype.toJSON=function(){var qt={$mid:1};return this._fsPath&&(qt.fsPath=this._fsPath,qt._sep=ae),this._formatted&&(qt.external=this._formatted),this.path&&(qt.path=this.path),this.scheme&&(qt.scheme=this.scheme),this.authority&&(qt.authority=this.authority),this.query&&(qt.query=this.query),this.fragment&&(qt.fragment=this.fragment),qt},Tt}(O),Te=((o={})[58]="%3A",o[47]="%2F",o[63]="%3F",o[35]="%23",o[91]="%5B",o[93]="%5D",o[64]="%40",o[33]="%21",o[36]="%24",o[38]="%26",o[39]="%27",o[40]="%28",o[41]="%29",o[42]="%2A",o[43]="%2B",o[44]="%2C",o[59]="%3B",o[61]="%3D",o[32]="%20",o);function Ge(Lt,Tt,qt){for(var en=void 0,Ln=-1,Un=0;Un<Lt.length;Un++){var Pn=Lt.charCodeAt(Un);if(Pn>=97&&Pn<=122||Pn>=65&&Pn<=90||Pn>=48&&Pn<=57||Pn===45||Pn===46||Pn===95||Pn===126||Tt&&Pn===47||qt&&Pn===91||qt&&Pn===93||qt&&Pn===58)Ln!==-1&&(en+=encodeURIComponent(Lt.substring(Ln,Un)),Ln=-1),en!==void 0&&(en+=Lt.charAt(Un));else{en===void 0&&(en=Lt.substr(0,Un));var zr=Te[Pn];zr!==void 0?(Ln!==-1&&(en+=encodeURIComponent(Lt.substring(Ln,Un)),Ln=-1),en+=zr):Ln===-1&&(Ln=Un)}}return Ln!==-1&&(en+=encodeURIComponent(Lt.substring(Ln))),en!==void 0?en:Lt}function pe(Lt){for(var Tt=void 0,qt=0;qt<Lt.length;qt++){var en=Lt.charCodeAt(qt);en===35||en===63?(Tt===void 0&&(Tt=Lt.substr(0,qt)),Tt+=Te[en]):Tt!==void 0&&(Tt+=Lt[qt])}return Tt!==void 0?Tt:Lt}function Se(Lt,Tt){var qt;return qt=Lt.authority&&Lt.path.length>1&&Lt.scheme==="file"?"//".concat(Lt.authority).concat(Lt.path):Lt.path.charCodeAt(0)===47&&(Lt.path.charCodeAt(1)>=65&&Lt.path.charCodeAt(1)<=90||Lt.path.charCodeAt(1)>=97&&Lt.path.charCodeAt(1)<=122)&&Lt.path.charCodeAt(2)===58?Tt?Lt.path.substr(1):Lt.path[1].toLowerCase()+Lt.path.substr(2):Lt.path,i&&(qt=qt.replace(/\//g,"\\")),qt}function Qe(Lt,Tt){var qt=Tt?pe:Ge,en="",Ln=Lt.scheme,Un=Lt.authority,Pn=Lt.path,zr=Lt.query,Qr=Lt.fragment;if(Ln&&(en+=Ln,en+=":"),(Un||Ln==="file")&&(en+=ee,en+=ee),Un){var gi=Un.indexOf("@");if(gi!==-1){var ps=Un.substr(0,gi);Un=Un.substr(gi+1),(gi=ps.lastIndexOf(":"))===-1?en+=qt(ps,!1,!1):(en+=qt(ps.substr(0,gi),!1,!1),en+=":",en+=qt(ps.substr(gi+1),!1,!0)),en+="@"}(gi=(Un=Un.toLowerCase()).lastIndexOf(":"))===-1?en+=qt(Un,!1,!0):(en+=qt(Un.substr(0,gi),!1,!0),en+=Un.substr(gi))}if(Pn){if(Pn.length>=3&&Pn.charCodeAt(0)===47&&Pn.charCodeAt(2)===58)(xi=Pn.charCodeAt(1))>=65&&xi<=90&&(Pn="/".concat(String.fromCharCode(xi+32),":").concat(Pn.substr(3)));else if(Pn.length>=2&&Pn.charCodeAt(1)===58){var xi;(xi=Pn.charCodeAt(0))>=65&&xi<=90&&(Pn="".concat(String.fromCharCode(xi+32),":").concat(Pn.substr(2)))}en+=qt(Pn,!0,!1)}return zr&&(en+="?",en+=qt(zr,!1,!1)),Qr&&(en+="#",en+=Tt?Qr:Ge(Qr,!1,!1)),en}function mt(Lt){try{return decodeURIComponent(Lt)}catch{return Lt.length>3?Lt.substr(0,3)+mt(Lt.substr(3)):Lt}}var Ae=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Ne(Lt){return Lt.match(Ae)?Lt.replace(Ae,function(Tt){return mt(Tt)}):Lt}var ze,qe=n(470),jt=function(Lt,Tt,qt){if(qt||arguments.length===2)for(var en,Ln=0,Un=Tt.length;Ln<Un;Ln++)!en&&Ln in Tt||(en||(en=Array.prototype.slice.call(Tt,0,Ln)),en[Ln]=Tt[Ln]);return Lt.concat(en||Array.prototype.slice.call(Tt))},fn=qe.posix||qe,xn="/";(function(Lt){Lt.joinPath=function(Tt){for(var qt=[],en=1;en<arguments.length;en++)qt[en-1]=arguments[en];return Tt.with({path:fn.join.apply(fn,jt([Tt.path],qt,!1))})},Lt.resolvePath=function(Tt){for(var qt=[],en=1;en<arguments.length;en++)qt[en-1]=arguments[en];var Ln=Tt.path,Un=!1;Ln[0]!==xn&&(Ln=xn+Ln,Un=!0);var Pn=fn.resolve.apply(fn,jt([Ln],qt,!1));return Un&&Pn[0]===xn&&!Tt.authority&&(Pn=Pn.substring(1)),Tt.with({path:Pn})},Lt.dirname=function(Tt){if(Tt.path.length===0||Tt.path===xn)return Tt;var qt=fn.dirname(Tt.path);return qt.length===1&&qt.charCodeAt(0)===46&&(qt=""),Tt.with({path:qt})},Lt.basename=function(Tt){return fn.basename(Tt.path)},Lt.extname=function(Tt){return fn.extname(Tt.path)}})(ze||(ze={}))})(),th=r})();const{URI:Ai,Utils:XE}=th;var nh;(function(e){function t(n){return typeof n=="string"}e.is=t})(nh||(nh={}));var ac;(function(e){function t(n){return typeof n=="string"}e.is=t})(ac||(ac={}));var rh;(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})(rh||(rh={}));var Zo;(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})(Zo||(Zo={}));var Yr;(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Zo.MAX_VALUE),i===Number.MAX_VALUE&&(i=Zo.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){var i=r;return xt.objectLiteral(i)&&xt.uinteger(i.line)&&xt.uinteger(i.character)}e.is=n})(Yr||(Yr={}));var Rn;(function(e){function t(r,i,s,a){if(xt.uinteger(r)&&xt.uinteger(i)&&xt.uinteger(s)&&xt.uinteger(a))return{start:Yr.create(r,i),end:Yr.create(s,a)};if(Yr.is(r)&&Yr.is(i))return{start:r,end:i};throw new Error("Range#create called with invalid arguments[".concat(r,", ").concat(i,", ").concat(s,", ").concat(a,"]"))}e.create=t;function n(r){var i=r;return xt.objectLiteral(i)&&Yr.is(i.start)&&Yr.is(i.end)}e.is=n})(Rn||(Rn={}));var Da;(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){var i=r;return xt.objectLiteral(i)&&Rn.is(i.range)&&(xt.string(i.uri)||xt.undefined(i.uri))}e.is=n})(Da||(Da={}));var oc;(function(e){function t(r,i,s,a){return{targetUri:r,targetRange:i,targetSelectionRange:s,originSelectionRange:a}}e.create=t;function n(r){var i=r;return xt.objectLiteral(i)&&Rn.is(i.targetRange)&&xt.string(i.targetUri)&&Rn.is(i.targetSelectionRange)&&(Rn.is(i.originSelectionRange)||xt.undefined(i.originSelectionRange))}e.is=n})(oc||(oc={}));var uc;(function(e){function t(r,i,s,a){return{red:r,green:i,blue:s,alpha:a}}e.create=t;function n(r){var i=r;return xt.objectLiteral(i)&&xt.numberRange(i.red,0,1)&&xt.numberRange(i.green,0,1)&&xt.numberRange(i.blue,0,1)&&xt.numberRange(i.alpha,0,1)}e.is=n})(uc||(uc={}));var ih;(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){var i=r;return xt.objectLiteral(i)&&Rn.is(i.range)&&uc.is(i.color)}e.is=n})(ih||(ih={}));var sh;(function(e){function t(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}e.create=t;function n(r){var i=r;return xt.objectLiteral(i)&&xt.string(i.label)&&(xt.undefined(i.textEdit)||Sr.is(i))&&(xt.undefined(i.additionalTextEdits)||xt.typedArray(i.additionalTextEdits,Sr.is))}e.is=n})(sh||(sh={}));var ah;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(ah||(ah={}));var lc;(function(e){function t(r,i,s,a,o,u){var l={startLine:r,endLine:i};return xt.defined(s)&&(l.startCharacter=s),xt.defined(a)&&(l.endCharacter=a),xt.defined(o)&&(l.kind=o),xt.defined(u)&&(l.collapsedText=u),l}e.create=t;function n(r){var i=r;return xt.objectLiteral(i)&&xt.uinteger(i.startLine)&&xt.uinteger(i.startLine)&&(xt.undefined(i.startCharacter)||xt.uinteger(i.startCharacter))&&(xt.undefined(i.endCharacter)||xt.uinteger(i.endCharacter))&&(xt.undefined(i.kind)||xt.string(i.kind))}e.is=n})(lc||(lc={}));var cc;(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){var i=r;return xt.defined(i)&&Da.is(i.location)&&xt.string(i.message)}e.is=n})(cc||(cc={}));var Xn;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Xn||(Xn={}));var fc;(function(e){e.Unnecessary=1,e.Deprecated=2})(fc||(fc={}));var oh;(function(e){function t(n){var r=n;return xt.objectLiteral(r)&&xt.string(r.href)}e.is=t})(oh||(oh={}));var Ci;(function(e){function t(r,i,s,a,o,u){var l={range:r,message:i};return xt.defined(s)&&(l.severity=s),xt.defined(a)&&(l.code=a),xt.defined(o)&&(l.source=o),xt.defined(u)&&(l.relatedInformation=u),l}e.create=t;function n(r){var i,s=r;return xt.defined(s)&&Rn.is(s.range)&&xt.string(s.message)&&(xt.number(s.severity)||xt.undefined(s.severity))&&(xt.integer(s.code)||xt.string(s.code)||xt.undefined(s.code))&&(xt.undefined(s.codeDescription)||xt.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(xt.string(s.source)||xt.undefined(s.source))&&(xt.undefined(s.relatedInformation)||xt.typedArray(s.relatedInformation,cc.is))}e.is=n})(Ci||(Ci={}));var Rs;(function(e){function t(r,i){for(var s=[],a=2;a<arguments.length;a++)s[a-2]=arguments[a];var o={title:r,command:i};return xt.defined(s)&&s.length>0&&(o.arguments=s),o}e.create=t;function n(r){var i=r;return xt.defined(i)&&xt.string(i.title)&&xt.string(i.command)}e.is=n})(Rs||(Rs={}));var Sr;(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){var a=s;return xt.objectLiteral(a)&&xt.string(a.newText)&&Rn.is(a.range)}e.is=i})(Sr||(Sr={}));var ba;(function(e){function t(r,i,s){var a={label:r};return i!==void 0&&(a.needsConfirmation=i),s!==void 0&&(a.description=s),a}e.create=t;function n(r){var i=r;return xt.objectLiteral(i)&&xt.string(i.label)&&(xt.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(xt.string(i.description)||i.description===void 0)}e.is=n})(ba||(ba={}));var ni;(function(e){function t(n){var r=n;return xt.string(r)}e.is=t})(ni||(ni={}));var Ns;(function(e){function t(s,a,o){return{range:s,newText:a,annotationId:o}}e.replace=t;function n(s,a,o){return{range:{start:s,end:s},newText:a,annotationId:o}}e.insert=n;function r(s,a){return{range:s,newText:"",annotationId:a}}e.del=r;function i(s){var a=s;return Sr.is(a)&&(ba.is(a.annotationId)||ni.is(a.annotationId))}e.is=i})(Ns||(Ns={}));var eu;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){var i=r;return xt.defined(i)&&nu.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(eu||(eu={}));var po;(function(e){function t(r,i,s){var 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){var i=r;return i&&i.kind==="create"&&xt.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||xt.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||xt.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||ni.is(i.annotationId))}e.is=n})(po||(po={}));var ho;(function(e){function t(r,i,s,a){var o={kind:"rename",oldUri:r,newUri:i};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(o.options=s),a!==void 0&&(o.annotationId=a),o}e.create=t;function n(r){var i=r;return i&&i.kind==="rename"&&xt.string(i.oldUri)&&xt.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||xt.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||xt.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||ni.is(i.annotationId))}e.is=n})(ho||(ho={}));var mo;(function(e){function t(r,i,s){var 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){var i=r;return i&&i.kind==="delete"&&xt.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||xt.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||xt.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||ni.is(i.annotationId))}e.is=n})(mo||(mo={}));var pc;(function(e){function t(n){var r=n;return r&&(r.changes!==void 0||r.documentChanges!==void 0)&&(r.documentChanges===void 0||r.documentChanges.every(function(i){return xt.string(i.kind)?po.is(i)||ho.is(i)||mo.is(i):eu.is(i)}))}e.is=t})(pc||(pc={}));var tu=function(){function e(t,n){this.edits=t,this.changeAnnotations=n}return e.prototype.insert=function(t,n,r){var i,s;if(r===void 0?i=Sr.insert(t,n):ni.is(r)?(s=r,i=Ns.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=Ns.insert(t,n,s)),this.edits.push(i),s!==void 0)return s},e.prototype.replace=function(t,n,r){var i,s;if(r===void 0?i=Sr.replace(t,n):ni.is(r)?(s=r,i=Ns.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=Ns.replace(t,n,s)),this.edits.push(i),s!==void 0)return s},e.prototype.delete=function(t,n){var r,i;if(n===void 0?r=Sr.del(t):ni.is(n)?(i=n,r=Ns.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=Ns.del(t,i)),this.edits.push(r),i!==void 0)return i},e.prototype.add=function(t){this.edits.push(t)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(t){if(t===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),uh=function(){function e(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(t,n){var r;if(ni.is(t)?r=t:(r=this.nextId(),n=t),this._annotations[r]!==void 0)throw new Error("Id ".concat(r," is already in use."));if(n===void 0)throw new Error("No annotation provided for id ".concat(r));return this._annotations[r]=n,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(t){var n=this;this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new uh(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(r){if(eu.is(r)){var i=new tu(r.edits,n._changeAnnotations);n._textEditChanges[r.textDocument.uri]=i}})):t.changes&&Object.keys(t.changes).forEach(function(r){var i=new tu(t.changes[r]);n._textEditChanges[r]=i})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(t){if(nu.is(t)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:t.uri,version:t.version},r=this._textEditChanges[n.uri];if(!r){var i=[],s={textDocument:n,edits:i};this._workspaceEdit.documentChanges.push(s),r=new tu(i,this._changeAnnotations),this._textEditChanges[n.uri]=r}return r}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var r=this._textEditChanges[t];if(!r){var i=[];this._workspaceEdit.changes[t]=i,r=new tu(i),this._textEditChanges[t]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new uh,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;ba.is(n)||ni.is(n)?i=n:r=n;var s,a;if(i===void 0?s=po.create(t,r):(a=ni.is(i)?i:this._changeAnnotations.manage(i),s=po.create(t,r,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},e.prototype.renameFile=function(t,n,r,i){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;ba.is(r)||ni.is(r)?s=r:i=r;var a,o;if(s===void 0?a=ho.create(t,n,i):(o=ni.is(s)?s:this._changeAnnotations.manage(s),a=ho.create(t,n,i,o)),this._workspaceEdit.documentChanges.push(a),o!==void 0)return o},e.prototype.deleteFile=function(t,n,r){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var i;ba.is(n)||ni.is(n)?i=n:r=n;var s,a;if(i===void 0?s=mo.create(t,r):(a=ni.is(i)?i:this._changeAnnotations.manage(i),s=mo.create(t,r,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},e})();var lh;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){var i=r;return xt.defined(i)&&xt.string(i.uri)}e.is=n})(lh||(lh={}));var ch;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){var i=r;return xt.defined(i)&&xt.string(i.uri)&&xt.integer(i.version)}e.is=n})(ch||(ch={}));var nu;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){var i=r;return xt.defined(i)&&xt.string(i.uri)&&(i.version===null||xt.integer(i.version))}e.is=n})(nu||(nu={}));var fh;(function(e){function t(r,i,s,a){return{uri:r,languageId:i,version:s,text:a}}e.create=t;function n(r){var i=r;return xt.defined(i)&&xt.string(i.uri)&&xt.string(i.languageId)&&xt.integer(i.version)&&xt.string(i.text)}e.is=n})(fh||(fh={}));var os;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){var r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(os||(os={}));var go;(function(e){function t(n){var r=n;return xt.objectLiteral(n)&&os.is(r.kind)&&xt.string(r.value)}e.is=t})(go||(go={}));var Si;(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})(Si||(Si={}));var Zr;(function(e){e.PlainText=1,e.Snippet=2})(Zr||(Zr={}));var ph;(function(e){e.Deprecated=1})(ph||(ph={}));var dh;(function(e){function t(r,i,s){return{newText:r,insert:i,replace:s}}e.create=t;function n(r){var i=r;return i&&xt.string(i.newText)&&Rn.is(i.insert)&&Rn.is(i.replace)}e.is=n})(dh||(dh={}));var dc;(function(e){e.asIs=1,e.adjustIndentation=2})(dc||(dc={}));var hh;(function(e){function t(n){var r=n;return r&&(xt.string(r.detail)||r.detail===void 0)&&(xt.string(r.description)||r.description===void 0)}e.is=t})(hh||(hh={}));var hc;(function(e){function t(n){return{label:n}}e.create=t})(hc||(hc={}));var mc;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(mc||(mc={}));var ru;(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){var i=r;return xt.string(i)||xt.objectLiteral(i)&&xt.string(i.language)&&xt.string(i.value)}e.is=n})(ru||(ru={}));var mh;(function(e){function t(n){var r=n;return!!r&&xt.objectLiteral(r)&&(go.is(r.contents)||ru.is(r.contents)||xt.typedArray(r.contents,ru.is))&&(n.range===void 0||Rn.is(n.range))}e.is=t})(mh||(mh={}));var gh;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(gh||(gh={}));var yh;(function(e){function t(n,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var a={label:n};return xt.defined(r)&&(a.documentation=r),xt.defined(i)?a.parameters=i:a.parameters=[],a}e.create=t})(yh||(yh={}));var Dh;(function(e){e.Text=1,e.Read=2,e.Write=3})(Dh||(Dh={}));var bh;(function(e){function t(n,r){var i={range:n};return xt.number(r)&&(i.kind=r),i}e.create=t})(bh||(bh={}));var es;(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})(es||(es={}));var vh;(function(e){e.Deprecated=1})(vh||(vh={}));var Eh;(function(e){function t(n,r,i,s,a){var o={name:n,kind:r,location:{uri:s,range:i}};return a&&(o.containerName=a),o}e.create=t})(Eh||(Eh={}));var Ah;(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})(Ah||(Ah={}));var Ch;(function(e){function t(r,i,s,a,o,u){var l={name:r,detail:i,kind:s,range:a,selectionRange:o};return u!==void 0&&(l.children=u),l}e.create=t;function n(r){var i=r;return i&&xt.string(i.name)&&xt.number(i.kind)&&Rn.is(i.range)&&Rn.is(i.selectionRange)&&(i.detail===void 0||xt.string(i.detail))&&(i.deprecated===void 0||xt.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(Ch||(Ch={}));var _s;(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"})(_s||(_s={}));var iu;(function(e){e.Invoked=1,e.Automatic=2})(iu||(iu={}));var Sh;(function(e){function t(r,i,s){var a={diagnostics:r};return i!=null&&(a.only=i),s!=null&&(a.triggerKind=s),a}e.create=t;function n(r){var i=r;return xt.defined(i)&&xt.typedArray(i.diagnostics,Ci.is)&&(i.only===void 0||xt.typedArray(i.only,xt.string))&&(i.triggerKind===void 0||i.triggerKind===iu.Invoked||i.triggerKind===iu.Automatic)}e.is=n})(Sh||(Sh={}));var us;(function(e){function t(r,i,s){var a={title:r},o=!0;return typeof i=="string"?(o=!1,a.kind=i):Rs.is(i)?a.command=i:a.edit=i,o&&s!==void 0&&(a.kind=s),a}e.create=t;function n(r){var i=r;return i&&xt.string(i.title)&&(i.diagnostics===void 0||xt.typedArray(i.diagnostics,Ci.is))&&(i.kind===void 0||xt.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Rs.is(i.command))&&(i.isPreferred===void 0||xt.boolean(i.isPreferred))&&(i.edit===void 0||pc.is(i.edit))}e.is=n})(us||(us={}));var gc;(function(e){function t(r,i){var s={range:r};return xt.defined(i)&&(s.data=i),s}e.create=t;function n(r){var i=r;return xt.defined(i)&&Rn.is(i.range)&&(xt.undefined(i.command)||Rs.is(i.command))}e.is=n})(gc||(gc={}));var xh;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){var i=r;return xt.defined(i)&&xt.uinteger(i.tabSize)&&xt.boolean(i.insertSpaces)}e.is=n})(xh||(xh={}));var wh;(function(e){function t(r,i,s){return{range:r,target:i,data:s}}e.create=t;function n(r){var i=r;return xt.defined(i)&&Rn.is(i.range)&&(xt.undefined(i.target)||xt.string(i.target))}e.is=n})(wh||(wh={}));var su;(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){var i=r;return xt.objectLiteral(i)&&Rn.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(su||(su={}));var Fh;(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"})(Fh||(Fh={}));var Nh;(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"})(Nh||(Nh={}));var _h;(function(e){function t(n){var r=n;return xt.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})(_h||(_h={}));var Th;(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){var i=r;return i!=null&&Rn.is(i.range)&&xt.string(i.text)}e.is=n})(Th||(Th={}));var kh;(function(e){function t(r,i,s){return{range:r,variableName:i,caseSensitiveLookup:s}}e.create=t;function n(r){var i=r;return i!=null&&Rn.is(i.range)&&xt.boolean(i.caseSensitiveLookup)&&(xt.string(i.variableName)||i.variableName===void 0)}e.is=n})(kh||(kh={}));var Lh;(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){var i=r;return i!=null&&Rn.is(i.range)&&(xt.string(i.expression)||i.expression===void 0)}e.is=n})(Lh||(Lh={}));var Ph;(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){var i=r;return xt.defined(i)&&Rn.is(r.stoppedLocation)}e.is=n})(Ph||(Ph={}));var yc;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(yc||(yc={}));var Dc;(function(e){function t(r){return{value:r}}e.create=t;function n(r){var i=r;return xt.objectLiteral(i)&&(i.tooltip===void 0||xt.string(i.tooltip)||go.is(i.tooltip))&&(i.location===void 0||Da.is(i.location))&&(i.command===void 0||Rs.is(i.command))}e.is=n})(Dc||(Dc={}));var Bh;(function(e){function t(r,i,s){var a={position:r,label:i};return s!==void 0&&(a.kind=s),a}e.create=t;function n(r){var i=r;return xt.objectLiteral(i)&&Yr.is(i.position)&&(xt.string(i.label)||xt.typedArray(i.label,Dc.is))&&(i.kind===void 0||yc.is(i.kind))&&i.textEdits===void 0||xt.typedArray(i.textEdits,Sr.is)&&(i.tooltip===void 0||xt.string(i.tooltip)||go.is(i.tooltip))&&(i.paddingLeft===void 0||xt.boolean(i.paddingLeft))&&(i.paddingRight===void 0||xt.boolean(i.paddingRight))}e.is=n})(Bh||(Bh={}));var Mh;(function(e){function t(n){var r=n;return xt.objectLiteral(r)&&ac.is(r.uri)&&xt.string(r.name)}e.is=t})(Mh||(Mh={}));var Ih;(function(e){function t(s,a,o,u){return new hy(s,a,o,u)}e.create=t;function n(s){var a=s;return!!(xt.defined(a)&&xt.string(a.uri)&&(xt.undefined(a.languageId)||xt.string(a.languageId))&&xt.uinteger(a.lineCount)&&xt.func(a.getText)&&xt.func(a.positionAt)&&xt.func(a.offsetAt))}e.is=n;function r(s,a){for(var o=s.getText(),u=i(a,function(ee,ne){var O=ee.range.start.line-ne.range.start.line;return O===0?ee.range.start.character-ne.range.start.character:O}),l=o.length,C=u.length-1;C>=0;C--){var c=u[C],B=s.offsetAt(c.range.start),N=s.offsetAt(c.range.end);if(N<=l)o=o.substring(0,B)+c.newText+o.substring(N,o.length);else throw new Error("Overlapping edit");l=B}return o}e.applyEdits=r;function i(s,a){if(s.length<=1)return s;var o=s.length/2|0,u=s.slice(0,o),l=s.slice(o);i(u,a),i(l,a);for(var C=0,c=0,B=0;C<u.length&&c<l.length;){var N=a(u[C],l[c]);N<=0?s[B++]=u[C++]:s[B++]=l[c++]}for(;C<u.length;)s[B++]=u[C++];for(;c<l.length;)s[B++]=l[c++];return s}})(Ih||(Ih={}));var hy=function(){function e(t,n,r,i){this._uri=t,this._languageId=n,this._version=r,this._content=i,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(t){if(t){var n=this.offsetAt(t.start),r=this.offsetAt(t.end);return this._content.substring(n,r)}return this._content},e.prototype.update=function(t,n){this._content=t.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var t=[],n=this._content,r=!0,i=0;i<n.length;i++){r&&(t.push(i),r=!1);var s=n.charAt(i);r=s==="\r"||s===`
13
- `,s==="\r"&&i+1<n.length&&n.charAt(i+1)===`
14
- `&&i++}r&&n.length>0&&t.push(n.length),this._lineOffsets=t}return this._lineOffsets},e.prototype.positionAt=function(t){t=Math.max(Math.min(t,this._content.length),0);var n=this.getLineOffsets(),r=0,i=n.length;if(i===0)return Yr.create(0,t);for(;r<i;){var s=Math.floor((r+i)/2);n[s]>t?i=s:r=s+1}var a=r-1;return Yr.create(a,t-n[a])},e.prototype.offsetAt=function(t){var n=this.getLineOffsets();if(t.line>=n.length)return this._content.length;if(t.line<0)return 0;var 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)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),xt;(function(e){var t=Object.prototype.toString;function n(N){return typeof N<"u"}e.defined=n;function r(N){return typeof N>"u"}e.undefined=r;function i(N){return N===!0||N===!1}e.boolean=i;function s(N){return t.call(N)==="[object String]"}e.string=s;function a(N){return t.call(N)==="[object Number]"}e.number=a;function o(N,ee,ne){return t.call(N)==="[object Number]"&&ee<=N&&N<=ne}e.numberRange=o;function u(N){return t.call(N)==="[object Number]"&&-2147483648<=N&&N<=2147483647}e.integer=u;function l(N){return t.call(N)==="[object Number]"&&0<=N&&N<=2147483647}e.uinteger=l;function C(N){return t.call(N)==="[object Function]"}e.func=C;function c(N){return N!==null&&typeof N=="object"}e.objectLiteral=c;function B(N,ee){return Array.isArray(N)&&N.every(ee)}e.typedArray=B})(xt||(xt={}));const bc=Symbol.for("yaml.alias"),vc=Symbol.for("yaml.document"),Ts=Symbol.for("yaml.map"),Oh=Symbol.for("yaml.pair"),ls=Symbol.for("yaml.scalar"),va=Symbol.for("yaml.seq"),Li=Symbol.for("yaml.node.type"),ts=e=>!!e&&typeof e=="object"&&e[Li]===bc,yo=e=>!!e&&typeof e=="object"&&e[Li]===vc,Br=e=>!!e&&typeof e=="object"&&e[Li]===Ts,hr=e=>!!e&&typeof e=="object"&&e[Li]===Oh,Jn=e=>!!e&&typeof e=="object"&&e[Li]===ls,Mr=e=>!!e&&typeof e=="object"&&e[Li]===va;function Pr(e){if(e&&typeof e=="object")switch(e[Li]){case Ts:case va:return!0}return!1}function Dr(e){if(e&&typeof e=="object")switch(e[Li]){case bc:case Ts:case ls:case va:return!0}return!1}const my=e=>(Jn(e)||Pr(e))&&!!e.anchor,$s=Symbol("break visit"),gy=Symbol("skip children"),Do=Symbol("remove node");function Nr(e,t){const n=yy(t);yo(e)?Ea(null,e.contents,n,Object.freeze([e]))===Do&&(e.contents=null):Ea(null,e,n,Object.freeze([]))}Nr.BREAK=$s,Nr.SKIP=gy,Nr.REMOVE=Do;function Ea(e,t,n,r){const i=Dy(e,t,n,r);if(Dr(i)||hr(i))return by(e,r,i),Ea(e,i,n,r);if(typeof i!="symbol"){if(Pr(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const a=Ea(s,t.items[s],n,r);if(typeof a=="number")s=a-1;else{if(a===$s)return $s;a===Do&&(t.items.splice(s,1),s-=1)}}}else if(hr(t)){r=Object.freeze(r.concat(t));const s=Ea("key",t.key,n,r);if(s===$s)return $s;s===Do&&(t.key=null);const a=Ea("value",t.value,n,r);if(a===$s)return $s;a===Do&&(t.value=null)}}return i}function yy(e){return typeof e=="object"&&(e.Collection||e.Node||e.Value)?Object.assign({Alias:e.Node,Map:e.Node,Scalar:e.Node,Seq:e.Node},e.Value&&{Map:e.Value,Scalar:e.Value,Seq:e.Value},e.Collection&&{Map:e.Collection,Seq:e.Collection},e):e}function Dy(e,t,n,r){var i,s,a,o,u;if(typeof n=="function")return n(e,t,r);if(Br(t))return(i=n.Map)==null?void 0:i.call(n,e,t,r);if(Mr(t))return(s=n.Seq)==null?void 0:s.call(n,e,t,r);if(hr(t))return(a=n.Pair)==null?void 0:a.call(n,e,t,r);if(Jn(t))return(o=n.Scalar)==null?void 0:o.call(n,e,t,r);if(ts(t))return(u=n.Alias)==null?void 0:u.call(n,e,t,r)}function by(e,t,n){const r=t[t.length-1];if(Pr(r))r.items[e]=n;else if(hr(r))e==="key"?r.key=n:r.value=n;else if(yo(r))r.contents=n;else{const i=ts(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const vy={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Ey=e=>e.replace(/[!,[\]{}]/g,t=>vy[t]);class ai{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},ai.defaultYaml,t),this.tags=Object.assign({},ai.defaultTags,n)}clone(){const t=new ai(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new ai(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:ai.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},ai.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:ai.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},ai.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[s,a]=r;return this.tags[s]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[s]=r;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const a=/^\d+\.\d+$/.test(s);return n(6,`Unsupported YAML version ${s}`,a),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const a=t.slice(2,-1);return a==="!"||a==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),a)}const[,r,i]=t.match(/^(.*!)([^!]*)$/);i||n(`The ${t} tag has no suffix`);const s=this.tags[r];if(s)try{return s+decodeURIComponent(i)}catch(a){return n(String(a)),null}return r==="!"?t:(n(`Could not resolve tag: ${t}`),null)}tagString(t){for(const[n,r]of Object.entries(this.tags))if(t.startsWith(r))return n+Ey(t.substring(r.length));return t[0]==="!"?t:`!<${t}>`}toString(t){const n=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags);let i;if(t&&r.length>0&&Dr(t.contents)){const s={};Nr(t.contents,(a,o)=>{Dr(o)&&o.tag&&(s[o.tag]=!0)}),i=Object.keys(s)}else i=[];for(const[s,a]of r)s==="!!"&&a==="tag:yaml.org,2002:"||(!t||i.some(o=>o.startsWith(a)))&&n.push(`%TAG ${s} ${a}`);return n.join(`
15
- `)}}ai.defaultYaml={explicit:!1,version:"1.2"},ai.defaultTags={"!!":"tag:yaml.org,2002:"};function jh(e){if(/[\x00-\x19\s,[\]{}]/.test(e)){const n=`Anchor must not contain whitespace or control characters: ${JSON.stringify(e)}`;throw new Error(n)}return!0}function Rh(e){const t=new Set;return Nr(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function $h(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function Ay(e,t){const n=[],r=new Map;let i=null;return{onAnchor:s=>{n.push(s),i||(i=Rh(e));const a=$h(t,i);return i.add(a),a},setAnchors:()=>{for(const s of n){const a=r.get(s);if(typeof a=="object"&&a.anchor&&(Jn(a.node)||Pr(a.node)))a.node.anchor=a.anchor;else{const o=new Error("Failed to resolve repeated object (this should not happen)");throw o.source=s,o}}},sourceObjects:r}}function Aa(e,t,n,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let i=0,s=r.length;i<s;++i){const a=r[i],o=Aa(e,r,String(i),a);o===void 0?delete r[i]:o!==a&&(r[i]=o)}else if(r instanceof Map)for(const i of Array.from(r.keys())){const s=r.get(i),a=Aa(e,r,i,s);a===void 0?r.delete(i):a!==s&&r.set(i,a)}else if(r instanceof Set)for(const i of Array.from(r)){const s=Aa(e,r,i,i);s===void 0?r.delete(i):s!==i&&(r.delete(i),r.add(s))}else for(const[i,s]of Object.entries(r)){const a=Aa(e,r,i,s);a===void 0?delete r[i]:a!==s&&(r[i]=a)}return e.call(t,n,r)}function Pi(e,t,n){if(Array.isArray(e))return e.map((r,i)=>Pi(r,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!my(e))return e.toJSON(t,n);const r={aliasCount:0,count:1,res:void 0};n.anchors.set(e,r),n.onCreate=s=>{r.res=s,delete n.onCreate};const i=e.toJSON(t,n);return n.onCreate&&n.onCreate(i),i}return typeof e=="bigint"&&!(n!=null&&n.keep)?Number(e):e}class Ec{constructor(t){Object.defineProperty(this,Li,{value:t})}clone(){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(t.range=this.range.slice()),t}toJS(t,{mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:s}={}){if(!yo(t))throw new TypeError("A document argument is required");const a={anchors:new Map,doc:t,keep:!0,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},o=Pi(this,"",a);if(typeof i=="function")for(const{count:u,res:l}of a.anchors.values())i(l,u);return typeof s=="function"?Aa(s,{"":o},"",o):o}}class Ac extends Ec{constructor(t){super(bc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Nr(t,{Node:(r,i)=>{if(i===this)return Nr.BREAK;i.anchor===this.source&&(n=i)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:s}=n,a=this.resolve(i);if(!a){const u=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(u)}let o=r.get(a);if(o||(Pi(a,null,n),o=r.get(a)),!o||o.res===void 0){const u="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(u)}if(s>=0&&(o.count+=1,o.aliasCount===0&&(o.aliasCount=au(i,a,r)),o.count*o.aliasCount>s)){const u="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(u)}return o.res}toString(t,n,r){const i=`*${this.source}`;if(t){if(jh(this.source),t.options.verifyAliasOrder&&!t.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(t.implicitKey)return`${i} `}return i}}function au(e,t,n){if(ts(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(Pr(t)){let r=0;for(const i of t.items){const s=au(e,i,n);s>r&&(r=s)}return r}else if(hr(t)){const r=au(e,t.key,n),i=au(e,t.value,n);return Math.max(r,i)}return 1}const Vh=e=>!e||typeof e!="function"&&typeof e!="object";class Zn extends Ec{constructor(t){super(ls),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:Pi(this.value,t,n)}toString(){return String(this.value)}}Zn.BLOCK_FOLDED="BLOCK_FOLDED",Zn.BLOCK_LITERAL="BLOCK_LITERAL",Zn.PLAIN="PLAIN",Zn.QUOTE_DOUBLE="QUOTE_DOUBLE",Zn.QUOTE_SINGLE="QUOTE_SINGLE";const Cy="tag:yaml.org,2002:";function Sy(e,t,n){if(t){const r=n.filter(s=>s.tag===t),i=r.find(s=>!s.format)??r[0];if(!i)throw new Error(`Tag ${t} not found`);return i}return n.find(r=>{var i;return((i=r.identify)==null?void 0:i.call(r,e))&&!r.format})}function bo(e,t,n){var c,B,N;if(yo(e)&&(e=e.contents),Dr(e))return e;if(hr(e)){const ee=(B=(c=n.schema[Ts]).createNode)==null?void 0:B.call(c,n.schema,null,n);return ee.items.push(e),ee}(e instanceof String||e instanceof Number||e instanceof Boolean||typeof BigInt<"u"&&e instanceof BigInt)&&(e=e.valueOf());const{aliasDuplicateObjects:r,onAnchor:i,onTagObj:s,schema:a,sourceObjects:o}=n;let u;if(r&&e&&typeof e=="object"){if(u=o.get(e),u)return u.anchor||(u.anchor=i(e)),new Ac(u.anchor);u={anchor:null,node:null},o.set(e,u)}t!=null&&t.startsWith("!!")&&(t=Cy+t.slice(2));let l=Sy(e,t,a.tags);if(!l){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const ee=new Zn(e);return u&&(u.node=ee),ee}l=e instanceof Map?a[Ts]:Symbol.iterator in Object(e)?a[va]:a[Ts]}s&&(s(l),delete n.onTagObj);const C=l!=null&&l.createNode?l.createNode(n.schema,e,n):typeof((N=l==null?void 0:l.nodeClass)==null?void 0:N.from)=="function"?l.nodeClass.from(n.schema,e,n):new Zn(e);return t?C.tag=t:l.default||(C.tag=l.tag),u&&(u.node=C),C}function ou(e,t,n){let r=n;for(let i=t.length-1;i>=0;--i){const s=t[i];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const a=[];a[s]=r,r=a}else r=new Map([[s,r]])}return bo(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:e,sourceObjects:new Map})}const vo=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class uu extends Ec{constructor(t,n){super(t),Object.defineProperty(this,"schema",{value:n,configurable:!0,enumerable:!1,writable:!0})}clone(t){const n=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return t&&(n.schema=t),n.items=n.items.map(r=>Dr(r)||hr(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(vo(t))this.add(n);else{const[r,...i]=t,s=this.get(r,!0);if(Pr(s))s.addIn(i,n);else if(s===void 0&&this.schema)this.set(r,ou(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}deleteIn(t){const[n,...r]=t;if(r.length===0)return this.delete(n);const i=this.get(n,!0);if(Pr(i))return i.deleteIn(r);throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}getIn(t,n){const[r,...i]=t,s=this.get(r,!0);return i.length===0?!n&&Jn(s)?s.value:s:Pr(s)?s.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!hr(n))return!1;const r=n.value;return r==null||t&&Jn(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(t){const[n,...r]=t;if(r.length===0)return this.has(n);const i=this.get(n,!0);return Pr(i)?i.hasIn(r):!1}setIn(t,n){const[r,...i]=t;if(i.length===0)this.set(r,n);else{const s=this.get(r,!0);if(Pr(s))s.setIn(i,n);else if(s===void 0&&this.schema)this.set(r,ou(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}uu.maxFlowStringSingleLineLength=60;const xy=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function cs(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const ks=(e,t,n)=>e.endsWith(`
16
- `)?cs(n,t):n.includes(`
17
- `)?`
18
- `+cs(n,t):(e.endsWith(" ")?"":" ")+n,qh="flow",Cc="block",lu="quoted";function cu(e,t,n="flow",{indentAtStart:r,lineWidth:i=80,minContentWidth:s=20,onFold:a,onOverflow:o}={}){if(!i||i<0)return e;const u=Math.max(1+s,1+i-t.length);if(e.length<=u)return e;const l=[],C={};let c=i-t.length;typeof r=="number"&&(r>i-Math.max(2,s)?l.push(0):c=i-r);let B,N,ee=!1,ne=-1,O=-1,ae=-1;n===Cc&&(ne=Uh(e,ne),ne!==-1&&(c=ne+u));for(let Te;Te=e[ne+=1];){if(n===lu&&Te==="\\"){switch(O=ne,e[ne+1]){case"x":ne+=3;break;case"u":ne+=5;break;case"U":ne+=9;break;default:ne+=1}ae=ne}if(Te===`
19
- `)n===Cc&&(ne=Uh(e,ne)),c=ne+u,B=void 0;else{if(Te===" "&&N&&N!==" "&&N!==`
20
- `&&N!==" "){const Ge=e[ne+1];Ge&&Ge!==" "&&Ge!==`
21
- `&&Ge!==" "&&(B=ne)}if(ne>=c)if(B)l.push(B),c=B+u,B=void 0;else if(n===lu){for(;N===" "||N===" ";)N=Te,Te=e[ne+=1],ee=!0;const Ge=ne>ae+1?ne-2:O-1;if(C[Ge])return e;l.push(Ge),C[Ge]=!0,c=Ge+u,B=void 0}else ee=!0}N=Te}if(ee&&o&&o(),l.length===0)return e;a&&a();let we=e.slice(0,l[0]);for(let Te=0;Te<l.length;++Te){const Ge=l[Te],pe=l[Te+1]||e.length;Ge===0?we=`
22
- ${t}${e.slice(0,pe)}`:(n===lu&&C[Ge]&&(we+=`${e[Ge]}\\`),we+=`
23
- ${t}${e.slice(Ge+1,pe)}`)}return we}function Uh(e,t){let n=e[t+1];for(;n===" "||n===" ";){do n=e[t+=1];while(n&&n!==`
24
- `);n=e[t+1]}return t}const fu=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),pu=e=>/^(%|---|\.\.\.)/m.test(e);function wy(e,t,n){if(!t||t<0)return!1;const r=t-n,i=e.length;if(i<=r)return!1;for(let s=0,a=0;s<i;++s)if(e[s]===`
25
- `){if(s-a>r)return!0;if(a=s+1,i-a<=r)return!1}return!0}function Eo(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(pu(e)?" ":"");let a="",o=0;for(let u=0,l=n[u];l;l=n[++u])if(l===" "&&n[u+1]==="\\"&&n[u+2]==="n"&&(a+=n.slice(o,u)+"\\ ",u+=1,o=u,l="\\"),l==="\\")switch(n[u+1]){case"u":{a+=n.slice(o,u);const C=n.substr(u+2,4);switch(C){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:C.substr(0,2)==="00"?a+="\\x"+C.substr(2):a+=n.substr(u,6)}u+=5,o=u+1}break;case"n":if(r||n[u+2]==='"'||n.length<i)u+=1;else{for(a+=n.slice(o,u)+`
26
-
27
- `;n[u+2]==="\\"&&n[u+3]==="n"&&n[u+4]!=='"';)a+=`
28
- `,u+=2;a+=s,n[u+2]===" "&&(a+="\\"),u+=1,o=u+1}break;default:u+=1}return a=o?a+n.slice(o):n,r?a:cu(a,s,lu,fu(t,!1))}function Sc(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
29
- `)||/[ \t]\n|\n[ \t]/.test(e))return Eo(e,t);const n=t.indent||(pu(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
30
- ${n}`)+"'";return t.implicitKey?r:cu(r,n,qh,fu(t,!1))}function Ca(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=Eo;else{const i=e.includes('"'),s=e.includes("'");i&&!s?r=Sc:s&&!i?r=Eo:r=n?Sc:Eo}return r(e,t)}let xc;try{xc=new RegExp(`(^|(?<!
31
- ))
32
- +(?!
33
- |$)`,"g")}catch{xc=/\n+(?!\n|$)/g}function du({comment:e,type:t,value:n},r,i,s){const{blockQuote:a,commentString:o,lineWidth:u}=r.options;if(!a||/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return Ca(n,r);const l=r.indent||(r.forceBlockIndent||pu(n)?" ":""),C=a==="literal"?!0:a==="folded"||t===Zn.BLOCK_FOLDED?!1:t===Zn.BLOCK_LITERAL?!0:!wy(n,u,l.length);if(!n)return C?`|
34
- `:`>
35
- `;let c,B;for(B=n.length;B>0;--B){const Se=n[B-1];if(Se!==`
36
- `&&Se!==" "&&Se!==" ")break}let N=n.substring(B);const ee=N.indexOf(`
37
- `);ee===-1?c="-":n===N||ee!==N.length-1?(c="+",s&&s()):c="",N&&(n=n.slice(0,-N.length),N[N.length-1]===`
38
- `&&(N=N.slice(0,-1)),N=N.replace(xc,`$&${l}`));let ne=!1,O,ae=-1;for(O=0;O<n.length;++O){const Se=n[O];if(Se===" ")ne=!0;else if(Se===`
39
- `)ae=O;else break}let we=n.substring(0,ae<O?ae+1:O);we&&(n=n.substring(we.length),we=we.replace(/\n+/g,`$&${l}`));let Ge=(C?"|":">")+(ne?l?"2":"1":"")+c;if(e&&(Ge+=" "+o(e.replace(/ ?[\r\n]+/g," ")),i&&i()),C)return n=n.replace(/\n+/g,`$&${l}`),`${Ge}
40
- ${l}${we}${n}${N}`;n=n.replace(/\n+/g,`
41
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`);const pe=cu(`${we}${n}${N}`,l,Cc,fu(r,!0));return`${Ge}
42
- ${l}${pe}`}function Fy(e,t,n,r){const{type:i,value:s}=e,{actualString:a,implicitKey:o,indent:u,indentStep:l,inFlow:C}=t;if(o&&s.includes(`
43
- `)||C&&/[[\]{},]/.test(s))return Ca(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return o||C||!s.includes(`
44
- `)?Ca(s,t):du(e,t,n,r);if(!o&&!C&&i!==Zn.PLAIN&&s.includes(`
45
- `))return du(e,t,n,r);if(pu(s)){if(u==="")return t.forceBlockIndent=!0,du(e,t,n,r);if(o&&u===l)return Ca(s,t)}const c=s.replace(/\n+/g,`$&
46
- ${u}`);if(a){const B=ne=>{var O;return ne.default&&ne.tag!=="tag:yaml.org,2002:str"&&((O=ne.test)==null?void 0:O.test(c))},{compat:N,tags:ee}=t.doc.schema;if(ee.some(B)||N!=null&&N.some(B))return Ca(s,t)}return o?c:cu(c,u,qh,fu(t,!1))}function wc(e,t,n,r){const{implicitKey:i,inFlow:s}=t,a=typeof e.value=="string"?e:Object.assign({},e,{value:String(e.value)});let{type:o}=e;o!==Zn.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(a.value)&&(o=Zn.QUOTE_DOUBLE);const u=C=>{switch(C){case Zn.BLOCK_FOLDED:case Zn.BLOCK_LITERAL:return i||s?Ca(a.value,t):du(a,t,n,r);case Zn.QUOTE_DOUBLE:return Eo(a.value,t);case Zn.QUOTE_SINGLE:return Sc(a.value,t);case Zn.PLAIN:return Fy(a,t,n,r);default:return null}};let l=u(o);if(l===null){const{defaultKeyType:C,defaultStringType:c}=t.options,B=i&&C||c;if(l=u(B),l===null)throw new Error(`Unsupported default string type ${B}`)}return l}function Wh(e,t){const n=Object.assign({blockQuote:!0,commentString:xy,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},e.schema.toStringOptions,t);let r;switch(n.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null}return{anchors:new Set,doc:e,flowCollectionPadding:n.flowCollectionPadding?" ":"",indent:"",indentStep:typeof n.indent=="number"?" ".repeat(n.indent):" ",inFlow:r,options:n}}function Ny(e,t){var i;if(t.tag){const s=e.filter(a=>a.tag===t.tag);if(s.length>0)return s.find(a=>a.format===t.format)??s[0]}let n,r;if(Jn(t)){r=t.value;const s=e.filter(a=>{var o;return(o=a.identify)==null?void 0:o.call(a,r)});n=s.find(a=>a.format===t.format)??s.find(a=>!a.format)}else r=t,n=e.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!n){const s=((i=r==null?void 0:r.constructor)==null?void 0:i.name)??typeof r;throw new Error(`Tag not resolved for ${s} value`)}return n}function _y(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],s=(Jn(e)||Pr(e))&&e.anchor;s&&jh(s)&&(n.add(s),i.push(`&${s}`));const a=e.tag?e.tag:t.default?null:t.tag;return a&&i.push(r.directives.tagString(a)),i.join(" ")}function Sa(e,t,n,r){var u;if(hr(e))return e.toString(t,n,r);if(ts(e)){if(t.doc.directives)return e.toString(t);if((u=t.resolvedAliases)!=null&&u.has(e))throw new TypeError("Cannot stringify circular structure without alias nodes");t.resolvedAliases?t.resolvedAliases.add(e):t.resolvedAliases=new Set([e]),e=e.resolve(t.doc)}let i;const s=Dr(e)?e:t.doc.createNode(e,{onTagObj:l=>i=l});i||(i=Ny(t.doc.schema.tags,s));const a=_y(s,i,t);a.length>0&&(t.indentAtStart=(t.indentAtStart??0)+a.length+1);const o=typeof i.stringify=="function"?i.stringify(s,t,n,r):Jn(s)?wc(s,t,n,r):s.toString(t,n,r);return a?Jn(s)||o[0]==="{"||o[0]==="["?`${a} ${o}`:`${a}
47
- ${t.indent}${o}`:o}function Ty({key:e,value:t},n,r,i){const{allNullValues:s,doc:a,indent:o,indentStep:u,options:{commentString:l,indentSeq:C,simpleKeys:c}}=n;let B=Dr(e)&&e.comment||null;if(c){if(B)throw new Error("With simple keys, key nodes cannot have comments");if(Pr(e)){const Qe="With simple keys, collection cannot be used as a key value";throw new Error(Qe)}}let N=!c&&(!e||B&&t==null&&!n.inFlow||Pr(e)||(Jn(e)?e.type===Zn.BLOCK_FOLDED||e.type===Zn.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!N&&(c||!s),indent:o+u});let ee=!1,ne=!1,O=Sa(e,n,()=>ee=!0,()=>ne=!0);if(!N&&!n.inFlow&&O.length>1024){if(c)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");N=!0}if(n.inFlow){if(s||t==null)return ee&&r&&r(),O===""?"?":N?`? ${O}`:O}else if(s&&!c||t==null&&N)return O=`? ${O}`,B&&!ee?O+=ks(O,n.indent,l(B)):ne&&i&&i(),O;ee&&(B=null),N?(B&&(O+=ks(O,n.indent,l(B))),O=`? ${O}
48
- ${o}:`):(O=`${O}:`,B&&(O+=ks(O,n.indent,l(B))));let ae,we,Te;Dr(t)?(ae=!!t.spaceBefore,we=t.commentBefore,Te=t.comment):(ae=!1,we=null,Te=null,t&&typeof t=="object"&&(t=a.createNode(t))),n.implicitKey=!1,!N&&!B&&Jn(t)&&(n.indentAtStart=O.length+1),ne=!1,!C&&u.length>=2&&!n.inFlow&&!N&&Mr(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let Ge=!1;const pe=Sa(t,n,()=>Ge=!0,()=>ne=!0);let Se=" ";if(B||ae||we){if(Se=ae?`
49
- `:"",we){const Qe=l(we);Se+=`
50
- ${cs(Qe,n.indent)}`}pe===""&&!n.inFlow?Se===`
51
- `&&(Se=`
52
-
53
- `):Se+=`
54
- ${n.indent}`}else if(!N&&Pr(t)){const Qe=pe[0],mt=pe.indexOf(`
55
- `),Ae=mt!==-1,Ne=n.inFlow??t.flow??t.items.length===0;if(Ae||!Ne){let ze=!1;if(Ae&&(Qe==="&"||Qe==="!")){let qe=pe.indexOf(" ");Qe==="&"&&qe!==-1&&qe<mt&&pe[qe+1]==="!"&&(qe=pe.indexOf(" ",qe+1)),(qe===-1||mt<qe)&&(ze=!0)}ze||(Se=`
56
- ${n.indent}`)}}else(pe===""||pe[0]===`
57
- `)&&(Se="");return O+=Se+pe,n.inFlow?Ge&&r&&r():Te&&!Ge?O+=ks(O,n.indent,l(Te)):ne&&i&&i(),O}function Gh(e,t){(e==="debug"||e==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const Jh="<<";function Yh(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&ky(n))if(r=ts(r)?r.resolve(e.doc):r,Mr(r))for(const i of r.items)Fc(e,t,i);else if(Array.isArray(r))for(const i of r)Fc(e,t,i);else Fc(e,t,r);else{const i=Pi(n,"",e);if(t instanceof Map)t.set(i,Pi(r,i,e));else if(t instanceof Set)t.add(i);else{const s=Ly(n,i,e),a=Pi(r,s,e);s in t?Object.defineProperty(t,s,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[s]=a}}return t}const ky=e=>e===Jh||Jn(e)&&e.value===Jh&&(!e.type||e.type===Zn.PLAIN);function Fc(e,t,n){const r=e&&ts(n)?n.resolve(e.doc):n;if(!Br(r))throw new Error("Merge sources must be maps or map aliases");const i=r.toJSON(null,e,Map);for(const[s,a]of i)t instanceof Map?t.has(s)||t.set(s,a):t instanceof Set?t.add(s):Object.prototype.hasOwnProperty.call(t,s)||Object.defineProperty(t,s,{value:a,writable:!0,enumerable:!0,configurable:!0});return t}function Ly(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Dr(e)&&(n!=null&&n.doc)){const r=Wh(n.doc,{});r.anchors=new Set;for(const s of n.anchors.keys())r.anchors.add(s.anchor);r.inFlow=!0,r.inStringifyKey=!0;const i=e.toString(r);if(!n.mapKeyWarned){let s=JSON.stringify(i);s.length>40&&(s=s.substring(0,36)+'..."'),Gh(n.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),n.mapKeyWarned=!0}return i}return JSON.stringify(t)}function Nc(e,t,n){const r=bo(e,void 0,n),i=bo(t,void 0,n);return new oi(r,i)}class oi{constructor(t,n=null){Object.defineProperty(this,Li,{value:Oh}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return Dr(n)&&(n=n.clone(t)),Dr(r)&&(r=r.clone(t)),new oi(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return Yh(n,r,this)}toString(t,n,r){return t!=null&&t.doc?Ty(this,t,n,r):JSON.stringify(this)}}function Hh(e,t,n){return(t.inFlow??e.flow?By:Py)(e,t,n)}function Py({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:s,onChompKeep:a,onComment:o}){const{indent:u,options:{commentString:l}}=n,C=Object.assign({},n,{indent:s,type:null});let c=!1;const B=[];for(let ee=0;ee<t.length;++ee){const ne=t[ee];let O=null;if(Dr(ne))!c&&ne.spaceBefore&&B.push(""),hu(n,B,ne.commentBefore,c),ne.comment&&(O=ne.comment);else if(hr(ne)){const we=Dr(ne.key)?ne.key:null;we&&(!c&&we.spaceBefore&&B.push(""),hu(n,B,we.commentBefore,c))}c=!1;let ae=Sa(ne,C,()=>O=null,()=>c=!0);O&&(ae+=ks(ae,s,l(O))),c&&O&&(c=!1),B.push(r+ae)}let N;if(B.length===0)N=i.start+i.end;else{N=B[0];for(let ee=1;ee<B.length;++ee){const ne=B[ee];N+=ne?`
58
- ${u}${ne}`:`
59
- `}}return e?(N+=`
60
- `+cs(l(e),u),o&&o()):c&&a&&a(),N}function By({comment:e,items:t},n,{flowChars:r,itemIndent:i,onComment:s}){const{indent:a,indentStep:o,flowCollectionPadding:u,options:{commentString:l}}=n;i+=o;const C=Object.assign({},n,{indent:i,inFlow:!0,type:null});let c=!1,B=0;const N=[];for(let ae=0;ae<t.length;++ae){const we=t[ae];let Te=null;if(Dr(we))we.spaceBefore&&N.push(""),hu(n,N,we.commentBefore,!1),we.comment&&(Te=we.comment);else if(hr(we)){const pe=Dr(we.key)?we.key:null;pe&&(pe.spaceBefore&&N.push(""),hu(n,N,pe.commentBefore,!1),pe.comment&&(c=!0));const Se=Dr(we.value)?we.value:null;Se?(Se.comment&&(Te=Se.comment),Se.commentBefore&&(c=!0)):we.value==null&&(pe!=null&&pe.comment)&&(Te=pe.comment)}Te&&(c=!0);let Ge=Sa(we,C,()=>Te=null);ae<t.length-1&&(Ge+=","),Te&&(Ge+=ks(Ge,i,l(Te))),!c&&(N.length>B||Ge.includes(`
61
- `))&&(c=!0),N.push(Ge),B=N.length}let ee;const{start:ne,end:O}=r;if(N.length===0)ee=ne+O;else if(c||(c=N.reduce((we,Te)=>we+Te.length+2,2)>uu.maxFlowStringSingleLineLength),c){ee=ne;for(const ae of N)ee+=ae?`
62
- ${o}${a}${ae}`:`
63
- `;ee+=`
64
- ${a}${O}`}else ee=`${ne}${u}${N.join(" ")}${u}${O}`;return e&&(ee+=ks(ee,a,l(e)),s&&s()),ee}function hu({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const s=cs(t(r),e);n.push(s.trimStart())}}function Vs(e,t){const n=Jn(t)?t.value:t;for(const r of e)if(hr(r)&&(r.key===t||r.key===n||Jn(r.key)&&r.key.value===n))return r}class Bi extends uu{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Ts,t),this.items=[]}static from(t,n,r){const{keepUndefined:i,replacer:s}=r,a=new this(t),o=(u,l)=>{if(typeof s=="function")l=s.call(n,u,l);else if(Array.isArray(s)&&!s.includes(u))return;(l!==void 0||i)&&a.items.push(Nc(u,l,r))};if(n instanceof Map)for(const[u,l]of n)o(u,l);else if(n&&typeof n=="object")for(const u of Object.keys(n))o(u,n[u]);return typeof t.sortMapEntries=="function"&&a.items.sort(t.sortMapEntries),a}add(t,n){var a;let r;hr(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new oi(t,t==null?void 0:t.value):r=new oi(t.key,t.value);const i=Vs(this.items,r.key),s=(a=this.schema)==null?void 0:a.sortMapEntries;if(i){if(!n)throw new Error(`Key ${r.key} already set`);Jn(i.value)&&Vh(r.value)?i.value.value=r.value:i.value=r.value}else if(s){const o=this.items.findIndex(u=>s(r,u)<0);o===-1?this.items.push(r):this.items.splice(o,0,r)}else this.items.push(r)}delete(t){const n=Vs(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const r=Vs(this.items,t),i=r==null?void 0:r.value;return(!n&&Jn(i)?i.value:i)??void 0}has(t){return!!Vs(this.items,t)}set(t,n){this.add(new oi(t,n),!0)}toJSON(t,n,r){const i=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(i);for(const s of this.items)Yh(n,i,s);return i}toString(t,n,r){if(!t)return JSON.stringify(this);for(const i of this.items)if(!hr(i))throw new Error(`Map items must all be pairs; found ${JSON.stringify(i)} instead`);return!t.allNullValues&&this.hasAllNullValues(!1)&&(t=Object.assign({},t,{allNullValues:!0})),Hh(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const xa={collection:"map",default:!0,nodeClass:Bi,tag:"tag:yaml.org,2002:map",resolve(e,t){return Br(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Bi.from(e,t,n)};class qs extends uu{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(va,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=mu(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=mu(t);if(typeof r!="number")return;const i=this.items[r];return!n&&Jn(i)?i.value:i}has(t){const n=mu(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=mu(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const i=this.items[r];Jn(i)&&Vh(n)?i.value=n:this.items[r]=n}toJSON(t,n){const r=[];n!=null&&n.onCreate&&n.onCreate(r);let i=0;for(const s of this.items)r.push(Pi(s,String(i++),n));return r}toString(t,n,r){return t?Hh(this,t,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(t.indent||"")+" ",onChompKeep:r,onComment:n}):JSON.stringify(this)}static from(t,n,r){const{replacer:i}=r,s=new this(t);if(n&&Symbol.iterator in Object(n)){let a=0;for(let o of n){if(typeof i=="function"){const u=n instanceof Set?o:String(a++);o=i.call(n,u,o)}s.items.push(bo(o,void 0,r))}}return s}}function mu(e){let t=Jn(e)?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),typeof t=="number"&&Number.isInteger(t)&&t>=0?t:null}const wa={collection:"seq",default:!0,nodeClass:qs,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Mr(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>qs.from(e,t,n)},gu={identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify(e,t,n,r){return t=Object.assign({actualString:!0},t),wc(e,t,n,r)}},yu={identify:e=>e==null,createNode:()=>new Zn(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Zn(null),stringify:({source:e},t)=>typeof e=="string"&&yu.test.test(e)?e:t.options.nullStr},_c={identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:e=>new Zn(e[0]==="t"||e[0]==="T"),stringify({source:e,value:t},n){if(e&&_c.test.test(e)){const r=e[0]==="t"||e[0]==="T";if(t===r)return e}return t?n.options.trueStr:n.options.falseStr}};function Ui({format:e,minFractionDigits:t,tag:n,value:r}){if(typeof r=="bigint")return String(r);const i=typeof r=="number"?r:Number(r);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";let s=JSON.stringify(r);if(!e&&t&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let a=s.indexOf(".");a<0&&(a=s.length,s+=".");let o=t-(s.length-a-1);for(;o-- >0;)s+="0"}return s}const zh={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Ui},Qh={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Ui(e)}},Xh={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(e){const t=new Zn(parseFloat(e)),n=e.indexOf(".");return n!==-1&&e[e.length-1]==="0"&&(t.minFractionDigits=e.length-n-1),t},stringify:Ui},Du=e=>typeof e=="bigint"||Number.isInteger(e),Tc=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function Kh(e,t,n){const{value:r}=e;return Du(r)&&r>=0?n+r.toString(t):Ui(e)}const Zh={identify:e=>Du(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Tc(e,2,8,n),stringify:e=>Kh(e,8,"0o")},e0={identify:Du,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Tc(e,0,10,n),stringify:Ui},t0={identify:e=>Du(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Tc(e,2,16,n),stringify:e=>Kh(e,16,"0x")},My=[xa,wa,gu,yu,_c,Zh,e0,t0,zh,Qh,Xh];function n0(e){return typeof e=="bigint"||Number.isInteger(e)}const bu=({value:e})=>JSON.stringify(e),Iy=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:bu},{identify:e=>e==null,createNode:()=>new Zn(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:bu},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:bu},{identify:n0,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(e,t,{intAsBigInt:n})=>n?BigInt(e):parseInt(e,10),stringify:({value:e})=>n0(e)?e.toString():JSON.stringify(e)},{identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:e=>parseFloat(e),stringify:bu}],Oy={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},jy=[xa,wa].concat(Iy,Oy),kc={identify:e=>e instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(e,t){if(typeof Buffer=="function")return Buffer.from(e,"base64");if(typeof atob=="function"){const n=atob(e.replace(/[\n\r]/g,"")),r=new Uint8Array(n.length);for(let i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}else return t("This environment does not support reading binary tags; either Buffer or atob is required"),e},stringify({comment:e,type:t,value:n},r,i,s){const a=n;let o;if(typeof Buffer=="function")o=a instanceof Buffer?a.toString("base64"):Buffer.from(a.buffer).toString("base64");else if(typeof btoa=="function"){let u="";for(let l=0;l<a.length;++l)u+=String.fromCharCode(a[l]);o=btoa(u)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(t||(t=Zn.BLOCK_LITERAL),t!==Zn.QUOTE_DOUBLE){const u=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),l=Math.ceil(o.length/u),C=new Array(l);for(let c=0,B=0;c<l;++c,B+=u)C[c]=o.substr(B,u);o=C.join(t===Zn.BLOCK_LITERAL?`
65
- `:" ")}return wc({comment:e,type:t,value:o},r,i,s)}};function r0(e,t){if(Mr(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!hr(r)){if(Br(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const i=r.items[0]||new oi(new Zn(null));if(r.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${r.commentBefore}
66
- ${i.key.commentBefore}`:r.commentBefore),r.comment){const s=i.value??i.key;s.comment=s.comment?`${r.comment}
67
- ${s.comment}`:r.comment}r=i}e.items[n]=hr(r)?r:new oi(r)}}else t("Expected a sequence for this tag");return e}function i0(e,t,n){const{replacer:r}=n,i=new qs(e);i.tag="tag:yaml.org,2002:pairs";let s=0;if(t&&Symbol.iterator in Object(t))for(let a of t){typeof r=="function"&&(a=r.call(t,String(s++),a));let o,u;if(Array.isArray(a))if(a.length===2)o=a[0],u=a[1];else throw new TypeError(`Expected [key, value] tuple: ${a}`);else if(a&&a instanceof Object){const l=Object.keys(a);if(l.length===1)o=l[0],u=a[o];else throw new TypeError(`Expected tuple with one key, not ${l.length} keys`)}else o=a;i.items.push(Nc(o,u,n))}return i}const Lc={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:r0,createNode:i0};class Fa extends qs{constructor(){super(),this.add=Bi.prototype.add.bind(this),this.delete=Bi.prototype.delete.bind(this),this.get=Bi.prototype.get.bind(this),this.has=Bi.prototype.has.bind(this),this.set=Bi.prototype.set.bind(this),this.tag=Fa.tag}toJSON(t,n){if(!n)return super.toJSON(t);const r=new Map;n!=null&&n.onCreate&&n.onCreate(r);for(const i of this.items){let s,a;if(hr(i)?(s=Pi(i.key,"",n),a=Pi(i.value,s,n)):s=Pi(i,"",n),r.has(s))throw new Error("Ordered maps must not include duplicate keys");r.set(s,a)}return r}static from(t,n,r){const i=i0(t,n,r),s=new this;return s.items=i.items,s}}Fa.tag="tag:yaml.org,2002:omap";const Pc={collection:"seq",identify:e=>e instanceof Map,nodeClass:Fa,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=r0(e,t),r=[];for(const{key:i}of n.items)Jn(i)&&(r.includes(i.value)?t(`Ordered maps must not include duplicate keys: ${i.value}`):r.push(i.value));return Object.assign(new Fa,n)},createNode:(e,t,n)=>Fa.from(e,t,n)};function s0({value:e,source:t},n){return t&&(e?a0:o0).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const a0={identify:e=>e===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Zn(!0),stringify:s0},o0={identify:e=>e===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new Zn(!1),stringify:s0},Ry={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:e=>e.slice(-3).toLowerCase()==="nan"?NaN:e[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Ui},$y={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:e=>parseFloat(e.replace(/_/g,"")),stringify(e){const t=Number(e.value);return isFinite(t)?t.toExponential():Ui(e)}},Vy={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(e){const t=new Zn(parseFloat(e.replace(/_/g,""))),n=e.indexOf(".");if(n!==-1){const r=e.substring(n+1).replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length)}return t},stringify:Ui},Ao=e=>typeof e=="bigint"||Number.isInteger(e);function vu(e,t,n,{intAsBigInt:r}){const i=e[0];if((i==="-"||i==="+")&&(t+=1),e=e.substring(t).replace(/_/g,""),r){switch(n){case 2:e=`0b${e}`;break;case 8:e=`0o${e}`;break;case 16:e=`0x${e}`;break}const a=BigInt(e);return i==="-"?BigInt(-1)*a:a}const s=parseInt(e,n);return i==="-"?-1*s:s}function Bc(e,t,n){const{value:r}=e;if(Ao(r)){const i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return Ui(e)}const qy={identify:Ao,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>vu(e,2,2,n),stringify:e=>Bc(e,2,"0b")},Uy={identify:Ao,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>vu(e,1,8,n),stringify:e=>Bc(e,8,"0")},Wy={identify:Ao,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>vu(e,0,10,n),stringify:Ui},Gy={identify:Ao,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>vu(e,2,16,n),stringify:e=>Bc(e,16,"0x")};class Na extends Bi{constructor(t){super(t),this.tag=Na.tag}add(t){let n;hr(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new oi(t.key,null):n=new oi(t,null),Vs(this.items,n.key)||this.items.push(n)}get(t,n){const r=Vs(this.items,t);return!n&&hr(r)?Jn(r.key)?r.key.value:r.key:r}set(t,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);const r=Vs(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new oi(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:i}=r,s=new this(t);if(n&&Symbol.iterator in Object(n))for(let a of n)typeof i=="function"&&(a=i.call(n,a,a)),s.items.push(Nc(a,null,r));return s}}Na.tag="tag:yaml.org,2002:set";const Mc={collection:"map",identify:e=>e instanceof Set,nodeClass:Na,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>Na.from(e,t,n),resolve(e,t){if(Br(e)){if(e.hasAllNullValues(!0))return Object.assign(new Na,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Ic(e,t){const n=e[0],r=n==="-"||n==="+"?e.substring(1):e,i=a=>t?BigInt(a):Number(a),s=r.replace(/_/g,"").split(":").reduce((a,o)=>a*i(60)+i(o),i(0));return n==="-"?i(-1)*s:s}function u0(e){let{value:t}=e,n=a=>a;if(typeof t=="bigint")n=a=>BigInt(a);else if(isNaN(t)||!isFinite(t))return Ui(e);let r="";t<0&&(r="-",t*=n(-1));const i=n(60),s=[t%i];return t<60?s.unshift(0):(t=(t-s[0])/i,s.unshift(t%i),t>=60&&(t=(t-s[0])/i,s.unshift(t))),r+s.map(a=>String(a).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const l0={identify:e=>typeof e=="bigint"||Number.isInteger(e),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(e,t,{intAsBigInt:n})=>Ic(e,n),stringify:u0},c0={identify:e=>typeof e=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:e=>Ic(e,!1),stringify:u0},Eu={identify:e=>e instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(e){const t=e.match(Eu.test);if(!t)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,n,r,i,s,a,o]=t.map(Number),u=t[7]?Number((t[7]+"00").substr(1,3)):0;let l=Date.UTC(n,r-1,i,s||0,a||0,o||0,u);const C=t[8];if(C&&C!=="Z"){let c=Ic(C,!1);Math.abs(c)<30&&(c*=60),l-=6e4*c}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},f0=[xa,wa,gu,yu,a0,o0,qy,Uy,Wy,Gy,Ry,$y,Vy,kc,Pc,Lc,Mc,l0,c0,Eu],p0=new Map([["core",My],["failsafe",[xa,wa,gu]],["json",jy],["yaml11",f0],["yaml-1.1",f0]]),d0={binary:kc,bool:_c,float:Xh,floatExp:Qh,floatNaN:zh,floatTime:c0,int:e0,intHex:t0,intOct:Zh,intTime:l0,map:xa,null:yu,omap:Pc,pairs:Lc,seq:wa,set:Mc,timestamp:Eu},Jy={"tag:yaml.org,2002:binary":kc,"tag:yaml.org,2002:omap":Pc,"tag:yaml.org,2002:pairs":Lc,"tag:yaml.org,2002:set":Mc,"tag:yaml.org,2002:timestamp":Eu};function Oc(e,t){let n=p0.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(p0.keys()).filter(i=>i!=="yaml11").map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown schema "${t}"; use one of ${r} or define customTags array`)}if(Array.isArray(e))for(const r of e)n=n.concat(r);else typeof e=="function"&&(n=e(n.slice()));return n.map(r=>{if(typeof r!="string")return r;const i=d0[r];if(i)return i;const s=Object.keys(d0).map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${s}`)})}const Yy=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class jc{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:i,schema:s,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(t)?Oc(t,"compat"):t?Oc(null,t):null,this.merge=!!r,this.name=typeof s=="string"&&s||"core",this.knownTags=i?Jy:{},this.tags=Oc(n,this.name),this.toStringOptions=o??null,Object.defineProperty(this,Ts,{value:xa}),Object.defineProperty(this,ls,{value:gu}),Object.defineProperty(this,va,{value:wa}),this.sortMapEntries=typeof a=="function"?a:a===!0?Yy:null}clone(){const t=Object.create(jc.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function Hy(e,t){var u;const n=[];let r=t.directives===!0;if(t.directives!==!1&&e.directives){const l=e.directives.toString(e);l?(n.push(l),r=!0):e.directives.docStart&&(r=!0)}r&&n.push("---");const i=Wh(e,t),{commentString:s}=i.options;if(e.commentBefore){n.length!==1&&n.unshift("");const l=s(e.commentBefore);n.unshift(cs(l,""))}let a=!1,o=null;if(e.contents){if(Dr(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const c=s(e.contents.commentBefore);n.push(cs(c,""))}i.forceBlockIndent=!!e.comment,o=e.contents.comment}const l=o?void 0:()=>a=!0;let C=Sa(e.contents,i,()=>o=null,l);o&&(C+=ks(C,"",s(o))),(C[0]==="|"||C[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${C}`:n.push(C)}else n.push(Sa(e.contents,i));if((u=e.directives)!=null&&u.docEnd)if(e.comment){const l=s(e.comment);l.includes(`
68
- `)?(n.push("..."),n.push(cs(l,""))):n.push(`... ${l}`)}else n.push("...");else{let l=e.comment;l&&a&&(l=l.replace(/^\n+/,"")),l&&((!a||o)&&n[n.length-1]!==""&&n.push(""),n.push(cs(s(l),"")))}return n.join(`
69
- `)+`
70
- `}class Au{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Li,{value:vc});let i=null;typeof n=="function"||Array.isArray(n)?i=n:r===void 0&&n&&(r=n,n=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=s;let{version:a}=s;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new ai({version:a}),this.setSchema(a,r),this.contents=t===void 0?null:this.createNode(t,i,r)}clone(){const t=Object.create(Au.prototype,{[Li]:{value:vc}});return t.commentBefore=this.commentBefore,t.comment=this.comment,t.errors=this.errors.slice(),t.warnings=this.warnings.slice(),t.options=Object.assign({},this.options),this.directives&&(t.directives=this.directives.clone()),t.schema=this.schema.clone(),t.contents=Dr(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){_a(this.contents)&&this.contents.add(t)}addIn(t,n){_a(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=Rh(this);t.anchor=!n||r.has(n)?$h(n||"a",r):n}return new Ac(t.anchor)}createNode(t,n,r){let i;if(typeof n=="function")t=n.call({"":t},"",t),i=n;else if(Array.isArray(n)){const O=we=>typeof we=="number"||we instanceof String||we instanceof Number,ae=n.filter(O).map(String);ae.length>0&&(n=n.concat(ae)),i=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:s,anchorPrefix:a,flow:o,keepUndefined:u,onTagObj:l,tag:C}=r??{},{onAnchor:c,setAnchors:B,sourceObjects:N}=Ay(this,a||"a"),ee={aliasDuplicateObjects:s??!0,keepUndefined:u??!1,onAnchor:c,onTagObj:l,replacer:i,schema:this.schema,sourceObjects:N},ne=bo(t,C,ee);return o&&Pr(ne)&&(ne.flow=!0),B(),ne}createPair(t,n,r={}){const i=this.createNode(t,null,r),s=this.createNode(n,null,r);return new oi(i,s)}delete(t){return _a(this.contents)?this.contents.delete(t):!1}deleteIn(t){return vo(t)?this.contents==null?!1:(this.contents=null,!0):_a(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Pr(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return vo(t)?!n&&Jn(this.contents)?this.contents.value:this.contents:Pr(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Pr(this.contents)?this.contents.has(t):!1}hasIn(t){return vo(t)?this.contents!==void 0:Pr(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=ou(this.schema,[t],n):_a(this.contents)&&this.contents.set(t,n)}setIn(t,n){vo(t)?this.contents=n:this.contents==null?this.contents=ou(this.schema,Array.from(t),n):_a(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new ai({version:"1.1"}),r={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new ai({version:t}),r={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const i=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new jc(Object.assign(r,n));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:t,jsonArg:n,mapAsMap:r,maxAliasCount:i,onAnchor:s,reviver:a}={}){const o={anchors:new Map,doc:this,keep:!t,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof i=="number"?i:100},u=Pi(this.contents,n??"",o);if(typeof s=="function")for(const{count:l,res:C}of o.anchors.values())s(C,l);return typeof a=="function"?Aa(a,{"":u},"",u):u}toJSON(t,n){return this.toJS({json:!0,jsonArg:t,mapAsMap:!1,onAnchor:n})}toString(t={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in t&&(!Number.isInteger(t.indent)||Number(t.indent)<=0)){const n=JSON.stringify(t.indent);throw new Error(`"indent" option must be a positive integer, not ${n}`)}return Hy(this,t)}}function _a(e){if(Pr(e))return!0;throw new Error("Expected a YAML collection as document contents")}class h0 extends Error{constructor(t,n,r,i){super(),this.name=t,this.code=r,this.message=i,this.pos=n}}class Co extends h0{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class zy extends h0{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const m0=(e,t)=>n=>{if(n.pos[0]===-1)return;n.linePos=n.pos.map(o=>t.linePos(o));const{line:r,col:i}=n.linePos[0];n.message+=` at line ${r}, column ${i}`;let s=i-1,a=e.substring(t.lineStarts[r-1],t.lineStarts[r]).replace(/[\n\r]+$/,"");if(s>=60&&a.length>80){const o=Math.min(s-39,a.length-79);a="…"+a.substring(o),s-=o-1}if(a.length>80&&(a=a.substring(0,79)+"…"),r>1&&/^ *$/.test(a.substring(0,s))){let o=e.substring(t.lineStarts[r-2],t.lineStarts[r-1]);o.length>80&&(o=o.substring(0,79)+`…
71
- `),a=o+a}if(/[^ ]/.test(a)){let o=1;const u=n.linePos[1];u&&u.line===r&&u.col>i&&(o=Math.max(1,Math.min(u.col-i,80-s)));const l=" ".repeat(s)+"^".repeat(o);n.message+=`:
72
-
73
- ${a}
74
- ${l}
75
- `}};function Ta(e,{flow:t,indicator:n,next:r,offset:i,onError:s,startOnNewline:a}){let o=!1,u=a,l=a,C="",c="",B=!1,N=!1,ee=!1,ne=null,O=null,ae=null,we=null,Te=null;for(const Se of e)switch(ee&&(Se.type!=="space"&&Se.type!=="newline"&&Se.type!=="comma"&&s(Se.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),ee=!1),Se.type){case"space":!t&&u&&n!=="doc-start"&&Se.source[0]===" "&&s(Se,"TAB_AS_INDENT","Tabs are not allowed as indentation"),l=!0;break;case"comment":{l||s(Se,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const Qe=Se.source.substring(1)||" ";C?C+=c+Qe:C=Qe,c="",u=!1;break}case"newline":u?C?C+=Se.source:o=!0:c+=Se.source,u=!0,B=!0,(ne||O)&&(N=!0),l=!0;break;case"anchor":ne&&s(Se,"MULTIPLE_ANCHORS","A node can have at most one anchor"),Se.source.endsWith(":")&&s(Se.offset+Se.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),ne=Se,Te===null&&(Te=Se.offset),u=!1,l=!1,ee=!0;break;case"tag":{O&&s(Se,"MULTIPLE_TAGS","A node can have at most one tag"),O=Se,Te===null&&(Te=Se.offset),u=!1,l=!1,ee=!0;break}case n:(ne||O)&&s(Se,"BAD_PROP_ORDER",`Anchors and tags must be after the ${Se.source} indicator`),we&&s(Se,"UNEXPECTED_TOKEN",`Unexpected ${Se.source} in ${t??"collection"}`),we=Se,u=!1,l=!1;break;case"comma":if(t){ae&&s(Se,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),ae=Se,u=!1,l=!1;break}default:s(Se,"UNEXPECTED_TOKEN",`Unexpected ${Se.type} token`),u=!1,l=!1}const Ge=e[e.length-1],pe=Ge?Ge.offset+Ge.source.length:i;return ee&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&s(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:ae,found:we,spaceBefore:o,comment:C,hasNewline:B,hasNewlineAfterProp:N,anchor:ne,tag:O,end:pe,start:Te??pe}}function So(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
76
- `))return!0;if(e.end){for(const t of e.end)if(t.type==="newline")return!0}return!1;case"flow-collection":for(const t of e.items){for(const n of t.start)if(n.type==="newline")return!0;if(t.sep){for(const n of t.sep)if(n.type==="newline")return!0}if(So(t.key)||So(t.value))return!0}return!1;default:return!0}}function Rc(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&So(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function g0(e,t,n){const{uniqueKeys:r}=e.options;if(r===!1)return!1;const i=typeof r=="function"?r:(s,a)=>s===a||Jn(s)&&Jn(a)&&s.value===a.value&&!(s.value==="<<"&&e.schema.merge);return t.some(s=>i(s.key,n))}const y0="All mapping items must start at the same column";function Qy({composeNode:e,composeEmptyNode:t},n,r,i,s){var C;const a=(s==null?void 0:s.nodeClass)??Bi,o=new a(n.schema);n.atRoot&&(n.atRoot=!1);let u=r.offset,l=null;for(const c of r.items){const{start:B,key:N,sep:ee,value:ne}=c,O=Ta(B,{indicator:"explicit-key-ind",next:N??(ee==null?void 0:ee[0]),offset:u,onError:i,startOnNewline:!0}),ae=!O.found;if(ae){if(N&&(N.type==="block-seq"?i(u,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in N&&N.indent!==r.indent&&i(u,"BAD_INDENT",y0)),!O.anchor&&!O.tag&&!ee){l=O.end,O.comment&&(o.comment?o.comment+=`
77
- `+O.comment:o.comment=O.comment);continue}(O.hasNewlineAfterProp||So(N))&&i(N??B[B.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((C=O.found)==null?void 0:C.indent)!==r.indent&&i(u,"BAD_INDENT",y0);const we=O.end,Te=N?e(n,N,O,i):t(n,we,B,null,O,i);n.schema.compat&&Rc(r.indent,N,i),g0(n,o.items,Te)&&i(we,"DUPLICATE_KEY","Map keys must be unique");const Ge=Ta(ee??[],{indicator:"map-value-ind",next:ne,offset:Te.range[2],onError:i,startOnNewline:!N||N.type==="block-scalar"});if(u=Ge.end,Ge.found){ae&&((ne==null?void 0:ne.type)==="block-map"&&!Ge.hasNewline&&i(u,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&O.start<Ge.found.offset-1024&&i(Te.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const pe=ne?e(n,ne,Ge,i):t(n,u,ee,null,Ge,i);n.schema.compat&&Rc(r.indent,ne,i),u=pe.range[2];const Se=new oi(Te,pe);n.options.keepSourceTokens&&(Se.srcToken=c),o.items.push(Se)}else{ae&&i(Te.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),Ge.comment&&(Te.comment?Te.comment+=`
78
- `+Ge.comment:Te.comment=Ge.comment);const pe=new oi(Te);n.options.keepSourceTokens&&(pe.srcToken=c),o.items.push(pe)}}return l&&l<u&&i(l,"IMPOSSIBLE","Map comment with trailing content"),o.range=[r.offset,u,l??u],o}function Xy({composeNode:e,composeEmptyNode:t},n,r,i,s){const a=(s==null?void 0:s.nodeClass)??qs,o=new a(n.schema);n.atRoot&&(n.atRoot=!1);let u=r.offset,l=null;for(const{start:C,value:c}of r.items){const B=Ta(C,{indicator:"seq-item-ind",next:c,offset:u,onError:i,startOnNewline:!0});if(!B.found)if(B.anchor||B.tag||c)c&&c.type==="block-seq"?i(B.end,"BAD_INDENT","All sequence items must start at the same column"):i(u,"MISSING_CHAR","Sequence item without - indicator");else{l=B.end,B.comment&&(o.comment=B.comment);continue}const N=c?e(n,c,B,i):t(n,B.end,C,null,B,i);n.schema.compat&&Rc(r.indent,c,i),u=N.range[2],o.items.push(N)}return o.range=[r.offset,u,l??u],o}function xo(e,t,n,r){let i="";if(e){let s=!1,a="";for(const o of e){const{source:u,type:l}=o;switch(l){case"space":s=!0;break;case"comment":{n&&!s&&r(o,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const C=u.substring(1)||" ";i?i+=a+C:i=C,a="";break}case"newline":i&&(a+=u),s=!0;break;default:r(o,"UNEXPECTED_TOKEN",`Unexpected ${l} at node end`)}t+=u.length}}return{comment:i,offset:t}}const $c="Block collections are not allowed within flow collections",Vc=e=>e&&(e.type==="block-map"||e.type==="block-seq");function Ky({composeNode:e,composeEmptyNode:t},n,r,i,s){const a=r.start.source==="{",o=a?"flow map":"flow sequence",u=(s==null?void 0:s.nodeClass)??(a?Bi:qs),l=new u(n.schema);l.flow=!0;const C=n.atRoot;C&&(n.atRoot=!1);let c=r.offset+r.start.source.length;for(let O=0;O<r.items.length;++O){const ae=r.items[O],{start:we,key:Te,sep:Ge,value:pe}=ae,Se=Ta(we,{flow:o,indicator:"explicit-key-ind",next:Te??(Ge==null?void 0:Ge[0]),offset:c,onError:i,startOnNewline:!1});if(!Se.found){if(!Se.anchor&&!Se.tag&&!Ge&&!pe){O===0&&Se.comma?i(Se.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`):O<r.items.length-1&&i(Se.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${o}`),Se.comment&&(l.comment?l.comment+=`
79
- `+Se.comment:l.comment=Se.comment),c=Se.end;continue}!a&&n.options.strict&&So(Te)&&i(Te,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(O===0)Se.comma&&i(Se.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`);else if(Se.comma||i(Se.start,"MISSING_CHAR",`Missing , between ${o} items`),Se.comment){let Qe="";e:for(const mt of we)switch(mt.type){case"comma":case"space":break;case"comment":Qe=mt.source.substring(1);break e;default:break e}if(Qe){let mt=l.items[l.items.length-1];hr(mt)&&(mt=mt.value??mt.key),mt.comment?mt.comment+=`
80
- `+Qe:mt.comment=Qe,Se.comment=Se.comment.substring(Qe.length+1)}}if(!a&&!Ge&&!Se.found){const Qe=pe?e(n,pe,Se,i):t(n,Se.end,Ge,null,Se,i);l.items.push(Qe),c=Qe.range[2],Vc(pe)&&i(Qe.range,"BLOCK_IN_FLOW",$c)}else{const Qe=Se.end,mt=Te?e(n,Te,Se,i):t(n,Qe,we,null,Se,i);Vc(Te)&&i(mt.range,"BLOCK_IN_FLOW",$c);const Ae=Ta(Ge??[],{flow:o,indicator:"map-value-ind",next:pe,offset:mt.range[2],onError:i,startOnNewline:!1});if(Ae.found){if(!a&&!Se.found&&n.options.strict){if(Ge)for(const qe of Ge){if(qe===Ae.found)break;if(qe.type==="newline"){i(qe,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}Se.start<Ae.found.offset-1024&&i(Ae.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else pe&&("source"in pe&&pe.source&&pe.source[0]===":"?i(pe,"MISSING_CHAR",`Missing space after : in ${o}`):i(Ae.start,"MISSING_CHAR",`Missing , or : between ${o} items`));const Ne=pe?e(n,pe,Ae,i):Ae.found?t(n,Ae.end,Ge,null,Ae,i):null;Ne?Vc(pe)&&i(Ne.range,"BLOCK_IN_FLOW",$c):Ae.comment&&(mt.comment?mt.comment+=`
81
- `+Ae.comment:mt.comment=Ae.comment);const ze=new oi(mt,Ne);if(n.options.keepSourceTokens&&(ze.srcToken=ae),a){const qe=l;g0(n,qe.items,mt)&&i(Qe,"DUPLICATE_KEY","Map keys must be unique"),qe.items.push(ze)}else{const qe=new Bi(n.schema);qe.flow=!0,qe.items.push(ze),l.items.push(qe)}c=Ne?Ne.range[2]:Ae.end}}const B=a?"}":"]",[N,...ee]=r.end;let ne=c;if(N&&N.source===B)ne=N.offset+N.source.length;else{const O=o[0].toUpperCase()+o.substring(1),ae=C?`${O} must end with a ${B}`:`${O} in block collection must be sufficiently indented and end with a ${B}`;i(c,C?"MISSING_CHAR":"BAD_INDENT",ae),N&&N.source.length!==1&&ee.unshift(N)}if(ee.length>0){const O=xo(ee,ne,n.options.strict,i);O.comment&&(l.comment?l.comment+=`
82
- `+O.comment:l.comment=O.comment),l.range=[r.offset,ne,O.offset]}else l.range=[r.offset,ne,ne];return l}function qc(e,t,n,r,i,s){const a=n.type==="block-map"?Qy(e,t,n,r,s):n.type==="block-seq"?Xy(e,t,n,r,s):Ky(e,t,n,r,s),o=a.constructor;return i==="!"||i===o.tagName?(a.tag=o.tagName,a):(i&&(a.tag=i),a)}function Zy(e,t,n,r,i){var c;const s=r?t.directives.tagName(r.source,B=>i(r,"TAG_RESOLVE_FAILED",B)):null,a=n.type==="block-map"?"map":n.type==="block-seq"?"seq":n.start.source==="{"?"map":"seq";if(!r||!s||s==="!"||s===Bi.tagName&&a==="map"||s===qs.tagName&&a==="seq"||!a)return qc(e,t,n,i,s);let o=t.schema.tags.find(B=>B.tag===s&&B.collection===a);if(!o){const B=t.schema.knownTags[s];if(B&&B.collection===a)t.schema.tags.push(Object.assign({},B,{default:!1})),o=B;else return B!=null&&B.collection?i(r,"BAD_COLLECTION_TYPE",`${B.tag} used for ${a} collection, but expects ${B.collection}`,!0):i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),qc(e,t,n,i,s)}const u=qc(e,t,n,i,s,o),l=((c=o.resolve)==null?void 0:c.call(o,u,B=>i(r,"TAG_RESOLVE_FAILED",B),t.options))??u,C=Dr(l)?l:new Zn(l);return C.range=u.range,C.tag=s,o!=null&&o.format&&(C.format=o.format),C}function eD(e,t,n){const r=e.offset,i=tD(e,t,n);if(!i)return{value:"",type:null,comment:"",range:[r,r,r]};const s=i.mode===">"?Zn.BLOCK_FOLDED:Zn.BLOCK_LITERAL,a=e.source?nD(e.source):[];let o=a.length;for(let ne=a.length-1;ne>=0;--ne){const O=a[ne][1];if(O===""||O==="\r")o=ne;else break}if(o===0){const ne=i.chomp==="+"&&a.length>0?`
83
- `.repeat(Math.max(1,a.length-1)):"";let O=r+i.length;return e.source&&(O+=e.source.length),{value:ne,type:s,comment:i.comment,range:[r,O,O]}}let u=e.indent+i.indent,l=e.offset+i.length,C=0;for(let ne=0;ne<o;++ne){const[O,ae]=a[ne];if(ae===""||ae==="\r")i.indent===0&&O.length>u&&(u=O.length);else{if(O.length<u){const we="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(l+O.length,"MISSING_CHAR",we)}i.indent===0&&(u=O.length),C=ne;break}l+=O.length+ae.length+1}for(let ne=a.length-1;ne>=o;--ne)a[ne][0].length>u&&(o=ne+1);let c="",B="",N=!1;for(let ne=0;ne<C;++ne)c+=a[ne][0].slice(u)+`
84
- `;for(let ne=C;ne<o;++ne){let[O,ae]=a[ne];l+=O.length+ae.length+1;const we=ae[ae.length-1]==="\r";if(we&&(ae=ae.slice(0,-1)),ae&&O.length<u){const Ge=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;n(l-ae.length-(we?2:1),"BAD_INDENT",Ge),O=""}s===Zn.BLOCK_LITERAL?(c+=B+O.slice(u)+ae,B=`
85
- `):O.length>u||ae[0]===" "?(B===" "?B=`
86
- `:!N&&B===`
87
- `&&(B=`
88
-
89
- `),c+=B+O.slice(u)+ae,B=`
90
- `,N=!0):ae===""?B===`
91
- `?c+=`
92
- `:B=`
93
- `:(c+=B+ae,B=" ",N=!1)}switch(i.chomp){case"-":break;case"+":for(let ne=o;ne<a.length;++ne)c+=`
94
- `+a[ne][0].slice(u);c[c.length-1]!==`
95
- `&&(c+=`
96
- `);break;default:c+=`
97
- `}const ee=r+i.length+e.source.length;return{value:c,type:s,comment:i.comment,range:[r,ee,ee]}}function tD({offset:e,props:t},n,r){if(t[0].type!=="block-scalar-header")return r(t[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:i}=t[0],s=i[0];let a=0,o="",u=-1;for(let B=1;B<i.length;++B){const N=i[B];if(!o&&(N==="-"||N==="+"))o=N;else{const ee=Number(N);!a&&ee?a=ee:u===-1&&(u=e+B)}}u!==-1&&r(u,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let l=!1,C="",c=i.length;for(let B=1;B<t.length;++B){const N=t[B];switch(N.type){case"space":l=!0;case"newline":c+=N.source.length;break;case"comment":n&&!l&&r(N,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),c+=N.source.length,C=N.source.substring(1);break;case"error":r(N,"UNEXPECTED_TOKEN",N.message),c+=N.source.length;break;default:{const ee=`Unexpected token in block scalar header: ${N.type}`;r(N,"UNEXPECTED_TOKEN",ee);const ne=N.source;ne&&typeof ne=="string"&&(c+=ne.length)}}}return{mode:s,indent:a,chomp:o,comment:C,length:c}}function nD(e){const t=e.split(/\n( *)/),n=t[0],r=n.match(/^( *)/),s=[r!=null&&r[1]?[r[1],n.slice(r[1].length)]:["",n]];for(let a=1;a<t.length;a+=2)s.push([t[a],t[a+1]]);return s}function rD(e,t,n){const{offset:r,type:i,source:s,end:a}=e;let o,u;const l=(B,N,ee)=>n(r+B,N,ee);switch(i){case"scalar":o=Zn.PLAIN,u=iD(s,l);break;case"single-quoted-scalar":o=Zn.QUOTE_SINGLE,u=sD(s,l);break;case"double-quoted-scalar":o=Zn.QUOTE_DOUBLE,u=aD(s,l);break;default:return n(e,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${i}`),{value:"",type:null,comment:"",range:[r,r+s.length,r+s.length]}}const C=r+s.length,c=xo(a,C,t,n);return{value:u,type:o,comment:c.comment,range:[r,C,c.offset]}}function iD(e,t){let n="";switch(e[0]){case" ":n="a tab character";break;case",":n="flow indicator character ,";break;case"%":n="directive indicator character %";break;case"|":case">":{n=`block scalar indicator ${e[0]}`;break}case"@":case"`":{n=`reserved character ${e[0]}`;break}}return n&&t(0,"BAD_SCALAR_START",`Plain value cannot start with ${n}`),D0(e)}function sD(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),D0(e.slice(1,-1)).replace(/''/g,"'")}function D0(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
98
- `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
99
- `,"sy")}catch{t=/(.*?)[ \t]*\r?\n/sy,n=/[ \t]*(.*?)[ \t]*\r?\n/sy}let r=t.exec(e);if(!r)return e;let i=r[1],s=" ",a=t.lastIndex;for(n.lastIndex=a;r=n.exec(e);)r[1]===""?s===`
100
- `?i+=s:s=`
101
- `:(i+=s+r[1],s=" "),a=n.lastIndex;const o=/[ \t]*(.*)/sy;return o.lastIndex=a,r=o.exec(e),i+s+((r==null?void 0:r[1])??"")}function aD(e,t){let n="";for(let r=1;r<e.length-1;++r){const i=e[r];if(!(i==="\r"&&e[r+1]===`
102
- `))if(i===`
103
- `){const{fold:s,offset:a}=oD(e,r);n+=s,r=a}else if(i==="\\"){let s=e[++r];const a=uD[s];if(a)n+=a;else if(s===`
104
- `)for(s=e[r+1];s===" "||s===" ";)s=e[++r+1];else if(s==="\r"&&e[r+1]===`
105
- `)for(s=e[++r+1];s===" "||s===" ";)s=e[++r+1];else if(s==="x"||s==="u"||s==="U"){const o={x:2,u:4,U:8}[s];n+=lD(e,r+1,o,t),r+=o}else{const o=e.substr(r-1,2);t(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),n+=o}}else if(i===" "||i===" "){const s=r;let a=e[r+1];for(;a===" "||a===" ";)a=e[++r+1];a!==`
106
- `&&!(a==="\r"&&e[r+2]===`
107
- `)&&(n+=r>s?e.slice(s,r+1):i)}else n+=i}return(e[e.length-1]!=='"'||e.length===1)&&t(e.length,"MISSING_CHAR",'Missing closing "quote'),n}function oD(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
108
- `||r==="\r")&&!(r==="\r"&&e[t+2]!==`
109
- `);)r===`
110
- `&&(n+=`
111
- `),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const uD={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
112
- `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function lD(e,t,n,r){const i=e.substr(t,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;if(isNaN(a)){const o=e.substr(t-2,n+2);return r(t-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}return String.fromCodePoint(a)}function b0(e,t,n,r){const{value:i,type:s,comment:a,range:o}=t.type==="block-scalar"?eD(t,e.options.strict,r):rD(t,e.options.strict,r),u=n?e.directives.tagName(n.source,c=>r(n,"TAG_RESOLVE_FAILED",c)):null,l=n&&u?cD(e.schema,i,u,n,r):t.type==="scalar"?fD(e,i,t,r):e.schema[ls];let C;try{const c=l.resolve(i,B=>r(n??t,"TAG_RESOLVE_FAILED",B),e.options);C=Jn(c)?c:new Zn(c)}catch(c){const B=c instanceof Error?c.message:String(c);r(n??t,"TAG_RESOLVE_FAILED",B),C=new Zn(i)}return C.range=o,C.source=i,s&&(C.type=s),u&&(C.tag=u),l.format&&(C.format=l.format),a&&(C.comment=a),C}function cD(e,t,n,r,i){var o;if(n==="!")return e[ls];const s=[];for(const u of e.tags)if(!u.collection&&u.tag===n)if(u.default&&u.test)s.push(u);else return u;for(const u of s)if((o=u.test)!=null&&o.test(t))return u;const a=e.knownTags[n];return a&&!a.collection?(e.tags.push(Object.assign({},a,{default:!1,test:void 0})),a):(i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${n}`,n!=="tag:yaml.org,2002:str"),e[ls])}function fD({directives:e,schema:t},n,r,i){const s=t.tags.find(a=>{var o;return a.default&&((o=a.test)==null?void 0:o.test(n))})||t[ls];if(t.compat){const a=t.compat.find(o=>{var u;return o.default&&((u=o.test)==null?void 0:u.test(n))})??t[ls];if(s.tag!==a.tag){const o=e.tagString(s.tag),u=e.tagString(a.tag),l=`Value may be parsed as either ${o} or ${u}`;i(r,"TAG_RESOLVE_FAILED",l,!0)}}return s}function pD(e,t,n){if(t){n===null&&(n=t.length);for(let r=n-1;r>=0;--r){let i=t[r];switch(i.type){case"space":case"comment":case"newline":e-=i.source.length;continue}for(i=t[++r];(i==null?void 0:i.type)==="space";)e+=i.source.length,i=t[++r];break}}return e}const dD={composeNode:v0,composeEmptyNode:Uc};function v0(e,t,n,r){const{spaceBefore:i,comment:s,anchor:a,tag:o}=n;let u,l=!0;switch(t.type){case"alias":u=hD(e,t,r),(a||o)&&r(t,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":u=b0(e,t,o,r),a&&(u.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":u=Zy(dD,e,t,o,r),a&&(u.anchor=a.source.substring(1));break;default:{const C=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",C),u=Uc(e,t.offset,void 0,null,n,r),l=!1}}return a&&u.anchor===""&&r(a,"BAD_ALIAS","Anchor cannot be an empty string"),i&&(u.spaceBefore=!0),s&&(t.type==="scalar"&&t.source===""?u.comment=s:u.commentBefore=s),e.options.keepSourceTokens&&l&&(u.srcToken=t),u}function Uc(e,t,n,r,{spaceBefore:i,comment:s,anchor:a,tag:o,end:u},l){const C={type:"scalar",offset:pD(t,n,r),indent:-1,source:""},c=b0(e,C,o,l);return a&&(c.anchor=a.source.substring(1),c.anchor===""&&l(a,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(c.spaceBefore=!0),s&&(c.comment=s,c.range[2]=u),c}function hD({options:e},{offset:t,source:n,end:r},i){const s=new Ac(n.substring(1));s.source===""&&i(t,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&i(t+n.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const a=t+n.length,o=xo(r,a,e.strict,i);return s.range=[t,a,o.offset],o.comment&&(s.comment=o.comment),s}function mD(e,t,{offset:n,start:r,value:i,end:s},a){const o=Object.assign({_directives:t},e),u=new Au(void 0,o),l={atRoot:!0,directives:u.directives,options:u.options,schema:u.schema},C=Ta(r,{indicator:"doc-start",next:i??(s==null?void 0:s[0]),offset:n,onError:a,startOnNewline:!0});C.found&&(u.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!C.hasNewline&&a(C.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),u.contents=i?v0(l,i,C,a):Uc(l,C.end,r,null,C,a);const c=u.contents.range[2],B=xo(s,c,!1,a);return B.comment&&(u.comment=B.comment),u.range=[n,c,B.offset],u}function wo(e){if(typeof e=="number")return[e,e+1];if(Array.isArray(e))return e.length===2?e:[e[0],e[1]];const{offset:t,source:n}=e;return[t,t+(typeof n=="string"?n.length:1)]}function E0(e){var i;let t="",n=!1,r=!1;for(let s=0;s<e.length;++s){const a=e[s];switch(a[0]){case"#":t+=(t===""?"":r?`
113
-
114
- `:`
115
- `)+(a.substring(1)||" "),n=!0,r=!1;break;case"%":((i=e[s+1])==null?void 0:i[0])!=="#"&&(s+=1),n=!1;break;default:n||(r=!0),n=!1}}return{comment:t,afterEmptyLine:r}}class A0{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,i,s)=>{const a=wo(n);s?this.warnings.push(new zy(a,r,i)):this.errors.push(new Co(a,r,i))},this.directives=new ai({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:i}=E0(this.prelude);if(r){const s=t.contents;if(n)t.comment=t.comment?`${t.comment}
116
- ${r}`:r;else if(i||t.directives.docStart||!s)t.commentBefore=r;else if(Pr(s)&&!s.flow&&s.items.length>0){let a=s.items[0];hr(a)&&(a=a.key);const o=a.commentBefore;a.commentBefore=o?`${r}
117
- ${o}`:r}else{const a=s.commentBefore;s.commentBefore=a?`${r}
118
- ${a}`:r}}n?(Array.prototype.push.apply(t.errors,this.errors),Array.prototype.push.apply(t.warnings,this.warnings)):(t.errors=this.errors,t.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:E0(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(t,n=!1,r=-1){for(const i of t)yield*this.next(i);yield*this.end(n,r)}*next(t){switch(t.type){case"directive":this.directives.add(t.source,(n,r,i)=>{const s=wo(t);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",r,i)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=mD(this.options,this.directives,t,this.onError);this.atDirectives&&!n.directives.docStart&&this.onError(t,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(n,!1),this.doc&&(yield this.doc),this.doc=n,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(t.source);break;case"error":{const n=t.source?`${t.message}: ${JSON.stringify(t.source)}`:t.message,r=new Co(wo(t),"UNEXPECTED_TOKEN",n);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){const r="Unexpected doc-end without preceding document";this.errors.push(new Co(wo(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=xo(t.end,t.offset+t.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),n.comment){const r=this.doc.comment;this.doc.comment=r?`${r}
119
- ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new Co(wo(t),"UNEXPECTED_TOKEN",`Unsupported token ${t.type}`))}}*end(t=!1,n=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(t){const r=Object.assign({_directives:this.directives},this.options),i=new Au(void 0,r);this.atDirectives&&this.onError(n,"MISSING_CHAR","Missing directives-end indicator line"),i.range=[0,n,n],this.decorate(i,!1),yield i}}}const C0=e=>"type"in e?Cu(e):Su(e);function Cu(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=Cu(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=Su(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=Su(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=Su(e);if(e.end)for(const n of e.end)t+=n.source;return t}default:{let t=e.source;if("end"in e&&e.end)for(const n of e.end)t+=n.source;return t}}}function Su({start:e,key:t,sep:n,value:r}){let i="";for(const s of e)i+=s.source;if(t&&(i+=Cu(t)),n)for(const s of n)i+=s.source;return r&&(i+=Cu(r)),i}const Wc=Symbol("break visit"),gD=Symbol("skip children"),S0=Symbol("remove item");function Us(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),x0(Object.freeze([]),e,t)}Us.BREAK=Wc,Us.SKIP=gD,Us.REMOVE=S0,Us.itemAtPath=(e,t)=>{let n=e;for(const[r,i]of t){const s=n==null?void 0:n[r];if(s&&"items"in s)n=s.items[i];else return}return n},Us.parentCollection=(e,t)=>{const n=Us.itemAtPath(e,t.slice(0,-1)),r=t[t.length-1][0],i=n==null?void 0:n[r];if(i&&"items"in i)return i;throw new Error("Parent collection not found")};function x0(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const i of["key","value"]){const s=t[i];if(s&&"items"in s){for(let a=0;a<s.items.length;++a){const o=x0(Object.freeze(e.concat([[i,a]])),s.items[a],n);if(typeof o=="number")a=o-1;else{if(o===Wc)return Wc;o===S0&&(s.items.splice(a,1),a-=1)}}typeof r=="function"&&i==="key"&&(r=r(t,e))}}return typeof r=="function"?r(t,e):r}const w0="\uFEFF",F0="",N0="",Gc="",yD=e=>!!e&&"items"in e,Jc=e=>!!e&&(e.type==="scalar"||e.type==="single-quoted-scalar"||e.type==="double-quoted-scalar"||e.type==="block-scalar");function DD(e){switch(e){case w0:return"byte-order-mark";case F0:return"doc-mode";case N0:return"flow-error-end";case Gc:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
120
- `:case`\r
121
- `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(e[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function Mi(e){switch(e){case void 0:case" ":case`
122
- `:case"\r":case" ":return!0;default:return!1}}const _0="0123456789ABCDEFabcdef".split(""),bD="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),Yc=",[]{}".split(""),vD=` ,[]{}
123
- \r `.split(""),Hc=e=>!e||vD.includes(e);class ED{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(t,n=!1){t&&(this.buffer=this.buffer?this.buffer+t:t,this.lineEndPos=null),this.atEnd=!n;let r=this.next??"stream";for(;r&&(n||this.hasChars(1));)r=yield*this.parseNext(r)}atLineEnd(){let t=this.pos,n=this.buffer[t];for(;n===" "||n===" ";)n=this.buffer[++t];return!n||n==="#"||n===`
124
- `?!0:n==="\r"?this.buffer[t+1]===`
125
- `:!1}charAt(t){return this.buffer[this.pos+t]}continueScalar(t){let n=this.buffer[t];if(this.indentNext>0){let r=0;for(;n===" ";)n=this.buffer[++r+t];if(n==="\r"){const i=this.buffer[r+t+1];if(i===`
126
- `||!i&&!this.atEnd)return t+r+1}return n===`
127
- `||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&Mi(this.buffer[t+3]))return-1}return t}getLine(){let t=this.lineEndPos;return(typeof t!="number"||t!==-1&&t<this.pos)&&(t=this.buffer.indexOf(`
128
- `,this.pos),this.lineEndPos=t),t===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[t-1]==="\r"&&(t-=1),this.buffer.substring(this.pos,t))}hasChars(t){return this.pos+t<=this.buffer.length}setNext(t){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=t,null}peek(t){return this.buffer.substr(this.pos,t)}*parseNext(t){switch(t){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let t=this.getLine();if(t===null)return this.setNext("stream");if(t[0]===w0&&(yield*this.pushCount(1),t=t.substring(1)),t[0]==="%"){let n=t.length;const r=t.indexOf("#");if(r!==-1){const s=t[r-1];(s===" "||s===" ")&&(n=r-1)}for(;;){const s=t[n-1];if(s===" "||s===" ")n-=1;else break}const i=(yield*this.pushCount(n))+(yield*this.pushSpaces(!0));return yield*this.pushCount(t.length-i),this.pushNewline(),"stream"}if(this.atLineEnd()){const n=yield*this.pushSpaces(!0);return yield*this.pushCount(t.length-n),yield*this.pushNewline(),"stream"}return yield F0,yield*this.parseLineStart()}*parseLineStart(){const t=this.charAt(0);if(!t&&!this.atEnd)return this.setNext("line-start");if(t==="-"||t==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const n=this.peek(3);if(n==="---"&&Mi(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&Mi(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Mi(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[t,n]=this.peek(2);if(!n&&!this.atEnd)return this.setNext("block-start");if((t==="-"||t==="?"||t===":")&&Mi(n)){const r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const t=this.getLine();if(t===null)return this.setNext("doc");let n=yield*this.pushIndicators();switch(t[n]){case"#":yield*this.pushCount(t.length-n);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Hc),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return n+=yield*this.parseBlockScalarHeader(),n+=yield*this.pushSpaces(!0),yield*this.pushCount(t.length-n),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let t,n,r=-1;do t=yield*this.pushNewline(),t>0?(n=yield*this.pushSpaces(!1),this.indentValue=r=n):n=0,n+=yield*this.pushSpaces(!0);while(t+n>0);const i=this.getLine();if(i===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&i[0]!=="#"||r===0&&(i.startsWith("---")||i.startsWith("..."))&&Mi(i[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield N0,yield*this.parseLineStart();let s=0;for(;i[s]===",";)s+=yield*this.pushCount(1),s+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(s+=yield*this.pushIndicators(),i[s]){case void 0:return"flow";case"#":return yield*this.pushCount(i.length-s),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Hc),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const a=this.charAt(1);if(this.flowKey||Mi(a)||a===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const t=this.charAt(0);let n=this.buffer.indexOf(t,this.pos+1);if(t==="'")for(;n!==-1&&this.buffer[n+1]==="'";)n=this.buffer.indexOf("'",n+2);else for(;n!==-1;){let s=0;for(;this.buffer[n-1-s]==="\\";)s+=1;if(s%2===0)break;n=this.buffer.indexOf('"',n+1)}const r=this.buffer.substring(0,n);let i=r.indexOf(`
129
- `,this.pos);if(i!==-1){for(;i!==-1;){const s=this.continueScalar(i+1);if(s===-1)break;i=r.indexOf(`
130
- `,s)}i!==-1&&(n=i-(r[i-1]==="\r"?2:1))}if(n===-1){if(!this.atEnd)return this.setNext("quoted-scalar");n=this.buffer.length}return yield*this.pushToIndex(n+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let t=this.pos;for(;;){const n=this.buffer[++t];if(n==="+")this.blockScalarKeep=!0;else if(n>"0"&&n<="9")this.blockScalarIndent=Number(n)-1;else if(n!=="-")break}return yield*this.pushUntil(n=>Mi(n)||n==="#")}*parseBlockScalar(){let t=this.pos-1,n=0,r;e:for(let i=this.pos;r=this.buffer[i];++i)switch(r){case" ":n+=1;break;case`
131
- `:t=i,n=0;break;case"\r":{const s=this.buffer[i+1];if(!s&&!this.atEnd)return this.setNext("block-scalar");if(s===`
132
- `)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(n>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=n:this.indentNext+=this.blockScalarIndent;do{const i=this.continueScalar(t+1);if(i===-1)break;t=this.buffer.indexOf(`
133
- `,i)}while(t!==-1);if(t===-1){if(!this.atEnd)return this.setNext("block-scalar");t=this.buffer.length}}if(!this.blockScalarKeep)do{let i=t-1,s=this.buffer[i];s==="\r"&&(s=this.buffer[--i]);const a=i;for(;s===" "||s===" ";)s=this.buffer[--i];if(s===`
134
- `&&i>=this.pos&&i+1+n>a)t=i;else break}while(!0);return yield Gc,yield*this.pushToIndex(t+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const t=this.flowLevel>0;let n=this.pos-1,r=this.pos-1,i;for(;i=this.buffer[++r];)if(i===":"){const s=this.buffer[r+1];if(Mi(s)||t&&s===",")break;n=r}else if(Mi(i)){let s=this.buffer[r+1];if(i==="\r"&&(s===`
135
- `?(r+=1,i=`
136
- `,s=this.buffer[r+1]):n=r),s==="#"||t&&Yc.includes(s))break;if(i===`
137
- `){const a=this.continueScalar(r+1);if(a===-1)break;r=Math.max(r,a-2)}}else{if(t&&Yc.includes(i))break;n=r}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield Gc,yield*this.pushToIndex(n+1,!0),t?"flow":"doc")}*pushCount(t){return t>0?(yield this.buffer.substr(this.pos,t),this.pos+=t,t):0}*pushToIndex(t,n){const r=this.buffer.slice(this.pos,t);return r?(yield r,this.pos+=r.length,r.length):(n&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Hc))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Mi(n)||t&&Yc.includes(n))return t?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let t=this.pos+2,n=this.buffer[t];for(;!Mi(n)&&n!==">";)n=this.buffer[++t];return yield*this.pushToIndex(n===">"?t+1:t,!1)}else{let t=this.pos+1,n=this.buffer[t];for(;n;)if(bD.includes(n))n=this.buffer[++t];else if(n==="%"&&_0.includes(this.buffer[t+1])&&_0.includes(this.buffer[t+2]))n=this.buffer[t+=3];else break;return yield*this.pushToIndex(t,!1)}}*pushNewline(){const t=this.buffer[this.pos];return t===`
138
- `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
139
- `?yield*this.pushCount(2):0}*pushSpaces(t){let n=this.pos-1,r;do r=this.buffer[++n];while(r===" "||t&&r===" ");const i=n-this.pos;return i>0&&(yield this.buffer.substr(this.pos,i),this.pos=n),i}*pushUntil(t){let n=this.pos,r=this.buffer[n];for(;!t(r);)r=this.buffer[++n];return yield*this.pushToIndex(n,!1)}}class T0{constructor(){this.lineStarts=[],this.addNewLine=t=>this.lineStarts.push(t),this.linePos=t=>{let n=0,r=this.lineStarts.length;for(;n<r;){const s=n+r>>1;this.lineStarts[s]<t?n=s+1:r=s}if(this.lineStarts[n]===t)return{line:n+1,col:1};if(n===0)return{line:0,col:t};const i=this.lineStarts[n-1];return{line:n,col:t-i+1}}}}function Wi(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function k0(e){for(let t=0;t<e.length;++t)switch(e[t].type){case"space":case"comment":case"newline":break;default:return t}return-1}function L0(e){switch(e==null?void 0:e.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function xu(e){switch(e.type){case"document":return e.start;case"block-map":{const t=e.items[e.items.length-1];return t.sep??t.start}case"block-seq":return e.items[e.items.length-1].start;default:return[]}}function ka(e){var n;if(e.length===0)return[];let t=e.length;e:for(;--t>=0;)switch(e[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((n=e[++t])==null?void 0:n.type)==="space";);return e.splice(t,e.length)}function P0(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!Wi(t.start,"explicit-key-ind")&&!Wi(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,L0(t.value)?t.value.end?Array.prototype.push.apply(t.value.end,t.sep):t.value.end=t.sep:Array.prototype.push.apply(t.start,t.sep),delete t.sep)}class zc{constructor(t){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new ED,this.onNewLine=t}*parse(t,n=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const r of this.lexer.lex(t,n))yield*this.next(r);n||(yield*this.end())}*next(t){if(this.source=t,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=t.length;return}const n=DD(t);if(n)if(n==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=n,yield*this.step(),n){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+t.length);break;case"space":this.atNewLine&&t[0]===" "&&(this.indent+=t.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=t.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=t.length}else{const r=`Not a YAML token: ${t}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:t}),this.offset+=t.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const t=this.peek(1);if(this.type==="doc-end"&&(!t||t.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!t)return yield*this.stream();switch(t.type){case"document":return yield*this.document(t);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(t);case"block-scalar":return yield*this.blockScalar(t);case"block-map":return yield*this.blockMap(t);case"block-seq":return yield*this.blockSequence(t);case"flow-collection":return yield*this.flowCollection(t);case"doc-end":return yield*this.documentEnd(t)}yield*this.pop()}peek(t){return this.stack[this.stack.length-t]}*pop(t){const n=t??this.stack.pop();if(n)if(this.stack.length===0)yield n;else{const r=this.peek(1);switch(n.type==="block-scalar"?n.indent="indent"in r?r.indent:0:n.type==="flow-collection"&&r.type==="document"&&(n.indent=0),n.type==="flow-collection"&&P0(n),r.type){case"document":r.value=n;break;case"block-scalar":r.props.push(n);break;case"block-map":{const i=r.items[r.items.length-1];if(i.value){r.items.push({start:[],key:n,sep:[]}),this.onKeyLine=!0;return}else if(i.sep)i.value=n;else{Object.assign(i,{key:n,sep:[]}),this.onKeyLine=!Wi(i.start,"explicit-key-ind");return}break}case"block-seq":{const i=r.items[r.items.length-1];i.value?r.items.push({start:[],value:n}):i.value=n;break}case"flow-collection":{const i=r.items[r.items.length-1];!i||i.value?r.items.push({start:[],key:n,sep:[]}):i.sep?i.value=n:Object.assign(i,{key:n,sep:[]});return}default:yield*this.pop(),yield*this.pop(n)}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(n.type==="block-map"||n.type==="block-seq")){const i=n.items[n.items.length-1];i&&!i.sep&&!i.value&&i.start.length>0&&k0(i.start)===-1&&(n.indent===0||i.start.every(s=>s.type!=="comment"||s.indent<n.indent))&&(r.type==="document"?r.end=i.start:r.items.push({start:i.start}),n.items.splice(-1,1))}}else{const r="Tried to pop an empty stack";yield{type:"error",offset:this.offset,source:"",message:r}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const t={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&t.start.push(this.sourceToken),this.stack.push(t);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(t){if(t.value)return yield*this.lineEnd(t);switch(this.type){case"doc-start":{k0(t.start)!==-1?(yield*this.pop(),yield*this.step()):t.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":t.start.push(this.sourceToken);return}const n=this.startBlockValue(t);n?this.stack.push(n):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(t){if(this.type==="map-value-ind"){const n=xu(this.peek(2)),r=ka(n);let i;t.end?(i=t.end,i.push(this.sourceToken),delete t.end):i=[this.sourceToken];const s={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:r,key:t,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(t)}*blockScalar(t){switch(this.type){case"space":case"comment":case"newline":t.props.push(this.sourceToken);return;case"scalar":if(t.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let n=this.source.indexOf(`
140
- `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
141
- `,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const i="end"in n.value?n.value.end:void 0,s=Array.isArray(i)?i[i.length-1]:void 0;(s==null?void 0:s.type)==="comment"?i==null||i.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,t.indent)){const i=t.items[t.items.length-2],s=(r=i==null?void 0:i.value)==null?void 0:r.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=t.indent){const i=!this.onKeyLine&&this.indent===t.indent&&n.sep;let s=[];if(i&&n.sep&&!n.value){const a=[];for(let o=0;o<n.sep.length;++o){const u=n.sep[o];switch(u.type){case"newline":a.push(o);break;case"space":break;case"comment":u.indent>t.indent&&(a.length=0);break;default:a.length=0}}a.length>=2&&(s=n.sep.splice(a[1]))}switch(this.type){case"anchor":case"tag":i||n.value?(s.push(this.sourceToken),t.items.push({start:s}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!Wi(n.start,"explicit-key-ind")?n.start.push(this.sourceToken):i||n.value?(s.push(this.sourceToken),t.items.push({start:s})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(Wi(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Wi(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(L0(n.key)&&!Wi(n.sep,"newline")){const a=ka(n.start),o=n.key,u=n.sep;u.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:o,sep:u}]})}else s.length>0?n.sep=n.sep.concat(s,this.sourceToken):n.sep.push(this.sourceToken);else if(Wi(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const a=ka(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:a,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||i?t.items.push({start:s,key:null,sep:[this.sourceToken]}):Wi(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const a=this.flowScalar(this.type);i||n.value?(t.items.push({start:s,key:a,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(a):(Object.assign(n,{key:a,sep:[]}),this.onKeyLine=!0);return}default:{const a=this.startBlockValue(t);if(a){i&&a.type!=="block-seq"&&Wi(n.start,"explicit-key-ind")&&t.items.push({start:s}),this.stack.push(a);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(t){var r;const n=t.items[t.items.length-1];switch(this.type){case"newline":if(n.value){const i="end"in n.value?n.value.end:void 0,s=Array.isArray(i)?i[i.length-1]:void 0;(s==null?void 0:s.type)==="comment"?i==null||i.push(this.sourceToken):t.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)t.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,t.indent)){const i=t.items[t.items.length-2],s=(r=i==null?void 0:i.value)==null?void 0:r.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),t.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=t.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==t.indent)break;n.value||Wi(n.start,"seq-item-ind")?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>t.indent){const i=this.startBlockValue(t);if(i){this.stack.push(i);return}}yield*this.pop(),yield*this.step()}*flowCollection(t){const n=t.items[t.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(t.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?t.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?t.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?t.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);!n||n.value?t.items.push({start:[],key:i,sep:[]}):n.sep?this.stack.push(i):Object.assign(n,{key:i,sep:[]});return}case"flow-map-end":case"flow-seq-end":t.end.push(this.sourceToken);return}const r=this.startBlockValue(t);r?this.stack.push(r):(yield*this.pop(),yield*this.step())}else{const r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===t.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){const i=xu(r),s=ka(i);P0(t);const a=t.end.splice(1,t.end.length);a.push(this.sourceToken);const o={type:"block-map",offset:t.offset,indent:t.indent,items:[{start:s,key:t,sep:a}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(t)}}flowScalar(t){if(this.onNewLine){let n=this.source.indexOf(`
142
- `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
143
- `,n)+1}return{type:t,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(t){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const n=xu(t),r=ka(n);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r}]}}case"map-value-ind":{this.onKeyLine=!0;const n=xu(t),r=ka(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(t,n){return this.type!=="comment"||this.indent<=n?!1:t.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(t){this.type!=="doc-mode"&&(t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(t){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:t.end?t.end.push(this.sourceToken):t.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function AD(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new T0||null,prettyErrors:t}}function CD(e,t={}){const{lineCounter:n,prettyErrors:r}=AD(t),i=new zc(n==null?void 0:n.addNewLine),s=new A0(t);let a=null;for(const o of s.compose(i.parse(e),!0,e.length))if(!a)a=o;else if(a.options.logLevel!=="silent"){a.errors.push(new Co(o.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(a.errors.forEach(m0(e,n)),a.warnings.forEach(m0(e,n))),a}function SD(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const i=CD(e,n);if(!i)return null;if(i.warnings.forEach(s=>Gh(i.options.logLevel,s)),i.errors.length>0){if(i.options.logLevel!=="silent")throw i.errors[0];i.errors=[]}return i.toJS(Object.assign({reviver:r},n))}var B0=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function xD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ns(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function M0(e,t){for(var n="",r=0,i=-1,s=0,a,o=0;o<=e.length;++o){if(o<e.length)a=e.charCodeAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||s===1))if(i!==o-1&&s===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var u=n.lastIndexOf("/");if(u!==n.length-1){u===-1?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=o,s=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=o,s=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,s=0}else a===46&&s!==-1?++s:s=-1}return n}function wD(e,t){var n=t.dir||t.root,r=t.base||(t.name||"")+(t.ext||"");return n?n===t.root?n+r:n+e+r:r}var La={resolve:function(){for(var t="",n=!1,r,i=arguments.length-1;i>=-1&&!n;i--){var s;i>=0?s=arguments[i]:(r===void 0&&(r=process.cwd()),s=r),ns(s),s.length!==0&&(t=s+"/"+t,n=s.charCodeAt(0)===47)}return t=M0(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(ns(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=M0(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return ns(t),t.length>0&&t.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var t,n=0;n<arguments.length;++n){var r=arguments[n];ns(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":La.normalize(t)},relative:function(t,n){if(ns(t),ns(n),t===n||(t=La.resolve(t),n=La.resolve(n),t===n))return"";for(var r=1;r<t.length&&t.charCodeAt(r)===47;++r);for(var i=t.length,s=i-r,a=1;a<n.length&&n.charCodeAt(a)===47;++a);for(var o=n.length,u=o-a,l=s<u?s:u,C=-1,c=0;c<=l;++c){if(c===l){if(u>l){if(n.charCodeAt(a+c)===47)return n.slice(a+c+1);if(c===0)return n.slice(a+c)}else s>l&&(t.charCodeAt(r+c)===47?C=c:c===0&&(C=0));break}var B=t.charCodeAt(r+c),N=n.charCodeAt(a+c);if(B!==N)break;B===47&&(C=c)}var ee="";for(c=r+C+1;c<=i;++c)(c===i||t.charCodeAt(c)===47)&&(ee.length===0?ee+="..":ee+="/..");return ee.length>0?ee+n.slice(a+C):(a+=C,n.charCodeAt(a)===47&&++a,n.slice(a))},_makeLong:function(t){return t},dirname:function(t){if(ns(t),t.length===0)return".";for(var n=t.charCodeAt(0),r=n===47,i=-1,s=!0,a=t.length-1;a>=1;--a)if(n=t.charCodeAt(a),n===47){if(!s){i=a;break}}else s=!1;return i===-1?r?"/":".":r&&i===1?"//":t.slice(0,i)},basename:function(t,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');ns(t);var r=0,i=-1,s=!0,a;if(n!==void 0&&n.length>0&&n.length<=t.length){if(n.length===t.length&&n===t)return"";var o=n.length-1,u=-1;for(a=t.length-1;a>=0;--a){var l=t.charCodeAt(a);if(l===47){if(!s){r=a+1;break}}else u===-1&&(s=!1,u=a+1),o>=0&&(l===n.charCodeAt(o)?--o===-1&&(i=a):(o=-1,i=u))}return r===i?i=u:i===-1&&(i=t.length),t.slice(r,i)}else{for(a=t.length-1;a>=0;--a)if(t.charCodeAt(a)===47){if(!s){r=a+1;break}}else i===-1&&(s=!1,i=a+1);return i===-1?"":t.slice(r,i)}},extname:function(t){ns(t);for(var n=-1,r=0,i=-1,s=!0,a=0,o=t.length-1;o>=0;--o){var u=t.charCodeAt(o);if(u===47){if(!s){r=o+1;break}continue}i===-1&&(s=!1,i=o+1),u===46?n===-1?n=o:a!==1&&(a=1):n!==-1&&(a=-1)}return n===-1||i===-1||a===0||a===1&&n===i-1&&n===r+1?"":t.slice(n,i)},format:function(t){if(t===null||typeof t!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t);return wD("/",t)},parse:function(t){ns(t);var n={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return n;var r=t.charCodeAt(0),i=r===47,s;i?(n.root="/",s=1):s=0;for(var a=-1,o=0,u=-1,l=!0,C=t.length-1,c=0;C>=s;--C){if(r=t.charCodeAt(C),r===47){if(!l){o=C+1;break}continue}u===-1&&(l=!1,u=C+1),r===46?a===-1?a=C:c!==1&&(c=1):a!==-1&&(c=-1)}return a===-1||u===-1||c===0||c===1&&a===u-1&&a===o+1?u!==-1&&(o===0&&i?n.base=n.name=t.slice(1,u):n.base=n.name=t.slice(o,u)):(o===0&&i?(n.name=t.slice(1,a),n.base=t.slice(1,u)):(n.name=t.slice(o,a),n.base=t.slice(o,u)),n.ext=t.slice(a,u)),o>0?n.dir=t.slice(0,o-1):i&&(n.dir="/"),n},sep:"/",delimiter:":",win32:null,posix:null};La.posix=La;var Ws=La,I0={exports:{}};(function(e,t){(function(n){e.exports=n()})(function(){var n=(Qt,at)=>()=>(at||Qt((at={exports:{}}).exports,at),at.exports),r=n((Qt,at)=>{var Ke=function(ut){return ut&&ut.Math==Math&&ut};at.exports=Ke(typeof globalThis=="object"&&globalThis)||Ke(typeof window=="object"&&window)||Ke(typeof self=="object"&&self)||Ke(typeof B0=="object"&&B0)||function(){return this}()||Function("return this")()}),i=n((Qt,at)=>{at.exports=function(Ke){try{return!!Ke()}catch{return!0}}}),s=n((Qt,at)=>{var Ke=i();at.exports=!Ke(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),a=n((Qt,at)=>{var Ke=i();at.exports=!Ke(function(){var ut=(function(){}).bind();return typeof ut!="function"||ut.hasOwnProperty("prototype")})}),o=n((Qt,at)=>{var Ke=a(),ut=Function.prototype.call;at.exports=Ke?ut.bind(ut):function(){return ut.apply(ut,arguments)}}),u=n(Qt=>{var at={}.propertyIsEnumerable,Ke=Object.getOwnPropertyDescriptor,ut=Ke&&!at.call({1:2},1);Qt.f=ut?function(it){var St=Ke(this,it);return!!St&&St.enumerable}:at}),l=n((Qt,at)=>{at.exports=function(Ke,ut){return{enumerable:!(Ke&1),configurable:!(Ke&2),writable:!(Ke&4),value:ut}}}),C=n((Qt,at)=>{var Ke=a(),ut=Function.prototype,it=ut.call,St=Ke&&ut.bind.bind(it,it);at.exports=Ke?St:function(Pt){return function(){return it.apply(Pt,arguments)}}}),c=n((Qt,at)=>{var Ke=C(),ut=Ke({}.toString),it=Ke("".slice);at.exports=function(St){return it(ut(St),8,-1)}}),B=n((Qt,at)=>{var Ke=C(),ut=i(),it=c(),St=Object,Pt=Ke("".split);at.exports=ut(function(){return!St("z").propertyIsEnumerable(0)})?function(Yt){return it(Yt)=="String"?Pt(Yt,""):St(Yt)}:St}),N=n((Qt,at)=>{at.exports=function(Ke){return Ke==null}}),ee=n((Qt,at)=>{var Ke=N(),ut=TypeError;at.exports=function(it){if(Ke(it))throw ut("Can't call method on "+it);return it}}),ne=n((Qt,at)=>{var Ke=B(),ut=ee();at.exports=function(it){return Ke(ut(it))}}),O=n((Qt,at)=>{var Ke=typeof document=="object"&&document.all,ut=typeof Ke>"u"&&Ke!==void 0;at.exports={all:Ke,IS_HTMLDDA:ut}}),ae=n((Qt,at)=>{var Ke=O(),ut=Ke.all;at.exports=Ke.IS_HTMLDDA?function(it){return typeof it=="function"||it===ut}:function(it){return typeof it=="function"}}),we=n((Qt,at)=>{var Ke=ae(),ut=O(),it=ut.all;at.exports=ut.IS_HTMLDDA?function(St){return typeof St=="object"?St!==null:Ke(St)||St===it}:function(St){return typeof St=="object"?St!==null:Ke(St)}}),Te=n((Qt,at)=>{var Ke=r(),ut=ae(),it=function(St){return ut(St)?St:void 0};at.exports=function(St,Pt){return arguments.length<2?it(Ke[St]):Ke[St]&&Ke[St][Pt]}}),Ge=n((Qt,at)=>{var Ke=C();at.exports=Ke({}.isPrototypeOf)}),pe=n((Qt,at)=>{var Ke=Te();at.exports=Ke("navigator","userAgent")||""}),Se=n((Qt,at)=>{var Ke=r(),ut=pe(),it=Ke.process,St=Ke.Deno,Pt=it&&it.versions||St&&St.version,Yt=Pt&&Pt.v8,Vt,Ht;Yt&&(Vt=Yt.split("."),Ht=Vt[0]>0&&Vt[0]<4?1:+(Vt[0]+Vt[1])),!Ht&&ut&&(Vt=ut.match(/Edge\/(\d+)/),(!Vt||Vt[1]>=74)&&(Vt=ut.match(/Chrome\/(\d+)/),Vt&&(Ht=+Vt[1]))),at.exports=Ht}),Qe=n((Qt,at)=>{var Ke=Se(),ut=i();at.exports=!!Object.getOwnPropertySymbols&&!ut(function(){var it=Symbol();return!String(it)||!(Object(it)instanceof Symbol)||!Symbol.sham&&Ke&&Ke<41})}),mt=n((Qt,at)=>{var Ke=Qe();at.exports=Ke&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),Ae=n((Qt,at)=>{var Ke=Te(),ut=ae(),it=Ge(),St=mt(),Pt=Object;at.exports=St?function(Yt){return typeof Yt=="symbol"}:function(Yt){var Vt=Ke("Symbol");return ut(Vt)&&it(Vt.prototype,Pt(Yt))}}),Ne=n((Qt,at)=>{var Ke=String;at.exports=function(ut){try{return Ke(ut)}catch{return"Object"}}}),ze=n((Qt,at)=>{var Ke=ae(),ut=Ne(),it=TypeError;at.exports=function(St){if(Ke(St))return St;throw it(ut(St)+" is not a function")}}),qe=n((Qt,at)=>{var Ke=ze(),ut=N();at.exports=function(it,St){var Pt=it[St];return ut(Pt)?void 0:Ke(Pt)}}),jt=n((Qt,at)=>{var Ke=o(),ut=ae(),it=we(),St=TypeError;at.exports=function(Pt,Yt){var Vt,Ht;if(Yt==="string"&&ut(Vt=Pt.toString)&&!it(Ht=Ke(Vt,Pt))||ut(Vt=Pt.valueOf)&&!it(Ht=Ke(Vt,Pt))||Yt!=="string"&&ut(Vt=Pt.toString)&&!it(Ht=Ke(Vt,Pt)))return Ht;throw St("Can't convert object to primitive value")}}),fn=n((Qt,at)=>{at.exports=!1}),xn=n((Qt,at)=>{var Ke=r(),ut=Object.defineProperty;at.exports=function(it,St){try{ut(Ke,it,{value:St,configurable:!0,writable:!0})}catch{Ke[it]=St}return St}}),Lt=n((Qt,at)=>{var Ke=r(),ut=xn(),it="__core-js_shared__",St=Ke[it]||ut(it,{});at.exports=St}),Tt=n((Qt,at)=>{var Ke=fn(),ut=Lt();(at.exports=function(it,St){return ut[it]||(ut[it]=St!==void 0?St:{})})("versions",[]).push({version:"3.26.1",mode:Ke?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})}),qt=n((Qt,at)=>{var Ke=ee(),ut=Object;at.exports=function(it){return ut(Ke(it))}}),en=n((Qt,at)=>{var Ke=C(),ut=qt(),it=Ke({}.hasOwnProperty);at.exports=Object.hasOwn||function(St,Pt){return it(ut(St),Pt)}}),Ln=n((Qt,at)=>{var Ke=C(),ut=0,it=Math.random(),St=Ke(1 .toString);at.exports=function(Pt){return"Symbol("+(Pt===void 0?"":Pt)+")_"+St(++ut+it,36)}}),Un=n((Qt,at)=>{var Ke=r(),ut=Tt(),it=en(),St=Ln(),Pt=Qe(),Yt=mt(),Vt=ut("wks"),Ht=Ke.Symbol,pn=Ht&&Ht.for,yn=Yt?Ht:Ht&&Ht.withoutSetter||St;at.exports=function(vn){if(!it(Vt,vn)||!(Pt||typeof Vt[vn]=="string")){var dn="Symbol."+vn;Pt&&it(Ht,vn)?Vt[vn]=Ht[vn]:Yt&&pn?Vt[vn]=pn(dn):Vt[vn]=yn(dn)}return Vt[vn]}}),Pn=n((Qt,at)=>{var Ke=o(),ut=we(),it=Ae(),St=qe(),Pt=jt(),Yt=Un(),Vt=TypeError,Ht=Yt("toPrimitive");at.exports=function(pn,yn){if(!ut(pn)||it(pn))return pn;var vn=St(pn,Ht),dn;if(vn){if(yn===void 0&&(yn="default"),dn=Ke(vn,pn,yn),!ut(dn)||it(dn))return dn;throw Vt("Can't convert object to primitive value")}return yn===void 0&&(yn="number"),Pt(pn,yn)}}),zr=n((Qt,at)=>{var Ke=Pn(),ut=Ae();at.exports=function(it){var St=Ke(it,"string");return ut(St)?St:St+""}}),Qr=n((Qt,at)=>{var Ke=r(),ut=we(),it=Ke.document,St=ut(it)&&ut(it.createElement);at.exports=function(Pt){return St?it.createElement(Pt):{}}}),gi=n((Qt,at)=>{var Ke=s(),ut=i(),it=Qr();at.exports=!Ke&&!ut(function(){return Object.defineProperty(it("div"),"a",{get:function(){return 7}}).a!=7})}),ps=n(Qt=>{var at=s(),Ke=o(),ut=u(),it=l(),St=ne(),Pt=zr(),Yt=en(),Vt=gi(),Ht=Object.getOwnPropertyDescriptor;Qt.f=at?Ht:function(pn,yn){if(pn=St(pn),yn=Pt(yn),Vt)try{return Ht(pn,yn)}catch{}if(Yt(pn,yn))return it(!Ke(ut.f,pn,yn),pn[yn])}}),xi=n((Qt,at)=>{var Ke=s(),ut=i();at.exports=Ke&&ut(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})}),Hi=n((Qt,at)=>{var Ke=we(),ut=String,it=TypeError;at.exports=function(St){if(Ke(St))return St;throw it(ut(St)+" is not an object")}}),nr=n(Qt=>{var at=s(),Ke=gi(),ut=xi(),it=Hi(),St=zr(),Pt=TypeError,Yt=Object.defineProperty,Vt=Object.getOwnPropertyDescriptor,Ht="enumerable",pn="configurable",yn="writable";Qt.f=at?ut?function(vn,dn,_e){if(it(vn),dn=St(dn),it(_e),typeof vn=="function"&&dn==="prototype"&&"value"in _e&&yn in _e&&!_e[yn]){var wn=Vt(vn,dn);wn&&wn[yn]&&(vn[dn]=_e.value,_e={configurable:pn in _e?_e[pn]:wn[pn],enumerable:Ht in _e?_e[Ht]:wn[Ht],writable:!1})}return Yt(vn,dn,_e)}:Yt:function(vn,dn,_e){if(it(vn),dn=St(dn),it(_e),Ke)try{return Yt(vn,dn,_e)}catch{}if("get"in _e||"set"in _e)throw Pt("Accessors not supported");return"value"in _e&&(vn[dn]=_e.value),vn}}),Wu=n((Qt,at)=>{var Ke=s(),ut=nr(),it=l();at.exports=Ke?function(St,Pt,Yt){return ut.f(St,Pt,it(1,Yt))}:function(St,Pt,Yt){return St[Pt]=Yt,St}}),lf=n((Qt,at)=>{var Ke=s(),ut=en(),it=Function.prototype,St=Ke&&Object.getOwnPropertyDescriptor,Pt=ut(it,"name"),Yt=Pt&&(function(){}).name==="something",Vt=Pt&&(!Ke||Ke&&St(it,"name").configurable);at.exports={EXISTS:Pt,PROPER:Yt,CONFIGURABLE:Vt}}),$a=n((Qt,at)=>{var Ke=C(),ut=ae(),it=Lt(),St=Ke(Function.toString);ut(it.inspectSource)||(it.inspectSource=function(Pt){return St(Pt)}),at.exports=it.inspectSource}),cf=n((Qt,at)=>{var Ke=r(),ut=ae(),it=Ke.WeakMap;at.exports=ut(it)&&/native code/.test(String(it))}),kr=n((Qt,at)=>{var Ke=Tt(),ut=Ln(),it=Ke("keys");at.exports=function(St){return it[St]||(it[St]=ut(St))}}),Gu=n((Qt,at)=>{at.exports={}}),ff=n((Qt,at)=>{var Ke=cf(),ut=r(),it=we(),St=Wu(),Pt=en(),Yt=Lt(),Vt=kr(),Ht=Gu(),pn="Object already initialized",yn=ut.TypeError,vn=ut.WeakMap,dn,_e,wn,On=function(Re){return wn(Re)?_e(Re):dn(Re,{})},er=function(Re){return function(ei){var Ds;if(!it(ei)||(Ds=_e(ei)).type!==Re)throw yn("Incompatible receiver, "+Re+" required");return Ds}};Ke||Yt.state?(Qn=Yt.state||(Yt.state=new vn),Qn.get=Qn.get,Qn.has=Qn.has,Qn.set=Qn.set,dn=function(Re,ei){if(Qn.has(Re))throw yn(pn);return ei.facade=Re,Qn.set(Re,ei),ei},_e=function(Re){return Qn.get(Re)||{}},wn=function(Re){return Qn.has(Re)}):(xr=Vt("state"),Ht[xr]=!0,dn=function(Re,ei){if(Pt(Re,xr))throw yn(pn);return ei.facade=Re,St(Re,xr,ei),ei},_e=function(Re){return Pt(Re,xr)?Re[xr]:{}},wn=function(Re){return Pt(Re,xr)});var Qn,xr;at.exports={set:dn,get:_e,has:wn,enforce:On,getterFor:er}}),ds=n((Qt,at)=>{var Ke=i(),ut=ae(),it=en(),St=s(),Pt=lf().CONFIGURABLE,Yt=$a(),Vt=ff(),Ht=Vt.enforce,pn=Vt.get,yn=Object.defineProperty,vn=St&&!Ke(function(){return yn(function(){},"length",{value:8}).length!==8}),dn=String(String).split("String"),_e=at.exports=function(wn,On,er){String(On).slice(0,7)==="Symbol("&&(On="["+String(On).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),er&&er.getter&&(On="get "+On),er&&er.setter&&(On="set "+On),(!it(wn,"name")||Pt&&wn.name!==On)&&(St?yn(wn,"name",{value:On,configurable:!0}):wn.name=On),vn&&er&&it(er,"arity")&&wn.length!==er.arity&&yn(wn,"length",{value:er.arity});try{er&&it(er,"constructor")&&er.constructor?St&&yn(wn,"prototype",{writable:!1}):wn.prototype&&(wn.prototype=void 0)}catch{}var Qn=Ht(wn);return it(Qn,"source")||(Qn.source=dn.join(typeof On=="string"?On:"")),wn};Function.prototype.toString=_e(function(){return ut(this)&&pn(this).source||Yt(this)},"toString")}),Va=n((Qt,at)=>{var Ke=ae(),ut=nr(),it=ds(),St=xn();at.exports=function(Pt,Yt,Vt,Ht){Ht||(Ht={});var pn=Ht.enumerable,yn=Ht.name!==void 0?Ht.name:Yt;if(Ke(Vt)&&it(Vt,yn,Ht),Ht.global)pn?Pt[Yt]=Vt:St(Yt,Vt);else{try{Ht.unsafe?Pt[Yt]&&(pn=!0):delete Pt[Yt]}catch{}pn?Pt[Yt]=Vt:ut.f(Pt,Yt,{value:Vt,enumerable:!1,configurable:!Ht.nonConfigurable,writable:!Ht.nonWritable})}return Pt}}),hs=n((Qt,at)=>{var Ke=Math.ceil,ut=Math.floor;at.exports=Math.trunc||function(it){var St=+it;return(St>0?ut:Ke)(St)}}),ko=n((Qt,at)=>{var Ke=hs();at.exports=function(ut){var it=+ut;return it!==it||it===0?0:Ke(it)}}),pf=n((Qt,at)=>{var Ke=ko(),ut=Math.max,it=Math.min;at.exports=function(St,Pt){var Yt=Ke(St);return Yt<0?ut(Yt+Pt,0):it(Yt,Pt)}}),df=n((Qt,at)=>{var Ke=ko(),ut=Math.min;at.exports=function(it){return it>0?ut(Ke(it),9007199254740991):0}}),Xs=n((Qt,at)=>{var Ke=df();at.exports=function(ut){return Ke(ut.length)}}),Ju=n((Qt,at)=>{var Ke=ne(),ut=pf(),it=Xs(),St=function(Pt){return function(Yt,Vt,Ht){var pn=Ke(Yt),yn=it(pn),vn=ut(Ht,yn),dn;if(Pt&&Vt!=Vt){for(;yn>vn;)if(dn=pn[vn++],dn!=dn)return!0}else for(;yn>vn;vn++)if((Pt||vn in pn)&&pn[vn]===Vt)return Pt||vn||0;return!Pt&&-1}};at.exports={includes:St(!0),indexOf:St(!1)}}),hf=n((Qt,at)=>{var Ke=C(),ut=en(),it=ne(),St=Ju().indexOf,Pt=Gu(),Yt=Ke([].push);at.exports=function(Vt,Ht){var pn=it(Vt),yn=0,vn=[],dn;for(dn in pn)!ut(Pt,dn)&&ut(pn,dn)&&Yt(vn,dn);for(;Ht.length>yn;)ut(pn,dn=Ht[yn++])&&(~St(vn,dn)||Yt(vn,dn));return vn}}),Lo=n((Qt,at)=>{at.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),mf=n(Qt=>{var at=hf(),Ke=Lo(),ut=Ke.concat("length","prototype");Qt.f=Object.getOwnPropertyNames||function(it){return at(it,ut)}}),gf=n(Qt=>{Qt.f=Object.getOwnPropertySymbols}),Yu=n((Qt,at)=>{var Ke=Te(),ut=C(),it=mf(),St=gf(),Pt=Hi(),Yt=ut([].concat);at.exports=Ke("Reflect","ownKeys")||function(Vt){var Ht=it.f(Pt(Vt)),pn=St.f;return pn?Yt(Ht,pn(Vt)):Ht}}),Hu=n((Qt,at)=>{var Ke=en(),ut=Yu(),it=ps(),St=nr();at.exports=function(Pt,Yt,Vt){for(var Ht=ut(Yt),pn=St.f,yn=it.f,vn=0;vn<Ht.length;vn++){var dn=Ht[vn];!Ke(Pt,dn)&&!(Vt&&Ke(Vt,dn))&&pn(Pt,dn,yn(Yt,dn))}}}),yf=n((Qt,at)=>{var Ke=i(),ut=ae(),it=/#|\.prototype\./,St=function(pn,yn){var vn=Yt[Pt(pn)];return vn==Ht?!0:vn==Vt?!1:ut(yn)?Ke(yn):!!yn},Pt=St.normalize=function(pn){return String(pn).replace(it,".").toLowerCase()},Yt=St.data={},Vt=St.NATIVE="N",Ht=St.POLYFILL="P";at.exports=St}),qa=n((Qt,at)=>{var Ke=r(),ut=ps().f,it=Wu(),St=Va(),Pt=xn(),Yt=Hu(),Vt=yf();at.exports=function(Ht,pn){var yn=Ht.target,vn=Ht.global,dn=Ht.stat,_e,wn,On,er,Qn,xr;if(vn?wn=Ke:dn?wn=Ke[yn]||Pt(yn,{}):wn=(Ke[yn]||{}).prototype,wn)for(On in pn){if(Qn=pn[On],Ht.dontCallGetSet?(xr=ut(wn,On),er=xr&&xr.value):er=wn[On],_e=Vt(vn?On:yn+(dn?".":"#")+On,Ht.forced),!_e&&er!==void 0){if(typeof Qn==typeof er)continue;Yt(Qn,er)}(Ht.sham||er&&er.sham)&&it(Qn,"sham",!0),St(wn,On,Qn,Ht)}}}),zu=n((Qt,at)=>{var Ke=c();at.exports=Array.isArray||function(ut){return Ke(ut)=="Array"}}),Df=n((Qt,at)=>{var Ke=TypeError,ut=9007199254740991;at.exports=function(it){if(it>ut)throw Ke("Maximum allowed index exceeded");return it}}),bf=n((Qt,at)=>{var Ke=c(),ut=C();at.exports=function(it){if(Ke(it)==="Function")return ut(it)}}),Ua=n((Qt,at)=>{var Ke=bf(),ut=ze(),it=a(),St=Ke(Ke.bind);at.exports=function(Pt,Yt){return ut(Pt),Yt===void 0?Pt:it?St(Pt,Yt):function(){return Pt.apply(Yt,arguments)}}}),Qu=n((Qt,at)=>{var Ke=zu(),ut=Xs(),it=Df(),St=Ua(),Pt=function(Yt,Vt,Ht,pn,yn,vn,dn,_e){for(var wn=yn,On=0,er=dn?St(dn,_e):!1,Qn,xr;On<pn;)On in Ht&&(Qn=er?er(Ht[On],On,Vt):Ht[On],vn>0&&Ke(Qn)?(xr=ut(Qn),wn=Pt(Yt,Vt,Qn,xr,wn,vn-1)-1):(it(wn+1),Yt[wn]=Qn),wn++),On++;return wn};at.exports=Pt}),vf=n((Qt,at)=>{var Ke=Un(),ut=Ke("toStringTag"),it={};it[ut]="z",at.exports=String(it)==="[object z]"}),ms=n((Qt,at)=>{var Ke=vf(),ut=ae(),it=c(),St=Un(),Pt=St("toStringTag"),Yt=Object,Vt=it(function(){return arguments}())=="Arguments",Ht=function(pn,yn){try{return pn[yn]}catch{}};at.exports=Ke?it:function(pn){var yn,vn,dn;return pn===void 0?"Undefined":pn===null?"Null":typeof(vn=Ht(yn=Yt(pn),Pt))=="string"?vn:Vt?it(yn):(dn=it(yn))=="Object"&&ut(yn.callee)?"Arguments":dn}}),gs=n((Qt,at)=>{var Ke=C(),ut=i(),it=ae(),St=ms(),Pt=Te(),Yt=$a(),Vt=function(){},Ht=[],pn=Pt("Reflect","construct"),yn=/^\s*(?:class|function)\b/,vn=Ke(yn.exec),dn=!yn.exec(Vt),_e=function(On){if(!it(On))return!1;try{return pn(Vt,Ht,On),!0}catch{return!1}},wn=function(On){if(!it(On))return!1;switch(St(On)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return dn||!!vn(yn,Yt(On))}catch{return!0}};wn.sham=!0,at.exports=!pn||ut(function(){var On;return _e(_e.call)||!_e(Object)||!_e(function(){On=!0})||On})?wn:_e}),Ef=n((Qt,at)=>{var Ke=zu(),ut=gs(),it=we(),St=Un(),Pt=St("species"),Yt=Array;at.exports=function(Vt){var Ht;return Ke(Vt)&&(Ht=Vt.constructor,ut(Ht)&&(Ht===Yt||Ke(Ht.prototype))?Ht=void 0:it(Ht)&&(Ht=Ht[Pt],Ht===null&&(Ht=void 0))),Ht===void 0?Yt:Ht}}),ys=n((Qt,at)=>{var Ke=Ef();at.exports=function(ut,it){return new(Ke(ut))(it===0?0:it)}}),Xu=n(()=>{var Qt=qa(),at=Qu(),Ke=ze(),ut=qt(),it=Xs(),St=ys();Qt({target:"Array",proto:!0},{flatMap:function(Pt){var Yt=ut(this),Vt=it(Yt),Ht;return Ke(Pt),Ht=St(Yt,0),Ht.length=at(Ht,Yt,Yt,Vt,0,1,Pt,arguments.length>1?arguments[1]:void 0),Ht}})}),Ku=n((Qt,at)=>{at.exports={}}),Af=n((Qt,at)=>{var Ke=Un(),ut=Ku(),it=Ke("iterator"),St=Array.prototype;at.exports=function(Pt){return Pt!==void 0&&(ut.Array===Pt||St[it]===Pt)}}),Zu=n((Qt,at)=>{var Ke=ms(),ut=qe(),it=N(),St=Ku(),Pt=Un(),Yt=Pt("iterator");at.exports=function(Vt){if(!it(Vt))return ut(Vt,Yt)||ut(Vt,"@@iterator")||St[Ke(Vt)]}}),Cf=n((Qt,at)=>{var Ke=o(),ut=ze(),it=Hi(),St=Ne(),Pt=Zu(),Yt=TypeError;at.exports=function(Vt,Ht){var pn=arguments.length<2?Pt(Vt):Ht;if(ut(pn))return it(Ke(pn,Vt));throw Yt(St(Vt)+" is not iterable")}}),el=n((Qt,at)=>{var Ke=o(),ut=Hi(),it=qe();at.exports=function(St,Pt,Yt){var Vt,Ht;ut(St);try{if(Vt=it(St,"return"),!Vt){if(Pt==="throw")throw Yt;return Yt}Vt=Ke(Vt,St)}catch(pn){Ht=!0,Vt=pn}if(Pt==="throw")throw Yt;if(Ht)throw Vt;return ut(Vt),Yt}}),Sf=n((Qt,at)=>{var Ke=Ua(),ut=o(),it=Hi(),St=Ne(),Pt=Af(),Yt=Xs(),Vt=Ge(),Ht=Cf(),pn=Zu(),yn=el(),vn=TypeError,dn=function(wn,On){this.stopped=wn,this.result=On},_e=dn.prototype;at.exports=function(wn,On,er){var Qn=er&&er.that,xr=!!(er&&er.AS_ENTRIES),Re=!!(er&&er.IS_RECORD),ei=!!(er&&er.IS_ITERATOR),Ds=!!(er&&er.INTERRUPTED),Is=Ke(On,Qn),yi,rs,Vr,Ga,Wr,Ja,is,Ks=function(ri){return yi&&yn(yi,"normal",ri),new dn(!0,ri)},Zs=function(ri){return xr?(it(ri),Ds?Is(ri[0],ri[1],Ks):Is(ri[0],ri[1])):Ds?Is(ri,Ks):Is(ri)};if(Re)yi=wn.iterator;else if(ei)yi=wn;else{if(rs=pn(wn),!rs)throw vn(St(wn)+" is not iterable");if(Pt(rs)){for(Vr=0,Ga=Yt(wn);Ga>Vr;Vr++)if(Wr=Zs(wn[Vr]),Wr&&Vt(_e,Wr))return Wr;return new dn(!1)}yi=Ht(wn,rs)}for(Ja=Re?wn.next:yi.next;!(is=ut(Ja,yi)).done;){try{Wr=Zs(is.value)}catch(ri){yn(yi,"throw",ri)}if(typeof Wr=="object"&&Wr&&Vt(_e,Wr))return Wr}return new dn(!1)}}),tl=n((Qt,at)=>{var Ke=zr(),ut=nr(),it=l();at.exports=function(St,Pt,Yt){var Vt=Ke(Pt);Vt in St?ut.f(St,Vt,it(0,Yt)):St[Vt]=Yt}}),Wa=n(()=>{var Qt=qa(),at=Sf(),Ke=tl();Qt({target:"Object",stat:!0},{fromEntries:function(ut){var it={};return at(ut,function(St,Pt){Ke(it,St,Pt)},{AS_ENTRIES:!0}),it}})}),nl=n((Qt,at)=>{var Ke=ds(),ut=nr();at.exports=function(it,St,Pt){return Pt.get&&Ke(Pt.get,St,{getter:!0}),Pt.set&&Ke(Pt.set,St,{setter:!0}),ut.f(it,St,Pt)}}),rl=n((Qt,at)=>{var Ke=Hi();at.exports=function(){var ut=Ke(this),it="";return ut.hasIndices&&(it+="d"),ut.global&&(it+="g"),ut.ignoreCase&&(it+="i"),ut.multiline&&(it+="m"),ut.dotAll&&(it+="s"),ut.unicode&&(it+="u"),ut.unicodeSets&&(it+="v"),ut.sticky&&(it+="y"),it}}),il=n(()=>{var Qt=r(),at=s(),Ke=nl(),ut=rl(),it=i(),St=Qt.RegExp,Pt=St.prototype,Yt=at&&it(function(){var Vt=!0;try{St(".","d")}catch{Vt=!1}var Ht={},pn="",yn=Vt?"dgimsy":"gimsy",vn=function(On,er){Object.defineProperty(Ht,On,{get:function(){return pn+=er,!0}})},dn={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};Vt&&(dn.hasIndices="d");for(var _e in dn)vn(_e,dn[_e]);var wn=Object.getOwnPropertyDescriptor(Pt,"flags").get.call(Ht);return wn!==yn||pn!==yn});Yt&&Ke(Pt,"flags",{configurable:!0,get:ut})}),xf=n(()=>{var Qt=qa(),at=r();Qt({global:!0,forced:at.globalThis!==at},{globalThis:at})}),wf=n(()=>{xf()}),Po=n(()=>{var Qt=qa(),at=Qu(),Ke=qt(),ut=Xs(),it=ko(),St=ys();Qt({target:"Array",proto:!0},{flat:function(){var Pt=arguments.length?arguments[0]:void 0,Yt=Ke(this),Vt=ut(Yt),Ht=St(Yt,0);return Ht.length=at(Ht,Yt,Yt,Vt,0,Pt===void 0?1:it(Pt)),Ht}})}),Ff=n((Qt,at)=>{var Ke=["cliName","cliCategory","cliDescription"],ut=["_"],it=["languageId"];function St(m,E){if(m==null)return{};var p=Pt(m,E),b,D;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(m);for(D=0;D<f.length;D++)b=f[D],!(E.indexOf(b)>=0)&&Object.prototype.propertyIsEnumerable.call(m,b)&&(p[b]=m[b])}return p}function Pt(m,E){if(m==null)return{};var p={},b=Object.keys(m),D,f;for(f=0;f<b.length;f++)D=b[f],!(E.indexOf(D)>=0)&&(p[D]=m[D]);return p}Xu(),Wa(),il(),wf(),Po();var Yt=Object.create,Vt=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,pn=Object.getOwnPropertyNames,yn=Object.getPrototypeOf,vn=Object.prototype.hasOwnProperty,dn=(m,E)=>function(){return m&&(E=(0,m[pn(m)[0]])(m=0)),E},_e=(m,E)=>function(){return E||(0,m[pn(m)[0]])((E={exports:{}}).exports,E),E.exports},wn=(m,E)=>{for(var p in E)Vt(m,p,{get:E[p],enumerable:!0})},On=(m,E,p,b)=>{if(E&&typeof E=="object"||typeof E=="function")for(let D of pn(E))!vn.call(m,D)&&D!==p&&Vt(m,D,{get:()=>E[D],enumerable:!(b=Ht(E,D))||b.enumerable});return m},er=(m,E,p)=>(p=m!=null?Yt(yn(m)):{},On(E||!m||!m.__esModule?Vt(p,"default",{value:m,enumerable:!0}):p,m)),Qn=m=>On(Vt({},"__esModule",{value:!0}),m),xr,Re=dn({"<define:process>"(){xr={env:{},argv:[]}}}),ei=_e({"package.json"(m,E){E.exports={version:"2.8.8"}}}),Ds=_e({"node_modules/diff/lib/diff/base.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0}),m.default=E;function E(){}E.prototype={diff:function(D,f){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},h=d.callback;typeof d=="function"&&(h=d,d={}),this.options=d;var v=this;function S($){return h?(setTimeout(function(){h(void 0,$)},0),!0):$}D=this.castInput(D),f=this.castInput(f),D=this.removeEmpty(this.tokenize(D)),f=this.removeEmpty(this.tokenize(f));var L=f.length,_=D.length,k=1,A=L+_,x=[{newPos:-1,components:[]}],j=this.extractCommon(x[0],f,D,0);if(x[0].newPos+1>=L&&j+1>=_)return S([{value:this.join(f),count:f.length}]);function Q(){for(var $=-1*k;$<=k;$+=2){var X=void 0,G=x[$-1],re=x[$+1],Z=(re?re.newPos:0)-$;G&&(x[$-1]=void 0);var De=G&&G.newPos+1<L,F=re&&0<=Z&&Z<_;if(!De&&!F){x[$]=void 0;continue}if(!De||F&&G.newPos<re.newPos?(X=b(re),v.pushComponent(X.components,void 0,!0)):(X=G,X.newPos++,v.pushComponent(X.components,!0,void 0)),Z=v.extractCommon(X,f,D,$),X.newPos+1>=L&&Z+1>=_)return S(p(v,X.components,f,D,v.useLongestToken));x[$]=X}k++}if(h)(function $(){setTimeout(function(){if(k>A)return h();Q()||$()},0)})();else for(;k<=A;){var te=Q();if(te)return te}},pushComponent:function(D,f,d){var h=D[D.length-1];h&&h.added===f&&h.removed===d?D[D.length-1]={count:h.count+1,added:f,removed:d}:D.push({count:1,added:f,removed:d})},extractCommon:function(D,f,d,h){for(var v=f.length,S=d.length,L=D.newPos,_=L-h,k=0;L+1<v&&_+1<S&&this.equals(f[L+1],d[_+1]);)L++,_++,k++;return k&&D.components.push({count:k}),D.newPos=L,_},equals:function(D,f){return this.options.comparator?this.options.comparator(D,f):D===f||this.options.ignoreCase&&D.toLowerCase()===f.toLowerCase()},removeEmpty:function(D){for(var f=[],d=0;d<D.length;d++)D[d]&&f.push(D[d]);return f},castInput:function(D){return D},tokenize:function(D){return D.split("")},join:function(D){return D.join("")}};function p(D,f,d,h,v){for(var S=0,L=f.length,_=0,k=0;S<L;S++){var A=f[S];if(A.removed){if(A.value=D.join(h.slice(k,k+A.count)),k+=A.count,S&&f[S-1].added){var x=f[S-1];f[S-1]=f[S],f[S]=x}}else{if(!A.added&&v){var j=d.slice(_,_+A.count);j=j.map(function(te,$){var X=h[k+$];return X.length>te.length?X:te}),A.value=D.join(j)}else A.value=D.join(d.slice(_,_+A.count));_+=A.count,A.added||(k+=A.count)}}var Q=f[L-1];return L>1&&typeof Q.value=="string"&&(Q.added||Q.removed)&&D.equals("",Q.value)&&(f[L-2].value+=Q.value,f.pop()),f}function b(D){return{newPos:D.newPos,components:D.components.slice(0)}}}}),Is=_e({"node_modules/diff/lib/diff/array.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0}),m.diffArrays=D,m.arrayDiff=void 0;var E=p(Ds());function p(f){return f&&f.__esModule?f:{default:f}}var b=new E.default;m.arrayDiff=b,b.tokenize=function(f){return f.slice()},b.join=b.removeEmpty=function(f){return f};function D(f,d,h){return b.diff(f,d,h)}}}),yi=_e({"src/document/doc-builders.js"(m,E){Re();function p(R){return{type:"concat",parts:R}}function b(R){return{type:"indent",contents:R}}function D(R,y){return{type:"align",contents:y,n:R}}function f(R){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"group",id:y.id,contents:R,break:!!y.shouldBreak,expandedStates:y.expandedStates}}function d(R){return D(Number.NEGATIVE_INFINITY,R)}function h(R){return D({type:"root"},R)}function v(R){return D(-1,R)}function S(R,y){return f(R[0],Object.assign(Object.assign({},y),{},{expandedStates:R}))}function L(R){return{type:"fill",parts:R}}function _(R,y){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return{type:"if-break",breakContents:R,flatContents:y,groupId:T.groupId}}function k(R,y){return{type:"indent-if-break",contents:R,groupId:y.groupId,negate:y.negate}}function A(R){return{type:"line-suffix",contents:R}}var x={type:"line-suffix-boundary"},j={type:"break-parent"},Q={type:"trim"},te={type:"line",hard:!0},$={type:"line",hard:!0,literal:!0},X={type:"line"},G={type:"line",soft:!0},re=p([te,j]),Z=p([$,j]),De={type:"cursor",placeholder:Symbol("cursor")};function F(R,y){let T=[];for(let M=0;M<y.length;M++)M!==0&&T.push(R),T.push(y[M]);return p(T)}function J(R,y,T){let M=R;if(y>0){for(let q=0;q<Math.floor(y/T);++q)M=b(M);M=D(y%T,M),M=D(Number.NEGATIVE_INFINITY,M)}return M}function w(R,y){return{type:"label",label:R,contents:y}}E.exports={concat:p,join:F,line:X,softline:G,hardline:re,literalline:Z,group:f,conditionalGroup:S,fill:L,lineSuffix:A,lineSuffixBoundary:x,cursor:De,breakParent:j,ifBreak:_,trim:Q,indent:b,indentIfBreak:k,align:D,addAlignmentToDoc:J,markAsRoot:h,dedentToRoot:d,dedent:v,hardlineWithoutBreakParent:te,literallineWithoutBreakParent:$,label:w}}}),rs=_e({"src/common/end-of-line.js"(m,E){Re();function p(d){let h=d.indexOf("\r");return h>=0?d.charAt(h+1)===`
144
- `?"crlf":"cr":"lf"}function b(d){switch(d){case"cr":return"\r";case"crlf":return`\r
145
- `;default:return`
146
- `}}function D(d,h){let v;switch(h){case`
147
- `:v=/\n/g;break;case"\r":v=/\r/g;break;case`\r
148
- `:v=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(h)}.`)}let S=d.match(v);return S?S.length:0}function f(d){return d.replace(/\r\n?/g,`
149
- `)}E.exports={guessEndOfLine:p,convertEndOfLineToChars:b,countEndOfLineChars:D,normalizeEndOfLine:f}}}),Vr=_e({"src/utils/get-last.js"(m,E){Re();var p=b=>b[b.length-1];E.exports=p}});function Ga(){let{onlyFirst:m=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},E=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(E,m?void 0:"g")}var Wr=dn({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){Re()}});function Ja(m){if(typeof m!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof m}\``);return m.replace(Ga(),"")}var is=dn({"node_modules/strip-ansi/index.js"(){Re(),Wr()}});function Ks(m){return Number.isInteger(m)?m>=4352&&(m<=4447||m===9001||m===9002||11904<=m&&m<=12871&&m!==12351||12880<=m&&m<=19903||19968<=m&&m<=42182||43360<=m&&m<=43388||44032<=m&&m<=55203||63744<=m&&m<=64255||65040<=m&&m<=65049||65072<=m&&m<=65131||65281<=m&&m<=65376||65504<=m&&m<=65510||110592<=m&&m<=110593||127488<=m&&m<=127569||131072<=m&&m<=262141):!1}var Zs=dn({"node_modules/is-fullwidth-code-point/index.js"(){Re()}}),ri=_e({"node_modules/emoji-regex/index.js"(m,E){Re(),E.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67)\uDB40\uDC7F|(?:\uD83E\uDDD1\uD83C\uDFFF\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFC-\uDFFF])|\uD83D\uDC68(?:\uD83C\uDFFB(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|[\u2695\u2696\u2708]\uFE0F|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))?|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFF]))|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])\uFE0F|\u200D(?:(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D[\uDC66\uDC67])|\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC)?|(?:\uD83D\uDC69(?:\uD83C\uDFFB\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|(?:\uD83C[\uDFFC-\uDFFF])\u200D\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69]))|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC69(?:\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83E\uDDD1(?:\u200D(?:\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|\uD83D\uDE36\u200D\uD83C\uDF2B|\uD83C\uDFF3\uFE0F\u200D\u26A7|\uD83D\uDC3B\u200D\u2744|(?:(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\uD83C\uDFF4\u200D\u2620|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])\u200D[\u2640\u2642]|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u2600-\u2604\u260E\u2611\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26B0\u26B1\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0\u26F1\u26F4\u26F7\u26F8\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u3030\u303D\u3297\u3299]|\uD83C[\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]|\uD83D[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3])\uFE0F|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDE35\u200D\uD83D\uDCAB|\uD83D\uDE2E\u200D\uD83D\uDCA8|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83E\uDDD1(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83D\uDC69(?:\uD83C\uDFFF|\uD83C\uDFFE|\uD83C\uDFFD|\uD83C\uDFFC|\uD83C\uDFFB)?|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF6\uD83C\uDDE6|\uD83C\uDDF4\uD83C\uDDF2|\uD83D\uDC08\u200D\u2B1B|\u2764\uFE0F\u200D(?:\uD83D\uDD25|\uD83E\uDE79)|\uD83D\uDC41\uFE0F|\uD83C\uDFF3\uFE0F|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|[#\*0-9]\uFE0F\u20E3|\u2764\uFE0F|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|\uD83C\uDFF4|(?:[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270C\u270D]|\uD83D[\uDD74\uDD90])(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])|[\u270A\u270B]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC08\uDC15\uDC3B\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE2E\uDE35\uDE36\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5]|\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD]|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF]|[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0D\uDD0E\uDD10-\uDD17\uDD1D\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78\uDD7A-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCB\uDDD0\uDDE0-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6]|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5-\uDED7\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDD78\uDD7A-\uDDCB\uDDCD-\uDDFF\uDE70-\uDE74\uDE78-\uDE7A\uDE80-\uDE86\uDE90-\uDEA8\uDEB0-\uDEB6\uDEC0-\uDEC2\uDED0-\uDED6])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0C\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDD77\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}}}),sl={};wn(sl,{default:()=>al});function al(m){if(typeof m!="string"||m.length===0||(m=Ja(m),m.length===0))return 0;m=m.replace((0,ol.default)()," ");let E=0;for(let p=0;p<m.length;p++){let b=m.codePointAt(p);b<=31||b>=127&&b<=159||b>=768&&b<=879||(b>65535&&p++,E+=Ks(b)?2:1)}return E}var ol,Nf=dn({"node_modules/string-width/index.js"(){Re(),is(),Zs(),ol=er(ri())}}),ul=_e({"src/utils/get-string-width.js"(m,E){Re();var p=(Nf(),Qn(sl)).default,b=/[^\x20-\x7F]/;function D(f){return f?b.test(f)?p(f):f.length:0}E.exports=D}}),ea=_e({"src/document/doc-utils.js"(m,E){Re();var p=Vr(),{literalline:b,join:D}=yi(),f=y=>Array.isArray(y)||y&&y.type==="concat",d=y=>{if(Array.isArray(y))return y;if(y.type!=="concat"&&y.type!=="fill")throw new Error("Expect doc type to be `concat` or `fill`.");return y.parts},h={};function v(y,T,M,q){let U=[y];for(;U.length>0;){let z=U.pop();if(z===h){M(U.pop());continue}if(M&&U.push(z,h),!T||T(z)!==!1)if(f(z)||z.type==="fill"){let ie=d(z);for(let ce=ie.length,ge=ce-1;ge>=0;--ge)U.push(ie[ge])}else if(z.type==="if-break")z.flatContents&&U.push(z.flatContents),z.breakContents&&U.push(z.breakContents);else if(z.type==="group"&&z.expandedStates)if(q)for(let ie=z.expandedStates.length,ce=ie-1;ce>=0;--ce)U.push(z.expandedStates[ce]);else U.push(z.contents);else z.contents&&U.push(z.contents)}}function S(y,T){let M=new Map;return q(y);function q(z){if(M.has(z))return M.get(z);let ie=U(z);return M.set(z,ie),ie}function U(z){if(Array.isArray(z))return T(z.map(q));if(z.type==="concat"||z.type==="fill"){let ie=z.parts.map(q);return T(Object.assign(Object.assign({},z),{},{parts:ie}))}if(z.type==="if-break"){let ie=z.breakContents&&q(z.breakContents),ce=z.flatContents&&q(z.flatContents);return T(Object.assign(Object.assign({},z),{},{breakContents:ie,flatContents:ce}))}if(z.type==="group"&&z.expandedStates){let ie=z.expandedStates.map(q),ce=ie[0];return T(Object.assign(Object.assign({},z),{},{contents:ce,expandedStates:ie}))}if(z.contents){let ie=q(z.contents);return T(Object.assign(Object.assign({},z),{},{contents:ie}))}return T(z)}}function L(y,T,M){let q=M,U=!1;function z(ie){let ce=T(ie);if(ce!==void 0&&(U=!0,q=ce),U)return!1}return v(y,z),q}function _(y){if(y.type==="group"&&y.break||y.type==="line"&&y.hard||y.type==="break-parent")return!0}function k(y){return L(y,_,!1)}function A(y){if(y.length>0){let T=p(y);!T.expandedStates&&!T.break&&(T.break="propagated")}return null}function x(y){let T=new Set,M=[];function q(z){if(z.type==="break-parent"&&A(M),z.type==="group"){if(M.push(z),T.has(z))return!1;T.add(z)}}function U(z){z.type==="group"&&M.pop().break&&A(M)}v(y,q,U,!0)}function j(y){return y.type==="line"&&!y.hard?y.soft?"":" ":y.type==="if-break"?y.flatContents||"":y}function Q(y){return S(y,j)}var te=(y,T)=>y&&y.type==="line"&&y.hard&&T&&T.type==="break-parent";function $(y){if(!y)return y;if(f(y)||y.type==="fill"){let T=d(y);for(;T.length>1&&te(...T.slice(-2));)T.length-=2;if(T.length>0){let M=$(p(T));T[T.length-1]=M}return Array.isArray(y)?T:Object.assign(Object.assign({},y),{},{parts:T})}switch(y.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":{let T=$(y.contents);return Object.assign(Object.assign({},y),{},{contents:T})}case"if-break":{let T=$(y.breakContents),M=$(y.flatContents);return Object.assign(Object.assign({},y),{},{breakContents:T,flatContents:M})}}return y}function X(y){return $(re(y))}function G(y){switch(y.type){case"fill":if(y.parts.every(M=>M===""))return"";break;case"group":if(!y.contents&&!y.id&&!y.break&&!y.expandedStates)return"";if(y.contents.type==="group"&&y.contents.id===y.id&&y.contents.break===y.break&&y.contents.expandedStates===y.expandedStates)return y.contents;break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!y.contents)return"";break;case"if-break":if(!y.flatContents&&!y.breakContents)return"";break}if(!f(y))return y;let T=[];for(let M of d(y)){if(!M)continue;let[q,...U]=f(M)?d(M):[M];typeof q=="string"&&typeof p(T)=="string"?T[T.length-1]+=q:T.push(q),T.push(...U)}return T.length===0?"":T.length===1?T[0]:Array.isArray(y)?T:Object.assign(Object.assign({},y),{},{parts:T})}function re(y){return S(y,T=>G(T))}function Z(y){let T=[],M=y.filter(Boolean);for(;M.length>0;){let q=M.shift();if(q){if(f(q)){M.unshift(...d(q));continue}if(T.length>0&&typeof p(T)=="string"&&typeof q=="string"){T[T.length-1]+=q;continue}T.push(q)}}return T}function De(y){return S(y,T=>Array.isArray(T)?Z(T):T.parts?Object.assign(Object.assign({},T),{},{parts:Z(T.parts)}):T)}function F(y){return S(y,T=>typeof T=="string"&&T.includes(`
150
- `)?J(T):T)}function J(y){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b;return D(T,y.split(`
151
- `)).parts}function w(y){if(y.type==="line")return!0}function R(y){return L(y,w,!1)}E.exports={isConcat:f,getDocParts:d,willBreak:k,traverseDoc:v,findInDoc:L,mapDoc:S,propagateBreaks:x,removeLines:Q,stripTrailingHardline:X,normalizeParts:Z,normalizeDoc:De,cleanDoc:re,replaceTextEndOfLine:J,replaceEndOfLine:F,canBreak:R}}}),_f=_e({"src/document/doc-printer.js"(m,E){Re();var{convertEndOfLineToChars:p}=rs(),b=Vr(),D=ul(),{fill:f,cursor:d,indent:h}=yi(),{isConcat:v,getDocParts:S}=ea(),L,_=1,k=2;function A(){return{value:"",length:0,queue:[]}}function x(G,re){return Q(G,{type:"indent"},re)}function j(G,re,Z){return re===Number.NEGATIVE_INFINITY?G.root||A():re<0?Q(G,{type:"dedent"},Z):re?re.type==="root"?Object.assign(Object.assign({},G),{},{root:G}):Q(G,{type:typeof re=="string"?"stringAlign":"numberAlign",n:re},Z):G}function Q(G,re,Z){let De=re.type==="dedent"?G.queue.slice(0,-1):[...G.queue,re],F="",J=0,w=0,R=0;for(let ie of De)switch(ie.type){case"indent":M(),Z.useTabs?y(1):T(Z.tabWidth);break;case"stringAlign":M(),F+=ie.n,J+=ie.n.length;break;case"numberAlign":w+=1,R+=ie.n;break;default:throw new Error(`Unexpected type '${ie.type}'`)}return U(),Object.assign(Object.assign({},G),{},{value:F,length:J,queue:De});function y(ie){F+=" ".repeat(ie),J+=Z.tabWidth*ie}function T(ie){F+=" ".repeat(ie),J+=ie}function M(){Z.useTabs?q():U()}function q(){w>0&&y(w),z()}function U(){R>0&&T(R),z()}function z(){w=0,R=0}}function te(G){if(G.length===0)return 0;let re=0;for(;G.length>0&&typeof b(G)=="string"&&/^[\t ]*$/.test(b(G));)re+=G.pop().length;if(G.length>0&&typeof b(G)=="string"){let Z=b(G).replace(/[\t ]*$/,"");re+=b(G).length-Z.length,G[G.length-1]=Z}return re}function $(G,re,Z,De,F){let J=re.length,w=[G],R=[];for(;Z>=0;){if(w.length===0){if(J===0)return!0;w.push(re[--J]);continue}let{mode:y,doc:T}=w.pop();if(typeof T=="string")R.push(T),Z-=D(T);else if(v(T)||T.type==="fill"){let M=S(T);for(let q=M.length-1;q>=0;q--)w.push({mode:y,doc:M[q]})}else switch(T.type){case"indent":case"align":case"indent-if-break":case"label":w.push({mode:y,doc:T.contents});break;case"trim":Z+=te(R);break;case"group":{if(F&&T.break)return!1;let M=T.break?_:y,q=T.expandedStates&&M===_?b(T.expandedStates):T.contents;w.push({mode:M,doc:q});break}case"if-break":{let M=(T.groupId?L[T.groupId]||k:y)===_?T.breakContents:T.flatContents;M&&w.push({mode:y,doc:M});break}case"line":if(y===_||T.hard)return!0;T.soft||(R.push(" "),Z--);break;case"line-suffix":De=!0;break;case"line-suffix-boundary":if(De)return!1;break}}return!1}function X(G,re){L={};let Z=re.printWidth,De=p(re.endOfLine),F=0,J=[{ind:A(),mode:_,doc:G}],w=[],R=!1,y=[];for(;J.length>0;){let{ind:M,mode:q,doc:U}=J.pop();if(typeof U=="string"){let z=De!==`
152
- `?U.replace(/\n/g,De):U;w.push(z),F+=D(z)}else if(v(U)){let z=S(U);for(let ie=z.length-1;ie>=0;ie--)J.push({ind:M,mode:q,doc:z[ie]})}else switch(U.type){case"cursor":w.push(d.placeholder);break;case"indent":J.push({ind:x(M,re),mode:q,doc:U.contents});break;case"align":J.push({ind:j(M,U.n,re),mode:q,doc:U.contents});break;case"trim":F-=te(w);break;case"group":switch(q){case k:if(!R){J.push({ind:M,mode:U.break?_:k,doc:U.contents});break}case _:{R=!1;let z={ind:M,mode:k,doc:U.contents},ie=Z-F,ce=y.length>0;if(!U.break&&$(z,J,ie,ce))J.push(z);else if(U.expandedStates){let ge=b(U.expandedStates);if(U.break){J.push({ind:M,mode:_,doc:ge});break}else for(let fe=1;fe<U.expandedStates.length+1;fe++)if(fe>=U.expandedStates.length){J.push({ind:M,mode:_,doc:ge});break}else{let ke=U.expandedStates[fe],se={ind:M,mode:k,doc:ke};if($(se,J,ie,ce)){J.push(se);break}}}else J.push({ind:M,mode:_,doc:U.contents});break}}U.id&&(L[U.id]=b(J).mode);break;case"fill":{let z=Z-F,{parts:ie}=U;if(ie.length===0)break;let[ce,ge]=ie,fe={ind:M,mode:k,doc:ce},ke={ind:M,mode:_,doc:ce},se=$(fe,[],z,y.length>0,!0);if(ie.length===1){se?J.push(fe):J.push(ke);break}let Ue={ind:M,mode:k,doc:ge},me={ind:M,mode:_,doc:ge};if(ie.length===2){se?J.push(Ue,fe):J.push(me,ke);break}ie.splice(0,2);let ue={ind:M,mode:q,doc:f(ie)},Ve=ie[0];$({ind:M,mode:k,doc:[ce,ge,Ve]},[],z,y.length>0,!0)?J.push(ue,Ue,fe):se?J.push(ue,me,fe):J.push(ue,me,ke);break}case"if-break":case"indent-if-break":{let z=U.groupId?L[U.groupId]:q;if(z===_){let ie=U.type==="if-break"?U.breakContents:U.negate?U.contents:h(U.contents);ie&&J.push({ind:M,mode:q,doc:ie})}if(z===k){let ie=U.type==="if-break"?U.flatContents:U.negate?h(U.contents):U.contents;ie&&J.push({ind:M,mode:q,doc:ie})}break}case"line-suffix":y.push({ind:M,mode:q,doc:U.contents});break;case"line-suffix-boundary":y.length>0&&J.push({ind:M,mode:q,doc:{type:"line",hard:!0}});break;case"line":switch(q){case k:if(U.hard)R=!0;else{U.soft||(w.push(" "),F+=1);break}case _:if(y.length>0){J.push({ind:M,mode:q,doc:U},...y.reverse()),y.length=0;break}U.literal?M.root?(w.push(De,M.root.value),F=M.root.length):(w.push(De),F=0):(F-=te(w),w.push(De+M.value),F=M.length);break}break;case"label":J.push({ind:M,mode:q,doc:U.contents});break}J.length===0&&y.length>0&&(J.push(...y.reverse()),y.length=0)}let T=w.indexOf(d.placeholder);if(T!==-1){let M=w.indexOf(d.placeholder,T+1),q=w.slice(0,T).join(""),U=w.slice(T+1,M).join(""),z=w.slice(M+1).join("");return{formatted:q+U+z,cursorNodeStart:q.length,cursorNodeText:U}}return{formatted:w.join("")}}E.exports={printDocToString:X}}}),Tf=_e({"src/document/doc-debug.js"(m,E){Re();var{isConcat:p,getDocParts:b}=ea();function D(d){if(!d)return"";if(p(d)){let h=[];for(let v of b(d))if(p(v))h.push(...D(v).parts);else{let S=D(v);S!==""&&h.push(S)}return{type:"concat",parts:h}}return d.type==="if-break"?Object.assign(Object.assign({},d),{},{breakContents:D(d.breakContents),flatContents:D(d.flatContents)}):d.type==="group"?Object.assign(Object.assign({},d),{},{contents:D(d.contents),expandedStates:d.expandedStates&&d.expandedStates.map(D)}):d.type==="fill"?{type:"fill",parts:d.parts.map(D)}:d.contents?Object.assign(Object.assign({},d),{},{contents:D(d.contents)}):d}function f(d){let h=Object.create(null),v=new Set;return S(D(d));function S(_,k,A){if(typeof _=="string")return JSON.stringify(_);if(p(_)){let x=b(_).map(S).filter(Boolean);return x.length===1?x[0]:`[${x.join(", ")}]`}if(_.type==="line"){let x=Array.isArray(A)&&A[k+1]&&A[k+1].type==="break-parent";return _.literal?x?"literalline":"literallineWithoutBreakParent":_.hard?x?"hardline":"hardlineWithoutBreakParent":_.soft?"softline":"line"}if(_.type==="break-parent")return Array.isArray(A)&&A[k-1]&&A[k-1].type==="line"&&A[k-1].hard?void 0:"breakParent";if(_.type==="trim")return"trim";if(_.type==="indent")return"indent("+S(_.contents)+")";if(_.type==="align")return _.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+S(_.contents)+")":_.n<0?"dedent("+S(_.contents)+")":_.n.type==="root"?"markAsRoot("+S(_.contents)+")":"align("+JSON.stringify(_.n)+", "+S(_.contents)+")";if(_.type==="if-break")return"ifBreak("+S(_.breakContents)+(_.flatContents?", "+S(_.flatContents):"")+(_.groupId?(_.flatContents?"":', ""')+`, { groupId: ${L(_.groupId)} }`:"")+")";if(_.type==="indent-if-break"){let x=[];_.negate&&x.push("negate: true"),_.groupId&&x.push(`groupId: ${L(_.groupId)}`);let j=x.length>0?`, { ${x.join(", ")} }`:"";return`indentIfBreak(${S(_.contents)}${j})`}if(_.type==="group"){let x=[];_.break&&_.break!=="propagated"&&x.push("shouldBreak: true"),_.id&&x.push(`id: ${L(_.id)}`);let j=x.length>0?`, { ${x.join(", ")} }`:"";return _.expandedStates?`conditionalGroup([${_.expandedStates.map(Q=>S(Q)).join(",")}]${j})`:`group(${S(_.contents)}${j})`}if(_.type==="fill")return`fill([${_.parts.map(x=>S(x)).join(", ")}])`;if(_.type==="line-suffix")return"lineSuffix("+S(_.contents)+")";if(_.type==="line-suffix-boundary")return"lineSuffixBoundary";if(_.type==="label")return`label(${JSON.stringify(_.label)}, ${S(_.contents)})`;throw new Error("Unknown doc type "+_.type)}function L(_){if(typeof _!="symbol")return JSON.stringify(String(_));if(_ in h)return h[_];let k=String(_).slice(7,-1)||"symbol";for(let A=0;;A++){let x=k+(A>0?` #${A}`:"");if(!v.has(x))return v.add(x),h[_]=`Symbol.for(${JSON.stringify(x)})`}}}E.exports={printDocToDebug:f}}}),Fn=_e({"src/document/index.js"(m,E){Re(),E.exports={builders:yi(),printer:_f(),utils:ea(),debug:Tf()}}}),ll={};wn(ll,{default:()=>kf});function kf(m){if(typeof m!="string")throw new TypeError("Expected a string");return m.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Lf=dn({"node_modules/escape-string-regexp/index.js"(){Re()}}),cl=_e({"node_modules/semver/internal/debug.js"(m,E){Re();var p=typeof xr=="object"&&xr.env&&xr.env.NODE_DEBUG&&/\bsemver\b/i.test(xr.env.NODE_DEBUG)?function(){for(var b=arguments.length,D=new Array(b),f=0;f<b;f++)D[f]=arguments[f];return console.error("SEMVER",...D)}:()=>{};E.exports=p}}),Y=_e({"node_modules/semver/internal/constants.js"(m,E){Re();var p="2.0.0",b=256,D=Number.MAX_SAFE_INTEGER||9007199254740991,f=16;E.exports={SEMVER_SPEC_VERSION:p,MAX_LENGTH:b,MAX_SAFE_INTEGER:D,MAX_SAFE_COMPONENT_LENGTH:f}}}),g=_e({"node_modules/semver/internal/re.js"(m,E){Re();var{MAX_SAFE_COMPONENT_LENGTH:p}=Y(),b=cl();m=E.exports={};var D=m.re=[],f=m.src=[],d=m.t={},h=0,v=(S,L,_)=>{let k=h++;b(S,k,L),d[S]=k,f[k]=L,D[k]=new RegExp(L,_?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","[0-9]+"),v("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),v("MAINVERSION",`(${f[d.NUMERICIDENTIFIER]})\\.(${f[d.NUMERICIDENTIFIER]})\\.(${f[d.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${f[d.NUMERICIDENTIFIERLOOSE]})\\.(${f[d.NUMERICIDENTIFIERLOOSE]})\\.(${f[d.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${f[d.NUMERICIDENTIFIER]}|${f[d.NONNUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${f[d.NUMERICIDENTIFIERLOOSE]}|${f[d.NONNUMERICIDENTIFIER]})`),v("PRERELEASE",`(?:-(${f[d.PRERELEASEIDENTIFIER]}(?:\\.${f[d.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${f[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${f[d.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER","[0-9A-Za-z-]+"),v("BUILD",`(?:\\+(${f[d.BUILDIDENTIFIER]}(?:\\.${f[d.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${f[d.MAINVERSION]}${f[d.PRERELEASE]}?${f[d.BUILD]}?`),v("FULL",`^${f[d.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${f[d.MAINVERSIONLOOSE]}${f[d.PRERELEASELOOSE]}?${f[d.BUILD]}?`),v("LOOSE",`^${f[d.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${f[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${f[d.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${f[d.XRANGEIDENTIFIER]})(?:\\.(${f[d.XRANGEIDENTIFIER]})(?:\\.(${f[d.XRANGEIDENTIFIER]})(?:${f[d.PRERELEASE]})?${f[d.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${f[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${f[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${f[d.XRANGEIDENTIFIERLOOSE]})(?:${f[d.PRERELEASELOOSE]})?${f[d.BUILD]}?)?)?`),v("XRANGE",`^${f[d.GTLT]}\\s*${f[d.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${f[d.GTLT]}\\s*${f[d.XRANGEPLAINLOOSE]}$`),v("COERCE",`(^|[^\\d])(\\d{1,${p}})(?:\\.(\\d{1,${p}}))?(?:\\.(\\d{1,${p}}))?(?:$|[^\\d])`),v("COERCERTL",f[d.COERCE],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${f[d.LONETILDE]}\\s+`,!0),m.tildeTrimReplace="$1~",v("TILDE",`^${f[d.LONETILDE]}${f[d.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${f[d.LONETILDE]}${f[d.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${f[d.LONECARET]}\\s+`,!0),m.caretTrimReplace="$1^",v("CARET",`^${f[d.LONECARET]}${f[d.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${f[d.LONECARET]}${f[d.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${f[d.GTLT]}\\s*(${f[d.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${f[d.GTLT]}\\s*(${f[d.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${f[d.GTLT]}\\s*(${f[d.LOOSEPLAIN]}|${f[d.XRANGEPLAIN]})`,!0),m.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${f[d.XRANGEPLAIN]})\\s+-\\s+(${f[d.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${f[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${f[d.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),W=_e({"node_modules/semver/internal/parse-options.js"(m,E){Re();var p=["includePrerelease","loose","rtl"],b=D=>D?typeof D!="object"?{loose:!0}:p.filter(f=>D[f]).reduce((f,d)=>(f[d]=!0,f),{}):{};E.exports=b}}),Ce=_e({"node_modules/semver/internal/identifiers.js"(m,E){Re();var p=/^[0-9]+$/,b=(f,d)=>{let h=p.test(f),v=p.test(d);return h&&v&&(f=+f,d=+d),f===d?0:h&&!v?-1:v&&!h?1:f<d?-1:1},D=(f,d)=>b(d,f);E.exports={compareIdentifiers:b,rcompareIdentifiers:D}}}),Pe=_e({"node_modules/semver/classes/semver.js"(m,E){Re();var p=cl(),{MAX_LENGTH:b,MAX_SAFE_INTEGER:D}=Y(),{re:f,t:d}=g(),h=W(),{compareIdentifiers:v}=Ce(),S=class{constructor(L,_){if(_=h(_),L instanceof S){if(L.loose===!!_.loose&&L.includePrerelease===!!_.includePrerelease)return L;L=L.version}else if(typeof L!="string")throw new TypeError(`Invalid Version: ${L}`);if(L.length>b)throw new TypeError(`version is longer than ${b} characters`);p("SemVer",L,_),this.options=_,this.loose=!!_.loose,this.includePrerelease=!!_.includePrerelease;let k=L.trim().match(_.loose?f[d.LOOSE]:f[d.FULL]);if(!k)throw new TypeError(`Invalid Version: ${L}`);if(this.raw=L,this.major=+k[1],this.minor=+k[2],this.patch=+k[3],this.major>D||this.major<0)throw new TypeError("Invalid major version");if(this.minor>D||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>D||this.patch<0)throw new TypeError("Invalid patch version");k[4]?this.prerelease=k[4].split(".").map(A=>{if(/^[0-9]+$/.test(A)){let x=+A;if(x>=0&&x<D)return x}return A}):this.prerelease=[],this.build=k[5]?k[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(L){if(p("SemVer.compare",this.version,this.options,L),!(L instanceof S)){if(typeof L=="string"&&L===this.version)return 0;L=new S(L,this.options)}return L.version===this.version?0:this.compareMain(L)||this.comparePre(L)}compareMain(L){return L instanceof S||(L=new S(L,this.options)),v(this.major,L.major)||v(this.minor,L.minor)||v(this.patch,L.patch)}comparePre(L){if(L instanceof S||(L=new S(L,this.options)),this.prerelease.length&&!L.prerelease.length)return-1;if(!this.prerelease.length&&L.prerelease.length)return 1;if(!this.prerelease.length&&!L.prerelease.length)return 0;let _=0;do{let k=this.prerelease[_],A=L.prerelease[_];if(p("prerelease compare",_,k,A),k===void 0&&A===void 0)return 0;if(A===void 0)return 1;if(k===void 0)return-1;if(k!==A)return v(k,A)}while(++_)}compareBuild(L){L instanceof S||(L=new S(L,this.options));let _=0;do{let k=this.build[_],A=L.build[_];if(p("prerelease compare",_,k,A),k===void 0&&A===void 0)return 0;if(A===void 0)return 1;if(k===void 0)return-1;if(k!==A)return v(k,A)}while(++_)}inc(L,_){switch(L){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",_);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",_);break;case"prepatch":this.prerelease.length=0,this.inc("patch",_),this.inc("pre",_);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",_),this.inc("pre",_);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let k=this.prerelease.length;for(;--k>=0;)typeof this.prerelease[k]=="number"&&(this.prerelease[k]++,k=-2);k===-1&&this.prerelease.push(0)}_&&(v(this.prerelease[0],_)===0?isNaN(this.prerelease[1])&&(this.prerelease=[_,0]):this.prerelease=[_,0]);break;default:throw new Error(`invalid increment argument: ${L}`)}return this.format(),this.raw=this.version,this}};E.exports=S}}),Be=_e({"node_modules/semver/functions/compare.js"(m,E){Re();var p=Pe(),b=(D,f,d)=>new p(D,d).compare(new p(f,d));E.exports=b}}),Ze=_e({"node_modules/semver/functions/lt.js"(m,E){Re();var p=Be(),b=(D,f,d)=>p(D,f,d)<0;E.exports=b}}),gt=_e({"node_modules/semver/functions/gte.js"(m,E){Re();var p=Be(),b=(D,f,d)=>p(D,f,d)>=0;E.exports=b}}),Rt=_e({"src/utils/arrayify.js"(m,E){Re(),E.exports=(p,b)=>Object.entries(p).map(D=>{let[f,d]=D;return Object.assign({[b]:f},d)})}}),st=_e({"node_modules/outdent/lib/index.js"(m,E){Re(),Object.defineProperty(m,"__esModule",{value:!0}),m.outdent=void 0;function p(){for(var $=[],X=0;X<arguments.length;X++)$[X]=arguments[X]}function b(){return typeof WeakMap<"u"?new WeakMap:D()}function D(){return{add:p,delete:p,get:p,set:p,has:function($){return!1}}}var f=Object.prototype.hasOwnProperty,d=function($,X){return f.call($,X)};function h($,X){for(var G in X)d(X,G)&&($[G]=X[G]);return $}var v=/^[ \t]*(?:\r\n|\r|\n)/,S=/(?:\r\n|\r|\n)[ \t]*$/,L=/^(?:[\r\n]|$)/,_=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,k=/^[ \t]*[\r\n][ \t\r\n]*$/;function A($,X,G){var re=0,Z=$[0].match(_);Z&&(re=Z[1].length);var De="(\\r\\n|\\r|\\n).{0,"+re+"}",F=new RegExp(De,"g");X&&($=$.slice(1));var J=G.newline,w=G.trimLeadingNewline,R=G.trimTrailingNewline,y=typeof J=="string",T=$.length,M=$.map(function(q,U){return q=q.replace(F,"$1"),U===0&&w&&(q=q.replace(v,"")),U===T-1&&R&&(q=q.replace(S,"")),y&&(q=q.replace(/\r\n|\n|\r/g,function(z){return J})),q});return M}function x($,X){for(var G="",re=0,Z=$.length;re<Z;re++)G+=$[re],re<Z-1&&(G+=X[re]);return G}function j($){return d($,"raw")&&d($,"length")}function Q($){var X=b(),G=b();function re(De){for(var F=[],J=1;J<arguments.length;J++)F[J-1]=arguments[J];if(j(De)){var w=De,R=(F[0]===re||F[0]===te)&&k.test(w[0])&&L.test(w[1]),y=R?G:X,T=y.get(w);if(T||(T=A(w,R,$),y.set(w,T)),F.length===0)return T[0];var M=x(T,R?F.slice(1):F);return M}else return Q(h(h({},$),De||{}))}var Z=h(re,{string:function(De){return A([De],!1,$)[0]}});return Z}var te=Q({trimLeadingNewline:!0,trimTrailingNewline:!0});if(m.outdent=te,m.default=te,typeof E<"u")try{E.exports=te,Object.defineProperty(te,"__esModule",{value:!0}),te.default=te,te.outdent=te}catch{}}}),Dt=_e({"src/main/core-options.js"(m,E){Re();var{outdent:p}=st(),b="Config",D="Editor",f="Format",d="Other",h="Output",v="Global",S="Special",L={cursorOffset:{since:"1.4.0",category:S,type:"int",default:-1,range:{start:-1,end:Number.POSITIVE_INFINITY,step:1},description:p`
153
- Print (to stderr) where a cursor at the given position would move to after formatting.
154
- This option cannot be used with --range-start and --range-end.
155
- `,cliCategory:D},endOfLine:{since:"1.15.0",category:v,type:"choice",default:[{since:"1.15.0",value:"auto"},{since:"2.0.0",value:"lf"}],description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:p`
156
- Maintain existing
157
- (mixed values within one file are normalised by looking at what's used after the first line)
158
- `}]},filepath:{since:"1.4.0",category:S,type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:d,cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{since:"1.8.0",category:S,type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:d},parser:{since:"0.0.10",category:v,type:"choice",default:[{since:"0.0.10",value:"babylon"},{since:"1.13.0",value:void 0}],description:"Which parser to use.",exception:_=>typeof _=="string"||typeof _=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"acorn",since:"2.6.0",description:"JavaScript"},{value:"espree",since:"2.2.0",description:"JavaScript"},{value:"meriyah",since:"2.2.0",description:"JavaScript"},{value:"css",since:"1.7.1",description:"CSS"},{value:"less",since:"1.7.1",description:"Less"},{value:"scss",since:"1.7.1",description:"SCSS"},{value:"json",since:"1.5.0",description:"JSON"},{value:"json5",since:"1.13.0",description:"JSON5"},{value:"json-stringify",since:"1.13.0",description:"JSON.stringify"},{value:"graphql",since:"1.5.0",description:"GraphQL"},{value:"markdown",since:"1.8.0",description:"Markdown"},{value:"mdx",since:"1.15.0",description:"MDX"},{value:"vue",since:"1.10.0",description:"Vue"},{value:"yaml",since:"1.14.0",description:"YAML"},{value:"glimmer",since:"2.3.0",description:"Ember / Handlebars"},{value:"html",since:"1.15.0",description:"HTML"},{value:"angular",since:"1.15.0",description:"Angular"},{value:"lwc",since:"1.17.0",description:"Lightning Web Components"}]},plugins:{since:"1.10.0",type:"path",array:!0,default:[{value:[]}],category:v,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:_=>typeof _=="string"||typeof _=="object",cliName:"plugin",cliCategory:b},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:v,description:p`
159
- Custom directory that contains prettier plugins in node_modules subdirectory.
160
- Overrides default behavior when plugins are searched relatively to the location of Prettier.
161
- Multiple values are accepted.
162
- `,exception:_=>typeof _=="string"||typeof _=="object",cliName:"plugin-search-dir",cliCategory:b},printWidth:{since:"0.0.0",category:v,type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},rangeEnd:{since:"1.4.0",category:S,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:p`
163
- Format code ending at a given character offset (exclusive).
164
- The range will extend forwards to the end of the selected statement.
165
- This option cannot be used with --cursor-offset.
166
- `,cliCategory:D},rangeStart:{since:"1.4.0",category:S,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:p`
167
- Format code starting at a given character offset.
168
- The range will extend backwards to the start of the first line containing the selected statement.
169
- This option cannot be used with --cursor-offset.
170
- `,cliCategory:D},requirePragma:{since:"1.7.0",category:S,type:"boolean",default:!1,description:p`
171
- Require either '@prettier' or '@format' to be present in the file's first docblock comment
172
- in order for it to be formatted.
173
- `,cliCategory:d},tabWidth:{type:"int",category:v,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:v,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:v,type:"choice",default:[{since:"2.1.0",value:"auto"}],description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};E.exports={CATEGORY_CONFIG:b,CATEGORY_EDITOR:D,CATEGORY_FORMAT:f,CATEGORY_OTHER:d,CATEGORY_OUTPUT:h,CATEGORY_GLOBAL:v,CATEGORY_SPECIAL:S,options:L}}}),Ft=_e({"src/main/support.js"(m,E){Re();var p={compare:Be(),lt:Ze(),gte:gt()},b=Rt(),D=ei().version,f=Dt().options;function d(){let{plugins:v=[],showUnreleased:S=!1,showDeprecated:L=!1,showInternal:_=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=D.split("-",1)[0],A=v.flatMap($=>$.languages||[]).filter(j),x=b(Object.assign({},...v.map($=>{let{options:X}=$;return X}),f),"name").filter($=>j($)&&Q($)).sort(($,X)=>$.name===X.name?0:$.name<X.name?-1:1).map(te).map($=>{$=Object.assign({},$),Array.isArray($.default)&&($.default=$.default.length===1?$.default[0].value:$.default.filter(j).sort((G,re)=>p.compare(re.since,G.since))[0].value),Array.isArray($.choices)&&($.choices=$.choices.filter(G=>j(G)&&Q(G)),$.name==="parser"&&h($,A,v));let X=Object.fromEntries(v.filter(G=>G.defaultOptions&&G.defaultOptions[$.name]!==void 0).map(G=>[G.name,G.defaultOptions[$.name]]));return Object.assign(Object.assign({},$),{},{pluginDefaults:X})});return{languages:A,options:x};function j($){return S||!("since"in $)||$.since&&p.gte(k,$.since)}function Q($){return L||!("deprecated"in $)||$.deprecated&&p.lt(k,$.deprecated)}function te($){return _?$:St($,Ke)}}function h(v,S,L){let _=new Set(v.choices.map(k=>k.value));for(let k of S)if(k.parsers){for(let A of k.parsers)if(!_.has(A)){_.add(A);let x=L.find(Q=>Q.parsers&&Q.parsers[A]),j=k.name;x&&x.name&&(j+=` (plugin: ${x.name})`),v.choices.push({value:A,description:j})}}}E.exports={getSupportInfo:d}}}),It=_e({"src/utils/is-non-empty-array.js"(m,E){Re();function p(b){return Array.isArray(b)&&b.length>0}E.exports=p}}),_t=_e({"src/utils/text/skip.js"(m,E){Re();function p(h){return(v,S,L)=>{let _=L&&L.backwards;if(S===!1)return!1;let{length:k}=v,A=S;for(;A>=0&&A<k;){let x=v.charAt(A);if(h instanceof RegExp){if(!h.test(x))return A}else if(!h.includes(x))return A;_?A--:A++}return A===-1||A===k?A:!1}}var b=p(/\s/),D=p(" "),f=p(",; "),d=p(/[^\n\r]/);E.exports={skipWhitespace:b,skipSpaces:D,skipToLineEnd:f,skipEverythingButNewLine:d}}}),Gt=_e({"src/utils/text/skip-inline-comment.js"(m,E){Re();function p(b,D){if(D===!1)return!1;if(b.charAt(D)==="/"&&b.charAt(D+1)==="*"){for(let f=D+2;f<b.length;++f)if(b.charAt(f)==="*"&&b.charAt(f+1)==="/")return f+2}return D}E.exports=p}}),Wt=_e({"src/utils/text/skip-trailing-comment.js"(m,E){Re();var{skipEverythingButNewLine:p}=_t();function b(D,f){return f===!1?!1:D.charAt(f)==="/"&&D.charAt(f+1)==="/"?p(D,f):f}E.exports=b}}),Xt=_e({"src/utils/text/skip-newline.js"(m,E){Re();function p(b,D,f){let d=f&&f.backwards;if(D===!1)return!1;let h=b.charAt(D);if(d){if(b.charAt(D-1)==="\r"&&h===`
174
- `)return D-2;if(h===`
175
- `||h==="\r"||h==="\u2028"||h==="\u2029")return D-1}else{if(h==="\r"&&b.charAt(D+1)===`
176
- `)return D+2;if(h===`
177
- `||h==="\r"||h==="\u2028"||h==="\u2029")return D+1}return D}E.exports=p}}),bn=_e({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(m,E){Re();var p=Gt(),b=Xt(),D=Wt(),{skipSpaces:f}=_t();function d(h,v){let S=null,L=v;for(;L!==S;)S=L,L=f(h,L),L=p(h,L),L=D(h,L),L=b(h,L);return L}E.exports=d}}),ye=_e({"src/common/util.js"(m,E){Re();var{default:p}=(Lf(),Qn(ll)),b=Vr(),{getSupportInfo:D}=Ft(),f=It(),d=ul(),{skipWhitespace:h,skipSpaces:v,skipToLineEnd:S,skipEverythingButNewLine:L}=_t(),_=Gt(),k=Wt(),A=Xt(),x=bn(),j=me=>me[me.length-2];function Q(me){return(ue,Ve,nt)=>{let Je=nt&&nt.backwards;if(Ve===!1)return!1;let{length:ht}=ue,be=Ve;for(;be>=0&&be<ht;){let Ie=ue.charAt(be);if(me instanceof RegExp){if(!me.test(Ie))return be}else if(!me.includes(Ie))return be;Je?be--:be++}return be===-1||be===ht?be:!1}}function te(me,ue){let Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nt=v(me,Ve.backwards?ue-1:ue,Ve),Je=A(me,nt,Ve);return nt!==Je}function $(me,ue,Ve){for(let nt=ue;nt<Ve;++nt)if(me.charAt(nt)===`
178
- `)return!0;return!1}function X(me,ue,Ve){let nt=Ve(ue)-1;nt=v(me,nt,{backwards:!0}),nt=A(me,nt,{backwards:!0}),nt=v(me,nt,{backwards:!0});let Je=A(me,nt,{backwards:!0});return nt!==Je}function G(me,ue){let Ve=null,nt=ue;for(;nt!==Ve;)Ve=nt,nt=S(me,nt),nt=_(me,nt),nt=v(me,nt);return nt=k(me,nt),nt=A(me,nt),nt!==!1&&te(me,nt)}function re(me,ue,Ve){return G(me,Ve(ue))}function Z(me,ue,Ve){return x(me,Ve(ue))}function De(me,ue,Ve){return me.charAt(Z(me,ue,Ve))}function F(me,ue){let Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return v(me,Ve.backwards?ue-1:ue,Ve)!==ue}function J(me,ue){let Ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,nt=0;for(let Je=Ve;Je<me.length;++Je)me[Je]===" "?nt=nt+ue-nt%ue:nt++;return nt}function w(me,ue){let Ve=me.lastIndexOf(`
179
- `);return Ve===-1?0:J(me.slice(Ve+1).match(/^[\t ]*/)[0],ue)}function R(me,ue){let Ve={quote:'"',regex:/"/g,escaped:"&quot;"},nt={quote:"'",regex:/'/g,escaped:"&apos;"},Je=ue==="'"?nt:Ve,ht=Je===nt?Ve:nt,be=Je;if(me.includes(Je.quote)||me.includes(ht.quote)){let Ie=(me.match(Je.regex)||[]).length,ft=(me.match(ht.regex)||[]).length;be=Ie>ft?ht:Je}return be}function y(me,ue){let Ve=me.slice(1,-1),nt=ue.parser==="json"||ue.parser==="json5"&&ue.quoteProps==="preserve"&&!ue.singleQuote?'"':ue.__isInHtmlAttribute?"'":R(Ve,ue.singleQuote?"'":'"').quote;return T(Ve,nt,!(ue.parser==="css"||ue.parser==="less"||ue.parser==="scss"||ue.__embeddedInHtml))}function T(me,ue,Ve){let nt=ue==='"'?"'":'"',Je=/\\(.)|(["'])/gs,ht=me.replace(Je,(be,Ie,ft)=>Ie===nt?Ie:ft===ue?"\\"+ft:ft||(Ve&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(Ie)?Ie:"\\"+Ie));return ue+ht+ue}function M(me){return me.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function q(me,ue){let Ve=me.match(new RegExp(`(${p(ue)})+`,"g"));return Ve===null?0:Ve.reduce((nt,Je)=>Math.max(nt,Je.length/ue.length),0)}function U(me,ue){let Ve=me.match(new RegExp(`(${p(ue)})+`,"g"));if(Ve===null)return 0;let nt=new Map,Je=0;for(let ht of Ve){let be=ht.length/ue.length;nt.set(be,!0),be>Je&&(Je=be)}for(let ht=1;ht<Je;ht++)if(!nt.get(ht))return ht;return Je+1}function z(me,ue){(me.comments||(me.comments=[])).push(ue),ue.printed=!1,ue.nodeDescription=Ue(me)}function ie(me,ue){ue.leading=!0,ue.trailing=!1,z(me,ue)}function ce(me,ue,Ve){ue.leading=!1,ue.trailing=!1,Ve&&(ue.marker=Ve),z(me,ue)}function ge(me,ue){ue.leading=!1,ue.trailing=!0,z(me,ue)}function fe(me,ue){let{languages:Ve}=D({plugins:ue.plugins}),nt=Ve.find(Je=>{let{name:ht}=Je;return ht.toLowerCase()===me})||Ve.find(Je=>{let{aliases:ht}=Je;return Array.isArray(ht)&&ht.includes(me)})||Ve.find(Je=>{let{extensions:ht}=Je;return Array.isArray(ht)&&ht.includes(`.${me}`)});return nt&&nt.parsers[0]}function ke(me){return me&&me.type==="front-matter"}function se(me){let ue=new WeakMap;return function(Ve){return ue.has(Ve)||ue.set(Ve,Symbol(me)),ue.get(Ve)}}function Ue(me){let ue=me.type||me.kind||"(unknown type)",Ve=String(me.name||me.id&&(typeof me.id=="object"?me.id.name:me.id)||me.key&&(typeof me.key=="object"?me.key.name:me.key)||me.value&&(typeof me.value=="object"?"":String(me.value))||me.operator||"");return Ve.length>20&&(Ve=Ve.slice(0,19)+"…"),ue+(Ve?" "+Ve:"")}E.exports={inferParserByLanguage:fe,getStringWidth:d,getMaxContinuousCount:q,getMinNotPresentContinuousCount:U,getPenultimate:j,getLast:b,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:x,getNextNonSpaceNonCommentCharacterIndex:Z,getNextNonSpaceNonCommentCharacter:De,skip:Q,skipWhitespace:h,skipSpaces:v,skipToLineEnd:S,skipEverythingButNewLine:L,skipInlineComment:_,skipTrailingComment:k,skipNewline:A,isNextLineEmptyAfterIndex:G,isNextLineEmpty:re,isPreviousLineEmpty:X,hasNewline:te,hasNewlineInRange:$,hasSpaces:F,getAlignmentSize:J,getIndentSize:w,getPreferredQuote:R,printString:y,printNumber:M,makeString:T,addLeadingComment:ie,addDanglingComment:ce,addTrailingComment:ge,isFrontMatterNode:ke,isNonEmptyArray:f,createGroupIdMapper:se}}}),K={};wn(K,{basename:()=>At,default:()=>wr,delimiter:()=>sr,dirname:()=>je,extname:()=>Ot,isAbsolute:()=>Fe,join:()=>Me,normalize:()=>le,relative:()=>ve,resolve:()=>H,sep:()=>Wn});function I(m,E){for(var p=0,b=m.length-1;b>=0;b--){var D=m[b];D==="."?m.splice(b,1):D===".."?(m.splice(b,1),p++):p&&(m.splice(b,1),p--)}if(E)for(;p--;p)m.unshift("..");return m}function H(){for(var m="",E=!1,p=arguments.length-1;p>=-1&&!E;p--){var b=p>=0?arguments[p]:"/";if(typeof b!="string")throw new TypeError("Arguments to path.resolve must be strings");b&&(m=b+"/"+m,E=b.charAt(0)==="/")}return m=I(zt(m.split("/"),function(D){return!!D}),!E).join("/"),(E?"/":"")+m||"."}function le(m){var E=Fe(m),p=Di(m,-1)==="/";return m=I(zt(m.split("/"),function(b){return!!b}),!E).join("/"),!m&&!E&&(m="."),m&&p&&(m+="/"),(E?"/":"")+m}function Fe(m){return m.charAt(0)==="/"}function Me(){var m=Array.prototype.slice.call(arguments,0);return le(zt(m,function(E,p){if(typeof E!="string")throw new TypeError("Arguments to path.join must be strings");return E}).join("/"))}function ve(m,E){m=H(m).substr(1),E=H(E).substr(1);function p(S){for(var L=0;L<S.length&&S[L]==="";L++);for(var _=S.length-1;_>=0&&S[_]==="";_--);return L>_?[]:S.slice(L,_-L+1)}for(var b=p(m.split("/")),D=p(E.split("/")),f=Math.min(b.length,D.length),d=f,h=0;h<f;h++)if(b[h]!==D[h]){d=h;break}for(var v=[],h=d;h<b.length;h++)v.push("..");return v=v.concat(D.slice(d)),v.join("/")}function je(m){var E=on(m),p=E[0],b=E[1];return!p&&!b?".":(b&&(b=b.substr(0,b.length-1)),p+b)}function At(m,E){var p=on(m)[2];return E&&p.substr(-1*E.length)===E&&(p=p.substr(0,p.length-E.length)),p}function Ot(m){return on(m)[3]}function zt(m,E){if(m.filter)return m.filter(E);for(var p=[],b=0;b<m.length;b++)E(m[b],b,m)&&p.push(m[b]);return p}var En,on,Wn,sr,wr,Di,ci=dn({"node-modules-polyfills:path"(){Re(),En=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,on=function(m){return En.exec(m).slice(1)},Wn="/",sr=":",wr={extname:Ot,basename:At,dirname:je,sep:Wn,delimiter:sr,relative:ve,join:Me,isAbsolute:Fe,normalize:le,resolve:H},Di="ab".substr(-1)==="b"?function(m,E,p){return m.substr(E,p)}:function(m,E,p){return E<0&&(E=m.length+E),m.substr(E,p)}}}),bt=_e({"node-modules-polyfills-commonjs:path"(m,E){Re();var p=(ci(),Qn(K));if(p&&p.default){E.exports=p.default;for(let b in p)E.exports[b]=p[b]}else p&&(E.exports=p)}}),tn=_e({"src/common/errors.js"(m,E){Re();var p=class extends Error{},b=class extends Error{},D=class extends Error{},f=class extends Error{};E.exports={ConfigError:p,DebugError:b,UndefinedParserError:D,ArgExpansionBailout:f}}}),mn={};wn(mn,{__assign:()=>he,__asyncDelegator:()=>If,__asyncGenerator:()=>Mf,__asyncValues:()=>Of,__await:()=>bi,__awaiter:()=>Qi,__classPrivateFieldGet:()=>Vf,__classPrivateFieldSet:()=>qf,__createBinding:()=>ta,__decorate:()=>or,__exportStar:()=>Ya,__extends:()=>Cn,__generator:()=>ji,__importDefault:()=>$f,__importStar:()=>Rf,__makeTemplateObject:()=>jf,__metadata:()=>zi,__param:()=>Oi,__read:()=>fl,__rest:()=>Yn,__spread:()=>Pf,__spreadArrays:()=>Bf,__values:()=>Bo});function Cn(m,E){de(m,E);function p(){this.constructor=m}m.prototype=E===null?Object.create(E):(p.prototype=E.prototype,new p)}function Yn(m,E){var p={};for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&E.indexOf(b)<0&&(p[b]=m[b]);if(m!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,b=Object.getOwnPropertySymbols(m);D<b.length;D++)E.indexOf(b[D])<0&&Object.prototype.propertyIsEnumerable.call(m,b[D])&&(p[b[D]]=m[b[D]]);return p}function or(m,E,p,b){var D=arguments.length,f=D<3?E:b===null?b=Object.getOwnPropertyDescriptor(E,p):b,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")f=Reflect.decorate(m,E,p,b);else for(var h=m.length-1;h>=0;h--)(d=m[h])&&(f=(D<3?d(f):D>3?d(E,p,f):d(E,p))||f);return D>3&&f&&Object.defineProperty(E,p,f),f}function Oi(m,E){return function(p,b){E(p,b,m)}}function zi(m,E){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(m,E)}function Qi(m,E,p,b){function D(f){return f instanceof p?f:new p(function(d){d(f)})}return new(p||(p=Promise))(function(f,d){function h(L){try{S(b.next(L))}catch(_){d(_)}}function v(L){try{S(b.throw(L))}catch(_){d(_)}}function S(L){L.done?f(L.value):D(L.value).then(h,v)}S((b=b.apply(m,E||[])).next())})}function ji(m,E){var p={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},b,D,f,d;return d={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function h(S){return function(L){return v([S,L])}}function v(S){if(b)throw new TypeError("Generator is already executing.");for(;p;)try{if(b=1,D&&(f=S[0]&2?D.return:S[0]?D.throw||((f=D.return)&&f.call(D),0):D.next)&&!(f=f.call(D,S[1])).done)return f;switch(D=0,f&&(S=[S[0]&2,f.value]),S[0]){case 0:case 1:f=S;break;case 4:return p.label++,{value:S[1],done:!1};case 5:p.label++,D=S[1],S=[0];continue;case 7:S=p.ops.pop(),p.trys.pop();continue;default:if(f=p.trys,!(f=f.length>0&&f[f.length-1])&&(S[0]===6||S[0]===2)){p=0;continue}if(S[0]===3&&(!f||S[1]>f[0]&&S[1]<f[3])){p.label=S[1];break}if(S[0]===6&&p.label<f[1]){p.label=f[1],f=S;break}if(f&&p.label<f[2]){p.label=f[2],p.ops.push(S);break}f[2]&&p.ops.pop(),p.trys.pop();continue}S=E.call(m,p)}catch(L){S=[6,L],D=0}finally{b=f=0}if(S[0]&5)throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}}function ta(m,E,p,b){b===void 0&&(b=p),m[b]=E[p]}function Ya(m,E){for(var p in m)p!=="default"&&!E.hasOwnProperty(p)&&(E[p]=m[p])}function Bo(m){var E=typeof Symbol=="function"&&Symbol.iterator,p=E&&m[E],b=0;if(p)return p.call(m);if(m&&typeof m.length=="number")return{next:function(){return m&&b>=m.length&&(m=void 0),{value:m&&m[b++],done:!m}}};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")}function fl(m,E){var p=typeof Symbol=="function"&&m[Symbol.iterator];if(!p)return m;var b=p.call(m),D,f=[],d;try{for(;(E===void 0||E-- >0)&&!(D=b.next()).done;)f.push(D.value)}catch(h){d={error:h}}finally{try{D&&!D.done&&(p=b.return)&&p.call(b)}finally{if(d)throw d.error}}return f}function Pf(){for(var m=[],E=0;E<arguments.length;E++)m=m.concat(fl(arguments[E]));return m}function Bf(){for(var m=0,E=0,p=arguments.length;E<p;E++)m+=arguments[E].length;for(var b=Array(m),D=0,E=0;E<p;E++)for(var f=arguments[E],d=0,h=f.length;d<h;d++,D++)b[D]=f[d];return b}function bi(m){return this instanceof bi?(this.v=m,this):new bi(m)}function Mf(m,E,p){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var b=p.apply(m,E||[]),D,f=[];return D={},d("next"),d("throw"),d("return"),D[Symbol.asyncIterator]=function(){return this},D;function d(k){b[k]&&(D[k]=function(A){return new Promise(function(x,j){f.push([k,A,x,j])>1||h(k,A)})})}function h(k,A){try{v(b[k](A))}catch(x){_(f[0][3],x)}}function v(k){k.value instanceof bi?Promise.resolve(k.value.v).then(S,L):_(f[0][2],k)}function S(k){h("next",k)}function L(k){h("throw",k)}function _(k,A){k(A),f.shift(),f.length&&h(f[0][0],f[0][1])}}function If(m){var E,p;return E={},b("next"),b("throw",function(D){throw D}),b("return"),E[Symbol.iterator]=function(){return this},E;function b(D,f){E[D]=m[D]?function(d){return(p=!p)?{value:bi(m[D](d)),done:D==="return"}:f?f(d):d}:f}}function Of(m){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var E=m[Symbol.asyncIterator],p;return E?E.call(m):(m=typeof Bo=="function"?Bo(m):m[Symbol.iterator](),p={},b("next"),b("throw"),b("return"),p[Symbol.asyncIterator]=function(){return this},p);function b(f){p[f]=m[f]&&function(d){return new Promise(function(h,v){d=m[f](d),D(h,v,d.done,d.value)})}}function D(f,d,h,v){Promise.resolve(v).then(function(S){f({value:S,done:h})},d)}}function jf(m,E){return Object.defineProperty?Object.defineProperty(m,"raw",{value:E}):m.raw=E,m}function Rf(m){if(m&&m.__esModule)return m;var E={};if(m!=null)for(var p in m)Object.hasOwnProperty.call(m,p)&&(E[p]=m[p]);return E.default=m,E}function $f(m){return m&&m.__esModule?m:{default:m}}function Vf(m,E){if(!E.has(m))throw new TypeError("attempted to get private field on non-instance");return E.get(m)}function qf(m,E,p){if(!E.has(m))throw new TypeError("attempted to set private field on non-instance");return E.set(m,p),p}var de,he,We=dn({"node_modules/tslib/tslib.es6.js"(){Re(),de=function(m,E){return de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,b){p.__proto__=b}||function(p,b){for(var D in b)b.hasOwnProperty(D)&&(p[D]=b[D])},de(m,E)},he=function(){return he=Object.assign||function(m){for(var E,p=1,b=arguments.length;p<b;p++){E=arguments[p];for(var D in E)Object.prototype.hasOwnProperty.call(E,D)&&(m[D]=E[D])}return m},he.apply(this,arguments)}}}),He=_e({"node_modules/vnopts/lib/descriptors/api.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0}),m.apiDescriptor={key:E=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(E)?E:JSON.stringify(E),value(E){if(E===null||typeof E!="object")return JSON.stringify(E);if(Array.isArray(E))return`[${E.map(b=>m.apiDescriptor.value(b)).join(", ")}]`;let p=Object.keys(E);return p.length===0?"{}":`{ ${p.map(b=>`${m.apiDescriptor.key(b)}: ${m.apiDescriptor.value(E[b])}`).join(", ")} }`},pair:E=>{let{key:p,value:b}=E;return m.apiDescriptor.value({[p]:b})}}}}),et=_e({"node_modules/vnopts/lib/descriptors/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=(We(),Qn(mn));E.__exportStar(He(),m)}}),tt=_e({"scripts/build/shims/chalk.cjs"(m,E){Re();var p=b=>b;p.grey=p,p.red=p,p.bold=p,p.yellow=p,p.blue=p,p.default=p,E.exports=p}}),Ct=_e({"node_modules/vnopts/lib/handlers/deprecated/common.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=tt();m.commonDeprecatedHandler=(p,b,D)=>{let{descriptor:f}=D,d=[`${E.default.yellow(typeof p=="string"?f.key(p):f.pair(p))} is deprecated`];return b&&d.push(`we now treat it as ${E.default.blue(typeof b=="string"?f.key(b):f.pair(b))}`),d.join("; ")+"."}}}),wt=_e({"node_modules/vnopts/lib/handlers/deprecated/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=(We(),Qn(mn));E.__exportStar(Ct(),m)}}),Kt=_e({"node_modules/vnopts/lib/handlers/invalid/common.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=tt();m.commonInvalidHandler=(p,b,D)=>[`Invalid ${E.default.red(D.descriptor.key(p))} value.`,`Expected ${E.default.blue(D.schemas[p].expected(D))},`,`but received ${E.default.red(D.descriptor.value(b))}.`].join(" ")}}),rn=_e({"node_modules/vnopts/lib/handlers/invalid/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=(We(),Qn(mn));E.__exportStar(Kt(),m)}}),hn=_e({"node_modules/vnopts/node_modules/leven/index.js"(m,E){Re();var p=[],b=[];E.exports=function(D,f){if(D===f)return 0;var d=D;D.length>f.length&&(D=f,f=d);var h=D.length,v=f.length;if(h===0)return v;if(v===0)return h;for(;h>0&&D.charCodeAt(~-h)===f.charCodeAt(~-v);)h--,v--;if(h===0)return v;for(var S=0;S<h&&D.charCodeAt(S)===f.charCodeAt(S);)S++;if(h-=S,v-=S,h===0)return v;for(var L,_,k,A,x=0,j=0;x<h;)b[S+x]=D.charCodeAt(S+x),p[x]=++x;for(;j<v;)for(L=f.charCodeAt(S+j),k=j++,_=j,x=0;x<h;x++)A=L===b[S+x]?k:k+1,k=p[x],_=p[x]=k>_?A>_?_+1:A:A>k?k+1:A;return _}}}),Mn=_e({"node_modules/vnopts/lib/handlers/unknown/leven.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=tt(),p=hn();m.levenUnknownHandler=(b,D,f)=>{let{descriptor:d,logger:h,schemas:v}=f,S=[`Ignored unknown option ${E.default.yellow(d.pair({key:b,value:D}))}.`],L=Object.keys(v).sort().find(_=>p(b,_)<3);L&&S.push(`Did you mean ${E.default.blue(d.key(L))}?`),h.warn(S.join(" "))}}}),lr=_e({"node_modules/vnopts/lib/handlers/unknown/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=(We(),Qn(mn));E.__exportStar(Mn(),m)}}),cr=_e({"node_modules/vnopts/lib/handlers/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=(We(),Qn(mn));E.__exportStar(wt(),m),E.__exportStar(rn(),m),E.__exportStar(lr(),m)}}),Vn=_e({"node_modules/vnopts/lib/schema.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function p(f,d){let h=new f(d),v=Object.create(h);for(let S of E)S in d&&(v[S]=D(d[S],h,b.prototype[S].length));return v}m.createSchema=p;var b=class{constructor(f){this.name=f.name}static create(f){return p(this,f)}default(f){}expected(f){return"nothing"}validate(f,d){return!1}deprecated(f,d){return!1}forward(f,d){}redirect(f,d){}overlap(f,d,h){return f}preprocess(f,d){return f}postprocess(f,d){return f}};m.Schema=b;function D(f,d,h){return typeof f=="function"?function(){for(var v=arguments.length,S=new Array(v),L=0;L<v;L++)S[L]=arguments[L];return f(...S.slice(0,h-1),d,...S.slice(h-1))}:()=>f}}}),ir=_e({"node_modules/vnopts/lib/schemas/alias.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=Vn(),p=class extends E.Schema{constructor(b){super(b),this._sourceName=b.sourceName}expected(b){return b.schemas[this._sourceName].expected(b)}validate(b,D){return D.schemas[this._sourceName].validate(b,D)}redirect(b,D){return this._sourceName}};m.AliasSchema=p}}),tr=_e({"node_modules/vnopts/lib/schemas/any.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=Vn(),p=class extends E.Schema{expected(){return"anything"}validate(){return!0}};m.AnySchema=p}}),qr=_e({"node_modules/vnopts/lib/schemas/array.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=(We(),Qn(mn)),p=Vn(),b=class extends p.Schema{constructor(f){var{valueSchema:d,name:h=d.name}=f,v=E.__rest(f,["valueSchema","name"]);super(Object.assign({},v,{name:h})),this._valueSchema=d}expected(f){return`an array of ${this._valueSchema.expected(f)}`}validate(f,d){if(!Array.isArray(f))return!1;let h=[];for(let v of f){let S=d.normalizeValidateResult(this._valueSchema.validate(v,d),v);S!==!0&&h.push(S.value)}return h.length===0?!0:{value:h}}deprecated(f,d){let h=[];for(let v of f){let S=d.normalizeDeprecatedResult(this._valueSchema.deprecated(v,d),v);S!==!1&&h.push(...S.map(L=>{let{value:_}=L;return{value:[_]}}))}return h}forward(f,d){let h=[];for(let v of f){let S=d.normalizeForwardResult(this._valueSchema.forward(v,d),v);h.push(...S.map(D))}return h}redirect(f,d){let h=[],v=[];for(let S of f){let L=d.normalizeRedirectResult(this._valueSchema.redirect(S,d),S);"remain"in L&&h.push(L.remain),v.push(...L.redirect.map(D))}return h.length===0?{redirect:v}:{redirect:v,remain:h}}overlap(f,d){return f.concat(d)}};m.ArraySchema=b;function D(f){let{from:d,to:h}=f;return{from:[d],to:h}}}}),ur=_e({"node_modules/vnopts/lib/schemas/boolean.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=Vn(),p=class extends E.Schema{expected(){return"true or false"}validate(b){return typeof b=="boolean"}};m.BooleanSchema=p}}),Gr=_e({"node_modules/vnopts/lib/utils.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});function E(A,x){let j=Object.create(null);for(let Q of A){let te=Q[x];if(j[te])throw new Error(`Duplicate ${x} ${JSON.stringify(te)}`);j[te]=Q}return j}m.recordFromArray=E;function p(A,x){let j=new Map;for(let Q of A){let te=Q[x];if(j.has(te))throw new Error(`Duplicate ${x} ${JSON.stringify(te)}`);j.set(te,Q)}return j}m.mapFromArray=p;function b(){let A=Object.create(null);return x=>{let j=JSON.stringify(x);return A[j]?!0:(A[j]=!0,!1)}}m.createAutoChecklist=b;function D(A,x){let j=[],Q=[];for(let te of A)x(te)?j.push(te):Q.push(te);return[j,Q]}m.partition=D;function f(A){return A===Math.floor(A)}m.isInt=f;function d(A,x){if(A===x)return 0;let j=typeof A,Q=typeof x,te=["undefined","object","boolean","number","string"];return j!==Q?te.indexOf(j)-te.indexOf(Q):j!=="string"?Number(A)-Number(x):A.localeCompare(x)}m.comparePrimitive=d;function h(A){return A===void 0?{}:A}m.normalizeDefaultResult=h;function v(A,x){return A===!0?!0:A===!1?{value:x}:A}m.normalizeValidateResult=v;function S(A,x){let j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return A===!1?!1:A===!0?j?!0:[{value:x}]:"value"in A?[A]:A.length===0?!1:A}m.normalizeDeprecatedResult=S;function L(A,x){return typeof A=="string"||"key"in A?{from:x,to:A}:"from"in A?{from:A.from,to:A.to}:{from:x,to:A.to}}m.normalizeTransferResult=L;function _(A,x){return A===void 0?[]:Array.isArray(A)?A.map(j=>L(j,x)):[L(A,x)]}m.normalizeForwardResult=_;function k(A,x){let j=_(typeof A=="object"&&"redirect"in A?A.redirect:A,x);return j.length===0?{remain:x,redirect:j}:typeof A=="object"&&"remain"in A?{remain:A.remain,redirect:j}:{redirect:j}}m.normalizeRedirectResult=k}}),yr=_e({"node_modules/vnopts/lib/schemas/choice.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=Vn(),p=Gr(),b=class extends E.Schema{constructor(D){super(D),this._choices=p.mapFromArray(D.choices.map(f=>f&&typeof f=="object"?f:{value:f}),"value")}expected(D){let{descriptor:f}=D,d=Array.from(this._choices.keys()).map(S=>this._choices.get(S)).filter(S=>!S.deprecated).map(S=>S.value).sort(p.comparePrimitive).map(f.value),h=d.slice(0,-2),v=d.slice(-2);return h.concat(v.join(" or ")).join(", ")}validate(D){return this._choices.has(D)}deprecated(D){let f=this._choices.get(D);return f&&f.deprecated?{value:D}:!1}forward(D){let f=this._choices.get(D);return f?f.forward:void 0}redirect(D){let f=this._choices.get(D);return f?f.redirect:void 0}};m.ChoiceSchema=b}}),_r=_e({"node_modules/vnopts/lib/schemas/number.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=Vn(),p=class extends E.Schema{expected(){return"a number"}validate(b,D){return typeof b=="number"}};m.NumberSchema=p}}),Ha=_e({"node_modules/vnopts/lib/schemas/integer.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=Gr(),p=_r(),b=class extends p.NumberSchema{expected(){return"an integer"}validate(D,f){return f.normalizeValidateResult(super.validate(D,f),D)===!0&&E.isInt(D)}};m.IntegerSchema=b}}),Cv=_e({"node_modules/vnopts/lib/schemas/string.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=Vn(),p=class extends E.Schema{expected(){return"a string"}validate(b){return typeof b=="string"}};m.StringSchema=p}}),Sv=_e({"node_modules/vnopts/lib/schemas/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=(We(),Qn(mn));E.__exportStar(ir(),m),E.__exportStar(tr(),m),E.__exportStar(qr(),m),E.__exportStar(ur(),m),E.__exportStar(yr(),m),E.__exportStar(Ha(),m),E.__exportStar(_r(),m),E.__exportStar(Cv(),m)}}),xv=_e({"node_modules/vnopts/lib/defaults.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=He(),p=Ct(),b=rn(),D=Mn();m.defaultDescriptor=E.apiDescriptor,m.defaultUnknownHandler=D.levenUnknownHandler,m.defaultInvalidHandler=b.commonInvalidHandler,m.defaultDeprecatedHandler=p.commonDeprecatedHandler}}),wv=_e({"node_modules/vnopts/lib/normalize.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=xv(),p=Gr();m.normalize=(D,f,d)=>new b(f,d).normalize(D);var b=class{constructor(D,f){let{logger:d=console,descriptor:h=E.defaultDescriptor,unknown:v=E.defaultUnknownHandler,invalid:S=E.defaultInvalidHandler,deprecated:L=E.defaultDeprecatedHandler}=f||{};this._utils={descriptor:h,logger:d||{warn:()=>{}},schemas:p.recordFromArray(D,"name"),normalizeDefaultResult:p.normalizeDefaultResult,normalizeDeprecatedResult:p.normalizeDeprecatedResult,normalizeForwardResult:p.normalizeForwardResult,normalizeRedirectResult:p.normalizeRedirectResult,normalizeValidateResult:p.normalizeValidateResult},this._unknownHandler=v,this._invalidHandler=S,this._deprecatedHandler=L,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=p.createAutoChecklist()}normalize(D){let f={},d=[D],h=()=>{for(;d.length!==0;){let v=d.shift(),S=this._applyNormalization(v,f);d.push(...S)}};h();for(let v of Object.keys(this._utils.schemas)){let S=this._utils.schemas[v];if(!(v in f)){let L=p.normalizeDefaultResult(S.default(this._utils));"value"in L&&d.push({[v]:L.value})}}h();for(let v of Object.keys(this._utils.schemas)){let S=this._utils.schemas[v];v in f&&(f[v]=S.postprocess(f[v],this._utils))}return f}_applyNormalization(D,f){let d=[],[h,v]=p.partition(Object.keys(D),S=>S in this._utils.schemas);for(let S of h){let L=this._utils.schemas[S],_=L.preprocess(D[S],this._utils),k=p.normalizeValidateResult(L.validate(_,this._utils),_);if(k!==!0){let{value:Q}=k,te=this._invalidHandler(S,Q,this._utils);throw typeof te=="string"?new Error(te):te}let A=Q=>{let{from:te,to:$}=Q;d.push(typeof $=="string"?{[$]:te}:{[$.key]:$.value})},x=Q=>{let{value:te,redirectTo:$}=Q,X=p.normalizeDeprecatedResult(L.deprecated(te,this._utils),_,!0);if(X!==!1)if(X===!0)this._hasDeprecationWarned(S)||this._utils.logger.warn(this._deprecatedHandler(S,$,this._utils));else for(let{value:G}of X){let re={key:S,value:G};if(!this._hasDeprecationWarned(re)){let Z=typeof $=="string"?{key:$,value:G}:$;this._utils.logger.warn(this._deprecatedHandler(re,Z,this._utils))}}};p.normalizeForwardResult(L.forward(_,this._utils),_).forEach(A);let j=p.normalizeRedirectResult(L.redirect(_,this._utils),_);if(j.redirect.forEach(A),"remain"in j){let Q=j.remain;f[S]=S in f?L.overlap(f[S],Q,this._utils):Q,x({value:Q})}for(let{from:Q,to:te}of j.redirect)x({value:Q,redirectTo:te})}for(let S of v){let L=D[S],_=this._unknownHandler(S,L,this._utils);if(_)for(let k of Object.keys(_)){let A={[k]:_[k]};k in this._utils.schemas?d.push(A):Object.assign(f,A)}}return d}};m.Normalizer=b}}),Fv=_e({"node_modules/vnopts/lib/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=(We(),Qn(mn));E.__exportStar(et(),m),E.__exportStar(cr(),m),E.__exportStar(Sv(),m),E.__exportStar(wv(),m),E.__exportStar(Vn(),m)}}),Nv=_e({"src/main/options-normalizer.js"(m,E){Re();var p=Fv(),b=Vr(),D={key:k=>k.length===1?`-${k}`:`--${k}`,value:k=>p.apiDescriptor.value(k),pair:k=>{let{key:A,value:x}=k;return x===!1?`--no-${A}`:x===!0?D.key(A):x===""?`${D.key(A)} without an argument`:`${D.key(A)}=${x}`}},f=k=>{let{colorsModule:A,levenshteinDistance:x}=k;return class extends p.ChoiceSchema{constructor(j){let{name:Q,flags:te}=j;super({name:Q,choices:te}),this._flags=[...te].sort()}preprocess(j,Q){if(typeof j=="string"&&j.length>0&&!this._flags.includes(j)){let te=this._flags.find($=>x($,j)<3);if(te)return Q.logger.warn([`Unknown flag ${A.yellow(Q.descriptor.value(j))},`,`did you mean ${A.blue(Q.descriptor.value(te))}?`].join(" ")),te}return j}expected(){return"a flag"}}},d;function h(k,A){let{logger:x=!1,isCLI:j=!1,passThrough:Q=!1,colorsModule:te=null,levenshteinDistance:$=null}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},X=Q?Array.isArray(Q)?(J,w)=>Q.includes(J)?{[J]:w}:void 0:(J,w)=>({[J]:w}):(J,w,R)=>{let y=R.schemas,T=St(y,ut);return p.levenUnknownHandler(J,w,Object.assign(Object.assign({},R),{},{schemas:T}))},G=j?D:p.apiDescriptor,re=v(A,{isCLI:j,colorsModule:te,levenshteinDistance:$}),Z=new p.Normalizer(re,{logger:x,unknown:X,descriptor:G}),De=x!==!1;De&&d&&(Z._hasDeprecationWarned=d);let F=Z.normalize(k);return De&&(d=Z._hasDeprecationWarned),j&&F["plugin-search"]===!1&&(F["plugin-search-dir"]=!1),F}function v(k,A){let{isCLI:x,colorsModule:j,levenshteinDistance:Q}=A,te=[];x&&te.push(p.AnySchema.create({name:"_"}));for(let $ of k)te.push(S($,{isCLI:x,optionInfos:k,colorsModule:j,levenshteinDistance:Q})),$.alias&&x&&te.push(p.AliasSchema.create({name:$.alias,sourceName:$.name}));return te}function S(k,A){let{isCLI:x,optionInfos:j,colorsModule:Q,levenshteinDistance:te}=A,{name:$}=k;if($==="plugin-search-dir"||$==="pluginSearchDirs")return p.AnySchema.create({name:$,preprocess(Z){return Z===!1||(Z=Array.isArray(Z)?Z:[Z]),Z},validate(Z){return Z===!1?!0:Z.every(De=>typeof De=="string")},expected(){return"false or paths to plugin search dir"}});let X={name:$},G,re={};switch(k.type){case"int":G=p.IntegerSchema,x&&(X.preprocess=Number);break;case"string":G=p.StringSchema;break;case"choice":G=p.ChoiceSchema,X.choices=k.choices.map(Z=>typeof Z=="object"&&Z.redirect?Object.assign(Object.assign({},Z),{},{redirect:{to:{key:k.name,value:Z.redirect}}}):Z);break;case"boolean":G=p.BooleanSchema;break;case"flag":G=f({colorsModule:Q,levenshteinDistance:te}),X.flags=j.flatMap(Z=>[Z.alias,Z.description&&Z.name,Z.oppositeDescription&&`no-${Z.name}`].filter(Boolean));break;case"path":G=p.StringSchema;break;default:throw new Error(`Unexpected type ${k.type}`)}if(k.exception?X.validate=(Z,De,F)=>k.exception(Z)||De.validate(Z,F):X.validate=(Z,De,F)=>Z===void 0||De.validate(Z,F),k.redirect&&(re.redirect=Z=>Z?{to:{key:k.redirect.option,value:k.redirect.value}}:void 0),k.deprecated&&(re.deprecated=!0),x&&!k.array){let Z=X.preprocess||(De=>De);X.preprocess=(De,F,J)=>F.preprocess(Z(Array.isArray(De)?b(De):De),J)}return k.array?p.ArraySchema.create(Object.assign(Object.assign(Object.assign({},x?{preprocess:Z=>Array.isArray(Z)?Z:[Z]}:{}),re),{},{valueSchema:G.create(X)})):G.create(Object.assign(Object.assign({},X),re))}function L(k,A,x){return h(k,A,x)}function _(k,A,x){return h(k,A,Object.assign({isCLI:!0},x))}E.exports={normalizeApiOptions:L,normalizeCliOptions:_}}}),ii=_e({"src/language-js/loc.js"(m,E){Re();var p=It();function b(v){var S,L;let _=v.range?v.range[0]:v.start,k=(S=(L=v.declaration)===null||L===void 0?void 0:L.decorators)!==null&&S!==void 0?S:v.decorators;return p(k)?Math.min(b(k[0]),_):_}function D(v){return v.range?v.range[1]:v.end}function f(v,S){let L=b(v);return Number.isInteger(L)&&L===b(S)}function d(v,S){let L=D(v);return Number.isInteger(L)&&L===D(S)}function h(v,S){return f(v,S)&&d(v,S)}E.exports={locStart:b,locEnd:D,hasSameLocStart:f,hasSameLoc:h}}}),_v=_e({"src/main/load-parser.js"(m,E){Re(),E.exports=()=>{}}}),Tv=_e({"scripts/build/shims/babel-highlight.cjs"(m,E){Re();var p=tt(),b={shouldHighlight:()=>!1,getChalk:()=>p};E.exports=b}}),kv=_e({"node_modules/@babel/code-frame/lib/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0}),m.codeFrameColumns=d,m.default=h;var E=Tv(),p=!1;function b(v){return{gutter:v.grey,marker:v.red.bold,message:v.red.bold}}var D=/\r\n|[\n\r\u2028\u2029]/;function f(v,S,L){let _=Object.assign({column:0,line:-1},v.start),k=Object.assign({},_,v.end),{linesAbove:A=2,linesBelow:x=3}=L||{},j=_.line,Q=_.column,te=k.line,$=k.column,X=Math.max(j-(A+1),0),G=Math.min(S.length,te+x);j===-1&&(X=0),te===-1&&(G=S.length);let re=te-j,Z={};if(re)for(let De=0;De<=re;De++){let F=De+j;if(!Q)Z[F]=!0;else if(De===0){let J=S[F-1].length;Z[F]=[Q,J-Q+1]}else if(De===re)Z[F]=[0,$];else{let J=S[F-De].length;Z[F]=[0,J]}}else Q===$?Q?Z[j]=[Q,0]:Z[j]=!0:Z[j]=[Q,$-Q];return{start:X,end:G,markerLines:Z}}function d(v,S){let L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_=(L.highlightCode||L.forceColor)&&(0,E.shouldHighlight)(L),k=(0,E.getChalk)(L),A=b(k),x=(Z,De)=>_?Z(De):De,j=v.split(D),{start:Q,end:te,markerLines:$}=f(S,j,L),X=S.start&&typeof S.start.column=="number",G=String(te).length,re=(_?(0,E.default)(v,L):v).split(D,te).slice(Q,te).map((Z,De)=>{let F=Q+1+De,J=` ${` ${F}`.slice(-G)} |`,w=$[F],R=!$[F+1];if(w){let y="";if(Array.isArray(w)){let T=Z.slice(0,Math.max(w[0]-1,0)).replace(/[^\t]/g," "),M=w[1]||1;y=[`
180
- `,x(A.gutter,J.replace(/\d/g," "))," ",T,x(A.marker,"^").repeat(M)].join(""),R&&L.message&&(y+=" "+x(A.message,L.message))}return[x(A.marker,">"),x(A.gutter,J),Z.length>0?` ${Z}`:"",y].join("")}else return` ${x(A.gutter,J)}${Z.length>0?` ${Z}`:""}`}).join(`
181
- `);return L.message&&!X&&(re=`${" ".repeat(G+1)}${L.message}
182
- ${re}`),_?k.reset(re):re}function h(v,S,L){let _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(!p){p=!0;let k="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(xr.emitWarning)xr.emitWarning(k,"DeprecationWarning");else{let A=new Error(k);A.name="DeprecationWarning",console.warn(new Error(k))}}return L=Math.max(L,0),d(v,{start:{column:L,line:S}},_)}}}),Uf=_e({"src/main/parser.js"(m,E){Re();var{ConfigError:p}=tn(),b=ii();_v();var{locStart:D,locEnd:f}=b,d=Object.getOwnPropertyNames,h=Object.getOwnPropertyDescriptor;function v(_){let k={};for(let A of _.plugins)if(A.parsers)for(let x of d(A.parsers))Object.defineProperty(k,x,h(A.parsers,x));return k}function S(_){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v(_);if(typeof _.parser=="function")return{parse:_.parser,astFormat:"estree",locStart:D,locEnd:f};if(typeof _.parser=="string"){if(Object.prototype.hasOwnProperty.call(k,_.parser))return k[_.parser];throw new p(`Couldn't resolve parser "${_.parser}". Parsers must be explicitly added to the standalone bundle.`)}}function L(_,k){let A=v(k),x=Object.defineProperties({},Object.fromEntries(Object.keys(A).map(Q=>[Q,{enumerable:!0,get(){return A[Q].parse}}]))),j=S(k,A);try{return j.preprocess&&(_=j.preprocess(_,k)),{text:_,ast:j.parse(_,x,k)}}catch(Q){let{loc:te}=Q;if(te){let{codeFrameColumns:$}=kv();throw Q.codeFrame=$(_,te,{highlightCode:!0}),Q.message+=`
183
- `+Q.codeFrame,Q}throw Q}}E.exports={parse:L,resolveParser:S}}}),gm=_e({"src/main/options.js"(m,E){Re();var p=bt(),{UndefinedParserError:b}=tn(),{getSupportInfo:D}=Ft(),f=Nv(),{resolveParser:d}=Uf(),h={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function v(_){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=Object.assign({},_),x=D({plugins:_.plugins,showUnreleased:!0,showDeprecated:!0}).options,j=Object.assign(Object.assign({},h),Object.fromEntries(x.filter(G=>G.default!==void 0).map(G=>[G.name,G.default])));if(!A.parser){if(!A.filepath)(k.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),A.parser="babel";else if(A.parser=L(A.filepath,A.plugins),!A.parser)throw new b(`No parser could be inferred for file: ${A.filepath}`)}let Q=d(f.normalizeApiOptions(A,[x.find(G=>G.name==="parser")],{passThrough:!0,logger:!1}));A.astFormat=Q.astFormat,A.locEnd=Q.locEnd,A.locStart=Q.locStart;let te=S(A);A.printer=te.printers[A.astFormat];let $=Object.fromEntries(x.filter(G=>G.pluginDefaults&&G.pluginDefaults[te.name]!==void 0).map(G=>[G.name,G.pluginDefaults[te.name]])),X=Object.assign(Object.assign({},j),$);for(let[G,re]of Object.entries(X))(A[G]===null||A[G]===void 0)&&(A[G]=re);return A.parser==="json"&&(A.trailingComma="none"),f.normalizeApiOptions(A,x,Object.assign({passThrough:Object.keys(h)},k))}function S(_){let{astFormat:k}=_;if(!k)throw new Error("getPlugin() requires astFormat to be set");let A=_.plugins.find(x=>x.printers&&x.printers[k]);if(!A)throw new Error(`Couldn't find plugin for AST format "${k}"`);return A}function L(_,k){let A=p.basename(_).toLowerCase(),x=D({plugins:k}).languages.filter(j=>j.since!==null).find(j=>j.extensions&&j.extensions.some(Q=>A.endsWith(Q))||j.filenames&&j.filenames.some(Q=>Q.toLowerCase()===A));return x&&x.parsers[0]}E.exports={normalize:v,hiddenDefaults:h,inferParser:L}}}),Lv=_e({"src/main/massage-ast.js"(m,E){Re();function p(b,D,f){if(Array.isArray(b))return b.map(S=>p(S,D,f)).filter(Boolean);if(!b||typeof b!="object")return b;let d=D.printer.massageAstNode,h;d&&d.ignoredProperties?h=d.ignoredProperties:h=new Set;let v={};for(let[S,L]of Object.entries(b))!h.has(S)&&typeof L!="function"&&(v[S]=p(L,D,b));if(d){let S=d(b,v,f);if(S===null)return;if(S)return S}return v}E.exports=p}}),Mo=_e({"scripts/build/shims/assert.cjs"(m,E){Re();var p=()=>{};p.ok=p,p.strictEqual=p,E.exports=p}}),Or=_e({"src/main/comments.js"(m,E){Re();var p=Mo(),{builders:{line:b,hardline:D,breakParent:f,indent:d,lineSuffix:h,join:v,cursor:S}}=Fn(),{hasNewline:L,skipNewline:_,skipSpaces:k,isPreviousLineEmpty:A,addLeadingComment:x,addDanglingComment:j,addTrailingComment:Q}=ye(),te=new WeakMap;function $(ie,ce,ge){if(!ie)return;let{printer:fe,locStart:ke,locEnd:se}=ce;if(ge){if(fe.canAttachComment&&fe.canAttachComment(ie)){let me;for(me=ge.length-1;me>=0&&!(ke(ge[me])<=ke(ie)&&se(ge[me])<=se(ie));--me);ge.splice(me+1,0,ie);return}}else if(te.has(ie))return te.get(ie);let Ue=fe.getCommentChildNodes&&fe.getCommentChildNodes(ie,ce)||typeof ie=="object"&&Object.entries(ie).filter(me=>{let[ue]=me;return ue!=="enclosingNode"&&ue!=="precedingNode"&&ue!=="followingNode"&&ue!=="tokens"&&ue!=="comments"&&ue!=="parent"}).map(me=>{let[,ue]=me;return ue});if(Ue){ge||(ge=[],te.set(ie,ge));for(let me of Ue)$(me,ce,ge);return ge}}function X(ie,ce,ge,fe){let{locStart:ke,locEnd:se}=ge,Ue=ke(ce),me=se(ce),ue=$(ie,ge),Ve,nt,Je=0,ht=ue.length;for(;Je<ht;){let be=Je+ht>>1,Ie=ue[be],ft=ke(Ie),pt=se(Ie);if(ft<=Ue&&me<=pt)return X(Ie,ce,ge,Ie);if(pt<=Ue){Ve=Ie,Je=be+1;continue}if(me<=ft){nt=Ie,ht=be;continue}throw new Error("Comment location overlaps with node location")}if(fe&&fe.type==="TemplateLiteral"){let{quasis:be}=fe,Ie=R(be,ce,ge);Ve&&R(be,Ve,ge)!==Ie&&(Ve=null),nt&&R(be,nt,ge)!==Ie&&(nt=null)}return{enclosingNode:fe,precedingNode:Ve,followingNode:nt}}var G=()=>!1;function re(ie,ce,ge,fe){if(!Array.isArray(ie))return;let ke=[],{locStart:se,locEnd:Ue,printer:{handleComments:me={}}}=fe,{avoidAstMutation:ue,ownLine:Ve=G,endOfLine:nt=G,remaining:Je=G}=me,ht=ie.map((be,Ie)=>Object.assign(Object.assign({},X(ce,be,fe)),{},{comment:be,text:ge,options:fe,ast:ce,isLastComment:ie.length-1===Ie}));for(let[be,Ie]of ht.entries()){let{comment:ft,precedingNode:pt,enclosingNode:Jt,followingNode:$e,text:xe,options:Ye,ast:Xe,isLastComment:vt}=Ie;if(Ye.parser==="json"||Ye.parser==="json5"||Ye.parser==="__js_expression"||Ye.parser==="__vue_expression"||Ye.parser==="__vue_ts_expression"){if(se(ft)-se(Xe)<=0){x(Xe,ft);continue}if(Ue(ft)-Ue(Xe)>=0){Q(Xe,ft);continue}}let Nt;if(ue?Nt=[Ie]:(ft.enclosingNode=Jt,ft.precedingNode=pt,ft.followingNode=$e,Nt=[ft,xe,Ye,Xe,vt]),De(xe,Ye,ht,be))ft.placement="ownLine",Ve(...Nt)||($e?x($e,ft):pt?Q(pt,ft):j(Jt||Xe,ft));else if(F(xe,Ye,ht,be))ft.placement="endOfLine",nt(...Nt)||(pt?Q(pt,ft):$e?x($e,ft):j(Jt||Xe,ft));else if(ft.placement="remaining",!Je(...Nt))if(pt&&$e){let Bt=ke.length;Bt>0&&ke[Bt-1].followingNode!==$e&&J(ke,xe,Ye),ke.push(Ie)}else pt?Q(pt,ft):$e?x($e,ft):j(Jt||Xe,ft)}if(J(ke,ge,fe),!ue)for(let be of ie)delete be.precedingNode,delete be.enclosingNode,delete be.followingNode}var Z=ie=>!/[\S\n\u2028\u2029]/.test(ie);function De(ie,ce,ge,fe){let{comment:ke,precedingNode:se}=ge[fe],{locStart:Ue,locEnd:me}=ce,ue=Ue(ke);if(se)for(let Ve=fe-1;Ve>=0;Ve--){let{comment:nt,precedingNode:Je}=ge[Ve];if(Je!==se||!Z(ie.slice(me(nt),ue)))break;ue=Ue(nt)}return L(ie,ue,{backwards:!0})}function F(ie,ce,ge,fe){let{comment:ke,followingNode:se}=ge[fe],{locStart:Ue,locEnd:me}=ce,ue=me(ke);if(se)for(let Ve=fe+1;Ve<ge.length;Ve++){let{comment:nt,followingNode:Je}=ge[Ve];if(Je!==se||!Z(ie.slice(ue,Ue(nt))))break;ue=me(nt)}return L(ie,ue)}function J(ie,ce,ge){let fe=ie.length;if(fe===0)return;let{precedingNode:ke,followingNode:se,enclosingNode:Ue}=ie[0],me=ge.printer.getGapRegex&&ge.printer.getGapRegex(Ue)||/^[\s(]*$/,ue=ge.locStart(se),Ve;for(Ve=fe;Ve>0;--Ve){let{comment:nt,precedingNode:Je,followingNode:ht}=ie[Ve-1];p.strictEqual(Je,ke),p.strictEqual(ht,se);let be=ce.slice(ge.locEnd(nt),ue);if(me.test(be))ue=ge.locStart(nt);else break}for(let[nt,{comment:Je}]of ie.entries())nt<Ve?Q(ke,Je):x(se,Je);for(let nt of[ke,se])nt.comments&&nt.comments.length>1&&nt.comments.sort((Je,ht)=>ge.locStart(Je)-ge.locStart(ht));ie.length=0}function w(ie,ce){let ge=ie.getValue();return ge.printed=!0,ce.printer.printComment(ie,ce)}function R(ie,ce,ge){let fe=ge.locStart(ce)-1;for(let ke=1;ke<ie.length;++ke)if(fe<ge.locStart(ie[ke]))return ke-1;return 0}function y(ie,ce){let ge=ie.getValue(),fe=[w(ie,ce)],{printer:ke,originalText:se,locStart:Ue,locEnd:me}=ce;if(ke.isBlockComment&&ke.isBlockComment(ge)){let Ve=L(se,me(ge))?L(se,Ue(ge),{backwards:!0})?D:b:" ";fe.push(Ve)}else fe.push(D);let ue=_(se,k(se,me(ge)));return ue!==!1&&L(se,ue)&&fe.push(D),fe}function T(ie,ce){let ge=ie.getValue(),fe=w(ie,ce),{printer:ke,originalText:se,locStart:Ue}=ce,me=ke.isBlockComment&&ke.isBlockComment(ge);if(L(se,Ue(ge),{backwards:!0})){let Ve=A(se,ge,Ue);return h([D,Ve?D:"",fe])}let ue=[" ",fe];return me||(ue=[h(ue),f]),ue}function M(ie,ce,ge,fe){let ke=[],se=ie.getValue();return!se||!se.comments||(ie.each(()=>{let Ue=ie.getValue();!Ue.leading&&!Ue.trailing&&(!fe||fe(Ue))&&ke.push(w(ie,ce))},"comments"),ke.length===0)?"":ge?v(D,ke):d([D,v(D,ke)])}function q(ie,ce,ge){let fe=ie.getValue();if(!fe)return{};let ke=fe.comments||[];ge&&(ke=ke.filter(ue=>!ge.has(ue)));let se=fe===ce.cursorNode;if(ke.length===0){let ue=se?S:"";return{leading:ue,trailing:ue}}let Ue=[],me=[];return ie.each(()=>{let ue=ie.getValue();if(ge&&ge.has(ue))return;let{leading:Ve,trailing:nt}=ue;Ve?Ue.push(y(ie,ce)):nt&&me.push(T(ie,ce))},"comments"),se&&(Ue.unshift(S),me.push(S)),{leading:Ue,trailing:me}}function U(ie,ce,ge,fe){let{leading:ke,trailing:se}=q(ie,ge,fe);return!ke&&!se?ce:[ke,ce,se]}function z(ie){if(ie)for(let ce of ie){if(!ce.printed)throw new Error('Comment "'+ce.value.trim()+'" was not printed. Please report this error!');delete ce.printed}}E.exports={attach:re,printComments:U,printCommentsSeparately:q,printDanglingComments:M,getSortedChildNodes:$,ensureAllCommentsPrinted:z}}}),Pv=_e({"src/common/ast-path.js"(m,E){Re();var p=Vr();function b(d,h){let v=D(d.stack,h);return v===-1?null:d.stack[v]}function D(d,h){for(let v=d.length-1;v>=0;v-=2){let S=d[v];if(S&&!Array.isArray(S)&&--h<0)return v}return-1}var f=class{constructor(d){this.stack=[d]}getName(){let{stack:d}=this,{length:h}=d;return h>1?d[h-2]:null}getValue(){return p(this.stack)}getNode(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return b(this,d)}getParentNode(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return b(this,d+1)}call(d){let{stack:h}=this,{length:v}=h,S=p(h);for(var L=arguments.length,_=new Array(L>1?L-1:0),k=1;k<L;k++)_[k-1]=arguments[k];for(let x of _)S=S[x],h.push(x,S);let A=d(this);return h.length=v,A}callParent(d){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,v=D(this.stack,h+1),S=this.stack.splice(v+1),L=d(this);return this.stack.push(...S),L}each(d){let{stack:h}=this,{length:v}=h,S=p(h);for(var L=arguments.length,_=new Array(L>1?L-1:0),k=1;k<L;k++)_[k-1]=arguments[k];for(let A of _)S=S[A],h.push(A,S);for(let A=0;A<S.length;++A)h.push(A,S[A]),d(this,A,S),h.length-=2;h.length=v}map(d){let h=[];for(var v=arguments.length,S=new Array(v>1?v-1:0),L=1;L<v;L++)S[L-1]=arguments[L];return this.each((_,k,A)=>{h[k]=d(_,k,A)},...S),h}try(d){let{stack:h}=this,v=[...h];try{return d()}finally{h.length=0,h.push(...v)}}match(){let d=this.stack.length-1,h=null,v=this.stack[d--];for(var S=arguments.length,L=new Array(S),_=0;_<S;_++)L[_]=arguments[_];for(let k of L){if(v===void 0)return!1;let A=null;if(typeof h=="number"&&(A=h,h=this.stack[d--],v=this.stack[d--]),k&&!k(v,h,A))return!1;h=this.stack[d--],v=this.stack[d--]}return!0}findAncestor(d){let h=this.stack.length-1,v=null,S=this.stack[h--];for(;S;){let L=null;if(typeof v=="number"&&(L=v,v=this.stack[h--],S=this.stack[h--]),v!==null&&d(S,v,L))return S;v=this.stack[h--],S=this.stack[h--]}}};E.exports=f}}),Bv=_e({"src/main/multiparser.js"(m,E){Re();var{utils:{stripTrailingHardline:p}}=Fn(),{normalize:b}=gm(),D=Or();function f(h,v,S,L){if(S.printer.embed&&S.embeddedLanguageFormatting==="auto")return S.printer.embed(h,v,(_,k,A)=>d(_,k,S,L,A),S)}function d(h,v,S,L){let{stripTrailingHardline:_=!1}=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},k=b(Object.assign(Object.assign(Object.assign({},S),v),{},{parentParser:S.parser,originalText:h}),{passThrough:!0}),A=Uf().parse(h,k),{ast:x}=A;h=A.text;let j=x.comments;delete x.comments,D.attach(j,x,h,k),k[Symbol.for("comments")]=j||[],k[Symbol.for("tokens")]=x.tokens||[];let Q=L(x,k);return D.ensureAllCommentsPrinted(j),_?typeof Q=="string"?Q.replace(/(?:\r?\n)*$/,""):p(Q):Q}E.exports={printSubtree:f}}}),Mv=_e({"src/main/ast-to-doc.js"(m,E){Re();var p=Pv(),{builders:{hardline:b,addAlignmentToDoc:D},utils:{propagateBreaks:f}}=Fn(),{printComments:d}=Or(),h=Bv();function v(_,k){let A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,{printer:x}=k;x.preprocess&&(_=x.preprocess(_,k));let j=new Map,Q=new p(_),te=$();return A>0&&(te=D([b,te],A,k.tabWidth)),f(te),te;function $(G,re){return G===void 0||G===Q?X(re):Array.isArray(G)?Q.call(()=>X(re),...G):Q.call(()=>X(re),G)}function X(G){let re=Q.getValue(),Z=re&&typeof re=="object"&&G===void 0;if(Z&&j.has(re))return j.get(re);let De=L(Q,k,$,G);return Z&&j.set(re,De),De}}function S(_,k){let{originalText:A,[Symbol.for("comments")]:x,locStart:j,locEnd:Q}=k,te=j(_),$=Q(_),X=new Set;for(let G of x)j(G)>=te&&Q(G)<=$&&(G.printed=!0,X.add(G));return{doc:A.slice(te,$),printedComments:X}}function L(_,k,A,x){let j=_.getValue(),{printer:Q}=k,te,$;if(Q.hasPrettierIgnore&&Q.hasPrettierIgnore(_))({doc:te,printedComments:$}=S(j,k));else{if(j)try{te=h.printSubtree(_,A,k,v)}catch(X){if(globalThis.PRETTIER_DEBUG)throw X}te||(te=Q.print(_,k,A,x))}return(!Q.willPrintOwnComments||!Q.willPrintOwnComments(_,k))&&(te=d(_,te,k,$)),te}E.exports=v}}),Iv=_e({"src/main/range-util.js"(m,E){Re();var p=Mo(),b=Or(),D=x=>{let{parser:j}=x;return j==="json"||j==="json5"||j==="json-stringify"};function f(x,j){let Q=[x.node,...x.parentNodes],te=new Set([j.node,...j.parentNodes]);return Q.find($=>L.has($.type)&&te.has($))}function d(x){let j=x.length-1;for(;;){let Q=x[j];if(Q&&(Q.type==="Program"||Q.type==="File"))j--;else break}return x.slice(0,j+1)}function h(x,j,Q){let{locStart:te,locEnd:$}=Q,X=x.node,G=j.node;if(X===G)return{startNode:X,endNode:G};let re=te(x.node);for(let De of d(j.parentNodes))if(te(De)>=re)G=De;else break;let Z=$(j.node);for(let De of d(x.parentNodes)){if($(De)<=Z)X=De;else break;if(X===G)break}return{startNode:X,endNode:G}}function v(x,j,Q,te){let $=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],X=arguments.length>5?arguments[5]:void 0,{locStart:G,locEnd:re}=Q,Z=G(x),De=re(x);if(!(j>De||j<Z||X==="rangeEnd"&&j===Z||X==="rangeStart"&&j===De)){for(let F of b.getSortedChildNodes(x,Q)){let J=v(F,j,Q,te,[x,...$],X);if(J)return J}if(!te||te(x,$[0]))return{node:x,parentNodes:$}}}function S(x,j){return j!=="DeclareExportDeclaration"&&x!=="TypeParameterDeclaration"&&(x==="Directive"||x==="TypeAlias"||x==="TSExportAssignment"||x.startsWith("Declare")||x.startsWith("TSDeclare")||x.endsWith("Statement")||x.endsWith("Declaration"))}var L=new Set(["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),_=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function k(x,j,Q){if(!j)return!1;switch(x.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return S(j.type,Q&&Q.type);case"json":case"json5":case"json-stringify":return L.has(j.type);case"graphql":return _.has(j.kind);case"vue":return j.tag!=="root"}return!1}function A(x,j,Q){let{rangeStart:te,rangeEnd:$,locStart:X,locEnd:G}=j;p.ok($>te);let re=x.slice(te,$).search(/\S/),Z=re===-1;if(!Z)for(te+=re;$>te&&!/\S/.test(x[$-1]);--$);let De=v(Q,te,j,(R,y)=>k(j,R,y),[],"rangeStart"),F=Z?De:v(Q,$,j,R=>k(j,R),[],"rangeEnd");if(!De||!F)return{rangeStart:0,rangeEnd:0};let J,w;if(D(j)){let R=f(De,F);J=R,w=R}else({startNode:J,endNode:w}=h(De,F,j));return{rangeStart:Math.min(X(J),X(w)),rangeEnd:Math.max(G(J),G(w))}}E.exports={calculateRange:A,findNodeAtOffset:v}}}),Ov=_e({"src/main/core.js"(m,E){Re();var{diffArrays:p}=Is(),{printer:{printDocToString:b},debug:{printDocToDebug:D}}=Fn(),{getAlignmentSize:f}=ye(),{guessEndOfLine:d,convertEndOfLineToChars:h,countEndOfLineChars:v,normalizeEndOfLine:S}=rs(),L=gm().normalize,_=Lv(),k=Or(),A=Uf(),x=Mv(),j=Iv(),Q="\uFEFF",te=Symbol("cursor");function $(w,R,y){let T=R.comments;return T&&(delete R.comments,k.attach(T,R,w,y)),y[Symbol.for("comments")]=T||[],y[Symbol.for("tokens")]=R.tokens||[],y.originalText=w,T}function X(w,R){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;if(!w||w.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:T,text:M}=A.parse(w,R);if(R.cursorOffset>=0){let ie=j.findNodeAtOffset(T,R.cursorOffset,R);ie&&ie.node&&(R.cursorNode=ie.node)}let q=$(M,T,R),U=x(T,R,y),z=b(U,R);if(k.ensureAllCommentsPrinted(q),y>0){let ie=z.formatted.trim();z.cursorNodeStart!==void 0&&(z.cursorNodeStart-=z.formatted.indexOf(ie)),z.formatted=ie+h(R.endOfLine)}if(R.cursorOffset>=0){let ie,ce,ge,fe,ke;if(R.cursorNode&&z.cursorNodeText?(ie=R.locStart(R.cursorNode),ce=M.slice(ie,R.locEnd(R.cursorNode)),ge=R.cursorOffset-ie,fe=z.cursorNodeStart,ke=z.cursorNodeText):(ie=0,ce=M,ge=R.cursorOffset,fe=0,ke=z.formatted),ce===ke)return{formatted:z.formatted,cursorOffset:fe+ge,comments:q};let se=[...ce];se.splice(ge,0,te);let Ue=[...ke],me=p(se,Ue),ue=fe;for(let Ve of me)if(Ve.removed){if(Ve.value.includes(te))break}else ue+=Ve.count;return{formatted:z.formatted,cursorOffset:ue,comments:q}}return{formatted:z.formatted,cursorOffset:-1,comments:q}}function G(w,R){let{ast:y,text:T}=A.parse(w,R),{rangeStart:M,rangeEnd:q}=j.calculateRange(T,R,y),U=T.slice(M,q),z=Math.min(M,T.lastIndexOf(`
184
- `,M)+1),ie=T.slice(z,M).match(/^\s*/)[0],ce=f(ie,R.tabWidth),ge=X(U,Object.assign(Object.assign({},R),{},{rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:R.cursorOffset>M&&R.cursorOffset<=q?R.cursorOffset-M:-1,endOfLine:"lf"}),ce),fe=ge.formatted.trimEnd(),{cursorOffset:ke}=R;ke>q?ke+=fe.length-U.length:ge.cursorOffset>=0&&(ke=ge.cursorOffset+M);let se=T.slice(0,M)+fe+T.slice(q);if(R.endOfLine!=="lf"){let Ue=h(R.endOfLine);ke>=0&&Ue===`\r
185
- `&&(ke+=v(se.slice(0,ke),`
186
- `)),se=se.replace(/\n/g,Ue)}return{formatted:se,cursorOffset:ke,comments:ge.comments}}function re(w,R,y){return typeof R!="number"||Number.isNaN(R)||R<0||R>w.length?y:R}function Z(w,R){let{cursorOffset:y,rangeStart:T,rangeEnd:M}=R;return y=re(w,y,-1),T=re(w,T,0),M=re(w,M,w.length),Object.assign(Object.assign({},R),{},{cursorOffset:y,rangeStart:T,rangeEnd:M})}function De(w,R){let{cursorOffset:y,rangeStart:T,rangeEnd:M,endOfLine:q}=Z(w,R),U=w.charAt(0)===Q;if(U&&(w=w.slice(1),y--,T--,M--),q==="auto"&&(q=d(w)),w.includes("\r")){let z=ie=>v(w.slice(0,Math.max(ie,0)),`\r
187
- `);y-=z(y),T-=z(T),M-=z(M),w=S(w)}return{hasBOM:U,text:w,options:Z(w,Object.assign(Object.assign({},R),{},{cursorOffset:y,rangeStart:T,rangeEnd:M,endOfLine:q}))}}function F(w,R){let y=A.resolveParser(R);return!y.hasPragma||y.hasPragma(w)}function J(w,R){let{hasBOM:y,text:T,options:M}=De(w,L(R));if(M.rangeStart>=M.rangeEnd&&T!==""||M.requirePragma&&!F(T,M))return{formatted:w,cursorOffset:R.cursorOffset,comments:[]};let q;return M.rangeStart>0||M.rangeEnd<T.length?q=G(T,M):(!M.requirePragma&&M.insertPragma&&M.printer.insertPragma&&!F(T,M)&&(T=M.printer.insertPragma(T)),q=X(T,M)),y&&(q.formatted=Q+q.formatted,q.cursorOffset>=0&&q.cursorOffset++),q}E.exports={formatWithCursor:J,parse(w,R,y){let{text:T,options:M}=De(w,L(R)),q=A.parse(T,M);return y&&(q.ast=_(q.ast,M)),q},formatAST(w,R){R=L(R);let y=x(w,R);return b(y,R)},formatDoc(w,R){return J(D(w),Object.assign(Object.assign({},R),{},{parser:"__js_expression"})).formatted},printToDoc(w,R){R=L(R);let{ast:y,text:T}=A.parse(w,R);return $(T,y,R),x(y,R)},printDocToString(w,R){return b(w,L(R))}}}}),jv=_e({"src/common/util-shared.js"(m,E){Re();var{getMaxContinuousCount:p,getStringWidth:b,getAlignmentSize:D,getIndentSize:f,skip:d,skipWhitespace:h,skipSpaces:v,skipNewline:S,skipToLineEnd:L,skipEverythingButNewLine:_,skipInlineComment:k,skipTrailingComment:A,hasNewline:x,hasNewlineInRange:j,hasSpaces:Q,isNextLineEmpty:te,isNextLineEmptyAfterIndex:$,isPreviousLineEmpty:X,getNextNonSpaceNonCommentCharacterIndex:G,makeString:re,addLeadingComment:Z,addDanglingComment:De,addTrailingComment:F}=ye();E.exports={getMaxContinuousCount:p,getStringWidth:b,getAlignmentSize:D,getIndentSize:f,skip:d,skipWhitespace:h,skipSpaces:v,skipNewline:S,skipToLineEnd:L,skipEverythingButNewLine:_,skipInlineComment:k,skipTrailingComment:A,hasNewline:x,hasNewlineInRange:j,hasSpaces:Q,isNextLineEmpty:te,isNextLineEmptyAfterIndex:$,isPreviousLineEmpty:X,getNextNonSpaceNonCommentCharacterIndex:G,makeString:re,addLeadingComment:Z,addDanglingComment:De,addTrailingComment:F}}}),na=_e({"src/utils/create-language.js"(m,E){Re(),E.exports=function(p,b){let{languageId:D}=p,f=St(p,it);return Object.assign(Object.assign({linguistLanguageId:D},f),b(p))}}}),Rv=_e({"node_modules/esutils/lib/ast.js"(m,E){Re(),function(){function p(v){if(v==null)return!1;switch(v.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function b(v){if(v==null)return!1;switch(v.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function D(v){if(v==null)return!1;switch(v.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function f(v){return D(v)||v!=null&&v.type==="FunctionDeclaration"}function d(v){switch(v.type){case"IfStatement":return v.alternate!=null?v.alternate:v.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return v.body}return null}function h(v){var S;if(v.type!=="IfStatement"||v.alternate==null)return!1;S=v.consequent;do{if(S.type==="IfStatement"&&S.alternate==null)return!0;S=d(S)}while(S);return!1}E.exports={isExpression:p,isStatement:D,isIterationStatement:b,isSourceElement:f,isProblematicIfStatement:h,trailingStatement:d}}()}}),ym=_e({"node_modules/esutils/lib/code.js"(m,E){Re(),function(){var p,b,D,f,d,h;b={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},p={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function v($){return 48<=$&&$<=57}function S($){return 48<=$&&$<=57||97<=$&&$<=102||65<=$&&$<=70}function L($){return $>=48&&$<=55}D=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function _($){return $===32||$===9||$===11||$===12||$===160||$>=5760&&D.indexOf($)>=0}function k($){return $===10||$===13||$===8232||$===8233}function A($){if($<=65535)return String.fromCharCode($);var X=String.fromCharCode(Math.floor(($-65536)/1024)+55296),G=String.fromCharCode(($-65536)%1024+56320);return X+G}for(f=new Array(128),h=0;h<128;++h)f[h]=h>=97&&h<=122||h>=65&&h<=90||h===36||h===95;for(d=new Array(128),h=0;h<128;++h)d[h]=h>=97&&h<=122||h>=65&&h<=90||h>=48&&h<=57||h===36||h===95;function x($){return $<128?f[$]:b.NonAsciiIdentifierStart.test(A($))}function j($){return $<128?d[$]:b.NonAsciiIdentifierPart.test(A($))}function Q($){return $<128?f[$]:p.NonAsciiIdentifierStart.test(A($))}function te($){return $<128?d[$]:p.NonAsciiIdentifierPart.test(A($))}E.exports={isDecimalDigit:v,isHexDigit:S,isOctalDigit:L,isWhiteSpace:_,isLineTerminator:k,isIdentifierStartES5:x,isIdentifierPartES5:j,isIdentifierStartES6:Q,isIdentifierPartES6:te}}()}}),$v=_e({"node_modules/esutils/lib/keyword.js"(m,E){Re(),function(){var p=ym();function b(x){switch(x){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function D(x,j){return!j&&x==="yield"?!1:f(x,j)}function f(x,j){if(j&&b(x))return!0;switch(x.length){case 2:return x==="if"||x==="in"||x==="do";case 3:return x==="var"||x==="for"||x==="new"||x==="try";case 4:return x==="this"||x==="else"||x==="case"||x==="void"||x==="with"||x==="enum";case 5:return x==="while"||x==="break"||x==="catch"||x==="throw"||x==="const"||x==="yield"||x==="class"||x==="super";case 6:return x==="return"||x==="typeof"||x==="delete"||x==="switch"||x==="export"||x==="import";case 7:return x==="default"||x==="finally"||x==="extends";case 8:return x==="function"||x==="continue"||x==="debugger";case 10:return x==="instanceof";default:return!1}}function d(x,j){return x==="null"||x==="true"||x==="false"||D(x,j)}function h(x,j){return x==="null"||x==="true"||x==="false"||f(x,j)}function v(x){return x==="eval"||x==="arguments"}function S(x){var j,Q,te;if(x.length===0||(te=x.charCodeAt(0),!p.isIdentifierStartES5(te)))return!1;for(j=1,Q=x.length;j<Q;++j)if(te=x.charCodeAt(j),!p.isIdentifierPartES5(te))return!1;return!0}function L(x,j){return(x-55296)*1024+(j-56320)+65536}function _(x){var j,Q,te,$,X;if(x.length===0)return!1;for(X=p.isIdentifierStartES6,j=0,Q=x.length;j<Q;++j){if(te=x.charCodeAt(j),55296<=te&&te<=56319){if(++j,j>=Q||($=x.charCodeAt(j),!(56320<=$&&$<=57343)))return!1;te=L(te,$)}if(!X(te))return!1;X=p.isIdentifierPartES6}return!0}function k(x,j){return S(x)&&!d(x,j)}function A(x,j){return _(x)&&!h(x,j)}E.exports={isKeywordES5:D,isKeywordES6:f,isReservedWordES5:d,isReservedWordES6:h,isRestrictedWord:v,isIdentifierNameES5:S,isIdentifierNameES6:_,isIdentifierES5:k,isIdentifierES6:A}}()}}),Vv=_e({"node_modules/esutils/lib/utils.js"(m){Re(),function(){m.ast=Rv(),m.code=ym(),m.keyword=$v()}()}}),ra=_e({"src/language-js/utils/is-block-comment.js"(m,E){Re();var p=new Set(["Block","CommentBlock","MultiLine"]),b=D=>p.has(D==null?void 0:D.type);E.exports=b}}),qv=_e({"src/language-js/utils/is-node-matches.js"(m,E){Re();function p(D,f){let d=f.split(".");for(let h=d.length-1;h>=0;h--){let v=d[h];if(h===0)return D.type==="Identifier"&&D.name===v;if(D.type!=="MemberExpression"||D.optional||D.computed||D.property.type!=="Identifier"||D.property.name!==v)return!1;D=D.object}}function b(D,f){return f.some(d=>p(D,d))}E.exports=b}}),pr=_e({"src/language-js/utils/index.js"(m,E){Re();var p=Vv().keyword.isIdentifierNameES5,{getLast:b,hasNewline:D,skipWhitespace:f,isNonEmptyArray:d,isNextLineEmptyAfterIndex:h,getStringWidth:v}=ye(),{locStart:S,locEnd:L,hasSameLocStart:_}=ii(),k=ra(),A=qv(),x="(?:(?=.)\\s)",j=new RegExp(`^${x}*:`),Q=new RegExp(`^${x}*::`);function te(oe){var Et,gn;return((Et=oe.extra)===null||Et===void 0?void 0:Et.parenthesized)&&k((gn=oe.trailingComments)===null||gn===void 0?void 0:gn[0])&&j.test(oe.trailingComments[0].value)}function $(oe){let Et=oe==null?void 0:oe[0];return k(Et)&&Q.test(Et.value)}function X(oe,Et){if(!oe||typeof oe!="object")return!1;if(Array.isArray(oe))return oe.some(Hn=>X(Hn,Et));let gn=Et(oe);return typeof gn=="boolean"?gn:Object.values(oe).some(Hn=>X(Hn,Et))}function G(oe){return oe.type==="AssignmentExpression"||oe.type==="BinaryExpression"||oe.type==="LogicalExpression"||oe.type==="NGPipeExpression"||oe.type==="ConditionalExpression"||ft(oe)||pt(oe)||oe.type==="SequenceExpression"||oe.type==="TaggedTemplateExpression"||oe.type==="BindExpression"||oe.type==="UpdateExpression"&&!oe.prefix||Ni(oe)||oe.type==="TSNonNullExpression"}function re(oe){var Et,gn,Hn,zn,vi,Fr;return oe.expressions?oe.expressions[0]:(Et=(gn=(Hn=(zn=(vi=(Fr=oe.left)!==null&&Fr!==void 0?Fr:oe.test)!==null&&vi!==void 0?vi:oe.callee)!==null&&zn!==void 0?zn:oe.object)!==null&&Hn!==void 0?Hn:oe.tag)!==null&&gn!==void 0?gn:oe.argument)!==null&&Et!==void 0?Et:oe.expression}function Z(oe,Et){if(Et.expressions)return["expressions",0];if(Et.left)return["left"];if(Et.test)return["test"];if(Et.object)return["object"];if(Et.callee)return["callee"];if(Et.tag)return["tag"];if(Et.argument)return["argument"];if(Et.expression)return["expression"];throw new Error("Unexpected node has no left side.")}function De(oe){return oe=new Set(oe),Et=>oe.has(Et==null?void 0:Et.type)}var F=De(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose"]),J=De(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function w(oe){let Et=oe.getParentNode();return oe.getName()==="declaration"&&J(Et)?Et:null}var R=De(["BooleanLiteral","DirectiveLiteral","Literal","NullLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","RegExpLiteral","StringLiteral","TemplateLiteral","TSTypeLiteral","JSXText"]);function y(oe){return oe.type==="NumericLiteral"||oe.type==="Literal"&&typeof oe.value=="number"}function T(oe){return oe.type==="UnaryExpression"&&(oe.operator==="+"||oe.operator==="-")&&y(oe.argument)}function M(oe){return oe.type==="StringLiteral"||oe.type==="Literal"&&typeof oe.value=="string"}var q=De(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),U=De(["FunctionExpression","ArrowFunctionExpression"]);function z(oe){return oe.type==="FunctionExpression"||oe.type==="ArrowFunctionExpression"&&oe.body.type==="BlockStatement"}function ie(oe){return ft(oe)&&oe.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(oe.callee.name)}var ce=De(["JSXElement","JSXFragment"]);function ge(oe,Et){if(oe.parentParser!=="markdown"&&oe.parentParser!=="mdx")return!1;let gn=Et.getNode();if(!gn.expression||!ce(gn.expression))return!1;let Hn=Et.getParentNode();return Hn.type==="Program"&&Hn.body.length===1}function fe(oe){return oe.kind==="get"||oe.kind==="set"}function ke(oe){return fe(oe)||_(oe,oe.value)}function se(oe){return(oe.type==="ObjectTypeProperty"||oe.type==="ObjectTypeInternalSlot")&&oe.value.type==="FunctionTypeAnnotation"&&!oe.static&&!ke(oe)}function Ue(oe){return(oe.type==="TypeAnnotation"||oe.type==="TSTypeAnnotation")&&oe.typeAnnotation.type==="FunctionTypeAnnotation"&&!oe.static&&!_(oe,oe.typeAnnotation)}var me=De(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function ue(oe){return pt(oe)||oe.type==="BindExpression"&&!!oe.object}var Ve=new Set(["AnyTypeAnnotation","TSAnyKeyword","NullLiteralTypeAnnotation","TSNullKeyword","ThisTypeAnnotation","TSThisType","NumberTypeAnnotation","TSNumberKeyword","VoidTypeAnnotation","TSVoidKeyword","BooleanTypeAnnotation","TSBooleanKeyword","BigIntTypeAnnotation","TSBigIntKeyword","SymbolTypeAnnotation","TSSymbolKeyword","StringTypeAnnotation","TSStringKeyword","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType","EmptyTypeAnnotation","MixedTypeAnnotation","TSNeverKeyword","TSObjectKeyword","TSUndefinedKeyword","TSUnknownKeyword"]);function nt(oe){return oe?!!((oe.type==="GenericTypeAnnotation"||oe.type==="TSTypeReference")&&!oe.typeParameters||Ve.has(oe.type)):!1}function Je(oe){let Et=/^(?:before|after)(?:Each|All)$/;return oe.callee.type==="Identifier"&&Et.test(oe.callee.name)&&oe.arguments.length===1}var ht=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.step","test.describe","test.describe.only","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function be(oe){return A(oe,ht)}function Ie(oe,Et){if(oe.type!=="CallExpression")return!1;if(oe.arguments.length===1){if(ie(oe)&&Et&&Ie(Et))return U(oe.arguments[0]);if(Je(oe))return ie(oe.arguments[0])}else if((oe.arguments.length===2||oe.arguments.length===3)&&(oe.arguments[0].type==="TemplateLiteral"||M(oe.arguments[0]))&&be(oe.callee))return oe.arguments[2]&&!y(oe.arguments[2])?!1:(oe.arguments.length===2?U(oe.arguments[1]):z(oe.arguments[1])&&Mt(oe.arguments[1]).length<=1)||ie(oe.arguments[1]);return!1}var ft=De(["CallExpression","OptionalCallExpression"]),pt=De(["MemberExpression","OptionalMemberExpression"]);function Jt(oe){let Et="expressions";oe.type==="TSTemplateLiteralType"&&(Et="types");let gn=oe[Et];return gn.length===0?!1:gn.every(Hn=>{if(Sn(Hn))return!1;if(Hn.type==="Identifier"||Hn.type==="ThisExpression")return!0;if(pt(Hn)){let zn=Hn;for(;pt(zn);)if(zn.property.type!=="Identifier"&&zn.property.type!=="Literal"&&zn.property.type!=="StringLiteral"&&zn.property.type!=="NumericLiteral"||(zn=zn.object,Sn(zn)))return!1;return zn.type==="Identifier"||zn.type==="ThisExpression"}return!1})}function $e(oe,Et){return oe==="+"||oe==="-"?oe+Et:Et}function xe(oe,Et){let gn=S(Et),Hn=f(oe,L(Et));return Hn!==!1&&oe.slice(gn,gn+2)==="/*"&&oe.slice(Hn,Hn+2)==="*/"}function Ye(oe,Et){return ce(Et)?Bn(Et):Sn(Et,an.Leading,gn=>D(oe,L(gn)))}function Xe(oe,Et){return Et.parser!=="json"&&M(oe.key)&&ot(oe.key).slice(1,-1)===oe.key.value&&(p(oe.key.value)&&!(Et.parser==="babel-ts"&&oe.type==="ClassProperty"||Et.parser==="typescript"&&oe.type==="PropertyDefinition")||vt(oe.key.value)&&String(Number(oe.key.value))===oe.key.value&&(Et.parser==="babel"||Et.parser==="acorn"||Et.parser==="espree"||Et.parser==="meriyah"||Et.parser==="__babel_estree"))}function vt(oe){return/^(?:\d+|\d+\.\d+)$/.test(oe)}function Nt(oe,Et){let gn=/^[fx]?(?:describe|it|test)$/;return Et.type==="TaggedTemplateExpression"&&Et.quasi===oe&&Et.tag.type==="MemberExpression"&&Et.tag.property.type==="Identifier"&&Et.tag.property.name==="each"&&(Et.tag.object.type==="Identifier"&&gn.test(Et.tag.object.name)||Et.tag.object.type==="MemberExpression"&&Et.tag.object.property.type==="Identifier"&&(Et.tag.object.property.name==="only"||Et.tag.object.property.name==="skip")&&Et.tag.object.object.type==="Identifier"&&gn.test(Et.tag.object.object.name))}function Bt(oe){return oe.quasis.some(Et=>Et.value.raw.includes(`
188
- `))}function cn(oe,Et){return(oe.type==="TemplateLiteral"&&Bt(oe)||oe.type==="TaggedTemplateExpression"&&Bt(oe.quasi))&&!D(Et,S(oe),{backwards:!0})}function In(oe){if(!Sn(oe))return!1;let Et=b(lt(oe,an.Dangling));return Et&&!k(Et)}function kn(oe){if(oe.length<=1)return!1;let Et=0;for(let gn of oe)if(U(gn)){if(Et+=1,Et>1)return!0}else if(ft(gn)){for(let Hn of gn.arguments)if(U(Hn))return!0}return!1}function ln(oe){let Et=oe.getValue(),gn=oe.getParentNode();return ft(Et)&&ft(gn)&&gn.callee===Et&&Et.arguments.length>gn.arguments.length&&gn.arguments.length>0}function Dn(oe,Et){if(Et>=2)return!1;let gn=Fr=>Dn(Fr,Et+1),Hn=oe.type==="Literal"&&"regex"in oe&&oe.regex.pattern||oe.type==="RegExpLiteral"&&oe.pattern;if(Hn&&v(Hn)>5)return!1;if(oe.type==="Literal"||oe.type==="BigIntLiteral"||oe.type==="DecimalLiteral"||oe.type==="BooleanLiteral"||oe.type==="NullLiteral"||oe.type==="NumericLiteral"||oe.type==="RegExpLiteral"||oe.type==="StringLiteral"||oe.type==="Identifier"||oe.type==="ThisExpression"||oe.type==="Super"||oe.type==="PrivateName"||oe.type==="PrivateIdentifier"||oe.type==="ArgumentPlaceholder"||oe.type==="Import")return!0;if(oe.type==="TemplateLiteral")return oe.quasis.every(Fr=>!Fr.value.raw.includes(`
189
- `))&&oe.expressions.every(gn);if(oe.type==="ObjectExpression")return oe.properties.every(Fr=>!Fr.computed&&(Fr.shorthand||Fr.value&&gn(Fr.value)));if(oe.type==="ArrayExpression")return oe.elements.every(Fr=>Fr===null||gn(Fr));if(Xr(oe))return(oe.type==="ImportExpression"||Dn(oe.callee,Et))&&br(oe).every(gn);if(pt(oe))return Dn(oe.object,Et)&&Dn(oe.property,Et);let zn={"!":!0,"-":!0,"+":!0,"~":!0};if(oe.type==="UnaryExpression"&&zn[oe.operator])return Dn(oe.argument,Et);let vi={"++":!0,"--":!0};return oe.type==="UpdateExpression"&&vi[oe.operator]?Dn(oe.argument,Et):oe.type==="TSNonNullExpression"?Dn(oe.expression,Et):!1}function ot(oe){var Et,gn;return(Et=(gn=oe.extra)===null||gn===void 0?void 0:gn.raw)!==null&&Et!==void 0?Et:oe.raw}function Ee(oe){return oe}function dt(oe){return oe.filepath&&/\.tsx$/i.test(oe.filepath)}function Oe(oe){let Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"es5";return oe.trailingComma==="es5"&&Et==="es5"||oe.trailingComma==="all"&&(Et==="all"||Et==="es5")}function ct(oe,Et){switch(oe.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ct(oe.left,Et);case"MemberExpression":case"OptionalMemberExpression":return ct(oe.object,Et);case"TaggedTemplateExpression":return oe.tag.type==="FunctionExpression"?!1:ct(oe.tag,Et);case"CallExpression":case"OptionalCallExpression":return oe.callee.type==="FunctionExpression"?!1:ct(oe.callee,Et);case"ConditionalExpression":return ct(oe.test,Et);case"UpdateExpression":return!oe.prefix&&ct(oe.argument,Et);case"BindExpression":return oe.object&&ct(oe.object,Et);case"SequenceExpression":return ct(oe.expressions[0],Et);case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return ct(oe.expression,Et);default:return Et(oe)}}var Zt={"==":!0,"!=":!0,"===":!0,"!==":!0},Ut={"*":!0,"/":!0,"%":!0},yt={">>":!0,">>>":!0,"<<":!0};function V(oe,Et){return!(rt(Et)!==rt(oe)||oe==="**"||Zt[oe]&&Zt[Et]||Et==="%"&&Ut[oe]||oe==="%"&&Ut[Et]||Et!==oe&&Ut[Et]&&Ut[oe]||yt[oe]&&yt[Et])}var Le=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((oe,Et)=>oe.map(gn=>[gn,Et])));function rt(oe){return Le.get(oe)}function kt(oe){return!!yt[oe]||oe==="|"||oe==="^"||oe==="&"}function $t(oe){var Et;if(oe.rest)return!0;let gn=Mt(oe);return((Et=b(gn))===null||Et===void 0?void 0:Et.type)==="RestElement"}var un=new WeakMap;function Mt(oe){if(un.has(oe))return un.get(oe);let Et=[];return oe.this&&Et.push(oe.this),Array.isArray(oe.parameters)?Et.push(...oe.parameters):Array.isArray(oe.params)&&Et.push(...oe.params),oe.rest&&Et.push(oe.rest),un.set(oe,Et),Et}function Cr(oe,Et){let gn=oe.getValue(),Hn=0,zn=vi=>Et(vi,Hn++);gn.this&&oe.call(zn,"this"),Array.isArray(gn.parameters)?oe.each(zn,"parameters"):Array.isArray(gn.params)&&oe.each(zn,"params"),gn.rest&&oe.call(zn,"rest")}var sn=new WeakMap;function br(oe){if(sn.has(oe))return sn.get(oe);let Et=oe.arguments;return oe.type==="ImportExpression"&&(Et=[oe.source],oe.attributes&&Et.push(oe.attributes)),sn.set(oe,Et),Et}function nn(oe,Et){let gn=oe.getValue();gn.type==="ImportExpression"?(oe.call(Hn=>Et(Hn,0),"source"),gn.attributes&&oe.call(Hn=>Et(Hn,1),"attributes")):oe.each(Et,"arguments")}function An(oe){return oe.value.trim()==="prettier-ignore"&&!oe.unignore}function Bn(oe){return oe&&(oe.prettierIgnore||Sn(oe,an.PrettierIgnore))}function ar(oe){let Et=oe.getValue();return Bn(Et)}var an={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Tn=(oe,Et)=>{if(typeof oe=="function"&&(Et=oe,oe=0),oe||Et)return(gn,Hn,zn)=>!(oe&an.Leading&&!gn.leading||oe&an.Trailing&&!gn.trailing||oe&an.Dangling&&(gn.leading||gn.trailing)||oe&an.Block&&!k(gn)||oe&an.Line&&!F(gn)||oe&an.First&&Hn!==0||oe&an.Last&&Hn!==zn.length-1||oe&an.PrettierIgnore&&!An(gn)||Et&&!Et(gn))};function Sn(oe,Et,gn){if(!d(oe==null?void 0:oe.comments))return!1;let Hn=Tn(Et,gn);return Hn?oe.comments.some(Hn):!0}function lt(oe,Et,gn){if(!Array.isArray(oe==null?void 0:oe.comments))return[];let Hn=Tn(Et,gn);return Hn?oe.comments.filter(Hn):oe.comments}var Fi=(oe,Et)=>{let{originalText:gn}=Et;return h(gn,L(oe))};function Xr(oe){return ft(oe)||oe.type==="NewExpression"||oe.type==="ImportExpression"}function qn(oe){return oe&&(oe.type==="ObjectProperty"||oe.type==="Property"&&!oe.method&&oe.kind==="init")}function Gn(oe){return!!oe.__isUsingHackPipeline}var fr=Symbol("ifWithoutBlockAndSameLineComment");function Ni(oe){return oe.type==="TSAsExpression"||oe.type==="TSSatisfiesExpression"}E.exports={getFunctionParameters:Mt,iterateFunctionParametersPath:Cr,getCallArguments:br,iterateCallArgumentsPath:nn,hasRestParameter:$t,getLeftSide:re,getLeftSidePathName:Z,getParentExportDeclaration:w,getTypeScriptMappedTypeModifier:$e,hasFlowAnnotationComment:$,hasFlowShorthandAnnotationComment:te,hasLeadingOwnLineComment:Ye,hasNakedLeftSide:G,hasNode:X,hasIgnoreComment:ar,hasNodeIgnoreComment:Bn,identity:Ee,isBinaryish:me,isCallLikeExpression:Xr,isEnabledHackPipeline:Gn,isLineComment:F,isPrettierIgnoreComment:An,isCallExpression:ft,isMemberExpression:pt,isExportDeclaration:J,isFlowAnnotationComment:xe,isFunctionCompositionArgs:kn,isFunctionNotation:ke,isFunctionOrArrowExpression:U,isGetterOrSetter:fe,isJestEachTemplateLiteral:Nt,isJsxNode:ce,isLiteral:R,isLongCurriedCallExpression:ln,isSimpleCallArgument:Dn,isMemberish:ue,isNumericLiteral:y,isSignedNumericLiteral:T,isObjectProperty:qn,isObjectType:q,isObjectTypePropertyAFunction:se,isSimpleType:nt,isSimpleNumber:vt,isSimpleTemplateLiteral:Jt,isStringLiteral:M,isStringPropSafeToUnquote:Xe,isTemplateOnItsOwnLine:cn,isTestCall:Ie,isTheOnlyJsxElementInMarkdown:ge,isTSXFile:dt,isTypeAnnotationAFunction:Ue,isNextLineEmpty:Fi,needsHardlineAfterDanglingComment:In,rawText:ot,shouldPrintComma:Oe,isBitwiseOperator:kt,shouldFlatten:V,startsWithNoLookaheadToken:ct,getPrecedence:rt,hasComment:Sn,getComments:lt,CommentCheckFlags:an,markerForIfWithoutBlockAndSameLineComment:fr,isTSTypeExpression:Ni}}}),za=_e({"src/language-js/print/template-literal.js"(m,E){Re();var p=Vr(),{getStringWidth:b,getIndentSize:D}=ye(),{builders:{join:f,hardline:d,softline:h,group:v,indent:S,align:L,lineSuffixBoundary:_,addAlignmentToDoc:k},printer:{printDocToString:A},utils:{mapDoc:x}}=Fn(),{isBinaryish:j,isJestEachTemplateLiteral:Q,isSimpleTemplateLiteral:te,hasComment:$,isMemberExpression:X,isTSTypeExpression:G}=pr();function re(R,y,T){let M=R.getValue();if(M.type==="TemplateLiteral"&&Q(M,R.getParentNode())){let ce=Z(R,T,y);if(ce)return ce}let q="expressions";M.type==="TSTemplateLiteralType"&&(q="types");let U=[],z=R.map(y,q),ie=te(M);return ie&&(z=z.map(ce=>A(ce,Object.assign(Object.assign({},T),{},{printWidth:Number.POSITIVE_INFINITY})).formatted)),U.push(_,"`"),R.each(ce=>{let ge=ce.getName();if(U.push(y()),ge<z.length){let{tabWidth:fe}=T,ke=ce.getValue(),se=D(ke.value.raw,fe),Ue=z[ge];if(!ie){let ue=M[q][ge];($(ue)||X(ue)||ue.type==="ConditionalExpression"||ue.type==="SequenceExpression"||G(ue)||j(ue))&&(Ue=[S([h,Ue]),h])}let me=se===0&&ke.value.raw.endsWith(`
190
- `)?L(Number.NEGATIVE_INFINITY,Ue):k(Ue,se,fe);U.push(v(["${",me,_,"}"]))}},"quasis"),U.push("`"),U}function Z(R,y,T){let M=R.getNode(),q=M.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(q.length>1||q.some(U=>U.length>0)){y.__inJestEach=!0;let U=R.map(T,"expressions");y.__inJestEach=!1;let z=[],ie=U.map(se=>"${"+A(se,Object.assign(Object.assign({},y),{},{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}"),ce=[{hasLineBreak:!1,cells:[]}];for(let se=1;se<M.quasis.length;se++){let Ue=p(ce),me=ie[se-1];Ue.cells.push(me),me.includes(`
191
- `)&&(Ue.hasLineBreak=!0),M.quasis[se].value.raw.includes(`
192
- `)&&ce.push({hasLineBreak:!1,cells:[]})}let ge=Math.max(q.length,...ce.map(se=>se.cells.length)),fe=Array.from({length:ge}).fill(0),ke=[{cells:q},...ce.filter(se=>se.cells.length>0)];for(let{cells:se}of ke.filter(Ue=>!Ue.hasLineBreak))for(let[Ue,me]of se.entries())fe[Ue]=Math.max(fe[Ue],b(me));return z.push(_,"`",S([d,f(d,ke.map(se=>f(" | ",se.cells.map((Ue,me)=>se.hasLineBreak?Ue:Ue+" ".repeat(fe[me]-b(Ue))))))]),d,"`"),z}}function De(R,y){let T=R.getValue(),M=y();return $(T)&&(M=v([S([h,M]),h])),["${",M,_,"}"]}function F(R,y){return R.map(T=>De(T,y),"expressions")}function J(R,y){return x(R,T=>typeof T=="string"?y?T.replace(/(\\*)`/g,"$1$1\\`"):w(T):T)}function w(R){return R.replace(/([\\`]|\${)/g,"\\$1")}E.exports={printTemplateLiteral:re,printTemplateExpressions:F,escapeTemplateCharacters:J,uncookTemplateElementValue:w}}}),Uv=_e({"src/language-js/embed/markdown.js"(m,E){Re();var{builders:{indent:p,softline:b,literalline:D,dedentToRoot:f}}=Fn(),{escapeTemplateCharacters:d}=za();function h(S,L,_){let k=S.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(Q,te)=>"\\".repeat(te.length/2)+"`"),A=v(k),x=A!=="";x&&(k=k.replace(new RegExp(`^${A}`,"gm"),""));let j=d(_(k,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",x?p([b,j]):[D,f(j)],b,"`"]}function v(S){let L=S.match(/^([^\S\n]*)\S/m);return L===null?"":L[1]}E.exports=h}}),Wv=_e({"src/language-js/embed/css.js"(m,E){Re();var{isNonEmptyArray:p}=ye(),{builders:{indent:b,hardline:D,softline:f},utils:{mapDoc:d,replaceEndOfLine:h,cleanDoc:v}}=Fn(),{printTemplateExpressions:S}=za();function L(A,x,j){let Q=A.getValue(),te=Q.quasis.map(Z=>Z.value.raw),$=0,X=te.reduce((Z,De,F)=>F===0?De:Z+"@prettier-placeholder-"+$+++"-id"+De,""),G=j(X,{parser:"scss"},{stripTrailingHardline:!0}),re=S(A,x);return _(G,Q,re)}function _(A,x,j){if(x.quasis.length===1&&!x.quasis[0].value.raw.trim())return"``";let Q=k(A,j);if(!Q)throw new Error("Couldn't insert all the expressions");return["`",b([D,Q]),f,"`"]}function k(A,x){if(!p(x))return A;let j=0,Q=d(v(A),te=>typeof te!="string"||!te.includes("@prettier-placeholder")?te:te.split(/@prettier-placeholder-(\d+)-id/).map(($,X)=>X%2===0?h($):(j++,x[$])));return x.length===j?Q:null}E.exports=L}}),Gv=_e({"src/language-js/embed/graphql.js"(m,E){Re();var{builders:{indent:p,join:b,hardline:D}}=Fn(),{escapeTemplateCharacters:f,printTemplateExpressions:d}=za();function h(S,L,_){let k=S.getValue(),A=k.quasis.length;if(A===1&&k.quasis[0].value.raw.trim()==="")return"``";let x=d(S,L),j=[];for(let Q=0;Q<A;Q++){let te=k.quasis[Q],$=Q===0,X=Q===A-1,G=te.value.cooked,re=G.split(`
193
- `),Z=re.length,De=x[Q],F=Z>2&&re[0].trim()===""&&re[1].trim()==="",J=Z>2&&re[Z-1].trim()===""&&re[Z-2].trim()==="",w=re.every(y=>/^\s*(?:#[^\n\r]*)?$/.test(y));if(!X&&/#[^\n\r]*$/.test(re[Z-1]))return null;let R=null;w?R=v(re):R=_(G,{parser:"graphql"},{stripTrailingHardline:!0}),R?(R=f(R,!1),!$&&F&&j.push(""),j.push(R),!X&&J&&j.push("")):!$&&!X&&F&&j.push(""),De&&j.push(De)}return["`",p([D,b(D,j)]),D,"`"]}function v(S){let L=[],_=!1,k=S.map(A=>A.trim());for(let[A,x]of k.entries())x!==""&&(k[A-1]===""&&_?L.push([D,x]):L.push(x),_=!0);return L.length===0?null:b(D,L)}E.exports=h}}),Jv=_e({"src/language-js/embed/html.js"(m,E){Re();var{builders:{indent:p,line:b,hardline:D,group:f},utils:{mapDoc:d}}=Fn(),{printTemplateExpressions:h,uncookTemplateElementValue:v}=za(),S=0;function L(_,k,A,x,j){let{parser:Q}=j,te=_.getValue(),$=S;S=S+1>>>0;let X=T=>`PRETTIER_HTML_PLACEHOLDER_${T}_${$}_IN_JS`,G=te.quasis.map((T,M,q)=>M===q.length-1?T.value.cooked:T.value.cooked+X(M)).join(""),re=h(_,k);if(re.length===0&&G.trim().length===0)return"``";let Z=new RegExp(X("(\\d+)"),"g"),De=0,F=A(G,{parser:Q,__onHtmlRoot(T){De=T.children.length}},{stripTrailingHardline:!0}),J=d(F,T=>{if(typeof T!="string")return T;let M=[],q=T.split(Z);for(let U=0;U<q.length;U++){let z=q[U];if(U%2===0){z&&(z=v(z),x.__embeddedInHtml&&(z=z.replace(/<\/(script)\b/gi,"<\\/$1")),M.push(z));continue}let ie=Number(z);M.push(re[ie])}return M}),w=/^\s/.test(G)?" ":"",R=/\s$/.test(G)?" ":"",y=x.htmlWhitespaceSensitivity==="ignore"?D:w&&R?b:null;return f(y?["`",p([y,f(J)]),y,"`"]:["`",w,De>1?p(f(J)):f(J),R,"`"])}E.exports=L}}),Yv=_e({"src/language-js/embed.js"(m,E){Re();var{hasComment:p,CommentCheckFlags:b,isObjectProperty:D}=pr(),f=Uv(),d=Wv(),h=Gv(),v=Jv();function S(F){if(k(F)||Q(F)||te(F)||A(F))return"css";if(G(F))return"graphql";if(Z(F))return"html";if(x(F))return"angular";if(_(F))return"markdown"}function L(F,J,w,R){let y=F.getValue();if(y.type!=="TemplateLiteral"||De(y))return;let T=S(F);if(T){if(T==="markdown")return f(F,J,w);if(T==="css")return d(F,J,w);if(T==="graphql")return h(F,J,w);if(T==="html"||T==="angular")return v(F,J,w,R,{parser:T})}}function _(F){let J=F.getValue(),w=F.getParentNode();return w&&w.type==="TaggedTemplateExpression"&&J.quasis.length===1&&w.tag.type==="Identifier"&&(w.tag.name==="md"||w.tag.name==="markdown")}function k(F){let J=F.getValue(),w=F.getParentNode(),R=F.getParentNode(1);return R&&J.quasis&&w.type==="JSXExpressionContainer"&&R.type==="JSXElement"&&R.openingElement.name.name==="style"&&R.openingElement.attributes.some(y=>y.name.name==="jsx")||w&&w.type==="TaggedTemplateExpression"&&w.tag.type==="Identifier"&&w.tag.name==="css"||w&&w.type==="TaggedTemplateExpression"&&w.tag.type==="MemberExpression"&&w.tag.object.name==="css"&&(w.tag.property.name==="global"||w.tag.property.name==="resolve")}function A(F){return F.match(J=>J.type==="TemplateLiteral",(J,w)=>J.type==="ArrayExpression"&&w==="elements",(J,w)=>D(J)&&J.key.type==="Identifier"&&J.key.name==="styles"&&w==="value",...j)}function x(F){return F.match(J=>J.type==="TemplateLiteral",(J,w)=>D(J)&&J.key.type==="Identifier"&&J.key.name==="template"&&w==="value",...j)}var j=[(F,J)=>F.type==="ObjectExpression"&&J==="properties",(F,J)=>F.type==="CallExpression"&&F.callee.type==="Identifier"&&F.callee.name==="Component"&&J==="arguments",(F,J)=>F.type==="Decorator"&&J==="expression"];function Q(F){let J=F.getParentNode();if(!J||J.type!=="TaggedTemplateExpression")return!1;let w=J.tag.type==="ParenthesizedExpression"?J.tag.expression:J.tag;switch(w.type){case"MemberExpression":return $(w.object)||X(w);case"CallExpression":return $(w.callee)||w.callee.type==="MemberExpression"&&(w.callee.object.type==="MemberExpression"&&($(w.callee.object.object)||X(w.callee.object))||w.callee.object.type==="CallExpression"&&$(w.callee.object.callee));case"Identifier":return w.name==="css";default:return!1}}function te(F){let J=F.getParentNode(),w=F.getParentNode(1);return w&&J.type==="JSXExpressionContainer"&&w.type==="JSXAttribute"&&w.name.type==="JSXIdentifier"&&w.name.name==="css"}function $(F){return F.type==="Identifier"&&F.name==="styled"}function X(F){return/^[A-Z]/.test(F.object.name)&&F.property.name==="extend"}function G(F){let J=F.getValue(),w=F.getParentNode();return re(J,"GraphQL")||w&&(w.type==="TaggedTemplateExpression"&&(w.tag.type==="MemberExpression"&&w.tag.object.name==="graphql"&&w.tag.property.name==="experimental"||w.tag.type==="Identifier"&&(w.tag.name==="gql"||w.tag.name==="graphql"))||w.type==="CallExpression"&&w.callee.type==="Identifier"&&w.callee.name==="graphql")}function re(F,J){return p(F,b.Block|b.Leading,w=>{let{value:R}=w;return R===` ${J} `})}function Z(F){return re(F.getValue(),"HTML")||F.match(J=>J.type==="TemplateLiteral",(J,w)=>J.type==="TaggedTemplateExpression"&&J.tag.type==="Identifier"&&J.tag.name==="html"&&w==="quasi")}function De(F){let{quasis:J}=F;return J.some(w=>{let{value:{cooked:R}}=w;return R===null})}E.exports=L}}),Hv=_e({"src/language-js/clean.js"(m,E){Re();var p=ra(),b=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),D=d=>{for(let h of d.quasis)delete h.value};function f(d,h,v){if(d.type==="Program"&&delete h.sourceType,(d.type==="BigIntLiteral"||d.type==="BigIntLiteralTypeAnnotation")&&h.value&&(h.value=h.value.toLowerCase()),(d.type==="BigIntLiteral"||d.type==="Literal")&&h.bigint&&(h.bigint=h.bigint.toLowerCase()),d.type==="DecimalLiteral"&&(h.value=Number(h.value)),d.type==="Literal"&&h.decimal&&(h.decimal=Number(h.decimal)),d.type==="EmptyStatement"||d.type==="JSXText"||d.type==="JSXExpressionContainer"&&(d.expression.type==="Literal"||d.expression.type==="StringLiteral")&&d.expression.value===" ")return null;if((d.type==="Property"||d.type==="ObjectProperty"||d.type==="MethodDefinition"||d.type==="ClassProperty"||d.type==="ClassMethod"||d.type==="PropertyDefinition"||d.type==="TSDeclareMethod"||d.type==="TSPropertySignature"||d.type==="ObjectTypeProperty")&&typeof d.key=="object"&&d.key&&(d.key.type==="Literal"||d.key.type==="NumericLiteral"||d.key.type==="StringLiteral"||d.key.type==="Identifier")&&delete h.key,d.type==="JSXElement"&&d.openingElement.name.name==="style"&&d.openingElement.attributes.some(_=>_.name.name==="jsx"))for(let{type:_,expression:k}of h.children)_==="JSXExpressionContainer"&&k.type==="TemplateLiteral"&&D(k);d.type==="JSXAttribute"&&d.name.name==="css"&&d.value.type==="JSXExpressionContainer"&&d.value.expression.type==="TemplateLiteral"&&D(h.value.expression),d.type==="JSXAttribute"&&d.value&&d.value.type==="Literal"&&/["']|&quot;|&apos;/.test(d.value.value)&&(h.value.value=h.value.value.replace(/["']|&quot;|&apos;/g,'"'));let S=d.expression||d.callee;if(d.type==="Decorator"&&S.type==="CallExpression"&&S.callee.name==="Component"&&S.arguments.length===1){let _=d.expression.arguments[0].properties;for(let[k,A]of h.expression.arguments[0].properties.entries())switch(_[k].key.name){case"styles":A.value.type==="ArrayExpression"&&D(A.value.elements[0]);break;case"template":A.value.type==="TemplateLiteral"&&D(A.value);break}}if(d.type==="TaggedTemplateExpression"&&(d.tag.type==="MemberExpression"||d.tag.type==="Identifier"&&(d.tag.name==="gql"||d.tag.name==="graphql"||d.tag.name==="css"||d.tag.name==="md"||d.tag.name==="markdown"||d.tag.name==="html")||d.tag.type==="CallExpression")&&D(h.quasi),d.type==="TemplateLiteral"){var L;(!((L=d.leadingComments)===null||L===void 0)&&L.some(_=>p(_)&&["GraphQL","HTML"].some(k=>_.value===` ${k} `))||v.type==="CallExpression"&&v.callee.name==="graphql"||!d.leadingComments)&&D(h)}if(d.type==="InterpreterDirective"&&(h.value=h.value.trimEnd()),(d.type==="TSIntersectionType"||d.type==="TSUnionType")&&d.types.length===1)return h.types[0]}f.ignoredProperties=b,E.exports=f}}),Dm={};wn(Dm,{EOL:()=>Jf,arch:()=>zv,cpus:()=>xm,default:()=>Tm,endianness:()=>bm,freemem:()=>Cm,getNetworkInterfaces:()=>_m,hostname:()=>vm,loadavg:()=>Em,networkInterfaces:()=>Nm,platform:()=>Qv,release:()=>Fm,tmpDir:()=>Wf,tmpdir:()=>Gf,totalmem:()=>Sm,type:()=>wm,uptime:()=>Am});function bm(){if(typeof pl>"u"){var m=new ArrayBuffer(2),E=new Uint8Array(m),p=new Uint16Array(m);if(E[0]=1,E[1]=2,p[0]===258)pl="BE";else if(p[0]===513)pl="LE";else throw new Error("unable to figure out endianess")}return pl}function vm(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function Em(){return[]}function Am(){return 0}function Cm(){return Number.MAX_VALUE}function Sm(){return Number.MAX_VALUE}function xm(){return[]}function wm(){return"Browser"}function Fm(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function Nm(){}function _m(){}function zv(){return"javascript"}function Qv(){return"browser"}function Wf(){return"/tmp"}var pl,Gf,Jf,Tm,Xv=dn({"node-modules-polyfills:os"(){Re(),Gf=Wf,Jf=`
194
- `,Tm={EOL:Jf,tmpdir:Gf,tmpDir:Wf,networkInterfaces:Nm,getNetworkInterfaces:_m,release:Fm,type:wm,cpus:xm,totalmem:Sm,freemem:Cm,uptime:Am,loadavg:Em,hostname:vm,endianness:bm}}}),Kv=_e({"node-modules-polyfills-commonjs:os"(m,E){Re();var p=(Xv(),Qn(Dm));if(p&&p.default){E.exports=p.default;for(let b in p)E.exports[b]=p[b]}else p&&(E.exports=p)}}),Zv=_e({"node_modules/detect-newline/index.js"(m,E){Re();var p=b=>{if(typeof b!="string")throw new TypeError("Expected a string");let D=b.match(/(?:\r?\n)/g)||[];if(D.length===0)return;let f=D.filter(h=>h===`\r
195
- `).length,d=D.length-f;return f>d?`\r
196
- `:`
197
- `};E.exports=p,E.exports.graceful=b=>typeof b=="string"&&p(b)||`
198
- `}}),e2=_e({"node_modules/jest-docblock/build/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0}),m.extract=A,m.parse=j,m.parseWithComments=Q,m.print=te,m.strip=x;function E(){let X=Kv();return E=function(){return X},X}function p(){let X=b(Zv());return p=function(){return X},X}function b(X){return X&&X.__esModule?X:{default:X}}var D=/\*\/$/,f=/^\/\*\*?/,d=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,h=/(^|\s+)\/\/([^\r\n]*)/g,v=/^(\r?\n)+/,S=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,L=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,_=/(\r?\n|^) *\* ?/g,k=[];function A(X){let G=X.match(d);return G?G[0].trimLeft():""}function x(X){let G=X.match(d);return G&&G[0]?X.substring(G[0].length):X}function j(X){return Q(X).pragmas}function Q(X){let G=(0,p().default)(X)||E().EOL;X=X.replace(f,"").replace(D,"").replace(_,"$1");let re="";for(;re!==X;)re=X,X=X.replace(S,`${G}$1 $2${G}`);X=X.replace(v,"").trimRight();let Z=Object.create(null),De=X.replace(L,"").replace(v,"").trimRight(),F;for(;F=L.exec(X);){let J=F[2].replace(h,"");typeof Z[F[1]]=="string"||Array.isArray(Z[F[1]])?Z[F[1]]=k.concat(Z[F[1]],J):Z[F[1]]=J}return{comments:De,pragmas:Z}}function te(X){let{comments:G="",pragmas:re={}}=X,Z=(0,p().default)(G)||E().EOL,De="/**",F=" *",J=" */",w=Object.keys(re),R=w.map(T=>$(T,re[T])).reduce((T,M)=>T.concat(M),[]).map(T=>`${F} ${T}${Z}`).join("");if(!G){if(w.length===0)return"";if(w.length===1&&!Array.isArray(re[w[0]])){let T=re[w[0]];return`${De} ${$(w[0],T)[0]}${J}`}}let y=G.split(Z).map(T=>`${F} ${T}`).join(Z)+Z;return De+Z+(G?y:"")+(G&&w.length?F+Z:"")+R+J}function $(X,G){return k.concat(G).map(re=>`@${X} ${re}`.trim())}}}),t2=_e({"src/language-js/utils/get-shebang.js"(m,E){Re();function p(b){if(!b.startsWith("#!"))return"";let D=b.indexOf(`
199
- `);return D===-1?b:b.slice(0,D)}E.exports=p}}),km=_e({"src/language-js/pragma.js"(m,E){Re();var{parseWithComments:p,strip:b,extract:D,print:f}=e2(),{normalizeEndOfLine:d}=rs(),h=t2();function v(_){let k=h(_);k&&(_=_.slice(k.length+1));let A=D(_),{pragmas:x,comments:j}=p(A);return{shebang:k,text:_,pragmas:x,comments:j}}function S(_){let k=Object.keys(v(_).pragmas);return k.includes("prettier")||k.includes("format")}function L(_){let{shebang:k,text:A,pragmas:x,comments:j}=v(_),Q=b(A),te=f({pragmas:Object.assign({format:""},x),comments:j.trimStart()});return(k?`${k}
200
- `:"")+d(te)+(Q.startsWith(`
201
- `)?`
202
- `:`
203
-
204
- `)+Q}E.exports={hasPragma:S,insertPragma:L}}}),n2=_e({"src/language-js/utils/is-type-cast-comment.js"(m,E){Re();var p=ra();function b(D){return p(D)&&D.value[0]==="*"&&/@(?:type|satisfies)\b/.test(D.value)}E.exports=b}}),Lm=_e({"src/language-js/comments.js"(m,E){Re();var{getLast:p,hasNewline:b,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:D,getNextNonSpaceNonCommentCharacter:f,hasNewlineInRange:d,addLeadingComment:h,addTrailingComment:v,addDanglingComment:S,getNextNonSpaceNonCommentCharacterIndex:L,isNonEmptyArray:_}=ye(),{getFunctionParameters:k,isPrettierIgnoreComment:A,isJsxNode:x,hasFlowShorthandAnnotationComment:j,hasFlowAnnotationComment:Q,hasIgnoreComment:te,isCallLikeExpression:$,getCallArguments:X,isCallExpression:G,isMemberExpression:re,isObjectProperty:Z,isLineComment:De,getComments:F,CommentCheckFlags:J,markerForIfWithoutBlockAndSameLineComment:w}=pr(),{locStart:R,locEnd:y}=ii(),T=ra(),M=n2();function q(yt){return[Ee,Jt,Ue,fe,ke,se,nt,Bt,Xe,Nt,cn,In,ht,$e,xe].some(V=>V(yt))}function U(yt){return[ge,Jt,me,cn,fe,ke,se,nt,$e,Ye,vt,Nt,Dn,xe,Oe].some(V=>V(yt))}function z(yt){return[Ee,fe,ke,ue,pt,ht,Nt,ft,Ie,dt,xe,ot].some(V=>V(yt))}function ie(yt,V){let Le=(yt.body||yt.properties).find(rt=>{let{type:kt}=rt;return kt!=="EmptyStatement"});Le?h(Le,V):S(yt,V)}function ce(yt,V){yt.type==="BlockStatement"?ie(yt,V):h(yt,V)}function ge(yt){let{comment:V,followingNode:Le}=yt;return Le&&M(V)?(h(Le,V),!0):!1}function fe(yt){let{comment:V,precedingNode:Le,enclosingNode:rt,followingNode:kt,text:$t}=yt;if((rt==null?void 0:rt.type)!=="IfStatement"||!kt)return!1;if(f($t,V,y)===")")return v(Le,V),!0;if(Le===rt.consequent&&kt===rt.alternate){if(Le.type==="BlockStatement")v(Le,V);else{let un=V.type==="SingleLine"||V.loc.start.line===V.loc.end.line,Mt=V.loc.start.line===Le.loc.start.line;un&&Mt?S(Le,V,w):S(rt,V)}return!0}return kt.type==="BlockStatement"?(ie(kt,V),!0):kt.type==="IfStatement"?(ce(kt.consequent,V),!0):rt.consequent===kt?(h(kt,V),!0):!1}function ke(yt){let{comment:V,precedingNode:Le,enclosingNode:rt,followingNode:kt,text:$t}=yt;return(rt==null?void 0:rt.type)!=="WhileStatement"||!kt?!1:f($t,V,y)===")"?(v(Le,V),!0):kt.type==="BlockStatement"?(ie(kt,V),!0):rt.body===kt?(h(kt,V),!0):!1}function se(yt){let{comment:V,precedingNode:Le,enclosingNode:rt,followingNode:kt}=yt;return(rt==null?void 0:rt.type)!=="TryStatement"&&(rt==null?void 0:rt.type)!=="CatchClause"||!kt?!1:rt.type==="CatchClause"&&Le?(v(Le,V),!0):kt.type==="BlockStatement"?(ie(kt,V),!0):kt.type==="TryStatement"?(ce(kt.finalizer,V),!0):kt.type==="CatchClause"?(ce(kt.body,V),!0):!1}function Ue(yt){let{comment:V,enclosingNode:Le,followingNode:rt}=yt;return re(Le)&&(rt==null?void 0:rt.type)==="Identifier"?(h(Le,V),!0):!1}function me(yt){let{comment:V,precedingNode:Le,enclosingNode:rt,followingNode:kt,text:$t}=yt,un=Le&&!d($t,y(Le),R(V));return(!Le||!un)&&((rt==null?void 0:rt.type)==="ConditionalExpression"||(rt==null?void 0:rt.type)==="TSConditionalType")&&kt?(h(kt,V),!0):!1}function ue(yt){let{comment:V,precedingNode:Le,enclosingNode:rt}=yt;return Z(rt)&&rt.shorthand&&rt.key===Le&&rt.value.type==="AssignmentPattern"?(v(rt.value.left,V),!0):!1}var Ve=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function nt(yt){let{comment:V,precedingNode:Le,enclosingNode:rt,followingNode:kt}=yt;if(Ve.has(rt==null?void 0:rt.type)){if(_(rt.decorators)&&!(kt&&kt.type==="Decorator"))return v(p(rt.decorators),V),!0;if(rt.body&&kt===rt.body)return ie(rt.body,V),!0;if(kt){if(rt.superClass&&kt===rt.superClass&&Le&&(Le===rt.id||Le===rt.typeParameters))return v(Le,V),!0;for(let $t of["implements","extends","mixins"])if(rt[$t]&&kt===rt[$t][0])return Le&&(Le===rt.id||Le===rt.typeParameters||Le===rt.superClass)?v(Le,V):S(rt,V,$t),!0}}return!1}var Je=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function ht(yt){let{comment:V,precedingNode:Le,enclosingNode:rt,text:kt}=yt;return rt&&Le&&f(kt,V,y)==="("&&(rt.type==="Property"||rt.type==="TSDeclareMethod"||rt.type==="TSAbstractMethodDefinition")&&Le.type==="Identifier"&&rt.key===Le&&f(kt,Le,y)!==":"||(Le==null?void 0:Le.type)==="Decorator"&&Je.has(rt==null?void 0:rt.type)?(v(Le,V),!0):!1}var be=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function Ie(yt){let{comment:V,precedingNode:Le,enclosingNode:rt,text:kt}=yt;return f(kt,V,y)!=="("?!1:Le&&be.has(rt==null?void 0:rt.type)?(v(Le,V),!0):!1}function ft(yt){let{comment:V,enclosingNode:Le,text:rt}=yt;if((Le==null?void 0:Le.type)!=="ArrowFunctionExpression")return!1;let kt=L(rt,V,y);return kt!==!1&&rt.slice(kt,kt+2)==="=>"?(S(Le,V),!0):!1}function pt(yt){let{comment:V,enclosingNode:Le,text:rt}=yt;return f(rt,V,y)!==")"?!1:Le&&(ct(Le)&&k(Le).length===0||$(Le)&&X(Le).length===0)?(S(Le,V),!0):((Le==null?void 0:Le.type)==="MethodDefinition"||(Le==null?void 0:Le.type)==="TSAbstractMethodDefinition")&&k(Le.value).length===0?(S(Le.value,V),!0):!1}function Jt(yt){let{comment:V,precedingNode:Le,enclosingNode:rt,followingNode:kt,text:$t}=yt;if((Le==null?void 0:Le.type)==="FunctionTypeParam"&&(rt==null?void 0:rt.type)==="FunctionTypeAnnotation"&&(kt==null?void 0:kt.type)!=="FunctionTypeParam"||((Le==null?void 0:Le.type)==="Identifier"||(Le==null?void 0:Le.type)==="AssignmentPattern")&&rt&&ct(rt)&&f($t,V,y)===")")return v(Le,V),!0;if((rt==null?void 0:rt.type)==="FunctionDeclaration"&&(kt==null?void 0:kt.type)==="BlockStatement"){let un=(()=>{let Mt=k(rt);if(Mt.length>0)return D($t,y(p(Mt)));let Cr=D($t,y(rt.id));return Cr!==!1&&D($t,Cr+1)})();if(R(V)>un)return ie(kt,V),!0}return!1}function $e(yt){let{comment:V,enclosingNode:Le}=yt;return(Le==null?void 0:Le.type)==="LabeledStatement"?(h(Le,V),!0):!1}function xe(yt){let{comment:V,enclosingNode:Le}=yt;return((Le==null?void 0:Le.type)==="ContinueStatement"||(Le==null?void 0:Le.type)==="BreakStatement")&&!Le.label?(v(Le,V),!0):!1}function Ye(yt){let{comment:V,precedingNode:Le,enclosingNode:rt}=yt;return G(rt)&&Le&&rt.callee===Le&&rt.arguments.length>0?(h(rt.arguments[0],V),!0):!1}function Xe(yt){let{comment:V,precedingNode:Le,enclosingNode:rt,followingNode:kt}=yt;return(rt==null?void 0:rt.type)==="UnionTypeAnnotation"||(rt==null?void 0:rt.type)==="TSUnionType"?(A(V)&&(kt.prettierIgnore=!0,V.unignore=!0),Le?(v(Le,V),!0):!1):(((kt==null?void 0:kt.type)==="UnionTypeAnnotation"||(kt==null?void 0:kt.type)==="TSUnionType")&&A(V)&&(kt.types[0].prettierIgnore=!0,V.unignore=!0),!1)}function vt(yt){let{comment:V,enclosingNode:Le}=yt;return Z(Le)?(h(Le,V),!0):!1}function Nt(yt){let{comment:V,enclosingNode:Le,followingNode:rt,ast:kt,isLastComment:$t}=yt;return kt&&kt.body&&kt.body.length===0?($t?S(kt,V):h(kt,V),!0):(Le==null?void 0:Le.type)==="Program"&&(Le==null?void 0:Le.body.length)===0&&!_(Le.directives)?($t?S(Le,V):h(Le,V),!0):(rt==null?void 0:rt.type)==="Program"&&(rt==null?void 0:rt.body.length)===0&&(Le==null?void 0:Le.type)==="ModuleExpression"?(S(rt,V),!0):!1}function Bt(yt){let{comment:V,enclosingNode:Le}=yt;return(Le==null?void 0:Le.type)==="ForInStatement"||(Le==null?void 0:Le.type)==="ForOfStatement"?(h(Le,V),!0):!1}function cn(yt){let{comment:V,precedingNode:Le,enclosingNode:rt,text:kt}=yt;if((rt==null?void 0:rt.type)==="ImportSpecifier"||(rt==null?void 0:rt.type)==="ExportSpecifier")return h(rt,V),!0;let $t=(Le==null?void 0:Le.type)==="ImportSpecifier"&&(rt==null?void 0:rt.type)==="ImportDeclaration",un=(Le==null?void 0:Le.type)==="ExportSpecifier"&&(rt==null?void 0:rt.type)==="ExportNamedDeclaration";return($t||un)&&b(kt,y(V))?(v(Le,V),!0):!1}function In(yt){let{comment:V,enclosingNode:Le}=yt;return(Le==null?void 0:Le.type)==="AssignmentPattern"?(h(Le,V),!0):!1}var kn=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),ln=new Set(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function Dn(yt){let{comment:V,enclosingNode:Le,followingNode:rt}=yt;return kn.has(Le==null?void 0:Le.type)&&rt&&(ln.has(rt.type)||T(V))?(h(rt,V),!0):!1}function ot(yt){let{comment:V,enclosingNode:Le,followingNode:rt,text:kt}=yt;return!rt&&((Le==null?void 0:Le.type)==="TSMethodSignature"||(Le==null?void 0:Le.type)==="TSDeclareFunction"||(Le==null?void 0:Le.type)==="TSAbstractMethodDefinition")&&f(kt,V,y)===";"?(v(Le,V),!0):!1}function Ee(yt){let{comment:V,enclosingNode:Le,followingNode:rt}=yt;if(A(V)&&(Le==null?void 0:Le.type)==="TSMappedType"&&(rt==null?void 0:rt.type)==="TSTypeParameter"&&rt.constraint)return Le.prettierIgnore=!0,V.unignore=!0,!0}function dt(yt){let{comment:V,precedingNode:Le,enclosingNode:rt,followingNode:kt}=yt;return(rt==null?void 0:rt.type)!=="TSMappedType"?!1:(kt==null?void 0:kt.type)==="TSTypeParameter"&&kt.name?(h(kt.name,V),!0):(Le==null?void 0:Le.type)==="TSTypeParameter"&&Le.constraint?(v(Le.constraint,V),!0):!1}function Oe(yt){let{comment:V,enclosingNode:Le,followingNode:rt}=yt;return!Le||Le.type!=="SwitchCase"||Le.test||!rt||rt!==Le.consequent[0]?!1:(rt.type==="BlockStatement"&&De(V)?ie(rt,V):S(Le,V),!0)}function ct(yt){return yt.type==="ArrowFunctionExpression"||yt.type==="FunctionExpression"||yt.type==="FunctionDeclaration"||yt.type==="ObjectMethod"||yt.type==="ClassMethod"||yt.type==="TSDeclareFunction"||yt.type==="TSCallSignatureDeclaration"||yt.type==="TSConstructSignatureDeclaration"||yt.type==="TSMethodSignature"||yt.type==="TSConstructorType"||yt.type==="TSFunctionType"||yt.type==="TSDeclareMethod"}function Zt(yt,V){if((V.parser==="typescript"||V.parser==="flow"||V.parser==="acorn"||V.parser==="espree"||V.parser==="meriyah"||V.parser==="__babel_estree")&&yt.type==="MethodDefinition"&&yt.value&&yt.value.type==="FunctionExpression"&&k(yt.value).length===0&&!yt.value.returnType&&!_(yt.value.typeParameters)&&yt.value.body)return[...yt.decorators||[],yt.key,yt.value.body]}function Ut(yt){let V=yt.getValue(),Le=yt.getParentNode(),rt=kt=>Q(F(kt,J.Leading))||Q(F(kt,J.Trailing));return(V&&(x(V)||j(V)||G(Le)&&rt(V))||Le&&(Le.type==="JSXSpreadAttribute"||Le.type==="JSXSpreadChild"||Le.type==="UnionTypeAnnotation"||Le.type==="TSUnionType"||(Le.type==="ClassDeclaration"||Le.type==="ClassExpression")&&Le.superClass===V))&&(!te(yt)||Le.type==="UnionTypeAnnotation"||Le.type==="TSUnionType")}E.exports={handleOwnLineComment:q,handleEndOfLineComment:U,handleRemainingComment:z,getCommentChildNodes:Zt,willPrintOwnComments:Ut}}}),Qa=_e({"src/language-js/needs-parens.js"(m,E){Re();var p=Vr(),b=It(),{getFunctionParameters:D,getLeftSidePathName:f,hasFlowShorthandAnnotationComment:d,hasNakedLeftSide:h,hasNode:v,isBitwiseOperator:S,startsWithNoLookaheadToken:L,shouldFlatten:_,getPrecedence:k,isCallExpression:A,isMemberExpression:x,isObjectProperty:j,isTSTypeExpression:Q}=pr();function te(F,J){let w=F.getParentNode();if(!w)return!1;let R=F.getName(),y=F.getNode();if(J.__isInHtmlInterpolation&&!J.bracketSpacing&&re(y)&&Z(F))return!0;if($(y))return!1;if(J.parser!=="flow"&&d(F.getValue()))return!0;if(y.type==="Identifier"){if(y.extra&&y.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(y.name)||R==="left"&&(y.name==="async"&&!w.await||y.name==="let")&&w.type==="ForOfStatement")return!0;if(y.name==="let"){var T;let q=(T=F.findAncestor(U=>U.type==="ForOfStatement"))===null||T===void 0?void 0:T.left;if(q&&L(q,U=>U===y))return!0}if(R==="object"&&y.name==="let"&&w.type==="MemberExpression"&&w.computed&&!w.optional){let q=F.findAncestor(z=>z.type==="ExpressionStatement"||z.type==="ForStatement"||z.type==="ForInStatement"),U=q?q.type==="ExpressionStatement"?q.expression:q.type==="ForStatement"?q.init:q.left:void 0;if(U&&L(U,z=>z===y))return!0}return!1}if(y.type==="ObjectExpression"||y.type==="FunctionExpression"||y.type==="ClassExpression"||y.type==="DoExpression"){var M;let q=(M=F.findAncestor(U=>U.type==="ExpressionStatement"))===null||M===void 0?void 0:M.expression;if(q&&L(q,U=>U===y))return!0}switch(w.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":{if(R==="superClass"&&(y.type==="ArrowFunctionExpression"||y.type==="AssignmentExpression"||y.type==="AwaitExpression"||y.type==="BinaryExpression"||y.type==="ConditionalExpression"||y.type==="LogicalExpression"||y.type==="NewExpression"||y.type==="ObjectExpression"||y.type==="SequenceExpression"||y.type==="TaggedTemplateExpression"||y.type==="UnaryExpression"||y.type==="UpdateExpression"||y.type==="YieldExpression"||y.type==="TSNonNullExpression"))return!0;break}case"ExportDefaultDeclaration":return De(F,J)||y.type==="SequenceExpression";case"Decorator":{if(R==="expression"){if(x(y)&&y.computed)return!0;let q=!1,U=!1,z=y;for(;z;)switch(z.type){case"MemberExpression":U=!0,z=z.object;break;case"CallExpression":if(U||q)return J.parser!=="typescript";q=!0,z=z.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return J.parser!=="typescript";default:return!0}return!0}break}case"ArrowFunctionExpression":{if(R==="body"&&y.type!=="SequenceExpression"&&L(y,q=>q.type==="ObjectExpression"))return!0;break}}switch(y.type){case"UpdateExpression":if(w.type==="UnaryExpression")return y.prefix&&(y.operator==="++"&&w.operator==="+"||y.operator==="--"&&w.operator==="-");case"UnaryExpression":switch(w.type){case"UnaryExpression":return y.operator===w.operator&&(y.operator==="+"||y.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return R==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return R==="callee";case"BinaryExpression":return R==="left"&&w.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":{if(w.type==="UpdateExpression"||y.operator==="in"&&X(F))return!0;if(y.operator==="|>"&&y.extra&&y.extra.parenthesized){let q=F.getParentNode(1);if(q.type==="BinaryExpression"&&q.operator==="|>")return!0}}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"LogicalExpression":switch(w.type){case"TSSatisfiesExpression":case"TSAsExpression":return!Q(y);case"ConditionalExpression":return Q(y);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return R==="callee";case"ClassExpression":case"ClassDeclaration":return R==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"SpreadProperty":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return R==="object";case"AssignmentExpression":case"AssignmentPattern":return R==="left"&&(y.type==="TSTypeAssertion"||Q(y));case"LogicalExpression":if(y.type==="LogicalExpression")return w.operator!==y.operator;case"BinaryExpression":{let{operator:q,type:U}=y;if(!q&&U!=="TSTypeAssertion")return!0;let z=k(q),ie=w.operator,ce=k(ie);return ce>z||R==="right"&&ce===z||ce===z&&!_(ie,q)?!0:ce<z&&q==="%"?ie==="+"||ie==="-":!!S(ie)}default:return!1}case"SequenceExpression":switch(w.type){case"ReturnStatement":return!1;case"ForStatement":return!1;case"ExpressionStatement":return R!=="expression";case"ArrowFunctionExpression":return R!=="body";default:return!0}case"YieldExpression":if(w.type==="UnaryExpression"||w.type==="AwaitExpression"||Q(w)||w.type==="TSNonNullExpression")return!0;case"AwaitExpression":switch(w.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"SpreadProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return R==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return R==="callee";case"ConditionalExpression":return R==="test";case"BinaryExpression":return!(!y.argument&&w.operator==="|>");default:return!1}case"TSConditionalType":case"TSFunctionType":case"TSConstructorType":if(R==="extendsType"&&w.type==="TSConditionalType"){if(y.type==="TSConditionalType")return!0;let{typeAnnotation:q}=y.returnType||y.typeAnnotation;if(q.type==="TSTypePredicate"&&q.typeAnnotation&&(q=q.typeAnnotation.typeAnnotation),q.type==="TSInferType"&&q.typeParameter.constraint)return!0}if(R==="checkType"&&w.type==="TSConditionalType")return!0;case"TSUnionType":case"TSIntersectionType":if((w.type==="TSUnionType"||w.type==="TSIntersectionType")&&w.types.length>1&&(!y.types||y.types.length>1))return!0;case"TSInferType":if(y.type==="TSInferType"&&w.type==="TSRestType")return!1;case"TSTypeOperator":return w.type==="TSArrayType"||w.type==="TSOptionalType"||w.type==="TSRestType"||R==="objectType"&&w.type==="TSIndexedAccessType"||w.type==="TSTypeOperator"||w.type==="TSTypeAnnotation"&&F.getParentNode(1).type.startsWith("TSJSDoc");case"TSTypeQuery":return R==="objectType"&&w.type==="TSIndexedAccessType"||R==="elementType"&&w.type==="TSArrayType";case"TypeofTypeAnnotation":return R==="objectType"&&(w.type==="IndexedAccessType"||w.type==="OptionalIndexedAccessType")||R==="elementType"&&w.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return w.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return w.type==="ArrayTypeAnnotation"||w.type==="NullableTypeAnnotation"||w.type==="IntersectionTypeAnnotation"||w.type==="UnionTypeAnnotation"||R==="objectType"&&(w.type==="IndexedAccessType"||w.type==="OptionalIndexedAccessType");case"NullableTypeAnnotation":return w.type==="ArrayTypeAnnotation"||R==="objectType"&&(w.type==="IndexedAccessType"||w.type==="OptionalIndexedAccessType");case"FunctionTypeAnnotation":{let q=w.type==="NullableTypeAnnotation"?F.getParentNode(1):w;return q.type==="UnionTypeAnnotation"||q.type==="IntersectionTypeAnnotation"||q.type==="ArrayTypeAnnotation"||R==="objectType"&&(q.type==="IndexedAccessType"||q.type==="OptionalIndexedAccessType")||q.type==="NullableTypeAnnotation"||w.type==="FunctionTypeParam"&&w.name===null&&D(y).some(U=>U.typeAnnotation&&U.typeAnnotation.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return R==="objectType"&&w.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof y.value=="string"&&w.type==="ExpressionStatement"&&!w.directive){let q=F.getParentNode(1);return q.type==="Program"||q.type==="BlockStatement"}return R==="object"&&w.type==="MemberExpression"&&typeof y.value=="number";case"AssignmentExpression":{let q=F.getParentNode(1);return R==="body"&&w.type==="ArrowFunctionExpression"?!0:R==="key"&&(w.type==="ClassProperty"||w.type==="PropertyDefinition")&&w.computed||(R==="init"||R==="update")&&w.type==="ForStatement"?!1:w.type==="ExpressionStatement"?y.left.type==="ObjectPattern":!(R==="key"&&w.type==="TSPropertySignature"||w.type==="AssignmentExpression"||w.type==="SequenceExpression"&&q&&q.type==="ForStatement"&&(q.init===w||q.update===w)||R==="value"&&w.type==="Property"&&q&&q.type==="ObjectPattern"&&q.properties.includes(w)||w.type==="NGChainedExpression")}case"ConditionalExpression":switch(w.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"SpreadProperty":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return R==="callee";case"ConditionalExpression":return R==="test";case"MemberExpression":case"OptionalMemberExpression":return R==="object";default:return!1}case"FunctionExpression":switch(w.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return R==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(w.type){case"BinaryExpression":return w.operator!=="|>"||y.extra&&y.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return R==="callee";case"MemberExpression":case"OptionalMemberExpression":return R==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return R==="test";default:return!1}case"ClassExpression":if(b(y.decorators))return!0;switch(w.type){case"NewExpression":return R==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":{let q=F.getParentNode(1);if(R==="object"&&w.type==="MemberExpression"||R==="callee"&&(w.type==="CallExpression"||w.type==="NewExpression")||w.type==="TSNonNullExpression"&&q.type==="MemberExpression"&&q.object===w)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if(R==="callee"&&(w.type==="BindExpression"||w.type==="NewExpression")){let q=y;for(;q;)switch(q.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":q=q.object;break;case"TaggedTemplateExpression":q=q.tag;break;case"TSNonNullExpression":q=q.expression;break;default:return!1}}return!1;case"BindExpression":return R==="callee"&&(w.type==="BindExpression"||w.type==="NewExpression")||R==="object"&&x(w);case"NGPipeExpression":return!(w.type==="NGRoot"||w.type==="NGMicrosyntaxExpression"||w.type==="ObjectProperty"&&!(y.extra&&y.extra.parenthesized)||w.type==="ArrayExpression"||A(w)&&w.arguments[R]===y||R==="right"&&w.type==="NGPipeExpression"||R==="property"&&w.type==="MemberExpression"||w.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return R==="callee"||R==="left"&&w.type==="BinaryExpression"&&w.operator==="<"||w.type!=="ArrayExpression"&&w.type!=="ArrowFunctionExpression"&&w.type!=="AssignmentExpression"&&w.type!=="AssignmentPattern"&&w.type!=="BinaryExpression"&&w.type!=="NewExpression"&&w.type!=="ConditionalExpression"&&w.type!=="ExpressionStatement"&&w.type!=="JsExpressionRoot"&&w.type!=="JSXAttribute"&&w.type!=="JSXElement"&&w.type!=="JSXExpressionContainer"&&w.type!=="JSXFragment"&&w.type!=="LogicalExpression"&&!A(w)&&!j(w)&&w.type!=="ReturnStatement"&&w.type!=="ThrowStatement"&&w.type!=="TypeCastExpression"&&w.type!=="VariableDeclarator"&&w.type!=="YieldExpression";case"TypeAnnotation":return R==="returnType"&&w.type==="ArrowFunctionExpression"&&G(y)}return!1}function $(F){return F.type==="BlockStatement"||F.type==="BreakStatement"||F.type==="ClassBody"||F.type==="ClassDeclaration"||F.type==="ClassMethod"||F.type==="ClassProperty"||F.type==="PropertyDefinition"||F.type==="ClassPrivateProperty"||F.type==="ContinueStatement"||F.type==="DebuggerStatement"||F.type==="DeclareClass"||F.type==="DeclareExportAllDeclaration"||F.type==="DeclareExportDeclaration"||F.type==="DeclareFunction"||F.type==="DeclareInterface"||F.type==="DeclareModule"||F.type==="DeclareModuleExports"||F.type==="DeclareVariable"||F.type==="DoWhileStatement"||F.type==="EnumDeclaration"||F.type==="ExportAllDeclaration"||F.type==="ExportDefaultDeclaration"||F.type==="ExportNamedDeclaration"||F.type==="ExpressionStatement"||F.type==="ForInStatement"||F.type==="ForOfStatement"||F.type==="ForStatement"||F.type==="FunctionDeclaration"||F.type==="IfStatement"||F.type==="ImportDeclaration"||F.type==="InterfaceDeclaration"||F.type==="LabeledStatement"||F.type==="MethodDefinition"||F.type==="ReturnStatement"||F.type==="SwitchStatement"||F.type==="ThrowStatement"||F.type==="TryStatement"||F.type==="TSDeclareFunction"||F.type==="TSEnumDeclaration"||F.type==="TSImportEqualsDeclaration"||F.type==="TSInterfaceDeclaration"||F.type==="TSModuleDeclaration"||F.type==="TSNamespaceExportDeclaration"||F.type==="TypeAlias"||F.type==="VariableDeclaration"||F.type==="WhileStatement"||F.type==="WithStatement"}function X(F){let J=0,w=F.getValue();for(;w;){let R=F.getParentNode(J++);if(R&&R.type==="ForStatement"&&R.init===w)return!0;w=R}return!1}function G(F){return v(F,J=>J.type==="ObjectTypeAnnotation"&&v(J,w=>w.type==="FunctionTypeAnnotation"||void 0)||void 0)}function re(F){switch(F.type){case"ObjectExpression":return!0;default:return!1}}function Z(F){let J=F.getValue(),w=F.getParentNode(),R=F.getName();switch(w.type){case"NGPipeExpression":if(typeof R=="number"&&w.arguments[R]===J&&w.arguments.length-1===R)return F.callParent(Z);break;case"ObjectProperty":if(R==="value"){let y=F.getParentNode(1);return p(y.properties)===w}break;case"BinaryExpression":case"LogicalExpression":if(R==="right")return F.callParent(Z);break;case"ConditionalExpression":if(R==="alternate")return F.callParent(Z);break;case"UnaryExpression":if(w.prefix)return F.callParent(Z);break}return!1}function De(F,J){let w=F.getValue(),R=F.getParentNode();return w.type==="FunctionExpression"||w.type==="ClassExpression"?R.type==="ExportDefaultDeclaration"||!te(F,J):!h(w)||R.type!=="ExportDefaultDeclaration"&&te(F,J)?!1:F.call(y=>De(y,J),...f(F,w))}E.exports=te}}),Pm=_e({"src/language-js/print-preprocess.js"(m,E){Re();function p(b,D){switch(D.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":case"__vue_ts_expression":return Object.assign(Object.assign({},b),{},{type:D.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:b,comments:[],rootMarker:D.rootMarker});default:return b}}E.exports=p}}),r2=_e({"src/language-js/print/html-binding.js"(m,E){Re();var{builders:{join:p,line:b,group:D,softline:f,indent:d}}=Fn();function h(S,L,_){let k=S.getValue();if(L.__onHtmlBindingRoot&&S.getName()===null&&L.__onHtmlBindingRoot(k,L),k.type==="File"){if(L.__isVueForBindingLeft)return S.call(A=>{let x=p([",",b],A.map(_,"params")),{params:j}=A.getValue();return j.length===1?x:["(",d([f,D(x)]),f,")"]},"program","body",0);if(L.__isVueBindings)return S.call(A=>p([",",b],A.map(_,"params")),"program","body",0)}}function v(S){switch(S.type){case"MemberExpression":switch(S.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return v(S.object)}return!1;case"Identifier":return!0;default:return!1}}E.exports={isVueEventBindingExpression:v,printHtmlBinding:h}}}),Yf=_e({"src/language-js/print/binaryish.js"(m,E){Re();var{printComments:p}=Or(),{getLast:b}=ye(),{builders:{join:D,line:f,softline:d,group:h,indent:v,align:S,indentIfBreak:L},utils:{cleanDoc:_,getDocParts:k,isConcat:A}}=Fn(),{hasLeadingOwnLineComment:x,isBinaryish:j,isJsxNode:Q,shouldFlatten:te,hasComment:$,CommentCheckFlags:X,isCallExpression:G,isMemberExpression:re,isObjectProperty:Z,isEnabledHackPipeline:De}=pr(),F=0;function J(y,T,M){let q=y.getValue(),U=y.getParentNode(),z=y.getParentNode(1),ie=q!==U.body&&(U.type==="IfStatement"||U.type==="WhileStatement"||U.type==="SwitchStatement"||U.type==="DoWhileStatement"),ce=De(T)&&q.operator==="|>",ge=w(y,M,T,!1,ie);if(ie)return ge;if(ce)return h(ge);if(G(U)&&U.callee===q||U.type==="UnaryExpression"||re(U)&&!U.computed)return h([v([d,...ge]),d]);let fe=U.type==="ReturnStatement"||U.type==="ThrowStatement"||U.type==="JSXExpressionContainer"&&z.type==="JSXAttribute"||q.operator!=="|"&&U.type==="JsExpressionRoot"||q.type!=="NGPipeExpression"&&(U.type==="NGRoot"&&T.parser==="__ng_binding"||U.type==="NGMicrosyntaxExpression"&&z.type==="NGMicrosyntax"&&z.body.length===1)||q===U.body&&U.type==="ArrowFunctionExpression"||q!==U.body&&U.type==="ForStatement"||U.type==="ConditionalExpression"&&z.type!=="ReturnStatement"&&z.type!=="ThrowStatement"&&!G(z)||U.type==="TemplateLiteral",ke=U.type==="AssignmentExpression"||U.type==="VariableDeclarator"||U.type==="ClassProperty"||U.type==="PropertyDefinition"||U.type==="TSAbstractPropertyDefinition"||U.type==="ClassPrivateProperty"||Z(U),se=j(q.left)&&te(q.operator,q.left.operator);if(fe||R(q)&&!se||!R(q)&&ke)return h(ge);if(ge.length===0)return"";let Ue=Q(q.right),me=ge.findIndex(be=>typeof be!="string"&&!Array.isArray(be)&&be.type==="group"),ue=ge.slice(0,me===-1?1:me+1),Ve=ge.slice(ue.length,Ue?-1:void 0),nt=Symbol("logicalChain-"+ ++F),Je=h([...ue,v(Ve)],{id:nt});if(!Ue)return Je;let ht=b(ge);return h([Je,L(ht,{groupId:nt})])}function w(y,T,M,q,U){let z=y.getValue();if(!j(z))return[h(T())];let ie=[];te(z.operator,z.left.operator)?ie=y.call(Ve=>w(Ve,T,M,!0,U),"left"):ie.push(h(T("left")));let ce=R(z),ge=(z.operator==="|>"||z.type==="NGPipeExpression"||z.operator==="|"&&M.parser==="__vue_expression")&&!x(M.originalText,z.right),fe=z.type==="NGPipeExpression"?"|":z.operator,ke=z.type==="NGPipeExpression"&&z.arguments.length>0?h(v([f,": ",D([f,": "],y.map(T,"arguments").map(Ve=>S(2,h(Ve))))])):"",se;if(ce)se=[fe," ",T("right"),ke];else{let Ve=De(M)&&fe==="|>"?y.call(nt=>w(nt,T,M,!0,U),"right"):T("right");se=[ge?f:"",fe,ge?" ":f,Ve,ke]}let Ue=y.getParentNode(),me=$(z.left,X.Trailing|X.Line),ue=me||!(U&&z.type==="LogicalExpression")&&Ue.type!==z.type&&z.left.type!==z.type&&z.right.type!==z.type;if(ie.push(ge?"":" ",ue?h(se,{shouldBreak:me}):se),q&&$(z)){let Ve=_(p(y,ie,M));return A(Ve)||Ve.type==="fill"?k(Ve):[Ve]}return ie}function R(y){return y.type!=="LogicalExpression"?!1:!!(y.right.type==="ObjectExpression"&&y.right.properties.length>0||y.right.type==="ArrayExpression"&&y.right.elements.length>0||Q(y.right))}E.exports={printBinaryishExpression:J,shouldInlineLogicalExpression:R}}}),i2=_e({"src/language-js/print/angular.js"(m,E){Re();var{builders:{join:p,line:b,group:D}}=Fn(),{hasNode:f,hasComment:d,getComments:h}=pr(),{printBinaryishExpression:v}=Yf();function S(k,A,x){let j=k.getValue();if(j.type.startsWith("NG"))switch(j.type){case"NGRoot":return[x("node"),d(j.node)?" //"+h(j.node)[0].value.trimEnd():""];case"NGPipeExpression":return v(k,A,x);case"NGChainedExpression":return D(p([";",b],k.map(Q=>_(Q)?x():["(",x(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[j.prefix,": ",j.value.trim()];case"NGMicrosyntax":return k.map((Q,te)=>[te===0?"":L(Q.getValue(),te,j)?" ":[";",b],x()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(j.name)?j.name:JSON.stringify(j.name);case"NGMicrosyntaxExpression":return[x("expression"),j.alias===null?"":[" as ",x("alias")]];case"NGMicrosyntaxKeyedExpression":{let Q=k.getName(),te=k.getParentNode(),$=L(j,Q,te)||(Q===1&&(j.key.name==="then"||j.key.name==="else")||Q===2&&j.key.name==="else"&&te.body[Q-1].type==="NGMicrosyntaxKeyedExpression"&&te.body[Q-1].key.name==="then")&&te.body[0].type==="NGMicrosyntaxExpression";return[x("key"),$?" ":": ",x("expression")]}case"NGMicrosyntaxLet":return["let ",x("key"),j.value===null?"":[" = ",x("value")]];case"NGMicrosyntaxAs":return[x("key")," as ",x("alias")];default:throw new Error(`Unknown Angular node type: ${JSON.stringify(j.type)}.`)}}function L(k,A,x){return k.type==="NGMicrosyntaxKeyedExpression"&&k.key.name==="of"&&A===1&&x.body[0].type==="NGMicrosyntaxLet"&&x.body[0].value===null}function _(k){return f(k.getValue(),A=>{switch(A.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}E.exports={printAngular:S}}}),s2=_e({"src/language-js/print/jsx.js"(m,E){Re();var{printComments:p,printDanglingComments:b,printCommentsSeparately:D}=Or(),{builders:{line:f,hardline:d,softline:h,group:v,indent:S,conditionalGroup:L,fill:_,ifBreak:k,lineSuffixBoundary:A,join:x},utils:{willBreak:j}}=Fn(),{getLast:Q,getPreferredQuote:te}=ye(),{isJsxNode:$,rawText:X,isCallExpression:G,isStringLiteral:re,isBinaryish:Z,hasComment:De,CommentCheckFlags:F,hasNodeIgnoreComment:J}=pr(),w=Qa(),{willPrintOwnComments:R}=Lm(),y=xe=>xe===""||xe===f||xe===d||xe===h;function T(xe,Ye,Xe){let vt=xe.getValue();if(vt.type==="JSXElement"&&ft(vt))return[Xe("openingElement"),Xe("closingElement")];let Nt=vt.type==="JSXElement"?Xe("openingElement"):Xe("openingFragment"),Bt=vt.type==="JSXElement"?Xe("closingElement"):Xe("closingFragment");if(vt.children.length===1&&vt.children[0].type==="JSXExpressionContainer"&&(vt.children[0].expression.type==="TemplateLiteral"||vt.children[0].expression.type==="TaggedTemplateExpression"))return[Nt,...xe.map(Xe,"children"),Bt];vt.children=vt.children.map(V=>Jt(V)?{type:"JSXText",value:" ",raw:" "}:V);let cn=vt.children.some($),In=vt.children.filter(V=>V.type==="JSXExpressionContainer").length>1,kn=vt.type==="JSXElement"&&vt.openingElement.attributes.length>1,ln=j(Nt)||cn||kn||In,Dn=xe.getParentNode().rootMarker==="mdx",ot=Ye.singleQuote?"{' '}":'{" "}',Ee=Dn?" ":k([ot,h]," "),dt=vt.openingElement&&vt.openingElement.name&&vt.openingElement.name.name==="fbt",Oe=M(xe,Ye,Xe,Ee,dt),ct=vt.children.some(V=>pt(V));for(let V=Oe.length-2;V>=0;V--){let Le=Oe[V]===""&&Oe[V+1]==="",rt=Oe[V]===d&&Oe[V+1]===""&&Oe[V+2]===d,kt=(Oe[V]===h||Oe[V]===d)&&Oe[V+1]===""&&Oe[V+2]===Ee,$t=Oe[V]===Ee&&Oe[V+1]===""&&(Oe[V+2]===h||Oe[V+2]===d),un=Oe[V]===Ee&&Oe[V+1]===""&&Oe[V+2]===Ee,Mt=Oe[V]===h&&Oe[V+1]===""&&Oe[V+2]===d||Oe[V]===d&&Oe[V+1]===""&&Oe[V+2]===h;rt&&ct||Le||kt||un||Mt?Oe.splice(V,2):$t&&Oe.splice(V+1,2)}for(;Oe.length>0&&y(Q(Oe));)Oe.pop();for(;Oe.length>1&&y(Oe[0])&&y(Oe[1]);)Oe.shift(),Oe.shift();let Zt=[];for(let[V,Le]of Oe.entries()){if(Le===Ee){if(V===1&&Oe[V-1]===""){if(Oe.length===2){Zt.push(ot);continue}Zt.push([ot,d]);continue}else if(V===Oe.length-1){Zt.push(ot);continue}else if(Oe[V-1]===""&&Oe[V-2]===d){Zt.push(ot);continue}}Zt.push(Le),j(Le)&&(ln=!0)}let Ut=ct?_(Zt):v(Zt,{shouldBreak:!0});if(Dn)return Ut;let yt=v([Nt,S([d,Ut]),d,Bt]);return ln?yt:L([v([Nt,...Oe,Bt]),yt])}function M(xe,Ye,Xe,vt,Nt){let Bt=[];return xe.each((cn,In,kn)=>{let ln=cn.getValue();if(ln.type==="JSXText"){let Dn=X(ln);if(pt(ln)){let ot=Dn.split(ht);if(ot[0]===""){if(Bt.push(""),ot.shift(),/\n/.test(ot[0])){let dt=kn[In+1];Bt.push(U(Nt,ot[1],ln,dt))}else Bt.push(vt);ot.shift()}let Ee;if(Q(ot)===""&&(ot.pop(),Ee=ot.pop()),ot.length===0)return;for(let[dt,Oe]of ot.entries())dt%2===1?Bt.push(f):Bt.push(Oe);if(Ee!==void 0)if(/\n/.test(Ee)){let dt=kn[In+1];Bt.push(U(Nt,Q(Bt),ln,dt))}else Bt.push(vt);else{let dt=kn[In+1];Bt.push(q(Nt,Q(Bt),ln,dt))}}else/\n/.test(Dn)?Dn.match(/\n/g).length>1&&Bt.push("",d):Bt.push("",vt)}else{let Dn=Xe();Bt.push(Dn);let ot=kn[In+1];if(ot&&pt(ot)){let Ee=Ie(X(ot)).split(ht)[0];Bt.push(q(Nt,Ee,ln,ot))}else Bt.push(d)}},"children"),Bt}function q(xe,Ye,Xe,vt){return xe?"":Xe.type==="JSXElement"&&!Xe.closingElement||vt&&vt.type==="JSXElement"&&!vt.closingElement?Ye.length===1?h:d:h}function U(xe,Ye,Xe,vt){return xe?d:Ye.length===1?Xe.type==="JSXElement"&&!Xe.closingElement||vt&&vt.type==="JSXElement"&&!vt.closingElement?d:h:d}function z(xe,Ye,Xe){let vt=xe.getParentNode();if(!vt||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[vt.type])return Ye;let Nt=xe.match(void 0,cn=>cn.type==="ArrowFunctionExpression",G,cn=>cn.type==="JSXExpressionContainer"),Bt=w(xe,Xe);return v([Bt?"":k("("),S([h,Ye]),h,Bt?"":k(")")],{shouldBreak:Nt})}function ie(xe,Ye,Xe){let vt=xe.getValue(),Nt=[];if(Nt.push(Xe("name")),vt.value){let Bt;if(re(vt.value)){let cn=X(vt.value).slice(1,-1).replace(/&apos;/g,"'").replace(/&quot;/g,'"'),{escaped:In,quote:kn,regex:ln}=te(cn,Ye.jsxSingleQuote?"'":'"');cn=cn.replace(ln,In);let{leading:Dn,trailing:ot}=xe.call(()=>D(xe,Ye),"value");Bt=[Dn,kn,cn,kn,ot]}else Bt=Xe("value");Nt.push("=",Bt)}return Nt}function ce(xe,Ye,Xe){let vt=xe.getValue(),Nt=(Bt,cn)=>Bt.type==="JSXEmptyExpression"||!De(Bt)&&(Bt.type==="ArrayExpression"||Bt.type==="ObjectExpression"||Bt.type==="ArrowFunctionExpression"||Bt.type==="AwaitExpression"&&(Nt(Bt.argument,Bt)||Bt.argument.type==="JSXElement")||G(Bt)||Bt.type==="FunctionExpression"||Bt.type==="TemplateLiteral"||Bt.type==="TaggedTemplateExpression"||Bt.type==="DoExpression"||$(cn)&&(Bt.type==="ConditionalExpression"||Z(Bt)));return Nt(vt.expression,xe.getParentNode(0))?v(["{",Xe("expression"),A,"}"]):v(["{",S([h,Xe("expression")]),h,A,"}"])}function ge(xe,Ye,Xe){let vt=xe.getValue(),Nt=vt.name&&De(vt.name)||vt.typeParameters&&De(vt.typeParameters);if(vt.selfClosing&&vt.attributes.length===0&&!Nt)return["<",Xe("name"),Xe("typeParameters")," />"];if(vt.attributes&&vt.attributes.length===1&&vt.attributes[0].value&&re(vt.attributes[0].value)&&!vt.attributes[0].value.value.includes(`
205
- `)&&!Nt&&!De(vt.attributes[0]))return v(["<",Xe("name"),Xe("typeParameters")," ",...xe.map(Xe,"attributes"),vt.selfClosing?" />":">"]);let Bt=vt.attributes&&vt.attributes.some(In=>In.value&&re(In.value)&&In.value.value.includes(`
206
- `)),cn=Ye.singleAttributePerLine&&vt.attributes.length>1?d:f;return v(["<",Xe("name"),Xe("typeParameters"),S(xe.map(()=>[cn,Xe()],"attributes")),...fe(vt,Ye,Nt)],{shouldBreak:Bt})}function fe(xe,Ye,Xe){return xe.selfClosing?[f,"/>"]:ke(xe,Ye,Xe)?[">"]:[h,">"]}function ke(xe,Ye,Xe){let vt=xe.attributes.length>0&&De(Q(xe.attributes),F.Trailing);return xe.attributes.length===0&&!Xe||(Ye.bracketSameLine||Ye.jsxBracketSameLine)&&(!Xe||xe.attributes.length>0)&&!vt}function se(xe,Ye,Xe){let vt=xe.getValue(),Nt=[];Nt.push("</");let Bt=Xe("name");return De(vt.name,F.Leading|F.Line)?Nt.push(S([d,Bt]),d):De(vt.name,F.Leading|F.Block)?Nt.push(" ",Bt):Nt.push(Bt),Nt.push(">"),Nt}function Ue(xe,Ye){let Xe=xe.getValue(),vt=De(Xe),Nt=De(Xe,F.Line),Bt=Xe.type==="JSXOpeningFragment";return[Bt?"<":"</",S([Nt?d:vt&&!Bt?" ":"",b(xe,Ye,!0)]),Nt?d:"",">"]}function me(xe,Ye,Xe){let vt=p(xe,T(xe,Ye,Xe),Ye);return z(xe,vt,Ye)}function ue(xe,Ye){let Xe=xe.getValue(),vt=De(Xe,F.Line);return[b(xe,Ye,!vt),vt?d:""]}function Ve(xe,Ye,Xe){let vt=xe.getValue();return["{",xe.call(Nt=>{let Bt=["...",Xe()],cn=Nt.getValue();return!De(cn)||!R(Nt)?Bt:[S([h,p(Nt,Bt,Ye)]),h]},vt.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function nt(xe,Ye,Xe){let vt=xe.getValue();if(vt.type.startsWith("JSX"))switch(vt.type){case"JSXAttribute":return ie(xe,Ye,Xe);case"JSXIdentifier":return String(vt.name);case"JSXNamespacedName":return x(":",[Xe("namespace"),Xe("name")]);case"JSXMemberExpression":return x(".",[Xe("object"),Xe("property")]);case"JSXSpreadAttribute":return Ve(xe,Ye,Xe);case"JSXSpreadChild":return Ve(xe,Ye,Xe);case"JSXExpressionContainer":return ce(xe,Ye,Xe);case"JSXFragment":case"JSXElement":return me(xe,Ye,Xe);case"JSXOpeningElement":return ge(xe,Ye,Xe);case"JSXClosingElement":return se(xe,Ye,Xe);case"JSXOpeningFragment":case"JSXClosingFragment":return Ue(xe,Ye);case"JSXEmptyExpression":return ue(xe,Ye);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Error(`Unknown JSX node type: ${JSON.stringify(vt.type)}.`)}}var Je=`
207
- \r `,ht=new RegExp("(["+Je+"]+)"),be=new RegExp("[^"+Je+"]"),Ie=xe=>xe.replace(new RegExp("(?:^"+ht.source+"|"+ht.source+"$)"),"");function ft(xe){if(xe.children.length===0)return!0;if(xe.children.length>1)return!1;let Ye=xe.children[0];return Ye.type==="JSXText"&&!pt(Ye)}function pt(xe){return xe.type==="JSXText"&&(be.test(X(xe))||!/\n/.test(X(xe)))}function Jt(xe){return xe.type==="JSXExpressionContainer"&&re(xe.expression)&&xe.expression.value===" "&&!De(xe.expression)}function $e(xe){let Ye=xe.getValue(),Xe=xe.getParentNode();if(!Xe||!Ye||!$(Ye)||!$(Xe))return!1;let vt=Xe.children.indexOf(Ye),Nt=null;for(let Bt=vt;Bt>0;Bt--){let cn=Xe.children[Bt-1];if(!(cn.type==="JSXText"&&!pt(cn))){Nt=cn;break}}return Nt&&Nt.type==="JSXExpressionContainer"&&Nt.expression.type==="JSXEmptyExpression"&&J(Nt.expression)}E.exports={hasJsxIgnoreComment:$e,printJsx:nt}}}),wi=_e({"src/language-js/print/misc.js"(m,E){Re();var{isNonEmptyArray:p}=ye(),{builders:{indent:b,join:D,line:f}}=Fn(),{isFlowAnnotationComment:d}=pr();function h(Q){let te=Q.getValue();return!te.optional||te.type==="Identifier"&&te===Q.getParentNode().key?"":te.type==="OptionalCallExpression"||te.type==="OptionalMemberExpression"&&te.computed?"?.":"?"}function v(Q){return Q.getValue().definite||Q.match(void 0,(te,$)=>$==="id"&&te.type==="VariableDeclarator"&&te.definite)?"!":""}function S(Q,te,$){let X=Q.getValue();return X.typeArguments?$("typeArguments"):X.typeParameters?$("typeParameters"):""}function L(Q,te,$){let X=Q.getValue();if(!X.typeAnnotation)return"";let G=Q.getParentNode(),re=G.type==="DeclareFunction"&&G.id===X;return d(te.originalText,X.typeAnnotation)?[" /*: ",$("typeAnnotation")," */"]:[re?"":": ",$("typeAnnotation")]}function _(Q,te,$){return["::",$("callee")]}function k(Q,te,$){let X=Q.getValue();return p(X.modifiers)?[D(" ",Q.map($,"modifiers"))," "]:""}function A(Q,te,$){return Q.type==="EmptyStatement"?";":Q.type==="BlockStatement"||$?[" ",te]:b([f,te])}function x(Q,te,$){return["...",$("argument"),L(Q,te,$)]}function j(Q,te){let $=Q.slice(1,-1);if($.includes('"')||$.includes("'"))return Q;let X=te.singleQuote?"'":'"';return X+$+X}E.exports={printOptionalToken:h,printDefiniteToken:v,printFunctionTypeParameters:S,printBindExpressionCallee:_,printTypeScriptModifiers:k,printTypeAnnotation:L,printRestSpread:x,adjustClause:A,printDirective:j}}}),Io=_e({"src/language-js/print/array.js"(m,E){Re();var{printDanglingComments:p}=Or(),{builders:{line:b,softline:D,hardline:f,group:d,indent:h,ifBreak:v,fill:S}}=Fn(),{getLast:L,hasNewline:_}=ye(),{shouldPrintComma:k,hasComment:A,CommentCheckFlags:x,isNextLineEmpty:j,isNumericLiteral:Q,isSignedNumericLiteral:te}=pr(),{locStart:$}=ii(),{printOptionalToken:X,printTypeAnnotation:G}=wi();function re(J,w,R){let y=J.getValue(),T=[],M=y.type==="TupleExpression"?"#[":"[",q="]";if(y.elements.length===0)A(y,x.Dangling)?T.push(d([M,p(J,w),D,q])):T.push(M,q);else{let U=L(y.elements),z=!(U&&U.type==="RestElement"),ie=U===null,ce=Symbol("array"),ge=!w.__inJestEach&&y.elements.length>1&&y.elements.every((se,Ue,me)=>{let ue=se&&se.type;if(ue!=="ArrayExpression"&&ue!=="ObjectExpression")return!1;let Ve=me[Ue+1];if(Ve&&ue!==Ve.type)return!1;let nt=ue==="ArrayExpression"?"elements":"properties";return se[nt]&&se[nt].length>1}),fe=Z(y,w),ke=z?ie?",":k(w)?fe?v(",","",{groupId:ce}):v(","):"":"";T.push(d([M,h([D,fe?F(J,w,R,ke):[De(J,w,"elements",R),ke],p(J,w,!0)]),D,q],{shouldBreak:ge,id:ce}))}return T.push(X(J),G(J,w,R)),T}function Z(J,w){return J.elements.length>1&&J.elements.every(R=>R&&(Q(R)||te(R)&&!A(R.argument))&&!A(R,x.Trailing|x.Line,y=>!_(w.originalText,$(y),{backwards:!0})))}function De(J,w,R,y){let T=[],M=[];return J.each(q=>{T.push(M,d(y())),M=[",",b],q.getValue()&&j(q.getValue(),w)&&M.push(D)},R),T}function F(J,w,R,y){let T=[];return J.each((M,q,U)=>{let z=q===U.length-1;T.push([R(),z?y:","]),z||T.push(j(M.getValue(),w)?[f,f]:A(U[q+1],x.Leading|x.Line)?f:b)},"elements"),S(T)}E.exports={printArray:re,printArrayItems:De,isConciselyPrintedArray:Z}}}),Bm=_e({"src/language-js/print/call-arguments.js"(m,E){Re();var{printDanglingComments:p}=Or(),{getLast:b,getPenultimate:D}=ye(),{getFunctionParameters:f,hasComment:d,CommentCheckFlags:h,isFunctionCompositionArgs:v,isJsxNode:S,isLongCurriedCallExpression:L,shouldPrintComma:_,getCallArguments:k,iterateCallArgumentsPath:A,isNextLineEmpty:x,isCallExpression:j,isStringLiteral:Q,isObjectProperty:te,isTSTypeExpression:$}=pr(),{builders:{line:X,hardline:G,softline:re,group:Z,indent:De,conditionalGroup:F,ifBreak:J,breakParent:w},utils:{willBreak:R}}=Fn(),{ArgExpansionBailout:y}=tn(),{isConciselyPrintedArray:T}=Io();function M(fe,ke,se){let Ue=fe.getValue(),me=Ue.type==="ImportExpression",ue=k(Ue);if(ue.length===0)return["(",p(fe,ke,!0),")"];if(ie(ue))return["(",se(["arguments",0]),", ",se(["arguments",1]),")"];let Ve=!1,nt=!1,Je=ue.length-1,ht=[];A(fe,($e,xe)=>{let Ye=$e.getNode(),Xe=[se()];xe===Je||(x(Ye,ke)?(xe===0&&(nt=!0),Ve=!0,Xe.push(",",G,G)):Xe.push(",",X)),ht.push(Xe)});let be=!(me||Ue.callee&&Ue.callee.type==="Import")&&_(ke,"all")?",":"";function Ie(){return Z(["(",De([X,...ht]),be,X,")"],{shouldBreak:!0})}if(Ve||fe.getParentNode().type!=="Decorator"&&v(ue))return Ie();let ft=z(ue),pt=U(ue,ke);if(ft||pt){if(ft?ht.slice(1).some(R):ht.slice(0,-1).some(R))return Ie();let $e=[];try{fe.try(()=>{A(fe,(xe,Ye)=>{ft&&Ye===0&&($e=[[se([],{expandFirstArg:!0}),ht.length>1?",":"",nt?G:X,nt?G:""],...ht.slice(1)]),pt&&Ye===Je&&($e=[...ht.slice(0,-1),se([],{expandLastArg:!0})])})})}catch(xe){if(xe instanceof y)return Ie();throw xe}return[ht.some(R)?w:"",F([["(",...$e,")"],ft?["(",Z($e[0],{shouldBreak:!0}),...$e.slice(1),")"]:["(",...ht.slice(0,-1),Z(b($e),{shouldBreak:!0}),")"],Ie()])]}let Jt=["(",De([re,...ht]),J(be),re,")"];return L(fe)?Jt:Z(Jt,{shouldBreak:ht.some(R)||Ve})}function q(fe){let ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return fe.type==="ObjectExpression"&&(fe.properties.length>0||d(fe))||fe.type==="ArrayExpression"&&(fe.elements.length>0||d(fe))||fe.type==="TSTypeAssertion"&&q(fe.expression)||$(fe)&&q(fe.expression)||fe.type==="FunctionExpression"||fe.type==="ArrowFunctionExpression"&&(!fe.returnType||!fe.returnType.typeAnnotation||fe.returnType.typeAnnotation.type!=="TSTypeReference"||ce(fe.body))&&(fe.body.type==="BlockStatement"||fe.body.type==="ArrowFunctionExpression"&&q(fe.body,!0)||fe.body.type==="ObjectExpression"||fe.body.type==="ArrayExpression"||!ke&&(j(fe.body)||fe.body.type==="ConditionalExpression")||S(fe.body))||fe.type==="DoExpression"||fe.type==="ModuleExpression"}function U(fe,ke){let se=b(fe),Ue=D(fe);return!d(se,h.Leading)&&!d(se,h.Trailing)&&q(se)&&(!Ue||Ue.type!==se.type)&&(fe.length!==2||Ue.type!=="ArrowFunctionExpression"||se.type!=="ArrayExpression")&&!(fe.length>1&&se.type==="ArrayExpression"&&T(se,ke))}function z(fe){if(fe.length!==2)return!1;let[ke,se]=fe;return ke.type==="ModuleExpression"&&ge(se)?!0:!d(ke)&&(ke.type==="FunctionExpression"||ke.type==="ArrowFunctionExpression"&&ke.body.type==="BlockStatement")&&se.type!=="FunctionExpression"&&se.type!=="ArrowFunctionExpression"&&se.type!=="ConditionalExpression"&&!q(se)}function ie(fe){return fe.length===2&&fe[0].type==="ArrowFunctionExpression"&&f(fe[0]).length===0&&fe[0].body.type==="BlockStatement"&&fe[1].type==="ArrayExpression"&&!fe.some(ke=>d(ke))}function ce(fe){return fe.type==="BlockStatement"&&(fe.body.some(ke=>ke.type!=="EmptyStatement")||d(fe,h.Dangling))}function ge(fe){return fe.type==="ObjectExpression"&&fe.properties.length===1&&te(fe.properties[0])&&fe.properties[0].key.type==="Identifier"&&fe.properties[0].key.name==="type"&&Q(fe.properties[0].value)&&fe.properties[0].value.value==="module"}E.exports=M}}),Mm=_e({"src/language-js/print/member.js"(m,E){Re();var{builders:{softline:p,group:b,indent:D,label:f}}=Fn(),{isNumericLiteral:d,isMemberExpression:h,isCallExpression:v}=pr(),{printOptionalToken:S}=wi();function L(k,A,x){let j=k.getValue(),Q=k.getParentNode(),te,$=0;do te=k.getParentNode($),$++;while(te&&(h(te)||te.type==="TSNonNullExpression"));let X=x("object"),G=_(k,A,x),re=te&&(te.type==="NewExpression"||te.type==="BindExpression"||te.type==="AssignmentExpression"&&te.left.type!=="Identifier")||j.computed||j.object.type==="Identifier"&&j.property.type==="Identifier"&&!h(Q)||(Q.type==="AssignmentExpression"||Q.type==="VariableDeclarator")&&(v(j.object)&&j.object.arguments.length>0||j.object.type==="TSNonNullExpression"&&v(j.object.expression)&&j.object.expression.arguments.length>0||X.label==="member-chain");return f(X.label==="member-chain"?"member-chain":"member",[X,re?G:b(D([p,G]))])}function _(k,A,x){let j=x("property"),Q=k.getValue(),te=S(k);return Q.computed?!Q.property||d(Q.property)?[te,"[",j,"]"]:b([te,"[",D([p,j]),p,"]"]):[te,".",j]}E.exports={printMemberExpression:L,printMemberLookup:_}}}),a2=_e({"src/language-js/print/member-chain.js"(m,E){Re();var{printComments:p}=Or(),{getLast:b,isNextLineEmptyAfterIndex:D,getNextNonSpaceNonCommentCharacterIndex:f}=ye(),d=Qa(),{isCallExpression:h,isMemberExpression:v,isFunctionOrArrowExpression:S,isLongCurriedCallExpression:L,isMemberish:_,isNumericLiteral:k,isSimpleCallArgument:A,hasComment:x,CommentCheckFlags:j,isNextLineEmpty:Q}=pr(),{locEnd:te}=ii(),{builders:{join:$,hardline:X,group:G,indent:re,conditionalGroup:Z,breakParent:De,label:F},utils:{willBreak:J}}=Fn(),w=Bm(),{printMemberLookup:R}=Mm(),{printOptionalToken:y,printFunctionTypeParameters:T,printBindExpressionCallee:M}=wi();function q(U,z,ie){let ce=U.getParentNode(),ge=!ce||ce.type==="ExpressionStatement",fe=[];function ke(ln){let{originalText:Dn}=z,ot=f(Dn,ln,te);return Dn.charAt(ot)===")"?ot!==!1&&D(Dn,ot+1):Q(ln,z)}function se(ln){let Dn=ln.getValue();h(Dn)&&(_(Dn.callee)||h(Dn.callee))?(fe.unshift({node:Dn,printed:[p(ln,[y(ln),T(ln,z,ie),w(ln,z,ie)],z),ke(Dn)?X:""]}),ln.call(ot=>se(ot),"callee")):_(Dn)?(fe.unshift({node:Dn,needsParens:d(ln,z),printed:p(ln,v(Dn)?R(ln,z,ie):M(ln,z,ie),z)}),ln.call(ot=>se(ot),"object")):Dn.type==="TSNonNullExpression"?(fe.unshift({node:Dn,printed:p(ln,"!",z)}),ln.call(ot=>se(ot),"expression")):fe.unshift({node:Dn,printed:ie()})}let Ue=U.getValue();fe.unshift({node:Ue,printed:[y(U),T(U,z,ie),w(U,z,ie)]}),Ue.callee&&U.call(ln=>se(ln),"callee");let me=[],ue=[fe[0]],Ve=1;for(;Ve<fe.length&&(fe[Ve].node.type==="TSNonNullExpression"||h(fe[Ve].node)||v(fe[Ve].node)&&fe[Ve].node.computed&&k(fe[Ve].node.property));++Ve)ue.push(fe[Ve]);if(!h(fe[0].node))for(;Ve+1<fe.length&&_(fe[Ve].node)&&_(fe[Ve+1].node);++Ve)ue.push(fe[Ve]);me.push(ue),ue=[];let nt=!1;for(;Ve<fe.length;++Ve){if(nt&&_(fe[Ve].node)){if(fe[Ve].node.computed&&k(fe[Ve].node.property)){ue.push(fe[Ve]);continue}me.push(ue),ue=[],nt=!1}(h(fe[Ve].node)||fe[Ve].node.type==="ImportExpression")&&(nt=!0),ue.push(fe[Ve]),x(fe[Ve].node,j.Trailing)&&(me.push(ue),ue=[],nt=!1)}ue.length>0&&me.push(ue);function Je(ln){return/^[A-Z]|^[$_]+$/.test(ln)}function ht(ln){return ln.length<=z.tabWidth}function be(ln){let Dn=ln[1].length>0&&ln[1][0].node.computed;if(ln[0].length===1){let Ee=ln[0][0].node;return Ee.type==="ThisExpression"||Ee.type==="Identifier"&&(Je(Ee.name)||ge&&ht(Ee.name)||Dn)}let ot=b(ln[0]).node;return v(ot)&&ot.property.type==="Identifier"&&(Je(ot.property.name)||Dn)}let Ie=me.length>=2&&!x(me[1][0].node)&&be(me);function ft(ln){let Dn=ln.map(ot=>ot.printed);return ln.length>0&&b(ln).needsParens?["(",...Dn,")"]:Dn}function pt(ln){return ln.length===0?"":re(G([X,$(X,ln.map(ft))]))}let Jt=me.map(ft),$e=Jt,xe=Ie?3:2,Ye=me.flat(),Xe=Ye.slice(1,-1).some(ln=>x(ln.node,j.Leading))||Ye.slice(0,-1).some(ln=>x(ln.node,j.Trailing))||me[xe]&&x(me[xe][0].node,j.Leading);if(me.length<=xe&&!Xe)return L(U)?$e:G($e);let vt=b(me[Ie?1:0]).node,Nt=!h(vt)&&ke(vt),Bt=[ft(me[0]),Ie?me.slice(1,2).map(ft):"",Nt?X:"",pt(me.slice(Ie?2:1))],cn=fe.map(ln=>{let{node:Dn}=ln;return Dn}).filter(h);function In(){let ln=b(b(me)).node,Dn=b(Jt);return h(ln)&&J(Dn)&&cn.slice(0,-1).some(ot=>ot.arguments.some(S))}let kn;return Xe||cn.length>2&&cn.some(ln=>!ln.arguments.every(Dn=>A(Dn,0)))||Jt.slice(0,-1).some(J)||In()?kn=G(Bt):kn=[J($e)||Nt?De:"",Z([$e,Bt])],F("member-chain",kn)}E.exports=q}}),Im=_e({"src/language-js/print/call-expression.js"(m,E){Re();var{builders:{join:p,group:b}}=Fn(),D=Qa(),{getCallArguments:f,hasFlowAnnotationComment:d,isCallExpression:h,isMemberish:v,isStringLiteral:S,isTemplateOnItsOwnLine:L,isTestCall:_,iterateCallArgumentsPath:k}=pr(),A=a2(),x=Bm(),{printOptionalToken:j,printFunctionTypeParameters:Q}=wi();function te(X,G,re){let Z=X.getValue(),De=X.getParentNode(),F=Z.type==="NewExpression",J=Z.type==="ImportExpression",w=j(X),R=f(Z);if(R.length>0&&(!J&&!F&&$(Z,De)||R.length===1&&L(R[0],G.originalText)||!F&&_(Z,De))){let M=[];return k(X,()=>{M.push(re())}),[F?"new ":"",re("callee"),w,Q(X,G,re),"(",p(", ",M),")"]}let y=(G.parser==="babel"||G.parser==="babel-flow")&&Z.callee&&Z.callee.type==="Identifier"&&d(Z.callee.trailingComments);if(y&&(Z.callee.trailingComments[0].printed=!0),!J&&!F&&v(Z.callee)&&!X.call(M=>D(M,G),"callee"))return A(X,G,re);let T=[F?"new ":"",J?"import":re("callee"),w,y?`/*:: ${Z.callee.trailingComments[0].value.slice(2).trim()} */`:"",Q(X,G,re),x(X,G,re)];return J||h(Z.callee)?b(T):T}function $(X,G){if(X.callee.type!=="Identifier")return!1;if(X.callee.name==="require")return!0;if(X.callee.name==="define"){let re=f(X);return G.type==="ExpressionStatement"&&(re.length===1||re.length===2&&re[0].type==="ArrayExpression"||re.length===3&&S(re[0])&&re[1].type==="ArrayExpression")}return!1}E.exports={printCallExpression:te}}}),Oo=_e({"src/language-js/print/assignment.js"(m,E){Re();var{isNonEmptyArray:p,getStringWidth:b}=ye(),{builders:{line:D,group:f,indent:d,indentIfBreak:h,lineSuffixBoundary:v},utils:{cleanDoc:S,willBreak:L,canBreak:_}}=Fn(),{hasLeadingOwnLineComment:k,isBinaryish:A,isStringLiteral:x,isLiteral:j,isNumericLiteral:Q,isCallExpression:te,isMemberExpression:$,getCallArguments:X,rawText:G,hasComment:re,isSignedNumericLiteral:Z,isObjectProperty:De}=pr(),{shouldInlineLogicalExpression:F}=Yf(),{printCallExpression:J}=Im();function w(be,Ie,ft,pt,Jt,$e){let xe=T(be,Ie,ft,pt,$e),Ye=ft($e,{assignmentLayout:xe});switch(xe){case"break-after-operator":return f([f(pt),Jt,f(d([D,Ye]))]);case"never-break-after-operator":return f([f(pt),Jt," ",Ye]);case"fluid":{let Xe=Symbol("assignment");return f([f(pt),Jt,f(d(D),{id:Xe}),v,h(Ye,{groupId:Xe})])}case"break-lhs":return f([pt,Jt," ",f(Ye)]);case"chain":return[f(pt),Jt,D,Ye];case"chain-tail":return[f(pt),Jt,d([D,Ye])];case"chain-tail-arrow-chain":return[f(pt),Jt,Ye];case"only-left":return pt}}function R(be,Ie,ft){let pt=be.getValue();return w(be,Ie,ft,ft("left"),[" ",pt.operator],"right")}function y(be,Ie,ft){return w(be,Ie,ft,ft("id")," =","init")}function T(be,Ie,ft,pt,Jt){let $e=be.getValue(),xe=$e[Jt];if(!xe)return"only-left";let Ye=!U(xe);if(be.match(U,z,vt=>!Ye||vt.type!=="ExpressionStatement"&&vt.type!=="VariableDeclaration"))return Ye?xe.type==="ArrowFunctionExpression"&&xe.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!Ye&&U(xe.right)||k(Ie.originalText,xe))return"break-after-operator";if(xe.type==="CallExpression"&&xe.callee.name==="require"||Ie.parser==="json5"||Ie.parser==="json")return"never-break-after-operator";if(q($e)||ie($e)||fe($e)||ke($e)&&_(pt))return"break-lhs";let Xe=nt($e,pt,Ie);return be.call(()=>M(be,Ie,ft,Xe),Jt)?"break-after-operator":Xe||xe.type==="TemplateLiteral"||xe.type==="TaggedTemplateExpression"||xe.type==="BooleanLiteral"||Q(xe)||xe.type==="ClassExpression"?"never-break-after-operator":"fluid"}function M(be,Ie,ft,pt){let Jt=be.getValue();if(A(Jt)&&!F(Jt))return!0;switch(Jt.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:Ye}=Jt;return A(Ye)&&!F(Ye)}case"ClassExpression":return p(Jt.decorators)}if(pt)return!1;let $e=Jt,xe=[];for(;;)if($e.type==="UnaryExpression")$e=$e.argument,xe.push("argument");else if($e.type==="TSNonNullExpression")$e=$e.expression,xe.push("expression");else break;return!!(x($e)||be.call(()=>me(be,Ie,ft),...xe))}function q(be){if(z(be)){let Ie=be.left||be.id;return Ie.type==="ObjectPattern"&&Ie.properties.length>2&&Ie.properties.some(ft=>De(ft)&&(!ft.shorthand||ft.value&&ft.value.type==="AssignmentPattern"))}return!1}function U(be){return be.type==="AssignmentExpression"}function z(be){return U(be)||be.type==="VariableDeclarator"}function ie(be){let Ie=ce(be);if(p(Ie)){let ft=be.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(Ie.length>1&&Ie.some(pt=>pt[ft]||pt.default))return!0}return!1}function ce(be){return ge(be)&&be.typeParameters&&be.typeParameters.params?be.typeParameters.params:null}function ge(be){return be.type==="TSTypeAliasDeclaration"||be.type==="TypeAlias"}function fe(be){if(be.type!=="VariableDeclarator")return!1;let{typeAnnotation:Ie}=be.id;if(!Ie||!Ie.typeAnnotation)return!1;let ft=se(Ie.typeAnnotation);return p(ft)&&ft.length>1&&ft.some(pt=>p(se(pt))||pt.type==="TSConditionalType")}function ke(be){return be.type==="VariableDeclarator"&&be.init&&be.init.type==="ArrowFunctionExpression"}function se(be){return Ue(be)&&be.typeParameters&&be.typeParameters.params?be.typeParameters.params:null}function Ue(be){return be.type==="TSTypeReference"||be.type==="GenericTypeAnnotation"}function me(be,Ie,ft){let pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Jt=be.getValue(),$e=()=>me(be,Ie,ft,!0);if(Jt.type==="TSNonNullExpression")return be.call($e,"expression");if(te(Jt)){if(J(be,Ie,ft).label==="member-chain")return!1;let xe=X(Jt);return!(xe.length===0||xe.length===1&&Ve(xe[0],Ie))||Je(Jt,ft)?!1:be.call($e,"callee")}return $(Jt)?be.call($e,"object"):pt&&(Jt.type==="Identifier"||Jt.type==="ThisExpression")}var ue=.25;function Ve(be,Ie){let{printWidth:ft}=Ie;if(re(be))return!1;let pt=ft*ue;if(be.type==="ThisExpression"||be.type==="Identifier"&&be.name.length<=pt||Z(be)&&!re(be.argument))return!0;let Jt=be.type==="Literal"&&"regex"in be&&be.regex.pattern||be.type==="RegExpLiteral"&&be.pattern;return Jt?Jt.length<=pt:x(be)?G(be).length<=pt:be.type==="TemplateLiteral"?be.expressions.length===0&&be.quasis[0].value.raw.length<=pt&&!be.quasis[0].value.raw.includes(`
208
- `):j(be)}function nt(be,Ie,ft){if(!De(be))return!1;Ie=S(Ie);let pt=3;return typeof Ie=="string"&&b(Ie)<ft.tabWidth+pt}function Je(be,Ie){let ft=ht(be);if(p(ft)){if(ft.length>1)return!0;if(ft.length===1){let Jt=ft[0];if(Jt.type==="TSUnionType"||Jt.type==="UnionTypeAnnotation"||Jt.type==="TSIntersectionType"||Jt.type==="IntersectionTypeAnnotation"||Jt.type==="TSTypeLiteral"||Jt.type==="ObjectTypeAnnotation")return!0}let pt=be.typeParameters?"typeParameters":"typeArguments";if(L(Ie(pt)))return!0}return!1}function ht(be){return be.typeParameters&&be.typeParameters.params||be.typeArguments&&be.typeArguments.params}E.exports={printVariableDeclarator:y,printAssignmentExpression:R,printAssignment:w,isArrowFunctionVariableDeclarator:ke}}}),dl=_e({"src/language-js/print/function-parameters.js"(m,E){Re();var{getNextNonSpaceNonCommentCharacter:p}=ye(),{printDanglingComments:b}=Or(),{builders:{line:D,hardline:f,softline:d,group:h,indent:v,ifBreak:S},utils:{removeLines:L,willBreak:_}}=Fn(),{getFunctionParameters:k,iterateFunctionParametersPath:A,isSimpleType:x,isTestCall:j,isTypeAnnotationAFunction:Q,isObjectType:te,isObjectTypePropertyAFunction:$,hasRestParameter:X,shouldPrintComma:G,hasComment:re,isNextLineEmpty:Z}=pr(),{locEnd:De}=ii(),{ArgExpansionBailout:F}=tn(),{printFunctionTypeParameters:J}=wi();function w(M,q,U,z,ie){let ce=M.getValue(),ge=k(ce),fe=ie?J(M,U,q):"";if(ge.length===0)return[fe,"(",b(M,U,!0,Ve=>p(U.originalText,Ve,De)===")"),")"];let ke=M.getParentNode(),se=j(ke),Ue=R(ce),me=[];if(A(M,(Ve,nt)=>{let Je=nt===ge.length-1;Je&&ce.rest&&me.push("..."),me.push(q()),!Je&&(me.push(","),se||Ue?me.push(" "):Z(ge[nt],U)?me.push(f,f):me.push(D))}),z){if(_(fe)||_(me))throw new F;return h([L(fe),"(",L(me),")"])}let ue=ge.every(Ve=>!Ve.decorators);return Ue&&ue?[fe,"(",...me,")"]:se?[fe,"(",...me,")"]:($(ke)||Q(ke)||ke.type==="TypeAlias"||ke.type==="UnionTypeAnnotation"||ke.type==="TSUnionType"||ke.type==="IntersectionTypeAnnotation"||ke.type==="FunctionTypeAnnotation"&&ke.returnType===ce)&&ge.length===1&&ge[0].name===null&&ce.this!==ge[0]&&ge[0].typeAnnotation&&ce.typeParameters===null&&x(ge[0].typeAnnotation)&&!ce.rest?U.arrowParens==="always"?["(",...me,")"]:me:[fe,"(",v([d,...me]),S(!X(ce)&&G(U,"all")?",":""),d,")"]}function R(M){if(!M)return!1;let q=k(M);if(q.length!==1)return!1;let[U]=q;return!re(U)&&(U.type==="ObjectPattern"||U.type==="ArrayPattern"||U.type==="Identifier"&&U.typeAnnotation&&(U.typeAnnotation.type==="TypeAnnotation"||U.typeAnnotation.type==="TSTypeAnnotation")&&te(U.typeAnnotation.typeAnnotation)||U.type==="FunctionTypeParam"&&te(U.typeAnnotation)||U.type==="AssignmentPattern"&&(U.left.type==="ObjectPattern"||U.left.type==="ArrayPattern")&&(U.right.type==="Identifier"||U.right.type==="ObjectExpression"&&U.right.properties.length===0||U.right.type==="ArrayExpression"&&U.right.elements.length===0))}function y(M){let q;return M.returnType?(q=M.returnType,q.typeAnnotation&&(q=q.typeAnnotation)):M.typeAnnotation&&(q=M.typeAnnotation),q}function T(M,q){let U=y(M);if(!U)return!1;let z=M.typeParameters&&M.typeParameters.params;if(z){if(z.length>1)return!1;if(z.length===1){let ie=z[0];if(ie.constraint||ie.default)return!1}}return k(M).length===1&&(te(U)||_(q))}E.exports={printFunctionParameters:w,shouldHugFunctionParameters:R,shouldGroupFunctionParameters:T}}}),hl=_e({"src/language-js/print/type-annotation.js"(m,E){Re();var{printComments:p,printDanglingComments:b}=Or(),{isNonEmptyArray:D}=ye(),{builders:{group:f,join:d,line:h,softline:v,indent:S,align:L,ifBreak:_}}=Fn(),k=Qa(),{locStart:A}=ii(),{isSimpleType:x,isObjectType:j,hasLeadingOwnLineComment:Q,isObjectTypePropertyAFunction:te,shouldPrintComma:$}=pr(),{printAssignment:X}=Oo(),{printFunctionParameters:G,shouldGroupFunctionParameters:re}=dl(),{printArrayItems:Z}=Io();function De(U){if(x(U)||j(U))return!0;if(U.type==="UnionTypeAnnotation"||U.type==="TSUnionType"){let z=U.types.filter(ce=>ce.type==="VoidTypeAnnotation"||ce.type==="TSVoidKeyword"||ce.type==="NullLiteralTypeAnnotation"||ce.type==="TSNullKeyword").length,ie=U.types.some(ce=>ce.type==="ObjectTypeAnnotation"||ce.type==="TSTypeLiteral"||ce.type==="GenericTypeAnnotation"||ce.type==="TSTypeReference");if(U.types.length-1===z&&ie)return!0}return!1}function F(U,z,ie){let ce=z.semi?";":"",ge=U.getValue(),fe=[];return fe.push("opaque type ",ie("id"),ie("typeParameters")),ge.supertype&&fe.push(": ",ie("supertype")),ge.impltype&&fe.push(" = ",ie("impltype")),fe.push(ce),fe}function J(U,z,ie){let ce=z.semi?";":"",ge=U.getValue(),fe=[];ge.declare&&fe.push("declare "),fe.push("type ",ie("id"),ie("typeParameters"));let ke=ge.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[X(U,z,ie,fe," =",ke),ce]}function w(U,z,ie){let ce=U.getValue(),ge=U.map(ie,"types"),fe=[],ke=!1;for(let se=0;se<ge.length;++se)se===0?fe.push(ge[se]):j(ce.types[se-1])&&j(ce.types[se])?fe.push([" & ",ke?S(ge[se]):ge[se]]):!j(ce.types[se-1])&&!j(ce.types[se])?fe.push(S([" &",h,ge[se]])):(se>1&&(ke=!0),fe.push(" & ",se>1?S(ge[se]):ge[se]));return f(fe)}function R(U,z,ie){let ce=U.getValue(),ge=U.getParentNode(),fe=ge.type!=="TypeParameterInstantiation"&&ge.type!=="TSTypeParameterInstantiation"&&ge.type!=="GenericTypeAnnotation"&&ge.type!=="TSTypeReference"&&ge.type!=="TSTypeAssertion"&&ge.type!=="TupleTypeAnnotation"&&ge.type!=="TSTupleType"&&!(ge.type==="FunctionTypeParam"&&!ge.name&&U.getParentNode(1).this!==ge)&&!((ge.type==="TypeAlias"||ge.type==="VariableDeclarator"||ge.type==="TSTypeAliasDeclaration")&&Q(z.originalText,ce)),ke=De(ce),se=U.map(ue=>{let Ve=ie();return ke||(Ve=L(2,Ve)),p(ue,Ve,z)},"types");if(ke)return d(" | ",se);let Ue=fe&&!Q(z.originalText,ce),me=[_([Ue?h:"","| "]),d([h,"| "],se)];return k(U,z)?f([S(me),v]):ge.type==="TupleTypeAnnotation"&&ge.types.length>1||ge.type==="TSTupleType"&&ge.elementTypes.length>1?f([S([_(["(",v]),me]),v,_(")")]):f(fe?S(me):me)}function y(U,z,ie){let ce=U.getValue(),ge=[],fe=U.getParentNode(0),ke=U.getParentNode(1),se=U.getParentNode(2),Ue=ce.type==="TSFunctionType"||!((fe.type==="ObjectTypeProperty"||fe.type==="ObjectTypeInternalSlot")&&!fe.variance&&!fe.optional&&A(fe)===A(ce)||fe.type==="ObjectTypeCallProperty"||se&&se.type==="DeclareFunction"),me=Ue&&(fe.type==="TypeAnnotation"||fe.type==="TSTypeAnnotation"),ue=me&&Ue&&(fe.type==="TypeAnnotation"||fe.type==="TSTypeAnnotation")&&ke.type==="ArrowFunctionExpression";te(fe)&&(Ue=!0,me=!0),ue&&ge.push("(");let Ve=G(U,ie,z,!1,!0),nt=ce.returnType||ce.predicate||ce.typeAnnotation?[Ue?" => ":": ",ie("returnType"),ie("predicate"),ie("typeAnnotation")]:"",Je=re(ce,nt);return ge.push(Je?f(Ve):Ve),nt&&ge.push(nt),ue&&ge.push(")"),f(ge)}function T(U,z,ie){let ce=U.getValue(),ge=ce.type==="TSTupleType"?"elementTypes":"types",fe=ce[ge],ke=D(fe),se=ke?v:"";return f(["[",S([se,Z(U,z,ge,ie)]),_(ke&&$(z,"all")?",":""),b(U,z,!0),se,"]"])}function M(U,z,ie){let ce=U.getValue(),ge=ce.type==="OptionalIndexedAccessType"&&ce.optional?"?.[":"[";return[ie("objectType"),ge,ie("indexType"),"]"]}function q(U,z,ie){let ce=U.getValue();return[ce.postfix?"":ie,z("typeAnnotation"),ce.postfix?ie:""]}E.exports={printOpaqueType:F,printTypeAlias:J,printIntersectionType:w,printUnionType:R,printFunctionType:y,printTupleType:T,printIndexedAccessType:M,shouldHugType:De,printJSDocType:q}}}),ml=_e({"src/language-js/print/type-parameters.js"(m,E){Re();var{printDanglingComments:p}=Or(),{builders:{join:b,line:D,hardline:f,softline:d,group:h,indent:v,ifBreak:S}}=Fn(),{isTestCall:L,hasComment:_,CommentCheckFlags:k,isTSXFile:A,shouldPrintComma:x,getFunctionParameters:j,isObjectType:Q,getTypeScriptMappedTypeModifier:te}=pr(),{createGroupIdMapper:$}=ye(),{shouldHugType:X}=hl(),{isArrowFunctionVariableDeclarator:G}=Oo(),re=$("typeParameters");function Z(J,w,R,y){let T=J.getValue();if(!T[y])return"";if(!Array.isArray(T[y]))return R(y);let M=J.getNode(2),q=M&&L(M),U=J.match(ie=>!(ie[y].length===1&&Q(ie[y][0])),void 0,(ie,ce)=>ce==="typeAnnotation",ie=>ie.type==="Identifier",G);if(T[y].length===0||!U&&(q||T[y].length===1&&(T[y][0].type==="NullableTypeAnnotation"||X(T[y][0]))))return["<",b(", ",J.map(R,y)),De(J,w),">"];let z=T.type==="TSTypeParameterInstantiation"?"":j(T).length===1&&A(w)&&!T[y][0].constraint&&J.getParentNode().type==="ArrowFunctionExpression"?",":x(w,"all")?S(","):"";return h(["<",v([d,b([",",D],J.map(R,y))]),z,d,">"],{id:re(T)})}function De(J,w){let R=J.getValue();if(!_(R,k.Dangling))return"";let y=!_(R,k.Line),T=p(J,w,y);return y?T:[T,f]}function F(J,w,R){let y=J.getValue(),T=[y.type==="TSTypeParameter"&&y.const?"const ":""],M=J.getParentNode();return M.type==="TSMappedType"?(M.readonly&&T.push(te(M.readonly,"readonly")," "),T.push("[",R("name")),y.constraint&&T.push(" in ",R("constraint")),M.nameType&&T.push(" as ",J.callParent(()=>R("nameType"))),T.push("]"),T):(y.variance&&T.push(R("variance")),y.in&&T.push("in "),y.out&&T.push("out "),T.push(R("name")),y.bound&&T.push(": ",R("bound")),y.constraint&&T.push(" extends ",R("constraint")),y.default&&T.push(" = ",R("default")),T)}E.exports={printTypeParameter:F,printTypeParameters:Z,getTypeParametersGroupId:re}}}),jo=_e({"src/language-js/print/property.js"(m,E){Re();var{printComments:p}=Or(),{printString:b,printNumber:D}=ye(),{isNumericLiteral:f,isSimpleNumber:d,isStringLiteral:h,isStringPropSafeToUnquote:v,rawText:S}=pr(),{printAssignment:L}=Oo(),_=new WeakMap;function k(x,j,Q){let te=x.getNode();if(te.computed)return["[",Q("key"),"]"];let $=x.getParentNode(),{key:X}=te;if(j.quoteProps==="consistent"&&!_.has($)){let G=($.properties||$.body||$.members).some(re=>!re.computed&&re.key&&h(re.key)&&!v(re,j));_.set($,G)}if((X.type==="Identifier"||f(X)&&d(D(S(X)))&&String(X.value)===D(S(X))&&!(j.parser==="typescript"||j.parser==="babel-ts"))&&(j.parser==="json"||j.quoteProps==="consistent"&&_.get($))){let G=b(JSON.stringify(X.type==="Identifier"?X.name:X.value.toString()),j);return x.call(re=>p(re,G,j),"key")}return v(te,j)&&(j.quoteProps==="as-needed"||j.quoteProps==="consistent"&&!_.get($))?x.call(G=>p(G,/^\d/.test(X.value)?D(X.value):X.value,j),"key"):Q("key")}function A(x,j,Q){return x.getValue().shorthand?Q("value"):L(x,j,Q,k(x,j,Q),":","value")}E.exports={printProperty:A,printPropertyKey:k}}}),gl=_e({"src/language-js/print/function.js"(m,E){Re();var p=Mo(),{printDanglingComments:b,printCommentsSeparately:D}=Or(),f=Vr(),{getNextNonSpaceNonCommentCharacterIndex:d}=ye(),{builders:{line:h,softline:v,group:S,indent:L,ifBreak:_,hardline:k,join:A,indentIfBreak:x},utils:{removeLines:j,willBreak:Q}}=Fn(),{ArgExpansionBailout:te}=tn(),{getFunctionParameters:$,hasLeadingOwnLineComment:X,isFlowAnnotationComment:G,isJsxNode:re,isTemplateOnItsOwnLine:Z,shouldPrintComma:De,startsWithNoLookaheadToken:F,isBinaryish:J,isLineComment:w,hasComment:R,getComments:y,CommentCheckFlags:T,isCallLikeExpression:M,isCallExpression:q,getCallArguments:U,hasNakedLeftSide:z,getLeftSide:ie}=pr(),{locEnd:ce}=ii(),{printFunctionParameters:ge,shouldGroupFunctionParameters:fe}=dl(),{printPropertyKey:ke}=jo(),{printFunctionTypeParameters:se}=wi();function Ue(xe,Ye,Xe,vt){let Nt=xe.getValue(),Bt=!1;if((Nt.type==="FunctionDeclaration"||Nt.type==="FunctionExpression")&&vt&&vt.expandLastArg){let Dn=xe.getParentNode();q(Dn)&&U(Dn).length>1&&(Bt=!0)}let cn=[];Nt.type==="TSDeclareFunction"&&Nt.declare&&cn.push("declare "),Nt.async&&cn.push("async "),Nt.generator?cn.push("function* "):cn.push("function "),Nt.id&&cn.push(Ye("id"));let In=ge(xe,Ye,Xe,Bt),kn=Ie(xe,Ye,Xe),ln=fe(Nt,kn);return cn.push(se(xe,Xe,Ye),S([ln?S(In):In,kn]),Nt.body?" ":"",Ye("body")),Xe.semi&&(Nt.declare||!Nt.body)&&cn.push(";"),cn}function me(xe,Ye,Xe){let vt=xe.getNode(),{kind:Nt}=vt,Bt=vt.value||vt,cn=[];return!Nt||Nt==="init"||Nt==="method"||Nt==="constructor"?Bt.async&&cn.push("async "):(p.ok(Nt==="get"||Nt==="set"),cn.push(Nt," ")),Bt.generator&&cn.push("*"),cn.push(ke(xe,Ye,Xe),vt.optional||vt.key.optional?"?":""),vt===Bt?cn.push(ue(xe,Ye,Xe)):Bt.type==="FunctionExpression"?cn.push(xe.call(In=>ue(In,Ye,Xe),"value")):cn.push(Xe("value")),cn}function ue(xe,Ye,Xe){let vt=xe.getNode(),Nt=ge(xe,Xe,Ye),Bt=Ie(xe,Xe,Ye),cn=fe(vt,Bt),In=[se(xe,Ye,Xe),S([cn?S(Nt):Nt,Bt])];return vt.body?In.push(" ",Xe("body")):In.push(Ye.semi?";":""),In}function Ve(xe,Ye,Xe,vt){let Nt=xe.getValue(),Bt=[];if(Nt.async&&Bt.push("async "),be(xe,Ye))Bt.push(Xe(["params",0]));else{let In=vt&&(vt.expandLastArg||vt.expandFirstArg),kn=Ie(xe,Xe,Ye);if(In){if(Q(kn))throw new te;kn=S(j(kn))}Bt.push(S([ge(xe,Xe,Ye,In,!0),kn]))}let cn=b(xe,Ye,!0,In=>{let kn=d(Ye.originalText,In,ce);return kn!==!1&&Ye.originalText.slice(kn,kn+2)==="=>"});return cn&&Bt.push(" ",cn),Bt}function nt(xe,Ye,Xe,vt,Nt,Bt){let cn=xe.getName(),In=xe.getParentNode(),kn=M(In)&&cn==="callee",ln=!!(Ye&&Ye.assignmentLayout),Dn=Bt.body.type!=="BlockStatement"&&Bt.body.type!=="ObjectExpression"&&Bt.body.type!=="SequenceExpression",ot=kn&&Dn||Ye&&Ye.assignmentLayout==="chain-tail-arrow-chain",Ee=Symbol("arrow-chain");return Bt.body.type==="SequenceExpression"&&(Nt=S(["(",L([v,Nt]),v,")"])),S([S(L([kn||ln?v:"",S(A([" =>",h],Xe),{shouldBreak:vt})]),{id:Ee,shouldBreak:ot})," =>",x(Dn?L([h,Nt]):[" ",Nt],{groupId:Ee}),kn?_(v,"",{groupId:Ee}):""])}function Je(xe,Ye,Xe,vt){let Nt=xe.getValue(),Bt=[],cn=[],In=!1;if(function Ee(){let dt=Ve(xe,Ye,Xe,vt);if(Bt.length===0)Bt.push(dt);else{let{leading:Oe,trailing:ct}=D(xe,Ye);Bt.push([Oe,dt]),cn.unshift(ct)}In=In||Nt.returnType&&$(Nt).length>0||Nt.typeParameters||$(Nt).some(Oe=>Oe.type!=="Identifier"),Nt.body.type!=="ArrowFunctionExpression"||vt&&vt.expandLastArg?cn.unshift(Xe("body",vt)):(Nt=Nt.body,xe.call(Ee,"body"))}(),Bt.length>1)return nt(xe,vt,Bt,In,cn,Nt);let kn=Bt;if(kn.push(" =>"),!X(Ye.originalText,Nt.body)&&(Nt.body.type==="ArrayExpression"||Nt.body.type==="ObjectExpression"||Nt.body.type==="BlockStatement"||re(Nt.body)||Z(Nt.body,Ye.originalText)||Nt.body.type==="ArrowFunctionExpression"||Nt.body.type==="DoExpression"))return S([...kn," ",cn]);if(Nt.body.type==="SequenceExpression")return S([...kn,S([" (",L([v,cn]),v,")"])]);let ln=(vt&&vt.expandLastArg||xe.getParentNode().type==="JSXExpressionContainer")&&!R(Nt),Dn=vt&&vt.expandLastArg&&De(Ye,"all"),ot=Nt.body.type==="ConditionalExpression"&&!F(Nt.body,Ee=>Ee.type==="ObjectExpression");return S([...kn,S([L([h,ot?_("","("):"",cn,ot?_("",")"):""]),ln?[_(Dn?",":""),v]:""])])}function ht(xe){let Ye=$(xe);return Ye.length===1&&!xe.typeParameters&&!R(xe,T.Dangling)&&Ye[0].type==="Identifier"&&!Ye[0].typeAnnotation&&!R(Ye[0])&&!Ye[0].optional&&!xe.predicate&&!xe.returnType}function be(xe,Ye){if(Ye.arrowParens==="always")return!1;if(Ye.arrowParens==="avoid"){let Xe=xe.getValue();return ht(Xe)}return!1}function Ie(xe,Ye,Xe){let vt=xe.getValue(),Nt=Ye("returnType");if(vt.returnType&&G(Xe.originalText,vt.returnType))return[" /*: ",Nt," */"];let Bt=[Nt];return vt.returnType&&vt.returnType.typeAnnotation&&Bt.unshift(": "),vt.predicate&&Bt.push(vt.returnType?" ":": ",Ye("predicate")),Bt}function ft(xe,Ye,Xe){let vt=xe.getValue(),Nt=Ye.semi?";":"",Bt=[];vt.argument&&($e(Ye,vt.argument)?Bt.push([" (",L([k,Xe("argument")]),k,")"]):J(vt.argument)||vt.argument.type==="SequenceExpression"?Bt.push(S([_(" ("," "),L([v,Xe("argument")]),v,_(")")])):Bt.push(" ",Xe("argument")));let cn=y(vt),In=f(cn),kn=In&&w(In);return kn&&Bt.push(Nt),R(vt,T.Dangling)&&Bt.push(" ",b(xe,Ye,!0)),kn||Bt.push(Nt),Bt}function pt(xe,Ye,Xe){return["return",ft(xe,Ye,Xe)]}function Jt(xe,Ye,Xe){return["throw",ft(xe,Ye,Xe)]}function $e(xe,Ye){if(X(xe.originalText,Ye))return!0;if(z(Ye)){let Xe=Ye,vt;for(;vt=ie(Xe);)if(Xe=vt,X(xe.originalText,Xe))return!0}return!1}E.exports={printFunction:Ue,printArrowFunction:Je,printMethod:me,printReturnStatement:pt,printThrowStatement:Jt,printMethodInternal:ue,shouldPrintParamsWithoutParens:be}}}),Hf=_e({"src/language-js/print/decorators.js"(m,E){Re();var{isNonEmptyArray:p,hasNewline:b}=ye(),{builders:{line:D,hardline:f,join:d,breakParent:h,group:v}}=Fn(),{locStart:S,locEnd:L}=ii(),{getParentExportDeclaration:_}=pr();function k(te,$,X){let G=te.getValue();return v([d(D,te.map(X,"decorators")),j(G,$)?f:D])}function A(te,$,X){return[d(f,te.map(X,"declaration","decorators")),f]}function x(te,$,X){let G=te.getValue(),{decorators:re}=G;if(!p(re)||Q(te.getParentNode()))return;let Z=G.type==="ClassExpression"||G.type==="ClassDeclaration"||j(G,$);return[_(te)?f:Z?h:"",d(D,te.map(X,"decorators")),D]}function j(te,$){return te.decorators.some(X=>b($.originalText,L(X)))}function Q(te){if(te.type!=="ExportDefaultDeclaration"&&te.type!=="ExportNamedDeclaration"&&te.type!=="DeclareExportDeclaration")return!1;let $=te.declaration&&te.declaration.decorators;return p($)&&S(te)===S($[0])}E.exports={printDecorators:x,printClassMemberDecorators:k,printDecoratorsBeforeExport:A,hasDecoratorsBeforeExport:Q}}}),Ro=_e({"src/language-js/print/class.js"(m,E){Re();var{isNonEmptyArray:p,createGroupIdMapper:b}=ye(),{printComments:D,printDanglingComments:f}=Or(),{builders:{join:d,line:h,hardline:v,softline:S,group:L,indent:_,ifBreak:k}}=Fn(),{hasComment:A,CommentCheckFlags:x}=pr(),{getTypeParametersGroupId:j}=ml(),{printMethod:Q}=gl(),{printOptionalToken:te,printTypeAnnotation:$,printDefiniteToken:X}=wi(),{printPropertyKey:G}=jo(),{printAssignment:re}=Oo(),{printClassMemberDecorators:Z}=Hf();function De(U,z,ie){let ce=U.getValue(),ge=[];ce.declare&&ge.push("declare "),ce.abstract&&ge.push("abstract "),ge.push("class");let fe=ce.id&&A(ce.id,x.Trailing)||ce.typeParameters&&A(ce.typeParameters,x.Trailing)||ce.superClass&&A(ce.superClass)||p(ce.extends)||p(ce.mixins)||p(ce.implements),ke=[],se=[];if(ce.id&&ke.push(" ",ie("id")),ke.push(ie("typeParameters")),ce.superClass){let Ue=[T(U,z,ie),ie("superTypeParameters")],me=U.call(ue=>["extends ",D(ue,Ue,z)],"superClass");fe?se.push(h,L(me)):se.push(" ",me)}else se.push(y(U,z,ie,"extends"));if(se.push(y(U,z,ie,"mixins"),y(U,z,ie,"implements")),fe){let Ue;R(ce)?Ue=[...ke,_(se)]:Ue=_([...ke,se]),ge.push(L(Ue,{id:F(ce)}))}else ge.push(...ke,...se);return ge.push(" ",ie("body")),ge}var F=b("heritageGroup");function J(U){return k(v,"",{groupId:F(U)})}function w(U){return["superClass","extends","mixins","implements"].filter(z=>!!U[z]).length>1}function R(U){return U.typeParameters&&!A(U.typeParameters,x.Trailing|x.Line)&&!w(U)}function y(U,z,ie,ce){let ge=U.getValue();if(!p(ge[ce]))return"";let fe=f(U,z,!0,ke=>{let{marker:se}=ke;return se===ce});return[R(ge)?k(" ",h,{groupId:j(ge.typeParameters)}):h,fe,fe&&v,ce,L(_([h,d([",",h],U.map(ie,ce))]))]}function T(U,z,ie){let ce=ie("superClass");return U.getParentNode().type==="AssignmentExpression"?L(k(["(",_([S,ce]),S,")"],ce)):ce}function M(U,z,ie){let ce=U.getValue(),ge=[];return p(ce.decorators)&&ge.push(Z(U,z,ie)),ce.accessibility&&ge.push(ce.accessibility+" "),ce.readonly&&ge.push("readonly "),ce.declare&&ge.push("declare "),ce.static&&ge.push("static "),(ce.type==="TSAbstractMethodDefinition"||ce.abstract)&&ge.push("abstract "),ce.override&&ge.push("override "),ge.push(Q(U,z,ie)),ge}function q(U,z,ie){let ce=U.getValue(),ge=[],fe=z.semi?";":"";return p(ce.decorators)&&ge.push(Z(U,z,ie)),ce.accessibility&&ge.push(ce.accessibility+" "),ce.declare&&ge.push("declare "),ce.static&&ge.push("static "),(ce.type==="TSAbstractPropertyDefinition"||ce.type==="TSAbstractAccessorProperty"||ce.abstract)&&ge.push("abstract "),ce.override&&ge.push("override "),ce.readonly&&ge.push("readonly "),ce.variance&&ge.push(ie("variance")),(ce.type==="ClassAccessorProperty"||ce.type==="AccessorProperty"||ce.type==="TSAbstractAccessorProperty")&&ge.push("accessor "),ge.push(G(U,z,ie),te(U),X(U),$(U,z,ie)),[re(U,z,ie,ge," =","value"),fe]}E.exports={printClass:De,printClassMethod:M,printClassProperty:q,printHardlineAfterHeritage:J}}}),Om=_e({"src/language-js/print/interface.js"(m,E){Re();var{isNonEmptyArray:p}=ye(),{builders:{join:b,line:D,group:f,indent:d,ifBreak:h}}=Fn(),{hasComment:v,identity:S,CommentCheckFlags:L}=pr(),{getTypeParametersGroupId:_}=ml(),{printTypeScriptModifiers:k}=wi();function A(x,j,Q){let te=x.getValue(),$=[];te.declare&&$.push("declare "),te.type==="TSInterfaceDeclaration"&&$.push(te.abstract?"abstract ":"",k(x,j,Q)),$.push("interface");let X=[],G=[];te.type!=="InterfaceTypeAnnotation"&&X.push(" ",Q("id"),Q("typeParameters"));let re=te.typeParameters&&!v(te.typeParameters,L.Trailing|L.Line);return p(te.extends)&&G.push(re?h(" ",D,{groupId:_(te.typeParameters)}):D,"extends ",(te.extends.length===1?S:d)(b([",",D],x.map(Q,"extends")))),te.id&&v(te.id,L.Trailing)||p(te.extends)?re?$.push(f([...X,d(G)])):$.push(f(d([...X,...G]))):$.push(...X,...G),$.push(" ",Q("body")),f($)}E.exports={printInterface:A}}}),jm=_e({"src/language-js/print/module.js"(m,E){Re();var{isNonEmptyArray:p}=ye(),{builders:{softline:b,group:D,indent:f,join:d,line:h,ifBreak:v,hardline:S}}=Fn(),{printDanglingComments:L}=Or(),{hasComment:_,CommentCheckFlags:k,shouldPrintComma:A,needsHardlineAfterDanglingComment:x,isStringLiteral:j,rawText:Q}=pr(),{locStart:te,hasSameLoc:$}=ii(),{hasDecoratorsBeforeExport:X,printDecoratorsBeforeExport:G}=Hf();function re(q,U,z){let ie=q.getValue(),ce=U.semi?";":"",ge=[],{importKind:fe}=ie;return ge.push("import"),fe&&fe!=="value"&&ge.push(" ",fe),ge.push(w(q,U,z),J(q,U,z),y(q,U,z),ce),ge}function Z(q,U,z){let ie=q.getValue(),ce=[];X(ie)&&ce.push(G(q,U,z));let{type:ge,exportKind:fe,declaration:ke}=ie;return ce.push("export"),(ie.default||ge==="ExportDefaultDeclaration")&&ce.push(" default"),_(ie,k.Dangling)&&(ce.push(" ",L(q,U,!0)),x(ie)&&ce.push(S)),ke?ce.push(" ",z("declaration")):ce.push(fe==="type"?" type":"",w(q,U,z),J(q,U,z),y(q,U,z)),F(ie,U)&&ce.push(";"),ce}function De(q,U,z){let ie=q.getValue(),ce=U.semi?";":"",ge=[],{exportKind:fe,exported:ke}=ie;return ge.push("export"),fe==="type"&&ge.push(" type"),ge.push(" *"),ke&&ge.push(" as ",z("exported")),ge.push(J(q,U,z),y(q,U,z),ce),ge}function F(q,U){if(!U.semi)return!1;let{type:z,declaration:ie}=q,ce=q.default||z==="ExportDefaultDeclaration";if(!ie)return!0;let{type:ge}=ie;return!!(ce&&ge!=="ClassDeclaration"&&ge!=="FunctionDeclaration"&&ge!=="TSInterfaceDeclaration"&&ge!=="DeclareClass"&&ge!=="DeclareFunction"&&ge!=="TSDeclareFunction"&&ge!=="EnumDeclaration")}function J(q,U,z){let ie=q.getValue();if(!ie.source)return"";let ce=[];return R(ie,U)||ce.push(" from"),ce.push(" ",z("source")),ce}function w(q,U,z){let ie=q.getValue();if(R(ie,U))return"";let ce=[" "];if(p(ie.specifiers)){let ge=[],fe=[];q.each(()=>{let ke=q.getValue().type;if(ke==="ExportNamespaceSpecifier"||ke==="ExportDefaultSpecifier"||ke==="ImportNamespaceSpecifier"||ke==="ImportDefaultSpecifier")ge.push(z());else if(ke==="ExportSpecifier"||ke==="ImportSpecifier")fe.push(z());else throw new Error(`Unknown specifier type ${JSON.stringify(ke)}`)},"specifiers"),ce.push(d(", ",ge)),fe.length>0&&(ge.length>0&&ce.push(", "),fe.length>1||ge.length>0||ie.specifiers.some(ke=>_(ke))?ce.push(D(["{",f([U.bracketSpacing?h:b,d([",",h],fe)]),v(A(U)?",":""),U.bracketSpacing?h:b,"}"])):ce.push(["{",U.bracketSpacing?" ":"",...fe,U.bracketSpacing?" ":"","}"]))}else ce.push("{}");return ce}function R(q,U){let{type:z,importKind:ie,source:ce,specifiers:ge}=q;return z!=="ImportDeclaration"||p(ge)||ie==="type"?!1:!/{\s*}/.test(U.originalText.slice(te(q),te(ce)))}function y(q,U,z){let ie=q.getNode();return p(ie.assertions)?[" assert {",U.bracketSpacing?" ":"",d(", ",q.map(z,"assertions")),U.bracketSpacing?" ":"","}"]:""}function T(q,U,z){let ie=q.getNode(),{type:ce}=ie,ge=[],fe=ce==="ImportSpecifier"?ie.importKind:ie.exportKind;fe&&fe!=="value"&&ge.push(fe," ");let ke=ce.startsWith("Import"),se=ke?"imported":"local",Ue=ke?"local":"exported",me=ie[se],ue=ie[Ue],Ve="",nt="";return ce==="ExportNamespaceSpecifier"||ce==="ImportNamespaceSpecifier"?Ve="*":me&&(Ve=z(se)),ue&&!M(ie)&&(nt=z(Ue)),ge.push(Ve,Ve&&nt?" as ":"",nt),ge}function M(q){if(q.type!=="ImportSpecifier"&&q.type!=="ExportSpecifier")return!1;let{local:U,[q.type==="ImportSpecifier"?"imported":"exported"]:z}=q;if(U.type!==z.type||!$(U,z))return!1;if(j(U))return U.value===z.value&&Q(U)===Q(z);switch(U.type){case"Identifier":return U.name===z.name;default:return!1}}E.exports={printImportDeclaration:re,printExportDeclaration:Z,printExportAllDeclaration:De,printModuleSpecifier:T}}}),zf=_e({"src/language-js/print/object.js"(m,E){Re();var{printDanglingComments:p}=Or(),{builders:{line:b,softline:D,group:f,indent:d,ifBreak:h,hardline:v}}=Fn(),{getLast:S,hasNewlineInRange:L,hasNewline:_,isNonEmptyArray:k}=ye(),{shouldPrintComma:A,hasComment:x,getComments:j,CommentCheckFlags:Q,isNextLineEmpty:te}=pr(),{locStart:$,locEnd:X}=ii(),{printOptionalToken:G,printTypeAnnotation:re}=wi(),{shouldHugFunctionParameters:Z}=dl(),{shouldHugType:De}=hl(),{printHardlineAfterHeritage:F}=Ro();function J(w,R,y){let T=R.semi?";":"",M=w.getValue(),q;M.type==="TSTypeLiteral"?q="members":M.type==="TSInterfaceBody"?q="body":q="properties";let U=M.type==="ObjectTypeAnnotation",z=[q];U&&z.push("indexers","callProperties","internalSlots");let ie=z.map(be=>M[be][0]).sort((be,Ie)=>$(be)-$(Ie))[0],ce=w.getParentNode(0),ge=U&&ce&&(ce.type==="InterfaceDeclaration"||ce.type==="DeclareInterface"||ce.type==="DeclareClass")&&w.getName()==="body",fe=M.type==="TSInterfaceBody"||ge||M.type==="ObjectPattern"&&ce.type!=="FunctionDeclaration"&&ce.type!=="FunctionExpression"&&ce.type!=="ArrowFunctionExpression"&&ce.type!=="ObjectMethod"&&ce.type!=="ClassMethod"&&ce.type!=="ClassPrivateMethod"&&ce.type!=="AssignmentPattern"&&ce.type!=="CatchClause"&&M.properties.some(be=>be.value&&(be.value.type==="ObjectPattern"||be.value.type==="ArrayPattern"))||M.type!=="ObjectPattern"&&ie&&L(R.originalText,$(M),$(ie)),ke=ge?";":M.type==="TSInterfaceBody"||M.type==="TSTypeLiteral"?h(T,";"):",",se=M.type==="RecordExpression"?"#{":M.exact?"{|":"{",Ue=M.exact?"|}":"}",me=[];for(let be of z)w.each(Ie=>{let ft=Ie.getValue();me.push({node:ft,printed:y(),loc:$(ft)})},be);z.length>1&&me.sort((be,Ie)=>be.loc-Ie.loc);let ue=[],Ve=me.map(be=>{let Ie=[...ue,f(be.printed)];return ue=[ke,b],(be.node.type==="TSPropertySignature"||be.node.type==="TSMethodSignature"||be.node.type==="TSConstructSignatureDeclaration")&&x(be.node,Q.PrettierIgnore)&&ue.shift(),te(be.node,R)&&ue.push(v),Ie});if(M.inexact){let be;if(x(M,Q.Dangling)){let Ie=x(M,Q.Line);be=[p(w,R,!0),Ie||_(R.originalText,X(S(j(M))))?v:b,"..."]}else be=["..."];Ve.push([...ue,...be])}let nt=S(M[q]),Je=!(M.inexact||nt&&nt.type==="RestElement"||nt&&(nt.type==="TSPropertySignature"||nt.type==="TSCallSignatureDeclaration"||nt.type==="TSMethodSignature"||nt.type==="TSConstructSignatureDeclaration")&&x(nt,Q.PrettierIgnore)),ht;if(Ve.length===0){if(!x(M,Q.Dangling))return[se,Ue,re(w,R,y)];ht=f([se,p(w,R),D,Ue,G(w),re(w,R,y)])}else ht=[ge&&k(M.properties)?F(ce):"",se,d([R.bracketSpacing?b:D,...Ve]),h(Je&&(ke!==","||A(R))?ke:""),R.bracketSpacing?b:D,Ue,G(w),re(w,R,y)];return w.match(be=>be.type==="ObjectPattern"&&!be.decorators,(be,Ie,ft)=>Z(be)&&(Ie==="params"||Ie==="parameters"||Ie==="this"||Ie==="rest")&&ft===0)||w.match(De,(be,Ie)=>Ie==="typeAnnotation",(be,Ie)=>Ie==="typeAnnotation",(be,Ie,ft)=>Z(be)&&(Ie==="params"||Ie==="parameters"||Ie==="this"||Ie==="rest")&&ft===0)||!fe&&w.match(be=>be.type==="ObjectPattern",be=>be.type==="AssignmentExpression"||be.type==="VariableDeclarator")?ht:f(ht,{shouldBreak:fe})}E.exports={printObject:J}}}),o2=_e({"src/language-js/print/flow.js"(m,E){Re();var p=Mo(),{printDanglingComments:b}=Or(),{printString:D,printNumber:f}=ye(),{builders:{hardline:d,softline:h,group:v,indent:S}}=Fn(),{getParentExportDeclaration:L,isFunctionNotation:_,isGetterOrSetter:k,rawText:A,shouldPrintComma:x}=pr(),{locStart:j,locEnd:Q}=ii(),{replaceTextEndOfLine:te}=ea(),{printClass:$}=Ro(),{printOpaqueType:X,printTypeAlias:G,printIntersectionType:re,printUnionType:Z,printFunctionType:De,printTupleType:F,printIndexedAccessType:J}=hl(),{printInterface:w}=Om(),{printTypeParameter:R,printTypeParameters:y}=ml(),{printExportDeclaration:T,printExportAllDeclaration:M}=jm(),{printArrayItems:q}=Io(),{printObject:U}=zf(),{printPropertyKey:z}=jo(),{printOptionalToken:ie,printTypeAnnotation:ce,printRestSpread:ge}=wi();function fe(se,Ue,me){let ue=se.getValue(),Ve=Ue.semi?";":"",nt=[];switch(ue.type){case"DeclareClass":return ke(se,$(se,Ue,me));case"DeclareFunction":return ke(se,["function ",me("id"),ue.predicate?" ":"",me("predicate"),Ve]);case"DeclareModule":return ke(se,["module ",me("id")," ",me("body")]);case"DeclareModuleExports":return ke(se,["module.exports",": ",me("typeAnnotation"),Ve]);case"DeclareVariable":return ke(se,["var ",me("id"),Ve]);case"DeclareOpaqueType":return ke(se,X(se,Ue,me));case"DeclareInterface":return ke(se,w(se,Ue,me));case"DeclareTypeAlias":return ke(se,G(se,Ue,me));case"DeclareExportDeclaration":return ke(se,T(se,Ue,me));case"DeclareExportAllDeclaration":return ke(se,M(se,Ue,me));case"OpaqueType":return X(se,Ue,me);case"TypeAlias":return G(se,Ue,me);case"IntersectionTypeAnnotation":return re(se,Ue,me);case"UnionTypeAnnotation":return Z(se,Ue,me);case"FunctionTypeAnnotation":return De(se,Ue,me);case"TupleTypeAnnotation":return F(se,Ue,me);case"GenericTypeAnnotation":return[me("id"),y(se,Ue,me,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return J(se,Ue,me);case"TypeAnnotation":return me("typeAnnotation");case"TypeParameter":return R(se,Ue,me);case"TypeofTypeAnnotation":return["typeof ",me("argument")];case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[me("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(ue.value);case"EnumDeclaration":return["enum ",me("id")," ",me("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":{if(ue.type==="EnumSymbolBody"||ue.explicitType){let Je=null;switch(ue.type){case"EnumBooleanBody":Je="boolean";break;case"EnumNumberBody":Je="number";break;case"EnumStringBody":Je="string";break;case"EnumSymbolBody":Je="symbol";break}nt.push("of ",Je," ")}if(ue.members.length===0&&!ue.hasUnknownMembers)nt.push(v(["{",b(se,Ue),h,"}"]));else{let Je=ue.members.length>0?[d,q(se,Ue,"members",me),ue.hasUnknownMembers||x(Ue)?",":""]:[];nt.push(v(["{",S([...Je,...ue.hasUnknownMembers?[d,"..."]:[]]),b(se,Ue,!0),d,"}"]))}return nt}case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[me("id")," = ",typeof ue.init=="object"?me("init"):String(ue.init)];case"EnumDefaultedMember":return me("id");case"FunctionTypeParam":{let Je=ue.name?me("name"):se.getParentNode().this===ue?"this":"";return[Je,ie(se),Je?": ":"",me("typeAnnotation")]}case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return w(se,Ue,me);case"ClassImplements":case"InterfaceExtends":return[me("id"),me("typeParameters")];case"NullableTypeAnnotation":return["?",me("typeAnnotation")];case"Variance":{let{kind:Je}=ue;return p.ok(Je==="plus"||Je==="minus"),Je==="plus"?"+":"-"}case"ObjectTypeCallProperty":return ue.static&&nt.push("static "),nt.push(me("value")),nt;case"ObjectTypeIndexer":return[ue.static?"static ":"",ue.variance?me("variance"):"","[",me("id"),ue.id?": ":"",me("key"),"]: ",me("value")];case"ObjectTypeProperty":{let Je="";return ue.proto?Je="proto ":ue.static&&(Je="static "),[Je,k(ue)?ue.kind+" ":"",ue.variance?me("variance"):"",z(se,Ue,me),ie(se),_(ue)?"":": ",me("value")]}case"ObjectTypeAnnotation":return U(se,Ue,me);case"ObjectTypeInternalSlot":return[ue.static?"static ":"","[[",me("id"),"]]",ie(se),ue.method?"":": ",me("value")];case"ObjectTypeSpreadProperty":return ge(se,Ue,me);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[me("qualification"),".",me("id")];case"StringLiteralTypeAnnotation":return te(D(A(ue),Ue));case"NumberLiteralTypeAnnotation":p.strictEqual(typeof ue.value,"number");case"BigIntLiteralTypeAnnotation":return ue.extra?f(ue.extra.raw):f(ue.raw);case"TypeCastExpression":return["(",me("expression"),ce(se,Ue,me),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":{let Je=y(se,Ue,me,"params");if(Ue.parser==="flow"){let ht=j(ue),be=Q(ue),Ie=Ue.originalText.lastIndexOf("/*",ht),ft=Ue.originalText.indexOf("*/",be);if(Ie!==-1&&ft!==-1){let pt=Ue.originalText.slice(Ie+2,ft).trim();if(pt.startsWith("::")&&!pt.includes("/*")&&!pt.includes("*/"))return["/*:: ",Je," */"]}}return Je}case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",me("value"),")"];case"AnyTypeAnnotation":return"any";case"BooleanTypeAnnotation":return"boolean";case"BigIntTypeAnnotation":return"bigint";case"NullLiteralTypeAnnotation":return"null";case"NumberTypeAnnotation":return"number";case"SymbolTypeAnnotation":return"symbol";case"StringTypeAnnotation":return"string";case"VoidTypeAnnotation":return"void";case"ThisTypeAnnotation":return"this";case"Node":case"Printable":case"SourceLocation":case"Position":case"Statement":case"Function":case"Pattern":case"Expression":case"Declaration":case"Specifier":case"NamedSpecifier":case"Comment":case"MemberTypeAnnotation":case"Type":throw new Error("unprintable type: "+JSON.stringify(ue.type))}}function ke(se,Ue){let me=L(se);return me?(p.strictEqual(me.type,"DeclareExportDeclaration"),Ue):["declare ",Ue]}E.exports={printFlow:fe}}}),u2=_e({"src/language-js/utils/is-ts-keyword-type.js"(m,E){Re();function p(b){let{type:D}=b;return D.startsWith("TS")&&D.endsWith("Keyword")}E.exports=p}}),Rm=_e({"src/language-js/print/ternary.js"(m,E){Re();var{hasNewlineInRange:p}=ye(),{isJsxNode:b,getComments:D,isCallExpression:f,isMemberExpression:d,isTSTypeExpression:h}=pr(),{locStart:v,locEnd:S}=ii(),L=ra(),{builders:{line:_,softline:k,group:A,indent:x,align:j,ifBreak:Q,dedent:te,breakParent:$}}=Fn();function X(F){let J=[F];for(let w=0;w<J.length;w++){let R=J[w];for(let y of["test","consequent","alternate"]){let T=R[y];if(b(T))return!0;T.type==="ConditionalExpression"&&J.push(T)}}return!1}function G(F,J,w){let R=F.getValue(),y=R.type==="ConditionalExpression",T=y?"alternate":"falseType",M=F.getParentNode(),q=y?w("test"):[w("checkType")," ","extends"," ",w("extendsType")];return M.type===R.type&&M[T]===R?j(2,q):q}var re=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]);function Z(F){let J=F.getValue();if(J.type!=="ConditionalExpression")return!1;let w,R=J;for(let y=0;!w;y++){let T=F.getParentNode(y);if(f(T)&&T.callee===R||d(T)&&T.object===R||T.type==="TSNonNullExpression"&&T.expression===R){R=T;continue}T.type==="NewExpression"&&T.callee===R||h(T)&&T.expression===R?(w=F.getParentNode(y+1),R=T):w=T}return R===J?!1:w[re.get(w.type)]===R}function De(F,J,w){let R=F.getValue(),y=R.type==="ConditionalExpression",T=y?"consequent":"trueType",M=y?"alternate":"falseType",q=y?["test"]:["checkType","extendsType"],U=R[T],z=R[M],ie=[],ce=!1,ge=F.getParentNode(),fe=ge.type===R.type&&q.some(ft=>ge[ft]===R),ke=ge.type===R.type&&!fe,se,Ue,me=0;do Ue=se||R,se=F.getParentNode(me),me++;while(se&&se.type===R.type&&q.every(ft=>se[ft]!==Ue));let ue=se||ge,Ve=Ue;if(y&&(b(R[q[0]])||b(U)||b(z)||X(Ve))){ce=!0,ke=!0;let ft=Jt=>[Q("("),x([k,Jt]),k,Q(")")],pt=Jt=>Jt.type==="NullLiteral"||Jt.type==="Literal"&&Jt.value===null||Jt.type==="Identifier"&&Jt.name==="undefined";ie.push(" ? ",pt(U)?w(T):ft(w(T))," : ",z.type===R.type||pt(z)?w(M):ft(w(M)))}else{let ft=[_,"? ",U.type===R.type?Q("","("):"",j(2,w(T)),U.type===R.type?Q("",")"):"",_,": ",z.type===R.type?w(M):j(2,w(M))];ie.push(ge.type!==R.type||ge[M]===R||fe?ft:J.useTabs?te(x(ft)):j(Math.max(0,J.tabWidth-2),ft))}let nt=[...q.map(ft=>D(R[ft])),D(U),D(z)].flat().some(ft=>L(ft)&&p(J.originalText,v(ft),S(ft))),Je=ft=>ge===ue?A(ft,{shouldBreak:nt}):nt?[ft,$]:ft,ht=!ce&&(d(ge)||ge.type==="NGPipeExpression"&&ge.left===R)&&!ge.computed,be=Z(F),Ie=Je([G(F,J,w),ke?ie:x(ie),y&&ht&&!be?k:""]);return fe||be?A([x([k,Ie]),k]):Ie}E.exports={printTernary:De}}}),$m=_e({"src/language-js/print/statement.js"(m,E){Re();var{builders:{hardline:p}}=Fn(),b=Qa(),{getLeftSidePathName:D,hasNakedLeftSide:f,isJsxNode:d,isTheOnlyJsxElementInMarkdown:h,hasComment:v,CommentCheckFlags:S,isNextLineEmpty:L}=pr(),{shouldPrintParamsWithoutParens:_}=gl();function k(G,re,Z,De){let F=G.getValue(),J=[],w=F.type==="ClassBody",R=A(F[De]);return G.each((y,T,M)=>{let q=y.getValue();if(q.type==="EmptyStatement")return;let U=Z();!re.semi&&!w&&!h(re,y)&&x(y,re)?v(q,S.Leading)?J.push(Z([],{needsSemi:!0})):J.push(";",U):J.push(U),!re.semi&&w&&$(q)&&X(q,M[T+1])&&J.push(";"),q!==R&&(J.push(p),L(q,re)&&J.push(p))},De),J}function A(G){for(let re=G.length-1;re>=0;re--){let Z=G[re];if(Z.type!=="EmptyStatement")return Z}}function x(G,re){return G.getNode().type!=="ExpressionStatement"?!1:G.call(Z=>j(Z,re),"expression")}function j(G,re){let Z=G.getValue();switch(Z.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":{if(!_(G,re))return!0;break}case"UnaryExpression":{let{prefix:De,operator:F}=Z;if(De&&(F==="+"||F==="-"))return!0;break}case"BindExpression":{if(!Z.object)return!0;break}case"Literal":{if(Z.regex)return!0;break}default:if(d(Z))return!0}return b(G,re)?!0:f(Z)?G.call(De=>j(De,re),...D(G,Z)):!1}function Q(G,re,Z){return k(G,re,Z,"body")}function te(G,re,Z){return k(G,re,Z,"consequent")}var $=G=>{let{type:re}=G;return re==="ClassProperty"||re==="PropertyDefinition"||re==="ClassPrivateProperty"||re==="ClassAccessorProperty"||re==="AccessorProperty"||re==="TSAbstractPropertyDefinition"||re==="TSAbstractAccessorProperty"};function X(G,re){let{type:Z,name:De}=G.key;if(!G.computed&&Z==="Identifier"&&(De==="static"||De==="get"||De==="set"||De==="accessor")&&!G.value&&!G.typeAnnotation)return!0;if(!re||re.static||re.accessibility)return!1;if(!re.computed){let F=re.key&&re.key.name;if(F==="in"||F==="instanceof")return!0}if($(re)&&re.variance&&!re.static&&!re.declare)return!0;switch(re.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return re.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((re.value?re.value.async:re.async)||re.kind==="get"||re.kind==="set")return!1;let F=re.value?re.value.generator:re.generator;return!!(re.computed||F)}case"TSIndexSignature":return!0}return!1}E.exports={printBody:Q,printSwitchCaseConsequent:te}}}),Vm=_e({"src/language-js/print/block.js"(m,E){Re();var{printDanglingComments:p}=Or(),{isNonEmptyArray:b}=ye(),{builders:{hardline:D,indent:f}}=Fn(),{hasComment:d,CommentCheckFlags:h,isNextLineEmpty:v}=pr(),{printHardlineAfterHeritage:S}=Ro(),{printBody:L}=$m();function _(A,x,j){let Q=A.getValue(),te=[];if(Q.type==="StaticBlock"&&te.push("static "),Q.type==="ClassBody"&&b(Q.body)){let X=A.getParentNode();te.push(S(X))}te.push("{");let $=k(A,x,j);if($)te.push(f([D,$]),D);else{let X=A.getParentNode(),G=A.getParentNode(1);X.type==="ArrowFunctionExpression"||X.type==="FunctionExpression"||X.type==="FunctionDeclaration"||X.type==="ObjectMethod"||X.type==="ClassMethod"||X.type==="ClassPrivateMethod"||X.type==="ForStatement"||X.type==="WhileStatement"||X.type==="DoWhileStatement"||X.type==="DoExpression"||X.type==="CatchClause"&&!G.finalizer||X.type==="TSModuleDeclaration"||X.type==="TSDeclareFunction"||Q.type==="StaticBlock"||Q.type==="ClassBody"||te.push(D)}return te.push("}"),te}function k(A,x,j){let Q=A.getValue(),te=b(Q.directives),$=Q.body.some(re=>re.type!=="EmptyStatement"),X=d(Q,h.Dangling);if(!te&&!$&&!X)return"";let G=[];if(te&&A.each((re,Z,De)=>{G.push(j()),(Z<De.length-1||$||X)&&(G.push(D),v(re.getValue(),x)&&G.push(D))},"directives"),$&&G.push(L(A,x,j)),X&&G.push(p(A,x,!0)),Q.type==="Program"){let re=A.getParentNode();(!re||re.type!=="ModuleExpression")&&G.push(D)}return G}E.exports={printBlock:_,printBlockBody:k}}}),l2=_e({"src/language-js/print/typescript.js"(m,E){Re();var{printDanglingComments:p}=Or(),{hasNewlineInRange:b}=ye(),{builders:{join:D,line:f,hardline:d,softline:h,group:v,indent:S,conditionalGroup:L,ifBreak:_}}=Fn(),{isStringLiteral:k,getTypeScriptMappedTypeModifier:A,shouldPrintComma:x,isCallExpression:j,isMemberExpression:Q}=pr(),te=u2(),{locStart:$,locEnd:X}=ii(),{printOptionalToken:G,printTypeScriptModifiers:re}=wi(),{printTernary:Z}=Rm(),{printFunctionParameters:De,shouldGroupFunctionParameters:F}=dl(),{printTemplateLiteral:J}=za(),{printArrayItems:w}=Io(),{printObject:R}=zf(),{printClassProperty:y,printClassMethod:T}=Ro(),{printTypeParameter:M,printTypeParameters:q}=ml(),{printPropertyKey:U}=jo(),{printFunction:z,printMethodInternal:ie}=gl(),{printInterface:ce}=Om(),{printBlock:ge}=Vm(),{printTypeAlias:fe,printIntersectionType:ke,printUnionType:se,printFunctionType:Ue,printTupleType:me,printIndexedAccessType:ue,printJSDocType:Ve}=hl();function nt(Je,ht,be){let Ie=Je.getValue();if(!Ie.type.startsWith("TS"))return;if(te(Ie))return Ie.type.slice(2,-7).toLowerCase();let ft=ht.semi?";":"",pt=[];switch(Ie.type){case"TSThisType":return"this";case"TSTypeAssertion":{let Jt=!(Ie.expression.type==="ArrayExpression"||Ie.expression.type==="ObjectExpression"),$e=v(["<",S([h,be("typeAnnotation")]),h,">"]),xe=[_("("),S([h,be("expression")]),h,_(")")];return Jt?L([[$e,be("expression")],[$e,v(xe,{shouldBreak:!0})],[$e,be("expression")]]):v([$e,be("expression")])}case"TSDeclareFunction":return z(Je,be,ht);case"TSExportAssignment":return["export = ",be("expression"),ft];case"TSModuleBlock":return ge(Je,ht,be);case"TSInterfaceBody":case"TSTypeLiteral":return R(Je,ht,be);case"TSTypeAliasDeclaration":return fe(Je,ht,be);case"TSQualifiedName":return D(".",[be("left"),be("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return T(Je,ht,be);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return y(Je,ht,be);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return pt.push(be("expression")),Ie.typeParameters&&pt.push(be("typeParameters")),pt;case"TSTemplateLiteralType":return J(Je,be,ht);case"TSNamedTupleMember":return[be("label"),Ie.optional?"?":"",": ",be("elementType")];case"TSRestType":return["...",be("typeAnnotation")];case"TSOptionalType":return[be("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return ce(Je,ht,be);case"TSClassImplements":return[be("expression"),be("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return q(Je,ht,be,"params");case"TSTypeParameter":return M(Je,ht,be);case"TSSatisfiesExpression":case"TSAsExpression":{let Jt=Ie.type==="TSAsExpression"?"as":"satisfies";pt.push(be("expression"),` ${Jt} `,be("typeAnnotation"));let $e=Je.getParentNode();return j($e)&&$e.callee===Ie||Q($e)&&$e.object===Ie?v([S([h,...pt]),h]):pt}case"TSArrayType":return[be("elementType"),"[]"];case"TSPropertySignature":return Ie.readonly&&pt.push("readonly "),pt.push(U(Je,ht,be),G(Je)),Ie.typeAnnotation&&pt.push(": ",be("typeAnnotation")),Ie.initializer&&pt.push(" = ",be("initializer")),pt;case"TSParameterProperty":return Ie.accessibility&&pt.push(Ie.accessibility+" "),Ie.export&&pt.push("export "),Ie.static&&pt.push("static "),Ie.override&&pt.push("override "),Ie.readonly&&pt.push("readonly "),pt.push(be("parameter")),pt;case"TSTypeQuery":return["typeof ",be("exprName"),be("typeParameters")];case"TSIndexSignature":{let Jt=Je.getParentNode(),$e=Ie.parameters.length>1?_(x(ht)?",":""):"",xe=v([S([h,D([", ",h],Je.map(be,"parameters"))]),$e,h]);return[Ie.export?"export ":"",Ie.accessibility?[Ie.accessibility," "]:"",Ie.static?"static ":"",Ie.readonly?"readonly ":"",Ie.declare?"declare ":"","[",Ie.parameters?xe:"",Ie.typeAnnotation?"]: ":"]",Ie.typeAnnotation?be("typeAnnotation"):"",Jt.type==="ClassBody"?ft:""]}case"TSTypePredicate":return[Ie.asserts?"asserts ":"",be("parameterName"),Ie.typeAnnotation?[" is ",be("typeAnnotation")]:""];case"TSNonNullExpression":return[be("expression"),"!"];case"TSImportType":return[Ie.isTypeOf?"typeof ":"","import(",be(Ie.parameter?"parameter":"argument"),")",Ie.qualifier?[".",be("qualifier")]:"",q(Je,ht,be,"typeParameters")];case"TSLiteralType":return be("literal");case"TSIndexedAccessType":return ue(Je,ht,be);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":{if(Ie.type==="TSConstructorType"&&Ie.abstract&&pt.push("abstract "),Ie.type!=="TSCallSignatureDeclaration"&&pt.push("new "),pt.push(v(De(Je,be,ht,!1,!0))),Ie.returnType||Ie.typeAnnotation){let Jt=Ie.type==="TSConstructorType";pt.push(Jt?" => ":": ",be("returnType"),be("typeAnnotation"))}return pt}case"TSTypeOperator":return[Ie.operator," ",be("typeAnnotation")];case"TSMappedType":{let Jt=b(ht.originalText,$(Ie),X(Ie));return v(["{",S([ht.bracketSpacing?f:h,be("typeParameter"),Ie.optional?A(Ie.optional,"?"):"",Ie.typeAnnotation?": ":"",be("typeAnnotation"),_(ft)]),p(Je,ht,!0),ht.bracketSpacing?f:h,"}"],{shouldBreak:Jt})}case"TSMethodSignature":{let Jt=Ie.kind&&Ie.kind!=="method"?`${Ie.kind} `:"";pt.push(Ie.accessibility?[Ie.accessibility," "]:"",Jt,Ie.export?"export ":"",Ie.static?"static ":"",Ie.readonly?"readonly ":"",Ie.abstract?"abstract ":"",Ie.declare?"declare ":"",Ie.computed?"[":"",be("key"),Ie.computed?"]":"",G(Je));let $e=De(Je,be,ht,!1,!0),xe=Ie.returnType?"returnType":"typeAnnotation",Ye=Ie[xe],Xe=Ye?be(xe):"",vt=F(Ie,Xe);return pt.push(vt?v($e):$e),Ye&&pt.push(": ",v(Xe)),v(pt)}case"TSNamespaceExportDeclaration":return pt.push("export as namespace ",be("id")),ht.semi&&pt.push(";"),v(pt);case"TSEnumDeclaration":return Ie.declare&&pt.push("declare "),Ie.modifiers&&pt.push(re(Je,ht,be)),Ie.const&&pt.push("const "),pt.push("enum ",be("id")," "),Ie.members.length===0?pt.push(v(["{",p(Je,ht),h,"}"])):pt.push(v(["{",S([d,w(Je,ht,"members",be),x(ht,"es5")?",":""]),p(Je,ht,!0),d,"}"])),pt;case"TSEnumMember":return Ie.computed?pt.push("[",be("id"),"]"):pt.push(be("id")),Ie.initializer&&pt.push(" = ",be("initializer")),pt;case"TSImportEqualsDeclaration":return Ie.isExport&&pt.push("export "),pt.push("import "),Ie.importKind&&Ie.importKind!=="value"&&pt.push(Ie.importKind," "),pt.push(be("id")," = ",be("moduleReference")),ht.semi&&pt.push(";"),v(pt);case"TSExternalModuleReference":return["require(",be("expression"),")"];case"TSModuleDeclaration":{let Jt=Je.getParentNode(),$e=k(Ie.id),xe=Jt.type==="TSModuleDeclaration",Ye=Ie.body&&Ie.body.type==="TSModuleDeclaration";if(xe)pt.push(".");else{Ie.declare&&pt.push("declare "),pt.push(re(Je,ht,be));let Xe=ht.originalText.slice($(Ie),$(Ie.id));Ie.id.type==="Identifier"&&Ie.id.name==="global"&&!/namespace|module/.test(Xe)||pt.push($e||/(?:^|\s)module(?:\s|$)/.test(Xe)?"module ":"namespace ")}return pt.push(be("id")),Ye?pt.push(be("body")):Ie.body?pt.push(" ",v(be("body"))):pt.push(ft),pt}case"TSConditionalType":return Z(Je,ht,be);case"TSInferType":return["infer"," ",be("typeParameter")];case"TSIntersectionType":return ke(Je,ht,be);case"TSUnionType":return se(Je,ht,be);case"TSFunctionType":return Ue(Je,ht,be);case"TSTupleType":return me(Je,ht,be);case"TSTypeReference":return[be("typeName"),q(Je,ht,be,"typeParameters")];case"TSTypeAnnotation":return be("typeAnnotation");case"TSEmptyBodyFunctionExpression":return ie(Je,ht,be);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Ve(Je,be,"?");case"TSJSDocNonNullableType":return Ve(Je,be,"!");case"TSInstantiationExpression":return[be("expression"),be("typeParameters")];default:throw new Error(`Unknown TypeScript node type: ${JSON.stringify(Ie.type)}.`)}}E.exports={printTypescript:nt}}}),c2=_e({"src/language-js/print/comment.js"(m,E){Re();var{hasNewline:p}=ye(),{builders:{join:b,hardline:D},utils:{replaceTextEndOfLine:f}}=Fn(),{isLineComment:d}=pr(),{locStart:h,locEnd:v}=ii(),S=ra();function L(A,x){let j=A.getValue();if(d(j))return x.originalText.slice(h(j),v(j)).trimEnd();if(S(j)){if(_(j)){let $=k(j);return j.trailing&&!p(x.originalText,h(j),{backwards:!0})?[D,$]:$}let Q=v(j),te=x.originalText.slice(Q-3,Q)==="*-/";return["/*",f(j.value),te?"*-/":"*/"]}throw new Error("Not a comment: "+JSON.stringify(j))}function _(A){let x=`*${A.value}*`.split(`
209
- `);return x.length>1&&x.every(j=>j.trim()[0]==="*")}function k(A){let x=A.value.split(`
210
- `);return["/*",b(D,x.map((j,Q)=>Q===0?j.trimEnd():" "+(Q<x.length-1?j.trim():j.trimStart()))),"*/"]}E.exports={printComment:L}}}),f2=_e({"src/language-js/print/literal.js"(m,E){Re();var{printString:p,printNumber:b}=ye(),{replaceTextEndOfLine:D}=ea(),{printDirective:f}=wi();function d(L,_){let k=L.getNode();switch(k.type){case"RegExpLiteral":return S(k);case"BigIntLiteral":return v(k.bigint||k.extra.raw);case"NumericLiteral":return b(k.extra.raw);case"StringLiteral":return D(p(k.extra.raw,_));case"NullLiteral":return"null";case"BooleanLiteral":return String(k.value);case"DecimalLiteral":return b(k.value)+"m";case"Literal":{if(k.regex)return S(k.regex);if(k.bigint)return v(k.raw);if(k.decimal)return b(k.decimal)+"m";let{value:A}=k;return typeof A=="number"?b(k.raw):typeof A=="string"?h(L)?f(k.raw,_):D(p(k.raw,_)):String(A)}}}function h(L){if(L.getName()!=="expression")return;let _=L.getParentNode();return _.type==="ExpressionStatement"&&_.directive}function v(L){return L.toLowerCase()}function S(L){let{pattern:_,flags:k}=L;return k=[...k].sort().join(""),`/${_}/${k}`}E.exports={printLiteral:d}}}),p2=_e({"src/language-js/printer-estree.js"(m,E){Re();var{printDanglingComments:p}=Or(),{hasNewline:b}=ye(),{builders:{join:D,line:f,hardline:d,softline:h,group:v,indent:S},utils:{replaceTextEndOfLine:L}}=Fn(),_=Yv(),k=Hv(),{insertPragma:A}=km(),x=Lm(),j=Qa(),Q=Pm(),{hasFlowShorthandAnnotationComment:te,hasComment:$,CommentCheckFlags:X,isTheOnlyJsxElementInMarkdown:G,isLineComment:re,isNextLineEmpty:Z,needsHardlineAfterDanglingComment:De,hasIgnoreComment:F,isCallExpression:J,isMemberExpression:w,markerForIfWithoutBlockAndSameLineComment:R}=pr(),{locStart:y,locEnd:T}=ii(),M=ra(),{printHtmlBinding:q,isVueEventBindingExpression:U}=r2(),{printAngular:z}=i2(),{printJsx:ie,hasJsxIgnoreComment:ce}=s2(),{printFlow:ge}=o2(),{printTypescript:fe}=l2(),{printOptionalToken:ke,printBindExpressionCallee:se,printTypeAnnotation:Ue,adjustClause:me,printRestSpread:ue,printDefiniteToken:Ve,printDirective:nt}=wi(),{printImportDeclaration:Je,printExportDeclaration:ht,printExportAllDeclaration:be,printModuleSpecifier:Ie}=jm(),{printTernary:ft}=Rm(),{printTemplateLiteral:pt}=za(),{printArray:Jt}=Io(),{printObject:$e}=zf(),{printClass:xe,printClassMethod:Ye,printClassProperty:Xe}=Ro(),{printProperty:vt}=jo(),{printFunction:Nt,printArrowFunction:Bt,printMethod:cn,printReturnStatement:In,printThrowStatement:kn}=gl(),{printCallExpression:ln}=Im(),{printVariableDeclarator:Dn,printAssignmentExpression:ot}=Oo(),{printBinaryishExpression:Ee}=Yf(),{printSwitchCaseConsequent:dt}=$m(),{printMemberExpression:Oe}=Mm(),{printBlock:ct,printBlockBody:Zt}=Vm(),{printComment:Ut}=c2(),{printLiteral:yt}=f2(),{printDecorators:V}=Hf();function Le($t,un,Mt,Cr){let sn=rt($t,un,Mt,Cr);if(!sn)return"";let br=$t.getValue(),{type:nn}=br;if(nn==="ClassMethod"||nn==="ClassPrivateMethod"||nn==="ClassProperty"||nn==="ClassAccessorProperty"||nn==="AccessorProperty"||nn==="TSAbstractAccessorProperty"||nn==="PropertyDefinition"||nn==="TSAbstractPropertyDefinition"||nn==="ClassPrivateProperty"||nn==="MethodDefinition"||nn==="TSAbstractMethodDefinition"||nn==="TSDeclareMethod")return sn;let An=[sn],Bn=V($t,un,Mt),ar=br.type==="ClassExpression"&&Bn;if(Bn&&(An=[...Bn,sn],!ar))return v(An);if(!j($t,un))return Cr&&Cr.needsSemi&&An.unshift(";"),An.length===1&&An[0]===sn?sn:An;if(ar&&(An=[S([f,...An])]),An.unshift("("),Cr&&Cr.needsSemi&&An.unshift(";"),te(br)){let[an]=br.trailingComments;An.push(" /*",an.value.trimStart(),"*/"),an.printed=!0}return ar&&An.push(f),An.push(")"),An}function rt($t,un,Mt,Cr){let sn=$t.getValue(),br=un.semi?";":"";if(!sn)return"";if(typeof sn=="string")return sn;for(let An of[yt,q,z,ie,ge,fe]){let Bn=An($t,un,Mt);if(typeof Bn<"u")return Bn}let nn=[];switch(sn.type){case"JsExpressionRoot":return Mt("node");case"JsonRoot":return[Mt("node"),d];case"File":return sn.program&&sn.program.interpreter&&nn.push(Mt(["program","interpreter"])),nn.push(Mt("program")),nn;case"Program":return Zt($t,un,Mt);case"EmptyStatement":return"";case"ExpressionStatement":{if(un.parser==="__vue_event_binding"||un.parser==="__vue_ts_event_binding"){let Bn=$t.getParentNode();if(Bn.type==="Program"&&Bn.body.length===1&&Bn.body[0]===sn)return[Mt("expression"),U(sn.expression)?";":""]}let An=p($t,un,!0,Bn=>{let{marker:ar}=Bn;return ar===R});return[Mt("expression"),G(un,$t)?"":br,An?[" ",An]:""]}case"ParenthesizedExpression":return!$(sn.expression)&&(sn.expression.type==="ObjectExpression"||sn.expression.type==="ArrayExpression")?["(",Mt("expression"),")"]:v(["(",S([h,Mt("expression")]),h,")"]);case"AssignmentExpression":return ot($t,un,Mt);case"VariableDeclarator":return Dn($t,un,Mt);case"BinaryExpression":case"LogicalExpression":return Ee($t,un,Mt);case"AssignmentPattern":return[Mt("left")," = ",Mt("right")];case"OptionalMemberExpression":case"MemberExpression":return Oe($t,un,Mt);case"MetaProperty":return[Mt("meta"),".",Mt("property")];case"BindExpression":return sn.object&&nn.push(Mt("object")),nn.push(v(S([h,se($t,un,Mt)]))),nn;case"Identifier":return[sn.name,ke($t),Ve($t),Ue($t,un,Mt)];case"V8IntrinsicIdentifier":return["%",sn.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":return ue($t,un,Mt);case"FunctionDeclaration":case"FunctionExpression":return Nt($t,Mt,un,Cr);case"ArrowFunctionExpression":return Bt($t,un,Mt,Cr);case"YieldExpression":return nn.push("yield"),sn.delegate&&nn.push("*"),sn.argument&&nn.push(" ",Mt("argument")),nn;case"AwaitExpression":{if(nn.push("await"),sn.argument){nn.push(" ",Mt("argument"));let An=$t.getParentNode();if(J(An)&&An.callee===sn||w(An)&&An.object===sn){nn=[S([h,...nn]),h];let Bn=$t.findAncestor(ar=>ar.type==="AwaitExpression"||ar.type==="BlockStatement");if(!Bn||Bn.type!=="AwaitExpression")return v(nn)}}return nn}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return ht($t,un,Mt);case"ExportAllDeclaration":return be($t,un,Mt);case"ImportDeclaration":return Je($t,un,Mt);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Ie($t,un,Mt);case"ImportAttribute":return[Mt("key"),": ",Mt("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return ct($t,un,Mt);case"ThrowStatement":return kn($t,un,Mt);case"ReturnStatement":return In($t,un,Mt);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return ln($t,un,Mt);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return $e($t,un,Mt);case"ObjectProperty":case"Property":return sn.method||sn.kind==="get"||sn.kind==="set"?cn($t,un,Mt):vt($t,un,Mt);case"ObjectMethod":return cn($t,un,Mt);case"Decorator":return["@",Mt("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return Jt($t,un,Mt);case"SequenceExpression":{let An=$t.getParentNode(0);if(An.type==="ExpressionStatement"||An.type==="ForStatement"){let Bn=[];return $t.each((ar,an)=>{an===0?Bn.push(Mt()):Bn.push(",",S([f,Mt()]))},"expressions"),v(Bn)}return v(D([",",f],$t.map(Mt,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[Mt("value"),br];case"DirectiveLiteral":return nt(sn.extra.raw,un);case"UnaryExpression":return nn.push(sn.operator),/[a-z]$/.test(sn.operator)&&nn.push(" "),$(sn.argument)?nn.push(v(["(",S([h,Mt("argument")]),h,")"])):nn.push(Mt("argument")),nn;case"UpdateExpression":return nn.push(Mt("argument"),sn.operator),sn.prefix&&nn.reverse(),nn;case"ConditionalExpression":return ft($t,un,Mt);case"VariableDeclaration":{let An=$t.map(Mt,"declarations"),Bn=$t.getParentNode(),ar=Bn.type==="ForStatement"||Bn.type==="ForInStatement"||Bn.type==="ForOfStatement",an=sn.declarations.some(Sn=>Sn.init),Tn;return An.length===1&&!$(sn.declarations[0])?Tn=An[0]:An.length>0&&(Tn=S(An[0])),nn=[sn.declare?"declare ":"",sn.kind,Tn?[" ",Tn]:"",S(An.slice(1).map(Sn=>[",",an&&!ar?d:f,Sn]))],ar&&Bn.body!==sn||nn.push(br),v(nn)}case"WithStatement":return v(["with (",Mt("object"),")",me(sn.body,Mt("body"))]);case"IfStatement":{let An=me(sn.consequent,Mt("consequent")),Bn=v(["if (",v([S([h,Mt("test")]),h]),")",An]);if(nn.push(Bn),sn.alternate){let ar=$(sn.consequent,X.Trailing|X.Line)||De(sn),an=sn.consequent.type==="BlockStatement"&&!ar;nn.push(an?" ":d),$(sn,X.Dangling)&&nn.push(p($t,un,!0),ar?d:" "),nn.push("else",v(me(sn.alternate,Mt("alternate"),sn.alternate.type==="IfStatement")))}return nn}case"ForStatement":{let An=me(sn.body,Mt("body")),Bn=p($t,un,!0),ar=Bn?[Bn,h]:"";return!sn.init&&!sn.test&&!sn.update?[ar,v(["for (;;)",An])]:[ar,v(["for (",v([S([h,Mt("init"),";",f,Mt("test"),";",f,Mt("update")]),h]),")",An])]}case"WhileStatement":return v(["while (",v([S([h,Mt("test")]),h]),")",me(sn.body,Mt("body"))]);case"ForInStatement":return v(["for (",Mt("left")," in ",Mt("right"),")",me(sn.body,Mt("body"))]);case"ForOfStatement":return v(["for",sn.await?" await":""," (",Mt("left")," of ",Mt("right"),")",me(sn.body,Mt("body"))]);case"DoWhileStatement":{let An=me(sn.body,Mt("body"));return nn=[v(["do",An])],sn.body.type==="BlockStatement"?nn.push(" "):nn.push(d),nn.push("while (",v([S([h,Mt("test")]),h]),")",br),nn}case"DoExpression":return[sn.async?"async ":"","do ",Mt("body")];case"BreakStatement":return nn.push("break"),sn.label&&nn.push(" ",Mt("label")),nn.push(br),nn;case"ContinueStatement":return nn.push("continue"),sn.label&&nn.push(" ",Mt("label")),nn.push(br),nn;case"LabeledStatement":return sn.body.type==="EmptyStatement"?[Mt("label"),":;"]:[Mt("label"),": ",Mt("body")];case"TryStatement":return["try ",Mt("block"),sn.handler?[" ",Mt("handler")]:"",sn.finalizer?[" finally ",Mt("finalizer")]:""];case"CatchClause":if(sn.param){let An=$(sn.param,ar=>!M(ar)||ar.leading&&b(un.originalText,T(ar))||ar.trailing&&b(un.originalText,y(ar),{backwards:!0})),Bn=Mt("param");return["catch ",An?["(",S([h,Bn]),h,") "]:["(",Bn,") "],Mt("body")]}return["catch ",Mt("body")];case"SwitchStatement":return[v(["switch (",S([h,Mt("discriminant")]),h,")"])," {",sn.cases.length>0?S([d,D(d,$t.map((An,Bn,ar)=>{let an=An.getValue();return[Mt(),Bn!==ar.length-1&&Z(an,un)?d:""]},"cases"))]):"",d,"}"];case"SwitchCase":{sn.test?nn.push("case ",Mt("test"),":"):nn.push("default:"),$(sn,X.Dangling)&&nn.push(" ",p($t,un,!0));let An=sn.consequent.filter(Bn=>Bn.type!=="EmptyStatement");if(An.length>0){let Bn=dt($t,un,Mt);nn.push(An.length===1&&An[0].type==="BlockStatement"?[" ",Bn]:S([d,Bn]))}return nn}case"DebuggerStatement":return["debugger",br];case"ClassDeclaration":case"ClassExpression":return xe($t,un,Mt);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return Ye($t,un,Mt);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return Xe($t,un,Mt);case"TemplateElement":return L(sn.value.raw);case"TemplateLiteral":return pt($t,Mt,un);case"TaggedTemplateExpression":return[Mt("tag"),Mt("typeParameters"),Mt("quasi")];case"PrivateIdentifier":return["#",Mt("name")];case"PrivateName":return["#",Mt("id")];case"InterpreterDirective":return nn.push("#!",sn.value,d),Z(sn,un)&&nn.push(d),nn;case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{nn.push("module {");let An=Mt("body");return An&&nn.push(S([d,An]),d),nn.push("}"),nn}default:throw new Error("unknown type: "+JSON.stringify(sn.type))}}function kt($t){return $t.type&&!M($t)&&!re($t)&&$t.type!=="EmptyStatement"&&$t.type!=="TemplateElement"&&$t.type!=="Import"&&$t.type!=="TSEmptyBodyFunctionExpression"}E.exports={preprocess:Q,print:Le,embed:_,insertPragma:A,massageAstNode:k,hasPrettierIgnore($t){return F($t)||ce($t)},willPrintOwnComments:x.willPrintOwnComments,canAttachComment:kt,printComment:Ut,isBlockComment:M,handleComments:{avoidAstMutation:!0,ownLine:x.handleOwnLineComment,endOfLine:x.handleEndOfLineComment,remaining:x.handleRemainingComment},getCommentChildNodes:x.getCommentChildNodes}}}),d2=_e({"src/language-js/printer-estree-json.js"(m,E){Re();var{builders:{hardline:p,indent:b,join:D}}=Fn(),f=Pm();function d(L,_,k){let A=L.getValue();switch(A.type){case"JsonRoot":return[k("node"),p];case"ArrayExpression":{if(A.elements.length===0)return"[]";let x=L.map(()=>L.getValue()===null?"null":k(),"elements");return["[",b([p,D([",",p],x)]),p,"]"]}case"ObjectExpression":return A.properties.length===0?"{}":["{",b([p,D([",",p],L.map(k,"properties"))]),p,"}"];case"ObjectProperty":return[k("key"),": ",k("value")];case"UnaryExpression":return[A.operator==="+"?"":A.operator,k("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return A.value?"true":"false";case"StringLiteral":return JSON.stringify(A.value);case"NumericLiteral":return h(L)?JSON.stringify(String(A.value)):JSON.stringify(A.value);case"Identifier":return h(L)?JSON.stringify(A.name):A.name;case"TemplateLiteral":return k(["quasis",0]);case"TemplateElement":return JSON.stringify(A.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(A.type))}}function h(L){return L.getName()==="key"&&L.getParentNode().type==="ObjectProperty"}var v=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function S(L,_){let{type:k}=L;if(k==="ObjectProperty"){let{key:A}=L;A.type==="Identifier"?_.key={type:"StringLiteral",value:A.name}:A.type==="NumericLiteral"&&(_.key={type:"StringLiteral",value:String(A.value)});return}if(k==="UnaryExpression"&&L.operator==="+")return _.argument;if(k==="ArrayExpression"){for(let[A,x]of L.elements.entries())x===null&&_.elements.splice(A,0,{type:"NullLiteral"});return}if(k==="TemplateLiteral")return{type:"StringLiteral",value:L.quasis[0].value.cooked}}S.ignoredProperties=v,E.exports={preprocess:f,print:d,massageAstNode:S}}}),Xa=_e({"src/common/common-options.js"(m,E){Re();var p="Common";E.exports={bracketSpacing:{since:"0.0.0",category:p,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:p,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:p,type:"choice",default:[{since:"1.8.2",value:!0},{since:"1.9.0",value:"preserve"}],description:"How to wrap prose.",choices:[{since:"1.9.0",value:"always",description:"Wrap prose if it exceeds the print width."},{since:"1.9.0",value:"never",description:"Do not wrap prose."},{since:"1.9.0",value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{since:"2.4.0",category:p,type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{since:"2.6.0",category:p,type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}}}}),h2=_e({"src/language-js/options.js"(m,E){Re();var p=Xa(),b="JavaScript";E.exports={arrowParens:{since:"1.9.0",category:b,type:"choice",default:[{since:"1.9.0",value:"avoid"},{since:"2.0.0",value:"always"}],description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:p.bracketSameLine,bracketSpacing:p.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:b,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{since:"1.0.0",category:b,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:p.singleQuote,jsxSingleQuote:{since:"1.15.0",category:b,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:b,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{since:"0.0.0",category:b,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]},singleAttributePerLine:p.singleAttributePerLine}}}),m2=_e({"src/language-js/parse/parsers.js"(){Re()}}),Qf=_e({"node_modules/linguist-languages/data/JavaScript.json"(m,E){E.exports={name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".jsx",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183}}}),g2=_e({"node_modules/linguist-languages/data/TypeScript.json"(m,E){E.exports={name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378}}}),y2=_e({"node_modules/linguist-languages/data/TSX.json"(m,E){E.exports={name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924}}}),qm=_e({"node_modules/linguist-languages/data/JSON.json"(m,E){E.exports={name:"JSON",type:"data",color:"#292929",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",aliases:["geojson","jsonl","topojson"],extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174}}}),D2=_e({"node_modules/linguist-languages/data/JSON with Comments.json"(m,E){E.exports={name:"JSON with Comments",type:"data",color:"#292929",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".code-snippets",".sublime-build",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[".babelrc",".devcontainer.json",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423}}}),b2=_e({"node_modules/linguist-languages/data/JSON5.json"(m,E){E.exports={name:"JSON5",type:"data",color:"#267CB9",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175}}}),v2=_e({"src/language-js/index.js"(m,E){Re();var p=na(),b=p2(),D=d2(),f=h2(),d=m2(),h=[p(Qf(),S=>({since:"0.0.0",parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],interpreters:[...S.interpreters,"zx"],extensions:[...S.extensions.filter(L=>L!==".jsx"),".wxs"]})),p(Qf(),()=>({name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})),p(Qf(),()=>({name:"JSX",since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],aliases:void 0,filenames:void 0,extensions:[".jsx"],group:"JavaScript",interpreters:void 0,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0})),p(g2(),()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]})),p(y2(),()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]})),p(qm(),()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"]})),p(qm(),S=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:S.extensions.filter(L=>L!==".jsonl")})),p(D2(),S=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[...S.filenames,".eslintrc",".swcrc"]})),p(b2(),()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}))],v={estree:b,"estree-json":D};E.exports={languages:h,options:f,printers:v,parsers:d}}}),E2=_e({"src/language-css/clean.js"(m,E){Re();var{isFrontMatterNode:p}=ye(),b=Vr(),D=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function f(h,v,S){if(p(h)&&h.lang==="yaml"&&delete v.value,h.type==="css-comment"&&S.type==="css-root"&&S.nodes.length>0&&((S.nodes[0]===h||p(S.nodes[0])&&S.nodes[1]===h)&&(delete v.text,/^\*\s*@(?:format|prettier)\s*$/.test(h.text))||S.type==="css-root"&&b(S.nodes)===h))return null;if(h.type==="value-root"&&delete v.text,(h.type==="media-query"||h.type==="media-query-list"||h.type==="media-feature-expression")&&delete v.value,h.type==="css-rule"&&delete v.params,h.type==="selector-combinator"&&(v.value=v.value.replace(/\s+/g," ")),h.type==="media-feature"&&(v.value=v.value.replace(/ /g,"")),(h.type==="value-word"&&(h.isColor&&h.isHex||["initial","inherit","unset","revert"].includes(v.value.replace().toLowerCase()))||h.type==="media-feature"||h.type==="selector-root-invalid"||h.type==="selector-pseudo")&&(v.value=v.value.toLowerCase()),h.type==="css-decl"&&(v.prop=v.prop.toLowerCase()),(h.type==="css-atrule"||h.type==="css-import")&&(v.name=v.name.toLowerCase()),h.type==="value-number"&&(v.unit=v.unit.toLowerCase()),(h.type==="media-feature"||h.type==="media-keyword"||h.type==="media-type"||h.type==="media-unknown"||h.type==="media-url"||h.type==="media-value"||h.type==="selector-attribute"||h.type==="selector-string"||h.type==="selector-class"||h.type==="selector-combinator"||h.type==="value-string")&&v.value&&(v.value=d(v.value)),h.type==="selector-attribute"&&(v.attribute=v.attribute.trim(),v.namespace&&typeof v.namespace=="string"&&(v.namespace=v.namespace.trim(),v.namespace.length===0&&(v.namespace=!0)),v.value&&(v.value=v.value.trim().replace(/^["']|["']$/g,""),delete v.quoted)),(h.type==="media-value"||h.type==="media-type"||h.type==="value-number"||h.type==="selector-root-invalid"||h.type==="selector-class"||h.type==="selector-combinator"||h.type==="selector-tag")&&v.value&&(v.value=v.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,(L,_,k)=>{let A=Number(_);return Number.isNaN(A)?L:A+k.toLowerCase()})),h.type==="selector-tag"){let L=h.value.toLowerCase();["from","to"].includes(L)&&(v.value=L)}if(h.type==="css-atrule"&&h.name.toLowerCase()==="supports"&&delete v.value,h.type==="selector-unknown"&&delete v.value,h.type==="value-comma_group"){let L=h.groups.findIndex(_=>_.type==="value-number"&&_.unit==="...");L!==-1&&(v.groups[L].unit="",v.groups.splice(L+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(h.type==="value-comma_group"&&h.groups.some(L=>L.type==="value-atword"&&L.value.endsWith("[")||L.type==="value-word"&&L.value.startsWith("]")))return{type:"value-atword",value:h.groups.map(L=>L.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}f.ignoredProperties=D;function d(h){return h.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")}E.exports=f}}),Xf=_e({"src/utils/front-matter/print.js"(m,E){Re();var{builders:{hardline:p,markAsRoot:b}}=Fn();function D(f,d){if(f.lang==="yaml"){let h=f.value.trim(),v=h?d(h,{parser:"yaml"},{stripTrailingHardline:!0}):"";return b([f.startDelimiter,p,v,v?p:"",f.endDelimiter])}}E.exports=D}}),A2=_e({"src/language-css/embed.js"(m,E){Re();var{builders:{hardline:p}}=Fn(),b=Xf();function D(f,d,h){let v=f.getValue();if(v.type==="front-matter"){let S=b(v,h);return S?[S,p]:""}}E.exports=D}}),Um=_e({"src/utils/front-matter/parse.js"(m,E){Re();var p=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function b(D){let f=D.match(p);if(!f)return{content:D};let{startDelimiter:d,language:h,value:v="",endDelimiter:S}=f.groups,L=h.trim()||"yaml";if(d==="+++"&&(L="toml"),L!=="yaml"&&d!==S)return{content:D};let[_]=f;return{frontMatter:{type:"front-matter",lang:L,value:v,startDelimiter:d,endDelimiter:S,raw:_.replace(/\n$/,"")},content:_.replace(/[^\n]/g," ")+D.slice(_.length)}}E.exports=b}}),C2=_e({"src/language-css/pragma.js"(m,E){Re();var p=km(),b=Um();function D(d){return p.hasPragma(b(d).content)}function f(d){let{frontMatter:h,content:v}=b(d);return(h?h.raw+`
211
-
212
- `:"")+p.insertPragma(v)}E.exports={hasPragma:D,insertPragma:f}}}),S2=_e({"src/language-css/utils/index.js"(m,E){Re();var p=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function b($e,xe){let Ye=Array.isArray(xe)?xe:[xe],Xe=-1,vt;for(;vt=$e.getParentNode(++Xe);)if(Ye.includes(vt.type))return Xe;return-1}function D($e,xe){let Ye=b($e,xe);return Ye===-1?null:$e.getParentNode(Ye)}function f($e){var xe;let Ye=D($e,"css-decl");return Ye==null||(xe=Ye.prop)===null||xe===void 0?void 0:xe.toLowerCase()}var d=new Set(["initial","inherit","unset","revert"]);function h($e){return d.has($e.toLowerCase())}function v($e,xe){let Ye=D($e,"css-atrule");return(Ye==null?void 0:Ye.name)&&Ye.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(xe.toLowerCase())}function S($e){return $e.includes("$")||$e.includes("@")||$e.includes("#")||$e.startsWith("%")||$e.startsWith("--")||$e.startsWith(":--")||$e.includes("(")&&$e.includes(")")?$e:$e.toLowerCase()}function L($e,xe){var Ye;let Xe=D($e,"value-func");return(Xe==null||(Ye=Xe.value)===null||Ye===void 0?void 0:Ye.toLowerCase())===xe}function _($e){var xe;let Ye=D($e,"css-rule"),Xe=Ye==null||(xe=Ye.raws)===null||xe===void 0?void 0:xe.selector;return Xe&&(Xe.startsWith(":import")||Xe.startsWith(":export"))}function k($e,xe){let Ye=Array.isArray(xe)?xe:[xe],Xe=D($e,"css-atrule");return Xe&&Ye.includes(Xe.name.toLowerCase())}function A($e){let xe=$e.getValue(),Ye=D($e,"css-atrule");return(Ye==null?void 0:Ye.name)==="import"&&xe.groups[0].value==="url"&&xe.groups.length===2}function x($e){return $e.type==="value-func"&&$e.value.toLowerCase()==="url"}function j($e,xe){var Ye;let Xe=(Ye=$e.getParentNode())===null||Ye===void 0?void 0:Ye.nodes;return Xe&&Xe.indexOf(xe)===Xe.length-1}function Q($e){let{selector:xe}=$e;return xe?typeof xe=="string"&&/^@.+:.*$/.test(xe)||xe.value&&/^@.+:.*$/.test(xe.value):!1}function te($e){return $e.type==="value-word"&&["from","through","end"].includes($e.value)}function $($e){return $e.type==="value-word"&&["and","or","not"].includes($e.value)}function X($e){return $e.type==="value-word"&&$e.value==="in"}function G($e){return $e.type==="value-operator"&&$e.value==="*"}function re($e){return $e.type==="value-operator"&&$e.value==="/"}function Z($e){return $e.type==="value-operator"&&$e.value==="+"}function De($e){return $e.type==="value-operator"&&$e.value==="-"}function F($e){return $e.type==="value-operator"&&$e.value==="%"}function J($e){return G($e)||re($e)||Z($e)||De($e)||F($e)}function w($e){return $e.type==="value-word"&&["==","!="].includes($e.value)}function R($e){return $e.type==="value-word"&&["<",">","<=",">="].includes($e.value)}function y($e){return $e.type==="css-atrule"&&["if","else","for","each","while"].includes($e.name)}function T($e){var xe;return((xe=$e.raws)===null||xe===void 0?void 0:xe.params)&&/^\(\s*\)$/.test($e.raws.params)}function M($e){return $e.name.startsWith("prettier-placeholder")}function q($e){return $e.prop.startsWith("@prettier-placeholder")}function U($e,xe){return $e.value==="$$"&&$e.type==="value-func"&&(xe==null?void 0:xe.type)==="value-word"&&!xe.raws.before}function z($e){var xe,Ye;return((xe=$e.value)===null||xe===void 0?void 0:xe.type)==="value-root"&&((Ye=$e.value.group)===null||Ye===void 0?void 0:Ye.type)==="value-value"&&$e.prop.toLowerCase()==="composes"}function ie($e){var xe,Ye,Xe;return((xe=$e.value)===null||xe===void 0||(Ye=xe.group)===null||Ye===void 0||(Xe=Ye.group)===null||Xe===void 0?void 0:Xe.type)==="value-paren_group"&&$e.value.group.group.open!==null&&$e.value.group.group.close!==null}function ce($e){var xe;return((xe=$e.raws)===null||xe===void 0?void 0:xe.before)===""}function ge($e){var xe,Ye;return $e.type==="value-comma_group"&&((xe=$e.groups)===null||xe===void 0||(Ye=xe[1])===null||Ye===void 0?void 0:Ye.type)==="value-colon"}function fe($e){var xe;return $e.type==="value-paren_group"&&((xe=$e.groups)===null||xe===void 0?void 0:xe[0])&&ge($e.groups[0])}function ke($e){var xe;let Ye=$e.getValue();if(Ye.groups.length===0)return!1;let Xe=$e.getParentNode(1);if(!fe(Ye)&&!(Xe&&fe(Xe)))return!1;let vt=D($e,"css-decl");return!!(vt!=null&&(xe=vt.prop)!==null&&xe!==void 0&&xe.startsWith("$")||fe(Xe)||Xe.type==="value-func")}function se($e){return $e.type==="value-comment"&&$e.inline}function Ue($e){return $e.type==="value-word"&&$e.value==="#"}function me($e){return $e.type==="value-word"&&$e.value==="{"}function ue($e){return $e.type==="value-word"&&$e.value==="}"}function Ve($e){return["value-word","value-atword"].includes($e.type)}function nt($e){return($e==null?void 0:$e.type)==="value-colon"}function Je($e,xe){if(!ge(xe))return!1;let{groups:Ye}=xe,Xe=Ye.indexOf($e);return Xe===-1?!1:nt(Ye[Xe+1])}function ht($e){return $e.value&&["not","and","or"].includes($e.value.toLowerCase())}function be($e){return $e.type!=="value-func"?!1:p.has($e.value.toLowerCase())}function Ie($e){return/\/\//.test($e.split(/[\n\r]/).pop())}function ft($e){return($e==null?void 0:$e.type)==="value-atword"&&$e.value.startsWith("prettier-placeholder-")}function pt($e,xe){var Ye,Xe;if(((Ye=$e.open)===null||Ye===void 0?void 0:Ye.value)!=="("||((Xe=$e.close)===null||Xe===void 0?void 0:Xe.value)!==")"||$e.groups.some(vt=>vt.type!=="value-comma_group"))return!1;if(xe.type==="value-comma_group"){let vt=xe.groups.indexOf($e)-1,Nt=xe.groups[vt];if((Nt==null?void 0:Nt.type)==="value-word"&&Nt.value==="with")return!0}return!1}function Jt($e){var xe,Ye;return $e.type==="value-paren_group"&&((xe=$e.open)===null||xe===void 0?void 0:xe.value)==="("&&((Ye=$e.close)===null||Ye===void 0?void 0:Ye.value)===")"}E.exports={getAncestorCounter:b,getAncestorNode:D,getPropOfDeclNode:f,maybeToLowerCase:S,insideValueFunctionNode:L,insideICSSRuleNode:_,insideAtRuleNode:k,insideURLFunctionInImportAtRuleNode:A,isKeyframeAtRuleKeywords:v,isWideKeywords:h,isLastNode:j,isSCSSControlDirectiveNode:y,isDetachedRulesetDeclarationNode:Q,isRelationalOperatorNode:R,isEqualityOperatorNode:w,isMultiplicationNode:G,isDivisionNode:re,isAdditionNode:Z,isSubtractionNode:De,isModuloNode:F,isMathOperatorNode:J,isEachKeywordNode:X,isForKeywordNode:te,isURLFunctionNode:x,isIfElseKeywordNode:$,hasComposesNode:z,hasParensAroundNode:ie,hasEmptyRawBefore:ce,isDetachedRulesetCallNode:T,isTemplatePlaceholderNode:M,isTemplatePropNode:q,isPostcssSimpleVarNode:U,isKeyValuePairNode:ge,isKeyValuePairInParenGroupNode:fe,isKeyInValuePairNode:Je,isSCSSMapItemNode:ke,isInlineValueCommentNode:se,isHashNode:Ue,isLeftCurlyBraceNode:me,isRightCurlyBraceNode:ue,isWordNode:Ve,isColonNode:nt,isMediaAndSupportsKeywords:ht,isColorAdjusterFuncNode:be,lastLineHasInlineComment:Ie,isAtWordPlaceholderNode:ft,isConfigurationNode:pt,isParenGroupNode:Jt}}}),x2=_e({"src/utils/line-column-to-index.js"(m,E){Re(),E.exports=function(p,b){let D=0;for(let f=0;f<p.line-1;++f)D=b.indexOf(`
213
- `,D)+1;return D+p.column}}}),w2=_e({"src/language-css/loc.js"(m,E){Re();var{skipEverythingButNewLine:p}=_t(),b=Vr(),D=x2();function f(A,x){return typeof A.sourceIndex=="number"?A.sourceIndex:A.source?D(A.source.start,x)-1:null}function d(A,x){if(A.type==="css-comment"&&A.inline)return p(x,A.source.startOffset);let j=A.nodes&&b(A.nodes);return j&&A.source&&!A.source.end&&(A=j),A.source&&A.source.end?D(A.source.end,x):null}function h(A,x){A.source&&(A.source.startOffset=f(A,x),A.source.endOffset=d(A,x));for(let j in A){let Q=A[j];j==="source"||!Q||typeof Q!="object"||(Q.type==="value-root"||Q.type==="value-unknown"?v(Q,S(A),Q.text||Q.value):h(Q,x))}}function v(A,x,j){A.source&&(A.source.startOffset=f(A,j)+x,A.source.endOffset=d(A,j)+x);for(let Q in A){let te=A[Q];Q==="source"||!te||typeof te!="object"||v(te,x,j)}}function S(A){let x=A.source.startOffset;return typeof A.prop=="string"&&(x+=A.prop.length),A.type==="css-atrule"&&typeof A.name=="string"&&(x+=1+A.name.length+A.raws.afterName.match(/^\s*:?\s*/)[0].length),A.type!=="css-atrule"&&A.raws&&typeof A.raws.between=="string"&&(x+=A.raws.between.length),x}function L(A){let x="initial",j="initial",Q,te=!1,$=[];for(let X=0;X<A.length;X++){let G=A[X];switch(x){case"initial":if(G==="'"){x="single-quotes";continue}if(G==='"'){x="double-quotes";continue}if((G==="u"||G==="U")&&A.slice(X,X+4).toLowerCase()==="url("){x="url",X+=3;continue}if(G==="*"&&A[X-1]==="/"){x="comment-block";continue}if(G==="/"&&A[X-1]==="/"){x="comment-inline",Q=X-1;continue}continue;case"single-quotes":if(G==="'"&&A[X-1]!=="\\"&&(x=j,j="initial"),G===`
214
- `||G==="\r")return A;continue;case"double-quotes":if(G==='"'&&A[X-1]!=="\\"&&(x=j,j="initial"),G===`
215
- `||G==="\r")return A;continue;case"url":if(G===")"&&(x="initial"),G===`
216
- `||G==="\r")return A;if(G==="'"){x="single-quotes",j="url";continue}if(G==='"'){x="double-quotes",j="url";continue}continue;case"comment-block":G==="/"&&A[X-1]==="*"&&(x="initial");continue;case"comment-inline":(G==='"'||G==="'"||G==="*")&&(te=!0),(G===`
217
- `||G==="\r")&&(te&&$.push([Q,X]),x="initial",te=!1);continue}}for(let[X,G]of $)A=A.slice(0,X)+A.slice(X,G).replace(/["'*]/g," ")+A.slice(G);return A}function _(A){return A.source.startOffset}function k(A){return A.source.endOffset}E.exports={locStart:_,locEnd:k,calculateLoc:h,replaceQuotesInInlineComments:L}}}),F2=_e({"src/language-css/utils/is-less-parser.js"(m,E){Re();function p(b){return b.parser==="css"||b.parser==="less"}E.exports=p}}),N2=_e({"src/language-css/utils/is-scss.js"(m,E){Re();function p(b,D){return b==="less"||b==="scss"?b==="scss":/(?:\w\s*:\s*[^:}]+|#){|@import[^\n]+(?:url|,)/.test(D)}E.exports=p}}),_2=_e({"src/language-css/utils/css-units.evaluate.js"(m,E){E.exports={em:"em",rem:"rem",ex:"ex",rex:"rex",cap:"cap",rcap:"rcap",ch:"ch",rch:"rch",ic:"ic",ric:"ric",lh:"lh",rlh:"rlh",vw:"vw",svw:"svw",lvw:"lvw",dvw:"dvw",vh:"vh",svh:"svh",lvh:"lvh",dvh:"dvh",vi:"vi",svi:"svi",lvi:"lvi",dvi:"dvi",vb:"vb",svb:"svb",lvb:"lvb",dvb:"dvb",vmin:"vmin",svmin:"svmin",lvmin:"lvmin",dvmin:"dvmin",vmax:"vmax",svmax:"svmax",lvmax:"lvmax",dvmax:"dvmax",cm:"cm",mm:"mm",q:"Q",in:"in",pt:"pt",pc:"pc",px:"px",deg:"deg",grad:"grad",rad:"rad",turn:"turn",s:"s",ms:"ms",hz:"Hz",khz:"kHz",dpi:"dpi",dpcm:"dpcm",dppx:"dppx",x:"x"}}}),T2=_e({"src/language-css/utils/print-unit.js"(m,E){Re();var p=_2();function b(D){let f=D.toLowerCase();return Object.prototype.hasOwnProperty.call(p,f)?p[f]:D}E.exports=b}}),k2=_e({"src/language-css/printer-postcss.js"(m,E){Re();var p=Vr(),{printNumber:b,printString:D,hasNewline:f,isFrontMatterNode:d,isNextLineEmpty:h,isNonEmptyArray:v}=ye(),{builders:{join:S,line:L,hardline:_,softline:k,group:A,fill:x,indent:j,dedent:Q,ifBreak:te,breakParent:$},utils:{removeLines:X,getDocParts:G}}=Fn(),re=E2(),Z=A2(),{insertPragma:De}=C2(),{getAncestorNode:F,getPropOfDeclNode:J,maybeToLowerCase:w,insideValueFunctionNode:R,insideICSSRuleNode:y,insideAtRuleNode:T,insideURLFunctionInImportAtRuleNode:M,isKeyframeAtRuleKeywords:q,isWideKeywords:U,isLastNode:z,isSCSSControlDirectiveNode:ie,isDetachedRulesetDeclarationNode:ce,isRelationalOperatorNode:ge,isEqualityOperatorNode:fe,isMultiplicationNode:ke,isDivisionNode:se,isAdditionNode:Ue,isSubtractionNode:me,isMathOperatorNode:ue,isEachKeywordNode:Ve,isForKeywordNode:nt,isURLFunctionNode:Je,isIfElseKeywordNode:ht,hasComposesNode:be,hasParensAroundNode:Ie,hasEmptyRawBefore:ft,isKeyValuePairNode:pt,isKeyInValuePairNode:Jt,isDetachedRulesetCallNode:$e,isTemplatePlaceholderNode:xe,isTemplatePropNode:Ye,isPostcssSimpleVarNode:Xe,isSCSSMapItemNode:vt,isInlineValueCommentNode:Nt,isHashNode:Bt,isLeftCurlyBraceNode:cn,isRightCurlyBraceNode:In,isWordNode:kn,isColonNode:ln,isMediaAndSupportsKeywords:Dn,isColorAdjusterFuncNode:ot,lastLineHasInlineComment:Ee,isAtWordPlaceholderNode:dt,isConfigurationNode:Oe,isParenGroupNode:ct}=S2(),{locStart:Zt,locEnd:Ut}=w2(),yt=F2(),V=N2(),Le=T2();function rt(an){return an.trailingComma==="es5"||an.trailingComma==="all"}function kt(an,Tn,Sn){let lt=an.getValue();if(!lt)return"";if(typeof lt=="string")return lt;switch(lt.type){case"front-matter":return[lt.raw,_];case"css-root":{let qn=$t(an,Tn,Sn),Gn=lt.raws.after.trim();return Gn.startsWith(";")&&(Gn=Gn.slice(1).trim()),[qn,Gn?` ${Gn}`:"",G(qn).length>0?_:""]}case"css-comment":{let qn=lt.inline||lt.raws.inline,Gn=Tn.originalText.slice(Zt(lt),Ut(lt));return qn?Gn.trimEnd():Gn}case"css-rule":return[Sn("selector"),lt.important?" !important":"",lt.nodes?[lt.selector&&lt.selector.type==="selector-unknown"&&Ee(lt.selector.value)?L:" ","{",lt.nodes.length>0?j([_,$t(an,Tn,Sn)]):"",_,"}",ce(lt)?";":""]:";"];case"css-decl":{let qn=an.getParentNode(),{between:Gn}=lt.raws,fr=Gn.trim(),Ni=fr===":",oe=be(lt)?X(Sn("value")):Sn("value");return!Ni&&Ee(fr)&&(oe=j([_,Q(oe)])),[lt.raws.before.replace(/[\s;]/g,""),qn.type==="css-atrule"&&qn.variable||y(an)?lt.prop:w(lt.prop),fr.startsWith("//")?" ":"",fr,lt.extend?"":" ",yt(Tn)&&lt.extend&&lt.selector?["extend(",Sn("selector"),")"]:"",oe,lt.raws.important?lt.raws.important.replace(/\s*!\s*important/i," !important"):lt.important?" !important":"",lt.raws.scssDefault?lt.raws.scssDefault.replace(/\s*!default/i," !default"):lt.scssDefault?" !default":"",lt.raws.scssGlobal?lt.raws.scssGlobal.replace(/\s*!global/i," !global"):lt.scssGlobal?" !global":"",lt.nodes?[" {",j([k,$t(an,Tn,Sn)]),k,"}"]:Ye(lt)&&!qn.raws.semicolon&&Tn.originalText[Ut(lt)-1]!==";"?"":Tn.__isHTMLStyleAttribute&&z(an,lt)?te(";"):";"]}case"css-atrule":{let qn=an.getParentNode(),Gn=xe(lt)&&!qn.raws.semicolon&&Tn.originalText[Ut(lt)-1]!==";";if(yt(Tn)){if(lt.mixin)return[Sn("selector"),lt.important?" !important":"",Gn?"":";"];if(lt.function)return[lt.name,Sn("params"),Gn?"":";"];if(lt.variable)return["@",lt.name,": ",lt.value?Sn("value"):"",lt.raws.between.trim()?lt.raws.between.trim()+" ":"",lt.nodes?["{",j([lt.nodes.length>0?k:"",$t(an,Tn,Sn)]),k,"}"]:"",Gn?"":";"]}return["@",$e(lt)||lt.name.endsWith(":")?lt.name:w(lt.name),lt.params?[$e(lt)?"":xe(lt)?lt.raws.afterName===""?"":lt.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(lt.raws.afterName)?[_,_]:/^\s*\n/.test(lt.raws.afterName)?_:" ":" ",Sn("params")]:"",lt.selector?j([" ",Sn("selector")]):"",lt.value?A([" ",Sn("value"),ie(lt)?Ie(lt)?" ":L:""]):lt.name==="else"?" ":"",lt.nodes?[ie(lt)?"":lt.selector&&!lt.selector.nodes&&typeof lt.selector.value=="string"&&Ee(lt.selector.value)||!lt.selector&&typeof lt.params=="string"&&Ee(lt.params)?L:" ","{",j([lt.nodes.length>0?k:"",$t(an,Tn,Sn)]),k,"}"]:Gn?"":";"]}case"media-query-list":{let qn=[];return an.each(Gn=>{let fr=Gn.getValue();fr.type==="media-query"&&fr.value===""||qn.push(Sn())},"nodes"),A(j(S(L,qn)))}case"media-query":return[S(" ",an.map(Sn,"nodes")),z(an,lt)?"":","];case"media-type":return Bn(nn(lt.value,Tn));case"media-feature-expression":return lt.nodes?["(",...an.map(Sn,"nodes"),")"]:lt.value;case"media-feature":return w(nn(lt.value.replace(/ +/g," "),Tn));case"media-colon":return[lt.value," "];case"media-value":return Bn(nn(lt.value,Tn));case"media-keyword":return nn(lt.value,Tn);case"media-url":return nn(lt.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/g,")"),Tn);case"media-unknown":return lt.value;case"selector-root":return A([T(an,"custom-selector")?[F(an,"css-atrule").customSelector,L]:"",S([",",T(an,["extend","custom-selector","nest"])?L:_],an.map(Sn,"nodes"))]);case"selector-selector":return A(j(an.map(Sn,"nodes")));case"selector-comment":return lt.value;case"selector-string":return nn(lt.value,Tn);case"selector-tag":{let qn=an.getParentNode(),Gn=qn&&qn.nodes.indexOf(lt),fr=Gn&&qn.nodes[Gn-1];return[lt.namespace?[lt.namespace===!0?"":lt.namespace.trim(),"|"]:"",fr.type==="selector-nesting"?lt.value:Bn(q(an,lt.value)?lt.value.toLowerCase():lt.value)]}case"selector-id":return["#",lt.value];case"selector-class":return[".",Bn(nn(lt.value,Tn))];case"selector-attribute":{var Fi;return["[",lt.namespace?[lt.namespace===!0?"":lt.namespace.trim(),"|"]:"",lt.attribute.trim(),(Fi=lt.operator)!==null&&Fi!==void 0?Fi:"",lt.value?An(nn(lt.value.trim(),Tn),Tn):"",lt.insensitive?" i":"","]"]}case"selector-combinator":{if(lt.value==="+"||lt.value===">"||lt.value==="~"||lt.value===">>>"){let fr=an.getParentNode();return[fr.type==="selector-selector"&&fr.nodes[0]===lt?"":L,lt.value,z(an,lt)?"":" "]}let qn=lt.value.trim().startsWith("(")?L:"",Gn=Bn(nn(lt.value.trim(),Tn))||L;return[qn,Gn]}case"selector-universal":return[lt.namespace?[lt.namespace===!0?"":lt.namespace.trim(),"|"]:"",lt.value];case"selector-pseudo":return[w(lt.value),v(lt.nodes)?A(["(",j([k,S([",",L],an.map(Sn,"nodes"))]),k,")"]):""];case"selector-nesting":return lt.value;case"selector-unknown":{let qn=F(an,"css-rule");if(qn&&qn.isSCSSNesterProperty)return Bn(nn(w(lt.value),Tn));let Gn=an.getParentNode();if(Gn.raws&&Gn.raws.selector){let Ni=Zt(Gn),oe=Ni+Gn.raws.selector.length;return Tn.originalText.slice(Ni,oe).trim()}let fr=an.getParentNode(1);if(Gn.type==="value-paren_group"&&fr&&fr.type==="value-func"&&fr.value==="selector"){let Ni=Ut(Gn.open)+1,oe=Zt(Gn.close),Et=Tn.originalText.slice(Ni,oe).trim();return Ee(Et)?[$,Et]:Et}return lt.value}case"value-value":case"value-root":return Sn("group");case"value-comment":return Tn.originalText.slice(Zt(lt),Ut(lt));case"value-comma_group":{let qn=an.getParentNode(),Gn=an.getParentNode(1),fr=J(an),Ni=fr&&qn.type==="value-value"&&(fr==="grid"||fr.startsWith("grid-template")),oe=F(an,"css-atrule"),Et=oe&&ie(oe),gn=lt.groups.some(_i=>Nt(_i)),Hn=an.map(Sn,"groups"),zn=[],vi=R(an,"url"),Fr=!1,ti=!1;for(let _i=0;_i<lt.groups.length;++_i){var Xr;zn.push(Hn[_i]);let jr=lt.groups[_i-1],Nn=lt.groups[_i],jn=lt.groups[_i+1],Dl=lt.groups[_i+2];if(vi){(jn&&Ue(jn)||Ue(Nn))&&zn.push(" ");continue}if(T(an,"forward")&&Nn.type==="value-word"&&Nn.value&&jr!==void 0&&jr.type==="value-word"&&jr.value==="as"&&jn.type==="value-operator"&&jn.value==="*"||!jn||Nn.type==="value-word"&&Nn.value.endsWith("-")&&dt(jn))continue;if(Nn.type==="value-string"&&Nn.quoted){let rp=Nn.value.lastIndexOf("#{"),ip=Nn.value.lastIndexOf("}");rp!==-1&&ip!==-1?Fr=rp>ip:rp!==-1?Fr=!0:ip!==-1&&(Fr=!1)}if(Fr||ln(Nn)||ln(jn)||Nn.type==="value-atword"&&(Nn.value===""||Nn.value.endsWith("["))||jn.type==="value-word"&&jn.value.startsWith("]")||Nn.value==="~"||Nn.value&&Nn.value.includes("\\")&&jn&&jn.type!=="value-comment"||jr&&jr.value&&jr.value.indexOf("\\")===jr.value.length-1&&Nn.type==="value-operator"&&Nn.value==="/"||Nn.value==="\\"||Xe(Nn,jn)||Bt(Nn)||cn(Nn)||In(jn)||cn(jn)&&ft(jn)||In(Nn)&&ft(jn)||Nn.value==="--"&&Bt(jn))continue;let np=ue(Nn),Qm=ue(jn);if((np&&Bt(jn)||Qm&&In(Nn))&&ft(jn)||!jr&&se(Nn)||R(an,"calc")&&(Ue(Nn)||Ue(jn)||me(Nn)||me(jn))&&ft(jn))continue;let JE=(Ue(Nn)||me(Nn))&&_i===0&&(jn.type==="value-number"||jn.isHex)&&Gn&&ot(Gn)&&!ft(jn),Xm=Dl&&Dl.type==="value-func"||Dl&&kn(Dl)||Nn.type==="value-func"||kn(Nn),Km=jn.type==="value-func"||kn(jn)||jr&&jr.type==="value-func"||jr&&kn(jr);if(!(!(ke(jn)||ke(Nn))&&!R(an,"calc")&&!JE&&(se(jn)&&!Xm||se(Nn)&&!Km||Ue(jn)&&!Xm||Ue(Nn)&&!Km||me(jn)||me(Nn))&&(ft(jn)||np&&(!jr||jr&&ue(jr))))&&!((Tn.parser==="scss"||Tn.parser==="less")&&np&&Nn.value==="-"&&ct(jn)&&Ut(Nn)===Zt(jn.open)&&jn.open.value==="(")){if(Nt(Nn)){if(qn.type==="value-paren_group"){zn.push(Q(_));continue}zn.push(_);continue}if(Et&&(fe(jn)||ge(jn)||ht(jn)||Ve(Nn)||nt(Nn))){zn.push(" ");continue}if(oe&&oe.name.toLowerCase()==="namespace"){zn.push(" ");continue}if(Ni){Nn.source&&jn.source&&Nn.source.start.line!==jn.source.start.line?(zn.push(_),ti=!0):zn.push(" ");continue}if(Qm){zn.push(" ");continue}if(!(jn&&jn.value==="...")&&!(dt(Nn)&&dt(jn)&&Ut(Nn)===Zt(jn))){if(dt(Nn)&&ct(jn)&&Ut(Nn)===Zt(jn.open)){zn.push(k);continue}if(Nn.value==="with"&&ct(jn)){zn.push(" ");continue}(Xr=Nn.value)!==null&&Xr!==void 0&&Xr.endsWith("#")&&jn.value==="{"&&ct(jn.group)||zn.push(L)}}}return gn&&zn.push($),ti&&zn.unshift(_),Et?A(j(zn)):M(an)?A(x(zn)):A(j(x(zn)))}case"value-paren_group":{let qn=an.getParentNode();if(qn&&Je(qn)&&(lt.groups.length===1||lt.groups.length>0&&lt.groups[0].type==="value-comma_group"&&lt.groups[0].groups.length>0&&lt.groups[0].groups[0].type==="value-word"&&lt.groups[0].groups[0].value.startsWith("data:")))return[lt.open?Sn("open"):"",S(",",an.map(Sn,"groups")),lt.close?Sn("close"):""];if(!lt.open){let vi=an.map(Sn,"groups"),Fr=[];for(let ti=0;ti<vi.length;ti++)ti!==0&&Fr.push([",",L]),Fr.push(vi[ti]);return A(j(x(Fr)))}let Gn=vt(an),fr=p(lt.groups),Ni=fr&&fr.type==="value-comment",oe=Jt(lt,qn),Et=Oe(lt,qn),gn=Et||Gn&&!oe,Hn=Et||oe,zn=A([lt.open?Sn("open"):"",j([k,S([L],an.map((vi,Fr)=>{let ti=vi.getValue(),_i=Fr===lt.groups.length-1,jr=[Sn(),_i?"":","];if(pt(ti)&&ti.type==="value-comma_group"&&ti.groups&&ti.groups[0].type!=="value-paren_group"&&ti.groups[2]&&ti.groups[2].type==="value-paren_group"){let Nn=G(jr[0].contents.contents);Nn[1]=A(Nn[1]),jr=[A(Q(jr))]}if(!_i&&ti.type==="value-comma_group"&&v(ti.groups)){let Nn=p(ti.groups);!Nn.source&&Nn.close&&(Nn=Nn.close),Nn.source&&h(Tn.originalText,Nn,Ut)&&jr.push(_)}return jr},"groups"))]),te(!Ni&&V(Tn.parser,Tn.originalText)&&Gn&&rt(Tn)?",":""),k,lt.close?Sn("close"):""],{shouldBreak:gn});return Hn?Q(zn):zn}case"value-func":return[lt.value,T(an,"supports")&&Dn(lt)?" ":"",Sn("group")];case"value-paren":return lt.value;case"value-number":return[ar(lt.value),Le(lt.unit)];case"value-operator":return lt.value;case"value-word":return lt.isColor&&lt.isHex||U(lt.value)?lt.value.toLowerCase():lt.value;case"value-colon":{let qn=an.getParentNode(),Gn=qn&&qn.groups.indexOf(lt),fr=Gn&&qn.groups[Gn-1];return[lt.value,fr&&typeof fr.value=="string"&&p(fr.value)==="\\"||R(an,"url")?"":L]}case"value-comma":return[lt.value," "];case"value-string":return D(lt.raws.quote+lt.value+lt.raws.quote,Tn);case"value-atword":return["@",lt.value];case"value-unicode-range":return lt.value;case"value-unknown":return lt.value;default:throw new Error(`Unknown postcss type ${JSON.stringify(lt.type)}`)}}function $t(an,Tn,Sn){let lt=[];return an.each((Fi,Xr,qn)=>{let Gn=qn[Xr-1];if(Gn&&Gn.type==="css-comment"&&Gn.text.trim()==="prettier-ignore"){let fr=Fi.getValue();lt.push(Tn.originalText.slice(Zt(fr),Ut(fr)))}else lt.push(Sn());Xr!==qn.length-1&&(qn[Xr+1].type==="css-comment"&&!f(Tn.originalText,Zt(qn[Xr+1]),{backwards:!0})&&!d(qn[Xr])||qn[Xr+1].type==="css-atrule"&&qn[Xr+1].name==="else"&&qn[Xr].type!=="css-comment"?lt.push(" "):(lt.push(Tn.__isHTMLStyleAttribute?L:_),h(Tn.originalText,Fi.getValue(),Ut)&&!d(qn[Xr])&&lt.push(_)))},"nodes"),lt}var un=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,Mt=/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g,Cr=/[A-Za-z]+/g,sn=/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g,br=new RegExp(un.source+`|(${sn.source})?(${Mt.source})(${Cr.source})?`,"g");function nn(an,Tn){return an.replace(un,Sn=>D(Sn,Tn))}function An(an,Tn){let Sn=Tn.singleQuote?"'":'"';return an.includes('"')||an.includes("'")?an:Sn+an+Sn}function Bn(an){return an.replace(br,(Tn,Sn,lt,Fi,Xr)=>!lt&&Fi?ar(Fi)+w(Xr||""):Tn)}function ar(an){return b(an).replace(/\.0(?=$|e)/,"")}E.exports={print:kt,embed:Z,insertPragma:De,massageAstNode:re}}}),L2=_e({"src/language-css/options.js"(m,E){Re();var p=Xa();E.exports={singleQuote:p.singleQuote}}}),P2=_e({"src/language-css/parsers.js"(){Re()}}),B2=_e({"node_modules/linguist-languages/data/CSS.json"(m,E){E.exports={name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50}}}),M2=_e({"node_modules/linguist-languages/data/PostCSS.json"(m,E){E.exports={name:"PostCSS",type:"markup",color:"#dc3a0c",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437}}}),I2=_e({"node_modules/linguist-languages/data/Less.json"(m,E){E.exports={name:"Less",type:"markup",color:"#1d365d",aliases:["less-css"],extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198}}}),O2=_e({"node_modules/linguist-languages/data/SCSS.json"(m,E){E.exports={name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329}}}),j2=_e({"src/language-css/index.js"(m,E){Re();var p=na(),b=k2(),D=L2(),f=P2(),d=[p(B2(),v=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[...v.extensions,".wxss"]})),p(M2(),()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]})),p(I2(),()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]})),p(O2(),()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}))],h={postcss:b};E.exports={languages:d,options:D,printers:h,parsers:f}}}),R2=_e({"src/language-handlebars/loc.js"(m,E){Re();function p(D){return D.loc.start.offset}function b(D){return D.loc.end.offset}E.exports={locStart:p,locEnd:b}}}),$2=_e({"src/language-handlebars/clean.js"(m,E){Re();function p(b,D){if(b.type==="TextNode"){let f=b.chars.trim();if(!f)return null;D.chars=f.replace(/[\t\n\f\r ]+/g," ")}b.type==="AttrNode"&&b.name.toLowerCase()==="class"&&delete D.value}p.ignoredProperties=new Set(["loc","selfClosing"]),E.exports=p}}),V2=_e({"src/language-handlebars/html-void-elements.evaluate.js"(m,E){E.exports=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]}}),q2=_e({"src/language-handlebars/utils.js"(m,E){Re();var p=Vr(),b=V2();function D(G){let re=G.getValue(),Z=G.getParentNode(0);return!!(k(G,["ElementNode"])&&p(Z.children)===re||k(G,["Block"])&&p(Z.body)===re)}function f(G){return G.toUpperCase()===G}function d(G){return _(G,["ElementNode"])&&typeof G.tag=="string"&&!G.tag.startsWith(":")&&(f(G.tag[0])||G.tag.includes("."))}var h=new Set(b);function v(G){return h.has(G.toLowerCase())&&!f(G[0])}function S(G){return G.selfClosing===!0||v(G.tag)||d(G)&&G.children.every(re=>L(re))}function L(G){return _(G,["TextNode"])&&!/\S/.test(G.chars)}function _(G,re){return G&&re.includes(G.type)}function k(G,re){let Z=G.getParentNode(0);return _(Z,re)}function A(G,re){let Z=Q(G);return _(Z,re)}function x(G,re){let Z=te(G);return _(Z,re)}function j(G,re){var Z,De,F,J;let w=G.getValue(),R=(Z=G.getParentNode(0))!==null&&Z!==void 0?Z:{},y=(De=(F=(J=R.children)!==null&&J!==void 0?J:R.body)!==null&&F!==void 0?F:R.parts)!==null&&De!==void 0?De:[],T=y.indexOf(w);return T!==-1&&y[T+re]}function Q(G){let re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return j(G,-re)}function te(G){return j(G,1)}function $(G){return _(G,["MustacheCommentStatement"])&&typeof G.value=="string"&&G.value.trim()==="prettier-ignore"}function X(G){let re=G.getValue(),Z=Q(G,2);return $(re)||$(Z)}E.exports={getNextNode:te,getPreviousNode:Q,hasPrettierIgnore:X,isLastNodeOfSiblings:D,isNextNodeOfSomeType:x,isNodeOfSomeType:_,isParentOfSomeType:k,isPreviousNodeOfSomeType:A,isVoid:S,isWhitespaceNode:L}}}),U2=_e({"src/language-handlebars/printer-glimmer.js"(m,E){Re();var{builders:{dedent:p,fill:b,group:D,hardline:f,ifBreak:d,indent:h,join:v,line:S,softline:L},utils:{getDocParts:_,replaceTextEndOfLine:k}}=Fn(),{getPreferredQuote:A,isNonEmptyArray:x}=ye(),{locStart:j,locEnd:Q}=R2(),te=$2(),{getNextNode:$,getPreviousNode:X,hasPrettierIgnore:G,isLastNodeOfSiblings:re,isNextNodeOfSomeType:Z,isNodeOfSomeType:De,isParentOfSomeType:F,isPreviousNodeOfSomeType:J,isVoid:w,isWhitespaceNode:R}=q2(),y=2;function T(Ee,dt,Oe){let ct=Ee.getValue();if(!ct)return"";if(G(Ee))return dt.originalText.slice(j(ct),Q(ct));let Zt=dt.singleQuote?"'":'"';switch(ct.type){case"Block":case"Program":case"Template":return D(Ee.map(Oe,"body"));case"ElementNode":{let Ut=D(q(Ee,Oe)),yt=dt.htmlWhitespaceSensitivity==="ignore"&&Z(Ee,["ElementNode"])?L:"";if(w(ct))return[Ut,yt];let V=["</",ct.tag,">"];return ct.children.length===0?[Ut,h(V),yt]:dt.htmlWhitespaceSensitivity==="ignore"?[Ut,h(U(Ee,dt,Oe)),f,h(V),yt]:[Ut,h(D(U(Ee,dt,Oe))),h(V),yt]}case"BlockStatement":{let Ut=Ee.getParentNode(1);return Ut&&Ut.inverse&&Ut.inverse.body.length===1&&Ut.inverse.body[0]===ct&&Ut.inverse.body[0].path.parts[0]===Ut.path.parts[0]?[nt(Ee,Oe,Ut.inverse.body[0].path.parts[0]),ft(Ee,Oe,dt),pt(Ee,Oe,dt)]:[ue(Ee,Oe),D([ft(Ee,Oe,dt),pt(Ee,Oe,dt),Je(Ee,Oe,dt)])]}case"ElementModifierStatement":return D(["{{",kn(Ee,Oe),"}}"]);case"MustacheStatement":return D([ie(ct),kn(Ee,Oe),ce(ct)]);case"SubExpression":return D(["(",In(Ee,Oe),L,")"]);case"AttrNode":{let Ut=ct.value.type==="TextNode";if(Ut&&ct.value.chars===""&&j(ct.value)===Q(ct.value))return ct.name;let yt=Ut?A(ct.value.chars,Zt).quote:ct.value.type==="ConcatStatement"?A(ct.value.parts.filter(Le=>Le.type==="TextNode").map(Le=>Le.chars).join(""),Zt).quote:"",V=Oe("value");return[ct.name,"=",yt,ct.name==="class"&&yt?D(h(V)):V,yt]}case"ConcatStatement":return Ee.map(Oe,"parts");case"Hash":return v(S,Ee.map(Oe,"pairs"));case"HashPair":return[ct.key,"=",Oe("value")];case"TextNode":{let Ut=ct.chars.replace(/{{/g,"\\{{"),yt=xe(Ee);if(yt){if(yt==="class"){let sn=Ut.trim().split(/\s+/).join(" "),br=!1,nn=!1;return F(Ee,["ConcatStatement"])&&(J(Ee,["MustacheStatement"])&&/^\s/.test(Ut)&&(br=!0),Z(Ee,["MustacheStatement"])&&/\s$/.test(Ut)&&sn!==""&&(nn=!0)),[br?S:"",sn,nn?S:""]}return k(Ut)}let V=/^[\t\n\f\r ]*$/.test(Ut),Le=!X(Ee),rt=!$(Ee);if(dt.htmlWhitespaceSensitivity!=="ignore"){let sn=/^[\t\n\f\r ]*/,br=/[\t\n\f\r ]*$/,nn=rt&&F(Ee,["Template"]),An=Le&&F(Ee,["Template"]);if(V){if(An||nn)return"";let Sn=[S],lt=Ye(Ut);return lt&&(Sn=Nt(lt)),re(Ee)&&(Sn=Sn.map(Fi=>p(Fi))),Sn}let[Bn]=Ut.match(sn),[ar]=Ut.match(br),an=[];if(Bn){an=[S];let Sn=Ye(Bn);Sn&&(an=Nt(Sn)),Ut=Ut.replace(sn,"")}let Tn=[];if(ar){if(!nn){Tn=[S];let Sn=Ye(ar);Sn&&(Tn=Nt(Sn)),re(Ee)&&(Tn=Tn.map(lt=>p(lt)))}Ut=Ut.replace(br,"")}return[...an,b(Jt(Ut)),...Tn]}let kt=Ye(Ut),$t=Xe(Ut),un=vt(Ut);if((Le||rt)&&V&&F(Ee,["Block","ElementNode","Template"]))return"";V&&kt?($t=Math.min(kt,y),un=0):(Z(Ee,["BlockStatement","ElementNode"])&&(un=Math.max(un,1)),J(Ee,["BlockStatement","ElementNode"])&&($t=Math.max($t,1)));let Mt="",Cr="";return un===0&&Z(Ee,["MustacheStatement"])&&(Cr=" "),$t===0&&J(Ee,["MustacheStatement"])&&(Mt=" "),Le&&($t=0,Mt=""),rt&&(un=0,Cr=""),Ut=Ut.replace(/^[\t\n\f\r ]+/g,Mt).replace(/[\t\n\f\r ]+$/,Cr),[...Nt($t),b(Jt(Ut)),...Nt(un)]}case"MustacheCommentStatement":{let Ut=j(ct),yt=Q(ct),V=dt.originalText.charAt(Ut+2)==="~",Le=dt.originalText.charAt(yt-3)==="~",rt=ct.value.includes("}}")?"--":"";return["{{",V?"~":"","!",rt,ct.value,rt,Le?"~":"","}}"]}case"PathExpression":return ct.original;case"BooleanLiteral":return String(ct.value);case"CommentStatement":return["<!--",ct.value,"-->"];case"StringLiteral":{if(cn(Ee)){let Ut=dt.singleQuote?'"':"'";return Bt(ct.value,Ut)}return Bt(ct.value,Zt)}case"NumberLiteral":return String(ct.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(ct.type))}}function M(Ee,dt){return j(Ee)-j(dt)}function q(Ee,dt){let Oe=Ee.getValue(),ct=["attributes","modifiers","comments"].filter(Ut=>x(Oe[Ut])),Zt=ct.flatMap(Ut=>Oe[Ut]).sort(M);for(let Ut of ct)Ee.each(yt=>{let V=Zt.indexOf(yt.getValue());Zt.splice(V,1,[S,dt()])},Ut);return x(Oe.blockParams)&&Zt.push(S,ot(Oe)),["<",Oe.tag,h(Zt),z(Oe)]}function U(Ee,dt,Oe){let ct=Ee.getValue().children.every(Zt=>R(Zt));return dt.htmlWhitespaceSensitivity==="ignore"&&ct?"":Ee.map((Zt,Ut)=>{let yt=Oe();return Ut===0&&dt.htmlWhitespaceSensitivity==="ignore"?[L,yt]:yt},"children")}function z(Ee){return w(Ee)?d([L,"/>"],[" />",L]):d([L,">"],">")}function ie(Ee){let dt=Ee.escaped===!1?"{{{":"{{",Oe=Ee.strip&&Ee.strip.open?"~":"";return[dt,Oe]}function ce(Ee){let dt=Ee.escaped===!1?"}}}":"}}";return[Ee.strip&&Ee.strip.close?"~":"",dt]}function ge(Ee){let dt=ie(Ee),Oe=Ee.openStrip.open?"~":"";return[dt,Oe,"#"]}function fe(Ee){let dt=ce(Ee);return[Ee.openStrip.close?"~":"",dt]}function ke(Ee){let dt=ie(Ee),Oe=Ee.closeStrip.open?"~":"";return[dt,Oe,"/"]}function se(Ee){let dt=ce(Ee);return[Ee.closeStrip.close?"~":"",dt]}function Ue(Ee){let dt=ie(Ee),Oe=Ee.inverseStrip.open?"~":"";return[dt,Oe]}function me(Ee){let dt=ce(Ee);return[Ee.inverseStrip.close?"~":"",dt]}function ue(Ee,dt){let Oe=Ee.getValue(),ct=[],Zt=Dn(Ee,dt);return Zt&&ct.push(D(Zt)),x(Oe.program.blockParams)&&ct.push(ot(Oe.program)),D([ge(Oe),ln(Ee,dt),ct.length>0?h([S,v(S,ct)]):"",L,fe(Oe)])}function Ve(Ee,dt){return[dt.htmlWhitespaceSensitivity==="ignore"?f:"",Ue(Ee),"else",me(Ee)]}function nt(Ee,dt,Oe){let ct=Ee.getValue(),Zt=Ee.getParentNode(1);return D([Ue(Zt),["else"," ",Oe],h([S,D(Dn(Ee,dt)),...x(ct.program.blockParams)?[S,ot(ct.program)]:[]]),L,me(Zt)])}function Je(Ee,dt,Oe){let ct=Ee.getValue();return Oe.htmlWhitespaceSensitivity==="ignore"?[ht(ct)?L:f,ke(ct),dt("path"),se(ct)]:[ke(ct),dt("path"),se(ct)]}function ht(Ee){return De(Ee,["BlockStatement"])&&Ee.program.body.every(dt=>R(dt))}function be(Ee){return Ie(Ee)&&Ee.inverse.body.length===1&&De(Ee.inverse.body[0],["BlockStatement"])&&Ee.inverse.body[0].path.parts[0]===Ee.path.parts[0]}function Ie(Ee){return De(Ee,["BlockStatement"])&&Ee.inverse}function ft(Ee,dt,Oe){let ct=Ee.getValue();if(ht(ct))return"";let Zt=dt("program");return Oe.htmlWhitespaceSensitivity==="ignore"?h([f,Zt]):h(Zt)}function pt(Ee,dt,Oe){let ct=Ee.getValue(),Zt=dt("inverse"),Ut=Oe.htmlWhitespaceSensitivity==="ignore"?[f,Zt]:Zt;return be(ct)?Ut:Ie(ct)?[Ve(ct,Oe),h(Ut)]:""}function Jt(Ee){return _(v(S,$e(Ee)))}function $e(Ee){return Ee.split(/[\t\n\f\r ]+/)}function xe(Ee){for(let dt=0;dt<2;dt++){let Oe=Ee.getParentNode(dt);if(Oe&&Oe.type==="AttrNode")return Oe.name.toLowerCase()}}function Ye(Ee){return Ee=typeof Ee=="string"?Ee:"",Ee.split(`
218
- `).length-1}function Xe(Ee){Ee=typeof Ee=="string"?Ee:"";let dt=(Ee.match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"";return Ye(dt)}function vt(Ee){Ee=typeof Ee=="string"?Ee:"";let dt=(Ee.match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"";return Ye(dt)}function Nt(){let Ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return Array.from({length:Math.min(Ee,y)}).fill(f)}function Bt(Ee,dt){let{quote:Oe,regex:ct}=A(Ee,dt);return[Oe,Ee.replace(ct,`\\${Oe}`),Oe]}function cn(Ee){let dt=0,Oe=Ee.getParentNode(dt);for(;Oe&&De(Oe,["SubExpression"]);)dt++,Oe=Ee.getParentNode(dt);return!!(Oe&&De(Ee.getParentNode(dt+1),["ConcatStatement"])&&De(Ee.getParentNode(dt+2),["AttrNode"]))}function In(Ee,dt){let Oe=ln(Ee,dt),ct=Dn(Ee,dt);return ct?h([Oe,S,D(ct)]):Oe}function kn(Ee,dt){let Oe=ln(Ee,dt),ct=Dn(Ee,dt);return ct?[h([Oe,S,ct]),L]:Oe}function ln(Ee,dt){return dt("path")}function Dn(Ee,dt){let Oe=Ee.getValue(),ct=[];if(Oe.params.length>0){let Zt=Ee.map(dt,"params");ct.push(...Zt)}if(Oe.hash&&Oe.hash.pairs.length>0){let Zt=dt("hash");ct.push(Zt)}return ct.length===0?"":v(S,ct)}function ot(Ee){return["as |",Ee.blockParams.join(" "),"|"]}E.exports={print:T,massageAstNode:te}}}),W2=_e({"src/language-handlebars/parsers.js"(){Re()}}),G2=_e({"node_modules/linguist-languages/data/Handlebars.json"(m,E){E.exports={name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155}}}),J2=_e({"src/language-handlebars/index.js"(m,E){Re();var p=na(),b=U2(),D=W2(),f=[p(G2(),()=>({since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}))],d={glimmer:b};E.exports={languages:f,printers:d,parsers:D}}}),Y2=_e({"src/language-graphql/pragma.js"(m,E){Re();function p(D){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(D)}function b(D){return`# @format
219
-
220
- `+D}E.exports={hasPragma:p,insertPragma:b}}}),H2=_e({"src/language-graphql/loc.js"(m,E){Re();function p(D){return typeof D.start=="number"?D.start:D.loc&&D.loc.start}function b(D){return typeof D.end=="number"?D.end:D.loc&&D.loc.end}E.exports={locStart:p,locEnd:b}}}),z2=_e({"src/language-graphql/printer-graphql.js"(m,E){Re();var{builders:{join:p,hardline:b,line:D,softline:f,group:d,indent:h,ifBreak:v}}=Fn(),{isNextLineEmpty:S,isNonEmptyArray:L}=ye(),{insertPragma:_}=Y2(),{locStart:k,locEnd:A}=H2();function x(Z,De,F){let J=Z.getValue();if(!J)return"";if(typeof J=="string")return J;switch(J.kind){case"Document":{let w=[];return Z.each((R,y,T)=>{w.push(F()),y!==T.length-1&&(w.push(b),S(De.originalText,R.getValue(),A)&&w.push(b))},"definitions"),[...w,b]}case"OperationDefinition":{let w=De.originalText[k(J)]!=="{",R=!!J.name;return[w?J.operation:"",w&&R?[" ",F("name")]:"",w&&!R&&L(J.variableDefinitions)?" ":"",L(J.variableDefinitions)?d(["(",h([f,p([v("",", "),f],Z.map(F,"variableDefinitions"))]),f,")"]):"",j(Z,F,J),J.selectionSet?!w&&!R?"":" ":"",F("selectionSet")]}case"FragmentDefinition":return["fragment ",F("name"),L(J.variableDefinitions)?d(["(",h([f,p([v("",", "),f],Z.map(F,"variableDefinitions"))]),f,")"]):""," on ",F("typeCondition"),j(Z,F,J)," ",F("selectionSet")];case"SelectionSet":return["{",h([b,p(b,Q(Z,De,F,"selections"))]),b,"}"];case"Field":return d([J.alias?[F("alias"),": "]:"",F("name"),J.arguments.length>0?d(["(",h([f,p([v("",", "),f],Q(Z,De,F,"arguments"))]),f,")"]):"",j(Z,F,J),J.selectionSet?" ":"",F("selectionSet")]);case"Name":return J.value;case"StringValue":{if(J.block){let w=J.value.replace(/"""/g,"\\$&").split(`
221
- `);return w.length===1&&(w[0]=w[0].trim()),w.every(R=>R==="")&&(w.length=0),p(b,['"""',...w,'"""'])}return['"',J.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"']}case"IntValue":case"FloatValue":case"EnumValue":return J.value;case"BooleanValue":return J.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",F("name")];case"ListValue":return d(["[",h([f,p([v("",", "),f],Z.map(F,"values"))]),f,"]"]);case"ObjectValue":return d(["{",De.bracketSpacing&&J.fields.length>0?" ":"",h([f,p([v("",", "),f],Z.map(F,"fields"))]),f,v("",De.bracketSpacing&&J.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[F("name"),": ",F("value")];case"Directive":return["@",F("name"),J.arguments.length>0?d(["(",h([f,p([v("",", "),f],Q(Z,De,F,"arguments"))]),f,")"]):""];case"NamedType":return F("name");case"VariableDefinition":return[F("variable"),": ",F("type"),J.defaultValue?[" = ",F("defaultValue")]:"",j(Z,F,J)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[F("description"),J.description?b:"",J.kind==="ObjectTypeExtension"?"extend ":"","type ",F("name"),J.interfaces.length>0?[" implements ",...X(Z,De,F)]:"",j(Z,F,J),J.fields.length>0?[" {",h([b,p(b,Q(Z,De,F,"fields"))]),b,"}"]:""];case"FieldDefinition":return[F("description"),J.description?b:"",F("name"),J.arguments.length>0?d(["(",h([f,p([v("",", "),f],Q(Z,De,F,"arguments"))]),f,")"]):"",": ",F("type"),j(Z,F,J)];case"DirectiveDefinition":return[F("description"),J.description?b:"","directive ","@",F("name"),J.arguments.length>0?d(["(",h([f,p([v("",", "),f],Q(Z,De,F,"arguments"))]),f,")"]):"",J.repeatable?" repeatable":""," on ",p(" | ",Z.map(F,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[F("description"),J.description?b:"",J.kind==="EnumTypeExtension"?"extend ":"","enum ",F("name"),j(Z,F,J),J.values.length>0?[" {",h([b,p(b,Q(Z,De,F,"values"))]),b,"}"]:""];case"EnumValueDefinition":return[F("description"),J.description?b:"",F("name"),j(Z,F,J)];case"InputValueDefinition":return[F("description"),J.description?J.description.block?b:D:"",F("name"),": ",F("type"),J.defaultValue?[" = ",F("defaultValue")]:"",j(Z,F,J)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[F("description"),J.description?b:"",J.kind==="InputObjectTypeExtension"?"extend ":"","input ",F("name"),j(Z,F,J),J.fields.length>0?[" {",h([b,p(b,Q(Z,De,F,"fields"))]),b,"}"]:""];case"SchemaExtension":return["extend schema",j(Z,F,J),...J.operationTypes.length>0?[" {",h([b,p(b,Q(Z,De,F,"operationTypes"))]),b,"}"]:[]];case"SchemaDefinition":return[F("description"),J.description?b:"","schema",j(Z,F,J)," {",J.operationTypes.length>0?h([b,p(b,Q(Z,De,F,"operationTypes"))]):"",b,"}"];case"OperationTypeDefinition":return[F("operation"),": ",F("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[F("description"),J.description?b:"",J.kind==="InterfaceTypeExtension"?"extend ":"","interface ",F("name"),J.interfaces.length>0?[" implements ",...X(Z,De,F)]:"",j(Z,F,J),J.fields.length>0?[" {",h([b,p(b,Q(Z,De,F,"fields"))]),b,"}"]:""];case"FragmentSpread":return["...",F("name"),j(Z,F,J)];case"InlineFragment":return["...",J.typeCondition?[" on ",F("typeCondition")]:"",j(Z,F,J)," ",F("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return d([F("description"),J.description?b:"",d([J.kind==="UnionTypeExtension"?"extend ":"","union ",F("name"),j(Z,F,J),J.types.length>0?[" =",v(""," "),h([v([D," "]),p([D,"| "],Z.map(F,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[F("description"),J.description?b:"",J.kind==="ScalarTypeExtension"?"extend ":"","scalar ",F("name"),j(Z,F,J)];case"NonNullType":return[F("type"),"!"];case"ListType":return["[",F("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(J.kind))}}function j(Z,De,F){if(F.directives.length===0)return"";let J=p(D,Z.map(De,"directives"));return F.kind==="FragmentDefinition"||F.kind==="OperationDefinition"?d([D,J]):[" ",d(h([f,J]))]}function Q(Z,De,F,J){return Z.map((w,R,y)=>{let T=F();return R<y.length-1&&S(De.originalText,w.getValue(),A)?[T,b]:T},J)}function te(Z){return Z.kind&&Z.kind!=="Comment"}function $(Z){let De=Z.getValue();if(De.kind==="Comment")return"#"+De.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(De))}function X(Z,De,F){let J=Z.getNode(),w=[],{interfaces:R}=J,y=Z.map(T=>F(T),"interfaces");for(let T=0;T<R.length;T++){let M=R[T];w.push(y[T]);let q=R[T+1];if(q){let U=De.originalText.slice(M.loc.end,q.loc.start),z=U.includes("#"),ie=U.replace(/#.*/g,"").trim();w.push(ie===","?",":" &",z?D:" ")}}return w}function G(Z,De){Z.kind==="StringValue"&&Z.block&&!Z.value.includes(`
222
- `)&&(De.value=De.value.trim())}G.ignoredProperties=new Set(["loc","comments"]);function re(Z){var De;let F=Z.getValue();return F==null||(De=F.comments)===null||De===void 0?void 0:De.some(J=>J.value.trim()==="prettier-ignore")}E.exports={print:x,massageAstNode:G,hasPrettierIgnore:re,insertPragma:_,printComment:$,canAttachComment:te}}}),Q2=_e({"src/language-graphql/options.js"(m,E){Re();var p=Xa();E.exports={bracketSpacing:p.bracketSpacing}}}),X2=_e({"src/language-graphql/parsers.js"(){Re()}}),K2=_e({"node_modules/linguist-languages/data/GraphQL.json"(m,E){E.exports={name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139}}}),Z2=_e({"src/language-graphql/index.js"(m,E){Re();var p=na(),b=z2(),D=Q2(),f=X2(),d=[p(K2(),()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}))],h={graphql:b};E.exports={languages:d,options:D,printers:h,parsers:f}}}),Wm=_e({"node_modules/collapse-white-space/index.js"(m,E){Re(),E.exports=p;function p(b){return String(b).replace(/\s+/g," ")}}}),Gm=_e({"src/language-markdown/loc.js"(m,E){Re();function p(D){return D.position.start.offset}function b(D){return D.position.end.offset}E.exports={locStart:p,locEnd:b}}}),eE=_e({"src/language-markdown/constants.evaluate.js"(m,E){E.exports={cjkPattern:"(?:[\\u02ea-\\u02eb\\u1100-\\u11ff\\u2e80-\\u2e99\\u2e9b-\\u2ef3\\u2f00-\\u2fd5\\u2ff0-\\u303f\\u3041-\\u3096\\u3099-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312f\\u3131-\\u318e\\u3190-\\u3191\\u3196-\\u31ba\\u31c0-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4db5\\u4e00-\\u9fef\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufe10-\\ufe1f\\ufe30-\\ufe6f\\uff00-\\uffef]|[\\ud840-\\ud868\\ud86a-\\ud86c\\ud86f-\\ud872\\ud874-\\ud879][\\udc00-\\udfff]|\\ud82c[\\udc00-\\udd1e\\udd50-\\udd52\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\uded6\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf34\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"}}}),Kf=_e({"src/language-markdown/utils.js"(m,E){Re();var{getLast:p}=ye(),{locStart:b,locEnd:D}=Gm(),{cjkPattern:f,kPattern:d,punctuationPattern:h}=eE(),v=["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],S=[...v,"tableCell","paragraph","heading"],L=new RegExp(d),_=new RegExp(h);function k($,X){let G="non-cjk",re="cj-letter",Z="k-letter",De="cjk-punctuation",F=[],J=(X.proseWrap==="preserve"?$:$.replace(new RegExp(`(${f})
223
- (${f})`,"g"),"$1$2")).split(/([\t\n ]+)/);for(let[R,y]of J.entries()){if(R%2===1){F.push({type:"whitespace",value:/\n/.test(y)?`
224
- `:" "});continue}if((R===0||R===J.length-1)&&y==="")continue;let T=y.split(new RegExp(`(${f})`));for(let[M,q]of T.entries())if(!((M===0||M===T.length-1)&&q==="")){if(M%2===0){q!==""&&w({type:"word",value:q,kind:G,hasLeadingPunctuation:_.test(q[0]),hasTrailingPunctuation:_.test(p(q))});continue}w(_.test(q)?{type:"word",value:q,kind:De,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:q,kind:L.test(q)?Z:re,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return F;function w(R){let y=p(F);y&&y.type==="word"&&(y.kind===G&&R.kind===re&&!y.hasTrailingPunctuation||y.kind===re&&R.kind===G&&!R.hasLeadingPunctuation?F.push({type:"whitespace",value:" "}):!T(G,De)&&![y.value,R.value].some(M=>/\u3000/.test(M))&&F.push({type:"whitespace",value:""})),F.push(R);function T(M,q){return y.kind===M&&R.kind===q||y.kind===q&&R.kind===M}}}function A($,X){let[,G,re,Z]=X.slice($.position.start.offset,$.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:G,marker:re,leadingSpaces:Z}}function x($,X){if(!$.ordered||$.children.length<2)return!1;let G=Number(A($.children[0],X.originalText).numberText),re=Number(A($.children[1],X.originalText).numberText);if(G===0&&$.children.length>2){let Z=Number(A($.children[2],X.originalText).numberText);return re===1&&Z===1}return re===1}function j($,X){let{value:G}=$;return $.position.end.offset===X.length&&G.endsWith(`
225
- `)&&X.endsWith(`
226
- `)?G.slice(0,-1):G}function Q($,X){return function G(re,Z,De){let F=Object.assign({},X(re,Z,De));return F.children&&(F.children=F.children.map((J,w)=>G(J,w,[F,...De]))),F}($,null,[])}function te($){if(($==null?void 0:$.type)!=="link"||$.children.length!==1)return!1;let[X]=$.children;return b($)===b(X)&&D($)===D(X)}E.exports={mapAst:Q,splitText:k,punctuationPattern:h,getFencedCodeBlockValue:j,getOrderedListItemInfo:A,hasGitDiffFriendlyOrderedList:x,INLINE_NODE_TYPES:v,INLINE_NODE_WRAPPER_TYPES:S,isAutolink:te}}}),tE=_e({"src/language-markdown/embed.js"(m,E){Re();var{inferParserByLanguage:p,getMaxContinuousCount:b}=ye(),{builders:{hardline:D,markAsRoot:f},utils:{replaceEndOfLine:d}}=Fn(),h=Xf(),{getFencedCodeBlockValue:v}=Kf();function S(L,_,k,A){let x=L.getValue();if(x.type==="code"&&x.lang!==null){let j=p(x.lang,A);if(j){let Q=A.__inJsTemplate?"~":"`",te=Q.repeat(Math.max(3,b(x.value,Q)+1)),$={parser:j};x.lang==="tsx"&&($.filepath="dummy.tsx");let X=k(v(x,A.originalText),$,{stripTrailingHardline:!0});return f([te,x.lang,x.meta?" "+x.meta:"",D,d(X),D,te])}}switch(x.type){case"front-matter":return h(x,k);case"importExport":return[k(x.value,{parser:"babel"},{stripTrailingHardline:!0}),D];case"jsx":return k(`<$>${x.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null}E.exports=S}}),Jm=_e({"src/language-markdown/pragma.js"(m,E){Re();var p=Um(),b=["format","prettier"];function D(f){let d=`@(${b.join("|")})`,h=new RegExp([`<!--\\s*${d}\\s*-->`,`{\\s*\\/\\*\\s*${d}\\s*\\*\\/\\s*}`,`<!--.*\r?
227
- [\\s\\S]*(^|
228
- )[^\\S
229
- ]*${d}[^\\S
230
- ]*($|
231
- )[\\s\\S]*
232
- .*-->`].join("|"),"m"),v=f.match(h);return(v==null?void 0:v.index)===0}E.exports={startWithPragma:D,hasPragma:f=>D(p(f).content.trimStart()),insertPragma:f=>{let d=p(f),h=`<!-- @${b[0]} -->`;return d.frontMatter?`${d.frontMatter.raw}
233
-
234
- ${h}
235
-
236
- ${d.content}`:`${h}
237
-
238
- ${d.content}`}}}}),nE=_e({"src/language-markdown/print-preprocess.js"(m,E){Re();var p=Vr(),{getOrderedListItemInfo:b,mapAst:D,splitText:f}=Kf(),d=/^.$/su;function h(te,$){return te=L(te,$),te=A(te),te=S(te,$),te=j(te,$),te=Q(te,$),te=x(te,$),te=v(te),te=_(te),te}function v(te){return D(te,$=>$.type!=="import"&&$.type!=="export"?$:Object.assign(Object.assign({},$),{},{type:"importExport"}))}function S(te,$){return D(te,X=>X.type!=="inlineCode"||$.proseWrap==="preserve"?X:Object.assign(Object.assign({},X),{},{value:X.value.replace(/\s+/g," ")}))}function L(te,$){return D(te,X=>X.type!=="text"||X.value==="*"||X.value==="_"||!d.test(X.value)||X.position.end.offset-X.position.start.offset===X.value.length?X:Object.assign(Object.assign({},X),{},{value:$.originalText.slice(X.position.start.offset,X.position.end.offset)}))}function _(te){return k(te,($,X)=>$.type==="importExport"&&X.type==="importExport",($,X)=>({type:"importExport",value:$.value+`
239
-
240
- `+X.value,position:{start:$.position.start,end:X.position.end}}))}function k(te,$,X){return D(te,G=>{if(!G.children)return G;let re=G.children.reduce((Z,De)=>{let F=p(Z);return F&&$(F,De)?Z.splice(-1,1,X(F,De)):Z.push(De),Z},[]);return Object.assign(Object.assign({},G),{},{children:re})})}function A(te){return k(te,($,X)=>$.type==="text"&&X.type==="text",($,X)=>({type:"text",value:$.value+X.value,position:{start:$.position.start,end:X.position.end}}))}function x(te,$){return D(te,(X,G,re)=>{let[Z]=re;if(X.type!=="text")return X;let{value:De}=X;return Z.type==="paragraph"&&(G===0&&(De=De.trimStart()),G===Z.children.length-1&&(De=De.trimEnd())),{type:"sentence",position:X.position,children:f(De,$)}})}function j(te,$){return D(te,(X,G,re)=>{if(X.type==="code"){let Z=/^\n?(?: {4,}|\t)/.test($.originalText.slice(X.position.start.offset,X.position.end.offset));if(X.isIndented=Z,Z)for(let De=0;De<re.length;De++){let F=re[De];if(F.hasIndentedCodeblock)break;F.type==="list"&&(F.hasIndentedCodeblock=!0)}}return X})}function Q(te,$){return D(te,(re,Z,De)=>{if(re.type==="list"&&re.children.length>0){for(let F=0;F<De.length;F++){let J=De[F];if(J.type==="list"&&!J.isAligned)return re.isAligned=!1,re}re.isAligned=G(re)}return re});function X(re){return re.children.length===0?-1:re.children[0].position.start.column-1}function G(re){if(!re.ordered)return!0;let[Z,De]=re.children;if(b(Z,$.originalText).leadingSpaces.length>1)return!0;let F=X(Z);if(F===-1)return!1;if(re.children.length===1)return F%$.tabWidth===0;let J=X(De);return F!==J?!1:F%$.tabWidth===0?!0:b(De,$.originalText).leadingSpaces.length>1}}E.exports=h}}),rE=_e({"src/language-markdown/clean.js"(m,E){Re();var p=Wm(),{isFrontMatterNode:b}=ye(),{startWithPragma:D}=Jm(),f=new Set(["position","raw"]);function d(h,v,S){if((h.type==="front-matter"||h.type==="code"||h.type==="yaml"||h.type==="import"||h.type==="export"||h.type==="jsx")&&delete v.value,h.type==="list"&&delete v.isAligned,(h.type==="list"||h.type==="listItem")&&(delete v.spread,delete v.loose),h.type==="text"||(h.type==="inlineCode"&&(v.value=h.value.replace(/[\t\n ]+/g," ")),h.type==="wikiLink"&&(v.value=h.value.trim().replace(/[\t\n]+/g," ")),(h.type==="definition"||h.type==="linkReference"||h.type==="imageReference")&&(v.label=p(h.label)),(h.type==="definition"||h.type==="link"||h.type==="image")&&h.title&&(v.title=h.title.replace(/\\(["')])/g,"$1")),S&&S.type==="root"&&S.children.length>0&&(S.children[0]===h||b(S.children[0])&&S.children[1]===h)&&h.type==="html"&&D(h.value)))return null}d.ignoredProperties=f,E.exports=d}}),iE=_e({"src/language-markdown/printer-markdown.js"(m,E){Re();var p=Wm(),{getLast:b,getMinNotPresentContinuousCount:D,getMaxContinuousCount:f,getStringWidth:d,isNonEmptyArray:h}=ye(),{builders:{breakParent:v,join:S,line:L,literalline:_,markAsRoot:k,hardline:A,softline:x,ifBreak:j,fill:Q,align:te,indent:$,group:X,hardlineWithoutBreakParent:G},utils:{normalizeDoc:re,replaceTextEndOfLine:Z},printer:{printDocToString:De}}=Fn(),F=tE(),{insertPragma:J}=Jm(),{locStart:w,locEnd:R}=Gm(),y=nE(),T=rE(),{getFencedCodeBlockValue:M,hasGitDiffFriendlyOrderedList:q,splitText:U,punctuationPattern:z,INLINE_NODE_TYPES:ie,INLINE_NODE_WRAPPER_TYPES:ce,isAutolink:ge}=Kf(),fe=new Set(["importExport"]),ke=["heading","tableCell","link","wikiLink"],se=new Set(["listItem","definition","footnoteDefinition"]);function Ue(ot,Ee,dt){let Oe=ot.getValue();if(Nt(ot))return U(Ee.originalText.slice(Oe.position.start.offset,Oe.position.end.offset),Ee).map(ct=>ct.type==="word"?ct.value:ct.value===""?"":be(ot,ct.value,Ee));switch(Oe.type){case"front-matter":return Ee.originalText.slice(Oe.position.start.offset,Oe.position.end.offset);case"root":return Oe.children.length===0?"":[re(ft(ot,Ee,dt)),fe.has($e(Oe).type)?"":A];case"paragraph":return pt(ot,Ee,dt,{postprocessor:Q});case"sentence":return pt(ot,Ee,dt);case"word":{let ct=Oe.value.replace(/\*/g,"\\$&").replace(new RegExp([`(^|${z})(_+)`,`(_+)(${z}|$)`].join("|"),"g"),(yt,V,Le,rt,kt)=>(Le?`${V}${Le}`:`${rt}${kt}`).replace(/_/g,"\\_")),Zt=(yt,V,Le)=>yt.type==="sentence"&&Le===0,Ut=(yt,V,Le)=>ge(yt.children[Le-1]);return ct!==Oe.value&&(ot.match(void 0,Zt,Ut)||ot.match(void 0,Zt,(yt,V,Le)=>yt.type==="emphasis"&&Le===0,Ut))&&(ct=ct.replace(/^(\\?[*_])+/,yt=>yt.replace(/\\/g,""))),ct}case"whitespace":{let ct=ot.getParentNode(),Zt=ct.children.indexOf(Oe),Ut=ct.children[Zt+1],yt=Ut&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(Ut.value)?"never":Ee.proseWrap;return be(ot,Oe.value,{proseWrap:yt})}case"emphasis":{let ct;if(ge(Oe.children[0]))ct=Ee.originalText[Oe.position.start.offset];else{let Zt=ot.getParentNode(),Ut=Zt.children.indexOf(Oe),yt=Zt.children[Ut-1],V=Zt.children[Ut+1];ct=yt&&yt.type==="sentence"&&yt.children.length>0&&b(yt.children).type==="word"&&!b(yt.children).hasTrailingPunctuation||V&&V.type==="sentence"&&V.children.length>0&&V.children[0].type==="word"&&!V.children[0].hasLeadingPunctuation||ht(ot,"emphasis")?"*":"_"}return[ct,pt(ot,Ee,dt),ct]}case"strong":return["**",pt(ot,Ee,dt),"**"];case"delete":return["~~",pt(ot,Ee,dt),"~~"];case"inlineCode":{let ct=D(Oe.value,"`"),Zt="`".repeat(ct||1),Ut=ct&&!/^\s/.test(Oe.value)?" ":"";return[Zt,Ut,Oe.value,Ut,Zt]}case"wikiLink":{let ct="";return Ee.proseWrap==="preserve"?ct=Oe.value:ct=Oe.value.replace(/[\t\n]+/g," "),["[[",ct,"]]"]}case"link":switch(Ee.originalText[Oe.position.start.offset]){case"<":{let ct="mailto:";return["<",Oe.url.startsWith(ct)&&Ee.originalText.slice(Oe.position.start.offset+1,Oe.position.start.offset+1+ct.length)!==ct?Oe.url.slice(ct.length):Oe.url,">"]}case"[":return["[",pt(ot,Ee,dt),"](",Bt(Oe.url,")"),cn(Oe.title,Ee),")"];default:return Ee.originalText.slice(Oe.position.start.offset,Oe.position.end.offset)}case"image":return["![",Oe.alt||"","](",Bt(Oe.url,")"),cn(Oe.title,Ee),")"];case"blockquote":return["> ",te("> ",pt(ot,Ee,dt))];case"heading":return["#".repeat(Oe.depth)+" ",pt(ot,Ee,dt)];case"code":{if(Oe.isIndented){let Ut=" ".repeat(4);return te(Ut,[Ut,...Z(Oe.value,A)])}let ct=Ee.__inJsTemplate?"~":"`",Zt=ct.repeat(Math.max(3,f(Oe.value,ct)+1));return[Zt,Oe.lang||"",Oe.meta?" "+Oe.meta:"",A,...Z(M(Oe,Ee.originalText),A),A,Zt]}case"html":{let ct=ot.getParentNode(),Zt=ct.type==="root"&&b(ct.children)===Oe?Oe.value.trimEnd():Oe.value,Ut=/^<!--.*-->$/s.test(Zt);return Z(Zt,Ut?A:k(_))}case"list":{let ct=Ve(Oe,ot.getParentNode()),Zt=q(Oe,Ee);return pt(ot,Ee,dt,{processor:(Ut,yt)=>{let V=rt(),Le=Ut.getValue();if(Le.children.length===2&&Le.children[1].type==="html"&&Le.children[0].position.start.column!==Le.children[1].position.start.column)return[V,me(Ut,Ee,dt,V)];return[V,te(" ".repeat(V.length),me(Ut,Ee,dt,V))];function rt(){let kt=Oe.ordered?(yt===0?Oe.start:Zt?1:Oe.start+yt)+(ct%2===0?". ":") "):ct%2===0?"- ":"* ";return Oe.isAligned||Oe.hasIndentedCodeblock?ue(kt,Ee):kt}}})}case"thematicBreak":{let ct=Je(ot,"list");return ct===-1?"---":Ve(ot.getParentNode(ct),ot.getParentNode(ct+1))%2===0?"***":"---"}case"linkReference":return["[",pt(ot,Ee,dt),"]",Oe.referenceType==="full"?ln(Oe):Oe.referenceType==="collapsed"?"[]":""];case"imageReference":switch(Oe.referenceType){case"full":return["![",Oe.alt||"","]",ln(Oe)];default:return["![",Oe.alt,"]",Oe.referenceType==="collapsed"?"[]":""]}case"definition":{let ct=Ee.proseWrap==="always"?L:" ";return X([ln(Oe),":",$([ct,Bt(Oe.url),Oe.title===null?"":[ct,cn(Oe.title,Ee,!1)]])])}case"footnote":return["[^",pt(ot,Ee,dt),"]"];case"footnoteReference":return Dn(Oe);case"footnoteDefinition":{let ct=ot.getParentNode().children[ot.getName()+1],Zt=Oe.children.length===1&&Oe.children[0].type==="paragraph"&&(Ee.proseWrap==="never"||Ee.proseWrap==="preserve"&&Oe.children[0].position.start.line===Oe.children[0].position.end.line);return[Dn(Oe),": ",Zt?pt(ot,Ee,dt):X([te(" ".repeat(4),pt(ot,Ee,dt,{processor:(Ut,yt)=>yt===0?X([x,dt()]):dt()})),ct&&ct.type==="footnoteDefinition"?x:""])]}case"table":return Ie(ot,Ee,dt);case"tableCell":return pt(ot,Ee,dt);case"break":return/\s/.test(Ee.originalText[Oe.position.start.offset])?[" ",k(_)]:["\\",A];case"liquidNode":return Z(Oe.value,A);case"importExport":return[Oe.value,A];case"esComment":return["{/* ",Oe.value," */}"];case"jsx":return Oe.value;case"math":return["$$",A,Oe.value?[...Z(Oe.value,A),A]:"","$$"];case"inlineMath":return Ee.originalText.slice(w(Oe),R(Oe));case"tableRow":case"listItem":default:throw new Error(`Unknown markdown type ${JSON.stringify(Oe.type)}`)}}function me(ot,Ee,dt,Oe){let ct=ot.getValue(),Zt=ct.checked===null?"":ct.checked?"[x] ":"[ ] ";return[Zt,pt(ot,Ee,dt,{processor:(Ut,yt)=>{if(yt===0&&Ut.getValue().type!=="list")return te(" ".repeat(Zt.length),dt());let V=" ".repeat(In(Ee.tabWidth-Oe.length,0,3));return[V,te(V,dt())]}})]}function ue(ot,Ee){let dt=Oe();return ot+" ".repeat(dt>=4?0:dt);function Oe(){let ct=ot.length%Ee.tabWidth;return ct===0?0:Ee.tabWidth-ct}}function Ve(ot,Ee){return nt(ot,Ee,dt=>dt.ordered===ot.ordered)}function nt(ot,Ee,dt){let Oe=-1;for(let ct of Ee.children)if(ct.type===ot.type&&dt(ct)?Oe++:Oe=-1,ct===ot)return Oe}function Je(ot,Ee){let dt=Array.isArray(Ee)?Ee:[Ee],Oe=-1,ct;for(;ct=ot.getParentNode(++Oe);)if(dt.includes(ct.type))return Oe;return-1}function ht(ot,Ee){let dt=Je(ot,Ee);return dt===-1?null:ot.getParentNode(dt)}function be(ot,Ee,dt){if(dt.proseWrap==="preserve"&&Ee===`
241
- `)return A;let Oe=dt.proseWrap==="always"&&!ht(ot,ke);return Ee!==""?Oe?L:" ":Oe?x:""}function Ie(ot,Ee,dt){let Oe=ot.getValue(),ct=[],Zt=ot.map(kt=>kt.map(($t,un)=>{let Mt=De(dt(),Ee).formatted,Cr=d(Mt);return ct[un]=Math.max(ct[un]||3,Cr),{text:Mt,width:Cr}},"children"),"children"),Ut=V(!1);if(Ee.proseWrap!=="never")return[v,Ut];let yt=V(!0);return[v,X(j(yt,Ut))];function V(kt){let $t=[rt(Zt[0],kt),Le(kt)];return Zt.length>1&&$t.push(S(G,Zt.slice(1).map(un=>rt(un,kt)))),S(G,$t)}function Le(kt){return`| ${ct.map(($t,un)=>{let Mt=Oe.align[un],Cr=Mt==="center"||Mt==="left"?":":"-",sn=Mt==="center"||Mt==="right"?":":"-",br=kt?"-":"-".repeat($t-2);return`${Cr}${br}${sn}`}).join(" | ")} |`}function rt(kt,$t){return`| ${kt.map((un,Mt)=>{let{text:Cr,width:sn}=un;if($t)return Cr;let br=ct[Mt]-sn,nn=Oe.align[Mt],An=0;nn==="right"?An=br:nn==="center"&&(An=Math.floor(br/2));let Bn=br-An;return`${" ".repeat(An)}${Cr}${" ".repeat(Bn)}`}).join(" | ")} |`}}function ft(ot,Ee,dt){let Oe=[],ct=null,{children:Zt}=ot.getValue();for(let[Ut,yt]of Zt.entries())switch(xe(yt)){case"start":ct===null&&(ct={index:Ut,offset:yt.position.end.offset});break;case"end":ct!==null&&(Oe.push({start:ct,end:{index:Ut,offset:yt.position.start.offset}}),ct=null);break}return pt(ot,Ee,dt,{processor:(Ut,yt)=>{if(Oe.length>0){let V=Oe[0];if(yt===V.start.index)return[Jt(Zt[V.start.index]),Ee.originalText.slice(V.start.offset,V.end.offset),Jt(Zt[V.end.index])];if(V.start.index<yt&&yt<V.end.index)return!1;if(yt===V.end.index)return Oe.shift(),!1}return dt()}})}function pt(ot,Ee,dt){let Oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},{postprocessor:ct}=Oe,Zt=Oe.processor||(()=>dt()),Ut=ot.getValue(),yt=[],V;return ot.each((Le,rt)=>{let kt=Le.getValue(),$t=Zt(Le,rt);if($t!==!1){let un={parts:yt,prevNode:V,parentNode:Ut,options:Ee};Ye(kt,un)&&(yt.push(A),V&&fe.has(V.type)||(Xe(kt,un)||vt(kt,un))&&yt.push(A),vt(kt,un)&&yt.push(A)),yt.push($t),V=kt}},"children"),ct?ct(yt):yt}function Jt(ot){if(ot.type==="html")return ot.value;if(ot.type==="paragraph"&&Array.isArray(ot.children)&&ot.children.length===1&&ot.children[0].type==="esComment")return["{/* ",ot.children[0].value," */}"]}function $e(ot){let Ee=ot;for(;h(Ee.children);)Ee=b(Ee.children);return Ee}function xe(ot){let Ee;if(ot.type==="html")Ee=ot.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);else{let dt;ot.type==="esComment"?dt=ot:ot.type==="paragraph"&&ot.children.length===1&&ot.children[0].type==="esComment"&&(dt=ot.children[0]),dt&&(Ee=dt.value.match(/^prettier-ignore(?:-(start|end))?$/))}return Ee?Ee[1]||"next":!1}function Ye(ot,Ee){let dt=Ee.parts.length===0,Oe=ie.includes(ot.type),ct=ot.type==="html"&&ce.includes(Ee.parentNode.type);return!dt&&!Oe&&!ct}function Xe(ot,Ee){var dt,Oe,ct;let Zt=(Ee.prevNode&&Ee.prevNode.type)===ot.type&&se.has(ot.type),Ut=Ee.parentNode.type==="listItem"&&!Ee.parentNode.loose,yt=((dt=Ee.prevNode)===null||dt===void 0?void 0:dt.type)==="listItem"&&Ee.prevNode.loose,V=xe(Ee.prevNode)==="next",Le=ot.type==="html"&&((Oe=Ee.prevNode)===null||Oe===void 0?void 0:Oe.type)==="html"&&Ee.prevNode.position.end.line+1===ot.position.start.line,rt=ot.type==="html"&&Ee.parentNode.type==="listItem"&&((ct=Ee.prevNode)===null||ct===void 0?void 0:ct.type)==="paragraph"&&Ee.prevNode.position.end.line+1===ot.position.start.line;return yt||!(Zt||Ut||V||Le||rt)}function vt(ot,Ee){let dt=Ee.prevNode&&Ee.prevNode.type==="list",Oe=ot.type==="code"&&ot.isIndented;return dt&&Oe}function Nt(ot){let Ee=ht(ot,["linkReference","imageReference"]);return Ee&&(Ee.type!=="linkReference"||Ee.referenceType!=="full")}function Bt(ot){let Ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],dt=[" ",...Array.isArray(Ee)?Ee:[Ee]];return new RegExp(dt.map(Oe=>`\\${Oe}`).join("|")).test(ot)?`<${ot}>`:ot}function cn(ot,Ee){let dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!ot)return"";if(dt)return" "+cn(ot,Ee,!1);if(ot=ot.replace(/\\(["')])/g,"$1"),ot.includes('"')&&ot.includes("'")&&!ot.includes(")"))return`(${ot})`;let Oe=ot.split("'").length-1,ct=ot.split('"').length-1,Zt=Oe>ct?'"':ct>Oe||Ee.singleQuote?"'":'"';return ot=ot.replace(/\\/,"\\\\"),ot=ot.replace(new RegExp(`(${Zt})`,"g"),"\\$1"),`${Zt}${ot}${Zt}`}function In(ot,Ee,dt){return ot<Ee?Ee:ot>dt?dt:ot}function kn(ot){let Ee=Number(ot.getName());if(Ee===0)return!1;let dt=ot.getParentNode().children[Ee-1];return xe(dt)==="next"}function ln(ot){return`[${p(ot.label)}]`}function Dn(ot){return`[^${ot.label}]`}E.exports={preprocess:y,print:Ue,embed:F,massageAstNode:T,hasPrettierIgnore:kn,insertPragma:J}}}),sE=_e({"src/language-markdown/options.js"(m,E){Re();var p=Xa();E.exports={proseWrap:p.proseWrap,singleQuote:p.singleQuote}}}),aE=_e({"src/language-markdown/parsers.js"(){Re()}}),Ym=_e({"node_modules/linguist-languages/data/Markdown.json"(m,E){E.exports={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222}}}),oE=_e({"src/language-markdown/index.js"(m,E){Re();var p=na(),b=iE(),D=sE(),f=aE(),d=[p(Ym(),v=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[...v.filenames,"README"],extensions:v.extensions.filter(S=>S!==".mdx")})),p(Ym(),()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}))],h={mdast:b};E.exports={languages:d,options:D,printers:h,parsers:f}}}),uE=_e({"src/language-html/clean.js"(m,E){Re();var{isFrontMatterNode:p}=ye(),b=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function D(f,d){if(f.type==="text"||f.type==="comment"||p(f)||f.type==="yaml"||f.type==="toml")return null;f.type==="attribute"&&delete d.value,f.type==="docType"&&delete d.value}D.ignoredProperties=b,E.exports=D}}),lE=_e({"src/language-html/constants.evaluate.js"(m,E){E.exports={CSS_DISPLAY_TAGS:{area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",source:"block",style:"none",template:"inline",track:"block",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",fieldset:"block",button:"inline-block",details:"block",summary:"block",dialog:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"}}}),cE=_e({"src/language-html/utils/is-unknown-namespace.js"(m,E){Re();function p(b){return b.type==="element"&&!b.hasExplicitNamespace&&!["html","svg"].includes(b.namespace)}E.exports=p}}),Ka=_e({"src/language-html/utils/index.js"(m,E){Re();var{inferParserByLanguage:p,isFrontMatterNode:b}=ye(),{builders:{line:D,hardline:f,join:d},utils:{getDocParts:h,replaceTextEndOfLine:v}}=Fn(),{CSS_DISPLAY_TAGS:S,CSS_DISPLAY_DEFAULT:L,CSS_WHITE_SPACE_TAGS:_,CSS_WHITE_SPACE_DEFAULT:k}=lE(),A=cE(),x=new Set([" ",`
242
- `,"\f","\r"," "]),j=V=>V.replace(/^[\t\n\f\r ]+/,""),Q=V=>V.replace(/[\t\n\f\r ]+$/,""),te=V=>j(Q(V)),$=V=>V.replace(/^[\t\f\r ]*\n/g,""),X=V=>$(Q(V)),G=V=>V.split(/[\t\n\f\r ]+/),re=V=>V.match(/^[\t\n\f\r ]*/)[0],Z=V=>{let[,Le,rt,kt]=V.match(/^([\t\n\f\r ]*)(.*?)([\t\n\f\r ]*)$/s);return{leadingWhitespace:Le,trailingWhitespace:kt,text:rt}},De=V=>/[\t\n\f\r ]/.test(V);function F(V,Le){return!!(V.type==="ieConditionalComment"&&V.lastChild&&!V.lastChild.isSelfClosing&&!V.lastChild.endSourceSpan||V.type==="ieConditionalComment"&&!V.complete||Xe(V)&&V.children.some(rt=>rt.type!=="text"&&rt.type!=="interpolation")||Oe(V,Le)&&!y(V)&&V.type!=="interpolation")}function J(V){return V.type==="attribute"||!V.parent||!V.prev?!1:w(V.prev)}function w(V){return V.type==="comment"&&V.value.trim()==="prettier-ignore"}function R(V){return V.type==="text"||V.type==="comment"}function y(V){return V.type==="element"&&(V.fullName==="script"||V.fullName==="style"||V.fullName==="svg:style"||A(V)&&(V.name==="script"||V.name==="style"))}function T(V){return V.children&&!y(V)}function M(V){return y(V)||V.type==="interpolation"||q(V)}function q(V){return cn(V).startsWith("pre")}function U(V,Le){let rt=kt();if(rt&&!V.prev&&V.parent&&V.parent.tagDefinition&&V.parent.tagDefinition.ignoreFirstLf)return V.type==="interpolation";return rt;function kt(){return b(V)?!1:(V.type==="text"||V.type==="interpolation")&&V.prev&&(V.prev.type==="text"||V.prev.type==="interpolation")?!0:!V.parent||V.parent.cssDisplay==="none"?!1:Xe(V.parent)?!0:!(!V.prev&&(V.parent.type==="root"||Xe(V)&&V.parent||y(V.parent)||Ee(V.parent,Le)||!pt(V.parent.cssDisplay))||V.prev&&!xe(V.prev.cssDisplay))}}function z(V,Le){return b(V)?!1:(V.type==="text"||V.type==="interpolation")&&V.next&&(V.next.type==="text"||V.next.type==="interpolation")?!0:!V.parent||V.parent.cssDisplay==="none"?!1:Xe(V.parent)?!0:!(!V.next&&(V.parent.type==="root"||Xe(V)&&V.parent||y(V.parent)||Ee(V.parent,Le)||!Jt(V.parent.cssDisplay))||V.next&&!$e(V.next.cssDisplay))}function ie(V){return Ye(V.cssDisplay)&&!y(V)}function ce(V){return b(V)||V.next&&V.sourceSpan.end&&V.sourceSpan.end.line+1<V.next.sourceSpan.start.line}function ge(V){return fe(V)||V.type==="element"&&V.children.length>0&&(["body","script","style"].includes(V.name)||V.children.some(Le=>Je(Le)))||V.firstChild&&V.firstChild===V.lastChild&&V.firstChild.type!=="text"&&me(V.firstChild)&&(!V.lastChild.isTrailingSpaceSensitive||ue(V.lastChild))}function fe(V){return V.type==="element"&&V.children.length>0&&(["html","head","ul","ol","select"].includes(V.name)||V.cssDisplay.startsWith("table")&&V.cssDisplay!=="table-cell")}function ke(V){return Ve(V)||V.prev&&se(V.prev)||Ue(V)}function se(V){return Ve(V)||V.type==="element"&&V.fullName==="br"||Ue(V)}function Ue(V){return me(V)&&ue(V)}function me(V){return V.hasLeadingSpaces&&(V.prev?V.prev.sourceSpan.end.line<V.sourceSpan.start.line:V.parent.type==="root"||V.parent.startSourceSpan.end.line<V.sourceSpan.start.line)}function ue(V){return V.hasTrailingSpaces&&(V.next?V.next.sourceSpan.start.line>V.sourceSpan.end.line:V.parent.type==="root"||V.parent.endSourceSpan&&V.parent.endSourceSpan.start.line>V.sourceSpan.end.line)}function Ve(V){switch(V.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(V.name)}return!1}function nt(V){return V.lastChild?nt(V.lastChild):V}function Je(V){return V.children&&V.children.some(Le=>Le.type!=="text")}function ht(V){let{type:Le,lang:rt}=V.attrMap;if(Le==="module"||Le==="text/javascript"||Le==="text/babel"||Le==="application/javascript"||rt==="jsx")return"babel";if(Le==="application/x-typescript"||rt==="ts"||rt==="tsx")return"typescript";if(Le==="text/markdown")return"markdown";if(Le==="text/html")return"html";if(Le&&(Le.endsWith("json")||Le.endsWith("importmap"))||Le==="speculationrules")return"json";if(Le==="text/x-handlebars-template")return"glimmer"}function be(V,Le){let{lang:rt}=V.attrMap;if(!rt||rt==="postcss"||rt==="css")return"css";if(rt==="scss")return"scss";if(rt==="less")return"less";if(rt==="stylus")return p("stylus",Le)}function Ie(V,Le){if(V.name==="script"&&!V.attrMap.src)return!V.attrMap.lang&&!V.attrMap.type?"babel":ht(V);if(V.name==="style")return be(V,Le);if(Le&&Oe(V,Le))return ht(V)||!("src"in V.attrMap)&&p(V.attrMap.lang,Le)}function ft(V){return V==="block"||V==="list-item"||V.startsWith("table")}function pt(V){return!ft(V)&&V!=="inline-block"}function Jt(V){return!ft(V)&&V!=="inline-block"}function $e(V){return!ft(V)}function xe(V){return!ft(V)}function Ye(V){return!ft(V)&&V!=="inline-block"}function Xe(V){return cn(V).startsWith("pre")}function vt(V,Le){let rt=0;for(let kt=V.stack.length-1;kt>=0;kt--){let $t=V.stack[kt];$t&&typeof $t=="object"&&!Array.isArray($t)&&Le($t)&&rt++}return rt}function Nt(V,Le){let rt=V;for(;rt;){if(Le(rt))return!0;rt=rt.parent}return!1}function Bt(V,Le){if(V.prev&&V.prev.type==="comment"){let kt=V.prev.value.match(/^\s*display:\s*([a-z]+)\s*$/);if(kt)return kt[1]}let rt=!1;if(V.type==="element"&&V.namespace==="svg")if(Nt(V,kt=>kt.fullName==="svg:foreignObject"))rt=!0;else return V.name==="svg"?"inline-block":"block";switch(Le.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return Le.parser==="vue"&&V.parent&&V.parent.type==="root"?"block":V.type==="element"&&(!V.namespace||rt||A(V))&&S[V.name]||L}}function cn(V){return V.type==="element"&&(!V.namespace||A(V))&&_[V.name]||k}function In(V){let Le=Number.POSITIVE_INFINITY;for(let rt of V.split(`
243
- `)){if(rt.length===0)continue;if(!x.has(rt[0]))return 0;let kt=re(rt).length;rt.length!==kt&&kt<Le&&(Le=kt)}return Le===Number.POSITIVE_INFINITY?0:Le}function kn(V){let Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:In(V);return Le===0?V:V.split(`
244
- `).map(rt=>rt.slice(Le)).join(`
245
- `)}function ln(V,Le){let rt=0;for(let kt=0;kt<V.length;kt++)V[kt]===Le&&rt++;return rt}function Dn(V){return V.replace(/&apos;/g,"'").replace(/&quot;/g,'"')}var ot=new Set(["template","style","script"]);function Ee(V,Le){return dt(V,Le)&&!ot.has(V.fullName)}function dt(V,Le){return Le.parser==="vue"&&V.type==="element"&&V.parent.type==="root"&&V.fullName.toLowerCase()!=="html"}function Oe(V,Le){return dt(V,Le)&&(Ee(V,Le)||V.attrMap.lang&&V.attrMap.lang!=="html")}function ct(V){let Le=V.fullName;return Le.charAt(0)==="#"||Le==="slot-scope"||Le==="v-slot"||Le.startsWith("v-slot:")}function Zt(V,Le){let rt=V.parent;if(!dt(rt,Le))return!1;let kt=rt.fullName,$t=V.fullName;return kt==="script"&&$t==="setup"||kt==="style"&&$t==="vars"}function Ut(V){let Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:V.value;return V.parent.isWhitespaceSensitive?V.parent.isIndentationSensitive?v(Le):v(kn(X(Le)),f):h(d(D,G(Le)))}function yt(V,Le){return dt(V,Le)&&V.name==="script"}E.exports={htmlTrim:te,htmlTrimPreserveIndentation:X,hasHtmlWhitespace:De,getLeadingAndTrailingHtmlWhitespace:Z,canHaveInterpolation:T,countChars:ln,countParents:vt,dedentString:kn,forceBreakChildren:fe,forceBreakContent:ge,forceNextEmptyLine:ce,getLastDescendant:nt,getNodeCssStyleDisplay:Bt,getNodeCssStyleWhiteSpace:cn,hasPrettierIgnore:J,inferScriptParser:Ie,isVueCustomBlock:Ee,isVueNonHtmlBlock:Oe,isVueScriptTag:yt,isVueSlotAttribute:ct,isVueSfcBindingsAttribute:Zt,isVueSfcBlock:dt,isDanglingSpaceSensitiveNode:ie,isIndentationSensitiveNode:q,isLeadingSpaceSensitiveNode:U,isPreLikeNode:Xe,isScriptLikeTag:y,isTextLikeNode:R,isTrailingSpaceSensitiveNode:z,isWhitespaceSensitiveNode:M,isUnknownNamespace:A,preferHardlineAsLeadingSpaces:ke,preferHardlineAsTrailingSpaces:se,shouldPreserveContent:F,unescapeQuoteEntities:Dn,getTextValueParts:Ut}}}),fE=_e({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0}),m.$EOF=0,m.$BSPACE=8,m.$TAB=9,m.$LF=10,m.$VTAB=11,m.$FF=12,m.$CR=13,m.$SPACE=32,m.$BANG=33,m.$DQ=34,m.$HASH=35,m.$$=36,m.$PERCENT=37,m.$AMPERSAND=38,m.$SQ=39,m.$LPAREN=40,m.$RPAREN=41,m.$STAR=42,m.$PLUS=43,m.$COMMA=44,m.$MINUS=45,m.$PERIOD=46,m.$SLASH=47,m.$COLON=58,m.$SEMICOLON=59,m.$LT=60,m.$EQ=61,m.$GT=62,m.$QUESTION=63,m.$0=48,m.$7=55,m.$9=57,m.$A=65,m.$E=69,m.$F=70,m.$X=88,m.$Z=90,m.$LBRACKET=91,m.$BACKSLASH=92,m.$RBRACKET=93,m.$CARET=94,m.$_=95,m.$a=97,m.$b=98,m.$e=101,m.$f=102,m.$n=110,m.$r=114,m.$t=116,m.$u=117,m.$v=118,m.$x=120,m.$z=122,m.$LBRACE=123,m.$BAR=124,m.$RBRACE=125,m.$NBSP=160,m.$PIPE=124,m.$TILDA=126,m.$AT=64,m.$BT=96;function E(h){return h>=m.$TAB&&h<=m.$SPACE||h==m.$NBSP}m.isWhitespace=E;function p(h){return m.$0<=h&&h<=m.$9}m.isDigit=p;function b(h){return h>=m.$a&&h<=m.$z||h>=m.$A&&h<=m.$Z}m.isAsciiLetter=b;function D(h){return h>=m.$a&&h<=m.$f||h>=m.$A&&h<=m.$F||p(h)}m.isAsciiHexDigit=D;function f(h){return h===m.$LF||h===m.$CR}m.isNewLine=f;function d(h){return m.$0<=h&&h<=m.$7}m.isOctalDigit=d}}),pE=_e({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=class{constructor(b,D,f){this.filePath=b,this.name=D,this.members=f}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};m.StaticSymbol=E;var p=class{constructor(){this.cache=new Map}get(b,D,f){f=f||[];let d=f.length?`.${f.join(".")}`:"",h=`"${b}".${D}${d}`,v=this.cache.get(h);return v||(v=new E(b,D,f),this.cache.set(h,v)),v}};m.StaticSymbolCache=p}}),dE=_e({"node_modules/angular-html-parser/lib/compiler/src/util.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=/-+([a-z0-9])/g;function p(y){return y.replace(E,function(){for(var T=arguments.length,M=new Array(T),q=0;q<T;q++)M[q]=arguments[q];return M[1].toUpperCase()})}m.dashCaseToCamelCase=p;function b(y,T){return f(y,":",T)}m.splitAtColon=b;function D(y,T){return f(y,".",T)}m.splitAtPeriod=D;function f(y,T,M){let q=y.indexOf(T);return q==-1?M:[y.slice(0,q).trim(),y.slice(q+1).trim()]}function d(y,T,M){return Array.isArray(y)?T.visitArray(y,M):$(y)?T.visitStringMap(y,M):y==null||typeof y=="string"||typeof y=="number"||typeof y=="boolean"?T.visitPrimitive(y,M):T.visitOther(y,M)}m.visitValue=d;function h(y){return y!=null}m.isDefined=h;function v(y){return y===void 0?null:y}m.noUndefined=v;var S=class{visitArray(y,T){return y.map(M=>d(M,this,T))}visitStringMap(y,T){let M={};return Object.keys(y).forEach(q=>{M[q]=d(y[q],this,T)}),M}visitPrimitive(y,T){return y}visitOther(y,T){return y}};m.ValueTransformer=S,m.SyncAsync={assertSync:y=>{if(Z(y))throw new Error("Illegal state: value cannot be a promise");return y},then:(y,T)=>Z(y)?y.then(T):T(y),all:y=>y.some(Z)?Promise.all(y):y};function L(y){throw new Error(`Internal Error: ${y}`)}m.error=L;function _(y,T){let M=Error(y);return M[k]=!0,T&&(M[A]=T),M}m.syntaxError=_;var k="ngSyntaxError",A="ngParseErrors";function x(y){return y[k]}m.isSyntaxError=x;function j(y){return y[A]||[]}m.getParseErrors=j;function Q(y){return y.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}m.escapeRegExp=Q;var te=Object.getPrototypeOf({});function $(y){return typeof y=="object"&&y!==null&&Object.getPrototypeOf(y)===te}function X(y){let T="";for(let M=0;M<y.length;M++){let q=y.charCodeAt(M);if(q>=55296&&q<=56319&&y.length>M+1){let U=y.charCodeAt(M+1);U>=56320&&U<=57343&&(M++,q=(q-55296<<10)+U-56320+65536)}q<=127?T+=String.fromCharCode(q):q<=2047?T+=String.fromCharCode(q>>6&31|192,q&63|128):q<=65535?T+=String.fromCharCode(q>>12|224,q>>6&63|128,q&63|128):q<=2097151&&(T+=String.fromCharCode(q>>18&7|240,q>>12&63|128,q>>6&63|128,q&63|128))}return T}m.utf8Encode=X;function G(y){if(typeof y=="string")return y;if(y instanceof Array)return"["+y.map(G).join(", ")+"]";if(y==null)return""+y;if(y.overriddenName)return`${y.overriddenName}`;if(y.name)return`${y.name}`;if(!y.toString)return"object";let T=y.toString();if(T==null)return""+T;let M=T.indexOf(`
246
- `);return M===-1?T:T.substring(0,M)}m.stringify=G;function re(y){return typeof y=="function"&&y.hasOwnProperty("__forward_ref__")?y():y}m.resolveForwardRef=re;function Z(y){return!!y&&typeof y.then=="function"}m.isPromise=Z;var De=class{constructor(y){this.full=y;let T=y.split(".");this.major=T[0],this.minor=T[1],this.patch=T.slice(2).join(".")}};m.Version=De;var F=typeof window<"u"&&window,J=typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self,w=typeof globalThis<"u"&&globalThis,R=w||F||J;m.global=R}}),hE=_e({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=pE(),p=dE(),b=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function D(M){return M.replace(/\W/g,"_")}m.sanitizeIdentifier=D;var f=0;function d(M){if(!M||!M.reference)return null;let q=M.reference;if(q instanceof E.StaticSymbol)return q.name;if(q.__anonymousType)return q.__anonymousType;let U=p.stringify(q);return U.indexOf("(")>=0?(U=`anonymous_${f++}`,q.__anonymousType=U):U=D(U),U}m.identifierName=d;function h(M){let q=M.reference;return q instanceof E.StaticSymbol?q.filePath:`./${p.stringify(q)}`}m.identifierModuleUrl=h;function v(M,q){return`View_${d({reference:M})}_${q}`}m.viewClassName=v;function S(M){return`RenderType_${d({reference:M})}`}m.rendererTypeName=S;function L(M){return`HostView_${d({reference:M})}`}m.hostViewClassName=L;function _(M){return`${d({reference:M})}NgFactory`}m.componentFactoryName=_;var k;(function(M){M[M.Pipe=0]="Pipe",M[M.Directive=1]="Directive",M[M.NgModule=2]="NgModule",M[M.Injectable=3]="Injectable"})(k=m.CompileSummaryKind||(m.CompileSummaryKind={}));function A(M){return M.value!=null?D(M.value):d(M.identifier)}m.tokenName=A;function x(M){return M.identifier!=null?M.identifier.reference:M.value}m.tokenReference=x;var j=class{constructor(){let{moduleUrl:M,styles:q,styleUrls:U}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.moduleUrl=M||null,this.styles=Z(q),this.styleUrls=Z(U)}};m.CompileStylesheetMetadata=j;var Q=class{constructor(M){let{encapsulation:q,template:U,templateUrl:z,htmlAst:ie,styles:ce,styleUrls:ge,externalStylesheets:fe,animations:ke,ngContentSelectors:se,interpolation:Ue,isInline:me,preserveWhitespaces:ue}=M;if(this.encapsulation=q,this.template=U,this.templateUrl=z,this.htmlAst=ie,this.styles=Z(ce),this.styleUrls=Z(ge),this.externalStylesheets=Z(fe),this.animations=ke?F(ke):[],this.ngContentSelectors=se||[],Ue&&Ue.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=Ue,this.isInline=me,this.preserveWhitespaces=ue}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};m.CompileTemplateMetadata=Q;var te=class{static create(M){let{isHost:q,type:U,isComponent:z,selector:ie,exportAs:ce,changeDetection:ge,inputs:fe,outputs:ke,host:se,providers:Ue,viewProviders:me,queries:ue,guards:Ve,viewQueries:nt,entryComponents:Je,template:ht,componentViewType:be,rendererType:Ie,componentFactory:ft}=M,pt={},Jt={},$e={};se!=null&&Object.keys(se).forEach(Xe=>{let vt=se[Xe],Nt=Xe.match(b);Nt===null?$e[Xe]=vt:Nt[1]!=null?Jt[Nt[1]]=vt:Nt[2]!=null&&(pt[Nt[2]]=vt)});let xe={};fe!=null&&fe.forEach(Xe=>{let vt=p.splitAtColon(Xe,[Xe,Xe]);xe[vt[0]]=vt[1]});let Ye={};return ke!=null&&ke.forEach(Xe=>{let vt=p.splitAtColon(Xe,[Xe,Xe]);Ye[vt[0]]=vt[1]}),new te({isHost:q,type:U,isComponent:!!z,selector:ie,exportAs:ce,changeDetection:ge,inputs:xe,outputs:Ye,hostListeners:pt,hostProperties:Jt,hostAttributes:$e,providers:Ue,viewProviders:me,queries:ue,guards:Ve,viewQueries:nt,entryComponents:Je,template:ht,componentViewType:be,rendererType:Ie,componentFactory:ft})}constructor(M){let{isHost:q,type:U,isComponent:z,selector:ie,exportAs:ce,changeDetection:ge,inputs:fe,outputs:ke,hostListeners:se,hostProperties:Ue,hostAttributes:me,providers:ue,viewProviders:Ve,queries:nt,guards:Je,viewQueries:ht,entryComponents:be,template:Ie,componentViewType:ft,rendererType:pt,componentFactory:Jt}=M;this.isHost=!!q,this.type=U,this.isComponent=z,this.selector=ie,this.exportAs=ce,this.changeDetection=ge,this.inputs=fe,this.outputs=ke,this.hostListeners=se,this.hostProperties=Ue,this.hostAttributes=me,this.providers=Z(ue),this.viewProviders=Z(Ve),this.queries=Z(nt),this.guards=Je,this.viewQueries=Z(ht),this.entryComponents=Z(be),this.template=Ie,this.componentViewType=ft,this.rendererType=pt,this.componentFactory=Jt}toSummary(){return{summaryKind:k.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}};m.CompileDirectiveMetadata=te;var $=class{constructor(M){let{type:q,name:U,pure:z}=M;this.type=q,this.name=U,this.pure=!!z}toSummary(){return{summaryKind:k.Pipe,type:this.type,name:this.name,pure:this.pure}}};m.CompilePipeMetadata=$;var X=class{};m.CompileShallowModuleMetadata=X;var G=class{constructor(M){let{type:q,providers:U,declaredDirectives:z,exportedDirectives:ie,declaredPipes:ce,exportedPipes:ge,entryComponents:fe,bootstrapComponents:ke,importedModules:se,exportedModules:Ue,schemas:me,transitiveModule:ue,id:Ve}=M;this.type=q||null,this.declaredDirectives=Z(z),this.exportedDirectives=Z(ie),this.declaredPipes=Z(ce),this.exportedPipes=Z(ge),this.providers=Z(U),this.entryComponents=Z(fe),this.bootstrapComponents=Z(ke),this.importedModules=Z(se),this.exportedModules=Z(Ue),this.schemas=Z(me),this.id=Ve||null,this.transitiveModule=ue||null}toSummary(){let M=this.transitiveModule;return{summaryKind:k.NgModule,type:this.type,entryComponents:M.entryComponents,providers:M.providers,modules:M.modules,exportedDirectives:M.exportedDirectives,exportedPipes:M.exportedPipes}}};m.CompileNgModuleMetadata=G;var re=class{constructor(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}addProvider(M,q){this.providers.push({provider:M,module:q})}addDirective(M){this.directivesSet.has(M.reference)||(this.directivesSet.add(M.reference),this.directives.push(M))}addExportedDirective(M){this.exportedDirectivesSet.has(M.reference)||(this.exportedDirectivesSet.add(M.reference),this.exportedDirectives.push(M))}addPipe(M){this.pipesSet.has(M.reference)||(this.pipesSet.add(M.reference),this.pipes.push(M))}addExportedPipe(M){this.exportedPipesSet.has(M.reference)||(this.exportedPipesSet.add(M.reference),this.exportedPipes.push(M))}addModule(M){this.modulesSet.has(M.reference)||(this.modulesSet.add(M.reference),this.modules.push(M))}addEntryComponent(M){this.entryComponentsSet.has(M.componentType)||(this.entryComponentsSet.add(M.componentType),this.entryComponents.push(M))}};m.TransitiveCompileNgModuleMetadata=re;function Z(M){return M||[]}var De=class{constructor(M,q){let{useClass:U,useValue:z,useExisting:ie,useFactory:ce,deps:ge,multi:fe}=q;this.token=M,this.useClass=U||null,this.useValue=z,this.useExisting=ie,this.useFactory=ce||null,this.dependencies=ge||null,this.multi=!!fe}};m.ProviderMeta=De;function F(M){return M.reduce((q,U)=>{let z=Array.isArray(U)?F(U):U;return q.concat(z)},[])}m.flatten=F;function J(M){return M.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function w(M,q,U){let z;return U.isInline?q.type.reference instanceof E.StaticSymbol?z=`${q.type.reference.filePath}.${q.type.reference.name}.html`:z=`${d(M)}/${d(q.type)}.html`:z=U.templateUrl,q.type.reference instanceof E.StaticSymbol?z:J(z)}m.templateSourceUrl=w;function R(M,q){let U=M.moduleUrl.split(/\/\\/g),z=U[U.length-1];return J(`css/${q}${z}.ngstyle.js`)}m.sharedStylesheetJitUrl=R;function y(M){return J(`${d(M.type)}/module.ngfactory.js`)}m.ngModuleJitUrl=y;function T(M,q){return J(`${d(M)}/${d(q.type)}.ngfactory.js`)}m.templateJitUrl=T}}),mE=_e({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=fE(),p=hE(),b=class{constructor(L,_,k,A){this.file=L,this.offset=_,this.line=k,this.col=A}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(L){let _=this.file.content,k=_.length,A=this.offset,x=this.line,j=this.col;for(;A>0&&L<0;)if(A--,L++,_.charCodeAt(A)==E.$LF){x--;let Q=_.substr(0,A-1).lastIndexOf(String.fromCharCode(E.$LF));j=Q>0?A-Q:A}else j--;for(;A<k&&L>0;){let Q=_.charCodeAt(A);A++,L--,Q==E.$LF?(x++,j=0):j++}return new b(this.file,A,x,j)}getContext(L,_){let k=this.file.content,A=this.offset;if(A!=null){A>k.length-1&&(A=k.length-1);let x=A,j=0,Q=0;for(;j<L&&A>0&&(A--,j++,!(k[A]==`
247
- `&&++Q==_)););for(j=0,Q=0;j<L&&x<k.length-1&&(x++,j++,!(k[x]==`
248
- `&&++Q==_)););return{before:k.substring(A,this.offset),after:k.substring(this.offset,x+1)}}return null}};m.ParseLocation=b;var D=class{constructor(L,_){this.content=L,this.url=_}};m.ParseSourceFile=D;var f=class{constructor(L,_){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.start=L,this.end=_,this.details=k}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};m.ParseSourceSpan=f,m.EMPTY_PARSE_LOCATION=new b(new D("",""),0,0,0),m.EMPTY_SOURCE_SPAN=new f(m.EMPTY_PARSE_LOCATION,m.EMPTY_PARSE_LOCATION);var d;(function(L){L[L.WARNING=0]="WARNING",L[L.ERROR=1]="ERROR"})(d=m.ParseErrorLevel||(m.ParseErrorLevel={}));var h=class{constructor(L,_){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d.ERROR;this.span=L,this.msg=_,this.level=k}contextualMessage(){let L=this.span.start.getContext(100,3);return L?`${this.msg} ("${L.before}[${d[this.level]} ->]${L.after}")`:this.msg}toString(){let L=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${L}`}};m.ParseError=h;function v(L,_){let k=p.identifierModuleUrl(_),A=k!=null?`in ${L} ${p.identifierName(_)} in ${k}`:`in ${L} ${p.identifierName(_)}`,x=new D("",A);return new f(new b(x,-1,-1,-1),new b(x,-1,-1,-1))}m.typeSourceSpan=v;function S(L,_,k){let A=`in ${L} ${_} in ${k}`,x=new D("",A);return new f(new b(x,-1,-1,-1),new b(x,-1,-1,-1))}m.r3JitTypeSourceSpan=S}}),gE=_e({"src/language-html/print-preprocess.js"(m,E){Re();var{ParseSourceSpan:p}=mE(),{htmlTrim:b,getLeadingAndTrailingHtmlWhitespace:D,hasHtmlWhitespace:f,canHaveInterpolation:d,getNodeCssStyleDisplay:h,isDanglingSpaceSensitiveNode:v,isIndentationSensitiveNode:S,isLeadingSpaceSensitiveNode:L,isTrailingSpaceSensitiveNode:_,isWhitespaceSensitiveNode:k,isVueScriptTag:A}=Ka(),x=[Q,te,X,re,Z,J,De,F,w,G,R];function j(y,T){for(let M of x)M(y,T);return y}function Q(y){y.walk(T=>{if(T.type==="element"&&T.tagDefinition.ignoreFirstLf&&T.children.length>0&&T.children[0].type==="text"&&T.children[0].value[0]===`
249
- `){let M=T.children[0];M.value.length===1?T.removeChild(M):M.value=M.value.slice(1)}})}function te(y){let T=M=>M.type==="element"&&M.prev&&M.prev.type==="ieConditionalStartComment"&&M.prev.sourceSpan.end.offset===M.startSourceSpan.start.offset&&M.firstChild&&M.firstChild.type==="ieConditionalEndComment"&&M.firstChild.sourceSpan.start.offset===M.startSourceSpan.end.offset;y.walk(M=>{if(M.children)for(let q=0;q<M.children.length;q++){let U=M.children[q];if(!T(U))continue;let z=U.prev,ie=U.firstChild;M.removeChild(z),q--;let ce=new p(z.sourceSpan.start,ie.sourceSpan.end),ge=new p(ce.start,U.sourceSpan.end);U.condition=z.condition,U.sourceSpan=ge,U.startSourceSpan=ce,U.removeChild(ie)}})}function $(y,T,M){y.walk(q=>{if(q.children)for(let U=0;U<q.children.length;U++){let z=q.children[U];if(z.type!=="text"&&!T(z))continue;z.type!=="text"&&(z.type="text",z.value=M(z));let ie=z.prev;!ie||ie.type!=="text"||(ie.value+=z.value,ie.sourceSpan=new p(ie.sourceSpan.start,z.sourceSpan.end),q.removeChild(z),U--)}})}function X(y){return $(y,T=>T.type==="cdata",T=>`<![CDATA[${T.value}]]>`)}function G(y){let T=M=>M.type==="element"&&M.attrs.length===0&&M.children.length===1&&M.firstChild.type==="text"&&!f(M.children[0].value)&&!M.firstChild.hasLeadingSpaces&&!M.firstChild.hasTrailingSpaces&&M.isLeadingSpaceSensitive&&!M.hasLeadingSpaces&&M.isTrailingSpaceSensitive&&!M.hasTrailingSpaces&&M.prev&&M.prev.type==="text"&&M.next&&M.next.type==="text";y.walk(M=>{if(M.children)for(let q=0;q<M.children.length;q++){let U=M.children[q];if(!T(U))continue;let z=U.prev,ie=U.next;z.value+=`<${U.rawName}>`+U.firstChild.value+`</${U.rawName}>`+ie.value,z.sourceSpan=new p(z.sourceSpan.start,ie.sourceSpan.end),z.isTrailingSpaceSensitive=ie.isTrailingSpaceSensitive,z.hasTrailingSpaces=ie.hasTrailingSpaces,M.removeChild(U),q--,M.removeChild(ie)}})}function re(y,T){if(T.parser==="html")return;let M=/{{(.+?)}}/s;y.walk(q=>{if(d(q))for(let U of q.children){if(U.type!=="text")continue;let z=U.sourceSpan.start,ie=null,ce=U.value.split(M);for(let ge=0;ge<ce.length;ge++,z=ie){let fe=ce[ge];if(ge%2===0){ie=z.moveBy(fe.length),fe.length>0&&q.insertChildBefore(U,{type:"text",value:fe,sourceSpan:new p(z,ie)});continue}ie=z.moveBy(fe.length+4),q.insertChildBefore(U,{type:"interpolation",sourceSpan:new p(z,ie),children:fe.length===0?[]:[{type:"text",value:fe,sourceSpan:new p(z.moveBy(2),ie.moveBy(-2))}]})}q.removeChild(U)}})}function Z(y){y.walk(T=>{if(!T.children)return;if(T.children.length===0||T.children.length===1&&T.children[0].type==="text"&&b(T.children[0].value).length===0){T.hasDanglingSpaces=T.children.length>0,T.children=[];return}let M=k(T),q=S(T);if(!M)for(let U=0;U<T.children.length;U++){let z=T.children[U];if(z.type!=="text")continue;let{leadingWhitespace:ie,text:ce,trailingWhitespace:ge}=D(z.value),fe=z.prev,ke=z.next;ce?(z.value=ce,z.sourceSpan=new p(z.sourceSpan.start.moveBy(ie.length),z.sourceSpan.end.moveBy(-ge.length)),ie&&(fe&&(fe.hasTrailingSpaces=!0),z.hasLeadingSpaces=!0),ge&&(z.hasTrailingSpaces=!0,ke&&(ke.hasLeadingSpaces=!0))):(T.removeChild(z),U--,(ie||ge)&&(fe&&(fe.hasTrailingSpaces=!0),ke&&(ke.hasLeadingSpaces=!0)))}T.isWhitespaceSensitive=M,T.isIndentationSensitive=q})}function De(y){y.walk(T=>{T.isSelfClosing=!T.children||T.type==="element"&&(T.tagDefinition.isVoid||T.startSourceSpan===T.endSourceSpan)})}function F(y,T){y.walk(M=>{M.type==="element"&&(M.hasHtmComponentClosingTag=M.endSourceSpan&&/^<\s*\/\s*\/\s*>$/.test(T.originalText.slice(M.endSourceSpan.start.offset,M.endSourceSpan.end.offset)))})}function J(y,T){y.walk(M=>{M.cssDisplay=h(M,T)})}function w(y,T){y.walk(M=>{let{children:q}=M;if(q){if(q.length===0){M.isDanglingSpaceSensitive=v(M);return}for(let U of q)U.isLeadingSpaceSensitive=L(U,T),U.isTrailingSpaceSensitive=_(U,T);for(let U=0;U<q.length;U++){let z=q[U];z.isLeadingSpaceSensitive=(U===0||z.prev.isTrailingSpaceSensitive)&&z.isLeadingSpaceSensitive,z.isTrailingSpaceSensitive=(U===q.length-1||z.next.isLeadingSpaceSensitive)&&z.isTrailingSpaceSensitive}}})}function R(y,T){if(T.parser==="vue"){let M=y.children.find(U=>A(U,T));if(!M)return;let{lang:q}=M.attrMap;(q==="ts"||q==="typescript")&&(T.__should_parse_vue_template_with_ts=!0)}}E.exports=j}}),yE=_e({"src/language-html/pragma.js"(m,E){Re();function p(D){return/^\s*<!--\s*@(?:format|prettier)\s*-->/.test(D)}function b(D){return`<!-- @format -->
250
-
251
- `+D.replace(/^\s*\n/,"")}E.exports={hasPragma:p,insertPragma:b}}}),Zf=_e({"src/language-html/loc.js"(m,E){Re();function p(D){return D.sourceSpan.start.offset}function b(D){return D.sourceSpan.end.offset}E.exports={locStart:p,locEnd:b}}}),$o=_e({"src/language-html/print/tag.js"(m,E){Re();var p=Mo(),{isNonEmptyArray:b}=ye(),{builders:{indent:D,join:f,line:d,softline:h,hardline:v},utils:{replaceTextEndOfLine:S}}=Fn(),{locStart:L,locEnd:_}=Zf(),{isTextLikeNode:k,getLastDescendant:A,isPreLikeNode:x,hasPrettierIgnore:j,shouldPreserveContent:Q,isVueSfcBlock:te}=Ka();function $(se,Ue){return[se.isSelfClosing?"":X(se,Ue),G(se,Ue)]}function X(se,Ue){return se.lastChild&&y(se.lastChild)?"":[re(se,Ue),De(se,Ue)]}function G(se,Ue){return(se.next?w(se.next):R(se.parent))?"":[F(se,Ue),Z(se,Ue)]}function re(se,Ue){return R(se)?F(se.lastChild,Ue):""}function Z(se,Ue){return y(se)?De(se.parent,Ue):T(se)?fe(se.next):""}function De(se,Ue){if(p(!se.isSelfClosing),J(se,Ue))return"";switch(se.type){case"ieConditionalComment":return"<!";case"element":if(se.hasHtmComponentClosingTag)return"<//";default:return`</${se.rawName}`}}function F(se,Ue){if(J(se,Ue))return"";switch(se.type){case"ieConditionalComment":case"ieConditionalEndComment":return"[endif]-->";case"ieConditionalStartComment":return"]><!-->";case"interpolation":return"}}";case"element":if(se.isSelfClosing)return"/>";default:return">"}}function J(se,Ue){return!se.isSelfClosing&&!se.endSourceSpan&&(j(se)||Q(se.parent,Ue))}function w(se){return se.prev&&se.prev.type!=="docType"&&!k(se.prev)&&se.isLeadingSpaceSensitive&&!se.hasLeadingSpaces}function R(se){return se.lastChild&&se.lastChild.isTrailingSpaceSensitive&&!se.lastChild.hasTrailingSpaces&&!k(A(se.lastChild))&&!x(se)}function y(se){return!se.next&&!se.hasTrailingSpaces&&se.isTrailingSpaceSensitive&&k(A(se))}function T(se){return se.next&&!k(se.next)&&k(se)&&se.isTrailingSpaceSensitive&&!se.hasTrailingSpaces}function M(se){let Ue=se.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return Ue?Ue[1]?Ue[1].split(/\s+/):!0:!1}function q(se){return!se.prev&&se.isLeadingSpaceSensitive&&!se.hasLeadingSpaces}function U(se,Ue,me){let ue=se.getValue();if(!b(ue.attrs))return ue.isSelfClosing?" ":"";let Ve=ue.prev&&ue.prev.type==="comment"&&M(ue.prev.value),nt=typeof Ve=="boolean"?()=>Ve:Array.isArray(Ve)?ft=>Ve.includes(ft.rawName):()=>!1,Je=se.map(ft=>{let pt=ft.getValue();return nt(pt)?S(Ue.originalText.slice(L(pt),_(pt))):me()},"attrs"),ht=ue.type==="element"&&ue.fullName==="script"&&ue.attrs.length===1&&ue.attrs[0].fullName==="src"&&ue.children.length===0,be=Ue.singleAttributePerLine&&ue.attrs.length>1&&!te(ue,Ue)?v:d,Ie=[D([ht?" ":d,f(be,Je)])];return ue.firstChild&&q(ue.firstChild)||ue.isSelfClosing&&R(ue.parent)||ht?Ie.push(ue.isSelfClosing?" ":""):Ie.push(Ue.bracketSameLine?ue.isSelfClosing?" ":"":ue.isSelfClosing?d:h),Ie}function z(se){return se.firstChild&&q(se.firstChild)?"":ke(se)}function ie(se,Ue,me){let ue=se.getValue();return[ce(ue,Ue),U(se,Ue,me),ue.isSelfClosing?"":z(ue)]}function ce(se,Ue){return se.prev&&T(se.prev)?"":[ge(se,Ue),fe(se)]}function ge(se,Ue){return q(se)?ke(se.parent):w(se)?F(se.prev,Ue):""}function fe(se){switch(se.type){case"ieConditionalComment":case"ieConditionalStartComment":return`<!--[if ${se.condition}`;case"ieConditionalEndComment":return"<!--<!";case"interpolation":return"{{";case"docType":return"<!DOCTYPE";case"element":if(se.condition)return`<!--[if ${se.condition}]><!--><${se.rawName}`;default:return`<${se.rawName}`}}function ke(se){switch(p(!se.isSelfClosing),se.type){case"ieConditionalComment":return"]>";case"element":if(se.condition)return"><!--<![endif]-->";default:return">"}}E.exports={printClosingTag:$,printClosingTagStart:X,printClosingTagStartMarker:De,printClosingTagEndMarker:F,printClosingTagSuffix:Z,printClosingTagEnd:G,needsToBorrowLastChildClosingTagEndMarker:R,needsToBorrowParentClosingTagStartMarker:y,needsToBorrowPrevClosingTagEndMarker:w,printOpeningTag:ie,printOpeningTagStart:ce,printOpeningTagPrefix:ge,printOpeningTagStartMarker:fe,printOpeningTagEndMarker:ke,needsToBorrowNextOpeningTagStartMarker:T,needsToBorrowParentOpeningTagEndMarker:q}}}),DE=_e({"node_modules/parse-srcset/src/parse-srcset.js"(m,E){Re(),function(p,b){typeof E=="object"&&E.exports?E.exports=b():p.parseSrcset=b()}(m,function(){return function(p,b){var D=b&&b.logger||console;function f(De){return De===" "||De===" "||De===`
252
- `||De==="\f"||De==="\r"}function d(De){var F,J=De.exec(p.substring(X));if(J)return F=J[0],X+=F.length,F}for(var h=p.length,v=/^[ \t\n\r\u000c]+/,S=/^[, \t\n\r\u000c]+/,L=/^[^ \t\n\r\u000c]+/,_=/[,]+$/,k=/^\d+$/,A=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,x,j,Q,te,$,X=0,G=[];;){if(d(S),X>=h)return G;x=d(L),j=[],x.slice(-1)===","?(x=x.replace(_,""),Z()):re()}function re(){for(d(v),Q="",te="in descriptor";;){if($=p.charAt(X),te==="in descriptor")if(f($))Q&&(j.push(Q),Q="",te="after descriptor");else if($===","){X+=1,Q&&j.push(Q),Z();return}else if($==="(")Q=Q+$,te="in parens";else if($===""){Q&&j.push(Q),Z();return}else Q=Q+$;else if(te==="in parens")if($===")")Q=Q+$,te="in descriptor";else if($===""){j.push(Q),Z();return}else Q=Q+$;else if(te==="after descriptor"&&!f($))if($===""){Z();return}else te="in descriptor",X-=1;X+=1}}function Z(){var De=!1,F,J,w,R,y={},T,M,q,U,z;for(R=0;R<j.length;R++)T=j[R],M=T[T.length-1],q=T.substring(0,T.length-1),U=parseInt(q,10),z=parseFloat(q),k.test(q)&&M==="w"?((F||J)&&(De=!0),U===0?De=!0:F=U):A.test(q)&&M==="x"?((F||J||w)&&(De=!0),z<0?De=!0:J=z):k.test(q)&&M==="h"?((w||J)&&(De=!0),U===0?De=!0:w=U):De=!0;De?D&&D.error&&D.error("Invalid srcset descriptor found in '"+p+"' at '"+T+"'."):(y.url=x,F&&(y.w=F),J&&(y.d=J),w&&(y.h=w),G.push(y))}}})}}),bE=_e({"src/language-html/syntax-attribute.js"(m,E){Re();var p=DE(),{builders:{ifBreak:b,join:D,line:f}}=Fn();function d(v){let S=p(v,{logger:{error(re){throw new Error(re)}}}),L=S.some(re=>{let{w:Z}=re;return Z}),_=S.some(re=>{let{h:Z}=re;return Z}),k=S.some(re=>{let{d:Z}=re;return Z});if(L+_+k>1)throw new Error("Mixed descriptor in srcset is not supported");let A=L?"w":_?"h":"d",x=L?"w":_?"h":"x",j=re=>Math.max(...re),Q=S.map(re=>re.url),te=j(Q.map(re=>re.length)),$=S.map(re=>re[A]).map(re=>re?re.toString():""),X=$.map(re=>{let Z=re.indexOf(".");return Z===-1?re.length:Z}),G=j(X);return D([",",f],Q.map((re,Z)=>{let De=[re],F=$[Z];if(F){let J=te-re.length+1,w=G-X[Z],R=" ".repeat(J+w);De.push(b(R," "),F+x)}return De}))}function h(v){return v.trim().split(/\s+/).join(" ")}E.exports={printImgSrcset:d,printClassNames:h}}}),vE=_e({"src/language-html/syntax-vue.js"(m,E){Re();var{builders:{group:p}}=Fn();function b(h,v){let{left:S,operator:L,right:_}=D(h);return[p(v(`function _(${S}) {}`,{parser:"babel",__isVueForBindingLeft:!0}))," ",L," ",v(_,{parser:"__js_expression"},{stripTrailingHardline:!0})]}function D(h){let v=/(.*?)\s+(in|of)\s+(.*)/s,S=/,([^,\]}]*)(?:,([^,\]}]*))?$/,L=/^\(|\)$/g,_=h.match(v);if(!_)return;let k={};if(k.for=_[3].trim(),!k.for)return;let A=_[1].trim().replace(L,""),x=A.match(S);x?(k.alias=A.replace(S,""),k.iterator1=x[1].trim(),x[2]&&(k.iterator2=x[2].trim())):k.alias=A;let j=[k.alias,k.iterator1,k.iterator2];if(!j.some((Q,te)=>!Q&&(te===0||j.slice(te+1).some(Boolean))))return{left:j.filter(Boolean).join(","),operator:_[2],right:k.for}}function f(h,v){return v(`function _(${h}) {}`,{parser:"babel",__isVueBindings:!0})}function d(h){let v=/^(?:[\w$]+|\([^)]*\))\s*=>|^function\s*\(/,S=/^[$A-Z_a-z][\w$]*(?:\.[$A-Z_a-z][\w$]*|\['[^']*']|\["[^"]*"]|\[\d+]|\[[$A-Z_a-z][\w$]*])*$/,L=h.trim();return v.test(L)||S.test(L)}E.exports={isVueEventBindingExpression:d,printVueFor:b,printVueBindings:f}}}),Hm=_e({"src/language-html/get-node-content.js"(m,E){Re();var{needsToBorrowParentClosingTagStartMarker:p,printClosingTagStartMarker:b,needsToBorrowLastChildClosingTagEndMarker:D,printClosingTagEndMarker:f,needsToBorrowParentOpeningTagEndMarker:d,printOpeningTagEndMarker:h}=$o();function v(S,L){let _=S.startSourceSpan.end.offset;S.firstChild&&d(S.firstChild)&&(_-=h(S).length);let k=S.endSourceSpan.start.offset;return S.lastChild&&p(S.lastChild)?k+=b(S,L).length:D(S)&&(k-=f(S.lastChild,L).length),L.originalText.slice(_,k)}E.exports=v}}),EE=_e({"src/language-html/embed.js"(m,E){Re();var{builders:{breakParent:p,group:b,hardline:D,indent:f,line:d,fill:h,softline:v},utils:{mapDoc:S,replaceTextEndOfLine:L}}=Fn(),_=Xf(),{printClosingTag:k,printClosingTagSuffix:A,needsToBorrowPrevClosingTagEndMarker:x,printOpeningTagPrefix:j,printOpeningTag:Q}=$o(),{printImgSrcset:te,printClassNames:$}=bE(),{printVueFor:X,printVueBindings:G,isVueEventBindingExpression:re}=vE(),{isScriptLikeTag:Z,isVueNonHtmlBlock:De,inferScriptParser:F,htmlTrimPreserveIndentation:J,dedentString:w,unescapeQuoteEntities:R,isVueSlotAttribute:y,isVueSfcBindingsAttribute:T,getTextValueParts:M}=Ka(),q=Hm();function U(ie,ce,ge){let fe=Je=>new RegExp(Je.join("|")).test(ie.fullName),ke=()=>R(ie.value),se=!1,Ue=(Je,ht)=>{let be=Je.type==="NGRoot"?Je.node.type==="NGMicrosyntax"&&Je.node.body.length===1&&Je.node.body[0].type==="NGMicrosyntaxExpression"?Je.node.body[0].expression:Je.node:Je.type==="JsExpressionRoot"?Je.node:Je;be&&(be.type==="ObjectExpression"||be.type==="ArrayExpression"||ht.parser==="__vue_expression"&&(be.type==="TemplateLiteral"||be.type==="StringLiteral"))&&(se=!0)},me=Je=>b(Je),ue=function(Je){let ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return b([f([v,Je]),ht?v:""])},Ve=Je=>se?me(Je):ue(Je),nt=(Je,ht)=>ce(Je,Object.assign({__onHtmlBindingRoot:Ue,__embeddedInHtml:!0},ht));if(ie.fullName==="srcset"&&(ie.parent.fullName==="img"||ie.parent.fullName==="source"))return ue(te(ke()));if(ie.fullName==="class"&&!ge.parentParser){let Je=ke();if(!Je.includes("{{"))return $(Je)}if(ie.fullName==="style"&&!ge.parentParser){let Je=ke();if(!Je.includes("{{"))return ue(nt(Je,{parser:"css",__isHTMLStyleAttribute:!0}))}if(ge.parser==="vue"){if(ie.fullName==="v-for")return X(ke(),nt);if(y(ie)||T(ie,ge))return G(ke(),nt);let Je=["^@","^v-on:"],ht=["^:","^v-bind:"],be=["^v-"];if(fe(Je)){let Ie=ke(),ft=re(Ie)?"__js_expression":ge.__should_parse_vue_template_with_ts?"__vue_ts_event_binding":"__vue_event_binding";return Ve(nt(Ie,{parser:ft}))}if(fe(ht))return Ve(nt(ke(),{parser:"__vue_expression"}));if(fe(be))return Ve(nt(ke(),{parser:"__js_expression"}))}if(ge.parser==="angular"){let Je=($e,xe)=>nt($e,Object.assign(Object.assign({},xe),{},{trailingComma:"none"})),ht=["^\\*"],be=["^\\(.+\\)$","^on-"],Ie=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],ft=["^i18n(-.+)?$"];if(fe(be))return Ve(Je(ke(),{parser:"__ng_action"}));if(fe(Ie))return Ve(Je(ke(),{parser:"__ng_binding"}));if(fe(ft)){let $e=ke().trim();return ue(h(M(ie,$e)),!$e.includes("@@"))}if(fe(ht))return Ve(Je(ke(),{parser:"__ng_directive"}));let pt=/{{(.+?)}}/s,Jt=ke();if(pt.test(Jt)){let $e=[];for(let[xe,Ye]of Jt.split(pt).entries())if(xe%2===0)$e.push(L(Ye));else try{$e.push(b(["{{",f([d,Je(Ye,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),d,"}}"]))}catch{$e.push("{{",L(Ye),"}}")}return b($e)}}return null}function z(ie,ce,ge,fe){let ke=ie.getValue();switch(ke.type){case"element":{if(Z(ke)||ke.type==="interpolation")return;if(!ke.isSelfClosing&&De(ke,fe)){let se=F(ke,fe);if(!se)return;let Ue=q(ke,fe),me=/^\s*$/.test(Ue),ue="";return me||(ue=ge(J(Ue),{parser:se,__embeddedInHtml:!0},{stripTrailingHardline:!0}),me=ue===""),[j(ke,fe),b(Q(ie,fe,ce)),me?"":D,ue,me?"":D,k(ke,fe),A(ke,fe)]}break}case"text":{if(Z(ke.parent)){let se=F(ke.parent,fe);if(se){let Ue=se==="markdown"?w(ke.value.replace(/^[^\S\n]*\n/,"")):ke.value,me={parser:se,__embeddedInHtml:!0};if(fe.parser==="html"&&se==="babel"){let ue="script",{attrMap:Ve}=ke.parent;Ve&&(Ve.type==="module"||Ve.type==="text/babel"&&Ve["data-type"]==="module")&&(ue="module"),me.__babelSourceType=ue}return[p,j(ke,fe),ge(Ue,me,{stripTrailingHardline:!0}),A(ke,fe)]}}else if(ke.parent.type==="interpolation"){let se={__isInHtmlInterpolation:!0,__embeddedInHtml:!0};return fe.parser==="angular"?(se.parser="__ng_interpolation",se.trailingComma="none"):fe.parser==="vue"?se.parser=fe.__should_parse_vue_template_with_ts?"__vue_ts_expression":"__vue_expression":se.parser="__js_expression",[f([d,ge(ke.value,se,{stripTrailingHardline:!0})]),ke.parent.next&&x(ke.parent.next)?" ":d]}break}case"attribute":{if(!ke.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(fe.originalText.slice(ke.valueSpan.start.offset,ke.valueSpan.end.offset)))return[ke.rawName,"=",ke.value];if(fe.parser==="lwc"&&/^{.*}$/s.test(fe.originalText.slice(ke.valueSpan.start.offset,ke.valueSpan.end.offset)))return[ke.rawName,"=",ke.value];let se=U(ke,(Ue,me)=>ge(Ue,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},me),{stripTrailingHardline:!0}),fe);if(se)return[ke.rawName,'="',b(S(se,Ue=>typeof Ue=="string"?Ue.replace(/"/g,"&quot;"):Ue)),'"'];break}case"front-matter":return _(ke,ge)}}E.exports=z}}),zm=_e({"src/language-html/print/children.js"(m,E){Re();var{builders:{breakParent:p,group:b,ifBreak:D,line:f,softline:d,hardline:h},utils:{replaceTextEndOfLine:v}}=Fn(),{locStart:S,locEnd:L}=Zf(),{forceBreakChildren:_,forceNextEmptyLine:k,isTextLikeNode:A,hasPrettierIgnore:x,preferHardlineAsLeadingSpaces:j}=Ka(),{printOpeningTagPrefix:Q,needsToBorrowNextOpeningTagStartMarker:te,printOpeningTagStartMarker:$,needsToBorrowPrevClosingTagEndMarker:X,printClosingTagEndMarker:G,printClosingTagSuffix:re,needsToBorrowParentClosingTagStartMarker:Z}=$o();function De(w,R,y){let T=w.getValue();return x(T)?[Q(T,R),...v(R.originalText.slice(S(T)+(T.prev&&te(T.prev)?$(T).length:0),L(T)-(T.next&&X(T.next)?G(T,R).length:0))),re(T,R)]:y()}function F(w,R){return A(w)&&A(R)?w.isTrailingSpaceSensitive?w.hasTrailingSpaces?j(R)?h:f:"":j(R)?h:d:te(w)&&(x(R)||R.firstChild||R.isSelfClosing||R.type==="element"&&R.attrs.length>0)||w.type==="element"&&w.isSelfClosing&&X(R)?"":!R.isLeadingSpaceSensitive||j(R)||X(R)&&w.lastChild&&Z(w.lastChild)&&w.lastChild.lastChild&&Z(w.lastChild.lastChild)?h:R.hasLeadingSpaces?f:d}function J(w,R,y){let T=w.getValue();if(_(T))return[p,...w.map(q=>{let U=q.getValue(),z=U.prev?F(U.prev,U):"";return[z?[z,k(U.prev)?h:""]:"",De(q,R,y)]},"children")];let M=T.children.map(()=>Symbol(""));return w.map((q,U)=>{let z=q.getValue();if(A(z)){if(z.prev&&A(z.prev)){let Ue=F(z.prev,z);if(Ue)return k(z.prev)?[h,h,De(q,R,y)]:[Ue,De(q,R,y)]}return De(q,R,y)}let ie=[],ce=[],ge=[],fe=[],ke=z.prev?F(z.prev,z):"",se=z.next?F(z,z.next):"";return ke&&(k(z.prev)?ie.push(h,h):ke===h?ie.push(h):A(z.prev)?ce.push(ke):ce.push(D("",d,{groupId:M[U-1]}))),se&&(k(z)?A(z.next)&&fe.push(h,h):se===h?A(z.next)&&fe.push(h):ge.push(se)),[...ie,b([...ce,b([De(q,R,y),...ge],{id:M[U]})]),...fe]},"children")}E.exports={printChildren:J}}}),AE=_e({"src/language-html/print/element.js"(m,E){Re();var{builders:{breakParent:p,dedentToRoot:b,group:D,ifBreak:f,indentIfBreak:d,indent:h,line:v,softline:S},utils:{replaceTextEndOfLine:L}}=Fn(),_=Hm(),{shouldPreserveContent:k,isScriptLikeTag:A,isVueCustomBlock:x,countParents:j,forceBreakContent:Q}=Ka(),{printOpeningTagPrefix:te,printOpeningTag:$,printClosingTagSuffix:X,printClosingTag:G,needsToBorrowPrevClosingTagEndMarker:re,needsToBorrowLastChildClosingTagEndMarker:Z}=$o(),{printChildren:De}=zm();function F(J,w,R){let y=J.getValue();if(k(y,w))return[te(y,w),D($(J,w,R)),...L(_(y,w)),...G(y,w),X(y,w)];let T=y.children.length===1&&y.firstChild.type==="interpolation"&&y.firstChild.isLeadingSpaceSensitive&&!y.firstChild.hasLeadingSpaces&&y.lastChild.isTrailingSpaceSensitive&&!y.lastChild.hasTrailingSpaces,M=Symbol("element-attr-group-id"),q=ce=>D([D($(J,w,R),{id:M}),ce,G(y,w)]),U=ce=>T?d(ce,{groupId:M}):(A(y)||x(y,w))&&y.parent.type==="root"&&w.parser==="vue"&&!w.vueIndentScriptAndStyle?ce:h(ce),z=()=>T?f(S,"",{groupId:M}):y.firstChild.hasLeadingSpaces&&y.firstChild.isLeadingSpaceSensitive?v:y.firstChild.type==="text"&&y.isWhitespaceSensitive&&y.isIndentationSensitive?b(S):S,ie=()=>(y.next?re(y.next):Z(y.parent))?y.lastChild.hasTrailingSpaces&&y.lastChild.isTrailingSpaceSensitive?" ":"":T?f(S,"",{groupId:M}):y.lastChild.hasTrailingSpaces&&y.lastChild.isTrailingSpaceSensitive?v:(y.lastChild.type==="comment"||y.lastChild.type==="text"&&y.isWhitespaceSensitive&&y.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${w.tabWidth*j(J,ce=>ce.parent&&ce.parent.type!=="root")}}$`).test(y.lastChild.value)?"":S;return y.children.length===0?q(y.hasDanglingSpaces&&y.isDanglingSpaceSensitive?v:""):q([Q(y)?p:"",U([z(),De(J,w,R)]),ie()])}E.exports={printElement:F}}}),CE=_e({"src/language-html/printer-html.js"(m,E){Re();var{builders:{fill:p,group:b,hardline:D,literalline:f},utils:{cleanDoc:d,getDocParts:h,isConcat:v,replaceTextEndOfLine:S}}=Fn(),L=uE(),{countChars:_,unescapeQuoteEntities:k,getTextValueParts:A}=Ka(),x=gE(),{insertPragma:j}=yE(),{locStart:Q,locEnd:te}=Zf(),$=EE(),{printClosingTagSuffix:X,printClosingTagEnd:G,printOpeningTagPrefix:re,printOpeningTagStart:Z}=$o(),{printElement:De}=AE(),{printChildren:F}=zm();function J(w,R,y){let T=w.getValue();switch(T.type){case"front-matter":return S(T.raw);case"root":return R.__onHtmlRoot&&R.__onHtmlRoot(T),[b(F(w,R,y)),D];case"element":case"ieConditionalComment":return De(w,R,y);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Z(T),G(T)];case"interpolation":return[Z(T,R),...w.map(y,"children"),G(T,R)];case"text":{if(T.parent.type==="interpolation"){let q=/\n[^\S\n]*$/,U=q.test(T.value),z=U?T.value.replace(q,""):T.value;return[...S(z),U?D:""]}let M=d([re(T,R),...A(T),X(T,R)]);return v(M)||M.type==="fill"?p(h(M)):M}case"docType":return[b([Z(T,R)," ",T.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),G(T,R)];case"comment":return[re(T,R),...S(R.originalText.slice(Q(T),te(T)),f),X(T,R)];case"attribute":{if(T.value===null)return T.rawName;let M=k(T.value),q=_(M,"'"),U=_(M,'"'),z=q<U?"'":'"';return[T.rawName,"=",z,...S(z==='"'?M.replace(/"/g,"&quot;"):M.replace(/'/g,"&apos;")),z]}default:throw new Error(`Unexpected node type ${T.type}`)}}E.exports={preprocess:x,print:J,insertPragma:j,massageAstNode:L,embed:$}}}),SE=_e({"src/language-html/options.js"(m,E){Re();var p=Xa(),b="HTML";E.exports={bracketSameLine:p.bracketSameLine,htmlWhitespaceSensitivity:{since:"1.15.0",category:b,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:p.singleAttributePerLine,vueIndentScriptAndStyle:{since:"1.19.0",category:b,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}}}}),xE=_e({"src/language-html/parsers.js"(){Re()}}),ep=_e({"node_modules/linguist-languages/data/HTML.json"(m,E){E.exports={name:"HTML",type:"markup",tmScope:"text.html.basic",aceMode:"html",codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",color:"#e34c26",aliases:["xhtml"],extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],languageId:146}}}),wE=_e({"node_modules/linguist-languages/data/Vue.json"(m,E){E.exports={name:"Vue",type:"markup",color:"#41b883",extensions:[".vue"],tmScope:"text.html.vue",aceMode:"html",languageId:391}}}),FE=_e({"src/language-html/index.js"(m,E){Re();var p=na(),b=CE(),D=SE(),f=xE(),d=[p(ep(),()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})),p(ep(),v=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[...v.extensions,".mjml"]})),p(ep(),()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})),p(wE(),()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}))],h={html:b};E.exports={languages:d,printers:h,options:D,parsers:f}}}),NE=_e({"src/language-yaml/pragma.js"(m,E){Re();function p(f){return/^\s*@(?:prettier|format)\s*$/.test(f)}function b(f){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(f)}function D(f){return`# @format
253
-
254
- ${f}`}E.exports={isPragma:p,hasPragma:b,insertPragma:D}}}),_E=_e({"src/language-yaml/loc.js"(m,E){Re();function p(D){return D.position.start.offset}function b(D){return D.position.end.offset}E.exports={locStart:p,locEnd:b}}}),TE=_e({"src/language-yaml/embed.js"(m,E){Re();function p(b,D,f,d){if(b.getValue().type==="root"&&d.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/.test(d.filepath))return f(d.originalText,Object.assign(Object.assign({},d),{},{parser:"json"}))}E.exports=p}}),Za=_e({"src/language-yaml/utils.js"(m,E){Re();var{getLast:p,isNonEmptyArray:b}=ye();function D(F,J){let w=0,R=F.stack.length-1;for(let y=0;y<R;y++){let T=F.stack[y];f(T)&&J(T)&&w++}return w}function f(F,J){return F&&typeof F.type=="string"&&(!J||J.includes(F.type))}function d(F,J,w){return J("children"in F?Object.assign(Object.assign({},F),{},{children:F.children.map(R=>d(R,J,F))}):F,w)}function h(F,J,w){Object.defineProperty(F,J,{get:w,enumerable:!1})}function v(F,J){let w=0,R=J.length;for(let y=F.position.end.offset-1;y<R;y++){let T=J[y];if(T===`
255
- `&&w++,w===1&&/\S/.test(T))return!1;if(w===2)return!0}return!1}function S(F){switch(F.getValue().type){case"tag":case"anchor":case"comment":return!1}let J=F.stack.length;for(let w=1;w<J;w++){let R=F.stack[w],y=F.stack[w-1];if(Array.isArray(y)&&typeof R=="number"&&R!==y.length-1)return!1}return!0}function L(F){return b(F.children)?L(p(F.children)):F}function _(F){return F.value.trim()==="prettier-ignore"}function k(F){let J=F.getValue();if(J.type==="documentBody"){let w=F.getParentNode();return X(w.head)&&_(p(w.head.endComments))}return j(J)&&_(p(J.leadingComments))}function A(F){return!b(F.children)&&!x(F)}function x(F){return j(F)||Q(F)||te(F)||$(F)||X(F)}function j(F){return b(F==null?void 0:F.leadingComments)}function Q(F){return b(F==null?void 0:F.middleComments)}function te(F){return F==null?void 0:F.indicatorComment}function $(F){return F==null?void 0:F.trailingComment}function X(F){return b(F==null?void 0:F.endComments)}function G(F){let J=[],w;for(let R of F.split(/( +)/))R!==" "?w===" "?J.push(R):J.push((J.pop()||"")+R):w===void 0&&J.unshift(""),w=R;return w===" "&&J.push((J.pop()||"")+" "),J[0]===""&&(J.shift(),J.unshift(" "+(J.shift()||""))),J}function re(F,J,w){let R=J.split(`
256
- `).map((y,T,M)=>T===0&&T===M.length-1?y:T!==0&&T!==M.length-1?y.trim():T===0?y.trimEnd():y.trimStart());return w.proseWrap==="preserve"?R.map(y=>y.length===0?[]:[y]):R.map(y=>y.length===0?[]:G(y)).reduce((y,T,M)=>M!==0&&R[M-1].length>0&&T.length>0&&!(F==="quoteDouble"&&p(p(y)).endsWith("\\"))?[...y.slice(0,-1),[...p(y),...T]]:[...y,T],[]).map(y=>w.proseWrap==="never"?[y.join(" ")]:y)}function Z(F,J){let{parentIndent:w,isLastDescendant:R,options:y}=J,T=F.position.start.line===F.position.end.line?"":y.originalText.slice(F.position.start.offset,F.position.end.offset).match(/^[^\n]*\n(.*)$/s)[1],M;if(F.indent===null){let z=T.match(/^(?<leadingSpace> *)[^\n\r ]/m);M=z?z.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else M=F.indent-1+w;let q=T.split(`
257
- `).map(z=>z.slice(M));if(y.proseWrap==="preserve"||F.type==="blockLiteral")return U(q.map(z=>z.length===0?[]:[z]));return U(q.map(z=>z.length===0?[]:G(z)).reduce((z,ie,ce)=>ce!==0&&q[ce-1].length>0&&ie.length>0&&!/^\s/.test(ie[0])&&!/^\s|\s$/.test(p(z))?[...z.slice(0,-1),[...p(z),...ie]]:[...z,ie],[]).map(z=>z.reduce((ie,ce)=>ie.length>0&&/\s$/.test(p(ie))?[...ie.slice(0,-1),p(ie)+" "+ce]:[...ie,ce],[])).map(z=>y.proseWrap==="never"?[z.join(" ")]:z));function U(z){if(F.chomping==="keep")return p(z).length===0?z.slice(0,-1):z;let ie=0;for(let ce=z.length-1;ce>=0&&z[ce].length===0;ce--)ie++;return ie===0?z:ie>=2&&!R?z.slice(0,-(ie-1)):z.slice(0,-ie)}}function De(F){if(!F)return!0;switch(F.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}E.exports={getLast:p,getAncestorCount:D,isNode:f,isEmptyNode:A,isInlineNode:De,mapNode:d,defineShortcut:h,isNextLineEmpty:v,isLastDescendantNode:S,getBlockValueLineContents:Z,getFlowScalarLineContents:re,getLastDescendantNode:L,hasPrettierIgnore:k,hasLeadingComments:j,hasMiddleComments:Q,hasIndicatorComment:te,hasTrailingComment:$,hasEndComments:X}}}),kE=_e({"src/language-yaml/print-preprocess.js"(m,E){Re();var{defineShortcut:p,mapNode:b}=Za();function D(d){return b(d,f)}function f(d){switch(d.type){case"document":p(d,"head",()=>d.children[0]),p(d,"body",()=>d.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":p(d,"content",()=>d.children[0]);break;case"mappingItem":case"flowMappingItem":p(d,"key",()=>d.children[0]),p(d,"value",()=>d.children[1]);break}return d}E.exports=D}}),yl=_e({"src/language-yaml/print/misc.js"(m,E){Re();var{builders:{softline:p,align:b}}=Fn(),{hasEndComments:D,isNextLineEmpty:f,isNode:d}=Za(),h=new WeakMap;function v(_,k){let A=_.getValue(),x=_.stack[0],j;return h.has(x)?j=h.get(x):(j=new Set,h.set(x,j)),!j.has(A.position.end.line)&&(j.add(A.position.end.line),f(A,k)&&!S(_.getParentNode()))?p:""}function S(_){return D(_)&&!d(_,["documentHead","documentBody","flowMapping","flowSequence"])}function L(_,k){return b(" ".repeat(_),k)}E.exports={alignWithSpaces:L,shouldPrintEndComments:S,printNextEmptyLine:v}}}),LE=_e({"src/language-yaml/print/flow-mapping-sequence.js"(m,E){Re();var{builders:{ifBreak:p,line:b,softline:D,hardline:f,join:d}}=Fn(),{isEmptyNode:h,getLast:v,hasEndComments:S}=Za(),{printNextEmptyLine:L,alignWithSpaces:_}=yl();function k(x,j,Q){let te=x.getValue(),$=te.type==="flowMapping",X=$?"{":"[",G=$?"}":"]",re=D;$&&te.children.length>0&&Q.bracketSpacing&&(re=b);let Z=v(te.children),De=Z&&Z.type==="flowMappingItem"&&h(Z.key)&&h(Z.value);return[X,_(Q.tabWidth,[re,A(x,j,Q),Q.trailingComma==="none"?"":p(","),S(te)?[f,d(f,x.map(j,"endComments"))]:""]),De?"":re,G]}function A(x,j,Q){let te=x.getValue();return x.map(($,X)=>[j(),X===te.children.length-1?"":[",",b,te.children[X].position.start.line!==te.children[X+1].position.start.line?L($,Q.originalText):""]],"children")}E.exports={printFlowMapping:k,printFlowSequence:k}}}),PE=_e({"src/language-yaml/print/mapping-item.js"(m,E){Re();var{builders:{conditionalGroup:p,group:b,hardline:D,ifBreak:f,join:d,line:h}}=Fn(),{hasLeadingComments:v,hasMiddleComments:S,hasTrailingComment:L,hasEndComments:_,isNode:k,isEmptyNode:A,isInlineNode:x}=Za(),{alignWithSpaces:j}=yl();function Q(G,re,Z,De,F){let{key:J,value:w}=G,R=A(J),y=A(w);if(R&&y)return": ";let T=De("key"),M=$(G)?" ":"";if(y)return G.type==="flowMappingItem"&&re.type==="flowMapping"?T:G.type==="mappingItem"&&te(J.content,F)&&!L(J.content)&&(!re.tag||re.tag.value!=="tag:yaml.org,2002:set")?[T,M,":"]:["? ",j(2,T)];let q=De("value");if(R)return[": ",j(2,q)];if(v(w)||!x(J.content))return["? ",j(2,T),D,d("",Z.map(De,"value","leadingComments").map(fe=>[fe,D])),": ",j(2,q)];if(X(J.content)&&!v(J.content)&&!S(J.content)&&!L(J.content)&&!_(J)&&!v(w.content)&&!S(w.content)&&!_(w)&&te(w.content,F))return[T,M,": ",q];let U=Symbol("mappingKey"),z=b([f("? "),b(j(2,T),{id:U})]),ie=[D,": ",j(2,q)],ce=[M,":"];v(w.content)||_(w)&&w.content&&!k(w.content,["mapping","sequence"])||re.type==="mapping"&&L(J.content)&&x(w.content)||k(w.content,["mapping","sequence"])&&w.content.tag===null&&w.content.anchor===null?ce.push(D):w.content&&ce.push(h),ce.push(q);let ge=j(F.tabWidth,ce);return te(J.content,F)&&!v(J.content)&&!S(J.content)&&!_(J)?p([[T,ge]]):p([[z,f(ie,ge,{groupId:U})]])}function te(G,re){if(!G)return!0;switch(G.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(re.proseWrap==="preserve")return G.position.start.line===G.position.end.line;if(/\\$/m.test(re.originalText.slice(G.position.start.offset,G.position.end.offset)))return!1;switch(re.proseWrap){case"never":return!G.value.includes(`
258
- `);case"always":return!/[\n ]/.test(G.value);default:return!1}}function $(G){return G.key.content&&G.key.content.type==="alias"}function X(G){if(!G)return!0;switch(G.type){case"plain":case"quoteDouble":case"quoteSingle":return G.position.start.line===G.position.end.line;case"alias":return!0;default:return!1}}E.exports=Q}}),BE=_e({"src/language-yaml/print/block.js"(m,E){Re();var{builders:{dedent:p,dedentToRoot:b,fill:D,hardline:f,join:d,line:h,literalline:v,markAsRoot:S},utils:{getDocParts:L}}=Fn(),{getAncestorCount:_,getBlockValueLineContents:k,hasIndicatorComment:A,isLastDescendantNode:x,isNode:j}=Za(),{alignWithSpaces:Q}=yl();function te($,X,G){let re=$.getValue(),Z=_($,R=>j(R,["sequence","mapping"])),De=x($),F=[re.type==="blockFolded"?">":"|"];re.indent!==null&&F.push(re.indent.toString()),re.chomping!=="clip"&&F.push(re.chomping==="keep"?"+":"-"),A(re)&&F.push(" ",X("indicatorComment"));let J=k(re,{parentIndent:Z,isLastDescendant:De,options:G}),w=[];for(let[R,y]of J.entries())R===0&&w.push(f),w.push(D(L(d(h,y)))),R!==J.length-1?w.push(y.length===0?f:S(v)):re.chomping==="keep"&&De&&w.push(b(y.length===0?f:v));return re.indent===null?F.push(p(Q(G.tabWidth,w))):F.push(b(Q(re.indent-1+Z,w))),F}E.exports=te}}),ME=_e({"src/language-yaml/printer-yaml.js"(m,E){Re();var{builders:{breakParent:p,fill:b,group:D,hardline:f,join:d,line:h,lineSuffix:v,literalline:S},utils:{getDocParts:L,replaceTextEndOfLine:_}}=Fn(),{isPreviousLineEmpty:k}=ye(),{insertPragma:A,isPragma:x}=NE(),{locStart:j}=_E(),Q=TE(),{getFlowScalarLineContents:te,getLastDescendantNode:$,hasLeadingComments:X,hasMiddleComments:G,hasTrailingComment:re,hasEndComments:Z,hasPrettierIgnore:De,isLastDescendantNode:F,isNode:J,isInlineNode:w}=Za(),R=kE(),{alignWithSpaces:y,printNextEmptyLine:T,shouldPrintEndComments:M}=yl(),{printFlowMapping:q,printFlowSequence:U}=LE(),z=PE(),ie=BE();function ce(ue,Ve,nt){let Je=ue.getValue(),ht=[];Je.type!=="mappingValue"&&X(Je)&&ht.push([d(f,ue.map(nt,"leadingComments")),f]);let{tag:be,anchor:Ie}=Je;be&&ht.push(nt("tag")),be&&Ie&&ht.push(" "),Ie&&ht.push(nt("anchor"));let ft="";J(Je,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!F(ue)&&(ft=T(ue,Ve.originalText)),(be||Ie)&&(J(Je,["sequence","mapping"])&&!G(Je)?ht.push(f):ht.push(" ")),G(Je)&&ht.push([Je.middleComments.length===1?"":f,d(f,ue.map(nt,"middleComments")),f]);let pt=ue.getParentNode();return De(ue)?ht.push(_(Ve.originalText.slice(Je.position.start.offset,Je.position.end.offset).trimEnd(),S)):ht.push(D(ge(Je,pt,ue,Ve,nt))),re(Je)&&!J(Je,["document","documentHead"])&&ht.push(v([Je.type==="mappingValue"&&!Je.content?"":" ",pt.type==="mappingKey"&&ue.getParentNode(2).type==="mapping"&&w(Je)?"":p,nt("trailingComment")])),M(Je)&&ht.push(y(Je.type==="sequenceItem"?2:0,[f,d(f,ue.map(Jt=>[k(Ve.originalText,Jt.getValue(),j)?f:"",nt()],"endComments"))])),ht.push(ft),ht}function ge(ue,Ve,nt,Je,ht){switch(ue.type){case"root":{let{children:be}=ue,Ie=[];nt.each((pt,Jt)=>{let $e=be[Jt],xe=be[Jt+1];Jt!==0&&Ie.push(f),Ie.push(ht()),ke($e,xe)?(Ie.push(f,"..."),re($e)&&Ie.push(" ",ht("trailingComment"))):xe&&!re(xe.head)&&Ie.push(f,"---")},"children");let ft=$(ue);return(!J(ft,["blockLiteral","blockFolded"])||ft.chomping!=="keep")&&Ie.push(f),Ie}case"document":{let be=Ve.children[nt.getName()+1],Ie=[];return se(ue,be,Ve,Je)==="head"&&((ue.head.children.length>0||ue.head.endComments.length>0)&&Ie.push(ht("head")),re(ue.head)?Ie.push(["---"," ",ht(["head","trailingComment"])]):Ie.push("---")),fe(ue)&&Ie.push(ht("body")),d(f,Ie)}case"documentHead":return d(f,[...nt.map(ht,"children"),...nt.map(ht,"endComments")]);case"documentBody":{let{children:be,endComments:Ie}=ue,ft="";if(be.length>0&&Ie.length>0){let pt=$(ue);J(pt,["blockFolded","blockLiteral"])?pt.chomping!=="keep"&&(ft=[f,f]):ft=f}return[d(f,nt.map(ht,"children")),ft,d(f,nt.map(ht,"endComments"))]}case"directive":return["%",d(" ",[ue.name,...ue.parameters])];case"comment":return["#",ue.value];case"alias":return["*",ue.value];case"tag":return Je.originalText.slice(ue.position.start.offset,ue.position.end.offset);case"anchor":return["&",ue.value];case"plain":return Ue(ue.type,Je.originalText.slice(ue.position.start.offset,ue.position.end.offset),Je);case"quoteDouble":case"quoteSingle":{let be="'",Ie='"',ft=Je.originalText.slice(ue.position.start.offset+1,ue.position.end.offset-1);if(ue.type==="quoteSingle"&&ft.includes("\\")||ue.type==="quoteDouble"&&/\\[^"]/.test(ft)){let Jt=ue.type==="quoteDouble"?Ie:be;return[Jt,Ue(ue.type,ft,Je),Jt]}if(ft.includes(Ie))return[be,Ue(ue.type,ue.type==="quoteDouble"?ft.replace(/\\"/g,Ie).replace(/'/g,be.repeat(2)):ft,Je),be];if(ft.includes(be))return[Ie,Ue(ue.type,ue.type==="quoteSingle"?ft.replace(/''/g,be):ft,Je),Ie];let pt=Je.singleQuote?be:Ie;return[pt,Ue(ue.type,ft,Je),pt]}case"blockFolded":case"blockLiteral":return ie(nt,ht,Je);case"mapping":case"sequence":return d(f,nt.map(ht,"children"));case"sequenceItem":return["- ",y(2,ue.content?ht("content"):"")];case"mappingKey":case"mappingValue":return ue.content?ht("content"):"";case"mappingItem":case"flowMappingItem":return z(ue,Ve,nt,ht,Je);case"flowMapping":return q(nt,ht,Je);case"flowSequence":return U(nt,ht,Je);case"flowSequenceItem":return ht("content");default:throw new Error(`Unexpected node type ${ue.type}`)}}function fe(ue){return ue.body.children.length>0||Z(ue.body)}function ke(ue,Ve){return re(ue)||Ve&&(Ve.head.children.length>0||Z(Ve.head))}function se(ue,Ve,nt,Je){return nt.children[0]===ue&&/---(?:\s|$)/.test(Je.originalText.slice(j(ue),j(ue)+4))||ue.head.children.length>0||Z(ue.head)||re(ue.head)?"head":ke(ue,Ve)?!1:Ve?"root":!1}function Ue(ue,Ve,nt){let Je=te(ue,Ve,nt);return d(f,Je.map(ht=>b(L(d(h,ht)))))}function me(ue,Ve){if(J(Ve))switch(delete Ve.position,Ve.type){case"comment":if(x(Ve.value))return null;break;case"quoteDouble":case"quoteSingle":Ve.type="quote";break}}E.exports={preprocess:R,embed:Q,print:ce,massageAstNode:me,insertPragma:A}}}),IE=_e({"src/language-yaml/options.js"(m,E){Re();var p=Xa();E.exports={bracketSpacing:p.bracketSpacing,singleQuote:p.singleQuote,proseWrap:p.proseWrap}}}),OE=_e({"src/language-yaml/parsers.js"(){Re()}}),jE=_e({"node_modules/linguist-languages/data/YAML.json"(m,E){E.exports={name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock","yarn.lock"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",languageId:407}}}),RE=_e({"src/language-yaml/index.js"(m,E){Re();var p=na(),b=ME(),D=IE(),f=OE(),d=[p(jE(),h=>({since:"1.14.0",parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","home-assistant"],filenames:[...h.filenames.filter(v=>v!=="yarn.lock"),".prettierrc",".stylelintrc",".lintstagedrc"]}))];E.exports={languages:d,printers:{yaml:b},options:D,parsers:f}}}),$E=_e({"src/languages.js"(m,E){Re(),E.exports=[v2(),j2(),J2(),Z2(),oE(),FE(),RE()]}});Re();var{version:VE}=ei(),eo=Ov(),{getSupportInfo:qE}=Ft(),UE=jv(),WE=$E(),GE=Fn();function ia(m){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return function(){for(var p=arguments.length,b=new Array(p),D=0;D<p;D++)b[D]=arguments[D];let f=b[E]||{},d=f.plugins||[];return b[E]=Object.assign(Object.assign({},f),{},{plugins:[...WE,...Array.isArray(d)?d:Object.values(d)]}),m(...b)}}var tp=ia(eo.formatWithCursor);at.exports={formatWithCursor:tp,format(m,E){return tp(m,E).formatted},check(m,E){let{formatted:p}=tp(m,E);return p===m},doc:GE,getSupportInfo:ia(qE,0),version:VE,util:UE,__debug:{parse:ia(eo.parse),formatAST:ia(eo.formatAST),formatDoc:ia(eo.formatDoc),printToDoc:ia(eo.printToDoc),printDocToString:ia(eo.printDocToString)}}});return Ff()})})(I0);var FD=I0.exports,O0={exports:{}};(function(e,t){(function(n){e.exports=n()})(function(){var n=(i,s)=>()=>(s||i((s={exports:{}}).exports,s),s.exports),r=n((i,s)=>{var a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,l=Object.prototype.hasOwnProperty,C=(Y,g)=>function(){return Y&&(g=(0,Y[u(Y)[0]])(Y=0)),g},c=(Y,g)=>function(){return g||(0,Y[u(Y)[0]])((g={exports:{}}).exports,g),g.exports},B=(Y,g)=>{for(var W in g)a(Y,W,{get:g[W],enumerable:!0})},N=(Y,g,W,Ce)=>{if(g&&typeof g=="object"||typeof g=="function")for(let Pe of u(g))!l.call(Y,Pe)&&Pe!==W&&a(Y,Pe,{get:()=>g[Pe],enumerable:!(Ce=o(g,Pe))||Ce.enumerable});return Y},ee=Y=>N(a({},"__esModule",{value:!0}),Y),ne,O=C({"<define:process>"(){ne={env:{},argv:[]}}}),ae=c({"src/common/parser-create-error.js"(Y,g){O();function W(Ce,Pe){let Be=new SyntaxError(Ce+" ("+Pe.start.line+":"+Pe.start.column+")");return Be.loc=Pe,Be}g.exports=W}}),we=c({"src/language-yaml/pragma.js"(Y,g){O();function W(Be){return/^\s*@(?:prettier|format)\s*$/.test(Be)}function Ce(Be){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(Be)}function Pe(Be){return`# @format
259
-
260
- ${Be}`}g.exports={isPragma:W,hasPragma:Ce,insertPragma:Pe}}}),Te=c({"src/language-yaml/loc.js"(Y,g){O();function W(Pe){return Pe.position.start.offset}function Ce(Pe){return Pe.position.end.offset}g.exports={locStart:W,locEnd:Ce}}}),Ge={};B(Ge,{__assign:()=>Hi,__asyncDelegator:()=>Ln,__asyncGenerator:()=>en,__asyncValues:()=>Un,__await:()=>qt,__awaiter:()=>Ne,__classPrivateFieldGet:()=>gi,__classPrivateFieldSet:()=>ps,__createBinding:()=>qe,__decorate:()=>Qe,__exportStar:()=>jt,__extends:()=>pe,__generator:()=>ze,__importDefault:()=>Qr,__importStar:()=>zr,__makeTemplateObject:()=>Pn,__metadata:()=>Ae,__param:()=>mt,__read:()=>xn,__rest:()=>Se,__spread:()=>Lt,__spreadArrays:()=>Tt,__values:()=>fn});function pe(Y,g){xi(Y,g);function W(){this.constructor=Y}Y.prototype=g===null?Object.create(g):(W.prototype=g.prototype,new W)}function Se(Y,g){var W={};for(var Ce in Y)Object.prototype.hasOwnProperty.call(Y,Ce)&&g.indexOf(Ce)<0&&(W[Ce]=Y[Ce]);if(Y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ce=Object.getOwnPropertySymbols(Y);Pe<Ce.length;Pe++)g.indexOf(Ce[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Y,Ce[Pe])&&(W[Ce[Pe]]=Y[Ce[Pe]]);return W}function Qe(Y,g,W,Ce){var Pe=arguments.length,Be=Pe<3?g:Ce===null?Ce=Object.getOwnPropertyDescriptor(g,W):Ce,Ze;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Be=Reflect.decorate(Y,g,W,Ce);else for(var gt=Y.length-1;gt>=0;gt--)(Ze=Y[gt])&&(Be=(Pe<3?Ze(Be):Pe>3?Ze(g,W,Be):Ze(g,W))||Be);return Pe>3&&Be&&Object.defineProperty(g,W,Be),Be}function mt(Y,g){return function(W,Ce){g(W,Ce,Y)}}function Ae(Y,g){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Y,g)}function Ne(Y,g,W,Ce){function Pe(Be){return Be instanceof W?Be:new W(function(Ze){Ze(Be)})}return new(W||(W=Promise))(function(Be,Ze){function gt(Dt){try{st(Ce.next(Dt))}catch(Ft){Ze(Ft)}}function Rt(Dt){try{st(Ce.throw(Dt))}catch(Ft){Ze(Ft)}}function st(Dt){Dt.done?Be(Dt.value):Pe(Dt.value).then(gt,Rt)}st((Ce=Ce.apply(Y,g||[])).next())})}function ze(Y,g){var W={label:0,sent:function(){if(Be[0]&1)throw Be[1];return Be[1]},trys:[],ops:[]},Ce,Pe,Be,Ze;return Ze={next:gt(0),throw:gt(1),return:gt(2)},typeof Symbol=="function"&&(Ze[Symbol.iterator]=function(){return this}),Ze;function gt(st){return function(Dt){return Rt([st,Dt])}}function Rt(st){if(Ce)throw new TypeError("Generator is already executing.");for(;W;)try{if(Ce=1,Pe&&(Be=st[0]&2?Pe.return:st[0]?Pe.throw||((Be=Pe.return)&&Be.call(Pe),0):Pe.next)&&!(Be=Be.call(Pe,st[1])).done)return Be;switch(Pe=0,Be&&(st=[st[0]&2,Be.value]),st[0]){case 0:case 1:Be=st;break;case 4:return W.label++,{value:st[1],done:!1};case 5:W.label++,Pe=st[1],st=[0];continue;case 7:st=W.ops.pop(),W.trys.pop();continue;default:if(Be=W.trys,!(Be=Be.length>0&&Be[Be.length-1])&&(st[0]===6||st[0]===2)){W=0;continue}if(st[0]===3&&(!Be||st[1]>Be[0]&&st[1]<Be[3])){W.label=st[1];break}if(st[0]===6&&W.label<Be[1]){W.label=Be[1],Be=st;break}if(Be&&W.label<Be[2]){W.label=Be[2],W.ops.push(st);break}Be[2]&&W.ops.pop(),W.trys.pop();continue}st=g.call(Y,W)}catch(Dt){st=[6,Dt],Pe=0}finally{Ce=Be=0}if(st[0]&5)throw st[1];return{value:st[0]?st[1]:void 0,done:!0}}}function qe(Y,g,W,Ce){Ce===void 0&&(Ce=W),Y[Ce]=g[W]}function jt(Y,g){for(var W in Y)W!=="default"&&!g.hasOwnProperty(W)&&(g[W]=Y[W])}function fn(Y){var g=typeof Symbol=="function"&&Symbol.iterator,W=g&&Y[g],Ce=0;if(W)return W.call(Y);if(Y&&typeof Y.length=="number")return{next:function(){return Y&&Ce>=Y.length&&(Y=void 0),{value:Y&&Y[Ce++],done:!Y}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")}function xn(Y,g){var W=typeof Symbol=="function"&&Y[Symbol.iterator];if(!W)return Y;var Ce=W.call(Y),Pe,Be=[],Ze;try{for(;(g===void 0||g-- >0)&&!(Pe=Ce.next()).done;)Be.push(Pe.value)}catch(gt){Ze={error:gt}}finally{try{Pe&&!Pe.done&&(W=Ce.return)&&W.call(Ce)}finally{if(Ze)throw Ze.error}}return Be}function Lt(){for(var Y=[],g=0;g<arguments.length;g++)Y=Y.concat(xn(arguments[g]));return Y}function Tt(){for(var Y=0,g=0,W=arguments.length;g<W;g++)Y+=arguments[g].length;for(var Ce=Array(Y),Pe=0,g=0;g<W;g++)for(var Be=arguments[g],Ze=0,gt=Be.length;Ze<gt;Ze++,Pe++)Ce[Pe]=Be[Ze];return Ce}function qt(Y){return this instanceof qt?(this.v=Y,this):new qt(Y)}function en(Y,g,W){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ce=W.apply(Y,g||[]),Pe,Be=[];return Pe={},Ze("next"),Ze("throw"),Ze("return"),Pe[Symbol.asyncIterator]=function(){return this},Pe;function Ze(It){Ce[It]&&(Pe[It]=function(_t){return new Promise(function(Gt,Wt){Be.push([It,_t,Gt,Wt])>1||gt(It,_t)})})}function gt(It,_t){try{Rt(Ce[It](_t))}catch(Gt){Ft(Be[0][3],Gt)}}function Rt(It){It.value instanceof qt?Promise.resolve(It.value.v).then(st,Dt):Ft(Be[0][2],It)}function st(It){gt("next",It)}function Dt(It){gt("throw",It)}function Ft(It,_t){It(_t),Be.shift(),Be.length&&gt(Be[0][0],Be[0][1])}}function Ln(Y){var g,W;return g={},Ce("next"),Ce("throw",function(Pe){throw Pe}),Ce("return"),g[Symbol.iterator]=function(){return this},g;function Ce(Pe,Be){g[Pe]=Y[Pe]?function(Ze){return(W=!W)?{value:qt(Y[Pe](Ze)),done:Pe==="return"}:Be?Be(Ze):Ze}:Be}}function Un(Y){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var g=Y[Symbol.asyncIterator],W;return g?g.call(Y):(Y=typeof fn=="function"?fn(Y):Y[Symbol.iterator](),W={},Ce("next"),Ce("throw"),Ce("return"),W[Symbol.asyncIterator]=function(){return this},W);function Ce(Be){W[Be]=Y[Be]&&function(Ze){return new Promise(function(gt,Rt){Ze=Y[Be](Ze),Pe(gt,Rt,Ze.done,Ze.value)})}}function Pe(Be,Ze,gt,Rt){Promise.resolve(Rt).then(function(st){Be({value:st,done:gt})},Ze)}}function Pn(Y,g){return Object.defineProperty?Object.defineProperty(Y,"raw",{value:g}):Y.raw=g,Y}function zr(Y){if(Y&&Y.__esModule)return Y;var g={};if(Y!=null)for(var W in Y)Object.hasOwnProperty.call(Y,W)&&(g[W]=Y[W]);return g.default=Y,g}function Qr(Y){return Y&&Y.__esModule?Y:{default:Y}}function gi(Y,g){if(!g.has(Y))throw new TypeError("attempted to get private field on non-instance");return g.get(Y)}function ps(Y,g,W){if(!g.has(Y))throw new TypeError("attempted to set private field on non-instance");return g.set(Y,W),W}var xi,Hi,nr=C({"node_modules/tslib/tslib.es6.js"(){O(),xi=function(Y,g){return xi=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,Ce){W.__proto__=Ce}||function(W,Ce){for(var Pe in Ce)Ce.hasOwnProperty(Pe)&&(W[Pe]=Ce[Pe])},xi(Y,g)},Hi=function(){return Hi=Object.assign||function(Y){for(var g,W=1,Ce=arguments.length;W<Ce;W++){g=arguments[W];for(var Pe in g)Object.prototype.hasOwnProperty.call(g,Pe)&&(Y[Pe]=g[Pe])}return Y},Hi.apply(this,arguments)}}}),Wu=c({"node_modules/yaml-unist-parser/node_modules/lines-and-columns/build/index.js"(Y){O(),Y.__esModule=!0,Y.LinesAndColumns=void 0;var g=`
261
- `,W="\r",Ce=function(){function Pe(Be){this.string=Be;for(var Ze=[0],gt=0;gt<Be.length;)switch(Be[gt]){case g:gt+=g.length,Ze.push(gt);break;case W:gt+=W.length,Be[gt]===g&&(gt+=g.length),Ze.push(gt);break;default:gt++;break}this.offsets=Ze}return Pe.prototype.locationForIndex=function(Be){if(Be<0||Be>this.string.length)return null;for(var Ze=0,gt=this.offsets;gt[Ze+1]<=Be;)Ze++;var Rt=Be-gt[Ze];return{line:Ze,column:Rt}},Pe.prototype.indexForLocation=function(Be){var Ze=Be.line,gt=Be.column;return Ze<0||Ze>=this.offsets.length||gt<0||gt>this.lengthOfLine(Ze)?null:this.offsets[Ze]+gt},Pe.prototype.lengthOfLine=function(Be){var Ze=this.offsets[Be],gt=Be===this.offsets.length-1?this.string.length:this.offsets[Be+1];return gt-Ze},Pe}();Y.LinesAndColumns=Ce,Y.default=Ce}}),lf=c({"node_modules/yaml-unist-parser/lib/utils/define-parents.js"(Y){O(),Y.__esModule=!0;function g(W,Ce){Ce===void 0&&(Ce=null),"children"in W&&W.children.forEach(function(Pe){return g(Pe,W)}),"anchor"in W&&W.anchor&&g(W.anchor,W),"tag"in W&&W.tag&&g(W.tag,W),"leadingComments"in W&&W.leadingComments.forEach(function(Pe){return g(Pe,W)}),"middleComments"in W&&W.middleComments.forEach(function(Pe){return g(Pe,W)}),"indicatorComment"in W&&W.indicatorComment&&g(W.indicatorComment,W),"trailingComment"in W&&W.trailingComment&&g(W.trailingComment,W),"endComments"in W&&W.endComments.forEach(function(Pe){return g(Pe,W)}),Object.defineProperty(W,"_parent",{value:Ce,enumerable:!1})}Y.defineParents=g}}),$a=c({"node_modules/yaml-unist-parser/lib/utils/get-point-text.js"(Y){O(),Y.__esModule=!0;function g(W){return W.line+":"+W.column}Y.getPointText=g}}),cf=c({"node_modules/yaml-unist-parser/lib/attach.js"(Y){O(),Y.__esModule=!0;var g=lf(),W=$a();function Ce(st){g.defineParents(st);var Dt=Pe(st),Ft=st.children.slice();st.comments.sort(function(It,_t){return It.position.start.offset-_t.position.end.offset}).filter(function(It){return!It._parent}).forEach(function(It){for(;Ft.length>1&&It.position.start.line>Ft[0].position.end.line;)Ft.shift();Ze(It,Dt,Ft[0])})}Y.attachComments=Ce;function Pe(st){for(var Dt=Array.from(new Array(st.position.end.line),function(){return{}}),Ft=0,It=st.comments;Ft<It.length;Ft++){var _t=It[Ft];Dt[_t.position.start.line-1].comment=_t}return Be(Dt,st),Dt}function Be(st,Dt){if(Dt.position.start.offset!==Dt.position.end.offset){if("leadingComments"in Dt){var Ft=Dt.position.start,It=st[Ft.line-1].leadingAttachableNode;(!It||Ft.column<It.position.start.column)&&(st[Ft.line-1].leadingAttachableNode=Dt)}if("trailingComment"in Dt&&Dt.position.end.column>1&&Dt.type!=="document"&&Dt.type!=="documentHead"){var _t=Dt.position.end,Gt=st[_t.line-1].trailingAttachableNode;(!Gt||_t.column>=Gt.position.end.column)&&(st[_t.line-1].trailingAttachableNode=Dt)}if(Dt.type!=="root"&&Dt.type!=="document"&&Dt.type!=="documentHead"&&Dt.type!=="documentBody")for(var Wt=Dt.position,Ft=Wt.start,_t=Wt.end,Xt=[_t.line].concat(Ft.line===_t.line?[]:Ft.line),bn=0,ye=Xt;bn<ye.length;bn++){var K=ye[bn],I=st[K-1].trailingNode;(!I||_t.column>=I.position.end.column)&&(st[K-1].trailingNode=Dt)}"children"in Dt&&Dt.children.forEach(function(H){Be(st,H)})}}function Ze(st,Dt,Ft){var It=st.position.start.line,_t=Dt[It-1].trailingAttachableNode;if(_t){if(_t.trailingComment)throw new Error("Unexpected multiple trailing comment at "+W.getPointText(st.position.start));g.defineParents(st,_t),_t.trailingComment=st;return}for(var Gt=It;Gt>=Ft.position.start.line;Gt--){var Wt=Dt[Gt-1].trailingNode,Xt=void 0;if(Wt)Xt=Wt;else if(Gt!==It&&Dt[Gt-1].comment)Xt=Dt[Gt-1].comment._parent;else continue;if((Xt.type==="sequence"||Xt.type==="mapping")&&(Xt=Xt.children[0]),Xt.type==="mappingItem"){var bn=Xt.children,ye=bn[0],K=bn[1];Xt=Rt(ye)?ye:K}for(;;){if(gt(Xt,st)){g.defineParents(st,Xt),Xt.endComments.push(st);return}if(!Xt._parent)break;Xt=Xt._parent}break}for(var Gt=It+1;Gt<=Ft.position.end.line;Gt++){var I=Dt[Gt-1].leadingAttachableNode;if(I){g.defineParents(st,I),I.leadingComments.push(st);return}}var H=Ft.children[1];g.defineParents(st,H),H.endComments.push(st)}function gt(st,Dt){if(st.position.start.offset<Dt.position.start.offset&&st.position.end.offset>Dt.position.end.offset)switch(st.type){case"flowMapping":case"flowSequence":return st.children.length===0||Dt.position.start.line>st.children[st.children.length-1].position.end.line}if(Dt.position.end.offset<st.position.end.offset)return!1;switch(st.type){case"sequenceItem":return Dt.position.start.column>st.position.start.column;case"mappingKey":case"mappingValue":return Dt.position.start.column>st._parent.position.start.column&&(st.children.length===0||st.children.length===1&&st.children[0].type!=="blockFolded"&&st.children[0].type!=="blockLiteral")&&(st.type==="mappingValue"||Rt(st));default:return!1}}function Rt(st){return st.position.start!==st.position.end&&(st.children.length===0||st.position.start.offset!==st.children[0].position.start.offset)}}}),kr=c({"node_modules/yaml-unist-parser/lib/factories/node.js"(Y){O(),Y.__esModule=!0;function g(W,Ce){return{type:W,position:Ce}}Y.createNode=g}}),Gu=c({"node_modules/yaml-unist-parser/lib/factories/root.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=kr();function Ce(Pe,Be,Ze){return g.__assign(g.__assign({},W.createNode("root",Pe)),{children:Be,comments:Ze})}Y.createRoot=Ce}}),ff=c({"node_modules/yaml-unist-parser/lib/preprocess.js"(Y){O(),Y.__esModule=!0;function g(W){switch(W.type){case"DOCUMENT":for(var Ce=W.contents.length-1;Ce>=0;Ce--)W.contents[Ce].type==="BLANK_LINE"?W.contents.splice(Ce,1):g(W.contents[Ce]);for(var Ce=W.directives.length-1;Ce>=0;Ce--)W.directives[Ce].type==="BLANK_LINE"&&W.directives.splice(Ce,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(var Ce=W.items.length-1;Ce>=0;Ce--){var Pe=W.items[Ce];"char"in Pe||(Pe.type==="BLANK_LINE"?W.items.splice(Ce,1):g(Pe))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":W.node&&g(W.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error("Unexpected node type "+JSON.stringify(W.type))}}Y.removeCstBlankLine=g}}),ds=c({"node_modules/yaml-unist-parser/lib/factories/leading-comment-attachable.js"(Y){O(),Y.__esModule=!0;function g(){return{leadingComments:[]}}Y.createLeadingCommentAttachable=g}}),Va=c({"node_modules/yaml-unist-parser/lib/factories/trailing-comment-attachable.js"(Y){O(),Y.__esModule=!0;function g(W){return W===void 0&&(W=null),{trailingComment:W}}Y.createTrailingCommentAttachable=g}}),hs=c({"node_modules/yaml-unist-parser/lib/factories/comment-attachable.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=ds(),Ce=Va();function Pe(){return g.__assign(g.__assign({},W.createLeadingCommentAttachable()),Ce.createTrailingCommentAttachable())}Y.createCommentAttachable=Pe}}),ko=c({"node_modules/yaml-unist-parser/lib/factories/alias.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=hs(),Ce=kr();function Pe(Be,Ze,gt){return g.__assign(g.__assign(g.__assign(g.__assign({},Ce.createNode("alias",Be)),W.createCommentAttachable()),Ze),{value:gt})}Y.createAlias=Pe}}),pf=c({"node_modules/yaml-unist-parser/lib/transforms/alias.js"(Y){O(),Y.__esModule=!0;var g=ko();function W(Ce,Pe){var Be=Ce.cstNode;return g.createAlias(Pe.transformRange({origStart:Be.valueRange.origStart-1,origEnd:Be.valueRange.origEnd}),Pe.transformContent(Ce),Be.rawValue)}Y.transformAlias=W}}),df=c({"node_modules/yaml-unist-parser/lib/factories/block-folded.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge));function W(Ce){return g.__assign(g.__assign({},Ce),{type:"blockFolded"})}Y.createBlockFolded=W}}),Xs=c({"node_modules/yaml-unist-parser/lib/factories/block-value.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=ds(),Ce=kr();function Pe(Be,Ze,gt,Rt,st,Dt){return g.__assign(g.__assign(g.__assign(g.__assign({},Ce.createNode("blockValue",Be)),W.createLeadingCommentAttachable()),Ze),{chomping:gt,indent:Rt,value:st,indicatorComment:Dt})}Y.createBlockValue=Pe}}),Ju=c({"node_modules/yaml-unist-parser/lib/constants.js"(Y){O(),Y.__esModule=!0,function(g){g.Tag="!",g.Anchor="&",g.Comment="#"}(Y.PropLeadingCharacter||(Y.PropLeadingCharacter={}))}}),hf=c({"node_modules/yaml-unist-parser/lib/factories/anchor.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=kr();function Ce(Pe,Be){return g.__assign(g.__assign({},W.createNode("anchor",Pe)),{value:Be})}Y.createAnchor=Ce}}),Lo=c({"node_modules/yaml-unist-parser/lib/factories/comment.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=kr();function Ce(Pe,Be){return g.__assign(g.__assign({},W.createNode("comment",Pe)),{value:Be})}Y.createComment=Ce}}),mf=c({"node_modules/yaml-unist-parser/lib/factories/content.js"(Y){O(),Y.__esModule=!0;function g(W,Ce,Pe){return{anchor:Ce,tag:W,middleComments:Pe}}Y.createContent=g}}),gf=c({"node_modules/yaml-unist-parser/lib/factories/tag.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=kr();function Ce(Pe,Be){return g.__assign(g.__assign({},W.createNode("tag",Pe)),{value:Be})}Y.createTag=Ce}}),Yu=c({"node_modules/yaml-unist-parser/lib/transforms/content.js"(Y){O(),Y.__esModule=!0;var g=Ju(),W=hf(),Ce=Lo(),Pe=mf(),Be=gf();function Ze(gt,Rt,st){st===void 0&&(st=function(){return!1});for(var Dt=gt.cstNode,Ft=[],It=null,_t=null,Gt=null,Wt=0,Xt=Dt.props;Wt<Xt.length;Wt++){var bn=Xt[Wt],ye=Rt.text[bn.origStart];switch(ye){case g.PropLeadingCharacter.Tag:It=It||bn,_t=Be.createTag(Rt.transformRange(bn),gt.tag);break;case g.PropLeadingCharacter.Anchor:It=It||bn,Gt=W.createAnchor(Rt.transformRange(bn),Dt.anchor);break;case g.PropLeadingCharacter.Comment:{var K=Ce.createComment(Rt.transformRange(bn),Rt.text.slice(bn.origStart+1,bn.origEnd));Rt.comments.push(K),!st(K)&&It&&It.origEnd<=bn.origStart&&bn.origEnd<=Dt.valueRange.origStart&&Ft.push(K);break}default:throw new Error("Unexpected leading character "+JSON.stringify(ye))}}return Pe.createContent(_t,Gt,Ft)}Y.transformContent=Ze}}),Hu=c({"node_modules/yaml-unist-parser/lib/transforms/block-value.js"(Y){O(),Y.__esModule=!0;var g=Xs(),W=$a(),Ce=Yu(),Pe;(function(Ze){Ze.CLIP="clip",Ze.STRIP="strip",Ze.KEEP="keep"})(Pe||(Pe={}));function Be(Ze,gt){var Rt=Ze.cstNode,st=1,Dt=Rt.chomping==="CLIP"?0:1,Ft=Rt.header.origEnd-Rt.header.origStart,It=Ft-st-Dt!==0,_t=gt.transformRange({origStart:Rt.header.origStart,origEnd:Rt.valueRange.origEnd}),Gt=null,Wt=Ce.transformContent(Ze,gt,function(Xt){var bn=_t.start.offset<Xt.position.start.offset&&Xt.position.end.offset<_t.end.offset;if(!bn)return!1;if(Gt)throw new Error("Unexpected multiple indicator comments at "+W.getPointText(Xt.position.start));return Gt=Xt,!0});return g.createBlockValue(_t,Wt,Pe[Rt.chomping],It?Rt.blockIndent:null,Rt.strValue,Gt)}Y.transformAstBlockValue=Be}}),yf=c({"node_modules/yaml-unist-parser/lib/transforms/block-folded.js"(Y){O(),Y.__esModule=!0;var g=df(),W=Hu();function Ce(Pe,Be){return g.createBlockFolded(W.transformAstBlockValue(Pe,Be))}Y.transformBlockFolded=Ce}}),qa=c({"node_modules/yaml-unist-parser/lib/factories/block-literal.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge));function W(Ce){return g.__assign(g.__assign({},Ce),{type:"blockLiteral"})}Y.createBlockLiteral=W}}),zu=c({"node_modules/yaml-unist-parser/lib/transforms/block-literal.js"(Y){O(),Y.__esModule=!0;var g=qa(),W=Hu();function Ce(Pe,Be){return g.createBlockLiteral(W.transformAstBlockValue(Pe,Be))}Y.transformBlockLiteral=Ce}}),Df=c({"node_modules/yaml-unist-parser/lib/transforms/comment.js"(Y){O(),Y.__esModule=!0;var g=Lo();function W(Ce,Pe){return g.createComment(Pe.transformRange(Ce.range),Ce.comment)}Y.transformComment=W}}),bf=c({"node_modules/yaml-unist-parser/lib/factories/directive.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=hs(),Ce=kr();function Pe(Be,Ze,gt){return g.__assign(g.__assign(g.__assign({},Ce.createNode("directive",Be)),W.createCommentAttachable()),{name:Ze,parameters:gt})}Y.createDirective=Pe}}),Ua=c({"node_modules/yaml-unist-parser/lib/utils/extract-prop-comments.js"(Y){O(),Y.__esModule=!0;var g=Ju(),W=Lo();function Ce(Pe,Be){for(var Ze=0,gt=Pe.props;Ze<gt.length;Ze++){var Rt=gt[Ze],st=Be.text[Rt.origStart];switch(st){case g.PropLeadingCharacter.Comment:Be.comments.push(W.createComment(Be.transformRange(Rt),Be.text.slice(Rt.origStart+1,Rt.origEnd)));break;default:throw new Error("Unexpected leading character "+JSON.stringify(st))}}}Y.extractPropComments=Ce}}),Qu=c({"node_modules/yaml-unist-parser/lib/transforms/directive.js"(Y){O(),Y.__esModule=!0;var g=bf(),W=Ua();function Ce(Pe,Be){return W.extractPropComments(Pe,Be),g.createDirective(Be.transformRange(Pe.range),Pe.name,Pe.parameters)}Y.transformDirective=Ce}}),vf=c({"node_modules/yaml-unist-parser/lib/factories/document.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=kr(),Ce=Va();function Pe(Be,Ze,gt,Rt){return g.__assign(g.__assign(g.__assign({},W.createNode("document",Be)),Ce.createTrailingCommentAttachable(Rt)),{children:[Ze,gt]})}Y.createDocument=Pe}}),ms=c({"node_modules/yaml-unist-parser/lib/factories/position.js"(Y){O(),Y.__esModule=!0;function g(Ce,Pe){return{start:Ce,end:Pe}}Y.createPosition=g;function W(Ce){return{start:Ce,end:Ce}}Y.createEmptyPosition=W}}),gs=c({"node_modules/yaml-unist-parser/lib/factories/end-comment-attachable.js"(Y){O(),Y.__esModule=!0;function g(W){return W===void 0&&(W=[]),{endComments:W}}Y.createEndCommentAttachable=g}}),Ef=c({"node_modules/yaml-unist-parser/lib/factories/document-body.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=gs(),Ce=kr();function Pe(Be,Ze,gt){return g.__assign(g.__assign(g.__assign({},Ce.createNode("documentBody",Be)),W.createEndCommentAttachable(gt)),{children:Ze?[Ze]:[]})}Y.createDocumentBody=Pe}}),ys=c({"node_modules/yaml-unist-parser/lib/utils/get-last.js"(Y){O(),Y.__esModule=!0;function g(W){return W[W.length-1]}Y.getLast=g}}),Xu=c({"node_modules/yaml-unist-parser/lib/utils/get-match-index.js"(Y){O(),Y.__esModule=!0;function g(W,Ce){var Pe=W.match(Ce);return Pe?Pe.index:-1}Y.getMatchIndex=g}}),Ku=c({"node_modules/yaml-unist-parser/lib/transforms/document-body.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=Ef(),Ce=ys(),Pe=Xu(),Be=$a();function Ze(st,Dt,Ft){var It,_t=st.cstNode,Gt=gt(_t,Dt,Ft),Wt=Gt.comments,Xt=Gt.endComments,bn=Gt.documentTrailingComment,ye=Gt.documentHeadTrailingComment,K=Dt.transformNode(st.contents),I=Rt(_t,K,Dt),H=I.position,le=I.documentEndPoint;return(It=Dt.comments).push.apply(It,g.__spreadArrays(Wt,Xt)),{documentBody:W.createDocumentBody(H,K,Xt),documentEndPoint:le,documentTrailingComment:bn,documentHeadTrailingComment:ye}}Y.transformDocumentBody=Ze;function gt(st,Dt,Ft){for(var It=[],_t=[],Gt=[],Wt=[],Xt=!1,bn=st.contents.length-1;bn>=0;bn--){var ye=st.contents[bn];if(ye.type==="COMMENT"){var K=Dt.transformNode(ye);Ft&&Ft.line===K.position.start.line?Wt.unshift(K):Xt?It.unshift(K):K.position.start.offset>=st.valueRange.origEnd?Gt.unshift(K):It.unshift(K)}else Xt=!0}if(Gt.length>1)throw new Error("Unexpected multiple document trailing comments at "+Be.getPointText(Gt[1].position.start));if(Wt.length>1)throw new Error("Unexpected multiple documentHead trailing comments at "+Be.getPointText(Wt[1].position.start));return{comments:It,endComments:_t,documentTrailingComment:Ce.getLast(Gt)||null,documentHeadTrailingComment:Ce.getLast(Wt)||null}}function Rt(st,Dt,Ft){var It=Pe.getMatchIndex(Ft.text.slice(st.valueRange.origEnd),/^\.\.\./),_t=It===-1?st.valueRange.origEnd:Math.max(0,st.valueRange.origEnd-1);Ft.text[_t-1]==="\r"&&_t--;var Gt=Ft.transformRange({origStart:Dt!==null?Dt.position.start.offset:_t,origEnd:_t}),Wt=It===-1?Gt.end:Ft.transformOffset(st.valueRange.origEnd+3);return{position:Gt,documentEndPoint:Wt}}}}),Af=c({"node_modules/yaml-unist-parser/lib/factories/document-head.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=gs(),Ce=kr(),Pe=Va();function Be(Ze,gt,Rt,st){return g.__assign(g.__assign(g.__assign(g.__assign({},Ce.createNode("documentHead",Ze)),W.createEndCommentAttachable(Rt)),Pe.createTrailingCommentAttachable(st)),{children:gt})}Y.createDocumentHead=Be}}),Zu=c({"node_modules/yaml-unist-parser/lib/transforms/document-head.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=Af(),Ce=Xu();function Pe(gt,Rt){var st,Dt=gt.cstNode,Ft=Be(Dt,Rt),It=Ft.directives,_t=Ft.comments,Gt=Ft.endComments,Wt=Ze(Dt,It,Rt),Xt=Wt.position,bn=Wt.endMarkerPoint;(st=Rt.comments).push.apply(st,g.__spreadArrays(_t,Gt));var ye=function(K){return K&&Rt.comments.push(K),W.createDocumentHead(Xt,It,Gt,K)};return{createDocumentHeadWithTrailingComment:ye,documentHeadEndMarkerPoint:bn}}Y.transformDocumentHead=Pe;function Be(gt,Rt){for(var st=[],Dt=[],Ft=[],It=!1,_t=gt.directives.length-1;_t>=0;_t--){var Gt=Rt.transformNode(gt.directives[_t]);Gt.type==="comment"?It?Dt.unshift(Gt):Ft.unshift(Gt):(It=!0,st.unshift(Gt))}return{directives:st,comments:Dt,endComments:Ft}}function Ze(gt,Rt,st){var Dt=Ce.getMatchIndex(st.text.slice(0,gt.valueRange.origStart),/---\s*$/);Dt>0&&!/[\r\n]/.test(st.text[Dt-1])&&(Dt=-1);var Ft=Dt===-1?{origStart:gt.valueRange.origStart,origEnd:gt.valueRange.origStart}:{origStart:Dt,origEnd:Dt+3};return Rt.length!==0&&(Ft.origStart=Rt[0].position.start.offset),{position:st.transformRange(Ft),endMarkerPoint:Dt===-1?null:st.transformOffset(Dt)}}}}),Cf=c({"node_modules/yaml-unist-parser/lib/transforms/document.js"(Y){O(),Y.__esModule=!0;var g=vf(),W=ms(),Ce=Ku(),Pe=Zu();function Be(Ze,gt){var Rt=Pe.transformDocumentHead(Ze,gt),st=Rt.createDocumentHeadWithTrailingComment,Dt=Rt.documentHeadEndMarkerPoint,Ft=Ce.transformDocumentBody(Ze,gt,Dt),It=Ft.documentBody,_t=Ft.documentEndPoint,Gt=Ft.documentTrailingComment,Wt=Ft.documentHeadTrailingComment,Xt=st(Wt);return Gt&&gt.comments.push(Gt),g.createDocument(W.createPosition(Xt.position.start,_t),Xt,It,Gt)}Y.transformDocument=Be}}),el=c({"node_modules/yaml-unist-parser/lib/factories/flow-collection.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=hs(),Ce=gs(),Pe=kr();function Be(Ze,gt,Rt){return g.__assign(g.__assign(g.__assign(g.__assign(g.__assign({},Pe.createNode("flowCollection",Ze)),W.createCommentAttachable()),Ce.createEndCommentAttachable()),gt),{children:Rt})}Y.createFlowCollection=Be}}),Sf=c({"node_modules/yaml-unist-parser/lib/factories/flow-mapping.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=el();function Ce(Pe,Be,Ze){return g.__assign(g.__assign({},W.createFlowCollection(Pe,Be,Ze)),{type:"flowMapping"})}Y.createFlowMapping=Ce}}),tl=c({"node_modules/yaml-unist-parser/lib/factories/flow-mapping-item.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=ds(),Ce=kr();function Pe(Be,Ze,gt){return g.__assign(g.__assign(g.__assign({},Ce.createNode("flowMappingItem",Be)),W.createLeadingCommentAttachable()),{children:[Ze,gt]})}Y.createFlowMappingItem=Pe}}),Wa=c({"node_modules/yaml-unist-parser/lib/utils/extract-comments.js"(Y){O(),Y.__esModule=!0;function g(W,Ce){for(var Pe=[],Be=0,Ze=W;Be<Ze.length;Be++){var gt=Ze[Be];gt&&"type"in gt&&gt.type==="COMMENT"?Ce.comments.push(Ce.transformNode(gt)):Pe.push(gt)}return Pe}Y.extractComments=g}}),nl=c({"node_modules/yaml-unist-parser/lib/utils/get-flow-map-item-additional-ranges.js"(Y){O(),Y.__esModule=!0;function g(W){var Ce=["?",":"].map(function(Ze){var gt=W.find(function(Rt){return"char"in Rt&&Rt.char===Ze});return gt?{origStart:gt.origOffset,origEnd:gt.origOffset+1}:null}),Pe=Ce[0],Be=Ce[1];return{additionalKeyRange:Pe,additionalValueRange:Be}}Y.getFlowMapItemAdditionalRanges=g}}),rl=c({"node_modules/yaml-unist-parser/lib/utils/create-slicer.js"(Y){O(),Y.__esModule=!0;function g(W,Ce){var Pe=Ce;return function(Be){return W.slice(Pe,Pe=Be)}}Y.createSlicer=g}}),il=c({"node_modules/yaml-unist-parser/lib/utils/group-cst-flow-collection-items.js"(Y){O(),Y.__esModule=!0;var g=rl();function W(Ce){for(var Pe=[],Be=g.createSlicer(Ce,1),Ze=!1,gt=1;gt<Ce.length-1;gt++){var Rt=Ce[gt];if("char"in Rt&&Rt.char===","){Pe.push(Be(gt)),Be(gt+1),Ze=!1;continue}Ze=!0}return Ze&&Pe.push(Be(Ce.length-1)),Pe}Y.groupCstFlowCollectionItems=W}}),xf=c({"node_modules/yaml-unist-parser/lib/factories/mapping-key.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=gs(),Ce=kr(),Pe=Va();function Be(Ze,gt){return g.__assign(g.__assign(g.__assign(g.__assign({},Ce.createNode("mappingKey",Ze)),Pe.createTrailingCommentAttachable()),W.createEndCommentAttachable()),{children:gt?[gt]:[]})}Y.createMappingKey=Be}}),wf=c({"node_modules/yaml-unist-parser/lib/factories/mapping-value.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=hs(),Ce=gs(),Pe=kr();function Be(Ze,gt){return g.__assign(g.__assign(g.__assign(g.__assign({},Pe.createNode("mappingValue",Ze)),W.createCommentAttachable()),Ce.createEndCommentAttachable()),{children:gt?[gt]:[]})}Y.createMappingValue=Be}}),Po=c({"node_modules/yaml-unist-parser/lib/transforms/pair.js"(Y){O(),Y.__esModule=!0;var g=xf(),W=wf(),Ce=ms();function Pe(Be,Ze,gt,Rt,st){var Dt=Ze.transformNode(Be.key),Ft=Ze.transformNode(Be.value),It=Dt||Rt?g.createMappingKey(Ze.transformRange({origStart:Rt?Rt.origStart:Dt.position.start.offset,origEnd:Dt?Dt.position.end.offset:Rt.origStart+1}),Dt):null,_t=Ft||st?W.createMappingValue(Ze.transformRange({origStart:st?st.origStart:Ft.position.start.offset,origEnd:Ft?Ft.position.end.offset:st.origStart+1}),Ft):null;return gt(Ce.createPosition(It?It.position.start:_t.position.start,_t?_t.position.end:It.position.end),It||g.createMappingKey(Ce.createEmptyPosition(_t.position.start),null),_t||W.createMappingValue(Ce.createEmptyPosition(It.position.end),null))}Y.transformAstPair=Pe}}),Ff=c({"node_modules/yaml-unist-parser/lib/transforms/flow-map.js"(Y){O(),Y.__esModule=!0;var g=Sf(),W=tl(),Ce=Wa(),Pe=nl(),Be=ys(),Ze=il(),gt=Po();function Rt(st,Dt){var Ft=Ce.extractComments(st.cstNode.items,Dt),It=Ze.groupCstFlowCollectionItems(Ft),_t=st.items.map(function(Xt,bn){var ye=It[bn],K=Pe.getFlowMapItemAdditionalRanges(ye),I=K.additionalKeyRange,H=K.additionalValueRange;return gt.transformAstPair(Xt,Dt,W.createFlowMappingItem,I,H)}),Gt=Ft[0],Wt=Be.getLast(Ft);return g.createFlowMapping(Dt.transformRange({origStart:Gt.origOffset,origEnd:Wt.origOffset+1}),Dt.transformContent(st),_t)}Y.transformFlowMap=Rt}}),Qt=c({"node_modules/yaml-unist-parser/lib/factories/flow-sequence.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=el();function Ce(Pe,Be,Ze){return g.__assign(g.__assign({},W.createFlowCollection(Pe,Be,Ze)),{type:"flowSequence"})}Y.createFlowSequence=Ce}}),at=c({"node_modules/yaml-unist-parser/lib/factories/flow-sequence-item.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=kr();function Ce(Pe,Be){return g.__assign(g.__assign({},W.createNode("flowSequenceItem",Pe)),{children:[Be]})}Y.createFlowSequenceItem=Ce}}),Ke=c({"node_modules/yaml-unist-parser/lib/transforms/flow-seq.js"(Y){O(),Y.__esModule=!0;var g=tl(),W=Qt(),Ce=at(),Pe=ms(),Be=Wa(),Ze=nl(),gt=ys(),Rt=il(),st=Po();function Dt(Ft,It){var _t=Be.extractComments(Ft.cstNode.items,It),Gt=Rt.groupCstFlowCollectionItems(_t),Wt=Ft.items.map(function(ye,K){if(ye.type!=="PAIR"){var I=It.transformNode(ye);return Ce.createFlowSequenceItem(Pe.createPosition(I.position.start,I.position.end),I)}else{var H=Gt[K],le=Ze.getFlowMapItemAdditionalRanges(H),Fe=le.additionalKeyRange,Me=le.additionalValueRange;return st.transformAstPair(ye,It,g.createFlowMappingItem,Fe,Me)}}),Xt=_t[0],bn=gt.getLast(_t);return W.createFlowSequence(It.transformRange({origStart:Xt.origOffset,origEnd:bn.origOffset+1}),It.transformContent(Ft),Wt)}Y.transformFlowSeq=Dt}}),ut=c({"node_modules/yaml-unist-parser/lib/factories/mapping.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=ds(),Ce=kr();function Pe(Be,Ze,gt){return g.__assign(g.__assign(g.__assign(g.__assign({},Ce.createNode("mapping",Be)),W.createLeadingCommentAttachable()),Ze),{children:gt})}Y.createMapping=Pe}}),it=c({"node_modules/yaml-unist-parser/lib/factories/mapping-item.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=ds(),Ce=kr();function Pe(Be,Ze,gt){return g.__assign(g.__assign(g.__assign({},Ce.createNode("mappingItem",Be)),W.createLeadingCommentAttachable()),{children:[Ze,gt]})}Y.createMappingItem=Pe}}),St=c({"node_modules/yaml-unist-parser/lib/transforms/map.js"(Y){O(),Y.__esModule=!0;var g=ut(),W=it(),Ce=ms(),Pe=rl(),Be=Wa(),Ze=Ua(),gt=ys(),Rt=Po();function st(Ft,It){var _t=Ft.cstNode;_t.items.filter(function(bn){return bn.type==="MAP_KEY"||bn.type==="MAP_VALUE"}).forEach(function(bn){return Ze.extractPropComments(bn,It)});var Gt=Be.extractComments(_t.items,It),Wt=Dt(Gt),Xt=Ft.items.map(function(bn,ye){var K=Wt[ye],I=K[0].type==="MAP_VALUE"?[null,K[0].range]:[K[0].range,K.length===1?null:K[1].range],H=I[0],le=I[1];return Rt.transformAstPair(bn,It,W.createMappingItem,H,le)});return g.createMapping(Ce.createPosition(Xt[0].position.start,gt.getLast(Xt).position.end),It.transformContent(Ft),Xt)}Y.transformMap=st;function Dt(Ft){for(var It=[],_t=Pe.createSlicer(Ft,0),Gt=!1,Wt=0;Wt<Ft.length;Wt++){var Xt=Ft[Wt];if(Xt.type==="MAP_VALUE"){It.push(_t(Wt+1)),Gt=!1;continue}Gt&&It.push(_t(Wt)),Gt=!0}return Gt&&It.push(_t(1/0)),It}}}),Pt=c({"node_modules/yaml-unist-parser/lib/factories/plain.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=hs(),Ce=kr();function Pe(Be,Ze,gt){return g.__assign(g.__assign(g.__assign(g.__assign({},Ce.createNode("plain",Be)),W.createCommentAttachable()),Ze),{value:gt})}Y.createPlain=Pe}}),Yt=c({"node_modules/yaml-unist-parser/lib/utils/find-last-char-index.js"(Y){O(),Y.__esModule=!0;function g(W,Ce,Pe){for(var Be=Ce;Be>=0;Be--)if(Pe.test(W[Be]))return Be;return-1}Y.findLastCharIndex=g}}),Vt=c({"node_modules/yaml-unist-parser/lib/transforms/plain.js"(Y){O(),Y.__esModule=!0;var g=Pt(),W=Yt();function Ce(Pe,Be){var Ze=Pe.cstNode;return g.createPlain(Be.transformRange({origStart:Ze.valueRange.origStart,origEnd:W.findLastCharIndex(Be.text,Ze.valueRange.origEnd-1,/\S/)+1}),Be.transformContent(Pe),Ze.strValue)}Y.transformPlain=Ce}}),Ht=c({"node_modules/yaml-unist-parser/lib/factories/quote-double.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge));function W(Ce){return g.__assign(g.__assign({},Ce),{type:"quoteDouble"})}Y.createQuoteDouble=W}}),pn=c({"node_modules/yaml-unist-parser/lib/factories/quote-value.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=hs(),Ce=kr();function Pe(Be,Ze,gt){return g.__assign(g.__assign(g.__assign(g.__assign({},Ce.createNode("quoteValue",Be)),Ze),W.createCommentAttachable()),{value:gt})}Y.createQuoteValue=Pe}}),yn=c({"node_modules/yaml-unist-parser/lib/transforms/quote-value.js"(Y){O(),Y.__esModule=!0;var g=pn();function W(Ce,Pe){var Be=Ce.cstNode;return g.createQuoteValue(Pe.transformRange(Be.valueRange),Pe.transformContent(Ce),Be.strValue)}Y.transformAstQuoteValue=W}}),vn=c({"node_modules/yaml-unist-parser/lib/transforms/quote-double.js"(Y){O(),Y.__esModule=!0;var g=Ht(),W=yn();function Ce(Pe,Be){return g.createQuoteDouble(W.transformAstQuoteValue(Pe,Be))}Y.transformQuoteDouble=Ce}}),dn=c({"node_modules/yaml-unist-parser/lib/factories/quote-single.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge));function W(Ce){return g.__assign(g.__assign({},Ce),{type:"quoteSingle"})}Y.createQuoteSingle=W}}),_e=c({"node_modules/yaml-unist-parser/lib/transforms/quote-single.js"(Y){O(),Y.__esModule=!0;var g=dn(),W=yn();function Ce(Pe,Be){return g.createQuoteSingle(W.transformAstQuoteValue(Pe,Be))}Y.transformQuoteSingle=Ce}}),wn=c({"node_modules/yaml-unist-parser/lib/factories/sequence.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=gs(),Ce=ds(),Pe=kr();function Be(Ze,gt,Rt){return g.__assign(g.__assign(g.__assign(g.__assign(g.__assign({},Pe.createNode("sequence",Ze)),Ce.createLeadingCommentAttachable()),W.createEndCommentAttachable()),gt),{children:Rt})}Y.createSequence=Be}}),On=c({"node_modules/yaml-unist-parser/lib/factories/sequence-item.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge)),W=hs(),Ce=gs(),Pe=kr();function Be(Ze,gt){return g.__assign(g.__assign(g.__assign(g.__assign({},Pe.createNode("sequenceItem",Ze)),W.createCommentAttachable()),Ce.createEndCommentAttachable()),{children:gt?[gt]:[]})}Y.createSequenceItem=Be}}),er=c({"node_modules/yaml-unist-parser/lib/transforms/seq.js"(Y){O(),Y.__esModule=!0;var g=ms(),W=wn(),Ce=On(),Pe=Wa(),Be=Ua(),Ze=ys();function gt(Rt,st){var Dt=Pe.extractComments(Rt.cstNode.items,st),Ft=Dt.map(function(It,_t){Be.extractPropComments(It,st);var Gt=st.transformNode(Rt.items[_t]);return Ce.createSequenceItem(g.createPosition(st.transformOffset(It.valueRange.origStart),Gt===null?st.transformOffset(It.valueRange.origStart+1):Gt.position.end),Gt)});return W.createSequence(g.createPosition(Ft[0].position.start,Ze.getLast(Ft).position.end),st.transformContent(Rt),Ft)}Y.transformSeq=gt}}),Qn=c({"node_modules/yaml-unist-parser/lib/transform.js"(Y){O(),Y.__esModule=!0;var g=pf(),W=yf(),Ce=zu(),Pe=Df(),Be=Qu(),Ze=Cf(),gt=Ff(),Rt=Ke(),st=St(),Dt=Vt(),Ft=vn(),It=_e(),_t=er();function Gt(Wt,Xt){if(Wt===null||Wt.type===void 0&&Wt.value===null)return null;switch(Wt.type){case"ALIAS":return g.transformAlias(Wt,Xt);case"BLOCK_FOLDED":return W.transformBlockFolded(Wt,Xt);case"BLOCK_LITERAL":return Ce.transformBlockLiteral(Wt,Xt);case"COMMENT":return Pe.transformComment(Wt,Xt);case"DIRECTIVE":return Be.transformDirective(Wt,Xt);case"DOCUMENT":return Ze.transformDocument(Wt,Xt);case"FLOW_MAP":return gt.transformFlowMap(Wt,Xt);case"FLOW_SEQ":return Rt.transformFlowSeq(Wt,Xt);case"MAP":return st.transformMap(Wt,Xt);case"PLAIN":return Dt.transformPlain(Wt,Xt);case"QUOTE_DOUBLE":return Ft.transformQuoteDouble(Wt,Xt);case"QUOTE_SINGLE":return It.transformQuoteSingle(Wt,Xt);case"SEQ":return _t.transformSeq(Wt,Xt);default:throw new Error("Unexpected node type "+Wt.type)}}Y.transformNode=Gt}}),xr=c({"node_modules/yaml-unist-parser/lib/factories/error.js"(Y){O(),Y.__esModule=!0;function g(W,Ce,Pe){var Be=new SyntaxError(W);return Be.name="YAMLSyntaxError",Be.source=Ce,Be.position=Pe,Be}Y.createError=g}}),Re=c({"node_modules/yaml-unist-parser/lib/transforms/error.js"(Y){O(),Y.__esModule=!0;var g=xr();function W(Ce,Pe){var Be=Ce.source.range||Ce.source.valueRange;return g.createError(Ce.message,Pe.text,Pe.transformRange(Be))}Y.transformError=W}}),ei=c({"node_modules/yaml-unist-parser/lib/factories/point.js"(Y){O(),Y.__esModule=!0;function g(W,Ce,Pe){return{offset:W,line:Ce,column:Pe}}Y.createPoint=g}}),Ds=c({"node_modules/yaml-unist-parser/lib/transforms/offset.js"(Y){O(),Y.__esModule=!0;var g=ei();function W(Ce,Pe){Ce<0?Ce=0:Ce>Pe.text.length&&(Ce=Pe.text.length);var Be=Pe.locator.locationForIndex(Ce);return g.createPoint(Ce,Be.line+1,Be.column+1)}Y.transformOffset=W}}),Is=c({"node_modules/yaml-unist-parser/lib/transforms/range.js"(Y){O(),Y.__esModule=!0;var g=ms();function W(Ce,Pe){return g.createPosition(Pe.transformOffset(Ce.origStart),Pe.transformOffset(Ce.origEnd))}Y.transformRange=W}}),yi=c({"node_modules/yaml-unist-parser/lib/utils/add-orig-range.js"(Y){O(),Y.__esModule=!0;var g=!0;function W(Ze){if(!Ze.setOrigRanges()){var gt=function(Rt){if(Pe(Rt))return Rt.origStart=Rt.start,Rt.origEnd=Rt.end,g;if(Be(Rt))return Rt.origOffset=Rt.offset,g};Ze.forEach(function(Rt){return Ce(Rt,gt)})}}Y.addOrigRange=W;function Ce(Ze,gt){if(!(!Ze||typeof Ze!="object")&&gt(Ze)!==g)for(var Rt=0,st=Object.keys(Ze);Rt<st.length;Rt++){var Dt=st[Rt];if(!(Dt==="context"||Dt==="error")){var Ft=Ze[Dt];Array.isArray(Ft)?Ft.forEach(function(It){return Ce(It,gt)}):Ce(Ft,gt)}}}function Pe(Ze){return typeof Ze.start=="number"}function Be(Ze){return typeof Ze.offset=="number"}}}),rs=c({"node_modules/yaml-unist-parser/lib/utils/remove-fake-nodes.js"(Y){O(),Y.__esModule=!0;function g(W){if("children"in W){if(W.children.length===1){var Ce=W.children[0];if(Ce.type==="plain"&&Ce.tag===null&&Ce.anchor===null&&Ce.value==="")return W.children.splice(0,1),W}W.children.forEach(g)}return W}Y.removeFakeNodes=g}}),Vr=c({"node_modules/yaml-unist-parser/lib/utils/create-updater.js"(Y){O(),Y.__esModule=!0;function g(W,Ce,Pe,Be){var Ze=Ce(W);return function(gt){Be(Ze,gt)&&Pe(W,Ze=gt)}}Y.createUpdater=g}}),Ga=c({"node_modules/yaml-unist-parser/lib/utils/update-positions.js"(Y){O(),Y.__esModule=!0;var g=Vr(),W=ys();function Ce(Dt){if(!(Dt===null||!("children"in Dt))){var Ft=Dt.children;if(Ft.forEach(Ce),Dt.type==="document"){var It=Dt.children,_t=It[0],Gt=It[1];_t.position.start.offset===_t.position.end.offset?_t.position.start=_t.position.end=Gt.position.start:Gt.position.start.offset===Gt.position.end.offset&&(Gt.position.start=Gt.position.end=_t.position.end)}var Wt=g.createUpdater(Dt.position,Pe,Be,Rt),Xt=g.createUpdater(Dt.position,Ze,gt,st);"endComments"in Dt&&Dt.endComments.length!==0&&(Wt(Dt.endComments[0].position.start),Xt(W.getLast(Dt.endComments).position.end));var bn=Ft.filter(function(I){return I!==null});if(bn.length!==0){var ye=bn[0],K=W.getLast(bn);Wt(ye.position.start),Xt(K.position.end),"leadingComments"in ye&&ye.leadingComments.length!==0&&Wt(ye.leadingComments[0].position.start),"tag"in ye&&ye.tag&&Wt(ye.tag.position.start),"anchor"in ye&&ye.anchor&&Wt(ye.anchor.position.start),"trailingComment"in K&&K.trailingComment&&Xt(K.trailingComment.position.end)}}}Y.updatePositions=Ce;function Pe(Dt){return Dt.start}function Be(Dt,Ft){Dt.start=Ft}function Ze(Dt){return Dt.end}function gt(Dt,Ft){Dt.end=Ft}function Rt(Dt,Ft){return Ft.offset<Dt.offset}function st(Dt,Ft){return Ft.offset>Dt.offset}}}),Wr=c({"node_modules/yaml/dist/PlainValue-ec8e588e.js"(Y){O();var g={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},W={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},Ce="tag:yaml.org,2002:",Pe={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function Be(K){let I=[0],H=K.indexOf(`
262
- `);for(;H!==-1;)H+=1,I.push(H),H=K.indexOf(`
263
- `,H);return I}function Ze(K){let I,H;return typeof K=="string"?(I=Be(K),H=K):(Array.isArray(K)&&(K=K[0]),K&&K.context&&(K.lineStarts||(K.lineStarts=Be(K.context.src)),I=K.lineStarts,H=K.context.src)),{lineStarts:I,src:H}}function gt(K,I){if(typeof K!="number"||K<0)return null;let{lineStarts:H,src:le}=Ze(I);if(!H||!le||K>le.length)return null;for(let Me=0;Me<H.length;++Me){let ve=H[Me];if(K<ve)return{line:Me,col:K-H[Me-1]+1};if(K===ve)return{line:Me+1,col:1}}let Fe=H.length;return{line:Fe,col:K-H[Fe-1]+1}}function Rt(K,I){let{lineStarts:H,src:le}=Ze(I);if(!H||!(K>=1)||K>H.length)return null;let Fe=H[K-1],Me=H[K];for(;Me&&Me>Fe&&le[Me-1]===`
264
- `;)--Me;return le.slice(Fe,Me)}function st(K,I){let{start:H,end:le}=K,Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:80,Me=Rt(H.line,I);if(!Me)return null;let{col:ve}=H;if(Me.length>Fe)if(ve<=Fe-10)Me=Me.substr(0,Fe-1)+"…";else{let En=Math.round(Fe/2);Me.length>ve+En&&(Me=Me.substr(0,ve+En-1)+"…"),ve-=Me.length-Fe,Me="…"+Me.substr(1-Fe)}let je=1,At="";le&&(le.line===H.line&&ve+(le.col-H.col)<=Fe+1?je=le.col-H.col:(je=Math.min(Me.length+1,Fe)-ve,At="…"));let Ot=ve>1?" ".repeat(ve-1):"",zt="^".repeat(je);return`${Me}
265
- ${Ot}${zt}${At}`}var Dt=class{static copy(K){return new Dt(K.start,K.end)}constructor(K,I){this.start=K,this.end=I||K}isEmpty(){return typeof this.start!="number"||!this.end||this.end<=this.start}setOrigRange(K,I){let{start:H,end:le}=this;if(K.length===0||le<=K[0])return this.origStart=H,this.origEnd=le,I;let Fe=I;for(;Fe<K.length&&!(K[Fe]>H);)++Fe;this.origStart=H+Fe;let Me=Fe;for(;Fe<K.length&&!(K[Fe]>=le);)++Fe;return this.origEnd=le+Fe,Me}},Ft=class{static addStringTerminator(K,I,H){if(H[H.length-1]===`
266
- `)return H;let le=Ft.endOfWhiteSpace(K,I);return le>=K.length||K[le]===`
267
- `?H+`
268
- `:H}static atDocumentBoundary(K,I,H){let le=K[I];if(!le)return!0;let Fe=K[I-1];if(Fe&&Fe!==`
269
- `)return!1;if(H){if(le!==H)return!1}else if(le!==g.DIRECTIVES_END&&le!==g.DOCUMENT_END)return!1;let Me=K[I+1],ve=K[I+2];if(Me!==le||ve!==le)return!1;let je=K[I+3];return!je||je===`
270
- `||je===" "||je===" "}static endOfIdentifier(K,I){let H=K[I],le=H==="<",Fe=le?[`
271
- `," "," ",">"]:[`
272
- `," "," ","[","]","{","}",","];for(;H&&Fe.indexOf(H)===-1;)H=K[I+=1];return le&&H===">"&&(I+=1),I}static endOfIndent(K,I){let H=K[I];for(;H===" ";)H=K[I+=1];return I}static endOfLine(K,I){let H=K[I];for(;H&&H!==`
273
- `;)H=K[I+=1];return I}static endOfWhiteSpace(K,I){let H=K[I];for(;H===" "||H===" ";)H=K[I+=1];return I}static startOfLine(K,I){let H=K[I-1];if(H===`
274
- `)return I;for(;H&&H!==`
275
- `;)H=K[I-=1];return I+1}static endOfBlockIndent(K,I,H){let le=Ft.endOfIndent(K,H);if(le>H+I)return le;{let Fe=Ft.endOfWhiteSpace(K,le),Me=K[Fe];if(!Me||Me===`
276
- `)return Fe}return null}static atBlank(K,I,H){let le=K[I];return le===`
277
- `||le===" "||le===" "||H&&!le}static nextNodeIsIndented(K,I,H){return!K||I<0?!1:I>0?!0:H&&K==="-"}static normalizeOffset(K,I){let H=K[I];return H?H!==`
278
- `&&K[I-1]===`
279
- `?I-1:Ft.endOfWhiteSpace(K,I):I}static foldNewline(K,I,H){let le=0,Fe=!1,Me="",ve=K[I+1];for(;ve===" "||ve===" "||ve===`
280
- `;){switch(ve){case`
281
- `:le=0,I+=1,Me+=`
282
- `;break;case" ":le<=H&&(Fe=!0),I=Ft.endOfWhiteSpace(K,I+2)-1;break;case" ":le+=1,I+=1;break}ve=K[I+1]}return Me||(Me=" "),ve&&le<=H&&(Fe=!0),{fold:Me,offset:I,error:Fe}}constructor(K,I,H){Object.defineProperty(this,"context",{value:H||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=I||[],this.type=K,this.value=null}getPropValue(K,I,H){if(!this.context)return null;let{src:le}=this.context,Fe=this.props[K];return Fe&&le[Fe.start]===I?le.slice(Fe.start+(H?1:0),Fe.end):null}get anchor(){for(let K=0;K<this.props.length;++K){let I=this.getPropValue(K,g.ANCHOR,!0);if(I!=null)return I}return null}get comment(){let K=[];for(let I=0;I<this.props.length;++I){let H=this.getPropValue(I,g.COMMENT,!0);H!=null&&K.push(H)}return K.length>0?K.join(`
283
- `):null}commentHasRequiredWhitespace(K){let{src:I}=this.context;if(this.header&&K===this.header.end||!this.valueRange)return!1;let{end:H}=this.valueRange;return K!==H||Ft.atBlank(I,H-1)}get hasComment(){if(this.context){let{src:K}=this.context;for(let I=0;I<this.props.length;++I)if(K[this.props[I].start]===g.COMMENT)return!0}return!1}get hasProps(){if(this.context){let{src:K}=this.context;for(let I=0;I<this.props.length;++I)if(K[this.props[I].start]!==g.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return[W.FLOW_MAP,W.FLOW_SEQ,W.QUOTE_DOUBLE,W.QUOTE_SINGLE].indexOf(this.type)!==-1}get rangeAsLinePos(){if(!this.range||!this.context)return;let K=gt(this.range.start,this.context.root);if(!K)return;let I=gt(this.range.end,this.context.root);return{start:K,end:I}}get rawValue(){if(!this.valueRange||!this.context)return null;let{start:K,end:I}=this.valueRange;return this.context.src.slice(K,I)}get tag(){for(let K=0;K<this.props.length;++K){let I=this.getPropValue(K,g.TAG,!1);if(I!=null){if(I[1]==="<")return{verbatim:I.slice(2,-1)};{let[H,le,Fe]=I.match(/^(.*!)([^!]*)$/);return{handle:le,suffix:Fe}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;let{start:K,end:I}=this.valueRange,{src:H}=this.context;for(let le=K;le<I;++le)if(H[le]===`
284
- `)return!0;return!1}parseComment(K){let{src:I}=this.context;if(I[K]===g.COMMENT){let H=Ft.endOfLine(I,K+1),le=new Dt(K,H);return this.props.push(le),H}return K}setOrigRanges(K,I){return this.range&&(I=this.range.setOrigRange(K,I)),this.valueRange&&this.valueRange.setOrigRange(K,I),this.props.forEach(H=>H.setOrigRange(K,I)),I}toString(){let{context:{src:K},range:I,value:H}=this;if(H!=null)return H;let le=K.slice(I.start,I.end);return Ft.addStringTerminator(K,I.end,le)}},It=class extends Error{constructor(K,I,H){if(!H||!(I instanceof Ft))throw new Error(`Invalid arguments for new ${K}`);super(),this.name=K,this.message=H,this.source=I}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let K=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new Dt(this.offset,this.offset+1);let I=K&&gt(this.offset,K);if(I){let H={line:I.line,col:I.col+1};this.linePos={start:I,end:H}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:I,col:H}=this.linePos.start;this.message+=` at line ${I}, column ${H}`;let le=K&&st(this.linePos,K);le&&(this.message+=`:
285
-
286
- ${le}
287
- `)}delete this.source}},_t=class extends It{constructor(K,I){super("YAMLReferenceError",K,I)}},Gt=class extends It{constructor(K,I){super("YAMLSemanticError",K,I)}},Wt=class extends It{constructor(K,I){super("YAMLSyntaxError",K,I)}},Xt=class extends It{constructor(K,I){super("YAMLWarning",K,I)}};function bn(K,I,H){return I in K?Object.defineProperty(K,I,{value:H,enumerable:!0,configurable:!0,writable:!0}):K[I]=H,K}var ye=class extends Ft{static endOfLine(K,I,H){let le=K[I],Fe=I;for(;le&&le!==`
288
- `&&!(H&&(le==="["||le==="]"||le==="{"||le==="}"||le===","));){let Me=K[Fe+1];if(le===":"&&(!Me||Me===`
289
- `||Me===" "||Me===" "||H&&Me===",")||(le===" "||le===" ")&&Me==="#")break;Fe+=1,le=Me}return Fe}get strValue(){if(!this.valueRange||!this.context)return null;let{start:K,end:I}=this.valueRange,{src:H}=this.context,le=H[I-1];for(;K<I&&(le===`
290
- `||le===" "||le===" ");)le=H[--I-1];let Fe="";for(let ve=K;ve<I;++ve){let je=H[ve];if(je===`
291
- `){let{fold:At,offset:Ot}=Ft.foldNewline(H,ve,-1);Fe+=At,ve=Ot}else if(je===" "||je===" "){let At=ve,Ot=H[ve+1];for(;ve<I&&(Ot===" "||Ot===" ");)ve+=1,Ot=H[ve+1];Ot!==`
292
- `&&(Fe+=ve>At?H.slice(At,ve+1):je)}else Fe+=je}let Me=H[K];switch(Me){case" ":{let ve="Plain value cannot start with a tab character";return{errors:[new Gt(this,ve)],str:Fe}}case"@":case"`":{let ve=`Plain value cannot start with reserved character ${Me}`;return{errors:[new Gt(this,ve)],str:Fe}}default:return Fe}}parseBlockValue(K){let{indent:I,inFlow:H,src:le}=this.context,Fe=K,Me=K;for(let ve=le[Fe];ve===`
293
- `&&!Ft.atDocumentBoundary(le,Fe+1);ve=le[Fe]){let je=Ft.endOfBlockIndent(le,I,Fe+1);if(je===null||le[je]==="#")break;le[je]===`
294
- `?Fe=je:(Me=ye.endOfLine(le,je,H),Fe=Me)}return this.valueRange.isEmpty()&&(this.valueRange.start=K),this.valueRange.end=Me,Me}parse(K,I){this.context=K;let{inFlow:H,src:le}=K,Fe=I,Me=le[Fe];return Me&&Me!=="#"&&Me!==`
295
- `&&(Fe=ye.endOfLine(le,I,H)),this.valueRange=new Dt(I,Fe),Fe=Ft.endOfWhiteSpace(le,Fe),Fe=this.parseComment(Fe),(!this.hasComment||this.valueRange.isEmpty())&&(Fe=this.parseBlockValue(Fe)),Fe}};Y.Char=g,Y.Node=Ft,Y.PlainValue=ye,Y.Range=Dt,Y.Type=W,Y.YAMLError=It,Y.YAMLReferenceError=_t,Y.YAMLSemanticError=Gt,Y.YAMLSyntaxError=Wt,Y.YAMLWarning=Xt,Y._defineProperty=bn,Y.defaultTagPrefix=Ce,Y.defaultTags=Pe}}),Ja=c({"node_modules/yaml/dist/parse-cst.js"(Y){O();var g=Wr(),W=class extends g.Node{constructor(){super(g.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(ye,K){return this.context=ye,this.range=new g.Range(K,K+1),K+1}},Ce=class extends g.Node{constructor(ye,K){super(ye,K),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(ye,K){this.context=ye;let{parseNode:I,src:H}=ye,{atLineStart:le,lineStart:Fe}=ye;!le&&this.type===g.Type.SEQ_ITEM&&(this.error=new g.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let Me=le?K-Fe:ye.indent,ve=g.Node.endOfWhiteSpace(H,K+1),je=H[ve],At=je==="#",Ot=[],zt=null;for(;je===`
296
- `||je==="#";){if(je==="#"){let on=g.Node.endOfLine(H,ve+1);Ot.push(new g.Range(ve,on)),ve=on}else{le=!0,Fe=ve+1;let on=g.Node.endOfWhiteSpace(H,Fe);H[on]===`
297
- `&&Ot.length===0&&(zt=new W,Fe=zt.parse({src:H},Fe)),ve=g.Node.endOfIndent(H,Fe)}je=H[ve]}if(g.Node.nextNodeIsIndented(je,ve-(Fe+Me),this.type!==g.Type.SEQ_ITEM)?this.node=I({atLineStart:le,inCollection:!1,indent:Me,lineStart:Fe,parent:this},ve):je&&Fe>K+1&&(ve=Fe-1),this.node){if(zt){let on=ye.parent.items||ye.parent.contents;on&&on.push(zt)}Ot.length&&Array.prototype.push.apply(this.props,Ot),ve=this.node.range.end}else if(At){let on=Ot[0];this.props.push(on),ve=on.end}else ve=g.Node.endOfLine(H,K+1);let En=this.node?this.node.valueRange.end:ve;return this.valueRange=new g.Range(K,En),ve}setOrigRanges(ye,K){return K=super.setOrigRanges(ye,K),this.node?this.node.setOrigRanges(ye,K):K}toString(){let{context:{src:ye},node:K,range:I,value:H}=this;if(H!=null)return H;let le=K?ye.slice(I.start,K.range.start)+String(K):ye.slice(I.start,I.end);return g.Node.addStringTerminator(ye,I.end,le)}},Pe=class extends g.Node{constructor(){super(g.Type.COMMENT)}parse(ye,K){this.context=ye;let I=this.parseComment(K);return this.range=new g.Range(K,I),I}};function Be(ye){let K=ye;for(;K instanceof Ce;)K=K.node;if(!(K instanceof Ze))return null;let I=K.items.length,H=-1;for(let Me=I-1;Me>=0;--Me){let ve=K.items[Me];if(ve.type===g.Type.COMMENT){let{indent:je,lineStart:At}=ve.context;if(je>0&&ve.range.start>=At+je)break;H=Me}else if(ve.type===g.Type.BLANK_LINE)H=Me;else break}if(H===-1)return null;let le=K.items.splice(H,I-H),Fe=le[0].range.start;for(;K.range.end=Fe,K.valueRange&&K.valueRange.end>Fe&&(K.valueRange.end=Fe),K!==ye;)K=K.context.parent;return le}var Ze=class extends g.Node{static nextContentHasIndent(ye,K,I){let H=g.Node.endOfLine(ye,K)+1;K=g.Node.endOfWhiteSpace(ye,H);let le=ye[K];return le?K>=H+I?!0:le!=="#"&&le!==`
298
- `?!1:Ze.nextContentHasIndent(ye,K,I):!1}constructor(ye){super(ye.type===g.Type.SEQ_ITEM?g.Type.SEQ:g.Type.MAP);for(let I=ye.props.length-1;I>=0;--I)if(ye.props[I].start<ye.context.lineStart){this.props=ye.props.slice(0,I+1),ye.props=ye.props.slice(I+1);let H=ye.props[0]||ye.valueRange;ye.range.start=H.start;break}this.items=[ye];let K=Be(ye);K&&Array.prototype.push.apply(this.items,K)}get includesTrailingLines(){return this.items.length>0}parse(ye,K){this.context=ye;let{parseNode:I,src:H}=ye,le=g.Node.startOfLine(H,K),Fe=this.items[0];Fe.context.parent=this,this.valueRange=g.Range.copy(Fe.valueRange);let Me=Fe.range.start-Fe.context.lineStart,ve=K;ve=g.Node.normalizeOffset(H,ve);let je=H[ve],At=g.Node.endOfWhiteSpace(H,le)===ve,Ot=!1;for(;je;){for(;je===`
299
- `||je==="#";){if(At&&je===`
300
- `&&!Ot){let on=new W;if(ve=on.parse({src:H},ve),this.valueRange.end=ve,ve>=H.length){je=null;break}this.items.push(on),ve-=1}else if(je==="#"){if(ve<le+Me&&!Ze.nextContentHasIndent(H,ve,Me))return ve;let on=new Pe;if(ve=on.parse({indent:Me,lineStart:le,src:H},ve),this.items.push(on),this.valueRange.end=ve,ve>=H.length){je=null;break}}if(le=ve+1,ve=g.Node.endOfIndent(H,le),g.Node.atBlank(H,ve)){let on=g.Node.endOfWhiteSpace(H,ve),Wn=H[on];(!Wn||Wn===`
301
- `||Wn==="#")&&(ve=on)}je=H[ve],At=!0}if(!je)break;if(ve!==le+Me&&(At||je!==":")){if(ve<le+Me){le>K&&(ve=le);break}else if(!this.error){let on="All collection items must start at the same column";this.error=new g.YAMLSyntaxError(this,on)}}if(Fe.type===g.Type.SEQ_ITEM){if(je!=="-"){le>K&&(ve=le);break}}else if(je==="-"&&!this.error){let on=H[ve+1];if(!on||on===`
302
- `||on===" "||on===" "){let Wn="A collection cannot be both a mapping and a sequence";this.error=new g.YAMLSyntaxError(this,Wn)}}let zt=I({atLineStart:At,inCollection:!0,indent:Me,lineStart:le,parent:this},ve);if(!zt)return ve;if(this.items.push(zt),this.valueRange.end=zt.valueRange.end,ve=g.Node.normalizeOffset(H,zt.range.end),je=H[ve],At=!1,Ot=zt.includesTrailingLines,je){let on=ve-1,Wn=H[on];for(;Wn===" "||Wn===" ";)Wn=H[--on];Wn===`
303
- `&&(le=on+1,At=!0)}let En=Be(zt);En&&Array.prototype.push.apply(this.items,En)}return ve}setOrigRanges(ye,K){return K=super.setOrigRanges(ye,K),this.items.forEach(I=>{K=I.setOrigRanges(ye,K)}),K}toString(){let{context:{src:ye},items:K,range:I,value:H}=this;if(H!=null)return H;let le=ye.slice(I.start,K[0].range.start)+String(K[0]);for(let Fe=1;Fe<K.length;++Fe){let Me=K[Fe],{atLineStart:ve,indent:je}=Me.context;if(ve)for(let At=0;At<je;++At)le+=" ";le+=String(Me)}return g.Node.addStringTerminator(ye,I.end,le)}},gt=class extends g.Node{constructor(){super(g.Type.DIRECTIVE),this.name=null}get parameters(){let ye=this.rawValue;return ye?ye.trim().split(/[ \t]+/):[]}parseName(ye){let{src:K}=this.context,I=ye,H=K[I];for(;H&&H!==`
304
- `&&H!==" "&&H!==" ";)H=K[I+=1];return this.name=K.slice(ye,I),I}parseParameters(ye){let{src:K}=this.context,I=ye,H=K[I];for(;H&&H!==`
305
- `&&H!=="#";)H=K[I+=1];return this.valueRange=new g.Range(ye,I),I}parse(ye,K){this.context=ye;let I=this.parseName(K+1);return I=this.parseParameters(I),I=this.parseComment(I),this.range=new g.Range(K,I),I}},Rt=class extends g.Node{static startCommentOrEndBlankLine(ye,K){let I=g.Node.endOfWhiteSpace(ye,K),H=ye[I];return H==="#"||H===`
306
- `?I:K}constructor(){super(g.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(ye){let{src:K}=this.context;this.directives=[];let I=!0,H=!1,le=ye;for(;!g.Node.atDocumentBoundary(K,le,g.Char.DIRECTIVES_END);)switch(le=Rt.startCommentOrEndBlankLine(K,le),K[le]){case`
307
- `:if(I){let Fe=new W;le=Fe.parse({src:K},le),le<K.length&&this.directives.push(Fe)}else le+=1,I=!0;break;case"#":{let Fe=new Pe;le=Fe.parse({src:K},le),this.directives.push(Fe),I=!1}break;case"%":{let Fe=new gt;le=Fe.parse({parent:this,src:K},le),this.directives.push(Fe),H=!0,I=!1}break;default:return H?this.error=new g.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),le}return K[le]?(this.directivesEndMarker=new g.Range(le,le+3),le+3):(H?this.error=new g.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),le)}parseContents(ye){let{parseNode:K,src:I}=this.context;this.contents||(this.contents=[]);let H=ye;for(;I[H-1]==="-";)H-=1;let le=g.Node.endOfWhiteSpace(I,ye),Fe=H===ye;for(this.valueRange=new g.Range(le);!g.Node.atDocumentBoundary(I,le,g.Char.DOCUMENT_END);){switch(I[le]){case`
308
- `:if(Fe){let Me=new W;le=Me.parse({src:I},le),le<I.length&&this.contents.push(Me)}else le+=1,Fe=!0;H=le;break;case"#":{let Me=new Pe;le=Me.parse({src:I},le),this.contents.push(Me),Fe=!1}break;default:{let Me=g.Node.endOfIndent(I,le),ve=K({atLineStart:Fe,indent:-1,inFlow:!1,inCollection:!1,lineStart:H,parent:this},Me);if(!ve)return this.valueRange.end=Me;this.contents.push(ve),le=ve.range.end,Fe=!1;let je=Be(ve);je&&Array.prototype.push.apply(this.contents,je)}}le=Rt.startCommentOrEndBlankLine(I,le)}if(this.valueRange.end=le,I[le]&&(this.documentEndMarker=new g.Range(le,le+3),le+=3,I[le])){if(le=g.Node.endOfWhiteSpace(I,le),I[le]==="#"){let Me=new Pe;le=Me.parse({src:I},le),this.contents.push(Me)}switch(I[le]){case`
309
- `:le+=1;break;case void 0:break;default:this.error=new g.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return le}parse(ye,K){ye.root=this,this.context=ye;let{src:I}=ye,H=I.charCodeAt(K)===65279?K+1:K;return H=this.parseDirectives(H),H=this.parseContents(H),H}setOrigRanges(ye,K){return K=super.setOrigRanges(ye,K),this.directives.forEach(I=>{K=I.setOrigRanges(ye,K)}),this.directivesEndMarker&&(K=this.directivesEndMarker.setOrigRange(ye,K)),this.contents.forEach(I=>{K=I.setOrigRanges(ye,K)}),this.documentEndMarker&&(K=this.documentEndMarker.setOrigRange(ye,K)),K}toString(){let{contents:ye,directives:K,value:I}=this;if(I!=null)return I;let H=K.join("");return ye.length>0&&((K.length>0||ye[0].type===g.Type.COMMENT)&&(H+=`---
310
- `),H+=ye.join("")),H[H.length-1]!==`
311
- `&&(H+=`
312
- `),H}},st=class extends g.Node{parse(ye,K){this.context=ye;let{src:I}=ye,H=g.Node.endOfIdentifier(I,K+1);return this.valueRange=new g.Range(K+1,H),H=g.Node.endOfWhiteSpace(I,H),H=this.parseComment(H),H}},Dt={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},Ft=class extends g.Node{constructor(ye,K){super(ye,K),this.blockIndent=null,this.chomping=Dt.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===Dt.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:ye,end:K}=this.valueRange,{indent:I,src:H}=this.context;if(this.valueRange.isEmpty())return"";let le=null,Fe=H[K-1];for(;Fe===`
313
- `||Fe===" "||Fe===" ";){if(K-=1,K<=ye){if(this.chomping===Dt.KEEP)break;return""}Fe===`
314
- `&&(le=K),Fe=H[K-1]}let Me=K+1;le&&(this.chomping===Dt.KEEP?(Me=le,K=this.valueRange.end):K=le);let ve=I+this.blockIndent,je=this.type===g.Type.BLOCK_FOLDED,At=!0,Ot="",zt="",En=!1;for(let on=ye;on<K;++on){for(let sr=0;sr<ve&&H[on]===" ";++sr)on+=1;let Wn=H[on];if(Wn===`
315
- `)zt===`
316
- `?Ot+=`
317
- `:zt=`
318
- `;else{let sr=g.Node.endOfLine(H,on),wr=H.slice(on,sr);on=sr,je&&(Wn===" "||Wn===" ")&&on<Me?(zt===" "?zt=`
319
- `:!En&&!At&&zt===`
320
- `&&(zt=`
321
-
322
- `),Ot+=zt+wr,zt=sr<K&&H[sr]||"",En=!0):(Ot+=zt+wr,zt=je&&on<Me?" ":`
323
- `,En=!1),At&&wr!==""&&(At=!1)}}return this.chomping===Dt.STRIP?Ot:Ot+`
324
- `}parseBlockHeader(ye){let{src:K}=this.context,I=ye+1,H="";for(;;){let le=K[I];switch(le){case"-":this.chomping=Dt.STRIP;break;case"+":this.chomping=Dt.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":H+=le;break;default:return this.blockIndent=Number(H)||null,this.header=new g.Range(ye,I),I}I+=1}}parseBlockValue(ye){let{indent:K,src:I}=this.context,H=!!this.blockIndent,le=ye,Fe=ye,Me=1;for(let ve=I[le];ve===`
325
- `&&(le+=1,!g.Node.atDocumentBoundary(I,le));ve=I[le]){let je=g.Node.endOfBlockIndent(I,K,le);if(je===null)break;let At=I[je],Ot=je-(le+K);if(this.blockIndent){if(At&&At!==`
326
- `&&Ot<this.blockIndent){if(I[je]==="#")break;if(!this.error){let zt=`Block scalars must not be less indented than their ${H?"explicit indentation indicator":"first line"}`;this.error=new g.YAMLSemanticError(this,zt)}}}else if(I[je]!==`
327
- `){if(Ot<Me){let zt="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new g.YAMLSemanticError(this,zt)}this.blockIndent=Ot}else Ot>Me&&(Me=Ot);I[je]===`
328
- `?le=je:le=Fe=g.Node.endOfLine(I,je)}return this.chomping!==Dt.KEEP&&(le=I[Fe]?Fe+1:Fe),this.valueRange=new g.Range(ye+1,le),le}parse(ye,K){this.context=ye;let{src:I}=ye,H=this.parseBlockHeader(K);return H=g.Node.endOfWhiteSpace(I,H),H=this.parseComment(H),H=this.parseBlockValue(H),H}setOrigRanges(ye,K){return K=super.setOrigRanges(ye,K),this.header?this.header.setOrigRange(ye,K):K}},It=class extends g.Node{constructor(ye,K){super(ye,K),this.items=null}prevNodeIsJsonLike(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.items.length,K=this.items[ye-1];return!!K&&(K.jsonLike||K.type===g.Type.COMMENT&&this.prevNodeIsJsonLike(ye-1))}parse(ye,K){this.context=ye;let{parseNode:I,src:H}=ye,{indent:le,lineStart:Fe}=ye,Me=H[K];this.items=[{char:Me,offset:K}];let ve=g.Node.endOfWhiteSpace(H,K+1);for(Me=H[ve];Me&&Me!=="]"&&Me!=="}";){switch(Me){case`
329
- `:{Fe=ve+1;let je=g.Node.endOfWhiteSpace(H,Fe);if(H[je]===`
330
- `){let At=new W;Fe=At.parse({src:H},Fe),this.items.push(At)}if(ve=g.Node.endOfIndent(H,Fe),ve<=Fe+le&&(Me=H[ve],ve<Fe+le||Me!=="]"&&Me!=="}")){let At="Insufficient indentation in flow collection";this.error=new g.YAMLSemanticError(this,At)}}break;case",":this.items.push({char:Me,offset:ve}),ve+=1;break;case"#":{let je=new Pe;ve=je.parse({src:H},ve),this.items.push(je)}break;case"?":case":":{let je=H[ve+1];if(je===`
331
- `||je===" "||je===" "||je===","||Me===":"&&this.prevNodeIsJsonLike()){this.items.push({char:Me,offset:ve}),ve+=1;break}}default:{let je=I({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:Fe,parent:this},ve);if(!je)return this.valueRange=new g.Range(K,ve),ve;this.items.push(je),ve=g.Node.normalizeOffset(H,je.range.end)}}ve=g.Node.endOfWhiteSpace(H,ve),Me=H[ve]}return this.valueRange=new g.Range(K,ve+1),Me&&(this.items.push({char:Me,offset:ve}),ve=g.Node.endOfWhiteSpace(H,ve+1),ve=this.parseComment(ve)),ve}setOrigRanges(ye,K){return K=super.setOrigRanges(ye,K),this.items.forEach(I=>{if(I instanceof g.Node)K=I.setOrigRanges(ye,K);else if(ye.length===0)I.origOffset=I.offset;else{let H=K;for(;H<ye.length&&!(ye[H]>I.offset);)++H;I.origOffset=I.offset+H,K=H}}),K}toString(){let{context:{src:ye},items:K,range:I,value:H}=this;if(H!=null)return H;let le=K.filter(ve=>ve instanceof g.Node),Fe="",Me=I.start;return le.forEach(ve=>{let je=ye.slice(Me,ve.range.start);Me=ve.range.end,Fe+=je+String(ve),Fe[Fe.length-1]===`
332
- `&&ye[Me-1]!==`
333
- `&&ye[Me]===`
334
- `&&(Me+=1)}),Fe+=ye.slice(Me,I.end),g.Node.addStringTerminator(ye,I.end,Fe)}},_t=class extends g.Node{static endOfQuote(ye,K){let I=ye[K];for(;I&&I!=='"';)K+=I==="\\"?2:1,I=ye[K];return K+1}get strValue(){if(!this.valueRange||!this.context)return null;let ye=[],{start:K,end:I}=this.valueRange,{indent:H,src:le}=this.context;le[I-1]!=='"'&&ye.push(new g.YAMLSyntaxError(this,'Missing closing "quote'));let Fe="";for(let Me=K+1;Me<I-1;++Me){let ve=le[Me];if(ve===`
335
- `){g.Node.atDocumentBoundary(le,Me+1)&&ye.push(new g.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:je,offset:At,error:Ot}=g.Node.foldNewline(le,Me,H);Fe+=je,Me=At,Ot&&ye.push(new g.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if(ve==="\\")switch(Me+=1,le[Me]){case"0":Fe+="\0";break;case"a":Fe+="\x07";break;case"b":Fe+="\b";break;case"e":Fe+="\x1B";break;case"f":Fe+="\f";break;case"n":Fe+=`
336
- `;break;case"r":Fe+="\r";break;case"t":Fe+=" ";break;case"v":Fe+="\v";break;case"N":Fe+="…";break;case"_":Fe+=" ";break;case"L":Fe+="\u2028";break;case"P":Fe+="\u2029";break;case" ":Fe+=" ";break;case'"':Fe+='"';break;case"/":Fe+="/";break;case"\\":Fe+="\\";break;case" ":Fe+=" ";break;case"x":Fe+=this.parseCharCode(Me+1,2,ye),Me+=2;break;case"u":Fe+=this.parseCharCode(Me+1,4,ye),Me+=4;break;case"U":Fe+=this.parseCharCode(Me+1,8,ye),Me+=8;break;case`
337
- `:for(;le[Me+1]===" "||le[Me+1]===" ";)Me+=1;break;default:ye.push(new g.YAMLSyntaxError(this,`Invalid escape sequence ${le.substr(Me-1,2)}`)),Fe+="\\"+le[Me]}else if(ve===" "||ve===" "){let je=Me,At=le[Me+1];for(;At===" "||At===" ";)Me+=1,At=le[Me+1];At!==`
338
- `&&(Fe+=Me>je?le.slice(je,Me+1):ve)}else Fe+=ve}return ye.length>0?{errors:ye,str:Fe}:Fe}parseCharCode(ye,K,I){let{src:H}=this.context,le=H.substr(ye,K),Fe=le.length===K&&/^[0-9a-fA-F]+$/.test(le)?parseInt(le,16):NaN;return isNaN(Fe)?(I.push(new g.YAMLSyntaxError(this,`Invalid escape sequence ${H.substr(ye-2,K+2)}`)),H.substr(ye-2,K+2)):String.fromCodePoint(Fe)}parse(ye,K){this.context=ye;let{src:I}=ye,H=_t.endOfQuote(I,K+1);return this.valueRange=new g.Range(K,H),H=g.Node.endOfWhiteSpace(I,H),H=this.parseComment(H),H}},Gt=class extends g.Node{static endOfQuote(ye,K){let I=ye[K];for(;I;)if(I==="'"){if(ye[K+1]!=="'")break;I=ye[K+=2]}else I=ye[K+=1];return K+1}get strValue(){if(!this.valueRange||!this.context)return null;let ye=[],{start:K,end:I}=this.valueRange,{indent:H,src:le}=this.context;le[I-1]!=="'"&&ye.push(new g.YAMLSyntaxError(this,"Missing closing 'quote"));let Fe="";for(let Me=K+1;Me<I-1;++Me){let ve=le[Me];if(ve===`
339
- `){g.Node.atDocumentBoundary(le,Me+1)&&ye.push(new g.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:je,offset:At,error:Ot}=g.Node.foldNewline(le,Me,H);Fe+=je,Me=At,Ot&&ye.push(new g.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if(ve==="'")Fe+=ve,Me+=1,le[Me]!=="'"&&ye.push(new g.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(ve===" "||ve===" "){let je=Me,At=le[Me+1];for(;At===" "||At===" ";)Me+=1,At=le[Me+1];At!==`
340
- `&&(Fe+=Me>je?le.slice(je,Me+1):ve)}else Fe+=ve}return ye.length>0?{errors:ye,str:Fe}:Fe}parse(ye,K){this.context=ye;let{src:I}=ye,H=Gt.endOfQuote(I,K+1);return this.valueRange=new g.Range(K,H),H=g.Node.endOfWhiteSpace(I,H),H=this.parseComment(H),H}};function Wt(ye,K){switch(ye){case g.Type.ALIAS:return new st(ye,K);case g.Type.BLOCK_FOLDED:case g.Type.BLOCK_LITERAL:return new Ft(ye,K);case g.Type.FLOW_MAP:case g.Type.FLOW_SEQ:return new It(ye,K);case g.Type.MAP_KEY:case g.Type.MAP_VALUE:case g.Type.SEQ_ITEM:return new Ce(ye,K);case g.Type.COMMENT:case g.Type.PLAIN:return new g.PlainValue(ye,K);case g.Type.QUOTE_DOUBLE:return new _t(ye,K);case g.Type.QUOTE_SINGLE:return new Gt(ye,K);default:return null}}var Xt=class{static parseType(ye,K,I){switch(ye[K]){case"*":return g.Type.ALIAS;case">":return g.Type.BLOCK_FOLDED;case"|":return g.Type.BLOCK_LITERAL;case"{":return g.Type.FLOW_MAP;case"[":return g.Type.FLOW_SEQ;case"?":return!I&&g.Node.atBlank(ye,K+1,!0)?g.Type.MAP_KEY:g.Type.PLAIN;case":":return!I&&g.Node.atBlank(ye,K+1,!0)?g.Type.MAP_VALUE:g.Type.PLAIN;case"-":return!I&&g.Node.atBlank(ye,K+1,!0)?g.Type.SEQ_ITEM:g.Type.PLAIN;case'"':return g.Type.QUOTE_DOUBLE;case"'":return g.Type.QUOTE_SINGLE;default:return g.Type.PLAIN}}constructor(){let ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{atLineStart:K,inCollection:I,inFlow:H,indent:le,lineStart:Fe,parent:Me}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};g._defineProperty(this,"parseNode",(ve,je)=>{if(g.Node.atDocumentBoundary(this.src,je))return null;let At=new Xt(this,ve),{props:Ot,type:zt,valueStart:En}=At.parseProps(je),on=Wt(zt,Ot),Wn=on.parse(At,En);if(on.range=new g.Range(je,Wn),Wn<=je&&(on.error=new Error("Node#parse consumed no characters"),on.error.parseEnd=Wn,on.error.source=on,on.range.end=je+1),At.nodeStartsCollection(on)){!on.error&&!At.atLineStart&&At.parent.type===g.Type.DOCUMENT&&(on.error=new g.YAMLSyntaxError(on,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let sr=new Ze(on);return Wn=sr.parse(new Xt(At),Wn),sr.range=new g.Range(je,Wn),sr}return on}),this.atLineStart=K??(ye.atLineStart||!1),this.inCollection=I??(ye.inCollection||!1),this.inFlow=H??(ye.inFlow||!1),this.indent=le??ye.indent,this.lineStart=Fe??ye.lineStart,this.parent=Me??(ye.parent||{}),this.root=ye.root,this.src=ye.src}nodeStartsCollection(ye){let{inCollection:K,inFlow:I,src:H}=this;if(K||I)return!1;if(ye instanceof Ce)return!0;let le=ye.range.end;return H[le]===`
341
- `||H[le-1]===`
342
- `?!1:(le=g.Node.endOfWhiteSpace(H,le),H[le]===":")}parseProps(ye){let{inFlow:K,parent:I,src:H}=this,le=[],Fe=!1;ye=this.atLineStart?g.Node.endOfIndent(H,ye):g.Node.endOfWhiteSpace(H,ye);let Me=H[ye];for(;Me===g.Char.ANCHOR||Me===g.Char.COMMENT||Me===g.Char.TAG||Me===`
343
- `;){if(Me===`
344
- `){let je=ye,At;do At=je+1,je=g.Node.endOfIndent(H,At);while(H[je]===`
345
- `);let Ot=je-(At+this.indent),zt=I.type===g.Type.SEQ_ITEM&&I.context.atLineStart;if(H[je]!=="#"&&!g.Node.nextNodeIsIndented(H[je],Ot,!zt))break;this.atLineStart=!0,this.lineStart=At,Fe=!1,ye=je}else if(Me===g.Char.COMMENT){let je=g.Node.endOfLine(H,ye+1);le.push(new g.Range(ye,je)),ye=je}else{let je=g.Node.endOfIdentifier(H,ye+1);Me===g.Char.TAG&&H[je]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(H.slice(ye+1,je+13))&&(je=g.Node.endOfIdentifier(H,je+5)),le.push(new g.Range(ye,je)),Fe=!0,ye=g.Node.endOfWhiteSpace(H,je)}Me=H[ye]}Fe&&Me===":"&&g.Node.atBlank(H,ye+1,!0)&&(ye-=1);let ve=Xt.parseType(H,ye,K);return{props:le,type:ve,valueStart:ye}}};function bn(ye){let K=[];ye.indexOf("\r")!==-1&&(ye=ye.replace(/\r\n?/g,(le,Fe)=>(le.length>1&&K.push(Fe),`
346
- `)));let I=[],H=0;do{let le=new Rt,Fe=new Xt({src:ye});H=le.parse(Fe,H),I.push(le)}while(H<ye.length);return I.setOrigRanges=()=>{if(K.length===0)return!1;for(let Fe=1;Fe<K.length;++Fe)K[Fe]-=Fe;let le=0;for(let Fe=0;Fe<I.length;++Fe)le=I[Fe].setOrigRanges(K,le);return K.splice(0,K.length),!0},I.toString=()=>I.join(`...
347
- `),I}Y.parse=bn}}),is=c({"node_modules/yaml/dist/resolveSeq-d03cb037.js"(Y){O();var g=Wr();function W(de,he,We){return We?`#${We.replace(/[\s\S]^/gm,`$&${he}#`)}
348
- ${he}${de}`:de}function Ce(de,he,We){return We?We.indexOf(`
349
- `)===-1?`${de} #${We}`:`${de}
350
- `+We.replace(/^/gm,`${he||""}#`):de}var Pe=class{};function Be(de,he,We){if(Array.isArray(de))return de.map((He,et)=>Be(He,String(et),We));if(de&&typeof de.toJSON=="function"){let He=We&&We.anchors&&We.anchors.get(de);He&&(We.onCreate=tt=>{He.res=tt,delete We.onCreate});let et=de.toJSON(he,We);return He&&We.onCreate&&We.onCreate(et),et}return(!We||!We.keep)&&typeof de=="bigint"?Number(de):de}var Ze=class extends Pe{constructor(de){super(),this.value=de}toJSON(de,he){return he&&he.keep?this.value:Be(this.value,de,he)}toString(){return String(this.value)}};function gt(de,he,We){let He=We;for(let et=he.length-1;et>=0;--et){let tt=he[et];if(Number.isInteger(tt)&&tt>=0){let Ct=[];Ct[tt]=He,He=Ct}else{let Ct={};Object.defineProperty(Ct,tt,{value:He,writable:!0,enumerable:!0,configurable:!0}),He=Ct}}return de.createNode(He,!1)}var Rt=de=>de==null||typeof de=="object"&&de[Symbol.iterator]().next().done,st=class extends Pe{constructor(de){super(),g._defineProperty(this,"items",[]),this.schema=de}addIn(de,he){if(Rt(de))this.add(he);else{let[We,...He]=de,et=this.get(We,!0);if(et instanceof st)et.addIn(He,he);else if(et===void 0&&this.schema)this.set(We,gt(this.schema,He,he));else throw new Error(`Expected YAML collection at ${We}. Remaining path: ${He}`)}}deleteIn(de){let[he,...We]=de;if(We.length===0)return this.delete(he);let He=this.get(he,!0);if(He instanceof st)return He.deleteIn(We);throw new Error(`Expected YAML collection at ${he}. Remaining path: ${We}`)}getIn(de,he){let[We,...He]=de,et=this.get(We,!0);return He.length===0?!he&&et instanceof Ze?et.value:et:et instanceof st?et.getIn(He,he):void 0}hasAllNullValues(){return this.items.every(de=>{if(!de||de.type!=="PAIR")return!1;let he=de.value;return he==null||he instanceof Ze&&he.value==null&&!he.commentBefore&&!he.comment&&!he.tag})}hasIn(de){let[he,...We]=de;if(We.length===0)return this.has(he);let He=this.get(he,!0);return He instanceof st?He.hasIn(We):!1}setIn(de,he){let[We,...He]=de;if(He.length===0)this.set(We,he);else{let et=this.get(We,!0);if(et instanceof st)et.setIn(He,he);else if(et===void 0&&this.schema)this.set(We,gt(this.schema,He,he));else throw new Error(`Expected YAML collection at ${We}. Remaining path: ${He}`)}}toJSON(){return null}toString(de,he,We,He){let{blockItem:et,flowChars:tt,isMap:Ct,itemIndent:wt}=he,{indent:Kt,indentStep:rn,stringify:hn}=de,Mn=this.type===g.Type.FLOW_MAP||this.type===g.Type.FLOW_SEQ||de.inFlow;Mn&&(wt+=rn);let lr=Ct&&this.hasAllNullValues();de=Object.assign({},de,{allNullValues:lr,indent:wt,inFlow:Mn,type:null});let cr=!1,Vn=!1,ir=this.items.reduce((qr,ur,Gr)=>{let yr;ur&&(!cr&&ur.spaceBefore&&qr.push({type:"comment",str:""}),ur.commentBefore&&ur.commentBefore.match(/^.*$/gm).forEach(Ha=>{qr.push({type:"comment",str:`#${Ha}`})}),ur.comment&&(yr=ur.comment),Mn&&(!cr&&ur.spaceBefore||ur.commentBefore||ur.comment||ur.key&&(ur.key.commentBefore||ur.key.comment)||ur.value&&(ur.value.commentBefore||ur.value.comment))&&(Vn=!0)),cr=!1;let _r=hn(ur,de,()=>yr=null,()=>cr=!0);return Mn&&!Vn&&_r.includes(`
351
- `)&&(Vn=!0),Mn&&Gr<this.items.length-1&&(_r+=","),_r=Ce(_r,wt,yr),cr&&(yr||Mn)&&(cr=!1),qr.push({type:"item",str:_r}),qr},[]),tr;if(ir.length===0)tr=tt.start+tt.end;else if(Mn){let{start:qr,end:ur}=tt,Gr=ir.map(yr=>yr.str);if(Vn||Gr.reduce((yr,_r)=>yr+_r.length+2,2)>st.maxFlowStringSingleLineLength){tr=qr;for(let yr of Gr)tr+=yr?`
352
- ${rn}${Kt}${yr}`:`
353
- `;tr+=`
354
- ${Kt}${ur}`}else tr=`${qr} ${Gr.join(" ")} ${ur}`}else{let qr=ir.map(et);tr=qr.shift();for(let ur of qr)tr+=ur?`
355
- ${Kt}${ur}`:`
356
- `}return this.comment?(tr+=`
357
- `+this.comment.replace(/^/gm,`${Kt}#`),We&&We()):cr&&He&&He(),tr}};g._defineProperty(st,"maxFlowStringSingleLineLength",60);function Dt(de){let he=de instanceof Ze?de.value:de;return he&&typeof he=="string"&&(he=Number(he)),Number.isInteger(he)&&he>=0?he:null}var Ft=class extends st{add(de){this.items.push(de)}delete(de){let he=Dt(de);return typeof he!="number"?!1:this.items.splice(he,1).length>0}get(de,he){let We=Dt(de);if(typeof We!="number")return;let He=this.items[We];return!he&&He instanceof Ze?He.value:He}has(de){let he=Dt(de);return typeof he=="number"&&he<this.items.length}set(de,he){let We=Dt(de);if(typeof We!="number")throw new Error(`Expected a valid index, not ${de}.`);this.items[We]=he}toJSON(de,he){let We=[];he&&he.onCreate&&he.onCreate(We);let He=0;for(let et of this.items)We.push(Be(et,String(He++),he));return We}toString(de,he,We){return de?super.toString(de,{blockItem:He=>He.type==="comment"?He.str:`- ${He.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(de.indent||"")+" "},he,We):JSON.stringify(this)}},It=(de,he,We)=>he===null?"":typeof he!="object"?String(he):de instanceof Pe&&We&&We.doc?de.toString({anchors:Object.create(null),doc:We.doc,indent:"",indentStep:We.indentStep,inFlow:!0,inStringifyKey:!0,stringify:We.stringify}):JSON.stringify(he),_t=class extends Pe{constructor(de){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;super(),this.key=de,this.value=he,this.type=_t.Type.PAIR}get commentBefore(){return this.key instanceof Pe?this.key.commentBefore:void 0}set commentBefore(de){if(this.key==null&&(this.key=new Ze(null)),this.key instanceof Pe)this.key.commentBefore=de;else{let he="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(he)}}addToJSMap(de,he){let We=Be(this.key,"",de);if(he instanceof Map){let He=Be(this.value,We,de);he.set(We,He)}else if(he instanceof Set)he.add(We);else{let He=It(this.key,We,de),et=Be(this.value,He,de);He in he?Object.defineProperty(he,He,{value:et,writable:!0,enumerable:!0,configurable:!0}):he[He]=et}return he}toJSON(de,he){let We=he&&he.mapAsMap?new Map:{};return this.addToJSMap(he,We)}toString(de,he,We){if(!de||!de.doc)return JSON.stringify(this);let{indent:He,indentSeq:et,simpleKeys:tt}=de.doc.options,{key:Ct,value:wt}=this,Kt=Ct instanceof Pe&&Ct.comment;if(tt){if(Kt)throw new Error("With simple keys, key nodes cannot have comments");if(Ct instanceof st){let yr="With simple keys, collection cannot be used as a key value";throw new Error(yr)}}let rn=!tt&&(!Ct||Kt||(Ct instanceof Pe?Ct instanceof st||Ct.type===g.Type.BLOCK_FOLDED||Ct.type===g.Type.BLOCK_LITERAL:typeof Ct=="object")),{doc:hn,indent:Mn,indentStep:lr,stringify:cr}=de;de=Object.assign({},de,{implicitKey:!rn,indent:Mn+lr});let Vn=!1,ir=cr(Ct,de,()=>Kt=null,()=>Vn=!0);if(ir=Ce(ir,de.indent,Kt),!rn&&ir.length>1024){if(tt)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");rn=!0}if(de.allNullValues&&!tt)return this.comment?(ir=Ce(ir,de.indent,this.comment),he&&he()):Vn&&!Kt&&We&&We(),de.inFlow&&!rn?ir:`? ${ir}`;ir=rn?`? ${ir}
358
- ${Mn}:`:`${ir}:`,this.comment&&(ir=Ce(ir,de.indent,this.comment),he&&he());let tr="",qr=null;if(wt instanceof Pe){if(wt.spaceBefore&&(tr=`
359
- `),wt.commentBefore){let yr=wt.commentBefore.replace(/^/gm,`${de.indent}#`);tr+=`
360
- ${yr}`}qr=wt.comment}else wt&&typeof wt=="object"&&(wt=hn.schema.createNode(wt,!0));de.implicitKey=!1,!rn&&!this.comment&&wt instanceof Ze&&(de.indentAtStart=ir.length+1),Vn=!1,!et&&He>=2&&!de.inFlow&&!rn&&wt instanceof Ft&&wt.type!==g.Type.FLOW_SEQ&&!wt.tag&&!hn.anchors.getName(wt)&&(de.indent=de.indent.substr(2));let ur=cr(wt,de,()=>qr=null,()=>Vn=!0),Gr=" ";return tr||this.comment?Gr=`${tr}
361
- ${de.indent}`:!rn&&wt instanceof st?(!(ur[0]==="["||ur[0]==="{")||ur.includes(`
362
- `))&&(Gr=`
363
- ${de.indent}`):ur[0]===`
364
- `&&(Gr=""),Vn&&!qr&&We&&We(),Ce(ir+Gr+ur,de.indent,qr)}};g._defineProperty(_t,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var Gt=(de,he)=>{if(de instanceof Wt){let We=he.get(de.source);return We.count*We.aliasCount}else if(de instanceof st){let We=0;for(let He of de.items){let et=Gt(He,he);et>We&&(We=et)}return We}else if(de instanceof _t){let We=Gt(de.key,he),He=Gt(de.value,he);return Math.max(We,He)}return 1},Wt=class extends Pe{static stringify(de,he){let{range:We,source:He}=de,{anchors:et,doc:tt,implicitKey:Ct,inStringifyKey:wt}=he,Kt=Object.keys(et).find(hn=>et[hn]===He);if(!Kt&&wt&&(Kt=tt.anchors.getName(He)||tt.anchors.newName()),Kt)return`*${Kt}${Ct?" ":""}`;let rn=tt.anchors.getName(He)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${rn} [${We}]`)}constructor(de){super(),this.source=de,this.type=g.Type.ALIAS}set tag(de){throw new Error("Alias nodes cannot have tags")}toJSON(de,he){if(!he)return Be(this.source,de,he);let{anchors:We,maxAliasCount:He}=he,et=We.get(this.source);if(!et||et.res===void 0){let tt="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new g.YAMLReferenceError(this.cstNode,tt):new ReferenceError(tt)}if(He>=0&&(et.count+=1,et.aliasCount===0&&(et.aliasCount=Gt(this.source,We)),et.count*et.aliasCount>He)){let tt="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new g.YAMLReferenceError(this.cstNode,tt):new ReferenceError(tt)}return et.res}toString(de){return Wt.stringify(this,de)}};g._defineProperty(Wt,"default",!0);function Xt(de,he){let We=he instanceof Ze?he.value:he;for(let He of de)if(He instanceof _t&&(He.key===he||He.key===We||He.key&&He.key.value===We))return He}var bn=class extends st{add(de,he){de?de instanceof _t||(de=new _t(de.key||de,de.value)):de=new _t(de);let We=Xt(this.items,de.key),He=this.schema&&this.schema.sortMapEntries;if(We)if(he)We.value=de.value;else throw new Error(`Key ${de.key} already set`);else if(He){let et=this.items.findIndex(tt=>He(de,tt)<0);et===-1?this.items.push(de):this.items.splice(et,0,de)}else this.items.push(de)}delete(de){let he=Xt(this.items,de);return he?this.items.splice(this.items.indexOf(he),1).length>0:!1}get(de,he){let We=Xt(this.items,de),He=We&&We.value;return!he&&He instanceof Ze?He.value:He}has(de){return!!Xt(this.items,de)}set(de,he){this.add(new _t(de,he),!0)}toJSON(de,he,We){let He=We?new We:he&&he.mapAsMap?new Map:{};he&&he.onCreate&&he.onCreate(He);for(let et of this.items)et.addToJSMap(he,He);return He}toString(de,he,We){if(!de)return JSON.stringify(this);for(let He of this.items)if(!(He instanceof _t))throw new Error(`Map items must all be pairs; found ${JSON.stringify(He)} instead`);return super.toString(de,{blockItem:He=>He.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:de.indent||""},he,We)}},ye="<<",K=class extends _t{constructor(de){if(de instanceof _t){let he=de.value;he instanceof Ft||(he=new Ft,he.items.push(de.value),he.range=de.value.range),super(de.key,he),this.range=de.range}else super(new Ze(ye),new Ft);this.type=_t.Type.MERGE_PAIR}addToJSMap(de,he){for(let{source:We}of this.value.items){if(!(We instanceof bn))throw new Error("Merge sources must be maps");let He=We.toJSON(null,de,Map);for(let[et,tt]of He)he instanceof Map?he.has(et)||he.set(et,tt):he instanceof Set?he.add(et):Object.prototype.hasOwnProperty.call(he,et)||Object.defineProperty(he,et,{value:tt,writable:!0,enumerable:!0,configurable:!0})}return he}toString(de,he){let We=this.value;if(We.items.length>1)return super.toString(de,he);this.value=We.items[0];let He=super.toString(de,he);return this.value=We,He}},I={defaultType:g.Type.BLOCK_LITERAL,lineWidth:76},H={trueStr:"true",falseStr:"false"},le={asBigInt:!1},Fe={nullStr:"null"},Me={defaultType:g.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function ve(de,he,We){for(let{format:He,test:et,resolve:tt}of he)if(et){let Ct=de.match(et);if(Ct){let wt=tt.apply(null,Ct);return wt instanceof Ze||(wt=new Ze(wt)),He&&(wt.format=He),wt}}return We&&(de=We(de)),new Ze(de)}var je="flow",At="block",Ot="quoted",zt=(de,he)=>{let We=de[he+1];for(;We===" "||We===" ";){do We=de[he+=1];while(We&&We!==`
365
- `);We=de[he+1]}return he};function En(de,he,We,He){let{indentAtStart:et,lineWidth:tt=80,minContentWidth:Ct=20,onFold:wt,onOverflow:Kt}=He;if(!tt||tt<0)return de;let rn=Math.max(1+Ct,1+tt-he.length);if(de.length<=rn)return de;let hn=[],Mn={},lr=tt-he.length;typeof et=="number"&&(et>tt-Math.max(2,Ct)?hn.push(0):lr=tt-et);let cr,Vn,ir=!1,tr=-1,qr=-1,ur=-1;We===At&&(tr=zt(de,tr),tr!==-1&&(lr=tr+rn));for(let yr;yr=de[tr+=1];){if(We===Ot&&yr==="\\"){switch(qr=tr,de[tr+1]){case"x":tr+=3;break;case"u":tr+=5;break;case"U":tr+=9;break;default:tr+=1}ur=tr}if(yr===`
366
- `)We===At&&(tr=zt(de,tr)),lr=tr+rn,cr=void 0;else{if(yr===" "&&Vn&&Vn!==" "&&Vn!==`
367
- `&&Vn!==" "){let _r=de[tr+1];_r&&_r!==" "&&_r!==`
368
- `&&_r!==" "&&(cr=tr)}if(tr>=lr)if(cr)hn.push(cr),lr=cr+rn,cr=void 0;else if(We===Ot){for(;Vn===" "||Vn===" ";)Vn=yr,yr=de[tr+=1],ir=!0;let _r=tr>ur+1?tr-2:qr-1;if(Mn[_r])return de;hn.push(_r),Mn[_r]=!0,lr=_r+rn,cr=void 0}else ir=!0}Vn=yr}if(ir&&Kt&&Kt(),hn.length===0)return de;wt&&wt();let Gr=de.slice(0,hn[0]);for(let yr=0;yr<hn.length;++yr){let _r=hn[yr],Ha=hn[yr+1]||de.length;_r===0?Gr=`
369
- ${he}${de.slice(0,Ha)}`:(We===Ot&&Mn[_r]&&(Gr+=`${de[_r]}\\`),Gr+=`
370
- ${he}${de.slice(_r+1,Ha)}`)}return Gr}var on=de=>{let{indentAtStart:he}=de;return he?Object.assign({indentAtStart:he},Me.fold):Me.fold},Wn=de=>/^(%|---|\.\.\.)/m.test(de);function sr(de,he,We){if(!he||he<0)return!1;let He=he-We,et=de.length;if(et<=He)return!1;for(let tt=0,Ct=0;tt<et;++tt)if(de[tt]===`
371
- `){if(tt-Ct>He)return!0;if(Ct=tt+1,et-Ct<=He)return!1}return!0}function wr(de,he){let{implicitKey:We}=he,{jsonEncoding:He,minMultiLineLength:et}=Me.doubleQuoted,tt=JSON.stringify(de);if(He)return tt;let Ct=he.indent||(Wn(de)?" ":""),wt="",Kt=0;for(let rn=0,hn=tt[rn];hn;hn=tt[++rn])if(hn===" "&&tt[rn+1]==="\\"&&tt[rn+2]==="n"&&(wt+=tt.slice(Kt,rn)+"\\ ",rn+=1,Kt=rn,hn="\\"),hn==="\\")switch(tt[rn+1]){case"u":{wt+=tt.slice(Kt,rn);let Mn=tt.substr(rn+2,4);switch(Mn){case"0000":wt+="\\0";break;case"0007":wt+="\\a";break;case"000b":wt+="\\v";break;case"001b":wt+="\\e";break;case"0085":wt+="\\N";break;case"00a0":wt+="\\_";break;case"2028":wt+="\\L";break;case"2029":wt+="\\P";break;default:Mn.substr(0,2)==="00"?wt+="\\x"+Mn.substr(2):wt+=tt.substr(rn,6)}rn+=5,Kt=rn+1}break;case"n":if(We||tt[rn+2]==='"'||tt.length<et)rn+=1;else{for(wt+=tt.slice(Kt,rn)+`
372
-
373
- `;tt[rn+2]==="\\"&&tt[rn+3]==="n"&&tt[rn+4]!=='"';)wt+=`
374
- `,rn+=2;wt+=Ct,tt[rn+2]===" "&&(wt+="\\"),rn+=1,Kt=rn+1}break;default:rn+=1}return wt=Kt?wt+tt.slice(Kt):tt,We?wt:En(wt,Ct,Ot,on(he))}function Di(de,he){if(he.implicitKey){if(/\n/.test(de))return wr(de,he)}else if(/[ \t]\n|\n[ \t]/.test(de))return wr(de,he);let We=he.indent||(Wn(de)?" ":""),He="'"+de.replace(/'/g,"''").replace(/\n+/g,`$&
375
- ${We}`)+"'";return he.implicitKey?He:En(He,We,je,on(he))}function ci(de,he,We,He){let{comment:et,type:tt,value:Ct}=de;if(/\n[\t ]+$/.test(Ct)||/^\s*$/.test(Ct))return wr(Ct,he);let wt=he.indent||(he.forceBlockIndent||Wn(Ct)?" ":""),Kt=wt?"2":"1",rn=tt===g.Type.BLOCK_FOLDED?!1:tt===g.Type.BLOCK_LITERAL?!0:!sr(Ct,Me.fold.lineWidth,wt.length),hn=rn?"|":">";if(!Ct)return hn+`
376
- `;let Mn="",lr="";if(Ct=Ct.replace(/[\n\t ]*$/,Vn=>{let ir=Vn.indexOf(`
377
- `);return ir===-1?hn+="-":(Ct===Vn||ir!==Vn.length-1)&&(hn+="+",He&&He()),lr=Vn.replace(/\n$/,""),""}).replace(/^[\n ]*/,Vn=>{Vn.indexOf(" ")!==-1&&(hn+=Kt);let ir=Vn.match(/ +$/);return ir?(Mn=Vn.slice(0,-ir[0].length),ir[0]):(Mn=Vn,"")}),lr&&(lr=lr.replace(/\n+(?!\n|$)/g,`$&${wt}`)),Mn&&(Mn=Mn.replace(/\n+/g,`$&${wt}`)),et&&(hn+=" #"+et.replace(/ ?[\r\n]+/g," "),We&&We()),!Ct)return`${hn}${Kt}
378
- ${wt}${lr}`;if(rn)return Ct=Ct.replace(/\n+/g,`$&${wt}`),`${hn}
379
- ${wt}${Mn}${Ct}${lr}`;Ct=Ct.replace(/\n+/g,`
380
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${wt}`);let cr=En(`${Mn}${Ct}${lr}`,wt,At,Me.fold);return`${hn}
381
- ${wt}${cr}`}function bt(de,he,We,He){let{comment:et,type:tt,value:Ct}=de,{actualString:wt,implicitKey:Kt,indent:rn,inFlow:hn}=he;if(Kt&&/[\n[\]{},]/.test(Ct)||hn&&/[[\]{},]/.test(Ct))return wr(Ct,he);if(!Ct||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(Ct))return Kt||hn||Ct.indexOf(`
382
- `)===-1?Ct.indexOf('"')!==-1&&Ct.indexOf("'")===-1?Di(Ct,he):wr(Ct,he):ci(de,he,We,He);if(!Kt&&!hn&&tt!==g.Type.PLAIN&&Ct.indexOf(`
383
- `)!==-1)return ci(de,he,We,He);if(rn===""&&Wn(Ct))return he.forceBlockIndent=!0,ci(de,he,We,He);let Mn=Ct.replace(/\n+/g,`$&
384
- ${rn}`);if(wt){let{tags:cr}=he.doc.schema;if(typeof ve(Mn,cr,cr.scalarFallback).value!="string")return wr(Ct,he)}let lr=Kt?Mn:En(Mn,rn,je,on(he));return et&&!hn&&(lr.indexOf(`
385
- `)!==-1||et.indexOf(`
386
- `)!==-1)?(We&&We(),W(lr,rn,et)):lr}function tn(de,he,We,He){let{defaultType:et}=Me,{implicitKey:tt,inFlow:Ct}=he,{type:wt,value:Kt}=de;typeof Kt!="string"&&(Kt=String(Kt),de=Object.assign({},de,{value:Kt}));let rn=Mn=>{switch(Mn){case g.Type.BLOCK_FOLDED:case g.Type.BLOCK_LITERAL:return ci(de,he,We,He);case g.Type.QUOTE_DOUBLE:return wr(Kt,he);case g.Type.QUOTE_SINGLE:return Di(Kt,he);case g.Type.PLAIN:return bt(de,he,We,He);default:return null}};(wt!==g.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(Kt)||(tt||Ct)&&(wt===g.Type.BLOCK_FOLDED||wt===g.Type.BLOCK_LITERAL))&&(wt=g.Type.QUOTE_DOUBLE);let hn=rn(wt);if(hn===null&&(hn=rn(et),hn===null))throw new Error(`Unsupported default string type ${et}`);return hn}function mn(de){let{format:he,minFractionDigits:We,tag:He,value:et}=de;if(typeof et=="bigint")return String(et);if(!isFinite(et))return isNaN(et)?".nan":et<0?"-.inf":".inf";let tt=JSON.stringify(et);if(!he&&We&&(!He||He==="tag:yaml.org,2002:float")&&/^\d/.test(tt)){let Ct=tt.indexOf(".");Ct<0&&(Ct=tt.length,tt+=".");let wt=We-(tt.length-Ct-1);for(;wt-- >0;)tt+="0"}return tt}function Cn(de,he){let We,He;switch(he.type){case g.Type.FLOW_MAP:We="}",He="flow map";break;case g.Type.FLOW_SEQ:We="]",He="flow sequence";break;default:de.push(new g.YAMLSemanticError(he,"Not a flow collection!?"));return}let et;for(let tt=he.items.length-1;tt>=0;--tt){let Ct=he.items[tt];if(!Ct||Ct.type!==g.Type.COMMENT){et=Ct;break}}if(et&&et.char!==We){let tt=`Expected ${He} to end with ${We}`,Ct;typeof et.offset=="number"?(Ct=new g.YAMLSemanticError(he,tt),Ct.offset=et.offset+1):(Ct=new g.YAMLSemanticError(et,tt),et.range&&et.range.end&&(Ct.offset=et.range.end-et.range.start)),de.push(Ct)}}function Yn(de,he){let We=he.context.src[he.range.start-1];if(We!==`
387
- `&&We!==" "&&We!==" "){let He="Comments must be separated from other tokens by white space characters";de.push(new g.YAMLSemanticError(he,He))}}function or(de,he){let We=String(he),He=We.substr(0,8)+"..."+We.substr(-8);return new g.YAMLSemanticError(de,`The "${He}" key is too long`)}function Oi(de,he){for(let{afterKey:We,before:He,comment:et}of he){let tt=de.items[He];tt?(We&&tt.value&&(tt=tt.value),et===void 0?(We||!tt.commentBefore)&&(tt.spaceBefore=!0):tt.commentBefore?tt.commentBefore+=`
388
- `+et:tt.commentBefore=et):et!==void 0&&(de.comment?de.comment+=`
389
- `+et:de.comment=et)}}function zi(de,he){let We=he.strValue;return We?typeof We=="string"?We:(We.errors.forEach(He=>{He.source||(He.source=he),de.errors.push(He)}),We.str):""}function Qi(de,he){let{handle:We,suffix:He}=he.tag,et=de.tagPrefixes.find(tt=>tt.handle===We);if(!et){let tt=de.getDefaults().tagPrefixes;if(tt&&(et=tt.find(Ct=>Ct.handle===We)),!et)throw new g.YAMLSemanticError(he,`The ${We} tag handle is non-default and was not declared.`)}if(!He)throw new g.YAMLSemanticError(he,`The ${We} tag has no suffix.`);if(We==="!"&&(de.version||de.options.version)==="1.0"){if(He[0]==="^")return de.warnings.push(new g.YAMLWarning(he,"YAML 1.0 ^ tag expansion is not supported")),He;if(/[:/]/.test(He)){let tt=He.match(/^([a-z0-9-]+)\/(.*)/i);return tt?`tag:${tt[1]}.yaml.org,2002:${tt[2]}`:`tag:${He}`}}return et.prefix+decodeURIComponent(He)}function ji(de,he){let{tag:We,type:He}=he,et=!1;if(We){let{handle:tt,suffix:Ct,verbatim:wt}=We;if(wt){if(wt!=="!"&&wt!=="!!")return wt;let Kt=`Verbatim tags aren't resolved, so ${wt} is invalid.`;de.errors.push(new g.YAMLSemanticError(he,Kt))}else if(tt==="!"&&!Ct)et=!0;else try{return Qi(de,he)}catch(Kt){de.errors.push(Kt)}}switch(He){case g.Type.BLOCK_FOLDED:case g.Type.BLOCK_LITERAL:case g.Type.QUOTE_DOUBLE:case g.Type.QUOTE_SINGLE:return g.defaultTags.STR;case g.Type.FLOW_MAP:case g.Type.MAP:return g.defaultTags.MAP;case g.Type.FLOW_SEQ:case g.Type.SEQ:return g.defaultTags.SEQ;case g.Type.PLAIN:return et?g.defaultTags.STR:null;default:return null}}function ta(de,he,We){let{tags:He}=de.schema,et=[];for(let Ct of He)if(Ct.tag===We)if(Ct.test)et.push(Ct);else{let wt=Ct.resolve(de,he);return wt instanceof st?wt:new Ze(wt)}let tt=zi(de,he);return typeof tt=="string"&&et.length>0?ve(tt,et,He.scalarFallback):null}function Ya(de){let{type:he}=de;switch(he){case g.Type.FLOW_MAP:case g.Type.MAP:return g.defaultTags.MAP;case g.Type.FLOW_SEQ:case g.Type.SEQ:return g.defaultTags.SEQ;default:return g.defaultTags.STR}}function Bo(de,he,We){try{let He=ta(de,he,We);if(He)return We&&he.tag&&(He.tag=We),He}catch(He){return He.source||(He.source=he),de.errors.push(He),null}try{let He=Ya(he);if(!He)throw new Error(`The tag ${We} is unavailable`);let et=`The tag ${We} is unavailable, falling back to ${He}`;de.warnings.push(new g.YAMLWarning(he,et));let tt=ta(de,he,He);return tt.tag=We,tt}catch(He){let et=new g.YAMLReferenceError(he,He.message);return et.stack=He.stack,de.errors.push(et),null}}var fl=de=>{if(!de)return!1;let{type:he}=de;return he===g.Type.MAP_KEY||he===g.Type.MAP_VALUE||he===g.Type.SEQ_ITEM};function Pf(de,he){let We={before:[],after:[]},He=!1,et=!1,tt=fl(he.context.parent)?he.context.parent.props.concat(he.props):he.props;for(let{start:Ct,end:wt}of tt)switch(he.context.src[Ct]){case g.Char.COMMENT:{if(!he.commentHasRequiredWhitespace(Ct)){let hn="Comments must be separated from other tokens by white space characters";de.push(new g.YAMLSemanticError(he,hn))}let{header:Kt,valueRange:rn}=he;(rn&&(Ct>rn.start||Kt&&Ct>Kt.start)?We.after:We.before).push(he.context.src.slice(Ct+1,wt));break}case g.Char.ANCHOR:if(He){let Kt="A node can have at most one anchor";de.push(new g.YAMLSemanticError(he,Kt))}He=!0;break;case g.Char.TAG:if(et){let Kt="A node can have at most one tag";de.push(new g.YAMLSemanticError(he,Kt))}et=!0;break}return{comments:We,hasAnchor:He,hasTag:et}}function Bf(de,he){let{anchors:We,errors:He,schema:et}=de;if(he.type===g.Type.ALIAS){let Ct=he.rawValue,wt=We.getNode(Ct);if(!wt){let rn=`Aliased anchor not found: ${Ct}`;return He.push(new g.YAMLReferenceError(he,rn)),null}let Kt=new Wt(wt);return We._cstAliases.push(Kt),Kt}let tt=ji(de,he);if(tt)return Bo(de,he,tt);if(he.type!==g.Type.PLAIN){let Ct=`Failed to resolve ${he.type} node here`;return He.push(new g.YAMLSyntaxError(he,Ct)),null}try{let Ct=zi(de,he);return ve(Ct,et.tags,et.tags.scalarFallback)}catch(Ct){return Ct.source||(Ct.source=he),He.push(Ct),null}}function bi(de,he){if(!he)return null;he.error&&de.errors.push(he.error);let{comments:We,hasAnchor:He,hasTag:et}=Pf(de.errors,he);if(He){let{anchors:Ct}=de,wt=he.anchor,Kt=Ct.getNode(wt);Kt&&(Ct.map[Ct.newName(wt)]=Kt),Ct.map[wt]=he}if(he.type===g.Type.ALIAS&&(He||et)){let Ct="An alias node must not specify any properties";de.errors.push(new g.YAMLSemanticError(he,Ct))}let tt=Bf(de,he);if(tt){tt.range=[he.range.start,he.range.end],de.options.keepCstNodes&&(tt.cstNode=he),de.options.keepNodeTypes&&(tt.type=he.type);let Ct=We.before.join(`
390
- `);Ct&&(tt.commentBefore=tt.commentBefore?`${tt.commentBefore}
391
- ${Ct}`:Ct);let wt=We.after.join(`
392
- `);wt&&(tt.comment=tt.comment?`${tt.comment}
393
- ${wt}`:wt)}return he.resolved=tt}function Mf(de,he){if(he.type!==g.Type.MAP&&he.type!==g.Type.FLOW_MAP){let Ct=`A ${he.type} node cannot be resolved as a mapping`;return de.errors.push(new g.YAMLSyntaxError(he,Ct)),null}let{comments:We,items:He}=he.type===g.Type.FLOW_MAP?Rf(de,he):jf(de,he),et=new bn;et.items=He,Oi(et,We);let tt=!1;for(let Ct=0;Ct<He.length;++Ct){let{key:wt}=He[Ct];if(wt instanceof st&&(tt=!0),de.schema.merge&&wt&&wt.value===ye){He[Ct]=new K(He[Ct]);let Kt=He[Ct].value.items,rn=null;Kt.some(hn=>{if(hn instanceof Wt){let{type:Mn}=hn.source;return Mn===g.Type.MAP||Mn===g.Type.FLOW_MAP?!1:rn="Merge nodes aliases can only point to maps"}return rn="Merge nodes can only have Alias nodes as values"}),rn&&de.errors.push(new g.YAMLSemanticError(he,rn))}else for(let Kt=Ct+1;Kt<He.length;++Kt){let{key:rn}=He[Kt];if(wt===rn||wt&&rn&&Object.prototype.hasOwnProperty.call(wt,"value")&&wt.value===rn.value){let hn=`Map keys must be unique; "${wt}" is repeated`;de.errors.push(new g.YAMLSemanticError(he,hn));break}}}if(tt&&!de.options.mapAsMap){let Ct="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";de.warnings.push(new g.YAMLWarning(he,Ct))}return he.resolved=et,et}var If=de=>{let{context:{lineStart:he,node:We,src:He},props:et}=de;if(et.length===0)return!1;let{start:tt}=et[0];if(We&&tt>We.valueRange.start||He[tt]!==g.Char.COMMENT)return!1;for(let Ct=he;Ct<tt;++Ct)if(He[Ct]===`
394
- `)return!1;return!0};function Of(de,he){if(!If(de))return;let We=de.getPropValue(0,g.Char.COMMENT,!0),He=!1,et=he.value.commentBefore;if(et&&et.startsWith(We))he.value.commentBefore=et.substr(We.length+1),He=!0;else{let tt=he.value.comment;!de.node&&tt&&tt.startsWith(We)&&(he.value.comment=tt.substr(We.length+1),He=!0)}He&&(he.comment=We)}function jf(de,he){let We=[],He=[],et,tt=null;for(let Ct=0;Ct<he.items.length;++Ct){let wt=he.items[Ct];switch(wt.type){case g.Type.BLANK_LINE:We.push({afterKey:!!et,before:He.length});break;case g.Type.COMMENT:We.push({afterKey:!!et,before:He.length,comment:wt.comment});break;case g.Type.MAP_KEY:et!==void 0&&He.push(new _t(et)),wt.error&&de.errors.push(wt.error),et=bi(de,wt.node),tt=null;break;case g.Type.MAP_VALUE:{if(et===void 0&&(et=null),wt.error&&de.errors.push(wt.error),!wt.context.atLineStart&&wt.node&&wt.node.type===g.Type.MAP&&!wt.node.context.atLineStart){let hn="Nested mappings are not allowed in compact mappings";de.errors.push(new g.YAMLSemanticError(wt.node,hn))}let Kt=wt.node;if(!Kt&&wt.props.length>0){Kt=new g.PlainValue(g.Type.PLAIN,[]),Kt.context={parent:wt,src:wt.context.src};let hn=wt.range.start+1;if(Kt.range={start:hn,end:hn},Kt.valueRange={start:hn,end:hn},typeof wt.range.origStart=="number"){let Mn=wt.range.origStart+1;Kt.range.origStart=Kt.range.origEnd=Mn,Kt.valueRange.origStart=Kt.valueRange.origEnd=Mn}}let rn=new _t(et,bi(de,Kt));Of(wt,rn),He.push(rn),et&&typeof tt=="number"&&wt.range.start>tt+1024&&de.errors.push(or(he,et)),et=void 0,tt=null}break;default:et!==void 0&&He.push(new _t(et)),et=bi(de,wt),tt=wt.range.start,wt.error&&de.errors.push(wt.error);e:for(let Kt=Ct+1;;++Kt){let rn=he.items[Kt];switch(rn&&rn.type){case g.Type.BLANK_LINE:case g.Type.COMMENT:continue e;case g.Type.MAP_VALUE:break e;default:{let hn="Implicit map keys need to be followed by map values";de.errors.push(new g.YAMLSemanticError(wt,hn));break e}}}if(wt.valueRangeContainsNewline){let Kt="Implicit map keys need to be on a single line";de.errors.push(new g.YAMLSemanticError(wt,Kt))}}}return et!==void 0&&He.push(new _t(et)),{comments:We,items:He}}function Rf(de,he){let We=[],He=[],et,tt=!1,Ct="{";for(let wt=0;wt<he.items.length;++wt){let Kt=he.items[wt];if(typeof Kt.char=="string"){let{char:rn,offset:hn}=Kt;if(rn==="?"&&et===void 0&&!tt){tt=!0,Ct=":";continue}if(rn===":"){if(et===void 0&&(et=null),Ct===":"){Ct=",";continue}}else if(tt&&(et===void 0&&rn!==","&&(et=null),tt=!1),et!==void 0&&(He.push(new _t(et)),et=void 0,rn===",")){Ct=":";continue}if(rn==="}"){if(wt===he.items.length-1)continue}else if(rn===Ct){Ct=":";continue}let Mn=`Flow map contains an unexpected ${rn}`,lr=new g.YAMLSyntaxError(he,Mn);lr.offset=hn,de.errors.push(lr)}else Kt.type===g.Type.BLANK_LINE?We.push({afterKey:!!et,before:He.length}):Kt.type===g.Type.COMMENT?(Yn(de.errors,Kt),We.push({afterKey:!!et,before:He.length,comment:Kt.comment})):et===void 0?(Ct===","&&de.errors.push(new g.YAMLSemanticError(Kt,"Separator , missing in flow map")),et=bi(de,Kt)):(Ct!==","&&de.errors.push(new g.YAMLSemanticError(Kt,"Indicator : missing in flow map entry")),He.push(new _t(et,bi(de,Kt))),et=void 0,tt=!1)}return Cn(de.errors,he),et!==void 0&&He.push(new _t(et)),{comments:We,items:He}}function $f(de,he){if(he.type!==g.Type.SEQ&&he.type!==g.Type.FLOW_SEQ){let tt=`A ${he.type} node cannot be resolved as a sequence`;return de.errors.push(new g.YAMLSyntaxError(he,tt)),null}let{comments:We,items:He}=he.type===g.Type.FLOW_SEQ?qf(de,he):Vf(de,he),et=new Ft;if(et.items=He,Oi(et,We),!de.options.mapAsMap&&He.some(tt=>tt instanceof _t&&tt.key instanceof st)){let tt="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";de.warnings.push(new g.YAMLWarning(he,tt))}return he.resolved=et,et}function Vf(de,he){let We=[],He=[];for(let et=0;et<he.items.length;++et){let tt=he.items[et];switch(tt.type){case g.Type.BLANK_LINE:We.push({before:He.length});break;case g.Type.COMMENT:We.push({comment:tt.comment,before:He.length});break;case g.Type.SEQ_ITEM:if(tt.error&&de.errors.push(tt.error),He.push(bi(de,tt.node)),tt.hasProps){let Ct="Sequence items cannot have tags or anchors before the - indicator";de.errors.push(new g.YAMLSemanticError(tt,Ct))}break;default:tt.error&&de.errors.push(tt.error),de.errors.push(new g.YAMLSyntaxError(tt,`Unexpected ${tt.type} node in sequence`))}}return{comments:We,items:He}}function qf(de,he){let We=[],He=[],et=!1,tt,Ct=null,wt="[",Kt=null;for(let rn=0;rn<he.items.length;++rn){let hn=he.items[rn];if(typeof hn.char=="string"){let{char:Mn,offset:lr}=hn;if(Mn!==":"&&(et||tt!==void 0)&&(et&&tt===void 0&&(tt=wt?He.pop():null),He.push(new _t(tt)),et=!1,tt=void 0,Ct=null),Mn===wt)wt=null;else if(!wt&&Mn==="?")et=!0;else if(wt!=="["&&Mn===":"&&tt===void 0){if(wt===","){if(tt=He.pop(),tt instanceof _t){let cr="Chaining flow sequence pairs is invalid",Vn=new g.YAMLSemanticError(he,cr);Vn.offset=lr,de.errors.push(Vn)}if(!et&&typeof Ct=="number"){let cr=hn.range?hn.range.start:hn.offset;cr>Ct+1024&&de.errors.push(or(he,tt));let{src:Vn}=Kt.context;for(let ir=Ct;ir<cr;++ir)if(Vn[ir]===`
395
- `){let tr="Implicit keys of flow sequence pairs need to be on a single line";de.errors.push(new g.YAMLSemanticError(Kt,tr));break}}}else tt=null;Ct=null,et=!1,wt=null}else if(wt==="["||Mn!=="]"||rn<he.items.length-1){let cr=`Flow sequence contains an unexpected ${Mn}`,Vn=new g.YAMLSyntaxError(he,cr);Vn.offset=lr,de.errors.push(Vn)}}else if(hn.type===g.Type.BLANK_LINE)We.push({before:He.length});else if(hn.type===g.Type.COMMENT)Yn(de.errors,hn),We.push({comment:hn.comment,before:He.length});else{if(wt){let lr=`Expected a ${wt} in flow sequence`;de.errors.push(new g.YAMLSemanticError(hn,lr))}let Mn=bi(de,hn);tt===void 0?(He.push(Mn),Kt=hn):(He.push(new _t(tt,Mn)),tt=void 0),Ct=hn.range.start,wt=","}}return Cn(de.errors,he),tt!==void 0&&He.push(new _t(tt)),{comments:We,items:He}}Y.Alias=Wt,Y.Collection=st,Y.Merge=K,Y.Node=Pe,Y.Pair=_t,Y.Scalar=Ze,Y.YAMLMap=bn,Y.YAMLSeq=Ft,Y.addComment=Ce,Y.binaryOptions=I,Y.boolOptions=H,Y.findPair=Xt,Y.intOptions=le,Y.isEmptyPath=Rt,Y.nullOptions=Fe,Y.resolveMap=Mf,Y.resolveNode=bi,Y.resolveSeq=$f,Y.resolveString=zi,Y.strOptions=Me,Y.stringifyNumber=mn,Y.stringifyString=tn,Y.toJSON=Be}}),Ks=c({"node_modules/yaml/dist/warnings-1000a372.js"(Y){O();var g=Wr(),W=is(),Ce={identify:ve=>ve instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(ve,je)=>{let At=W.resolveString(ve,je);if(typeof Buffer=="function")return Buffer.from(At,"base64");if(typeof atob=="function"){let Ot=atob(At.replace(/[\n\r]/g,"")),zt=new Uint8Array(Ot.length);for(let En=0;En<Ot.length;++En)zt[En]=Ot.charCodeAt(En);return zt}else{let Ot="This environment does not support reading binary tags; either Buffer or atob is required";return ve.errors.push(new g.YAMLReferenceError(je,Ot)),null}},options:W.binaryOptions,stringify:(ve,je,At,Ot)=>{let{comment:zt,type:En,value:on}=ve,Wn;if(typeof Buffer=="function")Wn=on instanceof Buffer?on.toString("base64"):Buffer.from(on.buffer).toString("base64");else if(typeof btoa=="function"){let sr="";for(let wr=0;wr<on.length;++wr)sr+=String.fromCharCode(on[wr]);Wn=btoa(sr)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(En||(En=W.binaryOptions.defaultType),En===g.Type.QUOTE_DOUBLE)on=Wn;else{let{lineWidth:sr}=W.binaryOptions,wr=Math.ceil(Wn.length/sr),Di=new Array(wr);for(let ci=0,bt=0;ci<wr;++ci,bt+=sr)Di[ci]=Wn.substr(bt,sr);on=Di.join(En===g.Type.BLOCK_LITERAL?`
396
- `:" ")}return W.stringifyString({comment:zt,type:En,value:on},je,At,Ot)}};function Pe(ve,je){let At=W.resolveSeq(ve,je);for(let Ot=0;Ot<At.items.length;++Ot){let zt=At.items[Ot];if(!(zt instanceof W.Pair)){if(zt instanceof W.YAMLMap){if(zt.items.length>1){let on="Each pair must have its own sequence indicator";throw new g.YAMLSemanticError(je,on)}let En=zt.items[0]||new W.Pair;zt.commentBefore&&(En.commentBefore=En.commentBefore?`${zt.commentBefore}
397
- ${En.commentBefore}`:zt.commentBefore),zt.comment&&(En.comment=En.comment?`${zt.comment}
398
- ${En.comment}`:zt.comment),zt=En}At.items[Ot]=zt instanceof W.Pair?zt:new W.Pair(zt)}}return At}function Be(ve,je,At){let Ot=new W.YAMLSeq(ve);Ot.tag="tag:yaml.org,2002:pairs";for(let zt of je){let En,on;if(Array.isArray(zt))if(zt.length===2)En=zt[0],on=zt[1];else throw new TypeError(`Expected [key, value] tuple: ${zt}`);else if(zt&&zt instanceof Object){let sr=Object.keys(zt);if(sr.length===1)En=sr[0],on=zt[En];else throw new TypeError(`Expected { key: value } tuple: ${zt}`)}else En=zt;let Wn=ve.createPair(En,on,At);Ot.items.push(Wn)}return Ot}var Ze={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Pe,createNode:Be},gt=class extends W.YAMLSeq{constructor(){super(),g._defineProperty(this,"add",W.YAMLMap.prototype.add.bind(this)),g._defineProperty(this,"delete",W.YAMLMap.prototype.delete.bind(this)),g._defineProperty(this,"get",W.YAMLMap.prototype.get.bind(this)),g._defineProperty(this,"has",W.YAMLMap.prototype.has.bind(this)),g._defineProperty(this,"set",W.YAMLMap.prototype.set.bind(this)),this.tag=gt.tag}toJSON(ve,je){let At=new Map;je&&je.onCreate&&je.onCreate(At);for(let Ot of this.items){let zt,En;if(Ot instanceof W.Pair?(zt=W.toJSON(Ot.key,"",je),En=W.toJSON(Ot.value,zt,je)):zt=W.toJSON(Ot,"",je),At.has(zt))throw new Error("Ordered maps must not include duplicate keys");At.set(zt,En)}return At}};g._defineProperty(gt,"tag","tag:yaml.org,2002:omap");function Rt(ve,je){let At=Pe(ve,je),Ot=[];for(let{key:zt}of At.items)if(zt instanceof W.Scalar)if(Ot.includes(zt.value)){let En="Ordered maps must not include duplicate keys";throw new g.YAMLSemanticError(je,En)}else Ot.push(zt.value);return Object.assign(new gt,At)}function st(ve,je,At){let Ot=Be(ve,je,At),zt=new gt;return zt.items=Ot.items,zt}var Dt={identify:ve=>ve instanceof Map,nodeClass:gt,default:!1,tag:"tag:yaml.org,2002:omap",resolve:Rt,createNode:st},Ft=class extends W.YAMLMap{constructor(){super(),this.tag=Ft.tag}add(ve){let je=ve instanceof W.Pair?ve:new W.Pair(ve);W.findPair(this.items,je.key)||this.items.push(je)}get(ve,je){let At=W.findPair(this.items,ve);return!je&&At instanceof W.Pair?At.key instanceof W.Scalar?At.key.value:At.key:At}set(ve,je){if(typeof je!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof je}`);let At=W.findPair(this.items,ve);At&&!je?this.items.splice(this.items.indexOf(At),1):!At&&je&&this.items.push(new W.Pair(ve))}toJSON(ve,je){return super.toJSON(ve,je,Set)}toString(ve,je,At){if(!ve)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(ve,je,At);throw new Error("Set items must all have null values")}};g._defineProperty(Ft,"tag","tag:yaml.org,2002:set");function It(ve,je){let At=W.resolveMap(ve,je);if(!At.hasAllNullValues())throw new g.YAMLSemanticError(je,"Set items must all have null values");return Object.assign(new Ft,At)}function _t(ve,je,At){let Ot=new Ft;for(let zt of je)Ot.items.push(ve.createPair(zt,null,At));return Ot}var Gt={identify:ve=>ve instanceof Set,nodeClass:Ft,default:!1,tag:"tag:yaml.org,2002:set",resolve:It,createNode:_t},Wt=(ve,je)=>{let At=je.split(":").reduce((Ot,zt)=>Ot*60+Number(zt),0);return ve==="-"?-At:At},Xt=ve=>{let{value:je}=ve;if(isNaN(je)||!isFinite(je))return W.stringifyNumber(je);let At="";je<0&&(At="-",je=Math.abs(je));let Ot=[je%60];return je<60?Ot.unshift(0):(je=Math.round((je-Ot[0])/60),Ot.unshift(je%60),je>=60&&(je=Math.round((je-Ot[0])/60),Ot.unshift(je))),At+Ot.map(zt=>zt<10?"0"+String(zt):String(zt)).join(":").replace(/000000\d*$/,"")},bn={identify:ve=>typeof ve=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(ve,je,At)=>Wt(je,At.replace(/_/g,"")),stringify:Xt},ye={identify:ve=>typeof ve=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(ve,je,At)=>Wt(je,At.replace(/_/g,"")),stringify:Xt},K={identify:ve=>ve instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(ve,je,At,Ot,zt,En,on,Wn,sr)=>{Wn&&(Wn=(Wn+"00").substr(1,3));let wr=Date.UTC(je,At-1,Ot,zt||0,En||0,on||0,Wn||0);if(sr&&sr!=="Z"){let Di=Wt(sr[0],sr.slice(1));Math.abs(Di)<30&&(Di*=60),wr-=6e4*Di}return new Date(wr)},stringify:ve=>{let{value:je}=ve;return je.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function I(ve){let je=typeof ne<"u"&&ne.env||{};return ve?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!je.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!je.YAML_SILENCE_WARNINGS}function H(ve,je){if(I(!1)){let At=typeof ne<"u"&&ne.emitWarning;At?At(ve,je):console.warn(je?`${je}: ${ve}`:ve)}}function le(ve){if(I(!0)){let je=ve.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");H(`The endpoint 'yaml/${je}' will be removed in a future release.`,"DeprecationWarning")}}var Fe={};function Me(ve,je){if(!Fe[ve]&&I(!0)){Fe[ve]=!0;let At=`The option '${ve}' will be removed in a future release`;At+=je?`, use '${je}' instead.`:".",H(At,"DeprecationWarning")}}Y.binary=Ce,Y.floatTime=ye,Y.intTime=bn,Y.omap=Dt,Y.pairs=Ze,Y.set=Gt,Y.timestamp=K,Y.warn=H,Y.warnFileDeprecation=le,Y.warnOptionDeprecation=Me}}),Zs=c({"node_modules/yaml/dist/Schema-88e323a7.js"(Y){O();var g=Wr(),W=is(),Ce=Ks();function Pe(bt,tn,mn){let Cn=new W.YAMLMap(bt);if(tn instanceof Map)for(let[Yn,or]of tn)Cn.items.push(bt.createPair(Yn,or,mn));else if(tn&&typeof tn=="object")for(let Yn of Object.keys(tn))Cn.items.push(bt.createPair(Yn,tn[Yn],mn));return typeof bt.sortMapEntries=="function"&&Cn.items.sort(bt.sortMapEntries),Cn}var Be={createNode:Pe,default:!0,nodeClass:W.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:W.resolveMap};function Ze(bt,tn,mn){let Cn=new W.YAMLSeq(bt);if(tn&&tn[Symbol.iterator])for(let Yn of tn){let or=bt.createNode(Yn,mn.wrapScalars,null,mn);Cn.items.push(or)}return Cn}var gt={createNode:Ze,default:!0,nodeClass:W.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:W.resolveSeq},Rt={identify:bt=>typeof bt=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:W.resolveString,stringify(bt,tn,mn,Cn){return tn=Object.assign({actualString:!0},tn),W.stringifyString(bt,tn,mn,Cn)},options:W.strOptions},st=[Be,gt,Rt],Dt=bt=>typeof bt=="bigint"||Number.isInteger(bt),Ft=(bt,tn,mn)=>W.intOptions.asBigInt?BigInt(bt):parseInt(tn,mn);function It(bt,tn,mn){let{value:Cn}=bt;return Dt(Cn)&&Cn>=0?mn+Cn.toString(tn):W.stringifyNumber(bt)}var _t={identify:bt=>bt==null,createNode:(bt,tn,mn)=>mn.wrapScalars?new W.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:W.nullOptions,stringify:()=>W.nullOptions.nullStr},Gt={identify:bt=>typeof bt=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:bt=>bt[0]==="t"||bt[0]==="T",options:W.boolOptions,stringify:bt=>{let{value:tn}=bt;return tn?W.boolOptions.trueStr:W.boolOptions.falseStr}},Wt={identify:bt=>Dt(bt)&&bt>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(bt,tn)=>Ft(bt,tn,8),options:W.intOptions,stringify:bt=>It(bt,8,"0o")},Xt={identify:Dt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:bt=>Ft(bt,bt,10),options:W.intOptions,stringify:W.stringifyNumber},bn={identify:bt=>Dt(bt)&&bt>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(bt,tn)=>Ft(bt,tn,16),options:W.intOptions,stringify:bt=>It(bt,16,"0x")},ye={identify:bt=>typeof bt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(bt,tn)=>tn?NaN:bt[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:W.stringifyNumber},K={identify:bt=>typeof bt=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:bt=>parseFloat(bt),stringify:bt=>{let{value:tn}=bt;return Number(tn).toExponential()}},I={identify:bt=>typeof bt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(bt,tn,mn){let Cn=tn||mn,Yn=new W.Scalar(parseFloat(bt));return Cn&&Cn[Cn.length-1]==="0"&&(Yn.minFractionDigits=Cn.length),Yn},stringify:W.stringifyNumber},H=st.concat([_t,Gt,Wt,Xt,bn,ye,K,I]),le=bt=>typeof bt=="bigint"||Number.isInteger(bt),Fe=bt=>{let{value:tn}=bt;return JSON.stringify(tn)},Me=[Be,gt,{identify:bt=>typeof bt=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:W.resolveString,stringify:Fe},{identify:bt=>bt==null,createNode:(bt,tn,mn)=>mn.wrapScalars?new W.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Fe},{identify:bt=>typeof bt=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:bt=>bt==="true",stringify:Fe},{identify:le,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:bt=>W.intOptions.asBigInt?BigInt(bt):parseInt(bt,10),stringify:bt=>{let{value:tn}=bt;return le(tn)?tn.toString():JSON.stringify(tn)}},{identify:bt=>typeof bt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:bt=>parseFloat(bt),stringify:Fe}];Me.scalarFallback=bt=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(bt)}`)};var ve=bt=>{let{value:tn}=bt;return tn?W.boolOptions.trueStr:W.boolOptions.falseStr},je=bt=>typeof bt=="bigint"||Number.isInteger(bt);function At(bt,tn,mn){let Cn=tn.replace(/_/g,"");if(W.intOptions.asBigInt){switch(mn){case 2:Cn=`0b${Cn}`;break;case 8:Cn=`0o${Cn}`;break;case 16:Cn=`0x${Cn}`;break}let or=BigInt(Cn);return bt==="-"?BigInt(-1)*or:or}let Yn=parseInt(Cn,mn);return bt==="-"?-1*Yn:Yn}function Ot(bt,tn,mn){let{value:Cn}=bt;if(je(Cn)){let Yn=Cn.toString(tn);return Cn<0?"-"+mn+Yn.substr(1):mn+Yn}return W.stringifyNumber(bt)}var zt=st.concat([{identify:bt=>bt==null,createNode:(bt,tn,mn)=>mn.wrapScalars?new W.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:W.nullOptions,stringify:()=>W.nullOptions.nullStr},{identify:bt=>typeof bt=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:W.boolOptions,stringify:ve},{identify:bt=>typeof bt=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:W.boolOptions,stringify:ve},{identify:je,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(bt,tn,mn)=>At(tn,mn,2),stringify:bt=>Ot(bt,2,"0b")},{identify:je,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(bt,tn,mn)=>At(tn,mn,8),stringify:bt=>Ot(bt,8,"0")},{identify:je,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(bt,tn,mn)=>At(tn,mn,10),stringify:W.stringifyNumber},{identify:je,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(bt,tn,mn)=>At(tn,mn,16),stringify:bt=>Ot(bt,16,"0x")},{identify:bt=>typeof bt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(bt,tn)=>tn?NaN:bt[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:W.stringifyNumber},{identify:bt=>typeof bt=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:bt=>parseFloat(bt.replace(/_/g,"")),stringify:bt=>{let{value:tn}=bt;return Number(tn).toExponential()}},{identify:bt=>typeof bt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(bt,tn){let mn=new W.Scalar(parseFloat(bt.replace(/_/g,"")));if(tn){let Cn=tn.replace(/_/g,"");Cn[Cn.length-1]==="0"&&(mn.minFractionDigits=Cn.length)}return mn},stringify:W.stringifyNumber}],Ce.binary,Ce.omap,Ce.pairs,Ce.set,Ce.intTime,Ce.floatTime,Ce.timestamp),En={core:H,failsafe:st,json:Me,yaml11:zt},on={binary:Ce.binary,bool:Gt,float:I,floatExp:K,floatNaN:ye,floatTime:Ce.floatTime,int:Xt,intHex:bn,intOct:Wt,intTime:Ce.intTime,map:Be,null:_t,omap:Ce.omap,pairs:Ce.pairs,seq:gt,set:Ce.set,timestamp:Ce.timestamp};function Wn(bt,tn,mn){if(tn){let Cn=mn.filter(or=>or.tag===tn),Yn=Cn.find(or=>!or.format)||Cn[0];if(!Yn)throw new Error(`Tag ${tn} not found`);return Yn}return mn.find(Cn=>(Cn.identify&&Cn.identify(bt)||Cn.class&&bt instanceof Cn.class)&&!Cn.format)}function sr(bt,tn,mn){if(bt instanceof W.Node)return bt;let{defaultPrefix:Cn,onTagObj:Yn,prevObjects:or,schema:Oi,wrapScalars:zi}=mn;tn&&tn.startsWith("!!")&&(tn=Cn+tn.slice(2));let Qi=Wn(bt,tn,Oi.tags);if(!Qi){if(typeof bt.toJSON=="function"&&(bt=bt.toJSON()),!bt||typeof bt!="object")return zi?new W.Scalar(bt):bt;Qi=bt instanceof Map?Be:bt[Symbol.iterator]?gt:Be}Yn&&(Yn(Qi),delete mn.onTagObj);let ji={value:void 0,node:void 0};if(bt&&typeof bt=="object"&&or){let ta=or.get(bt);if(ta){let Ya=new W.Alias(ta);return mn.aliasNodes.push(Ya),Ya}ji.value=bt,or.set(bt,ji)}return ji.node=Qi.createNode?Qi.createNode(mn.schema,bt,mn):zi?new W.Scalar(bt):bt,tn&&ji.node instanceof W.Node&&(ji.node.tag=tn),ji.node}function wr(bt,tn,mn,Cn){let Yn=bt[Cn.replace(/\W/g,"")];if(!Yn){let or=Object.keys(bt).map(Oi=>JSON.stringify(Oi)).join(", ");throw new Error(`Unknown schema "${Cn}"; use one of ${or}`)}if(Array.isArray(mn))for(let or of mn)Yn=Yn.concat(or);else typeof mn=="function"&&(Yn=mn(Yn.slice()));for(let or=0;or<Yn.length;++or){let Oi=Yn[or];if(typeof Oi=="string"){let zi=tn[Oi];if(!zi){let Qi=Object.keys(tn).map(ji=>JSON.stringify(ji)).join(", ");throw new Error(`Unknown custom tag "${Oi}"; use one of ${Qi}`)}Yn[or]=zi}}return Yn}var Di=(bt,tn)=>bt.key<tn.key?-1:bt.key>tn.key?1:0,ci=class{constructor(bt){let{customTags:tn,merge:mn,schema:Cn,sortMapEntries:Yn,tags:or}=bt;this.merge=!!mn,this.name=Cn,this.sortMapEntries=Yn===!0?Di:Yn||null,!tn&&or&&Ce.warnOptionDeprecation("tags","customTags"),this.tags=wr(En,on,tn||or,Cn)}createNode(bt,tn,mn,Cn){let Yn={defaultPrefix:ci.defaultPrefix,schema:this,wrapScalars:tn},or=Cn?Object.assign(Cn,Yn):Yn;return sr(bt,mn,or)}createPair(bt,tn,mn){mn||(mn={wrapScalars:!0});let Cn=this.createNode(bt,mn.wrapScalars,null,mn),Yn=this.createNode(tn,mn.wrapScalars,null,mn);return new W.Pair(Cn,Yn)}};g._defineProperty(ci,"defaultPrefix",g.defaultTagPrefix),g._defineProperty(ci,"defaultTags",g.defaultTags),Y.Schema=ci}}),ri=c({"node_modules/yaml/dist/Document-9b4560a1.js"(Y){O();var g=Wr(),W=is(),Ce=Zs(),Pe={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},Be={get binary(){return W.binaryOptions},set binary(I){Object.assign(W.binaryOptions,I)},get bool(){return W.boolOptions},set bool(I){Object.assign(W.boolOptions,I)},get int(){return W.intOptions},set int(I){Object.assign(W.intOptions,I)},get null(){return W.nullOptions},set null(I){Object.assign(W.nullOptions,I)},get str(){return W.strOptions},set str(I){Object.assign(W.strOptions,I)}},Ze={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:g.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:g.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:g.defaultTagPrefix}]}};function gt(I,H){if((I.version||I.options.version)==="1.0"){let Me=H.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(Me)return"!"+Me[1];let ve=H.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return ve?`!${ve[1]}/${ve[2]}`:`!${H.replace(/^tag:/,"")}`}let le=I.tagPrefixes.find(Me=>H.indexOf(Me.prefix)===0);if(!le){let Me=I.getDefaults().tagPrefixes;le=Me&&Me.find(ve=>H.indexOf(ve.prefix)===0)}if(!le)return H[0]==="!"?H:`!<${H}>`;let Fe=H.substr(le.prefix.length).replace(/[!,[\]{}]/g,Me=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[Me]);return le.handle+Fe}function Rt(I,H){if(H instanceof W.Alias)return W.Alias;if(H.tag){let Me=I.filter(ve=>ve.tag===H.tag);if(Me.length>0)return Me.find(ve=>ve.format===H.format)||Me[0]}let le,Fe;if(H instanceof W.Scalar){Fe=H.value;let Me=I.filter(ve=>ve.identify&&ve.identify(Fe)||ve.class&&Fe instanceof ve.class);le=Me.find(ve=>ve.format===H.format)||Me.find(ve=>!ve.format)}else Fe=H,le=I.find(Me=>Me.nodeClass&&Fe instanceof Me.nodeClass);if(!le){let Me=Fe&&Fe.constructor?Fe.constructor.name:typeof Fe;throw new Error(`Tag not resolved for ${Me} value`)}return le}function st(I,H,le){let{anchors:Fe,doc:Me}=le,ve=[],je=Me.anchors.getName(I);return je&&(Fe[je]=I,ve.push(`&${je}`)),I.tag?ve.push(gt(Me,I.tag)):H.default||ve.push(gt(Me,H.tag)),ve.join(" ")}function Dt(I,H,le,Fe){let{anchors:Me,schema:ve}=H.doc,je;if(!(I instanceof W.Node)){let zt={aliasNodes:[],onTagObj:En=>je=En,prevObjects:new Map};I=ve.createNode(I,!0,null,zt);for(let En of zt.aliasNodes){En.source=En.source.node;let on=Me.getName(En.source);on||(on=Me.newName(),Me.map[on]=En.source)}}if(I instanceof W.Pair)return I.toString(H,le,Fe);je||(je=Rt(ve.tags,I));let At=st(I,je,H);At.length>0&&(H.indentAtStart=(H.indentAtStart||0)+At.length+1);let Ot=typeof je.stringify=="function"?je.stringify(I,H,le,Fe):I instanceof W.Scalar?W.stringifyString(I,H,le,Fe):I.toString(H,le,Fe);return At?I instanceof W.Scalar||Ot[0]==="{"||Ot[0]==="["?`${At} ${Ot}`:`${At}
399
- ${H.indent}${Ot}`:Ot}var Ft=class{static validAnchorNode(I){return I instanceof W.Scalar||I instanceof W.YAMLSeq||I instanceof W.YAMLMap}constructor(I){g._defineProperty(this,"map",Object.create(null)),this.prefix=I}createAlias(I,H){return this.setAnchor(I,H),new W.Alias(I)}createMergePair(){let I=new W.Merge;for(var H=arguments.length,le=new Array(H),Fe=0;Fe<H;Fe++)le[Fe]=arguments[Fe];return I.value.items=le.map(Me=>{if(Me instanceof W.Alias){if(Me.source instanceof W.YAMLMap)return Me}else if(Me instanceof W.YAMLMap)return this.createAlias(Me);throw new Error("Merge sources must be Map nodes or their Aliases")}),I}getName(I){let{map:H}=this;return Object.keys(H).find(le=>H[le]===I)}getNames(){return Object.keys(this.map)}getNode(I){return this.map[I]}newName(I){I||(I=this.prefix);let H=Object.keys(this.map);for(let le=1;;++le){let Fe=`${I}${le}`;if(!H.includes(Fe))return Fe}}resolveNodes(){let{map:I,_cstAliases:H}=this;Object.keys(I).forEach(le=>{I[le]=I[le].resolved}),H.forEach(le=>{le.source=le.source.resolved}),delete this._cstAliases}setAnchor(I,H){if(I!=null&&!Ft.validAnchorNode(I))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(H&&/[\x00-\x19\s,[\]{}]/.test(H))throw new Error("Anchor names must not contain whitespace or control characters");let{map:le}=this,Fe=I&&Object.keys(le).find(Me=>le[Me]===I);if(Fe)if(H)Fe!==H&&(delete le[Fe],le[H]=I);else return Fe;else{if(!H){if(!I)return null;H=this.newName()}le[H]=I}return H}},It=(I,H)=>{if(I&&typeof I=="object"){let{tag:le}=I;I instanceof W.Collection?(le&&(H[le]=!0),I.items.forEach(Fe=>It(Fe,H))):I instanceof W.Pair?(It(I.key,H),It(I.value,H)):I instanceof W.Scalar&&le&&(H[le]=!0)}return H},_t=I=>Object.keys(It(I,{}));function Gt(I,H){let le={before:[],after:[]},Fe,Me=!1;for(let ve of H)if(ve.valueRange){if(Fe!==void 0){let At="Document contains trailing content not separated by a ... or --- line";I.errors.push(new g.YAMLSyntaxError(ve,At));break}let je=W.resolveNode(I,ve);Me&&(je.spaceBefore=!0,Me=!1),Fe=je}else ve.comment!==null?(Fe===void 0?le.before:le.after).push(ve.comment):ve.type===g.Type.BLANK_LINE&&(Me=!0,Fe===void 0&&le.before.length>0&&!I.commentBefore&&(I.commentBefore=le.before.join(`
400
- `),le.before=[]));if(I.contents=Fe||null,!Fe)I.comment=le.before.concat(le.after).join(`
401
- `)||null;else{let ve=le.before.join(`
402
- `);if(ve){let je=Fe instanceof W.Collection&&Fe.items[0]?Fe.items[0]:Fe;je.commentBefore=je.commentBefore?`${ve}
403
- ${je.commentBefore}`:ve}I.comment=le.after.join(`
404
- `)||null}}function Wt(I,H){let{tagPrefixes:le}=I,[Fe,Me]=H.parameters;if(!Fe||!Me){let ve="Insufficient parameters given for %TAG directive";throw new g.YAMLSemanticError(H,ve)}if(le.some(ve=>ve.handle===Fe)){let ve="The %TAG directive must only be given at most once per handle in the same document.";throw new g.YAMLSemanticError(H,ve)}return{handle:Fe,prefix:Me}}function Xt(I,H){let[le]=H.parameters;if(H.name==="YAML:1.0"&&(le="1.0"),!le){let Fe="Insufficient parameters given for %YAML directive";throw new g.YAMLSemanticError(H,Fe)}if(!Ze[le]){let Fe=`Document will be parsed as YAML ${I.version||I.options.version} rather than YAML ${le}`;I.warnings.push(new g.YAMLWarning(H,Fe))}return le}function bn(I,H,le){let Fe=[],Me=!1;for(let ve of H){let{comment:je,name:At}=ve;switch(At){case"TAG":try{I.tagPrefixes.push(Wt(I,ve))}catch(Ot){I.errors.push(Ot)}Me=!0;break;case"YAML":case"YAML:1.0":if(I.version){let Ot="The %YAML directive must only be given at most once per document.";I.errors.push(new g.YAMLSemanticError(ve,Ot))}try{I.version=Xt(I,ve)}catch(Ot){I.errors.push(Ot)}Me=!0;break;default:if(At){let Ot=`YAML only supports %TAG and %YAML directives, and not %${At}`;I.warnings.push(new g.YAMLWarning(ve,Ot))}}je&&Fe.push(je)}if(le&&!Me&&(I.version||le.version||I.options.version)==="1.1"){let ve=je=>{let{handle:At,prefix:Ot}=je;return{handle:At,prefix:Ot}};I.tagPrefixes=le.tagPrefixes.map(ve),I.version=le.version}I.commentBefore=Fe.join(`
405
- `)||null}function ye(I){if(I instanceof W.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var K=class{constructor(I){this.anchors=new Ft(I.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=I,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(I){return ye(this.contents),this.contents.add(I)}addIn(I,H){ye(this.contents),this.contents.addIn(I,H)}delete(I){return ye(this.contents),this.contents.delete(I)}deleteIn(I){return W.isEmptyPath(I)?this.contents==null?!1:(this.contents=null,!0):(ye(this.contents),this.contents.deleteIn(I))}getDefaults(){return K.defaults[this.version]||K.defaults[this.options.version]||{}}get(I,H){return this.contents instanceof W.Collection?this.contents.get(I,H):void 0}getIn(I,H){return W.isEmptyPath(I)?!H&&this.contents instanceof W.Scalar?this.contents.value:this.contents:this.contents instanceof W.Collection?this.contents.getIn(I,H):void 0}has(I){return this.contents instanceof W.Collection?this.contents.has(I):!1}hasIn(I){return W.isEmptyPath(I)?this.contents!==void 0:this.contents instanceof W.Collection?this.contents.hasIn(I):!1}set(I,H){ye(this.contents),this.contents.set(I,H)}setIn(I,H){W.isEmptyPath(I)?this.contents=H:(ye(this.contents),this.contents.setIn(I,H))}setSchema(I,H){if(!I&&!H&&this.schema)return;typeof I=="number"&&(I=I.toFixed(1)),I==="1.0"||I==="1.1"||I==="1.2"?(this.version?this.version=I:this.options.version=I,delete this.options.schema):I&&typeof I=="string"&&(this.options.schema=I),Array.isArray(H)&&(this.options.customTags=H);let le=Object.assign({},this.getDefaults(),this.options);this.schema=new Ce.Schema(le)}parse(I,H){this.options.keepCstNodes&&(this.cstNode=I),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:le=[],contents:Fe=[],directivesEndMarker:Me,error:ve,valueRange:je}=I;if(ve&&(ve.source||(ve.source=this),this.errors.push(ve)),bn(this,le,H),Me&&(this.directivesEndMarker=!0),this.range=je?[je.start,je.end]:null,this.setSchema(),this.anchors._cstAliases=[],Gt(this,Fe),this.anchors.resolveNodes(),this.options.prettyErrors){for(let At of this.errors)At instanceof g.YAMLError&&At.makePretty();for(let At of this.warnings)At instanceof g.YAMLError&&At.makePretty()}return this}listNonDefaultTags(){return _t(this.contents).filter(I=>I.indexOf(Ce.Schema.defaultPrefix)!==0)}setTagPrefix(I,H){if(I[0]!=="!"||I[I.length-1]!=="!")throw new Error("Handle must start and end with !");if(H){let le=this.tagPrefixes.find(Fe=>Fe.handle===I);le?le.prefix=H:this.tagPrefixes.push({handle:I,prefix:H})}else this.tagPrefixes=this.tagPrefixes.filter(le=>le.handle!==I)}toJSON(I,H){let{keepBlobsInJSON:le,mapAsMap:Fe,maxAliasCount:Me}=this.options,ve=le&&(typeof I!="string"||!(this.contents instanceof W.Scalar)),je={doc:this,indentStep:" ",keep:ve,mapAsMap:ve&&!!Fe,maxAliasCount:Me,stringify:Dt},At=Object.keys(this.anchors.map);At.length>0&&(je.anchors=new Map(At.map(zt=>[this.anchors.map[zt],{alias:[],aliasCount:0,count:1}])));let Ot=W.toJSON(this.contents,I,je);if(typeof H=="function"&&je.anchors)for(let{count:zt,res:En}of je.anchors.values())H(En,zt);return Ot}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let I=this.options.indent;if(!Number.isInteger(I)||I<=0){let At=JSON.stringify(I);throw new Error(`"indent" option must be a positive integer, not ${At}`)}this.setSchema();let H=[],le=!1;if(this.version){let At="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?At="%YAML:1.0":this.version==="1.1"&&(At="%YAML 1.1")),H.push(At),le=!0}let Fe=this.listNonDefaultTags();this.tagPrefixes.forEach(At=>{let{handle:Ot,prefix:zt}=At;Fe.some(En=>En.indexOf(zt)===0)&&(H.push(`%TAG ${Ot} ${zt}`),le=!0)}),(le||this.directivesEndMarker)&&H.push("---"),this.commentBefore&&((le||!this.directivesEndMarker)&&H.unshift(""),H.unshift(this.commentBefore.replace(/^/gm,"#")));let Me={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(I),stringify:Dt},ve=!1,je=null;if(this.contents){this.contents instanceof W.Node&&(this.contents.spaceBefore&&(le||this.directivesEndMarker)&&H.push(""),this.contents.commentBefore&&H.push(this.contents.commentBefore.replace(/^/gm,"#")),Me.forceBlockIndent=!!this.comment,je=this.contents.comment);let At=je?null:()=>ve=!0,Ot=Dt(this.contents,Me,()=>je=null,At);H.push(W.addComment(Ot,"",je))}else this.contents!==void 0&&H.push(Dt(this.contents,Me));return this.comment&&((!ve||je)&&H[H.length-1]!==""&&H.push(""),H.push(this.comment.replace(/^/gm,"#"))),H.join(`
406
- `)+`
407
- `}};g._defineProperty(K,"defaults",Ze),Y.Document=K,Y.defaultOptions=Pe,Y.scalarOptions=Be}}),sl=c({"node_modules/yaml/dist/index.js"(Y){O();var g=Ja(),W=ri(),Ce=Zs(),Pe=Wr(),Be=Ks();is();function Ze(_t){let Gt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Wt=arguments.length>2?arguments[2]:void 0;Wt===void 0&&typeof Gt=="string"&&(Wt=Gt,Gt=!0);let Xt=Object.assign({},W.Document.defaults[W.defaultOptions.version],W.defaultOptions);return new Ce.Schema(Xt).createNode(_t,Gt,Wt)}var gt=class extends W.Document{constructor(_t){super(Object.assign({},W.defaultOptions,_t))}};function Rt(_t,Gt){let Wt=[],Xt;for(let bn of g.parse(_t)){let ye=new gt(Gt);ye.parse(bn,Xt),Wt.push(ye),Xt=ye}return Wt}function st(_t,Gt){let Wt=g.parse(_t),Xt=new gt(Gt).parse(Wt[0]);if(Wt.length>1){let bn="Source contains multiple documents; please use YAML.parseAllDocuments()";Xt.errors.unshift(new Pe.YAMLSemanticError(Wt[1],bn))}return Xt}function Dt(_t,Gt){let Wt=st(_t,Gt);if(Wt.warnings.forEach(Xt=>Be.warn(Xt)),Wt.errors.length>0)throw Wt.errors[0];return Wt.toJSON()}function Ft(_t,Gt){let Wt=new gt(Gt);return Wt.contents=_t,String(Wt)}var It={createNode:Ze,defaultOptions:W.defaultOptions,Document:gt,parse:Dt,parseAllDocuments:Rt,parseCST:g.parse,parseDocument:st,scalarOptions:W.scalarOptions,stringify:Ft};Y.YAML=It}}),al=c({"node_modules/yaml/index.js"(Y,g){O(),g.exports=sl().YAML}}),ol=c({"node_modules/yaml/dist/util.js"(Y){O();var g=is(),W=Wr();Y.findPair=g.findPair,Y.parseMap=g.resolveMap,Y.parseSeq=g.resolveSeq,Y.stringifyNumber=g.stringifyNumber,Y.stringifyString=g.stringifyString,Y.toJSON=g.toJSON,Y.Type=W.Type,Y.YAMLError=W.YAMLError,Y.YAMLReferenceError=W.YAMLReferenceError,Y.YAMLSemanticError=W.YAMLSemanticError,Y.YAMLSyntaxError=W.YAMLSyntaxError,Y.YAMLWarning=W.YAMLWarning}}),Nf=c({"node_modules/yaml/util.js"(Y){O();var g=ol();Y.findPair=g.findPair,Y.toJSON=g.toJSON,Y.parseMap=g.parseMap,Y.parseSeq=g.parseSeq,Y.stringifyNumber=g.stringifyNumber,Y.stringifyString=g.stringifyString,Y.Type=g.Type,Y.YAMLError=g.YAMLError,Y.YAMLReferenceError=g.YAMLReferenceError,Y.YAMLSemanticError=g.YAMLSemanticError,Y.YAMLSyntaxError=g.YAMLSyntaxError,Y.YAMLWarning=g.YAMLWarning}}),ul=c({"node_modules/yaml-unist-parser/lib/yaml.js"(Y){O(),Y.__esModule=!0;var g=al();Y.Document=g.Document;var W=al();Y.parseCST=W.parseCST;var Ce=Nf();Y.YAMLError=Ce.YAMLError,Y.YAMLSyntaxError=Ce.YAMLSyntaxError,Y.YAMLSemanticError=Ce.YAMLSemanticError}}),ea=c({"node_modules/yaml-unist-parser/lib/parse.js"(Y){O(),Y.__esModule=!0;var g=Wu(),W=cf(),Ce=Gu(),Pe=ff(),Be=Qn(),Ze=Yu(),gt=Re(),Rt=Ds(),st=Is(),Dt=yi(),Ft=rs(),It=Ga(),_t=ul();function Gt(Wt){var Xt=_t.parseCST(Wt);Dt.addOrigRange(Xt);for(var bn=Xt.map(function(Ot){return new _t.Document({merge:!1,keepCstNodes:!0}).parse(Ot)}),ye=new g.default(Wt),K=[],I={text:Wt,locator:ye,comments:K,transformOffset:function(Ot){return Rt.transformOffset(Ot,I)},transformRange:function(Ot){return st.transformRange(Ot,I)},transformNode:function(Ot){return Be.transformNode(Ot,I)},transformContent:function(Ot){return Ze.transformContent(Ot,I)}},H=0,le=bn;H<le.length;H++)for(var Fe=le[H],Me=0,ve=Fe.errors;Me<ve.length;Me++){var je=ve[Me];if(!(je instanceof _t.YAMLSemanticError&&je.message==='Map keys must be unique; "<<" is repeated'))throw gt.transformError(je,I)}bn.forEach(function(Ot){return Pe.removeCstBlankLine(Ot.cstNode)});var At=Ce.createRoot(I.transformRange({origStart:0,origEnd:I.text.length}),bn.map(I.transformNode),K);return W.attachComments(At),It.updatePositions(At),Ft.removeFakeNodes(At),At}Y.parse=Gt}}),_f=c({"node_modules/yaml-unist-parser/lib/index.js"(Y){O(),Y.__esModule=!0;var g=(nr(),ee(Ge));g.__exportStar(ea(),Y)}});O();var Tf=ae(),{hasPragma:Fn}=we(),{locStart:ll,locEnd:kf}=Te();function Lf(Y){let{parse:g}=_f();try{let W=g(Y);return delete W.comments,W}catch(W){throw W!=null&&W.position?Tf(W.message,W.position):W}}var cl={astFormat:"yaml",parse:Lf,hasPragma:Fn,locStart:ll,locEnd:kf};s.exports={parsers:{yaml:cl}}});return r()})})(O0);var j0=O0.exports,ND=xD(j0),_D=tg({__proto__:null,default:ND},[j0]);function R0(e,t){if(e.length<t.length)return!1;for(var n=0;n<t.length;n++)if(e[n]!==t[n])return!1;return!0}function Qc(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:n===0?e===t:!1}function TD(e){return R0(e,"(?i)")?new RegExp(e.substring(4),"i"):new RegExp(e)}function Pa(e){return typeof e=="boolean"}var Gi;(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.SchemaResolveError=768]="SchemaResolveError"})(Gi||(Gi={}));var $0;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[os.Markdown,os.PlainText],commitCharactersSupport:!0}}}}})($0||($0={}));function kD(e,t){return t.length===0?e:e.replace(/{(\d+)}/g,(n,[r])=>r in t?t[r]:n)}var LD=(e,t,...n)=>kD(t,n);function Gs(){return LD}var Js=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},e(t,n)};return function(t,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Fo=Gs();Fo("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),Fo("dateTimeFormatWarning","String is not a RFC3339 date-time."),Fo("dateFormatWarning","String is not a RFC3339 date."),Fo("timeFormatWarning","String is not a RFC3339 time."),Fo("emailFormatWarning","String is not an e-mail address.");var Ys=function(){function e(t,n,r){r===void 0&&(r=0),this.offset=n,this.length=r,this.parent=t}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}();(function(e){Js(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="null",i.value=null,i}return t})(Ys),function(e){Js(t,e);function t(n,r,i){var s=e.call(this,n,i)||this;return s.type="boolean",s.value=r,s}return t}(Ys),function(e){Js(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="array",i.items=[],i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.items},enumerable:!1,configurable:!0}),t}(Ys),function(e){Js(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="number",i.isInteger=!0,i.value=Number.NaN,i}return t}(Ys),function(e){Js(t,e);function t(n,r,i){var s=e.call(this,n,r,i)||this;return s.type="string",s.value="",s}return t}(Ys),function(e){Js(t,e);function t(n,r,i){var s=e.call(this,n,r)||this;return s.type="property",s.colonOffset=-1,s.keyNode=i,s}return Object.defineProperty(t.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!1,configurable:!0}),t}(Ys),function(e){Js(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="object",i.properties=[],i}return Object.defineProperty(t.prototype,"children",{get:function(){return this.properties},enumerable:!1,configurable:!0}),t}(Ys);function PD(e){return Pa(e)?e?{}:{not:{}}:e}var V0;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(V0||(V0={})),function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!1,configurable:!0}),e.prototype.add=function(t){},e.prototype.merge=function(t){},e.prototype.include=function(t){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}();function wu(e){return dy(e)}function BD(e,t){if(typeof e!="string")throw new TypeError("Expected a string");for(var n=String(e),r="",i=t?!!t.extended:!1,s=t?!!t.globstar:!1,a=!1,o=t&&typeof t.flags=="string"?t.flags:"",u,l=0,C=n.length;l<C;l++)switch(u=n[l],u){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":r+="\\"+u;break;case"?":if(i){r+=".";break}case"[":case"]":if(i){r+=u;break}case"{":if(i){a=!0,r+="(";break}case"}":if(i){a=!1,r+=")";break}case",":if(a){r+="|";break}r+="\\"+u;break;case"*":for(var c=n[l-1],B=1;n[l+1]==="*";)B++,l++;var N=n[l+1];if(!s)r+=".*";else{var ee=B>1&&(c==="/"||c===void 0||c==="{"||c===",")&&(N==="/"||N===void 0||N===","||N==="}");ee?(N==="/"?l++:c==="/"&&r.endsWith("\\/")&&(r=r.substr(0,r.length-2)),r+="((?:[^/]*(?:/|$))*)"):r+="([^/]*)"}break;default:r+=u}return(!o||!~o.indexOf("g"))&&(r="^"+r+"$"),new RegExp(r,o)}var Ls=Gs(),MD="!",ID="/",OD=function(){function e(t,n){this.globWrappers=[];try{for(var r=0,i=t;r<i.length;r++){var s=i[r],a=s[0]!==MD;a||(s=s.substring(1)),s.length>0&&(s[0]===ID&&(s=s.substring(1)),this.globWrappers.push({regexp:BD("**/"+s,{extended:!0,globstar:!0}),include:a}))}this.uris=n}catch{this.globWrappers.length=0,this.uris=[]}}return e.prototype.matchesPattern=function(t){for(var n=!1,r=0,i=this.globWrappers;r<i.length;r++){var s=i[r],a=s.regexp,o=s.include;a.test(t)&&(n=o)}return n},e.prototype.getURIs=function(){return this.uris},e}(),jD=function(){function e(t,n,r){this.service=t,this.url=n,this.dependencies={},r&&(this.unresolvedSchema=this.service.promise.resolve(new Ji(r)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var t=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(n){return t.service.resolveSchemaContent(n,t.url,t.dependencies)})),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=void 0,this.unresolvedSchema=void 0,this.dependencies={}},e}(),Ji=function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e}(),No=function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e.prototype.getSection=function(t){var n=this.getSectionRecursive(t,this.schema);if(n)return PD(n)},e.prototype.getSectionRecursive=function(t,n){if(!n||typeof n=="boolean"||t.length===0)return n;var r=t.shift();if(n.properties&&typeof n.properties[r])return this.getSectionRecursive(t,n.properties[r]);if(n.patternProperties)for(var i=0,s=Object.keys(n.patternProperties);i<s.length;i++){var a=s[i],o=TD(a);if(o.test(r))return this.getSectionRecursive(t,n.patternProperties[a])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(t,n.additionalProperties);if(r.match("[0-9]+")){if(Array.isArray(n.items)){var u=parseInt(r,10);if(!isNaN(u)&&n.items[u])return this.getSectionRecursive(t,n.items[u])}else if(n.items)return this.getSectionRecursive(t,n.items)}}},e}(),RD=function(){function e(t,n,r){this.contextService=n,this.requestService=t,this.promiseConstructor=r||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations=[],this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(t){return Object.keys(this.registeredSchemasIds).filter(function(n){var r=Ai.parse(n).scheme;return r!=="schemaservice"&&(!t||t(r))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(t){var n=this;this.cachedSchemaForResource=void 0;var r=!1;t=Ps(t);for(var i=[t],s=Object.keys(this.schemasById).map(function(l){return n.schemasById[l]});i.length;)for(var a=i.pop(),o=0;o<s.length;o++){var u=s[o];u&&(u.url===a||u.dependencies[a])&&(u.url!==a&&i.push(u.url),u.clearSchema(),s[o]=void 0,r=!0)}return r},e.prototype.setSchemaContributions=function(t){if(t.schemas){var n=t.schemas;for(var r in n){var i=Ps(r);this.contributionSchemas[i]=this.addSchemaHandle(i,n[r])}}if(Array.isArray(t.schemaAssociations))for(var s=t.schemaAssociations,a=0,o=s;a<o.length;a++){var u=o[a],l=u.uris.map(Ps),C=this.addFilePatternAssociation(u.pattern,l);this.contributionAssociations.push(C)}},e.prototype.addSchemaHandle=function(t,n){var r=new jD(this,t,n);return this.schemasById[t]=r,r},e.prototype.getOrAddSchemaHandle=function(t,n){return this.schemasById[t]||this.addSchemaHandle(t,n)},e.prototype.addFilePatternAssociation=function(t,n){var r=new OD(t,n);return this.filePatternAssociations.push(r),r},e.prototype.registerExternalSchema=function(t,n,r){var i=Ps(t);return this.registeredSchemasIds[i]=!0,this.cachedSchemaForResource=void 0,n&&this.addFilePatternAssociation(n,[t]),r?this.addSchemaHandle(i,r):this.getOrAddSchemaHandle(i)},e.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.registeredSchemasIds={},this.cachedSchemaForResource=void 0;for(var t in this.contributionSchemas)this.schemasById[t]=this.contributionSchemas[t],this.registeredSchemasIds[t]=!0;for(var n=0,r=this.contributionAssociations;n<r.length;n++){var i=r[n];this.filePatternAssociations.push(i)}},e.prototype.getResolvedSchema=function(t){var n=Ps(t),r=this.schemasById[n];return r?r.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(t){if(!this.requestService){var n=Ls("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",Fu(t));return this.promise.resolve(new Ji({},[n]))}return this.requestService(t).then(function(r){if(!r){var i=Ls("json.schema.nocontent","Unable to load schema from '{0}': No content.",Fu(t));return new Ji({},[i])}var s={},a=[];s=py(r,a);var o=a.length?[Ls("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",Fu(t),a[0].offset)]:[];return new Ji(s,o)},function(r){var i=r.toString(),s=r.toString().split("Error: ");return s.length>1&&(i=s[1]),Qc(i,".")&&(i=i.substr(0,i.length-1)),new Ji({},[Ls("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Fu(t),i)])})},e.prototype.resolveSchemaContent=function(t,n,r){var i=this,s=t.errors.slice(0),a=t.schema;if(a.$schema){var o=Ps(a.$schema);if(o==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new No({},[Ls("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));o==="https://json-schema.org/draft/2019-09/schema"&&s.push(Ls("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var u=this.contextService,l=function(N,ee){if(!ee)return N;var ne=N;return ee[0]==="/"&&(ee=ee.substr(1)),ee.split("/").some(function(O){return O=O.replace(/~1/g,"/").replace(/~0/g,"~"),ne=ne[O],!ne}),ne},C=function(N,ee,ne,O){var ae=O?decodeURIComponent(O):void 0,we=l(ee,ae);if(we)for(var Te in we)we.hasOwnProperty(Te)&&!N.hasOwnProperty(Te)&&(N[Te]=we[Te]);else s.push(Ls("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",ae,ne))},c=function(N,ee,ne,O,ae){u&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(ee)&&(ee=u.resolveRelativePath(ee,O)),ee=Ps(ee);var we=i.getOrAddSchemaHandle(ee);return we.getUnresolvedSchema().then(function(Te){if(ae[ee]=!0,Te.errors.length){var Ge=ne?ee+"#"+ne:ee;s.push(Ls("json.schema.problemloadingref","Problems loading reference '{0}': {1}",Ge,Te.errors[0]))}return C(N,Te.schema,ee,ne),B(N,Te.schema,ee,we.dependencies)})},B=function(N,ee,ne,O){if(!N||typeof N!="object")return Promise.resolve(null);for(var ae=[N],we=[],Te=[],Ge=function(){for(var Ae=[],Ne=0;Ne<arguments.length;Ne++)Ae[Ne]=arguments[Ne];for(var ze=0,qe=Ae;ze<qe.length;ze++){var jt=qe[ze];typeof jt=="object"&&ae.push(jt)}},pe=function(){for(var Ae=[],Ne=0;Ne<arguments.length;Ne++)Ae[Ne]=arguments[Ne];for(var ze=0,qe=Ae;ze<qe.length;ze++){var jt=qe[ze];if(typeof jt=="object")for(var fn in jt){var xn=fn,Lt=jt[xn];typeof Lt=="object"&&ae.push(Lt)}}},Se=function(){for(var Ae=[],Ne=0;Ne<arguments.length;Ne++)Ae[Ne]=arguments[Ne];for(var ze=0,qe=Ae;ze<qe.length;ze++){var jt=qe[ze];if(Array.isArray(jt))for(var fn=0,xn=jt;fn<xn.length;fn++){var Lt=xn[fn];typeof Lt=="object"&&ae.push(Lt)}}},Qe=function(Ae){for(var Ne=[];Ae.$ref;){var ze=Ae.$ref,qe=ze.split("#",2);if(delete Ae.$ref,qe[0].length>0){Te.push(c(Ae,qe[0],qe[1],ne,O));return}else Ne.indexOf(ze)===-1&&(C(Ae,ee,ne,qe[1]),Ne.push(ze))}Ge(Ae.items,Ae.additionalItems,Ae.additionalProperties,Ae.not,Ae.contains,Ae.propertyNames,Ae.if,Ae.then,Ae.else),pe(Ae.definitions,Ae.properties,Ae.patternProperties,Ae.dependencies),Se(Ae.anyOf,Ae.allOf,Ae.oneOf,Ae.items)};ae.length;){var mt=ae.pop();we.indexOf(mt)>=0||(we.push(mt),Qe(mt))}return i.promise.all(Te)};return B(a,a,n,r).then(function(N){return new No(a,s)})},e.prototype.getSchemaForResource=function(t,n){if(n&&n.root&&n.root.type==="object"){var r=n.root.properties.filter(function(ae){return ae.keyNode.value==="$schema"&&ae.valueNode&&ae.valueNode.type==="string"});if(r.length>0){var i=r[0].valueNode;if(i&&i.type==="string"){var s=wu(i);if(s&&R0(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,t)),s){var a=Ps(s);return this.getOrAddSchemaHandle(a).getResolvedSchema()}}}}if(this.cachedSchemaForResource&&this.cachedSchemaForResource.resource===t)return this.cachedSchemaForResource.resolvedSchema;for(var o=Object.create(null),u=[],l=VD(t),C=0,c=this.filePatternAssociations;C<c.length;C++){var B=c[C];if(B.matchesPattern(l))for(var N=0,ee=B.getURIs();N<ee.length;N++){var ne=ee[N];o[ne]||(u.push(ne),o[ne]=!0)}}var O=u.length>0?this.createCombinedSchema(t,u).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:t,resolvedSchema:O},O},e.prototype.createCombinedSchema=function(t,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var r="schemaservice://combinedSchema/"+encodeURIComponent(t),i={allOf:n.map(function(s){return{$ref:s}})};return this.addSchemaHandle(r,i)},e.prototype.getMatchingSchemas=function(t,n,r){if(r){var i=r.id||"schemaservice://untitled/matchingSchemas/"+$D++;return this.resolveSchemaContent(new Ji(r),i,{}).then(function(s){return n.getMatchingSchemas(s.schema).filter(function(a){return!a.inverted})})}return this.getSchemaForResource(t.uri,n).then(function(s){return s?n.getMatchingSchemas(s.schema).filter(function(a){return!a.inverted}):[]})},e}(),$D=0;function Ps(e){try{return Ai.parse(e).toString()}catch{return e}}function VD(e){try{return Ai.parse(e).with({fragment:null,query:null}).toString()}catch{return e}}function Fu(e){try{var t=Ai.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}function qD(e){return e.replace(/[-\\{}+?|^$.,[\]()#\s]/g,"\\$&").replace(/[*]/g,".*")}function UD(e,t){if(e.length<t)return 0;for(let n=0;n<t;n++){const r=e.charCodeAt(n);if(r!==32&&r!==9)return n}return t}function q0(e){try{return new RegExp(e,"u")}catch{return new RegExp(e)}}function WD(e,t){t++;for(let n=t;n<e.length;n++){const r=e.charAt(n);if(r===" "||r===" ")t++;else return t}return t}function _o(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(!_o(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(),!_o(i,s))return!1;for(n=0;n<i.length;n++)if(!_o(e[i[n]],t[i[n]]))return!1}return!0}function Ii(e){return typeof e=="number"}function Hs(e){return typeof e<"u"}function Ba(e){return typeof e=="boolean"}function Ma(e){return typeof e=="string"}function GD(e){return Symbol.iterator in Object(e)}function fs(e){var t;return e?e instanceof Error&&(t=e.stack)!=null?t:e.toString():"null"}function Xc(e){const t=e.type&&e.closestTitle;return e.title?e.title:e.$id?U0(e.$id):e.$ref||e._$ref?U0(e.$ref||e._$ref):Array.isArray(e.type)?e.type.join(" | "):t?e.type.concat("(",e.closestTitle,")"):e.type||e.closestTitle}function U0(e){const t=e.match(/^(?:.*\/)?(.*?)(?:\.schema\.json)?$/);let n=!!t&&t[1];return n||(n="typeNotFound",console.error(`$ref (${e}) not parsed properly`)),n}function W0(e,t){const n=Ai.parse(t);let r=Ws.basename(n.fsPath);return Ws.extname(n.fsPath)||(r+=".json"),Object.getOwnPropertyDescriptor(e,"name")?Object.getOwnPropertyDescriptor(e,"name").value+` (${r})`:e.title?e.description?e.title+" - "+e.description+` (${r})`:e.title+` (${r})`:r}function JD(e){return e.type!=="object"&&!Kc(e)}function Kc(e){return!!(e.anyOf||e.allOf||e.oneOf)}var YD=Gs(),HD=function(){function e(t,n){this.jsonSchemaService=t,this.promise=n,this.validationEnabled=!0}return e.prototype.configure=function(t){t&&(this.validationEnabled=t.validate!==!1,this.commentSeverity=t.allowComments?void 0:Xn.Error)},e.prototype.doValidation=function(t,n,r,i){var s=this;if(!this.validationEnabled)return this.promise.resolve([]);var a=[],o={},u=function(c){var B=c.range.start.line+" "+c.range.start.character+" "+c.message;o[B]||(o[B]=!0,a.push(c))},l=function(c){var B=r!=null&&r.trailingCommas?Nu(r.trailingCommas):Xn.Error,N=r!=null&&r.comments?Nu(r.comments):s.commentSeverity,ee=r!=null&&r.schemaValidation?Nu(r.schemaValidation):Xn.Warning,ne=r!=null&&r.schemaRequest?Nu(r.schemaRequest):Xn.Warning;if(c){if(c.errors.length&&n.root&&ne){var O=n.root,ae=O.type==="object"?O.properties[0]:void 0;if(ae&&ae.keyNode.value==="$schema"){var we=ae.valueNode||ae,Te=Rn.create(t.positionAt(we.offset),t.positionAt(we.offset+we.length));u(Ci.create(Te,c.errors[0],ne,Gi.SchemaResolveError))}else{var Te=Rn.create(t.positionAt(O.offset),t.positionAt(O.offset+1));u(Ci.create(Te,c.errors[0],ne,Gi.SchemaResolveError))}}else if(ee){var Ge=n.validate(t,c.schema,ee);Ge&&Ge.forEach(u)}G0(c.schema)&&(N=void 0),J0(c.schema)&&(B=void 0)}for(var pe=0,Se=n.syntaxErrors;pe<Se.length;pe++){var Qe=Se[pe];if(Qe.code===Gi.TrailingComma){if(typeof B!="number")continue;Qe.severity=B}u(Qe)}if(typeof N=="number"){var mt=YD("InvalidCommentToken","Comments are not permitted in JSON.");n.comments.forEach(function(Ae){u(Ci.create(Ae,mt,N,Gi.CommentNotPermitted))})}return a};if(i){var C=i.id||"schemaservice://untitled/"+zD++;return this.jsonSchemaService.resolveSchemaContent(new Ji(i),C,{}).then(function(c){return l(c)})}return this.jsonSchemaService.getSchemaForResource(t.uri,n).then(function(c){return l(c)})},e}(),zD=0;function G0(e){if(e&&typeof e=="object"){if(Pa(e.allowComments))return e.allowComments;if(e.allOf)for(var t=0,n=e.allOf;t<n.length;t++){var r=n[t],i=G0(r);if(Pa(i))return i}}}function J0(e){if(e&&typeof e=="object"){if(Pa(e.allowTrailingCommas))return e.allowTrailingCommas;var t=e;if(Pa(t.allowsTrailingCommas))return t.allowsTrailingCommas;if(e.allOf)for(var n=0,r=e.allOf;n<r.length;n++){var i=r[n],s=J0(i);if(Pa(s))return s}}}function Nu(e){switch(e){case"error":return Xn.Error;case"warning":return Xn.Warning;case"ignore":return}}var Y0=48,QD=57,XD=65,_u=97,KD=102;function Ir(e){return e<Y0?0:e<=QD?e-Y0:(e<_u&&(e+=_u-XD),e>=_u&&e<=KD?e-_u+10:0)}function ZD(e){if(e[0]==="#")switch(e.length){case 4:return{red:Ir(e.charCodeAt(1))*17/255,green:Ir(e.charCodeAt(2))*17/255,blue:Ir(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Ir(e.charCodeAt(1))*17/255,green:Ir(e.charCodeAt(2))*17/255,blue:Ir(e.charCodeAt(3))*17/255,alpha:Ir(e.charCodeAt(4))*17/255};case 7:return{red:(Ir(e.charCodeAt(1))*16+Ir(e.charCodeAt(2)))/255,green:(Ir(e.charCodeAt(3))*16+Ir(e.charCodeAt(4)))/255,blue:(Ir(e.charCodeAt(5))*16+Ir(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Ir(e.charCodeAt(1))*16+Ir(e.charCodeAt(2)))/255,green:(Ir(e.charCodeAt(3))*16+Ir(e.charCodeAt(4)))/255,blue:(Ir(e.charCodeAt(5))*16+Ir(e.charCodeAt(6)))/255,alpha:(Ir(e.charCodeAt(7))*16+Ir(e.charCodeAt(8)))/255}}}var eb=function(){function e(t){this.schemaService=t}return e.prototype.findDocumentSymbols=function(t,n,r){var i=this;r===void 0&&(r={resultLimit:Number.MAX_VALUE});var s=n.root;if(!s)return[];var a=r.resultLimit||Number.MAX_VALUE,o=t.uri;if((o==="vscode://defaultsettings/keybindings.json"||Qc(o.toLowerCase(),"/user/keybindings.json"))&&s.type==="array"){for(var u=[],l=0,C=s.items;l<C.length;l++){var c=C[l];if(c.type==="object")for(var B=0,N=c.properties;B<N.length;B++){var ee=N[B];if(ee.keyNode.value==="key"&&ee.valueNode){var ne=Da.create(t.uri,Bs(t,c));if(u.push({name:wu(ee.valueNode),kind:es.Function,location:ne}),a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),u}}}return u}for(var O=[{node:s,containerName:""}],ae=0,we=!1,Te=[],Ge=function(Se,Qe){Se.type==="array"?Se.items.forEach(function(mt){mt&&O.push({node:mt,containerName:Qe})}):Se.type==="object"&&Se.properties.forEach(function(mt){var Ae=mt.valueNode;if(Ae)if(a>0){a--;var Ne=Da.create(t.uri,Bs(t,mt)),ze=Qe?Qe+"."+mt.keyNode.value:mt.keyNode.value;Te.push({name:i.getKeyLabel(mt),kind:i.getSymbolKind(Ae.type),location:Ne,containerName:Qe}),O.push({node:Ae,containerName:ze})}else we=!0})};ae<O.length;){var pe=O[ae++];Ge(pe.node,pe.containerName)}return we&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),Te},e.prototype.findDocumentSymbols2=function(t,n,r){var i=this;r===void 0&&(r={resultLimit:Number.MAX_VALUE});var s=n.root;if(!s)return[];var a=r.resultLimit||Number.MAX_VALUE,o=t.uri;if((o==="vscode://defaultsettings/keybindings.json"||Qc(o.toLowerCase(),"/user/keybindings.json"))&&s.type==="array"){for(var u=[],l=0,C=s.items;l<C.length;l++){var c=C[l];if(c.type==="object")for(var B=0,N=c.properties;B<N.length;B++){var ee=N[B];if(ee.keyNode.value==="key"&&ee.valueNode){var ne=Bs(t,c),O=Bs(t,ee.keyNode);if(u.push({name:wu(ee.valueNode),kind:es.Function,range:ne,selectionRange:O}),a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),u}}}return u}for(var ae=[],we=[{node:s,result:ae}],Te=0,Ge=!1,pe=function(Qe,mt){Qe.type==="array"?Qe.items.forEach(function(Ae,Ne){if(Ae)if(a>0){a--;var ze=Bs(t,Ae),qe=ze,jt=String(Ne),fn={name:jt,kind:i.getSymbolKind(Ae.type),range:ze,selectionRange:qe,children:[]};mt.push(fn),we.push({result:fn.children,node:Ae})}else Ge=!0}):Qe.type==="object"&&Qe.properties.forEach(function(Ae){var Ne=Ae.valueNode;if(Ne)if(a>0){a--;var ze=Bs(t,Ae),qe=Bs(t,Ae.keyNode),jt=[],fn={name:i.getKeyLabel(Ae),kind:i.getSymbolKind(Ne.type),range:ze,selectionRange:qe,children:jt,detail:i.getDetail(Ne)};mt.push(fn),we.push({result:jt,node:Ne})}else Ge=!0})};Te<we.length;){var Se=we[Te++];pe(Se.node,Se.result)}return Ge&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),ae},e.prototype.getSymbolKind=function(t){switch(t){case"object":return es.Module;case"string":return es.String;case"number":return es.Number;case"array":return es.Array;case"boolean":return es.Boolean;default:return es.Variable}},e.prototype.getKeyLabel=function(t){var n=t.keyNode.value;return n&&(n=n.replace(/[\n]/g,"↵")),n&&n.trim()?n:'"'+n+'"'},e.prototype.getDetail=function(t){if(t){if(t.type==="boolean"||t.type==="number"||t.type==="null"||t.type==="string")return String(t.value);if(t.type==="array")return t.children.length?void 0:"[]";if(t.type==="object")return t.children.length?void 0:"{}"}},e.prototype.findDocumentColors=function(t,n,r){return this.schemaService.getSchemaForResource(t.uri,n).then(function(i){var s=[];if(i)for(var a=r&&typeof r.resultLimit=="number"?r.resultLimit:Number.MAX_VALUE,o=n.getMatchingSchemas(i.schema),u={},l=0,C=o;l<C.length;l++){var c=C[l];if(!c.inverted&&c.schema&&(c.schema.format==="color"||c.schema.format==="color-hex")&&c.node&&c.node.type==="string"){var B=String(c.node.offset);if(!u[B]){var N=ZD(wu(c.node));if(N){var ee=Bs(t,c.node);s.push({color:N,range:ee})}if(u[B]=!0,a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(t.uri),s}}}return s})},e.prototype.getColorPresentations=function(t,n,r,i){var s=[],a=Math.round(r.red*255),o=Math.round(r.green*255),u=Math.round(r.blue*255);function l(c){var B=c.toString(16);return B.length!==2?"0"+B:B}var C;return r.alpha===1?C="#"+l(a)+l(o)+l(u):C="#"+l(a)+l(o)+l(u)+l(Math.round(r.alpha*255)),s.push({label:C,textEdit:Sr.replace(i,JSON.stringify(C))}),s},e}();function Bs(e,t){return Rn.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}var $n=Gs(),H0={schemaAssociations:[],schemas:{"http://json-schema.org/schema#":{$ref:"http://json-schema.org/draft-07/schema#"},"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}}},tb={id:$n("schema.json.id","A unique identifier for the schema."),$schema:$n("schema.json.$schema","The schema to verify this document against."),title:$n("schema.json.title","A descriptive title of the element."),description:$n("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:$n("schema.json.default","A default value. Used by suggestions."),multipleOf:$n("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:$n("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:$n("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:$n("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:$n("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:$n("schema.json.maxLength","The maximum length of a string."),minLength:$n("schema.json.minLength","The minimum length of a string."),pattern:$n("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:$n("schema.json.additionalItems","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:$n("schema.json.items","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:$n("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:$n("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:$n("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:$n("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:$n("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:$n("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:$n("schema.json.additionalProperties","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:$n("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:$n("schema.json.properties","A map of property names to schemas for each property."),patternProperties:$n("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:$n("schema.json.dependencies","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:$n("schema.json.enum","The set of literal values that are valid."),type:$n("schema.json.type","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:$n("schema.json.format","Describes the format expected for the value."),allOf:$n("schema.json.allOf","An array of schemas, all of which must match."),anyOf:$n("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:$n("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:$n("schema.json.not","A schema which must not match."),$id:$n("schema.json.$id","A unique identifier for the schema."),$ref:$n("schema.json.$ref","Reference a definition hosted on any location."),$comment:$n("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:$n("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:$n("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:$n("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:$n("schema.json.propertyNames","If the instance is an object, this keyword validates if every property name in the instance validates against the provided schema."),const:$n("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:$n("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:$n("schema.json.contentEncoding","Describes the content encoding of a string property."),if:$n("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:$n("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:$n("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(z0 in H0.schemas){Tu=H0.schemas[z0];for(Ia in Tu.properties)ku=Tu.properties[Ia],typeof ku=="boolean"&&(ku=Tu.properties[Ia]={}),Zc=tb[Ia],Zc?ku.description=Zc:console.log(Ia+": localize('schema.json."+Ia+`', "")`)}var Tu,ku,Zc,Ia,z0;function nb(e,t){var n=[];return t.visit(function(r){var i;if(r.type==="property"&&r.keyNode.value==="$ref"&&((i=r.valueNode)===null||i===void 0?void 0:i.type)==="string"){var s=r.valueNode.value,a=ib(t,s);if(a){var o=e.positionAt(a.offset);n.push({target:e.uri+"#"+(o.line+1)+","+(o.character+1),range:rb(e,r.valueNode)})}}return!0}),Promise.resolve(n)}function rb(e,t){return Rn.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function ib(e,t){var n=sb(t);return n?ef(n,e.root):null}function ef(e,t){if(!t)return null;if(e.length===0)return t;var n=e.shift();if(t&&t.type==="object"){var r=t.properties.find(function(a){return a.keyNode.value===n});return r?ef(e,r.valueNode):null}else if(t&&t.type==="array"&&n.match(/^(0|[1-9][0-9]*)$/)){var i=Number.parseInt(n),s=t.items[i];return s?ef(e,s):null}return null}function sb(e){return e==="#"?[]:e[0]!=="#"||e[1]!=="/"?null:e.substring(2).split(/\//).map(ab)}function ab(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Lu(e,t){for(const n of t.documents)if(n.internalDocument&&n.internalDocument.range[0]<=e&&n.internalDocument.range[2]>=e)return n;return t.documents.length===1?t.documents[0]:null}function Q0(e){const t=["mapping","scalar","sequence"];return e?e.filter(n=>{if(typeof n=="string"){const r=n.split(" "),i=r[1]&&r[1].toLowerCase()||"scalar";return i==="map"?!1:t.indexOf(i)!==-1}return!1}):[]}function X0(e,t){if(!t||!e||t.length!==e.length)return!1;for(let n=e.length-1;n>=0;n--)if(e[n]!==t[n])return!1;return!0}var rr=Gs(),tf="Property {0} is not allowed.",ob={"color-hex":{errorMessage:rr("colorHexFormatWarning","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:rr("dateTimeFormatWarning","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:rr("dateFormatWarning","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:rr("timeFormatWarning","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:rr("emailFormatWarning","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-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/},ipv4:{errorMessage:rr("ipv4FormatWarning","String does not match IPv4 format."),pattern:/^((25[0-5]|(2[0-4]|1\d|[1-9]|)\d)\.?\b){4}$/},ipv6:{errorMessage:rr("ipv6FormatWarning","String does not match IPv6 format."),pattern:/^([0-9a-f]|:){1,4}(:([0-9a-f]{0,4})*){1,7}$/i}},Pu="YAML",K0="yaml-schema: ",ui;(function(e){e.missingRequiredPropWarning="missingRequiredPropWarning",e.typeMismatchWarning="typeMismatchWarning",e.constWarning="constWarning"})(ui||(ui={}));var ub={[ui.missingRequiredPropWarning]:'Missing property "{0}".',[ui.typeMismatchWarning]:'Incorrect type. Expected "{0}".',[ui.constWarning]:"Value must be {0}."},zs=class{constructor(e,t,n,r){this.offset=n,this.length=r,this.parent=e,this.internalNode=t}getNodeFromOffsetEndInclusive(e){const t=[],n=a=>{if(e>=a.offset&&e<=a.offset+a.length){const o=a.children;for(let u=0;u<o.length&&o[u].offset<=e;u++){const l=n(o[u]);l&&t.push(l)}return a}return null},r=n(this);let i=Number.MAX_VALUE,s=null;for(const a of t){const o=a.length+a.offset-e+(e-a.offset);o<i&&(s=a,i=o)}return s||r}get children(){return[]}toString(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")}},lb=class extends zs{constructor(e,t,n,r){super(e,t,n,r),this.type="null",this.value=null}},cb=class extends zs{constructor(e,t,n,r,i){super(e,t,r,i),this.type="boolean",this.value=n}},fb=class extends zs{constructor(e,t,n,r){super(e,t,n,r),this.type="array",this.items=[]}get children(){return this.items}},pb=class extends zs{constructor(e,t,n,r){super(e,t,n,r),this.type="number",this.isInteger=!0,this.value=Number.NaN}},Bu=class extends zs{constructor(e,t,n,r){super(e,t,n,r),this.type="string",this.value=""}},db=class extends zs{constructor(e,t,n,r){super(e,t,n,r),this.type="property",this.colonOffset=-1}get children(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]}},hb=class extends zs{constructor(e,t,n,r){super(e,t,n,r),this.type="object",this.properties=[]}get children(){return this.properties}};function li(e){if(e!==void 0)return Ba(e)?e?{}:{not:{}}:(typeof e!="object"&&(console.warn(`Wrong schema: ${JSON.stringify(e)}, it MUST be an Object or Boolean`),e={type:e}),e)}var Z0;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Z0||(Z0={}));var mb=class Zm{constructor(t=-1,n=null){this.focusOffset=t,this.exclude=n,this.schemas=[]}add(t){this.schemas.push(t)}merge(t){this.schemas.push(...t.schemas)}include(t){return(this.focusOffset===-1||em(t,this.focusOffset))&&t!==this.exclude}newSub(){return new Zm(-1,this.exclude)}},To=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};To.instance=new To;var mi=class{constructor(e){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,e?this.enumValues=[]:this.enumValues=null}hasProblems(){return!!this.problems.length}mergeAll(e){for(const t of e)this.merge(t)}merge(e){this.problems=this.problems.concat(e.problems)}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===Gi.EnumValueMismatch&&(t.message=rr("enumWarning","Value is not accepted. Valid values: {0}.",[...new Set(this.enumValues)].map(n=>JSON.stringify(n)).join(", ")))}}mergeWarningGeneric(e,t){var n,r;if((n=this.problems)!=null&&n.length)for(const i of t){const s=this.problems.filter(a=>a.problemType===i);for(const a of s){const o=(r=e.problems)==null?void 0:r.find(u=>u.problemType===i&&a.location.offset===u.location.offset&&(i!==ui.missingRequiredPropWarning||X0(u.problemArgs,a.problemArgs)));o&&(o.problemArgs.length&&(o.problemArgs.filter(u=>!a.problemArgs.includes(u)).forEach(u=>a.problemArgs.push(u)),a.message=Mu(a.problemType,a.problemArgs)),this.mergeSources(o,a))}}}mergePropertyMatch(e){this.merge(e),this.propertiesMatches++,(e.enumValueMatch||!e.hasProblems()&&e.propertiesMatches)&&this.propertiesValueMatches++,e.enumValueMatch&&e.enumValues&&this.primaryValueMatches++}mergeSources(e,t){const n=e.source.replace(K0,"");t.source.includes(n)||(t.source=t.source+" | "+n),t.schemaUri.includes(e.schemaUri[0])||(t.schemaUri=t.schemaUri.concat(e.schemaUri))}compareGeneric(e){const t=this.hasProblems();return t!==e.hasProblems()?t?-1:1:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesMatches-e.propertiesMatches}compareKubernetes(e){const t=this.hasProblems();return this.propertiesMatches!==e.propertiesMatches?this.propertiesMatches-e.propertiesMatches:this.enumValueMatch!==e.enumValueMatch?e.enumValueMatch?-1:1:this.primaryValueMatches!==e.primaryValueMatches?this.primaryValueMatches-e.primaryValueMatches:this.propertiesValueMatches!==e.propertiesValueMatches?this.propertiesValueMatches-e.propertiesValueMatches:t!==e.hasProblems()?t?-1:1:this.propertiesMatches-e.propertiesMatches}};function Oa(e){switch(e.type){case"array":return e.children.map(Oa);case"object":{const t=Object.create(null);for(let n=0,r=e.children;n<r.length;n++){const i=r[n],s=i.children[1];s&&(t[i.children[0].value]=Oa(s))}return t}case"null":case"string":case"number":case"boolean":return e.value;default:return}}function em(e,t,n=!1){return t>=e.offset&&t<=e.offset+e.length||n&&t===e.offset+e.length}function tm(e,t,n){if(n===void 0&&(n=!1),em(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=tm(r[i],t,n);if(s)return s}return e}}var gb=class{constructor(e,t=[],n=[]){this.root=e,this.syntaxErrors=t,this.comments=n}getNodeFromOffset(e,t=!1){if(this.root)return tm(this.root,e,t)}getNodeFromOffsetEndInclusive(e){return this.root&&this.root.getNodeFromOffsetEndInclusive(e)}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){if(this.root&&t){const n=new mi(this.isKubernetes);return Hr(this.root,t,t,n,To.instance,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties,uri:this.uri}),n.problems.map(r=>{const i=Rn.create(e.positionAt(r.location.offset),e.positionAt(r.location.offset+r.location.length)),s=Ci.create(i,r.message,r.severity,r.code?r.code:Gi.Undefined,r.source);return s.data={schemaUri:r.schemaUri,...r.data},s})}return null}getMatchingSchemas(e,t=-1,n=null,r){const i=new mb(t,n);return this.root&&e&&Hr(this.root,e,e,new mi(this.isKubernetes),i,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties,uri:this.uri,callFromAutoComplete:r}),i.schemas}};function Hr(e,t,n,r,i,s){const{isKubernetes:a,callFromAutoComplete:o}=s;if(!e||typeof t!="object")return;switch(t.url||(t.url=n.url),t.closestTitle=t.title||n.closestTitle,e.type){case"object":B(e,t,r,i);break;case"array":c(e,t,r,i);break;case"string":C(e,t,r);break;case"number":l(e,t,r);break;case"property":return Hr(e.valueNode,t,t,r,i,s)}u(),i.add({node:e,schema:t});function u(){function ne(pe){return e.type===pe||pe==="integer"&&e.type==="number"&&e.isInteger}if(Array.isArray(t.type))t.type.some(ne)||r.problems.push({location:{offset:e.offset,length:e.length},severity:Xn.Warning,message:t.errorMessage||rr("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", ")),source:mr(t,n),schemaUri:gr(t,n)});else if(t.type&&!ne(t.type)){const pe=t.type==="object"?Xc(t):t.type;r.problems.push({location:{offset:e.offset,length:e.length},severity:Xn.Warning,message:t.errorMessage||Mu(ui.typeMismatchWarning,[pe]),source:mr(t,n),schemaUri:gr(t,n),problemType:ui.typeMismatchWarning,problemArgs:[pe]})}if(Array.isArray(t.allOf))for(const pe of t.allOf)Hr(e,li(pe),t,r,i,s);const O=li(t.not);if(O){const pe=new mi(a),Se=i.newSub();Hr(e,O,t,pe,Se,s),pe.hasProblems()||r.problems.push({location:{offset:e.offset,length:e.length},severity:Xn.Warning,message:rr("notSchemaWarning","Matches a schema that is not allowed."),source:mr(t,n),schemaUri:gr(t,n)});for(const Qe of Se.schemas)Qe.inverted=!Qe.inverted,i.add(Qe)}const ae=(pe,Se)=>{var Qe;const mt=[],Ae=[],Ne=[];let ze=null;for(const qe of pe){const jt={...li(qe)},fn=new mi(a),xn=i.newSub();Hr(e,jt,t,fn,xn,s),(!fn.hasProblems()||o)&&(mt.push(jt),Ae.push(jt),fn.propertiesMatches===0&&Ne.push(jt),jt.format&&Ae.pop()),ze?a?ze=N(fn,ze,jt,xn):ze=ee(e,Se,fn,ze,jt,xn):ze={schema:jt,validationResult:fn,matchingSchemas:xn}}return Ae.length>1&&(Ae.length>1||Ne.length===0)&&Se&&r.problems.push({location:{offset:e.offset,length:1},severity:Xn.Warning,message:rr("oneOfWarning","Matches multiple schemas when only one must validate."),source:mr(t,n),schemaUri:gr(t,n)}),ze!==null&&(r.merge(ze.validationResult),r.propertiesMatches+=ze.validationResult.propertiesMatches,r.propertiesValueMatches+=ze.validationResult.propertiesValueMatches,r.enumValueMatch=r.enumValueMatch||ze.validationResult.enumValueMatch,(Qe=ze.validationResult.enumValues)!=null&&Qe.length&&(r.enumValues=(r.enumValues||[]).concat(ze.validationResult.enumValues)),i.merge(ze.matchingSchemas)),mt.length};Array.isArray(t.anyOf)&&ae(t.anyOf,!1),Array.isArray(t.oneOf)&&ae(t.oneOf,!0);const we=(pe,Se)=>{const Qe=new mi(a),mt=i.newSub();Hr(e,li(pe),Se,Qe,mt,s),r.merge(Qe),r.propertiesMatches+=Qe.propertiesMatches,r.propertiesValueMatches+=Qe.propertiesValueMatches,i.merge(mt)},Te=(pe,Se,Qe,mt)=>{const Ae=li(pe),Ne=new mi(a),ze=i.newSub();Hr(e,Ae,Se,Ne,ze,s),i.merge(ze);const{filePatternAssociation:qe}=Ae;qe&&(new jb(qe).matchesPattern(s.uri)||Ne.problems.push({location:{offset:e.offset,length:e.length},severity:Xn.Warning,message:rr("ifFilePatternAssociation",`filePatternAssociation '${qe}' does not match with doc uri '${s.uri}'.`),source:mr(t,Se),schemaUri:gr(t,Se)})),Ne.hasProblems()?mt&&we(mt,Se):Qe&&we(Qe,Se)},Ge=li(t.if);if(Ge&&Te(Ge,t,li(t.then),li(t.else)),Array.isArray(t.enum)){const pe=Oa(e);let Se=!1;for(const Qe of t.enum)if(_o(pe,Qe)||o&&Ma(pe)&&Ma(Qe)&&pe&&Qe.startsWith(pe)){Se=!0;break}r.enumValues=t.enum,r.enumValueMatch=Se,Se||r.problems.push({location:{offset:e.offset,length:e.length},severity:Xn.Warning,code:Gi.EnumValueMismatch,message:t.errorMessage||rr("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map(Qe=>JSON.stringify(Qe)).join(", ")),source:mr(t,n),schemaUri:gr(t,n)})}if(Hs(t.const)){const pe=Oa(e);!_o(pe,t.const)&&!(o&&Ma(pe)&&Ma(t.const)&&t.const.startsWith(pe))?(r.problems.push({location:{offset:e.offset,length:e.length},severity:Xn.Warning,code:Gi.EnumValueMismatch,problemType:ui.constWarning,message:t.errorMessage||Mu(ui.constWarning,[JSON.stringify(t.const)]),source:mr(t,n),schemaUri:gr(t,n),problemArgs:[JSON.stringify(t.const)]}),r.enumValueMatch=!1):r.enumValueMatch=!0,r.enumValues=[t.const]}t.deprecationMessage&&e.parent&&r.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:Xn.Warning,message:t.deprecationMessage,source:mr(t,n),schemaUri:gr(t,n)})}function l(ne,O,ae){const we=ne.value;Ii(O.multipleOf)&&we%O.multipleOf!==0&&ae.problems.push({location:{offset:ne.offset,length:ne.length},severity:Xn.Warning,message:rr("multipleOfWarning","Value is not divisible by {0}.",O.multipleOf),source:mr(O,n),schemaUri:gr(O,n)});function Te(Ae,Ne){if(Ii(Ne))return Ne;if(Ba(Ne)&&Ne)return Ae}function Ge(Ae,Ne){if(!Ba(Ne)||!Ne)return Ae}const pe=Te(O.minimum,O.exclusiveMinimum);Ii(pe)&&we<=pe&&ae.problems.push({location:{offset:ne.offset,length:ne.length},severity:Xn.Warning,message:rr("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",pe),source:mr(O,n),schemaUri:gr(O,n)});const Se=Te(O.maximum,O.exclusiveMaximum);Ii(Se)&&we>=Se&&ae.problems.push({location:{offset:ne.offset,length:ne.length},severity:Xn.Warning,message:rr("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",Se),source:mr(O,n),schemaUri:gr(O,n)});const Qe=Ge(O.minimum,O.exclusiveMinimum);Ii(Qe)&&we<Qe&&ae.problems.push({location:{offset:ne.offset,length:ne.length},severity:Xn.Warning,message:rr("minimumWarning","Value is below the minimum of {0}.",Qe),source:mr(O,n),schemaUri:gr(O,n)});const mt=Ge(O.maximum,O.exclusiveMaximum);Ii(mt)&&we>mt&&ae.problems.push({location:{offset:ne.offset,length:ne.length},severity:Xn.Warning,message:rr("maximumWarning","Value is above the maximum of {0}.",mt),source:mr(O,n),schemaUri:gr(O,n)})}function C(ne,O,ae){if(Ii(O.minLength)&&ne.value.length<O.minLength&&ae.problems.push({location:{offset:ne.offset,length:ne.length},severity:Xn.Warning,message:rr("minLengthWarning","String is shorter than the minimum length of {0}.",O.minLength),source:mr(O,n),schemaUri:gr(O,n)}),Ii(O.maxLength)&&ne.value.length>O.maxLength&&ae.problems.push({location:{offset:ne.offset,length:ne.length},severity:Xn.Warning,message:rr("maxLengthWarning","String is longer than the maximum length of {0}.",O.maxLength),source:mr(O,n),schemaUri:gr(O,n)}),Ma(O.pattern)&&(q0(O.pattern).test(ne.value)||ae.problems.push({location:{offset:ne.offset,length:ne.length},severity:Xn.Warning,message:O.patternErrorMessage||O.errorMessage||rr("patternWarning",'String does not match the pattern of "{0}".',O.pattern),source:mr(O,n),schemaUri:gr(O,n)})),O.format)switch(O.format){case"uri":case"uri-reference":{let we;if(!ne.value)we=rr("uriEmpty","URI expected.");else try{!Ai.parse(ne.value).scheme&&O.format==="uri"&&(we=rr("uriSchemeMissing","URI with a scheme is expected."))}catch(Te){we=Te.message}we&&ae.problems.push({location:{offset:ne.offset,length:ne.length},severity:Xn.Warning,message:O.patternErrorMessage||O.errorMessage||rr("uriFormatWarning","String is not a URI: {0}",we),source:mr(O,n),schemaUri:gr(O,n)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":case"ipv4":case"ipv6":{const we=ob[O.format];(!ne.value||!we.pattern.test(ne.value))&&ae.problems.push({location:{offset:ne.offset,length:ne.length},severity:Xn.Warning,message:O.patternErrorMessage||O.errorMessage||we.errorMessage,source:mr(O,n),schemaUri:gr(O,n)})}break}}function c(ne,O,ae,we){if(Array.isArray(O.items)){const Ge=O.items;for(let pe=0;pe<Ge.length;pe++){const Se=Ge[pe],Qe=li(Se),mt=new mi(a),Ae=ne.items[pe];Ae?(Hr(Ae,Qe,O,mt,we,s),ae.mergePropertyMatch(mt),ae.mergeEnumValues(mt)):ne.items.length>=Ge.length&&ae.propertiesValueMatches++}if(ne.items.length>Ge.length)if(typeof O.additionalItems=="object")for(let pe=Ge.length;pe<ne.items.length;pe++){const Se=new mi(a);Hr(ne.items[pe],O.additionalItems,O,Se,we,s),ae.mergePropertyMatch(Se),ae.mergeEnumValues(Se)}else O.additionalItems===!1&&ae.problems.push({location:{offset:ne.offset,length:ne.length},severity:Xn.Warning,message:rr("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",Ge.length),source:mr(O,n),schemaUri:gr(O,n)})}else{const Ge=li(O.items);if(Ge){const pe=new mi(a);ne.items.forEach(Se=>{if(Ge.oneOf&&Ge.oneOf.length===1){const Qe=Ge.oneOf[0],mt={...li(Qe)};mt.title=O.title,mt.closestTitle=O.closestTitle,Hr(Se,mt,O,pe,we,s),ae.mergePropertyMatch(pe),ae.mergeEnumValues(pe)}else Hr(Se,Ge,O,pe,we,s),ae.mergePropertyMatch(pe),ae.mergeEnumValues(pe)})}}const Te=li(O.contains);if(Te&&(ne.items.some(pe=>{const Se=new mi(a);return Hr(pe,Te,O,Se,To.instance,s),!Se.hasProblems()})||ae.problems.push({location:{offset:ne.offset,length:ne.length},severity:Xn.Warning,message:O.errorMessage||rr("requiredItemMissingWarning","Array does not contain required item."),source:mr(O,n),schemaUri:gr(O,n)})),Ii(O.minItems)&&ne.items.length<O.minItems&&ae.problems.push({location:{offset:ne.offset,length:ne.length},severity:Xn.Warning,message:rr("minItemsWarning","Array has too few items. Expected {0} or more.",O.minItems),source:mr(O,n),schemaUri:gr(O,n)}),Ii(O.maxItems)&&ne.items.length>O.maxItems&&ae.problems.push({location:{offset:ne.offset,length:ne.length},severity:Xn.Warning,message:rr("maxItemsWarning","Array has too many items. Expected {0} or fewer.",O.maxItems),source:mr(O,n),schemaUri:gr(O,n)}),O.uniqueItems===!0){const Ge=Oa(ne);Ge.some((Se,Qe)=>Qe!==Ge.lastIndexOf(Se))&&ae.problems.push({location:{offset:ne.offset,length:ne.length},severity:Xn.Warning,message:rr("uniqueItemsWarning","Array has duplicate items."),source:mr(O,n),schemaUri:gr(O,n)})}}function B(ne,O,ae,we){var Te;const Ge=Object.create(null),pe=[],Se=[...ne.properties];for(;Se.length>0;){const Ae=Se.pop(),Ne=Ae.keyNode.value;if(Ne==="<<"&&Ae.valueNode)switch(Ae.valueNode.type){case"object":{Se.push(...Ae.valueNode.properties);break}case"array":{Ae.valueNode.items.forEach(ze=>{ze&&GD(ze.properties)&&Se.push(...ze.properties)});break}}else Ge[Ne]=Ae.valueNode,pe.push(Ne)}if(Array.isArray(O.required)){for(const Ae of O.required)if(Ge[Ae]===void 0){const Ne=ne.parent&&ne.parent.type==="property"&&ne.parent.keyNode,ze=Ne?{offset:Ne.offset,length:Ne.length}:{offset:ne.offset,length:1};ae.problems.push({location:ze,severity:Xn.Warning,message:Mu(ui.missingRequiredPropWarning,[Ae]),source:mr(O,n),schemaUri:gr(O,n),problemArgs:[Ae],problemType:ui.missingRequiredPropWarning})}}const Qe=Ae=>{let Ne=pe.indexOf(Ae);for(;Ne>=0;)pe.splice(Ne,1),Ne=pe.indexOf(Ae)};if(O.properties)for(const Ae of Object.keys(O.properties)){Qe(Ae);const Ne=O.properties[Ae],ze=Ge[Ae];if(ze)if(Ba(Ne))if(Ne)ae.propertiesMatches++,ae.propertiesValueMatches++;else{const qe=ze.parent;ae.problems.push({location:{offset:qe.keyNode.offset,length:qe.keyNode.length},severity:Xn.Warning,message:O.errorMessage||rr("DisallowedExtraPropWarning",tf,Ae),source:mr(O,n),schemaUri:gr(O,n)})}else{Ne.url=(Te=O.url)!=null?Te:n.url;const qe=new mi(a);Hr(ze,Ne,O,qe,we,s),ae.mergePropertyMatch(qe),ae.mergeEnumValues(qe)}}if(O.patternProperties)for(const Ae of Object.keys(O.patternProperties)){const Ne=q0(Ae);for(const ze of pe.slice(0))if(Ne.test(ze)){Qe(ze);const qe=Ge[ze];if(qe){const jt=O.patternProperties[Ae];if(Ba(jt))if(jt)ae.propertiesMatches++,ae.propertiesValueMatches++;else{const fn=qe.parent;ae.problems.push({location:{offset:fn.keyNode.offset,length:fn.keyNode.length},severity:Xn.Warning,message:O.errorMessage||rr("DisallowedExtraPropWarning",tf,ze),source:mr(O,n),schemaUri:gr(O,n)})}else{const fn=new mi(a);Hr(qe,jt,O,fn,we,s),ae.mergePropertyMatch(fn),ae.mergeEnumValues(fn)}}}}if(typeof O.additionalProperties=="object")for(const Ae of pe){const Ne=Ge[Ae];if(Ne){const ze=new mi(a);Hr(Ne,O.additionalProperties,O,ze,we,s),ae.mergePropertyMatch(ze),ae.mergeEnumValues(ze)}}else if((O.additionalProperties===!1||O.type==="object"&&O.additionalProperties===void 0&&s.disableAdditionalProperties===!0)&&pe.length>0){const Ae=O.properties&&Object.keys(O.properties).filter(Ne=>!Ge[Ne]);for(const Ne of pe){const ze=Ge[Ne];if(ze){let qe=null;ze.type!=="property"?(qe=ze.parent,qe.type==="object"&&(qe=qe.properties[0])):qe=ze;const jt={location:{offset:qe.keyNode.offset,length:qe.keyNode.length},severity:Xn.Warning,message:O.errorMessage||rr("DisallowedExtraPropWarning",tf,Ne),source:mr(O,n),schemaUri:gr(O,n)};Ae!=null&&Ae.length&&(jt.data={properties:Ae}),ae.problems.push(jt)}}}if(Ii(O.maxProperties)&&ne.properties.length>O.maxProperties&&ae.problems.push({location:{offset:ne.offset,length:ne.length},severity:Xn.Warning,message:rr("MaxPropWarning","Object has more properties than limit of {0}.",O.maxProperties),source:mr(O,n),schemaUri:gr(O,n)}),Ii(O.minProperties)&&ne.properties.length<O.minProperties&&ae.problems.push({location:{offset:ne.offset,length:ne.length},severity:Xn.Warning,message:rr("MinPropWarning","Object has fewer properties than the required number of {0}",O.minProperties),source:mr(O,n),schemaUri:gr(O,n)}),O.dependencies){for(const Ae of Object.keys(O.dependencies))if(Ge[Ae]){const ze=O.dependencies[Ae];if(Array.isArray(ze))for(const qe of ze)Ge[qe]?ae.propertiesValueMatches++:ae.problems.push({location:{offset:ne.offset,length:ne.length},severity:Xn.Warning,message:rr("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",qe,Ae),source:mr(O,n),schemaUri:gr(O,n)});else{const qe=li(ze);if(qe){const jt=new mi(a);Hr(ne,qe,O,jt,we,s),ae.mergePropertyMatch(jt),ae.mergeEnumValues(jt)}}}}const mt=li(O.propertyNames);if(mt)for(const Ae of ne.properties){const Ne=Ae.keyNode;Ne&&Hr(Ne,mt,O,ae,To.instance,s)}}function N(ne,O,ae,we){const Te=ne.compareKubernetes(O.validationResult);return Te>0?O={schema:ae,validationResult:ne,matchingSchemas:we}:Te===0&&(O.matchingSchemas.merge(we),O.validationResult.mergeEnumValues(ne)),O}function ee(ne,O,ae,we,Te,Ge){if(!O&&!ae.hasProblems()&&(!we.validationResult.hasProblems()||o))we.matchingSchemas.merge(Ge),we.validationResult.propertiesMatches+=ae.propertiesMatches,we.validationResult.propertiesValueMatches+=ae.propertiesValueMatches;else{const pe=ae.compareGeneric(we.validationResult);pe>0||pe===0&&O&&we.schema.type==="object"&&ne.type!=="null"&&ne.type!==we.schema.type?we={schema:Te,validationResult:ae,matchingSchemas:Ge}:pe===0&&(we.matchingSchemas.merge(Ge),we.validationResult.mergeEnumValues(ae),we.validationResult.mergeWarningGeneric(ae,[ui.missingRequiredPropWarning,ui.typeMismatchWarning,ui.constWarning]))}return we}}function mr(e,t){var n;if(e){let r;if(e.title)r=e.title;else if(e.closestTitle)r=e.closestTitle;else if(t.closestTitle)r=t.closestTitle;else{const i=(n=e.url)!=null?n:t.url;if(i){const s=Ai.parse(i);s.scheme==="file"&&(r=s.fsPath),r=s.toString()}}if(r)return`${K0}${r}`}return Pu}function gr(e,t){var n;const r=(n=e.url)!=null?n:t.url;return r?[r]:[]}function Mu(e,t){return rr(e,ub[e],t.join(" | "))}var yb=1e3,nf=0,rf=new Set;function ja(e,t,n,r){if(e||(nf=0),!t)return null;if(Br(t))return Db(t,e,n,r);if(hr(t))return bb(t,e,n,r);if(Mr(t))return vb(t,e,n,r);if(Jn(t))return Eb(t,e);if(ts(t)&&!rf.has(t)&&nf<yb){rf.add(t);const i=Ab(t,e,n,r);return rf.delete(t),i}else return}function Db(e,t,n,r){let i;e.flow&&!e.range?i=Cb(e):i=e.range;const s=new hb(t,e,...nm(i,r));for(const a of e.items)hr(a)&&s.properties.push(ja(s,a,n,r));return s}function bb(e,t,n,r){const i=e.key,s=e.value,a=i.range[0];let o=i.range[1],u=i.range[2];s&&(o=s.range[1],u=s.range[2]);const l=new db(t,e,...nm([a,o,u],r));if(ts(i)){const C=new Bu(t,i,...Ms(i.range));C.value=i.source,l.keyNode=C}else l.keyNode=ja(l,i,n,r);return l.valueNode=ja(l,s,n,r),l}function vb(e,t,n,r){const i=new fb(t,e,...Ms(e.range));for(const s of e.items)if(Dr(s)){const a=ja(i,s,n,r);a&&i.children.push(a)}return i}function Eb(e,t){if(e.value===null)return new lb(t,e,...Ms(e.range));switch(typeof e.value){case"string":{const n=new Bu(t,e,...Ms(e.range));return n.value=e.value,n}case"boolean":return new cb(t,e,e.value,...Ms(e.range));case"number":{const n=new pb(t,e,...Ms(e.range));return n.value=e.value,n.isInteger=Number.isInteger(n.value),n}default:{const n=new Bu(t,e,...Ms(e.range));return n.value=e.source,n}}}function Ab(e,t,n,r){nf++;const i=e.resolve(n);if(i)return ja(t,i,n,r);{const s=new Bu(t,e,...Ms(e.range));return s.value=e.source,s}}function Ms(e){return[e[0],e[1]-e[0]]}function nm(e,t){const n=t.linePos(e[0]),r=t.linePos(e[1]),i=[e[0],e[1]-e[0]];return n.line!==r.line&&(t.lineStarts.length!==r.line||r.col===1)&&i[1]--,i}function Cb(e){let t=Number.MAX_SAFE_INTEGER,n=0;for(const r of e.items)hr(r)&&(Dr(r.key)&&r.key.range&&r.key.range[0]<=t&&(t=r.key.range[0]),Dr(r.value)&&r.value.range&&r.value.range[2]>=n&&(n=r.value.range[2]));return[t,n,n]}function Sb(e,t){let n;if(Nr(e,(r,i,s)=>{if(i===t)return n=s[s.length-1],Nr.BREAK}),!yo(n))return n}function xb(e){if(e.items.length>1)return!1;const t=e.items[0];return Jn(t.key)&&Jn(t.value)&&t.key.value===""&&!t.value.value}function wb(e,t){for(const[n,r]of e.items.entries())if(t===r)return n}function Fb(e,t){let n=!1;for(const r of e){if(r.type==="document")sf([],r,i=>{var s;if(rm(i)&&((s=i.value)==null?void 0:s.type)==="comment"){if(r.offset<=t&&i.value.source.length+i.value.offset>=t)return n=!0,Nr.BREAK}else if(i.type==="comment"&&i.offset<=t&&i.offset+i.source.length>=t)return n=!0,Nr.BREAK});else if(r.type==="comment"&&r.offset<=t&&r.source.length+r.offset>=t)return!0;if(n)break}return n}function rm(e){return e.start!==void 0}function sf(e,t,n){let r=n(t,e);if(typeof r=="symbol")return r;for(const s of["key","value"]){const a=t[s];if(a&&"items"in a){for(let o=0;o<a.items.length;++o){const u=sf(Object.freeze(e.concat([[s,o]])),a.items[o],n);if(typeof u=="number")o=u-1;else{if(u===Nr.BREAK)return Nr.BREAK;u===Nr.REMOVE&&(a.items.splice(o,1),o-=1)}}typeof r=="function"&&s==="key"&&(r=r(t,e))}}const i=t.sep;if(i)for(let s=0;s<i.length;++s){const a=sf(Object.freeze(e),i[s],n);if(typeof a=="number")s=a-1;else{if(a===Nr.BREAK)return Nr.BREAK;a===Nr.REMOVE&&(i.items.splice(s,1),s-=1)}}return typeof r=="function"?r(t,e):r}var im=class eg extends gb{constructor(t){super(null,[]),this.lineCounter=t}clone(){const t=new eg(this.lineCounter);return t.isKubernetes=this.isKubernetes,t.disableAdditionalProperties=this.disableAdditionalProperties,t.uri=this.uri,t.currentDocIndex=this.currentDocIndex,t._lineComments=this.lineComments.slice(),t.internalDocument=this._internalDocument.clone(),t}collectLineComments(){this._lineComments=[],this._internalDocument.commentBefore&&this._internalDocument.commentBefore.split(`
408
- `).forEach(n=>this._lineComments.push(`#${n}`)),Nr(this.internalDocument,(t,n)=>{n!=null&&n.commentBefore&&(n==null?void 0:n.commentBefore.split(`
409
- `)).forEach(i=>this._lineComments.push(`#${i}`)),n!=null&&n.comment&&this._lineComments.push(`#${n.comment}`)}),this._internalDocument.comment&&this._lineComments.push(`#${this._internalDocument.comment}`)}updateFromInternalDocument(){this.root=ja(null,this._internalDocument.contents,this._internalDocument,this.lineCounter)}set internalDocument(t){this._internalDocument=t,this.updateFromInternalDocument()}get internalDocument(){return this._internalDocument}get lineComments(){return this._lineComments||this.collectLineComments(),this._lineComments}set lineComments(t){this._lineComments=t}get errors(){return this.internalDocument.errors.map(am)}get warnings(){return this.internalDocument.warnings.map(am)}getNodeFromPosition(t,n,r){const i=n.getPosition(t),s=n.getLineContent(i.line);if(s.trim().length===0)return[this.findClosestNode(t,n,r),!0];const o=s.substring(i.character).match(/^([ ]+)\n?$/),u=!!o,l=o==null?void 0:o[1].length;let C;return Nr(this.internalDocument,(c,B)=>{if(!B)return;const N=B.range;if(!N)return;const ee=()=>u&&t+l===N[2]&&Jn(B)&&B.value===null;if(N[0]<=t&&N[1]>=t||ee())C=B;else return Nr.SKIP}),[C,!1]}findClosestNode(t,n,r){let i=this.internalDocument.range[2],s=this.internalDocument.range[0],a;Nr(this.internalDocument,(C,c)=>{if(!c)return;const B=c.range;if(!B)return;const N=B[1]-t;s<=B[0]&&N<=0&&Math.abs(N)<=i&&(i=Math.abs(N),s=B[0],a=c)});const o=n.getPosition(t),u=n.getLineContent(o.line),l=UD(u,o.character);return Jn(a)&&a.value===null||l===o.character&&(a=this.getProperParentByIndentation(l,a,n,"",r)),a}getProperParentByIndentation(t,n,r,i,s,a){if(!n)return this.internalDocument.contents;if(s=s||2,Dr(n)&&n.range){const o=r.getPosition(n.range[0]),u=r.getLineContent(o.line);if(i=i===""?u.trim():i,i.startsWith("-")&&t===s&&i===u.trim()&&(o.character+=t),o.character>t&&o.character>0){const l=this.getParent(n);if(l)return this.getProperParentByIndentation(t,l,r,i,s,a)}else if(o.character<t){const l=this.getParent(n);if(hr(l)&&Dr(l.value))return l.value;if(hr(a)&&Dr(a.value))return a.value}else return n}else if(hr(n)){a=n;const o=this.getParent(n);return this.getProperParentByIndentation(t,o,r,i,s,a)}return n}getParent(t){return Sb(this.internalDocument,t)}},sm=class{constructor(e,t){this.documents=e,this.tokens=t,this.errors=[],this.warnings=[]}},Nb=class{constructor(){this.cache=new Map}getYamlDocument(e,t,n=!1){return this.ensureCache(e,t??Iu,n),this.cache.get(e.uri).document}clear(){this.cache.clear()}ensureCache(e,t,n){const r=e.uri;this.cache.has(r)||this.cache.set(r,{version:-1,document:new sm([],[]),parserOptions:Iu});const i=this.cache.get(r);if(i.version!==e.version||t.customTags&&!X0(i.parserOptions.customTags,t.customTags)){let s=e.getText();n&&!/\S/.test(s)&&(s=`{${s}}`);const a=Lb(s,t,e);i.document=a,i.version=e.version,i.parserOptions=t}}},Yi=new Nb;function am(e){return{message:e.message,location:{start:e.pos[0],end:e.pos[1],toLineEnd:!0},severity:1,code:Gi.Undefined}}var _b=class{constructor(e,t){this.tag=e,this.type=t}get collection(){if(this.type==="mapping")return"map";if(this.type==="sequence")return"seq"}resolve(e){if(Br(e)&&this.type==="mapping"||Mr(e)&&this.type==="sequence"||typeof e=="string"&&this.type==="scalar")return e}},Tb=class{constructor(){this.tag="!include",this.type="scalar"}resolve(e,t){if(e&&e.length>0&&e.trim())return e;t("!include without value")}};function kb(e){const t=[],n=Q0(e);for(const r of n){const i=r.split(" "),s=i[0],a=i[1]&&i[1].toLowerCase()||"scalar";t.push(new _b(s,a))}return t.push(new Tb),t}var Qs=class{constructor(e){this.doc=e}getLineCount(){return this.doc.lineCount}getLineLength(e){const t=this.doc.getLineOffsets();return e>=t.length?this.doc.getText().length:e<0?0:(e+1<t.length?t[e+1]:this.doc.getText().length)-t[e]}getLineContent(e){const t=this.doc.getLineOffsets();if(e>=t.length)return this.doc.getText();if(e<0)return"";const n=e+1<t.length?t[e+1]:this.doc.getText().length;return this.doc.getText().substring(t[e],n)}getLineCharCode(e,t){return this.doc.getText(Rn.create(e-1,t,e-1,t+1)).charCodeAt(0)}getText(e){return this.doc.getText(e)}getPosition(e){return this.doc.positionAt(e)}},Iu={customTags:[],yamlVersion:"1.2"};function Lb(e,t=Iu,n){var r;const i={strict:!1,customTags:kb(t.customTags),version:(r=t.yamlVersion)!=null?r:Iu.yamlVersion,keepSourceTokens:!0},s=new A0(i),a=new T0;let o=!1;if(n){const N=new Qs(n),ee=N.getPosition(e.length);o=N.getLineContent(ee.line).trim().length===0}const l=(o?new zc:new zc(a.addNewLine)).parse(e),C=Array.from(l),c=s.compose(C,!0,e.length),B=Array.from(c,N=>Pb(N,a));return new sm(B,C)}function Pb(e,t){const n=new im(t);return n.internalDocument=e,n}function Bb(e){if(e instanceof im){const t=e.lineComments.find(n=>af(n));if(t!=null){const n=t.match(/\$schema=\S+/g);if(n!==null&&n.length>=1)return n.length>=2&&console.log("Several $schema attributes have been found on the yaml-language-server modeline. The first one will be picked."),n[0].substring(8)}}}function af(e){const t=e.match(/^#\s+yaml-language-server\s*:/g);return t!==null&&t.length===1}var Mb=class{compile(){return()=>!0}},Ou=Gs(),Ib=new Mb,Ob=void 0,om=Ib.compile(Ob),um;(function(e){e[e.delete=0]="delete",e[e.add=1]="add",e[e.deleteAll=2]="deleteAll"})(um||(um={}));var jb=class{constructor(e){try{this.patternRegExp=new RegExp(qD(e)+"$")}catch{this.patternRegExp=null}this.schemas=[]}addSchema(e){this.schemas.push(e)}matchesPattern(e){return this.patternRegExp&&this.patternRegExp.test(e)}getSchemas(){return this.schemas}},Rb=class extends RD{constructor(e,t,n){super(e,t,n),this.schemaUriToNameAndDescription=new Map,this.customSchemaProvider=void 0,this.requestService=e,this.schemaPriorityMapping=new Map}registerCustomSchemaProvider(e){this.customSchemaProvider=e}getAllSchemas(){const e=[],t=new Set;for(const n of this.filePatternAssociations){const r=n.uris[0];if(t.has(r))continue;t.add(r);const i={uri:r,fromStore:!1,usedForCurrentFile:!1};if(this.schemaUriToNameAndDescription.has(r)){const{name:s,description:a,versions:o}=this.schemaUriToNameAndDescription.get(r);i.name=s,i.description=a,i.fromStore=!0,i.versions=o}e.push(i)}return e}async resolveSchemaContent(e,t,n){const r=e.errors.slice(0);let i=e.schema;const s=this.contextService;if(!om(i)){const C=[];for(const c of om.errors)C.push(`${c.instancePath} : ${c.message}`);r.push(`Schema '${W0(e.schema,t)}' is not valid:
410
- ${C.join(`
411
- `)}`)}const a=(C,c)=>{if(!c)return C;let B=C;return c[0]==="/"&&(c=c.substr(1)),c.split("/").some(N=>(B=B[N],!B)),B},o=(C,c,B,N)=>{const ee=a(c,N);if(ee)for(const ne in ee)Object.prototype.hasOwnProperty.call(ee,ne)&&!Object.prototype.hasOwnProperty.call(C,ne)&&(C[ne]=ee[ne]);else r.push(Ou("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",N,B))},u=(C,c,B,N,ee)=>{s&&!/^\w+:\/\/.*/.test(c)&&(c=s.resolveRelativePath(c,N)),c=this.normalizeId(c);const ne=this.getOrAddSchemaHandle(c);return ne.getUnresolvedSchema().then(O=>{if(ee[c]=!0,O.errors.length){const ae=B?c+"#"+B:c;r.push(Ou("json.schema.problemloadingref","Problems loading reference '{0}': {1}",ae,O.errors[0]))}return o(C,O.schema,c,B),C.url=c,l(C,O.schema,c,ne.dependencies)})},l=async(C,c,B,N)=>{if(!C||typeof C!="object")return null;const ee=[C],ne=[],O=[],ae=(...pe)=>{for(const Se of pe)typeof Se=="object"&&ee.push(Se)},we=(...pe)=>{for(const Se of pe)if(typeof Se=="object")for(const Qe in Se){const mt=Se[Qe];typeof mt=="object"&&ee.push(mt)}},Te=(...pe)=>{for(const Se of pe)if(Array.isArray(Se))for(const Qe of Se)typeof Qe=="object"&&ee.push(Qe)},Ge=pe=>{const Se=[];for(;pe.$ref;){const Qe=pe.$ref,mt=Qe.split("#",2);if(pe._$ref=pe.$ref,delete pe.$ref,mt[0].length>0){O.push(u(pe,mt[0],mt[1],B,N));return}else Se.indexOf(Qe)===-1&&(o(pe,c,B,mt[1]),Se.push(Qe))}ae(pe.items,pe.additionalItems,pe.additionalProperties,pe.not,pe.contains,pe.propertyNames,pe.if,pe.then,pe.else),we(pe.definitions,pe.properties,pe.patternProperties,pe.dependencies),Te(pe.anyOf,pe.allOf,pe.oneOf,pe.items,pe.schemaSequence)};if(B.indexOf("#")>0){const pe=B.split("#",2);if(pe[0].length>0&&pe[1].length>0){const Se={};await u(Se,pe[0],pe[1],B,N);for(const Qe in i)Qe!=="required"&&Object.prototype.hasOwnProperty.call(i,Qe)&&!Object.prototype.hasOwnProperty.call(Se,Qe)&&(Se[Qe]=i[Qe]);i=Se}}for(;ee.length;){const pe=ee.pop();ne.indexOf(pe)>=0||(ne.push(pe),Ge(pe))}return Promise.all(O)};return await l(i,i,t,n),new No(i,r)}getSchemaForResource(e,t){const n=()=>{let a=Bb(t);if(a!==void 0){if(!a.startsWith("file:")&&!a.startsWith("http")){let o="";if(a.indexOf("#")>0){const u=a.split("#",2);a=u[0],o=u[1]}if(Ws.isAbsolute(a))a=Ai.file(a).toString();else{const u=Ai.parse(e);a=Ai.file(Ws.resolve(Ws.parse(u.fsPath).dir,a)).toString()}o.length>0&&(a+="#"+o)}return a}},r=a=>{const o=super.createCombinedSchema(e,a);return o.getResolvedSchema().then(u=>(u.schema&&typeof u.schema=="object"&&(u.schema.url=o.url),u.schema&&u.schema.schemaSequence&&u.schema.schemaSequence[t.currentDocIndex]?new No(u.schema.schemaSequence[t.currentDocIndex]):u))},i=()=>{const a=Object.create(null),o=[];for(const u of this.filePatternAssociations)if(u.matchesPattern(e))for(const l of u.getURIs())a[l]||(o.push(l),a[l]=!0);if(o.length>0){const u=this.highestPrioritySchemas(o);return r(u)}return Promise.resolve(null)},s=n();return s?r([s]):this.customSchemaProvider?this.customSchemaProvider(e).then(a=>Array.isArray(a)?a.length===0?i():Promise.all(a.map(o=>this.resolveCustomSchema(o,t))).then(o=>({errors:[],schema:{allOf:o.map(u=>u.schema)}}),()=>i()):a?this.resolveCustomSchema(a,t):i()).then(a=>a,()=>i()):i()}addSchemaPriority(e,t){let n=this.schemaPriorityMapping.get(e);n?(n=n.add(t),this.schemaPriorityMapping.set(e,n)):this.schemaPriorityMapping.set(e,new Set().add(t))}highestPrioritySchemas(e){let t=0;const n=new Map;return e.forEach(r=>{(this.schemaPriorityMapping.get(r)||[0]).forEach(s=>{s>t&&(t=s);let a=n.get(s);a?(a=a.concat(r),n.set(s,a)):n.set(s,[r])})}),n.get(t)||[]}async resolveCustomSchema(e,t){const n=await this.loadSchema(e),r=await this.resolveSchemaContent(n,e,[]);return r.schema&&typeof r.schema=="object"&&(r.schema.url=e),r.schema&&r.schema.schemaSequence&&r.schema.schemaSequence[t.currentDocIndex]?new No(r.schema.schemaSequence[t.currentDocIndex],r.errors):r}async saveSchema(e,t){const n=this.normalizeId(e);return this.getOrAddSchemaHandle(n,t),this.schemaPriorityMapping.set(n,new Set().add(uf.Settings)),Promise.resolve(void 0)}async deleteSchemas(e){return e.schemas.forEach(t=>{this.deleteSchema(t)}),Promise.resolve(void 0)}async deleteSchema(e){const t=this.normalizeId(e);return this.schemasById[t]&&delete this.schemasById[t],this.schemaPriorityMapping.delete(t),Promise.resolve(void 0)}async addContent(e){const t=await this.getResolvedSchema(e.schema);if(t){const n=this.resolveJSONSchemaToSection(t.schema,e.path);typeof n=="object"&&(n[e.key]=e.content),await this.saveSchema(e.schema,t.schema)}}async deleteContent(e){const t=await this.getResolvedSchema(e.schema);if(t){const n=this.resolveJSONSchemaToSection(t.schema,e.path);typeof n=="object"&&delete n[e.key],await this.saveSchema(e.schema,t.schema)}}resolveJSONSchemaToSection(e,t){const n=t.split("/");let r=e;for(const i of n)i!==""&&(this.resolveNext(r,i),r=r[i]);return r}resolveNext(e,t){if(Array.isArray(e)&&isNaN(t))throw new Error("Expected a number after the array object");if(typeof e=="object"&&typeof t!="string")throw new Error("Expected a string after the object")}normalizeId(e){try{return Ai.parse(e).toString()}catch{return e}}getOrAddSchemaHandle(e,t){return super.getOrAddSchemaHandle(e,t)}loadSchema(e){const t=this.requestService;return super.loadSchema(e).then(n=>{if(n.errors&&n.schema===void 0)return t(e).then(r=>{if(!r){const i=Ou("json.schema.nocontent","Unable to load schema from '{0}': No content. {1}",lm(e),n.errors);return new Ji({},[i])}try{const i=SD(r);return new Ji(i,[])}catch(i){const s=Ou("json.schema.invalidFormat","Unable to parse content from '{0}': {1}.",lm(e),i);return new Ji({},[s])}},r=>{let i=r.toString();const s=r.toString().split("Error: ");return s.length>1&&(i=s[1]),new Ji({},[i])});if(n.uri=e,this.schemaUriToNameAndDescription.has(e)){const{name:r,description:i,versions:s}=this.schemaUriToNameAndDescription.get(e);n.schema.title=r??n.schema.title,n.schema.description=i??n.schema.description,n.schema.versions=s??n.schema.versions}return n})}registerExternalSchema(e,t,n,r,i,s){return(r||i)&&this.schemaUriToNameAndDescription.set(e,{name:r,description:i,versions:s}),super.registerExternalSchema(e,t,n)}clearExternalSchemas(){super.clearExternalSchemas()}setSchemaContributions(e){super.setSchemaContributions(e)}getRegisteredSchemaIds(e){return super.getRegisteredSchemaIds(e)}getResolvedSchema(e){return super.getResolvedSchema(e)}onResourceChange(e){return super.onResourceChange(e)}};function lm(e){try{const t=Ai.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}var $b=class{constructor(e,t){this.telemetry=t,this.jsonDocumentSymbols=new eb(e),this.jsonDocumentSymbols.getKeyLabel=n=>{const r=n.keyNode.internalNode;let i="";return Br(r)?i="{}":Mr(r)?i="[]":i=r.source,i}}findDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){var n;let r=[];try{const i=Yi.getYamlDocument(e);if(!i||i.documents.length===0)return null;for(const s of i.documents)s.root&&(r=r.concat(this.jsonDocumentSymbols.findDocumentSymbols(e,s,t)))}catch(i){(n=this.telemetry)==null||n.sendError("yaml.documentSymbols.error",{error:fs(i)})}return r}findHierarchicalDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){var n;let r=[];try{const i=Yi.getYamlDocument(e);if(!i||i.documents.length===0)return null;for(const s of i.documents)s.root&&(r=r.concat(this.jsonDocumentSymbols.findDocumentSymbols2(e,s,t)))}catch(i){(n=this.telemetry)==null||n.sendError("yaml.hierarchicalDocumentSymbols.error",{error:fs(i)})}return r}};function cm(e,t){for(const n of e)n.isKubernetes=t}var Vb=class{constructor(e,t){this.telemetry=t,this.shouldHover=!0,this.schemaService=e}configure(e){e&&(this.shouldHover=e.hover,this.indentation=e.indentation)}doHover(e,t,n=!1){var r;try{if(!this.shouldHover||!e)return Promise.resolve(void 0);const i=Yi.getYamlDocument(e),s=e.offsetAt(t),a=Lu(s,i);if(a===null)return Promise.resolve(void 0);cm(i.documents,n);const o=i.documents.indexOf(a);return a.currentDocIndex=o,this.getHover(e,t,a)}catch(i){(r=this.telemetry)==null||r.sendError("yaml.hover.error",{error:fs(i)})}}getHover(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 Promise.resolve(null);const s=i;if(i.type==="string"){const l=i.parent;if(l&&l.type==="property"&&l.keyNode===i&&(i=l.valueNode,!i))return Promise.resolve(null)}const a=Rn.create(e.positionAt(s.offset),e.positionAt(s.offset+s.length)),o=l=>{if(this.indentation!==void 0){const B=new RegExp(` {${this.indentation.length}}`,"g");l=l.replace(B,"&emsp;")}return{contents:{kind:os.Markdown,value:l},range:a}},u=l=>l.replace(/\|\|\s*$/,"");return this.schemaService.getSchemaForResource(e.uri,n).then(l=>{if(l&&i&&!l.errors.length){const C=n.getMatchingSchemas(l.schema,i.offset);let c,B,N,ee;const ne=[];C.every(ae=>{if((ae.node===i||i.type==="property"&&i.valueNode===ae.node)&&!ae.inverted&&ae.schema){if(c=c||ae.schema.title||ae.schema.closestTitle,B=B||ae.schema.markdownDescription||ju(ae.schema.description),ae.schema.enum){const we=ae.schema.enum.indexOf(Oa(i));ae.schema.markdownEnumDescriptions?N=ae.schema.markdownEnumDescriptions[we]:ae.schema.enumDescriptions&&(N=ju(ae.schema.enumDescriptions[we])),N&&(ee=ae.schema.enum[we],typeof ee!="string"&&(ee=JSON.stringify(ee)))}ae.schema.anyOf&&Wb(i,C,ae.schema)&&(c="",B="",ae.schema.anyOf.forEach((we,Te)=>{c+=we.title||ae.schema.closestTitle||"",B+=we.markdownDescription||ju(we.description)||"",Te!==ae.schema.anyOf.length-1&&(c+=" || ",B+=" || ")}),c=u(c),B=u(B)),ae.schema.examples&&ae.schema.examples.forEach(we=>{ne.push(JSON.stringify(we,null,2))})}return!0});let O="";return c&&(O="#### "+ju(c)),B&&(O.length>0&&(O+=`
412
-
413
- `),O+=B),N&&(O.length>0&&(O+=`
414
-
415
- `),O+=`\`${Ub(ee)}\`: ${N}`),ne.length!==0&&(O.length>0&&(O+=`
416
-
417
- `),O+="Examples:",ne.forEach(ae=>{O+=`
418
-
419
- \`\`\`${ae}\`\`\``})),O.length>0&&l.schema.url&&(O+=`
420
-
421
- Source: [${qb(l.schema)}](${l.schema.url})`),o(O)}return null})}};function qb(e){let t="JSON Schema";const n=e.url;if(n){const r=Ai.parse(n);t=Ws.basename(r.fsPath)}else e.title&&(t=e.title);return t}function ju(e){if(e)return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
422
-
423
- $3`).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function Ub(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}function Wb(e,t,n){let r=0;for(const i of t)e===i.node&&i.schema!==n&&n.anyOf.forEach(s=>{i.schema.title===s.title&&i.schema.description===s.description&&i.schema.properties===s.properties&&r++});return r===n.anyOf.length}var Gb=class{validate(e,t){const n=[],r=new Set,i=new Set,s=new Map;Nr(t.internalDocument,(a,o,u)=>{Dr(o)&&((Pr(o)||Jn(o))&&o.anchor&&(r.add(o),s.set(o,u[u.length-1])),ts(o)&&i.add(o.resolve(t.internalDocument)))});for(const a of r)if(!i.has(a)){const o=this.getAnchorNode(s.get(a),a);if(o){const u=Rn.create(e.positionAt(o.offset),e.positionAt(o.offset+o.source.length)),l=Ci.create(u,`Unused anchor "${o.source}"`,Xn.Hint,0);l.tags=[fc.Unnecessary],n.push(l)}}return n}getAnchorNode(e,t){if(e&&e.srcToken){const n=e.srcToken;if(rm(n))return fm(n);if(yD(n))for(const r of n.items){if(t.srcToken!==r.value)continue;const i=fm(r);if(i)return i}}}};function fm(e){for(const t of e.start)if(t.type==="anchor")return t;if(e.sep&&Array.isArray(e.sep)){for(const t of e.sep)if(t.type==="anchor")return t}}var Jb=class{constructor(e){this.forbidMapping=e.flowMapping==="forbid",this.forbidSequence=e.flowSequence==="forbid"}validate(e,t){const n=[];return Nr(t.internalDocument,(r,i)=>{var s,a;this.forbidMapping&&Br(i)&&((s=i.srcToken)==null?void 0:s.type)==="flow-collection"&&n.push(Ci.create(this.getRangeOf(e,i.srcToken),"Flow style mapping is forbidden",Xn.Error,"flowMap")),this.forbidSequence&&Mr(i)&&((a=i.srcToken)==null?void 0:a.type)==="flow-collection"&&n.push(Ci.create(this.getRangeOf(e,i.srcToken),"Flow style sequence is forbidden",Xn.Error,"flowSeq"))}),n}getRangeOf(e,t){return Rn.create(e.positionAt(t.start.offset),e.positionAt(t.end.pop().offset))}},Yb=class{validate(e,t){const n=[];return Nr(t.internalDocument,(r,i)=>{if(Br(i)){for(let s=1;s<i.items.length;s++)if(zb(i.items[s-1],i.items[s])>0){const a=Hb(e,i.items[s-1]);n.push(Ci.create(a,`Wrong ordering of key "${i.items[s-1].key}" in mapping`,Xn.Error,"mapKeyOrder"))}}}),n}};function Hb(e,t){var n,r,i,s,a,o,u,l,C,c,B;const N=(o=(i=(n=t==null?void 0:t.srcToken.start[0])==null?void 0:n.offset)!=null?i:(r=t==null?void 0:t.srcToken)==null?void 0:r.key.offset)!=null?o:(a=(s=t==null?void 0:t.srcToken)==null?void 0:s.sep[0])==null?void 0:a.offset,ee=((u=t==null?void 0:t.srcToken)==null?void 0:u.value.offset)||((C=(l=t==null?void 0:t.srcToken)==null?void 0:l.sep[0])==null?void 0:C.offset)||((c=t==null?void 0:t.srcToken)==null?void 0:c.key.offset)||((B=t==null?void 0:t.srcToken.start[t.srcToken.start.length-1])==null?void 0:B.offset);return Rn.create(e.positionAt(N),e.positionAt(ee))}function zb(e,t){const n=String(t.key);return String(e.key).localeCompare(n)}var Qb=(e,t)=>{const n=t.positionAt(e.location.start),r={start:n,end:e.location.toLineEnd?Yr.create(n.line,new Qs(t).getLineLength(n.line)):t.positionAt(e.location.end)};return Ci.create(r,e.message,e.severity,e.code,Pu)},Xb=class{constructor(e,t){this.telemetry=t,this.validators=[],this.MATCHES_MULTIPLE="Matches multiple schemas when only one must validate.",this.validationEnabled=!0,this.jsonValidation=new HD(e,Promise)}configure(e){this.validators=[],e&&(this.validationEnabled=e.validate,this.customTags=e.customTags,this.disableAdditionalProperties=e.disableAdditionalProperties,this.yamlVersion=e.yamlVersion,(e.flowMapping==="forbid"||e.flowSequence==="forbid")&&this.validators.push(new Jb(e)),e.keyOrdering&&this.validators.push(new Yb)),this.validators.push(new Gb)}async doValidation(e,t=!1){var n;if(!this.validationEnabled)return Promise.resolve([]);const r=[];try{const o=Yi.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0);let u=0;for(const l of o.documents){l.isKubernetes=t,l.currentDocIndex=u,l.disableAdditionalProperties=this.disableAdditionalProperties,l.uri=e.uri;const C=await this.jsonValidation.doValidation(e,l),c=l;c.errors.length>0&&r.push(...c.errors),c.warnings.length>0&&r.push(...c.warnings),r.push(...C),r.push(...this.runAdditionalValidators(e,l)),u++}}catch(o){(n=this.telemetry)==null||n.sendError("yaml.validation.error",{error:fs(o)})}let i;const s=new Set,a=[];for(let o of r){if(t&&o.message===this.MATCHES_MULTIPLE)continue;if(Object.prototype.hasOwnProperty.call(o,"location")&&(o=Qb(o,e)),o.source||(o.source=Pu),i&&i.message===o.message&&i.range.end.line===o.range.start.line&&Math.abs(i.range.end.character-o.range.end.character)>=1){i.range.end=o.range.end;continue}else i=o;const u=o.range.start.line+" "+o.range.start.character+" "+o.message;s.has(u)||(a.push(o),s.add(u))}return a}runAdditionalValidators(e,t){const n=[];for(const r of this.validators)n.push(...r.validate(e,t));return n}},Kb=class{constructor(){this.formatterEnabled=!0}configure(e){e&&(this.formatterEnabled=e.format)}format(e,t){if(!this.formatterEnabled)return[];try{const n=e.getText(),r={parser:"yaml",plugins:[_D],tabWidth:t.tabWidth||t.tabSize,singleQuote:t.singleQuote,bracketSpacing:t.bracketSpacing,proseWrap:t.proseWrap==="always"?"always":t.proseWrap==="never"?"never":"preserve",printWidth:t.printWidth},i=FD.format(n,r);return[Sr.replace(Rn.create(Yr.create(0,0),e.positionAt(n.length)),i)]}catch{return[]}}},Zb=class{constructor(e){this.telemetry=e}findLinks(e){var t;try{const n=Yi.getYamlDocument(e),r=[];for(const i of n.documents)r.push(nb(e,i));return Promise.all(r).then(i=>[].concat(...i))}catch(n){(t=this.telemetry)==null||t.sendError("yaml.documentLink.error",{error:fs(n)})}}};function ev(e,t){if(!e)return;const n=[],r=Yi.getYamlDocument(e);for(const s of r.documents)r.documents.length>1&&n.push(Ru(e,s.root)),s.visit(a=>{var o;if(a.type==="object"&&((o=a.parent)==null?void 0:o.type)==="array"&&n.push(Ru(e,a)),a.type==="property"&&a.valueNode)switch(a.valueNode.type){case"array":case"object":n.push(Ru(e,a));break;case"string":{const u=e.positionAt(a.offset),l=e.positionAt(a.valueNode.offset+a.valueNode.length);u.line!==l.line&&n.push(Ru(e,a));break}default:return!0}return!0});const i=t&&t.rangeLimit;return typeof i!="number"||n.length<=i?n:(t&&t.onRangeLimitExceeded&&t.onRangeLimitExceeded(e.uri),n.slice(0,t.rangeLimit))}function Ru(e,t){const n=e.positionAt(t.offset);let r=e.positionAt(t.offset+t.length);const i=e.getText(Rn.create(n,r)),s=i.length-i.trimRight().length;return s>0&&(r=e.positionAt(t.offset+t.length-s)),lc.create(n.line,r.line,n.character,r.character)}var $u;(function(e){e.JUMP_TO_SCHEMA="jumpToSchema"})($u||($u={}));var tv=class{constructor(e){this.indentation=e}write(e){if(e.internalNode.srcToken.type!=="flow-collection")return null;const t=e.internalNode.srcToken,n=t.start.type==="flow-map-start"?"block-map":"block-seq",r=e.parent.type,i={type:n,offset:t.offset,indent:t.indent,items:[]};for(const s of t.items)Us(s,({key:a,sep:o,value:u})=>{if(n==="block-map"){const l=[{type:"space",indent:0,offset:a.offset,source:this.indentation}];r==="property"&&l.unshift({type:"newline",indent:0,offset:a.offset,source:`
424
- `}),i.items.push({start:l,key:a,sep:o,value:u})}else n==="block-seq"&&i.items.push({start:[{type:"newline",indent:0,offset:u.offset,source:`
425
- `},{type:"space",indent:0,offset:u.offset,source:this.indentation},{type:"seq-item-ind",indent:0,offset:u.offset,source:"-"},{type:"space",indent:0,offset:u.offset,source:" "}],value:u});if(u.type==="flow-collection")return Nr.SKIP});return C0(i)}},nv=structuredClone,rv=class{constructor(e){this.clientCapabilities=e,this.indentation=" "}configure(e){this.indentation=e.indentation}getCodeAction(e,t){if(!t.context.diagnostics)return;const n=[];return n.push(...this.getConvertToBooleanActions(t.context.diagnostics,e)),n.push(...this.getJumpToSchemaActions(t.context.diagnostics)),n.push(...this.getTabToSpaceConverting(t.context.diagnostics,e)),n.push(...this.getUnusedAnchorsDelete(t.context.diagnostics,e)),n.push(...this.getConvertToBlockStyleActions(t.context.diagnostics,e)),n.push(...this.getKeyOrderActions(t.context.diagnostics,e)),n}getJumpToSchemaActions(e){var t,n,r,i,s;if(!((i=(r=(n=(t=this.clientCapabilities)==null?void 0:t.window)==null?void 0:n.showDocument)==null?void 0:r.support)!=null?i:!1))return[];const o=new Map;for(const l of e){const C=((s=l.data)==null?void 0:s.schemaUri)||[];for(const c of C)c&&(o.has(c)||o.set(c,[]),o.get(c).push(l))}const u=[];for(const l of o.keys()){const C=us.create(`Jump to schema location (${Ws.basename(l)})`,Rs.create("JumpToSchema",$u.JUMP_TO_SCHEMA,l));C.diagnostics=o.get(l),u.push(C)}return u}getTabToSpaceConverting(e,t){const n=[],r=new Qs(t),i=[];for(const s of e)if(s.message==="Using tabs can lead to unpredictable results"){if(i.includes(s.range.start.line))continue;const a=r.getLineContent(s.range.start.line);let o=0,u="";for(let C=s.range.start.character;C<=s.range.end.character&&a.charAt(C)===" ";C++)o++,u+=this.indentation;i.push(s.range.start.line);let l=s.range;o!==s.range.end.character-s.range.start.character&&(l=Rn.create(s.range.start,Yr.create(s.range.end.line,s.range.start.character+o))),n.push(us.create("Convert Tab to Spaces",Ra(t.uri,[Sr.replace(l,u)]),_s.QuickFix))}if(n.length!==0){const s=[];for(let a=0;a<=r.getLineCount();a++){const o=r.getLineContent(a);let u=0,l="";for(let C=0;C<o.length;C++){const c=o.charAt(C);if(c!==" "&&c!==" "){u!==0&&(s.push(Sr.replace(Rn.create(a,C-u,a,C),l)),u=0,l="");break}if(c===" "&&u!==0){s.push(Sr.replace(Rn.create(a,C-u,a,C),l)),u=0,l="";continue}c===" "&&(l+=this.indentation,u++)}u!==0&&s.push(Sr.replace(Rn.create(a,0,a,r.getLineLength(a)),l))}s.length>0&&n.push(us.create("Convert all Tabs to Spaces",Ra(t.uri,s),_s.QuickFix))}return n}getUnusedAnchorsDelete(e,t){const n=[],r=new Qs(t);for(const i of e)if(i.message.startsWith("Unused anchor")&&i.source===Pu){const s=Rn.create(i.range.start,i.range.end),a=r.getText(s),o=r.getLineContent(s.end.line),u=WD(o,s.end.character);s.end.character=u;const l=us.create(`Delete unused anchor: ${a}`,Ra(t.uri,[Sr.del(s)]),_s.QuickFix);l.diagnostics=[i],n.push(l)}return n}getConvertToBooleanActions(e,t){const n=[];for(const r of e)if(r.message==='Incorrect type. Expected "boolean".'){const i=t.getText(r.range).toLocaleLowerCase();if(i==='"true"'||i==='"false"'||i==="'true'"||i==="'false'"){const s=i.includes("true")?"true":"false";n.push(us.create("Convert to boolean",Ra(t.uri,[Sr.replace(r.range,s)]),_s.QuickFix))}}return n}getConvertToBlockStyleActions(e,t){const n=[];for(const r of e)if(r.code==="flowMap"||r.code==="flowSeq"){const i=pm(t,r);if(Br(i.internalNode)||Mr(i.internalNode)){const s=Br(i.internalNode)?"map":"sequence",a=new tv(this.indentation);n.push(us.create(`Convert to block style ${s}`,Ra(t.uri,[Sr.replace(r.range,a.write(i))]),_s.QuickFix))}}return n}getKeyOrderActions(e,t){var n,r,i,s,a,o,u,l,C,c,B,N,ee,ne;const O=[];for(const ae of e)if((ae==null?void 0:ae.code)==="mapKeyOrder"){let we=pm(t,ae);for(;we&&we.type!=="object";)we=we.parent;if(we&&Br(we.internalNode)){const Te=nv(we.internalNode);if((Te.srcToken.type==="block-map"||Te.srcToken.type==="flow-collection")&&(we.internalNode.srcToken.type==="block-map"||we.internalNode.srcToken.type==="flow-collection")){Te.srcToken.items.sort((pe,Se)=>{if(pe.key&&Se.key&&Jc(pe.key)&&Jc(Se.key))return pe.key.source.localeCompare(Se.key.source);if(!pe.key&&Se.key)return-1;if(pe.key&&!Se.key)return 1;if(!pe.key&&!Se.key)return 0});for(let pe=0;pe<Te.srcToken.items.length;pe++){const Se=Te.srcToken.items[pe],Qe=we.internalNode.srcToken.items[pe];if(Se.start=Qe.start,((n=Se.value)==null?void 0:n.type)==="alias"||((r=Se.value)==null?void 0:r.type)==="scalar"||((i=Se.value)==null?void 0:i.type)==="single-quoted-scalar"||((s=Se.value)==null?void 0:s.type)==="double-quoted-scalar"){const mt=(u=(o=(a=Se.value)==null?void 0:a.end)==null?void 0:o.findIndex(Ne=>Ne.type==="newline"))!=null?u:-1;let Ae=null;((l=Qe.value)==null?void 0:l.type)==="block-scalar"?Ae=(c=(C=Qe.value)==null?void 0:C.props)==null?void 0:c.find(Ne=>Ne.type==="newline"):Jc(Qe.value)&&(Ae=(N=(B=Qe.value)==null?void 0:B.end)==null?void 0:N.find(Ne=>Ne.type==="newline")),Ae&&mt<0&&(Se.value.end=(ee=Se.value.end)!=null?ee:[],Se.value.end.push(Ae)),!Ae&&mt>-1&&Se.value.end.splice(mt,1)}else((ne=Se.value)==null?void 0:ne.type)==="block-scalar"&&(Se.value.props.find(Ae=>Ae.type==="newline")||Se.value.props.push({type:"newline",indent:0,offset:Se.value.offset,source:`
426
- `}))}}const Ge=Rn.create(t.positionAt(we.offset),t.positionAt(we.offset+we.length));O.push(us.create("Fix key order for this map",Ra(t.uri,[Sr.replace(Ge,C0(Te.srcToken))]),_s.QuickFix))}}return O}};function pm(e,t){const n=Yi.getYamlDocument(e),r=e.offsetAt(t.range.start);return Lu(r,n).getNodeFromOffset(r)}function Ra(e,t){const n={};return n[e]=t,{changes:n}}function iv(e,t){const{position:n}=t,r=new Qs(e);if(t.ch===`
427
- `){const i=r.getLineContent(n.line-1);if(i.trimRight().endsWith(":")){const s=r.getLineContent(n.line),a=s.substring(n.character,s.length),o=i.indexOf(" - ")!==-1;if(a.trimRight().length===0){const u=n.character-(i.length-i.trimLeft().length);if(u===t.options.tabSize&&!o)return;const l=[];return s.length>0&&l.push(Sr.del(Rn.create(n,Yr.create(n.line,s.length-1)))),l.push(Sr.insert(n," ".repeat(t.options.tabSize+(o?2-u:0)))),l}if(o)return[Sr.insert(n," ".repeat(t.options.tabSize))]}if(i.trimRight().endsWith("|"))return[Sr.insert(n," ".repeat(t.options.tabSize))];if(i.includes(" - ")&&!i.includes(": "))return[Sr.insert(n,"- ")];if(i.includes(" - ")&&i.includes(": "))return[Sr.insert(n," ")]}}function sv(e){const t=new Map;return e&&(e.url?e.url.startsWith("schemaservice://combinedSchema/")?dm(e,t):t.set(e.url,e):dm(e,t)),t}function dm(e,t){e.allOf&&of(e.allOf,t),e.anyOf&&of(e.anyOf,t),e.oneOf&&of(e.oneOf,t)}function of(e,t){for(const n of e)!Ba(n)&&n.url&&!t.has(n.url)&&t.set(n.url,n)}var av=class{constructor(e,t){this.schemaService=e,this.telemetry=t}async getCodeLens(e){var t;const n=[];try{const r=Yi.getYamlDocument(e);let i=new Map;for(const s of r.documents){const a=await this.schemaService.getSchemaForResource(e.uri,s);a!=null&&a.schema&&(i=new Map([...sv(a==null?void 0:a.schema),...i]))}for(const s of i){const a=gc.create(Rn.create(0,0,0,0));a.command={title:W0(s[1],s[0]),command:$u.JUMP_TO_SCHEMA,arguments:[s[0]]},n.push(a)}}catch(r){(t=this.telemetry)==null||t.sendError("yaml.codeLens.error",{error:fs(r)})}return n}resolveCodeLens(e){return e}},ov=class{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}};function uv(e,t,n,r,i){i.spacesDiff=0,i.looksLikeAlignment=!1;let s;for(s=0;s<t&&s<r;s++){const B=e.charCodeAt(s),N=n.charCodeAt(s);if(B!==N)break}let a=0,o=0;for(let B=s;B<t;B++)e.charCodeAt(B)===32?a++:o++;let u=0,l=0;for(let B=s;B<r;B++)n.charCodeAt(B)===32?u++:l++;if(a>0&&o>0||u>0&&l>0)return;const C=Math.abs(o-l),c=Math.abs(a-u);if(C===0){i.spacesDiff=c,c>0&&0<=u-1&&u-1<e.length&&u<n.length&&n.charCodeAt(u)!==32&&e.charCodeAt(u-1)===32&&e.charCodeAt(e.length-1)===44&&(i.looksLikeAlignment=!0);return}c%C===0&&(i.spacesDiff=c/C)}function lv(e,t,n){const r=Math.min(e.getLineCount(),1e4);let i=0,s=0,a="",o=0;const u=[2,4,6,8,3,5,7],l=8,C=[0,0,0,0,0,0,0,0,0],c=new ov;for(let ee=1;ee<=r;ee++){const ne=e.getLineLength(ee),O=e.getLineContent(ee),ae=ne<=65536;let we=!1,Te=0,Ge=0,pe=0;for(let Qe=0,mt=ne;Qe<mt;Qe++){const Ae=ae?O.charCodeAt(Qe):e.getLineCharCode(ee,Qe);if(Ae===9)pe++;else if(Ae===32)Ge++;else{we=!0,Te=Qe;break}}if(!we||(pe>0?i++:Ge>1&&s++,uv(a,o,O,Te,c),c.looksLikeAlignment&&!(n&&t===c.spacesDiff)))continue;const Se=c.spacesDiff;Se<=l&&C[Se]++,a=O,o=Te}let B=n;i!==s&&(B=i<s);let N=t;if(B){let ee=B?0:.1*r;u.forEach(ne=>{const O=C[ne];O>ee&&(ee=O,N=ne)}),N===4&&C[4]>0&&C[2]>0&&C[2]>=C[4]/2&&(N=2)}return{insertSpaces:B,tabSize:N}}function Vu(e,t,n,r,i=0,s=0){if(e!==null&&typeof e=="object"){const a=i===0&&r.shouldIndentWithTab||i>0?t+r.indentation:"";if(Array.isArray(e)){if(s+=1,e.length===0)return"";let o="";for(let u=0;u<e.length;u++){let l=e[u];if(typeof e[u]!="object"){o+=`
428
- `+a+"- "+n(e[u]);continue}Array.isArray(e[u])||(l=cv(e[u],s)),o+=Vu(l,t,n,r,i+=1,s)}return o}else{const o=Object.keys(e);if(o.length===0)return"";let u=i===0&&r.newLineFirst||i>0?`
429
- `:"",l=!0;for(let C=0;C<o.length;C++){const c=o[C];if(i===0&&r.existingProps.includes(c))continue;const B=typeof e[c]=="object",N=B?":":": ",ee=B&&/^\s|-/.test(c)?r.indentation:"",ne=a+ee,O=l?"":`
430
- `;if(i===0&&l&&!r.indentFirstObject){const ae=Vu(e[c],ne,n,r,i+1,0);u+=O+t+c+N+ae}else{const ae=Vu(e[c],ne,n,r,i+1,0);u+=O+a+c+N+ae}l=!1}return u}}return n(e)}function cv(e,t){const n={};for(let r=0;r<Object.keys(e).length;r++){const i=Object.keys(e)[r];r===0?n["- ".repeat(t)+i]=e[i]:n[" ".repeat(t)+i]=e[i]}return n}var fv=Gs(),hm=/[\\]+"/g,mm=Si.Class,qu="__",pv=class{constructor(e,t={},n,r){this.schemaService=e,this.clientCapabilities=t,this.yamlDocument=n,this.telemetry=r,this.completionEnabled=!0,this.arrayPrefixIndentation=""}configure(e){e&&(this.completionEnabled=e.completion),this.customTags=e.customTags,this.yamlVersion=e.yamlVersion,this.configuredIndentation=e.indentation,this.disableDefaultProperties=e.disableDefaultProperties,this.parentSkeletonSelectedFirst=e.parentSkeletonSelectedFirst}async doComplete(e,t,n=!1,r=!0){var i;const s=mc.create([],!1);if(!this.completionEnabled)return s;const a=this.yamlDocument.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0),o=new Qs(e);if(this.configuredIndentation)this.indentation=this.configuredIndentation;else{const pe=lv(o,2,!0);this.indentation=pe.insertSpaces?" ".repeat(pe.tabSize):" "}cm(a.documents,n);for(const pe of a.documents)pe.uri=e.uri;const u=e.offsetAt(t),l=e.getText();if(l.charAt(u-1)===":")return Promise.resolve(s);let C=Lu(u,a);if(C===null)return Promise.resolve(s);C=C.clone();let[c,B]=C.getNodeFromPosition(u,o,this.indentation.length);const N=this.getCurrentWord(e,u);let ee=o.getLineContent(t.line);const ne=ee.substring(t.character),O=/^[ ]+\n?$/.test(ne);this.arrayPrefixIndentation="";let ae=null;if(O){ae=Rn.create(t,Yr.create(t.line,ee.length));const pe=ee.trim().length===0,Se=ee.match(/^\s*(-)\s*$/);if(c&&Jn(c)&&!pe&&!Se){const Qe=ee.substring(0,t.character),mt=Qe.match(/^[\s-]*([^:]+)?$/)||Qe.match(/:[ \t]((?!:[ \t]).*)$/);mt!=null&&mt[1]&&(ae=Rn.create(Yr.create(t.line,t.character-mt[1].length),Yr.create(t.line,ee.length)))}}else if(c&&Jn(c)&&c.value==="null"){const pe=e.positionAt(c.range[0]);pe.character+=1;const Se=e.positionAt(c.range[2]);Se.character+=1,ae=Rn.create(pe,Se)}else if(c&&Jn(c)&&c.value){const pe=e.positionAt(c.range[0]);ae=Rn.create(pe,e.positionAt(c.range[1]))}else if(c&&Jn(c)&&c.value===null&&N==="-")ae=Rn.create(t,t),this.arrayPrefixIndentation=" ";else{let pe=u-N.length;pe>0&&l[pe-1]==='"'&&pe--,ae=Rn.create(e.positionAt(pe),t)}const we={},Te={add:(pe,Se)=>{const Qe=function(qe){var jt;if(((jt=we[qe.label])==null?void 0:jt.label)===qu)return;const xn=qe.parent.schema,Lt=Xc(xn),Tt=xn.markdownDescription||xn.description;let qt=s.items.find(en=>{var Ln;return((Ln=en.parent)==null?void 0:Ln.schema)===xn&&en.kind===mm});qt&&qt.parent.insertTexts.includes(qe.insertText)||(qt?qt.parent.insertTexts.push(qe.insertText):(qt={...qe,label:Lt,documentation:Tt,sortText:"_"+Lt,kind:mm},qt.label=qt.label||qe.label,qt.parent.insertTexts=[qe.insertText],s.items.push(qt)))},mt=!!pe.parent;let Ae=pe.label;if(!Ae){console.warn(`Ignoring CompletionItem without label: ${JSON.stringify(pe)}`);return}if(Ma(Ae)||(Ae=String(Ae)),Ae=Ae.replace(/[\n]/g,"↵"),Ae.length>60){const qe=Ae.substr(0,57).trim()+"...";we[qe]||(Ae=qe)}if(pe.insertText.endsWith("$1")&&!mt&&(pe.insertText=pe.insertText.substr(0,pe.insertText.length-2)),ae&&ae.start.line===ae.end.line&&(pe.textEdit=Sr.replace(ae,pe.insertText)),pe.label=Ae,mt){Qe(pe);return}this.arrayPrefixIndentation&&this.updateCompletionText(pe,this.arrayPrefixIndentation+pe.insertText);const Ne=we[Ae],ze=(Ne==null?void 0:Ne.label)!==qu&&(Ne==null?void 0:Ne.insertText)!==pe.insertText;if(!Ne)we[Ae]=pe,s.items.push(pe);else if(ze){const qe=this.mergeSimpleInsertTexts(Ae,Ne.insertText,pe.insertText,Se);qe?this.updateCompletionText(Ne,qe):(we[Ae]=pe,s.items.push(pe))}Ne&&!Ne.documentation&&pe.documentation&&(Ne.documentation=pe.documentation)},error:pe=>{var Se;(Se=this.telemetry)==null||Se.sendError("yaml.completion.error",{error:fs(pe)})},log:pe=>{console.log(pe)},getNumberOfProposals:()=>s.items.length,result:s,proposed:we};this.customTags.length>0&&this.getCustomTagValueCompletions(Te),ee.endsWith(`
431
- `)&&(ee=ee.substr(0,ee.length-1));try{const pe=await this.schemaService.getSchemaForResource(e.uri,C);if((!pe||pe.errors.length)&&t.line===0&&t.character===0&&!af(ee)){const Ae={kind:Si.Text,label:"Inline schema",insertText:"# yaml-language-server: $schema=",insertTextFormat:Zr.PlainText};s.items.push(Ae)}if(af(ee)||Fb(a.tokens,u)){const Ae=ee.indexOf("$schema=");return Ae!==-1&&Ae+8<=t.character&&this.schemaService.getAllSchemas().forEach(Ne=>{var ze;const qe={kind:Si.Constant,label:(ze=Ne.name)!=null?ze:Ne.uri,detail:Ne.description,insertText:Ne.uri,insertTextFormat:Zr.PlainText,insertTextMode:dc.asIs};s.items.push(qe)}),s}if(!pe||pe.errors.length)return s;let Se=null;if(!c)if(!C.internalDocument.contents||Jn(C.internalDocument.contents)){const Ae=C.internalDocument.createNode({});Ae.range=[u,u+1,u+1],C.internalDocument.contents=Ae,C.updateFromInternalDocument(),c=Ae}else c=C.findClosestNode(u,o),B=!0;const Qe=c;if(c)if(ee.length===0)c=C.internalDocument.contents;else{const Ae=C.getParent(c);if(Ae){if(Jn(c)){if(c.value){if(hr(Ae)){if(Ae.value===c){if(ee.trim().length>0&&ee.indexOf(":")<0){const Ne=this.createTempObjNode(N,c,C),ze=C.getParent(Ae);if(Mr(C.internalDocument.contents)){const qe=wb(C.internalDocument.contents,Ae);typeof qe=="number"&&(C.internalDocument.set(qe,Ne),C.updateFromInternalDocument())}else ze&&(Br(ze)||Mr(ze))?(ze.set(Ae.key,Ne),C.updateFromInternalDocument()):(C.internalDocument.set(Ae.key,Ne),C.updateFromInternalDocument());Se=Ne.items[0],c=Ne}else if(ee.trim().length===0){const Ne=C.getParent(Ae);Ne&&(c=Ne)}}else if(Ae.key===c){const Ne=C.getParent(Ae);Se=Ae,Ne&&(c=Ne)}}else if(Mr(Ae))if(ee.trim().length>0){const Ne=this.createTempObjNode(N,c,C);Ae.delete(c),Ae.add(Ne),C.updateFromInternalDocument(),c=Ne}else c=Ae}else if(c.value===null){if(hr(Ae)){if(Ae.key===c)c=Ae;else if(Dr(Ae.key)&&Ae.key.range){const Ne=C.getParent(Ae);if(B&&Ne&&Br(Ne)&&xb(Ne))c=Ne;else{const ze=e.positionAt(Ae.key.range[0]);if(t.character>ze.character&&t.line!==ze.line){const qe=this.createTempObjNode(N,c,C);Ne&&(Br(Ne)||Mr(Ne))?(Ne.set(Ae.key,qe),C.updateFromInternalDocument()):(C.internalDocument.set(Ae.key,qe),C.updateFromInternalDocument()),Se=qe.items[0],c=qe}else ze.character===t.character&&Ne&&(c=Ne)}}}else if(Mr(Ae))if(ee.charAt(t.character-1)!=="-"){const Ne=this.createTempObjNode(N,c,C);Ae.delete(c),Ae.add(Ne),C.updateFromInternalDocument(),c=Ne}else if(ee.charAt(t.character-1)==="-"){const Ne=this.createTempObjNode("",c,C);Ae.delete(c),Ae.add(Ne),C.updateFromInternalDocument(),c=Ne}else c=Ae}}else if(Br(c)&&!B&&ee.trim().length===0&&Mr(Ae)){const Ne=o.getLineContent(t.line+1);(o.getLineCount()===t.line+1||Ne.trim().length===0)&&(c=Ae)}}else if(Jn(c)){const Ne=this.createTempObjNode(N,c,C);C.internalDocument.contents=Ne,C.updateFromInternalDocument(),Se=Ne.items[0],c=Ne}else if(Br(c))for(const Ne of c.items)Dr(Ne.value)&&Ne.value.range&&Ne.value.range[0]===u+1&&(c=Ne.value);else if(Mr(c)&&ee.charAt(t.character-1)!=="-"){const Ne=this.createTempObjNode(N,c,C);Ne.items=[],C.updateFromInternalDocument();for(const ze of c.items)Br(ze)&&ze.items.forEach(qe=>{Ne.items.push(qe)});c=Ne}}if(c&&Br(c)){const Ae=c.items;for(const Ne of Ae)(!Se||Se!==Ne)&&Jn(Ne.key)&&(we[Ne.key.value+""]=hc.create(qu));this.addPropertyCompletions(pe,C,c,Qe,"",Te,o,ae,r),!pe&&N.length>0&&l.charAt(u-N.length-1)!=='"'&&Te.add({kind:Si.Property,label:N,insertText:this.getInsertTextForProperty(N,null,""),insertTextFormat:Zr.Snippet})}const mt={};this.getValueCompletions(pe,C,c,u,e,Te,mt,r)}catch(pe){(i=this.telemetry)==null||i.sendError("yaml.completion.error",{error:fs(pe)})}this.finalizeParentCompletion(s);const Ge=s.items.filter((pe,Se,Qe)=>Se===Qe.findIndex(mt=>mt.label===pe.label&&mt.insertText===pe.insertText&&mt.kind===pe.kind));return(Ge==null?void 0:Ge.length)>0&&(s.items=Ge),s}updateCompletionText(e,t){e.insertText=t,e.textEdit&&(e.textEdit.newText=t)}mergeSimpleInsertTexts(e,t,n,r){const i=C=>C.includes(`
432
- `),s=C=>C.startsWith(`
433
- `),a=C=>{const c=C.indexOf(`
434
- `);return c>0&&C.substring(c,C.length).trim().length===0};if(i(t)||i(n))return r&&a(t)&&!a(n)&&!s(n)?n:void 0;const o=this.getValuesFromInsertText(t),u=this.getValuesFromInsertText(n),l=Array.prototype.concat(o,u);if(l.length)return l.length===1?`${e}: \${1:${l[0]}}`:`${e}: \${1|${l.join(",")}|}`}getValuesFromInsertText(e){const t=e.substring(e.indexOf(":")+1).trim();if(!t)return[];const n=t.match(/^\${1[|:]([^|]*)+\|?}$/);return n?n[1].split(","):[t]}finalizeParentCompletion(e){const t=n=>{let r=0;return n.map(i=>{const s=i.match(/\$([0-9]+)|\${[0-9]+:/g);if(!s)return i;const a=s.map(u=>+u.replace(/\${([0-9]+)[:|]/g,"$1").replace("$","")).reduce((u,l)=>l>u?l:u,0),o=i.replace(/\$([0-9]+)/g,(u,l)=>"$"+(+l+r)).replace(/\${([0-9]+)[:|]/g,(u,l)=>"${"+(+l+r)+":");return r+=a,o})};e.items.forEach(n=>{if(mv(n)){const r=n.parent.indent||"";let s=t(n.parent.insertTexts).join(`
435
- ${r}`);s.endsWith("$1")&&(s=s.substring(0,s.length-2)),n.insertText=this.arrayPrefixIndentation+s,n.textEdit&&(n.textEdit.newText=n.insertText);const a=s.replace(/\${[0-9]+[:|](.*)}/g,(u,l)=>l).replace(/\$([0-9]+)/g,""),o=n.documentation?[n.documentation,"","----",""]:[];n.documentation={kind:os.Markdown,value:[...o,"```yaml",r+a,"```"].join(`
436
- `)},delete n.parent}})}createTempObjNode(e,t,n){const r={};r[e]=null;const i=n.internalDocument.createNode(r);return i.range=t.range,i.items[0].key.range=t.range,i.items[0].value.range=t.range,i}addPropertyCompletions(e,t,n,r,i,s,a,o,u){var l,C,c;const B=t.getMatchingSchemas(e.schema,-1,null,u),N=a.getText(o),ee=a.getLineContent(o.start.line),ne=ee.trim().length===0,O=ee.indexOf(":")!==-1,ae=ee.trimLeft().indexOf("-")===0,we=t.getParent(n),Te=B.find(Se=>Se.node.internalNode===r&&Se.schema.properties),Ge=B.filter(Se=>Se.schema.oneOf).map(Se=>Se.schema.oneOf)[0];let pe=!1;(Ge==null?void 0:Ge.length)<B.length&&(Ge==null||Ge.forEach((Se,Qe)=>{var mt,Ae;!((mt=B[Qe])!=null&&mt.schema.oneOf)&&((Ae=B[Qe])==null?void 0:Ae.schema.properties)===Se.properties&&(pe=!0)}));for(const Se of B){if((Se.node.internalNode===n&&!Te||Se.node.internalNode===r&&!O||((l=Se.node.parent)==null?void 0:l.internalNode)===r&&!O)&&!Se.inverted){this.collectDefaultSnippets(Se.schema,i,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:ae});const Qe=Se.schema.properties;if(Qe){const mt=Se.schema.maxProperties;if(mt===void 0||n.items===void 0||n.items.length<mt||n.items.length===mt&&!ne){for(const Ae in Qe)if(Object.prototype.hasOwnProperty.call(Qe,Ae)){const Ne=Qe[Ae];if(typeof Ne=="object"&&!Ne.deprecationMessage&&!Ne.doNotSuggest){let ze="";if(we&&Mr(we)&&n.items.length<=1&&!ne){const Lt=a.getText(),Tt=Lt.lastIndexOf("-",n.range[0]-1);if(Tt>=0){const qt=o.end.character-o.start.character;ze=" "+Lt.slice(Tt+1,n.range[1]-qt)}}ze+=this.arrayPrefixIndentation;let qe;Ne.type==="array"&&(qe=n.items.find(Lt=>Jn(Lt.key)&&Lt.key.range&&Lt.key.value===Ae&&Jn(Lt.value)&&!Lt.value.value&&a.getPosition(Lt.key.range[2]).line===o.end.line-1))&&qe&&(Array.isArray(Ne.items)?this.addSchemaValueCompletions(Ne.items[0],i,s,{},"property"):typeof Ne.items=="object"&&Ne.items.type==="object"&&this.addArrayItemValueCompletion(Ne.items,i,s));let jt=Ae;(!Ae.startsWith(N)||!O)&&(jt=this.getInsertTextForProperty(Ae,Ne,i,ze+this.indentation));const fn=Jn(r)&&r.value===null||Br(r)&&r.items.length===0,xn=((C=Se.schema.required)==null?void 0:C.length)>0;(!this.parentSkeletonSelectedFirst||!fn||!xn)&&s.add({kind:Si.Property,label:Ae,insertText:jt,insertTextFormat:Zr.Snippet,documentation:this.fromMarkup(Ne.markdownDescription)||Ne.description||""},pe),(c=Se.schema.required)!=null&&c.includes(Ae)&&s.add({label:Ae,insertText:this.getInsertTextForProperty(Ae,Ne,i,ze+this.indentation),insertTextFormat:Zr.Snippet,documentation:this.fromMarkup(Ne.markdownDescription)||Ne.description||"",parent:{schema:Se.schema,indent:ze}})}}}}if(we&&Mr(we)&&JD(Se.schema)&&this.addSchemaValueCompletions(Se.schema,i,s,{},"property",Array.isArray(we.items)),Se.schema.propertyNames&&Se.schema.additionalProperties&&Se.schema.type==="object"){const mt=li(Se.schema.propertyNames),Ae=mt.title||"property";s.add({kind:Si.Property,label:Ae,insertText:`\${1:${Ae}}: `,insertTextFormat:Zr.Snippet,documentation:this.fromMarkup(mt.markdownDescription)||mt.description||""})}}we&&Se.node.internalNode===we&&Se.schema.defaultSnippets&&(n.items.length===1?this.collectDefaultSnippets(Se.schema,i,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!0},1):this.collectDefaultSnippets(Se.schema,i,s,{newLineFirst:!1,indentFirstObject:!0,shouldIndentWithTab:!1},1))}}getValueCompletions(e,t,n,r,i,s,a,o){let u=null;if(n&&Jn(n)&&(n=t.getParent(n)),!n){this.addSchemaValueCompletions(e.schema,"",s,a,"value");return}if(hr(n)){const l=n.value;if(l&&l.range&&r>l.range[0]+l.range[2])return;u=Jn(n.key)?n.key.value+"":null,n=t.getParent(n)}if(n&&(u!==null||Mr(n))){const l="",C=t.getMatchingSchemas(e.schema,-1,null,o);for(const c of C)if(c.node.internalNode===n&&!c.inverted&&c.schema){if(c.schema.items&&(this.collectDefaultSnippets(c.schema,l,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1}),Mr(n)&&n.items))if(Array.isArray(c.schema.items)){const B=this.findItemAtOffset(n,i,r);B<c.schema.items.length&&this.addSchemaValueCompletions(c.schema.items[B],l,s,a,"value")}else typeof c.schema.items=="object"&&(c.schema.items.type==="object"||Kc(c.schema.items))?this.addSchemaValueCompletions(c.schema.items,l,s,a,"value",!0):this.addSchemaValueCompletions(c.schema.items,l,s,a,"value");if(c.schema.properties){const B=c.schema.properties[u];B&&this.addSchemaValueCompletions(B,l,s,a,"value")}else c.schema.additionalProperties&&this.addSchemaValueCompletions(c.schema.additionalProperties,l,s,a,"value")}a.boolean&&(this.addBooleanValueCompletion(!0,l,s),this.addBooleanValueCompletion(!1,l,s)),a.null&&this.addNullValueCompletion(l,s)}}addArrayItemValueCompletion(e,t,n,r){const i=Xc(e),s=`- ${this.getInsertTextForObject(e,t).insertText.trimLeft()}`,a=i?" type `"+i+"`":"",o=e.description?" ("+e.description+")":"",u=this.getDocumentationWithMarkdownText(`Create an item of an array${a}${o}`,s);n.add({kind:this.getSuggestionKind(e.type),label:"- (array item) "+(i||r),documentation:u,insertText:s,insertTextFormat:Zr.Snippet})}getInsertTextForProperty(e,t,n,r=this.indentation){const i=this.getInsertTextForValue(e,"","string"),s=i+":";let a,o=0;if(t){let u=Array.isArray(t.type)?t.type[0]:t.type;if(u||(t.properties?u="object":t.items?u="array":t.anyOf&&(u="anyOf")),Array.isArray(t.defaultSnippets)){if(t.defaultSnippets.length===1){const l=t.defaultSnippets[0].body;Hs(l)&&(a=this.getInsertTextForSnippetValue(l,"",{newLineFirst:!0,indentFirstObject:!1,shouldIndentWithTab:!1},[],1),!a.startsWith(" ")&&!a.startsWith(`
437
- `)&&(a=" "+a))}o+=t.defaultSnippets.length}if(t.enum&&(!a&&t.enum.length===1&&(a=" "+this.getInsertTextForGuessedValue(t.enum[0],"",u)),o+=t.enum.length),t.const&&(a||(a=this.getInsertTextForGuessedValue(t.const,"",u),a=hv(a),a=" "+a),o++),Hs(t.default)&&(a||(a=" "+this.getInsertTextForGuessedValue(t.default,"",u)),o++),Array.isArray(t.examples)&&t.examples.length&&(a||(a=" "+this.getInsertTextForGuessedValue(t.examples[0],"",u)),o+=t.examples.length),t.properties)return`${s}
438
- ${this.getInsertTextForObject(t,n,r).insertText}`;if(t.items)return`${s}
439
- ${r}- ${this.getInsertTextForArray(t.items,n,1,r).insertText}`;if(o===0)switch(u){case"boolean":a=" $1";break;case"string":a=" $1";break;case"object":a=`
440
- ${r}`;break;case"array":a=`
441
- ${r}- `;break;case"number":case"integer":a=" ${1:0}";break;case"null":a=" ${1:null}";break;case"anyOf":a=" $1";break;default:return i}}return(!a||o>1)&&(a=" $1"),s+a+n}getInsertTextForObject(e,t,n=this.indentation,r=1){let i="";return e.properties?(Object.keys(e.properties).forEach(s=>{const a=e.properties[s];let o=Array.isArray(a.type)?a.type[0]:a.type;if(o||(a.anyOf&&(o="anyOf"),a.properties&&(o="object"),a.items&&(o="array")),e.required&&e.required.indexOf(s)>-1)switch(o){case"boolean":case"string":case"number":case"integer":case"anyOf":{let u=a.default||a.const;u?(o==="string"&&(u=Uu(u)),i+=`${n}${s}: \${${r++}:${u}}
442
- `):i+=`${n}${s}: $${r++}
443
- `;break}case"array":{const u=this.getInsertTextForArray(a.items,t,r++,n),l=u.insertText.split(`
444
- `);let C=u.insertText;if(l.length>1){for(let c=1;c<l.length;c++){const B=l[c];l[c]=` ${B}`}C=l.join(`
445
- `)}r=u.insertIndex,i+=`${n}${s}:
446
- ${n}${this.indentation}- ${C}
447
- `}break;case"object":{const u=this.getInsertTextForObject(a,t,`${n}${this.indentation}`,r++);r=u.insertIndex,i+=`${n}${s}:
448
- ${u.insertText}
449
- `}break}else if(!this.disableDefaultProperties&&a.default!==void 0)switch(o){case"boolean":case"number":case"integer":i+=`${n}${s==="null"?this.getInsertTextForValue(s,"","string"):s}: \${${r++}:${a.default}}
450
- `;break;case"string":i+=`${n}${s}: \${${r++}:${Uu(a.default)}}
451
- `;break}}),i.trim().length===0&&(i=`${n}$${r++}
452
- `),i=i.trimRight()+t,{insertText:i,insertIndex:r}):(i=`${n}$${r++}
453
- `,{insertText:i,insertIndex:r})}getInsertTextForArray(e,t,n=1,r=this.indentation){let i="";if(!e)return i=`$${n++}`,{insertText:i,insertIndex:n};let s=Array.isArray(e.type)?e.type[0]:e.type;switch(s||(e.properties&&(s="object"),e.items&&(s="array")),e.type){case"boolean":i=`\${${n++}:false}`;break;case"number":case"integer":i=`\${${n++}:0}`;break;case"string":i=`\${${n++}:""}`;break;case"object":{const a=this.getInsertTextForObject(e,t,`${r} `,n++);i=a.insertText.trimLeft(),n=a.insertIndex}break}return{insertText:i,insertIndex:n}}getInsertTextForGuessedValue(e,t,n){switch(typeof e){case"object":return e===null?"${1:null}"+t:this.getInsertTextForValue(e,t,n);case"string":{let r=JSON.stringify(e);return r=r.substr(1,r.length-2),r=this.getInsertTextForPlainText(r),n==="string"&&(r=Uu(r)),"${1:"+r+"}"+t}case"number":case"boolean":return"${1:"+e+"}"+t}return this.getInsertTextForValue(e,t,n)}getInsertTextForPlainText(e){return e.replace(/[\\$}]/g,"\\$&")}getInsertTextForValue(e,t,n){if(e===null)return"null";switch(typeof e){case"object":{const r=this.indentation;return this.getInsertTemplateForValue(e,r,{index:1},t)}case"number":case"boolean":return this.getInsertTextForPlainText(e+t)}return n=Array.isArray(n)?n[0]:n,n==="string"&&(e=Uu(e)),this.getInsertTextForPlainText(e+t)}getInsertTemplateForValue(e,t,n,r){if(Array.isArray(e)){let i=`
454
- `;for(const s of e)i+=`${t}- \${${n.index++}:${s}}
455
- `;return i}else if(typeof e=="object"){let i=`
456
- `;for(const s in e)if(Object.prototype.hasOwnProperty.call(e,s)){const a=e[s];i+=`${t}\${${n.index++}:${s}}:`;let o;typeof a=="object"?o=`${this.getInsertTemplateForValue(a,t+this.indentation,n,r)}`:o=` \${${n.index++}:${this.getInsertTextForPlainText(a+r)}}
457
- `,i+=`${o}`}return i}return this.getInsertTextForPlainText(e+r)}addSchemaValueCompletions(e,t,n,r,i,s){typeof e=="object"&&(this.addEnumValueCompletions(e,t,n,s),this.addDefaultValueCompletions(e,t,n),this.collectTypes(e,r),s&&i==="value"&&!Kc(e)&&this.addArrayItemValueCompletion(e,t,n),Array.isArray(e.allOf)&&e.allOf.forEach(a=>this.addSchemaValueCompletions(a,t,n,r,i,s)),Array.isArray(e.anyOf)&&e.anyOf.forEach(a=>this.addSchemaValueCompletions(a,t,n,r,i,s)),Array.isArray(e.oneOf)&&e.oneOf.forEach(a=>this.addSchemaValueCompletions(a,t,n,r,i,s)))}collectTypes(e,t){if(Array.isArray(e.enum)||Hs(e.const))return;const n=e.type;Array.isArray(n)?n.forEach(function(r){return t[r]=!0}):n&&(t[n]=!0)}addDefaultValueCompletions(e,t,n,r=0){let i=!1;if(Hs(e.default)){let s=e.type,a=e.default;for(let u=r;u>0;u--)a=[a],s="array";let o;typeof a=="object"?o="Default value":o=a.toString().replace(hm,'"'),n.add({kind:this.getSuggestionKind(s),label:o,insertText:this.getInsertTextForValue(a,t,s),insertTextFormat:Zr.Snippet,detail:fv("json.suggest.default","Default value")}),i=!0}Array.isArray(e.examples)&&e.examples.forEach(s=>{let a=e.type,o=s;for(let u=r;u>0;u--)o=[o],a="array";n.add({kind:this.getSuggestionKind(a),label:this.getLabelForValue(o),insertText:this.getInsertTextForValue(o,t,a),insertTextFormat:Zr.Snippet}),i=!0}),this.collectDefaultSnippets(e,t,n,{newLineFirst:!0,indentFirstObject:!0,shouldIndentWithTab:!0}),!i&&typeof e.items=="object"&&!Array.isArray(e.items)&&this.addDefaultValueCompletions(e.items,t,n,r+1)}addEnumValueCompletions(e,t,n,r){if(Hs(e.const)&&!r&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t,e.type),insertTextFormat:Zr.Snippet,documentation:this.fromMarkup(e.markdownDescription)||e.description}),Array.isArray(e.enum))for(let i=0,s=e.enum.length;i<s;i++){const a=e.enum[i];let o=this.fromMarkup(e.markdownDescription)||e.description;e.markdownEnumDescriptions&&i<e.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?o=this.fromMarkup(e.markdownEnumDescriptions[i]):e.enumDescriptions&&i<e.enumDescriptions.length&&(o=e.enumDescriptions[i]),n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(a),insertText:this.getInsertTextForValue(a,t,e.type),insertTextFormat:Zr.Snippet,documentation:o})}}getLabelForValue(e){return e===null?"null":Array.isArray(e)?JSON.stringify(e):""+e}collectDefaultSnippets(e,t,n,r,i=0){if(Array.isArray(e.defaultSnippets))for(const s of e.defaultSnippets){let a=e.type,o=s.body,u=s.label,l,C;if(Hs(o)){const c=s.type||e.type;if(i===0&&c==="array"){const N={};Object.keys(o).forEach((ee,ne)=>{ne===0&&!ee.startsWith("-")?N[`- ${ee}`]=o[ee]:N[` ${ee}`]=o[ee]}),o=N}const B=Object.keys(n.proposed).filter(N=>n.proposed[N].label===qu);if(l=this.getInsertTextForSnippetValue(o,t,r,B),l===""&&o)continue;u=u||this.getLabelForSnippetValue(o)}else if(typeof s.bodyText=="string"){let c="",B="",N="";for(let ee=i;ee>0;ee--)c=c+N+`[
458
- `,B=B+`
459
- `+N+"]",N+=this.indentation,a="array";l=c+N+s.bodyText.split(`
460
- `).join(`
461
- `+N)+B+t,u=u||l,C=l.replace(/[\n]/g,"")}n.add({kind:s.suggestionKind||this.getSuggestionKind(a),label:u,sortText:s.sortText||s.label,documentation:this.fromMarkup(s.markdownDescription)||s.description,insertText:l,insertTextFormat:Zr.Snippet,filterText:C})}}getInsertTextForSnippetValue(e,t,n,r,i){return Vu(e,"",a=>{if(typeof a=="string"){if(a[0]==="^")return a.substr(1);if(a==="true"||a==="false")return`"${a}"`}return a},{...n,indentation:this.indentation,existingProps:r},i)+t}addBooleanValueCompletion(e,t,n){n.add({kind:this.getSuggestionKind("boolean"),label:e?"true":"false",insertText:this.getInsertTextForValue(e,t,"boolean"),insertTextFormat:Zr.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:Zr.Snippet,documentation:""})}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getCustomTagValueCompletions(e){Q0(this.customTags).forEach(n=>{const r=n.split(" ")[0];this.addCustomTagValueCompletion(e," ",r)})}addCustomTagValueCompletion(e,t,n){e.add({kind:this.getSuggestionKind("string"),label:n,insertText:n+t,insertTextFormat:Zr.Snippet,documentation:""})}getDocumentationWithMarkdownText(e,t){let n=e;return this.doesSupportMarkdown()&&(t=t.replace(/\${[0-9]+[:|](.*)}/g,(r,i)=>i).replace(/\$([0-9]+)/g,""),n=this.fromMarkup(`${e}
462
- \`\`\`
463
- ${t}
464
- \`\`\``)),n}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:null}if(!e)return Si.Value;switch(e){case"string":return Si.Value;case"object":return Si.Module;case"property":return Si.Property;default:return Si.Value}}getCurrentWord(e,t){let n=t-1;const r=e.getText();for(;n>=0&&`
465
- \r\v":{[,]}`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,t)}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:os.Markdown,value:e}}doesSupportMarkdown(){if(this.supportsMarkdown===void 0){const e=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=e&&e.completionItem&&Array.isArray(e.completionItem.documentationFormat)&&e.completionItem.documentationFormat.indexOf(os.Markdown)!==-1}return this.supportsMarkdown}findItemAtOffset(e,t,n){for(let r=e.items.length-1;r>=0;r--){const i=e.items[r];if(Dr(i)&&i.range){if(n>i.range[1])return r;if(n>=i.range[0])return r}}return 0}},dv=/^\d+$/;function Uu(e){let t;if(typeof e=="string"?t=e:t=""+e,t.length===0)return t;if(t==="true"||t==="false"||t==="null"||dv.test(t))return`"${t}"`;t.indexOf('"')!==-1&&(t=t.replace(hm,'"'));let n=!isNaN(parseInt(t))||t.charAt(0)==="@";if(!n){let r=t.indexOf(":",0);for(;r>0&&r<t.length;r=t.indexOf(":",r+1)){if(r===t.length-1){n=!0;break}const i=t.charAt(r+1);if(i===" "||i===" "){n=!0;break}}}return n&&(t=`"${t}"`),t}function hv(e){return e.replace(/\$\{1:(.*)\}/,"$1")}function mv(e){return"parent"in e}function gv(){}var yv=class{constructor(e){this.telemetry=e}getDefinition(e,t){var n;try{const r=Yi.getYamlDocument(e),i=e.offsetAt(t.position),s=Lu(i,r);if(s){const[a]=s.getNodeFromPosition(i,new Qs(e));if(a&&ts(a)){const o=a.resolve(s.internalDocument);if(o&&o.range){const u=Rn.create(e.positionAt(o.range[0]),e.positionAt(o.range[2])),l=Rn.create(e.positionAt(o.range[0]),e.positionAt(o.range[1]));return[oc.create(e.uri,u,l)]}}}}catch(r){(n=this.telemetry)==null||n.sendError("yaml.definition.error",{error:fs(r)})}}};function Dv(e,t){if(!e)return;const n=Yi.getYamlDocument(e);return t.map(i=>{const s=r(i);let a;for(const o of s)a=su.create(o,a);return a||(a=su.create({start:i,end:i})),a});function r(i){const s=e.offsetAt(i),a=[];for(const o of n.documents){let u,l,C=!0;for(o.visit(c=>{if(c.offset+c.length<s)return!0;let N=c.offset;if(N>s){const ee=e.positionAt(N);if(ee.line!==i.line)return!0;const ne={line:ee.line,character:0};if(e.getText({start:ne,end:ee}).trim().length!==0||(N=e.offsetAt(ne),N>s))return!0}return(!u||N>=u.offset)&&(u=c,l=N),!0});u;){const c=C?l:u.offset,B=u.offset+u.length,N={start:e.positionAt(c),end:e.positionAt(B)},ee=e.getText(N),ne=ee.trimEnd(),O=ee.length-ne.length;O>0&&(N.end=e.positionAt(B-O));const ae=(we,Te)=>ne.startsWith(we)&&ne.endsWith(Te||we);(u.type==="string"&&(ae("'")||ae('"'))||u.type==="object"&&ae("{","}")||u.type==="array"&&ae("[","]"))&&a.push({start:e.positionAt(c+1),end:e.positionAt(B-1)}),a.push(N),u=u.parent,C=!1}if(a.length>0)break}return a.reverse()}}var uf;(function(e){e[e.SchemaStore=1]="SchemaStore",e[e.SchemaAssociation=2]="SchemaAssociation",e[e.Settings=3]="Settings"})(uf||(uf={}));function bv(e){const t=new Rb(e.schemaRequestService,e.workspaceContext),n=new pv(t,e.clientCapabilities,Yi,e.telemetry),r=new Vb(t,e.telemetry),i=new $b(t,e.telemetry),s=new Xb(t,e.telemetry),a=new Kb,o=new rv(e.clientCapabilities),u=new av(t,e.telemetry),l=new Zb(e.telemetry),C=new yv(e.telemetry);return new gv(t,e.yamlSettings,e.connection),{configure:c=>{t.clearExternalSchemas(),c.schemas&&(t.schemaPriorityMapping=new Map,c.schemas.forEach(B=>{const N=B.priority?B.priority:0;t.addSchemaPriority(B.uri,N),t.registerExternalSchema(B.uri,B.fileMatch,B.schema,B.name,B.description,B.versions)})),s.configure(c),r.configure(c),n.configure(c),a.configure(c),o.configure(c)},registerCustomSchemaProvider:c=>{t.registerCustomSchemaProvider(c)},findLinks:l.findLinks.bind(l),doComplete:n.doComplete.bind(n),doValidation:s.doValidation.bind(s),doHover:r.doHover.bind(r),findDocumentSymbols:i.findDocumentSymbols.bind(i),findDocumentSymbols2:i.findHierarchicalDocumentSymbols.bind(i),doDefinition:C.getDefinition.bind(C),resetSchema:c=>t.onResourceChange(c),doFormat:a.format.bind(a),doDocumentOnTypeFormatting:iv,addSchema:(c,B)=>t.saveSchema(c,B),deleteSchema:c=>t.deleteSchema(c),modifySchemaContent:c=>t.addContent(c),deleteSchemaContent:c=>t.deleteContent(c),deleteSchemasWhole:c=>t.deleteSchemas(c),getFoldingRanges:ev,getSelectionRanges:Dv,getCodeAction:(c,B)=>o.getCodeAction(c,B),getCodeLens:c=>u.getCodeLens(c),resolveCodeLens:c=>u.resolveCodeLens(c)}}async function vv(e){const t=await fetch(e);if(t.ok)return t.text();throw new Error(`Schema request failed for ${e}`)}var Ev={send(){},sendError(e,t){console.error("monaco-yaml",e,t)},sendTrack(){}},Av={resolveRelativePath(e,t){return String(new URL(e,t))}};ay((e,{enableSchemaRequest:t,...n})=>{const r=bv({schemaRequestService:t?vv:null,telemetry:Ev,workspaceContext:Av}),i=s=>(a,...o)=>{const u=e.getMirrorModels();for(const l of u)if(String(l.uri)===a)return s(nc.create(a,"yaml",l.version,l.getValue()),...o)};return r.configure(n),{doValidation:i(s=>r.doValidation(s,!!n.isKubernetes)),doComplete:i((s,a)=>r.doComplete(s,a,!!n.isKubernetes)),doDefinition:i((s,a)=>r.doDefinition(s,{position:a,textDocument:s})),doHover:i((s,a)=>r.doHover(s,a)),format:i(s=>r.doFormat(s,{})),resetSchema:s=>r.resetSchema(s),findDocumentSymbols:i(s=>r.findDocumentSymbols2(s,{})),findLinks:i(s=>r.findLinks(s)),getCodeAction:i((s,a,o)=>r.getCodeAction(s,{range:a,textDocument:s,context:o})),getFoldingRanges:i(s=>r.getFoldingRanges(s,{lineFoldingOnly:!0}))}})})();