var xZ=Object.create,{getPrototypeOf:EZ,defineProperty:G$,getOwnPropertyNames:q6,getOwnPropertyDescriptor:TZ}=Object,J6=Object.prototype.hasOwnProperty;function U6($){return this[$]}var fZ,CZ,mZ=($,Q,Z)=>{var V=$!=null&&typeof $=="object";if(V){var Y=Q?fZ??=new WeakMap:CZ??=new WeakMap,G=Y.get($);if(G)return G}Z=$!=null?xZ(EZ($)):{};let K=Q||!$||!$.k?G$(Z,"default",{value:$,enumerable:!0}):Z;for(let q of q6($))J6.call(K,q)||G$(K,q,{get:U6.bind($,q),enumerable:!0});return V&&Y.set($,K),K},hZ=$=>{var Q=(K6??=new WeakMap).get($),Z;if(Q)return Q;if(Q=G$({},"__esModule",{value:!0}),$&&typeof $=="object"||typeof $=="function")for(var V of q6($))J6.call(Q,V)||G$(Q,V,{get:U6.bind($,V),enumerable:!(Z=TZ($,V))||Z.enumerable});return K6.set($,Q),Q},K6,uZ=$=>$;function pZ($,Q){this[$]=uZ.bind(null,Q)}var dZ=($,Q)=>{for(var Z in Q)G$($,Z,{get:Q[Z],enumerable:!0,configurable:!0,set:pZ.bind(Q,Z)})},w5={};dZ(w5,{slugify:()=>g0,sanitizer:()=>g9,parser:()=>QZ,default:()=>R5,compiler:()=>w$,astToJSX:()=>GZ,RuleType:()=>v,MarkdownProvider:()=>P5,MarkdownContext:()=>P$,Markdown:()=>KZ}),module.exports=hZ(w5);var r0=mZ(require("react")),N=32,w=9,D9=13,T=10,s=96,A0=126,H0=91,a0=94,c=62,J9=35,K$=37,p=45,C0=61,v0=92,B0=42,U0=95,e=60,q$=64,p0=93,E0=33,E$=38,T0=58,T$=70,B9=102,m9=104,W9=119,h9=116,O$=112,f$=115,F6=160,X6=12,W6=44,C$=59,a9=63,d0=46,j0=47,L9=39,j9=34,M9=43,b0=124,S9=123,D$=125,e0=40,$9=41,n9=30,B$=31,o=48,i=57,d=65,l=90,J0=97,F0=122,s9=128,n0=32,cZ={blockQuote:0,breakLine:1,breakThematic:2,codeBlock:3,codeInline:4,footnote:5,footnoteReference:6,frontmatter:7,gfmTask:8,heading:9,htmlBlock:10,htmlComment:11,htmlSelfClosing:12,image:13,link:14,orderedList:15,paragraph:16,ref:17,refCollection:18,table:19,text:20,textFormatted:21,unorderedList:22},v=cZ,h$=require("markdown-to-jsx/entities");function M6($){if(!H6($,"---"))return null;let Q=3;for(;Q<$.length&&($[Q]===" "||$[Q]==="	");)Q++;if(Q<$.length&&$[Q]==="\r"&&Q++,Q>=$.length||$[Q]!==`
`)return null;Q++;let Z=!1;for(;Q<$.length;){let V=Q;for(;Q<$.length&&$[Q]!==`
`&&$[Q]!=="\r";)Q++;if(Q>=$.length)break;let Y=Q;if($[Q]==="\r"&&Q++,Q<$.length&&$[Q]===`
`&&Q++,H6($,"---",V))return{endPos:Q,hasValidYaml:Z};if(!Z){let G=sZ($,V,Y);if(G<Y){let K=$.charCodeAt(G);if(K>=J0&&K<=F0||K>=d&&K<=l||K>=o&&K<=i||K===U0){for(G++;G<Y&&(K=$.charCodeAt(G),K>=J0&&K<=F0||K>=d&&K<=l||K>=o&&K<=i||K===U0||K===p||K===d0);)G++;G<Y&&$.charCodeAt(G)===T0&&(G++,G>=Y?Z=!0:(K=$.charCodeAt(G),(K===N||K===w)&&(Z=!0)))}}}}return null}var lZ=/&([a-zA-Z0-9]+|#[0-9]{1,7}|#x[0-9a-fA-F]{1,6});/gi,rZ={class:"className",for:"htmlFor",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",autocomplete:"autoComplete",autofocus:"autoFocus",autoplay:"autoPlay",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",classid:"classId",colspan:"colSpan",contenteditable:"contentEditable",contextmenu:"contextMenu",crossorigin:"crossOrigin",enctype:"encType",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",hreflang:"hrefLang",inputmode:"inputMode",keyparams:"keyParams",keytype:"keyType",marginheight:"marginHeight",marginwidth:"marginWidth",maxlength:"maxLength",mediagroup:"mediaGroup",minlength:"minLength",novalidate:"noValidate",radiogroup:"radioGroup",readonly:"readOnly",rowspan:"rowSpan",spellcheck:"spellCheck",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",tabindex:"tabIndex",usemap:"useMap",viewbox:"viewBox"};function c0($){var Q={};for(var Z in $){var V=Z.toLowerCase(),Y=rZ[V];if(Y)Q[Y]=$[Z];else{var G=Z.indexOf(":");G!==-1?Q[Z.slice(0,G)+Z[G+1].toUpperCase()+Z.slice(G+2)]=$[Z]:Q[Z]=$[Z]}}return Q}var A6=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s|^<(div|p|h[1-6]|ul|ol|li|blockquote|pre|table|thead|tbody|tr|td|th|dl|dt|dd|hr|address|article|aside|details|dialog|figure|figcaption|footer|form|header|main|menu|nav|section|summary|textarea|fieldset|legend|center|dir|hgroup|marquee|search|output|template)\b)/i;function t9($){return $.indexOf("&")===-1?$:$.replace(lZ,(Q,Z)=>{var V=h$.decodeEntity(Z);if(V)return V;if(Z[0]==="#"){var Y=Z[1]==="x"||Z[1]==="X"?parseInt(Z.slice(2),16):parseInt(Z.slice(1),10);return Y===0||Y>=55296&&Y<=57343||Y>1114111?"\uFFFD":Y<=65535?String.fromCharCode(Y):String.fromCharCode(55296+(Y-65536>>10),56320+(Y-65536&1023))}return Q})}var z6=/(javascript|vbscript|data(?!:image)):/i;function g9($){if(z6.test($))return null;if($.indexOf("%")===-1)return $;try{let Q=decodeURIComponent($).replace(/[^A-Za-z0-9/:]/g,"");if(z6.test(Q))return null}catch{return null}return $}var f0={},m0,k0;for(m0=[192,193,194,195,196,197,224,225,226,227,228,229,230,198],k0=0;k0<m0.length;k0++)f0[m0[k0]]="a";for(f0[231]=f0[199]="c",f0[240]=f0[208]="d",m0=[200,201,202,203,233,232,234,235],k0=0;k0<m0.length;k0++)f0[m0[k0]]="e";for(m0=[207,239,206,238,205,237,204,236],k0=0;k0<m0.length;k0++)f0[m0[k0]]="i";for(f0[209]=f0[241]="n",m0=[248,216,339,338,213,245,212,244,211,243,210,242],k0=0;k0<m0.length;k0++)f0[m0[k0]]="o";for(m0=[220,252,219,251,218,250,217,249],k0=0;k0<m0.length;k0++)f0[m0[k0]]="u";f0[376]=f0[255]=f0[221]=f0[253]="y";function g0($){for(var Q="",Z=-1,V=$.length,Y=0;Y<V;Y++){var G=$.charCodeAt(Y);if(G>=J0&&G<=F0||G>=o&&G<=i){Z<0&&(Z=Y);continue}if(G>=d&&G<=l){Z>=0&&(Q+=$.slice(Z,Y),Z=-1),Q+=String.fromCharCode(G+n0);continue}if(G===N||G===p){Z>=0&&(Q+=$.slice(Z,Y),Z=-1),Q+="-";continue}Z>=0&&(Q+=$.slice(Z,Y),Z=-1);var K=f0[G];K&&(Q+=K)}return Z>=0&&(Q+=$.slice(Z)),Q}function H6($,Q,Z){return $.startsWith(Q,Z)}var O6=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr","circle","ellipse","line","path","polygon","polyline","rect","use","stop","animate","set"]);function d9($){let Q=$.toLowerCase();if(O6.has(Q))return!0;let Z=Q.indexOf(":");return Z!==-1?(Q=Q.slice(Z+1),O6.has(Q)):!1}var A9=1,D6=2,p9=4,B6=8,oZ=16,Z9=32,_9=64,j6=1,iZ=2,aZ=3,nZ=4,_6=(function(){var $=new Uint8Array(128),Q;for($[w]=A9,$[T]=A9|D6,$[X6]=A9,$[D9]=A9|D6,$[N]=A9,Q=E0;Q<=j0;Q++)$[Q]=p9;for(Q=T0;Q<=q$;Q++)$[Q]=p9;for(Q=H0;Q<=s;Q++)$[Q]=p9;for(Q=S9;Q<=A0;Q++)$[Q]=p9;for(Q=o;Q<=i;Q++)$[Q]=oZ;for(Q=d;Q<=l;Q++)$[Q]=B6;for(Q=J0;Q<=F0;Q++)$[Q]=B6;return $})(),S5=(function(){let $=new Uint8Array(128);return $[v0]=iZ,$[H0]=nZ,$[B0]=$[U0]=$[A0]=$[C0]=aZ,$[s]=$[e]=$[q$]=$[p0]=$[T]=$[N]=$[E0]=j6,$[B9]=$[m9]=$[W9]=j6,$})(),v6=/[\p{P}\p{S}]/u,I6=/\p{Zs}/u,u9=[];function u$($){var Q=$.indexOf("\r"),Z=$.indexOf("\0");if(Q===-1&&Z===-1)return $;var V=$.length;u9.length=0;var Y=0,G=0;for(Q===-1?G=Z:Z===-1?G=Q:G=Q<Z?Q:Z;G<V;G++){var K=$.charCodeAt(G);K===D9?(Y<G&&u9.push($.slice(Y,G)),G+1<V&&$.charCodeAt(G+1)===T&&G++,u9.push(`
`),Y=G+1):K===0&&(Y<G&&u9.push($.slice(Y,G)),u9.push("\uFFFD"),Y=G+1)}return Y<V&&u9.push($.slice(Y)),u9.join("")}function sZ($,Q,Z){let V=Z??$.length;for(;Q<V&&($[Q]===" "||$[Q]==="	");)Q++;return Q}function g5($){if(!$)return!1;for(var Q in $)return!0;return!1}function e9($,Q,Z){for(var V=$,Y=Q.split("."),G=0;G<Y.length&&(V=V?.[Y[G]],V!==void 0);)G++;return V||Z}function N6($){for(var Q=!1,Z=0;Z<$.length;Z++){var V=$.charCodeAt(Z);if(V<=N||V===j9||V===K$||V===e||V===c||V===H0||V===v0||V===p0||V===a0||V===s||V>=123){Q=!0;break}}if(!Q)return $;for(var Y="",Z=0;Z<$.length;Z++){var V=$.charCodeAt(Z);if(V===K$&&Z+2<$.length){var G=$.charCodeAt(Z+1),K=$.charCodeAt(Z+2);if((G>=o&&G<=i||G>=d&&G<=T$||G>=J0&&G<=B9)&&(K>=o&&K<=i||K>=d&&K<=T$||K>=J0&&K<=B9)){Y+=$[Z]+$[Z+1]+$[Z+2],Z+=2;continue}}Y+=encodeURI($[Z])}return Y}function b6(...$){return $.filter(Boolean).join(" ")}function x5($,Q){if(!Q)return $;let Z=e9(Q,$,void 0);return typeof Z=="string"?Z:typeof Z=="object"&&Z.component?Z.component:$}function E5($,Q){if(!Q)return{};let Z=e9(Q,$,void 0);return typeof Z=="object"&&Z.props?Z.props:{}}var tZ=new Set(["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"]),j$=/<(\/?)(title|textarea|style|xmp|iframe|noembed|noframes|script|plaintext)(\s|>|\/)/gi;function p$($){return tZ.has($.toLowerCase())}function P6($){return j$.lastIndex=0,j$.test($)}function d$($){return j$.lastIndex=0,$.replace(j$,function(Q,Z,V,Y){return"&lt;"+Z+V+Y})}var h6=/^<([a-zA-Z][a-zA-Z0-9-]*)\s[^>]*>/,u6=/^<[A-Z]/,c$=["script","pre","style","textarea"],F$=new Set(c$),eZ=/<(?:pre|script|style|textarea)\b/i,R6=/<(?:pre|script|style|textarea)\b/iy,y6=/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m,k6=/^<([a-z][^ >/\n\r]*) ?([^>]*?)>/im,p6=new Uint8Array(128);(function(){for(var $=[s,B0,U0,A0,C0,H0,E0,e,v0,B$,m9,W9,B9],Q=0;Q<$.length;Q++)p6[$[Q]]=1})();var L6=/([a-zA-Z_][a-zA-Z0-9_-]*)=(?:"([^"]*)"|'([^']*)')/g;function d6($){return F$.has($)}function c6($){return eZ.test($)}function l6($,Q,Z){for(var V=Q,Y=Z;V<Y&&($.charCodeAt(V)===N||$.charCodeAt(V)===w);)V++;if(V>=Y)return!1;$.charCodeAt(V)===b0&&V++;for(var G=0;V<Y;){for(;V<Y&&($.charCodeAt(V)===N||$.charCodeAt(V)===w);)V++;if(V>=Y)break;if($.charCodeAt(V)===b0&&G>0){for(var K=V+1;K<Y&&($.charCodeAt(K)===N||$.charCodeAt(K)===w);)K++;if(K>=Y)return!0}if($.charCodeAt(V)===T0&&V++,V>=Y||$.charCodeAt(V)!==p)return!1;for(;V<Y&&$.charCodeAt(V)===p;)V++;for(V<Y&&$.charCodeAt(V)===T0&&V++,G++;V<Y&&($.charCodeAt(V)===N||$.charCodeAt(V)===w);)V++;if(V<Y)if($.charCodeAt(V)===b0)V++;else return!1}return G>0}function I9($,Q){if($.charCodeAt(Q)!==e)return null;let Z=Q+1,V=$.length,Y=!1;$.charCodeAt(Z)===j0&&(Z++,Y=!0);let G=Z,K=$.charCodeAt(Z);if(!(K>=J0&&K<=F0||K>=d&&K<=l))return null;for(;Z<V&&($.charCodeAt(Z)>=J0&&$.charCodeAt(Z)<=F0||$.charCodeAt(Z)>=d&&$.charCodeAt(Z)<=l||$.charCodeAt(Z)>=o&&$.charCodeAt(Z)<=i||$.charCodeAt(Z)===p);)Z++;let q=$.slice(G,Z);if(!q)return null;let J=Z;for(;Z<V&&($.charCodeAt(Z)===N||$.charCodeAt(Z)===w||$.charCodeAt(Z)===T);)Z++;let U=$.slice(J,Z);if(Z===J&&Z<V){var W=$.charCodeAt(Z);if(W!==c&&W!==j0)return null}let X=Z,H={},z=!1;for(;Z<V;){let S=$.charCodeAt(Z);if(S===c){let L=$.slice(X,Z);return{tag:q,attrs:H,selfClosing:!1,end:Z+1,rawAttrs:L,whitespaceBeforeAttrs:U,isClosing:Y,hasSpaceBeforeSlash:z}}if(S===N||S===w||S===T){Z++;continue}if(S===j0&&Z+1<V&&$.charCodeAt(Z+1)===c){let L=$.slice(X,Z);return z=Z>X&&$.charCodeAt(Z-1)===N,{tag:q,attrs:H,selfClosing:!0,end:Z+2,rawAttrs:L,whitespaceBeforeAttrs:U,isClosing:Y,hasSpaceBeforeSlash:z}}var B=Z,j=$.charCodeAt(Z);if(!(j>=J0&&j<=F0||j>=d&&j<=l||j===U0||j===T0))return null;for(Z++;Z<V;){var F=$.charCodeAt(Z);if(F>=J0&&F<=F0||F>=d&&F<=l||F>=o&&F<=i||F===U0||F===d0||F===T0||F===p)Z++;else break}for(var A=$.slice(B,Z);Z<V&&($.charCodeAt(Z)===N||$.charCodeAt(Z)===w);)Z++;if($.charCodeAt(Z)!==C0){H[A]="";continue}for(Z++;Z<V&&($.charCodeAt(Z)===N||$.charCodeAt(Z)===w);)Z++;var D=$.charCodeAt(Z);if(D===j9||D===L9){Z++;for(var M=Z;Z<V&&$.charCodeAt(Z)!==D;)Z++;if(Z>=V)return null;if(H[A]=$.slice(M,Z),Z++,Z<V){var y=$.charCodeAt(Z);if(y!==N&&y!==w&&y!==T&&y!==c&&y!==j0)return null}}else if(D===S9){var I=1,M=Z;for(Z++;Z<V&&I>0;){var F=$.charCodeAt(Z);F===S9?I++:F===D$&&I--,Z++}H[A]=$.slice(M,Z)}else{for(var M=Z;Z<V;){var O=$.charCodeAt(Z);if(O===N||O===w||O===c||O===T||O===j9||O===L9||O===C0||O===e||O===s)break;Z++}if(Z===M)return null;H[A]=$.slice(M,Z)}}return null}function r6($,Q,Z){if(!Z.streaming&&!Z.optimizeForStreaming&&$.indexOf("[")===-1)return!1;for(var V=0,Y=$.length,G=!1,K=!1;V<Y;){for(var q=$.indexOf(`
`,V),J=q<0?Y:q,U=V,W=0;U<J&&W<4;)if($.charCodeAt(U)===N)W++,U++;else if($.charCodeAt(U)===w)W+=4,U++;else break;if(U>=J){G=!1,V=q<0?Y:q+1;continue}if(W<4){var X=$.charCodeAt(U);if(X===s||X===A0){for(var H=X,z=0,B=U;B<J&&$.charCodeAt(B)===H;)z++,B++;if(z>=3){var j=!0;if(H===s){for(var F=B;F<J;F++)if($.charCodeAt(F)===s){j=!1;break}}if(j){G=!1;for(var A=q<0?Y:q+1;A<Y;){for(var D=A,M=0;D<Y&&M<4;){var y=$.charCodeAt(D);if(y===N)M++,D++;else if(y===w)M+=4,D++;else break}if(M<4&&D<Y&&$.charCodeAt(D)===H){for(var I=0;D<Y&&$.charCodeAt(D)===H;)I++,D++;if(I>=z){for(;D<Y&&($.charCodeAt(D)===N||$.charCodeAt(D)===w);)D++;if(D>=Y||$.charCodeAt(D)===T){V=D>=Y?Y:D+1;break}}}for(;A<Y&&$.charCodeAt(A)!==T;)A++;A<Y&&A++}A>=Y&&(V=Y,K=!0);continue}}}}for(var O=U;O<J&&$.charCodeAt(O)===c;){O++,O<J&&$.charCodeAt(O)===N&&O++;for(var S=0;O<J&&S<4;)if($.charCodeAt(O)===N)S++,O++;else if($.charCodeAt(O)===w)S+=4,O++;else break;if(S>=4)break;G=!1}if(!G&&W<4&&O<J&&$.charCodeAt(O)===H0&&!(O+1<Y&&$.charCodeAt(O+1)===a0)){var L=o6($,O,Q);if(L){V=L,G=!1;continue}}var R=$.charCodeAt(U);if(R===J9&&W<4)G=!1;else if(W<4&&(R===p||R===B0||R===U0)){for(var b=U,k=0;b<J;){var g=$.charCodeAt(b);if(g===R)k++;else if(g!==N&&g!==w)break;b++}G=!(k>=3&&b>=J)}else G=!0;V=q<0?Y:q+1}return K}function o6($,Q,Z){let V=$.length;if($.charCodeAt(Q)!==H0)return null;let Y=Q+1<V&&$.charCodeAt(Q+1)===a0,G=Q+1;for(;G<V;){var K=$.charCodeAt(G);if(K===p0){G++;break}if(K===H0)return null;K===v0&&G+1<V&&G++,G++}if(G>V||$.charCodeAt(G-1)!==p0)return null;let q=$.slice(Q+1,G-1);if(q.length>999)return null;let J=M$(q);if(!J||G>=V||$.charCodeAt(G)!==T0)return null;G++;let U=!1;for(;G<V;){let E=$.charCodeAt(G);if(E===N||E===w)G++;else if(E===T&&!U)U=!0,G++;else break}if(Y){let E=$.indexOf(`
`,G),h=E<0?V:E,C=$.slice(G,h).trim();return Z[J]={target:C,title:void 0},E<0?V:E+1}var W;if(G<V&&$.charCodeAt(G)===e){G++;for(var X=G;G<V&&$.charCodeAt(G)!==c&&$.charCodeAt(G)!==T;)$.charCodeAt(G)===v0&&G+1<V&&G++,G++;if(G>=V||$.charCodeAt(G)!==c)return null;W=$.slice(X,G),G++;for(var H=$.indexOf(`
`,G),z=H<0?V:H,B=G;B<z&&($.charCodeAt(B)===N||$.charCodeAt(B)===w);)B++;if(B<z){if(B===G)return null;var j=$.charCodeAt(B);if(j!==j9&&j!==L9&&j!==e0)return null}}else{for(var X=G,F=0;G<V;){var K=$.charCodeAt(G);if(K===e0)F++;else if(K===$9){if(F===0)break;F--}else{if(K===N||K===w||K===T)break;K===v0&&G+1<V&&G++}G++}if(W=$.slice(X,G),!W)return null}for(;G<V&&($.charCodeAt(G)===N||$.charCodeAt(G)===w);)G++;var A=$.indexOf(`
`,G),D=A<0?V:A,M,y=!1,I=G,O=G;if(G===D&&G<V)for(O=G+1;O<V&&($.charCodeAt(O)===N||$.charCodeAt(O)===w);)O++;if(O<V){var S=$.charCodeAt(O);if(S===j9||S===L9||S===e0){for(var L=S===e0?41:S,R=O+1,b=R;R<V;){var k=$.charCodeAt(R);if(k===L){for(var g=R+1;g<V&&($.charCodeAt(g)===N||$.charCodeAt(g)===w);)g++;(g>=V||$.charCodeAt(g)===T)&&(M=$.slice(b,R),y=!0,I=g<V?g+1:V);break}if(k===v0&&R+1<V){R+=2;continue}if(k===T&&R+1<V&&$.charCodeAt(R+1)===T)break;R++}if(!y&&O===G)return null}}if(y)return Z[J]||(Z[J]={target:Z$(W),title:M!==void 0?t9(Z$(M)):M}),I;for(;G<D&&($.charCodeAt(G)===N||$.charCodeAt(G)===w);)G++;return G<D?null:(Z[J]||(Z[J]={target:Z$(W),title:M}),A<0?V:A+1)}var u0=new Uint8Array(_6);for(u0[B$]=A9,u0[J9]|=Z9,u0[c]|=Z9,u0[p]|=Z9|_9,u0[M9]|=Z9,u0[B0]|=Z9|_9,u0[U0]|=Z9|_9,u0[s]|=Z9|_9,u0[A0]|=Z9|_9,u0[e]|=Z9|_9,u0[H0]|=_9,u0[E0]|=_9,u0[b0]|=Z9,J$=o;J$<=i;J$++)u0[J$]|=Z9;var J$;function S6($){if($.indexOf("[")<0&&$.indexOf("]")<0)return!1;for(var Q=0;Q<$.length;Q++){if($.charCodeAt(Q)===v0){Q++;continue}if($.charCodeAt(Q)===H0||$.charCodeAt(Q)===p0)return!0}return!1}function M$($){var Q=$.replace(/\s+/g," ").trim();return Q.indexOf("\u1E9E")!==-1?Q.replace(/\u1E9E/g,"ss").toLowerCase():Q.toLowerCase()}function o$($){return $<s9?u0[$]:$===F6?A9:0}function Z$($){return $.replace(/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,"$1")}var i6=null,a6=-1,n6=-1;function G0($,Q){if(Q===a6&&$===i6)return n6;var Z=$.indexOf(`
`,Q);return Z<0?$.length:Z}function a($,Q){let Z=G0($,Q);return Z<$.length?Z+1:Z}function U$($,Q,Z){for(;Q<Z;){let V=$.charCodeAt(Q);if(V!==N&&V!==w)break;Q++}return Q}function g6($,Q){let Z=a($,Q);for(;Z<$.length;){let V=G0($,Z);if(l0($,Z,V))return Z;Z=a($,Z)}return $.length}function b9($,Q,Z,V){let Y=0;for(;Q+Y<Z&&$.charCodeAt(Q+Y)===V;)Y++;return Y}var Y0=0,Q0=0;function _0($,Q,Z){for(Y0=0,Q0=0;Q+Q0<Z;){let V=$.charCodeAt(Q+Q0);if(V===w)Y0+=4-Y0%4;else if(V===N)Y0++;else break;Q0++}}function l0($,Q,Z){return U$($,Q,Z)>=Z}function s6($,Q,Z,V){let Y=G0($,Q);if(_0($,Q,Y),Y0>3)return null;let G=Q+Q0;if($.charCodeAt(G)!==J9)return null;let K=b9($,G,Y,35);if(K<1||K>6||(G+=K,G<Y&&$.charCodeAt(G)!==N&&$.charCodeAt(G)!==w))return null;G=U$($,G,Y);for(var q=Y;q>G&&$.charCodeAt(q-1)===N;)q--;for(var J=q;q>G&&$.charCodeAt(q-1)===J9;)q--;if(q<J)if(q===G||$.charCodeAt(q-1)===N)for(;q>G&&$.charCodeAt(q-1)===N;)q--;else q=J;let U=$.slice(G,q),W=h0(U,0,U.length,Z,V),H=(V?.slugify||g0)(U);return{node:{type:v.heading,level:K,children:W,id:H},end:a($,Y)}}function $5($,Q,Z){var V=$.charCodeAt(Q);if(V!==C0&&V!==p)return!1;for(var Y=Q;Y<Z&&$.charCodeAt(Y)===V;)Y++;for(;Y<Z&&($.charCodeAt(Y)===N||$.charCodeAt(Y)===w);)Y++;return Y>=Z}function T9($,Q){let Z=G0($,Q);if(_0($,Q,Z),Y0>3)return null;let V=Q+Q0,Y=$.charCodeAt(V);if(Y!==p&&Y!==B0&&Y!==U0)return null;let G=0;for(;V<Z;){let K=$.charCodeAt(V);if(K===Y)G++;else if(K!==N&&K!==w)return null;V++}return G<3?null:{node:{type:v.breakThematic},end:a($,Z)}}function Z5($,Q,Z){let V=G0($,Q);if(_0($,Q,V),Y0>3)return null;let Y=Y0,G=Q0,K=Q+Q0,q=$.charCodeAt(K);if(q!==s&&q!==A0)return null;let J=b9($,K,V,q);if(J<3)return null;K+=J;let U=U$($,K,V),W=V;if(q===s){for(let R=U;R<V;R++)if($.charCodeAt(R)===s)return null}for(;W>U&&($.charCodeAt(W-1)===N||$.charCodeAt(W-1)===w);)W--;let X=$.slice(U,W),H="",z="",B=X.indexOf(" ");B===-1?H=X:(H=X.slice(0,B),z=X.slice(B+1).trim()),H=Z$(H);var j=void 0;if(z){L6.lastIndex=0;for(var F;(F=L6.exec(z))!==null;)j||(j={}),j[F[1]]=F[2]!==void 0?F[2]:F[3]}let A=a($,V),D=A,M=$.length;for(;D<$.length;){let R=G0($,D);if(_0($,D,R),Y0<4){let b=D+Q0;var y=b9($,b,R,q);if(y>=J){let k=b+y;if(l0($,k,R)){M=a($,R);break}}}D=a($,R)}var I;if(Y===0)I=D>A&&$.charCodeAt(D-1)===T?$.slice(A,D-1):$.slice(A,D);else{I="";for(var O=A;O<D;){var S=G0($,O);_0($,O,S);var L=Math.min(Q0,Y);I+=$.slice(O+L,S)+`
`,O=a($,S)}I.length>0&&I.charCodeAt(I.length-1)===T&&(I=I.slice(0,-1))}return{node:{type:v.codeBlock,lang:H||void 0,text:I,infoString:z||void 0,attrs:j},end:M}}function Q5($,Q){let Z=G0($,Q);if(_0($,Q,Z),Y0<4)return null;let V="",Y=Q;for(;Y<$.length;){let z=G0($,Y);if(_0($,Y,z),l0($,Y,z)){for(var G=0,K=a($,z);K<$.length;){var q=G0($,K);if(l0($,K,q)){G++,K=a($,q);continue}if(_0($,K,q),Y0>=4){for(var J=0;J<=G;J++)V+=`
`;Y=K;break}break}if(Y!==K)break;continue}if(Y0<4)break;let B=0,j=0;var U=0;for(let F=Y;F<z&&j<4;F++){if($.charCodeAt(F)===w){var W=4-j%4;j+W>4&&(U=j+W-4),j+=W}else j++;B++}var X="";if(U>0)for(var H=0;H<U;H++)X+=" ";X+=$.slice(Y+B,z),V+=X+`
`,Y=a($,z)}for(;V.length>0&&V.charCodeAt(V.length-1)===T;)V=V.slice(0,-1);for(;V.length>0&&V.charCodeAt(V.length-1)===T;)V=V.slice(0,-1);return V?{node:{type:v.codeBlock,lang:void 0,text:V,infoString:void 0,attrs:void 0},end:Y}:null}function V5($,Q,Z,V){let Y=G0($,Q);if(_0($,Q,Y),Y0>3)return null;let G=Q+Q0;if($.charCodeAt(G)!==c)return null;let K="",q=Q,J,U=!1,W=!1,X=!1;for(;q<$.length;){let x=G0($,q);_0($,q,x);let X0=q+Q0;if($.charCodeAt(X0)===c){let V0=X0+1;var H=Y0+1,z=!1;if(V0<x){var B=$.charCodeAt(V0);B===N?(V0++,H++,z=!0):B===w&&(z=!0)}for(var j="",F=!1,A=V0;A<x;A++)if($.charCodeAt(A)===w){F=!0;break}if(F){var D=H;if(z&&V0<x&&$.charCodeAt(V0)===w){for(var M=4-D%4,y=0;y<M-1;y++)j+=" ";D+=M,V0++}for(var I=V0;I<x;I++)if($.charCodeAt(I)===w){for(var O=4-D%4,S=0;S<O;S++)j+=" ";D+=O}else j+=$[I],D++}else j=$.slice(V0,x);if(!K&&!J){let P=j.match(/^\[!([A-Za-z]+)\]\s*$/);if(P){J=P[1].toUpperCase(),q=a($,x);continue}}K+=j+`
`;var L=j.trimStart();L.startsWith("```")||L.startsWith("~~~")?X=!X:j.startsWith("    ")||j.startsWith("	")?X=!0:L.length>0&&!X&&(X=!1),W=L.length>0,q=a($,x)}else if(K&&!l0($,q,x)&&W){if(Y0<4){var R=q+Q0,b=R<x?$.charCodeAt(R):0;if(b===J9||b===c||b===s||b===A0||b===e||(b===p||b===B0||b===U0)&&T9($,q)||(b===p||b===B0||b===M9)&&R+1<x&&($.charCodeAt(R+1)===N||$.charCodeAt(R+1)===w))break;if(b>=o&&b<=i){for(var k=R;k<x&&$.charCodeAt(k)>=o&&$.charCodeAt(k)<=i;)k++;if(k<x&&($.charCodeAt(k)===d0||$.charCodeAt(k)===$9))break}}if(X)break;K+=$.slice(q,x)+`
`,U=!0,q=a($,x)}else break}if(!K&&!J)return null;var{inBlockQuote:g,g:E}=Z;Z.inBlockQuote=!0,U&&(Z.g=!0);let h=N9(K||"",Z,V);return Z.inBlockQuote=g,Z.g=E,{node:{type:v.blockQuote,children:h,alert:J||void 0},end:q}}function t6($,Q,Z){for(var V=0,Y=Q;Y<Z;Y++)$.charCodeAt(Y)===w?V+=4-V%4:V++;return V}function x9($,Q,Z){if(_0($,Q,Z),Y0>3)return null;var V=Q+Q0;if(V>=Z)return null;var Y=$.charCodeAt(V),G=Y0,K=V;if(Y===p||Y===B0||Y===M9){if(K=V+1,K<Z&&$.charCodeAt(K)!==N&&$.charCodeAt(K)!==w&&$.charCodeAt(K)!==T)return null}else if(Y>=o&&Y<=i){for(var q=V;q<Z&&q-V<9;){var J=$.charCodeAt(q);if(J<o||J>i)break;q++}if(q>V&&q<Z){var U=$.charCodeAt(q);if(U===d0||U===$9){if(K=q+1,K<Z&&$.charCodeAt(K)!==N&&$.charCodeAt(K)!==w&&$.charCodeAt(K)!==T)return null}else return null}else return null}else return null;var W=K,X=t6($,Q,K),H=0,z=W,B=X;if(W>=Z)return{ordered:Y>=o&&Y<=i,marker:Y>=o&&Y<=i?$[q]:$[V],start:Y>=o&&Y<=i?parseInt($.slice(V,q),10):void 0,contentStart:W,contentCol:X+1,markerCol:G,isEmpty:!0};for(;z<Z&&($.charCodeAt(z)===N||$.charCodeAt(z)===w);){if($.charCodeAt(z)===w){var j=4-B%4;B+=j}else B++;z++,H++}var F=z>=Z,A=B-X;return F||A>4?(B=X+1,z=W+1,H=1):H===0&&(B=X+1,z=W,H=1),{ordered:Y>=o&&Y<=i,marker:Y>=o&&Y<=i?$[q]:$[V],start:Y>=o&&Y<=i?parseInt($.slice(V,q),10):void 0,contentStart:z,contentCol:B,markerCol:G,isEmpty:F}}var A$=0;function Y5($,Q,Z,V){var Y=0,G=Q;for(A$=0;G<Z&&Y<V;){var K=$.charCodeAt(G);if(K===w){var q=4-Y%4;if(Y+q>V){A$=Y+q-V,G++,Y=V;break}Y+=q}else if(K===N)Y++;else break;G++}return G}function x6($,Q,Z,V){var Y=G0($,Q),G=x9($,Q,Y);if(!G)return null;var K=[],q=Q,J=G.contentCol,U="",W=G.isEmpty,X=!1,H=!1;if(!G.isEmpty){for(var z=!1,B=G.contentStart;B<Y;B++)if($.charCodeAt(B)===w){z=!0;break}if(z){var j="",F=t6($,Q,G.contentStart),A=F-G.contentCol;if(A>0)for(var D=0;D<A;D++)j+=" ";for(var M=G.contentStart;M<Y;M++)if($.charCodeAt(M)===w){for(var y=4-F%4,I=0;I<y;I++)j+=" ";F+=y}else j+=$[M],F++;U=j+`
`}else U=$.slice(G.contentStart,Y)+`
`}for(q=a($,Y);q<$.length;){var O=G0($,q);_0($,q,O);var S=$.charCodeAt(q+Q0);if(Y0<J&&(S===p||S===B0||S===U0)&&Y0<=3&&T9($,q))break;var L=x9($,q,O);if(L&&L.ordered===G.ordered&&L.marker===G.marker&&L.markerCol<J){K.push({contentCol:J,raw:U,hasBlankAfter:X,isEmpty:W}),X&&(H=!0),J=L.contentCol,W=L.isEmpty,X=!1,U=L.isEmpty?"":$.slice(L.contentStart,O)+`
`,q=a($,O);continue}if(l0($,q,O)){U+=`
`,q=a($,O);for(var R=!1,b=0;b<U.length;b++){var k=U.charCodeAt(b);if(k!==T&&k!==D9&&k!==N&&k!==w){R=!0;break}}if(W&&!R)if(q<$.length){var g=G0($,q),E=x9($,q,g);if(!E||E.ordered!==G.ordered||E.marker!==G.marker)break;X=!0}else break;if(q<$.length){var h=G0($,q);_0($,q,h);var C=$.charCodeAt(q+Q0);if((C===p||C===B0||C===U0)&&Y0<=3&&T9($,q))break;var x=x9($,q,h);if(x&&x.ordered===G.ordered&&x.marker===G.marker&&x.markerCol<J){X=!0;continue}if(!l0($,q,h)&&Y0<J)break}continue}if(Y0>=J){var X0=Y5($,q,O,J);if(A$>0){for(var V0="",P=J,u=0;u<A$;u++)V0+=" ",P++;for(var O0=X0;O0<O;O0++)if($.charCodeAt(O0)===w){for(var I0=4-P%4,P0=0;P0<I0;P0++)V0+=" ";P+=I0}else V0+=$[O0],P++;U+=V0+`
`}else U+=$.slice(X0,O)+`
`;q=a($,O);continue}for(var $0=!1,m=0;m<U.length;m++){var D0=U.charCodeAt(m);if(D0!==T&&D0!==D9&&D0!==N&&D0!==w){$0=!0;break}}if(!X&&$0&&!W){var n=q+Q0,Z0=$.charCodeAt(n),o0=Z0===J9||Z0===c||Z0===e||Z0===s||Z0===A0||(Z0===p||Z0===B0||Z0===U0||Z0===M9)&&(T9($,q)!==null||x9($,q,O)!==null)||Z0>=o&&Z0<=i&&x9($,q,O)!==null;if(!o0){U+=""+$.slice(n,O)+`
`,q=a($,O);continue}}break}if(K.push({contentCol:J,raw:U,hasBlankAfter:X,isEmpty:W}),K.length===0)return null;var K0=H;if(!K0)for(var M0=0;M0<K.length;M0++){if(K[M0].hasBlankAfter&&M0<K.length-1){K0=!0;break}if(!K[M0].isEmpty){for(var N0=K[M0].raw,t=N0.length,W0=0,_=!1,r=!1,w0=!1,R0=!1,Q9=0,S0=0,q0=-1;W0<t;){var f=N0.indexOf(`
`,W0);if(f<0&&(f=t),R0){_0(N0,W0,f);for(var L0=N0.slice(W0+Q0,f),z0=0;z0<L0.length&&L0.charCodeAt(z0)===Q9;)z0++;z0>=S0&&L0.slice(z0).trim()===""&&(R0=!1),W0=f<t?f+1:t;continue}if(l0(N0,W0,f)){q0>=0?w0=!0:_&&(r=!0),W0=f<t?f+1:t;continue}if(_0(N0,W0,f),q0>=0){if(Y0>=q0){W0=f<t?f+1:t;continue}var U9=x9(N0,W0,f);if(U9&&U9.markerCol<q0&&U9.contentCol<=q0){W0=f<t?f+1:t;continue}if(U9){W0=f<t?f+1:t;continue}q0=-1,w0&&(r=!0,w0=!1)}var l9=N0.slice(W0+Q0,f),P9=l9.charCodeAt(0);if((P9===s||P9===A0)&&Y0<=3){for(var z9=0;z9<l9.length&&l9.charCodeAt(z9)===P9;)z9++;if(z9>=3){if(r&&_){K0=!0;break}R0=!0,Q9=P9,S0=z9,_=!0,W0=f<t?f+1:t;continue}}var F9=Y0<=3?x9(N0,W0,f):null;if(F9&&_){if(r){K0=!0;break}q0=F9.contentCol,w0=!1,W0=f<t?f+1:t,_=!0;continue}if(r){K0=!0;break}_=!0,W0=f<t?f+1:t}if(K0)break}}for(var H9=[],f9=0;f9<K.length;f9++){for(var Q$=K[f9],O9=Q$.raw,V9=O9.length;V9>0&&O9.charCodeAt(V9-1)===T;)V9--;var Y9=V9<O9.length?O9.slice(0,V9):O9,G9=null;if(Y9.length>=3&&Y9.charCodeAt(0)===H0){var s0=Y9[1];(s0===" "||s0==="x"||s0==="X")&&Y9.charCodeAt(2)===p0&&(G9={type:v.gfmTask,completed:s0==="x"||s0==="X"},Y9=Y9.slice(3))}var y0;if(Q$.isEmpty&&Y9.trim()==="")y0=[];else if(K0){var w9=Z.inList;Z.inList=!0,y0=N9(Y9,Z,V),Z.inList=w9}else{var X9=Z.inList;if(Z.inList=!0,y0=N9(Y9,Z,V),Z.inList=X9,y0.length===1&&y0[0].type===v.paragraph)y0=y0[0].children;else{for(var K9=[],R9=0;R9<y0.length;R9++)if(y0[R9].type===v.paragraph)for(var r9=y0[R9].children,q9=0;q9<r9.length;q9++)K9.push(r9[q9]);else K9.push(y0[R9]);y0=K9}}G9?H9.push([G9,{type:v.text,text:" "},...y0]):H9.push(y0)}return{node:{type:G.ordered?v.orderedList:v.unorderedList,start:G.ordered?G.start:void 0,items:H9},end:q}}var _$=new Set(["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]);function v9($,Q,Z){let V={};for(let[K,q]of Object.entries($)){let J=K,U=K.toLowerCase();if(U==="style"&&typeof q=="string"){let W={},X=[],H=0,z=0;for(let j=0;j<q.length;j++){let F=q.charCodeAt(j);F===e0?H++:F===$9?H--:F===C$&&H===0&&(X.push(q.slice(z,j)),z=j+1)}z<q.length&&X.push(q.slice(z));let B=!1;X.forEach(j=>{let F=j.indexOf(":");if(F===-1)return;let A=j.slice(0,F).trim(),D=j.slice(F+1).trim();if(A&&D){if(/url\s*\(\s*(javascript|vbscript|data:(?!image\/))/i.test(D)){B=!0;return}let M=A.indexOf("-")!==-1?A.replace(/-([a-z])/g,(y,I)=>I.toUpperCase()):A;W[M]=D}}),!B&&Object.keys(W).length>0&&(V[J]=W)}else if((U==="href"||U==="src")&&Z?.sanitizer){let W=Z.sanitizer(q,Q,U);W!==null&&(V[J]=W)}else if(q==="")V[J]=!0;else if(q.length>=2&&q.charCodeAt(0)===S9&&q.charCodeAt(q.length-1)===D$){var Y=q.slice(1,-1);if(Y.length>0){var G=Y.charCodeAt(0);if(G===H0||G===S9)try{V[J]=JSON.parse(Y);continue}catch{}}if(Y==="true"){V[J]=!0;continue}if(Y==="false"){V[J]=!1;continue}if(Z?.evalUnserializableExpressions)try{V[J]=(0,eval)("("+Y+")");continue}catch{}V[J]=Y}else V[J]=q}return V}function E9($,Q,Z){let V=Q.length;if(V===0)return Z;var Y=Q.charCodeAt(0),G=Y>=d&&Y<=l||Y>=J0&&Y<=F0;if(!G){for(var K=String.fromCharCode(Y),q=$.length-V,J=Z;J<=q;){var U=$.indexOf(K,J);if(U===-1||U>q)return-1;for(var W=!0,X=1;X<V;X++){var H=$.charCodeAt(U+X),z=Q.charCodeAt(X);if(H>=d&&H<=l&&(H+=n0),z>=d&&z<=l&&(z+=n0),H!==z){W=!1;break}}if(W)return U;J=U+1}return-1}Y>=d&&Y<=l&&(Y+=n0);for(let j=Z;j<=$.length-V;j++){var B=$.charCodeAt(j);if(B>=d&&B<=l&&(B+=n0),B!==Y)continue;let F=!0;for(let A=1;A<V;A++){let D=$.charCodeAt(j+A),M=Q.charCodeAt(A);if(D>=d&&D<=l&&(D+=n0),M>=d&&M<=l&&(M+=n0),D!==M){F=!1;break}}if(F)return j}return-1}function G5($,Q,Z){let V=Q.length;var Y=Q.charCodeAt(0);Y>=d&&Y<=l&&(Y+=n0);for(let K=Math.min(Z,$.length-V);K>=0;K--){var G=$.charCodeAt(K);if(G>=d&&G<=l&&(G+=n0),G!==Y)continue;let q=!0;for(let J=1;J<V;J++){let U=$.charCodeAt(K+J),W=Q.charCodeAt(J);if(U>=d&&U<=l&&(U+=n0),W>=d&&W<=l&&(W+=n0),U!==W){q=!1;break}}if(q)return K}return-1}var v$=-1;function l$($,Q,Z){let V=Z.toLowerCase(),Y="<"+V,G="</"+V,K=1,q=Q,J=$.length;for(v$=-1;q<J&&K>0;){let X=E9($,Y,q),H=E9($,G,q);if(H===-1)return-1;if(X!==-1&&X<H){let z=I9($,X);z?(z.tag.toLowerCase()===V&&!z.isClosing&&!z.selfClosing&&!d9(z.tag)&&K++,q=z.end):q=X+1}else{var U=H+G.length,W=U<J?$.charCodeAt(U):62;if((W===c||W===N||W===w||W===T)&&(K--,K===0)){v$=H;let z=H+G.length;for(;z<J&&$.charCodeAt(z)!==c;)z++;return z+1}q=H+1}}return-1}function e6($,Q,Z,V){if(V.ignoreHTMLBlocks||V.disableParsingRawHTML)return null;var Y=G0($,Q);if(_0($,Q,Y),Y0>3&&!Z.inHTML)return null;var G=Q+Q0;if($.charCodeAt(G)!==e)return null;var K=$.indexOf(">",G+1);if(K!==-1&&K<Y){var q=$.slice(G+1,K);if(/^[a-zA-Z][a-zA-Z0-9+.-]*:/.test(q)||/^[^\s@]+@[^\s@]+$/.test(q))return null}var J=K5($,G);if(J>=1&&J<=5){var U=$.length;if(J===1){for(var W=$.length,X=0;X<c$.length;X++){var H=E9($,"</"+c$[X]+">",G);H>=0&&H<W&&(W=H)}if(W<$.length){var z=$.indexOf(">",W);U=z>=0?a($,z+1):$.length}}else{var B=J===2?"-->":J===3?"?>":J===4?">":"]]>",j=$.indexOf(B,G);j>=0&&(U=a($,j+B.length))}var F=$.slice(G,U);if(J>=2)return{node:{type:v.htmlComment,text:F,h:!1,raw:!0,endPos:U},end:U};var A="div",D=F.match(/^<\/?([a-zA-Z][a-zA-Z0-9-]*)/);D&&(A=D[1]);var M=I9($,G),y={},I;M&&!M.isClosing&&(y=v9(M.attrs,A,V),I=M.whitespaceBeforeAttrs+M.rawAttrs);var O=[],S=A.toLowerCase(),L="</"+S,R=E9(F,L,0),b=F,k="";if(M&&M.isClosing)for(b=F.slice(M.end-G);b.length>0&&b.charCodeAt(b.length-1)===T;)b=b.slice(0,-1);else if(M&&!M.isClosing){var g=M.end-G;if(R!==-1)for(b=F.slice(g),b.charCodeAt(0)===T&&(b=b.slice(1));b.length>0&&b.charCodeAt(b.length-1)===T;)b=b.slice(0,-1);else for(b=F;b.length>0&&b.charCodeAt(b.length-1)===T;)b=b.slice(0,-1);if(R!==-1){var E=F.slice(g,R);k=E.trim()}}var h=M?M.isClosing:!1;return{node:{type:v.htmlBlock,tag:A,attrs:y,f:I,children:O,a:b,text:k,c:!0,b:h,endPos:U,e:!0},end:U}}if(J===6||J===7){var C=g6($,Q),x=C<$.length?C:$.length,X0=$.slice(G,x),V0=C<$.length?a($,C):$.length,P=I9($,G);if(P){var u=P.tag,O0=u.toLowerCase(),I0=P.isClosing;if(I0){var P0=$.slice(P.end,x);return{node:{type:v.htmlBlock,tag:u,attrs:{},children:[],a:P0,text:P0,c:!0,b:!0,endPos:x,e:J===6},end:V0}}if(P.selfClosing||d9(u))return{node:{type:v.htmlBlock,tag:u,attrs:v9(P.attrs,u,V),f:P.whitespaceBeforeAttrs+P.rawAttrs,children:[],a:"",text:"",c:!1,b:!1,endPos:P.end,e:J===6},end:P.end<$.length&&$.charCodeAt(P.end)===T?P.end+1:P.end};var $0=Z.d||0,m=$.slice(G,x),D0=-1,n=-1;if($0<10){for(var Z0="</"+O0,o0=P.end-G,K0=1,M0=o0;M0<m.length&&K0>0;){var N0=E9(m,"<"+O0,M0),t=E9(m,Z0,M0);if(t===-1)break;if(N0!==-1&&N0<t){var W0=N0+O0.length+1;if(W0<m.length){var _=m.charCodeAt(W0);(_===N||_===w||_===T||_===c||_===j0)&&K0++}M0=N0+1}else{var r=t+Z0.length;if(r<m.length){var w0=m.charCodeAt(r);if((w0===c||w0===N||w0===w||w0===T)&&(K0--,K0===0)){D0=t;for(var R0=r;R0<m.length&&m.charCodeAt(R0)!==c;)R0++;n=R0+1;break}}else if(K0--,K0===0){D0=t,n=m.length;break}M0=t+1}}var Q9=!1;if(D0===-1&&J===6&&!P.isClosing){var S0=l$($,P.end,O0);if(S0!==-1){for(var q0=v$,f=P.end,L0=!1,z0=!1,U9=!1,l9=0,P9=!1,z9=!1,F9=f;F9<q0;){var H9=$.charCodeAt(F9);if(H9===T)z9&&(L0=!0),P9||l9++,z9=!0,F9++;else if(H9===N||H9===w)F9++;else{if(!P9&&(P9=!0,l9>=2&&H9===e)){U9=!0;break}if(z9=!1,H9===e){var f9=$.charCodeAt(F9+1)|32;if((f9===O$||f9===f$||f9===h9)&&(R6.lastIndex=F9,R6.test($))){z0=!0;break}}F9++}}if(L0&&!U9&&!z0){var Q$=G0($,S0);x=Q$,V0=a($,Q$),m=$.slice(G,x),X0=$.slice(G,x),D0=q0-G,n=S0-G,Q9=!0}}}}var O9=P.rawAttrs.indexOf(`
`)!==-1||P.whitespaceBeforeAttrs.indexOf(`
`)!==-1,V9=!1;if(D0!==-1){var Y9=m.slice(n).trim();V9=Y9.length===0}var G9=!1,s0=x,y0=V0;if(D0!==-1){var w9=G+n,X9=G0($,w9-1);if(w9<X9){for(var K9=w9;K9<X9&&($.charCodeAt(K9)===N||$.charCodeAt(K9)===w);)K9++;if(K9<X9&&$.charCodeAt(K9)===e){var R9=I9($,K9);R9&&!R9.isClosing&&(G9=!0,s0=w9,y0=w9,V9=!0)}}if(!G9){var r9=a($,X9);if(r9<x){for(var q9=r9;q9<x&&($.charCodeAt(q9)===N||$.charCodeAt(q9)===w);)q9++;if(q9<x&&$.charCodeAt(q9)===e){var qZ=I9($,q9);qZ&&(G9=!0,s0=X9,y0=r9,V9=!0)}}}if(!G9&&Z.inHTML){G9=!0,s0=X9,y0=a($,X9);var JZ=$.slice(w9,X9).trim();V9=JZ.length===0}}var o9=[],t0="";if(D0!==-1){t0=m.slice(P.end-G,D0);var y9=t0.trim();if(y9){var{inline:UZ,inHTML:FZ,d:XZ}=Z;Z.inHTML=!0,Z.d=$0+1;var WZ=O0==="p";if(WZ)Z.inline=!0,o9=h0(y9,0,y9.length,Z,V);else{var n$=t0.indexOf(`

`)!==-1,s$=y6.test(y9),R$=k6.test(y9),zZ=n$||s$||Z.inHTML&&R$,HZ=t0.length>=2&&t0.charCodeAt(0)===T&&t0.charCodeAt(t0.length-1)===T&&!n$;HZ&&!s$&&!R$?o9=[{type:v.text,text:y9}]:zZ||R$?(Z.inline=!1,o9=N9(t0,Z,V)):(Z.inline=!0,o9=h0(y9,0,y9.length,Z,V))}Z.inline=UZ,Z.inHTML=FZ,Z.d=XZ}}var t$=!1;if(J===6&&D0!==-1&&!Z.inHTML&&!O9){var y$=t0,OZ=/<[a-zA-Z][^>]*>/.test(y$),DZ=/\n\n/.test(y$)||/^(\s{0,3}#[#\s]|\s{0,3}[-*+]\s|\s{0,3}\d+\.\s|\s{0,3}>\s|\s{0,3}```)/m.test(y$);OZ&&!DZ&&(t$=!0)}var BZ=!Q9&&(Z.inHTML||J===7||O9||!V9||t$);if(BZ){var i0,e$=!1;if(D0!==-1&&G9){var $6=!1;if(Z.inHTML&&n<m.length){for(var X$=n;X$<m.length&&m.charCodeAt(X$)!==T;)X$++;var k$=m.slice(n,X$).trim();$6=k$.length>1&&k$.charCodeAt(0)===e&&k$.charCodeAt(1)!==j0}i0=$6?m.slice(P.end-G):t0,e$=!0}else(J===7||Z.inHTML)&&D0!==-1?(i0=m.slice(P.end-G),i0.charCodeAt(0)===T&&(i0=i0.slice(1))):G9?i0=$.slice(G,s0):O9?i0=X0:(i0=m.slice(P.end-G),i0.charCodeAt(0)===T&&(i0=i0.slice(1)));var Z6={type:v.htmlBlock,tag:u,attrs:v9(P.attrs,u,V),f:P.whitespaceBeforeAttrs+P.rawAttrs,children:o9,a:i0,text:i0,c:!0,b:!1,endPos:s0,e:J===6};return e$&&(Z6.l=!0),{node:Z6,end:y0}}return{node:{type:v.htmlBlock,tag:u,attrs:v9(P.attrs,u,V),f:P.whitespaceBeforeAttrs+P.rawAttrs,children:o9,a:Q9?"":t0,text:t0,c:!1,b:!1,endPos:s0,e:J===6},end:y0}}var W$=X0.match(/^<(\/?)([a-zA-Z][a-zA-Z0-9-]*)/),jZ=W$?W$[2]:"div",Q6=W$?W$[1]==="/":!1,L$=X0;if(Q6){var V6=X0.indexOf(">");V6!==-1&&(L$=X0.slice(V6+1))}return{node:{type:v.htmlBlock,tag:jZ,attrs:{},children:[],a:L$,text:L$,c:!0,b:Q6,endPos:x,e:J===6},end:V0}}var x0=I9($,G);if(!x0)return null;var k9=x0.tag,S$=k9.toLowerCase(),Y6=k9.charCodeAt(0),z$=Y6>=d&&Y6<=l;if(!z$&&!_$.has(S$)&&!F$.has(S$)&&!S$.includes("-"))return null;if(x0.isClosing)return{node:{type:v.htmlSelfClosing,tag:k9,attrs:{},a:$.slice(G,x0.end),b:!0,endPos:x0.end},end:x0.end};var y5=!0,C9=l$($,x0.end,k9),V$=[];if(C9!==-1){var MZ=v$,H$=$.slice(x0.end,MZ),Y$=H$.trim();if(Y$){var AZ=H$.indexOf(`

`)!==-1,_Z=y6.test(Y$),vZ=k6.test(Y$),IZ=Z.inline,NZ=Z.inHTML,bZ=Z.d;Z.inHTML=!0,Z.d=(Z.d||0)+1,AZ||_Z||vZ?(Z.inline=!1,V$=N9(H$,Z,V)):(Z.inline=!0,V$=h0(Y$,0,Y$.length,Z,V)),Z.inline=IZ,Z.inHTML=NZ,Z.d=bZ}var PZ=G0($,C9),wZ=$.slice(C9,PZ).trim(),g$=wZ?C9:a($,C9),G6=z$?$.slice(G,C9):$.slice(G,g$),RZ=z$?C9:g$;return{node:{type:v.htmlBlock,tag:k9,attrs:v9(x0.attrs,k9,V),f:x0.whitespaceBeforeAttrs+x0.rawAttrs,children:V$,a:G6,text:z$?H$:G6,c:!0,b:!1,endPos:RZ,e:!1},end:g$}}var i9=g6($,x0.end),yZ=i9<$.length?a($,i9):i9,x$=$.slice(x0.end,i9);if(x$.trim()){var{inline:kZ,inHTML:LZ,d:SZ}=Z;Z.inline=!1,Z.inHTML=!0,Z.d=(Z.d||0)+1,V$=N9(x$,Z,V),Z.inline=kZ,Z.inHTML=LZ,Z.d=SZ}var gZ=$.slice(x0.end,i9);return{node:{type:v.htmlBlock,tag:k9,attrs:v9(x0.attrs,k9,V),f:x0.whitespaceBeforeAttrs+x0.rawAttrs,children:V$,a:gZ,text:x$,c:!0,b:!1,endPos:i9,e:!1},end:yZ}}function K5($,Q){if($.charCodeAt(Q)!==e)return 0;var Z=Q+1,V=$.length;if($.charCodeAt(Z)===E0&&$.charCodeAt(Z+1)===p&&$.charCodeAt(Z+2)===p)return 2;if($.charCodeAt(Z)===a9)return 3;if($.charCodeAt(Z)===E0){var Y=$.charCodeAt(Z+1);if(Y>=d&&Y<=l)return 4;if($.slice(Z+1,Z+8)==="[CDATA[")return 5}for(var G=$.charCodeAt(Z)===j0,K=G?Z+1:Z,q=K;q<V;){var J=$.charCodeAt(q);if(J>=d&&J<=l||J>=J0&&J<=F0||J>=o&&J<=i||J===p)q++;else break}if(q===K)return 0;var U=$.slice(K,q);if(F$.has(U.toLowerCase())){if(G)return 0;var W=$.charCodeAt(q);return W===N||W===w||W===c||W===T||q>=V?1:0}if(_$.has(U.toLowerCase())){if(G){for(var X=q;X<V&&($.charCodeAt(X)===N||$.charCodeAt(X)===w);)X++;return X<V&&$.charCodeAt(X)===c?6:0}var H=q<V?$.charCodeAt(q):-1;return H===N||H===w||H===c||H===T||H===j0||H===-1?6:0}if(G){for(var F=q;F<V&&($.charCodeAt(F)===N||$.charCodeAt(F)===w);)F++;if(F<V&&$.charCodeAt(F)===c){var A=G0($,Q),D=$.slice(F+1,A).trim();if(D==="")return 7}}else{var z=G0($,Q),B=I9($,Q);if(B&&B.end<=z){var j=$.slice(B.end,z).trim();if(j==="")return 7}}return 0}function E6($,Q,Z){for(var V=0,Y=$.length;V<Y&&($.charCodeAt(V)===N||$.charCodeAt(V)===w);)V++;for(;Y>V&&($.charCodeAt(Y-1)===N||$.charCodeAt(Y-1)===w);)Y--;V<Y&&$.charCodeAt(V)===b0&&V++,Y>V&&$.charCodeAt(Y-1)===b0&&(Y-2<V||$.charCodeAt(Y-2)!==v0)&&Y--;for(var G=[],K=V,q=!1,J=[],U=V;U<Y;){var W=$.charCodeAt(U);if(W===v0&&U+1<Y){$.charCodeAt(U+1)===b0?(q||(q=!0,J=[]),J.push($.slice(K,U)),J.push("|"),U+=2,K=U):U+=2;continue}if(W===s){for(var X=0;U<Y&&$.charCodeAt(U)===s;)X++,U++;for(var H=!1;U<Y&&!H;){for(var z=0;U<Y&&$.charCodeAt(U)===s;)z++,U++;z===X?H=!0:z===0&&U++}continue}if(W===b0){var B=q?(J.push($.slice(K,U)),J.join("")):$.slice(K,U);G.push(B.trim()),U++,K=U,q=!1,J=[];continue}U++}var j=q?(J.push($.slice(K,Y)),J.join("")):$.slice(K,Y);return G.push(j.trim()),G.map(function(F){var A=F.indexOf("\\|")!==-1?F.replace(/\\\|/g,"|"):F;return h0(A,0,A.length,Q,Z)})}function T6($,Q,Z,V){let Y=G0($,Q);var G=$.indexOf("|",Q);if(G<0||G>=Y)return null;let K=a($,Y);if(K>=$.length)return null;let q=G0($,K);if(!l6($,K,q))return null;let J=$.slice(Q,Y),U=$.slice(K,q);for(var W=[],X=0,H=U.length;X<H&&(U.charCodeAt(X)===N||U.charCodeAt(X)===w);)X++;for(X<H&&U.charCodeAt(X)===b0&&X++;X<H;){for(;X<H&&(U.charCodeAt(X)===N||U.charCodeAt(X)===w);)X++;if(X>=H||U.charCodeAt(X)===b0)break;var z=U.charCodeAt(X)===T0;for(z&&X++;X<H&&U.charCodeAt(X)===p;)X++;var B=X<H&&U.charCodeAt(X)===T0;for(B&&X++,W.push(z&&B?"center":B?"right":z?"left":null);X<H&&(U.charCodeAt(X)===N||U.charCodeAt(X)===w);)X++;X<H&&U.charCodeAt(X)===b0&&X++}let j=E6(J,Z,V);if(W.length!==j.length)return null;let F=[],A=a($,q);for(;A<$.length;){let S=G0($,A),L=$.slice(A,S);if(l0($,A,S))break;if(_0($,A,S),Y0<4){var D=$.charCodeAt(A+Q0);if(D===c||D===J9||(D===p||D===B0||D===U0)&&T9($,A))break;if(D===s||D===A0){for(var M=A+Q0,y=0;M<S&&$.charCodeAt(M)===D;)y++,M++;if(y>=3)break}}F.push(E6(L,Z,V)),A=a($,S)}if((V.streaming||V.optimizeForStreaming)&&F.length===0)return null;for(var I=j.length,O=0;O<F.length;O++)if(F[O].length<I)for(;F[O].length<I;)F[O].push([]);else F[O].length>I&&(F[O].length=I);return{node:{type:v.table,header:j,cells:F,align:W},end:A}}function q5($,Q,Z){var V=G0($,Q);if(_0($,Q,V),Y0>3)return null;var Y=Q+Q0;if($.charCodeAt(Y)!==H0)return null;if(Y+1<$.length&&$.charCodeAt(Y+1)===a0){var G=J5($,Y,Z);return G||null}Z.refs||(Z.refs={});var K=o6($,Y,Z.refs);return K===null?null:{node:{type:v.refCollection},end:K}}function J5($,Q,Z){var V=$.length;if($.charCodeAt(Q)!==H0||Q+1>=V||$.charCodeAt(Q+1)!==a0)return null;for(var Y=Q+2,G=Y;Y<V&&$.charCodeAt(Y)!==p0;){if($.charCodeAt(Y)===T)return null;Y++}if(Y>=V)return null;var K=("^"+$.slice(G,Y)).toLowerCase();if(Y++,Y>=V||$.charCodeAt(Y)!==T0)return null;for(Y++;Y<V&&($.charCodeAt(Y)===N||$.charCodeAt(Y)===w);)Y++;if(Y<V&&$.charCodeAt(Y)===T)for(Y++;Y<V&&($.charCodeAt(Y)===N||$.charCodeAt(Y)===w);)Y++;var q=$.indexOf(`
`,Y);q<0&&(q=V);for(var J=$.slice(Y,q).trim(),U=q<V?q+1:V;U<V;){var W=G0($,U);if(_0($,U,W),Y0>=2&&!l0($,U,W))J+=`
`+$.slice(U,W),U=a($,W);else if(l0($,U,W)){var X=a($,W);if(X<V){var H=G0($,X);if(_0($,X,H),Y0>=2){J+=`
`,U=a($,W);continue}}break}else break}return Z.refs[K]||(Z.refs[K]={target:J,title:void 0}),{node:{type:v.footnote},end:U}}function U5($,Q,Z,V){let Y=Q,G=0,K=0,q=-1;for(;Y<$.length;){let k=q>=0?q:G0($,Y);if(q=-1,l0($,Y,k))break;if(_0($,Y,k),Y0<4&&K>0&&!Z.g){let E=$.charCodeAt(Y+Q0);if(E===C0||E===p){let h=Y+Q0;for(;h<k&&$.charCodeAt(h)===E;)h++;for(;h<k&&($.charCodeAt(h)===N||$.charCodeAt(h)===w);)h++;if(h>=k){G=E===C0?1:2,Y=a($,k);break}}}K=k;let g=a($,k);if(g<$.length){if($.charCodeAt(g)===n9){var J=G0($,g);Y=a($,J),K=J;continue}let E=G0($,g);if(q=E,_0($,g,E),Y0<4){let h=$.charCodeAt(g+Q0);if(h===c){Y=g;break}if(h===J9&&s6($,g,Z,V)){Y=g;break}if(h===s||h===A0){for(var U=g+Q0,W=0;U<E&&$.charCodeAt(U)===h;)W++,U++;if(W>=3){Y=g;break}}if(h===e){var X=g+Q0+1,H=X<E?$.charCodeAt(X):0,z=H===E0||H===a9;if(!z&&H===j0){for(var B=X+1,j=B;j<E&&($.charCodeAt(j)>=d&&$.charCodeAt(j)<=l||$.charCodeAt(j)>=J0&&$.charCodeAt(j)<=F0||$.charCodeAt(j)>=o&&$.charCodeAt(j)<=i||$.charCodeAt(j)===p);)j++;j>B&&(z=_$.has($.slice(B,j).toLowerCase()))}else if(!z){for(var F=X;F<E&&($.charCodeAt(F)>=d&&$.charCodeAt(F)<=l||$.charCodeAt(F)>=J0&&$.charCodeAt(F)<=F0||$.charCodeAt(F)>=o&&$.charCodeAt(F)<=i||$.charCodeAt(F)===p);)F++;if(F>X){var A=$.slice(X,F).toLowerCase();z=_$.has(A)||F$.has(A)}}if(z&&e6($,g,Z,V)){Y=g;break}}if(h===p||h===B0||h===M9){let C=g+Q0+1;if(C<E&&($.charCodeAt(C)===N||$.charCodeAt(C)===w)){var D=U$($,C,E);if(D<E&&!T9($,g)){Y=g;break}}}if(h>=o&&h<=i){let C=g+Q0;for(;C<E&&$.charCodeAt(C)>=o&&$.charCodeAt(C)<=i;)C++;if(C<E&&($.charCodeAt(C)===d0||$.charCodeAt(C)===$9)&&C-(g+Q0)===1&&$.charCodeAt(g+Q0)===49){var M=C+1;if(M<E&&($.charCodeAt(M)===N||$.charCodeAt(M)===w)){var y=U$($,M,E);if(y<E){Y=g;break}}}}if(h===b0){let C=a($,E);if(C<$.length){let x=G0($,C);if(l6($,C,x)){Y=g;break}}}if((h===p||h===B0||h===U0)&&T9($,g)){if(h!==p){Y=g;break}let C=0,x=g+Q0;for(;x<E&&$.charCodeAt(x)===p;)C++,x++;for(;x<E&&($.charCodeAt(x)===N||$.charCodeAt(x)===w);)x++;if(x<E){Y=g;break}}}}Y=a($,k)}for(var I=G?K:Y;I>Q&&($.charCodeAt(I-1)===T||$.charCodeAt(I-1)===D9||$.charCodeAt(I-1)===N||$.charCodeAt(I-1)===w);)I--;for(var O=Q;O<I&&($.charCodeAt(O)===N||$.charCodeAt(O)===w);)O++;if(O>=I)return null;for(var S=!1,L=O;L<I;L++)if($.charCodeAt(L)===n9){S=!0;break}var R=S?$.slice(O,I).replace(/\u001E/g,""):$.slice(O,I);if(!R)return null;let b=F5(R,0,R.length,Z,V);if(G){let g=(V?.slugify||g0)(R);return{node:{type:v.heading,level:G,children:b,id:g},end:Y}}return{node:{type:v.paragraph,children:b},end:Y}}function F5($,Q,Z,V,Y){var G=$.indexOf(`
`,Q);if(G<0||G>=Z)return h0($,Q,Z,V,Y);for(var K="",q=Q,J=Q;J<Z;){var U=$.charCodeAt(J);if(U===s){var W=N$($,J,Z);if(W>J){for(var X=!1,H=J;H<W;H++)if($.charCodeAt(H)===T){X=!0;break}X&&(K+=$.slice(q,J),K+=$.slice(J,W).replace(/\n/g," "),q=W),J=W;continue}}if(U===e){var z=$Z($,J,Z);if(z>J){J=z;continue}}if(U===T){var B=!1,j=0;if(J>Q&&$.charCodeAt(J-1)===v0)B=!0,j=1;else{for(var F=0,A=J-1;A>=Q&&$.charCodeAt(A)===N;)F++,A--;F>=2&&(B=!0,j=F)}if(B)K+=$.slice(q,J-j),K+="";else{for(var D=J;D>q&&$.charCodeAt(D-1)===N;)D--;K+=$.slice(q,D)+`
`}for(J++;J<Z&&$.charCodeAt(J)===N;)J++;q=J;continue}J++}return q<Z&&(K+=$.slice(q,Z)),h0(K,0,K.length,V,Y)}function X5($,Q,Z){if($.charCodeAt(Q)!==s)return null;let V=b9($,Q,Z,96),Y=Q+V;for(;Y<Z;){let G=$.indexOf("`",Y);if(G<0||G>=Z)return null;let K=b9($,G,Z,96);if(K===V){let q=$.slice(Q+V,G);return q=q.replace(/\n/g," "),q.length>0&&q[0]===" "&&q[q.length-1]===" "&&q.trim().length>0&&(q=q.slice(1,-1)),{node:{type:v.codeInline,text:q},end:G+K}}Y=G+K}return null}function N$($,Q,Z){if($.charCodeAt(Q)!==s)return Q;let V=b9($,Q,Z,96),Y=Q+V;for(;Y<Z;){let G=$.indexOf("`",Y);if(G<0||G>=Z)return Q;let K=b9($,G,Z,96);if(K===V)return G+K;Y=G+K}return Q}function $Z($,Q,Z){if($.charCodeAt(Q)!==e)return Q;if(Q+1<Z&&$.charCodeAt(Q+1)===j0){let U=Q+2;for(;U<Z&&$.charCodeAt(U)!==c;)U++;return U<Z?U+1:Q}if(Q+3<Z&&$.charCodeAt(Q+1)===E0&&$.charCodeAt(Q+2)===p&&$.charCodeAt(Q+3)===p){let U=$.indexOf("-->",Q+4);return U>=0?U+3:Q}let V=Q+1,Y=V;for(;V<Z;){let U=$.charCodeAt(V);if(U>=d&&U<=l||U>=J0&&U<=F0||U>=o&&U<=i||U===p)V++;else break}if(V===Y)return Q;let G=$.slice(Y,V).toLowerCase(),K=!1;for(;V<Z;){let U=$.charCodeAt(V);if(U===c){V++;break}if(U===j0&&V+1<Z&&$.charCodeAt(V+1)===c){V+=2,K=!0;break}if(U===j9||U===L9){var q=U;for(V++;V<Z&&$.charCodeAt(V)!==q;)V++;V<Z&&V++;continue}if(U===T)return Q;V++}if(K||d9(G))return V;let J=1;for(;V<Z&&J>0;)if($.charCodeAt(V)===e)if(V+1<Z&&$.charCodeAt(V+1)===j0){let U=V+2,W=U;for(;W<Z&&($.charCodeAt(W)>=d&&$.charCodeAt(W)<=l||$.charCodeAt(W)>=J0&&$.charCodeAt(W)<=F0);)W++;if($.slice(U,W).toLowerCase()===G){for(;W<Z&&$.charCodeAt(W)!==c;)W++;if(W<Z&&W++,J--,J===0)return W}V=W}else{let U=V+1,W=U;for(;W<Z&&($.charCodeAt(W)>=d&&$.charCodeAt(W)<=l||$.charCodeAt(W)>=J0&&$.charCodeAt(W)<=F0);)W++;$.slice(U,W).toLowerCase()===G&&J++,V++}else V++;return V}function W5($,Q,Z,V,Y){if($.charCodeAt(Q)!==A0||Q+1>=Z||$.charCodeAt(Q+1)!==A0)return null;let G=Q+2;for(;G+1<Z;){let K=$.charCodeAt(G);if(K===s){let q=N$($,G,Z);if(q>G){G=q;continue}}if(K===A0&&$.charCodeAt(G+1)===A0){let q=$.slice(Q+2,G),J=h0(q,0,q.length,V,Y);return{node:{type:v.textFormatted,tag:"del",children:J},end:G+2}}K===v0&&G+1<Z&&G++,G++}return null}function z5($,Q,Z,V,Y){if($.charCodeAt(Q)!==C0||Q+1>=Z||$.charCodeAt(Q+1)!==C0)return null;let G=Q+2;for(;G+1<Z;){let K=$.charCodeAt(G);if(K===s){let q=N$($,G,Z);if(q>G){G=q;continue}}if(K===C0&&$.charCodeAt(G+1)===C0&&G>Q+2){let q=$.slice(Q+2,G),J=h0(q,0,q.length,V,Y);return{node:{type:v.textFormatted,tag:"mark",children:J},end:G+2}}K===v0&&G+1<Z&&G++,G++}return null}function f6($,Q,Z){return $<s9?!!(o$($)&p9):v6.test(Q[Z])}function C6($,Q,Z){return $<s9?!!(o$($)&A9):I6.test(Q[Z])}function H5($,Q,Z){var V=$.charCodeAt(Q);if(V!==B0&&V!==U0)return null;var Y=b9($,Q,Z,V);if(Y===0)return null;var G=Q>0?$.charCodeAt(Q-1):32,K=Q+Y<Z?$.charCodeAt(Q+Y):32,q=C6(G,$,Q-1),J=C6(K,$,Q+Y),U=Q>0?f6(G,$,Q-1):!1,W=Q+Y<Z?f6(K,$,Q+Y):!1,X=!J&&(!W||q||U),H=!q&&(!U||J||W),z,B;return V===B0?(z=X,B=H):(z=X&&(!H||U),B=H&&(!X||W)),{len:Y,canOpen:z,canClose:B}}function O5($,Q,Z,V){if(Q.length!==0){for(var Y=[],G=0;G<12;G++)Y[G]=-1;for(var K=0;K<Q.length;){var q=Q[K];if(!q.active||!q.canClose){K++;continue}for(var J=q.ch===B0?0:1,U=J*6+q.len%3*2+(q.canOpen?1:0),W=Y[U]!==void 0?Y[U]:-1,X=-1,H=K-1;H>W;H--){var z=Q[H];if(!(!z.active||z.ch!==q.ch||!z.canOpen)&&!((q.canOpen||z.canClose)&&(z.len+q.len)%3===0&&z.len%3!==0)){X=H;break}}if(X<0){Y[U]=K-1,!q.canOpen&&(q.active=!1),K++;continue}var B=Q[X],j=B.len>=2&&q.len>=2,F=j?2:1;B.len-=F,q.len-=F;var A=$[B.idx],D=$[q.idx];A.text=A.text.slice(0,A.text.length-F),D.text=D.text.slice(F);var M=B.idx+1,y=q.idx,I=$.slice(M,y),O={type:v.textFormatted,tag:j?"strong":"em",children:I};$.splice(M,y-M,O);for(var S=y-M-1,L=0;L<Q.length;L++)Q[L].idx>B.idx&&(Q[L].idx-=S);for(var R=X+1;R<K;R++)Q[R].active=!1;if(B.len===0&&(B.active=!1,A.text==="")){$.splice(B.idx,1);for(var b=0;b<Q.length;b++)Q[b].idx>B.idx?Q[b].idx--:Q[b].idx===B.idx&&(Q[b].idx=-1)}if(q.len===0){q.active=!1;var k=q.idx;if(D.text===""){$.splice(k,1);for(var g=0;g<Q.length;g++)Q[g].idx>k?Q[g].idx--:Q[g].idx===k&&(Q[g].idx=-1)}}else continue;K++}for(var E=0,h=0;h<$.length;h++){var C=$[h];if(C.type===v.text){var x=C;if(x.text==="")continue;if(E>0&&$[E-1].type===v.text){$[E-1].text+=x.text;continue}}$[E++]=C}$.length=E}}function m6($,Q,Z,V,Y){let G=$.charCodeAt(Q)===E0,K=G?Q+1:Q;if($.charCodeAt(K)!==H0)return null;var q=$.indexOf("]",K+1);if(q<0||q>=Z)return null;for(var J=K+1,U=-1,W=1;J<Z&&W>0;){var X=$.charCodeAt(J);if(X===v0&&J+1<Z){J+=2;continue}if(X===s){var H=N$($,J,Z);if(H>J){J=H;continue}}if(X===e){var z=ZZ($,J,Z);if(z){J=z.end;continue}var B=$Z($,J,Z);if(B>J){J=B;continue}}X===H0?W++:X===p0&&W--,J++}if(W!==0)return null;var j=J-1,F=$.slice(K+1,j),A=J<Z?$.charCodeAt(J):0,D=!1;if(A===e0){var M=!0;for(J++;J<Z&&($.charCodeAt(J)===N||$.charCodeAt(J)===T);)J++;var y="",I=J;if(J<Z&&$.charCodeAt(J)===e){for(J++,I=J;I<Z&&$.charCodeAt(I)!==c;){if($.charCodeAt(I)===v0&&I+1<Z){I+=2;continue}if($.charCodeAt(I)===T){M=!1;break}I++}M&&(I>=Z||$.charCodeAt(I)!==c)&&(M=!1),M&&(y=$.slice(J,I),I++)}else if(M){for(var O=0;I<Z;){var S=$.charCodeAt(I);if(S===v0&&I+1<Z){I+=2;continue}if(S===e0)O++;else if(S===$9){if(O===0)break;O--}else if(S===N||S===T)break;I++}y=$.slice(J,I)}if(M){for(J=I;J<Z&&($.charCodeAt(J)===N||$.charCodeAt(J)===T);)J++;var L;if(J<Z){var R=$.charCodeAt(J);if(R===j9||R===L9||R===e0){var b=R===e0?41:R;J++;for(var k=J;J<Z&&$.charCodeAt(J)!==b;)$.charCodeAt(J)===v0&&J+1<Z&&J++,J++;J>=Z?M=!1:(L=$.slice(k,J),J++)}}if(M){for(;J<Z&&($.charCodeAt(J)===N||$.charCodeAt(J)===T);)J++;(J>=Z||$.charCodeAt(J)!==$9)&&(M=!1)}}if(M){J++,y=Z$(y),L!==void 0&&(L=t9(Z$(L)));var g=Y?.sanitizer||g9,E=g(y,G?"img":"a",G?"src":"href"),h=E===null?null:y;if(G){var C=h0(F,0,F.length,V,Y),x=I$(C);return{node:{type:v.image,target:h,alt:x,title:L},end:J}}else{var X0=V.inAnchor;V.inAnchor=!0;var V0=X0?[{type:v.text,text:F}]:h0(F,0,F.length,V,Y);return V.inAnchor=X0,!V.inAnchor&&r$(V0)?null:{node:{type:v.link,target:h,title:L,children:V0},end:J}}}else J=j+1,D=!0}var P="",u=J;if(!D&&A===H0){var O0=J+1;u=O0;for(var I0=!1;u<Z&&$.charCodeAt(u)!==p0;){if($.charCodeAt(u)===v0&&u+1<Z){u+=2;continue}if($.charCodeAt(u)===H0){I0=!0;break}u++}if(I0||u>=Z)return null;var P0=$.slice(O0,u);if(P0.trim())P=M$(P0);else{if(S6(F))return null;P=M$(F)}u=u+1}else{if(S6(F))return null;P=M$(F)}var $0=V.refs[P];if(!$0)return null;if(G)return{node:{type:v.image,target:$0.target,alt:I$(h0(F,0,F.length,V,Y)),title:$0.title},end:u};var m=V.inAnchor;V.inAnchor=!0;var V0=m?[{type:v.text,text:F}]:h0(F,0,F.length,V,Y);return V.inAnchor=m,!V.inAnchor&&r$(V0)?null:{node:{type:v.link,target:$0.target,title:$0.title,children:V0},end:u}}function ZZ($,Q,Z){if($.charCodeAt(Q)!==e)return null;for(var V=Q+1;V<Z;){var Y=$.charCodeAt(V);if(Y===c)break;if(Y===N||Y===T||Y===D9||Y===e)return null;V++}if(V>=Z||$.charCodeAt(V)!==c)return null;var G=$.slice(Q+1,V),K=G.match(/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^\x00-\x20]*)$/);return K?{node:{type:v.link,target:G,title:void 0,children:[{type:v.text,text:G}]},end:V+1}:G.indexOf("@")!==-1&&/^[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])?)*$/.test(G)?{node:{type:v.link,target:"mailto:"+G,title:void 0,children:[{type:v.text,text:G}]},end:V+1}:null}function D5($,Q,Z,V){if($.charCodeAt(Q)!==H0||Q+1>=Z||$.charCodeAt(Q+1)!==a0)return null;let Y=Q+2;for(;Y<Z&&$.charCodeAt(Y)!==p0&&$.charCodeAt(Y)!==T;)Y++;if(Y>=Z||$.charCodeAt(Y)!==p0)return null;let G=$.slice(Q+2,Y);return G?{node:{type:v.footnoteReference,target:"#"+g0(G),text:G},end:Y+1}:null}function B5($,Q,Z,V){if(V.disableBareUrls)return null;var Y="",G=!1,K=$.charCodeAt(Q);if(K===m9||K===72?Q+8<=Z&&$.charCodeAt(Q+1)===h9&&$.charCodeAt(Q+2)===h9&&$.charCodeAt(Q+3)===O$&&($.charCodeAt(Q+4)===f$&&$.charCodeAt(Q+5)===T0&&$.charCodeAt(Q+6)===j0&&$.charCodeAt(Q+7)===j0?Y="https://":$.charCodeAt(Q+4)===T0&&$.charCodeAt(Q+5)===j0&&$.charCodeAt(Q+6)===j0&&(Y="http://")):K===B9||K===70?Q+6<=Z&&$.charCodeAt(Q+1)===h9&&$.charCodeAt(Q+2)===O$&&$.charCodeAt(Q+3)===T0&&$.charCodeAt(Q+4)===j0&&$.charCodeAt(Q+5)===j0&&(Y="ftp://"):(K===W9||K===87)&&Q+4<=Z&&$.charCodeAt(Q+1)===W9&&$.charCodeAt(Q+2)===W9&&$.charCodeAt(Q+3)===d0&&(Y="www.",G=!0),!Y)return null;let q=Q+Y.length;for(;q<Z;){let O=$.charCodeAt(q);if(O===N||O===T||O===w||O===D9||O===e||O===c)break;q++}for(var J=0,U=0,W=Q;W<q;W++){var X=$.charCodeAt(W);X===e0?J++:X===$9&&U++}let H=q;for(;H>Q+Y.length;){let O=$.charCodeAt(H-1);if(O===d0||O===W6||O===T0||O===E0||O===a9||O===$9||O===B0||O===U0||O===A0){if(O===$9){if(J>=U)break;U--}H--}else if(O===C$){for(var z=H-2;z>Q&&($.charCodeAt(z)>=d&&$.charCodeAt(z)<=l||$.charCodeAt(z)>=J0&&$.charCodeAt(z)<=F0||$.charCodeAt(z)>=o&&$.charCodeAt(z)<=i);)z--;z>=Q&&$.charCodeAt(z)===E$?H=z:H--}else break}if(H<=Q+Y.length)return null;var B=Q+(G?4:Y.length),j=$.indexOf("/",B);if((j<0||j>H)&&(j=H),G&&$.indexOf(".",B)===-1)return null;for(var F=-1,A=-1,D=j-1;D>=B;D--)if($.charCodeAt(D)===d0)if(F<0)F=D;else{A=D;break}for(var M=A>=0?A+1:B,D=M;D<j;D++)if($.charCodeAt(D)===U0)return null;var y=$.slice(Q,H),I=G?"http://"+y:y;return{node:{type:v.link,target:I,title:void 0,children:[{type:v.text,text:y}]},end:H}}function j5($,Q,Z,V){if(V.disableBareUrls)return null;for(var Y=Q,G=Y;Y<Z;){var K=$.charCodeAt(Y);if(K>=d&&K<=l||K>=J0&&K<=F0||K>=o&&K<=i||K===d0||K===E0||K===J9||K===36||K===K$||K===E$||K===L9||K===B0||K===M9||K===j0||K===C0||K===a9||K===a0||K===U0||K===s||K===S9||K===b0||K===D$||K===A0||K===p)Y++;else break}if(Y===G||Y>=Z||$.charCodeAt(Y)!==q$)return null;Y++;for(var q=Y,J=-1,U=Y;Y<Z;){var K=$.charCodeAt(Y);if(K>=d&&K<=l||K>=J0&&K<=F0||K>=o&&K<=i)Y++;else if((K===p||K===U0)&&Y>q)Y++;else if(K===d0){if(Y===q)break;var W=$.charCodeAt(Y-1);if(W===p||W===U0||Y-U>63)break;if(Y+1<Z){var X=$.charCodeAt(Y+1);if(X>=d&&X<=l||X>=J0&&X<=F0||X>=o&&X<=i)J=Y,U=Y+1,Y++;else break}else break}else break}if(Y-U>63||J<0)return null;var H=$.charCodeAt(Y-1);if(!(H>=d&&H<=l||H>=J0&&H<=F0||H>=o&&H<=i)||Y<=J+1)return null;for(var z=-1,B=J-1;B>=q;B--)if($.charCodeAt(B)===d0){z=B;break}for(var j=z>=0?z+1:q,B=j;B<Y;B++)if($.charCodeAt(B)===U0)return null;var F=$.slice(Q,Y);return{node:{type:v.link,target:"mailto:"+F,title:void 0,children:[{type:v.text,text:F}]},end:Y}}function r$($){for(var Q=0;Q<$.length;Q++)if($[Q].type===v.link||"children"in $[Q]&&Array.isArray($[Q].children)&&r$($[Q].children))return!0;return!1}function I$($){for(var Q="",Z=0;Z<$.length;Z++){var V=$[Z];V.type===v.text?Q+=V.text:V.type===v.breakLine?Q+=" ":V.type===v.codeInline?Q+=V.text:"children"in V&&Array.isArray(V.children)?Q+=I$(V.children):V.type===v.image?Q+=V.alt||"":V.type===v.link&&(Q+=I$(V.children))}return Q}function c9($){let Q=$.includes("&")?t9($):$;return{type:v.text,text:Q}}function M5($,Q,Z,V,Y){if($.charCodeAt(Q)!==e)return null;var G=Q+1;if(G>=Z)return null;var K=$.charCodeAt(G);if(K===E0&&G+1<Z&&$.charCodeAt(G+1)===p&&G+2<Z&&$.charCodeAt(G+2)===p){var q=G+3;if(q<Z&&$.charCodeAt(q)===c)return{node:{type:v.htmlComment,text:"",h:!0},end:q+1};if(q+1<Z&&$.charCodeAt(q)===p&&$.charCodeAt(q+1)===c)return{node:{type:v.htmlComment,text:"-",h:!0},end:q+2};var J=$.indexOf("-->",q);return J!==-1&&J<=Z-3?{node:{type:v.htmlComment,text:$.slice(Q+4,J),h:!1},end:J+3}:null}if(K===a9){var U=$.indexOf("?>",G+1);return U!==-1&&U<Z?{node:{type:v.htmlSelfClosing,tag:"?",attrs:{},a:$.slice(Q,U+2),b:!1},end:U+2}:null}if(K===E0&&G+1<Z){var W=$.charCodeAt(G+1);if(W===H0&&$.slice(G+1,G+8)==="[CDATA["){var X=$.indexOf("]]>",G+8);return X!==-1&&X<Z?{node:{type:v.htmlSelfClosing,tag:"![CDATA[",attrs:{},a:$.slice(Q,X+3),b:!1},end:X+3}:null}if(W>=d&&W<=l){var H=$.indexOf(">",G+2);return H!==-1&&H<Z?{node:{type:v.htmlSelfClosing,tag:"!"+$.slice(G+1,H),attrs:{},a:$.slice(Q,H+1),b:!1},end:H+1}:null}}if(K===j0){var z=G+1;if(z>=Z)return null;var B=$.charCodeAt(z);if(!(B>=d&&B<=l||B>=J0&&B<=F0))return null;for(z++;z<Z;){var j=$.charCodeAt(z);if(j>=d&&j<=l||j>=J0&&j<=F0||j>=o&&j<=i||j===p)z++;else break}for(;z<Z&&($.charCodeAt(z)===N||$.charCodeAt(z)===w||$.charCodeAt(z)===T);)z++;if(z<Z&&$.charCodeAt(z)===c){var F=$.slice(G+1,z).trim();return{node:{type:v.htmlSelfClosing,tag:F,attrs:{},a:$.slice(Q,z+1),b:!0},end:z+1}}return null}if(!(K>=d&&K<=l||K>=J0&&K<=F0))return null;var A=I9($,Q);if(!A)return null;var D=A.tag,M=D.toLowerCase(),y=A.selfClosing;if(y||d9(D))return{node:{type:v.htmlSelfClosing,tag:D,attrs:v9(A.attrs,D,Y),a:$.slice(Q,A.end),b:!1},end:A.end};var I=F$.has(M),O=l$($.slice(0,Z),A.end,D);if(O===-1)return{node:{type:v.htmlSelfClosing,tag:D,attrs:v9(A.attrs,D,Y),a:$.slice(Q,A.end),b:!1},end:A.end};var S=G5($,"</"+M,O),L=$.slice(A.end,S),R=[];if(I)L.trim()&&(R=[{type:v.text,text:L}]);else{var b=L.trim();if(b){var{inAnchor:k,inline:g}=V;M==="a"&&(V.inAnchor=!0);var E=b.indexOf(`

`)!==-1||/^#{1,6}\s/.test(b);E?(V.inline=!1,R=N9(b,V,Y)):R=h0(b,0,b.length,V,Y),V.inAnchor=k,V.inline=g}}return{node:{type:v.htmlBlock,tag:D,attrs:v9(A.attrs,D,Y),f:A.rawAttrs,children:R,a:void 0,text:L,c:!1,b:!1,endPos:O,e:!1},end:O}}var A5=200,$$=0;function h0($,Q,Z,V,Y){if($$++,$$>A5)return $$--,[{type:v.text,text:$.slice(Q,Z)}];let G=V;if(Y.streaming||Y.optimizeForStreaming){let Q9=function(q0,f){for(var L0=1,z0=f+1;z0<q0.length;z0++){var U9=q0.charCodeAt(z0);if(U9===H0)L0++;else if(U9===p0&&(L0--,L0===0))return z0}return-1},_=$.slice(Q,Z),r=_;for(var K=0,q=0,J=0,U=0,W=0,X=-1,H=-1,z=-1,B=-1,j=-1,F=0;F<_.length;F++){var A=_.charCodeAt(F);A===B0?F+1<_.length&&_.charCodeAt(F+1)===B0?(K++,X=F,F++):(q++,H=F):A===U0?F+1<_.length&&_.charCodeAt(F+1)===U0?(J++,z=F,F++):(U++,B=F):A===A0&&F+1<_.length&&_.charCodeAt(F+1)===A0&&(W++,j=F,F++)}var D=[];W%2===1&&j>=0&&D.push([j,2]),J%2===1&&z>=0&&D.push([z,2]),U%2===1&&B>=0&&D.push([B,1]),K%2===1&&X>=0&&D.push([X,2]),q%2===1&&H>=0&&D.push([H,1]),D.sort(function(q0,f){return f[0]-q0[0]});for(var M=0;M<D.length;M++){var y=D[M][0],I=D[M][1];_=_.slice(0,y)+_.slice(y+I)}let w0=0,R0=-1;for(let q0=0;q0<_.length;q0++)_.charCodeAt(q0)===s&&(w0++,R0=q0);if(w0%2===1&&R0!==-1){let q0=!1,f=-1,L0=0;for(;L0<_.length;)_.charCodeAt(L0)===s&&(q0?(q0=!1,f=-1):(f=L0,q0=!0)),L0++;q0&&f!==-1&&(_=_.slice(0,f))}for(var O=!0;O;){O=!1;for(var S=-1,L=-1,R=-1,b=!1,k=0;k<_.length;k++){var g=_.charCodeAt(k);if(g===H0&&(k===0||_.charCodeAt(k-1)!==v0)){var E=k>0&&_.charCodeAt(k-1)===E0,h=E?k-1:k,C=Q9(_,k);if(C===-1)S=h,b=E,L=k+1,R=_.length;else{var x=C+1;if(x>=_.length)S=h,b=E,L=k+1,R=C;else if(_.charCodeAt(x)===e0){var X0=_.indexOf(")",x+1);X0===-1?(S=h,b=E,L=k+1,R=C,k=_.length):k=X0}else if(_.charCodeAt(x)===H0){var V0=_.indexOf("]",x+1);V0===-1?(S=h,b=E,L=k+1,R=C,k=_.length):k=V0}else k=C}}}if(S>=0){var P=b?"":_.slice(L,R);_=_.slice(0,S)+P,O=!0}}let S0=_.match(/<([A-Z][A-Za-z0-9]*)(?:\s[^>]*)?>([^<]*)$/);if(S0&&S0.index!==void 0){var u=S0[0].length-S0[2].length,O0=u>=2&&S0[0].charCodeAt(u-2)===j0;if(!O0){for(var I0=!1,P0=0,$0=0;$0<S0.index;$0++)_.charCodeAt($0)===s&&P0++;if(I0=P0%2===1,!I0){let q0=S0[1];E9(_,"</"+q0,0)===-1&&(_=_.replace(/<[A-Z][A-Za-z0-9]*(?:\s[^>]*)?>([^<]*)$/,"$1"))}}}_!==r&&($=$.slice(0,Q)+_,Z=Q+_.length)}let m=[];var D0=[];let n=Q;var Z0=Y.disableAutoLink||Y.disableBareUrls||G.inAnchor?-1:$.indexOf("@",Q);for(Z0>=Z&&(Z0=-1);Q<Z;){let _=$.charCodeAt(Q),r=null;if(_===s){if(r=X5($,Q,Z),!r){var o0=b9($,Q,Z,s);Q+=o0-1}}else if(_===B0||_===U0){var K0=H5($,Q,Z);if(K0){if(K0.canOpen||K0.canClose){Q>n&&m.push(c9($.slice(n,Q)));var M0=$.slice(Q,Q+K0.len),N0=c9(M0);D0.push({idx:m.length,ch:_,len:K0.len,canOpen:K0.canOpen,canClose:K0.canClose,active:!0}),m.push(N0),Q+=K0.len,n=Q;continue}Q+=K0.len-1}}else if(_===A0)r=W5($,Q,Z,G,Y);else if(_===C0)r=z5($,Q,Z,G,Y);else if(_===H0)Q+1<Z&&$.charCodeAt(Q+1)===a0&&(r=D5($,Q,Z,G)),r||(r=m6($,Q,Z,G,Y));else if(_===E0&&Q+1<Z&&$.charCodeAt(Q+1)===H0)r=m6($,Q,Z,G,Y);else if(_===e)r=ZZ($,Q,Z),!r&&!Y.disableParsingRawHTML&&!Y.ignoreHTMLBlocks&&(r=M5($,Q,Z,G,Y));else if((_===m9||_===W9||_===B9)&&!G.inAnchor&&!Y.disableAutoLink&&(Q===0||$.charCodeAt(Q-1)!==e)){var t=Q+1<Z?$.charCodeAt(Q+1):0;(_===m9&&t===h9||_===B9&&t===h9||_===W9&&t===W9)&&(r=B5($,Q,Z,Y))}if(!r&&Z0>=0&&Z0-Q<=64&&!G.inAnchor&&!Y.disableAutoLink&&!Y.disableBareUrls&&(_>=d&&_<=l||_>=J0&&_<=F0||_>=o&&_<=i)&&(r=j5($,Q,Z,Y),!r&&Q>=Z0&&(Z0=$.indexOf("@",Q+1),Z0>=Z&&(Z0=-1))),_===B$){Q>n&&m.push(c9($.slice(n,Q))),m.push({type:v.breakLine}),Q++,n=Q;continue}if(r)Q>n&&m.push(c9($.slice(n,Q))),m.push(r.node),Q=r.end,n=Q;else{if(_===v0&&Q+1<Z){let w0=$.charCodeAt(Q+1);if(o$(w0)&p9){Q>n&&m.push(c9($.slice(n,Q))),m.push(c9($[Q+1])),Q+=2,n=Q;continue}}if(Q++,Z0<0||Z0-Q>64)for(;Q<Z;){var W0=$.charCodeAt(Q);if(W0<s9&&!p6[W0])Q++;else break}}}if(Z>n){let _=$.slice(n,Z);_&&m.push(c9(_))}return D0.length>0&&O5(m,D0,V,Y),$$--,m}var _5=500;function N9($,Q,Z){var V=Q.i||0;if(V>_5)return[{type:v.text,text:$}];Q.i=V+1;let Y=Q;if((Z.streaming||Z.optimizeForStreaming)&&!Q.j){var G=$.length;G>0&&$.charCodeAt(G-1)===T&&G--;for(var K=G;K>0&&$.charCodeAt(K-1)!==T;)K--;if(K>0&&$.charCodeAt(K)===b0){for(var q=!0,J=K;J<G;J++){var U=$.charCodeAt(J);if(U!==N&&U!==w&&U!==p&&U!==T0&&U!==b0){q=!1;break}}if(q){for(var W=K-1;W>0&&$.charCodeAt(W-1)!==T;)W--;$.charCodeAt(W)===b0&&($=$.slice(0,W).trimEnd())}}var X=$.trim(),H=X.lastIndexOf(`
`),z=H===-1?X:X.slice(H+1);if(z.length>0&&z.charCodeAt(0)===b0){for(var B=!1,j=!1,F=1;F<z.length;F++){var A=z.charCodeAt(F);A===b0&&(B=!0),A===p&&(j=!0)}B&&j&&($=H===-1?"":$.slice(0,$.lastIndexOf(z)).trimEnd())}for(var D=-1,M=-1,y=-1,I=$.length-1;I>=0;I--)if($.charCodeAt(I)===e){var O=I+1<$.length?$.charCodeAt(I+1):0;if(O>=d&&O<=l||O>=J0&&O<=F0){for(var S=I+2;S<$.length;){var L=$.charCodeAt(S);if(L>=d&&L<=l||L>=J0&&L<=F0||L>=o&&L<=i)S++;else break}for(var R=S;R<$.length&&$.charCodeAt(R)!==c;)R++;if(R<$.length&&$.charCodeAt(R-1)!==j0){for(var b=!1,k=R+1;k<$.length;k++)if($.charCodeAt(k)===e){b=!0;break}b||(D=I,M=S,y=R+1)}}break}if(D>=0){for(var g=0,E=0;E<D;E++)$.charCodeAt(E)===s&&g++;if(g%2===0){var h=$.slice(D+1,M);E9($,"</"+h,0)===-1&&($=$.slice(0,D)+$.slice(y))}}for(var C=$.length;C>0&&$.charCodeAt(C-1)===T;)C--;if(C>0){for(var x=C;x>0&&$.charCodeAt(x-1)!==T;)x--;for(var X0=x,V0=0;X0<C&&$.charCodeAt(X0)===N&&V0<3;)X0++,V0++;if(x>0&&X0<C&&$5($,X0,C)){for(var P=x-1,u=P;u>0&&$.charCodeAt(u-1)!==T;)u--;l0($,u,P)||($=$.slice(0,x).trimEnd())}}var O0=$.length;if(O0>0){for(var I0=$.lastIndexOf(`
`),P0=I0===-1?0:I0+1,$0=O0,m=P0,D0=0;m<$0&&$.charCodeAt(m)===N&&D0<3;)m++,D0++;if(m<$0){var n=$.charCodeAt(m),Z0=!1;if(n===B0||n===p||n===M9){var o0=m+1;if(o0>=$0||$.charCodeAt(o0)===N||$.charCodeAt(o0)===w){for(var K0=o0;K0<$0&&($.charCodeAt(K0)===N||$.charCodeAt(K0)===w);)K0++;K0>=$0&&(Z0=!0)}}else if(n>=o&&n<=i){for(var M0=m;M0<$0&&$.charCodeAt(M0)>=o&&$.charCodeAt(M0)<=i;)M0++;if(M0<$0&&($.charCodeAt(M0)===d0||$.charCodeAt(M0)===$9)){var N0=M0+1;if(N0>=$0||$.charCodeAt(N0)===N||$.charCodeAt(N0)===w){for(var t=N0;t<$0&&($.charCodeAt(t)===N||$.charCodeAt(t)===w);)t++;t>=$0&&(Z0=!0)}}}Z0&&($=$.slice(0,P0).trimEnd())}}}if(Q.inline)return h0($,0,$.length,Q,Z);let W0=[],_=0,r=$.length;if(_===0&&!Z.disableFrontmatter&&$.startsWith("---")){let f=M6($);if(f&&f.hasValidYaml){if(Z.preserveFrontmatter!==!1){let L0=$.slice(0,f.endPos).trimEnd();W0.push({type:v.frontmatter,text:L0})}_=f.endPos}}for(;_<r;){for(var w0=$.indexOf(`
`,_),R0=w0<0?r:w0;_<r&&l0($,_,R0);)_=R0<r?R0+1:R0,_<r&&(w0=$.indexOf(`
`,_),R0=w0<0?r:w0);if(_>=r)break;$.charCodeAt(_),_0($,_,R0);let f=null;if(i6=$,a6=_,n6=R0,$.charCodeAt(_)!==n9&&Y0>=4&&!Q.inHTML)f=Q5($,_);else if($.charCodeAt(_)!==n9){let L0=_+Q0,z0=$.charCodeAt(L0);z0===J9?f=s6($,_,Q,Z):z0===c?f=V5($,_,Q,Z):z0===s||z0===A0?f=Z5($,_,Q):z0===p||z0===B0||z0===U0?(f=T9($,_),!f&&(f=x6($,_,Q,Z))):z0===M9||z0>=o&&z0<=i?f=x6($,_,Q,Z):z0===e?f=e6($,_,Q,Z):z0===b0?f=T6($,_,Q,Z):z0===H0&&(f=q5($,_,Q))}if(!f){for(var Q9=!1,S0=_;S0<R0;S0++)if($.charCodeAt(S0)===b0){Q9=!0;break}Q9&&(f=T6($,_,Q,Z))}if(f||(f=U5($,_,Q,Z)),f)f.node.type!==v.refCollection&&W0.push(f.node),_=f.end;else{var q0=$.indexOf(`
`,_);_=q0<0?r:q0+1}}return Q.i=V,W0}function QZ($,Q){$$=0,$.charCodeAt(0)===65279&&($=$.slice(1)),$=u$($);let Z={inline:!1,inAnchor:!1,inHTML:!1,inList:!1,inBlockQuote:!1,refs:{}},V={...Q,slugify:Q?.slugify?G=>Q.slugify(G,g0):g0,sanitizer:Q?.sanitizer||g9,tagfilter:Q?.tagfilter!==!1};Z.j=r6($,Z.refs,V);let Y=N9($,Z,V);return Z.refs&&Object.keys(Z.refs).length>0?[{type:v.refCollection,refs:Z.refs},...Y]:Y}function VZ($,Q,Z,V){var Y=I9($,Q);return Y?{tagName:Y.tag,tagLower:Y.tag.toLowerCase(),attrs:Y.rawAttrs,whitespaceBeforeAttrs:Y.whitespaceBeforeAttrs,isSelfClosing:Y.selfClosing,hasSpaceBeforeSlash:Y.hasSpaceBeforeSlash,isClosing:Y.isClosing,hasNewline:Y.whitespaceBeforeAttrs.includes(`
`)||Y.rawAttrs.includes(`
`),endPos:Y.end}:null}function b$($,Q,Z){$$=0,$=u$($),!Q.refs&&(Q.refs={}),Q.j=r6($,Q.refs,Z);let V=N9($,Q,Z);return Q.refs&&Object.keys(Q.refs).length>0?[{type:v.refCollection,refs:Q.refs},...V]:V}var I5=/^\n+/,i$;try{i$=r0.createElement("div").$$typeof}catch{i$=Symbol.for("react.transitional.element")}function a$($,Q,Z){return{$$typeof:i$,type:$,key:Z!=null?""+Z:null,ref:null,props:Q,_owner:null,_store:{},_debugStack:null,_debugTask:null}}var P$=typeof r0.createContext<"u"?r0.createContext(void 0):void 0;function YZ($,Q,Z,V,Y,G,K,q,J){switch($.type){case v.blockQuote:{let F={key:Z.key};return $.alert&&(F.className="markdown-alert-"+G($.alert.toLowerCase(),g0),$.children.unshift({attrs:{},children:[{type:v.text,text:$.alert}],c:!0,type:v.htmlBlock,tag:"header"})),V("blockquote",F,Q($.children,Z))}case v.breakLine:return V("br",{key:Z.key});case v.breakThematic:return V("hr",{key:Z.key});case v.frontmatter:return q.preserveFrontmatter?V("pre",{key:Z.key},$.text):null;case v.codeBlock:let j=$.lang?t9($.lang):"";return V("pre",{key:Z.key},V("code",{...c0($.attrs||{}),className:j?`language-${j} lang-${j}`:""},$.text));case v.codeInline:return V("code",{key:Z.key},$.text);case v.footnoteReference:return V("a",{key:Z.key,href:Y($.target,"a","href")||void 0},V("sup",{key:Z.key},$.text));case v.gfmTask:return V("input",{checked:$.completed,key:Z.key,readOnly:!0,type:"checkbox"});case v.heading:return V(`h${$.level}`,{id:$.id,key:Z.key},Q($.children,Z));case v.htmlBlock:{let F=$;if(q.tagfilter&&p$(F.tag)){var U="";if(F.attrs)for(var W in F.attrs){var X=F.attrs[W];X===!0?U+=" "+W:X!=null&&X!==!1&&(U+=" "+W+'="'+String(X)+'"')}return V("span",{key:Z.key},"<"+F.tag+U+">")}if(F.a&&F.c){let b=function(P){if((P.type===v.htmlSelfClosing||P.type===v.htmlBlock)&&P.b)return[];if(P.type===v.paragraph){let u=P.children;return u?u.flatMap(b):[]}return P.type===v.text?P.text?.trim()?[P]:[]:P.type===v.htmlBlock&&P.children?[{...P,children:P.children?.flatMap(b)}]:[P]},g=function(P){for(var u=0;u<P.length;u++)P[u].type===v.htmlBlock&&(P[u].c=!1),"children"in P[u]&&P[u].children&&g(P[u].children)},V0=function(P,u){for(var O0=0;O0<P.length;O0++){var I0=P[O0];if(I0.type===v.paragraph&&I0.children)for(var P0=I0.children,$0=0;$0<P0.length;$0++){var m=P0[$0];if(m.type===v.htmlSelfClosing&&m.b&&m.tag.toLowerCase()===u){var D0=P.slice(0,O0);$0>0&&D0.push({type:v.paragraph,children:P0.slice(0,$0)});var n=[];if($0+1<P0.length){var Z0=P0.slice($0+1);Z0=Z0.filter(function(o0){return!(o0.type===v.htmlSelfClosing&&o0.b)}),Z0.length>0&&(n=Z0)}return n=n.concat(P.slice(O0+1)),{found:!0,beforeClose:D0,afterClose:n}}}if((I0.type===v.htmlSelfClosing||I0.type===v.htmlBlock)&&I0.b&&I0.tag.toLowerCase()===u)return{found:!0,beforeClose:P.slice(0,O0),afterClose:P.slice(O0+1)}}return{found:!1,beforeClose:P,afterClose:[]}},A=F.tag.toLowerCase(),D=d6(A),M=F.children&&F.children.length>0,y=/<[a-z][^>]{0,100}>/i.test(F.a);if(D){let P=F.a.replace(new RegExp("\\s*</"+A+">\\s*$","i"),"");return q.tagfilter&&(P=d$(P)),y?J($.tag,{key:Z.key,...c0($.attrs||{}),dangerouslySetInnerHTML:{__html:P}}):J($.tag,{key:Z.key,...c0($.attrs||{})},P)}let I=new RegExp(`^<${F.tag}(\\s|>)`,"i").test(F.a);if(M&&!I&&q.tagfilter&&P6(F.a))return J($.tag,{key:Z.key,...c0($.attrs||{})},Q(F.children,Z));if(c6(F.a)){let P=q.tagfilter?d$(F.a):F.a;return J($.tag,{key:Z.key,...c0($.attrs||{}),dangerouslySetInnerHTML:{__html:P}})}let S={slugify:P=>G(P,g0),sanitizer:Y,tagfilter:!0},L=F.a.replace(/>\s+</g,"><").replace(/\n+/g," ").trim();if(new RegExp(`^<${F.tag}(\\s[^>]*)?>(\\s*</${F.tag}>)?$`,"i").test(L))return F.children&&F.children.length>0?J($.tag,{key:Z.key,...c0($.attrs||{})},Q(F.children,Z)):J($.tag,{key:Z.key,...c0($.attrs||{})});let k=b$(L,{inline:!1,refs:K,inHTML:!1},S);g(k);let E=F.tag.toLowerCase(),h="</"+E+">",C=new RegExp(`^<${F.tag}(\\s|>)`,"i").test(L),x=L.toLowerCase().trimEnd().endsWith(h),X0=C&&x;if(X0&&M)return J($.tag,{key:Z.key,...c0($.attrs||{})},Q(F.children,Z));if(X0)return Q(k.flatMap(b),Z);var H=V0(k,E);if(H.found&&H.afterClose.length>0){var z=H.beforeClose.flatMap(b),B=H.afterClose.flatMap(b);return a$(r0.Fragment,{children:[J($.tag,{key:Z.key,...c0($.attrs||{})},Q(z,Z)),Q(B,Z)]},null)}return J($.tag,{key:Z.key,...c0($.attrs||{})},Q(k.flatMap(b),Z))}return d9($.tag)?J($.tag,{key:Z.key,...c0($.attrs||{})}):J($.tag,{key:Z.key,...c0($.attrs||{})},$.children?Q($.children,Z):"")}case v.htmlSelfClosing:{let F=$;if(q.tagfilter&&p$(F.tag)){var U="";if(F.attrs)for(var W in F.attrs){var X=F.attrs[W];X===!0?U+=" "+W:X!=null&&X!==!1&&(U+=" "+W+'="'+String(X)+'"')}return V("span",{key:Z.key},"<"+F.tag+U+" />")}return J($.tag,{key:Z.key,...c0($.attrs||{})})}case v.image:{let F=$.target!=null?Y($.target,"img","src"):null;return V("img",{key:Z.key,alt:$.alt&&$.alt.length>0?$.alt:void 0,title:$.title||void 0,src:F||void 0})}case v.link:{let F={key:Z.key};return $.target!=null&&(F.href=N6($.target)),$.title&&(F.title=$.title),V("a",F,Q($.children,Z))}case v.table:{let F=$;return V("table",{key:Z.key},V("thead",{key:"thead"},V("tr",null,F.header.map(function(D,M){return V("th",{key:M,style:F.align[M]==null?{}:{textAlign:F.align[M]}},Q(D,Z))}))),F.cells.length>0&&V("tbody",{key:"tbody"},F.cells.map(function(D,M){return V("tr",{key:M},D.map(function(I,O){return V("td",{key:O,style:F.align[O]==null?{}:{textAlign:F.align[O]}},Q(I,Z))}))})))}case v.text:return $.text;case v.textFormatted:return V($.tag,{key:Z.key},Q($.children,Z));case v.orderedList:case v.unorderedList:{let F=$.type===v.orderedList?"ol":"ul";return V(F,{key:Z.key,start:$.type===v.orderedList?$.start:void 0},$.items.map(function(D,M){return V("li",{key:M},Q(D,Z))}))}case v.paragraph:return V("p",{key:Z.key},Q($.children,Z));case v.ref:return null;default:return null}}var N5=($,Q,Z,V,Y,G,K)=>{var q=U=>U.map(function(W){return"text"in W?W.text:""}),J=(U,W={})=>{var X=(W.renderDepth||0)+1;if(X>2500)return q(U);W.renderDepth=X;for(var H=W.key,z=[],B=!1,j=0;j<U.length;j++){W.key=j;var F;if($){var A=YZ.bind(null,U[j],J,W,Q,Z,V,Y,G,K);F=$(A,U[j],J,W)}else F=YZ(U[j],J,W,Q,Z,V,Y,G,K);var D=typeof F=="string";if(D&&B)z[z.length-1]+=F;else if(F!==null)if(Array.isArray(F))for(var M=0;M<F.length;M++)z.push(F[M]);else z.push(F);B=D}return W.key=H,W.renderDepth=X-1,z};return J},b5=($,Q)=>{let Z=e9(Q,$,void 0);return Z?typeof Z=="function"||typeof Z=="object"&&"render"in Z?Z:e9(Q,`${$}.component`,$):$};function GZ($,Q){let Z={...Q||{}};Z.overrides=Z.overrides||{};let V=Z.slugify||g0,Y=Z.sanitizer||g9,G=Z.createElement,K=Z.overrides&&Object.keys(Z.overrides).length>0,q=M=>w$(M,{...Z,wrapper:null});function J(M){for(var y in M){var I=M[y];if(typeof I=="string"&&I.length>0&&I.charCodeAt(0)===e&&(h6.test(I)||u6.test(I)||VZ(I,0))){var O=q(I.trim());M[y]=y==="innerHTML"&&Array.isArray(O)?O[0]:O}}}function U(M,y,...I){var O=y||{},S=M;if(K){var L=e9(Z.overrides,M+".props",{});S=b5(M,Z.overrides),O={...O,...L,className:b6(O.className,L.className)||void 0}}if(!G){var R=O.key;return R!=null&&delete O.key,I.length===1?O.children=I[0]:I.length>1&&(O.children=I),a$(S,O,R)}return G(S,O,...I)}function W(M,y,...I){return y&&J(y),U(M,y,...I)}let X={...Z,slugify:Z.slugify?M=>Z.slugify(M,g0):g0,sanitizer:Y,tagfilter:Z.tagfilter!==!1},H=$[0]&&$[0].type===v.refCollection?$[0].refs:{},z=N5(Z.renderRule,U,Y,V,H,Z,W),B=z($,{inline:Z.forceInline,refs:H}),j=[];for(let M in H)M.charCodeAt(0)===a0&&j.push({identifier:M,footnote:H[M].target});if(j.length&&B.push(U("footer",{key:"footer"},j.map(function(y){let I=y.identifier.charCodeAt(0)===a0?y.identifier.slice(1):y.identifier,O=b$(y.footnote,{inline:!0,refs:H},X);return U("div",{id:V(I,g0),key:y.identifier},I+": ",z(O,{inline:!0,refs:H}))}))),Z.wrapper===null)return B;let F=Z.wrapper||(Z.forceInline?"span":"div"),A;if(B.length>1||Z.forceWrapper)A=B;else return B.length===1?B[0]:null;var D=Z.wrapperProps?{...Z.wrapperProps}:{};return D.children=A,a$(F,D,"outer")}function w$($="",Q={}){let Z={...Q||{}};Z.overrides=Z.overrides||{};let V=Z.slugify||g0,Y=Z.sanitizer||g9;function G(J){let U=Z.forceInline||!Z.forceBlock&&!A6.test(J),W={...Z,slugify:Z.slugify?B=>Z.slugify(B,g0):g0,sanitizer:Y,tagfilter:Z.tagfilter!==!1},X=J;if(!U){let B=X.length;for(;B>0&&(X[B-1]===`
`||X[B-1]==="\r");)B--;X=X.slice(0,B),X=`${X.replace(I5,"")}

`}if(Z.optimizeForStreaming){var H=X.lastIndexOf("<");H!==-1&&X.indexOf(">",H)===-1&&(X=X.slice(0,H)),H=J.lastIndexOf("<"),H!==-1&&J.indexOf(">",H)===-1&&(J=J.slice(0,H))}let z=b$(U?J:X,{inline:U,refs:K},W);return GZ(z,{...W,forceInline:U})}let K={};return G($)}var P5=({options:$,children:Q})=>P$?r0.createElement(P$.Provider,{value:$},Q):Q,KZ=({children:$,options:Q,...Z})=>{if(!(typeof r0.useContext<"u")){let J={...Q,overrides:{...Q?.overrides},wrapperProps:{...Q?.wrapperProps,...Z}};return w$($??"",J)}let Y=r0.useContext(P$),G=r0.useMemo(()=>({...Y,...Q,overrides:{...Y?.overrides,...Q?.overrides},wrapperProps:{...Y?.wrapperProps,...Q?.wrapperProps,...Z}}),[Y,Q,Z]),K=$??"";return r0.useMemo(()=>w$(K,G),[K,G])},R5=KZ;
