@ansible/ansible-ui-framework 2.4.313 → 2.4.319

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,463 +0,0 @@
1
- (function(){"use strict";function H0(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 z0{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?sa.isErrorNoTelemetry(t)?new sa(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 Q0=new z0;function tp(e){X0(e)||Q0.onUnexpectedError(e)}function np(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:sa.isErrorNoTelemetry(e)}}return e}const gl="Canceled";function X0(e){return e instanceof K0?!0:e instanceof Error&&e.name===gl&&e.message===gl}class K0 extends Error{constructor(){super(gl),this.name=this.message}}class sa extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof sa)return t;const n=new sa;return n.message=t.message,n.stack=t.stack,n}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}}class aa extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,aa.prototype)}}function Z0(e){const t=this;let n=!1,r;return function(){return n||(n=!0,r=e.apply(t,arguments)),r}}var $o;(function(e){function t(ue){return ue&&typeof ue=="object"&&typeof ue[Symbol.iterator]=="function"}e.is=t;const n=Object.freeze([]);function r(){return n}e.empty=r;function*i(ue){yield ue}e.single=i;function s(ue){return t(ue)?ue:i(ue)}e.wrap=s;function a(ue){return ue||n}e.from=a;function o(ue){return!ue||ue[Symbol.iterator]().next().done===!0}e.isEmpty=o;function u(ue){return ue[Symbol.iterator]().next().value}e.first=u;function l(ue,Te){for(const ke of ue)if(Te(ke))return!0;return!1}e.some=l;function A(ue,Te){for(const ke of ue)if(Te(ke))return ke}e.find=A;function*p(ue,Te){for(const ke of ue)Te(ke)&&(yield ke)}e.filter=p;function*O(ue,Te){let ke=0;for(const Je of ue)yield Te(Je,ke++)}e.map=O;function*B(...ue){for(const Te of ue)for(const ke of Te)yield ke}e.concat=B;function re(ue,Te,ke){let Je=ke;for(const me of ue)Je=Te(Je,me);return Je}e.reduce=re;function*te(ue,Te,ke=ue.length){for(Te<0&&(Te+=ue.length),ke<0?ke+=ue.length:ke>ue.length&&(ke=ue.length);Te<ke;Te++)yield ue[Te]}e.slice=te;function N(ue,Te=Number.POSITIVE_INFINITY){const ke=[];if(Te===0)return[ke,ue];const Je=ue[Symbol.iterator]();for(let me=0;me<Te;me++){const Le=Je.next();if(Le.done)return[ke,e.empty()];ke.push(Le.value)}return[ke,{[Symbol.iterator](){return Je}}]}e.consume=N})($o||($o={}));function RE(e){return e}function VE(e,t){}function rp(e){if($o.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 eg(...e){return Ka(()=>rp(e))}function Ka(e){return{dispose:Z0(()=>{e()})}}class Ms{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{rp(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?Ms.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}}Ms.DISABLE_DISPOSED_WARNING=!1;class Za{constructor(){this._store=new Ms,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)}}Za.None=Object.freeze({dispose(){}});class br{constructor(t){this.element=t,this.next=br.Undefined,this.prev=br.Undefined}}br.Undefined=new br(void 0);class tg{constructor(){this._first=br.Undefined,this._last=br.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===br.Undefined}clear(){let t=this._first;for(;t!==br.Undefined;){const n=t.next;t.prev=br.Undefined,t.next=br.Undefined,t=n}this._first=br.Undefined,this._last=br.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,n){const r=new br(t);if(this._first===br.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!==br.Undefined){const t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==br.Undefined){const t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==br.Undefined&&t.next!==br.Undefined){const n=t.prev;n.next=t.next,t.next.prev=n}else t.prev===br.Undefined&&t.next===br.Undefined?(this._first=br.Undefined,this._last=br.Undefined):t.next===br.Undefined?(this._last=this._last.prev,this._last.next=br.Undefined):t.prev===br.Undefined&&(this._first=this._first.next,this._first.prev=br.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==br.Undefined;)yield t.element,t=t.next}}const ng=globalThis.performance&&typeof globalThis.performance.now=="function";class Ro{static create(t){return new Ro(t)}constructor(t){this._now=ng&&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 yl;(function(e){e.None=()=>Za.None;function t(Se,we){return A(Se,()=>{},0,void 0,!0,void 0,we)}e.defer=t;function n(Se){return(we,tt=null,Ve)=>{let $t=!1,pn;return pn=Se(kn=>{if(!$t)return pn?pn.dispose():$t=!0,we.call(tt,kn)},null,Ve),$t&&pn.dispose(),pn}}e.once=n;function r(Se,we,tt){return l((Ve,$t=null,pn)=>Se(kn=>Ve.call($t,we(kn)),null,pn),tt)}e.map=r;function i(Se,we,tt){return l((Ve,$t=null,pn)=>Se(kn=>{we(kn),Ve.call($t,kn)},null,pn),tt)}e.forEach=i;function s(Se,we,tt){return l((Ve,$t=null,pn)=>Se(kn=>we(kn)&&Ve.call($t,kn),null,pn),tt)}e.filter=s;function a(Se){return Se}e.signal=a;function o(...Se){return(we,tt=null,Ve)=>eg(...Se.map($t=>$t(pn=>we.call(tt,pn),null,Ve)))}e.any=o;function u(Se,we,tt,Ve){let $t=tt;return r(Se,pn=>($t=we($t,pn),$t),Ve)}e.reduce=u;function l(Se,we){let tt;const Ve={onWillAddFirstListener(){tt=Se($t.fire,$t)},onDidRemoveLastListener(){tt==null||tt.dispose()}},$t=new zi(Ve);return we==null||we.add($t),$t.event}function A(Se,we,tt=100,Ve=!1,$t=!1,pn,kn){let Lt,Tt,Ut,en=0,Ln;const qn={leakWarningThreshold:pn,onWillAddFirstListener(){Lt=Se(Hr=>{en++,Tt=we(Tt,Hr),Ve&&!Ut&&(Pn.fire(Tt),Tt=void 0),Ln=()=>{const zr=Tt;Tt=void 0,Ut=void 0,(!Ve||en>1)&&Pn.fire(zr),en=0},typeof tt=="number"?(clearTimeout(Ut),Ut=setTimeout(Ln,tt)):Ut===void 0&&(Ut=0,queueMicrotask(Ln))})},onWillRemoveListener(){$t&&en>0&&(Ln==null||Ln())},onDidRemoveLastListener(){Ln=void 0,Lt.dispose()}},Pn=new zi(qn);return kn==null||kn.add(Pn),Pn.event}e.debounce=A;function p(Se,we=0,tt){return e.debounce(Se,(Ve,$t)=>Ve?(Ve.push($t),Ve):[$t],we,void 0,!0,void 0,tt)}e.accumulate=p;function O(Se,we=(Ve,$t)=>Ve===$t,tt){let Ve=!0,$t;return s(Se,pn=>{const kn=Ve||!we(pn,$t);return Ve=!1,$t=pn,kn},tt)}e.latch=O;function B(Se,we,tt){return[e.filter(Se,we,tt),e.filter(Se,Ve=>!we(Ve),tt)]}e.split=B;function re(Se,we=!1,tt=[]){let Ve=tt.slice(),$t=Se(Lt=>{Ve?Ve.push(Lt):kn.fire(Lt)});const pn=()=>{Ve==null||Ve.forEach(Lt=>kn.fire(Lt)),Ve=null},kn=new zi({onWillAddFirstListener(){$t||($t=Se(Lt=>kn.fire(Lt)))},onDidAddFirstListener(){Ve&&(we?setTimeout(pn):pn())},onDidRemoveLastListener(){$t&&$t.dispose(),$t=null}});return kn.event}e.buffer=re;class te{constructor(we){this.event=we,this.disposables=new Ms}map(we){return new te(r(this.event,we,this.disposables))}forEach(we){return new te(i(this.event,we,this.disposables))}filter(we){return new te(s(this.event,we,this.disposables))}reduce(we,tt){return new te(u(this.event,we,tt,this.disposables))}latch(){return new te(O(this.event,void 0,this.disposables))}debounce(we,tt=100,Ve=!1,$t=!1,pn){return new te(A(this.event,we,tt,Ve,$t,pn,this.disposables))}on(we,tt,Ve){return this.event(we,tt,Ve)}once(we,tt,Ve){return n(this.event)(we,tt,Ve)}dispose(){this.disposables.dispose()}}function N(Se){return new te(Se)}e.chain=N;function ue(Se,we,tt=Ve=>Ve){const Ve=(...Lt)=>kn.fire(tt(...Lt)),$t=()=>Se.on(we,Ve),pn=()=>Se.removeListener(we,Ve),kn=new zi({onWillAddFirstListener:$t,onDidRemoveLastListener:pn});return kn.event}e.fromNodeEventEmitter=ue;function Te(Se,we,tt=Ve=>Ve){const Ve=(...Lt)=>kn.fire(tt(...Lt)),$t=()=>Se.addEventListener(we,Ve),pn=()=>Se.removeEventListener(we,Ve),kn=new zi({onWillAddFirstListener:$t,onDidRemoveLastListener:pn});return kn.event}e.fromDOMEventEmitter=Te;function ke(Se){return new Promise(we=>n(Se)(we))}e.toPromise=ke;function Je(Se,we){return we(void 0),Se(tt=>we(tt))}e.runAndSubscribe=Je;function me(Se,we){let tt=null;function Ve(pn){tt==null||tt.dispose(),tt=new Ms,we(pn,tt)}Ve(void 0);const $t=Se(pn=>Ve(pn));return Ka(()=>{$t.dispose(),tt==null||tt.dispose()})}e.runAndSubscribeWithStore=me;class Le{constructor(we,tt){this._observable=we,this._counter=0,this._hasChanged=!1;const Ve={onWillAddFirstListener:()=>{we.addObserver(this)},onDidRemoveLastListener:()=>{we.removeObserver(this)}};this.emitter=new zi(Ve),tt&&tt.add(this.emitter)}beginUpdate(we){this._counter++}handlePossibleChange(we){}handleChange(we,tt){this._hasChanged=!0}endUpdate(we){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function ct(Se,we){return new Le(Se,we).emitter.event}e.fromObservable=ct;function xt(Se){return we=>{let tt=0,Ve=!1;const $t={beginUpdate(){tt++},endUpdate(){tt--,tt===0&&(Se.reportChanges(),Ve&&(Ve=!1,we()))},handlePossibleChange(){},handleChange(){Ve=!0}};return Se.addObserver($t),{dispose(){Se.removeObserver($t)}}}}e.fromObservableLight=xt})(yl||(yl={}));class oa{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${oa._idPool++}`,oa.all.add(this)}start(t){this._stopWatch=new Ro,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}}}oa.all=new Set,oa._idPool=0;let rg=-1;class ig{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 Dl{static create(){var t;return new Dl((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 bl{constructor(t){this.value=t}}const sg=2;class zi{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 ig((i=(r=this._options)===null||r===void 0?void 0:r.leakWarningThreshold)!==null&&i!==void 0?i:rg):void 0,this._perfMon=!((s=this._options)===null||s===void 0)&&s._profName?new oa(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`),Za.None;if(this._disposed)return Za.None;r&&(n=n.bind(r));const A=new bl(n);let p;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(A.stack=Dl.create(),p=this._leakageMon.check(A.stack,this._size+1)),this._listeners?this._listeners instanceof bl?((l=this._deliveryQueue)!==null&&l!==void 0||(this._deliveryQueue=new ag),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=Ka(()=>{p==null||p(),this._removeListener(A)});return i instanceof Ms?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*sg<=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)||tp;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 bl)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 ag{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 og(e){return typeof e=="string"}function ug(e){let t=[],n=Object.getPrototypeOf(e);for(;Object.prototype!==n;)t=t.concat(Object.getOwnPropertyNames(n)),n=Object.getPrototypeOf(n);return t}function vl(e){const t=[];for(const n of ug(e))typeof e[n]=="function"&&t.push(n);return t}function lg(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 cg=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function fg(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}),cg&&(n="["+n.replace(/[aouei]/g,"$&$&")+"]"),n}function pg(e,t,...n){return fg(t,n)}function UE(e){}var El;const ua="en";let Al=!1,Cl=!1,Sl=!1,ip=!1,Vo,xl=ua,sp=ua,dg,$i;const Ri=typeof self=="object"?self:typeof global=="object"?global:{};let Xr;typeof Ri.vscode<"u"&&typeof Ri.vscode.process<"u"?Xr=Ri.vscode.process:typeof process<"u"&&(Xr=process);const hg=typeof((El=Xr==null?void 0:Xr.versions)===null||El===void 0?void 0:El.electron)=="string"&&(Xr==null?void 0:Xr.type)==="renderer";if(typeof navigator=="object"&&!hg)$i=navigator.userAgent,Al=$i.indexOf("Windows")>=0,Cl=$i.indexOf("Macintosh")>=0,($i.indexOf("Macintosh")>=0||$i.indexOf("iPad")>=0||$i.indexOf("iPhone")>=0)&&navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Sl=$i.indexOf("Linux")>=0,($i==null?void 0:$i.indexOf("Mobi"))>=0,ip=!0,pg({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),Vo=ua,xl=Vo,sp=navigator.language;else if(typeof Xr=="object"){Al=Xr.platform==="win32",Cl=Xr.platform==="darwin",Sl=Xr.platform==="linux",Sl&&Xr.env.SNAP&&Xr.env.SNAP_REVISION,Xr.env.CI||Xr.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Vo=ua,xl=ua;const e=Xr.env.VSCODE_NLS_CONFIG;if(e)try{const t=JSON.parse(e),n=t.availableLanguages["*"];Vo=t.locale,sp=t.osLocale,xl=n||ua,dg=t._translationsConfigFile}catch{}}else console.error("Unable to resolve platform.");const eo=Al,mg=Cl;ip&&Ri.importScripts;const Qi=$i,gg=typeof Ri.postMessage=="function"&&!Ri.importScripts;(()=>{if(gg){const e=[];Ri.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}),Ri.postMessage({vscodeScheduleAsyncWork:r},"*")}}return e=>setTimeout(e)})();const yg=!!(Qi&&Qi.indexOf("Chrome")>=0);Qi&&Qi.indexOf("Firefox")>=0,!yg&&Qi&&Qi.indexOf("Safari")>=0,Qi&&Qi.indexOf("Edg/")>=0,Qi&&Qi.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 ap{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 op;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 up(e){return e>=65&&e<=90}function wl(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(wl(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 Fi{static getInstance(t){return Fi.cache.get(Array.from(t))}static getLocales(){return Fi._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())}}op=Fi,Fi.ambiguousCharacterData=new ap(()=>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]}')),Fi.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,B]of A)p.set(O,B);return p}function r(l,A){if(!l)return A;const p=new Map;for(const[O,B]of l)A.has(O)&&p.set(O,B);return p}const i=op.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 Fi(u)}),Fi._locales=new ap(()=>Object.keys(Fi.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));class ms{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(ms.getRawData())),this._data}static isInvisibleCharacter(t){return ms.getData().has(t)}static get codePoints(){return ms.getData()}}ms._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 lp{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 zi({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 lp(this._workerId,n,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=np(i.detail)),this._send(new lp(this._workerId,n,void 0,np(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 cp(e){return e[0]==="o"&&e[1]==="n"&&up(e.charCodeAt(2))}function fp(e){return/^onDynamic/.test(e)&&up(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(fp(a)){s[a]=i(a);continue}if(cp(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(fp(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(cp(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(vl(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(vl(this._requestHandler))},l)}))}}class gs{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 pp(e,t){return(t<<5)-t+e|0}function Ig(e,t){t=pp(149417,t);for(let n=0,r=e.length;n<r;n++)t=pp(e.charCodeAt(n),t);return t}class dp{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 ys(new dp(e),new dp(t)).ComputeDiff(n).changes}class la{static Assert(t,n){if(!t)throw new Error(n)}}class ca{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 hp{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 gs(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 ys{constructor(t,n,r=null){this.ContinueProcessingPredicate=r,this._originalSequence=t,this._modifiedSequence=n;const[i,s,a]=ys._getElements(t),[o,u,l]=ys._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(ys._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=ys._getStrictElement(this._originalSequence,t),i=ys._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?(la.Assert(t===n+1,"originalStart should only be one more than originalEnd"),p=[new gs(t,0,r,i-r+1)]):t<=n?(la.Assert(r===i+1,"modifiedStart should only be one more than modifiedEnd"),p=[new gs(t,n-t+1,r,0)]):(la.Assert(t===n+1,"originalStart should only be one more than originalEnd"),la.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 gs(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 gs(t,n-t+1,r,i-r+1)]}WALKTRACE(t,n,r,i,s,a,o,u,l,A,p,O,B,re,te,N,ue,Te){let ke=null,Je=null,me=new hp,Le=n,ct=r,xt=B[0]-N[0]-i,Se=-1073741824,we=this.m_forwardHistory.length-1;do{const tt=xt+t;tt===Le||tt<ct&&l[tt-1]<l[tt+1]?(p=l[tt+1],re=p-xt-i,p<Se&&me.MarkNextChange(),Se=p,me.AddModifiedElement(p+1,re),xt=tt+1-t):(p=l[tt-1]+1,re=p-xt-i,p<Se&&me.MarkNextChange(),Se=p-1,me.AddOriginalElement(p,re+1),xt=tt-1-t),we>=0&&(l=this.m_forwardHistory[we],t=l[0],Le=1,ct=l.length-1)}while(--we>=-1);if(ke=me.getReverseChanges(),Te[0]){let tt=B[0]+1,Ve=N[0]+1;if(ke!==null&&ke.length>0){const $t=ke[ke.length-1];tt=Math.max(tt,$t.getOriginalEnd()),Ve=Math.max(Ve,$t.getModifiedEnd())}Je=[new gs(tt,O-tt+1,Ve,te-Ve+1)]}else{me=new hp,Le=a,ct=o,xt=B[0]-N[0]-u,Se=1073741824,we=ue?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const tt=xt+s;tt===Le||tt<ct&&A[tt-1]>=A[tt+1]?(p=A[tt+1]-1,re=p-xt-u,p>Se&&me.MarkNextChange(),Se=p+1,me.AddOriginalElement(p+1,re+1),xt=tt+1-s):(p=A[tt-1],re=p-xt-u,p>Se&&me.MarkNextChange(),Se=p,me.AddModifiedElement(p+1,re+1),xt=tt-1-s),we>=0&&(A=this.m_reverseHistory[we],s=A[0],Le=1,ct=A.length-1)}while(--we>=-1);Je=me.getChanges()}return this.ConcatenateChanges(ke,Je)}ComputeRecursionPoint(t,n,r,i,s,a,o){let u=0,l=0,A=0,p=0,O=0,B=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),ue=new Int32Array(te),Te=i-r,ke=n-t,Je=t-r,me=n-i,ct=(ke-Te)%2===0;N[Te]=t,ue[ke]=n,o[0]=!1;for(let xt=1;xt<=re/2+1;xt++){let Se=0,we=0;A=this.ClipDiagonalBound(Te-xt,xt,Te,te),p=this.ClipDiagonalBound(Te+xt,xt,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)-Je;const $t=u;for(;u<n&&l<i&&this.ElementsAreEqual(u+1,l+1);)u++,l++;if(N[Ve]=u,u+l>Se+we&&(Se=u,we=l),!ct&&Math.abs(Ve-ke)<=xt-1&&u>=ue[Ve])return s[0]=u,a[0]=l,$t<=ue[Ve]&&1447>0&&xt<=1447+1?this.WALKTRACE(Te,A,p,Je,ke,O,B,me,N,ue,u,n,s,l,i,a,ct,o):null}const tt=(Se-t+(we-r)-xt)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(Se,tt))return o[0]=!0,s[0]=Se,a[0]=we,tt>0&&1447>0&&xt<=1447+1?this.WALKTRACE(Te,A,p,Je,ke,O,B,me,N,ue,u,n,s,l,i,a,ct,o):(t++,r++,[new gs(t,n-t+1,r,i-r+1)]);O=this.ClipDiagonalBound(ke-xt,xt,ke,te),B=this.ClipDiagonalBound(ke+xt,xt,ke,te);for(let Ve=O;Ve<=B;Ve+=2){Ve===O||Ve<B&&ue[Ve-1]>=ue[Ve+1]?u=ue[Ve+1]-1:u=ue[Ve-1],l=u-(Ve-ke)-me;const $t=u;for(;u>t&&l>r&&this.ElementsAreEqual(u,l);)u--,l--;if(ue[Ve]=u,ct&&Math.abs(Ve-Te)<=xt&&u<=N[Ve])return s[0]=u,a[0]=l,$t>=N[Ve]&&1447>0&&xt<=1447+1?this.WALKTRACE(Te,A,p,Je,ke,O,B,me,N,ue,u,n,s,l,i,a,ct,o):null}if(xt<=1447){let Ve=new Int32Array(p-A+2);Ve[0]=Te-A+1,ca.Copy2(N,A,Ve,1,p-A+1),this.m_forwardHistory.push(Ve),Ve=new Int32Array(B-O+2),Ve[0]=ke-O+1,ca.Copy2(ue,O,Ve,1,B-O+1),this.m_reverseHistory.push(Ve)}}return this.WALKTRACE(Te,A,p,Je,ke,O,B,me,N,ue,u,n,s,l,i,a,ct,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,B=r.modifiedStart-p;if(O<i||B<s||a&&!this.OriginalElementsAreEqual(O,O+r.originalLength)||o&&!this.ModifiedElementsAreEqual(B,B+r.modifiedLength))break;const te=(O===i&&B===s?5:0)+this._boundaryScore(O,r.originalLength,B,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 B=this._findBetterContiguousSequence(o,l,A,O,a);if(B){const[re,te]=B;(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 B=this._contiguousSequenceScore(p,O,s);B>0&&B>u&&(u=B,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 ca.Copy(t,0,i,0,t.length-1),i[t.length-1]=r[0],ca.Copy(n,1,i,t.length,n.length-1),i}else{const i=new Array(t.length+n.length);return ca.Copy(t,0,i,0,t.length),ca.Copy(n,0,i,t.length,n.length),i}}ChangesOverlap(t,n,r){if(la.Assert(t.originalStart<=n.originalStart,"Left change is not less than or equal to right change"),la.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 gs(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 fa;if(typeof Ri.vscode<"u"&&typeof Ri.vscode.process<"u"){const e=Ri.vscode.process;fa={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"?fa={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:fa={get platform(){return eo?"win32":mg?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const Uo=fa.cwd,jg=fa.env,$g=fa.platform,Rg=65,Vg=97,Ug=90,qg=122,Ds=46,Gr=47,fi=92,bs=58,Wg=63;class mp 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 mp(t,"Object",e)}function Tr(e,t){if(typeof e!="string")throw new mp(t,"string",e)}const vs=$g==="win32";function Xn(e){return e===Gr||e===fi}function Fl(e){return e===Gr}function Es(e){return e>=Rg&&e<=Ug||e>=Vg&&e<=qg}function qo(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=Gr}if(r(u)){if(!(a===l-1||o===1))if(o===2){if(i.length<2||s!==2||i.charCodeAt(i.length-1)!==Ds||i.charCodeAt(i.length-2)!==Ds){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===Ds&&o!==-1?++o:o=-1}return i}function gp(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 si={resolve(...e){let t="",n="",r=!1;for(let i=e.length-1;i>=-1;i--){let s;if(i>=0){if(s=e[i],Tr(s,"path"),s.length===0)continue}else t.length===0?s=Uo():(s=jg[`=${t}`]||Uo(),(s===void 0||s.slice(0,2).toLowerCase()!==t.toLowerCase()&&s.charCodeAt(2)===fi)&&(s=`${t}\\`));const a=s.length;let o=0,u="",l=!1;const 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 B=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=`\\\\${B}\\${s.slice(O,p)}`,o=p)}}}else o=1;else Es(A)&&s.charCodeAt(1)===bs&&(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=qo(n,!r,"\\",Xn),r?`${t}\\${n}`:`${t}${n}`||"."},normalize(e){Tr(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 Fl(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 Es(s)&&e.charCodeAt(1)===bs&&(r=e.slice(0,2),n=2,t>2&&Xn(e.charCodeAt(2))&&(i=!0,n=3));let a=n<t?qo(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){Tr(e,"path");const t=e.length;if(t===0)return!1;const n=e.charCodeAt(0);return Xn(n)||t>2&&Es(n)&&e.charCodeAt(1)===bs&&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];Tr(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 si.normalize(t)},relative(e,t){if(Tr(e,"from"),Tr(t,"to"),e===t)return"";const n=si.resolve(e),r=si.resolve(t);if(n===r||(e=n.toLowerCase(),t=r.toLowerCase(),e===t))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===fi;)i++;let s=e.length;for(;s-1>i&&e.charCodeAt(s-1)===fi;)s--;const a=s-i;let o=0;for(;o<t.length&&t.charCodeAt(o)===fi;)o++;let u=t.length;for(;u-1>o&&t.charCodeAt(u-1)===fi;)u--;const l=u-o,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===fi&&(p=O)}if(O!==A){if(p===-1)return r}else{if(l>A){if(t.charCodeAt(o+O)===fi)return r.slice(o+O+1);if(O===2)return r.slice(o+O)}a>A&&(e.charCodeAt(i+O)===fi?p=O:O===2&&(p=3)),p===-1&&(p=0)}let B="";for(O=i+p+1;O<=s;++O)(O===s||e.charCodeAt(O)===fi)&&(B+=B.length===0?"..":"\\..");return o+=p,B.length>0?`${B}${r.slice(o,u)}`:(r.charCodeAt(o)===fi&&++o,r.slice(o,u))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;const t=si.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===fi){if(t.charCodeAt(1)===fi){const n=t.charCodeAt(2);if(n!==Wg&&n!==Ds)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(Es(t.charCodeAt(0))&&t.charCodeAt(1)===bs&&t.charCodeAt(2)===fi)return`\\\\?\\${t}`;return e},dirname(e){Tr(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 Es(i)&&e.charCodeAt(1)===bs&&(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&&Tr(t,"ext"),Tr(e,"path");let n=0,r=-1,i=!0,s;if(e.length>=2&&Es(e.charCodeAt(0))&&e.charCodeAt(1)===bs&&(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){Tr(e,"path");let t=0,n=-1,r=0,i=-1,s=!0,a=0;e.length>=2&&e.charCodeAt(1)===bs&&Es(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===Ds?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:gp.bind(null,"\\"),parse(e){Tr(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(Es(i)&&e.charCodeAt(1)===bs){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===Ds?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(vs){const e=/\\/g;return()=>{const t=Uo().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>Uo()})(),pi={resolve(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:Jg();Tr(i,"path"),i.length!==0&&(t=`${i}/${t}`,n=i.charCodeAt(0)===Gr)}return t=qo(t,!n,"/",Fl),n?`/${t}`:t.length>0?t:"."},normalize(e){if(Tr(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Gr,n=e.charCodeAt(e.length-1)===Gr;return e=qo(e,!t,"/",Fl),e.length===0?t?"/":n?"./":".":(n&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return Tr(e,"path"),e.length>0&&e.charCodeAt(0)===Gr},join(...e){if(e.length===0)return".";let t;for(let n=0;n<e.length;++n){const r=e[n];Tr(r,"path"),r.length>0&&(t===void 0?t=r:t+=`/${r}`)}return t===void 0?".":pi.normalize(t)},relative(e,t){if(Tr(e,"from"),Tr(t,"to"),e===t||(e=pi.resolve(e),t=pi.resolve(t),e===t))return"";const n=1,r=e.length,i=r-n,s=1,a=t.length-s,o=i<a?i:a;let u=-1,l=0;for(;l<o;l++){const p=e.charCodeAt(n+l);if(p!==t.charCodeAt(s+l))break;p===Gr&&(u=l)}if(l===o)if(a>o){if(t.charCodeAt(s+l)===Gr)return t.slice(s+l+1);if(l===0)return t.slice(s+l)}else i>o&&(e.charCodeAt(n+l)===Gr?u=l:l===0&&(u=0));let A="";for(l=n+u+1;l<=r;++l)(l===r||e.charCodeAt(l)===Gr)&&(A+=A.length===0?"..":"/..");return`${A}${t.slice(s+u)}`},toNamespacedPath(e){return e},dirname(e){if(Tr(e,"path"),e.length===0)return".";const t=e.charCodeAt(0)===Gr;let n=-1,r=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===Gr){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&&Tr(t,"ext"),Tr(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===Gr){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)===Gr){if(!i){n=s+1;break}}else r===-1&&(i=!1,r=s+1);return r===-1?"":e.slice(n,r)},extname(e){Tr(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===Gr){if(!i){n=a+1;break}continue}r===-1&&(i=!1,r=a+1),o===Ds?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:gp.bind(null,"/"),parse(e){Tr(e,"path");const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;const n=e.charCodeAt(0)===Gr;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===Gr){if(!o){s=u+1;break}continue}a===-1&&(o=!1,a=u+1),A===Ds?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};pi.win32=si.win32=si,pi.posix=si.posix=pi,vs?si.normalize:pi.normalize,vs?si.resolve:pi.resolve,vs?si.relative:pi.relative,vs?si.dirname:pi.dirname,vs?si.basename:pi.basename,vs?si.extname:pi.extname,vs?si.sep:pi.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]!==Vi&&(t=Vi+t):t=Vi;break}return t}const Er="",Vi="/",Zg=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;let Nl=class ml{static isUri(t){return t instanceof ml?!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||Er,this.authority=t.authority||Er,this.path=t.path||Er,this.query=t.query||Er,this.fragment=t.fragment||Er):(this.scheme=Xg(t,a),this.authority=n||Er,this.path=Kg(this.scheme,r||Er),this.query=i||Er,this.fragment=s||Er,Qg(this,a))}get fsPath(){return _l(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=Er),r===void 0?r=this.authority:r===null&&(r=Er),i===void 0?i=this.path:i===null&&(i=Er),s===void 0?s=this.query:s===null&&(s=Er),a===void 0?a=this.fragment:a===null&&(a=Er),n===this.scheme&&r===this.authority&&i===this.path&&s===this.query&&a===this.fragment?this:new pa(n,r,i,s,a)}static parse(t,n=!1){const r=Zg.exec(t);return r?new pa(r[2]||Er,Wo(r[4]||Er),Wo(r[5]||Er),Wo(r[7]||Er),Wo(r[9]||Er),n):new pa(Er,Er,Er,Er,Er)}static file(t){let n=Er;if(eo&&(t=t.replace(/\\/g,Vi)),t[0]===Vi&&t[1]===Vi){const r=t.indexOf(Vi,2);r===-1?(n=t.substring(2),t=Vi):(n=t.substring(2,r),t=t.substring(r)||Vi)}return new pa("file",n,t,Er,Er)}static from(t,n){return new pa(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 eo&&t.scheme==="file"?r=ml.file(si.join(_l(t,!0),...n)).path:r=pi.join(t.path,...n),t.with({path:r})}toString(t=!1){return Tl(this,t)}toJSON(){return this}static revive(t){var n,r;if(t){if(t instanceof ml)return t;{const i=new pa(t);return i._formatted=(n=t.external)!==null&&n!==void 0?n:null,i._fsPath=t._sep===yp&&(r=t.fsPath)!==null&&r!==void 0?r:null,i}}else return t}};const yp=eo?1:void 0;class pa extends Nl{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=_l(this,!1)),this._fsPath}toString(t=!1){return t?Tl(this,!0):(this._formatted||(this._formatted=Tl(this,!1)),this._formatted)}toJSON(){const t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=yp),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 Dp={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 bp(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=Dp[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+=Dp[r]):t!==void 0&&(t+=e[n])}return t!==void 0?t:e}function _l(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,eo&&(n=n.replace(/\//g,"\\")),n}function Tl(e,t){const n=t?e1:bp;let r="",{scheme:i,authority:s,path:a,query:o,fragment:u}=e;if(i&&(r+=i,r+=":"),(s||i==="file")&&(r+=Vi,r+=Vi),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:bp(u,!1,!1)),r}function vp(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+vp(e.substr(3)):e}}const Ep=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function Wo(e){return e.match(Ep)?e.replace(Ep,t=>vp(t)):e}let Xi=class ia{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 ia(t,n)}delta(t=0,n=0){return this.with(this.lineNumber+t,this.column+n)}equals(t){return ia.equals(this,t)}static equals(t,n){return!t&&!n?!0:!!t&&!!n&&t.lineNumber===n.lineNumber&&t.column===n.column}isBefore(t){return ia.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 ia.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 ia(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new ia(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}},Ni=class Or{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 Or.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return Or.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 Or.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 Or.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 Or.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 Or(r,i,s,a)}intersectRanges(t){return Or.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 Or(r,i,s,a)}equalsRange(t){return Or.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 Or.getEndPosition(this)}static getEndPosition(t){return new Xi(t.endLineNumber,t.endColumn)}getStartPosition(){return Or.getStartPosition(this)}static getStartPosition(t){return new Xi(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,n){return new Or(this.startLineNumber,this.startColumn,t,n)}setStartPosition(t,n){return new Or(t,n,this.endLineNumber,this.endColumn)}collapseToStart(){return Or.collapseToStart(this)}static collapseToStart(t){return new Or(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return Or.collapseToEnd(this)}static collapseToEnd(t){return new Or(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new Or(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,n=t){return new Or(t.lineNumber,t.column,n.lineNumber,n.column)}static lift(t){return t?new Or(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 Ap;(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})(Ap||(Ap={}));function Cp(e){return e<0?0:e>255?255:e|0}function da(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=da(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=da(t),n=da(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=da(t),n=da(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=da(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 Xi(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 Sp=s1();function a1(e){let t=Sp;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 xp=new tg;xp.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function kl(e,t,n,r,i){if(i||(i=$o.first(xp)),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),kl(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 Ll{constructor(t){const n=Cp(t);this._defaultValue=n,this._asciiMap=Ll._createAsciiMap(n),this._map=new Map}static _createAsciiMap(t){const n=new Uint8Array(256);return n.fill(t),n}set(t,n){const r=Cp(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 Pl=null;function c1(){return Pl===null&&(Pl=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]])),Pl}let to=null;function f1(){if(to===null){to=new Ll(0);const e=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let n=0;n<e.length;n++)to.set(e.charCodeAt(n),1);const t=".,;:";for(let n=0;n<t.length;n++)to.set(t.charCodeAt(n),2)}return to}class Go{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,B=!1,re=!1,te=!1,N=!1;for(;l<u;){let ue=!1;const Te=o.charCodeAt(l);if(O===13){let ke;switch(Te){case 40:B=!0,ke=0;break;case 41:ke=B?0:1;break;case 91:te=!0,re=!0,ke=0;break;case 93:te=!1,ke=re?0:1;break;case 123:N=!0,ke=0;break;case 125:ke=N?0:1;break;case 39:case 34:case 96:p===Te?ke=1:p===39||p===34||p===96?ke=0:ke=1;break;case 42:ke=p===42?1:0;break;case 124:ke=p===124?1:0;break;case 32:ke=te?0:1;break;default:ke=r.get(Te)}ke===1&&(i.push(Go._createLink(r,o,s,A,l)),ue=!0)}else if(O===12){let ke;Te===91?(re=!0,ke=0):ke=r.get(Te),ke===1?ue=!0:O=13}else O=n.nextState(O,Te),O===0&&(ue=!0);ue&&(O=1,B=!1,re=!1,N=!1,A=l+1,p=Te),l++}O===13&&i.push(Go._createLink(r,o,s,A,u))}return i}}function p1(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:Go.computeLinks(e)}class Bl{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}}Bl.INSTANCE=new Bl;const wp=Object.freeze(function(e,t){const n=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(n)}}});var Jo;(function(e){function t(n){return n===e.None||n===e.Cancelled||n instanceof Yo?!0:!n||typeof n!="object"?!1:typeof n.isCancellationRequested=="boolean"&&typeof n.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:yl.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:wp})})(Jo||(Jo={}));class Yo{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?wp:(this._emitter||(this._emitter=new zi),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 Yo),this._token}cancel(){this._token?this._token instanceof Yo&&this._token.cancel():this._token=Jo.Cancelled}dispose(t=!1){var n;t&&this.cancel(),(n=this._parentListener)===null||n===void 0||n.dispose(),this._token?this._token instanceof Yo&&this._token.dispose():this._token=Jo.None}}class Ml{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 Ho=new Ml,Il=new Ml,Ol=new Ml,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,B]=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}`);Ho.define(u,l),Il.define(u,O||l),Ol.define(u,B||O||l)}A&&(h1[A]=u)}})();var Fp;(function(e){function t(o){return Ho.keyCodeToStr(o)}e.toString=t;function n(o){return Ho.strToKeyCode(o)}e.fromString=n;function r(o){return Il.keyCodeToStr(o)}e.toUserSettingsUS=r;function i(o){return Ol.keyCodeToStr(o)}e.toUserSettingsGeneral=i;function s(o){return Il.strToKeyCode(o)||Ol.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 Ho.keyCodeToStr(o)}e.toElectronAccelerator=a})(Fp||(Fp={}));function y1(e,t){const n=(t&65535)<<16>>>0;return(e|n)>>>0}class vi extends Ni{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 vi.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 vi(this.startLineNumber,this.startColumn,t,n):new vi(t,n,this.startLineNumber,this.startColumn)}getPosition(){return new Xi(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Xi(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,n){return this.getDirection()===0?new vi(t,n,this.endLineNumber,this.endColumn):new vi(this.endLineNumber,this.endColumn,t,n)}static fromPositions(t,n=t){return new vi(t.lineNumber,t.column,n.lineNumber,n.column)}static fromRange(t,n){return n===0?new vi(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new vi(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new vi(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 vi(t,n,r,i):new vi(r,i,t,n)}}const Np=Object.create(null);function P(e,t){if(og(t)){const n=Np[t];if(n===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=n}return Np[e]=t,{id:e}}const Nn={add:P("add",6e4),plus:P("plus",6e4),gistNew:P("gist-new",6e4),repoCreate:P("repo-create",6e4),lightbulb:P("lightbulb",60001),lightBulb:P("light-bulb",60001),repo:P("repo",60002),repoDelete:P("repo-delete",60002),gistFork:P("gist-fork",60003),repoForked:P("repo-forked",60003),gitPullRequest:P("git-pull-request",60004),gitPullRequestAbandoned:P("git-pull-request-abandoned",60004),recordKeys:P("record-keys",60005),keyboard:P("keyboard",60005),tag:P("tag",60006),tagAdd:P("tag-add",60006),tagRemove:P("tag-remove",60006),person:P("person",60007),personFollow:P("person-follow",60007),personOutline:P("person-outline",60007),personFilled:P("person-filled",60007),gitBranch:P("git-branch",60008),gitBranchCreate:P("git-branch-create",60008),gitBranchDelete:P("git-branch-delete",60008),sourceControl:P("source-control",60008),mirror:P("mirror",60009),mirrorPublic:P("mirror-public",60009),star:P("star",60010),starAdd:P("star-add",60010),starDelete:P("star-delete",60010),starEmpty:P("star-empty",60010),comment:P("comment",60011),commentAdd:P("comment-add",60011),alert:P("alert",60012),warning:P("warning",60012),search:P("search",60013),searchSave:P("search-save",60013),logOut:P("log-out",60014),signOut:P("sign-out",60014),logIn:P("log-in",60015),signIn:P("sign-in",60015),eye:P("eye",60016),eyeUnwatch:P("eye-unwatch",60016),eyeWatch:P("eye-watch",60016),circleFilled:P("circle-filled",60017),primitiveDot:P("primitive-dot",60017),closeDirty:P("close-dirty",60017),debugBreakpoint:P("debug-breakpoint",60017),debugBreakpointDisabled:P("debug-breakpoint-disabled",60017),debugHint:P("debug-hint",60017),primitiveSquare:P("primitive-square",60018),edit:P("edit",60019),pencil:P("pencil",60019),info:P("info",60020),issueOpened:P("issue-opened",60020),gistPrivate:P("gist-private",60021),gitForkPrivate:P("git-fork-private",60021),lock:P("lock",60021),mirrorPrivate:P("mirror-private",60021),close:P("close",60022),removeClose:P("remove-close",60022),x:P("x",60022),repoSync:P("repo-sync",60023),sync:P("sync",60023),clone:P("clone",60024),desktopDownload:P("desktop-download",60024),beaker:P("beaker",60025),microscope:P("microscope",60025),vm:P("vm",60026),deviceDesktop:P("device-desktop",60026),file:P("file",60027),fileText:P("file-text",60027),more:P("more",60028),ellipsis:P("ellipsis",60028),kebabHorizontal:P("kebab-horizontal",60028),mailReply:P("mail-reply",60029),reply:P("reply",60029),organization:P("organization",60030),organizationFilled:P("organization-filled",60030),organizationOutline:P("organization-outline",60030),newFile:P("new-file",60031),fileAdd:P("file-add",60031),newFolder:P("new-folder",60032),fileDirectoryCreate:P("file-directory-create",60032),trash:P("trash",60033),trashcan:P("trashcan",60033),history:P("history",60034),clock:P("clock",60034),folder:P("folder",60035),fileDirectory:P("file-directory",60035),symbolFolder:P("symbol-folder",60035),logoGithub:P("logo-github",60036),markGithub:P("mark-github",60036),github:P("github",60036),terminal:P("terminal",60037),console:P("console",60037),repl:P("repl",60037),zap:P("zap",60038),symbolEvent:P("symbol-event",60038),error:P("error",60039),stop:P("stop",60039),variable:P("variable",60040),symbolVariable:P("symbol-variable",60040),array:P("array",60042),symbolArray:P("symbol-array",60042),symbolModule:P("symbol-module",60043),symbolPackage:P("symbol-package",60043),symbolNamespace:P("symbol-namespace",60043),symbolObject:P("symbol-object",60043),symbolMethod:P("symbol-method",60044),symbolFunction:P("symbol-function",60044),symbolConstructor:P("symbol-constructor",60044),symbolBoolean:P("symbol-boolean",60047),symbolNull:P("symbol-null",60047),symbolNumeric:P("symbol-numeric",60048),symbolNumber:P("symbol-number",60048),symbolStructure:P("symbol-structure",60049),symbolStruct:P("symbol-struct",60049),symbolParameter:P("symbol-parameter",60050),symbolTypeParameter:P("symbol-type-parameter",60050),symbolKey:P("symbol-key",60051),symbolText:P("symbol-text",60051),symbolReference:P("symbol-reference",60052),goToFile:P("go-to-file",60052),symbolEnum:P("symbol-enum",60053),symbolValue:P("symbol-value",60053),symbolRuler:P("symbol-ruler",60054),symbolUnit:P("symbol-unit",60054),activateBreakpoints:P("activate-breakpoints",60055),archive:P("archive",60056),arrowBoth:P("arrow-both",60057),arrowDown:P("arrow-down",60058),arrowLeft:P("arrow-left",60059),arrowRight:P("arrow-right",60060),arrowSmallDown:P("arrow-small-down",60061),arrowSmallLeft:P("arrow-small-left",60062),arrowSmallRight:P("arrow-small-right",60063),arrowSmallUp:P("arrow-small-up",60064),arrowUp:P("arrow-up",60065),bell:P("bell",60066),bold:P("bold",60067),book:P("book",60068),bookmark:P("bookmark",60069),debugBreakpointConditionalUnverified:P("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:P("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:P("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:P("debug-breakpoint-data-unverified",60072),debugBreakpointData:P("debug-breakpoint-data",60073),debugBreakpointDataDisabled:P("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:P("debug-breakpoint-log-unverified",60074),debugBreakpointLog:P("debug-breakpoint-log",60075),debugBreakpointLogDisabled:P("debug-breakpoint-log-disabled",60075),briefcase:P("briefcase",60076),broadcast:P("broadcast",60077),browser:P("browser",60078),bug:P("bug",60079),calendar:P("calendar",60080),caseSensitive:P("case-sensitive",60081),check:P("check",60082),checklist:P("checklist",60083),chevronDown:P("chevron-down",60084),dropDownButton:P("drop-down-button",60084),chevronLeft:P("chevron-left",60085),chevronRight:P("chevron-right",60086),chevronUp:P("chevron-up",60087),chromeClose:P("chrome-close",60088),chromeMaximize:P("chrome-maximize",60089),chromeMinimize:P("chrome-minimize",60090),chromeRestore:P("chrome-restore",60091),circle:P("circle",60092),circleOutline:P("circle-outline",60092),debugBreakpointUnverified:P("debug-breakpoint-unverified",60092),circleSlash:P("circle-slash",60093),circuitBoard:P("circuit-board",60094),clearAll:P("clear-all",60095),clippy:P("clippy",60096),closeAll:P("close-all",60097),cloudDownload:P("cloud-download",60098),cloudUpload:P("cloud-upload",60099),code:P("code",60100),collapseAll:P("collapse-all",60101),colorMode:P("color-mode",60102),commentDiscussion:P("comment-discussion",60103),compareChanges:P("compare-changes",60157),creditCard:P("credit-card",60105),dash:P("dash",60108),dashboard:P("dashboard",60109),database:P("database",60110),debugContinue:P("debug-continue",60111),debugDisconnect:P("debug-disconnect",60112),debugPause:P("debug-pause",60113),debugRestart:P("debug-restart",60114),debugStart:P("debug-start",60115),debugStepInto:P("debug-step-into",60116),debugStepOut:P("debug-step-out",60117),debugStepOver:P("debug-step-over",60118),debugStop:P("debug-stop",60119),debug:P("debug",60120),deviceCameraVideo:P("device-camera-video",60121),deviceCamera:P("device-camera",60122),deviceMobile:P("device-mobile",60123),diffAdded:P("diff-added",60124),diffIgnored:P("diff-ignored",60125),diffModified:P("diff-modified",60126),diffRemoved:P("diff-removed",60127),diffRenamed:P("diff-renamed",60128),diff:P("diff",60129),discard:P("discard",60130),editorLayout:P("editor-layout",60131),emptyWindow:P("empty-window",60132),exclude:P("exclude",60133),extensions:P("extensions",60134),eyeClosed:P("eye-closed",60135),fileBinary:P("file-binary",60136),fileCode:P("file-code",60137),fileMedia:P("file-media",60138),filePdf:P("file-pdf",60139),fileSubmodule:P("file-submodule",60140),fileSymlinkDirectory:P("file-symlink-directory",60141),fileSymlinkFile:P("file-symlink-file",60142),fileZip:P("file-zip",60143),files:P("files",60144),filter:P("filter",60145),flame:P("flame",60146),foldDown:P("fold-down",60147),foldUp:P("fold-up",60148),fold:P("fold",60149),folderActive:P("folder-active",60150),folderOpened:P("folder-opened",60151),gear:P("gear",60152),gift:P("gift",60153),gistSecret:P("gist-secret",60154),gist:P("gist",60155),gitCommit:P("git-commit",60156),gitCompare:P("git-compare",60157),gitMerge:P("git-merge",60158),githubAction:P("github-action",60159),githubAlt:P("github-alt",60160),globe:P("globe",60161),grabber:P("grabber",60162),graph:P("graph",60163),gripper:P("gripper",60164),heart:P("heart",60165),home:P("home",60166),horizontalRule:P("horizontal-rule",60167),hubot:P("hubot",60168),inbox:P("inbox",60169),issueClosed:P("issue-closed",60324),issueReopened:P("issue-reopened",60171),issues:P("issues",60172),italic:P("italic",60173),jersey:P("jersey",60174),json:P("json",60175),bracket:P("bracket",60175),kebabVertical:P("kebab-vertical",60176),key:P("key",60177),law:P("law",60178),lightbulbAutofix:P("lightbulb-autofix",60179),linkExternal:P("link-external",60180),link:P("link",60181),listOrdered:P("list-ordered",60182),listUnordered:P("list-unordered",60183),liveShare:P("live-share",60184),loading:P("loading",60185),location:P("location",60186),mailRead:P("mail-read",60187),mail:P("mail",60188),markdown:P("markdown",60189),megaphone:P("megaphone",60190),mention:P("mention",60191),milestone:P("milestone",60192),mortarBoard:P("mortar-board",60193),move:P("move",60194),multipleWindows:P("multiple-windows",60195),mute:P("mute",60196),noNewline:P("no-newline",60197),note:P("note",60198),octoface:P("octoface",60199),openPreview:P("open-preview",60200),package_:P("package",60201),paintcan:P("paintcan",60202),pin:P("pin",60203),play:P("play",60204),run:P("run",60204),plug:P("plug",60205),preserveCase:P("preserve-case",60206),preview:P("preview",60207),project:P("project",60208),pulse:P("pulse",60209),question:P("question",60210),quote:P("quote",60211),radioTower:P("radio-tower",60212),reactions:P("reactions",60213),references:P("references",60214),refresh:P("refresh",60215),regex:P("regex",60216),remoteExplorer:P("remote-explorer",60217),remote:P("remote",60218),remove:P("remove",60219),replaceAll:P("replace-all",60220),replace:P("replace",60221),repoClone:P("repo-clone",60222),repoForcePush:P("repo-force-push",60223),repoPull:P("repo-pull",60224),repoPush:P("repo-push",60225),report:P("report",60226),requestChanges:P("request-changes",60227),rocket:P("rocket",60228),rootFolderOpened:P("root-folder-opened",60229),rootFolder:P("root-folder",60230),rss:P("rss",60231),ruby:P("ruby",60232),saveAll:P("save-all",60233),saveAs:P("save-as",60234),save:P("save",60235),screenFull:P("screen-full",60236),screenNormal:P("screen-normal",60237),searchStop:P("search-stop",60238),server:P("server",60240),settingsGear:P("settings-gear",60241),settings:P("settings",60242),shield:P("shield",60243),smiley:P("smiley",60244),sortPrecedence:P("sort-precedence",60245),splitHorizontal:P("split-horizontal",60246),splitVertical:P("split-vertical",60247),squirrel:P("squirrel",60248),starFull:P("star-full",60249),starHalf:P("star-half",60250),symbolClass:P("symbol-class",60251),symbolColor:P("symbol-color",60252),symbolCustomColor:P("symbol-customcolor",60252),symbolConstant:P("symbol-constant",60253),symbolEnumMember:P("symbol-enum-member",60254),symbolField:P("symbol-field",60255),symbolFile:P("symbol-file",60256),symbolInterface:P("symbol-interface",60257),symbolKeyword:P("symbol-keyword",60258),symbolMisc:P("symbol-misc",60259),symbolOperator:P("symbol-operator",60260),symbolProperty:P("symbol-property",60261),wrench:P("wrench",60261),wrenchSubaction:P("wrench-subaction",60261),symbolSnippet:P("symbol-snippet",60262),tasklist:P("tasklist",60263),telescope:P("telescope",60264),textSize:P("text-size",60265),threeBars:P("three-bars",60266),thumbsdown:P("thumbsdown",60267),thumbsup:P("thumbsup",60268),tools:P("tools",60269),triangleDown:P("triangle-down",60270),triangleLeft:P("triangle-left",60271),triangleRight:P("triangle-right",60272),triangleUp:P("triangle-up",60273),twitter:P("twitter",60274),unfold:P("unfold",60275),unlock:P("unlock",60276),unmute:P("unmute",60277),unverified:P("unverified",60278),verified:P("verified",60279),versions:P("versions",60280),vmActive:P("vm-active",60281),vmOutline:P("vm-outline",60282),vmRunning:P("vm-running",60283),watch:P("watch",60284),whitespace:P("whitespace",60285),wholeWord:P("whole-word",60286),window:P("window",60287),wordWrap:P("word-wrap",60288),zoomIn:P("zoom-in",60289),zoomOut:P("zoom-out",60290),listFilter:P("list-filter",60291),listFlat:P("list-flat",60292),listSelection:P("list-selection",60293),selection:P("selection",60293),listTree:P("list-tree",60294),debugBreakpointFunctionUnverified:P("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:P("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:P("debug-breakpoint-function-disabled",60296),debugStackframeActive:P("debug-stackframe-active",60297),circleSmallFilled:P("circle-small-filled",60298),debugStackframeDot:P("debug-stackframe-dot",60298),debugStackframe:P("debug-stackframe",60299),debugStackframeFocused:P("debug-stackframe-focused",60299),debugBreakpointUnsupported:P("debug-breakpoint-unsupported",60300),symbolString:P("symbol-string",60301),debugReverseContinue:P("debug-reverse-continue",60302),debugStepBack:P("debug-step-back",60303),debugRestartFrame:P("debug-restart-frame",60304),callIncoming:P("call-incoming",60306),callOutgoing:P("call-outgoing",60307),menu:P("menu",60308),expandAll:P("expand-all",60309),feedback:P("feedback",60310),groupByRefType:P("group-by-ref-type",60311),ungroupByRefType:P("ungroup-by-ref-type",60312),account:P("account",60313),bellDot:P("bell-dot",60314),debugConsole:P("debug-console",60315),library:P("library",60316),output:P("output",60317),runAll:P("run-all",60318),syncIgnored:P("sync-ignored",60319),pinned:P("pinned",60320),githubInverted:P("github-inverted",60321),debugAlt:P("debug-alt",60305),serverProcess:P("server-process",60322),serverEnvironment:P("server-environment",60323),pass:P("pass",60324),stopCircle:P("stop-circle",60325),playCircle:P("play-circle",60326),record:P("record",60327),debugAltSmall:P("debug-alt-small",60328),vmConnect:P("vm-connect",60329),cloud:P("cloud",60330),merge:P("merge",60331),exportIcon:P("export",60332),graphLeft:P("graph-left",60333),magnet:P("magnet",60334),notebook:P("notebook",60335),redo:P("redo",60336),checkAll:P("check-all",60337),pinnedDirty:P("pinned-dirty",60338),passFilled:P("pass-filled",60339),circleLargeFilled:P("circle-large-filled",60340),circleLarge:P("circle-large",60341),circleLargeOutline:P("circle-large-outline",60341),combine:P("combine",60342),gather:P("gather",60342),table:P("table",60343),variableGroup:P("variable-group",60344),typeHierarchy:P("type-hierarchy",60345),typeHierarchySub:P("type-hierarchy-sub",60346),typeHierarchySuper:P("type-hierarchy-super",60347),gitPullRequestCreate:P("git-pull-request-create",60348),runAbove:P("run-above",60349),runBelow:P("run-below",60350),notebookTemplate:P("notebook-template",60351),debugRerun:P("debug-rerun",60352),workspaceTrusted:P("workspace-trusted",60353),workspaceUntrusted:P("workspace-untrusted",60354),workspaceUnspecified:P("workspace-unspecified",60355),terminalCmd:P("terminal-cmd",60356),terminalDebian:P("terminal-debian",60357),terminalLinux:P("terminal-linux",60358),terminalPowershell:P("terminal-powershell",60359),terminalTmux:P("terminal-tmux",60360),terminalUbuntu:P("terminal-ubuntu",60361),terminalBash:P("terminal-bash",60362),arrowSwap:P("arrow-swap",60363),copy:P("copy",60364),personAdd:P("person-add",60365),filterFilled:P("filter-filled",60366),wand:P("wand",60367),debugLineByLine:P("debug-line-by-line",60368),inspect:P("inspect",60369),layers:P("layers",60370),layersDot:P("layers-dot",60371),layersActive:P("layers-active",60372),compass:P("compass",60373),compassDot:P("compass-dot",60374),compassActive:P("compass-active",60375),azure:P("azure",60376),issueDraft:P("issue-draft",60377),gitPullRequestClosed:P("git-pull-request-closed",60378),gitPullRequestDraft:P("git-pull-request-draft",60379),debugAll:P("debug-all",60380),debugCoverage:P("debug-coverage",60381),runErrors:P("run-errors",60382),folderLibrary:P("folder-library",60383),debugContinueSmall:P("debug-continue-small",60384),beakerStop:P("beaker-stop",60385),graphLine:P("graph-line",60386),graphScatter:P("graph-scatter",60387),pieChart:P("pie-chart",60388),bracketDot:P("bracket-dot",60389),bracketError:P("bracket-error",60390),lockSmall:P("lock-small",60391),azureDevops:P("azure-devops",60392),verifiedFilled:P("verified-filled",60393),newLine:P("newline",60394),layout:P("layout",60395),layoutActivitybarLeft:P("layout-activitybar-left",60396),layoutActivitybarRight:P("layout-activitybar-right",60397),layoutPanelLeft:P("layout-panel-left",60398),layoutPanelCenter:P("layout-panel-center",60399),layoutPanelJustify:P("layout-panel-justify",60400),layoutPanelRight:P("layout-panel-right",60401),layoutPanel:P("layout-panel",60402),layoutSidebarLeft:P("layout-sidebar-left",60403),layoutSidebarRight:P("layout-sidebar-right",60404),layoutStatusbar:P("layout-statusbar",60405),layoutMenubar:P("layout-menubar",60406),layoutCentered:P("layout-centered",60407),layoutSidebarRightOff:P("layout-sidebar-right-off",60416),layoutPanelOff:P("layout-panel-off",60417),layoutSidebarLeftOff:P("layout-sidebar-left-off",60418),target:P("target",60408),indent:P("indent",60409),recordSmall:P("record-small",60410),errorSmall:P("error-small",60411),arrowCircleDown:P("arrow-circle-down",60412),arrowCircleLeft:P("arrow-circle-left",60413),arrowCircleRight:P("arrow-circle-right",60414),arrowCircleUp:P("arrow-circle-up",60415),heartFilled:P("heart-filled",60420),map:P("map",60421),mapFilled:P("map-filled",60422),circleSmall:P("circle-small",60423),bellSlash:P("bell-slash",60424),bellSlashDot:P("bell-slash-dot",60425),commentUnresolved:P("comment-unresolved",60426),gitPullRequestGoToChanges:P("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:P("git-pull-request-new-changes",60428),searchFuzzy:P("search-fuzzy",60429),commentDraft:P("comment-draft",60430),send:P("send",60431),sparkle:P("sparkle",60432),insert:P("insert",60433),dialogError:P("dialog-error","error"),dialogWarning:P("dialog-warning","warning"),dialogInfo:P("dialog-info","info"),dialogClose:P("dialog-close","close"),treeItemExpanded:P("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:P("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:P("tree-filter-on-type-off","list-selection"),treeFilterClear:P("tree-filter-clear","close"),treeItemLoading:P("tree-item-loading","loading"),menuSelection:P("menu-selection","check"),menuSubmenu:P("menu-submenu","chevron-right"),menuBarMore:P("menubar-more","more"),scrollbarButtonLeft:P("scrollbar-button-left","triangle-left"),scrollbarButtonRight:P("scrollbar-button-right","triangle-right"),scrollbarButtonUp:P("scrollbar-button-up","triangle-up"),scrollbarButtonDown:P("scrollbar-button-down","triangle-down"),toolBarMore:P("toolbar-more","more"),quickInputBack:P("quick-input-back","arrow-left")};var jl=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 zi,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]),Ka(()=>{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),Ka(()=>{const s=this._factories.get(t);!s||s!==i||(this._factories.delete(t),s.dispose())})}getOrCreate(t){return jl(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 Za{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 jl(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return jl(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 _p;(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})(_p||(_p={}));var Tp;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Tp||(Tp={}));var kp;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(kp||(kp={}));var Lp;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Lp||(Lp={}));var Pp;(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})(Pp||(Pp={}));var Bp;(function(e){function t(n){return!n||typeof n!="object"?!1:typeof n.id=="string"&&typeof n.title=="string"}e.is=t})(Bp||(Bp={}));var Mp;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Mp||(Mp={})),new D1;var Ip;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(Ip||(Ip={}));var Op;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Op||(Op={}));var jp;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(jp||(jp={}));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 Rp;(function(e){e[e.Deprecated=1]="Deprecated"})(Rp||(Rp={}));var Vp;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Vp||(Vp={}));var Up;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(Up||(Up={}));var qp;(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"})(qp||(qp={}));var Wp;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Wp||(Wp={}));var Gp;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(Gp||(Gp={}));var Jp;(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"})(Jp||(Jp={}));var Yp;(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.autoClosingBrackets=5]="autoClosingBrackets",e[e.screenReaderAnnounceInlineSuggestion=6]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=7]="autoClosingDelete",e[e.autoClosingOvertype=8]="autoClosingOvertype",e[e.autoClosingQuotes=9]="autoClosingQuotes",e[e.autoIndent=10]="autoIndent",e[e.automaticLayout=11]="automaticLayout",e[e.autoSurround=12]="autoSurround",e[e.bracketPairColorization=13]="bracketPairColorization",e[e.guides=14]="guides",e[e.codeLens=15]="codeLens",e[e.codeLensFontFamily=16]="codeLensFontFamily",e[e.codeLensFontSize=17]="codeLensFontSize",e[e.colorDecorators=18]="colorDecorators",e[e.colorDecoratorsLimit=19]="colorDecoratorsLimit",e[e.columnSelection=20]="columnSelection",e[e.comments=21]="comments",e[e.contextmenu=22]="contextmenu",e[e.copyWithSyntaxHighlighting=23]="copyWithSyntaxHighlighting",e[e.cursorBlinking=24]="cursorBlinking",e[e.cursorSmoothCaretAnimation=25]="cursorSmoothCaretAnimation",e[e.cursorStyle=26]="cursorStyle",e[e.cursorSurroundingLines=27]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=28]="cursorSurroundingLinesStyle",e[e.cursorWidth=29]="cursorWidth",e[e.disableLayerHinting=30]="disableLayerHinting",e[e.disableMonospaceOptimizations=31]="disableMonospaceOptimizations",e[e.domReadOnly=32]="domReadOnly",e[e.dragAndDrop=33]="dragAndDrop",e[e.dropIntoEditor=34]="dropIntoEditor",e[e.emptySelectionClipboard=35]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=36]="experimentalWhitespaceRendering",e[e.extraEditorClassName=37]="extraEditorClassName",e[e.fastScrollSensitivity=38]="fastScrollSensitivity",e[e.find=39]="find",e[e.fixedOverflowWidgets=40]="fixedOverflowWidgets",e[e.folding=41]="folding",e[e.foldingStrategy=42]="foldingStrategy",e[e.foldingHighlight=43]="foldingHighlight",e[e.foldingImportsByDefault=44]="foldingImportsByDefault",e[e.foldingMaximumRegions=45]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=46]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=47]="fontFamily",e[e.fontInfo=48]="fontInfo",e[e.fontLigatures=49]="fontLigatures",e[e.fontSize=50]="fontSize",e[e.fontWeight=51]="fontWeight",e[e.fontVariations=52]="fontVariations",e[e.formatOnPaste=53]="formatOnPaste",e[e.formatOnType=54]="formatOnType",e[e.glyphMargin=55]="glyphMargin",e[e.gotoLocation=56]="gotoLocation",e[e.hideCursorInOverviewRuler=57]="hideCursorInOverviewRuler",e[e.hover=58]="hover",e[e.inDiffEditor=59]="inDiffEditor",e[e.inlineSuggest=60]="inlineSuggest",e[e.letterSpacing=61]="letterSpacing",e[e.lightbulb=62]="lightbulb",e[e.lineDecorationsWidth=63]="lineDecorationsWidth",e[e.lineHeight=64]="lineHeight",e[e.lineNumbers=65]="lineNumbers",e[e.lineNumbersMinChars=66]="lineNumbersMinChars",e[e.linkedEditing=67]="linkedEditing",e[e.links=68]="links",e[e.matchBrackets=69]="matchBrackets",e[e.minimap=70]="minimap",e[e.mouseStyle=71]="mouseStyle",e[e.mouseWheelScrollSensitivity=72]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=73]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=74]="multiCursorMergeOverlapping",e[e.multiCursorModifier=75]="multiCursorModifier",e[e.multiCursorPaste=76]="multiCursorPaste",e[e.multiCursorLimit=77]="multiCursorLimit",e[e.occurrencesHighlight=78]="occurrencesHighlight",e[e.overviewRulerBorder=79]="overviewRulerBorder",e[e.overviewRulerLanes=80]="overviewRulerLanes",e[e.padding=81]="padding",e[e.pasteAs=82]="pasteAs",e[e.parameterHints=83]="parameterHints",e[e.peekWidgetDefaultFocus=84]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=85]="definitionLinkOpensInPeek",e[e.quickSuggestions=86]="quickSuggestions",e[e.quickSuggestionsDelay=87]="quickSuggestionsDelay",e[e.readOnly=88]="readOnly",e[e.readOnlyMessage=89]="readOnlyMessage",e[e.renameOnType=90]="renameOnType",e[e.renderControlCharacters=91]="renderControlCharacters",e[e.renderFinalNewline=92]="renderFinalNewline",e[e.renderLineHighlight=93]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=94]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=95]="renderValidationDecorations",e[e.renderWhitespace=96]="renderWhitespace",e[e.revealHorizontalRightPadding=97]="revealHorizontalRightPadding",e[e.roundedSelection=98]="roundedSelection",e[e.rulers=99]="rulers",e[e.scrollbar=100]="scrollbar",e[e.scrollBeyondLastColumn=101]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=102]="scrollBeyondLastLine",e[e.scrollPredominantAxis=103]="scrollPredominantAxis",e[e.selectionClipboard=104]="selectionClipboard",e[e.selectionHighlight=105]="selectionHighlight",e[e.selectOnLineNumbers=106]="selectOnLineNumbers",e[e.showFoldingControls=107]="showFoldingControls",e[e.showUnused=108]="showUnused",e[e.snippetSuggestions=109]="snippetSuggestions",e[e.smartSelect=110]="smartSelect",e[e.smoothScrolling=111]="smoothScrolling",e[e.stickyScroll=112]="stickyScroll",e[e.stickyTabStops=113]="stickyTabStops",e[e.stopRenderingLineAfter=114]="stopRenderingLineAfter",e[e.suggest=115]="suggest",e[e.suggestFontSize=116]="suggestFontSize",e[e.suggestLineHeight=117]="suggestLineHeight",e[e.suggestOnTriggerCharacters=118]="suggestOnTriggerCharacters",e[e.suggestSelection=119]="suggestSelection",e[e.tabCompletion=120]="tabCompletion",e[e.tabIndex=121]="tabIndex",e[e.unicodeHighlighting=122]="unicodeHighlighting",e[e.unusualLineTerminators=123]="unusualLineTerminators",e[e.useShadowDOM=124]="useShadowDOM",e[e.useTabStops=125]="useTabStops",e[e.wordBreak=126]="wordBreak",e[e.wordSeparators=127]="wordSeparators",e[e.wordWrap=128]="wordWrap",e[e.wordWrapBreakAfterCharacters=129]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=130]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=131]="wordWrapColumn",e[e.wordWrapOverride1=132]="wordWrapOverride1",e[e.wordWrapOverride2=133]="wordWrapOverride2",e[e.wrappingIndent=134]="wrappingIndent",e[e.wrappingStrategy=135]="wrappingStrategy",e[e.showDeprecated=136]="showDeprecated",e[e.inlayHints=137]="inlayHints",e[e.editorClassName=138]="editorClassName",e[e.pixelRatio=139]="pixelRatio",e[e.tabFocusMode=140]="tabFocusMode",e[e.layoutInfo=141]="layoutInfo",e[e.wrappingInfo=142]="wrappingInfo",e[e.defaultColorDecorators=143]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=144]="colorDecoratorsActivatedOn"})(Yp||(Yp={}));var Hp;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Hp||(Hp={}));var zp;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(zp||(zp={}));var Qp;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(Qp||(Qp={}));var Xp;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(Xp||(Xp={}));var Kp;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Kp||(Kp={}));var Zp;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Zp||(Zp={}));var ed;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(ed||(ed={}));var $l;(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"})($l||($l={}));var Rl;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(Rl||(Rl={}));var Vl;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(Vl||(Vl={}));var td;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(td||(td={}));var nd;(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"})(nd||(nd={}));var rd;(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"})(rd||(rd={}));var id;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(id||(id={}));var sd;(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"})(sd||(sd={}));var ad;(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"})(ad||(ad={}));var od;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(od||(od={}));var ud;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(ud||(ud={}));var ld;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(ld||(ld={}));var Ul;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(Ul||(Ul={}));var cd;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(cd||(cd={}));var fd;(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"})(fd||(fd={}));var pd;(function(e){e[e.Deprecated=1]="Deprecated"})(pd||(pd={}));var dd;(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"})(dd||(dd={}));var hd;(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"})(hd||(hd={}));var md;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(md||(md={}));var gd;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(gd||(gd={}));class no{static chord(t,n){return y1(t,n)}}no.CtrlCmd=2048,no.Shift=1024,no.Alt=512,no.WinCtrl=256;function E1(){return{editor:void 0,languages:void 0,CancellationTokenSource:d1,Emitter:zi,KeyCode:$l,KeyMod:no,Position:Xi,Range:Ni,Selection:vi,SelectionDirection:Ul,MarkerSeverity:Rl,MarkerTag:Vl,Uri:Nl,Token:v1}}var yd;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(yd||(yd={}));var Dd;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(Dd||(Dd={}));var bd;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(bd||(bd={}));var vd;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(vd||(vd={}));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 ql(e){if(!e()){debugger;e(),tp(new aa("Assertion Failed"))}}function Ed(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 Ad(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,B=0,re=0,te=0;e:for(let N=i,ue=s;N<=ue;N++){const Te=t.getLineContent(N),ke=Te.length;l.reset(0);do if(O=l.next(Te),O){let Je=O.index,me=O.index+O[0].length;if(Je>0){const Se=Te.charCodeAt(Je-1);wl(Se)&&Je--}if(me+1<ke){const Se=Te.charCodeAt(me-1);wl(Se)&&me++}const Le=Te.substring(Je,me);let ct=kl(Je+1,Sp,Te,0);ct&&ct.endColumn<=Je+1&&(ct=null);const xt=a.shouldHighlightNonBasicASCII(Le,ct?ct.word:null);if(xt!==0){xt===3?B++:xt===2?re++:xt===1?te++:w1();const Se=1e3;if(A.length>=Se){p=!0;break e}A.push(new Ni(N,Je+1,N,me+1))}}while(O)}return{ranges:A,hasMore:p,ambiguousCharacterCount:B,invisibleCharacterCount:re,nonBasicAsciiCharacterCount:te}}static computeUnicodeHighlightReason(t,n){const r=new Ad(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=Fi.getLocales().filter(u=>!Fi.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 Ad{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=Fi.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const t=new Set;if(this.options.invisibleCharacters)for(const n of ms.codePoints)Cd(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)&&!ms.isInvisibleCharacter(o)&&(s=!0)}return!i&&s?0:this.options.invisibleCharacters&&!Cd(t)&&ms.isInvisibleCharacter(r)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(r)?3:0}}function Cd(e){return e===" "||e===`
8
- `||e===" "}class kr{static fromRange(t){return new kr(t.startLineNumber,t.endLineNumber)}static subtract(t,n){return n?t.startLineNumber<n.startLineNumber&&n.endLineNumberExclusive<t.endLineNumberExclusive?[new kr(t.startLineNumber,n.startLineNumber),new kr(n.endLineNumberExclusive,t.endLineNumberExclusive)]:n.startLineNumber<=t.startLineNumber&&t.endLineNumberExclusive<=n.endLineNumberExclusive?[]:n.endLineNumberExclusive<t.endLineNumberExclusive?[new kr(Math.max(n.endLineNumberExclusive,t.startLineNumber),t.endLineNumberExclusive)]:[new kr(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 kr(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 kr(t,t+n)}static deserialize(t){return new kr(t[0],t[1])}constructor(t,n){if(t>n)throw new aa(`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 kr(this.startLineNumber+t,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new kr(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 kr(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 Ni(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new Ni(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}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}}class Sd{constructor(t,n,r){this.changes=t,this.moves=n,this.hitTimeout=r}}class As{static inverse(t,n,r){const i=[];let s=1,a=1;for(const u of t){const l=new As(new kr(s,u.originalRange.startLineNumber),new kr(a,u.modifiedRange.startLineNumber),void 0);l.modifiedRange.isEmpty||i.push(l),s=u.originalRange.endLineNumberExclusive,a=u.modifiedRange.endLineNumberExclusive}const o=new As(new kr(s,n+1),new kr(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 As(this.modifiedRange,this.originalRange,(t=this.innerChanges)===null||t===void 0?void 0:t.map(n=>n.flip()))}}class zo{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new zo(this.modifiedRange,this.originalRange)}}class Wl{constructor(t,n){this.originalRange=t,this.modifiedRange=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new Wl(this.modifiedRange,this.originalRange)}}class Gl{constructor(t,n){this.lineRangeMapping=t,this.changes=n}flip(){return new Gl(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 kr(l.originalStartLineNumber+1,l.originalStartLineNumber+1):A=new kr(l.originalStartLineNumber,l.originalEndLineNumber+1);let p;l.modifiedEndLineNumber===0?p=new kr(l.modifiedStartLineNumber+1,l.modifiedStartLineNumber+1):p=new kr(l.modifiedStartLineNumber,l.modifiedEndLineNumber+1);let O=new As(A,p,(i=l.charChanges)===null||i===void 0?void 0:i.map(B=>new zo(new Ni(B.originalStartLineNumber,B.originalStartColumn,B.originalEndLineNumber,B.originalEndColumn),new Ni(B.modifiedStartLineNumber,B.modifiedStartColumn,B.modifiedEndLineNumber,B.modifiedEndColumn))));u&&(u.modifiedRange.endLineNumberExclusive===O.modifiedRange.startLineNumber||u.originalRange.endLineNumberExclusive===O.originalRange.startLineNumber)&&(O=new As(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 ql(()=>Ed(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 Sd(o,[],a.quitEarly)}}function xd(e,t,n,r){return new ys(e,t,n).ComputeDiff(r)}let wd=class{constructor(t){const n=[],r=[];for(let i=0,s=t.length;i<s;i++)n[i]=Jl(t[i],1),r[i]=Yl(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 ha{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 ha(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 ro{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 B=r.createCharSequence(t,n.originalStart,n.originalStart+n.originalLength-1),re=i.createCharSequence(t,n.modifiedStart,n.modifiedStart+n.modifiedLength-1);if(B.getElements().length>0&&re.getElements().length>0){let te=xd(B,re,s,!0).changes;o&&(te=L1(te)),O=[];for(let N=0,ue=te.length;N<ue;N++)O.push(ha.createFromDiffChange(te[N],B,re))}}return new ro(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 wd(t),this.modified=new wd(n),this.continueLineDiff=Fd(r.maxComputationTime),this.continueCharDiff=Fd(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=xd(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(ro.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],B=this.modifiedLines[a];if(O!==B){{let re=Jl(O,1),te=Jl(B,1);for(;re>1&&te>1;){const N=O.charCodeAt(re-2),ue=B.charCodeAt(te-2);if(N!==ue)break;re--,te--}(re>1||te>1)&&this._pushTrimWhitespaceCharChange(i,s+1,1,re,a+1,1,te)}{let re=Yl(O,1),te=Yl(B,1);const N=O.length+1,ue=B.length+1;for(;re<N&&te<ue;){const Te=O.charCodeAt(re-1),ke=O.charCodeAt(te-1);if(Te!==ke)break;re++,te++}(re<N||te<ue)&&this._pushTrimWhitespaceCharChange(i,s+1,re,N,a+1,te,ue)}}s++,a++}l&&(i.push(ro.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 ha(n,r,n,i,s,a,s,o)]),t.push(new ro(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 ha(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 ha(n,r,n,i,s,a,s,o)),!0):!1}}function Jl(e,t){const n=Eg(e);return n===-1?t:n+1}function Yl(e,t){const n=Ag(e);return n===-1?t:n+2}function Fd(e){if(e===0)return()=>!0;const t=Date.now();return()=>Date.now()-t<e}class vr{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 vr(s,a))}}static tryCreate(t,n){if(!(t>n))return new vr(t,n)}constructor(t,n){if(this.start=t,this.endExclusive=n,t>n)throw new aa(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new vr(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}join(t){return new vr(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 vr(n,r)}}class is{static trivial(t,n){return new is([new di(new vr(0,t.length),new vr(0,n.length))],!1)}static trivialTimedOut(t,n){return new is([new di(new vr(0,t.length),new vr(0,n.length))],!0)}constructor(t,n){this.diffs=t,this.hitTimeout=n}}class di{constructor(t,n){this.seq1Range=t,this.seq2Range=n}reverse(){return new di(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new di(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new di(this.seq1Range.delta(t),this.seq2Range.delta(t))}}class io{isValid(){return!0}}io.instance=new io;class B1{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new aa("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}}class Hl{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=io.instance,i){if(t.length===0||n.length===0)return is.trivial(t,n);const s=new Hl(t.length,n.length),a=new Hl(t.length,n.length),o=new Hl(t.length,n.length);for(let re=0;re<t.length;re++)for(let te=0;te<n.length;te++){if(!r.isValid())return is.trivialTimedOut(t,n);const N=re===0?0:s.get(re-1,te),ue=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 ke=Math.max(N,ue,Te);if(ke===Te){const Je=re>0&&te>0?o.get(re-1,te-1):0;o.set(re,te,Je+1),a.set(re,te,3)}else ke===N?(o.set(re,te,0),a.set(re,te,1)):ke===ue&&(o.set(re,te,0),a.set(re,te,2));s.set(re,te,ke)}const u=[];let l=t.length,A=n.length;function p(re,te){(re+1!==l||te+1!==A)&&u.push(new di(new vr(re+1,l),new vr(te+1,A))),l=re,A=te}let O=t.length-1,B=n.length-1;for(;O>=0&&B>=0;)a.get(O,B)===3?(p(O,B),O--,B--):a.get(O,B)===1?O--:B--;return p(-1,-1),u.reverse(),new is(u,!1)}}function Nd(e,t,n){let r=n;return r=O1(e,t,r),r=j1(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 di(s.seq1Range.join(i.seq1Range),s.seq2Range.join(i.seq2Range)):r.push(i)}return r}function O1(e,t,n){const r=[];n.length>0&&r.push(n[0]);for(let s=1;s<n.length;s++){const a=n[s-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 di(new vr(a.seq1Range.start,o.seq1Range.endExclusive-u),new vr(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 di(new vr(o.seq1Range.start+u,a.seq1Range.endExclusive),new vr(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 j1(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 vr(i?i.seq1Range.start+1:0,a?a.seq1Range.endExclusive-1:e.length),u=new vr(i?i.seq2Range.start+1:0,a?a.seq2Range.endExclusive-1:t.length);s.seq1Range.isEmpty?n[r]=_d(s,e,t,o,u):s.seq2Range.isEmpty&&(n[r]=_d(s.reverse(),t,e,u,o).reverse())}return n}function _d(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,B=e.seq1Range.start+A,re=t.getBoundaryScore(B)+n.getBoundaryScore(p)+n.getBoundaryScore(O);re>l&&(l=re,u=A)}return e.delta(u)}class $1{compute(t,n,r=io.instance){if(t.length===0||n.length===0)return is.trivial(t,n);function i(B,re){for(;B<t.length&&re<n.length&&t.getElement(B)===n.getElement(re);)B++,re++;return B}let s=0;const a=new R1;a.set(0,i(0,0));const o=new V1;o.set(0,a.get(0)===0?null:new Td(null,0,0,a.get(0)));let u=0;e:for(;;){if(s++,!r.isValid())return is.trivialTimedOut(t,n);const B=-Math.min(s,n.length+s%2),re=Math.min(s,t.length+s%2);for(u=B;u<=re;u+=2){const te=u===re?-1:a.get(u+1),N=u===B?-1:a.get(u-1)+1,ue=Math.min(Math.max(te,N),t.length),Te=ue-u;if(ue>t.length||Te>n.length)continue;const ke=i(ue,Te);a.set(u,ke);const Je=ue===te?o.get(u+1):o.get(u-1);if(o.set(u,ke!==ue?new Td(Je,ue,Te,ke-ue):Je),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 B=l?l.x+l.length:0,re=l?l.y+l.length:0;if((B!==p||re!==O)&&A.push(new di(new vr(B,p),new vr(re,O))),!l)break;p=l.x,O=l.y,l=l.prev}return A.reverse(),new is(A,!1)}}class Td{constructor(t,n,r,i){this.prev=t,this.x=n,this.y=r,this.length=i}}class R1{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 V1{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){const i=r.maxComputationTimeMs===0?io.instance:new B1(r.maxComputationTimeMs),s=!r.ignoreTrimWhitespace,a=new Map;function o(me){let Le=a.get(me);return Le===void 0&&(Le=a.size,a.set(me,Le)),Le}const u=t.map(me=>o(me.trim())),l=n.map(me=>o(me.trim())),A=new Ld(u,t),p=new Ld(l,n),O=(()=>A.length+p.length<1500?this.dynamicProgrammingDiffing.compute(A,p,i,(me,Le)=>t[me]===n[Le]?n[Le].length===0?.1:1+Math.log(1+n[Le].length):.99):this.myersDiffingAlgorithm.compute(A,p))();let B=O.diffs,re=O.hitTimeout;B=Nd(A,p,B);const te=[],N=me=>{if(s)for(let Le=0;Le<me;Le++){const ct=ue+Le,xt=Te+Le;if(t[ct]!==n[xt]){const Se=this.refineDiff(t,n,new di(new vr(ct,ct+1),new vr(xt,xt+1)),i,s);for(const we of Se.mappings)te.push(we);Se.hitTimeout&&(re=!0)}}};let ue=0,Te=0;for(const me of B){ql(()=>me.seq1Range.start-ue===me.seq2Range.start-Te);const Le=me.seq1Range.start-ue;N(Le),ue=me.seq1Range.endExclusive,Te=me.seq2Range.endExclusive;const ct=this.refineDiff(t,n,me,i,s);ct.hitTimeout&&(re=!0);for(const xt of ct.mappings)te.push(xt)}N(t.length-ue);const ke=kd(te,t,n),Je=[];if(r.computeMoves){const me=ke.filter(ct=>ct.modifiedRange.isEmpty&&ct.originalRange.length>=3).map(ct=>new jd(ct.originalRange,t)),Le=new Set(ke.filter(ct=>ct.originalRange.isEmpty&&ct.modifiedRange.length>=3).map(ct=>new jd(ct.modifiedRange,n)));for(const ct of me){let xt=-1,Se;for(const we of Le){const tt=ct.computeSimilarity(we);tt>xt&&(xt=tt,Se=we)}if(xt>.9&&Se){const we=this.refineDiff(t,n,new di(new vr(ct.range.startLineNumber-1,ct.range.endLineNumberExclusive-1),new vr(Se.range.startLineNumber-1,Se.range.endLineNumberExclusive-1)),i,s),tt=kd(we.mappings,t,n,!0);Le.delete(Se),Je.push(new Gl(new Wl(ct.range,Se.range),tt))}}}return new Sd(ke,Je,re)}refineDiff(t,n,r,i,s){const a=new Bd(t,r.seq1Range,s),o=new Bd(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=Nd(a,o,l),l=q1(a,o,l),l=I1(a,o,l),{mappings:l.map(p=>new zo(a.translateRange(p.seq1Range),o.translateRange(p.seq2Range))),hitTimeout:u.hitTimeout}}}function q1(e,t,n){const r=[];let i;function s(){if(!i)return;const o=i.s1Range.length-i.deleted;i.s2Range.length-i.added,Math.max(i.deleted,i.added)+(i.count-1)>o&&r.push(new di(i.s1Range,i.s2Range)),i=void 0}for(const o of n){let u=function(B,re){var te,N,ue,Te;if(!i||!i.s1Range.containsRange(B)||!i.s2Range.containsRange(re))if(i&&!(i.s1Range.endExclusive<B.start&&i.s2Range.endExclusive<re.start)){const me=vr.tryCreate(i.s1Range.endExclusive,B.start),Le=vr.tryCreate(i.s2Range.endExclusive,re.start);i.deleted+=(te=me==null?void 0:me.length)!==null&&te!==void 0?te:0,i.added+=(N=Le==null?void 0:Le.length)!==null&&N!==void 0?N:0,i.s1Range=i.s1Range.join(B),i.s2Range=i.s2Range.join(re)}else s(),i={added:0,deleted:0,count:0,s1Range:B,s2Range:re};const ke=B.intersect(o.seq1Range),Je=re.intersect(o.seq2Range);i.count++,i.deleted+=(ue=ke==null?void 0:ke.length)!==null&&ue!==void 0?ue:0,i.added+=(Te=Je==null?void 0:Je.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(),W1(n,r)}function W1(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 kd(e,t,n,r=!1){const i=[];for(const s of J1(e.map(a=>G1(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 As(a.originalRange.join(o.originalRange),a.modifiedRange.join(o.modifiedRange),s.map(u=>u.innerChanges[0])))}return ql(()=>!r&&i.length>0&&i[0].originalRange.startLineNumber!==i[0].modifiedRange.startLineNumber?!1:Ed(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 G1(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 kr(e.originalRange.startLineNumber+r,e.originalRange.endLineNumber+1+i),a=new kr(e.modifiedRange.startLineNumber+r,e.modifiedRange.endLineNumber+1+i);return new As(s,a,[e])}function*J1(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 Ld{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:Pd(this.lines[t-1]),r=t===this.lines.length?0:Pd(this.lines[t]);return 1e3-(n+r)}}function Pd(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}class Bd{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 vr(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.elements].map(t=>String.fromCharCode(t)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){const n=Id(t>0?this.elements[t-1]:-1),r=Id(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+=Md(n),i+=Md(r),i}translateOffset(t){if(this.lineRange.isEmpty)return new Xi(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 Xi(this.lineRange.start+n+1,t-i+1+this.offsetByLine[n])}translateRange(t){return Ni.fromPositions(this.translateOffset(t.start),this.translateOffset(t.endExclusive))}findWordContaining(t){if(t<0||t>=this.elements.length||!zl(this.elements[t]))return;let n=t;for(;n>0&&zl(this.elements[n-1]);)n--;let r=t;for(;r<this.elements.length&&zl(this.elements[r]);)r++;return new vr(n,r)}}function zl(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}const Y1={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function Md(e){return Y1[e]}function Id(e){return e===10?7:e===13?6:H1(e)?5:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:4}function H1(e){return e===32||e===9}const Ql=new Map;function Od(e){let t=Ql.get(e);return t===void 0&&(t=Ql.size,Ql.set(e,t)),t}class jd{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=Od(u);this.histogram[l]=(this.histogram[l]||0)+1}r++;const a=Od(`
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 Cs(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}class Vr{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=Cs(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 _i{constructor(t,n,r,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Cs(Math.max(Math.min(1,n),0),3),this.l=Cs(Math.max(Math.min(1,r),0),3),this.a=Cs(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 _i(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=_i._hue2rgb(A,l,n+1/3),o=_i._hue2rgb(A,l,n),u=_i._hue2rgb(A,l,n-1/3)}return new Vr(Math.round(a*255),Math.round(o*255),Math.round(u*255),s)}}class ma{constructor(t,n,r,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=Cs(Math.max(Math.min(1,n),0),3),this.v=Cs(Math.max(Math.min(1,r),0),3),this.a=Cs(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 ma(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 Vr(l,A,p,s)}}let jr=class ji{static fromHex(t){return ji.Format.CSS.parseHex(t)||ji.red}static equals(t,n){return!t&&!n?!0:!t||!n?!1:t.equals(n)}get hsla(){return this._hsla?this._hsla:_i.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:ma.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof Vr)this.rgba=t;else if(t instanceof _i)this._hsla=t,this.rgba=_i.toRGBA(t);else if(t instanceof ma)this._hsva=t,this.rgba=ma.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&Vr.equals(this.rgba,t.rgba)&&_i.equals(this.hsla,t.hsla)&&ma.equals(this.hsva,t.hsva)}getRelativeLuminance(){const t=ji._relativeLuminanceForComponent(this.rgba.r),n=ji._relativeLuminanceForComponent(this.rgba.g),r=ji._relativeLuminanceForComponent(this.rgba.b),i=.2126*t+.7152*n+.0722*r;return Cs(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 ji(new _i(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new ji(new _i(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 ji(new Vr(n,r,i,s*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new ji(new Vr(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 ji(new Vr(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=ji.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)}};jr.white=new jr(new Vr(255,255,255,1)),jr.black=new jr(new Vr(0,0,0,1)),jr.red=new jr(new Vr(255,0,0,1)),jr.blue=new jr(new Vr(0,0,255,1)),jr.green=new jr(new Vr(0,255,0,1)),jr.cyan=new jr(new Vr(0,255,255,1)),jr.lightgrey=new jr(new Vr(211,211,211,1)),jr.transparent=new jr(new Vr(0,0,0,0)),function(e){(function(t){(function(n){function r(B){return B.rgba.a===1?`rgb(${B.rgba.r}, ${B.rgba.g}, ${B.rgba.b})`:e.Format.CSS.formatRGBA(B)}n.formatRGB=r;function i(B){return`rgba(${B.rgba.r}, ${B.rgba.g}, ${B.rgba.b}, ${+B.rgba.a.toFixed(2)})`}n.formatRGBA=i;function s(B){return B.hsla.a===1?`hsl(${B.hsla.h}, ${(B.hsla.s*100).toFixed(2)}%, ${(B.hsla.l*100).toFixed(2)}%)`:e.Format.CSS.formatHSLA(B)}n.formatHSL=s;function a(B){return`hsla(${B.hsla.h}, ${(B.hsla.s*100).toFixed(2)}%, ${(B.hsla.l*100).toFixed(2)}%, ${B.hsla.a.toFixed(2)})`}n.formatHSLA=a;function o(B){const re=B.toString(16);return re.length!==2?"0"+re:re}function u(B){return`#${o(B.rgba.r)}${o(B.rgba.g)}${o(B.rgba.b)}`}n.formatHex=u;function l(B,re=!1){return re&&B.rgba.a===1?e.Format.CSS.formatHex(B):`#${o(B.rgba.r)}${o(B.rgba.g)}${o(B.rgba.b)}${o(Math.round(B.rgba.a*255))}`}n.formatHexA=l;function A(B){return B.isOpaque()?e.Format.CSS.formatHex(B):e.Format.CSS.formatRGBA(B)}n.format=A;function p(B){const re=B.length;if(re===0||B.charCodeAt(0)!==35)return null;if(re===7){const te=16*O(B.charCodeAt(1))+O(B.charCodeAt(2)),N=16*O(B.charCodeAt(3))+O(B.charCodeAt(4)),ue=16*O(B.charCodeAt(5))+O(B.charCodeAt(6));return new e(new Vr(te,N,ue,1))}if(re===9){const te=16*O(B.charCodeAt(1))+O(B.charCodeAt(2)),N=16*O(B.charCodeAt(3))+O(B.charCodeAt(4)),ue=16*O(B.charCodeAt(5))+O(B.charCodeAt(6)),Te=16*O(B.charCodeAt(7))+O(B.charCodeAt(8));return new e(new Vr(te,N,ue,Te/255))}if(re===4){const te=O(B.charCodeAt(1)),N=O(B.charCodeAt(2)),ue=O(B.charCodeAt(3));return new e(new Vr(16*te+te,16*N+N,16*ue+ue))}if(re===5){const te=O(B.charCodeAt(1)),N=O(B.charCodeAt(2)),ue=O(B.charCodeAt(3)),Te=O(B.charCodeAt(4));return new e(new Vr(16*te+te,16*N+N,16*ue+ue,(16*Te+Te)/255))}return null}n.parseHex=p;function O(B){switch(B){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={}))}(jr||(jr={}));function Rd(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 Xl(e,t,n,r){return{red:e/255,blue:n/255,green:t/255,alpha:r}}function so(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 z1(e,t){if(!e)return;const n=jr.Format.CSS.parseHex(t);if(n)return{range:e,color:Xl(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function Vd(e,t,n){if(!e||t.length!==1)return;const i=t[0].values(),s=Rd(i);return{range:e,color:Xl(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=Rd(i),a=new jr(new _i(s[0],s[1]/100,s[2]/100,n?s[3]:1));return{range:e,color:Xl(a.rgba.r,a.rgba.g,a.rgba.b,a.rgba.a)}}function ao(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function Q1(e){const t=[],r=ao(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=Vd(so(e,i),ao(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=Vd(so(e,i),ao(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(so(e,i),ao(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(so(e,i),ao(o,l),!0)}else a==="#"&&(u=z1(so(e,i),a+o));u&&t.push(u)}return t}function X1(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:Q1(e)}var Ss=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 K1 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 Xi(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=kl(t.column,a1(n),this._lines[t.lineNumber-1],0);return r?new Ni(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(!Xi.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 Is{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 K1(Nl.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 Ss(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 Ss(this,void 0,void 0,function*(){const s=this._getModel(t),a=this._getModel(n);return!s||!a?null:Is.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 B;return[O.originalRange.startLineNumber,O.originalRange.endLineNumberExclusive,O.modifiedRange.startLineNumber,O.modifiedRange.endLineNumberExclusive,(B=O.innerChanges)===null||B===void 0?void 0:B.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.originalRange.startLineNumber,p.lineRangeMapping.originalRange.endLineNumberExclusive,p.lineRangeMapping.modifiedRange.startLineNumber,p.lineRangeMapping.modifiedRange.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 Ss(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 Ni.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),Ni.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)>Is._diffLimit){s.push({range:o,text:u});continue}const p=Og(A,u,r),O=i.offsetAt(Ni.lift(o).getStartPosition());for(const B of p){const re=i.positionAt(O+B.originalStart),te=i.positionAt(O+B.originalStart+B.originalLength),N={text:u.substr(B.modifiedStart,B.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 Ss(this,void 0,void 0,function*(){const n=this._getModel(t);return n?p1(n):null})}computeDefaultDocumentColors(t){return Ss(this,void 0,void 0,function*(){const n=this._getModel(t);return n?X1(n):null})}textualSuggest(t,n,r,i){return Ss(this,void 0,void 0,function*(){const s=new Ro,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>Is._suggestionsLimit))break e}}return{words:Array.from(o),duration:s.elapsed()}})}computeWordRanges(t,n,r,i){return Ss(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 Ss(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 Bl.INSTANCE.navigateValueSet(n,u,l,A,r)})}loadForeignModule(t,n,r){const a={host:lg(r,(o,u)=>this._host.fhr(o,u)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(a,n),Promise.resolve(vl(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)}}}Is._diffLimit=1e5,Is._suggestionsLimit=1e4,typeof importScripts=="function"&&(globalThis.monaco=E1());let Kl=!1;function qd(e){if(Kl)return;Kl=!0;const t=new Mg(n=>{globalThis.postMessage(n)},n=>new Is(n,e));globalThis.onmessage=n=>{t.onmessage(n.data)}}globalThis.onmessage=e=>{Kl||qd(null)};function Z1(e){self.onmessage=()=>{qd((t,n)=>Object.create(e(t,n)))}}var ey=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))},Wd=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=Jd(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=Gd(s.text,!1,o);if(A-l===O.length)for(var B=0,re=O.length;B<re;B++)p[B+l+1]=O[B];else O.length<1e4?p.splice.apply(p,ey([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 B=l+1+O.length,re=p.length;B<re;B++)p[B]=p[B]+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=Gd(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}(),Zl;(function(e){function t(i,s,a,o){return new Wd(i,s,a,o)}e.create=t;function n(i,s,a){if(i instanceof Wd)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=ec(s.map(ty),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],B=i.offsetAt(O.range.start);if(B<u)throw new Error("Overlapping edit");B>u&&l.push(a.substring(u,B)),O.newText.length&&l.push(O.newText),u=i.offsetAt(O.range.end)}return l.push(a.substr(u)),l.join("")}e.applyEdits=r})(Zl||(Zl={}));function ec(e,t){if(e.length<=1)return e;var n=e.length/2|0,r=e.slice(0,n),i=e.slice(n);ec(r,t),ec(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 Gd(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 Jd(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 ty(e){var t=Jd(e.range);return t!==e.range?{newText:e.newText,range:t}:e}function ny(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(ke,Je){let me=0,Le=0;for(;me<ke||!Je;){let ct=e.charCodeAt(r);if(ct>=48&&ct<=57)Le=Le*16+ct-48;else if(ct>=65&&ct<=70)Le=Le*16+ct-65+10;else if(ct>=97&&ct<=102)Le=Le*16+ct-97+10;else break;r++,me++}return me<ke&&(Le=-1),Le}function B(ke){r=ke,i="",s=0,a=16,p=0}function re(){let ke=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&ga(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&ga(e.charCodeAt(r)))for(r++;r<e.length&&ga(e.charCodeAt(r));)r++;else return p=3,e.substring(ke,r);let Je=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&&ga(e.charCodeAt(r))){for(r++;r<e.length&&ga(e.charCodeAt(r));)r++;Je=r}else p=3;return e.substring(ke,Je)}function te(){let ke="",Je=r;for(;;){if(r>=n){ke+=e.substring(Je,r),p=2;break}const me=e.charCodeAt(r);if(me===34){ke+=e.substring(Je,r),r++;break}if(me===92){if(ke+=e.substring(Je,r),r++,r>=n){p=2;break}switch(e.charCodeAt(r++)){case 34:ke+='"';break;case 92:ke+="\\";break;case 47:ke+="/";break;case 98:ke+="\b";break;case 102:ke+="\f";break;case 110:ke+=`
11
- `;break;case 114:ke+="\r";break;case 116:ke+=" ";break;case 117:const ct=O(4,!0);ct>=0?ke+=String.fromCharCode(ct):p=4;break;default:p=5}Je=r;continue}if(me>=0&&me<=31)if(oo(me)){ke+=e.substring(Je,r),p=2;break}else p=6;r++}return ke}function N(){if(i="",p=0,s=r,u=o,A=l,r>=n)return s=n,a=17;let ke=e.charCodeAt(r);if(tc(ke)){do r++,i+=String.fromCharCode(ke),ke=e.charCodeAt(r);while(tc(ke));return a=15}if(oo(ke))return r++,i+=String.fromCharCode(ke),ke===13&&e.charCodeAt(r)===10&&(r++,i+=`
12
- `),o++,l=r,a=14;switch(ke){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 Je=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!oo(e.charCodeAt(r));)r++;return i=e.substring(Je,r),a=12}if(e.charCodeAt(r+1)===42){r+=2;const me=n-1;let Le=!1;for(;r<me;){const ct=e.charCodeAt(r);if(ct===42&&e.charCodeAt(r+1)===47){r+=2,Le=!0;break}r++,oo(ct)&&(ct===13&&e.charCodeAt(r)===10&&r++,o++,l=r)}return Le||(r++,p=1),i=e.substring(Je,r),a=13}return i+=String.fromCharCode(ke),r++,a=16;case 45:if(i+=String.fromCharCode(ke),r++,r===n||!ga(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&&ue(ke);)r++,ke=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(ke),r++,a=16}}function ue(ke){if(tc(ke)||oo(ke))return!1;switch(ke){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function Te(){let ke;do ke=N();while(ke>=12&&ke<=15);return ke}return{setPosition:B,getPosition:()=>r,scan:t?Te:N,getToken:()=>a,getTokenValue:()=>i,getTokenOffset:()=>s,getTokenLength:()=>r-s,getTokenStartLine:()=>u,getTokenStartCharacter:()=>s-A,getTokenError:()=>p}}function tc(e){return e===32||e===9}function oo(e){return e===10||e===13}function ga(e){return e>=48&&e<=57}var Yd;(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"})(Yd||(Yd={}));var Qo;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Qo||(Qo={}));function ry(e,t=[],n=Qo.DEFAULT){let r=null,i=[];const s=[];function a(u){Array.isArray(i)?i.push(u):r!==null&&(i[r]=u)}return iy(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 nc(e){switch(e.type){case"array":return e.children.map(nc);case"object":const t=Object.create(null);for(let n of e.children){const r=n.children[1];r&&(t[n.children[0].value]=nc(r))}return t;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function iy(e,t,n=Qo.DEFAULT){const r=ny(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?$t=>Ve($t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function u(Ve){return Ve?$t=>Ve($t,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),B=s(t.onArrayEnd),re=u(t.onLiteralValue),te=o(t.onSeparator),N=s(t.onComment),ue=o(t.onError),Te=n&&n.disallowComments,ke=n&&n.allowTrailingComma;function Je(){for(;;){const Ve=r.scan();switch(r.getTokenError()){case 4:me(14);break;case 5:me(15);break;case 3:me(13);break;case 1:Te||me(11);break;case 2:me(12);break;case 6:me(16);break}switch(Ve){case 12:case 13:Te?me(10):N();break;case 16:me(1);break;case 15:case 14:break;default:return Ve}}}function me(Ve,$t=[],pn=[]){if(ue(Ve),$t.length+pn.length>0){let kn=r.getToken();for(;kn!==17;){if($t.indexOf(kn)!==-1){Je();break}else if(pn.indexOf(kn)!==-1)break;kn=Je()}}}function Le(Ve){const $t=r.getTokenValue();return Ve?re($t):(A($t),i.push($t)),Je(),!0}function ct(){switch(r.getToken()){case 11:const Ve=r.getTokenValue();let $t=Number(Ve);isNaN($t)&&(me(2),$t=0),re($t);break;case 7:re(null);break;case 8:re(!0);break;case 9:re(!1);break;default:return!1}return Je(),!0}function xt(){return r.getToken()!==10?(me(3,[],[2,5]),!1):(Le(!1),r.getToken()===6?(te(":"),Je(),tt()||me(4,[],[2,5])):me(5,[],[2,5]),i.pop(),!0)}function Se(){l(),Je();let Ve=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(Ve||me(4,[],[]),te(","),Je(),r.getToken()===2&&ke)break}else Ve&&me(6,[],[]);xt()||me(4,[],[2,5]),Ve=!0}return p(),r.getToken()!==2?me(7,[2],[]):Je(),!0}function we(){O(),Je();let Ve=!0,$t=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if($t||me(4,[],[]),te(","),Je(),r.getToken()===4&&ke)break}else $t&&me(6,[],[]);Ve?(i.push(0),Ve=!1):i[i.length-1]++,tt()||me(4,[],[4,5]),$t=!0}return B(),Ve||i.pop(),r.getToken()!==4?me(8,[4],[]):Je(),!0}function tt(){switch(r.getToken()){case 3:return we();case 1:return Se();case 10:return Le(!0);default:return ct()}}return Je(),r.getToken()===17?n.allowEmptyContent?!0:(me(4,[],[]),!1):tt()?(r.getToken()!==17&&me(9,[],[]),!0):(me(4,[],[]),!1)}var Hd;(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"})(Hd||(Hd={}));var zd;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(zd||(zd={}));const sy=ry,ay=nc;var Qd;(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"})(Qd||(Qd={}));var Xd;(()=>{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,B=-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(!(B===te-1||re===1))if(B!==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("/"),B=te,re=0;continue}}else if(p.length===2||p.length===1){p="",O=0,B=te,re=0;continue}}l&&(p.length>0?p+="/..":p="..",O=2)}else p.length>0?p+="/"+u.slice(B+1,te):p=u.slice(B+1,te),O=te-B-1;B=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,B=1;B<l.length&&l.charCodeAt(B)===47;++B);for(var re=l.length-B,te=O<re?O:re,N=-1,ue=0;ue<=te;++ue){if(ue===te){if(re>te){if(l.charCodeAt(B+ue)===47)return l.slice(B+ue+1);if(ue===0)return l.slice(B+ue)}else O>te&&(u.charCodeAt(A+ue)===47?N=ue:ue===0&&(N=0));break}var Te=u.charCodeAt(A+ue);if(Te!==l.charCodeAt(B+ue))break;Te===47&&(N=ue)}var ke="";for(ue=A+N+1;ue<=p;++ue)ue!==p&&u.charCodeAt(ue)!==47||(ke.length===0?ke+="..":ke+="/..");return ke.length>0?ke+l.slice(B+N):(B+=N,l.charCodeAt(B)===47&&++B,l.slice(B))},_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,B=u.length-1;B>=1;--B)if((l=u.charCodeAt(B))===47){if(!O){p=B;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,B=!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(!B){p=A+1;break}}else te===-1&&(B=!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(!B){p=A+1;break}}else O===-1&&(B=!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,B=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:B!==1&&(B=1):l!==-1&&(B=-1);else if(!O){A=re+1;break}}return l===-1||p===-1||B===0||B===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 B=-1,re=0,te=-1,N=!0,ue=u.length-1,Te=0;ue>=A;--ue)if((p=u.charCodeAt(ue))!==47)te===-1&&(N=!1,te=ue+1),p===46?B===-1?B=ue:Te!==1&&(Te=1):B!==-1&&(Te=-1);else if(!N){re=ue+1;break}return B===-1||te===-1||Te===0||Te===1&&B===te-1&&B===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,B),l.base=u.slice(1,te)):(l.name=u.slice(re,B),l.base=u.slice(re,te)),l.ext=u.slice(B,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:()=>tt}),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(Ut,en){Ut.__proto__=en}||function(Ut,en){for(var Ln in en)Object.prototype.hasOwnProperty.call(en,Ln)&&(Ut[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 Ut(){this.constructor=Lt}a(Lt,Tt),Lt.prototype=Tt===null?Object.create(Tt):(Ut.prototype=Tt.prototype,new Ut)}),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 B="",re="/",te=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,N=function(){function Lt(Tt,Ut,en,Ln,qn,Pn){Pn===void 0&&(Pn=!1),typeof Tt=="object"?(this.scheme=Tt.scheme||B,this.authority=Tt.authority||B,this.path=Tt.path||B,this.query=Tt.query||B,this.fragment=Tt.fragment||B):(this.scheme=function(Hr,zr){return Hr||zr?Hr:"file"}(Tt,Pn),this.authority=Ut||B,this.path=function(Hr,zr){switch(Hr){case"https":case"http":case"file":zr?zr[0]!==re&&(zr=re+zr):zr=re}return zr}(this.scheme,en||B),this.query=Ln||B,this.fragment=qn||B,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 Le(this,!1)},enumerable:!1,configurable:!0}),Lt.prototype.with=function(Tt){if(!Tt)return this;var Ut=Tt.scheme,en=Tt.authority,Ln=Tt.path,qn=Tt.query,Pn=Tt.fragment;return Ut===void 0?Ut=this.scheme:Ut===null&&(Ut=B),en===void 0?en=this.authority:en===null&&(en=B),Ln===void 0?Ln=this.path:Ln===null&&(Ln=B),qn===void 0?qn=this.query:qn===null&&(qn=B),Pn===void 0?Pn=this.fragment:Pn===null&&(Pn=B),Ut===this.scheme&&en===this.authority&&Ln===this.path&&qn===this.query&&Pn===this.fragment?this:new Te(Ut,en,Ln,qn,Pn)},Lt.parse=function(Tt,Ut){Ut===void 0&&(Ut=!1);var en=te.exec(Tt);return en?new Te(en[2]||B,we(en[4]||B),we(en[5]||B),we(en[7]||B),we(en[9]||B),Ut):new Te(B,B,B,B,B)},Lt.file=function(Tt){var Ut=B;if(i&&(Tt=Tt.replace(/\\/g,re)),Tt[0]===re&&Tt[1]===re){var en=Tt.indexOf(re,2);en===-1?(Ut=Tt.substring(2),Tt=re):(Ut=Tt.substring(2,en),Tt=Tt.substring(en)||re)}return new Te("file",Ut,Tt,B,B)},Lt.from=function(Tt){var Ut=new Te(Tt.scheme,Tt.authority,Tt.path,Tt.query,Tt.fragment);return O(Ut,!0),Ut},Lt.prototype.toString=function(Tt){return Tt===void 0&&(Tt=!1),ct(this,Tt)},Lt.prototype.toJSON=function(){return this},Lt.revive=function(Tt){if(Tt){if(Tt instanceof Lt)return Tt;var Ut=new Te(Tt);return Ut._formatted=Tt.external,Ut._fsPath=Tt._sep===ue?Tt.fsPath:null,Ut}return Tt},Lt}(),ue=i?1:void 0,Te=function(Lt){function Tt(){var Ut=Lt!==null&&Lt.apply(this,arguments)||this;return Ut._formatted=null,Ut._fsPath=null,Ut}return u(Tt,Lt),Object.defineProperty(Tt.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Le(this,!1)),this._fsPath},enumerable:!1,configurable:!0}),Tt.prototype.toString=function(Ut){return Ut===void 0&&(Ut=!1),Ut?ct(this,!0):(this._formatted||(this._formatted=ct(this,!1)),this._formatted)},Tt.prototype.toJSON=function(){var Ut={$mid:1};return this._fsPath&&(Ut.fsPath=this._fsPath,Ut._sep=ue),this._formatted&&(Ut.external=this._formatted),this.path&&(Ut.path=this.path),this.scheme&&(Ut.scheme=this.scheme),this.authority&&(Ut.authority=this.authority),this.query&&(Ut.query=this.query),this.fragment&&(Ut.fragment=this.fragment),Ut},Tt}(N),ke=((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 Je(Lt,Tt,Ut){for(var en=void 0,Ln=-1,qn=0;qn<Lt.length;qn++){var Pn=Lt.charCodeAt(qn);if(Pn>=97&&Pn<=122||Pn>=65&&Pn<=90||Pn>=48&&Pn<=57||Pn===45||Pn===46||Pn===95||Pn===126||Tt&&Pn===47||Ut&&Pn===91||Ut&&Pn===93||Ut&&Pn===58)Ln!==-1&&(en+=encodeURIComponent(Lt.substring(Ln,qn)),Ln=-1),en!==void 0&&(en+=Lt.charAt(qn));else{en===void 0&&(en=Lt.substr(0,qn));var Hr=ke[Pn];Hr!==void 0?(Ln!==-1&&(en+=encodeURIComponent(Lt.substring(Ln,qn)),Ln=-1),en+=Hr):Ln===-1&&(Ln=qn)}}return Ln!==-1&&(en+=encodeURIComponent(Lt.substring(Ln))),en!==void 0?en:Lt}function me(Lt){for(var Tt=void 0,Ut=0;Ut<Lt.length;Ut++){var en=Lt.charCodeAt(Ut);en===35||en===63?(Tt===void 0&&(Tt=Lt.substr(0,Ut)),Tt+=ke[en]):Tt!==void 0&&(Tt+=Lt[Ut])}return Tt!==void 0?Tt:Lt}function Le(Lt,Tt){var Ut;return Ut=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&&(Ut=Ut.replace(/\//g,"\\")),Ut}function ct(Lt,Tt){var Ut=Tt?me:Je,en="",Ln=Lt.scheme,qn=Lt.authority,Pn=Lt.path,Hr=Lt.query,zr=Lt.fragment;if(Ln&&(en+=Ln,en+=":"),(qn||Ln==="file")&&(en+=re,en+=re),qn){var mi=qn.indexOf("@");if(mi!==-1){var us=qn.substr(0,mi);qn=qn.substr(mi+1),(mi=us.lastIndexOf(":"))===-1?en+=Ut(us,!1,!1):(en+=Ut(us.substr(0,mi),!1,!1),en+=":",en+=Ut(us.substr(mi+1),!1,!0)),en+="@"}(mi=(qn=qn.toLowerCase()).lastIndexOf(":"))===-1?en+=Ut(qn,!1,!0):(en+=Ut(qn.substr(0,mi),!1,!0),en+=qn.substr(mi))}if(Pn){if(Pn.length>=3&&Pn.charCodeAt(0)===47&&Pn.charCodeAt(2)===58)(Ai=Pn.charCodeAt(1))>=65&&Ai<=90&&(Pn="/".concat(String.fromCharCode(Ai+32),":").concat(Pn.substr(3)));else if(Pn.length>=2&&Pn.charCodeAt(1)===58){var Ai;(Ai=Pn.charCodeAt(0))>=65&&Ai<=90&&(Pn="".concat(String.fromCharCode(Ai+32),":").concat(Pn.substr(2)))}en+=Ut(Pn,!0,!1)}return Hr&&(en+="?",en+=Ut(Hr,!1,!1)),zr&&(en+="#",en+=Tt?zr:Je(zr,!1,!1)),en}function xt(Lt){try{return decodeURIComponent(Lt)}catch{return Lt.length>3?Lt.substr(0,3)+xt(Lt.substr(3)):Lt}}var Se=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function we(Lt){return Lt.match(Se)?Lt.replace(Se,function(Tt){return xt(Tt)}):Lt}var tt,Ve=n(470),$t=function(Lt,Tt,Ut){if(Ut||arguments.length===2)for(var en,Ln=0,qn=Tt.length;Ln<qn;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 Ut=[],en=1;en<arguments.length;en++)Ut[en-1]=arguments[en];return Tt.with({path:pn.join.apply(pn,$t([Tt.path],Ut,!1))})},Lt.resolvePath=function(Tt){for(var Ut=[],en=1;en<arguments.length;en++)Ut[en-1]=arguments[en];var Ln=Tt.path,qn=!1;Ln[0]!==kn&&(Ln=kn+Ln,qn=!0);var Pn=pn.resolve.apply(pn,$t([Ln],Ut,!1));return qn&&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 Ut=pn.dirname(Tt.path);return Ut.length===1&&Ut.charCodeAt(0)===46&&(Ut=""),Tt.with({path:Ut})},Lt.basename=function(Tt){return pn.basename(Tt.path)},Lt.extname=function(Tt){return pn.extname(Tt.path)}})(tt||(tt={}))})(),Xd=r})();const{URI:ti,Utils:WE}=Xd;var Kd;(function(e){function t(n){return typeof n=="string"}e.is=t})(Kd||(Kd={}));var rc;(function(e){function t(n){return typeof n=="string"}e.is=t})(rc||(rc={}));var Zd;(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})(Zd||(Zd={}));var Xo;(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})(Xo||(Xo={}));var Jr;(function(e){function t(r,i){return r===Number.MAX_VALUE&&(r=Xo.MAX_VALUE),i===Number.MAX_VALUE&&(i=Xo.MAX_VALUE),{line:r,character:i}}e.create=t;function n(r){var i=r;return St.objectLiteral(i)&&St.uinteger(i.line)&&St.uinteger(i.character)}e.is=n})(Jr||(Jr={}));var $n;(function(e){function t(r,i,s,a){if(St.uinteger(r)&&St.uinteger(i)&&St.uinteger(s)&&St.uinteger(a))return{start:Jr.create(r,i),end:Jr.create(s,a)};if(Jr.is(r)&&Jr.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 St.objectLiteral(i)&&Jr.is(i.start)&&Jr.is(i.end)}e.is=n})($n||($n={}));var ya;(function(e){function t(r,i){return{uri:r,range:i}}e.create=t;function n(r){var i=r;return St.objectLiteral(i)&&$n.is(i.range)&&(St.string(i.uri)||St.undefined(i.uri))}e.is=n})(ya||(ya={}));var ic;(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 St.objectLiteral(i)&&$n.is(i.targetRange)&&St.string(i.targetUri)&&$n.is(i.targetSelectionRange)&&($n.is(i.originSelectionRange)||St.undefined(i.originSelectionRange))}e.is=n})(ic||(ic={}));var sc;(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 St.objectLiteral(i)&&St.numberRange(i.red,0,1)&&St.numberRange(i.green,0,1)&&St.numberRange(i.blue,0,1)&&St.numberRange(i.alpha,0,1)}e.is=n})(sc||(sc={}));var eh;(function(e){function t(r,i){return{range:r,color:i}}e.create=t;function n(r){var i=r;return St.objectLiteral(i)&&$n.is(i.range)&&sc.is(i.color)}e.is=n})(eh||(eh={}));var th;(function(e){function t(r,i,s){return{label:r,textEdit:i,additionalTextEdits:s}}e.create=t;function n(r){var i=r;return St.objectLiteral(i)&&St.string(i.label)&&(St.undefined(i.textEdit)||wr.is(i))&&(St.undefined(i.additionalTextEdits)||St.typedArray(i.additionalTextEdits,wr.is))}e.is=n})(th||(th={}));var nh;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(nh||(nh={}));var ac;(function(e){function t(r,i,s,a,o,u){var l={startLine:r,endLine:i};return St.defined(s)&&(l.startCharacter=s),St.defined(a)&&(l.endCharacter=a),St.defined(o)&&(l.kind=o),St.defined(u)&&(l.collapsedText=u),l}e.create=t;function n(r){var i=r;return St.objectLiteral(i)&&St.uinteger(i.startLine)&&St.uinteger(i.startLine)&&(St.undefined(i.startCharacter)||St.uinteger(i.startCharacter))&&(St.undefined(i.endCharacter)||St.uinteger(i.endCharacter))&&(St.undefined(i.kind)||St.string(i.kind))}e.is=n})(ac||(ac={}));var oc;(function(e){function t(r,i){return{location:r,message:i}}e.create=t;function n(r){var i=r;return St.defined(i)&&ya.is(i.location)&&St.string(i.message)}e.is=n})(oc||(oc={}));var Kn;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Kn||(Kn={}));var uc;(function(e){e.Unnecessary=1,e.Deprecated=2})(uc||(uc={}));var rh;(function(e){function t(n){var r=n;return St.objectLiteral(r)&&St.string(r.href)}e.is=t})(rh||(rh={}));var Ti;(function(e){function t(r,i,s,a,o,u){var l={range:r,message:i};return St.defined(s)&&(l.severity=s),St.defined(a)&&(l.code=a),St.defined(o)&&(l.source=o),St.defined(u)&&(l.relatedInformation=u),l}e.create=t;function n(r){var i,s=r;return St.defined(s)&&$n.is(s.range)&&St.string(s.message)&&(St.number(s.severity)||St.undefined(s.severity))&&(St.integer(s.code)||St.string(s.code)||St.undefined(s.code))&&(St.undefined(s.codeDescription)||St.string((i=s.codeDescription)===null||i===void 0?void 0:i.href))&&(St.string(s.source)||St.undefined(s.source))&&(St.undefined(s.relatedInformation)||St.typedArray(s.relatedInformation,oc.is))}e.is=n})(Ti||(Ti={}));var Os;(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 St.defined(s)&&s.length>0&&(o.arguments=s),o}e.create=t;function n(r){var i=r;return St.defined(i)&&St.string(i.title)&&St.string(i.command)}e.is=n})(Os||(Os={}));var wr;(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 St.objectLiteral(a)&&St.string(a.newText)&&$n.is(a.range)}e.is=i})(wr||(wr={}));var Da;(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 St.objectLiteral(i)&&St.string(i.label)&&(St.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(St.string(i.description)||i.description===void 0)}e.is=n})(Da||(Da={}));var ni;(function(e){function t(n){var r=n;return St.string(r)}e.is=t})(ni||(ni={}));var xs;(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 wr.is(a)&&(Da.is(a.annotationId)||ni.is(a.annotationId))}e.is=i})(xs||(xs={}));var Ko;(function(e){function t(r,i){return{textDocument:r,edits:i}}e.create=t;function n(r){var i=r;return St.defined(i)&&eu.is(i.textDocument)&&Array.isArray(i.edits)}e.is=n})(Ko||(Ko={}));var uo;(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"&&St.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||St.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||St.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||ni.is(i.annotationId))}e.is=n})(uo||(uo={}));var lo;(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"&&St.string(i.oldUri)&&St.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||St.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||St.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||ni.is(i.annotationId))}e.is=n})(lo||(lo={}));var co;(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"&&St.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||St.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||St.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||ni.is(i.annotationId))}e.is=n})(co||(co={}));var lc;(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 St.string(i.kind)?uo.is(i)||lo.is(i)||co.is(i):Ko.is(i)}))}e.is=t})(lc||(lc={}));var Zo=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=wr.insert(t,n):ni.is(r)?(s=r,i=xs.insert(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=xs.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=wr.replace(t,n):ni.is(r)?(s=r,i=xs.replace(t,n,r)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(r),i=xs.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=wr.del(t):ni.is(n)?(i=n,r=xs.del(t,n)):(this.assertChangeAnnotations(this.changeAnnotations),i=this.changeAnnotations.manage(n),r=xs.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}(),ih=function(){function e(t){this._annotations=t===void 0?Object.create(null):t,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(t,n){var r;if(ni.is(t)?r=t:(r=this.nextId(),n=t),this._annotations[r]!==void 0)throw new Error("Id ".concat(r," is already in use."));if(n===void 0)throw new Error("No annotation provided for id ".concat(r));return this._annotations[r]=n,this._size++,r},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}();(function(){function e(t){var n=this;this._textEditChanges=Object.create(null),t!==void 0?(this._workspaceEdit=t,t.documentChanges?(this._changeAnnotations=new ih(t.changeAnnotations),t.changeAnnotations=this._changeAnnotations.all(),t.documentChanges.forEach(function(r){if(Ko.is(r)){var i=new Zo(r.edits,n._changeAnnotations);n._textEditChanges[r.textDocument.uri]=i}})):t.changes&&Object.keys(t.changes).forEach(function(r){var i=new Zo(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(eu.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 Zo(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 Zo(i),this._textEditChanges[t]=r}return r}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new ih,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;Da.is(n)||ni.is(n)?i=n:r=n;var s,a;if(i===void 0?s=uo.create(t,r):(a=ni.is(i)?i:this._changeAnnotations.manage(i),s=uo.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;Da.is(r)||ni.is(r)?s=r:i=r;var a,o;if(s===void 0?a=lo.create(t,n,i):(o=ni.is(s)?s:this._changeAnnotations.manage(s),a=lo.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;Da.is(n)||ni.is(n)?i=n:r=n;var s,a;if(i===void 0?s=co.create(t,r):(a=ni.is(i)?i:this._changeAnnotations.manage(i),s=co.create(t,r,a)),this._workspaceEdit.documentChanges.push(s),a!==void 0)return a},e})();var sh;(function(e){function t(r){return{uri:r}}e.create=t;function n(r){var i=r;return St.defined(i)&&St.string(i.uri)}e.is=n})(sh||(sh={}));var ah;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){var i=r;return St.defined(i)&&St.string(i.uri)&&St.integer(i.version)}e.is=n})(ah||(ah={}));var eu;(function(e){function t(r,i){return{uri:r,version:i}}e.create=t;function n(r){var i=r;return St.defined(i)&&St.string(i.uri)&&(i.version===null||St.integer(i.version))}e.is=n})(eu||(eu={}));var oh;(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 St.defined(i)&&St.string(i.uri)&&St.string(i.languageId)&&St.integer(i.version)&&St.string(i.text)}e.is=n})(oh||(oh={}));var ws;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(n){var r=n;return r===e.PlainText||r===e.Markdown}e.is=t})(ws||(ws={}));var fo;(function(e){function t(n){var r=n;return St.objectLiteral(n)&&ws.is(r.kind)&&St.string(r.value)}e.is=t})(fo||(fo={}));var Ei;(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})(Ei||(Ei={}));var Kr;(function(e){e.PlainText=1,e.Snippet=2})(Kr||(Kr={}));var uh;(function(e){e.Deprecated=1})(uh||(uh={}));var lh;(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&&St.string(i.newText)&&$n.is(i.insert)&&$n.is(i.replace)}e.is=n})(lh||(lh={}));var cc;(function(e){e.asIs=1,e.adjustIndentation=2})(cc||(cc={}));var ch;(function(e){function t(n){var r=n;return r&&(St.string(r.detail)||r.detail===void 0)&&(St.string(r.description)||r.description===void 0)}e.is=t})(ch||(ch={}));var fc;(function(e){function t(n){return{label:n}}e.create=t})(fc||(fc={}));var pc;(function(e){function t(n,r){return{items:n||[],isIncomplete:!!r}}e.create=t})(pc||(pc={}));var tu;(function(e){function t(r){return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function n(r){var i=r;return St.string(i)||St.objectLiteral(i)&&St.string(i.language)&&St.string(i.value)}e.is=n})(tu||(tu={}));var fh;(function(e){function t(n){var r=n;return!!r&&St.objectLiteral(r)&&(fo.is(r.contents)||tu.is(r.contents)||St.typedArray(r.contents,tu.is))&&(n.range===void 0||$n.is(n.range))}e.is=t})(fh||(fh={}));var ph;(function(e){function t(n,r){return r?{label:n,documentation:r}:{label:n}}e.create=t})(ph||(ph={}));var dh;(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 St.defined(r)&&(a.documentation=r),St.defined(i)?a.parameters=i:a.parameters=[],a}e.create=t})(dh||(dh={}));var hh;(function(e){e.Text=1,e.Read=2,e.Write=3})(hh||(hh={}));var mh;(function(e){function t(n,r){var i={range:n};return St.number(r)&&(i.kind=r),i}e.create=t})(mh||(mh={}));var Ki;(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})(Ki||(Ki={}));var gh;(function(e){e.Deprecated=1})(gh||(gh={}));var yh;(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})(yh||(yh={}));var Dh;(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})(Dh||(Dh={}));var bh;(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&&St.string(i.name)&&St.number(i.kind)&&$n.is(i.range)&&$n.is(i.selectionRange)&&(i.detail===void 0||St.string(i.detail))&&(i.deprecated===void 0||St.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=n})(bh||(bh={}));var js;(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"})(js||(js={}));var nu;(function(e){e.Invoked=1,e.Automatic=2})(nu||(nu={}));var vh;(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 St.defined(i)&&St.typedArray(i.diagnostics,Ti.is)&&(i.only===void 0||St.typedArray(i.only,St.string))&&(i.triggerKind===void 0||i.triggerKind===nu.Invoked||i.triggerKind===nu.Automatic)}e.is=n})(vh||(vh={}));var Fs;(function(e){function t(r,i,s){var a={title:r},o=!0;return typeof i=="string"?(o=!1,a.kind=i):Os.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&&St.string(i.title)&&(i.diagnostics===void 0||St.typedArray(i.diagnostics,Ti.is))&&(i.kind===void 0||St.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Os.is(i.command))&&(i.isPreferred===void 0||St.boolean(i.isPreferred))&&(i.edit===void 0||lc.is(i.edit))}e.is=n})(Fs||(Fs={}));var dc;(function(e){function t(r,i){var s={range:r};return St.defined(i)&&(s.data=i),s}e.create=t;function n(r){var i=r;return St.defined(i)&&$n.is(i.range)&&(St.undefined(i.command)||Os.is(i.command))}e.is=n})(dc||(dc={}));var Eh;(function(e){function t(r,i){return{tabSize:r,insertSpaces:i}}e.create=t;function n(r){var i=r;return St.defined(i)&&St.uinteger(i.tabSize)&&St.boolean(i.insertSpaces)}e.is=n})(Eh||(Eh={}));var Ah;(function(e){function t(r,i,s){return{range:r,target:i,data:s}}e.create=t;function n(r){var i=r;return St.defined(i)&&$n.is(i.range)&&(St.undefined(i.target)||St.string(i.target))}e.is=n})(Ah||(Ah={}));var Ch;(function(e){function t(r,i){return{range:r,parent:i}}e.create=t;function n(r){var i=r;return St.objectLiteral(i)&&$n.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=n})(Ch||(Ch={}));var Sh;(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"})(Sh||(Sh={}));var xh;(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"})(xh||(xh={}));var wh;(function(e){function t(n){var r=n;return St.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})(wh||(wh={}));var Fh;(function(e){function t(r,i){return{range:r,text:i}}e.create=t;function n(r){var i=r;return i!=null&&$n.is(i.range)&&St.string(i.text)}e.is=n})(Fh||(Fh={}));var Nh;(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&&$n.is(i.range)&&St.boolean(i.caseSensitiveLookup)&&(St.string(i.variableName)||i.variableName===void 0)}e.is=n})(Nh||(Nh={}));var _h;(function(e){function t(r,i){return{range:r,expression:i}}e.create=t;function n(r){var i=r;return i!=null&&$n.is(i.range)&&(St.string(i.expression)||i.expression===void 0)}e.is=n})(_h||(_h={}));var Th;(function(e){function t(r,i){return{frameId:r,stoppedLocation:i}}e.create=t;function n(r){var i=r;return St.defined(i)&&$n.is(r.stoppedLocation)}e.is=n})(Th||(Th={}));var hc;(function(e){e.Type=1,e.Parameter=2;function t(n){return n===1||n===2}e.is=t})(hc||(hc={}));var mc;(function(e){function t(r){return{value:r}}e.create=t;function n(r){var i=r;return St.objectLiteral(i)&&(i.tooltip===void 0||St.string(i.tooltip)||fo.is(i.tooltip))&&(i.location===void 0||ya.is(i.location))&&(i.command===void 0||Os.is(i.command))}e.is=n})(mc||(mc={}));var kh;(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 St.objectLiteral(i)&&Jr.is(i.position)&&(St.string(i.label)||St.typedArray(i.label,mc.is))&&(i.kind===void 0||hc.is(i.kind))&&i.textEdits===void 0||St.typedArray(i.textEdits,wr.is)&&(i.tooltip===void 0||St.string(i.tooltip)||fo.is(i.tooltip))&&(i.paddingLeft===void 0||St.boolean(i.paddingLeft))&&(i.paddingRight===void 0||St.boolean(i.paddingRight))}e.is=n})(kh||(kh={}));var Lh;(function(e){function t(n){var r=n;return St.objectLiteral(r)&&rc.is(r.uri)&&St.string(r.name)}e.is=t})(Lh||(Lh={}));var Ph;(function(e){function t(s,a,o,u){return new oy(s,a,o,u)}e.create=t;function n(s){var a=s;return!!(St.defined(a)&&St.string(a.uri)&&(St.undefined(a.languageId)||St.string(a.languageId))&&St.uinteger(a.lineCount)&&St.func(a.getText)&&St.func(a.positionAt)&&St.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),B=s.offsetAt(p.range.end);if(B<=l)o=o.substring(0,O)+p.newText+o.substring(B,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 B=a(u[A],l[p]);B<=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}})(Ph||(Ph={}));var oy=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 Jr.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 Jr.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}(),St;(function(e){var t=Object.prototype.toString;function n(B){return typeof B<"u"}e.defined=n;function r(B){return typeof B>"u"}e.undefined=r;function i(B){return B===!0||B===!1}e.boolean=i;function s(B){return t.call(B)==="[object String]"}e.string=s;function a(B){return t.call(B)==="[object Number]"}e.number=a;function o(B,re,te){return t.call(B)==="[object Number]"&&re<=B&&B<=te}e.numberRange=o;function u(B){return t.call(B)==="[object Number]"&&-2147483648<=B&&B<=2147483647}e.integer=u;function l(B){return t.call(B)==="[object Number]"&&0<=B&&B<=2147483647}e.uinteger=l;function A(B){return t.call(B)==="[object Function]"}e.func=A;function p(B){return B!==null&&typeof B=="object"}e.objectLiteral=p;function O(B,re){return Array.isArray(B)&&B.every(re)}e.typedArray=O})(St||(St={}));const gc=Symbol.for("yaml.alias"),yc=Symbol.for("yaml.document"),Ns=Symbol.for("yaml.map"),Bh=Symbol.for("yaml.pair"),ss=Symbol.for("yaml.scalar"),ba=Symbol.for("yaml.seq"),ki=Symbol.for("yaml.node.type"),Zi=e=>!!e&&typeof e=="object"&&e[ki]===gc,po=e=>!!e&&typeof e=="object"&&e[ki]===yc,Ur=e=>!!e&&typeof e=="object"&&e[ki]===Ns,dr=e=>!!e&&typeof e=="object"&&e[ki]===Bh,Jn=e=>!!e&&typeof e=="object"&&e[ki]===ss,Pr=e=>!!e&&typeof e=="object"&&e[ki]===ba;function Lr(e){if(e&&typeof e=="object")switch(e[ki]){case Ns:case ba:return!0}return!1}function yr(e){if(e&&typeof e=="object")switch(e[ki]){case gc:case Ns:case ss:case ba:return!0}return!1}const uy=e=>(Jn(e)||Lr(e))&&!!e.anchor,$s=Symbol("break visit"),ly=Symbol("skip children"),ho=Symbol("remove node");function Nr(e,t){const n=cy(t);po(e)?va(null,e.contents,n,Object.freeze([e]))===ho&&(e.contents=null):va(null,e,n,Object.freeze([]))}Nr.BREAK=$s,Nr.SKIP=ly,Nr.REMOVE=ho;function va(e,t,n,r){const i=fy(e,t,n,r);if(yr(i)||dr(i))return py(e,r,i),va(e,i,n,r);if(typeof i!="symbol"){if(Lr(t)){r=Object.freeze(r.concat(t));for(let s=0;s<t.items.length;++s){const a=va(s,t.items[s],n,r);if(typeof a=="number")s=a-1;else{if(a===$s)return $s;a===ho&&(t.items.splice(s,1),s-=1)}}}else if(dr(t)){r=Object.freeze(r.concat(t));const s=va("key",t.key,n,r);if(s===$s)return $s;s===ho&&(t.key=null);const a=va("value",t.value,n,r);if(a===$s)return $s;a===ho&&(t.value=null)}}return i}function cy(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 fy(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(Pr(t))return(s=n.Seq)==null?void 0:s.call(n,e,t,r);if(dr(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(Zi(t))return(u=n.Alias)==null?void 0:u.call(n,e,t,r)}function py(e,t,n){const r=t[t.length-1];if(Lr(r))r.items[e]=n;else if(dr(r))e==="key"?r.key=n:r.value=n;else if(po(r))r.contents=n;else{const i=Zi(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${i} parent`)}}const dy={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},hy=e=>e.replace(/[!,[\]{}]/g,t=>dy[t]);class ai{constructor(t,n){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},ai.defaultYaml,t),this.tags=Object.assign({},ai.defaultTags,n)}clone(){const t=new ai(this.yaml,this.tags);return t.docStart=this.docStart,t}atDocument(){const t=new ai(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:ai.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},ai.defaultTags);break}return t}add(t,n){this.atNextDocument&&(this.yaml={explicit:ai.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},ai.defaultTags),this.atNextDocument=!1);const r=t.trim().split(/[ \t]+/),i=r.shift();switch(i){case"%TAG":{if(r.length!==2&&(n(0,"%TAG directive should contain exactly two parts"),r.length<2))return!1;const[s,a]=r;return this.tags[s]=a,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return n(0,"%YAML directive should contain exactly one part"),!1;const[s]=r;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const a=/^\d+\.\d+$/.test(s);return n(6,`Unsupported YAML version ${s}`,a),!1}}default:return n(0,`Unknown directive ${i}`,!0),!1}}tagName(t,n){if(t==="!")return"!";if(t[0]!=="!")return n(`Not a valid tag: ${t}`),null;if(t[1]==="<"){const a=t.slice(2,-1);return a==="!"||a==="!!"?(n(`Verbatim tags aren't resolved, so ${t} is invalid.`),null):(t[t.length-1]!==">"&&n("Verbatim tags must end with a >"),a)}const[,r,i]=t.match(/^(.*!)([^!]*)$/);i||n(`The ${t} tag has no suffix`);const s=this.tags[r];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+hy(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&&yr(t.contents)){const s={};Nr(t.contents,(a,o)=>{yr(o)&&o.tag&&(s[o.tag]=!0)}),i=Object.keys(s)}else i=[];for(const[s,a]of r)s==="!!"&&a==="tag:yaml.org,2002:"||(!t||i.some(o=>o.startsWith(a)))&&n.push(`%TAG ${s} ${a}`);return n.join(`
15
- `)}}ai.defaultYaml={explicit:!1,version:"1.2"},ai.defaultTags={"!!":"tag:yaml.org,2002:"};function Mh(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 Ih(e){const t=new Set;return Nr(e,{Value(n,r){r.anchor&&t.add(r.anchor)}}),t}function Oh(e,t){for(let n=1;;++n){const r=`${e}${n}`;if(!t.has(r))return r}}function my(e,t){const n=[],r=new Map;let i=null;return{onAnchor:s=>{n.push(s),i||(i=Ih(e));const a=Oh(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)||Lr(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 Ea(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=Ea(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=Ea(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=Ea(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=Ea(e,r,i,s);a===void 0?delete r[i]:a!==s&&(r[i]=a)}return e.call(t,n,r)}function Li(e,t,n){if(Array.isArray(e))return e.map((r,i)=>Li(r,String(i),n));if(e&&typeof e.toJSON=="function"){if(!n||!uy(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 Dc{constructor(t){Object.defineProperty(this,ki,{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(!po(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=Li(this,"",a);if(typeof i=="function")for(const{count:u,res:l}of a.anchors.values())i(l,u);return typeof s=="function"?Ea(s,{"":o},"",o):o}}class bc extends Dc{constructor(t){super(gc),this.source=t,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(t){let n;return Nr(t,{Node:(r,i)=>{if(i===this)return Nr.BREAK;i.anchor===this.source&&(n=i)}}),n}toJSON(t,n){if(!n)return{source:this.source};const{anchors:r,doc:i,maxAliasCount:s}=n,a=this.resolve(i);if(!a){const u=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(u)}let o=r.get(a);if(o||(Li(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=ru(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(Mh(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 ru(e,t,n){if(Zi(t)){const r=t.resolve(e),i=n&&r&&n.get(r);return i?i.count*i.aliasCount:0}else if(Lr(t)){let r=0;for(const i of t.items){const s=ru(e,i,n);s>r&&(r=s)}return r}else if(dr(t)){const r=ru(e,t.key,n),i=ru(e,t.value,n);return Math.max(r,i)}return 1}const jh=e=>!e||typeof e!="function"&&typeof e!="object";class Zn extends Dc{constructor(t){super(ss),this.value=t}toJSON(t,n){return n!=null&&n.keep?this.value:Li(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 gy="tag:yaml.org,2002:";function yy(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 mo(e,t,n){var p,O,B;if(po(e)&&(e=e.contents),yr(e))return e;if(dr(e)){const re=(O=(p=n.schema[Ns]).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 bc(u.anchor);u={anchor:null,node:null},o.set(e,u)}t!=null&&t.startsWith("!!")&&(t=gy+t.slice(2));let l=yy(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[Ns]:Symbol.iterator in Object(e)?a[ba]:a[Ns]}s&&(s(l),delete n.onTagObj);const A=l!=null&&l.createNode?l.createNode(n.schema,e,n):typeof((B=l==null?void 0:l.nodeClass)==null?void 0:B.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 iu(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 mo(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 go=e=>e==null||typeof e=="object"&&!!e[Symbol.iterator]().next().done;class su extends Dc{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=>yr(r)||dr(r)?r.clone(t):r),this.range&&(n.range=this.range.slice()),n}addIn(t,n){if(go(t))this.add(n);else{const[r,...i]=t,s=this.get(r,!0);if(Lr(s))s.addIn(i,n);else if(s===void 0&&this.schema)this.set(r,iu(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(Lr(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:Lr(s)?s.getIn(i,n):void 0}hasAllNullValues(t){return this.items.every(n=>{if(!dr(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 Lr(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(Lr(s))s.setIn(i,n);else if(s===void 0&&this.schema)this.set(r,iu(this.schema,i,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${i}`)}}}su.maxFlowStringSingleLineLength=60;const Dy=e=>e.replace(/^(?!$)(?: $)?/gm,"#");function as(e,t){return/^\n+$/.test(e)?e.substring(1):t?e.replace(/^(?! *$)/gm,t):e}const _s=(e,t,n)=>e.endsWith(`
16
- `)?as(n,t):n.includes(`
17
- `)?`
18
- `+as(n,t):(e.endsWith(" ")?"":" ")+n,$h="flow",vc="block",au="quoted";function ou(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,B,re=!1,te=-1,N=-1,ue=-1;n===vc&&(te=Rh(e,te),te!==-1&&(p=te+u));for(let ke;ke=e[te+=1];){if(n===au&&ke==="\\"){switch(N=te,e[te+1]){case"x":te+=3;break;case"u":te+=5;break;case"U":te+=9;break;default:te+=1}ue=te}if(ke===`
19
- `)n===vc&&(te=Rh(e,te)),p=te+u,O=void 0;else{if(ke===" "&&B&&B!==" "&&B!==`
20
- `&&B!==" "){const Je=e[te+1];Je&&Je!==" "&&Je!==`
21
- `&&Je!==" "&&(O=te)}if(te>=p)if(O)l.push(O),p=O+u,O=void 0;else if(n===au){for(;B===" "||B===" ";)B=ke,ke=e[te+=1],re=!0;const Je=te>ue+1?te-2:N-1;if(A[Je])return e;l.push(Je),A[Je]=!0,p=Je+u,O=void 0}else re=!0}B=ke}if(re&&o&&o(),l.length===0)return e;a&&a();let Te=e.slice(0,l[0]);for(let ke=0;ke<l.length;++ke){const Je=l[ke],me=l[ke+1]||e.length;Je===0?Te=`
22
- ${t}${e.slice(0,me)}`:(n===au&&A[Je]&&(Te+=`${e[Je]}\\`),Te+=`
23
- ${t}${e.slice(Je+1,me)}`)}return Te}function Rh(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 uu=(e,t)=>({indentAtStart:t?e.indent.length:e.indentAtStart,lineWidth:e.options.lineWidth,minContentWidth:e.options.minContentWidth}),lu=e=>/^(%|---|\.\.\.)/m.test(e);function by(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 yo(e,t){const n=JSON.stringify(e);if(t.options.doubleQuotedAsJSON)return n;const{implicitKey:r}=t,i=t.options.doubleQuotedMinMultiLineLength,s=t.indent||(lu(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:ou(a,s,au,uu(t,!1))}function Ec(e,t){if(t.options.singleQuote===!1||t.implicitKey&&e.includes(`
29
- `)||/[ \t]\n|\n[ \t]/.test(e))return yo(e,t);const n=t.indent||(lu(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$&
30
- ${n}`)+"'";return t.implicitKey?r:ou(r,n,$h,uu(t,!1))}function Aa(e,t){const{singleQuote:n}=t.options;let r;if(n===!1)r=yo;else{const i=e.includes('"'),s=e.includes("'");i&&!s?r=Ec:s&&!i?r=yo:r=n?Ec:yo}return r(e,t)}let Ac;try{Ac=new RegExp(`(^|(?<!
31
- ))
32
- +(?!
33
- |$)`,"g")}catch{Ac=/\n+(?!\n|$)/g}function cu({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 Aa(n,r);const l=r.indent||(r.forceBlockIndent||lu(n)?" ":""),A=a==="literal"?!0:a==="folded"||t===Zn.BLOCK_FOLDED?!1:t===Zn.BLOCK_LITERAL?!0:!by(n,u,l.length);if(!n)return A?`|
34
- `:`>
35
- `;let p,O;for(O=n.length;O>0;--O){const Le=n[O-1];if(Le!==`
36
- `&&Le!==" "&&Le!==" ")break}let B=n.substring(O);const re=B.indexOf(`
37
- `);re===-1?p="-":n===B||re!==B.length-1?(p="+",s&&s()):p="",B&&(n=n.slice(0,-B.length),B[B.length-1]===`
38
- `&&(B=B.slice(0,-1)),B=B.replace(Ac,`$&${l}`));let te=!1,N,ue=-1;for(N=0;N<n.length;++N){const Le=n[N];if(Le===" ")te=!0;else if(Le===`
39
- `)ue=N;else break}let Te=n.substring(0,ue<N?ue+1:N);Te&&(n=n.substring(Te.length),Te=Te.replace(/\n+/g,`$&${l}`));let Je=(A?"|":">")+(te?l?"2":"1":"")+p;if(e&&(Je+=" "+o(e.replace(/ ?[\r\n]+/g," ")),i&&i()),A)return n=n.replace(/\n+/g,`$&${l}`),`${Je}
40
- ${l}${Te}${n}${B}`;n=n.replace(/\n+/g,`
41
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${l}`);const me=ou(`${Te}${n}${B}`,l,vc,uu(r,!0));return`${Je}
42
- ${l}${me}`}function vy(e,t,n,r){const{type:i,value:s}=e,{actualString:a,implicitKey:o,indent:u,indentStep:l,inFlow:A}=t;if(o&&/[\n[\]{},]/.test(s)||A&&/[[\]{},]/.test(s))return Aa(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return o||A||!s.includes(`
43
- `)?Aa(s,t):cu(e,t,n,r);if(!o&&!A&&i!==Zn.PLAIN&&s.includes(`
44
- `))return cu(e,t,n,r);if(lu(s)){if(u==="")return t.forceBlockIndent=!0,cu(e,t,n,r);if(o&&u===l)return Aa(s,t)}const p=s.replace(/\n+/g,`$&
45
- ${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:B,tags:re}=t.doc.schema;if(re.some(O)||B!=null&&B.some(O))return Aa(s,t)}return o?p:ou(p,u,$h,uu(t,!1))}function Cc(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?Aa(a.value,t):cu(a,t,n,r);case Zn.QUOTE_DOUBLE:return yo(a.value,t);case Zn.QUOTE_SINGLE:return Ec(a.value,t);case Zn.PLAIN:return vy(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 Vh(e,t){const n=Object.assign({blockQuote:!0,commentString:Dy,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 Ey(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 Ay(e,t,{anchors:n,doc:r}){if(!r.directives)return"";const i=[],s=(Jn(e)||Lr(e))&&e.anchor;s&&Mh(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 Ca(e,t,n,r){var u;if(dr(e))return e.toString(t,n,r);if(Zi(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=yr(e)?e:t.doc.createNode(e,{onTagObj:l=>i=l});i||(i=Ey(t.doc.schema.tags,s));const a=Ay(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)?Cc(s,t,n,r):s.toString(t,n,r);return a?Jn(s)||o[0]==="{"||o[0]==="["?`${a} ${o}`:`${a}
46
- ${t.indent}${o}`:o}function Cy({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=yr(e)&&e.comment||null;if(p){if(O)throw new Error("With simple keys, key nodes cannot have comments");if(Lr(e)){const ct="With simple keys, collection cannot be used as a key value";throw new Error(ct)}}let B=!p&&(!e||O&&t==null&&!n.inFlow||Lr(e)||(Jn(e)?e.type===Zn.BLOCK_FOLDED||e.type===Zn.BLOCK_LITERAL:typeof e=="object"));n=Object.assign({},n,{allNullValues:!1,implicitKey:!B&&(p||!s),indent:o+u});let re=!1,te=!1,N=Ca(e,n,()=>re=!0,()=>te=!0);if(!B&&!n.inFlow&&N.length>1024){if(p)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");B=!0}if(n.inFlow){if(s||t==null)return re&&r&&r(),N===""?"?":B?`? ${N}`:N}else if(s&&!p||t==null&&B)return N=`? ${N}`,O&&!re?N+=_s(N,n.indent,l(O)):te&&i&&i(),N;re&&(O=null),B?(O&&(N+=_s(N,n.indent,l(O))),N=`? ${N}
47
- ${o}:`):(N=`${N}:`,O&&(N+=_s(N,n.indent,l(O))));let ue,Te,ke;yr(t)?(ue=!!t.spaceBefore,Te=t.commentBefore,ke=t.comment):(ue=!1,Te=null,ke=null,t&&typeof t=="object"&&(t=a.createNode(t))),n.implicitKey=!1,!B&&!O&&Jn(t)&&(n.indentAtStart=N.length+1),te=!1,!A&&u.length>=2&&!n.inFlow&&!B&&Pr(t)&&!t.flow&&!t.tag&&!t.anchor&&(n.indent=n.indent.substring(2));let Je=!1;const me=Ca(t,n,()=>Je=!0,()=>te=!0);let Le=" ";if(O||ue||Te){if(Le=ue?`
48
- `:"",Te){const ct=l(Te);Le+=`
49
- ${as(ct,n.indent)}`}me===""&&!n.inFlow?Le===`
50
- `&&(Le=`
51
-
52
- `):Le+=`
53
- ${n.indent}`}else if(!B&&Lr(t)){const ct=me[0],xt=me.indexOf(`
54
- `),Se=xt!==-1,we=n.inFlow??t.flow??t.items.length===0;if(Se||!we){let tt=!1;if(Se&&(ct==="&"||ct==="!")){let Ve=me.indexOf(" ");ct==="&"&&Ve!==-1&&Ve<xt&&me[Ve+1]==="!"&&(Ve=me.indexOf(" ",Ve+1)),(Ve===-1||xt<Ve)&&(tt=!0)}tt||(Le=`
55
- ${n.indent}`)}}else(me===""||me[0]===`
56
- `)&&(Le="");return N+=Le+me,n.inFlow?Je&&r&&r():ke&&!Je?N+=_s(N,n.indent,l(ke)):te&&i&&i(),N}function Uh(e,t){(e==="debug"||e==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(t):console.warn(t))}const qh="<<";function Wh(e,t,{key:n,value:r}){if(e!=null&&e.doc.schema.merge&&Sy(n))if(r=Zi(r)?r.resolve(e.doc):r,Pr(r))for(const i of r.items)Sc(e,t,i);else if(Array.isArray(r))for(const i of r)Sc(e,t,i);else Sc(e,t,r);else{const i=Li(n,"",e);if(t instanceof Map)t.set(i,Li(r,i,e));else if(t instanceof Set)t.add(i);else{const s=xy(n,i,e),a=Li(r,s,e);s in t?Object.defineProperty(t,s,{value:a,writable:!0,enumerable:!0,configurable:!0}):t[s]=a}}return t}const Sy=e=>e===qh||Jn(e)&&e.value===qh&&(!e.type||e.type===Zn.PLAIN);function Sc(e,t,n){const r=e&&Zi(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 xy(e,t,n){if(t===null)return"";if(typeof t!="object")return String(t);if(yr(e)&&n&&n.doc){const r=Vh(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 xc(e,t,n){const r=mo(e,void 0,n),i=mo(t,void 0,n);return new oi(r,i)}class oi{constructor(t,n=null){Object.defineProperty(this,ki,{value:Bh}),this.key=t,this.value=n}clone(t){let{key:n,value:r}=this;return yr(n)&&(n=n.clone(t)),yr(r)&&(r=r.clone(t)),new oi(n,r)}toJSON(t,n){const r=n!=null&&n.mapAsMap?new Map:{};return Wh(n,r,this)}toString(t,n,r){return t!=null&&t.doc?Cy(this,t,n,r):JSON.stringify(this)}}function Gh(e,t,n){return(t.inFlow??e.flow?Fy:wy)(e,t,n)}function wy({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(yr(te))!p&&te.spaceBefore&&O.push(""),fu(n,O,te.commentBefore,p),te.comment&&(N=te.comment);else if(dr(te)){const Te=yr(te.key)?te.key:null;Te&&(!p&&Te.spaceBefore&&O.push(""),fu(n,O,Te.commentBefore,p))}p=!1;let ue=Ca(te,A,()=>N=null,()=>p=!0);N&&(ue+=_s(ue,s,l(N))),p&&N&&(p=!1),O.push(r+ue)}let B;if(O.length===0)B=i.start+i.end;else{B=O[0];for(let re=1;re<O.length;++re){const te=O[re];B+=te?`
57
- ${u}${te}`:`
58
- `}}return e?(B+=`
59
- `+as(l(e),u),o&&o()):p&&a&&a(),B}function Fy({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 B=[];for(let ue=0;ue<t.length;++ue){const Te=t[ue];let ke=null;if(yr(Te))Te.spaceBefore&&B.push(""),fu(n,B,Te.commentBefore,!1),Te.comment&&(ke=Te.comment);else if(dr(Te)){const me=yr(Te.key)?Te.key:null;me&&(me.spaceBefore&&B.push(""),fu(n,B,me.commentBefore,!1),me.comment&&(p=!0));const Le=yr(Te.value)?Te.value:null;Le?(Le.comment&&(ke=Le.comment),Le.commentBefore&&(p=!0)):Te.value==null&&me&&me.comment&&(ke=me.comment)}ke&&(p=!0);let Je=Ca(Te,A,()=>ke=null);ue<t.length-1&&(Je+=","),ke&&(Je+=_s(Je,i,l(ke))),!p&&(B.length>O||Je.includes(`
60
- `))&&(p=!0),B.push(Je),O=B.length}let re;const{start:te,end:N}=r;if(B.length===0)re=te+N;else if(p||(p=B.reduce((Te,ke)=>Te+ke.length+2,2)>su.maxFlowStringSingleLineLength),p){re=te;for(const ue of B)re+=ue?`
61
- ${o}${a}${ue}`:`
62
- `;re+=`
63
- ${a}${N}`}else re=`${te}${u}${B.join(" ")}${u}${N}`;return e&&(re+=_s(re,a,l(e)),s&&s()),re}function fu({indent:e,options:{commentString:t}},n,r,i){if(r&&i&&(r=r.replace(/^\n+/,"")),r){const s=as(t(r),e);n.push(s.trimStart())}}function Rs(e,t){const n=Jn(t)?t.value:t;for(const r of e)if(dr(r)&&(r.key===t||r.key===n||Jn(r.key)&&r.key.value===n))return r}class Pi extends su{static get tagName(){return"tag:yaml.org,2002:map"}constructor(t){super(Ns,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(xc(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;dr(t)?r=t:!t||typeof t!="object"||!("key"in t)?r=new oi(t,t==null?void 0:t.value):r=new oi(t.key,t.value);const i=Rs(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)&&jh(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=Rs(this.items,t);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(t,n){const r=Rs(this.items,t),i=r==null?void 0:r.value;return(!n&&Jn(i)?i.value:i)??void 0}has(t){return!!Rs(this.items,t)}set(t,n){this.add(new oi(t,n),!0)}toJSON(t,n,r){const i=r?new r:n!=null&&n.mapAsMap?new Map:{};n!=null&&n.onCreate&&n.onCreate(i);for(const s of this.items)Wh(n,i,s);return i}toString(t,n,r){if(!t)return JSON.stringify(this);for(const i of this.items)if(!dr(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})),Gh(this,t,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:t.indent||"",onChompKeep:r,onComment:n})}}const Sa={collection:"map",default:!0,nodeClass:Pi,tag:"tag:yaml.org,2002:map",resolve(e,t){return Ur(e)||t("Expected a mapping for this tag"),e},createNode:(e,t,n)=>Pi.from(e,t,n)};class Vs extends su{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(t){super(ba,t),this.items=[]}add(t){this.items.push(t)}delete(t){const n=pu(t);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(t,n){const r=pu(t);if(typeof r!="number")return;const i=this.items[r];return!n&&Jn(i)?i.value:i}has(t){const n=pu(t);return typeof n=="number"&&n<this.items.length}set(t,n){const r=pu(t);if(typeof r!="number")throw new Error(`Expected a valid index, not ${t}.`);const i=this.items[r];Jn(i)&&jh(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(Li(s,String(i++),n));return r}toString(t,n,r){return t?Gh(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(mo(o,void 0,r))}}return s}}function pu(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 xa={collection:"seq",default:!0,nodeClass:Vs,tag:"tag:yaml.org,2002:seq",resolve(e,t){return Pr(e)||t("Expected a sequence for this tag"),e},createNode:(e,t,n)=>Vs.from(e,t,n)},du={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),Cc(e,t,n,r)}},hu={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"&&hu.test.test(e)?e:t.options.nullStr},wc={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&&wc.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 Jh={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},Yh={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)}},Hh={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},mu=e=>typeof e=="bigint"||Number.isInteger(e),Fc=(e,t,n,{intAsBigInt:r})=>r?BigInt(e):parseInt(e.substring(t),n);function zh(e,t,n){const{value:r}=e;return mu(r)&&r>=0?n+r.toString(t):Ui(e)}const Qh={identify:e=>mu(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(e,t,n)=>Fc(e,2,8,n),stringify:e=>zh(e,8,"0o")},Xh={identify:mu,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(e,t,n)=>Fc(e,0,10,n),stringify:Ui},Kh={identify:e=>mu(e)&&e>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(e,t,n)=>Fc(e,2,16,n),stringify:e=>zh(e,16,"0x")},Ny=[Sa,xa,du,hu,wc,Qh,Xh,Kh,Jh,Yh,Hh];function Zh(e){return typeof e=="bigint"||Number.isInteger(e)}const gu=({value:e})=>JSON.stringify(e),_y=[{identify:e=>typeof e=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:e=>e,stringify:gu},{identify:e=>e==null,createNode:()=>new Zn(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:gu},{identify:e=>typeof e=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:e=>e==="true",stringify:gu},{identify:Zh,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})=>Zh(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:gu}],Ty={default:!0,tag:"",test:/^/,resolve(e,t){return t(`Unresolved plain scalar ${JSON.stringify(e)}`),e}},ky=[Sa,xa].concat(_y,Ty),Nc={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?`
64
- `:" ")}return Cc({comment:e,type:t,value:o},r,i,s)}};function em(e,t){if(Pr(e))for(let n=0;n<e.items.length;++n){let r=e.items[n];if(!dr(r)){if(Ur(r)){r.items.length>1&&t("Each pair must have its own sequence indicator");const i=r.items[0]||new oi(new Zn(null));if(r.commentBefore&&(i.key.commentBefore=i.key.commentBefore?`${r.commentBefore}
65
- ${i.key.commentBefore}`:r.commentBefore),r.comment){const s=i.value??i.key;s.comment=s.comment?`${r.comment}
66
- ${s.comment}`:r.comment}r=i}e.items[n]=dr(r)?r:new oi(r)}}else t("Expected a sequence for this tag");return e}function tm(e,t,n){const{replacer:r}=n,i=new Vs(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 { key: value } tuple: ${a}`)}else o=a;i.items.push(xc(o,u,n))}return i}const _c={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:em,createNode:tm};class wa extends Vs{constructor(){super(),this.add=Pi.prototype.add.bind(this),this.delete=Pi.prototype.delete.bind(this),this.get=Pi.prototype.get.bind(this),this.has=Pi.prototype.has.bind(this),this.set=Pi.prototype.set.bind(this),this.tag=wa.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(dr(i)?(s=Li(i.key,"",n),a=Li(i.value,s,n)):s=Li(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=tm(t,n,r),s=new this;return s.items=i.items,s}}wa.tag="tag:yaml.org,2002:omap";const Tc={collection:"seq",identify:e=>e instanceof Map,nodeClass:wa,default:!1,tag:"tag:yaml.org,2002:omap",resolve(e,t){const n=em(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 wa,n)},createNode:(e,t,n)=>wa.from(e,t,n)};function nm({value:e,source:t},n){return t&&(e?rm:im).test.test(t)?t:e?n.options.trueStr:n.options.falseStr}const rm={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:nm},im={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:nm},Ly={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},Py={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)}},By={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},Do=e=>typeof e=="bigint"||Number.isInteger(e);function yu(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 kc(e,t,n){const{value:r}=e;if(Do(r)){const i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return Ui(e)}const My={identify:Do,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(e,t,n)=>yu(e,2,2,n),stringify:e=>kc(e,2,"0b")},Iy={identify:Do,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(e,t,n)=>yu(e,1,8,n),stringify:e=>kc(e,8,"0")},Oy={identify:Do,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(e,t,n)=>yu(e,0,10,n),stringify:Ui},jy={identify:Do,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(e,t,n)=>yu(e,2,16,n),stringify:e=>kc(e,16,"0x")};class Fa extends Pi{constructor(t){super(t),this.tag=Fa.tag}add(t){let n;dr(t)?n=t:t&&typeof t=="object"&&"key"in t&&"value"in t&&t.value===null?n=new oi(t.key,null):n=new oi(t,null),Rs(this.items,n.key)||this.items.push(n)}get(t,n){const r=Rs(this.items,t);return!n&&dr(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=Rs(this.items,t);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new oi(t))}toJSON(t,n){return super.toJSON(t,n,Set)}toString(t,n,r){if(!t)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},t,{allNullValues:!0}),n,r);throw new Error("Set items must all have null values")}static from(t,n,r){const{replacer:i}=r,s=new this(t);if(n&&Symbol.iterator in Object(n))for(let a of n)typeof i=="function"&&(a=i.call(n,a,a)),s.items.push(xc(a,null,r));return s}}Fa.tag="tag:yaml.org,2002:set";const Lc={collection:"map",identify:e=>e instanceof Set,nodeClass:Fa,default:!1,tag:"tag:yaml.org,2002:set",createNode:(e,t,n)=>Fa.from(e,t,n),resolve(e,t){if(Ur(e)){if(e.hasAllNullValues(!0))return Object.assign(new Fa,e);t("Set items must all have null values")}else t("Expected a mapping for this tag");return e}};function Pc(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 sm(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 am={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})=>Pc(e,n),stringify:sm},om={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=>Pc(e,!1),stringify:sm},Du={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(Du.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=Pc(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$/,"")},um=[Sa,xa,du,hu,rm,im,My,Iy,Oy,jy,Ly,Py,By,Nc,Tc,_c,Lc,am,om,Du],lm=new Map([["core",Ny],["failsafe",[Sa,xa,du]],["json",ky],["yaml11",um],["yaml-1.1",um]]),cm={binary:Nc,bool:wc,float:Hh,floatExp:Yh,floatNaN:Jh,floatTime:om,int:Xh,intHex:Kh,intOct:Qh,intTime:am,map:Sa,null:hu,omap:Tc,pairs:_c,seq:xa,set:Lc,timestamp:Du},$y={"tag:yaml.org,2002:binary":Nc,"tag:yaml.org,2002:omap":Tc,"tag:yaml.org,2002:pairs":_c,"tag:yaml.org,2002:set":Lc,"tag:yaml.org,2002:timestamp":Du};function Bc(e,t){let n=lm.get(t);if(!n)if(Array.isArray(e))n=[];else{const r=Array.from(lm.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=cm[r];if(i)return i;const s=Object.keys(cm).map(a=>JSON.stringify(a)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${s}`)})}const Ry=(e,t)=>e.key<t.key?-1:e.key>t.key?1:0;class Mc{constructor({compat:t,customTags:n,merge:r,resolveKnownTags:i,schema:s,sortMapEntries:a,toStringDefaults:o}){this.compat=Array.isArray(t)?Bc(t,"compat"):t?Bc(null,t):null,this.merge=!!r,this.name=typeof s=="string"&&s||"core",this.knownTags=i?$y:{},this.tags=Bc(n,this.name),this.toStringOptions=o??null,Object.defineProperty(this,Ns,{value:Sa}),Object.defineProperty(this,ss,{value:du}),Object.defineProperty(this,ba,{value:xa}),this.sortMapEntries=typeof a=="function"?a:a===!0?Ry:null}clone(){const t=Object.create(Mc.prototype,Object.getOwnPropertyDescriptors(this));return t.tags=this.tags.slice(),t}}function Vy(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=Vh(e,t),{commentString:s}=i.options;if(e.commentBefore){n.length!==1&&n.unshift("");const l=s(e.commentBefore);n.unshift(as(l,""))}let a=!1,o=null;if(e.contents){if(yr(e.contents)){if(e.contents.spaceBefore&&r&&n.push(""),e.contents.commentBefore){const p=s(e.contents.commentBefore);n.push(as(p,""))}i.forceBlockIndent=!!e.comment,o=e.contents.comment}const l=o?void 0:()=>a=!0;let A=Ca(e.contents,i,()=>o=null,l);o&&(A+=_s(A,"",s(o))),(A[0]==="|"||A[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${A}`:n.push(A)}else n.push(Ca(e.contents,i));if((u=e.directives)!=null&&u.docEnd)if(e.comment){const l=s(e.comment);l.includes(`
67
- `)?(n.push("..."),n.push(as(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(as(s(l),"")))}return n.join(`
68
- `)+`
69
- `}class bu{constructor(t,n,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,ki,{value:yc});let i=null;typeof n=="function"||Array.isArray(n)?i=n:r===void 0&&n&&(r=n,n=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=s;let{version:a}=s;r!=null&&r._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(a=this.directives.yaml.version)):this.directives=new ai({version:a}),this.setSchema(a,r),this.contents=t===void 0?null:this.createNode(t,i,r)}clone(){const t=Object.create(bu.prototype,{[ki]:{value:yc}});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=yr(this.contents)?this.contents.clone(t.schema):this.contents,this.range&&(t.range=this.range.slice()),t}add(t){Na(this.contents)&&this.contents.add(t)}addIn(t,n){Na(this.contents)&&this.contents.addIn(t,n)}createAlias(t,n){if(!t.anchor){const r=Ih(this);t.anchor=!n||r.has(n)?Oh(n||"a",r):n}return new bc(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,ue=n.filter(N).map(String);ue.length>0&&(n=n.concat(ue)),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:B}=my(this,a||"a"),re={aliasDuplicateObjects:s??!0,keepUndefined:u??!1,onAnchor:p,onTagObj:l,replacer:i,schema:this.schema,sourceObjects:B},te=mo(t,A,re);return o&&Lr(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 oi(i,s)}delete(t){return Na(this.contents)?this.contents.delete(t):!1}deleteIn(t){return go(t)?this.contents==null?!1:(this.contents=null,!0):Na(this.contents)?this.contents.deleteIn(t):!1}get(t,n){return Lr(this.contents)?this.contents.get(t,n):void 0}getIn(t,n){return go(t)?!n&&Jn(this.contents)?this.contents.value:this.contents:Lr(this.contents)?this.contents.getIn(t,n):void 0}has(t){return Lr(this.contents)?this.contents.has(t):!1}hasIn(t){return go(t)?this.contents!==void 0:Lr(this.contents)?this.contents.hasIn(t):!1}set(t,n){this.contents==null?this.contents=iu(this.schema,[t],n):Na(this.contents)&&this.contents.set(t,n)}setIn(t,n){go(t)?this.contents=n:this.contents==null?this.contents=iu(this.schema,Array.from(t),n):Na(this.contents)&&this.contents.setIn(t,n)}setSchema(t,n={}){typeof t=="number"&&(t=String(t));let r;switch(t){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new ai({version:"1.1"}),r={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=t:this.directives=new ai({version:t}),r={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{const i=JSON.stringify(t);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${i}`)}}if(n.schema instanceof Object)this.schema=n.schema;else if(r)this.schema=new Mc(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=Li(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"?Ea(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 Vy(this,t)}}function Na(e){if(Lr(e))return!0;throw new Error("Expected a YAML collection as document contents")}class fm extends Error{constructor(t,n,r,i){super(),this.name=t,this.code=r,this.message=i,this.pos=n}}class bo extends fm{constructor(t,n,r){super("YAMLParseError",t,n,r)}}class Uy extends fm{constructor(t,n,r){super("YAMLWarning",t,n,r)}}const pm=(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)+`…
70
- `),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+=`:
71
-
72
- ${a}
73
- ${l}
74
- `}};function _a(e,{flow:t,indicator:n,next:r,offset:i,onError:s,startOnNewline:a}){let o=!1,u=a,l=a,A="",p="",O=!1,B=!1,re=!1,te=null,N=null,ue=null,Te=null,ke=null;for(const Le of e)switch(re&&(Le.type!=="space"&&Le.type!=="newline"&&Le.type!=="comma"&&s(Le.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),re=!1),Le.type){case"space":!t&&u&&n!=="doc-start"&&Le.source[0]===" "&&s(Le,"TAB_AS_INDENT","Tabs are not allowed as indentation"),l=!0;break;case"comment":{l||s(Le,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const ct=Le.source.substring(1)||" ";A?A+=p+ct:A=ct,p="",u=!1;break}case"newline":u?A?A+=Le.source:o=!0:p+=Le.source,u=!0,O=!0,(te||N)&&(B=!0),l=!0;break;case"anchor":te&&s(Le,"MULTIPLE_ANCHORS","A node can have at most one anchor"),Le.source.endsWith(":")&&s(Le.offset+Le.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),te=Le,ke===null&&(ke=Le.offset),u=!1,l=!1,re=!0;break;case"tag":{N&&s(Le,"MULTIPLE_TAGS","A node can have at most one tag"),N=Le,ke===null&&(ke=Le.offset),u=!1,l=!1,re=!0;break}case n:(te||N)&&s(Le,"BAD_PROP_ORDER",`Anchors and tags must be after the ${Le.source} indicator`),Te&&s(Le,"UNEXPECTED_TOKEN",`Unexpected ${Le.source} in ${t??"collection"}`),Te=Le,u=!1,l=!1;break;case"comma":if(t){ue&&s(Le,"UNEXPECTED_TOKEN",`Unexpected , in ${t}`),ue=Le,u=!1,l=!1;break}default:s(Le,"UNEXPECTED_TOKEN",`Unexpected ${Le.type} token`),u=!1,l=!1}const Je=e[e.length-1],me=Je?Je.offset+Je.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:ue,found:Te,spaceBefore:o,comment:A,hasNewline:O,hasNewlineAfterProp:B,anchor:te,tag:N,end:me,start:ke??me}}function vo(e){if(!e)return null;switch(e.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(e.source.includes(`
75
- `))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(vo(t.key)||vo(t.value))return!0}return!1;default:return!0}}function Ic(e,t,n){if((t==null?void 0:t.type)==="flow-collection"){const r=t.end[0];r.indent===e&&(r.source==="]"||r.source==="}")&&vo(t)&&n(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function dm(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 hm="All mapping items must start at the same column";function qy({composeNode:e,composeEmptyNode:t},n,r,i,s){var A;const a=(s==null?void 0:s.nodeClass)??Pi,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:B,sep:re,value:te}=p,N=_a(O,{indicator:"explicit-key-ind",next:B??(re==null?void 0:re[0]),offset:u,onError:i,startOnNewline:!0}),ue=!N.found;if(ue){if(B&&(B.type==="block-seq"?i(u,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in B&&B.indent!==r.indent&&i(u,"BAD_INDENT",hm)),!N.anchor&&!N.tag&&!re){l=N.end,N.comment&&(o.comment?o.comment+=`
76
- `+N.comment:o.comment=N.comment);continue}(N.hasNewlineAfterProp||vo(B))&&i(B??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",hm);const Te=N.end,ke=B?e(n,B,N,i):t(n,Te,O,null,N,i);n.schema.compat&&Ic(r.indent,B,i),dm(n,o.items,ke)&&i(Te,"DUPLICATE_KEY","Map keys must be unique");const Je=_a(re??[],{indicator:"map-value-ind",next:te,offset:ke.range[2],onError:i,startOnNewline:!B||B.type==="block-scalar"});if(u=Je.end,Je.found){ue&&((te==null?void 0:te.type)==="block-map"&&!Je.hasNewline&&i(u,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),n.options.strict&&N.start<Je.found.offset-1024&&i(ke.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const me=te?e(n,te,Je,i):t(n,u,re,null,Je,i);n.schema.compat&&Ic(r.indent,te,i),u=me.range[2];const Le=new oi(ke,me);n.options.keepSourceTokens&&(Le.srcToken=p),o.items.push(Le)}else{ue&&i(ke.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),Je.comment&&(ke.comment?ke.comment+=`
77
- `+Je.comment:ke.comment=Je.comment);const me=new oi(ke);n.options.keepSourceTokens&&(me.srcToken=p),o.items.push(me)}}return l&&l<u&&i(l,"IMPOSSIBLE","Map comment with trailing content"),o.range=[r.offset,u,l??u],o}function Wy({composeNode:e,composeEmptyNode:t},n,r,i,s){const a=(s==null?void 0:s.nodeClass)??Vs,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=_a(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 B=p?e(n,p,O,i):t(n,O.end,A,null,O,i);n.schema.compat&&Ic(r.indent,p,i),u=B.range[2],o.items.push(B)}return o.range=[r.offset,u,l??u],o}function Eo(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 Oc="Block collections are not allowed within flow collections",jc=e=>e&&(e.type==="block-map"||e.type==="block-seq");function Gy({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?Pi:Vs),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 ue=r.items[N],{start:Te,key:ke,sep:Je,value:me}=ue,Le=_a(Te,{flow:o,indicator:"explicit-key-ind",next:ke??(Je==null?void 0:Je[0]),offset:p,onError:i,startOnNewline:!1});if(!Le.found){if(!Le.anchor&&!Le.tag&&!Je&&!me){N===0&&Le.comma?i(Le.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`):N<r.items.length-1&&i(Le.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${o}`),Le.comment&&(l.comment?l.comment+=`
78
- `+Le.comment:l.comment=Le.comment),p=Le.end;continue}!a&&n.options.strict&&vo(ke)&&i(ke,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(N===0)Le.comma&&i(Le.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${o}`);else if(Le.comma||i(Le.start,"MISSING_CHAR",`Missing , between ${o} items`),Le.comment){let ct="";e:for(const xt of Te)switch(xt.type){case"comma":case"space":break;case"comment":ct=xt.source.substring(1);break e;default:break e}if(ct){let xt=l.items[l.items.length-1];dr(xt)&&(xt=xt.value??xt.key),xt.comment?xt.comment+=`
79
- `+ct:xt.comment=ct,Le.comment=Le.comment.substring(ct.length+1)}}if(!a&&!Je&&!Le.found){const ct=me?e(n,me,Le,i):t(n,Le.end,Je,null,Le,i);l.items.push(ct),p=ct.range[2],jc(me)&&i(ct.range,"BLOCK_IN_FLOW",Oc)}else{const ct=Le.end,xt=ke?e(n,ke,Le,i):t(n,ct,Te,null,Le,i);jc(ke)&&i(xt.range,"BLOCK_IN_FLOW",Oc);const Se=_a(Je??[],{flow:o,indicator:"map-value-ind",next:me,offset:xt.range[2],onError:i,startOnNewline:!1});if(Se.found){if(!a&&!Le.found&&n.options.strict){if(Je)for(const Ve of Je){if(Ve===Se.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}}Le.start<Se.found.offset-1024&&i(Se.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else me&&("source"in me&&me.source&&me.source[0]===":"?i(me,"MISSING_CHAR",`Missing space after : in ${o}`):i(Se.start,"MISSING_CHAR",`Missing , or : between ${o} items`));const we=me?e(n,me,Se,i):Se.found?t(n,Se.end,Je,null,Se,i):null;we?jc(me)&&i(we.range,"BLOCK_IN_FLOW",Oc):Se.comment&&(xt.comment?xt.comment+=`
80
- `+Se.comment:xt.comment=Se.comment);const tt=new oi(xt,we);if(n.options.keepSourceTokens&&(tt.srcToken=ue),a){const Ve=l;dm(n,Ve.items,xt)&&i(ct,"DUPLICATE_KEY","Map keys must be unique"),Ve.items.push(tt)}else{const Ve=new Pi(n.schema);Ve.flow=!0,Ve.items.push(tt),l.items.push(Ve)}p=we?we.range[2]:Se.end}}const O=a?"}":"]",[B,...re]=r.end;let te=p;if(B&&B.source===O)te=B.offset+B.source.length;else{const N=o[0].toUpperCase()+o.substring(1),ue=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",ue),B&&B.source.length!==1&&re.unshift(B)}if(re.length>0){const N=Eo(re,te,n.options.strict,i);N.comment&&(l.comment?l.comment+=`
81
- `+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"?qy(e,t,n,r,s):n.type==="block-seq"?Wy(e,t,n,r,s):Gy(e,t,n,r,s),o=a.constructor;return i==="!"||i===o.tagName?(a.tag=o.tagName,a):(i&&(a.tag=i),a)}function Jy(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===Pi.tagName&&a==="map"||s===Vs.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=yr(l)?l:new Zn(l);return A.range=u.range,A.tag=s,o!=null&&o.format&&(A.format=o.format),A}function Yy(e,t,n){const r=e.offset,i=Hy(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?zy(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?`
82
- `.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,ue]=a[te];if(ue===""||ue==="\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+ue.length+1}for(let te=a.length-1;te>=o;--te)a[te][0].length>u&&(o=te+1);let p="",O="",B=!1;for(let te=0;te<A;++te)p+=a[te][0].slice(u)+`
83
- `;for(let te=A;te<o;++te){let[N,ue]=a[te];l+=N.length+ue.length+1;const Te=ue[ue.length-1]==="\r";if(Te&&(ue=ue.slice(0,-1)),ue&&N.length<u){const Je=`Block scalar lines must not be less indented than their ${i.indent?"explicit indentation indicator":"first line"}`;n(l-ue.length-(Te?2:1),"BAD_INDENT",Je),N=""}s===Zn.BLOCK_LITERAL?(p+=O+N.slice(u)+ue,O=`
84
- `):N.length>u||ue[0]===" "?(O===" "?O=`
85
- `:!B&&O===`
86
- `&&(O=`
87
-
88
- `),p+=O+N.slice(u)+ue,O=`
89
- `,B=!0):ue===""?O===`
90
- `?p+=`
91
- `:O=`
92
- `:(p+=O+ue,O=" ",B=!1)}switch(i.chomp){case"-":break;case"+":for(let te=o;te<a.length;++te)p+=`
93
- `+a[te][0].slice(u);p[p.length-1]!==`
94
- `&&(p+=`
95
- `);break;default:p+=`
96
- `}const re=r+i.length+e.source.length;return{value:p,type:s,comment:i.comment,range:[r,re,re]}}function Hy({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 B=i[O];if(!o&&(B==="-"||B==="+"))o=B;else{const re=Number(B);!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 B=t[O];switch(B.type){case"space":l=!0;case"newline":p+=B.source.length;break;case"comment":n&&!l&&r(B,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),p+=B.source.length,A=B.source.substring(1);break;case"error":r(B,"UNEXPECTED_TOKEN",B.message),p+=B.source.length;break;default:{const re=`Unexpected token in block scalar header: ${B.type}`;r(B,"UNEXPECTED_TOKEN",re);const te=B.source;te&&typeof te=="string"&&(p+=te.length)}}}return{mode:s,indent:a,chomp:o,comment:A,length:p}}function zy(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 Qy(e,t,n){const{offset:r,type:i,source:s,end:a}=e;let o,u;const l=(O,B,re)=>n(r+O,B,re);switch(i){case"scalar":o=Zn.PLAIN,u=Xy(s,l);break;case"single-quoted-scalar":o=Zn.QUOTE_SINGLE,u=Ky(s,l);break;case"double-quoted-scalar":o=Zn.QUOTE_DOUBLE,u=Zy(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=Eo(a,A,t,n);return{value:u,type:o,comment:p.comment,range:[r,A,p.offset]}}function Xy(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}`),mm(e)}function Ky(e,t){return(e[e.length-1]!=="'"||e.length===1)&&t(e.length,"MISSING_CHAR","Missing closing 'quote"),mm(e.slice(1,-1)).replace(/''/g,"'")}function mm(e){let t,n;try{t=new RegExp(`(.*?)(?<![ ])[ ]*\r?
97
- `,"sy"),n=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
98
- `,"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===`
99
- `?i+=s:s=`
100
- `:(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 Zy(e,t){let n="";for(let r=1;r<e.length-1;++r){const i=e[r];if(!(i==="\r"&&e[r+1]===`
101
- `))if(i===`
102
- `){const{fold:s,offset:a}=eD(e,r);n+=s,r=a}else if(i==="\\"){let s=e[++r];const a=tD[s];if(a)n+=a;else if(s===`
103
- `)for(s=e[r+1];s===" "||s===" ";)s=e[++r+1];else if(s==="\r"&&e[r+1]===`
104
- `)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+=nD(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!==`
105
- `&&!(a==="\r"&&e[r+2]===`
106
- `)&&(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 eD(e,t){let n="",r=e[t+1];for(;(r===" "||r===" "||r===`
107
- `||r==="\r")&&!(r==="\r"&&e[t+2]!==`
108
- `);)r===`
109
- `&&(n+=`
110
- `),t+=1,r=e[t+1];return n||(n=" "),{fold:n,offset:t}}const tD={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
111
- `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function nD(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 gm(e,t,n,r){const{value:i,type:s,comment:a,range:o}=t.type==="block-scalar"?Yy(t,e.options.strict,r):Qy(t,e.options.strict,r),u=n?e.directives.tagName(n.source,p=>r(n,"TAG_RESOLVE_FAILED",p)):null,l=n&&u?rD(e.schema,i,u,n,r):t.type==="scalar"?iD(e,i,t,r):e.schema[ss];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 rD(e,t,n,r,i){var o;if(n==="!")return e[ss];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[ss])}function iD({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[ss];if(t.compat){const a=t.compat.find(o=>{var u;return o.default&&((u=o.test)==null?void 0:u.test(n))})??t[ss];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 sD(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 aD={composeNode:ym,composeEmptyNode:Rc};function ym(e,t,n,r){const{spaceBefore:i,comment:s,anchor:a,tag:o}=n;let u,l=!0;switch(t.type){case"alias":u=oD(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=gm(e,t,o,r),a&&(u.anchor=a.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":u=Jy(aD,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=Rc(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 Rc(e,t,n,r,{spaceBefore:i,comment:s,anchor:a,tag:o,end:u},l){const A={type:"scalar",offset:sD(t,n,r),indent:-1,source:""},p=gm(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 oD({options:e},{offset:t,source:n,end:r},i){const s=new bc(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=Eo(r,a,e.strict,i);return s.range=[t,a,o.offset],o.comment&&(s.comment=o.comment),s}function uD(e,t,{offset:n,start:r,value:i,end:s},a){const o=Object.assign({_directives:t},e),u=new bu(void 0,o),l={atRoot:!0,directives:u.directives,options:u.options,schema:u.schema},A=_a(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?ym(l,i,A,a):Rc(l,A.end,r,null,A,a);const p=u.contents.range[2],O=Eo(s,p,!1,a);return O.comment&&(u.comment=O.comment),u.range=[n,p,O.offset],u}function Ao(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 Dm(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?`
112
-
113
- `:`
114
- `)+(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 bm{constructor(t={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(n,r,i,s)=>{const a=Ao(n);s?this.warnings.push(new Uy(a,r,i)):this.errors.push(new bo(a,r,i))},this.directives=new ai({version:t.version||"1.2"}),this.options=t}decorate(t,n){const{comment:r,afterEmptyLine:i}=Dm(this.prelude);if(r){const s=t.contents;if(n)t.comment=t.comment?`${t.comment}
115
- ${r}`:r;else if(i||t.directives.docStart||!s)t.commentBefore=r;else if(Lr(s)&&!s.flow&&s.items.length>0){let a=s.items[0];dr(a)&&(a=a.key);const o=a.commentBefore;a.commentBefore=o?`${r}
116
- ${o}`:r}else{const a=s.commentBefore;s.commentBefore=a?`${r}
117
- ${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:Dm(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=Ao(t);s[0]+=n,this.onError(s,"BAD_DIRECTIVE",r,i)}),this.prelude.push(t.source),this.atDirectives=!0;break;case"document":{const n=uD(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 bo(Ao(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 bo(Ao(t),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;const n=Eo(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}
118
- ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.push(new bo(Ao(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 bu(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 lD=e=>"type"in e?vu(e):Eu(e);function vu(e){switch(e.type){case"block-scalar":{let t="";for(const n of e.props)t+=vu(n);return t+e.source}case"block-map":case"block-seq":{let t="";for(const n of e.items)t+=Eu(n);return t}case"flow-collection":{let t=e.start.source;for(const n of e.items)t+=Eu(n);for(const n of e.end)t+=n.source;return t}case"document":{let t=Eu(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 Eu({start:e,key:t,sep:n,value:r}){let i="";for(const s of e)i+=s.source;if(t&&(i+=vu(t)),n)for(const s of n)i+=s.source;return r&&(i+=vu(r)),i}const Vc=Symbol("break visit"),cD=Symbol("skip children"),vm=Symbol("remove item");function Us(e,t){"type"in e&&e.type==="document"&&(e={start:e.start,value:e.value}),Em(Object.freeze([]),e,t)}Us.BREAK=Vc,Us.SKIP=cD,Us.REMOVE=vm,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 Em(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=Em(Object.freeze(e.concat([[i,a]])),s.items[a],n);if(typeof o=="number")a=o-1;else{if(o===Vc)return Vc;o===vm&&(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 Am="\uFEFF",Cm="",Sm="",Uc="",fD=e=>!!e&&"items"in e;function pD(e){switch(e){case Am:return"byte-order-mark";case Cm:return"doc-mode";case Sm:return"flow-error-end";case Uc:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
119
- `:case`\r
120
- `: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 Bi(e){switch(e){case void 0:case" ":case`
121
- `:case"\r":case" ":return!0;default:return!1}}const xm="0123456789ABCDEFabcdef".split(""),dD="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),qc=",[]{}".split(""),hD=` ,[]{}
122
- \r `.split(""),Wc=e=>!e||hD.includes(e);class mD{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===`
123
- `?!0:n==="\r"?this.buffer[t+1]===`
124
- `:!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===`
125
- `||!i&&!this.atEnd)return t+r+1}return n===`
126
- `||r>=this.indentNext||!n&&!this.atEnd?t+r:-1}if(n==="-"||n==="."){const r=this.buffer.substr(t,3);if((r==="---"||r==="...")&&Bi(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(`
127
- `,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]===Am&&(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 Cm,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==="---"&&Bi(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,"doc";if(n==="..."&&Bi(this.charAt(3)))return yield*this.pushCount(3),"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Bi(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===":")&&Bi(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(Wc),"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("..."))&&Bi(i[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(i[0]==="]"||i[0]==="}")))return this.flowLevel=0,yield Sm,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(Wc),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const a=this.charAt(1);if(this.flowKey||Bi(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(`
128
- `,this.pos);if(i!==-1){for(;i!==-1;){const s=this.continueScalar(i+1);if(s===-1)break;i=r.indexOf(`
129
- `,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=>Bi(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`
130
- `:t=i,n=0;break;case"\r":{const s=this.buffer[i+1];if(!s&&!this.atEnd)return this.setNext("block-scalar");if(s===`
131
- `)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(`
132
- `,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===`
133
- `&&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(Bi(s)||t&&s===",")break;n=r}else if(Bi(i)){let s=this.buffer[r+1];if(i==="\r"&&(s===`
134
- `?(r+=1,i=`
135
- `,s=this.buffer[r+1]):n=r),s==="#"||t&&qc.includes(s))break;if(i===`
136
- `){const a=this.continueScalar(r+1);if(a===-1)break;r=Math.max(r,a-2)}}else{if(t&&qc.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(Wc))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const t=this.flowLevel>0,n=this.charAt(1);if(Bi(n)||t&&qc.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(;!Bi(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(dD.includes(n))n=this.buffer[++t];else if(n==="%"&&xm.includes(this.buffer[t+1])&&xm.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===`
137
- `?yield*this.pushCount(1):t==="\r"&&this.charAt(1)===`
138
- `?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 wm{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 qi(e,t){for(let n=0;n<e.length;++n)if(e[n].type===t)return!0;return!1}function Fm(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 Nm(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 Au(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 Ta(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 _m(e){if(e.start.type==="flow-seq-start")for(const t of e.items)t.sep&&!t.value&&!qi(t.start,"explicit-key-ind")&&!qi(t.sep,"map-value-ind")&&(t.key&&(t.value=t.key),delete t.key,Nm(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 Gc{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 mD,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=pD(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"&&_m(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=!qi(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&&Fm(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":{Fm(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=Au(this.peek(2)),r=Ta(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(`
139
- `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
140
- `,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&&!qi(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(qi(n.start,"explicit-key-ind"))if(n.sep)if(n.value)t.items.push({start:[],key:null,sep:[this.sourceToken]});else if(qi(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(Nm(n.key)&&!qi(n.sep,"newline")){const a=Ta(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(qi(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const a=Ta(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]}):qi(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"&&qi(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||qi(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=Au(r),s=Ta(i);_m(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(`
141
- `)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
142
- `,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=Au(t),r=Ta(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=Au(t),r=Ta(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 gD(e){const t=e.prettyErrors!==!1;return{lineCounter:e.lineCounter||t&&new wm||null,prettyErrors:t}}function yD(e,t={}){const{lineCounter:n,prettyErrors:r}=gD(t),i=new Gc(n==null?void 0:n.addNewLine),s=new bm(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 bo(o.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&n&&(a.errors.forEach(pm(e,n)),a.warnings.forEach(pm(e,n))),a}function DD(e,t,n){let r;typeof t=="function"?r=t:n===void 0&&t&&typeof t=="object"&&(n=t);const i=yD(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 Tm=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function es(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function km(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 vD(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 ka={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),es(s),s.length!==0&&(t=s+"/"+t,n=s.charCodeAt(0)===47)}return t=km(t,!n),n?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(t){if(es(t),t.length===0)return".";var n=t.charCodeAt(0)===47,r=t.charCodeAt(t.length-1)===47;return t=km(t,!n),t.length===0&&!n&&(t="."),t.length>0&&r&&(t+="/"),n?"/"+t:t},isAbsolute:function(t){return es(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];es(r),r.length>0&&(t===void 0?t=r:t+="/"+r)}return t===void 0?".":ka.normalize(t)},relative:function(t,n){if(es(t),es(n),t===n||(t=ka.resolve(t),n=ka.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),B=n.charCodeAt(a+p);if(O!==B)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(es(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');es(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){es(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 vD("/",t)},parse:function(t){es(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};ka.posix=ka;var qs=ka,Lm={exports:{}};(function(e,t){(function(n){e.exports=n()})(function(){var n=(Qt,st)=>()=>(st||Qt((st={exports:{}}).exports,st),st.exports),r=n((Qt,st)=>{var Qe=function(ot){return ot&&ot.Math==Math&&ot};st.exports=Qe(typeof globalThis=="object"&&globalThis)||Qe(typeof window=="object"&&window)||Qe(typeof self=="object"&&self)||Qe(typeof Tm=="object"&&Tm)||function(){return this}()||Function("return this")()}),i=n((Qt,st)=>{st.exports=function(Qe){try{return!!Qe()}catch{return!0}}}),s=n((Qt,st)=>{var Qe=i();st.exports=!Qe(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),a=n((Qt,st)=>{var Qe=i();st.exports=!Qe(function(){var ot=(function(){}).bind();return typeof ot!="function"||ot.hasOwnProperty("prototype")})}),o=n((Qt,st)=>{var Qe=a(),ot=Function.prototype.call;st.exports=Qe?ot.bind(ot):function(){return ot.apply(ot,arguments)}}),u=n(Qt=>{var st={}.propertyIsEnumerable,Qe=Object.getOwnPropertyDescriptor,ot=Qe&&!st.call({1:2},1);Qt.f=ot?function(rt){var Ct=Qe(this,rt);return!!Ct&&Ct.enumerable}:st}),l=n((Qt,st)=>{st.exports=function(Qe,ot){return{enumerable:!(Qe&1),configurable:!(Qe&2),writable:!(Qe&4),value:ot}}}),A=n((Qt,st)=>{var Qe=a(),ot=Function.prototype,rt=ot.call,Ct=Qe&&ot.bind.bind(rt,rt);st.exports=Qe?Ct:function(Pt){return function(){return rt.apply(Pt,arguments)}}}),p=n((Qt,st)=>{var Qe=A(),ot=Qe({}.toString),rt=Qe("".slice);st.exports=function(Ct){return rt(ot(Ct),8,-1)}}),O=n((Qt,st)=>{var Qe=A(),ot=i(),rt=p(),Ct=Object,Pt=Qe("".split);st.exports=ot(function(){return!Ct("z").propertyIsEnumerable(0)})?function(Yt){return rt(Yt)=="String"?Pt(Yt,""):Ct(Yt)}:Ct}),B=n((Qt,st)=>{st.exports=function(Qe){return Qe==null}}),re=n((Qt,st)=>{var Qe=B(),ot=TypeError;st.exports=function(rt){if(Qe(rt))throw ot("Can't call method on "+rt);return rt}}),te=n((Qt,st)=>{var Qe=O(),ot=re();st.exports=function(rt){return Qe(ot(rt))}}),N=n((Qt,st)=>{var Qe=typeof document=="object"&&document.all,ot=typeof Qe>"u"&&Qe!==void 0;st.exports={all:Qe,IS_HTMLDDA:ot}}),ue=n((Qt,st)=>{var Qe=N(),ot=Qe.all;st.exports=Qe.IS_HTMLDDA?function(rt){return typeof rt=="function"||rt===ot}:function(rt){return typeof rt=="function"}}),Te=n((Qt,st)=>{var Qe=ue(),ot=N(),rt=ot.all;st.exports=ot.IS_HTMLDDA?function(Ct){return typeof Ct=="object"?Ct!==null:Qe(Ct)||Ct===rt}:function(Ct){return typeof Ct=="object"?Ct!==null:Qe(Ct)}}),ke=n((Qt,st)=>{var Qe=r(),ot=ue(),rt=function(Ct){return ot(Ct)?Ct:void 0};st.exports=function(Ct,Pt){return arguments.length<2?rt(Qe[Ct]):Qe[Ct]&&Qe[Ct][Pt]}}),Je=n((Qt,st)=>{var Qe=A();st.exports=Qe({}.isPrototypeOf)}),me=n((Qt,st)=>{var Qe=ke();st.exports=Qe("navigator","userAgent")||""}),Le=n((Qt,st)=>{var Qe=r(),ot=me(),rt=Qe.process,Ct=Qe.Deno,Pt=rt&&rt.versions||Ct&&Ct.version,Yt=Pt&&Pt.v8,Vt,Ht;Yt&&(Vt=Yt.split("."),Ht=Vt[0]>0&&Vt[0]<4?1:+(Vt[0]+Vt[1])),!Ht&&ot&&(Vt=ot.match(/Edge\/(\d+)/),(!Vt||Vt[1]>=74)&&(Vt=ot.match(/Chrome\/(\d+)/),Vt&&(Ht=+Vt[1]))),st.exports=Ht}),ct=n((Qt,st)=>{var Qe=Le(),ot=i();st.exports=!!Object.getOwnPropertySymbols&&!ot(function(){var rt=Symbol();return!String(rt)||!(Object(rt)instanceof Symbol)||!Symbol.sham&&Qe&&Qe<41})}),xt=n((Qt,st)=>{var Qe=ct();st.exports=Qe&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}),Se=n((Qt,st)=>{var Qe=ke(),ot=ue(),rt=Je(),Ct=xt(),Pt=Object;st.exports=Ct?function(Yt){return typeof Yt=="symbol"}:function(Yt){var Vt=Qe("Symbol");return ot(Vt)&&rt(Vt.prototype,Pt(Yt))}}),we=n((Qt,st)=>{var Qe=String;st.exports=function(ot){try{return Qe(ot)}catch{return"Object"}}}),tt=n((Qt,st)=>{var Qe=ue(),ot=we(),rt=TypeError;st.exports=function(Ct){if(Qe(Ct))return Ct;throw rt(ot(Ct)+" is not a function")}}),Ve=n((Qt,st)=>{var Qe=tt(),ot=B();st.exports=function(rt,Ct){var Pt=rt[Ct];return ot(Pt)?void 0:Qe(Pt)}}),$t=n((Qt,st)=>{var Qe=o(),ot=ue(),rt=Te(),Ct=TypeError;st.exports=function(Pt,Yt){var Vt,Ht;if(Yt==="string"&&ot(Vt=Pt.toString)&&!rt(Ht=Qe(Vt,Pt))||ot(Vt=Pt.valueOf)&&!rt(Ht=Qe(Vt,Pt))||Yt!=="string"&&ot(Vt=Pt.toString)&&!rt(Ht=Qe(Vt,Pt)))return Ht;throw Ct("Can't convert object to primitive value")}}),pn=n((Qt,st)=>{st.exports=!1}),kn=n((Qt,st)=>{var Qe=r(),ot=Object.defineProperty;st.exports=function(rt,Ct){try{ot(Qe,rt,{value:Ct,configurable:!0,writable:!0})}catch{Qe[rt]=Ct}return Ct}}),Lt=n((Qt,st)=>{var Qe=r(),ot=kn(),rt="__core-js_shared__",Ct=Qe[rt]||ot(rt,{});st.exports=Ct}),Tt=n((Qt,st)=>{var Qe=pn(),ot=Lt();(st.exports=function(rt,Ct){return ot[rt]||(ot[rt]=Ct!==void 0?Ct:{})})("versions",[]).push({version:"3.26.1",mode:Qe?"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"})}),Ut=n((Qt,st)=>{var Qe=re(),ot=Object;st.exports=function(rt){return ot(Qe(rt))}}),en=n((Qt,st)=>{var Qe=A(),ot=Ut(),rt=Qe({}.hasOwnProperty);st.exports=Object.hasOwn||function(Ct,Pt){return rt(ot(Ct),Pt)}}),Ln=n((Qt,st)=>{var Qe=A(),ot=0,rt=Math.random(),Ct=Qe(1 .toString);st.exports=function(Pt){return"Symbol("+(Pt===void 0?"":Pt)+")_"+Ct(++ot+rt,36)}}),qn=n((Qt,st)=>{var Qe=r(),ot=Tt(),rt=en(),Ct=Ln(),Pt=ct(),Yt=xt(),Vt=ot("wks"),Ht=Qe.Symbol,fn=Ht&&Ht.for,yn=Yt?Ht:Ht&&Ht.withoutSetter||Ct;st.exports=function(vn){if(!rt(Vt,vn)||!(Pt||typeof Vt[vn]=="string")){var dn="Symbol."+vn;Pt&&rt(Ht,vn)?Vt[vn]=Ht[vn]:Yt&&fn?Vt[vn]=fn(dn):Vt[vn]=yn(dn)}return Vt[vn]}}),Pn=n((Qt,st)=>{var Qe=o(),ot=Te(),rt=Se(),Ct=Ve(),Pt=$t(),Yt=qn(),Vt=TypeError,Ht=Yt("toPrimitive");st.exports=function(fn,yn){if(!ot(fn)||rt(fn))return fn;var vn=Ct(fn,Ht),dn;if(vn){if(yn===void 0&&(yn="default"),dn=Qe(vn,fn,yn),!ot(dn)||rt(dn))return dn;throw Vt("Can't convert object to primitive value")}return yn===void 0&&(yn="number"),Pt(fn,yn)}}),Hr=n((Qt,st)=>{var Qe=Pn(),ot=Se();st.exports=function(rt){var Ct=Qe(rt,"string");return ot(Ct)?Ct:Ct+""}}),zr=n((Qt,st)=>{var Qe=r(),ot=Te(),rt=Qe.document,Ct=ot(rt)&&ot(rt.createElement);st.exports=function(Pt){return Ct?rt.createElement(Pt):{}}}),mi=n((Qt,st)=>{var Qe=s(),ot=i(),rt=zr();st.exports=!Qe&&!ot(function(){return Object.defineProperty(rt("div"),"a",{get:function(){return 7}}).a!=7})}),us=n(Qt=>{var st=s(),Qe=o(),ot=u(),rt=l(),Ct=te(),Pt=Hr(),Yt=en(),Vt=mi(),Ht=Object.getOwnPropertyDescriptor;Qt.f=st?Ht:function(fn,yn){if(fn=Ct(fn),yn=Pt(yn),Vt)try{return Ht(fn,yn)}catch{}if(Yt(fn,yn))return rt(!Qe(ot.f,fn,yn),fn[yn])}}),Ai=n((Qt,st)=>{var Qe=s(),ot=i();st.exports=Qe&&ot(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})}),Ji=n((Qt,st)=>{var Qe=Te(),ot=String,rt=TypeError;st.exports=function(Ct){if(Qe(Ct))return Ct;throw rt(ot(Ct)+" is not an object")}}),nr=n(Qt=>{var st=s(),Qe=mi(),ot=Ai(),rt=Ji(),Ct=Hr(),Pt=TypeError,Yt=Object.defineProperty,Vt=Object.getOwnPropertyDescriptor,Ht="enumerable",fn="configurable",yn="writable";Qt.f=st?ot?function(vn,dn,Fe){if(rt(vn),dn=Ct(dn),rt(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(rt(vn),dn=Ct(dn),rt(Fe),Qe)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}}),Ru=n((Qt,st)=>{var Qe=s(),ot=nr(),rt=l();st.exports=Qe?function(Ct,Pt,Yt){return ot.f(Ct,Pt,rt(1,Yt))}:function(Ct,Pt,Yt){return Ct[Pt]=Yt,Ct}}),sf=n((Qt,st)=>{var Qe=s(),ot=en(),rt=Function.prototype,Ct=Qe&&Object.getOwnPropertyDescriptor,Pt=ot(rt,"name"),Yt=Pt&&(function(){}).name==="something",Vt=Pt&&(!Qe||Qe&&Ct(rt,"name").configurable);st.exports={EXISTS:Pt,PROPER:Yt,CONFIGURABLE:Vt}}),Oa=n((Qt,st)=>{var Qe=A(),ot=ue(),rt=Lt(),Ct=Qe(Function.toString);ot(rt.inspectSource)||(rt.inspectSource=function(Pt){return Ct(Pt)}),st.exports=rt.inspectSource}),af=n((Qt,st)=>{var Qe=r(),ot=ue(),rt=Qe.WeakMap;st.exports=ot(rt)&&/native code/.test(String(rt))}),_r=n((Qt,st)=>{var Qe=Tt(),ot=Ln(),rt=Qe("keys");st.exports=function(Ct){return rt[Ct]||(rt[Ct]=ot(Ct))}}),Vu=n((Qt,st)=>{st.exports={}}),of=n((Qt,st)=>{var Qe=af(),ot=r(),rt=Te(),Ct=Ru(),Pt=en(),Yt=Lt(),Vt=_r(),Ht=Vu(),fn="Object already initialized",yn=ot.TypeError,vn=ot.WeakMap,dn,Fe,xn,On=function($e){return xn($e)?Fe($e):dn($e,{})},er=function($e){return function(Zr){var hs;if(!rt(Zr)||(hs=Fe(Zr)).type!==$e)throw yn("Incompatible receiver, "+$e+" required");return hs}};Qe||Yt.state?(Qn=Yt.state||(Yt.state=new vn),Qn.get=Qn.get,Qn.has=Qn.has,Qn.set=Qn.set,dn=function($e,Zr){if(Qn.has($e))throw yn(fn);return Zr.facade=$e,Qn.set($e,Zr),Zr},Fe=function($e){return Qn.get($e)||{}},xn=function($e){return Qn.has($e)}):(Cr=Vt("state"),Ht[Cr]=!0,dn=function($e,Zr){if(Pt($e,Cr))throw yn(fn);return Zr.facade=$e,Ct($e,Cr,Zr),Zr},Fe=function($e){return Pt($e,Cr)?$e[Cr]:{}},xn=function($e){return Pt($e,Cr)});var Qn,Cr;st.exports={set:dn,get:Fe,has:xn,enforce:On,getterFor:er}}),ls=n((Qt,st)=>{var Qe=i(),ot=ue(),rt=en(),Ct=s(),Pt=sf().CONFIGURABLE,Yt=Oa(),Vt=of(),Ht=Vt.enforce,fn=Vt.get,yn=Object.defineProperty,vn=Ct&&!Qe(function(){return yn(function(){},"length",{value:8}).length!==8}),dn=String(String).split("String"),Fe=st.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),(!rt(xn,"name")||Pt&&xn.name!==On)&&(Ct?yn(xn,"name",{value:On,configurable:!0}):xn.name=On),vn&&er&&rt(er,"arity")&&xn.length!==er.arity&&yn(xn,"length",{value:er.arity});try{er&&rt(er,"constructor")&&er.constructor?Ct&&yn(xn,"prototype",{writable:!1}):xn.prototype&&(xn.prototype=void 0)}catch{}var Qn=Ht(xn);return rt(Qn,"source")||(Qn.source=dn.join(typeof On=="string"?On:"")),xn};Function.prototype.toString=Fe(function(){return ot(this)&&fn(this).source||Yt(this)},"toString")}),ja=n((Qt,st)=>{var Qe=ue(),ot=nr(),rt=ls(),Ct=kn();st.exports=function(Pt,Yt,Vt,Ht){Ht||(Ht={});var fn=Ht.enumerable,yn=Ht.name!==void 0?Ht.name:Yt;if(Qe(Vt)&&rt(Vt,yn,Ht),Ht.global)fn?Pt[Yt]=Vt:Ct(Yt,Vt);else{try{Ht.unsafe?Pt[Yt]&&(fn=!0):delete Pt[Yt]}catch{}fn?Pt[Yt]=Vt:ot.f(Pt,Yt,{value:Vt,enumerable:!1,configurable:!Ht.nonConfigurable,writable:!Ht.nonWritable})}return Pt}}),cs=n((Qt,st)=>{var Qe=Math.ceil,ot=Math.floor;st.exports=Math.trunc||function(rt){var Ct=+rt;return(Ct>0?ot:Qe)(Ct)}}),_o=n((Qt,st)=>{var Qe=cs();st.exports=function(ot){var rt=+ot;return rt!==rt||rt===0?0:Qe(rt)}}),uf=n((Qt,st)=>{var Qe=_o(),ot=Math.max,rt=Math.min;st.exports=function(Ct,Pt){var Yt=Qe(Ct);return Yt<0?ot(Yt+Pt,0):rt(Yt,Pt)}}),lf=n((Qt,st)=>{var Qe=_o(),ot=Math.min;st.exports=function(rt){return rt>0?ot(Qe(rt),9007199254740991):0}}),Qs=n((Qt,st)=>{var Qe=lf();st.exports=function(ot){return Qe(ot.length)}}),Uu=n((Qt,st)=>{var Qe=te(),ot=uf(),rt=Qs(),Ct=function(Pt){return function(Yt,Vt,Ht){var fn=Qe(Yt),yn=rt(fn),vn=ot(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}};st.exports={includes:Ct(!0),indexOf:Ct(!1)}}),cf=n((Qt,st)=>{var Qe=A(),ot=en(),rt=te(),Ct=Uu().indexOf,Pt=Vu(),Yt=Qe([].push);st.exports=function(Vt,Ht){var fn=rt(Vt),yn=0,vn=[],dn;for(dn in fn)!ot(Pt,dn)&&ot(fn,dn)&&Yt(vn,dn);for(;Ht.length>yn;)ot(fn,dn=Ht[yn++])&&(~Ct(vn,dn)||Yt(vn,dn));return vn}}),To=n((Qt,st)=>{st.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]}),ff=n(Qt=>{var st=cf(),Qe=To(),ot=Qe.concat("length","prototype");Qt.f=Object.getOwnPropertyNames||function(rt){return st(rt,ot)}}),pf=n(Qt=>{Qt.f=Object.getOwnPropertySymbols}),qu=n((Qt,st)=>{var Qe=ke(),ot=A(),rt=ff(),Ct=pf(),Pt=Ji(),Yt=ot([].concat);st.exports=Qe("Reflect","ownKeys")||function(Vt){var Ht=rt.f(Pt(Vt)),fn=Ct.f;return fn?Yt(Ht,fn(Vt)):Ht}}),Wu=n((Qt,st)=>{var Qe=en(),ot=qu(),rt=us(),Ct=nr();st.exports=function(Pt,Yt,Vt){for(var Ht=ot(Yt),fn=Ct.f,yn=rt.f,vn=0;vn<Ht.length;vn++){var dn=Ht[vn];!Qe(Pt,dn)&&!(Vt&&Qe(Vt,dn))&&fn(Pt,dn,yn(Yt,dn))}}}),df=n((Qt,st)=>{var Qe=i(),ot=ue(),rt=/#|\.prototype\./,Ct=function(fn,yn){var vn=Yt[Pt(fn)];return vn==Ht?!0:vn==Vt?!1:ot(yn)?Qe(yn):!!yn},Pt=Ct.normalize=function(fn){return String(fn).replace(rt,".").toLowerCase()},Yt=Ct.data={},Vt=Ct.NATIVE="N",Ht=Ct.POLYFILL="P";st.exports=Ct}),$a=n((Qt,st)=>{var Qe=r(),ot=us().f,rt=Ru(),Ct=ja(),Pt=kn(),Yt=Wu(),Vt=df();st.exports=function(Ht,fn){var yn=Ht.target,vn=Ht.global,dn=Ht.stat,Fe,xn,On,er,Qn,Cr;if(vn?xn=Qe:dn?xn=Qe[yn]||Pt(yn,{}):xn=(Qe[yn]||{}).prototype,xn)for(On in fn){if(Qn=fn[On],Ht.dontCallGetSet?(Cr=ot(xn,On),er=Cr&&Cr.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)&&rt(Qn,"sham",!0),Ct(xn,On,Qn,Ht)}}}),Gu=n((Qt,st)=>{var Qe=p();st.exports=Array.isArray||function(ot){return Qe(ot)=="Array"}}),hf=n((Qt,st)=>{var Qe=TypeError,ot=9007199254740991;st.exports=function(rt){if(rt>ot)throw Qe("Maximum allowed index exceeded");return rt}}),mf=n((Qt,st)=>{var Qe=p(),ot=A();st.exports=function(rt){if(Qe(rt)==="Function")return ot(rt)}}),Ra=n((Qt,st)=>{var Qe=mf(),ot=tt(),rt=a(),Ct=Qe(Qe.bind);st.exports=function(Pt,Yt){return ot(Pt),Yt===void 0?Pt:rt?Ct(Pt,Yt):function(){return Pt.apply(Yt,arguments)}}}),Ju=n((Qt,st)=>{var Qe=Gu(),ot=Qs(),rt=hf(),Ct=Ra(),Pt=function(Yt,Vt,Ht,fn,yn,vn,dn,Fe){for(var xn=yn,On=0,er=dn?Ct(dn,Fe):!1,Qn,Cr;On<fn;)On in Ht&&(Qn=er?er(Ht[On],On,Vt):Ht[On],vn>0&&Qe(Qn)?(Cr=ot(Qn),xn=Pt(Yt,Vt,Qn,Cr,xn,vn-1)-1):(rt(xn+1),Yt[xn]=Qn),xn++),On++;return xn};st.exports=Pt}),gf=n((Qt,st)=>{var Qe=qn(),ot=Qe("toStringTag"),rt={};rt[ot]="z",st.exports=String(rt)==="[object z]"}),fs=n((Qt,st)=>{var Qe=gf(),ot=ue(),rt=p(),Ct=qn(),Pt=Ct("toStringTag"),Yt=Object,Vt=rt(function(){return arguments}())=="Arguments",Ht=function(fn,yn){try{return fn[yn]}catch{}};st.exports=Qe?rt:function(fn){var yn,vn,dn;return fn===void 0?"Undefined":fn===null?"Null":typeof(vn=Ht(yn=Yt(fn),Pt))=="string"?vn:Vt?rt(yn):(dn=rt(yn))=="Object"&&ot(yn.callee)?"Arguments":dn}}),ps=n((Qt,st)=>{var Qe=A(),ot=i(),rt=ue(),Ct=fs(),Pt=ke(),Yt=Oa(),Vt=function(){},Ht=[],fn=Pt("Reflect","construct"),yn=/^\s*(?:class|function)\b/,vn=Qe(yn.exec),dn=!yn.exec(Vt),Fe=function(On){if(!rt(On))return!1;try{return fn(Vt,Ht,On),!0}catch{return!1}},xn=function(On){if(!rt(On))return!1;switch(Ct(On)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return dn||!!vn(yn,Yt(On))}catch{return!0}};xn.sham=!0,st.exports=!fn||ot(function(){var On;return Fe(Fe.call)||!Fe(Object)||!Fe(function(){On=!0})||On})?xn:Fe}),yf=n((Qt,st)=>{var Qe=Gu(),ot=ps(),rt=Te(),Ct=qn(),Pt=Ct("species"),Yt=Array;st.exports=function(Vt){var Ht;return Qe(Vt)&&(Ht=Vt.constructor,ot(Ht)&&(Ht===Yt||Qe(Ht.prototype))?Ht=void 0:rt(Ht)&&(Ht=Ht[Pt],Ht===null&&(Ht=void 0))),Ht===void 0?Yt:Ht}}),ds=n((Qt,st)=>{var Qe=yf();st.exports=function(ot,rt){return new(Qe(ot))(rt===0?0:rt)}}),Yu=n(()=>{var Qt=$a(),st=Ju(),Qe=tt(),ot=Ut(),rt=Qs(),Ct=ds();Qt({target:"Array",proto:!0},{flatMap:function(Pt){var Yt=ot(this),Vt=rt(Yt),Ht;return Qe(Pt),Ht=Ct(Yt,0),Ht.length=st(Ht,Yt,Yt,Vt,0,1,Pt,arguments.length>1?arguments[1]:void 0),Ht}})}),Hu=n((Qt,st)=>{st.exports={}}),Df=n((Qt,st)=>{var Qe=qn(),ot=Hu(),rt=Qe("iterator"),Ct=Array.prototype;st.exports=function(Pt){return Pt!==void 0&&(ot.Array===Pt||Ct[rt]===Pt)}}),zu=n((Qt,st)=>{var Qe=fs(),ot=Ve(),rt=B(),Ct=Hu(),Pt=qn(),Yt=Pt("iterator");st.exports=function(Vt){if(!rt(Vt))return ot(Vt,Yt)||ot(Vt,"@@iterator")||Ct[Qe(Vt)]}}),bf=n((Qt,st)=>{var Qe=o(),ot=tt(),rt=Ji(),Ct=we(),Pt=zu(),Yt=TypeError;st.exports=function(Vt,Ht){var fn=arguments.length<2?Pt(Vt):Ht;if(ot(fn))return rt(Qe(fn,Vt));throw Yt(Ct(Vt)+" is not iterable")}}),Qu=n((Qt,st)=>{var Qe=o(),ot=Ji(),rt=Ve();st.exports=function(Ct,Pt,Yt){var Vt,Ht;ot(Ct);try{if(Vt=rt(Ct,"return"),!Vt){if(Pt==="throw")throw Yt;return Yt}Vt=Qe(Vt,Ct)}catch(fn){Ht=!0,Vt=fn}if(Pt==="throw")throw Yt;if(Ht)throw Vt;return ot(Vt),Yt}}),vf=n((Qt,st)=>{var Qe=Ra(),ot=o(),rt=Ji(),Ct=we(),Pt=Df(),Yt=Qs(),Vt=Je(),Ht=bf(),fn=zu(),yn=Qu(),vn=TypeError,dn=function(xn,On){this.stopped=xn,this.result=On},Fe=dn.prototype;st.exports=function(xn,On,er){var Qn=er&&er.that,Cr=!!(er&&er.AS_ENTRIES),$e=!!(er&&er.IS_RECORD),Zr=!!(er&&er.IS_ITERATOR),hs=!!(er&&er.INTERRUPTED),Bs=Qe(On,Qn),gi,ns,$r,Ua,qr,qa,rs,Xs=function(ri){return gi&&yn(gi,"normal",ri),new dn(!0,ri)},Ks=function(ri){return Cr?(rt(ri),hs?Bs(ri[0],ri[1],Xs):Bs(ri[0],ri[1])):hs?Bs(ri,Xs):Bs(ri)};if($e)gi=xn.iterator;else if(Zr)gi=xn;else{if(ns=fn(xn),!ns)throw vn(Ct(xn)+" is not iterable");if(Pt(ns)){for($r=0,Ua=Yt(xn);Ua>$r;$r++)if(qr=Ks(xn[$r]),qr&&Vt(Fe,qr))return qr;return new dn(!1)}gi=Ht(xn,ns)}for(qa=$e?xn.next:gi.next;!(rs=ot(qa,gi)).done;){try{qr=Ks(rs.value)}catch(ri){yn(gi,"throw",ri)}if(typeof qr=="object"&&qr&&Vt(Fe,qr))return qr}return new dn(!1)}}),Xu=n((Qt,st)=>{var Qe=Hr(),ot=nr(),rt=l();st.exports=function(Ct,Pt,Yt){var Vt=Qe(Pt);Vt in Ct?ot.f(Ct,Vt,rt(0,Yt)):Ct[Vt]=Yt}}),Va=n(()=>{var Qt=$a(),st=vf(),Qe=Xu();Qt({target:"Object",stat:!0},{fromEntries:function(ot){var rt={};return st(ot,function(Ct,Pt){Qe(rt,Ct,Pt)},{AS_ENTRIES:!0}),rt}})}),Ku=n((Qt,st)=>{var Qe=ls(),ot=nr();st.exports=function(rt,Ct,Pt){return Pt.get&&Qe(Pt.get,Ct,{getter:!0}),Pt.set&&Qe(Pt.set,Ct,{setter:!0}),ot.f(rt,Ct,Pt)}}),Zu=n((Qt,st)=>{var Qe=Ji();st.exports=function(){var ot=Qe(this),rt="";return ot.hasIndices&&(rt+="d"),ot.global&&(rt+="g"),ot.ignoreCase&&(rt+="i"),ot.multiline&&(rt+="m"),ot.dotAll&&(rt+="s"),ot.unicode&&(rt+="u"),ot.unicodeSets&&(rt+="v"),ot.sticky&&(rt+="y"),rt}}),el=n(()=>{var Qt=r(),st=s(),Qe=Ku(),ot=Zu(),rt=i(),Ct=Qt.RegExp,Pt=Ct.prototype,Yt=st&&rt(function(){var Vt=!0;try{Ct(".","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&&Qe(Pt,"flags",{configurable:!0,get:ot})}),Ef=n(()=>{var Qt=$a(),st=r();Qt({global:!0,forced:st.globalThis!==st},{globalThis:st})}),Af=n(()=>{Ef()}),ko=n(()=>{var Qt=$a(),st=Ju(),Qe=Ut(),ot=Qs(),rt=_o(),Ct=ds();Qt({target:"Array",proto:!0},{flat:function(){var Pt=arguments.length?arguments[0]:void 0,Yt=Qe(this),Vt=ot(Yt),Ht=Ct(Yt,0);return Ht.length=st(Ht,Yt,Yt,Vt,0,Pt===void 0?1:rt(Pt)),Ht}})}),Cf=n((Qt,st)=>{var Qe=["cliName","cliCategory","cliDescription"],ot=["_"],rt=["languageId"];function Ct(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}Yu(),Va(),el(),Af(),ko();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),Cr,$e=dn({"<define:process>"(){Cr={env:{},argv:[]}}}),Zr=Fe({"package.json"(m,E){E.exports={version:"2.8.8"}}}),hs=Fe({"node_modules/diff/lib/diff/base.js"(m){$e(),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(R){return h?(setTimeout(function(){h(void 0,R)},0),!0):R}D=this.castInput(D),c=this.castInput(c),D=this.removeEmpty(this.tokenize(D)),c=this.removeEmpty(this.tokenize(c));var L=c.length,_=D.length,k=1,C=L+_,x=[{newPos:-1,components:[]}],j=this.extractCommon(x[0],c,D,0);if(x[0].newPos+1>=L&&j+1>=_)return S([{value:this.join(c),count:c.length}]);function Q(){for(var R=-1*k;R<=k;R+=2){var X=void 0,G=x[R-1],ne=x[R+1],Z=(ne?ne.newPos:0)-R;G&&(x[R-1]=void 0);var De=G&&G.newPos+1<L,F=ne&&0<=Z&&Z<_;if(!De&&!F){x[R]=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,R),X.newPos+1>=L&&Z+1>=_)return S(f(v,X.components,c,D,v.useLongestToken));x[R]=X}k++}if(h)(function R(){setTimeout(function(){if(k>C)return h();Q()||R()},0)})();else for(;k<=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,L=D.newPos,_=L-h,k=0;L+1<v&&_+1<S&&this.equals(c[L+1],d[_+1]);)L++,_++,k++;return k&&D.components.push({count:k}),D.newPos=L,_},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,L=c.length,_=0,k=0;S<L;S++){var C=c[S];if(C.removed){if(C.value=D.join(h.slice(k,k+C.count)),k+=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,R){var X=h[k+R];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||(k+=C.count)}}var Q=c[L-1];return L>1&&typeof Q.value=="string"&&(Q.added||Q.removed)&&D.equals("",Q.value)&&(c[L-2].value+=Q.value,c.pop()),c}function b(D){return{newPos:D.newPos,components:D.components.slice(0)}}}}),Bs=Fe({"node_modules/diff/lib/diff/array.js"(m){$e(),Object.defineProperty(m,"__esModule",{value:!0}),m.diffArrays=D,m.arrayDiff=void 0;var E=f(hs());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)}}}),gi=Fe({"src/document/doc-builders.js"(m,E){$e();function f($){return{type:"concat",parts:$}}function b($){return{type:"indent",contents:$}}function D($,y){return{type:"align",contents:y,n:$}}function c($){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return{type:"group",id:y.id,contents:$,break:!!y.shouldBreak,expandedStates:y.expandedStates}}function d($){return D(Number.NEGATIVE_INFINITY,$)}function h($){return D({type:"root"},$)}function v($){return D(-1,$)}function S($,y){return c($[0],Object.assign(Object.assign({},y),{},{expandedStates:$}))}function L($){return{type:"fill",parts:$}}function _($,y){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return{type:"if-break",breakContents:$,flatContents:y,groupId:T.groupId}}function k($,y){return{type:"indent-if-break",contents:$,groupId:y.groupId,negate:y.negate}}function C($){return{type:"line-suffix",contents:$}}var x={type:"line-suffix-boundary"},j={type:"break-parent"},Q={type:"trim"},ee={type:"line",hard:!0},R={type:"line",hard:!0,literal:!0},X={type:"line"},G={type:"line",soft:!0},ne=f([ee,j]),Z=f([R,j]),De={type:"cursor",placeholder:Symbol("cursor")};function F($,y){let T=[];for(let M=0;M<y.length;M++)M!==0&&T.push($),T.push(y[M]);return f(T)}function J($,y,T){let M=$;if(y>0){for(let U=0;U<Math.floor(y/T);++U)M=b(M);M=D(y%T,M),M=D(Number.NEGATIVE_INFINITY,M)}return M}function w($,y){return{type:"label",label:$,contents:y}}E.exports={concat:f,join:F,line:X,softline:G,hardline:ne,literalline:Z,group:c,conditionalGroup:S,fill:L,lineSuffix:C,lineSuffixBoundary:x,cursor:De,breakParent:j,ifBreak:_,trim:Q,indent:b,indentIfBreak:k,align:D,addAlignmentToDoc:J,markAsRoot:h,dedentToRoot:d,dedent:v,hardlineWithoutBreakParent:ee,literallineWithoutBreakParent:R,label:w}}}),ns=Fe({"src/common/end-of-line.js"(m,E){$e();function f(d){let h=d.indexOf("\r");return h>=0?d.charAt(h+1)===`
143
- `?"crlf":"cr":"lf"}function b(d){switch(d){case"cr":return"\r";case"crlf":return`\r
144
- `;default:return`
145
- `}}function D(d,h){let v;switch(h){case`
146
- `:v=/\n/g;break;case"\r":v=/\r/g;break;case`\r
147
- `: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,`
148
- `)}E.exports={guessEndOfLine:f,convertEndOfLineToChars:b,countEndOfLineChars:D,normalizeEndOfLine:c}}}),$r=Fe({"src/utils/get-last.js"(m,E){$e();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 qr=dn({"node_modules/strip-ansi/node_modules/ansi-regex/index.js"(){$e()}});function qa(m){if(typeof m!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof m}\``);return m.replace(Ua(),"")}var rs=dn({"node_modules/strip-ansi/index.js"(){$e(),qr()}});function Xs(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 Ks=dn({"node_modules/is-fullwidth-code-point/index.js"(){$e()}}),ri=Fe({"node_modules/emoji-regex/index.js"(m,E){$e(),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}}}),tl={};xn(tl,{default:()=>nl});function nl(m){if(typeof m!="string"||m.length===0||(m=qa(m),m.length===0))return 0;m=m.replace((0,rl.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+=Xs(b)?2:1)}return E}var rl,Sf=dn({"node_modules/string-width/index.js"(){$e(),rs(),Ks(),rl=er(ri())}}),il=Fe({"src/utils/get-string-width.js"(m,E){$e();var f=(Sf(),Qn(tl)).default,b=/[^\x20-\x7F]/;function D(c){return c?b.test(c)?f(c):c.length:0}E.exports=D}}),Zs=Fe({"src/document/doc-utils.js"(m,E){$e();var f=$r(),{literalline:b,join:D}=gi(),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,U){let q=[y];for(;q.length>0;){let z=q.pop();if(z===h){M(q.pop());continue}if(M&&q.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)q.push(ie[ge])}else if(z.type==="if-break")z.flatContents&&q.push(z.flatContents),z.breakContents&&q.push(z.breakContents);else if(z.type==="group"&&z.expandedStates)if(U)for(let ie=z.expandedStates.length,ce=ie-1;ce>=0;--ce)q.push(z.expandedStates[ce]);else q.push(z.contents);else z.contents&&q.push(z.contents)}}function S(y,T){let M=new Map;return U(y);function U(z){if(M.has(z))return M.get(z);let ie=q(z);return M.set(z,ie),ie}function q(z){if(Array.isArray(z))return T(z.map(U));if(z.type==="concat"||z.type==="fill"){let ie=z.parts.map(U);return T(Object.assign(Object.assign({},z),{},{parts:ie}))}if(z.type==="if-break"){let ie=z.breakContents&&U(z.breakContents),ce=z.flatContents&&U(z.flatContents);return T(Object.assign(Object.assign({},z),{},{breakContents:ie,flatContents:ce}))}if(z.type==="group"&&z.expandedStates){let ie=z.expandedStates.map(U),ce=ie[0];return T(Object.assign(Object.assign({},z),{},{contents:ce,expandedStates:ie}))}if(z.contents){let ie=U(z.contents);return T(Object.assign(Object.assign({},z),{},{contents:ie}))}return T(z)}}function L(y,T,M){let U=M,q=!1;function z(ie){let ce=T(ie);if(ce!==void 0&&(q=!0,U=ce),q)return!1}return v(y,z),U}function _(y){if(y.type==="group"&&y.break||y.type==="line"&&y.hard||y.type==="break-parent")return!0}function k(y){return L(y,_,!1)}function 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 U(z){if(z.type==="break-parent"&&C(M),z.type==="group"){if(M.push(z),T.has(z))return!1;T.add(z)}}function q(z){z.type==="group"&&M.pop().break&&C(M)}v(y,U,q,!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 R(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=R(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=R(y.contents);return Object.assign(Object.assign({},y),{},{contents:T})}case"if-break":{let T=R(y.breakContents),M=R(y.flatContents);return Object.assign(Object.assign({},y),{},{breakContents:T,flatContents:M})}}return y}function X(y){return R(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[U,...q]=c(M)?d(M):[M];typeof U=="string"&&typeof f(T)=="string"?T[T.length-1]+=U:T.push(U),T.push(...q)}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 U=M.shift();if(U){if(c(U)){M.unshift(...d(U));continue}if(T.length>0&&typeof f(T)=="string"&&typeof U=="string"){T[T.length-1]+=U;continue}T.push(U)}}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(`
149
- `)?J(T):T)}function J(y){let T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:b;return D(T,y.split(`
150
- `)).parts}function w(y){if(y.type==="line")return!0}function $(y){return L(y,w,!1)}E.exports={isConcat:c,getDocParts:d,willBreak:k,traverseDoc:v,findInDoc:L,mapDoc:S,propagateBreaks:x,removeLines:Q,stripTrailingHardline:X,normalizeParts:Z,normalizeDoc:De,cleanDoc:ne,replaceTextEndOfLine:J,replaceEndOfLine:F,canBreak:$}}}),xf=Fe({"src/document/doc-printer.js"(m,E){$e();var{convertEndOfLineToChars:f}=ns(),b=$r(),D=il(),{fill:c,cursor:d,indent:h}=gi(),{isConcat:v,getDocParts:S}=Zs(),L,_=1,k=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,$=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,$+=ie.n;break;default:throw new Error(`Unexpected type '${ie.type}'`)}return q(),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?U():q()}function U(){w>0&&y(w),z()}function q(){$>0&&T($),z()}function z(){w=0,$=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 R(G,ne,Z,De,F){let J=ne.length,w=[G],$=[];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")$.push(T),Z-=D(T);else if(v(T)||T.type==="fill"){let M=S(T);for(let U=M.length-1;U>=0;U--)w.push({mode:y,doc:M[U]})}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($);break;case"group":{if(F&&T.break)return!1;let M=T.break?_:y,U=T.expandedStates&&M===_?b(T.expandedStates):T.contents;w.push({mode:M,doc:U});break}case"if-break":{let M=(T.groupId?L[T.groupId]||k:y)===_?T.breakContents:T.flatContents;M&&w.push({mode:y,doc:M});break}case"line":if(y===_||T.hard)return!0;T.soft||($.push(" "),Z--);break;case"line-suffix":De=!0;break;case"line-suffix-boundary":if(De)return!1;break}}return!1}function X(G,ne){L={};let Z=ne.printWidth,De=f(ne.endOfLine),F=0,J=[{ind:C(),mode:_,doc:G}],w=[],$=!1,y=[];for(;J.length>0;){let{ind:M,mode:U,doc:q}=J.pop();if(typeof q=="string"){let z=De!==`
151
- `?q.replace(/\n/g,De):q;w.push(z),F+=D(z)}else if(v(q)){let z=S(q);for(let ie=z.length-1;ie>=0;ie--)J.push({ind:M,mode:U,doc:z[ie]})}else switch(q.type){case"cursor":w.push(d.placeholder);break;case"indent":J.push({ind:x(M,ne),mode:U,doc:q.contents});break;case"align":J.push({ind:j(M,q.n,ne),mode:U,doc:q.contents});break;case"trim":F-=ee(w);break;case"group":switch(U){case k:if(!$){J.push({ind:M,mode:q.break?_:k,doc:q.contents});break}case _:{$=!1;let z={ind:M,mode:k,doc:q.contents},ie=Z-F,ce=y.length>0;if(!q.break&&R(z,J,ie,ce))J.push(z);else if(q.expandedStates){let ge=b(q.expandedStates);if(q.break){J.push({ind:M,mode:_,doc:ge});break}else for(let fe=1;fe<q.expandedStates.length+1;fe++)if(fe>=q.expandedStates.length){J.push({ind:M,mode:_,doc:ge});break}else{let Ne=q.expandedStates[fe],se={ind:M,mode:k,doc:Ne};if(R(se,J,ie,ce)){J.push(se);break}}}else J.push({ind:M,mode:_,doc:q.contents});break}}q.id&&(L[q.id]=b(J).mode);break;case"fill":{let z=Z-F,{parts:ie}=q;if(ie.length===0)break;let[ce,ge]=ie,fe={ind:M,mode:k,doc:ce},Ne={ind:M,mode:_,doc:ce},se=R(fe,[],z,y.length>0,!0);if(ie.length===1){se?J.push(fe):J.push(Ne);break}let qe={ind:M,mode:k,doc:ge},he={ind:M,mode:_,doc:ge};if(ie.length===2){se?J.push(qe,fe):J.push(he,Ne);break}ie.splice(0,2);let oe={ind:M,mode:U,doc:c(ie)},Ue=ie[0];R({ind:M,mode:k,doc:[ce,ge,Ue]},[],z,y.length>0,!0)?J.push(oe,qe,fe):se?J.push(oe,he,fe):J.push(oe,he,Ne);break}case"if-break":case"indent-if-break":{let z=q.groupId?L[q.groupId]:U;if(z===_){let ie=q.type==="if-break"?q.breakContents:q.negate?q.contents:h(q.contents);ie&&J.push({ind:M,mode:U,doc:ie})}if(z===k){let ie=q.type==="if-break"?q.flatContents:q.negate?h(q.contents):q.contents;ie&&J.push({ind:M,mode:U,doc:ie})}break}case"line-suffix":y.push({ind:M,mode:U,doc:q.contents});break;case"line-suffix-boundary":y.length>0&&J.push({ind:M,mode:U,doc:{type:"line",hard:!0}});break;case"line":switch(U){case k:if(q.hard)$=!0;else{q.soft||(w.push(" "),F+=1);break}case _:if(y.length>0){J.push({ind:M,mode:U,doc:q},...y.reverse()),y.length=0;break}q.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:U,doc:q.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),U=w.slice(0,T).join(""),q=w.slice(T+1,M).join(""),z=w.slice(M+1).join("");return{formatted:U+q+z,cursorNodeStart:U.length,cursorNodeText:q}}return{formatted:w.join("")}}E.exports={printDocToString:X}}}),wf=Fe({"src/document/doc-debug.js"(m,E){$e();var{isConcat:f,getDocParts:b}=Zs();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(_,k,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[k+1]&&C[k+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[k-1]&&C[k-1].type==="line"&&C[k-1].hard?void 0:"breakParent";if(_.type==="trim")return"trim";if(_.type==="indent")return"indent("+S(_.contents)+")";if(_.type==="align")return _.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+S(_.contents)+")":_.n<0?"dedent("+S(_.contents)+")":_.n.type==="root"?"markAsRoot("+S(_.contents)+")":"align("+JSON.stringify(_.n)+", "+S(_.contents)+")";if(_.type==="if-break")return"ifBreak("+S(_.breakContents)+(_.flatContents?", "+S(_.flatContents):"")+(_.groupId?(_.flatContents?"":', ""')+`, { groupId: ${L(_.groupId)} }`:"")+")";if(_.type==="indent-if-break"){let x=[];_.negate&&x.push("negate: true"),_.groupId&&x.push(`groupId: ${L(_.groupId)}`);let j=x.length>0?`, { ${x.join(", ")} }`:"";return`indentIfBreak(${S(_.contents)}${j})`}if(_.type==="group"){let x=[];_.break&&_.break!=="propagated"&&x.push("shouldBreak: true"),_.id&&x.push(`id: ${L(_.id)}`);let j=x.length>0?`, { ${x.join(", ")} }`:"";return _.expandedStates?`conditionalGroup([${_.expandedStates.map(Q=>S(Q)).join(",")}]${j})`:`group(${S(_.contents)}${j})`}if(_.type==="fill")return`fill([${_.parts.map(x=>S(x)).join(", ")}])`;if(_.type==="line-suffix")return"lineSuffix("+S(_.contents)+")";if(_.type==="line-suffix-boundary")return"lineSuffixBoundary";if(_.type==="label")return`label(${JSON.stringify(_.label)}, ${S(_.contents)})`;throw new Error("Unknown doc type "+_.type)}function L(_){if(typeof _!="symbol")return JSON.stringify(String(_));if(_ in h)return h[_];let k=String(_).slice(7,-1)||"symbol";for(let C=0;;C++){let x=k+(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){$e(),E.exports={builders:gi(),printer:xf(),utils:Zs(),debug:wf()}}}),sl={};xn(sl,{default:()=>Ff});function Ff(m){if(typeof m!="string")throw new TypeError("Expected a string");return m.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var Nf=dn({"node_modules/escape-string-regexp/index.js"(){$e()}}),al=Fe({"node_modules/semver/internal/debug.js"(m,E){$e();var f=typeof Cr=="object"&&Cr.env&&Cr.env.NODE_DEBUG&&/\bsemver\b/i.test(Cr.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){$e();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){$e();var{MAX_SAFE_COMPONENT_LENGTH:f}=Y(),b=al();m=E.exports={};var D=m.re=[],c=m.src=[],d=m.t={},h=0,v=(S,L,_)=>{let k=h++;b(S,k,L),d[S]=k,c[k]=L,D[k]=new RegExp(L,_?"g":void 0)};v("NUMERICIDENTIFIER","0|[1-9]\\d*"),v("NUMERICIDENTIFIERLOOSE","[0-9]+"),v("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),v("MAINVERSION",`(${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){$e();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){$e();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){$e();var f=al(),{MAX_LENGTH:b,MAX_SAFE_INTEGER:D}=Y(),{re:c,t:d}=g(),h=W(),{compareIdentifiers:v}=Ae(),S=class{constructor(L,_){if(_=h(_),L instanceof S){if(L.loose===!!_.loose&&L.includePrerelease===!!_.includePrerelease)return L;L=L.version}else if(typeof L!="string")throw new TypeError(`Invalid Version: ${L}`);if(L.length>b)throw new TypeError(`version is longer than ${b} characters`);f("SemVer",L,_),this.options=_,this.loose=!!_.loose,this.includePrerelease=!!_.includePrerelease;let k=L.trim().match(_.loose?c[d.LOOSE]:c[d.FULL]);if(!k)throw new TypeError(`Invalid Version: ${L}`);if(this.raw=L,this.major=+k[1],this.minor=+k[2],this.patch=+k[3],this.major>D||this.major<0)throw new TypeError("Invalid major version");if(this.minor>D||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>D||this.patch<0)throw new TypeError("Invalid patch version");k[4]?this.prerelease=k[4].split(".").map(C=>{if(/^[0-9]+$/.test(C)){let x=+C;if(x>=0&&x<D)return x}return C}):this.prerelease=[],this.build=k[5]?k[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(L){if(f("SemVer.compare",this.version,this.options,L),!(L instanceof S)){if(typeof L=="string"&&L===this.version)return 0;L=new S(L,this.options)}return L.version===this.version?0:this.compareMain(L)||this.comparePre(L)}compareMain(L){return L instanceof S||(L=new S(L,this.options)),v(this.major,L.major)||v(this.minor,L.minor)||v(this.patch,L.patch)}comparePre(L){if(L instanceof S||(L=new S(L,this.options)),this.prerelease.length&&!L.prerelease.length)return-1;if(!this.prerelease.length&&L.prerelease.length)return 1;if(!this.prerelease.length&&!L.prerelease.length)return 0;let _=0;do{let k=this.prerelease[_],C=L.prerelease[_];if(f("prerelease compare",_,k,C),k===void 0&&C===void 0)return 0;if(C===void 0)return 1;if(k===void 0)return-1;if(k!==C)return v(k,C)}while(++_)}compareBuild(L){L instanceof S||(L=new S(L,this.options));let _=0;do{let k=this.build[_],C=L.build[_];if(f("prerelease compare",_,k,C),k===void 0&&C===void 0)return 0;if(C===void 0)return 1;if(k===void 0)return-1;if(k!==C)return v(k,C)}while(++_)}inc(L,_){switch(L){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",_);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",_);break;case"prepatch":this.prerelease.length=0,this.inc("patch",_),this.inc("pre",_);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",_),this.inc("pre",_);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":if(this.prerelease.length===0)this.prerelease=[0];else{let k=this.prerelease.length;for(;--k>=0;)typeof this.prerelease[k]=="number"&&(this.prerelease[k]++,k=-2);k===-1&&this.prerelease.push(0)}_&&(v(this.prerelease[0],_)===0?isNaN(this.prerelease[1])&&(this.prerelease=[_,0]):this.prerelease=[_,0]);break;default:throw new Error(`invalid increment argument: ${L}`)}return this.format(),this.raw=this.version,this}};E.exports=S}}),Be=Fe({"node_modules/semver/functions/compare.js"(m,E){$e();var f=Pe(),b=(D,c,d)=>new f(D,d).compare(new f(c,d));E.exports=b}}),Xe=Fe({"node_modules/semver/functions/lt.js"(m,E){$e();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){$e();var f=Be(),b=(D,c,d)=>f(D,c,d)>=0;E.exports=b}}),jt=Fe({"src/utils/arrayify.js"(m,E){$e(),E.exports=(f,b)=>Object.entries(f).map(D=>{let[c,d]=D;return Object.assign({[b]:c},d)})}}),it=Fe({"node_modules/outdent/lib/index.js"(m,E){$e(),Object.defineProperty(m,"__esModule",{value:!0}),m.outdent=void 0;function f(){for(var R=[],X=0;X<arguments.length;X++)R[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(R){return!1}}}var c=Object.prototype.hasOwnProperty,d=function(R,X){return c.call(R,X)};function h(R,X){for(var G in X)d(X,G)&&(R[G]=X[G]);return R}var v=/^[ \t]*(?:\r\n|\r|\n)/,S=/(?:\r\n|\r|\n)[ \t]*$/,L=/^(?:[\r\n]|$)/,_=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,k=/^[ \t]*[\r\n][ \t\r\n]*$/;function C(R,X,G){var ne=0,Z=R[0].match(_);Z&&(ne=Z[1].length);var De="(\\r\\n|\\r|\\n).{0,"+ne+"}",F=new RegExp(De,"g");X&&(R=R.slice(1));var J=G.newline,w=G.trimLeadingNewline,$=G.trimTrailingNewline,y=typeof J=="string",T=R.length,M=R.map(function(U,q){return U=U.replace(F,"$1"),q===0&&w&&(U=U.replace(v,"")),q===T-1&&$&&(U=U.replace(S,"")),y&&(U=U.replace(/\r\n|\n|\r/g,function(z){return J})),U});return M}function x(R,X){for(var G="",ne=0,Z=R.length;ne<Z;ne++)G+=R[ne],ne<Z-1&&(G+=X[ne]);return G}function j(R){return d(R,"raw")&&d(R,"length")}function Q(R){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,$=(F[0]===ne||F[0]===ee)&&k.test(w[0])&&L.test(w[1]),y=$?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,$?F.slice(1):F);return M}else return Q(h(h({},R),De||{}))}var Z=h(ne,{string:function(De){return C([De],!1,R)[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){$e();var{outdent:f}=it(),b="Config",D="Editor",c="Format",d="Other",h="Output",v="Global",S="Special",L={cursorOffset:{since:"1.4.0",category:S,type:"int",default:-1,range:{start:-1,end:Number.POSITIVE_INFINITY,step:1},description:f`
152
- Print (to stderr) where a cursor at the given position would move to after formatting.
153
- This option cannot be used with --range-start and --range-end.
154
- `,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`
155
- Maintain existing
156
- (mixed values within one file are normalised by looking at what's used after the first line)
157
- `}]},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`
158
- Custom directory that contains prettier plugins in node_modules subdirectory.
159
- Overrides default behavior when plugins are searched relatively to the location of Prettier.
160
- Multiple values are accepted.
161
- `,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`
162
- Format code ending at a given character offset (exclusive).
163
- The range will extend forwards to the end of the selected statement.
164
- This option cannot be used with --cursor-offset.
165
- `,cliCategory:D},rangeStart:{since:"1.4.0",category:S,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:f`
166
- Format code starting at a given character offset.
167
- The range will extend backwards to the start of the first line containing the selected statement.
168
- This option cannot be used with --cursor-offset.
169
- `,cliCategory:D},requirePragma:{since:"1.7.0",category:S,type:"boolean",default:!1,description:f`
170
- Require either '@prettier' or '@format' to be present in the file's first docblock comment
171
- in order for it to be formatted.
172
- `,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:L}}}),Ft=Fe({"src/main/support.js"(m,E){$e();var f={compare:Be(),lt:Xe(),gte:mt()},b=jt(),D=Zr().version,c=yt().options;function d(){let{plugins:v=[],showUnreleased:S=!1,showDeprecated:L=!1,showInternal:_=!1}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},k=D.split("-",1)[0],C=v.flatMap(R=>R.languages||[]).filter(j),x=b(Object.assign({},...v.map(R=>{let{options:X}=R;return X}),c),"name").filter(R=>j(R)&&Q(R)).sort((R,X)=>R.name===X.name?0:R.name<X.name?-1:1).map(ee).map(R=>{R=Object.assign({},R),Array.isArray(R.default)&&(R.default=R.default.length===1?R.default[0].value:R.default.filter(j).sort((G,ne)=>f.compare(ne.since,G.since))[0].value),Array.isArray(R.choices)&&(R.choices=R.choices.filter(G=>j(G)&&Q(G)),R.name==="parser"&&h(R,C,v));let X=Object.fromEntries(v.filter(G=>G.defaultOptions&&G.defaultOptions[R.name]!==void 0).map(G=>[G.name,G.defaultOptions[R.name]]));return Object.assign(Object.assign({},R),{},{pluginDefaults:X})});return{languages:C,options:x};function j(R){return S||!("since"in R)||R.since&&f.gte(k,R.since)}function Q(R){return L||!("deprecated"in R)||R.deprecated&&f.lt(k,R.deprecated)}function ee(R){return _?R:Ct(R,Qe)}}function h(v,S,L){let _=new Set(v.choices.map(k=>k.value));for(let k of S)if(k.parsers){for(let C of k.parsers)if(!_.has(C)){_.add(C);let x=L.find(Q=>Q.parsers&&Q.parsers[C]),j=k.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){$e();function f(b){return Array.isArray(b)&&b.length>0}E.exports=f}}),_t=Fe({"src/utils/text/skip.js"(m,E){$e();function f(h){return(v,S,L)=>{let _=L&&L.backwards;if(S===!1)return!1;let{length:k}=v,C=S;for(;C>=0&&C<k;){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===k?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){$e();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){$e();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){$e();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===`
173
- `)return D-2;if(h===`
174
- `||h==="\r"||h==="\u2028"||h==="\u2029")return D-1}else{if(h==="\r"&&b.charAt(D+1)===`
175
- `)return D+2;if(h===`
176
- `||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){$e();var f=Gt(),b=Xt(),D=Wt(),{skipSpaces:c}=_t();function d(h,v){let S=null,L=v;for(;L!==S;)S=L,L=c(h,L),L=f(h,L),L=D(h,L),L=b(h,L);return L}E.exports=d}}),ye=Fe({"src/common/util.js"(m,E){$e();var{default:f}=(Nf(),Qn(sl)),b=$r(),{getSupportInfo:D}=Ft(),c=It(),d=il(),{skipWhitespace:h,skipSpaces:v,skipToLineEnd:S,skipEverythingButNewLine:L}=_t(),_=Gt(),k=Wt(),C=Xt(),x=bn(),j=he=>he[he.length-2];function Q(he){return(oe,Ue,et)=>{let Ge=et&&et.backwards;if(Ue===!1)return!1;let{length:ht}=oe,be=Ue;for(;be>=0&&be<ht;){let Ie=oe.charAt(be);if(he instanceof RegExp){if(!he.test(Ie))return be}else if(!he.includes(Ie))return be;Ge?be--:be++}return be===-1||be===ht?be:!1}}function ee(he,oe){let Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},et=v(he,Ue.backwards?oe-1:oe,Ue),Ge=C(he,et,Ue);return et!==Ge}function R(he,oe,Ue){for(let et=oe;et<Ue;++et)if(he.charAt(et)===`
177
- `)return!0;return!1}function X(he,oe,Ue){let et=Ue(oe)-1;et=v(he,et,{backwards:!0}),et=C(he,et,{backwards:!0}),et=v(he,et,{backwards:!0});let Ge=C(he,et,{backwards:!0});return et!==Ge}function G(he,oe){let Ue=null,et=oe;for(;et!==Ue;)Ue=et,et=S(he,et),et=_(he,et),et=v(he,et);return et=k(he,et),et=C(he,et),et!==!1&&ee(he,et)}function ne(he,oe,Ue){return G(he,Ue(oe))}function Z(he,oe,Ue){return x(he,Ue(oe))}function De(he,oe,Ue){return he.charAt(Z(he,oe,Ue))}function F(he,oe){let Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return v(he,Ue.backwards?oe-1:oe,Ue)!==oe}function J(he,oe){let Ue=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,et=0;for(let Ge=Ue;Ge<he.length;++Ge)he[Ge]===" "?et=et+oe-et%oe:et++;return et}function w(he,oe){let Ue=he.lastIndexOf(`
178
- `);return Ue===-1?0:J(he.slice(Ue+1).match(/^[\t ]*/)[0],oe)}function $(he,oe){let Ue={quote:'"',regex:/"/g,escaped:"&quot;"},et={quote:"'",regex:/'/g,escaped:"&apos;"},Ge=oe==="'"?et:Ue,ht=Ge===et?Ue:et,be=Ge;if(he.includes(Ge.quote)||he.includes(ht.quote)){let Ie=(he.match(Ge.regex)||[]).length,ft=(he.match(ht.regex)||[]).length;be=Ie>ft?ht:Ge}return be}function y(he,oe){let Ue=he.slice(1,-1),et=oe.parser==="json"||oe.parser==="json5"&&oe.quoteProps==="preserve"&&!oe.singleQuote?'"':oe.__isInHtmlAttribute?"'":$(Ue,oe.singleQuote?"'":'"').quote;return T(Ue,et,!(oe.parser==="css"||oe.parser==="less"||oe.parser==="scss"||oe.__embeddedInHtml))}function T(he,oe,Ue){let et=oe==='"'?"'":'"',Ge=/\\(.)|(["'])/gs,ht=he.replace(Ge,(be,Ie,ft)=>Ie===et?Ie:ft===oe?"\\"+ft:ft||(Ue&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(Ie)?Ie:"\\"+Ie));return oe+ht+oe}function M(he){return he.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")}function U(he,oe){let Ue=he.match(new RegExp(`(${f(oe)})+`,"g"));return Ue===null?0:Ue.reduce((et,Ge)=>Math.max(et,Ge.length/oe.length),0)}function q(he,oe){let Ue=he.match(new RegExp(`(${f(oe)})+`,"g"));if(Ue===null)return 0;let et=new Map,Ge=0;for(let ht of Ue){let be=ht.length/oe.length;et.set(be,!0),be>Ge&&(Ge=be)}for(let ht=1;ht<Ge;ht++)if(!et.get(ht))return ht;return Ge+1}function z(he,oe){(he.comments||(he.comments=[])).push(oe),oe.printed=!1,oe.nodeDescription=qe(he)}function ie(he,oe){oe.leading=!0,oe.trailing=!1,z(he,oe)}function ce(he,oe,Ue){oe.leading=!1,oe.trailing=!1,Ue&&(oe.marker=Ue),z(he,oe)}function ge(he,oe){oe.leading=!1,oe.trailing=!0,z(he,oe)}function fe(he,oe){let{languages:Ue}=D({plugins:oe.plugins}),et=Ue.find(Ge=>{let{name:ht}=Ge;return ht.toLowerCase()===he})||Ue.find(Ge=>{let{aliases:ht}=Ge;return Array.isArray(ht)&&ht.includes(he)})||Ue.find(Ge=>{let{extensions:ht}=Ge;return Array.isArray(ht)&&ht.includes(`.${he}`)});return et&&et.parsers[0]}function Ne(he){return he&&he.type==="front-matter"}function se(he){let oe=new WeakMap;return function(Ue){return oe.has(Ue)||oe.set(Ue,Symbol(he)),oe.get(Ue)}}function qe(he){let oe=he.type||he.kind||"(unknown type)",Ue=String(he.name||he.id&&(typeof he.id=="object"?he.id.name:he.id)||he.key&&(typeof he.key=="object"?he.key.name:he.key)||he.value&&(typeof he.value=="object"?"":String(he.value))||he.operator||"");return Ue.length>20&&(Ue=Ue.slice(0,19)+"…"),oe+(Ue?" "+Ue:"")}E.exports={inferParserByLanguage:fe,getStringWidth:d,getMaxContinuousCount:U,getMinNotPresentContinuousCount:q,getPenultimate:j,getLast:b,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:x,getNextNonSpaceNonCommentCharacterIndex:Z,getNextNonSpaceNonCommentCharacter:De,skip:Q,skipWhitespace:h,skipSpaces:v,skipToLineEnd:S,skipEverythingButNewLine:L,skipInlineComment:_,skipTrailingComment:k,skipNewline:C,isNextLineEmptyAfterIndex:G,isNextLineEmpty:ne,isPreviousLineEmpty:X,hasNewline:ee,hasNewlineInRange:R,hasSpaces:F,getAlignmentSize:J,getIndentSize:w,getPreferredQuote:$,printString:y,printNumber:M,makeString:T,addLeadingComment:ie,addDanglingComment:ce,addTrailingComment:ge,isFrontMatterNode:Ne,isNonEmptyArray:c,createGroupIdMapper:se}}}),K={};xn(K,{basename:()=>Et,default:()=>Sr,delimiter:()=>sr,dirname:()=>je,extname:()=>Ot,isAbsolute:()=>xe,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=xe(m),f=yi(m,-1)==="/";return m=I(zt(m.split("/"),function(b){return!!b}),!E).join("/"),!m&&!E&&(m="."),m&&f&&(m+="/"),(E?"/":"")+m}function xe(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 L=0;L<S.length&&S[L]==="";L++);for(var _=S.length-1;_>=0&&S[_]==="";_--);return L>_?[]:S.slice(L,_-L+1)}for(var b=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 Et(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,Sr,yi,ci=dn({"node-modules-polyfills:path"(){$e(),En=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,on=function(m){return En.exec(m).slice(1)},Wn="/",sr=":",Sr={extname:Ot,basename:Et,dirname:je,sep:Wn,delimiter:sr,relative:ve,join:Me,isAbsolute:xe,normalize:le,resolve:H},yi="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){$e();var f=(ci(),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){$e();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:()=>Lf,__asyncGenerator:()=>kf,__asyncValues:()=>Pf,__await:()=>Di,__awaiter:()=>Hi,__classPrivateFieldGet:()=>Of,__classPrivateFieldSet:()=>jf,__createBinding:()=>ea,__decorate:()=>or,__exportStar:()=>Wa,__extends:()=>Cn,__generator:()=>Oi,__importDefault:()=>If,__importStar:()=>Mf,__makeTemplateObject:()=>Bf,__metadata:()=>Yi,__param:()=>Ii,__read:()=>ol,__rest:()=>Yn,__spread:()=>_f,__spreadArrays:()=>Tf,__values:()=>Lo});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 Ii(m,E){return function(f,b){E(f,b,m)}}function Yi(m,E){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(m,E)}function Hi(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(L){try{S(b.next(L))}catch(_){d(_)}}function v(L){try{S(b.throw(L))}catch(_){d(_)}}function S(L){L.done?c(L.value):D(L.value).then(h,v)}S((b=b.apply(m,E||[])).next())})}function Oi(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(L){return v([S,L])}}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(L){S=[6,L],D=0}finally{b=c=0}if(S[0]&5)throw S[1];return{value:S[0]?S[1]:void 0,done:!0}}}function ea(m,E,f,b){b===void 0&&(b=f),m[b]=E[f]}function Wa(m,E){for(var f in m)f!=="default"&&!E.hasOwnProperty(f)&&(E[f]=m[f])}function Lo(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 ol(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 _f(){for(var m=[],E=0;E<arguments.length;E++)m=m.concat(ol(arguments[E]));return m}function Tf(){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 Di(m){return this instanceof Di?(this.v=m,this):new Di(m)}function kf(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(k){b[k]&&(D[k]=function(C){return new Promise(function(x,j){c.push([k,C,x,j])>1||h(k,C)})})}function h(k,C){try{v(b[k](C))}catch(x){_(c[0][3],x)}}function v(k){k.value instanceof Di?Promise.resolve(k.value.v).then(S,L):_(c[0][2],k)}function S(k){h("next",k)}function L(k){h("throw",k)}function _(k,C){k(C),c.shift(),c.length&&h(c[0][0],c[0][1])}}function Lf(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:Di(m[D](d)),done:D==="return"}:c?c(d):d}:c}}function Pf(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 Lo=="function"?Lo(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 Bf(m,E){return Object.defineProperty?Object.defineProperty(m,"raw",{value:E}):m.raw=E,m}function Mf(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 If(m){return m&&m.__esModule?m:{default:m}}function Of(m,E){if(!E.has(m))throw new TypeError("attempted to get private field on non-instance");return E.get(m)}function jf(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"(){$e(),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){$e(),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})}}}}),Ke=Fe({"node_modules/vnopts/lib/descriptors/index.js"(m){$e(),Object.defineProperty(m,"__esModule",{value:!0});var E=(We(),Qn(mn));E.__exportStar(He(),m)}}),Ze=Fe({"scripts/build/shims/chalk.cjs"(m,E){$e();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}}),At=Fe({"node_modules/vnopts/lib/handlers/deprecated/common.js"(m){$e(),Object.defineProperty(m,"__esModule",{value:!0});var E=Ze();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){$e(),Object.defineProperty(m,"__esModule",{value:!0});var E=(We(),Qn(mn));E.__exportStar(At(),m)}}),Kt=Fe({"node_modules/vnopts/lib/handlers/invalid/common.js"(m){$e(),Object.defineProperty(m,"__esModule",{value:!0});var E=Ze();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){$e(),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){$e();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 L,_,k,C,x=0,j=0;x<h;)b[S+x]=D.charCodeAt(S+x),f[x]=++x;for(;j<v;)for(L=c.charCodeAt(S+j),k=j++,_=j,x=0;x<h;x++)C=L===b[S+x]?k:k+1,k=f[x],_=f[x]=k>_?C>_?_+1:C:C>k?k+1:C;return _}}}),Mn=Fe({"node_modules/vnopts/lib/handlers/unknown/leven.js"(m){$e(),Object.defineProperty(m,"__esModule",{value:!0});var E=Ze(),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}))}.`],L=Object.keys(v).sort().find(_=>f(b,_)<3);L&&S.push(`Did you mean ${E.default.blue(d.key(L))}?`),h.warn(S.join(" "))}}}),lr=Fe({"node_modules/vnopts/lib/handlers/unknown/index.js"(m){$e(),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){$e(),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){$e(),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),L=0;L<v;L++)S[L]=arguments[L];return c(...S.slice(0,h-1),d,...S.slice(h-1))}:()=>c}}}),rr=Fe({"node_modules/vnopts/lib/schemas/alias.js"(m){$e(),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){$e(),Object.defineProperty(m,"__esModule",{value:!0});var E=Vn(),f=class extends E.Schema{expected(){return"anything"}validate(){return!0}};m.AnySchema=f}}),Rr=Fe({"node_modules/vnopts/lib/schemas/array.js"(m){$e(),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(L=>{let{value:_}=L;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 L=d.normalizeRedirectResult(this._valueSchema.redirect(S,d),S);"remain"in L&&h.push(L.remain),v.push(...L.redirect.map(D))}return h.length===0?{redirect:v}:{redirect:v,remain:h}}overlap(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){$e(),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}}),Wr=Fe({"node_modules/vnopts/lib/utils.js"(m){$e(),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 L(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=L;function _(C,x){return C===void 0?[]:Array.isArray(C)?C.map(j=>L(j,x)):[L(C,x)]}m.normalizeForwardResult=_;function k(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=k}}),gr=Fe({"node_modules/vnopts/lib/schemas/choice.js"(m){$e(),Object.defineProperty(m,"__esModule",{value:!0});var E=Vn(),f=Wr(),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}}),Fr=Fe({"node_modules/vnopts/lib/schemas/number.js"(m){$e(),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}}),Ga=Fe({"node_modules/vnopts/lib/schemas/integer.js"(m){$e(),Object.defineProperty(m,"__esModule",{value:!0});var E=Wr(),f=Fr(),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}}),gv=Fe({"node_modules/vnopts/lib/schemas/string.js"(m){$e(),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}}),yv=Fe({"node_modules/vnopts/lib/schemas/index.js"(m){$e(),Object.defineProperty(m,"__esModule",{value:!0});var E=(We(),Qn(mn));E.__exportStar(rr(),m),E.__exportStar(tr(),m),E.__exportStar(Rr(),m),E.__exportStar(ur(),m),E.__exportStar(gr(),m),E.__exportStar(Ga(),m),E.__exportStar(Fr(),m),E.__exportStar(gv(),m)}}),Dv=Fe({"node_modules/vnopts/lib/defaults.js"(m){$e(),Object.defineProperty(m,"__esModule",{value:!0});var E=He(),f=At(),b=rn(),D=Mn();m.defaultDescriptor=E.apiDescriptor,m.defaultUnknownHandler=D.levenUnknownHandler,m.defaultInvalidHandler=b.commonInvalidHandler,m.defaultDeprecatedHandler=f.commonDeprecatedHandler}}),bv=Fe({"node_modules/vnopts/lib/normalize.js"(m){$e(),Object.defineProperty(m,"__esModule",{value:!0});var E=Dv(),f=Wr();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:L=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=L,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 L=f.normalizeDefaultResult(S.default(this._utils));"value"in L&&d.push({[v]:L.value})}}h();for(let v of Object.keys(this._utils.schemas)){let S=this._utils.schemas[v];v in 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 L=this._utils.schemas[S],_=L.preprocess(D[S],this._utils),k=f.normalizeValidateResult(L.validate(_,this._utils),_);if(k!==!0){let{value:Q}=k,ee=this._invalidHandler(S,Q,this._utils);throw typeof ee=="string"?new Error(ee):ee}let C=Q=>{let{from:ee,to:R}=Q;d.push(typeof R=="string"?{[R]:ee}:{[R.key]:R.value})},x=Q=>{let{value:ee,redirectTo:R}=Q,X=f.normalizeDeprecatedResult(L.deprecated(ee,this._utils),_,!0);if(X!==!1)if(X===!0)this._hasDeprecationWarned(S)||this._utils.logger.warn(this._deprecatedHandler(S,R,this._utils));else for(let{value:G}of X){let ne={key:S,value:G};if(!this._hasDeprecationWarned(ne)){let Z=typeof R=="string"?{key:R,value:G}:R;this._utils.logger.warn(this._deprecatedHandler(ne,Z,this._utils))}}};f.normalizeForwardResult(L.forward(_,this._utils),_).forEach(C);let j=f.normalizeRedirectResult(L.redirect(_,this._utils),_);if(j.redirect.forEach(C),"remain"in j){let Q=j.remain;c[S]=S in c?L.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 L=D[S],_=this._unknownHandler(S,L,this._utils);if(_)for(let k of Object.keys(_)){let C={[k]:_[k]};k in this._utils.schemas?d.push(C):Object.assign(c,C)}}return d}};m.Normalizer=b}}),vv=Fe({"node_modules/vnopts/lib/index.js"(m){$e(),Object.defineProperty(m,"__esModule",{value:!0});var E=(We(),Qn(mn));E.__exportStar(Ke(),m),E.__exportStar(cr(),m),E.__exportStar(yv(),m),E.__exportStar(bv(),m),E.__exportStar(Vn(),m)}}),Ev=Fe({"src/main/options-normalizer.js"(m,E){$e();var f=vv(),b=$r(),D={key:k=>k.length===1?`-${k}`:`--${k}`,value:k=>f.apiDescriptor.value(k),pair:k=>{let{key:C,value:x}=k;return x===!1?`--no-${C}`:x===!0?D.key(C):x===""?`${D.key(C)} without an argument`:`${D.key(C)}=${x}`}},c=k=>{let{colorsModule:C,levenshteinDistance:x}=k;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(R=>x(R,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(k,C){let{logger:x=!1,isCLI:j=!1,passThrough:Q=!1,colorsModule:ee=null,levenshteinDistance:R=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,$)=>{let y=$.schemas,T=Ct(y,ot);return f.levenUnknownHandler(J,w,Object.assign(Object.assign({},$),{},{schemas:T}))},G=j?D:f.apiDescriptor,ne=v(C,{isCLI:j,colorsModule:ee,levenshteinDistance:R}),Z=new f.Normalizer(ne,{logger:x,unknown:X,descriptor:G}),De=x!==!1;De&&d&&(Z._hasDeprecationWarned=d);let F=Z.normalize(k);return De&&(d=Z._hasDeprecationWarned),j&&F["plugin-search"]===!1&&(F["plugin-search-dir"]=!1),F}function v(k,C){let{isCLI:x,colorsModule:j,levenshteinDistance:Q}=C,ee=[];x&&ee.push(f.AnySchema.create({name:"_"}));for(let R of k)ee.push(S(R,{isCLI:x,optionInfos:k,colorsModule:j,levenshteinDistance:Q})),R.alias&&x&&ee.push(f.AliasSchema.create({name:R.alias,sourceName:R.name}));return ee}function S(k,C){let{isCLI:x,optionInfos:j,colorsModule:Q,levenshteinDistance:ee}=C,{name:R}=k;if(R==="plugin-search-dir"||R==="pluginSearchDirs")return f.AnySchema.create({name:R,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:R},G,ne={};switch(k.type){case"int":G=f.IntegerSchema,x&&(X.preprocess=Number);break;case"string":G=f.StringSchema;break;case"choice":G=f.ChoiceSchema,X.choices=k.choices.map(Z=>typeof Z=="object"&&Z.redirect?Object.assign(Object.assign({},Z),{},{redirect:{to:{key:k.name,value:Z.redirect}}}):Z);break;case"boolean":G=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 ${k.type}`)}if(k.exception?X.validate=(Z,De,F)=>k.exception(Z)||De.validate(Z,F):X.validate=(Z,De,F)=>Z===void 0||De.validate(Z,F),k.redirect&&(ne.redirect=Z=>Z?{to:{key:k.redirect.option,value:k.redirect.value}}:void 0),k.deprecated&&(ne.deprecated=!0),x&&!k.array){let Z=X.preprocess||(De=>De);X.preprocess=(De,F,J)=>F.preprocess(Z(Array.isArray(De)?b(De):De),J)}return k.array?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 L(k,C,x){return h(k,C,x)}function _(k,C,x){return h(k,C,Object.assign({isCLI:!0},x))}E.exports={normalizeApiOptions:L,normalizeCliOptions:_}}}),ii=Fe({"src/language-js/loc.js"(m,E){$e();var f=It();function b(v){var S,L;let _=v.range?v.range[0]:v.start,k=(S=(L=v.declaration)===null||L===void 0?void 0:L.decorators)!==null&&S!==void 0?S:v.decorators;return f(k)?Math.min(b(k[0]),_):_}function D(v){return v.range?v.range[1]:v.end}function c(v,S){let L=b(v);return Number.isInteger(L)&&L===b(S)}function d(v,S){let L=D(v);return Number.isInteger(L)&&L===D(S)}function h(v,S){return c(v,S)&&d(v,S)}E.exports={locStart:b,locEnd:D,hasSameLocStart:c,hasSameLoc:h}}}),Av=Fe({"src/main/load-parser.js"(m,E){$e(),E.exports=()=>{}}}),Cv=Fe({"scripts/build/shims/babel-highlight.cjs"(m,E){$e();var f=Ze(),b={shouldHighlight:()=>!1,getChalk:()=>f};E.exports=b}}),Sv=Fe({"node_modules/@babel/code-frame/lib/index.js"(m){$e(),Object.defineProperty(m,"__esModule",{value:!0}),m.codeFrameColumns=d,m.default=h;var E=Cv(),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,L){let _=Object.assign({column:0,line:-1},v.start),k=Object.assign({},_,v.end),{linesAbove:C=2,linesBelow:x=3}=L||{},j=_.line,Q=_.column,ee=k.line,R=k.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,R];else{let J=S[F-De].length;Z[F]=[0,J]}}else Q===R?Q?Z[j]=[Q,0]:Z[j]=!0:Z[j]=[Q,R-Q];return{start:X,end:G,markerLines:Z}}function d(v,S){let L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_=(L.highlightCode||L.forceColor)&&(0,E.shouldHighlight)(L),k=(0,E.getChalk)(L),C=b(k),x=(Z,De)=>_?Z(De):De,j=v.split(D),{start:Q,end:ee,markerLines:R}=c(S,j,L),X=S.start&&typeof S.start.column=="number",G=String(ee).length,ne=(_?(0,E.default)(v,L):v).split(D,ee).slice(Q,ee).map((Z,De)=>{let F=Q+1+De,J=` ${` ${F}`.slice(-G)} |`,w=R[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=[`
179
- `,x(C.gutter,J.replace(/\d/g," "))," ",T,x(C.marker,"^").repeat(M)].join(""),$&&L.message&&(y+=" "+x(C.message,L.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(`
180
- `);return L.message&&!X&&(ne=`${" ".repeat(G+1)}${L.message}
181
- ${ne}`),_?k.reset(ne):ne}function h(v,S,L){let _=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};if(!f){f=!0;let k="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(Cr.emitWarning)Cr.emitWarning(k,"DeprecationWarning");else{let C=new Error(k);C.name="DeprecationWarning",console.warn(new Error(k))}}return L=Math.max(L,0),d(v,{start:{column:L,line:S}},_)}}}),$f=Fe({"src/main/parser.js"(m,E){$e();var{ConfigError:f}=tn(),b=ii();Av();var{locStart:D,locEnd:c}=b,d=Object.getOwnPropertyNames,h=Object.getOwnPropertyDescriptor;function v(_){let k={};for(let C of _.plugins)if(C.parsers)for(let x of d(C.parsers))Object.defineProperty(k,x,h(C.parsers,x));return k}function S(_){let k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v(_);if(typeof _.parser=="function")return{parse:_.parser,astFormat:"estree",locStart:D,locEnd:c};if(typeof _.parser=="string"){if(Object.prototype.hasOwnProperty.call(k,_.parser))return k[_.parser];throw new f(`Couldn't resolve parser "${_.parser}". Parsers must be explicitly added to the standalone bundle.`)}}function L(_,k){let C=v(k),x=Object.defineProperties({},Object.fromEntries(Object.keys(C).map(Q=>[Q,{enumerable:!0,get(){return C[Q].parse}}]))),j=S(k,C);try{return j.preprocess&&(_=j.preprocess(_,k)),{text:_,ast:j.parse(_,x,k)}}catch(Q){let{loc:ee}=Q;if(ee){let{codeFrameColumns:R}=Sv();throw Q.codeFrame=R(_,ee,{highlightCode:!0}),Q.message+=`
182
- `+Q.codeFrame,Q}throw Q}}E.exports={parse:L,resolveParser:S}}}),f0=Fe({"src/main/options.js"(m,E){$e();var f=Dt(),{UndefinedParserError:b}=tn(),{getSupportInfo:D}=Ft(),c=Ev(),{resolveParser:d}=$f(),h={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function v(_){let k=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)(k.logger||console).warn("No parser and no filepath given, using 'babel' the parser now but this will throw an error in the future. Please specify a parser or a filepath so one can be inferred."),C.parser="babel";else if(C.parser=L(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 R=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),R);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)},k))}function S(_){let{astFormat:k}=_;if(!k)throw new Error("getPlugin() requires astFormat to be set");let C=_.plugins.find(x=>x.printers&&x.printers[k]);if(!C)throw new Error(`Couldn't find plugin for AST format "${k}"`);return C}function L(_,k){let C=f.basename(_).toLowerCase(),x=D({plugins:k}).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:L}}}),xv=Fe({"src/main/massage-ast.js"(m,E){$e();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,L]of Object.entries(b))!h.has(S)&&typeof L!="function"&&(v[S]=f(L,D,b));if(d){let S=d(b,v,c);if(S===null)return;if(S)return S}return v}E.exports=f}}),Po=Fe({"scripts/build/shims/assert.cjs"(m,E){$e();var f=()=>{};f.ok=f,f.strictEqual=f,E.exports=f}}),Mr=Fe({"src/main/comments.js"(m,E){$e();var f=Po(),{builders:{line:b,hardline:D,breakParent:c,indent:d,lineSuffix:h,join:v,cursor:S}}=wn(),{hasNewline:L,skipNewline:_,skipSpaces:k,isPreviousLineEmpty:C,addLeadingComment:x,addDanglingComment:j,addTrailingComment:Q}=ye(),ee=new WeakMap;function R(ie,ce,ge){if(!ie)return;let{printer:fe,locStart:Ne,locEnd:se}=ce;if(ge){if(fe.canAttachComment&&fe.canAttachComment(ie)){let he;for(he=ge.length-1;he>=0&&!(Ne(ge[he])<=Ne(ie)&&se(ge[he])<=se(ie));--he);ge.splice(he+1,0,ie);return}}else if(ee.has(ie))return ee.get(ie);let qe=fe.getCommentChildNodes&&fe.getCommentChildNodes(ie,ce)||typeof ie=="object"&&Object.entries(ie).filter(he=>{let[oe]=he;return oe!=="enclosingNode"&&oe!=="precedingNode"&&oe!=="followingNode"&&oe!=="tokens"&&oe!=="comments"&&oe!=="parent"}).map(he=>{let[,oe]=he;return oe});if(qe){ge||(ge=[],ee.set(ie,ge));for(let he of qe)R(he,ce,ge);return ge}}function X(ie,ce,ge,fe){let{locStart:Ne,locEnd:se}=ge,qe=Ne(ce),he=se(ce),oe=R(ie,ge),Ue,et,Ge=0,ht=oe.length;for(;Ge<ht;){let be=Ge+ht>>1,Ie=oe[be],ft=Ne(Ie),pt=se(Ie);if(ft<=qe&&he<=pt)return X(Ie,ce,ge,Ie);if(pt<=qe){Ue=Ie,Ge=be+1;continue}if(he<=ft){et=Ie,ht=be;continue}throw new Error("Comment location overlaps with node location")}if(fe&&fe.type==="TemplateLiteral"){let{quasis:be}=fe,Ie=$(be,ce,ge);Ue&&$(be,Ue,ge)!==Ie&&(Ue=null),et&&$(be,et,ge)!==Ie&&(et=null)}return{enclosingNode:fe,precedingNode:Ue,followingNode:et}}var G=()=>!1;function ne(ie,ce,ge,fe){if(!Array.isArray(ie))return;let Ne=[],{locStart:se,locEnd:qe,printer:{handleComments:he={}}}=fe,{avoidAstMutation:oe,ownLine:Ue=G,endOfLine:et=G,remaining:Ge=G}=he,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:Re,text:Ce,options:Ye,ast:ze,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(ze)<=0){x(ze,ft);continue}if(qe(ft)-qe(ze)>=0){Q(ze,ft);continue}}let Nt;if(oe?Nt=[Ie]:(ft.enclosingNode=Jt,ft.precedingNode=pt,ft.followingNode=Re,Nt=[ft,Ce,Ye,ze,bt]),De(Ce,Ye,ht,be))ft.placement="ownLine",Ue(...Nt)||(Re?x(Re,ft):pt?Q(pt,ft):j(Jt||ze,ft));else if(F(Ce,Ye,ht,be))ft.placement="endOfLine",et(...Nt)||(pt?Q(pt,ft):Re?x(Re,ft):j(Jt||ze,ft));else if(ft.placement="remaining",!Ge(...Nt))if(pt&&Re){let Bt=Ne.length;Bt>0&&Ne[Bt-1].followingNode!==Re&&J(Ne,Ce,Ye),Ne.push(Ie)}else pt?Q(pt,ft):Re?x(Re,ft):j(Jt||ze,ft)}if(J(Ne,ge,fe),!oe)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:qe,locEnd:he}=ce,oe=qe(Ne);if(se)for(let Ue=fe-1;Ue>=0;Ue--){let{comment:et,precedingNode:Ge}=ge[Ue];if(Ge!==se||!Z(ie.slice(he(et),oe)))break;oe=qe(et)}return L(ie,oe,{backwards:!0})}function F(ie,ce,ge,fe){let{comment:Ne,followingNode:se}=ge[fe],{locStart:qe,locEnd:he}=ce,oe=he(Ne);if(se)for(let Ue=fe+1;Ue<ge.length;Ue++){let{comment:et,followingNode:Ge}=ge[Ue];if(Ge!==se||!Z(ie.slice(oe,qe(et))))break;oe=he(et)}return L(ie,oe)}function J(ie,ce,ge){let fe=ie.length;if(fe===0)return;let{precedingNode:Ne,followingNode:se,enclosingNode:qe}=ie[0],he=ge.printer.getGapRegex&&ge.printer.getGapRegex(qe)||/^[\s(]*$/,oe=ge.locStart(se),Ue;for(Ue=fe;Ue>0;--Ue){let{comment:et,precedingNode:Ge,followingNode:ht}=ie[Ue-1];f.strictEqual(Ge,Ne),f.strictEqual(ht,se);let be=ce.slice(ge.locEnd(et),oe);if(he.test(be))oe=ge.locStart(et);else break}for(let[et,{comment:Ge}]of ie.entries())et<Ue?Q(Ne,Ge):x(se,Ge);for(let et of[Ne,se])et.comments&&et.comments.length>1&&et.comments.sort((Ge,ht)=>ge.locStart(Ge)-ge.locStart(ht));ie.length=0}function w(ie,ce){let ge=ie.getValue();return ge.printed=!0,ce.printer.printComment(ie,ce)}function $(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:qe,locEnd:he}=ce;if(Ne.isBlockComment&&Ne.isBlockComment(ge)){let Ue=L(se,he(ge))?L(se,qe(ge),{backwards:!0})?D:b:" ";fe.push(Ue)}else fe.push(D);let oe=_(se,k(se,he(ge)));return oe!==!1&&L(se,oe)&&fe.push(D),fe}function T(ie,ce){let ge=ie.getValue(),fe=w(ie,ce),{printer:Ne,originalText:se,locStart:qe}=ce,he=Ne.isBlockComment&&Ne.isBlockComment(ge);if(L(se,qe(ge),{backwards:!0})){let Ue=C(se,ge,qe);return h([D,Ue?D:"",fe])}let oe=[" ",fe];return he||(oe=[h(oe),c]),oe}function M(ie,ce,ge,fe){let Ne=[],se=ie.getValue();return!se||!se.comments||(ie.each(()=>{let qe=ie.getValue();!qe.leading&&!qe.trailing&&(!fe||fe(qe))&&Ne.push(w(ie,ce))},"comments"),Ne.length===0)?"":ge?v(D,Ne):d([D,v(D,Ne)])}function U(ie,ce,ge){let fe=ie.getValue();if(!fe)return{};let Ne=fe.comments||[];ge&&(Ne=Ne.filter(oe=>!ge.has(oe)));let se=fe===ce.cursorNode;if(Ne.length===0){let oe=se?S:"";return{leading:oe,trailing:oe}}let qe=[],he=[];return ie.each(()=>{let oe=ie.getValue();if(ge&&ge.has(oe))return;let{leading:Ue,trailing:et}=oe;Ue?qe.push(y(ie,ce)):et&&he.push(T(ie,ce))},"comments"),se&&(qe.unshift(S),he.push(S)),{leading:qe,trailing:he}}function q(ie,ce,ge,fe){let{leading:Ne,trailing:se}=U(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:q,printCommentsSeparately:U,printDanglingComments:M,getSortedChildNodes:R,ensureAllCommentsPrinted:z}}}),wv=Fe({"src/common/ast-path.js"(m,E){$e();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 L=arguments.length,_=new Array(L>1?L-1:0),k=1;k<L;k++)_[k-1]=arguments[k];for(let x of _)S=S[x],h.push(x,S);let 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),L=d(this);return this.stack.push(...S),L}each(d){let{stack:h}=this,{length:v}=h,S=f(h);for(var L=arguments.length,_=new Array(L>1?L-1:0),k=1;k<L;k++)_[k-1]=arguments[k];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),L=1;L<v;L++)S[L-1]=arguments[L];return this.each((_,k,C)=>{h[k]=d(_,k,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,L=new Array(S),_=0;_<S;_++)L[_]=arguments[_];for(let k of L){if(v===void 0)return!1;let C=null;if(typeof h=="number"&&(C=h,h=this.stack[d--],v=this.stack[d--]),k&&!k(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 L=null;if(typeof v=="number"&&(L=v,v=this.stack[h--],S=this.stack[h--]),v!==null&&d(S,v,L))return S;v=this.stack[h--],S=this.stack[h--]}}};E.exports=c}}),Fv=Fe({"src/main/multiparser.js"(m,E){$e();var{utils:{stripTrailingHardline:f}}=wn(),{normalize:b}=f0(),D=Mr();function c(h,v,S,L){if(S.printer.embed&&S.embeddedLanguageFormatting==="auto")return S.printer.embed(h,v,(_,k,C)=>d(_,k,S,L,C),S)}function d(h,v,S,L){let{stripTrailingHardline:_=!1}=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{},k=b(Object.assign(Object.assign(Object.assign({},S),v),{},{parentParser:S.parser,originalText:h}),{passThrough:!0}),C=$f().parse(h,k),{ast:x}=C;h=C.text;let j=x.comments;delete x.comments,D.attach(j,x,h,k),k[Symbol.for("comments")]=j||[],k[Symbol.for("tokens")]=x.tokens||[];let Q=L(x,k);return D.ensureAllCommentsPrinted(j),_?typeof Q=="string"?Q.replace(/(?:\r?\n)*$/,""):f(Q):Q}E.exports={printSubtree:c}}}),Nv=Fe({"src/main/ast-to-doc.js"(m,E){$e();var f=wv(),{builders:{hardline:b,addAlignmentToDoc:D},utils:{propagateBreaks:c}}=wn(),{printComments:d}=Mr(),h=Fv();function v(_,k){let C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,{printer:x}=k;x.preprocess&&(_=x.preprocess(_,k));let j=new Map,Q=new f(_),ee=R();return C>0&&(ee=D([b,ee],C,k.tabWidth)),c(ee),ee;function R(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=L(Q,k,R,G);return Z&&j.set(ne,De),De}}function S(_,k){let{originalText:C,[Symbol.for("comments")]:x,locStart:j,locEnd:Q}=k,ee=j(_),R=Q(_),X=new Set;for(let G of x)j(G)>=ee&&Q(G)<=R&&(G.printed=!0,X.add(G));return{doc:C.slice(ee,R),printedComments:X}}function L(_,k,C,x){let j=_.getValue(),{printer:Q}=k,ee,R;if(Q.hasPrettierIgnore&&Q.hasPrettierIgnore(_))({doc:ee,printedComments:R}=S(j,k));else{if(j)try{ee=h.printSubtree(_,C,k,v)}catch(X){if(globalThis.PRETTIER_DEBUG)throw X}ee||(ee=Q.print(_,k,C,x))}return(!Q.willPrintOwnComments||!Q.willPrintOwnComments(_,k))&&(ee=d(_,ee,k,R)),ee}E.exports=v}}),_v=Fe({"src/main/range-util.js"(m,E){$e();var f=Po(),b=Mr(),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(R=>L.has(R.type)&&ee.has(R))}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:R}=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=R(j.node);for(let De of d(x.parentNodes)){if(R(De)<=Z)X=De;else break;if(X===G)break}return{startNode:X,endNode:G}}function v(x,j,Q,ee){let R=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,...R],X);if(J)return J}if(!ee||ee(x,R[0]))return{node:x,parentNodes:R}}}function S(x,j){return j!=="DeclareExportDeclaration"&&x!=="TypeParameterDeclaration"&&(x==="Directive"||x==="TypeAlias"||x==="TSExportAssignment"||x.startsWith("Declare")||x.startsWith("TSDeclare")||x.endsWith("Statement")||x.endsWith("Declaration"))}var L=new Set(["ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),_=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function k(x,j,Q){if(!j)return!1;switch(x.parser){case"flow":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"__babel_estree":return S(j.type,Q&&Q.type);case"json":case"json5":case"json-stringify":return L.has(j.type);case"graphql":return _.has(j.kind);case"vue":return j.tag!=="root"}return!1}function C(x,j,Q){let{rangeStart:ee,rangeEnd:R,locStart:X,locEnd:G}=j;f.ok(R>ee);let ne=x.slice(ee,R).search(/\S/),Z=ne===-1;if(!Z)for(ee+=ne;R>ee&&!/\S/.test(x[R-1]);--R);let De=v(Q,ee,j,($,y)=>k(j,$,y),[],"rangeStart"),F=Z?De:v(Q,R,j,$=>k(j,$),[],"rangeEnd");if(!De||!F)return{rangeStart:0,rangeEnd:0};let J,w;if(D(j)){let $=c(De,F);J=$,w=$}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}}}),Tv=Fe({"src/main/core.js"(m,E){$e();var{diffArrays:f}=Bs(),{printer:{printDocToString:b},debug:{printDocToDebug:D}}=wn(),{getAlignmentSize:c}=ye(),{guessEndOfLine:d,convertEndOfLineToChars:h,countEndOfLineChars:v,normalizeEndOfLine:S}=ns(),L=f0().normalize,_=xv(),k=Mr(),C=$f(),x=Nv(),j=_v(),Q="\uFEFF",ee=Symbol("cursor");function R(w,$,y){let T=$.comments;return T&&(delete $.comments,k.attach(T,$,w,y)),y[Symbol.for("comments")]=T||[],y[Symbol.for("tokens")]=$.tokens||[],y.originalText=w,T}function X(w,$){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,$);if($.cursorOffset>=0){let ie=j.findNodeAtOffset(T,$.cursorOffset,$);ie&&ie.node&&($.cursorNode=ie.node)}let U=R(M,T,$),q=x(T,$,y),z=b(q,$);if(k.ensureAllCommentsPrinted(U),y>0){let ie=z.formatted.trim();z.cursorNodeStart!==void 0&&(z.cursorNodeStart-=z.formatted.indexOf(ie)),z.formatted=ie+h($.endOfLine)}if($.cursorOffset>=0){let ie,ce,ge,fe,Ne;if($.cursorNode&&z.cursorNodeText?(ie=$.locStart($.cursorNode),ce=M.slice(ie,$.locEnd($.cursorNode)),ge=$.cursorOffset-ie,fe=z.cursorNodeStart,Ne=z.cursorNodeText):(ie=0,ce=M,ge=$.cursorOffset,fe=0,Ne=z.formatted),ce===Ne)return{formatted:z.formatted,cursorOffset:fe+ge,comments:U};let se=[...ce];se.splice(ge,0,ee);let qe=[...Ne],he=f(se,qe),oe=fe;for(let Ue of he)if(Ue.removed){if(Ue.value.includes(ee))break}else oe+=Ue.count;return{formatted:z.formatted,cursorOffset:oe,comments:U}}return{formatted:z.formatted,cursorOffset:-1,comments:U}}function G(w,$){let{ast:y,text:T}=C.parse(w,$),{rangeStart:M,rangeEnd:U}=j.calculateRange(T,$,y),q=T.slice(M,U),z=Math.min(M,T.lastIndexOf(`
183
- `,M)+1),ie=T.slice(z,M).match(/^\s*/)[0],ce=c(ie,$.tabWidth),ge=X(q,Object.assign(Object.assign({},$),{},{rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:$.cursorOffset>M&&$.cursorOffset<=U?$.cursorOffset-M:-1,endOfLine:"lf"}),ce),fe=ge.formatted.trimEnd(),{cursorOffset:Ne}=$;Ne>U?Ne+=fe.length-q.length:ge.cursorOffset>=0&&(Ne=ge.cursorOffset+M);let se=T.slice(0,M)+fe+T.slice(U);if($.endOfLine!=="lf"){let qe=h($.endOfLine);Ne>=0&&qe===`\r
184
- `&&(Ne+=v(se.slice(0,Ne),`
185
- `)),se=se.replace(/\n/g,qe)}return{formatted:se,cursorOffset:Ne,comments:ge.comments}}function ne(w,$,y){return typeof $!="number"||Number.isNaN($)||$<0||$>w.length?y:$}function Z(w,$){let{cursorOffset:y,rangeStart:T,rangeEnd:M}=$;return y=ne(w,y,-1),T=ne(w,T,0),M=ne(w,M,w.length),Object.assign(Object.assign({},$),{},{cursorOffset:y,rangeStart:T,rangeEnd:M})}function De(w,$){let{cursorOffset:y,rangeStart:T,rangeEnd:M,endOfLine:U}=Z(w,$),q=w.charAt(0)===Q;if(q&&(w=w.slice(1),y--,T--,M--),U==="auto"&&(U=d(w)),w.includes("\r")){let z=ie=>v(w.slice(0,Math.max(ie,0)),`\r
186
- `);y-=z(y),T-=z(T),M-=z(M),w=S(w)}return{hasBOM:q,text:w,options:Z(w,Object.assign(Object.assign({},$),{},{cursorOffset:y,rangeStart:T,rangeEnd:M,endOfLine:U}))}}function F(w,$){let y=C.resolveParser($);return!y.hasPragma||y.hasPragma(w)}function J(w,$){let{hasBOM:y,text:T,options:M}=De(w,L($));if(M.rangeStart>=M.rangeEnd&&T!==""||M.requirePragma&&!F(T,M))return{formatted:w,cursorOffset:$.cursorOffset,comments:[]};let U;return M.rangeStart>0||M.rangeEnd<T.length?U=G(T,M):(!M.requirePragma&&M.insertPragma&&M.printer.insertPragma&&!F(T,M)&&(T=M.printer.insertPragma(T)),U=X(T,M)),y&&(U.formatted=Q+U.formatted,U.cursorOffset>=0&&U.cursorOffset++),U}E.exports={formatWithCursor:J,parse(w,$,y){let{text:T,options:M}=De(w,L($)),U=C.parse(T,M);return y&&(U.ast=_(U.ast,M)),U},formatAST(w,$){$=L($);let y=x(w,$);return b(y,$)},formatDoc(w,$){return J(D(w),Object.assign(Object.assign({},$),{},{parser:"__js_expression"})).formatted},printToDoc(w,$){$=L($);let{ast:y,text:T}=C.parse(w,$);return R(T,y,$),x(y,$)},printDocToString(w,$){return b(w,L($))}}}}),kv=Fe({"src/common/util-shared.js"(m,E){$e();var{getMaxContinuousCount:f,getStringWidth:b,getAlignmentSize:D,getIndentSize:c,skip:d,skipWhitespace:h,skipSpaces:v,skipNewline:S,skipToLineEnd:L,skipEverythingButNewLine:_,skipInlineComment:k,skipTrailingComment:C,hasNewline:x,hasNewlineInRange:j,hasSpaces:Q,isNextLineEmpty:ee,isNextLineEmptyAfterIndex:R,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:L,skipEverythingButNewLine:_,skipInlineComment:k,skipTrailingComment:C,hasNewline:x,hasNewlineInRange:j,hasSpaces:Q,isNextLineEmpty:ee,isNextLineEmptyAfterIndex:R,isPreviousLineEmpty:X,getNextNonSpaceNonCommentCharacterIndex:G,makeString:ne,addLeadingComment:Z,addDanglingComment:De,addTrailingComment:F}}}),ta=Fe({"src/utils/create-language.js"(m,E){$e(),E.exports=function(f,b){let{languageId:D}=f,c=Ct(f,rt);return Object.assign(Object.assign({linguistLanguageId:D},c),b(f))}}}),Lv=Fe({"node_modules/esutils/lib/ast.js"(m,E){$e(),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}}()}}),p0=Fe({"node_modules/esutils/lib/code.js"(m,E){$e(),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(R){return 48<=R&&R<=57}function S(R){return 48<=R&&R<=57||97<=R&&R<=102||65<=R&&R<=70}function L(R){return R>=48&&R<=55}D=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function _(R){return R===32||R===9||R===11||R===12||R===160||R>=5760&&D.indexOf(R)>=0}function k(R){return R===10||R===13||R===8232||R===8233}function C(R){if(R<=65535)return String.fromCharCode(R);var X=String.fromCharCode(Math.floor((R-65536)/1024)+55296),G=String.fromCharCode((R-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(R){return R<128?c[R]:b.NonAsciiIdentifierStart.test(C(R))}function j(R){return R<128?d[R]:b.NonAsciiIdentifierPart.test(C(R))}function Q(R){return R<128?c[R]:f.NonAsciiIdentifierStart.test(C(R))}function ee(R){return R<128?d[R]:f.NonAsciiIdentifierPart.test(C(R))}E.exports={isDecimalDigit:v,isHexDigit:S,isOctalDigit:L,isWhiteSpace:_,isLineTerminator:k,isIdentifierStartES5:x,isIdentifierPartES5:j,isIdentifierStartES6:Q,isIdentifierPartES6:ee}}()}}),Pv=Fe({"node_modules/esutils/lib/keyword.js"(m,E){$e(),function(){var f=p0();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 L(x,j){return(x-55296)*1024+(j-56320)+65536}function _(x){var j,Q,ee,R,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||(R=x.charCodeAt(j),!(56320<=R&&R<=57343)))return!1;ee=L(ee,R)}if(!X(ee))return!1;X=f.isIdentifierPartES6}return!0}function k(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:k,isIdentifierES6:C}}()}}),Bv=Fe({"node_modules/esutils/lib/utils.js"(m){$e(),function(){m.ast=Lv(),m.code=p0(),m.keyword=Pv()}()}}),na=Fe({"src/language-js/utils/is-block-comment.js"(m,E){$e();var f=new Set(["Block","CommentBlock","MultiLine"]),b=D=>f.has(D==null?void 0:D.type);E.exports=b}}),Mv=Fe({"src/language-js/utils/is-node-matches.js"(m,E){$e();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){$e();var f=Bv().keyword.isIdentifierNameES5,{getLast:b,hasNewline:D,skipWhitespace:c,isNonEmptyArray:d,isNextLineEmptyAfterIndex:h,getStringWidth:v}=ye(),{locStart:S,locEnd:L,hasSameLocStart:_}=ii(),k=na(),C=Mv(),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)&&k((gn=ae.trailingComments)===null||gn===void 0?void 0:gn[0])&&j.test(ae.trailingComments[0].value)}function R(ae){let vt=ae==null?void 0:ae[0];return k(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||xi(ae)||ae.type==="TSNonNullExpression"}function ne(ae){var vt,gn,Hn,zn,bi,xr;return ae.expressions?ae.expressions[0]:(vt=(gn=(Hn=(zn=(bi=(xr=ae.left)!==null&&xr!==void 0?xr:ae.test)!==null&&bi!==void 0?bi: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 $=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 U=De(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),q=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 qe(ae){return(ae.type==="TypeAnnotation"||ae.type==="TSTypeAnnotation")&&ae.typeAnnotation.type==="FunctionTypeAnnotation"&&!ae.static&&!_(ae,ae.typeAnnotation)}var he=De(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function oe(ae){return pt(ae)||ae.type==="BindExpression"&&!!ae.object}var Ue=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 et(ae){return ae?!!((ae.type==="GenericTypeAnnotation"||ae.type==="TSTypeReference")&&!ae.typeParameters||Ue.has(ae.type)):!1}function Ge(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 q(ae.arguments[0]);if(Ge(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?q(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 Re(ae,vt){return ae==="+"||ae==="-"?ae+vt:vt}function Ce(ae,vt){let gn=S(vt),Hn=c(ae,L(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,L(gn)))}function ze(ae,vt){return vt.parser!=="json"&&M(ae.key)&&at(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(`
187
- `))}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(ut(ae,an.Dangling));return vt&&!k(vt)}function Tn(ae){if(ae.length<=1)return!1;let vt=0;for(let gn of ae)if(q(gn)){if(vt+=1,vt>1)return!0}else if(ft(gn)){for(let Hn of gn.arguments)if(q(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=xr=>Dn(xr,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(xr=>!xr.value.raw.includes(`
188
- `))&&ae.expressions.every(gn);if(ae.type==="ObjectExpression")return ae.properties.every(xr=>!xr.computed&&(xr.shorthand||xr.value&&gn(xr.value)));if(ae.type==="ArrayExpression")return ae.elements.every(xr=>xr===null||gn(xr));if(Qr(ae))return(ae.type==="ImportExpression"||Dn(ae.callee,vt))&&Dr(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 bi={"++":!0,"--":!0};return ae.type==="UpdateExpression"&&bi[ae.operator]?Dn(ae.argument,vt):ae.type==="TSNonNullExpression"?Dn(ae.expression,vt):!1}function at(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 lt(ae,vt){switch(ae.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return lt(ae.left,vt);case"MemberExpression":case"OptionalMemberExpression":return lt(ae.object,vt);case"TaggedTemplateExpression":return ae.tag.type==="FunctionExpression"?!1:lt(ae.tag,vt);case"CallExpression":case"OptionalCallExpression":return ae.callee.type==="FunctionExpression"?!1:lt(ae.callee,vt);case"ConditionalExpression":return lt(ae.test,vt);case"UpdateExpression":return!ae.prefix&&lt(ae.argument,vt);case"BindExpression":return ae.object&&lt(ae.object,vt);case"SequenceExpression":return lt(ae.expressions[0],vt);case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":return lt(ae.expression,vt);default:return vt(ae)}}var Zt={"==":!0,"!=":!0,"===":!0,"!==":!0},qt={"*":!0,"/":!0,"%":!0},gt={">>":!0,">>>":!0,"<<":!0};function V(ae,vt){return!(nt(vt)!==nt(ae)||ae==="**"||Zt[ae]&&Zt[vt]||vt==="%"&&qt[ae]||ae==="%"&&qt[vt]||vt!==ae&&qt[vt]&&qt[ae]||gt[ae]&&gt[vt])}var _e=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((ae,vt)=>ae.map(gn=>[gn,vt])));function nt(ae){return _e.get(ae)}function kt(ae){return!!gt[ae]||ae==="|"||ae==="^"||ae==="&"}function Rt(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 Ar(ae,vt){let gn=ae.getValue(),Hn=0,zn=bi=>vt(bi,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 Dr(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&&!k(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 ut(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 Si=(ae,vt)=>{let{originalText:gn}=vt;return h(gn,L(ae))};function Qr(ae){return ft(ae)||ae.type==="NewExpression"||ae.type==="ImportExpression"}function Un(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 xi(ae){return ae.type==="TSAsExpression"||ae.type==="TSSatisfiesExpression"}E.exports={getFunctionParameters:Mt,iterateFunctionParametersPath:Ar,getCallArguments:Dr,iterateCallArgumentsPath:nn,hasRestParameter:Rt,getLeftSide:ne,getLeftSidePathName:Z,getParentExportDeclaration:w,getTypeScriptMappedTypeModifier:Re,hasFlowAnnotationComment:R,hasFlowShorthandAnnotationComment:ee,hasLeadingOwnLineComment:Ye,hasNakedLeftSide:G,hasNode:X,hasIgnoreComment:ar,hasNodeIgnoreComment:Bn,identity:Ee,isBinaryish:he,isCallLikeExpression:Qr,isEnabledHackPipeline:Gn,isLineComment:F,isPrettierIgnoreComment:An,isCallExpression:ft,isMemberExpression:pt,isExportDeclaration:J,isFlowAnnotationComment:Ce,isFunctionCompositionArgs:Tn,isFunctionNotation:Ne,isFunctionOrArrowExpression:q,isGetterOrSetter:fe,isJestEachTemplateLiteral:Nt,isJsxNode:ce,isLiteral:$,isLongCurriedCallExpression:ln,isSimpleCallArgument:Dn,isMemberish:oe,isNumericLiteral:y,isSignedNumericLiteral:T,isObjectProperty:Un,isObjectType:U,isObjectTypePropertyAFunction:se,isSimpleType:et,isSimpleNumber:bt,isSimpleTemplateLiteral:Jt,isStringLiteral:M,isStringPropSafeToUnquote:ze,isTemplateOnItsOwnLine:cn,isTestCall:Ie,isTheOnlyJsxElementInMarkdown:ge,isTSXFile:dt,isTypeAnnotationAFunction:qe,isNextLineEmpty:Si,needsHardlineAfterDanglingComment:In,rawText:at,shouldPrintComma:Oe,isBitwiseOperator:kt,shouldFlatten:V,startsWithNoLookaheadToken:lt,getPrecedence:nt,hasComment:Sn,getComments:ut,CommentCheckFlags:an,markerForIfWithoutBlockAndSameLineComment:fr,isTSTypeExpression:xi}}}),Ja=Fe({"src/language-js/print/template-literal.js"(m,E){$e();var f=$r(),{getStringWidth:b,getIndentSize:D}=ye(),{builders:{join:c,hardline:d,softline:h,group:v,indent:S,align:L,lineSuffixBoundary:_,addAlignmentToDoc:k},printer:{printDocToString:C},utils:{mapDoc:x}}=wn(),{isBinaryish:j,isJestEachTemplateLiteral:Q,isSimpleTemplateLiteral:ee,hasComment:R,isMemberExpression:X,isTSTypeExpression:G}=pr();function ne($,y,T){let M=$.getValue();if(M.type==="TemplateLiteral"&&Q(M,$.getParentNode())){let ce=Z($,T,y);if(ce)return ce}let U="expressions";M.type==="TSTemplateLiteralType"&&(U="types");let q=[],z=$.map(y,U),ie=ee(M);return ie&&(z=z.map(ce=>C(ce,Object.assign(Object.assign({},T),{},{printWidth:Number.POSITIVE_INFINITY})).formatted)),q.push(_,"`"),$.each(ce=>{let ge=ce.getName();if(q.push(y()),ge<z.length){let{tabWidth:fe}=T,Ne=ce.getValue(),se=D(Ne.value.raw,fe),qe=z[ge];if(!ie){let oe=M[U][ge];(R(oe)||X(oe)||oe.type==="ConditionalExpression"||oe.type==="SequenceExpression"||G(oe)||j(oe))&&(qe=[S([h,qe]),h])}let he=se===0&&Ne.value.raw.endsWith(`
189
- `)?L(Number.NEGATIVE_INFINITY,qe):k(qe,se,fe);q.push(v(["${",he,_,"}"]))}},"quasis"),q.push("`"),q}function Z($,y,T){let M=$.getNode(),U=M.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(U.length>1||U.some(q=>q.length>0)){y.__inJestEach=!0;let q=$.map(T,"expressions");y.__inJestEach=!1;let z=[],ie=q.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 qe=f(ce),he=ie[se-1];qe.cells.push(he),he.includes(`
190
- `)&&(qe.hasLineBreak=!0),M.quasis[se].value.raw.includes(`
191
- `)&&ce.push({hasLineBreak:!1,cells:[]})}let ge=Math.max(U.length,...ce.map(se=>se.cells.length)),fe=Array.from({length:ge}).fill(0),Ne=[{cells:U},...ce.filter(se=>se.cells.length>0)];for(let{cells:se}of Ne.filter(qe=>!qe.hasLineBreak))for(let[qe,he]of se.entries())fe[qe]=Math.max(fe[qe],b(he));return z.push(_,"`",S([d,c(d,Ne.map(se=>c(" | ",se.cells.map((qe,he)=>se.hasLineBreak?qe:qe+" ".repeat(fe[he]-b(qe))))))]),d,"`"),z}}function De($,y){let T=$.getValue(),M=y();return R(T)&&(M=v([S([h,M]),h])),["${",M,_,"}"]}function F($,y){return $.map(T=>De(T,y),"expressions")}function J($,y){return x($,T=>typeof T=="string"?y?T.replace(/(\\*)`/g,"$1$1\\`"):w(T):T)}function w($){return $.replace(/([\\`]|\${)/g,"\\$1")}E.exports={printTemplateLiteral:ne,printTemplateExpressions:F,escapeTemplateCharacters:J,uncookTemplateElementValue:w}}}),Iv=Fe({"src/language-js/embed/markdown.js"(m,E){$e();var{builders:{indent:f,softline:b,literalline:D,dedentToRoot:c}}=wn(),{escapeTemplateCharacters:d}=Ja();function h(S,L,_){let k=S.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(Q,ee)=>"\\".repeat(ee.length/2)+"`"),C=v(k),x=C!=="";x&&(k=k.replace(new RegExp(`^${C}`,"gm"),""));let j=d(_(k,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",x?f([b,j]):[D,c(j)],b,"`"]}function v(S){let L=S.match(/^([^\S\n]*)\S/m);return L===null?"":L[1]}E.exports=h}}),Ov=Fe({"src/language-js/embed/css.js"(m,E){$e();var{isNonEmptyArray:f}=ye(),{builders:{indent:b,hardline:D,softline:c},utils:{mapDoc:d,replaceEndOfLine:h,cleanDoc:v}}=wn(),{printTemplateExpressions:S}=Ja();function L(C,x,j){let Q=C.getValue(),ee=Q.quasis.map(Z=>Z.value.raw),R=0,X=ee.reduce((Z,De,F)=>F===0?De:Z+"@prettier-placeholder-"+R+++"-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=k(C,j);if(!Q)throw new Error("Couldn't insert all the expressions");return["`",b([D,Q]),c,"`"]}function k(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((R,X)=>X%2===0?h(R):(j++,x[R])));return x.length===j?Q:null}E.exports=L}}),jv=Fe({"src/language-js/embed/graphql.js"(m,E){$e();var{builders:{indent:f,join:b,hardline:D}}=wn(),{escapeTemplateCharacters:c,printTemplateExpressions:d}=Ja();function h(S,L,_){let k=S.getValue(),C=k.quasis.length;if(C===1&&k.quasis[0].value.raw.trim()==="")return"``";let x=d(S,L),j=[];for(let Q=0;Q<C;Q++){let ee=k.quasis[Q],R=Q===0,X=Q===C-1,G=ee.value.cooked,ne=G.split(`
192
- `),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 $=null;w?$=v(ne):$=_(G,{parser:"graphql"},{stripTrailingHardline:!0}),$?($=c($,!1),!R&&F&&j.push(""),j.push($),!X&&J&&j.push("")):!R&&!X&&F&&j.push(""),De&&j.push(De)}return["`",f([D,b(D,j)]),D,"`"]}function v(S){let L=[],_=!1,k=S.map(C=>C.trim());for(let[C,x]of k.entries())x!==""&&(k[C-1]===""&&_?L.push([D,x]):L.push(x),_=!0);return L.length===0?null:b(D,L)}E.exports=h}}),$v=Fe({"src/language-js/embed/html.js"(m,E){$e();var{builders:{indent:f,line:b,hardline:D,group:c},utils:{mapDoc:d}}=wn(),{printTemplateExpressions:h,uncookTemplateElementValue:v}=Ja(),S=0;function L(_,k,C,x,j){let{parser:Q}=j,ee=_.getValue(),R=S;S=S+1>>>0;let X=T=>`PRETTIER_HTML_PLACEHOLDER_${T}_${R}_IN_JS`,G=ee.quasis.map((T,M,U)=>M===U.length-1?T.value.cooked:T.value.cooked+X(M)).join(""),ne=h(_,k);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=[],U=T.split(Z);for(let q=0;q<U.length;q++){let z=U[q];if(q%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)?" ":"",$=/\s$/.test(G)?" ":"",y=x.htmlWhitespaceSensitivity==="ignore"?D:w&&$?b:null;return c(y?["`",f([y,c(J)]),y,"`"]:["`",w,De>1?f(c(J)):c(J),$,"`"])}E.exports=L}}),Rv=Fe({"src/language-js/embed.js"(m,E){$e();var{hasComment:f,CommentCheckFlags:b,isObjectProperty:D}=pr(),c=Iv(),d=Ov(),h=jv(),v=$v();function S(F){if(k(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 L(F,J,w,$){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,$,{parser:T})}}function _(F){let J=F.getValue(),w=F.getParentNode();return w&&w.type==="TaggedTemplateExpression"&&J.quasis.length===1&&w.tag.type==="Identifier"&&(w.tag.name==="md"||w.tag.name==="markdown")}function k(F){let J=F.getValue(),w=F.getParentNode(),$=F.getParentNode(1);return $&&J.quasis&&w.type==="JSXExpressionContainer"&&$.type==="JSXElement"&&$.openingElement.name.name==="style"&&$.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 R(w.object)||X(w);case"CallExpression":return R(w.callee)||w.callee.type==="MemberExpression"&&(w.callee.object.type==="MemberExpression"&&(R(w.callee.object.object)||X(w.callee.object))||w.callee.object.type==="CallExpression"&&R(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 R(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:$}=w;return $===` ${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:$}}=w;return $===null})}E.exports=L}}),Vv=Fe({"src/language-js/clean.js"(m,E){$e();var f=na(),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:k}of h.children)_==="JSXExpressionContainer"&&k.type==="TemplateLiteral"&&D(k);d.type==="JSXAttribute"&&d.name.name==="css"&&d.value.type==="JSXExpressionContainer"&&d.value.expression.type==="TemplateLiteral"&&D(h.value.expression),d.type==="JSXAttribute"&&d.value&&d.value.type==="Literal"&&/["']|&quot;|&apos;/.test(d.value.value)&&(h.value.value=h.value.value.replace(/["']|&quot;|&apos;/g,'"'));let S=d.expression||d.callee;if(d.type==="Decorator"&&S.type==="CallExpression"&&S.callee.name==="Component"&&S.arguments.length===1){let _=d.expression.arguments[0].properties;for(let[k,C]of h.expression.arguments[0].properties.entries())switch(_[k].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 L;(!((L=d.leadingComments)===null||L===void 0)&&L.some(_=>f(_)&&["GraphQL","HTML"].some(k=>_.value===` ${k} `))||v.type==="CallExpression"&&v.callee.name==="graphql"||!d.leadingComments)&&D(h)}if(d.type==="InterpreterDirective"&&(h.value=h.value.trimEnd()),(d.type==="TSIntersectionType"||d.type==="TSUnionType")&&d.types.length===1)return h.types[0]}c.ignoredProperties=b,E.exports=c}}),d0={};xn(d0,{EOL:()=>Uf,arch:()=>Uv,cpus:()=>v0,default:()=>x0,endianness:()=>h0,freemem:()=>D0,getNetworkInterfaces:()=>S0,hostname:()=>m0,loadavg:()=>g0,networkInterfaces:()=>C0,platform:()=>qv,release:()=>A0,tmpDir:()=>Rf,tmpdir:()=>Vf,totalmem:()=>b0,type:()=>E0,uptime:()=>y0});function h0(){if(typeof ul>"u"){var m=new ArrayBuffer(2),E=new Uint8Array(m),f=new Uint16Array(m);if(E[0]=1,E[1]=2,f[0]===258)ul="BE";else if(f[0]===513)ul="LE";else throw new Error("unable to figure out endianess")}return ul}function m0(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function g0(){return[]}function y0(){return 0}function D0(){return Number.MAX_VALUE}function b0(){return Number.MAX_VALUE}function v0(){return[]}function E0(){return"Browser"}function A0(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function C0(){}function S0(){}function Uv(){return"javascript"}function qv(){return"browser"}function Rf(){return"/tmp"}var ul,Vf,Uf,x0,Wv=dn({"node-modules-polyfills:os"(){$e(),Vf=Rf,Uf=`
193
- `,x0={EOL:Uf,tmpdir:Vf,tmpDir:Rf,networkInterfaces:C0,getNetworkInterfaces:S0,release:A0,type:E0,cpus:v0,totalmem:b0,freemem:D0,uptime:y0,loadavg:g0,hostname:m0,endianness:h0}}}),Gv=Fe({"node-modules-polyfills-commonjs:os"(m,E){$e();var f=(Wv(),Qn(d0));if(f&&f.default){E.exports=f.default;for(let b in f)E.exports[b]=f[b]}else f&&(E.exports=f)}}),Jv=Fe({"node_modules/detect-newline/index.js"(m,E){$e();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
194
- `).length,d=D.length-c;return c>d?`\r
195
- `:`
196
- `};E.exports=f,E.exports.graceful=b=>typeof b=="string"&&f(b)||`
197
- `}}),Yv=Fe({"node_modules/jest-docblock/build/index.js"(m){$e(),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=Gv();return E=function(){return X},X}function f(){let X=b(Jv());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,L=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,_=/(\r?\n|^) *\* ?/g,k=[];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(L,"").replace(v,"").trimRight(),F;for(;F=L.exec(X);){let J=F[2].replace(h,"");typeof Z[F[1]]=="string"||Array.isArray(Z[F[1]])?Z[F[1]]=k.concat(Z[F[1]],J):Z[F[1]]=J}return{comments:De,pragmas:Z}}function ee(X){let{comments:G="",pragmas:ne={}}=X,Z=(0,f().default)(G)||E().EOL,De="/**",F=" *",J=" */",w=Object.keys(ne),$=w.map(T=>R(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} ${R(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:"")+$+J}function R(X,G){return k.concat(G).map(ne=>`@${X} ${ne}`.trim())}}}),Hv=Fe({"src/language-js/utils/get-shebang.js"(m,E){$e();function f(b){if(!b.startsWith("#!"))return"";let D=b.indexOf(`
198
- `);return D===-1?b:b.slice(0,D)}E.exports=f}}),w0=Fe({"src/language-js/pragma.js"(m,E){$e();var{parseWithComments:f,strip:b,extract:D,print:c}=Yv(),{normalizeEndOfLine:d}=ns(),h=Hv();function v(_){let k=h(_);k&&(_=_.slice(k.length+1));let C=D(_),{pragmas:x,comments:j}=f(C);return{shebang:k,text:_,pragmas:x,comments:j}}function S(_){let k=Object.keys(v(_).pragmas);return k.includes("prettier")||k.includes("format")}function L(_){let{shebang:k,text:C,pragmas:x,comments:j}=v(_),Q=b(C),ee=c({pragmas:Object.assign({format:""},x),comments:j.trimStart()});return(k?`${k}
199
- `:"")+d(ee)+(Q.startsWith(`
200
- `)?`
201
- `:`
202
-
203
- `)+Q}E.exports={hasPragma:S,insertPragma:L}}}),zv=Fe({"src/language-js/utils/is-type-cast-comment.js"(m,E){$e();var f=na();function b(D){return f(D)&&D.value[0]==="*"&&/@(?:type|satisfies)\b/.test(D.value)}E.exports=b}}),F0=Fe({"src/language-js/comments.js"(m,E){$e();var{getLast:f,hasNewline:b,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:D,getNextNonSpaceNonCommentCharacter:c,hasNewlineInRange:d,addLeadingComment:h,addTrailingComment:v,addDanglingComment:S,getNextNonSpaceNonCommentCharacterIndex:L,isNonEmptyArray:_}=ye(),{getFunctionParameters:k,isPrettierIgnoreComment:C,isJsxNode:x,hasFlowShorthandAnnotationComment:j,hasFlowAnnotationComment:Q,hasIgnoreComment:ee,isCallLikeExpression:R,getCallArguments:X,isCallExpression:G,isMemberExpression:ne,isObjectProperty:Z,isLineComment:De,getComments:F,CommentCheckFlags:J,markerForIfWithoutBlockAndSameLineComment:w}=pr(),{locStart:$,locEnd:y}=ii(),T=na(),M=zv();function U(gt){return[Ee,Jt,qe,fe,Ne,se,et,Bt,ze,Nt,cn,In,ht,Re,Ce].some(V=>V(gt))}function q(gt){return[ge,Jt,he,cn,fe,Ne,se,et,Re,Ye,bt,Nt,Dn,Ce,Oe].some(V=>V(gt))}function z(gt){return[Ee,fe,Ne,oe,pt,ht,Nt,ft,Ie,dt,Ce,at].some(V=>V(gt))}function ie(gt,V){let _e=(gt.body||gt.properties).find(nt=>{let{type:kt}=nt;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:nt,followingNode:kt,text:Rt}=gt;if((nt==null?void 0:nt.type)!=="IfStatement"||!kt)return!1;if(c(Rt,V,y)===")")return v(_e,V),!0;if(_e===nt.consequent&&kt===nt.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(nt,V)}return!0}return kt.type==="BlockStatement"?(ie(kt,V),!0):kt.type==="IfStatement"?(ce(kt.consequent,V),!0):nt.consequent===kt?(h(kt,V),!0):!1}function Ne(gt){let{comment:V,precedingNode:_e,enclosingNode:nt,followingNode:kt,text:Rt}=gt;return(nt==null?void 0:nt.type)!=="WhileStatement"||!kt?!1:c(Rt,V,y)===")"?(v(_e,V),!0):kt.type==="BlockStatement"?(ie(kt,V),!0):nt.body===kt?(h(kt,V),!0):!1}function se(gt){let{comment:V,precedingNode:_e,enclosingNode:nt,followingNode:kt}=gt;return(nt==null?void 0:nt.type)!=="TryStatement"&&(nt==null?void 0:nt.type)!=="CatchClause"||!kt?!1:nt.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 qe(gt){let{comment:V,enclosingNode:_e,followingNode:nt}=gt;return ne(_e)&&(nt==null?void 0:nt.type)==="Identifier"?(h(_e,V),!0):!1}function he(gt){let{comment:V,precedingNode:_e,enclosingNode:nt,followingNode:kt,text:Rt}=gt,un=_e&&!d(Rt,y(_e),$(V));return(!_e||!un)&&((nt==null?void 0:nt.type)==="ConditionalExpression"||(nt==null?void 0:nt.type)==="TSConditionalType")&&kt?(h(kt,V),!0):!1}function oe(gt){let{comment:V,precedingNode:_e,enclosingNode:nt}=gt;return Z(nt)&&nt.shorthand&&nt.key===_e&&nt.value.type==="AssignmentPattern"?(v(nt.value.left,V),!0):!1}var Ue=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function et(gt){let{comment:V,precedingNode:_e,enclosingNode:nt,followingNode:kt}=gt;if(Ue.has(nt==null?void 0:nt.type)){if(_(nt.decorators)&&!(kt&&kt.type==="Decorator"))return v(f(nt.decorators),V),!0;if(nt.body&&kt===nt.body)return ie(nt.body,V),!0;if(kt){if(nt.superClass&&kt===nt.superClass&&_e&&(_e===nt.id||_e===nt.typeParameters))return v(_e,V),!0;for(let Rt of["implements","extends","mixins"])if(nt[Rt]&&kt===nt[Rt][0])return _e&&(_e===nt.id||_e===nt.typeParameters||_e===nt.superClass)?v(_e,V):S(nt,V,Rt),!0}}return!1}var Ge=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty"]);function ht(gt){let{comment:V,precedingNode:_e,enclosingNode:nt,text:kt}=gt;return nt&&_e&&c(kt,V,y)==="("&&(nt.type==="Property"||nt.type==="TSDeclareMethod"||nt.type==="TSAbstractMethodDefinition")&&_e.type==="Identifier"&&nt.key===_e&&c(kt,_e,y)!==":"||(_e==null?void 0:_e.type)==="Decorator"&&Ge.has(nt==null?void 0:nt.type)?(v(_e,V),!0):!1}var be=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function Ie(gt){let{comment:V,precedingNode:_e,enclosingNode:nt,text:kt}=gt;return c(kt,V,y)!=="("?!1:_e&&be.has(nt==null?void 0:nt.type)?(v(_e,V),!0):!1}function ft(gt){let{comment:V,enclosingNode:_e,text:nt}=gt;if((_e==null?void 0:_e.type)!=="ArrowFunctionExpression")return!1;let kt=L(nt,V,y);return kt!==!1&&nt.slice(kt,kt+2)==="=>"?(S(_e,V),!0):!1}function pt(gt){let{comment:V,enclosingNode:_e,text:nt}=gt;return c(nt,V,y)!==")"?!1:_e&&(lt(_e)&&k(_e).length===0||R(_e)&&X(_e).length===0)?(S(_e,V),!0):((_e==null?void 0:_e.type)==="MethodDefinition"||(_e==null?void 0:_e.type)==="TSAbstractMethodDefinition")&&k(_e.value).length===0?(S(_e.value,V),!0):!1}function Jt(gt){let{comment:V,precedingNode:_e,enclosingNode:nt,followingNode:kt,text:Rt}=gt;if((_e==null?void 0:_e.type)==="FunctionTypeParam"&&(nt==null?void 0:nt.type)==="FunctionTypeAnnotation"&&(kt==null?void 0:kt.type)!=="FunctionTypeParam"||((_e==null?void 0:_e.type)==="Identifier"||(_e==null?void 0:_e.type)==="AssignmentPattern")&&nt&&lt(nt)&&c(Rt,V,y)===")")return v(_e,V),!0;if((nt==null?void 0:nt.type)==="FunctionDeclaration"&&(kt==null?void 0:kt.type)==="BlockStatement"){let un=(()=>{let Mt=k(nt);if(Mt.length>0)return D(Rt,y(f(Mt)));let Ar=D(Rt,y(nt.id));return Ar!==!1&&D(Rt,Ar+1)})();if($(V)>un)return ie(kt,V),!0}return!1}function Re(gt){let{comment:V,enclosingNode:_e}=gt;return(_e==null?void 0:_e.type)==="LabeledStatement"?(h(_e,V),!0):!1}function Ce(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:nt}=gt;return G(nt)&&_e&&nt.callee===_e&&nt.arguments.length>0?(h(nt.arguments[0],V),!0):!1}function ze(gt){let{comment:V,precedingNode:_e,enclosingNode:nt,followingNode:kt}=gt;return(nt==null?void 0:nt.type)==="UnionTypeAnnotation"||(nt==null?void 0:nt.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:nt,ast:kt,isLastComment:Rt}=gt;return kt&&kt.body&&kt.body.length===0?(Rt?S(kt,V):h(kt,V),!0):(_e==null?void 0:_e.type)==="Program"&&(_e==null?void 0:_e.body.length)===0&&!_(_e.directives)?(Rt?S(_e,V):h(_e,V),!0):(nt==null?void 0:nt.type)==="Program"&&(nt==null?void 0:nt.body.length)===0&&(_e==null?void 0:_e.type)==="ModuleExpression"?(S(nt,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:nt,text:kt}=gt;if((nt==null?void 0:nt.type)==="ImportSpecifier"||(nt==null?void 0:nt.type)==="ExportSpecifier")return h(nt,V),!0;let Rt=(_e==null?void 0:_e.type)==="ImportSpecifier"&&(nt==null?void 0:nt.type)==="ImportDeclaration",un=(_e==null?void 0:_e.type)==="ExportSpecifier"&&(nt==null?void 0:nt.type)==="ExportNamedDeclaration";return(Rt||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:nt}=gt;return Tn.has(_e==null?void 0:_e.type)&&nt&&(ln.has(nt.type)||T(V))?(h(nt,V),!0):!1}function at(gt){let{comment:V,enclosingNode:_e,followingNode:nt,text:kt}=gt;return!nt&&((_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:nt}=gt;if(C(V)&&(_e==null?void 0:_e.type)==="TSMappedType"&&(nt==null?void 0:nt.type)==="TSTypeParameter"&&nt.constraint)return _e.prettierIgnore=!0,V.unignore=!0,!0}function dt(gt){let{comment:V,precedingNode:_e,enclosingNode:nt,followingNode:kt}=gt;return(nt==null?void 0:nt.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:nt}=gt;return!_e||_e.type!=="SwitchCase"||_e.test||!nt||nt!==_e.consequent[0]?!1:(nt.type==="BlockStatement"&&De(V)?ie(nt,V):S(_e,V),!0)}function lt(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"&&k(gt.value).length===0&&!gt.value.returnType&&!_(gt.value.typeParameters)&&gt.value.body)return[...gt.decorators||[],gt.key,gt.value.body]}function qt(gt){let V=gt.getValue(),_e=gt.getParentNode(),nt=kt=>Q(F(kt,J.Leading))||Q(F(kt,J.Trailing));return(V&&(x(V)||j(V)||G(_e)&&nt(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:U,handleEndOfLineComment:q,handleRemainingComment:z,getCommentChildNodes:Zt,willPrintOwnComments:qt}}}),Ya=Fe({"src/language-js/needs-parens.js"(m,E){$e();var f=$r(),b=It(),{getFunctionParameters:D,getLeftSidePathName:c,hasFlowShorthandAnnotationComment:d,hasNakedLeftSide:h,hasNode:v,isBitwiseOperator:S,startsWithNoLookaheadToken:L,shouldFlatten:_,getPrecedence:k,isCallExpression:C,isMemberExpression:x,isObjectProperty:j,isTSTypeExpression:Q}=pr();function ee(F,J){let w=F.getParentNode();if(!w)return!1;let $=F.getName(),y=F.getNode();if(J.__isInHtmlInterpolation&&!J.bracketSpacing&&ne(y)&&Z(F))return!0;if(R(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)||$==="left"&&(y.name==="async"&&!w.await||y.name==="let")&&w.type==="ForOfStatement")return!0;if(y.name==="let"){var T;let U=(T=F.findAncestor(q=>q.type==="ForOfStatement"))===null||T===void 0?void 0:T.left;if(U&&L(U,q=>q===y))return!0}if($==="object"&&y.name==="let"&&w.type==="MemberExpression"&&w.computed&&!w.optional){let U=F.findAncestor(z=>z.type==="ExpressionStatement"||z.type==="ForStatement"||z.type==="ForInStatement"),q=U?U.type==="ExpressionStatement"?U.expression:U.type==="ForStatement"?U.init:U.left:void 0;if(q&&L(q,z=>z===y))return!0}return!1}if(y.type==="ObjectExpression"||y.type==="FunctionExpression"||y.type==="ClassExpression"||y.type==="DoExpression"){var M;let U=(M=F.findAncestor(q=>q.type==="ExpressionStatement"))===null||M===void 0?void 0:M.expression;if(U&&L(U,q=>q===y))return!0}switch(w.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":{if($==="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($==="expression"){if(x(y)&&y.computed)return!0;let U=!1,q=!1,z=y;for(;z;)switch(z.type){case"MemberExpression":q=!0,z=z.object;break;case"CallExpression":if(q||U)return J.parser!=="typescript";U=!0,z=z.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return J.parser!=="typescript";default:return!0}return!0}break}case"ArrowFunctionExpression":{if($==="body"&&y.type!=="SequenceExpression"&&L(y,U=>U.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 $==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return $==="callee";case"BinaryExpression":return $==="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 U=F.getParentNode(1);if(U.type==="BinaryExpression"&&U.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 $==="callee";case"ClassExpression":case"ClassDeclaration":return $==="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 $==="object";case"AssignmentExpression":case"AssignmentPattern":return $==="left"&&(y.type==="TSTypeAssertion"||Q(y));case"LogicalExpression":if(y.type==="LogicalExpression")return w.operator!==y.operator;case"BinaryExpression":{let{operator:U,type:q}=y;if(!U&&q!=="TSTypeAssertion")return!0;let z=k(U),ie=w.operator,ce=k(ie);return ce>z||$==="right"&&ce===z||ce===z&&!_(ie,U)?!0:ce<z&&U==="%"?ie==="+"||ie==="-":!!S(ie)}default:return!1}case"SequenceExpression":switch(w.type){case"ReturnStatement":return!1;case"ForStatement":return!1;case"ExpressionStatement":return $!=="expression";case"ArrowFunctionExpression":return $!=="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 $==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return $==="callee";case"ConditionalExpression":return $==="test";case"BinaryExpression":return!(!y.argument&&w.operator==="|>");default:return!1}case"TSConditionalType":case"TSFunctionType":case"TSConstructorType":if($==="extendsType"&&w.type==="TSConditionalType"){if(y.type==="TSConditionalType")return!0;let{typeAnnotation:U}=y.returnType||y.typeAnnotation;if(U.type==="TSTypePredicate"&&U.typeAnnotation&&(U=U.typeAnnotation.typeAnnotation),U.type==="TSInferType"&&U.typeParameter.constraint)return!0}if($==="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"||$==="objectType"&&w.type==="TSIndexedAccessType"||w.type==="TSTypeOperator"||w.type==="TSTypeAnnotation"&&F.getParentNode(1).type.startsWith("TSJSDoc");case"TSTypeQuery":return $==="objectType"&&w.type==="TSIndexedAccessType"||$==="elementType"&&w.type==="TSArrayType";case"TypeofTypeAnnotation":return $==="objectType"&&(w.type==="IndexedAccessType"||w.type==="OptionalIndexedAccessType")||$==="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"||$==="objectType"&&(w.type==="IndexedAccessType"||w.type==="OptionalIndexedAccessType");case"NullableTypeAnnotation":return w.type==="ArrayTypeAnnotation"||$==="objectType"&&(w.type==="IndexedAccessType"||w.type==="OptionalIndexedAccessType");case"FunctionTypeAnnotation":{let U=w.type==="NullableTypeAnnotation"?F.getParentNode(1):w;return U.type==="UnionTypeAnnotation"||U.type==="IntersectionTypeAnnotation"||U.type==="ArrayTypeAnnotation"||$==="objectType"&&(U.type==="IndexedAccessType"||U.type==="OptionalIndexedAccessType")||U.type==="NullableTypeAnnotation"||w.type==="FunctionTypeParam"&&w.name===null&&D(y).some(q=>q.typeAnnotation&&q.typeAnnotation.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return $==="objectType"&&w.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof y.value=="string"&&w.type==="ExpressionStatement"&&!w.directive){let U=F.getParentNode(1);return U.type==="Program"||U.type==="BlockStatement"}return $==="object"&&w.type==="MemberExpression"&&typeof y.value=="number";case"AssignmentExpression":{let U=F.getParentNode(1);return $==="body"&&w.type==="ArrowFunctionExpression"?!0:$==="key"&&(w.type==="ClassProperty"||w.type==="PropertyDefinition")&&w.computed||($==="init"||$==="update")&&w.type==="ForStatement"?!1:w.type==="ExpressionStatement"?y.left.type==="ObjectPattern":!($==="key"&&w.type==="TSPropertySignature"||w.type==="AssignmentExpression"||w.type==="SequenceExpression"&&U&&U.type==="ForStatement"&&(U.init===w||U.update===w)||$==="value"&&w.type==="Property"&&U&&U.type==="ObjectPattern"&&U.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 $==="callee";case"ConditionalExpression":return $==="test";case"MemberExpression":case"OptionalMemberExpression":return $==="object";default:return!1}case"FunctionExpression":switch(w.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return $==="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 $==="callee";case"MemberExpression":case"OptionalMemberExpression":return $==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return $==="test";default:return!1}case"ClassExpression":if(b(y.decorators))return!0;switch(w.type){case"NewExpression":return $==="callee";default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":{let U=F.getParentNode(1);if($==="object"&&w.type==="MemberExpression"||$==="callee"&&(w.type==="CallExpression"||w.type==="NewExpression")||w.type==="TSNonNullExpression"&&U.type==="MemberExpression"&&U.object===w)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if($==="callee"&&(w.type==="BindExpression"||w.type==="NewExpression")){let U=y;for(;U;)switch(U.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":U=U.object;break;case"TaggedTemplateExpression":U=U.tag;break;case"TSNonNullExpression":U=U.expression;break;default:return!1}}return!1;case"BindExpression":return $==="callee"&&(w.type==="BindExpression"||w.type==="NewExpression")||$==="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[$]===y||$==="right"&&w.type==="NGPipeExpression"||$==="property"&&w.type==="MemberExpression"||w.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return $==="callee"||$==="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 $==="returnType"&&w.type==="ArrowFunctionExpression"&&G(y)}return!1}function R(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 $=F.getParentNode(J++);if($&&$.type==="ForStatement"&&$.init===w)return!0;w=$}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(),$=F.getName();switch(w.type){case"NGPipeExpression":if(typeof $=="number"&&w.arguments[$]===J&&w.arguments.length-1===$)return F.callParent(Z);break;case"ObjectProperty":if($==="value"){let y=F.getParentNode(1);return f(y.properties)===w}break;case"BinaryExpression":case"LogicalExpression":if($==="right")return F.callParent(Z);break;case"ConditionalExpression":if($==="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(),$=F.getParentNode();return w.type==="FunctionExpression"||w.type==="ClassExpression"?$.type==="ExportDefaultDeclaration"||!ee(F,J):!h(w)||$.type!=="ExportDefaultDeclaration"&&ee(F,J)?!1:F.call(y=>De(y,J),...c(F,w))}E.exports=ee}}),N0=Fe({"src/language-js/print-preprocess.js"(m,E){$e();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}}),Qv=Fe({"src/language-js/print/html-binding.js"(m,E){$e();var{builders:{join:f,line:b,group:D,softline:c,indent:d}}=wn();function h(S,L,_){let k=S.getValue();if(L.__onHtmlBindingRoot&&S.getName()===null&&L.__onHtmlBindingRoot(k,L),k.type==="File"){if(L.__isVueForBindingLeft)return S.call(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(L.__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}}}),qf=Fe({"src/language-js/print/binaryish.js"(m,E){$e();var{printComments:f}=Mr(),{getLast:b}=ye(),{builders:{join:D,line:c,softline:d,group:h,indent:v,align:S,indentIfBreak:L},utils:{cleanDoc:_,getDocParts:k,isConcat:C}}=wn(),{hasLeadingOwnLineComment:x,isBinaryish:j,isJsxNode:Q,shouldFlatten:ee,hasComment:R,CommentCheckFlags:X,isCallExpression:G,isMemberExpression:ne,isObjectProperty:Z,isEnabledHackPipeline:De}=pr(),F=0;function J(y,T,M){let U=y.getValue(),q=y.getParentNode(),z=y.getParentNode(1),ie=U!==q.body&&(q.type==="IfStatement"||q.type==="WhileStatement"||q.type==="SwitchStatement"||q.type==="DoWhileStatement"),ce=De(T)&&U.operator==="|>",ge=w(y,M,T,!1,ie);if(ie)return ge;if(ce)return h(ge);if(G(q)&&q.callee===U||q.type==="UnaryExpression"||ne(q)&&!q.computed)return h([v([d,...ge]),d]);let fe=q.type==="ReturnStatement"||q.type==="ThrowStatement"||q.type==="JSXExpressionContainer"&&z.type==="JSXAttribute"||U.operator!=="|"&&q.type==="JsExpressionRoot"||U.type!=="NGPipeExpression"&&(q.type==="NGRoot"&&T.parser==="__ng_binding"||q.type==="NGMicrosyntaxExpression"&&z.type==="NGMicrosyntax"&&z.body.length===1)||U===q.body&&q.type==="ArrowFunctionExpression"||U!==q.body&&q.type==="ForStatement"||q.type==="ConditionalExpression"&&z.type!=="ReturnStatement"&&z.type!=="ThrowStatement"&&!G(z)||q.type==="TemplateLiteral",Ne=q.type==="AssignmentExpression"||q.type==="VariableDeclarator"||q.type==="ClassProperty"||q.type==="PropertyDefinition"||q.type==="TSAbstractPropertyDefinition"||q.type==="ClassPrivateProperty"||Z(q),se=j(U.left)&&ee(U.operator,U.left.operator);if(fe||$(U)&&!se||!$(U)&&Ne)return h(ge);if(ge.length===0)return"";let qe=Q(U.right),he=ge.findIndex(be=>typeof be!="string"&&!Array.isArray(be)&&be.type==="group"),oe=ge.slice(0,he===-1?1:he+1),Ue=ge.slice(oe.length,qe?-1:void 0),et=Symbol("logicalChain-"+ ++F),Ge=h([...oe,v(Ue)],{id:et});if(!qe)return Ge;let ht=b(ge);return h([Ge,L(ht,{groupId:et})])}function w(y,T,M,U,q){let z=y.getValue();if(!j(z))return[h(T())];let ie=[];ee(z.operator,z.left.operator)?ie=y.call(Ue=>w(Ue,T,M,!0,q),"left"):ie.push(h(T("left")));let ce=$(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(Ue=>S(2,h(Ue))))])):"",se;if(ce)se=[fe," ",T("right"),Ne];else{let Ue=De(M)&&fe==="|>"?y.call(et=>w(et,T,M,!0,q),"right"):T("right");se=[ge?c:"",fe,ge?" ":c,Ue,Ne]}let qe=y.getParentNode(),he=R(z.left,X.Trailing|X.Line),oe=he||!(q&&z.type==="LogicalExpression")&&qe.type!==z.type&&z.left.type!==z.type&&z.right.type!==z.type;if(ie.push(ge?"":" ",oe?h(se,{shouldBreak:he}):se),U&&R(z)){let Ue=_(f(y,ie,M));return C(Ue)||Ue.type==="fill"?k(Ue):[Ue]}return ie}function $(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:$}}}),Xv=Fe({"src/language-js/print/angular.js"(m,E){$e();var{builders:{join:f,line:b,group:D}}=wn(),{hasNode:c,hasComment:d,getComments:h}=pr(),{printBinaryishExpression:v}=qf();function S(k,C,x){let j=k.getValue();if(j.type.startsWith("NG"))switch(j.type){case"NGRoot":return[x("node"),d(j.node)?" //"+h(j.node)[0].value.trimEnd():""];case"NGPipeExpression":return v(k,C,x);case"NGChainedExpression":return D(f([";",b],k.map(Q=>_(Q)?x():["(",x(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[j.prefix,": ",j.value.trim()];case"NGMicrosyntax":return k.map((Q,ee)=>[ee===0?"":L(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=k.getName(),ee=k.getParentNode(),R=L(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"),R?" ":": ",x("expression")]}case"NGMicrosyntaxLet":return["let ",x("key"),j.value===null?"":[" = ",x("value")]];case"NGMicrosyntaxAs":return[x("key")," as ",x("alias")];default:throw new Error(`Unknown Angular node type: ${JSON.stringify(j.type)}.`)}}function L(k,C,x){return k.type==="NGMicrosyntaxKeyedExpression"&&k.key.name==="of"&&C===1&&x.body[0].type==="NGMicrosyntaxLet"&&x.body[0].value===null}function _(k){return c(k.getValue(),C=>{switch(C.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}E.exports={printAngular:S}}}),Kv=Fe({"src/language-js/print/jsx.js"(m,E){$e();var{printComments:f,printDanglingComments:b,printCommentsSeparately:D}=Mr(),{builders:{line:c,hardline:d,softline:h,group:v,indent:S,conditionalGroup:L,fill:_,ifBreak:k,lineSuffixBoundary:C,join:x},utils:{willBreak:j}}=wn(),{getLast:Q,getPreferredQuote:ee}=ye(),{isJsxNode:R,rawText:X,isCallExpression:G,isStringLiteral:ne,isBinaryish:Z,hasComment:De,CommentCheckFlags:F,hasNodeIgnoreComment:J}=pr(),w=Ya(),{willPrintOwnComments:$}=F0(),y=Ce=>Ce===""||Ce===c||Ce===d||Ce===h;function T(Ce,Ye,ze){let bt=Ce.getValue();if(bt.type==="JSXElement"&&ft(bt))return[ze("openingElement"),ze("closingElement")];let Nt=bt.type==="JSXElement"?ze("openingElement"):ze("openingFragment"),Bt=bt.type==="JSXElement"?ze("closingElement"):ze("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,...Ce.map(ze,"children"),Bt];bt.children=bt.children.map(V=>Jt(V)?{type:"JSXText",value:" ",raw:" "}:V);let cn=bt.children.some(R),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=Ce.getParentNode().rootMarker==="mdx",at=Ye.singleQuote?"{' '}":'{" "}',Ee=Dn?" ":k([at,h]," "),dt=bt.openingElement&&bt.openingElement.name&&bt.openingElement.name.name==="fbt",Oe=M(Ce,Ye,ze,Ee,dt),lt=bt.children.some(V=>pt(V));for(let V=Oe.length-2;V>=0;V--){let _e=Oe[V]===""&&Oe[V+1]==="",nt=Oe[V]===d&&Oe[V+1]===""&&Oe[V+2]===d,kt=(Oe[V]===h||Oe[V]===d)&&Oe[V+1]===""&&Oe[V+2]===Ee,Rt=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;nt&&lt||_e||kt||un||Mt?Oe.splice(V,2):Rt&&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(at);continue}Zt.push([at,d]);continue}else if(V===Oe.length-1){Zt.push(at);continue}else if(Oe[V-1]===""&&Oe[V-2]===d){Zt.push(at);continue}}Zt.push(_e),j(_e)&&(ln=!0)}let qt=lt?_(Zt):v(Zt,{shouldBreak:!0});if(Dn)return qt;let gt=v([Nt,S([d,qt]),d,Bt]);return ln?gt:L([v([Nt,...Oe,Bt]),gt])}function M(Ce,Ye,ze,bt,Nt){let Bt=[];return Ce.each((cn,In,Tn)=>{let ln=cn.getValue();if(ln.type==="JSXText"){let Dn=X(ln);if(pt(ln)){let at=Dn.split(ht);if(at[0]===""){if(Bt.push(""),at.shift(),/\n/.test(at[0])){let dt=Tn[In+1];Bt.push(q(Nt,at[1],ln,dt))}else Bt.push(bt);at.shift()}let Ee;if(Q(at)===""&&(at.pop(),Ee=at.pop()),at.length===0)return;for(let[dt,Oe]of at.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(q(Nt,Q(Bt),ln,dt))}else Bt.push(bt);else{let dt=Tn[In+1];Bt.push(U(Nt,Q(Bt),ln,dt))}}else/\n/.test(Dn)?Dn.match(/\n/g).length>1&&Bt.push("",d):Bt.push("",bt)}else{let Dn=ze();Bt.push(Dn);let at=Tn[In+1];if(at&&pt(at)){let Ee=Ie(X(at)).split(ht)[0];Bt.push(U(Nt,Ee,ln,at))}else Bt.push(d)}},"children"),Bt}function U(Ce,Ye,ze,bt){return Ce?"":ze.type==="JSXElement"&&!ze.closingElement||bt&&bt.type==="JSXElement"&&!bt.closingElement?Ye.length===1?h:d:h}function q(Ce,Ye,ze,bt){return Ce?d:Ye.length===1?ze.type==="JSXElement"&&!ze.closingElement||bt&&bt.type==="JSXElement"&&!bt.closingElement?d:h:d}function z(Ce,Ye,ze){let bt=Ce.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=Ce.match(void 0,cn=>cn.type==="ArrowFunctionExpression",G,cn=>cn.type==="JSXExpressionContainer"),Bt=w(Ce,ze);return v([Bt?"":k("("),S([h,Ye]),h,Bt?"":k(")")],{shouldBreak:Nt})}function ie(Ce,Ye,ze){let bt=Ce.getValue(),Nt=[];if(Nt.push(ze("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:at}=Ce.call(()=>D(Ce,Ye),"value");Bt=[Dn,Tn,cn,Tn,at]}else Bt=ze("value");Nt.push("=",Bt)}return Nt}function ce(Ce,Ye,ze){let bt=Ce.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"||R(cn)&&(Bt.type==="ConditionalExpression"||Z(Bt)));return Nt(bt.expression,Ce.getParentNode(0))?v(["{",ze("expression"),C,"}"]):v(["{",S([h,ze("expression")]),h,C,"}"])}function ge(Ce,Ye,ze){let bt=Ce.getValue(),Nt=bt.name&&De(bt.name)||bt.typeParameters&&De(bt.typeParameters);if(bt.selfClosing&&bt.attributes.length===0&&!Nt)return["<",ze("name"),ze("typeParameters")," />"];if(bt.attributes&&bt.attributes.length===1&&bt.attributes[0].value&&ne(bt.attributes[0].value)&&!bt.attributes[0].value.value.includes(`
204
- `)&&!Nt&&!De(bt.attributes[0]))return v(["<",ze("name"),ze("typeParameters")," ",...Ce.map(ze,"attributes"),bt.selfClosing?" />":">"]);let Bt=bt.attributes&&bt.attributes.some(In=>In.value&&ne(In.value)&&In.value.value.includes(`
205
- `)),cn=Ye.singleAttributePerLine&&bt.attributes.length>1?d:c;return v(["<",ze("name"),ze("typeParameters"),S(Ce.map(()=>[cn,ze()],"attributes")),...fe(bt,Ye,Nt)],{shouldBreak:Bt})}function fe(Ce,Ye,ze){return Ce.selfClosing?[c,"/>"]:Ne(Ce,Ye,ze)?[">"]:[h,">"]}function Ne(Ce,Ye,ze){let bt=Ce.attributes.length>0&&De(Q(Ce.attributes),F.Trailing);return Ce.attributes.length===0&&!ze||(Ye.bracketSameLine||Ye.jsxBracketSameLine)&&(!ze||Ce.attributes.length>0)&&!bt}function se(Ce,Ye,ze){let bt=Ce.getValue(),Nt=[];Nt.push("</");let Bt=ze("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 qe(Ce,Ye){let ze=Ce.getValue(),bt=De(ze),Nt=De(ze,F.Line),Bt=ze.type==="JSXOpeningFragment";return[Bt?"<":"</",S([Nt?d:bt&&!Bt?" ":"",b(Ce,Ye,!0)]),Nt?d:"",">"]}function he(Ce,Ye,ze){let bt=f(Ce,T(Ce,Ye,ze),Ye);return z(Ce,bt,Ye)}function oe(Ce,Ye){let ze=Ce.getValue(),bt=De(ze,F.Line);return[b(Ce,Ye,!bt),bt?d:""]}function Ue(Ce,Ye,ze){let bt=Ce.getValue();return["{",Ce.call(Nt=>{let Bt=["...",ze()],cn=Nt.getValue();return!De(cn)||!$(Nt)?Bt:[S([h,f(Nt,Bt,Ye)]),h]},bt.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function et(Ce,Ye,ze){let bt=Ce.getValue();if(bt.type.startsWith("JSX"))switch(bt.type){case"JSXAttribute":return ie(Ce,Ye,ze);case"JSXIdentifier":return String(bt.name);case"JSXNamespacedName":return x(":",[ze("namespace"),ze("name")]);case"JSXMemberExpression":return x(".",[ze("object"),ze("property")]);case"JSXSpreadAttribute":return Ue(Ce,Ye,ze);case"JSXSpreadChild":return Ue(Ce,Ye,ze);case"JSXExpressionContainer":return ce(Ce,Ye,ze);case"JSXFragment":case"JSXElement":return he(Ce,Ye,ze);case"JSXOpeningElement":return ge(Ce,Ye,ze);case"JSXClosingElement":return se(Ce,Ye,ze);case"JSXOpeningFragment":case"JSXClosingFragment":return qe(Ce,Ye);case"JSXEmptyExpression":return oe(Ce,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 Ge=`
206
- \r `,ht=new RegExp("(["+Ge+"]+)"),be=new RegExp("[^"+Ge+"]"),Ie=Ce=>Ce.replace(new RegExp("(?:^"+ht.source+"|"+ht.source+"$)"),"");function ft(Ce){if(Ce.children.length===0)return!0;if(Ce.children.length>1)return!1;let Ye=Ce.children[0];return Ye.type==="JSXText"&&!pt(Ye)}function pt(Ce){return Ce.type==="JSXText"&&(be.test(X(Ce))||!/\n/.test(X(Ce)))}function Jt(Ce){return Ce.type==="JSXExpressionContainer"&&ne(Ce.expression)&&Ce.expression.value===" "&&!De(Ce.expression)}function Re(Ce){let Ye=Ce.getValue(),ze=Ce.getParentNode();if(!ze||!Ye||!R(Ye)||!R(ze))return!1;let bt=ze.children.indexOf(Ye),Nt=null;for(let Bt=bt;Bt>0;Bt--){let cn=ze.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:Re,printJsx:et}}}),Ci=Fe({"src/language-js/print/misc.js"(m,E){$e();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,R)=>R==="id"&&ee.type==="VariableDeclarator"&&ee.definite)?"!":""}function S(Q,ee,R){let X=Q.getValue();return X.typeArguments?R("typeArguments"):X.typeParameters?R("typeParameters"):""}function L(Q,ee,R){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)?[" /*: ",R("typeAnnotation")," */"]:[ne?"":": ",R("typeAnnotation")]}function _(Q,ee,R){return["::",R("callee")]}function k(Q,ee,R){let X=Q.getValue();return f(X.modifiers)?[D(" ",Q.map(R,"modifiers"))," "]:""}function C(Q,ee,R){return Q.type==="EmptyStatement"?";":Q.type==="BlockStatement"||R?[" ",ee]:b([c,ee])}function x(Q,ee,R){return["...",R("argument"),L(Q,ee,R)]}function j(Q,ee){let R=Q.slice(1,-1);if(R.includes('"')||R.includes("'"))return Q;let X=ee.singleQuote?"'":'"';return X+R+X}E.exports={printOptionalToken:h,printDefiniteToken:v,printFunctionTypeParameters:S,printBindExpressionCallee:_,printTypeScriptModifiers:k,printTypeAnnotation:L,printRestSpread:x,adjustClause:C,printDirective:j}}}),Bo=Fe({"src/language-js/print/array.js"(m,E){$e();var{printDanglingComments:f}=Mr(),{builders:{line:b,softline:D,hardline:c,group:d,indent:h,ifBreak:v,fill:S}}=wn(),{getLast:L,hasNewline:_}=ye(),{shouldPrintComma:k,hasComment:C,CommentCheckFlags:x,isNextLineEmpty:j,isNumericLiteral:Q,isSignedNumericLiteral:ee}=pr(),{locStart:R}=ii(),{printOptionalToken:X,printTypeAnnotation:G}=Ci();function ne(J,w,$){let y=J.getValue(),T=[],M=y.type==="TupleExpression"?"#[":"[",U="]";if(y.elements.length===0)C(y,x.Dangling)?T.push(d([M,f(J,w),D,U])):T.push(M,U);else{let q=L(y.elements),z=!(q&&q.type==="RestElement"),ie=q===null,ce=Symbol("array"),ge=!w.__inJestEach&&y.elements.length>1&&y.elements.every((se,qe,he)=>{let oe=se&&se.type;if(oe!=="ArrayExpression"&&oe!=="ObjectExpression")return!1;let Ue=he[qe+1];if(Ue&&oe!==Ue.type)return!1;let et=oe==="ArrayExpression"?"elements":"properties";return se[et]&&se[et].length>1}),fe=Z(y,w),Ne=z?ie?",":k(w)?fe?v(",","",{groupId:ce}):v(","):"":"";T.push(d([M,h([D,fe?F(J,w,$,Ne):[De(J,w,"elements",$),Ne],f(J,w,!0)]),D,U],{shouldBreak:ge,id:ce}))}return T.push(X(J),G(J,w,$)),T}function Z(J,w){return J.elements.length>1&&J.elements.every($=>$&&(Q($)||ee($)&&!C($.argument))&&!C($,x.Trailing|x.Line,y=>!_(w.originalText,R(y),{backwards:!0})))}function De(J,w,$,y){let T=[],M=[];return J.each(U=>{T.push(M,d(y())),M=[",",b],U.getValue()&&j(U.getValue(),w)&&M.push(D)},$),T}function F(J,w,$,y){let T=[];return J.each((M,U,q)=>{let z=U===q.length-1;T.push([$(),z?y:","]),z||T.push(j(M.getValue(),w)?[c,c]:C(q[U+1],x.Leading|x.Line)?c:b)},"elements"),S(T)}E.exports={printArray:ne,printArrayItems:De,isConciselyPrintedArray:Z}}}),_0=Fe({"src/language-js/print/call-arguments.js"(m,E){$e();var{printDanglingComments:f}=Mr(),{getLast:b,getPenultimate:D}=ye(),{getFunctionParameters:c,hasComment:d,CommentCheckFlags:h,isFunctionCompositionArgs:v,isJsxNode:S,isLongCurriedCallExpression:L,shouldPrintComma:_,getCallArguments:k,iterateCallArgumentsPath:C,isNextLineEmpty:x,isCallExpression:j,isStringLiteral:Q,isObjectProperty:ee,isTSTypeExpression:R}=pr(),{builders:{line:X,hardline:G,softline:ne,group:Z,indent:De,conditionalGroup:F,ifBreak:J,breakParent:w},utils:{willBreak:$}}=wn(),{ArgExpansionBailout:y}=tn(),{isConciselyPrintedArray:T}=Bo();function M(fe,Ne,se){let qe=fe.getValue(),he=qe.type==="ImportExpression",oe=k(qe);if(oe.length===0)return["(",f(fe,Ne,!0),")"];if(ie(oe))return["(",se(["arguments",0]),", ",se(["arguments",1]),")"];let Ue=!1,et=!1,Ge=oe.length-1,ht=[];C(fe,(Re,Ce)=>{let Ye=Re.getNode(),ze=[se()];Ce===Ge||(x(Ye,Ne)?(Ce===0&&(et=!0),Ue=!0,ze.push(",",G,G)):ze.push(",",X)),ht.push(ze)});let be=!(he||qe.callee&&qe.callee.type==="Import")&&_(Ne,"all")?",":"";function Ie(){return Z(["(",De([X,...ht]),be,X,")"],{shouldBreak:!0})}if(Ue||fe.getParentNode().type!=="Decorator"&&v(oe))return Ie();let ft=z(oe),pt=q(oe,Ne);if(ft||pt){if(ft?ht.slice(1).some($):ht.slice(0,-1).some($))return Ie();let Re=[];try{fe.try(()=>{C(fe,(Ce,Ye)=>{ft&&Ye===0&&(Re=[[se([],{expandFirstArg:!0}),ht.length>1?",":"",et?G:X,et?G:""],...ht.slice(1)]),pt&&Ye===Ge&&(Re=[...ht.slice(0,-1),se([],{expandLastArg:!0})])})})}catch(Ce){if(Ce instanceof y)return Ie();throw Ce}return[ht.some($)?w:"",F([["(",...Re,")"],ft?["(",Z(Re[0],{shouldBreak:!0}),...Re.slice(1),")"]:["(",...ht.slice(0,-1),Z(b(Re),{shouldBreak:!0}),")"],Ie()])]}let Jt=["(",De([ne,...ht]),J(be),ne,")"];return L(fe)?Jt:Z(Jt,{shouldBreak:ht.some($)||Ue})}function U(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"&&U(fe.expression)||R(fe)&&U(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"&&U(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 q(fe,Ne){let se=b(fe),qe=D(fe);return!d(se,h.Leading)&&!d(se,h.Trailing)&&U(se)&&(!qe||qe.type!==se.type)&&(fe.length!==2||qe.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"&&!U(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}}),T0=Fe({"src/language-js/print/member.js"(m,E){$e();var{builders:{softline:f,group:b,indent:D,label:c}}=wn(),{isNumericLiteral:d,isMemberExpression:h,isCallExpression:v}=pr(),{printOptionalToken:S}=Ci();function L(k,C,x){let j=k.getValue(),Q=k.getParentNode(),ee,R=0;do ee=k.getParentNode(R),R++;while(ee&&(h(ee)||ee.type==="TSNonNullExpression"));let X=x("object"),G=_(k,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 _(k,C,x){let j=x("property"),Q=k.getValue(),ee=S(k);return Q.computed?!Q.property||d(Q.property)?[ee,"[",j,"]"]:b([ee,"[",D([f,j]),f,"]"]):[ee,".",j]}E.exports={printMemberExpression:L,printMemberLookup:_}}}),Zv=Fe({"src/language-js/print/member-chain.js"(m,E){$e();var{printComments:f}=Mr(),{getLast:b,isNextLineEmptyAfterIndex:D,getNextNonSpaceNonCommentCharacterIndex:c}=ye(),d=Ya(),{isCallExpression:h,isMemberExpression:v,isFunctionOrArrowExpression:S,isLongCurriedCallExpression:L,isMemberish:_,isNumericLiteral:k,isSimpleCallArgument:C,hasComment:x,CommentCheckFlags:j,isNextLineEmpty:Q}=pr(),{locEnd:ee}=ii(),{builders:{join:R,hardline:X,group:G,indent:ne,conditionalGroup:Z,breakParent:De,label:F},utils:{willBreak:J}}=wn(),w=_0(),{printMemberLookup:$}=T0(),{printOptionalToken:y,printFunctionTypeParameters:T,printBindExpressionCallee:M}=Ci();function U(q,z,ie){let ce=q.getParentNode(),ge=!ce||ce.type==="ExpressionStatement",fe=[];function Ne(ln){let{originalText:Dn}=z,at=c(Dn,ln,ee);return Dn.charAt(at)===")"?at!==!1&&D(Dn,at+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(at=>se(at),"callee")):_(Dn)?(fe.unshift({node:Dn,needsParens:d(ln,z),printed:f(ln,v(Dn)?$(ln,z,ie):M(ln,z,ie),z)}),ln.call(at=>se(at),"object")):Dn.type==="TSNonNullExpression"?(fe.unshift({node:Dn,printed:f(ln,"!",z)}),ln.call(at=>se(at),"expression")):fe.unshift({node:Dn,printed:ie()})}let qe=q.getValue();fe.unshift({node:qe,printed:[y(q),T(q,z,ie),w(q,z,ie)]}),qe.callee&&q.call(ln=>se(ln),"callee");let he=[],oe=[fe[0]],Ue=1;for(;Ue<fe.length&&(fe[Ue].node.type==="TSNonNullExpression"||h(fe[Ue].node)||v(fe[Ue].node)&&fe[Ue].node.computed&&k(fe[Ue].node.property));++Ue)oe.push(fe[Ue]);if(!h(fe[0].node))for(;Ue+1<fe.length&&_(fe[Ue].node)&&_(fe[Ue+1].node);++Ue)oe.push(fe[Ue]);he.push(oe),oe=[];let et=!1;for(;Ue<fe.length;++Ue){if(et&&_(fe[Ue].node)){if(fe[Ue].node.computed&&k(fe[Ue].node.property)){oe.push(fe[Ue]);continue}he.push(oe),oe=[],et=!1}(h(fe[Ue].node)||fe[Ue].node.type==="ImportExpression")&&(et=!0),oe.push(fe[Ue]),x(fe[Ue].node,j.Trailing)&&(he.push(oe),oe=[],et=!1)}oe.length>0&&he.push(oe);function Ge(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"&&(Ge(Ee.name)||ge&&ht(Ee.name)||Dn)}let at=b(ln[0]).node;return v(at)&&at.property.type==="Identifier"&&(Ge(at.property.name)||Dn)}let Ie=he.length>=2&&!x(he[1][0].node)&&be(he);function ft(ln){let Dn=ln.map(at=>at.printed);return ln.length>0&&b(ln).needsParens?["(",...Dn,")"]:Dn}function pt(ln){return ln.length===0?"":ne(G([X,R(X,ln.map(ft))]))}let Jt=he.map(ft),Re=Jt,Ce=Ie?3:2,Ye=he.flat(),ze=Ye.slice(1,-1).some(ln=>x(ln.node,j.Leading))||Ye.slice(0,-1).some(ln=>x(ln.node,j.Trailing))||he[Ce]&&x(he[Ce][0].node,j.Leading);if(he.length<=Ce&&!ze)return L(q)?Re:G(Re);let bt=b(he[Ie?1:0]).node,Nt=!h(bt)&&Ne(bt),Bt=[ft(he[0]),Ie?he.slice(1,2).map(ft):"",Nt?X:"",pt(he.slice(Ie?2:1))],cn=fe.map(ln=>{let{node:Dn}=ln;return Dn}).filter(h);function In(){let ln=b(b(he)).node,Dn=b(Jt);return h(ln)&&J(Dn)&&cn.slice(0,-1).some(at=>at.arguments.some(S))}let Tn;return ze||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(Re)||Nt?De:"",Z([Re,Bt])],F("member-chain",Tn)}E.exports=U}}),k0=Fe({"src/language-js/print/call-expression.js"(m,E){$e();var{builders:{join:f,group:b}}=wn(),D=Ya(),{getCallArguments:c,hasFlowAnnotationComment:d,isCallExpression:h,isMemberish:v,isStringLiteral:S,isTemplateOnItsOwnLine:L,isTestCall:_,iterateCallArgumentsPath:k}=pr(),C=Zv(),x=_0(),{printOptionalToken:j,printFunctionTypeParameters:Q}=Ci();function ee(X,G,ne){let Z=X.getValue(),De=X.getParentNode(),F=Z.type==="NewExpression",J=Z.type==="ImportExpression",w=j(X),$=c(Z);if($.length>0&&(!J&&!F&&R(Z,De)||$.length===1&&L($[0],G.originalText)||!F&&_(Z,De))){let M=[];return k(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 R(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}}}),Mo=Fe({"src/language-js/print/assignment.js"(m,E){$e();var{isNonEmptyArray:f,getStringWidth:b}=ye(),{builders:{line:D,group:c,indent:d,indentIfBreak:h,lineSuffixBoundary:v},utils:{cleanDoc:S,willBreak:L,canBreak:_}}=wn(),{hasLeadingOwnLineComment:k,isBinaryish:C,isStringLiteral:x,isLiteral:j,isNumericLiteral:Q,isCallExpression:ee,isMemberExpression:R,getCallArguments:X,rawText:G,hasComment:ne,isSignedNumericLiteral:Z,isObjectProperty:De}=pr(),{shouldInlineLogicalExpression:F}=qf(),{printCallExpression:J}=k0();function w(be,Ie,ft,pt,Jt,Re){let Ce=T(be,Ie,ft,pt,Re),Ye=ft(Re,{assignmentLayout:Ce});switch(Ce){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 ze=Symbol("assignment");return c([c(pt),Jt,c(d(D),{id:ze}),v,h(Ye,{groupId:ze})])}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 $(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 Re=be.getValue(),Ce=Re[Jt];if(!Ce)return"only-left";let Ye=!q(Ce);if(be.match(q,z,bt=>!Ye||bt.type!=="ExpressionStatement"&&bt.type!=="VariableDeclaration"))return Ye?Ce.type==="ArrowFunctionExpression"&&Ce.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!Ye&&q(Ce.right)||k(Ie.originalText,Ce))return"break-after-operator";if(Ce.type==="CallExpression"&&Ce.callee.name==="require"||Ie.parser==="json5"||Ie.parser==="json")return"never-break-after-operator";if(U(Re)||ie(Re)||fe(Re)||Ne(Re)&&_(pt))return"break-lhs";let ze=et(Re,pt,Ie);return be.call(()=>M(be,Ie,ft,ze),Jt)?"break-after-operator":ze||Ce.type==="TemplateLiteral"||Ce.type==="TaggedTemplateExpression"||Ce.type==="BooleanLiteral"||Q(Ce)||Ce.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 Re=Jt,Ce=[];for(;;)if(Re.type==="UnaryExpression")Re=Re.argument,Ce.push("argument");else if(Re.type==="TSNonNullExpression")Re=Re.expression,Ce.push("expression");else break;return!!(x(Re)||be.call(()=>he(be,Ie,ft),...Ce))}function U(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 q(be){return be.type==="AssignmentExpression"}function z(be){return q(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 qe(be)&&be.typeParameters&&be.typeParameters.params?be.typeParameters.params:null}function qe(be){return be.type==="TSTypeReference"||be.type==="GenericTypeAnnotation"}function he(be,Ie,ft){let pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Jt=be.getValue(),Re=()=>he(be,Ie,ft,!0);if(Jt.type==="TSNonNullExpression")return be.call(Re,"expression");if(ee(Jt)){if(J(be,Ie,ft).label==="member-chain")return!1;let Ce=X(Jt);return!(Ce.length===0||Ce.length===1&&Ue(Ce[0],Ie))||Ge(Jt,ft)?!1:be.call(Re,"callee")}return R(Jt)?be.call(Re,"object"):pt&&(Jt.type==="Identifier"||Jt.type==="ThisExpression")}var oe=.25;function Ue(be,Ie){let{printWidth:ft}=Ie;if(ne(be))return!1;let pt=ft*oe;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(`
207
- `):j(be)}function et(be,Ie,ft){if(!De(be))return!1;Ie=S(Ie);let pt=3;return typeof Ie=="string"&&b(Ie)<ft.tabWidth+pt}function Ge(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(L(Ie(pt)))return!0}return!1}function ht(be){return be.typeParameters&&be.typeParameters.params||be.typeArguments&&be.typeArguments.params}E.exports={printVariableDeclarator:y,printAssignmentExpression:$,printAssignment:w,isArrowFunctionVariableDeclarator:Ne}}}),ll=Fe({"src/language-js/print/function-parameters.js"(m,E){$e();var{getNextNonSpaceNonCommentCharacter:f}=ye(),{printDanglingComments:b}=Mr(),{builders:{line:D,hardline:c,softline:d,group:h,indent:v,ifBreak:S},utils:{removeLines:L,willBreak:_}}=wn(),{getFunctionParameters:k,iterateFunctionParametersPath:C,isSimpleType:x,isTestCall:j,isTypeAnnotationAFunction:Q,isObjectType:ee,isObjectTypePropertyAFunction:R,hasRestParameter:X,shouldPrintComma:G,hasComment:ne,isNextLineEmpty:Z}=pr(),{locEnd:De}=ii(),{ArgExpansionBailout:F}=tn(),{printFunctionTypeParameters:J}=Ci();function w(M,U,q,z,ie){let ce=M.getValue(),ge=k(ce),fe=ie?J(M,q,U):"";if(ge.length===0)return[fe,"(",b(M,q,!0,Ue=>f(q.originalText,Ue,De)===")"),")"];let Ne=M.getParentNode(),se=j(Ne),qe=$(ce),he=[];if(C(M,(Ue,et)=>{let Ge=et===ge.length-1;Ge&&ce.rest&&he.push("..."),he.push(U()),!Ge&&(he.push(","),se||qe?he.push(" "):Z(ge[et],q)?he.push(c,c):he.push(D))}),z){if(_(fe)||_(he))throw new F;return h([L(fe),"(",L(he),")"])}let oe=ge.every(Ue=>!Ue.decorators);return qe&&oe?[fe,"(",...he,")"]:se?[fe,"(",...he,")"]:(R(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?q.arrowParens==="always"?["(",...he,")"]:he:[fe,"(",v([d,...he]),S(!X(ce)&&G(q,"all")?",":""),d,")"]}function $(M){if(!M)return!1;let U=k(M);if(U.length!==1)return!1;let[q]=U;return!ne(q)&&(q.type==="ObjectPattern"||q.type==="ArrayPattern"||q.type==="Identifier"&&q.typeAnnotation&&(q.typeAnnotation.type==="TypeAnnotation"||q.typeAnnotation.type==="TSTypeAnnotation")&&ee(q.typeAnnotation.typeAnnotation)||q.type==="FunctionTypeParam"&&ee(q.typeAnnotation)||q.type==="AssignmentPattern"&&(q.left.type==="ObjectPattern"||q.left.type==="ArrayPattern")&&(q.right.type==="Identifier"||q.right.type==="ObjectExpression"&&q.right.properties.length===0||q.right.type==="ArrayExpression"&&q.right.elements.length===0))}function y(M){let U;return M.returnType?(U=M.returnType,U.typeAnnotation&&(U=U.typeAnnotation)):M.typeAnnotation&&(U=M.typeAnnotation),U}function T(M,U){let q=y(M);if(!q)return!1;let z=M.typeParameters&&M.typeParameters.params;if(z){if(z.length>1)return!1;if(z.length===1){let ie=z[0];if(ie.constraint||ie.default)return!1}}return k(M).length===1&&(ee(q)||_(U))}E.exports={printFunctionParameters:w,shouldHugFunctionParameters:$,shouldGroupFunctionParameters:T}}}),cl=Fe({"src/language-js/print/type-annotation.js"(m,E){$e();var{printComments:f,printDanglingComments:b}=Mr(),{isNonEmptyArray:D}=ye(),{builders:{group:c,join:d,line:h,softline:v,indent:S,align:L,ifBreak:_}}=wn(),k=Ya(),{locStart:C}=ii(),{isSimpleType:x,isObjectType:j,hasLeadingOwnLineComment:Q,isObjectTypePropertyAFunction:ee,shouldPrintComma:R}=pr(),{printAssignment:X}=Mo(),{printFunctionParameters:G,shouldGroupFunctionParameters:ne}=ll(),{printArrayItems:Z}=Bo();function De(q){if(x(q)||j(q))return!0;if(q.type==="UnionTypeAnnotation"||q.type==="TSUnionType"){let z=q.types.filter(ce=>ce.type==="VoidTypeAnnotation"||ce.type==="TSVoidKeyword"||ce.type==="NullLiteralTypeAnnotation"||ce.type==="TSNullKeyword").length,ie=q.types.some(ce=>ce.type==="ObjectTypeAnnotation"||ce.type==="TSTypeLiteral"||ce.type==="GenericTypeAnnotation"||ce.type==="TSTypeReference");if(q.types.length-1===z&&ie)return!0}return!1}function F(q,z,ie){let ce=z.semi?";":"",ge=q.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(q,z,ie){let ce=z.semi?";":"",ge=q.getValue(),fe=[];ge.declare&&fe.push("declare "),fe.push("type ",ie("id"),ie("typeParameters"));let Ne=ge.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[X(q,z,ie,fe," =",Ne),ce]}function w(q,z,ie){let ce=q.getValue(),ge=q.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 $(q,z,ie){let ce=q.getValue(),ge=q.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&&q.getParentNode(1).this!==ge)&&!((ge.type==="TypeAlias"||ge.type==="VariableDeclarator"||ge.type==="TSTypeAliasDeclaration")&&Q(z.originalText,ce)),Ne=De(ce),se=q.map(oe=>{let Ue=ie();return Ne||(Ue=L(2,Ue)),f(oe,Ue,z)},"types");if(Ne)return d(" | ",se);let qe=fe&&!Q(z.originalText,ce),he=[_([qe?h:"","| "]),d([h,"| "],se)];return k(q,z)?c([S(he),v]):ge.type==="TupleTypeAnnotation"&&ge.types.length>1||ge.type==="TSTupleType"&&ge.elementTypes.length>1?c([S([_(["(",v]),he]),v,_(")")]):c(fe?S(he):he)}function y(q,z,ie){let ce=q.getValue(),ge=[],fe=q.getParentNode(0),Ne=q.getParentNode(1),se=q.getParentNode(2),qe=ce.type==="TSFunctionType"||!((fe.type==="ObjectTypeProperty"||fe.type==="ObjectTypeInternalSlot")&&!fe.variance&&!fe.optional&&C(fe)===C(ce)||fe.type==="ObjectTypeCallProperty"||se&&se.type==="DeclareFunction"),he=qe&&(fe.type==="TypeAnnotation"||fe.type==="TSTypeAnnotation"),oe=he&&qe&&(fe.type==="TypeAnnotation"||fe.type==="TSTypeAnnotation")&&Ne.type==="ArrowFunctionExpression";ee(fe)&&(qe=!0,he=!0),oe&&ge.push("(");let Ue=G(q,ie,z,!1,!0),et=ce.returnType||ce.predicate||ce.typeAnnotation?[qe?" => ":": ",ie("returnType"),ie("predicate"),ie("typeAnnotation")]:"",Ge=ne(ce,et);return ge.push(Ge?c(Ue):Ue),et&&ge.push(et),oe&&ge.push(")"),c(ge)}function T(q,z,ie){let ce=q.getValue(),ge=ce.type==="TSTupleType"?"elementTypes":"types",fe=ce[ge],Ne=D(fe),se=Ne?v:"";return c(["[",S([se,Z(q,z,ge,ie)]),_(Ne&&R(z,"all")?",":""),b(q,z,!0),se,"]"])}function M(q,z,ie){let ce=q.getValue(),ge=ce.type==="OptionalIndexedAccessType"&&ce.optional?"?.[":"[";return[ie("objectType"),ge,ie("indexType"),"]"]}function U(q,z,ie){let ce=q.getValue();return[ce.postfix?"":ie,z("typeAnnotation"),ce.postfix?ie:""]}E.exports={printOpaqueType:F,printTypeAlias:J,printIntersectionType:w,printUnionType:$,printFunctionType:y,printTupleType:T,printIndexedAccessType:M,shouldHugType:De,printJSDocType:U}}}),fl=Fe({"src/language-js/print/type-parameters.js"(m,E){$e();var{printDanglingComments:f}=Mr(),{builders:{join:b,line:D,hardline:c,softline:d,group:h,indent:v,ifBreak:S}}=wn(),{isTestCall:L,hasComment:_,CommentCheckFlags:k,isTSXFile:C,shouldPrintComma:x,getFunctionParameters:j,isObjectType:Q,getTypeScriptMappedTypeModifier:ee}=pr(),{createGroupIdMapper:R}=ye(),{shouldHugType:X}=cl(),{isArrowFunctionVariableDeclarator:G}=Mo(),ne=R("typeParameters");function Z(J,w,$,y){let T=J.getValue();if(!T[y])return"";if(!Array.isArray(T[y]))return $(y);let M=J.getNode(2),U=M&&L(M),q=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||!q&&(U||T[y].length===1&&(T[y][0].type==="NullableTypeAnnotation"||X(T[y][0]))))return["<",b(", ",J.map($,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($,y))]),z,d,">"],{id:ne(T)})}function De(J,w){let $=J.getValue();if(!_($,k.Dangling))return"";let y=!_($,k.Line),T=f(J,w,y);return y?T:[T,c]}function F(J,w,$){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("[",$("name")),y.constraint&&T.push(" in ",$("constraint")),M.nameType&&T.push(" as ",J.callParent(()=>$("nameType"))),T.push("]"),T):(y.variance&&T.push($("variance")),y.in&&T.push("in "),y.out&&T.push("out "),T.push($("name")),y.bound&&T.push(": ",$("bound")),y.constraint&&T.push(" extends ",$("constraint")),y.default&&T.push(" = ",$("default")),T)}E.exports={printTypeParameter:F,printTypeParameters:Z,getTypeParametersGroupId:ne}}}),Io=Fe({"src/language-js/print/property.js"(m,E){$e();var{printComments:f}=Mr(),{printString:b,printNumber:D}=ye(),{isNumericLiteral:c,isSimpleNumber:d,isStringLiteral:h,isStringPropSafeToUnquote:v,rawText:S}=pr(),{printAssignment:L}=Mo(),_=new WeakMap;function k(x,j,Q){let ee=x.getNode();if(ee.computed)return["[",Q("key"),"]"];let R=x.getParentNode(),{key:X}=ee;if(j.quoteProps==="consistent"&&!_.has(R)){let G=(R.properties||R.body||R.members).some(ne=>!ne.computed&&ne.key&&h(ne.key)&&!v(ne,j));_.set(R,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(R))){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(R))?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"):L(x,j,Q,k(x,j,Q),":","value")}E.exports={printProperty:C,printPropertyKey:k}}}),pl=Fe({"src/language-js/print/function.js"(m,E){$e();var f=Po(),{printDanglingComments:b,printCommentsSeparately:D}=Mr(),c=$r(),{getNextNonSpaceNonCommentCharacterIndex:d}=ye(),{builders:{line:h,softline:v,group:S,indent:L,ifBreak:_,hardline:k,join:C,indentIfBreak:x},utils:{removeLines:j,willBreak:Q}}=wn(),{ArgExpansionBailout:ee}=tn(),{getFunctionParameters:R,hasLeadingOwnLineComment:X,isFlowAnnotationComment:G,isJsxNode:ne,isTemplateOnItsOwnLine:Z,shouldPrintComma:De,startsWithNoLookaheadToken:F,isBinaryish:J,isLineComment:w,hasComment:$,getComments:y,CommentCheckFlags:T,isCallLikeExpression:M,isCallExpression:U,getCallArguments:q,hasNakedLeftSide:z,getLeftSide:ie}=pr(),{locEnd:ce}=ii(),{printFunctionParameters:ge,shouldGroupFunctionParameters:fe}=ll(),{printPropertyKey:Ne}=Io(),{printFunctionTypeParameters:se}=Ci();function qe(Ce,Ye,ze,bt){let Nt=Ce.getValue(),Bt=!1;if((Nt.type==="FunctionDeclaration"||Nt.type==="FunctionExpression")&&bt&&bt.expandLastArg){let Dn=Ce.getParentNode();U(Dn)&&q(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(Ce,Ye,ze,Bt),Tn=Ie(Ce,Ye,ze),ln=fe(Nt,Tn);return cn.push(se(Ce,ze,Ye),S([ln?S(In):In,Tn]),Nt.body?" ":"",Ye("body")),ze.semi&&(Nt.declare||!Nt.body)&&cn.push(";"),cn}function he(Ce,Ye,ze){let bt=Ce.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(Ce,Ye,ze),bt.optional||bt.key.optional?"?":""),bt===Bt?cn.push(oe(Ce,Ye,ze)):Bt.type==="FunctionExpression"?cn.push(Ce.call(In=>oe(In,Ye,ze),"value")):cn.push(ze("value")),cn}function oe(Ce,Ye,ze){let bt=Ce.getNode(),Nt=ge(Ce,ze,Ye),Bt=Ie(Ce,ze,Ye),cn=fe(bt,Bt),In=[se(Ce,Ye,ze),S([cn?S(Nt):Nt,Bt])];return bt.body?In.push(" ",ze("body")):In.push(Ye.semi?";":""),In}function Ue(Ce,Ye,ze,bt){let Nt=Ce.getValue(),Bt=[];if(Nt.async&&Bt.push("async "),be(Ce,Ye))Bt.push(ze(["params",0]));else{let In=bt&&(bt.expandLastArg||bt.expandFirstArg),Tn=Ie(Ce,ze,Ye);if(In){if(Q(Tn))throw new ee;Tn=S(j(Tn))}Bt.push(S([ge(Ce,ze,Ye,In,!0),Tn]))}let cn=b(Ce,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 et(Ce,Ye,ze,bt,Nt,Bt){let cn=Ce.getName(),In=Ce.getParentNode(),Tn=M(In)&&cn==="callee",ln=!!(Ye&&Ye.assignmentLayout),Dn=Bt.body.type!=="BlockStatement"&&Bt.body.type!=="ObjectExpression"&&Bt.body.type!=="SequenceExpression",at=Tn&&Dn||Ye&&Ye.assignmentLayout==="chain-tail-arrow-chain",Ee=Symbol("arrow-chain");return Bt.body.type==="SequenceExpression"&&(Nt=S(["(",L([v,Nt]),v,")"])),S([S(L([Tn||ln?v:"",S(C([" =>",h],ze),{shouldBreak:bt})]),{id:Ee,shouldBreak:at})," =>",x(Dn?L([h,Nt]):[" ",Nt],{groupId:Ee}),Tn?_(v,"",{groupId:Ee}):""])}function Ge(Ce,Ye,ze,bt){let Nt=Ce.getValue(),Bt=[],cn=[],In=!1;if(function Ee(){let dt=Ue(Ce,Ye,ze,bt);if(Bt.length===0)Bt.push(dt);else{let{leading:Oe,trailing:lt}=D(Ce,Ye);Bt.push([Oe,dt]),cn.unshift(lt)}In=In||Nt.returnType&&R(Nt).length>0||Nt.typeParameters||R(Nt).some(Oe=>Oe.type!=="Identifier"),Nt.body.type!=="ArrowFunctionExpression"||bt&&bt.expandLastArg?cn.unshift(ze("body",bt)):(Nt=Nt.body,Ce.call(Ee,"body"))}(),Bt.length>1)return et(Ce,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([" (",L([v,cn]),v,")"])]);let ln=(bt&&bt.expandLastArg||Ce.getParentNode().type==="JSXExpressionContainer")&&!$(Nt),Dn=bt&&bt.expandLastArg&&De(Ye,"all"),at=Nt.body.type==="ConditionalExpression"&&!F(Nt.body,Ee=>Ee.type==="ObjectExpression");return S([...Tn,S([L([h,at?_("","("):"",cn,at?_("",")"):""]),ln?[_(Dn?",":""),v]:""])])}function ht(Ce){let Ye=R(Ce);return Ye.length===1&&!Ce.typeParameters&&!$(Ce,T.Dangling)&&Ye[0].type==="Identifier"&&!Ye[0].typeAnnotation&&!$(Ye[0])&&!Ye[0].optional&&!Ce.predicate&&!Ce.returnType}function be(Ce,Ye){if(Ye.arrowParens==="always")return!1;if(Ye.arrowParens==="avoid"){let ze=Ce.getValue();return ht(ze)}return!1}function Ie(Ce,Ye,ze){let bt=Ce.getValue(),Nt=Ye("returnType");if(bt.returnType&&G(ze.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(Ce,Ye,ze){let bt=Ce.getValue(),Nt=Ye.semi?";":"",Bt=[];bt.argument&&(Re(Ye,bt.argument)?Bt.push([" (",L([k,ze("argument")]),k,")"]):J(bt.argument)||bt.argument.type==="SequenceExpression"?Bt.push(S([_(" ("," "),L([v,ze("argument")]),v,_(")")])):Bt.push(" ",ze("argument")));let cn=y(bt),In=c(cn),Tn=In&&w(In);return Tn&&Bt.push(Nt),$(bt,T.Dangling)&&Bt.push(" ",b(Ce,Ye,!0)),Tn||Bt.push(Nt),Bt}function pt(Ce,Ye,ze){return["return",ft(Ce,Ye,ze)]}function Jt(Ce,Ye,ze){return["throw",ft(Ce,Ye,ze)]}function Re(Ce,Ye){if(X(Ce.originalText,Ye))return!0;if(z(Ye)){let ze=Ye,bt;for(;bt=ie(ze);)if(ze=bt,X(Ce.originalText,ze))return!0}return!1}E.exports={printFunction:qe,printArrowFunction:Ge,printMethod:he,printReturnStatement:pt,printThrowStatement:Jt,printMethodInternal:oe,shouldPrintParamsWithoutParens:be}}}),Wf=Fe({"src/language-js/print/decorators.js"(m,E){$e();var{isNonEmptyArray:f,hasNewline:b}=ye(),{builders:{line:D,hardline:c,join:d,breakParent:h,group:v}}=wn(),{locStart:S,locEnd:L}=ii(),{getParentExportDeclaration:_}=pr();function k(ee,R,X){let G=ee.getValue();return v([d(D,ee.map(X,"decorators")),j(G,R)?c:D])}function C(ee,R,X){return[d(c,ee.map(X,"declaration","decorators")),c]}function x(ee,R,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,R);return[_(ee)?c:Z?h:"",d(D,ee.map(X,"decorators")),D]}function j(ee,R){return ee.decorators.some(X=>b(R.originalText,L(X)))}function Q(ee){if(ee.type!=="ExportDefaultDeclaration"&&ee.type!=="ExportNamedDeclaration"&&ee.type!=="DeclareExportDeclaration")return!1;let R=ee.declaration&&ee.declaration.decorators;return f(R)&&S(ee)===S(R[0])}E.exports={printDecorators:x,printClassMemberDecorators:k,printDecoratorsBeforeExport:C,hasDecoratorsBeforeExport:Q}}}),Oo=Fe({"src/language-js/print/class.js"(m,E){$e();var{isNonEmptyArray:f,createGroupIdMapper:b}=ye(),{printComments:D,printDanglingComments:c}=Mr(),{builders:{join:d,line:h,hardline:v,softline:S,group:L,indent:_,ifBreak:k}}=wn(),{hasComment:C,CommentCheckFlags:x}=pr(),{getTypeParametersGroupId:j}=fl(),{printMethod:Q}=pl(),{printOptionalToken:ee,printTypeAnnotation:R,printDefiniteToken:X}=Ci(),{printPropertyKey:G}=Io(),{printAssignment:ne}=Mo(),{printClassMemberDecorators:Z}=Wf();function De(q,z,ie){let ce=q.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 qe=[T(q,z,ie),ie("superTypeParameters")],he=q.call(oe=>["extends ",D(oe,qe,z)],"superClass");fe?se.push(h,L(he)):se.push(" ",he)}else se.push(y(q,z,ie,"extends"));if(se.push(y(q,z,ie,"mixins"),y(q,z,ie,"implements")),fe){let qe;$(ce)?qe=[...Ne,_(se)]:qe=_([...Ne,se]),ge.push(L(qe,{id:F(ce)}))}else ge.push(...Ne,...se);return ge.push(" ",ie("body")),ge}var F=b("heritageGroup");function J(q){return k(v,"",{groupId:F(q)})}function w(q){return["superClass","extends","mixins","implements"].filter(z=>!!q[z]).length>1}function $(q){return q.typeParameters&&!C(q.typeParameters,x.Trailing|x.Line)&&!w(q)}function y(q,z,ie,ce){let ge=q.getValue();if(!f(ge[ce]))return"";let fe=c(q,z,!0,Ne=>{let{marker:se}=Ne;return se===ce});return[$(ge)?k(" ",h,{groupId:j(ge.typeParameters)}):h,fe,fe&&v,ce,L(_([h,d([",",h],q.map(ie,ce))]))]}function T(q,z,ie){let ce=ie("superClass");return q.getParentNode().type==="AssignmentExpression"?L(k(["(",_([S,ce]),S,")"],ce)):ce}function M(q,z,ie){let ce=q.getValue(),ge=[];return f(ce.decorators)&&ge.push(Z(q,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(q,z,ie)),ge}function U(q,z,ie){let ce=q.getValue(),ge=[],fe=z.semi?";":"";return f(ce.decorators)&&ge.push(Z(q,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(q,z,ie),ee(q),X(q),R(q,z,ie)),[ne(q,z,ie,ge," =","value"),fe]}E.exports={printClass:De,printClassMethod:M,printClassProperty:U,printHardlineAfterHeritage:J}}}),L0=Fe({"src/language-js/print/interface.js"(m,E){$e();var{isNonEmptyArray:f}=ye(),{builders:{join:b,line:D,group:c,indent:d,ifBreak:h}}=wn(),{hasComment:v,identity:S,CommentCheckFlags:L}=pr(),{getTypeParametersGroupId:_}=fl(),{printTypeScriptModifiers:k}=Ci();function C(x,j,Q){let ee=x.getValue(),R=[];ee.declare&&R.push("declare "),ee.type==="TSInterfaceDeclaration"&&R.push(ee.abstract?"abstract ":"",k(x,j,Q)),R.push("interface");let X=[],G=[];ee.type!=="InterfaceTypeAnnotation"&&X.push(" ",Q("id"),Q("typeParameters"));let ne=ee.typeParameters&&!v(ee.typeParameters,L.Trailing|L.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,L.Trailing)||f(ee.extends)?ne?R.push(c([...X,d(G)])):R.push(c(d([...X,...G]))):R.push(...X,...G),R.push(" ",Q("body")),c(R)}E.exports={printInterface:C}}}),P0=Fe({"src/language-js/print/module.js"(m,E){$e();var{isNonEmptyArray:f}=ye(),{builders:{softline:b,group:D,indent:c,join:d,line:h,ifBreak:v,hardline:S}}=wn(),{printDanglingComments:L}=Mr(),{hasComment:_,CommentCheckFlags:k,shouldPrintComma:C,needsHardlineAfterDanglingComment:x,isStringLiteral:j,rawText:Q}=pr(),{locStart:ee,hasSameLoc:R}=ii(),{hasDecoratorsBeforeExport:X,printDecoratorsBeforeExport:G}=Wf();function ne(U,q,z){let ie=U.getValue(),ce=q.semi?";":"",ge=[],{importKind:fe}=ie;return ge.push("import"),fe&&fe!=="value"&&ge.push(" ",fe),ge.push(w(U,q,z),J(U,q,z),y(U,q,z),ce),ge}function Z(U,q,z){let ie=U.getValue(),ce=[];X(ie)&&ce.push(G(U,q,z));let{type:ge,exportKind:fe,declaration:Ne}=ie;return ce.push("export"),(ie.default||ge==="ExportDefaultDeclaration")&&ce.push(" default"),_(ie,k.Dangling)&&(ce.push(" ",L(U,q,!0)),x(ie)&&ce.push(S)),Ne?ce.push(" ",z("declaration")):ce.push(fe==="type"?" type":"",w(U,q,z),J(U,q,z),y(U,q,z)),F(ie,q)&&ce.push(";"),ce}function De(U,q,z){let ie=U.getValue(),ce=q.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(U,q,z),y(U,q,z),ce),ge}function F(U,q){if(!q.semi)return!1;let{type:z,declaration:ie}=U,ce=U.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(U,q,z){let ie=U.getValue();if(!ie.source)return"";let ce=[];return $(ie,q)||ce.push(" from"),ce.push(" ",z("source")),ce}function w(U,q,z){let ie=U.getValue();if($(ie,q))return"";let ce=[" "];if(f(ie.specifiers)){let ge=[],fe=[];U.each(()=>{let Ne=U.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([q.bracketSpacing?h:b,d([",",h],fe)]),v(C(q)?",":""),q.bracketSpacing?h:b,"}"])):ce.push(["{",q.bracketSpacing?" ":"",...fe,q.bracketSpacing?" ":"","}"]))}else ce.push("{}");return ce}function $(U,q){let{type:z,importKind:ie,source:ce,specifiers:ge}=U;return z!=="ImportDeclaration"||f(ge)||ie==="type"?!1:!/{\s*}/.test(q.originalText.slice(ee(U),ee(ce)))}function y(U,q,z){let ie=U.getNode();return f(ie.assertions)?[" assert {",q.bracketSpacing?" ":"",d(", ",U.map(z,"assertions")),q.bracketSpacing?" ":"","}"]:""}function T(U,q,z){let ie=U.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",qe=Ne?"local":"exported",he=ie[se],oe=ie[qe],Ue="",et="";return ce==="ExportNamespaceSpecifier"||ce==="ImportNamespaceSpecifier"?Ue="*":he&&(Ue=z(se)),oe&&!M(ie)&&(et=z(qe)),ge.push(Ue,Ue&&et?" as ":"",et),ge}function M(U){if(U.type!=="ImportSpecifier"&&U.type!=="ExportSpecifier")return!1;let{local:q,[U.type==="ImportSpecifier"?"imported":"exported"]:z}=U;if(q.type!==z.type||!R(q,z))return!1;if(j(q))return q.value===z.value&&Q(q)===Q(z);switch(q.type){case"Identifier":return q.name===z.name;default:return!1}}E.exports={printImportDeclaration:ne,printExportDeclaration:Z,printExportAllDeclaration:De,printModuleSpecifier:T}}}),Gf=Fe({"src/language-js/print/object.js"(m,E){$e();var{printDanglingComments:f}=Mr(),{builders:{line:b,softline:D,group:c,indent:d,ifBreak:h,hardline:v}}=wn(),{getLast:S,hasNewlineInRange:L,hasNewline:_,isNonEmptyArray:k}=ye(),{shouldPrintComma:C,hasComment:x,getComments:j,CommentCheckFlags:Q,isNextLineEmpty:ee}=pr(),{locStart:R,locEnd:X}=ii(),{printOptionalToken:G,printTypeAnnotation:ne}=Ci(),{shouldHugFunctionParameters:Z}=ll(),{shouldHugType:De}=cl(),{printHardlineAfterHeritage:F}=Oo();function J(w,$,y){let T=$.semi?";":"",M=w.getValue(),U;M.type==="TSTypeLiteral"?U="members":M.type==="TSInterfaceBody"?U="body":U="properties";let q=M.type==="ObjectTypeAnnotation",z=[U];q&&z.push("indexers","callProperties","internalSlots");let ie=z.map(be=>M[be][0]).sort((be,Ie)=>R(be)-R(Ie))[0],ce=w.getParentNode(0),ge=q&&ce&&(ce.type==="InterfaceDeclaration"||ce.type==="DeclareInterface"||ce.type==="DeclareClass")&&w.getName()==="body",fe=M.type==="TSInterfaceBody"||ge||M.type==="ObjectPattern"&&ce.type!=="FunctionDeclaration"&&ce.type!=="FunctionExpression"&&ce.type!=="ArrowFunctionExpression"&&ce.type!=="ObjectMethod"&&ce.type!=="ClassMethod"&&ce.type!=="ClassPrivateMethod"&&ce.type!=="AssignmentPattern"&&ce.type!=="CatchClause"&&M.properties.some(be=>be.value&&(be.value.type==="ObjectPattern"||be.value.type==="ArrayPattern"))||M.type!=="ObjectPattern"&&ie&&L($.originalText,R(M),R(ie)),Ne=ge?";":M.type==="TSInterfaceBody"||M.type==="TSTypeLiteral"?h(T,";"):",",se=M.type==="RecordExpression"?"#{":M.exact?"{|":"{",qe=M.exact?"|}":"}",he=[];for(let be of z)w.each(Ie=>{let ft=Ie.getValue();he.push({node:ft,printed:y(),loc:R(ft)})},be);z.length>1&&he.sort((be,Ie)=>be.loc-Ie.loc);let oe=[],Ue=he.map(be=>{let Ie=[...oe,c(be.printed)];return oe=[Ne,b],(be.node.type==="TSPropertySignature"||be.node.type==="TSMethodSignature"||be.node.type==="TSConstructSignatureDeclaration")&&x(be.node,Q.PrettierIgnore)&&oe.shift(),ee(be.node,$)&&oe.push(v),Ie});if(M.inexact){let be;if(x(M,Q.Dangling)){let Ie=x(M,Q.Line);be=[f(w,$,!0),Ie||_($.originalText,X(S(j(M))))?v:b,"..."]}else be=["..."];Ue.push([...oe,...be])}let et=S(M[U]),Ge=!(M.inexact||et&&et.type==="RestElement"||et&&(et.type==="TSPropertySignature"||et.type==="TSCallSignatureDeclaration"||et.type==="TSMethodSignature"||et.type==="TSConstructSignatureDeclaration")&&x(et,Q.PrettierIgnore)),ht;if(Ue.length===0){if(!x(M,Q.Dangling))return[se,qe,ne(w,$,y)];ht=c([se,f(w,$),D,qe,G(w),ne(w,$,y)])}else ht=[ge&&k(M.properties)?F(ce):"",se,d([$.bracketSpacing?b:D,...Ue]),h(Ge&&(Ne!==","||C($))?Ne:""),$.bracketSpacing?b:D,qe,G(w),ne(w,$,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}}}),e2=Fe({"src/language-js/print/flow.js"(m,E){$e();var f=Po(),{printDanglingComments:b}=Mr(),{printString:D,printNumber:c}=ye(),{builders:{hardline:d,softline:h,group:v,indent:S}}=wn(),{getParentExportDeclaration:L,isFunctionNotation:_,isGetterOrSetter:k,rawText:C,shouldPrintComma:x}=pr(),{locStart:j,locEnd:Q}=ii(),{replaceTextEndOfLine:ee}=Zs(),{printClass:R}=Oo(),{printOpaqueType:X,printTypeAlias:G,printIntersectionType:ne,printUnionType:Z,printFunctionType:De,printTupleType:F,printIndexedAccessType:J}=cl(),{printInterface:w}=L0(),{printTypeParameter:$,printTypeParameters:y}=fl(),{printExportDeclaration:T,printExportAllDeclaration:M}=P0(),{printArrayItems:U}=Bo(),{printObject:q}=Gf(),{printPropertyKey:z}=Io(),{printOptionalToken:ie,printTypeAnnotation:ce,printRestSpread:ge}=Ci();function fe(se,qe,he){let oe=se.getValue(),Ue=qe.semi?";":"",et=[];switch(oe.type){case"DeclareClass":return Ne(se,R(se,qe,he));case"DeclareFunction":return Ne(se,["function ",he("id"),oe.predicate?" ":"",he("predicate"),Ue]);case"DeclareModule":return Ne(se,["module ",he("id")," ",he("body")]);case"DeclareModuleExports":return Ne(se,["module.exports",": ",he("typeAnnotation"),Ue]);case"DeclareVariable":return Ne(se,["var ",he("id"),Ue]);case"DeclareOpaqueType":return Ne(se,X(se,qe,he));case"DeclareInterface":return Ne(se,w(se,qe,he));case"DeclareTypeAlias":return Ne(se,G(se,qe,he));case"DeclareExportDeclaration":return Ne(se,T(se,qe,he));case"DeclareExportAllDeclaration":return Ne(se,M(se,qe,he));case"OpaqueType":return X(se,qe,he);case"TypeAlias":return G(se,qe,he);case"IntersectionTypeAnnotation":return ne(se,qe,he);case"UnionTypeAnnotation":return Z(se,qe,he);case"FunctionTypeAnnotation":return De(se,qe,he);case"TupleTypeAnnotation":return F(se,qe,he);case"GenericTypeAnnotation":return[he("id"),y(se,qe,he,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return J(se,qe,he);case"TypeAnnotation":return he("typeAnnotation");case"TypeParameter":return $(se,qe,he);case"TypeofTypeAnnotation":return["typeof ",he("argument")];case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[he("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(oe.value);case"EnumDeclaration":return["enum ",he("id")," ",he("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":{if(oe.type==="EnumSymbolBody"||oe.explicitType){let Ge=null;switch(oe.type){case"EnumBooleanBody":Ge="boolean";break;case"EnumNumberBody":Ge="number";break;case"EnumStringBody":Ge="string";break;case"EnumSymbolBody":Ge="symbol";break}et.push("of ",Ge," ")}if(oe.members.length===0&&!oe.hasUnknownMembers)et.push(v(["{",b(se,qe),h,"}"]));else{let Ge=oe.members.length>0?[d,U(se,qe,"members",he),oe.hasUnknownMembers||x(qe)?",":""]:[];et.push(v(["{",S([...Ge,...oe.hasUnknownMembers?[d,"..."]:[]]),b(se,qe,!0),d,"}"]))}return et}case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[he("id")," = ",typeof oe.init=="object"?he("init"):String(oe.init)];case"EnumDefaultedMember":return he("id");case"FunctionTypeParam":{let Ge=oe.name?he("name"):se.getParentNode().this===oe?"this":"";return[Ge,ie(se),Ge?": ":"",he("typeAnnotation")]}case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return w(se,qe,he);case"ClassImplements":case"InterfaceExtends":return[he("id"),he("typeParameters")];case"NullableTypeAnnotation":return["?",he("typeAnnotation")];case"Variance":{let{kind:Ge}=oe;return f.ok(Ge==="plus"||Ge==="minus"),Ge==="plus"?"+":"-"}case"ObjectTypeCallProperty":return oe.static&&et.push("static "),et.push(he("value")),et;case"ObjectTypeIndexer":return[oe.static?"static ":"",oe.variance?he("variance"):"","[",he("id"),oe.id?": ":"",he("key"),"]: ",he("value")];case"ObjectTypeProperty":{let Ge="";return oe.proto?Ge="proto ":oe.static&&(Ge="static "),[Ge,k(oe)?oe.kind+" ":"",oe.variance?he("variance"):"",z(se,qe,he),ie(se),_(oe)?"":": ",he("value")]}case"ObjectTypeAnnotation":return q(se,qe,he);case"ObjectTypeInternalSlot":return[oe.static?"static ":"","[[",he("id"),"]]",ie(se),oe.method?"":": ",he("value")];case"ObjectTypeSpreadProperty":return ge(se,qe,he);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[he("qualification"),".",he("id")];case"StringLiteralTypeAnnotation":return ee(D(C(oe),qe));case"NumberLiteralTypeAnnotation":f.strictEqual(typeof oe.value,"number");case"BigIntLiteralTypeAnnotation":return oe.extra?c(oe.extra.raw):c(oe.raw);case"TypeCastExpression":return["(",he("expression"),ce(se,qe,he),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":{let Ge=y(se,qe,he,"params");if(qe.parser==="flow"){let ht=j(oe),be=Q(oe),Ie=qe.originalText.lastIndexOf("/*",ht),ft=qe.originalText.indexOf("*/",be);if(Ie!==-1&&ft!==-1){let pt=qe.originalText.slice(Ie+2,ft).trim();if(pt.startsWith("::")&&!pt.includes("/*")&&!pt.includes("*/"))return["/*:: ",Ge," */"]}}return Ge}case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",he("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(oe.type))}}function Ne(se,qe){let he=L(se);return he?(f.strictEqual(he.type,"DeclareExportDeclaration"),qe):["declare ",qe]}E.exports={printFlow:fe}}}),t2=Fe({"src/language-js/utils/is-ts-keyword-type.js"(m,E){$e();function f(b){let{type:D}=b;return D.startsWith("TS")&&D.endsWith("Keyword")}E.exports=f}}),B0=Fe({"src/language-js/print/ternary.js"(m,E){$e();var{hasNewlineInRange:f}=ye(),{isJsxNode:b,getComments:D,isCallExpression:c,isMemberExpression:d,isTSTypeExpression:h}=pr(),{locStart:v,locEnd:S}=ii(),L=na(),{builders:{line:_,softline:k,group:C,indent:x,align:j,ifBreak:Q,dedent:ee,breakParent:R}}=wn();function X(F){let J=[F];for(let w=0;w<J.length;w++){let $=J[w];for(let y of["test","consequent","alternate"]){let T=$[y];if(b(T))return!0;T.type==="ConditionalExpression"&&J.push(T)}}return!1}function G(F,J,w){let $=F.getValue(),y=$.type==="ConditionalExpression",T=y?"alternate":"falseType",M=F.getParentNode(),U=y?w("test"):[w("checkType")," ","extends"," ",w("extendsType")];return M.type===$.type&&M[T]===$?j(2,U):U}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,$=J;for(let y=0;!w;y++){let T=F.getParentNode(y);if(c(T)&&T.callee===$||d(T)&&T.object===$||T.type==="TSNonNullExpression"&&T.expression===$){$=T;continue}T.type==="NewExpression"&&T.callee===$||h(T)&&T.expression===$?(w=F.getParentNode(y+1),$=T):w=T}return $===J?!1:w[ne.get(w.type)]===$}function De(F,J,w){let $=F.getValue(),y=$.type==="ConditionalExpression",T=y?"consequent":"trueType",M=y?"alternate":"falseType",U=y?["test"]:["checkType","extendsType"],q=$[T],z=$[M],ie=[],ce=!1,ge=F.getParentNode(),fe=ge.type===$.type&&U.some(ft=>ge[ft]===$),Ne=ge.type===$.type&&!fe,se,qe,he=0;do qe=se||$,se=F.getParentNode(he),he++;while(se&&se.type===$.type&&U.every(ft=>se[ft]!==qe));let oe=se||ge,Ue=qe;if(y&&(b($[U[0]])||b(q)||b(z)||X(Ue))){ce=!0,Ne=!0;let ft=Jt=>[Q("("),x([k,Jt]),k,Q(")")],pt=Jt=>Jt.type==="NullLiteral"||Jt.type==="Literal"&&Jt.value===null||Jt.type==="Identifier"&&Jt.name==="undefined";ie.push(" ? ",pt(q)?w(T):ft(w(T))," : ",z.type===$.type||pt(z)?w(M):ft(w(M)))}else{let ft=[_,"? ",q.type===$.type?Q("","("):"",j(2,w(T)),q.type===$.type?Q("",")"):"",_,": ",z.type===$.type?w(M):j(2,w(M))];ie.push(ge.type!==$.type||ge[M]===$||fe?ft:J.useTabs?ee(x(ft)):j(Math.max(0,J.tabWidth-2),ft))}let et=[...U.map(ft=>D($[ft])),D(q),D(z)].flat().some(ft=>L(ft)&&f(J.originalText,v(ft),S(ft))),Ge=ft=>ge===oe?C(ft,{shouldBreak:et}):et?[ft,R]:ft,ht=!ce&&(d(ge)||ge.type==="NGPipeExpression"&&ge.left===$)&&!ge.computed,be=Z(F),Ie=Ge([G(F,J,w),Ne?ie:x(ie),y&&ht&&!be?k:""]);return fe||be?C([x([k,Ie]),k]):Ie}E.exports={printTernary:De}}}),M0=Fe({"src/language-js/print/statement.js"(m,E){$e();var{builders:{hardline:f}}=wn(),b=Ya(),{getLeftSidePathName:D,hasNakedLeftSide:c,isJsxNode:d,isTheOnlyJsxElementInMarkdown:h,hasComment:v,CommentCheckFlags:S,isNextLineEmpty:L}=pr(),{shouldPrintParamsWithoutParens:_}=pl();function k(G,ne,Z,De){let F=G.getValue(),J=[],w=F.type==="ClassBody",$=C(F[De]);return G.each((y,T,M)=>{let U=y.getValue();if(U.type==="EmptyStatement")return;let q=Z();!ne.semi&&!w&&!h(ne,y)&&x(y,ne)?v(U,S.Leading)?J.push(Z([],{needsSemi:!0})):J.push(";",q):J.push(q),!ne.semi&&w&&R(U)&&X(U,M[T+1])&&J.push(";"),U!==$&&(J.push(f),L(U,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 k(G,ne,Z,"body")}function ee(G,ne,Z){return k(G,ne,Z,"consequent")}var R=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(R(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}}}),I0=Fe({"src/language-js/print/block.js"(m,E){$e();var{printDanglingComments:f}=Mr(),{isNonEmptyArray:b}=ye(),{builders:{hardline:D,indent:c}}=wn(),{hasComment:d,CommentCheckFlags:h,isNextLineEmpty:v}=pr(),{printHardlineAfterHeritage:S}=Oo(),{printBody:L}=M0();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 R=k(C,x,j);if(R)ee.push(c([D,R]),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 k(C,x,j){let Q=C.getValue(),ee=b(Q.directives),R=Q.body.some(ne=>ne.type!=="EmptyStatement"),X=d(Q,h.Dangling);if(!ee&&!R&&!X)return"";let G=[];if(ee&&C.each((ne,Z,De)=>{G.push(j()),(Z<De.length-1||R||X)&&(G.push(D),v(ne.getValue(),x)&&G.push(D))},"directives"),R&&G.push(L(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:k}}}),n2=Fe({"src/language-js/print/typescript.js"(m,E){$e();var{printDanglingComments:f}=Mr(),{hasNewlineInRange:b}=ye(),{builders:{join:D,line:c,hardline:d,softline:h,group:v,indent:S,conditionalGroup:L,ifBreak:_}}=wn(),{isStringLiteral:k,getTypeScriptMappedTypeModifier:C,shouldPrintComma:x,isCallExpression:j,isMemberExpression:Q}=pr(),ee=t2(),{locStart:R,locEnd:X}=ii(),{printOptionalToken:G,printTypeScriptModifiers:ne}=Ci(),{printTernary:Z}=B0(),{printFunctionParameters:De,shouldGroupFunctionParameters:F}=ll(),{printTemplateLiteral:J}=Ja(),{printArrayItems:w}=Bo(),{printObject:$}=Gf(),{printClassProperty:y,printClassMethod:T}=Oo(),{printTypeParameter:M,printTypeParameters:U}=fl(),{printPropertyKey:q}=Io(),{printFunction:z,printMethodInternal:ie}=pl(),{printInterface:ce}=L0(),{printBlock:ge}=I0(),{printTypeAlias:fe,printIntersectionType:Ne,printUnionType:se,printFunctionType:qe,printTupleType:he,printIndexedAccessType:oe,printJSDocType:Ue}=cl();function et(Ge,ht,be){let Ie=Ge.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"),Re=v(["<",S([h,be("typeAnnotation")]),h,">"]),Ce=[_("("),S([h,be("expression")]),h,_(")")];return Jt?L([[Re,be("expression")],[Re,v(Ce,{shouldBreak:!0})],[Re,be("expression")]]):v([Re,be("expression")])}case"TSDeclareFunction":return z(Ge,be,ht);case"TSExportAssignment":return["export = ",be("expression"),ft];case"TSModuleBlock":return ge(Ge,ht,be);case"TSInterfaceBody":case"TSTypeLiteral":return $(Ge,ht,be);case"TSTypeAliasDeclaration":return fe(Ge,ht,be);case"TSQualifiedName":return D(".",[be("left"),be("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return T(Ge,ht,be);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return y(Ge,ht,be);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return pt.push(be("expression")),Ie.typeParameters&&pt.push(be("typeParameters")),pt;case"TSTemplateLiteralType":return J(Ge,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(Ge,ht,be);case"TSClassImplements":return[be("expression"),be("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return U(Ge,ht,be,"params");case"TSTypeParameter":return M(Ge,ht,be);case"TSSatisfiesExpression":case"TSAsExpression":{let Jt=Ie.type==="TSAsExpression"?"as":"satisfies";pt.push(be("expression"),` ${Jt} `,be("typeAnnotation"));let Re=Ge.getParentNode();return j(Re)&&Re.callee===Ie||Q(Re)&&Re.object===Ie?v([S([h,...pt]),h]):pt}case"TSArrayType":return[be("elementType"),"[]"];case"TSPropertySignature":return Ie.readonly&&pt.push("readonly "),pt.push(q(Ge,ht,be),G(Ge)),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=Ge.getParentNode(),Re=Ie.parameters.length>1?_(x(ht)?",":""):"",Ce=v([S([h,D([", ",h],Ge.map(be,"parameters"))]),Re,h]);return[Ie.export?"export ":"",Ie.accessibility?[Ie.accessibility," "]:"",Ie.static?"static ":"",Ie.readonly?"readonly ":"",Ie.declare?"declare ":"","[",Ie.parameters?Ce:"",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")]:"",U(Ge,ht,be,"typeParameters")];case"TSLiteralType":return be("literal");case"TSIndexedAccessType":return oe(Ge,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(Ge,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,R(Ie),X(Ie));return v(["{",S([ht.bracketSpacing?c:h,be("typeParameter"),Ie.optional?C(Ie.optional,"?"):"",Ie.typeAnnotation?": ":"",be("typeAnnotation"),_(ft)]),f(Ge,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(Ge));let Re=De(Ge,be,ht,!1,!0),Ce=Ie.returnType?"returnType":"typeAnnotation",Ye=Ie[Ce],ze=Ye?be(Ce):"",bt=F(Ie,ze);return pt.push(bt?v(Re):Re),Ye&&pt.push(": ",v(ze)),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(Ge,ht,be)),Ie.const&&pt.push("const "),pt.push("enum ",be("id")," "),Ie.members.length===0?pt.push(v(["{",f(Ge,ht),h,"}"])):pt.push(v(["{",S([d,w(Ge,ht,"members",be),x(ht,"es5")?",":""]),f(Ge,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=Ge.getParentNode(),Re=k(Ie.id),Ce=Jt.type==="TSModuleDeclaration",Ye=Ie.body&&Ie.body.type==="TSModuleDeclaration";if(Ce)pt.push(".");else{Ie.declare&&pt.push("declare "),pt.push(ne(Ge,ht,be));let ze=ht.originalText.slice(R(Ie),R(Ie.id));Ie.id.type==="Identifier"&&Ie.id.name==="global"&&!/namespace|module/.test(ze)||pt.push(Re||/(?:^|\s)module(?:\s|$)/.test(ze)?"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(Ge,ht,be);case"TSInferType":return["infer"," ",be("typeParameter")];case"TSIntersectionType":return Ne(Ge,ht,be);case"TSUnionType":return se(Ge,ht,be);case"TSFunctionType":return qe(Ge,ht,be);case"TSTupleType":return he(Ge,ht,be);case"TSTypeReference":return[be("typeName"),U(Ge,ht,be,"typeParameters")];case"TSTypeAnnotation":return be("typeAnnotation");case"TSEmptyBodyFunctionExpression":return ie(Ge,ht,be);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return Ue(Ge,be,"?");case"TSJSDocNonNullableType":return Ue(Ge,be,"!");case"TSInstantiationExpression":return[be("expression"),be("typeParameters")];default:throw new Error(`Unknown TypeScript node type: ${JSON.stringify(Ie.type)}.`)}}E.exports={printTypescript:et}}}),r2=Fe({"src/language-js/print/comment.js"(m,E){$e();var{hasNewline:f}=ye(),{builders:{join:b,hardline:D},utils:{replaceTextEndOfLine:c}}=wn(),{isLineComment:d}=pr(),{locStart:h,locEnd:v}=ii(),S=na();function L(C,x){let j=C.getValue();if(d(j))return x.originalText.slice(h(j),v(j)).trimEnd();if(S(j)){if(_(j)){let R=k(j);return j.trailing&&!f(x.originalText,h(j),{backwards:!0})?[D,R]:R}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(`
208
- `);return x.length>1&&x.every(j=>j.trim()[0]==="*")}function k(C){let x=C.value.split(`
209
- `);return["/*",b(D,x.map((j,Q)=>Q===0?j.trimEnd():" "+(Q<x.length-1?j.trim():j.trimStart()))),"*/"]}E.exports={printComment:L}}}),i2=Fe({"src/language-js/print/literal.js"(m,E){$e();var{printString:f,printNumber:b}=ye(),{replaceTextEndOfLine:D}=Zs(),{printDirective:c}=Ci();function d(L,_){let k=L.getNode();switch(k.type){case"RegExpLiteral":return S(k);case"BigIntLiteral":return v(k.bigint||k.extra.raw);case"NumericLiteral":return b(k.extra.raw);case"StringLiteral":return D(f(k.extra.raw,_));case"NullLiteral":return"null";case"BooleanLiteral":return String(k.value);case"DecimalLiteral":return b(k.value)+"m";case"Literal":{if(k.regex)return S(k.regex);if(k.bigint)return v(k.raw);if(k.decimal)return b(k.decimal)+"m";let{value:C}=k;return typeof C=="number"?b(k.raw):typeof C=="string"?h(L)?c(k.raw,_):D(f(k.raw,_)):String(C)}}}function h(L){if(L.getName()!=="expression")return;let _=L.getParentNode();return _.type==="ExpressionStatement"&&_.directive}function v(L){return L.toLowerCase()}function S(L){let{pattern:_,flags:k}=L;return k=[...k].sort().join(""),`/${_}/${k}`}E.exports={printLiteral:d}}}),s2=Fe({"src/language-js/printer-estree.js"(m,E){$e();var{printDanglingComments:f}=Mr(),{hasNewline:b}=ye(),{builders:{join:D,line:c,hardline:d,softline:h,group:v,indent:S},utils:{replaceTextEndOfLine:L}}=wn(),_=Rv(),k=Vv(),{insertPragma:C}=w0(),x=F0(),j=Ya(),Q=N0(),{hasFlowShorthandAnnotationComment:ee,hasComment:R,CommentCheckFlags:X,isTheOnlyJsxElementInMarkdown:G,isLineComment:ne,isNextLineEmpty:Z,needsHardlineAfterDanglingComment:De,hasIgnoreComment:F,isCallExpression:J,isMemberExpression:w,markerForIfWithoutBlockAndSameLineComment:$}=pr(),{locStart:y,locEnd:T}=ii(),M=na(),{printHtmlBinding:U,isVueEventBindingExpression:q}=Qv(),{printAngular:z}=Xv(),{printJsx:ie,hasJsxIgnoreComment:ce}=Kv(),{printFlow:ge}=e2(),{printTypescript:fe}=n2(),{printOptionalToken:Ne,printBindExpressionCallee:se,printTypeAnnotation:qe,adjustClause:he,printRestSpread:oe,printDefiniteToken:Ue,printDirective:et}=Ci(),{printImportDeclaration:Ge,printExportDeclaration:ht,printExportAllDeclaration:be,printModuleSpecifier:Ie}=P0(),{printTernary:ft}=B0(),{printTemplateLiteral:pt}=Ja(),{printArray:Jt}=Bo(),{printObject:Re}=Gf(),{printClass:Ce,printClassMethod:Ye,printClassProperty:ze}=Oo(),{printProperty:bt}=Io(),{printFunction:Nt,printArrowFunction:Bt,printMethod:cn,printReturnStatement:In,printThrowStatement:Tn}=pl(),{printCallExpression:ln}=k0(),{printVariableDeclarator:Dn,printAssignmentExpression:at}=Mo(),{printBinaryishExpression:Ee}=qf(),{printSwitchCaseConsequent:dt}=M0(),{printMemberExpression:Oe}=T0(),{printBlock:lt,printBlockBody:Zt}=I0(),{printComment:qt}=r2(),{printLiteral:gt}=i2(),{printDecorators:V}=Wf();function _e(Rt,un,Mt,Ar){let sn=nt(Rt,un,Mt,Ar);if(!sn)return"";let Dr=Rt.getValue(),{type:nn}=Dr;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(Rt,un,Mt),ar=Dr.type==="ClassExpression"&&Bn;if(Bn&&(An=[...Bn,sn],!ar))return v(An);if(!j(Rt,un))return Ar&&Ar.needsSemi&&An.unshift(";"),An.length===1&&An[0]===sn?sn:An;if(ar&&(An=[S([c,...An])]),An.unshift("("),Ar&&Ar.needsSemi&&An.unshift(";"),ee(Dr)){let[an]=Dr.trailingComments;An.push(" /*",an.value.trimStart(),"*/"),an.printed=!0}return ar&&An.push(c),An.push(")"),An}function nt(Rt,un,Mt,Ar){let sn=Rt.getValue(),Dr=un.semi?";":"";if(!sn)return"";if(typeof sn=="string")return sn;for(let An of[gt,U,z,ie,ge,fe]){let Bn=An(Rt,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(Rt,un,Mt);case"EmptyStatement":return"";case"ExpressionStatement":{if(un.parser==="__vue_event_binding"||un.parser==="__vue_ts_event_binding"){let Bn=Rt.getParentNode();if(Bn.type==="Program"&&Bn.body.length===1&&Bn.body[0]===sn)return[Mt("expression"),q(sn.expression)?";":""]}let An=f(Rt,un,!0,Bn=>{let{marker:ar}=Bn;return ar===$});return[Mt("expression"),G(un,Rt)?"":Dr,An?[" ",An]:""]}case"ParenthesizedExpression":return!R(sn.expression)&&(sn.expression.type==="ObjectExpression"||sn.expression.type==="ArrayExpression")?["(",Mt("expression"),")"]:v(["(",S([h,Mt("expression")]),h,")"]);case"AssignmentExpression":return at(Rt,un,Mt);case"VariableDeclarator":return Dn(Rt,un,Mt);case"BinaryExpression":case"LogicalExpression":return Ee(Rt,un,Mt);case"AssignmentPattern":return[Mt("left")," = ",Mt("right")];case"OptionalMemberExpression":case"MemberExpression":return Oe(Rt,un,Mt);case"MetaProperty":return[Mt("meta"),".",Mt("property")];case"BindExpression":return sn.object&&nn.push(Mt("object")),nn.push(v(S([h,se(Rt,un,Mt)]))),nn;case"Identifier":return[sn.name,Ne(Rt),Ue(Rt),qe(Rt,un,Mt)];case"V8IntrinsicIdentifier":return["%",sn.name];case"SpreadElement":case"SpreadElementPattern":case"SpreadProperty":case"SpreadPropertyPattern":case"RestElement":return oe(Rt,un,Mt);case"FunctionDeclaration":case"FunctionExpression":return Nt(Rt,Mt,un,Ar);case"ArrowFunctionExpression":return Bt(Rt,un,Mt,Ar);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=Rt.getParentNode();if(J(An)&&An.callee===sn||w(An)&&An.object===sn){nn=[S([h,...nn]),h];let Bn=Rt.findAncestor(ar=>ar.type==="AwaitExpression"||ar.type==="BlockStatement");if(!Bn||Bn.type!=="AwaitExpression")return v(nn)}}return nn}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return ht(Rt,un,Mt);case"ExportAllDeclaration":return be(Rt,un,Mt);case"ImportDeclaration":return Ge(Rt,un,Mt);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return Ie(Rt,un,Mt);case"ImportAttribute":return[Mt("key"),": ",Mt("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return lt(Rt,un,Mt);case"ThrowStatement":return Tn(Rt,un,Mt);case"ReturnStatement":return In(Rt,un,Mt);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return ln(Rt,un,Mt);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return Re(Rt,un,Mt);case"ObjectProperty":case"Property":return sn.method||sn.kind==="get"||sn.kind==="set"?cn(Rt,un,Mt):bt(Rt,un,Mt);case"ObjectMethod":return cn(Rt,un,Mt);case"Decorator":return["@",Mt("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return Jt(Rt,un,Mt);case"SequenceExpression":{let An=Rt.getParentNode(0);if(An.type==="ExpressionStatement"||An.type==="ForStatement"){let Bn=[];return Rt.each((ar,an)=>{an===0?Bn.push(Mt()):Bn.push(",",S([c,Mt()]))},"expressions"),v(Bn)}return v(D([",",c],Rt.map(Mt,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[Mt("value"),Dr];case"DirectiveLiteral":return et(sn.extra.raw,un);case"UnaryExpression":return nn.push(sn.operator),/[a-z]$/.test(sn.operator)&&nn.push(" "),R(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(Rt,un,Mt);case"VariableDeclaration":{let An=Rt.map(Mt,"declarations"),Bn=Rt.getParentNode(),ar=Bn.type==="ForStatement"||Bn.type==="ForInStatement"||Bn.type==="ForOfStatement",an=sn.declarations.some(Sn=>Sn.init),_n;return An.length===1&&!R(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(Dr),v(nn)}case"WithStatement":return v(["with (",Mt("object"),")",he(sn.body,Mt("body"))]);case"IfStatement":{let An=he(sn.consequent,Mt("consequent")),Bn=v(["if (",v([S([h,Mt("test")]),h]),")",An]);if(nn.push(Bn),sn.alternate){let ar=R(sn.consequent,X.Trailing|X.Line)||De(sn),an=sn.consequent.type==="BlockStatement"&&!ar;nn.push(an?" ":d),R(sn,X.Dangling)&&nn.push(f(Rt,un,!0),ar?d:" "),nn.push("else",v(he(sn.alternate,Mt("alternate"),sn.alternate.type==="IfStatement")))}return nn}case"ForStatement":{let An=he(sn.body,Mt("body")),Bn=f(Rt,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]),")",he(sn.body,Mt("body"))]);case"ForInStatement":return v(["for (",Mt("left")," in ",Mt("right"),")",he(sn.body,Mt("body"))]);case"ForOfStatement":return v(["for",sn.await?" await":""," (",Mt("left")," of ",Mt("right"),")",he(sn.body,Mt("body"))]);case"DoWhileStatement":{let An=he(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]),")",Dr),nn}case"DoExpression":return[sn.async?"async ":"","do ",Mt("body")];case"BreakStatement":return nn.push("break"),sn.label&&nn.push(" ",Mt("label")),nn.push(Dr),nn;case"ContinueStatement":return nn.push("continue"),sn.label&&nn.push(" ",Mt("label")),nn.push(Dr),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=R(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,Rt.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:"),R(sn,X.Dangling)&&nn.push(" ",f(Rt,un,!0));let An=sn.consequent.filter(Bn=>Bn.type!=="EmptyStatement");if(An.length>0){let Bn=dt(Rt,un,Mt);nn.push(An.length===1&&An[0].type==="BlockStatement"?[" ",Bn]:S([d,Bn]))}return nn}case"DebuggerStatement":return["debugger",Dr];case"ClassDeclaration":case"ClassExpression":return Ce(Rt,un,Mt);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return Ye(Rt,un,Mt);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return ze(Rt,un,Mt);case"TemplateElement":return L(sn.value.raw);case"TemplateLiteral":return pt(Rt,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(Rt){return Rt.type&&!M(Rt)&&!ne(Rt)&&Rt.type!=="EmptyStatement"&&Rt.type!=="TemplateElement"&&Rt.type!=="Import"&&Rt.type!=="TSEmptyBodyFunctionExpression"}E.exports={preprocess:Q,print:_e,embed:_,insertPragma:C,massageAstNode:k,hasPrettierIgnore(Rt){return F(Rt)||ce(Rt)},willPrintOwnComments:x.willPrintOwnComments,canAttachComment:kt,printComment:qt,isBlockComment:M,handleComments:{avoidAstMutation:!0,ownLine:x.handleOwnLineComment,endOfLine:x.handleEndOfLineComment,remaining:x.handleRemainingComment},getCommentChildNodes:x.getCommentChildNodes}}}),a2=Fe({"src/language-js/printer-estree-json.js"(m,E){$e();var{builders:{hardline:f,indent:b,join:D}}=wn(),c=N0();function d(L,_,k){let C=L.getValue();switch(C.type){case"JsonRoot":return[k("node"),f];case"ArrayExpression":{if(C.elements.length===0)return"[]";let x=L.map(()=>L.getValue()===null?"null":k(),"elements");return["[",b([f,D([",",f],x)]),f,"]"]}case"ObjectExpression":return C.properties.length===0?"{}":["{",b([f,D([",",f],L.map(k,"properties"))]),f,"}"];case"ObjectProperty":return[k("key"),": ",k("value")];case"UnaryExpression":return[C.operator==="+"?"":C.operator,k("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return C.value?"true":"false";case"StringLiteral":return JSON.stringify(C.value);case"NumericLiteral":return h(L)?JSON.stringify(String(C.value)):JSON.stringify(C.value);case"Identifier":return h(L)?JSON.stringify(C.name):C.name;case"TemplateLiteral":return k(["quasis",0]);case"TemplateElement":return JSON.stringify(C.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(C.type))}}function h(L){return L.getName()==="key"&&L.getParentNode().type==="ObjectProperty"}var v=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function S(L,_){let{type:k}=L;if(k==="ObjectProperty"){let{key:C}=L;C.type==="Identifier"?_.key={type:"StringLiteral",value:C.name}:C.type==="NumericLiteral"&&(_.key={type:"StringLiteral",value:String(C.value)});return}if(k==="UnaryExpression"&&L.operator==="+")return _.argument;if(k==="ArrayExpression"){for(let[C,x]of L.elements.entries())x===null&&_.elements.splice(C,0,{type:"NullLiteral"});return}if(k==="TemplateLiteral")return{type:"StringLiteral",value:L.quasis[0].value.cooked}}S.ignoredProperties=v,E.exports={preprocess:c,print:d,massageAstNode:S}}}),Ha=Fe({"src/common/common-options.js"(m,E){$e();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."}}}}),o2=Fe({"src/language-js/options.js"(m,E){$e();var f=Ha(),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}}}),u2=Fe({"src/language-js/parse/parsers.js"(){$e()}}),Jf=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}}}),l2=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}}}),c2=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}}}),O0=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}}}),f2=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}}}),p2=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}}}),d2=Fe({"src/language-js/index.js"(m,E){$e();var f=ta(),b=s2(),D=a2(),c=o2(),d=u2(),h=[f(Jf(),S=>({since:"0.0.0",parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],interpreters:[...S.interpreters,"zx"],extensions:[...S.extensions.filter(L=>L!==".jsx"),".wxs"]})),f(Jf(),()=>({name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})),f(Jf(),()=>({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(l2(),()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]})),f(c2(),()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]})),f(O0(),()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"]})),f(O0(),S=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:S.extensions.filter(L=>L!==".jsonl")})),f(f2(),S=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[...S.filenames,".eslintrc",".swcrc"]})),f(p2(),()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}))],v={estree:b,"estree-json":D};E.exports={languages:h,options:c,printers:v,parsers:d}}}),h2=Fe({"src/language-css/clean.js"(m,E){$e();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,(L,_,k)=>{let C=Number(_);return Number.isNaN(C)?L:C+k.toLowerCase()})),h.type==="selector-tag"){let L=h.value.toLowerCase();["from","to"].includes(L)&&(v.value=L)}if(h.type==="css-atrule"&&h.name.toLowerCase()==="supports"&&delete v.value,h.type==="selector-unknown"&&delete v.value,h.type==="value-comma_group"){let L=h.groups.findIndex(_=>_.type==="value-number"&&_.unit==="...");L!==-1&&(v.groups[L].unit="",v.groups.splice(L+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(h.type==="value-comma_group"&&h.groups.some(L=>L.type==="value-atword"&&L.value.endsWith("[")||L.type==="value-word"&&L.value.startsWith("]")))return{type:"value-atword",value:h.groups.map(L=>L.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}c.ignoredProperties=D;function d(h){return h.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")}E.exports=c}}),Yf=Fe({"src/utils/front-matter/print.js"(m,E){$e();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}}),m2=Fe({"src/language-css/embed.js"(m,E){$e();var{builders:{hardline:f}}=wn(),b=Yf();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}}),j0=Fe({"src/utils/front-matter/parse.js"(m,E){$e();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,L=h.trim()||"yaml";if(d==="+++"&&(L="toml"),L!=="yaml"&&d!==S)return{content:D};let[_]=c;return{frontMatter:{type:"front-matter",lang:L,value:v,startDelimiter:d,endDelimiter:S,raw:_.replace(/\n$/,"")},content:_.replace(/[^\n]/g," ")+D.slice(_.length)}}E.exports=b}}),g2=Fe({"src/language-css/pragma.js"(m,E){$e();var f=w0(),b=j0();function D(d){return f.hasPragma(b(d).content)}function c(d){let{frontMatter:h,content:v}=b(d);return(h?h.raw+`
210
-
211
- `:"")+f.insertPragma(v)}E.exports={hasPragma:D,insertPragma:c}}}),y2=Fe({"src/language-css/utils/index.js"(m,E){$e();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(Re,Ce){let Ye=Array.isArray(Ce)?Ce:[Ce],ze=-1,bt;for(;bt=Re.getParentNode(++ze);)if(Ye.includes(bt.type))return ze;return-1}function D(Re,Ce){let Ye=b(Re,Ce);return Ye===-1?null:Re.getParentNode(Ye)}function c(Re){var Ce;let Ye=D(Re,"css-decl");return Ye==null||(Ce=Ye.prop)===null||Ce===void 0?void 0:Ce.toLowerCase()}var d=new Set(["initial","inherit","unset","revert"]);function h(Re){return d.has(Re.toLowerCase())}function v(Re,Ce){let Ye=D(Re,"css-atrule");return(Ye==null?void 0:Ye.name)&&Ye.name.toLowerCase().endsWith("keyframes")&&["from","to"].includes(Ce.toLowerCase())}function S(Re){return Re.includes("$")||Re.includes("@")||Re.includes("#")||Re.startsWith("%")||Re.startsWith("--")||Re.startsWith(":--")||Re.includes("(")&&Re.includes(")")?Re:Re.toLowerCase()}function L(Re,Ce){var Ye;let ze=D(Re,"value-func");return(ze==null||(Ye=ze.value)===null||Ye===void 0?void 0:Ye.toLowerCase())===Ce}function _(Re){var Ce;let Ye=D(Re,"css-rule"),ze=Ye==null||(Ce=Ye.raws)===null||Ce===void 0?void 0:Ce.selector;return ze&&(ze.startsWith(":import")||ze.startsWith(":export"))}function k(Re,Ce){let Ye=Array.isArray(Ce)?Ce:[Ce],ze=D(Re,"css-atrule");return ze&&Ye.includes(ze.name.toLowerCase())}function C(Re){let Ce=Re.getValue(),Ye=D(Re,"css-atrule");return(Ye==null?void 0:Ye.name)==="import"&&Ce.groups[0].value==="url"&&Ce.groups.length===2}function x(Re){return Re.type==="value-func"&&Re.value.toLowerCase()==="url"}function j(Re,Ce){var Ye;let ze=(Ye=Re.getParentNode())===null||Ye===void 0?void 0:Ye.nodes;return ze&&ze.indexOf(Ce)===ze.length-1}function Q(Re){let{selector:Ce}=Re;return Ce?typeof Ce=="string"&&/^@.+:.*$/.test(Ce)||Ce.value&&/^@.+:.*$/.test(Ce.value):!1}function ee(Re){return Re.type==="value-word"&&["from","through","end"].includes(Re.value)}function R(Re){return Re.type==="value-word"&&["and","or","not"].includes(Re.value)}function X(Re){return Re.type==="value-word"&&Re.value==="in"}function G(Re){return Re.type==="value-operator"&&Re.value==="*"}function ne(Re){return Re.type==="value-operator"&&Re.value==="/"}function Z(Re){return Re.type==="value-operator"&&Re.value==="+"}function De(Re){return Re.type==="value-operator"&&Re.value==="-"}function F(Re){return Re.type==="value-operator"&&Re.value==="%"}function J(Re){return G(Re)||ne(Re)||Z(Re)||De(Re)||F(Re)}function w(Re){return Re.type==="value-word"&&["==","!="].includes(Re.value)}function $(Re){return Re.type==="value-word"&&["<",">","<=",">="].includes(Re.value)}function y(Re){return Re.type==="css-atrule"&&["if","else","for","each","while"].includes(Re.name)}function T(Re){var Ce;return((Ce=Re.raws)===null||Ce===void 0?void 0:Ce.params)&&/^\(\s*\)$/.test(Re.raws.params)}function M(Re){return Re.name.startsWith("prettier-placeholder")}function U(Re){return Re.prop.startsWith("@prettier-placeholder")}function q(Re,Ce){return Re.value==="$$"&&Re.type==="value-func"&&(Ce==null?void 0:Ce.type)==="value-word"&&!Ce.raws.before}function z(Re){var Ce,Ye;return((Ce=Re.value)===null||Ce===void 0?void 0:Ce.type)==="value-root"&&((Ye=Re.value.group)===null||Ye===void 0?void 0:Ye.type)==="value-value"&&Re.prop.toLowerCase()==="composes"}function ie(Re){var Ce,Ye,ze;return((Ce=Re.value)===null||Ce===void 0||(Ye=Ce.group)===null||Ye===void 0||(ze=Ye.group)===null||ze===void 0?void 0:ze.type)==="value-paren_group"&&Re.value.group.group.open!==null&&Re.value.group.group.close!==null}function ce(Re){var Ce;return((Ce=Re.raws)===null||Ce===void 0?void 0:Ce.before)===""}function ge(Re){var Ce,Ye;return Re.type==="value-comma_group"&&((Ce=Re.groups)===null||Ce===void 0||(Ye=Ce[1])===null||Ye===void 0?void 0:Ye.type)==="value-colon"}function fe(Re){var Ce;return Re.type==="value-paren_group"&&((Ce=Re.groups)===null||Ce===void 0?void 0:Ce[0])&&ge(Re.groups[0])}function Ne(Re){var Ce;let Ye=Re.getValue();if(Ye.groups.length===0)return!1;let ze=Re.getParentNode(1);if(!fe(Ye)&&!(ze&&fe(ze)))return!1;let bt=D(Re,"css-decl");return!!(bt!=null&&(Ce=bt.prop)!==null&&Ce!==void 0&&Ce.startsWith("$")||fe(ze)||ze.type==="value-func")}function se(Re){return Re.type==="value-comment"&&Re.inline}function qe(Re){return Re.type==="value-word"&&Re.value==="#"}function he(Re){return Re.type==="value-word"&&Re.value==="{"}function oe(Re){return Re.type==="value-word"&&Re.value==="}"}function Ue(Re){return["value-word","value-atword"].includes(Re.type)}function et(Re){return(Re==null?void 0:Re.type)==="value-colon"}function Ge(Re,Ce){if(!ge(Ce))return!1;let{groups:Ye}=Ce,ze=Ye.indexOf(Re);return ze===-1?!1:et(Ye[ze+1])}function ht(Re){return Re.value&&["not","and","or"].includes(Re.value.toLowerCase())}function be(Re){return Re.type!=="value-func"?!1:f.has(Re.value.toLowerCase())}function Ie(Re){return/\/\//.test(Re.split(/[\n\r]/).pop())}function ft(Re){return(Re==null?void 0:Re.type)==="value-atword"&&Re.value.startsWith("prettier-placeholder-")}function pt(Re,Ce){var Ye,ze;if(((Ye=Re.open)===null||Ye===void 0?void 0:Ye.value)!=="("||((ze=Re.close)===null||ze===void 0?void 0:ze.value)!==")"||Re.groups.some(bt=>bt.type!=="value-comma_group"))return!1;if(Ce.type==="value-comma_group"){let bt=Ce.groups.indexOf(Re)-1,Nt=Ce.groups[bt];if((Nt==null?void 0:Nt.type)==="value-word"&&Nt.value==="with")return!0}return!1}function Jt(Re){var Ce,Ye;return Re.type==="value-paren_group"&&((Ce=Re.open)===null||Ce===void 0?void 0:Ce.value)==="("&&((Ye=Re.close)===null||Ye===void 0?void 0:Ye.value)===")"}E.exports={getAncestorCounter:b,getAncestorNode:D,getPropOfDeclNode:c,maybeToLowerCase:S,insideValueFunctionNode:L,insideICSSRuleNode:_,insideAtRuleNode:k,insideURLFunctionInImportAtRuleNode:C,isKeyframeAtRuleKeywords:v,isWideKeywords:h,isLastNode:j,isSCSSControlDirectiveNode:y,isDetachedRulesetDeclarationNode:Q,isRelationalOperatorNode:$,isEqualityOperatorNode:w,isMultiplicationNode:G,isDivisionNode:ne,isAdditionNode:Z,isSubtractionNode:De,isModuloNode:F,isMathOperatorNode:J,isEachKeywordNode:X,isForKeywordNode:ee,isURLFunctionNode:x,isIfElseKeywordNode:R,hasComposesNode:z,hasParensAroundNode:ie,hasEmptyRawBefore:ce,isDetachedRulesetCallNode:T,isTemplatePlaceholderNode:M,isTemplatePropNode:U,isPostcssSimpleVarNode:q,isKeyValuePairNode:ge,isKeyValuePairInParenGroupNode:fe,isKeyInValuePairNode:Ge,isSCSSMapItemNode:Ne,isInlineValueCommentNode:se,isHashNode:qe,isLeftCurlyBraceNode:he,isRightCurlyBraceNode:oe,isWordNode:Ue,isColonNode:et,isMediaAndSupportsKeywords:ht,isColorAdjusterFuncNode:be,lastLineHasInlineComment:Ie,isAtWordPlaceholderNode:ft,isConfigurationNode:pt,isParenGroupNode:Jt}}}),D2=Fe({"src/utils/line-column-to-index.js"(m,E){$e(),E.exports=function(f,b){let D=0;for(let c=0;c<f.line-1;++c)D=b.indexOf(`
212
- `,D)+1;return D+f.column}}}),b2=Fe({"src/language-css/loc.js"(m,E){$e();var{skipEverythingButNewLine:f}=_t(),b=$r(),D=D2();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 L(C){let x="initial",j="initial",Q,ee=!1,R=[];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===`
213
- `||G==="\r")return C;continue;case"double-quotes":if(G==='"'&&C[X-1]!=="\\"&&(x=j,j="initial"),G===`
214
- `||G==="\r")return C;continue;case"url":if(G===")"&&(x="initial"),G===`
215
- `||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===`
216
- `||G==="\r")&&(ee&&R.push([Q,X]),x="initial",ee=!1);continue}}for(let[X,G]of R)C=C.slice(0,X)+C.slice(X,G).replace(/["'*]/g," ")+C.slice(G);return C}function _(C){return C.source.startOffset}function k(C){return C.source.endOffset}E.exports={locStart:_,locEnd:k,calculateLoc:h,replaceQuotesInInlineComments:L}}}),v2=Fe({"src/language-css/utils/is-less-parser.js"(m,E){$e();function f(b){return b.parser==="css"||b.parser==="less"}E.exports=f}}),E2=Fe({"src/language-css/utils/is-scss.js"(m,E){$e();function f(b,D){return b==="less"||b==="scss"?b==="scss":/(?:\w\s*:\s*[^:}]+|#){|@import[^\n]+(?:url|,)/.test(D)}E.exports=f}}),A2=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"}}}),C2=Fe({"src/language-css/utils/print-unit.js"(m,E){$e();var f=A2();function b(D){let c=D.toLowerCase();return Object.prototype.hasOwnProperty.call(f,c)?f[c]:D}E.exports=b}}),S2=Fe({"src/language-css/printer-postcss.js"(m,E){$e();var f=$r(),{printNumber:b,printString:D,hasNewline:c,isFrontMatterNode:d,isNextLineEmpty:h,isNonEmptyArray:v}=ye(),{builders:{join:S,line:L,hardline:_,softline:k,group:C,fill:x,indent:j,dedent:Q,ifBreak:ee,breakParent:R},utils:{removeLines:X,getDocParts:G}}=wn(),ne=h2(),Z=m2(),{insertPragma:De}=g2(),{getAncestorNode:F,getPropOfDeclNode:J,maybeToLowerCase:w,insideValueFunctionNode:$,insideICSSRuleNode:y,insideAtRuleNode:T,insideURLFunctionInImportAtRuleNode:M,isKeyframeAtRuleKeywords:U,isWideKeywords:q,isLastNode:z,isSCSSControlDirectiveNode:ie,isDetachedRulesetDeclarationNode:ce,isRelationalOperatorNode:ge,isEqualityOperatorNode:fe,isMultiplicationNode:Ne,isDivisionNode:se,isAdditionNode:qe,isSubtractionNode:he,isMathOperatorNode:oe,isEachKeywordNode:Ue,isForKeywordNode:et,isURLFunctionNode:Ge,isIfElseKeywordNode:ht,hasComposesNode:be,hasParensAroundNode:Ie,hasEmptyRawBefore:ft,isKeyValuePairNode:pt,isKeyInValuePairNode:Jt,isDetachedRulesetCallNode:Re,isTemplatePlaceholderNode:Ce,isTemplatePropNode:Ye,isPostcssSimpleVarNode:ze,isSCSSMapItemNode:bt,isInlineValueCommentNode:Nt,isHashNode:Bt,isLeftCurlyBraceNode:cn,isRightCurlyBraceNode:In,isWordNode:Tn,isColonNode:ln,isMediaAndSupportsKeywords:Dn,isColorAdjusterFuncNode:at,lastLineHasInlineComment:Ee,isAtWordPlaceholderNode:dt,isConfigurationNode:Oe,isParenGroupNode:lt}=y2(),{locStart:Zt,locEnd:qt}=b2(),gt=v2(),V=E2(),_e=C2();function nt(an){return an.trailingComma==="es5"||an.trailingComma==="all"}function kt(an,_n,Sn){let ut=an.getValue();if(!ut)return"";if(typeof ut=="string")return ut;switch(ut.type){case"front-matter":return[ut.raw,_];case"css-root":{let Un=Rt(an,_n,Sn),Gn=ut.raws.after.trim();return Gn.startsWith(";")&&(Gn=Gn.slice(1).trim()),[Un,Gn?` ${Gn}`:"",G(Un).length>0?_:""]}case"css-comment":{let Un=ut.inline||ut.raws.inline,Gn=_n.originalText.slice(Zt(ut),qt(ut));return Un?Gn.trimEnd():Gn}case"css-rule":return[Sn("selector"),ut.important?" !important":"",ut.nodes?[ut.selector&&ut.selector.type==="selector-unknown"&&Ee(ut.selector.value)?L:" ","{",ut.nodes.length>0?j([_,Rt(an,_n,Sn)]):"",_,"}",ce(ut)?";":""]:";"];case"css-decl":{let Un=an.getParentNode(),{between:Gn}=ut.raws,fr=Gn.trim(),xi=fr===":",ae=be(ut)?X(Sn("value")):Sn("value");return!xi&&Ee(fr)&&(ae=j([_,Q(ae)])),[ut.raws.before.replace(/[\s;]/g,""),Un.type==="css-atrule"&&Un.variable||y(an)?ut.prop:w(ut.prop),fr.startsWith("//")?" ":"",fr,ut.extend?"":" ",gt(_n)&&ut.extend&&ut.selector?["extend(",Sn("selector"),")"]:"",ae,ut.raws.important?ut.raws.important.replace(/\s*!\s*important/i," !important"):ut.important?" !important":"",ut.raws.scssDefault?ut.raws.scssDefault.replace(/\s*!default/i," !default"):ut.scssDefault?" !default":"",ut.raws.scssGlobal?ut.raws.scssGlobal.replace(/\s*!global/i," !global"):ut.scssGlobal?" !global":"",ut.nodes?[" {",j([k,Rt(an,_n,Sn)]),k,"}"]:Ye(ut)&&!Un.raws.semicolon&&_n.originalText[qt(ut)-1]!==";"?"":_n.__isHTMLStyleAttribute&&z(an,ut)?ee(";"):";"]}case"css-atrule":{let Un=an.getParentNode(),Gn=Ce(ut)&&!Un.raws.semicolon&&_n.originalText[qt(ut)-1]!==";";if(gt(_n)){if(ut.mixin)return[Sn("selector"),ut.important?" !important":"",Gn?"":";"];if(ut.function)return[ut.name,Sn("params"),Gn?"":";"];if(ut.variable)return["@",ut.name,": ",ut.value?Sn("value"):"",ut.raws.between.trim()?ut.raws.between.trim()+" ":"",ut.nodes?["{",j([ut.nodes.length>0?k:"",Rt(an,_n,Sn)]),k,"}"]:"",Gn?"":";"]}return["@",Re(ut)||ut.name.endsWith(":")?ut.name:w(ut.name),ut.params?[Re(ut)?"":Ce(ut)?ut.raws.afterName===""?"":ut.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(ut.raws.afterName)?[_,_]:/^\s*\n/.test(ut.raws.afterName)?_:" ":" ",Sn("params")]:"",ut.selector?j([" ",Sn("selector")]):"",ut.value?C([" ",Sn("value"),ie(ut)?Ie(ut)?" ":L:""]):ut.name==="else"?" ":"",ut.nodes?[ie(ut)?"":ut.selector&&!ut.selector.nodes&&typeof ut.selector.value=="string"&&Ee(ut.selector.value)||!ut.selector&&typeof ut.params=="string"&&Ee(ut.params)?L:" ","{",j([ut.nodes.length>0?k:"",Rt(an,_n,Sn)]),k,"}"]:Gn?"":";"]}case"media-query-list":{let Un=[];return an.each(Gn=>{let fr=Gn.getValue();fr.type==="media-query"&&fr.value===""||Un.push(Sn())},"nodes"),C(j(S(L,Un)))}case"media-query":return[S(" ",an.map(Sn,"nodes")),z(an,ut)?"":","];case"media-type":return Bn(nn(ut.value,_n));case"media-feature-expression":return ut.nodes?["(",...an.map(Sn,"nodes"),")"]:ut.value;case"media-feature":return w(nn(ut.value.replace(/ +/g," "),_n));case"media-colon":return[ut.value," "];case"media-value":return Bn(nn(ut.value,_n));case"media-keyword":return nn(ut.value,_n);case"media-url":return nn(ut.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/g,")"),_n);case"media-unknown":return ut.value;case"selector-root":return C([T(an,"custom-selector")?[F(an,"css-atrule").customSelector,L]:"",S([",",T(an,["extend","custom-selector","nest"])?L:_],an.map(Sn,"nodes"))]);case"selector-selector":return C(j(an.map(Sn,"nodes")));case"selector-comment":return ut.value;case"selector-string":return nn(ut.value,_n);case"selector-tag":{let Un=an.getParentNode(),Gn=Un&&Un.nodes.indexOf(ut),fr=Gn&&Un.nodes[Gn-1];return[ut.namespace?[ut.namespace===!0?"":ut.namespace.trim(),"|"]:"",fr.type==="selector-nesting"?ut.value:Bn(U(an,ut.value)?ut.value.toLowerCase():ut.value)]}case"selector-id":return["#",ut.value];case"selector-class":return[".",Bn(nn(ut.value,_n))];case"selector-attribute":{var Si;return["[",ut.namespace?[ut.namespace===!0?"":ut.namespace.trim(),"|"]:"",ut.attribute.trim(),(Si=ut.operator)!==null&&Si!==void 0?Si:"",ut.value?An(nn(ut.value.trim(),_n),_n):"",ut.insensitive?" i":"","]"]}case"selector-combinator":{if(ut.value==="+"||ut.value===">"||ut.value==="~"||ut.value===">>>"){let fr=an.getParentNode();return[fr.type==="selector-selector"&&fr.nodes[0]===ut?"":L,ut.value,z(an,ut)?"":" "]}let Un=ut.value.trim().startsWith("(")?L:"",Gn=Bn(nn(ut.value.trim(),_n))||L;return[Un,Gn]}case"selector-universal":return[ut.namespace?[ut.namespace===!0?"":ut.namespace.trim(),"|"]:"",ut.value];case"selector-pseudo":return[w(ut.value),v(ut.nodes)?C(["(",j([k,S([",",L],an.map(Sn,"nodes"))]),k,")"]):""];case"selector-nesting":return ut.value;case"selector-unknown":{let Un=F(an,"css-rule");if(Un&&Un.isSCSSNesterProperty)return Bn(nn(w(ut.value),_n));let Gn=an.getParentNode();if(Gn.raws&&Gn.raws.selector){let xi=Zt(Gn),ae=xi+Gn.raws.selector.length;return _n.originalText.slice(xi,ae).trim()}let fr=an.getParentNode(1);if(Gn.type==="value-paren_group"&&fr&&fr.type==="value-func"&&fr.value==="selector"){let xi=qt(Gn.open)+1,ae=Zt(Gn.close),vt=_n.originalText.slice(xi,ae).trim();return Ee(vt)?[R,vt]:vt}return ut.value}case"value-value":case"value-root":return Sn("group");case"value-comment":return _n.originalText.slice(Zt(ut),qt(ut));case"value-comma_group":{let Un=an.getParentNode(),Gn=an.getParentNode(1),fr=J(an),xi=fr&&Un.type==="value-value"&&(fr==="grid"||fr.startsWith("grid-template")),ae=F(an,"css-atrule"),vt=ae&&ie(ae),gn=ut.groups.some(wi=>Nt(wi)),Hn=an.map(Sn,"groups"),zn=[],bi=$(an,"url"),xr=!1,ei=!1;for(let wi=0;wi<ut.groups.length;++wi){var Qr;zn.push(Hn[wi]);let Ir=ut.groups[wi-1],Fn=ut.groups[wi],jn=ut.groups[wi+1],hl=ut.groups[wi+2];if(bi){(jn&&qe(jn)||qe(Fn))&&zn.push(" ");continue}if(T(an,"forward")&&Fn.type==="value-word"&&Fn.value&&Ir!==void 0&&Ir.type==="value-word"&&Ir.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 Zf=Fn.value.lastIndexOf("#{"),ep=Fn.value.lastIndexOf("}");Zf!==-1&&ep!==-1?xr=Zf>ep:Zf!==-1?xr=!0:ep!==-1&&(xr=!1)}if(xr||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"||Ir&&Ir.value&&Ir.value.indexOf("\\")===Ir.value.length-1&&Fn.type==="value-operator"&&Fn.value==="/"||Fn.value==="\\"||ze(Fn,jn)||Bt(Fn)||cn(Fn)||In(jn)||cn(jn)&&ft(jn)||In(Fn)&&ft(jn)||Fn.value==="--"&&Bt(jn))continue;let Kf=oe(Fn),G0=oe(jn);if((Kf&&Bt(jn)||G0&&In(Fn))&&ft(jn)||!Ir&&se(Fn)||$(an,"calc")&&(qe(Fn)||qe(jn)||he(Fn)||he(jn))&&ft(jn))continue;let $E=(qe(Fn)||he(Fn))&&wi===0&&(jn.type==="value-number"||jn.isHex)&&Gn&&at(Gn)&&!ft(jn),J0=hl&&hl.type==="value-func"||hl&&Tn(hl)||Fn.type==="value-func"||Tn(Fn),Y0=jn.type==="value-func"||Tn(jn)||Ir&&Ir.type==="value-func"||Ir&&Tn(Ir);if(!(!(Ne(jn)||Ne(Fn))&&!$(an,"calc")&&!$E&&(se(jn)&&!J0||se(Fn)&&!Y0||qe(jn)&&!J0||qe(Fn)&&!Y0||he(jn)||he(Fn))&&(ft(jn)||Kf&&(!Ir||Ir&&oe(Ir))))&&!((_n.parser==="scss"||_n.parser==="less")&&Kf&&Fn.value==="-"&&lt(jn)&&qt(Fn)===Zt(jn.open)&&jn.open.value==="(")){if(Nt(Fn)){if(Un.type==="value-paren_group"){zn.push(Q(_));continue}zn.push(_);continue}if(vt&&(fe(jn)||ge(jn)||ht(jn)||Ue(Fn)||et(Fn))){zn.push(" ");continue}if(ae&&ae.name.toLowerCase()==="namespace"){zn.push(" ");continue}if(xi){Fn.source&&jn.source&&Fn.source.start.line!==jn.source.start.line?(zn.push(_),ei=!0):zn.push(" ");continue}if(G0){zn.push(" ");continue}if(!(jn&&jn.value==="...")&&!(dt(Fn)&&dt(jn)&&qt(Fn)===Zt(jn))){if(dt(Fn)&&lt(jn)&&qt(Fn)===Zt(jn.open)){zn.push(k);continue}if(Fn.value==="with"&&lt(jn)){zn.push(" ");continue}(Qr=Fn.value)!==null&&Qr!==void 0&&Qr.endsWith("#")&&jn.value==="{"&&lt(jn.group)||zn.push(L)}}}return gn&&zn.push(R),ei&&zn.unshift(_),vt?C(j(zn)):M(an)?C(x(zn)):C(j(x(zn)))}case"value-paren_group":{let Un=an.getParentNode();if(Un&&Ge(Un)&&(ut.groups.length===1||ut.groups.length>0&&ut.groups[0].type==="value-comma_group"&&ut.groups[0].groups.length>0&&ut.groups[0].groups[0].type==="value-word"&&ut.groups[0].groups[0].value.startsWith("data:")))return[ut.open?Sn("open"):"",S(",",an.map(Sn,"groups")),ut.close?Sn("close"):""];if(!ut.open){let bi=an.map(Sn,"groups"),xr=[];for(let ei=0;ei<bi.length;ei++)ei!==0&&xr.push([",",L]),xr.push(bi[ei]);return C(j(x(xr)))}let Gn=bt(an),fr=f(ut.groups),xi=fr&&fr.type==="value-comment",ae=Jt(ut,Un),vt=Oe(ut,Un),gn=vt||Gn&&!ae,Hn=vt||ae,zn=C([ut.open?Sn("open"):"",j([k,S([L],an.map((bi,xr)=>{let ei=bi.getValue(),wi=xr===ut.groups.length-1,Ir=[Sn(),wi?"":","];if(pt(ei)&&ei.type==="value-comma_group"&&ei.groups&&ei.groups[0].type!=="value-paren_group"&&ei.groups[2]&&ei.groups[2].type==="value-paren_group"){let Fn=G(Ir[0].contents.contents);Fn[1]=C(Fn[1]),Ir=[C(Q(Ir))]}if(!wi&&ei.type==="value-comma_group"&&v(ei.groups)){let Fn=f(ei.groups);!Fn.source&&Fn.close&&(Fn=Fn.close),Fn.source&&h(_n.originalText,Fn,qt)&&Ir.push(_)}return Ir},"groups"))]),ee(!xi&&V(_n.parser,_n.originalText)&&Gn&&nt(_n)?",":""),k,ut.close?Sn("close"):""],{shouldBreak:gn});return Hn?Q(zn):zn}case"value-func":return[ut.value,T(an,"supports")&&Dn(ut)?" ":"",Sn("group")];case"value-paren":return ut.value;case"value-number":return[ar(ut.value),_e(ut.unit)];case"value-operator":return ut.value;case"value-word":return ut.isColor&&ut.isHex||q(ut.value)?ut.value.toLowerCase():ut.value;case"value-colon":{let Un=an.getParentNode(),Gn=Un&&Un.groups.indexOf(ut),fr=Gn&&Un.groups[Gn-1];return[ut.value,fr&&typeof fr.value=="string"&&f(fr.value)==="\\"||$(an,"url")?"":L]}case"value-comma":return[ut.value," "];case"value-string":return D(ut.raws.quote+ut.value+ut.raws.quote,_n);case"value-atword":return["@",ut.value];case"value-unicode-range":return ut.value;case"value-unknown":return ut.value;default:throw new Error(`Unknown postcss type ${JSON.stringify(ut.type)}`)}}function Rt(an,_n,Sn){let ut=[];return an.each((Si,Qr,Un)=>{let Gn=Un[Qr-1];if(Gn&&Gn.type==="css-comment"&&Gn.text.trim()==="prettier-ignore"){let fr=Si.getValue();ut.push(_n.originalText.slice(Zt(fr),qt(fr)))}else ut.push(Sn());Qr!==Un.length-1&&(Un[Qr+1].type==="css-comment"&&!c(_n.originalText,Zt(Un[Qr+1]),{backwards:!0})&&!d(Un[Qr])||Un[Qr+1].type==="css-atrule"&&Un[Qr+1].name==="else"&&Un[Qr].type!=="css-comment"?ut.push(" "):(ut.push(_n.__isHTMLStyleAttribute?L:_),h(_n.originalText,Si.getValue(),qt)&&!d(Un[Qr])&&ut.push(_)))},"nodes"),ut}var un=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,Mt=/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g,Ar=/[A-Za-z]+/g,sn=/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g,Dr=new RegExp(un.source+`|(${sn.source})?(${Mt.source})(${Ar.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(Dr,(_n,Sn,ut,Si,Qr)=>!ut&&Si?ar(Si)+w(Qr||""):_n)}function ar(an){return b(an).replace(/\.0(?=$|e)/,"")}E.exports={print:kt,embed:Z,insertPragma:De,massageAstNode:ne}}}),x2=Fe({"src/language-css/options.js"(m,E){$e();var f=Ha();E.exports={singleQuote:f.singleQuote}}}),w2=Fe({"src/language-css/parsers.js"(){$e()}}),F2=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}}}),N2=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}}}),_2=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}}}),T2=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}}}),k2=Fe({"src/language-css/index.js"(m,E){$e();var f=ta(),b=S2(),D=x2(),c=w2(),d=[f(F2(),v=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[...v.extensions,".wxss"]})),f(N2(),()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]})),f(_2(),()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]})),f(T2(),()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}))],h={postcss:b};E.exports={languages:d,options:D,printers:h,parsers:c}}}),L2=Fe({"src/language-handlebars/loc.js"(m,E){$e();function f(D){return D.loc.start.offset}function b(D){return D.loc.end.offset}E.exports={locStart:f,locEnd:b}}}),P2=Fe({"src/language-handlebars/clean.js"(m,E){$e();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}}),B2=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"]}}),M2=Fe({"src/language-handlebars/utils.js"(m,E){$e();var f=$r(),b=B2();function D(G){let ne=G.getValue(),Z=G.getParentNode(0);return!!(k(G,["ElementNode"])&&f(Z.children)===ne||k(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=>L(ne))}function L(G){return _(G,["TextNode"])&&!/\S/.test(G.chars)}function _(G,ne){return G&&ne.includes(G.type)}function k(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(),$=(Z=G.getParentNode(0))!==null&&Z!==void 0?Z:{},y=(De=(F=(J=$.children)!==null&&J!==void 0?J:$.body)!==null&&F!==void 0?F:$.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 R(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 R(ne)||R(Z)}E.exports={getNextNode:ee,getPreviousNode:Q,hasPrettierIgnore:X,isLastNodeOfSiblings:D,isNextNodeOfSomeType:x,isNodeOfSomeType:_,isParentOfSomeType:k,isPreviousNodeOfSomeType:C,isVoid:S,isWhitespaceNode:L}}}),I2=Fe({"src/language-handlebars/printer-glimmer.js"(m,E){$e();var{builders:{dedent:f,fill:b,group:D,hardline:c,ifBreak:d,indent:h,join:v,line:S,softline:L},utils:{getDocParts:_,replaceTextEndOfLine:k}}=wn(),{getPreferredQuote:C,isNonEmptyArray:x}=ye(),{locStart:j,locEnd:Q}=L2(),ee=P2(),{getNextNode:R,getPreviousNode:X,hasPrettierIgnore:G,isLastNodeOfSiblings:ne,isNextNodeOfSomeType:Z,isNodeOfSomeType:De,isParentOfSomeType:F,isPreviousNodeOfSomeType:J,isVoid:w,isWhitespaceNode:$}=M2(),y=2;function T(Ee,dt,Oe){let lt=Ee.getValue();if(!lt)return"";if(G(Ee))return dt.originalText.slice(j(lt),Q(lt));let Zt=dt.singleQuote?"'":'"';switch(lt.type){case"Block":case"Program":case"Template":return D(Ee.map(Oe,"body"));case"ElementNode":{let qt=D(U(Ee,Oe)),gt=dt.htmlWhitespaceSensitivity==="ignore"&&Z(Ee,["ElementNode"])?L:"";if(w(lt))return[qt,gt];let V=["</",lt.tag,">"];return lt.children.length===0?[qt,h(V),gt]:dt.htmlWhitespaceSensitivity==="ignore"?[qt,h(q(Ee,dt,Oe)),c,h(V),gt]:[qt,h(D(q(Ee,dt,Oe))),h(V),gt]}case"BlockStatement":{let qt=Ee.getParentNode(1);return qt&&qt.inverse&&qt.inverse.body.length===1&&qt.inverse.body[0]===lt&&qt.inverse.body[0].path.parts[0]===qt.path.parts[0]?[et(Ee,Oe,qt.inverse.body[0].path.parts[0]),ft(Ee,Oe,dt),pt(Ee,Oe,dt)]:[oe(Ee,Oe),D([ft(Ee,Oe,dt),pt(Ee,Oe,dt),Ge(Ee,Oe,dt)])]}case"ElementModifierStatement":return D(["{{",Tn(Ee,Oe),"}}"]);case"MustacheStatement":return D([ie(lt),Tn(Ee,Oe),ce(lt)]);case"SubExpression":return D(["(",In(Ee,Oe),L,")"]);case"AttrNode":{let qt=lt.value.type==="TextNode";if(qt&&lt.value.chars===""&&j(lt.value)===Q(lt.value))return lt.name;let gt=qt?C(lt.value.chars,Zt).quote:lt.value.type==="ConcatStatement"?C(lt.value.parts.filter(_e=>_e.type==="TextNode").map(_e=>_e.chars).join(""),Zt).quote:"",V=Oe("value");return[lt.name,"=",gt,lt.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[lt.key,"=",Oe("value")];case"TextNode":{let qt=lt.chars.replace(/{{/g,"\\{{"),gt=Ce(Ee);if(gt){if(gt==="class"){let sn=qt.trim().split(/\s+/).join(" "),Dr=!1,nn=!1;return F(Ee,["ConcatStatement"])&&(J(Ee,["MustacheStatement"])&&/^\s/.test(qt)&&(Dr=!0),Z(Ee,["MustacheStatement"])&&/\s$/.test(qt)&&sn!==""&&(nn=!0)),[Dr?S:"",sn,nn?S:""]}return k(qt)}let V=/^[\t\n\f\r ]*$/.test(qt),_e=!X(Ee),nt=!R(Ee);if(dt.htmlWhitespaceSensitivity!=="ignore"){let sn=/^[\t\n\f\r ]*/,Dr=/[\t\n\f\r ]*$/,nn=nt&&F(Ee,["Template"]),An=_e&&F(Ee,["Template"]);if(V){if(An||nn)return"";let Sn=[S],ut=Ye(qt);return ut&&(Sn=Nt(ut)),ne(Ee)&&(Sn=Sn.map(Si=>f(Si))),Sn}let[Bn]=qt.match(sn),[ar]=qt.match(Dr),an=[];if(Bn){an=[S];let Sn=Ye(Bn);Sn&&(an=Nt(Sn)),qt=qt.replace(sn,"")}let _n=[];if(ar){if(!nn){_n=[S];let Sn=Ye(ar);Sn&&(_n=Nt(Sn)),ne(Ee)&&(_n=_n.map(ut=>f(ut)))}qt=qt.replace(Dr,"")}return[...an,b(Jt(qt)),..._n]}let kt=Ye(qt),Rt=ze(qt),un=bt(qt);if((_e||nt)&&V&&F(Ee,["Block","ElementNode","Template"]))return"";V&&kt?(Rt=Math.min(kt,y),un=0):(Z(Ee,["BlockStatement","ElementNode"])&&(un=Math.max(un,1)),J(Ee,["BlockStatement","ElementNode"])&&(Rt=Math.max(Rt,1)));let Mt="",Ar="";return un===0&&Z(Ee,["MustacheStatement"])&&(Ar=" "),Rt===0&&J(Ee,["MustacheStatement"])&&(Mt=" "),_e&&(Rt=0,Mt=""),nt&&(un=0,Ar=""),qt=qt.replace(/^[\t\n\f\r ]+/g,Mt).replace(/[\t\n\f\r ]+$/,Ar),[...Nt(Rt),b(Jt(qt)),...Nt(un)]}case"MustacheCommentStatement":{let qt=j(lt),gt=Q(lt),V=dt.originalText.charAt(qt+2)==="~",_e=dt.originalText.charAt(gt-3)==="~",nt=lt.value.includes("}}")?"--":"";return["{{",V?"~":"","!",nt,lt.value,nt,_e?"~":"","}}"]}case"PathExpression":return lt.original;case"BooleanLiteral":return String(lt.value);case"CommentStatement":return["<!--",lt.value,"-->"];case"StringLiteral":{if(cn(Ee)){let qt=dt.singleQuote?'"':"'";return Bt(lt.value,qt)}return Bt(lt.value,Zt)}case"NumberLiteral":return String(lt.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(lt.type))}}function M(Ee,dt){return j(Ee)-j(dt)}function U(Ee,dt){let Oe=Ee.getValue(),lt=["attributes","modifiers","comments"].filter(qt=>x(Oe[qt])),Zt=lt.flatMap(qt=>Oe[qt]).sort(M);for(let qt of lt)Ee.each(gt=>{let V=Zt.indexOf(gt.getValue());Zt.splice(V,1,[S,dt()])},qt);return x(Oe.blockParams)&&Zt.push(S,at(Oe)),["<",Oe.tag,h(Zt),z(Oe)]}function q(Ee,dt,Oe){let lt=Ee.getValue().children.every(Zt=>$(Zt));return dt.htmlWhitespaceSensitivity==="ignore"&&lt?"":Ee.map((Zt,qt)=>{let gt=Oe();return qt===0&&dt.htmlWhitespaceSensitivity==="ignore"?[L,gt]:gt},"children")}function z(Ee){return w(Ee)?d([L,"/>"],[" />",L]):d([L,">"],">")}function ie(Ee){let dt=Ee.escaped===!1?"{{{":"{{",Oe=Ee.strip&&Ee.strip.open?"~":"";return[dt,Oe]}function ce(Ee){let dt=Ee.escaped===!1?"}}}":"}}";return[Ee.strip&&Ee.strip.close?"~":"",dt]}function ge(Ee){let dt=ie(Ee),Oe=Ee.openStrip.open?"~":"";return[dt,Oe,"#"]}function fe(Ee){let dt=ce(Ee);return[Ee.openStrip.close?"~":"",dt]}function 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 qe(Ee){let dt=ie(Ee),Oe=Ee.inverseStrip.open?"~":"";return[dt,Oe]}function he(Ee){let dt=ce(Ee);return[Ee.inverseStrip.close?"~":"",dt]}function oe(Ee,dt){let Oe=Ee.getValue(),lt=[],Zt=Dn(Ee,dt);return Zt&&lt.push(D(Zt)),x(Oe.program.blockParams)&&lt.push(at(Oe.program)),D([ge(Oe),ln(Ee,dt),lt.length>0?h([S,v(S,lt)]):"",L,fe(Oe)])}function Ue(Ee,dt){return[dt.htmlWhitespaceSensitivity==="ignore"?c:"",qe(Ee),"else",he(Ee)]}function et(Ee,dt,Oe){let lt=Ee.getValue(),Zt=Ee.getParentNode(1);return D([qe(Zt),["else"," ",Oe],h([S,D(Dn(Ee,dt)),...x(lt.program.blockParams)?[S,at(lt.program)]:[]]),L,he(Zt)])}function Ge(Ee,dt,Oe){let lt=Ee.getValue();return Oe.htmlWhitespaceSensitivity==="ignore"?[ht(lt)?L:c,Ne(lt),dt("path"),se(lt)]:[Ne(lt),dt("path"),se(lt)]}function ht(Ee){return De(Ee,["BlockStatement"])&&Ee.program.body.every(dt=>$(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 lt=Ee.getValue();if(ht(lt))return"";let Zt=dt("program");return Oe.htmlWhitespaceSensitivity==="ignore"?h([c,Zt]):h(Zt)}function pt(Ee,dt,Oe){let lt=Ee.getValue(),Zt=dt("inverse"),qt=Oe.htmlWhitespaceSensitivity==="ignore"?[c,Zt]:Zt;return be(lt)?qt:Ie(lt)?[Ue(lt,Oe),h(qt)]:""}function Jt(Ee){return _(v(S,Re(Ee)))}function Re(Ee){return Ee.split(/[\t\n\f\r ]+/)}function Ce(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(`
217
- `).length-1}function ze(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:lt}=C(Ee,dt);return[Oe,Ee.replace(lt,`\\${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),lt=Dn(Ee,dt);return lt?h([Oe,S,D(lt)]):Oe}function Tn(Ee,dt){let Oe=ln(Ee,dt),lt=Dn(Ee,dt);return lt?[h([Oe,S,lt]),L]:Oe}function ln(Ee,dt){return dt("path")}function Dn(Ee,dt){let Oe=Ee.getValue(),lt=[];if(Oe.params.length>0){let Zt=Ee.map(dt,"params");lt.push(...Zt)}if(Oe.hash&&Oe.hash.pairs.length>0){let Zt=dt("hash");lt.push(Zt)}return lt.length===0?"":v(S,lt)}function at(Ee){return["as |",Ee.blockParams.join(" "),"|"]}E.exports={print:T,massageAstNode:ee}}}),O2=Fe({"src/language-handlebars/parsers.js"(){$e()}}),j2=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){$e();var f=ta(),b=I2(),D=O2(),c=[f(j2(),()=>({since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}))],d={glimmer:b};E.exports={languages:c,printers:d,parsers:D}}}),R2=Fe({"src/language-graphql/pragma.js"(m,E){$e();function f(D){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(D)}function b(D){return`# @format
218
-
219
- `+D}E.exports={hasPragma:f,insertPragma:b}}}),V2=Fe({"src/language-graphql/loc.js"(m,E){$e();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){$e();var{builders:{join:f,hardline:b,line:D,softline:c,group:d,indent:h,ifBreak:v}}=wn(),{isNextLineEmpty:S,isNonEmptyArray:L}=ye(),{insertPragma:_}=R2(),{locStart:k,locEnd:C}=V2();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(($,y,T)=>{w.push(F()),y!==T.length-1&&(w.push(b),S(De.originalText,$.getValue(),C)&&w.push(b))},"definitions"),[...w,b]}case"OperationDefinition":{let w=De.originalText[k(J)]!=="{",$=!!J.name;return[w?J.operation:"",w&&$?[" ",F("name")]:"",w&&!$&&L(J.variableDefinitions)?" ":"",L(J.variableDefinitions)?d(["(",h([c,f([v("",", "),c],Z.map(F,"variableDefinitions"))]),c,")"]):"",j(Z,F,J),J.selectionSet?!w&&!$?"":" ":"",F("selectionSet")]}case"FragmentDefinition":return["fragment ",F("name"),L(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(`
220
- `);return w.length===1&&(w[0]=w[0].trim()),w.every($=>$==="")&&(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,$,y)=>{let T=F();return $<y.length-1&&S(De.originalText,w.getValue(),C)?[T,b]:T},J)}function ee(Z){return Z.kind&&Z.kind!=="Comment"}function R(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:$}=J,y=Z.map(T=>F(T),"interfaces");for(let T=0;T<$.length;T++){let M=$[T];w.push(y[T]);let U=$[T+1];if(U){let q=De.originalText.slice(M.loc.end,U.loc.start),z=q.includes("#"),ie=q.replace(/#.*/g,"").trim();w.push(ie===","?",":" &",z?D:" ")}}return w}function G(Z,De){Z.kind==="StringValue"&&Z.block&&!Z.value.includes(`
221
- `)&&(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:R,canAttachComment:ee}}}),q2=Fe({"src/language-graphql/options.js"(m,E){$e();var f=Ha();E.exports={bracketSpacing:f.bracketSpacing}}}),W2=Fe({"src/language-graphql/parsers.js"(){$e()}}),G2=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}}}),J2=Fe({"src/language-graphql/index.js"(m,E){$e();var f=ta(),b=U2(),D=q2(),c=W2(),d=[f(G2(),()=>({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){$e(),E.exports=f;function f(b){return String(b).replace(/\s+/g," ")}}}),R0=Fe({"src/language-markdown/loc.js"(m,E){$e();function f(D){return D.position.start.offset}function b(D){return D.position.end.offset}E.exports={locStart:f,locEnd:b}}}),Y2=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]"}}}),Hf=Fe({"src/language-markdown/utils.js"(m,E){$e();var{getLast:f}=ye(),{locStart:b,locEnd:D}=R0(),{cjkPattern:c,kPattern:d,punctuationPattern:h}=Y2(),v=["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],S=[...v,"tableCell","paragraph","heading"],L=new RegExp(d),_=new RegExp(h);function k(R,X){let G="non-cjk",ne="cj-letter",Z="k-letter",De="cjk-punctuation",F=[],J=(X.proseWrap==="preserve"?R:R.replace(new RegExp(`(${c})
222
- (${c})`,"g"),"$1$2")).split(/([\t\n ]+)/);for(let[$,y]of J.entries()){if($%2===1){F.push({type:"whitespace",value:/\n/.test(y)?`
223
- `:" "});continue}if(($===0||$===J.length-1)&&y==="")continue;let T=y.split(new RegExp(`(${c})`));for(let[M,U]of T.entries())if(!((M===0||M===T.length-1)&&U==="")){if(M%2===0){U!==""&&w({type:"word",value:U,kind:G,hasLeadingPunctuation:_.test(U[0]),hasTrailingPunctuation:_.test(f(U))});continue}w(_.test(U)?{type:"word",value:U,kind:De,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:U,kind:L.test(U)?Z:ne,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return F;function w($){let y=f(F);y&&y.type==="word"&&(y.kind===G&&$.kind===ne&&!y.hasTrailingPunctuation||y.kind===ne&&$.kind===G&&!$.hasLeadingPunctuation?F.push({type:"whitespace",value:" "}):!T(G,De)&&![y.value,$.value].some(M=>/\u3000/.test(M))&&F.push({type:"whitespace",value:""})),F.push($);function T(M,U){return y.kind===M&&$.kind===U||y.kind===U&&$.kind===M}}}function C(R,X){let[,G,ne,Z]=X.slice(R.position.start.offset,R.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:G,marker:ne,leadingSpaces:Z}}function x(R,X){if(!R.ordered||R.children.length<2)return!1;let G=Number(C(R.children[0],X.originalText).numberText),ne=Number(C(R.children[1],X.originalText).numberText);if(G===0&&R.children.length>2){let Z=Number(C(R.children[2],X.originalText).numberText);return ne===1&&Z===1}return ne===1}function j(R,X){let{value:G}=R;return R.position.end.offset===X.length&&G.endsWith(`
224
- `)&&X.endsWith(`
225
- `)?G.slice(0,-1):G}function Q(R,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}(R,null,[])}function ee(R){if((R==null?void 0:R.type)!=="link"||R.children.length!==1)return!1;let[X]=R.children;return b(R)===b(X)&&D(R)===D(X)}E.exports={mapAst:Q,splitText:k,punctuationPattern:h,getFencedCodeBlockValue:j,getOrderedListItemInfo:C,hasGitDiffFriendlyOrderedList:x,INLINE_NODE_TYPES:v,INLINE_NODE_WRAPPER_TYPES:S,isAutolink:ee}}}),H2=Fe({"src/language-markdown/embed.js"(m,E){$e();var{inferParserByLanguage:f,getMaxContinuousCount:b}=ye(),{builders:{hardline:D,markAsRoot:c},utils:{replaceEndOfLine:d}}=wn(),h=Yf(),{getFencedCodeBlockValue:v}=Hf();function S(L,_,k,C){let x=L.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)),R={parser:j};x.lang==="tsx"&&(R.filepath="dummy.tsx");let X=k(v(x,C.originalText),R,{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,k);case"importExport":return[k(x.value,{parser:"babel"},{stripTrailingHardline:!0}),D];case"jsx":return k(`<$>${x.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null}E.exports=S}}),V0=Fe({"src/language-markdown/pragma.js"(m,E){$e();var f=j0(),b=["format","prettier"];function D(c){let d=`@(${b.join("|")})`,h=new RegExp([`<!--\\s*${d}\\s*-->`,`{\\s*\\/\\*\\s*${d}\\s*\\*\\/\\s*}`,`<!--.*\r?
226
- [\\s\\S]*(^|
227
- )[^\\S
228
- ]*${d}[^\\S
229
- ]*($|
230
- )[\\s\\S]*
231
- .*-->`].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}
232
-
233
- ${h}
234
-
235
- ${d.content}`:`${h}
236
-
237
- ${d.content}`}}}}),z2=Fe({"src/language-markdown/print-preprocess.js"(m,E){$e();var f=$r(),{getOrderedListItemInfo:b,mapAst:D,splitText:c}=Hf(),d=/^.$/su;function h(ee,R){return ee=L(ee,R),ee=C(ee),ee=S(ee,R),ee=j(ee,R),ee=Q(ee,R),ee=x(ee,R),ee=v(ee),ee=_(ee),ee}function v(ee){return D(ee,R=>R.type!=="import"&&R.type!=="export"?R:Object.assign(Object.assign({},R),{},{type:"importExport"}))}function S(ee,R){return D(ee,X=>X.type!=="inlineCode"||R.proseWrap==="preserve"?X:Object.assign(Object.assign({},X),{},{value:X.value.replace(/\s+/g," ")}))}function L(ee,R){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:R.originalText.slice(X.position.start.offset,X.position.end.offset)}))}function _(ee){return k(ee,(R,X)=>R.type==="importExport"&&X.type==="importExport",(R,X)=>({type:"importExport",value:R.value+`
238
-
239
- `+X.value,position:{start:R.position.start,end:X.position.end}}))}function k(ee,R,X){return D(ee,G=>{if(!G.children)return G;let ne=G.children.reduce((Z,De)=>{let F=f(Z);return F&&R(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 k(ee,(R,X)=>R.type==="text"&&X.type==="text",(R,X)=>({type:"text",value:R.value+X.value,position:{start:R.position.start,end:X.position.end}}))}function x(ee,R){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,R)}})}function j(ee,R){return D(ee,(X,G,ne)=>{if(X.type==="code"){let Z=/^\n?(?: {4,}|\t)/.test(R.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,R){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,R.originalText).leadingSpaces.length>1)return!0;let F=X(Z);if(F===-1)return!1;if(ne.children.length===1)return F%R.tabWidth===0;let J=X(De);return F!==J?!1:F%R.tabWidth===0?!0:b(De,R.originalText).leadingSpaces.length>1}}E.exports=h}}),Q2=Fe({"src/language-markdown/clean.js"(m,E){$e();var f=$0(),{isFrontMatterNode:b}=ye(),{startWithPragma:D}=V0(),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}}),X2=Fe({"src/language-markdown/printer-markdown.js"(m,E){$e();var f=$0(),{getLast:b,getMinNotPresentContinuousCount:D,getMaxContinuousCount:c,getStringWidth:d,isNonEmptyArray:h}=ye(),{builders:{breakParent:v,join:S,line:L,literalline:_,markAsRoot:k,hardline:C,softline:x,ifBreak:j,fill:Q,align:ee,indent:R,group:X,hardlineWithoutBreakParent:G},utils:{normalizeDoc:ne,replaceTextEndOfLine:Z},printer:{printDocToString:De}}=wn(),F=H2(),{insertPragma:J}=V0(),{locStart:w,locEnd:$}=R0(),y=z2(),T=Q2(),{getFencedCodeBlockValue:M,hasGitDiffFriendlyOrderedList:U,splitText:q,punctuationPattern:z,INLINE_NODE_TYPES:ie,INLINE_NODE_WRAPPER_TYPES:ce,isAutolink:ge}=Hf(),fe=new Set(["importExport"]),Ne=["heading","tableCell","link","wikiLink"],se=new Set(["listItem","definition","footnoteDefinition"]);function qe(at,Ee,dt){let Oe=at.getValue();if(Nt(at))return q(Ee.originalText.slice(Oe.position.start.offset,Oe.position.end.offset),Ee).map(lt=>lt.type==="word"?lt.value:lt.value===""?"":be(at,lt.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(at,Ee,dt)),fe.has(Re(Oe).type)?"":C];case"paragraph":return pt(at,Ee,dt,{postprocessor:Q});case"sentence":return pt(at,Ee,dt);case"word":{let lt=Oe.value.replace(/\*/g,"\\$&").replace(new RegExp([`(^|${z})(_+)`,`(_+)(${z}|$)`].join("|"),"g"),(gt,V,_e,nt,kt)=>(_e?`${V}${_e}`:`${nt}${kt}`).replace(/_/g,"\\_")),Zt=(gt,V,_e)=>gt.type==="sentence"&&_e===0,qt=(gt,V,_e)=>ge(gt.children[_e-1]);return lt!==Oe.value&&(at.match(void 0,Zt,qt)||at.match(void 0,Zt,(gt,V,_e)=>gt.type==="emphasis"&&_e===0,qt))&&(lt=lt.replace(/^(\\?[*_])+/,gt=>gt.replace(/\\/g,""))),lt}case"whitespace":{let lt=at.getParentNode(),Zt=lt.children.indexOf(Oe),qt=lt.children[Zt+1],gt=qt&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(qt.value)?"never":Ee.proseWrap;return be(at,Oe.value,{proseWrap:gt})}case"emphasis":{let lt;if(ge(Oe.children[0]))lt=Ee.originalText[Oe.position.start.offset];else{let Zt=at.getParentNode(),qt=Zt.children.indexOf(Oe),gt=Zt.children[qt-1],V=Zt.children[qt+1];lt=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(at,"emphasis")?"*":"_"}return[lt,pt(at,Ee,dt),lt]}case"strong":return["**",pt(at,Ee,dt),"**"];case"delete":return["~~",pt(at,Ee,dt),"~~"];case"inlineCode":{let lt=D(Oe.value,"`"),Zt="`".repeat(lt||1),qt=lt&&!/^\s/.test(Oe.value)?" ":"";return[Zt,qt,Oe.value,qt,Zt]}case"wikiLink":{let lt="";return Ee.proseWrap==="preserve"?lt=Oe.value:lt=Oe.value.replace(/[\t\n]+/g," "),["[[",lt,"]]"]}case"link":switch(Ee.originalText[Oe.position.start.offset]){case"<":{let lt="mailto:";return["<",Oe.url.startsWith(lt)&&Ee.originalText.slice(Oe.position.start.offset+1,Oe.position.start.offset+1+lt.length)!==lt?Oe.url.slice(lt.length):Oe.url,">"]}case"[":return["[",pt(at,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(at,Ee,dt))];case"heading":return["#".repeat(Oe.depth)+" ",pt(at,Ee,dt)];case"code":{if(Oe.isIndented){let qt=" ".repeat(4);return ee(qt,[qt,...Z(Oe.value,C)])}let lt=Ee.__inJsTemplate?"~":"`",Zt=lt.repeat(Math.max(3,c(Oe.value,lt)+1));return[Zt,Oe.lang||"",Oe.meta?" "+Oe.meta:"",C,...Z(M(Oe,Ee.originalText),C),C,Zt]}case"html":{let lt=at.getParentNode(),Zt=lt.type==="root"&&b(lt.children)===Oe?Oe.value.trimEnd():Oe.value,qt=/^<!--.*-->$/s.test(Zt);return Z(Zt,qt?C:k(_))}case"list":{let lt=Ue(Oe,at.getParentNode()),Zt=U(Oe,Ee);return pt(at,Ee,dt,{processor:(qt,gt)=>{let V=nt(),_e=qt.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,he(qt,Ee,dt,V)];return[V,ee(" ".repeat(V.length),he(qt,Ee,dt,V))];function nt(){let kt=Oe.ordered?(gt===0?Oe.start:Zt?1:Oe.start+gt)+(lt%2===0?". ":") "):lt%2===0?"- ":"* ";return Oe.isAligned||Oe.hasIndentedCodeblock?oe(kt,Ee):kt}}})}case"thematicBreak":{let lt=Ge(at,"list");return lt===-1?"---":Ue(at.getParentNode(lt),at.getParentNode(lt+1))%2===0?"***":"---"}case"linkReference":return["[",pt(at,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 lt=Ee.proseWrap==="always"?L:" ";return X([ln(Oe),":",R([lt,Bt(Oe.url),Oe.title===null?"":[lt,cn(Oe.title,Ee,!1)]])])}case"footnote":return["[^",pt(at,Ee,dt),"]"];case"footnoteReference":return Dn(Oe);case"footnoteDefinition":{let lt=at.getParentNode().children[at.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(at,Ee,dt):X([ee(" ".repeat(4),pt(at,Ee,dt,{processor:(qt,gt)=>gt===0?X([x,dt()]):dt()})),lt&&lt.type==="footnoteDefinition"?x:""])]}case"table":return Ie(at,Ee,dt);case"tableCell":return pt(at,Ee,dt);case"break":return/\s/.test(Ee.originalText[Oe.position.start.offset])?[" ",k(_)]:["\\",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),$(Oe));case"tableRow":case"listItem":default:throw new Error(`Unknown markdown type ${JSON.stringify(Oe.type)}`)}}function he(at,Ee,dt,Oe){let lt=at.getValue(),Zt=lt.checked===null?"":lt.checked?"[x] ":"[ ] ";return[Zt,pt(at,Ee,dt,{processor:(qt,gt)=>{if(gt===0&&qt.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 oe(at,Ee){let dt=Oe();return at+" ".repeat(dt>=4?0:dt);function Oe(){let lt=at.length%Ee.tabWidth;return lt===0?0:Ee.tabWidth-lt}}function Ue(at,Ee){return et(at,Ee,dt=>dt.ordered===at.ordered)}function et(at,Ee,dt){let Oe=-1;for(let lt of Ee.children)if(lt.type===at.type&&dt(lt)?Oe++:Oe=-1,lt===at)return Oe}function Ge(at,Ee){let dt=Array.isArray(Ee)?Ee:[Ee],Oe=-1,lt;for(;lt=at.getParentNode(++Oe);)if(dt.includes(lt.type))return Oe;return-1}function ht(at,Ee){let dt=Ge(at,Ee);return dt===-1?null:at.getParentNode(dt)}function be(at,Ee,dt){if(dt.proseWrap==="preserve"&&Ee===`
240
- `)return C;let Oe=dt.proseWrap==="always"&&!ht(at,Ne);return Ee!==""?Oe?L:" ":Oe?x:""}function Ie(at,Ee,dt){let Oe=at.getValue(),lt=[],Zt=at.map(kt=>kt.map((Rt,un)=>{let Mt=De(dt(),Ee).formatted,Ar=d(Mt);return lt[un]=Math.max(lt[un]||3,Ar),{text:Mt,width:Ar}},"children"),"children"),qt=V(!1);if(Ee.proseWrap!=="never")return[v,qt];let gt=V(!0);return[v,X(j(gt,qt))];function V(kt){let Rt=[nt(Zt[0],kt),_e(kt)];return Zt.length>1&&Rt.push(S(G,Zt.slice(1).map(un=>nt(un,kt)))),S(G,Rt)}function _e(kt){return`| ${lt.map((Rt,un)=>{let Mt=Oe.align[un],Ar=Mt==="center"||Mt==="left"?":":"-",sn=Mt==="center"||Mt==="right"?":":"-",Dr=kt?"-":"-".repeat(Rt-2);return`${Ar}${Dr}${sn}`}).join(" | ")} |`}function nt(kt,Rt){return`| ${kt.map((un,Mt)=>{let{text:Ar,width:sn}=un;if(Rt)return Ar;let Dr=lt[Mt]-sn,nn=Oe.align[Mt],An=0;nn==="right"?An=Dr:nn==="center"&&(An=Math.floor(Dr/2));let Bn=Dr-An;return`${" ".repeat(An)}${Ar}${" ".repeat(Bn)}`}).join(" | ")} |`}}function ft(at,Ee,dt){let Oe=[],lt=null,{children:Zt}=at.getValue();for(let[qt,gt]of Zt.entries())switch(Ce(gt)){case"start":lt===null&&(lt={index:qt,offset:gt.position.end.offset});break;case"end":lt!==null&&(Oe.push({start:lt,end:{index:qt,offset:gt.position.start.offset}}),lt=null);break}return pt(at,Ee,dt,{processor:(qt,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(at,Ee,dt){let Oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},{postprocessor:lt}=Oe,Zt=Oe.processor||(()=>dt()),qt=at.getValue(),gt=[],V;return at.each((_e,nt)=>{let kt=_e.getValue(),Rt=Zt(_e,nt);if(Rt!==!1){let un={parts:gt,prevNode:V,parentNode:qt,options:Ee};Ye(kt,un)&&(gt.push(C),V&&fe.has(V.type)||(ze(kt,un)||bt(kt,un))&&gt.push(C),bt(kt,un)&&gt.push(C)),gt.push(Rt),V=kt}},"children"),lt?lt(gt):gt}function Jt(at){if(at.type==="html")return at.value;if(at.type==="paragraph"&&Array.isArray(at.children)&&at.children.length===1&&at.children[0].type==="esComment")return["{/* ",at.children[0].value," */}"]}function Re(at){let Ee=at;for(;h(Ee.children);)Ee=b(Ee.children);return Ee}function Ce(at){let Ee;if(at.type==="html")Ee=at.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/);else{let dt;at.type==="esComment"?dt=at:at.type==="paragraph"&&at.children.length===1&&at.children[0].type==="esComment"&&(dt=at.children[0]),dt&&(Ee=dt.value.match(/^prettier-ignore(?:-(start|end))?$/))}return Ee?Ee[1]||"next":!1}function Ye(at,Ee){let dt=Ee.parts.length===0,Oe=ie.includes(at.type),lt=at.type==="html"&&ce.includes(Ee.parentNode.type);return!dt&&!Oe&&!lt}function ze(at,Ee){var dt,Oe,lt;let Zt=(Ee.prevNode&&Ee.prevNode.type)===at.type&&se.has(at.type),qt=Ee.parentNode.type==="listItem"&&!Ee.parentNode.loose,gt=((dt=Ee.prevNode)===null||dt===void 0?void 0:dt.type)==="listItem"&&Ee.prevNode.loose,V=Ce(Ee.prevNode)==="next",_e=at.type==="html"&&((Oe=Ee.prevNode)===null||Oe===void 0?void 0:Oe.type)==="html"&&Ee.prevNode.position.end.line+1===at.position.start.line,nt=at.type==="html"&&Ee.parentNode.type==="listItem"&&((lt=Ee.prevNode)===null||lt===void 0?void 0:lt.type)==="paragraph"&&Ee.prevNode.position.end.line+1===at.position.start.line;return gt||!(Zt||qt||V||_e||nt)}function bt(at,Ee){let dt=Ee.prevNode&&Ee.prevNode.type==="list",Oe=at.type==="code"&&at.isIndented;return dt&&Oe}function Nt(at){let Ee=ht(at,["linkReference","imageReference"]);return Ee&&(Ee.type!=="linkReference"||Ee.referenceType!=="full")}function Bt(at){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(at)?`<${at}>`:at}function cn(at,Ee){let dt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!at)return"";if(dt)return" "+cn(at,Ee,!1);if(at=at.replace(/\\(["')])/g,"$1"),at.includes('"')&&at.includes("'")&&!at.includes(")"))return`(${at})`;let Oe=at.split("'").length-1,lt=at.split('"').length-1,Zt=Oe>lt?'"':lt>Oe||Ee.singleQuote?"'":'"';return at=at.replace(/\\/,"\\\\"),at=at.replace(new RegExp(`(${Zt})`,"g"),"\\$1"),`${Zt}${at}${Zt}`}function In(at,Ee,dt){return at<Ee?Ee:at>dt?dt:at}function Tn(at){let Ee=Number(at.getName());if(Ee===0)return!1;let dt=at.getParentNode().children[Ee-1];return Ce(dt)==="next"}function ln(at){return`[${f(at.label)}]`}function Dn(at){return`[^${at.label}]`}E.exports={preprocess:y,print:qe,embed:F,massageAstNode:T,hasPrettierIgnore:Tn,insertPragma:J}}}),K2=Fe({"src/language-markdown/options.js"(m,E){$e();var f=Ha();E.exports={proseWrap:f.proseWrap,singleQuote:f.singleQuote}}}),Z2=Fe({"src/language-markdown/parsers.js"(){$e()}}),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}}}),eE=Fe({"src/language-markdown/index.js"(m,E){$e();var f=ta(),b=X2(),D=K2(),c=Z2(),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}}}),tE=Fe({"src/language-html/clean.js"(m,E){$e();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}}),nE=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"}}}),rE=Fe({"src/language-html/utils/is-unknown-namespace.js"(m,E){$e();function f(b){return b.type==="element"&&!b.hasExplicitNamespace&&!["html","svg"].includes(b.namespace)}E.exports=f}}),za=Fe({"src/language-html/utils/index.js"(m,E){$e();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:L,CSS_WHITE_SPACE_TAGS:_,CSS_WHITE_SPACE_DEFAULT:k}=nE(),C=rE(),x=new Set([" ",`
241
- `,"\f","\r"," "]),j=V=>V.replace(/^[\t\n\f\r ]+/,""),Q=V=>V.replace(/[\t\n\f\r ]+$/,""),ee=V=>j(Q(V)),R=V=>V.replace(/^[\t\f\r ]*\n/g,""),X=V=>R(Q(V)),G=V=>V.split(/[\t\n\f\r ]+/),ne=V=>V.match(/^[\t\n\f\r ]*/)[0],Z=V=>{let[,_e,nt,kt]=V.match(/^([\t\n\f\r ]*)(.*?)([\t\n\f\r ]*)$/s);return{leadingWhitespace:_e,trailingWhitespace:kt,text:nt}},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||ze(V)&&V.children.some(nt=>nt.type!=="text"&&nt.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 $(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"||U(V)}function U(V){return cn(V).startsWith("pre")}function q(V,_e){let nt=kt();if(nt&&!V.prev&&V.parent&&V.parent.tagDefinition&&V.parent.tagDefinition.ignoreFirstLf)return V.type==="interpolation";return nt;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:ze(V.parent)?!0:!(!V.prev&&(V.parent.type==="root"||ze(V)&&V.parent||y(V.parent)||Ee(V.parent,_e)||!pt(V.parent.cssDisplay))||V.prev&&!Ce(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:ze(V.parent)?!0:!(!V.next&&(V.parent.type==="root"||ze(V)&&V.parent||y(V.parent)||Ee(V.parent,_e)||!Jt(V.parent.cssDisplay))||V.next&&!Re(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=>Ge(_e)))||V.firstChild&&V.firstChild===V.lastChild&&V.firstChild.type!=="text"&&he(V.firstChild)&&(!V.lastChild.isTrailingSpaceSensitive||oe(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 Ue(V)||V.prev&&se(V.prev)||qe(V)}function se(V){return Ue(V)||V.type==="element"&&V.fullName==="br"||qe(V)}function qe(V){return he(V)&&oe(V)}function he(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 oe(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 Ue(V){switch(V.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(V.name)}return!1}function et(V){return V.lastChild?et(V.lastChild):V}function Ge(V){return V.children&&V.children.some(_e=>_e.type!=="text")}function ht(V){let{type:_e,lang:nt}=V.attrMap;if(_e==="module"||_e==="text/javascript"||_e==="text/babel"||_e==="application/javascript"||nt==="jsx")return"babel";if(_e==="application/x-typescript"||nt==="ts"||nt==="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:nt}=V.attrMap;if(!nt||nt==="postcss"||nt==="css")return"css";if(nt==="scss")return"scss";if(nt==="less")return"less";if(nt==="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 Re(V){return!ft(V)}function Ce(V){return!ft(V)}function Ye(V){return!ft(V)&&V!=="inline-block"}function ze(V){return cn(V).startsWith("pre")}function bt(V,_e){let nt=0;for(let kt=V.stack.length-1;kt>=0;kt--){let Rt=V.stack[kt];Rt&&typeof Rt=="object"&&!Array.isArray(Rt)&&_e(Rt)&&nt++}return nt}function Nt(V,_e){let nt=V;for(;nt;){if(_e(nt))return!0;nt=nt.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 nt=!1;if(V.type==="element"&&V.namespace==="svg")if(Nt(V,kt=>kt.fullName==="svg:foreignObject"))nt=!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||nt||C(V))&&S[V.name]||L}}function cn(V){return V.type==="element"&&(!V.namespace||C(V))&&_[V.name]||k}function In(V){let _e=Number.POSITIVE_INFINITY;for(let nt of V.split(`
242
- `)){if(nt.length===0)continue;if(!x.has(nt[0]))return 0;let kt=ne(nt).length;nt.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(`
243
- `).map(nt=>nt.slice(_e)).join(`
244
- `)}function ln(V,_e){let nt=0;for(let kt=0;kt<V.length;kt++)V[kt]===_e&&nt++;return nt}function Dn(V){return V.replace(/&apos;/g,"'").replace(/&quot;/g,'"')}var at=new Set(["template","style","script"]);function Ee(V,_e){return dt(V,_e)&&!at.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 lt(V){let _e=V.fullName;return _e.charAt(0)==="#"||_e==="slot-scope"||_e==="v-slot"||_e.startsWith("v-slot:")}function Zt(V,_e){let nt=V.parent;if(!dt(nt,_e))return!1;let kt=nt.fullName,Rt=V.fullName;return kt==="script"&&Rt==="setup"||kt==="style"&&Rt==="vars"}function qt(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:et,getNodeCssStyleDisplay:Bt,getNodeCssStyleWhiteSpace:cn,hasPrettierIgnore:J,inferScriptParser:Ie,isVueCustomBlock:Ee,isVueNonHtmlBlock:Oe,isVueScriptTag:gt,isVueSlotAttribute:lt,isVueSfcBindingsAttribute:Zt,isVueSfcBlock:dt,isDanglingSpaceSensitiveNode:ie,isIndentationSensitiveNode:U,isLeadingSpaceSensitiveNode:q,isPreLikeNode:ze,isScriptLikeTag:y,isTextLikeNode:$,isTrailingSpaceSensitiveNode:z,isWhitespaceSensitiveNode:M,isUnknownNamespace:C,preferHardlineAsLeadingSpaces:Ne,preferHardlineAsTrailingSpaces:se,shouldPreserveContent:F,unescapeQuoteEntities:Dn,getTextValueParts:qt}}}),iE=Fe({"node_modules/angular-html-parser/lib/compiler/src/chars.js"(m){$e(),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}}),sE=Fe({"node_modules/angular-html-parser/lib/compiler/src/aot/static_symbol.js"(m){$e(),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}}),aE=Fe({"node_modules/angular-html-parser/lib/compiler/src/util.js"(m){$e(),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),U=0;U<T;U++)M[U]=arguments[U];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 U=y.indexOf(T);return U==-1?M:[y.slice(0,U).trim(),y.slice(U+1).trim()]}function d(y,T,M){return Array.isArray(y)?T.visitArray(y,M):R(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(U=>{M[U]=d(y[U],this,T)}),M}visitPrimitive(y,T){return y}visitOther(y,T){return y}};m.ValueTransformer=S,m.SyncAsync={assertSync:y=>{if(Z(y))throw new Error("Illegal state: value cannot be a promise");return y},then:(y,T)=>Z(y)?y.then(T):T(y),all:y=>y.some(Z)?Promise.all(y):y};function L(y){throw new Error(`Internal Error: ${y}`)}m.error=L;function _(y,T){let M=Error(y);return M[k]=!0,T&&(M[C]=T),M}m.syntaxError=_;var k="ngSyntaxError",C="ngParseErrors";function x(y){return y[k]}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 R(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 U=y.charCodeAt(M);if(U>=55296&&U<=56319&&y.length>M+1){let q=y.charCodeAt(M+1);q>=56320&&q<=57343&&(M++,U=(U-55296<<10)+q-56320+65536)}U<=127?T+=String.fromCharCode(U):U<=2047?T+=String.fromCharCode(U>>6&31|192,U&63|128):U<=65535?T+=String.fromCharCode(U>>12|224,U>>6&63|128,U&63|128):U<=2097151&&(T+=String.fromCharCode(U>>18&7|240,U>>12&63|128,U>>6&63|128,U&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(`
245
- `);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,$=w||F||J;m.global=$}}),oE=Fe({"node_modules/angular-html-parser/lib/compiler/src/compile_metadata.js"(m){$e(),Object.defineProperty(m,"__esModule",{value:!0});var E=sE(),f=aE(),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 U=M.reference;if(U instanceof E.StaticSymbol)return U.name;if(U.__anonymousType)return U.__anonymousType;let q=f.stringify(U);return q.indexOf("(")>=0?(q=`anonymous_${c++}`,U.__anonymousType=q):q=D(q),q}m.identifierName=d;function h(M){let U=M.reference;return U instanceof E.StaticSymbol?U.filePath:`./${f.stringify(U)}`}m.identifierModuleUrl=h;function v(M,U){return`View_${d({reference:M})}_${U}`}m.viewClassName=v;function S(M){return`RenderType_${d({reference:M})}`}m.rendererTypeName=S;function L(M){return`HostView_${d({reference:M})}`}m.hostViewClassName=L;function _(M){return`${d({reference:M})}NgFactory`}m.componentFactoryName=_;var k;(function(M){M[M.Pipe=0]="Pipe",M[M.Directive=1]="Directive",M[M.NgModule=2]="NgModule",M[M.Injectable=3]="Injectable"})(k=m.CompileSummaryKind||(m.CompileSummaryKind={}));function 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:U,styleUrls:q}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.moduleUrl=M||null,this.styles=Z(U),this.styleUrls=Z(q)}};m.CompileStylesheetMetadata=j;var Q=class{constructor(M){let{encapsulation:U,template:q,templateUrl:z,htmlAst:ie,styles:ce,styleUrls:ge,externalStylesheets:fe,animations:Ne,ngContentSelectors:se,interpolation:qe,isInline:he,preserveWhitespaces:oe}=M;if(this.encapsulation=U,this.template=q,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||[],qe&&qe.length!=2)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=qe,this.isInline=he,this.preserveWhitespaces=oe}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:U,type:q,isComponent:z,selector:ie,exportAs:ce,changeDetection:ge,inputs:fe,outputs:Ne,host:se,providers:qe,viewProviders:he,queries:oe,guards:Ue,viewQueries:et,entryComponents:Ge,template:ht,componentViewType:be,rendererType:Ie,componentFactory:ft}=M,pt={},Jt={},Re={};se!=null&&Object.keys(se).forEach(ze=>{let bt=se[ze],Nt=ze.match(b);Nt===null?Re[ze]=bt:Nt[1]!=null?Jt[Nt[1]]=bt:Nt[2]!=null&&(pt[Nt[2]]=bt)});let Ce={};fe!=null&&fe.forEach(ze=>{let bt=f.splitAtColon(ze,[ze,ze]);Ce[bt[0]]=bt[1]});let Ye={};return Ne!=null&&Ne.forEach(ze=>{let bt=f.splitAtColon(ze,[ze,ze]);Ye[bt[0]]=bt[1]}),new ee({isHost:U,type:q,isComponent:!!z,selector:ie,exportAs:ce,changeDetection:ge,inputs:Ce,outputs:Ye,hostListeners:pt,hostProperties:Jt,hostAttributes:Re,providers:qe,viewProviders:he,queries:oe,guards:Ue,viewQueries:et,entryComponents:Ge,template:ht,componentViewType:be,rendererType:Ie,componentFactory:ft})}constructor(M){let{isHost:U,type:q,isComponent:z,selector:ie,exportAs:ce,changeDetection:ge,inputs:fe,outputs:Ne,hostListeners:se,hostProperties:qe,hostAttributes:he,providers:oe,viewProviders:Ue,queries:et,guards:Ge,viewQueries:ht,entryComponents:be,template:Ie,componentViewType:ft,rendererType:pt,componentFactory:Jt}=M;this.isHost=!!U,this.type=q,this.isComponent=z,this.selector=ie,this.exportAs=ce,this.changeDetection=ge,this.inputs=fe,this.outputs=Ne,this.hostListeners=se,this.hostProperties=qe,this.hostAttributes=he,this.providers=Z(oe),this.viewProviders=Z(Ue),this.queries=Z(et),this.guards=Ge,this.viewQueries=Z(ht),this.entryComponents=Z(be),this.template=Ie,this.componentViewType=ft,this.rendererType=pt,this.componentFactory=Jt}toSummary(){return{summaryKind:k.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}}};m.CompileDirectiveMetadata=ee;var R=class{constructor(M){let{type:U,name:q,pure:z}=M;this.type=U,this.name=q,this.pure=!!z}toSummary(){return{summaryKind:k.Pipe,type:this.type,name:this.name,pure:this.pure}}};m.CompilePipeMetadata=R;var X=class{};m.CompileShallowModuleMetadata=X;var G=class{constructor(M){let{type:U,providers:q,declaredDirectives:z,exportedDirectives:ie,declaredPipes:ce,exportedPipes:ge,entryComponents:fe,bootstrapComponents:Ne,importedModules:se,exportedModules:qe,schemas:he,transitiveModule:oe,id:Ue}=M;this.type=U||null,this.declaredDirectives=Z(z),this.exportedDirectives=Z(ie),this.declaredPipes=Z(ce),this.exportedPipes=Z(ge),this.providers=Z(q),this.entryComponents=Z(fe),this.bootstrapComponents=Z(Ne),this.importedModules=Z(se),this.exportedModules=Z(qe),this.schemas=Z(he),this.id=Ue||null,this.transitiveModule=oe||null}toSummary(){let M=this.transitiveModule;return{summaryKind:k.NgModule,type:this.type,entryComponents:M.entryComponents,providers:M.providers,modules:M.modules,exportedDirectives:M.exportedDirectives,exportedPipes:M.exportedPipes}}};m.CompileNgModuleMetadata=G;var 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,U){this.providers.push({provider:M,module:U})}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,U){let{useClass:q,useValue:z,useExisting:ie,useFactory:ce,deps:ge,multi:fe}=U;this.token=M,this.useClass=q||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((U,q)=>{let z=Array.isArray(q)?F(q):q;return U.concat(z)},[])}m.flatten=F;function J(M){return M.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function w(M,U,q){let z;return q.isInline?U.type.reference instanceof E.StaticSymbol?z=`${U.type.reference.filePath}.${U.type.reference.name}.html`:z=`${d(M)}/${d(U.type)}.html`:z=q.templateUrl,U.type.reference instanceof E.StaticSymbol?z:J(z)}m.templateSourceUrl=w;function $(M,U){let q=M.moduleUrl.split(/\/\\/g),z=q[q.length-1];return J(`css/${U}${z}.ngstyle.js`)}m.sharedStylesheetJitUrl=$;function y(M){return J(`${d(M.type)}/module.ngfactory.js`)}m.ngModuleJitUrl=y;function T(M,U){return J(`${d(M)}/${d(U.type)}.ngfactory.js`)}m.templateJitUrl=T}}),uE=Fe({"node_modules/angular-html-parser/lib/compiler/src/parse_util.js"(m){$e(),Object.defineProperty(m,"__esModule",{value:!0});var E=iE(),f=oE(),b=class{constructor(L,_,k,C){this.file=L,this.offset=_,this.line=k,this.col=C}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(L){let _=this.file.content,k=_.length,C=this.offset,x=this.line,j=this.col;for(;C>0&&L<0;)if(C--,L++,_.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<k&&L>0;){let Q=_.charCodeAt(C);C++,L--,Q==E.$LF?(x++,j=0):j++}return new b(this.file,C,x,j)}getContext(L,_){let k=this.file.content,C=this.offset;if(C!=null){C>k.length-1&&(C=k.length-1);let x=C,j=0,Q=0;for(;j<L&&C>0&&(C--,j++,!(k[C]==`
246
- `&&++Q==_)););for(j=0,Q=0;j<L&&x<k.length-1&&(x++,j++,!(k[x]==`
247
- `&&++Q==_)););return{before:k.substring(C,this.offset),after:k.substring(this.offset,x+1)}}return null}};m.ParseLocation=b;var D=class{constructor(L,_){this.content=L,this.url=_}};m.ParseSourceFile=D;var c=class{constructor(L,_){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;this.start=L,this.end=_,this.details=k}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}};m.ParseSourceSpan=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(L){L[L.WARNING=0]="WARNING",L[L.ERROR=1]="ERROR"})(d=m.ParseErrorLevel||(m.ParseErrorLevel={}));var h=class{constructor(L,_){let k=arguments.length>2&&arguments[2]!==void 0?arguments[2]:d.ERROR;this.span=L,this.msg=_,this.level=k}contextualMessage(){let L=this.span.start.getContext(100,3);return L?`${this.msg} ("${L.before}[${d[this.level]} ->]${L.after}")`:this.msg}toString(){let L=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${L}`}};m.ParseError=h;function v(L,_){let k=f.identifierModuleUrl(_),C=k!=null?`in ${L} ${f.identifierName(_)} in ${k}`:`in ${L} ${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(L,_,k){let C=`in ${L} ${_} in ${k}`,x=new D("",C);return new c(new b(x,-1,-1,-1),new b(x,-1,-1,-1))}m.r3JitTypeSourceSpan=S}}),lE=Fe({"src/language-html/print-preprocess.js"(m,E){$e();var{ParseSourceSpan:f}=uE(),{htmlTrim:b,getLeadingAndTrailingHtmlWhitespace:D,hasHtmlWhitespace:c,canHaveInterpolation:d,getNodeCssStyleDisplay:h,isDanglingSpaceSensitiveNode:v,isIndentationSensitiveNode:S,isLeadingSpaceSensitiveNode:L,isTrailingSpaceSensitiveNode:_,isWhitespaceSensitiveNode:k,isVueScriptTag:C}=za(),x=[Q,ee,X,ne,Z,J,De,F,w,G,$];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]===`
248
- `){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 U=0;U<M.children.length;U++){let q=M.children[U];if(!T(q))continue;let z=q.prev,ie=q.firstChild;M.removeChild(z),U--;let ce=new f(z.sourceSpan.start,ie.sourceSpan.end),ge=new f(ce.start,q.sourceSpan.end);q.condition=z.condition,q.sourceSpan=ge,q.startSourceSpan=ce,q.removeChild(ie)}})}function R(y,T,M){y.walk(U=>{if(U.children)for(let q=0;q<U.children.length;q++){let z=U.children[q];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),U.removeChild(z),q--)}})}function X(y){return R(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 U=0;U<M.children.length;U++){let q=M.children[U];if(!T(q))continue;let z=q.prev,ie=q.next;z.value+=`<${q.rawName}>`+q.firstChild.value+`</${q.rawName}>`+ie.value,z.sourceSpan=new f(z.sourceSpan.start,ie.sourceSpan.end),z.isTrailingSpaceSensitive=ie.isTrailingSpaceSensitive,z.hasTrailingSpaces=ie.hasTrailingSpaces,M.removeChild(q),U--,M.removeChild(ie)}})}function ne(y,T){if(T.parser==="html")return;let M=/{{(.+?)}}/s;y.walk(U=>{if(d(U))for(let q of U.children){if(q.type!=="text")continue;let z=q.sourceSpan.start,ie=null,ce=q.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&&U.insertChildBefore(q,{type:"text",value:fe,sourceSpan:new f(z,ie)});continue}ie=z.moveBy(fe.length+4),U.insertChildBefore(q,{type:"interpolation",sourceSpan:new f(z,ie),children:fe.length===0?[]:[{type:"text",value:fe,sourceSpan:new f(z.moveBy(2),ie.moveBy(-2))}]})}U.removeChild(q)}})}function Z(y){y.walk(T=>{if(!T.children)return;if(T.children.length===0||T.children.length===1&&T.children[0].type==="text"&&b(T.children[0].value).length===0){T.hasDanglingSpaces=T.children.length>0,T.children=[];return}let M=k(T),U=S(T);if(!M)for(let q=0;q<T.children.length;q++){let z=T.children[q];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),q--,(ie||ge)&&(fe&&(fe.hasTrailingSpaces=!0),Ne&&(Ne.hasLeadingSpaces=!0)))}T.isWhitespaceSensitive=M,T.isIndentationSensitive=U})}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:U}=M;if(U){if(U.length===0){M.isDanglingSpaceSensitive=v(M);return}for(let q of U)q.isLeadingSpaceSensitive=L(q,T),q.isTrailingSpaceSensitive=_(q,T);for(let q=0;q<U.length;q++){let z=U[q];z.isLeadingSpaceSensitive=(q===0||z.prev.isTrailingSpaceSensitive)&&z.isLeadingSpaceSensitive,z.isTrailingSpaceSensitive=(q===U.length-1||z.next.isLeadingSpaceSensitive)&&z.isTrailingSpaceSensitive}}})}function $(y,T){if(T.parser==="vue"){let M=y.children.find(q=>C(q,T));if(!M)return;let{lang:U}=M.attrMap;(U==="ts"||U==="typescript")&&(T.__should_parse_vue_template_with_ts=!0)}}E.exports=j}}),cE=Fe({"src/language-html/pragma.js"(m,E){$e();function f(D){return/^\s*<!--\s*@(?:format|prettier)\s*-->/.test(D)}function b(D){return`<!-- @format -->
249
-
250
- `+D.replace(/^\s*\n/,"")}E.exports={hasPragma:f,insertPragma:b}}}),zf=Fe({"src/language-html/loc.js"(m,E){$e();function f(D){return D.sourceSpan.start.offset}function b(D){return D.sourceSpan.end.offset}E.exports={locStart:f,locEnd:b}}}),jo=Fe({"src/language-html/print/tag.js"(m,E){$e();var f=Po(),{isNonEmptyArray:b}=ye(),{builders:{indent:D,join:c,line:d,softline:h,hardline:v},utils:{replaceTextEndOfLine:S}}=wn(),{locStart:L,locEnd:_}=zf(),{isTextLikeNode:k,getLastDescendant:C,isPreLikeNode:x,hasPrettierIgnore:j,shouldPreserveContent:Q,isVueSfcBlock:ee}=za();function R(se,qe){return[se.isSelfClosing?"":X(se,qe),G(se,qe)]}function X(se,qe){return se.lastChild&&y(se.lastChild)?"":[ne(se,qe),De(se,qe)]}function G(se,qe){return(se.next?w(se.next):$(se.parent))?"":[F(se,qe),Z(se,qe)]}function ne(se,qe){return $(se)?F(se.lastChild,qe):""}function Z(se,qe){return y(se)?De(se.parent,qe):T(se)?fe(se.next):""}function De(se,qe){if(f(!se.isSelfClosing),J(se,qe))return"";switch(se.type){case"ieConditionalComment":return"<!";case"element":if(se.hasHtmComponentClosingTag)return"<//";default:return`</${se.rawName}`}}function F(se,qe){if(J(se,qe))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,qe){return!se.isSelfClosing&&!se.endSourceSpan&&(j(se)||Q(se.parent,qe))}function w(se){return se.prev&&se.prev.type!=="docType"&&!k(se.prev)&&se.isLeadingSpaceSensitive&&!se.hasLeadingSpaces}function $(se){return se.lastChild&&se.lastChild.isTrailingSpaceSensitive&&!se.lastChild.hasTrailingSpaces&&!k(C(se.lastChild))&&!x(se)}function y(se){return!se.next&&!se.hasTrailingSpaces&&se.isTrailingSpaceSensitive&&k(C(se))}function T(se){return se.next&&!k(se.next)&&k(se)&&se.isTrailingSpaceSensitive&&!se.hasTrailingSpaces}function M(se){let qe=se.trim().match(/^prettier-ignore-attribute(?:\s+(.+))?$/s);return qe?qe[1]?qe[1].split(/\s+/):!0:!1}function U(se){return!se.prev&&se.isLeadingSpaceSensitive&&!se.hasLeadingSpaces}function q(se,qe,he){let oe=se.getValue();if(!b(oe.attrs))return oe.isSelfClosing?" ":"";let Ue=oe.prev&&oe.prev.type==="comment"&&M(oe.prev.value),et=typeof Ue=="boolean"?()=>Ue:Array.isArray(Ue)?ft=>Ue.includes(ft.rawName):()=>!1,Ge=se.map(ft=>{let pt=ft.getValue();return et(pt)?S(qe.originalText.slice(L(pt),_(pt))):he()},"attrs"),ht=oe.type==="element"&&oe.fullName==="script"&&oe.attrs.length===1&&oe.attrs[0].fullName==="src"&&oe.children.length===0,be=qe.singleAttributePerLine&&oe.attrs.length>1&&!ee(oe,qe)?v:d,Ie=[D([ht?" ":d,c(be,Ge)])];return oe.firstChild&&U(oe.firstChild)||oe.isSelfClosing&&$(oe.parent)||ht?Ie.push(oe.isSelfClosing?" ":""):Ie.push(qe.bracketSameLine?oe.isSelfClosing?" ":"":oe.isSelfClosing?d:h),Ie}function z(se){return se.firstChild&&U(se.firstChild)?"":Ne(se)}function ie(se,qe,he){let oe=se.getValue();return[ce(oe,qe),q(se,qe,he),oe.isSelfClosing?"":z(oe)]}function ce(se,qe){return se.prev&&T(se.prev)?"":[ge(se,qe),fe(se)]}function ge(se,qe){return U(se)?Ne(se.parent):w(se)?F(se.prev,qe):""}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:R,printClosingTagStart:X,printClosingTagStartMarker:De,printClosingTagEndMarker:F,printClosingTagSuffix:Z,printClosingTagEnd:G,needsToBorrowLastChildClosingTagEndMarker:$,needsToBorrowParentClosingTagStartMarker:y,needsToBorrowPrevClosingTagEndMarker:w,printOpeningTag:ie,printOpeningTagStart:ce,printOpeningTagPrefix:ge,printOpeningTagStartMarker:fe,printOpeningTagEndMarker:Ne,needsToBorrowNextOpeningTagStartMarker:T,needsToBorrowParentOpeningTagEndMarker:U}}}),fE=Fe({"node_modules/parse-srcset/src/parse-srcset.js"(m,E){$e(),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===`
251
- `||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]+/,L=/^[^ \t\n\r\u000c]+/,_=/[,]+$/,k=/^\d+$/,C=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,x,j,Q,ee,R,X=0,G=[];;){if(d(S),X>=h)return G;x=d(L),j=[],x.slice(-1)===","?(x=x.replace(_,""),Z()):ne()}function ne(){for(d(v),Q="",ee="in descriptor";;){if(R=f.charAt(X),ee==="in descriptor")if(c(R))Q&&(j.push(Q),Q="",ee="after descriptor");else if(R===","){X+=1,Q&&j.push(Q),Z();return}else if(R==="(")Q=Q+R,ee="in parens";else if(R===""){Q&&j.push(Q),Z();return}else Q=Q+R;else if(ee==="in parens")if(R===")")Q=Q+R,ee="in descriptor";else if(R===""){j.push(Q),Z();return}else Q=Q+R;else if(ee==="after descriptor"&&!c(R))if(R===""){Z();return}else ee="in descriptor",X-=1;X+=1}}function Z(){var De=!1,F,J,w,$,y={},T,M,U,q,z;for($=0;$<j.length;$++)T=j[$],M=T[T.length-1],U=T.substring(0,T.length-1),q=parseInt(U,10),z=parseFloat(U),k.test(U)&&M==="w"?((F||J)&&(De=!0),q===0?De=!0:F=q):C.test(U)&&M==="x"?((F||J||w)&&(De=!0),z<0?De=!0:J=z):k.test(U)&&M==="h"?((w||J)&&(De=!0),q===0?De=!0:w=q):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))}}})}}),pE=Fe({"src/language-html/syntax-attribute.js"(m,E){$e();var f=fE(),{builders:{ifBreak:b,join:D,line:c}}=wn();function d(v){let S=f(v,{logger:{error(ne){throw new Error(ne)}}}),L=S.some(ne=>{let{w:Z}=ne;return Z}),_=S.some(ne=>{let{h:Z}=ne;return Z}),k=S.some(ne=>{let{d:Z}=ne;return Z});if(L+_+k>1)throw new Error("Mixed descriptor in srcset is not supported");let C=L?"w":_?"h":"d",x=L?"w":_?"h":"x",j=ne=>Math.max(...ne),Q=S.map(ne=>ne.url),ee=j(Q.map(ne=>ne.length)),R=S.map(ne=>ne[C]).map(ne=>ne?ne.toString():""),X=R.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=R[Z];if(F){let J=ee-ne.length+1,w=G-X[Z],$=" ".repeat(J+w);De.push(b($," "),F+x)}return De}))}function h(v){return v.trim().split(/\s+/).join(" ")}E.exports={printImgSrcset:d,printClassNames:h}}}),dE=Fe({"src/language-html/syntax-vue.js"(m,E){$e();var{builders:{group:f}}=wn();function b(h,v){let{left:S,operator:L,right:_}=D(h);return[f(v(`function _(${S}) {}`,{parser:"babel",__isVueForBindingLeft:!0}))," ",L," ",v(_,{parser:"__js_expression"},{stripTrailingHardline:!0})]}function D(h){let v=/(.*?)\s+(in|of)\s+(.*)/s,S=/,([^,\]}]*)(?:,([^,\]}]*))?$/,L=/^\(|\)$/g,_=h.match(v);if(!_)return;let k={};if(k.for=_[3].trim(),!k.for)return;let C=_[1].trim().replace(L,""),x=C.match(S);x?(k.alias=C.replace(S,""),k.iterator1=x[1].trim(),x[2]&&(k.iterator2=x[2].trim())):k.alias=C;let j=[k.alias,k.iterator1,k.iterator2];if(!j.some((Q,ee)=>!Q&&(ee===0||j.slice(ee+1).some(Boolean))))return{left:j.filter(Boolean).join(","),operator:_[2],right:k.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$]*])*$/,L=h.trim();return v.test(L)||S.test(L)}E.exports={isVueEventBindingExpression:d,printVueFor:b,printVueBindings:c}}}),q0=Fe({"src/language-html/get-node-content.js"(m,E){$e();var{needsToBorrowParentClosingTagStartMarker:f,printClosingTagStartMarker:b,needsToBorrowLastChildClosingTagEndMarker:D,printClosingTagEndMarker:c,needsToBorrowParentOpeningTagEndMarker:d,printOpeningTagEndMarker:h}=jo();function v(S,L){let _=S.startSourceSpan.end.offset;S.firstChild&&d(S.firstChild)&&(_-=h(S).length);let k=S.endSourceSpan.start.offset;return S.lastChild&&f(S.lastChild)?k+=b(S,L).length:D(S)&&(k-=c(S.lastChild,L).length),L.originalText.slice(_,k)}E.exports=v}}),hE=Fe({"src/language-html/embed.js"(m,E){$e();var{builders:{breakParent:f,group:b,hardline:D,indent:c,line:d,fill:h,softline:v},utils:{mapDoc:S,replaceTextEndOfLine:L}}=wn(),_=Yf(),{printClosingTag:k,printClosingTagSuffix:C,needsToBorrowPrevClosingTagEndMarker:x,printOpeningTagPrefix:j,printOpeningTag:Q}=jo(),{printImgSrcset:ee,printClassNames:R}=pE(),{printVueFor:X,printVueBindings:G,isVueEventBindingExpression:ne}=dE(),{isScriptLikeTag:Z,isVueNonHtmlBlock:De,inferScriptParser:F,htmlTrimPreserveIndentation:J,dedentString:w,unescapeQuoteEntities:$,isVueSlotAttribute:y,isVueSfcBindingsAttribute:T,getTextValueParts:M}=za(),U=q0();function q(ie,ce,ge){let fe=Ge=>new RegExp(Ge.join("|")).test(ie.fullName),Ne=()=>$(ie.value),se=!1,qe=(Ge,ht)=>{let be=Ge.type==="NGRoot"?Ge.node.type==="NGMicrosyntax"&&Ge.node.body.length===1&&Ge.node.body[0].type==="NGMicrosyntaxExpression"?Ge.node.body[0].expression:Ge.node:Ge.type==="JsExpressionRoot"?Ge.node:Ge;be&&(be.type==="ObjectExpression"||be.type==="ArrayExpression"||ht.parser==="__vue_expression"&&(be.type==="TemplateLiteral"||be.type==="StringLiteral"))&&(se=!0)},he=Ge=>b(Ge),oe=function(Ge){let ht=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return b([c([v,Ge]),ht?v:""])},Ue=Ge=>se?he(Ge):oe(Ge),et=(Ge,ht)=>ce(Ge,Object.assign({__onHtmlBindingRoot:qe,__embeddedInHtml:!0},ht));if(ie.fullName==="srcset"&&(ie.parent.fullName==="img"||ie.parent.fullName==="source"))return oe(ee(Ne()));if(ie.fullName==="class"&&!ge.parentParser){let Ge=Ne();if(!Ge.includes("{{"))return R(Ge)}if(ie.fullName==="style"&&!ge.parentParser){let Ge=Ne();if(!Ge.includes("{{"))return oe(et(Ge,{parser:"css",__isHTMLStyleAttribute:!0}))}if(ge.parser==="vue"){if(ie.fullName==="v-for")return X(Ne(),et);if(y(ie)||T(ie,ge))return G(Ne(),et);let Ge=["^@","^v-on:"],ht=["^:","^v-bind:"],be=["^v-"];if(fe(Ge)){let Ie=Ne(),ft=ne(Ie)?"__js_expression":ge.__should_parse_vue_template_with_ts?"__vue_ts_event_binding":"__vue_event_binding";return Ue(et(Ie,{parser:ft}))}if(fe(ht))return Ue(et(Ne(),{parser:"__vue_expression"}));if(fe(be))return Ue(et(Ne(),{parser:"__js_expression"}))}if(ge.parser==="angular"){let Ge=(Re,Ce)=>et(Re,Object.assign(Object.assign({},Ce),{},{trailingComma:"none"})),ht=["^\\*"],be=["^\\(.+\\)$","^on-"],Ie=["^\\[.+\\]$","^bind(on)?-","^ng-(if|show|hide|class|style)$"],ft=["^i18n(-.+)?$"];if(fe(be))return Ue(Ge(Ne(),{parser:"__ng_action"}));if(fe(Ie))return Ue(Ge(Ne(),{parser:"__ng_binding"}));if(fe(ft)){let Re=Ne().trim();return oe(h(M(ie,Re)),!Re.includes("@@"))}if(fe(ht))return Ue(Ge(Ne(),{parser:"__ng_directive"}));let pt=/{{(.+?)}}/s,Jt=Ne();if(pt.test(Jt)){let Re=[];for(let[Ce,Ye]of Jt.split(pt).entries())if(Ce%2===0)Re.push(L(Ye));else try{Re.push(b(["{{",c([d,Ge(Ye,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),d,"}}"]))}catch{Re.push("{{",L(Ye),"}}")}return b(Re)}}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 qe=U(Ne,fe),he=/^\s*$/.test(qe),oe="";return he||(oe=ge(J(qe),{parser:se,__embeddedInHtml:!0},{stripTrailingHardline:!0}),he=oe===""),[j(Ne,fe),b(Q(ie,fe,ce)),he?"":D,oe,he?"":D,k(Ne,fe),C(Ne,fe)]}break}case"text":{if(Z(Ne.parent)){let se=F(Ne.parent,fe);if(se){let qe=se==="markdown"?w(Ne.value.replace(/^[^\S\n]*\n/,"")):Ne.value,he={parser:se,__embeddedInHtml:!0};if(fe.parser==="html"&&se==="babel"){let oe="script",{attrMap:Ue}=Ne.parent;Ue&&(Ue.type==="module"||Ue.type==="text/babel"&&Ue["data-type"]==="module")&&(oe="module"),he.__babelSourceType=oe}return[f,j(Ne,fe),ge(qe,he,{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=q(Ne,(qe,he)=>ge(qe,Object.assign({__isInHtmlAttribute:!0,__embeddedInHtml:!0},he),{stripTrailingHardline:!0}),fe);if(se)return[Ne.rawName,'="',b(S(se,qe=>typeof qe=="string"?qe.replace(/"/g,"&quot;"):qe)),'"'];break}case"front-matter":return _(Ne,ge)}}E.exports=z}}),W0=Fe({"src/language-html/print/children.js"(m,E){$e();var{builders:{breakParent:f,group:b,ifBreak:D,line:c,softline:d,hardline:h},utils:{replaceTextEndOfLine:v}}=wn(),{locStart:S,locEnd:L}=zf(),{forceBreakChildren:_,forceNextEmptyLine:k,isTextLikeNode:C,hasPrettierIgnore:x,preferHardlineAsLeadingSpaces:j}=za(),{printOpeningTagPrefix:Q,needsToBorrowNextOpeningTagStartMarker:ee,printOpeningTagStartMarker:R,needsToBorrowPrevClosingTagEndMarker:X,printClosingTagEndMarker:G,printClosingTagSuffix:ne,needsToBorrowParentClosingTagStartMarker:Z}=jo();function De(w,$,y){let T=w.getValue();return x(T)?[Q(T,$),...v($.originalText.slice(S(T)+(T.prev&&ee(T.prev)?R(T).length:0),L(T)-(T.next&&X(T.next)?G(T,$).length:0))),ne(T,$)]:y()}function F(w,$){return C(w)&&C($)?w.isTrailingSpaceSensitive?w.hasTrailingSpaces?j($)?h:c:"":j($)?h:d:ee(w)&&(x($)||$.firstChild||$.isSelfClosing||$.type==="element"&&$.attrs.length>0)||w.type==="element"&&w.isSelfClosing&&X($)?"":!$.isLeadingSpaceSensitive||j($)||X($)&&w.lastChild&&Z(w.lastChild)&&w.lastChild.lastChild&&Z(w.lastChild.lastChild)?h:$.hasLeadingSpaces?c:d}function J(w,$,y){let T=w.getValue();if(_(T))return[f,...w.map(U=>{let q=U.getValue(),z=q.prev?F(q.prev,q):"";return[z?[z,k(q.prev)?h:""]:"",De(U,$,y)]},"children")];let M=T.children.map(()=>Symbol(""));return w.map((U,q)=>{let z=U.getValue();if(C(z)){if(z.prev&&C(z.prev)){let qe=F(z.prev,z);if(qe)return k(z.prev)?[h,h,De(U,$,y)]:[qe,De(U,$,y)]}return De(U,$,y)}let ie=[],ce=[],ge=[],fe=[],Ne=z.prev?F(z.prev,z):"",se=z.next?F(z,z.next):"";return Ne&&(k(z.prev)?ie.push(h,h):Ne===h?ie.push(h):C(z.prev)?ce.push(Ne):ce.push(D("",d,{groupId:M[q-1]}))),se&&(k(z)?C(z.next)&&fe.push(h,h):se===h?C(z.next)&&fe.push(h):ge.push(se)),[...ie,b([...ce,b([De(U,$,y),...ge],{id:M[q]})]),...fe]},"children")}E.exports={printChildren:J}}}),mE=Fe({"src/language-html/print/element.js"(m,E){$e();var{builders:{breakParent:f,dedentToRoot:b,group:D,ifBreak:c,indentIfBreak:d,indent:h,line:v,softline:S},utils:{replaceTextEndOfLine:L}}=wn(),_=q0(),{shouldPreserveContent:k,isScriptLikeTag:C,isVueCustomBlock:x,countParents:j,forceBreakContent:Q}=za(),{printOpeningTagPrefix:ee,printOpeningTag:R,printClosingTagSuffix:X,printClosingTag:G,needsToBorrowPrevClosingTagEndMarker:ne,needsToBorrowLastChildClosingTagEndMarker:Z}=jo(),{printChildren:De}=W0();function F(J,w,$){let y=J.getValue();if(k(y,w))return[ee(y,w),D(R(J,w,$)),...L(_(y,w)),...G(y,w),X(y,w)];let T=y.children.length===1&&y.firstChild.type==="interpolation"&&y.firstChild.isLeadingSpaceSensitive&&!y.firstChild.hasLeadingSpaces&&y.lastChild.isTrailingSpaceSensitive&&!y.lastChild.hasTrailingSpaces,M=Symbol("element-attr-group-id"),U=ce=>D([D(R(J,w,$),{id:M}),ce,G(y,w)]),q=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?U(y.hasDanglingSpaces&&y.isDanglingSpaceSensitive?v:""):U([Q(y)?f:"",q([z(),De(J,w,$)]),ie()])}E.exports={printElement:F}}}),gE=Fe({"src/language-html/printer-html.js"(m,E){$e();var{builders:{fill:f,group:b,hardline:D,literalline:c},utils:{cleanDoc:d,getDocParts:h,isConcat:v,replaceTextEndOfLine:S}}=wn(),L=tE(),{countChars:_,unescapeQuoteEntities:k,getTextValueParts:C}=za(),x=lE(),{insertPragma:j}=cE(),{locStart:Q,locEnd:ee}=zf(),R=hE(),{printClosingTagSuffix:X,printClosingTagEnd:G,printOpeningTagPrefix:ne,printOpeningTagStart:Z}=jo(),{printElement:De}=mE(),{printChildren:F}=W0();function J(w,$,y){let T=w.getValue();switch(T.type){case"front-matter":return S(T.raw);case"root":return $.__onHtmlRoot&&$.__onHtmlRoot(T),[b(F(w,$,y)),D];case"element":case"ieConditionalComment":return De(w,$,y);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Z(T),G(T)];case"interpolation":return[Z(T,$),...w.map(y,"children"),G(T,$)];case"text":{if(T.parent.type==="interpolation"){let U=/\n[^\S\n]*$/,q=U.test(T.value),z=q?T.value.replace(U,""):T.value;return[...S(z),q?D:""]}let M=d([ne(T,$),...C(T),X(T,$)]);return v(M)||M.type==="fill"?f(h(M)):M}case"docType":return[b([Z(T,$)," ",T.value.replace(/^html\b/i,"html").replace(/\s+/g," ")]),G(T,$)];case"comment":return[ne(T,$),...S($.originalText.slice(Q(T),ee(T)),c),X(T,$)];case"attribute":{if(T.value===null)return T.rawName;let M=k(T.value),U=_(M,"'"),q=_(M,'"'),z=U<q?"'":'"';return[T.rawName,"=",z,...S(z==='"'?M.replace(/"/g,"&quot;"):M.replace(/'/g,"&apos;")),z]}default:throw new Error(`Unexpected node type ${T.type}`)}}E.exports={preprocess:x,print:J,insertPragma:j,massageAstNode:L,embed:R}}}),yE=Fe({"src/language-html/options.js"(m,E){$e();var f=Ha(),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."}}}}),DE=Fe({"src/language-html/parsers.js"(){$e()}}),Qf=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}}}),bE=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}}}),vE=Fe({"src/language-html/index.js"(m,E){$e();var f=ta(),b=gE(),D=yE(),c=DE(),d=[f(Qf(),()=>({name:"Angular",since:"1.15.0",parsers:["angular"],vscodeLanguageIds:["html"],extensions:[".component.html"],filenames:[]})),f(Qf(),v=>({since:"1.15.0",parsers:["html"],vscodeLanguageIds:["html"],extensions:[...v.extensions,".mjml"]})),f(Qf(),()=>({name:"Lightning Web Components",since:"1.17.0",parsers:["lwc"],vscodeLanguageIds:["html"],extensions:[],filenames:[]})),f(bE(),()=>({since:"1.10.0",parsers:["vue"],vscodeLanguageIds:["vue"]}))],h={html:b};E.exports={languages:d,printers:h,options:D,parsers:c}}}),EE=Fe({"src/language-yaml/pragma.js"(m,E){$e();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
252
-
253
- ${c}`}E.exports={isPragma:f,hasPragma:b,insertPragma:D}}}),AE=Fe({"src/language-yaml/loc.js"(m,E){$e();function f(D){return D.position.start.offset}function b(D){return D.position.end.offset}E.exports={locStart:f,locEnd:b}}}),CE=Fe({"src/language-yaml/embed.js"(m,E){$e();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}}),Qa=Fe({"src/language-yaml/utils.js"(m,E){$e();var{getLast:f,isNonEmptyArray:b}=ye();function D(F,J){let w=0,$=F.stack.length-1;for(let y=0;y<$;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($=>d($,J,F))}):F,w)}function h(F,J,w){Object.defineProperty(F,J,{get:w,enumerable:!1})}function v(F,J){let w=0,$=J.length;for(let y=F.position.end.offset-1;y<$;y++){let T=J[y];if(T===`
254
- `&&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 $=F.stack[w],y=F.stack[w-1];if(Array.isArray(y)&&typeof $=="number"&&$!==y.length-1)return!1}return!0}function L(F){return b(F.children)?L(f(F.children)):F}function _(F){return F.value.trim()==="prettier-ignore"}function k(F){let J=F.getValue();if(J.type==="documentBody"){let w=F.getParentNode();return X(w.head)&&_(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)||R(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 R(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 $ of F.split(/( +)/))$!==" "?w===" "?J.push($):J.push((J.pop()||"")+$):w===void 0&&J.unshift(""),w=$;return w===" "&&J.push((J.pop()||"")+" "),J[0]===""&&(J.shift(),J.unshift(" "+(J.shift()||""))),J}function ne(F,J,w){let $=J.split(`
255
- `).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"?$.map(y=>y.length===0?[]:[y]):$.map(y=>y.length===0?[]:G(y)).reduce((y,T,M)=>M!==0&&$[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:$,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 U=T.split(`
256
- `).map(z=>z.slice(M));if(y.proseWrap==="preserve"||F.type==="blockLiteral")return q(U.map(z=>z.length===0?[]:[z]));return q(U.map(z=>z.length===0?[]:G(z)).reduce((z,ie,ce)=>ce!==0&&U[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 q(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&&!$?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:L,hasPrettierIgnore:k,hasLeadingComments:j,hasMiddleComments:Q,hasIndicatorComment:ee,hasTrailingComment:R,hasEndComments:X}}}),SE=Fe({"src/language-yaml/print-preprocess.js"(m,E){$e();var{defineShortcut:f,mapNode:b}=Qa();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}}),dl=Fe({"src/language-yaml/print/misc.js"(m,E){$e();var{builders:{softline:f,align:b}}=wn(),{hasEndComments:D,isNextLineEmpty:c,isNode:d}=Qa(),h=new WeakMap;function v(_,k){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,k)&&!S(_.getParentNode()))?f:""}function S(_){return D(_)&&!d(_,["documentHead","documentBody","flowMapping","flowSequence"])}function L(_,k){return b(" ".repeat(_),k)}E.exports={alignWithSpaces:L,shouldPrintEndComments:S,printNextEmptyLine:v}}}),xE=Fe({"src/language-yaml/print/flow-mapping-sequence.js"(m,E){$e();var{builders:{ifBreak:f,line:b,softline:D,hardline:c,join:d}}=wn(),{isEmptyNode:h,getLast:v,hasEndComments:S}=Qa(),{printNextEmptyLine:L,alignWithSpaces:_}=dl();function k(x,j,Q){let ee=x.getValue(),R=ee.type==="flowMapping",X=R?"{":"[",G=R?"}":"]",ne=D;R&&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((R,X)=>[j(),X===ee.children.length-1?"":[",",b,ee.children[X].position.start.line!==ee.children[X+1].position.start.line?L(R,Q.originalText):""]],"children")}E.exports={printFlowMapping:k,printFlowSequence:k}}}),wE=Fe({"src/language-yaml/print/mapping-item.js"(m,E){$e();var{builders:{conditionalGroup:f,group:b,hardline:D,ifBreak:c,join:d,line:h}}=wn(),{hasLeadingComments:v,hasMiddleComments:S,hasTrailingComment:L,hasEndComments:_,isNode:k,isEmptyNode:C,isInlineNode:x}=Qa(),{alignWithSpaces:j}=dl();function Q(G,ne,Z,De,F){let{key:J,value:w}=G,$=C(J),y=C(w);if($&&y)return": ";let T=De("key"),M=R(G)?" ":"";if(y)return G.type==="flowMappingItem"&&ne.type==="flowMapping"?T:G.type==="mappingItem"&&ee(J.content,F)&&!L(J.content)&&(!ne.tag||ne.tag.value!=="tag:yaml.org,2002:set")?[T,M,":"]:["? ",j(2,T)];let U=De("value");if($)return[": ",j(2,U)];if(v(w)||!x(J.content))return["? ",j(2,T),D,d("",Z.map(De,"value","leadingComments").map(fe=>[fe,D])),": ",j(2,U)];if(X(J.content)&&!v(J.content)&&!S(J.content)&&!L(J.content)&&!_(J)&&!v(w.content)&&!S(w.content)&&!_(w)&&ee(w.content,F))return[T,M,": ",U];let q=Symbol("mappingKey"),z=b([c("? "),b(j(2,T),{id:q})]),ie=[D,": ",j(2,U)],ce=[M,":"];v(w.content)||_(w)&&w.content&&!k(w.content,["mapping","sequence"])||ne.type==="mapping"&&L(J.content)&&x(w.content)||k(w.content,["mapping","sequence"])&&w.content.tag===null&&w.content.anchor===null?ce.push(D):w.content&&ce.push(h),ce.push(U);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:q})]])}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(`
257
- `);case"always":return!/[\n ]/.test(G.value);default:return!1}}function R(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}}),FE=Fe({"src/language-yaml/print/block.js"(m,E){$e();var{builders:{dedent:f,dedentToRoot:b,fill:D,hardline:c,join:d,line:h,literalline:v,markAsRoot:S},utils:{getDocParts:L}}=wn(),{getAncestorCount:_,getBlockValueLineContents:k,hasIndicatorComment:C,isLastDescendantNode:x,isNode:j}=Qa(),{alignWithSpaces:Q}=dl();function ee(R,X,G){let ne=R.getValue(),Z=_(R,$=>j($,["sequence","mapping"])),De=x(R),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=k(ne,{parentIndent:Z,isLastDescendant:De,options:G}),w=[];for(let[$,y]of J.entries())$===0&&w.push(c),w.push(D(L(d(h,y)))),$!==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}}),NE=Fe({"src/language-yaml/printer-yaml.js"(m,E){$e();var{builders:{breakParent:f,fill:b,group:D,hardline:c,join:d,line:h,lineSuffix:v,literalline:S},utils:{getDocParts:L,replaceTextEndOfLine:_}}=wn(),{isPreviousLineEmpty:k}=ye(),{insertPragma:C,isPragma:x}=EE(),{locStart:j}=AE(),Q=CE(),{getFlowScalarLineContents:ee,getLastDescendantNode:R,hasLeadingComments:X,hasMiddleComments:G,hasTrailingComment:ne,hasEndComments:Z,hasPrettierIgnore:De,isLastDescendantNode:F,isNode:J,isInlineNode:w}=Qa(),$=SE(),{alignWithSpaces:y,printNextEmptyLine:T,shouldPrintEndComments:M}=dl(),{printFlowMapping:U,printFlowSequence:q}=xE(),z=wE(),ie=FE();function ce(oe,Ue,et){let Ge=oe.getValue(),ht=[];Ge.type!=="mappingValue"&&X(Ge)&&ht.push([d(c,oe.map(et,"leadingComments")),c]);let{tag:be,anchor:Ie}=Ge;be&&ht.push(et("tag")),be&&Ie&&ht.push(" "),Ie&&ht.push(et("anchor"));let ft="";J(Ge,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!F(oe)&&(ft=T(oe,Ue.originalText)),(be||Ie)&&(J(Ge,["sequence","mapping"])&&!G(Ge)?ht.push(c):ht.push(" ")),G(Ge)&&ht.push([Ge.middleComments.length===1?"":c,d(c,oe.map(et,"middleComments")),c]);let pt=oe.getParentNode();return De(oe)?ht.push(_(Ue.originalText.slice(Ge.position.start.offset,Ge.position.end.offset).trimEnd(),S)):ht.push(D(ge(Ge,pt,oe,Ue,et))),ne(Ge)&&!J(Ge,["document","documentHead"])&&ht.push(v([Ge.type==="mappingValue"&&!Ge.content?"":" ",pt.type==="mappingKey"&&oe.getParentNode(2).type==="mapping"&&w(Ge)?"":f,et("trailingComment")])),M(Ge)&&ht.push(y(Ge.type==="sequenceItem"?2:0,[c,d(c,oe.map(Jt=>[k(Ue.originalText,Jt.getValue(),j)?c:"",et()],"endComments"))])),ht.push(ft),ht}function ge(oe,Ue,et,Ge,ht){switch(oe.type){case"root":{let{children:be}=oe,Ie=[];et.each((pt,Jt)=>{let Re=be[Jt],Ce=be[Jt+1];Jt!==0&&Ie.push(c),Ie.push(ht()),Ne(Re,Ce)?(Ie.push(c,"..."),ne(Re)&&Ie.push(" ",ht("trailingComment"))):Ce&&!ne(Ce.head)&&Ie.push(c,"---")},"children");let ft=R(oe);return(!J(ft,["blockLiteral","blockFolded"])||ft.chomping!=="keep")&&Ie.push(c),Ie}case"document":{let be=Ue.children[et.getName()+1],Ie=[];return se(oe,be,Ue,Ge)==="head"&&((oe.head.children.length>0||oe.head.endComments.length>0)&&Ie.push(ht("head")),ne(oe.head)?Ie.push(["---"," ",ht(["head","trailingComment"])]):Ie.push("---")),fe(oe)&&Ie.push(ht("body")),d(c,Ie)}case"documentHead":return d(c,[...et.map(ht,"children"),...et.map(ht,"endComments")]);case"documentBody":{let{children:be,endComments:Ie}=oe,ft="";if(be.length>0&&Ie.length>0){let pt=R(oe);J(pt,["blockFolded","blockLiteral"])?pt.chomping!=="keep"&&(ft=[c,c]):ft=c}return[d(c,et.map(ht,"children")),ft,d(c,et.map(ht,"endComments"))]}case"directive":return["%",d(" ",[oe.name,...oe.parameters])];case"comment":return["#",oe.value];case"alias":return["*",oe.value];case"tag":return Ge.originalText.slice(oe.position.start.offset,oe.position.end.offset);case"anchor":return["&",oe.value];case"plain":return qe(oe.type,Ge.originalText.slice(oe.position.start.offset,oe.position.end.offset),Ge);case"quoteDouble":case"quoteSingle":{let be="'",Ie='"',ft=Ge.originalText.slice(oe.position.start.offset+1,oe.position.end.offset-1);if(oe.type==="quoteSingle"&&ft.includes("\\")||oe.type==="quoteDouble"&&/\\[^"]/.test(ft)){let Jt=oe.type==="quoteDouble"?Ie:be;return[Jt,qe(oe.type,ft,Ge),Jt]}if(ft.includes(Ie))return[be,qe(oe.type,oe.type==="quoteDouble"?ft.replace(/\\"/g,Ie).replace(/'/g,be.repeat(2)):ft,Ge),be];if(ft.includes(be))return[Ie,qe(oe.type,oe.type==="quoteSingle"?ft.replace(/''/g,be):ft,Ge),Ie];let pt=Ge.singleQuote?be:Ie;return[pt,qe(oe.type,ft,Ge),pt]}case"blockFolded":case"blockLiteral":return ie(et,ht,Ge);case"mapping":case"sequence":return d(c,et.map(ht,"children"));case"sequenceItem":return["- ",y(2,oe.content?ht("content"):"")];case"mappingKey":case"mappingValue":return oe.content?ht("content"):"";case"mappingItem":case"flowMappingItem":return z(oe,Ue,et,ht,Ge);case"flowMapping":return U(et,ht,Ge);case"flowSequence":return q(et,ht,Ge);case"flowSequenceItem":return ht("content");default:throw new Error(`Unexpected node type ${oe.type}`)}}function fe(oe){return oe.body.children.length>0||Z(oe.body)}function Ne(oe,Ue){return ne(oe)||Ue&&(Ue.head.children.length>0||Z(Ue.head))}function se(oe,Ue,et,Ge){return et.children[0]===oe&&/---(?:\s|$)/.test(Ge.originalText.slice(j(oe),j(oe)+4))||oe.head.children.length>0||Z(oe.head)||ne(oe.head)?"head":Ne(oe,Ue)?!1:Ue?"root":!1}function qe(oe,Ue,et){let Ge=ee(oe,Ue,et);return d(c,Ge.map(ht=>b(L(d(h,ht)))))}function he(oe,Ue){if(J(Ue))switch(delete Ue.position,Ue.type){case"comment":if(x(Ue.value))return null;break;case"quoteDouble":case"quoteSingle":Ue.type="quote";break}}E.exports={preprocess:$,embed:Q,print:ce,massageAstNode:he,insertPragma:C}}}),_E=Fe({"src/language-yaml/options.js"(m,E){$e();var f=Ha();E.exports={bracketSpacing:f.bracketSpacing,singleQuote:f.singleQuote,proseWrap:f.proseWrap}}}),TE=Fe({"src/language-yaml/parsers.js"(){$e()}}),kE=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}}}),LE=Fe({"src/language-yaml/index.js"(m,E){$e();var f=ta(),b=NE(),D=_E(),c=TE(),d=[f(kE(),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}}}),PE=Fe({"src/languages.js"(m,E){$e(),E.exports=[d2(),k2(),$2(),J2(),eE(),vE(),LE()]}});$e();var{version:BE}=Zr(),Xa=Tv(),{getSupportInfo:ME}=Ft(),IE=kv(),OE=PE(),jE=wn();function ra(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:[...OE,...Array.isArray(d)?d:Object.values(d)]}),m(...b)}}var Xf=ra(Xa.formatWithCursor);st.exports={formatWithCursor:Xf,format(m,E){return Xf(m,E).formatted},check(m,E){let{formatted:f}=Xf(m,E);return f===m},doc:jE,getSupportInfo:ra(ME,0),version:BE,util:IE,__debug:{parse:ra(Xa.parse),formatAST:ra(Xa.formatAST),formatDoc:ra(Xa.formatDoc),printToDoc:ra(Xa.printToDoc),printDocToString:ra(Xa.printDocToString)}}});return Cf()})})(Lm);var ED=Lm.exports,Pm={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})},B=(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=>B(a({},"__esModule",{value:!0}),Y),te,N=A({"<define:process>"(){te={env:{},argv:[]}}}),ue=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
258
-
259
- ${Be}`}g.exports={isPragma:W,hasPragma:Ae,insertPragma:Pe}}}),ke=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}}}),Je={};O(Je,{__assign:()=>Ji,__asyncDelegator:()=>Ln,__asyncGenerator:()=>en,__asyncValues:()=>qn,__await:()=>Ut,__awaiter:()=>we,__classPrivateFieldGet:()=>mi,__classPrivateFieldSet:()=>us,__createBinding:()=>Ve,__decorate:()=>ct,__exportStar:()=>$t,__extends:()=>me,__generator:()=>tt,__importDefault:()=>zr,__importStar:()=>Hr,__makeTemplateObject:()=>Pn,__metadata:()=>Se,__param:()=>xt,__read:()=>kn,__rest:()=>Le,__spread:()=>Lt,__spreadArrays:()=>Tt,__values:()=>pn});function me(Y,g){Ai(Y,g);function W(){this.constructor=Y}Y.prototype=g===null?Object.create(g):(W.prototype=g.prototype,new W)}function Le(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 ct(Y,g,W,Ae){var Pe=arguments.length,Be=Pe<3?g:Ae===null?Ae=Object.getOwnPropertyDescriptor(g,W):Ae,Xe;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--)(Xe=Y[mt])&&(Be=(Pe<3?Xe(Be):Pe>3?Xe(g,W,Be):Xe(g,W))||Be);return Pe>3&&Be&&Object.defineProperty(g,W,Be),Be}function xt(Y,g){return function(W,Ae){g(W,Ae,Y)}}function Se(Y,g){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(Y,g)}function we(Y,g,W,Ae){function Pe(Be){return Be instanceof W?Be:new W(function(Xe){Xe(Be)})}return new(W||(W=Promise))(function(Be,Xe){function mt(yt){try{it(Ae.next(yt))}catch(Ft){Xe(Ft)}}function jt(yt){try{it(Ae.throw(yt))}catch(Ft){Xe(Ft)}}function it(yt){yt.done?Be(yt.value):Pe(yt.value).then(mt,jt)}it((Ae=Ae.apply(Y,g||[])).next())})}function tt(Y,g){var W={label:0,sent:function(){if(Be[0]&1)throw Be[1];return Be[1]},trys:[],ops:[]},Ae,Pe,Be,Xe;return Xe={next:mt(0),throw:mt(1),return:mt(2)},typeof Symbol=="function"&&(Xe[Symbol.iterator]=function(){return this}),Xe;function mt(it){return function(yt){return jt([it,yt])}}function jt(it){if(Ae)throw new TypeError("Generator is already executing.");for(;W;)try{if(Ae=1,Pe&&(Be=it[0]&2?Pe.return:it[0]?Pe.throw||((Be=Pe.return)&&Be.call(Pe),0):Pe.next)&&!(Be=Be.call(Pe,it[1])).done)return Be;switch(Pe=0,Be&&(it=[it[0]&2,Be.value]),it[0]){case 0:case 1:Be=it;break;case 4:return W.label++,{value:it[1],done:!1};case 5:W.label++,Pe=it[1],it=[0];continue;case 7:it=W.ops.pop(),W.trys.pop();continue;default:if(Be=W.trys,!(Be=Be.length>0&&Be[Be.length-1])&&(it[0]===6||it[0]===2)){W=0;continue}if(it[0]===3&&(!Be||it[1]>Be[0]&&it[1]<Be[3])){W.label=it[1];break}if(it[0]===6&&W.label<Be[1]){W.label=Be[1],Be=it;break}if(Be&&W.label<Be[2]){W.label=Be[2],W.ops.push(it);break}Be[2]&&W.ops.pop(),W.trys.pop();continue}it=g.call(Y,W)}catch(yt){it=[6,yt],Pe=0}finally{Ae=Be=0}if(it[0]&5)throw it[1];return{value:it[0]?it[1]:void 0,done:!0}}}function Ve(Y,g,W,Ae){Ae===void 0&&(Ae=W),Y[Ae]=g[W]}function $t(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=[],Xe;try{for(;(g===void 0||g-- >0)&&!(Pe=Ae.next()).done;)Be.push(Pe.value)}catch(mt){Xe={error:mt}}finally{try{Pe&&!Pe.done&&(W=Ae.return)&&W.call(Ae)}finally{if(Xe)throw Xe.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],Xe=0,mt=Be.length;Xe<mt;Xe++,Pe++)Ae[Pe]=Be[Xe];return Ae}function Ut(Y){return this instanceof Ut?(this.v=Y,this):new Ut(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={},Xe("next"),Xe("throw"),Xe("return"),Pe[Symbol.asyncIterator]=function(){return this},Pe;function Xe(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 Ut?Promise.resolve(It.value.v).then(it,yt):Ft(Be[0][2],It)}function it(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(Xe){return(W=!W)?{value:Ut(Y[Pe](Xe)),done:Pe==="return"}:Be?Be(Xe):Xe}:Be}}function qn(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(Xe){return new Promise(function(mt,jt){Xe=Y[Be](Xe),Pe(mt,jt,Xe.done,Xe.value)})}}function Pe(Be,Xe,mt,jt){Promise.resolve(jt).then(function(it){Be({value:it,done:mt})},Xe)}}function Pn(Y,g){return Object.defineProperty?Object.defineProperty(Y,"raw",{value:g}):Y.raw=g,Y}function Hr(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 zr(Y){return Y&&Y.__esModule?Y:{default:Y}}function mi(Y,g){if(!g.has(Y))throw new TypeError("attempted to get private field on non-instance");return g.get(Y)}function us(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 Ai,Ji,nr=A({"node_modules/tslib/tslib.es6.js"(){N(),Ai=function(Y,g){return Ai=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])},Ai(Y,g)},Ji=function(){return Ji=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},Ji.apply(this,arguments)}}}),Ru=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=`
260
- `,W="\r",Ae=function(){function Pe(Be){this.string=Be;for(var Xe=[0],mt=0;mt<Be.length;)switch(Be[mt]){case g:mt+=g.length,Xe.push(mt);break;case W:mt+=W.length,Be[mt]===g&&(mt+=g.length),Xe.push(mt);break;default:mt++;break}this.offsets=Xe}return Pe.prototype.locationForIndex=function(Be){if(Be<0||Be>this.string.length)return null;for(var Xe=0,mt=this.offsets;mt[Xe+1]<=Be;)Xe++;var jt=Be-mt[Xe];return{line:Xe,column:jt}},Pe.prototype.indexForLocation=function(Be){var Xe=Be.line,mt=Be.column;return Xe<0||Xe>=this.offsets.length||mt<0||mt>this.lengthOfLine(Xe)?null:this.offsets[Xe]+mt},Pe.prototype.lengthOfLine=function(Be){var Xe=this.offsets[Be],mt=Be===this.offsets.length-1?this.string.length:this.offsets[Be+1];return mt-Xe},Pe}();Y.LinesAndColumns=Ae,Y.default=Ae}}),sf=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}}),Oa=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}}),af=p({"node_modules/yaml-unist-parser/lib/attach.js"(Y){N(),Y.__esModule=!0;var g=sf(),W=Oa();function Ae(it){g.defineParents(it);var yt=Pe(it),Ft=it.children.slice();it.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();Xe(It,yt,Ft[0])})}Y.attachComments=Ae;function Pe(it){for(var yt=Array.from(new Array(it.position.end.line),function(){return{}}),Ft=0,It=it.comments;Ft<It.length;Ft++){var _t=It[Ft];yt[_t.position.start.line-1].comment=_t}return Be(yt,it),yt}function Be(it,yt){if(yt.position.start.offset!==yt.position.end.offset){if("leadingComments"in yt){var Ft=yt.position.start,It=it[Ft.line-1].leadingAttachableNode;(!It||Ft.column<It.position.start.column)&&(it[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=it[_t.line-1].trailingAttachableNode;(!Gt||_t.column>=Gt.position.end.column)&&(it[_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=it[K-1].trailingNode;(!I||_t.column>=I.position.end.column)&&(it[K-1].trailingNode=yt)}"children"in yt&&yt.children.forEach(function(H){Be(it,H)})}}function Xe(it,yt,Ft){var It=it.position.start.line,_t=yt[It-1].trailingAttachableNode;if(_t){if(_t.trailingComment)throw new Error("Unexpected multiple trailing comment at "+W.getPointText(it.position.start));g.defineParents(it,_t),_t.trailingComment=it;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,it)){g.defineParents(it,Xt),Xt.endComments.push(it);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(it,I),I.leadingComments.push(it);return}}var H=Ft.children[1];g.defineParents(it,H),H.endComments.push(it)}function mt(it,yt){if(it.position.start.offset<yt.position.start.offset&&it.position.end.offset>yt.position.end.offset)switch(it.type){case"flowMapping":case"flowSequence":return it.children.length===0||yt.position.start.line>it.children[it.children.length-1].position.end.line}if(yt.position.end.offset<it.position.end.offset)return!1;switch(it.type){case"sequenceItem":return yt.position.start.column>it.position.start.column;case"mappingKey":case"mappingValue":return yt.position.start.column>it._parent.position.start.column&&(it.children.length===0||it.children.length===1&&it.children[0].type!=="blockFolded"&&it.children[0].type!=="blockLiteral")&&(it.type==="mappingValue"||jt(it));default:return!1}}function jt(it){return it.position.start!==it.position.end&&(it.children.length===0||it.position.start.offset!==it.children[0].position.start.offset)}}}),_r=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}}),Vu=p({"node_modules/yaml-unist-parser/lib/factories/root.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=_r();function Ae(Pe,Be,Xe){return g.__assign(g.__assign({},W.createNode("root",Pe)),{children:Be,comments:Xe})}Y.createRoot=Ae}}),of=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}}),ls=p({"node_modules/yaml-unist-parser/lib/factories/leading-comment-attachable.js"(Y){N(),Y.__esModule=!0;function g(){return{leadingComments:[]}}Y.createLeadingCommentAttachable=g}}),ja=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}}),cs=p({"node_modules/yaml-unist-parser/lib/factories/comment-attachable.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=ls(),Ae=ja();function Pe(){return g.__assign(g.__assign({},W.createLeadingCommentAttachable()),Ae.createTrailingCommentAttachable())}Y.createCommentAttachable=Pe}}),_o=p({"node_modules/yaml-unist-parser/lib/factories/alias.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=cs(),Ae=_r();function Pe(Be,Xe,mt){return g.__assign(g.__assign(g.__assign(g.__assign({},Ae.createNode("alias",Be)),W.createCommentAttachable()),Xe),{value:mt})}Y.createAlias=Pe}}),uf=p({"node_modules/yaml-unist-parser/lib/transforms/alias.js"(Y){N(),Y.__esModule=!0;var g=_o();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}}),lf=p({"node_modules/yaml-unist-parser/lib/factories/block-folded.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je));function W(Ae){return g.__assign(g.__assign({},Ae),{type:"blockFolded"})}Y.createBlockFolded=W}}),Qs=p({"node_modules/yaml-unist-parser/lib/factories/block-value.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=ls(),Ae=_r();function Pe(Be,Xe,mt,jt,it,yt){return g.__assign(g.__assign(g.__assign(g.__assign({},Ae.createNode("blockValue",Be)),W.createLeadingCommentAttachable()),Xe),{chomping:mt,indent:jt,value:it,indicatorComment:yt})}Y.createBlockValue=Pe}}),Uu=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={}))}}),cf=p({"node_modules/yaml-unist-parser/lib/factories/anchor.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=_r();function Ae(Pe,Be){return g.__assign(g.__assign({},W.createNode("anchor",Pe)),{value:Be})}Y.createAnchor=Ae}}),To=p({"node_modules/yaml-unist-parser/lib/factories/comment.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=_r();function Ae(Pe,Be){return g.__assign(g.__assign({},W.createNode("comment",Pe)),{value:Be})}Y.createComment=Ae}}),ff=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}}),pf=p({"node_modules/yaml-unist-parser/lib/factories/tag.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=_r();function Ae(Pe,Be){return g.__assign(g.__assign({},W.createNode("tag",Pe)),{value:Be})}Y.createTag=Ae}}),qu=p({"node_modules/yaml-unist-parser/lib/transforms/content.js"(Y){N(),Y.__esModule=!0;var g=Uu(),W=cf(),Ae=To(),Pe=ff(),Be=pf();function Xe(mt,jt,it){it===void 0&&(it=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),!it(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=Xe}}),Wu=p({"node_modules/yaml-unist-parser/lib/transforms/block-value.js"(Y){N(),Y.__esModule=!0;var g=Qs(),W=Oa(),Ae=qu(),Pe;(function(Xe){Xe.CLIP="clip",Xe.STRIP="strip",Xe.KEEP="keep"})(Pe||(Pe={}));function Be(Xe,mt){var jt=Xe.cstNode,it=1,yt=jt.chomping==="CLIP"?0:1,Ft=jt.header.origEnd-jt.header.origStart,It=Ft-it-yt!==0,_t=mt.transformRange({origStart:jt.header.origStart,origEnd:jt.valueRange.origEnd}),Gt=null,Wt=Ae.transformContent(Xe,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}}),df=p({"node_modules/yaml-unist-parser/lib/transforms/block-folded.js"(Y){N(),Y.__esModule=!0;var g=lf(),W=Wu();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(Je));function W(Ae){return g.__assign(g.__assign({},Ae),{type:"blockLiteral"})}Y.createBlockLiteral=W}}),Gu=p({"node_modules/yaml-unist-parser/lib/transforms/block-literal.js"(Y){N(),Y.__esModule=!0;var g=$a(),W=Wu();function Ae(Pe,Be){return g.createBlockLiteral(W.transformAstBlockValue(Pe,Be))}Y.transformBlockLiteral=Ae}}),hf=p({"node_modules/yaml-unist-parser/lib/transforms/comment.js"(Y){N(),Y.__esModule=!0;var g=To();function W(Ae,Pe){return g.createComment(Pe.transformRange(Ae.range),Ae.comment)}Y.transformComment=W}}),mf=p({"node_modules/yaml-unist-parser/lib/factories/directive.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=cs(),Ae=_r();function Pe(Be,Xe,mt){return g.__assign(g.__assign(g.__assign({},Ae.createNode("directive",Be)),W.createCommentAttachable()),{name:Xe,parameters:mt})}Y.createDirective=Pe}}),Ra=p({"node_modules/yaml-unist-parser/lib/utils/extract-prop-comments.js"(Y){N(),Y.__esModule=!0;var g=Uu(),W=To();function Ae(Pe,Be){for(var Xe=0,mt=Pe.props;Xe<mt.length;Xe++){var jt=mt[Xe],it=Be.text[jt.origStart];switch(it){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(it))}}}Y.extractPropComments=Ae}}),Ju=p({"node_modules/yaml-unist-parser/lib/transforms/directive.js"(Y){N(),Y.__esModule=!0;var g=mf(),W=Ra();function Ae(Pe,Be){return W.extractPropComments(Pe,Be),g.createDirective(Be.transformRange(Pe.range),Pe.name,Pe.parameters)}Y.transformDirective=Ae}}),gf=p({"node_modules/yaml-unist-parser/lib/factories/document.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=_r(),Ae=ja();function Pe(Be,Xe,mt,jt){return g.__assign(g.__assign(g.__assign({},W.createNode("document",Be)),Ae.createTrailingCommentAttachable(jt)),{children:[Xe,mt]})}Y.createDocument=Pe}}),fs=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}}),ps=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}}),yf=p({"node_modules/yaml-unist-parser/lib/factories/document-body.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=ps(),Ae=_r();function Pe(Be,Xe,mt){return g.__assign(g.__assign(g.__assign({},Ae.createNode("documentBody",Be)),W.createEndCommentAttachable(mt)),{children:Xe?[Xe]:[]})}Y.createDocumentBody=Pe}}),ds=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}}),Yu=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}}),Hu=p({"node_modules/yaml-unist-parser/lib/transforms/document-body.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=yf(),Ae=ds(),Pe=Yu(),Be=Oa();function Xe(it,yt,Ft){var It,_t=it.cstNode,Gt=mt(_t,yt,Ft),Wt=Gt.comments,Xt=Gt.endComments,bn=Gt.documentTrailingComment,ye=Gt.documentHeadTrailingComment,K=yt.transformNode(it.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=Xe;function mt(it,yt,Ft){for(var It=[],_t=[],Gt=[],Wt=[],Xt=!1,bn=it.contents.length-1;bn>=0;bn--){var ye=it.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>=it.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(it,yt,Ft){var It=Pe.getMatchIndex(Ft.text.slice(it.valueRange.origEnd),/^\.\.\./),_t=It===-1?it.valueRange.origEnd:Math.max(0,it.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(it.valueRange.origEnd+3);return{position:Gt,documentEndPoint:Wt}}}}),Df=p({"node_modules/yaml-unist-parser/lib/factories/document-head.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=ps(),Ae=_r(),Pe=ja();function Be(Xe,mt,jt,it){return g.__assign(g.__assign(g.__assign(g.__assign({},Ae.createNode("documentHead",Xe)),W.createEndCommentAttachable(jt)),Pe.createTrailingCommentAttachable(it)),{children:mt})}Y.createDocumentHead=Be}}),zu=p({"node_modules/yaml-unist-parser/lib/transforms/document-head.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=Df(),Ae=Yu();function Pe(mt,jt){var it,yt=mt.cstNode,Ft=Be(yt,jt),It=Ft.directives,_t=Ft.comments,Gt=Ft.endComments,Wt=Xe(yt,It,jt),Xt=Wt.position,bn=Wt.endMarkerPoint;(it=jt.comments).push.apply(it,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 it=[],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,it.unshift(Gt))}return{directives:it,comments:yt,endComments:Ft}}function Xe(mt,jt,it){var yt=Ae.getMatchIndex(it.text.slice(0,mt.valueRange.origStart),/---\s*$/);yt>0&&!/[\r\n]/.test(it.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:it.transformRange(Ft),endMarkerPoint:yt===-1?null:it.transformOffset(yt)}}}}),bf=p({"node_modules/yaml-unist-parser/lib/transforms/document.js"(Y){N(),Y.__esModule=!0;var g=gf(),W=fs(),Ae=Hu(),Pe=zu();function Be(Xe,mt){var jt=Pe.transformDocumentHead(Xe,mt),it=jt.createDocumentHeadWithTrailingComment,yt=jt.documentHeadEndMarkerPoint,Ft=Ae.transformDocumentBody(Xe,mt,yt),It=Ft.documentBody,_t=Ft.documentEndPoint,Gt=Ft.documentTrailingComment,Wt=Ft.documentHeadTrailingComment,Xt=it(Wt);return Gt&&mt.comments.push(Gt),g.createDocument(W.createPosition(Xt.position.start,_t),Xt,It,Gt)}Y.transformDocument=Be}}),Qu=p({"node_modules/yaml-unist-parser/lib/factories/flow-collection.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=cs(),Ae=ps(),Pe=_r();function Be(Xe,mt,jt){return g.__assign(g.__assign(g.__assign(g.__assign(g.__assign({},Pe.createNode("flowCollection",Xe)),W.createCommentAttachable()),Ae.createEndCommentAttachable()),mt),{children:jt})}Y.createFlowCollection=Be}}),vf=p({"node_modules/yaml-unist-parser/lib/factories/flow-mapping.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=Qu();function Ae(Pe,Be,Xe){return g.__assign(g.__assign({},W.createFlowCollection(Pe,Be,Xe)),{type:"flowMapping"})}Y.createFlowMapping=Ae}}),Xu=p({"node_modules/yaml-unist-parser/lib/factories/flow-mapping-item.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=ls(),Ae=_r();function Pe(Be,Xe,mt){return g.__assign(g.__assign(g.__assign({},Ae.createNode("flowMappingItem",Be)),W.createLeadingCommentAttachable()),{children:[Xe,mt]})}Y.createFlowMappingItem=Pe}}),Va=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,Xe=W;Be<Xe.length;Be++){var mt=Xe[Be];mt&&"type"in mt&&mt.type==="COMMENT"?Ae.comments.push(Ae.transformNode(mt)):Pe.push(mt)}return Pe}Y.extractComments=g}}),Ku=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(Xe){var mt=W.find(function(jt){return"char"in jt&&jt.char===Xe});return mt?{origStart:mt.origOffset,origEnd:mt.origOffset+1}:null}),Pe=Ae[0],Be=Ae[1];return{additionalKeyRange:Pe,additionalValueRange:Be}}Y.getFlowMapItemAdditionalRanges=g}}),Zu=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}}),el=p({"node_modules/yaml-unist-parser/lib/utils/group-cst-flow-collection-items.js"(Y){N(),Y.__esModule=!0;var g=Zu();function W(Ae){for(var Pe=[],Be=g.createSlicer(Ae,1),Xe=!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),Xe=!1;continue}Xe=!0}return Xe&&Pe.push(Be(Ae.length-1)),Pe}Y.groupCstFlowCollectionItems=W}}),Ef=p({"node_modules/yaml-unist-parser/lib/factories/mapping-key.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=ps(),Ae=_r(),Pe=ja();function Be(Xe,mt){return g.__assign(g.__assign(g.__assign(g.__assign({},Ae.createNode("mappingKey",Xe)),Pe.createTrailingCommentAttachable()),W.createEndCommentAttachable()),{children:mt?[mt]:[]})}Y.createMappingKey=Be}}),Af=p({"node_modules/yaml-unist-parser/lib/factories/mapping-value.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=cs(),Ae=ps(),Pe=_r();function Be(Xe,mt){return g.__assign(g.__assign(g.__assign(g.__assign({},Pe.createNode("mappingValue",Xe)),W.createCommentAttachable()),Ae.createEndCommentAttachable()),{children:mt?[mt]:[]})}Y.createMappingValue=Be}}),ko=p({"node_modules/yaml-unist-parser/lib/transforms/pair.js"(Y){N(),Y.__esModule=!0;var g=Ef(),W=Af(),Ae=fs();function Pe(Be,Xe,mt,jt,it){var yt=Xe.transformNode(Be.key),Ft=Xe.transformNode(Be.value),It=yt||jt?g.createMappingKey(Xe.transformRange({origStart:jt?jt.origStart:yt.position.start.offset,origEnd:yt?yt.position.end.offset:jt.origStart+1}),yt):null,_t=Ft||it?W.createMappingValue(Xe.transformRange({origStart:it?it.origStart:Ft.position.start.offset,origEnd:Ft?Ft.position.end.offset:it.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}}),Cf=p({"node_modules/yaml-unist-parser/lib/transforms/flow-map.js"(Y){N(),Y.__esModule=!0;var g=vf(),W=Xu(),Ae=Va(),Pe=Ku(),Be=ds(),Xe=el(),mt=ko();function jt(it,yt){var Ft=Ae.extractComments(it.cstNode.items,yt),It=Xe.groupCstFlowCollectionItems(Ft),_t=it.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(it),_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(Je)),W=Qu();function Ae(Pe,Be,Xe){return g.__assign(g.__assign({},W.createFlowCollection(Pe,Be,Xe)),{type:"flowSequence"})}Y.createFlowSequence=Ae}}),st=p({"node_modules/yaml-unist-parser/lib/factories/flow-sequence-item.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=_r();function Ae(Pe,Be){return g.__assign(g.__assign({},W.createNode("flowSequenceItem",Pe)),{children:[Be]})}Y.createFlowSequenceItem=Ae}}),Qe=p({"node_modules/yaml-unist-parser/lib/transforms/flow-seq.js"(Y){N(),Y.__esModule=!0;var g=Xu(),W=Qt(),Ae=st(),Pe=fs(),Be=Va(),Xe=Ku(),mt=ds(),jt=el(),it=ko();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=Xe.getFlowMapItemAdditionalRanges(H),xe=le.additionalKeyRange,Me=le.additionalValueRange;return it.transformAstPair(ye,It,g.createFlowMappingItem,xe,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}}),ot=p({"node_modules/yaml-unist-parser/lib/factories/mapping.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=ls(),Ae=_r();function Pe(Be,Xe,mt){return g.__assign(g.__assign(g.__assign(g.__assign({},Ae.createNode("mapping",Be)),W.createLeadingCommentAttachable()),Xe),{children:mt})}Y.createMapping=Pe}}),rt=p({"node_modules/yaml-unist-parser/lib/factories/mapping-item.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je)),W=ls(),Ae=_r();function Pe(Be,Xe,mt){return g.__assign(g.__assign(g.__assign({},Ae.createNode("mappingItem",Be)),W.createLeadingCommentAttachable()),{children:[Xe,mt]})}Y.createMappingItem=Pe}}),Ct=p({"node_modules/yaml-unist-parser/lib/transforms/map.js"(Y){N(),Y.__esModule=!0;var g=ot(),W=rt(),Ae=fs(),Pe=Zu(),Be=Va(),Xe=Ra(),mt=ds(),jt=ko();function it(Ft,It){var _t=Ft.cstNode;_t.items.filter(function(bn){return bn.type==="MAP_KEY"||bn.type==="MAP_VALUE"}).forEach(function(bn){return Xe.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=it;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(Je)),W=cs(),Ae=_r();function Pe(Be,Xe,mt){return g.__assign(g.__assign(g.__assign(g.__assign({},Ae.createNode("plain",Be)),W.createCommentAttachable()),Xe),{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 Xe=Pe.cstNode;return g.createPlain(Be.transformRange({origStart:Xe.valueRange.origStart,origEnd:W.findLastCharIndex(Be.text,Xe.valueRange.origEnd-1,/\S/)+1}),Be.transformContent(Pe),Xe.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(Je));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(Je)),W=cs(),Ae=_r();function Pe(Be,Xe,mt){return g.__assign(g.__assign(g.__assign(g.__assign({},Ae.createNode("quoteValue",Be)),Xe),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(Je));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(Je)),W=ps(),Ae=ls(),Pe=_r();function Be(Xe,mt,jt){return g.__assign(g.__assign(g.__assign(g.__assign(g.__assign({},Pe.createNode("sequence",Xe)),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(Je)),W=cs(),Ae=ps(),Pe=_r();function Be(Xe,mt){return g.__assign(g.__assign(g.__assign(g.__assign({},Pe.createNode("sequenceItem",Xe)),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=fs(),W=xn(),Ae=On(),Pe=Va(),Be=Ra(),Xe=ds();function mt(jt,it){var yt=Pe.extractComments(jt.cstNode.items,it),Ft=yt.map(function(It,_t){Be.extractPropComments(It,it);var Gt=it.transformNode(jt.items[_t]);return Ae.createSequenceItem(g.createPosition(it.transformOffset(It.valueRange.origStart),Gt===null?it.transformOffset(It.valueRange.origStart+1):Gt.position.end),Gt)});return W.createSequence(g.createPosition(Ft[0].position.start,Xe.getLast(Ft).position.end),it.transformContent(jt),Ft)}Y.transformSeq=mt}}),Qn=p({"node_modules/yaml-unist-parser/lib/transform.js"(Y){N(),Y.__esModule=!0;var g=uf(),W=df(),Ae=Gu(),Pe=hf(),Be=Ju(),Xe=bf(),mt=Cf(),jt=Qe(),it=Ct(),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 Xe.transformDocument(Wt,Xt);case"FLOW_MAP":return mt.transformFlowMap(Wt,Xt);case"FLOW_SEQ":return jt.transformFlowSeq(Wt,Xt);case"MAP":return it.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}}),Cr=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}}),$e=p({"node_modules/yaml-unist-parser/lib/transforms/error.js"(Y){N(),Y.__esModule=!0;var g=Cr();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}}),Zr=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}}),hs=p({"node_modules/yaml-unist-parser/lib/transforms/offset.js"(Y){N(),Y.__esModule=!0;var g=Zr();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}}),Bs=p({"node_modules/yaml-unist-parser/lib/transforms/range.js"(Y){N(),Y.__esModule=!0;var g=fs();function W(Ae,Pe){return g.createPosition(Pe.transformOffset(Ae.origStart),Pe.transformOffset(Ae.origEnd))}Y.transformRange=W}}),gi=p({"node_modules/yaml-unist-parser/lib/utils/add-orig-range.js"(Y){N(),Y.__esModule=!0;var g=!0;function W(Xe){if(!Xe.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};Xe.forEach(function(jt){return Ae(jt,mt)})}}Y.addOrigRange=W;function Ae(Xe,mt){if(!(!Xe||typeof Xe!="object")&&mt(Xe)!==g)for(var jt=0,it=Object.keys(Xe);jt<it.length;jt++){var yt=it[jt];if(!(yt==="context"||yt==="error")){var Ft=Xe[yt];Array.isArray(Ft)?Ft.forEach(function(It){return Ae(It,mt)}):Ae(Ft,mt)}}}function Pe(Xe){return typeof Xe.start=="number"}function Be(Xe){return typeof Xe.offset=="number"}}}),ns=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 Xe=Ae(W);return function(mt){Be(Xe,mt)&&Pe(W,Xe=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=ds();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,Xe,mt,it);"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 Xe(yt){return yt.end}function mt(yt,Ft){yt.end=Ft}function jt(yt,Ft){return Ft.offset<yt.offset}function it(yt,Ft){return Ft.offset>yt.offset}}}),qr=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(`
261
- `);for(;H!==-1;)H+=1,I.push(H),H=K.indexOf(`
262
- `,H);return I}function Xe(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}=Xe(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 xe=H.length;return{line:xe,col:K-H[xe-1]+1}}function jt(K,I){let{lineStarts:H,src:le}=Xe(I);if(!H||!(K>=1)||K>H.length)return null;let xe=H[K-1],Me=H[K];for(;Me&&Me>xe&&le[Me-1]===`
263
- `;)--Me;return le.slice(xe,Me)}function it(K,I){let{start:H,end:le}=K,xe=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>xe)if(ve<=xe-10)Me=Me.substr(0,xe-1)+"…";else{let En=Math.round(xe/2);Me.length>ve+En&&(Me=Me.substr(0,ve+En-1)+"…"),ve-=Me.length-xe,Me="…"+Me.substr(1-xe)}let je=1,Et="";le&&(le.line===H.line&&ve+(le.col-H.col)<=xe+1?je=le.col-H.col:(je=Math.min(Me.length+1,xe)-ve,Et="…"));let Ot=ve>1?" ".repeat(ve-1):"",zt="^".repeat(je);return`${Me}
264
- ${Ot}${zt}${Et}`}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 xe=I;for(;xe<K.length&&!(K[xe]>H);)++xe;this.origStart=H+xe;let Me=xe;for(;xe<K.length&&!(K[xe]>=le);)++xe;return this.origEnd=le+xe,Me}},Ft=class{static addStringTerminator(K,I,H){if(H[H.length-1]===`
265
- `)return H;let le=Ft.endOfWhiteSpace(K,I);return le>=K.length||K[le]===`
266
- `?H+`
267
- `:H}static atDocumentBoundary(K,I,H){let le=K[I];if(!le)return!0;let xe=K[I-1];if(xe&&xe!==`
268
- `)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===`
269
- `||je===" "||je===" "}static endOfIdentifier(K,I){let H=K[I],le=H==="<",xe=le?[`
270
- `," "," ",">"]:[`
271
- `," "," ","[","]","{","}",","];for(;H&&xe.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!==`
272
- `;)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===`
273
- `)return I;for(;H&&H!==`
274
- `;)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 xe=Ft.endOfWhiteSpace(K,le),Me=K[xe];if(!Me||Me===`
275
- `)return xe}return null}static atBlank(K,I,H){let le=K[I];return le===`
276
- `||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!==`
277
- `&&K[I-1]===`
278
- `?I-1:Ft.endOfWhiteSpace(K,I):I}static foldNewline(K,I,H){let le=0,xe=!1,Me="",ve=K[I+1];for(;ve===" "||ve===" "||ve===`
279
- `;){switch(ve){case`
280
- `:le=0,I+=1,Me+=`
281
- `;break;case" ":le<=H&&(xe=!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&&(xe=!0),{fold:Me,offset:I,error:xe}}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,xe=this.props[K];return xe&&le[xe.start]===I?le.slice(xe.start+(H?1:0),xe.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(`
282
- `):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,xe]=I.match(/^(.*!)([^!]*)$/);return{handle:le,suffix:xe}}}}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]===`
283
- `)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&&it(this.linePos,K);le&&(this.message+=`:
284
-
285
- ${le}
286
- `)}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],xe=I;for(;le&&le!==`
287
- `&&!(H&&(le==="["||le==="]"||le==="{"||le==="}"||le===","));){let Me=K[xe+1];if(le===":"&&(!Me||Me===`
288
- `||Me===" "||Me===" "||H&&Me===",")||(le===" "||le===" ")&&Me==="#")break;xe+=1,le=Me}return xe}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===`
289
- `||le===" "||le===" ");)le=H[--I-1];let xe="";for(let ve=K;ve<I;++ve){let je=H[ve];if(je===`
290
- `){let{fold:Et,offset:Ot}=Ft.foldNewline(H,ve,-1);xe+=Et,ve=Ot}else if(je===" "||je===" "){let Et=ve,Ot=H[ve+1];for(;ve<I&&(Ot===" "||Ot===" ");)ve+=1,Ot=H[ve+1];Ot!==`
291
- `&&(xe+=ve>Et?H.slice(Et,ve+1):je)}else xe+=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:xe}}case"@":case"`":{let ve=`Plain value cannot start with reserved character ${Me}`;return{errors:[new Gt(this,ve)],str:xe}}default:return xe}}parseBlockValue(K){let{indent:I,inFlow:H,src:le}=this.context,xe=K,Me=K;for(let ve=le[xe];ve===`
292
- `&&!Ft.atDocumentBoundary(le,xe+1);ve=le[xe]){let je=Ft.endOfBlockIndent(le,I,xe+1);if(je===null||le[je]==="#")break;le[je]===`
293
- `?xe=je:(Me=ye.endOfLine(le,je,H),xe=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,xe=I,Me=le[xe];return Me&&Me!=="#"&&Me!==`
294
- `&&(xe=ye.endOfLine(le,I,H)),this.valueRange=new yt(I,xe),xe=Ft.endOfWhiteSpace(le,xe),xe=this.parseComment(xe),(!this.hasComment||this.valueRange.isEmpty())&&(xe=this.parseBlockValue(xe)),xe}};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}}),qa=p({"node_modules/yaml/dist/parse-cst.js"(Y){N();var g=qr(),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:xe}=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-xe:ye.indent,ve=g.Node.endOfWhiteSpace(H,K+1),je=H[ve],Et=je==="#",Ot=[],zt=null;for(;je===`
295
- `||je==="#";){if(je==="#"){let on=g.Node.endOfLine(H,ve+1);Ot.push(new g.Range(ve,on)),ve=on}else{le=!0,xe=ve+1;let on=g.Node.endOfWhiteSpace(H,xe);H[on]===`
296
- `&&Ot.length===0&&(zt=new W,xe=zt.parse({src:H},xe)),ve=g.Node.endOfIndent(H,xe)}je=H[ve]}if(g.Node.nextNodeIsIndented(je,ve-(xe+Me),this.type!==g.Type.SEQ_ITEM)?this.node=I({atLineStart:le,inCollection:!1,indent:Me,lineStart:xe,parent:this},ve):je&&xe>K+1&&(ve=xe-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(Et){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 Xe))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:Et}=ve.context;if(je>0&&ve.range.start>=Et+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),xe=le[0].range.start;for(;K.range.end=xe,K.valueRange&&K.valueRange.end>xe&&(K.valueRange.end=xe),K!==ye;)K=K.context.parent;return le}var Xe=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!==`
297
- `?!1:Xe.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),xe=this.items[0];xe.context.parent=this,this.valueRange=g.Range.copy(xe.valueRange);let Me=xe.range.start-xe.context.lineStart,ve=K;ve=g.Node.normalizeOffset(H,ve);let je=H[ve],Et=g.Node.endOfWhiteSpace(H,le)===ve,Ot=!1;for(;je;){for(;je===`
298
- `||je==="#";){if(Et&&je===`
299
- `&&!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&&!Xe.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===`
300
- `||Wn==="#")&&(ve=on)}je=H[ve],Et=!0}if(!je)break;if(ve!==le+Me&&(Et||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(xe.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===`
301
- `||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:Et,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],Et=!1,Ot=zt.includesTrailingLines,je){let on=ve-1,Wn=H[on];for(;Wn===" "||Wn===" ";)Wn=H[--on];Wn===`
302
- `&&(le=on+1,Et=!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 xe=1;xe<K.length;++xe){let Me=K[xe],{atLineStart:ve,indent:je}=Me.context;if(ve)for(let Et=0;Et<je;++Et)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!==`
303
- `&&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!==`
304
- `&&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===`
305
- `?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`
306
- `:if(I){let xe=new W;le=xe.parse({src:K},le),le<K.length&&this.directives.push(xe)}else le+=1,I=!0;break;case"#":{let xe=new Pe;le=xe.parse({src:K},le),this.directives.push(xe),I=!1}break;case"%":{let xe=new mt;le=xe.parse({parent:this,src:K},le),this.directives.push(xe),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),xe=H===ye;for(this.valueRange=new g.Range(le);!g.Node.atDocumentBoundary(I,le,g.Char.DOCUMENT_END);){switch(I[le]){case`
307
- `:if(xe){let Me=new W;le=Me.parse({src:I},le),le<I.length&&this.contents.push(Me)}else le+=1,xe=!0;H=le;break;case"#":{let Me=new Pe;le=Me.parse({src:I},le),this.contents.push(Me),xe=!1}break;default:{let Me=g.Node.endOfIndent(I,le),ve=K({atLineStart:xe,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,xe=!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`
308
- `: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+=`---
309
- `),H+=ye.join("")),H[H.length-1]!==`
310
- `&&(H+=`
311
- `),H}},it=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,xe=H[K-1];for(;xe===`
312
- `||xe===" "||xe===" ";){if(K-=1,K<=ye){if(this.chomping===yt.KEEP)break;return""}xe===`
313
- `&&(le=K),xe=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,Et=!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===`
314
- `)zt===`
315
- `?Ot+=`
316
- `:zt=`
317
- `;else{let sr=g.Node.endOfLine(H,on),Sr=H.slice(on,sr);on=sr,je&&(Wn===" "||Wn===" ")&&on<Me?(zt===" "?zt=`
318
- `:!En&&!Et&&zt===`
319
- `&&(zt=`
320
-
321
- `),Ot+=zt+Sr,zt=sr<K&&H[sr]||"",En=!0):(Ot+=zt+Sr,zt=je&&on<Me?" ":`
322
- `,En=!1),Et&&Sr!==""&&(Et=!1)}}return this.chomping===yt.STRIP?Ot:Ot+`
323
- `}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,xe=ye,Me=1;for(let ve=I[le];ve===`
324
- `&&(le+=1,!g.Node.atDocumentBoundary(I,le));ve=I[le]){let je=g.Node.endOfBlockIndent(I,K,le);if(je===null)break;let Et=I[je],Ot=je-(le+K);if(this.blockIndent){if(Et&&Et!==`
325
- `&&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]!==`
326
- `){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]===`
327
- `?le=je:le=xe=g.Node.endOfLine(I,je)}return this.chomping!==yt.KEEP&&(le=I[xe]?xe+1:xe),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:xe}=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`
328
- `:{xe=ve+1;let je=g.Node.endOfWhiteSpace(H,xe);if(H[je]===`
329
- `){let Et=new W;xe=Et.parse({src:H},xe),this.items.push(Et)}if(ve=g.Node.endOfIndent(H,xe),ve<=xe+le&&(Me=H[ve],ve<xe+le||Me!=="]"&&Me!=="}")){let Et="Insufficient indentation in flow collection";this.error=new g.YAMLSemanticError(this,Et)}}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===`
330
- `||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:xe,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),xe="",Me=I.start;return le.forEach(ve=>{let je=ye.slice(Me,ve.range.start);Me=ve.range.end,xe+=je+String(ve),xe[xe.length-1]===`
331
- `&&ye[Me-1]!==`
332
- `&&ye[Me]===`
333
- `&&(Me+=1)}),xe+=ye.slice(Me,I.end),g.Node.addStringTerminator(ye,I.end,xe)}},_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 xe="";for(let Me=K+1;Me<I-1;++Me){let ve=le[Me];if(ve===`
334
- `){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:Et,error:Ot}=g.Node.foldNewline(le,Me,H);xe+=je,Me=Et,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":xe+="\0";break;case"a":xe+="\x07";break;case"b":xe+="\b";break;case"e":xe+="\x1B";break;case"f":xe+="\f";break;case"n":xe+=`
335
- `;break;case"r":xe+="\r";break;case"t":xe+=" ";break;case"v":xe+="\v";break;case"N":xe+="…";break;case"_":xe+=" ";break;case"L":xe+="\u2028";break;case"P":xe+="\u2029";break;case" ":xe+=" ";break;case'"':xe+='"';break;case"/":xe+="/";break;case"\\":xe+="\\";break;case" ":xe+=" ";break;case"x":xe+=this.parseCharCode(Me+1,2,ye),Me+=2;break;case"u":xe+=this.parseCharCode(Me+1,4,ye),Me+=4;break;case"U":xe+=this.parseCharCode(Me+1,8,ye),Me+=8;break;case`
336
- `: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)}`)),xe+="\\"+le[Me]}else if(ve===" "||ve===" "){let je=Me,Et=le[Me+1];for(;Et===" "||Et===" ";)Me+=1,Et=le[Me+1];Et!==`
337
- `&&(xe+=Me>je?le.slice(je,Me+1):ve)}else xe+=ve}return ye.length>0?{errors:ye,str:xe}:xe}parseCharCode(ye,K,I){let{src:H}=this.context,le=H.substr(ye,K),xe=le.length===K&&/^[0-9a-fA-F]+$/.test(le)?parseInt(le,16):NaN;return isNaN(xe)?(I.push(new g.YAMLSyntaxError(this,`Invalid escape sequence ${H.substr(ye-2,K+2)}`)),H.substr(ye-2,K+2)):String.fromCodePoint(xe)}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 xe="";for(let Me=K+1;Me<I-1;++Me){let ve=le[Me];if(ve===`
338
- `){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:Et,error:Ot}=g.Node.foldNewline(le,Me,H);xe+=je,Me=Et,Ot&&ye.push(new g.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if(ve==="'")xe+=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,Et=le[Me+1];for(;Et===" "||Et===" ";)Me+=1,Et=le[Me+1];Et!==`
339
- `&&(xe+=Me>je?le.slice(je,Me+1):ve)}else xe+=ve}return ye.length>0?{errors:ye,str:xe}:xe}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 it(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:xe,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 Et=new Xt(this,ve),{props:Ot,type:zt,valueStart:En}=Et.parseProps(je),on=Wt(zt,Ot),Wn=on.parse(Et,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),Et.nodeStartsCollection(on)){!on.error&&!Et.atLineStart&&Et.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 Xe(on);return Wn=sr.parse(new Xt(Et),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=xe??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]===`
340
- `||H[le-1]===`
341
- `?!1:(le=g.Node.endOfWhiteSpace(H,le),H[le]===":")}parseProps(ye){let{inFlow:K,parent:I,src:H}=this,le=[],xe=!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===`
342
- `;){if(Me===`
343
- `){let je=ye,Et;do Et=je+1,je=g.Node.endOfIndent(H,Et);while(H[je]===`
344
- `);let Ot=je-(Et+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=Et,xe=!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)),xe=!0,ye=g.Node.endOfWhiteSpace(H,je)}Me=H[ye]}xe&&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,xe)=>(le.length>1&&K.push(xe),`
345
- `)));let I=[],H=0;do{let le=new jt,xe=new Xt({src:ye});H=le.parse(xe,H),I.push(le)}while(H<ye.length);return I.setOrigRanges=()=>{if(K.length===0)return!1;for(let xe=1;xe<K.length;++xe)K[xe]-=xe;let le=0;for(let xe=0;xe<I.length;++xe)le=I[xe].setOrigRanges(K,le);return K.splice(0,K.length),!0},I.toString=()=>I.join(`...
346
- `),I}Y.parse=bn}}),rs=p({"node_modules/yaml/dist/resolveSeq-d03cb037.js"(Y){N();var g=qr();function W(pe,de,We){return We?`#${We.replace(/[\s\S]^/gm,`$&${de}#`)}
347
- ${de}${pe}`:pe}function Ae(pe,de,We){return We?We.indexOf(`
348
- `)===-1?`${pe} #${We}`:`${pe}
349
- `+We.replace(/^/gm,`${de||""}#`):pe}var Pe=class{};function Be(pe,de,We){if(Array.isArray(pe))return pe.map((He,Ke)=>Be(He,String(Ke),We));if(pe&&typeof pe.toJSON=="function"){let He=We&&We.anchors&&We.anchors.get(pe);He&&(We.onCreate=Ze=>{He.res=Ze,delete We.onCreate});let Ke=pe.toJSON(de,We);return He&&We.onCreate&&We.onCreate(Ke),Ke}return(!We||!We.keep)&&typeof pe=="bigint"?Number(pe):pe}var Xe=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 Ke=de.length-1;Ke>=0;--Ke){let Ze=de[Ke];if(Number.isInteger(Ze)&&Ze>=0){let At=[];At[Ze]=He,He=At}else{let At={};Object.defineProperty(At,Ze,{value:He,writable:!0,enumerable:!0,configurable:!0}),He=At}}return pe.createNode(He,!1)}var jt=pe=>pe==null||typeof pe=="object"&&pe[Symbol.iterator]().next().done,it=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,Ke=this.get(We,!0);if(Ke instanceof it)Ke.addIn(He,de);else if(Ke===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 it)return He.deleteIn(We);throw new Error(`Expected YAML collection at ${de}. Remaining path: ${We}`)}getIn(pe,de){let[We,...He]=pe,Ke=this.get(We,!0);return He.length===0?!de&&Ke instanceof Xe?Ke.value:Ke:Ke instanceof it?Ke.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 Xe&&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 it?He.hasIn(We):!1}setIn(pe,de){let[We,...He]=pe;if(He.length===0)this.set(We,de);else{let Ke=this.get(We,!0);if(Ke instanceof it)Ke.setIn(He,de);else if(Ke===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:Ke,flowChars:Ze,isMap:At,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=At&&this.hasAllNullValues();pe=Object.assign({},pe,{allNullValues:lr,indent:wt,inFlow:Mn,type:null});let cr=!1,Vn=!1,rr=this.items.reduce((Rr,ur,Wr)=>{let gr;ur&&(!cr&&ur.spaceBefore&&Rr.push({type:"comment",str:""}),ur.commentBefore&&ur.commentBefore.match(/^.*$/gm).forEach(Ga=>{Rr.push({type:"comment",str:`#${Ga}`})}),ur.comment&&(gr=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 Fr=hn(ur,pe,()=>gr=null,()=>cr=!0);return Mn&&!Vn&&Fr.includes(`
350
- `)&&(Vn=!0),Mn&&Wr<this.items.length-1&&(Fr+=","),Fr=Ae(Fr,wt,gr),cr&&(gr||Mn)&&(cr=!1),Rr.push({type:"item",str:Fr}),Rr},[]),tr;if(rr.length===0)tr=Ze.start+Ze.end;else if(Mn){let{start:Rr,end:ur}=Ze,Wr=rr.map(gr=>gr.str);if(Vn||Wr.reduce((gr,Fr)=>gr+Fr.length+2,2)>it.maxFlowStringSingleLineLength){tr=Rr;for(let gr of Wr)tr+=gr?`
351
- ${rn}${Kt}${gr}`:`
352
- `;tr+=`
353
- ${Kt}${ur}`}else tr=`${Rr} ${Wr.join(" ")} ${ur}`}else{let Rr=rr.map(Ke);tr=Rr.shift();for(let ur of Rr)tr+=ur?`
354
- ${Kt}${ur}`:`
355
- `}return this.comment?(tr+=`
356
- `+this.comment.replace(/^/gm,`${Kt}#`),We&&We()):cr&&He&&He(),tr}};g._defineProperty(it,"maxFlowStringSingleLineLength",60);function yt(pe){let de=pe instanceof Xe?pe.value:pe;return de&&typeof de=="string"&&(de=Number(de)),Number.isInteger(de)&&de>=0?de:null}var Ft=class extends it{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 Xe?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 Ke of this.items)We.push(Be(Ke,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 Xe(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),Ke=Be(this.value,He,pe);He in de?Object.defineProperty(de,He,{value:Ke,writable:!0,enumerable:!0,configurable:!0}):de[He]=Ke}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:Ke,simpleKeys:Ze}=pe.doc.options,{key:At,value:wt}=this,Kt=At instanceof Pe&&At.comment;if(Ze){if(Kt)throw new Error("With simple keys, key nodes cannot have comments");if(At instanceof it){let gr="With simple keys, collection cannot be used as a key value";throw new Error(gr)}}let rn=!Ze&&(!At||Kt||(At instanceof Pe?At instanceof it||At.type===g.Type.BLOCK_FOLDED||At.type===g.Type.BLOCK_LITERAL:typeof At=="object")),{doc:hn,indent:Mn,indentStep:lr,stringify:cr}=pe;pe=Object.assign({},pe,{implicitKey:!rn,indent:Mn+lr});let Vn=!1,rr=cr(At,pe,()=>Kt=null,()=>Vn=!0);if(rr=Ae(rr,pe.indent,Kt),!rn&&rr.length>1024){if(Ze)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");rn=!0}if(pe.allNullValues&&!Ze)return this.comment?(rr=Ae(rr,pe.indent,this.comment),de&&de()):Vn&&!Kt&&We&&We(),pe.inFlow&&!rn?rr:`? ${rr}`;rr=rn?`? ${rr}
357
- ${Mn}:`:`${rr}:`,this.comment&&(rr=Ae(rr,pe.indent,this.comment),de&&de());let tr="",Rr=null;if(wt instanceof Pe){if(wt.spaceBefore&&(tr=`
358
- `),wt.commentBefore){let gr=wt.commentBefore.replace(/^/gm,`${pe.indent}#`);tr+=`
359
- ${gr}`}Rr=wt.comment}else wt&&typeof wt=="object"&&(wt=hn.schema.createNode(wt,!0));pe.implicitKey=!1,!rn&&!this.comment&&wt instanceof Xe&&(pe.indentAtStart=rr.length+1),Vn=!1,!Ke&&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,()=>Rr=null,()=>Vn=!0),Wr=" ";return tr||this.comment?Wr=`${tr}
360
- ${pe.indent}`:!rn&&wt instanceof it?(!(ur[0]==="["||ur[0]==="{")||ur.includes(`
361
- `))&&(Wr=`
362
- ${pe.indent}`):ur[0]===`
363
- `&&(Wr=""),Vn&&!Rr&&We&&We(),Ae(rr+Wr+ur,pe.indent,Rr)}};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 it){let We=0;for(let He of pe.items){let Ke=Gt(He,de);Ke>We&&(We=Ke)}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:Ke,doc:Ze,implicitKey:At,inStringifyKey:wt}=de,Kt=Object.keys(Ke).find(hn=>Ke[hn]===He);if(!Kt&&wt&&(Kt=Ze.anchors.getName(He)||Ze.anchors.newName()),Kt)return`*${Kt}${At?" ":""}`;let rn=Ze.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,Ke=We.get(this.source);if(!Ke||Ke.res===void 0){let Ze="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new g.YAMLReferenceError(this.cstNode,Ze):new ReferenceError(Ze)}if(He>=0&&(Ke.count+=1,Ke.aliasCount===0&&(Ke.aliasCount=Gt(this.source,We)),Ke.count*Ke.aliasCount>He)){let Ze="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new g.YAMLReferenceError(this.cstNode,Ze):new ReferenceError(Ze)}return Ke.res}toString(pe){return Wt.stringify(this,pe)}};g._defineProperty(Wt,"default",!0);function Xt(pe,de){let We=de instanceof Xe?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 it{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 Ke=this.items.findIndex(Ze=>He(pe,Ze)<0);Ke===-1?this.items.push(pe):this.items.splice(Ke,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 Xe?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 Ke of this.items)Ke.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 Xe(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[Ke,Ze]of He)de instanceof Map?de.has(Ke)||de.set(Ke,Ze):de instanceof Set?de.add(Ke):Object.prototype.hasOwnProperty.call(de,Ke)||Object.defineProperty(de,Ke,{value:Ze,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},xe={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:Ke,resolve:Ze}of de)if(Ke){let At=pe.match(Ke);if(At){let wt=Ze.apply(null,At);return wt instanceof Xe||(wt=new Xe(wt)),He&&(wt.format=He),wt}}return We&&(pe=We(pe)),new Xe(pe)}var je="flow",Et="block",Ot="quoted",zt=(pe,de)=>{let We=pe[de+1];for(;We===" "||We===" ";){do We=pe[de+=1];while(We&&We!==`
364
- `);We=pe[de+1]}return de};function En(pe,de,We,He){let{indentAtStart:Ke,lineWidth:Ze=80,minContentWidth:At=20,onFold:wt,onOverflow:Kt}=He;if(!Ze||Ze<0)return pe;let rn=Math.max(1+At,1+Ze-de.length);if(pe.length<=rn)return pe;let hn=[],Mn={},lr=Ze-de.length;typeof Ke=="number"&&(Ke>Ze-Math.max(2,At)?hn.push(0):lr=Ze-Ke);let cr,Vn,rr=!1,tr=-1,Rr=-1,ur=-1;We===Et&&(tr=zt(pe,tr),tr!==-1&&(lr=tr+rn));for(let gr;gr=pe[tr+=1];){if(We===Ot&&gr==="\\"){switch(Rr=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(gr===`
365
- `)We===Et&&(tr=zt(pe,tr)),lr=tr+rn,cr=void 0;else{if(gr===" "&&Vn&&Vn!==" "&&Vn!==`
366
- `&&Vn!==" "){let Fr=pe[tr+1];Fr&&Fr!==" "&&Fr!==`
367
- `&&Fr!==" "&&(cr=tr)}if(tr>=lr)if(cr)hn.push(cr),lr=cr+rn,cr=void 0;else if(We===Ot){for(;Vn===" "||Vn===" ";)Vn=gr,gr=pe[tr+=1],rr=!0;let Fr=tr>ur+1?tr-2:Rr-1;if(Mn[Fr])return pe;hn.push(Fr),Mn[Fr]=!0,lr=Fr+rn,cr=void 0}else rr=!0}Vn=gr}if(rr&&Kt&&Kt(),hn.length===0)return pe;wt&&wt();let Wr=pe.slice(0,hn[0]);for(let gr=0;gr<hn.length;++gr){let Fr=hn[gr],Ga=hn[gr+1]||pe.length;Fr===0?Wr=`
368
- ${de}${pe.slice(0,Ga)}`:(We===Ot&&Mn[Fr]&&(Wr+=`${pe[Fr]}\\`),Wr+=`
369
- ${de}${pe.slice(Fr+1,Ga)}`)}return Wr}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,Ke=pe.length;if(Ke<=He)return!1;for(let Ze=0,At=0;Ze<Ke;++Ze)if(pe[Ze]===`
370
- `){if(Ze-At>He)return!0;if(At=Ze+1,Ke-At<=He)return!1}return!0}function Sr(pe,de){let{implicitKey:We}=de,{jsonEncoding:He,minMultiLineLength:Ke}=Me.doubleQuoted,Ze=JSON.stringify(pe);if(He)return Ze;let At=de.indent||(Wn(pe)?" ":""),wt="",Kt=0;for(let rn=0,hn=Ze[rn];hn;hn=Ze[++rn])if(hn===" "&&Ze[rn+1]==="\\"&&Ze[rn+2]==="n"&&(wt+=Ze.slice(Kt,rn)+"\\ ",rn+=1,Kt=rn,hn="\\"),hn==="\\")switch(Ze[rn+1]){case"u":{wt+=Ze.slice(Kt,rn);let Mn=Ze.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+=Ze.substr(rn,6)}rn+=5,Kt=rn+1}break;case"n":if(We||Ze[rn+2]==='"'||Ze.length<Ke)rn+=1;else{for(wt+=Ze.slice(Kt,rn)+`
371
-
372
- `;Ze[rn+2]==="\\"&&Ze[rn+3]==="n"&&Ze[rn+4]!=='"';)wt+=`
373
- `,rn+=2;wt+=At,Ze[rn+2]===" "&&(wt+="\\"),rn+=1,Kt=rn+1}break;default:rn+=1}return wt=Kt?wt+Ze.slice(Kt):Ze,We?wt:En(wt,At,Ot,on(de))}function yi(pe,de){if(de.implicitKey){if(/\n/.test(pe))return Sr(pe,de)}else if(/[ \t]\n|\n[ \t]/.test(pe))return Sr(pe,de);let We=de.indent||(Wn(pe)?" ":""),He="'"+pe.replace(/'/g,"''").replace(/\n+/g,`$&
374
- ${We}`)+"'";return de.implicitKey?He:En(He,We,je,on(de))}function ci(pe,de,We,He){let{comment:Ke,type:Ze,value:At}=pe;if(/\n[\t ]+$/.test(At)||/^\s*$/.test(At))return Sr(At,de);let wt=de.indent||(de.forceBlockIndent||Wn(At)?" ":""),Kt=wt?"2":"1",rn=Ze===g.Type.BLOCK_FOLDED?!1:Ze===g.Type.BLOCK_LITERAL?!0:!sr(At,Me.fold.lineWidth,wt.length),hn=rn?"|":">";if(!At)return hn+`
375
- `;let Mn="",lr="";if(At=At.replace(/[\n\t ]*$/,Vn=>{let rr=Vn.indexOf(`
376
- `);return rr===-1?hn+="-":(At===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}`)),Ke&&(hn+=" #"+Ke.replace(/ ?[\r\n]+/g," "),We&&We()),!At)return`${hn}${Kt}
377
- ${wt}${lr}`;if(rn)return At=At.replace(/\n+/g,`$&${wt}`),`${hn}
378
- ${wt}${Mn}${At}${lr}`;At=At.replace(/\n+/g,`
379
- $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${wt}`);let cr=En(`${Mn}${At}${lr}`,wt,Et,Me.fold);return`${hn}
380
- ${wt}${cr}`}function Dt(pe,de,We,He){let{comment:Ke,type:Ze,value:At}=pe,{actualString:wt,implicitKey:Kt,indent:rn,inFlow:hn}=de;if(Kt&&/[\n[\]{},]/.test(At)||hn&&/[[\]{},]/.test(At))return Sr(At,de);if(!At||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(At))return Kt||hn||At.indexOf(`
381
- `)===-1?At.indexOf('"')!==-1&&At.indexOf("'")===-1?yi(At,de):Sr(At,de):ci(pe,de,We,He);if(!Kt&&!hn&&Ze!==g.Type.PLAIN&&At.indexOf(`
382
- `)!==-1)return ci(pe,de,We,He);if(rn===""&&Wn(At))return de.forceBlockIndent=!0,ci(pe,de,We,He);let Mn=At.replace(/\n+/g,`$&
383
- ${rn}`);if(wt){let{tags:cr}=de.doc.schema;if(typeof ve(Mn,cr,cr.scalarFallback).value!="string")return Sr(At,de)}let lr=Kt?Mn:En(Mn,rn,je,on(de));return Ke&&!hn&&(lr.indexOf(`
384
- `)!==-1||Ke.indexOf(`
385
- `)!==-1)?(We&&We(),W(lr,rn,Ke)):lr}function tn(pe,de,We,He){let{defaultType:Ke}=Me,{implicitKey:Ze,inFlow:At}=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 ci(pe,de,We,He);case g.Type.QUOTE_DOUBLE:return Sr(Kt,de);case g.Type.QUOTE_SINGLE:return yi(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)||(Ze||At)&&(wt===g.Type.BLOCK_FOLDED||wt===g.Type.BLOCK_LITERAL))&&(wt=g.Type.QUOTE_DOUBLE);let hn=rn(wt);if(hn===null&&(hn=rn(Ke),hn===null))throw new Error(`Unsupported default string type ${Ke}`);return hn}function mn(pe){let{format:de,minFractionDigits:We,tag:He,value:Ke}=pe;if(typeof Ke=="bigint")return String(Ke);if(!isFinite(Ke))return isNaN(Ke)?".nan":Ke<0?"-.inf":".inf";let Ze=JSON.stringify(Ke);if(!de&&We&&(!He||He==="tag:yaml.org,2002:float")&&/^\d/.test(Ze)){let At=Ze.indexOf(".");At<0&&(At=Ze.length,Ze+=".");let wt=We-(Ze.length-At-1);for(;wt-- >0;)Ze+="0"}return Ze}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 Ke;for(let Ze=de.items.length-1;Ze>=0;--Ze){let At=de.items[Ze];if(!At||At.type!==g.Type.COMMENT){Ke=At;break}}if(Ke&&Ke.char!==We){let Ze=`Expected ${He} to end with ${We}`,At;typeof Ke.offset=="number"?(At=new g.YAMLSemanticError(de,Ze),At.offset=Ke.offset+1):(At=new g.YAMLSemanticError(Ke,Ze),Ke.range&&Ke.range.end&&(At.offset=Ke.range.end-Ke.range.start)),pe.push(At)}}function Yn(pe,de){let We=de.context.src[de.range.start-1];if(We!==`
386
- `&&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 Ii(pe,de){for(let{afterKey:We,before:He,comment:Ke}of de){let Ze=pe.items[He];Ze?(We&&Ze.value&&(Ze=Ze.value),Ke===void 0?(We||!Ze.commentBefore)&&(Ze.spaceBefore=!0):Ze.commentBefore?Ze.commentBefore+=`
387
- `+Ke:Ze.commentBefore=Ke):Ke!==void 0&&(pe.comment?pe.comment+=`
388
- `+Ke:pe.comment=Ke)}}function Yi(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 Hi(pe,de){let{handle:We,suffix:He}=de.tag,Ke=pe.tagPrefixes.find(Ze=>Ze.handle===We);if(!Ke){let Ze=pe.getDefaults().tagPrefixes;if(Ze&&(Ke=Ze.find(At=>At.handle===We)),!Ke)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 Ze=He.match(/^([a-z0-9-]+)\/(.*)/i);return Ze?`tag:${Ze[1]}.yaml.org,2002:${Ze[2]}`:`tag:${He}`}}return Ke.prefix+decodeURIComponent(He)}function Oi(pe,de){let{tag:We,type:He}=de,Ke=!1;if(We){let{handle:Ze,suffix:At,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(Ze==="!"&&!At)Ke=!0;else try{return Hi(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 Ke?g.defaultTags.STR:null;default:return null}}function ea(pe,de,We){let{tags:He}=pe.schema,Ke=[];for(let At of He)if(At.tag===We)if(At.test)Ke.push(At);else{let wt=At.resolve(pe,de);return wt instanceof it?wt:new Xe(wt)}let Ze=Yi(pe,de);return typeof Ze=="string"&&Ke.length>0?ve(Ze,Ke,He.scalarFallback):null}function Wa(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 Lo(pe,de,We){try{let He=ea(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=Wa(de);if(!He)throw new Error(`The tag ${We} is unavailable`);let Ke=`The tag ${We} is unavailable, falling back to ${He}`;pe.warnings.push(new g.YAMLWarning(de,Ke));let Ze=ea(pe,de,He);return Ze.tag=We,Ze}catch(He){let Ke=new g.YAMLReferenceError(de,He.message);return Ke.stack=He.stack,pe.errors.push(Ke),null}}var ol=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 _f(pe,de){let We={before:[],after:[]},He=!1,Ke=!1,Ze=ol(de.context.parent)?de.context.parent.props.concat(de.props):de.props;for(let{start:At,end:wt}of Ze)switch(de.context.src[At]){case g.Char.COMMENT:{if(!de.commentHasRequiredWhitespace(At)){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&&(At>rn.start||Kt&&At>Kt.start)?We.after:We.before).push(de.context.src.slice(At+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(Ke){let Kt="A node can have at most one tag";pe.push(new g.YAMLSemanticError(de,Kt))}Ke=!0;break}return{comments:We,hasAnchor:He,hasTag:Ke}}function Tf(pe,de){let{anchors:We,errors:He,schema:Ke}=pe;if(de.type===g.Type.ALIAS){let At=de.rawValue,wt=We.getNode(At);if(!wt){let rn=`Aliased anchor not found: ${At}`;return He.push(new g.YAMLReferenceError(de,rn)),null}let Kt=new Wt(wt);return We._cstAliases.push(Kt),Kt}let Ze=Oi(pe,de);if(Ze)return Lo(pe,de,Ze);if(de.type!==g.Type.PLAIN){let At=`Failed to resolve ${de.type} node here`;return He.push(new g.YAMLSyntaxError(de,At)),null}try{let At=Yi(pe,de);return ve(At,Ke.tags,Ke.tags.scalarFallback)}catch(At){return At.source||(At.source=de),He.push(At),null}}function Di(pe,de){if(!de)return null;de.error&&pe.errors.push(de.error);let{comments:We,hasAnchor:He,hasTag:Ke}=_f(pe.errors,de);if(He){let{anchors:At}=pe,wt=de.anchor,Kt=At.getNode(wt);Kt&&(At.map[At.newName(wt)]=Kt),At.map[wt]=de}if(de.type===g.Type.ALIAS&&(He||Ke)){let At="An alias node must not specify any properties";pe.errors.push(new g.YAMLSemanticError(de,At))}let Ze=Tf(pe,de);if(Ze){Ze.range=[de.range.start,de.range.end],pe.options.keepCstNodes&&(Ze.cstNode=de),pe.options.keepNodeTypes&&(Ze.type=de.type);let At=We.before.join(`
389
- `);At&&(Ze.commentBefore=Ze.commentBefore?`${Ze.commentBefore}
390
- ${At}`:At);let wt=We.after.join(`
391
- `);wt&&(Ze.comment=Ze.comment?`${Ze.comment}
392
- ${wt}`:wt)}return de.resolved=Ze}function kf(pe,de){if(de.type!==g.Type.MAP&&de.type!==g.Type.FLOW_MAP){let At=`A ${de.type} node cannot be resolved as a mapping`;return pe.errors.push(new g.YAMLSyntaxError(de,At)),null}let{comments:We,items:He}=de.type===g.Type.FLOW_MAP?Mf(pe,de):Bf(pe,de),Ke=new bn;Ke.items=He,Ii(Ke,We);let Ze=!1;for(let At=0;At<He.length;++At){let{key:wt}=He[At];if(wt instanceof it&&(Ze=!0),pe.schema.merge&&wt&&wt.value===ye){He[At]=new K(He[At]);let Kt=He[At].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=At+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(Ze&&!pe.options.mapAsMap){let At="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,At))}return de.resolved=Ke,Ke}var Lf=pe=>{let{context:{lineStart:de,node:We,src:He},props:Ke}=pe;if(Ke.length===0)return!1;let{start:Ze}=Ke[0];if(We&&Ze>We.valueRange.start||He[Ze]!==g.Char.COMMENT)return!1;for(let At=de;At<Ze;++At)if(He[At]===`
393
- `)return!1;return!0};function Pf(pe,de){if(!Lf(pe))return;let We=pe.getPropValue(0,g.Char.COMMENT,!0),He=!1,Ke=de.value.commentBefore;if(Ke&&Ke.startsWith(We))de.value.commentBefore=Ke.substr(We.length+1),He=!0;else{let Ze=de.value.comment;!pe.node&&Ze&&Ze.startsWith(We)&&(de.value.comment=Ze.substr(We.length+1),He=!0)}He&&(de.comment=We)}function Bf(pe,de){let We=[],He=[],Ke,Ze=null;for(let At=0;At<de.items.length;++At){let wt=de.items[At];switch(wt.type){case g.Type.BLANK_LINE:We.push({afterKey:!!Ke,before:He.length});break;case g.Type.COMMENT:We.push({afterKey:!!Ke,before:He.length,comment:wt.comment});break;case g.Type.MAP_KEY:Ke!==void 0&&He.push(new _t(Ke)),wt.error&&pe.errors.push(wt.error),Ke=Di(pe,wt.node),Ze=null;break;case g.Type.MAP_VALUE:{if(Ke===void 0&&(Ke=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(Ke,Di(pe,Kt));Pf(wt,rn),He.push(rn),Ke&&typeof Ze=="number"&&wt.range.start>Ze+1024&&pe.errors.push(or(de,Ke)),Ke=void 0,Ze=null}break;default:Ke!==void 0&&He.push(new _t(Ke)),Ke=Di(pe,wt),Ze=wt.range.start,wt.error&&pe.errors.push(wt.error);e:for(let Kt=At+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 Ke!==void 0&&He.push(new _t(Ke)),{comments:We,items:He}}function Mf(pe,de){let We=[],He=[],Ke,Ze=!1,At="{";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==="?"&&Ke===void 0&&!Ze){Ze=!0,At=":";continue}if(rn===":"){if(Ke===void 0&&(Ke=null),At===":"){At=",";continue}}else if(Ze&&(Ke===void 0&&rn!==","&&(Ke=null),Ze=!1),Ke!==void 0&&(He.push(new _t(Ke)),Ke=void 0,rn===",")){At=":";continue}if(rn==="}"){if(wt===de.items.length-1)continue}else if(rn===At){At=":";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:!!Ke,before:He.length}):Kt.type===g.Type.COMMENT?(Yn(pe.errors,Kt),We.push({afterKey:!!Ke,before:He.length,comment:Kt.comment})):Ke===void 0?(At===","&&pe.errors.push(new g.YAMLSemanticError(Kt,"Separator , missing in flow map")),Ke=Di(pe,Kt)):(At!==","&&pe.errors.push(new g.YAMLSemanticError(Kt,"Indicator : missing in flow map entry")),He.push(new _t(Ke,Di(pe,Kt))),Ke=void 0,Ze=!1)}return Cn(pe.errors,de),Ke!==void 0&&He.push(new _t(Ke)),{comments:We,items:He}}function If(pe,de){if(de.type!==g.Type.SEQ&&de.type!==g.Type.FLOW_SEQ){let Ze=`A ${de.type} node cannot be resolved as a sequence`;return pe.errors.push(new g.YAMLSyntaxError(de,Ze)),null}let{comments:We,items:He}=de.type===g.Type.FLOW_SEQ?jf(pe,de):Of(pe,de),Ke=new Ft;if(Ke.items=He,Ii(Ke,We),!pe.options.mapAsMap&&He.some(Ze=>Ze instanceof _t&&Ze.key instanceof it)){let Ze="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,Ze))}return de.resolved=Ke,Ke}function Of(pe,de){let We=[],He=[];for(let Ke=0;Ke<de.items.length;++Ke){let Ze=de.items[Ke];switch(Ze.type){case g.Type.BLANK_LINE:We.push({before:He.length});break;case g.Type.COMMENT:We.push({comment:Ze.comment,before:He.length});break;case g.Type.SEQ_ITEM:if(Ze.error&&pe.errors.push(Ze.error),He.push(Di(pe,Ze.node)),Ze.hasProps){let At="Sequence items cannot have tags or anchors before the - indicator";pe.errors.push(new g.YAMLSemanticError(Ze,At))}break;default:Ze.error&&pe.errors.push(Ze.error),pe.errors.push(new g.YAMLSyntaxError(Ze,`Unexpected ${Ze.type} node in sequence`))}}return{comments:We,items:He}}function jf(pe,de){let We=[],He=[],Ke=!1,Ze,At=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!==":"&&(Ke||Ze!==void 0)&&(Ke&&Ze===void 0&&(Ze=wt?He.pop():null),He.push(new _t(Ze)),Ke=!1,Ze=void 0,At=null),Mn===wt)wt=null;else if(!wt&&Mn==="?")Ke=!0;else if(wt!=="["&&Mn===":"&&Ze===void 0){if(wt===","){if(Ze=He.pop(),Ze instanceof _t){let cr="Chaining flow sequence pairs is invalid",Vn=new g.YAMLSemanticError(de,cr);Vn.offset=lr,pe.errors.push(Vn)}if(!Ke&&typeof At=="number"){let cr=hn.range?hn.range.start:hn.offset;cr>At+1024&&pe.errors.push(or(de,Ze));let{src:Vn}=Kt.context;for(let rr=At;rr<cr;++rr)if(Vn[rr]===`
394
- `){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 Ze=null;At=null,Ke=!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=Di(pe,hn);Ze===void 0?(He.push(Mn),Kt=hn):(He.push(new _t(Ze,Mn)),Ze=void 0),At=hn.range.start,wt=","}}return Cn(pe.errors,de),Ze!==void 0&&He.push(new _t(Ze)),{comments:We,items:He}}Y.Alias=Wt,Y.Collection=it,Y.Merge=K,Y.Node=Pe,Y.Pair=_t,Y.Scalar=Xe,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=xe,Y.resolveMap=kf,Y.resolveNode=Di,Y.resolveSeq=If,Y.resolveString=Yi,Y.strOptions=Me,Y.stringifyNumber=mn,Y.stringifyString=tn,Y.toJSON=Be}}),Xs=p({"node_modules/yaml/dist/warnings-1000a372.js"(Y){N();var g=qr(),W=rs(),Ae={identify:ve=>ve instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(ve,je)=>{let Et=W.resolveString(ve,je);if(typeof Buffer=="function")return Buffer.from(Et,"base64");if(typeof atob=="function"){let Ot=atob(Et.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,Et,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 Sr=0;Sr<on.length;++Sr)sr+=String.fromCharCode(on[Sr]);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,Sr=Math.ceil(Wn.length/sr),yi=new Array(Sr);for(let ci=0,Dt=0;ci<Sr;++ci,Dt+=sr)yi[ci]=Wn.substr(Dt,sr);on=yi.join(En===g.Type.BLOCK_LITERAL?`
395
- `:" ")}return W.stringifyString({comment:zt,type:En,value:on},je,Et,Ot)}};function Pe(ve,je){let Et=W.resolveSeq(ve,je);for(let Ot=0;Ot<Et.items.length;++Ot){let zt=Et.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}
396
- ${En.commentBefore}`:zt.commentBefore),zt.comment&&(En.comment=En.comment?`${zt.comment}
397
- ${En.comment}`:zt.comment),zt=En}Et.items[Ot]=zt instanceof W.Pair?zt:new W.Pair(zt)}}return Et}function Be(ve,je,Et){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,Et);Ot.items.push(Wn)}return Ot}var Xe={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 Et=new Map;je&&je.onCreate&&je.onCreate(Et);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),Et.has(zt))throw new Error("Ordered maps must not include duplicate keys");Et.set(zt,En)}return Et}};g._defineProperty(mt,"tag","tag:yaml.org,2002:omap");function jt(ve,je){let Et=Pe(ve,je),Ot=[];for(let{key:zt}of Et.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,Et)}function it(ve,je,Et){let Ot=Be(ve,je,Et),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:it},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 Et=W.findPair(this.items,ve);return!je&&Et instanceof W.Pair?Et.key instanceof W.Scalar?Et.key.value:Et.key:Et}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 Et=W.findPair(this.items,ve);Et&&!je?this.items.splice(this.items.indexOf(Et),1):!Et&&je&&this.items.push(new W.Pair(ve))}toJSON(ve,je){return super.toJSON(ve,je,Set)}toString(ve,je,Et){if(!ve)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(ve,je,Et);throw new Error("Set items must all have null values")}};g._defineProperty(Ft,"tag","tag:yaml.org,2002:set");function It(ve,je){let Et=W.resolveMap(ve,je);if(!Et.hasAllNullValues())throw new g.YAMLSemanticError(je,"Set items must all have null values");return Object.assign(new Ft,Et)}function _t(ve,je,Et){let Ot=new Ft;for(let zt of je)Ot.items.push(ve.createPair(zt,null,Et));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 Et=je.split(":").reduce((Ot,zt)=>Ot*60+Number(zt),0);return ve==="-"?-Et:Et},Xt=ve=>{let{value:je}=ve;if(isNaN(je)||!isFinite(je))return W.stringifyNumber(je);let Et="";je<0&&(Et="-",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))),Et+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,Et)=>Wt(je,Et.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,Et)=>Wt(je,Et.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,Et,Ot,zt,En,on,Wn,sr)=>{Wn&&(Wn=(Wn+"00").substr(1,3));let Sr=Date.UTC(je,Et-1,Ot,zt||0,En||0,on||0,Wn||0);if(sr&&sr!=="Z"){let yi=Wt(sr[0],sr.slice(1));Math.abs(yi)<30&&(yi*=60),Sr-=6e4*yi}return new Date(Sr)},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 Et=typeof te<"u"&&te.emitWarning;Et?Et(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 xe={};function Me(ve,je){if(!xe[ve]&&I(!0)){xe[ve]=!0;let Et=`The option '${ve}' will be removed in a future release`;Et+=je?`, use '${je}' instead.`:".",H(Et,"DeprecationWarning")}}Y.binary=Ae,Y.floatTime=ye,Y.intTime=bn,Y.omap=yt,Y.pairs=Xe,Y.set=Gt,Y.timestamp=K,Y.warn=H,Y.warnFileDeprecation=le,Y.warnOptionDeprecation=Me}}),Ks=p({"node_modules/yaml/dist/Schema-88e323a7.js"(Y){N();var g=qr(),W=rs(),Ae=Xs();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 Xe(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:Xe,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},it=[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=it.concat([_t,Gt,Wt,Xt,bn,ye,K,I]),le=Dt=>typeof Dt=="bigint"||Number.isInteger(Dt),xe=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:xe},{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:xe},{identify:Dt=>typeof Dt=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:Dt=>Dt==="true",stringify:xe},{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:xe}];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 Et(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=it.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)=>Et(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)=>Et(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)=>Et(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)=>Et(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:it,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:Ii,wrapScalars:Yi}=mn;tn&&tn.startsWith("!!")&&(tn=Cn+tn.slice(2));let Hi=Wn(Dt,tn,Ii.tags);if(!Hi){if(typeof Dt.toJSON=="function"&&(Dt=Dt.toJSON()),!Dt||typeof Dt!="object")return Yi?new W.Scalar(Dt):Dt;Hi=Dt instanceof Map?Be:Dt[Symbol.iterator]?mt:Be}Yn&&(Yn(Hi),delete mn.onTagObj);let Oi={value:void 0,node:void 0};if(Dt&&typeof Dt=="object"&&or){let ea=or.get(Dt);if(ea){let Wa=new W.Alias(ea);return mn.aliasNodes.push(Wa),Wa}Oi.value=Dt,or.set(Dt,Oi)}return Oi.node=Hi.createNode?Hi.createNode(mn.schema,Dt,mn):Yi?new W.Scalar(Dt):Dt,tn&&Oi.node instanceof W.Node&&(Oi.node.tag=tn),Oi.node}function Sr(Dt,tn,mn,Cn){let Yn=Dt[Cn.replace(/\W/g,"")];if(!Yn){let or=Object.keys(Dt).map(Ii=>JSON.stringify(Ii)).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 Ii=Yn[or];if(typeof Ii=="string"){let Yi=tn[Ii];if(!Yi){let Hi=Object.keys(tn).map(Oi=>JSON.stringify(Oi)).join(", ");throw new Error(`Unknown custom tag "${Ii}"; use one of ${Hi}`)}Yn[or]=Yi}}return Yn}var yi=(Dt,tn)=>Dt.key<tn.key?-1:Dt.key>tn.key?1:0,ci=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?yi:Yn||null,!tn&&or&&Ae.warnOptionDeprecation("tags","customTags"),this.tags=Sr(En,on,tn||or,Cn)}createNode(Dt,tn,mn,Cn){let Yn={defaultPrefix:ci.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(ci,"defaultPrefix",g.defaultTagPrefix),g._defineProperty(ci,"defaultTags",g.defaultTags),Y.Schema=ci}}),ri=p({"node_modules/yaml/dist/Document-9b4560a1.js"(Y){N();var g=qr(),W=rs(),Ae=Ks(),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)}},Xe={"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 xe=H.substr(le.prefix.length).replace(/[!,[\]{}]/g,Me=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[Me]);return le.handle+xe}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,xe;if(H instanceof W.Scalar){xe=H.value;let Me=I.filter(ve=>ve.identify&&ve.identify(xe)||ve.class&&xe instanceof ve.class);le=Me.find(ve=>ve.format===H.format)||Me.find(ve=>!ve.format)}else xe=H,le=I.find(Me=>Me.nodeClass&&xe instanceof Me.nodeClass);if(!le){let Me=xe&&xe.constructor?xe.constructor.name:typeof xe;throw new Error(`Tag not resolved for ${Me} value`)}return le}function it(I,H,le){let{anchors:xe,doc:Me}=le,ve=[],je=Me.anchors.getName(I);return je&&(xe[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,xe){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,xe);je||(je=jt(ve.tags,I));let Et=it(I,je,H);Et.length>0&&(H.indentAtStart=(H.indentAtStart||0)+Et.length+1);let Ot=typeof je.stringify=="function"?je.stringify(I,H,le,xe):I instanceof W.Scalar?W.stringifyString(I,H,le,xe):I.toString(H,le,xe);return Et?I instanceof W.Scalar||Ot[0]==="{"||Ot[0]==="["?`${Et} ${Ot}`:`${Et}
398
- ${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),xe=0;xe<H;xe++)le[xe]=arguments[xe];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 xe=`${I}${le}`;if(!H.includes(xe))return xe}}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,xe=I&&Object.keys(le).find(Me=>le[Me]===I);if(xe)if(H)xe!==H&&(delete le[xe],le[H]=I);else return xe;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(xe=>It(xe,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:[]},xe,Me=!1;for(let ve of H)if(ve.valueRange){if(xe!==void 0){let Et="Document contains trailing content not separated by a ... or --- line";I.errors.push(new g.YAMLSyntaxError(ve,Et));break}let je=W.resolveNode(I,ve);Me&&(je.spaceBefore=!0,Me=!1),xe=je}else ve.comment!==null?(xe===void 0?le.before:le.after).push(ve.comment):ve.type===g.Type.BLANK_LINE&&(Me=!0,xe===void 0&&le.before.length>0&&!I.commentBefore&&(I.commentBefore=le.before.join(`
399
- `),le.before=[]));if(I.contents=xe||null,!xe)I.comment=le.before.concat(le.after).join(`
400
- `)||null;else{let ve=le.before.join(`
401
- `);if(ve){let je=xe instanceof W.Collection&&xe.items[0]?xe.items[0]:xe;je.commentBefore=je.commentBefore?`${ve}
402
- ${je.commentBefore}`:ve}I.comment=le.after.join(`
403
- `)||null}}function Wt(I,H){let{tagPrefixes:le}=I,[xe,Me]=H.parameters;if(!xe||!Me){let ve="Insufficient parameters given for %TAG directive";throw new g.YAMLSemanticError(H,ve)}if(le.some(ve=>ve.handle===xe)){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:xe,prefix:Me}}function Xt(I,H){let[le]=H.parameters;if(H.name==="YAML:1.0"&&(le="1.0"),!le){let xe="Insufficient parameters given for %YAML directive";throw new g.YAMLSemanticError(H,xe)}if(!Xe[le]){let xe=`Document will be parsed as YAML ${I.version||I.options.version} rather than YAML ${le}`;I.warnings.push(new g.YAMLWarning(H,xe))}return le}function bn(I,H,le){let xe=[],Me=!1;for(let ve of H){let{comment:je,name:Et}=ve;switch(Et){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(Et){let Ot=`YAML only supports %TAG and %YAML directives, and not %${Et}`;I.warnings.push(new g.YAMLWarning(ve,Ot))}}je&&xe.push(je)}if(le&&!Me&&(I.version||le.version||I.options.version)==="1.1"){let ve=je=>{let{handle:Et,prefix:Ot}=je;return{handle:Et,prefix:Ot}};I.tagPrefixes=le.tagPrefixes.map(ve),I.version=le.version}I.commentBefore=xe.join(`
404
- `)||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:xe=[],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,xe),this.anchors.resolveNodes(),this.options.prettyErrors){for(let Et of this.errors)Et instanceof g.YAMLError&&Et.makePretty();for(let Et of this.warnings)Et instanceof g.YAMLError&&Et.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(xe=>xe.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:xe,maxAliasCount:Me}=this.options,ve=le&&(typeof I!="string"||!(this.contents instanceof W.Scalar)),je={doc:this,indentStep:" ",keep:ve,mapAsMap:ve&&!!xe,maxAliasCount:Me,stringify:yt},Et=Object.keys(this.anchors.map);Et.length>0&&(je.anchors=new Map(Et.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 Et=JSON.stringify(I);throw new Error(`"indent" option must be a positive integer, not ${Et}`)}this.setSchema();let H=[],le=!1;if(this.version){let Et="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?Et="%YAML:1.0":this.version==="1.1"&&(Et="%YAML 1.1")),H.push(Et),le=!0}let xe=this.listNonDefaultTags();this.tagPrefixes.forEach(Et=>{let{handle:Ot,prefix:zt}=Et;xe.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 Et=je?null:()=>ve=!0,Ot=yt(this.contents,Me,()=>je=null,Et);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(`
405
- `)+`
406
- `}};g._defineProperty(K,"defaults",Xe),Y.Document=K,Y.defaultOptions=Pe,Y.scalarOptions=Be}}),tl=p({"node_modules/yaml/dist/index.js"(Y){N();var g=qa(),W=ri(),Ae=Ks(),Pe=qr(),Be=Xs();rs();function Xe(_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 it(_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=it(_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:Xe,defaultOptions:W.defaultOptions,Document:mt,parse:yt,parseAllDocuments:jt,parseCST:g.parse,parseDocument:it,scalarOptions:W.scalarOptions,stringify:Ft};Y.YAML=It}}),nl=p({"node_modules/yaml/index.js"(Y,g){N(),g.exports=tl().YAML}}),rl=p({"node_modules/yaml/dist/util.js"(Y){N();var g=rs(),W=qr();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}}),Sf=p({"node_modules/yaml/util.js"(Y){N();var g=rl();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}}),il=p({"node_modules/yaml-unist-parser/lib/yaml.js"(Y){N(),Y.__esModule=!0;var g=nl();Y.Document=g.Document;var W=nl();Y.parseCST=W.parseCST;var Ae=Sf();Y.YAMLError=Ae.YAMLError,Y.YAMLSyntaxError=Ae.YAMLSyntaxError,Y.YAMLSemanticError=Ae.YAMLSemanticError}}),Zs=p({"node_modules/yaml-unist-parser/lib/parse.js"(Y){N(),Y.__esModule=!0;var g=Ru(),W=af(),Ae=Vu(),Pe=of(),Be=Qn(),Xe=qu(),mt=$e(),jt=hs(),it=Bs(),yt=gi(),Ft=ns(),It=Ua(),_t=il();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 it.transformRange(Ot,I)},transformNode:function(Ot){return Be.transformNode(Ot,I)},transformContent:function(Ot){return Xe.transformContent(Ot,I)}},H=0,le=bn;H<le.length;H++)for(var xe=le[H],Me=0,ve=xe.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 Et=Ae.createRoot(I.transformRange({origStart:0,origEnd:I.text.length}),bn.map(I.transformNode),K);return W.attachComments(Et),It.updatePositions(Et),Ft.removeFakeNodes(Et),Et}Y.parse=Gt}}),xf=p({"node_modules/yaml-unist-parser/lib/index.js"(Y){N(),Y.__esModule=!0;var g=(nr(),re(Je));g.__exportStar(Zs(),Y)}});N();var wf=ue(),{hasPragma:wn}=Te(),{locStart:sl,locEnd:Ff}=ke();function Nf(Y){let{parse:g}=xf();try{let W=g(Y);return delete W.comments,W}catch(W){throw W!=null&&W.position?wf(W.message,W.position):W}}var al={astFormat:"yaml",parse:Nf,hasPragma:wn,locStart:sl,locEnd:Ff};s.exports={parsers:{yaml:al}}});return r()})})(Pm);var Bm=Pm.exports,AD=bD(Bm),CD=H0({__proto__:null,default:AD},[Bm]),SD=Object.getOwnPropertyNames,xD=(e,t)=>function(){return t||(0,e[SD(e)[0]])((t={exports:{}}).exports,t),t.exports},wD=xD({"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 Mm(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 Jc(e,t){var n=e.length-t.length;return n>0?e.lastIndexOf(t)===n:n===0?e===t:!1}function FD(e){return Mm(e,"(?i)")?new RegExp(e.substring(4),"i"):new RegExp(e)}function La(e){return typeof e=="boolean"}var Wi;(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"})(Wi||(Wi={}));var Im;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[ws.Markdown,ws.PlainText],commitCharactersSupport:!0}}}}})(Im||(Im={}));function ND(e,t){return t.length===0?e:e.replace(/{(\d+)}/g,(n,[r])=>r in t?t[r]:n)}var _D=(e,t,...n)=>ND(t,n);function Ws(){return _D}var Gs=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)}}(),Co=Ws();Co("colorHexFormatWarning","Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA."),Co("dateTimeFormatWarning","String is not a RFC3339 date-time."),Co("dateFormatWarning","String is not a RFC3339 date."),Co("timeFormatWarning","String is not a RFC3339 time."),Co("emailFormatWarning","String is not an e-mail address.");var Js=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){Gs(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.type="null",i.value=null,i}return t})(Js),function(e){Gs(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}(Js),function(e){Gs(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}(Js),function(e){Gs(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}(Js),function(e){Gs(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}(Js),function(e){Gs(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}(Js),function(e){Gs(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}(Js);function TD(e){return La(e)?e?{}:{not:{}}:e}var Om;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Om||(Om={})),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 Cu(e){return ay(e)}function kD(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 B=n[l+1];if(!s)r+=".*";else{var re=O>1&&(p==="/"||p===void 0||p==="{"||p===",")&&(B==="/"||B===void 0||B===","||B==="}");re?(B==="/"?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 Ts=Ws(),LD="!",PD="/",BD=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]!==LD;a||(s=s.substring(1)),s.length>0&&(s[0]===PD&&(s=s.substring(1)),this.globWrappers.push({regexp:kD("**/"+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}(),MD=function(){function e(t,n,r){this.service=t,this.url=n,this.dependencies={},r&&(this.unresolvedSchema=this.service.promise.resolve(new Gi(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}(),Gi=function(){function e(t,n){n===void 0&&(n=[]),this.schema=t,this.errors=n}return e}(),So=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 TD(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=FD(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}(),ID=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=ti.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=ks(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=ks(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(ks),A=this.addFilePatternAssociation(u.pattern,l);this.contributionAssociations.push(A)}},e.prototype.addSchemaHandle=function(t,n){var r=new MD(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 BD(t,n);return this.filePatternAssociations.push(r),r},e.prototype.registerExternalSchema=function(t,n,r){var i=ks(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=ks(t),r=this.schemasById[n];return r?r.getResolvedSchema():this.promise.resolve(void 0)},e.prototype.loadSchema=function(t){if(!this.requestService){var n=Ts("json.schema.norequestservice","Unable to load schema from '{0}'. No schema request service available",Su(t));return this.promise.resolve(new Gi({},[n]))}return this.requestService(t).then(function(r){if(!r){var i=Ts("json.schema.nocontent","Unable to load schema from '{0}': No content.",Su(t));return new Gi({},[i])}var s={},a=[];s=sy(r,a);var o=a.length?[Ts("json.schema.invalidFormat","Unable to parse content from '{0}': Parse error at offset {1}.",Su(t),a[0].offset)]:[];return new Gi(s,o)},function(r){var i=r.toString(),s=r.toString().split("Error: ");return s.length>1&&(i=s[1]),Jc(i,".")&&(i=i.substr(0,i.length-1)),new Gi({},[Ts("json.schema.nocontent","Unable to load schema from '{0}': {1}.",Su(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=ks(a.$schema);if(o==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new So({},[Ts("json.schema.draft03.notsupported","Draft-03 schemas are not supported.")]));o==="https://json-schema.org/draft/2019-09/schema"&&s.push(Ts("json.schema.draft201909.notsupported","Draft 2019-09 schemas are not yet fully supported."))}var u=this.contextService,l=function(B,re){if(!re)return B;var te=B;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(B,re,te,N){var ue=N?decodeURIComponent(N):void 0,Te=l(re,ue);if(Te)for(var ke in Te)Te.hasOwnProperty(ke)&&!B.hasOwnProperty(ke)&&(B[ke]=Te[ke]);else s.push(Ts("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",ue,te))},p=function(B,re,te,N,ue){u&&!/^[A-Za-z][A-Za-z0-9+\-.+]*:\/\/.*/.test(re)&&(re=u.resolveRelativePath(re,N)),re=ks(re);var Te=i.getOrAddSchemaHandle(re);return Te.getUnresolvedSchema().then(function(ke){if(ue[re]=!0,ke.errors.length){var Je=te?re+"#"+te:re;s.push(Ts("json.schema.problemloadingref","Problems loading reference '{0}': {1}",Je,ke.errors[0]))}return A(B,ke.schema,re,te),O(B,ke.schema,re,Te.dependencies)})},O=function(B,re,te,N){if(!B||typeof B!="object")return Promise.resolve(null);for(var ue=[B],Te=[],ke=[],Je=function(){for(var Se=[],we=0;we<arguments.length;we++)Se[we]=arguments[we];for(var tt=0,Ve=Se;tt<Ve.length;tt++){var $t=Ve[tt];typeof $t=="object"&&ue.push($t)}},me=function(){for(var Se=[],we=0;we<arguments.length;we++)Se[we]=arguments[we];for(var tt=0,Ve=Se;tt<Ve.length;tt++){var $t=Ve[tt];if(typeof $t=="object")for(var pn in $t){var kn=pn,Lt=$t[kn];typeof Lt=="object"&&ue.push(Lt)}}},Le=function(){for(var Se=[],we=0;we<arguments.length;we++)Se[we]=arguments[we];for(var tt=0,Ve=Se;tt<Ve.length;tt++){var $t=Ve[tt];if(Array.isArray($t))for(var pn=0,kn=$t;pn<kn.length;pn++){var Lt=kn[pn];typeof Lt=="object"&&ue.push(Lt)}}},ct=function(Se){for(var we=[];Se.$ref;){var tt=Se.$ref,Ve=tt.split("#",2);if(delete Se.$ref,Ve[0].length>0){ke.push(p(Se,Ve[0],Ve[1],te,N));return}else we.indexOf(tt)===-1&&(A(Se,re,te,Ve[1]),we.push(tt))}Je(Se.items,Se.additionalItems,Se.additionalProperties,Se.not,Se.contains,Se.propertyNames,Se.if,Se.then,Se.else),me(Se.definitions,Se.properties,Se.patternProperties,Se.dependencies),Le(Se.anyOf,Se.allOf,Se.oneOf,Se.items)};ue.length;){var xt=ue.pop();Te.indexOf(xt)>=0||(Te.push(xt),ct(xt))}return i.promise.all(ke)};return O(a,a,n,r).then(function(B){return new So(a,s)})},e.prototype.getSchemaForResource=function(t,n){if(n&&n.root&&n.root.type==="object"){var r=n.root.properties.filter(function(ue){return ue.keyNode.value==="$schema"&&ue.valueNode&&ue.valueNode.type==="string"});if(r.length>0){var i=r[0].valueNode;if(i&&i.type==="string"){var s=Cu(i);if(s&&Mm(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,t)),s){var a=ks(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=jD(t),A=0,p=this.filePatternAssociations;A<p.length;A++){var O=p[A];if(O.matchesPattern(l))for(var B=0,re=O.getURIs();B<re.length;B++){var te=re[B];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/"+OD++;return this.resolveSchemaContent(new Gi(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}(),OD=0;function ks(e){try{return ti.parse(e).toString()}catch{return e}}function jD(e){try{return ti.parse(e).with({fragment:null,query:null}).toString()}catch{return e}}function Su(e){try{var t=ti.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}function $D(e){return e.replace(/[-\\{}+?|^$.,[\]()#\s]/g,"\\$&").replace(/[*]/g,".*")}function RD(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 jm(e){try{return new RegExp(e,"u")}catch{return new RegExp(e)}}function VD(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 xo(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(!xo(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(),!xo(i,s))return!1;for(n=0;n<i.length;n++)if(!xo(e[i[n]],t[i[n]]))return!1}return!0}function Mi(e){return typeof e=="number"}function Ys(e){return typeof e<"u"}function Pa(e){return typeof e=="boolean"}function xu(e){return typeof e=="string"}function UD(e){return Symbol.iterator in Object(e)}function os(e){var t;return e?e instanceof Error&&(t=e.stack)!=null?t:e.toString():"null"}function Yc(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 Rm(e,t){const n=ti.parse(t);let r=qs.basename(n.fsPath);return qs.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 qD(e){return e.type!=="object"&&!Hc(e)}function Hc(e){return!!(e.anyOf||e.allOf||e.oneOf)}var WD=Ws(),GD=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?wu(r.trailingCommas):Kn.Error,B=r!=null&&r.comments?wu(r.comments):s.commentSeverity,re=r!=null&&r.schemaValidation?wu(r.schemaValidation):Kn.Warning,te=r!=null&&r.schemaRequest?wu(r.schemaRequest):Kn.Warning;if(p){if(p.errors.length&&n.root&&te){var N=n.root,ue=N.type==="object"?N.properties[0]:void 0;if(ue&&ue.keyNode.value==="$schema"){var Te=ue.valueNode||ue,ke=$n.create(t.positionAt(Te.offset),t.positionAt(Te.offset+Te.length));u(Ti.create(ke,p.errors[0],te,Wi.SchemaResolveError))}else{var ke=$n.create(t.positionAt(N.offset),t.positionAt(N.offset+1));u(Ti.create(ke,p.errors[0],te,Wi.SchemaResolveError))}}else if(re){var Je=n.validate(t,p.schema,re);Je&&Je.forEach(u)}Vm(p.schema)&&(B=void 0),Um(p.schema)&&(O=void 0)}for(var me=0,Le=n.syntaxErrors;me<Le.length;me++){var ct=Le[me];if(ct.code===Wi.TrailingComma){if(typeof O!="number")continue;ct.severity=O}u(ct)}if(typeof B=="number"){var xt=WD("InvalidCommentToken","Comments are not permitted in JSON.");n.comments.forEach(function(Se){u(Ti.create(Se,xt,B,Wi.CommentNotPermitted))})}return a};if(i){var A=i.id||"schemaservice://untitled/"+JD++;return this.jsonSchemaService.resolveSchemaContent(new Gi(i),A,{}).then(function(p){return l(p)})}return this.jsonSchemaService.getSchemaForResource(t.uri,n).then(function(p){return l(p)})},e}(),JD=0;function Vm(e){if(e&&typeof e=="object"){if(La(e.allowComments))return e.allowComments;if(e.allOf)for(var t=0,n=e.allOf;t<n.length;t++){var r=n[t],i=Vm(r);if(La(i))return i}}}function Um(e){if(e&&typeof e=="object"){if(La(e.allowTrailingCommas))return e.allowTrailingCommas;var t=e;if(La(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(La(s))return s}}}function wu(e){switch(e){case"error":return Kn.Error;case"warning":return Kn.Warning;case"ignore":return}}var qm=48,YD=57,HD=65,Fu=97,zD=102;function Br(e){return e<qm?0:e<=YD?e-qm:(e<Fu&&(e+=Fu-HD),e>=Fu&&e<=zD?e-Fu+10:0)}function QD(e){if(e[0]==="#")switch(e.length){case 4:return{red:Br(e.charCodeAt(1))*17/255,green:Br(e.charCodeAt(2))*17/255,blue:Br(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Br(e.charCodeAt(1))*17/255,green:Br(e.charCodeAt(2))*17/255,blue:Br(e.charCodeAt(3))*17/255,alpha:Br(e.charCodeAt(4))*17/255};case 7:return{red:(Br(e.charCodeAt(1))*16+Br(e.charCodeAt(2)))/255,green:(Br(e.charCodeAt(3))*16+Br(e.charCodeAt(4)))/255,blue:(Br(e.charCodeAt(5))*16+Br(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Br(e.charCodeAt(1))*16+Br(e.charCodeAt(2)))/255,green:(Br(e.charCodeAt(3))*16+Br(e.charCodeAt(4)))/255,blue:(Br(e.charCodeAt(5))*16+Br(e.charCodeAt(6)))/255,alpha:(Br(e.charCodeAt(7))*16+Br(e.charCodeAt(8)))/255}}}var XD=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"||Jc(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,B=p.properties;O<B.length;O++){var re=B[O];if(re.keyNode.value==="key"&&re.valueNode){var te=ya.create(t.uri,Ls(t,p));if(u.push({name:Cu(re.valueNode),kind:Ki.Function,location:te}),a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),u}}}return u}for(var N=[{node:s,containerName:""}],ue=0,Te=!1,ke=[],Je=function(Le,ct){Le.type==="array"?Le.items.forEach(function(xt){xt&&N.push({node:xt,containerName:ct})}):Le.type==="object"&&Le.properties.forEach(function(xt){var Se=xt.valueNode;if(Se)if(a>0){a--;var we=ya.create(t.uri,Ls(t,xt)),tt=ct?ct+"."+xt.keyNode.value:xt.keyNode.value;ke.push({name:i.getKeyLabel(xt),kind:i.getSymbolKind(Se.type),location:we,containerName:ct}),N.push({node:Se,containerName:tt})}else Te=!0})};ue<N.length;){var me=N[ue++];Je(me.node,me.containerName)}return Te&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),ke},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"||Jc(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,B=p.properties;O<B.length;O++){var re=B[O];if(re.keyNode.value==="key"&&re.valueNode){var te=Ls(t,p),N=Ls(t,re.keyNode);if(u.push({name:Cu(re.valueNode),kind:Ki.Function,range:te,selectionRange:N}),a--,a<=0)return r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),u}}}return u}for(var ue=[],Te=[{node:s,result:ue}],ke=0,Je=!1,me=function(ct,xt){ct.type==="array"?ct.items.forEach(function(Se,we){if(Se)if(a>0){a--;var tt=Ls(t,Se),Ve=tt,$t=String(we),pn={name:$t,kind:i.getSymbolKind(Se.type),range:tt,selectionRange:Ve,children:[]};xt.push(pn),Te.push({result:pn.children,node:Se})}else Je=!0}):ct.type==="object"&&ct.properties.forEach(function(Se){var we=Se.valueNode;if(we)if(a>0){a--;var tt=Ls(t,Se),Ve=Ls(t,Se.keyNode),$t=[],pn={name:i.getKeyLabel(Se),kind:i.getSymbolKind(we.type),range:tt,selectionRange:Ve,children:$t,detail:i.getDetail(we)};xt.push(pn),Te.push({result:$t,node:we})}else Je=!0})};ke<Te.length;){var Le=Te[ke++];me(Le.node,Le.result)}return Je&&r&&r.onResultLimitExceeded&&r.onResultLimitExceeded(o),ue},e.prototype.getSymbolKind=function(t){switch(t){case"object":return Ki.Module;case"string":return Ki.String;case"number":return Ki.Number;case"array":return Ki.Array;case"boolean":return Ki.Boolean;default:return Ki.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 B=QD(Cu(p.node));if(B){var re=Ls(t,p.node);s.push({color:B,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:wr.replace(i,JSON.stringify(A))}),s},e}();function Ls(e,t){return $n.create(e.positionAt(t.offset),e.positionAt(t.offset+t.length))}var Rn=Ws(),Wm={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}}},KD={id:Rn("schema.json.id","A unique identifier for the schema."),$schema:Rn("schema.json.$schema","The schema to verify this document against."),title:Rn("schema.json.title","A descriptive title of the element."),description:Rn("schema.json.description","A long description of the element. Used in hover menus and suggestions."),default:Rn("schema.json.default","A default value. Used by suggestions."),multipleOf:Rn("schema.json.multipleOf","A number that should cleanly divide the current value (i.e. have no remainder)."),maximum:Rn("schema.json.maximum","The maximum numerical value, inclusive by default."),exclusiveMaximum:Rn("schema.json.exclusiveMaximum","Makes the maximum property exclusive."),minimum:Rn("schema.json.minimum","The minimum numerical value, inclusive by default."),exclusiveMinimum:Rn("schema.json.exclusiveMininum","Makes the minimum property exclusive."),maxLength:Rn("schema.json.maxLength","The maximum length of a string."),minLength:Rn("schema.json.minLength","The minimum length of a string."),pattern:Rn("schema.json.pattern","A regular expression to match the string against. It is not implicitly anchored."),additionalItems:Rn("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:Rn("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:Rn("schema.json.maxItems","The maximum number of items that can be inside an array. Inclusive."),minItems:Rn("schema.json.minItems","The minimum number of items that can be inside an array. Inclusive."),uniqueItems:Rn("schema.json.uniqueItems","If all of the items in the array must be unique. Defaults to false."),maxProperties:Rn("schema.json.maxProperties","The maximum number of properties an object can have. Inclusive."),minProperties:Rn("schema.json.minProperties","The minimum number of properties an object can have. Inclusive."),required:Rn("schema.json.required","An array of strings that lists the names of all properties required on this object."),additionalProperties:Rn("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:Rn("schema.json.definitions","Not used for validation. Place subschemas here that you wish to reference inline with $ref."),properties:Rn("schema.json.properties","A map of property names to schemas for each property."),patternProperties:Rn("schema.json.patternProperties","A map of regular expressions on property names to schemas for matching properties."),dependencies:Rn("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:Rn("schema.json.enum","The set of literal values that are valid."),type:Rn("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:Rn("schema.json.format","Describes the format expected for the value."),allOf:Rn("schema.json.allOf","An array of schemas, all of which must match."),anyOf:Rn("schema.json.anyOf","An array of schemas, where at least one must match."),oneOf:Rn("schema.json.oneOf","An array of schemas, exactly one of which must match."),not:Rn("schema.json.not","A schema which must not match."),$id:Rn("schema.json.$id","A unique identifier for the schema."),$ref:Rn("schema.json.$ref","Reference a definition hosted on any location."),$comment:Rn("schema.json.$comment","Comments from schema authors to readers or maintainers of the schema."),readOnly:Rn("schema.json.readOnly","Indicates that the value of the instance is managed exclusively by the owning authority."),examples:Rn("schema.json.examples","Sample JSON values associated with a particular schema, for the purpose of illustrating usage."),contains:Rn("schema.json.contains",'An array instance is valid against "contains" if at least one of its elements is valid against the given schema.'),propertyNames:Rn("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:Rn("schema.json.const","An instance validates successfully against this keyword if its value is equal to the value of the keyword."),contentMediaType:Rn("schema.json.contentMediaType","Describes the media type of a string property."),contentEncoding:Rn("schema.json.contentEncoding","Describes the content encoding of a string property."),if:Rn("schema.json.if",'The validation outcome of the "if" subschema controls which of the "then" or "else" keywords are evaluated.'),then:Rn("schema.json.then",'The "if" subschema is used for validation when the "if" subschema succeeds.'),else:Rn("schema.json.else",'The "else" subschema is used for validation when the "if" subschema fails.')};for(Gm in Wm.schemas){Nu=Wm.schemas[Gm];for(Ba in Nu.properties)_u=Nu.properties[Ba],typeof _u=="boolean"&&(_u=Nu.properties[Ba]={}),zc=KD[Ba],zc?_u.description=zc:console.log(Ba+": localize('schema.json."+Ba+`', "")`)}var Nu,_u,zc,Ba,Gm;function ZD(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=tb(t,s);if(a){var o=e.positionAt(a.offset);n.push({target:e.uri+"#"+(o.line+1)+","+(o.character+1),range:eb(e,r.valueNode)})}}return!0}),Promise.resolve(n)}function eb(e,t){return $n.create(e.positionAt(t.offset+1),e.positionAt(t.offset+t.length-1))}function tb(e,t){var n=nb(t);return n?Qc(n,e.root):null}function Qc(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?Qc(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?Qc(e,s):null}return null}function nb(e){return e==="#"?[]:e[0]!=="#"||e[1]!=="/"?null:e.substring(2).split(/\//).map(rb)}function rb(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Tu(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 Jm(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 Ym(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=Ws(),Xc="Property {0} is not allowed.",ib={"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,}))$/}},ku="YAML",Hm="yaml-schema: ",ui;(function(e){e.missingRequiredPropWarning="missingRequiredPropWarning",e.typeMismatchWarning="typeMismatchWarning",e.constWarning="constWarning"})(ui||(ui={}));var sb={[ui.missingRequiredPropWarning]:'Missing property "{0}".',[ui.typeMismatchWarning]:'Incorrect type. Expected "{0}".',[ui.constWarning]:"Value must be {0}."},Hs=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()+"}":"")}},ab=class extends Hs{constructor(e,t,n,r){super(e,t,n,r),this.type="null",this.value=null}},ob=class extends Hs{constructor(e,t,n,r,i){super(e,t,r,i),this.type="boolean",this.value=n}},ub=class extends Hs{constructor(e,t,n,r){super(e,t,n,r),this.type="array",this.items=[]}get children(){return this.items}},lb=class extends Hs{constructor(e,t,n,r){super(e,t,n,r),this.type="number",this.isInteger=!0,this.value=Number.NaN}},Lu=class extends Hs{constructor(e,t,n,r){super(e,t,n,r),this.type="string",this.value=""}},cb=class extends Hs{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]}},fb=class extends Hs{constructor(e,t,n,r){super(e,t,n,r),this.type="object",this.properties=[]}get children(){return this.properties}};function li(e){if(e!==void 0)return Pa(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 zm;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(zm||(zm={}));var Qm=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||Xm(e,this.focusOffset))&&e!==this.exclude}newSub(){return new Qm(-1,this.exclude)}},wo=class{constructor(){}get schemas(){return[]}add(e){}merge(e){}include(e){return!0}newSub(){return this}};wo.instance=new wo;var hi=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===Wi.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!==ui.missingRequiredPropWarning||Ym(u.problemArgs,a.problemArgs)));o&&(o.problemArgs.length&&(o.problemArgs.filter(u=>!a.problemArgs.includes(u)).forEach(u=>a.problemArgs.push(u)),a.message=Pu(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(Hm,"");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 Ma(e){switch(e.type){case"array":return e.children.map(Ma);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]=Ma(s))}return t}case"null":case"string":case"number":case"boolean":return e.value;default:return}}function Xm(e,t,n=!1){return t>=e.offset&&t<=e.offset+e.length||n&&t===e.offset+e.length}function Km(e,t,n){if(n===void 0&&(n=!1),Xm(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=Km(r[i],t,n);if(s)return s}return e}}var pb=class{constructor(e,t=[],n=[]){this.root=e,this.syntaxErrors=t,this.comments=n}getNodeFromOffset(e,t=!1){if(this.root)return Km(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 hi(this.isKubernetes);return Yr(this.root,t,t,n,wo.instance,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties,uri:this.uri}),n.problems.map(r=>{const i=$n.create(e.positionAt(r.location.offset),e.positionAt(r.location.offset+r.location.length)),s=Ti.create(i,r.message,r.severity,r.code?r.code:Wi.Undefined,r.source);return s.data={schemaUri:r.schemaUri,...r.data},s})}return null}getMatchingSchemas(e,t=-1,n=null,r){const i=new Qm(t,n);return this.root&&e&&Yr(this.root,e,e,new hi(this.isKubernetes),i,{isKubernetes:this.isKubernetes,disableAdditionalProperties:this.disableAdditionalProperties,uri:this.uri,callFromAutoComplete:r}),i.schemas}};function Yr(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 Yr(e.valueNode,t,t,r,i,s)}u(),i.add({node:e,schema:t});function u(){function te(me){return e.type===me||me==="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:hr(t,n),schemaUri:mr(t,n)});else if(t.type&&!te(t.type)){const me=t.type==="object"?Yc(t):t.type;r.problems.push({location:{offset:e.offset,length:e.length},severity:Kn.Warning,message:t.errorMessage||Pu(ui.typeMismatchWarning,[me]),source:hr(t,n),schemaUri:mr(t,n),problemType:ui.typeMismatchWarning,problemArgs:[me]})}if(Array.isArray(t.allOf))for(const me of t.allOf)Yr(e,li(me),t,r,i,s);const N=li(t.not);if(N){const me=new hi(a),Le=i.newSub();Yr(e,N,t,me,Le,s),me.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:hr(t,n),schemaUri:mr(t,n)});for(const ct of Le.schemas)ct.inverted=!ct.inverted,i.add(ct)}const ue=(me,Le)=>{const ct=[],xt=[],Se=[];let we=null;for(const tt of me){const Ve={...li(tt)},$t=new hi(a),pn=i.newSub();Yr(e,Ve,t,$t,pn,s),(!$t.hasProblems()||o)&&(ct.push(Ve),xt.push(Ve),$t.propertiesMatches===0&&Se.push(Ve),Ve.format&&xt.pop()),we?a?we=B($t,we,Ve,pn):we=re(e,Le,$t,we,Ve,pn):we={schema:Ve,validationResult:$t,matchingSchemas:pn}}return xt.length>1&&(xt.length>1||Se.length===0)&&Le&&r.problems.push({location:{offset:e.offset,length:1},severity:Kn.Warning,message:ir("oneOfWarning","Matches multiple schemas when only one must validate."),source:hr(t,n),schemaUri:mr(t,n)}),we!==null&&(r.merge(we.validationResult),r.propertiesMatches+=we.validationResult.propertiesMatches,r.propertiesValueMatches+=we.validationResult.propertiesValueMatches,i.merge(we.matchingSchemas)),ct.length};Array.isArray(t.anyOf)&&ue(t.anyOf,!1),Array.isArray(t.oneOf)&&ue(t.oneOf,!0);const Te=(me,Le)=>{const ct=new hi(a),xt=i.newSub();Yr(e,li(me),Le,ct,xt,s),r.merge(ct),r.propertiesMatches+=ct.propertiesMatches,r.propertiesValueMatches+=ct.propertiesValueMatches,i.merge(xt)},ke=(me,Le,ct,xt)=>{const Se=li(me),we=new hi(a),tt=i.newSub();Yr(e,Se,Le,we,tt,s),i.merge(tt);const{filePatternAssociation:Ve}=Se;Ve&&(new Bb(Ve).matchesPattern(s.uri)||we.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:hr(t,Le),schemaUri:mr(t,Le)})),we.hasProblems()?xt&&Te(xt,Le):ct&&Te(ct,Le)},Je=li(t.if);if(Je&&ke(Je,t,li(t.then),li(t.else)),Array.isArray(t.enum)){const me=Ma(e);let Le=!1;for(const ct of t.enum)if(xo(me,ct)||o&&xu(me)&&xu(ct)&&me&&ct.startsWith(me)){Le=!0;break}r.enumValues=t.enum,r.enumValueMatch=Le,Le||r.problems.push({location:{offset:e.offset,length:e.length},severity:Kn.Warning,code:Wi.EnumValueMismatch,message:t.errorMessage||ir("enumWarning","Value is not accepted. Valid values: {0}.",t.enum.map(ct=>JSON.stringify(ct)).join(", ")),source:hr(t,n),schemaUri:mr(t,n)})}if(Ys(t.const)){const me=Ma(e);xo(me,t.const)?r.enumValueMatch=!0:(r.problems.push({location:{offset:e.offset,length:e.length},severity:Kn.Warning,code:Wi.EnumValueMismatch,problemType:ui.constWarning,message:t.errorMessage||Pu(ui.constWarning,[JSON.stringify(t.const)]),source:hr(t,n),schemaUri:mr(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:hr(t,n),schemaUri:mr(t,n)})}function l(te,N,ue){const Te=te.value;Mi(N.multipleOf)&&Te%N.multipleOf!==0&&ue.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("multipleOfWarning","Value is not divisible by {0}.",N.multipleOf),source:hr(N,n),schemaUri:mr(N,n)});function ke(Se,we){if(Mi(we))return we;if(Pa(we)&&we)return Se}function Je(Se,we){if(!Pa(we)||!we)return Se}const me=ke(N.minimum,N.exclusiveMinimum);Mi(me)&&Te<=me&&ue.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("exclusiveMinimumWarning","Value is below the exclusive minimum of {0}.",me),source:hr(N,n),schemaUri:mr(N,n)});const Le=ke(N.maximum,N.exclusiveMaximum);Mi(Le)&&Te>=Le&&ue.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("exclusiveMaximumWarning","Value is above the exclusive maximum of {0}.",Le),source:hr(N,n),schemaUri:mr(N,n)});const ct=Je(N.minimum,N.exclusiveMinimum);Mi(ct)&&Te<ct&&ue.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("minimumWarning","Value is below the minimum of {0}.",ct),source:hr(N,n),schemaUri:mr(N,n)});const xt=Je(N.maximum,N.exclusiveMaximum);Mi(xt)&&Te>xt&&ue.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("maximumWarning","Value is above the maximum of {0}.",xt),source:hr(N,n),schemaUri:mr(N,n)})}function A(te,N,ue){if(Mi(N.minLength)&&te.value.length<N.minLength&&ue.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:hr(N,n),schemaUri:mr(N,n)}),Mi(N.maxLength)&&te.value.length>N.maxLength&&ue.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:hr(N,n),schemaUri:mr(N,n)}),xu(N.pattern)&&(jm(N.pattern).test(te.value)||ue.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:hr(N,n),schemaUri:mr(N,n)})),N.format)switch(N.format){case"uri":case"uri-reference":{let Te;if(!te.value)Te=ir("uriEmpty","URI expected.");else try{!ti.parse(te.value).scheme&&N.format==="uri"&&(Te=ir("uriSchemeMissing","URI with a scheme is expected."))}catch(ke){Te=ke.message}Te&&ue.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:hr(N,n),schemaUri:mr(N,n)})}break;case"color-hex":case"date-time":case"date":case"time":case"email":{const Te=ib[N.format];(!te.value||!Te.pattern.exec(te.value))&&ue.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:N.patternErrorMessage||N.errorMessage||Te.errorMessage,source:hr(N,n),schemaUri:mr(N,n)})}break}}function p(te,N,ue,Te){if(Array.isArray(N.items)){const Je=N.items;for(let me=0;me<Je.length;me++){const Le=Je[me],ct=li(Le),xt=new hi(a),Se=te.items[me];Se?(Yr(Se,ct,N,xt,Te,s),ue.mergePropertyMatch(xt),ue.mergeEnumValues(xt)):te.items.length>=Je.length&&ue.propertiesValueMatches++}if(te.items.length>Je.length)if(typeof N.additionalItems=="object")for(let me=Je.length;me<te.items.length;me++){const Le=new hi(a);Yr(te.items[me],N.additionalItems,N,Le,Te,s),ue.mergePropertyMatch(Le),ue.mergeEnumValues(Le)}else N.additionalItems===!1&&ue.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.",Je.length),source:hr(N,n),schemaUri:mr(N,n)})}else{const Je=li(N.items);if(Je){const me=new hi(a);te.items.forEach(Le=>{if(Je.oneOf&&Je.oneOf.length===1){const ct=Je.oneOf[0],xt={...li(ct)};xt.title=N.title,xt.closestTitle=N.closestTitle,Yr(Le,xt,N,me,Te,s),ue.mergePropertyMatch(me),ue.mergeEnumValues(me)}else Yr(Le,Je,N,me,Te,s),ue.mergePropertyMatch(me),ue.mergeEnumValues(me)})}}const ke=li(N.contains);if(ke&&(te.items.some(me=>{const Le=new hi(a);return Yr(me,ke,N,Le,wo.instance,s),!Le.hasProblems()})||ue.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:N.errorMessage||ir("requiredItemMissingWarning","Array does not contain required item."),source:hr(N,n),schemaUri:mr(N,n)})),Mi(N.minItems)&&te.items.length<N.minItems&&ue.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:hr(N,n),schemaUri:mr(N,n)}),Mi(N.maxItems)&&te.items.length>N.maxItems&&ue.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:hr(N,n),schemaUri:mr(N,n)}),N.uniqueItems===!0){const Je=Ma(te);Je.some((Le,ct)=>ct!==Je.lastIndexOf(Le))&&ue.problems.push({location:{offset:te.offset,length:te.length},severity:Kn.Warning,message:ir("uniqueItemsWarning","Array has duplicate items."),source:hr(N,n),schemaUri:mr(N,n)})}}function O(te,N,ue,Te){var ke;const Je=Object.create(null),me=[],Le=[...te.properties];for(;Le.length>0;){const Se=Le.pop(),we=Se.keyNode.value;if(we==="<<"&&Se.valueNode)switch(Se.valueNode.type){case"object":{Le.push(...Se.valueNode.properties);break}case"array":{Se.valueNode.items.forEach(tt=>{tt&&UD(tt.properties)&&Le.push(...tt.properties)});break}}else Je[we]=Se.valueNode,me.push(we)}if(Array.isArray(N.required)){for(const Se of N.required)if(Je[Se]===void 0){const we=te.parent&&te.parent.type==="property"&&te.parent.keyNode,tt=we?{offset:we.offset,length:we.length}:{offset:te.offset,length:1};ue.problems.push({location:tt,severity:Kn.Warning,message:Pu(ui.missingRequiredPropWarning,[Se]),source:hr(N,n),schemaUri:mr(N,n),problemArgs:[Se],problemType:ui.missingRequiredPropWarning})}}const ct=Se=>{let we=me.indexOf(Se);for(;we>=0;)me.splice(we,1),we=me.indexOf(Se)};if(N.properties)for(const Se of Object.keys(N.properties)){ct(Se);const we=N.properties[Se],tt=Je[Se];if(tt)if(Pa(we))if(we)ue.propertiesMatches++,ue.propertiesValueMatches++;else{const Ve=tt.parent;ue.problems.push({location:{offset:Ve.keyNode.offset,length:Ve.keyNode.length},severity:Kn.Warning,message:N.errorMessage||ir("DisallowedExtraPropWarning",Xc,Se),source:hr(N,n),schemaUri:mr(N,n)})}else{we.url=(ke=N.url)!=null?ke:n.url;const Ve=new hi(a);Yr(tt,we,N,Ve,Te,s),ue.mergePropertyMatch(Ve),ue.mergeEnumValues(Ve)}}if(N.patternProperties)for(const Se of Object.keys(N.patternProperties)){const we=jm(Se);for(const tt of me.slice(0))if(we.test(tt)){ct(tt);const Ve=Je[tt];if(Ve){const $t=N.patternProperties[Se];if(Pa($t))if($t)ue.propertiesMatches++,ue.propertiesValueMatches++;else{const pn=Ve.parent;ue.problems.push({location:{offset:pn.keyNode.offset,length:pn.keyNode.length},severity:Kn.Warning,message:N.errorMessage||ir("DisallowedExtraPropWarning",Xc,tt),source:hr(N,n),schemaUri:mr(N,n)})}else{const pn=new hi(a);Yr(Ve,$t,N,pn,Te,s),ue.mergePropertyMatch(pn),ue.mergeEnumValues(pn)}}}}if(typeof N.additionalProperties=="object")for(const Se of me){const we=Je[Se];if(we){const tt=new hi(a);Yr(we,N.additionalProperties,N,tt,Te,s),ue.mergePropertyMatch(tt),ue.mergeEnumValues(tt)}}else if((N.additionalProperties===!1||N.type==="object"&&N.additionalProperties===void 0&&s.disableAdditionalProperties===!0)&&me.length>0){const Se=N.properties&&Object.keys(N.properties).filter(we=>!Je[we]);for(const we of me){const tt=Je[we];if(tt){let Ve=null;tt.type!=="property"?(Ve=tt.parent,Ve.type==="object"&&(Ve=Ve.properties[0])):Ve=tt;const $t={location:{offset:Ve.keyNode.offset,length:Ve.keyNode.length},severity:Kn.Warning,message:N.errorMessage||ir("DisallowedExtraPropWarning",Xc,we),source:hr(N,n),schemaUri:mr(N,n)};Se!=null&&Se.length&&($t.data={properties:Se}),ue.problems.push($t)}}}if(Mi(N.maxProperties)&&te.properties.length>N.maxProperties&&ue.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:hr(N,n),schemaUri:mr(N,n)}),Mi(N.minProperties)&&te.properties.length<N.minProperties&&ue.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:hr(N,n),schemaUri:mr(N,n)}),N.dependencies){for(const Se of Object.keys(N.dependencies))if(Je[Se]){const tt=N.dependencies[Se];if(Array.isArray(tt))for(const Ve of tt)Je[Ve]?ue.propertiesValueMatches++:ue.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,Se),source:hr(N,n),schemaUri:mr(N,n)});else{const Ve=li(tt);if(Ve){const $t=new hi(a);Yr(te,Ve,N,$t,Te,s),ue.mergePropertyMatch($t),ue.mergeEnumValues($t)}}}}const xt=li(N.propertyNames);if(xt)for(const Se of te.properties){const we=Se.keyNode;we&&Yr(we,xt,N,ue,wo.instance,s)}}function B(te,N,ue,Te){const ke=te.compareKubernetes(N.validationResult);return ke>0?N={schema:ue,validationResult:te,matchingSchemas:Te}:ke===0&&(N.matchingSchemas.merge(Te),N.validationResult.mergeEnumValues(te)),N}function re(te,N,ue,Te,ke,Je){if(!N&&!ue.hasProblems()&&(!Te.validationResult.hasProblems()||o))Te.matchingSchemas.merge(Je),Te.validationResult.propertiesMatches+=ue.propertiesMatches,Te.validationResult.propertiesValueMatches+=ue.propertiesValueMatches;else{const me=ue.compareGeneric(Te.validationResult);me>0||me===0&&N&&Te.schema.type==="object"&&te.type!=="null"&&te.type!==Te.schema.type?Te={schema:ke,validationResult:ue,matchingSchemas:Je}:me===0&&(Te.matchingSchemas.merge(Je),Te.validationResult.mergeEnumValues(ue),Te.validationResult.mergeWarningGeneric(ue,[ui.missingRequiredPropWarning,ui.typeMismatchWarning,ui.constWarning]))}return Te}}function hr(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=ti.parse(i);s.scheme==="file"&&(r=s.fsPath),r=s.toString()}}if(r)return`${Hm}${r}`}return ku}function mr(e,t){var n;const r=(n=e.url)!=null?n:t.url;return r?[r]:[]}function Pu(e,t){return ir(e,sb[e],t.join(" | "))}var db=1e3,Kc=0;function Ia(e,t,n,r){if(e||(Kc=0),!t)return null;if(Ur(t))return hb(t,e,n,r);if(dr(t))return mb(t,e,n,r);if(Pr(t))return gb(t,e,n,r);if(Jn(t))return yb(t,e);if(Zi(t))return Kc>db?void 0:Db(t,e,n,r)}function hb(e,t,n,r){let i;e.flow&&!e.range?i=bb(e):i=e.range;const s=new fb(t,e,...Zm(i,r));for(const a of e.items)dr(a)&&s.properties.push(Ia(s,a,n,r));return s}function mb(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 cb(t,e,...Zm([a,o,u],r));if(Zi(i)){const A=new Lu(t,i,...Ps(i.range));A.value=i.source,l.keyNode=A}else l.keyNode=Ia(l,i,n,r);return l.valueNode=Ia(l,s,n,r),l}function gb(e,t,n,r){const i=new ub(t,e,...Ps(e.range));for(const s of e.items)if(yr(s)){const a=Ia(i,s,n,r);a&&i.children.push(a)}return i}function yb(e,t){if(e.value===null)return new ab(t,e,...Ps(e.range));switch(typeof e.value){case"string":{const n=new Lu(t,e,...Ps(e.range));return n.value=e.value,n}case"boolean":return new ob(t,e,e.value,...Ps(e.range));case"number":{const n=new lb(t,e,...Ps(e.range));return n.value=e.value,n.isInteger=Number.isInteger(n.value),n}default:{const n=new Lu(t,e,...Ps(e.range));return n.value=e.source,n}}}function Db(e,t,n,r){Kc++;const i=e.resolve(n);if(i)return Ia(t,i,n,r);{const s=new Lu(t,e,...Ps(e.range));return s.value=e.source,s}}function Ps(e){return[e[0],e[1]-e[0]]}function Zm(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 bb(e){let t=Number.MAX_SAFE_INTEGER,n=0;for(const r of e.items)dr(r)&&(yr(r.key)&&r.key.range&&r.key.range[0]<=t&&(t=r.key.range[0]),yr(r.value)&&r.value.range&&r.value.range[2]>=n&&(n=r.value.range[2]));return[t,n,n]}function vb(e,t){let n;if(Nr(e,(r,i,s)=>{if(i===t)return n=s[s.length-1],Nr.BREAK}),!po(n))return n}function Eb(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 Ab(e,t){for(const[n,r]of e.items.entries())if(t===r)return n}function Cb(e,t){let n=!1;for(const r of e){if(r.type==="document")Zc([],r,i=>{var s;if(e0(i)&&((s=i.value)==null?void 0:s.type)==="comment"){if(r.offset<=t&&i.value.source.length+i.value.offset>=t)return n=!0,Nr.BREAK}else if(i.type==="comment"&&i.offset<=t&&i.offset+i.source.length>=t)return n=!0,Nr.BREAK});else if(r.type==="comment"&&r.offset<=t&&r.source.length+r.offset>=t)return!0;if(n)break}return n}function e0(e){return e.start!==void 0}function Zc(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=Zc(Object.freeze(e.concat([[s,o]])),a.items[o],n);if(typeof u=="number")o=u-1;else{if(u===Nr.BREAK)return Nr.BREAK;u===Nr.REMOVE&&(a.items.splice(o,1),o-=1)}}typeof r=="function"&&s==="key"&&(r=r(t,e))}}const i=t.sep;if(i)for(let s=0;s<i.length;++s){const a=Zc(Object.freeze(e),i[s],n);if(typeof a=="number")s=a-1;else{if(a===Nr.BREAK)return Nr.BREAK;a===Nr.REMOVE&&(i.items.splice(s,1),s-=1)}}return typeof r=="function"?r(t,e):r}var ef=class extends pb{constructor(e){super(null,[]),this.lineCounter=e}clone(){const e=new ef(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(`
407
- `).forEach(t=>this._lineComments.push(`#${t}`)),Nr(this.internalDocument,(e,t)=>{t!=null&&t.commentBefore&&(t==null?void 0:t.commentBefore.split(`
408
- `)).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=Ia(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(n0)}get warnings(){return this.internalDocument.warnings.map(n0)}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 Nr(this.internalDocument,(A,p)=>{if(!p)return;const O=p.range;if(!O)return;const B=()=>o&&e+u===O[2]&&Jn(p)&&p.value===null;if(O[0]<=e&&O[1]>=e||B())l=p;else return Nr.SKIP}),[l,!1]}findClosestNode(e,t,n){let r=this.internalDocument.range[2],i=this.internalDocument.range[0],s;Nr(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=RD(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,yr(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(dr(u)&&yr(u.value))return u.value;if(dr(s)&&yr(s.value))return s.value}else return t}else if(dr(t)){s=t;const a=this.getParent(t);return this.getProperParentByIndentation(e,a,n,r,i,s)}return t}getParent(e){return vb(this.internalDocument,e)}},t0=class{constructor(e,t){this.documents=e,this.tokens=t,this.errors=[],this.warnings=[]}},Sb=class{constructor(){this.cache=new Map}getYamlDocument(e,t,n=!1){return this.ensureCache(e,t??Bu,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 t0([],[]),parserOptions:Bu});const i=this.cache.get(r);if(i.version!==e.version||t.customTags&&!Ym(i.parserOptions.customTags,t.customTags)){let s=e.getText();n&&!/\S/.test(s)&&(s=`{${s}}`);const a=Nb(s,t,e);i.document=a,i.version=e.version,i.parserOptions=t}}},ts=new Sb;function n0(e){return{message:e.message,location:{start:e.pos[0],end:e.pos[1],toLineEnd:!0},severity:1,code:Wi.Undefined}}var xb=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"||Pr(e)&&this.type==="sequence"||typeof e=="string"&&this.type==="scalar")return e}},wb=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 Fb(e){const t=[],n=Jm(e);for(const r of n){const i=r.split(" "),s=i[0],a=i[1]&&i[1].toLowerCase()||"scalar";t.push(new xb(s,a))}return t.push(new wb),t}var zs=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($n.create(e-1,t,e-1,t+1)).charCodeAt(0)}getText(e){return this.doc.getText(e)}getPosition(e){return this.doc.positionAt(e)}},Bu={customTags:[],yamlVersion:"1.2"};function Nb(e,t=Bu,n){var r;const i={strict:!1,customTags:Fb(t.customTags),version:(r=t.yamlVersion)!=null?r:Bu.yamlVersion,keepSourceTokens:!0},s=new bm(i),a=new wm;let o=!1;if(n){const B=new zs(n),re=B.getPosition(e.length);o=B.getLineContent(re.line).trim().length===0}const l=(o?new Gc:new Gc(a.addNewLine)).parse(e),A=Array.from(l),p=s.compose(A,!0,e.length),O=Array.from(p,B=>_b(B,a));return new t0(O,A)}function _b(e,t){const n=new ef(t);return n.internalDocument=e,n}function Tb(e){if(e instanceof ef){const t=e.lineComments.find(n=>tf(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 tf(e){const t=e.match(/^#\s+yaml-language-server\s*:/g);return t!==null&&t.length===1}var kb=class{compile(){return()=>!0}},Mu=Ws(),Lb=new kb,Pb=wD(),r0=Lb.compile(Pb),i0;(function(e){e[e.delete=0]="delete",e[e.add=1]="add",e[e.deleteAll=2]="deleteAll"})(i0||(i0={}));var Bb=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}},Mb=class extends ID{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(!r0(i)){const A=[];for(const p of r0.errors)A.push(`${p.instancePath} : ${p.message}`);r.push(`Schema '${Rm(e.schema,t)}' is not valid:
409
- ${A.join(`
410
- `)}`)}const a=(A,p)=>{if(!p)return A;let O=A;return p[0]==="/"&&(p=p.substr(1)),p.split("/").some(B=>(O=O[B],!O)),O},o=(A,p,O,B)=>{const re=a(p,B);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(Mu("json.schema.invalidref","$ref '{0}' in '{1}' can not be resolved.",B,O))},u=(A,p,O,B,re)=>{s&&!/^\w+:\/\/.*/.test(p)&&(p=s.resolveRelativePath(p,B)),p=this.normalizeId(p);const te=this.getOrAddSchemaHandle(p);return te.getUnresolvedSchema().then(N=>{if(re[p]=!0,N.errors.length){const ue=O?p+"#"+O:p;r.push(Mu("json.schema.problemloadingref","Problems loading reference '{0}': {1}",ue,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,B)=>{if(!A||typeof A!="object")return null;const re=[A],te=[],N=[],ue=(...me)=>{for(const Le of me)typeof Le=="object"&&re.push(Le)},Te=(...me)=>{for(const Le of me)if(typeof Le=="object")for(const ct in Le){const xt=Le[ct];typeof xt=="object"&&re.push(xt)}},ke=(...me)=>{for(const Le of me)if(Array.isArray(Le))for(const ct of Le)typeof ct=="object"&&re.push(ct)},Je=me=>{const Le=[];for(;me.$ref;){const ct=me.$ref,xt=ct.split("#",2);if(me._$ref=me.$ref,delete me.$ref,xt[0].length>0){N.push(u(me,xt[0],xt[1],O,B));return}else Le.indexOf(ct)===-1&&(o(me,p,O,xt[1]),Le.push(ct))}ue(me.items,me.additionalItems,me.additionalProperties,me.not,me.contains,me.propertyNames,me.if,me.then,me.else),Te(me.definitions,me.properties,me.patternProperties,me.dependencies),ke(me.anyOf,me.allOf,me.oneOf,me.items,me.schemaSequence)};if(O.indexOf("#")>0){const me=O.split("#",2);if(me[0].length>0&&me[1].length>0){const Le={};await u(Le,me[0],me[1],O,B);for(const ct in i)ct!=="required"&&Object.prototype.hasOwnProperty.call(i,ct)&&!Object.prototype.hasOwnProperty.call(Le,ct)&&(Le[ct]=i[ct]);i=Le}}for(;re.length;){const me=re.pop();te.indexOf(me)>=0||(te.push(me),Je(me))}return Promise.all(N)};return await l(i,i,t,n),new So(i,r)}getSchemaForResource(e,t){const n=()=>{let a=Tb(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(qs.isAbsolute(a))a=ti.file(a).toString();else{const u=ti.parse(e);a=ti.file(qs.resolve(qs.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 So(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 So(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(rf.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 ti.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=Mu("json.schema.nocontent","Unable to load schema from '{0}': No content. {1}",s0(e),n.errors);return new Gi({},[i])}try{const i=DD(r);return new Gi(i,[])}catch(i){const s=Mu("json.schema.invalidFormat","Unable to parse content from '{0}': {1}.",s0(e),i);return new Gi({},[s])}},r=>{let i=r.toString();const s=r.toString().split("Error: ");return s.length>1&&(i=s[1]),new Gi({},[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 s0(e){try{const t=ti.parse(e);if(t.scheme==="file")return t.fsPath}catch{}return e}var Ib=class{constructor(e,t){this.telemetry=t,this.jsonDocumentSymbols=new XD(e),this.jsonDocumentSymbols.getKeyLabel=n=>{const r=n.keyNode.internalNode;let i="";return Ur(r)?i="{}":Pr(r)?i="[]":i=r.source,i}}findDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){let n=[];try{const r=ts.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:os(r)})}return n}findHierarchicalDocumentSymbols(e,t={resultLimit:Number.MAX_VALUE}){let n=[];try{const r=ts.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:os(r)})}return n}};function a0(e,t){for(const n of e)n.isKubernetes=t}var Ob=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=ts.getYamlDocument(e),i=e.offsetAt(t),s=Tu(i,r);if(s===null)return Promise.resolve(void 0);a0(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:os(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=$n.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,B,re;const te=[];A.every(ue=>{if((ue.node===i||i.type==="property"&&i.valueNode===ue.node)&&!ue.inverted&&ue.schema){if(p=p||ue.schema.title||ue.schema.closestTitle,O=O||ue.schema.markdownDescription||Iu(ue.schema.description),ue.schema.enum){const Te=ue.schema.enum.indexOf(Ma(i));ue.schema.markdownEnumDescriptions?B=ue.schema.markdownEnumDescriptions[Te]:ue.schema.enumDescriptions&&(B=Iu(ue.schema.enumDescriptions[Te])),B&&(re=ue.schema.enum[Te],typeof re!="string"&&(re=JSON.stringify(re)))}ue.schema.anyOf&&Rb(i,A,ue.schema)&&(p="",O="",ue.schema.anyOf.forEach((Te,ke)=>{p+=Te.title||ue.schema.closestTitle||"",O+=Te.markdownDescription||Iu(Te.description)||"",ke!==ue.schema.anyOf.length-1&&(p+=" || ",O+=" || ")}),p=u(p),O=u(O)),ue.schema.examples&&ue.schema.examples.forEach(Te=>{te.push(JSON.stringify(Te))})}return!0});let N="";return p&&(N="#### "+Iu(p)),O&&(N.length>0&&(N+=`
411
-
412
- `),N+=O),B&&(N.length>0&&(N+=`
413
-
414
- `),N+=`\`${$b(re)}\`: ${B}`),te.length!==0&&(N.length>0&&(N+=`
415
-
416
- `),N+="Examples:",te.forEach(ue=>{N+=`
417
-
418
- \`\`\`${ue}\`\`\``})),N.length>0&&l.schema.url&&(N+=`
419
-
420
- Source: [${jb(l.schema)}](${l.schema.url})`),o(N)}return null})}};function jb(e){let t="JSON Schema";const n=e.url;if(n){const r=ti.parse(n);t=qs.basename(r.fsPath)}else e.title&&(t=e.title);return t}function Iu(e){if(e)return e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
421
-
422
- $3`).replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}function $b(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}function Rb(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 Vb=class{validate(e,t){const n=[],r=new Set,i=new Set,s=new Map;Nr(t.internalDocument,(a,o,u)=>{yr(o)&&((Lr(o)||Jn(o))&&o.anchor&&(r.add(o),s.set(o,u[u.length-1])),Zi(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=$n.create(e.positionAt(o.offset),e.positionAt(o.offset+o.source.length)),l=Ti.create(u,`Unused anchor "${o.source}"`,Kn.Hint,0);l.tags=[uc.Unnecessary],n.push(l)}}return n}getAnchorNode(e){if(e&&e.srcToken){const t=e.srcToken;if(e0(t))return o0(t);if(fD(t))for(const n of t.items){const r=o0(n);if(r)return r}}}};function o0(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 Nr(t.internalDocument,(r,i)=>{var s,a;this.forbidMapping&&Ur(i)&&((s=i.srcToken)==null?void 0:s.type)==="flow-collection"&&n.push(Ti.create(this.getRangeOf(e,i.srcToken),"Flow style mapping is forbidden",Kn.Error,"flowMap")),this.forbidSequence&&Pr(i)&&((a=i.srcToken)==null?void 0:a.type)==="flow-collection"&&n.push(Ti.create(this.getRangeOf(e,i.srcToken),"Flow style sequence is forbidden",Kn.Error,"flowSeq"))}),n}getRangeOf(e,t){return $n.create(e.positionAt(t.start.offset),e.positionAt(t.end.pop().offset))}},qb=(e,t)=>{const n=t.positionAt(e.location.start),r={start:n,end:e.location.toLineEnd?Jr.create(n.line,new zs(t).getLineLength(n.line)):t.positionAt(e.location.end)};return Ti.create(r,e.message,e.severity,e.code,ku)},Wb=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 GD(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 Vb)}async doValidation(e,t=!1){if(!this.validationEnabled)return Promise.resolve([]);const n=[];try{const a=ts.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:os(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=qb(a,e)),a.source||(a.source=ku),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}},Gb=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:[CD],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=ED.format(n,r);return[wr.replace($n.create(Jr.create(0,0),e.positionAt(n.length)),i)]}catch{return[]}}},Jb=class{constructor(e){this.telemetry=e}findLinks(e){try{const t=ts.getYamlDocument(e),n=[];for(const r of t.documents)n.push(ZD(e,r));return Promise.all(n).then(r=>[].concat(...r))}catch(t){this.telemetry.sendError("yaml.documentLink.error",{error:os(t)})}}};function Yb(e,t){if(!e)return;const n=[],r=ts.getYamlDocument(e);for(const s of r.documents)r.documents.length>1&&n.push(Ou(e,s.root)),s.visit(a=>{var o;if(a.type==="object"&&((o=a.parent)==null?void 0:o.type)==="array"&&n.push(Ou(e,a)),a.type==="property"&&a.valueNode)switch(a.valueNode.type){case"array":case"object":n.push(Ou(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(Ou(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 Ou(e,t){const n=e.positionAt(t.offset);let r=e.positionAt(t.offset+t.length);const i=e.getText($n.create(n,r)),s=i.length-i.trimRight().length;return s>0&&(r=e.positionAt(t.offset+t.length-s)),ac.create(n.line,r.line,n.character,r.character)}var Fo;(function(e){e.JUMP_TO_SCHEMA="jumpToSchema"})(Fo||(Fo={}));var Hb=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:`
423
- `}),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:`
424
- `},{type:"space",indent:0,offset:u.offset,source:this.indentation},{type:"seq-item-ind",indent:0,offset:u.offset,source:"-"},{type:"space",indent:0,offset:u.offset,source:" "}],value:u});if(u.type==="flow-collection")return Nr.SKIP});return lD(i)}},zb=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=Fs.create(`Jump to schema location (${qs.basename(l)})`,Os.create("JumpToSchema",Fo.JUMP_TO_SCHEMA,l));A.diagnostics=o.get(l),u.push(A)}return u}getTabToSpaceConverting(e,t){const n=[],r=new zs(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=$n.create(s.range.start,Jr.create(s.range.end.line,s.range.start.character+o))),n.push(Fs.create("Convert Tab to Spaces",No(t.uri,[wr.replace(l,u)]),js.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(wr.replace($n.create(a,A-u,a,A),l)),u=0,l="");break}if(p===" "&&u!==0){s.push(wr.replace($n.create(a,A-u,a,A),l)),u=0,l="";continue}p===" "&&(l+=this.indentation,u++)}u!==0&&s.push(wr.replace($n.create(a,0,a,r.getLineLength(a)),l))}s.length>0&&n.push(Fs.create("Convert all Tabs to Spaces",No(t.uri,s),js.QuickFix))}return n}getUnusedAnchorsDelete(e,t){const n=[],r=new zs(t);for(const i of e)if(i.message.startsWith("Unused anchor")&&i.source===ku){const s=$n.create(i.range.start,i.range.end),a=r.getText(s),o=r.getLineContent(s.end.line),u=VD(o,s.end.character);s.end.character=u;const l=Fs.create(`Delete unused anchor: ${a}`,No(t.uri,[wr.del(s)]),js.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(Fs.create("Convert to boolean",No(t.uri,[wr.replace(r.range,s)]),js.QuickFix))}}return n}getConvertToBlockStyleActions(e,t){const n=[];for(const r of e)if(r.code==="flowMap"||r.code==="flowSeq"){const i=ts.getYamlDocument(t),s=t.offsetAt(r.range.start),o=Tu(s,i).getNodeFromOffset(s);if(Ur(o.internalNode)||Pr(o.internalNode)){const u=Ur(o.internalNode)?"map":"sequence",l=new Hb(this.indentation);n.push(Fs.create(`Convert to block style ${u}`,No(t.uri,[wr.replace(r.range,l.write(o))]),js.QuickFix))}}return n}};function No(e,t){const n={};return n[e]=t,{changes:n}}var Qb=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)}},Xb=new Qb;function Kb(e,t){const{position:n}=t,r=new zs(e);if(t.ch===`
425
- `){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(wr.del($n.create(n,Jr.create(n.line,s.length-1)))),l.push(wr.insert(n," ".repeat(t.options.tabSize+(o?2-u:0)))),l}if(o)return[wr.insert(n," ".repeat(t.options.tabSize))]}if(i.trimRight().endsWith("|"))return[wr.insert(n," ".repeat(t.options.tabSize))];if(i.includes(" - ")&&!i.includes(": "))return[wr.insert(n,"- ")];if(i.includes(" - ")&&i.includes(": "))return[wr.insert(n," ")]}}function Zb(e){const t=new Map;return e&&(e.url?e.url.startsWith("schemaservice://combinedSchema/")?u0(e,t):t.set(e.url,e):u0(e,t)),t}function u0(e,t){e.allOf&&nf(e.allOf,t),e.anyOf&&nf(e.anyOf,t),e.oneOf&&nf(e.oneOf,t)}function nf(e,t){for(const n of e)!Pa(n)&&n.url&&!t.has(n.url)&&t.set(n.url,n)}var ev=class{constructor(e,t){this.schemaService=e,this.telemetry=t}async getCodeLens(e){const t=[];try{const n=ts.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([...Zb(s==null?void 0:s.schema),...r]))}for(const i of r){const s=dc.create($n.create(0,0,0,0));s.command={title:Rm(i[1],i[0]),command:Fo.JUMP_TO_SCHEMA,arguments:[i[0]]},t.push(s)}}catch(n){this.telemetry.sendError("yaml.codeLens.error",{error:os(n)})}return t}resolveCodeLens(e){return e}};function tv(e,t){e.registerCommand(Fo.JUMP_TO_SCHEMA,async n=>{if(!n)return;if(!n.startsWith("file")&&!/^[a-z]:[\\/]/i.test(n)){const i=ti.parse(n);n=ti.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=ti.file(n).toString()),await t.window.showDocument({uri:n,external:!1,takeFocus:!0})||t.window.showErrorMessage(`Cannot open ${n}`)})}var nv=class{constructor(){this.spacesDiff=0,this.looksLikeAlignment=!1}};function rv(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),B=n.charCodeAt(s);if(O!==B)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 iv(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 nv;for(let re=1;re<=r;re++){const te=e.getLineLength(re),N=e.getLineContent(re),ue=te<=65536;let Te=!1,ke=0,Je=0,me=0;for(let ct=0,xt=te;ct<xt;ct++){const Se=ue?N.charCodeAt(ct):e.getLineCharCode(re,ct);if(Se===9)me++;else if(Se===32)Je++;else{Te=!0,ke=ct;break}}if(!Te||(me>0?i++:Je>1&&s++,rv(a,o,N,ke,p),p.looksLikeAlignment&&!(n&&t===p.spacesDiff)))continue;const Le=p.spacesDiff;Le<=l&&A[Le]++,a=N,o=ke}let O=n;i!==s&&(O=i<s);let B=t;if(O){let re=O?0:.1*r;u.forEach(te=>{const N=A[te];N>re&&(re=N,B=te)}),B===4&&A[4]>0&&A[2]>0&&A[2]>=A[4]/2&&(B=2)}return{insertSpaces:O,tabSize:B}}function ju(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+=`
426
- `+a+"- "+n(e[u]);continue}Array.isArray(e[u])||(l=sv(e[u],s)),o+=ju(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?`
427
- `:"";for(let l=0;l<o.length;l++){const A=o[l],p=typeof e[A]=="object",O=p?":":": ",B=p&&/^\s|-/.test(A)?r.indentation:"",re=a+B;if(i===0&&l===0&&!r.indentFirstObject){const te=ju(e[A],re,n,r,i+=1,0);u+=t+A+O+te}else{const te=ju(e[A],re,n,r,i+=1,0);u+=a+A+O+te}l<o.length-1&&(u+=`
428
- `)}return u}}return n(e)}function sv(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 av=Ws(),l0=/[\\]+"/g,c0=Ei.Class,ov=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=pc.create([],!1);if(!this.completionEnabled)return i;const s=this.yamlDocument.getYamlDocument(e,{customTags:this.customTags,yamlVersion:this.yamlVersion},!0),a=new zs(e);if(this.configuredIndentation)this.indentation=this.configuredIndentation;else{const me=iv(a,2,!0);this.indentation=me.insertSpaces?" ".repeat(me.tabSize):" "}a0(s.documents,n);for(const me of s.documents)me.uri=e.uri;const o=e.offsetAt(t),u=e.getText();if(u.charAt(o-1)===":")return Promise.resolve(i);let l=Tu(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 B=a.getLineContent(t.line);const re=B.substring(t.character),te=/^[ ]+\n?$/.test(re);this.arrayPrefixIndentation="";let N=null;if(te){N=$n.create(t,Jr.create(t.line,B.length));const me=B.trim().length===0,Le=B.match(/^\s*(-)\s*$/);if(A&&Jn(A)&&!me&&!Le){const ct=B.match(/^([\s-]*)[^:]+[ \t]+\n?$/);ct!=null&&ct.length&&(N=$n.create(Jr.create(t.line,ct[1].length),Jr.create(t.line,B.length)))}}else if(A&&Jn(A)&&A.value==="null"){const me=e.positionAt(A.range[0]);me.character+=1;const Le=e.positionAt(A.range[2]);Le.character+=1,N=$n.create(me,Le)}else if(A&&Jn(A)&&A.value){const me=e.positionAt(A.range[0]);o>0&&me.character>0&&u.charAt(o-1)==="-"&&(me.character-=1),N=$n.create(me,e.positionAt(A.range[1]))}else if(A&&Jn(A)&&A.value===null&&O==="-")N=$n.create(t,t),this.arrayPrefixIndentation=" ";else{let me=e.offsetAt(t)-O.length;me>0&&u[me-1]==='"'&&me--,N=$n.create(e.positionAt(me),t)}const ue={},Te="__",ke={add:(me,Le)=>{const ct=function(Ve){var $t;if((($t=ue[Ve.label])==null?void 0:$t.label)===Te)return;const kn=Ve.parent.schema,Lt=Yc(kn),Tt=kn.markdownDescription||kn.description;let Ut=i.items.find(en=>{var Ln;return((Ln=en.parent)==null?void 0:Ln.schema)===kn&&en.kind===c0});Ut&&Ut.parent.insertTexts.includes(Ve.insertText)||(Ut?Ut.parent.insertTexts.push(Ve.insertText):(Ut={...Ve,label:Lt,documentation:Tt,sortText:"_"+Lt,kind:c0},Ut.label=Ut.label||Ve.label,Ut.parent.insertTexts=[Ve.insertText],i.items.push(Ut)))},xt=!!me.parent;let Se=me.label;if(!Se){console.warn(`Ignoring CompletionItem without label: ${JSON.stringify(me)}`);return}if(xu(Se)||(Se=String(Se)),Se=Se.replace(/[\n]/g,"↵"),Se.length>60){const Ve=Se.substr(0,57).trim()+"...";ue[Ve]||(Se=Ve)}if(me.insertText.endsWith("$1")&&!xt&&(me.insertText=me.insertText.substr(0,me.insertText.length-2)),N&&N.start.line===N.end.line&&(me.textEdit=wr.replace(N,me.insertText)),me.label=Se,xt){ct(me);return}this.arrayPrefixIndentation&&this.updateCompletionText(me,this.arrayPrefixIndentation+me.insertText);const we=ue[Se],tt=(we==null?void 0:we.label)!==Te&&(we==null?void 0:we.insertText)!==me.insertText;if(!we)ue[Se]=me,i.items.push(me);else if(tt){const Ve=this.mergeSimpleInsertTexts(Se,we.insertText,me.insertText,Le);Ve?this.updateCompletionText(we,Ve):(ue[Se]=me,i.items.push(me))}we&&!we.documentation&&me.documentation&&(we.documentation=me.documentation)},error:me=>{this.telemetry.sendError("yaml.completion.error",{error:os(me)})},log:me=>{console.log(me)},getNumberOfProposals:()=>i.items.length,result:i};this.customTags.length>0&&this.getCustomTagValueCompletions(ke),B.endsWith(`
429
- `)&&(B=B.substr(0,B.length-1));try{const me=await this.schemaService.getSchemaForResource(e.uri,l);if((!me||me.errors.length)&&t.line===0&&t.character===0&&!tf(B)){const Se={kind:Ei.Text,label:"Inline schema",insertText:"# yaml-language-server: $schema=",insertTextFormat:Kr.PlainText};i.items.push(Se)}if(tf(B)||Cb(s.tokens,o)){const Se=B.indexOf("$schema=");return Se!==-1&&Se+8<=t.character&&this.schemaService.getAllSchemas().forEach(we=>{var tt;const Ve={kind:Ei.Constant,label:(tt=we.name)!=null?tt:we.uri,detail:we.description,insertText:we.uri,insertTextFormat:Kr.PlainText,insertTextMode:cc.asIs};i.items.push(Ve)}),i}if(!me||me.errors.length)return i;let Le=null;if(!A)if(!l.internalDocument.contents||Jn(l.internalDocument.contents)){const Se=l.internalDocument.createNode({});Se.range=[o,o+1,o+1],l.internalDocument.contents=Se,l.internalDocument=l.internalDocument,A=Se}else A=l.findClosestNode(o,a),p=!0;const ct=A;if(A)if(B.length===0)A=l.internalDocument.contents;else{const Se=l.getParent(A);if(Se){if(Jn(A)){if(A.value){if(dr(Se)){if(Se.value===A){if(B.trim().length>0&&B.indexOf(":")<0){const we=this.createTempObjNode(O,A,l),tt=l.getParent(Se);if(Pr(l.internalDocument.contents)){const Ve=Ab(l.internalDocument.contents,Se);typeof Ve=="number"&&(l.internalDocument.set(Ve,we),l.internalDocument=l.internalDocument)}else tt&&(Ur(tt)||Pr(tt))?(tt.set(Se.key,we),l.internalDocument=l.internalDocument):(l.internalDocument.set(Se.key,we),l.internalDocument=l.internalDocument);Le=we.items[0],A=we}else if(B.trim().length===0){const we=l.getParent(Se);we&&(A=we)}}else if(Se.key===A){const we=l.getParent(Se);Le=Se,we&&(A=we)}}else if(Pr(Se))if(B.trim().length>0){const we=this.createTempObjNode(O,A,l);Se.delete(A),Se.add(we),l.internalDocument=l.internalDocument,A=we}else A=Se}else if(A.value===null){if(dr(Se)){if(Se.key===A)A=Se;else if(yr(Se.key)&&Se.key.range){const we=l.getParent(Se);if(p&&we&&Ur(we)&&Eb(we))A=we;else{const tt=e.positionAt(Se.key.range[0]);if(t.character>tt.character&&t.line!==tt.line){const Ve=this.createTempObjNode(O,A,l);we&&(Ur(we)||Pr(we))?(we.set(Se.key,Ve),l.internalDocument=l.internalDocument):(l.internalDocument.set(Se.key,Ve),l.internalDocument=l.internalDocument),Le=Ve.items[0],A=Ve}else tt.character===t.character&&we&&(A=we)}}}else if(Pr(Se))if(B.charAt(t.character-1)!=="-"){const we=this.createTempObjNode(O,A,l);Se.delete(A),Se.add(we),l.internalDocument=l.internalDocument,A=we}else if(B.charAt(t.character-1)==="-"){const we=this.createTempObjNode("",A,l);Se.delete(A),Se.add(we),l.internalDocument=l.internalDocument,A=we}else A=Se}}else if(Ur(A)&&!p&&B.trim().length===0&&Pr(Se)){const we=a.getLineContent(t.line+1);(a.getLineCount()===t.line+1||we.trim().length===0)&&(A=Se)}}else if(Jn(A)){const we=this.createTempObjNode(O,A,l);l.internalDocument.contents=we,l.internalDocument=l.internalDocument,Le=we.items[0],A=we}else if(Ur(A))for(const we of A.items)yr(we.value)&&we.value.range&&we.value.range[0]===o+1&&(A=we.value);else if(Pr(A)&&B.charAt(t.character-1)!=="-"){const we=this.createTempObjNode(O,A,l);we.items=[],l.internalDocument=l.internalDocument;for(const tt of A.items)Ur(tt)&&tt.items.forEach(Ve=>{we.items.push(Ve)});A=we}}if(A&&Ur(A)){const Se=A.items;for(const we of Se)(!Le||Le!==we)&&Jn(we.key)&&(ue[we.key.value+""]=fc.create(Te));this.addPropertyCompletions(me,l,A,ct,"",ke,a,N,r),!me&&O.length>0&&u.charAt(o-O.length-1)!=='"'&&ke.add({kind:Ei.Property,label:O,insertText:this.getInsertTextForProperty(O,null,""),insertTextFormat:Kr.Snippet})}const xt={};this.getValueCompletions(me,l,A,o,e,ke,xt,r)}catch(me){this.telemetry.sendError("yaml.completion.error",{error:os(me)})}this.finalizeParentCompletion(i);const Je=i.items.filter((me,Le,ct)=>Le===ct.findIndex(xt=>xt.label===me.label&&xt.insertText===me.insertText&&xt.kind===me.kind));return(Je==null?void 0:Je.length)>0&&(i.items=Je),i}updateCompletionText(e,t){e.insertText=t,e.textEdit&&(e.textEdit.newText=t)}mergeSimpleInsertTexts(e,t,n,r){const i=A=>A.includes(`
430
- `),s=A=>A.startsWith(`
431
- `),a=A=>{const p=A.indexOf(`
432
- `);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(cv(n)){const r=n.parent.indent||"";let s=t(n.parent.insertTexts).join(`
433
- ${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:ws.Markdown,value:[...o,"```yaml",r+a,"```"].join(`
434
- `)},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),B=a.getText(o),re=a.getLineContent(o.start.line),te=re.trim().length===0,N=re.indexOf(":")!==-1,ue=re.trimLeft().indexOf("-")===0,Te=t.getParent(n),ke=O.find(Le=>Le.node.internalNode===r&&Le.schema.properties),Je=O.filter(Le=>Le.schema.oneOf).map(Le=>Le.schema.oneOf)[0];let me=!1;(Je==null?void 0:Je.length)<O.length&&(Je==null||Je.forEach((Le,ct)=>{var xt,Se;!((xt=O[ct])!=null&&xt.schema.oneOf)&&((Se=O[ct])==null?void 0:Se.schema.properties)===Le.properties&&(me=!0)}));for(const Le of O){if((Le.node.internalNode===n&&!ke||Le.node.internalNode===r&&!N||((l=Le.node.parent)==null?void 0:l.internalNode)===r&&!N)&&!Le.inverted){this.collectDefaultSnippets(Le.schema,i,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:ue});const ct=Le.schema.properties;if(ct){const xt=Le.schema.maxProperties;if(xt===void 0||n.items===void 0||n.items.length<xt||n.items.length===xt&&!te){for(const Se in ct)if(Object.prototype.hasOwnProperty.call(ct,Se)){const we=ct[Se];if(typeof we=="object"&&!we.deprecationMessage&&!we.doNotSuggest){let tt="";if(Te&&Pr(Te)&&n.items.length<=1&&!te){const Lt=a.getText(),Tt=Lt.lastIndexOf("-",n.range[0]-1);if(Tt>=0){const Ut=o.end.character-o.start.character;tt=" "+Lt.slice(Tt+1,n.range[1]-Ut)}}tt+=this.arrayPrefixIndentation;let Ve;we.type==="array"&&(Ve=n.items.find(Lt=>Jn(Lt.key)&&Lt.key.range&&Lt.key.value===Se&&Jn(Lt.value)&&!Lt.value.value&&a.getPosition(Lt.key.range[2]).line===o.end.line-1))&&Ve&&(Array.isArray(we.items)?this.addSchemaValueCompletions(we.items[0],i,s,{},"property"):typeof we.items=="object"&&we.items.type==="object"&&this.addArrayItemValueCompletion(we.items,i,s));let $t=Se;(!Se.startsWith(B)||!N)&&($t=this.getInsertTextForProperty(Se,we,i,tt+this.indentation));const pn=Jn(r)&&r.value===null||Ur(r)&&r.items.length===0,kn=((A=Le.schema.required)==null?void 0:A.length)>0;(!this.parentSkeletonSelectedFirst||!pn||!kn)&&s.add({kind:Ei.Property,label:Se,insertText:$t,insertTextFormat:Kr.Snippet,documentation:this.fromMarkup(we.markdownDescription)||we.description||""},me),(p=Le.schema.required)!=null&&p.includes(Se)&&s.add({label:Se,insertText:this.getInsertTextForProperty(Se,we,i,tt+this.indentation),insertTextFormat:Kr.Snippet,documentation:this.fromMarkup(we.markdownDescription)||we.description||"",parent:{schema:Le.schema,indent:tt}})}}}}if(Te&&Pr(Te)&&qD(Le.schema)&&this.addSchemaValueCompletions(Le.schema,i,s,{},"property",Array.isArray(Te.items)),Le.schema.propertyNames&&Le.schema.additionalProperties&&Le.schema.type==="object"){const xt=li(Le.schema.propertyNames),Se=xt.title||"property";s.add({kind:Ei.Property,label:Se,insertText:`\${1:${Se}}: `,insertTextFormat:Kr.Snippet,documentation:this.fromMarkup(xt.markdownDescription)||xt.description||""})}}Te&&Le.node.internalNode===Te&&Le.schema.defaultSnippets&&(n.items.length===1?this.collectDefaultSnippets(Le.schema,i,s,{newLineFirst:!1,indentFirstObject:!1,shouldIndentWithTab:!0},1):this.collectDefaultSnippets(Le.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(dr(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||Pr(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}),Pr(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"||Hc(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=Yc(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:Kr.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;Ys(l)&&(a=this.getInsertTextForSnippetValue(l,"",{newLineFirst:!0,indentFirstObject:!1,shouldIndentWithTab:!1},1),!a.startsWith(" ")&&!a.startsWith(`
435
- `)&&(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=lv(a),a=" "+a),o++),Ys(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}
436
- ${this.getInsertTextForObject(t,n,r).insertText}`;if(t.items)return`${s}
437
- ${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=`
438
- ${r}`;break;case"array":a=`
439
- ${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=$u(u)),i+=`${n}${s}: \${${r++}:${u}}
440
- `):i+=`${n}${s}: $${r++}
441
- `;break}case"array":{const u=this.getInsertTextForArray(a.items,t,r++,n),l=u.insertText.split(`
442
- `);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(`
443
- `)}r=u.insertIndex,i+=`${n}${s}:
444
- ${n}${this.indentation}- ${A}
445
- `}break;case"object":{const u=this.getInsertTextForObject(a,t,`${n}${this.indentation}`,r++);r=u.insertIndex,i+=`${n}${s}:
446
- ${u.insertText}
447
- `}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}}
448
- `;break;case"string":i+=`${n}${s}: \${${r++}:${$u(a.default)}}
449
- `;break}}),i.trim().length===0&&(i=`${n}$${r++}
450
- `),i=i.trimRight()+t,{insertText:i,insertIndex:r}):(i=`${n}$${r++}
451
- `,{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=$u(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=$u(e)),this.getInsertTextForPlainText(e+t)}getInsertTemplateForValue(e,t,n,r){if(Array.isArray(e)){let i=`
452
- `;for(const s of e)i+=`${t}- \${${n.index++}:${s}}
453
- `;return i}else if(typeof e=="object"){let i=`
454
- `;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)}}
455
- `,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"&&!Hc(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)||Ys(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(Ys(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(l0,'"'),n.add({kind:this.getSuggestionKind(s),label:o,insertText:this.getInsertTextForValue(a,t,s),insertTextFormat:Kr.Snippet,detail:av("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:Kr.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(Ys(e.const)&&!r&&n.add({kind:this.getSuggestionKind(e.type),label:this.getLabelForValue(e.const),insertText:this.getInsertTextForValue(e.const,t,e.type),insertTextFormat:Kr.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:Kr.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(Ys(o)){const p=s.type||e.type;if(i===0&&p==="array"){const O={};Object.keys(o).forEach((B,re)=>{re===0&&!B.startsWith("-")?O[`- ${B}`]=o[B]:O[` ${B}`]=o[B]}),o=O}l=this.getInsertTextForSnippetValue(o,t,r),u=u||this.getLabelForSnippetValue(o)}else if(typeof s.bodyText=="string"){let p="",O="",B="";for(let re=i;re>0;re--)p=p+B+`[
456
- `,O=O+`
457
- `+B+"]",B+=this.indentation,a="array";l=p+B+s.bodyText.split(`
458
- `).join(`
459
- `+B)+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:Kr.Snippet,filterText:A})}}getInsertTextForSnippetValue(e,t,n,r){return ju(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:Kr.Snippet,documentation:""})}addNullValueCompletion(e,t){t.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+e,insertTextFormat:Kr.Snippet,documentation:""})}getLabelForSnippetValue(e){return JSON.stringify(e).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")}getCustomTagValueCompletions(e){Jm(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:Kr.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}
460
- \`\`\`
461
- ${t}
462
- \`\`\``)),n}getSuggestionKind(e){if(Array.isArray(e)){const t=e;e=t.length>0?t[0]:null}if(!e)return Ei.Value;switch(e){case"string":return Ei.Value;case"object":return Ei.Module;case"property":return Ei.Property;default:return Ei.Value}}getCurrentWord(e,t){let n=t-1;const r=e.getText();for(;n>=0&&`
463
- \r\v":{[,]}`.indexOf(r.charAt(n))===-1;)n--;return r.substring(n+1,t)}fromMarkup(e){if(e&&this.doesSupportMarkdown())return{kind:ws.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(ws.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(yr(i)&&i.range){if(n>i.range[1])return r;if(n>=i.range[0])return r}}return 0}},uv=/^\d+$/;function $u(e){let t;if(typeof e=="string"?t=e:t=""+e,t.length===0)return t;if(t==="true"||t==="false"||t==="null"||uv.test(t))return`"${t}"`;t.indexOf('"')!==-1&&(t=t.replace(l0,'"'));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 lv(e){return e.replace(/\$\{1:(.*)\}/,"$1")}function cv(e){return"parent"in e}var fv=class{constructor(e){this.telemetry=e}getDefinition(e,t){try{const n=ts.getYamlDocument(e),r=e.offsetAt(t.position),i=Tu(r,n);if(i){const[s]=i.getNodeFromPosition(r,new zs(e));if(s&&Zi(s)){const a=s.resolve(i.internalDocument);if(a&&a.range){const o=$n.create(e.positionAt(a.range[0]),e.positionAt(a.range[2])),u=$n.create(e.positionAt(a.range[0]),e.positionAt(a.range[1]));return[ic.create(e.uri,o,u)]}}}}catch(n){this.telemetry.sendError("yaml.definition.error",{error:os(n)})}}},rf;(function(e){e[e.SchemaStore=1]="SchemaStore",e[e.SchemaAssociation=2]="SchemaAssociation",e[e.Settings=3]="Settings"})(rf||(rf={}));function pv(e,t,n,r,i,s){const a=new Mb(e,t),o=new ov(a,s,ts,r),u=new Ob(a,r),l=new Ib(a,r),A=new Wb(a,r),p=new Gb,O=new zb(s),B=new ev(a,r),re=new Jb(r),te=new fv(r);return tv(Xb,n),{configure:N=>{a.clearExternalSchemas(),N.schemas&&(a.schemaPriorityMapping=new Map,N.schemas.forEach(ue=>{const Te=ue.priority?ue.priority:0;a.addSchemaPriority(ue.uri,Te),a.registerExternalSchema(ue.uri,ue.fileMatch,ue.schema,ue.name,ue.description,ue.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:Kb,addSchema:(N,ue)=>a.saveSchema(N,ue),deleteSchema:N=>a.deleteSchema(N),modifySchemaContent:N=>a.addContent(N),deleteSchemaContent:N=>a.deleteContent(N),deleteSchemasWhole:N=>a.deleteSchemas(N),getFoldingRanges:Yb,getCodeAction:(N,ue)=>O.getCodeAction(N,ue),getCodeLens:N=>B.getCodeLens(N),resolveCodeLens:N=>B.resolveCodeLens(N)}}var dv="yaml";async function hv(e){const t=await fetch(e);if(t.ok)return t.text();throw new Error(`Schema request failed for ${e}`)}var mv={send(){},sendError(e,t){console.error("monaco-yaml",e,t)},sendTrack(){}};Z1((e,{enableSchemaRequest:t,languageSettings:n})=>{const r=pv(t?hv:null,null,null,mv);r.configure(n);const i=s=>{const a=e.getMirrorModels();for(const o of a)if(String(o.uri)===s)return Zl.create(s,dv,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}})}}})})();