2023-01-28 04:31:06 +01:00
import { o as $t , S as q , i as B , s as H , e as y , b , g as A , t as g , d as L , f as m , h as d , L as He , M as de , N as At , J as ke , w as C , x as V , y as E , O as ve , P as $e , z as P , v as Y , a as ue , c as fe , q as G , r as Z , u as ge , B as ee , Q as Lt , C as F , k as S , l as x , m as D , n as v , D as Q , E as X , F as j , K as Fe , H as U , R as Yt , T as qt , U as Bt , V as Ht , W as Ft } from "./index-11c878f8.js" ; function Qt ( ) { const l = console . warn ; console . warn = e => { e . includes ( "unknown prop" ) || e . includes ( "unexpected slot" ) || l ( e ) } , $t ( ( ) => { console . warn = l } ) } function Qe ( l , e , t ) { const r = l . slice ( ) ; return r [ 18 ] = e [ t ] , r } function Xe ( l , e , t ) { const r = l . slice ( ) ; return r [ 18 ] = e [ t ] , r } function je ( l , e , t ) { const r = l . slice ( ) ; return r [ 10 ] = e [ t ] , r } function Ge ( l , e , t ) { const r = l . slice ( ) ; return r [ 13 ] = e [ t ] , r [ 15 ] = t , r } function Ze ( l , e , t ) { const r = l . slice ( ) ; return r [ 16 ] = e [ t ] , r [ 15 ] = t , r } function Ve ( l , e , t ) { const r = l . slice ( ) ; return r [ 7 ] = e [ t ] , r } function Xt ( l ) { let e , t , r , n ; const i = [ Vt , Zt , Gt ] , a = [ ] ; function o ( s , u ) { return s [ 0 ] === "table" ? 0 : s [ 0 ] === "list" ? 1 : 2 } return e = o ( l ) , t = a [ e ] = i [ e ] ( l ) , { c ( ) { t . c ( ) , r = y ( ) } , l ( s ) { t . l ( s ) , r = y ( ) } , m ( s , u ) { a [ e ] . m ( s , u ) , b ( s , r , u ) , n = ! 0 } , p ( s , u ) { let f = e ; e = o ( s ) , e === f ? a [ e ] . p ( s , u ) : ( A ( ) , g ( a [ f ] , 1 , 1 , ( ) => { a [ f ] = null } ) , L ( ) , t = a [ e ] , t ? t . p ( s , u ) : ( t = a [ e ] = i [ e ] ( s ) , t . c ( ) ) , m ( t , 1 ) , t . m ( r . parentNode , r ) ) } , i ( s ) { n || ( m ( t ) , n = ! 0 ) } , o ( s ) { g ( t ) , n = ! 1 } , d ( s ) { a [ e ] . d ( s ) , s && d ( r ) } } } function jt ( l ) { let e , t , r = l [ 1 ] , n = [ ] ; for ( let a = 0 ; a < r . length ; a += 1 ) n [ a ] = rt ( Ve ( l , r , a ) ) ; const i = a => g ( n [ a ] , 1 , 1 , ( ) => { n [ a ] = null } ) ; return { c ( ) { for ( let a = 0 ; a < n . length ; a += 1 ) n [ a ] . c ( ) ; e = y ( ) } , l ( a ) { for ( let o = 0 ; o < n . length ; o += 1 ) n [ o ] . l ( a ) ; e = y ( ) } , m ( a , o ) { for ( let s = 0 ; s < n . length ; s += 1 ) n [ s ] . m ( a , o ) ; b ( a , e , o ) , t = ! 0 } , p ( a , o ) { if ( o & 34 ) { r = a [ 1 ] ; let s ; for ( s = 0 ; s < r . length ; s += 1 ) { const u = Ve ( a , r , s ) ; n [ s ] ? ( n [ s ] . p ( u , o ) , m ( n [ s ] , 1 ) ) : ( n [ s ] = rt ( u ) , n [ s ] . c ( ) , m ( n [ s ] , 1 ) , n [ s ] . m ( e . parentNode , e ) ) } for ( A ( ) , s = r . length ; s < n . length ; s += 1 ) i ( s ) ; L ( ) } } , i ( a ) { if ( ! t ) { for ( let o = 0 ; o < r . length ; o += 1 ) m ( n [ o ] ) ; t = ! 0 } } , o ( a ) { n = n . filter ( Boolean ) ; for ( let o = 0 ; o < n . length ; o += 1 ) g ( n [ o ] ) ; t = ! 1 } , d ( a ) { ke ( n , a ) , a && d ( e ) } } } function Gt ( l ) { let e , t , r ; const n = [ l [ 6 ] ] ; var i = l [ 5 ] [ l [ 0 ] ] ; function a ( o ) { let s = { $$slots : { default : [ en ] } , $$scope : { ctx : o } } ; for ( let u = 0 ; u < n . length ; u += 1 ) s = de ( s , n [ u ] ) ; return { props : s } } return i && ( e = Y ( i , a ( l ) ) ) , { c ( ) { e && C ( e . $$ . fragment ) , t = y ( ) } , l ( o ) { e && V ( e . $$ . fragment , o ) , t = y ( ) } , m ( o , s ) { e && E ( e , o , s ) , b ( o , t , s ) , r = ! 0 } , p ( o , s ) { const u = s & 64 ? ve ( n , [ $e ( o [ 6 ] ) ] ) : { } ; if ( s & 8388706 && ( u . $$scope = { dirty : s , ctx : o } ) , i !== ( i = o [ 5 ] [ o [ 0 ] ] ) ) { if ( e ) { A ( ) ; const f = e ; g ( f . $$ . fragment , 1 , 0 , ( ) => { P ( f , 1 ) } ) , L ( ) } i ? ( e = Y ( i , a ( o ) ) , C ( e . $$ . fragment ) , m ( e . $$ . fragment , 1 ) , E ( e , t . parentNode , t ) ) : e = null } else i && e . $set ( u ) } , i ( o ) { r || ( e && m ( e . $$ . fragment , o ) , r = ! 0 ) } , o ( o ) { e && g ( e . $$ . fragment , o ) , r = ! 1 } , d ( o ) { o && d ( t ) , e && P ( e , o ) } } } function Zt ( l ) { let e , t , r , n ; const i = [ nn , tn ] , a = [ ] ; function o ( s , u ) { return s [ 4 ] ? 0 : 1 } return e = o ( l ) , t = a [ e ] = i [ e ] ( l ) , { c ( ) { t . c ( ) , r = y ( ) } , l ( s ) { t . l ( s ) , r = y ( ) } , m ( s , u ) { a [ e ] . m ( s , u ) , b ( s , r , u ) , n = ! 0 } , p ( s , u ) { let f = e ; e = o ( s ) , e === f ? a [ e ] . p ( s , u ) : ( A ( ) , g ( a [ f ] , 1 , 1 , ( ) => { a [ f ] = null } ) , L ( ) , t = a [ e ] , t ? t . p ( s , u ) : ( t = a [ e ] = i [ e ] ( s ) , t . c ( ) ) , m ( t , 1 ) , t . m ( r . parentNode , r ) ) } , i ( s ) { n || ( m ( t ) , n = ! 0 ) } , o ( s ) { g ( t ) , n = ! 1 } , d ( s ) { a [ e ] . d ( s ) , s && d ( r ) } } } function Vt ( l ) { let e , t , r ; var n = l [ 5 ] . table ; function i ( a ) { return { props : { $$slots : { default : [ mn ] } , $$scope : { ctx : a } } } } return n && ( e = Y ( n , i ( l ) ) ) , { c ( ) { e && C ( e . $$ . fragment ) , t = y ( ) } , l ( a ) { e && V ( e . $$ . fragment , a ) , t = y ( ) } , m ( a , o ) { e && E ( e , a , o ) , b ( a , t , o ) , r = ! 0 } , p ( a , o ) { const s = { } ; if ( o & 8388716 && ( s . $$scope = { dirty : o , ctx : a } ) , n !== ( n = a [ 5 ] . table ) ) { if ( e ) { A ( ) ; const u = e ; g ( u . $$ . fragment , 1 , 0 , ( ) => { P ( u , 1 ) } ) , L ( ) } n ? ( e = Y ( n , i ( a ) ) , C ( e . $$ . fragment ) , m ( e . $$ . fragment , 1 ) , E ( e , t . parentNode , t ) ) : e = null } else n && e . $set ( s ) } , i ( a ) { r || ( e && m ( e . $$ . fragment , a ) , r = ! 0 ) } , o ( a ) { e && g ( e . $$ . fragment , a ) , r = ! 1 } , d ( a ) { a && d ( t ) , e && P ( e , a ) } } } function Jt ( l ) { let e = l [ 6 ] . raw + "" , t ; return { c ( ) { t = G ( e ) } , l ( r ) { t = Z ( r , e ) } , m ( r , n ) { b ( r , t , n ) } , p ( r , n ) { n & 64 && e !== ( e = r [ 6 ] . raw + "" ) && ge ( t , e ) } , i : ee , o : ee , d ( r ) { r && d ( t ) } } } function Kt ( l ) { let e , t ; return e = new _e ( { props : { tokens : l [ 1 ] , renderers : l [ 5 ] } } ) , { c ( ) { C ( e . $$ . fragment ) } , l ( r ) { V ( e . $$ . fragment , r ) } , m ( r , n ) { E ( e , r , n ) , t = ! 0 } , p ( r , n ) { const i = { } ; n & 2 && ( i . tokens = r [ 1 ] ) , n & 32 && ( i . renderers = r [ 5 ] ) , e . $set ( i ) } , i ( r ) { t || ( m ( e . $$ . fragment , r ) , t = ! 0 ) } , o ( r ) { g ( e . $$ . fragment , r ) , t = ! 1 } , d ( r ) { P ( e , r ) } } } function en ( l ) { let e , t , r , n ; const i = [ Kt , Jt ] , a = [ ] ; function o ( s , u ) { return s [ 1 ] ? 0 : 1 } return e = o ( l ) , t = a [ e ] = i [ e ] ( l ) , { c ( ) { t . c ( ) , r = y ( )
2023-01-27 11:25:59 +01:00
` ).map(n=>{const i=n.match(/^ \s +/);if(i===null)return n;const[a]=i;return a.length>=r.length?n.slice(r.length):n}).join( `
` )}class Ye{constructor(e){this.options=e||ye}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const r=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Ce(r, `
2023-01-28 04:31:06 +01:00
` )}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const r=t[0],n=Cn(r,t[3]||"");return{type:"code",raw:r,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes," $ 1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let r=t[2].trim();if(/# $ /.test(r)){const n=Ce(r,"#");(this.options.pedantic||!n||/ $ /.test(n))&&(r=n.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const r=t[0].replace(/^ *>[ \t ]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const i=this.lexer.blockTokens(r);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let r,n,i,a,o,s,u,f,h,p,c,_,T=t[1].trim();const z=T.length>1,M={type:"list",raw:"",ordered:z,start:z?+T.slice(0,-1):"",loose:!1,items:[]};T=z? ` \ \ d { 1 , 9 } \ \ $ { T . slice ( - 1 ) } ` : ` \ \ $ { T } ` ,this.options.pedantic&&(T=z?T:"[*+-]");const O=new RegExp( ` ^ ( { 0 , 3 } $ { T } ) ( ( ? : [ ] [ ^ \ \ n ] * ) ? ( ? : \ \ n | $ ) ) ` );for(;e&&(_=!1,!(!(t=O.exec(e))||this.rules.block.hr.test(e)));){if(r=t[0],e=e.substring(r.length),f=t[2].split( `
2023-01-27 11:25:59 +01:00
` ,1)[0].replace(/^ \t +/,te=>" ".repeat(3*te.length)),h=e.split( `
` ,1)[0],this.options.pedantic?(a=2,c=f.trimLeft()):(a=t[2].search(/[^ ]/),a=a>4?1:a,c=f.slice(a),a+=t[1].length),s=!1,!f&&/^ * $ /.test(h)&&(r+=h+ `
` ,e=e.substring(h.length+1),_=!0),!_){const te=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , a - 1 ) } } ( ? : [ * + - ] | \ \ d { 1 , 9 } [ . ) ] ) ( ( ? : [ ] [ ^ \ \ n ] * ) ? ( ? : \ \ n | $ ) ) ` ),ie=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , a - 1 ) } } ( ( ? : - * ) { 3 , } | ( ? : _ * ) { 3 , } | ( ? : \ \ * * ) { 3 , } ) ( ? : \ \ n + | $ ) ` ),ne=new RegExp( ` ^ { 0 , $ { Math . min ( 3 , a - 1 ) } } ( ? : \ ` \` \` |~~~) ` ) , ae = new RegExp ( ` ^ {0, ${ Math . min ( 3 , a - 1 ) } }# ` ) ; for ( ; e && ( p = e . split ( `
` ,1)[0],h=p,this.options.pedantic&&(h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!(ne.test(h)||ae.test(h)||te.test(h)||ie.test(e)));){if(h.search(/[^ ]/)>=a||!h.trim())c+= `
` +h.slice(a);else{if(s||f.search(/[^ ]/)>=4||ne.test(f)||ae.test(f)||ie.test(f))break;c+= `
` +h}!s&&!h.trim()&&(s=!0),r+=p+ `
` ,e=e.substring(p.length+1),f=h.slice(a)}}M.loose||(u?M.loose=!0:/ \n * \n * $ /.test(r)&&(u=!0)),this.options.gfm&&(n=/^ \[ [ xX] \] /.exec(c),n&&(i=n[0]!=="[ ] ",c=c.replace(/^ \[ [ xX] \] +/,""))),M.items.push({type:"list_item",raw:r,task:!!n,checked:i,loose:!1,text:c}),M.raw+=r}M.items[M.items.length-1].raw=r.trimRight(),M.items[M.items.length-1].text=c.trimRight(),M.raw=M.raw.trimRight();const J=M.items.length;for(o=0;o<J;o++)if(this.lexer.state.top=!1,M.items[o].tokens=this.lexer.blockTokens(M.items[o].text,[]),!M.loose){const te=M.items[o].tokens.filter(ne=>ne.type==="space"),ie=te.length>0&&te.some(ne=>/ \n .* \n /.test(ne.raw));M.loose=ie}if(M.loose)for(o=0;o<J;o++)M.items[o].loose=!0;return M}}html(e){const t=this.rules.block.html.exec(e);if(t){const r={type:"html",raw:t[0],pre:!this.options.sanitizer&&(t[1]==="pre"||t[1]==="script"||t[1]==="style"),text:t[0]};if(this.options.sanitize){const n=this.options.sanitizer?this.options.sanitizer(t[0]):K(t[0]);r.type="paragraph",r.text=n,r.tokens=this.lexer.inline(n)}return r}}def(e){const t=this.rules.block.def.exec(e);if(t){const r=t[1].toLowerCase().replace(/ \s +/g," "),n=t[2]?t[2].replace(/^<(.*)> $ /," $ 1").replace(this.rules.inline._escapes," $ 1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes," $ 1"):t[3];return{type:"def",tag:r,raw:t[0],href:n,title:i}}}table(e){const t=this.rules.block.table.exec(e);if(t){const r={type:"table",header:lt(t[1]).map(n=>({text:n})),align:t[2].replace(/^ *| \| * $ /g,"").split(/ * \| */),rows:t[3]&&t[3].trim()?t[3].replace(/ \n [ \t ]* $ /,"").split( `
` ):[]};if(r.header.length===r.align.length){r.raw=t[0];let n=r.align.length,i,a,o,s;for(i=0;i<n;i++)/^ *-+: * $ /.test(r.align[i])?r.align[i]="right":/^ *:-+: * $ /.test(r.align[i])?r.align[i]="center":/^ *:-+ * $ /.test(r.align[i])?r.align[i]="left":r.align[i]=null;for(n=r.rows.length,i=0;i<n;i++)r.rows[i]=lt(r.rows[i],r.header.length).map(u=>({text:u}));for(n=r.header.length,a=0;a<n;a++)r.header[a].tokens=this.lexer.inline(r.header[a].text);for(n=r.rows.length,a=0;a<n;a++)for(s=r.rows[a],o=0;o<s.length;o++)s[o].tokens=this.lexer.inline(s[o].text);return r}}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const r=t[1].charAt(t[1].length-1)=== `
2023-01-28 04:31:06 +01:00
` ?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:r,tokens:this.lexer.inline(r)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:K(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^< \/ a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)( \s |>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^< \/ (pre|code|kbd|script)( \s |>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):K(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const r=t[2].trim();if(!this.options.pedantic&&/^</.test(r)){if(!/> $ /.test(r))return;const a=Ce(r.slice(0,-1)," \\ ");if((r.length-a.length)%2===0)return}else{const a=On(t[2],"()");if(a>-1){const s=(t[0].indexOf("!")===0?5:4)+t[1].length+a;t[2]=t[2].substring(0,a),t[0]=t[0].substring(0,s).trim(),t[3]=""}}let n=t[2],i="";if(this.options.pedantic){const a=/^([^'"]*[^ \s ]) \s +(['"])(.*) \2 /.exec(n);a&&(n=a[1],i=a[3])}else i=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^</.test(n)&&(this.options.pedantic&&!/> $ /.test(r)?n=n.slice(1):n=n.slice(1,-1)),ot(t,{href:n&&n.replace(this.rules.inline._escapes," $ 1"),title:i&&i.replace(this.rules.inline._escapes," $ 1")},t[0],this.lexer)}}reflink(e,t){let r;if((r=this.rules.inline.reflink.exec(e))||(r=this.rules.inline.nolink.exec(e))){let n=(r[2]||r[1]).replace(/ \s +/g," ");if(n=t[n.toLowerCase()],!n){const i=r[0].charAt(0);return{type:"text",raw:i,text:i}}return ot(r,n,r[0],this.lexer)}}emStrong(e,t,r=""){let n=this.rules.inline.emStrong.lDelim.exec(e);if(!n||n[3]&&r.match(/[ \p {L} \p {N}]/u))return;const i=n[1]||n[2]||"";if(!i||i&&(r===""||this.rules.inline.punctuation.exec(r))){const a=n[0].length-1;let o,s,u=a,f=0;const h=n[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(h.lastIndex=0,t=t.slice(-1*e.length+a);(n=h.exec(t))!=null;){if(o=n[1]||n[2]||n[3]||n[4]||n[5]||n[6],!o)continue;if(s=o.length,n[3]||n[4]){u+=s;continue}else if((n[5]||n[6])&&a%3&&!((a+s)%3)){f+=s;continue}if(u-=s,u>0)continue;s=Math.min(s,s+u+f);const p=e.slice(0,a+n.index+(n[0].length-o.length)+s);if(Math.min(a,s)%2){const _=p.slice(1,-1);return{type:"em",raw:p,text:_,tokens:this.lexer.inlineTokens(_)}}const c=p.slice(2,-2);return{type:"strong",raw:p,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let r=t[2].replace(/ \n /g," ");const n=/[^ ]/.test(r),i=/^ /.test(r)&&/ $ /.test(r);return n&&i&&(r=r.substring(1,r.length-1)),r=K(r,!0),{type:"codespan",raw:t[0],text:r}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const r=this.rules.inline.autolink.exec(e);if(r){let n,i;return r[2]==="@"?(n=K(this.options.mangle?t(r[1]):r[1]),i="mailto:"+n):(n=K(r[1]),i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(e,t){let r;if(r=this.rules.inline.url.exec(e)){let n,i;if(r[2]==="@")n=K(this.options.mangle?t(r[0]):r[0]),i="mailto:"+n;else{let a;do a=r[0],r[0]=this.rules.inline._backpedal.exec(r[0])[0];while(a!==r[0]);n=K(r[0]),r[1]==="www."?i="http://"+r[0]:i=r[0]}return{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}inlineText(e,t){const r=this.rules.inline.text.exec(e);if(r){let n;return this.lexer.state.inRawBlock?n=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):K(r[0]):r[0]:n=K(this.options.smartypants?t(r[0]):r[0]),{type:"text",raw:r[0],text:n}}}}const k={newline:/^(?: *(?: \n | $ ))+/,code:/^( {4}[^ \n ]+(?: \n (?: *(?: \n | $
] ` ).replace("lheading",k.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const w={escape:/^ \\ ([!"# $ %&'()*+, \- ./:;<=>?@ \[ \] \\ ^_ ` { | } ~ ] ) / , autolink : /^<(scheme:[^\s\x00-\x1f<>]*|email)>/ , url : ze , 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 : ze , text : /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/ , punctuation : /^([\spunctuation])/ } ; w . _punctuation = "!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~" ; w . punctuation = I ( w . punctuation ) . replace ( /punctuation/g , w . _punctuation ) . getRegex ( ) ; w . blockSkip = /\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g ; w . escapedEmSt = /(?:^|[^\\])(?:\\\\)*\\[*_]/g ; w . _comment = I ( k . _comment ) . replace ( "(?:-->|$)" , "-->" ) . getRegex ( ) ; w . emStrong . lDelim = I ( w . emStrong . lDelim ) . replace ( /punct/g , w . _punctuation ) . getRegex ( ) ; w . emStrong . rDelimAst = I ( w . emStrong . rDelimAst , "g" ) . replace ( /punct/g , w . _punctuation ) . getRegex ( ) ; w . emStrong . rDelimUnd = I ( w . emStrong . rDelimUnd , "g" ) . replace ( /punct/g , w . _punctuation ) . getRegex ( ) ; w . _escapes = /\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g ; w . _scheme = /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/ ; w . _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])?)+(?![-_])/ ; w . autolink = I ( w . autolink ) . replace ( "scheme" , w . _scheme ) . replace ( "email" , w . _email ) . getRegex ( ) ; w . _attribute = /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/ ; w . tag = I ( w . tag ) . replace ( "comment" , w . _comment ) . replace ( "attribute" , w . _attribute ) . getRegex ( ) ; w . _label = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/ ; w . _href = /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/ ; w . _title = /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/ ; w . link = I ( w . link ) . replace ( "label" , w . _label ) . replace ( "href" , w . _href ) . replace ( "title" , w . _title ) . getRegex ( ) ; w . reflink = I ( w . reflink ) . replace ( "label" , w . _label ) . replace ( "ref" , k . _label ) . getRegex ( ) ; w . nolink = I ( w . nolink ) . replace ( "ref" , k . _label ) . getRegex ( ) ; w . reflinkSearch = I ( w . reflinkSearch , "g" ) . replace ( "reflink" , w . reflink ) . replace ( "nolink" , w . nolink ) . getRegex ( ) ; w . normal = le ( { } , w ) ; w . pedantic = le ( { } , w . 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 : I ( /^!?\[(label)\]\((.*?)\)/ ) . replace ( "label" , w . _label ) . getRegex ( ) , reflink : I ( /^!?\[(label)\]\s*\[([^\]]*)\]/ ) . replace ( "label" , w . _label ) . getRegex ( ) } ) ; w . gfm = le ( { } , w . normal , { escape : I ( w . 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.!#$%&'*+\/=?_`{\|}~-]+@)))/ } ) ; w . gfm . url = I ( w . gfm . url , "i"
2023-01-27 11:25:59 +01:00
` ),this.blockTokens(e,this.tokens);let t;for(;t=this.inlineQueue.shift();)this.inlineTokens(t.src,t.tokens);return this.tokens}blockTokens(e,t=[]){this.options.pedantic?e=e.replace(/ \t /g," ").replace(/^ + $ /gm,""):e=e.replace(/^( *)( \t +)/gm,(o,s,u)=>s+" ".repeat(u.length));let r,n,i,a;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(o=>(r=o.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length),r.raw.length===1&&t.length>0?t[t.length-1].raw+= `
` :t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+= `
` +r.raw,n.text+= `
` +r.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);continue}if(r=this.tokenizer.fences(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.heading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.hr(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.blockquote(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.list(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.html(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&(n.type==="paragraph"||n.type==="text")?(n.raw+= `
` +r.raw,n.text+= `
` +r.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title});continue}if(r=this.tokenizer.table(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.lheading(e)){e=e.substring(r.raw.length),t.push(r);continue}if(i=e,this.options.extensions&&this.options.extensions.startBlock){let o=1/0;const s=e.slice(1);let u;this.options.extensions.startBlock.forEach(function(f){u=f.call({lexer:this},s),typeof u=="number"&&u>=0&&(o=Math.min(o,u))}),o<1/0&&o>=0&&(i=e.substring(0,o+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){n=t[t.length-1],a&&n.type==="paragraph"?(n.raw+= `
` +r.raw,n.text+= `
` +r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r),a=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&n.type==="text"?(n.raw+= `
` +r.raw,n.text+= `
2023-01-28 04:31:06 +01:00
` +r.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):t.push(r);continue}if(e){const o="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(o);break}else throw new Error(o)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let r,n,i,a=e,o,s,u;if(this.tokens.links){const f=Object.keys(this.tokens.links);if(f.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(a))!=null;)f.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+st("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.blockSkip.exec(a))!=null;)a=a.slice(0,o.index)+"["+st("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(o=this.tokenizer.rules.inline.escapedEmSt.exec(a))!=null;)a=a.slice(0,o.index+o[0].length-2)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(s||(u=""),s=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(f=>(r=f.call({lexer:this},e,t))?(e=e.substring(r.raw.length),t.push(r),!0):!1))){if(r=this.tokenizer.escape(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.tag(e)){e=e.substring(r.raw.length),n=t[t.length-1],n&&r.type==="text"&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.link(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(r.raw.length),n=t[t.length-1],n&&r.type==="text"&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(r=this.tokenizer.emStrong(e,a,u)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.codespan(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.br(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.del(e)){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.autolink(e,ut)){e=e.substring(r.raw.length),t.push(r);continue}if(!this.state.inLink&&(r=this.tokenizer.url(e,ut))){e=e.substring(r.raw.length),t.push(r);continue}if(i=e,this.options.extensions&&this.options.extensions.startInline){let f=1/0;const h=e.slice(1);let p;this.options.extensions.startInline.forEach(function(c){p=c.call({lexer:this},h),typeof p=="number"&&p>=0&&(f=Math.min(f,p))}),f<1/0&&f>=0&&(i=e.substring(0,f+1))}if(r=this.tokenizer.inlineText(i,En)){e=e.substring(r.raw.length),r.raw.slice(-1)!=="_"&&(u=r.raw.slice(-1)),s=!0,n=t[t.length-1],n&&n.type==="text"?(n.raw+=r.raw,n.text+=r.text):t.push(r);continue}if(e){const f="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return t}}class qe{constructor(e){this.options=e||ye}code(e,t,r){const n=(t||"").match(/ \S */)[0];if(this.options.highlight){const i=this.options.highlight(e,n);i!=null&&i!==e&&(r=!0,e=i)}return e=e.replace(/ \n $ /,"")+ `
2023-01-27 11:25:59 +01:00
` ,n?'<pre><code class="'+this.options.langPrefix+K(n)+'">'+(r?e:K(e,!0))+ ` < / c o d e > < / p r e >
` :"<pre><code>"+(r?e:K(e,!0))+ ` < / c o d e > < / p r e >
` }blockquote(e){return ` < blockquote >
$ { e } < / b l o c k q u o t e >
` }html(e){return e}heading(e,t,r,n){if(this.options.headerIds){const i=this.options.headerPrefix+n.slug(r);return ` < h$ { t } id = "${i}" > $ { e } < / h $ { t } >
` }return ` < h$ { t } > $ { e } < / h $ { t } >
` }hr(){return this.options.xhtml? ` < hr / >
` : ` < hr >
` }list(e,t,r){const n=t?"ol":"ul",i=t&&r!==1?' start="'+r+'"':"";return"<"+n+i+ ` >
` +e+"</"+n+ ` >
` }listitem(e){return ` < li > $ { e } < / l i >
` }checkbox(e){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "}paragraph(e){return ` < p > $ { e } < / p >
` }table(e,t){return t&&(t= ` < tbody > $ { t } < / t b o d y > ` ) , ` < t a b l e >
< thead >
` +e+ ` < / t h e a d >
` +t+ ` < / t a b l e >
` }tablerow(e){return ` < tr >
$ { e } < / t r >
` }tablecell(e,t){const r=t.header?"th":"td";return(t.align? ` < $ { r } align = "${t.align}" > ` : ` < $ { r } > ` )+e+ ` < / $ { r } >
2023-01-28 04:31:06 +01:00
` }strong(e){return ` < strong > $ { e } < / s t r o n g > ` } e m ( e ) { r e t u r n ` < e m > $ { e } < / e m > ` } c o d e s p a n ( e ) { r e t u r n ` < c o d e > $ { e } < / c o d e > ` } b r ( ) { r e t u r n t h i s . o p t i o n s . x h t m l ? " < b r / > " : " < b r > " } d e l ( e ) { r e t u r n ` < d e l > $ { e } < / d e l > ` } l i n k ( e , t , r ) { i f ( e = a t ( t h i s . o p t i o n s . s a n i t i z e , t h i s . o p t i o n s . b a s e U r l , e ) , e = = = n u l l ) r e t u r n r ; l e t n = ' < a h r e f = " ' + e + ' " ' ; r e t u r n t & & ( n + = ' t i t l e = " ' + t + ' " ' ) , n + = " > " + r + " < / a > " , n } i m a g e ( e , t , r ) { i f ( e = a t ( t h i s . o p t i o n s . s a n i t i z e , t h i s . o p t i o n s . b a s e U r l , e ) , e = = = n u l l ) r e t u r n r ; l e t n = ` < i m g s r c = " $ { e } " a l t = " $ { r } " ` ; r e t u r n t & & ( n + = ` t i t l e = " $ { t } " ` ) , n + = t h i s . o p t i o n s . x h t m l ? " / > " : " > " , n } t e x t ( e ) { r e t u r n e } } c l a s s M t { s t r o n g ( e ) { r e t u r n e } e m ( e ) { r e t u r n e } c o d e s p a n ( e ) { r e t u r n e } d e l ( e ) { r e t u r n e } h t m l ( e ) { r e t u r n e } t e x t ( e ) { r e t u r n e } l i n k ( e , t , r ) { r e t u r n " " + r } i m a g e ( e , t , r ) { r e t u r n " " + r } b r ( ) { r e t u r n " " } } c l a s s B e { c o n s t r u c t o r ( ) { t h i s . s e e n = { } } s e r i a l i z e ( e ) { r e t u r n e . t o L o w e r C a s e ( ) . t r i m ( ) . r e p l a c e ( / < [ ! \ / a - z ] . * ? > / i g , " " ) . r e p l a c e ( / [ \ u 2 0 0 0 - \ u 2 0 6 F \ u 2 E 0 0 - \ u 2 E 7 F \ \ ' ! " # $ % & ( ) * + , . / : ; < = > ? @ [ \ ] ^ ` { | } ~ ] / g , " " ) . r e p l a c e ( / \ s / g , " - " ) } g e t N e x t S a f e S l u g ( e , t ) { l e t r = e , n = 0 ; i f ( t h i s . s e e n . h a s O w n P r o p e r t y ( r ) ) { n = t h i s . s e e n [ e ] ; d o n + + , r = e + " - " + n ; w h i l e ( t h i s . s e e n . h a s O w n P r o p e r t y ( r ) ) } r e t u r n t | | ( t h i s . s e e n [ e ] = n , t h i s . s e e n [ r ] = 0 ) , r } s l u g ( e , t = { } ) { c o n s t r = t h i s . s e r i a l i z e ( e ) ; r e t u r n t h i s . g e t N e x t S a f e S l u g ( r , t . d r y r u n ) } } c l a s s s e { c o n s t r u c t o r ( e ) { t h i s . o p t i o n s = e | | y e , t h i s . o p t i o n s . r e n d e r e r = t h i s . o p t i o n s . r e n d e r e r | | n e w q e , t h i s . r e n d e r e r = t h i s . o p t i o n s . r e n d e r e r , t h i s . r e n d e r e r . o p t i o n s = t h i s . o p t i o n s , t h i s . t e x t R e n d e r e r = n e w M t , t h i s . s l u g g e r = n e w B e } s t a t i c p a r s e ( e , t ) { r e t u r n n e w s e ( t ) . p a r s e ( e ) } s t a t i c p a r s e I n l i n e ( e , t ) { r e t u r n n e w s e ( t ) . p a r s e I n l i n e ( e ) } p a r s e ( e , t = ! 0 ) { l e t r = " " , n , i , a , o , s , u , f , h , p , c , _ , T , z , M , O , J , t e , i e , n e ; c o n s t a e = e . l e n g t h ; f o r ( n = 0 ; n < a e ; n + + ) { i f ( c = e [ n ] , t h i s . o p t i o n s . e x t e n s i o n s & & t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s & & t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s [ c . t y p e ] & & ( n e = t h i s . o p t i o n s . e x t e n s i o n s . r e n d e r e r s [ c . t y p e ] . c a l l ( { p a r s e r : t h i s } , c ) , n e ! = = ! 1 | | ! [ " s p a c e " , " h r " , " h e a d i n g " , " c o d e " , " t a b l e " , " b l o c k q u o t e " , " l i s t " , " h t m l " , " p a r a g r a p h " , " t e x t " ] . i n c l u d e s ( c . t y p e ) ) ) { r + = n e | | " " ; c o n t i n u e } s w i t c h ( c . t y p e ) { c a s e " s p a c e " : c o n t i n u e ; c a s e " h r " : { r + = t h i s . r e n d e r e r . h r ( ) ; c o n t i n u e } c a s e " h e a d i n g " : { r + = t h i s . r e n d e r e r . h e a d i n g ( t h i s . p a r s e I n l i n e ( c . t o k e n s ) , c . d e p t h , x t ( t h i s . p a r s e I n l i n e ( c . t o k e n s , t h i s . t e x t R e n d e r e r ) ) , t h i s . s l u g g e r ) ; c o n t i n u e } c a s e " c o d e " : { r + = t h i s . r e n d e r e r . c o d e ( c . t e x t , c . l a n g , c . e s c a p e d ) ; c o n t i n u e } c a s e " t a b l e " : { f o r ( h = " " , f = " " , o = c . h e a d e r . l e n g t h , i = 0 ; i < o ; i + + ) f + = t h i s . r e n d e r e r . t a b l e c e l l ( t h i s . p a r s e I n l i n e ( c . h e a d e r [ i ] . t o k e n s ) , { h e a d e r : ! 0 , a l i g n : c . a l i g n [ i ] } ) ; f o r ( h + = t h i s . r e n d e r e r . t a b l e r o w ( f ) , p = " " , o = c . r o w s . l e n g t h , i = 0 ; i < o ; i + + ) { f o r ( u = c . r o w s [ i ] , f = " " , s = u . l e n g t h , a = 0 ; a < s ; a + + ) f + = t h i s . r e n d e r e r . t a b l e c e l l ( t h i s . p a r s e I n l i n e ( u [ a ] . t o k e n s ) , { h e a d e r : ! 1 , a l i g n : c . a l i g n [ a ] } ) ; p + = t h i s . r e n d e r e r . t a b l e r o w ( f ) } r + = t h i s . r e n d e r e r . t a b l e ( h , p ) ; c o n t i n u e } c a s e " b l o c k q u o t e " : { p = t h i s . p a r s e ( c . t o k e n s ) , r + = t h i s . r e n d e r e r . b l o c k q u o t e ( p ) ; c o n t i n u e } c a s e " l i s t " : { f o r ( _ = c . o r d e r e d , T = c . s t a r t , z = c . l o o s e , o = c . i t e m s . l e n g t h , p = " " , i = 0 ; i < o ; i + + ) O = c . i t e m s [ i ] , J = O . c h e c k e d , t e = O . t a s k , M = " " , O . t a s k & & ( i e = t h i s . r e n d e r e r . c h e c k b o x ( J ) , z ? O . t o k e n s . l e n g t h > 0 & & O . t o k e n s [ 0 ] . t y p e = = = " p a r a g r a p h " ? ( O . t o k e n s [ 0 ] . t e x t = i e + " " + O . t o k e n s [ 0 ] . t e x t , O . t o k e n s [ 0 ] . t o k e n s & & O . t o k e n s [ 0 ] . t o k e n s . l e n g t h > 0 & & O . t o k e n s [ 0 ] . t o k e n s [ 0 ] . t y p e = = = " t e x t " & & ( O . t o k e n s [ 0 ] . t o k e n s [ 0 ] . t e x t = i e + " " + O . t o k e n s [ 0 ] . t o k e n s [ 0 ] . t e x t ) ) : O . t o k e n s . u n s h i f t ( { t y p e : " t e x t " , t e x t : i e } ) : M + = i e ) , M + = t h i s . p a r s e ( O . t o k e n s , z ) , p + = t h i s . r e n d e r e r . l i s t i t e m ( M , t e , J ) ; r + = t h i s . r e n d e r e r . l i s t ( p , _ , T ) ; c o n t i n u e } c a s e " h t m l " : { r + = t h i s . r e n d e r e r . h t m l ( c . t e x t ) ; c o n t i n u e } c a s e " p a r a g r a p h " : { r + = t h i s . r e n d e r e r . p a r a g r a p h ( t h i s . p a r s e I n l i n e ( c . t o k e n s ) ) ; c o n t i n u e } c a s e " t e x t " : { f o r ( p = c . t o k e n s ? t h i s . p a r s e I n l i n e ( c . t o k e n s ) : c . t e x t ; n + 1 < a e & & e [ n + 1 ] . t y p e = = = " t e x t " ; ) c = e [ + + n ] , p + = `
` +(c.tokens?this.parseInline(c.tokens):c.text);r+=t?this.renderer.paragraph(p):p;continue}default:{const be='Token with "'+c.type+'" type was not found.';if(this.options.silent){console.error(be);return}else throw new Error(be)}}}return r}parseInline(e,t){t=t||this.renderer;let r="",n,i,a;const o=e.length;for(n=0;n<o;n++){if(i=e[n],this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]&&(a=this.options.extensions.renderers[i.type].call({parser:this},i),a!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type))){r+=a||"";continue}switch(i.type){case"escape":{r+=t.text(i.text);break}case"html":{r+=t.html(i.text);break}case"link":{r+=t.link(i.href,i.title,this.parseInline(i.tokens,t));break}case"image":{r+=t.image(i.href,i.title,i.text);break}case"strong":{r+=t.strong(this.parseInline(i.tokens,t));break}case"em":{r+=t.em(this.parseInline(i.tokens,t));break}case"codespan":{r+=t.codespan(i.text);break}case"br":{r+=t.br();break}case"del":{r+=t.del(this.parseInline(i.tokens,t));break}case"text":{r+=t.text(i.text);break}default:{const s='Token with "'+i.type+'" type was not found.';if(this.options.silent){console.error(s);return}else throw new Error(s)}}}return r}}function $ (l,e,t){if(typeof l>"u"||l===null)throw new Error("marked(): input parameter is undefined or null");if(typeof l!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(l)+", string expected");if(typeof e=="function"&&(t=e,e=null),e=le({}, $ .defaults,e||{}),Dt(e),t){const n=e.highlight;let i;try{i=oe.lex(l,e)}catch(s){return t(s)}const a=function(s){let u;if(!s)try{e.walkTokens&& $ .walkTokens(i,e.walkTokens),u=se.parse(i,e)}catch(f){s=f}return e.highlight=n,s?t(s):t(null,u)};if(!n||n.length<3||(delete e.highlight,!i.length))return a();let o=0; $ .walkTokens(i,function(s){s.type==="code"&&(o++,setTimeout(()=>{n(s.text,s.lang,function(u,f){if(u)return a(u);f!=null&&f!==s.text&&(s.text=f,s.escaped=!0),o--,o===0&&a()})},0))}),o===0&&a();return}function r(n){if(n.message+= `
Please report this to https : //github.com/markedjs/marked.`,e.silent)return"<p>An error occurred:</p><pre>"+K(n.message+"",!0)+"</pre>";throw n}try{const n=oe.lex(l,e);if(e.walkTokens){if(e.async)return Promise.all($.walkTokens(n,e.walkTokens)).then(()=>se.parse(n,e)).catch(r);$.walkTokens(n,e.walkTokens)}return se.parse(n,e)}catch(n){r(n)}}$.options=$.setOptions=function(l){return le($.defaults,l),_n($.defaults),$};$.getDefaults=yt;$.defaults=ye;$.use=function(...l){const e=$.defaults.extensions||{renderers:{},childTokens:{}};l.forEach(t=>{const r=le({},t);if(r.async=$.defaults.async||r.async,t.extensions&&(t.extensions.forEach(n=>{if(!n.name)throw new Error("extension name required");if(n.renderer){const i=e.renderers[n.name];i?e.renderers[n.name]=function(...a){let o=n.renderer.apply(this,a);return o===!1&&(o=i.apply(this,a)),o}:e.renderers[n.name]=n.renderer}if(n.tokenizer){if(!n.level||n.level!=="block"&&n.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");e[n.level]?e[n.level].unshift(n.tokenizer):e[n.level]=[n.tokenizer],n.start&&(n.level==="block"?e.startBlock?e.startBlock.push(n.start):e.startBlock=[n.start]:n.level==="inline"&&(e.startInline?e.startInline.push(n.start):e.startInline=[n.start]))}n.childTokens&&(e.childTokens[n.name]=n.childTokens)}),r.extensions=e),t.renderer){const n=$.defaults.renderer||new qe;for(const i in t.renderer){const a=n[i];n[i]=(...o)=>{let s=t.renderer[i].apply(n,o);return s===!1&&(s=a.apply(n,o)),s}}r.renderer=n}if(t.tokenizer){const n=$.defaults.tokenizer||new Ye;for(const i in t.tokenizer){const a=n[i];n[i]=(...o)=>{let s=t.tokenizer[i].apply(n,o);return s===!1&&(s=a.apply(n,o)),s}}r.tokenizer=n}if(t.walkTokens){const n=$.defaults.walkTokens;r.walkTokens=function(i){let a=[];return a.push(t.walkTokens.call(this,i)),n&&(a=a.concat(n.call(this,i))),a}}$.setOptions(r)})};$.walkTokens=function(l,e){let t=[];for(const r of l)switch(t=t.concat(e.call($,r)),r.type){case"table":{for(const n of r.header)t=t.concat($.walkTokens(n.tokens,e));for(const n of r.rows)for(const i of n)t=t.concat($.walkTokens(i.tokens,e));break}case"list":{t=t.concat($.walkTokens(r.items,e));break}default:$.defaults.extensions&&$.defaults.extensions.childTokens&&$.defaults.extensions.childTokens[r.type]?$.defaults.extensions.childTokens[r.type].forEach(function(n){t=t.concat($.walkTokens(r[n],e))}):r.tokens&&(t=t.concat($.walkTokens(r.tokens,e)))}return t};$.parseInline=function(l,e){if(typeof l>"u"||l===null)throw new Error("marked.parseInline(): input parameter is undefined or null");if(typeof l!="string")throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(l)+", string expected");e=le({},$.defaults,e||{}),Dt(e);try{const t=oe.lexInline(l,e);return e.walkTokens&&$.walkTokens(t,e.walkTokens),se.parseInline(t,e)}catch(t){if(t.message+=`
Please report this to https : //github.com/markedjs/marked.`,e.silent)return"<p>An error occurred:</p><pre>"+K(t.message+"",!0)+"</pre>";throw t}};$.Parser=se;$.parser=se.parse;$.Renderer=qe;$.TextRenderer=Mt;$.Lexer=oe;$.lexer=oe.lex;$.Tokenizer=Ye;$.Slugger=Be;$.parse=$;$.options;$.setOptions;$.use;$.walkTokens;$.parseInline;se.parse;oe.lex;const Ot={};function Pn(l){let e;return{c(){e=G(l[1])},l(t){e=Z(t,l[1])},m(t,r){b(t,e,r)},p(t,r){r&2&&ge(e,t[1])},i:ee,o:ee,d(t){t&&d(e)}}}function Rn(l){let e,t;const r=l[5].default,n=F(r,l,l[4],null);return{c(){e=S("h6"),n&&n.c(),this.h()},l(i){e=x(i,"H6",{id:!0});var a=D(e);n&&n.l(a),a.forEach(d),this.h()},h(){v(e,"id",l[2])},m(i,a){b(i,e,a),n&&n.m(e,null),t=!0},p(i,a){n&&n.p&&(!t||a&16)&&Q(n,r,i,i[4],t?j(r,i[4],a,null):X(i[4]),null),(!t||a&4)&&v(e,"id",i[2])},i(i){t||(m(n,i),t=!0)},o(i){g(n,i),t=!1},d(i){i&&d(e),n&&n.d(i)}}}function zn(l){let e,t;const r=l[5].default,n=F(r,l,l[4],null);return{c(){e=S("h5"),n&&n.c(),this.h()},l(i){e=x(i,"H5",{id:!0});var a=D(e);n&&n.l(a),a.forEach(d),this.h()},h(){v(e,"id",l[2])},m(i,a){b(i,e,a),n&&n.m(e,null),t=!0},p(i,a){n&&n.p&&(!t||a&16)&&Q(n,r,i,i[4],t?j(r,i[4],a,null):X(i[4]),null),(!t||a&4)&&v(e,"id",i[2])},i(i){t||(m(n,i),t=!0)},o(i){g(n,i),t=!1},d(i){i&&d(e),n&&n.d(i)}}}function Nn(l){let e,t;const r=l[5].default,n=F(r,l,l[4],null);return{c(){e=S("h4"),n&&n.c(),this.h()},l(i){e=x(i,"H4",{id:!0});var a=D(e);n&&n.l(a),a.forEach(d),this.h()},h(){v(e,"id",l[2])},m(i,a){b(i,e,a),n&&n.m(e,null),t=!0},p(i,a){n&&n.p&&(!t||a&16)&&Q(n,r,i,i[4],t?j(r,i[4],a,null):X(i[4]),null),(!t||a&4)&&v(e,"id",i[2])},i(i){t||(m(n,i),t=!0)},o(i){g(n,i),t=!1},d(i){i&&d(e),n&&n.d(i)}}}function In(l){let e,t;const r=l[5].default,n=F(r,l,l[4],null);return{c(){e=S("h3"),n&&n.c(),this.h()},l(i){e=x(i,"H3",{id:!0});var a=D(e);n&&n.l(a),a.forEach(d),this.h()},h(){v(e,"id",l[2])},m(i,a){b(i,e,a),n&&n.m(e,null),t=!0},p(i,a){n&&n.p&&(!t||a&16)&&Q(n,r,i,i[4],t?j(r,i[4],a,null):X(i[4]),null),(!t||a&4)&&v(e,"id",i[2])},i(i){t||(m(n,i),t=!0)},o(i){g(n,i),t=!1},d(i){i&&d(e),n&&n.d(i)}}}function Un(l){let e,t;const r=l[5].default,n=F(r,l,l[4],null);return{c(){e=S("h2"),n&&n.c(),this.h()},l(i){e=x(i,"H2",{id:!0});var a=D(e);n&&n.l(a),a.forEach(d),this.h()},h(){v(e,"id",l[2])},m(i,a){b(i,e,a),n&&n.m(e,null),t=!0},p(i,a){n&&n.p&&(!t||a&16)&&Q(n,r,i,i[4],t?j(r,i[4],a,null):X(i[4]),null),(!t||a&4)&&v(e,"id",i[2])},i(i){t||(m(n,i),t=!0)},o(i){g(n,i),t=!1},d(i){i&&d(e),n&&n.d(i)}}}function Wn(l){let e,t;const r=l[5].default,n=F(r,l,l[4],null);return{c(){e=S("h1"),n&&n.c(),this.h()},l(i){e=x(i,"H1",{id:!0});var a=D(e);n&&n.l(a),a.forEach(d),this.h()},h(){v(e,"id",l[2])},m(i,a){b(i,e,a),n&&n.m(e,null),t=!0},p(i,a){n&&n.p&&(!t||a&16)&&Q(n,r,i,i[4],t?j(r,i[4],a,null):X(i[4]),null),(!t||a&4)&&v(e,"id",i[2])},i(i){t||(m(n,i),t=!0)},o(i){g(n,i),t=!1},d(i){i&&d(e),n&&n.d(i)}}}function An(l){let e,t,r,n;const i=[Wn,Un,In,Nn,zn,Rn,Pn],a=[];function o(s,u){return s[0]===1?0:s[0]===2?1:s[0]===3?2:s[0]===4?3:s[0]===5?4:s[0]===6?5:6}return e=o(l),t=a[e]=i[e](l),{c(){t.c(),r=y()},l(s){t.l(s),r=y()},m(s,u){a[e].m(s,u),b(s,r,u),n=!0},p(s,[u]){let f=e;e=o(s),e===f?a[e].p(s,u):(A(),g(a[f],1,1,()=>{a[f]=null}),L(),t=a[e],t?t.p(s,u):(t=a[e]=i[e](s),t.c()),m(t,1),t.m(r.parentNode,r))},i(s){n||(m(t),n=!0)},o(s){g(t),n=!1},d(s){a[e].d(s),s&&d(r)}}}function Ln(l,e,t){let r,{$$slots:n={},$$scope:i}=e,{depth:a}=e,{raw:o}=e,{text:s}=e;const{slug:u,getOptions:f}=Lt(Ot),h=f();return l.$$set=p=>{"depth"in p&&t(0,a=p.depth),"raw"in p&&t(1,o=p.raw),"text"in p&&t(3,s=p.text),"$$scope"in p&&t(4,i=p.$$scope)},l.$$.update=()=>{l.$$.dirty&8&&t(2,r=h.headerIds?h.headerPrefix+u(s):void 0)},[a,o,r,s,i,n]}class Yn extends q{constructor(e){super(),B(this,e,Ln,An,H,{depth:0,raw:1,text:3})}}function qn(l){let e,t;const r=l[1].default,n=F(r,l,l[0],null);return{c(){e=S("p"),n&&n.c()},l(i){e=x(i,"P",{});var a=D(e);n&&n.l(a),a.forEach(d)},m(i,a){b(i,e,a),n&&n.m(e,null),t=!0},p(i,[a]){n&&n.p&&(!t||a&1)&&Q(n,r,i,i[0],t?j(r,i[0],a,null):X(i[0]),null)},i(i){t||(m(n,i),t=!0)},o(i){g(n,i),t=!1},d(i){i&&d(e),n&&n.d(i)}}}function Bn(l,e,t){let
| ` ),u=S("button"),f=G("Toggle JSON source"),this.h()},l(c){e=Z(c," | ID: "),t=x(c,"A",{href:!0,class:!0,target:!0});var _=D(t);n=Z(_,r),_.forEach(d),a=Z(c," ["),o=Z(c,l[3]),s=Z(c, ` ]
| ` ),u=x(c,"BUTTON",{class:!0});var T=D(u);f=Z(T,"Toggle JSON source"),T.forEach(d),this.h()},h(){v(t,"href",i="https://github.com/utxo-foundation/prague-blockchain-week/tree/main/data/23/"+l[3]+"/"+l[0].id),v(t,"class","underline hover:no-underline"),v(t,"target","_blank"),v(u,"class","cursor-pointer underline hover:no-underline")},m(c,_){b(c,e,_),b(c,t,_),U(t,n),b(c,a,_),b(c,o,_),b(c,s,_),b(c,u,_),U(u,f),h||(p=Ft(u,"click",l[5]),h=!0)},p(c,_){_&1&&r!==(r=c[0].id+"")&&ge(n,r),_&1&&i!==(i="https://github.com/utxo-foundation/prague-blockchain-week/tree/main/data/23/"+c[3]+"/"+c[0].id)&&v(t,"href",i)},d(c){c&&d(e),c&&d(t),c&&d(a),c&&d(o),c&&d(s),c&&d(u),h=!1,p()}}}function vt(l){let e,t,r,n,i=JSON.stringify(l[0],null,2)+"",a;return{c(){e=S("h2"),t=G("JSON source-code"),r=ue(),n=S("div"),a=G(i),this.h()},l(o){e=x(o,"H2",{class:!0});var s=D(e);t=Z(s,"JSON source-code"),s.forEach(d),r=fe(o),n=x(o,"DIV",{class:!0});var u=D(n);a=Z(u,i),u.forEach(d),this.h()},h(){v(e,"class","text-2xl uppercase font-bold mt-10 text-gray-500"),v(n,"class","mt-4 font-mono whitespace-pre-wrap p-4 rounded-md bg-slate-200 text-sm text-black")},m(o,s){b(o,e,s),U(e,t),b(o,r,s),b(o,n,s),U(n,a)},p(o,s){s&1&&i!==(i=JSON.stringify(o[0],null,2)+"")&&ge(a,i)},d(o){o&&d(e),o&&d(r),o&&d(n)}}}function Oa(l){let e,t,r,n,i,a,o,s,u,f,h,p,c,_=l[1]&&wt(l);return{c(){e=S("div"),t=S("div"),r=S("div"),n=G("⚙ This page is automatically generated using the structured dataset which can be consumed as a single JSON file → "),i=S("a"),a=G("data.prgblockweek.com/23/index.json"),o=G( ` .
2023-01-27 11:25:59 +01:00
` ),s=S("div"),u=G( `
📖 The source data GitHub repository → ` ),f=S("a"),h=G("utxo-foundation/prague-blockchain-week"),p=G( ` .
Go ahead and do PRs ! ` ),c=ue(),_&&_.c(),this.h()},l(T){e=x(T,"DIV",{class:!0});var z=D(e);t=x(z,"DIV",{class:!0});var M=D(t);r=x(M,"DIV",{});var O=D(r);n=Z(O,"⚙ This page is automatically generated using the structured dataset which can be consumed as a single JSON file → "),i=x(O,"A",{href:!0,class:!0,target:!0});var J=D(i);a=Z(J,"data.prgblockweek.com/23/index.json"),J.forEach(d),o=Z(O, ` .
` ),s=x(O,"DIV",{class:!0}),D(s).forEach(d),u=Z(O, `
📖 The source data GitHub repository → ` ),f=x(O,"A",{href:!0,class:!0,target:!0});var te=D(f);h=Z(te,"utxo-foundation/prague-blockchain-week"),te.forEach(d),p=Z(O, ` .
2023-01-28 04:31:06 +01:00
Go ahead and do PRs ! ` ),O.forEach(d),M.forEach(d),c=fe(z),_&&_.l(z),z.forEach(d),this.h()},h(){v(i,"href","https://data.prgblockweek.com/23/index.json"),v(i,"class","underline hover:no-underline"),v(i,"target","_blank"),v(s,"class","h-4"),v(f,"href","https://github.com/utxo-foundation/prague-blockchain-week"),v(f,"class","underline hover:no-underline"),v(f,"target","_blank"),v(t,"class","bg-gray-100 p-4 text-lg text-gray-600"),v(e,"class","mt-20")},m(T,z){b(T,e,z),U(e,t),U(t,r),U(r,n),U(r,i),U(i,a),U(r,o),U(r,s),U(r,u),U(r,f),U(f,h),U(r,p),U(e,c),_&&_.m(e,null)},p(T,[z]){T[1]?_?_.p(T,z):(_=wt(T),_.c(),_.m(e,null)):_&&(_.d(1),_=null)},i:ee,o:ee,d(T){T&&d(e),_&&_.d()}}}function Ca(l,e,t){let{item:r}=e,{col:n}=e,{bundle:i}=e;const a=Object.keys(bt.collections).find(u=>bt.collections[u].model===n);let o=!1;const s=()=>(t(2,o=!o),!1);return l. $ $ set=u=>{"item"in u&&t(0,r=u.item),"col"in u&&t(4,n=u.col),"bundle"in u&&t(1,i=u.bundle)},[r,i,o,a,n,s]}class Ua extends q{constructor(e){super(),B(this,e,Ca,Oa,H,{item:0,col:4,bundle:1})}}export{Ua as F,Ra as S,Na as b,bt as c,za as f,Ia as g};