u]+1)}return n.shift(),n.join(pa)}});var Ca=C((vF,Ea)=>{"use strict";var tp=Oe(),np=Vr(),ma=Le(),ip=Mt(),up=ha(),ap=$r();Ea.exports=dp;var Ut="*",op="_",ga="+",Yt="-",va=".",de=" ",te=` `,Gr=" ",Fa=")",sp="x",ye=4,cp=/\n\n(?!\s*$)/,lp=/^\[([ X\tx])][ \t]/,fp=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,Dp=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,pp=/^( {1,4}|\t)?/gm;function dp(e,r,n){for(var t=this,a=t.options.commonmark,i=t.options.pedantic,u=t.blockTokenizers,o=t.interruptList,s=0,l=r.length,c=null,f,D,h,p,d,m,g,x,F,B,b,v,y,k,E,w,A,q,T,N=!1,_,P,S,L;s=A.indent&&(L=!0),p=r.charAt(s),F=null,!L){if(p===Ut||p===ga||p===Yt)F=p,s++,f++;else{for(D="";s=A.indent||f>ye),x=!1,s=g;if(b=r.slice(g,m),B=g===s?b:r.slice(s,m),(F===Ut||F===op||F===Yt)&&u.thematicBreak.call(t,e,b,!0))break;if(v=y,y=!x&&!tp(B).length,L&&A)A.value=A.value.concat(w,b),E=E.concat(w,b),w=[];else if(x)w.length!==0&&(N=!0,A.value.push(""),A.trail=w.concat()),A={value:[b],indent:f,trail:[]},k.push(A),E=E.concat(w,b),w=[];else if(y){if(v&&!a)break;w.push(b)}else{if(v||ap(o,u,t,[e,b,!0]))break;A.value=A.value.concat(w,b),E=E.concat(w,b),w=[]}s=m+1}for(_=e(E.join(te)).reset({type:"list",ordered:h,start:c,spread:N,children:[]}),q=t.enterList(),T=t.enterBlock(),s=-1,l=k.length;++s{"use strict";ya.exports=xp;var Vt=` `,vp=" ",ba=" ",xa="=",Fp="-",Ep=3,Cp=1,bp=2;function xp(e,r,n){for(var t=this,a=e.now(),i=r.length,u=-1,o="",s,l,c,f,D;++u=Ep){u--;break}o+=c}for(s="",l="";++u{"use strict";var yp="[a-zA-Z_:][a-zA-Z0-9:._-]*",kp="[^\"'=<>`\\u0000-\\u0020]+",wp="'[^']*'",Ap='"[^"]*"',Bp="(?:"+kp+"|"+wp+"|"+Ap+")",qp="(?:\\s+"+yp+"(?:\\s*=\\s*"+Bp+")?)",wa="<[A-Za-z][A-Za-z0-9\\-]*"+qp+"*\\s*\\/?>",Aa="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Tp="|",Sp="<[?].*?[?]>",Pp="]*>",_p="";jt.openCloseTag=new RegExp("^(?:"+wa+"|"+Aa+")");jt.tag=new RegExp("^(?:"+wa+"|"+Aa+"|"+Tp+"|"+Sp+"|"+Pp+"|"+_p+")")});var Sa=C((CF,Ta)=>{"use strict";var Lp=$t().openCloseTag;Ta.exports=Kp;var Op=" ",Ip=" ",Ba=` `,Np="<",Rp=/^<(script|pre|style)(?=(\s|>|$))/i,zp=/<\/(script|pre|style)>/i,Mp=/^/,Yp=/^<\?/,Vp=/\?>/,jp=/^/,Gp=/^/,qa=/^$/,Wp=new RegExp(Lp.source+"\\s*$");function Kp(e,r,n){for(var t=this,a=t.options.blocks.join("|"),i=new RegExp("^|$))","i"),u=r.length,o=0,s,l,c,f,D,h,p,d=[[Rp,zp,!0],[Mp,Up,!0],[Yp,Vp,!0],[jp,$p,!0],[Gp,Hp,!0],[i,qa,!0],[Wp,qa,!1]];o{"use strict";Pa.exports=Qp;var Jp=String.fromCharCode,Xp=/\s/;function Qp(e){return Xp.test(typeof e=="number"?Jp(e):e.charAt(0))}});var Gt=C((xF,_a)=>{"use strict";var Zp=wr();_a.exports=ed;function ed(e){return Zp(e).toLowerCase()}});var Ma=C((yF,za)=>{"use strict";var rd=ne(),td=Gt();za.exports=ad;var La='"',Oa="'",nd="\\",je=` `,Hr=" ",Wr=" ",Wt="[",hr="]",id="(",ud=")",Ia=":",Na="<",Ra=">";function ad(e,r,n){for(var t=this,a=t.options.commonmark,i=0,u=r.length,o="",s,l,c,f,D,h,p,d;i{"use strict";var sd=ne();Ya.exports=vd;var cd=" ",Kr=` `,ld=" ",fd="-",Dd=":",pd="\\",Kt="|",dd=1,hd=2,Ua="left",md="center",gd="right";function vd(e,r,n){var t=this,a,i,u,o,s,l,c,f,D,h,p,d,m,g,x,F,B,b,v,y,k,E;if(t.options.gfm){for(a=0,F=0,l=r.length+1,c=[];ay){if(F1&&(D?(o+=f.slice(0,-1),f=f.charAt(f.length-1)):(o+=f,f="")),g=e.now(),e(o)({type:"tableCell",children:t.tokenizeInline(d,g)},s)),e(f+D),f="",d=""):(f&&(d+=f,f=""),d+=D,D===pd&&a!==l-2&&(d+=B.charAt(a+1),a++)),m=!1,a++}x||e(Kr+i)}return v}}}});var Ga=C((wF,$a)=>{"use strict";var Fd=Oe(),Ed=Ot(),Cd=$r();$a.exports=yd;var bd=" ",mr=` `,xd=" ",ja=4;function yd(e,r,n){for(var t=this,a=t.options,i=a.commonmark,u=t.blockTokenizers,o=t.interruptParagraph,s=r.indexOf(mr),l=r.length,c,f,D,h,p;s=ja&&D!==mr){s=r.indexOf(mr,s+1);continue}}if(f=r.slice(s+1),Cd(o,u,t,[e,f,!0]))break;if(c=s,s=r.indexOf(mr,s+1),s!==-1&&Fd(r.slice(c,s))===""){s=c;break}}return f=r.slice(0,s),n?!0:(p=e.now(),f=Ed(f),e(f)({type:"paragraph",children:t.tokenizeInline(f,p)}))}});var Wa=C((AF,Ha)=>{"use strict";Ha.exports=kd;function kd(e,r){return e.indexOf("\\",r)}});var Qa=C((BF,Xa)=>{"use strict";var wd=Wa();Xa.exports=Ja;Ja.locator=wd;var Ad=` `,Ka="\\";function Ja(e,r,n){var t=this,a,i;if(r.charAt(0)===Ka&&(a=r.charAt(1),t.escape.indexOf(a)!==-1))return n?!0:(a===Ad?i={type:"break"}:i={type:"text",value:a},e(Ka+a)(i))}});var Jt=C((qF,Za)=>{"use strict";Za.exports=Bd;function Bd(e,r){return e.indexOf("<",r)}});var io=C((TF,no)=>{"use strict";var eo=ne(),qd=lr(),Td=Jt();no.exports=en;en.locator=Td;en.notInLink=!0;var ro="<",Xt=">",to="@",Qt="/",Zt="mailto:",Jr=Zt.length;function en(e,r,n){var t=this,a="",i=r.length,u=0,o="",s=!1,l="",c,f,D,h,p;if(r.charAt(0)===ro){for(u++,a=ro;u{"use strict";uo.exports=Sd;function Sd(e,r){var n=String(e),t=0,a;if(typeof r!="string")throw new Error("Expected character");for(a=n.indexOf(r);a!==-1;)t++,a=n.indexOf(r,a+r.length);return t}});var co=C((PF,so)=>{"use strict";so.exports=Pd;var oo=["www.","http://","https://"];function Pd(e,r){var n=-1,t,a,i;if(!this.options.gfm)return n;for(a=oo.length,t=-1;++t{"use strict";var lo=ao(),_d=lr(),Ld=Le(),rn=ze(),Od=ne(),Id=co();po.exports=nn;nn.locator=Id;nn.notInLink=!0;var Nd=33,Rd=38,zd=41,Md=42,Ud=44,Yd=45,tn=46,Vd=58,jd=59,$d=63,Gd=60,fo=95,Hd=126,Wd="(",Do=")";function nn(e,r,n){var t=this,a=t.options.gfm,i=t.inlineTokenizers,u=r.length,o=-1,s=!1,l,c,f,D,h,p,d,m,g,x,F,B,b,v;if(a){if(r.slice(0,4)==="www.")s=!0,D=4;else if(r.slice(0,7).toLowerCase()==="http://")D=7;else if(r.slice(0,8).toLowerCase()==="https://")D=8;else return;for(o=D-1,f=D,l=[];Dg;)D=h+p.lastIndexOf(Do),p=r.slice(h,D),x--;if(r.charCodeAt(D-1)===jd&&(D--,rn(r.charCodeAt(D-1)))){for(m=D-2;rn(r.charCodeAt(m));)m--;r.charCodeAt(m)===Rd&&(D=m)}return F=r.slice(0,D),b=_d(F,{nonTerminated:!1}),s&&(b="http://"+b),v=t.enterLink(),t.inlineTokenizers={text:i.text},B=t.tokenizeInline(F,e.now()),t.inlineTokenizers=i,v(),e(F)({type:"link",title:null,url:b,children:B})}}}});var Fo=C((LF,vo)=>{"use strict";var Kd=Le(),Jd=ze(),Xd=43,Qd=45,Zd=46,eh=95;vo.exports=go;function go(e,r){var n=this,t,a;if(!this.options.gfm||(t=e.indexOf("@",r),t===-1))return-1;if(a=t,a===r||!mo(e.charCodeAt(a-1)))return go.call(n,e,t+1);for(;a>r&&mo(e.charCodeAt(a-1));)a--;return a}function mo(e){return Kd(e)||Jd(e)||e===Xd||e===Qd||e===Zd||e===eh}});var xo=C((OF,bo)=>{"use strict";var rh=lr(),Eo=Le(),Co=ze(),th=Fo();bo.exports=on;on.locator=th;on.notInLink=!0;var nh=43,un=45,Xr=46,ih=64,an=95;function on(e,r,n){var t=this,a=t.options.gfm,i=t.inlineTokenizers,u=0,o=r.length,s=-1,l,c,f,D;if(a){for(l=r.charCodeAt(u);Eo(l)||Co(l)||l===nh||l===un||l===Xr||l===an;)l=r.charCodeAt(++u);if(u!==0&&l===ih){for(u++;u{"use strict";var uh=ze(),ah=Jt(),oh=$t().tag;ko.exports=yo;yo.locator=ah;var sh="<",ch="?",lh="!",fh="/",Dh=/^/i;function yo(e,r,n){var t=this,a=r.length,i,u;if(!(r.charAt(0)!==sh||a<3)&&(i=r.charAt(1),!(!uh(i)&&i!==ch&&i!==lh&&i!==fh)&&(u=r.match(oh),!!u)))return n?!0:(u=u[0],!t.inLink&&Dh.test(u)?t.inLink=!0:t.inLink&&ph.test(u)&&(t.inLink=!1),e(u)({type:"html",value:u}))}});var sn=C((NF,Ao)=>{"use strict";Ao.exports=dh;function dh(e,r){var n=e.indexOf("[",r),t=e.indexOf("![",r);return t===-1||n{"use strict";var gr=ne(),hh=sn();_o.exports=Po;Po.locator=hh;var mh=` `,gh="!",Bo='"',qo="'",$e="(",vr=")",cn="<",ln=">",To="[",Fr="\\",vh="]",So="`";function Po(e,r,n){var t=this,a="",i=0,u=r.charAt(0),o=t.options.pedantic,s=t.options.commonmark,l=t.options.gfm,c,f,D,h,p,d,m,g,x,F,B,b,v,y,k,E,w,A;if(u===gh&&(g=!0,a=u,u=r.charAt(++i)),u===To&&!(!g&&t.inLink)){for(a+=u,y="",i++,B=r.length,E=e.now(),v=0,E.column+=i,E.offset+=i;i=D&&(D=0):D=f}else if(u===Fr)i++,d+=r.charAt(i);else if((!D||l)&&u===To)v++;else if((!D||l)&&u===vh)if(v)v--;else{if(r.charAt(i+1)!==$e)return;d+=$e,c=!0,i++;break}y+=d,d="",i++}if(c){for(x=y,a+=y+d,i++;i{"use strict";var Fh=ne(),Eh=sn(),Ch=Gt();Io.exports=Oo;Oo.locator=Eh;var fn="link",bh="image",xh="shortcut",yh="collapsed",Dn="full",kh="!",Qr="[",Zr="\\",et="]";function Oo(e,r,n){var t=this,a=t.options.commonmark,i=r.charAt(0),u=0,o=r.length,s="",l="",c=fn,f=xh,D,h,p,d,m,g,x,F;if(i===kh&&(c=bh,l=i,i=r.charAt(++u)),i===Qr){for(u++,l+=i,g="",F=0;u{"use strict";Ro.exports=wh;function wh(e,r){var n=e.indexOf("**",r),t=e.indexOf("__",r);return t===-1?n:n===-1||t{"use strict";var Ah=Oe(),Mo=ne(),Bh=zo();Yo.exports=Uo;Uo.locator=Bh;var qh="\\",Th="*",Sh="_";function Uo(e,r,n){var t=this,a=0,i=r.charAt(a),u,o,s,l,c,f,D;if(!(i!==Th&&i!==Sh||r.charAt(++a)!==i)&&(o=t.options.pedantic,s=i,c=s+s,f=r.length,a++,l="",i="",!(o&&Mo(r.charAt(a)))))for(;a{"use strict";jo.exports=Lh;var Ph=String.fromCharCode,_h=/\w/;function Lh(e){return _h.test(typeof e=="number"?Ph(e):e.charAt(0))}});var Ho=C((VF,Go)=>{"use strict";Go.exports=Oh;function Oh(e,r){var n=e.indexOf("*",r),t=e.indexOf("_",r);return t===-1?n:n===-1||t{"use strict";var Ih=Oe(),Nh=$o(),Wo=ne(),Rh=Ho();Xo.exports=Jo;Jo.locator=Rh;var zh="*",Ko="_",Mh="\\";function Jo(e,r,n){var t=this,a=0,i=r.charAt(a),u,o,s,l,c,f,D;if(!(i!==zh&&i!==Ko)&&(o=t.options.pedantic,c=i,s=i,f=r.length,a++,l="",i="",!(o&&Wo(r.charAt(a)))))for(;a{"use strict";Zo.exports=Uh;function Uh(e,r){return e.indexOf("~~",r)}});var us=C((GF,is)=>{"use strict";var rs=ne(),Yh=es();is.exports=ns;ns.locator=Yh;var rt="~",ts="~~";function ns(e,r,n){var t=this,a="",i="",u="",o="",s,l,c;if(!(!t.options.gfm||r.charAt(0)!==rt||r.charAt(1)!==rt||rs(r.charAt(2))))for(s=1,l=r.length,c=e.now(),c.column+=2,c.offset+=2;++s{"use strict";as.exports=Vh;function Vh(e,r){return e.indexOf("`",r)}});var ls=C((WF,cs)=>{"use strict";var jh=os();cs.exports=ss;ss.locator=jh;var pn=10,dn=32,hn=96;function ss(e,r,n){for(var t=r.length,a=0,i,u,o,s,l,c;a2&&(s===dn||s===pn)&&(l===dn||l===pn)){for(a++,t--;a{"use strict";fs.exports=$h;function $h(e,r){for(var n=e.indexOf(` `,r);n>r&&e.charAt(n-1)===" ";)n--;return n}});var hs=C((JF,ds)=>{"use strict";var Gh=Ds();ds.exports=ps;ps.locator=Gh;var Hh=" ",Wh=` `,Kh=2;function ps(e,r,n){for(var t=r.length,a=-1,i="",u;++a{"use strict";ms.exports=Jh;function Jh(e,r,n){var t=this,a,i,u,o,s,l,c,f,D,h;if(n)return!0;for(a=t.inlineMethods,o=a.length,i=t.inlineTokenizers,u=-1,D=r.length;++u{"use strict";var Xh=_e(),tt=Ni(),Qh=zi(),Zh=Ui(),em=hu(),mn=vu();Es.exports=vs;function vs(e,r){this.file=r,this.offset={},this.options=Xh(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=Qh(r).toOffset,this.unescape=Zh(this,"escape"),this.decode=em(this)}var z=vs.prototype;z.setOptions=wu();z.parse=Yu();z.options=Pt();z.exitStart=tt("atStart",!0);z.enterList=tt("inList",!1);z.enterLink=tt("inLink",!1);z.enterBlock=tt("inBlock",!1);z.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]];z.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]];z.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]];z.blockTokenizers={blankLine:ju(),indentedCode:Ku(),fencedCode:Qu(),blockquote:ia(),atxHeading:oa(),thematicBreak:la(),list:Ca(),setextHeading:ka(),html:Sa(),definition:Ma(),table:Va(),paragraph:Ga()};z.inlineTokenizers={escape:Qa(),autoLink:io(),url:ho(),email:xo(),html:wo(),link:Lo(),reference:No(),strong:Vo(),emphasis:Qo(),deletion:us(),code:ls(),break:hs(),text:gs()};z.blockMethods=Fs(z.blockTokenizers);z.inlineMethods=Fs(z.inlineTokenizers);z.tokenizeBlock=mn("block");z.tokenizeInline=mn("inline");z.tokenizeFactory=mn;function Fs(e){var r=[],n;for(n in e)r.push(n);return r}});var ks=C((ZF,ys)=>{"use strict";var rm=Oi(),tm=_e(),bs=Cs();ys.exports=xs;xs.Parser=bs;function xs(e){var r=this.data("settings"),n=rm(bs);n.prototype.options=tm(n.prototype.options,r,e),this.Parser=n}});var As=C((eE,ws)=>{"use strict";ws.exports=nm;function nm(e){if(e)throw e}});var gn=C((rE,Bs)=>{Bs.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var Ns=C((tE,Is)=>{"use strict";var nt=Object.prototype.hasOwnProperty,Os=Object.prototype.toString,qs=Object.defineProperty,Ts=Object.getOwnPropertyDescriptor,Ss=function(r){return typeof Array.isArray=="function"?Array.isArray(r):Os.call(r)==="[object Array]"},Ps=function(r){if(!r||Os.call(r)!=="[object Object]")return!1;var n=nt.call(r,"constructor"),t=r.constructor&&r.constructor.prototype&&nt.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!n&&!t)return!1;var a;for(a in r);return typeof a>"u"||nt.call(r,a)},_s=function(r,n){qs&&n.name==="__proto__"?qs(r,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):r[n.name]=n.newValue},Ls=function(r,n){if(n==="__proto__")if(nt.call(r,n)){if(Ts)return Ts(r,n).value}else return;return r[n]};Is.exports=function e(){var r,n,t,a,i,u,o=arguments[0],s=1,l=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});s{"use strict";Rs.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}});var Us=C((iE,Ms)=>{"use strict";var im=[].slice;Ms.exports=um;function um(e,r){var n;return t;function t(){var u=im.call(arguments,0),o=e.length>u.length,s;o&&u.push(a);try{s=e.apply(null,u)}catch(l){if(o&&n)throw l;return a(l)}o||(s&&typeof s.then=="function"?s.then(i,a):s instanceof Error?a(s):i(s))}function a(){n||(n=!0,r.apply(null,arguments))}function i(u){a(null,u)}}});var Gs=C((uE,$s)=>{"use strict";var Vs=Us();$s.exports=js;js.wrap=Vs;var Ys=[].slice;function js(){var e=[],r={};return r.run=n,r.use=t,r;function n(){var a=-1,i=Ys.call(arguments,0,-1),u=arguments[arguments.length-1];if(typeof u!="function")throw new Error("Expected function as last argument, not "+u);o.apply(null,[null].concat(i));function o(s){var l=e[++a],c=Ys.call(arguments,0),f=c.slice(1),D=i.length,h=-1;if(s){u(s);return}for(;++h{"use strict";var Ge={}.hasOwnProperty;Ks.exports=am;function am(e){return!e||typeof e!="object"?"":Ge.call(e,"position")||Ge.call(e,"type")?Hs(e.position):Ge.call(e,"start")||Ge.call(e,"end")?Hs(e):Ge.call(e,"line")||Ge.call(e,"column")?vn(e):""}function vn(e){return(!e||typeof e!="object")&&(e={}),Ws(e.line)+":"+Ws(e.column)}function Hs(e){return(!e||typeof e!="object")&&(e={}),vn(e.start)+"-"+vn(e.end)}function Ws(e){return e&&typeof e=="number"?e:1}});var Zs=C((oE,Qs)=>{"use strict";var om=Js();Qs.exports=Fn;function Xs(){}Xs.prototype=Error.prototype;Fn.prototype=new Xs;var ke=Fn.prototype;ke.file="";ke.name="";ke.reason="";ke.message="";ke.stack="";ke.fatal=null;ke.column=null;ke.line=null;function Fn(e,r,n){var t,a,i;typeof r=="string"&&(n=r,r=null),t=sm(n),a=om(r)||"1:1",i={start:{line:null,column:null},end:{line:null,column:null}},r&&r.position&&(r=r.position),r&&(r.start?(i=r,r=r.start):i.start=r),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=a,this.reason=e,this.line=r?r.line:null,this.column=r?r.column:null,this.location=i,this.source=t[0],this.ruleId=t[1]}function sm(e){var r=[null,null],n;return typeof e=="string"&&(n=e.indexOf(":"),n===-1?r[1]=e:(r[0]=e.slice(0,n),r[1]=e.slice(n+1))),r}});var ec=C(He=>{"use strict";He.basename=cm;He.dirname=lm;He.extname=fm;He.join=Dm;He.sep="/";function cm(e,r){var n=0,t=-1,a,i,u,o;if(r!==void 0&&typeof r!="string")throw new TypeError('"ext" argument must be a string');if(Er(e),a=e.length,r===void 0||!r.length||r.length>e.length){for(;a--;)if(e.charCodeAt(a)===47){if(u){n=a+1;break}}else t<0&&(u=!0,t=a+1);return t<0?"":e.slice(n,t)}if(r===e)return"";for(i=-1,o=r.length-1;a--;)if(e.charCodeAt(a)===47){if(u){n=a+1;break}}else i<0&&(u=!0,i=a+1),o>-1&&(e.charCodeAt(a)===r.charCodeAt(o--)?o<0&&(t=a):(o=-1,t=i));return n===t?t=i:t<0&&(t=e.length),e.slice(n,t)}function lm(e){var r,n,t;if(Er(e),!e.length)return".";for(r=-1,t=e.length;--t;)if(e.charCodeAt(t)===47){if(n){r=t;break}}else n||(n=!0);return r<0?e.charCodeAt(0)===47?"/":".":r===1&&e.charCodeAt(0)===47?"//":e.slice(0,r)}function fm(e){var r=-1,n=0,t=-1,a=0,i,u,o;for(Er(e),o=e.length;o--;){if(u=e.charCodeAt(o),u===47){if(i){n=o+1;break}continue}t<0&&(i=!0,t=o+1),u===46?r<0?r=o:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||t<0||a===0||a===1&&r===t-1&&r===n+1?"":e.slice(r,t)}function Dm(){for(var e=-1,r;++e2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",t=0):(n=n.slice(0,s),t=n.length-1-n.lastIndexOf("/")),a=u,i=0;continue}}else if(n.length){n="",t=0,a=u,i=0;continue}}r&&(n=n.length?n+"/..":"..",t=2)}else n.length?n+="/"+e.slice(a+1,u):n=e.slice(a+1,u),t=u-a-1;a=u,i=0}else o===46&&i>-1?i++:i=-1}return n}function Er(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}});var tc=C(rc=>{"use strict";rc.cwd=hm;function hm(){return"/"}});var uc=C((lE,ic)=>{"use strict";var ie=ec(),mm=tc(),gm=gn();ic.exports=he;var vm={}.hasOwnProperty,En=["history","path","basename","stem","extname","dirname"];he.prototype.toString=qm;Object.defineProperty(he.prototype,"path",{get:Fm,set:Em});Object.defineProperty(he.prototype,"dirname",{get:Cm,set:bm});Object.defineProperty(he.prototype,"basename",{get:xm,set:ym});Object.defineProperty(he.prototype,"extname",{get:km,set:wm});Object.defineProperty(he.prototype,"stem",{get:Am,set:Bm});function he(e){var r,n;if(!e)e={};else if(typeof e=="string"||gm(e))e={contents:e};else if("message"in e&&"messages"in e)return e;if(!(this instanceof he))return new he(e);for(this.data={},this.messages=[],this.history=[],this.cwd=mm.cwd(),n=-1;++n-1)throw new Error("`extname` cannot contain multiple dots")}this.path=ie.join(this.dirname,this.stem+(e||""))}function Am(){return typeof this.path=="string"?ie.basename(this.path,this.extname):void 0}function Bm(e){bn(e,"stem"),Cn(e,"stem"),this.path=ie.join(this.dirname||"",e+(this.extname||""))}function qm(e){return(this.contents||"").toString(e)}function Cn(e,r){if(e&&e.indexOf(ie.sep)>-1)throw new Error("`"+r+"` cannot be a path: did not expect `"+ie.sep+"`")}function bn(e,r){if(!e)throw new Error("`"+r+"` cannot be empty")}function nc(e,r){if(!e)throw new Error("Setting `"+r+"` requires `path` to be set too")}});var oc=C((fE,ac)=>{"use strict";var Tm=Zs(),it=uc();ac.exports=it;it.prototype.message=Sm;it.prototype.info=_m;it.prototype.fail=Pm;function Sm(e,r,n){var t=new Tm(e,r,n);return this.path&&(t.name=this.path+":"+t.name,t.file=this.path),t.fatal=!1,this.messages.push(t),t}function Pm(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e}function _m(){var e=this.message.apply(this,arguments);return e.fatal=null,e}});var cc=C((DE,sc)=>{"use strict";sc.exports=oc()});var vc=C((pE,gc)=>{"use strict";var lc=As(),Lm=gn(),ut=Ns(),fc=zs(),hc=Gs(),Cr=cc();gc.exports=mc().freeze();var Om=[].slice,Im={}.hasOwnProperty,Nm=hc().use(Rm).use(zm).use(Mm);function Rm(e,r){r.tree=e.parse(r.file)}function zm(e,r,n){e.run(r.tree,r.file,t);function t(a,i,u){a?n(a):(r.tree=i,r.file=u,n())}}function Mm(e,r){var n=e.stringify(r.tree,r.file);n==null||(typeof n=="string"||Lm(n)?("value"in r.file&&(r.file.value=n),r.file.contents=n):r.file.result=n)}function mc(){var e=[],r=hc(),n={},t=-1,a;return i.data=o,i.freeze=u,i.attachers=e,i.use=s,i.parse=c,i.stringify=h,i.run=f,i.runSync=D,i.process=p,i.processSync=d,i;function i(){for(var m=mc(),g=-1;++g{wn.isRemarkParser=Ym;wn.isRemarkCompiler=Vm;function Ym(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function Vm(e){return!!(e&&e.prototype&&e.prototype.visitors)}});var kc=C((hE,yc)=>{var Fc=An();yc.exports=Hm;var Ec=9,Cc=32,at=36,jm=48,$m=57,bc=92,Gm=["math","math-inline"],xc="math-display";function Hm(e){let r=this.Parser,n=this.Compiler;Fc.isRemarkParser(r)&&Wm(r,e),Fc.isRemarkCompiler(n)&&Km(n,e)}function Wm(e,r){let n=e.prototype,t=n.inlineMethods;i.locator=a,n.inlineTokenizers.math=i,t.splice(t.indexOf("text"),0,"math");function a(u,o){return u.indexOf("$",o)}function i(u,o,s){let l=o.length,c=!1,f=!1,D=0,h,p,d,m,g,x,F;if(o.charCodeAt(D)===bc&&(f=!0,D++),o.charCodeAt(D)===at){if(D++,f)return s?!0:u(o.slice(0,D))({type:"text",value:"$"});if(o.charCodeAt(D)===at&&(c=!0,D++),d=o.charCodeAt(D),!(d===Cc||d===Ec)){for(m=D;D$m)&&(!c||d===at)){g=D-1,D++,c&&D++,x=D;break}}else p===bc&&(D++,d=o.charCodeAt(D+1));D++}if(x!==void 0)return s?!0:(F=o.slice(m,g+1),u(o.slice(0,x))({type:"inlineMath",value:F,data:{hName:"span",hProperties:{className:Gm.concat(c&&r.inlineMathDouble?[xc]:[])},hChildren:[{type:"text",value:F}]}}))}}}}function Km(e){let r=e.prototype;r.visitors.inlineMath=n;function n(t){let a="$";return(t.data&&t.data.hProperties&&t.data.hProperties.className||[]).includes(xc)&&(a="$$"),a+t.value+a}}});var Tc=C((mE,qc)=>{var wc=An();qc.exports=Zm;var Ac=10,br=32,Bn=36,Bc=` `,Jm="$",Xm=2,Qm=["math","math-display"];function Zm(){let e=this.Parser,r=this.Compiler;wc.isRemarkParser(e)&&eg(e),wc.isRemarkCompiler(r)&&rg(r)}function eg(e){let r=e.prototype,n=r.blockMethods,t=r.interruptParagraph,a=r.interruptList,i=r.interruptBlockquote;r.blockTokenizers.math=u,n.splice(n.indexOf("fencedCode")+1,0,"math"),t.splice(t.indexOf("fencedCode")+1,0,["math"]),a.splice(a.indexOf("fencedCode")+1,0,["math"]),i.splice(i.indexOf("fencedCode")+1,0,["math"]);function u(o,s,l){var c=s.length,f=0;let D,h,p,d,m,g,x,F,B,b,v;for(;fb&&s.charCodeAt(d-1)===br;)d--;for(;d>b&&s.charCodeAt(d-1)===Bn;)B++,d--;for(g<=B&&s.indexOf(Jm,b)===d&&(F=!0,v=d);b<=v&&b-fb&&s.charCodeAt(v-1)===br;)v--;if((!F||b!==v)&&h.push(s.slice(b,v)),F)break;f=p+1,p=s.indexOf(Bc,f+1),p=p===-1?c:p}return h=h.join(` `),o(s.slice(0,p))({type:"math",value:h,data:{hName:"div",hProperties:{className:Qm.concat()},hChildren:[{type:"text",value:h}]}})}}}}function rg(e){let r=e.prototype;r.visitors.math=n;function n(t){return`$$ `+t.value+` $$`}}});var Pc=C((gE,Sc)=>{var tg=kc(),ng=Tc();Sc.exports=ig;function ig(e){var r=e||{};ng.call(this,r),tg.call(this,r)}});var Lc=C((vE,_c)=>{"use strict";_c.exports=cg;var xr=9,ot=10,We=32,ug=33,ag=58,Ke=91,og=92,qn=93,yr=94,st=96,ct=4,sg=1024;function cg(e){var r=this.Parser,n=this.Compiler;lg(r)&&Dg(r,e),fg(n)&&pg(n)}function lg(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function fg(e){return!!(e&&e.prototype&&e.prototype.visitors)}function Dg(e,r){for(var n=r||{},t=e.prototype,a=t.blockTokenizers,i=t.inlineTokenizers,u=t.blockMethods,o=t.inlineMethods,s=a.definition,l=i.reference,c=[],f=-1,D=u.length,h;++fct&&(K=void 0,me=q);else{if(K0&&(M=ge[A-1],M.contentStart===M.contentEnd);)A--;for(we=b(v.slice(0,M.contentEnd));++qQc,options:()=>Zc,parsers:()=>Pn,printers:()=>wg});var al=(e,r,n,t)=>{if(!(e&&r==null))return r.replaceAll?r.replaceAll(n,t):n.global?r.replace(n,t):r.split(n).join(t)},R=al;var ol=(e,r,n)=>{if(!(e&&r==null))return Array.isArray(r)||typeof r=="string"?r[n<0?r.length+n:n]:r.at(n)},U=ol;var qi=Ie(wr(),1);function Je(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function cl(e,r){let n=e.match(new RegExp(`(${Je(r)})+`,"g"));if(n===null)return 0;let t=new Map,a=0;for(let i of n){let u=i.length/r.length;t.set(u,!0),u>a&&(a=u)}for(let i=1;iMath.max(t,a.length/r.length),0)}var Ar=ll;var Rn=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26D3\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26F9(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC3\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\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]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC08\uDC26](?:\u200D\u2B1B)?|[\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?|[\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](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\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\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uFE0F|\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC2\uDECE-\uDEDB\uDEE0-\uDEE8]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF-\uDDB3\uDDBC\uDDBD]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;var zn={eastAsianWidth(e){var r=e.charCodeAt(0),n=e.length==2?e.charCodeAt(1):0,t=r;return 55296<=r&&r<=56319&&56320<=n&&n<=57343&&(r&=1023,n&=1023,t=r<<10|n,t+=65536),t==12288||65281<=t&&t<=65376||65504<=t&&t<=65510?"F":4352<=t&&t<=4447||4515<=t&&t<=4519||4602<=t&&t<=4607||9001<=t&&t<=9002||11904<=t&&t<=11929||11931<=t&&t<=12019||12032<=t&&t<=12245||12272<=t&&t<=12283||12289<=t&&t<=12350||12353<=t&&t<=12438||12441<=t&&t<=12543||12549<=t&&t<=12589||12593<=t&&t<=12686||12688<=t&&t<=12730||12736<=t&&t<=12771||12784<=t&&t<=12830||12832<=t&&t<=12871||12880<=t&&t<=13054||13056<=t&&t<=19903||19968<=t&&t<=42124||42128<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||55216<=t&&t<=55238||55243<=t&&t<=55291||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65106||65108<=t&&t<=65126||65128<=t&&t<=65131||110592<=t&&t<=110593||127488<=t&&t<=127490||127504<=t&&t<=127546||127552<=t&&t<=127560||127568<=t&&t<=127569||131072<=t&&t<=194367||177984<=t&&t<=196605||196608<=t&&t<=262141?"W":"N"}};var fl=/[^\x20-\x7F]/;function Dl(e){if(!e)return 0;if(!fl.test(e))return e.length;e=e.replace(Rn()," ");let r=0;for(let n of e){let t=n.codePointAt(0);if(t<=31||t>=127&&t<=159||t>=768&&t<=879)continue;let a=zn.eastAsianWidth(n);r+=a==="F"||a==="W"?2:1}return r}var Xe=Dl;var Br="'",Mn='"';function pl(e,r){let n=r===!0||r===Br?Br:Mn,t=n===Br?Mn:Br,a=0,i=0;for(let u of e)u===n?a++:u===t&&i++;return a>i?t:n}var Un=pl;var ue="string",X="array",ve="cursor",Q="indent",Z="align",ae="trim",G="group",H="fill",W="if-break",oe="indent-if-break",se="line-suffix",ce="line-suffix-boundary",$="line",le="label",ee="break-parent",qr=new Set([ve,Q,Z,ae,G,H,W,oe,se,ce,$,le,ee]);function dl(e){if(typeof e=="string")return ue;if(Array.isArray(e))return X;if(!e)return;let{type:r}=e;if(qr.has(r))return r}var fe=dl;var hl=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function ml(e){let r=e===null?"null":typeof e;if(r!=="string"&&r!=="object")return`Unexpected doc '${r}', Expected it to be 'string' or 'object'.`;if(fe(e))throw new Error("doc is valid.");let n=Object.prototype.toString.call(e);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let t=hl([...qr].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'. Expected it to be ${t}.`}var ft=class extends Error{name="InvalidDocError";constructor(r){super(ml(r)),this.doc=r}},Ae=ft;var Yn={};function gl(e,r,n,t){let a=[e];for(;a.length>0;){let i=a.pop();if(i===Yn){n(a.pop());continue}n&&a.push(i,Yn);let u=fe(i);if(!u)throw new Ae(i);if((r==null?void 0:r(i))!==!1)switch(u){case X:case H:{let o=u===X?i:i.parts;for(let s=o.length,l=s-1;l>=0;--l)a.push(o[l]);break}case W:a.push(i.flatContents,i.breakContents);break;case G:if(t&&i.expandedStates)for(let o=i.expandedStates.length,s=o-1;s>=0;--s)a.push(i.expandedStates[s]);else a.push(i.contents);break;case Z:case Q:case oe:case le:case se:a.push(i.contents);break;case ue:case ve:case ae:case ce:case $:case ee:break;default:throw new Ae(i)}}}var Vn=gl;var jn=()=>{},Be=jn,Tr=jn;function Qe(e){return Be(e),{type:Q,contents:e}}function Fe(e,r){return Be(r),{type:Z,contents:r,n:e}}function Ze(e,r={}){return Be(e),Tr(r.expandedStates,!0),{type:G,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function qe(e){return Fe({type:"root"},e)}function Sr(e){return Tr(e),{type:H,parts:e}}function $n(e,r="",n={}){return Be(e),r!==""&&Be(r),{type:W,breakContents:e,flatContents:r,groupId:n.groupId}}var er={type:ee};var Ne={type:$,hard:!0},vl={type:$,hard:!0,literal:!0},Pr={type:$},rr={type:$,soft:!0},O=[Ne,er],tr=[vl,er];function nr(e,r){Be(e),Tr(r);let n=[];for(let t=0;t{if(Array.isArray(e))return e;if(e.type!==H)throw new Error(`Expect doc to be 'array' or '${H}'.`);return e.parts};function Kn(e,r){if(typeof e=="string")return r(e);let n=new Map;return t(e);function t(i){if(n.has(i))return n.get(i);let u=a(i);return n.set(i,u),u}function a(i){switch(fe(i)){case X:return r(i.map(t));case H:return r({...i,parts:i.parts.map(t)});case W:return r({...i,breakContents:t(i.breakContents),flatContents:t(i.flatContents)});case G:{let{expandedStates:u,contents:o}=i;return u?(u=u.map(t),o=u[0]):o=t(o),r({...i,contents:o,expandedStates:u})}case Z:case Q:case oe:case le:case se:return r({...i,contents:t(i.contents)});case ue:case ve:case ae:case ce:case $:case ee:return r(i);default:throw new Ae(i)}}}function Gn(e){if(e.length>0){let r=U(!1,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function Jn(e){let r=new Set,n=[];function t(i){if(i.type===ee&&Gn(n),i.type===G){if(n.push(i),r.has(i))return!1;r.add(i)}}function a(i){i.type===G&&n.pop().break&&Gn(n)}Vn(e,t,a,!0)}function Hn(e){let r=[],n=e.filter(Boolean);for(;n.length>0;){let t=n.shift();if(t){if(Array.isArray(t)){n.unshift(...t);continue}if(r.length>0&&typeof U(!1,r,-1)=="string"&&typeof t=="string"){r[r.length-1]+=t;continue}r.push(t)}}return r}function Xn(e){return Kn(e,r=>Array.isArray(r)?Hn(r):r.parts?{...r,parts:Hn(r.parts)}:r)}function Ee(e,r=tr){return Kn(e,n=>typeof n=="string"?nr(r,n.split(` `)):n)}function Qn(e){switch(e){case"cr":return"\r";case"crlf":return`\r `;default:return` `}}var V=Symbol("MODE_BREAK"),re=Symbol("MODE_FLAT"),ir=Symbol("cursor");function Zn(){return{value:"",length:0,queue:[]}}function Fl(e,r){return Dt(e,{type:"indent"},r)}function El(e,r,n){return r===Number.NEGATIVE_INFINITY?e.root||Zn():r<0?Dt(e,{type:"dedent"},n):r?r.type==="root"?{...e,root:e}:Dt(e,{type:typeof r=="string"?"stringAlign":"numberAlign",n:r},n):e}function Dt(e,r,n){let t=r.type==="dedent"?e.queue.slice(0,-1):[...e.queue,r],a="",i=0,u=0,o=0;for(let p of t)switch(p.type){case"indent":c(),n.useTabs?s(1):l(n.tabWidth);break;case"stringAlign":c(),a+=p.n,i+=p.n.length;break;case"numberAlign":u+=1,o+=p.n;break;default:throw new Error(`Unexpected type '${p.type}'`)}return D(),{...e,value:a,length:i,queue:t};function s(p){a+=" ".repeat(p),i+=n.tabWidth*p}function l(p){a+=" ".repeat(p),i+=p}function c(){n.useTabs?f():D()}function f(){u>0&&s(u),h()}function D(){o>0&&l(o),h()}function h(){u=0,o=0}}function pt(e){let r=0,n=0,t=e.length;e:for(;t--;){let a=e[t];if(a===ir){n++;continue}for(let i=a.length-1;i>=0;i--){let u=a[i];if(u===" "||u===" ")r++;else{e[t]=a.slice(0,i+1);break e}}}if(r>0||n>0)for(e.length=t+1;n-- >0;)e.push(ir);return r}function _r(e,r,n,t,a,i){if(n===Number.POSITIVE_INFINITY)return!0;let u=r.length,o=[e],s=[];for(;n>=0;){if(o.length===0){if(u===0)return!0;o.push(r[--u]);continue}let{mode:l,doc:c}=o.pop();switch(fe(c)){case ue:s.push(c),n-=Xe(c);break;case X:case H:{let f=Wn(c);for(let D=f.length-1;D>=0;D--)o.push({mode:l,doc:f[D]});break}case Q:case Z:case oe:case le:o.push({mode:l,doc:c.contents});break;case ae:n+=pt(s);break;case G:{if(i&&c.break)return!1;let f=c.break?V:l,D=c.expandedStates&&f===V?U(!1,c.expandedStates,-1):c.contents;o.push({mode:f,doc:D});break}case W:{let D=(c.groupId?a[c.groupId]||re:l)===V?c.breakContents:c.flatContents;D&&o.push({mode:l,doc:D});break}case $:if(l===V||c.hard)return!0;c.soft||(s.push(" "),n--);break;case se:t=!0;break;case ce:if(t)return!1;break}}return!1}function ei(e,r){let n={},t=r.printWidth,a=Qn(r.endOfLine),i=0,u=[{ind:Zn(),mode:V,doc:e}],o=[],s=!1,l=[],c=0;for(Jn(e);u.length>0;){let{ind:D,mode:h,doc:p}=u.pop();switch(fe(p)){case ue:{let d=a!==` `?R(!1,p,` `,a):p;o.push(d),u.length>0&&(i+=Xe(d));break}case X:for(let d=p.length-1;d>=0;d--)u.push({ind:D,mode:h,doc:p[d]});break;case ve:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(ir),c++;break;case Q:u.push({ind:Fl(D,r),mode:h,doc:p.contents});break;case Z:u.push({ind:El(D,p.n,r),mode:h,doc:p.contents});break;case ae:i-=pt(o);break;case G:switch(h){case re:if(!s){u.push({ind:D,mode:p.break?V:re,doc:p.contents});break}case V:{s=!1;let d={ind:D,mode:re,doc:p.contents},m=t-i,g=l.length>0;if(!p.break&&_r(d,u,m,g,n))u.push(d);else if(p.expandedStates){let x=U(!1,p.expandedStates,-1);if(p.break){u.push({ind:D,mode:V,doc:x});break}else for(let F=1;F=p.expandedStates.length){u.push({ind:D,mode:V,doc:x});break}else{let B=p.expandedStates[F],b={ind:D,mode:re,doc:B};if(_r(b,u,m,g,n)){u.push(b);break}}}else u.push({ind:D,mode:V,doc:p.contents});break}}p.id&&(n[p.id]=U(!1,u,-1).mode);break;case H:{let d=t-i,{parts:m}=p;if(m.length===0)break;let[g,x]=m,F={ind:D,mode:re,doc:g},B={ind:D,mode:V,doc:g},b=_r(F,[],d,l.length>0,n,!0);if(m.length===1){b?u.push(F):u.push(B);break}let v={ind:D,mode:re,doc:x},y={ind:D,mode:V,doc:x};if(m.length===2){b?u.push(v,F):u.push(y,B);break}m.splice(0,2);let k={ind:D,mode:h,doc:Sr(m)},E=m[0];_r({ind:D,mode:re,doc:[g,x,E]},[],d,l.length>0,n,!0)?u.push(k,v,F):b?u.push(k,y,F):u.push(k,y,B);break}case W:case oe:{let d=p.groupId?n[p.groupId]:h;if(d===V){let m=p.type===W?p.breakContents:p.negate?p.contents:Qe(p.contents);m&&u.push({ind:D,mode:h,doc:m})}if(d===re){let m=p.type===W?p.flatContents:p.negate?Qe(p.contents):p.contents;m&&u.push({ind:D,mode:h,doc:m})}break}case se:l.push({ind:D,mode:h,doc:p.contents});break;case ce:l.length>0&&u.push({ind:D,mode:h,doc:Ne});break;case $:switch(h){case re:if(p.hard)s=!0;else{p.soft||(o.push(" "),i+=1);break}case V:if(l.length>0){u.push({ind:D,mode:h,doc:p},...l.reverse()),l.length=0;break}p.literal?D.root?(o.push(a,D.root.value),i=D.root.length):(o.push(a),i=0):(i-=pt(o),o.push(a+D.value),i=D.length);break}break;case le:u.push({ind:D,mode:h,doc:p.contents});break;case ee:break;default:throw new Ae(p)}u.length===0&&l.length>0&&(u.push(...l.reverse()),l.length=0)}let f=o.indexOf(ir);if(f!==-1){let D=o.indexOf(ir,f+1),h=o.slice(0,f).join(""),p=o.slice(f+1,D).join(""),d=o.slice(D+1).join("");return{formatted:h+p+d,cursorNodeStart:h.length,cursorNodeText:p}}return{formatted:o.join("")}}var dt=class extends Error{name="UnexpectedNodeError";constructor(r,n,t="type"){super(`Unexpected ${n} node ${t}: ${JSON.stringify(r[t])}.`),this.node=r}},ri=dt;async function Cl(e,r){if(e.lang==="yaml"){let n=e.value.trim(),t=n?await r(n,{parser:"yaml"}):"";return qe([e.startDelimiter,O,t,t?O:"",e.endDelimiter])}}var ti=Cl;var bl=e=>e.split(/[/\\]/).pop();function ni(e,r){if(!r)return;let n=bl(r).toLowerCase();return e.find(t=>{var a,i;return((a=t.extensions)==null?void 0:a.some(u=>n.endsWith(u)))||((i=t.filenames)==null?void 0:i.some(u=>u.toLowerCase()===n))})}function xl(e,r){if(r)return e.find(({name:n})=>n.toLowerCase()===r)??e.find(({aliases:n})=>n==null?void 0:n.includes(r))??e.find(({extensions:n})=>n==null?void 0:n.includes(`.${r}`))}function yl(e,r){let n=e.plugins.flatMap(a=>a.languages??[]),t=xl(n,r.language)??ni(n,r.physicalFile)??ni(n,r.file)??(r.physicalFile,void 0);return t==null?void 0:t.parsers[0]}var ii=yl;var kl=new Proxy(()=>{},{get:()=>kl});function Te(e){return e.position.start.offset}function Se(e){return e.position.end.offset}var ui="(?:[\\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-\\u31e3\\u31f0-\\u321e\\u322a-\\u3247\\u3260-\\u327e\\u328a-\\u32b0\\u32c0-\\u32cb\\u32d0-\\u3370\\u337b-\\u337f\\u33e0-\\u33fe\\u3400-\\u4dbf\\u4e00-\\u9fff\\ua700-\\ua707\\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\\ud880-\\ud883\\ud885-\\ud887][\\udc00-\\udfff]|\\ud81b[\\udfe3]|\\ud82b[\\udff0-\\udff3\\udff5-\\udffb\\udffd-\\udffe]|\\ud82c[\\udc00-\\udd22\\udd32\\udd50-\\udd52\\udd55\\udd64-\\udd67]|\\ud83c[\\ude00\\ude50-\\ude51]|\\ud869[\\udc00-\\udedf\\udf00-\\udfff]|\\ud86d[\\udc00-\\udf39\\udf40-\\udfff]|\\ud86e[\\udc00-\\udc1d\\udc20-\\udfff]|\\ud873[\\udc00-\\udea1\\udeb0-\\udfff]|\\ud87a[\\udc00-\\udfe0]|\\ud87e[\\udc00-\\ude1d]|\\ud884[\\udc00-\\udf4a\\udf50-\\udfff]|\\ud888[\\udc00-\\udfaf])(?:[\\ufe00-\\ufe0f]|\\udb40[\\udd00-\\uddef])?",ai=new RegExp("[\\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]",""),ur="[\\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\\u061d-\\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\\u1b7d-\\u1b7e\\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\\u2e52-\\u2e5d\\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[\\udead\\udf55-\\udf59\\udf86-\\udf89]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5a-\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udeb9\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udd44-\\udd46\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2\\udf00-\\udf09]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udf43-\\udf4f\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud80b[\\udff1-\\udff2]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]";var mt=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Lr=new Set([...mt,"tableCell","paragraph","heading"]),ht=new RegExp(ur),Pe="non-cjk",De="cj-letter",Ce="k-letter",ar="cjk-punctuation";function Or(e){let r=[],n=e.split(/([\t\n ]+)/);for(let[a,i]of n.entries()){if(a%2===1){r.push({type:"whitespace",value:/\n/.test(i)?` `:" "});continue}if((a===0||a===n.length-1)&&i==="")continue;let u=i.split(new RegExp(`(${ui})`));for(let[o,s]of u.entries())if(!((o===0||o===u.length-1)&&s==="")){if(o%2===0){s!==""&&t({type:"word",value:s,kind:Pe,hasLeadingPunctuation:ht.test(s[0]),hasTrailingPunctuation:ht.test(U(!1,s,-1))});continue}t(ht.test(s)?{type:"word",value:s,kind:ar,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:s,kind:ai.test(s)?Ce:De,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return r;function t(a){let i=U(!1,r,-1);(i==null?void 0:i.type)==="word"&&!u(Pe,ar)&&![i.value,a.value].some(o=>/\u3000/.test(o))&&r.push({type:"whitespace",value:""}),r.push(a);function u(o,s){return i.kind===o&&a.kind===s||i.kind===s&&a.kind===o}}}function Re(e,r){let[,n,t,a]=r.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:n,marker:t,leadingSpaces:a}}function oi(e,r){if(!e.ordered||e.children.length<2)return!1;let n=Number(Re(e.children[0],r.originalText).numberText),t=Number(Re(e.children[1],r.originalText).numberText);if(n===0&&e.children.length>2){let a=Number(Re(e.children[2],r.originalText).numberText);return t===1&&a===1}return t===1}function Ir(e,r){let{value:n}=e;return e.position.end.offset===r.length&&n.endsWith(` `)&&r.endsWith(` `)?n.slice(0,-1):n}function be(e,r){return function n(t,a,i){let u={...r(t,a,i)};return u.children&&(u.children=u.children.map((o,s)=>n(o,s,[u,...i]))),u}(e,null,[])}function gt(e){if((e==null?void 0:e.type)!=="link"||e.children.length!==1)return!1;let[r]=e.children;return Te(e)===Te(r)&&Se(e)===Se(r)}function wl(e,r){let{node:n}=e;if(n.type==="code"&&n.lang!==null){let t=ii(r,{language:n.lang});if(t)return async a=>{let i=r.__inJsTemplate?"~":"`",u=i.repeat(Math.max(3,Ar(n.value,i)+1)),o={parser:t};n.lang==="ts"||n.lang==="typescript"?o.filepath="dummy.ts":n.lang==="tsx"&&(o.filepath="dummy.tsx");let s=await a(Ir(n,r.originalText),o);return qe([u,n.lang,n.meta?" "+n.meta:"",O,Ee(s),O,u])}}switch(n.type){case"front-matter":return t=>ti(n,t);case"import":case"export":return t=>t(n.value,{parser:"babel"});case"jsx":return t=>t(`<$>${n.value}`,{parser:"__js_expression",rootMarker:"mdx"})}return null}var si=wl;var Al=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");function Bl(e){let r=e.match(Al);if(!r)return{content:e};let{startDelimiter:n,language:t,value:a="",endDelimiter:i}=r.groups,u=t.trim()||"yaml";if(n==="+++"&&(u="toml"),u!=="yaml"&&n!==i)return{content:e};let[o]=r;return{frontMatter:{type:"front-matter",lang:u,value:a,startDelimiter:n,endDelimiter:i,raw:o.replace(/\n$/,"")},content:R(!1,o,/[^\n]/g," ")+e.slice(o.length)}}var or=Bl;var ci=["format","prettier"];function vt(e){let r=`@(${ci.join("|")})`,n=new RegExp([``,`{\\s*\\/\\*\\s*${r}\\s*\\*\\/\\s*}`,``].join("|"),"m"),t=e.match(n);return(t==null?void 0:t.index)===0}var li=e=>vt(or(e).content.trimStart()),fi=e=>{let r=or(e),n=``;return r.frontMatter?`${r.frontMatter.raw} ${n} ${r.content}`:`${n} ${r.content}`};var ql=/^.$/su;function Tl(e,r){return e=Sl(e,r),e=_l(e),e=Ol(e,r),e=Il(e,r),e=Ll(e),e}function Sl(e,r){return be(e,n=>n.type!=="text"||n.value==="*"||n.value==="_"||!ql.test(n.value)||n.position.end.offset-n.position.start.offset===n.value.length?n:{...n,value:r.originalText.slice(n.position.start.offset,n.position.end.offset)})}function Pl(e,r,n){return be(e,t=>{if(!t.children)return t;let a=t.children.reduce((i,u)=>{let o=U(!1,i,-1);return o&&r(o,u)?i.splice(-1,1,n(o,u)):i.push(u),i},[]);return{...t,children:a}})}function _l(e){return Pl(e,(r,n)=>r.type==="text"&&n.type==="text",(r,n)=>({type:"text",value:r.value+n.value,position:{start:r.position.start,end:n.position.end}}))}function Ll(e){return be(e,(r,n,[t])=>{if(r.type!=="text")return r;let{value:a}=r;return t.type==="paragraph"&&(n===0&&(a=a.trimStart()),n===t.children.length-1&&(a=a.trimEnd())),{type:"sentence",position:r.position,children:Or(a)}})}function Ol(e,r){return be(e,(n,t,a)=>{if(n.type==="code"){let i=/^\n?(?: {4,}|\t)/.test(r.originalText.slice(n.position.start.offset,n.position.end.offset));if(n.isIndented=i,i)for(let u=0;u{if(a.type==="list"&&a.children.length>0){for(let o=0;o1)return!0;let s=n(i);if(s===-1)return!1;if(a.children.length===1)return s%r.tabWidth===0;let l=n(u);return s!==l?!1:s%r.tabWidth===0?!0:Re(u,r.originalText).leadingSpaces.length>1}}var Di=Tl;var di=Ie(wr(),1);function Nl(e){return(e==null?void 0:e.type)==="front-matter"}var pi=Nl;var Rl=new Set(["position","raw"]);function hi(e,r,n){if((e.type==="front-matter"||e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete r.value,e.type==="list"&&delete r.isAligned,(e.type==="list"||e.type==="listItem")&&delete r.spread,e.type==="text"||(e.type==="inlineCode"&&(r.value=R(!1,e.value,` `," ")),e.type==="wikiLink"&&(r.value=R(!1,e.value.trim(),/[\t\n]+/g," ")),(e.type==="definition"||e.type==="linkReference"||e.type==="imageReference")&&(r.label=(0,di.default)(e.label)),(e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(r.title=R(!1,e.title,/\\(?=["')])/g,"")),(n==null?void 0:n.type)==="root"&&n.children.length>0&&(n.children[0]===e||pi(n.children[0])&&n.children[1]===e)&&e.type==="html"&&vt(e.value)))return null}hi.ignoredProperties=Rl;var mi=hi;var sr=null;function cr(e){if(sr!==null&&typeof sr.property){let r=sr;return sr=cr.prototype=null,r}return sr=cr.prototype=e??Object.create(null),new cr}var zl=10;for(let e=0;e<=zl;e++)cr();function Ft(e){return cr(e)}function Ml(e,r="type"){Ft(e);function n(t){let a=t[r],i=e[a];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:t});return i}return n}var gi=Ml;var Ul={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},vi=Ul;var Yl=gi(vi),Fi=Yl;var Vl=new Set(["heading","tableCell","link","wikiLink"]),jl=new Set(`$(\xA3\xA5\xB7'"\u3008\u300A\u300C\u300E\u3010\u3014\u3016\u301D\uFE59\uFE5B\uFF04\uFF08\uFF3B\uFF5B\uFFE1\uFFE5[{\u2035\uFE34\uFE35\uFE37\uFE39\uFE3B\uFE3D\uFE3F\uFE41\uFE43\uFE4F\u3018\uFF5F\xAB`),$l=new Set(`!%),.:;?]}\xA2\xB0\xB7'"\u2020\u2021\u203A\u2103\u2236\u3001\u3002\u3003\u3006\u3015\u3017\u301E\uFE5A\uFE5C\uFF01\uFF02\uFF05\uFF07\uFF09\uFF0C\uFF0E\uFF1A\uFF1B\uFF1F\uFF3D\uFF5D\uFF5E\u2013\u2014\u2022\u3009\u300B\u300D\uFE30\uFE31\uFE32\uFE33\uFE50\uFE51\uFE52\uFE53\uFE54\uFE55\uFE56\uFE58\uFE36\uFE38\uFE3A\uFE3C\uFE3E\uFE40\uFE42\uFE57\uFF5C\uFF64\u300F\u3011\u3019\u301F\uFF60\xBB\u30FD\u30FE\u30FC\u30A1\u30A3\u30A5\u30A7\u30A9\u30C3\u30E3\u30E5\u30E7\u30EE\u30F5\u30F6\u3041\u3043\u3045\u3047\u3049\u3063\u3083\u3085\u3087\u308E\u3095\u3096\u31F0\u31F1\u31F2\u31F3\u31F4\u31F5\u31F6\u31F7\u31F8\u31F9\u31FA\u31FB\u31FC\u31FD\u31FE\u31FF\u3005\u303B\u2010\u30A0\u301C\uFF5E\u203C\u2047\u2048\u2049\u30FB`),Ei=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function Gl({parent:e}){if(e.usesCJSpaces===void 0){let r={" ":0,"":0},{children:n}=e;for(let t=1;tr[""]}return e.usesCJSpaces}function Hl(e,r){if(r)return!0;let{previous:n,next:t}=e;if(!n||!t)return!0;let a=n.kind,i=t.kind;return bi(a)&&bi(i)||a===Ce&&i===De||i===Ce&&a===De?!0:a===ar||i===ar||a===De&&i===De?!1:Ei.has(t.value[0])||Ei.has(U(!1,n.value,-1))?!0:n.hasTrailingPunctuation||t.hasLeadingPunctuation?!1:Gl(e)}function Ci(e){return e===Pe||e===De||e===Ce}function bi(e){return e===Pe||e===Ce}function Wl(e,r,n,t,a){if(n!=="always"||e.hasAncestor(s=>Vl.has(s.type)))return!1;if(t)return r!=="";if(r===" ")return!0;let{previous:i,next:u}=e;return!(r===""&&((i==null?void 0:i.kind)===Ce&&Ci(u==null?void 0:u.kind)||(u==null?void 0:u.kind)===Ce&&Ci(i==null?void 0:i.kind))||!a&&(u&&$l.has(u.value[0])||i&&jl.has(U(!1,i.value,-1))))}function Et(e,r,n,t){if(n==="preserve"&&r===` `)return O;let a=r===" "||r===` `&&Hl(e,t);return Wl(e,r,n,t,a)?a?Pr:rr:a?" ":""}var Kl=new Set(["listItem","definition","footnoteDefinition"]);function Jl(e,r,n){var a,i,u;let{node:t}=e;if(nf(e))return Or(r.originalText.slice(t.position.start.offset,t.position.end.offset)).map(o=>o.type==="word"?o.value:Et(e,o.value,r.proseWrap,!0));switch(t.type){case"front-matter":return r.originalText.slice(t.position.start.offset,t.position.end.offset);case"root":return t.children.length===0?"":[Xn(ef(e,r,n)),O];case"paragraph":return Y(e,r,n,{postprocessor:Sr});case"sentence":return Y(e,r,n);case"word":{let o=R(!1,R(!1,t.value,"*","\\*"),new RegExp([`(^|${ur})(_+)`,`(_+)(${ur}|$)`].join("|"),"g"),(c,f,D,h,p)=>R(!1,D?`${f}${D}`:`${h}${p}`,"_","\\_")),s=(c,f,D)=>c.type==="sentence"&&D===0,l=(c,f,D)=>gt(c.children[D-1]);return o!==t.value&&(e.match(void 0,s,l)||e.match(void 0,s,(c,f,D)=>c.type==="emphasis"&&D===0,l))&&(o=o.replace(/^(\\?[*_])+/,c=>R(!1,c,"\\",""))),o}case"whitespace":{let{next:o}=e,s=o&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(o.value)?"never":r.proseWrap;return Et(e,t.value,s)}case"emphasis":{let o;if(gt(t.children[0]))o=r.originalText[t.position.start.offset];else{let{previous:s,next:l}=e;o=(s==null?void 0:s.type)==="sentence"&&((a=U(!1,s.children,-1))==null?void 0:a.type)==="word"&&!U(!1,s.children,-1).hasTrailingPunctuation||(l==null?void 0:l.type)==="sentence"&&((i=l.children[0])==null?void 0:i.type)==="word"&&!l.children[0].hasLeadingPunctuation||e.hasAncestor(f=>f.type==="emphasis")?"*":"_"}return[o,Y(e,r,n),o]}case"strong":return["**",Y(e,r,n),"**"];case"delete":return["~~",Y(e,r,n),"~~"];case"inlineCode":{let o=r.proseWrap==="preserve"?t.value:R(!1,t.value,` `," "),s=Nn(o,"`"),l="`".repeat(s||1),c=o.startsWith("`")||o.endsWith("`")||/^[\n ]/.test(o)&&/[\n ]$/.test(o)&&/[^\n ]/.test(o)?" ":"";return[l,c,o,c,l]}case"wikiLink":{let o="";return r.proseWrap==="preserve"?o=t.value:o=R(!1,t.value,/[\t\n]+/g," "),["[[",o,"]]"]}case"link":switch(r.originalText[t.position.start.offset]){case"<":{let o="mailto:";return["<",t.url.startsWith(o)&&r.originalText.slice(t.position.start.offset+1,t.position.start.offset+1+o.length)!==o?t.url.slice(o.length):t.url,">"]}case"[":return["[",Y(e,r,n),"](",Ct(t.url,")"),Nr(t.title,r),")"];default:return r.originalText.slice(t.position.start.offset,t.position.end.offset)}case"image":return["![",t.alt||"","](",Ct(t.url,")"),Nr(t.title,r),")"];case"blockquote":return["> ",Fe("> ",Y(e,r,n))];case"heading":return["#".repeat(t.depth)+" ",Y(e,r,n)];case"code":{if(t.isIndented){let l=" ".repeat(4);return Fe(l,[l,Ee(t.value,O)])}let o=r.__inJsTemplate?"~":"`",s=o.repeat(Math.max(3,Ar(t.value,o)+1));return[s,t.lang||"",t.meta?" "+t.meta:"",O,Ee(Ir(t,r.originalText),O),O,s]}case"html":{let{parent:o,isLast:s}=e,l=o.type==="root"&&s?t.value.trimEnd():t.value,c=/^$/s.test(l);return Ee(l,c?O:qe(tr))}case"list":{let o=yi(t,e.parent),s=oi(t,r);return Y(e,r,n,{processor(l){let c=D(),f=l.node;if(f.children.length===2&&f.children[1].type==="html"&&f.children[0].position.start.column!==f.children[1].position.start.column)return[c,xi(l,r,n,c)];return[c,Fe(" ".repeat(c.length),xi(l,r,n,c))];function D(){let h=t.ordered?(l.isFirst?t.start:s?1:t.start+l.index)+(o%2===0?". ":") "):o%2===0?"- ":"* ";return t.isAligned||t.hasIndentedCodeblock?Xl(h,r):h}}})}case"thematicBreak":{let{ancestors:o}=e,s=o.findIndex(c=>c.type==="list");return s===-1?"---":yi(o[s],o[s+1])%2===0?"***":"---"}case"linkReference":return["[",Y(e,r,n),"]",t.referenceType==="full"?bt(t):t.referenceType==="collapsed"?"[]":""];case"imageReference":switch(t.referenceType){case"full":return["![",t.alt||"","]",bt(t)];default:return["![",t.alt,"]",t.referenceType==="collapsed"?"[]":""]}case"definition":{let o=r.proseWrap==="always"?Pr:" ";return Ze([bt(t),":",Qe([o,Ct(t.url),t.title===null?"":[o,Nr(t.title,r,!1)]])])}case"footnote":return["[^",Y(e,r,n),"]"];case"footnoteReference":return Bi(t);case"footnoteDefinition":{let o=t.children.length===1&&t.children[0].type==="paragraph"&&(r.proseWrap==="never"||r.proseWrap==="preserve"&&t.children[0].position.start.line===t.children[0].position.end.line);return[Bi(t),": ",o?Y(e,r,n):Ze([Fe(" ".repeat(4),Y(e,r,n,{processor:({isFirst:s})=>s?Ze([rr,n()]):n()})),((u=e.next)==null?void 0:u.type)==="footnoteDefinition"?rr:""])]}case"table":return Zl(e,r,n);case"tableCell":return Y(e,r,n);case"break":return/\s/.test(r.originalText[t.position.start.offset])?[" ",qe(tr)]:["\\",O];case"liquidNode":return Ee(t.value,O);case"import":case"export":case"jsx":return t.value;case"esComment":return["{/* ",t.value," */}"];case"math":return["$$",O,t.value?[Ee(t.value,O),O]:"","$$"];case"inlineMath":return r.originalText.slice(Te(t),Se(t));case"tableRow":case"listItem":case"text":default:throw new ri(t,"Markdown")}}function xi(e,r,n,t){let{node:a}=e,i=a.checked===null?"":a.checked?"[x] ":"[ ] ";return[i,Y(e,r,n,{processor({node:u,isFirst:o}){if(o&&u.type!=="list")return Fe(" ".repeat(i.length),n());let s=" ".repeat(uf(r.tabWidth-t.length,0,3));return[s,Fe(s,n())]}})]}function Xl(e,r){let n=t();return e+" ".repeat(n>=4?0:n);function t(){let a=e.length%r.tabWidth;return a===0?0:r.tabWidth-a}}function yi(e,r){return Ql(e,r,n=>n.ordered===e.ordered)}function Ql(e,r,n){let t=-1;for(let a of r.children)if(a.type===e.type&&n(a)?t++:t=-1,a===e)return t}function Zl(e,r,n){let{node:t}=e,a=[],i=e.map(()=>e.map(({index:f})=>{let D=ei(n(),r).formatted,h=Xe(D);return a[f]=Math.max(a[f]||3,h),{text:D,width:h}},"children"),"children"),u=s(!1);if(r.proseWrap!=="never")return[er,u];let o=s(!0);return[er,Ze($n(o,u))];function s(f){let D=[c(i[0],f),l(f)];return i.length>1&&D.push(nr(Ne,i.slice(1).map(h=>c(h,f)))),nr(Ne,D)}function l(f){return`| ${a.map((h,p)=>{let d=t.align[p],m=d==="center"||d==="left"?":":"-",g=d==="center"||d==="right"?":":"-",x=f?"-":"-".repeat(h-2);return`${m}${x}${g}`}).join(" | ")} |`}function c(f,D){return`| ${f.map(({text:p,width:d},m)=>{if(D)return p;let g=a[m]-d,x=t.align[m],F=0;x==="right"?F=g:x==="center"&&(F=Math.floor(g/2));let B=g-F;return`${" ".repeat(F)}${p}${" ".repeat(B)}`}).join(" | ")} |`}}function ef(e,r,n){let t=[],a=null,{children:i}=e.node;for(let[u,o]of i.entries())switch(xt(o)){case"start":a===null&&(a={index:u,offset:o.position.end.offset});break;case"end":a!==null&&(t.push({start:a,end:{index:u,offset:o.position.start.offset}}),a=null);break;default:break}return Y(e,r,n,{processor({index:u}){if(t.length>0){let o=t[0];if(u===o.start.index)return[ki(i[o.start.index]),r.originalText.slice(o.start.offset,o.end.offset),ki(i[o.end.index])];if(o.start.indexo,processor:i=()=>n()}=t,u=[];return e.each(()=>{let o=i(e);o!==!1&&(u.length>0&&rf(e)&&(u.push(O),(tf(e,r)||Ai(e))&&u.push(O),Ai(e)&&u.push(O)),u.push(o))},"children"),a(u)}function ki(e){if(e.type==="html")return e.value;if(e.type==="paragraph"&&Array.isArray(e.children)&&e.children.length===1&&e.children[0].type==="esComment")return["{/* ",e.children[0].value," */}"]}function xt(e){let r;if(e.type==="html")r=e.value.match(/^$/);else{let n;e.type==="esComment"?n=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(n=e.children[0]),n&&(r=n.value.match(/^prettier-ignore(?:-(start|end))?$/))}return r?r[1]||"next":!1}function rf({node:e,parent:r}){let n=mt.has(e.type),t=e.type==="html"&&Lr.has(r.type);return!n&&!t}function wi(e,r){return e.type==="listItem"&&(e.spread||r.originalText.charAt(e.position.end.offset-1)===` `)}function tf({node:e,previous:r,parent:n},t){if(wi(r,t))return!0;let u=r.type===e.type&&Kl.has(e.type),o=n.type==="listItem"&&!wi(n,t),s=xt(r)==="next",l=e.type==="html"&&r.type==="html"&&r.position.end.line+1===e.position.start.line,c=e.type==="html"&&n.type==="listItem"&&r.type==="paragraph"&&r.position.end.line+1===e.position.start.line;return!(u||o||s||l||c)}function Ai({node:e,previous:r}){let n=r.type==="list",t=e.type==="code"&&e.isIndented;return n&&t}function nf(e){let r=e.findAncestor(n=>n.type==="linkReference"||n.type==="imageReference");return r&&(r.type!=="linkReference"||r.referenceType!=="full")}function Ct(e,r=[]){let n=[" ",...Array.isArray(r)?r:[r]];return new RegExp(n.map(t=>`\\${t}`).join("|")).test(e)?`<${e}>`:e}function Nr(e,r,n=!0){if(!e)return"";if(n)return" "+Nr(e,r,!1);if(e=R(!1,e,/\\(?=["')])/g,""),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let t=Un(e,r.singleQuote);return e=R(!1,e,"\\","\\\\"),e=R(!1,e,t,`\\${t}`),`${t}${e}${t}`}function uf(e,r,n){return en?n:e}function af(e){return e.index>0&&xt(e.previous)==="next"}function bt(e){return`[${(0,qi.default)(e.label)}]`}function Bi(e){return`[^${e.label}]`}var of={preprocess:Di,print:Jl,embed:si,massageAstNode:mi,hasPrettierIgnore:af,insertPragma:fi,getVisitorKeys:Fi},Ti=of;var Pn={};Ln(Pn,{markdown:()=>xg,mdx:()=>yg,remark:()=>xg});var Gc=Ie(ks(),1),Hc=Ie(vc(),1),Wc=Ie(Pc(),1),Kc=Ie(Lc(),1);var hg=/^import\s/,mg=/^export\s/,Oc="[a-z][a-z0-9]*(\\.[a-z][a-z0-9]*)*|",Ic=/|/,gg=/^{\s*\/\*(.*)\*\/\s*}/,vg=` `,Nc=e=>hg.test(e),Sn=e=>mg.test(e),Rc=(e,r)=>{let n=r.indexOf(vg),t=r.slice(0,n);if(Sn(t)||Nc(t))return e(t)({type:Sn(t)?"export":"import",value:t})},zc=(e,r)=>{let n=gg.exec(r);if(n)return e(n[0])({type:"esComment",value:n[1].trim()})};Rc.locator=e=>Sn(e)||Nc(e)?-1:1;zc.locator=(e,r)=>e.indexOf("{",r);var Mc=function(){let{Parser:e}=this,{blockTokenizers:r,blockMethods:n,inlineTokenizers:t,inlineMethods:a}=e.prototype;r.esSyntax=Rc,t.esComment=zc,n.splice(n.indexOf("paragraph"),0,"esSyntax"),a.splice(a.indexOf("text"),0,"esComment")};function Fg(){return e=>be(e,(r,n,[t])=>r.type!=="html"||Ic.test(r.value)||Lr.has(t.type)?r:{...r,type:"jsx"})}var Uc=Fg;var Eg=function(){let e=this.Parser.prototype;e.blockMethods=["frontMatter",...e.blockMethods],e.blockTokenizers.frontMatter=r;function r(n,t){let a=or(t);if(a.frontMatter)return n(a.frontMatter.raw)(a.frontMatter)}r.onlyAtStart=!0},Yc=Eg;var Cg=function(){let e=this.Parser.prototype,r=e.inlineMethods;r.splice(r.indexOf("text"),0,"liquid"),e.inlineTokenizers.liquid=n;function n(t,a){let i=a.match(/^({%.*?%}|{{.*?}})/s);if(i)return t(i[0])({type:"liquidNode",value:i[0]})}n.locator=function(t,a){return t.indexOf("{",a)}},Vc=Cg;var bg=function(){let e="wikiLink",r=/^\[\[(?.+?)]]/s,n=this.Parser.prototype,t=n.inlineMethods;t.splice(t.indexOf("link"),0,e),n.inlineTokenizers.wikiLink=a;function a(i,u){let o=r.exec(u);if(o){let s=o.groups.linkContents.trim();return i(o[0])({type:e,value:s})}}a.locator=function(i,u){return i.indexOf("[",u)}},jc=bg;function Jc({isMDX:e}){return r=>{let n=(0,Hc.default)().use(Gc.default,{commonmark:!0,...e&&{blocks:[Oc]}}).use(Kc.default).use(Yc).use(Wc.default).use(e?Mc:$c).use(Vc).use(e?Uc:$c).use(jc);return n.run(n.parse(r))}}function $c(){}var Xc={astFormat:"mdast",hasPragma:li,locStart:Te,locEnd:Se},xg={...Xc,parse:Jc({isMDX:!1})},yg={...Xc,parse:Jc({isMDX:!0})};var Qc=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}];var _n={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var kg={proseWrap:_n.proseWrap,singleQuote:_n.singleQuote},Zc=kg;var wg={mdast:Ti};return ul(Ag);});