@av-pi-studio/web-client 0.0.78 → 0.0.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/web/assets/BinaryFallbackViewer-DndVWlE2.js +1 -0
  2. package/dist/web/assets/{ChatPanel-nMQxDizO.js → ChatPanel-aLqk6dHz.js} +1 -1
  3. package/dist/web/assets/CodeView-CiS2sFmL.js +1 -0
  4. package/dist/web/assets/{DiffView-Cb0GznJJ.js → DiffView-T-iuJ8Yk.js} +1 -1
  5. package/dist/web/assets/FilePanel-4ItigEY2.js +1 -0
  6. package/dist/web/assets/ImageViewer-K__5CJOI.js +1 -0
  7. package/dist/web/assets/{MarkdownFileViewer-COjMdLV8.js → MarkdownFileViewer-OD-3Ijl2.js} +1 -1
  8. package/dist/web/assets/MoleculeViewerPanel-BzchET8I.js +1 -0
  9. package/dist/web/assets/TerminalPanel-BRDe18PS.js +1 -0
  10. package/dist/web/assets/TextViewer-hUEyNBFc.js +1 -0
  11. package/dist/web/assets/VideoViewer-BIrwIYAa.js +1 -0
  12. package/dist/web/assets/index-cV-KrlNo.js +17 -0
  13. package/dist/web/assets/markdown-BhPuAwG5.js +5 -0
  14. package/dist/web/assets/{use-file-download-BaKbS_8L.js → use-file-download-lPWoA8MP.js} +1 -1
  15. package/dist/web/assets/{use-file-watch-By-ygYz2.js → use-file-watch-BeHuJ0hK.js} +1 -1
  16. package/dist/web/assets/{vendor-DD95eKEn.js → vendor-CKGvrx4M.js} +429 -685
  17. package/dist/web/assets/{vendor-highlight-C04AfhWw.js → vendor-highlight-Bp4AESDQ.js} +4 -4
  18. package/dist/web/assets/vendor-markdown-B1tcb-dp.js +297 -0
  19. package/dist/web/assets/{vendor-overlays-tAYh_S_2.js → vendor-overlays-DWX2bju9.js} +1 -1
  20. package/dist/web/index.html +3 -5
  21. package/package.json +3 -3
  22. package/dist/web/assets/BinaryFallbackViewer-CLm3MS37.js +0 -1
  23. package/dist/web/assets/CodeView-hS4J9mWM.js +0 -1
  24. package/dist/web/assets/FilePanel-CDwwXYuy.js +0 -1
  25. package/dist/web/assets/ImageViewer-D2C8RXX6.js +0 -1
  26. package/dist/web/assets/MoleculeViewerPanel-eUALylsV.js +0 -1
  27. package/dist/web/assets/TerminalPanel-Dgun-9Up.js +0 -1
  28. package/dist/web/assets/TextViewer-D8gYLFiv.js +0 -1
  29. package/dist/web/assets/VideoViewer-BXvgwbpY.js +0 -1
  30. package/dist/web/assets/index-BuQMr4ET.js +0 -17
  31. package/dist/web/assets/markdown-BtIwOttf.js +0 -5
  32. package/dist/web/assets/vendor-markdown-AFaXf7Ur.js +0 -41
