re> `};te.fence=function(t,e,r,n,i){var o=t[e],l=o.info?ml(o.info).trim():"",s="",a="",c,f,p,h,d;return l&&(p=l.split(/(\s+)/g),s=p[0],a=p.slice(2).join("")),r.highlight?c=r.highlight(o.content,s,a)||pe(o.content):c=pe(o.content),c.indexOf(""+c+` `):"

    "+c+`

`};te.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)};te.hardbreak=function(t,e,r){return r.xhtmlOut?`
`:`
`};te.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?`
`:`
`:` `};te.text=function(t,e){return pe(t[e].content)};te.html_block=function(t,e){return t[e].content};te.html_inline=function(t,e){return t[e].content};function Ee(){this.rules=dl({},te)}Ee.prototype.renderAttrs=function(e){var r,n,i;if(!e.attrs)return"";for(i="",r=0,n=e.attrs.length;r `:">",o)};Ee.prototype.renderInline=function(t,e,r){for(var n,i="",o=this.rules,l=0,s=t.length;l{"use strict";function K(){this.__rules__=[],this.__cache__=null}K.prototype.__find__=function(t){for(var e=0;e{"use strict";var gl=/\r\n?|\n/g,_l=/\0/g;yn.exports=function(e){var r;r=e.src.replace(gl,` `),r=r.replace(_l,"\uFFFD"),e.src=r}});var Tn=b((dc,Dn)=>{"use strict";Dn.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 qn=b((mc,Sn)=>{"use strict";Sn.exports=function(e){var r=e.tokens,n,i,o;for(i=0,o=r.length;i{"use strict";var xl=I().arrayReplaceAt;function bl(t){return/^\s]/i.test(t)}function kl(t){return/^<\/a\s*>/i.test(t)}Fn.exports=function(e){var r,n,i,o,l,s,a,c,f,p,h,d,x,k,T,v,_=e.tokens,A;if(e.md.options.linkify){for(n=0,i=_.length;n=0;r--){if(s=o[r],s.type==="link_close"){for(r--;o[r].level!==s.level&&o[r].type!=="link_open";)r--;continue}if(s.type==="html_inline"&&(bl(s.content)&&x>0&&x--,kl(s.content)&&x++),!(x>0)&&s.type==="text"&&e.md.linkify.test(s.content)){for(f=s.content,A=e.md.linkify.match(f),a=[],d=s.level,h=0,c=0;ch&&(l=new e.Token("text","",0),l.content=f.slice(h,p),l.level=d,a.push(l)),l=new e.Token("link_open","a",1),l.attrs=[["href",T]],l.level=d++,l.markup="linkify",l.info="auto",a.push(l),l=new e.Token("text","",0),l.content=v,l.level=d,a.push(l),l=new e.Token("link_close","a",-1),l.level=--d,l.markup="linkify",l.info="auto",a.push(l),h=A[c].lastIndex);h{"use strict";var Mn=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Al=/\((c|tm|r|p)\)/i,Cl=/\((c|tm|r|p)\)/ig,vl={c:"\xA9",r:"\xAE",p:"\xA7",tm:"\u2122"};function El(t,e){return vl[e.toLowerCase()]}function yl(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(Cl,El)),r.type==="link_open"&&r.info==="auto"&&n--,r.type==="link_close"&&r.info==="auto"&&n++}function wl(t){var e,r,n=0;for(e=t.length-1;e>=0;e--)r=t[e],r.type==="text"&&!n&&Mn.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++}In.exports=function(e){var r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)e.tokens[r].type==="inline"&&(Al.test(e.tokens[r].content)&&yl(e.tokens[r].children),Mn.test(e.tokens[r].content)&&wl(e.tokens[r].children))}});var Hn=b((xc,Un)=>{"use strict";var On=I().isWhiteSpace,Nn=I().isPunctChar,zn=I().isMdAsciiPunct,Dl=/['"]/,Pn=/['"]/g,Bn="\u2019";function tr(t,e,r){return t.substr(0,e)+r+t.substr(e+1)}function Tl(t,e){var r,n,i,o,l,s,a,c,f,p,h,d,x,k,T,v,_,A,E,S,g;for(E=[],r=0;r=0&&!(E[_].level<=a);_--);if(E.length=_+1,n.type==="text"){i=n.content,l=0,s=i.length;e:for(;l=0)f=i.charCodeAt(o.index-1);else for(_=r-1;_>=0&&!(t[_].type==="softbreak"||t[_].type==="hardbreak");_--)if(t[_].content){f=t[_].content.charCodeAt(t[_].content.length-1);break}if(p=32,l=48&&f<=57&&(v=T=!1),T&&v&&(T=h,v=d),!T&&!v){A&&(n.content=tr(n.content,o.index,Bn));continue}if(v){for(_=E.length-1;_>=0&&(c=E[_],!(E[_].level=0;r--)e.tokens[r].type!=="inline"||!Dl.test(e.tokens[r].content)||Tl(e.tokens[r].children,e)}});var nr=b((bc,Gn)=>{"use strict";function ye(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}ye.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};ye.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};Gn.exports=ye});var Wn=b((kc,jn)=>{"use strict";var Sl=nr();function Vn(t,e,r){this.src=t,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=e}Vn.prototype.Token=Sl;jn.exports=Vn});var $n=b((Ac,Zn)=>{"use strict";var ql=rr(),Mr=[["normalize",wn()],["block",Tn()],["inline",qn()],["linkify",Rn()],["replacements",Ln()],["smartquotes",Hn()]];function Ir(){this.ruler=new ql;for(var t=0;t{"use strict";var Lr=I().isSpace;function Or(t,e){var r=t.bMarks[e]+t.tShift[e],n=t.eMarks[e];return t.src.substr(r,n-r)}function Yn(t){var e=[],r=0,n=t.length,i,o=!1,l=0,s="";for(i=t.charCodeAt(r);rn||(f=r+1,e.sCount[f]=4||(s=e.bMarks[f]+e.tShift[f],s>=e.eMarks[f])||(S=e.src.charCodeAt(s++),S!==124&&S!==45&&S!==58)||s>=e.eMarks[f]||(g=e.src.charCodeAt(s++),g!==124&&g!==45&&g!==58&&!Lr(g))||S===45&&Lr(g))return!1;for(;s=4||(p=Yn(l),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),h=p.length,h===0||h!==x.length))return!1;if(i)return!0;for(_=e.parentType,e.parentType="table",E=e.md.block.ruler.getRules("blockquote"),d=e.push("table_open","table",1),d.map=T=[r,0],d=e.push("thead_open","thead",1),d.map=[r,r+1],d=e.push("tr_open","tr",1),d.map=[r,r+1],a=0;a=4)break;for(p=Yn(l),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),f===r+2&&(d=e.push("tbody_open","tbody",1),d.map=v=[r+2,0]),d=e.push("tr_open","tr",1),d.map=[f,f+1],a=0;a{"use strict";Kn.exports=function(e,r,n){var i,o,l;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,l=e.push("code_block","code",0),l.content=e.getLines(r,o,4+e.blkIndent,!1)+` `,l.map=[r,e.line],!0}});var ri=b((Ec,ei)=>{"use strict";ei.exports=function(e,r,n,i){var o,l,s,a,c,f,p,h=!1,d=e.bMarks[r]+e.tShift[r],x=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||d+3>x||(o=e.src.charCodeAt(d),o!==126&&o!==96)||(c=d,d=e.skipChars(d,o),l=d-c,l<3)||(p=e.src.slice(c,d),s=e.src.slice(d,x),o===96&&s.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(a=r;a++,!(a>=n||(d=c=e.bMarks[a]+e.tShift[a],x=e.eMarks[a],d=4)&&(d=e.skipChars(d,o),!(d-c{"use strict";var ti=I().isSpace;ni.exports=function(e,r,n,i){var o,l,s,a,c,f,p,h,d,x,k,T,v,_,A,E,S,g,L,D,de=e.lineMax,q=e.bMarks[r]+e.tShift[r],O=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(q++)!==62)return!1;if(i)return!0;for(a=d=e.sCount[r]+1,e.src.charCodeAt(q)===32?(q++,a++,d++,o=!1,E=!0):e.src.charCodeAt(q)===9?(E=!0,(e.bsCount[r]+d)%4===3?(q++,a++,d++,o=!1):o=!0):E=!1,x=[e.bMarks[r]],e.bMarks[r]=q;q=O,_=[e.sCount[r]],e.sCount[r]=d-a,A=[e.tShift[r]],e.tShift[r]=q-e.bMarks[r],g=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",h=r+1;h=O));h++){if(e.src.charCodeAt(q++)===62&&!D){for(a=d=e.sCount[h]+1,e.src.charCodeAt(q)===32?(q++,a++,d++,o=!1,E=!0):e.src.charCodeAt(q)===9?(E=!0,(e.bsCount[h]+d)%4===3?(q++,a++,d++,o=!1):o=!0):E=!1,x.push(e.bMarks[h]),e.bMarks[h]=q;q=O,k.push(e.bsCount[h]),e.bsCount[h]=e.sCount[h]+1+(E?1:0),_.push(e.sCount[h]),e.sCount[h]=d-a,A.push(e.tShift[h]),e.tShift[h]=q-e.bMarks[h];continue}if(f)break;for(S=!1,s=0,c=g.length;s",L.map=p=[r,0],e.md.block.tokenize(e,r,h),L=e.push("blockquote_close","blockquote",-1),L.markup=">",e.lineMax=de,e.parentType=v,p[1]=e.line,s=0;s{"use strict";var Fl=I().isSpace;oi.exports=function(e,r,n,i){var o,l,s,a,c=e.bMarks[r]+e.tShift[r],f=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(o=e.src.charCodeAt(c++),o!==42&&o!==45&&o!==95))return!1;for(l=1;c{"use strict";var ci=I().isSpace;function li(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&&(Te=!0),(O=ai(e,r))>=0){if(p=!0,ae=e.bMarks[r]+e.tShift[r],v=Number(e.src.slice(ae,O-1)),Te&&v!==1)return!1}else if((O=li(e,r))>=0)p=!1;else return!1;if(Te&&e.skipSpaces(O)>=e.eMarks[r])return!1;if(T=e.src.charCodeAt(O-1),i)return!0;for(k=e.tokens.length,p?(B=e.push("ordered_list_open","ol",1),v!==1&&(B.attrs=[["start",v]])):B=e.push("bullet_list_open","ul",1),B.map=x=[r,0],B.markup=String.fromCharCode(T),A=r,me=!1,De=e.md.block.ruler.getRules("list"),g=e.parentType,e.parentType="list";A=_?c=1:c=E-f,c>4&&(c=1),a=f+c,B=e.push("list_item_open","li",1),B.markup=String.fromCharCode(T),B.map=h=[r,0],p&&(B.info=e.src.slice(ae,O-1)),de=e.tight,D=e.tShift[r],L=e.sCount[r],S=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=a,e.tight=!0,e.tShift[r]=l-e.bMarks[r],e.sCount[r]=E,l>=_&&e.isEmpty(r+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,r,n,!0),(!e.tight||me)&&(Se=!1),me=e.line-r>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=S,e.tShift[r]=D,e.sCount[r]=L,e.tight=de,B=e.push("list_item_close","li",-1),B.markup=String.fromCharCode(T),A=r=e.line,h[1]=A,l=e.bMarks[r],A>=n||e.sCount[A]=4)break;for(ue=!1,s=0,d=De.length;s{"use strict";var Ml=I().normalizeReference,ir=I().isSpace;pi.exports=function(e,r,n,i){var o,l,s,a,c,f,p,h,d,x,k,T,v,_,A,E,S=0,g=e.bMarks[r]+e.tShift[r],L=e.eMarks[r],D=r+1;if(e.sCount[r]-e.blkIndent>=4||e.src.charCodeAt(g)!==91)return!1;for(;++g3)&&!(e.sCount[D]<0)){for(_=!1,f=0,p=A.length;f"u"&&(e.env.references={}),typeof e.env.references[h]>"u"&&(e.env.references[h]={title:E,href:c}),e.parentType=x,e.line=r+S+1),!0)}});var mi=b((Sc,di)=>{"use strict";di.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=b((qc,Nr)=>{"use strict";var Il="[a-zA-Z_:][a-zA-Z0-9:._-]*",Ll="[^\"'=<>`\\x00-\\x20]+",Ol="'[^']*'",Nl='"[^"]*"',zl="(?:"+Ll+"|"+Ol+"|"+Nl+")",Pl="(?:\\s+"+Il+"(?:\\s*=\\s*"+zl+")?)",gi="<[A-Za-z][A-Za-z0-9\\-]*"+Pl+"*\\s*\\/?>",_i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Bl="|",Ul="<[?][\\s\\S]*?[?]>",Hl="]*>",Gl="",Vl=new RegExp("^(?:"+gi+"|"+_i+"|"+Bl+"|"+Ul+"|"+Hl+"|"+Gl+")"),jl=new RegExp("^(?:"+gi+"|"+_i+")");Nr.exports.HTML_TAG_RE=Vl;Nr.exports.HTML_OPEN_CLOSE_TAG_RE=jl});var bi=b((Fc,xi)=>{"use strict";var Wl=mi(),Zl=zr().HTML_OPEN_CLOSE_TAG_RE,we=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(Zl.source+"\\s*$"),/^$/,!1]];xi.exports=function(e,r,n,i){var o,l,s,a,c=e.bMarks[r]+e.tShift[r],f=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(c)!==60)return!1;for(a=e.src.slice(c,f),o=0;o{"use strict";var ki=I().isSpace;Ai.exports=function(e,r,n,i){var o,l,s,a,c=e.bMarks[r]+e.tShift[r],f=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||(o=e.src.charCodeAt(c),o!==35||c>=f))return!1;for(l=1,o=e.src.charCodeAt(++c);o===35&&c6||cc&&ki(e.src.charCodeAt(s-1))&&(f=s),e.line=r+1,a=e.push("heading_open","h"+String(l),1),a.markup="########".slice(0,l),a.map=[r,e.line],a=e.push("inline","",0),a.content=e.src.slice(c,f).trim(),a.map=[r,e.line],a.children=[],a=e.push("heading_close","h"+String(l),-1),a.markup="########".slice(0,l)),!0)}});var Ei=b((Mc,vi)=>{"use strict";vi.exports=function(e,r,n){var i,o,l,s,a,c,f,p,h,d=r+1,x,k=e.md.block.ruler.getRules("paragraph");if(e.sCount[r]-e.blkIndent>=4)return!1;for(x=e.parentType,e.parentType="paragraph";d3)){if(e.sCount[d]>=e.blkIndent&&(c=e.bMarks[d]+e.tShift[d],f=e.eMarks[d],c=f)))){p=h===61?1:2;break}if(!(e.sCount[d]<0)){for(o=!1,l=0,s=k.length;l{"use strict";yi.exports=function(e,r){var n,i,o,l,s,a,c=r+1,f=e.md.block.ruler.getRules("paragraph"),p=e.lineMax;for(a=e.parentType,e.parentType="paragraph";c3)&&!(e.sCount[c]<0)){for(i=!1,o=0,l=f.length;o{"use strict";var Di=nr(),or=I().isSpace;function ne(t,e,r,n){var i,o,l,s,a,c,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,l=s=c=f=0,a=o.length;s0&&this.level++,this.tokens.push(n),n};ne.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};ne.prototype.skipEmptyLines=function(e){for(var r=this.lineMax;er;)if(!or(this.src.charCodeAt(--e)))return e+1;return e};ne.prototype.skipChars=function(e,r){for(var n=this.src.length;en;)if(r!==this.src.charCodeAt(--e))return e+1;return e};ne.prototype.getLines=function(e,r,n,i){var o,l,s,a,c,f,p,h=e;if(e>=r)return"";for(f=new Array(r-e),o=0;hn?f[o]=new Array(l-n+1).join(" ")+this.src.slice(a,c):f[o]=this.src.slice(a,c)}return f.join("")};ne.prototype.Token=Di;Ti.exports=ne});var Fi=b((Oc,qi)=>{"use strict";var $l=rr(),sr=[["table",Jn(),["paragraph","reference"]],["code",Qn()],["fence",ri(),["paragraph","reference","blockquote","list"]],["blockquote",ii(),["paragraph","reference","blockquote","list"]],["hr",si(),["paragraph","reference","blockquote","list"]],["list",fi(),["paragraph","reference","blockquote"]],["reference",hi()],["html_block",bi(),["paragraph","reference","blockquote"]],["heading",Ci(),["paragraph","reference","blockquote"]],["lheading",Ei()],["paragraph",wi()]];function lr(){this.ruler=new $l;for(var t=0;t=r||t.sCount[s]=c){t.line=r;break}for(i=0;i{"use strict";function Yl(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}}Ri.exports=function(e,r){for(var n=e.pos;n{"use strict";var Xl=I().isSpace;Ii.exports=function(e,r){var n,i,o,l=e.pos;if(e.src.charCodeAt(l)!==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(l++;l{"use strict";var Jl=I().isSpace,Br=[];for(Pr=0;Pr<256;Pr++)Br.push(0);var Pr;"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){Br[t.charCodeAt(0)]=1});Oi.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";zi.exports=function(e,r){var n,i,o,l,s,a,c,f,p=e.pos,h=e.src.charCodeAt(p);if(h!==96)return!1;for(n=p,p++,i=e.posMax;p{"use strict";Ur.exports.tokenize=function(e,r){var n,i,o,l,s,a=e.pos,c=e.src.charCodeAt(a);if(r||c!==126||(i=e.scanDelims(e.pos,!0),l=i.length,s=String.fromCharCode(c),l<2))return!1;for(l%2&&(o=e.push("text","",0),o.content=s,l--),n=0;n{"use strict";Gr.exports.tokenize=function(e,r){var n,i,o,l=e.pos,s=e.src.charCodeAt(l);if(r||s!==95&&s!==42)return!1;for(i=e.scanDelims(e.pos,s===42),n=0;n=0;r--)n=e[r],!(n.marker!==95&&n.marker!==42)&&n.end!==-1&&(i=e[n.end],s=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,l=String.fromCharCode(n.marker),o=t.tokens[n.token],o.type=s?"strong_open":"em_open",o.tag=s?"strong":"em",o.nesting=1,o.markup=s?l+l:l,o.content="",o=t.tokens[i.token],o.type=s?"strong_close":"em_close",o.tag=s?"strong":"em",o.nesting=-1,o.markup=s?l+l:l,o.content="",s&&(t.tokens[e[r-1].token].content="",t.tokens[e[n.end+1].token].content="",r--))}Gr.exports.postProcess=function(e){var r,n=e.tokens_meta,i=e.tokens_meta.length;for(Ui(e,e.delimiters),r=0;r{"use strict";var Kl=I().normalizeReference,jr=I().isSpace;Hi.exports=function(e,r){var n,i,o,l,s,a,c,f,p,h="",d="",x=e.pos,k=e.posMax,T=e.pos,v=!0;if(e.src.charCodeAt(e.pos)!==91||(s=e.pos+1,l=e.md.helpers.parseLinkLabel(e,e.pos,!0),l<0))return!1;if(a=l+1,a=k)return!1;if(T=a,c=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),c.ok){for(h=e.md.normalizeLink(c.str),e.md.validateLink(h)?a=c.pos:h="",T=a;a=k||e.src.charCodeAt(a)!==41)&&(v=!0),a++}if(v){if(typeof e.env.references>"u")return!1;if(a=0?o=e.src.slice(T,a++):a=l+1):a=l+1,o||(o=e.src.slice(s,l)),f=e.env.references[Kl(o)],!f)return e.pos=x,!1;h=f.href,d=f.title}return r||(e.pos=s,e.posMax=l,p=e.push("link_open","a",1),p.attrs=n=[["href",h]],d&&n.push(["title",d]),e.md.inline.tokenize(e),p=e.push("link_close","a",-1)),e.pos=a,e.posMax=k,!0}});var ji=b((Vc,Vi)=>{"use strict";var Ql=I().normalizeReference,Wr=I().isSpace;Vi.exports=function(e,r){var n,i,o,l,s,a,c,f,p,h,d,x,k,T="",v=e.pos,_=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91||(a=e.pos+2,s=e.md.helpers.parseLinkLabel(e,e.pos+1,!1),s<0))return!1;if(c=s+1,c<_&&e.src.charCodeAt(c)===40){for(c++;c<_&&(i=e.src.charCodeAt(c),!(!Wr(i)&&i!==10));c++);if(c>=_)return!1;for(k=c,p=e.md.helpers.parseLinkDestination(e.src,c,e.posMax),p.ok&&(T=e.md.normalizeLink(p.str),e.md.validateLink(T)?c=p.pos:T=""),k=c;c<_&&(i=e.src.charCodeAt(c),!(!Wr(i)&&i!==10));c++);if(p=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<_&&k!==c&&p.ok)for(h=p.str,c=p.pos;c<_&&(i=e.src.charCodeAt(c),!(!Wr(i)&&i!==10));c++);else h="";if(c>=_||e.src.charCodeAt(c)!==41)return e.pos=v,!1;c++}else{if(typeof e.env.references>"u")return!1;if(c<_&&e.src.charCodeAt(c)===91?(k=c+1,c=e.md.helpers.parseLinkLabel(e,c),c>=0?l=e.src.slice(k,c++):c=s+1):c=s+1,l||(l=e.src.slice(a,s)),f=e.env.references[Ql(l)],!f)return e.pos=v,!1;T=f.href,h=f.title}return r||(o=e.src.slice(a,s),e.md.inline.parse(o,e.md,e.env,x=[]),d=e.push("image","img",0),d.attrs=n=[["src",T],["alt",""]],d.children=x,d.content=o,h&&n.push(["title",h])),e.pos=c,e.posMax=_,!0}});var Zi=b((jc,Wi)=>{"use strict";var ea=/^([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])?)*)$/,ra=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;Wi.exports=function(e,r){var n,i,o,l,s,a,c=e.pos;if(e.src.charCodeAt(c)!==60)return!1;for(s=e.pos,a=e.posMax;;){if(++c>=a||(l=e.src.charCodeAt(c),l===60))return!1;if(l===62)break}return n=e.src.slice(s+1,c),ra.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):ea.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 Yi=b((Wc,$i)=>{"use strict";var ta=zr().HTML_TAG_RE;function na(t){var e=t|32;return e>=97&&e<=122}$i.exports=function(e,r){var n,i,o,l,s=e.pos;return!e.md.options.html||(o=e.posMax,e.src.charCodeAt(s)!==60||s+2>=o)||(n=e.src.charCodeAt(s+1),n!==33&&n!==63&&n!==47&&!na(n))||(i=e.src.slice(s).match(ta),!i)?!1:(r||(l=e.push("html_inline","",0),l.content=e.src.slice(s,s+i[0].length)),e.pos+=i[0].length,!0)}});var Qi=b((Zc,Ki)=>{"use strict";var Xi=Tr(),ia=I().has,oa=I().isValidEntityCode,Ji=I().fromCodePoint,sa=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,la=/^&([a-z][a-z0-9]{1,31});/i;Ki.exports=function(e,r){var n,i,o,l=e.pos,s=e.posMax;if(e.src.charCodeAt(l)!==38)return!1;if(l+1{"use strict";function eo(t,e){var r,n,i,o,l,s,a,c,f={},p=e.length;if(p){var h=0,d=-2,x=[];for(r=0;rl;n-=x[n]+1)if(o=e[n],o.marker===i.marker&&o.open&&o.end<0&&(a=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3!==0||i.length%3!==0)&&(a=!0),!a)){c=n>0&&!e[n-1].open?x[n-1]+1:0,x[r]=r-n+c,x[n]=c,i.open=!1,o.end=r,o.close=!1,s=-1,d=-2;break}s!==-1&&(f[i.marker][(i.open?3:0)+(i.length||0)%3]=s)}}}ro.exports=function(e){var r,n=e.tokens_meta,i=e.tokens_meta.length;for(eo(e,e.delimiters),r=0;r{"use strict";no.exports=function(e){var r,n,i=0,o=e.tokens,l=e.tokens.length;for(r=n=0;r0&&i++,o[r].type==="text"&&r+1{"use strict";var Zr=nr(),oo=I().isWhiteSpace,so=I().isPunctChar,lo=I().isMdAsciiPunct;function Pe(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}Pe.prototype.pushPending=function(){var t=new Zr("text","",0);return t.content=this.pending,t.level=this.pendingLevel,this.tokens.push(t),this.pending="",t};Pe.prototype.push=function(t,e,r){this.pending&&this.pushPending();var n=new Zr(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};Pe.prototype.scanDelims=function(t,e){var r=t,n,i,o,l,s,a,c,f,p,h=!0,d=!0,x=this.posMax,k=this.src.charCodeAt(t);for(n=t>0?this.src.charCodeAt(t-1):32;r{"use strict";var uo=rr(),$r=[["text",Mi()],["newline",Li()],["escape",Ni()],["backticks",Pi()],["strikethrough",Hr().tokenize],["emphasis",Vr().tokenize],["link",Gi()],["image",ji()],["autolink",Zi()],["html_inline",Yi()],["entity",Qi()]],Yr=[["balance_pairs",to()],["strikethrough",Hr().postProcess],["emphasis",Vr().postProcess],["text_collapse",io()]];function Be(){var t;for(this.ruler=new uo,t=0;t<$r.length;t++)this.ruler.push($r[t][0],$r[t][1]);for(this.ruler2=new uo,t=0;t=o)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};Be.prototype.parse=function(t,e,r,n){var i,o,l,s=new this.State(t,e,r,n);for(this.tokenize(s),o=this.ruler2.getRules(""),l=o.length,i=0;i{"use strict";ho.exports=function(t){var e={};e.src_Any=qr().source,e.src_Cc=Fr().source,e.src_Z=Rr().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 Ao=b((Qc,ko)=>{"use strict";function Xr(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 cr(t){return Object.prototype.toString.call(t)}function aa(t){return cr(t)==="[object String]"}function ca(t){return cr(t)==="[object Object]"}function ua(t){return cr(t)==="[object RegExp]"}function go(t){return cr(t)==="[object Function]"}function fa(t){return t.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var bo={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function pa(t){return Object.keys(t||{}).reduce(function(e,r){return e||bo.hasOwnProperty(r)},!1)}var ha={"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}}},da="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]",ma="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function ga(t){t.__index__=-1,t.__text_cache__=""}function _a(t){return function(e,r){var n=e.slice(r);return t.test(n)?n.match(t)[0].length:0}}function _o(){return function(t,e){e.normalize(t)}}function ar(t){var e=t.re=mo()(t.__opts__),r=t.__tlds__.slice();t.onCompile(),t.__tlds_replaced__||r.push(da),r.push(e.src_xn),e.src_tlds=r.join("|");function n(s){return s.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(s,a){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+a)}Object.keys(t.__schemas__).forEach(function(s){var a=t.__schemas__[s];if(a!==null){var c={validate:null,link:null};if(t.__compiled__[s]=c,ca(a)){ua(a.validate)?c.validate=_a(a.validate):go(a.validate)?c.validate=a.validate:o(s,a),go(a.normalize)?c.normalize=a.normalize:a.normalize?o(s,a):c.normalize=_o();return}if(aa(a)){i.push(s);return}o(s,a)}}),i.forEach(function(s){t.__compiled__[t.__schemas__[s]]&&(t.__compiled__[s].validate=t.__compiled__[t.__schemas__[s]].validate,t.__compiled__[s].normalize=t.__compiled__[t.__schemas__[s]].normalize)}),t.__compiled__[""]={validate:null,normalize:_o()};var l=Object.keys(t.__compiled__).filter(function(s){return s.length>0&&t.__compiled__[s]}).map(fa).join("|");t.re.schema_test=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+l+")","i"),t.re.schema_search=RegExp("(^|(?!_)(?:[><\uFF5C]|"+e.src_ZPCc+"))("+l+")","ig"),t.re.pretest=RegExp("("+t.re.schema_test.source+")|("+t.re.host_fuzzy_test.source+")|@","i"),ga(t)}function xa(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 xo(t,e){var r=new xa(t,e);return t.__compiled__[r.schema].normalize(r,t),r}function X(t,e){if(!(this instanceof X))return new X(t,e);e||pa(t)&&(e=t,t={}),this.__opts__=Xr({},bo,e),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Xr({},ha,t),this.__compiled__={},this.__tlds__=ma,this.__tlds_replaced__=!1,this.re={},ar(this)}X.prototype.add=function(e,r){return this.__schemas__[e]=r,ar(this),this};X.prototype.set=function(e){return this.__opts__=Xr(this.__opts__,e),this};X.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var r,n,i,o,l,s,a,c,f;if(this.re.schema_test.test(e)){for(a=this.re.schema_search,a.lastIndex=0;(r=a.exec(e))!==null;)if(o=this.testSchemaAt(e,r[2],a.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:"]&&(c=e.search(this.re.host_fuzzy_test),c>=0&&(this.__index__<0||c=0&&(i=e.match(this.re.email_fuzzy))!==null&&(l=i.index+i[1].length,s=i.index+i[0].length,(this.__index__<0||lthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=l,this.__last_index__=s))),this.__index__>=0};X.prototype.pretest=function(e){return this.re.pretest.test(e)};X.prototype.testSchemaAt=function(e,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(e,n,this):0};X.prototype.match=function(e){var r=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(xo(this,r)),r=this.__last_index__);for(var i=r?e.slice(r):e;this.test(i);)n.push(xo(this,r)),i=i.slice(this.__last_index__),r+=this.__last_index__;return n.length?n:null};X.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(),ar(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,ar(this),this)};X.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)};X.prototype.onCompile=function(){};ko.exports=X});var qo=b((eu,So)=>{"use strict";var vo="-",ba=/^xn--/,ka=/[^\0-\x7F]/,Aa=/[\x2E\u3002\uFF0E\uFF61]/g,Ca={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Jr=35,ie=Math.floor,Kr=String.fromCharCode;function ce(t){throw new RangeError(Ca[t])}function va(t,e){let r=[],n=t.length;for(;n--;)r[n]=e(t[n]);return r}function Eo(t,e){let r=t.split("@"),n="";r.length>1&&(n=r[0]+"@",t=r[1]),t=t.replace(Aa,".");let i=t.split("."),o=va(i,e).join(".");return n+o}function yo(t){let e=[],r=0,n=t.length;for(;r=55296&&i<=56319&&rString.fromCodePoint(...t),ya=function(t){return t>=48&&t<58?26+(t-48):t>=65&&t<91?t-65:t>=97&&t<123?t-97:36},Co=function(t,e){return t+22+75*(t<26)-((e!=0)<<5)},wo=function(t,e,r){let n=0;for(t=r?ie(t/700):t>>1,t+=ie(t/e);t>Jr*26>>1;n+=36)t=ie(t/Jr);return ie(n+(Jr+1)*t/(t+38))},Do=function(t){let e=[],r=t.length,n=0,i=128,o=72,l=t.lastIndexOf(vo);l<0&&(l=0);for(let s=0;s=128&&ce("not-basic"),e.push(t.charCodeAt(s));for(let s=l>0?l+1:0;s=r&&ce("invalid-input");let h=ya(t.charCodeAt(s++));h>=36&&ce("invalid-input"),h>ie((2147483647-n)/f)&&ce("overflow"),n+=h*f;let d=p<=o?1:p>=o+26?26:p-o;if(hie(2147483647/x)&&ce("overflow"),f*=x}let c=e.length+1;o=wo(n-a,c,a==0),ie(n/c)>2147483647-i&&ce("overflow"),i+=ie(n/c),n%=c,e.splice(n++,0,i)}return String.fromCodePoint(...e)},To=function(t){let e=[];t=yo(t);let r=t.length,n=128,i=0,o=72;for(let a of t)a<128&&e.push(Kr(a));let l=e.length,s=l;for(l&&e.push(vo);s=n&&fie((2147483647-i)/c)&&ce("overflow"),i+=(a-n)*c,n=a;for(let f of t)if(f2147483647&&ce("overflow"),f===n){let p=i;for(let h=36;;h+=36){let d=h<=o?1:h>=o+26?26:h-o;if(p{"use strict";Fo.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 Io=b((tu,Mo)=>{"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:20},components:{core:{rules:["normalize","block","inline"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","text_collapse"]}}}});var Oo=b((nu,Lo)=>{"use strict";Lo.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 Bo=b((iu,Po)=>{"use strict";var Ue=I(),Sa=An(),qa=vn(),Fa=$n(),Ra=Fi(),Ma=po(),Ia=Ao(),he=Sr(),No=qo(),La={default:Ro(),zero:Io(),commonmark:Oo()},Oa=/^(vbscript|javascript|file|data):/,Na=/^data:image\/(gif|png|jpeg|webp);/;function za(t){var e=t.trim().toLowerCase();return Oa.test(e)?!!Na.test(e):!0}var zo=["http:","https:","mailto:"];function Pa(t){var e=he.parse(t,!0);if(e.hostname&&(!e.protocol||zo.indexOf(e.protocol)>=0))try{e.hostname=No.toASCII(e.hostname)}catch{}return he.encode(he.format(e))}function Ba(t){var e=he.parse(t,!0);if(e.hostname&&(!e.protocol||zo.indexOf(e.protocol)>=0))try{e.hostname=No.toUnicode(e.hostname)}catch{}return he.decode(he.format(e),he.decode.defaultChars+"%")}function J(t,e){if(!(this instanceof J))return new J(t,e);e||Ue.isString(t)||(e=t||{},t="default"),this.inline=new Ma,this.block=new Ra,this.core=new Fa,this.renderer=new qa,this.linkify=new Ia,this.validateLink=za,this.normalizeLink=Pa,this.normalizeLinkText=Ba,this.utils=Ue,this.helpers=Ue.assign({},Sa),this.options={},this.configure(t),e&&this.set(e)}J.prototype.set=function(t){return Ue.assign(this.options,t),this};J.prototype.configure=function(t){var e=this,r;if(Ue.isString(t)&&(r=t,t=La[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};J.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};J.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};J.prototype.use=function(t){var e=[this].concat(Array.prototype.slice.call(arguments,1));return t.apply(t,e),this};J.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};J.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};J.prototype.parseInline=function(t,e){var r=new this.core.State(t,this,e);return r.inlineMode=!0,this.core.process(r),r.tokens};J.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};Po.exports=J});var Ho=b((ou,Uo)=>{"use strict";Uo.exports=Bo()});var Go=Ot(Nt()),Vo=Ot(Ho()),Ua=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"]),Ha=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"]),Ga={ALLOWED_TAGS:[...Ua,...Ha]},su=t=>{let e=new Vo.default({html:!0,linkify:!0,highlight:(i,o)=>o?`
${e.utils.escapeHtml(i)}
`:e.utils.escapeHtml(i)});e.linkify.set({fuzzyLink:!1}),Va(e),ja(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; padding: 0; } li p { margin-bottom: 0.7em; } ul, ol { margin-bottom: 0.7em; } `;let n=document.createElement("template");return n.classList.add("markdown-style"),n.content.appendChild(r),document.head.appendChild(n),{renderOutputItem:(i,o)=>{let l;if(o.shadowRoot)l=o.shadowRoot.getElementById("preview");else{let a=o.attachShadow({mode:"open"}),c=document.getElementById("_defaultStyles");a.appendChild(c.cloneNode(!0));for(let f of document.getElementsByClassName("markdown-style"))f instanceof HTMLTemplateElement?a.appendChild(f.content.cloneNode(!0)):a.appendChild(f.cloneNode(!0));l=document.createElement("div"),l.id="preview",a.appendChild(l)}let s=i.text();if(s.trim().length===0)l.innerText="",l.classList.add("emptyMarkdownCell");else{l.classList.remove("emptyMarkdownCell");let a=i.mime.startsWith("text/x-")?`\`\`\`${i.mime.substr(7)} ${s} \`\`\``:i.mime.startsWith("application/")?`\`\`\`${i.mime.substr(12)} ${s} \`\`\``:s,c=e.render(a,{outputItem:i});l.innerHTML=t.workspace.isTrusted?c:Go.sanitize(c,Ga)}},extendMarkdownIt:i=>{try{i(e)}catch(o){console.error("Error extending markdown-it",o)}}}};function Va(t){let e=new Map,r=t.renderer.rules.heading_open;t.renderer.rules.heading_open=(i,o,l,s,a)=>{let c=i[o+1].children.reduce((p,h)=>p+h.content,""),f=Qr(c);if(e.has(f)){let p=e.get(f);e.set(f,p+1),f=Qr(f+"-"+(p+1))}else e.set(f,0);return i[o].attrSet("id",f),r?r(i,o,l,s,a):a.renderToken(i,o,l)};let n=t.render;t.render=function(){return e.clear(),n.apply(this,arguments)}}function ja(t){let e=t.renderer.rules.link_open;t.renderer.rules.link_open=(r,n,i,o,l)=>{let s=r[n],a=s.attrGet("href");return typeof a=="string"&&a.startsWith("#")&&s.attrSet("href","#"+Qr(a.slice(1))),e?e(r,n,i,o,l):l.renderToken(r,n,i)}}function Qr(t){return encodeURI(t.trim().toLowerCase().replace(/\s+/g,"-").replace(/[\]\[\!\/\'\"\#\$\%\&\(\)\*\+\,\.\/\:\;\<\=\>\?\@\\\^\{\|\}\~\`。，、；：？！…—·ˉ¨‘’“”々～‖∶＂＇｀｜〃〔〕〈〉《》「」『』．〖〗【】（）［］｛｝]/g,"").replace(/^\-+/,"").replace(/\-+$/,""))}export{su as activate}; /*! Bundled license information: dompurify/dist/purify.js: (*! @license DOMPurify 3.1.7 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.7/LICENSE *) */ �A �Eo��