@mathcrowd/mmarked 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var t=require("crypto"),e=require("buffer"),n=require("highlight.js"),r=require("highlight.js/lib/languages/javascript"),s=require("highlight.js/lib/languages/json"),i=require("highlight.js/lib/languages/latex"),o=require("highlight.js/lib/languages/python"),a=require("mathjax-full/js/adaptors/liteAdaptor.js"),l=require("mathjax-full/js/handlers/html.js"),c=require("mathjax-full/js/input/tex/AllPackages.js"),u=require("mathjax-full/js/input/tex.js"),h=require("mathjax-full/js/mathjax.js"),p=require("mathjax-full/js/output/svg.js");var f={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function d(t){f=t}var g={exec:()=>null};function m(t,e=""){let n="string"==typeof t?t:t.source,r={replace:(t,e)=>{let s="string"==typeof e?e:e.source;return s=s.replace(b.caret,"$1"),n=n.replace(t,s),r},getRegex:()=>RegExp(n,e)};return r}var k=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),b={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},x=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,y=/(?:[*+-]|\d{1,9}[.)])/,I=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,w=m(I).replace(/bull/g,y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),$=m(I).replace(/bull/g,y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),v=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,S=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,A=m(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",S).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),j=m(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,y).getRegex(),q="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",_=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,z=m("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",_).replace("tag",q).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),T=m(v).replace("hr",x).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),R={blockquote:m(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",T).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:A,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:x,html:z,lheading:w,list:j,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:T,table:g,text:/^[^\n]+/},P=m("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",x).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),C={...R,lheading:$,table:P,paragraph:m(v).replace("hr",x).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",P).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex()},O={...R,html:m("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",_).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:g,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:m(v).replace("hr",x).replace("heading"," *#{1,6} *[^\n]").replace("lheading",w).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},M=/^( {2,}|\\)\n(?!\s*$)/,E=/[\p{P}\p{S}]/u,N=/[\s\p{P}\p{S}]/u,L=/[^\s\p{P}\p{S}]/u,D=m(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,N).getRegex(),B=/(?!~)[\p{P}\p{S}]/u,U=m(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",k?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Z=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,F=m(Z,"u").replace(/punct/g,E).getRegex(),J=m(Z,"u").replace(/punct/g,B).getRegex(),X="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Q=m(X,"gu").replace(/notPunctSpace/g,L).replace(/punctSpace/g,N).replace(/punct/g,E).getRegex(),H=m(X,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,B).getRegex(),Y=m("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,L).replace(/punctSpace/g,N).replace(/punct/g,E).getRegex(),G=m(/\\(punct)/,"gu").replace(/punct/g,E).getRegex(),V=m(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),W=m(_).replace("(?:--\x3e|$)","--\x3e").getRegex(),K=m("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",W).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),tt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,et=m(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",tt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),nt=m(/^!?\[(label)\]\[(ref)\]/).replace("label",tt).replace("ref",S).getRegex(),rt=m(/^!?\[(ref)\](?:\[\])?/).replace("ref",S).getRegex(),st=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,it={t:g,anyPunctuation:G,autolink:V,blockSkip:U,br:M,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:g,emStrongLDelim:F,emStrongRDelimAst:Q,emStrongRDelimUnd:Y,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:et,nolink:rt,punctuation:D,reflink:nt,reflinkSearch:m("reflink|nolink(?!\\()","g").replace("reflink",nt).replace("nolink",rt).getRegex(),tag:K,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:g},ot={...it,link:m(/^!?\[(label)\]\((.*?)\)/).replace("label",tt).getRegex(),reflink:m(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",tt).getRegex()},at={...it,emStrongRDelimAst:H,emStrongLDelim:J,url:m(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",st).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),t:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:m(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",st).getRegex()},lt={...at,br:m(M).replace("{2,}","*").getRegex(),text:m(at.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ct={normal:R,gfm:C,pedantic:O},ut={normal:it,gfm:at,breaks:lt,pedantic:ot},ht={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},pt=t=>ht[t];function ft(t,e){if(e){if(b.escapeTest.test(t))return t.replace(b.escapeReplace,pt)}else if(b.escapeTestNoEncode.test(t))return t.replace(b.escapeReplaceNoEncode,pt);return t}function dt(t){try{t=encodeURI(t).replace(b.percentDecode,"%")}catch{return null}return t}function gt(t,e){let n=t.replace(b.findPipe,(t,e,n)=>{let r=!1,s=e;for(;--s>=0&&"\\"===n[s];)r=!r;return r?"|":" |"}).split(b.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;e>n.length;)n.push("");for(;n.length>r;r++)n[r]=n[r].trim().replace(b.slashPipe,"|");return n}function mt(t,e,n){let r=t.length;if(0===r)return"";let s=0;for(;r>s&&t.charAt(r-s-1)===e;)s++;return t.slice(0,r-s)}function kt(t,e,n,r,s){let i=e.href,o=e.title||null,a=t[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===t[0].charAt(0)?"image":"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}var bt=class{options;rules;lexer;constructor(t){this.options=t||f}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:mt(t,"\n")}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let t=e[0],n=function(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(null===r)return e;let s=r[1];return e.split("\n").map(t=>{let e=t.match(n.other.beginningSpace);if(null===e)return t;let[r]=e;return s.length>r.length?t:t.slice(s.length)}).join("\n")}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let e=mt(t,"#");(this.options.pedantic||!e||this.rules.other.endingSpaceChar.test(e))&&(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:mt(e[0],"\n")}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let t=mt(e[0],"\n").split("\n"),n="",r="",s=[];for(;t.length>0;){let e,i=!1,o=[];for(e=0;t.length>e;e++)if(this.rules.other.blockquoteStart.test(t[e]))o.push(t[e]),i=!0;else{if(i)break;o.push(t[e])}t=t.slice(e);let a=o.join("\n"),l=a.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${a}`:a,r=r?`${r}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,s,!0),this.lexer.state.top=c,0===t.length)break;let u=s.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){let e=u,i=e.raw+"\n"+t.join("\n"),o=this.blockquote(i);s[s.length-1]=o,n=n.substring(0,n.length-e.raw.length)+o.raw,r=r.substring(0,r.length-e.text.length)+o.text;break}if("list"===u?.type){let e=u,i=e.raw+"\n"+t.join("\n"),o=this.list(i);s[s.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-e.raw.length)+o.raw,t=i.substring(s.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:s,text:r}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?"\\d{1,9}\\"+n.slice(-1):"\\"+n,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),o=!1;for(;t;){let n=!1,r="",a="";if(!(e=i.exec(t))||this.rules.block.hr.test(t))break;r=e[0],t=t.substring(r.length);let l=e[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),c=t.split("\n",1)[0],u=!l.trim(),h=0;if(this.options.pedantic?(h=2,a=l.trimStart()):u?h=e[1].length+1:(h=e[2].search(this.rules.other.nonSpaceChar),h=h>4?1:h,a=l.slice(h),h+=e[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",t=t.substring(c.length+1),n=!0),!n){let e=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),s=this.rules.other.fencesBeginRegex(h),i=this.rules.other.headingBeginRegex(h),o=this.rules.other.htmlBeginRegex(h);for(;t;){let p,f=t.split("\n",1)[0];if(c=f,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),p=c):p=c.replace(this.rules.other.tabCharGlobal," "),s.test(c)||i.test(c)||o.test(c)||e.test(c)||n.test(c))break;if(p.search(this.rules.other.nonSpaceChar)<h&&c.trim()){if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||s.test(l)||i.test(l)||n.test(l))break;a+="\n"+c}else a+="\n"+p.slice(h);!u&&!c.trim()&&(u=!0),r+=f+"\n",t=t.substring(f.length+1),l=p.slice(h)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let p,f=null;this.options.gfm&&(f=this.rules.other.listIsTask.exec(a),f&&(p="[ ] "!==f[0],a=a.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:r,task:!!f,checked:p,loose:!1,text:a,tokens:[]}),s.raw+=r}let a=s.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),s.raw=s.raw.trimEnd();for(let t=0;s.items.length>t;t++)if(this.lexer.state.top=!1,s.items[t].tokens=this.lexer.blockTokens(s.items[t].text,[]),!s.loose){let e=s.items[t].tokens.filter(t=>"space"===t.type),n=e.length>0&&e.some(t=>this.rules.other.anyLine.test(t.raw));s.loose=n}if(s.loose)for(let t=0;s.items.length>t;t++)s.items[t].loose=!0;return s}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:n,title:r}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=gt(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let t of r)this.rules.other.tableAlignRight.test(t)?i.align.push("right"):this.rules.other.tableAlignCenter.test(t)?i.align.push("center"):this.rules.other.tableAlignLeft.test(t)?i.align.push("left"):i.align.push(null);for(let t=0;n.length>t;t++)i.header.push({text:n[t],tokens:this.lexer.inline(n[t]),header:!0,align:i.align[t]});for(let t of s)i.rows.push(gt(t,i.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:i.align[e]})));return i}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let t="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let e=mt(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{let t=function(t){if(-1===t.indexOf(")"))return-1;let e=0;for(let n=0;t.length>n;n++)if("\\"===t[n])n++;else if("("===t[n])e++;else if(")"===t[n]&&(e--,0>e))return n;return e>0?-2:-1}(e[2]);if(-2===t)return;if(t>-1){let n=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,n).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){let t=this.rules.other.pedanticHrefTitle.exec(n);t&&(n=t[1],r=t[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?n.slice(1):n.slice(1,-1)),kt(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let t=e[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){let t=n[0].charAt(0);return{type:"text",raw:t,text:t}}return kt(n,t,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let n,s,i=[...r[0]].length-1,o=i,a=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+i);null!=(r=l.exec(e));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(s=[...n].length,r[3]||r[4]){o+=s;continue}if((r[5]||r[6])&&i%3&&!((i+s)%3)){a+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o+a);let e=[...r[0]][0].length,l=t.slice(0,i+r.index+e+s);if(Math.min(i,s)%2){let t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return n&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let t,n;return"@"===e[2]?(t=e[1],n="mailto:"+t):(t=e[1],n=t),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,n;if("@"===e[2])t=e[0],n="mailto:"+t;else{let r;do{r=e[0],e[0]=this.rules.inline.t.exec(e[0])?.[0]??""}while(r!==e[0]);t=e[0],n="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],escaped:this.lexer.state.inRawBlock}}},xt=class t{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||f,this.options.tokenizer=this.options.tokenizer||new bt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={other:b,block:ct.normal,inline:ut.normal};this.options.pedantic?(e.block=ct.pedantic,e.inline=ut.pedantic):this.options.gfm&&(e.block=ct.gfm,e.inline=this.options.breaks?ut.breaks:ut.gfm),this.tokenizer.rules=e}static get rules(){return{block:ct,inline:ut}}static lex(e,n){return new t(n).lex(e)}static lexInline(e,n){return new t(n).inlineTokens(e)}lex(t){t=t.replace(b.carriageReturn,"\n"),this.blockTokens(t,this.tokens);for(let t=0;this.inlineQueue.length>t;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],n=!1){for(this.options.pedantic&&(t=t.replace(b.tabCharGlobal," ").replace(b.spaceLine,""));t;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))continue;if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length);let n=e.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":e.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length);let n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):e.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length);let n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},e.push(r));continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),e.push(r);continue}let s=t;if(this.options.extensions?.startBlock){let e,n=1/0,r=t.slice(1);this.options.extensions.startBlock.forEach(t=>{e=t.call({lexer:this},r),"number"==typeof e&&e>=0&&(n=Math.min(n,e))}),1/0>n&&n>=0&&(s=t.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(s))){let i=e.at(-1);n&&"paragraph"===i?.type?(i.raw+=(i.raw.endsWith("\n")?"":"\n")+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):e.push(r),n=s.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length);let n=e.at(-1);"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):e.push(r);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let n,r=t,s=null;if(this.tokens.links){let t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(r));)t.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,s.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(r));)n=s[2]?s[2].length:0,r=r.slice(0,s.index+n)+"["+"a".repeat(s[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let i=!1,o="";for(;t;){let n;if(i||(o=""),i=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))continue;if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length);let r=e.at(-1);"text"===n.type&&"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);continue}if(n=this.tokenizer.emStrong(t,r,o)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.autolink(t)){t=t.substring(n.raw.length),e.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),e.push(n);continue}let s=t;if(this.options.extensions?.startInline){let e,n=1/0,r=t.slice(1);this.options.extensions.startInline.forEach(t=>{e=t.call({lexer:this},r),"number"==typeof e&&e>=0&&(n=Math.min(n,e))}),1/0>n&&n>=0&&(s=t.substring(0,n+1))}if(n=this.tokenizer.inlineText(s)){t=t.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(o=n.raw.slice(-1)),i=!0;let r=e.at(-1);"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return e}},yt=class{options;parser;constructor(t){this.options=t||f}space(t){return""}code({text:t,lang:e,escaped:n}){let r=(e||"").match(b.notSpaceStart)?.[0],s=t.replace(b.endingNewline,"")+"\n";return r?'<pre><code class="language-'+ft(r)+'">'+(n?s:ft(s,!0))+"</code></pre>\n":"<pre><code>"+(n?s:ft(s,!0))+"</code></pre>\n"}blockquote({tokens:t}){return`<blockquote>\n${this.parser.parse(t)}</blockquote>\n`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>\n`}hr(t){return"<hr>\n"}list(t){let e=t.ordered,n=t.start,r="";for(let e=0;t.items.length>e;e++)r+=this.listitem(t.items[e]);let s=e?"ol":"ul";return"<"+s+(e&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+s+">\n"}listitem(t){let e="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?"paragraph"===t.tokens[0]?.type?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=n+" "+ft(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):e+=n+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>\n`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>\n`}table(t){let e="",n="";for(let e=0;t.header.length>e;e++)n+=this.tablecell(t.header[e]);e+=this.tablerow({text:n});let r="";for(let e=0;t.rows.length>e;e++){let s=t.rows[e];n="";for(let t=0;s.length>t;t++)n+=this.tablecell(s[t]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+r+"</table>\n"}tablerow({text:t}){return`<tr>\n${t}</tr>\n`}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${ft(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let r=this.parser.parseInline(n),s=dt(t);if(null===s)return r;let i='<a href="'+(t=s)+'"';return e&&(i+=' title="'+ft(e)+'"'),i+=">"+r+"</a>",i}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let s=dt(t);if(null===s)return ft(n);let i=`<img src="${t=s}" alt="${n}"`;return e&&(i+=` title="${ft(e)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ft(t.text)}},It=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},wt=class t{options;renderer;textRenderer;constructor(t){this.options=t||f,this.options.renderer=this.options.renderer||new yt,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new It}static parse(e,n){return new t(n).parse(e)}static parseInline(e,n){return new t(n).parseInline(e)}parse(t,e=!0){let n="";for(let r=0;t.length>r;r++){let s=t[r];if(this.options.extensions?.renderers?.[s.type]){let t=s,e=this.options.extensions.renderers[t.type].call({parser:this},t);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(t.type)){n+=e||"";continue}}let i=s;switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"def":n+=this.renderer.def(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let s=i,o=this.renderer.text(s);for(;t.length>r+1&&"text"===t[r+1].type;)s=t[++r],o+="\n"+this.renderer.text(s);n+=e?this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o,escaped:!0}]}):o;continue}default:{let t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return n}parseInline(t,e=this.renderer){let n="";for(let r=0;t.length>r;r++){let s=t[r];if(this.options.extensions?.renderers?.[s.type]){let t=this.options.extensions.renderers[s.type].call({parser:this},s);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=t||"";continue}}let i=s;switch(i.type){case"escape":case"text":n+=e.text(i);break;case"html":n+=e.html(i);break;case"link":n+=e.link(i);break;case"image":n+=e.image(i);break;case"strong":n+=e.strong(i);break;case"em":n+=e.em(i);break;case"codespan":n+=e.codespan(i);break;case"br":n+=e.br(i);break;case"del":n+=e.del(i);break;default:{let t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return n}},$t=class{options;block;constructor(t){this.options=t||f}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?xt.lex:xt.lexInline}provideParser(){return this.block?wt.parse:wt.parseInline}},vt=class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=wt;Renderer=yt;TextRenderer=It;Lexer=xt;Tokenizer=bt;Hooks=$t;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":{let t=r;for(let r of t.header)n=n.concat(this.walkTokens(r.tokens,e));for(let r of t.rows)for(let t of r)n=n.concat(this.walkTokens(t.tokens,e));break}case"list":n=n.concat(this.walkTokens(r.items,e));break;default:{let t=r;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(r=>{let s=t[r].flat(1/0);n=n.concat(this.walkTokens(s,e))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{let n={...t};if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw Error("extension name required");if("renderer"in t){let n=e.renderers[t.name];e.renderers[t.name]=n?function(...e){let r=t.renderer.apply(this,e);return!1===r&&(r=n.apply(this,e)),r}:t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw Error("extension level must be 'block' or 'inline'");let n=e[t.level];n?n.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),n.extensions=e),t.renderer){let e=this.defaults.renderer||new yt(this.defaults);for(let n in t.renderer){if(!(n in e))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=t.renderer[n],s=e[n];e[n]=(...t)=>{let n=r.apply(e,t);return!1===n&&(n=s.apply(e,t)),n||""}}n.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new bt(this.defaults);for(let n in t.tokenizer){if(!(n in e))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=t.tokenizer[n],s=e[n];e[n]=(...t)=>{let n=r.apply(e,t);return!1===n&&(n=s.apply(e,t)),n}}n.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new $t;for(let n in t.hooks){if(!(n in e))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=t.hooks[n],s=e[n];e[n]=$t.passThroughHooks.has(n)?t=>{if(this.defaults.async&&$t.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(e,t);return s.call(e,n)})();let i=r.call(e,t);return s.call(e,i)}:(...t)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(e,t);return!1===n&&(n=await s.apply(e,t)),n})();let n=r.apply(e,t);return!1===n&&(n=s.apply(e,t)),n}}n.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,r=t.walkTokens;n.walkTokens=function(t){let n=[];return n.push(r.call(this,t)),e&&(n=n.concat(e.call(this,t))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return xt.lex(t,e??this.defaults)}parser(t,e){return wt.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let r={...n},s={...this.defaults,...r},i=this.onError(!!s.silent,!!s.async);if(!0===this.defaults.async&&!1===r.async)return i(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||null===e)return i(Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return i(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let n=s.hooks?await s.hooks.preprocess(e):e,r=await(s.hooks?await s.hooks.provideLexer():t?xt.lex:xt.lexInline)(n,s),i=s.hooks?await s.hooks.processAllTokens(r):r;s.walkTokens&&await Promise.all(this.walkTokens(i,s.walkTokens));let o=await(s.hooks?await s.hooks.provideParser():t?wt.parse:wt.parseInline)(i,s);return s.hooks?await s.hooks.postprocess(o):o})().catch(i);try{s.hooks&&(e=s.hooks.preprocess(e));let n=(s.hooks?s.hooks.provideLexer():t?xt.lex:xt.lexInline)(e,s);s.hooks&&(n=s.hooks.processAllTokens(n)),s.walkTokens&&this.walkTokens(n,s.walkTokens);let r=(s.hooks?s.hooks.provideParser():t?wt.parse:wt.parseInline)(n,s);return s.hooks&&(r=s.hooks.postprocess(r)),r}catch(t){return i(t)}}}onError(t,e){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",t){let t="<p>An error occurred:</p><pre>"+ft(n.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(n);throw n}}},St=new vt;function At(t,e){return St.parse(t,e)}function jt(t,e,n,r){return new(n||(n=Promise))(function(s,i){function o(t){try{l(r.next(t))}catch(t){i(t)}}function a(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}l((r=r.apply(t,e||[])).next())})}At.options=At.setOptions=function(t){return St.setOptions(t),d(At.defaults=St.defaults),At},At.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},At.defaults=f,At.use=function(...t){return St.use(...t),d(At.defaults=St.defaults),At},At.walkTokens=function(t,e){return St.walkTokens(t,e)},At.parseInline=St.parseInline,At.Parser=wt,At.parser=wt.parse,At.Renderer=yt,At.TextRenderer=It,At.Lexer=xt,At.lexer=xt.lex,At.Tokenizer=bt,At.Hooks=$t,At.parse=At,"function"==typeof SuppressedError&&SuppressedError;const qt=Bt;function _t(){const t=["substr","renderMarkdownCompactCalls","lastReportedAt","[mmarked] Validation cache cleared","xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx","96417IkoSth","stringify","clear","nodeVersion","message","Network error during validation","[mmarked] Usage stats reset","get","debug","435944KHnEjj","20sZZUWg","[mmarked] License validation failed:","[mmarked] ⚠️ Remote license validation not supported on Node.js ","https://api.mathcrowd.cn/validate-license",'" data-timestamp="',"catch","replace","mmarked","2.0.3","then","current version","firstUsedAt","renderMarkdown","1448034JPcGYb","log","27308ukqwwL","Validation failed: ","undefined","22AbsLNR","POST","lastUsedAt","random","1289104jJImDF","set","totalCalls","assign","[mmarked] License configured successfully","valid","34044EheyPR","Either upgrade to Node.js 18+, use a custom validator, or configure offline mode.","renderMarkdownCalls","sessionId","Requires Node.js 18+ for fetch API support. ","[mmarked] Initial usage reporting error:","warn","apiKey","[mmarked] Usage statistics reported successfully","4113081iJIOOO","randomUUID","result","application/json","now","session-","renderMarkdownCompact",'">\n <defs>\n <style type="text/css">\n .mjx-warning-text { font-family: Arial, sans-serif; font-size: 14px; fill: #856404; }\n .mjx-warning-link { font-family: Arial, sans-serif; font-size: 14px; fill: #0066cc; text-decoration: underline; cursor: pointer; }\n </style>\n </defs>\n <rect width="800" height="80" fill="#fff3cd" stroke="#ffc107" stroke-width="1" rx="4"/>\n <text x="20" y="25" class="mjx-warning-text" font-weight="bold">⚠️ Non-Commercial Use Only</text>\n <text x="20" y="45" class="mjx-warning-text">This content uses @mathcrowd/mmarked without valid commercial license.</text>\n <text x="20" y="65" class="mjx-warning-text">For commercial use, contact: </text>\n <a href="mailto:charles@mathcrowd.cn">\n <text x="220" y="65" class="mjx-warning-link">charles@mathcrowd.cn</text>\n </a>\n</svg>',"node","crypto",'<svg xmlns="http://www.w3.org/2000/svg" class="MJX-svg-equation" role="img" focusable="false" viewBox="0 0 800 80" style="vertical-align: -0.5ex; margin: 1em 0; max-width: 100%; display: block;" aria-label="Non-commercial use warning" data-formula-id="',"[mmarked] Remote validation failed:","versions","toString","timestamp"];return(_t=function(){return t})()}function zt(){const t=Bt;if(!Et())return"browser-session";try{if(typeof require!==t(330)){const e=require(t(292));if(e.randomUUID)return e[t(284)]()}return t(302)[t(319)](/[xy]/g,function(e){const n=t,r=16*Math[n(267)]()|0;return("x"===e?r:3&r|8)[n(296)](16)})}catch(e){return t(288)+Date[t(287)]()+"-"+Math[t(267)]().toString(36)[t(298)](2,9)}}!function(){const t=Bt,e=_t();for(;;)try{if(157228==-parseInt(t(331))/1*(-parseInt(t(328))/2)+parseInt(t(303))/3+-parseInt(t(312))/4+-parseInt(t(313))/5*(-parseInt(t(274))/6)+parseInt(t(326))/7+parseInt(t(268))/8+-parseInt(t(283))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),exports.UNLICENSED_WARNING_INTERVAL=1e3;let Tt=null;const Rt=new Map;let Pt=!1;const Ct=qt(316),Ot={totalCalls:0,renderMarkdownCalls:0,renderMarkdownCompactCalls:0,firstUsedAt:Date[qt(287)](),lastUsedAt:Date[qt(287)](),sessionId:zt()};let Mt=null;function Et(){const t=qt;return typeof process!==t(330)&&null!=process[t(295)]&&null!=process.versions[t(291)]}function Nt(){return jt(this,void 0,void 0,function*(){const t=Bt;var e;if(!Et())return;const n=Tt;if(!n||!n[t(281)])return;const r=Date.now();if(!Ot[t(300)]||r-Ot[t(300)]>=18e5)try{const s=Object[t(271)](Object[t(271)]({},Ot),{apiKey:n[t(281)],timestamp:r,nodeVersion:null===(e=process[t(295)])||void 0===e?void 0:e.node});typeof fetch!==t(330)&&(yield fetch("https://api.mathcrowd.cn/report-usage",{method:"POST",headers:{"Content-Type":t(286)},body:JSON[t(304)](s)}),Ot[t(300)]=r,console[t(311)](t(282)))}catch(e){console[t(311)]("[mmarked] Failed to report usage statistics:",e)}})}function Lt(t){const e=qt;var n;Et()&&(Ot[e(270)]++,Ot[e(333)]=Date[e(287)](),t===e(325)?Ot[e(276)]++:t===e(289)&&Ot[e(299)]++,(null==Tt?void 0:Tt[e(281)])&&(Ot.apiKey=Tt[e(281)],Ot[e(306)]=null===(n=process[e(295)])||void 0===n?void 0:n.node))}function Dt(){const t=qt;return!Et()||Zt()?"":Ot[t(270)]>0&&Ot.totalCalls%exports.UNLICENSED_WARNING_INTERVAL===0?function(){const t=qt,e=Date.now(),n=Math[t(267)]()[t(296)](36).substring(2,9);return t(293)+n+t(317)+e+t(290)}():""}function Bt(t,e){return t-=267,_t()[t]}function Ut(){return jt(this,void 0,void 0,function*(){const t=Bt,e=Tt;if(!e||!e[t(281)])return{valid:!1,message:"No license configured. Please call configureLicense() with your API key."};const{apiKey:n}=e,r=Rt[t(310)](n);if(r&&36e5>Date.now()-r[t(297)])return{valid:r[t(285)]};const s=yield function(t,e){return jt(this,void 0,void 0,function*(){const n=Bt;var r;try{if(typeof fetch===n(330)){const t=null===(r=process[n(295)])||void 0===r?void 0:r[n(291)];return console[n(280)](n(315)+(t||n(323))+". "+n(278)+n(275)),{valid:!1,message:"Fetch API not available. Requires Node.js 18+ or use custom validator."}}const s=yield fetch(e,{method:n(332),headers:{"Content-Type":"application/json"},body:JSON[n(304)]({apiKey:t,product:n(320),version:n(321)})});return s.ok?yield s.json():{valid:!1,message:n(329)+s.statusText}}catch(t){return console[n(280)](n(294),t),{valid:!1,message:n(308)}}})}(n,Ct);return Rt[t(269)](n,{result:s[t(273)],timestamp:Date[t(287)]()}),s})}function Zt(){const t=qt;return!!Et()&&!(!Tt||!Tt[t(281)]||(!Pt&&(Pt=!0,Ut()[t(322)](e=>{const n=t;return!e.valid&&console.warn(n(314),e[n(307)]),e})[t(318)](t=>{throw console.error("[mmarked] License validation error:",t),t})),0))}var Ft,Jt,Xt="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Qt={exports:{}},Ht=(Ft||(Ft=1,Jt=Qt,function(){var n="input is invalid type",r="object"==typeof window,s=r?window:{};s.JS_MD5_NO_WINDOW&&(r=!1);var i=!r&&"object"==typeof self,o=!s.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;o?s=Xt:i&&(s=self);var a,l=!s.JS_MD5_NO_COMMON_JS&&Jt.exports,c=!s.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,u="0123456789abcdef".split(""),h=[128,32768,8388608,-2147483648],p=[0,8,16,24],f=["hex","array","digest","buffer","arrayBuffer","base64"],d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),g=[];if(c){var m=new ArrayBuffer(68);a=new Uint8Array(m),g=new Uint32Array(m)}var k=Array.isArray;!s.JS_MD5_NO_NODE_JS&&k||(k=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var b=ArrayBuffer.isView;!c||!s.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&b||(b=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var x=function(t){var e=typeof t;if("string"===e)return[t,!0];if("object"!==e||null===t)throw Error(n);if(c&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!k(t)&&!b(t))throw Error(n);return[t,!1]},y=function(t){return function(e){return new w(!0).update(e)[t]()}},I=function(t){return function(e,n){return new $(e,!0).update(n)[t]()}};function w(t){if(t)g[0]=g[16]=g[1]=g[2]=g[3]=g[4]=g[5]=g[6]=g[7]=g[8]=g[9]=g[10]=g[11]=g[12]=g[13]=g[14]=g[15]=0,this.blocks=g,this.buffer8=a;else if(c){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function $(t,e){var n,r=x(t);if(t=r[0],r[1]){var s,i=[],o=t.length,a=0;for(n=0;o>n;++n)128>(s=t.charCodeAt(n))?i[a++]=s:2048>s?(i[a++]=192|s>>>6,i[a++]=128|63&s):55296>s||s>=57344?(i[a++]=224|s>>>12,i[a++]=128|s>>>6&63,i[a++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++n)),i[a++]=240|s>>>18,i[a++]=128|s>>>12&63,i[a++]=128|s>>>6&63,i[a++]=128|63&s);t=i}t.length>64&&(t=new w(!0).update(t).array());var l=[],c=[];for(n=0;64>n;++n){var u=t[n]||0;l[n]=92^u,c[n]=54^u}w.call(this,e),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=e}w.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");for(var e,n,r=x(t),s=r[1],i=0,o=(t=r[0]).length,a=this.blocks,l=this.buffer8;o>i;){if(this.hashed&&(this.hashed=!1,a[0]=a[16],a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),s)if(c)for(n=this.start;o>i&&64>n;++i)128>(e=t.charCodeAt(i))?l[n++]=e:2048>e?(l[n++]=192|e>>>6,l[n++]=128|63&e):55296>e||e>=57344?(l[n++]=224|e>>>12,l[n++]=128|e>>>6&63,l[n++]=128|63&e):(e=65536+((1023&e)<<10|1023&t.charCodeAt(++i)),l[n++]=240|e>>>18,l[n++]=128|e>>>12&63,l[n++]=128|e>>>6&63,l[n++]=128|63&e);else for(n=this.start;o>i&&64>n;++i)128>(e=t.charCodeAt(i))?a[n>>>2]|=e<<p[3&n++]:2048>e?(a[n>>>2]|=(192|e>>>6)<<p[3&n++],a[n>>>2]|=(128|63&e)<<p[3&n++]):55296>e||e>=57344?(a[n>>>2]|=(224|e>>>12)<<p[3&n++],a[n>>>2]|=(128|e>>>6&63)<<p[3&n++],a[n>>>2]|=(128|63&e)<<p[3&n++]):(e=65536+((1023&e)<<10|1023&t.charCodeAt(++i)),a[n>>>2]|=(240|e>>>18)<<p[3&n++],a[n>>>2]|=(128|e>>>12&63)<<p[3&n++],a[n>>>2]|=(128|e>>>6&63)<<p[3&n++],a[n>>>2]|=(128|63&e)<<p[3&n++]);else if(c)for(n=this.start;o>i&&64>n;++i)l[n++]=t[i];else for(n=this.start;o>i&&64>n;++i)a[n>>>2]|=t[i]<<p[3&n++];this.lastByteIndex=n,this.bytes+=n-this.start,64>n?this.start=n:(this.start=n-64,this.hash(),this.hashed=!0)}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},w.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>>2]|=h[3&e],56>e||(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},w.prototype.hash=function(){var t,e,n,r,s,i,o=this.blocks;this.first?e=((e=((t=((t=o[0]-680876937)<<7|t>>>25)-271733879|0)^(n=((n=(-271733879^(r=((r=(-1732584194^2004318071&t)+o[1]-117830708)<<12|r>>>20)+t|0)&(-271733879^t))+o[2]-1126478375)<<17|n>>>15)+r|0)&(r^t))+o[3]-1316259209)<<22|e>>>10)+n|0:(t=this.h0,e=this.h1,e=((e+=((t=((t+=((r=this.h3)^e&((n=this.h2)^r))+o[0]-680876936)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[1]-389564586)<<12|r>>>20)+t|0)&(t^e))+o[2]+606105819)<<17|n>>>15)+r|0)&(r^t))+o[3]-1044525330)<<22|e>>>10)+n|0),e=((e+=((t=((t+=(r^e&(n^r))+o[4]-176418897)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[5]+1200080426)<<12|r>>>20)+t|0)&(t^e))+o[6]-1473231341)<<17|n>>>15)+r|0)&(r^t))+o[7]-45705983)<<22|e>>>10)+n|0,e=((e+=((t=((t+=(r^e&(n^r))+o[8]+1770035416)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[9]-1958414417)<<12|r>>>20)+t|0)&(t^e))+o[10]-42063)<<17|n>>>15)+r|0)&(r^t))+o[11]-1990404162)<<22|e>>>10)+n|0,e=((e+=((t=((t+=(r^e&(n^r))+o[12]+1804603682)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[13]-40341101)<<12|r>>>20)+t|0)&(t^e))+o[14]-1502002290)<<17|n>>>15)+r|0)&(r^t))+o[15]+1236535329)<<22|e>>>10)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[1]-165796510)<<5|t>>>27)+e|0)^e))+o[6]-1069501632)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[11]+643717713)<<14|n>>>18)+r|0)^r))+o[0]-373897302)<<20|e>>>12)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[5]-701558691)<<5|t>>>27)+e|0)^e))+o[10]+38016083)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[15]-660478335)<<14|n>>>18)+r|0)^r))+o[4]-405537848)<<20|e>>>12)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[9]+568446438)<<5|t>>>27)+e|0)^e))+o[14]-1019803690)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[3]-187363961)<<14|n>>>18)+r|0)^r))+o[8]+1163531501)<<20|e>>>12)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[13]-1444681467)<<5|t>>>27)+e|0)^e))+o[2]-51403784)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[7]+1735328473)<<14|n>>>18)+r|0)^r))+o[12]-1926607734)<<20|e>>>12)+n|0,e=((e+=((i=(r=((r+=((s=e^n)^(t=((t+=(s^r)+o[5]-378558)<<4|t>>>28)+e|0))+o[8]-2022574463)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+o[11]+1839030562)<<16|n>>>16)+r|0))+o[14]-35309556)<<23|e>>>9)+n|0,e=((e+=((i=(r=((r+=((s=e^n)^(t=((t+=(s^r)+o[1]-1530992060)<<4|t>>>28)+e|0))+o[4]+1272893353)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+o[7]-155497632)<<16|n>>>16)+r|0))+o[10]-1094730640)<<23|e>>>9)+n|0,e=((e+=((i=(r=((r+=((s=e^n)^(t=((t+=(s^r)+o[13]+681279174)<<4|t>>>28)+e|0))+o[0]-358537222)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+o[3]-722521979)<<16|n>>>16)+r|0))+o[6]+76029189)<<23|e>>>9)+n|0,e=((e+=((i=(r=((r+=((s=e^n)^(t=((t+=(s^r)+o[9]-640364487)<<4|t>>>28)+e|0))+o[12]-421815835)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+o[15]+530742520)<<16|n>>>16)+r|0))+o[2]-995338651)<<23|e>>>9)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[0]-198630844)<<6|t>>>26)+e|0)|~n))+o[7]+1126891415)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[14]-1416354905)<<15|n>>>17)+r|0)|~t))+o[5]-57434055)<<21|e>>>11)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[12]+1700485571)<<6|t>>>26)+e|0)|~n))+o[3]-1894986606)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[10]-1051523)<<15|n>>>17)+r|0)|~t))+o[1]-2054922799)<<21|e>>>11)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[8]+1873313359)<<6|t>>>26)+e|0)|~n))+o[15]-30611744)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[6]-1560198380)<<15|n>>>17)+r|0)|~t))+o[13]+1309151649)<<21|e>>>11)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[4]-145523070)<<6|t>>>26)+e|0)|~n))+o[11]-1120210379)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[2]+718787259)<<15|n>>>17)+r|0)|~t))+o[9]-343485551)<<21|e>>>11)+n|0,this.first?(this.h0=t+1732584193|0,this.h1=e-271733879|0,this.h2=n-1732584194|0,this.h3=r+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+e|0,this.h2=this.h2+n|0,this.h3=this.h3+r|0)},w.prototype.toString=w.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3;return u[t>>>4&15]+u[15&t]+u[t>>>12&15]+u[t>>>8&15]+u[t>>>20&15]+u[t>>>16&15]+u[t>>>28&15]+u[t>>>24&15]+u[e>>>4&15]+u[15&e]+u[e>>>12&15]+u[e>>>8&15]+u[e>>>20&15]+u[e>>>16&15]+u[e>>>28&15]+u[e>>>24&15]+u[n>>>4&15]+u[15&n]+u[n>>>12&15]+u[n>>>8&15]+u[n>>>20&15]+u[n>>>16&15]+u[n>>>28&15]+u[n>>>24&15]+u[r>>>4&15]+u[15&r]+u[r>>>12&15]+u[r>>>8&15]+u[r>>>20&15]+u[r>>>16&15]+u[r>>>28&15]+u[r>>>24&15]},w.prototype.array=w.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&n,n>>>8&255,n>>>16&255,n>>>24&255,255&r,r>>>8&255,r>>>16&255,r>>>24&255]},w.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},w.prototype.buffer=w.prototype.arrayBuffer,w.prototype.base64=function(){for(var t,e,n,r="",s=this.array(),i=0;15>i;)t=s[i++],e=s[i++],n=s[i++],r+=d[t>>>2]+d[63&(t<<4|e>>>4)]+d[63&(e<<2|n>>>6)]+d[63&n];return r+(d[(t=s[i])>>>2]+d[t<<4&63]+"==")},($.prototype=new w).finalize=function(){if(w.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();w.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),w.prototype.finalize.call(this)}};var v=function(){var r=y("hex");o&&(r=function(r){var i,o=t,a=e.Buffer;return i=a.from&&!s.JS_MD5_NO_BUFFER_FROM?a.from:function(t){return new a(t)},function(t){if("string"==typeof t)return o.createHash("md5").update(t,"utf8").digest("hex");if(null==t)throw Error(n);return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),k(t)||b(t)||t.constructor===a?o.createHash("md5").update(i(t)).digest("hex"):r(t)}}(r)),r.create=function(){return new w},r.update=function(t){return r.create().update(t)};for(var i=0;f.length>i;++i){var a=f[i];r[a]=y(a)}return r}();v.md5=v,v.md5.hmac=function(){var t=I("hex");t.create=function(t){return new $(t)},t.update=function(e,n){return t.create(e).update(n)};for(var e=0;f.length>e;++e){var n=f[e];t[n]=I(n)}return t}(),l?Jt.exports=v:s.md5=v}()),Qt.exports);function Yt(t){const e=Gt;try{t=encodeURI(t)[e(256)](/%25/g,"%")}catch(t){return null}return t}function Gt(t,e){return t-=249,te()[t]}!function(){const t=Gt,e=te();for(;;)try{if(783023==parseInt(t(254))/1+-parseInt(t(258))/2*(parseInt(t(272))/3)+-parseInt(t(255))/4+parseInt(t(257))/5+-parseInt(t(274))/6+-parseInt(t(260))/7*(parseInt(t(268))/8)+-parseInt(t(261))/9*(-parseInt(t(265))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Vt={exec:()=>null};function Wt(t,e){const n=Gt;let r=typeof t===n(262)?t:t[n(252)];e=e||"";const s={replace:(t,e)=>{let i="string"==typeof e?e:e[n(252)];return i=i.replace(/(^|[^[])\^/g,"$1"),r=r.replace(t,i),s},getRegex:()=>RegExp(r,e)};return s}const Kt=t=>{const e=Gt;return/^[a-z][\w-]*$/i[e(264)](t)?t:e(250)+Ht.md5(t)};function te(){const t=["pop","class-","splice","source","indexOf","331677FCJrqq","1151672qXCuLP","replace","3465735RlnUdm","2088zoQubr","length","476VGJeOn","21001329bhUJXz","string","node","test","10kWvaDY","versions","trim","19240nxxfMM","shift","charAt","split","3828ZbrXHS","slice","4750080fSrEwF","match"];return(te=function(){return t})()}function ee(t){const e=Gt,n=t[e(275)](/^(.*?)(?:\s*=(\d*)(?:x(\d+))?)?$/);if(n){const t=n[1][e(267)](),r=n[2]?parseInt(n[2],10):null,s=n[3]?parseInt(n[3],10):null;return{text:0===t[e(259)]?null:t,width:r,height:s}}return{text:null,width:null,height:null}}function ne(t,e){const n=Gt,r=t[n(256)](/\|/g,(t,e,n)=>{let r=!1,s=e;for(;--s>=0&&"\\"===n[s];)r=!r;return r?"|":" |"})[n(271)](/ \|/);let s=0;if(!r[0][n(267)]()&&r[n(269)](),r[n(259)]>0&&!r[r[n(259)]-1][n(267)]()&&r[n(249)](),e)if(r[n(259)]>e)r[n(251)](e);else for(;r[n(259)]<e;)r.push("");for(;r.length>s;s++)r[s]=r[s].trim().replace(/\\\|/g,"|");return r}!function(){const t=ie,e=oe();for(;;)try{if(897061==parseInt(t(474))/1*(-parseInt(t(497))/2)+parseInt(t(496))/3*(parseInt(t(493))/4)+-parseInt(t(456))/5*(-parseInt(t(467))/6)+parseInt(t(501))/7*(parseInt(t(455))/8)+-parseInt(t(500))/9*(-parseInt(t(465))/10)+parseInt(t(468))/11+-parseInt(t(498))/12*(parseInt(t(489))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const re={paragraph({tokens:t}){const e=ie;if(1===t[e(480)]&&t[0].type===e(454)){const n=t[0];if(null===Yt(n[e(453)]))return n[e(470)];let r=e(469);if(r+='<section class="img-container">\n',r+=this[e(454)](n)+"\n",r+=e(460),n[e(481)]){const{text:t}=ee(n[e(481)]);t&&(r+=e(471)+t+e(466))}return r+=e(488),r}return e(487)+this[e(462)].parseInline(t)+"</p>\n"},list(t){const e=ie,n=t[e(495)],r=t[e(475)];let s="";for(let n=0;n<t.items[e(480)];n++){const r=t[e(491)][n];s+=this[e(483)](r)}const i=n?"ol":"ul";return"<"+i+(n&&1!==r?e(463)+r+'"':"")+e(479)+">\n"+s+"</"+i+">\n"},listitem(t){const e=ie;let n="";if(t[e(482)]){const r=this[e(478)]({checked:!!t[e(476)]});t.loose?t[e(492)][e(480)]>0&&t[e(492)][0].type===e(499)?(t.tokens[0][e(470)]=r+" "+t[e(492)][0][e(470)],t.tokens[0].tokens&&t[e(492)][0][e(492)][e(480)]>0&&"text"===t[e(492)][0][e(492)][0][e(484)]&&(t.tokens[0][e(492)][0][e(470)]=r+" "+t[e(492)][0].tokens[0][e(470)])):t[e(492)][e(494)]({type:"text",raw:r+" ",text:r+" "}):n+=r+" "}return n+=this[e(462)].parse(t[e(492)],!!t[e(472)]),'<li class="md-list-item">'+n+e(477)},table(t){const e=ie;let n="",r="";for(let n=0;n<t[e(464)][e(480)];n++)r+=this.tablecell(t[e(464)][n]);n+=this[e(490)]({text:r});let s="";for(let n=0;n<t[e(461)][e(480)];n++){const i=t[e(461)][n];r="";for(let t=0;t<i[e(480)];t++)r+=this[e(458)](i[t]);s+=this.tablerow({text:r})}s&&(s="<tbody>"+s+e(452));let i="";return t.caption[e(470)]&&(i="<figcaption>"+this[e(462)][e(459)]([t.caption])+"</figcaption>\n"),"<figure>\n"+e(485)+e(473)+n+"</thead>\n"+s+"</table>\n"+i+e(488)},image(t){const e=ie,n=Yt(t[e(453)]);if(null===n)return t[e(470)];let r='<img src="'+n+e(457)+t[e(470)]+'"';if(t[e(481)]){const{text:n,width:s,height:i}=ee(t[e(481)]);n&&(r+=e(503)+n+'"'),(s||i)&&(r+=e(502),s&&(r+="width:"+s+e(486)),i&&(r+="height:"+i+e(486)),r+='"')}return r+=">",r}},se={};function ie(t,e){return t-=452,oe()[t]}function oe(){const t=["tablerow","items","tokens","444tknAHn","unshift","ordered","5367pMsUSE","226GvpMQB","34514052DOQkKf","paragraph","2151frDIwn","116452AHtfoL",' style="',' title="',"</tbody>\n","href","image","344muDMVN","133200ukPQqU",'" alt="',"tablecell","parseInline","</section>\n","rows","parser",' start="',"header","64890jnIYEH","</figcaption>\n","48JQYnsE","13891823pdpQMf","<figure>\n","text","<figcaption>","loose","<thead>\n","1483kfNfeY","start","checked","</li>\n","checkbox",' class="md-list"',"length","title","task","listitem","type","<table>\n","px;",'<p class="paragraph">',"</figure>\n","13MQGZep"];return(oe=function(){return t})()}function ae(){const t=["|[^punct\\s](\\*+)(?=[^punct\\s])","|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)","email","((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html|\\|\\|[^\\|]+\\|\\|).*(?:\\n|$))*)","|(?!_)[punct\\s](_+)(?=[^punct\\s])","|lheading","code","|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option","|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])","619150bDIpCd","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)","assign","|<\\?[\\s\\S]*?(?:\\?>\\n*|$)","replace","html","scheme","table"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n","|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>"," {0,3}>","|[\\s](\\*+)(?!\\*)(?=[punct])","tag","href","heading","177837HWyNQM","reflink","192478llYXBW"," {0,3}(?:[*+-]|1[.)]) ","|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)","|table","^ *([^\\n ].*)\\n","|(?!_)[punct](_+)(?=[\\s]|$)","4124232YfQNrL","|(?!_)[punct](_+)(?!_)(?=[punct])","list"," {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)\\n","(?: {4}| {0,3}\t)[^\\n]","|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)","232421WQSVpL","|^</[a-zA-Z][\\w:-]*\\s*>","|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption","fences","blockquote","|tr|track|ul","comment","|(?!\\*)[punct](\\*+)(?=[\\s]|$)","paragraph","address|article|aside|base|basefont|blockquote|body|caption","\\p{P}\\p{S}","|^<![a-zA-Z]+\\s[\\s\\S]*?>","attribute"," {0,3}#{1,6}(?:\\s|$)","|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title","6TVevvO","~|])","label","|<![A-Z][\\s\\S]*?(?:>\\n*|$)","183972lSQYyU","reflink|nolink(?!\\()","nolink","840290hQaPPW","ref","title","getRegex","|^<\\?[\\s\\S]*?\\?>"," {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)"];return(ae=function(){return t})()}const le=ce;function ce(t,e){return t-=328,ae()[t]}!function(){const t=ce,e=ae();for(;;)try{if(226651==parseInt(t(350))/1+parseInt(t(333))/2+parseInt(t(348))/3+parseInt(t(381))/4+parseInt(t(384))/5*(parseInt(t(377))/6)+-parseInt(t(362))/7+-parseInt(t(356))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const ue=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,he=/(?:[*+-]|\d{1,9}[.)])/,pe=Wt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,he)[le(337)](/blockCode/g,/(?: {4}| {0,3}\t)/)[le(337)](/fences/g,/ {0,3}(?:`{3,}|~{3,})/)[le(337)](/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/)[le(337)](/html/g,/ {0,3}<[^\n>]+>\n/)[le(387)](),fe=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,de=/(?!\s*\])(?:\\.|[^[\]\\])+/,ge=Wt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s]\S*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/)[le(337)](le(379),de)[le(337)](le(386),/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/)[le(387)](),me=Wt(/^( {0,3}bull)([ \t][^\n]+)?(?:\n|$)/)[le(337)](/bull/g,he)[le(387)](),ke=le(371)+le(364)+"|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe"+le(331)+le(376)+le(367),be=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,xe=Wt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)"+le(336)+le(380)+"|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)"+le(352)+")","i").replace(le(368),be).replace("tag",ke)[le(337)](le(374),/ +[a-z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/i)[le(387)](),ye=Wt(fe)[le(337)]("hr",ue)[le(337)](le(347),le(375))[le(337)](le(329),"")[le(337)](le(353),"")[le(337)](le(366),le(343))[le(337)]("fences",le(341))[le(337)](le(358),le(351)).replace(le(338),"</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)")[le(337)](le(345),ke)[le(387)](),Ie={blockquote:Wt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(le(370),ye)[le(387)](),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:ge,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:ue,html:xe,lheading:pe,list:me,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:ye,table:Vt,text:/^[^\n]+/},we=Wt(le(354)+le(389)+"(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ue).replace(le(347),le(375))[le(337)]("blockquote",le(343))[le(337)](le(330),le(360))[le(337)]("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n")[le(337)](le(358),le(351))[le(337)](le(338),le(334))[le(337)](le(345),ke)[le(387)](),$e=Object[le(335)](Object[le(335)]({},Ie),{table:we,paragraph:Wt(fe)[le(337)]("hr",ue).replace(le(347),le(375))[le(337)](le(329),"").replace(le(340),we)[le(337)](le(366),le(343))[le(337)]("fences",le(341))[le(337)](le(358),le(351))[le(337)](le(338),le(334)).replace(le(345),ke)[le(387)]()}),ve=/^\\([!"#$%&'()*+,\-./:;<=>?@[\]\\^_`{|}~])/,Se=le(372),Ae=Wt(/^((?![*_])[\spunctaio])/,"u")[le(337)](/punctuation/g,Se).getRegex(),je=Wt(/^\*+(?:((?!\*)[punct])|[^\s*])|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Se).getRegex(),qe=Wt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])"+le(369)+le(391)+le(332)+le(344)+"|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])"+le(390),"gu")[le(337)](/punct/g,Se)[le(387)](),_e=Wt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])"+le(355)+le(361)+le(328)+"|[\\s](_+)(?!_)(?=[punct])"+le(357),"gu")[le(337)](/punct/g,Se).getRegex(),ze=Wt(/\\([punct])/,"gu")[le(337)](/punct/g,Se).getRegex(),Te=Wt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace(le(339),/[a-z][a-z\d+.-]{1,31}/i).replace(le(392),/[\w.!#$%&'*+/=?^`{|}~-]+(@)[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)+(?![-_])/i)[le(387)](),Re=Wt(be).replace("(?:--\x3e|$)","--\x3e")[le(387)](),Pe=Wt("^comment"+le(363)+"|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>"+le(388)+le(373)+le(342))[le(337)](le(368),Re)[le(337)](le(374),/\s+[a-z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/i).getRegex(),Ce=/(?:\[(?:\\.|[^[\]\\])*\]|\\.|`[^`]*`|[^[\]\\`])*?/,Oe=Wt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/)[le(337)](le(379),Ce).replace(le(346),/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace(le(386),/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Me=Wt(/^!?\[(label)\]\[(ref)\]/)[le(337)]("label",Ce)[le(337)]("ref",de)[le(387)](),Ee=Wt(/^!?\[(ref)\](?:\[\])?/)[le(337)](le(385),de)[le(387)](),Ne={t:Vt,anyPunctuation:ze,autolink:Te,blockSkip:/\[[^[\]]*\]\((?:\\.|[^\\()]|\((?:\\.|[^\\()])*\))*\)|`[^`]*`|<[^<>]*>/g,br:/^( {2,}|\\)\n(?!\s*$)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Vt,emStrongLDelim:je,emStrongRDelimAst:qe,emStrongRDelimUnd:_e,escape:ve,link:Oe,nolink:Ee,punctuation:Ae,reflink:Me,reflinkSearch:Wt(le(382),"g")[le(337)](le(349),Me)[le(337)](le(383),Ee)[le(387)](),tag:Pe,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<![`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Vt},Le=Object[le(335)](Object[le(335)]({},Ne),{escape:Wt(ve)[le(337)]("])",le(378))[le(387)](),url:Wt(/^((?:ftp|https?):\/\/|www\.)[a-zA-Z\d-][^\s<]*|^email/,"i")[le(337)]("email",/[\w.+-]+(@)[\w-]+(?:\.[\w-]*[a-z\d])+(?![-_])/i)[le(387)](),t:/(?:[^?!.,:;*_'"~()&]|\([^)]*\)|&(?![a-z\d]+;$)|[?!.,:;*_'"~)]+(?!$))+/i,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[\w.!#$%&'*+/=?`{|}~-]+@)|[\s\S]*?(?:(?=[\\<![`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^\w.!#$%&'*+/=?`{|}~-](?=[\w.!#$%&'*+/=?`{|}~-]+@)))/}),De=Object[le(335)](Object[le(335)]({},Le),{br:Vt,emStrongLDelim:/^\*+(?:([!"#$%&'()+\-.,/:;<=>?@[\]`{|}~_])|[^\s*])/}),Be={block:Object[le(335)](Object[le(335)]({},$e),{lheading:Vt,code:Vt,fences:/^ {0,3}(`{3,}(?=[^`\n[]*(?:\n|$)))([^\n]*)(?:\n|$)([\s\S]*?)(?:\n|$)(?: {0,3}\1`* *(?=\n|$)|$)/,paragraph:Wt(fe).replace("hr",ue).replace(le(347),le(375)).replace(le(329),"").replace("table",we).replace(le(366)," {0,3}(?<!>)>(?!>)")[le(337)](le(365)," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(le(358),le(351))[le(337)](le(338),le(334))[le(337)](le(345),ke)[le(387)](),table:Wt(le(354)+le(359)+le(393)+"(?:(?:\\|\\|([^\\|]+)\\|\\|)?\\n*|$)")[le(337)]("hr",ue).replace("heading",le(375))[le(337)](le(366),le(343))[le(337)]("code",le(360))[le(337)](le(365),le(341))[le(337)](le(358),le(351))[le(337)](le(338),"</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)")[le(337)]("tag",ke)[le(387)](),blockquote:Wt(/^( {0,3}(?<!>)>(?!>) ?(paragraph|[^\n]*)(?:\n|$))+/)[le(337)](le(370),ye)[le(387)]()}),inline:De};function Ue(t,e){return t-=301,Ze()[t]}function Ze(){const t=["emStrongRDelimAst","match","table","map","slice","block","join","push","list","248549JGtVQT","align","strong","split","center","377135blhtEE","inline","raw","min","5988366XgzrhI","right","anyPunctuation","286018bbYjzQ","839406OrNBuQ","24tNKwek","substring","replace","length","\n $1","state","top","code","blockquote","test","inlineTokens","928479PHXJeJ","lexer","type","3bynZew","blockTokens","trim","fences","header","301528IYUsNV","exec","emStrongLDelim","lastIndex","emStrongRDelimUnd","rows"];return(Ze=function(){return t})()}!function(){const t=Ue,e=Ze();for(;;)try{if(237331==parseInt(t(326))/1*(-parseInt(t(310))/2)+-parseInt(t(323))/3+parseInt(t(312))/4*(parseInt(t(303))/5)+-parseInt(t(311))/6+parseInt(t(346))/7+-parseInt(t(331))/8+parseInt(t(307))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Fe={table(t){const e=Ue,n=Be[e(342)][e(339)][e(332)](t);if(!n)return;if(!/[:|]/[e(321)](n[2]))return;const r=ne(n[1]),s=n[2][e(314)](/^\||\| *$/g,"").split("|"),i=n[3]&&n[3][e(328)]()?n[3][e(314)](/\n[ \t]*$/,"").split("\n"):[],o=n[5],a={type:e(339),raw:n[0],header:[],align:[],rows:[],caption:{type:"text",text:o,raw:o,tokens:this[e(324)][e(304)](o)}};if(r[e(315)]===s[e(315)]){for(const t of s)/^ *-+: *$/[e(321)](t)?a[e(347)][e(344)](e(308)):/^ *:-+: *$/[e(321)](t)?a[e(347)][e(344)](e(302)):/^ *:-+ *$/.test(t)?a[e(347)][e(344)]("left"):a.align[e(344)](null);for(let t=0;t<r[e(315)];t++)a[e(330)][e(344)]({text:r[t],tokens:this[e(324)][e(304)](r[t]),header:!0,align:a.align[t]});for(const t of i)a[e(336)][e(344)](ne(t,a[e(330)].length)[e(340)]((t,n)=>{const r=e;return{text:t,tokens:this[r(324)][r(304)](t),header:!1,align:a.align[n]}}));return a}},lheading(){},code(){},fences(t){const e=Ue,n=Be[e(342)][e(329)].exec(t);if(n){const t=n[0],r=function(t,e){const n=Ue,r=t[n(338)](/^(\s+)```/);if(null===r)return e;const s=r[1];return e[n(301)]("\n")[n(340)](t=>{const e=n,r=t[e(338)](/^\s+/);if(null===r)return t;const[i]=r;return i[e(315)]<s[e(315)]?t:t[e(341)](s.length)}).join("\n")}(t,n[3]||"");return{type:e(319),raw:t,lang:n[2]?n[2].trim()[e(314)](Be.inline[e(309)],"$1"):n[2],text:r}}},br(){},emStrong(t,e,n=""){const r=Ue;let s=Be[r(304)][r(333)][r(332)](t);if(s&&(!s[3]||!n[r(338)](/[\p{L}\p{N}]/u))&&(!s[1]&&!s[2]||!n||Be.inline.punctuation[r(332)](n))){const n=[...s[0]][r(315)]-1;let i,o,a=n,l=0;const c="*"===s[0][0]?Be[r(304)][r(337)]:Be[r(304)][r(335)];for(c[r(334)]=0,e=e[r(341)](-1*t[r(315)]+n);null!=(s=c[r(332)](e));){if(i=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!i)continue;if(o=[...i][r(315)],s[3]||s[4]){a+=o;continue}if((s[5]||s[6])&&n%3&&!((n+o)%3)){l+=o;continue}if(a-=o,a>0)continue;o=Math.min(o,o+a+l);const e=[...s[0]][0][r(315)],c=t[r(341)](0,n+s.index+e+o);if(Math[r(306)](n,o)%2){const t=c[r(341)](1,-1);return{type:"em",raw:c,text:t,tokens:this[r(324)][r(322)](t)}}const u=c[r(341)](2,-2);return{type:r(348),raw:c,text:u,tokens:this[r(324)].inlineTokens(u)}}}},blockquote(t){const e=Ue,n=Be[e(342)][e(320)].exec(t);if(n){let t=function(t){const e=Gt,n=t[e(259)];if(0===n)return"";let r=0;for(;n>r&&"\n"===t[e(270)](n-r-1);)r++;return t[e(273)](0,n-r)}(n[0])[e(301)]("\n"),r="",s="";const i=[];for(;t[e(315)]>0;){let n=!1;const o=[];let a;for(a=0;t.length>a;a++)if(/^ {0,3}>/.test(t[a]))o[e(344)](t[a]),n=!0;else{if(n)break;o[e(344)](t[a])}t=t[e(341)](a);const l=o[e(343)]("\n"),c=l.replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,e(316)).replace(/^ {0,3}>[ \t]?/gm,"");r=r?r+"\n"+l:l,s=s?s+"\n"+c:c;const u=this[e(324)][e(317)][e(318)];if(this[e(324)].state[e(318)]=!0,this[e(324)][e(327)](c,i,!0),this[e(324)][e(317)].top=u,0===t[e(315)])break;const h=i[i[e(315)]-1];if((null==h?void 0:h[e(325)])===e(319))break;if((null==h?void 0:h[e(325)])===e(320)){const n=h,o=n[e(305)]+"\n"+t[e(343)]("\n"),a=this[e(320)](o);i[i[e(315)]-1]=a,r=r[e(313)](0,r[e(315)]-n[e(305)][e(315)])+a[e(305)],s=s[e(313)](0,s[e(315)]-n.text[e(315)])+a.text;break}if((null==h?void 0:h[e(325)])===e(345)){const n=h,o=n.raw+"\n"+t.join("\n"),a=this.list(o);i[i[e(315)]-1]=a,r=r[e(313)](0,r[e(315)]-h[e(305)][e(315)])+a.raw,s=s.substring(0,s[e(315)]-n[e(305)][e(315)])+a[e(305)],t=o[e(313)](i[i[e(315)]-1][e(305)][e(315)])[e(301)]("\n");continue}}return{type:e(320),raw:r,tokens:i,text:s}}}};function Je(){var t=["6340FubHjO","144UhToUR","7tFmOBH","1MAAjyP","46378IazwyW","285934MfbrqN","7468002WXdCxv","781870rjoQwo","10alObyc","1127724VzFtiD","873WjWfiC","722312zNgIXN"];return(Je=function(){return t})()}function Xe(t,e){return t-=221,Je()[t]}function Qe(t,e){return t-=134,Ye()[t]}!function(){for(var t=Xe,e=Je();;)try{if(449621==-parseInt(t(224))/1*(-parseInt(t(225))/2)+-parseInt(t(231))/3*(parseInt(t(221))/4)+-parseInt(t(228))/5+-parseInt(t(230))/6*(parseInt(t(223))/7)+parseInt(t(232))/8+-parseInt(t(227))/9*(-parseInt(t(229))/10)+parseInt(t(226))/11*(parseInt(t(222))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const He=Qe;function Ye(){const t=["<span class='title'>","title","149900imGrMr","8qaLubL","7805435gyqrnA","10214901TEBTUY","info",'<span class="icon">',"</p>","4LjAJqR","warn","10nlgELR","</span></p>","4095171sOkMSf","Success","611310JJxjEh","true","lexer","parser",'<p class="heading">',"parseInline","trim","188cUdSBN","Error","</span> ","143918ZPhiHE","</section>","error","tokens",'<section class="alert ',"alert","5667204ABuyuC","exec","icon","Warn","indexOf"];return(Ye=function(){return t})()}var Ge;!function(){const t=Qe,e=Ye();for(;;)try{if(763639==parseInt(t(157))/1*(parseInt(t(141))/2)+-parseInt(t(145))/3+-parseInt(t(154))/4*(-parseInt(t(134))/5)+parseInt(t(163))/6+-parseInt(t(147))/7+-parseInt(t(135))/8*(parseInt(t(137))/9)+-parseInt(t(143))/10*(-parseInt(t(136))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(t){const e=Qe;t[e(166)]=e(142),t[e(146)]="success",t[e(155)]=e(159),t.Info=e(138)}(Ge||(Ge={}));const Ve={name:He(162),level:"block",start:t=>t[He(167)]("^ {0,3}!!!["),tokenizer(t){const e=He;var n,r,s,i;const o=/^ {0,3}(!{3,}(?=\[[^\n\]]*\](?:\n|$)))\[([^\],]*)(?:,([^\],]*))?(?:,([^\],]+))?\]\n([\s\S]*?)(?:\n|$)(?: {0,3}\1 *(?=\n|$)|$)/[e(164)](t);if(o){const t=null===(n=o[2])||void 0===n?void 0:n[e(153)](),a=null===(r=o[3])||void 0===r?void 0:r[e(153)](),l=null===(s=o[4])||void 0===s?void 0:s[e(153)](),c=null===(i=o[5])||void 0===i?void 0:i.trim();return{type:e(162),raw:o[0],title:a,icon:l,text:c,ttype:t,tokens:this[e(149)].inlineTokens(c)}}},renderer(t){const e=He;var n;let r="";if(t[e(165)]===e(148))switch(t.ttype){case Ge[e(166)]:t[e(165)]="⚠️";break;case Ge[e(146)]:t[e(165)]="🎉";break;case Ge[e(155)]:t[e(165)]="⛔";break;case Ge.Info:t[e(165)]="ℹ️"}const s=void 0!==t[e(165)]?e(139)+t[e(165)]+e(156):"";return r+=e(161)+t.ttype+'">',t[e(169)]&&(r+=e(151)+s+e(168)+t[e(169)]+e(144)),r=r+'<p class="content paragraph">'+(t[e(169)]?"":s)+this[e(150)][e(152)](null!==(n=t[e(160)])&&void 0!==n?n:[])+e(140),r+=e(158),r}};function We(t){return(t||"").match(/\S*/)[0]}function Ke(t){return e=>{"string"==typeof e&&e!==t.text&&(t.escaped=!0,t.text=e)}}const tn=/[&<>"']/,en=RegExp(tn.source,"g"),nn=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,rn=RegExp(nn.source,"g"),sn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},on=t=>sn[t];function an(t,e){if(e){if(tn.test(t))return t.replace(en,on)}else if(nn.test(t))return t.replace(rn,on);return t}const ln=un;function cn(){const t=["python","latex","697754IlzwmC","12182583xGJdTD","value","2385485ddirMO","2045850XNoydV","2XyFjeI","3889384NISRmO","4oICNTe","2902536KCHIZU","8269074aMbTrG","registerLanguage"];return(cn=function(){return t})()}function un(t,e){return t-=139,cn()[t]}!function(){const t=un,e=cn();for(;;)try{if(883724==-parseInt(t(149))/1*(-parseInt(t(141))/2)+-parseInt(t(144))/3+-parseInt(t(143))/4*(-parseInt(t(139))/5)+parseInt(t(140))/6+parseInt(t(150))/7+-parseInt(t(142))/8+-parseInt(t(145))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),n.registerLanguage("javascript",r),n[ln(146)](ln(147),o),n.registerLanguage(ln(148),i),n.registerLanguage("json",s);const hn=new vt(function(t){if("function"==typeof t&&(t={highlight:t}),!t||"function"!=typeof t.highlight)throw Error("Must provide highlight function");return"string"!=typeof t.langPrefix&&(t.langPrefix="language-"),"string"!=typeof t.emptyLangClass&&(t.emptyLangClass=""),{async:!!t.async,walkTokens(e){if("code"!==e.type)return;const n=We(e.lang);if(t.async)return Promise.resolve(t.highlight(e.text,n,e.lang||"")).then(Ke(e));const r=t.highlight(e.text,n,e.lang||"");if(r instanceof Promise)throw Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");Ke(e)(r)},useNewRenderer:!0,renderer:{code(e,n,r){"object"==typeof e&&(r=e.escaped,n=e.lang,e=e.text);const s=We(n),i=s?t.langPrefix+an(s):t.emptyLangClass,o=i?` class="${i}"`:"";return e=e.replace(/\n$/,""),`<pre><code${o}>${r?e:an(e,!0)}\n</code></pre>`}}}}({highlight(t,e){const r=ln,s=n.getLanguage(e)?e:"plaintext";return n.highlight(t,{language:s})[r(151)]}})),pn=fn;function fn(t,e){return t-=175,dn()[t]}function dn(){const t=["179790uDrPmX","indexOf","35SkIBBR","paragraph","34446DhrZbl","12468mQEHXW","type","tokens","forEach","gallery","blockTokens","783040UuaqVx","!!!","</section>\n","1372261OYsedf","9tgztPh","1071608PGfMBP","208qwoMcJ","exec","752260XCILjT","image","4HdDXdC","parse"];return(dn=function(){return t})()}!function(){const t=fn,e=dn();for(;;)try{if(110491==parseInt(t(184))/1*(-parseInt(t(178))/2)+-parseInt(t(185))/3*(-parseInt(t(197))/4)+parseInt(t(176))/5+parseInt(t(180))/6*(parseInt(t(182))/7)+-parseInt(t(196))/8+-parseInt(t(195))/9*(parseInt(t(191))/10)+-parseInt(t(194))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const gn={name:pn(189),level:"block",start(t){const e=pn;return t[e(181)](e(192))},tokenizer(t){const e=pn,n=/^ {0,3}(!{3,}) *\n([\s\S]*?)(?:\n|$)(?: {0,3}\1 *(?=\n|$)|$)/[e(175)](t);if(n){const t=n[2];return{type:"gallery",raw:n[0],text:t,tokens:this.lexer[e(190)](t)}}},renderer(t){const e=pn;var n;let r='<section class="gallery-container">\n';return r+='<section class="gallery-wrapper">\n',null===(n=t.tokens)||void 0===n||n.forEach(t=>{const e=fn;var n;t.type===e(183)&&(null===(n=t[e(187)])||void 0===n||n[e(188)](t=>{const n=e;t[n(186)]===n(177)&&(r+=hn[n(179)](t.raw))}))}),r+=e(193),r+=e(193),r}},mn=bn;!function(){const t=bn,e=yn();for(;;)try{if(398524==parseInt(t(505))/1+parseInt(t(493))/2+parseInt(t(506))/3+-parseInt(t(488))/4+parseInt(t(500))/5+parseInt(t(496))/6+-parseInt(t(489))/7)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const kn={name:"footnoteRef",level:mn(514),start:t=>t[mn(520)]("[^"),tokenizer:t=>{const e=/^\[\^([^\]]+)\]/[mn(491)](t);if(e){const t=e[1].trim();return{type:"footnoteRef",raw:e[0],id:t,tokens:[]}}},renderer:t=>{const e=mn;return'<span class="footnote-ref" id="footnote-ref-'+t.id+e(510)+t.id+'">['+t[e(513)]+e(498)}};function bn(t,e){return t-=483,yn()[t]}const xn={name:mn(503),level:mn(484),start:t=>t[mn(520)]("[^"),tokenizer(t){const e=mn,n=/^\[\^(.+?)\]: ([\s\S]*?)(?:\n+|$)/.exec(t);if(n){const t=n[1][e(509)](),r=n[2][e(509)]();return{type:e(503),raw:n[0],id:t,text:r,tokens:this[e(502)].inlineTokens(r)}}},renderer(t){const e=mn;var n;const r=e(485)+t.id+'"> ⬅ </a>';return e(494)+t[e(513)]+'" id="footnote-'+t.id+'">'+this.parser.parseInline(null!==(n=null==t?void 0:t[e(504)])&&void 0!==n?n:[])+(t.isolated?"":r)+e(483)}};function yn(){const t=["inline",'<ol class="footnote-list">',"caption","sort","push","join","indexOf","items","</li>","block",' <a href="#footnote-ref-',"</ol>","length","2978660amEPht","8174341MfVdOL","list","exec","forEach","1284812kdAtJX",'<li class="footnote-def" key="',"replaceAll","4173660fxLXgz","header","]</a></sup></span>","type","551565Mijaxa","key","lexer","footnoteDef","tokens","523599UTfyeq","1017072mAqErL","isolated","content","trim",'"><sup><a href="#footnote-',"rows","table","number"];return(yn=function(){return t})()}const In=t=>{const e={};let n=1;return function t(r){const s=bn;r[s(492)](r=>{const i=s;"footnoteRef"===r[i(499)]&&(!(r.id in e)&&(e[r.id]=n,n++),r.number=e[r.id]),r[i(499)]===i(490)&&r[i(521)][i(492)](e=>{const n=i;e[n(504)]&&e[n(504)][n(487)]>0&&t(e[n(504)])}),r[i(499)]===i(512)&&(r[i(497)][i(492)](e=>{const n=i;e[n(504)]&&e.tokens[n(487)]>0&&t(e.tokens)}),r[i(511)][i(492)](e=>{const n=i;e[n(492)](e=>{const r=n;e[r(504)]&&e.tokens[r(487)]>0&&t(e[r(504)])})}),r[i(516)].tokens&&r[i(516)][i(504)][i(487)]>0&&t(r[i(516)][i(504)])),r[i(504)]&&r[i(504)][i(487)]>0&&t(r[i(504)])})}(t),function t(r){r.forEach(r=>{const s=bn;r.type===s(503)&&(r[s(507)]=!1,!(r.id in e)&&(e[r.id]=n,n++,r[s(507)]=!0),r[s(513)]=e[r.id]),r[s(504)]&&r[s(504)].length>0&&t(r[s(504)])})}(t),t},wn=vn;function $n(){const t=["blockTokens","\n </section></details>","solution","1088530wYckBZ","block","trim","290XtFUdg","SOLUTION","671816dsGuTS","tokens",'"><summary>',"stype","indexOf","305638WSNNbW","49CiuLFB","12AFftce","66032PyOvcn","exec","4745457zQwkqT","190278TyxIUN","~~~[","687404vInsyC","PROOF","parser","lexer","typeName",'<details class="solution ',"18hfNXCe"];return($n=function(){return t})()}function vn(t,e){return t-=309,$n()[t]}var Sn;!function(){const t=vn,e=$n();for(;;)try{if(409845==-parseInt(t(311))/1+parseInt(t(331))/2*(parseInt(t(333))/3)+parseInt(t(326))/4+-parseInt(t(321))/5*(parseInt(t(317))/6)+-parseInt(t(332))/7*(parseInt(t(334))/8)+parseInt(t(336))/9+parseInt(t(324))/10*(parseInt(t(309))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(t){const e=vn;t[e(312)]="proof",t[e(325)]=e(320)}(Sn||(Sn={}));const An={[Sn[wn(312)]]:"证明",[Sn[wn(325)]]:"解答"},jn={name:wn(320),level:wn(322),start:t=>{const e=wn;return t[e(330)](e(310))},tokenizer(t){const e=wn;var n;const r=/^ {0,3}(~{3,}(?=\[[^\n\]]*\](?:\n|$)))\[([^\],]*)\]\n([\s\S]*?)(?:\n|$)(?: {0,3}\1~* *(?=\n|$)|$)/[e(335)](t);if(r){const t=r[2][e(323)](),s=r[3][e(323)]();return{type:e(320),raw:r[0],stype:t,typeName:null!==(n=An[t])&&void 0!==n?n:t,text:s,tokens:this[e(314)][e(318)](s)}}},renderer(t){const e=wn;var n;return e(316)+Kt(t[e(329)])+e(328)+t[e(315)]+'</summary>\n <section class="content">\n '+this[e(313)].parse(null!==(n=null==t?void 0:t[e(327)])&&void 0!==n?n:[])+e(319)}};function qn(t,e){return t-=168,zn()[t]}const _n=qn;function zn(){const t=["list","</b>","3698352SylJdR","10696930GBGRHT","typeName",'\n </p>\n <section class="content">\n ',"tokens","</em> )","theoremLikeDef","trimEnd","Definition","endsWith","name","exec","7jXknws","lexer","Corollary","axiom","block","blockTokens","ttype",'" id="theorem-like-',"1955270EfkHhc","14569065VHpmdq","11HYEbUa","unnumbered","example","definition","Example","type","trim","Theorem","128105jLnNly",'">\n <p class="title"><b>',"parser","theoremLikeRef","13713624PyOyBl","parse","indexOf","30NkjdbP","number","length",'<a id="theorem-like-ref-',"Lemma","\n </section> \n</section>","inline","3LWmqoD","Axiom","forEach","theorem","286103TJTacN","</a>"];return(zn=function(){return t})()}var Tn;!function(){const t=qn,e=zn();for(;;)try{if(869324==-parseInt(t(187))/1+-parseInt(t(211))/2*(-parseInt(t(183))/3)+-parseInt(t(191))/4+-parseInt(t(169))/5*(-parseInt(t(176))/6)+parseInt(t(203))/7*(-parseInt(t(173))/8)+parseInt(t(212))/9+parseInt(t(192))/10*(parseInt(t(213))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(t){const e=qn;t.Theorem=e(186),t[e(180)]="lemma",t[e(205)]="corollary",t.Axiom=e(206),t[e(199)]=e(216),t.Example=e(215)}(Tn||(Tn={}));const Rn={[Tn[_n(168)]]:"定理",[Tn[_n(180)]]:"引理",[Tn.Corollary]:"推论",[Tn[_n(184)]]:"公理",[Tn[_n(199)]]:"定义",[Tn[_n(217)]]:"例"},Pn={name:_n(172),level:_n(182),start:t=>t[_n(175)]("[~"),tokenizer:t=>{const e=_n,n=/^\[~([^\]]+)\]/[e(202)](t);if(n){const t=n[1][e(219)]();return{type:e(172),raw:n[0],id:t,tokens:[]}}},renderer:t=>{const e=_n;return e(179)+t.id+'" href="#theorem-like-'+t.id+'">'+(t[e(193)]+" "+t[e(177)])[e(198)]()+e(188)}},Cn={name:_n(197),level:_n(207),start:t=>t[_n(175)]("```["),tokenizer(t){const e=_n;var n,r,s,i,o,a;const l=/^ {0,3}(`{3,}(?=\[[^\n\]]*\](?:\n|$)))\[([^\],]*),([^\],]*)(?:,([^\],]+))?\]\n([\s\S]*?)(?:\n|$)(?: {0,3}\1 *(?=\n|$)|$)/[e(202)](t);if(l){const t=null===(n=l[2])||void 0===n?void 0:n.trim().replace(/\*$/,""),c=null===(r=l[2])||void 0===r?void 0:r[e(219)]()[e(200)]("*"),u=null===(s=l[3])||void 0===s?void 0:s.trim(),h=null===(i=l[4])||void 0===i?void 0:i[e(219)](),p=null===(o=l[5])||void 0===o?void 0:o[e(219)]();return{type:e(197),raw:l[0],id:u,name:h,text:p,ttype:t,typeName:null!==(a=Rn[t])&&void 0!==a?a:t,tokens:this[e(204)][e(208)](p),unnumbered:c}}},renderer(t){const e=_n;var n;return'<section class="theorem-like '+Kt(t[e(209)])+e(210)+t.id+e(170)+t[e(193)]+e(190)+(t[e(214)]?"":" "+t[e(177)])+(t[e(201)]?" ( <em>"+t[e(201)]+e(196):"")+e(194)+this[e(171)][e(174)](null!==(n=null==t?void 0:t[e(195)])&&void 0!==n?n:[])+e(181)}},On=Mn;function Mn(t,e){return t-=201,Ln()[t]}!function(){const t=Mn,e=Ln();for(;;)try{if(695556==parseInt(t(206))/1*(-parseInt(t(232))/2)+parseInt(t(229))/3+-parseInt(t(202))/4*(parseInt(t(226))/5)+-parseInt(t(203))/6+-parseInt(t(204))/7*(-parseInt(t(219))/8)+parseInt(t(208))/9+parseInt(t(213))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const En=/^>>>([^\r\n]+?) *(?<!\\)\[ *([^\r\n]+?) *\|\s*([^\r\n]+?) *\| *([^\r\n]+?) *(?<!\\)\] *<<</,Nn={name:On(238),level:"inline",start(t){const e=On;return t[e(212)](e(214))},tokenizer(t){const e=On,n=En[e(217)](t);if(n){const[t,r,s,i,o]=n,a=e(235)+Ht.md5(t);return{type:e(238),id:a,raw:t,title:s,text:r,imageUrl:o,description:{type:e(221),text:i,raw:i,tokens:this[e(227)][e(225)](i)},tokens:this[e(227)][e(209)](r.trim())}}},renderer(t){const e=On;var n;let r=e(207);return r+=e(220)+t.id+e(230),r+=e(228)+t.id+e(222)+this[e(239)][e(224)](null!==(n=t[e(210)])&&void 0!==n?n:[])+e(234),r+='<span class="tooltip">\n',t[e(233)][e(205)]()&&(r+=e(216)+t[e(233)].trim()+e(231)+t.title[e(205)]()+e(211)),t[e(236)].trim()&&(r+=e(215)+t.title[e(205)]()+e(201)),t[e(237)][e(218)][e(205)]()&&(r+='<span class="tooltip-description">'+this[e(239)][e(224)]([t.description])+e(201)),r+=e(223),r}};function Ln(){const t=["title","description","tooltip","parser","</span>\n","3236896UNKNdV","6877014eOnIsV","2582559COdWVd","trim","143631rzuLiz",'<span class="tooltip-container">\n',"3113478QmTEPd","inlineTokens","tokens",'"></span>\n',"indexOf","24875420oDpSdY",">>>",'<span class="tooltip-title">','<span class="tooltip-image"><img src="',"exec","raw","8UBXTnr",'<input type="checkbox" id=',"text",' class="tooltip-trigger">',"</span>\n</span>\n","parseInline","inline","5LuWyGc","lexer","<label for=","1792728BFRRUN",' class="tooltip-toggle">','" alt="',"16qeRGvq","imageUrl","</label>\n","id-"];return(Ln=function(){return t})()}function Dn(t,e){return t-=371,Zn()[t]}const Bn=Dn;function Un(t){const e=Dn;return t[e(388)](/\s*<\s*/g,e(381))[e(388)](/\s*>\s*/g," \\gt ")}function Zn(){const t=["block","replace","4157068SJcKIs","</p>\n","2270PeqYaX","5683415YyrJnC","indexOf","846396OCVPys","match","trim","14wervpH","inlineMath2","inline",'<p class="paragraph">',"555120RDfVFM","text","blockMath2","blockMath","exec"," \\lt ","inlineMath","8IVdvyC","4642854LSVnps","87895tzjkDl","111231vcZGQJ"];return(Zn=function(){return t})()}!function(){const t=Dn,e=Zn();for(;;)try{if(790969==parseInt(t(385))/1*(-parseInt(t(383))/2)+-parseInt(t(394))/3+-parseInt(t(389))/4+parseInt(t(392))/5+parseInt(t(384))/6*(-parseInt(t(372))/7)+parseInt(t(376))/8+parseInt(t(386))/9*(parseInt(t(391))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Fn={name:Bn(382),level:Bn(374),start:t=>t.indexOf("$"),tokenizer(t){const e=Bn,n=/^\$(?:[^$]|\\\$)+\$(?!\$)/[e(380)](t);if(n)return{type:e(382),raw:n[0],text:n[0]}},renderer:t=>Un(t[Bn(377)])},Jn={name:"inlineMath2",level:Bn(374),start:t=>t[Bn(393)]("\\("),tokenizer(t){const e=Bn,n=t[e(395)](/^\\\(.*?\\\)/);if(n)return{type:e(373),raw:n[0],text:n[0]}},renderer:t=>Un(t[Bn(377)])},Xn={name:"blockMath",level:Bn(387),start:t=>t.indexOf("$$"),tokenizer(t){const e=Bn,n=t.match(/^\${2}(?:[^$]|\\\$|\$[^$])+\${2}(?!\$)/);if(n)return{type:e(379),raw:n[0],text:n[0].trim()}},renderer(t){const e=Bn;return e(375)+Un(t[e(377)])+"</p>\n"}},Qn={name:"blockMath2",level:Bn(387),start:t=>t.indexOf("\\["),tokenizer(t){const e=Bn,n=t[e(395)](/^\\\[(?:[^$]|\\\$)+\\\]/);if(n)return{type:e(378),raw:n[0],text:n[0][e(371)]()}},renderer(t){const e=Bn;return e(375)+Un(t[e(377)])+e(390)}};function Hn(){var t=["756336chVtoc","6nTUwDz","54243ipwoID","180747qYOgjB","1150128FCxaIr","793895IFRbJQ","716574pYPOuq","1414160jbmhIH"];return(Hn=function(){return t})()}function Yn(t,e){return t-=102,Hn()[t]}function Gn(t,e){return t-=152,Vn()[t]}function Vn(){const t=["3rGlJwQ","218066qgjnRU","image","text","13180BMcAyk",'<img src="',"3182976XIXQZs","32dLEnie","height:","tokens",' style="',"push","48955xSFCvY","px;","type","708127AnXreD","306OFhSWM","width:","title","668760uuYSmS",'" alt="',"isArray","10087PnYWoM","93675NjMmdq",' title="'];return(Vn=function(){return t})()}function Wn(t,e){return t-=250,Kn()[t]}function Kn(){const t=["lexInline","Lexer","28796949EuCNnq","warn","[mmarked] ⚠️ No valid license configured for Node.js server-side usage. ","Contact charles@mathcrowd.cn for commercial licensing.","node","369698LTCnNf","getTime","5667522dZLmaF","For commercial use, please configure a license using configureLicense(). ","versions","use","2989014OJuWGV","8564285GhFYKe","parseInline","renderMarkdownCompact","10EByjpH","354668OxLbPu","assign","For commercial use in Node.js, please configure a license using configureLicense(). ","36BrACOo","[mmarked] ℹ️ Running in browser environment, no license required. ","1977980gAQqDl","defaults","Contact charles@mathcrowd.cn for commercial licensing. ","16BmkfdR"];return(Kn=function(){return t})()}function tr(t,e){return t-=337,er()[t]}function er(){const t=["1179HtQATv","138614fXTVra","1311563FZTXqB","use","2501168lSCcni","Browser usage does not require a license.","273BjEpJG","11MYbqBI","51804bphYlp","undefined","node","parse","For commercial use in Node.js, please configure a license using configureLicense(). ","renderMarkdown","2725070zbdOjN","Contact charles@mathcrowd.cn for commercial licensing. ","[mmarked] ⚠️ No valid license configured for Node.js server-side usage. ","410BzNqyI","versions","assign","7664bzcokJ","lexer","57726IsYuVM","84pjdxxN","For commercial use, please configure a license using configureLicense(). ","warn","getTime","Contact charles@mathcrowd.cn for commercial licensing."];return(er=function(){return t})()}function nr(t,e){return t-=114,rr()[t]}function rr(){var t=["12645324cbWTYK","768916LqWFJl","31101dRibUQ","414WAXMEK","2QqHlSj","8793010OCzalr","11UJymqU","7362792FiKFJW","1727745yeCAtQ","10rwQzkv","654561jsmWdM"];return(rr=function(){return t})()}function sr(t,e){return t-=448,ir()[t]}function ir(){const t=["1262817SgJEGJ","body","2XmcDTI","4916568MMacyn","2360211cQYyOL","none","11719080TCWrBG","1158358Axqrus","8SrXofM","598668KzaISK","1315745qFCYLP","document","render"];return(ir=function(){return t})()}function or(t,e){return t-=179,ar()[t]}function ar(){var t=["40CFiztC","1361948yugubD","119835YodJFg","4722qepcrP","4374048GgKmjr","1035072SLJaQx","737232oSMPqH","320BBGDDN","1784AIqlio","555583LGGyVz"];return(ar=function(){return t})()}function lr(){var t=["1TNdpuP","35346phvupB","64254OoCQJA","16nEzqzd","5926928FfhVgN","16BQGVoN","4226310OmHDYG","6545270hxFjIc","4100292BTYxVR","1299540WnIZkT"];return(lr=function(){return t})()}function cr(t,e){return t-=130,lr()[t]}!function(){for(var t=Yn,e=Hn();;)try{if(187220==-parseInt(t(109))/1+parseInt(t(104))/2+-parseInt(t(106))/3+parseInt(t(102))/4+parseInt(t(103))/5*(parseInt(t(107))/6)+-parseInt(t(108))/7+-parseInt(t(105))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=Gn,e=Vn();for(;;)try{if(390347==-parseInt(t(158))/1+-parseInt(t(161))/2+-parseInt(t(160))/3*(parseInt(t(154))/4)+-parseInt(t(172))/5*(parseInt(t(176))/6)+-parseInt(t(175))/7*(-parseInt(t(167))/8)+-parseInt(t(166))/9+parseInt(t(164))/10*(parseInt(t(157))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=Wn,e=Kn();for(;;)try{if(951509==-parseInt(t(266))/1+parseInt(t(255))/2+parseInt(t(253))/3*(-parseInt(t(250))/4)+-parseInt(t(273))/5+-parseInt(t(268))/6+-parseInt(t(272))/7*(-parseInt(t(258))/8)+parseInt(t(261))/9*(parseInt(t(276))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=tr,e=er();for(;;)try{if(453651==parseInt(t(342))/1*(-parseInt(t(364))/2)+-parseInt(t(363))/3*(-parseInt(t(355))/4)+-parseInt(t(349))/5+parseInt(t(357))/6*(-parseInt(t(341))/7)+parseInt(t(339))/8+parseInt(t(343))/9*(parseInt(t(352))/10)+parseInt(t(337))/11*(parseInt(t(358))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){for(var t=nr,e=rr();;)try{if(757971==parseInt(t(119))/1+-parseInt(t(124))/2*(-parseInt(t(117))/3)+parseInt(t(121))/4*(-parseInt(t(118))/5)+-parseInt(t(123))/6*(-parseInt(t(122))/7)+-parseInt(t(116))/8+parseInt(t(120))/9+parseInt(t(114))/10*(-parseInt(t(115))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=sr,e=ir();for(;;)try{if(617894==-parseInt(t(449))/1*(parseInt(t(454))/2)+-parseInt(t(460))/3+parseInt(t(456))/4+parseInt(t(457))/5+parseInt(t(450))/6+parseInt(t(451))/7*(-parseInt(t(455))/8)+parseInt(t(453))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){for(var t=or,e=ar();;)try{if(541607==parseInt(t(180))/1+parseInt(t(186))/2+-parseInt(t(188))/3*(-parseInt(t(183))/4)+-parseInt(t(185))/5*(parseInt(t(181))/6)+parseInt(t(184))/7+-parseInt(t(179))/8+parseInt(t(187))/9*(-parseInt(t(182))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){for(var t=cr,e=lr();;)try{if(489682==-parseInt(t(132))/1*(parseInt(t(134))/2)+-parseInt(t(133))/3*(-parseInt(t(135))/4)+-parseInt(t(138))/5+parseInt(t(131))/6+parseInt(t(136))/7+-parseInt(t(137))/8*(-parseInt(t(130))/9)+-parseInt(t(139))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),exports.clearValidationCache=function(){const t=qt;Rt[t(305)](),Pt=!1,console[t(327)](t(301))},exports.configureLicense=function(t){const e=qt;Tt=t,function(){const t=qt;Et()&&Tt&&Tt[t(281)]&&(Mt&&clearInterval(Mt),Mt=setInterval(()=>{Nt().catch(t=>{console[Bt(311)]("[mmarked] Usage reporting error:",t)})},36e5),Nt().catch(e=>{const n=t;console[n(311)](n(279),e)}))}(),console[e(327)](e(272))},exports.getLicenseConfig=function(){return Tt},exports.getWarningIfNeeded=Dt,exports.isLicensed=Zt,exports.renderMarkdown=t=>{const e=tr;Lt(e(348)),Zt()||(typeof process!==e(344)&&null!=process[e(353)]&&null!=process[e(353)][e(345)]?console[e(360)](e(351)+e(359)+e(350)+e(340)):console[e(360)]("[mmarked] ℹ️ Running in browser environment, no license required. "+e(347)+e(362)));const n={renderer:Object.assign(Object[e(354)]({},re),se),tokenizer:Object[e(354)]({},Fe),useNewRenderer:!0,gfm:!0,extensions:[Fn,Jn,Xn,Qn,kn,xn,Cn,Pn,jn,Ve,gn,Nn],hooks:{preprocess:t=>t,processAllTokens:t=>(t=>{const e=_n,n={[Tn[e(168)]]:0,[Tn[e(180)]]:0,[Tn[e(205)]]:0,[Tn[e(184)]]:0,[Tn[e(199)]]:0,[Tn[e(217)]]:0},r={};return function t(s){const i=e;s[i(185)](e=>{const s=i;"theoremLikeDef"===e[s(218)]&&(e[s(209)]in n?n[e[s(209)]]=n[e[s(209)]]+1:n[e[s(209)]]=1,e[s(177)]=e.unnumbered?"":n[e[s(209)]],r[e.id]={typeName:e[s(193)],number:e[s(177)]}),e[s(195)]&&e.tokens[s(178)]>0&&t(e[s(195)])})}(t),function t(n){const s=e;n[s(185)](e=>{const n=s;e.type===n(172)&&e.id in r&&(e[n(177)]=r[e.id][n(177)],e[n(193)]=r[e.id][n(193)]),e[n(218)]===n(189)&&e.items[n(185)](e=>{const r=n;e[r(195)]&&e.tokens.length>0&&t(e[r(195)])}),e.tokens&&e[n(195)][n(178)]>0&&t(e.tokens)})}(t),t})(In(t)),postprocess:t=>(t=>{const e=mn,n=[];return t=t[e(495)](/<li class="footnote-def" key="(\d+)".*?<\/li>/g,(t,r)=>(n[e(518)]({key:parseInt(r),content:t}),"")),n[e(517)]((t,n)=>t[e(501)]-n[e(501)]),t=t[e(495)](/<ol class="footnote-list">.*?<\/ol>/g,()=>""),n[e(487)]>0&&(t+=e(515)+n.map(t=>t[e(508)])[e(519)]("")+e(486)),t})(t)}};hn[e(338)](n);const r=new Date,s=In(hn[e(356)](t));let i=hn[e(346)](t);const o=new Date,a=Dt();return a&&(i=a+i),{parsed:i,lexed:s,time:o.getTime()-r[e(361)]()}},exports.renderMarkdownCompact=t=>{const e=Wn;Lt(e(275)),Zt()||("undefined"!=typeof process&&null!=process[e(270)]&&null!=process[e(270)][e(265)]?console[e(262)](e(263)+e(269)+e(257)+"Browser usage does not require a license."):console[e(262)](e(254)+e(252)+e(264)));const n=new Date,r=new vt;r[e(271)]({extensions:[Fn,Jn],tokenizer:Object[e(251)]({},Fe),renderer:Object[e(251)]({},se)});const s=r[e(260)][e(259)](t,r[e(256)]),i=r[e(274)](t),o=new Date;let a=function(t,e){const n=Gn;let r=t;for(const t of e){const e=Yt(t.href);if(null===e)continue;let s=n(165)+e+n(155)+t[n(163)]+'"';if(t[n(153)]){const{text:e,width:r,height:i}=ee(t.title);e&&(s+=n(159)+e+'"'),(r||i)&&(s+=n(170),r&&(s+=n(152)+r+n(173)),i&&(s+=n(168)+i+n(173)),s+='"')}s+=">";const i=n(165)+e+n(155)+t.text+'"'+(t[n(153)]?n(159)+t[n(153)]+'"':"")+">";r=r.replaceAll(i,s)}return r}(i,function t(e){const n=Gn,r=[];for(const s of e)s[n(174)]===n(162)&&r[n(171)](s),n(169)in s&&Array[n(156)](s[n(169)])&&r[n(171)](...t(s.tokens));return r}(s));const l=Dt();return l&&(a=l+a),{parsed:a,lexed:s,time:o[e(267)]()-n[e(267)]()}},exports.resetUsageStats=function(){const t=qt;Ot.totalCalls=0,Ot[t(276)]=0,Ot[t(299)]=0,Ot[t(324)]=Date[t(287)](),Ot[t(333)]=Date.now(),Ot[t(300)]=void 0,Ot[t(277)]=zt(),Tt=null,Rt[t(305)](),Pt=!1,console[t(327)](t(309)),console[t(327)](t(301))},exports.setUnlicensedWarningInterval=function(t){exports.UNLICENSED_WARNING_INTERVAL=t},exports.tex2svg=t=>{const e=sr;try{const n=a.liteAdaptor({fontSize:13});l.RegisterHTMLHandler(n);const r=new u.TeX({packages:c.AllPackages,inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],macros:{parallelogram:"\\unicode{x25B1}"}}),s=new p.SVG({fontCache:e(452)}),i=h.mathjax[e(458)](t,{InputJax:r,OutputJax:s});return i[e(459)](),n.innerHTML(n[e(448)](i[e(458)]))}catch(e){return console.error(e),t}},exports.trackFunctionCall=Lt,exports.validateLicense=Ut;
1
+ "use strict";var t=require("crypto"),e=require("buffer"),n=require("highlight.js"),r=require("highlight.js/lib/languages/javascript"),s=require("highlight.js/lib/languages/json"),i=require("highlight.js/lib/languages/latex"),o=require("highlight.js/lib/languages/python"),a=require("mathjax-full/js/adaptors/liteAdaptor.js"),l=require("mathjax-full/js/handlers/html.js"),c=require("mathjax-full/js/input/tex/AllPackages.js"),u=require("mathjax-full/js/input/tex.js"),h=require("mathjax-full/js/mathjax.js"),p=require("mathjax-full/js/output/svg.js");var f={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function d(t){f=t}var g={exec:()=>null};function m(t,e=""){let n="string"==typeof t?t:t.source,r={replace:(t,e)=>{let s="string"==typeof e?e:e.source;return s=s.replace(b.caret,"$1"),n=n.replace(t,s),r},getRegex:()=>RegExp(n,e)};return r}var k=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),b={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:t=>RegExp(`^( {0,3}${t})((?:[\t ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),hrRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}#`),htmlBeginRegex:t=>RegExp(`^ {0,${Math.min(3,t-1)}}<(?:[a-z].*>|!--)`,"i")},x=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,I=/(?:[*+-]|\d{1,9}[.)])/,y=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,w=m(y).replace(/bull/g,I).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),$=m(y).replace(/bull/g,I).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),v=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,S=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,A=m(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",S).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),z=m(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,I).getRegex(),j="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",q=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_=m("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$))","i").replace("comment",q).replace("tag",j).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),R=m(v).replace("hr",x).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j).getRegex(),T={blockquote:m(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",R).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:A,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:x,html:_,lheading:w,list:z,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:R,table:g,text:/^[^\n]+/},P=m("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",x).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}\t)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j).getRegex(),O={...T,lheading:$,table:P,paragraph:m(v).replace("hr",x).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",P).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",j).getRegex()},D={...T,html:m("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:\"[^\"]*\"|'[^']*'|\\s[^'\"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",q).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:g,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:m(v).replace("hr",x).replace("heading"," *#{1,6} *[^\n]").replace("lheading",w).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},L=/^( {2,}|\\)\n(?!\s*$)/,M=/[\p{P}\p{S}]/u,N=/[\s\p{P}\p{S}]/u,E=/[^\s\p{P}\p{S}]/u,C=m(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,N).getRegex(),B=/(?!~)[\p{P}\p{S}]/u,Z=m(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",k?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),U=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,H=m(U,"u").replace(/punct/g,M).getRegex(),Q=m(U,"u").replace(/punct/g,B).getRegex(),J="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",W=m(J,"gu").replace(/notPunctSpace/g,E).replace(/punctSpace/g,N).replace(/punct/g,M).getRegex(),F=m(J,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,B).getRegex(),V=m("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,E).replace(/punctSpace/g,N).replace(/punct/g,M).getRegex(),G=m(/\\(punct)/,"gu").replace(/punct/g,M).getRegex(),K=m(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),X=m(q).replace("(?:--\x3e|$)","--\x3e").getRegex(),Y=m("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",X).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),tt=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,et=m(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",tt).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),nt=m(/^!?\[(label)\]\[(ref)\]/).replace("label",tt).replace("ref",S).getRegex(),rt=m(/^!?\[(ref)\](?:\[\])?/).replace("ref",S).getRegex(),st=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,it={t:g,anyPunctuation:G,autolink:K,blockSkip:Z,br:L,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:g,emStrongLDelim:H,emStrongRDelimAst:W,emStrongRDelimUnd:V,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:et,nolink:rt,punctuation:C,reflink:nt,reflinkSearch:m("reflink|nolink(?!\\()","g").replace("reflink",nt).replace("nolink",rt).getRegex(),tag:Y,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:g},ot={...it,link:m(/^!?\[(label)\]\((.*?)\)/).replace("label",tt).getRegex(),reflink:m(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",tt).getRegex()},at={...it,emStrongRDelimAst:F,emStrongLDelim:Q,url:m(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",st).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),t:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:m(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",st).getRegex()},lt={...at,br:m(L).replace("{2,}","*").getRegex(),text:m(at.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ct={normal:T,gfm:O,pedantic:D},ut={normal:it,gfm:at,breaks:lt,pedantic:ot},ht={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},pt=t=>ht[t];function ft(t,e){if(e){if(b.escapeTest.test(t))return t.replace(b.escapeReplace,pt)}else if(b.escapeTestNoEncode.test(t))return t.replace(b.escapeReplaceNoEncode,pt);return t}function dt(t){try{t=encodeURI(t).replace(b.percentDecode,"%")}catch{return null}return t}function gt(t,e){let n=t.replace(b.findPipe,(t,e,n)=>{let r=!1,s=e;for(;--s>=0&&"\\"===n[s];)r=!r;return r?"|":" |"}).split(b.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;e>n.length;)n.push("");for(;n.length>r;r++)n[r]=n[r].trim().replace(b.slashPipe,"|");return n}function mt(t,e,n){let r=t.length;if(0===r)return"";let s=0;for(;r>s&&t.charAt(r-s-1)===e;)s++;return t.slice(0,r-s)}function kt(t,e,n,r,s){let i=e.href,o=e.title||null,a=t[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===t[0].charAt(0)?"image":"link",raw:n,href:i,title:o,text:a,tokens:r.inlineTokens(a)};return r.state.inLink=!1,l}var bt=class{options;rules;lexer;constructor(t){this.options=t||f}space(t){let e=this.rules.block.newline.exec(t);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(t){let e=this.rules.block.code.exec(t);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:mt(t,"\n")}}}fences(t){let e=this.rules.block.fences.exec(t);if(e){let t=e[0],n=function(t,e,n){let r=t.match(n.other.indentCodeCompensation);if(null===r)return e;let s=r[1];return e.split("\n").map(t=>{let e=t.match(n.other.beginningSpace);if(null===e)return t;let[r]=e;return s.length>r.length?t:t.slice(s.length)}).join("\n")}(t,e[3]||"",this.rules);return{type:"code",raw:t,lang:e[2]?e[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):e[2],text:n}}}heading(t){let e=this.rules.block.heading.exec(t);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let e=mt(t,"#");(this.options.pedantic||!e||this.rules.other.endingSpaceChar.test(e))&&(t=e.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(t){let e=this.rules.block.hr.exec(t);if(e)return{type:"hr",raw:mt(e[0],"\n")}}blockquote(t){let e=this.rules.block.blockquote.exec(t);if(e){let t=mt(e[0],"\n").split("\n"),n="",r="",s=[];for(;t.length>0;){let e,i=!1,o=[];for(e=0;t.length>e;e++)if(this.rules.other.blockquoteStart.test(t[e]))o.push(t[e]),i=!0;else{if(i)break;o.push(t[e])}t=t.slice(e);let a=o.join("\n"),l=a.replace(this.rules.other.blockquoteSetextReplace,"\n $1").replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}\n${a}`:a,r=r?`${r}\n${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,s,!0),this.lexer.state.top=c,0===t.length)break;let u=s.at(-1);if("code"===u?.type)break;if("blockquote"===u?.type){let e=u,i=e.raw+"\n"+t.join("\n"),o=this.blockquote(i);s[s.length-1]=o,n=n.substring(0,n.length-e.raw.length)+o.raw,r=r.substring(0,r.length-e.text.length)+o.text;break}if("list"===u?.type){let e=u,i=e.raw+"\n"+t.join("\n"),o=this.list(i);s[s.length-1]=o,n=n.substring(0,n.length-u.raw.length)+o.raw,r=r.substring(0,r.length-e.raw.length)+o.raw,t=i.substring(s.at(-1).raw.length).split("\n");continue}}return{type:"blockquote",raw:n,tokens:s,text:r}}}list(t){let e=this.rules.block.list.exec(t);if(e){let n=e[1].trim(),r=n.length>1,s={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?"\\d{1,9}\\"+n.slice(-1):"\\"+n,this.options.pedantic&&(n=r?n:"[*+-]");let i=this.rules.other.listItemRegex(n),o=!1;for(;t;){let n=!1,r="",a="";if(!(e=i.exec(t))||this.rules.block.hr.test(t))break;r=e[0],t=t.substring(r.length);let l=e[2].split("\n",1)[0].replace(this.rules.other.listReplaceTabs,t=>" ".repeat(3*t.length)),c=t.split("\n",1)[0],u=!l.trim(),h=0;if(this.options.pedantic?(h=2,a=l.trimStart()):u?h=e[1].length+1:(h=e[2].search(this.rules.other.nonSpaceChar),h=h>4?1:h,a=l.slice(h),h+=e[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+"\n",t=t.substring(c.length+1),n=!0),!n){let e=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),s=this.rules.other.fencesBeginRegex(h),i=this.rules.other.headingBeginRegex(h),o=this.rules.other.htmlBeginRegex(h);for(;t;){let p,f=t.split("\n",1)[0];if(c=f,this.options.pedantic?(c=c.replace(this.rules.other.listReplaceNesting," "),p=c):p=c.replace(this.rules.other.tabCharGlobal," "),s.test(c)||i.test(c)||o.test(c)||e.test(c)||n.test(c))break;if(p.search(this.rules.other.nonSpaceChar)<h&&c.trim()){if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||s.test(l)||i.test(l)||n.test(l))break;a+="\n"+c}else a+="\n"+p.slice(h);!u&&!c.trim()&&(u=!0),r+=f+"\n",t=t.substring(f.length+1),l=p.slice(h)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(o=!0));let p,f=null;this.options.gfm&&(f=this.rules.other.listIsTask.exec(a),f&&(p="[ ] "!==f[0],a=a.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:r,task:!!f,checked:p,loose:!1,text:a,tokens:[]}),s.raw+=r}let a=s.items.at(-1);if(!a)return;a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd(),s.raw=s.raw.trimEnd();for(let t=0;s.items.length>t;t++)if(this.lexer.state.top=!1,s.items[t].tokens=this.lexer.blockTokens(s.items[t].text,[]),!s.loose){let e=s.items[t].tokens.filter(t=>"space"===t.type),n=e.length>0&&e.some(t=>this.rules.other.anyLine.test(t.raw));s.loose=n}if(s.loose)for(let t=0;s.items.length>t;t++)s.items[t].loose=!0;return s}}html(t){let e=this.rules.block.html.exec(t);if(e)return{type:"html",block:!0,raw:e[0],pre:"pre"===e[1]||"script"===e[1]||"style"===e[1],text:e[0]}}def(t){let e=this.rules.block.def.exec(t);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=e[3]?e[3].substring(1,e[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):e[3];return{type:"def",tag:t,raw:e[0],href:n,title:r}}}table(t){let e=this.rules.block.table.exec(t);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let n=gt(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=e[3]?.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split("\n"):[],i={type:"table",raw:e[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let t of r)this.rules.other.tableAlignRight.test(t)?i.align.push("right"):this.rules.other.tableAlignCenter.test(t)?i.align.push("center"):this.rules.other.tableAlignLeft.test(t)?i.align.push("left"):i.align.push(null);for(let t=0;n.length>t;t++)i.header.push({text:n[t],tokens:this.lexer.inline(n[t]),header:!0,align:i.align[t]});for(let t of s)i.rows.push(gt(t,i.header.length).map((t,e)=>({text:t,tokens:this.lexer.inline(t),header:!1,align:i.align[e]})));return i}}lheading(t){let e=this.rules.block.lheading.exec(t);if(e)return{type:"heading",raw:e[0],depth:"="===e[2].charAt(0)?1:2,text:e[1],tokens:this.lexer.inline(e[1])}}paragraph(t){let e=this.rules.block.paragraph.exec(t);if(e){let t="\n"===e[1].charAt(e[1].length-1)?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(t){let e=this.rules.block.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(t){let e=this.rules.inline.escape.exec(t);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(t){let e=this.rules.inline.tag.exec(t);if(e)return!this.lexer.state.inLink&&this.rules.other.startATag.test(e[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(e[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(e[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(e[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:e[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:e[0]}}link(t){let e=this.rules.inline.link.exec(t);if(e){let t=e[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(t)){if(!this.rules.other.endAngleBracket.test(t))return;let e=mt(t.slice(0,-1),"\\");if((t.length-e.length)%2==0)return}else{let t=function(t){if(-1===t.indexOf(")"))return-1;let e=0;for(let n=0;t.length>n;n++)if("\\"===t[n])n++;else if("("===t[n])e++;else if(")"===t[n]&&(e--,0>e))return n;return e>0?-2:-1}(e[2]);if(-2===t)return;if(t>-1){let n=(0===e[0].indexOf("!")?5:4)+e[1].length+t;e[2]=e[2].substring(0,t),e[0]=e[0].substring(0,n).trim(),e[3]=""}}let n=e[2],r="";if(this.options.pedantic){let t=this.rules.other.pedanticHrefTitle.exec(n);t&&(n=t[1],r=t[3])}else r=e[3]?e[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?n.slice(1):n.slice(1,-1)),kt(e,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(t,e){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let t=e[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!t){let t=n[0].charAt(0);return{type:"text",raw:t,text:t}}return kt(n,t,n[0],this.lexer,this.rules)}}emStrong(t,e,n=""){let r=this.rules.inline.emStrongLDelim.exec(t);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!r[1]&&!r[2]||!n||this.rules.inline.punctuation.exec(n))){let n,s,i=[...r[0]].length-1,o=i,a=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,e=e.slice(-1*t.length+i);null!=(r=l.exec(e));){if(n=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!n)continue;if(s=[...n].length,r[3]||r[4]){o+=s;continue}if((r[5]||r[6])&&i%3&&!((i+s)%3)){a+=s;continue}if(o-=s,o>0)continue;s=Math.min(s,s+o+a);let e=[...r[0]][0].length,l=t.slice(0,i+r.index+e+s);if(Math.min(i,s)%2){let t=l.slice(1,-1);return{type:"em",raw:l,text:t,tokens:this.lexer.inlineTokens(t)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(t){let e=this.rules.inline.code.exec(t);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(t),r=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return n&&r&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(t){let e=this.rules.inline.br.exec(t);if(e)return{type:"br",raw:e[0]}}del(t){let e=this.rules.inline.del.exec(t);if(e)return{type:"del",raw:e[0],text:e[2],tokens:this.lexer.inlineTokens(e[2])}}autolink(t){let e=this.rules.inline.autolink.exec(t);if(e){let t,n;return"@"===e[2]?(t=e[1],n="mailto:"+t):(t=e[1],n=t),{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}url(t){let e;if(e=this.rules.inline.url.exec(t)){let t,n;if("@"===e[2])t=e[0],n="mailto:"+t;else{let r;do{r=e[0],e[0]=this.rules.inline.t.exec(e[0])?.[0]??""}while(r!==e[0]);t=e[0],n="www."===e[1]?"http://"+e[0]:e[0]}return{type:"link",raw:e[0],text:t,href:n,tokens:[{type:"text",raw:t,text:t}]}}}inlineText(t){let e=this.rules.inline.text.exec(t);if(e)return{type:"text",raw:e[0],text:e[0],escaped:this.lexer.state.inRawBlock}}},xt=class t{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||f,this.options.tokenizer=this.options.tokenizer||new bt,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let e={other:b,block:ct.normal,inline:ut.normal};this.options.pedantic?(e.block=ct.pedantic,e.inline=ut.pedantic):this.options.gfm&&(e.block=ct.gfm,e.inline=this.options.breaks?ut.breaks:ut.gfm),this.tokenizer.rules=e}static get rules(){return{block:ct,inline:ut}}static lex(e,n){return new t(n).lex(e)}static lexInline(e,n){return new t(n).inlineTokens(e)}lex(t){t=t.replace(b.carriageReturn,"\n"),this.blockTokens(t,this.tokens);for(let t=0;this.inlineQueue.length>t;t++){let e=this.inlineQueue[t];this.inlineTokens(e.src,e.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,e=[],n=!1){for(this.options.pedantic&&(t=t.replace(b.tabCharGlobal," ").replace(b.spaceLine,""));t;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},t,e))&&(t=t.substring(r.raw.length),e.push(r),!0)))continue;if(r=this.tokenizer.space(t)){t=t.substring(r.raw.length);let n=e.at(-1);1===r.raw.length&&void 0!==n?n.raw+="\n":e.push(r);continue}if(r=this.tokenizer.code(t)){t=t.substring(r.raw.length);let n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.at(-1).src=n.text):e.push(r);continue}if(r=this.tokenizer.fences(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.heading(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.hr(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.blockquote(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.list(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.html(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.def(t)){t=t.substring(r.raw.length);let n=e.at(-1);"paragraph"===n?.type||"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},e.push(r));continue}if(r=this.tokenizer.table(t)){t=t.substring(r.raw.length),e.push(r);continue}if(r=this.tokenizer.lheading(t)){t=t.substring(r.raw.length),e.push(r);continue}let s=t;if(this.options.extensions?.startBlock){let e,n=1/0,r=t.slice(1);this.options.extensions.startBlock.forEach(t=>{e=t.call({lexer:this},r),"number"==typeof e&&e>=0&&(n=Math.min(n,e))}),1/0>n&&n>=0&&(s=t.substring(0,n+1))}if(this.state.top&&(r=this.tokenizer.paragraph(s))){let i=e.at(-1);n&&"paragraph"===i?.type?(i.raw+=(i.raw.endsWith("\n")?"":"\n")+r.raw,i.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):e.push(r),n=s.length!==t.length,t=t.substring(r.raw.length);continue}if(r=this.tokenizer.text(t)){t=t.substring(r.raw.length);let n=e.at(-1);"text"===n?.type?(n.raw+=(n.raw.endsWith("\n")?"":"\n")+r.raw,n.text+="\n"+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):e.push(r);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return this.state.top=!0,e}inline(t,e=[]){return this.inlineQueue.push({src:t,tokens:e}),e}inlineTokens(t,e=[]){let n,r=t,s=null;if(this.tokens.links){let t=Object.keys(this.tokens.links);if(t.length>0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(r));)t.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,s.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(r));)n=s[2]?s[2].length:0,r=r.slice(0,s.index+n)+"["+"a".repeat(s[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let i=!1,o="";for(;t;){let n;if(i||(o=""),i=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},t,e))&&(t=t.substring(n.raw.length),e.push(n),!0)))continue;if(n=this.tokenizer.escape(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.tag(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.link(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(n.raw.length);let r=e.at(-1);"text"===n.type&&"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);continue}if(n=this.tokenizer.emStrong(t,r,o)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.codespan(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.br(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.del(t)){t=t.substring(n.raw.length),e.push(n);continue}if(n=this.tokenizer.autolink(t)){t=t.substring(n.raw.length),e.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(t))){t=t.substring(n.raw.length),e.push(n);continue}let s=t;if(this.options.extensions?.startInline){let e,n=1/0,r=t.slice(1);this.options.extensions.startInline.forEach(t=>{e=t.call({lexer:this},r),"number"==typeof e&&e>=0&&(n=Math.min(n,e))}),1/0>n&&n>=0&&(s=t.substring(0,n+1))}if(n=this.tokenizer.inlineText(s)){t=t.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(o=n.raw.slice(-1)),i=!0;let r=e.at(-1);"text"===r?.type?(r.raw+=n.raw,r.text+=n.text):e.push(n);continue}if(t){let e="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(e);break}throw Error(e)}}return e}},It=class{options;parser;constructor(t){this.options=t||f}space(t){return""}code({text:t,lang:e,escaped:n}){let r=(e||"").match(b.notSpaceStart)?.[0],s=t.replace(b.endingNewline,"")+"\n";return r?'<pre><code class="language-'+ft(r)+'">'+(n?s:ft(s,!0))+"</code></pre>\n":"<pre><code>"+(n?s:ft(s,!0))+"</code></pre>\n"}blockquote({tokens:t}){return`<blockquote>\n${this.parser.parse(t)}</blockquote>\n`}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:e}){return`<h${e}>${this.parser.parseInline(t)}</h${e}>\n`}hr(t){return"<hr>\n"}list(t){let e=t.ordered,n=t.start,r="";for(let e=0;t.items.length>e;e++)r+=this.listitem(t.items[e]);let s=e?"ol":"ul";return"<"+s+(e&&1!==n?' start="'+n+'"':"")+">\n"+r+"</"+s+">\n"}listitem(t){let e="";if(t.task){let n=this.checkbox({checked:!!t.checked});t.loose?"paragraph"===t.tokens[0]?.type?(t.tokens[0].text=n+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&"text"===t.tokens[0].tokens[0].type&&(t.tokens[0].tokens[0].text=n+" "+ft(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:n+" ",text:n+" ",escaped:!0}):e+=n+" "}return e+=this.parser.parse(t.tokens,!!t.loose),`<li>${e}</li>\n`}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>\n`}table(t){let e="",n="";for(let e=0;t.header.length>e;e++)n+=this.tablecell(t.header[e]);e+=this.tablerow({text:n});let r="";for(let e=0;t.rows.length>e;e++){let s=t.rows[e];n="";for(let t=0;s.length>t;t++)n+=this.tablecell(s[t]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),"<table>\n<thead>\n"+e+"</thead>\n"+r+"</table>\n"}tablerow({text:t}){return`<tr>\n${t}</tr>\n`}tablecell(t){let e=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`</${n}>\n`}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${ft(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:e,tokens:n}){let r=this.parser.parseInline(n),s=dt(t);if(null===s)return r;let i='<a href="'+(t=s)+'"';return e&&(i+=' title="'+ft(e)+'"'),i+=">"+r+"</a>",i}image({href:t,title:e,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let s=dt(t);if(null===s)return ft(n);let i=`<img src="${t=s}" alt="${n}"`;return e&&(i+=` title="${ft(e)}"`),i+=">",i}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:ft(t.text)}},yt=class{strong({text:t}){return t}em({text:t}){return t}codespan({text:t}){return t}del({text:t}){return t}html({text:t}){return t}text({text:t}){return t}link({text:t}){return""+t}image({text:t}){return""+t}br(){return""}},wt=class t{options;renderer;textRenderer;constructor(t){this.options=t||f,this.options.renderer=this.options.renderer||new It,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new yt}static parse(e,n){return new t(n).parse(e)}static parseInline(e,n){return new t(n).parseInline(e)}parse(t,e=!0){let n="";for(let r=0;t.length>r;r++){let s=t[r];if(this.options.extensions?.renderers?.[s.type]){let t=s,e=this.options.extensions.renderers[t.type].call({parser:this},t);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(t.type)){n+=e||"";continue}}let i=s;switch(i.type){case"space":n+=this.renderer.space(i);continue;case"hr":n+=this.renderer.hr(i);continue;case"heading":n+=this.renderer.heading(i);continue;case"code":n+=this.renderer.code(i);continue;case"table":n+=this.renderer.table(i);continue;case"blockquote":n+=this.renderer.blockquote(i);continue;case"list":n+=this.renderer.list(i);continue;case"html":n+=this.renderer.html(i);continue;case"def":n+=this.renderer.def(i);continue;case"paragraph":n+=this.renderer.paragraph(i);continue;case"text":{let s=i,o=this.renderer.text(s);for(;t.length>r+1&&"text"===t[r+1].type;)s=t[++r],o+="\n"+this.renderer.text(s);n+=e?this.renderer.paragraph({type:"paragraph",raw:o,text:o,tokens:[{type:"text",raw:o,text:o,escaped:!0}]}):o;continue}default:{let t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return n}parseInline(t,e=this.renderer){let n="";for(let r=0;t.length>r;r++){let s=t[r];if(this.options.extensions?.renderers?.[s.type]){let t=this.options.extensions.renderers[s.type].call({parser:this},s);if(!1!==t||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){n+=t||"";continue}}let i=s;switch(i.type){case"escape":case"text":n+=e.text(i);break;case"html":n+=e.html(i);break;case"link":n+=e.link(i);break;case"image":n+=e.image(i);break;case"strong":n+=e.strong(i);break;case"em":n+=e.em(i);break;case"codespan":n+=e.codespan(i);break;case"br":n+=e.br(i);break;case"del":n+=e.del(i);break;default:{let t='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(t),"";throw Error(t)}}}return n}},$t=class{options;block;constructor(t){this.options=t||f}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?xt.lex:xt.lexInline}provideParser(){return this.block?wt.parse:wt.parseInline}},vt=class{defaults={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=wt;Renderer=It;TextRenderer=yt;Lexer=xt;Tokenizer=bt;Hooks=$t;constructor(...t){this.use(...t)}walkTokens(t,e){let n=[];for(let r of t)switch(n=n.concat(e.call(this,r)),r.type){case"table":{let t=r;for(let r of t.header)n=n.concat(this.walkTokens(r.tokens,e));for(let r of t.rows)for(let t of r)n=n.concat(this.walkTokens(t.tokens,e));break}case"list":n=n.concat(this.walkTokens(r.items,e));break;default:{let t=r;this.defaults.extensions?.childTokens?.[t.type]?this.defaults.extensions.childTokens[t.type].forEach(r=>{let s=t[r].flat(1/0);n=n.concat(this.walkTokens(s,e))}):t.tokens&&(n=n.concat(this.walkTokens(t.tokens,e)))}}return n}use(...t){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(t=>{let n={...t};if(n.async=this.defaults.async||n.async||!1,t.extensions&&(t.extensions.forEach(t=>{if(!t.name)throw Error("extension name required");if("renderer"in t){let n=e.renderers[t.name];e.renderers[t.name]=n?function(...e){let r=t.renderer.apply(this,e);return!1===r&&(r=n.apply(this,e)),r}:t.renderer}if("tokenizer"in t){if(!t.level||"block"!==t.level&&"inline"!==t.level)throw Error("extension level must be 'block' or 'inline'");let n=e[t.level];n?n.unshift(t.tokenizer):e[t.level]=[t.tokenizer],t.start&&("block"===t.level?e.startBlock?e.startBlock.push(t.start):e.startBlock=[t.start]:"inline"===t.level&&(e.startInline?e.startInline.push(t.start):e.startInline=[t.start]))}"childTokens"in t&&t.childTokens&&(e.childTokens[t.name]=t.childTokens)}),n.extensions=e),t.renderer){let e=this.defaults.renderer||new It(this.defaults);for(let n in t.renderer){if(!(n in e))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=t.renderer[n],s=e[n];e[n]=(...t)=>{let n=r.apply(e,t);return!1===n&&(n=s.apply(e,t)),n||""}}n.renderer=e}if(t.tokenizer){let e=this.defaults.tokenizer||new bt(this.defaults);for(let n in t.tokenizer){if(!(n in e))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=t.tokenizer[n],s=e[n];e[n]=(...t)=>{let n=r.apply(e,t);return!1===n&&(n=s.apply(e,t)),n}}n.tokenizer=e}if(t.hooks){let e=this.defaults.hooks||new $t;for(let n in t.hooks){if(!(n in e))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=t.hooks[n],s=e[n];e[n]=$t.passThroughHooks.has(n)?t=>{if(this.defaults.async&&$t.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(e,t);return s.call(e,n)})();let i=r.call(e,t);return s.call(e,i)}:(...t)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(e,t);return!1===n&&(n=await s.apply(e,t)),n})();let n=r.apply(e,t);return!1===n&&(n=s.apply(e,t)),n}}n.hooks=e}if(t.walkTokens){let e=this.defaults.walkTokens,r=t.walkTokens;n.walkTokens=function(t){let n=[];return n.push(r.call(this,t)),e&&(n=n.concat(e.call(this,t))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,e){return xt.lex(t,e??this.defaults)}parser(t,e){return wt.parse(t,e??this.defaults)}parseMarkdown(t){return(e,n)=>{let r={...n},s={...this.defaults,...r},i=this.onError(!!s.silent,!!s.async);if(!0===this.defaults.async&&!1===r.async)return i(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof e>"u"||null===e)return i(Error("marked(): input parameter is undefined or null"));if("string"!=typeof e)return i(Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let n=s.hooks?await s.hooks.preprocess(e):e,r=await(s.hooks?await s.hooks.provideLexer():t?xt.lex:xt.lexInline)(n,s),i=s.hooks?await s.hooks.processAllTokens(r):r;s.walkTokens&&await Promise.all(this.walkTokens(i,s.walkTokens));let o=await(s.hooks?await s.hooks.provideParser():t?wt.parse:wt.parseInline)(i,s);return s.hooks?await s.hooks.postprocess(o):o})().catch(i);try{s.hooks&&(e=s.hooks.preprocess(e));let n=(s.hooks?s.hooks.provideLexer():t?xt.lex:xt.lexInline)(e,s);s.hooks&&(n=s.hooks.processAllTokens(n)),s.walkTokens&&this.walkTokens(n,s.walkTokens);let r=(s.hooks?s.hooks.provideParser():t?wt.parse:wt.parseInline)(n,s);return s.hooks&&(r=s.hooks.postprocess(r)),r}catch(t){return i(t)}}}onError(t,e){return n=>{if(n.message+="\nPlease report this to https://github.com/markedjs/marked.",t){let t="<p>An error occurred:</p><pre>"+ft(n.message+"",!0)+"</pre>";return e?Promise.resolve(t):t}if(e)return Promise.reject(n);throw n}}},St=new vt;function At(t,e){return St.parse(t,e)}function zt(t,e,n,r){return new(n||(n=Promise))(function(s,i){function o(t){try{l(r.next(t))}catch(t){i(t)}}function a(t){try{l(r.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?s(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(o,a)}l((r=r.apply(t,e||[])).next())})}At.options=At.setOptions=function(t){return St.setOptions(t),d(At.defaults=St.defaults),At},At.getDefaults=function(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},At.defaults=f,At.use=function(...t){return St.use(...t),d(At.defaults=St.defaults),At},At.walkTokens=function(t,e){return St.walkTokens(t,e)},At.parseInline=St.parseInline,At.Parser=wt,At.parser=wt.parse,At.Renderer=It,At.TextRenderer=yt,At.Lexer=xt,At.lexer=xt.lex,At.Tokenizer=bt,At.Hooks=$t,At.parse=At,"function"==typeof SuppressedError&&SuppressedError;const jt=_t;function qt(){const t=["apiKey","assign","Either upgrade to Node.js 18+, use a custom validator, or configure offline mode.","1790OUmMLU","[mmarked] Usage statistics reported successfully","6843840rhQDit","timestamp","mmarked","lastUsedAt","Requires Node.js 18+ for fetch API support. ","https://api.mathcrowd.cn/validate-license",'<svg xmlns="http://www.w3.org/2000/svg" class="MJX-svg-equation" role="img" focusable="false" viewBox="0 0 800 80" style="vertical-align: -0.5ex; margin: 1em 0; max-width: 100%; display: block;" aria-label="Non-commercial use warning" data-formula-id="',"353856WeZKJo","undefined","https://api.mathcrowd.cn/report-usage","2.0.3","[mmarked] Usage reporting error:","[mmarked] License validation failed:","[mmarked] Usage stats reset","message","Network error during validation","application/json","replace","browser-session","now","log","randomUUID","[mmarked] Initial usage reporting error:","renderMarkdownCalls","catch","4714936WpNOSd","result","get",'" data-timestamp="',"renderMarkdownCompact","warn","substring","versions","set","[mmarked] Validation cache cleared","160hIPWWl","session-","[mmarked] License configured successfully","[mmarked] License validation error:","firstUsedAt","debug","14zUJSga","error","2548xdYyhW","xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx","2460294eNMJTq","json","node","483993xpWVpI","random","29euhWEQ","Fetch API not available. Requires Node.js 18+ or use custom validator.","clear","totalCalls","POST","renderMarkdown","4415FkHYAK","current version","473VNoQmi","crypto","No license configured. Please call configureLicense() with your API key.","lastReportedAt","substr","sessionId","renderMarkdownCompactCalls","toString",'">\n <defs>\n <style type="text/css">\n .mjx-warning-text { font-family: Arial, sans-serif; font-size: 14px; fill: #856404; }\n .mjx-warning-link { font-family: Arial, sans-serif; font-size: 14px; fill: #0066cc; text-decoration: underline; cursor: pointer; }\n </style>\n </defs>\n <rect width="800" height="80" fill="#fff3cd" stroke="#ffc107" stroke-width="1" rx="4"/>\n <text x="20" y="25" class="mjx-warning-text" font-weight="bold">⚠️ Non-Commercial Use Only</text>\n <text x="20" y="45" class="mjx-warning-text">This content uses @mathcrowd/mmarked without valid commercial license.</text>\n <text x="20" y="65" class="mjx-warning-text">For commercial use, contact: </text>\n <a href="mailto:charles@mathcrowd.cn">\n <text x="220" y="65" class="mjx-warning-link">charles@mathcrowd.cn</text>\n </a>\n</svg>',"valid"];return(qt=function(){return t})()}function _t(t,e){return t-=477,qt()[t]}function Rt(){const t=_t;if(!Ct())return t(527);try{if(typeof require!==t(517)){const e=require(t(495));if(e[t(530)])return e[t(530)]()}return t(480)[t(526)](/[xy]/g,function(e){const n=t,r=16*Math.random()|0;return("x"===e?r:3&r|8)[n(501)](16)})}catch(e){return t(545)+Date[t(528)]()+"-"+Math[t(485)]()[t(501)](36)[t(498)](2,9)}}!function(){const t=_t,e=qt();for(;;)try{if(757986==-parseInt(t(486))/1*(parseInt(t(507))/2)+-parseInt(t(481))/3+-parseInt(t(479))/4*(parseInt(t(492))/5)+-parseInt(t(509))/6+parseInt(t(477))/7*(parseInt(t(534))/8)+parseInt(t(484))/9*(parseInt(t(544))/10)+parseInt(t(494))/11*(parseInt(t(516))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),exports.UNLICENSED_WARNING_INTERVAL=1e3;let Tt=null;const Pt=new Map;let Ot=!1;const Dt=36e5,Lt=jt(514),Mt=jt(518),Nt={totalCalls:0,renderMarkdownCalls:0,renderMarkdownCompactCalls:0,firstUsedAt:Date[jt(528)](),lastUsedAt:Date[jt(528)](),sessionId:Rt()};let Et=null;function Ct(){const t=jt;return"undefined"!=typeof process&&null!=process[t(541)]&&null!=process[t(541)][t(483)]}function Bt(){return zt(this,void 0,void 0,function*(){const t=_t;var e;if(!Ct())return;const n=Tt;if(!n||!n[t(504)])return;const r=Date[t(528)]();if(Nt[t(497)]&&18e5>r-Nt.lastReportedAt)return;const s=Mt;try{const i=Object[t(505)](Object[t(505)]({},Nt),{apiKey:n[t(504)],timestamp:r,nodeVersion:null===(e=process[t(541)])||void 0===e?void 0:e[t(483)]});"undefined"!=typeof fetch&&(yield fetch(s,{method:t(490),headers:{"Content-Type":t(525)},body:JSON.stringify(i)}),Nt.lastReportedAt=r,console[t(549)](t(508)))}catch(e){console[t(549)]("[mmarked] Failed to report usage statistics:",e)}})}function Zt(t){const e=jt;var n;Ct()&&(Nt[e(489)]++,Nt.lastUsedAt=Date[e(528)](),t===e(491)?Nt[e(532)]++:t===e(538)&&Nt[e(500)]++,(null==Tt?void 0:Tt.apiKey)&&(Nt.apiKey=Tt.apiKey,Nt.nodeVersion=null===(n=process.versions)||void 0===n?void 0:n[e(483)]))}function Ut(){const t=jt;return!Ct()||Qt()?"":Nt[t(489)]>0&&Nt[t(489)]%exports.UNLICENSED_WARNING_INTERVAL===0?function(){const t=jt,e=Date[t(528)](),n=Math[t(485)]()[t(501)](36)[t(540)](2,9);return t(515)+n+t(537)+e+t(502)}():""}function Ht(){return zt(this,void 0,void 0,function*(){const t=_t,e=Tt;if(!e||!e[t(504)])return{valid:!1,message:t(496)};const{apiKey:n}=e,r=Pt.get(n);if(r&&Date[t(528)]()-r.timestamp<Dt)return{valid:r.result};const s=yield function(t,e){return zt(this,void 0,void 0,function*(){const n=_t;var r;try{if("undefined"==typeof fetch){const t=null===(r=process.versions)||void 0===r?void 0:r[n(483)];return console.warn("[mmarked] ⚠️ Remote license validation not supported on Node.js "+(t||n(493))+". "+n(513)+n(506)),{valid:!1,message:n(487)}}const s=yield fetch(e,{method:n(490),headers:{"Content-Type":"application/json"},body:JSON.stringify({apiKey:t,product:n(511),version:n(519)})});return s.ok?yield s[n(482)]():{valid:!1,message:"Validation failed: "+s.statusText}}catch(t){return console[n(539)]("[mmarked] Remote validation failed:",t),{valid:!1,message:n(524)}}})}(n,Lt);return Pt[t(542)](n,{result:s.valid,timestamp:Date.now()}),s})}function Qt(){const t=jt;if(!Ct())return!1;const e=Tt;if(!e||!e[t(504)])return!1;const{apiKey:n}=e,r=Pt[t(536)](n);return r?(Date.now()-r[t(510)]>=Dt&&Ht().then(e=>{const n=t;return!e[n(503)]&&console.warn(n(521),e[n(523)]),e})[t(533)](e=>{const n=t;throw console[n(478)](n(547),e),e}),r[t(535)]):(!Ot&&(Ot=!0,Ht().then(e=>{const n=t;return!e[n(503)]&&console[n(539)](n(521),e[n(523)]),e})[t(533)](e=>{throw console[t(478)]("[mmarked] License validation error:",e),e})),!0)}var Jt,Wt,Ft="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Vt={exports:{}},Gt=(Jt||(Jt=1,Wt=Vt,function(){var n="input is invalid type",r="object"==typeof window,s=r?window:{};s.JS_MD5_NO_WINDOW&&(r=!1);var i=!r&&"object"==typeof self,o=!s.JS_MD5_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node;o?s=Ft:i&&(s=self);var a,l=!s.JS_MD5_NO_COMMON_JS&&Wt.exports,c=!s.JS_MD5_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,u="0123456789abcdef".split(""),h=[128,32768,8388608,-2147483648],p=[0,8,16,24],f=["hex","array","digest","buffer","arrayBuffer","base64"],d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),g=[];if(c){var m=new ArrayBuffer(68);a=new Uint8Array(m),g=new Uint32Array(m)}var k=Array.isArray;!s.JS_MD5_NO_NODE_JS&&k||(k=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var b=ArrayBuffer.isView;!c||!s.JS_MD5_NO_ARRAY_BUFFER_IS_VIEW&&b||(b=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});var x=function(t){var e=typeof t;if("string"===e)return[t,!0];if("object"!==e||null===t)throw Error(n);if(c&&t.constructor===ArrayBuffer)return[new Uint8Array(t),!1];if(!k(t)&&!b(t))throw Error(n);return[t,!1]},I=function(t){return function(e){return new w(!0).update(e)[t]()}},y=function(t){return function(e,n){return new $(e,!0).update(n)[t]()}};function w(t){if(t)g[0]=g[16]=g[1]=g[2]=g[3]=g[4]=g[5]=g[6]=g[7]=g[8]=g[9]=g[10]=g[11]=g[12]=g[13]=g[14]=g[15]=0,this.blocks=g,this.buffer8=a;else if(c){var e=new ArrayBuffer(68);this.buffer8=new Uint8Array(e),this.blocks=new Uint32Array(e)}else this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];this.h0=this.h1=this.h2=this.h3=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}function $(t,e){var n,r=x(t);if(t=r[0],r[1]){var s,i=[],o=t.length,a=0;for(n=0;o>n;++n)128>(s=t.charCodeAt(n))?i[a++]=s:2048>s?(i[a++]=192|s>>>6,i[a++]=128|63&s):55296>s||s>=57344?(i[a++]=224|s>>>12,i[a++]=128|s>>>6&63,i[a++]=128|63&s):(s=65536+((1023&s)<<10|1023&t.charCodeAt(++n)),i[a++]=240|s>>>18,i[a++]=128|s>>>12&63,i[a++]=128|s>>>6&63,i[a++]=128|63&s);t=i}t.length>64&&(t=new w(!0).update(t).array());var l=[],c=[];for(n=0;64>n;++n){var u=t[n]||0;l[n]=92^u,c[n]=54^u}w.call(this,e),this.update(c),this.oKeyPad=l,this.inner=!0,this.sharedMemory=e}w.prototype.update=function(t){if(this.finalized)throw Error("finalize already called");for(var e,n,r=x(t),s=r[1],i=0,o=(t=r[0]).length,a=this.blocks,l=this.buffer8;o>i;){if(this.hashed&&(this.hashed=!1,a[0]=a[16],a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),s)if(c)for(n=this.start;o>i&&64>n;++i)128>(e=t.charCodeAt(i))?l[n++]=e:2048>e?(l[n++]=192|e>>>6,l[n++]=128|63&e):55296>e||e>=57344?(l[n++]=224|e>>>12,l[n++]=128|e>>>6&63,l[n++]=128|63&e):(e=65536+((1023&e)<<10|1023&t.charCodeAt(++i)),l[n++]=240|e>>>18,l[n++]=128|e>>>12&63,l[n++]=128|e>>>6&63,l[n++]=128|63&e);else for(n=this.start;o>i&&64>n;++i)128>(e=t.charCodeAt(i))?a[n>>>2]|=e<<p[3&n++]:2048>e?(a[n>>>2]|=(192|e>>>6)<<p[3&n++],a[n>>>2]|=(128|63&e)<<p[3&n++]):55296>e||e>=57344?(a[n>>>2]|=(224|e>>>12)<<p[3&n++],a[n>>>2]|=(128|e>>>6&63)<<p[3&n++],a[n>>>2]|=(128|63&e)<<p[3&n++]):(e=65536+((1023&e)<<10|1023&t.charCodeAt(++i)),a[n>>>2]|=(240|e>>>18)<<p[3&n++],a[n>>>2]|=(128|e>>>12&63)<<p[3&n++],a[n>>>2]|=(128|e>>>6&63)<<p[3&n++],a[n>>>2]|=(128|63&e)<<p[3&n++]);else if(c)for(n=this.start;o>i&&64>n;++i)l[n++]=t[i];else for(n=this.start;o>i&&64>n;++i)a[n>>>2]|=t[i]<<p[3&n++];this.lastByteIndex=n,this.bytes+=n-this.start,64>n?this.start=n:(this.start=n-64,this.hash(),this.hashed=!0)}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},w.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var t=this.blocks,e=this.lastByteIndex;t[e>>>2]|=h[3&e],56>e||(this.hashed||this.hash(),t[0]=t[16],t[16]=t[1]=t[2]=t[3]=t[4]=t[5]=t[6]=t[7]=t[8]=t[9]=t[10]=t[11]=t[12]=t[13]=t[14]=t[15]=0),t[14]=this.bytes<<3,t[15]=this.hBytes<<3|this.bytes>>>29,this.hash()}},w.prototype.hash=function(){var t,e,n,r,s,i,o=this.blocks;this.first?e=((e=((t=((t=o[0]-680876937)<<7|t>>>25)-271733879|0)^(n=((n=(-271733879^(r=((r=(-1732584194^2004318071&t)+o[1]-117830708)<<12|r>>>20)+t|0)&(-271733879^t))+o[2]-1126478375)<<17|n>>>15)+r|0)&(r^t))+o[3]-1316259209)<<22|e>>>10)+n|0:(t=this.h0,e=this.h1,e=((e+=((t=((t+=((r=this.h3)^e&((n=this.h2)^r))+o[0]-680876936)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[1]-389564586)<<12|r>>>20)+t|0)&(t^e))+o[2]+606105819)<<17|n>>>15)+r|0)&(r^t))+o[3]-1044525330)<<22|e>>>10)+n|0),e=((e+=((t=((t+=(r^e&(n^r))+o[4]-176418897)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[5]+1200080426)<<12|r>>>20)+t|0)&(t^e))+o[6]-1473231341)<<17|n>>>15)+r|0)&(r^t))+o[7]-45705983)<<22|e>>>10)+n|0,e=((e+=((t=((t+=(r^e&(n^r))+o[8]+1770035416)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[9]-1958414417)<<12|r>>>20)+t|0)&(t^e))+o[10]-42063)<<17|n>>>15)+r|0)&(r^t))+o[11]-1990404162)<<22|e>>>10)+n|0,e=((e+=((t=((t+=(r^e&(n^r))+o[12]+1804603682)<<7|t>>>25)+e|0)^(n=((n+=(e^(r=((r+=(n^t&(e^n))+o[13]-40341101)<<12|r>>>20)+t|0)&(t^e))+o[14]-1502002290)<<17|n>>>15)+r|0)&(r^t))+o[15]+1236535329)<<22|e>>>10)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[1]-165796510)<<5|t>>>27)+e|0)^e))+o[6]-1069501632)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[11]+643717713)<<14|n>>>18)+r|0)^r))+o[0]-373897302)<<20|e>>>12)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[5]-701558691)<<5|t>>>27)+e|0)^e))+o[10]+38016083)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[15]-660478335)<<14|n>>>18)+r|0)^r))+o[4]-405537848)<<20|e>>>12)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[9]+568446438)<<5|t>>>27)+e|0)^e))+o[14]-1019803690)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[3]-187363961)<<14|n>>>18)+r|0)^r))+o[8]+1163531501)<<20|e>>>12)+n|0,e=((e+=((r=((r+=(e^n&((t=((t+=(n^r&(e^n))+o[13]-1444681467)<<5|t>>>27)+e|0)^e))+o[2]-51403784)<<9|r>>>23)+t|0)^t&((n=((n+=(t^e&(r^t))+o[7]+1735328473)<<14|n>>>18)+r|0)^r))+o[12]-1926607734)<<20|e>>>12)+n|0,e=((e+=((i=(r=((r+=((s=e^n)^(t=((t+=(s^r)+o[5]-378558)<<4|t>>>28)+e|0))+o[8]-2022574463)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+o[11]+1839030562)<<16|n>>>16)+r|0))+o[14]-35309556)<<23|e>>>9)+n|0,e=((e+=((i=(r=((r+=((s=e^n)^(t=((t+=(s^r)+o[1]-1530992060)<<4|t>>>28)+e|0))+o[4]+1272893353)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+o[7]-155497632)<<16|n>>>16)+r|0))+o[10]-1094730640)<<23|e>>>9)+n|0,e=((e+=((i=(r=((r+=((s=e^n)^(t=((t+=(s^r)+o[13]+681279174)<<4|t>>>28)+e|0))+o[0]-358537222)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+o[3]-722521979)<<16|n>>>16)+r|0))+o[6]+76029189)<<23|e>>>9)+n|0,e=((e+=((i=(r=((r+=((s=e^n)^(t=((t+=(s^r)+o[9]-640364487)<<4|t>>>28)+e|0))+o[12]-421815835)<<11|r>>>21)+t|0)^t)^(n=((n+=(i^e)+o[15]+530742520)<<16|n>>>16)+r|0))+o[2]-995338651)<<23|e>>>9)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[0]-198630844)<<6|t>>>26)+e|0)|~n))+o[7]+1126891415)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[14]-1416354905)<<15|n>>>17)+r|0)|~t))+o[5]-57434055)<<21|e>>>11)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[12]+1700485571)<<6|t>>>26)+e|0)|~n))+o[3]-1894986606)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[10]-1051523)<<15|n>>>17)+r|0)|~t))+o[1]-2054922799)<<21|e>>>11)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[8]+1873313359)<<6|t>>>26)+e|0)|~n))+o[15]-30611744)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[6]-1560198380)<<15|n>>>17)+r|0)|~t))+o[13]+1309151649)<<21|e>>>11)+n|0,e=((e+=((r=((r+=(e^((t=((t+=(n^(e|~r))+o[4]-145523070)<<6|t>>>26)+e|0)|~n))+o[11]-1120210379)<<10|r>>>22)+t|0)^((n=((n+=(t^(r|~e))+o[2]+718787259)<<15|n>>>17)+r|0)|~t))+o[9]-343485551)<<21|e>>>11)+n|0,this.first?(this.h0=t+1732584193|0,this.h1=e-271733879|0,this.h2=n-1732584194|0,this.h3=r+271733878|0,this.first=!1):(this.h0=this.h0+t|0,this.h1=this.h1+e|0,this.h2=this.h2+n|0,this.h3=this.h3+r|0)},w.prototype.toString=w.prototype.hex=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3;return u[t>>>4&15]+u[15&t]+u[t>>>12&15]+u[t>>>8&15]+u[t>>>20&15]+u[t>>>16&15]+u[t>>>28&15]+u[t>>>24&15]+u[e>>>4&15]+u[15&e]+u[e>>>12&15]+u[e>>>8&15]+u[e>>>20&15]+u[e>>>16&15]+u[e>>>28&15]+u[e>>>24&15]+u[n>>>4&15]+u[15&n]+u[n>>>12&15]+u[n>>>8&15]+u[n>>>20&15]+u[n>>>16&15]+u[n>>>28&15]+u[n>>>24&15]+u[r>>>4&15]+u[15&r]+u[r>>>12&15]+u[r>>>8&15]+u[r>>>20&15]+u[r>>>16&15]+u[r>>>28&15]+u[r>>>24&15]},w.prototype.array=w.prototype.digest=function(){this.finalize();var t=this.h0,e=this.h1,n=this.h2,r=this.h3;return[255&t,t>>>8&255,t>>>16&255,t>>>24&255,255&e,e>>>8&255,e>>>16&255,e>>>24&255,255&n,n>>>8&255,n>>>16&255,n>>>24&255,255&r,r>>>8&255,r>>>16&255,r>>>24&255]},w.prototype.arrayBuffer=function(){this.finalize();var t=new ArrayBuffer(16),e=new Uint32Array(t);return e[0]=this.h0,e[1]=this.h1,e[2]=this.h2,e[3]=this.h3,t},w.prototype.buffer=w.prototype.arrayBuffer,w.prototype.base64=function(){for(var t,e,n,r="",s=this.array(),i=0;15>i;)t=s[i++],e=s[i++],n=s[i++],r+=d[t>>>2]+d[63&(t<<4|e>>>4)]+d[63&(e<<2|n>>>6)]+d[63&n];return r+(d[(t=s[i])>>>2]+d[t<<4&63]+"==")},($.prototype=new w).finalize=function(){if(w.prototype.finalize.call(this),this.inner){this.inner=!1;var t=this.array();w.call(this,this.sharedMemory),this.update(this.oKeyPad),this.update(t),w.prototype.finalize.call(this)}};var v=function(){var r=I("hex");o&&(r=function(r){var i,o=t,a=e.Buffer;return i=a.from&&!s.JS_MD5_NO_BUFFER_FROM?a.from:function(t){return new a(t)},function(t){if("string"==typeof t)return o.createHash("md5").update(t,"utf8").digest("hex");if(null==t)throw Error(n);return t.constructor===ArrayBuffer&&(t=new Uint8Array(t)),k(t)||b(t)||t.constructor===a?o.createHash("md5").update(i(t)).digest("hex"):r(t)}}(r)),r.create=function(){return new w},r.update=function(t){return r.create().update(t)};for(var i=0;f.length>i;++i){var a=f[i];r[a]=I(a)}return r}();v.md5=v,v.md5.hmac=function(){var t=y("hex");t.create=function(t){return new $(t)},t.update=function(e,n){return t.create(e).update(n)};for(var e=0;f.length>e;++e){var n=f[e];t[n]=y(n)}return t}(),l?Wt.exports=v:s.md5=v}()),Vt.exports);function Kt(){const t=["8652474kaBNDZ","2401203JMzinv","versions","charAt","105766zGrRIU","split","504816qYyngW","10KgykCD","trim","replace","shift","1767856IJMWGZ","27Hshwww","source","length","669556MCzbcF","indexOf","undefined","push","1089844cttKGx","pop","string"];return(Kt=function(){return t})()}function Xt(t){const e=re;try{t=encodeURI(t)[e(307)](/%25/g,"%")}catch(t){return null}return t}!function(){const t=re,e=Kt();for(;;)try{if(378663==-parseInt(t(313))/1+-parseInt(t(302))/2*(parseInt(t(310))/3)+parseInt(t(317))/4+-parseInt(t(305))/5*(-parseInt(t(304))/6)+parseInt(t(321))/7+-parseInt(t(309))/8+parseInt(t(320))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Yt={exec:()=>null};function te(t,e){const n=re;let r="string"==typeof t?t:t[n(311)];e=e||"";const s={replace:(t,e)=>{const i=n;let o=typeof e===i(319)?e:e[i(311)];return o=o[i(307)](/(^|[^[])\^/g,"$1"),r=r[i(307)](t,o),s},getRegex:()=>RegExp(r,e)};return s}const ee=t=>/^[a-z][\w-]*$/i.test(t)?t:"class-"+Gt.md5(t);function ne(t){const e=re,n=t.match(/^(.*?)(?:\s*=(\d*)(?:x(\d+))?)?$/);if(n){const t=n[1][e(306)](),r=n[2]?parseInt(n[2],10):null,s=n[3]?parseInt(n[3],10):null;return{text:0===t[e(312)]?null:t,width:r,height:s}}return{text:null,width:null,height:null}}function re(t,e){return t-=300,Kt()[t]}function se(t,e){const n=re,r=t[n(307)](/\|/g,(t,e,n)=>{let r=!1,s=e;for(;--s>=0&&"\\"===n[s];)r=!r;return r?"|":" |"})[n(303)](/ \|/);let s=0;if(!r[0][n(306)]()&&r[n(308)](),r.length>0&&!r[r[n(312)]-1][n(306)]()&&r[n(318)](),e)if(r.length>e)r.splice(e);else for(;r[n(312)]<e;)r[n(316)]("");for(;s<r[n(312)];s++)r[s]=r[s].trim()[n(307)](/\\\|/g,"|");return r}function ie(){const t=[' start="',"loose",'<p class="paragraph">',"image","193641lyRVWp",'<img src="','<section class="img-container">\n',"</tbody>\n","<tbody>",'<li class="md-list-item">',"15855QxquAA","px;","title","12344DxosLq","rows",' title="',"parser","</table>\n","</thead>\n","123xAssgY","parseInline","items","header","length","href","type","listitem","start","<figcaption>","<figure>\n","tokens","37702260Wtauyx","paragraph","ordered","checkbox","84356xbQpnQ","</p>\n","11852199lCUnfT","</figure>\n","width:","tablecell","7812EeyBEx","unshift","height:","384QHCWzQ","<table>\n","1345750rhMpWm","text"];return(ie=function(){return t})()}function oe(t,e){return t-=223,ie()[t]}!function(){const t=oe,e=ie();for(;;)try{if(936138==parseInt(t(226))/1+parseInt(t(268))/2+parseInt(t(241))/3*(-parseInt(t(257))/4)+-parseInt(t(232))/5*(-parseInt(t(266))/6)+parseInt(t(263))/7*(-parseInt(t(235))/8)+-parseInt(t(259))/9+parseInt(t(253))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const ae={paragraph({tokens:t}){const e=oe;if(1===t[e(245)]&&t[0][e(247)]===e(225)){const n=t[0];if(null===Xt(n[e(246)]))return n[e(269)];let r=e(251);if(r+=e(228),r+=this[e(225)](n)+"\n",r+="</section>\n",n[e(234)]){const{text:t}=ne(n[e(234)]);t&&(r+=e(250)+t+"</figcaption>\n")}return r+=e(260),r}return e(224)+this.parser.parseInline(t)+e(258)},list(t){const e=oe,n=t[e(255)],r=t[e(249)];let s="";for(let n=0;n<t[e(243)][e(245)];n++){const r=t[e(243)][n];s+=this[e(248)](r)}const i=n?"ol":"ul";return"<"+i+(n&&1!==r?e(270)+r+'"':"")+' class="md-list">\n'+s+"</"+i+">\n"},listitem(t){const e=oe;let n="";if(t.task){const r=this[e(256)]({checked:!!t.checked});t[e(223)]?t[e(252)][e(245)]>0&&t[e(252)][0][e(247)]===e(254)?(t[e(252)][0][e(269)]=r+" "+t[e(252)][0][e(269)],t.tokens[0][e(252)]&&t[e(252)][0].tokens[e(245)]>0&&t[e(252)][0][e(252)][0].type===e(269)&&(t[e(252)][0][e(252)][0][e(269)]=r+" "+t.tokens[0][e(252)][0].text)):t[e(252)][e(264)]({type:"text",raw:r+" ",text:r+" "}):n+=r+" "}return n+=this[e(238)].parse(t[e(252)],!!t[e(223)]),e(231)+n+"</li>\n"},table(t){const e=oe;let n="",r="";for(let n=0;n<t[e(244)].length;n++)r+=this[e(262)](t[e(244)][n]);n+=this.tablerow({text:r});let s="";for(let n=0;n<t[e(236)][e(245)];n++){const i=t[e(236)][n];r="";for(let t=0;t<i[e(245)];t++)r+=this.tablecell(i[t]);s+=this.tablerow({text:r})}s&&(s=e(230)+s+e(229));let i="";return t.caption[e(269)]&&(i="<figcaption>"+this[e(238)][e(242)]([t.caption])+"</figcaption>\n"),e(251)+e(267)+"<thead>\n"+n+e(240)+s+e(239)+i+e(260)},image(t){const e=oe,n=Xt(t.href);if(null===n)return t[e(269)];let r=e(227)+n+'" alt="'+t.text+'"';if(t[e(234)]){const{text:n,width:s,height:i}=ne(t.title);n&&(r+=e(237)+n+'"'),(s||i)&&(r+=' style="',s&&(r+=e(261)+s+e(233)),i&&(r+=e(265)+i+e(233)),r+='"')}return r+=">",r}},le={};function ce(t,e){return t-=176,he()[t]}const ue=ce;function he(){const t=["code","ref","^comment","|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)","7sHqGOD","4806iIABjI"," {0,3}#{1,6}(?:\\s|$)","(?: {4}| {0,3}\t)[^\\n]","11KGMBAL","|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)","|[\\s](\\*+)(?!\\*)(?=[punct])","nolink","title","|(?!_)[punct](_+)(?!_)(?=[punct])","1982780PpIoKL","replace","html","list","|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)","^ *([^\\n ].*)\\n","7924692sHWLeW","3NVPsHU","|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n","attribute","|(?!_)[punct](_+)(?=[\\s]|$)","(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)","|^<![a-zA-Z]+\\s[\\s\\S]*?>","href","9VHeGFe","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)","--\x3e","paragraph","|table"," {0,3}>","^ {0,3}(?:","table","|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>","label","comment","heading","792404SSvXNb","86LSofxs","getRegex","|(?!\\*)[punct](\\*+)(?=[\\s]|$)","address|article|aside|base|basefont|blockquote|body|caption","email","fences","|^<\\?[\\s\\S]*?\\?>","assign","|[^punct\\s](\\*+)(?=[^punct\\s])","|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)","^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)","|comment[^\\n]*(\\n+|$)","~|])"," {0,3}(?:[*+-]|1[.)]) ","scheme","|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>","360745NYSBAe","tag","(?:(?:\\|\\|([^\\|]+)\\|\\|)?\\n*|$)","blockquote","|(?!_)[punct\\s](_+)(?=[^punct\\s])","|[^_]+(?=[^_])","6943vJKXOT","|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])","((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html|\\|\\|[^\\|]+\\|\\|).*(?:\\n|$))*)","|lheading","\\p{P}\\p{S}","|<\\?[\\s\\S]*?(?:\\?>\\n*|$)","^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)","2790776vGriCR","|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)","|[\\s](_+)(?!_)(?=[punct])"," {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)\\n","<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)","reflink|nolink(?!\\()"];return(he=function(){return t})()}!function(){const t=ce,e=he();for(;;)try{if(286664==parseInt(t(251))/1*(parseInt(t(229))/2)+-parseInt(t(208))/3*(parseInt(t(228))/4)+parseInt(t(245))/5+parseInt(t(192))/6+parseInt(t(191))/7*(-parseInt(t(181))/8)+parseInt(t(216))/9*(-parseInt(t(201))/10)+parseInt(t(195))/11*(parseInt(t(207))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const pe=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,fe=/(?:[*+-]|\d{1,9}[.)])/,de=te(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/)[ue(202)](/bull/g,fe).replace(/blockCode/g,/(?: {4}| {0,3}\t)/)[ue(202)](/fences/g,/ {0,3}(?:`{3,}|~{3,})/)[ue(202)](/blockquote/g,/ {0,3}>/)[ue(202)](/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/)[ue(230)](),ge=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,me=/(?!\s*\])(?:\\.|[^[\]\\])+/,ke=te(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s]\S*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/)[ue(202)]("label",me)[ue(202)](ue(199),/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/)[ue(230)](),be=te(/^( {0,3}bull)([ \t][^\n]+)?(?:\n|$)/)[ue(202)](/bull/g,fe)[ue(230)](),xe=ue(232)+ue(209)+"|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Ie=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ye=te(ue(222)+ue(185)+ue(240)+ue(179)+"|<![A-Z][\\s\\S]*?(?:>\\n*|$)"+ue(205)+"|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ \t]*)+\\n|$)"+ue(190)+ue(196)+")","i")[ue(202)](ue(226),Ie)[ue(202)](ue(246),xe)[ue(202)](ue(211),/ +[a-z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/i).getRegex(),we=te(ge)[ue(202)]("hr",pe).replace("heading"," {0,3}#{1,6}(?:\\s|$)")[ue(202)](ue(177),"")[ue(202)](ue(220),"").replace(ue(248)," {0,3}>")[ue(202)](ue(234),ue(210))[ue(202)](ue(204),ue(242))[ue(202)](ue(203),ue(217))[ue(202)](ue(246),xe)[ue(230)](),$e={blockquote:te(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/)[ue(202)](ue(219),we)[ue(230)](),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:ke,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:pe,html:ye,lheading:de,list:be,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:we,table:Yt,text:/^[^\n]+/},ve=te(ue(206)+" {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)"+ue(213))[ue(202)]("hr",pe).replace(ue(227),ue(193))[ue(202)](ue(248),ue(221))[ue(202)]("code",ue(194))[ue(202)](ue(234),ue(210))[ue(202)]("list",ue(242))[ue(202)](ue(203),ue(217))[ue(202)]("tag",xe)[ue(230)](),Se=Object[ue(236)](Object[ue(236)]({},$e),{table:ve,paragraph:te(ge)[ue(202)]("hr",pe)[ue(202)]("heading",ue(193)).replace(ue(177),"")[ue(202)]("table",ve)[ue(202)]("blockquote",ue(221))[ue(202)](ue(234),ue(210))[ue(202)](ue(204)," {0,3}(?:[*+-]|1[.)]) ")[ue(202)](ue(203),ue(217))[ue(202)]("tag",xe)[ue(230)]()}),Ae=/^\\([!"#$%&'()*+,\-./:;<=>?@[\]\\^_`{|}~])/,ze=ue(178),je=te(/^((?![*_])[\spunctaio])/,"u")[ue(202)](/punctuation/g,ze).getRegex(),qe=te(/^\*+(?:((?!\*)[punct])|[^\s*])|^_+(?:((?!_)[punct])|([^\s_]))/,"u")[ue(202)](/punct/g,ze)[ue(230)](),_e=te(ue(239)+"|[^*]+(?=[^*])"+ue(231)+ue(238)+"|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])"+ue(197)+ue(252)+ue(237),"gu").replace(/punct/g,ze).getRegex(),Re=te(ue(180)+ue(250)+ue(212)+ue(182)+ue(249)+ue(183)+ue(200),"gu").replace(/punct/g,ze)[ue(230)](),Te=te(/\\([punct])/,"gu").replace(/punct/g,ze).getRegex(),Pe=te(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/)[ue(202)](ue(243),/[a-z][a-z\d+.-]{1,31}/i)[ue(202)](ue(233),/[\w.!#$%&'*+/=?^`{|}~-]+(@)[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)+(?![-_])/i)[ue(230)](),Oe=te(Ie)[ue(202)]("(?:--\x3e|$)",ue(218))[ue(230)](),De=te(ue(189)+"|^</[a-zA-Z][\\w:-]*\\s*>"+ue(224)+ue(235)+ue(214)+ue(244))[ue(202)](ue(226),Oe).replace(ue(211),/\s+[a-z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/i)[ue(230)](),Le=/(?:\[(?:\\.|[^[\]\\])*\]|\\.|`[^`]*`|[^[\]\\`])*?/,Me=te(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/)[ue(202)](ue(225),Le)[ue(202)](ue(215),/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/)[ue(202)](ue(199),/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/)[ue(230)](),Ne=te(/^!?\[(label)\]\[(ref)\]/)[ue(202)](ue(225),Le)[ue(202)](ue(188),me)[ue(230)](),Ee=te(/^!?\[(ref)\](?:\[\])?/).replace("ref",me)[ue(230)](),Ce={t:Yt,anyPunctuation:Te,autolink:Pe,blockSkip:/\[[^[\]]*\]\((?:\\.|[^\\()]|\((?:\\.|[^\\()])*\))*\)|`[^`]*`|<[^<>]*>/g,br:/^( {2,}|\\)\n(?!\s*$)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Yt,emStrongLDelim:qe,emStrongRDelimAst:_e,emStrongRDelimUnd:Re,escape:Ae,link:Me,nolink:Ee,punctuation:je,reflink:Ne,reflinkSearch:te(ue(186),"g")[ue(202)]("reflink",Ne)[ue(202)](ue(198),Ee).getRegex(),tag:De,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<![`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:Yt},Be=Object[ue(236)](Object[ue(236)]({},Ce),{escape:te(Ae).replace("])",ue(241)).getRegex(),url:te(/^((?:ftp|https?):\/\/|www\.)[a-zA-Z\d-][^\s<]*|^email/,"i").replace(ue(233),/[\w.+-]+(@)[\w-]+(?:\.[\w-]*[a-z\d])+(?![-_])/i)[ue(230)](),t:/(?:[^?!.,:;*_'"~()&]|\([^)]*\)|&(?![a-z\d]+;$)|[?!.,:;*_'"~)]+(?!$))+/i,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[\w.!#$%&'*+/=?`{|}~-]+@)|[\s\S]*?(?:(?=[\\<![`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^\w.!#$%&'*+/=?`{|}~-](?=[\w.!#$%&'*+/=?`{|}~-]+@)))/}),Ze=Object[ue(236)](Object[ue(236)]({},Be),{br:Yt,emStrongLDelim:/^\*+(?:([!"#$%&'()+\-.,/:;<=>?@[\]`{|}~_])|[^\s*])/}),Ue={block:Object[ue(236)](Object[ue(236)]({},Se),{lheading:Yt,code:Yt,fences:/^ {0,3}(`{3,}(?=[^`\n[]*(?:\n|$)))([^\n]*)(?:\n|$)([\s\S]*?)(?:\n|$)(?: {0,3}\1`* *(?=\n|$)|$)/,paragraph:te(ge)[ue(202)]("hr",pe)[ue(202)](ue(227),ue(193))[ue(202)]("|lheading","").replace(ue(223),ve)[ue(202)](ue(248)," {0,3}(?<!>)>(?!>)")[ue(202)](ue(234),ue(210)).replace("list",ue(242)).replace(ue(203),ue(217))[ue(202)]("tag",xe).getRegex(),table:te("^ *([^\\n ].*)\\n"+ue(184)+ue(176)+ue(247))[ue(202)]("hr",pe)[ue(202)]("heading",ue(193))[ue(202)](ue(248),ue(221))[ue(202)](ue(187),ue(194)).replace(ue(234)," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n")[ue(202)](ue(204),ue(242))[ue(202)](ue(203),"</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace(ue(246),xe)[ue(230)](),blockquote:te(/^( {0,3}(?<!>)>(?!>) ?(paragraph|[^\n]*)(?:\n|$))+/)[ue(202)]("paragraph",we)[ue(230)]()}),inline:Ze};function He(){const t=["min","index","top","emStrongRDelimAst","table","state","punctuation","inlineTokens","test","align","45556pMHGeF","\n $1","585nBMiVI","2480233nLEEzL","blockquote","3KnaNzh","substring","header","right","push","inline","match","split","block","strong","lastIndex","1884136yfBxXp","list","length","map","code","1699614UVxiZK","type","text","69590UJOMgo","25MOZmGw","exec","slice","rows","anyPunctuation","join","284192bJerNk","replace","655268kEgyuh","raw","center","fences","lexer","trim"];return(He=function(){return t})()}function Qe(t,e){return t-=454,He()[t]}!function(){const t=Qe,e=He();for(;;)try{if(248001==parseInt(t(465))/1+-parseInt(t(467))/2*(-parseInt(t(488))/3)+-parseInt(t(483))/4*(-parseInt(t(459))/5)+-parseInt(t(455))/6+-parseInt(t(486))/7+-parseInt(t(499))/8+parseInt(t(485))/9*(parseInt(t(458))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Je={table(t){const e=Qe,n=Ue.block[e(477)][e(460)](t);if(!n)return;if(!/[:|]/[e(481)](n[2]))return;const r=se(n[1]),s=n[2][e(466)](/^\||\| *$/g,"")[e(495)]("|"),i=n[3]&&n[3][e(472)]()?n[3].replace(/\n[ \t]*$/,"")[e(495)]("\n"):[],o=n[5],a={type:e(477),raw:n[0],header:[],align:[],rows:[],caption:{type:e(457),text:o,raw:o,tokens:this.lexer[e(493)](o)}};if(r[e(501)]===s.length){for(const t of s)/^ *-+: *$/[e(481)](t)?a[e(482)][e(492)](e(491)):/^ *:-+: *$/[e(481)](t)?a.align[e(492)](e(469)):/^ *:-+ *$/[e(481)](t)?a[e(482)].push("left"):a[e(482)][e(492)](null);for(let t=0;t<r[e(501)];t++)a[e(490)][e(492)]({text:r[t],tokens:this[e(471)][e(493)](r[t]),header:!0,align:a[e(482)][t]});for(const t of i)a[e(462)][e(492)](se(t,a[e(490)].length)[e(502)]((t,n)=>{const r=e;return{text:t,tokens:this[r(471)].inline(t),header:!1,align:a[r(482)][n]}}));return a}},lheading(){},code(){},fences(t){const e=Qe,n=Ue[e(496)][e(470)][e(460)](t);if(n){const t=n[0],r=function(t,e){const n=Qe,r=t[n(494)](/^(\s+)```/);if(null===r)return e;const s=r[1];return e[n(495)]("\n").map(t=>{const e=n,r=t.match(/^\s+/);if(null===r)return t;const[i]=r;return i[e(501)]<s.length?t:t.slice(s[e(501)])})[n(464)]("\n")}(t,n[3]||"");return{type:"code",raw:t,lang:n[2]?n[2][e(472)]().replace(Ue.inline[e(463)],"$1"):n[2],text:r}}},br(){},emStrong(t,e,n=""){const r=Qe;let s=Ue[r(493)].emStrongLDelim.exec(t);if(s&&(!s[3]||!n[r(494)](/[\p{L}\p{N}]/u))&&(!s[1]&&!s[2]||!n||Ue[r(493)][r(479)][r(460)](n))){const n=[...s[0]][r(501)]-1;let i,o,a=n,l=0;const c="*"===s[0][0]?Ue[r(493)][r(476)]:Ue[r(493)].emStrongRDelimUnd;for(c[r(498)]=0,e=e[r(461)](-1*t[r(501)]+n);null!=(s=c[r(460)](e));){if(i=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!i)continue;if(o=[...i][r(501)],s[3]||s[4]){a+=o;continue}if((s[5]||s[6])&&n%3&&!((n+o)%3)){l+=o;continue}if(a-=o,a>0)continue;o=Math[r(473)](o,o+a+l);const e=[...s[0]][0][r(501)],c=t[r(461)](0,n+s[r(474)]+e+o);if(Math[r(473)](n,o)%2){const t=c[r(461)](1,-1);return{type:"em",raw:c,text:t,tokens:this[r(471)][r(480)](t)}}const u=c[r(461)](2,-2);return{type:r(497),raw:c,text:u,tokens:this[r(471)][r(480)](u)}}}},blockquote(t){const e=Qe,n=Ue[e(496)][e(487)][e(460)](t);if(n){let t=function(t){const e=re,n=t[e(312)];if(0===n)return"";let r=0;for(;n>r&&"\n"===t[e(301)](n-r-1);)r++;return t.slice(0,n-r)}(n[0]).split("\n"),r="",s="";const i=[];for(;t[e(501)]>0;){let n=!1;const o=[];let a;for(a=0;a<t[e(501)];a++)if(/^ {0,3}>/[e(481)](t[a]))o.push(t[a]),n=!0;else{if(n)break;o[e(492)](t[a])}t=t[e(461)](a);const l=o.join("\n"),c=l[e(466)](/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,e(484))[e(466)](/^ {0,3}>[ \t]?/gm,"");r=r?r+"\n"+l:l,s=s?s+"\n"+c:c;const u=this[e(471)][e(478)][e(475)];if(this[e(471)].state.top=!0,this[e(471)].blockTokens(c,i,!0),this[e(471)][e(478)].top=u,0===t[e(501)])break;const h=i[i[e(501)]-1];if((null==h?void 0:h.type)===e(454))break;if("blockquote"===(null==h?void 0:h.type)){const n=h,o=n[e(468)]+"\n"+t[e(464)]("\n"),a=this[e(487)](o);i[i[e(501)]-1]=a,r=r[e(489)](0,r[e(501)]-n.raw[e(501)])+a.raw,s=s[e(489)](0,s[e(501)]-n[e(457)][e(501)])+a[e(457)];break}if((null==h?void 0:h[e(456)])===e(500)){const n=h,o=n[e(468)]+"\n"+t.join("\n"),a=this[e(500)](o);i[i[e(501)]-1]=a,r=r.substring(0,r[e(501)]-h.raw.length)+a[e(468)],s=s[e(489)](0,s[e(501)]-n.raw[e(501)])+a.raw,t=o.substring(i[i.length-1][e(468)][e(501)])[e(495)]("\n");continue}}return{type:e(487),raw:r,tokens:i,text:s}}}};function We(){var t=["138942KgxNsm","4536zoTNMj","31471PkOpCW","1664020mjljAz","6738595TMeBWW","7085771hPbMzo","500913jODDpr","679124cwbBtv","64SZoABG","6OUFNla","2WsHAfm","3fHojvM"];return(We=function(){return t})()}function Fe(t,e){return t-=139,We()[t]}var Ve;!function(){for(var t=Fe,e=We();;)try{if(836105==-parseInt(t(148))/1*(parseInt(t(146))/2)+parseInt(t(147))/3*(parseInt(t(143))/4)+parseInt(t(140))/5*(parseInt(t(145))/6)+-parseInt(t(141))/7+-parseInt(t(144))/8*(parseInt(t(142))/9)+-parseInt(t(139))/10+parseInt(t(150))/11*(parseInt(t(149))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=Ke,e=Xe();for(;;)try{if(245517==-parseInt(t(239))/1*(parseInt(t(221))/2)+-parseInt(t(233))/3+-parseInt(t(222))/4+-parseInt(t(234))/5+-parseInt(t(238))/6+-parseInt(t(225))/7+parseInt(t(230))/8*(parseInt(t(228))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(t){const e=Ke;t.Warn=e(240),t.Success="success",t[e(226)]=e(223),t.Info=e(235)}(Ve||(Ve={}));const Ge={name:"alert",level:"block",start(t){const e=Ke;return t[e(246)](e(250))},tokenizer(t){const e=Ke;var n,r,s,i;const o=/^ {0,3}(!{3,}(?=\[[^\n\]]*\](?:\n|$)))\[([^\],]*)(?:,([^\],]*))?(?:,([^\],]+))?\]\n([\s\S]*?)(?:\n|$)(?: {0,3}\1 *(?=\n|$)|$)/[e(229)](t);if(o){const t=null===(n=o[2])||void 0===n?void 0:n[e(247)](),a=null===(r=o[3])||void 0===r?void 0:r[e(247)](),l=null===(s=o[4])||void 0===s?void 0:s[e(247)](),c=null===(i=o[5])||void 0===i?void 0:i.trim();return{type:e(236),raw:o[0],title:a,icon:l,text:c,ttype:t,tokens:this[e(220)].inlineTokens(c)}}},renderer(t){const e=Ke;var n;let r="";if(t[e(244)]===e(243))switch(t[e(219)]){case Ve[e(249)]:t.icon="⚠️";break;case Ve[e(245)]:t.icon="🎉";break;case Ve[e(226)]:t[e(244)]="⛔";break;case Ve[e(227)]:t[e(244)]="ℹ️"}const s=void 0!==t[e(244)]?'<span class="icon">'+t.icon+e(248):"";return r+=e(224)+t.ttype+'">',t[e(232)]&&(r+=e(237)+s+e(242)+t[e(232)]+"</span></p>"),r=r+'<p class="content paragraph">'+(t[e(232)]?"":s)+this[e(251)][e(231)](null!==(n=t.tokens)&&void 0!==n?n:[])+e(241),r+="</section>",r}};function Ke(t,e){return t-=219,Xe()[t]}function Xe(){const t=["<span class='title'>","true","icon","Success","indexOf","trim","</span> ","Warn","^ {0,3}!!![","parser","ttype","lexer","2eFPuBL","139288thWJMn","error",'<section class="alert ',"3376835SYjOsj","Error","Info","15760323ibFvlr","exec","8TtJzIt","parseInline","title","489810Nlrovd","1329280adbeJD","info","alert",'<p class="heading">',"934020HoPVss","403607gGrdfU","warn","</p>"];return(Xe=function(){return t})()}function Ye(t){return(t||"").match(/\S*/)[0]}function tn(t){return e=>{"string"==typeof e&&e!==t.text&&(t.escaped=!0,t.text=e)}}const en=/[&<>"']/,nn=RegExp(en.source,"g"),rn=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,sn=RegExp(rn.source,"g"),on={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},an=t=>on[t];function ln(t,e){if(e){if(en.test(t))return t.replace(nn,an)}else if(rn.test(t))return t.replace(sn,an);return t}const cn=un;function un(t,e){return t-=380,hn()[t]}function hn(){const t=["44942447sbFPtj","highlight","plaintext","18765LHNlSo","registerLanguage","3sSMPBn","3300PnLLya","latex","1XlrSzH","5683020EcrUWD","6NGusWk","573322QuXOPJ","json","python","javascript","11508511yZhXEr","1479720lrCINR","1249084hgbHeQ"];return(hn=function(){return t})()}!function(){const t=un,e=hn();for(;;)try{if(827525==parseInt(t(393))/1*(-parseInt(t(396))/2)+-parseInt(t(390))/3*(-parseInt(t(384))/4)+-parseInt(t(394))/5+parseInt(t(395))/6*(-parseInt(t(382))/7)+parseInt(t(383))/8+-parseInt(t(388))/9*(parseInt(t(391))/10)+parseInt(t(385))/11)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),n[cn(389)](cn(381),r),n[cn(389)](cn(380),o),n[cn(389)](cn(392),i),n.registerLanguage(cn(397),s);const pn=new vt(function(t){if("function"==typeof t&&(t={highlight:t}),!t||"function"!=typeof t.highlight)throw Error("Must provide highlight function");return"string"!=typeof t.langPrefix&&(t.langPrefix="language-"),"string"!=typeof t.emptyLangClass&&(t.emptyLangClass=""),{async:!!t.async,walkTokens(e){if("code"!==e.type)return;const n=Ye(e.lang);if(t.async)return Promise.resolve(t.highlight(e.text,n,e.lang||"")).then(tn(e));const r=t.highlight(e.text,n,e.lang||"");if(r instanceof Promise)throw Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");tn(e)(r)},useNewRenderer:!0,renderer:{code(e,n,r){"object"==typeof e&&(r=e.escaped,n=e.lang,e=e.text);const s=Ye(n),i=s?t.langPrefix+ln(s):t.emptyLangClass,o=i?` class="${i}"`:"";return e=e.replace(/\n$/,""),`<pre><code${o}>${r?e:ln(e,!0)}\n</code></pre>`}}}}({highlight(t,e){const r=cn,s=n.getLanguage(e)?e:r(387);return n[r(386)](t,{language:s}).value}})),fn=dn;function dn(t,e){return t-=475,gn()[t]}function gn(){const t=["1250urNRtc","354669Ygpnqb","2714968rBIzQE","lexer","90205zMwoQU","gallery","8622Aquvpz","528rMDDDq","36ZLGGnU","parse","5296qrtNRA","type","</section>\n","forEach","120fRHTUL","90276QbrRBS","131zjzOID","image","1293333lZELXt","indexOf","exec",'<section class="gallery-container">\n',"block"];return(gn=function(){return t})()}!function(){const t=dn,e=gn();for(;;)try{if(279454==-parseInt(t(487))/1*(parseInt(t(481))/2)+-parseInt(t(489))/3+-parseInt(t(485))/4*(-parseInt(t(475))/5)+-parseInt(t(479))/6*(parseInt(t(495))/7)+parseInt(t(496))/8+parseInt(t(477))/9*(parseInt(t(494))/10)+-parseInt(t(478))/11*(-parseInt(t(486))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const mn={name:fn(476),level:fn(493),start:t=>t[fn(490)]("!!!"),tokenizer(t){const e=fn,n=/^ {0,3}(!{3,}) *\n([\s\S]*?)(?:\n|$)(?: {0,3}\1 *(?=\n|$)|$)/[e(491)](t);if(n){const t=n[2];return{type:e(476),raw:n[0],text:t,tokens:this[e(497)].blockTokens(t)}}},renderer(t){const e=fn;var n;let r=e(492);return r+='<section class="gallery-wrapper">\n',null===(n=t.tokens)||void 0===n||n.forEach(t=>{const n=e;var s;"paragraph"===t.type&&(null===(s=t.tokens)||void 0===s||s[n(484)](t=>{const e=n;t[e(482)]===e(488)&&(r+=pn[e(480)](t.raw))}))}),r+=e(483),r+=e(483),r}},kn=bn;function bn(t,e){return t-=422,xn()[t]}function xn(){const t=["sort",'<span class="footnote-ref" id="footnote-ref-',' <a href="#footnote-ref-',"</ol>","204ZodlOf","tokens",'<ol class="footnote-list">','"><sup><a href="#footnote-',"type","lexer","753969DaAAxY","parseInline","map","content","inlineTokens","</li>","items","caption","header","]</a></sup></span>","24828nBOhyb","113485ZvKAVH","forEach","isolated","list","footnoteDef","key","exec","indexOf","157649lhFhwT","4423216xsLUmB","156446wTxByi",'<li class="footnote-def" key="',"trim","footnoteRef","length","number","parser","join","56301UzxtQD","rows","table"];return(xn=function(){return t})()}!function(){const t=bn,e=xn();for(;;)try{if(224245==parseInt(t(437))/1+parseInt(t(439))/2+parseInt(t(460))/3+-parseInt(t(428))/4+parseInt(t(429))/5+-parseInt(t(454))/6*(-parseInt(t(447))/7)+-parseInt(t(438))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const In={name:"footnoteRef",level:"inline",start:t=>t[bn(436)]("[^"),tokenizer:t=>{const e=bn,n=/^\[\^([^\]]+)\]/[e(435)](t);if(n){const t=n[1][e(441)]();return{type:"footnoteRef",raw:n[0],id:t,tokens:[]}}},renderer:t=>{const e=bn;return e(451)+t.id+e(457)+t.id+'">['+t.number+e(427)}},yn={name:kn(433),level:"block",start:t=>t[kn(436)]("[^"),tokenizer(t){const e=kn,n=/^\[\^(.+?)\]: ([\s\S]*?)(?:\n+|$)/[e(435)](t);if(n){const t=n[1][e(441)](),r=n[2][e(441)]();return{type:e(433),raw:n[0],id:t,text:r,tokens:this[e(459)][e(422)](r)}}},renderer(t){const e=kn;var n;const r=e(452)+t.id+'"> ⬅ </a>';return e(440)+t[e(444)]+'" id="footnote-'+t.id+'">'+this[e(445)][e(461)](null!==(n=null==t?void 0:t.tokens)&&void 0!==n?n:[])+(t[e(431)]?"":r)+e(423)}},wn=t=>{const e={};let n=1;return function t(r){r.forEach(r=>{const s=bn;r[s(458)]===s(442)&&(!(r.id in e)&&(e[r.id]=n,n++),r[s(444)]=e[r.id]),r[s(458)]===s(432)&&r[s(424)].forEach(e=>{const n=s;e[n(455)]&&e[n(455)][n(443)]>0&&t(e.tokens)}),r[s(458)]===s(449)&&(r[s(426)][s(430)](e=>{const n=s;e[n(455)]&&e[n(455)][n(443)]>0&&t(e[n(455)])}),r[s(448)].forEach(e=>{const n=s;e[n(430)](e=>{const r=n;e[r(455)]&&e[r(455)][r(443)]>0&&t(e.tokens)})}),r[s(425)][s(455)]&&r[s(425)][s(455)].length>0&&t(r[s(425)][s(455)])),r.tokens&&r[s(455)][s(443)]>0&&t(r[s(455)])})}(t),function t(r){const s=bn;r[s(430)](r=>{const i=s;r.type===i(433)&&(r[i(431)]=!1,!(r.id in e)&&(e[r.id]=n,n++,r[i(431)]=!0),r.number=e[r.id]),r[i(455)]&&r[i(455)][i(443)]>0&&t(r[i(455)])})}(t),t},$n=An;var vn;function Sn(){const t=["3227631rSaUsZ","48VKjeNY","1259150hQLQAD",'</summary>\n <section class="content">\n ',"PROOF","block","93852vcHprF","trim","\n </section></details>","stype","5088629qzlJJx","6PrQRPz","exec","599825dswZWg",'"><summary>',"6070nLZAtb","SOLUTION","solution","~~~[","619080sqwpEV","indexOf","blockTokens",'<details class="solution ',"1578231GhUsxm","56HpOcqA","lexer"];return(Sn=function(){return t})()}function An(t,e){return t-=482,Sn()[t]}!function(){const t=An,e=Sn();for(;;)try{if(859683==parseInt(t(494))/1+parseInt(t(485))/2+parseInt(t(492))/3+-parseInt(t(493))/4*(-parseInt(t(505))/5)+parseInt(t(503))/6*(parseInt(t(502))/7)+parseInt(t(490))/8*(parseInt(t(489))/9)+-parseInt(t(507))/10*(parseInt(t(498))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(t){const e=An;t.PROOF="proof",t[e(482)]="solution"}(vn||(vn={}));const zn={[vn[$n(496)]]:"证明",[vn[$n(482)]]:"解答"},jn={name:$n(483),level:$n(497),start:t=>{const e=$n;return t[e(486)](e(484))},tokenizer(t){const e=$n;var n;const r=/^ {0,3}(~{3,}(?=\[[^\n\]]*\](?:\n|$)))\[([^\],]*)\]\n([\s\S]*?)(?:\n|$)(?: {0,3}\1~* *(?=\n|$)|$)/[e(504)](t);if(r){const t=r[2][e(499)](),s=r[3][e(499)]();return{type:e(483),raw:r[0],stype:t,typeName:null!==(n=zn[t])&&void 0!==n?n:t,text:s,tokens:this[e(491)][e(487)](s)}}},renderer(t){const e=$n;var n;return e(488)+ee(t[e(501)])+e(506)+t.typeName+e(495)+this.parser.parse(null!==(n=null==t?void 0:t.tokens)&&void 0!==n?n:[])+e(500)}},qn=Rn;function _n(){const t=["450904RgsJVX","Axiom","items","trim","type",'<section class="theorem-like ',"Lemma","block","9jPDAQZ","indexOf","example","typeName","unnumbered","</a>",'" href="#theorem-like-',"definition","parse","length","theorem","</b>","Example","exec"," ( <em>","Theorem","</em> )","tokens","146285LPeqet","114115cPvAqf","399728hscBMh","name","blockTokens",'<a id="theorem-like-ref-',"theoremLikeDef","3sONhVQ","lexer","6140950DYzTKM","Corollary","1499211OgYScI","endsWith","forEach",'" id="theorem-like-',"ttype","theoremLikeRef","trimEnd","corollary","\n </section> \n</section>","18uGVsrW","number","Definition","lemma","134242LrtsJB","```[","list"];return(_n=function(){return t})()}function Rn(t,e){return t-=217,_n()[t]}var Tn;!function(){const t=Rn,e=_n();for(;;)try{if(108862==-parseInt(t(252))/1+parseInt(t(222))/2*(parseInt(t(258))/3)+-parseInt(t(253))/4+-parseInt(t(251))/5*(parseInt(t(218))/6)+-parseInt(t(262))/7+-parseInt(t(225))/8+parseInt(t(233))/9*(parseInt(t(260))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(t){const e=Rn;t[e(248)]=e(243),t[e(231)]=e(221),t.Corollary=e(269),t[e(226)]="axiom",t.Definition=e(240),t.Example=e(235)}(Tn||(Tn={}));const Pn={[Tn[qn(248)]]:"定理",[Tn[qn(231)]]:"引理",[Tn[qn(261)]]:"推论",[Tn[qn(226)]]:"公理",[Tn.Definition]:"定义",[Tn.Example]:"例"},On={name:qn(267),level:"inline",start:t=>t[qn(234)]("[~"),tokenizer:t=>{const e=/^\[~([^\]]+)\]/.exec(t);if(e){const t=e[1].trim();return{type:"theoremLikeRef",raw:e[0],id:t,tokens:[]}}},renderer:t=>{const e=qn;return e(256)+t.id+e(239)+t.id+'">'+(t.typeName+" "+t[e(219)])[e(268)]()+e(238)}},Dn={name:qn(257),level:qn(232),start(t){const e=qn;return t[e(234)](e(223))},tokenizer(t){const e=qn;var n,r,s,i,o,a;const l=/^ {0,3}(`{3,}(?=\[[^\n\]]*\](?:\n|$)))\[([^\],]*),([^\],]*)(?:,([^\],]+))?\]\n([\s\S]*?)(?:\n|$)(?: {0,3}\1 *(?=\n|$)|$)/[e(246)](t);if(l){const t=null===(n=l[2])||void 0===n?void 0:n[e(228)]().replace(/\*$/,""),c=null===(r=l[2])||void 0===r?void 0:r.trim()[e(263)]("*"),u=null===(s=l[3])||void 0===s?void 0:s[e(228)](),h=null===(i=l[4])||void 0===i?void 0:i[e(228)](),p=null===(o=l[5])||void 0===o?void 0:o[e(228)]();return{type:e(257),raw:l[0],id:u,name:h,text:p,ttype:t,typeName:null!==(a=Pn[t])&&void 0!==a?a:t,tokens:this[e(259)][e(255)](p),unnumbered:c}}},renderer(t){const e=qn;var n;return e(230)+ee(t.ttype)+e(265)+t.id+'">\n <p class="title"><b>'+t[e(236)]+e(244)+(t[e(237)]?"":" "+t[e(219)])+(t[e(254)]?e(247)+t.name+e(249):"")+'\n </p>\n <section class="content">\n '+this.parser[e(241)](null!==(n=null==t?void 0:t[e(250)])&&void 0!==n?n:[])+e(217)}};function Ln(t,e){return t-=404,Mn()[t]}function Mn(){const t=["992608PSIMfv","1618700OcueHO","description","4393764dGjohz",'<span class="tooltip">\n',"exec","tooltip","</span>\n</span>\n","1944503qUgCCW","parser","id-",'<span class="tooltip-container">\n',"61669loqSyc","727230LElnZT","raw",' class="tooltip-toggle">',"45ApdMXG","14zqYiBq",">>>","lexer","<label for=","title","inline",'<span class="tooltip-title">','" alt="',"4942092BABlMw","imageUrl","trim","110HtdqNV","</label>\n",'<span class="tooltip-image"><img src="','<span class="tooltip-description">',"indexOf","text","8PLamOH","</span>\n"];return(Mn=function(){return t})()}const Nn=Ln;!function(){const t=Ln,e=Mn();for(;;)try{if(997828==parseInt(t(414))/1*(parseInt(t(419))/2)+parseInt(t(427))/3+parseInt(t(436))/4*(parseInt(t(439))/5)+parseInt(t(405))/6+parseInt(t(415))/7+parseInt(t(438))/8*(-parseInt(t(418))/9)+parseInt(t(430))/10*(-parseInt(t(410))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const En=/^>>>([^\r\n]+?) *(?<!\\)\[ *([^\r\n]+?) *\|\s*([^\r\n]+?) *\| *([^\r\n]+?) *(?<!\\)\] *<<</,Cn={name:Nn(408),level:Nn(424),start(t){const e=Nn;return t[e(434)](e(420))},tokenizer(t){const e=Nn,n=En[e(407)](t);if(n){const[t,r,s,i,o]=n;return{type:"tooltip",id:e(412)+Gt.md5(t),raw:t,title:s,text:r,imageUrl:o,description:{type:e(435),text:i,raw:i,tokens:this.lexer.inline(i)},tokens:this[e(421)].inlineTokens(r[e(429)]())}}},renderer(t){const e=Nn;var n;let r=e(413);return r+='<input type="checkbox" id='+t.id+e(417),r+=e(422)+t.id+' class="tooltip-trigger">'+this[e(411)].parseInline(null!==(n=t.tokens)&&void 0!==n?n:[])+e(431),r+=e(406),t[e(428)][e(429)]()&&(r+=e(432)+t[e(428)][e(429)]()+e(426)+t[e(423)][e(429)]()+'"></span>\n'),t.title[e(429)]()&&(r+=e(425)+t.title[e(429)]()+e(437)),t[e(404)][e(416)][e(429)]()&&(r+=e(433)+this[e(411)].parseInline([t[e(404)]])+e(437)),r+=e(409),r}},Bn=Wn;function Zn(t){const e=Wn;return t[e(389)](/\s*<\s*/g," \\lt ")[e(389)](/\s*>\s*/g,e(390))}function Un(){const t=["438541mDlDkw",'<p class="paragraph">',"8mdyKXK","match","inlineMath2","</p>\n","inline","inlineMath","5286LNTruI","blockMath","766004Qursvt","indexOf","637NEcFIu","1733046imDIxn","text","1712105TfrJhl","1024632HNhNKv","replace"," \\gt ","1861326Tzjmlv","trim","block","blockMath2"];return(Un=function(){return t})()}!function(){const t=Wn,e=Un();for(;;)try{if(363443==parseInt(t(395))/1+-parseInt(t(382))/2+parseInt(t(385))/3+-parseInt(t(397))/4*(parseInt(t(387))/5)+parseInt(t(403))/6*(parseInt(t(384))/7)+parseInt(t(388))/8+parseInt(t(391))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}();const Hn={name:"inlineMath",level:Bn(401),start:t=>t[Bn(383)]("$"),tokenizer(t){const e=Bn,n=/^\$(?:[^$]|\\\$)+\$(?!\$)/.exec(t);if(n)return{type:e(402),raw:n[0],text:n[0]}},renderer:t=>Zn(t[Bn(386)])},Qn={name:"inlineMath2",level:"inline",start:t=>t.indexOf("\\("),tokenizer(t){const e=Bn,n=t.match(/^\\\(.*?\\\)/);if(n)return{type:e(399),raw:n[0],text:n[0]}},renderer:t=>Zn(t[Bn(386)])},Jn={name:Bn(404),level:Bn(393),start:t=>t[Bn(383)]("$$"),tokenizer(t){const e=t[Bn(398)](/^\${2}(?:[^$]|\\\$|\$[^$])+\${2}(?!\$)/);if(e)return{type:"blockMath",raw:e[0],text:e[0].trim()}},renderer(t){const e=Bn;return e(396)+Zn(t[e(386)])+e(400)}};function Wn(t,e){return t-=382,Un()[t]}const Fn={name:Bn(394),level:Bn(393),start:t=>t.indexOf("\\["),tokenizer(t){const e=Bn,n=t[e(398)](/^\\\[(?:[^$]|\\\$)+\\\]/);if(n)return{type:e(394),raw:n[0],text:n[0][e(392)]()}},renderer(t){const e=Bn;return e(396)+Zn(t[e(386)])+e(400)}};function Vn(t,e){return t-=404,Gn()[t]}function Gn(){var t=["546KSLwSE","22492JybgRk","177LeaPfS","10428948GEtbJh","611687xgquDo","2066635yhOHYj","308192vFuHRd","45800vGdQcb","2543904ljgIJq"];return(Gn=function(){return t})()}function Kn(t,e){return t-=343,Xn()[t]}function Xn(){const t=["847587qOjBVf","isArray","type",'" alt="',"text","push","href",' title="',"33567190SyUQdd","3526884hISRnD","21858EcZvQG","title","22zmewFT","height:","215343TwxLgA",'<img src="',"344dQTiDk","image","replaceAll",' style="',"625975TdZLSv","1071gwYrJo","px;","245580NijVsi","tokens","width:"];return(Xn=function(){return t})()}function Yn(){const t=["955OppLaO","2MSqyXH","warn","773506UOxJfg","use","410zytZls","4290140AgnNAd","undefined","versions","Browser usage does not require a license.","260062XasinR","3847136tVguQn","getTime","3722278tyqQsZ","Contact charles@mathcrowd.cn for commercial licensing. ","node","645579feVFZd","parseInline","renderMarkdownCompact","17772USOfhA","For commercial use in Node.js, please configure a license using configureLicense(). ","For commercial use, please configure a license using configureLicense(). ","assign","18ItyiSJ"];return(Yn=function(){return t})()}function tr(t,e){return t-=298,Yn()[t]}function er(){const t=["warn","renderMarkdown","node","8emamzR","10oleicv","125331BiuzHH","[mmarked] ⚠️ No valid license configured for Node.js server-side usage. ","[mmarked] ℹ️ Running in browser environment, no license required. ","assign","346267QFPvLq","425608nPtXST","3663648NxDYIt","14IDClUu","undefined","parse","2845495kpXwOZ","6ivnyRy","5511803aMJdai","versions","getTime","lexer","12ujgQIP","1404802eABjqn","Contact charles@mathcrowd.cn for commercial licensing. ","Browser usage does not require a license.","use"];return(er=function(){return t})()}function nr(t,e){return t-=283,er()[t]}function rr(t,e){return t-=206,sr()[t]}function sr(){var t=["3sEPfoR","763012CglUAN","1875725CmuIju","8qqxoDl","1435120YQmdgC","2523384VRnVPf","6610KGshgf","4689KUcPkK","239136QWwNLt","3222107DfWOuG"];return(sr=function(){return t})()}function ir(t,e){return t-=428,or()[t]}function or(){const t=["2341428ShzbSV","none","body","1256632ZeKDbo","document","181376YBSxuF","324643JSkVav","1835239dbPmBh","\\unicode{x25B1}","1202180berjBC","render","innerHTML","794334mAnpuq","error"];return(or=function(){return t})()}function ar(){var t=["6644875UdSAeI","3TQPvUo","1254907PxOGjQ","7224vChvXb","4431COuiyf","65412477LsXWzY","10257208IViELQ","1387178CWyQoJ","5096444RlmfDm"];return(ar=function(){return t})()}function lr(t,e){return t-=258,ar()[t]}function cr(t,e){return t-=211,ur()[t]}function ur(){var t=["8861370nKhCdR","161152TNhBDA","2339049RRbjqz","116355ciCqeN","2289820JiTUZG","8350572aSvbOK","9qlmbAq","120DArLWN","4bsVfXi","17294aMxHtc","357kPMJcy","11BtMcWi","85IYripw"];return(ur=function(){return t})()}!function(){for(var t=Vn,e=Gn();;)try{if(329529==parseInt(t(407))/1+parseInt(t(409))/2+parseInt(t(405))/3*(parseInt(t(404))/4)+parseInt(t(408))/5+parseInt(t(411))/6+parseInt(t(412))/7*(-parseInt(t(410))/8)+-parseInt(t(406))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=Kn,e=Xn();for(;;)try{if(778958==-parseInt(t(354))/1+-parseInt(t(366))/2*(parseInt(t(351))/3)+parseInt(t(363))/4+-parseInt(t(348))/5+-parseInt(t(364))/6*(parseInt(t(349))/7)+-parseInt(t(344))/8*(parseInt(t(368))/9)+parseInt(t(362))/10)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=tr,e=Yn();for(;;)try{if(540672==-parseInt(t(310))/1*(parseInt(t(308))/2)+parseInt(t(299))/3+parseInt(t(313))/4+-parseInt(t(307))/5*(-parseInt(t(302))/6)+-parseInt(t(320))/7+parseInt(t(318))/8*(parseInt(t(306))/9)+parseInt(t(312))/10*(-parseInt(t(317))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=nr,e=er();for(;;)try{if(409840==parseInt(t(286))/1+-parseInt(t(289))/2*(parseInt(t(308))/3)+-parseInt(t(287))/4+parseInt(t(292))/5*(parseInt(t(293))/6)+-parseInt(t(299))/7*(parseInt(t(306))/8)+parseInt(t(288))/9*(-parseInt(t(307))/10)+parseInt(t(294))/11*(parseInt(t(298))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){for(var t=rr,e=sr();;)try{if(270835==parseInt(t(208))/1+parseInt(t(211))/2*(parseInt(t(210))/3)+-parseInt(t(214))/4+-parseInt(t(212))/5+-parseInt(t(215))/6+-parseInt(t(209))/7*(-parseInt(t(213))/8)+parseInt(t(207))/9*(parseInt(t(206))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){const t=ir,e=or();for(;;)try{if(248374==parseInt(t(435))/1+parseInt(t(434))/2+-parseInt(t(441))/3+-parseInt(t(432))/4+-parseInt(t(438))/5+parseInt(t(429))/6+parseInt(t(436))/7)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){for(var t=lr,e=ar();;)try{if(672188==-parseInt(t(263))/1+-parseInt(t(259))/2*(parseInt(t(262))/3)+-parseInt(t(260))/4+-parseInt(t(261))/5+parseInt(t(264))/6*(-parseInt(t(265))/7)+-parseInt(t(258))/8+parseInt(t(266))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),function(){for(var t=cr,e=ur();;)try{if(592496==-parseInt(t(219))/1*(parseInt(t(216))/2)+parseInt(t(222))/3*(parseInt(t(215))/4)+parseInt(t(223))/5*(-parseInt(t(214))/6)+parseInt(t(217))/7*(parseInt(t(221))/8)+-parseInt(t(213))/9*(parseInt(t(220))/10)+parseInt(t(218))/11*(parseInt(t(212))/12)+parseInt(t(211))/13)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(),exports.clearValidationCache=function(){Pt.clear(),Ot=!1,console.log("[mmarked] Validation cache cleared")},exports.configureLicense=function(t){const e=jt;Tt=t,function(){const t=jt;Ct()&&Tt&&Tt[t(504)]&&(Et&&clearInterval(Et),Et=setInterval(()=>{const e=t;Bt()[e(533)](t=>{console.debug(e(520),t)})},36e5),Bt()[t(533)](e=>{const n=t;console[n(549)](n(531),e)}))}(),console[e(529)](e(546))},exports.getLicenseConfig=function(){return Tt},exports.getWarningIfNeeded=Ut,exports.isLicensed=Qt,exports.renderMarkdown=t=>{const e=nr;Zt(e(304)),Qt()||(typeof process!==e(290)&&null!=process.versions&&null!=process[e(295)][e(305)]?console[e(303)](e(283)+"For commercial use, please configure a license using configureLicense(). "+e(300)+e(301)):console.warn(e(284)+"For commercial use in Node.js, please configure a license using configureLicense(). Contact charles@mathcrowd.cn for commercial licensing."));const n={renderer:Object[e(285)](Object[e(285)]({},ae),le),tokenizer:Object.assign({},Je),useNewRenderer:!0,gfm:!0,extensions:[Hn,Qn,Jn,Fn,In,yn,Dn,On,jn,Ge,mn,Cn],hooks:{preprocess:t=>t,processAllTokens:t=>(t=>{const e=qn,n={[Tn[e(248)]]:0,[Tn[e(231)]]:0,[Tn[e(261)]]:0,[Tn[e(226)]]:0,[Tn[e(220)]]:0,[Tn[e(245)]]:0},r={};return function t(s){const i=e;s[i(264)](e=>{const s=i;e[s(229)]===s(257)&&(n[e[s(266)]]=e.ttype in n?n[e.ttype]+1:1,e[s(219)]=e.unnumbered?"":n[e.ttype],r[e.id]={typeName:e[s(236)],number:e[s(219)]}),e[s(250)]&&e[s(250)][s(242)]>0&&t(e[s(250)])})}(t),function t(n){const s=e;n[s(264)](e=>{const n=s;e[n(229)]===n(267)&&e.id in r&&(e[n(219)]=r[e.id][n(219)],e[n(236)]=r[e.id][n(236)]),e[n(229)]===n(224)&&e[n(227)][n(264)](e=>{const r=n;e[r(250)]&&e[r(250)][r(242)]>0&&t(e[r(250)])}),e[n(250)]&&e[n(250)][n(242)]>0&&t(e.tokens)})}(t),t})(wn(t)),postprocess:t=>(t=>{const e=kn,n=[];return t=t.replaceAll(/<li class="footnote-def" key="(\d+)".*?<\/li>/g,(t,e)=>(n.push({key:parseInt(e),content:t}),"")),n[e(450)]((t,n)=>t[e(434)]-n[e(434)]),t=t.replaceAll(/<ol class="footnote-list">.*?<\/ol>/g,()=>""),n[e(443)]>0&&(t+=e(456)+n[e(462)](t=>t[e(463)])[e(446)]("")+e(453)),t})(t)}};pn[e(302)](n);const r=new Date,s=wn(pn[e(297)](t));let i=pn[e(291)](t);const o=new Date,a=Ut();return a&&(i=a+i),{parsed:i,lexed:s,time:o.getTime()-r[e(296)]()}},exports.renderMarkdownCompact=t=>{const e=tr;Zt(e(301)),Qt()||(typeof process!==e(314)&&null!=process.versions&&null!=process[e(315)][e(298)]?console.warn("[mmarked] ⚠️ No valid license configured for Node.js server-side usage. "+e(304)+e(321)+e(316)):console[e(309)]("[mmarked] ℹ️ Running in browser environment, no license required. "+e(303)+"Contact charles@mathcrowd.cn for commercial licensing."));const n=new Date,r=new vt;r[e(311)]({extensions:[Hn,Qn],tokenizer:Object[e(305)]({},Je),renderer:Object[e(305)]({},le)});const s=r.Lexer.lexInline(t,r.defaults),i=r[e(300)](t),o=new Date;let a=function(t,e){const n=Kn;let r=t;for(const t of e){const e=Xt(t[n(360)]);if(null===e)continue;let s=n(343)+e+n(357)+t[n(358)]+'"';if(t.title){const{text:e,width:r,height:i}=ne(t[n(365)]);e&&(s+=n(361)+e+'"'),(r||i)&&(s+=n(347),r&&(s+=n(353)+r+n(350)),i&&(s+=n(367)+i+n(350)),s+='"')}s+=">";const i=n(343)+e+'" alt="'+t.text+'"'+(t[n(365)]?n(361)+t[n(365)]+'"':"")+">";r=r[n(346)](i,s)}return r}(i,function t(e){const n=Kn,r=[];for(const s of e)s[n(356)]===n(345)&&r[n(359)](s),n(352)in s&&Array[n(355)](s[n(352)])&&r[n(359)](...t(s[n(352)]));return r}(s));const l=Ut();return l&&(a=l+a),{parsed:a,lexed:s,time:o[e(319)]()-n.getTime()}},exports.resetUsageStats=function(){const t=jt;Nt[t(489)]=0,Nt[t(532)]=0,Nt[t(500)]=0,Nt[t(548)]=Date.now(),Nt[t(512)]=Date[t(528)](),Nt[t(497)]=void 0,Nt[t(499)]=Rt(),Tt=null,Pt[t(488)](),Ot=!1,console.log(t(522)),console[t(529)](t(543))},exports.setUnlicensedWarningInterval=function(t){exports.UNLICENSED_WARNING_INTERVAL=t},exports.tex2svg=t=>{const e=ir;try{const n=a.liteAdaptor({fontSize:13});l.RegisterHTMLHandler(n);const r=new u.TeX({packages:c.AllPackages,inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],macros:{parallelogram:e(437)}}),s=new p.SVG({fontCache:e(430)}),i=h.mathjax.document(t,{InputJax:r,OutputJax:s});return i[e(439)](),n[e(440)](n[e(431)](i[e(433)]))}catch(n){return console[e(428)](n),t}},exports.trackFunctionCall=Zt,exports.validateLicense=Ht;
2
2
  //# sourceMappingURL=index.cjs.map