@@ -1,41 +0,0 @@
1
- import{s as Ie,a as bt,o as Q,n as $t,V as Tn,f as wt,b as Nn,c as zn,d as Wr,e as Ct,t as Qr,g as He,i as Gr,j as Ke,k as qt,l as ft,m as Pn,u as Yr,p as Ze,q as Ht,r as Vt,v as Ut,w as Xe,x as Jr,y as Ve,z as Dn,A as Kr,B as Se,C as Zr,D as Xr}from"./vendor-DD95eKEn.js";import{j as et}from"./vendor-react-DQUAl2K8.js";const ei=/[ \t\n\f\r]/g;function Qe(e){return typeof e=="object"?e.type==="text"?Wt(e.value):!1:Wt(e)}function Wt(e){return e.replace(ei,"")===""}const ti={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ln=_n("end"),St=_n("start");function _n(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function ni(e){const n=St(e),t=Ln(e);if(n&&t)return{start:n,end:t}}function $e(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Qt(e.position):"start"in e||"end"in e?Qt(e):"line"in e||"column"in e?ht(e):""}function ht(e){return Gt(e&&e.line)+":"+Gt(e&&e.column)}function Qt(e){return ht(e&&e.start)+"-"+ht(e&&e.end)}function Gt(e){return e&&typeof e=="number"?e:1}const Et={}.hasOwnProperty,ri=new Map,ii=/[A-Z]/g,li=new Set(["table","tbody","thead","tfoot","tr"]),ai=new Set(["td","th"]),Mn="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function oi(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=gi(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=mi(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"?Ie:bt,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},a=On(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function On(e,n,t){if(n.type==="element")return ui(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return si(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return fi(e,n,t);if(n.type==="mdxjsEsm")return ci(e,n);if(n.type==="root")return hi(e,n,t);if(n.type==="text")return pi(e,n)}function ui(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ie,e.schema=i),e.ancestors.push(n);const a=Rn(e,n.tagName,!1),l=di(e,n);let o=Ft(e,n);return li.has(n.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!Qe(u):!0})),Bn(e,l,a,n),It(l,o),e.ancestors.pop(),e.schema=r,e.create(n,a,l,t)}function si(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return Q(r.type==="ExpressionStatement"),e.evaluater.evaluateExpression(r.expression)}De(e,n.position)}function ci(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);De(e,n.position)}function fi(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Ie,e.schema=i),e.ancestors.push(n);const a=n.name===null?e.Fragment:Rn(e,n.name,!0),l=xi(e,n),o=Ft(e,n);return Bn(e,l,a,n),It(l,o),e.ancestors.pop(),e.schema=r,e.create(n,a,l,t)}function hi(e,n,t){const r={};return It(r,Ft(e,n)),e.create(n,e.Fragment,r,t)}function pi(e,n){return n.value}function Bn(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function It(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function mi(e,n,t){return r;function r(i,a,l,o){const s=Array.isArray(l.children)?t:n;return o?s(a,l,o):s(a,l)}}function gi(e,n){return t;function t(r,i,a,l){const o=Array.isArray(a.children),u=St(r);return n(i,a,l,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function di(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Et.call(n.properties,i)){const a=ki(e,i,n.properties[i]);if(a){const[l,o]=a;e.tableCellAlignToStyle&&l==="align"&&typeof o=="string"&&ai.has(n.tagName)?r=o:t[l]=o}}if(r){const a=t.style||(t.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function xi(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];Q(a.type==="ExpressionStatement");const l=a.expression;Q(l.type==="ObjectExpression");const o=l.properties[0];Q(o.type==="SpreadElement"),Object.assign(t,e.evaluater.evaluateExpression(o.argument))}else De(e,n.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];Q(o.type==="ExpressionStatement"),a=e.evaluater.evaluateExpression(o.expression)}else De(e,n.position);else a=r.value===null?!0:r.value;t[i]=a}return t}function Ft(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:ri;for(;++r<n.children.length;){const a=n.children[r];let l;if(e.passKeys){const u=a.type==="element"?a.tagName:a.type==="mdxJsxFlowElement"||a.type==="mdxJsxTextElement"?a.name:void 0;if(u){const s=i.get(u)||0;l=u+"-"+s,i.set(u,s+1)}}const o=On(e,a,l);o!==void 0&&t.push(o)}return t}function ki(e,n,t){const r=wt(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Nn(t):zn(t)),r.property==="style"){let i=typeof t=="object"?t:yi(e,String(t));return e.stylePropertyNameCase==="css"&&(i=bi(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ti[r.property]||r.property:r.attribute,t]}}function yi(e,n){try{return Wr(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new Tn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Mn+"#cannot-parse-style-attribute",i}}function Rn(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let a=-1,l;for(;++a<i.length;){const o=$t(i[a])?{type:"Identifier",name:i[a]}:{type:"Literal",value:i[a]};l=l?{type:"MemberExpression",object:l,property:o,computed:!!(a&&o.type==="Literal"),optional:!1}:o}r=l}else r=$t(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Et.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);De(e)}function De(e,n){const t=new Tn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Mn+"#cannot-handle-mdx-estrees-without-createevaluater",t}function bi(e){const n={};let t;for(t in e)Et.call(e,t)&&(n[wi(t)]=e[t]);return n}function wi(e){let n=e.replace(ii,Ci);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Ci(e){return"-"+e.toLowerCase()}const Si={};function At(e,n){const t=Si,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return vn(e,r,i)}function vn(e,n,t){if(Ei(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Yt(e.children,n,t)}return Array.isArray(e)?Yt(e,n,t):""}function Yt(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=vn(e[i],n,t);return r.join("")}function Ei(e){return!!(e&&typeof e=="object")}function Z(e,n,t,r){const i=e.length;let a=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);a<r.length;)l=r.slice(a,a+1e4),l.unshift(n,0),e.splice(...l),a+=1e4,n+=1e4}function X(e,n){return e.length>0?(Z(e,e.length,0,n),e):n}const Jt={}.hasOwnProperty;function jn(e){const n={};let t=-1;for(;++t<e.length;)Ii(n,e[t]);return n}function Ii(e,n){let t;for(t in n){const i=(Jt.call(e,t)?e[t]:void 0)||(e[t]={}),a=n[t];let l;if(a)for(l in a){Jt.call(i,l)||(i[l]=[]);const o=a[l];Fi(i[l],Array.isArray(o)?o:o?[o]:[])}}}function Fi(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);Z(e,0,0,r)}function $n(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function ie(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Y=pe(/[A-Za-z]/),G=pe(/[\dA-Za-z]/),Ai=pe(/[#-'*+\--9=?A-Z^-~]/);function Ue(e){return e!==null&&(e<32||e===127)}const pt=pe(/\d/),Ti=pe(/[\dA-Fa-f]/),Ni=pe(/[!-/:-@[-`{-~]/);function F(e){return e!==null&&e<-2}function $(e){return e!==null&&(e<0||e===32)}function D(e){return e===-2||e===-1||e===32}const Ge=pe(new RegExp("\\p{P}|\\p{S}","u")),xe=pe(/\s/);function pe(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Fe(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const a=e.charCodeAt(t);let l="";if(a===37&&G(e.charCodeAt(t+1))&&G(e.charCodeAt(t+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(l=String.fromCharCode(a));else if(a>55295&&a<57344){const o=e.charCodeAt(t+1);a<56320&&o>56319&&o<57344?(l=String.fromCharCode(a,o),i=1):l="�"}else l=String.fromCharCode(a);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function P(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return l;function l(u){return D(u)?(e.enter(t),o(u)):n(u)}function o(u){return D(u)&&a++<i?(e.consume(u),o):(e.exit(t),n(u))}}const zi={tokenize:Pi};function Pi(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),P(e,n,"linePrefix")}function i(o){return e.enter("paragraph"),a(o)}function a(o){const u=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=u),t=u,l(o)}function l(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return F(o)?(e.consume(o),e.exit("chunkText"),a):(e.consume(o),l)}}const Di={tokenize:Li},Kt={tokenize:_i};function Li(e){const n=this,t=[];let r=0,i,a,l;return o;function o(E){if(r<t.length){const L=t[r];return n.containerState=L[1],e.attempt(L[0].continuation,u,s)(E)}return s(E)}function u(E){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&C();const L=n.events.length;let O=L,b;for(;O--;)if(n.events[O][0]==="exit"&&n.events[O][1].type==="chunkFlow"){b=n.events[O][1].end;break}w(r);let _=L;for(;_<n.events.length;)n.events[_][1].end={...b},_++;return Z(n.events,O+1,0,n.events.slice(L)),n.events.length=_,s(E)}return o(E)}function s(E){if(r===t.length){if(!i)return p(E);if(i.currentConstruct&&i.currentConstruct.concrete)return d(E);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Kt,f,c)(E)}function f(E){return i&&C(),w(r),p(E)}function c(E){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,d(E)}function p(E){return n.containerState={},e.attempt(Kt,h,d)(E)}function h(E){return r++,t.push([n.currentConstruct,n.containerState]),p(E)}function d(E){if(E===null){i&&C(),w(0),e.consume(E);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:a}),y(E)}function y(E){if(E===null){I(e.exit("chunkFlow"),!0),w(0),e.consume(E);return}return F(E)?(e.consume(E),I(e.exit("chunkFlow")),r=0,n.interrupt=void 0,o):(e.consume(E),y)}function I(E,L){const O=n.sliceStream(E);if(L&&O.push(null),E.previous=a,a&&(a.next=E),a=E,i.defineSkip(E.start),i.write(O),n.parser.lazy[E.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<l&&(!i.events[b][1].end||i.events[b][1].end.offset>l))return;const _=n.events.length;let R=_,z,x;for(;R--;)if(n.events[R][0]==="exit"&&n.events[R][1].type==="chunkFlow"){if(z){x=n.events[R][1].end;break}z=!0}for(w(r),b=_;b<n.events.length;)n.events[b][1].end={...x},b++;Z(n.events,R+1,0,n.events.slice(_)),n.events.length=b}}function w(E){let L=t.length;for(;L-- >E;){const O=t[L];n.containerState=O[1],O[0].exit.call(n,e)}t.length=E}function C(){i.write([null]),a=void 0,i=void 0,n.containerState._closeFlow=void 0}}function _i(e,n,t){return P(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ee(e){if(e===null||$(e)||xe(e))return 1;if(Ge(e))return 2}function Ye(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!r.includes(a)&&(n=a(n,t),r.push(a))}return n}const mt={name:"attention",resolveAll:Mi,tokenize:Oi};function Mi(e,n){let t=-1,r,i,a,l,o,u,s,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[t][1].start};Zt(c,-u),Zt(p,u),l={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},a={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:u>1?"strong":"emphasis",start:{...l.start},end:{...o.end}},e[r][1].end={...l.start},e[t][1].start={...o.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=X(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=X(s,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",a,n]]),s=X(s,Ye(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=X(s,[["exit",a,n],["enter",o,n],["exit",o,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,s=X(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,Z(e,r-1,t-r+3,s),t=r+s.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Oi(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ee(r);let a;return l;function l(u){return a=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===a)return e.consume(u),o;const s=e.exit("attentionSequence"),f=Ee(u),c=!f||f===2&&i||t.includes(u),p=!i||i===2&&f||t.includes(r);return s._open=!!(a===42?c:c&&(i||!p)),s._close=!!(a===42?p:p&&(f||!c)),n(u)}}function Zt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Bi={name:"autolink",tokenize:Ri};function Ri(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(h){return Y(h)?(e.consume(h),l):h===64?t(h):s(h)}function l(h){return h===43||h===45||h===46||G(h)?(r=1,o(h)):s(h)}function o(h){return h===58?(e.consume(h),r=0,u):(h===43||h===45||h===46||G(h))&&r++<32?(e.consume(h),o):(r=0,s(h))}function u(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||Ue(h)?t(h):(e.consume(h),u)}function s(h){return h===64?(e.consume(h),f):Ai(h)?(e.consume(h),s):t(h)}function f(h){return G(h)?c(h):t(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):p(h)}function p(h){if((h===45||G(h))&&r++<63){const d=h===45?p:c;return e.consume(h),d}return t(h)}}const _e={partial:!0,tokenize:vi};function vi(e,n,t){return r;function r(a){return D(a)?P(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||F(a)?n(a):t(a)}}const qn={continuation:{tokenize:$i},exit:qi,name:"blockQuote",tokenize:ji};function ji(e,n,t){const r=this;return i;function i(l){if(l===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),a}return t(l)}function a(l){return D(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function $i(e,n,t){const r=this;return i;function i(l){return D(l)?P(e,a,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):a(l)}function a(l){return e.attempt(qn,n,t)(l)}}function qi(e){e.exit("blockQuote")}const Hn={name:"characterEscape",tokenize:Hi};function Hi(e,n,t){return r;function r(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return Ni(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(a)}}const Vn={name:"characterReference",tokenize:Vi};function Vi(e,n,t){const r=this;let i=0,a,l;return o;function o(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),a=31,l=G,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,l=Ti,f):(e.enter("characterReferenceValue"),a=7,l=pt,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===G&&!Ct(r.sliceSerialize(p))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(c)&&i++<a?(e.consume(c),f):t(c)}}const Xt={partial:!0,tokenize:Wi},en={concrete:!0,name:"codeFenced",tokenize:Ui};function Ui(e,n,t){const r=this,i={partial:!0,tokenize:O};let a=0,l=0,o;return u;function u(b){return s(b)}function s(b){const _=r.events[r.events.length-1];return a=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,o=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(b)}function f(b){return b===o?(l++,e.consume(b),f):l<3?t(b):(e.exit("codeFencedFenceSequence"),D(b)?P(e,c,"whitespace")(b):c(b))}function c(b){return b===null||F(b)?(e.exit("codeFencedFence"),r.interrupt?n(b):e.check(Xt,y,L)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||F(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):D(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),P(e,h,"whitespace")(b)):b===96&&b===o?t(b):(e.consume(b),p)}function h(b){return b===null||F(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===null||F(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===o?t(b):(e.consume(b),d)}function y(b){return e.attempt(i,L,I)(b)}function I(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),w}function w(b){return a>0&&D(b)?P(e,C,"linePrefix",a+1)(b):C(b)}function C(b){return b===null||F(b)?e.check(Xt,y,L)(b):(e.enter("codeFlowValue"),E(b))}function E(b){return b===null||F(b)?(e.exit("codeFlowValue"),C(b)):(e.consume(b),E)}function L(b){return e.exit("codeFenced"),n(b)}function O(b,_,R){let z=0;return x;function x(B){return b.enter("lineEnding"),b.consume(B),b.exit("lineEnding"),A}function A(B){return b.enter("codeFencedFence"),D(B)?P(b,T,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):T(B)}function T(B){return B===o?(b.enter("codeFencedFenceSequence"),v(B)):R(B)}function v(B){return B===o?(z++,b.consume(B),v):z>=l?(b.exit("codeFencedFenceSequence"),D(B)?P(b,q,"whitespace")(B):q(B)):R(B)}function q(B){return B===null||F(B)?(b.exit("codeFencedFence"),_(B)):R(B)}}}function Wi(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a)}function a(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const tt={name:"codeIndented",tokenize:Gi},Qi={partial:!0,tokenize:Yi};function Gi(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),P(e,a,"linePrefix",5)(s)}function a(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(s):t(s)}function l(s){return s===null?u(s):F(s)?e.attempt(Qi,l,u)(s):(e.enter("codeFlowValue"),o(s))}function o(s){return s===null||F(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),o)}function u(s){return e.exit("codeIndented"),n(s)}}function Yi(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):F(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):P(e,a,"linePrefix",5)(l)}function a(l){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(l):F(l)?i(l):t(l)}}const Ji={name:"codeText",previous:Zi,resolve:Ki,tokenize:Xi};function Ki(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function Zi(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Xi(e,n,t){let r=0,i,a;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),o(c)}function o(c){return c===96?(e.consume(c),r++,o):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(a=e.enter("codeTextSequence"),i=0,f(c)):F(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||F(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(a.type="codeTextData",s(c))}}class el{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&ze(this.left,r),a.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),ze(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),ze(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);ze(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);ze(this.left,t.reverse())}}}function ze(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Un(e){const n={};let t=-1,r,i,a,l,o,u,s;const f=new el(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,a=0,a<u.length&&u[a][1].type==="lineEndingBlank"&&(a+=2),a<u.length&&u[a][1].type==="content"))for(;++a<u.length&&u[a][1].type!=="content";)u[a][1].type==="chunkText"&&(u[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,tl(f,t)),t=n[t],s=!0);else if(r[1]._container){for(a=t,i=void 0;a--;)if(l=f.get(a),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=a);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},o=f.slice(i,t),o.unshift(r),f.splice(i,t-i+1,o))}}return Z(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function tl(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const a=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const o=l.events,u=[],s={};let f,c,p=-1,h=t,d=0,y=0;const I=[y];for(;h;){for(;e.get(++i)[1]!==h;);a.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=t;++p<o.length;)o[p][0]==="exit"&&o[p-1][0]==="enter"&&o[p][1].type===o[p-1][1].type&&o[p][1].start.line!==o[p][1].end.line&&(y=p+1,I.push(y),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):I.pop(),p=I.length;p--;){const w=o.slice(I[p],I[p+1]),C=a.pop();u.push([C,C+w.length-1]),e.splice(C,2,w)}for(u.reverse(),p=-1;++p<u.length;)s[d+u[p][0]]=d+u[p][1],d+=u[p][1]-u[p][0]-1;return s}const nl={resolve:il,tokenize:ll},rl={partial:!0,tokenize:al};function il(e){return Un(e),e}function ll(e,n){let t;return r;function r(o){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?a(o):F(o)?e.check(rl,l,a)(o):(e.consume(o),i)}function a(o){return e.exit("chunkContent"),e.exit("content"),n(o)}function l(o){return e.consume(o),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function al(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),P(e,a,"linePrefix")}function a(l){if(l===null||F(l))return t(l);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function Wn(e,n,t,r,i,a,l,o,u){const s=u||Number.POSITIVE_INFINITY;let f=0;return c;function c(w){return w===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(w),e.exit(a),p):w===null||w===32||w===41||Ue(w)?t(w):(e.enter(r),e.enter(l),e.enter(o),e.enter("chunkString",{contentType:"string"}),y(w))}function p(w){return w===62?(e.enter(a),e.consume(w),e.exit(a),e.exit(i),e.exit(r),n):(e.enter(o),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===62?(e.exit("chunkString"),e.exit(o),p(w)):w===null||w===60||F(w)?t(w):(e.consume(w),w===92?d:h)}function d(w){return w===60||w===62||w===92?(e.consume(w),h):h(w)}function y(w){return!f&&(w===null||w===41||$(w))?(e.exit("chunkString"),e.exit(o),e.exit(l),e.exit(r),n(w)):f<s&&w===40?(e.consume(w),f++,y):w===41?(e.consume(w),f--,y):w===null||w===32||w===40||Ue(w)?t(w):(e.consume(w),w===92?I:y)}function I(w){return w===40||w===41||w===92?(e.consume(w),y):y(w)}}function Qn(e,n,t,r,i,a){const l=this;let o=0,u;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(a),f}function f(h){return o>999||h===null||h===91||h===93&&!u||h===94&&!o&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):F(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||F(h)||o++>999?(e.exit("chunkString"),f(h)):(e.consume(h),u||(u=!D(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),o++,c):c(h)}}function Gn(e,n,t,r,i,a){let l;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,u):t(p)}function u(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(a),s(p))}function s(p){return p===l?(e.exit(a),u(l)):p===null?t(p):F(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),P(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||F(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function Pe(e,n){let t;return r;function r(i){return F(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):D(i)?P(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const ol={name:"definition",tokenize:sl},ul={partial:!0,tokenize:cl};function sl(e,n,t){const r=this;let i;return a;function a(h){return e.enter("definition"),l(h)}function l(h){return Qn.call(r,e,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function o(h){return i=ie(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):t(h)}function u(h){return $(h)?Pe(e,s)(h):s(h)}function s(h){return Wn(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(ul,c,c)(h)}function c(h){return D(h)?P(e,p,"whitespace")(h):p(h)}function p(h){return h===null||F(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function cl(e,n,t){return r;function r(o){return $(o)?Pe(e,i)(o):t(o)}function i(o){return Gn(e,a,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return D(o)?P(e,l,"whitespace")(o):l(o)}function l(o){return o===null||F(o)?n(o):t(o)}}const fl={name:"hardBreakEscape",tokenize:hl};function hl(e,n,t){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return F(a)?(e.exit("hardBreakEscape"),n(a)):t(a)}}const pl={name:"headingAtx",resolve:ml,tokenize:gl};function ml(e,n){let t=e.length-2,r=3,i,a;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},a={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},Z(e,r,t-r+1,[["enter",i,n],["enter",a,n],["exit",a,n],["exit",i,n]])),e}function gl(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),a(f)}function a(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||$(f)?(e.exit("atxHeadingSequence"),o(f)):t(f)}function o(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||F(f)?(e.exit("atxHeading"),n(f)):D(f)?P(e,o,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),o(f))}function s(f){return f===null||f===35||$(f)?(e.exit("atxHeadingText"),o(f)):(e.consume(f),s)}}const dl=["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"],tn=["pre","script","style","textarea"],xl={concrete:!0,name:"htmlFlow",resolveTo:bl,tokenize:wl},kl={partial:!0,tokenize:Sl},yl={partial:!0,tokenize:Cl};function bl(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 wl(e,n,t){const r=this;let i,a,l,o,u;return s;function s(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),p):g===47?(e.consume(g),a=!0,y):g===63?(e.consume(g),i=3,r.interrupt?n:m):Y(g)?(e.consume(g),l=String.fromCharCode(g),I):t(g)}function p(g){return g===45?(e.consume(g),i=2,h):g===91?(e.consume(g),i=5,o=0,d):Y(g)?(e.consume(g),i=4,r.interrupt?n:m):t(g)}function h(g){return g===45?(e.consume(g),r.interrupt?n:m):t(g)}function d(g){const ne="CDATA[";return g===ne.charCodeAt(o++)?(e.consume(g),o===ne.length?r.interrupt?n:T:d):t(g)}function y(g){return Y(g)?(e.consume(g),l=String.fromCharCode(g),I):t(g)}function I(g){if(g===null||g===47||g===62||$(g)){const ne=g===47,me=l.toLowerCase();return!ne&&!a&&tn.includes(me)?(i=1,r.interrupt?n(g):T(g)):dl.includes(l.toLowerCase())?(i=6,ne?(e.consume(g),w):r.interrupt?n(g):T(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(g):a?C(g):E(g))}return g===45||G(g)?(e.consume(g),l+=String.fromCharCode(g),I):t(g)}function w(g){return g===62?(e.consume(g),r.interrupt?n:T):t(g)}function C(g){return D(g)?(e.consume(g),C):x(g)}function E(g){return g===47?(e.consume(g),x):g===58||g===95||Y(g)?(e.consume(g),L):D(g)?(e.consume(g),E):x(g)}function L(g){return g===45||g===46||g===58||g===95||G(g)?(e.consume(g),L):O(g)}function O(g){return g===61?(e.consume(g),b):D(g)?(e.consume(g),O):E(g)}function b(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),u=g,_):D(g)?(e.consume(g),b):R(g)}function _(g){return g===u?(e.consume(g),u=null,z):g===null||F(g)?t(g):(e.consume(g),_)}function R(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||$(g)?O(g):(e.consume(g),R)}function z(g){return g===47||g===62||D(g)?E(g):t(g)}function x(g){return g===62?(e.consume(g),A):t(g)}function A(g){return g===null||F(g)?T(g):D(g)?(e.consume(g),A):t(g)}function T(g){return g===45&&i===2?(e.consume(g),W):g===60&&i===1?(e.consume(g),V):g===62&&i===4?(e.consume(g),te):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),ae):F(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(kl,oe,v)(g)):g===null||F(g)?(e.exit("htmlFlowData"),v(g)):(e.consume(g),T)}function v(g){return e.check(yl,q,oe)(g)}function q(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),B}function B(g){return g===null||F(g)?v(g):(e.enter("htmlFlowData"),T(g))}function W(g){return g===45?(e.consume(g),m):T(g)}function V(g){return g===47?(e.consume(g),l="",ee):T(g)}function ee(g){if(g===62){const ne=l.toLowerCase();return tn.includes(ne)?(e.consume(g),te):T(g)}return Y(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),ee):T(g)}function ae(g){return g===93?(e.consume(g),m):T(g)}function m(g){return g===62?(e.consume(g),te):g===45&&i===2?(e.consume(g),m):T(g)}function te(g){return g===null||F(g)?(e.exit("htmlFlowData"),oe(g)):(e.consume(g),te)}function oe(g){return e.exit("htmlFlow"),n(g)}}function Cl(e,n,t){const r=this;return i;function i(l){return F(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a):t(l)}function a(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function Sl(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(_e,n,t)}}const El={name:"htmlText",tokenize:Il};function Il(e,n,t){const r=this;let i,a,l;return o;function o(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),u}function u(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),O):m===63?(e.consume(m),E):Y(m)?(e.consume(m),R):t(m)}function s(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),a=0,d):Y(m)?(e.consume(m),C):t(m)}function f(m){return m===45?(e.consume(m),h):t(m)}function c(m){return m===null?t(m):m===45?(e.consume(m),p):F(m)?(l=c,V(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?W(m):m===45?p(m):c(m)}function d(m){const te="CDATA[";return m===te.charCodeAt(a++)?(e.consume(m),a===te.length?y:d):t(m)}function y(m){return m===null?t(m):m===93?(e.consume(m),I):F(m)?(l=y,V(m)):(e.consume(m),y)}function I(m){return m===93?(e.consume(m),w):y(m)}function w(m){return m===62?W(m):m===93?(e.consume(m),w):y(m)}function C(m){return m===null||m===62?W(m):F(m)?(l=C,V(m)):(e.consume(m),C)}function E(m){return m===null?t(m):m===63?(e.consume(m),L):F(m)?(l=E,V(m)):(e.consume(m),E)}function L(m){return m===62?W(m):E(m)}function O(m){return Y(m)?(e.consume(m),b):t(m)}function b(m){return m===45||G(m)?(e.consume(m),b):_(m)}function _(m){return F(m)?(l=_,V(m)):D(m)?(e.consume(m),_):W(m)}function R(m){return m===45||G(m)?(e.consume(m),R):m===47||m===62||$(m)?z(m):t(m)}function z(m){return m===47?(e.consume(m),W):m===58||m===95||Y(m)?(e.consume(m),x):F(m)?(l=z,V(m)):D(m)?(e.consume(m),z):W(m)}function x(m){return m===45||m===46||m===58||m===95||G(m)?(e.consume(m),x):A(m)}function A(m){return m===61?(e.consume(m),T):F(m)?(l=A,V(m)):D(m)?(e.consume(m),A):z(m)}function T(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,v):F(m)?(l=T,V(m)):D(m)?(e.consume(m),T):(e.consume(m),q)}function v(m){return m===i?(e.consume(m),i=void 0,B):m===null?t(m):F(m)?(l=v,V(m)):(e.consume(m),v)}function q(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||$(m)?z(m):(e.consume(m),q)}function B(m){return m===47||m===62||$(m)?z(m):t(m)}function W(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function V(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ee}function ee(m){return D(m)?P(e,ae,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):ae(m)}function ae(m){return e.enter("htmlTextData"),l(m)}}const Tt={name:"labelEnd",resolveAll:Nl,resolveTo:zl,tokenize:Pl},Fl={tokenize:Dl},Al={tokenize:Ll},Tl={tokenize:_l};function Nl(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&Z(e,0,e.length,t),e}function zl(e,n){let t=e.length,r=0,i,a,l,o;for(;t--;)if(i=e[t][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const u={type:e[a][1].type==="labelLink"?"link":"image",start:{...e[a][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[a][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[a+r+2][1].end},end:{...e[l-2][1].start}};return o=[["enter",u,n],["enter",s,n]],o=X(o,e.slice(a+1,a+r+3)),o=X(o,[["enter",f,n]]),o=X(o,Ye(n.parser.constructs.insideSpan.null,e.slice(a+r+4,l-3),n)),o=X(o,[["exit",f,n],e[l-2],e[l-1],["exit",s,n]]),o=X(o,e.slice(l+1)),o=X(o,[["exit",u,n]]),Z(e,a,e.length,o),e}function Pl(e,n,t){const r=this;let i=r.events.length,a,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){a=r.events[i][1];break}return o;function o(p){return a?a._inactive?c(p):(l=r.parser.defined.includes(ie(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):t(p)}function u(p){return p===40?e.attempt(Fl,f,l?f:c)(p):p===91?e.attempt(Al,f,l?s:c)(p):l?f(p):c(p)}function s(p){return e.attempt(Tl,f,c)(p)}function f(p){return n(p)}function c(p){return a._balanced=!0,t(p)}}function Dl(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return $(c)?Pe(e,a)(c):a(c)}function a(c){return c===41?f(c):Wn(e,l,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return $(c)?Pe(e,u)(c):f(c)}function o(c){return t(c)}function u(c){return c===34||c===39||c===40?Gn(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return $(c)?Pe(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function Ll(e,n,t){const r=this;return i;function i(o){return Qn.call(r,e,a,l,"reference","referenceMarker","referenceString")(o)}function a(o){return r.parser.defined.includes(ie(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(o):t(o)}function l(o){return t(o)}}function _l(e,n,t){return r;function r(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),n):t(a)}}const Ml={name:"labelStartImage",resolveAll:Tt.resolveAll,tokenize:Ol};function Ol(e,n,t){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),a}function a(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),l):t(o)}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const Bl={name:"labelStartLink",resolveAll:Tt.resolveAll,tokenize:Rl};function Rl(e,n,t){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),a}function a(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const nt={name:"lineEnding",tokenize:vl};function vl(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),P(e,n,"linePrefix")}}const qe={name:"thematicBreak",tokenize:jl};function jl(e,n,t){let r=0,i;return a;function a(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,o(s)}function o(s){return s===i?(e.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||F(s))?(e.exit("thematicBreak"),n(s)):t(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),D(s)?P(e,o,"whitespace")(s):o(s))}}const J={continuation:{tokenize:Vl},exit:Wl,name:"list",tokenize:Hl},$l={partial:!0,tokenize:Ql},ql={partial:!0,tokenize:Ul};function Hl(e,n,t){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return o;function o(h){const d=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:pt(h)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(qe,t,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return t(h)}function u(h){return pt(h)&&++l<10?(e.consume(h),u):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):t(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(_e,r.interrupt?t:f,e.attempt($l,p,c))}function f(h){return r.containerState.initialBlankLine=!0,a++,p(h)}function c(h){return D(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function Vl(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(_e,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,P(e,n,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!D(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ql,n,l)(o))}function l(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,P(e,e.attempt(J,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Ul(e,n,t){const r=this;return P(e,i,"listItemIndent",r.containerState.size+1);function i(a){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(a):t(a)}}function Wl(e){e.exit(this.containerState.type)}function Ql(e,n,t){const r=this;return P(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const l=r.events[r.events.length-1];return!D(a)&&l&&l[1].type==="listItemPrefixWhitespace"?n(a):t(a)}}const nn={name:"setextUnderline",resolveTo:Gl,tokenize:Yl};function Gl(e,n){let t=e.length,r,i,a;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),!a&&e[t][1].type==="definition"&&(a=t);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",l,n]),e.splice(a+1,0,["exit",e[r][1],n]),e[r][1].end={...e[a][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function Yl(e,n,t){const r=this;let i;return a;function a(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,l(s)):t(s)}function l(s){return e.enter("setextHeadingLineSequence"),o(s)}function o(s){return s===i?(e.consume(s),o):(e.exit("setextHeadingLineSequence"),D(s)?P(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||F(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const Jl={tokenize:Kl};function Kl(e){const n=this,t=e.attempt(_e,r,e.attempt(this.parser.constructs.flowInitial,i,P(e,e.attempt(this.parser.constructs.flow,i,e.attempt(nl,i)),"linePrefix")));return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Zl={resolveAll:Jn()},Xl=Yn("string"),ea=Yn("text");function Yn(e){return{resolveAll:Jn(e==="text"?ta:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],a=t.attempt(i,l,o);return l;function l(f){return s(f)?a(f):o(f)}function o(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),u}function u(f){return s(f)?(t.exit("data"),a(f)):(t.consume(f),u)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Jn(e){return n;function n(t,r){let i=-1,a;for(;++i<=t.length;)a===void 0?t[i]&&t[i][1].type==="data"&&(a=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==a+2&&(t[a][1].end=t[i-1][1].end,t.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(t,r):t}}function ta(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let a=i.length,l=-1,o=0,u;for(;a--;){const s=i[a];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)o++,l--;if(l)break;l=-1}else if(s===-2)u=!0,o++;else if(s!==-1){a++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(o=0),o){const s={type:t===e.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:a?l:r.start._bufferIndex+l,_index:r.start._index+a,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(t,0,["enter",s,n],["exit",s,n]),t+=2)}t++}return e}const na={42:J,43:J,45:J,48:J,49:J,50:J,51:J,52:J,53:J,54:J,55:J,56:J,57:J,62:qn},ra={91:ol},ia={[-2]:tt,[-1]:tt,32:tt},la={35:pl,42:qe,45:[nn,qe],60:xl,61:nn,95:qe,96:en,126:en},aa={38:Vn,92:Hn},oa={[-5]:nt,[-4]:nt,[-3]:nt,33:Ml,38:Vn,42:mt,60:[Bi,El],91:Bl,92:[fl,Hn],93:Tt,95:mt,96:Ji},ua={null:[mt,Zl]},sa={null:[42,95]},ca={null:[]},fa=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:sa,contentInitial:ra,disable:ca,document:na,flow:la,flowInitial:ia,insideSpan:ua,string:aa,text:oa},Symbol.toStringTag,{value:"Module"}));function ha(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},a=[];let l=[],o=[];const u={attempt:_(O),check:_(b),consume:C,enter:E,exit:L,interrupt:_(b,{interrupt:!0})},s={code:null,containerState:{},defineSkip:y,events:[],now:d,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=n.tokenize.call(s,u);return n.resolveAll&&a.push(n),s;function c(A){return l=X(l,A),I(),l[l.length-1]!==null?[]:(R(n,0),s.events=Ye(a,s.events,s),s.events)}function p(A,T){return ma(h(A),T)}function h(A){return pa(l,A)}function d(){const{_bufferIndex:A,_index:T,line:v,column:q,offset:B}=r;return{_bufferIndex:A,_index:T,line:v,column:q,offset:B}}function y(A){i[A.line]=A.column,x()}function I(){let A;for(;r._index<l.length;){const T=l[r._index];if(typeof T=="string")for(A=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===A&&r._bufferIndex<T.length;)w(T.charCodeAt(r._bufferIndex));else w(T)}}function w(A){f=f(A)}function C(A){F(A)?(r.line++,r.column=1,r.offset+=A===-3?2:1,x()):A!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=A}function E(A,T){const v=T||{};return v.type=A,v.start=d(),s.events.push(["enter",v,s]),o.push(v),v}function L(A){const T=o.pop();return T.end=d(),s.events.push(["exit",T,s]),T}function O(A,T){R(A,T.from)}function b(A,T){T.restore()}function _(A,T){return v;function v(q,B,W){let V,ee,ae,m;return Array.isArray(q)?oe(q):"tokenize"in q?oe([q]):te(q);function te(U){return Ae;function Ae(fe){const ye=fe!==null&&U[fe],be=fe!==null&&U.null,Oe=[...Array.isArray(ye)?ye:ye?[ye]:[],...Array.isArray(be)?be:be?[be]:[]];return oe(Oe)(fe)}}function oe(U){return V=U,ee=0,U.length===0?W:g(U[ee])}function g(U){return Ae;function Ae(fe){return m=z(),ae=U,U.partial||(s.currentConstruct=U),U.name&&s.parser.constructs.disable.null.includes(U.name)?me():U.tokenize.call(T?Object.assign(Object.create(s),T):s,u,ne,me)(fe)}}function ne(U){return A(ae,m),B}function me(U){return m.restore(),++ee<V.length?g(V[ee]):W}}}function R(A,T){A.resolveAll&&!a.includes(A)&&a.push(A),A.resolve&&Z(s.events,T,s.events.length-T,A.resolve(s.events.slice(T),s)),A.resolveTo&&(s.events=A.resolveTo(s.events,s))}function z(){const A=d(),T=s.previous,v=s.currentConstruct,q=s.events.length,B=Array.from(o);return{from:q,restore:W};function W(){r=A,s.previous=T,s.currentConstruct=v,s.events.length=q,o=B,x()}}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function pa(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,a=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,a)];else{if(l=e.slice(t,i),r>-1){const o=l[0];typeof o=="string"?l[0]=o.slice(r):l.shift()}a>0&&l.push(e[i].slice(0,a))}return l}function ma(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const a=e[t];let l;if(typeof a=="string")l=a;else switch(a){case-5:{l="\r";break}case-4:{l=`
2
- `;break}case-3:{l=`\r
3
- `;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(a)}i=a===-2,r.push(l)}return r.join("")}function ga(e){const r={constructs:jn([fa,...(e||{}).extensions||[]]),content:i(zi),defined:[],document:i(Di),flow:i(Jl),lazy:{},string:i(Xl),text:i(ea)};return r;function i(a){return l;function l(o){return ha(r,a,o)}}}function da(e){for(;!Un(e););return e}const rn=/[\0\t\n\r]/g;function xa(){let e=1,n="",t=!0,r;return i;function i(a,l,o){const u=[];let s,f,c,p,h;for(a=n+(typeof a=="string"?a.toString():new TextDecoder(l||void 0).decode(a)),c=0,n="",t&&(a.charCodeAt(0)===65279&&c++,t=void 0);c<a.length;){if(rn.lastIndex=c,s=rn.exec(a),p=s&&s.index!==void 0?s.index:a.length,h=a.charCodeAt(p),!s){n=a.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(a.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 o&&(r&&u.push(-5),n&&u.push(n),u.push(null)),u}}const ka=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ya(e){return e.replace(ka,ba)}function ba(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),a=i===120||i===88;return $n(t.slice(a?2:1),a?16:10)}return Ct(t)||e}const Kn={}.hasOwnProperty;function wa(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Ca(t)(da(ga(t).document().write(xa()(e,n,!0))))}function Ca(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(vt),autolinkProtocol:z,autolinkEmail:z,atxHeading:a(Ot),blockQuote:a(be),characterEscape:z,characterReference:z,codeFenced:a(Oe),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(Oe,l),codeText:a(Br,l),codeTextData:z,data:z,codeFlowValue:z,definition:a(Rr),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a(vr),hardBreakEscape:a(Bt),hardBreakTrailing:a(Bt),htmlFlow:a(Rt,l),htmlFlowData:z,htmlText:a(Rt,l),htmlTextData:z,image:a(jr),label:l,link:a(vt),listItem:a($r),listItemValue:p,listOrdered:a(jt,c),listUnordered:a(jt),paragraph:a(qr),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(Ot),strong:a(Hr),thematicBreak:a(Ur)},exit:{atxHeading:u(),atxHeadingSequence:O,autolink:u(),autolinkEmail:ye,autolinkProtocol:fe,blockQuote:u(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:me,characterReferenceMarkerNumeric:me,characterReferenceValue:U,characterReference:Ae,codeFenced:u(I),codeFencedFence:y,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:x,codeIndented:u(w),codeText:u(B),codeTextData:x,data:x,definition:u(),definitionDestinationString:L,definitionLabelString:C,definitionTitleString:E,emphasis:u(),hardBreakEscape:u(T),hardBreakTrailing:u(T),htmlFlow:u(v),htmlFlowData:x,htmlText:u(q),htmlTextData:x,image:u(V),label:ae,labelText:ee,lineEnding:A,link:u(W),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ne,resourceDestinationString:m,resourceTitleString:te,resource:oe,setextHeading:u(R),setextHeadingLineSequence:_,setextHeadingText:b,strong:u(),thematicBreak:u()}};Zn(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(k){let S={type:"root",children:[]};const N={stack:[S],tokenStack:[],config:n,enter:o,exit:s,buffer:l,resume:f,data:t},M=[];let j=-1;for(;++j<k.length;)if(k[j][1].type==="listOrdered"||k[j][1].type==="listUnordered")if(k[j][0]==="enter")M.push(j);else{const re=M.pop();j=i(k,re,j)}for(j=-1;++j<k.length;){const re=n[k[j][0]];Kn.call(re,k[j][1].type)&&re[k[j][1].type].call(Object.assign({sliceSerialize:k[j][2].sliceSerialize},N),k[j][1])}if(N.tokenStack.length>0){const re=N.tokenStack[N.tokenStack.length-1];(re[1]||ln).call(N,void 0,re[0])}for(S.position={start:he(k.length>0?k[0][1].start:{line:1,column:1,offset:0}),end:he(k.length>0?k[k.length-2][1].end:{line:1,column:1,offset:0})},j=-1;++j<n.transforms.length;)S=n.transforms[j](S)||S;return S}function i(k,S,N){let M=S-1,j=-1,re=!1,ge,ue,Te,Ne;for(;++M<=N;){const K=k[M];switch(K[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{K[0]==="enter"?j++:j--,Ne=void 0;break}case"lineEndingBlank":{K[0]==="enter"&&(ge&&!Ne&&!j&&!Te&&(Te=M),Ne=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ne=void 0}if(!j&&K[0]==="enter"&&K[1].type==="listItemPrefix"||j===-1&&K[0]==="exit"&&(K[1].type==="listUnordered"||K[1].type==="listOrdered")){if(ge){let we=M;for(ue=void 0;we--;){const se=k[we];if(se[1].type==="lineEnding"||se[1].type==="lineEndingBlank"){if(se[0]==="exit")continue;ue&&(k[ue][1].type="lineEndingBlank",re=!0),se[1].type="lineEnding",ue=we}else if(!(se[1].type==="linePrefix"||se[1].type==="blockQuotePrefix"||se[1].type==="blockQuotePrefixWhitespace"||se[1].type==="blockQuoteMarker"||se[1].type==="listItemIndent"))break}Te&&(!ue||Te<ue)&&(ge._spread=!0),ge.end=Object.assign({},ue?k[ue][1].start:K[1].end),k.splice(ue||M,0,["exit",ge,K[2]]),M++,N++}if(K[1].type==="listItemPrefix"){const we={type:"listItem",_spread:!1,start:Object.assign({},K[1].start),end:void 0};ge=we,k.splice(M,0,["enter",we,K[2]]),M++,N++,Te=void 0,Ne=!0}}}return k[S][1]._spread=re,N}function a(k,S){return N;function N(M){o.call(this,k(M),M),S&&S.call(this,M)}}function l(){this.stack.push({type:"fragment",children:[]})}function o(k,S,N){this.stack[this.stack.length-1].children.push(k),this.stack.push(k),this.tokenStack.push([S,N||void 0]),k.position={start:he(S.start),end:void 0}}function u(k){return S;function S(N){k&&k.call(this,N),s.call(this,N)}}function s(k,S){const N=this.stack.pop(),M=this.tokenStack.pop();if(M)M[0].type!==k.type&&(S?S.call(this,k,M[0]):(M[1]||ln).call(this,k,M[0]));else throw new Error("Cannot close `"+k.type+"` ("+$e({start:k.start,end:k.end})+"): it’s not open");N.position.end=he(k.end)}function f(){return At(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(k){if(this.data.expectingFirstListItemValue){const S=this.stack[this.stack.length-2];S.start=Number.parseInt(this.sliceSerialize(k),10),this.data.expectingFirstListItemValue=void 0}}function h(){const k=this.resume(),S=this.stack[this.stack.length-1];S.lang=k}function d(){const k=this.resume(),S=this.stack[this.stack.length-1];S.meta=k}function y(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function I(){const k=this.resume(),S=this.stack[this.stack.length-1];S.value=k.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const k=this.resume(),S=this.stack[this.stack.length-1];S.value=k.replace(/(\r?\n|\r)$/g,"")}function C(k){const S=this.resume(),N=this.stack[this.stack.length-1];N.label=S,N.identifier=ie(this.sliceSerialize(k)).toLowerCase()}function E(){const k=this.resume(),S=this.stack[this.stack.length-1];S.title=k}function L(){const k=this.resume(),S=this.stack[this.stack.length-1];S.url=k}function O(k){const S=this.stack[this.stack.length-1];if(!S.depth){const N=this.sliceSerialize(k).length;S.depth=N}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function _(k){const S=this.stack[this.stack.length-1];S.depth=this.sliceSerialize(k).codePointAt(0)===61?1:2}function R(){this.data.setextHeadingSlurpLineEnding=void 0}function z(k){const N=this.stack[this.stack.length-1].children;let M=N[N.length-1];(!M||M.type!=="text")&&(M=Vr(),M.position={start:he(k.start),end:void 0},N.push(M)),this.stack.push(M)}function x(k){const S=this.stack.pop();S.value+=this.sliceSerialize(k),S.position.end=he(k.end)}function A(k){const S=this.stack[this.stack.length-1];if(this.data.atHardBreak){const N=S.children[S.children.length-1];N.position.end=he(k.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(S.type)&&(z.call(this,k),x.call(this,k))}function T(){this.data.atHardBreak=!0}function v(){const k=this.resume(),S=this.stack[this.stack.length-1];S.value=k}function q(){const k=this.resume(),S=this.stack[this.stack.length-1];S.value=k}function B(){const k=this.resume(),S=this.stack[this.stack.length-1];S.value=k}function W(){const k=this.stack[this.stack.length-1];if(this.data.inReference){const S=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=S,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function V(){const k=this.stack[this.stack.length-1];if(this.data.inReference){const S=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=S,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function ee(k){const S=this.sliceSerialize(k),N=this.stack[this.stack.length-2];N.label=ya(S),N.identifier=ie(S).toLowerCase()}function ae(){const k=this.stack[this.stack.length-1],S=this.resume(),N=this.stack[this.stack.length-1];if(this.data.inReference=!0,N.type==="link"){const M=k.children;N.children=M}else N.alt=S}function m(){const k=this.resume(),S=this.stack[this.stack.length-1];S.url=k}function te(){const k=this.resume(),S=this.stack[this.stack.length-1];S.title=k}function oe(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ne(k){const S=this.resume(),N=this.stack[this.stack.length-1];N.label=S,N.identifier=ie(this.sliceSerialize(k)).toLowerCase(),this.data.referenceType="full"}function me(k){this.data.characterReferenceType=k.type}function U(k){const S=this.sliceSerialize(k),N=this.data.characterReferenceType;let M;N?(M=$n(S,N==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):M=Ct(S);const j=this.stack[this.stack.length-1];j.value+=M}function Ae(k){const S=this.stack.pop();S.position.end=he(k.end)}function fe(k){x.call(this,k);const S=this.stack[this.stack.length-1];S.url=this.sliceSerialize(k)}function ye(k){x.call(this,k);const S=this.stack[this.stack.length-1];S.url="mailto:"+this.sliceSerialize(k)}function be(){return{type:"blockquote",children:[]}}function Oe(){return{type:"code",lang:null,meta:null,value:""}}function Br(){return{type:"inlineCode",value:""}}function Rr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function vr(){return{type:"emphasis",children:[]}}function Ot(){return{type:"heading",depth:0,children:[]}}function Bt(){return{type:"break"}}function Rt(){return{type:"html",value:""}}function jr(){return{type:"image",title:null,url:"",alt:null}}function vt(){return{type:"link",title:null,url:"",children:[]}}function jt(k){return{type:"list",ordered:k.type==="listOrdered",start:null,spread:k._spread,children:[]}}function $r(k){return{type:"listItem",spread:k._spread,checked:null,children:[]}}function qr(){return{type:"paragraph",children:[]}}function Hr(){return{type:"strong",children:[]}}function Vr(){return{type:"text",value:""}}function Ur(){return{type:"thematicBreak"}}}function he(e){return{line:e.line,column:e.column,offset:e.offset}}function Zn(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Zn(e,r):Sa(e,r)}}function Sa(e,n){let t;for(t in n)if(Kn.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function ln(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+$e({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+$e({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+$e({start:n.start,end:n.end})+") is still open")}function Ea(e){const n=this;n.parser=t;function t(r){return wa(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Ia(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Fa(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
4
- `}]}function Aa(e,n){const t=n.value?n.value+`
5
- `:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(a.data={meta:n.meta}),e.patch(n,a),a=e.applyData(n,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(n,a),a}function Ta(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Na(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=Fe(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);let l,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=a+1,o+=1,e.footnoteCounts.set(r,o);const u={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(n,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(n,s),e.applyData(n,s)}function Pa(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 Da(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function Xn(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),a=i[0];a&&a.type==="text"?a.value="["+a.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 La(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Xn(e,n);const i={src:Fe(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,a),e.applyData(n,a)}function _a(e,n){const t={src:Fe(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 Ma(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 Oa(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Xn(e,n);const i={href:Fe(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function Ba(e,n){const t={href:Fe(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 Ra(e,n,t){const r=e.all(n),i=t?va(t):er(n),a={},l=[];if(typeof n.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const f=r[o];(i||o!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
6
- `}),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:`
7
- `});const s={type:"element",tagName:"li",properties:a,children:l};return e.patch(n,s),e.applyData(n,s)}function va(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=er(t[r])}return n}function er(e){const n=e.spread;return n??e.children.length>1}function ja(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const a={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,a),e.applyData(n,a)}function $a(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function qa(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function Ha(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Va(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],l),i.push(l)}if(t.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},o=St(n.children[1]),u=Ln(n.children[n.children.length-1]);o&&u&&(l.position={start:o,end:u}),i.push(l)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,a),e.applyData(n,a)}function Ua(e,n,t){const r=t?t.children:void 0,a=(r?r.indexOf(n):1)===0?"th":"td",l=t&&t.type==="table"?t.align:void 0,o=l?l.length:n.children.length;let u=-1;const s=[];for(;++u<o;){const c=n.children[u],p={},h=l?l[u]:void 0;h&&(p.align=h);let d={type:"element",tagName:a,properties:p,children:[]};c&&(d.children=e.all(c),e.patch(c,d),d=e.applyData(c,d)),s.push(d)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(n,f),e.applyData(n,f)}function Wa(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Qa(e,n){const t={type:"text",value:Qr(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Ga(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Ya={blockquote:Ia,break:Fa,code:Aa,delete:Ta,emphasis:Na,footnoteReference:za,heading:Pa,html:Da,imageReference:La,image:_a,inlineCode:Ma,linkReference:Oa,link:Ba,listItem:Ra,list:ja,paragraph:$a,root:qa,strong:Ha,table:Va,tableCell:Wa,tableRow:Ua,text:Qa,thematicBreak:Ga,toml:Be,yaml:Be,definition:Be,footnoteDefinition:Be};function Be(){}function Ja(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 Ka(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Za(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Ja,r=e.options.footnoteBackLabel||Ka,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[u]);if(!s)continue;const f=e.all(s),c=String(s.identifier).toUpperCase(),p=Fe(c.toLowerCase());let h=0;const d=[],y=e.footnoteCounts.get(c);for(;y!==void 0&&++h<=y;){d.length>0&&d.push({type:"text",value:" "});let C=typeof t=="string"?t:t(u,h);typeof C=="string"&&(C={type:"text",value:C}),d.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,h),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const I=f[f.length-1];if(I&&I.type==="element"&&I.tagName==="p"){const C=I.children[I.children.length-1];C&&C.type==="text"?C.value+=" ":I.children.push({type:"text",value:" "}),I.children.push(...d)}else f.push(...d);const w={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:e.wrap(f,!0)};e.patch(s,w),o.push(w)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...He(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
8
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
9
- `}]}}const Me=(function(e){if(e==null)return no;if(typeof e=="function")return Je(e);if(typeof e=="object")return Array.isArray(e)?Xa(e):eo(e);if(typeof e=="string")return to(e);throw new Error("Expected function, string, or object as test")});function Xa(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Me(e[t]);return Je(r);function r(...i){let a=-1;for(;++a<n.length;)if(n[a].apply(this,i))return!0;return!1}}function eo(e){const n=e;return Je(t);function t(r){const i=r;let a;for(a in e)if(i[a]!==n[a])return!1;return!0}}function to(e){return Je(n);function n(t){return t&&t.type===e}}function Je(e){return n;function n(t,r,i){return!!(ro(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function no(){return!0}function ro(e){return e!==null&&typeof e=="object"&&"type"in e}const tr=[],io=!0,gt=!1,lo="skip";function nr(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const a=Me(i),l=r?-1:1;o(e,void 0,[])();function o(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=tr,d,y,I;if((!n||a(u,s,f[f.length-1]||void 0))&&(h=ao(t(u,f)),h[0]===gt))return h;if("children"in u&&u.children){const w=u;if(w.children&&h[0]!==lo)for(y=(r?w.children.length:-1)+l,I=f.concat(w);y>-1&&y<w.children.length;){const C=w.children[y];if(d=o(C,y,I)(),d[0]===gt)return d;y=typeof d[1]=="number"?d[1]:y+l}}return h}}}function ao(e){return Array.isArray(e)?e:typeof e=="number"?[io,e]:e==null?tr:[e]}function Nt(e,n,t,r){let i,a,l;typeof n=="function"&&typeof t!="function"?(a=void 0,l=n,i=t):(a=n,l=t,i=r),nr(e,a,o,i);function o(u,s){const f=s[s.length-1],c=f?f.children.indexOf(u):void 0;return l(u,c,f)}}const dt={}.hasOwnProperty,oo={};function uo(e,n){const t=n||oo,r=new Map,i=new Map,a=new Map,l={...Ya,...t.handlers},o={all:s,applyData:co,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:l,one:u,options:t,patch:so,wrap:ho};return Nt(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)}}),o;function u(f,c){const p=f.type,h=o.handlers[p];if(dt.call(o.handlers,p)&&h)return h(o,f,c);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in f){const{children:y,...I}=f,w=He(I);return w.children=o.all(f),w}return He(f)}return(o.options.unknownHandler||fo)(o,f,c)}function s(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const d=o.one(p[h],f);if(d){if(h&&p[h-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=an(d.value)),!Array.isArray(d)&&d.type==="element")){const y=d.children[0];y&&y.type==="text"&&(y.value=an(y.value))}Array.isArray(d)?c.push(...d):c.push(d)}}}return c}}function so(e,n){e.position&&(n.position=ni(e))}function co(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const l="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:l}}t.type==="element"&&a&&Object.assign(t.properties,He(a)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function fo(e,n){const t=n.data||{},r="value"in n&&!(dt.call(t,"hProperties")||dt.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function ho(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
10
- `});++r<e.length;)r&&t.push({type:"text",value:`
11
- `}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
12
- `}),t}function an(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function on(e,n){const t=uo(e,n),r=t.one(e,void 0),i=Za(t),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
13
- `},i),a}function po(e,n){return e&&"run"in e?async function(t,r){const i=on(t,{file:r,...n});await e.run(i,r)}:function(t,r){return on(t,{file:r,...e||n})}}const mo=(function(e){const r=this.constructor.prototype,i=r[e],a=function(){return i.apply(a,arguments)};return Object.setPrototypeOf(a,r),a}),go={}.hasOwnProperty;class zt extends mo{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=Gr()}copy(){const n=new zt;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(Ke(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(lt("data",this.frozen),this.namespace[n]=t,this):go.call(this.namespace,n)&&this.namespace[n]||void 0:n?(lt("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=Re(n),r=this.parser||this.Parser;return rt("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),rt("process",this.parser||this.Parser),it("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(a,l){const o=Re(n),u=r.parse(o);r.run(u,o,function(f,c,p){if(f||!c||!p)return s(f);const h=c,d=r.stringify(h,p);yo(d)?p.value=d:p.result=d,s(f,p)});function s(f,c){f||!c?l(f):a?a(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),rt("processSync",this.parser||this.Parser),it("processSync",this.compiler||this.Compiler),this.process(n,i),sn("processSync","process",t),r;function i(a,l){t=!0,qt(a),r=l}}run(n,t,r){un(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?a(void 0,r):new Promise(a);function a(l,o){const u=Re(t);i.run(n,u,s);function s(f,c,p){const h=c||n;f?o(f):l?l(h):r(void 0,h,p)}}}runSync(n,t){let r=!1,i;return this.run(n,t,a),sn("runSync","run",r),i;function a(l,o){qt(l),i=o,r=!0}}stringify(n,t){this.freeze();const r=Re(t),i=this.compiler||this.Compiler;return it("stringify",i),un(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(lt("use",this.frozen),n!=null)if(typeof n=="function")u(n,t);else if(typeof n=="object")Array.isArray(n)?o(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function a(s){if(typeof s=="function")u(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[f,...c]=s;u(f,c)}else l(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function l(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(s.plugins),s.settings&&(i.settings=Ke(!0,i.settings,s.settings))}function o(s){let f=-1;if(s!=null)if(Array.isArray(s))for(;++f<s.length;){const c=s[f];a(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function u(s,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===s){p=c;break}if(p===-1)r.push([s,...f]);else if(f.length>0){let[h,...d]=f;const y=r[p][1];ft(y)&&ft(h)&&(h=Ke(!0,y,h)),r[p]=[s,h,...d]}}}}const xo=new zt().freeze();function rt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function it(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function lt(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 un(e){if(!ft(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function sn(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Re(e){return ko(e)?e:new Pn(e)}function ko(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function yo(e){return typeof e=="string"||bo(e)}function bo(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const wo="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",cn=[],fn={allowDangerousHtml:!0},Co=/^(https?|ircs?|mailto|xmpp)$/i,So=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function tf(e){const n=Eo(e),t=Io(e);return Fo(n.runSync(n.parse(t),t),e)}function Eo(e){const n=e.rehypePlugins||cn,t=e.remarkPlugins||cn,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...fn}:fn;return xo().use(Ea).use(t).use(po,r).use(n)}function Io(e){const n=e.children||"",t=new Pn;return typeof n=="string"&&(t.value=n),t}function Fo(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,a=n.disallowedElements,l=n.skipHtml,o=n.unwrapDisallowed,u=n.urlTransform||Ao;for(const f of So)Object.hasOwn(n,f.from)&&Yr("Unexpected `"+f.from+"` prop, "+(f.to?"use `"+f.to+"` instead":"remove it")+" (see <"+wo+"#"+f.id+"> for more info)");return n.className&&(e={type:"element",tagName:"div",properties:{className:n.className},children:e.type==="root"?e.children:[e]}),Nt(e,s),oi(e,{Fragment:et.Fragment,components:i,ignoreInvalidStyle:!0,jsx:et.jsx,jsxs:et.jsxs,passKeys:!0,passNode:!0});function s(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return l?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in Ze)if(Object.hasOwn(Ze,h)&&Object.hasOwn(f.properties,h)){const d=f.properties[h],y=Ze[h];(y===null||y.includes(f.tagName))&&(f.properties[h]=u(String(d||""),h,f))}}if(f.type==="element"){let h=t?!t.includes(f.tagName):a?a.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return o&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function Ao(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||Co.test(e.slice(0,n))?e:""}const hn=/[#.]/g;function To(e,n){const t=e||"",r={};let i=0,a,l;for(;i<t.length;){hn.lastIndex=i;const o=hn.exec(t),u=t.slice(i,o?o.index:t.length);u&&(a?a==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:l=u,i+=u.length),o&&(a=o[0],i++)}return{type:"element",tagName:l||n||"div",properties:r,children:[]}}function rr(e,n,t){const r=t?Do(t):void 0;function i(a,l,...o){let u;if(a==null){u={type:"root",children:[]};const s=l;o.unshift(s)}else{u=To(a,n);const s=u.tagName.toLowerCase(),f=r?r.get(s):void 0;if(u.tagName=f||s,No(l))o.unshift(l);else for(const[c,p]of Object.entries(l))zo(e,u.properties,c,p)}for(const s of o)xt(u.children,s);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function No(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const n=e,t=Object.keys(e);for(const r of t){const i=n[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const a=i;for(const l of a)if(typeof l!="number"&&typeof l!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function zo(e,n,t,r){const i=wt(e,t);let a;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;a=r}else typeof r=="boolean"?a=r:typeof r=="string"?i.spaceSeparated?a=Ht(r):i.commaSeparated?a=Vt(r):i.commaOrSpaceSeparated?a=Ht(Vt(r).join(" ")):a=pn(i,i.property,r):Array.isArray(r)?a=[...r]:a=i.property==="style"?Po(r):String(r);if(Array.isArray(a)){const l=[];for(const o of a)l.push(pn(i,i.property,o));a=l}i.property==="className"&&Array.isArray(n.className)&&(a=n.className.concat(a)),n[i.property]=a}}function xt(e,n){if(n!=null)if(typeof n=="number"||typeof n=="string")e.push({type:"text",value:String(n)});else if(Array.isArray(n))for(const t of n)xt(e,t);else if(typeof n=="object"&&"type"in n)n.type==="root"?xt(e,n.children):e.push(n);else throw new Error("Expected node, nodes, or string, got `"+n+"`")}function pn(e,n,t){if(typeof t=="string"){if(e.number&&t&&!Number.isNaN(Number(t)))return Number(t);if((e.boolean||e.overloadedBoolean)&&(t===""||Ut(t)===Ut(n)))return!0}return t}function Po(e){const n=[];for(const[t,r]of Object.entries(e))n.push([t,r].join(": "));return n.join("; ")}function Do(e){const n=new Map;for(const t of e)n.set(t.toLowerCase(),t);return n}const Lo=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],_o=rr(bt,"div"),Mo=rr(Ie,"g",Lo);function Oo(e,n){return ir(e,{})||{type:"root",children:[]}}function ir(e,n){const t=Bo(e,n);return t&&n.afterTransform&&n.afterTransform(e,t),t}function Bo(e,n){switch(e.nodeType){case 1:return $o(e,n);case 3:return vo(e);case 8:return jo(e);case 9:return mn(e,n);case 10:return Ro();case 11:return mn(e,n);default:return}}function mn(e,n){return{type:"root",children:lr(e,n)}}function Ro(){return{type:"doctype"}}function vo(e){return{type:"text",value:e.nodeValue||""}}function jo(e){return{type:"comment",value:e.nodeValue||""}}function $o(e,n){const t=e.namespaceURI,r=t===Xe.svg?Mo:_o,i=t===Xe.html?e.tagName.toLowerCase():e.tagName,a=t===Xe.html&&i==="template"?e.content:e,l=e.getAttributeNames(),o={};let u=-1;for(;++u<l.length;)o[l[u]]=e.getAttribute(l[u])||"";return r(i,o,lr(a,n))}function lr(e,n){const t=e.childNodes,r=[];let i=-1;for(;++i<t.length;){const a=ir(t[i],n);a!==void 0&&r.push(a)}return r}new DOMParser;function nf(e,n){const t=qo(e);return Oo(t)}function qo(e){const n=document.createElement("template");return n.innerHTML=e,n.content}const gn=(function(e,n,t){const r=Me(t);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof n=="number"){if(n<0||n===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(n=e.children.indexOf(n),n<0)throw new Error("Expected child node or index");for(;++n<e.children.length;)if(r(e.children[n],n,e))return e.children[n]}),ke=(function(e){if(e==null)return Uo;if(typeof e=="string")return Vo(e);if(typeof e=="object")return Ho(e);if(typeof e=="function")return Pt(e);throw new Error("Expected function, string, or array as `test`")});function Ho(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=ke(e[t]);return Pt(r);function r(...i){let a=-1;for(;++a<n.length;)if(n[a].apply(this,i))return!0;return!1}}function Vo(e){return Pt(n);function n(t){return t.tagName===e}}function Pt(e){return n;function n(t,r,i){return!!(Wo(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Uo(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Wo(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const dn=/\n/g,xn=/[\t ]+/g,kt=ke("br"),kn=ke(Xo),Qo=ke("p"),yn=ke("tr"),Go=ke(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Zo,eu]),ar=ke(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function rf(e,n){const t=n||{},r="children"in e?e.children:[],i=ar(e),a=sr(e,{whitespace:t.whitespace||"normal"}),l=[];(e.type==="text"||e.type==="comment")&&l.push(...ur(e,{breakBefore:!0,breakAfter:!0}));let o=-1;for(;++o<r.length;)l.push(...or(r[o],e,{whitespace:a,breakBefore:o?void 0:i,breakAfter:o<r.length-1?kt(r[o+1]):i}));const u=[];let s;for(o=-1;++o<l.length;){const f=l[o];typeof f=="number"?s!==void 0&&f>s&&(s=f):f&&(s!==void 0&&s>-1&&u.push(`
14
- `.repeat(s)||" "),s=-1,u.push(f))}return u.join("")}function or(e,n,t){return e.type==="element"?Yo(e,n,t):e.type==="text"?t.whitespace==="normal"?ur(e,t):Jo(e):[]}function Yo(e,n,t){const r=sr(e,t),i=e.children||[];let a=-1,l=[];if(Go(e))return l;let o,u;for(kt(e)||yn(e)&&gn(n,e,yn)?u=`
15
- `:Qo(e)?(o=2,u=2):ar(e)&&(o=1,u=1);++a<i.length;)l=l.concat(or(i[a],e,{whitespace:r,breakBefore:a?void 0:o,breakAfter:a<i.length-1?kt(i[a+1]):u}));return kn(e)&&gn(n,e,kn)&&l.push(" "),o&&l.unshift(o),u&&l.push(u),l}function ur(e,n){const t=String(e.value),r=[],i=[];let a=0;for(;a<=t.length;){dn.lastIndex=a;const u=dn.exec(t),s=u&&"index"in u?u.index:t.length;r.push(Ko(t.slice(a,s).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),a===0?n.breakBefore:!0,s===t.length?n.breakAfter:!0)),a=s+1}let l=-1,o;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]),o=void 0):r[l]?(typeof o=="number"&&i.push(o),i.push(r[l]),o=0):(l===0||l===r.length-1)&&i.push(0);return i}function Jo(e){return[String(e.value)]}function Ko(e,n,t){const r=[];let i=0,a;for(;i<e.length;){xn.lastIndex=i;const l=xn.exec(e);a=l?l.index:e.length,!i&&!a&&l&&!n&&r.push(""),i!==a&&r.push(e.slice(i,a)),i=l?a+l[0].length:a}return i!==a&&!t&&r.push(""),r.join(" ")}function sr(e,n){if(e.type==="element"){const t=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return t.wrap?"pre-wrap":"pre";case"td":case"th":return t.noWrap?"nowrap":n.whitespace;case"textarea":return"pre-wrap"}}return n.whitespace}function Zo(e){return!!(e.properties||{}).hidden}function Xo(e){return e.tagName==="td"||e.tagName==="th"}function eu(e){return e.tagName==="dialog"&&!(e.properties||{}).open}function tu(e,n,t){const i=Me((t||{}).ignore||[]),a=nu(n);let l=-1;for(;++l<a.length;)nr(e,"text",o);function o(s,f){let c=-1,p;for(;++c<f.length;){const h=f[c],d=p?p.children:void 0;if(i(h,d?d.indexOf(h):void 0,p))return;p=h}if(p)return u(s,f)}function u(s,f){const c=f[f.length-1],p=a[l][0],h=a[l][1];let d=0;const I=c.children.indexOf(s);let w=!1,C=[];p.lastIndex=0;let E=p.exec(s.value);for(;E;){const L=E.index,O={index:E.index,input:E.input,stack:[...f,s]};let b=h(...E,O);if(typeof b=="string"&&(b=b.length>0?{type:"text",value:b}:void 0),b===!1?p.lastIndex=L+1:(d!==L&&C.push({type:"text",value:s.value.slice(d,L)}),Array.isArray(b)?C.push(...b):b&&C.push(b),d=L+E[0].length,w=!0),!p.global)break;E=p.exec(s.value)}return w?(d<s.value.length&&C.push({type:"text",value:s.value.slice(d)}),c.children.splice(I,1,...C)):C=[s],I+C.length}}function nu(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([ru(i[0]),iu(i[1])])}return n}function ru(e){return typeof e=="string"?new RegExp(Jr(e),"g"):e}function iu(e){return typeof e=="function"?e:function(){return e}}const at="phrasing",ot=["autolink","link","image","label"];function lu(){return{transforms:[hu],enter:{literalAutolink:ou,literalAutolinkEmail:ut,literalAutolinkHttp:ut,literalAutolinkWww:ut},exit:{literalAutolink:fu,literalAutolinkEmail:cu,literalAutolinkHttp:uu,literalAutolinkWww:su}}}function au(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:at,notInConstruct:ot},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:at,notInConstruct:ot},{character:":",before:"[ps]",after:"\\/",inConstruct:at,notInConstruct:ot}]}}function ou(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ut(e){this.config.enter.autolinkProtocol.call(this,e)}function uu(e){this.config.exit.autolinkProtocol.call(this,e)}function su(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];Q(n.type==="link"),n.url="http://"+this.sliceSerialize(e)}function cu(e){this.config.exit.autolinkEmail.call(this,e)}function fu(e){this.exit(e)}function hu(e){tu(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,pu],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),mu]],{ignore:["link","linkReference"]})}function pu(e,n,t,r,i){let a="";if(!cr(i)||(/^w/i.test(n)&&(t=n+t,n="",a="http://"),!gu(t)))return!1;const l=du(t+r);if(!l[0])return!1;const o={type:"link",title:null,url:a+n+l[0],children:[{type:"text",value:n+l[0]}]};return l[1]?[o,{type:"text",value:l[1]}]:o}function mu(e,n,t,r){return!cr(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function gu(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function du(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=Ve(e,"(");let a=Ve(e,")");for(;r!==-1&&i>a;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),a++;return[e,t]}function cr(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||xe(t)||Ge(t))&&(!n||t!==47)}fr.peek=Iu;function xu(){this.buffer()}function ku(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function yu(){this.buffer()}function bu(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function wu(e){const n=this.resume(),t=this.stack[this.stack.length-1];Q(t.type==="footnoteReference"),t.identifier=ie(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Cu(e){this.exit(e)}function Su(e){const n=this.resume(),t=this.stack[this.stack.length-1];Q(t.type==="footnoteDefinition"),t.identifier=ie(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Eu(e){this.exit(e)}function Iu(){return"["}function fr(e,n,t,r){const i=t.createTracker(r);let a=i.move("[^");const l=t.enter("footnoteReference"),o=t.enter("reference");return a+=i.move(t.safe(t.associationId(e),{after:"]",before:a})),o(),l(),a+=i.move("]"),a}function Fu(){return{enter:{gfmFootnoteCallString:xu,gfmFootnoteCall:ku,gfmFootnoteDefinitionLabelString:yu,gfmFootnoteDefinition:bu},exit:{gfmFootnoteCallString:wu,gfmFootnoteCall:Cu,gfmFootnoteDefinitionLabelString:Su,gfmFootnoteDefinition:Eu}}}function Au(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:fr},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,a,l){const o=a.createTracker(l);let u=o.move("[^");const s=a.enter("footnoteDefinition"),f=a.enter("label");return u+=o.move(a.safe(a.associationId(r),{before:u,after:"]"})),f(),u+=o.move("]:"),r.children&&r.children.length>0&&(o.shift(4),u+=o.move((n?`
16
- `:" ")+a.indentLines(a.containerFlow(r,o.current()),n?hr:Tu))),s(),u}}function Tu(e,n,t){return n===0?e:hr(e,n,t)}function hr(e,n,t){return(t?"":" ")+e}const Nu=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];pr.peek=_u;function zu(){return{canContainEols:["delete"],enter:{strikethrough:Du},exit:{strikethrough:Lu}}}function Pu(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Nu}],handlers:{delete:pr}}}function Du(e){this.enter({type:"delete",children:[]},e)}function Lu(e){this.exit(e)}function pr(e,n,t,r){const i=t.createTracker(r),a=t.enter("strikethrough");let l=i.move("~~");return l+=t.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),a(),l}function _u(){return"~"}function Mu(e,n,t,r){const i=t.enter("blockquote"),a=t.createTracker(r);a.move("> "),a.shift(2);const l=t.indentLines(t.containerFlow(e,a.current()),Ou);return i(),l}function Ou(e,n,t){return">"+(t?"":" ")+e}function Bu(e,n){return bn(e,n.inConstruct,!0)&&!bn(e,n.notInConstruct,!1)}function bn(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function wn(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
17
- `&&Bu(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
18
- `}function Ru(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function vu(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function ju(e,n,t,r){const i=vu(t),a=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(Ru(e,t)){const c=t.enter("codeIndented"),p=t.indentLines(a,$u);return c(),p}const o=t.createTracker(r),u=i.repeat(Math.max(Dn(a,i)+1,3)),s=t.enter("codeFenced");let f=o.move(u);if(e.lang){const c=t.enter(`codeFencedLang${l}`);f+=o.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...o.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${l}`);f+=o.move(" "),f+=o.move(t.safe(e.meta,{before:f,after:`
19
- `,encode:["`"],...o.current()})),c()}return f+=o.move(`
20
- `),a&&(f+=o.move(a+`
21
- `)),f+=o.move(u),s(),f}function $u(e,n,t){return(t?"":" ")+e}function Dt(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function qu(e,n,t,r){const i=Dt(t),a=i==='"'?"Quote":"Apostrophe",l=t.enter("definition");let o=t.enter("label");const u=t.createTracker(r);let s=u.move("[");return s+=u.move(t.safe(t.associationId(e),{before:s,after:"]",...u.current()})),s+=u.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(t.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(o=t.enter("destinationRaw"),s+=u.move(t.safe(e.url,{before:s,after:e.title?" ":`
22
- `,...u.current()}))),o(),e.title&&(o=t.enter(`title${a}`),s+=u.move(" "+i),s+=u.move(t.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),o()),l(),s}function Hu(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Le(e){return"&#x"+e.toString(16).toUpperCase()+";"}function We(e,n,t){const r=Ee(e),i=Ee(n);return r===void 0?i===void 0?t==="_"?{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}}mr.peek=Vu;function mr(e,n,t,r){const i=Hu(t),a=t.enter("emphasis"),l=t.createTracker(r),o=l.move(i);let u=l.move(t.containerPhrasing(e,{after:i,before:o,...l.current()}));const s=u.charCodeAt(0),f=We(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(u=Le(s)+u.slice(1));const c=u.charCodeAt(u.length-1),p=We(r.after.charCodeAt(0),c,i);p.inside&&(u=u.slice(0,-1)+Le(c));const h=l.move(i);return a(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},o+u+h}function Vu(e,n,t){return t.options.emphasis||"*"}function Uu(e,n){let t=!1;return Nt(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,gt}),!!((!e.depth||e.depth<3)&&At(e)&&(n.options.setext||t))}function Wu(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),a=t.createTracker(r);if(Uu(e,t)){const f=t.enter("headingSetext"),c=t.enter("phrasing"),p=t.containerPhrasing(e,{...a.current(),before:`
23
- `,after:`
24
- `});return c(),f(),p+`
25
- `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
26
- `))+1))}const l="#".repeat(i),o=t.enter("headingAtx"),u=t.enter("phrasing");a.move(l+" ");let s=t.containerPhrasing(e,{before:"# ",after:`
27
- `,...a.current()});return/^[\t ]/.test(s)&&(s=Le(s.charCodeAt(0))+s.slice(1)),s=s?l+" "+s:l,t.options.closeAtx&&(s+=" "+l),u(),o(),s}gr.peek=Qu;function gr(e){return e.value||""}function Qu(){return"<"}dr.peek=Gu;function dr(e,n,t,r){const i=Dt(t),a=i==='"'?"Quote":"Apostrophe",l=t.enter("image");let o=t.enter("label");const u=t.createTracker(r);let s=u.move("![");return s+=u.move(t.safe(e.alt,{before:s,after:"]",...u.current()})),s+=u.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=t.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(t.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(o=t.enter("destinationRaw"),s+=u.move(t.safe(e.url,{before:s,after:e.title?" ":")",...u.current()}))),o(),e.title&&(o=t.enter(`title${a}`),s+=u.move(" "+i),s+=u.move(t.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),o()),s+=u.move(")"),l(),s}function Gu(){return"!"}xr.peek=Yu;function xr(e,n,t,r){const i=e.referenceType,a=t.enter("imageReference");let l=t.enter("label");const o=t.createTracker(r);let u=o.move("![");const s=t.safe(e.alt,{before:u,after:"]",...o.current()});u+=o.move(s+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:u,after:"]",...o.current()});return l(),t.stack=f,a(),i==="full"||!s||s!==c?u+=o.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function Yu(){return"!"}kr.peek=Ju;function kr(e,n,t){let r=e.value||"",i="`",a=-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+" ");++a<t.unsafe.length;){const l=t.unsafe[a],o=t.compilePattern(l);let u;if(l.atBreak)for(;u=o.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 Ju(){return"`"}function yr(e,n){const t=At(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}br.peek=Ku;function br(e,n,t,r){const i=Dt(t),a=i==='"'?"Quote":"Apostrophe",l=t.createTracker(r);let o,u;if(yr(e,t)){const f=t.stack;t.stack=[],o=t.enter("autolink");let c=l.move("<");return c+=l.move(t.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),o(),t.stack=f,c}o=t.enter("link"),u=t.enter("label");let s=l.move("[");return s+=l.move(t.containerPhrasing(e,{before:s,after:"](",...l.current()})),s+=l.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=l.move("<"),s+=l.move(t.safe(e.url,{before:s,after:">",...l.current()})),s+=l.move(">")):(u=t.enter("destinationRaw"),s+=l.move(t.safe(e.url,{before:s,after:e.title?" ":")",...l.current()}))),u(),e.title&&(u=t.enter(`title${a}`),s+=l.move(" "+i),s+=l.move(t.safe(e.title,{before:s,after:i,...l.current()})),s+=l.move(i),u()),s+=l.move(")"),o(),s}function Ku(e,n,t){return yr(e,t)?"<":"["}wr.peek=Zu;function wr(e,n,t,r){const i=e.referenceType,a=t.enter("linkReference");let l=t.enter("label");const o=t.createTracker(r);let u=o.move("[");const s=t.containerPhrasing(e,{before:u,after:"]",...o.current()});u+=o.move(s+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:u,after:"]",...o.current()});return l(),t.stack=f,a(),i==="full"||!s||s!==c?u+=o.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=o.move("]"),u}function Zu(){return"["}function Lt(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function Xu(e){const n=Lt(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function es(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Cr(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function ts(e,n,t,r){const i=t.enter("list"),a=t.bulletCurrent;let l=e.ordered?es(t):Lt(t);const o=e.ordered?l==="."?")":".":Xu(t);let u=n&&t.bulletLastUsed?l===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(u=!0),Cr(t)===l&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(l=o),t.bulletCurrent=l;const s=t.containerFlow(e,r);return t.bulletLastUsed=l,t.bulletCurrent=a,i(),s}function ns(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function rs(e,n,t,r){const i=ns(t);let a=t.bulletCurrent||Lt(t);n&&n.type==="list"&&n.ordered&&(a=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+a);let l=a.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(l=Math.ceil(l/4)*4);const o=t.createTracker(r);o.move(a+" ".repeat(l-a.length)),o.shift(l);const u=t.enter("listItem"),s=t.indentLines(t.containerFlow(e,o.current()),f);return u(),s;function f(c,p,h){return p?(h?"":" ".repeat(l))+c:(h?a:a+" ".repeat(l-a.length))+c}}function is(e,n,t,r){const i=t.enter("paragraph"),a=t.enter("phrasing"),l=t.containerPhrasing(e,r);return a(),i(),l}const ls=Me(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function as(e,n,t,r){return(e.children.some(function(l){return ls(l)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function os(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Sr.peek=us;function Sr(e,n,t,r){const i=os(t),a=t.enter("strong"),l=t.createTracker(r),o=l.move(i+i);let u=l.move(t.containerPhrasing(e,{after:i,before:o,...l.current()}));const s=u.charCodeAt(0),f=We(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(u=Le(s)+u.slice(1));const c=u.charCodeAt(u.length-1),p=We(r.after.charCodeAt(0),c,i);p.inside&&(u=u.slice(0,-1)+Le(c));const h=l.move(i+i);return a(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},o+u+h}function us(e,n,t){return t.options.strong||"*"}function ss(e,n,t,r){return t.safe(e.value,r)}function cs(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function fs(e,n,t){const r=(Cr(t)+(t.options.ruleSpaces?" ":"")).repeat(cs(t));return t.options.ruleSpaces?r.slice(0,-1):r}const Er={blockquote:Mu,break:wn,code:ju,definition:qu,emphasis:mr,hardBreak:wn,heading:Wu,html:gr,image:dr,imageReference:xr,inlineCode:kr,link:br,linkReference:wr,list:ts,listItem:rs,paragraph:is,root:as,strong:Sr,text:ss,thematicBreak:fs};function hs(){return{enter:{table:ps,tableData:Cn,tableHeader:Cn,tableRow:gs},exit:{codeText:ds,table:ms,tableData:st,tableHeader:st,tableRow:st}}}function ps(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function ms(e){this.exit(e),this.data.inTable=void 0}function gs(e){this.enter({type:"tableRow",children:[]},e)}function st(e){this.exit(e)}function Cn(e){this.enter({type:"tableCell",children:[]},e)}function ds(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,xs));const t=this.stack[this.stack.length-1];Q(t.type==="inlineCode"),t.value=n,this.exit(e)}function xs(e,n){return n==="|"?n:e}function ks(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,a=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
28
- `,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:o}};function l(h,d,y,I){return s(f(h,y,I),h.align)}function o(h,d,y,I){const w=c(h,y,I),C=s([w]);return C.slice(0,C.indexOf(`
29
- `))}function u(h,d,y,I){const w=y.enter("tableCell"),C=y.enter("phrasing"),E=y.containerPhrasing(h,{...I,before:a,after:a});return C(),w(),E}function s(h,d){return Kr(h,{align:d,alignDelimiters:r,padding:t,stringLength:i})}function f(h,d,y){const I=h.children;let w=-1;const C=[],E=d.enter("table");for(;++w<I.length;)C[w]=c(I[w],d,y);return E(),C}function c(h,d,y){const I=h.children;let w=-1;const C=[],E=d.enter("tableRow");for(;++w<I.length;)C[w]=u(I[w],h,d,y);return E(),C}function p(h,d,y){let I=Er.inlineCode(h,d,y);return y.stack.includes("tableCell")&&(I=I.replace(/\|/g,"\\$&")),I}}function ys(){return{exit:{taskListCheckValueChecked:Sn,taskListCheckValueUnchecked:Sn,paragraph:ws}}}function bs(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Cs}}}function Sn(e){const n=this.stack[this.stack.length-2];Q(n.type==="listItem"),n.checked=e.type==="taskListCheckValueChecked"}function ws(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];Q(t.type==="paragraph");const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let a=-1,l;for(;++a<i.length;){const o=i[a];if(o.type==="paragraph"){l=o;break}}l===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Cs(e,n,t,r){const i=e.children[0],a=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",o=t.createTracker(r);a&&o.move(l);let u=Er.listItem(e,n,t,{...r,...o.current()});return a&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),u;function s(f){return f+l}}function Ss(){return[lu(),Fu(),zu(),hs(),ys()]}function Es(e){return{extensions:[au(),Au(e),Pu(),ks(e),bs()]}}const Is={tokenize:Ps,partial:!0},Ir={tokenize:Ds,partial:!0},Fr={tokenize:Ls,partial:!0},Ar={tokenize:_s,partial:!0},Fs={tokenize:Ms,partial:!0},Tr={name:"wwwAutolink",tokenize:Ns,previous:zr},Nr={name:"protocolAutolink",tokenize:zs,previous:Pr},ce={name:"emailAutolink",tokenize:Ts,previous:Dr},le={};function As(){return{text:le}}let de=48;for(;de<123;)le[de]=ce,de++,de===58?de=65:de===91&&(de=97);le[43]=ce;le[45]=ce;le[46]=ce;le[95]=ce;le[72]=[ce,Nr];le[104]=[ce,Nr];le[87]=[ce,Tr];le[119]=[ce,Tr];function Ts(e,n,t){const r=this;let i,a;return l;function l(c){return!yt(c)||!Dr.call(r,r.previous)||_t(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),o(c))}function o(c){return yt(c)?(e.consume(c),o):c===64?(e.consume(c),u):t(c)}function u(c){return c===46?e.check(Fs,f,s)(c):c===45||c===95||G(c)?(a=!0,e.consume(c),u):f(c)}function s(c){return e.consume(c),i=!0,u}function f(c){return a&&i&&Y(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Ns(e,n,t){const r=this;return i;function i(l){return l!==87&&l!==119||!zr.call(r,r.previous)||_t(r.events)?t(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Is,e.attempt(Ir,e.attempt(Fr,a),t),t)(l))}function a(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function zs(e,n,t){const r=this;let i="",a=!1;return l;function l(c){return(c===72||c===104)&&Pr.call(r,r.previous)&&!_t(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),o):t(c)}function o(c){if(Y(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),o;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),u}return t(c)}function u(c){return c===47?(e.consume(c),a?s:(a=!0,u)):t(c)}function s(c){return c===null||Ue(c)||$(c)||xe(c)||Ge(c)?t(c):e.attempt(Ir,e.attempt(Fr,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function Ps(e,n,t){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),a):t(l)}function a(l){return l===null?t(l):n(l)}}function Ds(e,n,t){let r,i,a;return l;function l(s){return s===46||s===95?e.check(Ar,u,o)(s):s===null||$(s)||xe(s)||s!==45&&Ge(s)?u(s):(a=!0,e.consume(s),l)}function o(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),l}function u(s){return i||r||!a?t(s):n(s)}}function Ls(e,n){let t=0,r=0;return i;function i(l){return l===40?(t++,e.consume(l),i):l===41&&r<t?a(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Ar,n,a)(l):l===null||$(l)||xe(l)?n(l):(e.consume(l),i)}function a(l){return l===41&&r++,e.consume(l),i}}function _s(e,n,t){return r;function r(o){return o===33||o===34||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===63||o===95||o===126?(e.consume(o),r):o===38?(e.consume(o),a):o===93?(e.consume(o),i):o===60||o===null||$(o)||xe(o)?n(o):t(o)}function i(o){return o===null||o===40||o===91||$(o)||xe(o)?n(o):r(o)}function a(o){return Y(o)?l(o):t(o)}function l(o){return o===59?(e.consume(o),r):Y(o)?(e.consume(o),l):t(o)}}function Ms(e,n,t){return r;function r(a){return e.consume(a),i}function i(a){return G(a)?t(a):n(a)}}function zr(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||$(e)}function Pr(e){return!Y(e)}function Dr(e){return!(e===47||yt(e))}function yt(e){return e===43||e===45||e===46||e===95||G(e)}function _t(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const Os={tokenize:Vs,partial:!0};function Bs(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:$s,continuation:{tokenize:qs},exit:Hs}},text:{91:{name:"gfmFootnoteCall",tokenize:js},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Rs,resolveTo:vs}}}}function Rs(e,n,t){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){l=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return o;function o(u){if(!l||!l._balanced)return t(u);const s=ie(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==94||!a.includes(s.slice(1))?t(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),n(u))}}function vs(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",a,n],["enter",l,n],["exit",l,n],["exit",a,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...o),e}function js(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,l;return o;function o(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),u}function u(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(a>999||c===93&&!l||c===null||c===91||$(c))return t(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(ie(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return $(c)||(l=!0),a++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),a++,s):s(c)}}function $s(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,l=0,o;return u;function u(d){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(d){return d===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(d)}function f(d){if(l>999||d===93&&!o||d===null||d===91||$(d))return t(d);if(d===93){e.exit("chunkString");const y=e.exit("gfmFootnoteDefinitionLabelString");return a=ie(r.sliceSerialize(y)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return $(d)||(o=!0),l++,e.consume(d),d===92?c:f}function c(d){return d===91||d===92||d===93?(e.consume(d),l++,f):f(d)}function p(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),i.includes(a)||i.push(a),P(e,h,"gfmFootnoteDefinitionWhitespace")):t(d)}function h(d){return n(d)}}function qs(e,n,t){return e.check(_e,n,e.attempt(Os,n,t))}function Hs(e){e.exit("gfmFootnoteDefinition")}function Vs(e,n,t){const r=this;return P(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?n(a):t(a)}}function Us(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,o){let u=-1;for(;++u<l.length;)if(l[u][0]==="enter"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._close){let s=u;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[u][1].end.offset-l[u][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[u][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[u][1].end)},c={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[u][1].start)},p=[["enter",f,o],["enter",l[s][1],o],["exit",l[s][1],o],["enter",c,o]],h=o.parser.constructs.insideSpan.null;h&&Z(p,p.length,0,Ye(h,l.slice(s+1,u),o)),Z(p,p.length,0,[["exit",c,o],["enter",l[u][1],o],["exit",l[u][1],o],["exit",f,o]]),Z(l,s-1,u-s+3,p),u=s+p.length-2;break}}for(u=-1;++u<l.length;)l[u][1].type==="strikethroughSequenceTemporary"&&(l[u][1].type="data");return l}function a(l,o,u){const s=this.previous,f=this.events;let c=0;return p;function p(d){return s===126&&f[f.length-1][1].type!=="characterEscape"?u(d):(l.enter("strikethroughSequenceTemporary"),h(d))}function h(d){const y=Ee(s);if(d===126)return c>1?u(d):(l.consume(d),c++,h);if(c<2&&!t)return u(d);const I=l.exit("strikethroughSequenceTemporary"),w=Ee(d);return I._open=!w||w===2&&!!y,I._close=!y||y===2&&!!w,o(d)}}}class Ws{constructor(){this.map=[]}add(n,t,r){Qs(this,n,t,r)}consume(n){if(this.map.sort(function(a,l){return a[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const a of i)n.push(a);i=r.pop()}this.map.length=0}}function Qs(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function Gs(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const a=r.length-1;r[a]=r[a]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function Ys(){return{flow:{null:{name:"table",tokenize:Js,resolveAll:Ks}}}}function Js(e,n,t){const r=this;let i=0,a=0,l;return o;function o(x){let A=r.events.length-1;for(;A>-1;){const q=r.events[A][1].type;if(q==="lineEnding"||q==="linePrefix")A--;else break}const T=A>-1?r.events[A][1].type:null,v=T==="tableHead"||T==="tableRow"?b:u;return v===b&&r.parser.lazy[r.now().line]?t(x):v(x)}function u(x){return e.enter("tableHead"),e.enter("tableRow"),s(x)}function s(x){return x===124||(l=!0,a+=1),f(x)}function f(x){return x===null?t(x):F(x)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h):t(x):D(x)?P(e,f,"whitespace")(x):(a+=1,l&&(l=!1,i+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(x)))}function c(x){return x===null||x===124||$(x)?(e.exit("data"),f(x)):(e.consume(x),x===92?p:c)}function p(x){return x===92||x===124?(e.consume(x),c):c(x)}function h(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(x):(e.enter("tableDelimiterRow"),l=!1,D(x)?P(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):d(x))}function d(x){return x===45||x===58?I(x):x===124?(l=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),y):O(x)}function y(x){return D(x)?P(e,I,"whitespace")(x):I(x)}function I(x){return x===58?(a+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),w):x===45?(a+=1,w(x)):x===null||F(x)?L(x):O(x)}function w(x){return x===45?(e.enter("tableDelimiterFiller"),C(x)):O(x)}function C(x){return x===45?(e.consume(x),C):x===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(x))}function E(x){return D(x)?P(e,L,"whitespace")(x):L(x)}function L(x){return x===124?d(x):x===null||F(x)?!l||i!==a?O(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(x)):O(x)}function O(x){return t(x)}function b(x){return e.enter("tableRow"),_(x)}function _(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),_):x===null||F(x)?(e.exit("tableRow"),n(x)):D(x)?P(e,_,"whitespace")(x):(e.enter("data"),R(x))}function R(x){return x===null||x===124||$(x)?(e.exit("data"),_(x)):(e.consume(x),x===92?z:R)}function z(x){return x===92||x===124?(e.consume(x),R):R(x)}}function Ks(e,n){let t=-1,r=!0,i=0,a=[0,0,0,0],l=[0,0,0,0],o=!1,u=0,s,f,c;const p=new Ws;for(;++t<e.length;){const h=e[t],d=h[1];h[0]==="enter"?d.type==="tableHead"?(o=!1,u!==0&&(En(p,n,u,s,f),f=void 0,u=0),s={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(t,0,[["enter",s,n]])):d.type==="tableRow"||d.type==="tableDelimiterRow"?(r=!0,c=void 0,a=[0,0,0,0],l=[0,t+1,0,0],o&&(o=!1,f={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(t,0,[["enter",f,n]])),i=d.type==="tableDelimiterRow"?2:f?3:1):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(a[1]!==0&&(l[0]=l[1],c=ve(p,n,a,i,void 0,c),a=[0,0,0,0]),l[2]=t)):d.type==="tableCellDivider"&&(r?r=!1:(a[1]!==0&&(l[0]=l[1],c=ve(p,n,a,i,void 0,c)),a=l,l=[a[1],t,0,0])):d.type==="tableHead"?(o=!0,u=t):d.type==="tableRow"||d.type==="tableDelimiterRow"?(u=t,a[1]!==0?(l[0]=l[1],c=ve(p,n,a,i,t,c)):l[1]!==0&&(c=ve(p,n,l,i,t,c)),i=0):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(l[3]=t)}for(u!==0&&En(p,n,u,s,f),p.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Gs(n.events,t))}return e}function ve(e,n,t,r,i,a){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",o="tableContent";t[0]!==0&&(a.end=Object.assign({},Ce(n.events,t[0])),e.add(t[0],0,[["exit",a,n]]));const u=Ce(n.events,t[1]);if(a={type:l,start:Object.assign({},u),end:Object.assign({},u)},e.add(t[1],0,[["enter",a,n]]),t[2]!==0){const s=Ce(n.events,t[2]),f=Ce(n.events,t[3]),c={type:o,start:Object.assign({},s),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const p=n.events[t[2]],h=n.events[t[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",t[3]>t[2]+1){const d=t[2]+1,y=t[3]-t[2]-1;e.add(d,y,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(a.end=Object.assign({},Ce(n.events,i)),e.add(i,0,[["exit",a,n]]),a=void 0),a}function En(e,n,t,r,i){const a=[],l=Ce(n.events,t);i&&(i.end=Object.assign({},l),a.push(["exit",i,n])),r.end=Object.assign({},l),a.push(["exit",r,n]),e.add(t+1,0,a)}function Ce(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const Zs={name:"tasklistCheck",tokenize:ec};function Xs(){return{text:{91:Zs}}}function ec(e,n,t){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),a)}function a(u){return $(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),l):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),l):t(u)}function l(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):t(u)}function o(u){return F(u)?n(u):D(u)?e.check({tokenize:tc},n,t)(u):t(u)}}function tc(e,n,t){return P(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function nc(e){return jn([As(),Bs(),Us(e),Ys(),Xs()])}const rc={};function lf(e){const n=this,t=e||rc,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(nc(t)),a.push(Ss()),l.push(Es(t))}function ic(){return{enter:{mathFlow:e,mathFlowFenceMeta:n,mathText:a},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:t,mathFlowValue:o,mathText:l,mathTextData:o}};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];Q(s.type==="math"),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,""),f=this.stack[this.stack.length-1];Q(f.type==="math"),this.exit(u),f.value=s;const c=f.data.hChildren[0];Q(c.type==="element"),Q(c.tagName==="code"),c.children.push({type:"text",value:s}),this.data.mathFlowInside=void 0}function a(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function l(u){const s=this.resume(),f=this.stack[this.stack.length-1];Q(f.type==="inlineMath"),this.exit(u),f.value=s,f.data.hChildren.push({type:"text",value:s})}function o(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function lc(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
30
- `,inConstruct:"mathFlowMeta"},{character:"$",after:n?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:t,inlineMath:r}};function t(a,l,o,u){const s=a.value||"",f=o.createTracker(u),c="$".repeat(Math.max(Dn(s,"$")+1,2)),p=o.enter("mathFlow");let h=f.move(c);if(a.meta){const d=o.enter("mathFlowMeta");h+=f.move(o.safe(a.meta,{after:`
31
- `,before:h,encode:["$"],...f.current()})),d()}return h+=f.move(`
32
- `),s&&(h+=f.move(s+`
33
- `)),h+=f.move(c),p(),h}function r(a,l,o){let u=a.value||"",s=1;for(n||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<o.unsafe.length;){const p=o.unsafe[c];if(!p.atBreak)continue;const h=o.compilePattern(p);let d;for(;d=h.exec(u);){let y=d.index;u.codePointAt(y)===10&&u.codePointAt(y-1)===13&&y--,u=u.slice(0,y)+" "+u.slice(d.index+1)}}return f+u+f}function i(){return"$"}}const ac={tokenize:oc,concrete:!0,name:"mathFlow"},In={tokenize:uc,partial:!0};function oc(e,n,t){const r=this,i=r.events[r.events.length-1],a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let l=0;return o;function o(C){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),u(C)}function u(C){return C===36?(e.consume(C),l++,u):l<2?t(C):(e.exit("mathFlowFenceSequence"),P(e,s,"whitespace")(C))}function s(C){return C===null||F(C)?c(C):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),f(C))}function f(C){return C===null||F(C)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),c(C)):C===36?t(C):(e.consume(C),f)}function c(C){return e.exit("mathFlowFence"),r.interrupt?n(C):e.attempt(In,p,I)(C)}function p(C){return e.attempt({tokenize:w,partial:!0},I,h)(C)}function h(C){return(a?P(e,d,"linePrefix",a+1):d)(C)}function d(C){return C===null?I(C):F(C)?e.attempt(In,p,I)(C):(e.enter("mathFlowValue"),y(C))}function y(C){return C===null||F(C)?(e.exit("mathFlowValue"),d(C)):(e.consume(C),y)}function I(C){return e.exit("mathFlow"),n(C)}function w(C,E,L){let O=0;return P(C,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function b(z){return C.enter("mathFlowFence"),C.enter("mathFlowFenceSequence"),_(z)}function _(z){return z===36?(O++,C.consume(z),_):O<l?L(z):(C.exit("mathFlowFenceSequence"),P(C,R,"whitespace")(z))}function R(z){return z===null||F(z)?(C.exit("mathFlowFence"),E(z)):L(z)}}}function uc(e,n,t){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),a)}function a(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function sc(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),{tokenize:r,resolve:cc,previous:fc,name:"mathText"};function r(i,a,l){let o=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),o++,c):o<2&&!t?l(y):(i.exit("mathTextSequence"),p(y))}function p(y){return y===null?l(y):y===36?(s=i.enter("mathTextSequence"),u=0,d(y)):y===32?(i.enter("space"),i.consume(y),i.exit("space"),p):F(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||F(y)?(i.exit("mathTextData"),p(y)):(i.consume(y),h)}function d(y){return y===36?(i.consume(y),u++,d):u===o?(i.exit("mathTextSequence"),i.exit("mathText"),a(y)):(s.type="mathTextData",h(y))}}}function cc(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="mathTextData"){e[n][1].type="mathTextPadding",e[t][1].type="mathTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="mathTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function fc(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function hc(e){return{flow:{36:ac},text:{36:sc(e)}}}const pc={};function af(e){const n=this,t=e||pc,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(hc(t)),a.push(ic()),l.push(lc(t))}const mc=/^>|^->|<!--|-->|--!>|<!-$/g,gc=[">"],dc=["<",">"];function xc(e,n,t,r){return r.settings.bogusComments?"<?"+Se(e.value,Object.assign({},r.settings.characterReferences,{subset:gc}))+">":"<!--"+e.value.replace(mc,i)+"-->";function i(a){return Se(a,Object.assign({},r.settings.characterReferences,{subset:dc}))}}function kc(e,n,t,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}const H=_r(1),Lr=_r(-1),yc=[];function _r(e){return n;function n(t,r,i){const a=t?t.children:yc;let l=(r||0)+e,o=a[l];if(!i)for(;o&&Qe(o);)l+=e,o=a[l];return o}}const bc={}.hasOwnProperty;function Mr(e){return n;function n(t,r,i){return bc.call(e,t.tagName)&&e[t.tagName](t,r,i)}}const Mt=Mr({body:Cc,caption:ct,colgroup:ct,dd:Fc,dt:Ic,head:ct,html:wc,li:Ec,optgroup:Ac,option:Tc,p:Sc,rp:Fn,rt:Fn,tbody:zc,td:An,tfoot:Pc,th:An,thead:Nc,tr:Dc});function ct(e,n,t){const r=H(t,n,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&Qe(r.value.charAt(0)))}function wc(e,n,t){const r=H(t,n);return!r||r.type!=="comment"}function Cc(e,n,t){const r=H(t,n);return!r||r.type!=="comment"}function Sc(e,n,t){const r=H(t,n);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function Ec(e,n,t){const r=H(t,n);return!r||r.type==="element"&&r.tagName==="li"}function Ic(e,n,t){const r=H(t,n);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function Fc(e,n,t){const r=H(t,n);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function Fn(e,n,t){const r=H(t,n);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Ac(e,n,t){const r=H(t,n);return!r||r.type==="element"&&r.tagName==="optgroup"}function Tc(e,n,t){const r=H(t,n);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Nc(e,n,t){const r=H(t,n);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function zc(e,n,t){const r=H(t,n);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Pc(e,n,t){return!H(t,n)}function Dc(e,n,t){const r=H(t,n);return!r||r.type==="element"&&r.tagName==="tr"}function An(e,n,t){const r=H(t,n);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Lc=Mr({body:Oc,colgroup:Bc,head:Mc,html:_c,tbody:Rc});function _c(e){const n=H(e,-1);return!n||n.type!=="comment"}function Mc(e){const n=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(n.has(r.tagName))return!1;n.add(r.tagName)}const t=e.children[0];return!t||t.type==="element"}function Oc(e){const n=H(e,-1,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&Qe(n.value.charAt(0)))&&!(n.type==="element"&&(n.tagName==="meta"||n.tagName==="link"||n.tagName==="script"||n.tagName==="style"||n.tagName==="template"))}function Bc(e,n,t){const r=Lr(t,n),i=H(e,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&Mt(r,t.children.indexOf(r),t)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function Rc(e,n,t){const r=Lr(t,n),i=H(e,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Mt(r,t.children.indexOf(r),t)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const je={name:[[`
34
- \f\r &/=>`.split(""),`
35
- \f\r "&'/=>\``.split("")],[`\0
36
- \f\r "&'/<=>`.split(""),`\0
37
- \f\r "&'/<=>\``.split("")]],unquoted:[[`
38
- \f\r &>`.split(""),`\0
39
- \f\r "&'<=>\``.split("")],[`\0
40
- \f\r "&'<=>\``.split(""),`\0
41
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function vc(e,n,t,r){const i=r.schema,a=i.space==="svg"?!1:r.settings.omitOptionalTags;let l=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const o=[];let u;i.space==="html"&&e.tagName==="svg"&&(r.schema=Ie);const s=jc(r,e.properties),f=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,f&&(l=!1),(s||!a||!Lc(e,n,t))&&(o.push("<",e.tagName,s?" "+s:""),l&&(i.space==="svg"||r.settings.closeSelfClosing)&&(u=s.charAt(s.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&o.push(" "),o.push("/")),o.push(">")),o.push(f),!l&&(!a||!Mt(e,n,t))&&o.push("</"+e.tagName+">"),o.join("")}function jc(e,n){const t=[];let r=-1,i;if(n){for(i in n)if(n[i]!==null&&n[i]!==void 0){const a=$c(e,i,n[i]);a&&t.push(a)}}for(;++r<t.length;){const a=e.settings.tightAttributes?t[r].charAt(t[r].length-1):void 0;r!==t.length-1&&a!=='"'&&a!=="'"&&(t[r]+=" ")}return t.join("")}function $c(e,n,t){const r=wt(e.schema,n),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,a=e.settings.allowDangerousCharacters?0:1;let l=e.quote,o;if(r.overloadedBoolean&&(t===r.attribute||t==="")?t=!0:(r.boolean||r.overloadedBoolean)&&(typeof t!="string"||t===r.attribute||t==="")&&(t=!!t),t==null||t===!1||typeof t=="number"&&Number.isNaN(t))return"";const u=Se(r.attribute,Object.assign({},e.settings.characterReferences,{subset:je.name[i][a]}));return t===!0||(t=Array.isArray(t)?(r.commaSeparated?Nn:zn)(t,{padLeft:!e.settings.tightCommaSeparatedLists}):String(t),e.settings.collapseEmptyAttributes&&!t)?u:(e.settings.preferUnquoted&&(o=Se(t,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:je.unquoted[i][a]}))),o!==t&&(e.settings.quoteSmart&&Ve(t,l)>Ve(t,e.alternative)&&(l=e.alternative),o=l+Se(t,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?je.single:je.double)[i][a],attribute:!0}))+l),u+(o&&"="+o))}const qc=["<","&"];function Or(e,n,t,r){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?e.value:Se(e.value,Object.assign({},r.settings.characterReferences,{subset:qc}))}function Hc(e,n,t,r){return r.settings.allowDangerousHtml?e.value:Or(e,n,t,r)}function Vc(e,n,t,r){return r.all(e)}const Uc=Zr("type",{invalid:Wc,unknown:Qc,handlers:{comment:xc,doctype:kc,element:vc,raw:Hc,root:Vc,text:Or}});function Wc(e){throw new Error("Expected node, not `"+e+"`")}function Qc(e){const n=e;throw new Error("Cannot compile unknown node `"+n.type+"`")}const Gc={},Yc={},Jc=[];function of(e,n){const t=Gc,r=t.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Kc,all:Zc,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||Xr,characterReferences:t.characterReferences||Yc,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?Ie:bt,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Kc(e,n,t){return Uc(e,n,t,this)}function Zc(e){const n=[],t=e&&e.children||Jc;let r=-1;for(;++r<t.length;)n[r]=this.one(t[r],r,e);return n.join("")}export{tf as M,lo as S,of as a,af as b,nf as f,lf as r,$e as s,rf as t,nr as v};