diff --git "a/.output/public/_build/assets/index-B3c4xLM9.js" "b/.output/public/_build/assets/index-B3c4xLM9.js" new file mode 100644--- /dev/null +++ "b/.output/public/_build/assets/index-B3c4xLM9.js" @@ -0,0 +1,4 @@ +import{u as Ut,g as yn,h as Cn,m as qt,s as Pe,j as J,k as Re,c as Ct,e as In,l as _e,t as Oe,b as st,n as En,p as zn,S as Fn,q as $t,f as Be,v as An,w as Me,x as Ne,y as qe,z as He,B as je}from"./web-B4PMWFUS.js";function Dn(){let t=new Set;function e(u){return t.add(u),()=>t.delete(u)}let n=!1;function r(u,l){if(n)return!(n=!1);const i={to:u,options:l,defaultPrevented:!1,preventDefault:()=>i.defaultPrevented=!0};for(const a of t)a.listener({...i,from:a.location,retry:c=>{c&&(n=!0),a.navigate(u,{...l,resolve:!1})}});return!i.defaultPrevented}return{subscribe:e,confirm:r}}let Ht;function Qt(){(!window.history.state||window.history.state._depth==null)&&window.history.replaceState({...window.history.state,_depth:window.history.length-1},""),Ht=window.history.state._depth}Qt();function ve(t){return{...t,_depth:window.history.state&&window.history.state._depth}}function Ve(t,e){let n=!1;return()=>{const r=Ht;Qt();const u=r==null?null:Ht-r;if(n){n=!1;return}u&&e(u)?(n=!0,window.history.go(-u)):t()}}const We=/^(?:[a-z0-9]+:)?\/\//i,Ue=/^\/+|(\/)\/+$/g,Ln="http://sr";function gt(t,e=!1){const n=t.replace(Ue,"$1");return n?e||/^[?#]/.test(n)?n:"/"+n:""}function At(t,e,n){if(We.test(e))return;const r=gt(t),u=n&>(n);let l="";return!u||e.startsWith("/")?l=r:u.toLowerCase().indexOf(r.toLowerCase())!==0?l=r+u:l=u,(l||"/")+gt(e,!l)}function $e(t,e){if(t==null)throw new Error(e);return t}function Qe(t,e){return gt(t).replace(/\/*(\*.*)?$/g,"")+gt(e)}function Tn(t){const e={};return t.searchParams.forEach((n,r)=>{r in e?Array.isArray(e[r])?e[r].push(n):e[r]=[e[r],n]:e[r]=n}),e}function Ye(t,e,n){const[r,u]=t.split("/*",2),l=r.split("/").filter(Boolean),i=l.length;return a=>{const c=a.split("/").filter(Boolean),o=c.length-i;if(o<0||o>0&&u===void 0&&!e)return null;const f={path:i?"":"/",params:{}},s=p=>n===void 0?void 0:n[p];for(let p=0;pr===t;return e===void 0?!0:typeof e=="string"?n(e):typeof e=="function"?e(t):Array.isArray(e)?e.some(n):e instanceof RegExp?e.test(t):!1}function Ke(t){const[e,n]=t.pattern.split("/*",2),r=e.split("/").filter(Boolean);return r.reduce((u,l)=>u+(l.startsWith(":")?2:3),r.length-(n===void 0?0:1))}function Pn(t){const e=new Map,n=En();return new Proxy({},{get(r,u){return e.has(u)||An(n,()=>e.set(u,J(()=>t()[u]))),e.get(u)()},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},ownKeys(){return Reflect.ownKeys(t())}})}function Rn(t){let e=/(\/?\:[^\/]+)\?/.exec(t);if(!e)return[t];let n=t.slice(0,e.index),r=t.slice(e.index+e[0].length);const u=[n,n+=e[1]];for(;e=/^(\/\:[^\/]+)\?/.exec(r);)u.push(n+=e[1]),r=r.slice(e[0].length);return Rn(r).reduce((l,i)=>[...l,...u.map(a=>a+i)],[])}const Ze=100,_n=yn(),Yt=yn(),Et=()=>$e(Ut(_n)," and 'use' router primitives can be only used inside a Route."),Ge=()=>Ut(Yt)||Et().base,Je=t=>{const e=Ge();return J(()=>e.resolvePath(t()))},Xe=t=>{const e=Et();return J(()=>{const n=t();return n!==void 0?e.renderPath(n):n})},cl=()=>Et().navigatorFactory(),tr=()=>Et().location,hl=()=>Et().params;function nr(t,e=""){const{component:n,preload:r,load:u,children:l,info:i}=t,a=!l||Array.isArray(l)&&!l.length,c={key:t,component:n,preload:r||u,info:i};return On(t.path).reduce((o,f)=>{for(const s of Rn(f)){const p=Qe(e,s);let h=a?p:p.split("/*",1)[0];h=h.split("/").map(x=>x.startsWith(":")||x.startsWith("*")?x:encodeURIComponent(x)).join("/"),o.push({...c,originalPath:f,pattern:h,matcher:Ye(h,!a,t.matchFilters)})}return o},[])}function er(t,e=0){return{routes:t,score:Ke(t[t.length-1])*1e4-e,matcher(n){const r=[];for(let u=t.length-1;u>=0;u--){const l=t[u],i=l.matcher(n);if(!i)return null;r.unshift({...i,route:l})}return r}}}function On(t){return Array.isArray(t)?t:[t]}function Bn(t,e="",n=[],r=[]){const u=On(t);for(let l=0,i=u.length;li.score-l.score)}function Ot(t,e){for(let n=0,r=t.length;n{const s=t();try{return new URL(s,r)}catch{return console.error(`Invalid path ${s}`),f}},r,{equals:(f,s)=>f.href===s.href}),l=J(()=>u().pathname),i=J(()=>u().search,!0),a=J(()=>u().hash),c=()=>"",o=$t(i,()=>Tn(u()));return{get pathname(){return l()},get search(){return i()},get hash(){return a()},get state(){return e()},get key(){return c()},query:n?n(o):Pn(o)}}let ft;function ir(){return ft}function ur(t,e,n,r={}){const{signal:[u,l],utils:i={}}=t,a=i.parsePath||(D=>D),c=i.renderPath||(D=>D),o=i.beforeLeave||Dn(),f=At("",r.base||"");if(f===void 0)throw new Error(`${f} is not a valid base path`);f&&!u().value&&l({value:f,replace:!0,scroll:!1});const[s,p]=Ct(!1);let h;const x=(D,E)=>{E.value===w()&&E.state===b()||(h===void 0&&p(!0),ft=D,h=E,Ne(()=>{h===E&&(C(h.value),S(h.state),je(),L[1](B=>B.filter(H=>H.pending)))}).finally(()=>{h===E&&qe(()=>{ft=void 0,D==="navigate"&&F(h),p(!1),h=void 0})}))},[w,C]=Ct(u().value),[b,S]=Ct(u().state),I=rr(w,b,i.queryWrapper),P=[],L=Ct([]),d=J(()=>typeof r.transformUrl=="function"?Ot(e(),r.transformUrl(I.pathname)):Ot(e(),I.pathname)),R=()=>{const D=d(),E={};for(let B=0;Bf,outlet:()=>null,resolvePath(D){return At(f,D)}};return Be($t(u,D=>x("native",D),{defer:!0})),{base:j,location:I,params:N,isRouting:s,renderPath:c,parsePath:a,navigatorFactory:z,matches:d,beforeLeave:o,preloadRoute:M,singleFlight:r.singleFlight===void 0?!0:r.singleFlight,submissions:L};function k(D,E,B){zn(()=>{if(typeof E=="number"){E&&(i.go?i.go(E):console.warn("Router integration does not support relative routing"));return}const H=!E||E[0]==="?",{replace:Y,resolve:W,scroll:m,state:v}={replace:!1,resolve:!H,scroll:!0,...B},Z=W?D.resolvePath(E):At(H&&I.pathname||"",E);if(Z===void 0)throw new Error(`Path '${E}' is not a routable path`);if(P.length>=Ze)throw new Error("Too many redirects");const g=w();(Z!==g||v!==b())&&(He||o.confirm(Z,B)&&(P.push({value:g,replace:Y,scroll:m,state:b()}),x("navigate",{value:Z,state:v})))})}function z(D){return D=D||Ut(Yt)||j,(E,B)=>k(D,E,B)}function F(D){const E=P[0];E&&(l({...D,replace:E.replace,scroll:E.scroll}),P.length=0)}function M(D,E){const B=Ot(e(),D.pathname),H=ft;ft="preload";for(let Y in B){const{route:W,params:m}=B[Y];W.component&&W.component.preload&&W.component.preload();const{preload:v}=W;E&&v&&An(n(),()=>v({params:m,location:{pathname:D.pathname,search:D.search,hash:D.hash,query:Tn(D),state:null,key:""},intent:"preload"}))}ft=H}}function lr(t,e,n,r){const{base:u,location:l,params:i}=t,{pattern:a,component:c,preload:o}=r().route,f=J(()=>r().path);c&&c.preload&&c.preload();const s=o?o({params:i,location:l,intent:ft||"initial"}):void 0;return{parent:e,pattern:a,path:f,outlet:()=>c?st(c,{params:i,location:l,data:s,get children(){return n()}}):n(),resolvePath(h){return At(u.path(),h,f())}}}const ar=t=>e=>{const{base:n}=e,r=Cn(()=>e.children),u=J(()=>Bn(r(),e.base||""));let l;const i=ur(t,u,()=>l,{base:n,singleFlight:e.singleFlight,transformUrl:e.transformUrl});return t.create&&t.create(i),st(_n.Provider,{value:i,get children(){return st(or,{routerState:i,get root(){return e.root},get preload(){return e.rootPreload||e.rootLoad},get children(){return[J(()=>(l=En())&&null),st(sr,{routerState:i,get branches(){return u()}})]}})}})};function or(t){const e=t.routerState.location,n=t.routerState.params,r=J(()=>t.preload&&zn(()=>{t.preload({params:n,location:e,intent:ir()||"initial"})}));return st(Fn,{get when(){return t.root},keyed:!0,get fallback(){return t.children},children:u=>st(u,{params:n,location:e,get data(){return r()},get children(){return t.children}})})}function sr(t){const e=[];let n;const r=J($t(t.routerState.matches,(u,l,i)=>{let a=l&&u.length===l.length;const c=[];for(let o=0,f=u.length;o{e[o]=h,c[o]=lr(t.routerState,c[o-1]||t.routerState.base,on(()=>r()[o+1]),()=>t.routerState.matches()[o])}))}return e.splice(u.length).forEach(o=>o()),i&&a?i:(n=c[0],c)}));return on(()=>r()&&n)()}const on=t=>()=>st(Fn,{get when(){return t()},keyed:!0,children:e=>st(Yt.Provider,{value:e,get children(){return e.outlet()}})}),fl=t=>{const e=Cn(()=>t.children);return qt(t,{get children(){return e()}})};function cr([t,e],n,r){return[t,r?u=>e(r(u)):e]}function hr(t){let e=!1;const n=u=>typeof u=="string"?{value:u}:u,r=cr(Ct(n(t.get()),{equals:(u,l)=>u.value===l.value&&u.state===l.state}),void 0,u=>(!e&&t.set(u),u));return t.init&&In(t.init((u=t.get())=>{e=!0,r[1](n(u)),e=!1})),ar({signal:r,create:t.create,utils:t.utils})}function fr(t,e,n){return t.addEventListener(e,n),()=>t.removeEventListener(e,n)}function mr(t,e){const n=t&&document.getElementById(t);n?n.scrollIntoView():e&&window.scrollTo(0,0)}const gr=18e4;let sn=new Map;setInterval(()=>{const t=Date.now();for(let[e,n]of sn.entries())!n[4].count&&t-n[0]>gr&&sn.delete(e)},3e5);const pr=new Map;function xr(t=!0,e=!1,n="/_server",r){return u=>{const l=u.base.path(),i=u.navigatorFactory(u.base);let a,c;function o(w){return w.namespaceURI==="http://www.w3.org/2000/svg"}function f(w){if(w.defaultPrevented||w.button!==0||w.metaKey||w.altKey||w.ctrlKey||w.shiftKey)return;const C=w.composedPath().find(d=>d instanceof Node&&d.nodeName.toUpperCase()==="A");if(!C||e&&!C.hasAttribute("link"))return;const b=o(C),S=b?C.href.baseVal:C.href;if((b?C.target.baseVal:C.target)||!S&&!C.hasAttribute("state"))return;const P=(C.getAttribute("rel")||"").split(/\s+/);if(C.hasAttribute("download")||P&&P.includes("external"))return;const L=b?new URL(S,document.baseURI):new URL(S);if(!(L.origin!==window.location.origin||l&&L.pathname&&!L.pathname.toLowerCase().startsWith(l.toLowerCase())))return[C,L]}function s(w){const C=f(w);if(!C)return;const[b,S]=C,I=u.parsePath(S.pathname+S.search+S.hash),P=b.getAttribute("state");w.preventDefault(),i(I,{resolve:!1,replace:b.hasAttribute("replace"),scroll:!b.hasAttribute("noscroll"),state:P?JSON.parse(P):void 0})}function p(w){const C=f(w);if(!C)return;const[b,S]=C;r&&(S.pathname=r(S.pathname)),u.preloadRoute(S,b.getAttribute("preload")!=="false")}function h(w){clearTimeout(a);const C=f(w);if(!C)return c=null;const[b,S]=C;c!==b&&(r&&(S.pathname=r(S.pathname)),a=setTimeout(()=>{u.preloadRoute(S,b.getAttribute("preload")!=="false"),c=b},20))}function x(w){if(w.defaultPrevented)return;let C=w.submitter&&w.submitter.hasAttribute("formaction")?w.submitter.getAttribute("formaction"):w.target.getAttribute("action");if(!C)return;if(!C.startsWith("https://action/")){const S=new URL(C,Ln);if(C=u.parsePath(S.pathname+S.search),!C.startsWith(n))return}if(w.target.method.toUpperCase()!=="POST")throw new Error("Only POST forms are supported for Actions");const b=pr.get(C);if(b){w.preventDefault();const S=new FormData(w.target,w.submitter);b.call({r:u,f:w.target},w.target.enctype==="multipart/form-data"?S:new URLSearchParams(S))}}_e(["click","submit"]),document.addEventListener("click",s),t&&(document.addEventListener("mousemove",h,{passive:!0}),document.addEventListener("focusin",p,{passive:!0}),document.addEventListener("touchstart",p,{passive:!0})),document.addEventListener("submit",x),In(()=>{document.removeEventListener("click",s),t&&(document.removeEventListener("mousemove",h),document.removeEventListener("focusin",p),document.removeEventListener("touchstart",p)),document.removeEventListener("submit",x)})}}function ml(t){const e=()=>{const r=window.location.pathname.replace(/^\/+/,"/")+window.location.search,u=window.history.state&&window.history.state._depth&&Object.keys(window.history.state).length===1?void 0:window.history.state;return{value:r+window.location.hash,state:u}},n=Dn();return hr({get:e,set({value:r,replace:u,scroll:l,state:i}){u?window.history.replaceState(ve(i),"",r):window.history.pushState(i,"",r),mr(decodeURIComponent(window.location.hash.slice(1)),l),Qt()},init:r=>fr(window,"popstate",Ve(r,u=>{if(u&&u<0)return!n.confirm(u);{const l=e();return!n.confirm(l.value,{state:l.state})}})),create:xr(t.preload,t.explicitLinks,t.actionBase,t.transformUrl),utils:{go:r=>window.history.go(r),beforeLeave:n}})(t)}var kr=Oe("");function gl(t){t=qt({inactiveClass:"inactive",activeClass:"active"},t);const[,e]=Pe(t,["href","state","class","activeClass","inactiveClass","end"]),n=Je(()=>t.href),r=Xe(n),u=tr(),l=J(()=>{const i=n();if(i===void 0)return[!1,!1];const a=gt(i.split(/[?#]/,1)[0]).toLowerCase(),c=decodeURI(gt(u.pathname).toLowerCase());return[t.end?a===c:c.startsWith(a+"/")||c===a,a===c]});return(()=>{var i=kr();return Re(i,qt(e,{get href(){return r()||t.href},get state(){return JSON.stringify(t.state)},get classList(){return{...t.class&&{[t.class]:!0},[t.inactiveClass]:!l()[0],[t.activeClass]:l()[0],...e.classList}},link:"",get"aria-current"(){return l()[1]?"page":void 0}}),!1),i})()}const cn=document.createElement("i");function Mn(t){const e="&"+t+";";cn.innerHTML=e;const n=cn.textContent;return n.charCodeAt(n.length-1)===59&&t!=="semi"||n===e?!1:n}function X(t,e,n,r){const u=t.length;let l=0,i;if(e<0?e=-e>u?0:u+e:e=e>u?u:e,n=n>0?n:0,r.length<1e4)i=Array.from(r),i.unshift(e,n),t.splice(...i);else for(n&&t.splice(e,n);l0?(X(t,t.length,0,e),t):e}const jt={}.hasOwnProperty;function Nn(t){const e={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}const yr={'"':"quot","&":"amp","<":"lt",">":"gt"};function Hn(t){return t.replace(/["&<>]/g,e);function e(n){return"&"+yr[n]+";"}}function it(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const K=ct(/[A-Za-z]/),Q=ct(/[\dA-Za-z]/),Cr=ct(/[#-'*+\--9=?A-Z^-~]/);function Lt(t){return t!==null&&(t<32||t===127)}const vt=ct(/\d/),Ir=ct(/[\dA-Fa-f]/),Er=ct(/[!-/:-@[-`{-~]/);function T(t){return t!==null&&t<-2}function q(t){return t!==null&&(t<0||t===32)}function _(t){return t===-2||t===-1||t===32}const Kt=ct(/\p{P}|\p{S}/u),dt=ct(/\s/);function ct(t){return e;function e(n){return n!==null&&n>-1&&t.test(String.fromCharCode(n))}}function mt(t,e){const n=Hn(zr(t||""));if(!e)return n;const r=n.indexOf(":"),u=n.indexOf("?"),l=n.indexOf("#"),i=n.indexOf("/");return r<0||i>-1&&r>i||u>-1&&r>u||l>-1&&r>l||e.test(n.slice(0,r))?n:""}function zr(t){const e=[];let n=-1,r=0,u=0;for(;++n55295&&l<57344){const a=t.charCodeAt(n+1);l<56320&&a>56319&&a<57344?(i=String.fromCharCode(l,a),u=1):i="�"}else i=String.fromCharCode(l);i&&(e.push(t.slice(r,n),encodeURIComponent(i)),r=n+u+1,i=""),u&&(n+=u,u=0)}return e.join("")+t.slice(r)}const hn={}.hasOwnProperty,fn=/^(https?|ircs?|mailto|xmpp)$/i,Fr=/^https?$/i;function Ar(t){const e=t||{};let n=!0;const r={},u=[[]],l=[],i=[],c=qn([{enter:{blockQuote:E,codeFenced:W,codeFencedFenceInfo:C,codeFencedFenceMeta:C,codeIndented:Z,codeText:Ie,content:fe,definition:le,definitionDestinationString:oe,definitionLabelString:C,definitionTitleString:C,emphasis:ye,htmlFlow:Se,htmlText:en,image:tt,label:C,link:pt,listItemMarker:z,listItemValue:k,listOrdered:N,listUnordered:j,paragraph:H,reference:C,resource:xt,resourceDestinationString:kt,resourceTitleString:C,setextHeading:ge,strong:Ce},exit:{atxHeading:xe,atxHeadingSequence:me,autolinkEmail:Te,autolinkProtocol:Le,blockQuote:B,characterEscapeValue:St,characterReferenceMarkerHexadecimal:rn,characterReferenceMarkerNumeric:rn,characterReferenceValue:De,codeFenced:g,codeFencedFence:v,codeFencedFenceInfo:m,codeFencedFenceMeta:R,codeFlowValue:we,codeIndented:g,codeText:Ee,codeTextData:St,data:St,definition:he,definitionDestinationString:se,definitionLabelString:ae,definitionTitleString:ce,emphasis:ze,hardBreakEscape:tn,hardBreakTrailing:tn,htmlFlow:nn,htmlFlowData:St,htmlText:nn,htmlTextData:St,image:Xt,label:wt,labelText:V,lineEnding:de,link:Xt,listOrdered:F,listUnordered:M,paragraph:Y,reference:R,referenceString:ot,resource:R,resourceDestinationString:Rt,resourceTitleString:ue,setextHeading:be,setextHeadingLineSequence:ke,setextHeadingText:pe,strong:Fe,thematicBreak:Ae}},...e.htmlExtensions||[]]),o={definitions:r,tightStack:i},f={buffer:C,encode:d,getData:w,lineEndingIfNeeded:L,options:e,raw:I,resume:b,setData:x,tag:S};let s=e.defaultLineEnding;return p;function p(y){let A=-1,U=0;const nt=[];let et=[],lt=[];for(;++A"):D(),L(),S("
  • "),x("expectFirstItem"),x("lastWasTag")}function F(){D(),i.pop(),P(),S("")}function M(){D(),i.pop(),P(),S("")}function D(){w("lastWasTag")&&!w("slurpAllLineEndings")&&L(),S("
  • "),x("slurpAllLineEndings")}function E(){i.push(!1),L(),S("
    ")}function B(){i.pop(),L(),S("
    "),x("slurpAllLineEndings")}function H(){i[i.length-1]||(L(),S("

    ")),x("slurpAllLineEndings")}function Y(){i[i.length-1]?x("slurpAllLineEndings",!0):S("

    ")}function W(){L(),S("
    "),x("slurpOneLineEnding",!0)),x("fencesCount",y+1)}function Z(){L(),S("
    ")}function g(){const y=w("fencesCount");y!==void 0&&y<2&&o.tightStack.length>0&&!w("lastWasTag")&&P(),w("flowCodeSeenData")&&L(),S("
    "),y!==void 0&&y<2&&L(),x("flowCodeSeenData"),x("fencesCount"),x("slurpOneLineEnding")}function tt(){l.push({image:!0}),n=void 0}function pt(){l.push({})}function V(y){l[l.length-1].labelId=this.sliceSerialize(y)}function wt(){l[l.length-1].label=b()}function ot(y){l[l.length-1].referenceId=this.sliceSerialize(y)}function xt(){C(),l[l.length-1].destination=""}function kt(){C(),x("ignoreEncode",!0)}function Rt(){l[l.length-1].destination=b(),x("ignoreEncode")}function ue(){l[l.length-1].title=b()}function Xt(){let y=l.length-1;const A=l[y],U=A.referenceId||A.labelId,nt=A.destination===void 0?r[it(U)]:A;for(n=!0;y--;)if(l[y].image){n=void 0;break}A.image?(S(''),I(A.label),S('"):(S(">"),I(A.label),S("
    ")),l.pop()}function le(){C(),l.push({})}function ae(y){b(),l[l.length-1].labelId=this.sliceSerialize(y)}function oe(){C(),x("ignoreEncode",!0)}function se(){l[l.length-1].destination=b(),x("ignoreEncode")}function ce(){l[l.length-1].title=b()}function he(){const y=l[l.length-1],A=it(y.labelId);b(),hn.call(r,A)||(r[A]=l[l.length-1]),l.pop()}function fe(){x("slurpAllLineEndings",!0)}function me(y){w("headingRank")||(x("headingRank",this.sliceSerialize(y).length),L(),S(""))}function ge(){C(),x("slurpAllLineEndings")}function pe(){x("slurpAllLineEndings",!0)}function xe(){S(""),x("headingRank")}function ke(y){x("headingRank",this.sliceSerialize(y).charCodeAt(0)===61?1:2)}function be(){const y=b();L(),S(""),I(y),S(""),x("slurpAllLineEndings"),x("headingRank")}function St(y){I(d(this.sliceSerialize(y)))}function de(y){if(!w("slurpAllLineEndings")){if(w("slurpOneLineEnding")){x("slurpOneLineEnding");return}if(w("inCodeText")){I(" ");return}I(d(this.sliceSerialize(y)))}}function we(y){I(d(this.sliceSerialize(y))),x("flowCodeSeenData",!0)}function tn(){S("
    ")}function Se(){L(),en()}function nn(){x("ignoreEncode")}function en(){e.allowDangerousHtml&&x("ignoreEncode",!0)}function ye(){S("")}function Ce(){S("")}function Ie(){x("inCodeText",!0),S("")}function Ee(){x("inCodeText"),S("")}function ze(){S("")}function Fe(){S("")}function Ae(){L(),S("
    ")}function rn(y){x("characterReferenceType",y.type)}function De(y){const A=this.sliceSerialize(y),U=w("characterReferenceType")?Sr(A,w("characterReferenceType")==="characterReferenceMarkerNumeric"?10:16):Mn(A);I(d(U)),x("characterReferenceType")}function Le(y){const A=this.sliceSerialize(y);S(''),I(d(A)),S("")}function Te(y){const A=this.sliceSerialize(y);S(''),I(d(A)),S("")}}function O(t,e,n,r){const u=r?r-1:Number.POSITIVE_INFINITY;let l=0;return i;function i(c){return _(c)?(t.enter(n),a(c)):e(c)}function a(c){return _(c)&&l++i))return;const R=e.events.length;let N=R,j,k;for(;N--;)if(e.events[N][0]==="exit"&&e.events[N][1].type==="chunkFlow"){if(j){k=e.events[N][1].end;break}j=!0}for(b(r),d=R;dI;){const L=n[P];e.containerState=L[1],L[0].exit.call(e,t)}n.length=I}function S(){u.write([null]),l=void 0,u=void 0,e.containerState._closeFlow=void 0}}function Rr(t,e,n){return O(t,t.attempt(this.parser.constructs.document,e,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Tt(t){if(t===null||q(t)||dt(t))return 1;if(Kt(t))return 2}function Pt(t,e,n){const r=[];let u=-1;for(;++u1&&t[n][1].end.offset-t[n][1].start.offset>1?2:1;const s={...t[r][1].end},p={...t[n][1].start};gn(s,-c),gn(p,c),i={type:c>1?"strongSequence":"emphasisSequence",start:s,end:{...t[r][1].end}},a={type:c>1?"strongSequence":"emphasisSequence",start:{...t[n][1].start},end:p},l={type:c>1?"strongText":"emphasisText",start:{...t[r][1].end},end:{...t[n][1].start}},u={type:c>1?"strong":"emphasis",start:{...i.start},end:{...a.end}},t[r][1].end={...i.start},t[n][1].start={...a.end},o=[],t[r][1].end.offset-t[r][1].start.offset&&(o=$(o,[["enter",t[r][1],e],["exit",t[r][1],e]])),o=$(o,[["enter",u,e],["enter",i,e],["exit",i,e],["enter",l,e]]),o=$(o,Pt(e.parser.constructs.insideSpan.null,t.slice(r+1,n),e)),o=$(o,[["exit",l,e],["enter",a,e],["exit",a,e],["exit",u,e]]),t[n][1].end.offset-t[n][1].start.offset?(f=2,o=$(o,[["enter",t[n][1],e],["exit",t[n][1],e]])):f=0,X(t,r-1,n-r+3,o),n=r+o.length-f-2;break}}for(n=-1;++n0&&_(d)?O(t,S,"linePrefix",l+1)(d):S(d)}function S(d){return d===null||T(d)?t.check(pn,w,P)(d):(t.enter("codeFlowValue"),I(d))}function I(d){return d===null||T(d)?(t.exit("codeFlowValue"),S(d)):(t.consume(d),I)}function P(d){return t.exit("codeFenced"),e(d)}function L(d,R,N){let j=0;return k;function k(E){return d.enter("lineEnding"),d.consume(E),d.exit("lineEnding"),z}function z(E){return d.enter("codeFencedFence"),_(E)?O(d,F,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(E):F(E)}function F(E){return E===a?(d.enter("codeFencedFenceSequence"),M(E)):N(E)}function M(E){return E===a?(j++,d.consume(E),M):j>=i?(d.exit("codeFencedFenceSequence"),_(E)?O(d,D,"whitespace")(E):D(E)):N(E)}function D(E){return E===null||T(E)?(d.exit("codeFencedFence"),R(E)):N(E)}}}function Ur(t,e,n){const r=this;return u;function u(i){return i===null?n(i):(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),l)}function l(i){return r.parser.lazy[r.now().line]?n(i):e(i)}}const Bt={name:"codeIndented",tokenize:Qr},$r={partial:!0,tokenize:Yr};function Qr(t,e,n){const r=this;return u;function u(o){return t.enter("codeIndented"),O(t,l,"linePrefix",5)(o)}function l(o){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?i(o):n(o)}function i(o){return o===null?c(o):T(o)?t.attempt($r,i,c)(o):(t.enter("codeFlowValue"),a(o))}function a(o){return o===null||T(o)?(t.exit("codeFlowValue"),i(o)):(t.consume(o),a)}function c(o){return t.exit("codeIndented"),e(o)}}function Yr(t,e,n){const r=this;return u;function u(i){return r.parser.lazy[r.now().line]?n(i):T(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),u):O(t,l,"linePrefix",5)(i)}function l(i){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?e(i):T(i)?u(i):n(i)}}const Kr={name:"codeText",previous:Gr,resolve:Zr,tokenize:Jr};function Zr(t){let e=t.length-4,n=3,r,u;if((t[n][1].type==="lineEnding"||t[n][1].type==="space")&&(t[e][1].type==="lineEnding"||t[e][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return ethis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(e,n,r){const u=n||0;this.setCursor(Math.trunc(e));const l=this.right.splice(this.right.length-u,Number.POSITIVE_INFINITY);return r&&yt(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),yt(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),yt(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0))if(e=4?e(i):t.interrupt(r.parser.constructs.flow,n,e)(i)}}function Un(t,e,n,r,u,l,i,a,c){const o=c||Number.POSITIVE_INFINITY;let f=0;return s;function s(b){return b===60?(t.enter(r),t.enter(u),t.enter(l),t.consume(b),t.exit(l),p):b===null||b===32||b===41||Lt(b)?n(b):(t.enter(r),t.enter(i),t.enter(a),t.enter("chunkString",{contentType:"string"}),w(b))}function p(b){return b===62?(t.enter(l),t.consume(b),t.exit(l),t.exit(u),t.exit(r),e):(t.enter(a),t.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(t.exit("chunkString"),t.exit(a),p(b)):b===null||b===60||T(b)?n(b):(t.consume(b),b===92?x:h)}function x(b){return b===60||b===62||b===92?(t.consume(b),h):h(b)}function w(b){return!f&&(b===null||b===41||q(b))?(t.exit("chunkString"),t.exit(a),t.exit(i),t.exit(r),e(b)):f999||h===null||h===91||h===93&&!c||h===94&&!a&&"_hiddenFootnoteSupport"in i.parser.constructs?n(h):h===93?(t.exit(l),t.enter(u),t.consume(h),t.exit(u),t.exit(r),e):T(h)?(t.enter("lineEnding"),t.consume(h),t.exit("lineEnding"),f):(t.enter("chunkString",{contentType:"string"}),s(h))}function s(h){return h===null||h===91||h===93||T(h)||a++>999?(t.exit("chunkString"),f(h)):(t.consume(h),c||(c=!_(h)),h===92?p:s)}function p(h){return h===91||h===92||h===93?(t.consume(h),a++,s):s(h)}}function Qn(t,e,n,r,u,l){let i;return a;function a(p){return p===34||p===39||p===40?(t.enter(r),t.enter(u),t.consume(p),t.exit(u),i=p===40?41:p,c):n(p)}function c(p){return p===i?(t.enter(u),t.consume(p),t.exit(u),t.exit(r),e):(t.enter(l),o(p))}function o(p){return p===i?(t.exit(l),c(i)):p===null?n(p):T(p)?(t.enter("lineEnding"),t.consume(p),t.exit("lineEnding"),O(t,o,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===i||p===null||T(p)?(t.exit("chunkString"),o(p)):(t.consume(p),p===92?s:f)}function s(p){return p===i||p===92?(t.consume(p),f):f(p)}}function It(t,e){let n;return r;function r(u){return T(u)?(t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),n=!0,r):_(u)?O(t,r,n?"linePrefix":"lineSuffix")(u):e(u)}}const li={name:"definition",tokenize:oi},ai={partial:!0,tokenize:si};function oi(t,e,n){const r=this;let u;return l;function l(h){return t.enter("definition"),i(h)}function i(h){return $n.call(r,t,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return u=it(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(t.enter("definitionMarker"),t.consume(h),t.exit("definitionMarker"),c):n(h)}function c(h){return q(h)?It(t,o)(h):o(h)}function o(h){return Un(t,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return t.attempt(ai,s,s)(h)}function s(h){return _(h)?O(t,p,"whitespace")(h):p(h)}function p(h){return h===null||T(h)?(t.exit("definition"),r.parser.defined.push(u),e(h)):n(h)}}function si(t,e,n){return r;function r(a){return q(a)?It(t,u)(a):n(a)}function u(a){return Qn(t,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return _(a)?O(t,i,"whitespace")(a):i(a)}function i(a){return a===null||T(a)?e(a):n(a)}}const ci={name:"hardBreakEscape",tokenize:hi};function hi(t,e,n){return r;function r(l){return t.enter("hardBreakEscape"),t.consume(l),u}function u(l){return T(l)?(t.exit("hardBreakEscape"),e(l)):n(l)}}const fi={name:"headingAtx",resolve:mi,tokenize:gi};function mi(t,e){let n=t.length-2,r=3,u,l;return t[r][1].type==="whitespace"&&(r+=2),n-2>r&&t[n][1].type==="whitespace"&&(n-=2),t[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&t[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(u={type:"atxHeadingText",start:t[r][1].start,end:t[n][1].end},l={type:"chunkText",start:t[r][1].start,end:t[n][1].end,contentType:"text"},X(t,r,n-r+1,[["enter",u,e],["enter",l,e],["exit",l,e],["exit",u,e]])),t}function gi(t,e,n){let r=0;return u;function u(f){return t.enter("atxHeading"),l(f)}function l(f){return t.enter("atxHeadingSequence"),i(f)}function i(f){return f===35&&r++<6?(t.consume(f),i):f===null||q(f)?(t.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(t.enter("atxHeadingSequence"),c(f)):f===null||T(f)?(t.exit("atxHeading"),e(f)):_(f)?O(t,a,"whitespace")(f):(t.enter("atxHeadingText"),o(f))}function c(f){return f===35?(t.consume(f),c):(t.exit("atxHeadingSequence"),a(f))}function o(f){return f===null||f===35||q(f)?(t.exit("atxHeadingText"),a(f)):(t.consume(f),o)}}const pi=["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"],kn=["pre","script","style","textarea"],xi={concrete:!0,name:"htmlFlow",resolveTo:di,tokenize:wi},ki={partial:!0,tokenize:yi},bi={partial:!0,tokenize:Si};function di(t){let e=t.length;for(;e--&&!(t[e][0]==="enter"&&t[e][1].type==="htmlFlow"););return e>1&&t[e-2][1].type==="linePrefix"&&(t[e][1].start=t[e-2][1].start,t[e+1][1].start=t[e-2][1].start,t.splice(e-2,2)),t}function wi(t,e,n){const r=this;let u,l,i,a,c;return o;function o(g){return f(g)}function f(g){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(g),s}function s(g){return g===33?(t.consume(g),p):g===47?(t.consume(g),l=!0,w):g===63?(t.consume(g),u=3,r.interrupt?e:m):K(g)?(t.consume(g),i=String.fromCharCode(g),C):n(g)}function p(g){return g===45?(t.consume(g),u=2,h):g===91?(t.consume(g),u=5,a=0,x):K(g)?(t.consume(g),u=4,r.interrupt?e:m):n(g)}function h(g){return g===45?(t.consume(g),r.interrupt?e:m):n(g)}function x(g){const tt="CDATA[";return g===tt.charCodeAt(a++)?(t.consume(g),a===tt.length?r.interrupt?e:F:x):n(g)}function w(g){return K(g)?(t.consume(g),i=String.fromCharCode(g),C):n(g)}function C(g){if(g===null||g===47||g===62||q(g)){const tt=g===47,pt=i.toLowerCase();return!tt&&!l&&kn.includes(pt)?(u=1,r.interrupt?e(g):F(g)):pi.includes(i.toLowerCase())?(u=6,tt?(t.consume(g),b):r.interrupt?e(g):F(g)):(u=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):l?S(g):I(g))}return g===45||Q(g)?(t.consume(g),i+=String.fromCharCode(g),C):n(g)}function b(g){return g===62?(t.consume(g),r.interrupt?e:F):n(g)}function S(g){return _(g)?(t.consume(g),S):k(g)}function I(g){return g===47?(t.consume(g),k):g===58||g===95||K(g)?(t.consume(g),P):_(g)?(t.consume(g),I):k(g)}function P(g){return g===45||g===46||g===58||g===95||Q(g)?(t.consume(g),P):L(g)}function L(g){return g===61?(t.consume(g),d):_(g)?(t.consume(g),L):I(g)}function d(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(t.consume(g),c=g,R):_(g)?(t.consume(g),d):N(g)}function R(g){return g===c?(t.consume(g),c=null,j):g===null||T(g)?n(g):(t.consume(g),R)}function N(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||q(g)?L(g):(t.consume(g),N)}function j(g){return g===47||g===62||_(g)?I(g):n(g)}function k(g){return g===62?(t.consume(g),z):n(g)}function z(g){return g===null||T(g)?F(g):_(g)?(t.consume(g),z):n(g)}function F(g){return g===45&&u===2?(t.consume(g),B):g===60&&u===1?(t.consume(g),H):g===62&&u===4?(t.consume(g),v):g===63&&u===3?(t.consume(g),m):g===93&&u===5?(t.consume(g),W):T(g)&&(u===6||u===7)?(t.exit("htmlFlowData"),t.check(ki,Z,M)(g)):g===null||T(g)?(t.exit("htmlFlowData"),M(g)):(t.consume(g),F)}function M(g){return t.check(bi,D,Z)(g)}function D(g){return t.enter("lineEnding"),t.consume(g),t.exit("lineEnding"),E}function E(g){return g===null||T(g)?M(g):(t.enter("htmlFlowData"),F(g))}function B(g){return g===45?(t.consume(g),m):F(g)}function H(g){return g===47?(t.consume(g),i="",Y):F(g)}function Y(g){if(g===62){const tt=i.toLowerCase();return kn.includes(tt)?(t.consume(g),v):F(g)}return K(g)&&i.length<8?(t.consume(g),i+=String.fromCharCode(g),Y):F(g)}function W(g){return g===93?(t.consume(g),m):F(g)}function m(g){return g===62?(t.consume(g),v):g===45&&u===2?(t.consume(g),m):F(g)}function v(g){return g===null||T(g)?(t.exit("htmlFlowData"),Z(g)):(t.consume(g),v)}function Z(g){return t.exit("htmlFlow"),e(g)}}function Si(t,e,n){const r=this;return u;function u(i){return T(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),l):n(i)}function l(i){return r.parser.lazy[r.now().line]?n(i):e(i)}}function yi(t,e,n){return r;function r(u){return t.enter("lineEnding"),t.consume(u),t.exit("lineEnding"),t.attempt(zt,e,n)}}const Ci={name:"htmlText",tokenize:Ii};function Ii(t,e,n){const r=this;let u,l,i;return a;function a(m){return t.enter("htmlText"),t.enter("htmlTextData"),t.consume(m),c}function c(m){return m===33?(t.consume(m),o):m===47?(t.consume(m),L):m===63?(t.consume(m),I):K(m)?(t.consume(m),N):n(m)}function o(m){return m===45?(t.consume(m),f):m===91?(t.consume(m),l=0,x):K(m)?(t.consume(m),S):n(m)}function f(m){return m===45?(t.consume(m),h):n(m)}function s(m){return m===null?n(m):m===45?(t.consume(m),p):T(m)?(i=s,H(m)):(t.consume(m),s)}function p(m){return m===45?(t.consume(m),h):s(m)}function h(m){return m===62?B(m):m===45?p(m):s(m)}function x(m){const v="CDATA[";return m===v.charCodeAt(l++)?(t.consume(m),l===v.length?w:x):n(m)}function w(m){return m===null?n(m):m===93?(t.consume(m),C):T(m)?(i=w,H(m)):(t.consume(m),w)}function C(m){return m===93?(t.consume(m),b):w(m)}function b(m){return m===62?B(m):m===93?(t.consume(m),b):w(m)}function S(m){return m===null||m===62?B(m):T(m)?(i=S,H(m)):(t.consume(m),S)}function I(m){return m===null?n(m):m===63?(t.consume(m),P):T(m)?(i=I,H(m)):(t.consume(m),I)}function P(m){return m===62?B(m):I(m)}function L(m){return K(m)?(t.consume(m),d):n(m)}function d(m){return m===45||Q(m)?(t.consume(m),d):R(m)}function R(m){return T(m)?(i=R,H(m)):_(m)?(t.consume(m),R):B(m)}function N(m){return m===45||Q(m)?(t.consume(m),N):m===47||m===62||q(m)?j(m):n(m)}function j(m){return m===47?(t.consume(m),B):m===58||m===95||K(m)?(t.consume(m),k):T(m)?(i=j,H(m)):_(m)?(t.consume(m),j):B(m)}function k(m){return m===45||m===46||m===58||m===95||Q(m)?(t.consume(m),k):z(m)}function z(m){return m===61?(t.consume(m),F):T(m)?(i=z,H(m)):_(m)?(t.consume(m),z):j(m)}function F(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(t.consume(m),u=m,M):T(m)?(i=F,H(m)):_(m)?(t.consume(m),F):(t.consume(m),D)}function M(m){return m===u?(t.consume(m),u=void 0,E):m===null?n(m):T(m)?(i=M,H(m)):(t.consume(m),M)}function D(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||q(m)?j(m):(t.consume(m),D)}function E(m){return m===47||m===62||q(m)?j(m):n(m)}function B(m){return m===62?(t.consume(m),t.exit("htmlTextData"),t.exit("htmlText"),e):n(m)}function H(m){return t.exit("htmlTextData"),t.enter("lineEnding"),t.consume(m),t.exit("lineEnding"),Y}function Y(m){return _(m)?O(t,W,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):W(m)}function W(m){return t.enter("htmlTextData"),i(m)}}const Zt={name:"labelEnd",resolveAll:Ai,resolveTo:Di,tokenize:Li},Ei={tokenize:Ti},zi={tokenize:Pi},Fi={tokenize:Ri};function Ai(t){let e=-1;const n=[];for(;++e=3&&(o===null||T(o))?(t.exit("thematicBreak"),e(o)):n(o)}function c(o){return o===u?(t.consume(o),r++,c):(t.exit("thematicBreakSequence"),_(o)?O(t,a,"whitespace")(o):a(o))}}const G={continuation:{tokenize:Vi},exit:Ui,name:"list",tokenize:vi},Hi={partial:!0,tokenize:$i},ji={partial:!0,tokenize:Wi};function vi(t,e,n){const r=this,u=r.events[r.events.length-1];let l=u&&u[1].type==="linePrefix"?u[2].sliceSerialize(u[1],!0).length:0,i=0;return a;function a(h){const x=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(x==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:vt(h)){if(r.containerState.type||(r.containerState.type=x,t.enter(x,{_container:!0})),x==="listUnordered")return t.enter("listItemPrefix"),h===42||h===45?t.check(Dt,n,o)(h):o(h);if(!r.interrupt||h===49)return t.enter("listItemPrefix"),t.enter("listItemValue"),c(h)}return n(h)}function c(h){return vt(h)&&++i<10?(t.consume(h),c):(!r.interrupt||i<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(t.exit("listItemValue"),o(h)):n(h)}function o(h){return t.enter("listItemMarker"),t.consume(h),t.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,t.check(zt,r.interrupt?n:f,t.attempt(Hi,p,s))}function f(h){return r.containerState.initialBlankLine=!0,l++,p(h)}function s(h){return _(h)?(t.enter("listItemPrefixWhitespace"),t.consume(h),t.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=l+r.sliceSerialize(t.exit("listItemPrefix"),!0).length,e(h)}}function Vi(t,e,n){const r=this;return r.containerState._closeFlow=void 0,t.check(zt,u,l);function u(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,O(t,e,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!_(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,t.attempt(ji,e,i)(a))}function i(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,O(t,t.attempt(G,e,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Wi(t,e,n){const r=this;return O(t,u,"listItemIndent",r.containerState.size+1);function u(l){const i=r.events[r.events.length-1];return i&&i[1].type==="listItemIndent"&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?e(l):n(l)}}function Ui(t){t.exit(this.containerState.type)}function $i(t,e,n){const r=this;return O(t,u,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function u(l){const i=r.events[r.events.length-1];return!_(l)&&i&&i[1].type==="listItemPrefixWhitespace"?e(l):n(l)}}const bn={name:"setextUnderline",resolveTo:Qi,tokenize:Yi};function Qi(t,e){let n=t.length,r,u,l;for(;n--;)if(t[n][0]==="enter"){if(t[n][1].type==="content"){r=n;break}t[n][1].type==="paragraph"&&(u=n)}else t[n][1].type==="content"&&t.splice(n,1),!l&&t[n][1].type==="definition"&&(l=n);const i={type:"setextHeading",start:{...t[u][1].start},end:{...t[t.length-1][1].end}};return t[u][1].type="setextHeadingText",l?(t.splice(u,0,["enter",i,e]),t.splice(l+1,0,["exit",t[r][1],e]),t[r][1].end={...t[l][1].end}):t[r][1]=i,t.push(["exit",i,e]),t}function Yi(t,e,n){const r=this;let u;return l;function l(o){let f=r.events.length,s;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){s=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(t.enter("setextHeadingLine"),u=o,i(o)):n(o)}function i(o){return t.enter("setextHeadingLineSequence"),a(o)}function a(o){return o===u?(t.consume(o),a):(t.exit("setextHeadingLineSequence"),_(o)?O(t,c,"lineSuffix")(o):c(o))}function c(o){return o===null||T(o)?(t.exit("setextHeadingLine"),e(o)):n(o)}}const Ki={tokenize:Zi};function Zi(t){const e=this,n=t.attempt(zt,r,t.attempt(this.parser.constructs.flowInitial,u,O(t,t.attempt(this.parser.constructs.flow,u,t.attempt(ni,u)),"linePrefix")));return n;function r(l){if(l===null){t.consume(l);return}return t.enter("lineEndingBlank"),t.consume(l),t.exit("lineEndingBlank"),e.currentConstruct=void 0,n}function u(l){if(l===null){t.consume(l);return}return t.enter("lineEnding"),t.consume(l),t.exit("lineEnding"),e.currentConstruct=void 0,n}}const Gi={resolveAll:Kn()},Ji=Yn("string"),Xi=Yn("text");function Yn(t){return{resolveAll:Kn(t==="text"?tu:void 0),tokenize:e};function e(n){const r=this,u=this.parser.constructs[t],l=n.attempt(u,i,a);return i;function i(f){return o(f)?l(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),c}function c(f){return o(f)?(n.exit("data"),l(f)):(n.consume(f),c)}function o(f){if(f===null)return!0;const s=u[f];let p=-1;if(s)for(;++p-1){const a=i[0];typeof a=="string"?i[0]=a.slice(r):i.shift()}l>0&&i.push(t[u].slice(0,l))}return i}function mu(t,e){let n=-1;const r=[];let u;for(;++n0&&!n&&(t[t.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function Au(){return{exit:{literalAutolinkEmail:Lu,literalAutolinkHttp:Tu,literalAutolinkWww:Du}}}function Du(t){Jt.call(this,t,"http://")}function Lu(t){Jt.call(this,t,"mailto:")}function Tu(t){Jt.call(this,t)}function Jt(t,e){const n=this.sliceSerialize(t);this.tag(''),this.raw(this.encode(n)),this.tag("")}const Pu={tokenize:Hu,partial:!0};function Ru(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Mu,continuation:{tokenize:Nu},exit:qu}},text:{91:{name:"gfmFootnoteCall",tokenize:Bu},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:_u,resolveTo:Ou}}}}function _u(t,e,n){const r=this;let u=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let i;for(;u--;){const c=r.events[u][1];if(c.type==="labelImage"){i=c;break}if(c.type==="gfmFootnoteCall"||c.type==="labelLink"||c.type==="label"||c.type==="image"||c.type==="link")break}return a;function a(c){if(!i||!i._balanced)return n(c);const o=it(r.sliceSerialize({start:i.end,end:r.now()}));return o.codePointAt(0)!==94||!l.includes(o.slice(1))?n(c):(t.enter("gfmFootnoteCallLabelMarker"),t.consume(c),t.exit("gfmFootnoteCallLabelMarker"),e(c))}}function Ou(t,e){let n=t.length;for(;n--;)if(t[n][1].type==="labelImage"&&t[n][0]==="enter"){t[n][1];break}t[n+1][1].type="data",t[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},t[n+3][1].start),end:Object.assign({},t[t.length-1][1].end)},u={type:"gfmFootnoteCallMarker",start:Object.assign({},t[n+3][1].end),end:Object.assign({},t[n+3][1].end)};u.end.column++,u.end.offset++,u.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},u.end),end:Object.assign({},t[t.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},a=[t[n+1],t[n+2],["enter",r,e],t[n+3],t[n+4],["enter",u,e],["exit",u,e],["enter",l,e],["enter",i,e],["exit",i,e],["exit",l,e],t[t.length-2],t[t.length-1],["exit",r,e]];return t.splice(n,t.length-n+1,...a),t}function Bu(t,e,n){const r=this,u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,i;return a;function a(s){return t.enter("gfmFootnoteCall"),t.enter("gfmFootnoteCallLabelMarker"),t.consume(s),t.exit("gfmFootnoteCallLabelMarker"),c}function c(s){return s!==94?n(s):(t.enter("gfmFootnoteCallMarker"),t.consume(s),t.exit("gfmFootnoteCallMarker"),t.enter("gfmFootnoteCallString"),t.enter("chunkString").contentType="string",o)}function o(s){if(l>999||s===93&&!i||s===null||s===91||q(s))return n(s);if(s===93){t.exit("chunkString");const p=t.exit("gfmFootnoteCallString");return u.includes(it(r.sliceSerialize(p)))?(t.enter("gfmFootnoteCallLabelMarker"),t.consume(s),t.exit("gfmFootnoteCallLabelMarker"),t.exit("gfmFootnoteCall"),e):n(s)}return q(s)||(i=!0),l++,t.consume(s),s===92?f:o}function f(s){return s===91||s===92||s===93?(t.consume(s),l++,o):o(s)}}function Mu(t,e,n){const r=this,u=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,i=0,a;return c;function c(x){return t.enter("gfmFootnoteDefinition")._container=!0,t.enter("gfmFootnoteDefinitionLabel"),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(x),t.exit("gfmFootnoteDefinitionLabelMarker"),o}function o(x){return x===94?(t.enter("gfmFootnoteDefinitionMarker"),t.consume(x),t.exit("gfmFootnoteDefinitionMarker"),t.enter("gfmFootnoteDefinitionLabelString"),t.enter("chunkString").contentType="string",f):n(x)}function f(x){if(i>999||x===93&&!a||x===null||x===91||q(x))return n(x);if(x===93){t.exit("chunkString");const w=t.exit("gfmFootnoteDefinitionLabelString");return l=it(r.sliceSerialize(w)),t.enter("gfmFootnoteDefinitionLabelMarker"),t.consume(x),t.exit("gfmFootnoteDefinitionLabelMarker"),t.exit("gfmFootnoteDefinitionLabel"),p}return q(x)||(a=!0),i++,t.consume(x),x===92?s:f}function s(x){return x===91||x===92||x===93?(t.consume(x),i++,f):f(x)}function p(x){return x===58?(t.enter("definitionMarker"),t.consume(x),t.exit("definitionMarker"),u.includes(l)||u.push(l),O(t,h,"gfmFootnoteDefinitionWhitespace")):n(x)}function h(x){return e(x)}}function Nu(t,e,n){return t.check(zt,e,t.attempt(Pu,e,n))}function qu(t){t.exit("gfmFootnoteDefinition")}function Hu(t,e,n){const r=this;return O(t,u,"gfmFootnoteDefinitionIndent",5);function u(l){const i=r.events[r.events.length-1];return i&&i[1].type==="gfmFootnoteDefinitionIndent"&&i[2].sliceSerialize(i[1],!0).length===4?e(l):n(l)}}const ju={}.hasOwnProperty,vu={};function Vu(t,e){return"Back to reference "+(t+1)+(e>1?"-"+e:"")}function Wu(t){const e=vu,n=e.label||"Footnotes",r=e.labelTagName||"h2",u=e.labelAttributes===null||e.labelAttributes===void 0?'class="sr-only"':e.labelAttributes,l=e.backLabel||Vu,i=e.clobberPrefix===null||e.clobberPrefix===void 0?"user-content-":e.clobberPrefix;return{enter:{gfmFootnoteDefinition(){this.getData("tightStack").push(!1)},gfmFootnoteDefinitionLabelString(){this.buffer()},gfmFootnoteCallString(){this.buffer()}},exit:{gfmFootnoteDefinition(){let a=this.getData("gfmFootnoteDefinitions");const c=this.getData("gfmFootnoteDefinitionStack"),o=this.getData("tightStack"),f=c.pop(),s=this.resume();a||this.setData("gfmFootnoteDefinitions",a={}),ju.call(a,f)||(a[f]=s),o.pop(),this.setData("slurpOneLineEnding",!0),this.setData("lastWasTag")},gfmFootnoteDefinitionLabelString(a){let c=this.getData("gfmFootnoteDefinitionStack");c||this.setData("gfmFootnoteDefinitionStack",c=[]),c.push(it(this.sliceSerialize(a))),this.resume(),this.buffer()},gfmFootnoteCallString(a){let c=this.getData("gfmFootnoteCallOrder"),o=this.getData("gfmFootnoteCallCounts");const f=it(this.sliceSerialize(a));let s;this.resume(),c||this.setData("gfmFootnoteCallOrder",c=[]),o||this.setData("gfmFootnoteCallCounts",o={});const p=c.indexOf(f),h=mt(f.toLowerCase());p===-1?(c.push(f),o[f]=1,s=c.length):(o[f]++,s=p+1);const x=o[f];this.tag('1?"-"+x:"")+'" data-footnote-ref="" aria-describedby="footnote-label">'+String(s)+"")},null(){const a=this.getData("gfmFootnoteCallOrder")||[],c=this.getData("gfmFootnoteCallCounts")||{},o=this.getData("gfmFootnoteDefinitions")||{};let f=-1;for(a.length>0&&(this.lineEndingIfNeeded(),this.tag('
    <'+r+' id="footnote-label"'+(u?" "+u:"")+">"),this.raw(this.encode(n)),this.tag(""),this.lineEndingIfNeeded(),this.tag("
      "));++f1?"-"+h:"")+'" data-footnote-backref="" aria-label="'+this.encode(typeof l=="string"?l:l(f,h))+'" class="data-footnote-backref">↩'+(h>1?""+h+"":"")+"");const w=x.join(" ");let C=!1;this.lineEndingIfNeeded(),this.tag('
    1. '),this.lineEndingIfNeeded(),this.tag(o[s].replace(/<\/p>(?:\r?\n|\r)?$/,function(b){return C=!0," "+w+b})),C||(this.lineEndingIfNeeded(),this.tag(w)),this.lineEndingIfNeeded(),this.tag("
    2. ")}a.length>0&&(this.lineEndingIfNeeded(),this.tag("
    "),this.lineEndingIfNeeded(),this.tag("
    "))}}}}function Uu(){return{enter:{strikethrough(){this.tag("")}},exit:{strikethrough(){this.tag("")}}}}function $u(t){let n={}.singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:u};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function u(i,a){let c=-1;for(;++c1?c(x):(i.consume(x),s++,h);if(s<2&&!n)return c(x);const C=i.exit("strikethroughSequenceTemporary"),b=Tt(x);return C._open=!b||b===2&&!!w,C._close=!w||w===2&&!!b,a(x)}}}const Nt={none:"",left:' align="left"',right:' align="right"',center:' align="center"'};function Qu(){return{enter:{table(t){const e=t._align;this.lineEndingIfNeeded(),this.tag(""),this.setData("tableAlign",e)},tableBody(){this.tag("")},tableData(){const t=this.getData("tableAlign"),e=this.getData("tableColumn"),n=Nt[t[e]];n===void 0?this.buffer():(this.lineEndingIfNeeded(),this.tag(""))},tableHead(){this.lineEndingIfNeeded(),this.tag("")},tableHeader(){const t=this.getData("tableAlign"),e=this.getData("tableColumn"),n=Nt[t[e]];this.lineEndingIfNeeded(),this.tag("")},tableRow(){this.setData("tableColumn",0),this.lineEndingIfNeeded(),this.tag("")}},exit:{codeTextData(t){let e=this.sliceSerialize(t);this.getData("tableAlign")&&(e=e.replace(/\\([\\|])/g,Yu)),this.raw(this.encode(e))},table(){this.setData("tableAlign"),this.setData("slurpAllLineEndings"),this.lineEndingIfNeeded(),this.tag("
    ")},tableBody(){this.lineEndingIfNeeded(),this.tag("")},tableData(){const t=this.getData("tableAlign"),e=this.getData("tableColumn");e in t?(this.tag(""),this.setData("tableColumn",e+1)):this.resume()},tableHead(){this.lineEndingIfNeeded(),this.tag("")},tableHeader(){const t=this.getData("tableColumn");this.tag(""),this.setData("tableColumn",t+1)},tableRow(){const t=this.getData("tableAlign");let e=this.getData("tableColumn");for(;e"),e++;this.setData("tableColumn",e),this.lineEndingIfNeeded(),this.tag("")}}}}function Yu(t,e){return e==="|"?e:t}class Ku{constructor(){this.map=[]}add(e,n,r){Zu(this,e,n,r)}consume(e){if(this.map.sort(function(l,i){return l[0]-i[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(e.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),e.length=this.map[n][0];r.push([...e]),e.length=0;let u=r.pop();for(;u;)e.push(...u),u=r.pop();this.map.length=0}}function Zu(t,e,n,r){let u=0;if(!(n===0&&r.length===0)){for(;u-1;){const D=r.events[z][1].type;if(D==="lineEnding"||D==="linePrefix")z--;else break}const F=z>-1?r.events[z][1].type:null,M=F==="tableHead"||F==="tableRow"?d:c;return M===d&&r.parser.lazy[r.now().line]?n(k):M(k)}function c(k){return t.enter("tableHead"),t.enter("tableRow"),o(k)}function o(k){return k===124||(i=!0,l+=1),f(k)}function f(k){return k===null?n(k):T(k)?l>1?(l=0,r.interrupt=!0,t.exit("tableRow"),t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),h):n(k):_(k)?O(t,f,"whitespace")(k):(l+=1,i&&(i=!1,u+=1),k===124?(t.enter("tableCellDivider"),t.consume(k),t.exit("tableCellDivider"),i=!0,f):(t.enter("data"),s(k)))}function s(k){return k===null||k===124||q(k)?(t.exit("data"),f(k)):(t.consume(k),k===92?p:s)}function p(k){return k===92||k===124?(t.consume(k),s):s(k)}function h(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(k):(t.enter("tableDelimiterRow"),i=!1,_(k)?O(t,x,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):x(k))}function x(k){return k===45||k===58?C(k):k===124?(i=!0,t.enter("tableCellDivider"),t.consume(k),t.exit("tableCellDivider"),w):L(k)}function w(k){return _(k)?O(t,C,"whitespace")(k):C(k)}function C(k){return k===58?(l+=1,i=!0,t.enter("tableDelimiterMarker"),t.consume(k),t.exit("tableDelimiterMarker"),b):k===45?(l+=1,b(k)):k===null||T(k)?P(k):L(k)}function b(k){return k===45?(t.enter("tableDelimiterFiller"),S(k)):L(k)}function S(k){return k===45?(t.consume(k),S):k===58?(i=!0,t.exit("tableDelimiterFiller"),t.enter("tableDelimiterMarker"),t.consume(k),t.exit("tableDelimiterMarker"),I):(t.exit("tableDelimiterFiller"),I(k))}function I(k){return _(k)?O(t,P,"whitespace")(k):P(k)}function P(k){return k===124?x(k):k===null||T(k)?!i||u!==l?L(k):(t.exit("tableDelimiterRow"),t.exit("tableHead"),e(k)):L(k)}function L(k){return n(k)}function d(k){return t.enter("tableRow"),R(k)}function R(k){return k===124?(t.enter("tableCellDivider"),t.consume(k),t.exit("tableCellDivider"),R):k===null||T(k)?(t.exit("tableRow"),e(k)):_(k)?O(t,R,"whitespace")(k):(t.enter("data"),N(k))}function N(k){return k===null||k===124||q(k)?(t.exit("data"),R(k)):(t.consume(k),k===92?j:N)}function j(k){return k===92||k===124?(t.consume(k),N):N(k)}}function tl(t,e){let n=-1,r=!0,u=0,l=[0,0,0,0],i=[0,0,0,0],a=!1,c=0,o,f,s;const p=new Ku;for(;++nn[2]+1){const x=n[2]+1,w=n[3]-n[2]-1;t.add(x,w,[])}}t.add(n[3]+1,0,[["exit",s,e]])}return u!==void 0&&(l.end=Object.assign({},bt(e.events,u)),t.add(u,0,[["exit",l,e]]),l=void 0),l}function wn(t,e,n,r,u){const l=[],i=bt(e.events,n);u&&(u.end=Object.assign({},i),l.push(["exit",u,e])),r.end=Object.assign({},i),l.push(["exit",r,e]),t.add(n+1,0,l)}function bt(t,e){const n=t[e],r=n[0]==="enter"?"start":"end";return n[1][r]}const ie=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|title|textarea|xmp)(?=[\t\n\f\r />])/gi,nl=new RegExp("^"+ie.source,"i");function el(){return{exit:{htmlFlowData(t){Sn.call(this,t,ie)},htmlTextData(t){Sn.call(this,t,nl)}}}}function Sn(t,e){let n=this.sliceSerialize(t);this.options.allowDangerousHtml&&(n=n.replace(e,"<$1$2")),this.raw(this.encode(n))}function rl(){return{enter:{taskListCheck(){this.tag('")},taskListCheckValueChecked(){this.tag('checked="" ')}}}}const il={name:"tasklistCheck",tokenize:ll};function ul(){return{text:{91:il}}}function ll(t,e,n){const r=this;return u;function u(c){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(c):(t.enter("taskListCheck"),t.enter("taskListCheckMarker"),t.consume(c),t.exit("taskListCheckMarker"),l)}function l(c){return q(c)?(t.enter("taskListCheckValueUnchecked"),t.consume(c),t.exit("taskListCheckValueUnchecked"),i):c===88||c===120?(t.enter("taskListCheckValueChecked"),t.consume(c),t.exit("taskListCheckValueChecked"),i):n(c)}function i(c){return c===93?(t.enter("taskListCheckMarker"),t.consume(c),t.exit("taskListCheckMarker"),t.exit("taskListCheck"),a):n(c)}function a(c){return T(c)?e(c):_(c)?t.check({tokenize:al},e,n)(c):n(c)}}function al(t,e,n){return O(t,r,"whitespace");function r(u){return u===null?n(u):e(u)}}function xl(t){return Nn([du(),Ru(),$u(),Ju(),ul()])}function kl(t){return qn([Au(),Wu(),Uu(),Qu(),el(),rl()])}export{gl as A,fl as R,hl as a,kl as b,ml as c,xl as g,pl as m,cl as u};