!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="60de1573-73a9-5461-a852-9bddad8a382c")}catch(e){}}(); import{j as Pe}from"./jsx-runtime-D_zvdyIk.js";import{g as wr}from"./index-DwaoyV61.js";function $i(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Hi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,qi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ui={};function xt(e,t){return(Ui.jsx?qi:Hi).test(e)}const Vi=/[ \t\n\f\r]/g;function Wi(e){return typeof e=="object"?e.type==="text"?bt(e.value):!1:bt(e)}function bt(e){return e.replace(Vi,"")===""}class Ke{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ke.prototype.normal={};Ke.prototype.property={};Ke.prototype.space=void 0;function Sr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ke(n,r,t)}function Nn(e){return e.toLowerCase()}class J{constructor(t,n){this.attribute=n,this.property=t}}J.prototype.attribute="";J.prototype.booleanish=!1;J.prototype.boolean=!1;J.prototype.commaOrSpaceSeparated=!1;J.prototype.commaSeparated=!1;J.prototype.defined=!1;J.prototype.mustUseProperty=!1;J.prototype.number=!1;J.prototype.overloadedBoolean=!1;J.prototype.property="";J.prototype.spaceSeparated=!1;J.prototype.space=void 0;let Yi=0;const R=Ce(),W=Ce(),Bn=Ce(),E=Ce(),V=Ce(),De=Ce(),ne=Ce();function Ce(){return 2**++Yi}const jn=Object.freeze(Object.defineProperty({__proto__:null,boolean:R,booleanish:W,commaOrSpaceSeparated:ne,commaSeparated:De,number:E,overloadedBoolean:Bn,spaceSeparated:V},Symbol.toStringTag,{value:"Module"})),bn=Object.keys(jn);class Jn extends J{constructor(t,n,r,i){let l=-1;if(super(t,n),wt(this,"space",i),typeof r=="number")for(;++l4&&n.slice(0,4)==="data"&&Ji.test(t)){if(t.charAt(4)==="-"){const l=t.slice(5).replace(St,nl);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=t.slice(4);if(!St.test(l)){let o=l.replace(Ki,el);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=Jn}return new i(r,t)}function el(e){return"-"+e.toLowerCase()}function nl(e){return e.charAt(1).toUpperCase()}const tl=Sr([Cr,Qi,Ar,Tr,Lr],"html"),Zn=Sr([Cr,Xi,Ar,Tr,Lr],"svg");function rl(e){return e.join(" ").trim()}var Te={},wn,Ct;function il(){if(Ct)return wn;Ct=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,u=/^\s+|\s+$/g,a=` `,s="/",f="*",c="",p="comment",h="declaration";function d(S,y){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];y=y||{};var I=1,C=1;function F(P){var T=P.match(t);T&&(I+=T.length);var q=P.lastIndexOf(a);C=~q?P.length-q:C+P.length}function _(){var P={line:I,column:C};return function(T){return T.position=new b(P),B(),T}}function b(P){this.start=P,this.end={line:I,column:C},this.source=y.source}b.prototype.content=S;function M(P){var T=new Error(y.source+":"+I+":"+C+": "+P);if(T.reason=P,T.filename=y.source,T.line=I,T.column=C,T.source=S,!y.silent)throw T}function j(P){var T=P.exec(S);if(T){var q=T[0];return F(q),S=S.slice(q.length),T}}function B(){j(n)}function k(P){var T;for(P=P||[];T=L();)T!==!1&&P.push(T);return P}function L(){var P=_();if(!(s!=S.charAt(0)||f!=S.charAt(1))){for(var T=2;c!=S.charAt(T)&&(f!=S.charAt(T)||s!=S.charAt(T+1));)++T;if(T+=2,c===S.charAt(T-1))return M("End of comment missing");var q=S.slice(2,T-2);return C+=2,F(q),S=S.slice(T),C+=2,P({type:p,comment:q})}}function z(){var P=_(),T=j(r);if(T){if(L(),!j(i))return M("property missing ':'");var q=j(l),Y=P({type:h,property:w(T[0].replace(e,c)),value:q?w(q[0].replace(e,c)):c});return j(o),Y}}function $(){var P=[];k(P);for(var T;T=z();)T!==!1&&(P.push(T),k(P));return P}return B(),$()}function w(S){return S?S.replace(u,c):c}return wn=d,wn}var Et;function ll(){if(Et)return Te;Et=1;var e=Te&&Te.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Te,"__esModule",{value:!0}),Te.default=n;const t=e(il());function n(r,i){let l=null;if(!r||typeof r!="string")return l;const o=(0,t.default)(r),u=typeof i=="function";return o.forEach(a=>{if(a.type!=="declaration")return;const{property:s,value:f}=a;u?i(s,f,a):f&&(l=l||{},l[s]=f)}),l}return Te}var je={},It;function ol(){if(It)return je;It=1,Object.defineProperty(je,"__esModule",{value:!0}),je.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(s){return!s||n.test(s)||e.test(s)},o=function(s,f){return f.toUpperCase()},u=function(s,f){return"".concat(f,"-")},a=function(s,f){return f===void 0&&(f={}),l(s)?s:(s=s.toLowerCase(),f.reactCompat?s=s.replace(i,u):s=s.replace(r,u),s.replace(t,o))};return je.camelCase=a,je}var $e,At;function ul(){if(At)return $e;At=1;var e=$e&&$e.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(ll()),n=ol();function r(i,l){var o={};return!i||typeof i!="string"||(0,t.default)(i,function(u,a){u&&a&&(o[(0,n.camelCase)(u,l)]=a)}),o}return r.default=r,$e=r,$e}var al=ul();const sl=wr(al),cl=fl("start");function fl(e){return t;function t(n){const r=n&&n.position&&n.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 hl(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Tt(e.position):"start"in e||"end"in e?Tt(e):"line"in e||"column"in e?$n(e):""}function $n(e){return Lt(e&&e.line)+":"+Lt(e&&e.column)}function Tt(e){return $n(e&&e.start)+"-"+$n(e&&e.end)}function Lt(e){return e&&typeof e=="number"?e:1}let X=class extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(o=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?l.ruleId=r:(l.source=r.slice(0,a),l.ruleId=r.slice(a+1))}if(!l.place&&l.ancestors&&l.ancestors){const a=l.ancestors[l.ancestors.length-1];a&&(l.place=a.position)}const u=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=hl(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};X.prototype.file="";X.prototype.name="";X.prototype.reason="";X.prototype.message="";X.prototype.stack="";X.prototype.column=void 0;X.prototype.line=void 0;X.prototype.ancestors=void 0;X.prototype.cause=void 0;X.prototype.fatal=void 0;X.prototype.place=void 0;X.prototype.ruleId=void 0;X.prototype.source=void 0;const et={}.hasOwnProperty,pl=new Map,ml=/[A-Z]/g,gl=new Set(["table","tbody","thead","tfoot","tr"]),dl=new Set(["td","th"]),zr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function yl(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Il(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=El(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Zn:tl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},l=Pr(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Pr(e,t,n){if(t.type==="element")return kl(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return xl(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return wl(e,t,n);if(t.type==="mdxjsEsm")return bl(e,t);if(t.type==="root")return Sl(e,t,n);if(t.type==="text")return Cl(e,t)}function kl(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Zn,e.schema=i),e.ancestors.push(t);const l=vr(e,t.tagName,!1),o=Al(e,t);let u=tt(e,t);return gl.has(t.tagName)&&(u=u.filter(function(a){return typeof a=="string"?!Wi(a):!0})),Dr(e,o,l,t),nt(o,u),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function xl(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ye(e,t.position)}function bl(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ye(e,t.position)}function wl(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Zn,e.schema=i),e.ancestors.push(t);const l=t.name===null?e.Fragment:vr(e,t.name,!0),o=Tl(e,t),u=tt(e,t);return Dr(e,o,l,t),nt(o,u),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}function Sl(e,t,n){const r={};return nt(r,tt(e,t)),e.create(t,e.Fragment,r,n)}function Cl(e,t){return t.value}function Dr(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function nt(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function El(e,t,n){return r;function r(i,l,o,u){const s=Array.isArray(o.children)?n:t;return u?s(l,o,u):s(l,o)}}function Il(e,t){return n;function n(r,i,l,o){const u=Array.isArray(l.children),a=cl(r);return t(i,l,o,u,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function Al(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&et.call(t.properties,i)){const l=Ll(e,i,t.properties[i]);if(l){const[o,u]=l;e.tableCellAlignToStyle&&o==="align"&&typeof u=="string"&&dl.has(t.tagName)?r=u:n[o]=u}}if(r){const l=n.style||(n.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Tl(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const o=l.expression;o.type;const u=o.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Ye(e,t.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,l=e.evaluater.evaluateExpression(u.expression)}else Ye(e,t.position);else l=r.value===null?!0:r.value;n[i]=l}return n}function tt(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:pl;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l0?(K(e,e.length,0,t),e):t}const Dt={}.hasOwnProperty;function Ml(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function se(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const vt=Bl(/[\dA-Za-z]/);function Bl(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Re(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&l<57344){const u=e.charCodeAt(n+1);l<56320&&u>56319&&u<57344?(o=String.fromCharCode(l,u),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Ft(e){return e===-2||e===-1||e===32}function N(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(a){return Ft(a)?(e.enter(n),u(a)):t(a)}function u(a){return Ft(a)&&l++-1&&e.test(String.fromCharCode(n))}}const ql={tokenize:Ul};function Ul(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),N(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),l(u)}function l(u){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,o(u)}function o(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return D(u)?(e.consume(u),e.exit("chunkText"),l):(e.consume(u),o)}}const Vl={tokenize:Wl},_t={tokenize:Yl};function Wl(e){const t=this,n=[];let r=0,i,l,o;return u;function u(C){if(ro))return;const M=t.events.length;let j=M,B,k;for(;j--;)if(t.events[j][0]==="exit"&&t.events[j][1].type==="chunkFlow"){if(B){k=t.events[j][1].end;break}B=!0}for(y(r),b=M;bC;){const _=n[F];t.containerState=_[1],_[0].exit.call(t,e)}n.length=C}function I(){i.write([null]),l=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Yl(e,t,n){return N(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ql(e){return e!==null&&(e<0||e===32)}const Xl=Rr(/\p{P}|\p{S}/u),Gl=Rr(/\s/);function Rr(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ve(e){if(e===null||Ql(e)||Gl(e))return 1;if(Xl(e))return 2}function pn(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[n][1].start};Rt(c,-a),Rt(p,a),o={type:a>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},u={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},l={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?"strong":"emphasis",start:{...o.start},end:{...u.end}},e[r][1].end={...o.start},e[n][1].start={...u.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=re(s,[["enter",e[r][1],t],["exit",e[r][1],t]])),s=re(s,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",l,t]]),s=re(s,pn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),s=re(s,[["exit",l,t],["enter",u,t],["exit",u,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,s=re(s,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,K(e,r-1,n-r+3,s),n=r+s.length-f-2;break}}for(n=-1;++n0&&H(b)?N(e,I,"linePrefix",l+1)(b):I(b)}function I(b){return b===null||D(b)?e.check(Mt,w,F)(b):(e.enter("codeFlowValue"),C(b))}function C(b){return b===null||D(b)?(e.exit("codeFlowValue"),I(b)):(e.consume(b),C)}function F(b){return e.exit("codeFenced"),t(b)}function _(b,M,j){let B=0;return k;function k(T){return b.enter("lineEnding"),b.consume(T),b.exit("lineEnding"),L}function L(T){return b.enter("codeFencedFence"),H(T)?N(b,z,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):z(T)}function z(T){return T===u?(b.enter("codeFencedFenceSequence"),$(T)):j(T)}function $(T){return T===u?(B++,b.consume(T),$):B>=o?(b.exit("codeFencedFenceSequence"),H(T)?N(b,P,"whitespace")(T):P(T)):j(T)}function P(T){return T===null||D(T)?(b.exit("codeFencedFence"),M(T)):j(T)}}}function ao(e,t,n){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Cn={name:"codeIndented",tokenize:co},so={partial:!0,tokenize:fo};function co(e,t,n){const r=this;return i;function i(s){return e.enter("codeIndented"),N(e,l,"linePrefix",5)(s)}function l(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(s):n(s)}function o(s){return s===null?a(s):D(s)?e.attempt(so,o,a)(s):(e.enter("codeFlowValue"),u(s))}function u(s){return s===null||D(s)?(e.exit("codeFlowValue"),o(s)):(e.consume(s),u)}function a(s){return e.exit("codeIndented"),t(s)}}function fo(e,t,n){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):D(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):N(e,l,"linePrefix",5)(o)}function l(o){const u=r.events[r.events.length-1];return u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(o):D(o)?i(o):n(o)}}const ho={name:"codeText",previous:mo,resolve:po,tokenize:go};function po(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&He(this.left,r),l.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),He(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),He(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function jr(e,t,n,r,i,l,o,u,a){const s=a||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(y),e.exit(l),p):y===null||y===32||y===41||Hn(y)?n(y):(e.enter(r),e.enter(o),e.enter(u),e.enter("chunkString",{contentType:"string"}),w(y))}function p(y){return y===62?(e.enter(l),e.consume(y),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(u),p(y)):y===null||y===60||D(y)?n(y):(e.consume(y),y===92?d:h)}function d(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function w(y){return!f&&(y===null||y===41||te(y))?(e.exit("chunkString"),e.exit(u),e.exit(o),e.exit(r),t(y)):f999||h===null||h===91||h===93&&!a||h===94&&!u&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(l),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):D(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||D(h)||u++>999?(e.exit("chunkString"),f(h)):(e.consume(h),a||(a=!H(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),u++,c):c(h)}}function Hr(e,t,n,r,i,l){let o;return u;function u(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),o=p===40?41:p,a):n(p)}function a(p){return p===o?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(l),s(p))}function s(p){return p===o?(e.exit(l),a(o)):p===null?n(p):D(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),N(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===o||p===null||D(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===o||p===92?(e.consume(p),f):f(p)}}function Ve(e,t){let n;return r;function r(i){return D(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):H(i)?N(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Eo={name:"definition",tokenize:Ao},Io={partial:!0,tokenize:To};function Ao(e,t,n){const r=this;let i;return l;function l(h){return e.enter("definition"),o(h)}function o(h){return $r.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function u(h){return i=se(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),a):n(h)}function a(h){return te(h)?Ve(e,s)(h):s(h)}function s(h){return jr(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(Io,c,c)(h)}function c(h){return H(h)?N(e,p,"whitespace")(h):p(h)}function p(h){return h===null||D(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function To(e,t,n){return r;function r(u){return te(u)?Ve(e,i)(u):n(u)}function i(u){return Hr(e,l,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function l(u){return H(u)?N(e,o,"whitespace")(u):o(u)}function o(u){return u===null||D(u)?t(u):n(u)}}const Lo={name:"hardBreakEscape",tokenize:zo};function zo(e,t,n){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return D(l)?(e.exit("hardBreakEscape"),t(l)):n(l)}}const Po={name:"headingAtx",resolve:Do,tokenize:vo};function Do(e,t){let n=e.length-2,r=3,i,l;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},l={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},K(e,r,n-r+1,[["enter",i,t],["enter",l,t],["exit",l,t],["exit",i,t]])),e}function vo(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||te(f)?(e.exit("atxHeadingSequence"),u(f)):n(f)}function u(f){return f===35?(e.enter("atxHeadingSequence"),a(f)):f===null||D(f)?(e.exit("atxHeading"),t(f)):H(f)?N(e,u,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function a(f){return f===35?(e.consume(f),a):(e.exit("atxHeadingSequence"),u(f))}function s(f){return f===null||f===35||te(f)?(e.exit("atxHeadingText"),u(f)):(e.consume(f),s)}}const Fo=["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"],Nt=["pre","script","style","textarea"],_o={concrete:!0,name:"htmlFlow",resolveTo:Oo,tokenize:No},Ro={partial:!0,tokenize:jo},Mo={partial:!0,tokenize:Bo};function Oo(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function No(e,t,n){const r=this;let i,l,o,u,a;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),l=!0,w):g===63?(e.consume(g),i=3,r.interrupt?t:m):fe(g)?(e.consume(g),o=String.fromCharCode(g),S):n(g)}function p(g){return g===45?(e.consume(g),i=2,h):g===91?(e.consume(g),i=5,u=0,d):fe(g)?(e.consume(g),i=4,r.interrupt?t:m):n(g)}function h(g){return g===45?(e.consume(g),r.interrupt?t:m):n(g)}function d(g){const oe="CDATA[";return g===oe.charCodeAt(u++)?(e.consume(g),u===oe.length?r.interrupt?t:z:d):n(g)}function w(g){return fe(g)?(e.consume(g),o=String.fromCharCode(g),S):n(g)}function S(g){if(g===null||g===47||g===62||te(g)){const oe=g===47,be=o.toLowerCase();return!oe&&!l&&Nt.includes(be)?(i=1,r.interrupt?t(g):z(g)):Fo.includes(o.toLowerCase())?(i=6,oe?(e.consume(g),y):r.interrupt?t(g):z(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):l?I(g):C(g))}return g===45||ae(g)?(e.consume(g),o+=String.fromCharCode(g),S):n(g)}function y(g){return g===62?(e.consume(g),r.interrupt?t:z):n(g)}function I(g){return H(g)?(e.consume(g),I):k(g)}function C(g){return g===47?(e.consume(g),k):g===58||g===95||fe(g)?(e.consume(g),F):H(g)?(e.consume(g),C):k(g)}function F(g){return g===45||g===46||g===58||g===95||ae(g)?(e.consume(g),F):_(g)}function _(g){return g===61?(e.consume(g),b):H(g)?(e.consume(g),_):C(g)}function b(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),a=g,M):H(g)?(e.consume(g),b):j(g)}function M(g){return g===a?(e.consume(g),a=null,B):g===null||D(g)?n(g):(e.consume(g),M)}function j(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||te(g)?_(g):(e.consume(g),j)}function B(g){return g===47||g===62||H(g)?C(g):n(g)}function k(g){return g===62?(e.consume(g),L):n(g)}function L(g){return g===null||D(g)?z(g):H(g)?(e.consume(g),L):n(g)}function z(g){return g===45&&i===2?(e.consume(g),q):g===60&&i===1?(e.consume(g),Y):g===62&&i===4?(e.consume(g),le):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),pe):D(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ro,me,$)(g)):g===null||D(g)?(e.exit("htmlFlowData"),$(g)):(e.consume(g),z)}function $(g){return e.check(Mo,P,me)(g)}function P(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),T}function T(g){return g===null||D(g)?$(g):(e.enter("htmlFlowData"),z(g))}function q(g){return g===45?(e.consume(g),m):z(g)}function Y(g){return g===47?(e.consume(g),o="",ie):z(g)}function ie(g){if(g===62){const oe=o.toLowerCase();return Nt.includes(oe)?(e.consume(g),le):z(g)}return fe(g)&&o.length<8?(e.consume(g),o+=String.fromCharCode(g),ie):z(g)}function pe(g){return g===93?(e.consume(g),m):z(g)}function m(g){return g===62?(e.consume(g),le):g===45&&i===2?(e.consume(g),m):z(g)}function le(g){return g===null||D(g)?(e.exit("htmlFlowData"),me(g)):(e.consume(g),le)}function me(g){return e.exit("htmlFlow"),t(g)}}function Bo(e,t,n){const r=this;return i;function i(o){return D(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):n(o)}function l(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function jo(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(mn,t,n)}}const $o={name:"htmlText",tokenize:Ho};function Ho(e,t,n){const r=this;let i,l,o;return u;function u(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),a}function a(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),_):m===63?(e.consume(m),C):fe(m)?(e.consume(m),j):n(m)}function s(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),l=0,d):fe(m)?(e.consume(m),I):n(m)}function f(m){return m===45?(e.consume(m),h):n(m)}function c(m){return m===null?n(m):m===45?(e.consume(m),p):D(m)?(o=c,Y(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?q(m):m===45?p(m):c(m)}function d(m){const le="CDATA[";return m===le.charCodeAt(l++)?(e.consume(m),l===le.length?w:d):n(m)}function w(m){return m===null?n(m):m===93?(e.consume(m),S):D(m)?(o=w,Y(m)):(e.consume(m),w)}function S(m){return m===93?(e.consume(m),y):w(m)}function y(m){return m===62?q(m):m===93?(e.consume(m),y):w(m)}function I(m){return m===null||m===62?q(m):D(m)?(o=I,Y(m)):(e.consume(m),I)}function C(m){return m===null?n(m):m===63?(e.consume(m),F):D(m)?(o=C,Y(m)):(e.consume(m),C)}function F(m){return m===62?q(m):C(m)}function _(m){return fe(m)?(e.consume(m),b):n(m)}function b(m){return m===45||ae(m)?(e.consume(m),b):M(m)}function M(m){return D(m)?(o=M,Y(m)):H(m)?(e.consume(m),M):q(m)}function j(m){return m===45||ae(m)?(e.consume(m),j):m===47||m===62||te(m)?B(m):n(m)}function B(m){return m===47?(e.consume(m),q):m===58||m===95||fe(m)?(e.consume(m),k):D(m)?(o=B,Y(m)):H(m)?(e.consume(m),B):q(m)}function k(m){return m===45||m===46||m===58||m===95||ae(m)?(e.consume(m),k):L(m)}function L(m){return m===61?(e.consume(m),z):D(m)?(o=L,Y(m)):H(m)?(e.consume(m),L):B(m)}function z(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),i=m,$):D(m)?(o=z,Y(m)):H(m)?(e.consume(m),z):(e.consume(m),P)}function $(m){return m===i?(e.consume(m),i=void 0,T):m===null?n(m):D(m)?(o=$,Y(m)):(e.consume(m),$)}function P(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||te(m)?B(m):(e.consume(m),P)}function T(m){return m===47||m===62||te(m)?B(m):n(m)}function q(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function Y(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ie}function ie(m){return H(m)?N(e,pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):pe(m)}function pe(m){return e.enter("htmlTextData"),o(m)}}const it={name:"labelEnd",resolveAll:Wo,resolveTo:Yo,tokenize:Qo},qo={tokenize:Xo},Uo={tokenize:Go},Vo={tokenize:Ko};function Wo(e){let t=-1;const n=[];for(;++t=3&&(s===null||D(s))?(e.exit("thematicBreak"),t(s)):n(s)}function a(s){return s===i?(e.consume(s),r++,a):(e.exit("thematicBreakSequence"),H(s)?N(e,u,"whitespace")(s):u(s))}}const G={continuation:{tokenize:uu},exit:su,name:"list",tokenize:ou},iu={partial:!0,tokenize:cu},lu={partial:!0,tokenize:au};function ou(e,t,n){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return u;function u(h){const d=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:qn(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(un,n,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(h)}return n(h)}function a(h){return qn(h)&&++o<10?(e.consume(h),a):(!r.interrupt||o<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):n(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(mn,r.interrupt?n:f,e.attempt(iu,p,c))}function f(h){return r.containerState.initialBlankLine=!0,l++,p(h)}function c(h){return H(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function uu(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(mn,i,l);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,N(e,t,"listItemIndent",r.containerState.size+1)(u)}function l(u){return r.containerState.furtherBlankLines||!H(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(lu,t,o)(u))}function o(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,N(e,e.attempt(G,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function au(e,t,n){const r=this;return N(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(l):n(l)}}function su(e){e.exit(this.containerState.type)}function cu(e,t,n){const r=this;return N(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!H(l)&&o&&o[1].type==="listItemPrefixWhitespace"?t(l):n(l)}}const Bt={name:"setextUnderline",resolveTo:fu,tokenize:hu};function fu(e,t){let n=e.length,r,i,l;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!l&&e[n][1].type==="definition"&&(l=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",o,t]),e.splice(l+1,0,["exit",e[r][1],t]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function hu(e,t,n){const r=this;let i;return l;function l(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,o(s)):n(s)}function o(s){return e.enter("setextHeadingLineSequence"),u(s)}function u(s){return s===i?(e.consume(s),u):(e.exit("setextHeadingLineSequence"),H(s)?N(e,a,"lineSuffix")(s):a(s))}function a(s){return s===null||D(s)?(e.exit("setextHeadingLine"),t(s)):n(s)}}const pu={tokenize:mu};function mu(e){const t=this,n=e.attempt(mn,r,e.attempt(this.parser.constructs.flowInitial,i,N(e,e.attempt(this.parser.constructs.flow,i,e.attempt(xo,i)),"linePrefix")));return n;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const gu={resolveAll:Ur()},du=qr("string"),yu=qr("text");function qr(e){return{resolveAll:Ur(e==="text"?ku:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],l=n.attempt(i,o,u);return o;function o(f){return s(f)?l(f):u(f)}function u(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),a}function a(f){return s(f)?(n.exit("data"),l(f)):(n.consume(f),a)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p-1){const u=o[0];typeof u=="string"?o[0]=u.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function Du(e,t){let n=-1;const r=[];let i;for(;++n0){const ue=v.tokenStack[v.tokenStack.length-1];(ue[1]||qt).call(v,void 0,ue[0])}for(A.position={start:xe(x.length>0?x[0][1].start:{line:1,column:1,offset:0}),end:xe(x.length>0?x[x.length-2][1].end:{line:1,column:1,offset:0})},U=-1;++U0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l=e.applyData(t,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(t,l),l}function Vu(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Wu(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Yu(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Re(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,u+=1,e.footnoteCounts.set(r,u);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,a);const s={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,s),e.applyData(t,s)}function Qu(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Xu(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Yr(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Gu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Yr(e,t);const i={src:Re(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function Ku(e,t){const n={src:Re(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Ju(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Zu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Yr(e,t);const i={href:Re(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function ea(e,t){const n={href:Re(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function na(e,t,n){const r=e.all(t),i=n?ta(n):Qr(t),l={},o=[];if(typeof t.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:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let u=-1;for(;++u1}function ra(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0&&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 ua(e){const t=Gr(e),n=Xr(e);if(t&&n)return{start:t,end:n}}function aa(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=Gr(t.children[1]),a=Xr(t.children[t.children.length-1]);u&&a&&(o.position={start:u,end:a}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function sa(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,u=o?o.length:t.children.length;let a=-1;const s=[];for(;++a0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(Wt(t.slice(i),i>0,!1)),l.join("")}function Wt(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===Ut||l===Vt;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===Ut||l===Vt;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function ha(e,t){const n={type:"text",value:fa(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function pa(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const ma={blockquote:Hu,break:qu,code:Uu,delete:Vu,emphasis:Wu,footnoteReference:Yu,heading:Qu,html:Xu,imageReference:Gu,image:Ku,inlineCode:Ju,linkReference:Zu,link:ea,listItem:na,list:ra,paragraph:ia,root:la,strong:oa,table:aa,tableCell:ca,tableRow:sa,text:ha,thematicBreak:pa,toml:en,yaml:en,definition:en,footnoteDefinition:en};function en(){}const Jr=-1,gn=0,We=1,sn=2,lt=3,ot=4,ut=5,at=6,Zr=7,ei=8,Yt=typeof self=="object"?self:globalThis,ga=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=t[i];switch(l){case gn:case Jr:return n(o,i);case We:{const u=n([],i);for(const a of o)u.push(r(a));return u}case sn:{const u=n({},i);for(const[a,s]of o)u[r(a)]=r(s);return u}case lt:return n(new Date(o),i);case ot:{const{source:u,flags:a}=o;return n(new RegExp(u,a),i)}case ut:{const u=n(new Map,i);for(const[a,s]of o)u.set(r(a),r(s));return u}case at:{const u=n(new Set,i);for(const a of o)u.add(r(a));return u}case Zr:{const{name:u,message:a}=o;return n(new Yt[u](a),i)}case ei:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:u}=new Uint8Array(o);return n(new DataView(u),o)}}return n(new Yt[l](o),i)};return r},Qt=e=>ga(new Map,e)(0),Le="",{toString:da}={},{keys:ya}=Object,qe=e=>{const t=typeof e;if(t!=="object"||!e)return[gn,t];const n=da.call(e).slice(8,-1);switch(n){case"Array":return[We,Le];case"Object":return[sn,Le];case"Date":return[lt,Le];case"RegExp":return[ot,Le];case"Map":return[ut,Le];case"Set":return[at,Le];case"DataView":return[We,n]}return n.includes("Array")?[We,n]:n.includes("Error")?[Zr,n]:[sn,n]},nn=([e,t])=>e===gn&&(t==="function"||t==="symbol"),ka=(e,t,n,r)=>{const i=(o,u)=>{const a=r.push(o)-1;return n.set(u,a),a},l=o=>{if(n.has(o))return n.get(o);let[u,a]=qe(o);switch(u){case gn:{let f=o;switch(a){case"bigint":u=ei,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);f=null;break;case"undefined":return i([Jr],o)}return i([u,f],o)}case We:{if(a){let p=o;return a==="DataView"?p=new Uint8Array(o.buffer):a==="ArrayBuffer"&&(p=new Uint8Array(o)),i([a,[...p]],o)}const f=[],c=i([u,f],o);for(const p of o)f.push(l(p));return c}case sn:{if(a)switch(a){case"BigInt":return i([a,o.toString()],o);case"Boolean":case"Number":case"String":return i([a,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const f=[],c=i([u,f],o);for(const p of ya(o))(e||!nn(qe(o[p])))&&f.push([l(p),l(o[p])]);return c}case lt:return i([u,o.toISOString()],o);case ot:{const{source:f,flags:c}=o;return i([u,{source:f,flags:c}],o)}case ut:{const f=[],c=i([u,f],o);for(const[p,h]of o)(e||!(nn(qe(p))||nn(qe(h))))&&f.push([l(p),l(h)]);return c}case at:{const f=[],c=i([u,f],o);for(const p of o)(e||!nn(qe(p)))&&f.push(l(p));return c}}const{message:s}=o;return i([u,{name:a,message:s}],o)};return l},Xt=(e,{json:t,lossy:n}={})=>{const r=[];return ka(!(t||n),!!t,new Map,r)(e),r},cn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Qt(Xt(e,t)):structuredClone(e):(e,t)=>Qt(Xt(e,t));function xa(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function ba(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function wa(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||xa,r=e.options.footnoteBackLabel||ba,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let a=-1;for(;++a0&&d.push({type:"text",value:" "});let I=typeof n=="string"?n:n(a,h);typeof I=="string"&&(I={type:"text",value:I}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,h),className:["data-footnote-backref"]},children:Array.isArray(I)?I:[I]})}const S=f[f.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const I=S.children[S.children.length-1];I&&I.type==="text"?I.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...d)}else f.push(...d);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(s,y),u.push(y)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...cn(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:` `}]}}const dn=function(e){if(e==null)return Ia;if(typeof e=="function")return yn(e);if(typeof e=="object")return Array.isArray(e)?Sa(e):Ca(e);if(typeof e=="string")return Ea(e);throw new Error("Expected function, string, or object as test")};function Sa(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let h=ni,d,w,S;if((!t||l(a,s,f[f.length-1]||void 0))&&(h=za(n(a,f)),h[0]===Wn))return h;if("children"in a&&a.children){const y=a;if(y.children&&h[0]!==La)for(w=(r?y.children.length:-1)+o,S=f.concat(y);w>-1&&w0&&n.push({type:"text",value:` `}),n}function Gt(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Kt(e,t){const n=va(e,t),r=n.one(e,void 0),i=wa(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:` `},i),l}function Oa(e,t){return e&&"run"in e?async function(n,r){const i=Kt(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Kt(n,{file:r,...e||t})}}function Jt(e){if(e)throw e}var In,Zt;function Na(){if(Zt)return In;Zt=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(s){return typeof Array.isArray=="function"?Array.isArray(s):t.call(s)==="[object Array]"},l=function(s){if(!s||t.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)},o=function(s,f){n&&f.name==="__proto__"?n(s,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):s[f.name]=f.newValue},u=function(s,f){if(f==="__proto__")if(e.call(s,f)){if(r)return r(s,f).value}else return;return s[f]};return In=function a(){var s,f,c,p,h,d,w=arguments[0],S=1,y=arguments.length,I=!1;for(typeof w=="boolean"&&(I=w,w=arguments[1]||{},S=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});So.length;let a;u&&o.push(i);try{a=e.apply(this,o)}catch(s){const f=s;if(u&&n)throw f;return i(f)}u||(a&&a.then&&typeof a.then=="function"?a.then(l,i):a instanceof Error?i(a):l(a))}function i(o,...u){n||(n=!0,t(o,...u))}function l(o){i(null,o)}}function Ha(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?er(e.position):"start"in e||"end"in e?er(e):"line"in e||"column"in e?Xn(e):""}function Xn(e){return nr(e&&e.line)+":"+nr(e&&e.column)}function er(e){return Xn(e&&e.start)+"-"+Xn(e&&e.end)}function nr(e){return e&&typeof e=="number"?e:1}class Z extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",l={},o=!1;if(n&&("line"in n&&"column"in n?l={place:n}:"start"in n&&"end"in n?l={place:n}:"type"in n?l={ancestors:[n],place:n.position}:l={...n}),typeof t=="string"?i=t:!l.cause&&t&&(o=!0,i=t.message,l.cause=t),!l.ruleId&&!l.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?l.ruleId=r:(l.source=r.slice(0,a),l.ruleId=r.slice(a+1))}if(!l.place&&l.ancestors&&l.ancestors){const a=l.ancestors[l.ancestors.length-1];a&&(l.place=a.position)}const u=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=Ha(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=o&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Z.prototype.file="";Z.prototype.name="";Z.prototype.reason="";Z.prototype.message="";Z.prototype.stack="";Z.prototype.column=void 0;Z.prototype.line=void 0;Z.prototype.ancestors=void 0;Z.prototype.cause=void 0;Z.prototype.fatal=void 0;Z.prototype.place=void 0;Z.prototype.ruleId=void 0;Z.prototype.source=void 0;const ce={basename:qa,dirname:Ua,extname:Va,join:Wa,sep:"/"};function qa(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Je(e);let n=0,r=-1,i=e.length,l;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let o=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){n=i+1;break}}else o<0&&(l=!0,o=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=o));return n===r?r=o:r<0&&(r=e.length),e.slice(n,r)}function Ua(e){if(Je(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Va(e){Je(e);let t=e.length,n=-1,r=0,i=-1,l=0,o;for(;t--;){const u=e.codePointAt(t);if(u===47){if(o){r=t+1;break}continue}n<0&&(o=!0,n=t+1),u===46?i<0?i=t:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||n<0||l===0||l===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Wa(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Qa(e,t){let n="",r=0,i=-1,l=0,o=-1,u,a;for(;++o<=e.length;){if(o2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=o,l=0;continue}}else if(n.length>0){n="",r=0,i=o,l=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,o):n=e.slice(i+1,o),r=o-i-1;i=o,l=0}else u===46&&l>-1?l++:l=-1}return n}function Je(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Xa={cwd:Ga};function Ga(){return"/"}function Gn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Ka(e){if(typeof e=="string")e=new URL(e);else if(!Gn(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Ja(e)}function Ja(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 t=e.pathname;let n=-1;for(;++n0){let[h,...d]=f;const w=r[p][1];Qn(w)&&Qn(h)&&(h=An(!0,w,h)),r[p]=[s,h,...d]}}}}const ts=new st().freeze();function Pn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Dn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function vn(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function rr(e){if(!Qn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ir(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function tn(e){return rs(e)?e:new ti(e)}function rs(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function is(e){return typeof e=="string"||ls(e)}function ls(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}function os(e,t,n,r){let i,l,o;typeof t=="function"&&typeof n!="function"?(l=void 0,o=t,i=n):(l=t,o=n,i=r),kn(e,l,u,i);function u(a,s){const f=s[s.length-1],c=f?f.children.indexOf(a):void 0;return o(a,c,f)}}const us="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",lr=[],or={allowDangerousHtml:!0},as=/^(https?|ircs?|mailto|xmpp)$/i,ss=[{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:"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 cs(e){const t=fs(e),n=hs(e);return ps(t.runSync(t.parse(n),n),e)}function fs(e){const t=e.rehypePlugins||lr,n=e.remarkPlugins||lr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...or}:or;return ts().use($u).use(n).use(Oa,r).use(t)}function hs(e){const t=e.children||"",n=new ti;return typeof t=="string"&&(n.value=t),n}function ps(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,l=t.disallowedElements,o=t.skipHtml,u=t.unwrapDisallowed,a=t.urlTransform||ms;for(const f of ss)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+us+f.id,void 0);return t.className&&(e={type:"element",tagName:"div",properties:{className:t.className},children:e.type==="root"?e.children:[e]}),os(e,s),yl(e,{Fragment:Pe.Fragment,components:i,ignoreInvalidStyle:!0,jsx:Pe.jsx,jsxs:Pe.jsxs,passKeys:!0,passNode:!0});function s(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return o?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in Sn)if(Object.hasOwn(Sn,h)&&Object.hasOwn(f.properties,h)){const d=f.properties[h],w=Sn[h];(w===null||w.includes(f.tagName))&&(f.properties[h]=a(String(d||""),h,f))}}if(f.type==="element"){let h=n?!n.includes(f.tagName):l?l.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return u&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function ms(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||as.test(e.slice(0,t))?e:""}function ur(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const gs=ri(/\p{P}|\p{S}/u),ds=ri(/\s/);function ri(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function ys(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ks(e,t,n){const i=dn((n||{}).ignore||[]),l=xs(t);let o=-1;for(;++o0?{type:"text",value:b}:void 0),b===!1?p.lastIndex=F+1:(d!==F&&I.push({type:"text",value:s.value.slice(d,F)}),Array.isArray(b)?I.push(...b):b&&I.push(b),d=F+C[0].length,y=!0),!p.global)break;C=p.exec(s.value)}return y?(d?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=ur(e,"(");let l=ur(e,")");for(;r!==-1&&i>l;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),l++;return[e,n]}function ii(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ds(n)||gs(n))&&(!t||n!==47)}li.peek=Hs;function _s(){this.buffer()}function Rs(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ms(){this.buffer()}function Os(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Ns(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=se(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Bs(e){this.exit(e)}function js(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=se(this.sliceSerialize(e)).toLowerCase(),n.label=t}function $s(e){this.exit(e)}function Hs(){return"["}function li(e,t,n,r){const i=n.createTracker(r);let l=i.move("[^");const o=n.enter("footnoteReference"),u=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),u(),o(),l+=i.move("]"),l}function qs(){return{enter:{gfmFootnoteCallString:_s,gfmFootnoteCall:Rs,gfmFootnoteDefinitionLabelString:Ms,gfmFootnoteDefinition:Os},exit:{gfmFootnoteCallString:Ns,gfmFootnoteCall:Bs,gfmFootnoteDefinitionLabelString:js,gfmFootnoteDefinition:$s}}}function Us(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:li},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,l,o){const u=l.createTracker(o);let a=u.move("[^");const s=l.enter("footnoteDefinition"),f=l.enter("label");return a+=u.move(l.safe(l.associationId(r),{before:a,after:"]"})),f(),a+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),a+=u.move((t?` `:" ")+l.indentLines(l.containerFlow(r,u.current()),t?oi:Vs))),s(),a}}function Vs(e,t,n){return t===0?e:oi(e,t,n)}function oi(e,t,n){return(n?"":" ")+e}const Ws=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ui.peek=Ks;function Ys(){return{canContainEols:["delete"],enter:{strikethrough:Xs},exit:{strikethrough:Gs}}}function Qs(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Ws}],handlers:{delete:ui}}}function Xs(e){this.enter({type:"delete",children:[]},e)}function Gs(e){this.exit(e)}function ui(e,t,n,r){const i=n.createTracker(r),l=n.enter("strikethrough");let o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function Ks(){return"~"}function Js(e){return e.length}function Zs(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Js,l=[],o=[],u=[],a=[];let s=0,f=-1;for(;++fs&&(s=e[f].length);++ya[y])&&(a[y]=C)}w.push(I)}o[f]=w,u[f]=S}let c=-1;if(typeof r=="object"&&"length"in r)for(;++ca[c]&&(a[c]=I),h[c]=I),p[c]=C}o.splice(1,0,p),u.splice(1,0,h),f=-1;const d=[];for(;++f "),l.shift(2);const o=n.indentLines(n.containerFlow(e,l.current()),tc);return i(),o}function tc(e,t,n){return">"+(n?"":" ")+e}function rc(e,t){return sr(e,t.inConstruct,!0)&&!sr(e,t.notInConstruct,!1)}function sr(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++ro&&(o=l):l=1,i=r+t.length,r=n.indexOf(t,i);return o}function lc(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function oc(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function uc(e,t,n,r){const i=oc(n),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(lc(e,n)){const c=n.enter("codeIndented"),p=n.indentLines(l,ac);return c(),p}const u=n.createTracker(r),a=i.repeat(Math.max(ic(l,i)+1,3)),s=n.enter("codeFenced");let f=u.move(a);if(e.lang){const c=n.enter(`codeFencedLang${o}`);f+=u.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...u.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${o}`);f+=u.move(" "),f+=u.move(n.safe(e.meta,{before:f,after:` `,encode:["`"],...u.current()})),c()}return f+=u.move(` `),l&&(f+=u.move(l+` `)),f+=u.move(a),s(),f}function ac(e,t,n){return(n?"":" ")+e}function ct(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function sc(e,t,n,r){const i=ct(n),l=i==='"'?"Quote":"Apostrophe",o=n.enter("definition");let u=n.enter("label");const a=n.createTracker(r);let s=a.move("[");return s+=a.move(n.safe(n.associationId(e),{before:s,after:"]",...a.current()})),s+=a.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),s+=a.move("<"),s+=a.move(n.safe(e.url,{before:s,after:">",...a.current()})),s+=a.move(">")):(u=n.enter("destinationRaw"),s+=a.move(n.safe(e.url,{before:s,after:e.title?" ":` `,...a.current()}))),u(),e.title&&(u=n.enter(`title${l}`),s+=a.move(" "+i),s+=a.move(n.safe(e.title,{before:s,after:i,...a.current()})),s+=a.move(i),u()),o(),s}function cc(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Qe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function fn(e,t,n){const r=ve(e),i=ve(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ai.peek=fc;function ai(e,t,n,r){const i=cc(n),l=n.enter("emphasis"),o=n.createTracker(r),u=o.move(i);let a=o.move(n.containerPhrasing(e,{after:i,before:u,...o.current()}));const s=a.charCodeAt(0),f=fn(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(a=Qe(s)+a.slice(1));const c=a.charCodeAt(a.length-1),p=fn(r.after.charCodeAt(0),c,i);p.inside&&(a=a.slice(0,-1)+Qe(c));const h=o.move(i);return l(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},u+a+h}function fc(e,t,n){return n.options.emphasis||"*"}function hc(e,t,n,r){let i,l,o;typeof t=="function"&&typeof n!="function"?(l=void 0,o=t,i=n):(l=t,o=n,i=r),kn(e,l,u,i);function u(a,s){const f=s[s.length-1],c=f?f.children.indexOf(a):void 0;return o(a,c,f)}}const pc={};function si(e,t){const n=pc,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ci(e,r,i)}function ci(e,t,n){if(mc(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return fr(e.children,t,n)}return Array.isArray(e)?fr(e,t,n):""}function fr(e,t,n){const r=[];let i=-1;for(;++i",...a.current()})),s+=a.move(">")):(u=n.enter("destinationRaw"),s+=a.move(n.safe(e.url,{before:s,after:e.title?" ":")",...a.current()}))),u(),e.title&&(u=n.enter(`title${l}`),s+=a.move(" "+i),s+=a.move(n.safe(e.title,{before:s,after:i,...a.current()})),s+=a.move(i),u()),s+=a.move(")"),o(),s}function kc(){return"!"}pi.peek=xc;function pi(e,t,n,r){const i=e.referenceType,l=n.enter("imageReference");let o=n.enter("label");const u=n.createTracker(r);let a=u.move("![");const s=n.safe(e.alt,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:a,after:"]",...u.current()});return o(),n.stack=f,l(),i==="full"||!s||s!==c?a+=u.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function xc(){return"!"}mi.peek=bc;function mi(e,t,n){let r=e.value||"",i="`",l=-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+" ");++l\u007F]/.test(e.url))}di.peek=wc;function di(e,t,n,r){const i=ct(n),l=i==='"'?"Quote":"Apostrophe",o=n.createTracker(r);let u,a;if(gi(e,n)){const f=n.stack;n.stack=[],u=n.enter("autolink");let c=o.move("<");return c+=o.move(n.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),u(),n.stack=f,c}u=n.enter("link"),a=n.enter("label");let s=o.move("[");return s+=o.move(n.containerPhrasing(e,{before:s,after:"](",...o.current()})),s+=o.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),s+=o.move("<"),s+=o.move(n.safe(e.url,{before:s,after:">",...o.current()})),s+=o.move(">")):(a=n.enter("destinationRaw"),s+=o.move(n.safe(e.url,{before:s,after:e.title?" ":")",...o.current()}))),a(),e.title&&(a=n.enter(`title${l}`),s+=o.move(" "+i),s+=o.move(n.safe(e.title,{before:s,after:i,...o.current()})),s+=o.move(i),a()),s+=o.move(")"),u(),s}function wc(e,t,n){return gi(e,n)?"<":"["}yi.peek=Sc;function yi(e,t,n,r){const i=e.referenceType,l=n.enter("linkReference");let o=n.enter("label");const u=n.createTracker(r);let a=u.move("[");const s=n.containerPhrasing(e,{before:a,after:"]",...u.current()});a+=u.move(s+"]["),o();const f=n.stack;n.stack=[],o=n.enter("reference");const c=n.safe(n.associationId(e),{before:a,after:"]",...u.current()});return o(),n.stack=f,l(),i==="full"||!s||s!==c?a+=u.move(c+"]"):i==="shortcut"?a=a.slice(0,-1):a+=u.move("]"),a}function Sc(){return"["}function ft(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Cc(e){const t=ft(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Ec(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ki(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Ic(e,t,n,r){const i=n.enter("list"),l=n.bulletCurrent;let o=e.ordered?Ec(n):ft(n);const u=e.ordered?o==="."?")":".":Cc(n);let a=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(a=!0),ki(n)===o&&f){let c=-1;for(;++c-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const u=n.createTracker(r);u.move(l+" ".repeat(o-l.length)),u.shift(o);const a=n.enter("listItem"),s=n.indentLines(n.containerFlow(e,u.current()),f);return a(),s;function f(c,p,h){return p?(h?"":" ".repeat(o))+c:(h?l:l+" ".repeat(o-l.length))+c}}function Lc(e,t,n,r){const i=n.enter("paragraph"),l=n.enter("phrasing"),o=n.containerPhrasing(e,r);return l(),i(),o}const zc=dn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Pc(e,t,n,r){return(e.children.some(function(o){return zc(o)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Dc(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}xi.peek=vc;function xi(e,t,n,r){const i=Dc(n),l=n.enter("strong"),o=n.createTracker(r),u=o.move(i+i);let a=o.move(n.containerPhrasing(e,{after:i,before:u,...o.current()}));const s=a.charCodeAt(0),f=fn(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(a=Qe(s)+a.slice(1));const c=a.charCodeAt(a.length-1),p=fn(r.after.charCodeAt(0),c,i);p.inside&&(a=a.slice(0,-1)+Qe(c));const h=o.move(i+i);return l(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},u+a+h}function vc(e,t,n){return n.options.strong||"*"}function Fc(e,t,n,r){return n.safe(e.value,r)}function _c(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Rc(e,t,n){const r=(ki(n)+(n.options.ruleSpaces?" ":"")).repeat(_c(n));return n.options.ruleSpaces?r.slice(0,-1):r}const bi={blockquote:nc,break:cr,code:uc,definition:sc,emphasis:ai,hardBreak:cr,heading:dc,html:fi,image:hi,imageReference:pi,inlineCode:mi,link:di,linkReference:yi,list:Ic,listItem:Tc,paragraph:Lc,root:Pc,strong:xi,text:Fc,thematicBreak:Rc};function Mc(){return{enter:{table:Oc,tableData:hr,tableHeader:hr,tableRow:Bc},exit:{codeText:jc,table:Nc,tableData:Mn,tableHeader:Mn,tableRow:Mn}}}function Oc(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Nc(e){this.exit(e),this.data.inTable=void 0}function Bc(e){this.enter({type:"tableRow",children:[]},e)}function Mn(e){this.exit(e)}function hr(e){this.enter({type:"tableCell",children:[]},e)}function jc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,$c));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function $c(e,t){return t==="|"?t:e}function Hc(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:a,tableRow:u}};function o(h,d,w,S){return s(f(h,w,S),h.align)}function u(h,d,w,S){const y=c(h,w,S),I=s([y]);return I.slice(0,I.indexOf(` `))}function a(h,d,w,S){const y=w.enter("tableCell"),I=w.enter("phrasing"),C=w.containerPhrasing(h,{...S,before:l,after:l});return I(),y(),C}function s(h,d){return Zs(h,{align:d,alignDelimiters:r,padding:n,stringLength:i})}function f(h,d,w){const S=h.children;let y=-1;const I=[],C=d.enter("table");for(;++y-1&&e.test(String.fromCharCode(n))}}const Zc={tokenize:of,partial:!0},Si={tokenize:uf,partial:!0},Ci={tokenize:af,partial:!0},Ei={tokenize:sf,partial:!0},ef={tokenize:cf,partial:!0},Ii={name:"wwwAutolink",tokenize:rf,previous:Ti},Ai={name:"protocolAutolink",tokenize:lf,previous:Li},ye={name:"emailAutolink",tokenize:tf,previous:zi},he={};function nf(){return{text:he}}let Se=48;for(;Se<123;)he[Se]=ye,Se++,Se===58?Se=65:Se===91&&(Se=97);he[43]=ye;he[45]=ye;he[46]=ye;he[95]=ye;he[72]=[ye,Ai];he[104]=[ye,Ai];he[87]=[ye,Ii];he[119]=[ye,Ii];function tf(e,t,n){const r=this;let i,l;return o;function o(c){return!Kn(c)||!zi.call(r,r.previous)||pt(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(c))}function u(c){return Kn(c)?(e.consume(c),u):c===64?(e.consume(c),a):n(c)}function a(c){return c===46?e.check(ef,f,s)(c):c===45||c===95||ht(c)?(l=!0,e.consume(c),a):f(c)}function s(c){return e.consume(c),i=!0,a}function f(c){return l&&i&&Xe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function rf(e,t,n){const r=this;return i;function i(o){return o!==87&&o!==119||!Ti.call(r,r.previous)||pt(r.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Zc,e.attempt(Si,e.attempt(Ci,l),n),n)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function lf(e,t,n){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&Li.call(r,r.previous)&&!pt(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),u):n(c)}function u(c){if(Xe(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),u;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),a}return n(c)}function a(c){return c===47?(e.consume(c),l?s:(l=!0,a)):n(c)}function s(c){return c===null||Jc(c)||Fe(c)||Ge(c)||wi(c)?n(c):e.attempt(Si,e.attempt(Ci,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function of(e,t,n){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),l):n(o)}function l(o){return o===null?n(o):t(o)}}function uf(e,t,n){let r,i,l;return o;function o(s){return s===46||s===95?e.check(Ei,a,u)(s):s===null||Fe(s)||Ge(s)||s!==45&&wi(s)?a(s):(l=!0,e.consume(s),o)}function u(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),o}function a(s){return i||r||!l?n(s):t(s)}}function af(e,t){let n=0,r=0;return i;function i(o){return o===40?(n++,e.consume(o),i):o===41&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function ff(e){return e!==null&&e<-2}function hn(e){return e!==null&&(e<0||e===32)}function hf(e){return e===-2||e===-1||e===32}const pf={partial:!0,tokenize:mf};function mf(e,t,n){return r;function r(l){return hf(l)?N(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||ff(l)?t(l):n(l)}}const gf={tokenize:Cf,partial:!0};function df(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:bf,continuation:{tokenize:wf},exit:Sf}},text:{91:{name:"gfmFootnoteCall",tokenize:xf},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:yf,resolveTo:kf}}}}function yf(e,t,n){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){o=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return u;function u(a){if(!o||!o._balanced)return n(a);const s=se(r.sliceSerialize({start:o.end,end:r.now()}));return s.codePointAt(0)!==94||!l.includes(s.slice(1))?n(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a))}}function kf(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function xf(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return u;function u(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),a}function a(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(l>999||c===93&&!o||c===null||c===91||hn(c))return n(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(se(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return hn(c)||(o=!0),l++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,s):s(c)}}function bf(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,u;return a;function a(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):n(d)}function f(d){if(o>999||d===93&&!u||d===null||d===91||hn(d))return n(d);if(d===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return l=se(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return hn(d)||(u=!0),o++,e.consume(d),d===92?c:f}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,f):f(d)}function p(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),i.includes(l)||i.push(l),N(e,h,"gfmFootnoteDefinitionWhitespace")):n(d)}function h(d){return t(d)}}function wf(e,t,n){return e.check(pf,t,e.attempt(gf,t,n))}function Sf(e){e.exit("gfmFootnoteDefinition")}function Cf(e,t,n){const r=this;return N(e,i,"gfmFootnoteDefinitionIndent",5);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(l):n(l)}}function Ef(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,u){let a=-1;for(;++a1?a(d):(o.consume(d),c++,h);if(c<2&&!n)return a(d);const S=o.exit("strikethroughSequenceTemporary"),y=ve(d);return S._open=!y||y===2&&!!w,S._close=!w||w===2&&!!y,u(d)}}}function rn(e){return e!==null&&e<-2}function gr(e){return e!==null&&(e<0||e===32)}function Ue(e){return e===-2||e===-1||e===32}class If{constructor(){this.map=[]}add(t,n,r){Af(this,t,n,r)}consume(t){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const l of i)t.push(l);i=r.pop()}this.map.length=0}}function Af(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const P=r.events[L][1].type;if(P==="lineEnding"||P==="linePrefix")L--;else break}const z=L>-1?r.events[L][1].type:null,$=z==="tableHead"||z==="tableRow"?b:a;return $===b&&r.parser.lazy[r.now().line]?n(k):$(k)}function a(k){return e.enter("tableHead"),e.enter("tableRow"),s(k)}function s(k){return k===124||(o=!0,l+=1),f(k)}function f(k){return k===null?n(k):rn(k)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),h):n(k):Ue(k)?N(e,f,"whitespace")(k):(l+=1,o&&(o=!1,i+=1),k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(k)))}function c(k){return k===null||k===124||gr(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]?n(k):(e.enter("tableDelimiterRow"),o=!1,Ue(k)?N(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):d(k))}function d(k){return k===45||k===58?S(k):k===124?(o=!0,e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),w):_(k)}function w(k){return Ue(k)?N(e,S,"whitespace")(k):S(k)}function S(k){return k===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),y):k===45?(l+=1,y(k)):k===null||rn(k)?F(k):_(k)}function y(k){return k===45?(e.enter("tableDelimiterFiller"),I(k)):_(k)}function I(k){return k===45?(e.consume(k),I):k===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(k),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(k))}function C(k){return Ue(k)?N(e,F,"whitespace")(k):F(k)}function F(k){return k===124?d(k):k===null||rn(k)?!o||i!==l?_(k):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(k)):_(k)}function _(k){return n(k)}function b(k){return e.enter("tableRow"),M(k)}function M(k){return k===124?(e.enter("tableCellDivider"),e.consume(k),e.exit("tableCellDivider"),M):k===null||rn(k)?(e.exit("tableRow"),t(k)):Ue(k)?N(e,M,"whitespace")(k):(e.enter("data"),j(k))}function j(k){return k===null||k===124||gr(k)?(e.exit("data"),M(k)):(e.consume(k),k===92?B:j)}function B(k){return k===92||k===124?(e.consume(k),j):j(k)}}function Pf(e,t){let n=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],u=!1,a=0,s,f,c;const p=new If;for(;++nn[2]+1){const d=n[2]+1,w=n[3]-n[2]-1;e.add(d,w,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(l.end=Object.assign({},ze(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function dr(e,t,n,r,i){const l=[],o=ze(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function ze(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}function Df(e){return e!==null&&e<-2}function vf(e){return e!==null&&(e<0||e===32)}function Ff(e){return e===-2||e===-1||e===32}const _f={name:"tasklistCheck",tokenize:Mf};function Rf(){return{text:{91:_f}}}function Mf(e,t,n){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),l)}function l(a){return vf(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),o):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),o):n(a)}function o(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(a)}function u(a){return Df(a)?t(a):Ff(a)?e.check({tokenize:Of},t,n)(a):n(a)}}function Of(e,t,n){return N(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Nf(e){return Xc([nf(),df(),Ef(e),Lf(),Rf()])}const Bf={};function jf(e){const t=this,n=e||Bf,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Nf(n)),l.push(Yc()),o.push(Qc(n))}function On(e,t,n,r){let i=e.length,l=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);l-1&&e.test(String.fromCharCode(n))}}function yr(e){if(e===null||$f(e)||qf(e))return 1;if(Hf(e))return 2}function Uf(e,t,n){let r=[],i=-1;for(;++i1?l(c):(r.consume(c),a++,f);if(a<2)return l(c);let h=r.exit("highlightSequenceTemporary"),d=yr(c);return h._open=!d||d===kr.attentionSideAfter&&!!p,h._close=!p||p===kr.attentionSideAfter&&!!d,i(c)}}}var Wf=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Di.peek=Kf;var Yf={canContainEols:["mark"],enter:{highlight:Xf},exit:{highlight:Gf}},Qf={unsafe:[{character:"=",inConstruct:"phrasing",notInConstruct:Wf}],handlers:{mark:Di}};function Xf(e){this.enter({type:"mark",children:[],data:{hName:"mark"}},e)}function Gf(e){this.exit(e)}function Di(e,t,n,r){let i=n.createTracker(r),l=n.enter("highlight"),o=i.move("==");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"="}),o+=i.move("=="),l(),o}function Kf(){return"="}function Jf(){let e=this.data();t("micromarkExtensions",Vf()),t("fromMarkdownExtensions",Yf),t("toMarkdownExtensions",Qf);function t(n,r){(e[n]?e[n]:e[n]=[]).push(r)}}const Zf=({children:e,...t})=>Pe.jsx("div",{...t,children:e}),rh=({...e})=>{let t=e.children;return t&&typeof t=="object"&&Array.isArray(t)&&(t=t.join("")),Pe.jsx(cs,{remarkPlugins:[jf,Jf],children:t,components:{ul(n){return br(n,"disc")},ol(n){return br(n,"decimal")}}})};function br(e,t){const{children:n,className:r,node:i,...l}=e;return Pe.jsx(Zf,{...l,className:`list-inside list-${t}`,children:n})}export{rh as M}; //# sourceMappingURL=index-BR481ERz.js.map //# debugId=60de1573-73a9-5461-a852-9bddad8a382c