ai-cli-online 2.6.0 → 2.9.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.
@@ -0,0 +1,60 @@
1
+ var Hn=Object.defineProperty;var Gn=(n,e,t)=>e in n?Hn(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var A=(n,e,t)=>Gn(n,typeof e!="symbol"?e+"":e,t);function bt(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var ie=bt();function hn(n){ie=n}var re={exec:()=>null};function T(n,e=""){let t=typeof n=="string"?n:n.source,r={replace:(s,a)=>{let o=typeof a=="string"?a:a.source;return o=o.replace(v.caret,"$1"),t=t.replace(s,o),r},getRegex:()=>new RegExp(t,e)};return r}var Wn=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),v={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,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ 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+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:n=>new RegExp(`^( {0,3}${n})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}#`),htmlBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:n=>new RegExp(`^ {0,${Math.min(3,n-1)}}>`)},qn=/^(?:[ \t]*(?:\n|$))+/,Zn=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Yn=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,ye=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,jn=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,xt=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,fn=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,gn=T(fn).replace(/bull/g,xt).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(),Xn=T(fn).replace(/bull/g,xt).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(),Tt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Qn=/^[^\n]+/,wt=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Vn=T(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",wt).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Kn=T(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,xt).getRegex(),Ge="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",At=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Jn=T("^ {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[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",At).replace("tag",Ge).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),dn=T(Tt).replace("hr",ye).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[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ge).getRegex(),er=T(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",dn).getRegex(),_t={blockquote:er,code:Zn,def:Vn,fences:Yn,heading:jn,hr:ye,html:Jn,lheading:gn,list:Kn,newline:qn,paragraph:dn,table:re,text:Qn},Vt=T("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",ye).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ge).getRegex(),tr={..._t,lheading:Xn,table:Vt,paragraph:T(Tt).replace("hr",ye).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Vt).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Ge).getRegex()},nr={..._t,html:T(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",At).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:re,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:T(Tt).replace("hr",ye).replace("heading",` *#{1,6} *[^
2
+ ]`).replace("lheading",gn).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},rr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,sr=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,mn=/^( {2,}|\\)\n(?!\s*$)/,ir=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,We=/[\p{P}\p{S}]/u,Et=/[\s\p{P}\p{S}]/u,kn=/[^\s\p{P}\p{S}]/u,lr=T(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Et).getRegex(),bn=/(?!~)[\p{P}\p{S}]/u,ar=/(?!~)[\s\p{P}\p{S}]/u,or=/(?:[^\s\p{P}\p{S}]|~)/u,xn=/(?![*_])[\p{P}\p{S}]/u,cr=/(?![*_])[\s\p{P}\p{S}]/u,ur=/(?:[^\s\p{P}\p{S}]|[*_])/u,pr=T(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",Wn?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Tn=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,hr=T(Tn,"u").replace(/punct/g,We).getRegex(),fr=T(Tn,"u").replace(/punct/g,bn).getRegex(),wn="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",gr=T(wn,"gu").replace(/notPunctSpace/g,kn).replace(/punctSpace/g,Et).replace(/punct/g,We).getRegex(),dr=T(wn,"gu").replace(/notPunctSpace/g,or).replace(/punctSpace/g,ar).replace(/punct/g,bn).getRegex(),mr=T("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,kn).replace(/punctSpace/g,Et).replace(/punct/g,We).getRegex(),kr=T(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,xn).getRegex(),br="^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)",xr=T(br,"gu").replace(/notPunctSpace/g,ur).replace(/punctSpace/g,cr).replace(/punct/g,xn).getRegex(),Tr=T(/\\(punct)/,"gu").replace(/punct/g,We).getRegex(),wr=T(/^<(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(),Ar=T(At).replace("(?:-->|$)","-->").getRegex(),_r=T("^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",Ar).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Fe=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Er=T(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Fe).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),An=T(/^!?\[(label)\]\[(ref)\]/).replace("label",Fe).replace("ref",wt).getRegex(),_n=T(/^!?\[(ref)\](?:\[\])?/).replace("ref",wt).getRegex(),Sr=T("reflink|nolink(?!\\()","g").replace("reflink",An).replace("nolink",_n).getRegex(),Kt=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,St={_backpedal:re,anyPunctuation:Tr,autolink:wr,blockSkip:pr,br:mn,code:sr,del:re,delLDelim:re,delRDelim:re,emStrongLDelim:hr,emStrongRDelimAst:gr,emStrongRDelimUnd:mr,escape:rr,link:Er,nolink:_n,punctuation:lr,reflink:An,reflinkSearch:Sr,tag:_r,text:ir,url:re},Rr={...St,link:T(/^!?\[(label)\]\((.*?)\)/).replace("label",Fe).getRegex(),reflink:T(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Fe).getRegex()},ht={...St,emStrongRDelimAst:dr,emStrongLDelim:fr,delLDelim:kr,delRDelim:xr,url:T(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Kt).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:T(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Kt).getRegex()},yr={...ht,br:T(mn).replace("{2,}","*").getRegex(),text:T(ht.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Me={normal:_t,gfm:tr,pedantic:nr},xe={normal:St,gfm:ht,breaks:yr,pedantic:Rr},Lr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Jt=n=>Lr[n];function Q(n,e){if(e){if(v.escapeTest.test(n))return n.replace(v.escapeReplace,Jt)}else if(v.escapeTestNoEncode.test(n))return n.replace(v.escapeReplaceNoEncode,Jt);return n}function en(n){try{n=encodeURI(n).replace(v.percentDecode,"%")}catch{return null}return n}function tn(n,e){var a;let t=n.replace(v.findPipe,(o,l,h)=>{let c=!1,f=l;for(;--f>=0&&h[f]==="\\";)c=!c;return c?"|":" |"}),r=t.split(v.splitPipe),s=0;if(r[0].trim()||r.shift(),r.length>0&&!((a=r.at(-1))!=null&&a.trim())&&r.pop(),e)if(r.length>e)r.splice(e);else for(;r.length<e;)r.push("");for(;s<r.length;s++)r[s]=r[s].trim().replace(v.slashPipe,"|");return r}function Te(n,e,t){let r=n.length;if(r===0)return"";let s=0;for(;s<r&&n.charAt(r-s-1)===e;)s++;return n.slice(0,r-s)}function Ir(n,e){if(n.indexOf(e[1])===-1)return-1;let t=0;for(let r=0;r<n.length;r++)if(n[r]==="\\")r++;else if(n[r]===e[0])t++;else if(n[r]===e[1]&&(t--,t<0))return r;return t>0?-2:-1}function Dr(n,e=0){let t=e,r="";for(let s of n)if(s===" "){let a=4-t%4;r+=" ".repeat(a),t+=a}else r+=s,t++;return r}function nn(n,e,t,r,s){let a=e.href,o=e.title||null,l=n[1].replace(s.other.outputLinkReplace,"$1");r.state.inLink=!0;let h={type:n[0].charAt(0)==="!"?"image":"link",raw:t,href:a,title:o,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,h}function Cr(n,e,t){let r=n.match(t.other.indentCodeCompensation);if(r===null)return e;let s=r[1];return e.split(`
3
+ `).map(a=>{let o=a.match(t.other.beginningSpace);if(o===null)return a;let[l]=o;return l.length>=s.length?a.slice(s.length):a}).join(`
4
+ `)}var Be=class{constructor(n){A(this,"options");A(this,"rules");A(this,"lexer");this.options=n||ie}space(n){let e=this.rules.block.newline.exec(n);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(n){let e=this.rules.block.code.exec(n);if(e){let t=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?t:Te(t,`
5
+ `)}}}fences(n){let e=this.rules.block.fences.exec(n);if(e){let t=e[0],r=Cr(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:r}}}heading(n){let e=this.rules.block.heading.exec(n);if(e){let t=e[2].trim();if(this.rules.other.endingHash.test(t)){let r=Te(t,"#");(this.options.pedantic||!r||this.rules.other.endingSpaceChar.test(r))&&(t=r.trim())}return{type:"heading",raw:e[0],depth:e[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(n){let e=this.rules.block.hr.exec(n);if(e)return{type:"hr",raw:Te(e[0],`
6
+ `)}}blockquote(n){let e=this.rules.block.blockquote.exec(n);if(e){let t=Te(e[0],`
7
+ `).split(`
8
+ `),r="",s="",a=[];for(;t.length>0;){let o=!1,l=[],h;for(h=0;h<t.length;h++)if(this.rules.other.blockquoteStart.test(t[h]))l.push(t[h]),o=!0;else if(!o)l.push(t[h]);else break;t=t.slice(h);let c=l.join(`
9
+ `),f=c.replace(this.rules.other.blockquoteSetextReplace,`
10
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");r=r?`${r}
11
+ ${c}`:c,s=s?`${s}
12
+ ${f}`:f;let k=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,a,!0),this.lexer.state.top=k,t.length===0)break;let m=a.at(-1);if((m==null?void 0:m.type)==="code")break;if((m==null?void 0:m.type)==="blockquote"){let p=m,w=p.raw+`
13
+ `+t.join(`
14
+ `),x=this.blockquote(w);a[a.length-1]=x,r=r.substring(0,r.length-p.raw.length)+x.raw,s=s.substring(0,s.length-p.text.length)+x.text;break}else if((m==null?void 0:m.type)==="list"){let p=m,w=p.raw+`
15
+ `+t.join(`
16
+ `),x=this.list(w);a[a.length-1]=x,r=r.substring(0,r.length-m.raw.length)+x.raw,s=s.substring(0,s.length-p.raw.length)+x.raw,t=w.substring(a.at(-1).raw.length).split(`
17
+ `);continue}}return{type:"blockquote",raw:r,tokens:a,text:s}}}list(n){var t,r;let e=this.rules.block.list.exec(n);if(e){let s=e[1].trim(),a=s.length>1,o={type:"list",raw:"",ordered:a,start:a?+s.slice(0,-1):"",loose:!1,items:[]};s=a?`\\d{1,9}\\${s.slice(-1)}`:`\\${s}`,this.options.pedantic&&(s=a?s:"[*+-]");let l=this.rules.other.listItemRegex(s),h=!1;for(;n;){let f=!1,k="",m="";if(!(e=l.exec(n))||this.rules.block.hr.test(n))break;k=e[0],n=n.substring(k.length);let p=Dr(e[2].split(`
18
+ `,1)[0],e[1].length),w=n.split(`
19
+ `,1)[0],x=!p.trim(),S=0;if(this.options.pedantic?(S=2,m=p.trimStart()):x?S=e[1].length+1:(S=p.search(this.rules.other.nonSpaceChar),S=S>4?1:S,m=p.slice(S),S+=e[1].length),x&&this.rules.other.blankLine.test(w)&&(k+=w+`
20
+ `,n=n.substring(w.length+1),f=!0),!f){let V=this.rules.other.nextBulletRegex(S),le=this.rules.other.hrRegex(S),K=this.rules.other.fencesBeginRegex(S),I=this.rules.other.headingBeginRegex(S),J=this.rules.other.htmlBeginRegex(S),ge=this.rules.other.blockquoteBeginRegex(S);for(;n;){let de=n.split(`
21
+ `,1)[0],ee;if(w=de,this.options.pedantic?(w=w.replace(this.rules.other.listReplaceNesting," "),ee=w):ee=w.replace(this.rules.other.tabCharGlobal," "),K.test(w)||I.test(w)||J.test(w)||ge.test(w)||V.test(w)||le.test(w))break;if(ee.search(this.rules.other.nonSpaceChar)>=S||!w.trim())m+=`
22
+ `+ee.slice(S);else{if(x||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||K.test(p)||I.test(p)||le.test(p))break;m+=`
23
+ `+w}x=!w.trim(),k+=de+`
24
+ `,n=n.substring(de.length+1),p=ee.slice(S)}}o.loose||(h?o.loose=!0:this.rules.other.doubleBlankLine.test(k)&&(h=!0)),o.items.push({type:"list_item",raw:k,task:!!this.options.gfm&&this.rules.other.listIsTask.test(m),loose:!1,text:m,tokens:[]}),o.raw+=k}let c=o.items.at(-1);if(c)c.raw=c.raw.trimEnd(),c.text=c.text.trimEnd();else return;o.raw=o.raw.trimEnd();for(let f of o.items){if(this.lexer.state.top=!1,f.tokens=this.lexer.blockTokens(f.text,[]),f.task){if(f.text=f.text.replace(this.rules.other.listReplaceTask,""),((t=f.tokens[0])==null?void 0:t.type)==="text"||((r=f.tokens[0])==null?void 0:r.type)==="paragraph"){f.tokens[0].raw=f.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),f.tokens[0].text=f.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let m=this.lexer.inlineQueue.length-1;m>=0;m--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[m].src)){this.lexer.inlineQueue[m].src=this.lexer.inlineQueue[m].src.replace(this.rules.other.listReplaceTask,"");break}}let k=this.rules.other.listTaskCheckbox.exec(f.raw);if(k){let m={type:"checkbox",raw:k[0]+" ",checked:k[0]!=="[ ]"};f.checked=m.checked,o.loose?f.tokens[0]&&["paragraph","text"].includes(f.tokens[0].type)&&"tokens"in f.tokens[0]&&f.tokens[0].tokens?(f.tokens[0].raw=m.raw+f.tokens[0].raw,f.tokens[0].text=m.raw+f.tokens[0].text,f.tokens[0].tokens.unshift(m)):f.tokens.unshift({type:"paragraph",raw:m.raw,text:m.raw,tokens:[m]}):f.tokens.unshift(m)}}if(!o.loose){let k=f.tokens.filter(p=>p.type==="space"),m=k.length>0&&k.some(p=>this.rules.other.anyLine.test(p.raw));o.loose=m}}if(o.loose)for(let f of o.items){f.loose=!0;for(let k of f.tokens)k.type==="text"&&(k.type="paragraph")}return o}}html(n){let e=this.rules.block.html.exec(n);if(e)return{type:"html",block:!0,raw:e[0],pre:e[1]==="pre"||e[1]==="script"||e[1]==="style",text:e[0]}}def(n){let e=this.rules.block.def.exec(n);if(e){let t=e[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),r=e[2]?e[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=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:r,title:s}}}table(n){var o;let e=this.rules.block.table.exec(n);if(!e||!this.rules.other.tableDelimiter.test(e[2]))return;let t=tn(e[1]),r=e[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(o=e[3])!=null&&o.trim()?e[3].replace(this.rules.other.tableRowBlankLine,"").split(`
25
+ `):[],a={type:"table",raw:e[0],header:[],align:[],rows:[]};if(t.length===r.length){for(let l of r)this.rules.other.tableAlignRight.test(l)?a.align.push("right"):this.rules.other.tableAlignCenter.test(l)?a.align.push("center"):this.rules.other.tableAlignLeft.test(l)?a.align.push("left"):a.align.push(null);for(let l=0;l<t.length;l++)a.header.push({text:t[l],tokens:this.lexer.inline(t[l]),header:!0,align:a.align[l]});for(let l of s)a.rows.push(tn(l,a.header.length).map((h,c)=>({text:h,tokens:this.lexer.inline(h),header:!1,align:a.align[c]})));return a}}lheading(n){let e=this.rules.block.lheading.exec(n);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(n){let e=this.rules.block.paragraph.exec(n);if(e){let t=e[1].charAt(e[1].length-1)===`
26
+ `?e[1].slice(0,-1):e[1];return{type:"paragraph",raw:e[0],text:t,tokens:this.lexer.inline(t)}}}text(n){let e=this.rules.block.text.exec(n);if(e)return{type:"text",raw:e[0],text:e[0],tokens:this.lexer.inline(e[0])}}escape(n){let e=this.rules.inline.escape.exec(n);if(e)return{type:"escape",raw:e[0],text:e[1]}}tag(n){let e=this.rules.inline.tag.exec(n);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(n){let e=this.rules.inline.link.exec(n);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 a=Te(t.slice(0,-1),"\\");if((t.length-a.length)%2===0)return}else{let a=Ir(e[2],"()");if(a===-2)return;if(a>-1){let o=(e[0].indexOf("!")===0?5:4)+e[1].length+a;e[2]=e[2].substring(0,a),e[0]=e[0].substring(0,o).trim(),e[3]=""}}let r=e[2],s="";if(this.options.pedantic){let a=this.rules.other.pedanticHrefTitle.exec(r);a&&(r=a[1],s=a[3])}else s=e[3]?e[3].slice(1,-1):"";return r=r.trim(),this.rules.other.startAngleBracket.test(r)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(t)?r=r.slice(1):r=r.slice(1,-1)),nn(e,{href:r&&r.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},e[0],this.lexer,this.rules)}}reflink(n,e){let t;if((t=this.rules.inline.reflink.exec(n))||(t=this.rules.inline.nolink.exec(n))){let r=(t[2]||t[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=e[r.toLowerCase()];if(!s){let a=t[0].charAt(0);return{type:"text",raw:a,text:a}}return nn(t,s,t[0],this.lexer,this.rules)}}emStrong(n,e,t=""){let r=this.rules.inline.emStrongLDelim.exec(n);if(!(!r||r[3]&&t.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!t||this.rules.inline.punctuation.exec(t))){let s=[...r[0]].length-1,a,o,l=s,h=0,c=r[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(c.lastIndex=0,e=e.slice(-1*n.length+s);(r=c.exec(e))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a)continue;if(o=[...a].length,r[3]||r[4]){l+=o;continue}else if((r[5]||r[6])&&s%3&&!((s+o)%3)){h+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l+h);let f=[...r[0]][0].length,k=n.slice(0,s+r.index+f+o);if(Math.min(s,o)%2){let p=k.slice(1,-1);return{type:"em",raw:k,text:p,tokens:this.lexer.inlineTokens(p)}}let m=k.slice(2,-2);return{type:"strong",raw:k,text:m,tokens:this.lexer.inlineTokens(m)}}}}codespan(n){let e=this.rules.inline.code.exec(n);if(e){let t=e[2].replace(this.rules.other.newLineCharGlobal," "),r=this.rules.other.nonSpaceChar.test(t),s=this.rules.other.startingSpaceChar.test(t)&&this.rules.other.endingSpaceChar.test(t);return r&&s&&(t=t.substring(1,t.length-1)),{type:"codespan",raw:e[0],text:t}}}br(n){let e=this.rules.inline.br.exec(n);if(e)return{type:"br",raw:e[0]}}del(n,e,t=""){let r=this.rules.inline.delLDelim.exec(n);if(r&&(!r[1]||!t||this.rules.inline.punctuation.exec(t))){let s=[...r[0]].length-1,a,o,l=s,h=this.rules.inline.delRDelim;for(h.lastIndex=0,e=e.slice(-1*n.length+s);(r=h.exec(e))!=null;){if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!a||(o=[...a].length,o!==s))continue;if(r[3]||r[4]){l+=o;continue}if(l-=o,l>0)continue;o=Math.min(o,o+l);let c=[...r[0]][0].length,f=n.slice(0,s+r.index+c+o),k=f.slice(s,-s);return{type:"del",raw:f,text:k,tokens:this.lexer.inlineTokens(k)}}}}autolink(n){let e=this.rules.inline.autolink.exec(n);if(e){let t,r;return e[2]==="@"?(t=e[1],r="mailto:"+t):(t=e[1],r=t),{type:"link",raw:e[0],text:t,href:r,tokens:[{type:"text",raw:t,text:t}]}}}url(n){var t;let e;if(e=this.rules.inline.url.exec(n)){let r,s;if(e[2]==="@")r=e[0],s="mailto:"+r;else{let a;do a=e[0],e[0]=((t=this.rules.inline._backpedal.exec(e[0]))==null?void 0:t[0])??"";while(a!==e[0]);r=e[0],e[1]==="www."?s="http://"+e[0]:s=e[0]}return{type:"link",raw:e[0],text:r,href:s,tokens:[{type:"text",raw:r,text:r}]}}}inlineText(n){let e=this.rules.inline.text.exec(n);if(e){let t=this.lexer.state.inRawBlock;return{type:"text",raw:e[0],text:e[0],escaped:t}}}},H=class ft{constructor(e){A(this,"tokens");A(this,"options");A(this,"state");A(this,"inlineQueue");A(this,"tokenizer");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||ie,this.options.tokenizer=this.options.tokenizer||new Be,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 t={other:v,block:Me.normal,inline:xe.normal};this.options.pedantic?(t.block=Me.pedantic,t.inline=xe.pedantic):this.options.gfm&&(t.block=Me.gfm,this.options.breaks?t.inline=xe.breaks:t.inline=xe.gfm),this.tokenizer.rules=t}static get rules(){return{block:Me,inline:xe}}static lex(e,t){return new ft(t).lex(e)}static lexInline(e,t){return new ft(t).inlineTokens(e)}lex(e){e=e.replace(v.carriageReturn,`
27
+ `),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){let r=this.inlineQueue[t];this.inlineTokens(r.src,r.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],r=!1){var s,a,o;for(this.options.pedantic&&(e=e.replace(v.tabCharGlobal," ").replace(v.spaceLine,""));e;){let l;if((a=(s=this.options.extensions)==null?void 0:s.block)!=null&&a.some(c=>(l=c.call({lexer:this},e,t))?(e=e.substring(l.raw.length),t.push(l),!0):!1))continue;if(l=this.tokenizer.space(e)){e=e.substring(l.raw.length);let c=t.at(-1);l.raw.length===1&&c!==void 0?c.raw+=`
28
+ `:t.push(l);continue}if(l=this.tokenizer.code(e)){e=e.substring(l.raw.length);let c=t.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
29
+ `)?"":`
30
+ `)+l.raw,c.text+=`
31
+ `+l.text,this.inlineQueue.at(-1).src=c.text):t.push(l);continue}if(l=this.tokenizer.fences(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.heading(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.hr(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.blockquote(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.list(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.html(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.def(e)){e=e.substring(l.raw.length);let c=t.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
32
+ `)?"":`
33
+ `)+l.raw,c.text+=`
34
+ `+l.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[l.tag]||(this.tokens.links[l.tag]={href:l.href,title:l.title},t.push(l));continue}if(l=this.tokenizer.table(e)){e=e.substring(l.raw.length),t.push(l);continue}if(l=this.tokenizer.lheading(e)){e=e.substring(l.raw.length),t.push(l);continue}let h=e;if((o=this.options.extensions)!=null&&o.startBlock){let c=1/0,f=e.slice(1),k;this.options.extensions.startBlock.forEach(m=>{k=m.call({lexer:this},f),typeof k=="number"&&k>=0&&(c=Math.min(c,k))}),c<1/0&&c>=0&&(h=e.substring(0,c+1))}if(this.state.top&&(l=this.tokenizer.paragraph(h))){let c=t.at(-1);r&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=(c.raw.endsWith(`
35
+ `)?"":`
36
+ `)+l.raw,c.text+=`
37
+ `+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):t.push(l),r=h.length!==e.length,e=e.substring(l.raw.length);continue}if(l=this.tokenizer.text(e)){e=e.substring(l.raw.length);let c=t.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=(c.raw.endsWith(`
38
+ `)?"":`
39
+ `)+l.raw,c.text+=`
40
+ `+l.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):t.push(l);continue}if(e){let c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(c)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var h,c,f,k,m;let r=e,s=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)p.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(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,s.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let a;for(;(s=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)a=s[2]?s[2].length:0,r=r.slice(0,s.index+a)+"["+"a".repeat(s[0].length-a-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=((c=(h=this.options.hooks)==null?void 0:h.emStrongMask)==null?void 0:c.call({lexer:this},r))??r;let o=!1,l="";for(;e;){o||(l=""),o=!1;let p;if((k=(f=this.options.extensions)==null?void 0:f.inline)!=null&&k.some(x=>(p=x.call({lexer:this},e,t))?(e=e.substring(p.raw.length),t.push(p),!0):!1))continue;if(p=this.tokenizer.escape(e)){e=e.substring(p.raw.length),t.push(p);continue}if(p=this.tokenizer.tag(e)){e=e.substring(p.raw.length),t.push(p);continue}if(p=this.tokenizer.link(e)){e=e.substring(p.raw.length),t.push(p);continue}if(p=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(p.raw.length);let x=t.at(-1);p.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):t.push(p);continue}if(p=this.tokenizer.emStrong(e,r,l)){e=e.substring(p.raw.length),t.push(p);continue}if(p=this.tokenizer.codespan(e)){e=e.substring(p.raw.length),t.push(p);continue}if(p=this.tokenizer.br(e)){e=e.substring(p.raw.length),t.push(p);continue}if(p=this.tokenizer.del(e,r,l)){e=e.substring(p.raw.length),t.push(p);continue}if(p=this.tokenizer.autolink(e)){e=e.substring(p.raw.length),t.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(e))){e=e.substring(p.raw.length),t.push(p);continue}let w=e;if((m=this.options.extensions)!=null&&m.startInline){let x=1/0,S=e.slice(1),V;this.options.extensions.startInline.forEach(le=>{V=le.call({lexer:this},S),typeof V=="number"&&V>=0&&(x=Math.min(x,V))}),x<1/0&&x>=0&&(w=e.substring(0,x+1))}if(p=this.tokenizer.inlineText(w)){e=e.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(l=p.raw.slice(-1)),o=!0;let x=t.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):t.push(p);continue}if(e){let x="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent)break;throw new Error(x)}}return t}},He=class{constructor(n){A(this,"options");A(this,"parser");this.options=n||ie}space(n){return""}code({text:n,lang:e,escaped:t}){var a;let r=(a=(e||"").match(v.notSpaceStart))==null?void 0:a[0],s=n.replace(v.endingNewline,"")+`
41
+ `;return r?'<pre><code class="language-'+Q(r)+'">'+(t?s:Q(s,!0))+`</code></pre>
42
+ `:"<pre><code>"+(t?s:Q(s,!0))+`</code></pre>
43
+ `}blockquote({tokens:n}){return`<blockquote>
44
+ ${this.parser.parse(n)}</blockquote>
45
+ `}html({text:n}){return n}def(n){return""}heading({tokens:n,depth:e}){return`<h${e}>${this.parser.parseInline(n)}</h${e}>
46
+ `}hr(n){return`<hr>
47
+ `}list(n){let e=n.ordered,t=n.start,r="";for(let o=0;o<n.items.length;o++){let l=n.items[o];r+=this.listitem(l)}let s=e?"ol":"ul",a=e&&t!==1?' start="'+t+'"':"";return"<"+s+a+`>
48
+ `+r+"</"+s+`>
49
+ `}listitem(n){return`<li>${this.parser.parse(n.tokens)}</li>
50
+ `}checkbox({checked:n}){return"<input "+(n?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:n}){return`<p>${this.parser.parseInline(n)}</p>
51
+ `}table(n){let e="",t="";for(let s=0;s<n.header.length;s++)t+=this.tablecell(n.header[s]);e+=this.tablerow({text:t});let r="";for(let s=0;s<n.rows.length;s++){let a=n.rows[s];t="";for(let o=0;o<a.length;o++)t+=this.tablecell(a[o]);r+=this.tablerow({text:t})}return r&&(r=`<tbody>${r}</tbody>`),`<table>
52
+ <thead>
53
+ `+e+`</thead>
54
+ `+r+`</table>
55
+ `}tablerow({text:n}){return`<tr>
56
+ ${n}</tr>
57
+ `}tablecell(n){let e=this.parser.parseInline(n.tokens),t=n.header?"th":"td";return(n.align?`<${t} align="${n.align}">`:`<${t}>`)+e+`</${t}>
58
+ `}strong({tokens:n}){return`<strong>${this.parser.parseInline(n)}</strong>`}em({tokens:n}){return`<em>${this.parser.parseInline(n)}</em>`}codespan({text:n}){return`<code>${Q(n,!0)}</code>`}br(n){return"<br>"}del({tokens:n}){return`<del>${this.parser.parseInline(n)}</del>`}link({href:n,title:e,tokens:t}){let r=this.parser.parseInline(t),s=en(n);if(s===null)return r;n=s;let a='<a href="'+n+'"';return e&&(a+=' title="'+Q(e)+'"'),a+=">"+r+"</a>",a}image({href:n,title:e,text:t,tokens:r}){r&&(t=this.parser.parseInline(r,this.parser.textRenderer));let s=en(n);if(s===null)return Q(t);n=s;let a=`<img src="${n}" alt="${t}"`;return e&&(a+=` title="${Q(e)}"`),a+=">",a}text(n){return"tokens"in n&&n.tokens?this.parser.parseInline(n.tokens):"escaped"in n&&n.escaped?n.text:Q(n.text)}},Rt=class{strong({text:n}){return n}em({text:n}){return n}codespan({text:n}){return n}del({text:n}){return n}html({text:n}){return n}text({text:n}){return n}link({text:n}){return""+n}image({text:n}){return""+n}br(){return""}checkbox({raw:n}){return n}},G=class gt{constructor(e){A(this,"options");A(this,"renderer");A(this,"textRenderer");this.options=e||ie,this.options.renderer=this.options.renderer||new He,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Rt}static parse(e,t){return new gt(t).parse(e)}static parseInline(e,t){return new gt(t).parseInline(e)}parse(e){var r,s;let t="";for(let a=0;a<e.length;a++){let o=e[a];if((s=(r=this.options.extensions)==null?void 0:r.renderers)!=null&&s[o.type]){let h=o,c=this.options.extensions.renderers[h.type].call({parser:this},h);if(c!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(h.type)){t+=c||"";continue}}let l=o;switch(l.type){case"space":{t+=this.renderer.space(l);break}case"hr":{t+=this.renderer.hr(l);break}case"heading":{t+=this.renderer.heading(l);break}case"code":{t+=this.renderer.code(l);break}case"table":{t+=this.renderer.table(l);break}case"blockquote":{t+=this.renderer.blockquote(l);break}case"list":{t+=this.renderer.list(l);break}case"checkbox":{t+=this.renderer.checkbox(l);break}case"html":{t+=this.renderer.html(l);break}case"def":{t+=this.renderer.def(l);break}case"paragraph":{t+=this.renderer.paragraph(l);break}case"text":{t+=this.renderer.text(l);break}default:{let h='Token with "'+l.type+'" type was not found.';if(this.options.silent)return"";throw new Error(h)}}}return t}parseInline(e,t=this.renderer){var s,a;let r="";for(let o=0;o<e.length;o++){let l=e[o];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[l.type]){let c=this.options.extensions.renderers[l.type].call({parser:this},l);if(c!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(l.type)){r+=c||"";continue}}let h=l;switch(h.type){case"escape":{r+=t.text(h);break}case"html":{r+=t.html(h);break}case"link":{r+=t.link(h);break}case"image":{r+=t.image(h);break}case"checkbox":{r+=t.checkbox(h);break}case"strong":{r+=t.strong(h);break}case"em":{r+=t.em(h);break}case"codespan":{r+=t.codespan(h);break}case"br":{r+=t.br(h);break}case"del":{r+=t.del(h);break}case"text":{r+=t.text(h);break}default:{let c='Token with "'+h.type+'" type was not found.';if(this.options.silent)return"";throw new Error(c)}}}return r}},$e,Re=($e=class{constructor(n){A(this,"options");A(this,"block");this.options=n||ie}preprocess(n){return n}postprocess(n){return n}processAllTokens(n){return n}emStrongMask(n){return n}provideLexer(){return this.block?H.lex:H.lexInline}provideParser(){return this.block?G.parse:G.parseInline}},A($e,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),A($e,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),$e),Or=class{constructor(...n){A(this,"defaults",bt());A(this,"options",this.setOptions);A(this,"parse",this.parseMarkdown(!0));A(this,"parseInline",this.parseMarkdown(!1));A(this,"Parser",G);A(this,"Renderer",He);A(this,"TextRenderer",Rt);A(this,"Lexer",H);A(this,"Tokenizer",Be);A(this,"Hooks",Re);this.use(...n)}walkTokens(n,e){var r,s;let t=[];for(let a of n)switch(t=t.concat(e.call(this,a)),a.type){case"table":{let o=a;for(let l of o.header)t=t.concat(this.walkTokens(l.tokens,e));for(let l of o.rows)for(let h of l)t=t.concat(this.walkTokens(h.tokens,e));break}case"list":{let o=a;t=t.concat(this.walkTokens(o.items,e));break}default:{let o=a;(s=(r=this.defaults.extensions)==null?void 0:r.childTokens)!=null&&s[o.type]?this.defaults.extensions.childTokens[o.type].forEach(l=>{let h=o[l].flat(1/0);t=t.concat(this.walkTokens(h,e))}):o.tokens&&(t=t.concat(this.walkTokens(o.tokens,e)))}}return t}use(...n){let e=this.defaults.extensions||{renderers:{},childTokens:{}};return n.forEach(t=>{let r={...t};if(r.async=this.defaults.async||r.async||!1,t.extensions&&(t.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let a=e.renderers[s.name];a?e.renderers[s.name]=function(...o){let l=s.renderer.apply(this,o);return l===!1&&(l=a.apply(this,o)),l}:e.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let a=e[s.level];a?a.unshift(s.tokenizer):e[s.level]=[s.tokenizer],s.start&&(s.level==="block"?e.startBlock?e.startBlock.push(s.start):e.startBlock=[s.start]:s.level==="inline"&&(e.startInline?e.startInline.push(s.start):e.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(e.childTokens[s.name]=s.childTokens)}),r.extensions=e),t.renderer){let s=this.defaults.renderer||new He(this.defaults);for(let a in t.renderer){if(!(a in s))throw new Error(`renderer '${a}' does not exist`);if(["options","parser"].includes(a))continue;let o=a,l=t.renderer[o],h=s[o];s[o]=(...c)=>{let f=l.apply(s,c);return f===!1&&(f=h.apply(s,c)),f||""}}r.renderer=s}if(t.tokenizer){let s=this.defaults.tokenizer||new Be(this.defaults);for(let a in t.tokenizer){if(!(a in s))throw new Error(`tokenizer '${a}' does not exist`);if(["options","rules","lexer"].includes(a))continue;let o=a,l=t.tokenizer[o],h=s[o];s[o]=(...c)=>{let f=l.apply(s,c);return f===!1&&(f=h.apply(s,c)),f}}r.tokenizer=s}if(t.hooks){let s=this.defaults.hooks||new Re;for(let a in t.hooks){if(!(a in s))throw new Error(`hook '${a}' does not exist`);if(["options","block"].includes(a))continue;let o=a,l=t.hooks[o],h=s[o];Re.passThroughHooks.has(a)?s[o]=c=>{if(this.defaults.async&&Re.passThroughHooksRespectAsync.has(a))return(async()=>{let k=await l.call(s,c);return h.call(s,k)})();let f=l.call(s,c);return h.call(s,f)}:s[o]=(...c)=>{if(this.defaults.async)return(async()=>{let k=await l.apply(s,c);return k===!1&&(k=await h.apply(s,c)),k})();let f=l.apply(s,c);return f===!1&&(f=h.apply(s,c)),f}}r.hooks=s}if(t.walkTokens){let s=this.defaults.walkTokens,a=t.walkTokens;r.walkTokens=function(o){let l=[];return l.push(a.call(this,o)),s&&(l=l.concat(s.call(this,o))),l}}this.defaults={...this.defaults,...r}}),this}setOptions(n){return this.defaults={...this.defaults,...n},this}lexer(n,e){return H.lex(n,e??this.defaults)}parser(n,e){return G.parse(n,e??this.defaults)}parseMarkdown(n){return(e,t)=>{let r={...t},s={...this.defaults,...r},a=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&r.async===!1)return a(new 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"||e===null)return a(new Error("marked(): input parameter is undefined or null"));if(typeof e!="string")return a(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=n),s.async)return(async()=>{let o=s.hooks?await s.hooks.preprocess(e):e,l=await(s.hooks?await s.hooks.provideLexer():n?H.lex:H.lexInline)(o,s),h=s.hooks?await s.hooks.processAllTokens(l):l;s.walkTokens&&await Promise.all(this.walkTokens(h,s.walkTokens));let c=await(s.hooks?await s.hooks.provideParser():n?G.parse:G.parseInline)(h,s);return s.hooks?await s.hooks.postprocess(c):c})().catch(a);try{s.hooks&&(e=s.hooks.preprocess(e));let o=(s.hooks?s.hooks.provideLexer():n?H.lex:H.lexInline)(e,s);s.hooks&&(o=s.hooks.processAllTokens(o)),s.walkTokens&&this.walkTokens(o,s.walkTokens);let l=(s.hooks?s.hooks.provideParser():n?G.parse:G.parseInline)(o,s);return s.hooks&&(l=s.hooks.postprocess(l)),l}catch(o){return a(o)}}}onError(n,e){return t=>{if(t.message+=`
59
+ Please report this to https://github.com/markedjs/marked.`,n){let r="<p>An error occurred:</p><pre>"+Q(t.message+"",!0)+"</pre>";return e?Promise.resolve(r):r}if(e)return Promise.reject(t);throw t}}},se=new Or;function _(n,e){return se.parse(n,e)}_.options=_.setOptions=function(n){return se.setOptions(n),_.defaults=se.defaults,hn(_.defaults),_};_.getDefaults=bt;_.defaults=ie;_.use=function(...n){return se.use(...n),_.defaults=se.defaults,hn(_.defaults),_};_.walkTokens=function(n,e){return se.walkTokens(n,e)};_.parseInline=se.parseInline;_.Parser=G;_.parser=G.parse;_.Renderer=He;_.TextRenderer=Rt;_.Lexer=H;_.lexer=H.lex;_.Tokenizer=Be;_.Hooks=Re;_.parse=_;_.options;_.setOptions;_.use;_.walkTokens;_.parseInline;G.parse;H.lex;/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:En,setPrototypeOf:rn,isFrozen:Nr,getPrototypeOf:Pr,getOwnPropertyDescriptor:Mr}=Object;let{freeze:z,seal:F,create:dt}=Object,{apply:mt,construct:kt}=typeof Reflect<"u"&&Reflect;z||(z=function(e){return e});F||(F=function(e){return e});mt||(mt=function(e,t){for(var r=arguments.length,s=new Array(r>2?r-2:0),a=2;a<r;a++)s[a-2]=arguments[a];return e.apply(t,s)});kt||(kt=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];return new e(...r)});const ve=$(Array.prototype.forEach),vr=$(Array.prototype.lastIndexOf),sn=$(Array.prototype.pop),we=$(Array.prototype.push),zr=$(Array.prototype.splice),Ue=$(String.prototype.toLowerCase),lt=$(String.prototype.toString),at=$(String.prototype.match),Ae=$(String.prototype.replace),$r=$(String.prototype.indexOf),Ur=$(String.prototype.trim),B=$(Object.prototype.hasOwnProperty),M=$(RegExp.prototype.test),_e=Fr(TypeError);function $(n){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var t=arguments.length,r=new Array(t>1?t-1:0),s=1;s<t;s++)r[s-1]=arguments[s];return mt(n,e,r)}}function Fr(n){return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return kt(n,t)}}function b(n,e){let t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ue;rn&&rn(n,null);let r=e.length;for(;r--;){let s=e[r];if(typeof s=="string"){const a=t(s);a!==s&&(Nr(e)||(e[r]=a),s=a)}n[s]=!0}return n}function Br(n){for(let e=0;e<n.length;e++)B(n,e)||(n[e]=null);return n}function Z(n){const e=dt(null);for(const[t,r]of En(n))B(n,t)&&(Array.isArray(r)?e[t]=Br(r):r&&typeof r=="object"&&r.constructor===Object?e[t]=Z(r):e[t]=r);return e}function Ee(n,e){for(;n!==null;){const r=Mr(n,e);if(r){if(r.get)return $(r.get);if(typeof r.value=="function")return $(r.value)}n=Pr(n)}function t(){return null}return t}const ln=z(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ot=z(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ct=z(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Hr=z(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),ut=z(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Gr=z(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),an=z(["#text"]),on=z(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),pt=z(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),cn=z(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ze=z(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Wr=F(/\{\{[\w\W]*|[\w\W]*\}\}/gm),qr=F(/<%[\w\W]*|[\w\W]*%>/gm),Zr=F(/\$\{[\w\W]*/gm),Yr=F(/^data-[\-\w.\u00B7-\uFFFF]+$/),jr=F(/^aria-[\-\w]+$/),Sn=F(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Xr=F(/^(?:\w+script|data):/i),Qr=F(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Rn=F(/^html$/i),Vr=F(/^[a-z][.\w]*(-[.\w]+)+$/i);var un=Object.freeze({__proto__:null,ARIA_ATTR:jr,ATTR_WHITESPACE:Qr,CUSTOM_ELEMENT:Vr,DATA_ATTR:Yr,DOCTYPE_NAME:Rn,ERB_EXPR:qr,IS_ALLOWED_URI:Sn,IS_SCRIPT_OR_DATA:Xr,MUSTACHE_EXPR:Wr,TMPLIT_EXPR:Zr});const Se={element:1,text:3,progressingInstruction:7,comment:8,document:9},Kr=function(){return typeof window>"u"?null:window},Jr=function(e,t){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let r=null;const s="data-tt-policy-suffix";t&&t.hasAttribute(s)&&(r=t.getAttribute(s));const a="dompurify"+(r?"#"+r:"");try{return e.createPolicy(a,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return null}},pn=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function yn(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Kr();const e=d=>yn(d);if(e.version="3.3.1",e.removed=[],!n||!n.document||n.document.nodeType!==Se.document||!n.Element)return e.isSupported=!1,e;let{document:t}=n;const r=t,s=r.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:l,Element:h,NodeFilter:c,NamedNodeMap:f=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:k,DOMParser:m,trustedTypes:p}=n,w=h.prototype,x=Ee(w,"cloneNode"),S=Ee(w,"remove"),V=Ee(w,"nextSibling"),le=Ee(w,"childNodes"),K=Ee(w,"parentNode");if(typeof o=="function"){const d=t.createElement("template");d.content&&d.content.ownerDocument&&(t=d.content.ownerDocument)}let I,J="";const{implementation:ge,createNodeIterator:de,createDocumentFragment:ee,getElementsByTagName:Ln}=t,{importNode:In}=r;let P=pn();e.isSupported=typeof En=="function"&&typeof K=="function"&&ge&&ge.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:qe,ERB_EXPR:Ze,TMPLIT_EXPR:Ye,DATA_ATTR:Dn,ARIA_ATTR:Cn,IS_SCRIPT_OR_DATA:On,ATTR_WHITESPACE:yt,CUSTOM_ELEMENT:Nn}=un;let{IS_ALLOWED_URI:Lt}=un,D=null;const It=b({},[...ln,...ot,...ct,...ut,...an]);let C=null;const Dt=b({},[...on,...pt,...cn,...ze]);let R=Object.seal(dt(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),me=null,je=null;const ae=Object.seal(dt(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ct=!0,Xe=!0,Ot=!1,Nt=!0,oe=!1,Le=!0,te=!1,Qe=!1,Ve=!1,ce=!1,Ie=!1,De=!1,Pt=!0,Mt=!1;const Pn="user-content-";let Ke=!0,ke=!1,ue={},W=null;const Je=b({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let vt=null;const zt=b({},["audio","video","img","source","image","track"]);let et=null;const $t=b({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ce="http://www.w3.org/1998/Math/MathML",Oe="http://www.w3.org/2000/svg",Y="http://www.w3.org/1999/xhtml";let pe=Y,tt=!1,nt=null;const Mn=b({},[Ce,Oe,Y],lt);let Ne=b({},["mi","mo","mn","ms","mtext"]),Pe=b({},["annotation-xml"]);const vn=b({},["title","style","font","a","script"]);let be=null;const zn=["application/xhtml+xml","text/html"],$n="text/html";let L=null,he=null;const Un=t.createElement("form"),Ut=function(i){return i instanceof RegExp||i instanceof Function},rt=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(he&&he===i)){if((!i||typeof i!="object")&&(i={}),i=Z(i),be=zn.indexOf(i.PARSER_MEDIA_TYPE)===-1?$n:i.PARSER_MEDIA_TYPE,L=be==="application/xhtml+xml"?lt:Ue,D=B(i,"ALLOWED_TAGS")?b({},i.ALLOWED_TAGS,L):It,C=B(i,"ALLOWED_ATTR")?b({},i.ALLOWED_ATTR,L):Dt,nt=B(i,"ALLOWED_NAMESPACES")?b({},i.ALLOWED_NAMESPACES,lt):Mn,et=B(i,"ADD_URI_SAFE_ATTR")?b(Z($t),i.ADD_URI_SAFE_ATTR,L):$t,vt=B(i,"ADD_DATA_URI_TAGS")?b(Z(zt),i.ADD_DATA_URI_TAGS,L):zt,W=B(i,"FORBID_CONTENTS")?b({},i.FORBID_CONTENTS,L):Je,me=B(i,"FORBID_TAGS")?b({},i.FORBID_TAGS,L):Z({}),je=B(i,"FORBID_ATTR")?b({},i.FORBID_ATTR,L):Z({}),ue=B(i,"USE_PROFILES")?i.USE_PROFILES:!1,Ct=i.ALLOW_ARIA_ATTR!==!1,Xe=i.ALLOW_DATA_ATTR!==!1,Ot=i.ALLOW_UNKNOWN_PROTOCOLS||!1,Nt=i.ALLOW_SELF_CLOSE_IN_ATTR!==!1,oe=i.SAFE_FOR_TEMPLATES||!1,Le=i.SAFE_FOR_XML!==!1,te=i.WHOLE_DOCUMENT||!1,ce=i.RETURN_DOM||!1,Ie=i.RETURN_DOM_FRAGMENT||!1,De=i.RETURN_TRUSTED_TYPE||!1,Ve=i.FORCE_BODY||!1,Pt=i.SANITIZE_DOM!==!1,Mt=i.SANITIZE_NAMED_PROPS||!1,Ke=i.KEEP_CONTENT!==!1,ke=i.IN_PLACE||!1,Lt=i.ALLOWED_URI_REGEXP||Sn,pe=i.NAMESPACE||Y,Ne=i.MATHML_TEXT_INTEGRATION_POINTS||Ne,Pe=i.HTML_INTEGRATION_POINTS||Pe,R=i.CUSTOM_ELEMENT_HANDLING||{},i.CUSTOM_ELEMENT_HANDLING&&Ut(i.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(R.tagNameCheck=i.CUSTOM_ELEMENT_HANDLING.tagNameCheck),i.CUSTOM_ELEMENT_HANDLING&&Ut(i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(R.attributeNameCheck=i.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),i.CUSTOM_ELEMENT_HANDLING&&typeof i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(R.allowCustomizedBuiltInElements=i.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),oe&&(Xe=!1),Ie&&(ce=!0),ue&&(D=b({},an),C=[],ue.html===!0&&(b(D,ln),b(C,on)),ue.svg===!0&&(b(D,ot),b(C,pt),b(C,ze)),ue.svgFilters===!0&&(b(D,ct),b(C,pt),b(C,ze)),ue.mathMl===!0&&(b(D,ut),b(C,cn),b(C,ze))),i.ADD_TAGS&&(typeof i.ADD_TAGS=="function"?ae.tagCheck=i.ADD_TAGS:(D===It&&(D=Z(D)),b(D,i.ADD_TAGS,L))),i.ADD_ATTR&&(typeof i.ADD_ATTR=="function"?ae.attributeCheck=i.ADD_ATTR:(C===Dt&&(C=Z(C)),b(C,i.ADD_ATTR,L))),i.ADD_URI_SAFE_ATTR&&b(et,i.ADD_URI_SAFE_ATTR,L),i.FORBID_CONTENTS&&(W===Je&&(W=Z(W)),b(W,i.FORBID_CONTENTS,L)),i.ADD_FORBID_CONTENTS&&(W===Je&&(W=Z(W)),b(W,i.ADD_FORBID_CONTENTS,L)),Ke&&(D["#text"]=!0),te&&b(D,["html","head","body"]),D.table&&(b(D,["tbody"]),delete me.tbody),i.TRUSTED_TYPES_POLICY){if(typeof i.TRUSTED_TYPES_POLICY.createHTML!="function")throw _e('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof i.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw _e('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');I=i.TRUSTED_TYPES_POLICY,J=I.createHTML("")}else I===void 0&&(I=Jr(p,s)),I!==null&&typeof J=="string"&&(J=I.createHTML(""));z&&z(i),he=i}},Ft=b({},[...ot,...ct,...Hr]),Bt=b({},[...ut,...Gr]),Fn=function(i){let u=K(i);(!u||!u.tagName)&&(u={namespaceURI:pe,tagName:"template"});const g=Ue(i.tagName),E=Ue(u.tagName);return nt[i.namespaceURI]?i.namespaceURI===Oe?u.namespaceURI===Y?g==="svg":u.namespaceURI===Ce?g==="svg"&&(E==="annotation-xml"||Ne[E]):!!Ft[g]:i.namespaceURI===Ce?u.namespaceURI===Y?g==="math":u.namespaceURI===Oe?g==="math"&&Pe[E]:!!Bt[g]:i.namespaceURI===Y?u.namespaceURI===Oe&&!Pe[E]||u.namespaceURI===Ce&&!Ne[E]?!1:!Bt[g]&&(vn[g]||!Ft[g]):!!(be==="application/xhtml+xml"&&nt[i.namespaceURI]):!1},q=function(i){we(e.removed,{element:i});try{K(i).removeChild(i)}catch{S(i)}},ne=function(i,u){try{we(e.removed,{attribute:u.getAttributeNode(i),from:u})}catch{we(e.removed,{attribute:null,from:u})}if(u.removeAttribute(i),i==="is")if(ce||Ie)try{q(u)}catch{}else try{u.setAttribute(i,"")}catch{}},Ht=function(i){let u=null,g=null;if(Ve)i="<remove></remove>"+i;else{const y=at(i,/^[\r\n\t ]+/);g=y&&y[0]}be==="application/xhtml+xml"&&pe===Y&&(i='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+i+"</body></html>");const E=I?I.createHTML(i):i;if(pe===Y)try{u=new m().parseFromString(E,be)}catch{}if(!u||!u.documentElement){u=ge.createDocument(pe,"template",null);try{u.documentElement.innerHTML=tt?J:E}catch{}}const N=u.body||u.documentElement;return i&&g&&N.insertBefore(t.createTextNode(g),N.childNodes[0]||null),pe===Y?Ln.call(u,te?"html":"body")[0]:te?u.documentElement:N},Gt=function(i){return de.call(i.ownerDocument||i,i,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},st=function(i){return i instanceof k&&(typeof i.nodeName!="string"||typeof i.textContent!="string"||typeof i.removeChild!="function"||!(i.attributes instanceof f)||typeof i.removeAttribute!="function"||typeof i.setAttribute!="function"||typeof i.namespaceURI!="string"||typeof i.insertBefore!="function"||typeof i.hasChildNodes!="function")},Wt=function(i){return typeof l=="function"&&i instanceof l};function j(d,i,u){ve(d,g=>{g.call(e,i,u,he)})}const qt=function(i){let u=null;if(j(P.beforeSanitizeElements,i,null),st(i))return q(i),!0;const g=L(i.nodeName);if(j(P.uponSanitizeElement,i,{tagName:g,allowedTags:D}),Le&&i.hasChildNodes()&&!Wt(i.firstElementChild)&&M(/<[/\w!]/g,i.innerHTML)&&M(/<[/\w!]/g,i.textContent)||i.nodeType===Se.progressingInstruction||Le&&i.nodeType===Se.comment&&M(/<[/\w]/g,i.data))return q(i),!0;if(!(ae.tagCheck instanceof Function&&ae.tagCheck(g))&&(!D[g]||me[g])){if(!me[g]&&Yt(g)&&(R.tagNameCheck instanceof RegExp&&M(R.tagNameCheck,g)||R.tagNameCheck instanceof Function&&R.tagNameCheck(g)))return!1;if(Ke&&!W[g]){const E=K(i)||i.parentNode,N=le(i)||i.childNodes;if(N&&E){const y=N.length;for(let U=y-1;U>=0;--U){const X=x(N[U],!0);X.__removalCount=(i.__removalCount||0)+1,E.insertBefore(X,V(i))}}}return q(i),!0}return i instanceof h&&!Fn(i)||(g==="noscript"||g==="noembed"||g==="noframes")&&M(/<\/no(script|embed|frames)/i,i.innerHTML)?(q(i),!0):(oe&&i.nodeType===Se.text&&(u=i.textContent,ve([qe,Ze,Ye],E=>{u=Ae(u,E," ")}),i.textContent!==u&&(we(e.removed,{element:i.cloneNode()}),i.textContent=u)),j(P.afterSanitizeElements,i,null),!1)},Zt=function(i,u,g){if(Pt&&(u==="id"||u==="name")&&(g in t||g in Un))return!1;if(!(Xe&&!je[u]&&M(Dn,u))){if(!(Ct&&M(Cn,u))){if(!(ae.attributeCheck instanceof Function&&ae.attributeCheck(u,i))){if(!C[u]||je[u]){if(!(Yt(i)&&(R.tagNameCheck instanceof RegExp&&M(R.tagNameCheck,i)||R.tagNameCheck instanceof Function&&R.tagNameCheck(i))&&(R.attributeNameCheck instanceof RegExp&&M(R.attributeNameCheck,u)||R.attributeNameCheck instanceof Function&&R.attributeNameCheck(u,i))||u==="is"&&R.allowCustomizedBuiltInElements&&(R.tagNameCheck instanceof RegExp&&M(R.tagNameCheck,g)||R.tagNameCheck instanceof Function&&R.tagNameCheck(g))))return!1}else if(!et[u]){if(!M(Lt,Ae(g,yt,""))){if(!((u==="src"||u==="xlink:href"||u==="href")&&i!=="script"&&$r(g,"data:")===0&&vt[i])){if(!(Ot&&!M(On,Ae(g,yt,"")))){if(g)return!1}}}}}}}return!0},Yt=function(i){return i!=="annotation-xml"&&at(i,Nn)},jt=function(i){j(P.beforeSanitizeAttributes,i,null);const{attributes:u}=i;if(!u||st(i))return;const g={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:C,forceKeepAttr:void 0};let E=u.length;for(;E--;){const N=u[E],{name:y,namespaceURI:U,value:X}=N,fe=L(y),it=X;let O=y==="value"?it:Ur(it);if(g.attrName=fe,g.attrValue=O,g.keepAttr=!0,g.forceKeepAttr=void 0,j(P.uponSanitizeAttribute,i,g),O=g.attrValue,Mt&&(fe==="id"||fe==="name")&&(ne(y,i),O=Pn+O),Le&&M(/((--!?|])>)|<\/(style|title|textarea)/i,O)){ne(y,i);continue}if(fe==="attributename"&&at(O,"href")){ne(y,i);continue}if(g.forceKeepAttr)continue;if(!g.keepAttr){ne(y,i);continue}if(!Nt&&M(/\/>/i,O)){ne(y,i);continue}oe&&ve([qe,Ze,Ye],Qt=>{O=Ae(O,Qt," ")});const Xt=L(i.nodeName);if(!Zt(Xt,fe,O)){ne(y,i);continue}if(I&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!U)switch(p.getAttributeType(Xt,fe)){case"TrustedHTML":{O=I.createHTML(O);break}case"TrustedScriptURL":{O=I.createScriptURL(O);break}}if(O!==it)try{U?i.setAttributeNS(U,y,O):i.setAttribute(y,O),st(i)?q(i):sn(e.removed)}catch{ne(y,i)}}j(P.afterSanitizeAttributes,i,null)},Bn=function d(i){let u=null;const g=Gt(i);for(j(P.beforeSanitizeShadowDOM,i,null);u=g.nextNode();)j(P.uponSanitizeShadowNode,u,null),qt(u),jt(u),u.content instanceof a&&d(u.content);j(P.afterSanitizeShadowDOM,i,null)};return e.sanitize=function(d){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=null,g=null,E=null,N=null;if(tt=!d,tt&&(d="<!-->"),typeof d!="string"&&!Wt(d))if(typeof d.toString=="function"){if(d=d.toString(),typeof d!="string")throw _e("dirty is not a string, aborting")}else throw _e("toString is not a function");if(!e.isSupported)return d;if(Qe||rt(i),e.removed=[],typeof d=="string"&&(ke=!1),ke){if(d.nodeName){const X=L(d.nodeName);if(!D[X]||me[X])throw _e("root node is forbidden and cannot be sanitized in-place")}}else if(d instanceof l)u=Ht("<!---->"),g=u.ownerDocument.importNode(d,!0),g.nodeType===Se.element&&g.nodeName==="BODY"||g.nodeName==="HTML"?u=g:u.appendChild(g);else{if(!ce&&!oe&&!te&&d.indexOf("<")===-1)return I&&De?I.createHTML(d):d;if(u=Ht(d),!u)return ce?null:De?J:""}u&&Ve&&q(u.firstChild);const y=Gt(ke?d:u);for(;E=y.nextNode();)qt(E),jt(E),E.content instanceof a&&Bn(E.content);if(ke)return d;if(ce){if(Ie)for(N=ee.call(u.ownerDocument);u.firstChild;)N.appendChild(u.firstChild);else N=u;return(C.shadowroot||C.shadowrootmode)&&(N=In.call(r,N,!0)),N}let U=te?u.outerHTML:u.innerHTML;return te&&D["!doctype"]&&u.ownerDocument&&u.ownerDocument.doctype&&u.ownerDocument.doctype.name&&M(Rn,u.ownerDocument.doctype.name)&&(U="<!DOCTYPE "+u.ownerDocument.doctype.name+`>
60
+ `+U),oe&&ve([qe,Ze,Ye],X=>{U=Ae(U,X," ")}),I&&De?I.createHTML(U):U},e.setConfig=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rt(d),Qe=!0},e.clearConfig=function(){he=null,Qe=!1},e.isValidAttribute=function(d,i,u){he||rt({});const g=L(d),E=L(i);return Zt(g,E,u)},e.addHook=function(d,i){typeof i=="function"&&we(P[d],i)},e.removeHook=function(d,i){if(i!==void 0){const u=vr(P[d],i);return u===-1?void 0:zr(P[d],u,1)[0]}return sn(P[d])},e.removeHooks=function(d){P[d]=[]},e.removeAllHooks=function(){P=pn()},e}var ts=yn();export{_ as g,ts as p};
@@ -7,11 +7,14 @@
7
7
  <!-- Fonts loaded locally from /fonts/ -->
8
8
  <title>AI-Cli Online</title>
9
9
  <link rel="preload" href="/fonts/JetBrainsMono-Regular.woff2" as="font" type="font/woff2" crossorigin />
10
- <script type="module" crossorigin src="/assets/index-CmWFgqt3.js"></script>
10
+ <!-- LXGW WenKai Mono (中文等宽字体, CDN unicode-range 按需加载) -->
11
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.7.0/lxgwwenkaimono-regular.css" />
12
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.7.0/lxgwwenkaimono-bold.css" />
13
+ <script type="module" crossorigin src="/assets/index-BdGwxTX2.js"></script>
11
14
  <link rel="modulepreload" crossorigin href="/assets/react-vendor-BCIvbQoU.js">
12
15
  <link rel="modulepreload" crossorigin href="/assets/terminal-DnNpv9tw.js">
13
- <link rel="modulepreload" crossorigin href="/assets/markdown-BERZKN_L.js">
14
- <link rel="stylesheet" crossorigin href="/assets/index-CtLiFTts.css">
16
+ <link rel="modulepreload" crossorigin href="/assets/markdown-CU76q5qk.js">
17
+ <link rel="stylesheet" crossorigin href="/assets/index-CuElHGZV.css">
15
18
  </head>
16
19
  <body>
17
20
  <div id="root"></div>
package/web/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-cli-online-web",
3
- "version": "2.4.0",
3
+ "version": "2.9.1",
4
4
  "description": "CLI-Online Web Frontend",
5
5
  "type": "module",
6
6
  "scripts": {