;tr.parseLinkDestination=kn();tr.parseLinkTitle=An()});var En=v((_u,Cn)=>{"use strict";var bs=N().assign,xs=N().unescapeAll,_e=N().escapeHtml,ie={};ie.code_inline=function(t,e,r,n,i){var o=t[e];return""+_e(t[e].content)+""};ie.code_block=function(t,e,r,n,i){var o=t[e];return"`"+_e(t[e].content)+`` `};ie.fence=function(t,e,r,n,i){var o=t[e],s=o.info?xs(o.info).trim():"",a="",l="",u,f,p,d,h;return s&&(p=s.split(/(\s+)/g),a=p[0],l=p.slice(2).join("")),r.highlight?u=r.highlight(o.content,a,l)||_e(o.content):u=_e(o.content),u.indexOf(""+u+` `):"

    "+u+`

`};ie.image=function(t,e,r,n,i){var o=t[e];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,r,n),i.renderToken(t,e,r)};ie.hardbreak=function(t,e,r){return r.xhtmlOut?`
`:`
`};ie.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?`
`:`
`:` `};ie.text=function(t,e){return _e(t[e].content)};ie.html_block=function(t,e){return t[e].content};ie.html_inline=function(t,e){return t[e].content};function De(){this.rules=bs({},ie)}De.prototype.renderAttrs=function(e){var r,n,i;if(!e.attrs)return"";for(i="",r=0,n=e.attrs.length;r `:">",o)};De.prototype.renderInline=function(t,e,r){for(var n,i="",o=this.rules,s=0,a=t.length;s{"use strict";function ee(){this.__rules__=[],this.__cache__=null}ee.prototype.__find__=function(t){for(var e=0;e{"use strict";var ks=/\r\n?|\n/g,vs=/\0/g;Dn.exports=function(e){var r;r=e.src.replace(ks,` `),r=r.replace(vs,"\uFFFD"),e.src=r}});var qn=v((xu,Sn)=>{"use strict";Sn.exports=function(e){var r;e.inlineMode?(r=new e.Token("inline","",0),r.content=e.src,r.map=[0,1],r.children=[],e.tokens.push(r)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}});var Rn=v((ku,Fn)=>{"use strict";Fn.exports=function(e){var r=e.tokens,n,i,o;for(i=0,o=r.length;i{"use strict";var As=N().arrayReplaceAt;function ys(t){return/^\s]/i.test(t)}function Cs(t){return/^<\/a\s*>/i.test(t)}Mn.exports=function(e){var r,n,i,o,s,a,l,u,f,p,d,h,y,_,C,E,x=e.tokens,D;if(e.md.options.linkify){for(n=0,i=x.length;n=0;r--){if(a=o[r],a.type==="link_close"){for(r--;o[r].level!==a.level&&o[r].type!=="link_open";)r--;continue}if(a.type==="html_inline"&&(ys(a.content)&&y>0&&y--,Cs(a.content)&&y++),!(y>0)&&a.type==="text"&&e.md.linkify.test(a.content)){for(f=a.content,D=e.md.linkify.match(f),l=[],h=a.level,d=0,u=0;ud&&(s=new e.Token("text","",0),s.content=f.slice(d,p),s.level=h,l.push(s)),s=new e.Token("link_open","a",1),s.attrs=[["href",C]],s.level=h++,s.markup="linkify",s.info="auto",l.push(s),s=new e.Token("text","",0),s.content=E,s.level=h,l.push(s),s=new e.Token("link_close","a",-1),s.level=--h,s.markup="linkify",s.info="auto",l.push(s),d=D[u].lastIndex);d{"use strict";var Ln=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Es=/\((c|tm|r|p)\)/i,ws=/\((c|tm|r|p)\)/ig,Ds={c:"\xA9",r:"\xAE",p:"\xA7",tm:"\u2122"};function Ts(t,e){return Ds[e.toLowerCase()]}function Ss(t){var e,r,n=0;for(e=t.length-1;e>=0;e--)r=t[e],r.type==="text"&&!n&&(r.content=r.content.replace(ws,Ts)),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}function qs(t){var e,r,n=0;for(e=t.length-1;e>=0;e--)r=t[e],r.type==="text"&&!n&&Ln.test(r.content)&&(r.content=r.content.replace(/\+-/g,"\xB1").replace(/\.{2,}/g,"\u2026").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1\u2014").replace(/(^|\s)--(?=\s|$)/mg,"$1\u2013").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1\u2013")),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}On.exports=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)e.tokens[r].type==="inline"&&(Es.test(e.tokens[r].content)&&Ss(e.tokens[r].children),Ln.test(e.tokens[r].content)&&qs(e.tokens[r].children))}});var jn=v((yu,Gn)=>{"use strict";var zn=N().isWhiteSpace,Pn=N().isPunctChar,Bn=N().isMdAsciiPunct,Fs=/['"]/,Un=/['"]/g,Hn="\u2019";function ir(t,e,r){return t.substr(0,e)+r+t.substr(e+1)}function Rs(t,e){var r,n,i,o,s,a,l,u,f,p,d,h,y,_,C,E,x,D,S,R,A;for(S=[],r=0;r=0&&!(S[x].level<=l);x--);if(S.length=x+1,n.type==="text"){i=n.content,s=0,a=i.length;e:for(;s=0)f=i.charCodeAt(o.index-1);else for(x=r-1;x>=0&&!(t[x].type==="softbreak"||t[x].type==="hardbreak");x--)if(t[x].content){f=t[x].content.charCodeAt(t[x].content.length-1);break}if(p=32,s=48&&f<=57&&(E=C=!1),C&&E&&(C=d,E=h),!C&&!E){D&&(n.content=ir(n.content,o.index,Hn));continue}if(E){for(x=S.length-1;x>=0&&(u=S[x],!(S[x].level=0;r--)e.tokens[r].type!=="inline"||!Fs.test(e.tokens[r].content)||Rs(e.tokens[r].children,e)}});var or=v((Cu,Vn)=>{"use strict";function Te(t,e,r){this.type=t,this.tag=e,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Te.prototype.attrIndex=function(e){var r,n,i;if(!this.attrs)return-1;for(r=this.attrs,n=0,i=r.length;n=0&&(n=this.attrs[r][1]),n};Te.prototype.attrJoin=function(e,r){var n=this.attrIndex(e);n<0?this.attrPush([e,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};Vn.exports=Te});var Wn=v((Eu,Zn)=>{"use strict";var Ms=or();function $n(t,e,r){this.src=t,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=e}$n.prototype.Token=Ms;Zn.exports=$n});var Jn=v((wu,Yn)=>{"use strict";var Is=nr(),Hr=[["normalize",Tn()],["block",qn()],["inline",Rn()],["linkify",In()],["replacements",Nn()],["smartquotes",jn()]];function Gr(){this.ruler=new Is;for(var t=0;t{"use strict";var jr=N().isSpace;function Vr(t,e){var r=t.bMarks[e]+t.tShift[e],n=t.eMarks[e];return t.src.substr(r,n-r)}function Kn(t){var e=[],r=0,n=t.length,i,o=!1,s=0,a="";for(i=t.charCodeAt(r);rn||(f=r+1,e.sCount[f]=4||(a=e.bMarks[f]+e.tShift[f],a>=e.eMarks[f])||(R=e.src.charCodeAt(a++),R!==124&&R!==45&&R!==58)||a>=e.eMarks[f]||(A=e.src.charCodeAt(a++),A!==124&&A!==45&&A!==58&&!jr(A))||R===45&&jr(A))return!1;for(;a=4||(p=Kn(s),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),d=p.length,d===0||d!==y.length))return!1;if(i)return!0;for(x=e.parentType,e.parentType="table",S=e.md.block.ruler.getRules("blockquote"),h=e.push("table_open","table",1),h.map=C=[r,0],h=e.push("thead_open","thead",1),h.map=[r,r+1],h=e.push("tr_open","tr",1),h.map=[r,r+1],l=0;l=4)break;for(p=Kn(s),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),f===r+2&&(h=e.push("tbody_open","tbody",1),h.map=E=[r+2,0]),h=e.push("tr_open","tr",1),h.map=[f,f+1],l=0;l{"use strict";ei.exports=function(e,r,n){var i,o,s;if(e.sCount[r]-e.blkIndent<4)return!1;for(o=i=r+1;i=4){i++,o=i;continue}break}return e.line=o,s=e.push("code_block","code",0),s.content=e.getLines(r,o,4+e.blkIndent,!1)+` `,s.map=[r,e.line],!0}});var ni=v((Su,ti)=>{"use strict";ti.exports=function(e,r,n,i){var o,s,a,l,u,f,p,d=!1,h=e.bMarks[r]+e.tShift[r],y=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||h+3>y||(o=e.src.charCodeAt(h),o!==126&&o!==96)||(u=h,h=e.skipChars(h,o),s=h-u,s<3)||(p=e.src.slice(u,h),a=e.src.slice(h,y),o===96&&a.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(l=r;l++,!(l>=n||(h=u=e.bMarks[l]+e.tShift[l],y=e.eMarks[l],h=4)&&(h=e.skipChars(h,o),!(h-u{"use strict";var ii=N().isSpace;oi.exports=function(e,r,n,i){var o,s,a,l,u,f,p,d,h,y,_,C,E,x,D,S,R,A,M,P,fe=e.lineMax,I=e.bMarks[r]+e.tShift[r],L=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(I++)!==62)return!1;if(i)return!0;for(l=h=e.sCount[r]+1,e.src.charCodeAt(I)===32?(I++,l++,h++,o=!1,S=!0):e.src.charCodeAt(I)===9?(S=!0,(e.bsCount[r]+h)%4===3?(I++,l++,h++,o=!1):o=!0):S=!1,y=[e.bMarks[r]],e.bMarks[r]=I;I=L,x=[e.sCount[r]],e.sCount[r]=h-l,D=[e.tShift[r]],e.tShift[r]=I-e.bMarks[r],A=e.md.block.ruler.getRules("blockquote"),E=e.parentType,e.parentType="blockquote",d=r+1;d=L));d++){if(e.src.charCodeAt(I++)===62&&!P){for(l=h=e.sCount[d]+1,e.src.charCodeAt(I)===32?(I++,l++,h++,o=!1,S=!0):e.src.charCodeAt(I)===9?(S=!0,(e.bsCount[d]+h)%4===3?(I++,l++,h++,o=!1):o=!0):S=!1,y.push(e.bMarks[d]),e.bMarks[d]=I;I=L,_.push(e.bsCount[d]),e.bsCount[d]=e.sCount[d]+1+(S?1:0),x.push(e.sCount[d]),e.sCount[d]=h-l,D.push(e.tShift[d]),e.tShift[d]=I-e.bMarks[d];continue}if(f)break;for(R=!1,a=0,u=A.length;a",M.map=p=[r,0],e.md.block.tokenize(e,r,d),M=e.push("blockquote_close","blockquote",-1),M.markup=">",e.lineMax=fe,e.parentType=E,p[1]=e.line,a=0;a{"use strict";var Ls=N().isSpace;si.exports=function(e,r,n,i){var o,s,a,l,u=e.bMarks[r]+e.tShift[r],f=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(o=e.src.charCodeAt(u++),o!==42&&o!==45&&o!==95))return!1;for(s=1;u{"use strict";var fi=N().isSpace;function ui(t,e){var r,n,i,o;return n=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],r=t.src.charCodeAt(n++),r!==42&&r!==45&&r!==43||n=o||(r=t.src.charCodeAt(i++),r<48||r>57))return-1;for(;;){if(i>=o)return-1;if(r=t.src.charCodeAt(i++),r>=48&&r<=57){if(i-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return i=4||e.listIndent>=0&&e.sCount[r]-e.listIndent>=4&&e.sCount[r]=e.blkIndent&&(Fe=!0),(L=ci(e,r))>=0){if(p=!0,xe=e.bMarks[r]+e.tShift[r],E=Number(e.src.slice(xe,L-1)),Fe&&E!==1)return!1}else if((L=ui(e,r))>=0)p=!1;else return!1;if(Fe&&e.skipSpaces(L)>=e.eMarks[r])return!1;if(C=e.src.charCodeAt(L-1),i)return!0;for(_=e.tokens.length,p?(z=e.push("ordered_list_open","ol",1),E!==1&&(z.attrs=[["start",E]])):z=e.push("bullet_list_open","ul",1),z.map=y=[r,0],z.markup=String.fromCharCode(C),D=r,qe=!1,pe=e.md.block.ruler.getRules("list"),A=e.parentType,e.parentType="list";D=x?u=1:u=S-f,u>4&&(u=1),l=f+u,z=e.push("list_item_open","li",1),z.markup=String.fromCharCode(C),z.map=d=[r,0],p&&(z.info=e.src.slice(xe,L-1)),fe=e.tight,P=e.tShift[r],M=e.sCount[r],R=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=l,e.tight=!0,e.tShift[r]=s-e.bMarks[r],e.sCount[r]=S,s>=x&&e.isEmpty(r+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,r,n,!0),(!e.tight||qe)&&(q=!1),qe=e.line-r>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=R,e.tShift[r]=P,e.sCount[r]=M,e.tight=fe,z=e.push("list_item_close","li",-1),z.markup=String.fromCharCode(C),D=r=e.line,d[1]=D,s=e.bMarks[r],D>=n||e.sCount[D]=4)break;for(H=!1,a=0,h=pe.length;a{"use strict";var Ns=N().normalizeReference,ar=N().isSpace;di.exports=function(e,r,n,i){var o,s,a,l,u,f,p,d,h,y,_,C,E,x,D,S,R=0,A=e.bMarks[r]+e.tShift[r],M=e.eMarks[r],P=r+1;if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(A)!==91)return!1;for(;++A3)&&!(e.sCount[P]<0)){for(x=!1,f=0,p=D.length;f"u"&&(e.env.references={}),typeof e.env.references[d]>"u"&&(e.env.references[d]={title:S,href:u}),e.parentType=y,e.line=r+R+1),!0)}});var gi=v((Iu,_i)=>{"use strict";_i.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","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var Zr=v((Lu,$r)=>{"use strict";var zs="[a-zA-Z_:][a-zA-Z0-9:._-]*",Ps="[^\"'=<>`\\x00-\\x20]+",Bs="'[^']*'",Us='"[^"]*"',Hs="(?:"+Ps+"|"+Bs+"|"+Us+")",Gs="(?:\\s+"+zs+"(?:\\s*=\\s*"+Hs+")?)",bi="<[A-Za-z][A-Za-z0-9\\-]*"+Gs+"*\\s*\\/?>",xi="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",js="|",Vs="<[?][\\s\\S]*?[?]>",$s="]*>",Zs="",Ws=new RegExp("^(?:"+bi+"|"+xi+"|"+js+"|"+Vs+"|"+$s+"|"+Zs+")"),Ys=new RegExp("^(?:"+bi+"|"+xi+")");$r.exports.HTML_TAG_RE=Ws;$r.exports.HTML_OPEN_CLOSE_TAG_RE=Ys});var vi=v((Ou,ki)=>{"use strict";var Js=gi(),Ks=Zr().HTML_OPEN_CLOSE_TAG_RE,Se=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(Ks.source+"\\s*$"),/^$/,!1]];ki.exports=function(e,r,n,i){var o,s,a,l,u=e.bMarks[r]+e.tShift[r],f=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(u)!==60)return!1;for(l=e.src.slice(u,f),o=0;o{"use strict";var Ai=N().isSpace;yi.exports=function(e,r,n,i){var o,s,a,l,u=e.bMarks[r]+e.tShift[r],f=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(o=e.src.charCodeAt(u),o!==35||u>=f))return!1;for(s=1,o=e.src.charCodeAt(++u);o===35&&u6||uu&&Ai(e.src.charCodeAt(a-1))&&(f=a),e.line=r+1,l=e.push("heading_open","h"+String(s),1),l.markup="########".slice(0,s),l.map=[r,e.line],l=e.push("inline","",0),l.content=e.src.slice(u,f).trim(),l.map=[r,e.line],l.children=[],l=e.push("heading_close","h"+String(s),-1),l.markup="########".slice(0,s)),!0)}});var wi=v((zu,Ei)=>{"use strict";Ei.exports=function(e,r,n){var i,o,s,a,l,u,f,p,d,h=r+1,y,_=e.md.block.ruler.getRules("paragraph");if(e.sCount[r]-e.blkIndent>=4)return!1;for(y=e.parentType,e.parentType="paragraph";h3)){if(e.sCount[h]>=e.blkIndent&&(u=e.bMarks[h]+e.tShift[h],f=e.eMarks[h],u=f)))){p=d===61?1:2;break}if(!(e.sCount[h]<0)){for(o=!1,s=0,a=_.length;s{"use strict";Di.exports=function(e,r){var n,i,o,s,a,l,u=r+1,f=e.md.block.ruler.getRules("paragraph"),p=e.lineMax;for(l=e.parentType,e.parentType="paragraph";u3)&&!(e.sCount[u]<0)){for(i=!1,o=0,s=f.length;o{"use strict";var Si=or(),sr=N().isSpace;function oe(t,e,r,n){var i,o,s,a,l,u,f,p;for(this.src=t,this.md=e,this.env=r,this.tokens=n,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",o=this.src,p=!1,s=a=u=f=0,l=o.length;a0&&this.level++,this.tokens.push(n),n};oe.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};oe.prototype.skipEmptyLines=function(e){for(var r=this.lineMax;er;)if(!sr(this.src.charCodeAt(--e)))return e+1;return e};oe.prototype.skipChars=function(e,r){for(var n=this.src.length;en;)if(r!==this.src.charCodeAt(--e))return e+1;return e};oe.prototype.getLines=function(e,r,n,i){var o,s,a,l,u,f,p,d=e;if(e>=r)return"";for(f=new Array(r-e),o=0;dn?f[o]=new Array(s-n+1).join(" ")+this.src.slice(l,u):f[o]=this.src.slice(l,u)}return f.join("")};oe.prototype.Token=Si;qi.exports=oe});var Mi=v((Uu,Ri)=>{"use strict";var Xs=nr(),lr=[["table",Qn(),["paragraph","reference"]],["code",ri()],["fence",ni(),["paragraph","reference","blockquote","list"]],["blockquote",ai(),["paragraph","reference","blockquote","list"]],["hr",li(),["paragraph","reference","blockquote","list"]],["list",hi(),["paragraph","reference","blockquote"]],["reference",mi()],["html_block",vi(),["paragraph","reference","blockquote"]],["heading",Ci(),["paragraph","reference","blockquote"]],["lheading",wi()],["paragraph",Ti()]];function ur(){this.ruler=new Xs;for(var t=0;t=r||t.sCount[a]=u){t.line=r;break}for(i=0;i{"use strict";function Qs(t){switch(t){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}Ii.exports=function(e,r){for(var n=e.pos;n{"use strict";var el=N().isSpace;Oi.exports=function(e,r){var n,i,o,s=e.pos;if(e.src.charCodeAt(s)!==10)return!1;if(n=e.pending.length-1,i=e.posMax,!r)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){for(o=n-1;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(s++;s{"use strict";var rl=N().isSpace,Yr=[];for(Wr=0;Wr<256;Wr++)Yr.push(0);var Wr;"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){Yr[t.charCodeAt(0)]=1});zi.exports=function(e,r){var n,i=e.pos,o=e.posMax;if(e.src.charCodeAt(i)!==92)return!1;if(i++,i{"use strict";Bi.exports=function(e,r){var n,i,o,s,a,l,u,f,p=e.pos,d=e.src.charCodeAt(p);if(d!==96)return!1;for(n=p,p++,i=e.posMax;p{"use strict";Jr.exports.tokenize=function(e,r){var n,i,o,s,a,l=e.pos,u=e.src.charCodeAt(l);if(r||u!==126||(i=e.scanDelims(e.pos,!0),s=i.length,a=String.fromCharCode(u),s<2))return!1;for(s%2&&(o=e.push("text","",0),o.content=a,s--),n=0;n{"use strict";Xr.exports.tokenize=function(e,r){var n,i,o,s=e.pos,a=e.src.charCodeAt(s);if(r||a!==95&&a!==42)return!1;for(i=e.scanDelims(e.pos,a===42),n=0;n=0;r--)n=e[r],!(n.marker!==95&&n.marker!==42)&&n.end!==-1&&(i=e[n.end],a=r>0&&e[r-1].end===n.end+1&&e[r-1].marker===n.marker&&e[r-1].token===n.token-1&&e[n.end+1].token===i.token+1,s=String.fromCharCode(n.marker),o=t.tokens[n.token],o.type=a?"strong_open":"em_open",o.tag=a?"strong":"em",o.nesting=1,o.markup=a?s+s:s,o.content="",o=t.tokens[i.token],o.type=a?"strong_close":"em_close",o.tag=a?"strong":"em",o.nesting=-1,o.markup=a?s+s:s,o.content="",a&&(t.tokens[e[r-1].token].content="",t.tokens[e[n.end+1].token].content="",r--))}Xr.exports.postProcess=function(e){var r,n=e.tokens_meta,i=e.tokens_meta.length;for(Gi(e,e.delimiters),r=0;r{"use strict";var tl=N().normalizeReference,et=N().isSpace;ji.exports=function(e,r){var n,i,o,s,a,l,u,f,p,d="",h="",y=e.pos,_=e.posMax,C=e.pos,E=!0;if(e.src.charCodeAt(e.pos)!==91||(a=e.pos+1,s=e.md.helpers.parseLinkLabel(e,e.pos,!0),s<0))return!1;if(l=s+1,l<_&&e.src.charCodeAt(l)===40){for(E=!1,l++;l<_&&(i=e.src.charCodeAt(l),!(!et(i)&&i!==10));l++);if(l>=_)return!1;if(C=l,u=e.md.helpers.parseLinkDestination(e.src,l,e.posMax),u.ok){for(d=e.md.normalizeLink(u.str),e.md.validateLink(d)?l=u.pos:d="",C=l;l<_&&(i=e.src.charCodeAt(l),!(!et(i)&&i!==10));l++);if(u=e.md.helpers.parseLinkTitle(e.src,l,e.posMax),l<_&&C!==l&&u.ok)for(h=u.str,l=u.pos;l<_&&(i=e.src.charCodeAt(l),!(!et(i)&&i!==10));l++);}(l>=_||e.src.charCodeAt(l)!==41)&&(E=!0),l++}if(E){if(typeof e.env.references>"u")return!1;if(l<_&&e.src.charCodeAt(l)===91?(C=l+1,l=e.md.helpers.parseLinkLabel(e,l),l>=0?o=e.src.slice(C,l++):l=s+1):l=s+1,o||(o=e.src.slice(a,s)),f=e.env.references[tl(o)],!f)return e.pos=y,!1;d=f.href,h=f.title}return r||(e.pos=a,e.posMax=s,p=e.push("link_open","a",1),p.attrs=n=[["href",d]],h&&n.push(["title",h]),e.md.inline.tokenize(e),p=e.push("link_close","a",-1)),e.pos=l,e.posMax=_,!0}});var Zi=v((Yu,$i)=>{"use strict";var nl=N().normalizeReference,rt=N().isSpace;$i.exports=function(e,r){var n,i,o,s,a,l,u,f,p,d,h,y,_,C="",E=e.pos,x=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(l=e.pos+2,a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),a<0))return!1;if(u=a+1,u=x)return!1;for(_=u,p=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),p.ok&&(C=e.md.normalizeLink(p.str),e.md.validateLink(C)?u=p.pos:C=""),_=u;u=x||e.src.charCodeAt(u)!==41)return e.pos=E,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u=0?s=e.src.slice(_,u++):u=a+1):u=a+1,s||(s=e.src.slice(l,a)),f=e.env.references[nl(s)],!f)return e.pos=E,!1;C=f.href,d=f.title}return r||(o=e.src.slice(l,a),e.md.inline.parse(o,e.md,e.env,y=[]),h=e.push("image","img",0),h.attrs=n=[["src",C],["alt",""]],h.children=y,h.content=o,d&&n.push(["title",d])),e.pos=u,e.posMax=x,!0}});var Yi=v((Ju,Wi)=>{"use strict";var il=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,ol=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;Wi.exports=function(e,r){var n,i,o,s,a,l,u=e.pos;if(e.src.charCodeAt(u)!==60)return!1;for(a=e.pos,l=e.posMax;;){if(++u>=l||(s=e.src.charCodeAt(u),s===60))return!1;if(s===62)break}return n=e.src.slice(a+1,u),ol.test(n)?(i=e.md.normalizeLink(n),e.md.validateLink(i)?(r||(o=e.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=e.push("text","",0),o.content=e.md.normalizeLinkText(n),o=e.push("link_close","a",-1),o.markup="autolink",o.info="auto"),e.pos+=n.length+2,!0):!1):il.test(n)?(i=e.md.normalizeLink("mailto:"+n),e.md.validateLink(i)?(r||(o=e.push("link_open","a",1),o.attrs=[["href",i]],o.markup="autolink",o.info="auto",o=e.push("text","",0),o.content=e.md.normalizeLinkText(n),o=e.push("link_close","a",-1),o.markup="autolink",o.info="auto"),e.pos+=n.length+2,!0):!1):!1}});var Ki=v((Ku,Ji)=>{"use strict";var al=Zr().HTML_TAG_RE;function sl(t){var e=t|32;return e>=97&&e<=122}Ji.exports=function(e,r){var n,i,o,s,a=e.pos;return!e.md.options.html||(o=e.posMax,e.src.charCodeAt(a)!==60||a+2>=o)||(n=e.src.charCodeAt(a+1),n!==33&&n!==63&&n!==47&&!sl(n))||(i=e.src.slice(a).match(al),!i)?!1:(r||(s=e.push("html_inline","",0),s.content=e.src.slice(a,a+i[0].length)),e.pos+=i[0].length,!0)}});var ro=v((Xu,eo)=>{"use strict";var Xi=Nr(),ll=N().has,ul=N().isValidEntityCode,Qi=N().fromCodePoint,cl=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,fl=/^&([a-z][a-z0-9]{1,31});/i;eo.exports=function(e,r){var n,i,o,s=e.pos,a=e.posMax;if(e.src.charCodeAt(s)!==38)return!1;if(s+1{"use strict";function to(t,e){var r,n,i,o,s,a,l,u,f={},p=e.length;if(p){var d=0,h=-2,y=[];for(r=0;rs;n-=y[n]+1)if(o=e[n],o.marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3!==0||i.length%3!==0)&&(l=!0),!l)){u=n>0&&!e[n-1].open?y[n-1]+1:0,y[r]=r-n+u,y[n]=u,i.open=!1,o.end=r,o.close=!1,a=-1,h=-2;break}a!==-1&&(f[i.marker][(i.open?3:0)+(i.length||0)%3]=a)}}}no.exports=function(e){var r,n=e.tokens_meta,i=e.tokens_meta.length;for(to(e,e.delimiters),r=0;r{"use strict";oo.exports=function(e){var r,n,i=0,o=e.tokens,s=e.tokens.length;for(r=n=0;r0&&i++,o[r].type==="text"&&r+1{"use strict";var tt=or(),so=N().isWhiteSpace,lo=N().isPunctChar,uo=N().isMdAsciiPunct;function ze(t,e,r,n){this.src=t,this.env=r,this.md=e,this.tokens=n,this.tokens_meta=Array(n.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1}ze.prototype.pushPending=function(){var t=new tt("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};ze.prototype.push=function(t,e,r){this.pending&&this.pushPending();var n=new tt(t,e,r),i=null;return r<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),n.level=this.level,r>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n};ze.prototype.scanDelims=function(t,e){var r=t,n,i,o,s,a,l,u,f,p,d=!0,h=!0,y=this.posMax,_=this.src.charCodeAt(t);for(n=t>0?this.src.charCodeAt(t-1):32;r{"use strict";var po=nr(),nt=[["text",Li()],["newline",Ni()],["escape",Pi()],["backticks",Ui()],["strikethrough",Kr().tokenize],["emphasis",Qr().tokenize],["link",Vi()],["image",Zi()],["autolink",Yi()],["html_inline",Ki()],["entity",ro()]],it=[["balance_pairs",io()],["strikethrough",Kr().postProcess],["emphasis",Qr().postProcess],["text_collapse",ao()]];function Pe(){var t;for(this.ruler=new po,t=0;t=o)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};Pe.prototype.parse=function(t,e,r,n){var i,o,s,a=new this.State(t,e,r,n);for(this.tokenize(a),o=this.ruler2.getRules(""),s=o.length,i=0;i{"use strict";_o.exports=function(t){var e={};e.src_Any=Pr().source,e.src_Cc=Br().source,e.src_Z=Ur().source,e.src_P=Xe().source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var r="[><\uFF5C]";return e.src_pseudo_letter="(?:(?!"+r+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+r+"|"+e.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+r+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]).|"+(t&&t["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+").|;(?!"+e.src_ZCc+").|\\!+(?!"+e.src_ZCc+"|[!]).|\\?(?!"+e.src_ZCc+"|[?]).)+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uFF5C]|"+e.src_ZPCc+"))((?![$+<=>^`|\uFF5C])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}});var yo=v((ic,Ao)=>{"use strict";function ot(t){var e=Array.prototype.slice.call(arguments,1);return e.forEach(function(r){r&&Object.keys(r).forEach(function(n){t[n]=r[n]})}),t}function fr(t){return Object.prototype.toString.call(t)}function pl(t){return fr(t)==="[object String]"}function hl(t){return fr(t)==="[object Object]"}function dl(t){return fr(t)==="[object RegExp]"}function bo(t){return fr(t)==="[object Function]"}function ml(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var vo={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function _l(t){return Object.keys(t||{}).reduce(function(e,r){return e||vo.hasOwnProperty(r)},!1)}var gl={"http:":{validate:function(t,e,r){var n=t.slice(e);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(t,e,r){var n=t.slice(e);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?e>=3&&t[e-3]===":"||e>=3&&t[e-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(t,e,r){var n=t.slice(e);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},bl="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",xl="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function kl(t){t.__index__=-1,t.__text_cache__=""}function vl(t){return function(e,r){var n=e.slice(r);return t.test(n)?n.match(t)[0].length:0}}function xo(){return function(t,e){e.normalize(t)}}function cr(t){var e=t.re=go()(t.__opts__),r=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||r.push(bl),r.push(e.src_xn),e.src_tlds=r.join("|");function n(a){return a.replace("%TLDS%",e.src_tlds)}e.email_fuzzy=RegExp(n(e.tpl_email_fuzzy),"i"),e.link_fuzzy=RegExp(n(e.tpl_link_fuzzy),"i"),e.link_no_ip_fuzzy=RegExp(n(e.tpl_link_no_ip_fuzzy),"i"),e.host_fuzzy_test=RegExp(n(e.tpl_host_fuzzy_test),"i");var i=[];t.__compiled__={};function o(a,l){throw new Error('(LinkifyIt) Invalid schema "'+a+'": '+l)}Object.keys(t.__schemas__).forEach(function(a){var l=t.__schemas__[a];if(l!==null){var u={validate:null,link:null};if(t.__compiled__[a]=u,hl(l)){dl(l.validate)?u.validate=vl(l.validate):bo(l.validate)?u.validate=l.validate:o(a,l),bo(l.normalize)?u.normalize=l.normalize:l.normalize?o(a,l):u.normalize=xo();return}if(pl(l)){i.push(a);return}o(a,l)}}),i.forEach(function(a){t.__compiled__[t.__schemas__[a]]&&(t.__compiled__[a].validate=t.__compiled__[t.__schemas__[a]].validate,t.__compiled__[a].normalize=t.__compiled__[t.__schemas__[a]].normalize)}),t.__compiled__[""]={validate:null,normalize:xo()};var s=Object.keys(t.__compiled__).filter(function(a){return a.length>0&&t.__compiled__[a]}).map(ml).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+s+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+s+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),kl(t)}function Al(t,e){var r=t.__index__,n=t.__last_index__,i=t.__text_cache__.slice(r,n);this.schema=t.__schema__.toLowerCase(),this.index=r+e,this.lastIndex=n+e,this.raw=i,this.text=i,this.url=i}function ko(t,e){var r=new Al(t,e);return t.__compiled__[r.schema].normalize(r,t),r}function K(t,e){if(!(this instanceof K))return new K(t,e);e||_l(t)&&(e=t,t={}),this.__opts__=ot({},vo,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=ot({},gl,t),this.__compiled__={},this.__tlds__=xl,this.__tlds_replaced__=!1,this.re={},cr(this)}K.prototype.add=function(e,r){return this.__schemas__[e]=r,cr(this),this};K.prototype.set=function(e){return this.__opts__=ot(this.__opts__,e),this};K.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var r,n,i,o,s,a,l,u,f;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(r=l.exec(e))!==null;)if(o=this.testSchemaAt(e,r[2],l.lastIndex),o){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u=0&&(i=e.match(this.re.email_fuzzy))!==null&&(s=i.index+i[1].length,a=i.index+i[0].length,(this.__index__<0||sthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=a))),this.__index__>=0};K.prototype.pretest=function(e){return this.re.pretest.test(e)};K.prototype.testSchemaAt=function(e,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(e,n,this):0};K.prototype.match=function(e){var r=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(ko(this,r)),r=this.__last_index__);for(var i=r?e.slice(r):e;this.test(i);)n.push(ko(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};K.prototype.tlds=function(e,r){return e=Array.isArray(e)?e:[e],r?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(n,i,o){return n!==o[i-1]}).reverse(),cr(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,cr(this),this)};K.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};K.prototype.onCompile=function(){};Ao.exports=K});var Ro=v((oc,Fo)=>{"use strict";var Eo="-",yl=/^xn--/,Cl=/[^\0-\x7E]/,El=/[\x2E\u3002\uFF0E\uFF61]/g,wl={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},at=36-1,ae=Math.floor,st=String.fromCharCode;function ge(t){throw new RangeError(wl[t])}function Dl(t,e){let r=[],n=t.length;for(;n--;)r[n]=e(t[n]);return r}function wo(t,e){let r=t.split("@"),n="";r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(El,".");let i=t.split("."),o=Dl(i,e).join(".");return n+o}function Do(t){let e=[],r=0,n=t.length;for(;r=55296&&i<=56319&&rString.fromCodePoint(...t),Sl=function(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:36},Co=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},To=function(t,e,r){let n=0;for(t=r?ae(t/700):t>>1,t+=ae(t/e);t>at*26>>1;n+=36)t=ae(t/at);return ae(n+(at+1)*t/(t+38))},So=function(t){let e=[],r=t.length,n=0,i=128,o=72,s=t.lastIndexOf(Eo);s<0&&(s=0);for(let a=0;a=128&&ge("not-basic"),e.push(t.charCodeAt(a));for(let a=s>0?s+1:0;a=r&&ge("invalid-input");let d=Sl(t.charCodeAt(a++));(d>=36||d>ae((2147483647-n)/f))&&ge("overflow"),n+=d*f;let h=p<=o?1:p>=o+26?26:p-o;if(dae(2147483647/y)&&ge("overflow"),f*=y}let u=e.length+1;o=To(n-l,u,l==0),ae(n/u)>2147483647-i&&ge("overflow"),i+=ae(n/u),n%=u,e.splice(n++,0,i)}return String.fromCodePoint(...e)},qo=function(t){let e=[];t=Do(t);let r=t.length,n=128,i=0,o=72;for(let l of t)l<128&&e.push(st(l));let s=e.length,a=s;for(s&&e.push(Eo);a=n&&fae((2147483647-i)/u)&&ge("overflow"),i+=(l-n)*u,n=l;for(let f of t)if(f2147483647&&ge("overflow"),f==n){let p=i;for(let d=36;;d+=36){let h=d<=o?1:d>=o+26?26:d-o;if(p{"use strict";Mo.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}});var Oo=v((sc,Lo)=>{"use strict";Lo.exports={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}});var zo=v((lc,No)=>{"use strict";No.exports={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"\u201C\u201D\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","text_collapse"]}}}});var Ho=v((uc,Uo)=>{"use strict";var Be=N(),Ml=yn(),Il=En(),Ll=Jn(),Ol=Mi(),Nl=mo(),zl=yo(),be=zr(),Po=Ro(),Pl={default:Io(),zero:Oo(),commonmark:zo()},Bl=/^(vbscript|javascript|file|data):/,Ul=/^data:image\/(gif|png|jpeg|webp);/;function Hl(t){var e=t.trim().toLowerCase();return Bl.test(e)?!!Ul.test(e):!0}var Bo=["http:","https:","mailto:"];function Gl(t){var e=be.parse(t,!0);if(e.hostname&&(!e.protocol||Bo.indexOf(e.protocol)>=0))try{e.hostname=Po.toASCII(e.hostname)}catch{}return be.encode(be.format(e))}function jl(t){var e=be.parse(t,!0);if(e.hostname&&(!e.protocol||Bo.indexOf(e.protocol)>=0))try{e.hostname=Po.toUnicode(e.hostname)}catch{}return be.decode(be.format(e),be.decode.defaultChars+"%")}function X(t,e){if(!(this instanceof X))return new X(t,e);e||Be.isString(t)||(e=t||{},t="default"),this.inline=new Nl,this.block=new Ol,this.core=new Ll,this.renderer=new Il,this.linkify=new zl,this.validateLink=Hl,this.normalizeLink=Gl,this.normalizeLinkText=jl,this.utils=Be,this.helpers=Be.assign({},Ml),this.options={},this.configure(t),e&&this.set(e)}X.prototype.set=function(t){return Be.assign(this.options,t),this};X.prototype.configure=function(t){var e=this,r;if(Be.isString(t)&&(r=t,t=Pl[r],!t))throw new Error('Wrong `markdown-it` preset "'+r+'", check name');if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");return t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(n){t.components[n].rules&&e[n].ruler.enableOnly(t.components[n].rules),t.components[n].rules2&&e[n].ruler2.enableOnly(t.components[n].rules2)}),this};X.prototype.enable=function(t,e){var r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){r=r.concat(this[i].ruler.enable(t,!0))},this),r=r.concat(this.inline.ruler2.enable(t,!0));var n=t.filter(function(i){return r.indexOf(i)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};X.prototype.disable=function(t,e){var r=[];Array.isArray(t)||(t=[t]),["core","block","inline"].forEach(function(i){r=r.concat(this[i].ruler.disable(t,!0))},this),r=r.concat(this.inline.ruler2.disable(t,!0));var n=t.filter(function(i){return r.indexOf(i)<0});if(n.length&&!e)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};X.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};X.prototype.parse=function(t,e){if(typeof t!="string")throw new Error("Input data should be a String");var r=new this.core.State(t,this,e);return this.core.process(r),r.tokens};X.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};X.prototype.parseInline=function(t,e){var r=new this.core.State(t,this,e);return r.inlineMode=!0,this.core.process(r),r.tokens};X.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};Uo.exports=X});var jo=v((cc,Go)=>{"use strict";Go.exports=Ho()});var Vo=zt(Pt()),$o=zt(jo()),Vl=Object.freeze(["a","abbr","b","bdo","blockquote","br","caption","cite","code","col","colgroup","dd","del","details","dfn","div","dl","dt","em","figcaption","figure","h1","h2","h3","h4","h5","h6","hr","i","img","ins","kbd","label","li","mark","ol","p","pre","q","rp","rt","ruby","samp","small","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","time","tr","tt","u","ul","var","video","wbr"]),$l=Object.freeze(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Zl={ALLOWED_TAGS:[...Vl,...$l]},fc=t=>{let e=new $o.default({html:!0,linkify:!0,highlight:(i,o)=>o?``${e.utils.escapeHtml(i)}``:``${e.utils.escapeHtml(i)}``});e.linkify.set({fuzzyLink:!1}),Wl(e),Yl(e);let r=document.createElement("style");r.textContent=` .emptyMarkdownCell::before { content: "${document.documentElement.style.getPropertyValue("--notebook-cell-markup-empty-content")}"; font-style: italic; opacity: 0.6; } img { max-width: 100%; max-height: 100%; } a { text-decoration: none; } a:hover { text-decoration: underline; } a:focus, input:focus, select:focus, textarea:focus { outline: 1px solid -webkit-focus-ring-color; outline-offset: -1px; } hr { border: 0; height: 2px; border-bottom: 2px solid; } h2, h3, h4, h5, h6 { font-weight: normal; } h1 { font-size: 2.3em; } h2 { font-size: 2em; } h3 { font-size: 1.7em; } h3 { font-size: 1.5em; } h4 { font-size: 1.3em; } h5 { font-size: 1.2em; } h1, h2, h3 { font-weight: normal; } div { width: 100%; } /* Adjust margin of first item in markdown cell */ *:first-child { margin-top: 0px; } /* h1 tags don't need top margin */ h1:first-child { margin-top: 0; } /* Removes bottom margin when only one item exists in markdown cell */ #preview > *:only-child, #preview > *:last-child { margin-bottom: 0; padding-bottom: 0; } /* makes all markdown cells consistent */ div { min-height: var(--notebook-markdown-min-height); } table { border-collapse: collapse; border-spacing: 0; } table th, table td { border: 1px solid; } table > thead > tr > th { text-align: left; border-bottom: 1px solid; } table > thead > tr > th, table > thead > tr > td, table > tbody > tr > th, table > tbody > tr > td { padding: 5px 10px; } table > tbody > tr + tr > td { border-top: 1px solid; } blockquote { margin: 0 7px 0 5px; padding: 0 16px 0 10px; border-left-width: 5px; border-left-style: solid; } code { font-size: 1em; font-family: var(--vscode-editor-font-family); } pre code { line-height: 1.357em; white-space: pre-wrap; } `;let n=document.createElement("template");return n.classList.add("markdown-style"),n.content.appendChild(r),document.head.appendChild(n),{renderOutputItem:(i,o)=>{let s;if(o.shadowRoot)s=o.shadowRoot.getElementById("preview");else{let l=o.attachShadow({mode:"open"}),u=document.getElementById("_defaultStyles");l.appendChild(u.cloneNode(!0));for(let f of document.getElementsByClassName("markdown-style"))f instanceof HTMLTemplateElement?l.appendChild(f.content.cloneNode(!0)):l.appendChild(f.cloneNode(!0));s=document.createElement("div"),s.id="preview",l.appendChild(s)}let a=i.text();if(a.trim().length===0)s.innerText="",s.classList.add("emptyMarkdownCell");else{s.classList.remove("emptyMarkdownCell");let l=i.mime.startsWith("text/x-")?`\`\`\`${i.mime.substr(7)} ${a} \`\`\``:i.mime.startsWith("application/")?`\`\`\`${i.mime.substr(12)} ${a} \`\`\``:a,u=e.render(l,{outputItem:i});s.innerHTML=t.workspace.isTrusted?u:Vo.sanitize(u,Zl)}},extendMarkdownIt:i=>{i(e)}}};function Wl(t){let e=new Map,r=t.renderer.rules.heading_open;t.renderer.rules.heading_open=(i,o,s,a,l)=>{let u=i[o+1].children.reduce((p,d)=>p+d.content,""),f=lt(u);if(e.has(f)){let p=e.get(f);e.set(f,p+1),f=lt(f+"-"+(p+1))}else e.set(f,0);return i[o].attrSet("id",f),r?r(i,o,s,a,l):l.renderToken(i,o,s)};let n=t.render;t.render=function(){return e.clear(),n.apply(this,arguments)}}function Yl(t){let e=t.renderer.rules.link_open;t.renderer.rules.link_open=(r,n,i,o,s)=>{let a=r[n],l=a.attrGet("href");return typeof l=="string"&&l.startsWith("#")&&a.attrSet("href","#"+lt(l.slice(1))),e?e(r,n,i,o,s):s.renderToken(r,n,i)}}function lt(t){return encodeURI(t.trim().toLowerCase().replace(/\s+/g,"-").replace(/[\]\[\!\/\'\"\#\$\%\&\(\)\*\+\,\.\/\:\;\<\=\>\?\@\\\^\{\|\}\~\`。，、；：？！…—·ˉ¨‘’“”々～‖∶＂＇｀｜〃〔〕〈〉《》「」『』．〖〗【】（）［］｛｝]/g,"").replace(/^\-+/,"").replace(/\-+$/,""))}export{fc as activate}; /*! Bundled license information: dompurify/dist/purify.js: (*! @license DOMPurify 2.4.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.4.1/LICENSE *) */ �A �Eo��