amis-rpc-design/node_modules/prettier/plugins/markdown.js

59 lines
144 KiB
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
(function(n){function e(){var i=n();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.markdown=e()}})(function(){"use strict";var el=Object.create;var kr=Object.defineProperty;var rl=Object.getOwnPropertyDescriptor;var tl=Object.getOwnPropertyNames;var nl=Object.getPrototypeOf,il=Object.prototype.hasOwnProperty;var C=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Ln=(e,r)=>{for(var n in r)kr(e,n,{get:r[n],enumerable:!0})},On=(e,r,n,t)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of tl(r))!il.call(e,a)&&a!==n&&kr(e,a,{get:()=>r[a],enumerable:!(t=rl(r,a))||t.enumerable});return e};var Ie=(e,r,n)=>(n=e!=null?el(nl(e)):{},On(r||!e||!e.__esModule?kr(n,"default",{value:e,enumerable:!0}):n,e)),ul=e=>On(kr({},"__esModule",{value:!0}),e);var wr=C((Sg,In)=>{"use strict";In.exports=sl;function sl(e){return String(e).replace(/\s+/g," ")}});var _e=C((Lv,Si)=>{Si.exports=cf;var sf=Object.prototype.hasOwnProperty;function cf(){for(var e={},r=0;r<arguments.length;r++){var n=arguments[r];for(var t in n)sf.call(n,t)&&(e[t]=n[t])}return e}});var Pi=C((Ov,yt)=>{typeof Object.create=="function"?yt.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:yt.exports=function(r,n){if(n){r.super_=n;var t=function(){};t.prototype=n.prototype,r.prototype=new t,r.prototype.constructor=r}}});var Oi=C((Iv,Li)=>{"use strict";var lf=_e(),_i=Pi();Li.exports=ff;function ff(e){var r,n,t;_i(i,e),_i(a,i),r=i.prototype;for(n in r)t=r[n],t&&typeof t=="object"&&(r[n]="concat"in t?t.concat():lf(t));return i;function a(u){return e.apply(this,u)}function i(){return this instanceof i?e.apply(this,arguments):new a(arguments)}}});var Ni=C((Nv,Ii)=>{"use strict";Ii.exports=Df;function Df(e,r,n){return t;function t(){var a=n||this,i=a[e];return a[e]=!r,u;function u(){a[e]=i}}}});var zi=C((Rv,Ri)=>{"use strict";Ri.exports=pf;function pf(e){for(var r=String(e),n=[],t=/\r?\n|\r/g;t.exec(r);)n.push(t.lastIndex);return n.push(r.length+1),{toPoint:a,toPosition:a,toOffset:i};function a(u){var o=-1;if(u>-1&&u<n[n.length-1]){for(;++o<n.length;)if(n[o]>u)return{line:o+1,column:u-(n[o-1]||0)+1,offset:u}}return{}}function i(u){var o=u&&u.line,s=u&&u.column,l;return!isNaN(o)&&!isNaN(s)&&o-1 in n&&(l=(n[o-2]||0)+s-1||0),l>-1&&l<n[n.length-1]?l:-1}}});var Ui=C((zv,Mi)=>{"use strict";Mi.exports=df;var kt="\\";function df(e,r){return n;function n(t){for(var a=0,i=t.indexOf(kt),u=e[r],o=[],s;i!==-1;)o.push(t.slice(a,i)),a=i+1,s=t.charAt(a),(!s||u.indexOf(s)===-1)&&o.push(kt),i=t.indexOf(kt,a+1);return o.push(t.slice(a)),o.join("")}}});var Yi=C((Mv,hf)=>{hf.exports={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Acirc:"\xC2",Agrave:"\xC0",Aring:"\xC5",Atilde:"\xC3",Auml:"\xC4",COPY:"\xA9",Ccedil:"\xC7",ETH:"\xD0",Eacute:"\xC9",Ecirc:"\xCA",Egrave:"\xC8",Euml:"\xCB",GT:">",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u
`);A!==-1;)l++,w=A,A=E.indexOf(`
`,A+1);w===-1?c+=E.length:c=E.length-w,l in i&&(w!==-1?c+=i[l]:c<=i[l]&&(c=i[l]+1))}function x(){var E=[],w=l+1;return function(){for(var A=l+1;w<A;)E.push((i[w]||0)+1),w++;return E}}function F(){var E={line:l,column:c};return E.offset=a.toOffset(E),E}function B(E){this.start=E,this.end=F()}function b(E){n.slice(0,E.length)!==E&&a.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),F())}function v(){var E=F();return w;function w(A,q){var T=A.position,N=T?T.start:E,_=[],P=T&&T.end.line,S=E.line;if(A.position=new B(N),T&&q&&T.indent){if(_=T.indent,P<S){for(;++P<S;)_.push((i[P]||0)+1);_.push(E.column)}q=_.concat(q)}return A.position.indent=q||[],A}}function y(E,w){var A=w?w.children:u,q=A[A.length-1],T;return q&&E.type===q.type&&(E.type==="text"||E.type==="blockquote")&&mu(q)&&mu(E)&&(T=E.type==="text"?Wf:Kf,E=T.call(a,q,E)),E!==q&&A.push(E),a.atStart&&u.length!==0&&a.exitStart(),E}function k(E){var w=x(),A=v(),q=F();return b(E),T.reset=N,N.test=_,T.test=_,n=n.slice(E.length),g(E),w=w(),T;function T(P,S){return A(y(A(P),S),w)}function N(){var P=T.apply(null,arguments);return l=q.line,c=q.column,n=E+n,P}function _(){var P=A({});return l=q.line,c=q.column,n=E+n,P.position}}}}function mu(e){var r,n;return e.type!=="text"||!e.position?!0:(r=e.position.start,n=e.position.end,r.line!==n.line||n.column-r.column===e.value.length)}function Wf(e,r){return e.value+=r.value,e}function Kf(e,r){return this.options.commonmark||this.options.gfm?r:(e.children=e.children.concat(r.children),e)}});var Cu=C((Xv,Eu)=>{"use strict";Eu.exports=zr;var Tt=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],St=Tt.concat(["~","|"]),Fu=St.concat([`
`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);zr.default=Tt;zr.gfm=St;zr.commonmark=Fu;function zr(e){var r=e||{};return r.commonmark?Fu:r.gfm?St:Tt}});var xu=C((Qv,bu)=>{"use strict";bu.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var Pt=C((Zv,yu)=>{"use strict";yu.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:xu()}});var wu=C((eF,ku)=>{"use strict";var Jf=_e(),Xf=Cu(),Qf=Pt();ku.exports=Zf;function Zf(e){var r=this,n=r.options,t,a;if(e==null)e={};else if(typeof e=="object")e=Jf(e);else throw new Error("Invalid value `"+e+"` for setting `options`");for(t in Qf){if(a=e[t],a==null&&(a=n[t]),t!=="blocks"&&typeof a!="boolean"||t==="blocks"&&typeof a!="object")throw new Error("Invalid value `"+a+"` for setting `options."+t+"`");e[t]=a}return r.options=e,r.escape=Xf(e),r}});var qu=C((rF,Bu)=>{"use strict";Bu.exports=Au;function Au(e){if(e==null)return nD;if(typeof e=="string")return tD(e);if(typeof e=="object")return"length"in e?rD(e):eD(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function eD(e){return r;function r(n){var t;for(t in e)if(n[t]!==e[t])return!1;return!0}}function rD(e){for(var r=[],n=-1;++n<e.length;)r[n]=Au(e[n]);return t;function t(){for(var a=-1;++a<r.length;)if(r[a].apply(this,arguments))return!0;return!1}}function tD(e){return r;function r(n){return!!(n&&n.type===e)}}function nD(){return!0}});var Su=C((tF,Tu)=>{Tu.exports=iD;function iD(e){return e}});var Ou=C((nF,Lu)=>{"use strict";Lu.exports=Mr;var uD=qu(),aD=Su(),Pu=!0,_u="skip",_t=!1;Mr.CONTINUE=Pu;Mr.SKIP=_u;Mr.EXIT=_t;function Mr(e,r,n,t){var a,i;typeof r=="function"&&typeof n!="function"&&(t=n,n=r,r=null),i=uD(r),a=t?-1:1,u(e,null,[])();function u(o,s,l){var c=typeof o=="object"&&o!==null?o:{},f;return typeof c.type=="string"&&(f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,D.displayName="node ("+aD(c.type+(f?"<"+f+">":""))+")"),D;function D(){var h=l.concat(o),p=[],d,m;if((!r||i(o,s,l[l.length-1]||null))&&(p=oD(n(o,l)),p[0]===_t))return p;if(o.children&&p[0]!==_u)for(m=(t?o.children.length:-1)+a;m>-1&&m<o.children.length;){if(d=u(o.children[m],m,h)(),d[0]===_t)return d;m=typeof d[1]=="number"?d[1]:m+a}return p}}}function oD(e){return e!==null&&typeof e=="object"&&"length"in e?e:typeof e=="number"?[Pu,e]:[e]}});var Nu=C((iF,Iu)=>{"use strict";Iu.exports=Yr;var Ur=Ou(),sD=Ur.CONTINUE,cD=Ur.SKIP,lD=Ur.EXIT;Yr.CONTINUE=sD;Yr.SKIP=cD;Yr.EXIT=lD;function Yr(e,r,n,t){typeof r=="function"&&typeof n!="function"&&(t=n,n=r,r=null),Ur(e,r,a,t);function a(i,u){var o=u[u.length-1],s=o?o.children.indexOf(i):null;return n(i,s,o)}}});var zu=C((uF,Ru)=>{"use strict";var fD=Nu();Ru.exports=DD;function DD(e,r){return fD(e,r?pD:dD),e}function pD(e){delete e.position}function dD(e){e.position=void 0}});var Yu=C((aF,Uu)=>{"use strict";var Mu=_e(),hD=zu();Uu.exports=vD;var mD=`
`,gD=/\r\n|\r/g;function vD(){var e=this,r=String(e.file),n={line:1,column:1,offset:0},t=Mu(n),a;return r=r.replace(gD,mD),r.charCodeAt(0)===65279&&(r=r.slice(1),t.column++,t.offset++),a={type:"root",children:e.tokenizeBlock(r,t),position:{start:n,end:e.eof||Mu(n)}},e.options.position||hD(a,!0),a}});var ju=C((oF,Vu)=>{"use strict";var FD=/^[ \t]*(\n|$)/;Vu.exports=ED;function ED(e,r,n){for(var t,a="",i=0,u=r.length;i<u&&(t=FD.exec(r.slice(i)),t!=null);)i+=t[0].length,a+=t[0];if(a!==""){if(n)return!0;e(a)}}});var Vr=C((sF,$u)=>{"use strict";var pe="",Lt;$u.exports=CD;function CD(e,r){if(typeof e!="string")throw new TypeError("expected a string");if(r===1)return e;if(r===2)return e+e;var n=e.length*r;if(Lt!==e||typeof Lt>"u")Lt=e,pe="";else if(pe.length>=n)return pe.substr(0,n);for(;n>pe.length&&r>1;)r&1&&(pe+=e),r>>=1,e+=e;return pe+=e,pe=pe.substr(0,n),pe}});var Ot=C((cF,Gu)=>{"use strict";Gu.exports=bD;function bD(e){return String(e).replace(/\n+$/,"")}});var Ku=C((lF,Wu)=>{"use strict";var xD=Vr(),yD=Ot();Wu.exports=AD;var It=`
`,Hu=" ",Nt=" ",kD=4,wD=xD(Nt,kD);function AD(e,r,n){for(var t=-1,a=r.length,i="",u="",o="",s="",l,c,f;++t<a;)if(l=r.charAt(t),f)if(f=!1,i+=o,u+=s,o="",s="",l===It)o=l,s=l;else for(i+=l,u+=l;++t<a;){if(l=r.charAt(t),!l||l===It){s=l,o=l;break}i+=l,u+=l}else if(l===Nt&&r.charAt(t+1)===l&&r.charAt(t+2)===l&&r.charAt(t+3)===l)o+=wD,t+=3,f=!0;else if(l===Hu)o+=l,f=!0;else{for(c="";l===Hu||l===Nt;)c+=l,l=r.charAt(++t);if(l!==It)break;o+=c+l,s+=l}if(u)return n?!0:e(i)({type:"code",lang:null,meta:null,value:yD(u)})}});var Qu=C((fF,Xu)=>{"use strict";Xu.exports=SD;var jr=`
`,fr=" ",Ye=" ",BD="~",Ju="`",qD=3,TD=4;function SD(e,r,n){var t=this,a=t.options.gfm,i=r.length+1,u=0,o="",s,l,c,f,D,h,p,d,m,g,x,F,B;if(a){for(;u<i&&(c=r.charAt(u),!(c!==Ye&&c!==fr));)o+=c,u++;if(F=u,c=r.charAt(u),!(c!==BD&&c!==Ju)){for(u++,l=c,s=1,o+=c;u<i&&(c=r.charAt(u),c===l);)o+=c,s++,u++;if(!(s<qD)){for(;u<i&&(c=r.charAt(u),!(c!==Ye&&c!==fr));)o+=c,u++;for(f="",p="";u<i&&(c=r.charAt(u),!(c===jr||l===Ju&&c===l));)c===Ye||c===fr?p+=c:(f+=p+c,p=""),u++;if(c=r.charAt(u),!(c&&c!==jr)){if(n)return!0;B=e.now(),B.column+=o.length,B.offset+=o.length,o+=f,f=t.decode.raw(t.unescape(f),B),p&&(o+=p),p="",g="",x="",d="",m="";for(var b=!0;u<i;){if(c=r.charAt(u),d+=g,m+=x,g="",x="",c!==jr){d+=c,x+=c,u++;continue}for(b?(o+=c,b=!1):(g+=c,x+=c),p="",u++;u<i&&(c=r.charAt(u),c===Ye);)p+=c,u++;if(g+=p,x+=p.slice(F),!(p.length>=TD)){for(p="";u<i&&(c=r.charAt(u),c===l);)p+=c,u++;if(g+=p,x+=p,!(p.length<s)){for(p="";u<i&&(c=r.charAt(u),!(c!==Ye&&c!==fr));)g+=c,x+=c,u++;if(!c||c===jr)break}}}for(o+=d+g,u=-1,i=f.length;++u<i;)if(c=f.charAt(u),c===Ye||c===fr)D||(D=f.slice(0,u));else if(D){h=f.slice(u);break}return e(o)({type:"code",lang:D||f||null,meta:h||null,value:m})}}}}}});var Oe=C((Ve,Zu)=>{Ve=Zu.exports=PD;function PD(e){return e.trim?e.trim():Ve.right(Ve.left(e))}Ve.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")};Ve.right=function(e){if(e.trimRight)return e.trimRight();for(var r=/\s/,n=e.length;r.test(e.charAt(--n)););return e.slice(0,n+1)}});var $r=C((DF,ea)=>{"use strict";ea.exports=_D;function _D(e,r,n,t){for(var a=e.length,i=-1,u,o;++i<a;)if(u=e[i],o=u[1]||{},!(o.pedantic!==void 0&&o.pedantic!==n.options.pedantic)&&!(o.commonmark!==void 0&&o.commonmark!==n.options.commonmark)&&r[u[0]].apply(n,t))return!0;return!1}});var ia=C((pF,na)=>{"use strict";var LD=Oe(),OD=$r();na.exports=ID;var Rt=`
`,ra=" ",zt=" ",ta=">";function ID(e,r,n){for(var t=this,a=t.offset,i=t.blockTokenizers,u=t.interruptBlockquote,o=e.now(),s=o.line,l=r.length,c=[],f=[],D=[],h,p=0,d,m,g,x,F,B,b,v;p<l&&(d=r.charAt(p),!(d!==zt&&d!==ra));)p++;if(r.charAt(p)===ta){if(n)return!0;for(p=0;p<l;){for(g=r.indexOf(Rt,p),B=p,b=!1,g===-1&&(g=l);p<l&&(d=r.charAt(p),!(d!==zt&&d!==ra));)p++;if(r.charAt(p)===ta?(p++,b=!0,r.charAt(p)===zt&&p++):p=B,x=r.slice(p,g),!b&&!LD(x)){p=B;break}if(!b&&(m=r.slice(p),OD(u,i,t,[e,m,!0])))break;F=B===p?x:r.slice(B,g),D.push(p-B),c.push(F),f.push(x),p=g+1}for(p=-1,l=D.length,h=e(c.join(Rt));++p<l;)a[s]=(a[s]||0)+D[p],s++;return v=t.enterBlock(),f=t.tokenizeBlock(f.join(Rt),o),v(),h({type:"blockquote",children:f})}}});var oa=C((dF,aa)=>{"use strict";aa.exports=RD;var ua=`
`,Dr=" ",pr=" ",dr="#",ND=6;function RD(e,r,n){for(var t=this,a=t.options.pedantic,i=r.length+1,u=-1,o=e.now(),s="",l="",c,f,D;++u<i;){if(c=r.charAt(u),c!==pr&&c!==Dr){u--;break}s+=c}for(D=0;++u<=i;){if(c=r.charAt(u),c!==dr){u--;break}s+=c,D++}if(!(D>ND)&&!(!D||!a&&r.charAt(u+1)===dr)){for(i=r.length+1,f="";++u<i;){if(c=r.charAt(u),c!==pr&&c!==Dr){u--;break}f+=c}if(!(!a&&f.length===0&&c&&c!==ua)){if(n)return!0;for(s+=f,f="",l="";++u<i&&(c=r.charAt(u),!(!c||c===ua));){if(c!==pr&&c!==Dr&&c!==dr){l+=f+c,f="";continue}for(;c===pr||c===Dr;)f+=c,c=r.charAt(++u);if(!a&&l&&!f&&c===dr){l+=c;continue}for(;c===dr;)f+=c,c=r.charAt(++u);for(;c===pr||c===Dr;)f+=c,c=r.charAt(++u);u--}return o.column+=s.length,o.offset+=s.length,s+=l+f,e(s)({type:"heading",depth:D,children:t.tokenizeInline(l,o)})}}}});var la=C((hF,ca)=>{"use strict";ca.exports=$D;var zD=" ",MD=`
`,sa=" ",UD="*",YD="-",VD="_",jD=3;function $D(e,r,n){for(var t=-1,a=r.length+1,i="",u,o,s,l;++t<a&&(u=r.charAt(t),!(u!==zD&&u!==sa));)i+=u;if(!(u!==UD&&u!==YD&&u!==VD))for(o=u,i+=u,s=1,l="";++t<a;)if(u=r.charAt(t),u===o)s++,i+=l+o,l="";else if(u===sa)l+=u;else return s>=jD&&(!u||u===MD)?(i+=l,n?!0:e(i)({type:"thematicBreak"})):void 0}});var Mt=C((mF,Da)=>{"use strict";Da.exports=KD;var fa=" ",GD=" ",HD=1,WD=4;function KD(e){for(var r=0,n=0,t=e.charAt(r),a={},i,u=0;t===fa||t===GD;){for(i=t===fa?WD:HD,n+=i,i>1&&(n=Math.floor(n/i)*i);u<n;)a[++u]=r;t=e.charAt(++r)}return{indent:n,stops:a}}});var ha=C((gF,da)=>{"use strict";var JD=Oe(),XD=Vr(),QD=Mt();da.exports=rp;var pa=`
`,ZD=" ",ep="!";function rp(e,r){var n=e.split(pa),t=n.length+1,a=1/0,i=[],u,o,s;for(n.unshift(XD(ZD,r)+ep);t--;)if(o=QD(n[t]),i[t]=o.stops,JD(n[t]).length!==0)if(o.indent)o.indent>0&&o.indent<a&&(a=o.indent);else{a=1/0;break}if(a!==1/0)for(t=n.length;t--;){for(s=i[t],u=a;u&&!(u in s);)u--;n[t]=n[t].slice(s[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<l&&(p=r.charAt(s),!(p!==Gr&&p!==de));)s++;if(p=r.charAt(s),p===Ut||p===ga||p===Yt)d=p,h=!1;else{for(h=!0,D="";s<l&&(p=r.charAt(s),!!ma(p));)D+=p,s++;if(p=r.charAt(s),!D||!(p===va||a&&p===Fa)||n&&D!=="1")return;c=parseInt(D,10),d=p}if(p=r.charAt(++s),!(p!==de&&p!==Gr&&(i||p!==te&&p!==""))){if(n)return!0;for(s=0,k=[],E=[],w=[];s<l;){for(m=r.indexOf(te,s),g=s,x=!1,L=!1,m===-1&&(m=l),f=0;s<l;){if(p=r.charAt(s),p===Gr)f+=ye-f%ye;else if(p===de)f++;else break;s++}if(A&&f>=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<l&&(p=r.charAt(s),!!ma(p));)D+=p,s++;p=r.charAt(s),s++,D&&(p===va||a&&p===Fa)&&(F=p,f+=D.length+1)}if(F)if(p=r.charAt(s),p===Gr)f+=ye-f%ye,s++;else if(p===de){for(S=s+ye;s<S&&r.charAt(s)===de;)s++,f++;s===S&&r.charAt(s)===de&&(s-=ye-1,f-=ye-1)}else p!==te&&p!==""&&(F=null)}if(F){if(!i&&d!==F)break;x=!0}else!a&&!L&&r.charAt(g)===de?L=!0:a&&A&&(L=f>=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<l;)A=k[s].value.join(te),P=e.now(),e(A)(hp(t,A,P),_),A=k[s].trail.join(te),s!==l-1&&(A+=te),e(A);return q(),T(),_}}function hp(e,r,n){var t=e.offset,a=e.options.pedantic?mp:gp,i=null,u,o;return r=a.apply(null,arguments),e.options.gfm&&(u=r.match(lp),u&&(o=u[0].length,i=u[1].toLowerCase()===sp,t[n.line]+=o,r=r.slice(o))),{type:"listItem",spread:cp.test(r),checked:i,children:e.tokenizeBlock(r,n)}}function mp(e,r,n){var t=e.offset,a=n.line;return r=r.replace(Dp,i),a=n.line,r.replace(pp,i);function i(u){return t[a]=(t[a]||0)+u.length,a++,""}}function gp(e,r,n){var t=e.offset,a=n.line,i,u,o,s,l,c,f;for(r=r.replace(fp,D),s=r.split(te),l=up(r,ip(i).indent).split(te),l[0]=o,t[a]=(t[a]||0)+u.length,a++,c=0,f=s.length;++c<f;)t[a]=(t[a]||0)+s[c].length-l[c].length,a++;return l.join(te);function D(h,p,d,m,g){return u=p+d+m,o=g,Number(d)<10&&u.length%2===1&&(d=de+d),i=p+np(de,d.length)+m,i+o}}});var ka=C((FF,ya)=>{"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<i;){if(c=r.charAt(u),c!==ba||u>=Ep){u--;break}o+=c}for(s="",l="";++u<i;){if(c=r.charAt(u),c===Vt){u--;break}c===ba||c===vp?l+=c:(s+=l+c,l="")}if(a.column+=o.length,a.offset+=o.length,o+=s+l,c=r.charAt(++u),f=r.charAt(++u),!(c!==Vt||f!==xa&&f!==Fp)){for(o+=c,l=f,D=f===xa?Cp:bp;++u<i;){if(c=r.charAt(u),c!==f){if(c!==Vt)return;u--;break}l+=c}return n?!0:e(o+l)({type:"heading",depth:D,children:t.tokenizeInline(s,a)})}}});var $t=C(jt=>{"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="<![A-Za-z]+\\s+[^>]*>",_p="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>";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=/^<!--/,Up=/-->/,Yp=/^<\?/,Vp=/\?>/,jp=/^<![A-Za-z]/,$p=/>/,Gp=/^<!\[CDATA\[/,Hp=/]]>/,qa=/^$/,Wp=new RegExp(Lp.source+"\\s*$");function Kp(e,r,n){for(var t=this,a=t.options.blocks.join("|"),i=new RegExp("^</?("+a+")(?=(\\s|/?>|$))","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<u&&(f=r.charAt(o),!(f!==Op&&f!==Ip));)o++;if(r.charAt(o)===Np){for(s=r.indexOf(Ba,o+1),s=s===-1?u:s,l=r.slice(o,s),c=-1,D=d.length;++c<D;)if(d[c][0].test(l)){h=d[c];break}if(h){if(n)return h[2];if(o=s,!h[1].test(l))for(;o<u;){if(s=r.indexOf(Ba,o+1),s=s===-1?u:s,l=r.slice(o+1,s),h[1].test(l)){l&&(o=s);break}o=s}return p=r.slice(0,o),e(p)({type:"html",value:p})}}}});var ne=C((bF,Pa)=>{"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<u&&(f=r.charAt(i),!(f!==Wr&&f!==Hr));)o+=f,i++;if(f=r.charAt(i),f===Wt){for(i++,o+=f,c="";i<u&&(f=r.charAt(i),f!==hr);)f===nd&&(c+=f,i++,f=r.charAt(i)),c+=f,i++;if(!(!c||r.charAt(i)!==hr||r.charAt(i+1)!==Ia)){for(h=c,o+=c+hr+Ia,i=o.length,c="";i<u&&(f=r.charAt(i),!(f!==Hr&&f!==Wr&&f!==je));)o+=f,i++;if(f=r.charAt(i),c="",s=o,f===Na){for(i++;i<u&&(f=r.charAt(i),!!Ht(f));)c+=f,i++;if(f=r.charAt(i),f===Ht.delimiter)o+=Na+c+f,i++;else{if(a)return;i-=c.length+1,c=""}}if(!c){for(;i<u&&(f=r.charAt(i),!!od(f));)c+=f,i++;o+=c}if(c){for(p=c,c="";i<u&&(f=r.charAt(i),!(f!==Hr&&f!==Wr&&f!==je));)c+=f,i++;if(f=r.charAt(i),D=null,f===La?D=La:f===Oa?D=Oa:f===id&&(D=ud),!D)c="",i=o.length;else if(c){for(o+=c+f,i=o.length,c="";i<u&&(f=r.charAt(i),f!==D);){if(f===je){if(i++,f=r.charAt(i),f===je||f===D)return;c+=je}c+=f,i++}if(f=r.charAt(i),f!==D)return;l=o,o+=c+f,i++,d=c,c=""}else return;for(;i<u&&(f=r.charAt(i),!(f!==Hr&&f!==Wr));)o+=f,i++;if(f=r.charAt(i),!f||f===je)return n?!0:(s=e(s).test().end,p=t.decode.raw(t.unescape(p),s,{nonTerminated:!1}),d&&(l=e(l).test().end,d=t.decode.raw(t.unescape(d),l)),e(o)({type:"definition",identifier:td(h),label:h,title:d||null,url:p}))}}}}function Ht(e){return e!==Ra&&e!==Wt&&e!==hr}Ht.delimiter=Ra;function od(e){return e!==Wt&&e!==hr&&!rd(e)}});var Va=C((kF,Ya)=>{"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=[];a<l;){if(y=r.indexOf(Kr,a),k=r.indexOf(Kt,a+1),y===-1&&(y=r.length),k===-1||k>y){if(F<hd)return;break}c.push(r.slice(a,y)),F++,a=y+1}for(o=c.join(Kr),i=c.splice(1,1)[0]||[],a=0,l=i.length,F--,u=!1,p=[];a<l;){if(D=i.charAt(a),D===Kt){if(h=null,u===!1){if(E===!1)return}else p.push(u),u=!1;E=!1}else if(D===fd)h=!0,u=u||null;else if(D===Dd)u===Ua?u=md:h&&u===null?u=gd:u=Ua;else if(!sd(D))return;a++}if(u!==!1&&p.push(u),!(p.length<dd)){if(n)return!0;for(x=-1,b=[],v=e(o).reset({type:"table",align:p,children:b});++x<F;){for(B=c[x],s={type:"tableRow",children:[]},x&&e(Kr),e(B).reset(s,v),l=B.length+1,a=0,f="",d="",m=!0;a<l;){if(D=B.charAt(a),D===cd||D===ld){d?f+=D:e(D),a++;continue}D===""||D===Kt?m?e(D):((d||D)&&!m&&(o=d,f.length>1&&(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<l;){if(s===-1){s=l;break}if(r.charAt(s+1)===mr)break;if(i){for(h=0,c=s+1;c<l;){if(D=r.charAt(c),D===bd){h=ja;break}else if(D===xd)h++;else break;c++}if(h>=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<i&&(c=r.charAt(u),!(eo(c)||c===Xt||c===to||c===":"&&r.charAt(u+1)===Qt));)o+=c,u++;if(o){if(l+=o,o="",c=r.charAt(u),l+=c,u++,c===to)s=!0;else{if(c!==":"||r.charAt(u+1)!==Qt)return;l+=Qt,u++}for(;u<i&&(c=r.charAt(u),!(eo(c)||c===Xt));)o+=c,u++;if(c=r.charAt(u),!(!o||c!==Xt))return n?!0:(l+=o,D=l,a+=l+c,f=e.now(),f.column++,f.offset++,s&&(l.slice(0,Jr).toLowerCase()===Zt?(D=D.slice(Jr),f.column+=Jr,f.offset+=Jr):l=Zt+l),h=t.inlineTokenizers,t.inlineTokenizers={text:h.text},p=t.enterLink(),D=t.tokenizeInline(D,f),t.inlineTokenizers=h,p(),e(a)({type:"link",title:null,url:qd(l,{nonTerminated:!1}),children:D}))}}}});var ao=C((SF,uo)=>{"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<a;)i=e.indexOf(oo[t],r),i!==-1&&(n===-1||i<n)&&(n=i);return n}});var ho=C((_F,po)=>{"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=[];D<u;){if(d=r.charCodeAt(D),d===tn){if(o===D-1)break;l.push(D),o=D,D++;continue}if(Ld(d)||rn(d)||d===Yd||d===fo){D++;continue}break}if(d===tn&&(l.pop(),D--),l[0]!==void 0&&(c=l.length<2?f:l[l.length-2]+1,r.slice(c,D).indexOf("_")===-1)){if(n)return!0;for(m=D,h=D;D<u&&(d=r.charCodeAt(D),!(Od(d)||d===Gd));)D++,d===Nd||d===Md||d===Ud||d===tn||d===Vd||d===$d||d===fo||d===Hd||(m=D);if(D=m,r.charCodeAt(D-1)===zd)for(p=r.slice(h,D),g=lo(p,Wd),x=lo(p,Do);x>g;)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<o;){if(l=r.charCodeAt(u),Eo(l)||Co(l)||l===un||l===Xr||l===an){u++,s===-1&&l===Xr&&(s=u);continue}break}if(!(s===-1||s===u||l===un||l===an))return l===Xr&&u--,c=r.slice(0,u),n?!0:(D=t.enterLink(),t.inlineTokenizers={text:i.text},f=t.tokenizeInline(c,e.now()),t.inlineTokenizers=i,D(),e(c)({type:"link",title:null,url:"mailto:"+rh(c,{nonTerminated:!1}),children:f}))}}}});var wo=C((IF,ko)=>{"use strict";var
`,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<B;){if(u=r.charAt(i),d=u,u===So){for(f=1;r.charAt(i+1)===So;)d+=u,i++,f++;D?f>=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<B&&(u=r.charAt(i),!!gr(u));)a+=u,i++;if(u=r.charAt(i),y="",h=a,u===cn){for(i++,h+=cn;i<B&&(u=r.charAt(i),u!==ln);){if(s&&u===mh)return;y+=u,i++}if(r.charAt(i)!==ln)return;a+=cn+y+ln,k=y,i++}else{for(u=null,d="";i<B&&(u=r.charAt(i),!(d&&(u===Bo||u===qo||s&&u===$e)));){if(gr(u)){if(!o)break;d+=u}else{if(u===$e)v++;else if(u===vr){if(v===0)break;v--}y+=d,d="",u===Fr&&(y+=Fr,u=r.charAt(++i)),y+=u}i++}a+=y,k=y,i=a.length}for(y="";i<B&&(u=r.charAt(i),!!gr(u));)y+=u,i++;if(u=r.charAt(i),a+=y,y&&(u===Bo||u===qo||s&&u===$e))if(i++,a+=u,y="",F=u===$e?vr:u,p=a,s){for(;i<B&&(u=r.charAt(i),u!==F);)u===Fr&&(y+=Fr,u=r.charAt(++i)),i++,y+=u;if(u=r.charAt(i),u!==F)return;for(b=y,a+=y+u,i++;i<B&&(u=r.charAt(i),!!gr(u));)a+=u,i++}else for(d="";i<B;){if(u=r.charAt(i),u===F)m&&(y+=F+d,d=""),m=!0;else if(!m)y+=u;else if(u===vr){a+=y+F+d,b=y;break}else gr(u)?d+=u:(y+=F+d+u,d="",m=!1);i++}if(r.charAt(i)===vr)return n?!0:(a+=vr,k=t.decode.raw(t.unescape(k),e(h).test().end,{nonTerminated:!1}),b&&(p=e(p).test().end,b=t.decode.raw(t.unescape(b),p)),A={type:g?"image":"link",title:b||null,url:k},g?A.alt=t.decode.raw(t.unescape(x),E)||null:(w=t.enterLink(),A.children=t.tokenizeInline(x,E),w()),e(a)(A))}}}});var No=C((zF,Io)=>{"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<o;){if(i=r.charAt(u),i===Qr)x=!0,F++;else if(i===et){if(!F)break;F--}i===Zr&&(g+=Zr,i=r.charAt(++u)),g+=i,u++}if(s=g,D=g,i=r.charAt(u),i===et){if(u++,s+=i,g="",!a)for(;u<o&&(i=r.charAt(u),!!Fh(i));)g+=i,u++;if(i=r.charAt(u),i===Qr){for(h="",g+=i,u++;u<o&&(i=r.charAt(u),!(i===Qr||i===et));)i===Zr&&(h+=Zr,i=r.charAt(++u)),h+=i,u++;i=r.charAt(u),i===et?(f=h?Dn:yh,g+=h+i,u++):h="",s+=g,g=""}else{if(!D)return;h=D}if(!(f!==Dn&&x))return s=l+s,c===fn&&t.inLink?null:n?!0:(p=e.now(),p.column+=l.length,p.offset+=l.length,h=f===Dn?h:D,d={type:c+"Reference",identifier:Ch(h),label:h,referenceType:f},c===fn?(m=t.enterLink(),d.children=t.tokenizeInline(D,p),m()):d.alt=t.decode.raw(t.unescape(D),p)||null,e(s)(d))}}}});var zo=C((MF,Ro)=>{"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<n?t:n}});var Vo=C((UF,Yo)=>{"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<f;){if(D=i,i=r.charAt(a),i===s&&r.charAt(a+1)===s&&(!o||!Mo(D))&&(i=r.charAt(a+2),i!==s))return Ah(l)?n?!0:(u=e.now(),u.column+=2,u.offset+=2,e(c+l+c)({type:"strong",children:t.tokenizeInline(l,u)})):void 0;!o&&i===qh&&(l+=i,i=r.charAt(++a)),l+=i,a++}}});var $o=C((YF,jo)=>{"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<n?t:n}});var Qo=C((jF,Xo)=>{"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
`,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<t;){if(u=r.charAt(a),u===Wh)return a<Kh?void 0:n?!0:(i+=u,e(i)({type:"break"}));if(u!==Hh)return;i+=u}}});var gs=C((XF,ms)=>{"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<o;)f=a[u],!(f==="text"||!i[f])&&(c=i[f].locator,c||e.file.fail("Missing locator: `"+f+"`"),l=c.call(t,r,1),l!==-1&&l<D&&(D=l));s=r.slice(0,D),h=e.now(),t.decode(s,h,p);function p(d,m,g){e(g||d)({type:"text",value:d})}}});var Cs=C((QF,Es)=>{"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<l;++s)if(r=arguments[s],r!=null)for(n in r)t=Ls(o,n),a=Ls(r,n),o!==a&&(c&&a&&(Ps(a)||(i=Ss(a)))?(i?(i=!1,u=t&&Ss(t)?t:[]):u=t&&Ps(t)?t:{},_s(o,{name:n,newValue:e(c,u,a)})):typeof a<"u"&&_s(o,{name:n,newValue:a}));return o}});var zs=C((nE,Rs)=>{"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 s
`,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(;f<c&&s.charCodeAt(f)===br;)f++;for(m=f;f<c&&s.charCodeAt(f)===Bn;)f++;if(g=f-m,!(g<Xm)){for(;f<c&&s.charCodeAt(f)===br;)f++;for(x=f;f<c;){if(D=s.charCodeAt(f),D===Bn)return;if(D===Ac)break;f++}if(s.charCodeAt(f)===Ac){if(l)return!0;for(h=[],x!==f&&h.push(s.slice(x,f)),f++,p=s.indexOf(Bc,f+1),p=p===-1?c:p;f<c;){for(F=!1,b=f,v=p,d=p,B=0;d>b&&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-f<m&&s.charCodeAt(b)===br;)b++;if(F)for(;v>b&&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;++f<D;)h=u[f],!(h==="newline"||h==="indentedCode"||h==="paragraph"||h==="footnoteDefinition")&&c.push([h]);c.push(["footnoteDefinition"]),n.inlineNotes&&(Tn(o,"reference","inlineNote"),i.inlineNote=m),Tn(u,"definition","footnoteDefinition"),Tn(o,"reference","footnoteCall"),a.definition=x,a.footnoteDefinition=p,i.footnoteCall=d,i.reference=g,t.interruptFootnoteDefinition=c,g.locator=l.locator,d.locator=F,m.locator=B;function p(b,v,y){for(var k=this,E=k.interruptFootnoteDefinition,w=k.offset,A=v.length+1,q=0,T=[],N,_,P,S,L,we,j,I,J,K,me,ge,M;q<A&&(S=v.charCodeAt(q),!(S!==xr&&S!==We));)q++;if(v.charCodeAt(q++)===Ke&&v.charCodeAt(q++)===yr){for(_=q;q<A;){if(S=v.charCodeAt(q),S!==S||S===ot||S===xr||S===We)return;if(S===qn){P=q,q++;break}q++}if(!(P===void 0||_===P||v.charCodeAt(q++)!==ag)){if(y)return!0;for(N=v.slice(_,P),L=b.now(),J=0,K=0,me=q,ge=[];q<A;){if(S=v.charCodeAt(q),S!==S||S===ot)M={start:J,contentStart:me||q,contentEnd:q,end:q},ge.push(M),S===ot&&(J=q+1,K=0,me=void 0,M.end=J);else if(K!==void 0)if(S===We||S===xr)K+=S===We?1:ct-K%ct,K>ct&&(K=void 0,me=q);else{if(K<ct&&M&&(M.contentStart===M.contentEnd||dg(E,a,k,[b,v.slice(q,sg),!0])))break;K=void 0,me=q}q++}for(q=-1,A=ge.length;A>0&&(M=ge[A-1],M.contentStart===M.contentEnd);)A--;for(we=b(v.slice(0,M.contentEnd));++q<A;)M=ge[q],w[L.line+q]=(w[L.line+q]||0)+(M.contentStart-M.start),T.push(v.slice(M.contentStart,M.end));return j=k.enterBlock(),I=k.tokenizeBlock(T.join(""),L),j(),we({type:"footnoteDefinition",identifier:N.toLowerCase(),label:N,children:I})}}}function d(b,v,y){var k=v.length+1,E=0,w,A,q,T;if(v.charCodeAt(E++)===Ke&&v.charCodeAt(E++)===yr){for(A=E;E<k;){if(T=v.charCodeAt(E),T!==T||T===ot||T===xr||T===We)return;if(T===qn){q=E,E++;break}E++}if(!(q===void 0||A===q))return y?!0:(w=v.slice(A,q),b(v.slice(0,E))({type:"footnoteReference",identifier:w.toLowerCase(),label:w}))}}function m(b,v,y){var k=this,E=v.length+1,w=0,A=0,q,T,N,_,P,S,L;if(v.charCodeAt(w++)===yr&&v.charCodeAt(w++)===Ke){for(N=w;w<E;){if(T=v.charCodeAt(w),T!==T)return;if(S===void 0)if(T===og)w+=2;else if(T===Ke)A++,w++;else if(T===qn)if(A===0){_=w,w++;break}else A--,w++;else if(T===st){for(P=w,S=1;v.charCodeAt(P+S)===st;)S++;w+=S}else w++;else if(T===st){for(P=w,L=1;v.charCodeAt(P+L)===st;)L++;w+=L,S===L&&(S=void 0),L=void 0}else w++}if(_!==void 0)return y?!0:(q=b.now(),q.column+=2,q.offset+=2,b(v.slice(0,w))({type:"footnote",children:k.tokenizeInline(v.slice(N,_),q)}))}}function g(b,v,y){var k=0;if(v.charCodeAt(k)===ug&&k++,v.charCodeAt(k)===Ke&&v.charCodeAt(k+1)!==yr)return l.call(this,b,v,y)}function x(b,v,y){for(var k=0,E=v.charCodeAt(k);E===We||E===xr;)E=v.charCodeAt(++k);if(E===Ke&&v.charCodeAt(k+1)!==yr)return s.call(this,b,v,y)}function F(b,v){return b.indexOf("[",v)}function B(b,v){return b.indexOf("^[",v)}}function pg(e){var r=e.prototype.visitors,n=" ";r.footnote=t,r.footnoteReference=a,r.footnoteDefinition=i;function t(u){return"^["+this.all(u).join("")+"]"}function a(u){return"[^"+(u.label||u.identifier)+"]"}function i(u){for(var o=this.all(u).join(`
`).split(`
`),s=0,l=o.length,c;++s<l;)c=o[s],c!==""&&(o[s]=n+c);return"[^"+(u.label||u.identifier)+"]: "+o.join(`
`)}}function Tn(e,r,n){e.splice(e.indexOf(r),0,n)}function dg(e,r,n,t){for(var a=e.length,i=-1;++i<a;)if(r[e[i][0]].apply(n,t))return!0;return!1}});var Ag={};Ln(Ag,{languages:()=>Qc,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;i<a;i++)if(!t.get(i))return i;return a+1}var Nn=cl;function ll(e,r){let n=e.match(new RegExp(`(${Je(r)})+`,"g"));return n===null?0:n.reduce((t,a)=>Math.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]|
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<r.length;t++)t!==0&&n.push(e),n.push(r[t]);return n}var Wn=e=>{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+1;F++)if(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-\\ud88
`:" "});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("^(?<startDelimiter>-{3}|\\+{3})(?<language>[^\\n]*)\\n(?:|(?<value>.*?)\\n)(?<endDelimiter>\\k<startDelimiter>|\\.{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*${r}\\s*-->`,`{\\s*\\/\\*\\s*${r}\\s*\\*\\/\\s*}`,`<!--.*\r?
[\\s\\S]*(^|
)[^\\S
]*${r}[^\\S
]*($|
)[\\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=`<!-- @${ci[0]} -->`;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<a.length;u++){let o=a[u];if(o.hasIndentedCodeblock)break;o.type==="list"&&(o.hasIndentedCodeblock=!0)}}return n})}function Il(e,r){return be(e,(a,i,u)=>{if(a.type==="list"&&a.children.length>0){for(let o=0;o<u.length;o++){let s=u[o];if(s.type==="list"&&!s.isAligned)return a.isAligned=!1,a}a.isAligned=t(a)}return a});function n(a){return a.children.length===0?-1:a.children[0].position.start.column-1}function t(a){if(!a.ordered)return!0;let[i,u]=a.children;if(Re(i,r.originalText).leadingSpaces.length>1)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;t<n.length-1;++t){let a=n[t];if(a.type==="whitespace"&&(a.value===" "||a.value==="")){let i=n[t-1].kind,u=n[t+1].kind;(i===De&&u===Pe||i===Pe&&u===De)&&++r[a.value]}}e.usesCJSpaces=r[" "]>r[""]}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==="l
`)}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 e<r?r:e>n?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=/^\[\[(?<linkContents>.+?)]]/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);});