@ansible/ansible-ui-framework 2.4.418 → 2.4.419

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,464 +0,0 @@
1
- (function(){"use strict";function z0(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 Q0{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 X0=new Q0;function np(e){K0(e)||X0.onUnexpectedError(e)}function rp(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 Dl="Canceled";function K0(e){return e instanceof Z0?!0:e instanceof Error&&e.name===Dl&&e.message===Dl}class Z0 extends Error{constructor(){super(Dl),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 eg(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(oe){return oe&&typeof oe=="object"&&typeof oe[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*i(oe){yield oe}e.single=i;function s(oe){return t(oe)?oe:i(oe)}e.wrap=s;function a(oe){return oe||n}e.from=a;function o(oe){return!oe||oe[Symbol.iterator]().next().done===!0}e.isEmpty=o;function u(oe){return oe[Symbol.iterator]().next().value}e.first=u;function l(oe,Te){for(const Le of oe)if(Te(Le))return!0;return!1}e.some=l;function A(oe,Te){for(const Le of oe)if(Te(Le))return Le}e.find=A;function*p(oe,Te){for(const Le of oe)Te(Le)&&(yield Le)}e.filter=p;function*O(oe,Te){let Le=0;for(const Ge of oe)yield Te(Ge,Le++)}e.map=O;function*k(...oe){for(const Te of oe)for(const Le of Te)yield Le}e.concat=k;function re(oe,Te,Le){let Ge=Le;for(const he of oe)Ge=Te(Ge,he);return Ge}e.reduce=re;function*te(oe,Te,Le=oe.length){for(Te<0&&(Te+=oe.length),Le<0?Le+=oe.length:Le>oe.length&&(Le=oe.length);Te<Le;Te++)yield oe[Te]}e.slice=te;function N(oe,Te=Number.POSITIVE_INFINITY){const Le=[];if(Te===0)return[Le,oe];const Ge=oe[Symbol.iterator]();for(let he=0;he<Te;he++){const ke=Ge.next();if(ke.done)return[Le,e.empty()];Le.push(ke.value)}return[Le,{[Symbol.iterator](){return Ge}}]}e.consume=N})(Vo||(Vo={}));function VE(e){return e}function qE(e,t){}function ip(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 tg(...e){return Za(()=>ip(e))}function Za(e){return{dispose:eg(()=>{e()})}}class Is{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{ip(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?Is.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}}Is.DISABLE_DISPOSED_WARNING=!1;class eo{constructor(){this._store=new Is,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)}}eo.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 ng{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 rg=globalThis.performance&&typeof globalThis.performance.now=="function";class qo{static create(t){return new qo(t)}constructor(t){this._now=rg&&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 bl;(function(e){e.None=()=>eo.None;function t(Ce,xe){return A(Ce,()=>{},0,void 0,!0,void 0,xe)}e.defer=t;function n(Ce){return(xe,et=null,Ve)=>{let Rt=!1,pn;return pn=Ce(kn=>{if(!Rt)return pn?pn.dispose():Rt=!0,xe.call(et,kn)},null,Ve),Rt&&pn.dispose(),pn}}e.once=n;function r(Ce,xe,et){return l((Ve,Rt=null,pn)=>Ce(kn=>Ve.call(Rt,xe(kn)),null,pn),et)}e.map=r;function i(Ce,xe,et){return l((Ve,Rt=null,pn)=>Ce(kn=>{xe(kn),Ve.call(Rt,kn)},null,pn),et)}e.forEach=i;function s(Ce,xe,et){return l((Ve,Rt=null,pn)=>Ce(kn=>xe(kn)&&Ve.call(Rt,kn),null,pn),et)}e.filter=s;function a(Ce){return Ce}e.signal=a;function o(...Ce){return(xe,et=null,Ve)=>tg(...Ce.map(Rt=>Rt(pn=>xe.call(et,pn),null,Ve)))}e.any=o;function u(Ce,xe,et,Ve){let Rt=et;return r(Ce,pn=>(Rt=xe(Rt,pn),Rt),Ve)}e.reduce=u;function l(Ce,xe){let et;const Ve={onWillAddFirstListener(){et=Ce(Rt.fire,Rt)},onDidRemoveLastListener(){et==null||et.dispose()}},Rt=new Qi(Ve);return xe==null||xe.add(Rt),Rt.event}function A(Ce,xe,et=100,Ve=!1,Rt=!1,pn,kn){let Lt,Tt,qt,en=0,Ln;const Un={leakWarningThreshold:pn,onWillAddFirstListener(){Lt=Ce(zr=>{en++,Tt=xe(Tt,zr),Ve&&!qt&&(Pn.fire(Tt),Tt=void 0),Ln=()=>{const Qr=Tt;Tt=void 0,qt=void 0,(!Ve||en>1)&&Pn.fire(Qr),en=0},typeof et=="number"?(clearTimeout(qt),qt=setTimeout(Ln,et)):qt===void 0&&(qt=0,queueMicrotask(Ln))})},onWillRemoveListener(){Rt&&en>0&&(Ln==null||Ln())},onDidRemoveLastListener(){Ln=void 0,Lt.dispose()}},Pn=new Qi(Un);return kn==null||kn.add(Pn),Pn.event}e.debounce=A;function p(Ce,xe=0,et){return e.debounce(Ce,(Ve,Rt)=>Ve?(Ve.push(Rt),Ve):[Rt],xe,void 0,!0,void 0,et)}e.accumulate=p;function O(Ce,xe=(Ve,Rt)=>Ve===Rt,et){let Ve=!0,Rt;return s(Ce,pn=>{const kn=Ve||!xe(pn,Rt);return Ve=!1,Rt=pn,kn},et)}e.latch=O;function k(Ce,xe,et){return[e.filter(Ce,xe,et),e.filter(Ce,Ve=>!xe(Ve),et)]}e.split=k;function re(Ce,xe=!1,et=[]){let Ve=et.slice(),Rt=Ce(Lt=>{Ve?Ve.push(Lt):kn.fire(Lt)});const pn=()=>{Ve==null||Ve.forEach(Lt=>kn.fire(Lt)),Ve=null},kn=new Qi({onWillAddFirstListener(){Rt||(Rt=Ce(Lt=>kn.fire(Lt)))},onDidAddFirstListener(){Ve&&(xe?setTimeout(pn):pn())},onDidRemoveLastListener(){Rt&&Rt.dispose(),Rt=null}});return kn.event}e.buffer=re;class te{constructor(xe){this.event=xe,this.disposables=new Is}map(xe){return new te(r(this.event,xe,this.disposables))}forEach(xe){return new te(i(this.event,xe,this.disposables))}filter(xe){return new te(s(this.event,xe,this.disposables))}reduce(xe,et){return new te(u(this.event,xe,et,this.disposables))}latch(){return new te(O(this.event,void 0,this.disposables))}debounce(xe,et=100,Ve=!1,Rt=!1,pn){return new te(A(this.event,xe,et,Ve,Rt,pn,this.disposables))}on(xe,et,Ve){return this.event(xe,et,Ve)}once(xe,et,Ve){return n(this.event)(xe,et,Ve)}dispose(){this.disposables.dispose()}}function N(Ce){return new te(Ce)}e.chain=N;function oe(Ce,xe,et=Ve=>Ve){const Ve=(...Lt)=>kn.fire(et(...Lt)),Rt=()=>Ce.on(xe,Ve),pn=()=>Ce.removeListener(xe,Ve),kn=new Qi({onWillAddFirstListener:Rt,onDidRemoveLastListener:pn});return kn.event}e.fromNodeEventEmitter=oe;function Te(Ce,xe,et=Ve=>Ve){const Ve=(...Lt)=>kn.fire(et(...Lt)),Rt=()=>Ce.addEventListener(xe,Ve),pn=()=>Ce.removeEventListener(xe,Ve),kn=new Qi({onWillAddFirstListener:Rt,onDidRemoveLastListener:pn});return kn.event}e.fromDOMEventEmitter=Te;function Le(Ce){return new Promise(xe=>n(Ce)(xe))}e.toPromise=Le;function Ge(Ce,xe){return xe(void 0),Ce(et=>xe(et))}e.runAndSubscribe=Ge;function he(Ce,xe){let et=null;function Ve(pn){et==null||et.dispose(),et=new Is,xe(pn,et)}Ve(void 0);const Rt=Ce(pn=>Ve(pn));return Za(()=>{Rt.dispose(),et==null||et.dispose()})}e.runAndSubscribeWithStore=he;class ke{constructor(xe,et){this._observable=xe,this._counter=0,this._hasChanged=!1;const Ve={onWillAddFirstListener:()=>{xe.addObserver(this)},onDidRemoveLastListener:()=>{xe.removeObserver(this)}};this.emitter=new Qi(Ve),et&&et.add(this.emitter)}beginUpdate(xe){this._counter++}handlePossibleChange(xe){}handleChange(xe,et){this._hasChanged=!0}endUpdate(xe){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function ze(Ce,xe){return new ke(Ce,xe).emitter.event}e.fromObservable=ze;function Et(Ce){return xe=>{let et=0,Ve=!1;const Rt={beginUpdate(){et++},endUpdate(){et--,et===0&&(Ce.reportChanges(),Ve&&(Ve=!1,xe()))},handlePossibleChange(){},handleChange(){Ve=!0}};return Ce.addObserver(Rt),Ce.reportChanges(),{dispose(){Ce.removeObserver(Rt)}}}}e.fromObservableLight=Et})(bl||(bl={}));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 ig=-1;class sg{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 vl{static create(){var t;return new vl((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 El{constructor(t){this.value=t}}const ag=2;class Qi{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 sg((i=(r=this._options)===null||r===void 0?void 0:r.leakWarningThreshold)!==null&&i!==void 0?i:ig):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`),eo.None;if(this._disposed)return eo.None;r&&(n=n.bind(r));const A=new El(n);let p;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(A.stack=vl.create(),p=this._leakageMon.check(A.stack,this._size+1)),this._listeners?this._listeners instanceof El?((l=this._deliveryQueue)!==null&&l!==void 0||(this._deliveryQueue=new og),this._listeners=[this._listeners,A]):this._listeners.push(A):((a=(s=this._options)===null||s===void 0?void 0:s.onWillAddFirstListener)===null||a===void 0||a.call(s,this),this._listeners=A,(u=(o=this._options)===null||o===void 0?void 0:o.onDidAddFirstListener)===null||u===void 0||u.call(o,this)),this._size++;const O=Za(()=>{p==null||p(),this._removeListener(A)});return i instanceof Is?i.add(O):Array.isArray(i)&&i.push(O),O}),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*ag<=a.length){let l=0;for(let A=0;A<a.length;A++)a[A]?a[l++]=a[A]: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)||np;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 El)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 og{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 ug(e){return typeof e=="string"}function lg(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function Al(e){const t=[];for(const n of lg(e))typeof e[n]=="function"&&t.push(n);return t}function cg(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 fg=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function pg(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}),fg&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function Er(e,t,...n){return pg(t,n)}function UE(e){}var Cl;const la="en";let Sl=!1,xl=!1,wl=!1,sp=!1,Uo,Fl=la,ap=la,dg,$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 hg=typeof((Cl=Kr==null?void 0:Kr.versions)===null||Cl===void 0?void 0:Cl.electron)=="string"&&(Kr==null?void 0:Kr.type)==="renderer";if(typeof navigator=="object"&&!hg)$i=navigator.userAgent,Sl=$i.indexOf("Windows")>=0,xl=$i.indexOf("Macintosh")>=0,($i.indexOf("Macintosh")>=0||$i.indexOf("iPad")>=0||$i.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,wl=$i.indexOf("Linux")>=0,($i==null?void 0:$i.indexOf("Mobi"))>=0,sp=!0,Er({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Uo=la,Fl=Uo,ap=navigator.language;else if(typeof Kr=="object"){Sl=Kr.platform==="win32",xl=Kr.platform==="darwin",wl=Kr.platform==="linux",wl&&Kr.env.SNAP&&Kr.env.SNAP_REVISION,Kr.env.CI||Kr.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Uo=la,Fl=la;const e=Kr.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];Uo=t.locale,ap=t.osLocale,Fl=n||la,dg=t._translationsConfigFile}catch{}}else console.error("Unable to resolve platform.");const to=Sl,mg=xl;sp&&Vi.importScripts;const Xi=$i,gg=typeof Vi.postMessage=="function"&&!Vi.importScripts;(()=>{if(gg){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 yg=!!(Xi&&Xi.indexOf("Chrome")>=0);Xi&&Xi.indexOf("Firefox")>=0,!yg&&Xi&&Xi.indexOf("Safari")>=0,Xi&&Xi.indexOf("Edg/")>=0,Xi&&Xi.indexOf("Android")>=0;class Dg{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 op{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 up;function bg(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function vg(e){return e.split(/\r\n|\r|\n/)}function Eg(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 Ag(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 lp(e){return e>=65&&e<=90}function Nl(e){return 55296<=e&&e<=56319}function Cg(e){return 56320<=e&&e<=57343}function Sg(e,t){return(e-55296<<10)+(t-56320)+65536}function xg(e,t,n){const r=e.charCodeAt(n);if(Nl(r)&&n+1<t){const i=e.charCodeAt(n+1);if(Cg(i))return Sg(r,i)}return r}const wg=/^[\t\n\r\x20-\x7E]*$/;function Fg(e){return wg.test(e)}class _i{static getInstance(t){return _i.cache.get(Array.from(t))}static getLocales(){return _i._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())}}up=_i,_i.ambiguousCharacterData=new op(()=>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]}')),_i.cache=new Dg(e=>{function t(l){const A=new Map;for(let p=0;p<l.length;p+=2)A.set(l[p],l[p+1]);return A}function n(l,A){const p=new Map(l);for(const[O,k]of A)p.set(O,k);return p}function r(l,A){if(!l)return A;const p=new Map;for(const[O,k]of l)A.has(O)&&p.set(O,k);return p}const i=up.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 A=t(i[l]);a=r(a,A)}const o=t(i._common),u=n(o,a);return new _i(u)}),_i._locales=new op(()=>Object.keys(_i.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));class ys{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(ys.getRawData())),this._data}static isInvisibleCharacter(t){return ys.getData().has(t)}static get codePoints(){return ys.getData()}}ys._data=void 0;const Ng="$initialize";class _g{constructor(t,n,r,i){this.vsWorker=t,this.req=n,this.method=r,this.args=i,this.type=0}}class cp{constructor(t,n,r,i){this.vsWorker=t,this.seq=n,this.res=r,this.err=i,this.type=1}}class Tg{constructor(t,n,r,i){this.vsWorker=t,this.req=n,this.eventName=r,this.arg=i,this.type=2}}class kg{constructor(t,n,r){this.vsWorker=t,this.req=n,this.event=r,this.type=3}}class Lg{constructor(t,n){this.vsWorker=t,this.req=n,this.type=4}}class Pg{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 _g(this._workerId,r,t,n))})}listen(t,n){let r=null;const i=new Qi({onWillAddFirstListener:()=>{r=String(++this._lastSentReq),this._pendingEmitters.set(r,i),this._send(new Tg(this._workerId,r,t,n))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(r),this._send(new Lg(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 cp(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=rp(i.detail)),this._send(new cp(this._workerId,n,void 0,rp(i)))})}_handleSubscribeEventMessage(t){const n=t.req,r=this._handler.handleEvent(t.eventName,t.arg)(i=>{this._send(new kg(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 fp(e){return e[0]==="o"&&e[1]==="n"&&lp(e.charCodeAt(2))}function pp(e){return/^onDynamic/.test(e)&&lp(e.charCodeAt(9))}function Bg(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(pp(a)){s[a]=i(a);continue}if(fp(a)){s[a]=n(a,void 0);continue}s[a]=r(a)}return s}class Mg{constructor(t,n){this._requestHandlerFactory=n,this._requestHandler=null,this._protocol=new Pg({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===Ng)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(pp(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(fp(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=Bg(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(Al(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 A=globalThis.require;A([r],p=>{if(this._requestHandler=p.create(o),!this._requestHandler){l(new Error("No RequestHandler!"));return}u(Al(this._requestHandler))},l)}))}}class Ds{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 dp(e,t){return(t<<5)-t+e|0}function Ig(e,t){t=dp(149417,t);for(let n=0,r=e.length;n<r;n++)t=dp(e.charCodeAt(n),t);return t}class hp{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 Og(e,t,n){return new bs(new hp(e),new hp(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 mp{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 Ds(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 bs{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;const[i,s,a]=bs._getElements(t),[o,u,l]=bs._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(bs._isStringArray(n)){const r=new Int32Array(n.length);for(let i=0,s=n.length;i<s;i++)r[i]=Ig(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=bs._getStrictElement(this._originalSequence,t),i=bs._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 p;return r<=i?(ca.Assert(t===n+1,"originalStart should only be one more than originalEnd"),p=[new Ds(t,0,r,i-r+1)]):t<=n?(ca.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),p=[new Ds(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"),p=[]),p}const a=[0],o=[0],u=this.ComputeRecursionPoint(t,n,r,i,a,o,s),l=a[0],A=o[0];if(u!==null)return u;if(!s[0]){const p=this.ComputeDiffRecursive(t,l,r,A,s);let O=[];return s[0]?O=[new Ds(l+1,n-(l+1)+1,A+1,i-(A+1)+1)]:O=this.ComputeDiffRecursive(l+1,n,A+1,i,s),this.ConcatenateChanges(p,O)}return[new Ds(t,n-t+1,r,i-r+1)]}WALKTRACE(t,n,r,i,s,a,o,u,l,A,p,O,k,re,te,N,oe,Te){let Le=null,Ge=null,he=new mp,ke=n,ze=r,Et=k[0]-N[0]-i,Ce=-1073741824,xe=this.m_forwardHistory.length-1;do{const et=Et+t;et===ke||et<ze&&l[et-1]<l[et+1]?(p=l[et+1],re=p-Et-i,p<Ce&&he.MarkNextChange(),Ce=p,he.AddModifiedElement(p+1,re),Et=et+1-t):(p=l[et-1]+1,re=p-Et-i,p<Ce&&he.MarkNextChange(),Ce=p-1,he.AddOriginalElement(p,re+1),Et=et-1-t),xe>=0&&(l=this.m_forwardHistory[xe],t=l[0],ke=1,ze=l.length-1)}while(--xe>=-1);if(Le=he.getReverseChanges(),Te[0]){let et=k[0]+1,Ve=N[0]+1;if(Le!==null&&Le.length>0){const Rt=Le[Le.length-1];et=Math.max(et,Rt.getOriginalEnd()),Ve=Math.max(Ve,Rt.getModifiedEnd())}Ge=[new Ds(et,O-et+1,Ve,te-Ve+1)]}else{he=new mp,ke=a,ze=o,Et=k[0]-N[0]-u,Ce=1073741824,xe=oe?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const et=Et+s;et===ke||et<ze&&A[et-1]>=A[et+1]?(p=A[et+1]-1,re=p-Et-u,p>Ce&&he.MarkNextChange(),Ce=p+1,he.AddOriginalElement(p+1,re+1),Et=et+1-s):(p=A[et-1],re=p-Et-u,p>Ce&&he.MarkNextChange(),Ce=p,he.AddModifiedElement(p+1,re+1),Et=et-1-s),xe>=0&&(A=this.m_reverseHistory[xe],s=A[0],ke=1,ze=A.length-1)}while(--xe>=-1);Ge=he.getChanges()}return this.ConcatenateChanges(Le,Ge)}ComputeRecursionPoint(t,n,r,i,s,a,o){let u=0,l=0,A=0,p=0,O=0,k=0;t--,r--,s[0]=0,a[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const re=n-t+(i-r),te=re+1,N=new Int32Array(te),oe=new Int32Array(te),Te=i-r,Le=n-t,Ge=t-r,he=n-i,ze=(Le-Te)%2===0;N[Te]=t,oe[Le]=n,o[0]=!1;for(let Et=1;Et<=re/2+1;Et++){let Ce=0,xe=0;A=this.ClipDiagonalBound(Te-Et,Et,Te,te),p=this.ClipDiagonalBound(Te+Et,Et,Te,te);for(let Ve=A;Ve<=p;Ve+=2){Ve===A||Ve<p&&N[Ve-1]<N[Ve+1]?u=N[Ve+1]:u=N[Ve-1]+1,l=u-(Ve-Te)-Ge;const Rt=u;for(;u<n&&l<i&&this.ElementsAreEqual(u+1,l+1);)u++,l++;if(N[Ve]=u,u+l>Ce+xe&&(Ce=u,xe=l),!ze&&Math.abs(Ve-Le)<=Et-1&&u>=oe[Ve])return s[0]=u,a[0]=l,Rt<=oe[Ve]&&1447>0&&Et<=1447+1?this.WALKTRACE(Te,A,p,Ge,Le,O,k,he,N,oe,u,n,s,l,i,a,ze,o):null}const et=(Ce-t+(xe-r)-Et)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Ce,et))return o[0]=!0,s[0]=Ce,a[0]=xe,et>0&&1447>0&&Et<=1447+1?this.WALKTRACE(Te,A,p,Ge,Le,O,k,he,N,oe,u,n,s,l,i,a,ze,o):(t++,r++,[new Ds(t,n-t+1,r,i-r+1)]);O=this.ClipDiagonalBound(Le-Et,Et,Le,te),k=this.ClipDiagonalBound(Le+Et,Et,Le,te);for(let Ve=O;Ve<=k;Ve+=2){Ve===O||Ve<k&&oe[Ve-1]>=oe[Ve+1]?u=oe[Ve+1]-1:u=oe[Ve-1],l=u-(Ve-Le)-he;const Rt=u;for(;u>t&&l>r&&this.ElementsAreEqual(u,l);)u--,l--;if(oe[Ve]=u,ze&&Math.abs(Ve-Te)<=Et&&u<=N[Ve])return s[0]=u,a[0]=l,Rt>=N[Ve]&&1447>0&&Et<=1447+1?this.WALKTRACE(Te,A,p,Ge,Le,O,k,he,N,oe,u,n,s,l,i,a,ze,o):null}if(Et<=1447){let Ve=new Int32Array(p-A+2);Ve[0]=Te-A+1,fa.Copy2(N,A,Ve,1,p-A+1),this.m_forwardHistory.push(Ve),Ve=new Int32Array(k-O+2),Ve[0]=Le-O+1,fa.Copy2(oe,O,Ve,1,k-O+1),this.m_reverseHistory.push(Ve)}}return this.WALKTRACE(Te,A,p,Ge,Le,O,k,he,N,oe,u,n,s,l,i,a,ze,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 p=t[n-1];i=p.originalStart+p.originalLength,s=p.modifiedStart+p.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 p=1;;p++){const O=r.originalStart-p,k=r.modifiedStart-p;if(O<i||k<s||a&&!this.OriginalElementsAreEqual(O,O+r.originalLength)||o&&!this.ModifiedElementsAreEqual(k,k+r.modifiedLength))break;const te=(O===i&&k===s?5:0)+this._boundaryScore(O,r.originalLength,k,r.modifiedLength);te>l&&(l=te,u=p)}r.originalStart-=u,r.modifiedStart-=u;const A=[null];if(n>0&&this.ChangesOverlap(t[n-1],t[n],A)){t[n-1]=A[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,A=i.modifiedStart,p=s.modifiedStart+s.modifiedLength,O=p-A;if(a<5&&l<20&&O<20){const k=this._findBetterContiguousSequence(o,l,A,O,a);if(k){const[re,te]=k;(re!==i.originalStart+i.originalLength||te!==i.modifiedStart+i.modifiedLength)&&(i.originalLength=re-i.originalStart,i.modifiedLength=te-i.modifiedStart,s.originalStart=re+a,s.modifiedStart=te+a,s.originalLength=u-s.originalStart,s.modifiedLength=p-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,A=0;for(let p=t;p<a;p++)for(let O=r;O<o;O++){const k=this._contiguousSequenceScore(p,O,s);k>0&&k>u&&(u=k,l=p,A=O)}return u>0?[l,A]: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 Ds(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 to?"win32":mg?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Wo=pa.cwd,jg=pa.env,Rg=pa.platform,$g=65,Vg=97,qg=90,Ug=122,vs=46,Jr=47,pi=92,Es=58,Wg=63;class gp 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 Gg(e,t){if(e===null||typeof e!="object")throw new gp(t,"Object",e)}function Lr(e,t){if(typeof e!="string")throw new gp(t,"string",e)}const As=Rg==="win32";function Xn(e){return e===Jr||e===pi}function _l(e){return e===Jr}function Cs(e){return e>=$g&&e<=qg||e>=Vg&&e<=Ug}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)!==vs||i.charCodeAt(i.length-2)!==vs){if(i.length>2){const A=i.lastIndexOf(n);A===-1?(i="",s=0):(i=i.slice(0,A),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===vs&&o!==-1?++o:o=-1}return i}function yp(e,t){Gg(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 ai={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=jg[`=${t}`]||Wo(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===pi)&&(s=`${t}\\`));const a=s.length;let o=0,u="",l=!1;const A=s.charCodeAt(0);if(a===1)Xn(A)&&(o=1,l=!0);else if(Xn(A))if(l=!0,Xn(s.charCodeAt(1))){let p=2,O=p;for(;p<a&&!Xn(s.charCodeAt(p));)p++;if(p<a&&p!==O){const k=s.slice(O,p);for(O=p;p<a&&Xn(s.charCodeAt(p));)p++;if(p<a&&p!==O){for(O=p;p<a&&!Xn(s.charCodeAt(p));)p++;(p===a||p!==O)&&(u=`\\\\${k}\\${s.slice(O,p)}`,o=p)}}}else o=1;else Cs(A)&&s.charCodeAt(1)===Es&&(u=s.slice(0,2),o=2,a>2&&Xn(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,"\\",Xn),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 _l(s)?"\\":e;if(Xn(s))if(i=!0,Xn(e.charCodeAt(1))){let o=2,u=o;for(;o<t&&!Xn(e.charCodeAt(o));)o++;if(o<t&&o!==u){const l=e.slice(u,o);for(u=o;o<t&&Xn(e.charCodeAt(o));)o++;if(o<t&&o!==u){for(u=o;o<t&&!Xn(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 Cs(s)&&e.charCodeAt(1)===Es&&(r=e.slice(0,2),n=2,t>2&&Xn(e.charCodeAt(2))&&(i=!0,n=3));let a=n<t?Go(e.slice(n),!i,"\\",Xn):"";return a.length===0&&!i&&(a="."),a.length>0&&Xn(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 Xn(n)||t>2&&Cs(n)&&e.charCodeAt(1)===Es&&Xn(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"&&Xn(n.charCodeAt(0))){++i;const s=n.length;s>1&&Xn(n.charCodeAt(1))&&(++i,s>2&&(Xn(n.charCodeAt(2))?++i:r=!1))}if(r){for(;i<t.length&&Xn(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return ai.normalize(t)},relative(e,t){if(Lr(e,"from"),Lr(t,"to"),e===t)return"";const n=ai.resolve(e),r=ai.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===pi;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===pi;)s--;const a=s-i;let o=0;for(;o<t.length&&t.charCodeAt(o)===pi;)o++;let u=t.length;for(;u-1>o&&t.charCodeAt(u-1)===pi;)u--;const l=u-o,A=a<l?a:l;let p=-1,O=0;for(;O<A;O++){const re=e.charCodeAt(i+O);if(re!==t.charCodeAt(o+O))break;re===pi&&(p=O)}if(O!==A){if(p===-1)return r}else{if(l>A){if(t.charCodeAt(o+O)===pi)return r.slice(o+O+1);if(O===2)return r.slice(o+O)}a>A&&(e.charCodeAt(i+O)===pi?p=O:O===2&&(p=3)),p===-1&&(p=0)}let k="";for(O=i+p+1;O<=s;++O)(O===s||e.charCodeAt(O)===pi)&&(k+=k.length===0?"..":"\\..");return o+=p,k.length>0?`${k}${r.slice(o,u)}`:(r.charCodeAt(o)===pi&&++o,r.slice(o,u))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=ai.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===pi){if(t.charCodeAt(1)===pi){const n=t.charCodeAt(2);if(n!==Wg&&n!==vs)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Cs(t.charCodeAt(0))&&t.charCodeAt(1)===Es&&t.charCodeAt(2)===pi)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 Xn(i)?e:".";if(Xn(i)){if(n=r=1,Xn(e.charCodeAt(1))){let o=2,u=o;for(;o<t&&!Xn(e.charCodeAt(o));)o++;if(o<t&&o!==u){for(u=o;o<t&&Xn(e.charCodeAt(o));)o++;if(o<t&&o!==u){for(u=o;o<t&&!Xn(e.charCodeAt(o));)o++;if(o===t)return e;o!==u&&(n=r=o+1)}}}}else Cs(i)&&e.charCodeAt(1)===Es&&(n=t>2&&Xn(e.charCodeAt(2))?3:2,r=n);let s=-1,a=!0;for(let o=t-1;o>=r;--o)if(Xn(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&&Cs(e.charCodeAt(0))&&e.charCodeAt(1)===Es&&(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(Xn(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(Xn(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)===Es&&Cs(e.charCodeAt(0))&&(t=r=2);for(let o=e.length-1;o>=t;--o){const u=e.charCodeAt(o);if(Xn(u)){if(!s){r=o+1;break}continue}i===-1&&(s=!1,i=o+1),u===vs?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:yp.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 Xn(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(Xn(i)){if(r=1,Xn(e.charCodeAt(1))){let p=2,O=p;for(;p<n&&!Xn(e.charCodeAt(p));)p++;if(p<n&&p!==O){for(O=p;p<n&&Xn(e.charCodeAt(p));)p++;if(p<n&&p!==O){for(O=p;p<n&&!Xn(e.charCodeAt(p));)p++;p===n?r=p:p!==O&&(r=p+1)}}}}else if(Cs(i)&&e.charCodeAt(1)===Es){if(n<=2)return t.root=t.dir=e,t;if(r=2,Xn(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,A=0;for(;l>=r;--l){if(i=e.charCodeAt(l),Xn(i)){if(!u){a=l+1;break}continue}o===-1&&(u=!1,o=l+1),i===vs?s===-1?s=l:A!==1&&(A=1):s!==-1&&(A=-1)}return o!==-1&&(s===-1||A===0||A===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},Jg=(()=>{if(As){const e=/\\/g;return()=>{const t=Wo().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>Wo()})(),di={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:Jg();Lr(i,"path"),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===Jr)}return t=Go(t,!n,"/",_l),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,"/",_l),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?".":di.normalize(t)},relative(e,t){if(Lr(e,"from"),Lr(t,"to"),e===t||(e=di.resolve(e),t=di.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 p=e.charCodeAt(n+l);if(p!==t.charCodeAt(s+l))break;p===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 A="";for(l=n+u+1;l<=r;++l)(l===r||e.charCodeAt(l)===Jr)&&(A+=A.length===0?"..":"/..");return`${A}${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===vs?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:yp.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 A=e.charCodeAt(u);if(A===Jr){if(!o){s=u+1;break}continue}a===-1&&(o=!1,a=u+1),A===vs?i===-1?i=u:l!==1&&(l=1):i!==-1&&(l=-1)}if(a!==-1){const A=s===0&&n?1:s;i===-1||l===0||l===1&&i===a-1&&i===s+1?t.base=t.name=e.slice(A,a):(t.name=e.slice(A,i),t.base=e.slice(A,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};di.win32=ai.win32=ai,di.posix=ai.posix=di,As?ai.normalize:di.normalize,As?ai.resolve:di.resolve,As?ai.relative:di.relative,As?ai.dirname:di.dirname,As?ai.basename:di.basename,As?ai.extname:di.extname,As?ai.sep:di.sep;const Yg=/^\w[\w\d+.-]*$/,Hg=/^\//,zg=/^\/\//;function Qg(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&&!Yg.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!Hg.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(zg.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 Xg(e,t){return!e&&!t?"file":e}function Kg(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="/",Zg=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let Tl=class yl{static isUri(t){return t instanceof yl?!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=Xg(t,a),this.authority=n||Ar,this.path=Kg(this.scheme,r||Ar),this.query=i||Ar,this.fragment=s||Ar,Qg(this,a))}get fsPath(){return kl(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=Zg.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(to&&(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 to&&t.scheme==="file"?r=yl.file(ai.join(kl(t,!0),...n)).path:r=di.join(t.path,...n),t.with({path:r})}toString(t=!1){return Ll(this,t)}toJSON(){return this}static revive(t){var n,r;if(t){if(t instanceof yl)return t;{const i=new da(t);return i._formatted=(n=t.external)!==null&&n!==void 0?n:null,i._fsPath=t._sep===Dp&&(r=t.fsPath)!==null&&r!==void 0?r:null,i}}else return t}};const Dp=to?1:void 0;class da extends Tl{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=kl(this,!1)),this._fsPath}toString(t=!1){return t?Ll(this,!0):(this._formatted||(this._formatted=Ll(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=Dp),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 bp={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 vp(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=bp[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 e1(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+=bp[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function kl(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,to&&(n=n.replace(/\//g,"\\")),n}function Ll(e,t){const n=t?e1:vp;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 A=s.substr(0,l);s=s.substr(l+1),l=A.lastIndexOf(":"),l===-1?r+=n(A,!1,!1):(r+=n(A.substr(0,l),!1,!1),r+=":",r+=n(A.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:vp(u,!1,!1)),r}function Ep(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+Ep(e.substr(3)):e}}const Ap=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Jo(e){return e.match(Ap)?e.replace(Ap,t=>Ep(t)):e}let Ki=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"}},hi=class jr{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 jr.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return jr.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 jr.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 jr.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 jr.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 jr(r,i,s,a)}intersectRanges(t){return jr.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,A=n.endColumn;return r<o?(r=o,i=u):r===o&&(i=Math.max(i,u)),s>l?(s=l,a=A):s===l&&(a=Math.min(a,A)),r>s||r===s&&i>a?null:new jr(r,i,s,a)}equalsRange(t){return jr.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 jr.getEndPosition(this)}static getEndPosition(t){return new Ki(t.endLineNumber,t.endColumn)}getStartPosition(){return jr.getStartPosition(this)}static getStartPosition(t){return new Ki(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new jr(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new jr(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return jr.collapseToStart(this)}static collapseToStart(t){return new jr(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return jr.collapseToEnd(this)}static collapseToEnd(t){return new jr(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new jr(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new jr(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new jr(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,A=n.endLineNumber|0;if(l===A){const p=t.endColumn|0,O=n.endColumn|0;return p-O}return l-A}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 Cp;(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})(Cp||(Cp={}));function Sp(e){return e<0?0:e>255?255:e|0}function ha(e){return e<0?0:e>4294967295?4294967295:e|0}class t1{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 n1(i,t-a)}}class n1{constructor(t,n){this.index=t,this.remainder=n,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=n}}class r1{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 Ki(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 t1(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=vg(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 i1="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function s1(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(const n of i1)e.indexOf(n)>=0||(t+="\\"+n);return t+="\\s]+)",new RegExp(t,"g")}const xp=s1();function a1(e){let t=xp;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 wp=new ng;wp.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Pl(e,t,n,r,i){if(i||(i=Vo.first(wp)),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),Pl(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 A=a-i.windowSize*l;t.lastIndex=Math.max(0,A);const p=o1(t,n,a,o);if(!p&&u||(u=p,A<=0))break;o=A}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 o1(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 Bl{constructor(t){const n=Sp(t);this._defaultValue=n,this._asciiMap=Bl._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const r=Sp(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 u1{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 l1{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 u1(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 Ml=null;function c1(){return Ml===null&&(Ml=new l1([[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]])),Ml}let no=null;function f1(){if(no===null){no=new Bl(0);const e=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;n<e.length;n++)no.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)no.set(t.charCodeAt(n),2)}return no}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=c1()){const r=f1(),i=[];for(let s=1,a=t.getLineCount();s<=a;s++){const o=t.getLineContent(s),u=o.length;let l=0,A=0,p=0,O=1,k=!1,re=!1,te=!1,N=!1;for(;l<u;){let oe=!1;const Te=o.charCodeAt(l);if(O===13){let Le;switch(Te){case 40:k=!0,Le=0;break;case 41:Le=k?0:1;break;case 91:te=!0,re=!0,Le=0;break;case 93:te=!1,Le=re?0:1;break;case 123:N=!0,Le=0;break;case 125:Le=N?0:1;break;case 39:case 34:case 96:p===Te?Le=1:p===39||p===34||p===96?Le=0:Le=1;break;case 42:Le=p===42?1:0;break;case 124:Le=p===124?1:0;break;case 32:Le=te?0:1;break;default:Le=r.get(Te)}Le===1&&(i.push(Yo._createLink(r,o,s,A,l)),oe=!0)}else if(O===12){let Le;Te===91?(re=!0,Le=0):Le=r.get(Te),Le===1?oe=!0:O=13}else O=n.nextState(O,Te),O===0&&(oe=!0);oe&&(O=1,k=!1,re=!1,N=!1,A=l+1,p=Te),l++}O===13&&i.push(Yo._createLink(r,o,s,A,u))}return i}}function p1(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:Yo.computeLinks(e)}class Il{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}}Il.INSTANCE=new Il;const Fp=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:bl.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:Fp})})(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?Fp:(this._emitter||(this._emitter=new Qi),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}class d1{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 Ol{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 Ol,jl=new Ol,Rl=new Ol,h1=new Array(230),m1=Object.create(null),g1=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,A,p,O,k]=i;if(r[a]||(r[a]=!0,m1[o]=a,g1[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),jl.define(u,O||l),Rl.define(u,k||O||l)}A&&(h1[A]=u)}})();var Np;(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 jl.keyCodeToStr(o)}e.toUserSettingsUS=r;function i(o){return Rl.keyCodeToStr(o)}e.toUserSettingsGeneral=i;function s(o){return jl.strToKeyCode(o)||Rl.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})(Np||(Np={}));function y1(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class Ai extends hi{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 Ai.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 Ai(this.startLineNumber,this.startColumn,t,n):new Ai(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new Ki(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Ki(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new Ai(t,n,this.endLineNumber,this.endColumn):new Ai(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new Ai(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new Ai(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new Ai(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new Ai(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 Ai(t,n,r,i):new Ai(r,i,t,n)}}const _p=Object.create(null);function B(e,t){if(ug(t)){const n=_p[t];if(n===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return _p[e]=t,{id:e}}const Nn={add:B("add",6e4),plus:B("plus",6e4),gistNew:B("gist-new",6e4),repoCreate:B("repo-create",6e4),lightbulb:B("lightbulb",60001),lightBulb:B("light-bulb",60001),repo:B("repo",60002),repoDelete:B("repo-delete",60002),gistFork:B("gist-fork",60003),repoForked:B("repo-forked",60003),gitPullRequest:B("git-pull-request",60004),gitPullRequestAbandoned:B("git-pull-request-abandoned",60004),recordKeys:B("record-keys",60005),keyboard:B("keyboard",60005),tag:B("tag",60006),tagAdd:B("tag-add",60006),tagRemove:B("tag-remove",60006),person:B("person",60007),personFollow:B("person-follow",60007),personOutline:B("person-outline",60007),personFilled:B("person-filled",60007),gitBranch:B("git-branch",60008),gitBranchCreate:B("git-branch-create",60008),gitBranchDelete:B("git-branch-delete",60008),sourceControl:B("source-control",60008),mirror:B("mirror",60009),mirrorPublic:B("mirror-public",60009),star:B("star",60010),starAdd:B("star-add",60010),starDelete:B("star-delete",60010),starEmpty:B("star-empty",60010),comment:B("comment",60011),commentAdd:B("comment-add",60011),alert:B("alert",60012),warning:B("warning",60012),search:B("search",60013),searchSave:B("search-save",60013),logOut:B("log-out",60014),signOut:B("sign-out",60014),logIn:B("log-in",60015),signIn:B("sign-in",60015),eye:B("eye",60016),eyeUnwatch:B("eye-unwatch",60016),eyeWatch:B("eye-watch",60016),circleFilled:B("circle-filled",60017),primitiveDot:B("primitive-dot",60017),closeDirty:B("close-dirty",60017),debugBreakpoint:B("debug-breakpoint",60017),debugBreakpointDisabled:B("debug-breakpoint-disabled",60017),debugHint:B("debug-hint",60017),primitiveSquare:B("primitive-square",60018),edit:B("edit",60019),pencil:B("pencil",60019),info:B("info",60020),issueOpened:B("issue-opened",60020),gistPrivate:B("gist-private",60021),gitForkPrivate:B("git-fork-private",60021),lock:B("lock",60021),mirrorPrivate:B("mirror-private",60021),close:B("close",60022),removeClose:B("remove-close",60022),x:B("x",60022),repoSync:B("repo-sync",60023),sync:B("sync",60023),clone:B("clone",60024),desktopDownload:B("desktop-download",60024),beaker:B("beaker",60025),microscope:B("microscope",60025),vm:B("vm",60026),deviceDesktop:B("device-desktop",60026),file:B("file",60027),fileText:B("file-text",60027),more:B("more",60028),ellipsis:B("ellipsis",60028),kebabHorizontal:B("kebab-horizontal",60028),mailReply:B("mail-reply",60029),reply:B("reply",60029),organization:B("organization",60030),organizationFilled:B("organization-filled",60030),organizationOutline:B("organization-outline",60030),newFile:B("new-file",60031),fileAdd:B("file-add",60031),newFolder:B("new-folder",60032),fileDirectoryCreate:B("file-directory-create",60032),trash:B("trash",60033),trashcan:B("trashcan",60033),history:B("history",60034),clock:B("clock",60034),folder:B("folder",60035),fileDirectory:B("file-directory",60035),symbolFolder:B("symbol-folder",60035),logoGithub:B("logo-github",60036),markGithub:B("mark-github",60036),github:B("github",60036),terminal:B("terminal",60037),console:B("console",60037),repl:B("repl",60037),zap:B("zap",60038),symbolEvent:B("symbol-event",60038),error:B("error",60039),stop:B("stop",60039),variable:B("variable",60040),symbolVariable:B("symbol-variable",60040),array:B("array",60042),symbolArray:B("symbol-array",60042),symbolModule:B("symbol-module",60043),symbolPackage:B("symbol-package",60043),symbolNamespace:B("symbol-namespace",60043),symbolObject:B("symbol-object",60043),symbolMethod:B("symbol-method",60044),symbolFunction:B("symbol-function",60044),symbolConstructor:B("symbol-constructor",60044),symbolBoolean:B("symbol-boolean",60047),symbolNull:B("symbol-null",60047),symbolNumeric:B("symbol-numeric",60048),symbolNumber:B("symbol-number",60048),symbolStructure:B("symbol-structure",60049),symbolStruct:B("symbol-struct",60049),symbolParameter:B("symbol-parameter",60050),symbolTypeParameter:B("symbol-type-parameter",60050),symbolKey:B("symbol-key",60051),symbolText:B("symbol-text",60051),symbolReference:B("symbol-reference",60052),goToFile:B("go-to-file",60052),symbolEnum:B("symbol-enum",60053),symbolValue:B("symbol-value",60053),symbolRuler:B("symbol-ruler",60054),symbolUnit:B("symbol-unit",60054),activateBreakpoints:B("activate-breakpoints",60055),archive:B("archive",60056),arrowBoth:B("arrow-both",60057),arrowDown:B("arrow-down",60058),arrowLeft:B("arrow-left",60059),arrowRight:B("arrow-right",60060),arrowSmallDown:B("arrow-small-down",60061),arrowSmallLeft:B("arrow-small-left",60062),arrowSmallRight:B("arrow-small-right",60063),arrowSmallUp:B("arrow-small-up",60064),arrowUp:B("arrow-up",60065),bell:B("bell",60066),bold:B("bold",60067),book:B("book",60068),bookmark:B("bookmark",60069),debugBreakpointConditionalUnverified:B("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:B("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:B("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:B("debug-breakpoint-data-unverified",60072),debugBreakpointData:B("debug-breakpoint-data",60073),debugBreakpointDataDisabled:B("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:B("debug-breakpoint-log-unverified",60074),debugBreakpointLog:B("debug-breakpoint-log",60075),debugBreakpointLogDisabled:B("debug-breakpoint-log-disabled",60075),briefcase:B("briefcase",60076),broadcast:B("broadcast",60077),browser:B("browser",60078),bug:B("bug",60079),calendar:B("calendar",60080),caseSensitive:B("case-sensitive",60081),check:B("check",60082),checklist:B("checklist",60083),chevronDown:B("chevron-down",60084),dropDownButton:B("drop-down-button",60084),chevronLeft:B("chevron-left",60085),chevronRight:B("chevron-right",60086),chevronUp:B("chevron-up",60087),chromeClose:B("chrome-close",60088),chromeMaximize:B("chrome-maximize",60089),chromeMinimize:B("chrome-minimize",60090),chromeRestore:B("chrome-restore",60091),circle:B("circle",60092),circleOutline:B("circle-outline",60092),debugBreakpointUnverified:B("debug-breakpoint-unverified",60092),circleSlash:B("circle-slash",60093),circuitBoard:B("circuit-board",60094),clearAll:B("clear-all",60095),clippy:B("clippy",60096),closeAll:B("close-all",60097),cloudDownload:B("cloud-download",60098),cloudUpload:B("cloud-upload",60099),code:B("code",60100),collapseAll:B("collapse-all",60101),colorMode:B("color-mode",60102),commentDiscussion:B("comment-discussion",60103),compareChanges:B("compare-changes",60157),creditCard:B("credit-card",60105),dash:B("dash",60108),dashboard:B("dashboard",60109),database:B("database",60110),debugContinue:B("debug-continue",60111),debugDisconnect:B("debug-disconnect",60112),debugPause:B("debug-pause",60113),debugRestart:B("debug-restart",60114),debugStart:B("debug-start",60115),debugStepInto:B("debug-step-into",60116),debugStepOut:B("debug-step-out",60117),debugStepOver:B("debug-step-over",60118),debugStop:B("debug-stop",60119),debug:B("debug",60120),deviceCameraVideo:B("device-camera-video",60121),deviceCamera:B("device-camera",60122),deviceMobile:B("device-mobile",60123),diffAdded:B("diff-added",60124),diffIgnored:B("diff-ignored",60125),diffModified:B("diff-modified",60126),diffRemoved:B("diff-removed",60127),diffRenamed:B("diff-renamed",60128),diff:B("diff",60129),discard:B("discard",60130),editorLayout:B("editor-layout",60131),emptyWindow:B("empty-window",60132),exclude:B("exclude",60133),extensions:B("extensions",60134),eyeClosed:B("eye-closed",60135),fileBinary:B("file-binary",60136),fileCode:B("file-code",60137),fileMedia:B("file-media",60138),filePdf:B("file-pdf",60139),fileSubmodule:B("file-submodule",60140),fileSymlinkDirectory:B("file-symlink-directory",60141),fileSymlinkFile:B("file-symlink-file",60142),fileZip:B("file-zip",60143),files:B("files",60144),filter:B("filter",60145),flame:B("flame",60146),foldDown:B("fold-down",60147),foldUp:B("fold-up",60148),fold:B("fold",60149),folderActive:B("folder-active",60150),folderOpened:B("folder-opened",60151),gear:B("gear",60152),gift:B("gift",60153),gistSecret:B("gist-secret",60154),gist:B("gist",60155),gitCommit:B("git-commit",60156),gitCompare:B("git-compare",60157),gitMerge:B("git-merge",60158),githubAction:B("github-action",60159),githubAlt:B("github-alt",60160),globe:B("globe",60161),grabber:B("grabber",60162),graph:B("graph",60163),gripper:B("gripper",60164),heart:B("heart",60165),home:B("home",60166),horizontalRule:B("horizontal-rule",60167),hubot:B("hubot",60168),inbox:B("inbox",60169),issueClosed:B("issue-closed",60324),issueReopened:B("issue-reopened",60171),issues:B("issues",60172),italic:B("italic",60173),jersey:B("jersey",60174),json:B("json",60175),bracket:B("bracket",60175),kebabVertical:B("kebab-vertical",60176),key:B("key",60177),law:B("law",60178),lightbulbAutofix:B("lightbulb-autofix",60179),linkExternal:B("link-external",60180),link:B("link",60181),listOrdered:B("list-ordered",60182),listUnordered:B("list-unordered",60183),liveShare:B("live-share",60184),loading:B("loading",60185),location:B("location",60186),mailRead:B("mail-read",60187),mail:B("mail",60188),markdown:B("markdown",60189),megaphone:B("megaphone",60190),mention:B("mention",60191),milestone:B("milestone",60192),mortarBoard:B("mortar-board",60193),move:B("move",60194),multipleWindows:B("multiple-windows",60195),mute:B("mute",60196),noNewline:B("no-newline",60197),note:B("note",60198),octoface:B("octoface",60199),openPreview:B("open-preview",60200),package_:B("package",60201),paintcan:B("paintcan",60202),pin:B("pin",60203),play:B("play",60204),run:B("run",60204),plug:B("plug",60205),preserveCase:B("preserve-case",60206),preview:B("preview",60207),project:B("project",60208),pulse:B("pulse",60209),question:B("question",60210),quote:B("quote",60211),radioTower:B("radio-tower",60212),reactions:B("reactions",60213),references:B("references",60214),refresh:B("refresh",60215),regex:B("regex",60216),remoteExplorer:B("remote-explorer",60217),remote:B("remote",60218),remove:B("remove",60219),replaceAll:B("replace-all",60220),replace:B("replace",60221),repoClone:B("repo-clone",60222),repoForcePush:B("repo-force-push",60223),repoPull:B("repo-pull",60224),repoPush:B("repo-push",60225),report:B("report",60226),requestChanges:B("request-changes",60227),rocket:B("rocket",60228),rootFolderOpened:B("root-folder-opened",60229),rootFolder:B("root-folder",60230),rss:B("rss",60231),ruby:B("ruby",60232),saveAll:B("save-all",60233),saveAs:B("save-as",60234),save:B("save",60235),screenFull:B("screen-full",60236),screenNormal:B("screen-normal",60237),searchStop:B("search-stop",60238),server:B("server",60240),settingsGear:B("settings-gear",60241),settings:B("settings",60242),shield:B("shield",60243),smiley:B("smiley",60244),sortPrecedence:B("sort-precedence",60245),splitHorizontal:B("split-horizontal",60246),splitVertical:B("split-vertical",60247),squirrel:B("squirrel",60248),starFull:B("star-full",60249),starHalf:B("star-half",60250),symbolClass:B("symbol-class",60251),symbolColor:B("symbol-color",60252),symbolCustomColor:B("symbol-customcolor",60252),symbolConstant:B("symbol-constant",60253),symbolEnumMember:B("symbol-enum-member",60254),symbolField:B("symbol-field",60255),symbolFile:B("symbol-file",60256),symbolInterface:B("symbol-interface",60257),symbolKeyword:B("symbol-keyword",60258),symbolMisc:B("symbol-misc",60259),symbolOperator:B("symbol-operator",60260),symbolProperty:B("symbol-property",60261),wrench:B("wrench",60261),wrenchSubaction:B("wrench-subaction",60261),symbolSnippet:B("symbol-snippet",60262),tasklist:B("tasklist",60263),telescope:B("telescope",60264),textSize:B("text-size",60265),threeBars:B("three-bars",60266),thumbsdown:B("thumbsdown",60267),thumbsup:B("thumbsup",60268),tools:B("tools",60269),triangleDown:B("triangle-down",60270),triangleLeft:B("triangle-left",60271),triangleRight:B("triangle-right",60272),triangleUp:B("triangle-up",60273),twitter:B("twitter",60274),unfold:B("unfold",60275),unlock:B("unlock",60276),unmute:B("unmute",60277),unverified:B("unverified",60278),verified:B("verified",60279),versions:B("versions",60280),vmActive:B("vm-active",60281),vmOutline:B("vm-outline",60282),vmRunning:B("vm-running",60283),watch:B("watch",60284),whitespace:B("whitespace",60285),wholeWord:B("whole-word",60286),window:B("window",60287),wordWrap:B("word-wrap",60288),zoomIn:B("zoom-in",60289),zoomOut:B("zoom-out",60290),listFilter:B("list-filter",60291),listFlat:B("list-flat",60292),listSelection:B("list-selection",60293),selection:B("selection",60293),listTree:B("list-tree",60294),debugBreakpointFunctionUnverified:B("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:B("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:B("debug-breakpoint-function-disabled",60296),debugStackframeActive:B("debug-stackframe-active",60297),circleSmallFilled:B("circle-small-filled",60298),debugStackframeDot:B("debug-stackframe-dot",60298),debugStackframe:B("debug-stackframe",60299),debugStackframeFocused:B("debug-stackframe-focused",60299),debugBreakpointUnsupported:B("debug-breakpoint-unsupported",60300),symbolString:B("symbol-string",60301),debugReverseContinue:B("debug-reverse-continue",60302),debugStepBack:B("debug-step-back",60303),debugRestartFrame:B("debug-restart-frame",60304),callIncoming:B("call-incoming",60306),callOutgoing:B("call-outgoing",60307),menu:B("menu",60308),expandAll:B("expand-all",60309),feedback:B("feedback",60310),groupByRefType:B("group-by-ref-type",60311),ungroupByRefType:B("ungroup-by-ref-type",60312),account:B("account",60313),bellDot:B("bell-dot",60314),debugConsole:B("debug-console",60315),library:B("library",60316),output:B("output",60317),runAll:B("run-all",60318),syncIgnored:B("sync-ignored",60319),pinned:B("pinned",60320),githubInverted:B("github-inverted",60321),debugAlt:B("debug-alt",60305),serverProcess:B("server-process",60322),serverEnvironment:B("server-environment",60323),pass:B("pass",60324),stopCircle:B("stop-circle",60325),playCircle:B("play-circle",60326),record:B("record",60327),debugAltSmall:B("debug-alt-small",60328),vmConnect:B("vm-connect",60329),cloud:B("cloud",60330),merge:B("merge",60331),exportIcon:B("export",60332),graphLeft:B("graph-left",60333),magnet:B("magnet",60334),notebook:B("notebook",60335),redo:B("redo",60336),checkAll:B("check-all",60337),pinnedDirty:B("pinned-dirty",60338),passFilled:B("pass-filled",60339),circleLargeFilled:B("circle-large-filled",60340),circleLarge:B("circle-large",60341),circleLargeOutline:B("circle-large-outline",60341),combine:B("combine",60342),gather:B("gather",60342),table:B("table",60343),variableGroup:B("variable-group",60344),typeHierarchy:B("type-hierarchy",60345),typeHierarchySub:B("type-hierarchy-sub",60346),typeHierarchySuper:B("type-hierarchy-super",60347),gitPullRequestCreate:B("git-pull-request-create",60348),runAbove:B("run-above",60349),runBelow:B("run-below",60350),notebookTemplate:B("notebook-template",60351),debugRerun:B("debug-rerun",60352),workspaceTrusted:B("workspace-trusted",60353),workspaceUntrusted:B("workspace-untrusted",60354),workspaceUnspecified:B("workspace-unspecified",60355),terminalCmd:B("terminal-cmd",60356),terminalDebian:B("terminal-debian",60357),terminalLinux:B("terminal-linux",60358),terminalPowershell:B("terminal-powershell",60359),terminalTmux:B("terminal-tmux",60360),terminalUbuntu:B("terminal-ubuntu",60361),terminalBash:B("terminal-bash",60362),arrowSwap:B("arrow-swap",60363),copy:B("copy",60364),personAdd:B("person-add",60365),filterFilled:B("filter-filled",60366),wand:B("wand",60367),debugLineByLine:B("debug-line-by-line",60368),inspect:B("inspect",60369),layers:B("layers",60370),layersDot:B("layers-dot",60371),layersActive:B("layers-active",60372),compass:B("compass",60373),compassDot:B("compass-dot",60374),compassActive:B("compass-active",60375),azure:B("azure",60376),issueDraft:B("issue-draft",60377),gitPullRequestClosed:B("git-pull-request-closed",60378),gitPullRequestDraft:B("git-pull-request-draft",60379),debugAll:B("debug-all",60380),debugCoverage:B("debug-coverage",60381),runErrors:B("run-errors",60382),folderLibrary:B("folder-library",60383),debugContinueSmall:B("debug-continue-small",60384),beakerStop:B("beaker-stop",60385),graphLine:B("graph-line",60386),graphScatter:B("graph-scatter",60387),pieChart:B("pie-chart",60388),bracketDot:B("bracket-dot",60389),bracketError:B("bracket-error",60390),lockSmall:B("lock-small",60391),azureDevops:B("azure-devops",60392),verifiedFilled:B("verified-filled",60393),newLine:B("newline",60394),layout:B("layout",60395),layoutActivitybarLeft:B("layout-activitybar-left",60396),layoutActivitybarRight:B("layout-activitybar-right",60397),layoutPanelLeft:B("layout-panel-left",60398),layoutPanelCenter:B("layout-panel-center",60399),layoutPanelJustify:B("layout-panel-justify",60400),layoutPanelRight:B("layout-panel-right",60401),layoutPanel:B("layout-panel",60402),layoutSidebarLeft:B("layout-sidebar-left",60403),layoutSidebarRight:B("layout-sidebar-right",60404),layoutStatusbar:B("layout-statusbar",60405),layoutMenubar:B("layout-menubar",60406),layoutCentered:B("layout-centered",60407),layoutSidebarRightOff:B("layout-sidebar-right-off",60416),layoutPanelOff:B("layout-panel-off",60417),layoutSidebarLeftOff:B("layout-sidebar-left-off",60418),target:B("target",60408),indent:B("indent",60409),recordSmall:B("record-small",60410),errorSmall:B("error-small",60411),arrowCircleDown:B("arrow-circle-down",60412),arrowCircleLeft:B("arrow-circle-left",60413),arrowCircleRight:B("arrow-circle-right",60414),arrowCircleUp:B("arrow-circle-up",60415),heartFilled:B("heart-filled",60420),map:B("map",60421),mapFilled:B("map-filled",60422),circleSmall:B("circle-small",60423),bellSlash:B("bell-slash",60424),bellSlashDot:B("bell-slash-dot",60425),commentUnresolved:B("comment-unresolved",60426),gitPullRequestGoToChanges:B("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:B("git-pull-request-new-changes",60428),searchFuzzy:B("search-fuzzy",60429),commentDraft:B("comment-draft",60430),send:B("send",60431),sparkle:B("sparkle",60432),insert:B("insert",60433),dialogError:B("dialog-error","error"),dialogWarning:B("dialog-warning","warning"),dialogInfo:B("dialog-info","info"),dialogClose:B("dialog-close","close"),treeItemExpanded:B("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:B("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:B("tree-filter-on-type-off","list-selection"),treeFilterClear:B("tree-filter-clear","close"),treeItemLoading:B("tree-item-loading","loading"),menuSelection:B("menu-selection","check"),menuSubmenu:B("menu-submenu","chevron-right"),menuBarMore:B("menubar-more","more"),scrollbarButtonLeft:B("scrollbar-button-left","triangle-left"),scrollbarButtonRight:B("scrollbar-button-right","triangle-right"),scrollbarButtonUp:B("scrollbar-button-up","triangle-up"),scrollbarButtonDown:B("scrollbar-button-down","triangle-down"),toolBarMore:B("toolbar-more","more"),quickInputBack:B("quick-input-back","arrow-left")};var $l=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(A){try{l(r.next(A))}catch(p){a(p)}}function u(A){try{l(r.throw(A))}catch(p){a(p)}}function l(A){A.done?s(A.value):i(A.value).then(o,u)}l((r=r.apply(e,t||[])).next())})};class D1{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new Qi,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]),Za(()=>{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 b1(this,t,n);return this._factories.set(t,i),Za(()=>{const s=this._factories.get(t);!s||s!==i||(this._factories.delete(t),s.dispose())})}getOrCreate(t){return $l(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 b1 extends eo{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 $l(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return $l(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 v1{constructor(t,n,r){this.offset=t,this.type=n,this.language=r,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}}var Tp;(function(e){const t=new Map;t.set(0,Nn.symbolMethod),t.set(1,Nn.symbolFunction),t.set(2,Nn.symbolConstructor),t.set(3,Nn.symbolField),t.set(4,Nn.symbolVariable),t.set(5,Nn.symbolClass),t.set(6,Nn.symbolStruct),t.set(7,Nn.symbolInterface),t.set(8,Nn.symbolModule),t.set(9,Nn.symbolProperty),t.set(10,Nn.symbolEvent),t.set(11,Nn.symbolOperator),t.set(12,Nn.symbolUnit),t.set(13,Nn.symbolValue),t.set(15,Nn.symbolEnum),t.set(14,Nn.symbolConstant),t.set(15,Nn.symbolEnum),t.set(16,Nn.symbolEnumMember),t.set(17,Nn.symbolKeyword),t.set(27,Nn.symbolSnippet),t.set(18,Nn.symbolText),t.set(19,Nn.symbolColor),t.set(20,Nn.symbolFile),t.set(21,Nn.symbolReference),t.set(22,Nn.symbolCustomColor),t.set(23,Nn.symbolFolder),t.set(24,Nn.symbolTypeParameter),t.set(25,Nn.account),t.set(26,Nn.issues);function n(s){let a=t.get(s);return a||(console.info("No codicon found for CompletionItemKind "+s),a=Nn.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})(Tp||(Tp={}));var kp;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(kp||(kp={}));var Lp;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Lp||(Lp={}));var Pp;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Pp||(Pp={})),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 Bp;(function(e){const t=new Map;t.set(0,Nn.symbolFile),t.set(1,Nn.symbolModule),t.set(2,Nn.symbolNamespace),t.set(3,Nn.symbolPackage),t.set(4,Nn.symbolClass),t.set(5,Nn.symbolMethod),t.set(6,Nn.symbolProperty),t.set(7,Nn.symbolField),t.set(8,Nn.symbolConstructor),t.set(9,Nn.symbolEnum),t.set(10,Nn.symbolInterface),t.set(11,Nn.symbolFunction),t.set(12,Nn.symbolVariable),t.set(13,Nn.symbolConstant),t.set(14,Nn.symbolString),t.set(15,Nn.symbolNumber),t.set(16,Nn.symbolBoolean),t.set(17,Nn.symbolArray),t.set(18,Nn.symbolObject),t.set(19,Nn.symbolKey),t.set(20,Nn.symbolNull),t.set(21,Nn.symbolEnumMember),t.set(22,Nn.symbolStruct),t.set(23,Nn.symbolEvent),t.set(24,Nn.symbolOperator),t.set(25,Nn.symbolTypeParameter);function n(r){let i=t.get(r);return i||(console.info("No codicon found for SymbolKind "+r),i=Nn.symbolProperty),i}e.toIcon=n})(Bp||(Bp={}));var Mp;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(Mp||(Mp={}));var Ip;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Ip||(Ip={})),new D1;var Op;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(Op||(Op={}));var jp;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(jp||(jp={}));var Rp;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(Rp||(Rp={}));var $p;(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"})($p||($p={}));var Vp;(function(e){e[e.Deprecated=1]="Deprecated"})(Vp||(Vp={}));var qp;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(qp||(qp={}));var Up;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Up||(Up={}));var Wp;(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"})(Wp||(Wp={}));var Gp;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Gp||(Gp={}));var Jp;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Jp||(Jp={}));var Yp;(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"})(Yp||(Yp={}));var Hp;(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"})(Hp||(Hp={}));var zp;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(zp||(zp={}));var Qp;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(Qp||(Qp={}));var Xp;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(Xp||(Xp={}));var Kp;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(Kp||(Kp={}));var Zp;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Zp||(Zp={}));var ed;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(ed||(ed={}));var td;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(td||(td={}));var Vl;(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"})(Vl||(Vl={}));var ql;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(ql||(ql={}));var Ul;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(Ul||(Ul={}));var nd;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(nd||(nd={}));var rd;(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"})(rd||(rd={}));var id;(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"})(id||(id={}));var sd;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(sd||(sd={}));var ad;(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"})(ad||(ad={}));var od;(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"})(od||(od={}));var ud;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(ud||(ud={}));var ld;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(ld||(ld={}));var cd;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(cd||(cd={}));var Wl;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(Wl||(Wl={}));var fd;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(fd||(fd={}));var pd;(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"})(pd||(pd={}));var dd;(function(e){e[e.Deprecated=1]="Deprecated"})(dd||(dd={}));var hd;(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"})(hd||(hd={}));var md;(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"})(md||(md={}));var gd;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(gd||(gd={}));var yd;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(yd||(yd={}));class ro{static chord(t,n){return y1(t,n)}}ro.CtrlCmd=2048,ro.Shift=1024,ro.Alt=512,ro.WinCtrl=256;function E1(){return{editor:void 0,languages:void 0,CancellationTokenSource:d1,Emitter:Qi,KeyCode:Vl,KeyMod:ro,Position:Ki,Range:hi,Selection:Ai,SelectionDirection:Wl,MarkerSeverity:ql,MarkerTag:Ul,Uri:Tl,Token:v1}}var Dd;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(Dd||(Dd={}));var bd;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(bd||(bd={}));var vd;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(vd||(vd={}));var Ed;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Ed||(Ed={}));function A1(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 C1(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 S1(e,t,n,r,i){return A1(e,t,n,r,i)&&C1(e,t,n,r,i)}class x1{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){xg(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||S1(this._wordSeparators,t,n,i,s))return r}while(r);return null}}function w1(e,t="Unreachable"){throw new Error(t)}function Xo(e){if(!e()){debugger;e(),np(new oa("Assertion Failed"))}}function Ad(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 F1{static computeUnicodeHighlights(t,n,r){const i=r?r.startLineNumber:1,s=r?r.endLineNumber:t.getLineCount(),a=new Cd(n),o=a.getCandidateCodePoints();let u;o==="allNonBasicAscii"?u=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):u=new RegExp(`${N1(Array.from(o))}`,"g");const l=new x1(null,u),A=[];let p=!1,O,k=0,re=0,te=0;e:for(let N=i,oe=s;N<=oe;N++){const Te=t.getLineContent(N),Le=Te.length;l.reset(0);do if(O=l.next(Te),O){let Ge=O.index,he=O.index+O[0].length;if(Ge>0){const Ce=Te.charCodeAt(Ge-1);Nl(Ce)&&Ge--}if(he+1<Le){const Ce=Te.charCodeAt(he-1);Nl(Ce)&&he++}const ke=Te.substring(Ge,he);let ze=Pl(Ge+1,xp,Te,0);ze&&ze.endColumn<=Ge+1&&(ze=null);const Et=a.shouldHighlightNonBasicASCII(ke,ze?ze.word:null);if(Et!==0){Et===3?k++:Et===2?re++:Et===1?te++:w1();const Ce=1e3;if(A.length>=Ce){p=!0;break e}A.push(new hi(N,Ge+1,N,he+1))}}while(O)}return{ranges:A,hasMore:p,ambiguousCharacterCount:k,invisibleCharacterCount:re,nonBasicAsciiCharacterCount:te}}static computeUnicodeHighlightReason(t,n){const r=new Cd(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=_i.getLocales().filter(u=>!_i.getInstance(new Set([...n.allowedLocales,u])).isAmbiguous(s));return{kind:0,confusableWith:String.fromCodePoint(a),notAmbiguousInLocales:o}}case 1:return{kind:2}}}}function N1(e,t){return`[${bg(e.map(r=>String.fromCodePoint(r)).join(""))}]`}class Cd{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=_i.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const n of ys.codePoints)Sd(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=Fg(a);i=i||u,!u&&!this.ambiguousCharacters.isAmbiguous(o)&&!ys.isInvisibleCharacter(o)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!Sd(t)&&ys.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function Sd(e){return e===" "||e===`
8
- `||e===" "}class _r{static fromRange(t){return new _r(t.startLineNumber,t.endLineNumber)}static subtract(t,n){return n?t.startLineNumber<n.startLineNumber&&n.endLineNumberExclusive<t.endLineNumberExclusive?[new _r(t.startLineNumber,n.startLineNumber),new _r(n.endLineNumberExclusive,t.endLineNumberExclusive)]:n.startLineNumber<=t.startLineNumber&&t.endLineNumberExclusive<=n.endLineNumberExclusive?[]:n.endLineNumberExclusive<t.endLineNumberExclusive?[new _r(Math.max(n.endLineNumberExclusive,t.startLineNumber),t.endLineNumberExclusive)]:[new _r(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 _r(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 _r(t,t+n)}static deserialize(t){return new _r(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 _r(this.startLineNumber+t,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new _r(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 _r(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 hi(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new hi(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 xd{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 _r(s,u.originalRange.startLineNumber),new _r(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 _r(s,n+1),new _r(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 io{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new io(this.modifiedRange,this.originalRange)}}class Gl{constructor(t,n){this.original=t,this.modified=n}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new Gl(this.modified,this.original)}}class Jl{constructor(t,n){this.lineRangeMapping=t,this.changes=n}flip(){return new Jl(this.lineRangeMapping.flip(),this.changes.map(t=>t.flip()))}}const _1=3;class T1{computeDiff(t,n,r){var i;const a=new P1(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 A;l.originalEndLineNumber===0?A=new _r(l.originalStartLineNumber+1,l.originalStartLineNumber+1):A=new _r(l.originalStartLineNumber,l.originalEndLineNumber+1);let p;l.modifiedEndLineNumber===0?p=new _r(l.modifiedStartLineNumber+1,l.modifiedStartLineNumber+1):p=new _r(l.modifiedStartLineNumber,l.modifiedEndLineNumber+1);let O=new ss(A,p,(i=l.charChanges)===null||i===void 0?void 0:i.map(k=>new io(new hi(k.originalStartLineNumber,k.originalStartColumn,k.originalEndLineNumber,k.originalEndColumn),new hi(k.modifiedStartLineNumber,k.modifiedStartColumn,k.modifiedEndLineNumber,k.modifiedEndColumn))));u&&(u.modifiedRange.endLineNumberExclusive===O.modifiedRange.startLineNumber||u.originalRange.endLineNumberExclusive===O.originalRange.startLineNumber)&&(O=new ss(u.originalRange.join(O.originalRange),u.modifiedRange.join(O.modifiedRange),u.innerChanges&&O.innerChanges?u.innerChanges.concat(O.innerChanges):void 0),o.pop()),o.push(O),u=O}return Xo(()=>Ad(o,(l,A)=>A.originalRange.startLineNumber-l.originalRange.endLineNumberExclusive===A.modifiedRange.startLineNumber-l.modifiedRange.endLineNumberExclusive&&l.originalRange.endLineNumberExclusive<A.originalRange.startLineNumber&&l.modifiedRange.endLineNumberExclusive<A.modifiedRange.startLineNumber)),new xd(o,[],a.quitEarly)}}function wd(e,t,n,r){return new bs(e,t,n).ComputeDiff(r)}let Fd=class{constructor(t){const n=[],r=[];for(let i=0,s=t.length;i<s;i++)n[i]=Yl(t[i],1),r[i]=Hl(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],A=t?this._startColumns[u]:1,p=t?this._endColumns[u]:l.length+1;for(let O=A;O<p;O++)i[o]=l.charCodeAt(O-1),s[o]=u+1,a[o]=O,o++;!t&&u<r&&(i[o]=10,s[o]=u+1,a[o]=l.length+1,o++)}return new k1(i,s,a)}};class k1{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),A=r.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),p=r.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new ma(i,s,a,o,u,l,A,p)}}function L1(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)<_1?(n.originalLength=s.originalStart+s.originalLength-n.originalStart,n.modifiedLength=s.modifiedStart+s.modifiedLength-n.modifiedStart):(t.push(s),n=s)}return t}class so{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,A,p,O;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?(A=i.getStartLineNumber(n.modifiedStart)-1,p=0):(A=i.getStartLineNumber(n.modifiedStart),p=i.getEndLineNumber(n.modifiedStart+n.modifiedLength-1)),a&&n.originalLength>0&&n.originalLength<20&&n.modifiedLength>0&&n.modifiedLength<20&&s()){const k=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),re=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(k.getElements().length>0&&re.getElements().length>0){let te=wd(k,re,s,!0).changes;o&&(te=L1(te)),O=[];for(let N=0,oe=te.length;N<oe;N++)O.push(ma.createFromDiffChange(te[N],k,re))}}return new so(u,l,A,p,O)}}class P1{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 Fd(t),this.modified=new Fd(n),this.continueLineDiff=Nd(r.maxComputationTime),this.continueCharDiff=Nd(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=wd(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(so.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,A=l?l.originalStart:this.originalLines.length,p=l?l.modifiedStart:this.modifiedLines.length;for(;s<A&&a<p;){const O=this.originalLines[s],k=this.modifiedLines[a];if(O!==k){{let re=Yl(O,1),te=Yl(k,1);for(;re>1&&te>1;){const N=O.charCodeAt(re-2),oe=k.charCodeAt(te-2);if(N!==oe)break;re--,te--}(re>1||te>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,re,a+1,1,te)}{let re=Hl(O,1),te=Hl(k,1);const N=O.length+1,oe=k.length+1;for(;re<N&&te<oe;){const Te=O.charCodeAt(re-1),Le=O.charCodeAt(te-1);if(Te!==Le)break;re++,te++}(re<N||te<oe)&&this._pushTrimWhitespaceCharChange(i,s+1,re,N,a+1,te,oe)}}s++,a++}l&&(i.push(so.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 so(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 Yl(e,t){const n=Eg(e);return n===-1?t:n+1}function Hl(e,t){const n=Ag(e);return n===-1?t:n+2}function Nd(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 mi(new dr(0,t.length),new dr(0,n.length))],!1)}static trivialTimedOut(t,n){return new as([new mi(new dr(0,t.length),new dr(0,n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}}class mi{constructor(t,n){this.seq1Range=t,this.seq2Range=n}reverse(){return new mi(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new mi(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new mi(this.seq1Range.delta(t),this.seq2Range.delta(t))}}class ao{isValid(){return!0}}ao.instance=new ao;class B1{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 zl{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 M1{compute(t,n,r=ao.instance,i){if(t.length===0||n.length===0)return as.trivial(t,n);const s=new zl(t.length,n.length),a=new zl(t.length,n.length),o=new zl(t.length,n.length);for(let re=0;re<t.length;re++)for(let te=0;te<n.length;te++){if(!r.isValid())return as.trivialTimedOut(t,n);const N=re===0?0:s.get(re-1,te),oe=te===0?0:s.get(re,te-1);let Te;t.getElement(re)===n.getElement(te)?(re===0||te===0?Te=0:Te=s.get(re-1,te-1),re>0&&te>0&&a.get(re-1,te-1)===3&&(Te+=o.get(re-1,te-1)),Te+=i?i(re,te):1):Te=-1;const Le=Math.max(N,oe,Te);if(Le===Te){const Ge=re>0&&te>0?o.get(re-1,te-1):0;o.set(re,te,Ge+1),a.set(re,te,3)}else Le===N?(o.set(re,te,0),a.set(re,te,1)):Le===oe&&(o.set(re,te,0),a.set(re,te,2));s.set(re,te,Le)}const u=[];let l=t.length,A=n.length;function p(re,te){(re+1!==l||te+1!==A)&&u.push(new mi(new dr(re+1,l),new dr(te+1,A))),l=re,A=te}let O=t.length-1,k=n.length-1;for(;O>=0&&k>=0;)a.get(O,k)===3?(p(O,k),O--,k--):a.get(O,k)===1?O--:k--;return p(-1,-1),u.reverse(),new as(u,!1)}}function _d(e,t,n){let r=n;return r=j1(e,t,r),r=R1(e,t,r),r}function I1(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 mi(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function O1(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 A=function(O,k){const re=new dr(l.seq1Range.endExclusive,u.seq1Range.start);if(e.countLinesIn(re)>5||re.length>500)return!1;const N=e.getText(re).trim();if(N.length>20||N.split(/\r\n|\r|\n/).length>1)return!1;const oe=e.countLinesIn(O.seq1Range),Te=O.seq1Range.length,Le=t.countLinesIn(O.seq2Range),Ge=O.seq2Range.length,he=e.countLinesIn(k.seq1Range),ke=k.seq1Range.length,ze=t.countLinesIn(k.seq2Range),Et=k.seq2Range.length,Ce=2*40+50;function xe(et){return Math.min(et,Ce)}return Math.pow(Math.pow(xe(oe*40+Te),1.5)+Math.pow(xe(Le*40+Ge),1.5),1.5)+Math.pow(Math.pow(xe(he*40+ke),1.5)+Math.pow(xe(ze*40+Et),1.5),1.5)>Math.pow(Math.pow(Ce,1.5),1.5)*1.3};const u=r[o],l=a[a.length-1];A(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 j1(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 mi(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 mi(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 R1(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]=Td(s,e,t,o,u):s.seq2Range.isEmpty&&(n[r]=Td(s.reverse(),t,e,u,o).reverse())}return n}function Td(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 A=-a;A<=o;A++){const p=e.seq2Range.start+A,O=e.seq2Range.endExclusive+A,k=e.seq1Range.start+A,re=t.getBoundaryScore(k)+n.getBoundaryScore(p)+n.getBoundaryScore(O);re>l&&(l=re,u=A)}return e.delta(u)}class $1{compute(t,n,r=ao.instance){if(t.length===0||n.length===0)return as.trivial(t,n);function i(k,re){for(;k<t.length&&re<n.length&&t.getElement(k)===n.getElement(re);)k++,re++;return k}let s=0;const a=new V1;a.set(0,i(0,0));const o=new q1;o.set(0,a.get(0)===0?null:new kd(null,0,0,a.get(0)));let u=0;e:for(;;){if(s++,!r.isValid())return as.trivialTimedOut(t,n);const k=-Math.min(s,n.length+s%2),re=Math.min(s,t.length+s%2);for(u=k;u<=re;u+=2){const te=u===re?-1:a.get(u+1),N=u===k?-1:a.get(u-1)+1,oe=Math.min(Math.max(te,N),t.length),Te=oe-u;if(oe>t.length||Te>n.length)continue;const Le=i(oe,Te);a.set(u,Le);const Ge=oe===te?o.get(u+1):o.get(u-1);if(o.set(u,Le!==oe?new kd(Ge,oe,Te,Le-oe):Ge),a.get(u)===t.length&&a.get(u)-u===n.length)break e}}let l=o.get(u);const A=[];let p=t.length,O=n.length;for(;;){const k=l?l.x+l.length:0,re=l?l.y+l.length:0;if((k!==p||re!==O)&&A.push(new mi(new dr(k,p),new dr(re,O))),!l)break;p=l.x,O=l.y,l=l.prev}return A.reverse(),new as(A,!1)}}class kd{constructor(t,n,r,i){this.prev=t,this.x=n,this.y=r,this.length=i}}class V1{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 q1{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 U1{constructor(){this.dynamicProgrammingDiffing=new M1,this.myersDiffingAlgorithm=new $1}computeDiff(t,n,r){if(t.length===1&&t[0].length===0||n.length===1&&n[0].length===0)return{changes:[new ss(new _r(1,t.length+1),new _r(1,n.length+1),[new io(new hi(1,1,t.length,t[0].length+1),new hi(1,1,n.length,n[0].length+1))])],hitTimeout:!1,moves:[]};const i=r.maxComputationTimeMs===0?ao.instance:new B1(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,a=new Map;function o(he){let ke=a.get(he);return ke===void 0&&(ke=a.size,a.set(he,ke)),ke}const u=t.map(he=>o(he.trim())),l=n.map(he=>o(he.trim())),A=new Pd(u,t),p=new Pd(l,n),O=(()=>A.length+p.length<1500?this.dynamicProgrammingDiffing.compute(A,p,i,(he,ke)=>t[he]===n[ke]?n[ke].length===0?.1:1+Math.log(1+n[ke].length):.99):this.myersDiffingAlgorithm.compute(A,p))();let k=O.diffs,re=O.hitTimeout;k=_d(A,p,k);const te=[],N=he=>{if(s)for(let ke=0;ke<he;ke++){const ze=oe+ke,Et=Te+ke;if(t[ze]!==n[Et]){const Ce=this.refineDiff(t,n,new mi(new dr(ze,ze+1),new dr(Et,Et+1)),i,s);for(const xe of Ce.mappings)te.push(xe);Ce.hitTimeout&&(re=!0)}}};let oe=0,Te=0;for(const he of k){Xo(()=>he.seq1Range.start-oe===he.seq2Range.start-Te);const ke=he.seq1Range.start-oe;N(ke),oe=he.seq1Range.endExclusive,Te=he.seq2Range.endExclusive;const ze=this.refineDiff(t,n,he,i,s);ze.hitTimeout&&(re=!0);for(const Et of ze.mappings)te.push(Et)}N(t.length-oe);const Le=Ld(te,t,n),Ge=[];if(r.computeMoves){const he=Le.filter(ze=>ze.modifiedRange.isEmpty&&ze.originalRange.length>=3).map(ze=>new Rd(ze.originalRange,t)),ke=new Set(Le.filter(ze=>ze.originalRange.isEmpty&&ze.modifiedRange.length>=3).map(ze=>new Rd(ze.modifiedRange,n)));for(const ze of he){let Et=-1,Ce;for(const xe of ke){const et=ze.computeSimilarity(xe);et>Et&&(Et=et,Ce=xe)}if(Et>.9&&Ce){const xe=this.refineDiff(t,n,new mi(new dr(ze.range.startLineNumber-1,ze.range.endLineNumberExclusive-1),new dr(Ce.range.startLineNumber-1,Ce.range.endLineNumberExclusive-1)),i,s),et=Ld(xe.mappings,t,n,!0);ke.delete(Ce),Ge.push(new Jl(new Gl(ze.range,Ce.range),et))}}}return Xo(()=>{function he(ze,Et){if(ze.lineNumber<1||ze.lineNumber>Et.length)return!1;const Ce=Et[ze.lineNumber-1];return!(ze.column<1||ze.column>Ce.length+1)}function ke(ze,Et){return!(ze.startLineNumber<1||ze.startLineNumber>Et.length+1||ze.endLineNumberExclusive<1||ze.endLineNumberExclusive>Et.length+1)}for(const ze of Le){if(!ze.innerChanges)return!1;for(const Et of ze.innerChanges)if(!(he(Et.modifiedRange.getStartPosition(),n)&&he(Et.modifiedRange.getEndPosition(),n)&&he(Et.originalRange.getStartPosition(),t)&&he(Et.originalRange.getEndPosition(),t)))return!1;if(!ke(ze.modifiedRange,n)||!ke(ze.originalRange,t))return!1}return!0}),new xd(Le,Ge,re)}refineDiff(t,n,r,i,s){const a=new Md(t,r.seq1Range,s),o=new Md(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=_d(a,o,l),l=W1(a,o,l),l=I1(a,o,l),l=O1(a,o,l),{mappings:l.map(p=>new io(a.translateRange(p.seq1Range),o.translateRange(p.seq2Range))),hitTimeout:u.hitTimeout}}}function W1(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 mi(i.s1Range,i.s2Range)),i=void 0}for(const o of n){let u=function(k,re){var te,N,oe,Te;if(!i||!i.s1Range.containsRange(k)||!i.s2Range.containsRange(re))if(i&&!(i.s1Range.endExclusive<k.start&&i.s2Range.endExclusive<re.start)){const he=dr.tryCreate(i.s1Range.endExclusive,k.start),ke=dr.tryCreate(i.s2Range.endExclusive,re.start);i.deleted+=(te=he==null?void 0:he.length)!==null&&te!==void 0?te:0,i.added+=(N=ke==null?void 0:ke.length)!==null&&N!==void 0?N:0,i.s1Range=i.s1Range.join(k),i.s2Range=i.s2Range.join(re)}else s(),i={added:0,deleted:0,count:0,s1Range:k,s2Range:re};const Le=k.intersect(o.seq1Range),Ge=re.intersect(o.seq2Range);i.count++,i.deleted+=(oe=Le==null?void 0:Le.length)!==null&&oe!==void 0?oe:0,i.added+=(Te=Ge==null?void 0:Ge.length)!==null&&Te!==void 0?Te:0};const l=e.findWordContaining(o.seq1Range.start-1),A=t.findWordContaining(o.seq2Range.start-1),p=e.findWordContaining(o.seq1Range.endExclusive),O=t.findWordContaining(o.seq2Range.endExclusive);l&&p&&A&&O&&l.equals(p)&&A.equals(O)?u(l,A):(l&&A&&u(l,A),p&&O&&u(p,O))}return s(),G1(n,r)}function G1(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 Ld(e,t,n,r=!1){const i=[];for(const s of Y1(e.map(a=>J1(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:Ad(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 J1(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 _r(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),a=new _r(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new ss(s,a,[e])}function*Y1(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 Pd{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:Bd(this.lines[t-1]),r=t===this.lines.length?0:Bd(this.lines[t]);return 1e3-(n+r)}}function Bd(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}class Md{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=Od(t>0?this.elements[t-1]:-1),r=Od(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+=Id(n),i+=Id(r),i}translateOffset(t){if(this.lineRange.isEmpty)return new Ki(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 Ki(this.lineRange.start+n+1,t-i+1+this.offsetByLine[n])}translateRange(t){return hi.fromPositions(this.translateOffset(t.start),this.translateOffset(t.endExclusive))}findWordContaining(t){if(t<0||t>=this.elements.length||!Ql(this.elements[t]))return;let n=t;for(;n>0&&Ql(this.elements[n-1]);)n--;let r=t;for(;r<this.elements.length&&Ql(this.elements[r]);)r++;return new dr(n,r)}countLinesIn(t){return this.translateOffset(t.endExclusive).lineNumber-this.translateOffset(t.start).lineNumber}}function Ql(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const H1={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function Id(e){return H1[e]}function Od(e){return e===10?7:e===13?6:z1(e)?5:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:4}function z1(e){return e===32||e===9}const Xl=new Map;function jd(e){let t=Xl.get(e);return t===void 0&&(t=Xl.size,Xl.set(e,t)),t}class Rd{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=jd(u);this.histogram[l]=(this.histogram[l]||0)+1}r++;const a=jd(`
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 $d={getLegacy:()=>new T1,getAdvanced:()=>new U1};function Ss(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class qr{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=Ss(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 Ti{constructor(t,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Ss(Math.max(Math.min(1,n),0),3),this.l=Ss(Math.max(Math.min(1,r),0),3),this.a=Ss(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 A=(o+a)/2,p=a-o;if(p>0){switch(l=Math.min(A<=.5?p/(2*A):p/(2-2*A),1),a){case n:u=(r-i)/p+(r<i?6:0);break;case r:u=(i-n)/p+2;break;case i:u=(n-r)/p+4;break}u*=60,u=Math.round(u)}return new Ti(u,l,A,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,A=2*i-l;a=Ti._hue2rgb(A,l,n+1/3),o=Ti._hue2rgb(A,l,n),u=Ti._hue2rgb(A,l,n-1/3)}return new qr(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=Ss(Math.max(Math.min(1,n),0),3),this.v=Ss(Math.max(Math.min(1,r),0),3),this.a=Ss(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,A,p]=[0,0,0];return n<60?(l=a,A=o):n<120?(l=o,A=a):n<180?(A=a,p=o):n<240?(A=o,p=a):n<300?(l=o,p=a):n<=360&&(l=a,p=o),l=Math.round((l+u)*255),A=Math.round((A+u)*255),p=Math.round((p+u)*255),new qr(l,A,p,s)}}let Rr=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:Ti.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:ga.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof qr)this.rgba=t;else if(t instanceof Ti)this._hsla=t,this.rgba=Ti.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&&qr.equals(this.rgba,t.rgba)&&Ti.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 Ss(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 Ti(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new Ri(new Ti(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 qr(n,r,i,s*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new Ri(new qr(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 qr(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)}};Rr.white=new Rr(new qr(255,255,255,1)),Rr.black=new Rr(new qr(0,0,0,1)),Rr.red=new Rr(new qr(255,0,0,1)),Rr.blue=new Rr(new qr(0,0,255,1)),Rr.green=new Rr(new qr(0,255,0,1)),Rr.cyan=new Rr(new qr(0,255,255,1)),Rr.lightgrey=new Rr(new qr(211,211,211,1)),Rr.transparent=new Rr(new qr(0,0,0,0)),function(e){(function(t){(function(n){function r(k){return k.rgba.a===1?`rgb(${k.rgba.r}, ${k.rgba.g}, ${k.rgba.b})`:e.Format.CSS.formatRGBA(k)}n.formatRGB=r;function i(k){return`rgba(${k.rgba.r}, ${k.rgba.g}, ${k.rgba.b}, ${+k.rgba.a.toFixed(2)})`}n.formatRGBA=i;function s(k){return k.hsla.a===1?`hsl(${k.hsla.h}, ${(k.hsla.s*100).toFixed(2)}%, ${(k.hsla.l*100).toFixed(2)}%)`:e.Format.CSS.formatHSLA(k)}n.formatHSL=s;function a(k){return`hsla(${k.hsla.h}, ${(k.hsla.s*100).toFixed(2)}%, ${(k.hsla.l*100).toFixed(2)}%, ${k.hsla.a.toFixed(2)})`}n.formatHSLA=a;function o(k){const re=k.toString(16);return re.length!==2?"0"+re:re}function u(k){return`#${o(k.rgba.r)}${o(k.rgba.g)}${o(k.rgba.b)}`}n.formatHex=u;function l(k,re=!1){return re&&k.rgba.a===1?e.Format.CSS.formatHex(k):`#${o(k.rgba.r)}${o(k.rgba.g)}${o(k.rgba.b)}${o(Math.round(k.rgba.a*255))}`}n.formatHexA=l;function A(k){return k.isOpaque()?e.Format.CSS.formatHex(k):e.Format.CSS.formatRGBA(k)}n.format=A;function p(k){const re=k.length;if(re===0||k.charCodeAt(0)!==35)return null;if(re===7){const te=16*O(k.charCodeAt(1))+O(k.charCodeAt(2)),N=16*O(k.charCodeAt(3))+O(k.charCodeAt(4)),oe=16*O(k.charCodeAt(5))+O(k.charCodeAt(6));return new e(new qr(te,N,oe,1))}if(re===9){const te=16*O(k.charCodeAt(1))+O(k.charCodeAt(2)),N=16*O(k.charCodeAt(3))+O(k.charCodeAt(4)),oe=16*O(k.charCodeAt(5))+O(k.charCodeAt(6)),Te=16*O(k.charCodeAt(7))+O(k.charCodeAt(8));return new e(new qr(te,N,oe,Te/255))}if(re===4){const te=O(k.charCodeAt(1)),N=O(k.charCodeAt(2)),oe=O(k.charCodeAt(3));return new e(new qr(16*te+te,16*N+N,16*oe+oe))}if(re===5){const te=O(k.charCodeAt(1)),N=O(k.charCodeAt(2)),oe=O(k.charCodeAt(3)),Te=O(k.charCodeAt(4));return new e(new qr(16*te+te,16*N+N,16*oe+oe,(16*Te+Te)/255))}return null}n.parseHex=p;function O(k){switch(k){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={}))}(Rr||(Rr={}));function Vd(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 Kl(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function oo(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 Q1(e,t){if(!e)return;const n=Rr.Format.CSS.parseHex(t);if(n)return{range:e,color:Kl(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function qd(e,t,n){if(!e||t.length!==1)return;const i=t[0].values(),s=Vd(i);return{range:e,color:Kl(s[0],s[1],s[2],n?s[3]:1)}}function Ud(e,t,n){if(!e||t.length!==1)return;const i=t[0].values(),s=Vd(i),a=new Rr(new Ti(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:e,color:Kl(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function uo(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function X1(e){const t=[],r=uo(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=qd(oo(e,i),uo(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=qd(oo(e,i),uo(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=Ud(oo(e,i),uo(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=Ud(oo(e,i),uo(o,l),!0)}else a==="#"&&(u=Q1(oo(e,i),a+o));u&&t.push(u)}return t}function K1(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:X1(e)}var xs=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(A){try{l(r.next(A))}catch(p){a(p)}}function u(A){try{l(r.throw(A))}catch(p){a(p)}}function l(A){A.done?s(A.value):i(A.value).then(o,u)}l((r=r.apply(e,t||[])).next())})};class Z1 extends r1{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 Ki(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=Pl(t.column,a1(n),this._lines[t.lineNumber-1],0);return r?new hi(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(!Ki.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 Os{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 Z1(Tl.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 xs(this,void 0,void 0,function*(){const i=this._getModel(t);return i?F1.computeUnicodeHighlights(i,n,r):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(t,n,r,i){return xs(this,void 0,void 0,function*(){const s=this._getModel(t),a=this._getModel(n);return!s||!a?null:Os.computeDiff(s,a,r,i)})}static computeDiff(t,n,r,i){const s=i==="advanced"?$d.getAdvanced():$d.getLegacy(),a=t.getLinesContent(),o=n.getLinesContent(),u=s.computeDiff(a,o,r),l=u.changes.length>0?!1:this._modelsAreIdentical(t,n);function A(p){return p.map(O=>{var k;return[O.originalRange.startLineNumber,O.originalRange.endLineNumberExclusive,O.modifiedRange.startLineNumber,O.modifiedRange.endLineNumberExclusive,(k=O.innerChanges)===null||k===void 0?void 0:k.map(re=>[re.originalRange.startLineNumber,re.originalRange.startColumn,re.originalRange.endLineNumber,re.originalRange.endColumn,re.modifiedRange.startLineNumber,re.modifiedRange.startColumn,re.modifiedRange.endLineNumber,re.modifiedRange.endColumn])]})}return{identical:l,quitEarly:u.hitTimeout,changes:A(u.changes),moves:u.moves.map(p=>[p.lineRangeMapping.original.startLineNumber,p.lineRangeMapping.original.endLineNumberExclusive,p.lineRangeMapping.modified.startLineNumber,p.lineRangeMapping.modified.endLineNumberExclusive,A(p.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 xs(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 hi.compareRangesUsingStarts(o.range,u.range);const l=o.range?0:1,A=u.range?0:1;return l-A});for(let{range:o,text:u,eol:l}of n){if(typeof l=="number"&&(a=l),hi.isEmpty(o)&&!u)continue;const A=i.getValueInRange(o);if(u=u.replace(/\r\n|\n|\r/g,i.eol),A===u)continue;if(Math.max(u.length,A.length)>Os._diffLimit){s.push({range:o,text:u});continue}const p=Og(A,u,r),O=i.offsetAt(hi.lift(o).getStartPosition());for(const k of p){const re=i.positionAt(O+k.originalStart),te=i.positionAt(O+k.originalStart+k.originalLength),N={text:u.substr(k.modifiedStart,k.modifiedLength),range:{startLineNumber:re.lineNumber,startColumn:re.column,endLineNumber:te.lineNumber,endColumn:te.column}};i.getValueInRange(N.range)!==N.text&&s.push(N)}}return typeof a=="number"&&s.push({eol:a,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),s})}computeLinks(t){return xs(this,void 0,void 0,function*(){const n=this._getModel(t);return n?p1(n):null})}computeDefaultDocumentColors(t){return xs(this,void 0,void 0,function*(){const n=this._getModel(t);return n?K1(n):null})}textualSuggest(t,n,r,i){return xs(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 A of l.words(a))if(!(A===n||!isNaN(Number(A)))&&(o.add(A),o.size>Os._suggestionsLimit))break e}}return{words:Array.from(o),duration:s.elapsed()}})}computeWordRanges(t,n,r,i){return xs(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 A of l){if(!isNaN(Number(A.word)))continue;let p=o[A.word];p||(p=[],o[A.word]=p),p.push({startLineNumber:u,startColumn:A.startColumn,endLineNumber:u,endColumn:A.endColumn})}}return o})}navigateValueSet(t,n,r,i,s){return xs(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 A=a.getValueInRange(l);return Il.INSTANCE.navigateValueSet(n,u,l,A,r)})}loadForeignModule(t,n,r){const a={host:cg(r,(o,u)=>this._host.fhr(o,u)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,n),Promise.resolve(Al(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)}}}Os._diffLimit=1e5,Os._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=E1());let Zl=!1;function Wd(e){if(Zl)return;Zl=!0;const t=new Mg(n=>{globalThis.postMessage(n)},n=>new Os(n,e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{Zl||Wd(null)};function ey(e){self.onmessage=()=>{Wd((t,n)=>Object.create(e(t,n)))}}var ty=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))},Gd=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=Yd(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),A=Math.max(a.end.line,0),p=this._lineOffsets,O=Jd(s.text,!1,o);if(A-l===O.length)for(var k=0,re=O.length;k<re;k++)p[k+l+1]=O[k];else O.length<1e4?p.splice.apply(p,ty([l+1,A-l],O,!1)):this._lineOffsets=p=p.slice(0,l+1).concat(O,p.slice(A+1));var te=s.text.length-(u-o);if(te!==0)for(var k=l+1+O.length,re=p.length;k<re;k++)p[k]=p[k]+te}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=Jd(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}(),ec;(function(e){function t(i,s,a,o){return new Gd(i,s,a,o)}e.create=t;function n(i,s,a){if(i instanceof Gd)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=tc(s.map(ny),function(re,te){var N=re.range.start.line-te.range.start.line;return N===0?re.range.start.character-te.range.start.character:N}),u=0,l=[],A=0,p=o;A<p.length;A++){var O=p[A],k=i.offsetAt(O.range.start);if(k<u)throw new Error("Overlapping edit");k>u&&l.push(a.substring(u,k)),O.newText.length&&l.push(O.newText),u=i.offsetAt(O.range.end)}return l.push(a.substr(u)),l.join("")}e.applyEdits=r})(ec||(ec={}));function tc(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);tc(r,t),tc(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 Jd(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 Yd(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 ny(e){var t=Yd(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function ry(e,t=!1){const n=e.length;let r=0,i="",s=0,a=16,o=0,u=0,l=0,A=0,p=0;function O(Le,Ge){let he=0,ke=0;for(;he<Le||!Ge;){let ze=e.charCodeAt(r);if(ze>=48&&ze<=57)ke=ke*16+ze-48;else if(ze>=65&&ze<=70)ke=ke*16+ze-65+10;else if(ze>=97&&ze<=102)ke=ke*16+ze-97+10;else break;r++,he++}return he<Le&&(ke=-1),ke}function k(Le){r=Le,i="",s=0,a=16,p=0}function re(){let Le=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 p=3,e.substring(Le,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 p=3;return e.substring(Le,Ge)}function te(){let Le="",Ge=r;for(;;){if(r>=n){Le+=e.substring(Ge,r),p=2;break}const he=e.charCodeAt(r);if(he===34){Le+=e.substring(Ge,r),r++;break}if(he===92){if(Le+=e.substring(Ge,r),r++,r>=n){p=2;break}switch(e.charCodeAt(r++)){case 34:Le+='"';break;case 92:Le+="\\";break;case 47:Le+="/";break;case 98:Le+="\b";break;case 102:Le+="\f";break;case 110:Le+=`
11
- `;break;case 114:Le+="\r";break;case 116:Le+=" ";break;case 117:const ze=O(4,!0);ze>=0?Le+=String.fromCharCode(ze):p=4;break;default:p=5}Ge=r;continue}if(he>=0&&he<=31)if(lo(he)){Le+=e.substring(Ge,r),p=2;break}else p=6;r++}return Le}function N(){if(i="",p=0,s=r,u=o,A=l,r>=n)return s=n,a=17;let Le=e.charCodeAt(r);if(nc(Le)){do r++,i+=String.fromCharCode(Le),Le=e.charCodeAt(r);while(nc(Le));return a=15}if(lo(Le))return r++,i+=String.fromCharCode(Le),Le===13&&e.charCodeAt(r)===10&&(r++,i+=`
12
- `),o++,l=r,a=14;switch(Le){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=te(),a=10;case 47:const Ge=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!lo(e.charCodeAt(r));)r++;return i=e.substring(Ge,r),a=12}if(e.charCodeAt(r+1)===42){r+=2;const he=n-1;let ke=!1;for(;r<he;){const ze=e.charCodeAt(r);if(ze===42&&e.charCodeAt(r+1)===47){r+=2,ke=!0;break}r++,lo(ze)&&(ze===13&&e.charCodeAt(r)===10&&r++,o++,l=r)}return ke||(r++,p=1),i=e.substring(Ge,r),a=13}return i+=String.fromCharCode(Le),r++,a=16;case 45:if(i+=String.fromCharCode(Le),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+=re(),a=11;default:for(;r<n&&oe(Le);)r++,Le=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(Le),r++,a=16}}function oe(Le){if(nc(Le)||lo(Le))return!1;switch(Le){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function Te(){let Le;do Le=N();while(Le>=12&&Le<=15);return Le}return{setPosition:k,getPosition:()=>r,scan:t?Te:N,getToken:()=>a,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>r-s,getTokenStartLine:()=>u,getTokenStartCharacter:()=>s-A,getTokenError:()=>p}}function nc(e){return e===32||e===9}function lo(e){return e===10||e===13}function ya(e){return e>=48&&e<=57}var Hd;(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"})(Hd||(Hd={}));var Ko;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Ko||(Ko={}));function iy(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 sy(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,A)=>{t.push({error:u,offset:l,length:A})}},n),i[0]}function rc(e){switch(e.type){case"array":return e.children.map(rc);case"object":const t=Object.create(null);for(let n of e.children){const r=n.children[1];r&&(t[n.children[0].value]=rc(r))}return t;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function sy(e,t,n=Ko.DEFAULT){const r=ry(e,!1),i=[];function s(Ve){return Ve?()=>Ve(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(Ve){return Ve?()=>Ve(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}function o(Ve){return Ve?Rt=>Ve(Rt,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function u(Ve){return Ve?Rt=>Ve(Rt,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>i.slice()):()=>!0}const l=a(t.onObjectBegin),A=u(t.onObjectProperty),p=s(t.onObjectEnd),O=a(t.onArrayBegin),k=s(t.onArrayEnd),re=u(t.onLiteralValue),te=o(t.onSeparator),N=s(t.onComment),oe=o(t.onError),Te=n&&n.disallowComments,Le=n&&n.allowTrailingComma;function Ge(){for(;;){const Ve=r.scan();switch(r.getTokenError()){case 4:he(14);break;case 5:he(15);break;case 3:he(13);break;case 1:Te||he(11);break;case 2:he(12);break;case 6:he(16);break}switch(Ve){case 12:case 13:Te?he(10):N();break;case 16:he(1);break;case 15:case 14:break;default:return Ve}}}function he(Ve,Rt=[],pn=[]){if(oe(Ve),Rt.length+pn.length>0){let kn=r.getToken();for(;kn!==17;){if(Rt.indexOf(kn)!==-1){Ge();break}else if(pn.indexOf(kn)!==-1)break;kn=Ge()}}}function ke(Ve){const Rt=r.getTokenValue();return Ve?re(Rt):(A(Rt),i.push(Rt)),Ge(),!0}function ze(){switch(r.getToken()){case 11:const Ve=r.getTokenValue();let Rt=Number(Ve);isNaN(Rt)&&(he(2),Rt=0),re(Rt);break;case 7:re(null);break;case 8:re(!0);break;case 9:re(!1);break;default:return!1}return Ge(),!0}function Et(){return r.getToken()!==10?(he(3,[],[2,5]),!1):(ke(!1),r.getToken()===6?(te(":"),Ge(),et()||he(4,[],[2,5])):he(5,[],[2,5]),i.pop(),!0)}function Ce(){l(),Ge();let Ve=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(Ve||he(4,[],[]),te(","),Ge(),r.getToken()===2&&Le)break}else Ve&&he(6,[],[]);Et()||he(4,[],[2,5]),Ve=!0}return p(),r.getToken()!==2?he(7,[2],[]):Ge(),!0}function xe(){O(),Ge();let Ve=!0,Rt=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(Rt||he(4,[],[]),te(","),Ge(),r.getToken()===4&&Le)break}else Rt&&he(6,[],[]);Ve?(i.push(0),Ve=!1):i[i.length-1]++,et()||he(4,[],[4,5]),Rt=!0}return k(),Ve||i.pop(),r.getToken()!==4?he(8,[4],[]):Ge(),!0}function et(){switch(r.getToken()){case 3:return xe();case 1:return Ce();case 10:return ke(!0);default:return ze()}}return Ge(),r.getToken()===17?n.allowEmptyContent?!0:(he(4,[],[]),!1):et()?(r.getToken()!==17&&he(9,[],[]),!0):(he(4,[],[]),!1)}var zd;(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"})(zd||(zd={}));var Qd;(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"})(Qd||(Qd={}));const ay=iy,oy=rc;var Xd;(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"})(Xd||(Xd={}));var Kd;(()=>{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 A,p="",O=0,k=-1,re=0,te=0;te<=u.length;++te){if(te<u.length)A=u.charCodeAt(te);else{if(A===47)break;A=47}if(A===47){if(!(k===te-1||re===1))if(k!==te-1&&re===2){if(p.length<2||O!==2||p.charCodeAt(p.length-1)!==46||p.charCodeAt(p.length-2)!==46){if(p.length>2){var N=p.lastIndexOf("/");if(N!==p.length-1){N===-1?(p="",O=0):O=(p=p.slice(0,N)).length-1-p.lastIndexOf("/"),k=te,re=0;continue}}else if(p.length===2||p.length===1){p="",O=0,k=te,re=0;continue}}l&&(p.length>0?p+="/..":p="..",O=2)}else p.length>0?p+="/"+u.slice(k+1,te):p=u.slice(k+1,te),O=te-k-1;k=te,re=0}else A===46&&re!==-1?++re:re=-1}return p}var o={resolve:function(){for(var u,l="",A=!1,p=arguments.length-1;p>=-1&&!A;p--){var O;p>=0?O=arguments[p]:(u===void 0&&(u=process.cwd()),O=u),s(O),O.length!==0&&(l=O+"/"+l,A=O.charCodeAt(0)===47)}return l=a(l,!A),A?l.length>0?"/"+l:"/":l.length>0?l:"."},normalize:function(u){if(s(u),u.length===0)return".";var l=u.charCodeAt(0)===47,A=u.charCodeAt(u.length-1)===47;return(u=a(u,!l)).length!==0||l||(u="."),u.length>0&&A&&(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 A=arguments[l];s(A),A.length>0&&(u===void 0?u=A:u+="/"+A)}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 A=1;A<u.length&&u.charCodeAt(A)===47;++A);for(var p=u.length,O=p-A,k=1;k<l.length&&l.charCodeAt(k)===47;++k);for(var re=l.length-k,te=O<re?O:re,N=-1,oe=0;oe<=te;++oe){if(oe===te){if(re>te){if(l.charCodeAt(k+oe)===47)return l.slice(k+oe+1);if(oe===0)return l.slice(k+oe)}else O>te&&(u.charCodeAt(A+oe)===47?N=oe:oe===0&&(N=0));break}var Te=u.charCodeAt(A+oe);if(Te!==l.charCodeAt(k+oe))break;Te===47&&(N=oe)}var Le="";for(oe=A+N+1;oe<=p;++oe)oe!==p&&u.charCodeAt(oe)!==47||(Le.length===0?Le+="..":Le+="/..");return Le.length>0?Le+l.slice(k+N):(k+=N,l.charCodeAt(k)===47&&++k,l.slice(k))},_makeLong:function(u){return u},dirname:function(u){if(s(u),u.length===0)return".";for(var l=u.charCodeAt(0),A=l===47,p=-1,O=!0,k=u.length-1;k>=1;--k)if((l=u.charCodeAt(k))===47){if(!O){p=k;break}}else O=!1;return p===-1?A?"/":".":A&&p===1?"//":u.slice(0,p)},basename:function(u,l){if(l!==void 0&&typeof l!="string")throw new TypeError('"ext" argument must be a string');s(u);var A,p=0,O=-1,k=!0;if(l!==void 0&&l.length>0&&l.length<=u.length){if(l.length===u.length&&l===u)return"";var re=l.length-1,te=-1;for(A=u.length-1;A>=0;--A){var N=u.charCodeAt(A);if(N===47){if(!k){p=A+1;break}}else te===-1&&(k=!1,te=A+1),re>=0&&(N===l.charCodeAt(re)?--re==-1&&(O=A):(re=-1,O=te))}return p===O?O=te:O===-1&&(O=u.length),u.slice(p,O)}for(A=u.length-1;A>=0;--A)if(u.charCodeAt(A)===47){if(!k){p=A+1;break}}else O===-1&&(k=!1,O=A+1);return O===-1?"":u.slice(p,O)},extname:function(u){s(u);for(var l=-1,A=0,p=-1,O=!0,k=0,re=u.length-1;re>=0;--re){var te=u.charCodeAt(re);if(te!==47)p===-1&&(O=!1,p=re+1),te===46?l===-1?l=re:k!==1&&(k=1):l!==-1&&(k=-1);else if(!O){A=re+1;break}}return l===-1||p===-1||k===0||k===1&&l===p-1&&l===A+1?"":u.slice(l,p)},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,A){var p=A.dir||A.root,O=A.base||(A.name||"")+(A.ext||"");return p?p===A.root?p+O:p+"/"+O:O}(0,u)},parse:function(u){s(u);var l={root:"",dir:"",base:"",ext:"",name:""};if(u.length===0)return l;var A,p=u.charCodeAt(0),O=p===47;O?(l.root="/",A=1):A=0;for(var k=-1,re=0,te=-1,N=!0,oe=u.length-1,Te=0;oe>=A;--oe)if((p=u.charCodeAt(oe))!==47)te===-1&&(N=!1,te=oe+1),p===46?k===-1?k=oe:Te!==1&&(Te=1):k!==-1&&(Te=-1);else if(!N){re=oe+1;break}return k===-1||te===-1||Te===0||Te===1&&k===te-1&&k===re+1?te!==-1&&(l.base=l.name=re===0&&O?u.slice(1,te):u.slice(re,te)):(re===0&&O?(l.name=u.slice(1,k),l.base=u.slice(1,te)):(l.name=u.slice(re,k),l.base=u.slice(re,te)),l.ext=u.slice(k,te)),re>0?l.dir=u.slice(0,re-1):O&&(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:()=>N,Utils:()=>et}),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+.-]*$/,A=/^\//,p=/^\/\//;function O(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(!A.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(p.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 k="",re="/",te=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,N=function(){function Lt(Tt,qt,en,Ln,Un,Pn){Pn===void 0&&(Pn=!1),typeof Tt=="object"?(this.scheme=Tt.scheme||k,this.authority=Tt.authority||k,this.path=Tt.path||k,this.query=Tt.query||k,this.fragment=Tt.fragment||k):(this.scheme=function(zr,Qr){return zr||Qr?zr:"file"}(Tt,Pn),this.authority=qt||k,this.path=function(zr,Qr){switch(zr){case"https":case"http":case"file":Qr?Qr[0]!==re&&(Qr=re+Qr):Qr=re}return Qr}(this.scheme,en||k),this.query=Ln||k,this.fragment=Un||k,O(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 ke(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=k),en===void 0?en=this.authority:en===null&&(en=k),Ln===void 0?Ln=this.path:Ln===null&&(Ln=k),Un===void 0?Un=this.query:Un===null&&(Un=k),Pn===void 0?Pn=this.fragment:Pn===null&&(Pn=k),qt===this.scheme&&en===this.authority&&Ln===this.path&&Un===this.query&&Pn===this.fragment?this:new Te(qt,en,Ln,Un,Pn)},Lt.parse=function(Tt,qt){qt===void 0&&(qt=!1);var en=te.exec(Tt);return en?new Te(en[2]||k,xe(en[4]||k),xe(en[5]||k),xe(en[7]||k),xe(en[9]||k),qt):new Te(k,k,k,k,k)},Lt.file=function(Tt){var qt=k;if(i&&(Tt=Tt.replace(/\\/g,re)),Tt[0]===re&&Tt[1]===re){var en=Tt.indexOf(re,2);en===-1?(qt=Tt.substring(2),Tt=re):(qt=Tt.substring(2,en),Tt=Tt.substring(en)||re)}return new Te("file",qt,Tt,k,k)},Lt.from=function(Tt){var qt=new Te(Tt.scheme,Tt.authority,Tt.path,Tt.query,Tt.fragment);return O(qt,!0),qt},Lt.prototype.toString=function(Tt){return Tt===void 0&&(Tt=!1),ze(this,Tt)},Lt.prototype.toJSON=function(){return this},Lt.revive=function(Tt){if(Tt){if(Tt instanceof Lt)return Tt;var qt=new Te(Tt);return qt._formatted=Tt.external,qt._fsPath=Tt._sep===oe?Tt.fsPath:null,qt}return Tt},Lt}(),oe=i?1:void 0,Te=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=ke(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),Tt.prototype.toString=function(qt){return qt===void 0&&(qt=!1),qt?ze(this,!0):(this._formatted||(this._formatted=ze(this,!1)),this._formatted)},Tt.prototype.toJSON=function(){var qt={$mid:1};return this._fsPath&&(qt.fsPath=this._fsPath,qt._sep=oe),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}(N),Le=((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=Le[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 he(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+=Le[en]):Tt!==void 0&&(Tt+=Lt[qt])}return Tt!==void 0?Tt:Lt}function ke(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 ze(Lt,Tt){var qt=Tt?he: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+=re,en+=re),Un){var yi=Un.indexOf("@");if(yi!==-1){var cs=Un.substr(0,yi);Un=Un.substr(yi+1),(yi=cs.lastIndexOf(":"))===-1?en+=qt(cs,!1,!1):(en+=qt(cs.substr(0,yi),!1,!1),en+=":",en+=qt(cs.substr(yi+1),!1,!0)),en+="@"}(yi=(Un=Un.toLowerCase()).lastIndexOf(":"))===-1?en+=qt(Un,!1,!0):(en+=qt(Un.substr(0,yi),!1,!0),en+=Un.substr(yi))}if(Pn){if(Pn.length>=3&&Pn.charCodeAt(0)===47&&Pn.charCodeAt(2)===58)(Si=Pn.charCodeAt(1))>=65&&Si<=90&&(Pn="/".concat(String.fromCharCode(Si+32),":").concat(Pn.substr(3)));else if(Pn.length>=2&&Pn.charCodeAt(1)===58){var Si;(Si=Pn.charCodeAt(0))>=65&&Si<=90&&(Pn="".concat(String.fromCharCode(Si+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 Et(Lt){try{return decodeURIComponent(Lt)}catch{return Lt.length>3?Lt.substr(0,3)+Et(Lt.substr(3)):Lt}}var Ce=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function xe(Lt){return Lt.match(Ce)?Lt.replace(Ce,function(Tt){return Et(Tt)}):Lt}var et,Ve=n(470),Rt=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))},pn=Ve.posix||Ve,kn="/";(function(Lt){Lt.joinPath=function(Tt){for(var qt=[],en=1;en<arguments.length;en++)qt[en-1]=arguments[en];return Tt.with({path:pn.join.apply(pn,Rt([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]!==kn&&(Ln=kn+Ln,Un=!0);var Pn=pn.resolve.apply(pn,Rt([Ln],qt,!1));return Un&&Pn[0]===kn&&!Tt.authority&&(Pn=Pn.substring(1)),Tt.with({path:Pn})},Lt.dirname=function(Tt){if(Tt.path.length===0||Tt.path===kn)return Tt;var qt=pn.dirname(Tt.path);return qt.length===1&&qt.charCodeAt(0)===46&&(qt=""),Tt.with({path:qt})},Lt.basename=function(Tt){return pn.basename(Tt.path)},Lt.extname=function(Tt){return pn.extname(Tt.path)}})(et||(et={}))})(),Kd=r})();const{URI:ni,Utils:GE}=Kd;var Zd;(function(e){function t(n){return typeof n=="string"}e.is=t})(Zd||(Zd={}));var ic;(function(e){function t(n){return typeof n=="string"}e.is=t})(ic||(ic={}));var eh;(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})(eh||(eh={}));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 sc;(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})(sc||(sc={}));var ac;(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})(ac||(ac={}));var th;(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)&&ac.is(i.color)}e.is=n})(th||(th={}));var nh;(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)||Fr.is(i))&&(xt.undefined(i.additionalTextEdits)||xt.typedArray(i.additionalTextEdits,Fr.is))}e.is=n})(nh||(nh={}));var rh;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(rh||(rh={}));var oc;(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})(oc||(oc={}));var uc;(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})(uc||(uc={}));var Kn;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Kn||(Kn={}));var lc;(function(e){e.Unnecessary=1,e.Deprecated=2})(lc||(lc={}));var ih;(function(e){function t(n){var r=n;return xt.objectLiteral(r)&&xt.string(r.href)}e.is=t})(ih||(ih={}));var ki;(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,uc.is))}e.is=n})(ki||(ki={}));var js;(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})(js||(js={}));var Fr;(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})(Fr||(Fr={}));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 ri;(function(e){function t(n){var r=n;return xt.string(r)}e.is=t})(ri||(ri={}));var ws;(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 Fr.is(a)&&(ba.is(a.annotationId)||ri.is(a.annotationId))}e.is=i})(ws||(ws={}));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 co;(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||ri.is(i.annotationId))}e.is=n})(co||(co={}));var fo;(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||ri.is(i.annotationId))}e.is=n})(fo||(fo={}));var po;(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||ri.is(i.annotationId))}e.is=n})(po||(po={}));var cc;(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)?co.is(i)||fo.is(i)||po.is(i):eu.is(i)}))}e.is=t})(cc||(cc={}));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=Fr.insert(t,n):ri.is(r)?(s=r,i=ws.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=ws.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=Fr.replace(t,n):ri.is(r)?(s=r,i=ws.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=ws.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=Fr.del(t):ri.is(n)?(i=n,r=ws.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=ws.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}(),sh=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(ri.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 sh(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 sh,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)||ri.is(n)?i=n:r=n;var s,a;if(i===void 0?s=co.create(t,r):(a=ri.is(i)?i:this._changeAnnotations.manage(i),s=co.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)||ri.is(r)?s=r:i=r;var a,o;if(s===void 0?a=fo.create(t,n,i):(o=ri.is(s)?s:this._changeAnnotations.manage(s),a=fo.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)||ri.is(n)?i=n:r=n;var s,a;if(i===void 0?s=po.create(t,r):(a=ri.is(i)?i:this._changeAnnotations.manage(i),s=po.create(t,r,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},e})();var ah;(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})(ah||(ah={}));var oh;(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})(oh||(oh={}));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 uh;(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})(uh||(uh={}));var Fs;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){var r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(Fs||(Fs={}));var ho;(function(e){function t(n){var r=n;return xt.objectLiteral(n)&&Fs.is(r.kind)&&xt.string(r.value)}e.is=t})(ho||(ho={}));var Ci;(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})(Ci||(Ci={}));var Zr;(function(e){e.PlainText=1,e.Snippet=2})(Zr||(Zr={}));var lh;(function(e){e.Deprecated=1})(lh||(lh={}));var ch;(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})(ch||(ch={}));var fc;(function(e){e.asIs=1,e.adjustIndentation=2})(fc||(fc={}));var fh;(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})(fh||(fh={}));var pc;(function(e){function t(n){return{label:n}}e.create=t})(pc||(pc={}));var dc;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(dc||(dc={}));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 ph;(function(e){function t(n){var r=n;return!!r&&xt.objectLiteral(r)&&(ho.is(r.contents)||ru.is(r.contents)||xt.typedArray(r.contents,ru.is))&&(n.range===void 0||Rn.is(n.range))}e.is=t})(ph||(ph={}));var dh;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(dh||(dh={}));var hh;(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})(hh||(hh={}));var mh;(function(e){e.Text=1,e.Read=2,e.Write=3})(mh||(mh={}));var gh;(function(e){function t(n,r){var i={range:n};return xt.number(r)&&(i.kind=r),i}e.create=t})(gh||(gh={}));var Zi;(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})(Zi||(Zi={}));var yh;(function(e){e.Deprecated=1})(yh||(yh={}));var Dh;(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})(Dh||(Dh={}));var bh;(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})(bh||(bh={}));var vh;(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})(vh||(vh={}));var Rs;(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"})(Rs||(Rs={}));var iu;(function(e){e.Invoked=1,e.Automatic=2})(iu||(iu={}));var Eh;(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,ki.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})(Eh||(Eh={}));var Ns;(function(e){function t(r,i,s){var a={title:r},o=!0;return typeof i=="string"?(o=!1,a.kind=i):js.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,ki.is))&&(i.kind===void 0||xt.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||js.is(i.command))&&(i.isPreferred===void 0||xt.boolean(i.isPreferred))&&(i.edit===void 0||cc.is(i.edit))}e.is=n})(Ns||(Ns={}));var hc;(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)||js.is(i.command))}e.is=n})(hc||(hc={}));var Ah;(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})(Ah||(Ah={}));var Ch;(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})(Ch||(Ch={}));var Sh;(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})(Sh||(Sh={}));var xh;(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"})(xh||(xh={}));var wh;(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"})(wh||(wh={}));var Fh;(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})(Fh||(Fh={}));var Nh;(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})(Nh||(Nh={}));var _h;(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})(_h||(_h={}));var Th;(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})(Th||(Th={}));var kh;(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})(kh||(kh={}));var mc;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(mc||(mc={}));var gc;(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)||ho.is(i.tooltip))&&(i.location===void 0||Da.is(i.location))&&(i.command===void 0||js.is(i.command))}e.is=n})(gc||(gc={}));var Lh;(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,gc.is))&&(i.kind===void 0||mc.is(i.kind))&&i.textEdits===void 0||xt.typedArray(i.textEdits,Fr.is)&&(i.tooltip===void 0||xt.string(i.tooltip)||ho.is(i.tooltip))&&(i.paddingLeft===void 0||xt.boolean(i.paddingLeft))&&(i.paddingRight===void 0||xt.boolean(i.paddingRight))}e.is=n})(Lh||(Lh={}));var Ph;(function(e){function t(n){var r=n;return xt.objectLiteral(r)&&ic.is(r.uri)&&xt.string(r.name)}e.is=t})(Ph||(Ph={}));var Bh;(function(e){function t(s,a,o,u){return new uy(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(re,te){var N=re.range.start.line-te.range.start.line;return N===0?re.range.start.character-te.range.start.character:N}),l=o.length,A=u.length-1;A>=0;A--){var p=u[A],O=s.offsetAt(p.range.start),k=s.offsetAt(p.range.end);if(k<=l)o=o.substring(0,O)+p.newText+o.substring(k,o.length);else throw new Error("Overlapping edit");l=O}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 A=0,p=0,O=0;A<u.length&&p<l.length;){var k=a(u[A],l[p]);k<=0?s[O++]=u[A++]:s[O++]=l[p++]}for(;A<u.length;)s[O++]=u[A++];for(;p<l.length;)s[O++]=l[p++];return s}})(Bh||(Bh={}));var uy=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(k){return typeof k<"u"}e.defined=n;function r(k){return typeof k>"u"}e.undefined=r;function i(k){return k===!0||k===!1}e.boolean=i;function s(k){return t.call(k)==="[object String]"}e.string=s;function a(k){return t.call(k)==="[object Number]"}e.number=a;function o(k,re,te){return t.call(k)==="[object Number]"&&re<=k&&k<=te}e.numberRange=o;function u(k){return t.call(k)==="[object Number]"&&-2147483648<=k&&k<=2147483647}e.integer=u;function l(k){return t.call(k)==="[object Number]"&&0<=k&&k<=2147483647}e.uinteger=l;function A(k){return t.call(k)==="[object Function]"}e.func=A;function p(k){return k!==null&&typeof k=="object"}e.objectLiteral=p;function O(k,re){return Array.isArray(k)&&k.every(re)}e.typedArray=O})(xt||(xt={}));const yc=Symbol.for("yaml.alias"),Dc=Symbol.for("yaml.document"),_s=Symbol.for("yaml.map"),Mh=Symbol.for("yaml.pair"),os=Symbol.for("yaml.scalar"),va=Symbol.for("yaml.seq"),Li=Symbol.for("yaml.node.type"),es=e=>!!e&&typeof e=="object"&&e[Li]===yc,mo=e=>!!e&&typeof e=="object"&&e[Li]===Dc,Ur=e=>!!e&&typeof e=="object"&&e[Li]===_s,hr=e=>!!e&&typeof e=="object"&&e[Li]===Mh,Jn=e=>!!e&&typeof e=="object"&&e[Li]===os,Br=e=>!!e&&typeof e=="object"&&e[Li]===va;function Pr(e){if(e&&typeof e=="object")switch(e[Li]){case _s:case va:return!0}return!1}function Dr(e){if(e&&typeof e=="object")switch(e[Li]){case yc:case _s:case os:case va:return!0}return!1}const ly=e=>(Jn(e)||Pr(e))&&!!e.anchor,$s=Symbol("break visit"),cy=Symbol("skip children"),go=Symbol("remove node");function Tr(e,t){const n=fy(t);mo(e)?Ea(null,e.contents,n,Object.freeze([e]))===go&&(e.contents=null):Ea(null,e,n,Object.freeze([]))}Tr.BREAK=$s,Tr.SKIP=cy,Tr.REMOVE=go;function Ea(e,t,n,r){const i=py(e,t,n,r);if(Dr(i)||hr(i))return dy(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===go&&(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===go&&(t.key=null);const a=Ea("value",t.value,n,r);if(a===$s)return $s;a===go&&(t.value=null)}}return i}function fy(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 py(e,t,n,r){var i,s,a,o,u;if(typeof n=="function")return n(e,t,r);if(Ur(t))return(i=n.Map)==null?void 0:i.call(n,e,t,r);if(Br(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(es(t))return(u=n.Alias)==null?void 0:u.call(n,e,t,r)}function dy(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(mo(r))r.contents=n;else{const i=es(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const hy={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},my=e=>e.replace(/[!,[\]{}]/g,t=>hy[t]);class oi{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},oi.defaultYaml,t),this.tags=Object.assign({},oi.defaultTags,n)}clone(){const t=new oi(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new oi(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:oi.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},oi.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:oi.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},oi.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];return s?s+decodeURIComponent(i):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+my(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={};Tr(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
- `)}}oi.defaultYaml={explicit:!1,version:"1.2"},oi.defaultTags={"!!":"tag:yaml.org,2002:"};function Ih(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 Oh(e){const t=new Set;return Tr(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function jh(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function gy(e,t){const n=[],r=new Map;let i=null;return{onAnchor:s=>{n.push(s),i||(i=Oh(e));const a=jh(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||!ly(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 bc{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(!mo(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 vc extends bc{constructor(t){super(yc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Tr(t,{Node:(r,i)=>{if(i===this)return Tr.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=su(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(Ih(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 su(e,t,n){if(es(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=su(e,i,n);s>r&&(r=s)}return r}else if(hr(t)){const r=su(e,t.key,n),i=su(e,t.value,n);return Math.max(r,i)}return 1}const Rh=e=>!e||typeof e!="function"&&typeof e!="object";class Zn extends bc{constructor(t){super(os),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 yy="tag:yaml.org,2002:";function Dy(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 yo(e,t,n){var p,O,k;if(mo(e)&&(e=e.contents),Dr(e))return e;if(hr(e)){const re=(O=(p=n.schema[_s]).createNode)==null?void 0:O.call(p,n.schema,null,n);return re.items.push(e),re}(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 vc(u.anchor);u={anchor:null,node:null},o.set(e,u)}t!=null&&t.startsWith("!!")&&(t=yy+t.slice(2));let l=Dy(e,t,a.tags);if(!l){if(e&&typeof e.toJSON=="function"&&(e=e.toJSON()),!e||typeof e!="object"){const re=new Zn(e);return u&&(u.node=re),re}l=e instanceof Map?a[_s]:Symbol.iterator in Object(e)?a[va]:a[_s]}s&&(s(l),delete n.onTagObj);const A=l!=null&&l.createNode?l.createNode(n.schema,e,n):typeof((k=l==null?void 0:l.nodeClass)==null?void 0:k.from)=="function"?l.nodeClass.from(n.schema,e,n):new Zn(e);return t?A.tag=t:l.default||(A.tag=l.tag),u&&(u.node=A),A}function au(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 yo(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 Do=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class ou extends bc{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(Do(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,au(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,au(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}ou.maxFlowStringSingleLineLength=60;const by=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function us(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const Ts=(e,t,n)=>e.endsWith(`
16
- `)?us(n,t):n.includes(`
17
- `)?`
18
- `+us(n,t):(e.endsWith(" ")?"":" ")+n,$h="flow",Ec="block",uu="quoted";function lu(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=[],A={};let p=i-t.length;typeof r=="number"&&(r>i-Math.max(2,s)?l.push(0):p=i-r);let O,k,re=!1,te=-1,N=-1,oe=-1;n===Ec&&(te=Vh(e,te),te!==-1&&(p=te+u));for(let Le;Le=e[te+=1];){if(n===uu&&Le==="\\"){switch(N=te,e[te+1]){case"x":te+=3;break;case"u":te+=5;break;case"U":te+=9;break;default:te+=1}oe=te}if(Le===`
19
- `)n===Ec&&(te=Vh(e,te)),p=te+u,O=void 0;else{if(Le===" "&&k&&k!==" "&&k!==`
20
- `&&k!==" "){const Ge=e[te+1];Ge&&Ge!==" "&&Ge!==`
21
- `&&Ge!==" "&&(O=te)}if(te>=p)if(O)l.push(O),p=O+u,O=void 0;else if(n===uu){for(;k===" "||k===" ";)k=Le,Le=e[te+=1],re=!0;const Ge=te>oe+1?te-2:N-1;if(A[Ge])return e;l.push(Ge),A[Ge]=!0,p=Ge+u,O=void 0}else re=!0}k=Le}if(re&&o&&o(),l.length===0)return e;a&&a();let Te=e.slice(0,l[0]);for(let Le=0;Le<l.length;++Le){const Ge=l[Le],he=l[Le+1]||e.length;Ge===0?Te=`
22
- ${t}${e.slice(0,he)}`:(n===uu&&A[Ge]&&(Te+=`${e[Ge]}\\`),Te+=`
23
- ${t}${e.slice(Ge+1,he)}`)}return Te}function Vh(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 cu=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),fu=e=>/^(%|---|\.\.\.)/m.test(e);function vy(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 bo(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(fu(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 A=n.substr(u+2,4);switch(A){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:A.substr(0,2)==="00"?a+="\\x"+A.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:lu(a,s,uu,cu(t,!1))}function Ac(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
29
- `)||/[ \t]\n|\n[ \t]/.test(e))return bo(e,t);const n=t.indent||(fu(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
30
- ${n}`)+"'";return t.implicitKey?r:lu(r,n,$h,cu(t,!1))}function Ca(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=bo;else{const i=e.includes('"'),s=e.includes("'");i&&!s?r=Ac:s&&!i?r=bo:r=n?Ac:bo}return r(e,t)}let Cc;try{Cc=new RegExp(`(^|(?<!
31
- ))
32
- +(?!
33
- |$)`,"g")}catch{Cc=/\n+(?!\n|$)/g}function pu({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||fu(n)?" ":""),A=a==="literal"?!0:a==="folded"||t===Zn.BLOCK_FOLDED?!1:t===Zn.BLOCK_LITERAL?!0:!vy(n,u,l.length);if(!n)return A?`|
34
- `:`>
35
- `;let p,O;for(O=n.length;O>0;--O){const ke=n[O-1];if(ke!==`
36
- `&&ke!==" "&&ke!==" ")break}let k=n.substring(O);const re=k.indexOf(`
37
- `);re===-1?p="-":n===k||re!==k.length-1?(p="+",s&&s()):p="",k&&(n=n.slice(0,-k.length),k[k.length-1]===`
38
- `&&(k=k.slice(0,-1)),k=k.replace(Cc,`$&${l}`));let te=!1,N,oe=-1;for(N=0;N<n.length;++N){const ke=n[N];if(ke===" ")te=!0;else if(ke===`
39
- `)oe=N;else break}let Te=n.substring(0,oe<N?oe+1:N);Te&&(n=n.substring(Te.length),Te=Te.replace(/\n+/g,`$&${l}`));let Ge=(A?"|":">")+(te?l?"2":"1":"")+p;if(e&&(Ge+=" "+o(e.replace(/ ?[\r\n]+/g," ")),i&&i()),A)return n=n.replace(/\n+/g,`$&${l}`),`${Ge}
40
- ${l}${Te}${n}${k}`;n=n.replace(/\n+/g,`
41
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`);const he=lu(`${Te}${n}${k}`,l,Ec,cu(r,!0));return`${Ge}
42
- ${l}${he}`}function Ey(e,t,n,r){const{type:i,value:s}=e,{actualString:a,implicitKey:o,indent:u,indentStep:l,inFlow:A}=t;if(o&&s.includes(`
43
- `)||A&&/[[\]{},]/.test(s))return Ca(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return o||A||!s.includes(`
44
- `)?Ca(s,t):pu(e,t,n,r);if(!o&&!A&&i!==Zn.PLAIN&&s.includes(`
45
- `))return pu(e,t,n,r);if(fu(s)){if(u==="")return t.forceBlockIndent=!0,pu(e,t,n,r);if(o&&u===l)return Ca(s,t)}const p=s.replace(/\n+/g,`$&
46
- ${u}`);if(a){const O=te=>{var N;return te.default&&te.tag!=="tag:yaml.org,2002:str"&&((N=te.test)==null?void 0:N.test(p))},{compat:k,tags:re}=t.doc.schema;if(re.some(O)||k!=null&&k.some(O))return Ca(s,t)}return o?p:lu(p,u,$h,cu(t,!1))}function Sc(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=A=>{switch(A){case Zn.BLOCK_FOLDED:case Zn.BLOCK_LITERAL:return i||s?Ca(a.value,t):pu(a,t,n,r);case Zn.QUOTE_DOUBLE:return bo(a.value,t);case Zn.QUOTE_SINGLE:return Ac(a.value,t);case Zn.PLAIN:return Ey(a,t,n,r);default:return null}};let l=u(o);if(l===null){const{defaultKeyType:A,defaultStringType:p}=t.options,O=i&&A||p;if(l=u(O),l===null)throw new Error(`Unsupported default string type ${O}`)}return l}function qh(e,t){const n=Object.assign({blockQuote:!0,commentString:by,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 Ay(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 Cy(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],s=(Jn(e)||Pr(e))&&e.anchor;s&&Ih(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(es(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=Ay(t.doc.schema.tags,s));const a=Cy(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)?Sc(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 Sy({key:e,value:t},n,r,i){const{allNullValues:s,doc:a,indent:o,indentStep:u,options:{commentString:l,indentSeq:A,simpleKeys:p}}=n;let O=Dr(e)&&e.comment||null;if(p){if(O)throw new Error("With simple keys, key nodes cannot have comments");if(Pr(e)){const ze="With simple keys, collection cannot be used as a key value";throw new Error(ze)}}let k=!p&&(!e||O&&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:!k&&(p||!s),indent:o+u});let re=!1,te=!1,N=Sa(e,n,()=>re=!0,()=>te=!0);if(!k&&!n.inFlow&&N.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");k=!0}if(n.inFlow){if(s||t==null)return re&&r&&r(),N===""?"?":k?`? ${N}`:N}else if(s&&!p||t==null&&k)return N=`? ${N}`,O&&!re?N+=Ts(N,n.indent,l(O)):te&&i&&i(),N;re&&(O=null),k?(O&&(N+=Ts(N,n.indent,l(O))),N=`? ${N}
48
- ${o}:`):(N=`${N}:`,O&&(N+=Ts(N,n.indent,l(O))));let oe,Te,Le;Dr(t)?(oe=!!t.spaceBefore,Te=t.commentBefore,Le=t.comment):(oe=!1,Te=null,Le=null,t&&typeof t=="object"&&(t=a.createNode(t))),n.implicitKey=!1,!k&&!O&&Jn(t)&&(n.indentAtStart=N.length+1),te=!1,!A&&u.length>=2&&!n.inFlow&&!k&&Br(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let Ge=!1;const he=Sa(t,n,()=>Ge=!0,()=>te=!0);let ke=" ";if(O||oe||Te){if(ke=oe?`
49
- `:"",Te){const ze=l(Te);ke+=`
50
- ${us(ze,n.indent)}`}he===""&&!n.inFlow?ke===`
51
- `&&(ke=`
52
-
53
- `):ke+=`
54
- ${n.indent}`}else if(!k&&Pr(t)){const ze=he[0],Et=he.indexOf(`
55
- `),Ce=Et!==-1,xe=n.inFlow??t.flow??t.items.length===0;if(Ce||!xe){let et=!1;if(Ce&&(ze==="&"||ze==="!")){let Ve=he.indexOf(" ");ze==="&"&&Ve!==-1&&Ve<Et&&he[Ve+1]==="!"&&(Ve=he.indexOf(" ",Ve+1)),(Ve===-1||Et<Ve)&&(et=!0)}et||(ke=`
56
- ${n.indent}`)}}else(he===""||he[0]===`
57
- `)&&(ke="");return N+=ke+he,n.inFlow?Ge&&r&&r():Le&&!Ge?N+=Ts(N,n.indent,l(Le)):te&&i&&i(),N}function Uh(e,t){(e==="debug"||e==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const Wh="<<";function Gh(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&xy(n))if(r=es(r)?r.resolve(e.doc):r,Br(r))for(const i of r.items)xc(e,t,i);else if(Array.isArray(r))for(const i of r)xc(e,t,i);else xc(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=wy(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 xy=e=>e===Wh||Jn(e)&&e.value===Wh&&(!e.type||e.type===Zn.PLAIN);function xc(e,t,n){const r=e&&es(n)?n.resolve(e.doc):n;if(!Ur(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 wy(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(Dr(e)&&(n!=null&&n.doc)){const r=qh(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)+'..."'),Uh(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 wc(e,t,n){const r=yo(e,void 0,n),i=yo(t,void 0,n);return new ui(r,i)}class ui{constructor(t,n=null){Object.defineProperty(this,Li,{value:Mh}),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 ui(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return Gh(n,r,this)}toString(t,n,r){return t!=null&&t.doc?Sy(this,t,n,r):JSON.stringify(this)}}function Jh(e,t,n){return(t.inFlow??e.flow?Ny:Fy)(e,t,n)}function Fy({comment:e,items:t},n,{blockItemPrefix:r,flowChars:i,itemIndent:s,onChompKeep:a,onComment:o}){const{indent:u,options:{commentString:l}}=n,A=Object.assign({},n,{indent:s,type:null});let p=!1;const O=[];for(let re=0;re<t.length;++re){const te=t[re];let N=null;if(Dr(te))!p&&te.spaceBefore&&O.push(""),du(n,O,te.commentBefore,p),te.comment&&(N=te.comment);else if(hr(te)){const Te=Dr(te.key)?te.key:null;Te&&(!p&&Te.spaceBefore&&O.push(""),du(n,O,Te.commentBefore,p))}p=!1;let oe=Sa(te,A,()=>N=null,()=>p=!0);N&&(oe+=Ts(oe,s,l(N))),p&&N&&(p=!1),O.push(r+oe)}let k;if(O.length===0)k=i.start+i.end;else{k=O[0];for(let re=1;re<O.length;++re){const te=O[re];k+=te?`
58
- ${u}${te}`:`
59
- `}}return e?(k+=`
60
- `+us(l(e),u),o&&o()):p&&a&&a(),k}function Ny({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 A=Object.assign({},n,{indent:i,inFlow:!0,type:null});let p=!1,O=0;const k=[];for(let oe=0;oe<t.length;++oe){const Te=t[oe];let Le=null;if(Dr(Te))Te.spaceBefore&&k.push(""),du(n,k,Te.commentBefore,!1),Te.comment&&(Le=Te.comment);else if(hr(Te)){const he=Dr(Te.key)?Te.key:null;he&&(he.spaceBefore&&k.push(""),du(n,k,he.commentBefore,!1),he.comment&&(p=!0));const ke=Dr(Te.value)?Te.value:null;ke?(ke.comment&&(Le=ke.comment),ke.commentBefore&&(p=!0)):Te.value==null&&(he!=null&&he.comment)&&(Le=he.comment)}Le&&(p=!0);let Ge=Sa(Te,A,()=>Le=null);oe<t.length-1&&(Ge+=","),Le&&(Ge+=Ts(Ge,i,l(Le))),!p&&(k.length>O||Ge.includes(`
61
- `))&&(p=!0),k.push(Ge),O=k.length}let re;const{start:te,end:N}=r;if(k.length===0)re=te+N;else if(p||(p=k.reduce((Te,Le)=>Te+Le.length+2,2)>ou.maxFlowStringSingleLineLength),p){re=te;for(const oe of k)re+=oe?`
62
- ${o}${a}${oe}`:`
63
- `;re+=`
64
- ${a}${N}`}else re=`${te}${u}${k.join(" ")}${u}${N}`;return e&&(re+=Ts(re,a,l(e)),s&&s()),re}function du({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const s=us(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 ou{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(_s,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(wc(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 ui(t,t==null?void 0:t.value):r=new ui(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)&&Rh(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 ui(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)Gh(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})),Jh(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 Ur(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Bi.from(e,t,n)};class qs extends ou{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=hu(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=hu(t);if(typeof r!="number")return;const i=this.items[r];return!n&&Jn(i)?i.value:i}has(t){const n=hu(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=hu(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const i=this.items[r];Jn(i)&&Rh(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?Jh(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(yo(o,void 0,r))}}return s}}function hu(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 Br(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>qs.from(e,t,n)},mu={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),Sc(e,t,n,r)}},gu={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"&&gu.test.test(e)?e:t.options.nullStr},Fc={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&&Fc.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 Yh={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},Hh={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)}},zh={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},yu=e=>typeof e=="bigint"||Number.isInteger(e),Nc=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function Qh(e,t,n){const{value:r}=e;return yu(r)&&r>=0?n+r.toString(t):Ui(e)}const Xh={identify:e=>yu(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Nc(e,2,8,n),stringify:e=>Qh(e,8,"0o")},Kh={identify:yu,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Nc(e,0,10,n),stringify:Ui},Zh={identify:e=>yu(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Nc(e,2,16,n),stringify:e=>Qh(e,16,"0x")},_y=[xa,wa,mu,gu,Fc,Xh,Kh,Zh,Yh,Hh,zh];function em(e){return typeof e=="bigint"||Number.isInteger(e)}const Du=({value:e})=>JSON.stringify(e),Ty=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:Du},{identify:e=>e==null,createNode:()=>new Zn(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Du},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:Du},{identify:em,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})=>em(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:Du}],ky={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},Ly=[xa,wa].concat(Ty,ky),_c={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),A=new Array(l);for(let p=0,O=0;p<l;++p,O+=u)A[p]=o.substr(O,u);o=A.join(t===Zn.BLOCK_LITERAL?`
65
- `:" ")}return Sc({comment:e,type:t,value:o},r,i,s)}};function tm(e,t){if(Br(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!hr(r)){if(Ur(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const i=r.items[0]||new ui(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 ui(r)}}else t("Expected a sequence for this tag");return e}function nm(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(wc(o,u,n))}return i}const Tc={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:tm,createNode:nm};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=nm(t,n,r),s=new this;return s.items=i.items,s}}Fa.tag="tag:yaml.org,2002:omap";const kc={collection:"seq",identify:e=>e instanceof Map,nodeClass:Fa,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=tm(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 rm({value:e,source:t},n){return t&&(e?im:sm).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const im={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:rm},sm={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:rm},Py={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},By={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)}},My={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},vo=e=>typeof e=="bigint"||Number.isInteger(e);function bu(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 Lc(e,t,n){const{value:r}=e;if(vo(r)){const i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return Ui(e)}const Iy={identify:vo,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>bu(e,2,2,n),stringify:e=>Lc(e,2,"0b")},Oy={identify:vo,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>bu(e,1,8,n),stringify:e=>Lc(e,8,"0")},jy={identify:vo,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>bu(e,0,10,n),stringify:Ui},Ry={identify:vo,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>bu(e,2,16,n),stringify:e=>Lc(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 ui(t.key,null):n=new ui(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 ui(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(wc(a,null,r));return s}}Na.tag="tag:yaml.org,2002:set";const Pc={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(Ur(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 Bc(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 am(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 om={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})=>Bc(e,n),stringify:am},um={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=>Bc(e,!1),stringify:am},vu={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(vu.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 A=t[8];if(A&&A!=="Z"){let p=Bc(A,!1);Math.abs(p)<30&&(p*=60),l-=6e4*p}return new Date(l)},stringify:({value:e})=>e.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},lm=[xa,wa,mu,gu,im,sm,Iy,Oy,jy,Ry,Py,By,My,_c,kc,Tc,Pc,om,um,vu],cm=new Map([["core",_y],["failsafe",[xa,wa,mu]],["json",Ly],["yaml11",lm],["yaml-1.1",lm]]),fm={binary:_c,bool:Fc,float:zh,floatExp:Hh,floatNaN:Yh,floatTime:um,int:Kh,intHex:Zh,intOct:Xh,intTime:om,map:xa,null:gu,omap:kc,pairs:Tc,seq:wa,set:Pc,timestamp:vu},$y={"tag:yaml.org,2002:binary":_c,"tag:yaml.org,2002:omap":kc,"tag:yaml.org,2002:pairs":Tc,"tag:yaml.org,2002:set":Pc,"tag:yaml.org,2002:timestamp":vu};function Mc(e,t){let n=cm.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(cm.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=fm[r];if(i)return i;const s=Object.keys(fm).map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${s}`)})}const Vy=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Ic{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:i,schema:s,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(t)?Mc(t,"compat"):t?Mc(null,t):null,this.merge=!!r,this.name=typeof s=="string"&&s||"core",this.knownTags=i?$y:{},this.tags=Mc(n,this.name),this.toStringOptions=o??null,Object.defineProperty(this,_s,{value:xa}),Object.defineProperty(this,os,{value:mu}),Object.defineProperty(this,va,{value:wa}),this.sortMapEntries=typeof a=="function"?a:a===!0?Vy:null}clone(){const t=Object.create(Ic.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function qy(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=qh(e,t),{commentString:s}=i.options;if(e.commentBefore){n.length!==1&&n.unshift("");const l=s(e.commentBefore);n.unshift(us(l,""))}let a=!1,o=null;if(e.contents){if(Dr(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const p=s(e.contents.commentBefore);n.push(us(p,""))}i.forceBlockIndent=!!e.comment,o=e.contents.comment}const l=o?void 0:()=>a=!0;let A=Sa(e.contents,i,()=>o=null,l);o&&(A+=Ts(A,"",s(o))),(A[0]==="|"||A[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${A}`:n.push(A)}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(us(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(us(s(l),"")))}return n.join(`
69
- `)+`
70
- `}class Eu{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Li,{value:Dc});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 oi({version:a}),this.setSchema(a,r),this.contents=t===void 0?null:this.createNode(t,i,r)}clone(){const t=Object.create(Eu.prototype,{[Li]:{value:Dc}});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=Oh(this);t.anchor=!n||r.has(n)?jh(n||"a",r):n}return new vc(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 N=Te=>typeof Te=="number"||Te instanceof String||Te instanceof Number,oe=n.filter(N).map(String);oe.length>0&&(n=n.concat(oe)),i=n}else r===void 0&&n&&(r=n,n=void 0);const{aliasDuplicateObjects:s,anchorPrefix:a,flow:o,keepUndefined:u,onTagObj:l,tag:A}=r??{},{onAnchor:p,setAnchors:O,sourceObjects:k}=gy(this,a||"a"),re={aliasDuplicateObjects:s??!0,keepUndefined:u??!1,onAnchor:p,onTagObj:l,replacer:i,schema:this.schema,sourceObjects:k},te=yo(t,A,re);return o&&Pr(te)&&(te.flow=!0),O(),te}createPair(t,n,r={}){const i=this.createNode(t,null,r),s=this.createNode(n,null,r);return new ui(i,s)}delete(t){return _a(this.contents)?this.contents.delete(t):!1}deleteIn(t){return Do(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 Do(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 Do(t)?this.contents!==void 0:Pr(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=au(this.schema,[t],n):_a(this.contents)&&this.contents.set(t,n)}setIn(t,n){Do(t)?this.contents=n:this.contents==null?this.contents=au(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 oi({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 oi({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 Ic(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:A}of o.anchors.values())s(A,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 qy(this,t)}}function _a(e){if(Pr(e))return!0;throw new Error("Expected a YAML collection as document contents")}class pm extends Error{constructor(t,n,r,i){super(),this.name=t,this.code=r,this.message=i,this.pos=n}}class Eo extends pm{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class Uy extends pm{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const dm=(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,A="",p="",O=!1,k=!1,re=!1,te=null,N=null,oe=null,Te=null,Le=null;for(const ke of e)switch(re&&(ke.type!=="space"&&ke.type!=="newline"&&ke.type!=="comma"&&s(ke.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),re=!1),ke.type){case"space":!t&&u&&n!=="doc-start"&&ke.source[0]===" "&&s(ke,"TAB_AS_INDENT","Tabs are not allowed as indentation"),l=!0;break;case"comment":{l||s(ke,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const ze=ke.source.substring(1)||" ";A?A+=p+ze:A=ze,p="",u=!1;break}case"newline":u?A?A+=ke.source:o=!0:p+=ke.source,u=!0,O=!0,(te||N)&&(k=!0),l=!0;break;case"anchor":te&&s(ke,"MULTIPLE_ANCHORS","A node can have at most one anchor"),ke.source.endsWith(":")&&s(ke.offset+ke.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),te=ke,Le===null&&(Le=ke.offset),u=!1,l=!1,re=!0;break;case"tag":{N&&s(ke,"MULTIPLE_TAGS","A node can have at most one tag"),N=ke,Le===null&&(Le=ke.offset),u=!1,l=!1,re=!0;break}case n:(te||N)&&s(ke,"BAD_PROP_ORDER",`Anchors and tags must be after the ${ke.source} indicator`),Te&&s(ke,"UNEXPECTED_TOKEN",`Unexpected ${ke.source} in ${t??"collection"}`),Te=ke,u=!1,l=!1;break;case"comma":if(t){oe&&s(ke,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),oe=ke,u=!1,l=!1;break}default:s(ke,"UNEXPECTED_TOKEN",`Unexpected ${ke.type} token`),u=!1,l=!1}const Ge=e[e.length-1],he=Ge?Ge.offset+Ge.source.length:i;return re&&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:oe,found:Te,spaceBefore:o,comment:A,hasNewline:O,hasNewlineAfterProp:k,anchor:te,tag:N,end:he,start:Le??he}}function Ao(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(Ao(t.key)||Ao(t.value))return!0}return!1;default:return!0}}function Oc(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&Ao(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function hm(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 mm="All mapping items must start at the same column";function Wy({composeNode:e,composeEmptyNode:t},n,r,i,s){var A;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 p of r.items){const{start:O,key:k,sep:re,value:te}=p,N=Ta(O,{indicator:"explicit-key-ind",next:k??(re==null?void 0:re[0]),offset:u,onError:i,startOnNewline:!0}),oe=!N.found;if(oe){if(k&&(k.type==="block-seq"?i(u,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in k&&k.indent!==r.indent&&i(u,"BAD_INDENT",mm)),!N.anchor&&!N.tag&&!re){l=N.end,N.comment&&(o.comment?o.comment+=`
77
- `+N.comment:o.comment=N.comment);continue}(N.hasNewlineAfterProp||Ao(k))&&i(k??O[O.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((A=N.found)==null?void 0:A.indent)!==r.indent&&i(u,"BAD_INDENT",mm);const Te=N.end,Le=k?e(n,k,N,i):t(n,Te,O,null,N,i);n.schema.compat&&Oc(r.indent,k,i),hm(n,o.items,Le)&&i(Te,"DUPLICATE_KEY","Map keys must be unique");const Ge=Ta(re??[],{indicator:"map-value-ind",next:te,offset:Le.range[2],onError:i,startOnNewline:!k||k.type==="block-scalar"});if(u=Ge.end,Ge.found){oe&&((te==null?void 0:te.type)==="block-map"&&!Ge.hasNewline&&i(u,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&N.start<Ge.found.offset-1024&&i(Le.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const he=te?e(n,te,Ge,i):t(n,u,re,null,Ge,i);n.schema.compat&&Oc(r.indent,te,i),u=he.range[2];const ke=new ui(Le,he);n.options.keepSourceTokens&&(ke.srcToken=p),o.items.push(ke)}else{oe&&i(Le.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),Ge.comment&&(Le.comment?Le.comment+=`
78
- `+Ge.comment:Le.comment=Ge.comment);const he=new ui(Le);n.options.keepSourceTokens&&(he.srcToken=p),o.items.push(he)}}return l&&l<u&&i(l,"IMPOSSIBLE","Map comment with trailing content"),o.range=[r.offset,u,l??u],o}function Gy({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:A,value:p}of r.items){const O=Ta(A,{indicator:"seq-item-ind",next:p,offset:u,onError:i,startOnNewline:!0});if(!O.found)if(O.anchor||O.tag||p)p&&p.type==="block-seq"?i(O.end,"BAD_INDENT","All sequence items must start at the same column"):i(u,"MISSING_CHAR","Sequence item without - indicator");else{l=O.end,O.comment&&(o.comment=O.comment);continue}const k=p?e(n,p,O,i):t(n,O.end,A,null,O,i);n.schema.compat&&Oc(r.indent,p,i),u=k.range[2],o.items.push(k)}return o.range=[r.offset,u,l??u],o}function Co(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 A=u.substring(1)||" ";i?i+=a+A:i=A,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 jc="Block collections are not allowed within flow collections",Rc=e=>e&&(e.type==="block-map"||e.type==="block-seq");function Jy({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 A=n.atRoot;A&&(n.atRoot=!1);let p=r.offset+r.start.source.length;for(let N=0;N<r.items.length;++N){const oe=r.items[N],{start:Te,key:Le,sep:Ge,value:he}=oe,ke=Ta(Te,{flow:o,indicator:"explicit-key-ind",next:Le??(Ge==null?void 0:Ge[0]),offset:p,onError:i,startOnNewline:!1});if(!ke.found){if(!ke.anchor&&!ke.tag&&!Ge&&!he){N===0&&ke.comma?i(ke.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`):N<r.items.length-1&&i(ke.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${o}`),ke.comment&&(l.comment?l.comment+=`
79
- `+ke.comment:l.comment=ke.comment),p=ke.end;continue}!a&&n.options.strict&&Ao(Le)&&i(Le,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(N===0)ke.comma&&i(ke.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`);else if(ke.comma||i(ke.start,"MISSING_CHAR",`Missing , between ${o} items`),ke.comment){let ze="";e:for(const Et of Te)switch(Et.type){case"comma":case"space":break;case"comment":ze=Et.source.substring(1);break e;default:break e}if(ze){let Et=l.items[l.items.length-1];hr(Et)&&(Et=Et.value??Et.key),Et.comment?Et.comment+=`
80
- `+ze:Et.comment=ze,ke.comment=ke.comment.substring(ze.length+1)}}if(!a&&!Ge&&!ke.found){const ze=he?e(n,he,ke,i):t(n,ke.end,Ge,null,ke,i);l.items.push(ze),p=ze.range[2],Rc(he)&&i(ze.range,"BLOCK_IN_FLOW",jc)}else{const ze=ke.end,Et=Le?e(n,Le,ke,i):t(n,ze,Te,null,ke,i);Rc(Le)&&i(Et.range,"BLOCK_IN_FLOW",jc);const Ce=Ta(Ge??[],{flow:o,indicator:"map-value-ind",next:he,offset:Et.range[2],onError:i,startOnNewline:!1});if(Ce.found){if(!a&&!ke.found&&n.options.strict){if(Ge)for(const Ve of Ge){if(Ve===Ce.found)break;if(Ve.type==="newline"){i(Ve,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}ke.start<Ce.found.offset-1024&&i(Ce.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else he&&("source"in he&&he.source&&he.source[0]===":"?i(he,"MISSING_CHAR",`Missing space after : in ${o}`):i(Ce.start,"MISSING_CHAR",`Missing , or : between ${o} items`));const xe=he?e(n,he,Ce,i):Ce.found?t(n,Ce.end,Ge,null,Ce,i):null;xe?Rc(he)&&i(xe.range,"BLOCK_IN_FLOW",jc):Ce.comment&&(Et.comment?Et.comment+=`
81
- `+Ce.comment:Et.comment=Ce.comment);const et=new ui(Et,xe);if(n.options.keepSourceTokens&&(et.srcToken=oe),a){const Ve=l;hm(n,Ve.items,Et)&&i(ze,"DUPLICATE_KEY","Map keys must be unique"),Ve.items.push(et)}else{const Ve=new Bi(n.schema);Ve.flow=!0,Ve.items.push(et),l.items.push(Ve)}p=xe?xe.range[2]:Ce.end}}const O=a?"}":"]",[k,...re]=r.end;let te=p;if(k&&k.source===O)te=k.offset+k.source.length;else{const N=o[0].toUpperCase()+o.substring(1),oe=A?`${N} must end with a ${O}`:`${N} in block collection must be sufficiently indented and end with a ${O}`;i(p,A?"MISSING_CHAR":"BAD_INDENT",oe),k&&k.source.length!==1&&re.unshift(k)}if(re.length>0){const N=Co(re,te,n.options.strict,i);N.comment&&(l.comment?l.comment+=`
82
- `+N.comment:l.comment=N.comment),l.range=[r.offset,te,N.offset]}else l.range=[r.offset,te,te];return l}function $c(e,t,n,r,i,s){const a=n.type==="block-map"?Wy(e,t,n,r,s):n.type==="block-seq"?Gy(e,t,n,r,s):Jy(e,t,n,r,s),o=a.constructor;return i==="!"||i===o.tagName?(a.tag=o.tagName,a):(i&&(a.tag=i),a)}function Yy(e,t,n,r,i){var p;const s=r?t.directives.tagName(r.source,O=>i(r,"TAG_RESOLVE_FAILED",O)):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 $c(e,t,n,i,s);let o=t.schema.tags.find(O=>O.tag===s&&O.collection===a);if(!o){const O=t.schema.knownTags[s];if(O&&O.collection===a)t.schema.tags.push(Object.assign({},O,{default:!1})),o=O;else return O!=null&&O.collection?i(r,"BAD_COLLECTION_TYPE",`${O.tag} used for ${a} collection, but expects ${O.collection}`,!0):i(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,!0),$c(e,t,n,i,s)}const u=$c(e,t,n,i,s,o),l=((p=o.resolve)==null?void 0:p.call(o,u,O=>i(r,"TAG_RESOLVE_FAILED",O),t.options))??u,A=Dr(l)?l:new Zn(l);return A.range=u.range,A.tag=s,o!=null&&o.format&&(A.format=o.format),A}function Hy(e,t,n){const r=e.offset,i=zy(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?Qy(e.source):[];let o=a.length;for(let te=a.length-1;te>=0;--te){const N=a[te][1];if(N===""||N==="\r")o=te;else break}if(o===0){const te=i.chomp==="+"&&a.length>0?`
83
- `.repeat(Math.max(1,a.length-1)):"";let N=r+i.length;return e.source&&(N+=e.source.length),{value:te,type:s,comment:i.comment,range:[r,N,N]}}let u=e.indent+i.indent,l=e.offset+i.length,A=0;for(let te=0;te<o;++te){const[N,oe]=a[te];if(oe===""||oe==="\r")i.indent===0&&N.length>u&&(u=N.length);else{if(N.length<u){const Te="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";n(l+N.length,"MISSING_CHAR",Te)}i.indent===0&&(u=N.length),A=te;break}l+=N.length+oe.length+1}for(let te=a.length-1;te>=o;--te)a[te][0].length>u&&(o=te+1);let p="",O="",k=!1;for(let te=0;te<A;++te)p+=a[te][0].slice(u)+`
84
- `;for(let te=A;te<o;++te){let[N,oe]=a[te];l+=N.length+oe.length+1;const Te=oe[oe.length-1]==="\r";if(Te&&(oe=oe.slice(0,-1)),oe&&N.length<u){const Ge=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;n(l-oe.length-(Te?2:1),"BAD_INDENT",Ge),N=""}s===Zn.BLOCK_LITERAL?(p+=O+N.slice(u)+oe,O=`
85
- `):N.length>u||oe[0]===" "?(O===" "?O=`
86
- `:!k&&O===`
87
- `&&(O=`
88
-
89
- `),p+=O+N.slice(u)+oe,O=`
90
- `,k=!0):oe===""?O===`
91
- `?p+=`
92
- `:O=`
93
- `:(p+=O+oe,O=" ",k=!1)}switch(i.chomp){case"-":break;case"+":for(let te=o;te<a.length;++te)p+=`
94
- `+a[te][0].slice(u);p[p.length-1]!==`
95
- `&&(p+=`
96
- `);break;default:p+=`
97
- `}const re=r+i.length+e.source.length;return{value:p,type:s,comment:i.comment,range:[r,re,re]}}function zy({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 O=1;O<i.length;++O){const k=i[O];if(!o&&(k==="-"||k==="+"))o=k;else{const re=Number(k);!a&&re?a=re:u===-1&&(u=e+O)}}u!==-1&&r(u,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${i}`);let l=!1,A="",p=i.length;for(let O=1;O<t.length;++O){const k=t[O];switch(k.type){case"space":l=!0;case"newline":p+=k.source.length;break;case"comment":n&&!l&&r(k,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=k.source.length,A=k.source.substring(1);break;case"error":r(k,"UNEXPECTED_TOKEN",k.message),p+=k.source.length;break;default:{const re=`Unexpected token in block scalar header: ${k.type}`;r(k,"UNEXPECTED_TOKEN",re);const te=k.source;te&&typeof te=="string"&&(p+=te.length)}}}return{mode:s,indent:a,chomp:o,comment:A,length:p}}function Qy(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 Xy(e,t,n){const{offset:r,type:i,source:s,end:a}=e;let o,u;const l=(O,k,re)=>n(r+O,k,re);switch(i){case"scalar":o=Zn.PLAIN,u=Ky(s,l);break;case"single-quoted-scalar":o=Zn.QUOTE_SINGLE,u=Zy(s,l);break;case"double-quoted-scalar":o=Zn.QUOTE_DOUBLE,u=eD(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 A=r+s.length,p=Co(a,A,t,n);return{value:u,type:o,comment:p.comment,range:[r,A,p.offset]}}function Ky(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}`),gm(e)}function Zy(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),gm(e.slice(1,-1)).replace(/''/g,"'")}function gm(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 eD(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}=tD(e,r);n+=s,r=a}else if(i==="\\"){let s=e[++r];const a=nD[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+=rD(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 tD(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 nD={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
112
- `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function rD(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 ym(e,t,n,r){const{value:i,type:s,comment:a,range:o}=t.type==="block-scalar"?Hy(t,e.options.strict,r):Xy(t,e.options.strict,r),u=n?e.directives.tagName(n.source,p=>r(n,"TAG_RESOLVE_FAILED",p)):null,l=n&&u?iD(e.schema,i,u,n,r):t.type==="scalar"?sD(e,i,t,r):e.schema[os];let A;try{const p=l.resolve(i,O=>r(n??t,"TAG_RESOLVE_FAILED",O),e.options);A=Jn(p)?p:new Zn(p)}catch(p){const O=p instanceof Error?p.message:String(p);r(n??t,"TAG_RESOLVE_FAILED",O),A=new Zn(i)}return A.range=o,A.source=i,s&&(A.type=s),u&&(A.tag=u),l.format&&(A.format=l.format),a&&(A.comment=a),A}function iD(e,t,n,r,i){var o;if(n==="!")return e[os];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[os])}function sD({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[os];if(t.compat){const a=t.compat.find(o=>{var u;return o.default&&((u=o.test)==null?void 0:u.test(n))})??t[os];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 aD(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 oD={composeNode:Dm,composeEmptyNode:Vc};function Dm(e,t,n,r){const{spaceBefore:i,comment:s,anchor:a,tag:o}=n;let u,l=!0;switch(t.type){case"alias":u=uD(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=ym(e,t,o,r),a&&(u.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":u=Yy(oD,e,t,o,r),a&&(u.anchor=a.source.substring(1));break;default:{const A=t.type==="error"?t.message:`Unsupported token (type: ${t.type})`;r(t,"UNEXPECTED_TOKEN",A),u=Vc(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 Vc(e,t,n,r,{spaceBefore:i,comment:s,anchor:a,tag:o,end:u},l){const A={type:"scalar",offset:aD(t,n,r),indent:-1,source:""},p=ym(e,A,o,l);return a&&(p.anchor=a.source.substring(1),p.anchor===""&&l(a,"BAD_ALIAS","Anchor cannot be an empty string")),i&&(p.spaceBefore=!0),s&&(p.comment=s,p.range[2]=u),p}function uD({options:e},{offset:t,source:n,end:r},i){const s=new vc(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=Co(r,a,e.strict,i);return s.range=[t,a,o.offset],o.comment&&(s.comment=o.comment),s}function lD(e,t,{offset:n,start:r,value:i,end:s},a){const o=Object.assign({_directives:t},e),u=new Eu(void 0,o),l={atRoot:!0,directives:u.directives,options:u.options,schema:u.schema},A=Ta(r,{indicator:"doc-start",next:i??(s==null?void 0:s[0]),offset:n,onError:a,startOnNewline:!0});A.found&&(u.directives.docStart=!0,i&&(i.type==="block-map"||i.type==="block-seq")&&!A.hasNewline&&a(A.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),u.contents=i?Dm(l,i,A,a):Vc(l,A.end,r,null,A,a);const p=u.contents.range[2],O=Co(s,p,!1,a);return O.comment&&(u.comment=O.comment),u.range=[n,p,O.offset],u}function So(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 bm(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 vm{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,i,s)=>{const a=So(n);s?this.warnings.push(new Uy(a,r,i)):this.errors.push(new Eo(a,r,i))},this.directives=new oi({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:i}=bm(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:bm(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=So(t);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",r,i)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=lD(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 Eo(So(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 Eo(So(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=Co(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 Eo(So(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 Eu(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 cD=e=>"type"in e?Au(e):Cu(e);function Au(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=Au(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=Cu(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=Cu(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=Cu(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 Cu({start:e,key:t,sep:n,value:r}){let i="";for(const s of e)i+=s.source;if(t&&(i+=Au(t)),n)for(const s of n)i+=s.source;return r&&(i+=Au(r)),i}const qc=Symbol("break visit"),fD=Symbol("skip children"),Em=Symbol("remove item");function Us(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),Am(Object.freeze([]),e,t)}Us.BREAK=qc,Us.SKIP=fD,Us.REMOVE=Em,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 Am(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=Am(Object.freeze(e.concat([[i,a]])),s.items[a],n);if(typeof o=="number")a=o-1;else{if(o===qc)return qc;o===Em&&(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 Cm="\uFEFF",Sm="",xm="",Uc="",pD=e=>!!e&&"items"in e;function dD(e){switch(e){case Cm:return"byte-order-mark";case Sm:return"doc-mode";case xm:return"flow-error-end";case Uc: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 wm="0123456789ABCDEFabcdef".split(""),hD="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),Wc=",[]{}".split(""),mD=` ,[]{}
123
- \r `.split(""),Gc=e=>!e||mD.includes(e);class gD{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]===Cm&&(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 Sm,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(Gc),"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 xm,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(Gc),"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 Uc,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&&Wc.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&&Wc.includes(i))break;n=r}return!i&&!this.atEnd?this.setNext("plain-scalar"):(yield Uc,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(Gc))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Mi(n)||t&&Wc.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(hD.includes(n))n=this.buffer[++t];else if(n==="%"&&wm.includes(this.buffer[t+1])&&wm.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 Fm{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 Nm(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 _m(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 Su(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 Tm(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,_m(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 Jc{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 gD,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"&&Tm(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&&Nm(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":{Nm(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=Su(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(_m(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=Su(r),s=ka(i);Tm(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=Su(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=Su(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 yD(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new Fm||null,prettyErrors:t}}function DD(e,t={}){const{lineCounter:n,prettyErrors:r}=yD(t),i=new Jc(n==null?void 0:n.addNewLine),s=new vm(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 Eo(o.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(a.errors.forEach(dm(e,n)),a.warnings.forEach(dm(e,n))),a}function bD(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const i=DD(e,n);if(!i)return null;if(i.warnings.forEach(s=>Uh(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 km=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ts(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function Lm(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 ED(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),ts(s),s.length!==0&&(t=s+"/"+t,n=s.charCodeAt(0)===47)}return t=Lm(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(ts(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=Lm(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return ts(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];ts(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":La.normalize(t)},relative:function(t,n){if(ts(t),ts(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,A=-1,p=0;p<=l;++p){if(p===l){if(u>l){if(n.charCodeAt(a+p)===47)return n.slice(a+p+1);if(p===0)return n.slice(a+p)}else s>l&&(t.charCodeAt(r+p)===47?A=p:p===0&&(A=0));break}var O=t.charCodeAt(r+p),k=n.charCodeAt(a+p);if(O!==k)break;O===47&&(A=p)}var re="";for(p=r+A+1;p<=i;++p)(p===i||t.charCodeAt(p)===47)&&(re.length===0?re+="..":re+="/..");return re.length>0?re+n.slice(a+A):(a+=A,n.charCodeAt(a)===47&&++a,n.slice(a))},_makeLong:function(t){return t},dirname:function(t){if(ts(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');ts(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){ts(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 ED("/",t)},parse:function(t){ts(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,A=t.length-1,p=0;A>=s;--A){if(r=t.charCodeAt(A),r===47){if(!l){o=A+1;break}continue}u===-1&&(l=!1,u=A+1),r===46?a===-1?a=A:p!==1&&(p=1):a!==-1&&(p=-1)}return a===-1||u===-1||p===0||p===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,Pm={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 Xe=function(ut){return ut&&ut.Math==Math&&ut};at.exports=Xe(typeof globalThis=="object"&&globalThis)||Xe(typeof window=="object"&&window)||Xe(typeof self=="object"&&self)||Xe(typeof km=="object"&&km)||function(){return this}()||Function("return this")()}),i=n((Qt,at)=>{at.exports=function(Xe){try{return!!Xe()}catch{return!0}}}),s=n((Qt,at)=>{var Xe=i();at.exports=!Xe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),a=n((Qt,at)=>{var Xe=i();at.exports=!Xe(function(){var ut=(function(){}).bind();return typeof ut!="function"||ut.hasOwnProperty("prototype")})}),o=n((Qt,at)=>{var Xe=a(),ut=Function.prototype.call;at.exports=Xe?ut.bind(ut):function(){return ut.apply(ut,arguments)}}),u=n(Qt=>{var at={}.propertyIsEnumerable,Xe=Object.getOwnPropertyDescriptor,ut=Xe&&!at.call({1:2},1);Qt.f=ut?function(it){var St=Xe(this,it);return!!St&&St.enumerable}:at}),l=n((Qt,at)=>{at.exports=function(Xe,ut){return{enumerable:!(Xe&1),configurable:!(Xe&2),writable:!(Xe&4),value:ut}}}),A=n((Qt,at)=>{var Xe=a(),ut=Function.prototype,it=ut.call,St=Xe&&ut.bind.bind(it,it);at.exports=Xe?St:function(Pt){return function(){return it.apply(Pt,arguments)}}}),p=n((Qt,at)=>{var Xe=A(),ut=Xe({}.toString),it=Xe("".slice);at.exports=function(St){return it(ut(St),8,-1)}}),O=n((Qt,at)=>{var Xe=A(),ut=i(),it=p(),St=Object,Pt=Xe("".split);at.exports=ut(function(){return!St("z").propertyIsEnumerable(0)})?function(Yt){return it(Yt)=="String"?Pt(Yt,""):St(Yt)}:St}),k=n((Qt,at)=>{at.exports=function(Xe){return Xe==null}}),re=n((Qt,at)=>{var Xe=k(),ut=TypeError;at.exports=function(it){if(Xe(it))throw ut("Can't call method on "+it);return it}}),te=n((Qt,at)=>{var Xe=O(),ut=re();at.exports=function(it){return Xe(ut(it))}}),N=n((Qt,at)=>{var Xe=typeof document=="object"&&document.all,ut=typeof Xe>"u"&&Xe!==void 0;at.exports={all:Xe,IS_HTMLDDA:ut}}),oe=n((Qt,at)=>{var Xe=N(),ut=Xe.all;at.exports=Xe.IS_HTMLDDA?function(it){return typeof it=="function"||it===ut}:function(it){return typeof it=="function"}}),Te=n((Qt,at)=>{var Xe=oe(),ut=N(),it=ut.all;at.exports=ut.IS_HTMLDDA?function(St){return typeof St=="object"?St!==null:Xe(St)||St===it}:function(St){return typeof St=="object"?St!==null:Xe(St)}}),Le=n((Qt,at)=>{var Xe=r(),ut=oe(),it=function(St){return ut(St)?St:void 0};at.exports=function(St,Pt){return arguments.length<2?it(Xe[St]):Xe[St]&&Xe[St][Pt]}}),Ge=n((Qt,at)=>{var Xe=A();at.exports=Xe({}.isPrototypeOf)}),he=n((Qt,at)=>{var Xe=Le();at.exports=Xe("navigator","userAgent")||""}),ke=n((Qt,at)=>{var Xe=r(),ut=he(),it=Xe.process,St=Xe.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}),ze=n((Qt,at)=>{var Xe=ke(),ut=i();at.exports=!!Object.getOwnPropertySymbols&&!ut(function(){var it=Symbol();return!String(it)||!(Object(it)instanceof Symbol)||!Symbol.sham&&Xe&&Xe<41})}),Et=n((Qt,at)=>{var Xe=ze();at.exports=Xe&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),Ce=n((Qt,at)=>{var Xe=Le(),ut=oe(),it=Ge(),St=Et(),Pt=Object;at.exports=St?function(Yt){return typeof Yt=="symbol"}:function(Yt){var Vt=Xe("Symbol");return ut(Vt)&&it(Vt.prototype,Pt(Yt))}}),xe=n((Qt,at)=>{var Xe=String;at.exports=function(ut){try{return Xe(ut)}catch{return"Object"}}}),et=n((Qt,at)=>{var Xe=oe(),ut=xe(),it=TypeError;at.exports=function(St){if(Xe(St))return St;throw it(ut(St)+" is not a function")}}),Ve=n((Qt,at)=>{var Xe=et(),ut=k();at.exports=function(it,St){var Pt=it[St];return ut(Pt)?void 0:Xe(Pt)}}),Rt=n((Qt,at)=>{var Xe=o(),ut=oe(),it=Te(),St=TypeError;at.exports=function(Pt,Yt){var Vt,Ht;if(Yt==="string"&&ut(Vt=Pt.toString)&&!it(Ht=Xe(Vt,Pt))||ut(Vt=Pt.valueOf)&&!it(Ht=Xe(Vt,Pt))||Yt!=="string"&&ut(Vt=Pt.toString)&&!it(Ht=Xe(Vt,Pt)))return Ht;throw St("Can't convert object to primitive value")}}),pn=n((Qt,at)=>{at.exports=!1}),kn=n((Qt,at)=>{var Xe=r(),ut=Object.defineProperty;at.exports=function(it,St){try{ut(Xe,it,{value:St,configurable:!0,writable:!0})}catch{Xe[it]=St}return St}}),Lt=n((Qt,at)=>{var Xe=r(),ut=kn(),it="__core-js_shared__",St=Xe[it]||ut(it,{});at.exports=St}),Tt=n((Qt,at)=>{var Xe=pn(),ut=Lt();(at.exports=function(it,St){return ut[it]||(ut[it]=St!==void 0?St:{})})("versions",[]).push({version:"3.26.1",mode:Xe?"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 Xe=re(),ut=Object;at.exports=function(it){return ut(Xe(it))}}),en=n((Qt,at)=>{var Xe=A(),ut=qt(),it=Xe({}.hasOwnProperty);at.exports=Object.hasOwn||function(St,Pt){return it(ut(St),Pt)}}),Ln=n((Qt,at)=>{var Xe=A(),ut=0,it=Math.random(),St=Xe(1 .toString);at.exports=function(Pt){return"Symbol("+(Pt===void 0?"":Pt)+")_"+St(++ut+it,36)}}),Un=n((Qt,at)=>{var Xe=r(),ut=Tt(),it=en(),St=Ln(),Pt=ze(),Yt=Et(),Vt=ut("wks"),Ht=Xe.Symbol,fn=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&&fn?Vt[vn]=fn(dn):Vt[vn]=yn(dn)}return Vt[vn]}}),Pn=n((Qt,at)=>{var Xe=o(),ut=Te(),it=Ce(),St=Ve(),Pt=Rt(),Yt=Un(),Vt=TypeError,Ht=Yt("toPrimitive");at.exports=function(fn,yn){if(!ut(fn)||it(fn))return fn;var vn=St(fn,Ht),dn;if(vn){if(yn===void 0&&(yn="default"),dn=Xe(vn,fn,yn),!ut(dn)||it(dn))return dn;throw Vt("Can't convert object to primitive value")}return yn===void 0&&(yn="number"),Pt(fn,yn)}}),zr=n((Qt,at)=>{var Xe=Pn(),ut=Ce();at.exports=function(it){var St=Xe(it,"string");return ut(St)?St:St+""}}),Qr=n((Qt,at)=>{var Xe=r(),ut=Te(),it=Xe.document,St=ut(it)&&ut(it.createElement);at.exports=function(Pt){return St?it.createElement(Pt):{}}}),yi=n((Qt,at)=>{var Xe=s(),ut=i(),it=Qr();at.exports=!Xe&&!ut(function(){return Object.defineProperty(it("div"),"a",{get:function(){return 7}}).a!=7})}),cs=n(Qt=>{var at=s(),Xe=o(),ut=u(),it=l(),St=te(),Pt=zr(),Yt=en(),Vt=yi(),Ht=Object.getOwnPropertyDescriptor;Qt.f=at?Ht:function(fn,yn){if(fn=St(fn),yn=Pt(yn),Vt)try{return Ht(fn,yn)}catch{}if(Yt(fn,yn))return it(!Xe(ut.f,fn,yn),fn[yn])}}),Si=n((Qt,at)=>{var Xe=s(),ut=i();at.exports=Xe&&ut(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})}),Yi=n((Qt,at)=>{var Xe=Te(),ut=String,it=TypeError;at.exports=function(St){if(Xe(St))return St;throw it(ut(St)+" is not an object")}}),nr=n(Qt=>{var at=s(),Xe=yi(),ut=Si(),it=Yi(),St=zr(),Pt=TypeError,Yt=Object.defineProperty,Vt=Object.getOwnPropertyDescriptor,Ht="enumerable",fn="configurable",yn="writable";Qt.f=at?ut?function(vn,dn,Fe){if(it(vn),dn=St(dn),it(Fe),typeof vn=="function"&&dn==="prototype"&&"value"in Fe&&yn in Fe&&!Fe[yn]){var xn=Vt(vn,dn);xn&&xn[yn]&&(vn[dn]=Fe.value,Fe={configurable:fn in Fe?Fe[fn]:xn[fn],enumerable:Ht in Fe?Fe[Ht]:xn[Ht],writable:!1})}return Yt(vn,dn,Fe)}:Yt:function(vn,dn,Fe){if(it(vn),dn=St(dn),it(Fe),Xe)try{return Yt(vn,dn,Fe)}catch{}if("get"in Fe||"set"in Fe)throw Pt("Accessors not supported");return"value"in Fe&&(vn[dn]=Fe.value),vn}}),qu=n((Qt,at)=>{var Xe=s(),ut=nr(),it=l();at.exports=Xe?function(St,Pt,Yt){return ut.f(St,Pt,it(1,Yt))}:function(St,Pt,Yt){return St[Pt]=Yt,St}}),af=n((Qt,at)=>{var Xe=s(),ut=en(),it=Function.prototype,St=Xe&&Object.getOwnPropertyDescriptor,Pt=ut(it,"name"),Yt=Pt&&(function(){}).name==="something",Vt=Pt&&(!Xe||Xe&&St(it,"name").configurable);at.exports={EXISTS:Pt,PROPER:Yt,CONFIGURABLE:Vt}}),ja=n((Qt,at)=>{var Xe=A(),ut=oe(),it=Lt(),St=Xe(Function.toString);ut(it.inspectSource)||(it.inspectSource=function(Pt){return St(Pt)}),at.exports=it.inspectSource}),of=n((Qt,at)=>{var Xe=r(),ut=oe(),it=Xe.WeakMap;at.exports=ut(it)&&/native code/.test(String(it))}),kr=n((Qt,at)=>{var Xe=Tt(),ut=Ln(),it=Xe("keys");at.exports=function(St){return it[St]||(it[St]=ut(St))}}),Uu=n((Qt,at)=>{at.exports={}}),uf=n((Qt,at)=>{var Xe=of(),ut=r(),it=Te(),St=qu(),Pt=en(),Yt=Lt(),Vt=kr(),Ht=Uu(),fn="Object already initialized",yn=ut.TypeError,vn=ut.WeakMap,dn,Fe,xn,On=function(Re){return xn(Re)?Fe(Re):dn(Re,{})},er=function(Re){return function(ei){var gs;if(!it(ei)||(gs=Fe(ei)).type!==Re)throw yn("Incompatible receiver, "+Re+" required");return gs}};Xe||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(fn);return ei.facade=Re,Qn.set(Re,ei),ei},Fe=function(Re){return Qn.get(Re)||{}},xn=function(Re){return Qn.has(Re)}):(Sr=Vt("state"),Ht[Sr]=!0,dn=function(Re,ei){if(Pt(Re,Sr))throw yn(fn);return ei.facade=Re,St(Re,Sr,ei),ei},Fe=function(Re){return Pt(Re,Sr)?Re[Sr]:{}},xn=function(Re){return Pt(Re,Sr)});var Qn,Sr;at.exports={set:dn,get:Fe,has:xn,enforce:On,getterFor:er}}),fs=n((Qt,at)=>{var Xe=i(),ut=oe(),it=en(),St=s(),Pt=af().CONFIGURABLE,Yt=ja(),Vt=uf(),Ht=Vt.enforce,fn=Vt.get,yn=Object.defineProperty,vn=St&&!Xe(function(){return yn(function(){},"length",{value:8}).length!==8}),dn=String(String).split("String"),Fe=at.exports=function(xn,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(xn,"name")||Pt&&xn.name!==On)&&(St?yn(xn,"name",{value:On,configurable:!0}):xn.name=On),vn&&er&&it(er,"arity")&&xn.length!==er.arity&&yn(xn,"length",{value:er.arity});try{er&&it(er,"constructor")&&er.constructor?St&&yn(xn,"prototype",{writable:!1}):xn.prototype&&(xn.prototype=void 0)}catch{}var Qn=Ht(xn);return it(Qn,"source")||(Qn.source=dn.join(typeof On=="string"?On:"")),xn};Function.prototype.toString=Fe(function(){return ut(this)&&fn(this).source||Yt(this)},"toString")}),Ra=n((Qt,at)=>{var Xe=oe(),ut=nr(),it=fs(),St=kn();at.exports=function(Pt,Yt,Vt,Ht){Ht||(Ht={});var fn=Ht.enumerable,yn=Ht.name!==void 0?Ht.name:Yt;if(Xe(Vt)&&it(Vt,yn,Ht),Ht.global)fn?Pt[Yt]=Vt:St(Yt,Vt);else{try{Ht.unsafe?Pt[Yt]&&(fn=!0):delete Pt[Yt]}catch{}fn?Pt[Yt]=Vt:ut.f(Pt,Yt,{value:Vt,enumerable:!1,configurable:!Ht.nonConfigurable,writable:!Ht.nonWritable})}return Pt}}),ps=n((Qt,at)=>{var Xe=Math.ceil,ut=Math.floor;at.exports=Math.trunc||function(it){var St=+it;return(St>0?ut:Xe)(St)}}),ko=n((Qt,at)=>{var Xe=ps();at.exports=function(ut){var it=+ut;return it!==it||it===0?0:Xe(it)}}),lf=n((Qt,at)=>{var Xe=ko(),ut=Math.max,it=Math.min;at.exports=function(St,Pt){var Yt=Xe(St);return Yt<0?ut(Yt+Pt,0):it(Yt,Pt)}}),cf=n((Qt,at)=>{var Xe=ko(),ut=Math.min;at.exports=function(it){return it>0?ut(Xe(it),9007199254740991):0}}),Xs=n((Qt,at)=>{var Xe=cf();at.exports=function(ut){return Xe(ut.length)}}),Wu=n((Qt,at)=>{var Xe=te(),ut=lf(),it=Xs(),St=function(Pt){return function(Yt,Vt,Ht){var fn=Xe(Yt),yn=it(fn),vn=ut(Ht,yn),dn;if(Pt&&Vt!=Vt){for(;yn>vn;)if(dn=fn[vn++],dn!=dn)return!0}else for(;yn>vn;vn++)if((Pt||vn in fn)&&fn[vn]===Vt)return Pt||vn||0;return!Pt&&-1}};at.exports={includes:St(!0),indexOf:St(!1)}}),ff=n((Qt,at)=>{var Xe=A(),ut=en(),it=te(),St=Wu().indexOf,Pt=Uu(),Yt=Xe([].push);at.exports=function(Vt,Ht){var fn=it(Vt),yn=0,vn=[],dn;for(dn in fn)!ut(Pt,dn)&&ut(fn,dn)&&Yt(vn,dn);for(;Ht.length>yn;)ut(fn,dn=Ht[yn++])&&(~St(vn,dn)||Yt(vn,dn));return vn}}),Lo=n((Qt,at)=>{at.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),pf=n(Qt=>{var at=ff(),Xe=Lo(),ut=Xe.concat("length","prototype");Qt.f=Object.getOwnPropertyNames||function(it){return at(it,ut)}}),df=n(Qt=>{Qt.f=Object.getOwnPropertySymbols}),Gu=n((Qt,at)=>{var Xe=Le(),ut=A(),it=pf(),St=df(),Pt=Yi(),Yt=ut([].concat);at.exports=Xe("Reflect","ownKeys")||function(Vt){var Ht=it.f(Pt(Vt)),fn=St.f;return fn?Yt(Ht,fn(Vt)):Ht}}),Ju=n((Qt,at)=>{var Xe=en(),ut=Gu(),it=cs(),St=nr();at.exports=function(Pt,Yt,Vt){for(var Ht=ut(Yt),fn=St.f,yn=it.f,vn=0;vn<Ht.length;vn++){var dn=Ht[vn];!Xe(Pt,dn)&&!(Vt&&Xe(Vt,dn))&&fn(Pt,dn,yn(Yt,dn))}}}),hf=n((Qt,at)=>{var Xe=i(),ut=oe(),it=/#|\.prototype\./,St=function(fn,yn){var vn=Yt[Pt(fn)];return vn==Ht?!0:vn==Vt?!1:ut(yn)?Xe(yn):!!yn},Pt=St.normalize=function(fn){return String(fn).replace(it,".").toLowerCase()},Yt=St.data={},Vt=St.NATIVE="N",Ht=St.POLYFILL="P";at.exports=St}),$a=n((Qt,at)=>{var Xe=r(),ut=cs().f,it=qu(),St=Ra(),Pt=kn(),Yt=Ju(),Vt=hf();at.exports=function(Ht,fn){var yn=Ht.target,vn=Ht.global,dn=Ht.stat,Fe,xn,On,er,Qn,Sr;if(vn?xn=Xe:dn?xn=Xe[yn]||Pt(yn,{}):xn=(Xe[yn]||{}).prototype,xn)for(On in fn){if(Qn=fn[On],Ht.dontCallGetSet?(Sr=ut(xn,On),er=Sr&&Sr.value):er=xn[On],Fe=Vt(vn?On:yn+(dn?".":"#")+On,Ht.forced),!Fe&&er!==void 0){if(typeof Qn==typeof er)continue;Yt(Qn,er)}(Ht.sham||er&&er.sham)&&it(Qn,"sham",!0),St(xn,On,Qn,Ht)}}}),Yu=n((Qt,at)=>{var Xe=p();at.exports=Array.isArray||function(ut){return Xe(ut)=="Array"}}),mf=n((Qt,at)=>{var Xe=TypeError,ut=9007199254740991;at.exports=function(it){if(it>ut)throw Xe("Maximum allowed index exceeded");return it}}),gf=n((Qt,at)=>{var Xe=p(),ut=A();at.exports=function(it){if(Xe(it)==="Function")return ut(it)}}),Va=n((Qt,at)=>{var Xe=gf(),ut=et(),it=a(),St=Xe(Xe.bind);at.exports=function(Pt,Yt){return ut(Pt),Yt===void 0?Pt:it?St(Pt,Yt):function(){return Pt.apply(Yt,arguments)}}}),Hu=n((Qt,at)=>{var Xe=Yu(),ut=Xs(),it=mf(),St=Va(),Pt=function(Yt,Vt,Ht,fn,yn,vn,dn,Fe){for(var xn=yn,On=0,er=dn?St(dn,Fe):!1,Qn,Sr;On<fn;)On in Ht&&(Qn=er?er(Ht[On],On,Vt):Ht[On],vn>0&&Xe(Qn)?(Sr=ut(Qn),xn=Pt(Yt,Vt,Qn,Sr,xn,vn-1)-1):(it(xn+1),Yt[xn]=Qn),xn++),On++;return xn};at.exports=Pt}),yf=n((Qt,at)=>{var Xe=Un(),ut=Xe("toStringTag"),it={};it[ut]="z",at.exports=String(it)==="[object z]"}),ds=n((Qt,at)=>{var Xe=yf(),ut=oe(),it=p(),St=Un(),Pt=St("toStringTag"),Yt=Object,Vt=it(function(){return arguments}())=="Arguments",Ht=function(fn,yn){try{return fn[yn]}catch{}};at.exports=Xe?it:function(fn){var yn,vn,dn;return fn===void 0?"Undefined":fn===null?"Null":typeof(vn=Ht(yn=Yt(fn),Pt))=="string"?vn:Vt?it(yn):(dn=it(yn))=="Object"&&ut(yn.callee)?"Arguments":dn}}),hs=n((Qt,at)=>{var Xe=A(),ut=i(),it=oe(),St=ds(),Pt=Le(),Yt=ja(),Vt=function(){},Ht=[],fn=Pt("Reflect","construct"),yn=/^\s*(?:class|function)\b/,vn=Xe(yn.exec),dn=!yn.exec(Vt),Fe=function(On){if(!it(On))return!1;try{return fn(Vt,Ht,On),!0}catch{return!1}},xn=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}};xn.sham=!0,at.exports=!fn||ut(function(){var On;return Fe(Fe.call)||!Fe(Object)||!Fe(function(){On=!0})||On})?xn:Fe}),Df=n((Qt,at)=>{var Xe=Yu(),ut=hs(),it=Te(),St=Un(),Pt=St("species"),Yt=Array;at.exports=function(Vt){var Ht;return Xe(Vt)&&(Ht=Vt.constructor,ut(Ht)&&(Ht===Yt||Xe(Ht.prototype))?Ht=void 0:it(Ht)&&(Ht=Ht[Pt],Ht===null&&(Ht=void 0))),Ht===void 0?Yt:Ht}}),ms=n((Qt,at)=>{var Xe=Df();at.exports=function(ut,it){return new(Xe(ut))(it===0?0:it)}}),zu=n(()=>{var Qt=$a(),at=Hu(),Xe=et(),ut=qt(),it=Xs(),St=ms();Qt({target:"Array",proto:!0},{flatMap:function(Pt){var Yt=ut(this),Vt=it(Yt),Ht;return Xe(Pt),Ht=St(Yt,0),Ht.length=at(Ht,Yt,Yt,Vt,0,1,Pt,arguments.length>1?arguments[1]:void 0),Ht}})}),Qu=n((Qt,at)=>{at.exports={}}),bf=n((Qt,at)=>{var Xe=Un(),ut=Qu(),it=Xe("iterator"),St=Array.prototype;at.exports=function(Pt){return Pt!==void 0&&(ut.Array===Pt||St[it]===Pt)}}),Xu=n((Qt,at)=>{var Xe=ds(),ut=Ve(),it=k(),St=Qu(),Pt=Un(),Yt=Pt("iterator");at.exports=function(Vt){if(!it(Vt))return ut(Vt,Yt)||ut(Vt,"@@iterator")||St[Xe(Vt)]}}),vf=n((Qt,at)=>{var Xe=o(),ut=et(),it=Yi(),St=xe(),Pt=Xu(),Yt=TypeError;at.exports=function(Vt,Ht){var fn=arguments.length<2?Pt(Vt):Ht;if(ut(fn))return it(Xe(fn,Vt));throw Yt(St(Vt)+" is not iterable")}}),Ku=n((Qt,at)=>{var Xe=o(),ut=Yi(),it=Ve();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=Xe(Vt,St)}catch(fn){Ht=!0,Vt=fn}if(Pt==="throw")throw Yt;if(Ht)throw Vt;return ut(Vt),Yt}}),Ef=n((Qt,at)=>{var Xe=Va(),ut=o(),it=Yi(),St=xe(),Pt=bf(),Yt=Xs(),Vt=Ge(),Ht=vf(),fn=Xu(),yn=Ku(),vn=TypeError,dn=function(xn,On){this.stopped=xn,this.result=On},Fe=dn.prototype;at.exports=function(xn,On,er){var Qn=er&&er.that,Sr=!!(er&&er.AS_ENTRIES),Re=!!(er&&er.IS_RECORD),ei=!!(er&&er.IS_ITERATOR),gs=!!(er&&er.INTERRUPTED),Ms=Xe(On,Qn),Di,rs,$r,Ua,Wr,Wa,is,Ks=function(ii){return Di&&yn(Di,"normal",ii),new dn(!0,ii)},Zs=function(ii){return Sr?(it(ii),gs?Ms(ii[0],ii[1],Ks):Ms(ii[0],ii[1])):gs?Ms(ii,Ks):Ms(ii)};if(Re)Di=xn.iterator;else if(ei)Di=xn;else{if(rs=fn(xn),!rs)throw vn(St(xn)+" is not iterable");if(Pt(rs)){for($r=0,Ua=Yt(xn);Ua>$r;$r++)if(Wr=Zs(xn[$r]),Wr&&Vt(Fe,Wr))return Wr;return new dn(!1)}Di=Ht(xn,rs)}for(Wa=Re?xn.next:Di.next;!(is=ut(Wa,Di)).done;){try{Wr=Zs(is.value)}catch(ii){yn(Di,"throw",ii)}if(typeof Wr=="object"&&Wr&&Vt(Fe,Wr))return Wr}return new dn(!1)}}),Zu=n((Qt,at)=>{var Xe=zr(),ut=nr(),it=l();at.exports=function(St,Pt,Yt){var Vt=Xe(Pt);Vt in St?ut.f(St,Vt,it(0,Yt)):St[Vt]=Yt}}),qa=n(()=>{var Qt=$a(),at=Ef(),Xe=Zu();Qt({target:"Object",stat:!0},{fromEntries:function(ut){var it={};return at(ut,function(St,Pt){Xe(it,St,Pt)},{AS_ENTRIES:!0}),it}})}),el=n((Qt,at)=>{var Xe=fs(),ut=nr();at.exports=function(it,St,Pt){return Pt.get&&Xe(Pt.get,St,{getter:!0}),Pt.set&&Xe(Pt.set,St,{setter:!0}),ut.f(it,St,Pt)}}),tl=n((Qt,at)=>{var Xe=Yi();at.exports=function(){var ut=Xe(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}}),nl=n(()=>{var Qt=r(),at=s(),Xe=el(),ut=tl(),it=i(),St=Qt.RegExp,Pt=St.prototype,Yt=at&&it(function(){var Vt=!0;try{St(".","d")}catch{Vt=!1}var Ht={},fn="",yn=Vt?"dgimsy":"gimsy",vn=function(On,er){Object.defineProperty(Ht,On,{get:function(){return fn+=er,!0}})},dn={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};Vt&&(dn.hasIndices="d");for(var Fe in dn)vn(Fe,dn[Fe]);var xn=Object.getOwnPropertyDescriptor(Pt,"flags").get.call(Ht);return xn!==yn||fn!==yn});Yt&&Xe(Pt,"flags",{configurable:!0,get:ut})}),Af=n(()=>{var Qt=$a(),at=r();Qt({global:!0,forced:at.globalThis!==at},{globalThis:at})}),Cf=n(()=>{Af()}),Po=n(()=>{var Qt=$a(),at=Hu(),Xe=qt(),ut=Xs(),it=ko(),St=ms();Qt({target:"Array",proto:!0},{flat:function(){var Pt=arguments.length?arguments[0]:void 0,Yt=Xe(this),Vt=ut(Yt),Ht=St(Yt,0);return Ht.length=at(Ht,Yt,Yt,Vt,0,Pt===void 0?1:it(Pt)),Ht}})}),Sf=n((Qt,at)=>{var Xe=["cliName","cliCategory","cliDescription"],ut=["_"],it=["languageId"];function St(m,E){if(m==null)return{};var f=Pt(m,E),b,D;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(m);for(D=0;D<c.length;D++)b=c[D],!(E.indexOf(b)>=0)&&Object.prototype.propertyIsEnumerable.call(m,b)&&(f[b]=m[b])}return f}function Pt(m,E){if(m==null)return{};var f={},b=Object.keys(m),D,c;for(c=0;c<b.length;c++)D=b[c],!(E.indexOf(D)>=0)&&(f[D]=m[D]);return f}zu(),qa(),nl(),Cf(),Po();var Yt=Object.create,Vt=Object.defineProperty,Ht=Object.getOwnPropertyDescriptor,fn=Object.getOwnPropertyNames,yn=Object.getPrototypeOf,vn=Object.prototype.hasOwnProperty,dn=(m,E)=>function(){return m&&(E=(0,m[fn(m)[0]])(m=0)),E},Fe=(m,E)=>function(){return E||(0,m[fn(m)[0]])((E={exports:{}}).exports,E),E.exports},xn=(m,E)=>{for(var f in E)Vt(m,f,{get:E[f],enumerable:!0})},On=(m,E,f,b)=>{if(E&&typeof E=="object"||typeof E=="function")for(let D of fn(E))!vn.call(m,D)&&D!==f&&Vt(m,D,{get:()=>E[D],enumerable:!(b=Ht(E,D))||b.enumerable});return m},er=(m,E,f)=>(f=m!=null?Yt(yn(m)):{},On(E||!m||!m.__esModule?Vt(f,"default",{value:m,enumerable:!0}):f,m)),Qn=m=>On(Vt({},"__esModule",{value:!0}),m),Sr,Re=dn({"<define:process>"(){Sr={env:{},argv:[]}}}),ei=Fe({"package.json"(m,E){E.exports={version:"2.8.8"}}}),gs=Fe({"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,c){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),c=this.castInput(c),D=this.removeEmpty(this.tokenize(D)),c=this.removeEmpty(this.tokenize(c));var P=c.length,_=D.length,L=1,C=P+_,x=[{newPos:-1,components:[]}],j=this.extractCommon(x[0],c,D,0);if(x[0].newPos+1>=P&&j+1>=_)return S([{value:this.join(c),count:c.length}]);function Q(){for(var $=-1*L;$<=L;$+=2){var X=void 0,G=x[$-1],ne=x[$+1],Z=(ne?ne.newPos:0)-$;G&&(x[$-1]=void 0);var De=G&&G.newPos+1<P,F=ne&&0<=Z&&Z<_;if(!De&&!F){x[$]=void 0;continue}if(!De||F&&G.newPos<ne.newPos?(X=b(ne),v.pushComponent(X.components,void 0,!0)):(X=G,X.newPos++,v.pushComponent(X.components,!0,void 0)),Z=v.extractCommon(X,c,D,$),X.newPos+1>=P&&Z+1>=_)return S(f(v,X.components,c,D,v.useLongestToken));x[$]=X}L++}if(h)(function $(){setTimeout(function(){if(L>C)return h();Q()||$()},0)})();else for(;L<=C;){var ee=Q();if(ee)return ee}},pushComponent:function(D,c,d){var h=D[D.length-1];h&&h.added===c&&h.removed===d?D[D.length-1]={count:h.count+1,added:c,removed:d}:D.push({count:1,added:c,removed:d})},extractCommon:function(D,c,d,h){for(var v=c.length,S=d.length,P=D.newPos,_=P-h,L=0;P+1<v&&_+1<S&&this.equals(c[P+1],d[_+1]);)P++,_++,L++;return L&&D.components.push({count:L}),D.newPos=P,_},equals:function(D,c){return this.options.comparator?this.options.comparator(D,c):D===c||this.options.ignoreCase&&D.toLowerCase()===c.toLowerCase()},removeEmpty:function(D){for(var c=[],d=0;d<D.length;d++)D[d]&&c.push(D[d]);return c},castInput:function(D){return D},tokenize:function(D){return D.split("")},join:function(D){return D.join("")}};function f(D,c,d,h,v){for(var S=0,P=c.length,_=0,L=0;S<P;S++){var C=c[S];if(C.removed){if(C.value=D.join(h.slice(L,L+C.count)),L+=C.count,S&&c[S-1].added){var x=c[S-1];c[S-1]=c[S],c[S]=x}}else{if(!C.added&&v){var j=d.slice(_,_+C.count);j=j.map(function(ee,$){var X=h[L+$];return X.length>ee.length?X:ee}),C.value=D.join(j)}else C.value=D.join(d.slice(_,_+C.count));_+=C.count,C.added||(L+=C.count)}}var Q=c[P-1];return P>1&&typeof Q.value=="string"&&(Q.added||Q.removed)&&D.equals("",Q.value)&&(c[P-2].value+=Q.value,c.pop()),c}function b(D){return{newPos:D.newPos,components:D.components.slice(0)}}}}),Ms=Fe({"node_modules/diff/lib/diff/array.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0}),m.diffArrays=D,m.arrayDiff=void 0;var E=f(gs());function f(c){return c&&c.__esModule?c:{default:c}}var b=new E.default;m.arrayDiff=b,b.tokenize=function(c){return c.slice()},b.join=b.removeEmpty=function(c){return c};function D(c,d,h){return b.diff(c,d,h)}}}),Di=Fe({"src/document/doc-builders.js"(m,E){Re();function f(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 c(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 c(R[0],Object.assign(Object.assign({},y),{},{expandedStates:R}))}function P(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 L(R,y){return{type:"indent-if-break",contents:R,groupId:y.groupId,negate:y.negate}}function C(R){return{type:"line-suffix",contents:R}}var x={type:"line-suffix-boundary"},j={type:"break-parent"},Q={type:"trim"},ee={type:"line",hard:!0},$={type:"line",hard:!0,literal:!0},X={type:"line"},G={type:"line",soft:!0},ne=f([ee,j]),Z=f([$,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 f(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:f,join:F,line:X,softline:G,hardline:ne,literalline:Z,group:c,conditionalGroup:S,fill:P,lineSuffix:C,lineSuffixBoundary:x,cursor:De,breakParent:j,ifBreak:_,trim:Q,indent:b,indentIfBreak:L,align:D,addAlignmentToDoc:J,markAsRoot:h,dedentToRoot:d,dedent:v,hardlineWithoutBreakParent:ee,literallineWithoutBreakParent:$,label:w}}}),rs=Fe({"src/common/end-of-line.js"(m,E){Re();function f(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 c(d){return d.replace(/\r\n?/g,`
149
- `)}E.exports={guessEndOfLine:f,convertEndOfLineToChars:b,countEndOfLineChars:D,normalizeEndOfLine:c}}}),$r=Fe({"src/utils/get-last.js"(m,E){Re();var f=b=>b[b.length-1];E.exports=f}});function Ua(){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 Wa(m){if(typeof m!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof m}\``);return m.replace(Ua(),"")}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()}}),ii=Fe({"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}}}),rl={};xn(rl,{default:()=>il});function il(m){if(typeof m!="string"||m.length===0||(m=Wa(m),m.length===0))return 0;m=m.replace((0,sl.default)()," ");let E=0;for(let f=0;f<m.length;f++){let b=m.codePointAt(f);b<=31||b>=127&&b<=159||b>=768&&b<=879||(b>65535&&f++,E+=Ks(b)?2:1)}return E}var sl,xf=dn({"node_modules/string-width/index.js"(){Re(),is(),Zs(),sl=er(ii())}}),al=Fe({"src/utils/get-string-width.js"(m,E){Re();var f=(xf(),Qn(rl)).default,b=/[^\x20-\x7F]/;function D(c){return c?b.test(c)?f(c):c.length:0}E.exports=D}}),ea=Fe({"src/document/doc-utils.js"(m,E){Re();var f=$r(),{literalline:b,join:D}=Di(),c=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(c(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 P(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 L(y){return P(y,_,!1)}function C(y){if(y.length>0){let T=f(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"&&C(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&&C(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 ee=(y,T)=>y&&y.type==="line"&&y.hard&&T&&T.type==="break-parent";function $(y){if(!y)return y;if(c(y)||y.type==="fill"){let T=d(y);for(;T.length>1&&ee(...T.slice(-2));)T.length-=2;if(T.length>0){let M=$(f(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 $(ne(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(!c(y))return y;let T=[];for(let M of d(y)){if(!M)continue;let[q,...U]=c(M)?d(M):[M];typeof q=="string"&&typeof f(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 ne(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(c(q)){M.unshift(...d(q));continue}if(T.length>0&&typeof f(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 P(y,w,!1)}E.exports={isConcat:c,getDocParts:d,willBreak:L,traverseDoc:v,findInDoc:P,mapDoc:S,propagateBreaks:x,removeLines:Q,stripTrailingHardline:X,normalizeParts:Z,normalizeDoc:De,cleanDoc:ne,replaceTextEndOfLine:J,replaceEndOfLine:F,canBreak:R}}}),wf=Fe({"src/document/doc-printer.js"(m,E){Re();var{convertEndOfLineToChars:f}=rs(),b=$r(),D=al(),{fill:c,cursor:d,indent:h}=Di(),{isConcat:v,getDocParts:S}=ea(),P,_=1,L=2;function C(){return{value:"",length:0,queue:[]}}function x(G,ne){return Q(G,{type:"indent"},ne)}function j(G,ne,Z){return ne===Number.NEGATIVE_INFINITY?G.root||C():ne<0?Q(G,{type:"dedent"},Z):ne?ne.type==="root"?Object.assign(Object.assign({},G),{},{root:G}):Q(G,{type:typeof ne=="string"?"stringAlign":"numberAlign",n:ne},Z):G}function Q(G,ne,Z){let De=ne.type==="dedent"?G.queue.slice(0,-1):[...G.queue,ne],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 ee(G){if(G.length===0)return 0;let ne=0;for(;G.length>0&&typeof b(G)=="string"&&/^[\t ]*$/.test(b(G));)ne+=G.pop().length;if(G.length>0&&typeof b(G)=="string"){let Z=b(G).replace(/[\t ]*$/,"");ne+=b(G).length-Z.length,G[G.length-1]=Z}return ne}function $(G,ne,Z,De,F){let J=ne.length,w=[G],R=[];for(;Z>=0;){if(w.length===0){if(J===0)return!0;w.push(ne[--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+=ee(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?P[T.groupId]||L: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,ne){P={};let Z=ne.printWidth,De=f(ne.endOfLine),F=0,J=[{ind:C(),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,ne),mode:q,doc:U.contents});break;case"align":J.push({ind:j(M,U.n,ne),mode:q,doc:U.contents});break;case"trim":F-=ee(w);break;case"group":switch(q){case L:if(!R){J.push({ind:M,mode:U.break?_:L,doc:U.contents});break}case _:{R=!1;let z={ind:M,mode:L,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 Ne=U.expandedStates[fe],se={ind:M,mode:L,doc:Ne};if($(se,J,ie,ce)){J.push(se);break}}}else J.push({ind:M,mode:_,doc:U.contents});break}}U.id&&(P[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:L,doc:ce},Ne={ind:M,mode:_,doc:ce},se=$(fe,[],z,y.length>0,!0);if(ie.length===1){se?J.push(fe):J.push(Ne);break}let Ue={ind:M,mode:L,doc:ge},me={ind:M,mode:_,doc:ge};if(ie.length===2){se?J.push(Ue,fe):J.push(me,Ne);break}ie.splice(0,2);let ue={ind:M,mode:q,doc:c(ie)},qe=ie[0];$({ind:M,mode:L,doc:[ce,ge,qe]},[],z,y.length>0,!0)?J.push(ue,Ue,fe):se?J.push(ue,me,fe):J.push(ue,me,Ne);break}case"if-break":case"indent-if-break":{let z=U.groupId?P[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===L){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 L: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-=ee(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}}}),Ff=Fe({"src/document/doc-debug.js"(m,E){Re();var{isConcat:f,getDocParts:b}=ea();function D(d){if(!d)return"";if(f(d)){let h=[];for(let v of b(d))if(f(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 c(d){let h=Object.create(null),v=new Set;return S(D(d));function S(_,L,C){if(typeof _=="string")return JSON.stringify(_);if(f(_)){let x=b(_).map(S).filter(Boolean);return x.length===1?x[0]:`[${x.join(", ")}]`}if(_.type==="line"){let x=Array.isArray(C)&&C[L+1]&&C[L+1].type==="break-parent";return _.literal?x?"literalline":"literallineWithoutBreakParent":_.hard?x?"hardline":"hardlineWithoutBreakParent":_.soft?"softline":"line"}if(_.type==="break-parent")return Array.isArray(C)&&C[L-1]&&C[L-1].type==="line"&&C[L-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: ${P(_.groupId)} }`:"")+")";if(_.type==="indent-if-break"){let x=[];_.negate&&x.push("negate: true"),_.groupId&&x.push(`groupId: ${P(_.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: ${P(_.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 P(_){if(typeof _!="symbol")return JSON.stringify(String(_));if(_ in h)return h[_];let L=String(_).slice(7,-1)||"symbol";for(let C=0;;C++){let x=L+(C>0?` #${C}`:"");if(!v.has(x))return v.add(x),h[_]=`Symbol.for(${JSON.stringify(x)})`}}}E.exports={printDocToDebug:c}}}),wn=Fe({"src/document/index.js"(m,E){Re(),E.exports={builders:Di(),printer:wf(),utils:ea(),debug:Ff()}}}),ol={};xn(ol,{default:()=>Nf});function Nf(m){if(typeof m!="string")throw new TypeError("Expected a string");return m.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var _f=dn({"node_modules/escape-string-regexp/index.js"(){Re()}}),ul=Fe({"node_modules/semver/internal/debug.js"(m,E){Re();var f=typeof Sr=="object"&&Sr.env&&Sr.env.NODE_DEBUG&&/\bsemver\b/i.test(Sr.env.NODE_DEBUG)?function(){for(var b=arguments.length,D=new Array(b),c=0;c<b;c++)D[c]=arguments[c];return console.error("SEMVER",...D)}:()=>{};E.exports=f}}),Y=Fe({"node_modules/semver/internal/constants.js"(m,E){Re();var f="2.0.0",b=256,D=Number.MAX_SAFE_INTEGER||9007199254740991,c=16;E.exports={SEMVER_SPEC_VERSION:f,MAX_LENGTH:b,MAX_SAFE_INTEGER:D,MAX_SAFE_COMPONENT_LENGTH:c}}}),g=Fe({"node_modules/semver/internal/re.js"(m,E){Re();var{MAX_SAFE_COMPONENT_LENGTH:f}=Y(),b=ul();m=E.exports={};var D=m.re=[],c=m.src=[],d=m.t={},h=0,v=(S,P,_)=>{let L=h++;b(S,L,P),d[S]=L,c[L]=P,D[L]=new RegExp(P,_?"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",`(${c[d.NUMERICIDENTIFIER]})\\.(${c[d.NUMERICIDENTIFIER]})\\.(${c[d.NUMERICIDENTIFIER]})`),v("MAINVERSIONLOOSE",`(${c[d.NUMERICIDENTIFIERLOOSE]})\\.(${c[d.NUMERICIDENTIFIERLOOSE]})\\.(${c[d.NUMERICIDENTIFIERLOOSE]})`),v("PRERELEASEIDENTIFIER",`(?:${c[d.NUMERICIDENTIFIER]}|${c[d.NONNUMERICIDENTIFIER]})`),v("PRERELEASEIDENTIFIERLOOSE",`(?:${c[d.NUMERICIDENTIFIERLOOSE]}|${c[d.NONNUMERICIDENTIFIER]})`),v("PRERELEASE",`(?:-(${c[d.PRERELEASEIDENTIFIER]}(?:\\.${c[d.PRERELEASEIDENTIFIER]})*))`),v("PRERELEASELOOSE",`(?:-?(${c[d.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[d.PRERELEASEIDENTIFIERLOOSE]})*))`),v("BUILDIDENTIFIER","[0-9A-Za-z-]+"),v("BUILD",`(?:\\+(${c[d.BUILDIDENTIFIER]}(?:\\.${c[d.BUILDIDENTIFIER]})*))`),v("FULLPLAIN",`v?${c[d.MAINVERSION]}${c[d.PRERELEASE]}?${c[d.BUILD]}?`),v("FULL",`^${c[d.FULLPLAIN]}$`),v("LOOSEPLAIN",`[v=\\s]*${c[d.MAINVERSIONLOOSE]}${c[d.PRERELEASELOOSE]}?${c[d.BUILD]}?`),v("LOOSE",`^${c[d.LOOSEPLAIN]}$`),v("GTLT","((?:<|>)?=?)"),v("XRANGEIDENTIFIERLOOSE",`${c[d.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),v("XRANGEIDENTIFIER",`${c[d.NUMERICIDENTIFIER]}|x|X|\\*`),v("XRANGEPLAIN",`[v=\\s]*(${c[d.XRANGEIDENTIFIER]})(?:\\.(${c[d.XRANGEIDENTIFIER]})(?:\\.(${c[d.XRANGEIDENTIFIER]})(?:${c[d.PRERELEASE]})?${c[d.BUILD]}?)?)?`),v("XRANGEPLAINLOOSE",`[v=\\s]*(${c[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[d.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[d.XRANGEIDENTIFIERLOOSE]})(?:${c[d.PRERELEASELOOSE]})?${c[d.BUILD]}?)?)?`),v("XRANGE",`^${c[d.GTLT]}\\s*${c[d.XRANGEPLAIN]}$`),v("XRANGELOOSE",`^${c[d.GTLT]}\\s*${c[d.XRANGEPLAINLOOSE]}$`),v("COERCE",`(^|[^\\d])(\\d{1,${f}})(?:\\.(\\d{1,${f}}))?(?:\\.(\\d{1,${f}}))?(?:$|[^\\d])`),v("COERCERTL",c[d.COERCE],!0),v("LONETILDE","(?:~>?)"),v("TILDETRIM",`(\\s*)${c[d.LONETILDE]}\\s+`,!0),m.tildeTrimReplace="$1~",v("TILDE",`^${c[d.LONETILDE]}${c[d.XRANGEPLAIN]}$`),v("TILDELOOSE",`^${c[d.LONETILDE]}${c[d.XRANGEPLAINLOOSE]}$`),v("LONECARET","(?:\\^)"),v("CARETTRIM",`(\\s*)${c[d.LONECARET]}\\s+`,!0),m.caretTrimReplace="$1^",v("CARET",`^${c[d.LONECARET]}${c[d.XRANGEPLAIN]}$`),v("CARETLOOSE",`^${c[d.LONECARET]}${c[d.XRANGEPLAINLOOSE]}$`),v("COMPARATORLOOSE",`^${c[d.GTLT]}\\s*(${c[d.LOOSEPLAIN]})$|^$`),v("COMPARATOR",`^${c[d.GTLT]}\\s*(${c[d.FULLPLAIN]})$|^$`),v("COMPARATORTRIM",`(\\s*)${c[d.GTLT]}\\s*(${c[d.LOOSEPLAIN]}|${c[d.XRANGEPLAIN]})`,!0),m.comparatorTrimReplace="$1$2$3",v("HYPHENRANGE",`^\\s*(${c[d.XRANGEPLAIN]})\\s+-\\s+(${c[d.XRANGEPLAIN]})\\s*$`),v("HYPHENRANGELOOSE",`^\\s*(${c[d.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[d.XRANGEPLAINLOOSE]})\\s*$`),v("STAR","(<|>)?=?\\s*\\*"),v("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),v("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}}),W=Fe({"node_modules/semver/internal/parse-options.js"(m,E){Re();var f=["includePrerelease","loose","rtl"],b=D=>D?typeof D!="object"?{loose:!0}:f.filter(c=>D[c]).reduce((c,d)=>(c[d]=!0,c),{}):{};E.exports=b}}),Ae=Fe({"node_modules/semver/internal/identifiers.js"(m,E){Re();var f=/^[0-9]+$/,b=(c,d)=>{let h=f.test(c),v=f.test(d);return h&&v&&(c=+c,d=+d),c===d?0:h&&!v?-1:v&&!h?1:c<d?-1:1},D=(c,d)=>b(d,c);E.exports={compareIdentifiers:b,rcompareIdentifiers:D}}}),Pe=Fe({"node_modules/semver/classes/semver.js"(m,E){Re();var f=ul(),{MAX_LENGTH:b,MAX_SAFE_INTEGER:D}=Y(),{re:c,t:d}=g(),h=W(),{compareIdentifiers:v}=Ae(),S=class{constructor(P,_){if(_=h(_),P instanceof S){if(P.loose===!!_.loose&&P.includePrerelease===!!_.includePrerelease)return P;P=P.version}else if(typeof P!="string")throw new TypeError(`Invalid Version: ${P}`);if(P.length>b)throw new TypeError(`version is longer than ${b} characters`);f("SemVer",P,_),this.options=_,this.loose=!!_.loose,this.includePrerelease=!!_.includePrerelease;let L=P.trim().match(_.loose?c[d.LOOSE]:c[d.FULL]);if(!L)throw new TypeError(`Invalid Version: ${P}`);if(this.raw=P,this.major=+L[1],this.minor=+L[2],this.patch=+L[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");L[4]?this.prerelease=L[4].split(".").map(C=>{if(/^[0-9]+$/.test(C)){let x=+C;if(x>=0&&x<D)return x}return C}):this.prerelease=[],this.build=L[5]?L[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(P){if(f("SemVer.compare",this.version,this.options,P),!(P instanceof S)){if(typeof P=="string"&&P===this.version)return 0;P=new S(P,this.options)}return P.version===this.version?0:this.compareMain(P)||this.comparePre(P)}compareMain(P){return P instanceof S||(P=new S(P,this.options)),v(this.major,P.major)||v(this.minor,P.minor)||v(this.patch,P.patch)}comparePre(P){if(P instanceof S||(P=new S(P,this.options)),this.prerelease.length&&!P.prerelease.length)return-1;if(!this.prerelease.length&&P.prerelease.length)return 1;if(!this.prerelease.length&&!P.prerelease.length)return 0;let _=0;do{let L=this.prerelease[_],C=P.prerelease[_];if(f("prerelease compare",_,L,C),L===void 0&&C===void 0)return 0;if(C===void 0)return 1;if(L===void 0)return-1;if(L!==C)return v(L,C)}while(++_)}compareBuild(P){P instanceof S||(P=new S(P,this.options));let _=0;do{let L=this.build[_],C=P.build[_];if(f("prerelease compare",_,L,C),L===void 0&&C===void 0)return 0;if(C===void 0)return 1;if(L===void 0)return-1;if(L!==C)return v(L,C)}while(++_)}inc(P,_){switch(P){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 L=this.prerelease.length;for(;--L>=0;)typeof this.prerelease[L]=="number"&&(this.prerelease[L]++,L=-2);L===-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: ${P}`)}return this.format(),this.raw=this.version,this}};E.exports=S}}),Be=Fe({"node_modules/semver/functions/compare.js"(m,E){Re();var f=Pe(),b=(D,c,d)=>new f(D,d).compare(new f(c,d));E.exports=b}}),Ke=Fe({"node_modules/semver/functions/lt.js"(m,E){Re();var f=Be(),b=(D,c,d)=>f(D,c,d)<0;E.exports=b}}),mt=Fe({"node_modules/semver/functions/gte.js"(m,E){Re();var f=Be(),b=(D,c,d)=>f(D,c,d)>=0;E.exports=b}}),jt=Fe({"src/utils/arrayify.js"(m,E){Re(),E.exports=(f,b)=>Object.entries(f).map(D=>{let[c,d]=D;return Object.assign({[b]:c},d)})}}),st=Fe({"node_modules/outdent/lib/index.js"(m,E){Re(),Object.defineProperty(m,"__esModule",{value:!0}),m.outdent=void 0;function f(){for(var $=[],X=0;X<arguments.length;X++)$[X]=arguments[X]}function b(){return typeof WeakMap<"u"?new WeakMap:D()}function D(){return{add:f,delete:f,get:f,set:f,has:function($){return!1}}}var c=Object.prototype.hasOwnProperty,d=function($,X){return c.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]*$/,P=/^(?:[\r\n]|$)/,_=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,L=/^[ \t]*[\r\n][ \t\r\n]*$/;function C($,X,G){var ne=0,Z=$[0].match(_);Z&&(ne=Z[1].length);var De="(\\r\\n|\\r|\\n).{0,"+ne+"}",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="",ne=0,Z=$.length;ne<Z;ne++)G+=$[ne],ne<Z-1&&(G+=X[ne]);return G}function j($){return d($,"raw")&&d($,"length")}function Q($){var X=b(),G=b();function ne(De){for(var F=[],J=1;J<arguments.length;J++)F[J-1]=arguments[J];if(j(De)){var w=De,R=(F[0]===ne||F[0]===ee)&&L.test(w[0])&&P.test(w[1]),y=R?G:X,T=y.get(w);if(T||(T=C(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(ne,{string:function(De){return C([De],!1,$)[0]}});return Z}var ee=Q({trimLeadingNewline:!0,trimTrailingNewline:!0});if(m.outdent=ee,m.default=ee,typeof E<"u")try{E.exports=ee,Object.defineProperty(ee,"__esModule",{value:!0}),ee.default=ee,ee.outdent=ee}catch{}}}),yt=Fe({"src/main/core-options.js"(m,E){Re();var{outdent:f}=st(),b="Config",D="Editor",c="Format",d="Other",h="Output",v="Global",S="Special",P={cursorOffset:{since:"1.4.0",category:S,type:"int",default:-1,range:{start:-1,end:Number.POSITIVE_INFINITY,step:1},description:f`
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:f`
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:f`
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:f`
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:f`
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:f`
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:c,CATEGORY_OTHER:d,CATEGORY_OUTPUT:h,CATEGORY_GLOBAL:v,CATEGORY_SPECIAL:S,options:P}}}),Ft=Fe({"src/main/support.js"(m,E){Re();var f={compare:Be(),lt:Ke(),gte:mt()},b=jt(),D=ei().version,c=yt().options;function d(){let{plugins:v=[],showUnreleased:S=!1,showDeprecated:P=!1,showInternal:_=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},L=D.split("-",1)[0],C=v.flatMap($=>$.languages||[]).filter(j),x=b(Object.assign({},...v.map($=>{let{options:X}=$;return X}),c),"name").filter($=>j($)&&Q($)).sort(($,X)=>$.name===X.name?0:$.name<X.name?-1:1).map(ee).map($=>{$=Object.assign({},$),Array.isArray($.default)&&($.default=$.default.length===1?$.default[0].value:$.default.filter(j).sort((G,ne)=>f.compare(ne.since,G.since))[0].value),Array.isArray($.choices)&&($.choices=$.choices.filter(G=>j(G)&&Q(G)),$.name==="parser"&&h($,C,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:C,options:x};function j($){return S||!("since"in $)||$.since&&f.gte(L,$.since)}function Q($){return P||!("deprecated"in $)||$.deprecated&&f.lt(L,$.deprecated)}function ee($){return _?$:St($,Xe)}}function h(v,S,P){let _=new Set(v.choices.map(L=>L.value));for(let L of S)if(L.parsers){for(let C of L.parsers)if(!_.has(C)){_.add(C);let x=P.find(Q=>Q.parsers&&Q.parsers[C]),j=L.name;x&&x.name&&(j+=` (plugin: ${x.name})`),v.choices.push({value:C,description:j})}}}E.exports={getSupportInfo:d}}}),It=Fe({"src/utils/is-non-empty-array.js"(m,E){Re();function f(b){return Array.isArray(b)&&b.length>0}E.exports=f}}),_t=Fe({"src/utils/text/skip.js"(m,E){Re();function f(h){return(v,S,P)=>{let _=P&&P.backwards;if(S===!1)return!1;let{length:L}=v,C=S;for(;C>=0&&C<L;){let x=v.charAt(C);if(h instanceof RegExp){if(!h.test(x))return C}else if(!h.includes(x))return C;_?C--:C++}return C===-1||C===L?C:!1}}var b=f(/\s/),D=f(" "),c=f(",; "),d=f(/[^\n\r]/);E.exports={skipWhitespace:b,skipSpaces:D,skipToLineEnd:c,skipEverythingButNewLine:d}}}),Gt=Fe({"src/utils/text/skip-inline-comment.js"(m,E){Re();function f(b,D){if(D===!1)return!1;if(b.charAt(D)==="/"&&b.charAt(D+1)==="*"){for(let c=D+2;c<b.length;++c)if(b.charAt(c)==="*"&&b.charAt(c+1)==="/")return c+2}return D}E.exports=f}}),Wt=Fe({"src/utils/text/skip-trailing-comment.js"(m,E){Re();var{skipEverythingButNewLine:f}=_t();function b(D,c){return c===!1?!1:D.charAt(c)==="/"&&D.charAt(c+1)==="/"?f(D,c):c}E.exports=b}}),Xt=Fe({"src/utils/text/skip-newline.js"(m,E){Re();function f(b,D,c){let d=c&&c.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=f}}),bn=Fe({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(m,E){Re();var f=Gt(),b=Xt(),D=Wt(),{skipSpaces:c}=_t();function d(h,v){let S=null,P=v;for(;P!==S;)S=P,P=c(h,P),P=f(h,P),P=D(h,P),P=b(h,P);return P}E.exports=d}}),ye=Fe({"src/common/util.js"(m,E){Re();var{default:f}=(_f(),Qn(ol)),b=$r(),{getSupportInfo:D}=Ft(),c=It(),d=al(),{skipWhitespace:h,skipSpaces:v,skipToLineEnd:S,skipEverythingButNewLine:P}=_t(),_=Gt(),L=Wt(),C=Xt(),x=bn(),j=me=>me[me.length-2];function Q(me){return(ue,qe,nt)=>{let Je=nt&&nt.backwards;if(qe===!1)return!1;let{length:ht}=ue,be=qe;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 ee(me,ue){let qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},nt=v(me,qe.backwards?ue-1:ue,qe),Je=C(me,nt,qe);return nt!==Je}function $(me,ue,qe){for(let nt=ue;nt<qe;++nt)if(me.charAt(nt)===`
178
- `)return!0;return!1}function X(me,ue,qe){let nt=qe(ue)-1;nt=v(me,nt,{backwards:!0}),nt=C(me,nt,{backwards:!0}),nt=v(me,nt,{backwards:!0});let Je=C(me,nt,{backwards:!0});return nt!==Je}function G(me,ue){let qe=null,nt=ue;for(;nt!==qe;)qe=nt,nt=S(me,nt),nt=_(me,nt),nt=v(me,nt);return nt=L(me,nt),nt=C(me,nt),nt!==!1&&ee(me,nt)}function ne(me,ue,qe){return G(me,qe(ue))}function Z(me,ue,qe){return x(me,qe(ue))}function De(me,ue,qe){return me.charAt(Z(me,ue,qe))}function F(me,ue){let qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return v(me,qe.backwards?ue-1:ue,qe)!==ue}function J(me,ue){let qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,nt=0;for(let Je=qe;Je<me.length;++Je)me[Je]===" "?nt=nt+ue-nt%ue:nt++;return nt}function w(me,ue){let qe=me.lastIndexOf(`
179
- `);return qe===-1?0:J(me.slice(qe+1).match(/^[\t ]*/)[0],ue)}function R(me,ue){let qe={quote:'"',regex:/"/g,escaped:"&quot;"},nt={quote:"'",regex:/'/g,escaped:"&apos;"},Je=ue==="'"?nt:qe,ht=Je===nt?qe: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 qe=me.slice(1,-1),nt=ue.parser==="json"||ue.parser==="json5"&&ue.quoteProps==="preserve"&&!ue.singleQuote?'"':ue.__isInHtmlAttribute?"'":R(qe,ue.singleQuote?"'":'"').quote;return T(qe,nt,!(ue.parser==="css"||ue.parser==="less"||ue.parser==="scss"||ue.__embeddedInHtml))}function T(me,ue,qe){let nt=ue==='"'?"'":'"',Je=/\\(.)|(["'])/gs,ht=me.replace(Je,(be,Ie,ft)=>Ie===nt?Ie:ft===ue?"\\"+ft:ft||(qe&&/^[^\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 qe=me.match(new RegExp(`(${f(ue)})+`,"g"));return qe===null?0:qe.reduce((nt,Je)=>Math.max(nt,Je.length/ue.length),0)}function U(me,ue){let qe=me.match(new RegExp(`(${f(ue)})+`,"g"));if(qe===null)return 0;let nt=new Map,Je=0;for(let ht of qe){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,qe){ue.leading=!1,ue.trailing=!1,qe&&(ue.marker=qe),z(me,ue)}function ge(me,ue){ue.leading=!1,ue.trailing=!0,z(me,ue)}function fe(me,ue){let{languages:qe}=D({plugins:ue.plugins}),nt=qe.find(Je=>{let{name:ht}=Je;return ht.toLowerCase()===me})||qe.find(Je=>{let{aliases:ht}=Je;return Array.isArray(ht)&&ht.includes(me)})||qe.find(Je=>{let{extensions:ht}=Je;return Array.isArray(ht)&&ht.includes(`.${me}`)});return nt&&nt.parsers[0]}function Ne(me){return me&&me.type==="front-matter"}function se(me){let ue=new WeakMap;return function(qe){return ue.has(qe)||ue.set(qe,Symbol(me)),ue.get(qe)}}function Ue(me){let ue=me.type||me.kind||"(unknown type)",qe=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 qe.length>20&&(qe=qe.slice(0,19)+"…"),ue+(qe?" "+qe:"")}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:P,skipInlineComment:_,skipTrailingComment:L,skipNewline:C,isNextLineEmptyAfterIndex:G,isNextLineEmpty:ne,isPreviousLineEmpty:X,hasNewline:ee,hasNewlineInRange:$,hasSpaces:F,getAlignmentSize:J,getIndentSize:w,getPreferredQuote:R,printString:y,printNumber:M,makeString:T,addLeadingComment:ie,addDanglingComment:ce,addTrailingComment:ge,isFrontMatterNode:Ne,isNonEmptyArray:c,createGroupIdMapper:se}}}),K={};xn(K,{basename:()=>At,default:()=>xr,delimiter:()=>sr,dirname:()=>je,extname:()=>Ot,isAbsolute:()=>we,join:()=>Me,normalize:()=>le,relative:()=>ve,resolve:()=>H,sep:()=>Wn});function I(m,E){for(var f=0,b=m.length-1;b>=0;b--){var D=m[b];D==="."?m.splice(b,1):D===".."?(m.splice(b,1),f++):f&&(m.splice(b,1),f--)}if(E)for(;f--;f)m.unshift("..");return m}function H(){for(var m="",E=!1,f=arguments.length-1;f>=-1&&!E;f--){var b=f>=0?arguments[f]:"/";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=we(m),f=bi(m,-1)==="/";return m=I(zt(m.split("/"),function(b){return!!b}),!E).join("/"),!m&&!E&&(m="."),m&&f&&(m+="/"),(E?"/":"")+m}function we(m){return m.charAt(0)==="/"}function Me(){var m=Array.prototype.slice.call(arguments,0);return le(zt(m,function(E,f){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 f(S){for(var P=0;P<S.length&&S[P]==="";P++);for(var _=S.length-1;_>=0&&S[_]==="";_--);return P>_?[]:S.slice(P,_-P+1)}for(var b=f(m.split("/")),D=f(E.split("/")),c=Math.min(b.length,D.length),d=c,h=0;h<c;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),f=E[0],b=E[1];return!f&&!b?".":(b&&(b=b.substr(0,b.length-1)),f+b)}function At(m,E){var f=on(m)[2];return E&&f.substr(-1*E.length)===E&&(f=f.substr(0,f.length-E.length)),f}function Ot(m){return on(m)[3]}function zt(m,E){if(m.filter)return m.filter(E);for(var f=[],b=0;b<m.length;b++)E(m[b],b,m)&&f.push(m[b]);return f}var En,on,Wn,sr,xr,bi,fi=dn({"node-modules-polyfills:path"(){Re(),En=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,on=function(m){return En.exec(m).slice(1)},Wn="/",sr=":",xr={extname:Ot,basename:At,dirname:je,sep:Wn,delimiter:sr,relative:ve,join:Me,isAbsolute:we,normalize:le,resolve:H},bi="ab".substr(-1)==="b"?function(m,E,f){return m.substr(E,f)}:function(m,E,f){return E<0&&(E=m.length+E),m.substr(E,f)}}}),Dt=Fe({"node-modules-polyfills-commonjs:path"(m,E){Re();var f=(fi(),Qn(K));if(f&&f.default){E.exports=f.default;for(let b in f)E.exports[b]=f[b]}else f&&(E.exports=f)}}),tn=Fe({"src/common/errors.js"(m,E){Re();var f=class extends Error{},b=class extends Error{},D=class extends Error{},c=class extends Error{};E.exports={ConfigError:f,DebugError:b,UndefinedParserError:D,ArgExpansionBailout:c}}}),mn={};xn(mn,{__assign:()=>de,__asyncDelegator:()=>Pf,__asyncGenerator:()=>Lf,__asyncValues:()=>Bf,__await:()=>vi,__awaiter:()=>zi,__classPrivateFieldGet:()=>jf,__classPrivateFieldSet:()=>Rf,__createBinding:()=>ta,__decorate:()=>or,__exportStar:()=>Ga,__extends:()=>Cn,__generator:()=>ji,__importDefault:()=>Of,__importStar:()=>If,__makeTemplateObject:()=>Mf,__metadata:()=>Hi,__param:()=>Oi,__read:()=>ll,__rest:()=>Yn,__spread:()=>Tf,__spreadArrays:()=>kf,__values:()=>Bo});function Cn(m,E){pe(m,E);function f(){this.constructor=m}m.prototype=E===null?Object.create(E):(f.prototype=E.prototype,new f)}function Yn(m,E){var f={};for(var b in m)Object.prototype.hasOwnProperty.call(m,b)&&E.indexOf(b)<0&&(f[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])&&(f[b[D]]=m[b[D]]);return f}function or(m,E,f,b){var D=arguments.length,c=D<3?E:b===null?b=Object.getOwnPropertyDescriptor(E,f):b,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(m,E,f,b);else for(var h=m.length-1;h>=0;h--)(d=m[h])&&(c=(D<3?d(c):D>3?d(E,f,c):d(E,f))||c);return D>3&&c&&Object.defineProperty(E,f,c),c}function Oi(m,E){return function(f,b){E(f,b,m)}}function Hi(m,E){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(m,E)}function zi(m,E,f,b){function D(c){return c instanceof f?c:new f(function(d){d(c)})}return new(f||(f=Promise))(function(c,d){function h(P){try{S(b.next(P))}catch(_){d(_)}}function v(P){try{S(b.throw(P))}catch(_){d(_)}}function S(P){P.done?c(P.value):D(P.value).then(h,v)}S((b=b.apply(m,E||[])).next())})}function ji(m,E){var f={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},b,D,c,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(P){return v([S,P])}}function v(S){if(b)throw new TypeError("Generator is already executing.");for(;f;)try{if(b=1,D&&(c=S[0]&2?D.return:S[0]?D.throw||((c=D.return)&&c.call(D),0):D.next)&&!(c=c.call(D,S[1])).done)return c;switch(D=0,c&&(S=[S[0]&2,c.value]),S[0]){case 0:case 1:c=S;break;case 4:return f.label++,{value:S[1],done:!1};case 5:f.label++,D=S[1],S=[0];continue;case 7:S=f.ops.pop(),f.trys.pop();continue;default:if(c=f.trys,!(c=c.length>0&&c[c.length-1])&&(S[0]===6||S[0]===2)){f=0;continue}if(S[0]===3&&(!c||S[1]>c[0]&&S[1]<c[3])){f.label=S[1];break}if(S[0]===6&&f.label<c[1]){f.label=c[1],c=S;break}if(c&&f.label<c[2]){f.label=c[2],f.ops.push(S);break}c[2]&&f.ops.pop(),f.trys.pop();continue}S=E.call(m,f)}catch(P){S=[6,P],D=0}finally{b=c=0}if(S[0]&5)throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}}function ta(m,E,f,b){b===void 0&&(b=f),m[b]=E[f]}function Ga(m,E){for(var f in m)f!=="default"&&!E.hasOwnProperty(f)&&(E[f]=m[f])}function Bo(m){var E=typeof Symbol=="function"&&Symbol.iterator,f=E&&m[E],b=0;if(f)return f.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 ll(m,E){var f=typeof Symbol=="function"&&m[Symbol.iterator];if(!f)return m;var b=f.call(m),D,c=[],d;try{for(;(E===void 0||E-- >0)&&!(D=b.next()).done;)c.push(D.value)}catch(h){d={error:h}}finally{try{D&&!D.done&&(f=b.return)&&f.call(b)}finally{if(d)throw d.error}}return c}function Tf(){for(var m=[],E=0;E<arguments.length;E++)m=m.concat(ll(arguments[E]));return m}function kf(){for(var m=0,E=0,f=arguments.length;E<f;E++)m+=arguments[E].length;for(var b=Array(m),D=0,E=0;E<f;E++)for(var c=arguments[E],d=0,h=c.length;d<h;d++,D++)b[D]=c[d];return b}function vi(m){return this instanceof vi?(this.v=m,this):new vi(m)}function Lf(m,E,f){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var b=f.apply(m,E||[]),D,c=[];return D={},d("next"),d("throw"),d("return"),D[Symbol.asyncIterator]=function(){return this},D;function d(L){b[L]&&(D[L]=function(C){return new Promise(function(x,j){c.push([L,C,x,j])>1||h(L,C)})})}function h(L,C){try{v(b[L](C))}catch(x){_(c[0][3],x)}}function v(L){L.value instanceof vi?Promise.resolve(L.value.v).then(S,P):_(c[0][2],L)}function S(L){h("next",L)}function P(L){h("throw",L)}function _(L,C){L(C),c.shift(),c.length&&h(c[0][0],c[0][1])}}function Pf(m){var E,f;return E={},b("next"),b("throw",function(D){throw D}),b("return"),E[Symbol.iterator]=function(){return this},E;function b(D,c){E[D]=m[D]?function(d){return(f=!f)?{value:vi(m[D](d)),done:D==="return"}:c?c(d):d}:c}}function Bf(m){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var E=m[Symbol.asyncIterator],f;return E?E.call(m):(m=typeof Bo=="function"?Bo(m):m[Symbol.iterator](),f={},b("next"),b("throw"),b("return"),f[Symbol.asyncIterator]=function(){return this},f);function b(c){f[c]=m[c]&&function(d){return new Promise(function(h,v){d=m[c](d),D(h,v,d.done,d.value)})}}function D(c,d,h,v){Promise.resolve(v).then(function(S){c({value:S,done:h})},d)}}function Mf(m,E){return Object.defineProperty?Object.defineProperty(m,"raw",{value:E}):m.raw=E,m}function If(m){if(m&&m.__esModule)return m;var E={};if(m!=null)for(var f in m)Object.hasOwnProperty.call(m,f)&&(E[f]=m[f]);return E.default=m,E}function Of(m){return m&&m.__esModule?m:{default:m}}function jf(m,E){if(!E.has(m))throw new TypeError("attempted to get private field on non-instance");return E.get(m)}function Rf(m,E,f){if(!E.has(m))throw new TypeError("attempted to set private field on non-instance");return E.set(m,f),f}var pe,de,We=dn({"node_modules/tslib/tslib.es6.js"(){Re(),pe=function(m,E){return pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,b){f.__proto__=b}||function(f,b){for(var D in b)b.hasOwnProperty(D)&&(f[D]=b[D])},pe(m,E)},de=function(){return de=Object.assign||function(m){for(var E,f=1,b=arguments.length;f<b;f++){E=arguments[f];for(var D in E)Object.prototype.hasOwnProperty.call(E,D)&&(m[D]=E[D])}return m},de.apply(this,arguments)}}}),He=Fe({"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 f=Object.keys(E);return f.length===0?"{}":`{ ${f.map(b=>`${m.apiDescriptor.key(b)}: ${m.apiDescriptor.value(E[b])}`).join(", ")} }`},pair:E=>{let{key:f,value:b}=E;return m.apiDescriptor.value({[f]:b})}}}}),Ze=Fe({"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=Fe({"scripts/build/shims/chalk.cjs"(m,E){Re();var f=b=>b;f.grey=f,f.red=f,f.bold=f,f.yellow=f,f.blue=f,f.default=f,E.exports=f}}),Ct=Fe({"node_modules/vnopts/lib/handlers/deprecated/common.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=tt();m.commonDeprecatedHandler=(f,b,D)=>{let{descriptor:c}=D,d=[`${E.default.yellow(typeof f=="string"?c.key(f):c.pair(f))} is deprecated`];return b&&d.push(`we now treat it as ${E.default.blue(typeof b=="string"?c.key(b):c.pair(b))}`),d.join("; ")+"."}}}),wt=Fe({"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=Fe({"node_modules/vnopts/lib/handlers/invalid/common.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=tt();m.commonInvalidHandler=(f,b,D)=>[`Invalid ${E.default.red(D.descriptor.key(f))} value.`,`Expected ${E.default.blue(D.schemas[f].expected(D))},`,`but received ${E.default.red(D.descriptor.value(b))}.`].join(" ")}}),rn=Fe({"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=Fe({"node_modules/vnopts/node_modules/leven/index.js"(m,E){Re();var f=[],b=[];E.exports=function(D,c){if(D===c)return 0;var d=D;D.length>c.length&&(D=c,c=d);var h=D.length,v=c.length;if(h===0)return v;if(v===0)return h;for(;h>0&&D.charCodeAt(~-h)===c.charCodeAt(~-v);)h--,v--;if(h===0)return v;for(var S=0;S<h&&D.charCodeAt(S)===c.charCodeAt(S);)S++;if(h-=S,v-=S,h===0)return v;for(var P,_,L,C,x=0,j=0;x<h;)b[S+x]=D.charCodeAt(S+x),f[x]=++x;for(;j<v;)for(P=c.charCodeAt(S+j),L=j++,_=j,x=0;x<h;x++)C=P===b[S+x]?L:L+1,L=f[x],_=f[x]=L>_?C>_?_+1:C:C>L?L+1:C;return _}}}),Mn=Fe({"node_modules/vnopts/lib/handlers/unknown/leven.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=tt(),f=hn();m.levenUnknownHandler=(b,D,c)=>{let{descriptor:d,logger:h,schemas:v}=c,S=[`Ignored unknown option ${E.default.yellow(d.pair({key:b,value:D}))}.`],P=Object.keys(v).sort().find(_=>f(b,_)<3);P&&S.push(`Did you mean ${E.default.blue(d.key(P))}?`),h.warn(S.join(" "))}}}),lr=Fe({"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=Fe({"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=Fe({"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 f(c,d){let h=new c(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=f;var b=class{constructor(c){this.name=c.name}static create(c){return f(this,c)}default(c){}expected(c){return"nothing"}validate(c,d){return!1}deprecated(c,d){return!1}forward(c,d){}redirect(c,d){}overlap(c,d,h){return c}preprocess(c,d){return c}postprocess(c,d){return c}};m.Schema=b;function D(c,d,h){return typeof c=="function"?function(){for(var v=arguments.length,S=new Array(v),P=0;P<v;P++)S[P]=arguments[P];return c(...S.slice(0,h-1),d,...S.slice(h-1))}:()=>c}}}),rr=Fe({"node_modules/vnopts/lib/schemas/alias.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=Vn(),f=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=f}}),tr=Fe({"node_modules/vnopts/lib/schemas/any.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=Vn(),f=class extends E.Schema{expected(){return"anything"}validate(){return!0}};m.AnySchema=f}}),Vr=Fe({"node_modules/vnopts/lib/schemas/array.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=(We(),Qn(mn)),f=Vn(),b=class extends f.Schema{constructor(c){var{valueSchema:d,name:h=d.name}=c,v=E.__rest(c,["valueSchema","name"]);super(Object.assign({},v,{name:h})),this._valueSchema=d}expected(c){return`an array of ${this._valueSchema.expected(c)}`}validate(c,d){if(!Array.isArray(c))return!1;let h=[];for(let v of c){let S=d.normalizeValidateResult(this._valueSchema.validate(v,d),v);S!==!0&&h.push(S.value)}return h.length===0?!0:{value:h}}deprecated(c,d){let h=[];for(let v of c){let S=d.normalizeDeprecatedResult(this._valueSchema.deprecated(v,d),v);S!==!1&&h.push(...S.map(P=>{let{value:_}=P;return{value:[_]}}))}return h}forward(c,d){let h=[];for(let v of c){let S=d.normalizeForwardResult(this._valueSchema.forward(v,d),v);h.push(...S.map(D))}return h}redirect(c,d){let h=[],v=[];for(let S of c){let P=d.normalizeRedirectResult(this._valueSchema.redirect(S,d),S);"remain"in P&&h.push(P.remain),v.push(...P.redirect.map(D))}return h.length===0?{redirect:v}:{redirect:v,remain:h}}overlap(c,d){return c.concat(d)}};m.ArraySchema=b;function D(c){let{from:d,to:h}=c;return{from:[d],to:h}}}}),ur=Fe({"node_modules/vnopts/lib/schemas/boolean.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=Vn(),f=class extends E.Schema{expected(){return"true or false"}validate(b){return typeof b=="boolean"}};m.BooleanSchema=f}}),Gr=Fe({"node_modules/vnopts/lib/utils.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});function E(C,x){let j=Object.create(null);for(let Q of C){let ee=Q[x];if(j[ee])throw new Error(`Duplicate ${x} ${JSON.stringify(ee)}`);j[ee]=Q}return j}m.recordFromArray=E;function f(C,x){let j=new Map;for(let Q of C){let ee=Q[x];if(j.has(ee))throw new Error(`Duplicate ${x} ${JSON.stringify(ee)}`);j.set(ee,Q)}return j}m.mapFromArray=f;function b(){let C=Object.create(null);return x=>{let j=JSON.stringify(x);return C[j]?!0:(C[j]=!0,!1)}}m.createAutoChecklist=b;function D(C,x){let j=[],Q=[];for(let ee of C)x(ee)?j.push(ee):Q.push(ee);return[j,Q]}m.partition=D;function c(C){return C===Math.floor(C)}m.isInt=c;function d(C,x){if(C===x)return 0;let j=typeof C,Q=typeof x,ee=["undefined","object","boolean","number","string"];return j!==Q?ee.indexOf(j)-ee.indexOf(Q):j!=="string"?Number(C)-Number(x):C.localeCompare(x)}m.comparePrimitive=d;function h(C){return C===void 0?{}:C}m.normalizeDefaultResult=h;function v(C,x){return C===!0?!0:C===!1?{value:x}:C}m.normalizeValidateResult=v;function S(C,x){let j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return C===!1?!1:C===!0?j?!0:[{value:x}]:"value"in C?[C]:C.length===0?!1:C}m.normalizeDeprecatedResult=S;function P(C,x){return typeof C=="string"||"key"in C?{from:x,to:C}:"from"in C?{from:C.from,to:C.to}:{from:x,to:C.to}}m.normalizeTransferResult=P;function _(C,x){return C===void 0?[]:Array.isArray(C)?C.map(j=>P(j,x)):[P(C,x)]}m.normalizeForwardResult=_;function L(C,x){let j=_(typeof C=="object"&&"redirect"in C?C.redirect:C,x);return j.length===0?{remain:x,redirect:j}:typeof C=="object"&&"remain"in C?{remain:C.remain,redirect:j}:{redirect:j}}m.normalizeRedirectResult=L}}),yr=Fe({"node_modules/vnopts/lib/schemas/choice.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=Vn(),f=Gr(),b=class extends E.Schema{constructor(D){super(D),this._choices=f.mapFromArray(D.choices.map(c=>c&&typeof c=="object"?c:{value:c}),"value")}expected(D){let{descriptor:c}=D,d=Array.from(this._choices.keys()).map(S=>this._choices.get(S)).filter(S=>!S.deprecated).map(S=>S.value).sort(f.comparePrimitive).map(c.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 c=this._choices.get(D);return c&&c.deprecated?{value:D}:!1}forward(D){let c=this._choices.get(D);return c?c.forward:void 0}redirect(D){let c=this._choices.get(D);return c?c.redirect:void 0}};m.ChoiceSchema=b}}),Nr=Fe({"node_modules/vnopts/lib/schemas/number.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=Vn(),f=class extends E.Schema{expected(){return"a number"}validate(b,D){return typeof b=="number"}};m.NumberSchema=f}}),Ja=Fe({"node_modules/vnopts/lib/schemas/integer.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=Gr(),f=Nr(),b=class extends f.NumberSchema{expected(){return"an integer"}validate(D,c){return c.normalizeValidateResult(super.validate(D,c),D)===!0&&E.isInt(D)}};m.IntegerSchema=b}}),yv=Fe({"node_modules/vnopts/lib/schemas/string.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=Vn(),f=class extends E.Schema{expected(){return"a string"}validate(b){return typeof b=="string"}};m.StringSchema=f}}),Dv=Fe({"node_modules/vnopts/lib/schemas/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=(We(),Qn(mn));E.__exportStar(rr(),m),E.__exportStar(tr(),m),E.__exportStar(Vr(),m),E.__exportStar(ur(),m),E.__exportStar(yr(),m),E.__exportStar(Ja(),m),E.__exportStar(Nr(),m),E.__exportStar(yv(),m)}}),bv=Fe({"node_modules/vnopts/lib/defaults.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=He(),f=Ct(),b=rn(),D=Mn();m.defaultDescriptor=E.apiDescriptor,m.defaultUnknownHandler=D.levenUnknownHandler,m.defaultInvalidHandler=b.commonInvalidHandler,m.defaultDeprecatedHandler=f.commonDeprecatedHandler}}),vv=Fe({"node_modules/vnopts/lib/normalize.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=bv(),f=Gr();m.normalize=(D,c,d)=>new b(c,d).normalize(D);var b=class{constructor(D,c){let{logger:d=console,descriptor:h=E.defaultDescriptor,unknown:v=E.defaultUnknownHandler,invalid:S=E.defaultInvalidHandler,deprecated:P=E.defaultDeprecatedHandler}=c||{};this._utils={descriptor:h,logger:d||{warn:()=>{}},schemas:f.recordFromArray(D,"name"),normalizeDefaultResult:f.normalizeDefaultResult,normalizeDeprecatedResult:f.normalizeDeprecatedResult,normalizeForwardResult:f.normalizeForwardResult,normalizeRedirectResult:f.normalizeRedirectResult,normalizeValidateResult:f.normalizeValidateResult},this._unknownHandler=v,this._invalidHandler=S,this._deprecatedHandler=P,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=f.createAutoChecklist()}normalize(D){let c={},d=[D],h=()=>{for(;d.length!==0;){let v=d.shift(),S=this._applyNormalization(v,c);d.push(...S)}};h();for(let v of Object.keys(this._utils.schemas)){let S=this._utils.schemas[v];if(!(v in c)){let P=f.normalizeDefaultResult(S.default(this._utils));"value"in P&&d.push({[v]:P.value})}}h();for(let v of Object.keys(this._utils.schemas)){let S=this._utils.schemas[v];v in c&&(c[v]=S.postprocess(c[v],this._utils))}return c}_applyNormalization(D,c){let d=[],[h,v]=f.partition(Object.keys(D),S=>S in this._utils.schemas);for(let S of h){let P=this._utils.schemas[S],_=P.preprocess(D[S],this._utils),L=f.normalizeValidateResult(P.validate(_,this._utils),_);if(L!==!0){let{value:Q}=L,ee=this._invalidHandler(S,Q,this._utils);throw typeof ee=="string"?new Error(ee):ee}let C=Q=>{let{from:ee,to:$}=Q;d.push(typeof $=="string"?{[$]:ee}:{[$.key]:$.value})},x=Q=>{let{value:ee,redirectTo:$}=Q,X=f.normalizeDeprecatedResult(P.deprecated(ee,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 ne={key:S,value:G};if(!this._hasDeprecationWarned(ne)){let Z=typeof $=="string"?{key:$,value:G}:$;this._utils.logger.warn(this._deprecatedHandler(ne,Z,this._utils))}}};f.normalizeForwardResult(P.forward(_,this._utils),_).forEach(C);let j=f.normalizeRedirectResult(P.redirect(_,this._utils),_);if(j.redirect.forEach(C),"remain"in j){let Q=j.remain;c[S]=S in c?P.overlap(c[S],Q,this._utils):Q,x({value:Q})}for(let{from:Q,to:ee}of j.redirect)x({value:Q,redirectTo:ee})}for(let S of v){let P=D[S],_=this._unknownHandler(S,P,this._utils);if(_)for(let L of Object.keys(_)){let C={[L]:_[L]};L in this._utils.schemas?d.push(C):Object.assign(c,C)}}return d}};m.Normalizer=b}}),Ev=Fe({"node_modules/vnopts/lib/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=(We(),Qn(mn));E.__exportStar(Ze(),m),E.__exportStar(cr(),m),E.__exportStar(Dv(),m),E.__exportStar(vv(),m),E.__exportStar(Vn(),m)}}),Av=Fe({"src/main/options-normalizer.js"(m,E){Re();var f=Ev(),b=$r(),D={key:L=>L.length===1?`-${L}`:`--${L}`,value:L=>f.apiDescriptor.value(L),pair:L=>{let{key:C,value:x}=L;return x===!1?`--no-${C}`:x===!0?D.key(C):x===""?`${D.key(C)} without an argument`:`${D.key(C)}=${x}`}},c=L=>{let{colorsModule:C,levenshteinDistance:x}=L;return class extends f.ChoiceSchema{constructor(j){let{name:Q,flags:ee}=j;super({name:Q,choices:ee}),this._flags=[...ee].sort()}preprocess(j,Q){if(typeof j=="string"&&j.length>0&&!this._flags.includes(j)){let ee=this._flags.find($=>x($,j)<3);if(ee)return Q.logger.warn([`Unknown flag ${C.yellow(Q.descriptor.value(j))},`,`did you mean ${C.blue(Q.descriptor.value(ee))}?`].join(" ")),ee}return j}expected(){return"a flag"}}},d;function h(L,C){let{logger:x=!1,isCLI:j=!1,passThrough:Q=!1,colorsModule:ee=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 f.levenUnknownHandler(J,w,Object.assign(Object.assign({},R),{},{schemas:T}))},G=j?D:f.apiDescriptor,ne=v(C,{isCLI:j,colorsModule:ee,levenshteinDistance:$}),Z=new f.Normalizer(ne,{logger:x,unknown:X,descriptor:G}),De=x!==!1;De&&d&&(Z._hasDeprecationWarned=d);let F=Z.normalize(L);return De&&(d=Z._hasDeprecationWarned),j&&F["plugin-search"]===!1&&(F["plugin-search-dir"]=!1),F}function v(L,C){let{isCLI:x,colorsModule:j,levenshteinDistance:Q}=C,ee=[];x&&ee.push(f.AnySchema.create({name:"_"}));for(let $ of L)ee.push(S($,{isCLI:x,optionInfos:L,colorsModule:j,levenshteinDistance:Q})),$.alias&&x&&ee.push(f.AliasSchema.create({name:$.alias,sourceName:$.name}));return ee}function S(L,C){let{isCLI:x,optionInfos:j,colorsModule:Q,levenshteinDistance:ee}=C,{name:$}=L;if($==="plugin-search-dir"||$==="pluginSearchDirs")return f.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,ne={};switch(L.type){case"int":G=f.IntegerSchema,x&&(X.preprocess=Number);break;case"string":G=f.StringSchema;break;case"choice":G=f.ChoiceSchema,X.choices=L.choices.map(Z=>typeof Z=="object"&&Z.redirect?Object.assign(Object.assign({},Z),{},{redirect:{to:{key:L.name,value:Z.redirect}}}):Z);break;case"boolean":G=f.BooleanSchema;break;case"flag":G=c({colorsModule:Q,levenshteinDistance:ee}),X.flags=j.flatMap(Z=>[Z.alias,Z.description&&Z.name,Z.oppositeDescription&&`no-${Z.name}`].filter(Boolean));break;case"path":G=f.StringSchema;break;default:throw new Error(`Unexpected type ${L.type}`)}if(L.exception?X.validate=(Z,De,F)=>L.exception(Z)||De.validate(Z,F):X.validate=(Z,De,F)=>Z===void 0||De.validate(Z,F),L.redirect&&(ne.redirect=Z=>Z?{to:{key:L.redirect.option,value:L.redirect.value}}:void 0),L.deprecated&&(ne.deprecated=!0),x&&!L.array){let Z=X.preprocess||(De=>De);X.preprocess=(De,F,J)=>F.preprocess(Z(Array.isArray(De)?b(De):De),J)}return L.array?f.ArraySchema.create(Object.assign(Object.assign(Object.assign({},x?{preprocess:Z=>Array.isArray(Z)?Z:[Z]}:{}),ne),{},{valueSchema:G.create(X)})):G.create(Object.assign(Object.assign({},X),ne))}function P(L,C,x){return h(L,C,x)}function _(L,C,x){return h(L,C,Object.assign({isCLI:!0},x))}E.exports={normalizeApiOptions:P,normalizeCliOptions:_}}}),si=Fe({"src/language-js/loc.js"(m,E){Re();var f=It();function b(v){var S,P;let _=v.range?v.range[0]:v.start,L=(S=(P=v.declaration)===null||P===void 0?void 0:P.decorators)!==null&&S!==void 0?S:v.decorators;return f(L)?Math.min(b(L[0]),_):_}function D(v){return v.range?v.range[1]:v.end}function c(v,S){let P=b(v);return Number.isInteger(P)&&P===b(S)}function d(v,S){let P=D(v);return Number.isInteger(P)&&P===D(S)}function h(v,S){return c(v,S)&&d(v,S)}E.exports={locStart:b,locEnd:D,hasSameLocStart:c,hasSameLoc:h}}}),Cv=Fe({"src/main/load-parser.js"(m,E){Re(),E.exports=()=>{}}}),Sv=Fe({"scripts/build/shims/babel-highlight.cjs"(m,E){Re();var f=tt(),b={shouldHighlight:()=>!1,getChalk:()=>f};E.exports=b}}),xv=Fe({"node_modules/@babel/code-frame/lib/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0}),m.codeFrameColumns=d,m.default=h;var E=Sv(),f=!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 c(v,S,P){let _=Object.assign({column:0,line:-1},v.start),L=Object.assign({},_,v.end),{linesAbove:C=2,linesBelow:x=3}=P||{},j=_.line,Q=_.column,ee=L.line,$=L.column,X=Math.max(j-(C+1),0),G=Math.min(S.length,ee+x);j===-1&&(X=0),ee===-1&&(G=S.length);let ne=ee-j,Z={};if(ne)for(let De=0;De<=ne;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===ne)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 P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_=(P.highlightCode||P.forceColor)&&(0,E.shouldHighlight)(P),L=(0,E.getChalk)(P),C=b(L),x=(Z,De)=>_?Z(De):De,j=v.split(D),{start:Q,end:ee,markerLines:$}=c(S,j,P),X=S.start&&typeof S.start.column=="number",G=String(ee).length,ne=(_?(0,E.default)(v,P):v).split(D,ee).slice(Q,ee).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(C.gutter,J.replace(/\d/g," "))," ",T,x(C.marker,"^").repeat(M)].join(""),R&&P.message&&(y+=" "+x(C.message,P.message))}return[x(C.marker,">"),x(C.gutter,J),Z.length>0?` ${Z}`:"",y].join("")}else return` ${x(C.gutter,J)}${Z.length>0?` ${Z}`:""}`}).join(`
181
- `);return P.message&&!X&&(ne=`${" ".repeat(G+1)}${P.message}
182
- ${ne}`),_?L.reset(ne):ne}function h(v,S,P){let _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(!f){f=!0;let L="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(Sr.emitWarning)Sr.emitWarning(L,"DeprecationWarning");else{let C=new Error(L);C.name="DeprecationWarning",console.warn(new Error(L))}}return P=Math.max(P,0),d(v,{start:{column:P,line:S}},_)}}}),$f=Fe({"src/main/parser.js"(m,E){Re();var{ConfigError:f}=tn(),b=si();Cv();var{locStart:D,locEnd:c}=b,d=Object.getOwnPropertyNames,h=Object.getOwnPropertyDescriptor;function v(_){let L={};for(let C of _.plugins)if(C.parsers)for(let x of d(C.parsers))Object.defineProperty(L,x,h(C.parsers,x));return L}function S(_){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v(_);if(typeof _.parser=="function")return{parse:_.parser,astFormat:"estree",locStart:D,locEnd:c};if(typeof _.parser=="string"){if(Object.prototype.hasOwnProperty.call(L,_.parser))return L[_.parser];throw new f(`Couldn't resolve parser "${_.parser}". Parsers must be explicitly added to the standalone bundle.`)}}function P(_,L){let C=v(L),x=Object.defineProperties({},Object.fromEntries(Object.keys(C).map(Q=>[Q,{enumerable:!0,get(){return C[Q].parse}}]))),j=S(L,C);try{return j.preprocess&&(_=j.preprocess(_,L)),{text:_,ast:j.parse(_,x,L)}}catch(Q){let{loc:ee}=Q;if(ee){let{codeFrameColumns:$}=xv();throw Q.codeFrame=$(_,ee,{highlightCode:!0}),Q.message+=`
183
- `+Q.codeFrame,Q}throw Q}}E.exports={parse:P,resolveParser:S}}}),p0=Fe({"src/main/options.js"(m,E){Re();var f=Dt(),{UndefinedParserError:b}=tn(),{getSupportInfo:D}=Ft(),c=Av(),{resolveParser:d}=$f(),h={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function v(_){let L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},C=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(!C.parser){if(!C.filepath)(L.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."),C.parser="babel";else if(C.parser=P(C.filepath,C.plugins),!C.parser)throw new b(`No parser could be inferred for file: ${C.filepath}`)}let Q=d(c.normalizeApiOptions(C,[x.find(G=>G.name==="parser")],{passThrough:!0,logger:!1}));C.astFormat=Q.astFormat,C.locEnd=Q.locEnd,C.locStart=Q.locStart;let ee=S(C);C.printer=ee.printers[C.astFormat];let $=Object.fromEntries(x.filter(G=>G.pluginDefaults&&G.pluginDefaults[ee.name]!==void 0).map(G=>[G.name,G.pluginDefaults[ee.name]])),X=Object.assign(Object.assign({},j),$);for(let[G,ne]of Object.entries(X))(C[G]===null||C[G]===void 0)&&(C[G]=ne);return C.parser==="json"&&(C.trailingComma="none"),c.normalizeApiOptions(C,x,Object.assign({passThrough:Object.keys(h)},L))}function S(_){let{astFormat:L}=_;if(!L)throw new Error("getPlugin() requires astFormat to be set");let C=_.plugins.find(x=>x.printers&&x.printers[L]);if(!C)throw new Error(`Couldn't find plugin for AST format "${L}"`);return C}function P(_,L){let C=f.basename(_).toLowerCase(),x=D({plugins:L}).languages.filter(j=>j.since!==null).find(j=>j.extensions&&j.extensions.some(Q=>C.endsWith(Q))||j.filenames&&j.filenames.some(Q=>Q.toLowerCase()===C));return x&&x.parsers[0]}E.exports={normalize:v,hiddenDefaults:h,inferParser:P}}}),wv=Fe({"src/main/massage-ast.js"(m,E){Re();function f(b,D,c){if(Array.isArray(b))return b.map(S=>f(S,D,c)).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,P]of Object.entries(b))!h.has(S)&&typeof P!="function"&&(v[S]=f(P,D,b));if(d){let S=d(b,v,c);if(S===null)return;if(S)return S}return v}E.exports=f}}),Mo=Fe({"scripts/build/shims/assert.cjs"(m,E){Re();var f=()=>{};f.ok=f,f.strictEqual=f,E.exports=f}}),Ir=Fe({"src/main/comments.js"(m,E){Re();var f=Mo(),{builders:{line:b,hardline:D,breakParent:c,indent:d,lineSuffix:h,join:v,cursor:S}}=wn(),{hasNewline:P,skipNewline:_,skipSpaces:L,isPreviousLineEmpty:C,addLeadingComment:x,addDanglingComment:j,addTrailingComment:Q}=ye(),ee=new WeakMap;function $(ie,ce,ge){if(!ie)return;let{printer:fe,locStart:Ne,locEnd:se}=ce;if(ge){if(fe.canAttachComment&&fe.canAttachComment(ie)){let me;for(me=ge.length-1;me>=0&&!(Ne(ge[me])<=Ne(ie)&&se(ge[me])<=se(ie));--me);ge.splice(me+1,0,ie);return}}else if(ee.has(ie))return ee.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=[],ee.set(ie,ge));for(let me of Ue)$(me,ce,ge);return ge}}function X(ie,ce,ge,fe){let{locStart:Ne,locEnd:se}=ge,Ue=Ne(ce),me=se(ce),ue=$(ie,ge),qe,nt,Je=0,ht=ue.length;for(;Je<ht;){let be=Je+ht>>1,Ie=ue[be],ft=Ne(Ie),pt=se(Ie);if(ft<=Ue&&me<=pt)return X(Ie,ce,ge,Ie);if(pt<=Ue){qe=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);qe&&R(be,qe,ge)!==Ie&&(qe=null),nt&&R(be,nt,ge)!==Ie&&(nt=null)}return{enclosingNode:fe,precedingNode:qe,followingNode:nt}}var G=()=>!1;function ne(ie,ce,ge,fe){if(!Array.isArray(ie))return;let Ne=[],{locStart:se,locEnd:Ue,printer:{handleComments:me={}}}=fe,{avoidAstMutation:ue,ownLine:qe=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:Se,options:Ye,ast:Qe,isLastComment:bt}=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(Qe)<=0){x(Qe,ft);continue}if(Ue(ft)-Ue(Qe)>=0){Q(Qe,ft);continue}}let Nt;if(ue?Nt=[Ie]:(ft.enclosingNode=Jt,ft.precedingNode=pt,ft.followingNode=$e,Nt=[ft,Se,Ye,Qe,bt]),De(Se,Ye,ht,be))ft.placement="ownLine",qe(...Nt)||($e?x($e,ft):pt?Q(pt,ft):j(Jt||Qe,ft));else if(F(Se,Ye,ht,be))ft.placement="endOfLine",nt(...Nt)||(pt?Q(pt,ft):$e?x($e,ft):j(Jt||Qe,ft));else if(ft.placement="remaining",!Je(...Nt))if(pt&&$e){let Bt=Ne.length;Bt>0&&Ne[Bt-1].followingNode!==$e&&J(Ne,Se,Ye),Ne.push(Ie)}else pt?Q(pt,ft):$e?x($e,ft):j(Jt||Qe,ft)}if(J(Ne,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:Ne,precedingNode:se}=ge[fe],{locStart:Ue,locEnd:me}=ce,ue=Ue(Ne);if(se)for(let qe=fe-1;qe>=0;qe--){let{comment:nt,precedingNode:Je}=ge[qe];if(Je!==se||!Z(ie.slice(me(nt),ue)))break;ue=Ue(nt)}return P(ie,ue,{backwards:!0})}function F(ie,ce,ge,fe){let{comment:Ne,followingNode:se}=ge[fe],{locStart:Ue,locEnd:me}=ce,ue=me(Ne);if(se)for(let qe=fe+1;qe<ge.length;qe++){let{comment:nt,followingNode:Je}=ge[qe];if(Je!==se||!Z(ie.slice(ue,Ue(nt))))break;ue=me(nt)}return P(ie,ue)}function J(ie,ce,ge){let fe=ie.length;if(fe===0)return;let{precedingNode:Ne,followingNode:se,enclosingNode:Ue}=ie[0],me=ge.printer.getGapRegex&&ge.printer.getGapRegex(Ue)||/^[\s(]*$/,ue=ge.locStart(se),qe;for(qe=fe;qe>0;--qe){let{comment:nt,precedingNode:Je,followingNode:ht}=ie[qe-1];f.strictEqual(Je,Ne),f.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<qe?Q(Ne,Je):x(se,Je);for(let nt of[Ne,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 Ne=1;Ne<ie.length;++Ne)if(fe<ge.locStart(ie[Ne]))return Ne-1;return 0}function y(ie,ce){let ge=ie.getValue(),fe=[w(ie,ce)],{printer:Ne,originalText:se,locStart:Ue,locEnd:me}=ce;if(Ne.isBlockComment&&Ne.isBlockComment(ge)){let qe=P(se,me(ge))?P(se,Ue(ge),{backwards:!0})?D:b:" ";fe.push(qe)}else fe.push(D);let ue=_(se,L(se,me(ge)));return ue!==!1&&P(se,ue)&&fe.push(D),fe}function T(ie,ce){let ge=ie.getValue(),fe=w(ie,ce),{printer:Ne,originalText:se,locStart:Ue}=ce,me=Ne.isBlockComment&&Ne.isBlockComment(ge);if(P(se,Ue(ge),{backwards:!0})){let qe=C(se,ge,Ue);return h([D,qe?D:"",fe])}let ue=[" ",fe];return me||(ue=[h(ue),c]),ue}function M(ie,ce,ge,fe){let Ne=[],se=ie.getValue();return!se||!se.comments||(ie.each(()=>{let Ue=ie.getValue();!Ue.leading&&!Ue.trailing&&(!fe||fe(Ue))&&Ne.push(w(ie,ce))},"comments"),Ne.length===0)?"":ge?v(D,Ne):d([D,v(D,Ne)])}function q(ie,ce,ge){let fe=ie.getValue();if(!fe)return{};let Ne=fe.comments||[];ge&&(Ne=Ne.filter(ue=>!ge.has(ue)));let se=fe===ce.cursorNode;if(Ne.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:qe,trailing:nt}=ue;qe?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:Ne,trailing:se}=q(ie,ge,fe);return!Ne&&!se?ce:[Ne,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:ne,printComments:U,printCommentsSeparately:q,printDanglingComments:M,getSortedChildNodes:$,ensureAllCommentsPrinted:z}}}),Fv=Fe({"src/common/ast-path.js"(m,E){Re();var f=$r();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 c=class{constructor(d){this.stack=[d]}getName(){let{stack:d}=this,{length:h}=d;return h>1?d[h-2]:null}getValue(){return f(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=f(h);for(var P=arguments.length,_=new Array(P>1?P-1:0),L=1;L<P;L++)_[L-1]=arguments[L];for(let x of _)S=S[x],h.push(x,S);let C=d(this);return h.length=v,C}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),P=d(this);return this.stack.push(...S),P}each(d){let{stack:h}=this,{length:v}=h,S=f(h);for(var P=arguments.length,_=new Array(P>1?P-1:0),L=1;L<P;L++)_[L-1]=arguments[L];for(let C of _)S=S[C],h.push(C,S);for(let C=0;C<S.length;++C)h.push(C,S[C]),d(this,C,S),h.length-=2;h.length=v}map(d){let h=[];for(var v=arguments.length,S=new Array(v>1?v-1:0),P=1;P<v;P++)S[P-1]=arguments[P];return this.each((_,L,C)=>{h[L]=d(_,L,C)},...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,P=new Array(S),_=0;_<S;_++)P[_]=arguments[_];for(let L of P){if(v===void 0)return!1;let C=null;if(typeof h=="number"&&(C=h,h=this.stack[d--],v=this.stack[d--]),L&&!L(v,h,C))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 P=null;if(typeof v=="number"&&(P=v,v=this.stack[h--],S=this.stack[h--]),v!==null&&d(S,v,P))return S;v=this.stack[h--],S=this.stack[h--]}}};E.exports=c}}),Nv=Fe({"src/main/multiparser.js"(m,E){Re();var{utils:{stripTrailingHardline:f}}=wn(),{normalize:b}=p0(),D=Ir();function c(h,v,S,P){if(S.printer.embed&&S.embeddedLanguageFormatting==="auto")return S.printer.embed(h,v,(_,L,C)=>d(_,L,S,P,C),S)}function d(h,v,S,P){let{stripTrailingHardline:_=!1}=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},L=b(Object.assign(Object.assign(Object.assign({},S),v),{},{parentParser:S.parser,originalText:h}),{passThrough:!0}),C=$f().parse(h,L),{ast:x}=C;h=C.text;let j=x.comments;delete x.comments,D.attach(j,x,h,L),L[Symbol.for("comments")]=j||[],L[Symbol.for("tokens")]=x.tokens||[];let Q=P(x,L);return D.ensureAllCommentsPrinted(j),_?typeof Q=="string"?Q.replace(/(?:\r?\n)*$/,""):f(Q):Q}E.exports={printSubtree:c}}}),_v=Fe({"src/main/ast-to-doc.js"(m,E){Re();var f=Fv(),{builders:{hardline:b,addAlignmentToDoc:D},utils:{propagateBreaks:c}}=wn(),{printComments:d}=Ir(),h=Nv();function v(_,L){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,{printer:x}=L;x.preprocess&&(_=x.preprocess(_,L));let j=new Map,Q=new f(_),ee=$();return C>0&&(ee=D([b,ee],C,L.tabWidth)),c(ee),ee;function $(G,ne){return G===void 0||G===Q?X(ne):Array.isArray(G)?Q.call(()=>X(ne),...G):Q.call(()=>X(ne),G)}function X(G){let ne=Q.getValue(),Z=ne&&typeof ne=="object"&&G===void 0;if(Z&&j.has(ne))return j.get(ne);let De=P(Q,L,$,G);return Z&&j.set(ne,De),De}}function S(_,L){let{originalText:C,[Symbol.for("comments")]:x,locStart:j,locEnd:Q}=L,ee=j(_),$=Q(_),X=new Set;for(let G of x)j(G)>=ee&&Q(G)<=$&&(G.printed=!0,X.add(G));return{doc:C.slice(ee,$),printedComments:X}}function P(_,L,C,x){let j=_.getValue(),{printer:Q}=L,ee,$;if(Q.hasPrettierIgnore&&Q.hasPrettierIgnore(_))({doc:ee,printedComments:$}=S(j,L));else{if(j)try{ee=h.printSubtree(_,C,L,v)}catch(X){if(globalThis.PRETTIER_DEBUG)throw X}ee||(ee=Q.print(_,L,C,x))}return(!Q.willPrintOwnComments||!Q.willPrintOwnComments(_,L))&&(ee=d(_,ee,L,$)),ee}E.exports=v}}),Tv=Fe({"src/main/range-util.js"(m,E){Re();var f=Mo(),b=Ir(),D=x=>{let{parser:j}=x;return j==="json"||j==="json5"||j==="json-stringify"};function c(x,j){let Q=[x.node,...x.parentNodes],ee=new Set([j.node,...j.parentNodes]);return Q.find($=>P.has($.type)&&ee.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:ee,locEnd:$}=Q,X=x.node,G=j.node;if(X===G)return{startNode:X,endNode:G};let ne=ee(x.node);for(let De of d(j.parentNodes))if(ee(De)>=ne)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,ee){let $=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],X=arguments.length>5?arguments[5]:void 0,{locStart:G,locEnd:ne}=Q,Z=G(x),De=ne(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,ee,[x,...$],X);if(J)return J}if(!ee||ee(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 P=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 L(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 P.has(j.type);case"graphql":return _.has(j.kind);case"vue":return j.tag!=="root"}return!1}function C(x,j,Q){let{rangeStart:ee,rangeEnd:$,locStart:X,locEnd:G}=j;f.ok($>ee);let ne=x.slice(ee,$).search(/\S/),Z=ne===-1;if(!Z)for(ee+=ne;$>ee&&!/\S/.test(x[$-1]);--$);let De=v(Q,ee,j,(R,y)=>L(j,R,y),[],"rangeStart"),F=Z?De:v(Q,$,j,R=>L(j,R),[],"rangeEnd");if(!De||!F)return{rangeStart:0,rangeEnd:0};let J,w;if(D(j)){let R=c(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:C,findNodeAtOffset:v}}}),kv=Fe({"src/main/core.js"(m,E){Re();var{diffArrays:f}=Ms(),{printer:{printDocToString:b},debug:{printDocToDebug:D}}=wn(),{getAlignmentSize:c}=ye(),{guessEndOfLine:d,convertEndOfLineToChars:h,countEndOfLineChars:v,normalizeEndOfLine:S}=rs(),P=p0().normalize,_=wv(),L=Ir(),C=$f(),x=_v(),j=Tv(),Q="\uFEFF",ee=Symbol("cursor");function $(w,R,y){let T=R.comments;return T&&(delete R.comments,L.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}=C.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(L.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,Ne;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,Ne=z.cursorNodeText):(ie=0,ce=M,ge=R.cursorOffset,fe=0,Ne=z.formatted),ce===Ne)return{formatted:z.formatted,cursorOffset:fe+ge,comments:q};let se=[...ce];se.splice(ge,0,ee);let Ue=[...Ne],me=f(se,Ue),ue=fe;for(let qe of me)if(qe.removed){if(qe.value.includes(ee))break}else ue+=qe.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}=C.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=c(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:Ne}=R;Ne>q?Ne+=fe.length-U.length:ge.cursorOffset>=0&&(Ne=ge.cursorOffset+M);let se=T.slice(0,M)+fe+T.slice(q);if(R.endOfLine!=="lf"){let Ue=h(R.endOfLine);Ne>=0&&Ue===`\r
185
- `&&(Ne+=v(se.slice(0,Ne),`
186
- `)),se=se.replace(/\n/g,Ue)}return{formatted:se,cursorOffset:Ne,comments:ge.comments}}function ne(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=ne(w,y,-1),T=ne(w,T,0),M=ne(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=C.resolveParser(R);return!y.hasPragma||y.hasPragma(w)}function J(w,R){let{hasBOM:y,text:T,options:M}=De(w,P(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,P(R)),q=C.parse(T,M);return y&&(q.ast=_(q.ast,M)),q},formatAST(w,R){R=P(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=P(R);let{ast:y,text:T}=C.parse(w,R);return $(T,y,R),x(y,R)},printDocToString(w,R){return b(w,P(R))}}}}),Lv=Fe({"src/common/util-shared.js"(m,E){Re();var{getMaxContinuousCount:f,getStringWidth:b,getAlignmentSize:D,getIndentSize:c,skip:d,skipWhitespace:h,skipSpaces:v,skipNewline:S,skipToLineEnd:P,skipEverythingButNewLine:_,skipInlineComment:L,skipTrailingComment:C,hasNewline:x,hasNewlineInRange:j,hasSpaces:Q,isNextLineEmpty:ee,isNextLineEmptyAfterIndex:$,isPreviousLineEmpty:X,getNextNonSpaceNonCommentCharacterIndex:G,makeString:ne,addLeadingComment:Z,addDanglingComment:De,addTrailingComment:F}=ye();E.exports={getMaxContinuousCount:f,getStringWidth:b,getAlignmentSize:D,getIndentSize:c,skip:d,skipWhitespace:h,skipSpaces:v,skipNewline:S,skipToLineEnd:P,skipEverythingButNewLine:_,skipInlineComment:L,skipTrailingComment:C,hasNewline:x,hasNewlineInRange:j,hasSpaces:Q,isNextLineEmpty:ee,isNextLineEmptyAfterIndex:$,isPreviousLineEmpty:X,getNextNonSpaceNonCommentCharacterIndex:G,makeString:ne,addLeadingComment:Z,addDanglingComment:De,addTrailingComment:F}}}),na=Fe({"src/utils/create-language.js"(m,E){Re(),E.exports=function(f,b){let{languageId:D}=f,c=St(f,it);return Object.assign(Object.assign({linguistLanguageId:D},c),b(f))}}}),Pv=Fe({"node_modules/esutils/lib/ast.js"(m,E){Re(),function(){function f(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 c(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:f,isStatement:D,isIterationStatement:b,isSourceElement:c,isProblematicIfStatement:h,trailingStatement:d}}()}}),d0=Fe({"node_modules/esutils/lib/code.js"(m,E){Re(),function(){var f,b,D,c,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]/},f={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 P($){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 L($){return $===10||$===13||$===8232||$===8233}function C($){if($<=65535)return String.fromCharCode($);var X=String.fromCharCode(Math.floor(($-65536)/1024)+55296),G=String.fromCharCode(($-65536)%1024+56320);return X+G}for(c=new Array(128),h=0;h<128;++h)c[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?c[$]:b.NonAsciiIdentifierStart.test(C($))}function j($){return $<128?d[$]:b.NonAsciiIdentifierPart.test(C($))}function Q($){return $<128?c[$]:f.NonAsciiIdentifierStart.test(C($))}function ee($){return $<128?d[$]:f.NonAsciiIdentifierPart.test(C($))}E.exports={isDecimalDigit:v,isHexDigit:S,isOctalDigit:P,isWhiteSpace:_,isLineTerminator:L,isIdentifierStartES5:x,isIdentifierPartES5:j,isIdentifierStartES6:Q,isIdentifierPartES6:ee}}()}}),Bv=Fe({"node_modules/esutils/lib/keyword.js"(m,E){Re(),function(){var f=d0();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:c(x,j)}function c(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"||c(x,j)}function v(x){return x==="eval"||x==="arguments"}function S(x){var j,Q,ee;if(x.length===0||(ee=x.charCodeAt(0),!f.isIdentifierStartES5(ee)))return!1;for(j=1,Q=x.length;j<Q;++j)if(ee=x.charCodeAt(j),!f.isIdentifierPartES5(ee))return!1;return!0}function P(x,j){return(x-55296)*1024+(j-56320)+65536}function _(x){var j,Q,ee,$,X;if(x.length===0)return!1;for(X=f.isIdentifierStartES6,j=0,Q=x.length;j<Q;++j){if(ee=x.charCodeAt(j),55296<=ee&&ee<=56319){if(++j,j>=Q||($=x.charCodeAt(j),!(56320<=$&&$<=57343)))return!1;ee=P(ee,$)}if(!X(ee))return!1;X=f.isIdentifierPartES6}return!0}function L(x,j){return S(x)&&!d(x,j)}function C(x,j){return _(x)&&!h(x,j)}E.exports={isKeywordES5:D,isKeywordES6:c,isReservedWordES5:d,isReservedWordES6:h,isRestrictedWord:v,isIdentifierNameES5:S,isIdentifierNameES6:_,isIdentifierES5:L,isIdentifierES6:C}}()}}),Mv=Fe({"node_modules/esutils/lib/utils.js"(m){Re(),function(){m.ast=Pv(),m.code=d0(),m.keyword=Bv()}()}}),ra=Fe({"src/language-js/utils/is-block-comment.js"(m,E){Re();var f=new Set(["Block","CommentBlock","MultiLine"]),b=D=>f.has(D==null?void 0:D.type);E.exports=b}}),Iv=Fe({"src/language-js/utils/is-node-matches.js"(m,E){Re();function f(D,c){let d=c.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,c){return c.some(d=>f(D,d))}E.exports=b}}),pr=Fe({"src/language-js/utils/index.js"(m,E){Re();var f=Mv().keyword.isIdentifierNameES5,{getLast:b,hasNewline:D,skipWhitespace:c,isNonEmptyArray:d,isNextLineEmptyAfterIndex:h,getStringWidth:v}=ye(),{locStart:S,locEnd:P,hasSameLocStart:_}=si(),L=ra(),C=Iv(),x="(?:(?=.)\\s)",j=new RegExp(`^${x}*:`),Q=new RegExp(`^${x}*::`);function ee(ae){var vt,gn;return((vt=ae.extra)===null||vt===void 0?void 0:vt.parenthesized)&&L((gn=ae.trailingComments)===null||gn===void 0?void 0:gn[0])&&j.test(ae.trailingComments[0].value)}function $(ae){let vt=ae==null?void 0:ae[0];return L(vt)&&Q.test(vt.value)}function X(ae,vt){if(!ae||typeof ae!="object")return!1;if(Array.isArray(ae))return ae.some(Hn=>X(Hn,vt));let gn=vt(ae);return typeof gn=="boolean"?gn:Object.values(ae).some(Hn=>X(Hn,vt))}function G(ae){return ae.type==="AssignmentExpression"||ae.type==="BinaryExpression"||ae.type==="LogicalExpression"||ae.type==="NGPipeExpression"||ae.type==="ConditionalExpression"||ft(ae)||pt(ae)||ae.type==="SequenceExpression"||ae.type==="TaggedTemplateExpression"||ae.type==="BindExpression"||ae.type==="UpdateExpression"&&!ae.prefix||Fi(ae)||ae.type==="TSNonNullExpression"}function ne(ae){var vt,gn,Hn,zn,Ei,wr;return ae.expressions?ae.expressions[0]:(vt=(gn=(Hn=(zn=(Ei=(wr=ae.left)!==null&&wr!==void 0?wr:ae.test)!==null&&Ei!==void 0?Ei:ae.callee)!==null&&zn!==void 0?zn:ae.object)!==null&&Hn!==void 0?Hn:ae.tag)!==null&&gn!==void 0?gn:ae.argument)!==null&&vt!==void 0?vt:ae.expression}function Z(ae,vt){if(vt.expressions)return["expressions",0];if(vt.left)return["left"];if(vt.test)return["test"];if(vt.object)return["object"];if(vt.callee)return["callee"];if(vt.tag)return["tag"];if(vt.argument)return["argument"];if(vt.expression)return["expression"];throw new Error("Unexpected node has no left side.")}function De(ae){return ae=new Set(ae),vt=>ae.has(vt==null?void 0:vt.type)}var F=De(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose"]),J=De(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function w(ae){let vt=ae.getParentNode();return ae.getName()==="declaration"&&J(vt)?vt:null}var R=De(["BooleanLiteral","DirectiveLiteral","Literal","NullLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","RegExpLiteral","StringLiteral","TemplateLiteral","TSTypeLiteral","JSXText"]);function y(ae){return ae.type==="NumericLiteral"||ae.type==="Literal"&&typeof ae.value=="number"}function T(ae){return ae.type==="UnaryExpression"&&(ae.operator==="+"||ae.operator==="-")&&y(ae.argument)}function M(ae){return ae.type==="StringLiteral"||ae.type==="Literal"&&typeof ae.value=="string"}var q=De(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),U=De(["FunctionExpression","ArrowFunctionExpression"]);function z(ae){return ae.type==="FunctionExpression"||ae.type==="ArrowFunctionExpression"&&ae.body.type==="BlockStatement"}function ie(ae){return ft(ae)&&ae.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(ae.callee.name)}var ce=De(["JSXElement","JSXFragment"]);function ge(ae,vt){if(ae.parentParser!=="markdown"&&ae.parentParser!=="mdx")return!1;let gn=vt.getNode();if(!gn.expression||!ce(gn.expression))return!1;let Hn=vt.getParentNode();return Hn.type==="Program"&&Hn.body.length===1}function fe(ae){return ae.kind==="get"||ae.kind==="set"}function Ne(ae){return fe(ae)||_(ae,ae.value)}function se(ae){return(ae.type==="ObjectTypeProperty"||ae.type==="ObjectTypeInternalSlot")&&ae.value.type==="FunctionTypeAnnotation"&&!ae.static&&!Ne(ae)}function Ue(ae){return(ae.type==="TypeAnnotation"||ae.type==="TSTypeAnnotation")&&ae.typeAnnotation.type==="FunctionTypeAnnotation"&&!ae.static&&!_(ae,ae.typeAnnotation)}var me=De(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function ue(ae){return pt(ae)||ae.type==="BindExpression"&&!!ae.object}var qe=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(ae){return ae?!!((ae.type==="GenericTypeAnnotation"||ae.type==="TSTypeReference")&&!ae.typeParameters||qe.has(ae.type)):!1}function Je(ae){let vt=/^(?:before|after)(?:Each|All)$/;return ae.callee.type==="Identifier"&&vt.test(ae.callee.name)&&ae.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(ae){return C(ae,ht)}function Ie(ae,vt){if(ae.type!=="CallExpression")return!1;if(ae.arguments.length===1){if(ie(ae)&&vt&&Ie(vt))return U(ae.arguments[0]);if(Je(ae))return ie(ae.arguments[0])}else if((ae.arguments.length===2||ae.arguments.length===3)&&(ae.arguments[0].type==="TemplateLiteral"||M(ae.arguments[0]))&&be(ae.callee))return ae.arguments[2]&&!y(ae.arguments[2])?!1:(ae.arguments.length===2?U(ae.arguments[1]):z(ae.arguments[1])&&Mt(ae.arguments[1]).length<=1)||ie(ae.arguments[1]);return!1}var ft=De(["CallExpression","OptionalCallExpression"]),pt=De(["MemberExpression","OptionalMemberExpression"]);function Jt(ae){let vt="expressions";ae.type==="TSTemplateLiteralType"&&(vt="types");let gn=ae[vt];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(ae,vt){return ae==="+"||ae==="-"?ae+vt:vt}function Se(ae,vt){let gn=S(vt),Hn=c(ae,P(vt));return Hn!==!1&&ae.slice(gn,gn+2)==="/*"&&ae.slice(Hn,Hn+2)==="*/"}function Ye(ae,vt){return ce(vt)?Bn(vt):Sn(vt,an.Leading,gn=>D(ae,P(gn)))}function Qe(ae,vt){return vt.parser!=="json"&&M(ae.key)&&ot(ae.key).slice(1,-1)===ae.key.value&&(f(ae.key.value)&&!(vt.parser==="babel-ts"&&ae.type==="ClassProperty"||vt.parser==="typescript"&&ae.type==="PropertyDefinition")||bt(ae.key.value)&&String(Number(ae.key.value))===ae.key.value&&(vt.parser==="babel"||vt.parser==="acorn"||vt.parser==="espree"||vt.parser==="meriyah"||vt.parser==="__babel_estree"))}function bt(ae){return/^(?:\d+|\d+\.\d+)$/.test(ae)}function Nt(ae,vt){let gn=/^[fx]?(?:describe|it|test)$/;return vt.type==="TaggedTemplateExpression"&&vt.quasi===ae&&vt.tag.type==="MemberExpression"&&vt.tag.property.type==="Identifier"&&vt.tag.property.name==="each"&&(vt.tag.object.type==="Identifier"&&gn.test(vt.tag.object.name)||vt.tag.object.type==="MemberExpression"&&vt.tag.object.property.type==="Identifier"&&(vt.tag.object.property.name==="only"||vt.tag.object.property.name==="skip")&&vt.tag.object.object.type==="Identifier"&&gn.test(vt.tag.object.object.name))}function Bt(ae){return ae.quasis.some(vt=>vt.value.raw.includes(`
188
- `))}function cn(ae,vt){return(ae.type==="TemplateLiteral"&&Bt(ae)||ae.type==="TaggedTemplateExpression"&&Bt(ae.quasi))&&!D(vt,S(ae),{backwards:!0})}function In(ae){if(!Sn(ae))return!1;let vt=b(lt(ae,an.Dangling));return vt&&!L(vt)}function Tn(ae){if(ae.length<=1)return!1;let vt=0;for(let gn of ae)if(U(gn)){if(vt+=1,vt>1)return!0}else if(ft(gn)){for(let Hn of gn.arguments)if(U(Hn))return!0}return!1}function ln(ae){let vt=ae.getValue(),gn=ae.getParentNode();return ft(vt)&&ft(gn)&&gn.callee===vt&&vt.arguments.length>gn.arguments.length&&gn.arguments.length>0}function Dn(ae,vt){if(vt>=2)return!1;let gn=wr=>Dn(wr,vt+1),Hn=ae.type==="Literal"&&"regex"in ae&&ae.regex.pattern||ae.type==="RegExpLiteral"&&ae.pattern;if(Hn&&v(Hn)>5)return!1;if(ae.type==="Literal"||ae.type==="BigIntLiteral"||ae.type==="DecimalLiteral"||ae.type==="BooleanLiteral"||ae.type==="NullLiteral"||ae.type==="NumericLiteral"||ae.type==="RegExpLiteral"||ae.type==="StringLiteral"||ae.type==="Identifier"||ae.type==="ThisExpression"||ae.type==="Super"||ae.type==="PrivateName"||ae.type==="PrivateIdentifier"||ae.type==="ArgumentPlaceholder"||ae.type==="Import")return!0;if(ae.type==="TemplateLiteral")return ae.quasis.every(wr=>!wr.value.raw.includes(`
189
- `))&&ae.expressions.every(gn);if(ae.type==="ObjectExpression")return ae.properties.every(wr=>!wr.computed&&(wr.shorthand||wr.value&&gn(wr.value)));if(ae.type==="ArrayExpression")return ae.elements.every(wr=>wr===null||gn(wr));if(Xr(ae))return(ae.type==="ImportExpression"||Dn(ae.callee,vt))&&br(ae).every(gn);if(pt(ae))return Dn(ae.object,vt)&&Dn(ae.property,vt);let zn={"!":!0,"-":!0,"+":!0,"~":!0};if(ae.type==="UnaryExpression"&&zn[ae.operator])return Dn(ae.argument,vt);let Ei={"++":!0,"--":!0};return ae.type==="UpdateExpression"&&Ei[ae.operator]?Dn(ae.argument,vt):ae.type==="TSNonNullExpression"?Dn(ae.expression,vt):!1}function ot(ae){var vt,gn;return(vt=(gn=ae.extra)===null||gn===void 0?void 0:gn.raw)!==null&&vt!==void 0?vt:ae.raw}function Ee(ae){return ae}function dt(ae){return ae.filepath&&/\.tsx$/i.test(ae.filepath)}function Oe(ae){let vt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"es5";return ae.trailingComma==="es5"&&vt==="es5"||ae.trailingComma==="all"&&(vt==="all"||vt==="es5")}function ct(ae,vt){switch(ae.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ct(ae.left,vt);case"MemberExpression":case"OptionalMemberExpression":return ct(ae.object,vt);case"TaggedTemplateExpression":return ae.tag.type==="FunctionExpression"?!1:ct(ae.tag,vt);case"CallExpression":case"OptionalCallExpression":return ae.callee.type==="FunctionExpression"?!1:ct(ae.callee,vt);case"ConditionalExpression":return ct(ae.test,vt);case"UpdateExpression":return!ae.prefix&&ct(ae.argument,vt);case"BindExpression":return ae.object&&ct(ae.object,vt);case"SequenceExpression":return ct(ae.expressions[0],vt);case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return ct(ae.expression,vt);default:return vt(ae)}}var Zt={"==":!0,"!=":!0,"===":!0,"!==":!0},Ut={"*":!0,"/":!0,"%":!0},gt={">>":!0,">>>":!0,"<<":!0};function V(ae,vt){return!(rt(vt)!==rt(ae)||ae==="**"||Zt[ae]&&Zt[vt]||vt==="%"&&Ut[ae]||ae==="%"&&Ut[vt]||vt!==ae&&Ut[vt]&&Ut[ae]||gt[ae]&&gt[vt])}var _e=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((ae,vt)=>ae.map(gn=>[gn,vt])));function rt(ae){return _e.get(ae)}function kt(ae){return!!gt[ae]||ae==="|"||ae==="^"||ae==="&"}function $t(ae){var vt;if(ae.rest)return!0;let gn=Mt(ae);return((vt=b(gn))===null||vt===void 0?void 0:vt.type)==="RestElement"}var un=new WeakMap;function Mt(ae){if(un.has(ae))return un.get(ae);let vt=[];return ae.this&&vt.push(ae.this),Array.isArray(ae.parameters)?vt.push(...ae.parameters):Array.isArray(ae.params)&&vt.push(...ae.params),ae.rest&&vt.push(ae.rest),un.set(ae,vt),vt}function Cr(ae,vt){let gn=ae.getValue(),Hn=0,zn=Ei=>vt(Ei,Hn++);gn.this&&ae.call(zn,"this"),Array.isArray(gn.parameters)?ae.each(zn,"parameters"):Array.isArray(gn.params)&&ae.each(zn,"params"),gn.rest&&ae.call(zn,"rest")}var sn=new WeakMap;function br(ae){if(sn.has(ae))return sn.get(ae);let vt=ae.arguments;return ae.type==="ImportExpression"&&(vt=[ae.source],ae.attributes&&vt.push(ae.attributes)),sn.set(ae,vt),vt}function nn(ae,vt){let gn=ae.getValue();gn.type==="ImportExpression"?(ae.call(Hn=>vt(Hn,0),"source"),gn.attributes&&ae.call(Hn=>vt(Hn,1),"attributes")):ae.each(vt,"arguments")}function An(ae){return ae.value.trim()==="prettier-ignore"&&!ae.unignore}function Bn(ae){return ae&&(ae.prettierIgnore||Sn(ae,an.PrettierIgnore))}function ar(ae){let vt=ae.getValue();return Bn(vt)}var an={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},_n=(ae,vt)=>{if(typeof ae=="function"&&(vt=ae,ae=0),ae||vt)return(gn,Hn,zn)=>!(ae&an.Leading&&!gn.leading||ae&an.Trailing&&!gn.trailing||ae&an.Dangling&&(gn.leading||gn.trailing)||ae&an.Block&&!L(gn)||ae&an.Line&&!F(gn)||ae&an.First&&Hn!==0||ae&an.Last&&Hn!==zn.length-1||ae&an.PrettierIgnore&&!An(gn)||vt&&!vt(gn))};function Sn(ae,vt,gn){if(!d(ae==null?void 0:ae.comments))return!1;let Hn=_n(vt,gn);return Hn?ae.comments.some(Hn):!0}function lt(ae,vt,gn){if(!Array.isArray(ae==null?void 0:ae.comments))return[];let Hn=_n(vt,gn);return Hn?ae.comments.filter(Hn):ae.comments}var wi=(ae,vt)=>{let{originalText:gn}=vt;return h(gn,P(ae))};function Xr(ae){return ft(ae)||ae.type==="NewExpression"||ae.type==="ImportExpression"}function qn(ae){return ae&&(ae.type==="ObjectProperty"||ae.type==="Property"&&!ae.method&&ae.kind==="init")}function Gn(ae){return!!ae.__isUsingHackPipeline}var fr=Symbol("ifWithoutBlockAndSameLineComment");function Fi(ae){return ae.type==="TSAsExpression"||ae.type==="TSSatisfiesExpression"}E.exports={getFunctionParameters:Mt,iterateFunctionParametersPath:Cr,getCallArguments:br,iterateCallArgumentsPath:nn,hasRestParameter:$t,getLeftSide:ne,getLeftSidePathName:Z,getParentExportDeclaration:w,getTypeScriptMappedTypeModifier:$e,hasFlowAnnotationComment:$,hasFlowShorthandAnnotationComment:ee,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:Se,isFunctionCompositionArgs:Tn,isFunctionNotation:Ne,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:bt,isSimpleTemplateLiteral:Jt,isStringLiteral:M,isStringPropSafeToUnquote:Qe,isTemplateOnItsOwnLine:cn,isTestCall:Ie,isTheOnlyJsxElementInMarkdown:ge,isTSXFile:dt,isTypeAnnotationAFunction:Ue,isNextLineEmpty:wi,needsHardlineAfterDanglingComment:In,rawText:ot,shouldPrintComma:Oe,isBitwiseOperator:kt,shouldFlatten:V,startsWithNoLookaheadToken:ct,getPrecedence:rt,hasComment:Sn,getComments:lt,CommentCheckFlags:an,markerForIfWithoutBlockAndSameLineComment:fr,isTSTypeExpression:Fi}}}),Ya=Fe({"src/language-js/print/template-literal.js"(m,E){Re();var f=$r(),{getStringWidth:b,getIndentSize:D}=ye(),{builders:{join:c,hardline:d,softline:h,group:v,indent:S,align:P,lineSuffixBoundary:_,addAlignmentToDoc:L},printer:{printDocToString:C},utils:{mapDoc:x}}=wn(),{isBinaryish:j,isJestEachTemplateLiteral:Q,isSimpleTemplateLiteral:ee,hasComment:$,isMemberExpression:X,isTSTypeExpression:G}=pr();function ne(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=ee(M);return ie&&(z=z.map(ce=>C(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,Ne=ce.getValue(),se=D(Ne.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&&Ne.value.raw.endsWith(`
190
- `)?P(Number.NEGATIVE_INFINITY,Ue):L(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=>"${"+C(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=f(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),Ne=[{cells:q},...ce.filter(se=>se.cells.length>0)];for(let{cells:se}of Ne.filter(Ue=>!Ue.hasLineBreak))for(let[Ue,me]of se.entries())fe[Ue]=Math.max(fe[Ue],b(me));return z.push(_,"`",S([d,c(d,Ne.map(se=>c(" | ",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:ne,printTemplateExpressions:F,escapeTemplateCharacters:J,uncookTemplateElementValue:w}}}),Ov=Fe({"src/language-js/embed/markdown.js"(m,E){Re();var{builders:{indent:f,softline:b,literalline:D,dedentToRoot:c}}=wn(),{escapeTemplateCharacters:d}=Ya();function h(S,P,_){let L=S.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(Q,ee)=>"\\".repeat(ee.length/2)+"`"),C=v(L),x=C!=="";x&&(L=L.replace(new RegExp(`^${C}`,"gm"),""));let j=d(_(L,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",x?f([b,j]):[D,c(j)],b,"`"]}function v(S){let P=S.match(/^([^\S\n]*)\S/m);return P===null?"":P[1]}E.exports=h}}),jv=Fe({"src/language-js/embed/css.js"(m,E){Re();var{isNonEmptyArray:f}=ye(),{builders:{indent:b,hardline:D,softline:c},utils:{mapDoc:d,replaceEndOfLine:h,cleanDoc:v}}=wn(),{printTemplateExpressions:S}=Ya();function P(C,x,j){let Q=C.getValue(),ee=Q.quasis.map(Z=>Z.value.raw),$=0,X=ee.reduce((Z,De,F)=>F===0?De:Z+"@prettier-placeholder-"+$+++"-id"+De,""),G=j(X,{parser:"scss"},{stripTrailingHardline:!0}),ne=S(C,x);return _(G,Q,ne)}function _(C,x,j){if(x.quasis.length===1&&!x.quasis[0].value.raw.trim())return"``";let Q=L(C,j);if(!Q)throw new Error("Couldn't insert all the expressions");return["`",b([D,Q]),c,"`"]}function L(C,x){if(!f(x))return C;let j=0,Q=d(v(C),ee=>typeof ee!="string"||!ee.includes("@prettier-placeholder")?ee:ee.split(/@prettier-placeholder-(\d+)-id/).map(($,X)=>X%2===0?h($):(j++,x[$])));return x.length===j?Q:null}E.exports=P}}),Rv=Fe({"src/language-js/embed/graphql.js"(m,E){Re();var{builders:{indent:f,join:b,hardline:D}}=wn(),{escapeTemplateCharacters:c,printTemplateExpressions:d}=Ya();function h(S,P,_){let L=S.getValue(),C=L.quasis.length;if(C===1&&L.quasis[0].value.raw.trim()==="")return"``";let x=d(S,P),j=[];for(let Q=0;Q<C;Q++){let ee=L.quasis[Q],$=Q===0,X=Q===C-1,G=ee.value.cooked,ne=G.split(`
193
- `),Z=ne.length,De=x[Q],F=Z>2&&ne[0].trim()===""&&ne[1].trim()==="",J=Z>2&&ne[Z-1].trim()===""&&ne[Z-2].trim()==="",w=ne.every(y=>/^\s*(?:#[^\n\r]*)?$/.test(y));if(!X&&/#[^\n\r]*$/.test(ne[Z-1]))return null;let R=null;w?R=v(ne):R=_(G,{parser:"graphql"},{stripTrailingHardline:!0}),R?(R=c(R,!1),!$&&F&&j.push(""),j.push(R),!X&&J&&j.push("")):!$&&!X&&F&&j.push(""),De&&j.push(De)}return["`",f([D,b(D,j)]),D,"`"]}function v(S){let P=[],_=!1,L=S.map(C=>C.trim());for(let[C,x]of L.entries())x!==""&&(L[C-1]===""&&_?P.push([D,x]):P.push(x),_=!0);return P.length===0?null:b(D,P)}E.exports=h}}),$v=Fe({"src/language-js/embed/html.js"(m,E){Re();var{builders:{indent:f,line:b,hardline:D,group:c},utils:{mapDoc:d}}=wn(),{printTemplateExpressions:h,uncookTemplateElementValue:v}=Ya(),S=0;function P(_,L,C,x,j){let{parser:Q}=j,ee=_.getValue(),$=S;S=S+1>>>0;let X=T=>`PRETTIER_HTML_PLACEHOLDER_${T}_${$}_IN_JS`,G=ee.quasis.map((T,M,q)=>M===q.length-1?T.value.cooked:T.value.cooked+X(M)).join(""),ne=h(_,L);if(ne.length===0&&G.trim().length===0)return"``";let Z=new RegExp(X("(\\d+)"),"g"),De=0,F=C(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(ne[ie])}return M}),w=/^\s/.test(G)?" ":"",R=/\s$/.test(G)?" ":"",y=x.htmlWhitespaceSensitivity==="ignore"?D:w&&R?b:null;return c(y?["`",f([y,c(J)]),y,"`"]:["`",w,De>1?f(c(J)):c(J),R,"`"])}E.exports=P}}),Vv=Fe({"src/language-js/embed.js"(m,E){Re();var{hasComment:f,CommentCheckFlags:b,isObjectProperty:D}=pr(),c=Ov(),d=jv(),h=Rv(),v=$v();function S(F){if(L(F)||Q(F)||ee(F)||C(F))return"css";if(G(F))return"graphql";if(Z(F))return"html";if(x(F))return"angular";if(_(F))return"markdown"}function P(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 c(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 L(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 C(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 ee(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 ne(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 ne(F,J){return f(F,b.Block|b.Leading,w=>{let{value:R}=w;return R===` ${J} `})}function Z(F){return ne(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=P}}),qv=Fe({"src/language-js/clean.js"(m,E){Re();var f=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 c(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:L}of h.children)_==="JSXExpressionContainer"&&L.type==="TemplateLiteral"&&D(L);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[L,C]of h.expression.arguments[0].properties.entries())switch(_[L].key.name){case"styles":C.value.type==="ArrayExpression"&&D(C.value.elements[0]);break;case"template":C.value.type==="TemplateLiteral"&&D(C.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 P;(!((P=d.leadingComments)===null||P===void 0)&&P.some(_=>f(_)&&["GraphQL","HTML"].some(L=>_.value===` ${L} `))||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]}c.ignoredProperties=b,E.exports=c}}),h0={};xn(h0,{EOL:()=>Uf,arch:()=>Uv,cpus:()=>E0,default:()=>w0,endianness:()=>m0,freemem:()=>b0,getNetworkInterfaces:()=>x0,hostname:()=>g0,loadavg:()=>y0,networkInterfaces:()=>S0,platform:()=>Wv,release:()=>C0,tmpDir:()=>Vf,tmpdir:()=>qf,totalmem:()=>v0,type:()=>A0,uptime:()=>D0});function m0(){if(typeof cl>"u"){var m=new ArrayBuffer(2),E=new Uint8Array(m),f=new Uint16Array(m);if(E[0]=1,E[1]=2,f[0]===258)cl="BE";else if(f[0]===513)cl="LE";else throw new Error("unable to figure out endianess")}return cl}function g0(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function y0(){return[]}function D0(){return 0}function b0(){return Number.MAX_VALUE}function v0(){return Number.MAX_VALUE}function E0(){return[]}function A0(){return"Browser"}function C0(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function S0(){}function x0(){}function Uv(){return"javascript"}function Wv(){return"browser"}function Vf(){return"/tmp"}var cl,qf,Uf,w0,Gv=dn({"node-modules-polyfills:os"(){Re(),qf=Vf,Uf=`
194
- `,w0={EOL:Uf,tmpdir:qf,tmpDir:Vf,networkInterfaces:S0,getNetworkInterfaces:x0,release:C0,type:A0,cpus:E0,totalmem:v0,freemem:b0,uptime:D0,loadavg:y0,hostname:g0,endianness:m0}}}),Jv=Fe({"node-modules-polyfills-commonjs:os"(m,E){Re();var f=(Gv(),Qn(h0));if(f&&f.default){E.exports=f.default;for(let b in f)E.exports[b]=f[b]}else f&&(E.exports=f)}}),Yv=Fe({"node_modules/detect-newline/index.js"(m,E){Re();var f=b=>{if(typeof b!="string")throw new TypeError("Expected a string");let D=b.match(/(?:\r?\n)/g)||[];if(D.length===0)return;let c=D.filter(h=>h===`\r
195
- `).length,d=D.length-c;return c>d?`\r
196
- `:`
197
- `};E.exports=f,E.exports.graceful=b=>typeof b=="string"&&f(b)||`
198
- `}}),Hv=Fe({"node_modules/jest-docblock/build/index.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0}),m.extract=C,m.parse=j,m.parseWithComments=Q,m.print=ee,m.strip=x;function E(){let X=Jv();return E=function(){return X},X}function f(){let X=b(Yv());return f=function(){return X},X}function b(X){return X&&X.__esModule?X:{default:X}}var D=/\*\/$/,c=/^\/\*\*?/,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,P=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,_=/(\r?\n|^) *\* ?/g,L=[];function C(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,f().default)(X)||E().EOL;X=X.replace(c,"").replace(D,"").replace(_,"$1");let ne="";for(;ne!==X;)ne=X,X=X.replace(S,`${G}$1 $2${G}`);X=X.replace(v,"").trimRight();let Z=Object.create(null),De=X.replace(P,"").replace(v,"").trimRight(),F;for(;F=P.exec(X);){let J=F[2].replace(h,"");typeof Z[F[1]]=="string"||Array.isArray(Z[F[1]])?Z[F[1]]=L.concat(Z[F[1]],J):Z[F[1]]=J}return{comments:De,pragmas:Z}}function ee(X){let{comments:G="",pragmas:ne={}}=X,Z=(0,f().default)(G)||E().EOL,De="/**",F=" *",J=" */",w=Object.keys(ne),R=w.map(T=>$(T,ne[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(ne[w[0]])){let T=ne[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 L.concat(G).map(ne=>`@${X} ${ne}`.trim())}}}),zv=Fe({"src/language-js/utils/get-shebang.js"(m,E){Re();function f(b){if(!b.startsWith("#!"))return"";let D=b.indexOf(`
199
- `);return D===-1?b:b.slice(0,D)}E.exports=f}}),F0=Fe({"src/language-js/pragma.js"(m,E){Re();var{parseWithComments:f,strip:b,extract:D,print:c}=Hv(),{normalizeEndOfLine:d}=rs(),h=zv();function v(_){let L=h(_);L&&(_=_.slice(L.length+1));let C=D(_),{pragmas:x,comments:j}=f(C);return{shebang:L,text:_,pragmas:x,comments:j}}function S(_){let L=Object.keys(v(_).pragmas);return L.includes("prettier")||L.includes("format")}function P(_){let{shebang:L,text:C,pragmas:x,comments:j}=v(_),Q=b(C),ee=c({pragmas:Object.assign({format:""},x),comments:j.trimStart()});return(L?`${L}
200
- `:"")+d(ee)+(Q.startsWith(`
201
- `)?`
202
- `:`
203
-
204
- `)+Q}E.exports={hasPragma:S,insertPragma:P}}}),Qv=Fe({"src/language-js/utils/is-type-cast-comment.js"(m,E){Re();var f=ra();function b(D){return f(D)&&D.value[0]==="*"&&/@(?:type|satisfies)\b/.test(D.value)}E.exports=b}}),N0=Fe({"src/language-js/comments.js"(m,E){Re();var{getLast:f,hasNewline:b,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:D,getNextNonSpaceNonCommentCharacter:c,hasNewlineInRange:d,addLeadingComment:h,addTrailingComment:v,addDanglingComment:S,getNextNonSpaceNonCommentCharacterIndex:P,isNonEmptyArray:_}=ye(),{getFunctionParameters:L,isPrettierIgnoreComment:C,isJsxNode:x,hasFlowShorthandAnnotationComment:j,hasFlowAnnotationComment:Q,hasIgnoreComment:ee,isCallLikeExpression:$,getCallArguments:X,isCallExpression:G,isMemberExpression:ne,isObjectProperty:Z,isLineComment:De,getComments:F,CommentCheckFlags:J,markerForIfWithoutBlockAndSameLineComment:w}=pr(),{locStart:R,locEnd:y}=si(),T=ra(),M=Qv();function q(gt){return[Ee,Jt,Ue,fe,Ne,se,nt,Bt,Qe,Nt,cn,In,ht,$e,Se].some(V=>V(gt))}function U(gt){return[ge,Jt,me,cn,fe,Ne,se,nt,$e,Ye,bt,Nt,Dn,Se,Oe].some(V=>V(gt))}function z(gt){return[Ee,fe,Ne,ue,pt,ht,Nt,ft,Ie,dt,Se,ot].some(V=>V(gt))}function ie(gt,V){let _e=(gt.body||gt.properties).find(rt=>{let{type:kt}=rt;return kt!=="EmptyStatement"});_e?h(_e,V):S(gt,V)}function ce(gt,V){gt.type==="BlockStatement"?ie(gt,V):h(gt,V)}function ge(gt){let{comment:V,followingNode:_e}=gt;return _e&&M(V)?(h(_e,V),!0):!1}function fe(gt){let{comment:V,precedingNode:_e,enclosingNode:rt,followingNode:kt,text:$t}=gt;if((rt==null?void 0:rt.type)!=="IfStatement"||!kt)return!1;if(c($t,V,y)===")")return v(_e,V),!0;if(_e===rt.consequent&&kt===rt.alternate){if(_e.type==="BlockStatement")v(_e,V);else{let un=V.type==="SingleLine"||V.loc.start.line===V.loc.end.line,Mt=V.loc.start.line===_e.loc.start.line;un&&Mt?S(_e,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 Ne(gt){let{comment:V,precedingNode:_e,enclosingNode:rt,followingNode:kt,text:$t}=gt;return(rt==null?void 0:rt.type)!=="WhileStatement"||!kt?!1:c($t,V,y)===")"?(v(_e,V),!0):kt.type==="BlockStatement"?(ie(kt,V),!0):rt.body===kt?(h(kt,V),!0):!1}function se(gt){let{comment:V,precedingNode:_e,enclosingNode:rt,followingNode:kt}=gt;return(rt==null?void 0:rt.type)!=="TryStatement"&&(rt==null?void 0:rt.type)!=="CatchClause"||!kt?!1:rt.type==="CatchClause"&&_e?(v(_e,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(gt){let{comment:V,enclosingNode:_e,followingNode:rt}=gt;return ne(_e)&&(rt==null?void 0:rt.type)==="Identifier"?(h(_e,V),!0):!1}function me(gt){let{comment:V,precedingNode:_e,enclosingNode:rt,followingNode:kt,text:$t}=gt,un=_e&&!d($t,y(_e),R(V));return(!_e||!un)&&((rt==null?void 0:rt.type)==="ConditionalExpression"||(rt==null?void 0:rt.type)==="TSConditionalType")&&kt?(h(kt,V),!0):!1}function ue(gt){let{comment:V,precedingNode:_e,enclosingNode:rt}=gt;return Z(rt)&&rt.shorthand&&rt.key===_e&&rt.value.type==="AssignmentPattern"?(v(rt.value.left,V),!0):!1}var qe=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function nt(gt){let{comment:V,precedingNode:_e,enclosingNode:rt,followingNode:kt}=gt;if(qe.has(rt==null?void 0:rt.type)){if(_(rt.decorators)&&!(kt&&kt.type==="Decorator"))return v(f(rt.decorators),V),!0;if(rt.body&&kt===rt.body)return ie(rt.body,V),!0;if(kt){if(rt.superClass&&kt===rt.superClass&&_e&&(_e===rt.id||_e===rt.typeParameters))return v(_e,V),!0;for(let $t of["implements","extends","mixins"])if(rt[$t]&&kt===rt[$t][0])return _e&&(_e===rt.id||_e===rt.typeParameters||_e===rt.superClass)?v(_e,V):S(rt,V,$t),!0}}return!1}var Je=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function ht(gt){let{comment:V,precedingNode:_e,enclosingNode:rt,text:kt}=gt;return rt&&_e&&c(kt,V,y)==="("&&(rt.type==="Property"||rt.type==="TSDeclareMethod"||rt.type==="TSAbstractMethodDefinition")&&_e.type==="Identifier"&&rt.key===_e&&c(kt,_e,y)!==":"||(_e==null?void 0:_e.type)==="Decorator"&&Je.has(rt==null?void 0:rt.type)?(v(_e,V),!0):!1}var be=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function Ie(gt){let{comment:V,precedingNode:_e,enclosingNode:rt,text:kt}=gt;return c(kt,V,y)!=="("?!1:_e&&be.has(rt==null?void 0:rt.type)?(v(_e,V),!0):!1}function ft(gt){let{comment:V,enclosingNode:_e,text:rt}=gt;if((_e==null?void 0:_e.type)!=="ArrowFunctionExpression")return!1;let kt=P(rt,V,y);return kt!==!1&&rt.slice(kt,kt+2)==="=>"?(S(_e,V),!0):!1}function pt(gt){let{comment:V,enclosingNode:_e,text:rt}=gt;return c(rt,V,y)!==")"?!1:_e&&(ct(_e)&&L(_e).length===0||$(_e)&&X(_e).length===0)?(S(_e,V),!0):((_e==null?void 0:_e.type)==="MethodDefinition"||(_e==null?void 0:_e.type)==="TSAbstractMethodDefinition")&&L(_e.value).length===0?(S(_e.value,V),!0):!1}function Jt(gt){let{comment:V,precedingNode:_e,enclosingNode:rt,followingNode:kt,text:$t}=gt;if((_e==null?void 0:_e.type)==="FunctionTypeParam"&&(rt==null?void 0:rt.type)==="FunctionTypeAnnotation"&&(kt==null?void 0:kt.type)!=="FunctionTypeParam"||((_e==null?void 0:_e.type)==="Identifier"||(_e==null?void 0:_e.type)==="AssignmentPattern")&&rt&&ct(rt)&&c($t,V,y)===")")return v(_e,V),!0;if((rt==null?void 0:rt.type)==="FunctionDeclaration"&&(kt==null?void 0:kt.type)==="BlockStatement"){let un=(()=>{let Mt=L(rt);if(Mt.length>0)return D($t,y(f(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(gt){let{comment:V,enclosingNode:_e}=gt;return(_e==null?void 0:_e.type)==="LabeledStatement"?(h(_e,V),!0):!1}function Se(gt){let{comment:V,enclosingNode:_e}=gt;return((_e==null?void 0:_e.type)==="ContinueStatement"||(_e==null?void 0:_e.type)==="BreakStatement")&&!_e.label?(v(_e,V),!0):!1}function Ye(gt){let{comment:V,precedingNode:_e,enclosingNode:rt}=gt;return G(rt)&&_e&&rt.callee===_e&&rt.arguments.length>0?(h(rt.arguments[0],V),!0):!1}function Qe(gt){let{comment:V,precedingNode:_e,enclosingNode:rt,followingNode:kt}=gt;return(rt==null?void 0:rt.type)==="UnionTypeAnnotation"||(rt==null?void 0:rt.type)==="TSUnionType"?(C(V)&&(kt.prettierIgnore=!0,V.unignore=!0),_e?(v(_e,V),!0):!1):(((kt==null?void 0:kt.type)==="UnionTypeAnnotation"||(kt==null?void 0:kt.type)==="TSUnionType")&&C(V)&&(kt.types[0].prettierIgnore=!0,V.unignore=!0),!1)}function bt(gt){let{comment:V,enclosingNode:_e}=gt;return Z(_e)?(h(_e,V),!0):!1}function Nt(gt){let{comment:V,enclosingNode:_e,followingNode:rt,ast:kt,isLastComment:$t}=gt;return kt&&kt.body&&kt.body.length===0?($t?S(kt,V):h(kt,V),!0):(_e==null?void 0:_e.type)==="Program"&&(_e==null?void 0:_e.body.length)===0&&!_(_e.directives)?($t?S(_e,V):h(_e,V),!0):(rt==null?void 0:rt.type)==="Program"&&(rt==null?void 0:rt.body.length)===0&&(_e==null?void 0:_e.type)==="ModuleExpression"?(S(rt,V),!0):!1}function Bt(gt){let{comment:V,enclosingNode:_e}=gt;return(_e==null?void 0:_e.type)==="ForInStatement"||(_e==null?void 0:_e.type)==="ForOfStatement"?(h(_e,V),!0):!1}function cn(gt){let{comment:V,precedingNode:_e,enclosingNode:rt,text:kt}=gt;if((rt==null?void 0:rt.type)==="ImportSpecifier"||(rt==null?void 0:rt.type)==="ExportSpecifier")return h(rt,V),!0;let $t=(_e==null?void 0:_e.type)==="ImportSpecifier"&&(rt==null?void 0:rt.type)==="ImportDeclaration",un=(_e==null?void 0:_e.type)==="ExportSpecifier"&&(rt==null?void 0:rt.type)==="ExportNamedDeclaration";return($t||un)&&b(kt,y(V))?(v(_e,V),!0):!1}function In(gt){let{comment:V,enclosingNode:_e}=gt;return(_e==null?void 0:_e.type)==="AssignmentPattern"?(h(_e,V),!0):!1}var Tn=new Set(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),ln=new Set(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function Dn(gt){let{comment:V,enclosingNode:_e,followingNode:rt}=gt;return Tn.has(_e==null?void 0:_e.type)&&rt&&(ln.has(rt.type)||T(V))?(h(rt,V),!0):!1}function ot(gt){let{comment:V,enclosingNode:_e,followingNode:rt,text:kt}=gt;return!rt&&((_e==null?void 0:_e.type)==="TSMethodSignature"||(_e==null?void 0:_e.type)==="TSDeclareFunction"||(_e==null?void 0:_e.type)==="TSAbstractMethodDefinition")&&c(kt,V,y)===";"?(v(_e,V),!0):!1}function Ee(gt){let{comment:V,enclosingNode:_e,followingNode:rt}=gt;if(C(V)&&(_e==null?void 0:_e.type)==="TSMappedType"&&(rt==null?void 0:rt.type)==="TSTypeParameter"&&rt.constraint)return _e.prettierIgnore=!0,V.unignore=!0,!0}function dt(gt){let{comment:V,precedingNode:_e,enclosingNode:rt,followingNode:kt}=gt;return(rt==null?void 0:rt.type)!=="TSMappedType"?!1:(kt==null?void 0:kt.type)==="TSTypeParameter"&&kt.name?(h(kt.name,V),!0):(_e==null?void 0:_e.type)==="TSTypeParameter"&&_e.constraint?(v(_e.constraint,V),!0):!1}function Oe(gt){let{comment:V,enclosingNode:_e,followingNode:rt}=gt;return!_e||_e.type!=="SwitchCase"||_e.test||!rt||rt!==_e.consequent[0]?!1:(rt.type==="BlockStatement"&&De(V)?ie(rt,V):S(_e,V),!0)}function ct(gt){return gt.type==="ArrowFunctionExpression"||gt.type==="FunctionExpression"||gt.type==="FunctionDeclaration"||gt.type==="ObjectMethod"||gt.type==="ClassMethod"||gt.type==="TSDeclareFunction"||gt.type==="TSCallSignatureDeclaration"||gt.type==="TSConstructSignatureDeclaration"||gt.type==="TSMethodSignature"||gt.type==="TSConstructorType"||gt.type==="TSFunctionType"||gt.type==="TSDeclareMethod"}function Zt(gt,V){if((V.parser==="typescript"||V.parser==="flow"||V.parser==="acorn"||V.parser==="espree"||V.parser==="meriyah"||V.parser==="__babel_estree")&&gt.type==="MethodDefinition"&&gt.value&&gt.value.type==="FunctionExpression"&&L(gt.value).length===0&&!gt.value.returnType&&!_(gt.value.typeParameters)&&gt.value.body)return[...gt.decorators||[],gt.key,gt.value.body]}function Ut(gt){let V=gt.getValue(),_e=gt.getParentNode(),rt=kt=>Q(F(kt,J.Leading))||Q(F(kt,J.Trailing));return(V&&(x(V)||j(V)||G(_e)&&rt(V))||_e&&(_e.type==="JSXSpreadAttribute"||_e.type==="JSXSpreadChild"||_e.type==="UnionTypeAnnotation"||_e.type==="TSUnionType"||(_e.type==="ClassDeclaration"||_e.type==="ClassExpression")&&_e.superClass===V))&&(!ee(gt)||_e.type==="UnionTypeAnnotation"||_e.type==="TSUnionType")}E.exports={handleOwnLineComment:q,handleEndOfLineComment:U,handleRemainingComment:z,getCommentChildNodes:Zt,willPrintOwnComments:Ut}}}),Ha=Fe({"src/language-js/needs-parens.js"(m,E){Re();var f=$r(),b=It(),{getFunctionParameters:D,getLeftSidePathName:c,hasFlowShorthandAnnotationComment:d,hasNakedLeftSide:h,hasNode:v,isBitwiseOperator:S,startsWithNoLookaheadToken:P,shouldFlatten:_,getPrecedence:L,isCallExpression:C,isMemberExpression:x,isObjectProperty:j,isTSTypeExpression:Q}=pr();function ee(F,J){let w=F.getParentNode();if(!w)return!1;let R=F.getName(),y=F.getNode();if(J.__isInHtmlInterpolation&&!J.bracketSpacing&&ne(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&&P(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&&P(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&&P(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"&&P(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=L(q),ie=w.operator,ce=L(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"||C(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"&&!C(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 ne(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 f(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"||!ee(F,J):!h(w)||R.type!=="ExportDefaultDeclaration"&&ee(F,J)?!1:F.call(y=>De(y,J),...c(F,w))}E.exports=ee}}),_0=Fe({"src/language-js/print-preprocess.js"(m,E){Re();function f(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=f}}),Xv=Fe({"src/language-js/print/html-binding.js"(m,E){Re();var{builders:{join:f,line:b,group:D,softline:c,indent:d}}=wn();function h(S,P,_){let L=S.getValue();if(P.__onHtmlBindingRoot&&S.getName()===null&&P.__onHtmlBindingRoot(L,P),L.type==="File"){if(P.__isVueForBindingLeft)return S.call(C=>{let x=f([",",b],C.map(_,"params")),{params:j}=C.getValue();return j.length===1?x:["(",d([c,D(x)]),c,")"]},"program","body",0);if(P.__isVueBindings)return S.call(C=>f([",",b],C.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}}}),Wf=Fe({"src/language-js/print/binaryish.js"(m,E){Re();var{printComments:f}=Ir(),{getLast:b}=ye(),{builders:{join:D,line:c,softline:d,group:h,indent:v,align:S,indentIfBreak:P},utils:{cleanDoc:_,getDocParts:L,isConcat:C}}=wn(),{hasLeadingOwnLineComment:x,isBinaryish:j,isJsxNode:Q,shouldFlatten:ee,hasComment:$,CommentCheckFlags:X,isCallExpression:G,isMemberExpression:ne,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"||ne(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",Ne=U.type==="AssignmentExpression"||U.type==="VariableDeclarator"||U.type==="ClassProperty"||U.type==="PropertyDefinition"||U.type==="TSAbstractPropertyDefinition"||U.type==="ClassPrivateProperty"||Z(U),se=j(q.left)&&ee(q.operator,q.left.operator);if(fe||R(q)&&!se||!R(q)&&Ne)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),qe=ge.slice(ue.length,Ue?-1:void 0),nt=Symbol("logicalChain-"+ ++F),Je=h([...ue,v(qe)],{id:nt});if(!Ue)return Je;let ht=b(ge);return h([Je,P(ht,{groupId:nt})])}function w(y,T,M,q,U){let z=y.getValue();if(!j(z))return[h(T())];let ie=[];ee(z.operator,z.left.operator)?ie=y.call(qe=>w(qe,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,Ne=z.type==="NGPipeExpression"&&z.arguments.length>0?h(v([c,": ",D([c,": "],y.map(T,"arguments").map(qe=>S(2,h(qe))))])):"",se;if(ce)se=[fe," ",T("right"),Ne];else{let qe=De(M)&&fe==="|>"?y.call(nt=>w(nt,T,M,!0,U),"right"):T("right");se=[ge?c:"",fe,ge?" ":c,qe,Ne]}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 qe=_(f(y,ie,M));return C(qe)||qe.type==="fill"?L(qe):[qe]}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}}}),Kv=Fe({"src/language-js/print/angular.js"(m,E){Re();var{builders:{join:f,line:b,group:D}}=wn(),{hasNode:c,hasComment:d,getComments:h}=pr(),{printBinaryishExpression:v}=Wf();function S(L,C,x){let j=L.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(L,C,x);case"NGChainedExpression":return D(f([";",b],L.map(Q=>_(Q)?x():["(",x(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[j.prefix,": ",j.value.trim()];case"NGMicrosyntax":return L.map((Q,ee)=>[ee===0?"":P(Q.getValue(),ee,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=L.getName(),ee=L.getParentNode(),$=P(j,Q,ee)||(Q===1&&(j.key.name==="then"||j.key.name==="else")||Q===2&&j.key.name==="else"&&ee.body[Q-1].type==="NGMicrosyntaxKeyedExpression"&&ee.body[Q-1].key.name==="then")&&ee.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 P(L,C,x){return L.type==="NGMicrosyntaxKeyedExpression"&&L.key.name==="of"&&C===1&&x.body[0].type==="NGMicrosyntaxLet"&&x.body[0].value===null}function _(L){return c(L.getValue(),C=>{switch(C.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}E.exports={printAngular:S}}}),Zv=Fe({"src/language-js/print/jsx.js"(m,E){Re();var{printComments:f,printDanglingComments:b,printCommentsSeparately:D}=Ir(),{builders:{line:c,hardline:d,softline:h,group:v,indent:S,conditionalGroup:P,fill:_,ifBreak:L,lineSuffixBoundary:C,join:x},utils:{willBreak:j}}=wn(),{getLast:Q,getPreferredQuote:ee}=ye(),{isJsxNode:$,rawText:X,isCallExpression:G,isStringLiteral:ne,isBinaryish:Z,hasComment:De,CommentCheckFlags:F,hasNodeIgnoreComment:J}=pr(),w=Ha(),{willPrintOwnComments:R}=N0(),y=Se=>Se===""||Se===c||Se===d||Se===h;function T(Se,Ye,Qe){let bt=Se.getValue();if(bt.type==="JSXElement"&&ft(bt))return[Qe("openingElement"),Qe("closingElement")];let Nt=bt.type==="JSXElement"?Qe("openingElement"):Qe("openingFragment"),Bt=bt.type==="JSXElement"?Qe("closingElement"):Qe("closingFragment");if(bt.children.length===1&&bt.children[0].type==="JSXExpressionContainer"&&(bt.children[0].expression.type==="TemplateLiteral"||bt.children[0].expression.type==="TaggedTemplateExpression"))return[Nt,...Se.map(Qe,"children"),Bt];bt.children=bt.children.map(V=>Jt(V)?{type:"JSXText",value:" ",raw:" "}:V);let cn=bt.children.some($),In=bt.children.filter(V=>V.type==="JSXExpressionContainer").length>1,Tn=bt.type==="JSXElement"&&bt.openingElement.attributes.length>1,ln=j(Nt)||cn||Tn||In,Dn=Se.getParentNode().rootMarker==="mdx",ot=Ye.singleQuote?"{' '}":'{" "}',Ee=Dn?" ":L([ot,h]," "),dt=bt.openingElement&&bt.openingElement.name&&bt.openingElement.name.name==="fbt",Oe=M(Se,Ye,Qe,Ee,dt),ct=bt.children.some(V=>pt(V));for(let V=Oe.length-2;V>=0;V--){let _e=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||_e||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,_e]of Oe.entries()){if(_e===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(_e),j(_e)&&(ln=!0)}let Ut=ct?_(Zt):v(Zt,{shouldBreak:!0});if(Dn)return Ut;let gt=v([Nt,S([d,Ut]),d,Bt]);return ln?gt:P([v([Nt,...Oe,Bt]),gt])}function M(Se,Ye,Qe,bt,Nt){let Bt=[];return Se.each((cn,In,Tn)=>{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=Tn[In+1];Bt.push(U(Nt,ot[1],ln,dt))}else Bt.push(bt);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(c):Bt.push(Oe);if(Ee!==void 0)if(/\n/.test(Ee)){let dt=Tn[In+1];Bt.push(U(Nt,Q(Bt),ln,dt))}else Bt.push(bt);else{let dt=Tn[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("",bt)}else{let Dn=Qe();Bt.push(Dn);let ot=Tn[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(Se,Ye,Qe,bt){return Se?"":Qe.type==="JSXElement"&&!Qe.closingElement||bt&&bt.type==="JSXElement"&&!bt.closingElement?Ye.length===1?h:d:h}function U(Se,Ye,Qe,bt){return Se?d:Ye.length===1?Qe.type==="JSXElement"&&!Qe.closingElement||bt&&bt.type==="JSXElement"&&!bt.closingElement?d:h:d}function z(Se,Ye,Qe){let bt=Se.getParentNode();if(!bt||{ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[bt.type])return Ye;let Nt=Se.match(void 0,cn=>cn.type==="ArrowFunctionExpression",G,cn=>cn.type==="JSXExpressionContainer"),Bt=w(Se,Qe);return v([Bt?"":L("("),S([h,Ye]),h,Bt?"":L(")")],{shouldBreak:Nt})}function ie(Se,Ye,Qe){let bt=Se.getValue(),Nt=[];if(Nt.push(Qe("name")),bt.value){let Bt;if(ne(bt.value)){let cn=X(bt.value).slice(1,-1).replace(/&apos;/g,"'").replace(/&quot;/g,'"'),{escaped:In,quote:Tn,regex:ln}=ee(cn,Ye.jsxSingleQuote?"'":'"');cn=cn.replace(ln,In);let{leading:Dn,trailing:ot}=Se.call(()=>D(Se,Ye),"value");Bt=[Dn,Tn,cn,Tn,ot]}else Bt=Qe("value");Nt.push("=",Bt)}return Nt}function ce(Se,Ye,Qe){let bt=Se.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(bt.expression,Se.getParentNode(0))?v(["{",Qe("expression"),C,"}"]):v(["{",S([h,Qe("expression")]),h,C,"}"])}function ge(Se,Ye,Qe){let bt=Se.getValue(),Nt=bt.name&&De(bt.name)||bt.typeParameters&&De(bt.typeParameters);if(bt.selfClosing&&bt.attributes.length===0&&!Nt)return["<",Qe("name"),Qe("typeParameters")," />"];if(bt.attributes&&bt.attributes.length===1&&bt.attributes[0].value&&ne(bt.attributes[0].value)&&!bt.attributes[0].value.value.includes(`
205
- `)&&!Nt&&!De(bt.attributes[0]))return v(["<",Qe("name"),Qe("typeParameters")," ",...Se.map(Qe,"attributes"),bt.selfClosing?" />":">"]);let Bt=bt.attributes&&bt.attributes.some(In=>In.value&&ne(In.value)&&In.value.value.includes(`
206
- `)),cn=Ye.singleAttributePerLine&&bt.attributes.length>1?d:c;return v(["<",Qe("name"),Qe("typeParameters"),S(Se.map(()=>[cn,Qe()],"attributes")),...fe(bt,Ye,Nt)],{shouldBreak:Bt})}function fe(Se,Ye,Qe){return Se.selfClosing?[c,"/>"]:Ne(Se,Ye,Qe)?[">"]:[h,">"]}function Ne(Se,Ye,Qe){let bt=Se.attributes.length>0&&De(Q(Se.attributes),F.Trailing);return Se.attributes.length===0&&!Qe||(Ye.bracketSameLine||Ye.jsxBracketSameLine)&&(!Qe||Se.attributes.length>0)&&!bt}function se(Se,Ye,Qe){let bt=Se.getValue(),Nt=[];Nt.push("</");let Bt=Qe("name");return De(bt.name,F.Leading|F.Line)?Nt.push(S([d,Bt]),d):De(bt.name,F.Leading|F.Block)?Nt.push(" ",Bt):Nt.push(Bt),Nt.push(">"),Nt}function Ue(Se,Ye){let Qe=Se.getValue(),bt=De(Qe),Nt=De(Qe,F.Line),Bt=Qe.type==="JSXOpeningFragment";return[Bt?"<":"</",S([Nt?d:bt&&!Bt?" ":"",b(Se,Ye,!0)]),Nt?d:"",">"]}function me(Se,Ye,Qe){let bt=f(Se,T(Se,Ye,Qe),Ye);return z(Se,bt,Ye)}function ue(Se,Ye){let Qe=Se.getValue(),bt=De(Qe,F.Line);return[b(Se,Ye,!bt),bt?d:""]}function qe(Se,Ye,Qe){let bt=Se.getValue();return["{",Se.call(Nt=>{let Bt=["...",Qe()],cn=Nt.getValue();return!De(cn)||!R(Nt)?Bt:[S([h,f(Nt,Bt,Ye)]),h]},bt.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function nt(Se,Ye,Qe){let bt=Se.getValue();if(bt.type.startsWith("JSX"))switch(bt.type){case"JSXAttribute":return ie(Se,Ye,Qe);case"JSXIdentifier":return String(bt.name);case"JSXNamespacedName":return x(":",[Qe("namespace"),Qe("name")]);case"JSXMemberExpression":return x(".",[Qe("object"),Qe("property")]);case"JSXSpreadAttribute":return qe(Se,Ye,Qe);case"JSXSpreadChild":return qe(Se,Ye,Qe);case"JSXExpressionContainer":return ce(Se,Ye,Qe);case"JSXFragment":case"JSXElement":return me(Se,Ye,Qe);case"JSXOpeningElement":return ge(Se,Ye,Qe);case"JSXClosingElement":return se(Se,Ye,Qe);case"JSXOpeningFragment":case"JSXClosingFragment":return Ue(Se,Ye);case"JSXEmptyExpression":return ue(Se,Ye);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Error(`Unknown JSX node type: ${JSON.stringify(bt.type)}.`)}}var Je=`
207
- \r `,ht=new RegExp("(["+Je+"]+)"),be=new RegExp("[^"+Je+"]"),Ie=Se=>Se.replace(new RegExp("(?:^"+ht.source+"|"+ht.source+"$)"),"");function ft(Se){if(Se.children.length===0)return!0;if(Se.children.length>1)return!1;let Ye=Se.children[0];return Ye.type==="JSXText"&&!pt(Ye)}function pt(Se){return Se.type==="JSXText"&&(be.test(X(Se))||!/\n/.test(X(Se)))}function Jt(Se){return Se.type==="JSXExpressionContainer"&&ne(Se.expression)&&Se.expression.value===" "&&!De(Se.expression)}function $e(Se){let Ye=Se.getValue(),Qe=Se.getParentNode();if(!Qe||!Ye||!$(Ye)||!$(Qe))return!1;let bt=Qe.children.indexOf(Ye),Nt=null;for(let Bt=bt;Bt>0;Bt--){let cn=Qe.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}}}),xi=Fe({"src/language-js/print/misc.js"(m,E){Re();var{isNonEmptyArray:f}=ye(),{builders:{indent:b,join:D,line:c}}=wn(),{isFlowAnnotationComment:d}=pr();function h(Q){let ee=Q.getValue();return!ee.optional||ee.type==="Identifier"&&ee===Q.getParentNode().key?"":ee.type==="OptionalCallExpression"||ee.type==="OptionalMemberExpression"&&ee.computed?"?.":"?"}function v(Q){return Q.getValue().definite||Q.match(void 0,(ee,$)=>$==="id"&&ee.type==="VariableDeclarator"&&ee.definite)?"!":""}function S(Q,ee,$){let X=Q.getValue();return X.typeArguments?$("typeArguments"):X.typeParameters?$("typeParameters"):""}function P(Q,ee,$){let X=Q.getValue();if(!X.typeAnnotation)return"";let G=Q.getParentNode(),ne=G.type==="DeclareFunction"&&G.id===X;return d(ee.originalText,X.typeAnnotation)?[" /*: ",$("typeAnnotation")," */"]:[ne?"":": ",$("typeAnnotation")]}function _(Q,ee,$){return["::",$("callee")]}function L(Q,ee,$){let X=Q.getValue();return f(X.modifiers)?[D(" ",Q.map($,"modifiers"))," "]:""}function C(Q,ee,$){return Q.type==="EmptyStatement"?";":Q.type==="BlockStatement"||$?[" ",ee]:b([c,ee])}function x(Q,ee,$){return["...",$("argument"),P(Q,ee,$)]}function j(Q,ee){let $=Q.slice(1,-1);if($.includes('"')||$.includes("'"))return Q;let X=ee.singleQuote?"'":'"';return X+$+X}E.exports={printOptionalToken:h,printDefiniteToken:v,printFunctionTypeParameters:S,printBindExpressionCallee:_,printTypeScriptModifiers:L,printTypeAnnotation:P,printRestSpread:x,adjustClause:C,printDirective:j}}}),Io=Fe({"src/language-js/print/array.js"(m,E){Re();var{printDanglingComments:f}=Ir(),{builders:{line:b,softline:D,hardline:c,group:d,indent:h,ifBreak:v,fill:S}}=wn(),{getLast:P,hasNewline:_}=ye(),{shouldPrintComma:L,hasComment:C,CommentCheckFlags:x,isNextLineEmpty:j,isNumericLiteral:Q,isSignedNumericLiteral:ee}=pr(),{locStart:$}=si(),{printOptionalToken:X,printTypeAnnotation:G}=xi();function ne(J,w,R){let y=J.getValue(),T=[],M=y.type==="TupleExpression"?"#[":"[",q="]";if(y.elements.length===0)C(y,x.Dangling)?T.push(d([M,f(J,w),D,q])):T.push(M,q);else{let U=P(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 qe=me[Ue+1];if(qe&&ue!==qe.type)return!1;let nt=ue==="ArrayExpression"?"elements":"properties";return se[nt]&&se[nt].length>1}),fe=Z(y,w),Ne=z?ie?",":L(w)?fe?v(",","",{groupId:ce}):v(","):"":"";T.push(d([M,h([D,fe?F(J,w,R,Ne):[De(J,w,"elements",R),Ne],f(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)||ee(R)&&!C(R.argument))&&!C(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)?[c,c]:C(U[q+1],x.Leading|x.Line)?c:b)},"elements"),S(T)}E.exports={printArray:ne,printArrayItems:De,isConciselyPrintedArray:Z}}}),T0=Fe({"src/language-js/print/call-arguments.js"(m,E){Re();var{printDanglingComments:f}=Ir(),{getLast:b,getPenultimate:D}=ye(),{getFunctionParameters:c,hasComment:d,CommentCheckFlags:h,isFunctionCompositionArgs:v,isJsxNode:S,isLongCurriedCallExpression:P,shouldPrintComma:_,getCallArguments:L,iterateCallArgumentsPath:C,isNextLineEmpty:x,isCallExpression:j,isStringLiteral:Q,isObjectProperty:ee,isTSTypeExpression:$}=pr(),{builders:{line:X,hardline:G,softline:ne,group:Z,indent:De,conditionalGroup:F,ifBreak:J,breakParent:w},utils:{willBreak:R}}=wn(),{ArgExpansionBailout:y}=tn(),{isConciselyPrintedArray:T}=Io();function M(fe,Ne,se){let Ue=fe.getValue(),me=Ue.type==="ImportExpression",ue=L(Ue);if(ue.length===0)return["(",f(fe,Ne,!0),")"];if(ie(ue))return["(",se(["arguments",0]),", ",se(["arguments",1]),")"];let qe=!1,nt=!1,Je=ue.length-1,ht=[];C(fe,($e,Se)=>{let Ye=$e.getNode(),Qe=[se()];Se===Je||(x(Ye,Ne)?(Se===0&&(nt=!0),qe=!0,Qe.push(",",G,G)):Qe.push(",",X)),ht.push(Qe)});let be=!(me||Ue.callee&&Ue.callee.type==="Import")&&_(Ne,"all")?",":"";function Ie(){return Z(["(",De([X,...ht]),be,X,")"],{shouldBreak:!0})}if(qe||fe.getParentNode().type!=="Decorator"&&v(ue))return Ie();let ft=z(ue),pt=U(ue,Ne);if(ft||pt){if(ft?ht.slice(1).some(R):ht.slice(0,-1).some(R))return Ie();let $e=[];try{fe.try(()=>{C(fe,(Se,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(Se){if(Se instanceof y)return Ie();throw Se}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([ne,...ht]),J(be),ne,")"];return P(fe)?Jt:Z(Jt,{shouldBreak:ht.some(R)||qe})}function q(fe){let Ne=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"||!Ne&&(j(fe.body)||fe.body.type==="ConditionalExpression")||S(fe.body))||fe.type==="DoExpression"||fe.type==="ModuleExpression"}function U(fe,Ne){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,Ne))}function z(fe){if(fe.length!==2)return!1;let[Ne,se]=fe;return Ne.type==="ModuleExpression"&&ge(se)?!0:!d(Ne)&&(Ne.type==="FunctionExpression"||Ne.type==="ArrowFunctionExpression"&&Ne.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"&&c(fe[0]).length===0&&fe[0].body.type==="BlockStatement"&&fe[1].type==="ArrayExpression"&&!fe.some(Ne=>d(Ne))}function ce(fe){return fe.type==="BlockStatement"&&(fe.body.some(Ne=>Ne.type!=="EmptyStatement")||d(fe,h.Dangling))}function ge(fe){return fe.type==="ObjectExpression"&&fe.properties.length===1&&ee(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}}),k0=Fe({"src/language-js/print/member.js"(m,E){Re();var{builders:{softline:f,group:b,indent:D,label:c}}=wn(),{isNumericLiteral:d,isMemberExpression:h,isCallExpression:v}=pr(),{printOptionalToken:S}=xi();function P(L,C,x){let j=L.getValue(),Q=L.getParentNode(),ee,$=0;do ee=L.getParentNode($),$++;while(ee&&(h(ee)||ee.type==="TSNonNullExpression"));let X=x("object"),G=_(L,C,x),ne=ee&&(ee.type==="NewExpression"||ee.type==="BindExpression"||ee.type==="AssignmentExpression"&&ee.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 c(X.label==="member-chain"?"member-chain":"member",[X,ne?G:b(D([f,G]))])}function _(L,C,x){let j=x("property"),Q=L.getValue(),ee=S(L);return Q.computed?!Q.property||d(Q.property)?[ee,"[",j,"]"]:b([ee,"[",D([f,j]),f,"]"]):[ee,".",j]}E.exports={printMemberExpression:P,printMemberLookup:_}}}),e2=Fe({"src/language-js/print/member-chain.js"(m,E){Re();var{printComments:f}=Ir(),{getLast:b,isNextLineEmptyAfterIndex:D,getNextNonSpaceNonCommentCharacterIndex:c}=ye(),d=Ha(),{isCallExpression:h,isMemberExpression:v,isFunctionOrArrowExpression:S,isLongCurriedCallExpression:P,isMemberish:_,isNumericLiteral:L,isSimpleCallArgument:C,hasComment:x,CommentCheckFlags:j,isNextLineEmpty:Q}=pr(),{locEnd:ee}=si(),{builders:{join:$,hardline:X,group:G,indent:ne,conditionalGroup:Z,breakParent:De,label:F},utils:{willBreak:J}}=wn(),w=T0(),{printMemberLookup:R}=k0(),{printOptionalToken:y,printFunctionTypeParameters:T,printBindExpressionCallee:M}=xi();function q(U,z,ie){let ce=U.getParentNode(),ge=!ce||ce.type==="ExpressionStatement",fe=[];function Ne(ln){let{originalText:Dn}=z,ot=c(Dn,ln,ee);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:[f(ln,[y(ln),T(ln,z,ie),w(ln,z,ie)],z),Ne(Dn)?X:""]}),ln.call(ot=>se(ot),"callee")):_(Dn)?(fe.unshift({node:Dn,needsParens:d(ln,z),printed:f(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:f(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]],qe=1;for(;qe<fe.length&&(fe[qe].node.type==="TSNonNullExpression"||h(fe[qe].node)||v(fe[qe].node)&&fe[qe].node.computed&&L(fe[qe].node.property));++qe)ue.push(fe[qe]);if(!h(fe[0].node))for(;qe+1<fe.length&&_(fe[qe].node)&&_(fe[qe+1].node);++qe)ue.push(fe[qe]);me.push(ue),ue=[];let nt=!1;for(;qe<fe.length;++qe){if(nt&&_(fe[qe].node)){if(fe[qe].node.computed&&L(fe[qe].node.property)){ue.push(fe[qe]);continue}me.push(ue),ue=[],nt=!1}(h(fe[qe].node)||fe[qe].node.type==="ImportExpression")&&(nt=!0),ue.push(fe[qe]),x(fe[qe].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?"":ne(G([X,$(X,ln.map(ft))]))}let Jt=me.map(ft),$e=Jt,Se=Ie?3:2,Ye=me.flat(),Qe=Ye.slice(1,-1).some(ln=>x(ln.node,j.Leading))||Ye.slice(0,-1).some(ln=>x(ln.node,j.Trailing))||me[Se]&&x(me[Se][0].node,j.Leading);if(me.length<=Se&&!Qe)return P(U)?$e:G($e);let bt=b(me[Ie?1:0]).node,Nt=!h(bt)&&Ne(bt),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 Tn;return Qe||cn.length>2&&cn.some(ln=>!ln.arguments.every(Dn=>C(Dn,0)))||Jt.slice(0,-1).some(J)||In()?Tn=G(Bt):Tn=[J($e)||Nt?De:"",Z([$e,Bt])],F("member-chain",Tn)}E.exports=q}}),L0=Fe({"src/language-js/print/call-expression.js"(m,E){Re();var{builders:{join:f,group:b}}=wn(),D=Ha(),{getCallArguments:c,hasFlowAnnotationComment:d,isCallExpression:h,isMemberish:v,isStringLiteral:S,isTemplateOnItsOwnLine:P,isTestCall:_,iterateCallArgumentsPath:L}=pr(),C=e2(),x=T0(),{printOptionalToken:j,printFunctionTypeParameters:Q}=xi();function ee(X,G,ne){let Z=X.getValue(),De=X.getParentNode(),F=Z.type==="NewExpression",J=Z.type==="ImportExpression",w=j(X),R=c(Z);if(R.length>0&&(!J&&!F&&$(Z,De)||R.length===1&&P(R[0],G.originalText)||!F&&_(Z,De))){let M=[];return L(X,()=>{M.push(ne())}),[F?"new ":"",ne("callee"),w,Q(X,G,ne),"(",f(", ",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 C(X,G,ne);let T=[F?"new ":"",J?"import":ne("callee"),w,y?`/*:: ${Z.callee.trailingComments[0].value.slice(2).trim()} */`:"",Q(X,G,ne),x(X,G,ne)];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 ne=c(X);return G.type==="ExpressionStatement"&&(ne.length===1||ne.length===2&&ne[0].type==="ArrayExpression"||ne.length===3&&S(ne[0])&&ne[1].type==="ArrayExpression")}return!1}E.exports={printCallExpression:ee}}}),Oo=Fe({"src/language-js/print/assignment.js"(m,E){Re();var{isNonEmptyArray:f,getStringWidth:b}=ye(),{builders:{line:D,group:c,indent:d,indentIfBreak:h,lineSuffixBoundary:v},utils:{cleanDoc:S,willBreak:P,canBreak:_}}=wn(),{hasLeadingOwnLineComment:L,isBinaryish:C,isStringLiteral:x,isLiteral:j,isNumericLiteral:Q,isCallExpression:ee,isMemberExpression:$,getCallArguments:X,rawText:G,hasComment:ne,isSignedNumericLiteral:Z,isObjectProperty:De}=pr(),{shouldInlineLogicalExpression:F}=Wf(),{printCallExpression:J}=L0();function w(be,Ie,ft,pt,Jt,$e){let Se=T(be,Ie,ft,pt,$e),Ye=ft($e,{assignmentLayout:Se});switch(Se){case"break-after-operator":return c([c(pt),Jt,c(d([D,Ye]))]);case"never-break-after-operator":return c([c(pt),Jt," ",Ye]);case"fluid":{let Qe=Symbol("assignment");return c([c(pt),Jt,c(d(D),{id:Qe}),v,h(Ye,{groupId:Qe})])}case"break-lhs":return c([pt,Jt," ",c(Ye)]);case"chain":return[c(pt),Jt,D,Ye];case"chain-tail":return[c(pt),Jt,d([D,Ye])];case"chain-tail-arrow-chain":return[c(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(),Se=$e[Jt];if(!Se)return"only-left";let Ye=!U(Se);if(be.match(U,z,bt=>!Ye||bt.type!=="ExpressionStatement"&&bt.type!=="VariableDeclaration"))return Ye?Se.type==="ArrowFunctionExpression"&&Se.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!Ye&&U(Se.right)||L(Ie.originalText,Se))return"break-after-operator";if(Se.type==="CallExpression"&&Se.callee.name==="require"||Ie.parser==="json5"||Ie.parser==="json")return"never-break-after-operator";if(q($e)||ie($e)||fe($e)||Ne($e)&&_(pt))return"break-lhs";let Qe=nt($e,pt,Ie);return be.call(()=>M(be,Ie,ft,Qe),Jt)?"break-after-operator":Qe||Se.type==="TemplateLiteral"||Se.type==="TaggedTemplateExpression"||Se.type==="BooleanLiteral"||Q(Se)||Se.type==="ClassExpression"?"never-break-after-operator":"fluid"}function M(be,Ie,ft,pt){let Jt=be.getValue();if(C(Jt)&&!F(Jt))return!0;switch(Jt.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{let{test:Ye}=Jt;return C(Ye)&&!F(Ye)}case"ClassExpression":return f(Jt.decorators)}if(pt)return!1;let $e=Jt,Se=[];for(;;)if($e.type==="UnaryExpression")$e=$e.argument,Se.push("argument");else if($e.type==="TSNonNullExpression")$e=$e.expression,Se.push("expression");else break;return!!(x($e)||be.call(()=>me(be,Ie,ft),...Se))}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(f(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 f(ft)&&ft.length>1&&ft.some(pt=>f(se(pt))||pt.type==="TSConditionalType")}function Ne(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(ee(Jt)){if(J(be,Ie,ft).label==="member-chain")return!1;let Se=X(Jt);return!(Se.length===0||Se.length===1&&qe(Se[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 qe(be,Ie){let{printWidth:ft}=Ie;if(ne(be))return!1;let pt=ft*ue;if(be.type==="ThisExpression"||be.type==="Identifier"&&be.name.length<=pt||Z(be)&&!ne(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(f(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(P(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:Ne}}}),fl=Fe({"src/language-js/print/function-parameters.js"(m,E){Re();var{getNextNonSpaceNonCommentCharacter:f}=ye(),{printDanglingComments:b}=Ir(),{builders:{line:D,hardline:c,softline:d,group:h,indent:v,ifBreak:S},utils:{removeLines:P,willBreak:_}}=wn(),{getFunctionParameters:L,iterateFunctionParametersPath:C,isSimpleType:x,isTestCall:j,isTypeAnnotationAFunction:Q,isObjectType:ee,isObjectTypePropertyAFunction:$,hasRestParameter:X,shouldPrintComma:G,hasComment:ne,isNextLineEmpty:Z}=pr(),{locEnd:De}=si(),{ArgExpansionBailout:F}=tn(),{printFunctionTypeParameters:J}=xi();function w(M,q,U,z,ie){let ce=M.getValue(),ge=L(ce),fe=ie?J(M,U,q):"";if(ge.length===0)return[fe,"(",b(M,U,!0,qe=>f(U.originalText,qe,De)===")"),")"];let Ne=M.getParentNode(),se=j(Ne),Ue=R(ce),me=[];if(C(M,(qe,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(c,c):me.push(D))}),z){if(_(fe)||_(me))throw new F;return h([P(fe),"(",P(me),")"])}let ue=ge.every(qe=>!qe.decorators);return Ue&&ue?[fe,"(",...me,")"]:se?[fe,"(",...me,")"]:($(Ne)||Q(Ne)||Ne.type==="TypeAlias"||Ne.type==="UnionTypeAnnotation"||Ne.type==="TSUnionType"||Ne.type==="IntersectionTypeAnnotation"||Ne.type==="FunctionTypeAnnotation"&&Ne.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=L(M);if(q.length!==1)return!1;let[U]=q;return!ne(U)&&(U.type==="ObjectPattern"||U.type==="ArrayPattern"||U.type==="Identifier"&&U.typeAnnotation&&(U.typeAnnotation.type==="TypeAnnotation"||U.typeAnnotation.type==="TSTypeAnnotation")&&ee(U.typeAnnotation.typeAnnotation)||U.type==="FunctionTypeParam"&&ee(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 L(M).length===1&&(ee(U)||_(q))}E.exports={printFunctionParameters:w,shouldHugFunctionParameters:R,shouldGroupFunctionParameters:T}}}),pl=Fe({"src/language-js/print/type-annotation.js"(m,E){Re();var{printComments:f,printDanglingComments:b}=Ir(),{isNonEmptyArray:D}=ye(),{builders:{group:c,join:d,line:h,softline:v,indent:S,align:P,ifBreak:_}}=wn(),L=Ha(),{locStart:C}=si(),{isSimpleType:x,isObjectType:j,hasLeadingOwnLineComment:Q,isObjectTypePropertyAFunction:ee,shouldPrintComma:$}=pr(),{printAssignment:X}=Oo(),{printFunctionParameters:G,shouldGroupFunctionParameters:ne}=fl(),{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 Ne=ge.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[X(U,z,ie,fe," =",Ne),ce]}function w(U,z,ie){let ce=U.getValue(),ge=U.map(ie,"types"),fe=[],Ne=!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([" & ",Ne?S(ge[se]):ge[se]]):!j(ce.types[se-1])&&!j(ce.types[se])?fe.push(S([" &",h,ge[se]])):(se>1&&(Ne=!0),fe.push(" & ",se>1?S(ge[se]):ge[se]));return c(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)),Ne=De(ce),se=U.map(ue=>{let qe=ie();return Ne||(qe=P(2,qe)),f(ue,qe,z)},"types");if(Ne)return d(" | ",se);let Ue=fe&&!Q(z.originalText,ce),me=[_([Ue?h:"","| "]),d([h,"| "],se)];return L(U,z)?c([S(me),v]):ge.type==="TupleTypeAnnotation"&&ge.types.length>1||ge.type==="TSTupleType"&&ge.elementTypes.length>1?c([S([_(["(",v]),me]),v,_(")")]):c(fe?S(me):me)}function y(U,z,ie){let ce=U.getValue(),ge=[],fe=U.getParentNode(0),Ne=U.getParentNode(1),se=U.getParentNode(2),Ue=ce.type==="TSFunctionType"||!((fe.type==="ObjectTypeProperty"||fe.type==="ObjectTypeInternalSlot")&&!fe.variance&&!fe.optional&&C(fe)===C(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")&&Ne.type==="ArrowFunctionExpression";ee(fe)&&(Ue=!0,me=!0),ue&&ge.push("(");let qe=G(U,ie,z,!1,!0),nt=ce.returnType||ce.predicate||ce.typeAnnotation?[Ue?" => ":": ",ie("returnType"),ie("predicate"),ie("typeAnnotation")]:"",Je=ne(ce,nt);return ge.push(Je?c(qe):qe),nt&&ge.push(nt),ue&&ge.push(")"),c(ge)}function T(U,z,ie){let ce=U.getValue(),ge=ce.type==="TSTupleType"?"elementTypes":"types",fe=ce[ge],Ne=D(fe),se=Ne?v:"";return c(["[",S([se,Z(U,z,ge,ie)]),_(Ne&&$(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}}}),dl=Fe({"src/language-js/print/type-parameters.js"(m,E){Re();var{printDanglingComments:f}=Ir(),{builders:{join:b,line:D,hardline:c,softline:d,group:h,indent:v,ifBreak:S}}=wn(),{isTestCall:P,hasComment:_,CommentCheckFlags:L,isTSXFile:C,shouldPrintComma:x,getFunctionParameters:j,isObjectType:Q,getTypeScriptMappedTypeModifier:ee}=pr(),{createGroupIdMapper:$}=ye(),{shouldHugType:X}=pl(),{isArrowFunctionVariableDeclarator:G}=Oo(),ne=$("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&&P(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&&C(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:ne(T)})}function De(J,w){let R=J.getValue();if(!_(R,L.Dangling))return"";let y=!_(R,L.Line),T=f(J,w,y);return y?T:[T,c]}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(ee(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:ne}}}),jo=Fe({"src/language-js/print/property.js"(m,E){Re();var{printComments:f}=Ir(),{printString:b,printNumber:D}=ye(),{isNumericLiteral:c,isSimpleNumber:d,isStringLiteral:h,isStringPropSafeToUnquote:v,rawText:S}=pr(),{printAssignment:P}=Oo(),_=new WeakMap;function L(x,j,Q){let ee=x.getNode();if(ee.computed)return["[",Q("key"),"]"];let $=x.getParentNode(),{key:X}=ee;if(j.quoteProps==="consistent"&&!_.has($)){let G=($.properties||$.body||$.members).some(ne=>!ne.computed&&ne.key&&h(ne.key)&&!v(ne,j));_.set($,G)}if((X.type==="Identifier"||c(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(ne=>f(ne,G,j),"key")}return v(ee,j)&&(j.quoteProps==="as-needed"||j.quoteProps==="consistent"&&!_.get($))?x.call(G=>f(G,/^\d/.test(X.value)?D(X.value):X.value,j),"key"):Q("key")}function C(x,j,Q){return x.getValue().shorthand?Q("value"):P(x,j,Q,L(x,j,Q),":","value")}E.exports={printProperty:C,printPropertyKey:L}}}),hl=Fe({"src/language-js/print/function.js"(m,E){Re();var f=Mo(),{printDanglingComments:b,printCommentsSeparately:D}=Ir(),c=$r(),{getNextNonSpaceNonCommentCharacterIndex:d}=ye(),{builders:{line:h,softline:v,group:S,indent:P,ifBreak:_,hardline:L,join:C,indentIfBreak:x},utils:{removeLines:j,willBreak:Q}}=wn(),{ArgExpansionBailout:ee}=tn(),{getFunctionParameters:$,hasLeadingOwnLineComment:X,isFlowAnnotationComment:G,isJsxNode:ne,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}=si(),{printFunctionParameters:ge,shouldGroupFunctionParameters:fe}=fl(),{printPropertyKey:Ne}=jo(),{printFunctionTypeParameters:se}=xi();function Ue(Se,Ye,Qe,bt){let Nt=Se.getValue(),Bt=!1;if((Nt.type==="FunctionDeclaration"||Nt.type==="FunctionExpression")&&bt&&bt.expandLastArg){let Dn=Se.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(Se,Ye,Qe,Bt),Tn=Ie(Se,Ye,Qe),ln=fe(Nt,Tn);return cn.push(se(Se,Qe,Ye),S([ln?S(In):In,Tn]),Nt.body?" ":"",Ye("body")),Qe.semi&&(Nt.declare||!Nt.body)&&cn.push(";"),cn}function me(Se,Ye,Qe){let bt=Se.getNode(),{kind:Nt}=bt,Bt=bt.value||bt,cn=[];return!Nt||Nt==="init"||Nt==="method"||Nt==="constructor"?Bt.async&&cn.push("async "):(f.ok(Nt==="get"||Nt==="set"),cn.push(Nt," ")),Bt.generator&&cn.push("*"),cn.push(Ne(Se,Ye,Qe),bt.optional||bt.key.optional?"?":""),bt===Bt?cn.push(ue(Se,Ye,Qe)):Bt.type==="FunctionExpression"?cn.push(Se.call(In=>ue(In,Ye,Qe),"value")):cn.push(Qe("value")),cn}function ue(Se,Ye,Qe){let bt=Se.getNode(),Nt=ge(Se,Qe,Ye),Bt=Ie(Se,Qe,Ye),cn=fe(bt,Bt),In=[se(Se,Ye,Qe),S([cn?S(Nt):Nt,Bt])];return bt.body?In.push(" ",Qe("body")):In.push(Ye.semi?";":""),In}function qe(Se,Ye,Qe,bt){let Nt=Se.getValue(),Bt=[];if(Nt.async&&Bt.push("async "),be(Se,Ye))Bt.push(Qe(["params",0]));else{let In=bt&&(bt.expandLastArg||bt.expandFirstArg),Tn=Ie(Se,Qe,Ye);if(In){if(Q(Tn))throw new ee;Tn=S(j(Tn))}Bt.push(S([ge(Se,Qe,Ye,In,!0),Tn]))}let cn=b(Se,Ye,!0,In=>{let Tn=d(Ye.originalText,In,ce);return Tn!==!1&&Ye.originalText.slice(Tn,Tn+2)==="=>"});return cn&&Bt.push(" ",cn),Bt}function nt(Se,Ye,Qe,bt,Nt,Bt){let cn=Se.getName(),In=Se.getParentNode(),Tn=M(In)&&cn==="callee",ln=!!(Ye&&Ye.assignmentLayout),Dn=Bt.body.type!=="BlockStatement"&&Bt.body.type!=="ObjectExpression"&&Bt.body.type!=="SequenceExpression",ot=Tn&&Dn||Ye&&Ye.assignmentLayout==="chain-tail-arrow-chain",Ee=Symbol("arrow-chain");return Bt.body.type==="SequenceExpression"&&(Nt=S(["(",P([v,Nt]),v,")"])),S([S(P([Tn||ln?v:"",S(C([" =>",h],Qe),{shouldBreak:bt})]),{id:Ee,shouldBreak:ot})," =>",x(Dn?P([h,Nt]):[" ",Nt],{groupId:Ee}),Tn?_(v,"",{groupId:Ee}):""])}function Je(Se,Ye,Qe,bt){let Nt=Se.getValue(),Bt=[],cn=[],In=!1;if(function Ee(){let dt=qe(Se,Ye,Qe,bt);if(Bt.length===0)Bt.push(dt);else{let{leading:Oe,trailing:ct}=D(Se,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"||bt&&bt.expandLastArg?cn.unshift(Qe("body",bt)):(Nt=Nt.body,Se.call(Ee,"body"))}(),Bt.length>1)return nt(Se,bt,Bt,In,cn,Nt);let Tn=Bt;if(Tn.push(" =>"),!X(Ye.originalText,Nt.body)&&(Nt.body.type==="ArrayExpression"||Nt.body.type==="ObjectExpression"||Nt.body.type==="BlockStatement"||ne(Nt.body)||Z(Nt.body,Ye.originalText)||Nt.body.type==="ArrowFunctionExpression"||Nt.body.type==="DoExpression"))return S([...Tn," ",cn]);if(Nt.body.type==="SequenceExpression")return S([...Tn,S([" (",P([v,cn]),v,")"])]);let ln=(bt&&bt.expandLastArg||Se.getParentNode().type==="JSXExpressionContainer")&&!R(Nt),Dn=bt&&bt.expandLastArg&&De(Ye,"all"),ot=Nt.body.type==="ConditionalExpression"&&!F(Nt.body,Ee=>Ee.type==="ObjectExpression");return S([...Tn,S([P([h,ot?_("","("):"",cn,ot?_("",")"):""]),ln?[_(Dn?",":""),v]:""])])}function ht(Se){let Ye=$(Se);return Ye.length===1&&!Se.typeParameters&&!R(Se,T.Dangling)&&Ye[0].type==="Identifier"&&!Ye[0].typeAnnotation&&!R(Ye[0])&&!Ye[0].optional&&!Se.predicate&&!Se.returnType}function be(Se,Ye){if(Ye.arrowParens==="always")return!1;if(Ye.arrowParens==="avoid"){let Qe=Se.getValue();return ht(Qe)}return!1}function Ie(Se,Ye,Qe){let bt=Se.getValue(),Nt=Ye("returnType");if(bt.returnType&&G(Qe.originalText,bt.returnType))return[" /*: ",Nt," */"];let Bt=[Nt];return bt.returnType&&bt.returnType.typeAnnotation&&Bt.unshift(": "),bt.predicate&&Bt.push(bt.returnType?" ":": ",Ye("predicate")),Bt}function ft(Se,Ye,Qe){let bt=Se.getValue(),Nt=Ye.semi?";":"",Bt=[];bt.argument&&($e(Ye,bt.argument)?Bt.push([" (",P([L,Qe("argument")]),L,")"]):J(bt.argument)||bt.argument.type==="SequenceExpression"?Bt.push(S([_(" ("," "),P([v,Qe("argument")]),v,_(")")])):Bt.push(" ",Qe("argument")));let cn=y(bt),In=c(cn),Tn=In&&w(In);return Tn&&Bt.push(Nt),R(bt,T.Dangling)&&Bt.push(" ",b(Se,Ye,!0)),Tn||Bt.push(Nt),Bt}function pt(Se,Ye,Qe){return["return",ft(Se,Ye,Qe)]}function Jt(Se,Ye,Qe){return["throw",ft(Se,Ye,Qe)]}function $e(Se,Ye){if(X(Se.originalText,Ye))return!0;if(z(Ye)){let Qe=Ye,bt;for(;bt=ie(Qe);)if(Qe=bt,X(Se.originalText,Qe))return!0}return!1}E.exports={printFunction:Ue,printArrowFunction:Je,printMethod:me,printReturnStatement:pt,printThrowStatement:Jt,printMethodInternal:ue,shouldPrintParamsWithoutParens:be}}}),Gf=Fe({"src/language-js/print/decorators.js"(m,E){Re();var{isNonEmptyArray:f,hasNewline:b}=ye(),{builders:{line:D,hardline:c,join:d,breakParent:h,group:v}}=wn(),{locStart:S,locEnd:P}=si(),{getParentExportDeclaration:_}=pr();function L(ee,$,X){let G=ee.getValue();return v([d(D,ee.map(X,"decorators")),j(G,$)?c:D])}function C(ee,$,X){return[d(c,ee.map(X,"declaration","decorators")),c]}function x(ee,$,X){let G=ee.getValue(),{decorators:ne}=G;if(!f(ne)||Q(ee.getParentNode()))return;let Z=G.type==="ClassExpression"||G.type==="ClassDeclaration"||j(G,$);return[_(ee)?c:Z?h:"",d(D,ee.map(X,"decorators")),D]}function j(ee,$){return ee.decorators.some(X=>b($.originalText,P(X)))}function Q(ee){if(ee.type!=="ExportDefaultDeclaration"&&ee.type!=="ExportNamedDeclaration"&&ee.type!=="DeclareExportDeclaration")return!1;let $=ee.declaration&&ee.declaration.decorators;return f($)&&S(ee)===S($[0])}E.exports={printDecorators:x,printClassMemberDecorators:L,printDecoratorsBeforeExport:C,hasDecoratorsBeforeExport:Q}}}),Ro=Fe({"src/language-js/print/class.js"(m,E){Re();var{isNonEmptyArray:f,createGroupIdMapper:b}=ye(),{printComments:D,printDanglingComments:c}=Ir(),{builders:{join:d,line:h,hardline:v,softline:S,group:P,indent:_,ifBreak:L}}=wn(),{hasComment:C,CommentCheckFlags:x}=pr(),{getTypeParametersGroupId:j}=dl(),{printMethod:Q}=hl(),{printOptionalToken:ee,printTypeAnnotation:$,printDefiniteToken:X}=xi(),{printPropertyKey:G}=jo(),{printAssignment:ne}=Oo(),{printClassMemberDecorators:Z}=Gf();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&&C(ce.id,x.Trailing)||ce.typeParameters&&C(ce.typeParameters,x.Trailing)||ce.superClass&&C(ce.superClass)||f(ce.extends)||f(ce.mixins)||f(ce.implements),Ne=[],se=[];if(ce.id&&Ne.push(" ",ie("id")),Ne.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,P(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=[...Ne,_(se)]:Ue=_([...Ne,se]),ge.push(P(Ue,{id:F(ce)}))}else ge.push(...Ne,...se);return ge.push(" ",ie("body")),ge}var F=b("heritageGroup");function J(U){return L(v,"",{groupId:F(U)})}function w(U){return["superClass","extends","mixins","implements"].filter(z=>!!U[z]).length>1}function R(U){return U.typeParameters&&!C(U.typeParameters,x.Trailing|x.Line)&&!w(U)}function y(U,z,ie,ce){let ge=U.getValue();if(!f(ge[ce]))return"";let fe=c(U,z,!0,Ne=>{let{marker:se}=Ne;return se===ce});return[R(ge)?L(" ",h,{groupId:j(ge.typeParameters)}):h,fe,fe&&v,ce,P(_([h,d([",",h],U.map(ie,ce))]))]}function T(U,z,ie){let ce=ie("superClass");return U.getParentNode().type==="AssignmentExpression"?P(L(["(",_([S,ce]),S,")"],ce)):ce}function M(U,z,ie){let ce=U.getValue(),ge=[];return f(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 f(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),ee(U),X(U),$(U,z,ie)),[ne(U,z,ie,ge," =","value"),fe]}E.exports={printClass:De,printClassMethod:M,printClassProperty:q,printHardlineAfterHeritage:J}}}),P0=Fe({"src/language-js/print/interface.js"(m,E){Re();var{isNonEmptyArray:f}=ye(),{builders:{join:b,line:D,group:c,indent:d,ifBreak:h}}=wn(),{hasComment:v,identity:S,CommentCheckFlags:P}=pr(),{getTypeParametersGroupId:_}=dl(),{printTypeScriptModifiers:L}=xi();function C(x,j,Q){let ee=x.getValue(),$=[];ee.declare&&$.push("declare "),ee.type==="TSInterfaceDeclaration"&&$.push(ee.abstract?"abstract ":"",L(x,j,Q)),$.push("interface");let X=[],G=[];ee.type!=="InterfaceTypeAnnotation"&&X.push(" ",Q("id"),Q("typeParameters"));let ne=ee.typeParameters&&!v(ee.typeParameters,P.Trailing|P.Line);return f(ee.extends)&&G.push(ne?h(" ",D,{groupId:_(ee.typeParameters)}):D,"extends ",(ee.extends.length===1?S:d)(b([",",D],x.map(Q,"extends")))),ee.id&&v(ee.id,P.Trailing)||f(ee.extends)?ne?$.push(c([...X,d(G)])):$.push(c(d([...X,...G]))):$.push(...X,...G),$.push(" ",Q("body")),c($)}E.exports={printInterface:C}}}),B0=Fe({"src/language-js/print/module.js"(m,E){Re();var{isNonEmptyArray:f}=ye(),{builders:{softline:b,group:D,indent:c,join:d,line:h,ifBreak:v,hardline:S}}=wn(),{printDanglingComments:P}=Ir(),{hasComment:_,CommentCheckFlags:L,shouldPrintComma:C,needsHardlineAfterDanglingComment:x,isStringLiteral:j,rawText:Q}=pr(),{locStart:ee,hasSameLoc:$}=si(),{hasDecoratorsBeforeExport:X,printDecoratorsBeforeExport:G}=Gf();function ne(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:Ne}=ie;return ce.push("export"),(ie.default||ge==="ExportDefaultDeclaration")&&ce.push(" default"),_(ie,L.Dangling)&&(ce.push(" ",P(q,U,!0)),x(ie)&&ce.push(S)),Ne?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:Ne}=ie;return ge.push("export"),fe==="type"&&ge.push(" type"),ge.push(" *"),Ne&&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(f(ie.specifiers)){let ge=[],fe=[];q.each(()=>{let Ne=q.getValue().type;if(Ne==="ExportNamespaceSpecifier"||Ne==="ExportDefaultSpecifier"||Ne==="ImportNamespaceSpecifier"||Ne==="ImportDefaultSpecifier")ge.push(z());else if(Ne==="ExportSpecifier"||Ne==="ImportSpecifier")fe.push(z());else throw new Error(`Unknown specifier type ${JSON.stringify(Ne)}`)},"specifiers"),ce.push(d(", ",ge)),fe.length>0&&(ge.length>0&&ce.push(", "),fe.length>1||ge.length>0||ie.specifiers.some(Ne=>_(Ne))?ce.push(D(["{",c([U.bracketSpacing?h:b,d([",",h],fe)]),v(C(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"||f(ge)||ie==="type"?!1:!/{\s*}/.test(U.originalText.slice(ee(q),ee(ce)))}function y(q,U,z){let ie=q.getNode();return f(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 Ne=ce.startsWith("Import"),se=Ne?"imported":"local",Ue=Ne?"local":"exported",me=ie[se],ue=ie[Ue],qe="",nt="";return ce==="ExportNamespaceSpecifier"||ce==="ImportNamespaceSpecifier"?qe="*":me&&(qe=z(se)),ue&&!M(ie)&&(nt=z(Ue)),ge.push(qe,qe&&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:ne,printExportDeclaration:Z,printExportAllDeclaration:De,printModuleSpecifier:T}}}),Jf=Fe({"src/language-js/print/object.js"(m,E){Re();var{printDanglingComments:f}=Ir(),{builders:{line:b,softline:D,group:c,indent:d,ifBreak:h,hardline:v}}=wn(),{getLast:S,hasNewlineInRange:P,hasNewline:_,isNonEmptyArray:L}=ye(),{shouldPrintComma:C,hasComment:x,getComments:j,CommentCheckFlags:Q,isNextLineEmpty:ee}=pr(),{locStart:$,locEnd:X}=si(),{printOptionalToken:G,printTypeAnnotation:ne}=xi(),{shouldHugFunctionParameters:Z}=fl(),{shouldHugType:De}=pl(),{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&&P(R.originalText,$(M),$(ie)),Ne=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=[],qe=me.map(be=>{let Ie=[...ue,c(be.printed)];return ue=[Ne,b],(be.node.type==="TSPropertySignature"||be.node.type==="TSMethodSignature"||be.node.type==="TSConstructSignatureDeclaration")&&x(be.node,Q.PrettierIgnore)&&ue.shift(),ee(be.node,R)&&ue.push(v),Ie});if(M.inexact){let be;if(x(M,Q.Dangling)){let Ie=x(M,Q.Line);be=[f(w,R,!0),Ie||_(R.originalText,X(S(j(M))))?v:b,"..."]}else be=["..."];qe.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(qe.length===0){if(!x(M,Q.Dangling))return[se,Ue,ne(w,R,y)];ht=c([se,f(w,R),D,Ue,G(w),ne(w,R,y)])}else ht=[ge&&L(M.properties)?F(ce):"",se,d([R.bracketSpacing?b:D,...qe]),h(Je&&(Ne!==","||C(R))?Ne:""),R.bracketSpacing?b:D,Ue,G(w),ne(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:c(ht,{shouldBreak:fe})}E.exports={printObject:J}}}),t2=Fe({"src/language-js/print/flow.js"(m,E){Re();var f=Mo(),{printDanglingComments:b}=Ir(),{printString:D,printNumber:c}=ye(),{builders:{hardline:d,softline:h,group:v,indent:S}}=wn(),{getParentExportDeclaration:P,isFunctionNotation:_,isGetterOrSetter:L,rawText:C,shouldPrintComma:x}=pr(),{locStart:j,locEnd:Q}=si(),{replaceTextEndOfLine:ee}=ea(),{printClass:$}=Ro(),{printOpaqueType:X,printTypeAlias:G,printIntersectionType:ne,printUnionType:Z,printFunctionType:De,printTupleType:F,printIndexedAccessType:J}=pl(),{printInterface:w}=P0(),{printTypeParameter:R,printTypeParameters:y}=dl(),{printExportDeclaration:T,printExportAllDeclaration:M}=B0(),{printArrayItems:q}=Io(),{printObject:U}=Jf(),{printPropertyKey:z}=jo(),{printOptionalToken:ie,printTypeAnnotation:ce,printRestSpread:ge}=xi();function fe(se,Ue,me){let ue=se.getValue(),qe=Ue.semi?";":"",nt=[];switch(ue.type){case"DeclareClass":return Ne(se,$(se,Ue,me));case"DeclareFunction":return Ne(se,["function ",me("id"),ue.predicate?" ":"",me("predicate"),qe]);case"DeclareModule":return Ne(se,["module ",me("id")," ",me("body")]);case"DeclareModuleExports":return Ne(se,["module.exports",": ",me("typeAnnotation"),qe]);case"DeclareVariable":return Ne(se,["var ",me("id"),qe]);case"DeclareOpaqueType":return Ne(se,X(se,Ue,me));case"DeclareInterface":return Ne(se,w(se,Ue,me));case"DeclareTypeAlias":return Ne(se,G(se,Ue,me));case"DeclareExportDeclaration":return Ne(se,T(se,Ue,me));case"DeclareExportAllDeclaration":return Ne(se,M(se,Ue,me));case"OpaqueType":return X(se,Ue,me);case"TypeAlias":return G(se,Ue,me);case"IntersectionTypeAnnotation":return ne(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 f.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,L(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 ee(D(C(ue),Ue));case"NumberLiteralTypeAnnotation":f.strictEqual(typeof ue.value,"number");case"BigIntLiteralTypeAnnotation":return ue.extra?c(ue.extra.raw):c(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 Ne(se,Ue){let me=P(se);return me?(f.strictEqual(me.type,"DeclareExportDeclaration"),Ue):["declare ",Ue]}E.exports={printFlow:fe}}}),n2=Fe({"src/language-js/utils/is-ts-keyword-type.js"(m,E){Re();function f(b){let{type:D}=b;return D.startsWith("TS")&&D.endsWith("Keyword")}E.exports=f}}),M0=Fe({"src/language-js/print/ternary.js"(m,E){Re();var{hasNewlineInRange:f}=ye(),{isJsxNode:b,getComments:D,isCallExpression:c,isMemberExpression:d,isTSTypeExpression:h}=pr(),{locStart:v,locEnd:S}=si(),P=ra(),{builders:{line:_,softline:L,group:C,indent:x,align:j,ifBreak:Q,dedent:ee,breakParent:$}}=wn();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 ne=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(c(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[ne.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),Ne=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,qe=Ue;if(y&&(b(R[q[0]])||b(U)||b(z)||X(qe))){ce=!0,Ne=!0;let ft=Jt=>[Q("("),x([L,Jt]),L,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?ee(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=>P(ft)&&f(J.originalText,v(ft),S(ft))),Je=ft=>ge===ue?C(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),Ne?ie:x(ie),y&&ht&&!be?L:""]);return fe||be?C([x([L,Ie]),L]):Ie}E.exports={printTernary:De}}}),I0=Fe({"src/language-js/print/statement.js"(m,E){Re();var{builders:{hardline:f}}=wn(),b=Ha(),{getLeftSidePathName:D,hasNakedLeftSide:c,isJsxNode:d,isTheOnlyJsxElementInMarkdown:h,hasComment:v,CommentCheckFlags:S,isNextLineEmpty:P}=pr(),{shouldPrintParamsWithoutParens:_}=hl();function L(G,ne,Z,De){let F=G.getValue(),J=[],w=F.type==="ClassBody",R=C(F[De]);return G.each((y,T,M)=>{let q=y.getValue();if(q.type==="EmptyStatement")return;let U=Z();!ne.semi&&!w&&!h(ne,y)&&x(y,ne)?v(q,S.Leading)?J.push(Z([],{needsSemi:!0})):J.push(";",U):J.push(U),!ne.semi&&w&&$(q)&&X(q,M[T+1])&&J.push(";"),q!==R&&(J.push(f),P(q,ne)&&J.push(f))},De),J}function C(G){for(let ne=G.length-1;ne>=0;ne--){let Z=G[ne];if(Z.type!=="EmptyStatement")return Z}}function x(G,ne){return G.getNode().type!=="ExpressionStatement"?!1:G.call(Z=>j(Z,ne),"expression")}function j(G,ne){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,ne))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,ne)?!0:c(Z)?G.call(De=>j(De,ne),...D(G,Z)):!1}function Q(G,ne,Z){return L(G,ne,Z,"body")}function ee(G,ne,Z){return L(G,ne,Z,"consequent")}var $=G=>{let{type:ne}=G;return ne==="ClassProperty"||ne==="PropertyDefinition"||ne==="ClassPrivateProperty"||ne==="ClassAccessorProperty"||ne==="AccessorProperty"||ne==="TSAbstractPropertyDefinition"||ne==="TSAbstractAccessorProperty"};function X(G,ne){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(!ne||ne.static||ne.accessibility)return!1;if(!ne.computed){let F=ne.key&&ne.key.name;if(F==="in"||F==="instanceof")return!0}if($(ne)&&ne.variance&&!ne.static&&!ne.declare)return!0;switch(ne.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return ne.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((ne.value?ne.value.async:ne.async)||ne.kind==="get"||ne.kind==="set")return!1;let F=ne.value?ne.value.generator:ne.generator;return!!(ne.computed||F)}case"TSIndexSignature":return!0}return!1}E.exports={printBody:Q,printSwitchCaseConsequent:ee}}}),O0=Fe({"src/language-js/print/block.js"(m,E){Re();var{printDanglingComments:f}=Ir(),{isNonEmptyArray:b}=ye(),{builders:{hardline:D,indent:c}}=wn(),{hasComment:d,CommentCheckFlags:h,isNextLineEmpty:v}=pr(),{printHardlineAfterHeritage:S}=Ro(),{printBody:P}=I0();function _(C,x,j){let Q=C.getValue(),ee=[];if(Q.type==="StaticBlock"&&ee.push("static "),Q.type==="ClassBody"&&b(Q.body)){let X=C.getParentNode();ee.push(S(X))}ee.push("{");let $=L(C,x,j);if($)ee.push(c([D,$]),D);else{let X=C.getParentNode(),G=C.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"||ee.push(D)}return ee.push("}"),ee}function L(C,x,j){let Q=C.getValue(),ee=b(Q.directives),$=Q.body.some(ne=>ne.type!=="EmptyStatement"),X=d(Q,h.Dangling);if(!ee&&!$&&!X)return"";let G=[];if(ee&&C.each((ne,Z,De)=>{G.push(j()),(Z<De.length-1||$||X)&&(G.push(D),v(ne.getValue(),x)&&G.push(D))},"directives"),$&&G.push(P(C,x,j)),X&&G.push(f(C,x,!0)),Q.type==="Program"){let ne=C.getParentNode();(!ne||ne.type!=="ModuleExpression")&&G.push(D)}return G}E.exports={printBlock:_,printBlockBody:L}}}),r2=Fe({"src/language-js/print/typescript.js"(m,E){Re();var{printDanglingComments:f}=Ir(),{hasNewlineInRange:b}=ye(),{builders:{join:D,line:c,hardline:d,softline:h,group:v,indent:S,conditionalGroup:P,ifBreak:_}}=wn(),{isStringLiteral:L,getTypeScriptMappedTypeModifier:C,shouldPrintComma:x,isCallExpression:j,isMemberExpression:Q}=pr(),ee=n2(),{locStart:$,locEnd:X}=si(),{printOptionalToken:G,printTypeScriptModifiers:ne}=xi(),{printTernary:Z}=M0(),{printFunctionParameters:De,shouldGroupFunctionParameters:F}=fl(),{printTemplateLiteral:J}=Ya(),{printArrayItems:w}=Io(),{printObject:R}=Jf(),{printClassProperty:y,printClassMethod:T}=Ro(),{printTypeParameter:M,printTypeParameters:q}=dl(),{printPropertyKey:U}=jo(),{printFunction:z,printMethodInternal:ie}=hl(),{printInterface:ce}=P0(),{printBlock:ge}=O0(),{printTypeAlias:fe,printIntersectionType:Ne,printUnionType:se,printFunctionType:Ue,printTupleType:me,printIndexedAccessType:ue,printJSDocType:qe}=pl();function nt(Je,ht,be){let Ie=Je.getValue();if(!Ie.type.startsWith("TS"))return;if(ee(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,">"]),Se=[_("("),S([h,be("expression")]),h,_(")")];return Jt?P([[$e,be("expression")],[$e,v(Se,{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)?",":""):"",Se=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?Se:"",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?c:h,be("typeParameter"),Ie.optional?C(Ie.optional,"?"):"",Ie.typeAnnotation?": ":"",be("typeAnnotation"),_(ft)]),f(Je,ht,!0),ht.bracketSpacing?c: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),Se=Ie.returnType?"returnType":"typeAnnotation",Ye=Ie[Se],Qe=Ye?be(Se):"",bt=F(Ie,Qe);return pt.push(bt?v($e):$e),Ye&&pt.push(": ",v(Qe)),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(ne(Je,ht,be)),Ie.const&&pt.push("const "),pt.push("enum ",be("id")," "),Ie.members.length===0?pt.push(v(["{",f(Je,ht),h,"}"])):pt.push(v(["{",S([d,w(Je,ht,"members",be),x(ht,"es5")?",":""]),f(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=L(Ie.id),Se=Jt.type==="TSModuleDeclaration",Ye=Ie.body&&Ie.body.type==="TSModuleDeclaration";if(Se)pt.push(".");else{Ie.declare&&pt.push("declare "),pt.push(ne(Je,ht,be));let Qe=ht.originalText.slice($(Ie),$(Ie.id));Ie.id.type==="Identifier"&&Ie.id.name==="global"&&!/namespace|module/.test(Qe)||pt.push($e||/(?:^|\s)module(?:\s|$)/.test(Qe)?"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 Ne(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 qe(Je,be,"?");case"TSJSDocNonNullableType":return qe(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}}}),i2=Fe({"src/language-js/print/comment.js"(m,E){Re();var{hasNewline:f}=ye(),{builders:{join:b,hardline:D},utils:{replaceTextEndOfLine:c}}=wn(),{isLineComment:d}=pr(),{locStart:h,locEnd:v}=si(),S=ra();function P(C,x){let j=C.getValue();if(d(j))return x.originalText.slice(h(j),v(j)).trimEnd();if(S(j)){if(_(j)){let $=L(j);return j.trailing&&!f(x.originalText,h(j),{backwards:!0})?[D,$]:$}let Q=v(j),ee=x.originalText.slice(Q-3,Q)==="*-/";return["/*",c(j.value),ee?"*-/":"*/"]}throw new Error("Not a comment: "+JSON.stringify(j))}function _(C){let x=`*${C.value}*`.split(`
209
- `);return x.length>1&&x.every(j=>j.trim()[0]==="*")}function L(C){let x=C.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:P}}}),s2=Fe({"src/language-js/print/literal.js"(m,E){Re();var{printString:f,printNumber:b}=ye(),{replaceTextEndOfLine:D}=ea(),{printDirective:c}=xi();function d(P,_){let L=P.getNode();switch(L.type){case"RegExpLiteral":return S(L);case"BigIntLiteral":return v(L.bigint||L.extra.raw);case"NumericLiteral":return b(L.extra.raw);case"StringLiteral":return D(f(L.extra.raw,_));case"NullLiteral":return"null";case"BooleanLiteral":return String(L.value);case"DecimalLiteral":return b(L.value)+"m";case"Literal":{if(L.regex)return S(L.regex);if(L.bigint)return v(L.raw);if(L.decimal)return b(L.decimal)+"m";let{value:C}=L;return typeof C=="number"?b(L.raw):typeof C=="string"?h(P)?c(L.raw,_):D(f(L.raw,_)):String(C)}}}function h(P){if(P.getName()!=="expression")return;let _=P.getParentNode();return _.type==="ExpressionStatement"&&_.directive}function v(P){return P.toLowerCase()}function S(P){let{pattern:_,flags:L}=P;return L=[...L].sort().join(""),`/${_}/${L}`}E.exports={printLiteral:d}}}),a2=Fe({"src/language-js/printer-estree.js"(m,E){Re();var{printDanglingComments:f}=Ir(),{hasNewline:b}=ye(),{builders:{join:D,line:c,hardline:d,softline:h,group:v,indent:S},utils:{replaceTextEndOfLine:P}}=wn(),_=Vv(),L=qv(),{insertPragma:C}=F0(),x=N0(),j=Ha(),Q=_0(),{hasFlowShorthandAnnotationComment:ee,hasComment:$,CommentCheckFlags:X,isTheOnlyJsxElementInMarkdown:G,isLineComment:ne,isNextLineEmpty:Z,needsHardlineAfterDanglingComment:De,hasIgnoreComment:F,isCallExpression:J,isMemberExpression:w,markerForIfWithoutBlockAndSameLineComment:R}=pr(),{locStart:y,locEnd:T}=si(),M=ra(),{printHtmlBinding:q,isVueEventBindingExpression:U}=Xv(),{printAngular:z}=Kv(),{printJsx:ie,hasJsxIgnoreComment:ce}=Zv(),{printFlow:ge}=t2(),{printTypescript:fe}=r2(),{printOptionalToken:Ne,printBindExpressionCallee:se,printTypeAnnotation:Ue,adjustClause:me,printRestSpread:ue,printDefiniteToken:qe,printDirective:nt}=xi(),{printImportDeclaration:Je,printExportDeclaration:ht,printExportAllDeclaration:be,printModuleSpecifier:Ie}=B0(),{printTernary:ft}=M0(),{printTemplateLiteral:pt}=Ya(),{printArray:Jt}=Io(),{printObject:$e}=Jf(),{printClass:Se,printClassMethod:Ye,printClassProperty:Qe}=Ro(),{printProperty:bt}=jo(),{printFunction:Nt,printArrowFunction:Bt,printMethod:cn,printReturnStatement:In,printThrowStatement:Tn}=hl(),{printCallExpression:ln}=L0(),{printVariableDeclarator:Dn,printAssignmentExpression:ot}=Oo(),{printBinaryishExpression:Ee}=Wf(),{printSwitchCaseConsequent:dt}=I0(),{printMemberExpression:Oe}=k0(),{printBlock:ct,printBlockBody:Zt}=O0(),{printComment:Ut}=i2(),{printLiteral:gt}=s2(),{printDecorators:V}=Gf();function _e($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([c,...An])]),An.unshift("("),Cr&&Cr.needsSemi&&An.unshift(";"),ee(br)){let[an]=br.trailingComments;An.push(" /*",an.value.trimStart(),"*/"),an.printed=!0}return ar&&An.push(c),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[gt,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=f($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,Ne($t),qe($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 Tn($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):bt($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([c,Mt()]))},"expressions"),v(Bn)}return v(D([",",c],$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),_n;return An.length===1&&!$(sn.declarations[0])?_n=An[0]:An.length>0&&(_n=S(An[0])),nn=[sn.declare?"declare ":"",sn.kind,_n?[" ",_n]:"",S(An.slice(1).map(Sn=>[",",an&&!ar?d:c,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(f($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=f($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"),";",c,Mt("test"),";",c,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(" ",f($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 Se($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 Qe($t,un,Mt);case"TemplateElement":return P(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)&&!ne($t)&&$t.type!=="EmptyStatement"&&$t.type!=="TemplateElement"&&$t.type!=="Import"&&$t.type!=="TSEmptyBodyFunctionExpression"}E.exports={preprocess:Q,print:_e,embed:_,insertPragma:C,massageAstNode:L,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}}}),o2=Fe({"src/language-js/printer-estree-json.js"(m,E){Re();var{builders:{hardline:f,indent:b,join:D}}=wn(),c=_0();function d(P,_,L){let C=P.getValue();switch(C.type){case"JsonRoot":return[L("node"),f];case"ArrayExpression":{if(C.elements.length===0)return"[]";let x=P.map(()=>P.getValue()===null?"null":L(),"elements");return["[",b([f,D([",",f],x)]),f,"]"]}case"ObjectExpression":return C.properties.length===0?"{}":["{",b([f,D([",",f],P.map(L,"properties"))]),f,"}"];case"ObjectProperty":return[L("key"),": ",L("value")];case"UnaryExpression":return[C.operator==="+"?"":C.operator,L("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return C.value?"true":"false";case"StringLiteral":return JSON.stringify(C.value);case"NumericLiteral":return h(P)?JSON.stringify(String(C.value)):JSON.stringify(C.value);case"Identifier":return h(P)?JSON.stringify(C.name):C.name;case"TemplateLiteral":return L(["quasis",0]);case"TemplateElement":return JSON.stringify(C.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(C.type))}}function h(P){return P.getName()==="key"&&P.getParentNode().type==="ObjectProperty"}var v=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function S(P,_){let{type:L}=P;if(L==="ObjectProperty"){let{key:C}=P;C.type==="Identifier"?_.key={type:"StringLiteral",value:C.name}:C.type==="NumericLiteral"&&(_.key={type:"StringLiteral",value:String(C.value)});return}if(L==="UnaryExpression"&&P.operator==="+")return _.argument;if(L==="ArrayExpression"){for(let[C,x]of P.elements.entries())x===null&&_.elements.splice(C,0,{type:"NullLiteral"});return}if(L==="TemplateLiteral")return{type:"StringLiteral",value:P.quasis[0].value.cooked}}S.ignoredProperties=v,E.exports={preprocess:c,print:d,massageAstNode:S}}}),za=Fe({"src/common/common-options.js"(m,E){Re();var f="Common";E.exports={bracketSpacing:{since:"0.0.0",category:f,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:f,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:f,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:f,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:f,type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}}}}),u2=Fe({"src/language-js/options.js"(m,E){Re();var f=za(),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:f.bracketSameLine,bracketSpacing:f.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:f.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:f.singleAttributePerLine}}}),l2=Fe({"src/language-js/parse/parsers.js"(){Re()}}),Yf=Fe({"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}}}),c2=Fe({"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}}}),f2=Fe({"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}}}),j0=Fe({"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}}}),p2=Fe({"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}}}),d2=Fe({"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}}}),h2=Fe({"src/language-js/index.js"(m,E){Re();var f=na(),b=a2(),D=o2(),c=u2(),d=l2(),h=[f(Yf(),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(P=>P!==".jsx"),".wxs"]})),f(Yf(),()=>({name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})),f(Yf(),()=>({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})),f(c2(),()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]})),f(f2(),()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]})),f(j0(),()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"]})),f(j0(),S=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:S.extensions.filter(P=>P!==".jsonl")})),f(p2(),S=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[...S.filenames,".eslintrc",".swcrc"]})),f(d2(),()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}))],v={estree:b,"estree-json":D};E.exports={languages:h,options:c,printers:v,parsers:d}}}),m2=Fe({"src/language-css/clean.js"(m,E){Re();var{isFrontMatterNode:f}=ye(),b=$r(),D=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function c(h,v,S){if(f(h)&&h.lang==="yaml"&&delete v.value,h.type==="css-comment"&&S.type==="css-root"&&S.nodes.length>0&&((S.nodes[0]===h||f(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,(P,_,L)=>{let C=Number(_);return Number.isNaN(C)?P:C+L.toLowerCase()})),h.type==="selector-tag"){let P=h.value.toLowerCase();["from","to"].includes(P)&&(v.value=P)}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 P=h.groups.findIndex(_=>_.type==="value-number"&&_.unit==="...");P!==-1&&(v.groups[P].unit="",v.groups.splice(P+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(h.type==="value-comma_group"&&h.groups.some(P=>P.type==="value-atword"&&P.value.endsWith("[")||P.type==="value-word"&&P.value.startsWith("]")))return{type:"value-atword",value:h.groups.map(P=>P.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}c.ignoredProperties=D;function d(h){return h.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")}E.exports=c}}),Hf=Fe({"src/utils/front-matter/print.js"(m,E){Re();var{builders:{hardline:f,markAsRoot:b}}=wn();function D(c,d){if(c.lang==="yaml"){let h=c.value.trim(),v=h?d(h,{parser:"yaml"},{stripTrailingHardline:!0}):"";return b([c.startDelimiter,f,v,v?f:"",c.endDelimiter])}}E.exports=D}}),g2=Fe({"src/language-css/embed.js"(m,E){Re();var{builders:{hardline:f}}=wn(),b=Hf();function D(c,d,h){let v=c.getValue();if(v.type==="front-matter"){let S=b(v,h);return S?[S,f]:""}}E.exports=D}}),R0=Fe({"src/utils/front-matter/parse.js"(m,E){Re();var f=new RegExp("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function b(D){let c=D.match(f);if(!c)return{content:D};let{startDelimiter:d,language:h,value:v="",endDelimiter:S}=c.groups,P=h.trim()||"yaml";if(d==="+++"&&(P="toml"),P!=="yaml"&&d!==S)return{content:D};let[_]=c;return{frontMatter:{type:"front-matter",lang:P,value:v,startDelimiter:d,endDelimiter:S,raw:_.replace(/\n$/,"")},content:_.replace(/[^\n]/g," ")+D.slice(_.length)}}E.exports=b}}),y2=Fe({"src/language-css/pragma.js"(m,E){Re();var f=F0(),b=R0();function D(d){return f.hasPragma(b(d).content)}function c(d){let{frontMatter:h,content:v}=b(d);return(h?h.raw+`
211
-
212
- `:"")+f.insertPragma(v)}E.exports={hasPragma:D,insertPragma:c}}}),D2=Fe({"src/language-css/utils/index.js"(m,E){Re();var f=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,Se){let Ye=Array.isArray(Se)?Se:[Se],Qe=-1,bt;for(;bt=$e.getParentNode(++Qe);)if(Ye.includes(bt.type))return Qe;return-1}function D($e,Se){let Ye=b($e,Se);return Ye===-1?null:$e.getParentNode(Ye)}function c($e){var Se;let Ye=D($e,"css-decl");return Ye==null||(Se=Ye.prop)===null||Se===void 0?void 0:Se.toLowerCase()}var d=new Set(["initial","inherit","unset","revert"]);function h($e){return d.has($e.toLowerCase())}function v($e,Se){let Ye=D($e,"css-atrule");return(Ye==null?void 0:Ye.name)&&Ye.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(Se.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 P($e,Se){var Ye;let Qe=D($e,"value-func");return(Qe==null||(Ye=Qe.value)===null||Ye===void 0?void 0:Ye.toLowerCase())===Se}function _($e){var Se;let Ye=D($e,"css-rule"),Qe=Ye==null||(Se=Ye.raws)===null||Se===void 0?void 0:Se.selector;return Qe&&(Qe.startsWith(":import")||Qe.startsWith(":export"))}function L($e,Se){let Ye=Array.isArray(Se)?Se:[Se],Qe=D($e,"css-atrule");return Qe&&Ye.includes(Qe.name.toLowerCase())}function C($e){let Se=$e.getValue(),Ye=D($e,"css-atrule");return(Ye==null?void 0:Ye.name)==="import"&&Se.groups[0].value==="url"&&Se.groups.length===2}function x($e){return $e.type==="value-func"&&$e.value.toLowerCase()==="url"}function j($e,Se){var Ye;let Qe=(Ye=$e.getParentNode())===null||Ye===void 0?void 0:Ye.nodes;return Qe&&Qe.indexOf(Se)===Qe.length-1}function Q($e){let{selector:Se}=$e;return Se?typeof Se=="string"&&/^@.+:.*$/.test(Se)||Se.value&&/^@.+:.*$/.test(Se.value):!1}function ee($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 ne($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)||ne($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 Se;return((Se=$e.raws)===null||Se===void 0?void 0:Se.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,Se){return $e.value==="$$"&&$e.type==="value-func"&&(Se==null?void 0:Se.type)==="value-word"&&!Se.raws.before}function z($e){var Se,Ye;return((Se=$e.value)===null||Se===void 0?void 0:Se.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 Se,Ye,Qe;return((Se=$e.value)===null||Se===void 0||(Ye=Se.group)===null||Ye===void 0||(Qe=Ye.group)===null||Qe===void 0?void 0:Qe.type)==="value-paren_group"&&$e.value.group.group.open!==null&&$e.value.group.group.close!==null}function ce($e){var Se;return((Se=$e.raws)===null||Se===void 0?void 0:Se.before)===""}function ge($e){var Se,Ye;return $e.type==="value-comma_group"&&((Se=$e.groups)===null||Se===void 0||(Ye=Se[1])===null||Ye===void 0?void 0:Ye.type)==="value-colon"}function fe($e){var Se;return $e.type==="value-paren_group"&&((Se=$e.groups)===null||Se===void 0?void 0:Se[0])&&ge($e.groups[0])}function Ne($e){var Se;let Ye=$e.getValue();if(Ye.groups.length===0)return!1;let Qe=$e.getParentNode(1);if(!fe(Ye)&&!(Qe&&fe(Qe)))return!1;let bt=D($e,"css-decl");return!!(bt!=null&&(Se=bt.prop)!==null&&Se!==void 0&&Se.startsWith("$")||fe(Qe)||Qe.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 qe($e){return["value-word","value-atword"].includes($e.type)}function nt($e){return($e==null?void 0:$e.type)==="value-colon"}function Je($e,Se){if(!ge(Se))return!1;let{groups:Ye}=Se,Qe=Ye.indexOf($e);return Qe===-1?!1:nt(Ye[Qe+1])}function ht($e){return $e.value&&["not","and","or"].includes($e.value.toLowerCase())}function be($e){return $e.type!=="value-func"?!1:f.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,Se){var Ye,Qe;if(((Ye=$e.open)===null||Ye===void 0?void 0:Ye.value)!=="("||((Qe=$e.close)===null||Qe===void 0?void 0:Qe.value)!==")"||$e.groups.some(bt=>bt.type!=="value-comma_group"))return!1;if(Se.type==="value-comma_group"){let bt=Se.groups.indexOf($e)-1,Nt=Se.groups[bt];if((Nt==null?void 0:Nt.type)==="value-word"&&Nt.value==="with")return!0}return!1}function Jt($e){var Se,Ye;return $e.type==="value-paren_group"&&((Se=$e.open)===null||Se===void 0?void 0:Se.value)==="("&&((Ye=$e.close)===null||Ye===void 0?void 0:Ye.value)===")"}E.exports={getAncestorCounter:b,getAncestorNode:D,getPropOfDeclNode:c,maybeToLowerCase:S,insideValueFunctionNode:P,insideICSSRuleNode:_,insideAtRuleNode:L,insideURLFunctionInImportAtRuleNode:C,isKeyframeAtRuleKeywords:v,isWideKeywords:h,isLastNode:j,isSCSSControlDirectiveNode:y,isDetachedRulesetDeclarationNode:Q,isRelationalOperatorNode:R,isEqualityOperatorNode:w,isMultiplicationNode:G,isDivisionNode:ne,isAdditionNode:Z,isSubtractionNode:De,isModuloNode:F,isMathOperatorNode:J,isEachKeywordNode:X,isForKeywordNode:ee,isURLFunctionNode:x,isIfElseKeywordNode:$,hasComposesNode:z,hasParensAroundNode:ie,hasEmptyRawBefore:ce,isDetachedRulesetCallNode:T,isTemplatePlaceholderNode:M,isTemplatePropNode:q,isPostcssSimpleVarNode:U,isKeyValuePairNode:ge,isKeyValuePairInParenGroupNode:fe,isKeyInValuePairNode:Je,isSCSSMapItemNode:Ne,isInlineValueCommentNode:se,isHashNode:Ue,isLeftCurlyBraceNode:me,isRightCurlyBraceNode:ue,isWordNode:qe,isColonNode:nt,isMediaAndSupportsKeywords:ht,isColorAdjusterFuncNode:be,lastLineHasInlineComment:Ie,isAtWordPlaceholderNode:ft,isConfigurationNode:pt,isParenGroupNode:Jt}}}),b2=Fe({"src/utils/line-column-to-index.js"(m,E){Re(),E.exports=function(f,b){let D=0;for(let c=0;c<f.line-1;++c)D=b.indexOf(`
213
- `,D)+1;return D+f.column}}}),v2=Fe({"src/language-css/loc.js"(m,E){Re();var{skipEverythingButNewLine:f}=_t(),b=$r(),D=b2();function c(C,x){return typeof C.sourceIndex=="number"?C.sourceIndex:C.source?D(C.source.start,x)-1:null}function d(C,x){if(C.type==="css-comment"&&C.inline)return f(x,C.source.startOffset);let j=C.nodes&&b(C.nodes);return j&&C.source&&!C.source.end&&(C=j),C.source&&C.source.end?D(C.source.end,x):null}function h(C,x){C.source&&(C.source.startOffset=c(C,x),C.source.endOffset=d(C,x));for(let j in C){let Q=C[j];j==="source"||!Q||typeof Q!="object"||(Q.type==="value-root"||Q.type==="value-unknown"?v(Q,S(C),Q.text||Q.value):h(Q,x))}}function v(C,x,j){C.source&&(C.source.startOffset=c(C,j)+x,C.source.endOffset=d(C,j)+x);for(let Q in C){let ee=C[Q];Q==="source"||!ee||typeof ee!="object"||v(ee,x,j)}}function S(C){let x=C.source.startOffset;return typeof C.prop=="string"&&(x+=C.prop.length),C.type==="css-atrule"&&typeof C.name=="string"&&(x+=1+C.name.length+C.raws.afterName.match(/^\s*:?\s*/)[0].length),C.type!=="css-atrule"&&C.raws&&typeof C.raws.between=="string"&&(x+=C.raws.between.length),x}function P(C){let x="initial",j="initial",Q,ee=!1,$=[];for(let X=0;X<C.length;X++){let G=C[X];switch(x){case"initial":if(G==="'"){x="single-quotes";continue}if(G==='"'){x="double-quotes";continue}if((G==="u"||G==="U")&&C.slice(X,X+4).toLowerCase()==="url("){x="url",X+=3;continue}if(G==="*"&&C[X-1]==="/"){x="comment-block";continue}if(G==="/"&&C[X-1]==="/"){x="comment-inline",Q=X-1;continue}continue;case"single-quotes":if(G==="'"&&C[X-1]!=="\\"&&(x=j,j="initial"),G===`
214
- `||G==="\r")return C;continue;case"double-quotes":if(G==='"'&&C[X-1]!=="\\"&&(x=j,j="initial"),G===`
215
- `||G==="\r")return C;continue;case"url":if(G===")"&&(x="initial"),G===`
216
- `||G==="\r")return C;if(G==="'"){x="single-quotes",j="url";continue}if(G==='"'){x="double-quotes",j="url";continue}continue;case"comment-block":G==="/"&&C[X-1]==="*"&&(x="initial");continue;case"comment-inline":(G==='"'||G==="'"||G==="*")&&(ee=!0),(G===`
217
- `||G==="\r")&&(ee&&$.push([Q,X]),x="initial",ee=!1);continue}}for(let[X,G]of $)C=C.slice(0,X)+C.slice(X,G).replace(/["'*]/g," ")+C.slice(G);return C}function _(C){return C.source.startOffset}function L(C){return C.source.endOffset}E.exports={locStart:_,locEnd:L,calculateLoc:h,replaceQuotesInInlineComments:P}}}),E2=Fe({"src/language-css/utils/is-less-parser.js"(m,E){Re();function f(b){return b.parser==="css"||b.parser==="less"}E.exports=f}}),A2=Fe({"src/language-css/utils/is-scss.js"(m,E){Re();function f(b,D){return b==="less"||b==="scss"?b==="scss":/(?:\w\s*:\s*[^:}]+|#){|@import[^\n]+(?:url|,)/.test(D)}E.exports=f}}),C2=Fe({"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"}}}),S2=Fe({"src/language-css/utils/print-unit.js"(m,E){Re();var f=C2();function b(D){let c=D.toLowerCase();return Object.prototype.hasOwnProperty.call(f,c)?f[c]:D}E.exports=b}}),x2=Fe({"src/language-css/printer-postcss.js"(m,E){Re();var f=$r(),{printNumber:b,printString:D,hasNewline:c,isFrontMatterNode:d,isNextLineEmpty:h,isNonEmptyArray:v}=ye(),{builders:{join:S,line:P,hardline:_,softline:L,group:C,fill:x,indent:j,dedent:Q,ifBreak:ee,breakParent:$},utils:{removeLines:X,getDocParts:G}}=wn(),ne=m2(),Z=g2(),{insertPragma:De}=y2(),{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:Ne,isDivisionNode:se,isAdditionNode:Ue,isSubtractionNode:me,isMathOperatorNode:ue,isEachKeywordNode:qe,isForKeywordNode:nt,isURLFunctionNode:Je,isIfElseKeywordNode:ht,hasComposesNode:be,hasParensAroundNode:Ie,hasEmptyRawBefore:ft,isKeyValuePairNode:pt,isKeyInValuePairNode:Jt,isDetachedRulesetCallNode:$e,isTemplatePlaceholderNode:Se,isTemplatePropNode:Ye,isPostcssSimpleVarNode:Qe,isSCSSMapItemNode:bt,isInlineValueCommentNode:Nt,isHashNode:Bt,isLeftCurlyBraceNode:cn,isRightCurlyBraceNode:In,isWordNode:Tn,isColonNode:ln,isMediaAndSupportsKeywords:Dn,isColorAdjusterFuncNode:ot,lastLineHasInlineComment:Ee,isAtWordPlaceholderNode:dt,isConfigurationNode:Oe,isParenGroupNode:ct}=D2(),{locStart:Zt,locEnd:Ut}=v2(),gt=E2(),V=A2(),_e=S2();function rt(an){return an.trailingComma==="es5"||an.trailingComma==="all"}function kt(an,_n,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,_n,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=_n.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)?P:" ","{",lt.nodes.length>0?j([_,$t(an,_n,Sn)]):"",_,"}",ce(lt)?";":""]:";"];case"css-decl":{let qn=an.getParentNode(),{between:Gn}=lt.raws,fr=Gn.trim(),Fi=fr===":",ae=be(lt)?X(Sn("value")):Sn("value");return!Fi&&Ee(fr)&&(ae=j([_,Q(ae)])),[lt.raws.before.replace(/[\s;]/g,""),qn.type==="css-atrule"&&qn.variable||y(an)?lt.prop:w(lt.prop),fr.startsWith("//")?" ":"",fr,lt.extend?"":" ",gt(_n)&&lt.extend&&lt.selector?["extend(",Sn("selector"),")"]:"",ae,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([L,$t(an,_n,Sn)]),L,"}"]:Ye(lt)&&!qn.raws.semicolon&&_n.originalText[Ut(lt)-1]!==";"?"":_n.__isHTMLStyleAttribute&&z(an,lt)?ee(";"):";"]}case"css-atrule":{let qn=an.getParentNode(),Gn=Se(lt)&&!qn.raws.semicolon&&_n.originalText[Ut(lt)-1]!==";";if(gt(_n)){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?L:"",$t(an,_n,Sn)]),L,"}"]:"",Gn?"":";"]}return["@",$e(lt)||lt.name.endsWith(":")?lt.name:w(lt.name),lt.params?[$e(lt)?"":Se(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?C([" ",Sn("value"),ie(lt)?Ie(lt)?" ":P:""]):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)?P:" ","{",j([lt.nodes.length>0?L:"",$t(an,_n,Sn)]),L,"}"]: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"),C(j(S(P,qn)))}case"media-query":return[S(" ",an.map(Sn,"nodes")),z(an,lt)?"":","];case"media-type":return Bn(nn(lt.value,_n));case"media-feature-expression":return lt.nodes?["(",...an.map(Sn,"nodes"),")"]:lt.value;case"media-feature":return w(nn(lt.value.replace(/ +/g," "),_n));case"media-colon":return[lt.value," "];case"media-value":return Bn(nn(lt.value,_n));case"media-keyword":return nn(lt.value,_n);case"media-url":return nn(lt.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/g,")"),_n);case"media-unknown":return lt.value;case"selector-root":return C([T(an,"custom-selector")?[F(an,"css-atrule").customSelector,P]:"",S([",",T(an,["extend","custom-selector","nest"])?P:_],an.map(Sn,"nodes"))]);case"selector-selector":return C(j(an.map(Sn,"nodes")));case"selector-comment":return lt.value;case"selector-string":return nn(lt.value,_n);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,_n))];case"selector-attribute":{var wi;return["[",lt.namespace?[lt.namespace===!0?"":lt.namespace.trim(),"|"]:"",lt.attribute.trim(),(wi=lt.operator)!==null&&wi!==void 0?wi:"",lt.value?An(nn(lt.value.trim(),_n),_n):"",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?"":P,lt.value,z(an,lt)?"":" "]}let qn=lt.value.trim().startsWith("(")?P:"",Gn=Bn(nn(lt.value.trim(),_n))||P;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)?C(["(",j([L,S([",",P],an.map(Sn,"nodes"))]),L,")"]):""];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),_n));let Gn=an.getParentNode();if(Gn.raws&&Gn.raws.selector){let Fi=Zt(Gn),ae=Fi+Gn.raws.selector.length;return _n.originalText.slice(Fi,ae).trim()}let fr=an.getParentNode(1);if(Gn.type==="value-paren_group"&&fr&&fr.type==="value-func"&&fr.value==="selector"){let Fi=Ut(Gn.open)+1,ae=Zt(Gn.close),vt=_n.originalText.slice(Fi,ae).trim();return Ee(vt)?[$,vt]:vt}return lt.value}case"value-value":case"value-root":return Sn("group");case"value-comment":return _n.originalText.slice(Zt(lt),Ut(lt));case"value-comma_group":{let qn=an.getParentNode(),Gn=an.getParentNode(1),fr=J(an),Fi=fr&&qn.type==="value-value"&&(fr==="grid"||fr.startsWith("grid-template")),ae=F(an,"css-atrule"),vt=ae&&ie(ae),gn=lt.groups.some(Ni=>Nt(Ni)),Hn=an.map(Sn,"groups"),zn=[],Ei=R(an,"url"),wr=!1,ti=!1;for(let Ni=0;Ni<lt.groups.length;++Ni){var Xr;zn.push(Hn[Ni]);let Or=lt.groups[Ni-1],Fn=lt.groups[Ni],jn=lt.groups[Ni+1],gl=lt.groups[Ni+2];if(Ei){(jn&&Ue(jn)||Ue(Fn))&&zn.push(" ");continue}if(T(an,"forward")&&Fn.type==="value-word"&&Fn.value&&Or!==void 0&&Or.type==="value-word"&&Or.value==="as"&&jn.type==="value-operator"&&jn.value==="*"||!jn||Fn.type==="value-word"&&Fn.value.endsWith("-")&&dt(jn))continue;if(Fn.type==="value-string"&&Fn.quoted){let ep=Fn.value.lastIndexOf("#{"),tp=Fn.value.lastIndexOf("}");ep!==-1&&tp!==-1?wr=ep>tp:ep!==-1?wr=!0:tp!==-1&&(wr=!1)}if(wr||ln(Fn)||ln(jn)||Fn.type==="value-atword"&&(Fn.value===""||Fn.value.endsWith("["))||jn.type==="value-word"&&jn.value.startsWith("]")||Fn.value==="~"||Fn.value&&Fn.value.includes("\\")&&jn&&jn.type!=="value-comment"||Or&&Or.value&&Or.value.indexOf("\\")===Or.value.length-1&&Fn.type==="value-operator"&&Fn.value==="/"||Fn.value==="\\"||Qe(Fn,jn)||Bt(Fn)||cn(Fn)||In(jn)||cn(jn)&&ft(jn)||In(Fn)&&ft(jn)||Fn.value==="--"&&Bt(jn))continue;let Zf=ue(Fn),J0=ue(jn);if((Zf&&Bt(jn)||J0&&In(Fn))&&ft(jn)||!Or&&se(Fn)||R(an,"calc")&&(Ue(Fn)||Ue(jn)||me(Fn)||me(jn))&&ft(jn))continue;let $E=(Ue(Fn)||me(Fn))&&Ni===0&&(jn.type==="value-number"||jn.isHex)&&Gn&&ot(Gn)&&!ft(jn),Y0=gl&&gl.type==="value-func"||gl&&Tn(gl)||Fn.type==="value-func"||Tn(Fn),H0=jn.type==="value-func"||Tn(jn)||Or&&Or.type==="value-func"||Or&&Tn(Or);if(!(!(Ne(jn)||Ne(Fn))&&!R(an,"calc")&&!$E&&(se(jn)&&!Y0||se(Fn)&&!H0||Ue(jn)&&!Y0||Ue(Fn)&&!H0||me(jn)||me(Fn))&&(ft(jn)||Zf&&(!Or||Or&&ue(Or))))&&!((_n.parser==="scss"||_n.parser==="less")&&Zf&&Fn.value==="-"&&ct(jn)&&Ut(Fn)===Zt(jn.open)&&jn.open.value==="(")){if(Nt(Fn)){if(qn.type==="value-paren_group"){zn.push(Q(_));continue}zn.push(_);continue}if(vt&&(fe(jn)||ge(jn)||ht(jn)||qe(Fn)||nt(Fn))){zn.push(" ");continue}if(ae&&ae.name.toLowerCase()==="namespace"){zn.push(" ");continue}if(Fi){Fn.source&&jn.source&&Fn.source.start.line!==jn.source.start.line?(zn.push(_),ti=!0):zn.push(" ");continue}if(J0){zn.push(" ");continue}if(!(jn&&jn.value==="...")&&!(dt(Fn)&&dt(jn)&&Ut(Fn)===Zt(jn))){if(dt(Fn)&&ct(jn)&&Ut(Fn)===Zt(jn.open)){zn.push(L);continue}if(Fn.value==="with"&&ct(jn)){zn.push(" ");continue}(Xr=Fn.value)!==null&&Xr!==void 0&&Xr.endsWith("#")&&jn.value==="{"&&ct(jn.group)||zn.push(P)}}}return gn&&zn.push($),ti&&zn.unshift(_),vt?C(j(zn)):M(an)?C(x(zn)):C(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 Ei=an.map(Sn,"groups"),wr=[];for(let ti=0;ti<Ei.length;ti++)ti!==0&&wr.push([",",P]),wr.push(Ei[ti]);return C(j(x(wr)))}let Gn=bt(an),fr=f(lt.groups),Fi=fr&&fr.type==="value-comment",ae=Jt(lt,qn),vt=Oe(lt,qn),gn=vt||Gn&&!ae,Hn=vt||ae,zn=C([lt.open?Sn("open"):"",j([L,S([P],an.map((Ei,wr)=>{let ti=Ei.getValue(),Ni=wr===lt.groups.length-1,Or=[Sn(),Ni?"":","];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 Fn=G(Or[0].contents.contents);Fn[1]=C(Fn[1]),Or=[C(Q(Or))]}if(!Ni&&ti.type==="value-comma_group"&&v(ti.groups)){let Fn=f(ti.groups);!Fn.source&&Fn.close&&(Fn=Fn.close),Fn.source&&h(_n.originalText,Fn,Ut)&&Or.push(_)}return Or},"groups"))]),ee(!Fi&&V(_n.parser,_n.originalText)&&Gn&&rt(_n)?",":""),L,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),_e(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"&&f(fr.value)==="\\"||R(an,"url")?"":P]}case"value-comma":return[lt.value," "];case"value-string":return D(lt.raws.quote+lt.value+lt.raws.quote,_n);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,_n,Sn){let lt=[];return an.each((wi,Xr,qn)=>{let Gn=qn[Xr-1];if(Gn&&Gn.type==="css-comment"&&Gn.text.trim()==="prettier-ignore"){let fr=wi.getValue();lt.push(_n.originalText.slice(Zt(fr),Ut(fr)))}else lt.push(Sn());Xr!==qn.length-1&&(qn[Xr+1].type==="css-comment"&&!c(_n.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(_n.__isHTMLStyleAttribute?P:_),h(_n.originalText,wi.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,_n){return an.replace(un,Sn=>D(Sn,_n))}function An(an,_n){let Sn=_n.singleQuote?"'":'"';return an.includes('"')||an.includes("'")?an:Sn+an+Sn}function Bn(an){return an.replace(br,(_n,Sn,lt,wi,Xr)=>!lt&&wi?ar(wi)+w(Xr||""):_n)}function ar(an){return b(an).replace(/\.0(?=$|e)/,"")}E.exports={print:kt,embed:Z,insertPragma:De,massageAstNode:ne}}}),w2=Fe({"src/language-css/options.js"(m,E){Re();var f=za();E.exports={singleQuote:f.singleQuote}}}),F2=Fe({"src/language-css/parsers.js"(){Re()}}),N2=Fe({"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}}}),_2=Fe({"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}}}),T2=Fe({"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}}}),k2=Fe({"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}}}),L2=Fe({"src/language-css/index.js"(m,E){Re();var f=na(),b=x2(),D=w2(),c=F2(),d=[f(N2(),v=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[...v.extensions,".wxss"]})),f(_2(),()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]})),f(T2(),()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]})),f(k2(),()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}))],h={postcss:b};E.exports={languages:d,options:D,printers:h,parsers:c}}}),P2=Fe({"src/language-handlebars/loc.js"(m,E){Re();function f(D){return D.loc.start.offset}function b(D){return D.loc.end.offset}E.exports={locStart:f,locEnd:b}}}),B2=Fe({"src/language-handlebars/clean.js"(m,E){Re();function f(b,D){if(b.type==="TextNode"){let c=b.chars.trim();if(!c)return null;D.chars=c.replace(/[\t\n\f\r ]+/g," ")}b.type==="AttrNode"&&b.name.toLowerCase()==="class"&&delete D.value}f.ignoredProperties=new Set(["loc","selfClosing"]),E.exports=f}}),M2=Fe({"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"]}}),I2=Fe({"src/language-handlebars/utils.js"(m,E){Re();var f=$r(),b=M2();function D(G){let ne=G.getValue(),Z=G.getParentNode(0);return!!(L(G,["ElementNode"])&&f(Z.children)===ne||L(G,["Block"])&&f(Z.body)===ne)}function c(G){return G.toUpperCase()===G}function d(G){return _(G,["ElementNode"])&&typeof G.tag=="string"&&!G.tag.startsWith(":")&&(c(G.tag[0])||G.tag.includes("."))}var h=new Set(b);function v(G){return h.has(G.toLowerCase())&&!c(G[0])}function S(G){return G.selfClosing===!0||v(G.tag)||d(G)&&G.children.every(ne=>P(ne))}function P(G){return _(G,["TextNode"])&&!/\S/.test(G.chars)}function _(G,ne){return G&&ne.includes(G.type)}function L(G,ne){let Z=G.getParentNode(0);return _(Z,ne)}function C(G,ne){let Z=Q(G);return _(Z,ne)}function x(G,ne){let Z=ee(G);return _(Z,ne)}function j(G,ne){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+ne]}function Q(G){let ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return j(G,-ne)}function ee(G){return j(G,1)}function $(G){return _(G,["MustacheCommentStatement"])&&typeof G.value=="string"&&G.value.trim()==="prettier-ignore"}function X(G){let ne=G.getValue(),Z=Q(G,2);return $(ne)||$(Z)}E.exports={getNextNode:ee,getPreviousNode:Q,hasPrettierIgnore:X,isLastNodeOfSiblings:D,isNextNodeOfSomeType:x,isNodeOfSomeType:_,isParentOfSomeType:L,isPreviousNodeOfSomeType:C,isVoid:S,isWhitespaceNode:P}}}),O2=Fe({"src/language-handlebars/printer-glimmer.js"(m,E){Re();var{builders:{dedent:f,fill:b,group:D,hardline:c,ifBreak:d,indent:h,join:v,line:S,softline:P},utils:{getDocParts:_,replaceTextEndOfLine:L}}=wn(),{getPreferredQuote:C,isNonEmptyArray:x}=ye(),{locStart:j,locEnd:Q}=P2(),ee=B2(),{getNextNode:$,getPreviousNode:X,hasPrettierIgnore:G,isLastNodeOfSiblings:ne,isNextNodeOfSomeType:Z,isNodeOfSomeType:De,isParentOfSomeType:F,isPreviousNodeOfSomeType:J,isVoid:w,isWhitespaceNode:R}=I2(),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)),gt=dt.htmlWhitespaceSensitivity==="ignore"&&Z(Ee,["ElementNode"])?P:"";if(w(ct))return[Ut,gt];let V=["</",ct.tag,">"];return ct.children.length===0?[Ut,h(V),gt]:dt.htmlWhitespaceSensitivity==="ignore"?[Ut,h(U(Ee,dt,Oe)),c,h(V),gt]:[Ut,h(D(U(Ee,dt,Oe))),h(V),gt]}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(["{{",Tn(Ee,Oe),"}}"]);case"MustacheStatement":return D([ie(ct),Tn(Ee,Oe),ce(ct)]);case"SubExpression":return D(["(",In(Ee,Oe),P,")"]);case"AttrNode":{let Ut=ct.value.type==="TextNode";if(Ut&&ct.value.chars===""&&j(ct.value)===Q(ct.value))return ct.name;let gt=Ut?C(ct.value.chars,Zt).quote:ct.value.type==="ConcatStatement"?C(ct.value.parts.filter(_e=>_e.type==="TextNode").map(_e=>_e.chars).join(""),Zt).quote:"",V=Oe("value");return[ct.name,"=",gt,ct.name==="class"&&gt?D(h(V)):V,gt]}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,"\\{{"),gt=Se(Ee);if(gt){if(gt==="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 L(Ut)}let V=/^[\t\n\f\r ]*$/.test(Ut),_e=!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=_e&&F(Ee,["Template"]);if(V){if(An||nn)return"";let Sn=[S],lt=Ye(Ut);return lt&&(Sn=Nt(lt)),ne(Ee)&&(Sn=Sn.map(wi=>f(wi))),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 _n=[];if(ar){if(!nn){_n=[S];let Sn=Ye(ar);Sn&&(_n=Nt(Sn)),ne(Ee)&&(_n=_n.map(lt=>f(lt)))}Ut=Ut.replace(br,"")}return[...an,b(Jt(Ut)),..._n]}let kt=Ye(Ut),$t=Qe(Ut),un=bt(Ut);if((_e||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=" "),_e&&($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),gt=Q(ct),V=dt.originalText.charAt(Ut+2)==="~",_e=dt.originalText.charAt(gt-3)==="~",rt=ct.value.includes("}}")?"--":"";return["{{",V?"~":"","!",rt,ct.value,rt,_e?"~":"","}}"]}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(gt=>{let V=Zt.indexOf(gt.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 gt=Oe();return Ut===0&&dt.htmlWhitespaceSensitivity==="ignore"?[P,gt]:gt},"children")}function z(Ee){return w(Ee)?d([P,"/>"],[" />",P]):d([P,">"],">")}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 Ne(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)]):"",P,fe(Oe)])}function qe(Ee,dt){return[dt.htmlWhitespaceSensitivity==="ignore"?c:"",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)]:[]]),P,me(Zt)])}function Je(Ee,dt,Oe){let ct=Ee.getValue();return Oe.htmlWhitespaceSensitivity==="ignore"?[ht(ct)?P:c,Ne(ct),dt("path"),se(ct)]:[Ne(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([c,Zt]):h(Zt)}function pt(Ee,dt,Oe){let ct=Ee.getValue(),Zt=dt("inverse"),Ut=Oe.htmlWhitespaceSensitivity==="ignore"?[c,Zt]:Zt;return be(ct)?Ut:Ie(ct)?[qe(ct,Oe),h(Ut)]:""}function Jt(Ee){return _(v(S,$e(Ee)))}function $e(Ee){return Ee.split(/[\t\n\f\r ]+/)}function Se(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 Qe(Ee){Ee=typeof Ee=="string"?Ee:"";let dt=(Ee.match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"";return Ye(dt)}function bt(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(c)}function Bt(Ee,dt){let{quote:Oe,regex:ct}=C(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 Tn(Ee,dt){let Oe=ln(Ee,dt),ct=Dn(Ee,dt);return ct?[h([Oe,S,ct]),P]: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:ee}}}),j2=Fe({"src/language-handlebars/parsers.js"(){Re()}}),R2=Fe({"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}}}),$2=Fe({"src/language-handlebars/index.js"(m,E){Re();var f=na(),b=O2(),D=j2(),c=[f(R2(),()=>({since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}))],d={glimmer:b};E.exports={languages:c,printers:d,parsers:D}}}),V2=Fe({"src/language-graphql/pragma.js"(m,E){Re();function f(D){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(D)}function b(D){return`# @format
219
-
220
- `+D}E.exports={hasPragma:f,insertPragma:b}}}),q2=Fe({"src/language-graphql/loc.js"(m,E){Re();function f(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:f,locEnd:b}}}),U2=Fe({"src/language-graphql/printer-graphql.js"(m,E){Re();var{builders:{join:f,hardline:b,line:D,softline:c,group:d,indent:h,ifBreak:v}}=wn(),{isNextLineEmpty:S,isNonEmptyArray:P}=ye(),{insertPragma:_}=V2(),{locStart:L,locEnd:C}=q2();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(),C)&&w.push(b))},"definitions"),[...w,b]}case"OperationDefinition":{let w=De.originalText[L(J)]!=="{",R=!!J.name;return[w?J.operation:"",w&&R?[" ",F("name")]:"",w&&!R&&P(J.variableDefinitions)?" ":"",P(J.variableDefinitions)?d(["(",h([c,f([v("",", "),c],Z.map(F,"variableDefinitions"))]),c,")"]):"",j(Z,F,J),J.selectionSet?!w&&!R?"":" ":"",F("selectionSet")]}case"FragmentDefinition":return["fragment ",F("name"),P(J.variableDefinitions)?d(["(",h([c,f([v("",", "),c],Z.map(F,"variableDefinitions"))]),c,")"]):""," on ",F("typeCondition"),j(Z,F,J)," ",F("selectionSet")];case"SelectionSet":return["{",h([b,f(b,Q(Z,De,F,"selections"))]),b,"}"];case"Field":return d([J.alias?[F("alias"),": "]:"",F("name"),J.arguments.length>0?d(["(",h([c,f([v("",", "),c],Q(Z,De,F,"arguments"))]),c,")"]):"",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),f(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([c,f([v("",", "),c],Z.map(F,"values"))]),c,"]"]);case"ObjectValue":return d(["{",De.bracketSpacing&&J.fields.length>0?" ":"",h([c,f([v("",", "),c],Z.map(F,"fields"))]),c,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([c,f([v("",", "),c],Q(Z,De,F,"arguments"))]),c,")"]):""];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,f(b,Q(Z,De,F,"fields"))]),b,"}"]:""];case"FieldDefinition":return[F("description"),J.description?b:"",F("name"),J.arguments.length>0?d(["(",h([c,f([v("",", "),c],Q(Z,De,F,"arguments"))]),c,")"]):"",": ",F("type"),j(Z,F,J)];case"DirectiveDefinition":return[F("description"),J.description?b:"","directive ","@",F("name"),J.arguments.length>0?d(["(",h([c,f([v("",", "),c],Q(Z,De,F,"arguments"))]),c,")"]):"",J.repeatable?" repeatable":""," on ",f(" | ",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,f(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,f(b,Q(Z,De,F,"fields"))]),b,"}"]:""];case"SchemaExtension":return["extend schema",j(Z,F,J),...J.operationTypes.length>0?[" {",h([b,f(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,f(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,f(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," "]),f([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=f(D,Z.map(De,"directives"));return F.kind==="FragmentDefinition"||F.kind==="OperationDefinition"?d([D,J]):[" ",d(h([c,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(),C)?[T,b]:T},J)}function ee(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 ne(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:ne,insertPragma:_,printComment:$,canAttachComment:ee}}}),W2=Fe({"src/language-graphql/options.js"(m,E){Re();var f=za();E.exports={bracketSpacing:f.bracketSpacing}}}),G2=Fe({"src/language-graphql/parsers.js"(){Re()}}),J2=Fe({"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}}}),Y2=Fe({"src/language-graphql/index.js"(m,E){Re();var f=na(),b=U2(),D=W2(),c=G2(),d=[f(J2(),()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}))],h={graphql:b};E.exports={languages:d,options:D,printers:h,parsers:c}}}),$0=Fe({"node_modules/collapse-white-space/index.js"(m,E){Re(),E.exports=f;function f(b){return String(b).replace(/\s+/g," ")}}}),V0=Fe({"src/language-markdown/loc.js"(m,E){Re();function f(D){return D.position.start.offset}function b(D){return D.position.end.offset}E.exports={locStart:f,locEnd:b}}}),H2=Fe({"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]"}}}),zf=Fe({"src/language-markdown/utils.js"(m,E){Re();var{getLast:f}=ye(),{locStart:b,locEnd:D}=V0(),{cjkPattern:c,kPattern:d,punctuationPattern:h}=H2(),v=["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],S=[...v,"tableCell","paragraph","heading"],P=new RegExp(d),_=new RegExp(h);function L($,X){let G="non-cjk",ne="cj-letter",Z="k-letter",De="cjk-punctuation",F=[],J=(X.proseWrap==="preserve"?$:$.replace(new RegExp(`(${c})
223
- (${c})`,"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(`(${c})`));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(f(q))});continue}w(_.test(q)?{type:"word",value:q,kind:De,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:q,kind:P.test(q)?Z:ne,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return F;function w(R){let y=f(F);y&&y.type==="word"&&(y.kind===G&&R.kind===ne&&!y.hasTrailingPunctuation||y.kind===ne&&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 C($,X){let[,G,ne,Z]=X.slice($.position.start.offset,$.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:G,marker:ne,leadingSpaces:Z}}function x($,X){if(!$.ordered||$.children.length<2)return!1;let G=Number(C($.children[0],X.originalText).numberText),ne=Number(C($.children[1],X.originalText).numberText);if(G===0&&$.children.length>2){let Z=Number(C($.children[2],X.originalText).numberText);return ne===1&&Z===1}return ne===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(ne,Z,De){let F=Object.assign({},X(ne,Z,De));return F.children&&(F.children=F.children.map((J,w)=>G(J,w,[F,...De]))),F}($,null,[])}function ee($){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:L,punctuationPattern:h,getFencedCodeBlockValue:j,getOrderedListItemInfo:C,hasGitDiffFriendlyOrderedList:x,INLINE_NODE_TYPES:v,INLINE_NODE_WRAPPER_TYPES:S,isAutolink:ee}}}),z2=Fe({"src/language-markdown/embed.js"(m,E){Re();var{inferParserByLanguage:f,getMaxContinuousCount:b}=ye(),{builders:{hardline:D,markAsRoot:c},utils:{replaceEndOfLine:d}}=wn(),h=Hf(),{getFencedCodeBlockValue:v}=zf();function S(P,_,L,C){let x=P.getValue();if(x.type==="code"&&x.lang!==null){let j=f(x.lang,C);if(j){let Q=C.__inJsTemplate?"~":"`",ee=Q.repeat(Math.max(3,b(x.value,Q)+1)),$={parser:j};x.lang==="tsx"&&($.filepath="dummy.tsx");let X=L(v(x,C.originalText),$,{stripTrailingHardline:!0});return c([ee,x.lang,x.meta?" "+x.meta:"",D,d(X),D,ee])}}switch(x.type){case"front-matter":return h(x,L);case"importExport":return[L(x.value,{parser:"babel"},{stripTrailingHardline:!0}),D];case"jsx":return L(`<$>${x.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null}E.exports=S}}),q0=Fe({"src/language-markdown/pragma.js"(m,E){Re();var f=R0(),b=["format","prettier"];function D(c){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=c.match(h);return(v==null?void 0:v.index)===0}E.exports={startWithPragma:D,hasPragma:c=>D(f(c).content.trimStart()),insertPragma:c=>{let d=f(c),h=`<!-- @${b[0]} -->`;return d.frontMatter?`${d.frontMatter.raw}
233
-
234
- ${h}
235
-
236
- ${d.content}`:`${h}
237
-
238
- ${d.content}`}}}}),Q2=Fe({"src/language-markdown/print-preprocess.js"(m,E){Re();var f=$r(),{getOrderedListItemInfo:b,mapAst:D,splitText:c}=zf(),d=/^.$/su;function h(ee,$){return ee=P(ee,$),ee=C(ee),ee=S(ee,$),ee=j(ee,$),ee=Q(ee,$),ee=x(ee,$),ee=v(ee),ee=_(ee),ee}function v(ee){return D(ee,$=>$.type!=="import"&&$.type!=="export"?$:Object.assign(Object.assign({},$),{},{type:"importExport"}))}function S(ee,$){return D(ee,X=>X.type!=="inlineCode"||$.proseWrap==="preserve"?X:Object.assign(Object.assign({},X),{},{value:X.value.replace(/\s+/g," ")}))}function P(ee,$){return D(ee,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 _(ee){return L(ee,($,X)=>$.type==="importExport"&&X.type==="importExport",($,X)=>({type:"importExport",value:$.value+`
239
-
240
- `+X.value,position:{start:$.position.start,end:X.position.end}}))}function L(ee,$,X){return D(ee,G=>{if(!G.children)return G;let ne=G.children.reduce((Z,De)=>{let F=f(Z);return F&&$(F,De)?Z.splice(-1,1,X(F,De)):Z.push(De),Z},[]);return Object.assign(Object.assign({},G),{},{children:ne})})}function C(ee){return L(ee,($,X)=>$.type==="text"&&X.type==="text",($,X)=>({type:"text",value:$.value+X.value,position:{start:$.position.start,end:X.position.end}}))}function x(ee,$){return D(ee,(X,G,ne)=>{let[Z]=ne;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:c(De,$)}})}function j(ee,$){return D(ee,(X,G,ne)=>{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<ne.length;De++){let F=ne[De];if(F.hasIndentedCodeblock)break;F.type==="list"&&(F.hasIndentedCodeblock=!0)}}return X})}function Q(ee,$){return D(ee,(ne,Z,De)=>{if(ne.type==="list"&&ne.children.length>0){for(let F=0;F<De.length;F++){let J=De[F];if(J.type==="list"&&!J.isAligned)return ne.isAligned=!1,ne}ne.isAligned=G(ne)}return ne});function X(ne){return ne.children.length===0?-1:ne.children[0].position.start.column-1}function G(ne){if(!ne.ordered)return!0;let[Z,De]=ne.children;if(b(Z,$.originalText).leadingSpaces.length>1)return!0;let F=X(Z);if(F===-1)return!1;if(ne.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}}),X2=Fe({"src/language-markdown/clean.js"(m,E){Re();var f=$0(),{isFrontMatterNode:b}=ye(),{startWithPragma:D}=q0(),c=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=f(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=c,E.exports=d}}),K2=Fe({"src/language-markdown/printer-markdown.js"(m,E){Re();var f=$0(),{getLast:b,getMinNotPresentContinuousCount:D,getMaxContinuousCount:c,getStringWidth:d,isNonEmptyArray:h}=ye(),{builders:{breakParent:v,join:S,line:P,literalline:_,markAsRoot:L,hardline:C,softline:x,ifBreak:j,fill:Q,align:ee,indent:$,group:X,hardlineWithoutBreakParent:G},utils:{normalizeDoc:ne,replaceTextEndOfLine:Z},printer:{printDocToString:De}}=wn(),F=z2(),{insertPragma:J}=q0(),{locStart:w,locEnd:R}=V0(),y=Q2(),T=X2(),{getFencedCodeBlockValue:M,hasGitDiffFriendlyOrderedList:q,splitText:U,punctuationPattern:z,INLINE_NODE_TYPES:ie,INLINE_NODE_WRAPPER_TYPES:ce,isAutolink:ge}=zf(),fe=new Set(["importExport"]),Ne=["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?"":[ne(ft(ot,Ee,dt)),fe.has($e(Oe).type)?"":C];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"),(gt,V,_e,rt,kt)=>(_e?`${V}${_e}`:`${rt}${kt}`).replace(/_/g,"\\_")),Zt=(gt,V,_e)=>gt.type==="sentence"&&_e===0,Ut=(gt,V,_e)=>ge(gt.children[_e-1]);return ct!==Oe.value&&(ot.match(void 0,Zt,Ut)||ot.match(void 0,Zt,(gt,V,_e)=>gt.type==="emphasis"&&_e===0,Ut))&&(ct=ct.replace(/^(\\?[*_])+/,gt=>gt.replace(/\\/g,""))),ct}case"whitespace":{let ct=ot.getParentNode(),Zt=ct.children.indexOf(Oe),Ut=ct.children[Zt+1],gt=Ut&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(Ut.value)?"never":Ee.proseWrap;return be(ot,Oe.value,{proseWrap:gt})}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),gt=Zt.children[Ut-1],V=Zt.children[Ut+1];ct=gt&&gt.type==="sentence"&&gt.children.length>0&&b(gt.children).type==="word"&&!b(gt.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["> ",ee("> ",pt(ot,Ee,dt))];case"heading":return["#".repeat(Oe.depth)+" ",pt(ot,Ee,dt)];case"code":{if(Oe.isIndented){let Ut=" ".repeat(4);return ee(Ut,[Ut,...Z(Oe.value,C)])}let ct=Ee.__inJsTemplate?"~":"`",Zt=ct.repeat(Math.max(3,c(Oe.value,ct)+1));return[Zt,Oe.lang||"",Oe.meta?" "+Oe.meta:"",C,...Z(M(Oe,Ee.originalText),C),C,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?C:L(_))}case"list":{let ct=qe(Oe,ot.getParentNode()),Zt=q(Oe,Ee);return pt(ot,Ee,dt,{processor:(Ut,gt)=>{let V=rt(),_e=Ut.getValue();if(_e.children.length===2&&_e.children[1].type==="html"&&_e.children[0].position.start.column!==_e.children[1].position.start.column)return[V,me(Ut,Ee,dt,V)];return[V,ee(" ".repeat(V.length),me(Ut,Ee,dt,V))];function rt(){let kt=Oe.ordered?(gt===0?Oe.start:Zt?1:Oe.start+gt)+(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?"---":qe(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"?P:" ";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([ee(" ".repeat(4),pt(ot,Ee,dt,{processor:(Ut,gt)=>gt===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])?[" ",L(_)]:["\\",C];case"liquidNode":return Z(Oe.value,C);case"importExport":return[Oe.value,C];case"esComment":return["{/* ",Oe.value," */}"];case"jsx":return Oe.value;case"math":return["$$",C,Oe.value?[...Z(Oe.value,C),C]:"","$$"];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,gt)=>{if(gt===0&&Ut.getValue().type!=="list")return ee(" ".repeat(Zt.length),dt());let V=" ".repeat(In(Ee.tabWidth-Oe.length,0,3));return[V,ee(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 qe(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 C;let Oe=dt.proseWrap==="always"&&!ht(ot,Ne);return Ee!==""?Oe?P:" ":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 gt=V(!0);return[v,X(j(gt,Ut))];function V(kt){let $t=[rt(Zt[0],kt),_e(kt)];return Zt.length>1&&$t.push(S(G,Zt.slice(1).map(un=>rt(un,kt)))),S(G,$t)}function _e(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,gt]of Zt.entries())switch(Se(gt)){case"start":ct===null&&(ct={index:Ut,offset:gt.position.end.offset});break;case"end":ct!==null&&(Oe.push({start:ct,end:{index:Ut,offset:gt.position.start.offset}}),ct=null);break}return pt(ot,Ee,dt,{processor:(Ut,gt)=>{if(Oe.length>0){let V=Oe[0];if(gt===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<gt&&gt<V.end.index)return!1;if(gt===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(),gt=[],V;return ot.each((_e,rt)=>{let kt=_e.getValue(),$t=Zt(_e,rt);if($t!==!1){let un={parts:gt,prevNode:V,parentNode:Ut,options:Ee};Ye(kt,un)&&(gt.push(C),V&&fe.has(V.type)||(Qe(kt,un)||bt(kt,un))&&gt.push(C),bt(kt,un)&&gt.push(C)),gt.push($t),V=kt}},"children"),ct?ct(gt):gt}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 Se(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 Qe(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,gt=((dt=Ee.prevNode)===null||dt===void 0?void 0:dt.type)==="listItem"&&Ee.prevNode.loose,V=Se(Ee.prevNode)==="next",_e=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 gt||!(Zt||Ut||V||_e||rt)}function bt(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 Tn(ot){let Ee=Number(ot.getName());if(Ee===0)return!1;let dt=ot.getParentNode().children[Ee-1];return Se(dt)==="next"}function ln(ot){return`[${f(ot.label)}]`}function Dn(ot){return`[^${ot.label}]`}E.exports={preprocess:y,print:Ue,embed:F,massageAstNode:T,hasPrettierIgnore:Tn,insertPragma:J}}}),Z2=Fe({"src/language-markdown/options.js"(m,E){Re();var f=za();E.exports={proseWrap:f.proseWrap,singleQuote:f.singleQuote}}}),eE=Fe({"src/language-markdown/parsers.js"(){Re()}}),U0=Fe({"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}}}),tE=Fe({"src/language-markdown/index.js"(m,E){Re();var f=na(),b=K2(),D=Z2(),c=eE(),d=[f(U0(),v=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[...v.filenames,"README"],extensions:v.extensions.filter(S=>S!==".mdx")})),f(U0(),()=>({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:c}}}),nE=Fe({"src/language-html/clean.js"(m,E){Re();var{isFrontMatterNode:f}=ye(),b=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function D(c,d){if(c.type==="text"||c.type==="comment"||f(c)||c.type==="yaml"||c.type==="toml")return null;c.type==="attribute"&&delete d.value,c.type==="docType"&&delete d.value}D.ignoredProperties=b,E.exports=D}}),rE=Fe({"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"}}}),iE=Fe({"src/language-html/utils/is-unknown-namespace.js"(m,E){Re();function f(b){return b.type==="element"&&!b.hasExplicitNamespace&&!["html","svg"].includes(b.namespace)}E.exports=f}}),Qa=Fe({"src/language-html/utils/index.js"(m,E){Re();var{inferParserByLanguage:f,isFrontMatterNode:b}=ye(),{builders:{line:D,hardline:c,join:d},utils:{getDocParts:h,replaceTextEndOfLine:v}}=wn(),{CSS_DISPLAY_TAGS:S,CSS_DISPLAY_DEFAULT:P,CSS_WHITE_SPACE_TAGS:_,CSS_WHITE_SPACE_DEFAULT:L}=rE(),C=iE(),x=new Set([" ",`
242
- `,"\f","\r"," "]),j=V=>V.replace(/^[\t\n\f\r ]+/,""),Q=V=>V.replace(/[\t\n\f\r ]+$/,""),ee=V=>j(Q(V)),$=V=>V.replace(/^[\t\f\r ]*\n/g,""),X=V=>$(Q(V)),G=V=>V.split(/[\t\n\f\r ]+/),ne=V=>V.match(/^[\t\n\f\r ]*/)[0],Z=V=>{let[,_e,rt,kt]=V.match(/^([\t\n\f\r ]*)(.*?)([\t\n\f\r ]*)$/s);return{leadingWhitespace:_e,trailingWhitespace:kt,text:rt}},De=V=>/[\t\n\f\r ]/.test(V);function F(V,_e){return!!(V.type==="ieConditionalComment"&&V.lastChild&&!V.lastChild.isSelfClosing&&!V.lastChild.endSourceSpan||V.type==="ieConditionalComment"&&!V.complete||Qe(V)&&V.children.some(rt=>rt.type!=="text"&&rt.type!=="interpolation")||Oe(V,_e)&&!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"||C(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,_e){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:Qe(V.parent)?!0:!(!V.prev&&(V.parent.type==="root"||Qe(V)&&V.parent||y(V.parent)||Ee(V.parent,_e)||!pt(V.parent.cssDisplay))||V.prev&&!Se(V.prev.cssDisplay))}}function z(V,_e){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:Qe(V.parent)?!0:!(!V.next&&(V.parent.type==="root"||Qe(V)&&V.parent||y(V.parent)||Ee(V.parent,_e)||!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(_e=>Je(_e)))||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 Ne(V){return qe(V)||V.prev&&se(V.prev)||Ue(V)}function se(V){return qe(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 qe(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(_e=>_e.type!=="text")}function ht(V){let{type:_e,lang:rt}=V.attrMap;if(_e==="module"||_e==="text/javascript"||_e==="text/babel"||_e==="application/javascript"||rt==="jsx")return"babel";if(_e==="application/x-typescript"||rt==="ts"||rt==="tsx")return"typescript";if(_e==="text/markdown")return"markdown";if(_e==="text/html")return"html";if(_e&&(_e.endsWith("json")||_e.endsWith("importmap"))||_e==="speculationrules")return"json";if(_e==="text/x-handlebars-template")return"glimmer"}function be(V,_e){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 f("stylus",_e)}function Ie(V,_e){if(V.name==="script"&&!V.attrMap.src)return!V.attrMap.lang&&!V.attrMap.type?"babel":ht(V);if(V.name==="style")return be(V,_e);if(_e&&Oe(V,_e))return ht(V)||!("src"in V.attrMap)&&f(V.attrMap.lang,_e)}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 Se(V){return!ft(V)}function Ye(V){return!ft(V)&&V!=="inline-block"}function Qe(V){return cn(V).startsWith("pre")}function bt(V,_e){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)&&_e($t)&&rt++}return rt}function Nt(V,_e){let rt=V;for(;rt;){if(_e(rt))return!0;rt=rt.parent}return!1}function Bt(V,_e){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(_e.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return _e.parser==="vue"&&V.parent&&V.parent.type==="root"?"block":V.type==="element"&&(!V.namespace||rt||C(V))&&S[V.name]||P}}function cn(V){return V.type==="element"&&(!V.namespace||C(V))&&_[V.name]||L}function In(V){let _e=Number.POSITIVE_INFINITY;for(let rt of V.split(`
243
- `)){if(rt.length===0)continue;if(!x.has(rt[0]))return 0;let kt=ne(rt).length;rt.length!==kt&&kt<_e&&(_e=kt)}return _e===Number.POSITIVE_INFINITY?0:_e}function Tn(V){let _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:In(V);return _e===0?V:V.split(`
244
- `).map(rt=>rt.slice(_e)).join(`
245
- `)}function ln(V,_e){let rt=0;for(let kt=0;kt<V.length;kt++)V[kt]===_e&&rt++;return rt}function Dn(V){return V.replace(/&apos;/g,"'").replace(/&quot;/g,'"')}var ot=new Set(["template","style","script"]);function Ee(V,_e){return dt(V,_e)&&!ot.has(V.fullName)}function dt(V,_e){return _e.parser==="vue"&&V.type==="element"&&V.parent.type==="root"&&V.fullName.toLowerCase()!=="html"}function Oe(V,_e){return dt(V,_e)&&(Ee(V,_e)||V.attrMap.lang&&V.attrMap.lang!=="html")}function ct(V){let _e=V.fullName;return _e.charAt(0)==="#"||_e==="slot-scope"||_e==="v-slot"||_e.startsWith("v-slot:")}function Zt(V,_e){let rt=V.parent;if(!dt(rt,_e))return!1;let kt=rt.fullName,$t=V.fullName;return kt==="script"&&$t==="setup"||kt==="style"&&$t==="vars"}function Ut(V){let _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:V.value;return V.parent.isWhitespaceSensitive?V.parent.isIndentationSensitive?v(_e):v(Tn(X(_e)),c):h(d(D,G(_e)))}function gt(V,_e){return dt(V,_e)&&V.name==="script"}E.exports={htmlTrim:ee,htmlTrimPreserveIndentation:X,hasHtmlWhitespace:De,getLeadingAndTrailingHtmlWhitespace:Z,canHaveInterpolation:T,countChars:ln,countParents:bt,dedentString:Tn,forceBreakChildren:fe,forceBreakContent:ge,forceNextEmptyLine:ce,getLastDescendant:nt,getNodeCssStyleDisplay:Bt,getNodeCssStyleWhiteSpace:cn,hasPrettierIgnore:J,inferScriptParser:Ie,isVueCustomBlock:Ee,isVueNonHtmlBlock:Oe,isVueScriptTag:gt,isVueSlotAttribute:ct,isVueSfcBindingsAttribute:Zt,isVueSfcBlock:dt,isDanglingSpaceSensitiveNode:ie,isIndentationSensitiveNode:q,isLeadingSpaceSensitiveNode:U,isPreLikeNode:Qe,isScriptLikeTag:y,isTextLikeNode:R,isTrailingSpaceSensitiveNode:z,isWhitespaceSensitiveNode:M,isUnknownNamespace:C,preferHardlineAsLeadingSpaces:Ne,preferHardlineAsTrailingSpaces:se,shouldPreserveContent:F,unescapeQuoteEntities:Dn,getTextValueParts:Ut}}}),sE=Fe({"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 f(h){return m.$0<=h&&h<=m.$9}m.isDigit=f;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||f(h)}m.isAsciiHexDigit=D;function c(h){return h===m.$LF||h===m.$CR}m.isNewLine=c;function d(h){return m.$0<=h&&h<=m.$7}m.isOctalDigit=d}}),aE=Fe({"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,c){this.filePath=b,this.name=D,this.members=c}assertNoMembers(){if(this.members.length)throw new Error(`Illegal state: symbol without members expected, but got ${JSON.stringify(this)}.`)}};m.StaticSymbol=E;var f=class{constructor(){this.cache=new Map}get(b,D,c){c=c||[];let d=c.length?`.${c.join(".")}`:"",h=`"${b}".${D}${d}`,v=this.cache.get(h);return v||(v=new E(b,D,c),this.cache.set(h,v)),v}};m.StaticSymbolCache=f}}),oE=Fe({"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 f(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=f;function b(y,T){return c(y,":",T)}m.splitAtColon=b;function D(y,T){return c(y,".",T)}m.splitAtPeriod=D;function c(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 P(y){throw new Error(`Internal Error: ${y}`)}m.error=P;function _(y,T){let M=Error(y);return M[L]=!0,T&&(M[C]=T),M}m.syntaxError=_;var L="ngSyntaxError",C="ngParseErrors";function x(y){return y[L]}m.isSyntaxError=x;function j(y){return y[C]||[]}m.getParseErrors=j;function Q(y){return y.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}m.escapeRegExp=Q;var ee=Object.getPrototypeOf({});function $(y){return typeof y=="object"&&y!==null&&Object.getPrototypeOf(y)===ee}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 ne(y){return typeof y=="function"&&y.hasOwnProperty("__forward_ref__")?y():y}m.resolveForwardRef=ne;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}}),uE=Fe({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=aE(),f=oE(),b=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function D(M){return M.replace(/\W/g,"_")}m.sanitizeIdentifier=D;var c=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=f.stringify(q);return U.indexOf("(")>=0?(U=`anonymous_${c++}`,q.__anonymousType=U):U=D(U),U}m.identifierName=d;function h(M){let q=M.reference;return q instanceof E.StaticSymbol?q.filePath:`./${f.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 P(M){return`HostView_${d({reference:M})}`}m.hostViewClassName=P;function _(M){return`${d({reference:M})}NgFactory`}m.componentFactoryName=_;var L;(function(M){M[M.Pipe=0]="Pipe",M[M.Directive=1]="Directive",M[M.NgModule=2]="NgModule",M[M.Injectable=3]="Injectable"})(L=m.CompileSummaryKind||(m.CompileSummaryKind={}));function C(M){return M.value!=null?D(M.value):d(M.identifier)}m.tokenName=C;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:Ne,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=Ne?F(Ne):[],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 ee=class{static create(M){let{isHost:q,type:U,isComponent:z,selector:ie,exportAs:ce,changeDetection:ge,inputs:fe,outputs:Ne,host:se,providers:Ue,viewProviders:me,queries:ue,guards:qe,viewQueries:nt,entryComponents:Je,template:ht,componentViewType:be,rendererType:Ie,componentFactory:ft}=M,pt={},Jt={},$e={};se!=null&&Object.keys(se).forEach(Qe=>{let bt=se[Qe],Nt=Qe.match(b);Nt===null?$e[Qe]=bt:Nt[1]!=null?Jt[Nt[1]]=bt:Nt[2]!=null&&(pt[Nt[2]]=bt)});let Se={};fe!=null&&fe.forEach(Qe=>{let bt=f.splitAtColon(Qe,[Qe,Qe]);Se[bt[0]]=bt[1]});let Ye={};return Ne!=null&&Ne.forEach(Qe=>{let bt=f.splitAtColon(Qe,[Qe,Qe]);Ye[bt[0]]=bt[1]}),new ee({isHost:q,type:U,isComponent:!!z,selector:ie,exportAs:ce,changeDetection:ge,inputs:Se,outputs:Ye,hostListeners:pt,hostProperties:Jt,hostAttributes:$e,providers:Ue,viewProviders:me,queries:ue,guards:qe,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:Ne,hostListeners:se,hostProperties:Ue,hostAttributes:me,providers:ue,viewProviders:qe,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=Ne,this.hostListeners=se,this.hostProperties=Ue,this.hostAttributes=me,this.providers=Z(ue),this.viewProviders=Z(qe),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:L.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=ee;var $=class{constructor(M){let{type:q,name:U,pure:z}=M;this.type=q,this.name=U,this.pure=!!z}toSummary(){return{summaryKind:L.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:Ne,importedModules:se,exportedModules:Ue,schemas:me,transitiveModule:ue,id:qe}=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(Ne),this.importedModules=Z(se),this.exportedModules=Z(Ue),this.schemas=Z(me),this.id=qe||null,this.transitiveModule=ue||null}toSummary(){let M=this.transitiveModule;return{summaryKind:L.NgModule,type:this.type,entryComponents:M.entryComponents,providers:M.providers,modules:M.modules,exportedDirectives:M.exportedDirectives,exportedPipes:M.exportedPipes}}};m.CompileNgModuleMetadata=G;var ne=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=ne;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}}),lE=Fe({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js"(m){Re(),Object.defineProperty(m,"__esModule",{value:!0});var E=sE(),f=uE(),b=class{constructor(P,_,L,C){this.file=P,this.offset=_,this.line=L,this.col=C}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(P){let _=this.file.content,L=_.length,C=this.offset,x=this.line,j=this.col;for(;C>0&&P<0;)if(C--,P++,_.charCodeAt(C)==E.$LF){x--;let Q=_.substr(0,C-1).lastIndexOf(String.fromCharCode(E.$LF));j=Q>0?C-Q:C}else j--;for(;C<L&&P>0;){let Q=_.charCodeAt(C);C++,P--,Q==E.$LF?(x++,j=0):j++}return new b(this.file,C,x,j)}getContext(P,_){let L=this.file.content,C=this.offset;if(C!=null){C>L.length-1&&(C=L.length-1);let x=C,j=0,Q=0;for(;j<P&&C>0&&(C--,j++,!(L[C]==`
247
- `&&++Q==_)););for(j=0,Q=0;j<P&&x<L.length-1&&(x++,j++,!(L[x]==`
248
- `&&++Q==_)););return{before:L.substring(C,this.offset),after:L.substring(this.offset,x+1)}}return null}};m.ParseLocation=b;var D=class{constructor(P,_){this.content=P,this.url=_}};m.ParseSourceFile=D;var c=class{constructor(P,_){let L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.start=P,this.end=_,this.details=L}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};m.ParseSourceSpan=c,m.EMPTY_PARSE_LOCATION=new b(new D("",""),0,0,0),m.EMPTY_SOURCE_SPAN=new c(m.EMPTY_PARSE_LOCATION,m.EMPTY_PARSE_LOCATION);var d;(function(P){P[P.WARNING=0]="WARNING",P[P.ERROR=1]="ERROR"})(d=m.ParseErrorLevel||(m.ParseErrorLevel={}));var h=class{constructor(P,_){let L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d.ERROR;this.span=P,this.msg=_,this.level=L}contextualMessage(){let P=this.span.start.getContext(100,3);return P?`${this.msg} ("${P.before}[${d[this.level]} ->]${P.after}")`:this.msg}toString(){let P=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${P}`}};m.ParseError=h;function v(P,_){let L=f.identifierModuleUrl(_),C=L!=null?`in ${P} ${f.identifierName(_)} in ${L}`:`in ${P} ${f.identifierName(_)}`,x=new D("",C);return new c(new b(x,-1,-1,-1),new b(x,-1,-1,-1))}m.typeSourceSpan=v;function S(P,_,L){let C=`in ${P} ${_} in ${L}`,x=new D("",C);return new c(new b(x,-1,-1,-1),new b(x,-1,-1,-1))}m.r3JitTypeSourceSpan=S}}),cE=Fe({"src/language-html/print-preprocess.js"(m,E){Re();var{ParseSourceSpan:f}=lE(),{htmlTrim:b,getLeadingAndTrailingHtmlWhitespace:D,hasHtmlWhitespace:c,canHaveInterpolation:d,getNodeCssStyleDisplay:h,isDanglingSpaceSensitiveNode:v,isIndentationSensitiveNode:S,isLeadingSpaceSensitiveNode:P,isTrailingSpaceSensitiveNode:_,isWhitespaceSensitiveNode:L,isVueScriptTag:C}=Qa(),x=[Q,ee,X,ne,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 ee(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 f(z.sourceSpan.start,ie.sourceSpan.end),ge=new f(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 f(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"&&!c(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 f(z.sourceSpan.start,ie.sourceSpan.end),z.isTrailingSpaceSensitive=ie.isTrailingSpaceSensitive,z.hasTrailingSpaces=ie.hasTrailingSpaces,M.removeChild(U),q--,M.removeChild(ie)}})}function ne(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 f(z,ie)});continue}ie=z.moveBy(fe.length+4),q.insertChildBefore(U,{type:"interpolation",sourceSpan:new f(z,ie),children:fe.length===0?[]:[{type:"text",value:fe,sourceSpan:new f(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=L(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,Ne=z.next;ce?(z.value=ce,z.sourceSpan=new f(z.sourceSpan.start.moveBy(ie.length),z.sourceSpan.end.moveBy(-ge.length)),ie&&(fe&&(fe.hasTrailingSpaces=!0),z.hasLeadingSpaces=!0),ge&&(z.hasTrailingSpaces=!0,Ne&&(Ne.hasLeadingSpaces=!0))):(T.removeChild(z),U--,(ie||ge)&&(fe&&(fe.hasTrailingSpaces=!0),Ne&&(Ne.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=P(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=>C(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}}),fE=Fe({"src/language-html/pragma.js"(m,E){Re();function f(D){return/^\s*<!--\s*@(?:format|prettier)\s*-->/.test(D)}function b(D){return`<!-- @format -->
250
-
251
- `+D.replace(/^\s*\n/,"")}E.exports={hasPragma:f,insertPragma:b}}}),Qf=Fe({"src/language-html/loc.js"(m,E){Re();function f(D){return D.sourceSpan.start.offset}function b(D){return D.sourceSpan.end.offset}E.exports={locStart:f,locEnd:b}}}),$o=Fe({"src/language-html/print/tag.js"(m,E){Re();var f=Mo(),{isNonEmptyArray:b}=ye(),{builders:{indent:D,join:c,line:d,softline:h,hardline:v},utils:{replaceTextEndOfLine:S}}=wn(),{locStart:P,locEnd:_}=Qf(),{isTextLikeNode:L,getLastDescendant:C,isPreLikeNode:x,hasPrettierIgnore:j,shouldPreserveContent:Q,isVueSfcBlock:ee}=Qa();function $(se,Ue){return[se.isSelfClosing?"":X(se,Ue),G(se,Ue)]}function X(se,Ue){return se.lastChild&&y(se.lastChild)?"":[ne(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 ne(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(f(!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"&&!L(se.prev)&&se.isLeadingSpaceSensitive&&!se.hasLeadingSpaces}function R(se){return se.lastChild&&se.lastChild.isTrailingSpaceSensitive&&!se.lastChild.hasTrailingSpaces&&!L(C(se.lastChild))&&!x(se)}function y(se){return!se.next&&!se.hasTrailingSpaces&&se.isTrailingSpaceSensitive&&L(C(se))}function T(se){return se.next&&!L(se.next)&&L(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 qe=ue.prev&&ue.prev.type==="comment"&&M(ue.prev.value),nt=typeof qe=="boolean"?()=>qe:Array.isArray(qe)?ft=>qe.includes(ft.rawName):()=>!1,Je=se.map(ft=>{let pt=ft.getValue();return nt(pt)?S(Ue.originalText.slice(P(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&&!ee(ue,Ue)?v:d,Ie=[D([ht?" ":d,c(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)?"":Ne(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)?Ne(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 Ne(se){switch(f(!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:Ne,needsToBorrowNextOpeningTagStartMarker:T,needsToBorrowParentOpeningTagEndMarker:q}}}),pE=Fe({"node_modules/parse-srcset/src/parse-srcset.js"(m,E){Re(),function(f,b){typeof E=="object"&&E.exports?E.exports=b():f.parseSrcset=b()}(m,function(){return function(f,b){var D=b&&b.logger||console;function c(De){return De===" "||De===" "||De===`
252
- `||De==="\f"||De==="\r"}function d(De){var F,J=De.exec(f.substring(X));if(J)return F=J[0],X+=F.length,F}for(var h=f.length,v=/^[ \t\n\r\u000c]+/,S=/^[, \t\n\r\u000c]+/,P=/^[^ \t\n\r\u000c]+/,_=/[,]+$/,L=/^\d+$/,C=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,x,j,Q,ee,$,X=0,G=[];;){if(d(S),X>=h)return G;x=d(P),j=[],x.slice(-1)===","?(x=x.replace(_,""),Z()):ne()}function ne(){for(d(v),Q="",ee="in descriptor";;){if($=f.charAt(X),ee==="in descriptor")if(c($))Q&&(j.push(Q),Q="",ee="after descriptor");else if($===","){X+=1,Q&&j.push(Q),Z();return}else if($==="(")Q=Q+$,ee="in parens";else if($===""){Q&&j.push(Q),Z();return}else Q=Q+$;else if(ee==="in parens")if($===")")Q=Q+$,ee="in descriptor";else if($===""){j.push(Q),Z();return}else Q=Q+$;else if(ee==="after descriptor"&&!c($))if($===""){Z();return}else ee="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),L.test(q)&&M==="w"?((F||J)&&(De=!0),U===0?De=!0:F=U):C.test(q)&&M==="x"?((F||J||w)&&(De=!0),z<0?De=!0:J=z):L.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 '"+f+"' at '"+T+"'."):(y.url=x,F&&(y.w=F),J&&(y.d=J),w&&(y.h=w),G.push(y))}}})}}),dE=Fe({"src/language-html/syntax-attribute.js"(m,E){Re();var f=pE(),{builders:{ifBreak:b,join:D,line:c}}=wn();function d(v){let S=f(v,{logger:{error(ne){throw new Error(ne)}}}),P=S.some(ne=>{let{w:Z}=ne;return Z}),_=S.some(ne=>{let{h:Z}=ne;return Z}),L=S.some(ne=>{let{d:Z}=ne;return Z});if(P+_+L>1)throw new Error("Mixed descriptor in srcset is not supported");let C=P?"w":_?"h":"d",x=P?"w":_?"h":"x",j=ne=>Math.max(...ne),Q=S.map(ne=>ne.url),ee=j(Q.map(ne=>ne.length)),$=S.map(ne=>ne[C]).map(ne=>ne?ne.toString():""),X=$.map(ne=>{let Z=ne.indexOf(".");return Z===-1?ne.length:Z}),G=j(X);return D([",",c],Q.map((ne,Z)=>{let De=[ne],F=$[Z];if(F){let J=ee-ne.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}}}),hE=Fe({"src/language-html/syntax-vue.js"(m,E){Re();var{builders:{group:f}}=wn();function b(h,v){let{left:S,operator:P,right:_}=D(h);return[f(v(`function _(${S}) {}`,{parser:"babel",__isVueForBindingLeft:!0}))," ",P," ",v(_,{parser:"__js_expression"},{stripTrailingHardline:!0})]}function D(h){let v=/(.*?)\s+(in|of)\s+(.*)/s,S=/,([^,\]}]*)(?:,([^,\]}]*))?$/,P=/^\(|\)$/g,_=h.match(v);if(!_)return;let L={};if(L.for=_[3].trim(),!L.for)return;let C=_[1].trim().replace(P,""),x=C.match(S);x?(L.alias=C.replace(S,""),L.iterator1=x[1].trim(),x[2]&&(L.iterator2=x[2].trim())):L.alias=C;let j=[L.alias,L.iterator1,L.iterator2];if(!j.some((Q,ee)=>!Q&&(ee===0||j.slice(ee+1).some(Boolean))))return{left:j.filter(Boolean).join(","),operator:_[2],right:L.for}}function c(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$]*])*$/,P=h.trim();return v.test(P)||S.test(P)}E.exports={isVueEventBindingExpression:d,printVueFor:b,printVueBindings:c}}}),W0=Fe({"src/language-html/get-node-content.js"(m,E){Re();var{needsToBorrowParentClosingTagStartMarker:f,printClosingTagStartMarker:b,needsToBorrowLastChildClosingTagEndMarker:D,printClosingTagEndMarker:c,needsToBorrowParentOpeningTagEndMarker:d,printOpeningTagEndMarker:h}=$o();function v(S,P){let _=S.startSourceSpan.end.offset;S.firstChild&&d(S.firstChild)&&(_-=h(S).length);let L=S.endSourceSpan.start.offset;return S.lastChild&&f(S.lastChild)?L+=b(S,P).length:D(S)&&(L-=c(S.lastChild,P).length),P.originalText.slice(_,L)}E.exports=v}}),mE=Fe({"src/language-html/embed.js"(m,E){Re();var{builders:{breakParent:f,group:b,hardline:D,indent:c,line:d,fill:h,softline:v},utils:{mapDoc:S,replaceTextEndOfLine:P}}=wn(),_=Hf(),{printClosingTag:L,printClosingTagSuffix:C,needsToBorrowPrevClosingTagEndMarker:x,printOpeningTagPrefix:j,printOpeningTag:Q}=$o(),{printImgSrcset:ee,printClassNames:$}=dE(),{printVueFor:X,printVueBindings:G,isVueEventBindingExpression:ne}=hE(),{isScriptLikeTag:Z,isVueNonHtmlBlock:De,inferScriptParser:F,htmlTrimPreserveIndentation:J,dedentString:w,unescapeQuoteEntities:R,isVueSlotAttribute:y,isVueSfcBindingsAttribute:T,getTextValueParts:M}=Qa(),q=W0();function U(ie,ce,ge){let fe=Je=>new RegExp(Je.join("|")).test(ie.fullName),Ne=()=>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([c([v,Je]),ht?v:""])},qe=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(ee(Ne()));if(ie.fullName==="class"&&!ge.parentParser){let Je=Ne();if(!Je.includes("{{"))return $(Je)}if(ie.fullName==="style"&&!ge.parentParser){let Je=Ne();if(!Je.includes("{{"))return ue(nt(Je,{parser:"css",__isHTMLStyleAttribute:!0}))}if(ge.parser==="vue"){if(ie.fullName==="v-for")return X(Ne(),nt);if(y(ie)||T(ie,ge))return G(Ne(),nt);let Je=["^@","^v-on:"],ht=["^:","^v-bind:"],be=["^v-"];if(fe(Je)){let Ie=Ne(),ft=ne(Ie)?"__js_expression":ge.__should_parse_vue_template_with_ts?"__vue_ts_event_binding":"__vue_event_binding";return qe(nt(Ie,{parser:ft}))}if(fe(ht))return qe(nt(Ne(),{parser:"__vue_expression"}));if(fe(be))return qe(nt(Ne(),{parser:"__js_expression"}))}if(ge.parser==="angular"){let Je=($e,Se)=>nt($e,Object.assign(Object.assign({},Se),{},{trailingComma:"none"})),ht=["^\\*"],be=["^\\(.+\\)$","^on-"],Ie=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],ft=["^i18n(-.+)?$"];if(fe(be))return qe(Je(Ne(),{parser:"__ng_action"}));if(fe(Ie))return qe(Je(Ne(),{parser:"__ng_binding"}));if(fe(ft)){let $e=Ne().trim();return ue(h(M(ie,$e)),!$e.includes("@@"))}if(fe(ht))return qe(Je(Ne(),{parser:"__ng_directive"}));let pt=/{{(.+?)}}/s,Jt=Ne();if(pt.test(Jt)){let $e=[];for(let[Se,Ye]of Jt.split(pt).entries())if(Se%2===0)$e.push(P(Ye));else try{$e.push(b(["{{",c([d,Je(Ye,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),d,"}}"]))}catch{$e.push("{{",P(Ye),"}}")}return b($e)}}return null}function z(ie,ce,ge,fe){let Ne=ie.getValue();switch(Ne.type){case"element":{if(Z(Ne)||Ne.type==="interpolation")return;if(!Ne.isSelfClosing&&De(Ne,fe)){let se=F(Ne,fe);if(!se)return;let Ue=q(Ne,fe),me=/^\s*$/.test(Ue),ue="";return me||(ue=ge(J(Ue),{parser:se,__embeddedInHtml:!0},{stripTrailingHardline:!0}),me=ue===""),[j(Ne,fe),b(Q(ie,fe,ce)),me?"":D,ue,me?"":D,L(Ne,fe),C(Ne,fe)]}break}case"text":{if(Z(Ne.parent)){let se=F(Ne.parent,fe);if(se){let Ue=se==="markdown"?w(Ne.value.replace(/^[^\S\n]*\n/,"")):Ne.value,me={parser:se,__embeddedInHtml:!0};if(fe.parser==="html"&&se==="babel"){let ue="script",{attrMap:qe}=Ne.parent;qe&&(qe.type==="module"||qe.type==="text/babel"&&qe["data-type"]==="module")&&(ue="module"),me.__babelSourceType=ue}return[f,j(Ne,fe),ge(Ue,me,{stripTrailingHardline:!0}),C(Ne,fe)]}}else if(Ne.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",[c([d,ge(Ne.value,se,{stripTrailingHardline:!0})]),Ne.parent.next&&x(Ne.parent.next)?" ":d]}break}case"attribute":{if(!Ne.value)break;if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(fe.originalText.slice(Ne.valueSpan.start.offset,Ne.valueSpan.end.offset)))return[Ne.rawName,"=",Ne.value];if(fe.parser==="lwc"&&/^{.*}$/s.test(fe.originalText.slice(Ne.valueSpan.start.offset,Ne.valueSpan.end.offset)))return[Ne.rawName,"=",Ne.value];let se=U(Ne,(Ue,me)=>ge(Ue,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},me),{stripTrailingHardline:!0}),fe);if(se)return[Ne.rawName,'="',b(S(se,Ue=>typeof Ue=="string"?Ue.replace(/"/g,"&quot;"):Ue)),'"'];break}case"front-matter":return _(Ne,ge)}}E.exports=z}}),G0=Fe({"src/language-html/print/children.js"(m,E){Re();var{builders:{breakParent:f,group:b,ifBreak:D,line:c,softline:d,hardline:h},utils:{replaceTextEndOfLine:v}}=wn(),{locStart:S,locEnd:P}=Qf(),{forceBreakChildren:_,forceNextEmptyLine:L,isTextLikeNode:C,hasPrettierIgnore:x,preferHardlineAsLeadingSpaces:j}=Qa(),{printOpeningTagPrefix:Q,needsToBorrowNextOpeningTagStartMarker:ee,printOpeningTagStartMarker:$,needsToBorrowPrevClosingTagEndMarker:X,printClosingTagEndMarker:G,printClosingTagSuffix:ne,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&&ee(T.prev)?$(T).length:0),P(T)-(T.next&&X(T.next)?G(T,R).length:0))),ne(T,R)]:y()}function F(w,R){return C(w)&&C(R)?w.isTrailingSpaceSensitive?w.hasTrailingSpaces?j(R)?h:c:"":j(R)?h:d:ee(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?c:d}function J(w,R,y){let T=w.getValue();if(_(T))return[f,...w.map(q=>{let U=q.getValue(),z=U.prev?F(U.prev,U):"";return[z?[z,L(U.prev)?h:""]:"",De(q,R,y)]},"children")];let M=T.children.map(()=>Symbol(""));return w.map((q,U)=>{let z=q.getValue();if(C(z)){if(z.prev&&C(z.prev)){let Ue=F(z.prev,z);if(Ue)return L(z.prev)?[h,h,De(q,R,y)]:[Ue,De(q,R,y)]}return De(q,R,y)}let ie=[],ce=[],ge=[],fe=[],Ne=z.prev?F(z.prev,z):"",se=z.next?F(z,z.next):"";return Ne&&(L(z.prev)?ie.push(h,h):Ne===h?ie.push(h):C(z.prev)?ce.push(Ne):ce.push(D("",d,{groupId:M[U-1]}))),se&&(L(z)?C(z.next)&&fe.push(h,h):se===h?C(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}}}),gE=Fe({"src/language-html/print/element.js"(m,E){Re();var{builders:{breakParent:f,dedentToRoot:b,group:D,ifBreak:c,indentIfBreak:d,indent:h,line:v,softline:S},utils:{replaceTextEndOfLine:P}}=wn(),_=W0(),{shouldPreserveContent:L,isScriptLikeTag:C,isVueCustomBlock:x,countParents:j,forceBreakContent:Q}=Qa(),{printOpeningTagPrefix:ee,printOpeningTag:$,printClosingTagSuffix:X,printClosingTag:G,needsToBorrowPrevClosingTagEndMarker:ne,needsToBorrowLastChildClosingTagEndMarker:Z}=$o(),{printChildren:De}=G0();function F(J,w,R){let y=J.getValue();if(L(y,w))return[ee(y,w),D($(J,w,R)),...P(_(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}):(C(y)||x(y,w))&&y.parent.type==="root"&&w.parser==="vue"&&!w.vueIndentScriptAndStyle?ce:h(ce),z=()=>T?c(S,"",{groupId:M}):y.firstChild.hasLeadingSpaces&&y.firstChild.isLeadingSpaceSensitive?v:y.firstChild.type==="text"&&y.isWhitespaceSensitive&&y.isIndentationSensitive?b(S):S,ie=()=>(y.next?ne(y.next):Z(y.parent))?y.lastChild.hasTrailingSpaces&&y.lastChild.isTrailingSpaceSensitive?" ":"":T?c(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)?f:"",U([z(),De(J,w,R)]),ie()])}E.exports={printElement:F}}}),yE=Fe({"src/language-html/printer-html.js"(m,E){Re();var{builders:{fill:f,group:b,hardline:D,literalline:c},utils:{cleanDoc:d,getDocParts:h,isConcat:v,replaceTextEndOfLine:S}}=wn(),P=nE(),{countChars:_,unescapeQuoteEntities:L,getTextValueParts:C}=Qa(),x=cE(),{insertPragma:j}=fE(),{locStart:Q,locEnd:ee}=Qf(),$=mE(),{printClosingTagSuffix:X,printClosingTagEnd:G,printOpeningTagPrefix:ne,printOpeningTagStart:Z}=$o(),{printElement:De}=gE(),{printChildren:F}=G0();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([ne(T,R),...C(T),X(T,R)]);return v(M)||M.type==="fill"?f(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[ne(T,R),...S(R.originalText.slice(Q(T),ee(T)),c),X(T,R)];case"attribute":{if(T.value===null)return T.rawName;let M=L(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:P,embed:$}}}),DE=Fe({"src/language-html/options.js"(m,E){Re();var f=za(),b="HTML";E.exports={bracketSameLine:f.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:f.singleAttributePerLine,vueIndentScriptAndStyle:{since:"1.19.0",category:b,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}}}}),bE=Fe({"src/language-html/parsers.js"(){Re()}}),Xf=Fe({"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}}}),vE=Fe({"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}}}),EE=Fe({"src/language-html/index.js"(m,E){Re();var f=na(),b=yE(),D=DE(),c=bE(),d=[f(Xf(),()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})),f(Xf(),v=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[...v.extensions,".mjml"]})),f(Xf(),()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})),f(vE(),()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}))],h={html:b};E.exports={languages:d,printers:h,options:D,parsers:c}}}),AE=Fe({"src/language-yaml/pragma.js"(m,E){Re();function f(c){return/^\s*@(?:prettier|format)\s*$/.test(c)}function b(c){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(c)}function D(c){return`# @format
253
-
254
- ${c}`}E.exports={isPragma:f,hasPragma:b,insertPragma:D}}}),CE=Fe({"src/language-yaml/loc.js"(m,E){Re();function f(D){return D.position.start.offset}function b(D){return D.position.end.offset}E.exports={locStart:f,locEnd:b}}}),SE=Fe({"src/language-yaml/embed.js"(m,E){Re();function f(b,D,c,d){if(b.getValue().type==="root"&&d.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/.test(d.filepath))return c(d.originalText,Object.assign(Object.assign({},d),{},{parser:"json"}))}E.exports=f}}),Xa=Fe({"src/language-yaml/utils.js"(m,E){Re();var{getLast:f,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];c(T)&&J(T)&&w++}return w}function c(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 P(F){return b(F.children)?P(f(F.children)):F}function _(F){return F.value.trim()==="prettier-ignore"}function L(F){let J=F.getValue();if(J.type==="documentBody"){let w=F.getParentNode();return X(w.head)&&_(f(w.head.endComments))}return j(J)&&_(f(J.leadingComments))}function C(F){return!b(F.children)&&!x(F)}function x(F){return j(F)||Q(F)||ee(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 ee(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 ne(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"&&f(f(y)).endsWith("\\"))?[...y.slice(0,-1),[...f(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(f(z))?[...z.slice(0,-1),[...f(z),...ie]]:[...z,ie],[]).map(z=>z.reduce((ie,ce)=>ie.length>0&&/\s$/.test(f(ie))?[...ie.slice(0,-1),f(ie)+" "+ce]:[...ie,ce],[])).map(z=>y.proseWrap==="never"?[z.join(" ")]:z));function U(z){if(F.chomping==="keep")return f(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:f,getAncestorCount:D,isNode:c,isEmptyNode:C,isInlineNode:De,mapNode:d,defineShortcut:h,isNextLineEmpty:v,isLastDescendantNode:S,getBlockValueLineContents:Z,getFlowScalarLineContents:ne,getLastDescendantNode:P,hasPrettierIgnore:L,hasLeadingComments:j,hasMiddleComments:Q,hasIndicatorComment:ee,hasTrailingComment:$,hasEndComments:X}}}),xE=Fe({"src/language-yaml/print-preprocess.js"(m,E){Re();var{defineShortcut:f,mapNode:b}=Xa();function D(d){return b(d,c)}function c(d){switch(d.type){case"document":f(d,"head",()=>d.children[0]),f(d,"body",()=>d.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":f(d,"content",()=>d.children[0]);break;case"mappingItem":case"flowMappingItem":f(d,"key",()=>d.children[0]),f(d,"value",()=>d.children[1]);break}return d}E.exports=D}}),ml=Fe({"src/language-yaml/print/misc.js"(m,E){Re();var{builders:{softline:f,align:b}}=wn(),{hasEndComments:D,isNextLineEmpty:c,isNode:d}=Xa(),h=new WeakMap;function v(_,L){let C=_.getValue(),x=_.stack[0],j;return h.has(x)?j=h.get(x):(j=new Set,h.set(x,j)),!j.has(C.position.end.line)&&(j.add(C.position.end.line),c(C,L)&&!S(_.getParentNode()))?f:""}function S(_){return D(_)&&!d(_,["documentHead","documentBody","flowMapping","flowSequence"])}function P(_,L){return b(" ".repeat(_),L)}E.exports={alignWithSpaces:P,shouldPrintEndComments:S,printNextEmptyLine:v}}}),wE=Fe({"src/language-yaml/print/flow-mapping-sequence.js"(m,E){Re();var{builders:{ifBreak:f,line:b,softline:D,hardline:c,join:d}}=wn(),{isEmptyNode:h,getLast:v,hasEndComments:S}=Xa(),{printNextEmptyLine:P,alignWithSpaces:_}=ml();function L(x,j,Q){let ee=x.getValue(),$=ee.type==="flowMapping",X=$?"{":"[",G=$?"}":"]",ne=D;$&&ee.children.length>0&&Q.bracketSpacing&&(ne=b);let Z=v(ee.children),De=Z&&Z.type==="flowMappingItem"&&h(Z.key)&&h(Z.value);return[X,_(Q.tabWidth,[ne,C(x,j,Q),Q.trailingComma==="none"?"":f(","),S(ee)?[c,d(c,x.map(j,"endComments"))]:""]),De?"":ne,G]}function C(x,j,Q){let ee=x.getValue();return x.map(($,X)=>[j(),X===ee.children.length-1?"":[",",b,ee.children[X].position.start.line!==ee.children[X+1].position.start.line?P($,Q.originalText):""]],"children")}E.exports={printFlowMapping:L,printFlowSequence:L}}}),FE=Fe({"src/language-yaml/print/mapping-item.js"(m,E){Re();var{builders:{conditionalGroup:f,group:b,hardline:D,ifBreak:c,join:d,line:h}}=wn(),{hasLeadingComments:v,hasMiddleComments:S,hasTrailingComment:P,hasEndComments:_,isNode:L,isEmptyNode:C,isInlineNode:x}=Xa(),{alignWithSpaces:j}=ml();function Q(G,ne,Z,De,F){let{key:J,value:w}=G,R=C(J),y=C(w);if(R&&y)return": ";let T=De("key"),M=$(G)?" ":"";if(y)return G.type==="flowMappingItem"&&ne.type==="flowMapping"?T:G.type==="mappingItem"&&ee(J.content,F)&&!P(J.content)&&(!ne.tag||ne.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)&&!P(J.content)&&!_(J)&&!v(w.content)&&!S(w.content)&&!_(w)&&ee(w.content,F))return[T,M,": ",q];let U=Symbol("mappingKey"),z=b([c("? "),b(j(2,T),{id:U})]),ie=[D,": ",j(2,q)],ce=[M,":"];v(w.content)||_(w)&&w.content&&!L(w.content,["mapping","sequence"])||ne.type==="mapping"&&P(J.content)&&x(w.content)||L(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 ee(J.content,F)&&!v(J.content)&&!S(J.content)&&!_(J)?f([[T,ge]]):f([[z,c(ie,ge,{groupId:U})]])}function ee(G,ne){if(!G)return!0;switch(G.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(ne.proseWrap==="preserve")return G.position.start.line===G.position.end.line;if(/\\$/m.test(ne.originalText.slice(G.position.start.offset,G.position.end.offset)))return!1;switch(ne.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}}),NE=Fe({"src/language-yaml/print/block.js"(m,E){Re();var{builders:{dedent:f,dedentToRoot:b,fill:D,hardline:c,join:d,line:h,literalline:v,markAsRoot:S},utils:{getDocParts:P}}=wn(),{getAncestorCount:_,getBlockValueLineContents:L,hasIndicatorComment:C,isLastDescendantNode:x,isNode:j}=Xa(),{alignWithSpaces:Q}=ml();function ee($,X,G){let ne=$.getValue(),Z=_($,R=>j(R,["sequence","mapping"])),De=x($),F=[ne.type==="blockFolded"?">":"|"];ne.indent!==null&&F.push(ne.indent.toString()),ne.chomping!=="clip"&&F.push(ne.chomping==="keep"?"+":"-"),C(ne)&&F.push(" ",X("indicatorComment"));let J=L(ne,{parentIndent:Z,isLastDescendant:De,options:G}),w=[];for(let[R,y]of J.entries())R===0&&w.push(c),w.push(D(P(d(h,y)))),R!==J.length-1?w.push(y.length===0?c:S(v)):ne.chomping==="keep"&&De&&w.push(b(y.length===0?c:v));return ne.indent===null?F.push(f(Q(G.tabWidth,w))):F.push(b(Q(ne.indent-1+Z,w))),F}E.exports=ee}}),_E=Fe({"src/language-yaml/printer-yaml.js"(m,E){Re();var{builders:{breakParent:f,fill:b,group:D,hardline:c,join:d,line:h,lineSuffix:v,literalline:S},utils:{getDocParts:P,replaceTextEndOfLine:_}}=wn(),{isPreviousLineEmpty:L}=ye(),{insertPragma:C,isPragma:x}=AE(),{locStart:j}=CE(),Q=SE(),{getFlowScalarLineContents:ee,getLastDescendantNode:$,hasLeadingComments:X,hasMiddleComments:G,hasTrailingComment:ne,hasEndComments:Z,hasPrettierIgnore:De,isLastDescendantNode:F,isNode:J,isInlineNode:w}=Xa(),R=xE(),{alignWithSpaces:y,printNextEmptyLine:T,shouldPrintEndComments:M}=ml(),{printFlowMapping:q,printFlowSequence:U}=wE(),z=FE(),ie=NE();function ce(ue,qe,nt){let Je=ue.getValue(),ht=[];Je.type!=="mappingValue"&&X(Je)&&ht.push([d(c,ue.map(nt,"leadingComments")),c]);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,qe.originalText)),(be||Ie)&&(J(Je,["sequence","mapping"])&&!G(Je)?ht.push(c):ht.push(" ")),G(Je)&&ht.push([Je.middleComments.length===1?"":c,d(c,ue.map(nt,"middleComments")),c]);let pt=ue.getParentNode();return De(ue)?ht.push(_(qe.originalText.slice(Je.position.start.offset,Je.position.end.offset).trimEnd(),S)):ht.push(D(ge(Je,pt,ue,qe,nt))),ne(Je)&&!J(Je,["document","documentHead"])&&ht.push(v([Je.type==="mappingValue"&&!Je.content?"":" ",pt.type==="mappingKey"&&ue.getParentNode(2).type==="mapping"&&w(Je)?"":f,nt("trailingComment")])),M(Je)&&ht.push(y(Je.type==="sequenceItem"?2:0,[c,d(c,ue.map(Jt=>[L(qe.originalText,Jt.getValue(),j)?c:"",nt()],"endComments"))])),ht.push(ft),ht}function ge(ue,qe,nt,Je,ht){switch(ue.type){case"root":{let{children:be}=ue,Ie=[];nt.each((pt,Jt)=>{let $e=be[Jt],Se=be[Jt+1];Jt!==0&&Ie.push(c),Ie.push(ht()),Ne($e,Se)?(Ie.push(c,"..."),ne($e)&&Ie.push(" ",ht("trailingComment"))):Se&&!ne(Se.head)&&Ie.push(c,"---")},"children");let ft=$(ue);return(!J(ft,["blockLiteral","blockFolded"])||ft.chomping!=="keep")&&Ie.push(c),Ie}case"document":{let be=qe.children[nt.getName()+1],Ie=[];return se(ue,be,qe,Je)==="head"&&((ue.head.children.length>0||ue.head.endComments.length>0)&&Ie.push(ht("head")),ne(ue.head)?Ie.push(["---"," ",ht(["head","trailingComment"])]):Ie.push("---")),fe(ue)&&Ie.push(ht("body")),d(c,Ie)}case"documentHead":return d(c,[...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=[c,c]):ft=c}return[d(c,nt.map(ht,"children")),ft,d(c,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(c,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,qe,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 Ne(ue,qe){return ne(ue)||qe&&(qe.head.children.length>0||Z(qe.head))}function se(ue,qe,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)||ne(ue.head)?"head":Ne(ue,qe)?!1:qe?"root":!1}function Ue(ue,qe,nt){let Je=ee(ue,qe,nt);return d(c,Je.map(ht=>b(P(d(h,ht)))))}function me(ue,qe){if(J(qe))switch(delete qe.position,qe.type){case"comment":if(x(qe.value))return null;break;case"quoteDouble":case"quoteSingle":qe.type="quote";break}}E.exports={preprocess:R,embed:Q,print:ce,massageAstNode:me,insertPragma:C}}}),TE=Fe({"src/language-yaml/options.js"(m,E){Re();var f=za();E.exports={bracketSpacing:f.bracketSpacing,singleQuote:f.singleQuote,proseWrap:f.proseWrap}}}),kE=Fe({"src/language-yaml/parsers.js"(){Re()}}),LE=Fe({"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}}}),PE=Fe({"src/language-yaml/index.js"(m,E){Re();var f=na(),b=_E(),D=TE(),c=kE(),d=[f(LE(),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:c}}}),BE=Fe({"src/languages.js"(m,E){Re(),E.exports=[h2(),L2(),$2(),Y2(),tE(),EE(),PE()]}});Re();var{version:ME}=ei(),Ka=kv(),{getSupportInfo:IE}=Ft(),OE=Lv(),jE=BE(),RE=wn();function ia(m){let E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return function(){for(var f=arguments.length,b=new Array(f),D=0;D<f;D++)b[D]=arguments[D];let c=b[E]||{},d=c.plugins||[];return b[E]=Object.assign(Object.assign({},c),{},{plugins:[...jE,...Array.isArray(d)?d:Object.values(d)]}),m(...b)}}var Kf=ia(Ka.formatWithCursor);at.exports={formatWithCursor:Kf,format(m,E){return Kf(m,E).formatted},check(m,E){let{formatted:f}=Kf(m,E);return f===m},doc:RE,getSupportInfo:ia(IE,0),version:ME,util:OE,__debug:{parse:ia(Ka.parse),formatAST:ia(Ka.formatAST),formatDoc:ia(Ka.formatDoc),printToDoc:ia(Ka.printToDoc),printDocToString:ia(Ka.printDocToString)}}});return Sf()})})(Pm);var AD=Pm.exports,Bm={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,A=(Y,g)=>function(){return Y&&(g=(0,Y[u(Y)[0]])(Y=0)),g},p=(Y,g)=>function(){return g||(0,Y[u(Y)[0]])((g={exports:{}}).exports,g),g.exports},O=(Y,g)=>{for(var W in g)a(Y,W,{get:g[W],enumerable:!0})},k=(Y,g,W,Ae)=>{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:!(Ae=o(g,Pe))||Ae.enumerable});return Y},re=Y=>k(a({},"__esModule",{value:!0}),Y),te,N=A({"<define:process>"(){te={env:{},argv:[]}}}),oe=p({"src/common/parser-create-error.js"(Y,g){N();function W(Ae,Pe){let Be=new SyntaxError(Ae+" ("+Pe.start.line+":"+Pe.start.column+")");return Be.loc=Pe,Be}g.exports=W}}),Te=p({"src/language-yaml/pragma.js"(Y,g){N();function W(Be){return/^\s*@(?:prettier|format)\s*$/.test(Be)}function Ae(Be){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/.test(Be)}function Pe(Be){return`# @format
259
-
260
- ${Be}`}g.exports={isPragma:W,hasPragma:Ae,insertPragma:Pe}}}),Le=p({"src/language-yaml/loc.js"(Y,g){N();function W(Pe){return Pe.position.start.offset}function Ae(Pe){return Pe.position.end.offset}g.exports={locStart:W,locEnd:Ae}}}),Ge={};O(Ge,{__assign:()=>Yi,__asyncDelegator:()=>Ln,__asyncGenerator:()=>en,__asyncValues:()=>Un,__await:()=>qt,__awaiter:()=>xe,__classPrivateFieldGet:()=>yi,__classPrivateFieldSet:()=>cs,__createBinding:()=>Ve,__decorate:()=>ze,__exportStar:()=>Rt,__extends:()=>he,__generator:()=>et,__importDefault:()=>Qr,__importStar:()=>zr,__makeTemplateObject:()=>Pn,__metadata:()=>Ce,__param:()=>Et,__read:()=>kn,__rest:()=>ke,__spread:()=>Lt,__spreadArrays:()=>Tt,__values:()=>pn});function he(Y,g){Si(Y,g);function W(){this.constructor=Y}Y.prototype=g===null?Object.create(g):(W.prototype=g.prototype,new W)}function ke(Y,g){var W={};for(var Ae in Y)Object.prototype.hasOwnProperty.call(Y,Ae)&&g.indexOf(Ae)<0&&(W[Ae]=Y[Ae]);if(Y!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Ae=Object.getOwnPropertySymbols(Y);Pe<Ae.length;Pe++)g.indexOf(Ae[Pe])<0&&Object.prototype.propertyIsEnumerable.call(Y,Ae[Pe])&&(W[Ae[Pe]]=Y[Ae[Pe]]);return W}function ze(Y,g,W,Ae){var Pe=arguments.length,Be=Pe<3?g:Ae===null?Ae=Object.getOwnPropertyDescriptor(g,W):Ae,Ke;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")Be=Reflect.decorate(Y,g,W,Ae);else for(var mt=Y.length-1;mt>=0;mt--)(Ke=Y[mt])&&(Be=(Pe<3?Ke(Be):Pe>3?Ke(g,W,Be):Ke(g,W))||Be);return Pe>3&&Be&&Object.defineProperty(g,W,Be),Be}function Et(Y,g){return function(W,Ae){g(W,Ae,Y)}}function Ce(Y,g){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Y,g)}function xe(Y,g,W,Ae){function Pe(Be){return Be instanceof W?Be:new W(function(Ke){Ke(Be)})}return new(W||(W=Promise))(function(Be,Ke){function mt(yt){try{st(Ae.next(yt))}catch(Ft){Ke(Ft)}}function jt(yt){try{st(Ae.throw(yt))}catch(Ft){Ke(Ft)}}function st(yt){yt.done?Be(yt.value):Pe(yt.value).then(mt,jt)}st((Ae=Ae.apply(Y,g||[])).next())})}function et(Y,g){var W={label:0,sent:function(){if(Be[0]&1)throw Be[1];return Be[1]},trys:[],ops:[]},Ae,Pe,Be,Ke;return Ke={next:mt(0),throw:mt(1),return:mt(2)},typeof Symbol=="function"&&(Ke[Symbol.iterator]=function(){return this}),Ke;function mt(st){return function(yt){return jt([st,yt])}}function jt(st){if(Ae)throw new TypeError("Generator is already executing.");for(;W;)try{if(Ae=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(yt){st=[6,yt],Pe=0}finally{Ae=Be=0}if(st[0]&5)throw st[1];return{value:st[0]?st[1]:void 0,done:!0}}}function Ve(Y,g,W,Ae){Ae===void 0&&(Ae=W),Y[Ae]=g[W]}function Rt(Y,g){for(var W in Y)W!=="default"&&!g.hasOwnProperty(W)&&(g[W]=Y[W])}function pn(Y){var g=typeof Symbol=="function"&&Symbol.iterator,W=g&&Y[g],Ae=0;if(W)return W.call(Y);if(Y&&typeof Y.length=="number")return{next:function(){return Y&&Ae>=Y.length&&(Y=void 0),{value:Y&&Y[Ae++],done:!Y}}};throw new TypeError(g?"Object is not iterable.":"Symbol.iterator is not defined.")}function kn(Y,g){var W=typeof Symbol=="function"&&Y[Symbol.iterator];if(!W)return Y;var Ae=W.call(Y),Pe,Be=[],Ke;try{for(;(g===void 0||g-- >0)&&!(Pe=Ae.next()).done;)Be.push(Pe.value)}catch(mt){Ke={error:mt}}finally{try{Pe&&!Pe.done&&(W=Ae.return)&&W.call(Ae)}finally{if(Ke)throw Ke.error}}return Be}function Lt(){for(var Y=[],g=0;g<arguments.length;g++)Y=Y.concat(kn(arguments[g]));return Y}function Tt(){for(var Y=0,g=0,W=arguments.length;g<W;g++)Y+=arguments[g].length;for(var Ae=Array(Y),Pe=0,g=0;g<W;g++)for(var Be=arguments[g],Ke=0,mt=Be.length;Ke<mt;Ke++,Pe++)Ae[Pe]=Be[Ke];return Ae}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 Ae=W.apply(Y,g||[]),Pe,Be=[];return Pe={},Ke("next"),Ke("throw"),Ke("return"),Pe[Symbol.asyncIterator]=function(){return this},Pe;function Ke(It){Ae[It]&&(Pe[It]=function(_t){return new Promise(function(Gt,Wt){Be.push([It,_t,Gt,Wt])>1||mt(It,_t)})})}function mt(It,_t){try{jt(Ae[It](_t))}catch(Gt){Ft(Be[0][3],Gt)}}function jt(It){It.value instanceof qt?Promise.resolve(It.value.v).then(st,yt):Ft(Be[0][2],It)}function st(It){mt("next",It)}function yt(It){mt("throw",It)}function Ft(It,_t){It(_t),Be.shift(),Be.length&&mt(Be[0][0],Be[0][1])}}function Ln(Y){var g,W;return g={},Ae("next"),Ae("throw",function(Pe){throw Pe}),Ae("return"),g[Symbol.iterator]=function(){return this},g;function Ae(Pe,Be){g[Pe]=Y[Pe]?function(Ke){return(W=!W)?{value:qt(Y[Pe](Ke)),done:Pe==="return"}:Be?Be(Ke):Ke}: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 pn=="function"?pn(Y):Y[Symbol.iterator](),W={},Ae("next"),Ae("throw"),Ae("return"),W[Symbol.asyncIterator]=function(){return this},W);function Ae(Be){W[Be]=Y[Be]&&function(Ke){return new Promise(function(mt,jt){Ke=Y[Be](Ke),Pe(mt,jt,Ke.done,Ke.value)})}}function Pe(Be,Ke,mt,jt){Promise.resolve(jt).then(function(st){Be({value:st,done:mt})},Ke)}}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 yi(Y,g){if(!g.has(Y))throw new TypeError("attempted to get private field on non-instance");return g.get(Y)}function cs(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 Si,Yi,nr=A({"node_modules/tslib/tslib.es6.js"(){N(),Si=function(Y,g){return Si=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,Ae){W.__proto__=Ae}||function(W,Ae){for(var Pe in Ae)Ae.hasOwnProperty(Pe)&&(W[Pe]=Ae[Pe])},Si(Y,g)},Yi=function(){return Yi=Object.assign||function(Y){for(var g,W=1,Ae=arguments.length;W<Ae;W++){g=arguments[W];for(var Pe in g)Object.prototype.hasOwnProperty.call(g,Pe)&&(Y[Pe]=g[Pe])}return Y},Yi.apply(this,arguments)}}}),qu=p({"node_modules/yaml-unist-parser/node_modules/lines-and-columns/build/index.js"(Y){N(),Y.__esModule=!0,Y.LinesAndColumns=void 0;var g=`
261
- `,W="\r",Ae=function(){function Pe(Be){this.string=Be;for(var Ke=[0],mt=0;mt<Be.length;)switch(Be[mt]){case g:mt+=g.length,Ke.push(mt);break;case W:mt+=W.length,Be[mt]===g&&(mt+=g.length),Ke.push(mt);break;default:mt++;break}this.offsets=Ke}return Pe.prototype.locationForIndex=function(Be){if(Be<0||Be>this.string.length)return null;for(var Ke=0,mt=this.offsets;mt[Ke+1]<=Be;)Ke++;var jt=Be-mt[Ke];return{line:Ke,column:jt}},Pe.prototype.indexForLocation=function(Be){var Ke=Be.line,mt=Be.column;return Ke<0||Ke>=this.offsets.length||mt<0||mt>this.lengthOfLine(Ke)?null:this.offsets[Ke]+mt},Pe.prototype.lengthOfLine=function(Be){var Ke=this.offsets[Be],mt=Be===this.offsets.length-1?this.string.length:this.offsets[Be+1];return mt-Ke},Pe}();Y.LinesAndColumns=Ae,Y.default=Ae}}),af=p({"node_modules/yaml-unist-parser/lib/utils/define-parents.js"(Y){N(),Y.__esModule=!0;function g(W,Ae){Ae===void 0&&(Ae=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:Ae,enumerable:!1})}Y.defineParents=g}}),ja=p({"node_modules/yaml-unist-parser/lib/utils/get-point-text.js"(Y){N(),Y.__esModule=!0;function g(W){return W.line+":"+W.column}Y.getPointText=g}}),of=p({"node_modules/yaml-unist-parser/lib/attach.js"(Y){N(),Y.__esModule=!0;var g=af(),W=ja();function Ae(st){g.defineParents(st);var yt=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();Ke(It,yt,Ft[0])})}Y.attachComments=Ae;function Pe(st){for(var yt=Array.from(new Array(st.position.end.line),function(){return{}}),Ft=0,It=st.comments;Ft<It.length;Ft++){var _t=It[Ft];yt[_t.position.start.line-1].comment=_t}return Be(yt,st),yt}function Be(st,yt){if(yt.position.start.offset!==yt.position.end.offset){if("leadingComments"in yt){var Ft=yt.position.start,It=st[Ft.line-1].leadingAttachableNode;(!It||Ft.column<It.position.start.column)&&(st[Ft.line-1].leadingAttachableNode=yt)}if("trailingComment"in yt&&yt.position.end.column>1&&yt.type!=="document"&&yt.type!=="documentHead"){var _t=yt.position.end,Gt=st[_t.line-1].trailingAttachableNode;(!Gt||_t.column>=Gt.position.end.column)&&(st[_t.line-1].trailingAttachableNode=yt)}if(yt.type!=="root"&&yt.type!=="document"&&yt.type!=="documentHead"&&yt.type!=="documentBody")for(var Wt=yt.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=yt)}"children"in yt&&yt.children.forEach(function(H){Be(st,H)})}}function Ke(st,yt,Ft){var It=st.position.start.line,_t=yt[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=yt[Gt-1].trailingNode,Xt=void 0;if(Wt)Xt=Wt;else if(Gt!==It&&yt[Gt-1].comment)Xt=yt[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=jt(ye)?ye:K}for(;;){if(mt(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=yt[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 mt(st,yt){if(st.position.start.offset<yt.position.start.offset&&st.position.end.offset>yt.position.end.offset)switch(st.type){case"flowMapping":case"flowSequence":return st.children.length===0||yt.position.start.line>st.children[st.children.length-1].position.end.line}if(yt.position.end.offset<st.position.end.offset)return!1;switch(st.type){case"sequenceItem":return yt.position.start.column>st.position.start.column;case"mappingKey":case"mappingValue":return yt.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"||jt(st));default:return!1}}function jt(st){return st.position.start!==st.position.end&&(st.children.length===0||st.position.start.offset!==st.children[0].position.start.offset)}}}),kr=p({"node_modules/yaml-unist-parser/lib/factories/node.js"(Y){N(),Y.__esModule=!0;function g(W,Ae){return{type:W,position:Ae}}Y.createNode=g}}),Uu=p({"node_modules/yaml-unist-parser/lib/factories/root.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=kr();function Ae(Pe,Be,Ke){return g.__assign(g.__assign({},W.createNode("root",Pe)),{children:Be,comments:Ke})}Y.createRoot=Ae}}),uf=p({"node_modules/yaml-unist-parser/lib/preprocess.js"(Y){N(),Y.__esModule=!0;function g(W){switch(W.type){case"DOCUMENT":for(var Ae=W.contents.length-1;Ae>=0;Ae--)W.contents[Ae].type==="BLANK_LINE"?W.contents.splice(Ae,1):g(W.contents[Ae]);for(var Ae=W.directives.length-1;Ae>=0;Ae--)W.directives[Ae].type==="BLANK_LINE"&&W.directives.splice(Ae,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(var Ae=W.items.length-1;Ae>=0;Ae--){var Pe=W.items[Ae];"char"in Pe||(Pe.type==="BLANK_LINE"?W.items.splice(Ae,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}}),fs=p({"node_modules/yaml-unist-parser/lib/factories/leading-comment-attachable.js"(Y){N(),Y.__esModule=!0;function g(){return{leadingComments:[]}}Y.createLeadingCommentAttachable=g}}),Ra=p({"node_modules/yaml-unist-parser/lib/factories/trailing-comment-attachable.js"(Y){N(),Y.__esModule=!0;function g(W){return W===void 0&&(W=null),{trailingComment:W}}Y.createTrailingCommentAttachable=g}}),ps=p({"node_modules/yaml-unist-parser/lib/factories/comment-attachable.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=fs(),Ae=Ra();function Pe(){return g.__assign(g.__assign({},W.createLeadingCommentAttachable()),Ae.createTrailingCommentAttachable())}Y.createCommentAttachable=Pe}}),ko=p({"node_modules/yaml-unist-parser/lib/factories/alias.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=ps(),Ae=kr();function Pe(Be,Ke,mt){return g.__assign(g.__assign(g.__assign(g.__assign({},Ae.createNode("alias",Be)),W.createCommentAttachable()),Ke),{value:mt})}Y.createAlias=Pe}}),lf=p({"node_modules/yaml-unist-parser/lib/transforms/alias.js"(Y){N(),Y.__esModule=!0;var g=ko();function W(Ae,Pe){var Be=Ae.cstNode;return g.createAlias(Pe.transformRange({origStart:Be.valueRange.origStart-1,origEnd:Be.valueRange.origEnd}),Pe.transformContent(Ae),Be.rawValue)}Y.transformAlias=W}}),cf=p({"node_modules/yaml-unist-parser/lib/factories/block-folded.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge));function W(Ae){return g.__assign(g.__assign({},Ae),{type:"blockFolded"})}Y.createBlockFolded=W}}),Xs=p({"node_modules/yaml-unist-parser/lib/factories/block-value.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=fs(),Ae=kr();function Pe(Be,Ke,mt,jt,st,yt){return g.__assign(g.__assign(g.__assign(g.__assign({},Ae.createNode("blockValue",Be)),W.createLeadingCommentAttachable()),Ke),{chomping:mt,indent:jt,value:st,indicatorComment:yt})}Y.createBlockValue=Pe}}),Wu=p({"node_modules/yaml-unist-parser/lib/constants.js"(Y){N(),Y.__esModule=!0,function(g){g.Tag="!",g.Anchor="&",g.Comment="#"}(Y.PropLeadingCharacter||(Y.PropLeadingCharacter={}))}}),ff=p({"node_modules/yaml-unist-parser/lib/factories/anchor.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=kr();function Ae(Pe,Be){return g.__assign(g.__assign({},W.createNode("anchor",Pe)),{value:Be})}Y.createAnchor=Ae}}),Lo=p({"node_modules/yaml-unist-parser/lib/factories/comment.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=kr();function Ae(Pe,Be){return g.__assign(g.__assign({},W.createNode("comment",Pe)),{value:Be})}Y.createComment=Ae}}),pf=p({"node_modules/yaml-unist-parser/lib/factories/content.js"(Y){N(),Y.__esModule=!0;function g(W,Ae,Pe){return{anchor:Ae,tag:W,middleComments:Pe}}Y.createContent=g}}),df=p({"node_modules/yaml-unist-parser/lib/factories/tag.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=kr();function Ae(Pe,Be){return g.__assign(g.__assign({},W.createNode("tag",Pe)),{value:Be})}Y.createTag=Ae}}),Gu=p({"node_modules/yaml-unist-parser/lib/transforms/content.js"(Y){N(),Y.__esModule=!0;var g=Wu(),W=ff(),Ae=Lo(),Pe=pf(),Be=df();function Ke(mt,jt,st){st===void 0&&(st=function(){return!1});for(var yt=mt.cstNode,Ft=[],It=null,_t=null,Gt=null,Wt=0,Xt=yt.props;Wt<Xt.length;Wt++){var bn=Xt[Wt],ye=jt.text[bn.origStart];switch(ye){case g.PropLeadingCharacter.Tag:It=It||bn,_t=Be.createTag(jt.transformRange(bn),mt.tag);break;case g.PropLeadingCharacter.Anchor:It=It||bn,Gt=W.createAnchor(jt.transformRange(bn),yt.anchor);break;case g.PropLeadingCharacter.Comment:{var K=Ae.createComment(jt.transformRange(bn),jt.text.slice(bn.origStart+1,bn.origEnd));jt.comments.push(K),!st(K)&&It&&It.origEnd<=bn.origStart&&bn.origEnd<=yt.valueRange.origStart&&Ft.push(K);break}default:throw new Error("Unexpected leading character "+JSON.stringify(ye))}}return Pe.createContent(_t,Gt,Ft)}Y.transformContent=Ke}}),Ju=p({"node_modules/yaml-unist-parser/lib/transforms/block-value.js"(Y){N(),Y.__esModule=!0;var g=Xs(),W=ja(),Ae=Gu(),Pe;(function(Ke){Ke.CLIP="clip",Ke.STRIP="strip",Ke.KEEP="keep"})(Pe||(Pe={}));function Be(Ke,mt){var jt=Ke.cstNode,st=1,yt=jt.chomping==="CLIP"?0:1,Ft=jt.header.origEnd-jt.header.origStart,It=Ft-st-yt!==0,_t=mt.transformRange({origStart:jt.header.origStart,origEnd:jt.valueRange.origEnd}),Gt=null,Wt=Ae.transformContent(Ke,mt,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[jt.chomping],It?jt.blockIndent:null,jt.strValue,Gt)}Y.transformAstBlockValue=Be}}),hf=p({"node_modules/yaml-unist-parser/lib/transforms/block-folded.js"(Y){N(),Y.__esModule=!0;var g=cf(),W=Ju();function Ae(Pe,Be){return g.createBlockFolded(W.transformAstBlockValue(Pe,Be))}Y.transformBlockFolded=Ae}}),$a=p({"node_modules/yaml-unist-parser/lib/factories/block-literal.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge));function W(Ae){return g.__assign(g.__assign({},Ae),{type:"blockLiteral"})}Y.createBlockLiteral=W}}),Yu=p({"node_modules/yaml-unist-parser/lib/transforms/block-literal.js"(Y){N(),Y.__esModule=!0;var g=$a(),W=Ju();function Ae(Pe,Be){return g.createBlockLiteral(W.transformAstBlockValue(Pe,Be))}Y.transformBlockLiteral=Ae}}),mf=p({"node_modules/yaml-unist-parser/lib/transforms/comment.js"(Y){N(),Y.__esModule=!0;var g=Lo();function W(Ae,Pe){return g.createComment(Pe.transformRange(Ae.range),Ae.comment)}Y.transformComment=W}}),gf=p({"node_modules/yaml-unist-parser/lib/factories/directive.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=ps(),Ae=kr();function Pe(Be,Ke,mt){return g.__assign(g.__assign(g.__assign({},Ae.createNode("directive",Be)),W.createCommentAttachable()),{name:Ke,parameters:mt})}Y.createDirective=Pe}}),Va=p({"node_modules/yaml-unist-parser/lib/utils/extract-prop-comments.js"(Y){N(),Y.__esModule=!0;var g=Wu(),W=Lo();function Ae(Pe,Be){for(var Ke=0,mt=Pe.props;Ke<mt.length;Ke++){var jt=mt[Ke],st=Be.text[jt.origStart];switch(st){case g.PropLeadingCharacter.Comment:Be.comments.push(W.createComment(Be.transformRange(jt),Be.text.slice(jt.origStart+1,jt.origEnd)));break;default:throw new Error("Unexpected leading character "+JSON.stringify(st))}}}Y.extractPropComments=Ae}}),Hu=p({"node_modules/yaml-unist-parser/lib/transforms/directive.js"(Y){N(),Y.__esModule=!0;var g=gf(),W=Va();function Ae(Pe,Be){return W.extractPropComments(Pe,Be),g.createDirective(Be.transformRange(Pe.range),Pe.name,Pe.parameters)}Y.transformDirective=Ae}}),yf=p({"node_modules/yaml-unist-parser/lib/factories/document.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=kr(),Ae=Ra();function Pe(Be,Ke,mt,jt){return g.__assign(g.__assign(g.__assign({},W.createNode("document",Be)),Ae.createTrailingCommentAttachable(jt)),{children:[Ke,mt]})}Y.createDocument=Pe}}),ds=p({"node_modules/yaml-unist-parser/lib/factories/position.js"(Y){N(),Y.__esModule=!0;function g(Ae,Pe){return{start:Ae,end:Pe}}Y.createPosition=g;function W(Ae){return{start:Ae,end:Ae}}Y.createEmptyPosition=W}}),hs=p({"node_modules/yaml-unist-parser/lib/factories/end-comment-attachable.js"(Y){N(),Y.__esModule=!0;function g(W){return W===void 0&&(W=[]),{endComments:W}}Y.createEndCommentAttachable=g}}),Df=p({"node_modules/yaml-unist-parser/lib/factories/document-body.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=hs(),Ae=kr();function Pe(Be,Ke,mt){return g.__assign(g.__assign(g.__assign({},Ae.createNode("documentBody",Be)),W.createEndCommentAttachable(mt)),{children:Ke?[Ke]:[]})}Y.createDocumentBody=Pe}}),ms=p({"node_modules/yaml-unist-parser/lib/utils/get-last.js"(Y){N(),Y.__esModule=!0;function g(W){return W[W.length-1]}Y.getLast=g}}),zu=p({"node_modules/yaml-unist-parser/lib/utils/get-match-index.js"(Y){N(),Y.__esModule=!0;function g(W,Ae){var Pe=W.match(Ae);return Pe?Pe.index:-1}Y.getMatchIndex=g}}),Qu=p({"node_modules/yaml-unist-parser/lib/transforms/document-body.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=Df(),Ae=ms(),Pe=zu(),Be=ja();function Ke(st,yt,Ft){var It,_t=st.cstNode,Gt=mt(_t,yt,Ft),Wt=Gt.comments,Xt=Gt.endComments,bn=Gt.documentTrailingComment,ye=Gt.documentHeadTrailingComment,K=yt.transformNode(st.contents),I=jt(_t,K,yt),H=I.position,le=I.documentEndPoint;return(It=yt.comments).push.apply(It,g.__spreadArrays(Wt,Xt)),{documentBody:W.createDocumentBody(H,K,Xt),documentEndPoint:le,documentTrailingComment:bn,documentHeadTrailingComment:ye}}Y.transformDocumentBody=Ke;function mt(st,yt,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=yt.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:Ae.getLast(Gt)||null,documentHeadTrailingComment:Ae.getLast(Wt)||null}}function jt(st,yt,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:yt!==null?yt.position.start.offset:_t,origEnd:_t}),Wt=It===-1?Gt.end:Ft.transformOffset(st.valueRange.origEnd+3);return{position:Gt,documentEndPoint:Wt}}}}),bf=p({"node_modules/yaml-unist-parser/lib/factories/document-head.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=hs(),Ae=kr(),Pe=Ra();function Be(Ke,mt,jt,st){return g.__assign(g.__assign(g.__assign(g.__assign({},Ae.createNode("documentHead",Ke)),W.createEndCommentAttachable(jt)),Pe.createTrailingCommentAttachable(st)),{children:mt})}Y.createDocumentHead=Be}}),Xu=p({"node_modules/yaml-unist-parser/lib/transforms/document-head.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=bf(),Ae=zu();function Pe(mt,jt){var st,yt=mt.cstNode,Ft=Be(yt,jt),It=Ft.directives,_t=Ft.comments,Gt=Ft.endComments,Wt=Ke(yt,It,jt),Xt=Wt.position,bn=Wt.endMarkerPoint;(st=jt.comments).push.apply(st,g.__spreadArrays(_t,Gt));var ye=function(K){return K&&jt.comments.push(K),W.createDocumentHead(Xt,It,Gt,K)};return{createDocumentHeadWithTrailingComment:ye,documentHeadEndMarkerPoint:bn}}Y.transformDocumentHead=Pe;function Be(mt,jt){for(var st=[],yt=[],Ft=[],It=!1,_t=mt.directives.length-1;_t>=0;_t--){var Gt=jt.transformNode(mt.directives[_t]);Gt.type==="comment"?It?yt.unshift(Gt):Ft.unshift(Gt):(It=!0,st.unshift(Gt))}return{directives:st,comments:yt,endComments:Ft}}function Ke(mt,jt,st){var yt=Ae.getMatchIndex(st.text.slice(0,mt.valueRange.origStart),/---\s*$/);yt>0&&!/[\r\n]/.test(st.text[yt-1])&&(yt=-1);var Ft=yt===-1?{origStart:mt.valueRange.origStart,origEnd:mt.valueRange.origStart}:{origStart:yt,origEnd:yt+3};return jt.length!==0&&(Ft.origStart=jt[0].position.start.offset),{position:st.transformRange(Ft),endMarkerPoint:yt===-1?null:st.transformOffset(yt)}}}}),vf=p({"node_modules/yaml-unist-parser/lib/transforms/document.js"(Y){N(),Y.__esModule=!0;var g=yf(),W=ds(),Ae=Qu(),Pe=Xu();function Be(Ke,mt){var jt=Pe.transformDocumentHead(Ke,mt),st=jt.createDocumentHeadWithTrailingComment,yt=jt.documentHeadEndMarkerPoint,Ft=Ae.transformDocumentBody(Ke,mt,yt),It=Ft.documentBody,_t=Ft.documentEndPoint,Gt=Ft.documentTrailingComment,Wt=Ft.documentHeadTrailingComment,Xt=st(Wt);return Gt&&mt.comments.push(Gt),g.createDocument(W.createPosition(Xt.position.start,_t),Xt,It,Gt)}Y.transformDocument=Be}}),Ku=p({"node_modules/yaml-unist-parser/lib/factories/flow-collection.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=ps(),Ae=hs(),Pe=kr();function Be(Ke,mt,jt){return g.__assign(g.__assign(g.__assign(g.__assign(g.__assign({},Pe.createNode("flowCollection",Ke)),W.createCommentAttachable()),Ae.createEndCommentAttachable()),mt),{children:jt})}Y.createFlowCollection=Be}}),Ef=p({"node_modules/yaml-unist-parser/lib/factories/flow-mapping.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=Ku();function Ae(Pe,Be,Ke){return g.__assign(g.__assign({},W.createFlowCollection(Pe,Be,Ke)),{type:"flowMapping"})}Y.createFlowMapping=Ae}}),Zu=p({"node_modules/yaml-unist-parser/lib/factories/flow-mapping-item.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=fs(),Ae=kr();function Pe(Be,Ke,mt){return g.__assign(g.__assign(g.__assign({},Ae.createNode("flowMappingItem",Be)),W.createLeadingCommentAttachable()),{children:[Ke,mt]})}Y.createFlowMappingItem=Pe}}),qa=p({"node_modules/yaml-unist-parser/lib/utils/extract-comments.js"(Y){N(),Y.__esModule=!0;function g(W,Ae){for(var Pe=[],Be=0,Ke=W;Be<Ke.length;Be++){var mt=Ke[Be];mt&&"type"in mt&&mt.type==="COMMENT"?Ae.comments.push(Ae.transformNode(mt)):Pe.push(mt)}return Pe}Y.extractComments=g}}),el=p({"node_modules/yaml-unist-parser/lib/utils/get-flow-map-item-additional-ranges.js"(Y){N(),Y.__esModule=!0;function g(W){var Ae=["?",":"].map(function(Ke){var mt=W.find(function(jt){return"char"in jt&&jt.char===Ke});return mt?{origStart:mt.origOffset,origEnd:mt.origOffset+1}:null}),Pe=Ae[0],Be=Ae[1];return{additionalKeyRange:Pe,additionalValueRange:Be}}Y.getFlowMapItemAdditionalRanges=g}}),tl=p({"node_modules/yaml-unist-parser/lib/utils/create-slicer.js"(Y){N(),Y.__esModule=!0;function g(W,Ae){var Pe=Ae;return function(Be){return W.slice(Pe,Pe=Be)}}Y.createSlicer=g}}),nl=p({"node_modules/yaml-unist-parser/lib/utils/group-cst-flow-collection-items.js"(Y){N(),Y.__esModule=!0;var g=tl();function W(Ae){for(var Pe=[],Be=g.createSlicer(Ae,1),Ke=!1,mt=1;mt<Ae.length-1;mt++){var jt=Ae[mt];if("char"in jt&&jt.char===","){Pe.push(Be(mt)),Be(mt+1),Ke=!1;continue}Ke=!0}return Ke&&Pe.push(Be(Ae.length-1)),Pe}Y.groupCstFlowCollectionItems=W}}),Af=p({"node_modules/yaml-unist-parser/lib/factories/mapping-key.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=hs(),Ae=kr(),Pe=Ra();function Be(Ke,mt){return g.__assign(g.__assign(g.__assign(g.__assign({},Ae.createNode("mappingKey",Ke)),Pe.createTrailingCommentAttachable()),W.createEndCommentAttachable()),{children:mt?[mt]:[]})}Y.createMappingKey=Be}}),Cf=p({"node_modules/yaml-unist-parser/lib/factories/mapping-value.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=ps(),Ae=hs(),Pe=kr();function Be(Ke,mt){return g.__assign(g.__assign(g.__assign(g.__assign({},Pe.createNode("mappingValue",Ke)),W.createCommentAttachable()),Ae.createEndCommentAttachable()),{children:mt?[mt]:[]})}Y.createMappingValue=Be}}),Po=p({"node_modules/yaml-unist-parser/lib/transforms/pair.js"(Y){N(),Y.__esModule=!0;var g=Af(),W=Cf(),Ae=ds();function Pe(Be,Ke,mt,jt,st){var yt=Ke.transformNode(Be.key),Ft=Ke.transformNode(Be.value),It=yt||jt?g.createMappingKey(Ke.transformRange({origStart:jt?jt.origStart:yt.position.start.offset,origEnd:yt?yt.position.end.offset:jt.origStart+1}),yt):null,_t=Ft||st?W.createMappingValue(Ke.transformRange({origStart:st?st.origStart:Ft.position.start.offset,origEnd:Ft?Ft.position.end.offset:st.origStart+1}),Ft):null;return mt(Ae.createPosition(It?It.position.start:_t.position.start,_t?_t.position.end:It.position.end),It||g.createMappingKey(Ae.createEmptyPosition(_t.position.start),null),_t||W.createMappingValue(Ae.createEmptyPosition(It.position.end),null))}Y.transformAstPair=Pe}}),Sf=p({"node_modules/yaml-unist-parser/lib/transforms/flow-map.js"(Y){N(),Y.__esModule=!0;var g=Ef(),W=Zu(),Ae=qa(),Pe=el(),Be=ms(),Ke=nl(),mt=Po();function jt(st,yt){var Ft=Ae.extractComments(st.cstNode.items,yt),It=Ke.groupCstFlowCollectionItems(Ft),_t=st.items.map(function(Xt,bn){var ye=It[bn],K=Pe.getFlowMapItemAdditionalRanges(ye),I=K.additionalKeyRange,H=K.additionalValueRange;return mt.transformAstPair(Xt,yt,W.createFlowMappingItem,I,H)}),Gt=Ft[0],Wt=Be.getLast(Ft);return g.createFlowMapping(yt.transformRange({origStart:Gt.origOffset,origEnd:Wt.origOffset+1}),yt.transformContent(st),_t)}Y.transformFlowMap=jt}}),Qt=p({"node_modules/yaml-unist-parser/lib/factories/flow-sequence.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=Ku();function Ae(Pe,Be,Ke){return g.__assign(g.__assign({},W.createFlowCollection(Pe,Be,Ke)),{type:"flowSequence"})}Y.createFlowSequence=Ae}}),at=p({"node_modules/yaml-unist-parser/lib/factories/flow-sequence-item.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=kr();function Ae(Pe,Be){return g.__assign(g.__assign({},W.createNode("flowSequenceItem",Pe)),{children:[Be]})}Y.createFlowSequenceItem=Ae}}),Xe=p({"node_modules/yaml-unist-parser/lib/transforms/flow-seq.js"(Y){N(),Y.__esModule=!0;var g=Zu(),W=Qt(),Ae=at(),Pe=ds(),Be=qa(),Ke=el(),mt=ms(),jt=nl(),st=Po();function yt(Ft,It){var _t=Be.extractComments(Ft.cstNode.items,It),Gt=jt.groupCstFlowCollectionItems(_t),Wt=Ft.items.map(function(ye,K){if(ye.type!=="PAIR"){var I=It.transformNode(ye);return Ae.createFlowSequenceItem(Pe.createPosition(I.position.start,I.position.end),I)}else{var H=Gt[K],le=Ke.getFlowMapItemAdditionalRanges(H),we=le.additionalKeyRange,Me=le.additionalValueRange;return st.transformAstPair(ye,It,g.createFlowMappingItem,we,Me)}}),Xt=_t[0],bn=mt.getLast(_t);return W.createFlowSequence(It.transformRange({origStart:Xt.origOffset,origEnd:bn.origOffset+1}),It.transformContent(Ft),Wt)}Y.transformFlowSeq=yt}}),ut=p({"node_modules/yaml-unist-parser/lib/factories/mapping.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=fs(),Ae=kr();function Pe(Be,Ke,mt){return g.__assign(g.__assign(g.__assign(g.__assign({},Ae.createNode("mapping",Be)),W.createLeadingCommentAttachable()),Ke),{children:mt})}Y.createMapping=Pe}}),it=p({"node_modules/yaml-unist-parser/lib/factories/mapping-item.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=fs(),Ae=kr();function Pe(Be,Ke,mt){return g.__assign(g.__assign(g.__assign({},Ae.createNode("mappingItem",Be)),W.createLeadingCommentAttachable()),{children:[Ke,mt]})}Y.createMappingItem=Pe}}),St=p({"node_modules/yaml-unist-parser/lib/transforms/map.js"(Y){N(),Y.__esModule=!0;var g=ut(),W=it(),Ae=ds(),Pe=tl(),Be=qa(),Ke=Va(),mt=ms(),jt=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 Ke.extractPropComments(bn,It)});var Gt=Be.extractComments(_t.items,It),Wt=yt(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 jt.transformAstPair(bn,It,W.createMappingItem,H,le)});return g.createMapping(Ae.createPosition(Xt[0].position.start,mt.getLast(Xt).position.end),It.transformContent(Ft),Xt)}Y.transformMap=st;function yt(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=p({"node_modules/yaml-unist-parser/lib/factories/plain.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=ps(),Ae=kr();function Pe(Be,Ke,mt){return g.__assign(g.__assign(g.__assign(g.__assign({},Ae.createNode("plain",Be)),W.createCommentAttachable()),Ke),{value:mt})}Y.createPlain=Pe}}),Yt=p({"node_modules/yaml-unist-parser/lib/utils/find-last-char-index.js"(Y){N(),Y.__esModule=!0;function g(W,Ae,Pe){for(var Be=Ae;Be>=0;Be--)if(Pe.test(W[Be]))return Be;return-1}Y.findLastCharIndex=g}}),Vt=p({"node_modules/yaml-unist-parser/lib/transforms/plain.js"(Y){N(),Y.__esModule=!0;var g=Pt(),W=Yt();function Ae(Pe,Be){var Ke=Pe.cstNode;return g.createPlain(Be.transformRange({origStart:Ke.valueRange.origStart,origEnd:W.findLastCharIndex(Be.text,Ke.valueRange.origEnd-1,/\S/)+1}),Be.transformContent(Pe),Ke.strValue)}Y.transformPlain=Ae}}),Ht=p({"node_modules/yaml-unist-parser/lib/factories/quote-double.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge));function W(Ae){return g.__assign(g.__assign({},Ae),{type:"quoteDouble"})}Y.createQuoteDouble=W}}),fn=p({"node_modules/yaml-unist-parser/lib/factories/quote-value.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=ps(),Ae=kr();function Pe(Be,Ke,mt){return g.__assign(g.__assign(g.__assign(g.__assign({},Ae.createNode("quoteValue",Be)),Ke),W.createCommentAttachable()),{value:mt})}Y.createQuoteValue=Pe}}),yn=p({"node_modules/yaml-unist-parser/lib/transforms/quote-value.js"(Y){N(),Y.__esModule=!0;var g=fn();function W(Ae,Pe){var Be=Ae.cstNode;return g.createQuoteValue(Pe.transformRange(Be.valueRange),Pe.transformContent(Ae),Be.strValue)}Y.transformAstQuoteValue=W}}),vn=p({"node_modules/yaml-unist-parser/lib/transforms/quote-double.js"(Y){N(),Y.__esModule=!0;var g=Ht(),W=yn();function Ae(Pe,Be){return g.createQuoteDouble(W.transformAstQuoteValue(Pe,Be))}Y.transformQuoteDouble=Ae}}),dn=p({"node_modules/yaml-unist-parser/lib/factories/quote-single.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge));function W(Ae){return g.__assign(g.__assign({},Ae),{type:"quoteSingle"})}Y.createQuoteSingle=W}}),Fe=p({"node_modules/yaml-unist-parser/lib/transforms/quote-single.js"(Y){N(),Y.__esModule=!0;var g=dn(),W=yn();function Ae(Pe,Be){return g.createQuoteSingle(W.transformAstQuoteValue(Pe,Be))}Y.transformQuoteSingle=Ae}}),xn=p({"node_modules/yaml-unist-parser/lib/factories/sequence.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=hs(),Ae=fs(),Pe=kr();function Be(Ke,mt,jt){return g.__assign(g.__assign(g.__assign(g.__assign(g.__assign({},Pe.createNode("sequence",Ke)),Ae.createLeadingCommentAttachable()),W.createEndCommentAttachable()),mt),{children:jt})}Y.createSequence=Be}}),On=p({"node_modules/yaml-unist-parser/lib/factories/sequence-item.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge)),W=ps(),Ae=hs(),Pe=kr();function Be(Ke,mt){return g.__assign(g.__assign(g.__assign(g.__assign({},Pe.createNode("sequenceItem",Ke)),W.createCommentAttachable()),Ae.createEndCommentAttachable()),{children:mt?[mt]:[]})}Y.createSequenceItem=Be}}),er=p({"node_modules/yaml-unist-parser/lib/transforms/seq.js"(Y){N(),Y.__esModule=!0;var g=ds(),W=xn(),Ae=On(),Pe=qa(),Be=Va(),Ke=ms();function mt(jt,st){var yt=Pe.extractComments(jt.cstNode.items,st),Ft=yt.map(function(It,_t){Be.extractPropComments(It,st);var Gt=st.transformNode(jt.items[_t]);return Ae.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,Ke.getLast(Ft).position.end),st.transformContent(jt),Ft)}Y.transformSeq=mt}}),Qn=p({"node_modules/yaml-unist-parser/lib/transform.js"(Y){N(),Y.__esModule=!0;var g=lf(),W=hf(),Ae=Yu(),Pe=mf(),Be=Hu(),Ke=vf(),mt=Sf(),jt=Xe(),st=St(),yt=Vt(),Ft=vn(),It=Fe(),_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 Ae.transformBlockLiteral(Wt,Xt);case"COMMENT":return Pe.transformComment(Wt,Xt);case"DIRECTIVE":return Be.transformDirective(Wt,Xt);case"DOCUMENT":return Ke.transformDocument(Wt,Xt);case"FLOW_MAP":return mt.transformFlowMap(Wt,Xt);case"FLOW_SEQ":return jt.transformFlowSeq(Wt,Xt);case"MAP":return st.transformMap(Wt,Xt);case"PLAIN":return yt.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}}),Sr=p({"node_modules/yaml-unist-parser/lib/factories/error.js"(Y){N(),Y.__esModule=!0;function g(W,Ae,Pe){var Be=new SyntaxError(W);return Be.name="YAMLSyntaxError",Be.source=Ae,Be.position=Pe,Be}Y.createError=g}}),Re=p({"node_modules/yaml-unist-parser/lib/transforms/error.js"(Y){N(),Y.__esModule=!0;var g=Sr();function W(Ae,Pe){var Be=Ae.source.range||Ae.source.valueRange;return g.createError(Ae.message,Pe.text,Pe.transformRange(Be))}Y.transformError=W}}),ei=p({"node_modules/yaml-unist-parser/lib/factories/point.js"(Y){N(),Y.__esModule=!0;function g(W,Ae,Pe){return{offset:W,line:Ae,column:Pe}}Y.createPoint=g}}),gs=p({"node_modules/yaml-unist-parser/lib/transforms/offset.js"(Y){N(),Y.__esModule=!0;var g=ei();function W(Ae,Pe){Ae<0?Ae=0:Ae>Pe.text.length&&(Ae=Pe.text.length);var Be=Pe.locator.locationForIndex(Ae);return g.createPoint(Ae,Be.line+1,Be.column+1)}Y.transformOffset=W}}),Ms=p({"node_modules/yaml-unist-parser/lib/transforms/range.js"(Y){N(),Y.__esModule=!0;var g=ds();function W(Ae,Pe){return g.createPosition(Pe.transformOffset(Ae.origStart),Pe.transformOffset(Ae.origEnd))}Y.transformRange=W}}),Di=p({"node_modules/yaml-unist-parser/lib/utils/add-orig-range.js"(Y){N(),Y.__esModule=!0;var g=!0;function W(Ke){if(!Ke.setOrigRanges()){var mt=function(jt){if(Pe(jt))return jt.origStart=jt.start,jt.origEnd=jt.end,g;if(Be(jt))return jt.origOffset=jt.offset,g};Ke.forEach(function(jt){return Ae(jt,mt)})}}Y.addOrigRange=W;function Ae(Ke,mt){if(!(!Ke||typeof Ke!="object")&&mt(Ke)!==g)for(var jt=0,st=Object.keys(Ke);jt<st.length;jt++){var yt=st[jt];if(!(yt==="context"||yt==="error")){var Ft=Ke[yt];Array.isArray(Ft)?Ft.forEach(function(It){return Ae(It,mt)}):Ae(Ft,mt)}}}function Pe(Ke){return typeof Ke.start=="number"}function Be(Ke){return typeof Ke.offset=="number"}}}),rs=p({"node_modules/yaml-unist-parser/lib/utils/remove-fake-nodes.js"(Y){N(),Y.__esModule=!0;function g(W){if("children"in W){if(W.children.length===1){var Ae=W.children[0];if(Ae.type==="plain"&&Ae.tag===null&&Ae.anchor===null&&Ae.value==="")return W.children.splice(0,1),W}W.children.forEach(g)}return W}Y.removeFakeNodes=g}}),$r=p({"node_modules/yaml-unist-parser/lib/utils/create-updater.js"(Y){N(),Y.__esModule=!0;function g(W,Ae,Pe,Be){var Ke=Ae(W);return function(mt){Be(Ke,mt)&&Pe(W,Ke=mt)}}Y.createUpdater=g}}),Ua=p({"node_modules/yaml-unist-parser/lib/utils/update-positions.js"(Y){N(),Y.__esModule=!0;var g=$r(),W=ms();function Ae(yt){if(!(yt===null||!("children"in yt))){var Ft=yt.children;if(Ft.forEach(Ae),yt.type==="document"){var It=yt.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(yt.position,Pe,Be,jt),Xt=g.createUpdater(yt.position,Ke,mt,st);"endComments"in yt&&yt.endComments.length!==0&&(Wt(yt.endComments[0].position.start),Xt(W.getLast(yt.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=Ae;function Pe(yt){return yt.start}function Be(yt,Ft){yt.start=Ft}function Ke(yt){return yt.end}function mt(yt,Ft){yt.end=Ft}function jt(yt,Ft){return Ft.offset<yt.offset}function st(yt,Ft){return Ft.offset>yt.offset}}}),Wr=p({"node_modules/yaml/dist/PlainValue-ec8e588e.js"(Y){N();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"},Ae="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 Ke(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 mt(K,I){if(typeof K!="number"||K<0)return null;let{lineStarts:H,src:le}=Ke(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 we=H.length;return{line:we,col:K-H[we-1]+1}}function jt(K,I){let{lineStarts:H,src:le}=Ke(I);if(!H||!(K>=1)||K>H.length)return null;let we=H[K-1],Me=H[K];for(;Me&&Me>we&&le[Me-1]===`
264
- `;)--Me;return le.slice(we,Me)}function st(K,I){let{start:H,end:le}=K,we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:80,Me=jt(H.line,I);if(!Me)return null;let{col:ve}=H;if(Me.length>we)if(ve<=we-10)Me=Me.substr(0,we-1)+"…";else{let En=Math.round(we/2);Me.length>ve+En&&(Me=Me.substr(0,ve+En-1)+"…"),ve-=Me.length-we,Me="…"+Me.substr(1-we)}let je=1,At="";le&&(le.line===H.line&&ve+(le.col-H.col)<=we+1?je=le.col-H.col:(je=Math.min(Me.length+1,we)-ve,At="…"));let Ot=ve>1?" ".repeat(ve-1):"",zt="^".repeat(je);return`${Me}
265
- ${Ot}${zt}${At}`}var yt=class{static copy(K){return new yt(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 we=I;for(;we<K.length&&!(K[we]>H);)++we;this.origStart=H+we;let Me=we;for(;we<K.length&&!(K[we]>=le);)++we;return this.origEnd=le+we,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 we=K[I-1];if(we&&we!==`
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==="<",we=le?[`
271
- `," "," ",">"]:[`
272
- `," "," ","[","]","{","}",","];for(;H&&we.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 we=Ft.endOfWhiteSpace(K,le),Me=K[we];if(!Me||Me===`
276
- `)return we}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,we=!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&&(we=!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&&(we=!0),{fold:Me,offset:I,error:we}}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,we=this.props[K];return we&&le[we.start]===I?le.slice(we.start+(H?1:0),we.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=mt(this.range.start,this.context.root);if(!K)return;let I=mt(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,we]=I.match(/^(.*!)([^!]*)$/);return{handle:le,suffix:we}}}}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 yt(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 yt(this.offset,this.offset+1);let I=K&&mt(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],we=I;for(;le&&le!==`
288
- `&&!(H&&(le==="["||le==="]"||le==="{"||le==="}"||le===","));){let Me=K[we+1];if(le===":"&&(!Me||Me===`
289
- `||Me===" "||Me===" "||H&&Me===",")||(le===" "||le===" ")&&Me==="#")break;we+=1,le=Me}return we}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 we="";for(let ve=K;ve<I;++ve){let je=H[ve];if(je===`
291
- `){let{fold:At,offset:Ot}=Ft.foldNewline(H,ve,-1);we+=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
- `&&(we+=ve>At?H.slice(At,ve+1):je)}else we+=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:we}}case"@":case"`":{let ve=`Plain value cannot start with reserved character ${Me}`;return{errors:[new Gt(this,ve)],str:we}}default:return we}}parseBlockValue(K){let{indent:I,inFlow:H,src:le}=this.context,we=K,Me=K;for(let ve=le[we];ve===`
293
- `&&!Ft.atDocumentBoundary(le,we+1);ve=le[we]){let je=Ft.endOfBlockIndent(le,I,we+1);if(je===null||le[je]==="#")break;le[je]===`
294
- `?we=je:(Me=ye.endOfLine(le,je,H),we=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,we=I,Me=le[we];return Me&&Me!=="#"&&Me!==`
295
- `&&(we=ye.endOfLine(le,I,H)),this.valueRange=new yt(I,we),we=Ft.endOfWhiteSpace(le,we),we=this.parseComment(we),(!this.hasComment||this.valueRange.isEmpty())&&(we=this.parseBlockValue(we)),we}};Y.Char=g,Y.Node=Ft,Y.PlainValue=ye,Y.Range=yt,Y.Type=W,Y.YAMLError=It,Y.YAMLReferenceError=_t,Y.YAMLSemanticError=Gt,Y.YAMLSyntaxError=Wt,Y.YAMLWarning=Xt,Y._defineProperty=bn,Y.defaultTagPrefix=Ae,Y.defaultTags=Pe}}),Wa=p({"node_modules/yaml/dist/parse-cst.js"(Y){N();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}},Ae=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:we}=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-we: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,we=ve+1;let on=g.Node.endOfWhiteSpace(H,we);H[on]===`
297
- `&&Ot.length===0&&(zt=new W,we=zt.parse({src:H},we)),ve=g.Node.endOfIndent(H,we)}je=H[ve]}if(g.Node.nextNodeIsIndented(je,ve-(we+Me),this.type!==g.Type.SEQ_ITEM)?this.node=I({atLineStart:le,inCollection:!1,indent:Me,lineStart:we,parent:this},ve):je&&we>K+1&&(ve=we-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 Ae;)K=K.node;if(!(K instanceof Ke))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),we=le[0].range.start;for(;K.range.end=we,K.valueRange&&K.valueRange.end>we&&(K.valueRange.end=we),K!==ye;)K=K.context.parent;return le}var Ke=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:Ke.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),we=this.items[0];we.context.parent=this,this.valueRange=g.Range.copy(we.valueRange);let Me=we.range.start-we.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&&!Ke.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(we.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 we=1;we<K.length;++we){let Me=K[we],{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)}},mt=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}},jt=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=jt.startCommentOrEndBlankLine(K,le),K[le]){case`
307
- `:if(I){let we=new W;le=we.parse({src:K},le),le<K.length&&this.directives.push(we)}else le+=1,I=!0;break;case"#":{let we=new Pe;le=we.parse({src:K},le),this.directives.push(we),I=!1}break;case"%":{let we=new mt;le=we.parse({parent:this,src:K},le),this.directives.push(we),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),we=H===ye;for(this.valueRange=new g.Range(le);!g.Node.atDocumentBoundary(I,le,g.Char.DOCUMENT_END);){switch(I[le]){case`
308
- `:if(we){let Me=new W;le=Me.parse({src:I},le),le<I.length&&this.contents.push(Me)}else le+=1,we=!0;H=le;break;case"#":{let Me=new Pe;le=Me.parse({src:I},le),this.contents.push(Me),we=!1}break;default:{let Me=g.Node.endOfIndent(I,le),ve=K({atLineStart:we,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,we=!1;let je=Be(ve);je&&Array.prototype.push.apply(this.contents,je)}}le=jt.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}},yt={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},Ft=class extends g.Node{constructor(ye,K){super(ye,K),this.blockIndent=null,this.chomping=yt.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===yt.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,we=H[K-1];for(;we===`
313
- `||we===" "||we===" ";){if(K-=1,K<=ye){if(this.chomping===yt.KEEP)break;return""}we===`
314
- `&&(le=K),we=H[K-1]}let Me=K+1;le&&(this.chomping===yt.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),xr=H.slice(on,sr);on=sr,je&&(Wn===" "||Wn===" ")&&on<Me?(zt===" "?zt=`
319
- `:!En&&!At&&zt===`
320
- `&&(zt=`
321
-
322
- `),Ot+=zt+xr,zt=sr<K&&H[sr]||"",En=!0):(Ot+=zt+xr,zt=je&&on<Me?" ":`
323
- `,En=!1),At&&xr!==""&&(At=!1)}}return this.chomping===yt.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=yt.STRIP;break;case"+":this.chomping=yt.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,we=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=we=g.Node.endOfLine(I,je)}return this.chomping!==yt.KEEP&&(le=I[we]?we+1:we),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:we}=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
- `:{we=ve+1;let je=g.Node.endOfWhiteSpace(H,we);if(H[je]===`
330
- `){let At=new W;we=At.parse({src:H},we),this.items.push(At)}if(ve=g.Node.endOfIndent(H,we),ve<=we+le&&(Me=H[ve],ve<we+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:we,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),we="",Me=I.start;return le.forEach(ve=>{let je=ye.slice(Me,ve.range.start);Me=ve.range.end,we+=je+String(ve),we[we.length-1]===`
332
- `&&ye[Me-1]!==`
333
- `&&ye[Me]===`
334
- `&&(Me+=1)}),we+=ye.slice(Me,I.end),g.Node.addStringTerminator(ye,I.end,we)}},_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 we="";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);we+=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":we+="\0";break;case"a":we+="\x07";break;case"b":we+="\b";break;case"e":we+="\x1B";break;case"f":we+="\f";break;case"n":we+=`
336
- `;break;case"r":we+="\r";break;case"t":we+=" ";break;case"v":we+="\v";break;case"N":we+="…";break;case"_":we+=" ";break;case"L":we+="\u2028";break;case"P":we+="\u2029";break;case" ":we+=" ";break;case'"':we+='"';break;case"/":we+="/";break;case"\\":we+="\\";break;case" ":we+=" ";break;case"x":we+=this.parseCharCode(Me+1,2,ye),Me+=2;break;case"u":we+=this.parseCharCode(Me+1,4,ye),Me+=4;break;case"U":we+=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)}`)),we+="\\"+le[Me]}else if(ve===" "||ve===" "){let je=Me,At=le[Me+1];for(;At===" "||At===" ";)Me+=1,At=le[Me+1];At!==`
338
- `&&(we+=Me>je?le.slice(je,Me+1):ve)}else we+=ve}return ye.length>0?{errors:ye,str:we}:we}parseCharCode(ye,K,I){let{src:H}=this.context,le=H.substr(ye,K),we=le.length===K&&/^[0-9a-fA-F]+$/.test(le)?parseInt(le,16):NaN;return isNaN(we)?(I.push(new g.YAMLSyntaxError(this,`Invalid escape sequence ${H.substr(ye-2,K+2)}`)),H.substr(ye-2,K+2)):String.fromCodePoint(we)}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 we="";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);we+=je,Me=At,Ot&&ye.push(new g.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if(ve==="'")we+=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
- `&&(we+=Me>je?le.slice(je,Me+1):ve)}else we+=ve}return ye.length>0?{errors:ye,str:we}:we}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 Ae(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:we,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 Ke(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=we??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 Ae)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=[],we=!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,we=!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)),we=!0,ye=g.Node.endOfWhiteSpace(H,je)}Me=H[ye]}we&&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,we)=>(le.length>1&&K.push(we),`
346
- `)));let I=[],H=0;do{let le=new jt,we=new Xt({src:ye});H=le.parse(we,H),I.push(le)}while(H<ye.length);return I.setOrigRanges=()=>{if(K.length===0)return!1;for(let we=1;we<K.length;++we)K[we]-=we;let le=0;for(let we=0;we<I.length;++we)le=I[we].setOrigRanges(K,le);return K.splice(0,K.length),!0},I.toString=()=>I.join(`...
347
- `),I}Y.parse=bn}}),is=p({"node_modules/yaml/dist/resolveSeq-d03cb037.js"(Y){N();var g=Wr();function W(pe,de,We){return We?`#${We.replace(/[\s\S]^/gm,`$&${de}#`)}
348
- ${de}${pe}`:pe}function Ae(pe,de,We){return We?We.indexOf(`
349
- `)===-1?`${pe} #${We}`:`${pe}
350
- `+We.replace(/^/gm,`${de||""}#`):pe}var Pe=class{};function Be(pe,de,We){if(Array.isArray(pe))return pe.map((He,Ze)=>Be(He,String(Ze),We));if(pe&&typeof pe.toJSON=="function"){let He=We&&We.anchors&&We.anchors.get(pe);He&&(We.onCreate=tt=>{He.res=tt,delete We.onCreate});let Ze=pe.toJSON(de,We);return He&&We.onCreate&&We.onCreate(Ze),Ze}return(!We||!We.keep)&&typeof pe=="bigint"?Number(pe):pe}var Ke=class extends Pe{constructor(pe){super(),this.value=pe}toJSON(pe,de){return de&&de.keep?this.value:Be(this.value,pe,de)}toString(){return String(this.value)}};function mt(pe,de,We){let He=We;for(let Ze=de.length-1;Ze>=0;--Ze){let tt=de[Ze];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 pe.createNode(He,!1)}var jt=pe=>pe==null||typeof pe=="object"&&pe[Symbol.iterator]().next().done,st=class extends Pe{constructor(pe){super(),g._defineProperty(this,"items",[]),this.schema=pe}addIn(pe,de){if(jt(pe))this.add(de);else{let[We,...He]=pe,Ze=this.get(We,!0);if(Ze instanceof st)Ze.addIn(He,de);else if(Ze===void 0&&this.schema)this.set(We,mt(this.schema,He,de));else throw new Error(`Expected YAML collection at ${We}. Remaining path: ${He}`)}}deleteIn(pe){let[de,...We]=pe;if(We.length===0)return this.delete(de);let He=this.get(de,!0);if(He instanceof st)return He.deleteIn(We);throw new Error(`Expected YAML collection at ${de}. Remaining path: ${We}`)}getIn(pe,de){let[We,...He]=pe,Ze=this.get(We,!0);return He.length===0?!de&&Ze instanceof Ke?Ze.value:Ze:Ze instanceof st?Ze.getIn(He,de):void 0}hasAllNullValues(){return this.items.every(pe=>{if(!pe||pe.type!=="PAIR")return!1;let de=pe.value;return de==null||de instanceof Ke&&de.value==null&&!de.commentBefore&&!de.comment&&!de.tag})}hasIn(pe){let[de,...We]=pe;if(We.length===0)return this.has(de);let He=this.get(de,!0);return He instanceof st?He.hasIn(We):!1}setIn(pe,de){let[We,...He]=pe;if(He.length===0)this.set(We,de);else{let Ze=this.get(We,!0);if(Ze instanceof st)Ze.setIn(He,de);else if(Ze===void 0&&this.schema)this.set(We,mt(this.schema,He,de));else throw new Error(`Expected YAML collection at ${We}. Remaining path: ${He}`)}}toJSON(){return null}toString(pe,de,We,He){let{blockItem:Ze,flowChars:tt,isMap:Ct,itemIndent:wt}=de,{indent:Kt,indentStep:rn,stringify:hn}=pe,Mn=this.type===g.Type.FLOW_MAP||this.type===g.Type.FLOW_SEQ||pe.inFlow;Mn&&(wt+=rn);let lr=Ct&&this.hasAllNullValues();pe=Object.assign({},pe,{allNullValues:lr,indent:wt,inFlow:Mn,type:null});let cr=!1,Vn=!1,rr=this.items.reduce((Vr,ur,Gr)=>{let yr;ur&&(!cr&&ur.spaceBefore&&Vr.push({type:"comment",str:""}),ur.commentBefore&&ur.commentBefore.match(/^.*$/gm).forEach(Ja=>{Vr.push({type:"comment",str:`#${Ja}`})}),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 Nr=hn(ur,pe,()=>yr=null,()=>cr=!0);return Mn&&!Vn&&Nr.includes(`
351
- `)&&(Vn=!0),Mn&&Gr<this.items.length-1&&(Nr+=","),Nr=Ae(Nr,wt,yr),cr&&(yr||Mn)&&(cr=!1),Vr.push({type:"item",str:Nr}),Vr},[]),tr;if(rr.length===0)tr=tt.start+tt.end;else if(Mn){let{start:Vr,end:ur}=tt,Gr=rr.map(yr=>yr.str);if(Vn||Gr.reduce((yr,Nr)=>yr+Nr.length+2,2)>st.maxFlowStringSingleLineLength){tr=Vr;for(let yr of Gr)tr+=yr?`
352
- ${rn}${Kt}${yr}`:`
353
- `;tr+=`
354
- ${Kt}${ur}`}else tr=`${Vr} ${Gr.join(" ")} ${ur}`}else{let Vr=rr.map(Ze);tr=Vr.shift();for(let ur of Vr)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 yt(pe){let de=pe instanceof Ke?pe.value:pe;return de&&typeof de=="string"&&(de=Number(de)),Number.isInteger(de)&&de>=0?de:null}var Ft=class extends st{add(pe){this.items.push(pe)}delete(pe){let de=yt(pe);return typeof de!="number"?!1:this.items.splice(de,1).length>0}get(pe,de){let We=yt(pe);if(typeof We!="number")return;let He=this.items[We];return!de&&He instanceof Ke?He.value:He}has(pe){let de=yt(pe);return typeof de=="number"&&de<this.items.length}set(pe,de){let We=yt(pe);if(typeof We!="number")throw new Error(`Expected a valid index, not ${pe}.`);this.items[We]=de}toJSON(pe,de){let We=[];de&&de.onCreate&&de.onCreate(We);let He=0;for(let Ze of this.items)We.push(Be(Ze,String(He++),de));return We}toString(pe,de,We){return pe?super.toString(pe,{blockItem:He=>He.type==="comment"?He.str:`- ${He.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(pe.indent||"")+" "},de,We):JSON.stringify(this)}},It=(pe,de,We)=>de===null?"":typeof de!="object"?String(de):pe instanceof Pe&&We&&We.doc?pe.toString({anchors:Object.create(null),doc:We.doc,indent:"",indentStep:We.indentStep,inFlow:!0,inStringifyKey:!0,stringify:We.stringify}):JSON.stringify(de),_t=class extends Pe{constructor(pe){let de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;super(),this.key=pe,this.value=de,this.type=_t.Type.PAIR}get commentBefore(){return this.key instanceof Pe?this.key.commentBefore:void 0}set commentBefore(pe){if(this.key==null&&(this.key=new Ke(null)),this.key instanceof Pe)this.key.commentBefore=pe;else{let de="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(de)}}addToJSMap(pe,de){let We=Be(this.key,"",pe);if(de instanceof Map){let He=Be(this.value,We,pe);de.set(We,He)}else if(de instanceof Set)de.add(We);else{let He=It(this.key,We,pe),Ze=Be(this.value,He,pe);He in de?Object.defineProperty(de,He,{value:Ze,writable:!0,enumerable:!0,configurable:!0}):de[He]=Ze}return de}toJSON(pe,de){let We=de&&de.mapAsMap?new Map:{};return this.addToJSMap(de,We)}toString(pe,de,We){if(!pe||!pe.doc)return JSON.stringify(this);let{indent:He,indentSeq:Ze,simpleKeys:tt}=pe.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}=pe;pe=Object.assign({},pe,{implicitKey:!rn,indent:Mn+lr});let Vn=!1,rr=cr(Ct,pe,()=>Kt=null,()=>Vn=!0);if(rr=Ae(rr,pe.indent,Kt),!rn&&rr.length>1024){if(tt)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");rn=!0}if(pe.allNullValues&&!tt)return this.comment?(rr=Ae(rr,pe.indent,this.comment),de&&de()):Vn&&!Kt&&We&&We(),pe.inFlow&&!rn?rr:`? ${rr}`;rr=rn?`? ${rr}
358
- ${Mn}:`:`${rr}:`,this.comment&&(rr=Ae(rr,pe.indent,this.comment),de&&de());let tr="",Vr=null;if(wt instanceof Pe){if(wt.spaceBefore&&(tr=`
359
- `),wt.commentBefore){let yr=wt.commentBefore.replace(/^/gm,`${pe.indent}#`);tr+=`
360
- ${yr}`}Vr=wt.comment}else wt&&typeof wt=="object"&&(wt=hn.schema.createNode(wt,!0));pe.implicitKey=!1,!rn&&!this.comment&&wt instanceof Ke&&(pe.indentAtStart=rr.length+1),Vn=!1,!Ze&&He>=2&&!pe.inFlow&&!rn&&wt instanceof Ft&&wt.type!==g.Type.FLOW_SEQ&&!wt.tag&&!hn.anchors.getName(wt)&&(pe.indent=pe.indent.substr(2));let ur=cr(wt,pe,()=>Vr=null,()=>Vn=!0),Gr=" ";return tr||this.comment?Gr=`${tr}
361
- ${pe.indent}`:!rn&&wt instanceof st?(!(ur[0]==="["||ur[0]==="{")||ur.includes(`
362
- `))&&(Gr=`
363
- ${pe.indent}`):ur[0]===`
364
- `&&(Gr=""),Vn&&!Vr&&We&&We(),Ae(rr+Gr+ur,pe.indent,Vr)}};g._defineProperty(_t,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var Gt=(pe,de)=>{if(pe instanceof Wt){let We=de.get(pe.source);return We.count*We.aliasCount}else if(pe instanceof st){let We=0;for(let He of pe.items){let Ze=Gt(He,de);Ze>We&&(We=Ze)}return We}else if(pe instanceof _t){let We=Gt(pe.key,de),He=Gt(pe.value,de);return Math.max(We,He)}return 1},Wt=class extends Pe{static stringify(pe,de){let{range:We,source:He}=pe,{anchors:Ze,doc:tt,implicitKey:Ct,inStringifyKey:wt}=de,Kt=Object.keys(Ze).find(hn=>Ze[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(pe){super(),this.source=pe,this.type=g.Type.ALIAS}set tag(pe){throw new Error("Alias nodes cannot have tags")}toJSON(pe,de){if(!de)return Be(this.source,pe,de);let{anchors:We,maxAliasCount:He}=de,Ze=We.get(this.source);if(!Ze||Ze.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&&(Ze.count+=1,Ze.aliasCount===0&&(Ze.aliasCount=Gt(this.source,We)),Ze.count*Ze.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 Ze.res}toString(pe){return Wt.stringify(this,pe)}};g._defineProperty(Wt,"default",!0);function Xt(pe,de){let We=de instanceof Ke?de.value:de;for(let He of pe)if(He instanceof _t&&(He.key===de||He.key===We||He.key&&He.key.value===We))return He}var bn=class extends st{add(pe,de){pe?pe instanceof _t||(pe=new _t(pe.key||pe,pe.value)):pe=new _t(pe);let We=Xt(this.items,pe.key),He=this.schema&&this.schema.sortMapEntries;if(We)if(de)We.value=pe.value;else throw new Error(`Key ${pe.key} already set`);else if(He){let Ze=this.items.findIndex(tt=>He(pe,tt)<0);Ze===-1?this.items.push(pe):this.items.splice(Ze,0,pe)}else this.items.push(pe)}delete(pe){let de=Xt(this.items,pe);return de?this.items.splice(this.items.indexOf(de),1).length>0:!1}get(pe,de){let We=Xt(this.items,pe),He=We&&We.value;return!de&&He instanceof Ke?He.value:He}has(pe){return!!Xt(this.items,pe)}set(pe,de){this.add(new _t(pe,de),!0)}toJSON(pe,de,We){let He=We?new We:de&&de.mapAsMap?new Map:{};de&&de.onCreate&&de.onCreate(He);for(let Ze of this.items)Ze.addToJSMap(de,He);return He}toString(pe,de,We){if(!pe)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(pe,{blockItem:He=>He.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:pe.indent||""},de,We)}},ye="<<",K=class extends _t{constructor(pe){if(pe instanceof _t){let de=pe.value;de instanceof Ft||(de=new Ft,de.items.push(pe.value),de.range=pe.value.range),super(pe.key,de),this.range=pe.range}else super(new Ke(ye),new Ft);this.type=_t.Type.MERGE_PAIR}addToJSMap(pe,de){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,pe,Map);for(let[Ze,tt]of He)de instanceof Map?de.has(Ze)||de.set(Ze,tt):de instanceof Set?de.add(Ze):Object.prototype.hasOwnProperty.call(de,Ze)||Object.defineProperty(de,Ze,{value:tt,writable:!0,enumerable:!0,configurable:!0})}return de}toString(pe,de){let We=this.value;if(We.items.length>1)return super.toString(pe,de);this.value=We.items[0];let He=super.toString(pe,de);return this.value=We,He}},I={defaultType:g.Type.BLOCK_LITERAL,lineWidth:76},H={trueStr:"true",falseStr:"false"},le={asBigInt:!1},we={nullStr:"null"},Me={defaultType:g.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function ve(pe,de,We){for(let{format:He,test:Ze,resolve:tt}of de)if(Ze){let Ct=pe.match(Ze);if(Ct){let wt=tt.apply(null,Ct);return wt instanceof Ke||(wt=new Ke(wt)),He&&(wt.format=He),wt}}return We&&(pe=We(pe)),new Ke(pe)}var je="flow",At="block",Ot="quoted",zt=(pe,de)=>{let We=pe[de+1];for(;We===" "||We===" ";){do We=pe[de+=1];while(We&&We!==`
365
- `);We=pe[de+1]}return de};function En(pe,de,We,He){let{indentAtStart:Ze,lineWidth:tt=80,minContentWidth:Ct=20,onFold:wt,onOverflow:Kt}=He;if(!tt||tt<0)return pe;let rn=Math.max(1+Ct,1+tt-de.length);if(pe.length<=rn)return pe;let hn=[],Mn={},lr=tt-de.length;typeof Ze=="number"&&(Ze>tt-Math.max(2,Ct)?hn.push(0):lr=tt-Ze);let cr,Vn,rr=!1,tr=-1,Vr=-1,ur=-1;We===At&&(tr=zt(pe,tr),tr!==-1&&(lr=tr+rn));for(let yr;yr=pe[tr+=1];){if(We===Ot&&yr==="\\"){switch(Vr=tr,pe[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(pe,tr)),lr=tr+rn,cr=void 0;else{if(yr===" "&&Vn&&Vn!==" "&&Vn!==`
367
- `&&Vn!==" "){let Nr=pe[tr+1];Nr&&Nr!==" "&&Nr!==`
368
- `&&Nr!==" "&&(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=pe[tr+=1],rr=!0;let Nr=tr>ur+1?tr-2:Vr-1;if(Mn[Nr])return pe;hn.push(Nr),Mn[Nr]=!0,lr=Nr+rn,cr=void 0}else rr=!0}Vn=yr}if(rr&&Kt&&Kt(),hn.length===0)return pe;wt&&wt();let Gr=pe.slice(0,hn[0]);for(let yr=0;yr<hn.length;++yr){let Nr=hn[yr],Ja=hn[yr+1]||pe.length;Nr===0?Gr=`
369
- ${de}${pe.slice(0,Ja)}`:(We===Ot&&Mn[Nr]&&(Gr+=`${pe[Nr]}\\`),Gr+=`
370
- ${de}${pe.slice(Nr+1,Ja)}`)}return Gr}var on=pe=>{let{indentAtStart:de}=pe;return de?Object.assign({indentAtStart:de},Me.fold):Me.fold},Wn=pe=>/^(%|---|\.\.\.)/m.test(pe);function sr(pe,de,We){if(!de||de<0)return!1;let He=de-We,Ze=pe.length;if(Ze<=He)return!1;for(let tt=0,Ct=0;tt<Ze;++tt)if(pe[tt]===`
371
- `){if(tt-Ct>He)return!0;if(Ct=tt+1,Ze-Ct<=He)return!1}return!0}function xr(pe,de){let{implicitKey:We}=de,{jsonEncoding:He,minMultiLineLength:Ze}=Me.doubleQuoted,tt=JSON.stringify(pe);if(He)return tt;let Ct=de.indent||(Wn(pe)?" ":""),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<Ze)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(de))}function bi(pe,de){if(de.implicitKey){if(/\n/.test(pe))return xr(pe,de)}else if(/[ \t]\n|\n[ \t]/.test(pe))return xr(pe,de);let We=de.indent||(Wn(pe)?" ":""),He="'"+pe.replace(/'/g,"''").replace(/\n+/g,`$&
375
- ${We}`)+"'";return de.implicitKey?He:En(He,We,je,on(de))}function fi(pe,de,We,He){let{comment:Ze,type:tt,value:Ct}=pe;if(/\n[\t ]+$/.test(Ct)||/^\s*$/.test(Ct))return xr(Ct,de);let wt=de.indent||(de.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 rr=Vn.indexOf(`
377
- `);return rr===-1?hn+="-":(Ct===Vn||rr!==Vn.length-1)&&(hn+="+",He&&He()),lr=Vn.replace(/\n$/,""),""}).replace(/^[\n ]*/,Vn=>{Vn.indexOf(" ")!==-1&&(hn+=Kt);let rr=Vn.match(/ +$/);return rr?(Mn=Vn.slice(0,-rr[0].length),rr[0]):(Mn=Vn,"")}),lr&&(lr=lr.replace(/\n+(?!\n|$)/g,`$&${wt}`)),Mn&&(Mn=Mn.replace(/\n+/g,`$&${wt}`)),Ze&&(hn+=" #"+Ze.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 Dt(pe,de,We,He){let{comment:Ze,type:tt,value:Ct}=pe,{actualString:wt,implicitKey:Kt,indent:rn,inFlow:hn}=de;if(Kt&&/[\n[\]{},]/.test(Ct)||hn&&/[[\]{},]/.test(Ct))return xr(Ct,de);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?bi(Ct,de):xr(Ct,de):fi(pe,de,We,He);if(!Kt&&!hn&&tt!==g.Type.PLAIN&&Ct.indexOf(`
383
- `)!==-1)return fi(pe,de,We,He);if(rn===""&&Wn(Ct))return de.forceBlockIndent=!0,fi(pe,de,We,He);let Mn=Ct.replace(/\n+/g,`$&
384
- ${rn}`);if(wt){let{tags:cr}=de.doc.schema;if(typeof ve(Mn,cr,cr.scalarFallback).value!="string")return xr(Ct,de)}let lr=Kt?Mn:En(Mn,rn,je,on(de));return Ze&&!hn&&(lr.indexOf(`
385
- `)!==-1||Ze.indexOf(`
386
- `)!==-1)?(We&&We(),W(lr,rn,Ze)):lr}function tn(pe,de,We,He){let{defaultType:Ze}=Me,{implicitKey:tt,inFlow:Ct}=de,{type:wt,value:Kt}=pe;typeof Kt!="string"&&(Kt=String(Kt),pe=Object.assign({},pe,{value:Kt}));let rn=Mn=>{switch(Mn){case g.Type.BLOCK_FOLDED:case g.Type.BLOCK_LITERAL:return fi(pe,de,We,He);case g.Type.QUOTE_DOUBLE:return xr(Kt,de);case g.Type.QUOTE_SINGLE:return bi(Kt,de);case g.Type.PLAIN:return Dt(pe,de,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(Ze),hn===null))throw new Error(`Unsupported default string type ${Ze}`);return hn}function mn(pe){let{format:de,minFractionDigits:We,tag:He,value:Ze}=pe;if(typeof Ze=="bigint")return String(Ze);if(!isFinite(Ze))return isNaN(Ze)?".nan":Ze<0?"-.inf":".inf";let tt=JSON.stringify(Ze);if(!de&&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(pe,de){let We,He;switch(de.type){case g.Type.FLOW_MAP:We="}",He="flow map";break;case g.Type.FLOW_SEQ:We="]",He="flow sequence";break;default:pe.push(new g.YAMLSemanticError(de,"Not a flow collection!?"));return}let Ze;for(let tt=de.items.length-1;tt>=0;--tt){let Ct=de.items[tt];if(!Ct||Ct.type!==g.Type.COMMENT){Ze=Ct;break}}if(Ze&&Ze.char!==We){let tt=`Expected ${He} to end with ${We}`,Ct;typeof Ze.offset=="number"?(Ct=new g.YAMLSemanticError(de,tt),Ct.offset=Ze.offset+1):(Ct=new g.YAMLSemanticError(Ze,tt),Ze.range&&Ze.range.end&&(Ct.offset=Ze.range.end-Ze.range.start)),pe.push(Ct)}}function Yn(pe,de){let We=de.context.src[de.range.start-1];if(We!==`
387
- `&&We!==" "&&We!==" "){let He="Comments must be separated from other tokens by white space characters";pe.push(new g.YAMLSemanticError(de,He))}}function or(pe,de){let We=String(de),He=We.substr(0,8)+"..."+We.substr(-8);return new g.YAMLSemanticError(pe,`The "${He}" key is too long`)}function Oi(pe,de){for(let{afterKey:We,before:He,comment:Ze}of de){let tt=pe.items[He];tt?(We&&tt.value&&(tt=tt.value),Ze===void 0?(We||!tt.commentBefore)&&(tt.spaceBefore=!0):tt.commentBefore?tt.commentBefore+=`
388
- `+Ze:tt.commentBefore=Ze):Ze!==void 0&&(pe.comment?pe.comment+=`
389
- `+Ze:pe.comment=Ze)}}function Hi(pe,de){let We=de.strValue;return We?typeof We=="string"?We:(We.errors.forEach(He=>{He.source||(He.source=de),pe.errors.push(He)}),We.str):""}function zi(pe,de){let{handle:We,suffix:He}=de.tag,Ze=pe.tagPrefixes.find(tt=>tt.handle===We);if(!Ze){let tt=pe.getDefaults().tagPrefixes;if(tt&&(Ze=tt.find(Ct=>Ct.handle===We)),!Ze)throw new g.YAMLSemanticError(de,`The ${We} tag handle is non-default and was not declared.`)}if(!He)throw new g.YAMLSemanticError(de,`The ${We} tag has no suffix.`);if(We==="!"&&(pe.version||pe.options.version)==="1.0"){if(He[0]==="^")return pe.warnings.push(new g.YAMLWarning(de,"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 Ze.prefix+decodeURIComponent(He)}function ji(pe,de){let{tag:We,type:He}=de,Ze=!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.`;pe.errors.push(new g.YAMLSemanticError(de,Kt))}else if(tt==="!"&&!Ct)Ze=!0;else try{return zi(pe,de)}catch(Kt){pe.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 Ze?g.defaultTags.STR:null;default:return null}}function ta(pe,de,We){let{tags:He}=pe.schema,Ze=[];for(let Ct of He)if(Ct.tag===We)if(Ct.test)Ze.push(Ct);else{let wt=Ct.resolve(pe,de);return wt instanceof st?wt:new Ke(wt)}let tt=Hi(pe,de);return typeof tt=="string"&&Ze.length>0?ve(tt,Ze,He.scalarFallback):null}function Ga(pe){let{type:de}=pe;switch(de){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(pe,de,We){try{let He=ta(pe,de,We);if(He)return We&&de.tag&&(He.tag=We),He}catch(He){return He.source||(He.source=de),pe.errors.push(He),null}try{let He=Ga(de);if(!He)throw new Error(`The tag ${We} is unavailable`);let Ze=`The tag ${We} is unavailable, falling back to ${He}`;pe.warnings.push(new g.YAMLWarning(de,Ze));let tt=ta(pe,de,He);return tt.tag=We,tt}catch(He){let Ze=new g.YAMLReferenceError(de,He.message);return Ze.stack=He.stack,pe.errors.push(Ze),null}}var ll=pe=>{if(!pe)return!1;let{type:de}=pe;return de===g.Type.MAP_KEY||de===g.Type.MAP_VALUE||de===g.Type.SEQ_ITEM};function Tf(pe,de){let We={before:[],after:[]},He=!1,Ze=!1,tt=ll(de.context.parent)?de.context.parent.props.concat(de.props):de.props;for(let{start:Ct,end:wt}of tt)switch(de.context.src[Ct]){case g.Char.COMMENT:{if(!de.commentHasRequiredWhitespace(Ct)){let hn="Comments must be separated from other tokens by white space characters";pe.push(new g.YAMLSemanticError(de,hn))}let{header:Kt,valueRange:rn}=de;(rn&&(Ct>rn.start||Kt&&Ct>Kt.start)?We.after:We.before).push(de.context.src.slice(Ct+1,wt));break}case g.Char.ANCHOR:if(He){let Kt="A node can have at most one anchor";pe.push(new g.YAMLSemanticError(de,Kt))}He=!0;break;case g.Char.TAG:if(Ze){let Kt="A node can have at most one tag";pe.push(new g.YAMLSemanticError(de,Kt))}Ze=!0;break}return{comments:We,hasAnchor:He,hasTag:Ze}}function kf(pe,de){let{anchors:We,errors:He,schema:Ze}=pe;if(de.type===g.Type.ALIAS){let Ct=de.rawValue,wt=We.getNode(Ct);if(!wt){let rn=`Aliased anchor not found: ${Ct}`;return He.push(new g.YAMLReferenceError(de,rn)),null}let Kt=new Wt(wt);return We._cstAliases.push(Kt),Kt}let tt=ji(pe,de);if(tt)return Bo(pe,de,tt);if(de.type!==g.Type.PLAIN){let Ct=`Failed to resolve ${de.type} node here`;return He.push(new g.YAMLSyntaxError(de,Ct)),null}try{let Ct=Hi(pe,de);return ve(Ct,Ze.tags,Ze.tags.scalarFallback)}catch(Ct){return Ct.source||(Ct.source=de),He.push(Ct),null}}function vi(pe,de){if(!de)return null;de.error&&pe.errors.push(de.error);let{comments:We,hasAnchor:He,hasTag:Ze}=Tf(pe.errors,de);if(He){let{anchors:Ct}=pe,wt=de.anchor,Kt=Ct.getNode(wt);Kt&&(Ct.map[Ct.newName(wt)]=Kt),Ct.map[wt]=de}if(de.type===g.Type.ALIAS&&(He||Ze)){let Ct="An alias node must not specify any properties";pe.errors.push(new g.YAMLSemanticError(de,Ct))}let tt=kf(pe,de);if(tt){tt.range=[de.range.start,de.range.end],pe.options.keepCstNodes&&(tt.cstNode=de),pe.options.keepNodeTypes&&(tt.type=de.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 de.resolved=tt}function Lf(pe,de){if(de.type!==g.Type.MAP&&de.type!==g.Type.FLOW_MAP){let Ct=`A ${de.type} node cannot be resolved as a mapping`;return pe.errors.push(new g.YAMLSyntaxError(de,Ct)),null}let{comments:We,items:He}=de.type===g.Type.FLOW_MAP?If(pe,de):Mf(pe,de),Ze=new bn;Ze.items=He,Oi(Ze,We);let tt=!1;for(let Ct=0;Ct<He.length;++Ct){let{key:wt}=He[Ct];if(wt instanceof st&&(tt=!0),pe.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&&pe.errors.push(new g.YAMLSemanticError(de,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`;pe.errors.push(new g.YAMLSemanticError(de,hn));break}}}if(tt&&!pe.options.mapAsMap){let Ct="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";pe.warnings.push(new g.YAMLWarning(de,Ct))}return de.resolved=Ze,Ze}var Pf=pe=>{let{context:{lineStart:de,node:We,src:He},props:Ze}=pe;if(Ze.length===0)return!1;let{start:tt}=Ze[0];if(We&&tt>We.valueRange.start||He[tt]!==g.Char.COMMENT)return!1;for(let Ct=de;Ct<tt;++Ct)if(He[Ct]===`
394
- `)return!1;return!0};function Bf(pe,de){if(!Pf(pe))return;let We=pe.getPropValue(0,g.Char.COMMENT,!0),He=!1,Ze=de.value.commentBefore;if(Ze&&Ze.startsWith(We))de.value.commentBefore=Ze.substr(We.length+1),He=!0;else{let tt=de.value.comment;!pe.node&&tt&&tt.startsWith(We)&&(de.value.comment=tt.substr(We.length+1),He=!0)}He&&(de.comment=We)}function Mf(pe,de){let We=[],He=[],Ze,tt=null;for(let Ct=0;Ct<de.items.length;++Ct){let wt=de.items[Ct];switch(wt.type){case g.Type.BLANK_LINE:We.push({afterKey:!!Ze,before:He.length});break;case g.Type.COMMENT:We.push({afterKey:!!Ze,before:He.length,comment:wt.comment});break;case g.Type.MAP_KEY:Ze!==void 0&&He.push(new _t(Ze)),wt.error&&pe.errors.push(wt.error),Ze=vi(pe,wt.node),tt=null;break;case g.Type.MAP_VALUE:{if(Ze===void 0&&(Ze=null),wt.error&&pe.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";pe.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(Ze,vi(pe,Kt));Bf(wt,rn),He.push(rn),Ze&&typeof tt=="number"&&wt.range.start>tt+1024&&pe.errors.push(or(de,Ze)),Ze=void 0,tt=null}break;default:Ze!==void 0&&He.push(new _t(Ze)),Ze=vi(pe,wt),tt=wt.range.start,wt.error&&pe.errors.push(wt.error);e:for(let Kt=Ct+1;;++Kt){let rn=de.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";pe.errors.push(new g.YAMLSemanticError(wt,hn));break e}}}if(wt.valueRangeContainsNewline){let Kt="Implicit map keys need to be on a single line";pe.errors.push(new g.YAMLSemanticError(wt,Kt))}}}return Ze!==void 0&&He.push(new _t(Ze)),{comments:We,items:He}}function If(pe,de){let We=[],He=[],Ze,tt=!1,Ct="{";for(let wt=0;wt<de.items.length;++wt){let Kt=de.items[wt];if(typeof Kt.char=="string"){let{char:rn,offset:hn}=Kt;if(rn==="?"&&Ze===void 0&&!tt){tt=!0,Ct=":";continue}if(rn===":"){if(Ze===void 0&&(Ze=null),Ct===":"){Ct=",";continue}}else if(tt&&(Ze===void 0&&rn!==","&&(Ze=null),tt=!1),Ze!==void 0&&(He.push(new _t(Ze)),Ze=void 0,rn===",")){Ct=":";continue}if(rn==="}"){if(wt===de.items.length-1)continue}else if(rn===Ct){Ct=":";continue}let Mn=`Flow map contains an unexpected ${rn}`,lr=new g.YAMLSyntaxError(de,Mn);lr.offset=hn,pe.errors.push(lr)}else Kt.type===g.Type.BLANK_LINE?We.push({afterKey:!!Ze,before:He.length}):Kt.type===g.Type.COMMENT?(Yn(pe.errors,Kt),We.push({afterKey:!!Ze,before:He.length,comment:Kt.comment})):Ze===void 0?(Ct===","&&pe.errors.push(new g.YAMLSemanticError(Kt,"Separator , missing in flow map")),Ze=vi(pe,Kt)):(Ct!==","&&pe.errors.push(new g.YAMLSemanticError(Kt,"Indicator : missing in flow map entry")),He.push(new _t(Ze,vi(pe,Kt))),Ze=void 0,tt=!1)}return Cn(pe.errors,de),Ze!==void 0&&He.push(new _t(Ze)),{comments:We,items:He}}function Of(pe,de){if(de.type!==g.Type.SEQ&&de.type!==g.Type.FLOW_SEQ){let tt=`A ${de.type} node cannot be resolved as a sequence`;return pe.errors.push(new g.YAMLSyntaxError(de,tt)),null}let{comments:We,items:He}=de.type===g.Type.FLOW_SEQ?Rf(pe,de):jf(pe,de),Ze=new Ft;if(Ze.items=He,Oi(Ze,We),!pe.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.";pe.warnings.push(new g.YAMLWarning(de,tt))}return de.resolved=Ze,Ze}function jf(pe,de){let We=[],He=[];for(let Ze=0;Ze<de.items.length;++Ze){let tt=de.items[Ze];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&&pe.errors.push(tt.error),He.push(vi(pe,tt.node)),tt.hasProps){let Ct="Sequence items cannot have tags or anchors before the - indicator";pe.errors.push(new g.YAMLSemanticError(tt,Ct))}break;default:tt.error&&pe.errors.push(tt.error),pe.errors.push(new g.YAMLSyntaxError(tt,`Unexpected ${tt.type} node in sequence`))}}return{comments:We,items:He}}function Rf(pe,de){let We=[],He=[],Ze=!1,tt,Ct=null,wt="[",Kt=null;for(let rn=0;rn<de.items.length;++rn){let hn=de.items[rn];if(typeof hn.char=="string"){let{char:Mn,offset:lr}=hn;if(Mn!==":"&&(Ze||tt!==void 0)&&(Ze&&tt===void 0&&(tt=wt?He.pop():null),He.push(new _t(tt)),Ze=!1,tt=void 0,Ct=null),Mn===wt)wt=null;else if(!wt&&Mn==="?")Ze=!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(de,cr);Vn.offset=lr,pe.errors.push(Vn)}if(!Ze&&typeof Ct=="number"){let cr=hn.range?hn.range.start:hn.offset;cr>Ct+1024&&pe.errors.push(or(de,tt));let{src:Vn}=Kt.context;for(let rr=Ct;rr<cr;++rr)if(Vn[rr]===`
395
- `){let tr="Implicit keys of flow sequence pairs need to be on a single line";pe.errors.push(new g.YAMLSemanticError(Kt,tr));break}}}else tt=null;Ct=null,Ze=!1,wt=null}else if(wt==="["||Mn!=="]"||rn<de.items.length-1){let cr=`Flow sequence contains an unexpected ${Mn}`,Vn=new g.YAMLSyntaxError(de,cr);Vn.offset=lr,pe.errors.push(Vn)}}else if(hn.type===g.Type.BLANK_LINE)We.push({before:He.length});else if(hn.type===g.Type.COMMENT)Yn(pe.errors,hn),We.push({comment:hn.comment,before:He.length});else{if(wt){let lr=`Expected a ${wt} in flow sequence`;pe.errors.push(new g.YAMLSemanticError(hn,lr))}let Mn=vi(pe,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(pe.errors,de),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=Ke,Y.YAMLMap=bn,Y.YAMLSeq=Ft,Y.addComment=Ae,Y.binaryOptions=I,Y.boolOptions=H,Y.findPair=Xt,Y.intOptions=le,Y.isEmptyPath=jt,Y.nullOptions=we,Y.resolveMap=Lf,Y.resolveNode=vi,Y.resolveSeq=Of,Y.resolveString=Hi,Y.strOptions=Me,Y.stringifyNumber=mn,Y.stringifyString=tn,Y.toJSON=Be}}),Ks=p({"node_modules/yaml/dist/warnings-1000a372.js"(Y){N();var g=Wr(),W=is(),Ae={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 xr=0;xr<on.length;++xr)sr+=String.fromCharCode(on[xr]);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,xr=Math.ceil(Wn.length/sr),bi=new Array(xr);for(let fi=0,Dt=0;fi<xr;++fi,Dt+=sr)bi[fi]=Wn.substr(Dt,sr);on=bi.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 Ke={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Pe,createNode:Be},mt=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=mt.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(mt,"tag","tag:yaml.org,2002:omap");function jt(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 mt,At)}function st(ve,je,At){let Ot=Be(ve,je,At),zt=new mt;return zt.items=Ot.items,zt}var yt={identify:ve=>ve instanceof Map,nodeClass:mt,default:!1,tag:"tag:yaml.org,2002:omap",resolve:jt,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 xr=Date.UTC(je,At-1,Ot,zt||0,En||0,on||0,Wn||0);if(sr&&sr!=="Z"){let bi=Wt(sr[0],sr.slice(1));Math.abs(bi)<30&&(bi*=60),xr-=6e4*bi}return new Date(xr)},stringify:ve=>{let{value:je}=ve;return je.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function I(ve){let je=typeof te<"u"&&te.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 te<"u"&&te.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 we={};function Me(ve,je){if(!we[ve]&&I(!0)){we[ve]=!0;let At=`The option '${ve}' will be removed in a future release`;At+=je?`, use '${je}' instead.`:".",H(At,"DeprecationWarning")}}Y.binary=Ae,Y.floatTime=ye,Y.intTime=bn,Y.omap=yt,Y.pairs=Ke,Y.set=Gt,Y.timestamp=K,Y.warn=H,Y.warnFileDeprecation=le,Y.warnOptionDeprecation=Me}}),Zs=p({"node_modules/yaml/dist/Schema-88e323a7.js"(Y){N();var g=Wr(),W=is(),Ae=Ks();function Pe(Dt,tn,mn){let Cn=new W.YAMLMap(Dt);if(tn instanceof Map)for(let[Yn,or]of tn)Cn.items.push(Dt.createPair(Yn,or,mn));else if(tn&&typeof tn=="object")for(let Yn of Object.keys(tn))Cn.items.push(Dt.createPair(Yn,tn[Yn],mn));return typeof Dt.sortMapEntries=="function"&&Cn.items.sort(Dt.sortMapEntries),Cn}var Be={createNode:Pe,default:!0,nodeClass:W.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:W.resolveMap};function Ke(Dt,tn,mn){let Cn=new W.YAMLSeq(Dt);if(tn&&tn[Symbol.iterator])for(let Yn of tn){let or=Dt.createNode(Yn,mn.wrapScalars,null,mn);Cn.items.push(or)}return Cn}var mt={createNode:Ke,default:!0,nodeClass:W.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:W.resolveSeq},jt={identify:Dt=>typeof Dt=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:W.resolveString,stringify(Dt,tn,mn,Cn){return tn=Object.assign({actualString:!0},tn),W.stringifyString(Dt,tn,mn,Cn)},options:W.strOptions},st=[Be,mt,jt],yt=Dt=>typeof Dt=="bigint"||Number.isInteger(Dt),Ft=(Dt,tn,mn)=>W.intOptions.asBigInt?BigInt(Dt):parseInt(tn,mn);function It(Dt,tn,mn){let{value:Cn}=Dt;return yt(Cn)&&Cn>=0?mn+Cn.toString(tn):W.stringifyNumber(Dt)}var _t={identify:Dt=>Dt==null,createNode:(Dt,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:Dt=>typeof Dt=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:Dt=>Dt[0]==="t"||Dt[0]==="T",options:W.boolOptions,stringify:Dt=>{let{value:tn}=Dt;return tn?W.boolOptions.trueStr:W.boolOptions.falseStr}},Wt={identify:Dt=>yt(Dt)&&Dt>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(Dt,tn)=>Ft(Dt,tn,8),options:W.intOptions,stringify:Dt=>It(Dt,8,"0o")},Xt={identify:yt,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:Dt=>Ft(Dt,Dt,10),options:W.intOptions,stringify:W.stringifyNumber},bn={identify:Dt=>yt(Dt)&&Dt>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(Dt,tn)=>Ft(Dt,tn,16),options:W.intOptions,stringify:Dt=>It(Dt,16,"0x")},ye={identify:Dt=>typeof Dt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(Dt,tn)=>tn?NaN:Dt[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:W.stringifyNumber},K={identify:Dt=>typeof Dt=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:Dt=>parseFloat(Dt),stringify:Dt=>{let{value:tn}=Dt;return Number(tn).toExponential()}},I={identify:Dt=>typeof Dt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(Dt,tn,mn){let Cn=tn||mn,Yn=new W.Scalar(parseFloat(Dt));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=Dt=>typeof Dt=="bigint"||Number.isInteger(Dt),we=Dt=>{let{value:tn}=Dt;return JSON.stringify(tn)},Me=[Be,mt,{identify:Dt=>typeof Dt=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:W.resolveString,stringify:we},{identify:Dt=>Dt==null,createNode:(Dt,tn,mn)=>mn.wrapScalars?new W.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:we},{identify:Dt=>typeof Dt=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:Dt=>Dt==="true",stringify:we},{identify:le,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:Dt=>W.intOptions.asBigInt?BigInt(Dt):parseInt(Dt,10),stringify:Dt=>{let{value:tn}=Dt;return le(tn)?tn.toString():JSON.stringify(tn)}},{identify:Dt=>typeof Dt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:Dt=>parseFloat(Dt),stringify:we}];Me.scalarFallback=Dt=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(Dt)}`)};var ve=Dt=>{let{value:tn}=Dt;return tn?W.boolOptions.trueStr:W.boolOptions.falseStr},je=Dt=>typeof Dt=="bigint"||Number.isInteger(Dt);function At(Dt,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 Dt==="-"?BigInt(-1)*or:or}let Yn=parseInt(Cn,mn);return Dt==="-"?-1*Yn:Yn}function Ot(Dt,tn,mn){let{value:Cn}=Dt;if(je(Cn)){let Yn=Cn.toString(tn);return Cn<0?"-"+mn+Yn.substr(1):mn+Yn}return W.stringifyNumber(Dt)}var zt=st.concat([{identify:Dt=>Dt==null,createNode:(Dt,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:Dt=>typeof Dt=="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:Dt=>typeof Dt=="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:(Dt,tn,mn)=>At(tn,mn,2),stringify:Dt=>Ot(Dt,2,"0b")},{identify:je,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(Dt,tn,mn)=>At(tn,mn,8),stringify:Dt=>Ot(Dt,8,"0")},{identify:je,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(Dt,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:(Dt,tn,mn)=>At(tn,mn,16),stringify:Dt=>Ot(Dt,16,"0x")},{identify:Dt=>typeof Dt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(Dt,tn)=>tn?NaN:Dt[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:W.stringifyNumber},{identify:Dt=>typeof Dt=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:Dt=>parseFloat(Dt.replace(/_/g,"")),stringify:Dt=>{let{value:tn}=Dt;return Number(tn).toExponential()}},{identify:Dt=>typeof Dt=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(Dt,tn){let mn=new W.Scalar(parseFloat(Dt.replace(/_/g,"")));if(tn){let Cn=tn.replace(/_/g,"");Cn[Cn.length-1]==="0"&&(mn.minFractionDigits=Cn.length)}return mn},stringify:W.stringifyNumber}],Ae.binary,Ae.omap,Ae.pairs,Ae.set,Ae.intTime,Ae.floatTime,Ae.timestamp),En={core:H,failsafe:st,json:Me,yaml11:zt},on={binary:Ae.binary,bool:Gt,float:I,floatExp:K,floatNaN:ye,floatTime:Ae.floatTime,int:Xt,intHex:bn,intOct:Wt,intTime:Ae.intTime,map:Be,null:_t,omap:Ae.omap,pairs:Ae.pairs,seq:mt,set:Ae.set,timestamp:Ae.timestamp};function Wn(Dt,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(Dt)||Cn.class&&Dt instanceof Cn.class)&&!Cn.format)}function sr(Dt,tn,mn){if(Dt instanceof W.Node)return Dt;let{defaultPrefix:Cn,onTagObj:Yn,prevObjects:or,schema:Oi,wrapScalars:Hi}=mn;tn&&tn.startsWith("!!")&&(tn=Cn+tn.slice(2));let zi=Wn(Dt,tn,Oi.tags);if(!zi){if(typeof Dt.toJSON=="function"&&(Dt=Dt.toJSON()),!Dt||typeof Dt!="object")return Hi?new W.Scalar(Dt):Dt;zi=Dt instanceof Map?Be:Dt[Symbol.iterator]?mt:Be}Yn&&(Yn(zi),delete mn.onTagObj);let ji={value:void 0,node:void 0};if(Dt&&typeof Dt=="object"&&or){let ta=or.get(Dt);if(ta){let Ga=new W.Alias(ta);return mn.aliasNodes.push(Ga),Ga}ji.value=Dt,or.set(Dt,ji)}return ji.node=zi.createNode?zi.createNode(mn.schema,Dt,mn):Hi?new W.Scalar(Dt):Dt,tn&&ji.node instanceof W.Node&&(ji.node.tag=tn),ji.node}function xr(Dt,tn,mn,Cn){let Yn=Dt[Cn.replace(/\W/g,"")];if(!Yn){let or=Object.keys(Dt).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 Hi=tn[Oi];if(!Hi){let zi=Object.keys(tn).map(ji=>JSON.stringify(ji)).join(", ");throw new Error(`Unknown custom tag "${Oi}"; use one of ${zi}`)}Yn[or]=Hi}}return Yn}var bi=(Dt,tn)=>Dt.key<tn.key?-1:Dt.key>tn.key?1:0,fi=class{constructor(Dt){let{customTags:tn,merge:mn,schema:Cn,sortMapEntries:Yn,tags:or}=Dt;this.merge=!!mn,this.name=Cn,this.sortMapEntries=Yn===!0?bi:Yn||null,!tn&&or&&Ae.warnOptionDeprecation("tags","customTags"),this.tags=xr(En,on,tn||or,Cn)}createNode(Dt,tn,mn,Cn){let Yn={defaultPrefix:fi.defaultPrefix,schema:this,wrapScalars:tn},or=Cn?Object.assign(Cn,Yn):Yn;return sr(Dt,mn,or)}createPair(Dt,tn,mn){mn||(mn={wrapScalars:!0});let Cn=this.createNode(Dt,mn.wrapScalars,null,mn),Yn=this.createNode(tn,mn.wrapScalars,null,mn);return new W.Pair(Cn,Yn)}};g._defineProperty(fi,"defaultPrefix",g.defaultTagPrefix),g._defineProperty(fi,"defaultTags",g.defaultTags),Y.Schema=fi}}),ii=p({"node_modules/yaml/dist/Document-9b4560a1.js"(Y){N();var g=Wr(),W=is(),Ae=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)}},Ke={"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 mt(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 we=H.substr(le.prefix.length).replace(/[!,[\]{}]/g,Me=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[Me]);return le.handle+we}function jt(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,we;if(H instanceof W.Scalar){we=H.value;let Me=I.filter(ve=>ve.identify&&ve.identify(we)||ve.class&&we instanceof ve.class);le=Me.find(ve=>ve.format===H.format)||Me.find(ve=>!ve.format)}else we=H,le=I.find(Me=>Me.nodeClass&&we instanceof Me.nodeClass);if(!le){let Me=we&&we.constructor?we.constructor.name:typeof we;throw new Error(`Tag not resolved for ${Me} value`)}return le}function st(I,H,le){let{anchors:we,doc:Me}=le,ve=[],je=Me.anchors.getName(I);return je&&(we[je]=I,ve.push(`&${je}`)),I.tag?ve.push(mt(Me,I.tag)):H.default||ve.push(mt(Me,H.tag)),ve.join(" ")}function yt(I,H,le,we){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,we);je||(je=jt(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,we):I instanceof W.Scalar?W.stringifyString(I,H,le,we):I.toString(H,le,we);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),we=0;we<H;we++)le[we]=arguments[we];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 we=`${I}${le}`;if(!H.includes(we))return we}}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,we=I&&Object.keys(le).find(Me=>le[Me]===I);if(we)if(H)we!==H&&(delete le[we],le[H]=I);else return we;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(we=>It(we,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:[]},we,Me=!1;for(let ve of H)if(ve.valueRange){if(we!==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),we=je}else ve.comment!==null?(we===void 0?le.before:le.after).push(ve.comment):ve.type===g.Type.BLANK_LINE&&(Me=!0,we===void 0&&le.before.length>0&&!I.commentBefore&&(I.commentBefore=le.before.join(`
400
- `),le.before=[]));if(I.contents=we||null,!we)I.comment=le.before.concat(le.after).join(`
401
- `)||null;else{let ve=le.before.join(`
402
- `);if(ve){let je=we instanceof W.Collection&&we.items[0]?we.items[0]:we;je.commentBefore=je.commentBefore?`${ve}
403
- ${je.commentBefore}`:ve}I.comment=le.after.join(`
404
- `)||null}}function Wt(I,H){let{tagPrefixes:le}=I,[we,Me]=H.parameters;if(!we||!Me){let ve="Insufficient parameters given for %TAG directive";throw new g.YAMLSemanticError(H,ve)}if(le.some(ve=>ve.handle===we)){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:we,prefix:Me}}function Xt(I,H){let[le]=H.parameters;if(H.name==="YAML:1.0"&&(le="1.0"),!le){let we="Insufficient parameters given for %YAML directive";throw new g.YAMLSemanticError(H,we)}if(!Ke[le]){let we=`Document will be parsed as YAML ${I.version||I.options.version} rather than YAML ${le}`;I.warnings.push(new g.YAMLWarning(H,we))}return le}function bn(I,H,le){let we=[],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&&we.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=we.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 Ae.Schema(le)}parse(I,H){this.options.keepCstNodes&&(this.cstNode=I),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:le=[],contents:we=[],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,we),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(Ae.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(we=>we.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:we,maxAliasCount:Me}=this.options,ve=le&&(typeof I!="string"||!(this.contents instanceof W.Scalar)),je={doc:this,indentStep:" ",keep:ve,mapAsMap:ve&&!!we,maxAliasCount:Me,stringify:yt},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 we=this.listNonDefaultTags();this.tagPrefixes.forEach(At=>{let{handle:Ot,prefix:zt}=At;we.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:yt},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=yt(this.contents,Me,()=>je=null,At);H.push(W.addComment(Ot,"",je))}else this.contents!==void 0&&H.push(yt(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",Ke),Y.Document=K,Y.defaultOptions=Pe,Y.scalarOptions=Be}}),rl=p({"node_modules/yaml/dist/index.js"(Y){N();var g=Wa(),W=ii(),Ae=Zs(),Pe=Wr(),Be=Ks();is();function Ke(_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 Ae.Schema(Xt).createNode(_t,Gt,Wt)}var mt=class extends W.Document{constructor(_t){super(Object.assign({},W.defaultOptions,_t))}};function jt(_t,Gt){let Wt=[],Xt;for(let bn of g.parse(_t)){let ye=new mt(Gt);ye.parse(bn,Xt),Wt.push(ye),Xt=ye}return Wt}function st(_t,Gt){let Wt=g.parse(_t),Xt=new mt(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 yt(_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 mt(Gt);return Wt.contents=_t,String(Wt)}var It={createNode:Ke,defaultOptions:W.defaultOptions,Document:mt,parse:yt,parseAllDocuments:jt,parseCST:g.parse,parseDocument:st,scalarOptions:W.scalarOptions,stringify:Ft};Y.YAML=It}}),il=p({"node_modules/yaml/index.js"(Y,g){N(),g.exports=rl().YAML}}),sl=p({"node_modules/yaml/dist/util.js"(Y){N();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}}),xf=p({"node_modules/yaml/util.js"(Y){N();var g=sl();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}}),al=p({"node_modules/yaml-unist-parser/lib/yaml.js"(Y){N(),Y.__esModule=!0;var g=il();Y.Document=g.Document;var W=il();Y.parseCST=W.parseCST;var Ae=xf();Y.YAMLError=Ae.YAMLError,Y.YAMLSyntaxError=Ae.YAMLSyntaxError,Y.YAMLSemanticError=Ae.YAMLSemanticError}}),ea=p({"node_modules/yaml-unist-parser/lib/parse.js"(Y){N(),Y.__esModule=!0;var g=qu(),W=of(),Ae=Uu(),Pe=uf(),Be=Qn(),Ke=Gu(),mt=Re(),jt=gs(),st=Ms(),yt=Di(),Ft=rs(),It=Ua(),_t=al();function Gt(Wt){var Xt=_t.parseCST(Wt);yt.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 jt.transformOffset(Ot,I)},transformRange:function(Ot){return st.transformRange(Ot,I)},transformNode:function(Ot){return Be.transformNode(Ot,I)},transformContent:function(Ot){return Ke.transformContent(Ot,I)}},H=0,le=bn;H<le.length;H++)for(var we=le[H],Me=0,ve=we.errors;Me<ve.length;Me++){var je=ve[Me];if(!(je instanceof _t.YAMLSemanticError&&je.message==='Map keys must be unique; "<<" is repeated'))throw mt.transformError(je,I)}bn.forEach(function(Ot){return Pe.removeCstBlankLine(Ot.cstNode)});var At=Ae.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}}),wf=p({"node_modules/yaml-unist-parser/lib/index.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Ge));g.__exportStar(ea(),Y)}});N();var Ff=oe(),{hasPragma:wn}=Te(),{locStart:ol,locEnd:Nf}=Le();function _f(Y){let{parse:g}=wf();try{let W=g(Y);return delete W.comments,W}catch(W){throw W!=null&&W.position?Ff(W.message,W.position):W}}var ul={astFormat:"yaml",parse:_f,hasPragma:wn,locStart:ol,locEnd:Nf};s.exports={parsers:{yaml:ul}}});return r()})})(Bm);var Mm=Bm.exports,CD=vD(Mm),SD=z0({__proto__:null,default:CD},[Mm]),xD=Object.getOwnPropertyNames,wD=(e,t)=>function(){return t||(0,e[xD(e)[0]])((t={exports:{}}).exports,t),t.exports},FD=wD({"node_modules/yaml-language-server/node_modules/ajv/dist/refs/json-schema-draft-07.json"(e,t){t.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-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}}});function Im(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 Yc(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:n===0?e===t:!1}function ND(e){return Im(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 Om;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Fs.Markdown,Fs.PlainText],commitCharactersSupport:!0}}}}})(Om||(Om={}));function _D(e,t){return t.length===0?e:e.replace(/{(\d+)}/g,(n,[r])=>r in t?t[r]:n)}var TD=(e,t,...n)=>_D(t,n);function Gs(){return TD}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)}}(),xo=Gs();xo("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),xo("dateTimeFormatWarning","String is not a RFC3339 date-time."),xo("dateFormatWarning","String is not a RFC3339 date."),xo("timeFormatWarning","String is not a RFC3339 time."),xo("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 kD(e){return Pa(e)?e?{}:{not:{}}:e}var jm;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(jm||(jm={})),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 xu(e){return oy(e)}function LD(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,A=n.length;l<A;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 p=n[l-1],O=1;n[l+1]==="*";)O++,l++;var k=n[l+1];if(!s)r+=".*";else{var re=O>1&&(p==="/"||p===void 0||p==="{"||p===",")&&(k==="/"||k===void 0||k===","||k==="}");re?(k==="/"?l++:p==="/"&&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 ks=Gs(),PD="!",BD="/",MD=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]!==PD;a||(s=s.substring(1)),s.length>0&&(s[0]===BD&&(s=s.substring(1)),this.globWrappers.push({regexp:LD("**/"+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}(),ID=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}(),wo=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 kD(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=ND(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}(),OD=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=ni.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=Ls(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=Ls(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(Ls),A=this.addFilePatternAssociation(u.pattern,l);this.contributionAssociations.push(A)}},e.prototype.addSchemaHandle=function(t,n){var r=new ID(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 MD(t,n);return this.filePatternAssociations.push(r),r},e.prototype.registerExternalSchema=function(t,n,r){var i=Ls(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=Ls(t),r=this.schemasById[n];return r?r.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(t){if(!this.requestService){var n=ks("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",wu(t));return this.promise.resolve(new Ji({},[n]))}return this.requestService(t).then(function(r){if(!r){var i=ks("json.schema.nocontent","Unable to load schema from '{0}': No content.",wu(t));return new Ji({},[i])}var s={},a=[];s=ay(r,a);var o=a.length?[ks("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",wu(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]),Yc(i,".")&&(i=i.substr(0,i.length-1)),new Ji({},[ks("json.schema.nocontent","Unable to load schema from '{0}': {1}.",wu(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=Ls(a.$schema);if(o==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new wo({},[ks("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));o==="https://json-schema.org/draft/2019-09/schema"&&s.push(ks("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var u=this.contextService,l=function(k,re){if(!re)return k;var te=k;return re[0]==="/"&&(re=re.substr(1)),re.split("/").some(function(N){return N=N.replace(/~1/g,"/").replace(/~0/g,"~"),te=te[N],!te}),te},A=function(k,re,te,N){var oe=N?decodeURIComponent(N):void 0,Te=l(re,oe);if(Te)for(var Le in Te)Te.hasOwnProperty(Le)&&!k.hasOwnProperty(Le)&&(k[Le]=Te[Le]);else s.push(ks("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",oe,te))},p=function(k,re,te,N,oe){u&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(re)&&(re=u.resolveRelativePath(re,N)),re=Ls(re);var Te=i.getOrAddSchemaHandle(re);return Te.getUnresolvedSchema().then(function(Le){if(oe[re]=!0,Le.errors.length){var Ge=te?re+"#"+te:re;s.push(ks("json.schema.problemloadingref","Problems loading reference '{0}': {1}",Ge,Le.errors[0]))}return A(k,Le.schema,re,te),O(k,Le.schema,re,Te.dependencies)})},O=function(k,re,te,N){if(!k||typeof k!="object")return Promise.resolve(null);for(var oe=[k],Te=[],Le=[],Ge=function(){for(var Ce=[],xe=0;xe<arguments.length;xe++)Ce[xe]=arguments[xe];for(var et=0,Ve=Ce;et<Ve.length;et++){var Rt=Ve[et];typeof Rt=="object"&&oe.push(Rt)}},he=function(){for(var Ce=[],xe=0;xe<arguments.length;xe++)Ce[xe]=arguments[xe];for(var et=0,Ve=Ce;et<Ve.length;et++){var Rt=Ve[et];if(typeof Rt=="object")for(var pn in Rt){var kn=pn,Lt=Rt[kn];typeof Lt=="object"&&oe.push(Lt)}}},ke=function(){for(var Ce=[],xe=0;xe<arguments.length;xe++)Ce[xe]=arguments[xe];for(var et=0,Ve=Ce;et<Ve.length;et++){var Rt=Ve[et];if(Array.isArray(Rt))for(var pn=0,kn=Rt;pn<kn.length;pn++){var Lt=kn[pn];typeof Lt=="object"&&oe.push(Lt)}}},ze=function(Ce){for(var xe=[];Ce.$ref;){var et=Ce.$ref,Ve=et.split("#",2);if(delete Ce.$ref,Ve[0].length>0){Le.push(p(Ce,Ve[0],Ve[1],te,N));return}else xe.indexOf(et)===-1&&(A(Ce,re,te,Ve[1]),xe.push(et))}Ge(Ce.items,Ce.additionalItems,Ce.additionalProperties,Ce.not,Ce.contains,Ce.propertyNames,Ce.if,Ce.then,Ce.else),he(Ce.definitions,Ce.properties,Ce.patternProperties,Ce.dependencies),ke(Ce.anyOf,Ce.allOf,Ce.oneOf,Ce.items)};oe.length;){var Et=oe.pop();Te.indexOf(Et)>=0||(Te.push(Et),ze(Et))}return i.promise.all(Le)};return O(a,a,n,r).then(function(k){return new wo(a,s)})},e.prototype.getSchemaForResource=function(t,n){if(n&&n.root&&n.root.type==="object"){var r=n.root.properties.filter(function(oe){return oe.keyNode.value==="$schema"&&oe.valueNode&&oe.valueNode.type==="string"});if(r.length>0){var i=r[0].valueNode;if(i&&i.type==="string"){var s=xu(i);if(s&&Im(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,t)),s){var a=Ls(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=RD(t),A=0,p=this.filePatternAssociations;A<p.length;A++){var O=p[A];if(O.matchesPattern(l))for(var k=0,re=O.getURIs();k<re.length;k++){var te=re[k];o[te]||(u.push(te),o[te]=!0)}}var N=u.length>0?this.createCombinedSchema(t,u).getResolvedSchema():this.promise.resolve(void 0);return this.cachedSchemaForResource={resource:t,resolvedSchema:N},N},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/"+jD++;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}(),jD=0;function Ls(e){try{return ni.parse(e).toString()}catch{return e}}function RD(e){try{return ni.parse(e).with({fragment:null,query:null}).toString()}catch{return e}}function wu(e){try{var t=ni.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}function $D(e){return e.replace(/[-\\{}+?|^$.,[\]()#\s]/g,"\\$&").replace(/[*]/g,".*")}function VD(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 Rm(e){try{return new RegExp(e,"u")}catch{return new RegExp(e)}}function qD(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 Fo(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(!Fo(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(),!Fo(i,s))return!1;for(n=0;n<i.length;n++)if(!Fo(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 Fu(e){return typeof e=="string"}function UD(e){return Symbol.iterator in Object(e)}function ls(e){var t;return e?e instanceof Error&&(t=e.stack)!=null?t:e.toString():"null"}function Hc(e){return e.title?e.title:e.$id?$m(e.$id):e.$ref||e._$ref?$m(e.$ref||e._$ref):e.closestTitle||(Array.isArray(e.type)?e.type.join(" | "):e.type)}function $m(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 Vm(e,t){const n=ni.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 WD(e){return e.type!=="object"&&!zc(e)}function zc(e){return!!(e.anyOf||e.allOf||e.oneOf)}var GD=Gs(),JD=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:Kn.Error)},e.prototype.doValidation=function(t,n,r,i){var s=this;if(!this.validationEnabled)return this.promise.resolve([]);var a=[],o={},u=function(p){var O=p.range.start.line+" "+p.range.start.character+" "+p.message;o[O]||(o[O]=!0,a.push(p))},l=function(p){var O=r!=null&&r.trailingCommas?Nu(r.trailingCommas):Kn.Error,k=r!=null&&r.comments?Nu(r.comments):s.commentSeverity,re=r!=null&&r.schemaValidation?Nu(r.schemaValidation):Kn.Warning,te=r!=null&&r.schemaRequest?Nu(r.schemaRequest):Kn.Warning;if(p){if(p.errors.length&&n.root&&te){var N=n.root,oe=N.type==="object"?N.properties[0]:void 0;if(oe&&oe.keyNode.value==="$schema"){var Te=oe.valueNode||oe,Le=Rn.create(t.positionAt(Te.offset),t.positionAt(Te.offset+Te.length));u(ki.create(Le,p.errors[0],te,Gi.SchemaResolveError))}else{var Le=Rn.create(t.positionAt(N.offset),t.positionAt(N.offset+1));u(ki.create(Le,p.errors[0],te,Gi.SchemaResolveError))}}else if(re){var Ge=n.validate(t,p.schema,re);Ge&&Ge.forEach(u)}qm(p.schema)&&(k=void 0),Um(p.schema)&&(O=void 0)}for(var he=0,ke=n.syntaxErrors;he<ke.length;he++){var ze=ke[he];if(ze.code===Gi.TrailingComma){if(typeof O!="number")continue;ze.severity=O}u(ze)}if(typeof k=="number"){var Et=GD("InvalidCommentToken","Comments are not permitted in JSON.");n.comments.forEach(function(Ce){u(ki.create(Ce,Et,k,Gi.CommentNotPermitted))})}return a};if(i){var A=i.id||"schemaservice://untitled/"+YD++;return this.jsonSchemaService.resolveSchemaContent(new Ji(i),A,{}).then(function(p){return l(p)})}return this.jsonSchemaService.getSchemaForResource(t.uri,n).then(function(p){return l(p)})},e}(),YD=0;function qm(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=qm(r);if(Pa(i))return i}}}function Um(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=Um(i);if(Pa(s))return s}}}function Nu(e){switch(e){case"error":return Kn.Error;case"warning":return Kn.Warning;case"ignore":return}}var Wm=48,HD=57,zD=65,_u=97,QD=102;function Mr(e){return e<Wm?0:e<=HD?e-Wm:(e<_u&&(e+=_u-zD),e>=_u&&e<=QD?e-_u+10:0)}function XD(e){if(e[0]==="#")switch(e.length){case 4:return{red:Mr(e.charCodeAt(1))*17/255,green:Mr(e.charCodeAt(2))*17/255,blue:Mr(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Mr(e.charCodeAt(1))*17/255,green:Mr(e.charCodeAt(2))*17/255,blue:Mr(e.charCodeAt(3))*17/255,alpha:Mr(e.charCodeAt(4))*17/255};case 7:return{red:(Mr(e.charCodeAt(1))*16+Mr(e.charCodeAt(2)))/255,green:(Mr(e.charCodeAt(3))*16+Mr(e.charCodeAt(4)))/255,blue:(Mr(e.charCodeAt(5))*16+Mr(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Mr(e.charCodeAt(1))*16+Mr(e.charCodeAt(2)))/255,green:(Mr(e.charCodeAt(3))*16+Mr(e.charCodeAt(4)))/255,blue:(Mr(e.charCodeAt(5))*16+Mr(e.charCodeAt(6)))/255,alpha:(Mr(e.charCodeAt(7))*16+Mr(e.charCodeAt(8)))/255}}}var KD=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"||Yc(o.toLowerCase(),"/user/keybindings.json"))&&s.type==="array"){for(var u=[],l=0,A=s.items;l<A.length;l++){var p=A[l];if(p.type==="object")for(var O=0,k=p.properties;O<k.length;O++){var re=k[O];if(re.keyNode.value==="key"&&re.valueNode){var te=Da.create(t.uri,Ps(t,p));if(u.push({name:xu(re.valueNode),kind:Zi.Function,location:te}),a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),u}}}return u}for(var N=[{node:s,containerName:""}],oe=0,Te=!1,Le=[],Ge=function(ke,ze){ke.type==="array"?ke.items.forEach(function(Et){Et&&N.push({node:Et,containerName:ze})}):ke.type==="object"&&ke.properties.forEach(function(Et){var Ce=Et.valueNode;if(Ce)if(a>0){a--;var xe=Da.create(t.uri,Ps(t,Et)),et=ze?ze+"."+Et.keyNode.value:Et.keyNode.value;Le.push({name:i.getKeyLabel(Et),kind:i.getSymbolKind(Ce.type),location:xe,containerName:ze}),N.push({node:Ce,containerName:et})}else Te=!0})};oe<N.length;){var he=N[oe++];Ge(he.node,he.containerName)}return Te&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),Le},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"||Yc(o.toLowerCase(),"/user/keybindings.json"))&&s.type==="array"){for(var u=[],l=0,A=s.items;l<A.length;l++){var p=A[l];if(p.type==="object")for(var O=0,k=p.properties;O<k.length;O++){var re=k[O];if(re.keyNode.value==="key"&&re.valueNode){var te=Ps(t,p),N=Ps(t,re.keyNode);if(u.push({name:xu(re.valueNode),kind:Zi.Function,range:te,selectionRange:N}),a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),u}}}return u}for(var oe=[],Te=[{node:s,result:oe}],Le=0,Ge=!1,he=function(ze,Et){ze.type==="array"?ze.items.forEach(function(Ce,xe){if(Ce)if(a>0){a--;var et=Ps(t,Ce),Ve=et,Rt=String(xe),pn={name:Rt,kind:i.getSymbolKind(Ce.type),range:et,selectionRange:Ve,children:[]};Et.push(pn),Te.push({result:pn.children,node:Ce})}else Ge=!0}):ze.type==="object"&&ze.properties.forEach(function(Ce){var xe=Ce.valueNode;if(xe)if(a>0){a--;var et=Ps(t,Ce),Ve=Ps(t,Ce.keyNode),Rt=[],pn={name:i.getKeyLabel(Ce),kind:i.getSymbolKind(xe.type),range:et,selectionRange:Ve,children:Rt,detail:i.getDetail(xe)};Et.push(pn),Te.push({result:Rt,node:xe})}else Ge=!0})};Le<Te.length;){var ke=Te[Le++];he(ke.node,ke.result)}return Ge&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),oe},e.prototype.getSymbolKind=function(t){switch(t){case"object":return Zi.Module;case"string":return Zi.String;case"number":return Zi.Number;case"array":return Zi.Array;case"boolean":return Zi.Boolean;default:return Zi.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,A=o;l<A.length;l++){var p=A[l];if(!p.inverted&&p.schema&&(p.schema.format==="color"||p.schema.format==="color-hex")&&p.node&&p.node.type==="string"){var O=String(p.node.offset);if(!u[O]){var k=XD(xu(p.node));if(k){var re=Ps(t,p.node);s.push({color:k,range:re})}if(u[O]=!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(p){var O=p.toString(16);return O.length!==2?"0"+O:O}var A;return r.alpha===1?A="#"+l(a)+l(o)+l(u):A="#"+l(a)+l(o)+l(u)+l(Math.round(r.alpha*255)),s.push({label:A,textEdit:Fr.replace(i,JSON.stringify(A))}),s},e}();function Ps(e,t){return Rn.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}var $n=Gs(),Gm={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}}},ZD={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(Jm in Gm.schemas){Tu=Gm.schemas[Jm];for(Ma in Tu.properties)ku=Tu.properties[Ma],typeof ku=="boolean"&&(ku=Tu.properties[Ma]={}),Qc=ZD[Ma],Qc?ku.description=Qc:console.log(Ma+": localize('schema.json."+Ma+`', "")`)}var Tu,ku,Qc,Ma,Jm;function eb(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=nb(t,s);if(a){var o=e.positionAt(a.offset);n.push({target:e.uri+"#"+(o.line+1)+","+(o.character+1),range:tb(e,r.valueNode)})}}return!0}),Promise.resolve(n)}function tb(e,t){return Rn.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function nb(e,t){var n=rb(t);return n?Xc(n,e.root):null}function Xc(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?Xc(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?Xc(e,s):null}return null}function rb(e){return e==="#"?[]:e[0]!=="#"||e[1]!=="/"?null:e.substring(2).split(/\//).map(ib)}function ib(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 Ym(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 Hm(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 ir=Gs(),Kc="Property {0} is not allowed.",sb={"color-hex":{errorMessage:ir("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:ir("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:ir("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:ir("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:ir("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,}))$/}},Pu="YAML",zm="yaml-schema: ",li;(function(e){e.missingRequiredPropWarning="missingRequiredPropWarning",e.typeMismatchWarning="typeMismatchWarning",e.constWarning="constWarning"})(li||(li={}));var ab={[li.missingRequiredPropWarning]:'Missing property "{0}".',[li.typeMismatchWarning]:'Incorrect type. Expected "{0}".',[li.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()+"}":"")}},ob=class extends zs{constructor(e,t,n,r){super(e,t,n,r),this.type="null",this.value=null}},ub=class extends zs{constructor(e,t,n,r,i){super(e,t,r,i),this.type="boolean",this.value=n}},lb=class extends zs{constructor(e,t,n,r){super(e,t,n,r),this.type="array",this.items=[]}get children(){return this.items}},cb=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=""}},fb=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]}},pb=class extends zs{constructor(e,t,n,r){super(e,t,n,r),this.type="object",this.properties=[]}get children(){return this.properties}};function ci(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 Qm;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Qm||(Qm={}));var Xm=class{constructor(e=-1,t=null){this.focusOffset=e,this.exclude=t,this.schemas=[]}add(e){this.schemas.push(e)}merge(e){this.schemas.push(...e.schemas)}include(e){return(this.focusOffset===-1||Km(e,this.focusOffset))&&e!==this.exclude}newSub(){return new Xm(-1,this.exclude)}},No=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};No.instance=new No;var gi=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=ir("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!==li.missingRequiredPropWarning||Hm(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(zm,"");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 Ia(e){switch(e.type){case"array":return e.children.map(Ia);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]=Ia(s))}return t}case"null":case"string":case"number":case"boolean":return e.value;default:return}}function Km(e,t,n=!1){return t>=e.offset&&t<=e.offset+e.length||n&&t===e.offset+e.length}function Zm(e,t,n){if(n===void 0&&(n=!1),Km(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=Zm(r[i],t,n);if(s)return s}return e}}var db=class{constructor(e,t=[],n=[]){this.root=e,this.syntaxErrors=t,this.comments=n}getNodeFromOffset(e,t=!1){if(this.root)return Zm(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 gi(this.isKubernetes);return Hr(this.root,t,t,n,No.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=ki.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 Xm(t,n);return this.root&&e&&Hr(this.root,e,e,new gi(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":O(e,t,r,i);break;case"array":p(e,t,r,i);break;case"string":A(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 te(he){return e.type===he||he==="integer"&&e.type==="number"&&e.isInteger}if(Array.isArray(t.type))t.type.some(te)||r.problems.push({location:{offset:e.offset,length:e.length},severity:Kn.Warning,message:t.errorMessage||ir("typeArrayMismatchWarning","Incorrect type. Expected one of {0}.",t.type.join(", ")),source:mr(t,n),schemaUri:gr(t,n)});else if(t.type&&!te(t.type)){const he=t.type==="object"?Hc(t):t.type;r.problems.push({location:{offset:e.offset,length:e.length},severity:Kn.Warning,message:t.errorMessage||Mu(li.typeMismatchWarning,[he]),source:mr(t,n),schemaUri:gr(t,n),problemType:li.typeMismatchWarning,problemArgs:[he]})}if(Array.isArray(t.allOf))for(const he of t.allOf)Hr(e,ci(he),t,r,i,s);const N=ci(t.not);if(N){const he=new gi(a),ke=i.newSub();Hr(e,N,t,he,ke,s),he.hasProblems()||r.problems.push({location:{offset:e.offset,length:e.length},severity:Kn.Warning,message:ir("notSchemaWarning","Matches a schema that is not allowed."),source:mr(t,n),schemaUri:gr(t,n)});for(const ze of ke.schemas)ze.inverted=!ze.inverted,i.add(ze)}const oe=(he,ke)=>{const ze=[],Et=[],Ce=[];let xe=null;for(const et of he){const Ve={...ci(et)},Rt=new gi(a),pn=i.newSub();Hr(e,Ve,t,Rt,pn,s),(!Rt.hasProblems()||o)&&(ze.push(Ve),Et.push(Ve),Rt.propertiesMatches===0&&Ce.push(Ve),Ve.format&&Et.pop()),xe?a?xe=k(Rt,xe,Ve,pn):xe=re(e,ke,Rt,xe,Ve,pn):xe={schema:Ve,validationResult:Rt,matchingSchemas:pn}}return Et.length>1&&(Et.length>1||Ce.length===0)&&ke&&r.problems.push({location:{offset:e.offset,length:1},severity:Kn.Warning,message:ir("oneOfWarning","Matches multiple schemas when only one must validate."),source:mr(t,n),schemaUri:gr(t,n)}),xe!==null&&(r.merge(xe.validationResult),r.propertiesMatches+=xe.validationResult.propertiesMatches,r.propertiesValueMatches+=xe.validationResult.propertiesValueMatches,i.merge(xe.matchingSchemas)),ze.length};Array.isArray(t.anyOf)&&oe(t.anyOf,!1),Array.isArray(t.oneOf)&&oe(t.oneOf,!0);const Te=(he,ke)=>{const ze=new gi(a),Et=i.newSub();Hr(e,ci(he),ke,ze,Et,s),r.merge(ze),r.propertiesMatches+=ze.propertiesMatches,r.propertiesValueMatches+=ze.propertiesValueMatches,i.merge(Et)},Le=(he,ke,ze,Et)=>{const Ce=ci(he),xe=new gi(a),et=i.newSub();Hr(e,Ce,ke,xe,et,s),i.merge(et);const{filePatternAssociation:Ve}=Ce;Ve&&(new Mb(Ve).matchesPattern(s.uri)||xe.problems.push({location:{offset:e.offset,length:e.length},severity:Kn.Warning,message:ir("ifFilePatternAssociation",`filePatternAssociation '${Ve}' does not match with doc uri '${s.uri}'.`),source:mr(t,ke),schemaUri:gr(t,ke)})),xe.hasProblems()?Et&&Te(Et,ke):ze&&Te(ze,ke)},Ge=ci(t.if);if(Ge&&Le(Ge,t,ci(t.then),ci(t.else)),Array.isArray(t.enum)){const he=Ia(e);let ke=!1;for(const ze of t.enum)if(Fo(he,ze)||o&&Fu(he)&&Fu(ze)&&he&&ze.startsWith(he)){ke=!0;break}r.enumValues=t.enum,r.enumValueMatch=ke,ke||r.problems.push({location:{offset:e.offset,length:e.length},severity:Kn.Warning,code:Gi.EnumValueMismatch,message:t.errorMessage||ir("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map(ze=>JSON.stringify(ze)).join(", ")),source:mr(t,n),schemaUri:gr(t,n)})}if(Hs(t.const)){const he=Ia(e);Fo(he,t.const)?r.enumValueMatch=!0:(r.problems.push({location:{offset:e.offset,length:e.length},severity:Kn.Warning,code:Gi.EnumValueMismatch,problemType:li.constWarning,message:t.errorMessage||Mu(li.constWarning,[JSON.stringify(t.const)]),source:mr(t,n),schemaUri:gr(t,n),problemArgs:[JSON.stringify(t.const)]}),r.enumValueMatch=!1),r.enumValues=[t.const]}t.deprecationMessage&&e.parent&&r.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:Kn.Warning,message:t.deprecationMessage,source:mr(t,n),schemaUri:gr(t,n)})}function l(te,N,oe){const Te=te.value;Ii(N.multipleOf)&&Te%N.multipleOf!==0&&oe.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("multipleOfWarning","Value is not divisible by {0}.",N.multipleOf),source:mr(N,n),schemaUri:gr(N,n)});function Le(Ce,xe){if(Ii(xe))return xe;if(Ba(xe)&&xe)return Ce}function Ge(Ce,xe){if(!Ba(xe)||!xe)return Ce}const he=Le(N.minimum,N.exclusiveMinimum);Ii(he)&&Te<=he&&oe.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",he),source:mr(N,n),schemaUri:gr(N,n)});const ke=Le(N.maximum,N.exclusiveMaximum);Ii(ke)&&Te>=ke&&oe.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",ke),source:mr(N,n),schemaUri:gr(N,n)});const ze=Ge(N.minimum,N.exclusiveMinimum);Ii(ze)&&Te<ze&&oe.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("minimumWarning","Value is below the minimum of {0}.",ze),source:mr(N,n),schemaUri:gr(N,n)});const Et=Ge(N.maximum,N.exclusiveMaximum);Ii(Et)&&Te>Et&&oe.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("maximumWarning","Value is above the maximum of {0}.",Et),source:mr(N,n),schemaUri:gr(N,n)})}function A(te,N,oe){if(Ii(N.minLength)&&te.value.length<N.minLength&&oe.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("minLengthWarning","String is shorter than the minimum length of {0}.",N.minLength),source:mr(N,n),schemaUri:gr(N,n)}),Ii(N.maxLength)&&te.value.length>N.maxLength&&oe.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("maxLengthWarning","String is longer than the maximum length of {0}.",N.maxLength),source:mr(N,n),schemaUri:gr(N,n)}),Fu(N.pattern)&&(Rm(N.pattern).test(te.value)||oe.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:N.patternErrorMessage||N.errorMessage||ir("patternWarning",'String does not match the pattern of "{0}".',N.pattern),source:mr(N,n),schemaUri:gr(N,n)})),N.format)switch(N.format){case"uri":case"uri-reference":{let Te;if(!te.value)Te=ir("uriEmpty","URI expected.");else try{!ni.parse(te.value).scheme&&N.format==="uri"&&(Te=ir("uriSchemeMissing","URI with a scheme is expected."))}catch(Le){Te=Le.message}Te&&oe.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:N.patternErrorMessage||N.errorMessage||ir("uriFormatWarning","String is not a URI: {0}",Te),source:mr(N,n),schemaUri:gr(N,n)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":{const Te=sb[N.format];(!te.value||!Te.pattern.exec(te.value))&&oe.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:N.patternErrorMessage||N.errorMessage||Te.errorMessage,source:mr(N,n),schemaUri:gr(N,n)})}break}}function p(te,N,oe,Te){if(Array.isArray(N.items)){const Ge=N.items;for(let he=0;he<Ge.length;he++){const ke=Ge[he],ze=ci(ke),Et=new gi(a),Ce=te.items[he];Ce?(Hr(Ce,ze,N,Et,Te,s),oe.mergePropertyMatch(Et),oe.mergeEnumValues(Et)):te.items.length>=Ge.length&&oe.propertiesValueMatches++}if(te.items.length>Ge.length)if(typeof N.additionalItems=="object")for(let he=Ge.length;he<te.items.length;he++){const ke=new gi(a);Hr(te.items[he],N.additionalItems,N,ke,Te,s),oe.mergePropertyMatch(ke),oe.mergeEnumValues(ke)}else N.additionalItems===!1&&oe.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("additionalItemsWarning","Array has too many items according to schema. Expected {0} or fewer.",Ge.length),source:mr(N,n),schemaUri:gr(N,n)})}else{const Ge=ci(N.items);if(Ge){const he=new gi(a);te.items.forEach(ke=>{if(Ge.oneOf&&Ge.oneOf.length===1){const ze=Ge.oneOf[0],Et={...ci(ze)};Et.title=N.title,Et.closestTitle=N.closestTitle,Hr(ke,Et,N,he,Te,s),oe.mergePropertyMatch(he),oe.mergeEnumValues(he)}else Hr(ke,Ge,N,he,Te,s),oe.mergePropertyMatch(he),oe.mergeEnumValues(he)})}}const Le=ci(N.contains);if(Le&&(te.items.some(he=>{const ke=new gi(a);return Hr(he,Le,N,ke,No.instance,s),!ke.hasProblems()})||oe.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:N.errorMessage||ir("requiredItemMissingWarning","Array does not contain required item."),source:mr(N,n),schemaUri:gr(N,n)})),Ii(N.minItems)&&te.items.length<N.minItems&&oe.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("minItemsWarning","Array has too few items. Expected {0} or more.",N.minItems),source:mr(N,n),schemaUri:gr(N,n)}),Ii(N.maxItems)&&te.items.length>N.maxItems&&oe.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("maxItemsWarning","Array has too many items. Expected {0} or fewer.",N.maxItems),source:mr(N,n),schemaUri:gr(N,n)}),N.uniqueItems===!0){const Ge=Ia(te);Ge.some((ke,ze)=>ze!==Ge.lastIndexOf(ke))&&oe.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("uniqueItemsWarning","Array has duplicate items."),source:mr(N,n),schemaUri:gr(N,n)})}}function O(te,N,oe,Te){var Le;const Ge=Object.create(null),he=[],ke=[...te.properties];for(;ke.length>0;){const Ce=ke.pop(),xe=Ce.keyNode.value;if(xe==="<<"&&Ce.valueNode)switch(Ce.valueNode.type){case"object":{ke.push(...Ce.valueNode.properties);break}case"array":{Ce.valueNode.items.forEach(et=>{et&&UD(et.properties)&&ke.push(...et.properties)});break}}else Ge[xe]=Ce.valueNode,he.push(xe)}if(Array.isArray(N.required)){for(const Ce of N.required)if(Ge[Ce]===void 0){const xe=te.parent&&te.parent.type==="property"&&te.parent.keyNode,et=xe?{offset:xe.offset,length:xe.length}:{offset:te.offset,length:1};oe.problems.push({location:et,severity:Kn.Warning,message:Mu(li.missingRequiredPropWarning,[Ce]),source:mr(N,n),schemaUri:gr(N,n),problemArgs:[Ce],problemType:li.missingRequiredPropWarning})}}const ze=Ce=>{let xe=he.indexOf(Ce);for(;xe>=0;)he.splice(xe,1),xe=he.indexOf(Ce)};if(N.properties)for(const Ce of Object.keys(N.properties)){ze(Ce);const xe=N.properties[Ce],et=Ge[Ce];if(et)if(Ba(xe))if(xe)oe.propertiesMatches++,oe.propertiesValueMatches++;else{const Ve=et.parent;oe.problems.push({location:{offset:Ve.keyNode.offset,length:Ve.keyNode.length},severity:Kn.Warning,message:N.errorMessage||ir("DisallowedExtraPropWarning",Kc,Ce),source:mr(N,n),schemaUri:gr(N,n)})}else{xe.url=(Le=N.url)!=null?Le:n.url;const Ve=new gi(a);Hr(et,xe,N,Ve,Te,s),oe.mergePropertyMatch(Ve),oe.mergeEnumValues(Ve)}}if(N.patternProperties)for(const Ce of Object.keys(N.patternProperties)){const xe=Rm(Ce);for(const et of he.slice(0))if(xe.test(et)){ze(et);const Ve=Ge[et];if(Ve){const Rt=N.patternProperties[Ce];if(Ba(Rt))if(Rt)oe.propertiesMatches++,oe.propertiesValueMatches++;else{const pn=Ve.parent;oe.problems.push({location:{offset:pn.keyNode.offset,length:pn.keyNode.length},severity:Kn.Warning,message:N.errorMessage||ir("DisallowedExtraPropWarning",Kc,et),source:mr(N,n),schemaUri:gr(N,n)})}else{const pn=new gi(a);Hr(Ve,Rt,N,pn,Te,s),oe.mergePropertyMatch(pn),oe.mergeEnumValues(pn)}}}}if(typeof N.additionalProperties=="object")for(const Ce of he){const xe=Ge[Ce];if(xe){const et=new gi(a);Hr(xe,N.additionalProperties,N,et,Te,s),oe.mergePropertyMatch(et),oe.mergeEnumValues(et)}}else if((N.additionalProperties===!1||N.type==="object"&&N.additionalProperties===void 0&&s.disableAdditionalProperties===!0)&&he.length>0){const Ce=N.properties&&Object.keys(N.properties).filter(xe=>!Ge[xe]);for(const xe of he){const et=Ge[xe];if(et){let Ve=null;et.type!=="property"?(Ve=et.parent,Ve.type==="object"&&(Ve=Ve.properties[0])):Ve=et;const Rt={location:{offset:Ve.keyNode.offset,length:Ve.keyNode.length},severity:Kn.Warning,message:N.errorMessage||ir("DisallowedExtraPropWarning",Kc,xe),source:mr(N,n),schemaUri:gr(N,n)};Ce!=null&&Ce.length&&(Rt.data={properties:Ce}),oe.problems.push(Rt)}}}if(Ii(N.maxProperties)&&te.properties.length>N.maxProperties&&oe.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("MaxPropWarning","Object has more properties than limit of {0}.",N.maxProperties),source:mr(N,n),schemaUri:gr(N,n)}),Ii(N.minProperties)&&te.properties.length<N.minProperties&&oe.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("MinPropWarning","Object has fewer properties than the required number of {0}",N.minProperties),source:mr(N,n),schemaUri:gr(N,n)}),N.dependencies){for(const Ce of Object.keys(N.dependencies))if(Ge[Ce]){const et=N.dependencies[Ce];if(Array.isArray(et))for(const Ve of et)Ge[Ve]?oe.propertiesValueMatches++:oe.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("RequiredDependentPropWarning","Object is missing property {0} required by property {1}.",Ve,Ce),source:mr(N,n),schemaUri:gr(N,n)});else{const Ve=ci(et);if(Ve){const Rt=new gi(a);Hr(te,Ve,N,Rt,Te,s),oe.mergePropertyMatch(Rt),oe.mergeEnumValues(Rt)}}}}const Et=ci(N.propertyNames);if(Et)for(const Ce of te.properties){const xe=Ce.keyNode;xe&&Hr(xe,Et,N,oe,No.instance,s)}}function k(te,N,oe,Te){const Le=te.compareKubernetes(N.validationResult);return Le>0?N={schema:oe,validationResult:te,matchingSchemas:Te}:Le===0&&(N.matchingSchemas.merge(Te),N.validationResult.mergeEnumValues(te)),N}function re(te,N,oe,Te,Le,Ge){if(!N&&!oe.hasProblems()&&(!Te.validationResult.hasProblems()||o))Te.matchingSchemas.merge(Ge),Te.validationResult.propertiesMatches+=oe.propertiesMatches,Te.validationResult.propertiesValueMatches+=oe.propertiesValueMatches;else{const he=oe.compareGeneric(Te.validationResult);he>0||he===0&&N&&Te.schema.type==="object"&&te.type!=="null"&&te.type!==Te.schema.type?Te={schema:Le,validationResult:oe,matchingSchemas:Ge}:he===0&&(Te.matchingSchemas.merge(Ge),Te.validationResult.mergeEnumValues(oe),Te.validationResult.mergeWarningGeneric(oe,[li.missingRequiredPropWarning,li.typeMismatchWarning,li.constWarning]))}return Te}}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=ni.parse(i);s.scheme==="file"&&(r=s.fsPath),r=s.toString()}}if(r)return`${zm}${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 ir(e,ab[e],t.join(" | "))}var hb=1e3,Zc=0;function Oa(e,t,n,r){if(e||(Zc=0),!t)return null;if(Ur(t))return mb(t,e,n,r);if(hr(t))return gb(t,e,n,r);if(Br(t))return yb(t,e,n,r);if(Jn(t))return Db(t,e);if(es(t))return Zc>hb?void 0:bb(t,e,n,r)}function mb(e,t,n,r){let i;e.flow&&!e.range?i=vb(e):i=e.range;const s=new pb(t,e,...e0(i,r));for(const a of e.items)hr(a)&&s.properties.push(Oa(s,a,n,r));return s}function gb(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 fb(t,e,...e0([a,o,u],r));if(es(i)){const A=new Bu(t,i,...Bs(i.range));A.value=i.source,l.keyNode=A}else l.keyNode=Oa(l,i,n,r);return l.valueNode=Oa(l,s,n,r),l}function yb(e,t,n,r){const i=new lb(t,e,...Bs(e.range));for(const s of e.items)if(Dr(s)){const a=Oa(i,s,n,r);a&&i.children.push(a)}return i}function Db(e,t){if(e.value===null)return new ob(t,e,...Bs(e.range));switch(typeof e.value){case"string":{const n=new Bu(t,e,...Bs(e.range));return n.value=e.value,n}case"boolean":return new ub(t,e,e.value,...Bs(e.range));case"number":{const n=new cb(t,e,...Bs(e.range));return n.value=e.value,n.isInteger=Number.isInteger(n.value),n}default:{const n=new Bu(t,e,...Bs(e.range));return n.value=e.source,n}}}function bb(e,t,n,r){Zc++;const i=e.resolve(n);if(i)return Oa(t,i,n,r);{const s=new Bu(t,e,...Bs(e.range));return s.value=e.source,s}}function Bs(e){return[e[0],e[1]-e[0]]}function e0(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 vb(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 Eb(e,t){let n;if(Tr(e,(r,i,s)=>{if(i===t)return n=s[s.length-1],Tr.BREAK}),!mo(n))return n}function Ab(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 Cb(e,t){for(const[n,r]of e.items.entries())if(t===r)return n}function Sb(e,t){let n=!1;for(const r of e){if(r.type==="document")ef([],r,i=>{var s;if(t0(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,Tr.BREAK}else if(i.type==="comment"&&i.offset<=t&&i.offset+i.source.length>=t)return n=!0,Tr.BREAK});else if(r.type==="comment"&&r.offset<=t&&r.source.length+r.offset>=t)return!0;if(n)break}return n}function t0(e){return e.start!==void 0}function ef(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=ef(Object.freeze(e.concat([[s,o]])),a.items[o],n);if(typeof u=="number")o=u-1;else{if(u===Tr.BREAK)return Tr.BREAK;u===Tr.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=ef(Object.freeze(e),i[s],n);if(typeof a=="number")s=a-1;else{if(a===Tr.BREAK)return Tr.BREAK;a===Tr.REMOVE&&(i.items.splice(s,1),s-=1)}}return typeof r=="function"?r(t,e):r}var tf=class extends db{constructor(e){super(null,[]),this.lineCounter=e}clone(){const e=new tf(this.lineCounter);return e.isKubernetes=this.isKubernetes,e.disableAdditionalProperties=this.disableAdditionalProperties,e.uri=this.uri,e.currentDocIndex=this.currentDocIndex,e._lineComments=this.lineComments.slice(),e.internalDocument=this._internalDocument.clone(),e}collectLineComments(){this._lineComments=[],this._internalDocument.commentBefore&&this._internalDocument.commentBefore.split(`
408
- `).forEach(t=>this._lineComments.push(`#${t}`)),Tr(this.internalDocument,(e,t)=>{t!=null&&t.commentBefore&&(t==null?void 0:t.commentBefore.split(`
409
- `)).forEach(r=>this._lineComments.push(`#${r}`)),t!=null&&t.comment&&this._lineComments.push(`#${t.comment}`)}),this._internalDocument.comment&&this._lineComments.push(`#${this._internalDocument.comment}`)}set internalDocument(e){this._internalDocument=e,this.root=Oa(null,this._internalDocument.contents,this._internalDocument,this.lineCounter)}get internalDocument(){return this._internalDocument}get lineComments(){return this._lineComments||this.collectLineComments(),this._lineComments}set lineComments(e){this._lineComments=e}get errors(){return this.internalDocument.errors.map(r0)}get warnings(){return this.internalDocument.warnings.map(r0)}getNodeFromPosition(e,t,n){const r=t.getPosition(e),i=t.getLineContent(r.line);if(i.trim().length===0)return[this.findClosestNode(e,t,n),!0];const a=i.substring(r.character).match(/^([ ]+)\n?$/),o=!!a,u=a==null?void 0:a[1].length;let l;return Tr(this.internalDocument,(A,p)=>{if(!p)return;const O=p.range;if(!O)return;const k=()=>o&&e+u===O[2]&&Jn(p)&&p.value===null;if(O[0]<=e&&O[1]>=e||k())l=p;else return Tr.SKIP}),[l,!1]}findClosestNode(e,t,n){let r=this.internalDocument.range[2],i=this.internalDocument.range[0],s;Tr(this.internalDocument,(l,A)=>{if(!A)return;const p=A.range;if(!p)return;const O=p[1]-e;i<=p[0]&&O<=0&&Math.abs(O)<=r&&(r=Math.abs(O),i=p[0],s=A)});const a=t.getPosition(e),o=t.getLineContent(a.line),u=VD(o,a.character);return Jn(s)&&s.value===null||u===a.character&&(s=this.getProperParentByIndentation(u,s,t,"",n)),s}getProperParentByIndentation(e,t,n,r,i,s){if(!t)return this.internalDocument.contents;if(i=i||2,Dr(t)&&t.range){const a=n.getPosition(t.range[0]),o=n.getLineContent(a.line);if(r=r===""?o.trim():r,r.startsWith("-")&&e===i&&r===o.trim()&&(a.character+=e),a.character>e&&a.character>0){const u=this.getParent(t);if(u)return this.getProperParentByIndentation(e,u,n,r,i,s)}else if(a.character<e){const u=this.getParent(t);if(hr(u)&&Dr(u.value))return u.value;if(hr(s)&&Dr(s.value))return s.value}else return t}else if(hr(t)){s=t;const a=this.getParent(t);return this.getProperParentByIndentation(e,a,n,r,i,s)}return t}getParent(e){return Eb(this.internalDocument,e)}},n0=class{constructor(e,t){this.documents=e,this.tokens=t,this.errors=[],this.warnings=[]}},xb=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 n0([],[]),parserOptions:Iu});const i=this.cache.get(r);if(i.version!==e.version||t.customTags&&!Hm(i.parserOptions.customTags,t.customTags)){let s=e.getText();n&&!/\S/.test(s)&&(s=`{${s}}`);const a=_b(s,t,e);i.document=a,i.version=e.version,i.parserOptions=t}}},ns=new xb;function r0(e){return{message:e.message,location:{start:e.pos[0],end:e.pos[1],toLineEnd:!0},severity:1,code:Gi.Undefined}}var wb=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(Ur(e)&&this.type==="mapping"||Br(e)&&this.type==="sequence"||typeof e=="string"&&this.type==="scalar")return e}},Fb=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 Nb(e){const t=[],n=Ym(e);for(const r of n){const i=r.split(" "),s=i[0],a=i[1]&&i[1].toLowerCase()||"scalar";t.push(new wb(s,a))}return t.push(new Fb),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 _b(e,t=Iu,n){var r;const i={strict:!1,customTags:Nb(t.customTags),version:(r=t.yamlVersion)!=null?r:Iu.yamlVersion,keepSourceTokens:!0},s=new vm(i),a=new Fm;let o=!1;if(n){const k=new Qs(n),re=k.getPosition(e.length);o=k.getLineContent(re.line).trim().length===0}const l=(o?new Jc:new Jc(a.addNewLine)).parse(e),A=Array.from(l),p=s.compose(A,!0,e.length),O=Array.from(p,k=>Tb(k,a));return new n0(O,A)}function Tb(e,t){const n=new tf(t);return n.internalDocument=e,n}function kb(e){if(e instanceof tf){const t=e.lineComments.find(n=>nf(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 nf(e){const t=e.match(/^#\s+yaml-language-server\s*:/g);return t!==null&&t.length===1}var Lb=class{compile(){return()=>!0}},Ou=Gs(),Pb=new Lb,Bb=FD(),i0=Pb.compile(Bb),s0;(function(e){e[e.delete=0]="delete",e[e.add=1]="add",e[e.deleteAll=2]="deleteAll"})(s0||(s0={}));var Mb=class{constructor(e){try{this.patternRegExp=new RegExp($D(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}},Ib=class extends OD{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(!i0(i)){const A=[];for(const p of i0.errors)A.push(`${p.instancePath} : ${p.message}`);r.push(`Schema '${Vm(e.schema,t)}' is not valid:
410
- ${A.join(`
411
- `)}`)}const a=(A,p)=>{if(!p)return A;let O=A;return p[0]==="/"&&(p=p.substr(1)),p.split("/").some(k=>(O=O[k],!O)),O},o=(A,p,O,k)=>{const re=a(p,k);if(re)for(const te in re)Object.prototype.hasOwnProperty.call(re,te)&&!Object.prototype.hasOwnProperty.call(A,te)&&(A[te]=re[te]);else r.push(Ou("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",k,O))},u=(A,p,O,k,re)=>{s&&!/^\w+:\/\/.*/.test(p)&&(p=s.resolveRelativePath(p,k)),p=this.normalizeId(p);const te=this.getOrAddSchemaHandle(p);return te.getUnresolvedSchema().then(N=>{if(re[p]=!0,N.errors.length){const oe=O?p+"#"+O:p;r.push(Ou("json.schema.problemloadingref","Problems loading reference '{0}': {1}",oe,N.errors[0]))}return o(A,N.schema,p,O),A.url=p,l(A,N.schema,p,te.dependencies)})},l=async(A,p,O,k)=>{if(!A||typeof A!="object")return null;const re=[A],te=[],N=[],oe=(...he)=>{for(const ke of he)typeof ke=="object"&&re.push(ke)},Te=(...he)=>{for(const ke of he)if(typeof ke=="object")for(const ze in ke){const Et=ke[ze];typeof Et=="object"&&re.push(Et)}},Le=(...he)=>{for(const ke of he)if(Array.isArray(ke))for(const ze of ke)typeof ze=="object"&&re.push(ze)},Ge=he=>{const ke=[];for(;he.$ref;){const ze=he.$ref,Et=ze.split("#",2);if(he._$ref=he.$ref,delete he.$ref,Et[0].length>0){N.push(u(he,Et[0],Et[1],O,k));return}else ke.indexOf(ze)===-1&&(o(he,p,O,Et[1]),ke.push(ze))}oe(he.items,he.additionalItems,he.additionalProperties,he.not,he.contains,he.propertyNames,he.if,he.then,he.else),Te(he.definitions,he.properties,he.patternProperties,he.dependencies),Le(he.anyOf,he.allOf,he.oneOf,he.items,he.schemaSequence)};if(O.indexOf("#")>0){const he=O.split("#",2);if(he[0].length>0&&he[1].length>0){const ke={};await u(ke,he[0],he[1],O,k);for(const ze in i)ze!=="required"&&Object.prototype.hasOwnProperty.call(i,ze)&&!Object.prototype.hasOwnProperty.call(ke,ze)&&(ke[ze]=i[ze]);i=ke}}for(;re.length;){const he=re.pop();te.indexOf(he)>=0||(te.push(he),Ge(he))}return Promise.all(N)};return await l(i,i,t,n),new wo(i,r)}getSchemaForResource(e,t){const n=()=>{let a=kb(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=ni.file(a).toString();else{const u=ni.parse(e);a=ni.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 wo(u.schema.schemaSequence[t.currentDocIndex]):u))},i=()=>{const a=Object.create(null),o=[];for(const l of this.filePatternAssociations)if(l.matchesPattern(e))for(const A of l.getURIs())a[A]||(o.push(A),a[A]=!0);const u=this.normalizeId(e);if(this.schemasById[u]&&o.push(u),o.length>0){const l=this.highestPrioritySchemas(o);return r(l)}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:{anyOf: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&&(r.schema.url=e),r.schema&&r.schema.schemaSequence&&r.schema.schemaSequence[t.currentDocIndex]?new wo(r.schema.schemaSequence[t.currentDocIndex]):r}async saveSchema(e,t){const n=this.normalizeId(e);return this.getOrAddSchemaHandle(n,t),this.schemaPriorityMapping.set(n,new Set().add(sf.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 ni.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}",a0(e),n.errors);return new Ji({},[i])}try{const i=bD(r);return new Ji(i,[])}catch(i){const s=Ou("json.schema.invalidFormat","Unable to parse content from '{0}': {1}.",a0(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 a0(e){try{const t=ni.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}var Ob=class{constructor(e,t){this.telemetry=t,this.jsonDocumentSymbols=new KD(e),this.jsonDocumentSymbols.getKeyLabel=n=>{const r=n.keyNode.internalNode;let i="";return Ur(r)?i="{}":Br(r)?i="[]":i=r.source,i}}findDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){let n=[];try{const r=ns.getYamlDocument(e);if(!r||r.documents.length===0)return null;for(const i of r.documents)i.root&&(n=n.concat(this.jsonDocumentSymbols.findDocumentSymbols(e,i,t)))}catch(r){this.telemetry.sendError("yaml.documentSymbols.error",{error:ls(r)})}return n}findHierarchicalDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){let n=[];try{const r=ns.getYamlDocument(e);if(!r||r.documents.length===0)return null;for(const i of r.documents)i.root&&(n=n.concat(this.jsonDocumentSymbols.findDocumentSymbols2(e,i,t)))}catch(r){this.telemetry.sendError("yaml.hierarchicalDocumentSymbols.error",{error:ls(r)})}return n}};function o0(e,t){for(const n of e)n.isKubernetes=t}var jb=class{constructor(e,t){this.telemetry=t,this.shouldHover=!0,this.schemaService=e}configure(e){e&&(this.shouldHover=e.hover)}doHover(e,t,n=!1){try{if(!this.shouldHover||!e)return Promise.resolve(void 0);const r=ns.getYamlDocument(e),i=e.offsetAt(t),s=Lu(i,r);if(s===null)return Promise.resolve(void 0);o0(r.documents,n);const a=r.documents.indexOf(s);return s.currentDocIndex=a,this.getHover(e,t,s)}catch(r){this.telemetry.sendError("yaml.hover.error",{error:ls(r)})}}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=>({contents:{kind:"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 A=n.getMatchingSchemas(l.schema,i.offset);let p,O,k,re;const te=[];A.every(oe=>{if((oe.node===i||i.type==="property"&&i.valueNode===oe.node)&&!oe.inverted&&oe.schema){if(p=p||oe.schema.title||oe.schema.closestTitle,O=O||oe.schema.markdownDescription||ju(oe.schema.description),oe.schema.enum){const Te=oe.schema.enum.indexOf(Ia(i));oe.schema.markdownEnumDescriptions?k=oe.schema.markdownEnumDescriptions[Te]:oe.schema.enumDescriptions&&(k=ju(oe.schema.enumDescriptions[Te])),k&&(re=oe.schema.enum[Te],typeof re!="string"&&(re=JSON.stringify(re)))}oe.schema.anyOf&&Vb(i,A,oe.schema)&&(p="",O="",oe.schema.anyOf.forEach((Te,Le)=>{p+=Te.title||oe.schema.closestTitle||"",O+=Te.markdownDescription||ju(Te.description)||"",Le!==oe.schema.anyOf.length-1&&(p+=" || ",O+=" || ")}),p=u(p),O=u(O)),oe.schema.examples&&oe.schema.examples.forEach(Te=>{te.push(JSON.stringify(Te))})}return!0});let N="";return p&&(N="#### "+ju(p)),O&&(N.length>0&&(N+=`
412
-
413
- `),N+=O),k&&(N.length>0&&(N+=`
414
-
415
- `),N+=`\`${$b(re)}\`: ${k}`),te.length!==0&&(N.length>0&&(N+=`
416
-
417
- `),N+="Examples:",te.forEach(oe=>{N+=`
418
-
419
- \`\`\`${oe}\`\`\``})),N.length>0&&l.schema.url&&(N+=`
420
-
421
- Source: [${Rb(l.schema)}](${l.schema.url})`),o(N)}return null})}};function Rb(e){let t="JSON Schema";const n=e.url;if(n){const r=ni.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 $b(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}function Vb(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 qb=class{validate(e,t){const n=[],r=new Set,i=new Set,s=new Map;Tr(t.internalDocument,(a,o,u)=>{Dr(o)&&((Pr(o)||Jn(o))&&o.anchor&&(r.add(o),s.set(o,u[u.length-1])),es(o)&&i.add(o.resolve(t.internalDocument)))});for(const a of r)if(!i.has(a)){const o=this.getAnchorNode(s.get(a));if(o){const u=Rn.create(e.positionAt(o.offset),e.positionAt(o.offset+o.source.length)),l=ki.create(u,`Unused anchor "${o.source}"`,Kn.Hint,0);l.tags=[lc.Unnecessary],n.push(l)}}return n}getAnchorNode(e){if(e&&e.srcToken){const t=e.srcToken;if(t0(t))return u0(t);if(pD(t))for(const n of t.items){const r=u0(n);if(r)return r}}}};function u0(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 Ub=class{constructor(e){this.forbidMapping=e.flowMapping==="forbid",this.forbidSequence=e.flowSequence==="forbid"}validate(e,t){const n=[];return Tr(t.internalDocument,(r,i)=>{var s,a;this.forbidMapping&&Ur(i)&&((s=i.srcToken)==null?void 0:s.type)==="flow-collection"&&n.push(ki.create(this.getRangeOf(e,i.srcToken),"Flow style mapping is forbidden",Kn.Error,"flowMap")),this.forbidSequence&&Br(i)&&((a=i.srcToken)==null?void 0:a.type)==="flow-collection"&&n.push(ki.create(this.getRangeOf(e,i.srcToken),"Flow style sequence is forbidden",Kn.Error,"flowSeq"))}),n}getRangeOf(e,t){return Rn.create(e.positionAt(t.start.offset),e.positionAt(t.end.pop().offset))}},Wb=(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 ki.create(r,e.message,e.severity,e.code,Pu)},Gb=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 JD(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 Ub(e))),this.validators.push(new qb)}async doValidation(e,t=!1){if(!this.validationEnabled)return Promise.resolve([]);const n=[];try{const a=ns.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0);let o=0;for(const u of a.documents){u.isKubernetes=t,u.currentDocIndex=o,u.disableAdditionalProperties=this.disableAdditionalProperties,u.uri=e.uri;const l=await this.jsonValidation.doValidation(e,u),A=u;A.errors.length>0&&n.push(...A.errors),A.warnings.length>0&&n.push(...A.warnings),n.push(...l),n.push(...this.runAdditionalValidators(e,u)),o++}}catch(a){this.telemetry.sendError("yaml.validation.error",{error:ls(a)})}let r;const i=new Set,s=[];for(let a of n){if(t&&a.message===this.MATCHES_MULTIPLE)continue;if(Object.prototype.hasOwnProperty.call(a,"location")&&(a=Wb(a,e)),a.source||(a.source=Pu),r&&r.message===a.message&&r.range.end.line===a.range.start.line&&Math.abs(r.range.end.character-a.range.end.character)>=1){r.range.end=a.range.end;continue}else r=a;const o=a.range.start.line+" "+a.range.start.character+" "+a.message;i.has(o)||(s.push(a),i.add(o))}return s}runAdditionalValidators(e,t){const n=[];for(const r of this.validators)n.push(...r.validate(e,t));return n}},Jb=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:[SD],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=AD.format(n,r);return[Fr.replace(Rn.create(Yr.create(0,0),e.positionAt(n.length)),i)]}catch{return[]}}},Yb=class{constructor(e){this.telemetry=e}findLinks(e){try{const t=ns.getYamlDocument(e),n=[];for(const r of t.documents)n.push(eb(e,r));return Promise.all(n).then(r=>[].concat(...r))}catch(t){this.telemetry.sendError("yaml.documentLink.error",{error:ls(t)})}}};function Hb(e,t){if(!e)return;const n=[],r=ns.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)),oc.create(n.line,r.line,n.character,r.character)}var _o;(function(e){e.JUMP_TO_SCHEMA="jumpToSchema"})(_o||(_o={}));var zb=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 Tr.SKIP});return cD(i)}},Qb=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}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 A=((s=l.data)==null?void 0:s.schemaUri)||[];for(const p of A)p&&(o.has(p)||o.set(p,[]),o.get(p).push(l))}const u=[];for(const l of o.keys()){const A=Ns.create(`Jump to schema location (${Ws.basename(l)})`,js.create("JumpToSchema",_o.JUMP_TO_SCHEMA,l));A.diagnostics=o.get(l),u.push(A)}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 A=s.range.start.character;A<=s.range.end.character&&a.charAt(A)===" ";A++)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(Ns.create("Convert Tab to Spaces",To(t.uri,[Fr.replace(l,u)]),Rs.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 A=0;A<o.length;A++){const p=o.charAt(A);if(p!==" "&&p!==" "){u!==0&&(s.push(Fr.replace(Rn.create(a,A-u,a,A),l)),u=0,l="");break}if(p===" "&&u!==0){s.push(Fr.replace(Rn.create(a,A-u,a,A),l)),u=0,l="";continue}p===" "&&(l+=this.indentation,u++)}u!==0&&s.push(Fr.replace(Rn.create(a,0,a,r.getLineLength(a)),l))}s.length>0&&n.push(Ns.create("Convert all Tabs to Spaces",To(t.uri,s),Rs.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=qD(o,s.end.character);s.end.character=u;const l=Ns.create(`Delete unused anchor: ${a}`,To(t.uri,[Fr.del(s)]),Rs.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(Ns.create("Convert to boolean",To(t.uri,[Fr.replace(r.range,s)]),Rs.QuickFix))}}return n}getConvertToBlockStyleActions(e,t){const n=[];for(const r of e)if(r.code==="flowMap"||r.code==="flowSeq"){const i=ns.getYamlDocument(t),s=t.offsetAt(r.range.start),o=Lu(s,i).getNodeFromOffset(s);if(Ur(o.internalNode)||Br(o.internalNode)){const u=Ur(o.internalNode)?"map":"sequence",l=new zb(this.indentation);n.push(Ns.create(`Convert to block style ${u}`,To(t.uri,[Fr.replace(r.range,l.write(o))]),Rs.QuickFix))}}return n}};function To(e,t){const n={};return n[e]=t,{changes:n}}var Xb=class{constructor(){this.commands=new Map}executeCommand(e){if(this.commands.has(e.command))return this.commands.get(e.command)(...e.arguments);throw new Error(`Command '${e.command}' not found`)}registerCommand(e,t){this.commands.set(e,t)}},Kb=new Xb;function Zb(e,t){const{position:n}=t,r=new Qs(e);if(t.ch===`
426
- `){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(Fr.del(Rn.create(n,Yr.create(n.line,s.length-1)))),l.push(Fr.insert(n," ".repeat(t.options.tabSize+(o?2-u:0)))),l}if(o)return[Fr.insert(n," ".repeat(t.options.tabSize))]}if(i.trimRight().endsWith("|"))return[Fr.insert(n," ".repeat(t.options.tabSize))];if(i.includes(" - ")&&!i.includes(": "))return[Fr.insert(n,"- ")];if(i.includes(" - ")&&i.includes(": "))return[Fr.insert(n," ")]}}function ev(e){const t=new Map;return e&&(e.url?e.url.startsWith("schemaservice://combinedSchema/")?l0(e,t):t.set(e.url,e):l0(e,t)),t}function l0(e,t){e.allOf&&rf(e.allOf,t),e.anyOf&&rf(e.anyOf,t),e.oneOf&&rf(e.oneOf,t)}function rf(e,t){for(const n of e)!Ba(n)&&n.url&&!t.has(n.url)&&t.set(n.url,n)}var tv=class{constructor(e,t){this.schemaService=e,this.telemetry=t}async getCodeLens(e){const t=[];try{const n=ns.getYamlDocument(e);let r=new Map;for(const i of n.documents){const s=await this.schemaService.getSchemaForResource(e.uri,i);s!=null&&s.schema&&(r=new Map([...ev(s==null?void 0:s.schema),...r]))}for(const i of r){const s=hc.create(Rn.create(0,0,0,0));s.command={title:Vm(i[1],i[0]),command:_o.JUMP_TO_SCHEMA,arguments:[i[0]]},t.push(s)}}catch(n){this.telemetry.sendError("yaml.codeLens.error",{error:ls(n)})}return t}resolveCodeLens(e){return e}};function nv(e,t){e.registerCommand(_o.JUMP_TO_SCHEMA,async n=>{if(!n)return;if(!n.startsWith("file")&&!/^[a-z]:[\\/]/i.test(n)){const i=ni.parse(n);n=ni.from({scheme:"json-schema",authority:i.authority,path:i.path.endsWith(".json")?i.path:i.path+".json",fragment:n}).toString()}/^[a-z]:[\\/]/i.test(n)&&(n=ni.file(n).toString()),await t.window.showDocument({uri:n,external:!1,takeFocus:!0})||t.window.showErrorMessage(`Cannot open ${n}`)})}var rv=class{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}};function iv(e,t,n,r,i){i.spacesDiff=0,i.looksLikeAlignment=!1;let s;for(s=0;s<t&&s<r;s++){const O=e.charCodeAt(s),k=n.charCodeAt(s);if(O!==k)break}let a=0,o=0;for(let O=s;O<t;O++)e.charCodeAt(O)===32?a++:o++;let u=0,l=0;for(let O=s;O<r;O++)n.charCodeAt(O)===32?u++:l++;if(a>0&&o>0||u>0&&l>0)return;const A=Math.abs(o-l),p=Math.abs(a-u);if(A===0){i.spacesDiff=p,p>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}p%A===0&&(i.spacesDiff=p/A)}function sv(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,A=[0,0,0,0,0,0,0,0,0],p=new rv;for(let re=1;re<=r;re++){const te=e.getLineLength(re),N=e.getLineContent(re),oe=te<=65536;let Te=!1,Le=0,Ge=0,he=0;for(let ze=0,Et=te;ze<Et;ze++){const Ce=oe?N.charCodeAt(ze):e.getLineCharCode(re,ze);if(Ce===9)he++;else if(Ce===32)Ge++;else{Te=!0,Le=ze;break}}if(!Te||(he>0?i++:Ge>1&&s++,iv(a,o,N,Le,p),p.looksLikeAlignment&&!(n&&t===p.spacesDiff)))continue;const ke=p.spacesDiff;ke<=l&&A[ke]++,a=N,o=Le}let O=n;i!==s&&(O=i<s);let k=t;if(O){let re=O?0:.1*r;u.forEach(te=>{const N=A[te];N>re&&(re=N,k=te)}),k===4&&A[4]>0&&A[2]>0&&A[2]>=A[4]/2&&(k=2)}return{insertSpaces:O,tabSize:k}}function $u(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+=`
427
- `+a+"- "+n(e[u]);continue}Array.isArray(e[u])||(l=av(e[u],s)),o+=$u(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?`
428
- `:"";for(let l=0;l<o.length;l++){const A=o[l],p=typeof e[A]=="object",O=p?":":": ",k=p&&/^\s|-/.test(A)?r.indentation:"",re=a+k;if(i===0&&l===0&&!r.indentFirstObject){const te=$u(e[A],re,n,r,i+=1,0);u+=t+A+O+te}else{const te=$u(e[A],re,n,r,i+=1,0);u+=a+A+O+te}l<o.length-1&&(u+=`
429
- `)}return u}}return n(e)}function av(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 ov=Gs(),c0=/[\\]+"/g,f0=Ci.Class,uv=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){const i=dc.create([],!1);if(!this.completionEnabled)return i;const s=this.yamlDocument.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0),a=new Qs(e);if(this.configuredIndentation)this.indentation=this.configuredIndentation;else{const he=sv(a,2,!0);this.indentation=he.insertSpaces?" ".repeat(he.tabSize):" "}o0(s.documents,n);for(const he of s.documents)he.uri=e.uri;const o=e.offsetAt(t),u=e.getText();if(u.charAt(o-1)===":")return Promise.resolve(i);let l=Lu(o,s);if(l===null)return Promise.resolve(i);l=l.clone();let[A,p]=l.getNodeFromPosition(o,a,this.indentation.length);const O=this.getCurrentWord(e,o);let k=a.getLineContent(t.line);const re=k.substring(t.character),te=/^[ ]+\n?$/.test(re);this.arrayPrefixIndentation="";let N=null;if(te){N=Rn.create(t,Yr.create(t.line,k.length));const he=k.trim().length===0,ke=k.match(/^\s*(-)\s*$/);if(A&&Jn(A)&&!he&&!ke){const ze=k.match(/^([\s-]*)[^:]+[ \t]+\n?$/);ze!=null&&ze.length&&(N=Rn.create(Yr.create(t.line,ze[1].length),Yr.create(t.line,k.length)))}}else if(A&&Jn(A)&&A.value==="null"){const he=e.positionAt(A.range[0]);he.character+=1;const ke=e.positionAt(A.range[2]);ke.character+=1,N=Rn.create(he,ke)}else if(A&&Jn(A)&&A.value){const he=e.positionAt(A.range[0]);o>0&&he.character>0&&u.charAt(o-1)==="-"&&(he.character-=1),N=Rn.create(he,e.positionAt(A.range[1]))}else if(A&&Jn(A)&&A.value===null&&O==="-")N=Rn.create(t,t),this.arrayPrefixIndentation=" ";else{let he=e.offsetAt(t)-O.length;he>0&&u[he-1]==='"'&&he--,N=Rn.create(e.positionAt(he),t)}const oe={},Te="__",Le={add:(he,ke)=>{const ze=function(Ve){var Rt;if(((Rt=oe[Ve.label])==null?void 0:Rt.label)===Te)return;const kn=Ve.parent.schema,Lt=Hc(kn),Tt=kn.markdownDescription||kn.description;let qt=i.items.find(en=>{var Ln;return((Ln=en.parent)==null?void 0:Ln.schema)===kn&&en.kind===f0});qt&&qt.parent.insertTexts.includes(Ve.insertText)||(qt?qt.parent.insertTexts.push(Ve.insertText):(qt={...Ve,label:Lt,documentation:Tt,sortText:"_"+Lt,kind:f0},qt.label=qt.label||Ve.label,qt.parent.insertTexts=[Ve.insertText],i.items.push(qt)))},Et=!!he.parent;let Ce=he.label;if(!Ce){console.warn(`Ignoring CompletionItem without label: ${JSON.stringify(he)}`);return}if(Fu(Ce)||(Ce=String(Ce)),Ce=Ce.replace(/[\n]/g,"↵"),Ce.length>60){const Ve=Ce.substr(0,57).trim()+"...";oe[Ve]||(Ce=Ve)}if(he.insertText.endsWith("$1")&&!Et&&(he.insertText=he.insertText.substr(0,he.insertText.length-2)),N&&N.start.line===N.end.line&&(he.textEdit=Fr.replace(N,he.insertText)),he.label=Ce,Et){ze(he);return}this.arrayPrefixIndentation&&this.updateCompletionText(he,this.arrayPrefixIndentation+he.insertText);const xe=oe[Ce],et=(xe==null?void 0:xe.label)!==Te&&(xe==null?void 0:xe.insertText)!==he.insertText;if(!xe)oe[Ce]=he,i.items.push(he);else if(et){const Ve=this.mergeSimpleInsertTexts(Ce,xe.insertText,he.insertText,ke);Ve?this.updateCompletionText(xe,Ve):(oe[Ce]=he,i.items.push(he))}xe&&!xe.documentation&&he.documentation&&(xe.documentation=he.documentation)},error:he=>{this.telemetry.sendError("yaml.completion.error",{error:ls(he)})},log:he=>{console.log(he)},getNumberOfProposals:()=>i.items.length,result:i};this.customTags.length>0&&this.getCustomTagValueCompletions(Le),k.endsWith(`
430
- `)&&(k=k.substr(0,k.length-1));try{const he=await this.schemaService.getSchemaForResource(e.uri,l);if((!he||he.errors.length)&&t.line===0&&t.character===0&&!nf(k)){const Ce={kind:Ci.Text,label:"Inline schema",insertText:"# yaml-language-server: $schema=",insertTextFormat:Zr.PlainText};i.items.push(Ce)}if(nf(k)||Sb(s.tokens,o)){const Ce=k.indexOf("$schema=");return Ce!==-1&&Ce+8<=t.character&&this.schemaService.getAllSchemas().forEach(xe=>{var et;const Ve={kind:Ci.Constant,label:(et=xe.name)!=null?et:xe.uri,detail:xe.description,insertText:xe.uri,insertTextFormat:Zr.PlainText,insertTextMode:fc.asIs};i.items.push(Ve)}),i}if(!he||he.errors.length)return i;let ke=null;if(!A)if(!l.internalDocument.contents||Jn(l.internalDocument.contents)){const Ce=l.internalDocument.createNode({});Ce.range=[o,o+1,o+1],l.internalDocument.contents=Ce,l.internalDocument=l.internalDocument,A=Ce}else A=l.findClosestNode(o,a),p=!0;const ze=A;if(A)if(k.length===0)A=l.internalDocument.contents;else{const Ce=l.getParent(A);if(Ce){if(Jn(A)){if(A.value){if(hr(Ce)){if(Ce.value===A){if(k.trim().length>0&&k.indexOf(":")<0){const xe=this.createTempObjNode(O,A,l),et=l.getParent(Ce);if(Br(l.internalDocument.contents)){const Ve=Cb(l.internalDocument.contents,Ce);typeof Ve=="number"&&(l.internalDocument.set(Ve,xe),l.internalDocument=l.internalDocument)}else et&&(Ur(et)||Br(et))?(et.set(Ce.key,xe),l.internalDocument=l.internalDocument):(l.internalDocument.set(Ce.key,xe),l.internalDocument=l.internalDocument);ke=xe.items[0],A=xe}else if(k.trim().length===0){const xe=l.getParent(Ce);xe&&(A=xe)}}else if(Ce.key===A){const xe=l.getParent(Ce);ke=Ce,xe&&(A=xe)}}else if(Br(Ce))if(k.trim().length>0){const xe=this.createTempObjNode(O,A,l);Ce.delete(A),Ce.add(xe),l.internalDocument=l.internalDocument,A=xe}else A=Ce}else if(A.value===null){if(hr(Ce)){if(Ce.key===A)A=Ce;else if(Dr(Ce.key)&&Ce.key.range){const xe=l.getParent(Ce);if(p&&xe&&Ur(xe)&&Ab(xe))A=xe;else{const et=e.positionAt(Ce.key.range[0]);if(t.character>et.character&&t.line!==et.line){const Ve=this.createTempObjNode(O,A,l);xe&&(Ur(xe)||Br(xe))?(xe.set(Ce.key,Ve),l.internalDocument=l.internalDocument):(l.internalDocument.set(Ce.key,Ve),l.internalDocument=l.internalDocument),ke=Ve.items[0],A=Ve}else et.character===t.character&&xe&&(A=xe)}}}else if(Br(Ce))if(k.charAt(t.character-1)!=="-"){const xe=this.createTempObjNode(O,A,l);Ce.delete(A),Ce.add(xe),l.internalDocument=l.internalDocument,A=xe}else if(k.charAt(t.character-1)==="-"){const xe=this.createTempObjNode("",A,l);Ce.delete(A),Ce.add(xe),l.internalDocument=l.internalDocument,A=xe}else A=Ce}}else if(Ur(A)&&!p&&k.trim().length===0&&Br(Ce)){const xe=a.getLineContent(t.line+1);(a.getLineCount()===t.line+1||xe.trim().length===0)&&(A=Ce)}}else if(Jn(A)){const xe=this.createTempObjNode(O,A,l);l.internalDocument.contents=xe,l.internalDocument=l.internalDocument,ke=xe.items[0],A=xe}else if(Ur(A))for(const xe of A.items)Dr(xe.value)&&xe.value.range&&xe.value.range[0]===o+1&&(A=xe.value);else if(Br(A)&&k.charAt(t.character-1)!=="-"){const xe=this.createTempObjNode(O,A,l);xe.items=[],l.internalDocument=l.internalDocument;for(const et of A.items)Ur(et)&&et.items.forEach(Ve=>{xe.items.push(Ve)});A=xe}}if(A&&Ur(A)){const Ce=A.items;for(const xe of Ce)(!ke||ke!==xe)&&Jn(xe.key)&&(oe[xe.key.value+""]=pc.create(Te));this.addPropertyCompletions(he,l,A,ze,"",Le,a,N,r),!he&&O.length>0&&u.charAt(o-O.length-1)!=='"'&&Le.add({kind:Ci.Property,label:O,insertText:this.getInsertTextForProperty(O,null,""),insertTextFormat:Zr.Snippet})}const Et={};this.getValueCompletions(he,l,A,o,e,Le,Et,r)}catch(he){this.telemetry.sendError("yaml.completion.error",{error:ls(he)})}this.finalizeParentCompletion(i);const Ge=i.items.filter((he,ke,ze)=>ke===ze.findIndex(Et=>Et.label===he.label&&Et.insertText===he.insertText&&Et.kind===he.kind));return(Ge==null?void 0:Ge.length)>0&&(i.items=Ge),i}updateCompletionText(e,t){e.insertText=t,e.textEdit&&(e.textEdit.newText=t)}mergeSimpleInsertTexts(e,t,n,r){const i=A=>A.includes(`
431
- `),s=A=>A.startsWith(`
432
- `),a=A=>{const p=A.indexOf(`
433
- `);return p>0&&A.substring(p,A.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(fv(n)){const r=n.parent.indent||"";let s=t(n.parent.insertTexts).join(`
434
- ${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:Fs.Markdown,value:[...o,"```yaml",r+a,"```"].join(`
435
- `)},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,A,p;const O=t.getMatchingSchemas(e.schema,-1,null,u),k=a.getText(o),re=a.getLineContent(o.start.line),te=re.trim().length===0,N=re.indexOf(":")!==-1,oe=re.trimLeft().indexOf("-")===0,Te=t.getParent(n),Le=O.find(ke=>ke.node.internalNode===r&&ke.schema.properties),Ge=O.filter(ke=>ke.schema.oneOf).map(ke=>ke.schema.oneOf)[0];let he=!1;(Ge==null?void 0:Ge.length)<O.length&&(Ge==null||Ge.forEach((ke,ze)=>{var Et,Ce;!((Et=O[ze])!=null&&Et.schema.oneOf)&&((Ce=O[ze])==null?void 0:Ce.schema.properties)===ke.properties&&(he=!0)}));for(const ke of O){if((ke.node.internalNode===n&&!Le||ke.node.internalNode===r&&!N||((l=ke.node.parent)==null?void 0:l.internalNode)===r&&!N)&&!ke.inverted){this.collectDefaultSnippets(ke.schema,i,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:oe});const ze=ke.schema.properties;if(ze){const Et=ke.schema.maxProperties;if(Et===void 0||n.items===void 0||n.items.length<Et||n.items.length===Et&&!te){for(const Ce in ze)if(Object.prototype.hasOwnProperty.call(ze,Ce)){const xe=ze[Ce];if(typeof xe=="object"&&!xe.deprecationMessage&&!xe.doNotSuggest){let et="";if(Te&&Br(Te)&&n.items.length<=1&&!te){const Lt=a.getText(),Tt=Lt.lastIndexOf("-",n.range[0]-1);if(Tt>=0){const qt=o.end.character-o.start.character;et=" "+Lt.slice(Tt+1,n.range[1]-qt)}}et+=this.arrayPrefixIndentation;let Ve;xe.type==="array"&&(Ve=n.items.find(Lt=>Jn(Lt.key)&&Lt.key.range&&Lt.key.value===Ce&&Jn(Lt.value)&&!Lt.value.value&&a.getPosition(Lt.key.range[2]).line===o.end.line-1))&&Ve&&(Array.isArray(xe.items)?this.addSchemaValueCompletions(xe.items[0],i,s,{},"property"):typeof xe.items=="object"&&xe.items.type==="object"&&this.addArrayItemValueCompletion(xe.items,i,s));let Rt=Ce;(!Ce.startsWith(k)||!N)&&(Rt=this.getInsertTextForProperty(Ce,xe,i,et+this.indentation));const pn=Jn(r)&&r.value===null||Ur(r)&&r.items.length===0,kn=((A=ke.schema.required)==null?void 0:A.length)>0;(!this.parentSkeletonSelectedFirst||!pn||!kn)&&s.add({kind:Ci.Property,label:Ce,insertText:Rt,insertTextFormat:Zr.Snippet,documentation:this.fromMarkup(xe.markdownDescription)||xe.description||""},he),(p=ke.schema.required)!=null&&p.includes(Ce)&&s.add({label:Ce,insertText:this.getInsertTextForProperty(Ce,xe,i,et+this.indentation),insertTextFormat:Zr.Snippet,documentation:this.fromMarkup(xe.markdownDescription)||xe.description||"",parent:{schema:ke.schema,indent:et}})}}}}if(Te&&Br(Te)&&WD(ke.schema)&&this.addSchemaValueCompletions(ke.schema,i,s,{},"property",Array.isArray(Te.items)),ke.schema.propertyNames&&ke.schema.additionalProperties&&ke.schema.type==="object"){const Et=ci(ke.schema.propertyNames),Ce=Et.title||"property";s.add({kind:Ci.Property,label:Ce,insertText:`\${1:${Ce}}: `,insertTextFormat:Zr.Snippet,documentation:this.fromMarkup(Et.markdownDescription)||Et.description||""})}}Te&&ke.node.internalNode===Te&&ke.schema.defaultSnippets&&(n.items.length===1?this.collectDefaultSnippets(ke.schema,i,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!0},1):this.collectDefaultSnippets(ke.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||Br(n))){const l="",A=t.getMatchingSchemas(e.schema,-1,null,o);for(const p of A)if(p.node.internalNode===n&&!p.inverted&&p.schema){if(p.schema.items&&(this.collectDefaultSnippets(p.schema,l,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!1}),Br(n)&&n.items))if(Array.isArray(p.schema.items)){const O=this.findItemAtOffset(n,i,r);O<p.schema.items.length&&this.addSchemaValueCompletions(p.schema.items[O],l,s,a,"value")}else typeof p.schema.items=="object"&&(p.schema.items.type==="object"||zc(p.schema.items))?this.addSchemaValueCompletions(p.schema.items,l,s,a,"value",!0):this.addSchemaValueCompletions(p.schema.items,l,s,a,"value");if(p.schema.properties){const O=p.schema.properties[u];O&&this.addSchemaValueCompletions(O,l,s,a,"value")}else p.schema.additionalProperties&&this.addSchemaValueCompletions(p.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=Hc(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(`
436
- `)&&(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=cv(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}
437
- ${this.getInsertTextForObject(t,n,r).insertText}`;if(t.items)return`${s}
438
- ${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=`
439
- ${r}`;break;case"array":a=`
440
- ${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=Vu(u)),i+=`${n}${s}: \${${r++}:${u}}
441
- `):i+=`${n}${s}: $${r++}
442
- `;break}case"array":{const u=this.getInsertTextForArray(a.items,t,r++,n),l=u.insertText.split(`
443
- `);let A=u.insertText;if(l.length>1){for(let p=1;p<l.length;p++){const O=l[p];l[p]=` ${O}`}A=l.join(`
444
- `)}r=u.insertIndex,i+=`${n}${s}:
445
- ${n}${this.indentation}- ${A}
446
- `}break;case"object":{const u=this.getInsertTextForObject(a,t,`${n}${this.indentation}`,r++);r=u.insertIndex,i+=`${n}${s}:
447
- ${u.insertText}
448
- `}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}}
449
- `;break;case"string":i+=`${n}${s}: \${${r++}:${Vu(a.default)}}
450
- `;break}}),i.trim().length===0&&(i=`${n}$${r++}
451
- `),i=i.trimRight()+t,{insertText:i,insertIndex:r}):(i=`${n}$${r++}
452
- `,{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=Vu(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=Vu(e)),this.getInsertTextForPlainText(e+t)}getInsertTemplateForValue(e,t,n,r){if(Array.isArray(e)){let i=`
453
- `;for(const s of e)i+=`${t}- \${${n.index++}:${s}}
454
- `;return i}else if(typeof e=="object"){let i=`
455
- `;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)}}
456
- `,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"&&!zc(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(c0,'"'),n.add({kind:this.getSuggestionKind(s),label:o,insertText:this.getInsertTextForValue(a,t,s),insertTextFormat:Zr.Snippet,detail:ov("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,A;if(Hs(o)){const p=s.type||e.type;if(i===0&&p==="array"){const O={};Object.keys(o).forEach((k,re)=>{re===0&&!k.startsWith("-")?O[`- ${k}`]=o[k]:O[` ${k}`]=o[k]}),o=O}l=this.getInsertTextForSnippetValue(o,t,r),u=u||this.getLabelForSnippetValue(o)}else if(typeof s.bodyText=="string"){let p="",O="",k="";for(let re=i;re>0;re--)p=p+k+`[
457
- `,O=O+`
458
- `+k+"]",k+=this.indentation,a="array";l=p+k+s.bodyText.split(`
459
- `).join(`
460
- `+k)+O+t,u=u||l,A=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:A})}}getInsertTextForSnippetValue(e,t,n,r){return $u(e,"",s=>{if(typeof s=="string"){if(s[0]==="^")return s.substr(1);if(s==="true"||s==="false")return`"${s}"`}return s},{...n,indentation:this.indentation},r)+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){Ym(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}
461
- \`\`\`
462
- ${t}
463
- \`\`\``)),n}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:null}if(!e)return Ci.Value;switch(e){case"string":return Ci.Value;case"object":return Ci.Module;case"property":return Ci.Property;default:return Ci.Value}}getCurrentWord(e,t){let n=t-1;const r=e.getText();for(;n>=0&&`
464
- \r\v":{[,]}`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,t)}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:Fs.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(Fs.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}},lv=/^\d+$/;function Vu(e){let t;if(typeof e=="string"?t=e:t=""+e,t.length===0)return t;if(t==="true"||t==="false"||t==="null"||lv.test(t))return`"${t}"`;t.indexOf('"')!==-1&&(t=t.replace(c0,'"'));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 cv(e){return e.replace(/\$\{1:(.*)\}/,"$1")}function fv(e){return"parent"in e}var pv=class{constructor(e){this.telemetry=e}getDefinition(e,t){try{const n=ns.getYamlDocument(e),r=e.offsetAt(t.position),i=Lu(r,n);if(i){const[s]=i.getNodeFromPosition(r,new Qs(e));if(s&&es(s)){const a=s.resolve(i.internalDocument);if(a&&a.range){const o=Rn.create(e.positionAt(a.range[0]),e.positionAt(a.range[2])),u=Rn.create(e.positionAt(a.range[0]),e.positionAt(a.range[1]));return[sc.create(e.uri,o,u)]}}}}catch(n){this.telemetry.sendError("yaml.definition.error",{error:ls(n)})}}},sf;(function(e){e[e.SchemaStore=1]="SchemaStore",e[e.SchemaAssociation=2]="SchemaAssociation",e[e.Settings=3]="Settings"})(sf||(sf={}));function dv(e,t,n,r,i,s){const a=new Ib(e,t),o=new uv(a,s,ns,r),u=new jb(a,r),l=new Ob(a,r),A=new Gb(a,r),p=new Jb,O=new Qb(s),k=new tv(a,r),re=new Yb(r),te=new pv(r);return nv(Kb,n),{configure:N=>{a.clearExternalSchemas(),N.schemas&&(a.schemaPriorityMapping=new Map,N.schemas.forEach(oe=>{const Te=oe.priority?oe.priority:0;a.addSchemaPriority(oe.uri,Te),a.registerExternalSchema(oe.uri,oe.fileMatch,oe.schema,oe.name,oe.description,oe.versions)})),A.configure(N),u.configure(N),o.configure(N),p.configure(N),O.configure(N)},registerCustomSchemaProvider:N=>{a.registerCustomSchemaProvider(N)},findLinks:re.findLinks.bind(re),doComplete:o.doComplete.bind(o),doValidation:A.doValidation.bind(A),doHover:u.doHover.bind(u),findDocumentSymbols:l.findDocumentSymbols.bind(l),findDocumentSymbols2:l.findHierarchicalDocumentSymbols.bind(l),doDefinition:te.getDefinition.bind(te),resetSchema:N=>a.onResourceChange(N),doFormat:p.format.bind(p),doDocumentOnTypeFormatting:Zb,addSchema:(N,oe)=>a.saveSchema(N,oe),deleteSchema:N=>a.deleteSchema(N),modifySchemaContent:N=>a.addContent(N),deleteSchemaContent:N=>a.deleteContent(N),deleteSchemasWhole:N=>a.deleteSchemas(N),getFoldingRanges:Hb,getCodeAction:(N,oe)=>O.getCodeAction(N,oe),getCodeLens:N=>k.getCodeLens(N),resolveCodeLens:N=>k.resolveCodeLens(N)}}var hv="yaml";async function mv(e){const t=await fetch(e);if(t.ok)return t.text();throw new Error(`Schema request failed for ${e}`)}var gv={send(){},sendError(e,t){console.error("monaco-yaml",e,t)},sendTrack(){}};ey((e,{enableSchemaRequest:t,languageSettings:n})=>{const r=dv(t?mv:null,null,null,gv);r.configure(n);const i=s=>{const a=e.getMirrorModels();for(const o of a)if(String(o.uri)===s)return ec.create(s,hv,o.version,o.getValue())};return{doValidation(s){const a=i(s);if(a)return r.doValidation(a,!!n.isKubernetes)},doComplete(s,a){const o=i(s);if(o)return r.doComplete(o,a,!!n.isKubernetes)},doDefinition(s,a){const o=i(s);if(o)return r.doDefinition(o,{position:a,textDocument:{uri:s}})},doHover(s,a){const o=i(s);if(o)return r.doHover(o,a)},format(s,a){const o=i(s);if(o)return r.doFormat(o,a)},resetSchema(s){return r.resetSchema(s)},findDocumentSymbols(s){const a=i(s);if(a)return r.findDocumentSymbols2(a,{})},findLinks(s){const a=i(s);if(a)return r.findLinks(a)},getCodeAction(s,a,o){const u=i(s);if(u)return r.getCodeAction(u,{range:a,textDocument:{uri:s},context:{diagnostics:o}})}}})})();