44 lines
169 KiB
JavaScript
44 lines
169 KiB
JavaScript
|
|
import{r as el,c as it,g as Ar}from"./syntax-highlight-CQw1bBY6.js";import{k as xn}from"./katex-BSBacQyE.js";var Tr={exports:{}},st={};/**
|
||
|
|
* @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 tl=el,nl=Symbol.for("react.element"),rl=Symbol.for("react.fragment"),il=Object.prototype.hasOwnProperty,ll=tl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ol={key:!0,ref:!0,__self:!0,__source:!0};function Fr(e,t,n){var r,i={},o=null,l=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)il.call(t,r)&&!ol.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:nl,type:e,key:o,ref:l,props:i,_owner:ll.current}}st.Fragment=rl;st.jsx=Fr;st.jsxs=Fr;Tr.exports=st;var dt=Tr.exports;function kn(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const l=n.slice(i,r).trim();(l||!o)&&t.push(l),i=r+1,r=n.indexOf(",",i)}return t}function al(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ul=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,sl=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cl={};function bn(e,t){return(cl.jsx?sl:ul).test(e)}const fl=/[ \t\n\f\r]/g;function hl(e){return typeof e=="object"?e.type==="text"?wn(e.value):!1:wn(e)}function wn(e){return e.replace(fl,"")===""}class Ye{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Ye.prototype.normal={};Ye.prototype.property={};Ye.prototype.space=void 0;function Pr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Ye(n,r,t)}function Ue(e){return e.toLowerCase()}class ee{constructor(t,n){this.attribute=n,this.property=t}}ee.prototype.attribute="";ee.prototype.booleanish=!1;ee.prototype.boolean=!1;ee.prototype.commaOrSpaceSeparated=!1;ee.prototype.commaSeparated=!1;ee.prototype.defined=!1;ee.prototype.mustUseProperty=!1;ee.prototype.number=!1;ee.prototype.overloadedBoolean=!1;ee.prototype.property="";ee.prototype.spaceSeparated=!1;ee.prototype.space=void 0;let pl=0;const M=Ie(),W=Ie(),Lt=Ie(),E=Ie(),U=Ie(),ve=Ie(),ne=Ie();function Ie(){return 2**++pl}const Mt=Object.freeze(Object.defineProperty({__proto__:null,boolean:M,booleanish:W,commaOrSpaceSeparated:ne,commaSeparated:ve,number:E,overloadedBoolean:Lt,spaceSeparated:U},Symbol.toStringTag,{value:"Module"})),yt=Object.keys(Mt);class Wt extends ee{constructor(t,n,r,i){let o=-1;if(super(t,n),Sn(this,"space",i),typeof r=="number")for(;++o<yt.length;){const l=yt[o];Sn(this,yt[o],(r&Mt[l])===Mt[l])}}}Wt.prototype.defined=!0;function Sn(e,t,n){n&&(e[t]=n)}function Me(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Wt(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Ue(r)]=r,n[Ue(o.attribute)]=r}return new Ye(t,n,e.space)}const zr=Me({properties:{ariaActiveDescendant:null,ariaAtomic:W,ariaAutoComplete:null,ariaBusy:W,ariaChecked:W,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:U,ariaCurrent:null,ariaDescribedBy:U,ariaDetails:null,ariaDisabled:W,ariaDropEffect:U,ariaErrorMessage:null,ariaExpanded:W,ariaFlowTo:U,ariaGrabbed:W,ariaHasPopup:null,ariaHidden:W,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:U,ariaLevel:E,ariaLive:null,ariaModal:W,ariaMultiLine:W,ariaMultiSelectable:W,ariaOrientation:null,ariaOwns:U,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:W,ariaReadOnly:W,ariaRelevant:null,ariaRequired:W,ariaRoleDescription:U,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:W,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Dr(e,t){return t in e?e[t]:t}function vr(e,t){return Dr(e,t.toLowerCase())}const ml=Me({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ve,acceptCharset:U,accessKey:U,action:null,allow:null,allowFullScreen:M,allowPaymentRequest:M,allowUserMedia:M,alt:null,as:n
|
||
|
|
`,An="/",Tn="*",Ce="",zl="comment",Dl="declaration";function vl(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var y=m.match(Sl);y&&(n+=y.length);var C=m.lastIndexOf(Pl);r=~C?m.length-C:r+m.length}function o(){var m={line:n,column:r};return function(y){return y.position=new l(m),s(),y}}function l(m){this.start=m,this.end={line:n,column:r},this.source=t.source}l.prototype.content=e;function a(m){var y=new Error(t.source+":"+n+":"+r+": "+m);if(y.reason=m,y.filename=t.source,y.line=n,y.column=r,y.source=e,!t.silent)throw y}function u(m){var y=m.exec(e);if(y){var C=y[0];return i(C),e=e.slice(C.length),y}}function s(){u(Cl)}function f(m){var y;for(m=m||[];y=c();)y!==!1&&m.push(y);return m}function c(){var m=o();if(!(An!=e.charAt(0)||Tn!=e.charAt(1))){for(var y=2;Ce!=e.charAt(y)&&(Tn!=e.charAt(y)||An!=e.charAt(y+1));)++y;if(y+=2,Ce===e.charAt(y-1))return a("End of comment missing");var C=e.slice(2,y-2);return r+=2,i(C),e=e.slice(y),r+=2,m({type:zl,comment:C})}}function p(){var m=o(),y=u(El);if(y){if(c(),!u(Il))return a("property missing ':'");var C=u(Al),x=m({type:Dl,property:Fn(y[0].replace(In,Ce)),value:C?Fn(C[0].replace(In,Ce)):Ce});return u(Tl),x}}function h(){var m=[];f(m);for(var y;y=p();)y!==!1&&(m.push(y),f(m));return m}return s(),h()}function Fn(e){return e?e.replace(Fl,Ce):Ce}var Ll=vl,Ml=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Yt,"__esModule",{value:!0});Yt.default=Ol;const _l=Ml(Ll);function Ol(e,t){let n=null;if(!e||typeof e!="string")return n;const r=(0,_l.default)(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:l,value:a}=o;i?t(l,a,o):a&&(n=n||{},n[l]=a)}),n}var ft={};Object.defineProperty(ft,"__esModule",{value:!0});ft.camelCase=void 0;var Nl=/^--[a-zA-Z0-9_-]+$/,Rl=/-([a-z])/g,Bl=/^[^-]+$/,jl=/^-(webkit|moz|ms|o|khtml)-/,$l=/^-(ms)-/,Hl=function(e){return!e||Bl.test(e)||Nl.test(e)},ql=function(e,t){return t.toUpperCase()},Pn=function(e,t){return"".concat(t,"-")},Ul=function(e,t){return t===void 0&&(t={}),Hl(e)?e:(e=e.toLowerCase(),t.reactCompat?e=e.replace($l,Pn):e=e.replace(jl,Pn),e.replace(Rl,ql))};ft.camelCase=Ul;var Vl=it&&it.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Wl=Vl(Yt),Yl=ft;function _t(e,t){var n={};return!e||typeof e!="string"||(0,Wl.default)(e,function(r,i){r&&i&&(n[(0,Yl.camelCase)(r,t)]=i)}),n}_t.default=_t;var Gl=_t;const Xl=Ar(Gl),Rr=Br("end"),Gt=Br("start");function Br(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 Ql(e){const t=Gt(e),n=Rr(e);if(t&&n)return{start:t,end:n}}function $e(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?zn(e.position):"start"in e||"end"in e?zn(e):"line"in e||"column"in e?Ot(e):""}function Ot(e){return Dn(e&&e.line)+":"+Dn(e&&e.column)}function zn(e){return Ot(e&&e.start)+"-"+Ot(e&&e.end)}function Dn(e){return e&&typeof e=="number"?e:1}class K extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=$e(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typ
|
||
|
|
`;break}case-3:{l=`\r
|
||
|
|
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function cu(e){const r={constructs:Vr([ou,...(e||{}).extensions||[]]),content:i(Io),defined:[],document:i(To),flow:i(Va),lazy:{},string:i(Ga),text:i(Xa)};return r;function i(o){return l;function l(a){return au(r,o,a)}}}function fu(e){for(;!Qr(e););return e}const $n=/[\0\t\n\r]/g;function hu(){let e=1,t="",n=!0,r;return i;function i(o,l,a){const u=[];let s,f,c,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if($n.lastIndex=c,s=$n.exec(o),p=s&&s.index!==void 0?s.index:o.length,h=o.charCodeAt(p),!s){t=o.slice(c);break}if(h===10&&c===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<p&&(u.push(o.slice(c,p)),e+=p-c),h){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const pu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function mu(e){return e.replace(pu,gu)}function gu(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Wr(n.slice(o?2:1),o?16:10)}return Zt(n)||e}const ni={}.hasOwnProperty;function du(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),yu(n)(fu(cu(n).document().write(hu()(e,t,!0))))}function yu(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(dn),autolinkProtocol:L,autolinkEmail:L,atxHeading:o(pn),blockQuote:o(Fe),characterEscape:L,characterReference:L,codeFenced:o(Ke),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Ke,l),codeText:o(Vi,l),codeTextData:L,data:L,codeFlowValue:L,definition:o(Wi),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Yi),hardBreakEscape:o(mn),hardBreakTrailing:o(mn),htmlFlow:o(gn,l),htmlFlowData:L,htmlText:o(gn,l),htmlTextData:L,image:o(Gi),label:l,link:o(dn),listItem:o(Xi),listItemValue:p,listOrdered:o(yn,c),listUnordered:o(yn),paragraph:o(Qi),reference:d,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(pn),strong:o(Ki),thematicBreak:o(Zi)},exit:{atxHeading:u(),atxHeadingSequence:v,autolink:u(),autolinkEmail:Te,autolinkProtocol:ye,blockQuote:u(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:G,characterReference:Oe,codeFenced:u(C),codeFencedFence:y,codeFencedFenceInfo:h,codeFencedFenceMeta:m,codeFlowValue:k,codeIndented:u(x),codeText:u(B),codeTextData:k,data:k,definition:u(),definitionDestinationString:D,definitionLabelString:b,definitionTitleString:I,emphasis:u(),hardBreakEscape:u(P),hardBreakTrailing:u(P),htmlFlow:u($),htmlFlowData:k,htmlText:u(V),htmlTextData:k,image:u(Y),label:he,labelText:le,lineEnding:F,link:u(X),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ae,resourceDestinationString:g,resourceTitleString:oe,resource:pe,setextHeading:u(j),setextHeadingLineSequence:N,setextHeadingText:S,strong:u(),thematicBreak:u()}};ri(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(w){let A={type:"root",children:[]};const z={stack:[A],tokenStack:[],config:t,enter:a,exit:s,buffer:l,resume:f,data:n},R=[];let H=-1;for(;++H<w.length;)if(w[H][1].type==="listOrdered"||w[H][1].type==="listUnordered")if(w[H][0]==="enter")R.push(H);else{const ue=R.pop();H=i(w,ue,H)}for(H=-1;++H<w.length;){const ue=t[w[H][0]];ni.call(ue,w[H][1].type)&&ue[w[H][1].type].call(Object.assign({sliceSerialize:w[H][2].sliceSerialize},z),w[H][1])}if(z.tokenStack.length>0){const ue=z.tokenStack[z.tokenStack.length-1];(ue[1]||Hn).call(z,void 0,ue[0])}for(A.position={start:xe(w.length>0?w[0][1].start:{line:1,column:1,offset:0}),end:xe(w.length>0?w[w.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<t.transforms.length;)A=t.transforms[H](A)||A;return A}function i(w,A,z){let R=A-1,H=-1,ue=!1
|
||
|
|
`}]}function Su(e,t){const n=t.value?t.value+`
|
||
|
|
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function Cu(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Eu(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Iu(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=_e(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,s),e.applyData(t,s)}function Au(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 Tu(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function ii(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),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function Fu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ii(e,t);const i={src:_e(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Pu(e,t){const n={src:_e(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 zu(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 Du(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return ii(e,t);const i={href:_e(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function vu(e,t){const n={href:_e(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 Lu(e,t,n){const r=e.all(t),i=n?Mu(n):li(t),o={},l=[];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:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
|
||
|
|
`}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&l.push({type:"text",value:`
|
||
|
|
`});const s={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,s),e.applyData(t,s)}function Mu(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=li(n[r])}return t}function li(e){const t=e.spread;return t??e.children.length>1}function _u(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function Ou(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Nu(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Ru(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Bu(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=Gt(t.children[1]),u=Rr(t.children[t.children.length-1]);a&&u&&(l.position={start:a,end:u}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function ju(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,a=l?l.length:t.children.length;let u=-1;const s=[];for(;++u<a;){const c=t.children[u],p={},h=l?l[u]:void 0;h&&(p.align=h);let m={type:"element",tagName:o,properties:p,children:[]};c&&(m.children=e.all(c),e.patch(c,m),m=e.applyData(c,m)),s.push(m)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,f),e.applyData(t,f)}function $u(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const qn=9,Un=32;function Hu(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Vn(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Vn(t.slice(i),i>0,!1)),o.join("")}function Vn(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===qn||o===Un;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===qn||o===Un;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function qu(e,t){const n={type:"text",value:Hu(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Uu(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Vu={blockquote:bu,break:wu,code:Su,delete:Cu,emphasis:Eu,footnoteReference:Iu,heading:Au,html:Tu,imageReference:Fu,image:Pu,inlineCode:zu,linkReference:Du,link:vu,listItem:Lu,list:_u,paragraph:Ou,root:Nu,strong:Ru,table:Bu,tableCell:$u,tableRow:ju,text:qu,thematicBreak:Uu,toml:Je,yaml:Je,definition:Je,footnoteDefinition:Je};function Je(){}const oi=-1,mt=0,qe=1,ot=2,tn=3,nn=4,rn=5,ln=6,ai=7,ui=8,Wn=typeof self=="object"?self:globalThis,Wu=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case mt:case oi:return n(l,i);case qe:{const a=n([],i);for(const u of l)a.push(r(u));return a}case ot:{const a=n({},i);for(const[u,s]of l)a[r(u)]=r(s);return a}case tn:return n(new Date(l),i);case nn:{const{source:a,flags:u}=l;return n(new RegExp(a,u),i)}case rn:{const a=n(new Map,i);for(const[u,s]of l)a.set(r(u),r(s));return a}case ln:{const a=n(new Set,i);for(const u of l)a.add(r(u));return a}case ai:{const{name:a,message:u}=l;return n(new Wn[a](u),i)}case ui:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return n(new DataView(a),l)}}return n(new Wn[o](l),i)};return r},Yn=e=>W
|
||
|
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
||
|
|
`}]}}const Xe=function(e){if(e==null)return ns;if(typeof e=="function")return gt(e);if(typeof e=="object")return Array.isArray(e)?Zu(e):es(e);if(typeof e=="string")return ts(e);throw new Error("Expected function, string, or object as test")};function Zu(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Xe(e[n]);return gt(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function es(e){const t=e;return gt(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function ts(e){return gt(t);function t(n){return n&&n.type===e}}function gt(e){return t;function t(n,r,i){return!!(rs(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function ns(){return!0}function rs(e){return e!==null&&typeof e=="object"&&"type"in e}const si=[],is=!0,Bt=!1,ci="skip";function on(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=Xe(i),l=r?-1:1;a(e,void 0,[])();function a(u,s,f){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(u.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=si,m,y,C;if((!t||o(u,s,f[f.length-1]||void 0))&&(h=ls(n(u,f)),h[0]===Bt))return h;if("children"in u&&u.children){const x=u;if(x.children&&h[0]!==ci)for(y=(r?x.children.length:-1)+l,C=f.concat(x);y>-1&&y<x.children.length;){const b=x.children[y];if(m=a(b,y,C)(),m[0]===Bt)return m;y=typeof m[1]=="number"?m[1]:y+l}}return h}}}function ls(e){return Array.isArray(e)?e:typeof e=="number"?[is,e]:e==null?si:[e]}function an(e,t,n,r){let i,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,i=n):(o=t,l=n,i=r),on(e,o,a,i);function a(u,s){const f=s[s.length-1],c=f?f.children.indexOf(u):void 0;return l(u,c,f)}}const jt={}.hasOwnProperty,os={};function as(e,t){const n=t||os,r=new Map,i=new Map,o=new Map,l={...Vu,...n.handlers},a={all:s,applyData:ss,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:u,options:n,patch:us,wrap:fs};return an(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),a;function u(f,c){const p=f.type,h=a.handlers[p];if(jt.call(a.handlers,p)&&h)return h(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in f){const{children:y,...C}=f,x=at(C);return x.children=a.all(f),x}return at(f)}return(a.options.unknownHandler||cs)(a,f,c)}function s(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const m=a.one(p[h],f);if(m){if(h&&p[h-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=Xn(m.value)),!Array.isArray(m)&&m.type==="element")){const y=m.children[0];y&&y.type==="text"&&(y.value=Xn(y.value))}Array.isArray(m)?c.push(...m):c.push(m)}}}return c}}function us(e,t){e.position&&(t.position=Ql(e))}function ss(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,at(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function cs(e,t){const n=t.data||{},r="value"in t&&!(jt.call(n,"hProperties")||jt.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function fs(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
||
|
|
`});++r<e.length;)r&&n.push({type:"text",value:`
|
||
|
|
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
||
|
|
`}),n}function Xn(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Qn(e,t){const n=as(e,t),r=n.one(e,void 0),i=Ju(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
|
||
|
|
`},i),o}function hs(e,t){return e&&"run"in e?async function(n,r){const i=Qn(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Qn(n,{file:r,...e||t})}}function Kn(e){if(e)throw e}var rt=Object.prototype.hasOwnProperty,fi=Object.prototype.toString,Jn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,er=function(t){return typeof Array.isArray=="function"?Array.isArray(t):fi.call(t)==="[object Array]"},tr=function(t){if(!t||fi.call(t)!=="[object Object]")return!1;var n=rt.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&rt.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||rt.call(t,i)},nr=function(t,n){Jn&&n.name==="__proto__"?Jn(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},rr=function(t,n){if(n==="__proto__")if(rt.call(t,n)){if(Zn)return Zn(t,n).value}else return;return t[n]},ps=function e(){var t,n,r,i,o,l,a=arguments[0],u=1,s=arguments.length,f=!1;for(typeof a=="boolean"&&(f=a,a=arguments[1]||{},u=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});u<s;++u)if(t=arguments[u],t!=null)for(n in t)r=rr(a,n),i=rr(t,n),a!==i&&(f&&i&&(tr(i)||(o=er(i)))?(o?(o=!1,l=r&&er(r)?r:[]):l=r&&tr(r)?r:{},nr(a,{name:n,newValue:e(f,l,i)})):typeof i<"u"&&nr(a,{name:n,newValue:i}));return a};const wt=Ar(ps);function $t(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ms(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(u,...s){const f=e[++o];let c=-1;if(u){l(u);return}for(;++c<i.length;)(s[c]===null||s[c]===void 0)&&(s[c]=i[c]);i=s,f?gs(f,a)(...s):l(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function gs(e,t){let n;return r;function r(...l){const a=e.length>l.length;let u;a&&l.push(i);try{u=e.apply(this,l)}catch(s){const f=s;if(a&&n)throw f;return i(f)}a||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(l,...a){n||(n=!0,t(l,...a))}function o(l){i(null,l)}}const ce={basename:ds,dirname:ys,extname:xs,join:ks,sep:"/"};function ds(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Qe(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function ys(e){if(Qe(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 xs(e){Qe(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function ks(...e){let t=-1,n;for(;++t<e.length;)Qe(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":bs(n)}function bs(e){Qe(e);const t=e.codePointAt(0)===47;let n=ws(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function ws(e,t){let n="",r=0,i=-1,o=0,l=-1,a,u;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i
|
||
|
|
`.repeat(s)||" "),s=-1,u.push(f))}return u.join("")}function yi(e,t,n){return e.type==="element"?sc(e,t,n):e.type==="text"?n.whitespace==="normal"?xi(e,n):cc(e):[]}function sc(e,t,n){const r=ki(e,n),i=e.children||[];let o=-1,l=[];if(ac(e))return l;let a,u;for(Ut(e)||dr(e)&&hr(t,e,dr)?u=`
|
||
|
|
`:oc(e)?(a=2,u=2):di(e)&&(a=1,u=1);++o<i.length;)l=l.concat(yi(i[o],e,{whitespace:r,breakBefore:o?void 0:a,breakAfter:o<i.length-1?Ut(i[o+1]):u}));return gr(e)&&hr(t,e,gr)&&l.push(" "),a&&l.unshift(a),u&&l.push(u),l}function xi(e,t){const n=String(e.value),r=[],i=[];let o=0;for(;o<=n.length;){pr.lastIndex=o;const u=pr.exec(n),s=u&&"index"in u?u.index:n.length;r.push(fc(n.slice(o,s).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),o===0?t.breakBefore:!0,s===n.length?t.breakAfter:!0)),o=s+1}let l=-1,a;for(;++l<r.length;)r[l].charCodeAt(r[l].length-1)===8203||l<r.length-1&&r[l+1].charCodeAt(0)===8203?(i.push(r[l]),a=void 0):r[l]?(typeof a=="number"&&i.push(a),i.push(r[l]),a=0):(l===0||l===r.length-1)&&i.push(0);return i}function cc(e){return[String(e.value)]}function fc(e,t,n){const r=[];let i=0,o;for(;i<e.length;){mr.lastIndex=i;const l=mr.exec(e);o=l?l.index:e.length,!i&&!o&&l&&!t&&r.push(""),i!==o&&r.push(e.slice(i,o)),i=l?o+l[0].length:o}return i!==o&&!n&&r.push(""),r.join(" ")}function ki(e,t){if(e.type==="element"){const n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}function hc(e){return!!(e.properties||{}).hidden}function pc(e){return e.tagName==="td"||e.tagName==="th"}function mc(e){return e.tagName==="dialog"&&!(e.properties||{}).open}const gc={},dc=[];function jh(e){const t=e||gc;return function(n,r){on(n,"element",function(i,o){const l=Array.isArray(i.properties.className)?i.properties.className:dc,a=l.includes("language-math"),u=l.includes("math-display"),s=l.includes("math-inline");let f=u;if(!a&&!u&&!s)return;let c=o[o.length-1],p=i;if(i.tagName==="code"&&a&&c&&c.type==="element"&&c.tagName==="pre"&&(p=c,c=o[o.length-2],f=!0),!c)return;const h=uc(p,{whitespace:"pre"});let m;try{m=xn.renderToString(h,{...t,displayMode:f,throwOnError:!0})}catch(C){const x=C,b=x.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...o,i],cause:x,place:i.position,ruleId:b,source:"rehype-katex"});try{m=xn.renderToString(h,{...t,displayMode:f,strict:"ignore",throwOnError:!1})}catch{m=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(C)},children:[{type:"text",value:h}]}]}}typeof m=="string"&&(m=ec(m).children);const y=c.children.indexOf(p);return c.children.splice(y,1,...m),ci})}}function yc(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function bi(e,t,n){const i=Xe((n||{}).ignore||[]),o=xc(t);let l=-1;for(;++l<o.length;)on(e,"text",a);function a(s,f){let c=-1,p;for(;++c<f.length;){const h=f[c],m=p?p.children:void 0;if(i(h,m?m.indexOf(h):void 0,p))return;p=h}if(p)return u(s,f)}function u(s,f){const c=f[f.length-1],p=o[l][0],h=o[l][1];let m=0;const C=c.children.indexOf(s);let x=!1,b=[];p.lastIndex=0;let I=p.exec(s.value);for(;I;){const D=I.index,v={index:I.index,input:I.input,stack:[...f,s]};let S=h(...I,v);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?p.lastIndex=D+1:(m!==D&&b.push({type:"text",value:s.value.slice(m,D)}),Array.isArray(S)?b.push(...S):S&&b.push(S),m=D+I[0].length,x=!0),!p.global)break;I=p.exec(s.value)}return x?(m<s.value.length&&b.push({type:"text",value:s.value.slice(m)}),c.children.splice(C,1,...b)):b=[s],C+b.length}}function xc(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([kc(i[0]),bc(i[1])])}return t}function kc(e){return typeof e=="string"?new RegExp(yc(e),"g"):e}function bc(e){return typeof e=="function"?e:function(){return e}}function wc(e){bi(e,[/\r?\n|\r/g,Sc])}function Sc(){return{type:"break"}}function $h(){return function(e){wc(e)}}function yr(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expect
|
||
|
|
`:" ")+o.indentLines(o.containerFlow(r,a.current()),t?Ci:Wc))),s(),u}}function Wc(e,t,n){return t===0?e:Ci(e,t,n)}function Ci(e,t,n){return(n?"":" ")+e}const Yc=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Ei.peek=Jc;function Gc(){return{canContainEols:["delete"],enter:{strikethrough:Qc},exit:{strikethrough:Kc}}}function Xc(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Yc}],handlers:{delete:Ei}}}function Qc(e){this.enter({type:"delete",children:[]},e)}function Kc(e){this.exit(e)}function Ei(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function Jc(){return"~"}function Zc(e){return e.length}function ef(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Zc,o=[],l=[],a=[],u=[];let s=0,f=-1;for(;++f<e.length;){const y=[],C=[];let x=-1;for(e[f].length>s&&(s=e[f].length);++x<e[f].length;){const b=tf(e[f][x]);if(n.alignDelimiters!==!1){const I=i(b);C[x]=I,(u[x]===void 0||I>u[x])&&(u[x]=I)}y.push(b)}l[f]=y,a[f]=C}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<s;)o[c]=xr(r[c]);else{const y=xr(r);for(;++c<s;)o[c]=y}c=-1;const p=[],h=[];for(;++c<s;){const y=o[c];let C="",x="";y===99?(C=":",x=":"):y===108?C=":":y===114&&(x=":");let b=n.alignDelimiters===!1?1:Math.max(1,u[c]-C.length-x.length);const I=C+"-".repeat(b)+x;n.alignDelimiters!==!1&&(b=C.length+b+x.length,b>u[c]&&(u[c]=b),h[c]=b),p[c]=I}l.splice(1,0,p),a.splice(1,0,h),f=-1;const m=[];for(;++f<l.length;){const y=l[f],C=a[f];c=-1;const x=[];for(;++c<s;){const b=y[c]||"";let I="",D="";if(n.alignDelimiters!==!1){const v=u[c]-(C[c]||0),S=o[c];S===114?I=" ".repeat(v):S===99?v%2?(I=" ".repeat(v/2+.5),D=" ".repeat(v/2-.5)):(I=" ".repeat(v/2),D=I):D=" ".repeat(v)}n.delimiterStart!==!1&&!c&&x.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&b==="")&&(n.delimiterStart!==!1||c)&&x.push(" "),n.alignDelimiters!==!1&&x.push(I),x.push(b),n.alignDelimiters!==!1&&x.push(D),n.padding!==!1&&x.push(" "),(n.delimiterEnd!==!1||c!==s-1)&&x.push("|")}m.push(n.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return m.join(`
|
||
|
|
`)}function tf(e){return e==null?"":String(e)}function xr(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function nf(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),rf);return i(),l}function rf(e,t,n){return">"+(n?"":" ")+e}function lf(e,t){return kr(e,t.inConstruct,!0)&&!kr(e,t.notInConstruct,!1)}function kr(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function br(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
||
|
|
`&&lf(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
||
|
|
`}function Ii(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+t.length,r=n.indexOf(t,i);return l}function of(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 af(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 uf(e,t,n,r){const i=af(n),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(of(e,n)){const c=n.enter("codeIndented"),p=n.indentLines(o,sf);return c(),p}const a=n.createTracker(r),u=i.repeat(Math.max(Ii(o,i)+1,3)),s=n.enter("codeFenced");let f=a.move(u);if(e.lang){const c=n.enter(`codeFencedLang${l}`);f+=a.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${l}`);f+=a.move(" "),f+=a.move(n.safe(e.meta,{before:f,after:`
|
||
|
|
`,encode:["`"],...a.current()})),c()}return f+=a.move(`
|
||
|
|
`),o&&(f+=a.move(o+`
|
||
|
|
`)),f+=a.move(u),s(),f}function sf(e,t,n){return(n?"":" ")+e}function cn(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 cf(e,t,n,r){const i=cn(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let a=n.enter("label");const u=n.createTracker(r);let s=u.move("[");return s+=u.move(n.safe(n.associationId(e),{before:s,after:"]",...u.current()})),s+=u.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(n.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=n.enter("destinationRaw"),s+=u.move(n.safe(e.url,{before:s,after:e.title?" ":`
|
||
|
|
`,...u.current()}))),a(),e.title&&(a=n.enter(`title${o}`),s+=u.move(" "+i),s+=u.move(n.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),l(),s}function ff(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 We(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ut(e,t,n){const r=Le(e),i=Le(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=hf;function Ai(e,t,n,r){const i=ff(n),o=n.enter("emphasis"),l=n.createTracker(r),a=l.move(i);let u=l.move(n.containerPhrasing(e,{after:i,before:a,...l.current()}));const s=u.charCodeAt(0),f=ut(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(u=We(s)+u.slice(1));const c=u.charCodeAt(u.length-1),p=ut(r.after.charCodeAt(0),c,i);p.inside&&(u=u.slice(0,-1)+We(c));const h=l.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+h}function hf(e,t,n){return n.options.emphasis||"*"}function pf(e,t){let n=!1;return an(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Bt}),!!((!e.depth||e.depth<3)&&Jt(e)&&(t.options.setext||n))}function mf(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(pf(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:`
|
||
|
|
`,after:`
|
||
|
|
`});return c(),f(),p+`
|
||
|
|
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
||
|
|
`))+1))}const l="#".repeat(i),a=n.enter("headingAtx"),u=n.enter("phrasing");o.move(l+" ");let s=n.containerPhrasing(e,{before:"# ",after:`
|
||
|
|
`,...o.current()});return/^[\t ]/.test(s)&&(s=We(s.charCodeAt(0))+s.slice(1)),s=s?l+" "+s:l,n.options.closeAtx&&(s+=" "+l),u(),a(),s}Ti.peek=gf;function Ti(e){return e.value||""}function gf(){return"<"}Fi.peek=df;function Fi(e,t,n,r){const i=cn(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let a=n.enter("label");const u=n.createTracker(r);let s=u.move("![");return s+=u.move(n.safe(e.alt,{before:s,after:"]",...u.current()})),s+=u.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(n.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=n.enter("destinationRaw"),s+=u.move(n.safe(e.url,{before:s,after:e.title?" ":")",...u.current()}))),a(),e.title&&(a=n.enter(`title${o}`),s+=u.move(" "+i),s+=u.move(n.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),s+=u.move(")"),l(),s}function df(){return"!"}Pi.peek=yf;function Pi(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const a=n.createTracker(r);let u=a.move("![");const s=n.safe(e.alt,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:u,after:"]",...a.current()});return l(),n.stack=f,o(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function yf(){return"!"}zi.peek=xf;function zi(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const l=n.unsafe[o],a=n.compilePattern(l);let u;if(l.atBreak)for(;u=a.exec(r);){let s=u.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(u.index+1)}}return i+r+i}function xf(){return"`"}function Di(e,t){const n=Jt(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}vi.peek=kf;function vi(e,t,n,r){const i=cn(n),o=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let a,u;if(Di(e,n)){const f=n.stack;n.stack=[],a=n.enter("autolink");let c=l.move("<");return c+=l.move(n.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),a(),n.stack=f,c}a=n.enter("link"),u=n.enter("label");let s=l.move("[");return s+=l.move(n.containerPhrasing(e,{before:s,after:"](",...l.current()})),s+=l.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),s+=l.move("<"),s+=l.move(n.safe(e.url,{before:s,after:">",...l.current()})),s+=l.move(">")):(u=n.enter("destinationRaw"),s+=l.move(n.safe(e.url,{before:s,after:e.title?" ":")",...l.current()}))),u(),e.title&&(u=n.enter(`title${o}`),s+=l.move(" "+i),s+=l.move(n.safe(e.title,{before:s,after:i,...l.current()})),s+=l.move(i),u()),s+=l.move(")"),a(),s}function kf(e,t,n){return Di(e,n)?"<":"["}Li.peek=bf;function Li(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const a=n.createTracker(r);let u=a.move("[");const s=n.containerPhrasing(e,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:u,after:"]",...a.current()});return l(),n.stack=f,o(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function bf(){return"["}function fn(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 wf(e){const t=fn(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 Sf(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")thro
|
||
|
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:u,tableRow:a}};function l(h,m,y,C){return s(f(h,y,C),h.align)}function a(h,m,y,C){const x=c(h,y,C),b=s([x]);return b.slice(0,b.indexOf(`
|
||
|
|
`))}function u(h,m,y,C){const x=y.enter("tableCell"),b=y.enter("phrasing"),I=y.containerPhrasing(h,{...C,before:o,after:o});return b(),x(),I}function s(h,m){return ef(h,{align:m,alignDelimiters:r,padding:n,stringLength:i})}function f(h,m,y){const C=h.children;let x=-1;const b=[],I=m.enter("table");for(;++x<C.length;)b[x]=c(C[x],m,y);return I(),b}function c(h,m,y){const C=h.children;let x=-1;const b=[],I=m.enter("tableRow");for(;++x<C.length;)b[x]=u(C[x],h,m,y);return I(),b}function p(h,m,y){let C=Oi.inlineCode(h,m,y);return y.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function $f(){return{exit:{taskListCheckValueChecked:Sr,taskListCheckValueUnchecked:Sr,paragraph:qf}}}function Hf(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Uf}}}function Sr(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function qf(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Uf(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(l);let u=Oi.listItem(e,t,n,{...r,...a.current()});return o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),u;function s(f){return f+l}}function Vf(){return[Cc(),Uc(),Gc(),Mf(),$f()]}function Wf(e){return{extensions:[Ec(),Vc(e),Xc(),jf(e),Hf()]}}const Yf={tokenize:Zf,partial:!0},Ni={tokenize:eh,partial:!0},Ri={tokenize:th,partial:!0},Bi={tokenize:nh,partial:!0},Gf={tokenize:rh,partial:!0},ji={name:"wwwAutolink",tokenize:Kf,previous:Hi},$i={name:"protocolAutolink",tokenize:Jf,previous:qi},de={name:"emailAutolink",tokenize:Qf,previous:Ui},fe={};function Xf(){return{text:fe}}let Se=48;for(;Se<123;)fe[Se]=de,Se++,Se===58?Se=65:Se===91&&(Se=97);fe[43]=de;fe[45]=de;fe[46]=de;fe[95]=de;fe[72]=[de,$i];fe[104]=[de,$i];fe[87]=[de,ji];fe[119]=[de,ji];function Qf(e,t,n){const r=this;let i,o;return l;function l(c){return!Vt(c)||!Ui.call(r,r.previous)||hn(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Vt(c)?(e.consume(c),a):c===64?(e.consume(c),u):n(c)}function u(c){return c===46?e.check(Gf,f,s)(c):c===45||c===95||Q(c)?(o=!0,e.consume(c),u):f(c)}function s(c){return e.consume(c),i=!0,u}function f(c){return o&&i&&J(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function Kf(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!Hi.call(r,r.previous)||hn(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Yf,e.attempt(Ni,e.attempt(Ri,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function Jf(e,t,n){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&qi.call(r,r.previous)&&!hn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if(J(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),u}return n(c)}function u(c){return c===47?(e.consume(c),o?s:(o=!0,u)):n(c)}function s(c){return c===null||lt(c)||q(c)||Ee(c)||ht(c)?n(c):e.attempt(Ni,e.attempt(Ri,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function Zf(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function eh(e,t,n){let r,i,o;return l;function l(s){return s===46||s===95
|
||
|
|
`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:n,inlineMath:r}};function n(o,l,a,u){const s=o.value||"",f=a.createTracker(u),c="$".repeat(Math.max(Ii(s,"$")+1,2)),p=a.enter("mathFlow");let h=f.move(c);if(o.meta){const m=a.enter("mathFlowMeta");h+=f.move(a.safe(o.meta,{after:`
|
||
|
|
`,before:h,encode:["$"],...f.current()})),m()}return h+=f.move(`
|
||
|
|
`),s&&(h+=f.move(s+`
|
||
|
|
`)),h+=f.move(c),p(),h}function r(o,l,a){let u=o.value||"",s=1;for(t||s++;new RegExp("(^|[^$])"+"\\$".repeat(s)+"([^$]|$)").test(u);)s++;const f="$".repeat(s);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let c=-1;for(;++c<a.unsafe.length;){const p=a.unsafe[c];if(!p.atBreak)continue;const h=a.compilePattern(p);let m;for(;m=h.exec(u);){let y=m.index;u.codePointAt(y)===10&&u.codePointAt(y-1)===13&&y--,u=u.slice(0,y)+" "+u.slice(m.index+1)}}return f+u+f}function i(){return"$"}}const Fh={tokenize:Ph,concrete:!0,name:"mathFlow"},Er={tokenize:zh,partial:!0};function Ph(e,t,n){const r=this,i=r.events[r.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let l=0;return a;function a(b){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),u(b)}function u(b){return b===36?(e.consume(b),l++,u):l<2?n(b):(e.exit("mathFlowFenceSequence"),_(e,s,"whitespace")(b))}function s(b){return b===null||T(b)?c(b):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(b))}function f(b){return b===null||T(b)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),c(b)):b===36?n(b):(e.consume(b),f)}function c(b){return e.exit("mathFlowFence"),r.interrupt?t(b):e.attempt(Er,p,C)(b)}function p(b){return e.attempt({tokenize:x,partial:!0},C,h)(b)}function h(b){return(o?_(e,m,"linePrefix",o+1):m)(b)}function m(b){return b===null?C(b):T(b)?e.attempt(Er,p,C)(b):(e.enter("mathFlowValue"),y(b))}function y(b){return b===null||T(b)?(e.exit("mathFlowValue"),m(b)):(e.consume(b),y)}function C(b){return e.exit("mathFlow"),t(b)}function x(b,I,D){let v=0;return _(b,S,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function S(L){return b.enter("mathFlowFence"),b.enter("mathFlowFenceSequence"),N(L)}function N(L){return L===36?(v++,b.consume(L),N):v<l?D(L):(b.exit("mathFlowFenceSequence"),_(b,j,"whitespace")(L))}function j(L){return L===null||T(L)?(b.exit("mathFlowFence"),I(L)):D(L)}}}function zh(e,t,n){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function Dh(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:r,resolve:vh,previous:Lh,name:"mathText"};function r(i,o,l){let a=0,u,s;return f;function f(y){return i.enter("mathText"),i.enter("mathTextSequence"),c(y)}function c(y){return y===36?(i.consume(y),a++,c):a<2&&!n?l(y):(i.exit("mathTextSequence"),p(y))}function p(y){return y===null?l(y):y===36?(s=i.enter("mathTextSequence"),u=0,m(y)):y===32?(i.enter("space"),i.consume(y),i.exit("space"),p):T(y)?(i.enter("lineEnding"),i.consume(y),i.exit("lineEnding"),p):(i.enter("mathTextData"),h(y))}function h(y){return y===null||y===32||y===36||T(y)?(i.exit("mathTextData"),p(y)):(i.consume(y),h)}function m(y){return y===36?(i.consume(y),u++,m):u===a?(i.exit("mathTextSequence"),i.exit("mathText"),o(y)):(s.type="mathTextData",h(y))}}}function vh(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<t;)if(e[r][1].type==="mathTextData"){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="mathTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Lh(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Mh(e){return{flow:{36:Fh},text:{36:Dh(e)}}}const _h={};function qh(e){const t=this,n=e||_h,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Mh(n)),o.push(Ah()),l.push(Th(n))}var Uh=Oh,Ir=/[#.]/g;function Oh(e,t){for(var n=e||"",r=t||"div",i={},o=0,l,a,u;o<n.length;)Ir.lastIndex=o,u=Ir.exec(n),l=n.slice(o,u?u.i
|