@fabiofiorita/porcelain 0.63.2 → 0.63.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,20 +1,20 @@
1
- import{j as V,r as ke,ad as Qr,bl as Gr,B as Xr,b3 as Yr,ao as Jr,am as Kr,a8 as Zr,an as ei,aw as ti,bm as Bn,bn as Ft,bo as ni,bp as ri,bq as ii,br as li,bs as oi,bt as Jt,a7 as Kt,n as ai,a6 as ui,T as jn}from"./index-BG75F5tP.js";const si={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};function bt(e){return typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(bt).join(""):ke.isValidElement(e)?bt(e.props.children):""}function ci(e){const n=ke.Children.toArray(e);if(n.length!==1)return null;const t=n[0];return!ke.isValidElement(t)||t.type!=="code"?null:{className:t.props.className,code:bt(t.props.children)}}const fi=/(?:^|\s)language-(\S+)/;function hi(e){return e?.match(fi)?.[1]??null}function pi({code:e,language:n}){const[t,r]=ke.useState(!1),i=e.replace(/\n$/,""),o=i.split(`
1
+ import{j as V,r as ke,ad as Qr,bn as Gr,B as Xr,b5 as Yr,aq as Jr,ao as Kr,a8 as Zr,ap as ei,ay as ti,bo as Bn,bp as Ft,bq as ni,br as ri,bs as ii,bt as li,bu as oi,bv as Jt,a7 as Kt,n as ai,a6 as ui,T as jn}from"./index-CuWbxCsX.js";const si={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};function bt(e){return typeof e=="string"||typeof e=="number"?String(e):Array.isArray(e)?e.map(bt).join(""):ke.isValidElement(e)?bt(e.props.children):""}function ci(e){const n=ke.Children.toArray(e);if(n.length!==1)return null;const t=n[0];return!ke.isValidElement(t)||t.type!=="code"?null:{className:t.props.className,code:bt(t.props.children)}}const fi=/(?:^|\s)language-(\S+)/;function hi(e){return e?.match(fi)?.[1]??null}function pi({code:e,language:n}){const[t,r]=ke.useState(!1),i=e.replace(/\n$/,""),o=i.split(`
2
2
  `),l=Qr(i,Gr(n)),a=async()=>{await ei(i),r(!0),setTimeout(()=>r(!1),1500)};return V.jsxs("div",{className:"not-prose overflow-hidden rounded-lg border border-border bg-muted/40",children:[V.jsxs("div",{className:"flex items-center justify-between gap-2 border-b border-border px-3 py-1.5",children:[V.jsx("span",{className:"truncate font-mono text-2xs text-muted-foreground",children:n??"text"}),V.jsx(Xr,{type:"button",variant:"ghost",size:"icon-xs",className:"text-muted-foreground hover:text-foreground",onClick:()=>{Kr(()=>a(),u=>{ti("Copy code",u)})},"aria-label":t?"Copied":"Copy code",children:t?V.jsx(Yr,{className:"size-3"}):V.jsx(Jr,{className:"size-3"})})]}),V.jsx("div",{className:"overflow-x-auto px-3 py-2.5",children:V.jsx("code",{className:"grid font-mono text-xs-minus leading-relaxed text-foreground/90",children:o.map((u,s)=>V.jsx(Zr,{tokens:l?.[s]??null,text:u},s))})})]})}function mi({node:e,children:n,...t}){const r=ci(n);return r?V.jsx(pi,{code:r.code,language:hi(r.className)}):V.jsx("pre",{...t,children:n})}const gi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,di=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,xi={};function Zt(e,n){return(xi.jsx?di:gi).test(e)}var Se={},rt,en;function ki(){if(en)return rt;en=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,u=`
3
- `,s="/",f="*",c="",p="comment",h="declaration";function d(C,x){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];x=x||{};var E=1,S=1;function L(_){var A=_.match(n);A&&(E+=A.length);var H=_.lastIndexOf(u);S=~H?_.length-H:S+_.length}function D(){var _={line:E,column:S};return function(A){return A.position=new b(_),M(),A}}function b(_){this.start=_,this.end={line:E,column:S},this.source=x.source}b.prototype.content=C;function R(_){var A=new Error(x.source+":"+E+":"+S+": "+_);if(A.reason=_,A.filename=x.source,A.line=E,A.column=S,A.source=C,!x.silent)throw A}function B(_){var A=_.exec(C);if(A){var H=A[0];return L(H),C=C.slice(H.length),A}}function M(){B(t)}function k(_){var A;for(_=_||[];A=T();)A!==!1&&_.push(A);return _}function T(){var _=D();if(!(s!=C.charAt(0)||f!=C.charAt(1))){for(var A=2;c!=C.charAt(A)&&(f!=C.charAt(A)||s!=C.charAt(A+1));)++A;if(A+=2,c===C.charAt(A-1))return R("End of comment missing");var H=C.slice(2,A-2);return S+=2,L(H),C=C.slice(A),S+=2,_({type:p,comment:H})}}function z(){var _=D(),A=B(r);if(A){if(T(),!B(i))return R("property missing ':'");var H=B(o),U=_({type:h,property:w(A[0].replace(e,c)),value:H?w(H[0].replace(e,c)):c});return B(l),U}}function j(){var _=[];k(_);for(var A;A=z();)A!==!1&&(_.push(A),k(_));return _}return M(),j()}function w(C){return C?C.replace(a,c):c}return rt=d,rt}var tn;function yi(){if(tn)return Se;tn=1;var e=Se&&Se.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Se,"__esModule",{value:!0}),Se.default=t;const n=e(ki());function t(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,n.default)(r),a=typeof i=="function";return l.forEach(u=>{if(u.type!=="declaration")return;const{property:s,value:f}=u;a?i(s,f,u):f&&(o=o||{},o[s]=f)}),o}return Se}var Pe={},nn;function bi(){if(nn)return Pe;nn=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(s){return!s||t.test(s)||e.test(s)},l=function(s,f){return f.toUpperCase()},a=function(s,f){return"".concat(f,"-")},u=function(s,f){return f===void 0&&(f={}),o(s)?s:(s=s.toLowerCase(),f.reactCompat?s=s.replace(i,a):s=s.replace(r,a),s.replace(n,l))};return Pe.camelCase=u,Pe}var Le,rn;function wi(){if(rn)return Le;rn=1;var e=Le&&Le.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(yi()),t=bi();function r(i,o){var l={};return!i||typeof i!="string"||(0,n.default)(i,function(a,u){a&&u&&(l[(0,t.camelCase)(a,o)]=u)}),l}return r.default=r,Le=r,Le}var Ci=wi();const Si=Bn(Ci),Hn=$n("end"),_t=$n("start");function $n(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Ei(e){const n=_t(e),t=Hn(e);if(n&&t)return{start:n,end:t}}function Re(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ln(e.position):"start"in e||"end"in e?ln(e):"line"in e||"column"in e?wt(e):""}function wt(e){return on(e&&e.line)+":"+on(e&&e.column)}function ln(e){return wt(e&&e.start)+"-"+wt(e&&e.end)}function on(e){return e&&typeof e=="number"?e:1}class G extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Re(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}G.prototype.file="";G.prototype.name="";G.prototype.reason="";G.prototype.message="";G.prototype.stack="";G.prototype.column=void 0;G.prototype.line=void 0;G.prototype.ancestors=void 0;G.prototype.cause=void 0;G.prototype.fatal=void 0;G.prototype.place=void 0;G.prototype.ruleId=void 0;G.prototype.source=void 0;const Pt={}.hasOwnProperty,Ii=new Map,Ai=/[A-Z]/g,Ti=new Set(["table","tbody","thead","tfoot","tr"]),zi=new Set(["td","th"]),qn="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Fi(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Oi(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=vi(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Ft:ni,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=Vn(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Vn(e,n,t){if(n.type==="element")return _i(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Pi(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Di(e,n,t);if(n.type==="mdxjsEsm")return Li(e,n);if(n.type==="root")return Ni(e,n,t);if(n.type==="text")return Ri(e,n)}function _i(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ft,e.schema=i),e.ancestors.push(n);const o=Wn(e,n.tagName,!1),l=Mi(e,n);let a=Dt(e,n);return Ti.has(n.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!ri(u):!0})),Un(e,l,o,n),Lt(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function Pi(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Me(e,n.position)}function Li(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Me(e,n.position)}function Di(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Ft,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:Wn(e,n.name,!0),l=Bi(e,n),a=Dt(e,n);return Un(e,l,o,n),Lt(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function Ni(e,n,t){const r={};return Lt(r,Dt(e,n)),e.create(n,e.Fragment,r,t)}function Ri(e,n){return n.value}function Un(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Lt(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function vi(e,n,t){return r;function r(i,o,l,a){const s=Array.isArray(l.children)?t:n;return a?s(o,l,a):s(o,l)}}function Oi(e,n){return t;function t(r,i,o,l){const a=Array.isArray(o.children),u=_t(r);return n(i,o,l,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Mi(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Pt.call(n.properties,i)){const o=ji(e,i,n.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&zi.has(n.tagName)?r=a:t[l]=a}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Bi(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Me(e,n.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Me(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function Dt(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Ii;for(;++r<n.children.length;){const o=n.children[r];let l;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const s=i.get(u)||0;l=u+"-"+s,i.set(u,s+1)}}const a=Vn(e,o,l);a!==void 0&&t.push(a)}return t}function ji(e,n,t){const r=ii(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?li(t):oi(t)),r.property==="style"){let i=typeof t=="object"?t:Hi(e,String(t));return e.stylePropertyNameCase==="css"&&(i=$i(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?si[r.property]||r.property:r.attribute,t]}}function Hi(e,n){try{return Si(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new G("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=qn+"#cannot-parse-style-attribute",i}}function Wn(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let o=-1,l;for(;++o<i.length;){const a=Zt(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=Zt(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Pt.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Me(e)}function Me(e,n){const t=new G("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=qn+"#cannot-handle-mdx-estrees-without-createevaluater",t}function $i(e){const n={};let t;for(t in e)Pt.call(e,t)&&(n[qi(t)]=e[t]);return n}function qi(e){let n=e.replace(Ai,Vi);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Vi(e){return"-"+e.toLowerCase()}const it={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Ui={};function Nt(e,n){const t=Ui,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Qn(e,r,i)}function Qn(e,n,t){if(Wi(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return an(e.children,n,t)}return Array.isArray(e)?an(e,n,t):""}function an(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Qn(e[i],n,t);return r.join("")}function Wi(e){return!!(e&&typeof e=="object")}const un=document.createElement("i");function Rt(e){const n="&"+e+";";un.innerHTML=n;const t=un.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function K(e,n,t,r){const i=e.length;let o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function Z(e,n){return e.length>0?(K(e,e.length,0,n),e):n}const sn={}.hasOwnProperty;function Gn(e){const n={};let t=-1;for(;++t<e.length;)Qi(n,e[t]);return n}function Qi(e,n){let t;for(t in n){const i=(sn.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){sn.call(i,l)||(i[l]=[]);const a=o[l];Gi(i[l],Array.isArray(a)?a:a?[a]:[])}}}function Gi(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);K(e,0,0,r)}function Xn(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function ie(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const X=me(/[A-Za-z]/),Q=me(/[\dA-Za-z]/),Xi=me(/[#-'*+\--9=?A-Z^-~]/);function Ge(e){return e!==null&&(e<32||e===127)}const Ct=me(/\d/),Yi=me(/[\dA-Fa-f]/),Ji=me(/[!-/:-@[-`{-~]/);function F(e){return e!==null&&e<-2}function q(e){return e!==null&&(e<0||e===32)}function N(e){return e===-2||e===-1||e===32}const Ke=me(new RegExp("\\p{P}|\\p{S}","u")),ye=me(/\s/);function me(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Te(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&Q(e.charCodeAt(t+1))&&Q(e.charCodeAt(t+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(t+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function O(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(u){return N(u)?(e.enter(t),a(u)):n(u)}function a(u){return N(u)&&o++<i?(e.consume(u),a):(e.exit(t),n(u))}}const Ki={tokenize:Zi};function Zi(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),O(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const u=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=u),t=u,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return F(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const el={tokenize:tl},cn={tokenize:nl};function tl(e){const n=this,t=[];let r=0,i,o,l;return a;function a(S){if(r<t.length){const L=t[r];return n.containerState=L[1],e.attempt(L[0].continuation,u,s)(S)}return s(S)}function u(S){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&E();const L=n.events.length;let D=L,b;for(;D--;)if(n.events[D][0]==="exit"&&n.events[D][1].type==="chunkFlow"){b=n.events[D][1].end;break}x(r);let R=L;for(;R<n.events.length;)n.events[R][1].end={...b},R++;return K(n.events,D+1,0,n.events.slice(L)),n.events.length=R,s(S)}return a(S)}function s(S){if(r===t.length){if(!i)return p(S);if(i.currentConstruct&&i.currentConstruct.concrete)return d(S);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(cn,f,c)(S)}function f(S){return i&&E(),x(r),p(S)}function c(S){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,d(S)}function p(S){return n.containerState={},e.attempt(cn,h,d)(S)}function h(S){return r++,t.push([n.currentConstruct,n.containerState]),p(S)}function d(S){if(S===null){i&&E(),x(0),e.consume(S);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),w(S)}function w(S){if(S===null){C(e.exit("chunkFlow"),!0),x(0),e.consume(S);return}return F(S)?(e.consume(S),C(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(S),w)}function C(S,L){const D=n.sliceStream(S);if(L&&D.push(null),S.previous=o,o&&(o.next=S),o=S,i.defineSkip(S.start),i.write(D),n.parser.lazy[S.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<l&&(!i.events[b][1].end||i.events[b][1].end.offset>l))return;const R=n.events.length;let B=R,M,k;for(;B--;)if(n.events[B][0]==="exit"&&n.events[B][1].type==="chunkFlow"){if(M){k=n.events[B][1].end;break}M=!0}for(x(r),b=R;b<n.events.length;)n.events[b][1].end={...k},b++;K(n.events,B+1,0,n.events.slice(R)),n.events.length=b}}function x(S){let L=t.length;for(;L-- >S;){const D=t[L];n.containerState=D[1],D[0].exit.call(n,e)}t.length=S}function E(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function nl(e,n,t){return O(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ae(e){if(e===null||q(e)||ye(e))return 1;if(Ke(e))return 2}function Ze(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const St={name:"attention",resolveAll:rl,tokenize:il};function rl(e,n){let t=-1,r,i,o,l,a,u,s,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[t][1].start};fn(c,-u),fn(p,u),l={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:u>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[t][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=Z(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=Z(s,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",o,n]]),s=Z(s,Ze(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=Z(s,[["exit",o,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,s=Z(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,K(e,r-1,t-r+3,s),t=r+s.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function il(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ae(r);let o;return l;function l(u){return o=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===o)return e.consume(u),a;const s=e.exit("attentionSequence"),f=Ae(u),c=!f||f===2&&i||t.includes(u),p=!i||i===2&&f||t.includes(r);return s._open=!!(o===42?c:c&&(i||!p)),s._close=!!(o===42?p:p&&(f||!c)),n(u)}}function fn(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const ll={name:"autolink",tokenize:ol};function ol(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return X(h)?(e.consume(h),l):h===64?t(h):s(h)}function l(h){return h===43||h===45||h===46||Q(h)?(r=1,a(h)):s(h)}function a(h){return h===58?(e.consume(h),r=0,u):(h===43||h===45||h===46||Q(h))&&r++<32?(e.consume(h),a):(r=0,s(h))}function u(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||Ge(h)?t(h):(e.consume(h),u)}function s(h){return h===64?(e.consume(h),f):Xi(h)?(e.consume(h),s):t(h)}function f(h){return Q(h)?c(h):t(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):p(h)}function p(h){if((h===45||Q(h))&&r++<63){const d=h===45?p:c;return e.consume(h),d}return t(h)}}const je={partial:!0,tokenize:al};function al(e,n,t){return r;function r(o){return N(o)?O(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||F(o)?n(o):t(o)}}const Yn={continuation:{tokenize:sl},exit:cl,name:"blockQuote",tokenize:ul};function ul(e,n,t){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return t(l)}function o(l){return N(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function sl(e,n,t){const r=this;return i;function i(l){return N(l)?O(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Yn,n,t)(l)}}function cl(e){e.exit("blockQuote")}const Jn={name:"characterEscape",tokenize:fl};function fl(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Ji(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const Kn={name:"characterReference",tokenize:hl};function hl(e,n,t){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=Q,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Yi,f):(e.enter("characterReferenceValue"),o=7,l=Ct,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===Q&&!Rt(r.sliceSerialize(p))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(c)&&i++<o?(e.consume(c),f):t(c)}}const hn={partial:!0,tokenize:ml},pn={concrete:!0,name:"codeFenced",tokenize:pl};function pl(e,n,t){const r=this,i={partial:!0,tokenize:D};let o=0,l=0,a;return u;function u(b){return s(b)}function s(b){const R=r.events[r.events.length-1];return o=R&&R[1].type==="linePrefix"?R[2].sliceSerialize(R[1],!0).length:0,a=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(b)}function f(b){return b===a?(l++,e.consume(b),f):l<3?t(b):(e.exit("codeFencedFenceSequence"),N(b)?O(e,c,"whitespace")(b):c(b))}function c(b){return b===null||F(b)?(e.exit("codeFencedFence"),r.interrupt?n(b):e.check(hn,w,L)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||F(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):N(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),O(e,h,"whitespace")(b)):b===96&&b===a?t(b):(e.consume(b),p)}function h(b){return b===null||F(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===null||F(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===a?t(b):(e.consume(b),d)}function w(b){return e.attempt(i,L,C)(b)}function C(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),x}function x(b){return o>0&&N(b)?O(e,E,"linePrefix",o+1)(b):E(b)}function E(b){return b===null||F(b)?e.check(hn,w,L)(b):(e.enter("codeFlowValue"),S(b))}function S(b){return b===null||F(b)?(e.exit("codeFlowValue"),E(b)):(e.consume(b),S)}function L(b){return e.exit("codeFenced"),n(b)}function D(b,R,B){let M=0;return k;function k(A){return b.enter("lineEnding"),b.consume(A),b.exit("lineEnding"),T}function T(A){return b.enter("codeFencedFence"),N(A)?O(b,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):z(A)}function z(A){return A===a?(b.enter("codeFencedFenceSequence"),j(A)):B(A)}function j(A){return A===a?(M++,b.consume(A),j):M>=l?(b.exit("codeFencedFenceSequence"),N(A)?O(b,_,"whitespace")(A):_(A)):B(A)}function _(A){return A===null||F(A)?(b.exit("codeFencedFence"),R(A)):B(A)}}}function ml(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const lt={name:"codeIndented",tokenize:dl},gl={partial:!0,tokenize:xl};function dl(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),O(e,o,"linePrefix",5)(s)}function o(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(s):t(s)}function l(s){return s===null?u(s):F(s)?e.attempt(gl,l,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||F(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),n(s)}}function xl(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):F(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):O(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):F(l)?i(l):t(l)}}const kl={name:"codeText",previous:bl,resolve:yl,tokenize:wl};function yl(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function bl(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function wl(e,n,t){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):F(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||F(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(o.type="codeTextData",s(c))}}class Cl{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&De(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),De(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),De(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);De(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);De(this.left,t.reverse())}}}function De(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Zn(e){const n={};let t=-1,r,i,o,l,a,u,s;const f=new Cl(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Sl(f,t)),t=n[t],s=!0);else if(r[1]._container){for(o=t,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,t),a.unshift(r),f.splice(i,t-i+1,a))}}return K(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function Sl(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,u=[],s={};let f,c,p=-1,h=t,d=0,w=0;const C=[w];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=t;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(w=p+1,C.push(w),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),p=C.length;p--;){const x=a.slice(C[p],C[p+1]),E=o.pop();u.push([E,E+x.length-1]),e.splice(E,2,x)}for(u.reverse(),p=-1;++p<u.length;)s[d+u[p][0]]=d+u[p][1],d+=u[p][1]-u[p][0]-1;return s}const El={resolve:Al,tokenize:Tl},Il={partial:!0,tokenize:zl};function Al(e){return Zn(e),e}function Tl(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):F(a)?e.check(Il,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function l(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function zl(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),O(e,o,"linePrefix")}function o(l){if(l===null||F(l))return t(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function er(e,n,t,r,i,o,l,a,u){const s=u||Number.POSITIVE_INFINITY;let f=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(x),e.exit(o),p):x===null||x===32||x===41||Ge(x)?t(x):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),w(x))}function p(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(a),p(x)):x===null||x===60||F(x)?t(x):(e.consume(x),x===92?d:h)}function d(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function w(x){return!f&&(x===null||x===41||q(x))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(x)):f<s&&x===40?(e.consume(x),f++,w):x===41?(e.consume(x),f--,w):x===null||x===32||x===40||Ge(x)?t(x):(e.consume(x),x===92?C:w)}function C(x){return x===40||x===41||x===92?(e.consume(x),w):w(x)}}function tr(e,n,t,r,i,o){const l=this;let a=0,u;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return a>999||h===null||h===91||h===93&&!u||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):F(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||F(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),u||(u=!N(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function nr(e,n,t,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,u):t(p)}function u(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(o),s(p))}function s(p){return p===l?(e.exit(o),u(l)):p===null?t(p):F(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),O(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||F(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function ve(e,n){let t;return r;function r(i){return F(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):N(i)?O(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Fl={name:"definition",tokenize:Pl},_l={partial:!0,tokenize:Ll};function Pl(e,n,t){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return tr.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=ie(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):t(h)}function u(h){return q(h)?ve(e,s)(h):s(h)}function s(h){return er(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(_l,c,c)(h)}function c(h){return N(h)?O(e,p,"whitespace")(h):p(h)}function p(h){return h===null||F(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function Ll(e,n,t){return r;function r(a){return q(a)?ve(e,i)(a):t(a)}function i(a){return nr(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return N(a)?O(e,l,"whitespace")(a):l(a)}function l(a){return a===null||F(a)?n(a):t(a)}}const Dl={name:"hardBreakEscape",tokenize:Nl};function Nl(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return F(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const Rl={name:"headingAtx",resolve:vl,tokenize:Ol};function vl(e,n){let t=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},K(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function Ol(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||q(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||F(f)?(e.exit("atxHeading"),n(f)):N(f)?O(e,a,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),a(f))}function s(f){return f===null||f===35||q(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),s)}}const Ml=["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"],mn=["pre","script","style","textarea"],Bl={concrete:!0,name:"htmlFlow",resolveTo:$l,tokenize:ql},jl={partial:!0,tokenize:Ul},Hl={partial:!0,tokenize:Vl};function $l(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function ql(e,n,t){const r=this;let i,o,l,a,u;return s;function s(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),p):g===47?(e.consume(g),o=!0,w):g===63?(e.consume(g),i=3,r.interrupt?n:m):X(g)?(e.consume(g),l=String.fromCharCode(g),C):t(g)}function p(g){return g===45?(e.consume(g),i=2,h):g===91?(e.consume(g),i=5,a=0,d):X(g)?(e.consume(g),i=4,r.interrupt?n:m):t(g)}function h(g){return g===45?(e.consume(g),r.interrupt?n:m):t(g)}function d(g){const ne="CDATA[";return g===ne.charCodeAt(a++)?(e.consume(g),a===ne.length?r.interrupt?n:z:d):t(g)}function w(g){return X(g)?(e.consume(g),l=String.fromCharCode(g),C):t(g)}function C(g){if(g===null||g===47||g===62||q(g)){const ne=g===47,ge=l.toLowerCase();return!ne&&!o&&mn.includes(ge)?(i=1,r.interrupt?n(g):z(g)):Ml.includes(l.toLowerCase())?(i=6,ne?(e.consume(g),x):r.interrupt?n(g):z(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(g):o?E(g):S(g))}return g===45||Q(g)?(e.consume(g),l+=String.fromCharCode(g),C):t(g)}function x(g){return g===62?(e.consume(g),r.interrupt?n:z):t(g)}function E(g){return N(g)?(e.consume(g),E):k(g)}function S(g){return g===47?(e.consume(g),k):g===58||g===95||X(g)?(e.consume(g),L):N(g)?(e.consume(g),S):k(g)}function L(g){return g===45||g===46||g===58||g===95||Q(g)?(e.consume(g),L):D(g)}function D(g){return g===61?(e.consume(g),b):N(g)?(e.consume(g),D):S(g)}function b(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),u=g,R):N(g)?(e.consume(g),b):B(g)}function R(g){return g===u?(e.consume(g),u=null,M):g===null||F(g)?t(g):(e.consume(g),R)}function B(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||q(g)?D(g):(e.consume(g),B)}function M(g){return g===47||g===62||N(g)?S(g):t(g)}function k(g){return g===62?(e.consume(g),T):t(g)}function T(g){return g===null||F(g)?z(g):N(g)?(e.consume(g),T):t(g)}function z(g){return g===45&&i===2?(e.consume(g),H):g===60&&i===1?(e.consume(g),U):g===62&&i===4?(e.consume(g),te):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),ae):F(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(jl,ue,j)(g)):g===null||F(g)?(e.exit("htmlFlowData"),j(g)):(e.consume(g),z)}function j(g){return e.check(Hl,_,ue)(g)}function _(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),A}function A(g){return g===null||F(g)?j(g):(e.enter("htmlFlowData"),z(g))}function H(g){return g===45?(e.consume(g),m):z(g)}function U(g){return g===47?(e.consume(g),l="",ee):z(g)}function ee(g){if(g===62){const ne=l.toLowerCase();return mn.includes(ne)?(e.consume(g),te):z(g)}return X(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),ee):z(g)}function ae(g){return g===93?(e.consume(g),m):z(g)}function m(g){return g===62?(e.consume(g),te):g===45&&i===2?(e.consume(g),m):z(g)}function te(g){return g===null||F(g)?(e.exit("htmlFlowData"),ue(g)):(e.consume(g),te)}function ue(g){return e.exit("htmlFlow"),n(g)}}function Vl(e,n,t){const r=this;return i;function i(l){return F(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):t(l)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function Ul(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(je,n,t)}}const Wl={name:"htmlText",tokenize:Ql};function Ql(e,n,t){const r=this;let i,o,l;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),u}function u(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),D):m===63?(e.consume(m),S):X(m)?(e.consume(m),B):t(m)}function s(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,d):X(m)?(e.consume(m),E):t(m)}function f(m){return m===45?(e.consume(m),h):t(m)}function c(m){return m===null?t(m):m===45?(e.consume(m),p):F(m)?(l=c,U(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?H(m):m===45?p(m):c(m)}function d(m){const te="CDATA[";return m===te.charCodeAt(o++)?(e.consume(m),o===te.length?w:d):t(m)}function w(m){return m===null?t(m):m===93?(e.consume(m),C):F(m)?(l=w,U(m)):(e.consume(m),w)}function C(m){return m===93?(e.consume(m),x):w(m)}function x(m){return m===62?H(m):m===93?(e.consume(m),x):w(m)}function E(m){return m===null||m===62?H(m):F(m)?(l=E,U(m)):(e.consume(m),E)}function S(m){return m===null?t(m):m===63?(e.consume(m),L):F(m)?(l=S,U(m)):(e.consume(m),S)}function L(m){return m===62?H(m):S(m)}function D(m){return X(m)?(e.consume(m),b):t(m)}function b(m){return m===45||Q(m)?(e.consume(m),b):R(m)}function R(m){return F(m)?(l=R,U(m)):N(m)?(e.consume(m),R):H(m)}function B(m){return m===45||Q(m)?(e.consume(m),B):m===47||m===62||q(m)?M(m):t(m)}function M(m){return m===47?(e.consume(m),H):m===58||m===95||X(m)?(e.consume(m),k):F(m)?(l=M,U(m)):N(m)?(e.consume(m),M):H(m)}function k(m){return m===45||m===46||m===58||m===95||Q(m)?(e.consume(m),k):T(m)}function T(m){return m===61?(e.consume(m),z):F(m)?(l=T,U(m)):N(m)?(e.consume(m),T):M(m)}function z(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,j):F(m)?(l=z,U(m)):N(m)?(e.consume(m),z):(e.consume(m),_)}function j(m){return m===i?(e.consume(m),i=void 0,A):m===null?t(m):F(m)?(l=j,U(m)):(e.consume(m),j)}function _(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||q(m)?M(m):(e.consume(m),_)}function A(m){return m===47||m===62||q(m)?M(m):t(m)}function H(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function U(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ee}function ee(m){return N(m)?O(e,ae,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):ae(m)}function ae(m){return e.enter("htmlTextData"),l(m)}}const vt={name:"labelEnd",resolveAll:Jl,resolveTo:Kl,tokenize:Zl},Gl={tokenize:eo},Xl={tokenize:to},Yl={tokenize:no};function Jl(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&K(e,0,e.length,t),e}function Kl(e,n){let t=e.length,r=0,i,o,l,a;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",u,n],["enter",s,n]],a=Z(a,e.slice(o+1,o+r+3)),a=Z(a,[["enter",f,n]]),a=Z(a,Ze(n.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),n)),a=Z(a,[["exit",f,n],e[l-2],e[l-1],["exit",s,n]]),a=Z(a,e.slice(l+1)),a=Z(a,[["exit",u,n]]),K(e,o,e.length,a),e}function Zl(e,n,t){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(ie(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):t(p)}function u(p){return p===40?e.attempt(Gl,f,l?f:c)(p):p===91?e.attempt(Xl,f,l?s:c)(p):l?f(p):c(p)}function s(p){return e.attempt(Yl,f,c)(p)}function f(p){return n(p)}function c(p){return o._balanced=!0,t(p)}}function eo(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return q(c)?ve(e,o)(c):o(c)}function o(c){return c===41?f(c):er(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return q(c)?ve(e,u)(c):f(c)}function a(c){return t(c)}function u(c){return c===34||c===39||c===40?nr(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return q(c)?ve(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function to(e,n,t){const r=this;return i;function i(a){return tr.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(ie(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function l(a){return t(a)}}function no(e,n,t){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):t(o)}}const ro={name:"labelStartImage",resolveAll:vt.resolveAll,tokenize:io};function io(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const lo={name:"labelStartLink",resolveAll:vt.resolveAll,tokenize:oo};function oo(e,n,t){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const ot={name:"lineEnding",tokenize:ao};function ao(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),O(e,n,"linePrefix")}}const Qe={name:"thematicBreak",tokenize:uo};function uo(e,n,t){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||F(s))?(e.exit("thematicBreak"),n(s)):t(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),N(s)?O(e,a,"whitespace")(s):a(s))}}const Y={continuation:{tokenize:ho},exit:mo,name:"list",tokenize:fo},so={partial:!0,tokenize:go},co={partial:!0,tokenize:po};function fo(e,n,t){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(h){const d=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Ct(h)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Qe,t,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return t(h)}function u(h){return Ct(h)&&++l<10?(e.consume(h),u):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):t(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(je,r.interrupt?t:f,e.attempt(so,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return N(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function ho(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(je,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,O(e,n,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!N(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(co,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,O(e,e.attempt(Y,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function po(e,n,t){const r=this;return O(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(o):t(o)}}function mo(e){e.exit(this.containerState.type)}function go(e,n,t){const r=this;return O(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!N(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const gn={name:"setextUnderline",resolveTo:xo,tokenize:ko};function xo(e,n){let t=e.length,r,i,o;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!o&&e[t][1].type==="definition"&&(o=t);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function ko(e,n,t){const r=this;let i;return o;function o(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,l(s)):t(s)}function l(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),N(s)?O(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||F(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const yo={tokenize:bo};function bo(e){const n=this,t=e.attempt(je,r,e.attempt(this.parser.constructs.flowInitial,i,O(e,e.attempt(this.parser.constructs.flow,i,e.attempt(El,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const wo={resolveAll:ir()},Co=rr("string"),So=rr("text");function rr(e){return{resolveAll:ir(e==="text"?Eo:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,a);return l;function l(f){return s(f)?o(f):a(f)}function a(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),u}function u(f){return s(f)?(t.exit("data"),o(f)):(t.consume(f),u)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function ir(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function Eo(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let o=i.length,l=-1,a=0,u;for(;o--;){const s=i[o];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(s===-2)u=!0,a++;else if(s!==-1){o++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const s={type:t===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(t,0,["enter",s,n],["exit",s,n]),t+=2)}t++}return e}const Io={42:Y,43:Y,45:Y,48:Y,49:Y,50:Y,51:Y,52:Y,53:Y,54:Y,55:Y,56:Y,57:Y,62:Yn},Ao={91:Fl},To={[-2]:lt,[-1]:lt,32:lt},zo={35:Rl,42:Qe,45:[gn,Qe],60:Bl,61:gn,95:Qe,96:pn,126:pn},Fo={38:Kn,92:Jn},_o={[-5]:ot,[-4]:ot,[-3]:ot,33:ro,38:Kn,42:St,60:[ll,Wl],91:lo,92:[Dl,Jn],93:vt,95:St,96:kl},Po={null:[St,wo]},Lo={null:[42,95]},Do={null:[]},No=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Lo,contentInitial:Ao,disable:Do,document:Io,flow:zo,flowInitial:To,insideSpan:Po,string:Fo,text:_o},Symbol.toStringTag,{value:"Module"}));function Ro(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let l=[],a=[];const u={attempt:R(D),check:R(b),consume:E,enter:S,exit:L,interrupt:R(b,{interrupt:!0})},s={code:null,containerState:{},defineSkip:w,events:[],now:d,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=n.tokenize.call(s,u);return n.resolveAll&&o.push(n),s;function c(T){return l=Z(l,T),C(),l[l.length-1]!==null?[]:(B(n,0),s.events=Ze(o,s.events,s),s.events)}function p(T,z){return Oo(h(T),z)}function h(T){return vo(l,T)}function d(){const{_bufferIndex:T,_index:z,line:j,column:_,offset:A}=r;return{_bufferIndex:T,_index:z,line:j,column:_,offset:A}}function w(T){i[T.line]=T.column,k()}function C(){let T;for(;r._index<l.length;){const z=l[r._index];if(typeof z=="string")for(T=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===T&&r._bufferIndex<z.length;)x(z.charCodeAt(r._bufferIndex));else x(z)}}function x(T){f=f(T)}function E(T){F(T)?(r.line++,r.column=1,r.offset+=T===-3?2:1,k()):T!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=T}function S(T,z){const j=z||{};return j.type=T,j.start=d(),s.events.push(["enter",j,s]),a.push(j),j}function L(T){const z=a.pop();return z.end=d(),s.events.push(["exit",z,s]),z}function D(T,z){B(T,z.from)}function b(T,z){z.restore()}function R(T,z){return j;function j(_,A,H){let U,ee,ae,m;return Array.isArray(_)?ue(_):"tokenize"in _?ue([_]):te(_);function te(W){return ze;function ze(he){const be=he!==null&&W[he],we=he!==null&&W.null,$e=[...Array.isArray(be)?be:be?[be]:[],...Array.isArray(we)?we:we?[we]:[]];return ue($e)(he)}}function ue(W){return U=W,ee=0,W.length===0?H:g(W[ee])}function g(W){return ze;function ze(he){return m=M(),ae=W,W.partial||(s.currentConstruct=W),W.name&&s.parser.constructs.disable.null.includes(W.name)?ge():W.tokenize.call(z?Object.assign(Object.create(s),z):s,u,ne,ge)(he)}}function ne(W){return T(ae,m),A}function ge(W){return m.restore(),++ee<U.length?g(U[ee]):H}}}function B(T,z){T.resolveAll&&!o.includes(T)&&o.push(T),T.resolve&&K(s.events,z,s.events.length-z,T.resolve(s.events.slice(z),s)),T.resolveTo&&(s.events=T.resolveTo(s.events,s))}function M(){const T=d(),z=s.previous,j=s.currentConstruct,_=s.events.length,A=Array.from(a);return{from:_,restore:H};function H(){r=T,s.previous=z,s.currentConstruct=j,s.events.length=_,a=A,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function vo(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function Oo(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
3
+ `,s="/",f="*",c="",p="comment",h="declaration";function d(C,x){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];x=x||{};var E=1,S=1;function L(_){var A=_.match(n);A&&(E+=A.length);var H=_.lastIndexOf(u);S=~H?_.length-H:S+_.length}function D(){var _={line:E,column:S};return function(A){return A.position=new b(_),M(),A}}function b(_){this.start=_,this.end={line:E,column:S},this.source=x.source}b.prototype.content=C;function v(_){var A=new Error(x.source+":"+E+":"+S+": "+_);if(A.reason=_,A.filename=x.source,A.line=E,A.column=S,A.source=C,!x.silent)throw A}function B(_){var A=_.exec(C);if(A){var H=A[0];return L(H),C=C.slice(H.length),A}}function M(){B(t)}function k(_){var A;for(_=_||[];A=T();)A!==!1&&_.push(A);return _}function T(){var _=D();if(!(s!=C.charAt(0)||f!=C.charAt(1))){for(var A=2;c!=C.charAt(A)&&(f!=C.charAt(A)||s!=C.charAt(A+1));)++A;if(A+=2,c===C.charAt(A-1))return v("End of comment missing");var H=C.slice(2,A-2);return S+=2,L(H),C=C.slice(A),S+=2,_({type:p,comment:H})}}function z(){var _=D(),A=B(r);if(A){if(T(),!B(i))return v("property missing ':'");var H=B(o),U=_({type:h,property:w(A[0].replace(e,c)),value:H?w(H[0].replace(e,c)):c});return B(l),U}}function j(){var _=[];k(_);for(var A;A=z();)A!==!1&&(_.push(A),k(_));return _}return M(),j()}function w(C){return C?C.replace(a,c):c}return rt=d,rt}var tn;function yi(){if(tn)return Se;tn=1;var e=Se&&Se.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Se,"__esModule",{value:!0}),Se.default=t;const n=e(ki());function t(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,n.default)(r),a=typeof i=="function";return l.forEach(u=>{if(u.type!=="declaration")return;const{property:s,value:f}=u;a?i(s,f,u):f&&(o=o||{},o[s]=f)}),o}return Se}var Pe={},nn;function bi(){if(nn)return Pe;nn=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(s){return!s||t.test(s)||e.test(s)},l=function(s,f){return f.toUpperCase()},a=function(s,f){return"".concat(f,"-")},u=function(s,f){return f===void 0&&(f={}),o(s)?s:(s=s.toLowerCase(),f.reactCompat?s=s.replace(i,a):s=s.replace(r,a),s.replace(n,l))};return Pe.camelCase=u,Pe}var Le,rn;function wi(){if(rn)return Le;rn=1;var e=Le&&Le.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(yi()),t=bi();function r(i,o){var l={};return!i||typeof i!="string"||(0,n.default)(i,function(a,u){a&&u&&(l[(0,t.camelCase)(a,o)]=u)}),l}return r.default=r,Le=r,Le}var Ci=wi();const Si=Bn(Ci),Hn=$n("end"),_t=$n("start");function $n(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Ei(e){const n=_t(e),t=Hn(e);if(n&&t)return{start:n,end:t}}function ve(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ln(e.position):"start"in e||"end"in e?ln(e):"line"in e||"column"in e?wt(e):""}function wt(e){return on(e&&e.line)+":"+on(e&&e.column)}function ln(e){return wt(e&&e.start)+"-"+wt(e&&e.end)}function on(e){return e&&typeof e=="number"?e:1}class G extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=ve(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}G.prototype.file="";G.prototype.name="";G.prototype.reason="";G.prototype.message="";G.prototype.stack="";G.prototype.column=void 0;G.prototype.line=void 0;G.prototype.ancestors=void 0;G.prototype.cause=void 0;G.prototype.fatal=void 0;G.prototype.place=void 0;G.prototype.ruleId=void 0;G.prototype.source=void 0;const Pt={}.hasOwnProperty,Ii=new Map,Ai=/[A-Z]/g,Ti=new Set(["table","tbody","thead","tfoot","tr"]),zi=new Set(["td","th"]),qn="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Fi(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Oi(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Ri(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Ft:ni,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=Vn(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Vn(e,n,t){if(n.type==="element")return _i(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Pi(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Di(e,n,t);if(n.type==="mdxjsEsm")return Li(e,n);if(n.type==="root")return Ni(e,n,t);if(n.type==="text")return vi(e,n)}function _i(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ft,e.schema=i),e.ancestors.push(n);const o=Wn(e,n.tagName,!1),l=Mi(e,n);let a=Dt(e,n);return Ti.has(n.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!ri(u):!0})),Un(e,l,o,n),Lt(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function Pi(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Me(e,n.position)}function Li(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Me(e,n.position)}function Di(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Ft,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:Wn(e,n.name,!0),l=Bi(e,n),a=Dt(e,n);return Un(e,l,o,n),Lt(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function Ni(e,n,t){const r={};return Lt(r,Dt(e,n)),e.create(n,e.Fragment,r,t)}function vi(e,n){return n.value}function Un(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Lt(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Ri(e,n,t){return r;function r(i,o,l,a){const s=Array.isArray(l.children)?t:n;return a?s(o,l,a):s(o,l)}}function Oi(e,n){return t;function t(r,i,o,l){const a=Array.isArray(o.children),u=_t(r);return n(i,o,l,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Mi(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Pt.call(n.properties,i)){const o=ji(e,i,n.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&zi.has(n.tagName)?r=a:t[l]=a}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function Bi(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Me(e,n.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Me(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function Dt(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Ii;for(;++r<n.children.length;){const o=n.children[r];let l;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const s=i.get(u)||0;l=u+"-"+s,i.set(u,s+1)}}const a=Vn(e,o,l);a!==void 0&&t.push(a)}return t}function ji(e,n,t){const r=ii(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?li(t):oi(t)),r.property==="style"){let i=typeof t=="object"?t:Hi(e,String(t));return e.stylePropertyNameCase==="css"&&(i=$i(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?si[r.property]||r.property:r.attribute,t]}}function Hi(e,n){try{return Si(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new G("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=qn+"#cannot-parse-style-attribute",i}}function Wn(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let o=-1,l;for(;++o<i.length;){const a=Zt(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=Zt(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Pt.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Me(e)}function Me(e,n){const t=new G("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=qn+"#cannot-handle-mdx-estrees-without-createevaluater",t}function $i(e){const n={};let t;for(t in e)Pt.call(e,t)&&(n[qi(t)]=e[t]);return n}function qi(e){let n=e.replace(Ai,Vi);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Vi(e){return"-"+e.toLowerCase()}const it={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Ui={};function Nt(e,n){const t=Ui,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Qn(e,r,i)}function Qn(e,n,t){if(Wi(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return an(e.children,n,t)}return Array.isArray(e)?an(e,n,t):""}function an(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Qn(e[i],n,t);return r.join("")}function Wi(e){return!!(e&&typeof e=="object")}const un=document.createElement("i");function vt(e){const n="&"+e+";";un.innerHTML=n;const t=un.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function K(e,n,t,r){const i=e.length;let o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function Z(e,n){return e.length>0?(K(e,e.length,0,n),e):n}const sn={}.hasOwnProperty;function Gn(e){const n={};let t=-1;for(;++t<e.length;)Qi(n,e[t]);return n}function Qi(e,n){let t;for(t in n){const i=(sn.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){sn.call(i,l)||(i[l]=[]);const a=o[l];Gi(i[l],Array.isArray(a)?a:a?[a]:[])}}}function Gi(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);K(e,0,0,r)}function Xn(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function ie(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const X=me(/[A-Za-z]/),Q=me(/[\dA-Za-z]/),Xi=me(/[#-'*+\--9=?A-Z^-~]/);function Ge(e){return e!==null&&(e<32||e===127)}const Ct=me(/\d/),Yi=me(/[\dA-Fa-f]/),Ji=me(/[!-/:-@[-`{-~]/);function F(e){return e!==null&&e<-2}function q(e){return e!==null&&(e<0||e===32)}function N(e){return e===-2||e===-1||e===32}const Ke=me(new RegExp("\\p{P}|\\p{S}","u")),ye=me(/\s/);function me(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Te(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&Q(e.charCodeAt(t+1))&&Q(e.charCodeAt(t+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(t+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function O(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(u){return N(u)?(e.enter(t),a(u)):n(u)}function a(u){return N(u)&&o++<i?(e.consume(u),a):(e.exit(t),n(u))}}const Ki={tokenize:Zi};function Zi(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),O(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const u=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=u),t=u,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return F(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const el={tokenize:tl},cn={tokenize:nl};function tl(e){const n=this,t=[];let r=0,i,o,l;return a;function a(S){if(r<t.length){const L=t[r];return n.containerState=L[1],e.attempt(L[0].continuation,u,s)(S)}return s(S)}function u(S){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&E();const L=n.events.length;let D=L,b;for(;D--;)if(n.events[D][0]==="exit"&&n.events[D][1].type==="chunkFlow"){b=n.events[D][1].end;break}x(r);let v=L;for(;v<n.events.length;)n.events[v][1].end={...b},v++;return K(n.events,D+1,0,n.events.slice(L)),n.events.length=v,s(S)}return a(S)}function s(S){if(r===t.length){if(!i)return p(S);if(i.currentConstruct&&i.currentConstruct.concrete)return d(S);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(cn,f,c)(S)}function f(S){return i&&E(),x(r),p(S)}function c(S){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,d(S)}function p(S){return n.containerState={},e.attempt(cn,h,d)(S)}function h(S){return r++,t.push([n.currentConstruct,n.containerState]),p(S)}function d(S){if(S===null){i&&E(),x(0),e.consume(S);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),w(S)}function w(S){if(S===null){C(e.exit("chunkFlow"),!0),x(0),e.consume(S);return}return F(S)?(e.consume(S),C(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(S),w)}function C(S,L){const D=n.sliceStream(S);if(L&&D.push(null),S.previous=o,o&&(o.next=S),o=S,i.defineSkip(S.start),i.write(D),n.parser.lazy[S.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<l&&(!i.events[b][1].end||i.events[b][1].end.offset>l))return;const v=n.events.length;let B=v,M,k;for(;B--;)if(n.events[B][0]==="exit"&&n.events[B][1].type==="chunkFlow"){if(M){k=n.events[B][1].end;break}M=!0}for(x(r),b=v;b<n.events.length;)n.events[b][1].end={...k},b++;K(n.events,B+1,0,n.events.slice(v)),n.events.length=b}}function x(S){let L=t.length;for(;L-- >S;){const D=t[L];n.containerState=D[1],D[0].exit.call(n,e)}t.length=S}function E(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function nl(e,n,t){return O(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ae(e){if(e===null||q(e)||ye(e))return 1;if(Ke(e))return 2}function Ze(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const St={name:"attention",resolveAll:rl,tokenize:il};function rl(e,n){let t=-1,r,i,o,l,a,u,s,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[t][1].start};fn(c,-u),fn(p,u),l={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:u>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[t][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=Z(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=Z(s,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",o,n]]),s=Z(s,Ze(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=Z(s,[["exit",o,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,s=Z(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,K(e,r-1,t-r+3,s),t=r+s.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function il(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ae(r);let o;return l;function l(u){return o=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===o)return e.consume(u),a;const s=e.exit("attentionSequence"),f=Ae(u),c=!f||f===2&&i||t.includes(u),p=!i||i===2&&f||t.includes(r);return s._open=!!(o===42?c:c&&(i||!p)),s._close=!!(o===42?p:p&&(f||!c)),n(u)}}function fn(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const ll={name:"autolink",tokenize:ol};function ol(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return X(h)?(e.consume(h),l):h===64?t(h):s(h)}function l(h){return h===43||h===45||h===46||Q(h)?(r=1,a(h)):s(h)}function a(h){return h===58?(e.consume(h),r=0,u):(h===43||h===45||h===46||Q(h))&&r++<32?(e.consume(h),a):(r=0,s(h))}function u(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||Ge(h)?t(h):(e.consume(h),u)}function s(h){return h===64?(e.consume(h),f):Xi(h)?(e.consume(h),s):t(h)}function f(h){return Q(h)?c(h):t(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):p(h)}function p(h){if((h===45||Q(h))&&r++<63){const d=h===45?p:c;return e.consume(h),d}return t(h)}}const je={partial:!0,tokenize:al};function al(e,n,t){return r;function r(o){return N(o)?O(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||F(o)?n(o):t(o)}}const Yn={continuation:{tokenize:sl},exit:cl,name:"blockQuote",tokenize:ul};function ul(e,n,t){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return t(l)}function o(l){return N(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function sl(e,n,t){const r=this;return i;function i(l){return N(l)?O(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Yn,n,t)(l)}}function cl(e){e.exit("blockQuote")}const Jn={name:"characterEscape",tokenize:fl};function fl(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Ji(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const Kn={name:"characterReference",tokenize:hl};function hl(e,n,t){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=Q,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Yi,f):(e.enter("characterReferenceValue"),o=7,l=Ct,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===Q&&!vt(r.sliceSerialize(p))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(c)&&i++<o?(e.consume(c),f):t(c)}}const hn={partial:!0,tokenize:ml},pn={concrete:!0,name:"codeFenced",tokenize:pl};function pl(e,n,t){const r=this,i={partial:!0,tokenize:D};let o=0,l=0,a;return u;function u(b){return s(b)}function s(b){const v=r.events[r.events.length-1];return o=v&&v[1].type==="linePrefix"?v[2].sliceSerialize(v[1],!0).length:0,a=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(b)}function f(b){return b===a?(l++,e.consume(b),f):l<3?t(b):(e.exit("codeFencedFenceSequence"),N(b)?O(e,c,"whitespace")(b):c(b))}function c(b){return b===null||F(b)?(e.exit("codeFencedFence"),r.interrupt?n(b):e.check(hn,w,L)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||F(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):N(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),O(e,h,"whitespace")(b)):b===96&&b===a?t(b):(e.consume(b),p)}function h(b){return b===null||F(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===null||F(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===a?t(b):(e.consume(b),d)}function w(b){return e.attempt(i,L,C)(b)}function C(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),x}function x(b){return o>0&&N(b)?O(e,E,"linePrefix",o+1)(b):E(b)}function E(b){return b===null||F(b)?e.check(hn,w,L)(b):(e.enter("codeFlowValue"),S(b))}function S(b){return b===null||F(b)?(e.exit("codeFlowValue"),E(b)):(e.consume(b),S)}function L(b){return e.exit("codeFenced"),n(b)}function D(b,v,B){let M=0;return k;function k(A){return b.enter("lineEnding"),b.consume(A),b.exit("lineEnding"),T}function T(A){return b.enter("codeFencedFence"),N(A)?O(b,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):z(A)}function z(A){return A===a?(b.enter("codeFencedFenceSequence"),j(A)):B(A)}function j(A){return A===a?(M++,b.consume(A),j):M>=l?(b.exit("codeFencedFenceSequence"),N(A)?O(b,_,"whitespace")(A):_(A)):B(A)}function _(A){return A===null||F(A)?(b.exit("codeFencedFence"),v(A)):B(A)}}}function ml(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const lt={name:"codeIndented",tokenize:dl},gl={partial:!0,tokenize:xl};function dl(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),O(e,o,"linePrefix",5)(s)}function o(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(s):t(s)}function l(s){return s===null?u(s):F(s)?e.attempt(gl,l,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||F(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),n(s)}}function xl(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):F(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):O(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):F(l)?i(l):t(l)}}const kl={name:"codeText",previous:bl,resolve:yl,tokenize:wl};function yl(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function bl(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function wl(e,n,t){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):F(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||F(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(o.type="codeTextData",s(c))}}class Cl{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&De(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),De(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),De(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);De(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);De(this.left,t.reverse())}}}function De(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Zn(e){const n={};let t=-1,r,i,o,l,a,u,s;const f=new Cl(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Sl(f,t)),t=n[t],s=!0);else if(r[1]._container){for(o=t,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,t),a.unshift(r),f.splice(i,t-i+1,a))}}return K(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function Sl(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,u=[],s={};let f,c,p=-1,h=t,d=0,w=0;const C=[w];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=t;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(w=p+1,C.push(w),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),p=C.length;p--;){const x=a.slice(C[p],C[p+1]),E=o.pop();u.push([E,E+x.length-1]),e.splice(E,2,x)}for(u.reverse(),p=-1;++p<u.length;)s[d+u[p][0]]=d+u[p][1],d+=u[p][1]-u[p][0]-1;return s}const El={resolve:Al,tokenize:Tl},Il={partial:!0,tokenize:zl};function Al(e){return Zn(e),e}function Tl(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):F(a)?e.check(Il,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function l(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function zl(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),O(e,o,"linePrefix")}function o(l){if(l===null||F(l))return t(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function er(e,n,t,r,i,o,l,a,u){const s=u||Number.POSITIVE_INFINITY;let f=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(x),e.exit(o),p):x===null||x===32||x===41||Ge(x)?t(x):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),w(x))}function p(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(a),p(x)):x===null||x===60||F(x)?t(x):(e.consume(x),x===92?d:h)}function d(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function w(x){return!f&&(x===null||x===41||q(x))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(x)):f<s&&x===40?(e.consume(x),f++,w):x===41?(e.consume(x),f--,w):x===null||x===32||x===40||Ge(x)?t(x):(e.consume(x),x===92?C:w)}function C(x){return x===40||x===41||x===92?(e.consume(x),w):w(x)}}function tr(e,n,t,r,i,o){const l=this;let a=0,u;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return a>999||h===null||h===91||h===93&&!u||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):F(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||F(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),u||(u=!N(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function nr(e,n,t,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,u):t(p)}function u(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(o),s(p))}function s(p){return p===l?(e.exit(o),u(l)):p===null?t(p):F(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),O(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||F(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function Re(e,n){let t;return r;function r(i){return F(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):N(i)?O(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Fl={name:"definition",tokenize:Pl},_l={partial:!0,tokenize:Ll};function Pl(e,n,t){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return tr.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=ie(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):t(h)}function u(h){return q(h)?Re(e,s)(h):s(h)}function s(h){return er(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(_l,c,c)(h)}function c(h){return N(h)?O(e,p,"whitespace")(h):p(h)}function p(h){return h===null||F(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function Ll(e,n,t){return r;function r(a){return q(a)?Re(e,i)(a):t(a)}function i(a){return nr(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return N(a)?O(e,l,"whitespace")(a):l(a)}function l(a){return a===null||F(a)?n(a):t(a)}}const Dl={name:"hardBreakEscape",tokenize:Nl};function Nl(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return F(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const vl={name:"headingAtx",resolve:Rl,tokenize:Ol};function Rl(e,n){let t=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},K(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function Ol(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||q(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||F(f)?(e.exit("atxHeading"),n(f)):N(f)?O(e,a,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),a(f))}function s(f){return f===null||f===35||q(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),s)}}const Ml=["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"],mn=["pre","script","style","textarea"],Bl={concrete:!0,name:"htmlFlow",resolveTo:$l,tokenize:ql},jl={partial:!0,tokenize:Ul},Hl={partial:!0,tokenize:Vl};function $l(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function ql(e,n,t){const r=this;let i,o,l,a,u;return s;function s(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),p):g===47?(e.consume(g),o=!0,w):g===63?(e.consume(g),i=3,r.interrupt?n:m):X(g)?(e.consume(g),l=String.fromCharCode(g),C):t(g)}function p(g){return g===45?(e.consume(g),i=2,h):g===91?(e.consume(g),i=5,a=0,d):X(g)?(e.consume(g),i=4,r.interrupt?n:m):t(g)}function h(g){return g===45?(e.consume(g),r.interrupt?n:m):t(g)}function d(g){const ne="CDATA[";return g===ne.charCodeAt(a++)?(e.consume(g),a===ne.length?r.interrupt?n:z:d):t(g)}function w(g){return X(g)?(e.consume(g),l=String.fromCharCode(g),C):t(g)}function C(g){if(g===null||g===47||g===62||q(g)){const ne=g===47,ge=l.toLowerCase();return!ne&&!o&&mn.includes(ge)?(i=1,r.interrupt?n(g):z(g)):Ml.includes(l.toLowerCase())?(i=6,ne?(e.consume(g),x):r.interrupt?n(g):z(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(g):o?E(g):S(g))}return g===45||Q(g)?(e.consume(g),l+=String.fromCharCode(g),C):t(g)}function x(g){return g===62?(e.consume(g),r.interrupt?n:z):t(g)}function E(g){return N(g)?(e.consume(g),E):k(g)}function S(g){return g===47?(e.consume(g),k):g===58||g===95||X(g)?(e.consume(g),L):N(g)?(e.consume(g),S):k(g)}function L(g){return g===45||g===46||g===58||g===95||Q(g)?(e.consume(g),L):D(g)}function D(g){return g===61?(e.consume(g),b):N(g)?(e.consume(g),D):S(g)}function b(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),u=g,v):N(g)?(e.consume(g),b):B(g)}function v(g){return g===u?(e.consume(g),u=null,M):g===null||F(g)?t(g):(e.consume(g),v)}function B(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||q(g)?D(g):(e.consume(g),B)}function M(g){return g===47||g===62||N(g)?S(g):t(g)}function k(g){return g===62?(e.consume(g),T):t(g)}function T(g){return g===null||F(g)?z(g):N(g)?(e.consume(g),T):t(g)}function z(g){return g===45&&i===2?(e.consume(g),H):g===60&&i===1?(e.consume(g),U):g===62&&i===4?(e.consume(g),te):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),ae):F(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(jl,ue,j)(g)):g===null||F(g)?(e.exit("htmlFlowData"),j(g)):(e.consume(g),z)}function j(g){return e.check(Hl,_,ue)(g)}function _(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),A}function A(g){return g===null||F(g)?j(g):(e.enter("htmlFlowData"),z(g))}function H(g){return g===45?(e.consume(g),m):z(g)}function U(g){return g===47?(e.consume(g),l="",ee):z(g)}function ee(g){if(g===62){const ne=l.toLowerCase();return mn.includes(ne)?(e.consume(g),te):z(g)}return X(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),ee):z(g)}function ae(g){return g===93?(e.consume(g),m):z(g)}function m(g){return g===62?(e.consume(g),te):g===45&&i===2?(e.consume(g),m):z(g)}function te(g){return g===null||F(g)?(e.exit("htmlFlowData"),ue(g)):(e.consume(g),te)}function ue(g){return e.exit("htmlFlow"),n(g)}}function Vl(e,n,t){const r=this;return i;function i(l){return F(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):t(l)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function Ul(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(je,n,t)}}const Wl={name:"htmlText",tokenize:Ql};function Ql(e,n,t){const r=this;let i,o,l;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),u}function u(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),D):m===63?(e.consume(m),S):X(m)?(e.consume(m),B):t(m)}function s(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,d):X(m)?(e.consume(m),E):t(m)}function f(m){return m===45?(e.consume(m),h):t(m)}function c(m){return m===null?t(m):m===45?(e.consume(m),p):F(m)?(l=c,U(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?H(m):m===45?p(m):c(m)}function d(m){const te="CDATA[";return m===te.charCodeAt(o++)?(e.consume(m),o===te.length?w:d):t(m)}function w(m){return m===null?t(m):m===93?(e.consume(m),C):F(m)?(l=w,U(m)):(e.consume(m),w)}function C(m){return m===93?(e.consume(m),x):w(m)}function x(m){return m===62?H(m):m===93?(e.consume(m),x):w(m)}function E(m){return m===null||m===62?H(m):F(m)?(l=E,U(m)):(e.consume(m),E)}function S(m){return m===null?t(m):m===63?(e.consume(m),L):F(m)?(l=S,U(m)):(e.consume(m),S)}function L(m){return m===62?H(m):S(m)}function D(m){return X(m)?(e.consume(m),b):t(m)}function b(m){return m===45||Q(m)?(e.consume(m),b):v(m)}function v(m){return F(m)?(l=v,U(m)):N(m)?(e.consume(m),v):H(m)}function B(m){return m===45||Q(m)?(e.consume(m),B):m===47||m===62||q(m)?M(m):t(m)}function M(m){return m===47?(e.consume(m),H):m===58||m===95||X(m)?(e.consume(m),k):F(m)?(l=M,U(m)):N(m)?(e.consume(m),M):H(m)}function k(m){return m===45||m===46||m===58||m===95||Q(m)?(e.consume(m),k):T(m)}function T(m){return m===61?(e.consume(m),z):F(m)?(l=T,U(m)):N(m)?(e.consume(m),T):M(m)}function z(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,j):F(m)?(l=z,U(m)):N(m)?(e.consume(m),z):(e.consume(m),_)}function j(m){return m===i?(e.consume(m),i=void 0,A):m===null?t(m):F(m)?(l=j,U(m)):(e.consume(m),j)}function _(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||q(m)?M(m):(e.consume(m),_)}function A(m){return m===47||m===62||q(m)?M(m):t(m)}function H(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function U(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ee}function ee(m){return N(m)?O(e,ae,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):ae(m)}function ae(m){return e.enter("htmlTextData"),l(m)}}const Rt={name:"labelEnd",resolveAll:Jl,resolveTo:Kl,tokenize:Zl},Gl={tokenize:eo},Xl={tokenize:to},Yl={tokenize:no};function Jl(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&K(e,0,e.length,t),e}function Kl(e,n){let t=e.length,r=0,i,o,l,a;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",u,n],["enter",s,n]],a=Z(a,e.slice(o+1,o+r+3)),a=Z(a,[["enter",f,n]]),a=Z(a,Ze(n.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),n)),a=Z(a,[["exit",f,n],e[l-2],e[l-1],["exit",s,n]]),a=Z(a,e.slice(l+1)),a=Z(a,[["exit",u,n]]),K(e,o,e.length,a),e}function Zl(e,n,t){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(ie(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):t(p)}function u(p){return p===40?e.attempt(Gl,f,l?f:c)(p):p===91?e.attempt(Xl,f,l?s:c)(p):l?f(p):c(p)}function s(p){return e.attempt(Yl,f,c)(p)}function f(p){return n(p)}function c(p){return o._balanced=!0,t(p)}}function eo(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return q(c)?Re(e,o)(c):o(c)}function o(c){return c===41?f(c):er(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return q(c)?Re(e,u)(c):f(c)}function a(c){return t(c)}function u(c){return c===34||c===39||c===40?nr(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return q(c)?Re(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function to(e,n,t){const r=this;return i;function i(a){return tr.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(ie(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function l(a){return t(a)}}function no(e,n,t){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):t(o)}}const ro={name:"labelStartImage",resolveAll:Rt.resolveAll,tokenize:io};function io(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const lo={name:"labelStartLink",resolveAll:Rt.resolveAll,tokenize:oo};function oo(e,n,t){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const ot={name:"lineEnding",tokenize:ao};function ao(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),O(e,n,"linePrefix")}}const Qe={name:"thematicBreak",tokenize:uo};function uo(e,n,t){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||F(s))?(e.exit("thematicBreak"),n(s)):t(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),N(s)?O(e,a,"whitespace")(s):a(s))}}const Y={continuation:{tokenize:ho},exit:mo,name:"list",tokenize:fo},so={partial:!0,tokenize:go},co={partial:!0,tokenize:po};function fo(e,n,t){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(h){const d=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Ct(h)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Qe,t,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return t(h)}function u(h){return Ct(h)&&++l<10?(e.consume(h),u):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):t(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(je,r.interrupt?t:f,e.attempt(so,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return N(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function ho(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(je,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,O(e,n,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!N(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(co,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,O(e,e.attempt(Y,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function po(e,n,t){const r=this;return O(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(o):t(o)}}function mo(e){e.exit(this.containerState.type)}function go(e,n,t){const r=this;return O(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!N(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const gn={name:"setextUnderline",resolveTo:xo,tokenize:ko};function xo(e,n){let t=e.length,r,i,o;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!o&&e[t][1].type==="definition"&&(o=t);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function ko(e,n,t){const r=this;let i;return o;function o(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,l(s)):t(s)}function l(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),N(s)?O(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||F(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const yo={tokenize:bo};function bo(e){const n=this,t=e.attempt(je,r,e.attempt(this.parser.constructs.flowInitial,i,O(e,e.attempt(this.parser.constructs.flow,i,e.attempt(El,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const wo={resolveAll:ir()},Co=rr("string"),So=rr("text");function rr(e){return{resolveAll:ir(e==="text"?Eo:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,a);return l;function l(f){return s(f)?o(f):a(f)}function a(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),u}function u(f){return s(f)?(t.exit("data"),o(f)):(t.consume(f),u)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function ir(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function Eo(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let o=i.length,l=-1,a=0,u;for(;o--;){const s=i[o];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(s===-2)u=!0,a++;else if(s!==-1){o++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const s={type:t===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(t,0,["enter",s,n],["exit",s,n]),t+=2)}t++}return e}const Io={42:Y,43:Y,45:Y,48:Y,49:Y,50:Y,51:Y,52:Y,53:Y,54:Y,55:Y,56:Y,57:Y,62:Yn},Ao={91:Fl},To={[-2]:lt,[-1]:lt,32:lt},zo={35:vl,42:Qe,45:[gn,Qe],60:Bl,61:gn,95:Qe,96:pn,126:pn},Fo={38:Kn,92:Jn},_o={[-5]:ot,[-4]:ot,[-3]:ot,33:ro,38:Kn,42:St,60:[ll,Wl],91:lo,92:[Dl,Jn],93:Rt,95:St,96:kl},Po={null:[St,wo]},Lo={null:[42,95]},Do={null:[]},No=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Lo,contentInitial:Ao,disable:Do,document:Io,flow:zo,flowInitial:To,insideSpan:Po,string:Fo,text:_o},Symbol.toStringTag,{value:"Module"}));function vo(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let l=[],a=[];const u={attempt:v(D),check:v(b),consume:E,enter:S,exit:L,interrupt:v(b,{interrupt:!0})},s={code:null,containerState:{},defineSkip:w,events:[],now:d,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=n.tokenize.call(s,u);return n.resolveAll&&o.push(n),s;function c(T){return l=Z(l,T),C(),l[l.length-1]!==null?[]:(B(n,0),s.events=Ze(o,s.events,s),s.events)}function p(T,z){return Oo(h(T),z)}function h(T){return Ro(l,T)}function d(){const{_bufferIndex:T,_index:z,line:j,column:_,offset:A}=r;return{_bufferIndex:T,_index:z,line:j,column:_,offset:A}}function w(T){i[T.line]=T.column,k()}function C(){let T;for(;r._index<l.length;){const z=l[r._index];if(typeof z=="string")for(T=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===T&&r._bufferIndex<z.length;)x(z.charCodeAt(r._bufferIndex));else x(z)}}function x(T){f=f(T)}function E(T){F(T)?(r.line++,r.column=1,r.offset+=T===-3?2:1,k()):T!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=T}function S(T,z){const j=z||{};return j.type=T,j.start=d(),s.events.push(["enter",j,s]),a.push(j),j}function L(T){const z=a.pop();return z.end=d(),s.events.push(["exit",z,s]),z}function D(T,z){B(T,z.from)}function b(T,z){z.restore()}function v(T,z){return j;function j(_,A,H){let U,ee,ae,m;return Array.isArray(_)?ue(_):"tokenize"in _?ue([_]):te(_);function te(W){return ze;function ze(he){const be=he!==null&&W[he],we=he!==null&&W.null,$e=[...Array.isArray(be)?be:be?[be]:[],...Array.isArray(we)?we:we?[we]:[]];return ue($e)(he)}}function ue(W){return U=W,ee=0,W.length===0?H:g(W[ee])}function g(W){return ze;function ze(he){return m=M(),ae=W,W.partial||(s.currentConstruct=W),W.name&&s.parser.constructs.disable.null.includes(W.name)?ge():W.tokenize.call(z?Object.assign(Object.create(s),z):s,u,ne,ge)(he)}}function ne(W){return T(ae,m),A}function ge(W){return m.restore(),++ee<U.length?g(U[ee]):H}}}function B(T,z){T.resolveAll&&!o.includes(T)&&o.push(T),T.resolve&&K(s.events,z,s.events.length-z,T.resolve(s.events.slice(z),s)),T.resolveTo&&(s.events=T.resolveTo(s.events,s))}function M(){const T=d(),z=s.previous,j=s.currentConstruct,_=s.events.length,A=Array.from(a);return{from:_,restore:H};function H(){r=T,s.previous=z,s.currentConstruct=j,s.events.length=_,a=A,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ro(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function Oo(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
4
4
  `;break}case-3:{l=`\r
5
- `;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function Mo(e){const r={constructs:Gn([No,...(e||{}).extensions||[]]),content:i(Ki),defined:[],document:i(el),flow:i(yo),lazy:{},string:i(Co),text:i(So)};return r;function i(o){return l;function l(a){return Ro(r,o,a)}}}function Bo(e){for(;!Zn(e););return e}const dn=/[\0\t\n\r]/g;function jo(){let e=1,n="",t=!0,r;return i;function i(o,l,a){const u=[];let s,f,c,p,h;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,n="",t&&(o.charCodeAt(0)===65279&&c++,t=void 0);c<o.length;){if(dn.lastIndex=c,s=dn.exec(o),p=s&&s.index!==void 0?s.index:o.length,h=o.charCodeAt(p),!s){n=o.slice(c);break}if(h===10&&c===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<p&&(u.push(o.slice(c,p)),e+=p-c),h){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&u.push(-5),n&&u.push(n),u.push(null)),u}}const Ho=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function $o(e){return e.replace(Ho,qo)}function qo(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return Xn(t.slice(o?2:1),o?16:10)}return Rt(t)||e}const lr={}.hasOwnProperty;function Vo(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Uo(t)(Bo(Mo(t).document().write(jo()(e,n,!0))))}function Uo(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Xt),autolinkProtocol:M,autolinkEmail:M,atxHeading:o(Wt),blockQuote:o(we),characterEscape:M,characterReference:M,codeFenced:o($e),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o($e,l),codeText:o(Mr,l),codeTextData:M,data:M,codeFlowValue:M,definition:o(Br),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(jr),hardBreakEscape:o(Qt),hardBreakTrailing:o(Qt),htmlFlow:o(Gt,l),htmlFlowData:M,htmlText:o(Gt,l),htmlTextData:M,image:o(Hr),label:l,link:o(Xt),listItem:o($r),listItemValue:p,listOrdered:o(Yt,c),listUnordered:o(Yt),paragraph:o(qr),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(Wt),strong:o(Vr),thematicBreak:o(Wr)},exit:{atxHeading:u(),atxHeadingSequence:D,autolink:u(),autolinkEmail:be,autolinkProtocol:he,blockQuote:u(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:W,characterReference:ze,codeFenced:u(C),codeFencedFence:w,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:k,codeIndented:u(x),codeText:u(A),codeTextData:k,data:k,definition:u(),definitionDestinationString:L,definitionLabelString:E,definitionTitleString:S,emphasis:u(),hardBreakEscape:u(z),hardBreakTrailing:u(z),htmlFlow:u(j),htmlFlowData:k,htmlText:u(_),htmlTextData:k,image:u(U),label:ae,labelText:ee,lineEnding:T,link:u(H),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ne,resourceDestinationString:m,resourceTitleString:te,resource:ue,setextHeading:u(B),setextHeadingLineSequence:R,setextHeadingText:b,strong:u(),thematicBreak:u()}};or(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(y){let I={type:"root",children:[]};const P={stack:[I],tokenStack:[],config:n,enter:a,exit:s,buffer:l,resume:f,data:t},v=[];let $=-1;for(;++$<y.length;)if(y[$][1].type==="listOrdered"||y[$][1].type==="listUnordered")if(y[$][0]==="enter")v.push($);else{const re=v.pop();$=i(y,re,$)}for($=-1;++$<y.length;){const re=n[y[$][0]];lr.call(re,y[$][1].type)&&re[y[$][1].type].call(Object.assign({sliceSerialize:y[$][2].sliceSerialize},P),y[$][1])}if(P.tokenStack.length>0){const re=P.tokenStack[P.tokenStack.length-1];(re[1]||xn).call(P,void 0,re[0])}for(I.position={start:pe(y.length>0?y[0][1].start:{line:1,column:1,offset:0}),end:pe(y.length>0?y[y.length-2][1].end:{line:1,column:1,offset:0})},$=-1;++$<n.transforms.length;)I=n.transforms[$](I)||I;return I}function i(y,I,P){let v=I-1,$=-1,re=!1,de,se,Fe,_e;for(;++v<=P;){const J=y[v];switch(J[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{J[0]==="enter"?$++:$--,_e=void 0;break}case"lineEndingBlank":{J[0]==="enter"&&(de&&!_e&&!$&&!Fe&&(Fe=v),_e=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:_e=void 0}if(!$&&J[0]==="enter"&&J[1].type==="listItemPrefix"||$===-1&&J[0]==="exit"&&(J[1].type==="listUnordered"||J[1].type==="listOrdered")){if(de){let Ce=v;for(se=void 0;Ce--;){const ce=y[Ce];if(ce[1].type==="lineEnding"||ce[1].type==="lineEndingBlank"){if(ce[0]==="exit")continue;se&&(y[se][1].type="lineEndingBlank",re=!0),ce[1].type="lineEnding",se=Ce}else if(!(ce[1].type==="linePrefix"||ce[1].type==="blockQuotePrefix"||ce[1].type==="blockQuotePrefixWhitespace"||ce[1].type==="blockQuoteMarker"||ce[1].type==="listItemIndent"))break}Fe&&(!se||Fe<se)&&(de._spread=!0),de.end=Object.assign({},se?y[se][1].start:J[1].end),y.splice(se||v,0,["exit",de,J[2]]),v++,P++}if(J[1].type==="listItemPrefix"){const Ce={type:"listItem",_spread:!1,start:Object.assign({},J[1].start),end:void 0};de=Ce,y.splice(v,0,["enter",Ce,J[2]]),v++,P++,Fe=void 0,_e=!0}}}return y[I][1]._spread=re,P}function o(y,I){return P;function P(v){a.call(this,y(v),v),I&&I.call(this,v)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(y,I,P){this.stack[this.stack.length-1].children.push(y),this.stack.push(y),this.tokenStack.push([I,P||void 0]),y.position={start:pe(I.start),end:void 0}}function u(y){return I;function I(P){y&&y.call(this,P),s.call(this,P)}}function s(y,I){const P=this.stack.pop(),v=this.tokenStack.pop();if(v)v[0].type!==y.type&&(I?I.call(this,y,v[0]):(v[1]||xn).call(this,y,v[0]));else throw new Error("Cannot close `"+y.type+"` ("+Re({start:y.start,end:y.end})+"): it’s not open");P.position.end=pe(y.end)}function f(){return Nt(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(y){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(y),10),this.data.expectingFirstListItemValue=void 0}}function h(){const y=this.resume(),I=this.stack[this.stack.length-1];I.lang=y}function d(){const y=this.resume(),I=this.stack[this.stack.length-1];I.meta=y}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const y=this.resume(),I=this.stack[this.stack.length-1];I.value=y.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const y=this.resume(),I=this.stack[this.stack.length-1];I.value=y.replace(/(\r?\n|\r)$/g,"")}function E(y){const I=this.resume(),P=this.stack[this.stack.length-1];P.label=I,P.identifier=ie(this.sliceSerialize(y)).toLowerCase()}function S(){const y=this.resume(),I=this.stack[this.stack.length-1];I.title=y}function L(){const y=this.resume(),I=this.stack[this.stack.length-1];I.url=y}function D(y){const I=this.stack[this.stack.length-1];if(!I.depth){const P=this.sliceSerialize(y).length;I.depth=P}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function R(y){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(y).codePointAt(0)===61?1:2}function B(){this.data.setextHeadingSlurpLineEnding=void 0}function M(y){const P=this.stack[this.stack.length-1].children;let v=P[P.length-1];(!v||v.type!=="text")&&(v=Ur(),v.position={start:pe(y.start),end:void 0},P.push(v)),this.stack.push(v)}function k(y){const I=this.stack.pop();I.value+=this.sliceSerialize(y),I.position.end=pe(y.end)}function T(y){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const P=I.children[I.children.length-1];P.position.end=pe(y.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(I.type)&&(M.call(this,y),k.call(this,y))}function z(){this.data.atHardBreak=!0}function j(){const y=this.resume(),I=this.stack[this.stack.length-1];I.value=y}function _(){const y=this.resume(),I=this.stack[this.stack.length-1];I.value=y}function A(){const y=this.resume(),I=this.stack[this.stack.length-1];I.value=y}function H(){const y=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";y.type+="Reference",y.referenceType=I,delete y.url,delete y.title}else delete y.identifier,delete y.label;this.data.referenceType=void 0}function U(){const y=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";y.type+="Reference",y.referenceType=I,delete y.url,delete y.title}else delete y.identifier,delete y.label;this.data.referenceType=void 0}function ee(y){const I=this.sliceSerialize(y),P=this.stack[this.stack.length-2];P.label=$o(I),P.identifier=ie(I).toLowerCase()}function ae(){const y=this.stack[this.stack.length-1],I=this.resume(),P=this.stack[this.stack.length-1];if(this.data.inReference=!0,P.type==="link"){const v=y.children;P.children=v}else P.alt=I}function m(){const y=this.resume(),I=this.stack[this.stack.length-1];I.url=y}function te(){const y=this.resume(),I=this.stack[this.stack.length-1];I.title=y}function ue(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ne(y){const I=this.resume(),P=this.stack[this.stack.length-1];P.label=I,P.identifier=ie(this.sliceSerialize(y)).toLowerCase(),this.data.referenceType="full"}function ge(y){this.data.characterReferenceType=y.type}function W(y){const I=this.sliceSerialize(y),P=this.data.characterReferenceType;let v;P?(v=Xn(I,P==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):v=Rt(I);const $=this.stack[this.stack.length-1];$.value+=v}function ze(y){const I=this.stack.pop();I.position.end=pe(y.end)}function he(y){k.call(this,y);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(y)}function be(y){k.call(this,y);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(y)}function we(){return{type:"blockquote",children:[]}}function $e(){return{type:"code",lang:null,meta:null,value:""}}function Mr(){return{type:"inlineCode",value:""}}function Br(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function jr(){return{type:"emphasis",children:[]}}function Wt(){return{type:"heading",depth:0,children:[]}}function Qt(){return{type:"break"}}function Gt(){return{type:"html",value:""}}function Hr(){return{type:"image",title:null,url:"",alt:null}}function Xt(){return{type:"link",title:null,url:"",children:[]}}function Yt(y){return{type:"list",ordered:y.type==="listOrdered",start:null,spread:y._spread,children:[]}}function $r(y){return{type:"listItem",spread:y._spread,checked:null,children:[]}}function qr(){return{type:"paragraph",children:[]}}function Vr(){return{type:"strong",children:[]}}function Ur(){return{type:"text",value:""}}function Wr(){return{type:"thematicBreak"}}}function pe(e){return{line:e.line,column:e.column,offset:e.offset}}function or(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?or(e,r):Wo(e,r)}}function Wo(e,n){let t;for(t in n)if(lr.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function xn(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Re({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Re({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Re({start:n.start,end:n.end})+") is still open")}function Qo(e){const n=this;n.parser=t;function t(r){return Vo(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Go(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Xo(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
5
+ `;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function Mo(e){const r={constructs:Gn([No,...(e||{}).extensions||[]]),content:i(Ki),defined:[],document:i(el),flow:i(yo),lazy:{},string:i(Co),text:i(So)};return r;function i(o){return l;function l(a){return vo(r,o,a)}}}function Bo(e){for(;!Zn(e););return e}const dn=/[\0\t\n\r]/g;function jo(){let e=1,n="",t=!0,r;return i;function i(o,l,a){const u=[];let s,f,c,p,h;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,n="",t&&(o.charCodeAt(0)===65279&&c++,t=void 0);c<o.length;){if(dn.lastIndex=c,s=dn.exec(o),p=s&&s.index!==void 0?s.index:o.length,h=o.charCodeAt(p),!s){n=o.slice(c);break}if(h===10&&c===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<p&&(u.push(o.slice(c,p)),e+=p-c),h){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&u.push(-5),n&&u.push(n),u.push(null)),u}}const Ho=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function $o(e){return e.replace(Ho,qo)}function qo(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return Xn(t.slice(o?2:1),o?16:10)}return vt(t)||e}const lr={}.hasOwnProperty;function Vo(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Uo(t)(Bo(Mo(t).document().write(jo()(e,n,!0))))}function Uo(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Xt),autolinkProtocol:M,autolinkEmail:M,atxHeading:o(Wt),blockQuote:o(we),characterEscape:M,characterReference:M,codeFenced:o($e),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o($e,l),codeText:o(Mr,l),codeTextData:M,data:M,codeFlowValue:M,definition:o(Br),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(jr),hardBreakEscape:o(Qt),hardBreakTrailing:o(Qt),htmlFlow:o(Gt,l),htmlFlowData:M,htmlText:o(Gt,l),htmlTextData:M,image:o(Hr),label:l,link:o(Xt),listItem:o($r),listItemValue:p,listOrdered:o(Yt,c),listUnordered:o(Yt),paragraph:o(qr),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(Wt),strong:o(Vr),thematicBreak:o(Wr)},exit:{atxHeading:u(),atxHeadingSequence:D,autolink:u(),autolinkEmail:be,autolinkProtocol:he,blockQuote:u(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:ge,characterReferenceMarkerNumeric:ge,characterReferenceValue:W,characterReference:ze,codeFenced:u(C),codeFencedFence:w,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:k,codeIndented:u(x),codeText:u(A),codeTextData:k,data:k,definition:u(),definitionDestinationString:L,definitionLabelString:E,definitionTitleString:S,emphasis:u(),hardBreakEscape:u(z),hardBreakTrailing:u(z),htmlFlow:u(j),htmlFlowData:k,htmlText:u(_),htmlTextData:k,image:u(U),label:ae,labelText:ee,lineEnding:T,link:u(H),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ne,resourceDestinationString:m,resourceTitleString:te,resource:ue,setextHeading:u(B),setextHeadingLineSequence:v,setextHeadingText:b,strong:u(),thematicBreak:u()}};or(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(y){let I={type:"root",children:[]};const P={stack:[I],tokenStack:[],config:n,enter:a,exit:s,buffer:l,resume:f,data:t},R=[];let $=-1;for(;++$<y.length;)if(y[$][1].type==="listOrdered"||y[$][1].type==="listUnordered")if(y[$][0]==="enter")R.push($);else{const re=R.pop();$=i(y,re,$)}for($=-1;++$<y.length;){const re=n[y[$][0]];lr.call(re,y[$][1].type)&&re[y[$][1].type].call(Object.assign({sliceSerialize:y[$][2].sliceSerialize},P),y[$][1])}if(P.tokenStack.length>0){const re=P.tokenStack[P.tokenStack.length-1];(re[1]||xn).call(P,void 0,re[0])}for(I.position={start:pe(y.length>0?y[0][1].start:{line:1,column:1,offset:0}),end:pe(y.length>0?y[y.length-2][1].end:{line:1,column:1,offset:0})},$=-1;++$<n.transforms.length;)I=n.transforms[$](I)||I;return I}function i(y,I,P){let R=I-1,$=-1,re=!1,de,se,Fe,_e;for(;++R<=P;){const J=y[R];switch(J[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{J[0]==="enter"?$++:$--,_e=void 0;break}case"lineEndingBlank":{J[0]==="enter"&&(de&&!_e&&!$&&!Fe&&(Fe=R),_e=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:_e=void 0}if(!$&&J[0]==="enter"&&J[1].type==="listItemPrefix"||$===-1&&J[0]==="exit"&&(J[1].type==="listUnordered"||J[1].type==="listOrdered")){if(de){let Ce=R;for(se=void 0;Ce--;){const ce=y[Ce];if(ce[1].type==="lineEnding"||ce[1].type==="lineEndingBlank"){if(ce[0]==="exit")continue;se&&(y[se][1].type="lineEndingBlank",re=!0),ce[1].type="lineEnding",se=Ce}else if(!(ce[1].type==="linePrefix"||ce[1].type==="blockQuotePrefix"||ce[1].type==="blockQuotePrefixWhitespace"||ce[1].type==="blockQuoteMarker"||ce[1].type==="listItemIndent"))break}Fe&&(!se||Fe<se)&&(de._spread=!0),de.end=Object.assign({},se?y[se][1].start:J[1].end),y.splice(se||R,0,["exit",de,J[2]]),R++,P++}if(J[1].type==="listItemPrefix"){const Ce={type:"listItem",_spread:!1,start:Object.assign({},J[1].start),end:void 0};de=Ce,y.splice(R,0,["enter",Ce,J[2]]),R++,P++,Fe=void 0,_e=!0}}}return y[I][1]._spread=re,P}function o(y,I){return P;function P(R){a.call(this,y(R),R),I&&I.call(this,R)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(y,I,P){this.stack[this.stack.length-1].children.push(y),this.stack.push(y),this.tokenStack.push([I,P||void 0]),y.position={start:pe(I.start),end:void 0}}function u(y){return I;function I(P){y&&y.call(this,P),s.call(this,P)}}function s(y,I){const P=this.stack.pop(),R=this.tokenStack.pop();if(R)R[0].type!==y.type&&(I?I.call(this,y,R[0]):(R[1]||xn).call(this,y,R[0]));else throw new Error("Cannot close `"+y.type+"` ("+ve({start:y.start,end:y.end})+"): it’s not open");P.position.end=pe(y.end)}function f(){return Nt(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(y){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(y),10),this.data.expectingFirstListItemValue=void 0}}function h(){const y=this.resume(),I=this.stack[this.stack.length-1];I.lang=y}function d(){const y=this.resume(),I=this.stack[this.stack.length-1];I.meta=y}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const y=this.resume(),I=this.stack[this.stack.length-1];I.value=y.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const y=this.resume(),I=this.stack[this.stack.length-1];I.value=y.replace(/(\r?\n|\r)$/g,"")}function E(y){const I=this.resume(),P=this.stack[this.stack.length-1];P.label=I,P.identifier=ie(this.sliceSerialize(y)).toLowerCase()}function S(){const y=this.resume(),I=this.stack[this.stack.length-1];I.title=y}function L(){const y=this.resume(),I=this.stack[this.stack.length-1];I.url=y}function D(y){const I=this.stack[this.stack.length-1];if(!I.depth){const P=this.sliceSerialize(y).length;I.depth=P}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function v(y){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(y).codePointAt(0)===61?1:2}function B(){this.data.setextHeadingSlurpLineEnding=void 0}function M(y){const P=this.stack[this.stack.length-1].children;let R=P[P.length-1];(!R||R.type!=="text")&&(R=Ur(),R.position={start:pe(y.start),end:void 0},P.push(R)),this.stack.push(R)}function k(y){const I=this.stack.pop();I.value+=this.sliceSerialize(y),I.position.end=pe(y.end)}function T(y){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const P=I.children[I.children.length-1];P.position.end=pe(y.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(I.type)&&(M.call(this,y),k.call(this,y))}function z(){this.data.atHardBreak=!0}function j(){const y=this.resume(),I=this.stack[this.stack.length-1];I.value=y}function _(){const y=this.resume(),I=this.stack[this.stack.length-1];I.value=y}function A(){const y=this.resume(),I=this.stack[this.stack.length-1];I.value=y}function H(){const y=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";y.type+="Reference",y.referenceType=I,delete y.url,delete y.title}else delete y.identifier,delete y.label;this.data.referenceType=void 0}function U(){const y=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";y.type+="Reference",y.referenceType=I,delete y.url,delete y.title}else delete y.identifier,delete y.label;this.data.referenceType=void 0}function ee(y){const I=this.sliceSerialize(y),P=this.stack[this.stack.length-2];P.label=$o(I),P.identifier=ie(I).toLowerCase()}function ae(){const y=this.stack[this.stack.length-1],I=this.resume(),P=this.stack[this.stack.length-1];if(this.data.inReference=!0,P.type==="link"){const R=y.children;P.children=R}else P.alt=I}function m(){const y=this.resume(),I=this.stack[this.stack.length-1];I.url=y}function te(){const y=this.resume(),I=this.stack[this.stack.length-1];I.title=y}function ue(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ne(y){const I=this.resume(),P=this.stack[this.stack.length-1];P.label=I,P.identifier=ie(this.sliceSerialize(y)).toLowerCase(),this.data.referenceType="full"}function ge(y){this.data.characterReferenceType=y.type}function W(y){const I=this.sliceSerialize(y),P=this.data.characterReferenceType;let R;P?(R=Xn(I,P==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):R=vt(I);const $=this.stack[this.stack.length-1];$.value+=R}function ze(y){const I=this.stack.pop();I.position.end=pe(y.end)}function he(y){k.call(this,y);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(y)}function be(y){k.call(this,y);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(y)}function we(){return{type:"blockquote",children:[]}}function $e(){return{type:"code",lang:null,meta:null,value:""}}function Mr(){return{type:"inlineCode",value:""}}function Br(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function jr(){return{type:"emphasis",children:[]}}function Wt(){return{type:"heading",depth:0,children:[]}}function Qt(){return{type:"break"}}function Gt(){return{type:"html",value:""}}function Hr(){return{type:"image",title:null,url:"",alt:null}}function Xt(){return{type:"link",title:null,url:"",children:[]}}function Yt(y){return{type:"list",ordered:y.type==="listOrdered",start:null,spread:y._spread,children:[]}}function $r(y){return{type:"listItem",spread:y._spread,checked:null,children:[]}}function qr(){return{type:"paragraph",children:[]}}function Vr(){return{type:"strong",children:[]}}function Ur(){return{type:"text",value:""}}function Wr(){return{type:"thematicBreak"}}}function pe(e){return{line:e.line,column:e.column,offset:e.offset}}function or(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?or(e,r):Wo(e,r)}}function Wo(e,n){let t;for(t in n)if(lr.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function xn(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+ve({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+ve({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+ve({start:n.start,end:n.end})+") is still open")}function Qo(e){const n=this;n.parser=t;function t(r){return Vo(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Go(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Xo(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
6
6
  `}]}function Yo(e,n){const t=n.value?n.value+`
7
7
  `:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function Jo(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ko(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Zo(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=Te(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const u={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(n,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(n,s),e.applyData(n,s)}function ea(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ta(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function ar(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function na(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return ar(e,n);const i={src:Te(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,o),e.applyData(n,o)}function ra(e,n){const t={src:Te(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function ia(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function la(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return ar(e,n);const i={href:Te(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function oa(e,n){const t={href:Te(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function aa(e,n,t){const r=e.all(n),i=t?ua(t):ur(n),o={},l=[];if(typeof n.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
8
8
  `}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&l.push({type:"text",value:`
9
9
  `});const s={type:"element",tagName:"li",properties:o,children:l};return e.patch(n,s),e.applyData(n,s)}function ua(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=ur(t[r])}return n}function ur(e){const n=e.spread;return n??e.children.length>1}function sa(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,o),e.applyData(n,o)}function ca(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function fa(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function ha(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function pa(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],l),i.push(l)}if(t.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=_t(n.children[1]),u=Hn(n.children[n.children.length-1]);a&&u&&(l.position={start:a,end:u}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,o),e.applyData(n,o)}function ma(e,n,t){const r=t?t.children:void 0,o=(r?r.indexOf(n):1)===0?"th":"td",l=t&&t.type==="table"?t.align:void 0,a=l?l.length:n.children.length;let u=-1;const s=[];for(;++u<a;){const c=n.children[u],p={},h=l?l[u]:void 0;h&&(p.align=h);let d={type:"element",tagName:o,properties:p,children:[]};c&&(d.children=e.all(c),e.patch(c,d),d=e.applyData(c,d)),s.push(d)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(n,f),e.applyData(n,f)}function ga(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const kn=9,yn=32;function da(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const o=[];for(;r;)o.push(bn(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return o.push(bn(n.slice(i),i>0,!1)),o.join("")}function bn(e,n,t){let r=0,i=e.length;if(n){let o=e.codePointAt(r);for(;o===kn||o===yn;)r++,o=e.codePointAt(r)}if(t){let o=e.codePointAt(i-1);for(;o===kn||o===yn;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function xa(e,n){const t={type:"text",value:da(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function ka(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const ya={blockquote:Go,break:Xo,code:Yo,delete:Jo,emphasis:Ko,footnoteReference:Zo,heading:ea,html:ta,imageReference:na,image:ra,inlineCode:ia,linkReference:la,link:oa,listItem:aa,list:sa,paragraph:ca,root:fa,strong:ha,table:pa,tableCell:ga,tableRow:ma,text:xa,thematicBreak:ka,toml:qe,yaml:qe,definition:qe,footnoteDefinition:qe};function qe(){}const sr=-1,et=0,Oe=1,Xe=2,Ot=3,Mt=4,Bt=5,jt=6,cr=7,fr=8,ba=typeof self=="object"?self:globalThis,wn=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new ba[e](n)},wa=(e,n)=>{const t=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=n[i];switch(o){case et:case sr:return t(l,i);case Oe:{const a=t([],i);for(const u of l)a.push(r(u));return a}case Xe:{const a=t({},i);for(const[u,s]of l)a[r(u)]=r(s);return a}case Ot:return t(new Date(l),i);case Mt:{const{source:a,flags:u}=l;return t(new RegExp(a,u),i)}case Bt:{const a=t(new Map,i);for(const[u,s]of l)a.set(r(u),r(s));return a}case jt:{const a=t(new Set,i);for(const u of l)a.add(r(u));return a}case cr:{const{name:a,message:u}=l;return t(wn(a,u),i)}case fr:return t(BigInt(l),i);case"BigInt":return t(Object(BigInt(l)),i);case"ArrayBuffer":return t(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return t(new DataView(a),l)}}return t(wn(o,l),i)};return r},Cn=e=>wa(new Map,e)(0),Ee="",{toString:Ca}={},{keys:Sa}=Object,Ne=e=>{const n=typeof e;if(n!=="object"||!e)return[et,n];const t=Ca.call(e).slice(8,-1);switch(t){case"Array":return[Oe,Ee];case"Object":return[Xe,Ee];case"Date":return[Ot,Ee];case"RegExp":return[Mt,Ee];case"Map":return[Bt,Ee];case"Set":return[jt,Ee];case"DataView":return[Oe,t]}return t.includes("Array")?[Oe,t]:t.includes("Error")?[cr,t]:[Xe,t]},Ve=([e,n])=>e===et&&(n==="function"||n==="symbol"),Ea=(e,n,t,r)=>{const i=(l,a)=>{const u=r.push(l)-1;return t.set(a,u),u},o=l=>{if(t.has(l))return t.get(l);let[a,u]=Ne(l);switch(a){case et:{let f=l;switch(u){case"bigint":a=fr,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);f=null;break;case"undefined":return i([sr],l)}return i([a,f],l)}case Oe:{if(u){let p=l;return u==="DataView"?p=new Uint8Array(l.buffer):u==="ArrayBuffer"&&(p=new Uint8Array(l)),i([u,[...p]],l)}const f=[],c=i([a,f],l);for(const p of l)f.push(o(p));return c}case Xe:{if(u)switch(u){case"BigInt":return i([u,l.toString()],l);case"Boolean":case"Number":case"String":return i([u,l.valueOf()],l)}if(n&&"toJSON"in l)return o(l.toJSON());const f=[],c=i([a,f],l);for(const p of Sa(l))(e||!Ve(Ne(l[p])))&&f.push([o(p),o(l[p])]);return c}case Ot:return i([a,l.toISOString()],l);case Mt:{const{source:f,flags:c}=l;return i([a,{source:f,flags:c}],l)}case Bt:{const f=[],c=i([a,f],l);for(const[p,h]of l)(e||!(Ve(Ne(p))||Ve(Ne(h))))&&f.push([o(p),o(h)]);return c}case jt:{const f=[],c=i([a,f],l);for(const p of l)(e||!Ve(Ne(p)))&&f.push(o(p));return c}}const{message:s}=l;return i([a,{name:u,message:s}],l)};return o},Sn=(e,{json:n,lossy:t}={})=>{const r=[];return Ea(!(n||t),!!n,new Map,r)(e),r},Ye=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Cn(Sn(e,n)):structuredClone(e):(e,n)=>Cn(Sn(e,n));function Ia(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Aa(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Ta(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Ia,r=e.options.footnoteBackLabel||Aa,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[u]);if(!s)continue;const f=e.all(s),c=String(s.identifier).toUpperCase(),p=Te(c.toLowerCase());let h=0;const d=[],w=e.footnoteCounts.get(c);for(;w!==void 0&&++h<=w;){d.length>0&&d.push({type:"text",value:" "});let E=typeof t=="string"?t:t(u,h);typeof E=="string"&&(E={type:"text",value:E}),d.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,h),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const C=f[f.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const E=C.children[C.children.length-1];E&&E.type==="text"?E.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...d)}else f.push(...d);const x={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:e.wrap(f,!0)};e.patch(s,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Ye(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
10
10
  `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
11
- `}]}}const tt=(function(e){if(e==null)return Pa;if(typeof e=="function")return nt(e);if(typeof e=="object")return Array.isArray(e)?za(e):Fa(e);if(typeof e=="string")return _a(e);throw new Error("Expected function, string, or object as test")});function za(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=tt(e[t]);return nt(r);function r(...i){let o=-1;for(;++o<n.length;)if(n[o].apply(this,i))return!0;return!1}}function Fa(e){const n=e;return nt(t);function t(r){const i=r;let o;for(o in e)if(i[o]!==n[o])return!1;return!0}}function _a(e){return nt(n);function n(t){return t&&t.type===e}}function nt(e){return n;function n(t,r,i){return!!(La(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Pa(){return!0}function La(e){return e!==null&&typeof e=="object"&&"type"in e}const hr=[],Da=!0,Et=!1,Na="skip";function pr(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const o=tt(i),l=r?-1:1;a(e,void 0,[])();function a(u,s,f){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(u.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=hr,d,w,C;if((!n||o(u,s,f[f.length-1]||void 0))&&(h=Ra(t(u,f)),h[0]===Et))return h;if("children"in u&&u.children){const x=u;if(x.children&&h[0]!==Na)for(w=(r?x.children.length:-1)+l,C=f.concat(x);w>-1&&w<x.children.length;){const E=x.children[w];if(d=a(E,w,C)(),d[0]===Et)return d;w=typeof d[1]=="number"?d[1]:w+l}}return h}}}function Ra(e){return Array.isArray(e)?e:typeof e=="number"?[Da,e]:e==null?hr:[e]}function Ht(e,n,t,r){let i,o,l;typeof n=="function"&&typeof t!="function"?(o=void 0,l=n,i=t):(o=n,l=t,i=r),pr(e,o,a,i);function a(u,s){const f=s[s.length-1],c=f?f.children.indexOf(u):void 0;return l(u,c,f)}}const It={}.hasOwnProperty,va={};function Oa(e,n){const t=n||va,r=new Map,i=new Map,o=new Map,l={...ya,...t.handlers},a={all:s,applyData:Ba,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:u,options:t,patch:Ma,wrap:Ha};return Ht(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),a;function u(f,c){const p=f.type,h=a.handlers[p];if(It.call(a.handlers,p)&&h)return h(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in f){const{children:w,...C}=f,x=Ye(C);return x.children=a.all(f),x}return Ye(f)}return(a.options.unknownHandler||ja)(a,f,c)}function s(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const d=a.one(p[h],f);if(d){if(h&&p[h-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=En(d.value)),!Array.isArray(d)&&d.type==="element")){const w=d.children[0];w&&w.type==="text"&&(w.value=En(w.value))}Array.isArray(d)?c.push(...d):c.push(d)}}}return c}}function Ma(e,n){e.position&&(n.position=Ei(e))}function Ba(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const l="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:l}}t.type==="element"&&o&&Object.assign(t.properties,Ye(o)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function ja(e,n){const t=n.data||{},r="value"in n&&!(It.call(t,"hProperties")||It.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Ha(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
11
+ `}]}}const tt=(function(e){if(e==null)return Pa;if(typeof e=="function")return nt(e);if(typeof e=="object")return Array.isArray(e)?za(e):Fa(e);if(typeof e=="string")return _a(e);throw new Error("Expected function, string, or object as test")});function za(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=tt(e[t]);return nt(r);function r(...i){let o=-1;for(;++o<n.length;)if(n[o].apply(this,i))return!0;return!1}}function Fa(e){const n=e;return nt(t);function t(r){const i=r;let o;for(o in e)if(i[o]!==n[o])return!1;return!0}}function _a(e){return nt(n);function n(t){return t&&t.type===e}}function nt(e){return n;function n(t,r,i){return!!(La(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Pa(){return!0}function La(e){return e!==null&&typeof e=="object"&&"type"in e}const hr=[],Da=!0,Et=!1,Na="skip";function pr(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const o=tt(i),l=r?-1:1;a(e,void 0,[])();function a(u,s,f){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(u.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=hr,d,w,C;if((!n||o(u,s,f[f.length-1]||void 0))&&(h=va(t(u,f)),h[0]===Et))return h;if("children"in u&&u.children){const x=u;if(x.children&&h[0]!==Na)for(w=(r?x.children.length:-1)+l,C=f.concat(x);w>-1&&w<x.children.length;){const E=x.children[w];if(d=a(E,w,C)(),d[0]===Et)return d;w=typeof d[1]=="number"?d[1]:w+l}}return h}}}function va(e){return Array.isArray(e)?e:typeof e=="number"?[Da,e]:e==null?hr:[e]}function Ht(e,n,t,r){let i,o,l;typeof n=="function"&&typeof t!="function"?(o=void 0,l=n,i=t):(o=n,l=t,i=r),pr(e,o,a,i);function a(u,s){const f=s[s.length-1],c=f?f.children.indexOf(u):void 0;return l(u,c,f)}}const It={}.hasOwnProperty,Ra={};function Oa(e,n){const t=n||Ra,r=new Map,i=new Map,o=new Map,l={...ya,...t.handlers},a={all:s,applyData:Ba,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:u,options:t,patch:Ma,wrap:Ha};return Ht(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),a;function u(f,c){const p=f.type,h=a.handlers[p];if(It.call(a.handlers,p)&&h)return h(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in f){const{children:w,...C}=f,x=Ye(C);return x.children=a.all(f),x}return Ye(f)}return(a.options.unknownHandler||ja)(a,f,c)}function s(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const d=a.one(p[h],f);if(d){if(h&&p[h-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=En(d.value)),!Array.isArray(d)&&d.type==="element")){const w=d.children[0];w&&w.type==="text"&&(w.value=En(w.value))}Array.isArray(d)?c.push(...d):c.push(d)}}}return c}}function Ma(e,n){e.position&&(n.position=Ei(e))}function Ba(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const l="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:l}}t.type==="element"&&o&&Object.assign(t.properties,Ye(o)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function ja(e,n){const t=n.data||{},r="value"in n&&!(It.call(t,"hProperties")||It.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Ha(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
12
12
  `});++r<e.length;)r&&t.push({type:"text",value:`
13
13
  `}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
14
14
  `}),t}function En(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function In(e,n){const t=Oa(e,n),r=t.one(e,void 0),i=Ta(t),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
15
- `},i),o}function $a(e,n){return e&&"run"in e?async function(t,r){const i=In(t,{file:r,...n});await e.run(i,r)}:function(t,r){return In(t,{file:r,...e||n})}}function An(e){if(e)throw e}var at,Tn;function qa(){if(Tn)return at;Tn=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(s){return typeof Array.isArray=="function"?Array.isArray(s):n.call(s)==="[object Array]"},o=function(s){if(!s||n.call(s)!=="[object Object]")return!1;var f=e.call(s,"constructor"),c=s.constructor&&s.constructor.prototype&&e.call(s.constructor.prototype,"isPrototypeOf");if(s.constructor&&!f&&!c)return!1;var p;for(p in s);return typeof p>"u"||e.call(s,p)},l=function(s,f){t&&f.name==="__proto__"?t(s,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):s[f.name]=f.newValue},a=function(s,f){if(f==="__proto__")if(e.call(s,f)){if(r)return r(s,f).value}else return;return s[f]};return at=function u(){var s,f,c,p,h,d,w=arguments[0],C=1,x=arguments.length,E=!1;for(typeof w=="boolean"&&(E=w,w=arguments[1]||{},C=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});C<x;++C)if(s=arguments[C],s!=null)for(f in s)c=a(w,f),p=a(s,f),w!==p&&(E&&p&&(o(p)||(h=i(p)))?(h?(h=!1,d=c&&i(c)?c:[]):d=c&&o(c)?c:{},l(w,{name:f,newValue:u(E,d,p)})):typeof p<"u"&&l(w,{name:f,newValue:p}));return w},at}var Va=qa();const ut=Bn(Va);function At(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ua(){const e=[],n={run:t,use:r};return n;function t(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(u,...s){const f=e[++o];let c=-1;if(u){l(u);return}for(;++c<i.length;)(s[c]===null||s[c]===void 0)&&(s[c]=i[c]);i=s,f?Wa(f,a)(...s):l(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Wa(e,n){let t;return r;function r(...l){const a=e.length>l.length;let u;a&&l.push(i);try{u=e.apply(this,l)}catch(s){const f=s;if(a&&t)throw f;return i(f)}a||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(l,...a){t||(t=!0,n(l,...a))}function o(l){i(null,l)}}const le={basename:Qa,dirname:Ga,extname:Xa,join:Ya,sep:"/"};function Qa(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');He(e);let t=0,r=-1,i=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let l=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return t===r?r=l:r<0&&(r=e.length),e.slice(t,r)}function Ga(e){if(He(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Xa(e){He(e);let n=e.length,t=-1,r=0,i=-1,o=0,l;for(;n--;){const a=e.codePointAt(n);if(a===47){if(l){r=n+1;break}continue}t<0&&(l=!0,t=n+1),a===46?i<0?i=n:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||t<0||o===0||o===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Ya(...e){let n=-1,t;for(;++n<e.length;)He(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Ja(t)}function Ja(e){He(e);const n=e.codePointAt(0)===47;let t=Ka(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Ka(e,n){let t="",r=0,i=-1,o=0,l=-1,a,u;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(u=t.lastIndexOf("/"),u!==t.length-1){u<0?(t="",r=0):(t=t.slice(0,u),r=t.length-1-t.lastIndexOf("/")),i=l,o=0;continue}}else if(t.length>0){t="",r=0,i=l,o=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,l):t=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return t}function He(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Za={cwd:eu};function eu(){return"/"}function Tt(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function tu(e){if(typeof e=="string")e=new URL(e);else if(!Tt(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return nu(e)}function nu(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const st=["history","path","basename","stem","extname","dirname"];class mr{constructor(n){let t;n?Tt(n)?t={path:n}:typeof n=="string"||ru(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Za.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<st.length;){const o=st[r];o in t&&t[o]!==void 0&&t[o]!==null&&(this[o]=o==="history"?[...t[o]]:t[o])}let i;for(i in t)st.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?le.basename(this.path):void 0}set basename(n){ft(n,"basename"),ct(n,"basename"),this.path=le.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?le.dirname(this.path):void 0}set dirname(n){zn(this.basename,"dirname"),this.path=le.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?le.extname(this.path):void 0}set extname(n){if(ct(n,"extname"),zn(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=le.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Tt(n)&&(n=tu(n)),ft(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?le.basename(this.path,this.extname):void 0}set stem(n){ft(n,"stem"),ct(n,"stem"),this.path=le.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new G(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function ct(e,n){if(e&&e.includes(le.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+le.sep+"`")}function ft(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function zn(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function ru(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const iu=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),lu={}.hasOwnProperty;class $t extends iu{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Ua()}copy(){const n=new $t;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(ut(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(mt("data",this.frozen),this.namespace[n]=t,this):lu.call(this.namespace,n)&&this.namespace[n]||void 0:n?(mt("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=Ue(n),r=this.parser||this.Parser;return ht("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),ht("process",this.parser||this.Parser),pt("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(o,l){const a=Ue(n),u=r.parse(a);r.run(u,a,function(f,c,p){if(f||!c||!p)return s(f);const h=c,d=r.stringify(h,p);uu(d)?p.value=d:p.result=d,s(f,p)});function s(f,c){f||!c?l(f):o?o(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),ht("processSync",this.parser||this.Parser),pt("processSync",this.compiler||this.Compiler),this.process(n,i),_n("processSync","process",t),r;function i(o,l){t=!0,An(o),r=l}}run(n,t,r){Fn(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const u=Ue(t);i.run(n,u,s);function s(f,c,p){const h=c||n;f?a(f):l?l(h):r(void 0,h,p)}}}runSync(n,t){let r=!1,i;return this.run(n,t,o),_n("runSync","run",r),i;function o(l,a){An(l),i=a,r=!0}}stringify(n,t){this.freeze();const r=Ue(t),i=this.compiler||this.Compiler;return pt("stringify",i),Fn(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(mt("use",this.frozen),n!=null)if(typeof n=="function")u(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(s){if(typeof s=="function")u(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[f,...c]=s;u(f,c)}else l(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function l(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(s.plugins),s.settings&&(i.settings=ut(!0,i.settings,s.settings))}function a(s){let f=-1;if(s!=null)if(Array.isArray(s))for(;++f<s.length;){const c=s[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function u(s,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===s){p=c;break}if(p===-1)r.push([s,...f]);else if(f.length>0){let[h,...d]=f;const w=r[p][1];At(w)&&At(h)&&(h=ut(!0,w,h)),r[p]=[s,h,...d]}}}}const ou=new $t().freeze();function ht(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function pt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function mt(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Fn(e){if(!At(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function _n(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Ue(e){return au(e)?e:new mr(e)}function au(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function uu(e){return typeof e=="string"||su(e)}function su(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const cu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Pn=[],Ln={allowDangerousHtml:!0},fu=/^(https?|ircs?|mailto|xmpp)$/i,hu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function pu(e){const n=mu(e),t=gu(e);return du(n.runSync(n.parse(t),t),e)}function mu(e){const n=e.rehypePlugins||Pn,t=e.remarkPlugins||Pn,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ln}:Ln;return ou().use(Qo).use(t).use($a,r).use(n)}function gu(e){const n=e.children||"",t=new mr;return typeof n=="string"&&(t.value=n),t}function du(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,o=n.disallowedElements,l=n.skipHtml,a=n.unwrapDisallowed,u=n.urlTransform||xu;for(const f of hu)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+cu+f.id,void 0);return Ht(e,s),Fi(e,{Fragment:V.Fragment,components:i,ignoreInvalidStyle:!0,jsx:V.jsx,jsxs:V.jsxs,passKeys:!0,passNode:!0});function s(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return l?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in it)if(Object.hasOwn(it,h)&&Object.hasOwn(f.properties,h)){const d=f.properties[h],w=it[h];(w===null||w.includes(f.tagName))&&(f.properties[h]=u(String(d||""),h,f))}}if(f.type==="element"){let h=t?!t.includes(f.tagName):o?o.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return a&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function xu(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||fu.test(e.slice(0,n))?e:""}function ku(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function yu(e,n,t){const i=tt((t||{}).ignore||[]),o=bu(n);let l=-1;for(;++l<o.length;)pr(e,"text",a);function a(s,f){let c=-1,p;for(;++c<f.length;){const h=f[c],d=p?p.children:void 0;if(i(h,d?d.indexOf(h):void 0,p))return;p=h}if(p)return u(s,f)}function u(s,f){const c=f[f.length-1],p=o[l][0],h=o[l][1];let d=0;const C=c.children.indexOf(s);let x=!1,E=[];p.lastIndex=0;let S=p.exec(s.value);for(;S;){const L=S.index,D={index:S.index,input:S.input,stack:[...f,s]};let b=h(...S,D);if(typeof b=="string"&&(b=b.length>0?{type:"text",value:b}:void 0),b===!1?p.lastIndex=L+1:(d!==L&&E.push({type:"text",value:s.value.slice(d,L)}),Array.isArray(b)?E.push(...b):b&&E.push(b),d=L+S[0].length,x=!0),!p.global)break;S=p.exec(s.value)}return x?(d<s.value.length&&E.push({type:"text",value:s.value.slice(d)}),c.children.splice(C,1,...E)):E=[s],C+E.length}}function bu(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([wu(i[0]),Cu(i[1])])}return n}function wu(e){return typeof e=="string"?new RegExp(ku(e),"g"):e}function Cu(e){return typeof e=="function"?e:function(){return e}}const gt="phrasing",dt=["autolink","link","image","label"];function Su(){return{transforms:[_u],enter:{literalAutolink:Iu,literalAutolinkEmail:xt,literalAutolinkHttp:xt,literalAutolinkWww:xt},exit:{literalAutolink:Fu,literalAutolinkEmail:zu,literalAutolinkHttp:Au,literalAutolinkWww:Tu}}}function Eu(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:gt,notInConstruct:dt},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:gt,notInConstruct:dt},{character:":",before:"[ps]",after:"\\/",inConstruct:gt,notInConstruct:dt}]}}function Iu(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function xt(e){this.config.enter.autolinkProtocol.call(this,e)}function Au(e){this.config.exit.autolinkProtocol.call(this,e)}function Tu(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function zu(e){this.config.exit.autolinkEmail.call(this,e)}function Fu(e){this.exit(e)}function _u(e){yu(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Pu],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Lu]],{ignore:["link","linkReference"]})}function Pu(e,n,t,r,i){let o="";if(!gr(i)||(/^w/i.test(n)&&(t=n+t,n="",o="http://"),!Du(t)))return!1;const l=Nu(t+r);if(!l[0])return!1;const a={type:"link",title:null,url:o+n+l[0],children:[{type:"text",value:n+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function Lu(e,n,t,r){return!gr(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function Du(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function Nu(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Jt(e,"(");let o=Jt(e,")");for(;r!==-1&&i>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}function gr(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||ye(t)||Ke(t))&&(!n||t!==47)}dr.peek=qu;function Ru(){this.buffer()}function vu(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ou(){this.buffer()}function Mu(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Bu(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ie(this.sliceSerialize(e)).toLowerCase(),t.label=n}function ju(e){this.exit(e)}function Hu(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ie(this.sliceSerialize(e)).toLowerCase(),t.label=n}function $u(e){this.exit(e)}function qu(){return"["}function dr(e,n,t,r){const i=t.createTracker(r);let o=i.move("[^");const l=t.enter("footnoteReference"),a=t.enter("reference");return o+=i.move(t.safe(t.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function Vu(){return{enter:{gfmFootnoteCallString:Ru,gfmFootnoteCall:vu,gfmFootnoteDefinitionLabelString:Ou,gfmFootnoteDefinition:Mu},exit:{gfmFootnoteCallString:Bu,gfmFootnoteCall:ju,gfmFootnoteDefinitionLabelString:Hu,gfmFootnoteDefinition:$u}}}function Uu(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:dr},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,o,l){const a=o.createTracker(l);let u=a.move("[^");const s=o.enter("footnoteDefinition"),f=o.enter("label");return u+=a.move(o.safe(o.associationId(r),{before:u,after:"]"})),f(),u+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),u+=a.move((n?`
15
+ `},i),o}function $a(e,n){return e&&"run"in e?async function(t,r){const i=In(t,{file:r,...n});await e.run(i,r)}:function(t,r){return In(t,{file:r,...e||n})}}function An(e){if(e)throw e}var at,Tn;function qa(){if(Tn)return at;Tn=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(s){return typeof Array.isArray=="function"?Array.isArray(s):n.call(s)==="[object Array]"},o=function(s){if(!s||n.call(s)!=="[object Object]")return!1;var f=e.call(s,"constructor"),c=s.constructor&&s.constructor.prototype&&e.call(s.constructor.prototype,"isPrototypeOf");if(s.constructor&&!f&&!c)return!1;var p;for(p in s);return typeof p>"u"||e.call(s,p)},l=function(s,f){t&&f.name==="__proto__"?t(s,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):s[f.name]=f.newValue},a=function(s,f){if(f==="__proto__")if(e.call(s,f)){if(r)return r(s,f).value}else return;return s[f]};return at=function u(){var s,f,c,p,h,d,w=arguments[0],C=1,x=arguments.length,E=!1;for(typeof w=="boolean"&&(E=w,w=arguments[1]||{},C=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});C<x;++C)if(s=arguments[C],s!=null)for(f in s)c=a(w,f),p=a(s,f),w!==p&&(E&&p&&(o(p)||(h=i(p)))?(h?(h=!1,d=c&&i(c)?c:[]):d=c&&o(c)?c:{},l(w,{name:f,newValue:u(E,d,p)})):typeof p<"u"&&l(w,{name:f,newValue:p}));return w},at}var Va=qa();const ut=Bn(Va);function At(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Ua(){const e=[],n={run:t,use:r};return n;function t(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(u,...s){const f=e[++o];let c=-1;if(u){l(u);return}for(;++c<i.length;)(s[c]===null||s[c]===void 0)&&(s[c]=i[c]);i=s,f?Wa(f,a)(...s):l(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Wa(e,n){let t;return r;function r(...l){const a=e.length>l.length;let u;a&&l.push(i);try{u=e.apply(this,l)}catch(s){const f=s;if(a&&t)throw f;return i(f)}a||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(l,...a){t||(t=!0,n(l,...a))}function o(l){i(null,l)}}const le={basename:Qa,dirname:Ga,extname:Xa,join:Ya,sep:"/"};function Qa(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');He(e);let t=0,r=-1,i=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let l=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return t===r?r=l:r<0&&(r=e.length),e.slice(t,r)}function Ga(e){if(He(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Xa(e){He(e);let n=e.length,t=-1,r=0,i=-1,o=0,l;for(;n--;){const a=e.codePointAt(n);if(a===47){if(l){r=n+1;break}continue}t<0&&(l=!0,t=n+1),a===46?i<0?i=n:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||t<0||o===0||o===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Ya(...e){let n=-1,t;for(;++n<e.length;)He(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Ja(t)}function Ja(e){He(e);const n=e.codePointAt(0)===47;let t=Ka(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Ka(e,n){let t="",r=0,i=-1,o=0,l=-1,a,u;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(u=t.lastIndexOf("/"),u!==t.length-1){u<0?(t="",r=0):(t=t.slice(0,u),r=t.length-1-t.lastIndexOf("/")),i=l,o=0;continue}}else if(t.length>0){t="",r=0,i=l,o=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,l):t=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return t}function He(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Za={cwd:eu};function eu(){return"/"}function Tt(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function tu(e){if(typeof e=="string")e=new URL(e);else if(!Tt(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return nu(e)}function nu(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const st=["history","path","basename","stem","extname","dirname"];class mr{constructor(n){let t;n?Tt(n)?t={path:n}:typeof n=="string"||ru(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Za.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<st.length;){const o=st[r];o in t&&t[o]!==void 0&&t[o]!==null&&(this[o]=o==="history"?[...t[o]]:t[o])}let i;for(i in t)st.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?le.basename(this.path):void 0}set basename(n){ft(n,"basename"),ct(n,"basename"),this.path=le.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?le.dirname(this.path):void 0}set dirname(n){zn(this.basename,"dirname"),this.path=le.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?le.extname(this.path):void 0}set extname(n){if(ct(n,"extname"),zn(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=le.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Tt(n)&&(n=tu(n)),ft(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?le.basename(this.path,this.extname):void 0}set stem(n){ft(n,"stem"),ct(n,"stem"),this.path=le.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new G(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function ct(e,n){if(e&&e.includes(le.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+le.sep+"`")}function ft(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function zn(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function ru(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const iu=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),lu={}.hasOwnProperty;class $t extends iu{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Ua()}copy(){const n=new $t;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(ut(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(mt("data",this.frozen),this.namespace[n]=t,this):lu.call(this.namespace,n)&&this.namespace[n]||void 0:n?(mt("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=Ue(n),r=this.parser||this.Parser;return ht("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),ht("process",this.parser||this.Parser),pt("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(o,l){const a=Ue(n),u=r.parse(a);r.run(u,a,function(f,c,p){if(f||!c||!p)return s(f);const h=c,d=r.stringify(h,p);uu(d)?p.value=d:p.result=d,s(f,p)});function s(f,c){f||!c?l(f):o?o(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),ht("processSync",this.parser||this.Parser),pt("processSync",this.compiler||this.Compiler),this.process(n,i),_n("processSync","process",t),r;function i(o,l){t=!0,An(o),r=l}}run(n,t,r){Fn(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const u=Ue(t);i.run(n,u,s);function s(f,c,p){const h=c||n;f?a(f):l?l(h):r(void 0,h,p)}}}runSync(n,t){let r=!1,i;return this.run(n,t,o),_n("runSync","run",r),i;function o(l,a){An(l),i=a,r=!0}}stringify(n,t){this.freeze();const r=Ue(t),i=this.compiler||this.Compiler;return pt("stringify",i),Fn(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(mt("use",this.frozen),n!=null)if(typeof n=="function")u(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(s){if(typeof s=="function")u(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[f,...c]=s;u(f,c)}else l(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function l(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(s.plugins),s.settings&&(i.settings=ut(!0,i.settings,s.settings))}function a(s){let f=-1;if(s!=null)if(Array.isArray(s))for(;++f<s.length;){const c=s[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function u(s,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===s){p=c;break}if(p===-1)r.push([s,...f]);else if(f.length>0){let[h,...d]=f;const w=r[p][1];At(w)&&At(h)&&(h=ut(!0,w,h)),r[p]=[s,h,...d]}}}}const ou=new $t().freeze();function ht(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function pt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function mt(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Fn(e){if(!At(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function _n(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Ue(e){return au(e)?e:new mr(e)}function au(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function uu(e){return typeof e=="string"||su(e)}function su(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const cu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Pn=[],Ln={allowDangerousHtml:!0},fu=/^(https?|ircs?|mailto|xmpp)$/i,hu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function pu(e){const n=mu(e),t=gu(e);return du(n.runSync(n.parse(t),t),e)}function mu(e){const n=e.rehypePlugins||Pn,t=e.remarkPlugins||Pn,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ln}:Ln;return ou().use(Qo).use(t).use($a,r).use(n)}function gu(e){const n=e.children||"",t=new mr;return typeof n=="string"&&(t.value=n),t}function du(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,o=n.disallowedElements,l=n.skipHtml,a=n.unwrapDisallowed,u=n.urlTransform||xu;for(const f of hu)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+cu+f.id,void 0);return Ht(e,s),Fi(e,{Fragment:V.Fragment,components:i,ignoreInvalidStyle:!0,jsx:V.jsx,jsxs:V.jsxs,passKeys:!0,passNode:!0});function s(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return l?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in it)if(Object.hasOwn(it,h)&&Object.hasOwn(f.properties,h)){const d=f.properties[h],w=it[h];(w===null||w.includes(f.tagName))&&(f.properties[h]=u(String(d||""),h,f))}}if(f.type==="element"){let h=t?!t.includes(f.tagName):o?o.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return a&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function xu(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||fu.test(e.slice(0,n))?e:""}function ku(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function yu(e,n,t){const i=tt((t||{}).ignore||[]),o=bu(n);let l=-1;for(;++l<o.length;)pr(e,"text",a);function a(s,f){let c=-1,p;for(;++c<f.length;){const h=f[c],d=p?p.children:void 0;if(i(h,d?d.indexOf(h):void 0,p))return;p=h}if(p)return u(s,f)}function u(s,f){const c=f[f.length-1],p=o[l][0],h=o[l][1];let d=0;const C=c.children.indexOf(s);let x=!1,E=[];p.lastIndex=0;let S=p.exec(s.value);for(;S;){const L=S.index,D={index:S.index,input:S.input,stack:[...f,s]};let b=h(...S,D);if(typeof b=="string"&&(b=b.length>0?{type:"text",value:b}:void 0),b===!1?p.lastIndex=L+1:(d!==L&&E.push({type:"text",value:s.value.slice(d,L)}),Array.isArray(b)?E.push(...b):b&&E.push(b),d=L+S[0].length,x=!0),!p.global)break;S=p.exec(s.value)}return x?(d<s.value.length&&E.push({type:"text",value:s.value.slice(d)}),c.children.splice(C,1,...E)):E=[s],C+E.length}}function bu(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([wu(i[0]),Cu(i[1])])}return n}function wu(e){return typeof e=="string"?new RegExp(ku(e),"g"):e}function Cu(e){return typeof e=="function"?e:function(){return e}}const gt="phrasing",dt=["autolink","link","image","label"];function Su(){return{transforms:[_u],enter:{literalAutolink:Iu,literalAutolinkEmail:xt,literalAutolinkHttp:xt,literalAutolinkWww:xt},exit:{literalAutolink:Fu,literalAutolinkEmail:zu,literalAutolinkHttp:Au,literalAutolinkWww:Tu}}}function Eu(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:gt,notInConstruct:dt},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:gt,notInConstruct:dt},{character:":",before:"[ps]",after:"\\/",inConstruct:gt,notInConstruct:dt}]}}function Iu(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function xt(e){this.config.enter.autolinkProtocol.call(this,e)}function Au(e){this.config.exit.autolinkProtocol.call(this,e)}function Tu(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function zu(e){this.config.exit.autolinkEmail.call(this,e)}function Fu(e){this.exit(e)}function _u(e){yu(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Pu],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Lu]],{ignore:["link","linkReference"]})}function Pu(e,n,t,r,i){let o="";if(!gr(i)||(/^w/i.test(n)&&(t=n+t,n="",o="http://"),!Du(t)))return!1;const l=Nu(t+r);if(!l[0])return!1;const a={type:"link",title:null,url:o+n+l[0],children:[{type:"text",value:n+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function Lu(e,n,t,r){return!gr(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function Du(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function Nu(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Jt(e,"(");let o=Jt(e,")");for(;r!==-1&&i>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}function gr(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||ye(t)||Ke(t))&&(!n||t!==47)}dr.peek=qu;function vu(){this.buffer()}function Ru(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ou(){this.buffer()}function Mu(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Bu(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ie(this.sliceSerialize(e)).toLowerCase(),t.label=n}function ju(e){this.exit(e)}function Hu(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ie(this.sliceSerialize(e)).toLowerCase(),t.label=n}function $u(e){this.exit(e)}function qu(){return"["}function dr(e,n,t,r){const i=t.createTracker(r);let o=i.move("[^");const l=t.enter("footnoteReference"),a=t.enter("reference");return o+=i.move(t.safe(t.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function Vu(){return{enter:{gfmFootnoteCallString:vu,gfmFootnoteCall:Ru,gfmFootnoteDefinitionLabelString:Ou,gfmFootnoteDefinition:Mu},exit:{gfmFootnoteCallString:Bu,gfmFootnoteCall:ju,gfmFootnoteDefinitionLabelString:Hu,gfmFootnoteDefinition:$u}}}function Uu(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:dr},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,o,l){const a=o.createTracker(l);let u=a.move("[^");const s=o.enter("footnoteDefinition"),f=o.enter("label");return u+=a.move(o.safe(o.associationId(r),{before:u,after:"]"})),f(),u+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),u+=a.move((n?`
16
16
  `:" ")+o.indentLines(o.containerFlow(r,a.current()),n?xr:Wu))),s(),u}}function Wu(e,n,t){return n===0?e:xr(e,n,t)}function xr(e,n,t){return(t?"":" ")+e}const Qu=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];kr.peek=Ku;function Gu(){return{canContainEols:["delete"],enter:{strikethrough:Yu},exit:{strikethrough:Ju}}}function Xu(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Qu}],handlers:{delete:kr}}}function Yu(e){this.enter({type:"delete",children:[]},e)}function Ju(e){this.exit(e)}function kr(e,n,t,r){const i=t.createTracker(r),o=t.enter("strikethrough");let l=i.move("~~");return l+=t.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function Ku(){return"~"}function Zu(e){return e.length}function es(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||Zu,o=[],l=[],a=[],u=[];let s=0,f=-1;for(;++f<e.length;){const w=[],C=[];let x=-1;for(e[f].length>s&&(s=e[f].length);++x<e[f].length;){const E=ts(e[f][x]);if(t.alignDelimiters!==!1){const S=i(E);C[x]=S,(u[x]===void 0||S>u[x])&&(u[x]=S)}w.push(E)}l[f]=w,a[f]=C}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<s;)o[c]=Dn(r[c]);else{const w=Dn(r);for(;++c<s;)o[c]=w}c=-1;const p=[],h=[];for(;++c<s;){const w=o[c];let C="",x="";w===99?(C=":",x=":"):w===108?C=":":w===114&&(x=":");let E=t.alignDelimiters===!1?1:Math.max(1,u[c]-C.length-x.length);const S=C+"-".repeat(E)+x;t.alignDelimiters!==!1&&(E=C.length+E+x.length,E>u[c]&&(u[c]=E),h[c]=E),p[c]=S}l.splice(1,0,p),a.splice(1,0,h),f=-1;const d=[];for(;++f<l.length;){const w=l[f],C=a[f];c=-1;const x=[];for(;++c<s;){const E=w[c]||"";let S="",L="";if(t.alignDelimiters!==!1){const D=u[c]-(C[c]||0),b=o[c];b===114?S=" ".repeat(D):b===99?D%2?(S=" ".repeat(D/2+.5),L=" ".repeat(D/2-.5)):(S=" ".repeat(D/2),L=S):L=" ".repeat(D)}t.delimiterStart!==!1&&!c&&x.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&E==="")&&(t.delimiterStart!==!1||c)&&x.push(" "),t.alignDelimiters!==!1&&x.push(S),x.push(E),t.alignDelimiters!==!1&&x.push(L),t.padding!==!1&&x.push(" "),(t.delimiterEnd!==!1||c!==s-1)&&x.push("|")}d.push(t.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return d.join(`
17
- `)}function ts(e){return e==null?"":String(e)}function Dn(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function ns(e,n,t,r){const i=t.enter("blockquote"),o=t.createTracker(r);o.move("> "),o.shift(2);const l=t.indentLines(t.containerFlow(e,o.current()),rs);return i(),l}function rs(e,n,t){return">"+(t?"":" ")+e}function is(e,n){return Nn(e,n.inConstruct,!0)&&!Nn(e,n.notInConstruct,!1)}function Nn(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function Rn(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
17
+ `)}function ts(e){return e==null?"":String(e)}function Dn(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function ns(e,n,t,r){const i=t.enter("blockquote"),o=t.createTracker(r);o.move("> "),o.shift(2);const l=t.indentLines(t.containerFlow(e,o.current()),rs);return i(),l}function rs(e,n,t){return">"+(t?"":" ")+e}function is(e,n){return Nn(e,n.inConstruct,!0)&&!Nn(e,n.notInConstruct,!1)}function Nn(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function vn(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
18
18
  `&&is(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
19
19
  `}function ls(e,n){const t=String(e);let r=t.indexOf(n),i=r,o=0,l=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+n.length,r=t.indexOf(n,i);return l}function os(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function as(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function us(e,n,t,r){const i=as(t),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(os(e,t)){const c=t.enter("codeIndented"),p=t.indentLines(o,ss);return c(),p}const a=t.createTracker(r),u=i.repeat(Math.max(ls(o,i)+1,3)),s=t.enter("codeFenced");let f=a.move(u);if(e.lang){const c=t.enter(`codeFencedLang${l}`);f+=a.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${l}`);f+=a.move(" "),f+=a.move(t.safe(e.meta,{before:f,after:`
20
20
  `,encode:["`"],...a.current()})),c()}return f+=a.move(`
@@ -25,6 +25,6 @@ import{j as V,r as ke,ad as Qr,bl as Gr,B as Xr,b3 as Yr,ao as Jr,am as Kr,a8 as
25
25
  `});return c(),f(),p+`
26
26
  `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
27
27
  `))+1))}const l="#".repeat(i),a=t.enter("headingAtx"),u=t.enter("phrasing");o.move(l+" ");let s=t.containerPhrasing(e,{before:"# ",after:`
28
- `,...o.current()});return/^[\t ]/.test(s)&&(s=Be(s.charCodeAt(0))+s.slice(1)),s=s?l+" "+s:l,t.options.closeAtx&&(s+=" "+l),u(),a(),s}br.peek=gs;function br(e){return e.value||""}function gs(){return"<"}wr.peek=ds;function wr(e,n,t,r){const i=qt(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("image");let a=t.enter("label");const u=t.createTracker(r);let s=u.move("![");return s+=u.move(t.safe(e.alt,{before:s,after:"]",...u.current()})),s+=u.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(t.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=t.enter("destinationRaw"),s+=u.move(t.safe(e.url,{before:s,after:e.title?" ":")",...u.current()}))),a(),e.title&&(a=t.enter(`title${o}`),s+=u.move(" "+i),s+=u.move(t.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),s+=u.move(")"),l(),s}function ds(){return"!"}Cr.peek=xs;function Cr(e,n,t,r){const i=e.referenceType,o=t.enter("imageReference");let l=t.enter("label");const a=t.createTracker(r);let u=a.move("![");const s=t.safe(e.alt,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:u,after:"]",...a.current()});return l(),t.stack=f,o(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function xs(){return"!"}Sr.peek=ks;function Sr(e,n,t){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<t.unsafe.length;){const l=t.unsafe[o],a=t.compilePattern(l);let u;if(l.atBreak)for(;u=a.exec(r);){let s=u.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(u.index+1)}}return i+r+i}function ks(){return"`"}function Er(e,n){const t=Nt(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ir.peek=ys;function Ir(e,n,t,r){const i=qt(t),o=i==='"'?"Quote":"Apostrophe",l=t.createTracker(r);let a,u;if(Er(e,t)){const f=t.stack;t.stack=[],a=t.enter("autolink");let c=l.move("<");return c+=l.move(t.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),a(),t.stack=f,c}a=t.enter("link"),u=t.enter("label");let s=l.move("[");return s+=l.move(t.containerPhrasing(e,{before:s,after:"](",...l.current()})),s+=l.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=l.move("<"),s+=l.move(t.safe(e.url,{before:s,after:">",...l.current()})),s+=l.move(">")):(u=t.enter("destinationRaw"),s+=l.move(t.safe(e.url,{before:s,after:e.title?" ":")",...l.current()}))),u(),e.title&&(u=t.enter(`title${o}`),s+=l.move(" "+i),s+=l.move(t.safe(e.title,{before:s,after:i,...l.current()})),s+=l.move(i),u()),s+=l.move(")"),a(),s}function ys(e,n,t){return Er(e,t)?"<":"["}Ar.peek=bs;function Ar(e,n,t,r){const i=e.referenceType,o=t.enter("linkReference");let l=t.enter("label");const a=t.createTracker(r);let u=a.move("[");const s=t.containerPhrasing(e,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:u,after:"]",...a.current()});return l(),t.stack=f,o(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function bs(){return"["}function Vt(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function ws(e){const n=Vt(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function Cs(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Tr(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function Ss(e,n,t,r){const i=t.enter("list"),o=t.bulletCurrent;let l=e.ordered?Cs(t):Vt(t);const a=e.ordered?l==="."?")":".":ws(t);let u=n&&t.bulletLastUsed?l===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(u=!0),Tr(t)===l&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(l=a),t.bulletCurrent=l;const s=t.containerFlow(e,r);return t.bulletLastUsed=l,t.bulletCurrent=o,i(),s}function Es(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function Is(e,n,t,r){const i=Es(t);let o=t.bulletCurrent||Vt(t);n&&n.type==="list"&&n.ordered&&(o=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(l=Math.ceil(l/4)*4);const a=t.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);const u=t.enter("listItem"),s=t.indentLines(t.containerFlow(e,a.current()),f);return u(),s;function f(c,p,h){return p?(h?"":" ".repeat(l))+c:(h?o:o+" ".repeat(l-o.length))+c}}function As(e,n,t,r){const i=t.enter("paragraph"),o=t.enter("phrasing"),l=t.containerPhrasing(e,r);return o(),i(),l}const Ts=tt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function zs(e,n,t,r){return(e.children.some(function(l){return Ts(l)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function Fs(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}zr.peek=_s;function zr(e,n,t,r){const i=Fs(t),o=t.enter("strong"),l=t.createTracker(r),a=l.move(i+i);let u=l.move(t.containerPhrasing(e,{after:i,before:a,...l.current()}));const s=u.charCodeAt(0),f=Je(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(u=Be(s)+u.slice(1));const c=u.charCodeAt(u.length-1),p=Je(r.after.charCodeAt(0),c,i);p.inside&&(u=u.slice(0,-1)+Be(c));const h=l.move(i+i);return o(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+h}function _s(e,n,t){return t.options.strong||"*"}function Ps(e,n,t,r){return t.safe(e.value,r)}function Ls(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function Ds(e,n,t){const r=(Tr(t)+(t.options.ruleSpaces?" ":"")).repeat(Ls(t));return t.options.ruleSpaces?r.slice(0,-1):r}const Fr={blockquote:ns,break:Rn,code:us,definition:cs,emphasis:yr,hardBreak:Rn,heading:ms,html:br,image:wr,imageReference:Cr,inlineCode:Sr,link:Ir,linkReference:Ar,list:Ss,listItem:Is,paragraph:As,root:zs,strong:zr,text:Ps,thematicBreak:Ds};function Ns(){return{enter:{table:Rs,tableData:vn,tableHeader:vn,tableRow:Os},exit:{codeText:Ms,table:vs,tableData:kt,tableHeader:kt,tableRow:kt}}}function Rs(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function vs(e){this.exit(e),this.data.inTable=void 0}function Os(e){this.enter({type:"tableRow",children:[]},e)}function kt(e){this.exit(e)}function vn(e){this.enter({type:"tableCell",children:[]},e)}function Ms(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Bs));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Bs(e,n){return n==="|"?n:e}function js(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,o=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
28
+ `,...o.current()});return/^[\t ]/.test(s)&&(s=Be(s.charCodeAt(0))+s.slice(1)),s=s?l+" "+s:l,t.options.closeAtx&&(s+=" "+l),u(),a(),s}br.peek=gs;function br(e){return e.value||""}function gs(){return"<"}wr.peek=ds;function wr(e,n,t,r){const i=qt(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("image");let a=t.enter("label");const u=t.createTracker(r);let s=u.move("![");return s+=u.move(t.safe(e.alt,{before:s,after:"]",...u.current()})),s+=u.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(t.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=t.enter("destinationRaw"),s+=u.move(t.safe(e.url,{before:s,after:e.title?" ":")",...u.current()}))),a(),e.title&&(a=t.enter(`title${o}`),s+=u.move(" "+i),s+=u.move(t.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),s+=u.move(")"),l(),s}function ds(){return"!"}Cr.peek=xs;function Cr(e,n,t,r){const i=e.referenceType,o=t.enter("imageReference");let l=t.enter("label");const a=t.createTracker(r);let u=a.move("![");const s=t.safe(e.alt,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:u,after:"]",...a.current()});return l(),t.stack=f,o(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function xs(){return"!"}Sr.peek=ks;function Sr(e,n,t){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<t.unsafe.length;){const l=t.unsafe[o],a=t.compilePattern(l);let u;if(l.atBreak)for(;u=a.exec(r);){let s=u.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(u.index+1)}}return i+r+i}function ks(){return"`"}function Er(e,n){const t=Nt(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ir.peek=ys;function Ir(e,n,t,r){const i=qt(t),o=i==='"'?"Quote":"Apostrophe",l=t.createTracker(r);let a,u;if(Er(e,t)){const f=t.stack;t.stack=[],a=t.enter("autolink");let c=l.move("<");return c+=l.move(t.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),a(),t.stack=f,c}a=t.enter("link"),u=t.enter("label");let s=l.move("[");return s+=l.move(t.containerPhrasing(e,{before:s,after:"](",...l.current()})),s+=l.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=l.move("<"),s+=l.move(t.safe(e.url,{before:s,after:">",...l.current()})),s+=l.move(">")):(u=t.enter("destinationRaw"),s+=l.move(t.safe(e.url,{before:s,after:e.title?" ":")",...l.current()}))),u(),e.title&&(u=t.enter(`title${o}`),s+=l.move(" "+i),s+=l.move(t.safe(e.title,{before:s,after:i,...l.current()})),s+=l.move(i),u()),s+=l.move(")"),a(),s}function ys(e,n,t){return Er(e,t)?"<":"["}Ar.peek=bs;function Ar(e,n,t,r){const i=e.referenceType,o=t.enter("linkReference");let l=t.enter("label");const a=t.createTracker(r);let u=a.move("[");const s=t.containerPhrasing(e,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:u,after:"]",...a.current()});return l(),t.stack=f,o(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function bs(){return"["}function Vt(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function ws(e){const n=Vt(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function Cs(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Tr(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function Ss(e,n,t,r){const i=t.enter("list"),o=t.bulletCurrent;let l=e.ordered?Cs(t):Vt(t);const a=e.ordered?l==="."?")":".":ws(t);let u=n&&t.bulletLastUsed?l===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(u=!0),Tr(t)===l&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(l=a),t.bulletCurrent=l;const s=t.containerFlow(e,r);return t.bulletLastUsed=l,t.bulletCurrent=o,i(),s}function Es(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function Is(e,n,t,r){const i=Es(t);let o=t.bulletCurrent||Vt(t);n&&n.type==="list"&&n.ordered&&(o=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(l=Math.ceil(l/4)*4);const a=t.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);const u=t.enter("listItem"),s=t.indentLines(t.containerFlow(e,a.current()),f);return u(),s;function f(c,p,h){return p?(h?"":" ".repeat(l))+c:(h?o:o+" ".repeat(l-o.length))+c}}function As(e,n,t,r){const i=t.enter("paragraph"),o=t.enter("phrasing"),l=t.containerPhrasing(e,r);return o(),i(),l}const Ts=tt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function zs(e,n,t,r){return(e.children.some(function(l){return Ts(l)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function Fs(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}zr.peek=_s;function zr(e,n,t,r){const i=Fs(t),o=t.enter("strong"),l=t.createTracker(r),a=l.move(i+i);let u=l.move(t.containerPhrasing(e,{after:i,before:a,...l.current()}));const s=u.charCodeAt(0),f=Je(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(u=Be(s)+u.slice(1));const c=u.charCodeAt(u.length-1),p=Je(r.after.charCodeAt(0),c,i);p.inside&&(u=u.slice(0,-1)+Be(c));const h=l.move(i+i);return o(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+h}function _s(e,n,t){return t.options.strong||"*"}function Ps(e,n,t,r){return t.safe(e.value,r)}function Ls(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function Ds(e,n,t){const r=(Tr(t)+(t.options.ruleSpaces?" ":"")).repeat(Ls(t));return t.options.ruleSpaces?r.slice(0,-1):r}const Fr={blockquote:ns,break:vn,code:us,definition:cs,emphasis:yr,hardBreak:vn,heading:ms,html:br,image:wr,imageReference:Cr,inlineCode:Sr,link:Ir,linkReference:Ar,list:Ss,listItem:Is,paragraph:As,root:zs,strong:zr,text:Ps,thematicBreak:Ds};function Ns(){return{enter:{table:vs,tableData:Rn,tableHeader:Rn,tableRow:Os},exit:{codeText:Ms,table:Rs,tableData:kt,tableHeader:kt,tableRow:kt}}}function vs(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function Rs(e){this.exit(e),this.data.inTable=void 0}function Os(e){this.enter({type:"tableRow",children:[]},e)}function kt(e){this.exit(e)}function Rn(e){this.enter({type:"tableCell",children:[]},e)}function Ms(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Bs));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Bs(e,n){return n==="|"?n:e}function js(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,o=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
29
29
  `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:u,tableRow:a}};function l(h,d,w,C){return s(f(h,w,C),h.align)}function a(h,d,w,C){const x=c(h,w,C),E=s([x]);return E.slice(0,E.indexOf(`
30
- `))}function u(h,d,w,C){const x=w.enter("tableCell"),E=w.enter("phrasing"),S=w.containerPhrasing(h,{...C,before:o,after:o});return E(),x(),S}function s(h,d){return es(h,{align:d,alignDelimiters:r,padding:t,stringLength:i})}function f(h,d,w){const C=h.children;let x=-1;const E=[],S=d.enter("table");for(;++x<C.length;)E[x]=c(C[x],d,w);return S(),E}function c(h,d,w){const C=h.children;let x=-1;const E=[],S=d.enter("tableRow");for(;++x<C.length;)E[x]=u(C[x],h,d,w);return S(),E}function p(h,d,w){let C=Fr.inlineCode(h,d,w);return w.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function Hs(){return{exit:{taskListCheckValueChecked:On,taskListCheckValueUnchecked:On,paragraph:qs}}}function $s(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Vs}}}function On(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function qs(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Vs(e,n,t,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);o&&a.move(l);let u=Fr.listItem(e,n,t,{...r,...a.current()});return o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),u;function s(f){return f+l}}function Us(){return[Su(),Vu(),Gu(),Ns(),Hs()]}function Ws(e){return{extensions:[Eu(),Uu(e),Xu(),js(e),$s()]}}const Qs={tokenize:Zs,partial:!0},_r={tokenize:ec,partial:!0},Pr={tokenize:tc,partial:!0},Lr={tokenize:nc,partial:!0},Gs={tokenize:rc,partial:!0},Dr={name:"wwwAutolink",tokenize:Js,previous:Rr},Nr={name:"protocolAutolink",tokenize:Ks,previous:vr},fe={name:"emailAutolink",tokenize:Ys,previous:Or},oe={};function Xs(){return{text:oe}}let xe=48;for(;xe<123;)oe[xe]=fe,xe++,xe===58?xe=65:xe===91&&(xe=97);oe[43]=fe;oe[45]=fe;oe[46]=fe;oe[95]=fe;oe[72]=[fe,Nr];oe[104]=[fe,Nr];oe[87]=[fe,Dr];oe[119]=[fe,Dr];function Ys(e,n,t){const r=this;let i,o;return l;function l(c){return!zt(c)||!Or.call(r,r.previous)||Ut(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return zt(c)?(e.consume(c),a):c===64?(e.consume(c),u):t(c)}function u(c){return c===46?e.check(Gs,f,s)(c):c===45||c===95||Q(c)?(o=!0,e.consume(c),u):f(c)}function s(c){return e.consume(c),i=!0,u}function f(c){return o&&i&&X(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Js(e,n,t){const r=this;return i;function i(l){return l!==87&&l!==119||!Rr.call(r,r.previous)||Ut(r.events)?t(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Qs,e.attempt(_r,e.attempt(Pr,o),t),t)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function Ks(e,n,t){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&vr.call(r,r.previous)&&!Ut(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):t(c)}function a(c){if(X(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),u}return t(c)}function u(c){return c===47?(e.consume(c),o?s:(o=!0,u)):t(c)}function s(c){return c===null||Ge(c)||q(c)||ye(c)||Ke(c)?t(c):e.attempt(_r,e.attempt(Pr,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function Zs(e,n,t){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):t(l)}function o(l){return l===null?t(l):n(l)}}function ec(e,n,t){let r,i,o;return l;function l(s){return s===46||s===95?e.check(Lr,u,a)(s):s===null||q(s)||ye(s)||s!==45&&Ke(s)?u(s):(o=!0,e.consume(s),l)}function a(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),l}function u(s){return i||r||!o?t(s):n(s)}}function tc(e,n){let t=0,r=0;return i;function i(l){return l===40?(t++,e.consume(l),i):l===41&&r<t?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Lr,n,o)(l):l===null||q(l)||ye(l)?n(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function nc(e,n,t){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||q(a)||ye(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||q(a)||ye(a)?n(a):r(a)}function o(a){return X(a)?l(a):t(a)}function l(a){return a===59?(e.consume(a),r):X(a)?(e.consume(a),l):t(a)}}function rc(e,n,t){return r;function r(o){return e.consume(o),i}function i(o){return Q(o)?t(o):n(o)}}function Rr(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||q(e)}function vr(e){return!X(e)}function Or(e){return!(e===47||zt(e))}function zt(e){return e===43||e===45||e===46||e===95||Q(e)}function Ut(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const ic={tokenize:hc,partial:!0};function lc(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:sc,continuation:{tokenize:cc},exit:fc}},text:{91:{name:"gfmFootnoteCall",tokenize:uc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:oc,resolveTo:ac}}}}function oc(e,n,t){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){l=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return a;function a(u){if(!l||!l._balanced)return t(u);const s=ie(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==94||!o.includes(s.slice(1))?t(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),n(u))}}function ac(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",o,n],["enter",l,n],["exit",l,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...a),e}function uc(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),u}function u(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(o>999||c===93&&!l||c===null||c===91||q(c))return t(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(ie(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return q(c)||(l=!0),o++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,s):s(c)}}function sc(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return u;function u(d){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(d){return d===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(d)}function f(d){if(l>999||d===93&&!a||d===null||d===91||q(d))return t(d);if(d===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return o=ie(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return q(d)||(a=!0),l++,e.consume(d),d===92?c:f}function c(d){return d===91||d===92||d===93?(e.consume(d),l++,f):f(d)}function p(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),i.includes(o)||i.push(o),O(e,h,"gfmFootnoteDefinitionWhitespace")):t(d)}function h(d){return n(d)}}function cc(e,n,t){return e.check(je,n,e.attempt(ic,n,t))}function fc(e){e.exit("gfmFootnoteDefinition")}function hc(e,n,t){const r=this;return O(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?n(o):t(o)}}function pc(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let u=-1;for(;++u<l.length;)if(l[u][0]==="enter"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._close){let s=u;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[u][1].end.offset-l[u][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[u][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[u][1].end)},c={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[u][1].start)},p=[["enter",f,a],["enter",l[s][1],a],["exit",l[s][1],a],["enter",c,a]],h=a.parser.constructs.insideSpan.null;h&&K(p,p.length,0,Ze(h,l.slice(s+1,u),a)),K(p,p.length,0,[["exit",c,a],["enter",l[u][1],a],["exit",l[u][1],a],["exit",f,a]]),K(l,s-1,u-s+3,p),u=s+p.length-2;break}}for(u=-1;++u<l.length;)l[u][1].type==="strikethroughSequenceTemporary"&&(l[u][1].type="data");return l}function o(l,a,u){const s=this.previous,f=this.events;let c=0;return p;function p(d){return s===126&&f[f.length-1][1].type!=="characterEscape"?u(d):(l.enter("strikethroughSequenceTemporary"),h(d))}function h(d){const w=Ae(s);if(d===126)return c>1?u(d):(l.consume(d),c++,h);if(c<2&&!t)return u(d);const C=l.exit("strikethroughSequenceTemporary"),x=Ae(d);return C._open=!x||x===2&&!!w,C._close=!w||w===2&&!!x,a(d)}}}class mc{constructor(){this.map=[]}add(n,t,r){gc(this,n,t,r)}consume(n){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const o of i)n.push(o);i=r.pop()}this.map.length=0}}function gc(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function dc(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function xc(){return{flow:{null:{name:"table",tokenize:kc,resolveAll:yc}}}}function kc(e,n,t){const r=this;let i=0,o=0,l;return a;function a(k){let T=r.events.length-1;for(;T>-1;){const _=r.events[T][1].type;if(_==="lineEnding"||_==="linePrefix")T--;else break}const z=T>-1?r.events[T][1].type:null,j=z==="tableHead"||z==="tableRow"?b:u;return j===b&&r.parser.lazy[r.now().line]?t(k):j(k)}function u(k){return e.enter("tableHead"),e.enter("tableRow"),s(k)}function s(k){return k===124||(l=!0,o+=1),f(k)}function f(k){return k===null?t(k):F(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),h):t(k):N(k)?O(e,f,"whitespace")(k):(o+=1,l&&(l=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(k)))}function c(k){return k===null||k===124||q(k)?(e.exit("data"),f(k)):(e.consume(k),k===92?p:c)}function p(k){return k===92||k===124?(e.consume(k),c):c(k)}function h(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(k):(e.enter("tableDelimiterRow"),l=!1,N(k)?O(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):d(k))}function d(k){return k===45||k===58?C(k):k===124?(l=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),w):D(k)}function w(k){return N(k)?O(e,C,"whitespace")(k):C(k)}function C(k){return k===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),x):k===45?(o+=1,x(k)):k===null||F(k)?L(k):D(k)}function x(k){return k===45?(e.enter("tableDelimiterFiller"),E(k)):D(k)}function E(k){return k===45?(e.consume(k),E):k===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(k))}function S(k){return N(k)?O(e,L,"whitespace")(k):L(k)}function L(k){return k===124?d(k):k===null||F(k)?!l||i!==o?D(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(k)):D(k)}function D(k){return t(k)}function b(k){return e.enter("tableRow"),R(k)}function R(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),R):k===null||F(k)?(e.exit("tableRow"),n(k)):N(k)?O(e,R,"whitespace")(k):(e.enter("data"),B(k))}function B(k){return k===null||k===124||q(k)?(e.exit("data"),R(k)):(e.consume(k),k===92?M:B)}function M(k){return k===92||k===124?(e.consume(k),B):B(k)}}function yc(e,n){let t=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,u=0,s,f,c;const p=new mc;for(;++t<e.length;){const h=e[t],d=h[1];h[0]==="enter"?d.type==="tableHead"?(a=!1,u!==0&&(Mn(p,n,u,s,f),f=void 0,u=0),s={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(t,0,[["enter",s,n]])):d.type==="tableRow"||d.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,t+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(t,0,[["enter",f,n]])),i=d.type==="tableDelimiterRow"?2:f?3:1):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=We(p,n,o,i,void 0,c),o=[0,0,0,0]),l[2]=t)):d.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=We(p,n,o,i,void 0,c)),o=l,l=[o[1],t,0,0])):d.type==="tableHead"?(a=!0,u=t):d.type==="tableRow"||d.type==="tableDelimiterRow"?(u=t,o[1]!==0?(l[0]=l[1],c=We(p,n,o,i,t,c)):l[1]!==0&&(c=We(p,n,l,i,t,c)),i=0):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(l[3]=t)}for(u!==0&&Mn(p,n,u,s,f),p.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=dc(n.events,t))}return e}function We(e,n,t,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(o.end=Object.assign({},Ie(n.events,t[0])),e.add(t[0],0,[["exit",o,n]]));const u=Ie(n.events,t[1]);if(o={type:l,start:Object.assign({},u),end:Object.assign({},u)},e.add(t[1],0,[["enter",o,n]]),t[2]!==0){const s=Ie(n.events,t[2]),f=Ie(n.events,t[3]),c={type:a,start:Object.assign({},s),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const p=n.events[t[2]],h=n.events[t[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",t[3]>t[2]+1){const d=t[2]+1,w=t[3]-t[2]-1;e.add(d,w,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(o.end=Object.assign({},Ie(n.events,i)),e.add(i,0,[["exit",o,n]]),o=void 0),o}function Mn(e,n,t,r,i){const o=[],l=Ie(n.events,t);i&&(i.end=Object.assign({},l),o.push(["exit",i,n])),r.end=Object.assign({},l),o.push(["exit",r,n]),e.add(t+1,0,o)}function Ie(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const bc={name:"tasklistCheck",tokenize:Cc};function wc(){return{text:{91:bc}}}function Cc(e,n,t){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),o)}function o(u){return q(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),l):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),l):t(u)}function l(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(u)}function a(u){return F(u)?n(u):N(u)?e.check({tokenize:Sc},n,t)(u):t(u)}}function Sc(e,n,t){return O(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function Ec(e){return Gn([Xs(),lc(),pc(e),xc(),wc()])}const Ic={};function Ac(e){const n=this,t=e||Ic,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Ec(t)),o.push(Us()),l.push(Ws(t))}const Tc=["md","mdx","markdown"];function Pc(e){const n=e.split(".").at(-1)?.toLowerCase()??"";return Tc.includes(n)}function Lc({content:e,className:n,compact:t=!1,commentsByLine:r,assetBaseUrl:i}){const o=u=>{const s=u?.position?.start.line,f=u?.position?.end.line;return s===void 0?{}:{"data-source-start-line":s,"data-source-end-line":f??s}},l=u=>{const s=u?.position?.start.line,f=u?.position?.end.line??s;if(s===void 0||f===void 0||r===void 0)return[];const c=new Map;for(let p=s;p<=f;p++)for(const h of r.get(p)??[])c.set(h.id,h);return[...c.values()]},a=u=>({node:s,className:f,children:c,...p})=>{const h=l(s);return ke.createElement(u,{...p,...o(s),className:ai(f,"relative",ui(h))},V.jsx(Kt,{comments:h}),c)};return V.jsx("div",{className:n??"h-full overflow-y-auto",children:V.jsx("article",{className:t?"prose prose-sm dark:prose-invert max-w-none px-3 py-2 prose-code:before:content-none prose-code:after:content-none":"prose prose-sm dark:prose-invert max-w-3xl px-6 py-4 prose-code:before:content-none prose-code:after:content-none",children:V.jsx(pu,{remarkPlugins:[Ac],components:{a:({node:u,...s})=>V.jsx("a",{...s,...o(u),target:"_blank",rel:"noreferrer"}),img:({node:u,src:s,alt:f,...c})=>{const p=i!=null&&s!==void 0&&!/^(?:data:|https?:|\/\/|#)/i.test(s)?`${i}/${s.split("/").map(encodeURIComponent).join("/")}`:s;return V.jsx("img",{...c,...o(u),src:p,alt:f??""})},p:a("p"),h1:a("h1"),h2:a("h2"),h3:a("h3"),h4:a("h4"),h5:a("h5"),h6:a("h6"),li:a("li"),blockquote:a("blockquote"),pre:({node:u,...s})=>V.jsxs("div",{...o(u),className:"relative",children:[V.jsx(Kt,{comments:l(u)}),V.jsx(mi,{node:u,...s})]})},children:e})})})}const zc=["html","htm"],yt='<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">';function Dc(e){const n=e.split(".").at(-1)?.toLowerCase()??"";return zc.includes(n)}function Fc(e){if(/<meta\b[^>]*\bname\s*=\s*["']viewport["']/i.test(e))return e;const n=/<head\b[^>]*>/i;if(n.test(e))return e.replace(n,r=>r+yt);const t=/<html\b[^>]*>/i;return t.test(e)?e.replace(t,r=>`${r}<head>${yt}</head>`):`<!doctype html><html><head>${yt}</head><body>${e}</body></html>`}function Nc({src:e,title:n,onSelection:t}){const r=ke.useRef(null);return ke.useEffect(()=>{const i=o=>{if(o.source!==r.current?.contentWindow)return;const l=o.data;if(l?.source!=="porcelain-file-preview"||l.type!=="selection"||typeof l.text!="string")return;const a=l.text.trim().slice(0,2e3);a!==""&&t?.(a)};return window.addEventListener("message",i),()=>window.removeEventListener("message",i)},[t]),V.jsx("iframe",{ref:r,"data-testid":jn.htmlPreviewIframe,title:n,src:e,sandbox:"allow-scripts",className:"min-h-0 h-full w-full flex-1 border-0 bg-white"})}function Rc({html:e,title:n="HTML preview"}){return V.jsx("iframe",{"data-testid":jn.evidenceIframe,title:n,srcDoc:Fc(e),sandbox:"",scrolling:"yes",className:"min-h-0 h-full w-full flex-1 overflow-y-auto overscroll-contain border-0 bg-background",style:{WebkitOverflowScrolling:"touch"}})}export{Nc as H,Lc as M,Dc as a,Rc as b,Pc as i};
30
+ `))}function u(h,d,w,C){const x=w.enter("tableCell"),E=w.enter("phrasing"),S=w.containerPhrasing(h,{...C,before:o,after:o});return E(),x(),S}function s(h,d){return es(h,{align:d,alignDelimiters:r,padding:t,stringLength:i})}function f(h,d,w){const C=h.children;let x=-1;const E=[],S=d.enter("table");for(;++x<C.length;)E[x]=c(C[x],d,w);return S(),E}function c(h,d,w){const C=h.children;let x=-1;const E=[],S=d.enter("tableRow");for(;++x<C.length;)E[x]=u(C[x],h,d,w);return S(),E}function p(h,d,w){let C=Fr.inlineCode(h,d,w);return w.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function Hs(){return{exit:{taskListCheckValueChecked:On,taskListCheckValueUnchecked:On,paragraph:qs}}}function $s(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Vs}}}function On(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function qs(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Vs(e,n,t,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);o&&a.move(l);let u=Fr.listItem(e,n,t,{...r,...a.current()});return o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),u;function s(f){return f+l}}function Us(){return[Su(),Vu(),Gu(),Ns(),Hs()]}function Ws(e){return{extensions:[Eu(),Uu(e),Xu(),js(e),$s()]}}const Qs={tokenize:Zs,partial:!0},_r={tokenize:ec,partial:!0},Pr={tokenize:tc,partial:!0},Lr={tokenize:nc,partial:!0},Gs={tokenize:rc,partial:!0},Dr={name:"wwwAutolink",tokenize:Js,previous:vr},Nr={name:"protocolAutolink",tokenize:Ks,previous:Rr},fe={name:"emailAutolink",tokenize:Ys,previous:Or},oe={};function Xs(){return{text:oe}}let xe=48;for(;xe<123;)oe[xe]=fe,xe++,xe===58?xe=65:xe===91&&(xe=97);oe[43]=fe;oe[45]=fe;oe[46]=fe;oe[95]=fe;oe[72]=[fe,Nr];oe[104]=[fe,Nr];oe[87]=[fe,Dr];oe[119]=[fe,Dr];function Ys(e,n,t){const r=this;let i,o;return l;function l(c){return!zt(c)||!Or.call(r,r.previous)||Ut(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return zt(c)?(e.consume(c),a):c===64?(e.consume(c),u):t(c)}function u(c){return c===46?e.check(Gs,f,s)(c):c===45||c===95||Q(c)?(o=!0,e.consume(c),u):f(c)}function s(c){return e.consume(c),i=!0,u}function f(c){return o&&i&&X(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Js(e,n,t){const r=this;return i;function i(l){return l!==87&&l!==119||!vr.call(r,r.previous)||Ut(r.events)?t(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Qs,e.attempt(_r,e.attempt(Pr,o),t),t)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function Ks(e,n,t){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&Rr.call(r,r.previous)&&!Ut(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):t(c)}function a(c){if(X(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),u}return t(c)}function u(c){return c===47?(e.consume(c),o?s:(o=!0,u)):t(c)}function s(c){return c===null||Ge(c)||q(c)||ye(c)||Ke(c)?t(c):e.attempt(_r,e.attempt(Pr,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function Zs(e,n,t){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):t(l)}function o(l){return l===null?t(l):n(l)}}function ec(e,n,t){let r,i,o;return l;function l(s){return s===46||s===95?e.check(Lr,u,a)(s):s===null||q(s)||ye(s)||s!==45&&Ke(s)?u(s):(o=!0,e.consume(s),l)}function a(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),l}function u(s){return i||r||!o?t(s):n(s)}}function tc(e,n){let t=0,r=0;return i;function i(l){return l===40?(t++,e.consume(l),i):l===41&&r<t?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Lr,n,o)(l):l===null||q(l)||ye(l)?n(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function nc(e,n,t){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||q(a)||ye(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||q(a)||ye(a)?n(a):r(a)}function o(a){return X(a)?l(a):t(a)}function l(a){return a===59?(e.consume(a),r):X(a)?(e.consume(a),l):t(a)}}function rc(e,n,t){return r;function r(o){return e.consume(o),i}function i(o){return Q(o)?t(o):n(o)}}function vr(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||q(e)}function Rr(e){return!X(e)}function Or(e){return!(e===47||zt(e))}function zt(e){return e===43||e===45||e===46||e===95||Q(e)}function Ut(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const ic={tokenize:hc,partial:!0};function lc(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:sc,continuation:{tokenize:cc},exit:fc}},text:{91:{name:"gfmFootnoteCall",tokenize:uc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:oc,resolveTo:ac}}}}function oc(e,n,t){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){l=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return a;function a(u){if(!l||!l._balanced)return t(u);const s=ie(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==94||!o.includes(s.slice(1))?t(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),n(u))}}function ac(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",o,n],["enter",l,n],["exit",l,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...a),e}function uc(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),u}function u(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(o>999||c===93&&!l||c===null||c===91||q(c))return t(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(ie(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return q(c)||(l=!0),o++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,s):s(c)}}function sc(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return u;function u(d){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(d){return d===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(d)}function f(d){if(l>999||d===93&&!a||d===null||d===91||q(d))return t(d);if(d===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return o=ie(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return q(d)||(a=!0),l++,e.consume(d),d===92?c:f}function c(d){return d===91||d===92||d===93?(e.consume(d),l++,f):f(d)}function p(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),i.includes(o)||i.push(o),O(e,h,"gfmFootnoteDefinitionWhitespace")):t(d)}function h(d){return n(d)}}function cc(e,n,t){return e.check(je,n,e.attempt(ic,n,t))}function fc(e){e.exit("gfmFootnoteDefinition")}function hc(e,n,t){const r=this;return O(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?n(o):t(o)}}function pc(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let u=-1;for(;++u<l.length;)if(l[u][0]==="enter"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._close){let s=u;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[u][1].end.offset-l[u][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[u][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[u][1].end)},c={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[u][1].start)},p=[["enter",f,a],["enter",l[s][1],a],["exit",l[s][1],a],["enter",c,a]],h=a.parser.constructs.insideSpan.null;h&&K(p,p.length,0,Ze(h,l.slice(s+1,u),a)),K(p,p.length,0,[["exit",c,a],["enter",l[u][1],a],["exit",l[u][1],a],["exit",f,a]]),K(l,s-1,u-s+3,p),u=s+p.length-2;break}}for(u=-1;++u<l.length;)l[u][1].type==="strikethroughSequenceTemporary"&&(l[u][1].type="data");return l}function o(l,a,u){const s=this.previous,f=this.events;let c=0;return p;function p(d){return s===126&&f[f.length-1][1].type!=="characterEscape"?u(d):(l.enter("strikethroughSequenceTemporary"),h(d))}function h(d){const w=Ae(s);if(d===126)return c>1?u(d):(l.consume(d),c++,h);if(c<2&&!t)return u(d);const C=l.exit("strikethroughSequenceTemporary"),x=Ae(d);return C._open=!x||x===2&&!!w,C._close=!w||w===2&&!!x,a(d)}}}class mc{constructor(){this.map=[]}add(n,t,r){gc(this,n,t,r)}consume(n){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const o of i)n.push(o);i=r.pop()}this.map.length=0}}function gc(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function dc(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function xc(){return{flow:{null:{name:"table",tokenize:kc,resolveAll:yc}}}}function kc(e,n,t){const r=this;let i=0,o=0,l;return a;function a(k){let T=r.events.length-1;for(;T>-1;){const _=r.events[T][1].type;if(_==="lineEnding"||_==="linePrefix")T--;else break}const z=T>-1?r.events[T][1].type:null,j=z==="tableHead"||z==="tableRow"?b:u;return j===b&&r.parser.lazy[r.now().line]?t(k):j(k)}function u(k){return e.enter("tableHead"),e.enter("tableRow"),s(k)}function s(k){return k===124||(l=!0,o+=1),f(k)}function f(k){return k===null?t(k):F(k)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),h):t(k):N(k)?O(e,f,"whitespace")(k):(o+=1,l&&(l=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(k)))}function c(k){return k===null||k===124||q(k)?(e.exit("data"),f(k)):(e.consume(k),k===92?p:c)}function p(k){return k===92||k===124?(e.consume(k),c):c(k)}function h(k){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(k):(e.enter("tableDelimiterRow"),l=!1,N(k)?O(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):d(k))}function d(k){return k===45||k===58?C(k):k===124?(l=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),w):D(k)}function w(k){return N(k)?O(e,C,"whitespace")(k):C(k)}function C(k){return k===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),x):k===45?(o+=1,x(k)):k===null||F(k)?L(k):D(k)}function x(k){return k===45?(e.enter("tableDelimiterFiller"),E(k)):D(k)}function E(k){return k===45?(e.consume(k),E):k===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),S):(e.exit("tableDelimiterFiller"),S(k))}function S(k){return N(k)?O(e,L,"whitespace")(k):L(k)}function L(k){return k===124?d(k):k===null||F(k)?!l||i!==o?D(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(k)):D(k)}function D(k){return t(k)}function b(k){return e.enter("tableRow"),v(k)}function v(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),v):k===null||F(k)?(e.exit("tableRow"),n(k)):N(k)?O(e,v,"whitespace")(k):(e.enter("data"),B(k))}function B(k){return k===null||k===124||q(k)?(e.exit("data"),v(k)):(e.consume(k),k===92?M:B)}function M(k){return k===92||k===124?(e.consume(k),B):B(k)}}function yc(e,n){let t=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,u=0,s,f,c;const p=new mc;for(;++t<e.length;){const h=e[t],d=h[1];h[0]==="enter"?d.type==="tableHead"?(a=!1,u!==0&&(Mn(p,n,u,s,f),f=void 0,u=0),s={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(t,0,[["enter",s,n]])):d.type==="tableRow"||d.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,t+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(t,0,[["enter",f,n]])),i=d.type==="tableDelimiterRow"?2:f?3:1):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=We(p,n,o,i,void 0,c),o=[0,0,0,0]),l[2]=t)):d.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=We(p,n,o,i,void 0,c)),o=l,l=[o[1],t,0,0])):d.type==="tableHead"?(a=!0,u=t):d.type==="tableRow"||d.type==="tableDelimiterRow"?(u=t,o[1]!==0?(l[0]=l[1],c=We(p,n,o,i,t,c)):l[1]!==0&&(c=We(p,n,l,i,t,c)),i=0):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(l[3]=t)}for(u!==0&&Mn(p,n,u,s,f),p.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=dc(n.events,t))}return e}function We(e,n,t,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(o.end=Object.assign({},Ie(n.events,t[0])),e.add(t[0],0,[["exit",o,n]]));const u=Ie(n.events,t[1]);if(o={type:l,start:Object.assign({},u),end:Object.assign({},u)},e.add(t[1],0,[["enter",o,n]]),t[2]!==0){const s=Ie(n.events,t[2]),f=Ie(n.events,t[3]),c={type:a,start:Object.assign({},s),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const p=n.events[t[2]],h=n.events[t[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",t[3]>t[2]+1){const d=t[2]+1,w=t[3]-t[2]-1;e.add(d,w,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(o.end=Object.assign({},Ie(n.events,i)),e.add(i,0,[["exit",o,n]]),o=void 0),o}function Mn(e,n,t,r,i){const o=[],l=Ie(n.events,t);i&&(i.end=Object.assign({},l),o.push(["exit",i,n])),r.end=Object.assign({},l),o.push(["exit",r,n]),e.add(t+1,0,o)}function Ie(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const bc={name:"tasklistCheck",tokenize:Cc};function wc(){return{text:{91:bc}}}function Cc(e,n,t){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),o)}function o(u){return q(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),l):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),l):t(u)}function l(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(u)}function a(u){return F(u)?n(u):N(u)?e.check({tokenize:Sc},n,t)(u):t(u)}}function Sc(e,n,t){return O(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function Ec(e){return Gn([Xs(),lc(),pc(e),xc(),wc()])}const Ic={};function Ac(e){const n=this,t=e||Ic,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Ec(t)),o.push(Us()),l.push(Ws(t))}const Tc=["md","mdx","markdown"];function Pc(e){const n=e.split(".").at(-1)?.toLowerCase()??"";return Tc.includes(n)}function Lc({content:e,className:n,compact:t=!1,commentsByLine:r,assetBaseUrl:i}){const o=u=>{const s=u?.position?.start.line,f=u?.position?.end.line;return s===void 0?{}:{"data-source-start-line":s,"data-source-end-line":f??s}},l=u=>{const s=u?.position?.start.line,f=u?.position?.end.line??s;if(s===void 0||f===void 0||r===void 0)return[];const c=new Map;for(let p=s;p<=f;p++)for(const h of r.get(p)??[])c.set(h.id,h);return[...c.values()]},a=u=>({node:s,className:f,children:c,...p})=>{const h=l(s);return ke.createElement(u,{...p,...o(s),className:ai(f,"relative",ui(h))},V.jsx(Kt,{comments:h}),c)};return V.jsx("div",{className:n??"h-full overflow-y-auto",children:V.jsx("article",{className:t?"prose prose-sm dark:prose-invert max-w-none px-3 py-2 prose-code:before:content-none prose-code:after:content-none":"prose prose-sm dark:prose-invert max-w-3xl px-6 py-4 prose-code:before:content-none prose-code:after:content-none",children:V.jsx(pu,{remarkPlugins:[Ac],components:{a:({node:u,...s})=>V.jsx("a",{...s,...o(u),target:"_blank",rel:"noreferrer"}),img:({node:u,src:s,alt:f,...c})=>{const p=i!=null&&s!==void 0&&!/^(?:data:|https?:|\/\/|#)/i.test(s)?`${i}/${s.split("/").map(encodeURIComponent).join("/")}`:s;return V.jsx("img",{...c,...o(u),src:p,alt:f??""})},p:a("p"),h1:a("h1"),h2:a("h2"),h3:a("h3"),h4:a("h4"),h5:a("h5"),h6:a("h6"),li:a("li"),blockquote:a("blockquote"),pre:({node:u,...s})=>V.jsxs("div",{...o(u),className:"relative",children:[V.jsx(Kt,{comments:l(u)}),V.jsx(mi,{node:u,...s})]})},children:e})})})}const zc=["html","htm"],yt='<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">';function Dc(e){const n=e.split(".").at(-1)?.toLowerCase()??"";return zc.includes(n)}function Fc(e){if(/<meta\b[^>]*\bname\s*=\s*["']viewport["']/i.test(e))return e;const n=/<head\b[^>]*>/i;if(n.test(e))return e.replace(n,r=>r+yt);const t=/<html\b[^>]*>/i;return t.test(e)?e.replace(t,r=>`${r}<head>${yt}</head>`):`<!doctype html><html><head>${yt}</head><body>${e}</body></html>`}function Nc({src:e,title:n,onSelection:t}){const r=ke.useRef(null);return ke.useEffect(()=>{const i=o=>{if(o.source!==r.current?.contentWindow)return;const l=o.data;if(l?.source!=="porcelain-file-preview"||l.type!=="selection"||typeof l.text!="string")return;const a=l.text.trim().slice(0,2e3);a!==""&&t?.(a)};return window.addEventListener("message",i),()=>window.removeEventListener("message",i)},[t]),V.jsx("iframe",{ref:r,"data-testid":jn.htmlPreviewIframe,title:n,src:e,sandbox:"allow-scripts",className:"min-h-0 h-full w-full flex-1 border-0 bg-white"})}function vc({html:e,title:n="HTML preview"}){return V.jsx("iframe",{"data-testid":jn.evidenceIframe,title:n,srcDoc:Fc(e),sandbox:"",scrolling:"yes",className:"min-h-0 h-full w-full flex-1 overflow-y-auto overscroll-contain border-0 bg-background",style:{WebkitOverflowScrolling:"touch"}})}export{Nc as H,Lc as M,Dc as a,vc as b,Pc as i};