import{r as ti,c as Xe,g as Jt}from"./vendor-react-C6WG4Va-.js";import{k as Qn}from"./vendor-katex-p018AHG0.js";var Zt={exports:{}},Ke={};/** * @license React * react-jsx-runtime.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var ri=ti,ii=Symbol.for("react.element"),li=Symbol.for("react.fragment"),oi=Object.prototype.hasOwnProperty,ai=ri.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ui={key:!0,ref:!0,__self:!0,__source:!0};function er(e,n,t){var r,i={},l=null,o=null;t!==void 0&&(l=""+t),n.key!==void 0&&(l=""+n.key),n.ref!==void 0&&(o=n.ref);for(r in n)oi.call(n,r)&&!ui.hasOwnProperty(r)&&(i[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps,n)i[r]===void 0&&(i[r]=n[r]);return{$$typeof:ii,type:e,key:l,ref:o,props:i,_owner:ai.current}}Ke.Fragment=li;Ke.jsx=er;Ke.jsxs=er;Zt.exports=Ke;var rn=Zt.exports;function Kn(e){const n=[],t=String(e||"");let r=t.indexOf(","),i=0,l=!1;for(;!l;){r===-1&&(r=t.length,l=!0);const o=t.slice(i,r).trim();(o||!l)&&n.push(o),i=r+1,r=t.indexOf(",",i)}return n}function si(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const ci=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,fi={};function Jn(e,n){return(fi.jsx?pi:ci).test(e)}const hi=/[ \t\n\f\r]/g;function mi(e){return typeof e=="object"?e.type==="text"?Zn(e.value):!1:Zn(e)}function Zn(e){return e.replace(hi,"")===""}class je{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}je.prototype.normal={};je.prototype.property={};je.prototype.space=void 0;function nr(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new je(t,r,n)}function Re(e){return e.toLowerCase()}class J{constructor(n,t){this.attribute=t,this.property=n}}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 di=0;const F=we(),$=we(),yn=we(),w=we(),j=we(),Te=we(),ee=we();function we(){return 2**++di}const xn=Object.freeze(Object.defineProperty({__proto__:null,boolean:F,booleanish:$,commaOrSpaceSeparated:ee,commaSeparated:Te,number:w,overloadedBoolean:yn,spaceSeparated:j},Symbol.toStringTag,{value:"Module"})),ln=Object.keys(xn);class Nn extends J{constructor(n,t,r,i){let l=-1;if(super(n,t),et(this,"space",i),typeof r=="number")for(;++l4&&t.slice(0,4)==="data"&&wi.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(nt,Si);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!nt.test(l)){let o=l.replace(ki,bi);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Nn}return new i(r,n)}function bi(e){return"-"+e.toLowerCase()}function Si(e){return e.charAt(1).toUpperCase()}const sr=nr([tr,gi,lr,or,ar],"html"),Je=nr([tr,yi,lr,or,ar],"svg");function tt(e){const n=String(e||"").trim();return n?n.split(/[ \t\n\r\f]+/g):[]}function Ei(e){return e.join(" ").trim()}var Fn={},rt=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ci=/\n/g,Ii=/^\s*/,Ti=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ai=/^:\s*/,Pi=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ni=/^[;\s]*/,Fi=/^\s+|\s+$/g,zi=` `,it="/",lt="*",ke="",Li="comment",Mi="declaration";function Oi(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(y){var g=y.match(Ci);g&&(t+=g.length);var C=y.lastIndexOf(zi);r=~C?y.length-C:r+y.length}function l(){var y={line:t,column:r};return function(g){return g.position=new o(y),s(),g}}function o(y){this.start=y,this.end={line:t,column:r},this.source=n.source}o.prototype.content=e;function a(y){var g=new Error(n.source+":"+t+":"+r+": "+y);if(g.reason=y,g.filename=n.source,g.line=t,g.column=r,g.source=e,!n.silent)throw g}function u(y){var g=y.exec(e);if(g){var C=g[0];return i(C),e=e.slice(C.length),g}}function s(){u(Ii)}function c(y){var g;for(y=y||[];g=f();)g!==!1&&y.push(g);return y}function f(){var y=l();if(!(it!=e.charAt(0)||lt!=e.charAt(1))){for(var g=2;ke!=e.charAt(g)&&(lt!=e.charAt(g)||it!=e.charAt(g+1));)++g;if(g+=2,ke===e.charAt(g-1))return a("End of comment missing");var C=e.slice(2,g-2);return r+=2,i(C),e=e.slice(g),r+=2,y({type:Li,comment:C})}}function d(){var y=l(),g=u(Ti);if(g){if(f(),!u(Ai))return a("property missing ':'");var C=u(Pi),b=y({type:Mi,property:ot(g[0].replace(rt,ke)),value:C?ot(C[0].replace(rt,ke)):ke});return u(Ni),b}}function p(){var y=[];c(y);for(var g;g=d();)g!==!1&&(y.push(g),c(y));return y}return s(),p()}function ot(e){return e?e.replace(Fi,ke):ke}var Di=Oi,_i=Xe&&Xe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.default=Ri;const vi=_i(Di);function Ri(e,n){let t=null;if(!e||typeof e!="string")return t;const r=(0,vi.default)(e),i=typeof n=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:a}=l;i?n(o,a,l):a&&(t=t||{},t[o]=a)}),t}var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.camelCase=void 0;var Bi=/^--[a-zA-Z0-9_-]+$/,ji=/-([a-z])/g,Hi=/^[^-]+$/,Ui=/^-(webkit|moz|ms|o|khtml)-/,Vi=/^-(ms)-/,qi=function(e){return!e||Hi.test(e)||Bi.test(e)},$i=function(e,n){return n.toUpperCase()},at=function(e,n){return"".concat(n,"-")},Wi=function(e,n){return n===void 0&&(n={}),qi(e)?e:(e=e.toLowerCase(),n.reactCompat?e=e.replace(Vi,at):e=e.replace(Ui,at),e.replace(ji,$i))};Ze.camelCase=Wi;var Yi=Xe&&Xe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Xi=Yi(Fn),Gi=Ze;function kn(e,n){var t={};return!e||typeof e!="string"||(0,Xi.default)(e,function(r,i){r&&i&&(t[(0,Gi.camelCase)(r,n)]=i)}),t}kn.default=kn;var Qi=kn;const Ki=Jt(Qi),cr=pr("end"),zn=pr("start");function pr(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 Ji(e){const n=zn(e),t=cr(e);if(n&&t)return{start:n,end:t}}function De(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ut(e.position):"start"in e||"end"in e?ut(e):"line"in e||"column"in e?wn(e):""}function wn(e){return st(e&&e.line)+":"+st(e&&e.column)}function ut(e){return wn(e&&e.start)+"-"+wn(e&&e.end)}function st(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="",l={},o=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(o=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?l.ruleId=r:(l.source=r.slice(0,u),l.ruleId=r.slice(u+1))}if(!l.place&&l.ancestors&&l.ancestors){const u=l.ancestors[l.ancestors.length-1];u&&(l.place=u.position)}const a=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=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=De(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}}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 Ln={}.hasOwnProperty,Zi=new Map,el=/[A-Z]/g,nl=new Set(["table","tbody","thead","tfoot","tr"]),tl=new Set(["td","th"]),fr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function rl(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=pl(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=cl(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"?Je:sr,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=hr(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function hr(e,n,t){if(n.type==="element")return il(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return ll(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return al(e,n,t);if(n.type==="mdxjsEsm")return ol(e,n);if(n.type==="root")return ul(e,n,t);if(n.type==="text")return sl(e,n)}function il(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Je,e.schema=i),e.ancestors.push(n);const l=dr(e,n.tagName,!1),o=fl(e,n);let a=On(e,n);return nl.has(n.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!mi(u):!0})),mr(e,o,l,n),Mn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function ll(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)}Be(e,n.position)}function ol(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Be(e,n.position)}function al(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Je,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:dr(e,n.name,!0),o=hl(e,n),a=On(e,n);return mr(e,o,l,n),Mn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function ul(e,n,t){const r={};return Mn(r,On(e,n)),e.create(n,e.Fragment,r,t)}function sl(e,n){return n.value}function mr(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Mn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function cl(e,n,t){return r;function r(i,l,o,a){const s=Array.isArray(o.children)?t:n;return a?s(l,o,a):s(l,o)}}function pl(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),u=zn(r);return n(i,l,o,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function fl(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Ln.call(n.properties,i)){const l=ml(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&tl.has(n.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function hl(e,n){const t={};for(const r of n.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 a=o.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Be(e,n.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 a=r.value.data.estree.body[0];a.type,l=e.evaluater.evaluateExpression(a.expression)}else Be(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function On(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Zi;for(;++ri?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l0?(se(e,e.length,0,n),e):n}const ft={}.hasOwnProperty;function Sl(e){const n={};let t=-1;for(;++t13&&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 Ae(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ue=ge(/[A-Za-z]/),ne=ge(/[\dA-Za-z]/),Il=ge(/[#-'*+\--9=?A-Z^-~]/);function bn(e){return e!==null&&(e<32||e===127)}const Sn=ge(/\d/),Tl=ge(/[\dA-Fa-f]/),Al=ge(/[!-/:-@[-`{-~]/);function T(e){return e!==null&&e<-2}function K(e){return e!==null&&(e<0||e===32)}function D(e){return e===-2||e===-1||e===32}const Pl=ge(new RegExp("\\p{P}|\\p{S}","u")),Nl=ge(/\s/);function ge(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ne(e){const n=[];let t=-1,r=0,i=0;for(;++t55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="�"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function _(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(u){return D(u)?(e.enter(t),a(u)):n(u)}function a(u){return D(u)&&l++o))return;const O=n.events.length;let V=O,z,H;for(;V--;)if(n.events[V][0]==="exit"&&n.events[V][1].type==="chunkFlow"){if(z){H=n.events[V][1].end;break}z=!0}for(b(r),k=O;kI;){const B=t[v];n.containerState=B[1],B[0].exit.call(n,e)}t.length=I}function S(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Ol(e,n,t){return _(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function mt(e){if(e===null||K(e)||Nl(e))return 1;if(Pl(e))return 2}function _n(e,n,t){const r=[];let i=-1;for(;++i1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const f={...e[r][1].end},d={...e[t][1].start};dt(f,-u),dt(d,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:d},l={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:u>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=te(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=te(s,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),s=te(s,_n(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=te(s,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(c=2,s=te(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):c=0,se(e,r-1,t-r+3,s),t=r+s.length-c-2;break}}for(t=-1;++t0&&D(k)?_(e,S,"linePrefix",l+1)(k):S(k)}function S(k){return k===null||T(k)?e.check(gt,g,v)(k):(e.enter("codeFlowValue"),I(k))}function I(k){return k===null||T(k)?(e.exit("codeFlowValue"),S(k)):(e.consume(k),I)}function v(k){return e.exit("codeFenced"),n(k)}function B(k,O,V){let z=0;return H;function H(M){return k.enter("lineEnding"),k.consume(M),k.exit("lineEnding"),P}function P(M){return k.enter("codeFencedFence"),D(M)?_(k,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):A(M)}function A(M){return M===a?(k.enter("codeFencedFenceSequence"),U(M)):V(M)}function U(M){return M===a?(z++,k.consume(M),U):z>=o?(k.exit("codeFencedFenceSequence"),D(M)?_(k,q,"whitespace")(M):q(M)):V(M)}function q(M){return M===null||T(M)?(k.exit("codeFencedFence"),O(M)):V(M)}}}function Wl(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const an={name:"codeIndented",tokenize:Xl},Yl={partial:!0,tokenize:Gl};function Xl(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),_(e,l,"linePrefix",5)(s)}function l(s){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?u(s):T(s)?e.attempt(Yl,o,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||T(s)?(e.exit("codeFlowValue"),o(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),n(s)}}function Gl(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):T(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):_(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):T(o)?i(o):t(o)}}const Ql={name:"codeText",previous:Jl,resolve:Kl,tokenize:Zl};function Kl(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=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 nthis.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 l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Me(this.left,r),l.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),Me(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Me(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=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function Sr(e,n,t,r,i,l,o,a,u){const s=u||Number.POSITIVE_INFINITY;let c=0;return f;function f(b){return b===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(b),e.exit(l),d):b===null||b===32||b===41||bn(b)?t(b):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(b))}function d(b){return b===62?(e.enter(l),e.consume(b),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===62?(e.exit("chunkString"),e.exit(a),d(b)):b===null||b===60||T(b)?t(b):(e.consume(b),b===92?y:p)}function y(b){return b===60||b===62||b===92?(e.consume(b),p):p(b)}function g(b){return!c&&(b===null||b===41||K(b))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(b)):c999||p===null||p===91||p===93&&!u||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):T(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||T(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),u||(u=!D(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function Cr(e,n,t,r,i,l){let o;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,u):t(d)}function u(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):(e.enter(l),s(d))}function s(d){return d===o?(e.exit(l),u(o)):d===null?t(d):T(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),_(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||T(d)?(e.exit("chunkString"),s(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function _e(e,n){let t;return r;function r(i){return T(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):D(i)?_(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const ao={name:"definition",tokenize:so},uo={partial:!0,tokenize:co};function so(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return Er.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Ae(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):t(p)}function u(p){return K(p)?_e(e,s)(p):s(p)}function s(p){return Sr(e,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(uo,f,f)(p)}function f(p){return D(p)?_(e,d,"whitespace")(p):d(p)}function d(p){return p===null||T(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function co(e,n,t){return r;function r(a){return K(a)?_e(e,i)(a):t(a)}function i(a){return Cr(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return D(a)?_(e,o,"whitespace")(a):o(a)}function o(a){return a===null||T(a)?n(a):t(a)}}const po={name:"hardBreakEscape",tokenize:fo};function fo(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return T(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const ho={name:"headingAtx",resolve:mo,tokenize:go};function mo(e,n){let t=e.length-2,r=3,i,l;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},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},se(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function go(e,n,t){let r=0;return i;function i(c){return e.enter("atxHeading"),l(c)}function l(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||K(c)?(e.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||T(c)?(e.exit("atxHeading"),n(c)):D(c)?_(e,a,"whitespace")(c):(e.enter("atxHeadingText"),s(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),a(c))}function s(c){return c===null||c===35||K(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),s)}}const yo=["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"],xt=["pre","script","style","textarea"],xo={concrete:!0,name:"htmlFlow",resolveTo:bo,tokenize:So},ko={partial:!0,tokenize:Co},wo={partial:!0,tokenize:Eo};function bo(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 So(e,n,t){const r=this;let i,l,o,a,u;return s;function s(m){return c(m)}function c(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),f}function f(m){return m===33?(e.consume(m),d):m===47?(e.consume(m),l=!0,g):m===63?(e.consume(m),i=3,r.interrupt?n:h):ue(m)?(e.consume(m),o=String.fromCharCode(m),C):t(m)}function d(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=0,y):ue(m)?(e.consume(m),i=4,r.interrupt?n:h):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:h):t(m)}function y(m){const le="CDATA[";return m===le.charCodeAt(a++)?(e.consume(m),a===le.length?r.interrupt?n:A:y):t(m)}function g(m){return ue(m)?(e.consume(m),o=String.fromCharCode(m),C):t(m)}function C(m){if(m===null||m===47||m===62||K(m)){const le=m===47,ye=o.toLowerCase();return!le&&!l&&xt.includes(ye)?(i=1,r.interrupt?n(m):A(m)):yo.includes(o.toLowerCase())?(i=6,le?(e.consume(m),b):r.interrupt?n(m):A(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?S(m):I(m))}return m===45||ne(m)?(e.consume(m),o+=String.fromCharCode(m),C):t(m)}function b(m){return m===62?(e.consume(m),r.interrupt?n:A):t(m)}function S(m){return D(m)?(e.consume(m),S):H(m)}function I(m){return m===47?(e.consume(m),H):m===58||m===95||ue(m)?(e.consume(m),v):D(m)?(e.consume(m),I):H(m)}function v(m){return m===45||m===46||m===58||m===95||ne(m)?(e.consume(m),v):B(m)}function B(m){return m===61?(e.consume(m),k):D(m)?(e.consume(m),B):I(m)}function k(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),u=m,O):D(m)?(e.consume(m),k):V(m)}function O(m){return m===u?(e.consume(m),u=null,z):m===null||T(m)?t(m):(e.consume(m),O)}function V(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||K(m)?B(m):(e.consume(m),V)}function z(m){return m===47||m===62||D(m)?I(m):t(m)}function H(m){return m===62?(e.consume(m),P):t(m)}function P(m){return m===null||T(m)?A(m):D(m)?(e.consume(m),P):t(m)}function A(m){return m===45&&i===2?(e.consume(m),X):m===60&&i===1?(e.consume(m),W):m===62&&i===4?(e.consume(m),ie):m===63&&i===3?(e.consume(m),h):m===93&&i===5?(e.consume(m),ce):T(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ko,pe,U)(m)):m===null||T(m)?(e.exit("htmlFlowData"),U(m)):(e.consume(m),A)}function U(m){return e.check(wo,q,pe)(m)}function q(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),M}function M(m){return m===null||T(m)?U(m):(e.enter("htmlFlowData"),A(m))}function X(m){return m===45?(e.consume(m),h):A(m)}function W(m){return m===47?(e.consume(m),o="",re):A(m)}function re(m){if(m===62){const le=o.toLowerCase();return xt.includes(le)?(e.consume(m),ie):A(m)}return ue(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),re):A(m)}function ce(m){return m===93?(e.consume(m),h):A(m)}function h(m){return m===62?(e.consume(m),ie):m===45&&i===2?(e.consume(m),h):A(m)}function ie(m){return m===null||T(m)?(e.exit("htmlFlowData"),pe(m)):(e.consume(m),ie)}function pe(m){return e.exit("htmlFlow"),n(m)}}function Eo(e,n,t){const r=this;return i;function i(o){return T(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Co(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(en,n,t)}}const Io={name:"htmlText",tokenize:To};function To(e,n,t){const r=this;let i,l,o;return a;function a(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),u}function u(h){return h===33?(e.consume(h),s):h===47?(e.consume(h),B):h===63?(e.consume(h),I):ue(h)?(e.consume(h),V):t(h)}function s(h){return h===45?(e.consume(h),c):h===91?(e.consume(h),l=0,y):ue(h)?(e.consume(h),S):t(h)}function c(h){return h===45?(e.consume(h),p):t(h)}function f(h){return h===null?t(h):h===45?(e.consume(h),d):T(h)?(o=f,W(h)):(e.consume(h),f)}function d(h){return h===45?(e.consume(h),p):f(h)}function p(h){return h===62?X(h):h===45?d(h):f(h)}function y(h){const ie="CDATA[";return h===ie.charCodeAt(l++)?(e.consume(h),l===ie.length?g:y):t(h)}function g(h){return h===null?t(h):h===93?(e.consume(h),C):T(h)?(o=g,W(h)):(e.consume(h),g)}function C(h){return h===93?(e.consume(h),b):g(h)}function b(h){return h===62?X(h):h===93?(e.consume(h),b):g(h)}function S(h){return h===null||h===62?X(h):T(h)?(o=S,W(h)):(e.consume(h),S)}function I(h){return h===null?t(h):h===63?(e.consume(h),v):T(h)?(o=I,W(h)):(e.consume(h),I)}function v(h){return h===62?X(h):I(h)}function B(h){return ue(h)?(e.consume(h),k):t(h)}function k(h){return h===45||ne(h)?(e.consume(h),k):O(h)}function O(h){return T(h)?(o=O,W(h)):D(h)?(e.consume(h),O):X(h)}function V(h){return h===45||ne(h)?(e.consume(h),V):h===47||h===62||K(h)?z(h):t(h)}function z(h){return h===47?(e.consume(h),X):h===58||h===95||ue(h)?(e.consume(h),H):T(h)?(o=z,W(h)):D(h)?(e.consume(h),z):X(h)}function H(h){return h===45||h===46||h===58||h===95||ne(h)?(e.consume(h),H):P(h)}function P(h){return h===61?(e.consume(h),A):T(h)?(o=P,W(h)):D(h)?(e.consume(h),P):z(h)}function A(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),i=h,U):T(h)?(o=A,W(h)):D(h)?(e.consume(h),A):(e.consume(h),q)}function U(h){return h===i?(e.consume(h),i=void 0,M):h===null?t(h):T(h)?(o=U,W(h)):(e.consume(h),U)}function q(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||K(h)?z(h):(e.consume(h),q)}function M(h){return h===47||h===62||K(h)?z(h):t(h)}function X(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),n):t(h)}function W(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),re}function re(h){return D(h)?_(e,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):ce(h)}function ce(h){return e.enter("htmlTextData"),o(h)}}const vn={name:"labelEnd",resolveAll:Fo,resolveTo:zo,tokenize:Lo},Ao={tokenize:Mo},Po={tokenize:Oo},No={tokenize:Do};function Fo(e){let n=-1;const t=[];for(;++n=3&&(s===null||T(s))?(e.exit("thematicBreak"),n(s)):t(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),D(s)?_(e,a,"whitespace")(s):a(s))}}const Q={continuation:{tokenize:$o},exit:Yo,name:"list",tokenize:qo},Uo={partial:!0,tokenize:Xo},Vo={partial:!0,tokenize:Wo};function qo(e,n,t){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 a;function a(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Sn(p)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(We,t,s)(p):s(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return t(p)}function u(p){return Sn(p)&&++o<10?(e.consume(p),u):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),s(p)):t(p)}function s(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(en,r.interrupt?t:c,e.attempt(Uo,d,f))}function c(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function f(p){return D(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function $o(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(en,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,_(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!D(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Vo,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,_(e,e.attempt(Q,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Wo(e,n,t){const r=this;return _(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?n(l):t(l)}}function Yo(e){e.exit(this.containerState.type)}function Xo(e,n,t){const r=this;return _(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!D(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const kt={name:"setextUnderline",resolveTo:Go,tokenize:Qo};function Go(e,n){let t=e.length,r,i,l;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),!l&&e[t][1].type==="definition"&&(l=t);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,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function Qo(e,n,t){const r=this;let i;return l;function l(s){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=s,o(s)):t(s)}function o(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),D(s)?_(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||T(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const Ko={tokenize:Jo};function Jo(e){const n=this,t=e.attempt(en,r,e.attempt(this.parser.constructs.flowInitial,i,_(e,e.attempt(this.parser.constructs.flow,i,e.attempt(to,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Zo={resolveAll:Tr()},ea=Ir("string"),na=Ir("text");function Ir(e){return{resolveAll:Tr(e==="text"?ta:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(c){return s(c)?l(c):a(c)}function a(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),u}function u(c){return s(c)?(t.exit("data"),l(c)):(t.consume(c),u)}function s(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function da(e,n){let t=-1;const r=[];let i;for(;++t0){const oe=N.tokenStack[N.tokenStack.length-1];(oe[1]||bt).call(N,void 0,oe[0])}for(E.position={start:de(x.length>0?x[0][1].start:{line:1,column:1,offset:0}),end:de(x.length>0?x[x.length-2][1].end:{line:1,column:1,offset:0})},R=-1;++R0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function Na(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Fa(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function za(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=Ne(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+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(o)}]};e.patch(n,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(n,s),e.applyData(n,s)}function La(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 Ma(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function Nr(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),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 Oa(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Nr(e,n);const i={src:Ne(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function Da(e,n){const t={src:Ne(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 _a(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 va(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Nr(e,n);const i={href:Ne(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function Ra(e,n){const t={href:Ne(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 Ba(e,n,t){const r=e.all(n),i=t?ja(t):Fr(n),l={},o=[];if(typeof n.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a1}function Ha(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=zn(n.children[1]),u=cr(n.children[n.children.length-1]);a&&u&&(o.position={start:a,end:u}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function Wa(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,a=o?o.length:n.children.length;let u=-1;const s=[];for(;++u0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(Ct(n.slice(i),i>0,!1)),l.join("")}function Ct(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===St||l===Et;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===St||l===Et;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Ga(e,n){const t={type:"text",value:Xa(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Qa(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Ka={blockquote:Ta,break:Aa,code:Pa,delete:Na,emphasis:Fa,footnoteReference:za,heading:La,html:Ma,imageReference:Oa,image:Da,inlineCode:_a,linkReference:va,link:Ra,listItem:Ba,list:Ha,paragraph:Ua,root:Va,strong:qa,table:$a,tableCell:Ya,tableRow:Wa,text:Ga,thematicBreak:Qa,toml:Ve,yaml:Ve,definition:Ve,footnoteDefinition:Ve};function Ve(){}const zr=-1,nn=0,ve=1,Ge=2,Rn=3,Bn=4,jn=5,Hn=6,Lr=7,Mr=8,It=typeof self=="object"?self:globalThis,Ja=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=n[i];switch(l){case nn:case zr:return t(o,i);case ve:{const a=t([],i);for(const u of o)a.push(r(u));return a}case Ge:{const a=t({},i);for(const[u,s]of o)a[r(u)]=r(s);return a}case Rn:return t(new Date(o),i);case Bn:{const{source:a,flags:u}=o;return t(new RegExp(a,u),i)}case jn:{const a=t(new Map,i);for(const[u,s]of o)a.set(r(u),r(s));return a}case Hn:{const a=t(new Set,i);for(const u of o)a.add(r(u));return a}case Lr:{const{name:a,message:u}=o;return t(new It[a](u),i)}case Mr:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return t(new DataView(a),o)}}return t(new It[l](o),i)};return r},Tt=e=>Ja(new Map,e)(0),Ie="",{toString:Za}={},{keys:eu}=Object,Oe=e=>{const n=typeof e;if(n!=="object"||!e)return[nn,n];const t=Za.call(e).slice(8,-1);switch(t){case"Array":return[ve,Ie];case"Object":return[Ge,Ie];case"Date":return[Rn,Ie];case"RegExp":return[Bn,Ie];case"Map":return[jn,Ie];case"Set":return[Hn,Ie];case"DataView":return[ve,t]}return t.includes("Array")?[ve,t]:t.includes("Error")?[Lr,t]:[Ge,t]},qe=([e,n])=>e===nn&&(n==="function"||n==="symbol"),nu=(e,n,t,r)=>{const i=(o,a)=>{const u=r.push(o)-1;return t.set(a,u),u},l=o=>{if(t.has(o))return t.get(o);let[a,u]=Oe(o);switch(a){case nn:{let c=o;switch(u){case"bigint":a=Mr,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([zr],o)}return i([a,c],o)}case ve:{if(u){let d=o;return u==="DataView"?d=new Uint8Array(o.buffer):u==="ArrayBuffer"&&(d=new Uint8Array(o)),i([u,[...d]],o)}const c=[],f=i([a,c],o);for(const d of o)c.push(l(d));return f}case Ge:{if(u)switch(u){case"BigInt":return i([u,o.toString()],o);case"Boolean":case"Number":case"String":return i([u,o.valueOf()],o)}if(n&&"toJSON"in o)return l(o.toJSON());const c=[],f=i([a,c],o);for(const d of eu(o))(e||!qe(Oe(o[d])))&&c.push([l(d),l(o[d])]);return f}case Rn:return i([a,o.toISOString()],o);case Bn:{const{source:c,flags:f}=o;return i([a,{source:c,flags:f}],o)}case jn:{const c=[],f=i([a,c],o);for(const[d,p]of o)(e||!(qe(Oe(d))||qe(Oe(p))))&&c.push([l(d),l(p)]);return f}case Hn:{const c=[],f=i([a,c],o);for(const d of o)(e||!qe(Oe(d)))&&c.push(l(d));return f}}const{message:s}=o;return i([a,{name:u,message:s}],o)};return l},At=(e,{json:n,lossy:t}={})=>{const r=[];return nu(!(n||t),!!n,new Map,r)(e),r},Qe=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Tt(At(e,n)):structuredClone(e):(e,n)=>Tt(At(e,n));function tu(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 ru(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function iu(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||tu,r=e.options.footnoteBackLabel||ru,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u0&&y.push({type:"text",value:" "});let S=typeof t=="string"?t:t(u,p);typeof S=="string"&&(S={type:"text",value:S}),y.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const C=c[c.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const S=C.children[C.children.length-1];S&&S.type==="text"?S.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...y)}else c.push(...y);const b={type:"element",tagName:"li",properties:{id:n+"fn-"+d},children:e.wrap(c,!0)};e.patch(s,b),a.push(b)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Qe(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:` `}]}}const Un=function(e){if(e==null)return uu;if(typeof e=="function")return tn(e);if(typeof e=="object")return Array.isArray(e)?lu(e):ou(e);if(typeof e=="string")return au(e);throw new Error("Expected function, string, or object as test")};function lu(e){const n=[];let t=-1;for(;++t":""))+")"})}return d;function d(){let p=Or,y,g,C;if((!n||l(u,s,c[c.length-1]||void 0))&&(p=pu(t(u,c)),p[0]===Pt))return p;if("children"in u&&u.children){const b=u;if(b.children&&p[0]!==Dr)for(g=(r?b.children.length:-1)+o,C=c.concat(b);g>-1&&g0&&t.push({type:"text",value:` `}),t}function Nt(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function Ft(e,n){const t=hu(e,n),r=t.one(e,void 0),i=iu(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:` `},i),l}function xu(e,n){return e&&"run"in e?async function(t,r){const i=Ft(t,{file:r,...n});await e.run(i,r)}:function(t,r){return Ft(t,{file:r,...e||n})}}function zt(e){if(e)throw e}var Ye=Object.prototype.hasOwnProperty,Rr=Object.prototype.toString,Lt=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,Ot=function(n){return typeof Array.isArray=="function"?Array.isArray(n):Rr.call(n)==="[object Array]"},Dt=function(n){if(!n||Rr.call(n)!=="[object Object]")return!1;var t=Ye.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&Ye.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||Ye.call(n,i)},_t=function(n,t){Lt&&t.name==="__proto__"?Lt(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},vt=function(n,t){if(t==="__proto__")if(Ye.call(n,t)){if(Mt)return Mt(n,t).value}else return;return n[t]},ku=function e(){var n,t,r,i,l,o,a=arguments[0],u=1,s=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},u=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});uo.length;let u;a&&o.push(i);try{u=e.apply(this,o)}catch(s){const c=s;if(a&&t)throw c;return i(c)}a||(u&&u.then&&typeof u.then=="function"?u.then(l,i):u instanceof Error?i(u):l(u))}function i(o,...a){t||(t=!0,n(o,...a))}function l(o){i(null,o)}}const ae={basename:Su,dirname:Eu,extname:Cu,join:Iu,sep:"/"};function Su(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,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let o=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function Eu(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 Cu(e){He(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const a=e.codePointAt(n);if(a===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),a===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Iu(...e){let n=-1,t;for(;++n0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Au(e,n){let t="",r=0,i=-1,l=0,o=-1,a,u;for(;++o<=e.length;){if(o2){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=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return t}function He(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Pu={cwd:Nu};function Nu(){return"/"}function Tn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Fu(e){if(typeof e=="string")e=new URL(e);else if(!Tn(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 zu(e)}function zu(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(;++t0){let[p,...y]=c;const g=r[d][1];In(g)&&In(p)&&(p=sn(!0,g,p)),r[d]=[s,p,...y]}}}}const Du=new Vn().freeze();function hn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function mn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function dn(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 Bt(e){if(!In(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function jt(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function $e(e){return _u(e)?e:new Br(e)}function _u(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function vu(e){return typeof e=="string"||Ru(e)}function Ru(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Bu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ht=[],Ut={allowDangerousHtml:!0},ju=/^(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 _s(e){const n=Uu(e),t=Vu(e);return qu(n.runSync(n.parse(t),t),e)}function Uu(e){const n=e.rehypePlugins||Ht,t=e.remarkPlugins||Ht,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ut}:Ut;return Du().use(Ia).use(t).use(xu,r).use(n)}function Vu(e){const n=e.children||"",t=new Br;return typeof n=="string"&&(t.value=n),t}function qu(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,a=n.unwrapDisallowed,u=n.urlTransform||$u;for(const c of Hu)Object.hasOwn(n,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+Bu+c.id,void 0);return vr(e,s),rl(e,{Fragment:rn.Fragment,components:i,ignoreInvalidStyle:!0,jsx:rn.jsx,jsxs:rn.jsxs,passKeys:!0,passNode:!0});function s(c,f,d){if(c.type==="raw"&&d&&typeof f=="number")return o?d.children.splice(f,1):d.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let p;for(p in on)if(Object.hasOwn(on,p)&&Object.hasOwn(c.properties,p)){const y=c.properties[p],g=on[p];(g===null||g.includes(c.tagName))&&(c.properties[p]=u(String(y||""),p,c))}}if(c.type==="element"){let p=t?!t.includes(c.tagName):l?l.includes(c.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(c,f,d)),p&&d&&typeof f=="number")return a&&c.children?d.children.splice(f,1,...c.children):d.children.splice(f,1),f}}}function $u(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||ju.test(e.slice(0,n))?e:""}function Wu(e,n){const t=String(e);let r=t.indexOf(n),i=r,l=0,o=0;for(;r!==-1;)r===i?++l>o&&(o=l):l=1,i=r+n.length,r=t.indexOf(n,i);return o}function Yu(){return{enter:{mathFlow:e,mathFlowFenceMeta:n,mathText:l},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:t,mathFlowValue:a,mathText:o,mathTextData:a}};function e(u){const s={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[s]}},u)}function n(){this.buffer()}function t(){const u=this.resume(),s=this.stack[this.stack.length-1];s.type,s.meta=u}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const s=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=s;const f=c.data.hChildren[0];f.type,f.tagName,f.children.push({type:"text",value:s}),this.data.mathFlowInside=void 0}function l(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function o(u){const s=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=s,c.data.hChildren.push({type:"text",value:s})}function a(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function Xu(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:` `,inConstruct:"mathFlowMeta"},{character:"$",after:n?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:t,inlineMath:r}};function t(l,o,a,u){const s=l.value||"",c=a.createTracker(u),f="$".repeat(Math.max(Wu(s,"$")+1,2)),d=a.enter("mathFlow");let p=c.move(f);if(l.meta){const y=a.enter("mathFlowMeta");p+=c.move(a.safe(l.meta,{after:` `,before:p,encode:["$"],...c.current()})),y()}return p+=c.move(` `),s&&(p+=c.move(s+` `)),p+=c.move(f),d(),p}function r(l,o,a){let u=l.value||"",s=1;for(n||s++;new RegExp("(^|[^$])"+"\\$".repeat(s)+"([^$]|$)").test(u);)s++;const c="$".repeat(s);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let f=-1;for(;++fs&&(s=c):c&&(s!==void 0&&s>-1&&u.push(` `.repeat(s)||" "),s=-1,u.push(c))}return u.join("")}function qr(e,n,t){return e.type==="element"?Ts(e,n,t):e.type==="text"?t.whitespace==="normal"?$r(e,t):As(e):[]}function Ts(e,n,t){const r=Wr(e,t),i=e.children||[];let l=-1,o=[];if(Cs(e))return o;let a,u;for(Pn(e)||Kt(e)&&Yt(n,e,Kt)?u=` `:Es(e)?(a=2,u=2):Vr(e)&&(a=1,u=1);++l