PageSourceSearch

https://overgaden.org/_nuxt/D5-Pl_I_.js

js overgaden.org collected 2026-09-24 22:52:39 UTC 41,745 bytes, 46 lines download raw bytes

1var le=Object.defineProperty;var ae=(s,e,n)=>e in s?le(s,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):s[e]=n;var M=(s,e,n)=>ae(s,typeof e!="symbol"?e+"":e,n);import{K as oe,aE as ce,a8 as he,i as P,o as ue,c as pe,n as fe,a4 as ge}from"./D60rxmo7.js";import{p as de}from"./pI-s8Hm6.js";function V(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let I=V();function me(s){I=s}const J=/[&<>"']/,ke=new RegExp(J.source,"g"),ee=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,xe=new RegExp(ee.source,"g"),be={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Q=s=>be[s];function y(s,e){if(e){if(J.test(s))return s.replace(ke,Q)}else if(ee.test(s))return s.replace(xe,Q);return s}const we=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function te(s){return s.replace(we,(e,n)=>(n=n.toLowerCase(),n==="colon"?":":n.charAt(0)==="#"?n.charAt(1)==="x"?String.fromCharCode(parseInt(n.substring(2),16)):String.fromCharCode(+n.substring(1)):""))}const $e=/(^|[^\[])\^/g;function b(s,e){s=typeof s=="string"?s:s.source,e=e||"";const n={replace:(t,i)=>(i=i.source||i,i=i.replace($e,"$1"),s=s.replace(t,i),n),getRegex:()=>new RegExp(s,e)};return n}const _e=/[^\w:]/g,ye=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function H(s,e,n){if(s){let t;try{t=decodeURIComponent(te(n)).replace(_e,"").toLowerCase()}catch{return null}if(t.indexOf("javascript:")===0||t.indexOf("vbscript:")===0||t.indexOf("data:")===0)return null}e&&!ye.test(n)&&(n=Re(e,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch{return null}return n}const D={},ze=/^[^:]+:\/*[^/]*$/,Te=/^([^:]+:)[\s\S]*$/,Se=/^([^:]+:\/*[^/]*)[\s\S]*$/;function Re(s,e){D[" "+s]||(ze.test(s)?D[" "+s]=s+"/":D[" "+s]=C(s,"/",!0)),s=D[" "+s];const n=s.indexOf(":")===-1;return e.substring(0,2)==="//"?n?e:s.replace(Te,"$1")+e:e.charAt(0)==="/"?n?e:s.replace(Se,"$1")+e:s+e}const q={exec:function(){}};function W(s,e){const n=s.replace(/\|/g,(r,l,a)=>{let c=!1,d=l;for(;--d>=0&&a[d]==="\\";)c=!c;return c?"|":" |"}),t=n.split(/ \|/);let i=0;if(t[0].trim()||t.shift(),t.length>0&&!t[t.length-1].trim()&&t.pop(),t.length>e)t.splice(e);else for(;t.length<e;)t.push("");for(;i<t.length;i++)t[i]=t[i].trim().replace(/\\\|/g,"|");return t}function C(s,e,n){const t=s.length;if(t===0)return"";let i=0;for(;i<t;){const r=s.charAt(t-i-1);if(r===e&&!n)i++;else if(r!==e&&n)i++;else break}return s.slice(0,t-i)}function Ae(s,e){if(s.indexOf(e[1])===-1)return-1;const n=s.length;let t=0,i=0;for(;i<n;i++)if(s[i]==="\\")i++;else if(s[i]===e[0])t++;else if(s[i]===e[1]&&(t--,t<0))return i;return-1}function Ie(s){s&&s.sanitize&&!s.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}function K(s,e){if(e<1)return"";let n="";for(;e>1;)e&1&&(n+=s),e>>=1,s+=s;return n+s}function F(s,e,n,t){const i=e.href,r=e.title?y(e.title):null,l=s[1].replace(/\\([\[\]])/g,"$1");if(s[0].charAt(0)!=="!"){t.state.inLink=!0;const a={type:"link",raw:n,href:i,title:r,text:l,tokens:t.inlineTokens(l)};return t.state.inLink=!1,a}return{type:"image",raw:n,href:i,title:r,text:y(l)}}function Ee(s,e){const n=s.match(/^(\s+)(?:```)/);if(n===null)return e;const t=n[1];return e.split(`
2`).map(i=>{const r=i.match(/^\s+/);if(r===null)return i;const[l]=r;return l.length>=t.length?i.slice(t.length):i}).join(`
3`)}class O{constructor(e){this.options=e||I}space(e){const n=this.rules.block.newline.exec(e);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(e){const n=this.rules.block.code.exec(e);if(n){const t=n[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?t:C(t,`
4`)}}}fences(e){const n=this.rules.block.fences.exec(e);if(n){const t=n[0],i=Ee(t,n[3]||"");return{type:"code",raw:t,lang:n[2]?n[2].trim().replace(this.rules.inline._escapes,"$1"):n[2],text:i}}}heading(e){const n=this.rules.block.heading.exec(e);if(n){let t=n[2].trim();if(/#$/.test(t)){const i=C(t,"#");(this.options.pedantic||!i||/ $/.test(i))&&(t=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:t,tokens:this.lexer.inline(t)}}}hr(e){const n=this.rules.block.hr.exec(e);if(n)return{type:"hr",raw:n[0]}}blockquote(e){const n=this.rules.block.blockquote.exec(e);if(n){const t=n[0].replace(/^ *>[ \t]?/gm,""),i=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(t);return this.lexer.state.top=i,{type:"blockquote",raw:n[0],tokens:r,text:t}}}list(e){let n=this.rules.block.list.exec(e);if(n){let t,i,r,l,a,c,d,g,m,o,u,w,$=n[1].trim();const k=$.length>1,x={type:"list",raw:"",ordered:k,start:k?+$.slice(0,-1):"",loose:!1,items:[]};$=k?`\\d{1,9}\\${$.slice(-1)}`:`\\${$}`,this.options.pedantic&&($=k?$:"[*+-]");const _=new RegExp(`^( {0,3}${$})((?:[	 ][^\\n]*)?(?:\\n|$))`);for(;e&&(w=!1,!(!(n=_.exec(e))||this.rules.block.hr.test(e)));){if(t=n[0],e=e.substring(t.length),g=n[2].split(`
5`,1)[0].replace(/^\t+/,S=>" ".repeat(3*S.length)),m=e.split(`
6`,1)[0],this.options.pedantic?(l=2,u=g.trimLeft()):(l=n[2].search(/[^ ]/),l=l>4?1:l,u=g.slice(l),l+=n[1].length),c=!1,!g&&/^ *$/.test(m)&&(t+=m+`
7`,e=e.substring(m.length+1),w=!0),!w){const S=new RegExp(`^ {0,${Math.min(3,l-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),z=new RegExp(`^ {0,${Math.min(3,l-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),T=new RegExp(`^ {0,${Math.min(3,l-1)}}(?:\`\`\`|~~~)`),N=new RegExp(`^ {0,${Math.min(3,l-1)}}#`);for(;e&&(o=e.split(`
8`,1)[0],m=o,this.options.pedantic&&(m=m.replace(/^ {1,4}(?=( {4})*[^ ])/g,"  ")),!(T.test(m)||N.test(m)||S.test(m)||z.test(e)));){if(m.search(/[^ ]/)>=l||!m.trim())u+=`
9`+m.slice(l);else{if(c||g.search(/[^ ]/)>=4||T.test(g)||N.test(g)||z.test(g))break;u+=`
10`+m}!c&&!m.trim()&&(c=!0),t+=o+`
11`,e=e.substring(o.length+1),g=m.slice(l)}}x.loose||(d?x.loose=!0:/\n *\n *$/.test(t)&&(d=!0)),this.options.gfm&&(i=/^\[[ xX]\] /.exec(u),i&&(r=i[0]!=="[ ] ",u=u.replace(/^\[[ xX]\] +/,""))),x.items.push({type:"list_item",raw:t,task:!!i,checked:r,loose:!1,text:u}),x.raw+=t}x.items[x.items.length-1].raw=t.trimRight(),x.items[x.items.length-1].text=u.trimRight(),x.raw=x.raw.trimRight();const E=x.items.length;for(a=0;a<E;a++)if(this.lexer.state.top=!1,x.items[a].tokens=this.lexer.blockTokens(x.items[a].text,[]),!x.loose){const S=x.items[a].tokens.filter(T=>T.type==="space"),z=S.length>0&&S.some(T=>/\n.*\n/.test(T.raw));x.loose=z}if(x.loose)for(a=0;a<E;a++)x.items[a].loose=!0;return x}}html(e){const n=this.rules.block.html.exec(e);if(n){const t={type:"html",raw:n[0],pre:!this.options.sanitizer&&(n[1]==="pre"||n[1]==="script"||n[1]==="style"),text:n[0]};if(this.options.sanitize){const i=this.options.sanitizer?this.options.sanitizer(n[0]):y(n[0]);t.type="paragraph",t.text=i,t.tokens=this.lexer.inline(i)}return t}}def(e){const n=this.rules.block.def.exec(e);if(n){const t=n[1].toLowerCase().replace(/\s+/g," "),i=n[2]?n[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=n[3]?n[3].substring(1,n[3].length-1).replace(this.rules.inline._escapes,"$1"):n[3];return{type:"def",tag:t,raw:n[0],href:i,title:r}}}table(e){const n=this.rules.block.table.exec(e);if(n){const t={type:"table",header:W(n[1]).map(i=>({text:i})),align:n[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:n[3]&&n[3].trim()?n[3].replace(/\n[ \t]*$/,"").split(`
12`):[]};if(t.header.length===t.align.length){t.raw=n[0];let i=t.align.length,r,l,a,c;for(r=0;r<i;r++)/^ *-+: *$/.test(t.align[r])?t.align[r]="right":/^ *:-+: *$/.test(t.align[r])?t.align[r]="center"
12:/^ *:-+ *$/.test(t.align[r])?t.align[r]="left":t.align[r]=null;for(i=t.rows.length,r=0;r<i;r++)t.rows[r]=W(t.rows[r],t.header.length).map(d=>({text:d}));for(i=t.header.length,l=0;l<i;l++)t.header[l].tokens=this.lexer.inline(t.header[l].text);for(i=t.rows.length,l=0;l<i;l++)for(c=t.rows[l],a=0;a<c.length;a++)c[a].tokens=this.lexer.inline(c[a].text);return t}}}lheading(e){const n=this.rules.block.lheading.exec(e);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(e){const n=this.rules.block.paragraph.exec(e);if(n){const t=n[1].charAt(n[1].length-1)===`
13`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:t,tokens:this.lexer.inline(t)}}}text(e){const n=this.rules.block.text.exec(e);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(e){const n=this.rules.inline.escape.exec(e);if(n)return{type:"escape",raw:n[0],text:y(n[1])}}tag(e){const n=this.rules.inline.tag.exec(e);if(n)return!this.lexer.state.inLink&&/^<a /i.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):y(n[0]):n[0]}}link(e){const n=this.rules.inline.link.exec(e);if(n){const t=n[2].trim();if(!this.options.pedantic&&/^</.test(t)){if(!/>$/.test(t))return;const l=C(t.slice(0,-1),"\\");if((t.length-l.length)%2===0)return}else{const l=Ae(n[2],"()");if(l>-1){const c=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,c).trim(),n[3]=""}}let i=n[2],r="";if(this.options.pedantic){const l=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);l&&(i=l[1],r=l[3])}else r=n[3]?n[3].slice(1,-1):"";return i=i.trim(),/^</.test(i)&&(this.options.pedantic&&!/>$/.test(t)?i=i.slice(1):i=i.slice(1,-1)),F(n,{href:i&&i.replace(this.rules.inline._escapes,"$1"),title:r&&r.replace(this.rules.inline._escapes,"$1")},n[0],this.lexer)}}reflink(e,n){let t;if((t=this.rules.inline.reflink.exec(e))||(t=this.rules.inline.nolink.exec(e))){let i=(t[2]||t[1]).replace(/\s+/g," ");if(i=n[i.toLowerCase()],!i){const r=t[0].charAt(0);return{type:"text",raw:r,text:r}}return F(t,i,t[0],this.lexer)}}emStrong(e,n,t=""){let i=this.rules.inline.emStrong.lDelim.exec(e);if(!i||i[3]&&t.match(/[\p{L}\p{N}]/u))return;const r=i[1]||i[2]||"";if(!r||r&&(t===""||this.rules.inline.punctuation.exec(t))){const l=i[0].length-1;let a,c,d=l,g=0;const m=i[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(m.lastIndex=0,n=n.slice(-1*e.length+l);(i=m.exec(n))!=null;){if(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!a)continue;if(c=a.length,i[3]||i[4]){d+=c;continue}else if((i[5]||i[6])&&l%3&&!((l+c)%3)){g+=c;continue}if(d-=c,d>0)continue;c=Math.min(c,c+d+g);const o=e.slice(0,l+i.index+(i[0].length-a.length)+c);if(Math.min(l,c)%2){const w=o.slice(1,-1);return{type:"em",raw:o,text:w,tokens:this.lexer.inlineTokens(w)}}const u=o.slice(2,-2);return{type:"strong",raw:o,text:u,tokens:this.lexer.inlineTokens(u)}}}}codespan(e){const n=this.rules.inline.code.exec(e);if(n){let t=n[2].replace(/\n/g," ");const i=/[^ ]/.test(t),r=/^ /.test(t)&&/ $/.test(t);return i&&r&&(t=t.substring(1,t.length-1)),t=y(t,!0),{type:"codespan",raw:n[0],text:t}}}br(e){const n=this.rules.inline.br.exec(e);if(n)return{type:"br",raw:n[0]}}del(e){const n=this.rules.inline.del.exec(e);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(e,n){const t=this.rules.inline.autolink.exec(e);if(t){let i,r;return t[2]==="@"?(i=y(this.options.mangle?n(t[1]):t[1]),r="mailto:"+i):(i=y(t[1]),r=i),{type:"link",raw:t[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}url(e,n){let t;if(t=this.rules.inline.url.exec(e)){let i,r;if(t[2]==="@")i=y(this.options.mangle?n(t[0]):t[0]),r="mailto:"+i;else{let l;do l=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])[0];while(l!==t[0]);i=y(t[0]),t[1]==="www."?r="http://"+t[0]:r=t[0]}return{type:"link",raw:t[0],text:i,href:r,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(e,n){const t=this.rules.inline.text.exec(e);if(t){let i;return this.lexer.state.inRawBlock?i=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):y(t[0]):t[0]:i=y(this.options.smartypants?n(t[0]):t[0]),{type:"text",raw:t[0],text:i}}}}const f={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}
vendor: 16,806 bytes, lines 13-44
13(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {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|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:q,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};f._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;f._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;f.def=b(f.def).replace("label",f._label).replace("title",f._title).getRegex();f.bullet=/(?:[*+-]|\d{1,9}[.)])/;f.listItemStart=b(/^( *)(bull) */).replace("bull",f.bullet).getRegex();f.list=b(f.list).replace(/bull/g,f.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+f.def.source+")").getRegex();f._tag="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|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul";f._comment=/<!--(?!-?>)[\s\S]*?(?:-->|$)/;f.html=b(f.html,"i").replace("comment",f._comment).replace("tag",f._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();f.paragraph=b(f._paragraph).replace("hr",f.hr).replace("heading"," {0,3}#{1,6} ").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",f._tag).getRegex();f.blockquote=b(f.blockquote).replace("paragraph",f.paragraph).getRegex();f.normal={...f};f.gfm={...f.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};f.gfm.table=b(f.gfm.table).replace("hr",f.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\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",f._tag).getRegex();f.gfm.paragraph=b(f._paragraph).replace("hr",f.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",f.gfm.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",f._tag).getRegex();f.pedantic={...f.normal,html:b(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",f._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:q,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:b(f.normal._paragraph).replace("hr",f.hr).replace("heading",` *#{1,6} *[^
14]`).replace("lheading",f.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const h={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:q,tag:"^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:q,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,punctuation:/^([\spunctuation])/};h._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~";h.punctuation=b(h.punctuation).replace(/punctuation/g,h._punctuation).getRegex();h.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;h.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;h._comment=b(f._comment).replace("(?:-->|$)","-->").getRegex();h.emStrong.lDelim=b(h.emStrong.lDelim).replace(/punct/g,h._punctuation).getRegex();h.emStrong.rDelimAst=b(h.emStrong.rDelimAst,"g").replace(/punct/g,h._punctuation).getRegex();h.emStrong.rDelimUnd=b(h.emStrong.rDelimUnd,"g").replace(/punct/g,h._punctuation).getRegex();h._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;h._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;h._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])?)+(?![-_])/;h.autolink=b(h.autolink).replace("scheme",h._scheme).replace("email",h._email).getRegex();h._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;h.tag=b(h.tag).replace("comment",h._comment).replace("attribute",h._attribute).getRegex();h._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;h._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;h._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;h.link=b(h.link).replace("label",h._label).replace("href",h._href).replace("title",h._title).getRegex();h.reflink=b(h.reflink).replace("label",h._label).replace("ref",f._label).getRegex();h.nolink=b(h.nolink).replace("ref",f._label).getRegex();h.reflinkSearch=b(h.reflinkSearch,"g").replace("reflink",h.reflink).replace("nolink",h.nolink).getRegex();h.normal={...h};h.pedantic={...h.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:b(/^!?\[(label)\]\((.*?)\)/).replace("label",h._label).getRegex(),reflink:b(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",h._label).getRegex()};h.gfm={...h.normal,escape:b(h.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/};h.gfm.url=b(h.gfm.url,"i").replace("email",h.gfm._extended_email).getRegex();h.breaks={...h.gfm,br:b(h.br).replace("{2,}","*").getRegex(),text:b(h.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()};function Le(s){return s.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…")}function X(s){let e="",n,t;const i=s.length;for(n=0;n<i;n++)t=s.charCodeAt(n),Math.random()>.5&&(t="x"+t.toString(16)),e+="&#"+t+";";return e}class R{constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||I,this.options.tokenizer=this.options.tokenizer||new O,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={block:f.normal,inline:h.normal};this.options.pedantic?(n.block=f.pedantic,n.inline=h.pedantic):this.options.gfm&&(n.block=f.gfm,this.options.breaks?n.inline=h.breaks:n.inline=h.gfm),this.tokenizer.rules=n}static get rules(){return{block:f,inline:h}}static lex(e,n){return new R(n).lex(e)}static lexInline(e,n){return new R(n).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
15`),this.blockTokens(e,this.tokens);let n;for(;n=this.inlineQueue.shift();)this.inlineTokens(n.src,n.tokens);return this.tokens}blockTokens(e,n=[]){this.options.pedantic?e=e.replace(/\t/g,"    ").replace(/^ +$/gm,""):e=e.replace(/^( *)(\t+)/gm,(a,c,d)=>c+"    ".repeat(d.length));let t,i,r,l;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(a=>(t=a.call({lexer:this},e,n))?(e=e.substring(t.raw.length),n.push(t),!0):!1))){if(t=this.tokenizer.space(e)){e=e.substring(t.raw.length),t.raw.length===1&&n.length>0?n[n.length-1].raw+=`
16`:n.push(t);continue}if(t=this.tokenizer.code(e)){e=e.substring(t.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
17`+t.raw,i.text+=`
18`+t.text,this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(t);continue}if(t=this.tokenizer.fences(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.heading(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.hr(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.blockquote(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.list(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.html(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.def(e)){e=e.substring(t.raw.length),i=n[n.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
19`+t.raw,i.text+=`
20`+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=i.text):this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title});continue}if(t=this.tokenizer.table(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.lheading(e)){e=e.substring(t.raw.length),n.push(t);continue}if(r=e,this.options.extensions&&this.options.extensions.startBlock){let a=1/0;const c=e.slice(1);let d;this.options.extensions.startBlock.forEach(function(g){d=g.call({lexer:this},c),typeof d=="number"&&d>=0&&(a=Math.min(a,d))}),a<1/0&&a>=0&&(r=e.substring(0,a+1))}if(this.state.top&&(t=this.tokenizer.paragraph(r))){i=n[n.length-1],l&&i.type==="paragraph"?(i.raw+=`
21`+t.raw,i.text+=`
22`+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(t),l=r.length!==e.length,e=e.substring(t.raw.length);continue}if(t=this.tokenizer.text(e)){e=e.substring(t.raw.length),i=n[n.length-1],i&&i.type==="text"?(i.raw+=`
23`+t.raw,i.text+=`
24`+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=i.text):n.push(t);continue}if(e){const a="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(a);break}else throw new Error(a)}}return this.state.top=!0,n}inline(e,n=[]){return this.inlineQueue.push({src:e,tokens:n}),n}inlineTokens(e,n=[]){let t,i,r,l=e,a,c,d;if(this.tokens.links){const g=Object.keys(this.tokens.links);if(g.length>0)for(;(a=this.tokenizer.rules.inline.reflinkSearch.exec(l))!=null;)g.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(l=l.slice(0,a.index)+"["+K("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(a=this.tokenizer.rules.inline.blockSkip.exec(l))!=null;)l=l.slice(0,a.index)+"["+K("a",a[0].length-2)+"]"+l.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(a=this.tokenizer.rules.inline.escapedEmSt.exec(l))!=null;)l=l.slice(0,a.index+a[0].length-2)+"++"+l.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(c||(d=""),c=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(g=>(t=g.call({lexer:this},e,n))?(e=e.substring(t.raw.length),n.push(t),!0):!1))){if(t=this.tokenizer.escape(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.tag(e)){e=e.substring(t.raw.length),i=n[n.length-1],i&&t.type==="text"&&i.type==="text"?(i.raw+=t.raw,i.text+=t.text):n.push(t);continue}if(t=this.tokenizer.link(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(t.raw.length),i=n[n.length-1],i&&t.type==="text"&&i.type==="text"?(i.raw+=t.raw,i.text+=t.text):n.push(t);continue}if(t=this.tokenizer.emStrong(e,l,d)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.codespan(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.br(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.del(e)){e=e.substring(t.raw.length),n.push(t);continue}if(t=this.tokenizer.autolink(e,X)){e=e.substring(t.raw.length),n.push(t);continue}if(!this.state.inLink&&(t=this.tokenizer.url(e,X))){e=e.substring(t.raw.length),n.push(t);continue}if(r=e,this.options.extensions&&this.options.extensions.startInline){let g=1/0;const m=e.slice(1);let o;this.options.extensions.startInline.forEach(function(u){o=u.call({lexer:this},m),typeof o=="number"&&o>=0&&(g=Math.min(g,o))}),g<1/0&&g>=0&&(r=e.substring(0,g+1))}if(t=this.tokenizer.inlineText(r,Le)){e=e.substring(t.raw.length),t.raw.slice(-1)!=="_"&&(d=t.raw.slice(-1)),c=!0,i=n[n.length-1],i&&i.type==="text"?(i.raw+=t.raw,i.text+=t.text):n.push(t);continue}if(e){const g="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(g);break}else throw new Error(g)}}return n}}class U{constructor(e){this.options=e||I}code(e,n,t){const i=(n||"").match(/\S*/)[0];if(this.options.highlight){const r=this.options.highlight(e,i);r!=null&&r!==e&&(t=!0,e=r)}return e=e.replace(/\n$/,"")+`
25`,i?'<pre><code class="'+this.options.langPrefix+y(i)+'">'+(t?e:y(e,!0))+`</code></pre>
26`:"<pre><code>"+(t?e:y(e,!0))+`</code></pre>
27`}blockquote(e){return`<blockquote>
28${e}</blockquote>
29`}html(e){return e}heading(e,n,t,i){if(this.options.headerIds){const r=this.options.headerPrefix+i.slug(t);return`<h${n} id="${r}">${e}</h${n}>
30`}return`<h${n}>${e}</h${n}>
31`}hr(){return this.options.xhtml?`<hr/>
32`:`<hr>
33`}list(e,n,t){const i=n?"ol":"ul",r=n&&t!==1?' start="'+t+'"':"";return"<"+i+r+`>
34`+e+"</"+i+`>
35`}listitem(e){return`<li>${e}</li>
36`}checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return`<p>${e}</p>
37`}table(e,n){return n&&(n=`<tbody>${n}</tbody>`),`<table>
38<thead>
39`+e+`</thead>
40`+n+`</table>
41`}tablerow(e){return`<tr>
42${e}</tr>
43`}tablecell(e,n){const t=n.header?"th":"td";return(n.align?`<${t} align="${n.align}">`:`<${t}>`)+e+`</${t}>
44`}strong(e){return`<strong>${e}</strong>`}em(e){return`<em>${e}</em>`}codespan(e){return`<code>${e}</code>`}br(){return this.options.xhtml?"<br/>":"<br>"}del(e){return`<del>${e}</del>`}link(e,n,t){if(e=H(this.options.sanitize,this.options.baseUrl,e),e===null)return t;let i='<a href="'+e+'"';return n&&(i+=' title="'+n+'"'),i+=">"+t+"</a>",i}image(e,n,t){if(e=H(this.options.sanitize,this.options.baseUrl,e),e===null)return t;let i=`<img src="${e}" alt="${t}"`;return n&&(i+=` title="${n}"`),i+=this.options.xhtml?"/>":">",i}text(e){return e}}class ne{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,n,t){return""+t}image(e,n,t){return""+t}br(){return""}}class ie{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}
vendor: 4,479 bytes, lines 44-46
44getNextSafeSlug(e,n){let t=e,i=0;if(this.seen.hasOwnProperty(t)){i=this.seen[e];do i++,t=e+"-"+i;while(this.seen.hasOwnProperty(t))}return n||(this.seen[e]=i,this.seen[t]=0),t}slug(e,n={}){const t=this.serialize(e);return this.getNextSafeSlug(t,n.dryrun)}}class A{constructor(e){this.options=e||I,this.options.renderer=this.options.renderer||new U,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ne,this.slugger=new ie}static parse(e,n){return new A(n).parse(e)}static parseInline(e,n){return new A(n).parseInline(e)}parse(e,n=!0){let t="",i,r,l,a,c,d,g,m,o,u,w,$,k,x,_,E,S,z,T;const N=e.length;for(i=0;i<N;i++){if(u=e[i],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]&&(T=this.options.extensions.renderers[u.type].call({parser:this},u),T!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type))){t+=T||"";continue}switch(u.type){case"space":continue;case"hr":{t+=this.renderer.hr();continue}case"heading":{t+=this.renderer.heading(this.parseInline(u.tokens),u.depth,te(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue}case"code":{t+=this.renderer.code(u.text,u.lang,u.escaped);continue}case"table":{for(m="",g="",a=u.header.length,r=0;r<a;r++)g+=this.renderer.tablecell(this.parseInline(u.header[r].tokens),{header:!0,align:u.align[r]});for(m+=this.renderer.tablerow(g),o="",a=u.rows.length,r=0;r<a;r++){for(d=u.rows[r],g="",c=d.length,l=0;l<c;l++)g+=this.renderer.tablecell(this.parseInline(d[l].tokens),{header:!1,align:u.align[l]});o+=this.renderer.tablerow(g)}t+=this.renderer.table(m,o);continue}case"blockquote":{o=this.parse(u.tokens),t+=this.renderer.blockquote(o);continue}case"list":{for(w=u.ordered,$=u.start,k=u.loose,a=u.items.length,o="",r=0;r<a;r++)_=u.items[r],E=_.checked,S=_.task,x="",_.task&&(z=this.renderer.checkbox(E),k?_.tokens.length>0&&_.tokens[0].type==="paragraph"?(_.tokens[0].text=z+" "+_.tokens[0].text,_.tokens[0].tokens&&_.tokens[0].tokens.length>0&&_.tokens[0].tokens[0].type==="text"&&(_.tokens[0].tokens[0].text=z+" "+_.tokens[0].tokens[0].text)):_.tokens.unshift({type:"text",text:z}):x+=z),x+=this.parse(_.tokens,k),o+=this.renderer.listitem(x,S,E);t+=this.renderer.list(o,w,$);continue}case"html":{t+=this.renderer.html(u.text);continue}case"paragraph":{t+=this.renderer.paragraph(this.parseInline(u.tokens));continue}case"text":{for(o=u.tokens?this.parseInline(u.tokens):u.text;i+1<N&&e[i+1].type==="text";)u=e[++i],o+=`
45`+(u.tokens?this.parseInline(u.tokens):u.text);t+=n?this.renderer.paragraph(o):o;continue}default:{const j='Token with "'+u.type+'" type was not found.';if(this.options.silent){console.error(j);return}else throw new Error(j)}}}return t}parseInline(e,n){n=n||this.renderer;let t="",i,r,l;const a=e.length;for(i=0;i<a;i++){if(r=e[i],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[r.type]&&(l=this.options.extensions.renderers[r.type].call({parser:this},r),l!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(r.type))){t+=l||"";continue}switch(r.type){case"escape":{t+=n.text(r.text);break}case"html":{t+=n.html(r.text);break}case"link":{t+=n.link(r.href,r.title,this.parseInline(r.tokens,n));break}case"image":{t+=n.image(r.href,r.title,r.text);break}case"strong":{t+=n.strong(this.parseInline(r.tokens,n));break}case"em":{t+=n.em(this.parseInline(r.tokens,n));break}case"codespan":{t+=n.codespan(r.text);break}case"br":{t+=n.br();break}case"del":{t+=n.del(this.parseInline(r.tokens,n));break}case"text":{t+=n.text(r.text);break}default:{const c='Token with "'+r.type+'" type was not found.';if(this.options.silent){console.error(c);return}else throw new Error(c)}}}return t}}class Z{constructor(e){this.options=e||I}preprocess(e){return e}postprocess(e){return e}}M(Z,"passThroughHooks",new Set(["preprocess","postprocess"]));function Ne(s,e,n){return t=>{if(t.message+=`
46Please report this to https://github.com/markedjs/marked.`,s){const i="<p>An error occurred:</p><pre>"+y(t.message+"",!0)+"</pre>";if(e)return Promise.resolve(i);if(n){n(null,i);return}return i}if(e)return Promise.reject(t);if(n){n(t);return}throw t}}function se(s,e){return(n,t,i)=>{typeof t=="function"&&(i=t,t=null);const r={...t};t={...p.defaults,...r};const l=Ne(t.silent,t.async,i);if(typeof n>"u"||n===null)return l(new Error("marked(): input parameter is undefined or null"));
46if(typeof n!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(Ie(t),t.hooks&&(t.hooks.options=t),i){const a=t.highlight;let c;try{t.hooks&&(n=t.hooks.preprocess(n)),c=s(n,t)}catch(m){return l(m)}const d=function(m){let o;if(!m)try{t.walkTokens&&p.walkTokens(c,t.walkTokens),o=e(c,t),t.hooks&&(o=t.hooks.postprocess(o))}catch(u){m=u}return t.highlight=a,m?l(m):i(null,o)};if(!a||a.length<3||(delete t.highlight,!c.length))return d();let g=0;p.walkTokens(c,function(m){m.type==="code"&&(g++,setTimeout(()=>{a(m.text,m.lang,function(o,u){if(o)return d(o);u!=null&&u!==m.text&&(m.text=u,m.escaped=!0),g--,g===0&&d()})},0))}),g===0&&d();return}if(t.async)return Promise.resolve(t.hooks?t.hooks.preprocess(n):n).then(a=>s(a,t)).then(a=>t.walkTokens?Promise.all(p.walkTokens(a,t.walkTokens)).then(()=>a):a).then(a=>e(a,t)).then(a=>t.hooks?t.hooks.postprocess(a):a).catch(l);try{t.hooks&&(n=t.hooks.preprocess(n));const a=s(n,t);t.walkTokens&&p.walkTokens(a,t.walkTokens);let c=e(a,t);return t.hooks&&(c=t.hooks.postprocess(c)),c}catch(a){return l(a)}}}function p(s,e,n){return se(R.lex,A.parse)(s,e,n)}p.options=p.setOptions=function(s){return p.defaults={...p.defaults,...s},me(p.defaults),p};p.getDefaults=V;p.defaults=I;p.use=function(...s){const e=p.defaults.extensions||{renderers:{},childTokens:{}};s.forEach(n=>{const t={...n};if(t.async=p.defaults.async||t.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if(i.renderer){const r=e.renderers[i.name];r?e.renderers[i.name]=function(...l){let a=i.renderer.apply(this,l);return a===!1&&(a=r.apply(this,l)),a}:e.renderers[i.name]=i.renderer}if(i.tokenizer){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[i.level]?e[i.level].unshift(i.tokenizer):e[i.level]=[i.tokenizer],i.start&&(i.level==="block"?e.startBlock?e.startBlock.push(i.start):e.startBlock=[i.start]:i.level==="inline"&&(e.startInline?e.startInline.push(i.start):e.startInline=[i.start]))}i.childTokens&&(e.childTokens[i.name]=i.childTokens)}),t.extensions=e),n.renderer){const i=p.defaults.renderer||new U;for(const r in n.renderer){const l=i[r];i[r]=(...a)=>{let c=n.renderer[r].apply(i,a);return c===!1&&(c=l.apply(i,a)),c}}t.renderer=i}if(n.tokenizer){const i=p.defaults.tokenizer||new O;for(const r in n.tokenizer){const l=i[r];i[r]=(...a)=>{let c=n.tokenizer[r].apply(i,a);return c===!1&&(c=l.apply(i,a)),c}}t.tokenizer=i}if(n.hooks){const i=p.defaults.hooks||new Z;for(const r in n.hooks){const l=i[r];Z.passThroughHooks.has(r)?i[r]=a=>{if(p.defaults.async)return Promise.resolve(n.hooks[r].call(i,a)).then(d=>l.call(i,d));const c=n.hooks[r].call(i,a);return l.call(i,c)}:i[r]=(...a)=>{let c=n.hooks[r].apply(i,a);return c===!1&&(c=l.apply(i,a)),c}}t.hooks=i}if(n.walkTokens){const i=p.defaults.walkTokens;t.walkTokens=function(r){let l=[];return l.push(n.walkTokens.call(this,r)),i&&(l=l.concat(i.call(this,r))),l}}p.setOptions(t)})};p.walkTokens=function(s,e){let n=[];for(const t of s)switch(n=n.concat(e.call(p,t)),t.type){case"table":{for(const i of t.header)n=n.concat(p.walkTokens(i.tokens,e));for(const i of t.rows)for(const r of i)n=n.concat(p.walkTokens(r.tokens,e));break}case"list":{n=n.concat(p.walkTokens(t.items,e));break}default:p.defaults.extensions&&p.defaults.extensions.childTokens&&p.defaults.extensions.childTokens[t.type]?p.defaults.extensions.childTokens[t.type].forEach(function(i){n=n.concat(p.walkTokens(t[i],e))}):t.tokens&&(n=n.concat(p.walkTokens(t.tokens,e)))}return n};p.parseInline=se(R.lexInline,A.parseInline);p.Parser=A;p.parser=A.parse;p.Renderer=U;p.TextRenderer=ne;p.Lexer=R;p.lexer=R.lex;p.Tokenizer=O;p.Slugger=ie;p.Hooks=Z;p.parse=p;p.options;p.setOptions;p.use;p.walkTokens;p.parseInline;A.parse;R.lex;p.setOptions({breaks:!0});const v=s=>s.length?` ${s}`:"",ve=s=>{var e;return s?(e=s==null?void 0:s.replace(/&nbsp;/g," "))==null?void 0:e.replace(/\u00A0/g," "):""},Be=s=>s?s.replace(/\s\s+/g," "):"",De=s=>s?s==null?void 0:s.reduce((e,n)=>{const t=e[e.length-1];return(!t||t[t.length-1]!==n-1)&&e.push([]),e[e.length-1].push(n),e},[]):[],B=s=>{const e=Object.assign(...s);return[...Object.entries(e)].map(n=>n[1]===null?`${n[0]}`:`${n[0]}="${n[1]}"`).join(" ")},Ce=s=>{var n,t,i;const e=[];for(const r of s.childNodes){const l=r._rawText;if(r.nodeType===3)/^\s*$/.test(l)===!1&&e.push(r);else if(r.nodeType===1&&r.rawTagName==="br"){const a=(n=s==null?void 0:s.childNodes)==null?void 0:n.indexOf(r),c=(i=(t=s==null?void 0:s.childNodes)==null?void 0:t.map(o=>{var w;return o.nodeType===1&&o.rawTagName==="br"?(w=s==null?void 0:s.childNodes)==null?void 0:w.indexOf(o):null}
46))==null?void 0:i.filter(Boolean),d=De(c),g=d==null?void 0:d.find(o=>o==null?void 0:o.includes(a)),m=g==null?void 0:g.indexOf(a);(e.length===0||m<=0||m===(g==null?void 0:g.length)-1)&&e.push(r)}else r.nodeType===1&&(r.rawTagName==="p"?/^\s*$/.test(r.rawText)===!1&&r.rawText!=="&nbsp;"&&e.push(r):(r.rawTagName,e.push(r)))}return e==null?void 0:e.filter(Boolean)},qe=(s,e,n,t)=>{var r,l,a,c,d,g,m;const i=[];for(const o of s){const u=o._rawText;if(o.nodeType===3){const w=ve(u),$=Be(w);i.push($)}else if(o.nodeType===1&&o.rawTagName==="br")i.push("<br />");else if(o.nodeType===1){const w=n===o?{"data-first-node":null}:{},$=t===o?{"data-last-node":null}:{};if(o.rawTagName==="p"){const k=B([o.attributes,w,$]);i.push(`<${o.rawTagName}${v(k)}>${L(o)}</${o.rawTagName}>`)}else if(o.rawTagName==="a"){const k=(r=o.attributes)==null?void 0:r.href;if(e&&((l=k==null?void 0:k.includes)!=null&&l.call(k,"http"))||e&&((a=k==null?void 0:k.includes)!=null&&a.call(k,"https"))){const x=B([o.attributes,{target:"_blank"},w,$]);i.push(`<${o.rawTagName}${v(x)}>${L(o,e)}</${o.rawTagName}>`)}else if((c=k==null?void 0:k.includes)!=null&&c.call(k,"@")&&!(k!=null&&k.startsWith("mailto:"))&&!((d=k==null?void 0:k.includes)!=null&&d.call(k,"http"))&&!((g=k==null?void 0:k.includes)!=null&&g.call(k,"https"))){const x=B([o.attributes,{href:`mailto:${k}`},w,$]);i.push(`<${o.rawTagName}${v(x)}>${L(o,e)}</${o.rawTagName}>`)}else{const x=B([o.attributes,w,$]);i.push(`<${o.rawTagName}${v(x)}>${L(o,e)}</${o.rawTagName}>`)}}else{const k=B([o.attributes,w,$]);i.push(`<${o.rawTagName}${v(k)}>${L(o,e)}</${o.rawTagName}>`)}}}return(m=i==null?void 0:i.filter(Boolean))==null?void 0:m.join("")},L=(s,e=!1,n=!1)=>{var c;const t=Ce(s),i=t==null?void 0:t.find(d=>d.nodeType===1),r=(c=[...t].reverse())==null?void 0:c.find(d=>d.nodeType===1);return qe(t,e,...n?[i,r]:[])},Ze=(s,e=!1)=>{if(s){const n=p.parse(s),t=de(n);return L(t,e,!0)}},Oe={mounted(s){const e=Array.from(s.getElementsByTagName("a")).filter(n=>{const t=n.getAttribute("href");return t?Ue(t):!1});Y(e),s.$componentUpdated=()=>{G(e),oe(()=>Y(e))},s.$destroy=()=>G(e)},updated:s=>{var e;return(e=s.$componentUpdated)==null?void 0:e.call(s)},beforeUnmount:s=>{var e;return(e=s.$destroy)==null?void 0:e.call(s)}};function re(s){const n=s.target.getAttribute("href");return s.preventDefault(),ce(n)}function Y(s){s.forEach(e=>{e.addEventListener("click",re,!1)})}function G(s){s.forEach(e=>{e.removeEventListener("click",re,!1)})}function Ue(s){return s==null?void 0:s.startsWith("/")}const je=["innerHTML"],He={__name:"text",props:{text:String,fontSize:{type:String,required:!1,validator(s){return["small","default","medium","large"].includes(s)},default:"default"}},setup(s){var i,r,l,a;const e=ge(),n=s;(r=(i=e==null?void 0:e.public)==null?void 0:i.KIRBY_HEADLESS_URL)!=null&&r.endsWith("/")?(l=e==null?void 0:e.public)==null||l.KIRBY_HEADLESS_URL:`${(a=e==null?void 0:e.public)==null?void 0:a.KIRBY_HEADLESS_URL}`;const t=Ze(n==null?void 0:n.text,!0);return(c,d)=>he((ue(),pe("div",{class:fe(["prose max-w-full",{"text-small":s.fontSize=="small","text-default":s.fontSize=="default","text-medium":s.fontSize=="medium"||s.fontSize=="large"}]),innerHTML:P(t)},null,10,je)),[[P(Oe)]])}};export{He as _};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.