@linkshell/gateway 0.6.39 → 0.6.40

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 (91) hide show
  1. package/dist/gateway/tsconfig.tsbuildinfo +1 -1
  2. package/dist/wire/src/envelopes.d.ts +53 -0
  3. package/dist/wire/src/envelopes.js +251 -0
  4. package/dist/wire/src/envelopes.js.map +1 -0
  5. package/dist/wire/src/index.d.ts +2 -0
  6. package/dist/wire/src/index.js +2 -0
  7. package/dist/wire/src/index.js.map +1 -1
  8. package/dist/wire/src/model.d.ts +32 -0
  9. package/dist/wire/src/model.js +24 -0
  10. package/dist/wire/src/model.js.map +1 -1
  11. package/dist/wire/src/rpc-mcp.d.ts +199 -0
  12. package/dist/wire/src/rpc-mcp.js +78 -0
  13. package/dist/wire/src/rpc-mcp.js.map +1 -0
  14. package/dist/wire/src/rpc.d.ts +494 -4
  15. package/dist/wire/src/rpc.js +30 -2
  16. package/dist/wire/src/rpc.js.map +1 -1
  17. package/dist/wire/src/updates.d.ts +211 -0
  18. package/dist/wire/src/updates.js +14 -1
  19. package/dist/wire/src/updates.js.map +1 -1
  20. package/package.json +2 -2
  21. package/web-client/assets/astro-DOly5024.js +1 -0
  22. package/web-client/assets/bash-Yzrsuije.js +1 -0
  23. package/web-client/assets/bat-CickPsom.js +1 -0
  24. package/web-client/assets/c-BIGW1oBm.js +1 -0
  25. package/web-client/assets/clojure-P80f7IUj.js +1 -0
  26. package/web-client/assets/cpp-DddhVWhK.js +1 -0
  27. package/web-client/assets/csharp-B_TYUkTI.js +1 -0
  28. package/web-client/assets/css-Z72CF80r.js +1 -0
  29. package/web-client/assets/dart-CtKP3W-j.js +1 -0
  30. package/web-client/assets/diff-D97Zzqfu.js +1 -0
  31. package/web-client/assets/dockerfile-BcOcwvcX.js +1 -0
  32. package/web-client/assets/elixir-DkJLSxtU.js +1 -0
  33. package/web-client/assets/go-C27-OAKa.js +1 -0
  34. package/web-client/assets/graphql-ChdNCCLP.js +1 -0
  35. package/web-client/assets/haskell-Df6bDoY_.js +1 -0
  36. package/web-client/assets/hcl-BWvSN4gD.js +1 -0
  37. package/web-client/assets/highlight-engine-8FCPMBLW.js +145 -0
  38. package/web-client/assets/html-BlS82ilI.js +1 -0
  39. package/web-client/assets/index-D_DkC1qC.css +1 -0
  40. package/web-client/assets/index-e11uQw2o.js +2 -0
  41. package/web-client/assets/ini-BEwlwnbL.js +1 -0
  42. package/web-client/assets/java-CylS5w8V.js +1 -0
  43. package/web-client/assets/javascript-wDzz0qaB.js +1 -0
  44. package/web-client/assets/json-Cp-IABpG.js +1 -0
  45. package/web-client/assets/jsonc-Des-eS-w.js +1 -0
  46. package/web-client/assets/jsx-g9-lgVsj.js +1 -0
  47. package/web-client/assets/kotlin-BdnUsdx6.js +1 -0
  48. package/web-client/assets/latex-BK3a6r9z.js +1 -0
  49. package/web-client/assets/less-B1dDrJ26.js +1 -0
  50. package/web-client/assets/lua-BaeVxFsk.js +1 -0
  51. package/web-client/assets/makefile-CHLpvVh8.js +1 -0
  52. package/web-client/assets/mark-glyph-D_OhbJdd.png +0 -0
  53. package/web-client/assets/markdown-Cvjx9yec.js +1 -0
  54. package/web-client/assets/markdown-gsWh3zpl.js +53 -0
  55. package/web-client/assets/nginx-BpAMiNFr.js +1 -0
  56. package/web-client/assets/nix-CwoSXNpI.js +1 -0
  57. package/web-client/assets/objective-c-DXmwc3jG.js +1 -0
  58. package/web-client/assets/perl-5klg-GXX.js +1 -0
  59. package/web-client/assets/php-DoruYMF0.js +1 -0
  60. package/web-client/assets/postcss-DnzrXTVv.js +1 -0
  61. package/web-client/assets/powershell-Dd0kTxKP.js +1 -0
  62. package/web-client/assets/prisma-Vru482bI.js +1 -0
  63. package/web-client/assets/proto-C7zT0LnQ.js +1 -0
  64. package/web-client/assets/python-B6aJPvgy.js +1 -0
  65. package/web-client/assets/{qr-scanner.min-D2ZjgKDR.js → qr-scanner.min-5hxUn9oI.js} +1 -1
  66. package/web-client/assets/r-Cf5RLm7j.js +1 -0
  67. package/web-client/assets/render-CugEn_RJ.css +1 -0
  68. package/web-client/assets/render-D_iGMdQB.js +757 -0
  69. package/web-client/assets/ruby-KQScI-mG.js +1 -0
  70. package/web-client/assets/rust-DPvrY3IQ.js +1 -0
  71. package/web-client/assets/sass-Cj5Yp3dK.js +1 -0
  72. package/web-client/assets/scala-CqE71os6.js +1 -0
  73. package/web-client/assets/scss-Cw6XMfVs.js +1 -0
  74. package/web-client/assets/sql-DkvoVjww.js +1 -0
  75. package/web-client/assets/svelte-DoIXUgJc.js +1 -0
  76. package/web-client/assets/swift-C2oV4EkX.js +1 -0
  77. package/web-client/assets/terraform-BETggiCN.js +1 -0
  78. package/web-client/assets/toml-vGWfd6FD.js +1 -0
  79. package/web-client/assets/tsx-COt5Ahok.js +1 -0
  80. package/web-client/assets/typescript-BPQ3VLAy.js +1 -0
  81. package/web-client/assets/vim-CJc9bBzg.js +1 -0
  82. package/web-client/assets/vue-CwSeJimo.js +1 -0
  83. package/web-client/assets/xml-sdJ4AIDG.js +1 -0
  84. package/web-client/assets/yaml-Buea-lGh.js +1 -0
  85. package/web-client/assets/zig-VOosw3JB.js +1 -0
  86. package/web-client/index.html +2 -2
  87. package/web-client/assets/index-BRQrM2fM.css +0 -1
  88. package/web-client/assets/index-Df5fih6w.js +0 -2
  89. package/web-client/assets/markdown-SZOrMO_3.js +0 -45
  90. package/web-client/assets/render-C5oxWJQR.js +0 -647
  91. package/web-client/assets/render-thZKmerw.css +0 -1
@@ -1,45 +0,0 @@
1
- function Ai(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function Yn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gn={exports:{}},Be={};/**
2
- * @license React
3
- * react-jsx-runtime.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var St;function vi(){if(St)return Be;St=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var l=null;if(o!==void 0&&(l=""+o),i.key!==void 0&&(l=""+i.key),"key"in i){o={};for(var u in i)u!=="key"&&(o[u]=i[u])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:o}}return Be.Fragment=t,Be.jsx=n,Be.jsxs=n,Be}var Ct;function _i(){return Ct||(Ct=1,gn.exports=vi()),gn.exports}var dn=_i(),yn={exports:{}},H={};/**
10
- * @license React
11
- * react.production.js
12
- *
13
- * Copyright (c) Meta Platforms, Inc. and affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Et;function Pi(){if(Et)return H;Et=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),a=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),f=Symbol.for("react.activity"),h=Symbol.iterator;function p(d){return d===null||typeof d!="object"?null:(d=h&&d[h]||d["@@iterator"],typeof d=="function"?d:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function k(d,E,m){this.props=d,this.context=E,this.refs=C,this.updater=m||y}k.prototype.isReactComponent={},k.prototype.setState=function(d,E){if(typeof d!="object"&&typeof d!="function"&&d!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,d,E,"setState")},k.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function v(){}v.prototype=k.prototype;function T(d,E,m){this.props=d,this.context=E,this.refs=C,this.updater=m||y}var M=T.prototype=new v;M.constructor=T,S(M,k.prototype),M.isPureReactComponent=!0;var F=Array.isArray;function w(){}var P={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function G(d,E,m){var L=m.ref;return{$$typeof:e,type:d,key:E,ref:L!==void 0?L:null,props:m}}function x(d,E){return G(d.type,E,d.props)}function _(d){return typeof d=="object"&&d!==null&&d.$$typeof===e}function D(d){var E={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(m){return E[m]})}var Y=/\/+/g;function z(d,E){return typeof d=="object"&&d!==null&&d.key!=null?D(""+d.key):E.toString(36)}function R(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(w,w):(d.status="pending",d.then(function(E){d.status==="pending"&&(d.status="fulfilled",d.value=E)},function(E){d.status==="pending"&&(d.status="rejected",d.reason=E)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function W(d,E,m,L,V){var N=typeof d;(N==="undefined"||N==="boolean")&&(d=null);var Q=!1;if(d===null)Q=!0;else switch(N){case"bigint":case"string":case"number":Q=!0;break;case"object":switch(d.$$typeof){case e:case t:Q=!0;break;case c:return Q=d._init,W(Q(d._payload),E,m,L,V)}}if(Q)return V=V(d),Q=L===""?"."+z(d,0):L,F(V)?(m="",Q!=null&&(m=Q.replace(Y,"$&/")+"/"),W(V,E,m,"",function(Ce){return Ce})):V!=null&&(_(V)&&(V=x(V,m+(V.key==null||d&&d.key===V.key?"":(""+V.key).replace(Y,"$&/")+"/")+Q)),E.push(V)),1;Q=0;var re=L===""?".":L+":";if(F(d))for(var ne=0;ne<d.length;ne++)L=d[ne],N=re+z(L,ne),Q+=W(L,E,m,N,V);else if(ne=p(d),typeof ne=="function")for(d=ne.call(d),ne=0;!(L=d.next()).done;)L=L.value,N=re+z(L,ne++),Q+=W(L,E,m,N,V);else if(N==="object"){if(typeof d.then=="function")return W(R(d),E,m,L,V);throw E=String(d),Error("Objects are not valid as a React child (found: "+(E==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":E)+"). If you meant to render a collection of children, use an array instead.")}return Q}function ee(d,E,m){if(d==null)return d;var L=[],V=0;return W(d,L,"","",function(N){return E.call(m,N,V++)}),L}function fe(d){if(d._status===-1){var E=d._result;E=E(),E.then(function(m){(d._status===0||d._status===-1)&&(d._status=1,d._result=m)},function(m){(d._status===0||d._status===-1)&&(d._status=2,d._result=m)}),d._status===-1&&(d._status=0,d._result=E)}if(d._status===1)return d._result.default;throw d._result}var me=typeof reportError=="function"?reportError:function(d){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var E=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof d=="object"&&d!==null&&typeof d.message=="string"?String(d.message):String(d),error:d});if(!window.dispatchEvent(E))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",d);return}console.error(d)},g={map:ee,forEach:function(d,E,m){ee(d,function(){E.apply(this,arguments)},m)},count:function(d){var E=0;return ee(d,function(){E++}),E},toArray:function(d){return ee(d,function(E){return E})||[]},only:function(d){if(!_(d))throw Error("React.Children.only expected to receive a single React element child.");return d}};return H.Activity=f,H.Children=g,H.Component=k,H.Fragment=n,H.Profiler=i,H.PureComponent=T,H.StrictMode=r,H.Suspense=s,H.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,H.__COMPILER_RUNTIME={__proto__:null,c:function(d){return P.H.useMemoCache(d)}},H.cache=function(d){return function(){return d.apply(null,arguments)}},H.cacheSignal=function(){return null},H.cloneElement=function(d,E,m){if(d==null)throw Error("The argument must be a React element, but you passed "+d+".");var L=S({},d.props),V=d.key;if(E!=null)for(N in E.key!==void 0&&(V=""+E.key),E)!$.call(E,N)||N==="key"||N==="__self"||N==="__source"||N==="ref"&&E.ref===void 0||(L[N]=E[N]);var N=arguments.length-2;if(N===1)L.children=m;else if(1<N){for(var Q=Array(N),re=0;re<N;re++)Q[re]=arguments[re+2];L.children=Q}return G(d.type,V,L)},H.createContext=function(d){return d={$$typeof:l,_currentValue:d,_currentValue2:d,_threadCount:0,Provider:null,Consumer:null},d.Provider=d,d.Consumer={$$typeof:o,_context:d},d},H.createElement=function(d,E,m){var L,V={},N=null;if(E!=null)for(L in E.key!==void 0&&(N=""+E.key),E)$.call(E,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(V[L]=E[L]);var Q=arguments.length-2;if(Q===1)V.children=m;else if(1<Q){for(var re=Array(Q),ne=0;ne<Q;ne++)re[ne]=arguments[ne+2];V.children=re}if(d&&d.defaultProps)for(L in Q=d.defaultProps,Q)V[L]===void 0&&(V[L]=Q[L]);return G(d,N,V)},H.createRef=function(){return{current:null}},H.forwardRef=function(d){return{$$typeof:u,render:d}},H.isValidElement=_,H.lazy=function(d){return{$$typeof:c,_payload:{_status:-1,_result:d},_init:fe}},H.memo=function(d,E){return{$$typeof:a,type:d,compare:E===void 0?null:E}},H.startTransition=function(d){var E=P.T,m={};P.T=m;try{var L=d(),V=P.S;V!==null&&V(m,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(w,me)}catch(N){me(N)}finally{E!==null&&m.types!==null&&(E.types=m.types),P.T=E}},H.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},H.use=function(d){return P.H.use(d)},H.useActionState=function(d,E,m){return P.H.useActionState(d,E,m)},H.useCallback=function(d,E){return P.H.useCallback(d,E)},H.useContext=function(d){return P.H.useContext(d)},H.useDebugValue=function(){},H.useDeferredValue=function(d,E){return P.H.useDeferredValue(d,E)},H.useEffect=function(d,E){return P.H.useEffect(d,E)},H.useEffectEvent=function(d){return P.H.useEffectEvent(d)},H.useId=function(){return P.H.useId()},H.useImperativeHandle=function(d,E,m){return P.H.useImperativeHandle(d,E,m)},H.useInsertionEffect=function(d,E){return P.H.useInsertionEffect(d,E)},H.useLayoutEffect=function(d,E){return P.H.useLayoutEffect(d,E)},H.useMemo=function(d,E){return P.H.useMemo(d,E)},H.useOptimistic=function(d,E){return P.H.useOptimistic(d,E)},H.useReducer=function(d,E,m){return P.H.useReducer(d,E,m)},H.useRef=function(d){return P.H.useRef(d)},H.useState=function(d){return P.H.useState(d)},H.useSyncExternalStore=function(d,E,m){return P.H.useSyncExternalStore(d,E,m)},H.useTransition=function(){return P.H.useTransition()},H.version="19.2.3",H}var Tt;function Ri(){return Tt||(Tt=1,yn.exports=Pi()),yn.exports}var gr=Ri();const zi=Yn(gr),lf=Ai({__proto__:null,default:zi},[gr]);function Li(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Di=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Fi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Oi={};function It(e,t){return(Oi.jsx?Fi:Di).test(e)}const Mi=/[ \t\n\f\r]/g;function Ni(e){return typeof e=="object"?e.type==="text"?At(e.value):!1:At(e)}function At(e){return e.replace(Mi,"")===""}class Xe{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Xe.prototype.normal={};Xe.prototype.property={};Xe.prototype.space=void 0;function dr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Xe(n,r,t)}function Fn(e){return e.toLowerCase()}class ce{constructor(t,n){this.attribute=n,this.property=t}}ce.prototype.attribute="";ce.prototype.booleanish=!1;ce.prototype.boolean=!1;ce.prototype.commaOrSpaceSeparated=!1;ce.prototype.commaSeparated=!1;ce.prototype.defined=!1;ce.prototype.mustUseProperty=!1;ce.prototype.number=!1;ce.prototype.overloadedBoolean=!1;ce.prototype.property="";ce.prototype.spaceSeparated=!1;ce.prototype.space=void 0;let Bi=0;const B=_e(),te=_e(),On=_e(),I=_e(),J=_e(),Ae=_e(),he=_e();function _e(){return 2**++Bi}const Mn=Object.freeze(Object.defineProperty({__proto__:null,boolean:B,booleanish:te,commaOrSpaceSeparated:he,commaSeparated:Ae,number:I,overloadedBoolean:On,spaceSeparated:J},Symbol.toStringTag,{value:"Module"})),kn=Object.keys(Mn);class Xn extends ce{constructor(t,n,r,i){let o=-1;if(super(t,n),vt(this,"space",i),typeof r=="number")for(;++o<kn.length;){const l=kn[o];vt(this,kn[o],(r&Mn[l])===Mn[l])}}}Xn.prototype.defined=!0;function vt(e,t,n){n&&(e[t]=n)}function De(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Xn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Fn(r)]=r,n[Fn(o.attribute)]=r}return new Xe(t,n,e.space)}const yr=De({properties:{ariaActiveDescendant:null,ariaAtomic:te,ariaAutoComplete:null,ariaBusy:te,ariaChecked:te,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:J,ariaCurrent:null,ariaDescribedBy:J,ariaDetails:null,ariaDisabled:te,ariaDropEffect:J,ariaErrorMessage:null,ariaExpanded:te,ariaFlowTo:J,ariaGrabbed:te,ariaHasPopup:null,ariaHidden:te,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:J,ariaLevel:I,ariaLive:null,ariaModal:te,ariaMultiLine:te,ariaMultiSelectable:te,ariaOrientation:null,ariaOwns:J,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:te,ariaReadOnly:te,ariaRelevant:null,ariaRequired:te,ariaRoleDescription:J,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:te,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function kr(e,t){return t in e?e[t]:t}function xr(e,t){return kr(e,t.toLowerCase())}const ji=De({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ae,acceptCharset:J,accessKey:J,action:null,allow:null,allowFullScreen:B,allowPaymentRequest:B,allowUserMedia:B,alpha:B,alt:null,as:null,async:B,autoCapitalize:null,autoComplete:J,autoFocus:B,autoPlay:B,blocking:J,capture:null,charSet:null,checked:B,cite:null,className:J,closedBy:null,colorSpace:null,cols:I,colSpan:I,command:null,commandFor:null,content:null,contentEditable:te,controls:B,controlsList:J,coords:I|Ae,crossOrigin:null,data:null,dateTime:null,decoding:null,default:B,defer:B,dir:null,dirName:null,disabled:B,download:On,draggable:te,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:B,formTarget:null,headers:J,height:I,hidden:On,high:I,href:null,hrefLang:null,htmlFor:J,httpEquiv:J,id:null,imageSizes:null,imageSrcSet:null,inert:B,inputMode:null,integrity:null,is:null,isMap:B,itemId:null,itemProp:J,itemRef:J,itemScope:B,itemType:J,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:B,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:B,muted:B,name:null,nonce:null,noModule:B,noValidate:B,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:B,optimum:I,pattern:null,ping:J,placeholder:null,playsInline:B,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:B,referrerPolicy:null,rel:J,required:B,reversed:B,rows:I,rowSpan:I,sandbox:J,scope:null,scoped:B,seamless:B,selected:B,shadowRootClonable:B,shadowRootCustomElementRegistry:B,shadowRootDelegatesFocus:B,shadowRootMode:null,shadowRootSerializable:B,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:te,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:B,useMap:null,value:te,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:J,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:B,declare:B,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:B,noHref:B,noShade:B,noWrap:B,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:te,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:B,disablePictureInPicture:B,disableRemotePlayback:B,exportParts:Ae,part:J,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:xr}),Hi=De({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:he,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:J,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:B,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Ae,g2:Ae,glyphName:Ae,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:he,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:I,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:J,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:he,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:he,rev:he,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:he,requiredFeatures:he,requiredFonts:he,requiredFormats:he,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:he,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:he,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:he,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:kr}),br=De({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),wr=De({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:xr}),Sr=De({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),$i={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"},Ui=/[A-Z]/g,_t=/-[a-z]/g,qi=/^data[-\w.:]+$/i;function Vi(e,t){const n=Fn(t);let r=t,i=ce;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&qi.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(_t,Yi);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!_t.test(o)){let l=o.replace(Ui,Wi);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Xn}return new i(r,t)}function Wi(e){return"-"+e.toLowerCase()}function Yi(e){return e.charAt(1).toUpperCase()}const Xi=dr([yr,ji,br,wr,Sr],"html"),Qn=dr([yr,Hi,br,wr,Sr],"svg");function Qi(e){return e.join(" ").trim()}var Re={},xn,Pt;function Gi(){if(Pt)return xn;Pt=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,s=`
18
- `,a="/",c="*",f="",h="comment",p="declaration";function y(C,k){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];k=k||{};var v=1,T=1;function M(z){var R=z.match(t);R&&(v+=R.length);var W=z.lastIndexOf(s);T=~W?z.length-W:T+z.length}function F(){var z={line:v,column:T};return function(R){return R.position=new w(z),G(),R}}function w(z){this.start=z,this.end={line:v,column:T},this.source=k.source}w.prototype.content=C;function P(z){var R=new Error(k.source+":"+v+":"+T+": "+z);if(R.reason=z,R.filename=k.source,R.line=v,R.column=T,R.source=C,!k.silent)throw R}function $(z){var R=z.exec(C);if(R){var W=R[0];return M(W),C=C.slice(W.length),R}}function G(){$(n)}function x(z){var R;for(z=z||[];R=_();)R!==!1&&z.push(R);return z}function _(){var z=F();if(!(a!=C.charAt(0)||c!=C.charAt(1))){for(var R=2;f!=C.charAt(R)&&(c!=C.charAt(R)||a!=C.charAt(R+1));)++R;if(R+=2,f===C.charAt(R-1))return P("End of comment missing");var W=C.slice(2,R-2);return T+=2,M(W),C=C.slice(R),T+=2,z({type:h,comment:W})}}function D(){var z=F(),R=$(r);if(R){if(_(),!$(i))return P("property missing ':'");var W=$(o),ee=z({type:p,property:S(R[0].replace(e,f)),value:W?S(W[0].replace(e,f)):f});return $(l),ee}}function Y(){var z=[];x(z);for(var R;R=D();)R!==!1&&(z.push(R),x(z));return z}return G(),Y()}function S(C){return C?C.replace(u,f):f}return xn=y,xn}var Rt;function Ji(){if(Rt)return Re;Rt=1;var e=Re&&Re.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Re,"__esModule",{value:!0}),Re.default=n;const t=e(Gi());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,t.default)(r),u=typeof i=="function";return l.forEach(s=>{if(s.type!=="declaration")return;const{property:a,value:c}=s;u?i(a,c,s):c&&(o=o||{},o[a]=c)}),o}return Re}var je={},zt;function Ki(){if(zt)return je;zt=1,Object.defineProperty(je,"__esModule",{value:!0}),je.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(a){return!a||n.test(a)||e.test(a)},l=function(a,c){return c.toUpperCase()},u=function(a,c){return"".concat(c,"-")},s=function(a,c){return c===void 0&&(c={}),o(a)?a:(a=a.toLowerCase(),c.reactCompat?a=a.replace(i,u):a=a.replace(r,u),a.replace(t,l))};return je.camelCase=s,je}var He,Lt;function Zi(){if(Lt)return He;Lt=1;var e=He&&He.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Ji()),n=Ki();function r(i,o){var l={};return!i||typeof i!="string"||(0,t.default)(i,function(u,s){u&&s&&(l[(0,n.camelCase)(u,o)]=s)}),l}return r.default=r,He=r,He}var el=Zi();const nl=Yn(el),Cr=Er("end"),Gn=Er("start");function Er(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function tl(e){const t=Gn(e),n=Cr(e);if(t&&n)return{start:t,end:n}}function qe(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Dt(e.position):"start"in e||"end"in e?Dt(e):"line"in e||"column"in e?Nn(e):""}function Nn(e){return Ft(e&&e.line)+":"+Ft(e&&e.column)}function Dt(e){return Nn(e&&e.start)+"-"+Nn(e&&e.end)}function Ft(e){return e&&typeof e=="number"?e:1}class le extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?o.ruleId=r:(o.source=r.slice(0,s),o.ruleId=r.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}const u=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=u?u.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=u?u.line:void 0,this.name=qe(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}le.prototype.file="";le.prototype.name="";le.prototype.reason="";le.prototype.message="";le.prototype.stack="";le.prototype.column=void 0;le.prototype.line=void 0;le.prototype.ancestors=void 0;le.prototype.cause=void 0;le.prototype.fatal=void 0;le.prototype.place=void 0;le.prototype.ruleId=void 0;le.prototype.source=void 0;const Jn={}.hasOwnProperty,rl=new Map,il=/[A-Z]/g,ll=new Set(["table","tbody","thead","tfoot","tr"]),ol=new Set(["td","th"]),Tr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ul(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=gl(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=ml(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Qn:Xi,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Ir(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Ir(e,t,n){if(t.type==="element")return al(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return sl(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return fl(e,t,n);if(t.type==="mdxjsEsm")return cl(e,t);if(t.type==="root")return pl(e,t,n);if(t.type==="text")return hl(e,t)}function al(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Qn,e.schema=i),e.ancestors.push(t);const o=vr(e,t.tagName,!1),l=dl(e,t);let u=Zn(e,t);return ll.has(t.tagName)&&(u=u.filter(function(s){return typeof s=="string"?!Ni(s):!0})),Ar(e,l,o,t),Kn(l,u),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function sl(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ye(e,t.position)}function cl(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ye(e,t.position)}function fl(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Qn,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:vr(e,t.name,!0),l=yl(e,t),u=Zn(e,t);return Ar(e,l,o,t),Kn(l,u),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function pl(e,t,n){const r={};return Kn(r,Zn(e,t)),e.create(t,e.Fragment,r,n)}function hl(e,t){return t.value}function Ar(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Kn(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function ml(e,t,n){return r;function r(i,o,l,u){const a=Array.isArray(l.children)?n:t;return u?a(o,l,u):a(o,l)}}function gl(e,t){return n;function n(r,i,o,l){const u=Array.isArray(o.children),s=Gn(r);return t(i,o,l,u,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function dl(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Jn.call(t.properties,i)){const o=kl(e,i,t.properties[i]);if(o){const[l,u]=o;e.tableCellAlignToStyle&&l==="align"&&typeof u=="string"&&ol.has(t.tagName)?r=u:n[l]=u}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function yl(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const u=l.properties[0];u.type,Object.assign(n,e.evaluater.evaluateExpression(u.argument))}else Ye(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const u=r.value.data.estree.body[0];u.type,o=e.evaluater.evaluateExpression(u.expression)}else Ye(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function Zn(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:rl;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const a=i.get(s)||0;l=s+"-"+a,i.set(s,a+1)}}const u=Ir(e,o,l);u!==void 0&&n.push(u)}return n}function kl(e,t,n){const r=Vi(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Li(n):Qi(n)),r.property==="style"){let i=typeof n=="object"?n:xl(e,String(n));return e.stylePropertyNameCase==="css"&&(i=bl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?$i[r.property]||r.property:r.attribute,n]}}function xl(e,t){try{return nl(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new le("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=Tr+"#cannot-parse-style-attribute",i}}function vr(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const u=It(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:u,computed:!!(o&&u.type==="Literal"),optional:!1}:u}r=l}else r=It(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Jn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ye(e)}function Ye(e,t){const n=new le("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Tr+"#cannot-handle-mdx-estrees-without-createevaluater",n}function bl(e){const t={};let n;for(n in e)Jn.call(e,n)&&(t[wl(n)]=e[n]);return t}function wl(e){let t=e.replace(il,Sl);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Sl(e){return"-"+e.toLowerCase()}const bn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Cl={};function et(e,t){const n=Cl,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return _r(e,r,i)}function _r(e,t,n){if(El(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ot(e.children,t,n)}return Array.isArray(e)?Ot(e,t,n):""}function Ot(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=_r(e[i],t,n);return r.join("")}function El(e){return!!(e&&typeof e=="object")}const Mt=document.createElement("i");function nt(e){const t="&"+e+";";Mt.innerHTML=t;const n=Mt.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function de(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function ge(e,t){return e.length>0?(de(e,e.length,0,t),e):t}const Nt={}.hasOwnProperty;function Pr(e){const t={};let n=-1;for(;++n<e.length;)Tl(t,e[n]);return t}function Tl(e,t){let n;for(n in t){const i=(Nt.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Nt.call(i,l)||(i[l]=[]);const u=o[l];Il(i[l],Array.isArray(u)?u:u?[u]:[])}}}function Il(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);de(e,0,0,r)}function Rr(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function ye(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const oe=Te(/[A-Za-z]/),ie=Te(/[\dA-Za-z]/),Al=Te(/[#-'*+\--9=?A-Z^-~]/);function tn(e){return e!==null&&(e<32||e===127)}const Bn=Te(/\d/),vl=Te(/[\dA-Fa-f]/),_l=Te(/[!-/:-@[-`{-~]/);function O(e){return e!==null&&e<-2}function K(e){return e!==null&&(e<0||e===32)}function q(e){return e===-2||e===-1||e===32}const an=Te(/\p{P}|\p{S}/u),ve=Te(/\s/);function Te(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Fe(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&ie(e.charCodeAt(n+1))&&ie(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const u=e.charCodeAt(n+1);o<56320&&u>56319&&u<57344?(l=String.fromCharCode(o,u),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function X(e,t,n,r){const i=r?r-1:1/0;let o=0;return l;function l(s){return q(s)?(e.enter(n),u(s)):t(s)}function u(s){return q(s)&&o++<i?(e.consume(s),u):(e.exit(n),t(s))}}function zr(e,t,n,r,i,o){let l=0;return u;function u(c){return q(c)?(e.enter(r),s(c)):a(c)}function s(c){return q(c)&&l<o?(e.consume(c),l++,s):(e.exit(r),a(c))}function a(c){return l>=i?t(c):n(c)}}const Pl={tokenize:Rl};function Rl(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(u){if(u===null){e.consume(u);return}return e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),X(e,t,"linePrefix")}function i(u){return e.enter("paragraph"),o(u)}function o(u){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,l(u)}function l(u){if(u===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(u);return}return O(u)?(e.consume(u),e.exit("chunkText"),o):(e.consume(u),l)}}let rn=class{constructor(){this.index=new Map,this.map=[]}add(t,n,r){Bt(this,t,n,r,!1)}addBefore(t,n,r){Bt(this,t,n,r,!0)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0,this.index.clear()}};function Bt(e,t,n,r,i){if(n===0&&r.length===0)return;const o=e.index.get(t);if(o){o[1]+=n,i?(r.push(...o[2]),o[2]=r):o[2].push(...r);return}const l=[t,n,r];e.map.push(l),e.index.set(t,l)}const zl={tokenize:Ll},jt={tokenize:Dl};function Ll(e){const t=this,n=[];let r=0,i,o,l;return u;function u(T){if(r<n.length){const M=n[r];return t.containerState=M[1],e.attempt(M[0].continuation,s,a)(T)}return a(T)}function s(T){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();const M=t.events.length;let F=M,w;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){w=t.events[F][1].end;break}k(r);let P=M;for(;P<t.events.length;)t.events[P][1].end={...w},P++;const $=new rn;return $.add(F+1,0,t.events.slice(M)),$.add(M,P-M,[]),$.consume(t.events),a(T)}return u(T)}function a(T){if(r===n.length){if(!i)return h(T);if(i.currentConstruct&&i.currentConstruct.concrete)return y(T);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(jt,c,f)(T)}function c(T){return i&&v(),k(r),h(T)}function f(T){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,y(T)}function h(T){return t.containerState={},e.attempt(jt,p,y)(T)}function p(T){return r++,n.push([t.currentConstruct,t.containerState]),h(T)}function y(T){if(T===null){i&&v(),k(0),e.consume(T);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),S(T)}function S(T){if(T===null){C(e.exit("chunkFlow"),!0),k(0),e.consume(T);return}return O(T)?(e.consume(T),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,u):(e.consume(T),S)}function C(T,M){const F=t.sliceStream(T);if(M&&F.push(null),T.previous=o,o&&(o.next=T),o=T,i.defineSkip(T.start),i.write(F),t.parser.lazy[T.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<l&&(!i.events[w][1].end||i.events[w][1].end.offset>l))return;const P=t.events.length;let $=P,G,x;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(G){x=t.events[$][1].end;break}G=!0}for(k(r),w=P;w<t.events.length;)t.events[w][1].end={...x},w++;const _=new rn;_.add($+1,0,t.events.slice(P)),_.add(P,w-P,[]),_.consume(t.events)}}function k(T){let M=n.length;for(;M-- >T;){const F=n[M];t.containerState=F[1],F[0].exit.call(t,e)}n.length=T}function v(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Dl(e,t,n){return X(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function ln(e){if(e===null||K(e)||ve(e))return 1;if(an(e))return 2}function sn(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const jn={name:"attention",resolveAll:Fl,tokenize:Ol};function Fl(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;const o=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,l={...e[i][1].end},u={...e[n][1].start};Ht(l,-o),Ht(u,o);const s={type:o>1?"strongSequence":"emphasisSequence",start:l,end:{...e[i][1].end}},a={type:o>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:u},c={type:o>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},f={type:o>1?"strong":"emphasis",start:{...s.start},end:{...a.end}};e[i][1].end={...s.start},e[n][1].start={...a.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=ge(r,[["enter",e[i][1],t],["exit",e[i][1],t]])),r=ge(r,[["enter",f,t],["enter",s,t],["exit",s,t],["enter",c,t]]),r=ge(r,sn(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=ge(r,[["exit",c,t],["enter",a,t],["exit",a,t],["exit",f,t]]);let h=0;e[n][1].end.offset-e[n][1].start.offset&&(h=2,r=ge(r,[["enter",e[n][1],t],["exit",e[n][1],t]])),de(e,i-1,n-i+3,r),n=i+r.length-h-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Ol(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=ln(r);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),u(s)}function u(s){if(s===o)return e.consume(s),u;const a=e.exit("attentionSequence"),c=ln(s),f=!c||c===2&&i||n.includes(s)&&s!==42&&s!==95,h=!i||i===2&&c||n.includes(r)&&r!==42&&r!==95;return a._open=!!(o===42?f:f&&(i||!h)),a._close=!!(o===42?h:h&&(c||!f)),t(s)}}function Ht(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Ml={name:"autolink",tokenize:Nl};function Nl(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return oe(p)?(e.consume(p),l):p===64?n(p):a(p)}function l(p){return p===43||p===45||p===46||ie(p)?(r=1,u(p)):a(p)}function u(p){return p===58?(e.consume(p),r=0,s):(p===43||p===45||p===46||ie(p))&&r++<32?(e.consume(p),u):(r=0,a(p))}function s(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||tn(p)?n(p):(e.consume(p),s)}function a(p){return p===64?(e.consume(p),c):Al(p)?(e.consume(p),a):n(p)}function c(p){return ie(p)?f(p):n(p)}function f(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||ie(p))&&r++<63){const y=p===45?h:f;return e.consume(p),y}return n(p)}}const Qe={partial:!0,tokenize:Bl};function Bl(e,t,n){return r;function r(o){return q(o)?X(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||O(o)?t(o):n(o)}}const Lr={continuation:{tokenize:Hl},exit:$l,name:"blockQuote",tokenize:jl};function jl(e,t,n){const r=this;return i;function i(l){if(l===62){const u=r.containerState;return u.open||(e.enter("blockQuote",{_container:!0}),u.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return q(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function Hl(e,t,n){const r=this;return i;function i(l){return q(l)?X(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Lr,t,n)(l)}}function $l(e){e.exit("blockQuote")}const Dr={name:"characterEscape",tokenize:Ul};function Ul(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return _l(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Fr={name:"characterReference",tokenize:ql};function ql(e,t,n){const r=this;let i=0,o,l;return u;function u(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),s}function s(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),a):(e.enter("characterReferenceValue"),o=31,l=ie,c(f))}function a(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=vl,c):(e.enter("characterReferenceValue"),o=7,l=Bn,c(f))}function c(f){if(f===59&&i){const h=e.exit("characterReferenceValue");return l===ie&&!nt(r.sliceSerialize(h))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(f)&&i++<o?(e.consume(f),c):n(f)}}const Hn={partial:!0,tokenize:Vl};function Vl(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const $t={concrete:!0,name:"codeFenced",tokenize:Wl};function Wl(e,t,n){const r=this,i={partial:!0,tokenize:F};let o=0,l=0,u;return s;function s(w){return a(w)}function a(w){const P=r.events[r.events.length-1];return o=P&&P[1].type==="linePrefix"?P[2].sliceSerialize(P[1],!0).length:0,u=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(w)}function c(w){return w===u?(l++,e.consume(w),c):l<3?n(w):(e.exit("codeFencedFenceSequence"),q(w)?X(e,f,"whitespace")(w):f(w))}function f(w){return w===null||O(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(Hn,S,M)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||O(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(w)):q(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),X(e,p,"whitespace")(w)):w===96&&w===u?n(w):(e.consume(w),h)}function p(w){return w===null||O(w)?f(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(w))}function y(w){return w===null||O(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(w)):w===96&&w===u?n(w):(e.consume(w),y)}function S(w){return e.attempt(i,M,C)(w)}function C(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),k}function k(w){return o>0&&q(w)?X(e,v,"linePrefix",o+1)(w):v(w)}function v(w){return w===null||O(w)?e.check(Hn,S,M)(w):(e.enter("codeFlowValue"),T(w))}function T(w){return w===null||O(w)?(e.exit("codeFlowValue"),v(w)):(e.consume(w),T)}function M(w){return e.exit("codeFenced"),t(w)}function F(w,P,$){let G=0;return x;function x(R){return w.enter("lineEnding"),w.consume(R),w.exit("lineEnding"),_}function _(R){return w.enter("codeFencedFence"),q(R)?X(w,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):D(R)}function D(R){return R===u?(w.enter("codeFencedFenceSequence"),Y(R)):$(R)}function Y(R){return R===u?(G++,w.consume(R),Y):G>=l?(w.exit("codeFencedFenceSequence"),q(R)?X(w,z,"whitespace")(R):z(R)):$(R)}function z(R){return R===null||O(R)?(w.exit("codeFencedFence"),P(R)):$(R)}}}const wn={name:"codeIndented",tokenize:Xl},Yl={partial:!0,tokenize:Ql};function Xl(e,t,n){return r;function r(u){return e.enter("codeIndented"),zr(e,i,n,"linePrefix",4,4)(u)}function i(u){return u===null?l(u):O(u)?e.attempt(Yl,i,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||O(u)?(e.exit("codeFlowValue"),i(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function Ql(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):O(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):zr(e,t,o,"linePrefix",4,4)(l)}function o(l){return O(l)?i(l):n(l)}}const Gl={name:"codeText",previous:Kl,resolve:Jl,tokenize:Zl};function Jl(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Kl(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Zl(e,t,n){let r=0,i,o;return l;function l(f){return e.enter("codeText"),e.enter("codeTextSequence"),u(f)}function u(f){return f===96?(e.consume(f),r++,u):(e.exit("codeTextSequence"),s(f))}function s(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),s):f===96?(o=e.enter("codeTextSequence"),i=0,c(f)):O(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):(e.enter("codeTextData"),a(f))}function a(f){return f===null||f===32||f===96||O(f)?(e.exit("codeTextData"),s(f)):(e.consume(f),a)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(o.type="codeTextData",a(f))}}class eo{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&$e(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),$e(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),$e(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);$e(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);$e(this.left,n.reverse())}}}function $e(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Or(e){const t={};let n=-1,r,i,o,l,u,s,a;const c=new eo(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,no(c,n)),n=t[n],a=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=c.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},u=c.slice(i,n),u.unshift(r),c.splice(i,n-i+1,u))}}return de(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!a}function no(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const u=l.events,s=[],a={};let c,f,h=-1,p=n,y=0,S=0;const C=[S];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(c),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=n;++h<u.length;)u[h][0]==="exit"&&u[h-1][0]==="enter"&&u[h][1].type===u[h-1][1].type&&u[h][1].start.line!==u[h][1].end.line&&(S=h+1,C.push(S),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):C.pop(),h=C.length;h--;){const k=u.slice(C[h],C[h+1]),v=o.pop();s.push([v,v+k.length-1]),e.splice(v,2,k)}for(s.reverse(),h=-1;++h<s.length;)a[y+s[h][0]]=y+s[h][1],y+=s[h][1]-s[h][0]-1;return a}const to={resolve:io,tokenize:lo},ro={partial:!0,tokenize:oo};function io(e){return Or(e),e}function lo(e,t){let n;return r;function r(u){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(u)}function i(u){return u===null?o(u):O(u)?e.check(ro,l,o)(u):(e.consume(u),i)}function o(u){return e.exit("chunkContent"),e.exit("content"),t(u)}function l(u){return e.consume(u),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function oo(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),X(e,o,"linePrefix")}function o(l){if(l===null||O(l))return n(l);const u=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&u&&u[1].type==="linePrefix"&&u[2].sliceSerialize(u[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Mr(e,t,n,r,i,o,l,u,s){const a=s||Number.POSITIVE_INFINITY;let c=0;return f;function f(k){return k===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(k),e.exit(o),h):k===null||k===32||k===41||tn(k)?n(k):(e.enter(r),e.enter(l),e.enter(u),e.enter("chunkString",{contentType:"string"}),S(k))}function h(k){return k===62?(e.enter(o),e.consume(k),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(u),e.enter("chunkString",{contentType:"string"}),p(k))}function p(k){return k===62?(e.exit("chunkString"),e.exit(u),h(k)):k===null||k===60||O(k)?n(k):(e.consume(k),k===92?y:p)}function y(k){return k===60||k===62||k===92?(e.consume(k),p):p(k)}function S(k){return!c&&(k===null||k===41||K(k))?(e.exit("chunkString"),e.exit(u),e.exit(l),e.exit(r),t(k)):c<a&&k===40?(e.consume(k),c++,S):k===41?(e.consume(k),c--,S):k===null||k===32||k===40||tn(k)?n(k):(e.consume(k),k===92?C:S)}function C(k){return k===40||k===41||k===92?(e.consume(k),S):S(k)}}function Nr(e,t,n,r,i,o){const l=this;let u=0,s;return a;function a(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),c}function c(p){return u>999||p===null||p===91||p===93&&!s||p===94&&!u&&"_hiddenFootnoteSupport"in l.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):O(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||O(p)||u++>999?(e.exit("chunkString"),c(p)):(e.consume(p),s||(s=!q(p)),p===92?h:f)}function h(p){return p===91||p===92||p===93?(e.consume(p),u++,f):f(p)}}function Br(e,t,n,r,i,o){let l;return u;function u(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),l=h===40?41:h,s):n(h)}function s(h){return h===l?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(o),a(h))}function a(h){return h===l?(e.exit(o),s(l)):h===null?n(h):O(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),X(e,a,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===l||h===null||O(h)?(e.exit("chunkString"),a(h)):(e.consume(h),h===92?f:c)}function f(h){return h===l||h===92?(e.consume(h),c):c(h)}}function Ve(e,t){let n;return r;function r(i){return O(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):q(i)?X(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const uo={name:"definition",tokenize:so},ao={partial:!0,tokenize:co};function so(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return Nr.call(r,e,u,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function u(p){return i=ye(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return K(p)?Ve(e,a)(p):a(p)}function a(p){return Mr(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(ao,f,f)(p)}function f(p){return q(p)?X(e,h,"whitespace")(p):h(p)}function h(p){return p===null||O(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function co(e,t,n){return r;function r(u){return K(u)?Ve(e,i)(u):n(u)}function i(u){return Br(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(u)}function o(u){return q(u)?X(e,l,"whitespace")(u):l(u)}function l(u){return u===null||O(u)?t(u):n(u)}}const fo={name:"hardBreakEscape",tokenize:po};function po(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return O(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const ho={name:"headingAtx",resolve:mo,tokenize:go};function mo(e,t){let n=e.length-2,r=3;if(e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r){const i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"};de(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])}return e}function go(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),l(c)}function l(c){return c===35&&r++<6?(e.consume(c),l):c===null||K(c)?(e.exit("atxHeadingSequence"),u(c)):n(c)}function u(c){return c===35?(e.enter("atxHeadingSequence"),s(c)):c===null||O(c)?(e.exit("atxHeading"),t(c)):q(c)?X(e,u,"whitespace")(c):(e.enter("atxHeadingText"),a(c))}function s(c){return c===35?(e.consume(c),s):(e.exit("atxHeadingSequence"),u(c))}function a(c){return c===null||c===35||K(c)?(e.exit("atxHeadingText"),u(c)):(e.consume(c),a)}}const yo=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Ut=["pre","script","style","textarea"],ko={concrete:!0,name:"htmlFlow",resolveTo:bo,tokenize:wo},xo={partial:!0,tokenize:So};function bo(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function wo(e,t,n){const r=this;let i,o,l,u,s;return a;function a(m){return c(m)}function c(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),f}function f(m){return m===33?(e.consume(m),h):m===47?(e.consume(m),o=!0,S):m===63?(e.consume(m),i=3,r.interrupt?t:g):oe(m)?(e.consume(m),l=String.fromCharCode(m),C):n(m)}function h(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,u=0,y):oe(m)?(e.consume(m),i=4,r.interrupt?t:g):n(m)}function p(m){return m===45?(e.consume(m),r.interrupt?t:g):n(m)}function y(m){const L="CDATA[";return m===L.charCodeAt(u++)?(e.consume(m),u===L.length?r.interrupt?t:D:y):n(m)}function S(m){return oe(m)?(e.consume(m),l=String.fromCharCode(m),C):n(m)}function C(m){if(m===null||m===47||m===62||K(m)){const L=m===47,V=l.toLowerCase();return!L&&!o&&Ut.includes(V)?(i=1,r.interrupt?t(m):D(m)):yo.includes(l.toLowerCase())?(i=6,L?(e.consume(m),k):r.interrupt?t(m):D(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(m):o?v(m):T(m))}return m===45||ie(m)?(e.consume(m),l+=String.fromCharCode(m),C):n(m)}function k(m){return m===62?(e.consume(m),r.interrupt?t:D):n(m)}function v(m){return q(m)?(e.consume(m),v):x(m)}function T(m){return m===47?(e.consume(m),x):m===58||m===95||oe(m)?(e.consume(m),M):q(m)?(e.consume(m),T):x(m)}function M(m){return m===45||m===46||m===58||m===95||ie(m)?(e.consume(m),M):F(m)}function F(m){return m===61?(e.consume(m),w):q(m)?(e.consume(m),F):T(m)}function w(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),s=m,P):q(m)?(e.consume(m),w):$(m)}function P(m){return m===s?(e.consume(m),s=null,G):m===null||O(m)?n(m):(e.consume(m),P)}function $(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||K(m)?F(m):(e.consume(m),$)}function G(m){return m===47||m===62||q(m)?T(m):n(m)}function x(m){return m===62?(e.consume(m),_):n(m)}function _(m){return m===null||O(m)?D(m):q(m)?(e.consume(m),_):n(m)}function D(m){return m===45&&i===2?(e.consume(m),W):m===60&&i===1?(e.consume(m),ee):m===62&&i===4?(e.consume(m),d):m===63&&i===3?(e.consume(m),g):m===93&&i===5?(e.consume(m),me):O(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(xo,E,Y)(m)):m===null||O(m)?(e.exit("htmlFlowData"),Y(m)):(e.consume(m),D)}function Y(m){return e.check(Hn,z,E)(m)}function z(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),R}function R(m){return m===null||O(m)?Y(m):(e.enter("htmlFlowData"),D(m))}function W(m){return m===45?(e.consume(m),g):D(m)}function ee(m){return m===47?(e.consume(m),l="",fe):D(m)}function fe(m){if(m===62){const L=l.toLowerCase();return Ut.includes(L)?(e.consume(m),d):D(m)}return oe(m)&&l.length<8?(e.consume(m),l+=String.fromCharCode(m),fe):D(m)}function me(m){return m===93?(e.consume(m),g):D(m)}function g(m){return m===62?(e.consume(m),d):m===45&&i===2?(e.consume(m),g):D(m)}function d(m){return m===null||O(m)?(e.exit("htmlFlowData"),E(m)):(e.consume(m),d)}function E(m){return e.exit("htmlFlow"),t(m)}}function So(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Qe,t,n)}}const Co={name:"htmlText",tokenize:Eo};function Eo(e,t,n){const r=this;let i,o,l;return u;function u(g){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(g),s}function s(g){return g===33?(e.consume(g),a):g===47?(e.consume(g),F):g===63?(e.consume(g),T):oe(g)?(e.consume(g),$):n(g)}function a(g){return g===45?(e.consume(g),c):g===91?(e.consume(g),o=0,y):oe(g)?(e.consume(g),v):n(g)}function c(g){return g===45?(e.consume(g),p):n(g)}function f(g){return g===null?n(g):g===45?(e.consume(g),h):O(g)?(l=f,ee(g)):(e.consume(g),f)}function h(g){return g===45?(e.consume(g),p):f(g)}function p(g){return g===62?W(g):g===45?h(g):f(g)}function y(g){const d="CDATA[";return g===d.charCodeAt(o++)?(e.consume(g),o===d.length?S:y):n(g)}function S(g){return g===null?n(g):g===93?(e.consume(g),C):O(g)?(l=S,ee(g)):(e.consume(g),S)}function C(g){return g===93?(e.consume(g),k):S(g)}function k(g){return g===62?W(g):g===93?(e.consume(g),k):S(g)}function v(g){return g===null||g===62?W(g):O(g)?(l=v,ee(g)):(e.consume(g),v)}function T(g){return g===null?n(g):g===63?(e.consume(g),M):O(g)?(l=T,ee(g)):(e.consume(g),T)}function M(g){return g===62?W(g):T(g)}function F(g){return oe(g)?(e.consume(g),w):n(g)}function w(g){return g===45||ie(g)?(e.consume(g),w):P(g)}function P(g){return O(g)?(l=P,ee(g)):q(g)?(e.consume(g),P):W(g)}function $(g){return g===45||ie(g)?(e.consume(g),$):g===47||g===62||K(g)?G(g):n(g)}function G(g){return g===47?(e.consume(g),W):g===58||g===95||oe(g)?(e.consume(g),x):O(g)?(l=G,ee(g)):q(g)?(e.consume(g),G):W(g)}function x(g){return g===45||g===46||g===58||g===95||ie(g)?(e.consume(g),x):_(g)}function _(g){return g===61?(e.consume(g),D):O(g)?(l=_,ee(g)):q(g)?(e.consume(g),_):G(g)}function D(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),i=g,Y):O(g)?(l=D,ee(g)):q(g)?(e.consume(g),D):(e.consume(g),z)}function Y(g){return g===i?(e.consume(g),i=void 0,R):g===null?n(g):O(g)?(l=Y,ee(g)):(e.consume(g),Y)}function z(g){return g===null||g===34||g===39||g===60||g===61||g===96?n(g):g===47||g===62||K(g)?G(g):(e.consume(g),z)}function R(g){return g===47||g===62||K(g)?G(g):n(g)}function W(g){return g===62?(e.consume(g),e.exit("htmlTextData"),e.exit("htmlText"),t):n(g)}function ee(g){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),fe}function fe(g){return q(g)?X(e,me,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(g):me(g)}function me(g){return e.enter("htmlTextData"),l(g)}}const tt={name:"labelEnd",resolveAll:vo,resolveTo:_o,tokenize:Po},To={tokenize:Ro},Io={tokenize:zo},Ao={tokenize:Lo};function vo(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&de(e,0,e.length,n),e}function _o(e,t){let n=e.length,r=0,i,o,l;for(;n--;){const c=e[n][1];if(i){if(c.type==="link"||c.type==="labelLink"&&c._inactive)break;e[n][0]==="enter"&&c.type==="labelLink"&&(c._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(c.type==="labelImage"||c.type==="labelLink")&&!c._balanced&&(i=n,c.type!=="labelLink")){r=2;break}}else c.type==="labelEnd"&&(o=n)}const u={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},a={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",u,t],["enter",s,t]],l=ge(l,e.slice(i+1,i+r+3)),l=ge(l,[["enter",a,t]]),l=ge(l,sn(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),l=ge(l,[["exit",a,t],e[o-2],e[o-1],["exit",s,t]]),l=ge(l,e.slice(o+1)),l=ge(l,[["exit",u,t]]),de(e,i,e.length,l),e}function Po(e,t,n){const r=this,i=r._labelStarts;let o,l;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();o=i[i.length-1]}return u;function u(h){return o?o._inactive?f(h):(l=r.parser.defined.includes(ye(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),s):n(h)}function s(h){return h===40?e.attempt(To,c,l?c:f)(h):h===91?e.attempt(Io,c,l?a:f)(h):l?c(h):f(h)}function a(h){return e.attempt(Ao,c,f)(h)}function c(h){return i.pop(),t(h)}function f(h){return o._balanced=!0,n(h)}}function Ro(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return K(f)?Ve(e,o)(f):o(f)}function o(f){return f===41?c(f):Mr(e,l,u,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function l(f){return K(f)?Ve(e,s)(f):c(f)}function u(f){return n(f)}function s(f){return f===34||f===39||f===40?Br(e,a,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function a(f){return K(f)?Ve(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function zo(e,t,n){const r=this;return i;function i(u){return Nr.call(r,e,o,l,"reference","referenceMarker","referenceString")(u)}function o(u){return r.parser.defined.includes(ye(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(u):n(u)}function l(u){return n(u)}}function Lo(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Do={name:"labelStartImage",resolveAll:tt.resolveAll,tokenize:Fo};function Fo(e,t,n){const r=this;let i;return o;function o(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),l}function l(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),i=e.exit("labelImage"),u):n(s)}function u(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(s))}}const Oo={name:"labelStartLink",resolveAll:tt.resolveAll,tokenize:Mo};function Mo(e,t,n){const r=this;let i;return o;function o(u){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),i=e.exit("labelLink"),l}function l(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(u))}}const Sn={name:"lineEnding",tokenize:No};function No(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),X(e,t,"linePrefix")}}const nn={name:"thematicBreak",tokenize:Bo};function Bo(e,t,n){let r=0,i;return o;function o(a){return e.enter("thematicBreak"),l(a)}function l(a){return i=a,u(a)}function u(a){return a===i?(e.enter("thematicBreakSequence"),s(a)):r>=3&&(a===null||O(a))?(e.exit("thematicBreak"),t(a)):n(a)}function s(a){return a===i?(e.consume(a),r++,s):(e.exit("thematicBreakSequence"),q(a)?X(e,u,"whitespace")(a):u(a))}}const se={continuation:{tokenize:Uo},exit:Vo,name:"list",tokenize:$o},jo={partial:!0,tokenize:Wo},Ho={partial:!0,tokenize:qo};function $o(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return u;function u(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Bn(p)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(nn,n,a)(p):a(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return Bn(p)&&++l<10?(e.consume(p),s):(!r.interrupt||l<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),a(p)):n(p)}function a(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Qe,r.interrupt?n:c,e.attempt(jo,h,f))}function c(p){return r.containerState.initialBlankLine=!0,o++,h(p)}function f(p){return q(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Uo(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Qe,i,o);function i(u){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,X(e,t,"listItemIndent",r.containerState.size+1)(u)}function o(u){return r.containerState.furtherBlankLines||!q(u)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(u)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ho,t,l)(u))}function l(u){return r.containerState._closeFlow=!0,r.interrupt=void 0,X(e,e.attempt(se,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(u)}}function qo(e,t,n){const r=this;return X(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function Vo(e){e.exit(this.containerState.type)}function Wo(e,t,n){const r=this;return X(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!q(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const qt={name:"setextUnderline",resolveTo:Yo,tokenize:Xo};function Yo(e,t){const n=new rn;let r=e.length,i,o,l;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&n.add(r,1,[]),!l&&e[r][1].type==="definition"&&(l=r);const u={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",l?(n.add(o,0,[["enter",u,t]]),n.add(l+1,0,[["exit",e[i][1],t]]),e[i][1].end={...e[l][1].end}):e[i][1]=u,n.add(e.length,0,[["exit",u,t]]),n.consume(e),e}function Xo(e,t,n){const r=this;let i;return o;function o(a){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=a,l(a)):n(a)}function l(a){return e.enter("setextHeadingLineSequence"),u(a)}function u(a){return a===i?(e.consume(a),u):(e.exit("setextHeadingLineSequence"),q(a)?X(e,s,"lineSuffix")(a):s(a))}function s(a){return a===null||O(a)?(e.exit("setextHeadingLine"),t(a)):n(a)}}const Qo={tokenize:Go};function Go(e){const t=this,n=e.attempt(Qe,r,e.attempt(this.parser.constructs.flowInitial,i,X(e,e.attempt(this.parser.constructs.flow,i,e.attempt(to,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Jo={resolveAll:Hr()},Ko=jr("string"),Zo=jr("text");function jr(e){return{resolveAll:Hr(e==="text"?eu:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,u);return l;function l(c){return a(c)?o(c):u(c)}function u(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),s}function s(c){return a(c)?(n.exit("data"),o(c)):(n.consume(c),s)}function a(c){if(c===null)return!0;const f=i[c];let h=-1;if(f)for(;++h<f.length;){const p=f[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Hr(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function eu(e,t){const n=new rn;let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],o=t.sliceStream(i);let l=o.length,u=-1,s=0,a;for(;l--;){const c=o[l];if(typeof c=="string"){for(u=c.length;c.charCodeAt(u-1)===32;)s++,u--;if(u)break;u=-1}else if(c===-2)a=!0,s++;else if(c!==-1){l++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(s=0),s){const c={type:r===e.length||a||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?u:i.start._bufferIndex+u,_index:i.start._index+l,line:i.end.line,column:i.end.column-s,offset:i.end.offset-s},end:{...i.end}};i.end={...c.start},i.start.offset===i.end.offset?Object.assign(i,c):n.add(r,0,[["enter",c,t],["exit",c,t]])}r++}return n.consume(e),e}const nu={42:se,43:se,45:se,48:se,49:se,50:se,51:se,52:se,53:se,54:se,55:se,56:se,57:se,62:Lr},tu={91:uo},ru={[-2]:wn,[-1]:wn,32:wn},iu={35:ho,42:nn,45:[qt,nn],60:ko,61:qt,95:nn,96:$t,126:$t},lu={38:Fr,92:Dr},ou={[-5]:Sn,[-4]:Sn,[-3]:Sn,33:Do,38:Fr,42:jn,60:[Ml,Co],91:Oo,92:[fo,Dr],93:tt,95:jn,96:Gl},uu={null:[jn,Jo]},au={null:[42,95]},su={null:[]},cu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:au,contentInitial:tu,disable:su,document:nu,flow:iu,flowInitial:ru,insideSpan:uu,string:lu,text:ou},Symbol.toStringTag,{value:"Module"}));function fu(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let l=[],u=[];const s={attempt:P(F),check:P(w),consume:v,enter:T,exit:M,interrupt:P(w,{interrupt:!0})},a={code:null,containerState:{},defineSkip:S,events:[],now:y,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:f};let c=t.tokenize.call(a,s);return t.resolveAll&&o.push(t),a;function f(_){return l=ge(l,_),C(),l[l.length-1]!==null?[]:($(t,0),a.events=sn(o,a.events,a),a.events)}function h(_,D){return hu(p(_),D)}function p(_){return pu(l,_)}function y(){const{_bufferIndex:_,_index:D,line:Y,column:z,offset:R}=r;return{_bufferIndex:_,_index:D,line:Y,column:z,offset:R}}function S(_){i[_.line]=_.column,x()}function C(){for(;r._index<l.length;){const _=l[r._index];if(typeof _=="string"){const D=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===D&&r._bufferIndex<_.length;)k(_.charCodeAt(r._bufferIndex))}else k(_)}}function k(_){c=c(_)}function v(_){O(_)?(r.line++,r.column=1,r.offset+=_===-3?2:1,x()):_!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),a.previous=_}function T(_,D){const Y=D||{};return Y.type=_,Y.start=y(),a.events.push(["enter",Y,a]),u.push(Y),Y}function M(_){const D=u.pop();return D.end=y(),a.events.push(["exit",D,a]),D}function F(_,D){$(_,D.from)}function w(_,D){D.restore()}function P(_,D){return Y;function Y(z,R,W){let ee,fe,me,g;return Array.isArray(z)?E(z):"tokenize"in z?E([z]):d(z);function d(N){return Q;function Q(re){const ne=re!==null&&N[re],Ce=re!==null&&N.null,hn=[...Array.isArray(ne)?ne:ne?[ne]:[],...Array.isArray(Ce)?Ce:Ce?[Ce]:[]];return E(hn)(re)}}function E(N){return ee=N,fe=0,N.length===0?W:m(N[fe])}function m(N){return Q;function Q(re){return g=G(),me=N,N.partial||(a.currentConstruct=N),N.name&&a.parser.constructs.disable.null.includes(N.name)?V():N.tokenize.call(D?Object.assign(Object.create(a),D):a,s,L,V)(re)}}function L(N){return _(me,g),R}function V(N){return g.restore(),++fe<ee.length?m(ee[fe]):W}}}function $(_,D){_.resolveAll&&!o.includes(_)&&o.push(_),_.resolve&&de(a.events,D,a.events.length-D,_.resolve(a.events.slice(D),a)),_.resolveTo&&(a.events=_.resolveTo(a.events,a))}function G(){const _=y(),D=a.previous,Y=a.currentConstruct,z=a.events.length,R=Array.from(u);return{from:z,restore:W};function W(){r=_,a.previous=D,a.currentConstruct=Y,a.events.length=z,u=R,x()}}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function pu(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const u=l[0];typeof u=="string"?l[0]=u.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function hu(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
19
- `;break}case-3:{l=`\r
20
- `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function mu(e){const r={constructs:Pr([cu,...(e||{}).extensions||[]]),content:i(Pl),defined:[],document:i(zl),flow:i(Qo),lazy:{},string:i(Ko),text:i(Zo)};return r;function i(o){return l;function l(u){return fu(r,o,u)}}}function gu(e){for(;!Or(e););return e}const Vt=/[\0\t\n\r]/g;function du(){let e=1,t="",n=!0,r;return i;function i(o,l,u){o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o));const s=[];let a=0;for(t="",n&&(o.charCodeAt(0)===65279&&a++,n=void 0);a<o.length;){Vt.lastIndex=a;const c=Vt.exec(o),f=c&&c.index!==void 0?c.index:o.length,h=o.charCodeAt(f);if(!c){t=o.slice(a);break}if(h===10&&a===f&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),a<f&&(s.push(o.slice(a,f)),e+=f-a),h){case 0:{s.push(65533),e++;break}case 9:{const p=Math.ceil(e/4)*4;for(s.push(-2);e++<p;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}a=f+1}return u&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const yu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ku(e){return e.replace(yu,xu)}function xu(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Rr(n.slice(o?2:1),o?16:10)}return nt(n)||e}const $r={}.hasOwnProperty;function bu(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),wu(n)(gu(mu(n).document().write(du()(e,t,!0))))}function wu(e){const t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(xt),autolinkProtocol:x,autolinkEmail:x,atxHeading:l(dt),blockQuote:l(hn),characterEscape:x,characterReference:x,codeFenced:l(gt),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:l(gt,u),codeText:l(ki,u),codeTextData:x,data:x,codeFlowValue:x,definition:l(xi),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:l(bi),hardBreakEscape:l(yt),hardBreakTrailing:l(yt),htmlFlow:l(kt,u),htmlFlowData:x,htmlText:l(kt,u),htmlTextData:x,image:l(wi),label:u,link:l(xt),listItem:l(Si),listItemValue:p,listOrdered:l(bt,h),listUnordered:l(bt),paragraph:l(Ci),reference:L,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:l(dt),strong:l(Ei),thematicBreak:l(Ii)},exit:{atxHeading:a(),atxHeadingSequence:w,autolink:a(),autolinkEmail:Ce,autolinkProtocol:ne,blockQuote:a(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:N,characterReferenceMarkerNumeric:N,characterReferenceValue:Q,characterReference:re,codeFenced:a(k),codeFencedFence:C,codeFencedFenceInfo:y,codeFencedFenceMeta:S,codeFlowValue:_,codeIndented:a(v),codeText:a(W),codeTextData:_,data:_,definition:a(),definitionDestinationString:F,definitionLabelString:T,definitionTitleString:M,emphasis:a(),hardBreakEscape:a(Y),hardBreakTrailing:a(Y),htmlFlow:a(z),htmlFlowData:_,htmlText:a(R),htmlTextData:_,image:a(fe),label:g,labelText:me,lineEnding:D,link:a(ee),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:V,resourceDestinationString:d,resourceTitleString:E,resource:m,setextHeading:a(G),setextHeadingLineSequence:$,setextHeadingText:P,strong:a(),thematicBreak:a()}};Ur(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(b){let A={type:"root",children:[],position:void 0};const j={stack:[A],tokenStack:[],config:t,enter:s,exit:c,buffer:u,resume:f,data:n},U=[],ue=[];let Z=-1;for(;++Z<b.length;)if(ue.push(b[Z]),b[Z][1].type==="listOrdered"||b[Z][1].type==="listUnordered")if(b[Z][0]==="enter")U.push(ue.length-1);else{const ae=U.pop();o(ue,ae)}for(b=ue,Z=-1;++Z<b.length;){const ae=t[b[Z][0]];b[Z][0]==="enter"&&t.beforeEnter.length>0&&i(t.beforeEnter,{...j,sliceSerialize:b[Z][2].sliceSerialize},b[Z][1]),$r.call(ae,b[Z][1].type)&&ae[b[Z][1].type].call({...j,sliceSerialize:b[Z][2].sliceSerialize},b[Z][1]),b[Z][0]==="exit"&&t.afterExit.length>0&&i(t.afterExit,{...j,sliceSerialize:b[Z][2].sliceSerialize},b[Z][1])}if(j.tokenStack.length>0){const ae=j.tokenStack[j.tokenStack.length-1];(ae[1]||Wt).call(j,void 0,ae[0])}for(A.position={start:Ee(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:Ee(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},Z=-1;++Z<t.transforms.length;)A=t.transforms[Z](A)||A;return A}function i(b,A,j){let U=-1;for(;++U<b.length;)b[U].call(A,j)}function o(b,A){const j=b.length-1;let U=A-1,ue=-1,Z=!1,ae,ke,Oe,Me;const Ne=[];for(;++U<=j;){const pe=b[U];switch(pe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{pe[0]==="enter"?ue++:ue--,Me=void 0;break}case"lineEndingBlank":{pe[0]==="enter"&&(ae&&!Me&&!ue&&!Oe&&(Oe=U),Me=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Me=void 0}if(!ue&&pe[0]==="enter"&&pe[1].type==="listItemPrefix"||ue===-1&&pe[0]==="exit"&&(pe[1].type==="listUnordered"||pe[1].type==="listOrdered")){if(ae){let Pe=U;for(ke=void 0;Pe--;){const we=b[Pe];if(we[1].type==="lineEnding"||we[1].type==="lineEndingBlank"){if(we[0]==="exit")continue;ke&&(b[ke][1].type="lineEndingBlank",Z=!0),we[1].type="lineEnding",ke=Pe}else if(!(we[1].type==="linePrefix"||we[1].type==="blockQuotePrefix"||we[1].type==="blockQuotePrefixWhitespace"||we[1].type==="blockQuoteMarker"||we[1].type==="listItemIndent"))break}Oe&&(!ke||Oe<ke)&&(ae._spread=!0),ae.end=Object.assign({},ke?b[ke][1].start:pe[1].end),Ne.push({at:ke||U,event:["exit",ae,pe[2]]})}if(pe[1].type==="listItemPrefix"){const Pe={type:"listItem",_spread:!1,start:Object.assign({},pe[1].start),end:void 0};ae=Pe,Ne.push({at:U,event:["enter",Pe,pe[2]]}),Oe=void 0,Me=!0}}}const wt=b.splice(A);let mn=0;for(U=-1;++U<wt.length;){for(;mn<Ne.length&&Ne[mn].at===A+U;)b.push(Ne[mn++].event);b.push(wt[U])}b[A][1]._spread=Z}function l(b,A){return j;function j(U){s.call(this,b(U),U),A&&A.call(this,U)}}function u(){this.stack.push({type:"fragment",children:[]})}function s(b,A,j){this.stack[this.stack.length-1].children.push(b),this.stack.push(b),this.tokenStack.push([A,j||void 0]),b.position={start:Ee(A.start),end:void 0}}function a(b){return A;function A(j){b&&b.call(this,j),c.call(this,j)}}function c(b,A){const j=this.stack.pop(),U=this.tokenStack.pop();if(!U)throw new Error("Cannot close `"+b.type+"` ("+qe({start:b.start,end:b.end})+"): it’s not open");U[0].type!==b.type&&(A?A.call(this,b,U[0]):(U[1]||Wt).call(this,b,U[0])),j.position.end=Ee(b.end)}function f(){return et(this.stack.pop())}function h(){this.data.expectingFirstListItemValue=!0}function p(b){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(b),10),this.data.expectingFirstListItemValue=void 0}}function y(){const b=this.resume(),A=this.stack[this.stack.length-1];A.lang=b}function S(){const b=this.resume(),A=this.stack[this.stack.length-1];A.meta=b}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b.replace(/(\r?\n|\r)$/g,"")}function T(b){const A=this.resume(),j=this.stack[this.stack.length-1];j.label=A,j.identifier=ye(this.sliceSerialize(b)).toLowerCase()}function M(){const b=this.resume(),A=this.stack[this.stack.length-1];A.title=b}function F(){const b=this.resume(),A=this.stack[this.stack.length-1];A.url=b}function w(b){const A=this.stack[this.stack.length-1];if(!A.depth){const j=this.sliceSerialize(b).length;A.depth=j}}function P(){this.data.setextHeadingSlurpLineEnding=!0}function $(b){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(b).codePointAt(0)===61?1:2}function G(){this.data.setextHeadingSlurpLineEnding=void 0}function x(b){const j=this.stack[this.stack.length-1].children;let U=j[j.length-1];(!U||U.type!=="text")&&(U=Ti(),U.position={start:Ee(b.start),end:void 0},j.push(U)),this.stack.push(U)}function _(b){const A=this.stack.pop();A.value+=this.sliceSerialize(b),A.position.end=Ee(b.end)}function D(b){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const j=A.children[A.children.length-1];j.position.end=Ee(b.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(A.type)&&(x.call(this,b),_.call(this,b))}function Y(){this.data.atHardBreak=!0}function z(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b}function R(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b}function W(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b}function ee(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=A,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function fe(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=A,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function me(b){const A=this.sliceSerialize(b),j=this.stack[this.stack.length-2];j.label=ku(A),j.identifier=ye(A).toLowerCase()}function g(){const b=this.stack[this.stack.length-1],A=this.resume(),j=this.stack[this.stack.length-1];if(this.data.inReference=!0,j.type==="link"){const U=b.children;j.children=U}else j.alt=A}function d(){const b=this.resume(),A=this.stack[this.stack.length-1];A.url=b}function E(){const b=this.resume(),A=this.stack[this.stack.length-1];A.title=b}function m(){this.data.inReference=void 0}function L(){this.data.referenceType="collapsed"}function V(b){const A=this.resume(),j=this.stack[this.stack.length-1];j.label=A,j.identifier=ye(this.sliceSerialize(b)).toLowerCase(),this.data.referenceType="full"}function N(b){this.data.characterReferenceType=b.type}function Q(b){const A=this.sliceSerialize(b),j=this.data.characterReferenceType;let U;j?(U=Rr(A,j==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):U=nt(A);const ue=this.stack[this.stack.length-1];ue.value+=U}function re(b){const A=this.stack.pop();A.position.end=Ee(b.end)}function ne(b){_.call(this,b);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(b)}function Ce(b){_.call(this,b);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(b)}function hn(){return{type:"blockquote",children:[],position:void 0}}function gt(){return{type:"code",lang:null,meta:null,value:"",position:void 0}}function ki(){return{type:"inlineCode",value:"",position:void 0}}function xi(){return{type:"definition",identifier:"",label:null,title:null,url:"",position:void 0}}function bi(){return{type:"emphasis",children:[],position:void 0}}function dt(){return{type:"heading",depth:0,children:[],position:void 0}}function yt(){return{type:"break",position:void 0}}function kt(){return{type:"html",value:"",position:void 0}}function wi(){return{type:"image",title:null,url:"",alt:null,position:void 0}}function xt(){return{type:"link",title:null,url:"",children:[],position:void 0}}function bt(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[],position:void 0}}function Si(b){return{type:"listItem",spread:b._spread,checked:null,children:[],position:void 0}}function Ci(){return{type:"paragraph",children:[],position:void 0}}function Ei(){return{type:"strong",children:[],position:void 0}}function Ti(){return{type:"text",value:"",position:void 0}}function Ii(){return{type:"thematicBreak",position:void 0}}}function Ee(e){return{line:e.line,column:e.column,offset:e.offset}}function Ur(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Ur(e,r):Su(e,r)}}function Su(e,t){let n;for(n in t)if($r.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"afterExit":case"beforeEnter":{const r=t[n];r&&e[n].push(r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Wt(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+qe({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+qe({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+qe({start:t.start,end:t.end})+") is still open")}function Cu(e){const t=this;t.parser=n;function n(r){return bu(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Eu(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Tu(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
21
- `}]}function Iu(e,t){const n=t.value?t.value+`
22
- `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function Au(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vu(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function _u(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Fe(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,u=e.footnoteCounts.get(r);u===void 0?(u=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,u+=1,e.footnoteCounts.set(r,u);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(u>1?"-"+u:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,s);const a={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,a),e.applyData(t,a)}function Pu(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ru(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function qr(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function zu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return qr(e,t);const i={src:Fe(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Lu(e,t){const n={src:Fe(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Du(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Fu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return qr(e,t);const i={href:Fe(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Ou(e,t){const n={href:Fe(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Mu(e,t,n){const r=e.all(t),i=n?Nu(n):Vr(t),o={},l=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let u=-1;for(;++u<r.length;){const c=r[u];(i||u!==0||c.type!=="element"||c.tagName!=="p")&&l.push({type:"text",value:`
23
- `}),c.type==="element"&&c.tagName==="p"&&!i?l.push(...c.children):l.push(c)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&l.push({type:"text",value:`
24
- `});const a={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,a),e.applyData(t,a)}function Nu(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=Vr(n[r])}return t}function Vr(e){const t=e.spread;return t??e.children.length>1}function Bu(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function ju(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Hu(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function $u(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Uu(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},u=Gn(t.children[1]),s=Cr(t.children[t.children.length-1]);u&&s&&(l.position={start:u,end:s}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function qu(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,u=l?l.length:t.children.length;let s=-1;const a=[];for(;++s<u;){const f=t.children[s],h={},p=l?l[s]:void 0;p&&(h.align=p);let y={type:"element",tagName:o,properties:h,children:[]};f&&(y.children=e.all(f),e.patch(f,y),y=e.applyData(f,y)),a.push(y)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(t,c),e.applyData(t,c)}function Vu(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Yt=9,Xt=32;function Wu(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Qt(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Qt(t.slice(i),i>0,!1)),o.join("")}function Qt(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Yt||o===Xt;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Yt||o===Xt;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Yu(e,t){const n={type:"text",value:Wu(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Xu(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Qu={blockquote:Eu,break:Tu,code:Iu,delete:Au,emphasis:vu,footnoteReference:_u,heading:Pu,html:Ru,imageReference:zu,image:Lu,inlineCode:Du,linkReference:Fu,link:Ou,listItem:Mu,list:Bu,paragraph:ju,root:Hu,strong:$u,table:Uu,tableCell:Vu,tableRow:qu,text:Yu,thematicBreak:Xu,toml:Je,yaml:Je,definition:Je,footnoteDefinition:Je};function Je(){}const Wr=-1,cn=0,We=1,on=2,rt=3,it=4,lt=5,ot=6,Yr=7,Xr=8,Gt=typeof self=="object"?self:globalThis,Gu=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case cn:case Wr:return n(l,i);case We:{const u=n([],i);for(const s of l)u.push(r(s));return u}case on:{const u=n({},i);for(const[s,a]of l)u[r(s)]=r(a);return u}case rt:return n(new Date(l),i);case it:{const{source:u,flags:s}=l;return n(new RegExp(u,s),i)}case lt:{const u=n(new Map,i);for(const[s,a]of l)u.set(r(s),r(a));return u}case ot:{const u=n(new Set,i);for(const s of l)u.add(r(s));return u}case Yr:{const{name:u,message:s}=l;return n(new Gt[u](s),i)}case Xr:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:u}=new Uint8Array(l);return n(new DataView(u),l)}}return n(new Gt[o](l),i)};return r},Jt=e=>Gu(new Map,e)(0),ze="",{toString:Ju}={},{keys:Ku}=Object,Ue=e=>{const t=typeof e;if(t!=="object"||!e)return[cn,t];const n=Ju.call(e).slice(8,-1);switch(n){case"Array":return[We,ze];case"Object":return[on,ze];case"Date":return[rt,ze];case"RegExp":return[it,ze];case"Map":return[lt,ze];case"Set":return[ot,ze];case"DataView":return[We,n]}return n.includes("Array")?[We,n]:n.includes("Error")?[Yr,n]:[on,n]},Ke=([e,t])=>e===cn&&(t==="function"||t==="symbol"),Zu=(e,t,n,r)=>{const i=(l,u)=>{const s=r.push(l)-1;return n.set(u,s),s},o=l=>{if(n.has(l))return n.get(l);let[u,s]=Ue(l);switch(u){case cn:{let c=l;switch(s){case"bigint":u=Xr,c=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);c=null;break;case"undefined":return i([Wr],l)}return i([u,c],l)}case We:{if(s){let h=l;return s==="DataView"?h=new Uint8Array(l.buffer):s==="ArrayBuffer"&&(h=new Uint8Array(l)),i([s,[...h]],l)}const c=[],f=i([u,c],l);for(const h of l)c.push(o(h));return f}case on:{if(s)switch(s){case"BigInt":return i([s,l.toString()],l);case"Boolean":case"Number":case"String":return i([s,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const c=[],f=i([u,c],l);for(const h of Ku(l))(e||!Ke(Ue(l[h])))&&c.push([o(h),o(l[h])]);return f}case rt:return i([u,l.toISOString()],l);case it:{const{source:c,flags:f}=l;return i([u,{source:c,flags:f}],l)}case lt:{const c=[],f=i([u,c],l);for(const[h,p]of l)(e||!(Ke(Ue(h))||Ke(Ue(p))))&&c.push([o(h),o(p)]);return f}case ot:{const c=[],f=i([u,c],l);for(const h of l)(e||!Ke(Ue(h)))&&c.push(o(h));return f}}const{message:a}=l;return i([u,{name:s,message:a}],l)};return o},Kt=(e,{json:t,lossy:n}={})=>{const r=[];return Zu(!(t||n),!!t,new Map,r)(e),r},un=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Jt(Kt(e,t)):structuredClone(e):(e,t)=>Jt(Kt(e,t));function ea(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function na(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function ta(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||ea,r=e.options.footnoteBackLabel||na,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},u=[];let s=-1;for(;++s<e.footnoteOrder.length;){const a=e.footnoteById.get(e.footnoteOrder[s]);if(!a)continue;const c=e.all(a),f=String(a.identifier).toUpperCase(),h=Fe(f.toLowerCase());let p=0;const y=[],S=e.footnoteCounts.get(f);for(;S!==void 0&&++p<=S;){y.length>0&&y.push({type:"text",value:" "});let v=typeof n=="string"?n:n(s,p);typeof v=="string"&&(v={type:"text",value:v}),y.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(v)?v:[v]})}const C=c[c.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const v=C.children[C.children.length-1];v&&v.type==="text"?v.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...y)}else c.push(...y);const k={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(c,!0)};e.patch(a,k),u.push(k)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...un(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
25
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
26
- `}]}}const fn=(function(e){if(e==null)return oa;if(typeof e=="function")return pn(e);if(typeof e=="object")return Array.isArray(e)?ra(e):ia(e);if(typeof e=="string")return la(e);throw new Error("Expected function, string, or object as test")});function ra(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=fn(e[n]);return pn(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function ia(e){const t=e;return pn(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function la(e){return pn(t);function t(n){return n&&n.type===e}}function pn(e){return t;function t(n,r,i){return!!(ua(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function oa(){return!0}function ua(e){return e!==null&&typeof e=="object"&&"type"in e}const Qr=[],aa=!0,$n=!1,sa="skip";function Gr(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=fn(i),l=r?-1:1;u(e,void 0,[])();function u(s,a,c){const f=s&&typeof s=="object"?s:{};if(typeof f.type=="string"){const p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=Qr,y,S,C;if((!t||o(s,a,c[c.length-1]||void 0))&&(p=ca(n(s,c)),p[0]===$n))return p;if("children"in s&&s.children){const k=s;if(k.children&&p[0]!==sa)for(S=(r?k.children.length:-1)+l,C=c.concat(k);S>-1&&S<k.children.length;){const v=k.children[S];if(y=u(v,S,C)(),y[0]===$n)return y;S=typeof y[1]=="number"?y[1]:S+l}}return p}}}function ca(e){return Array.isArray(e)?e:typeof e=="number"?[aa,e]:e==null?Qr:[e]}function ut(e,t,n,r){let i,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,i=n):(o=t,l=n,i=r),Gr(e,o,u,i);function u(s,a){const c=a[a.length-1],f=c?c.children.indexOf(s):void 0;return l(s,f,c)}}const Un={}.hasOwnProperty,fa={};function pa(e,t){const n=t||fa,r=new Map,i=new Map,o=new Map,l={...Qu,...n.handlers},u={all:a,applyData:ma,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:s,options:n,patch:ha,wrap:da};return ut(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?r:i,h=String(c.identifier).toUpperCase();f.has(h)||f.set(h,c)}}),u;function s(c,f){const h=c.type,p=u.handlers[h];if(Un.call(u.handlers,h)&&p)return p(u,c,f);if(u.options.passThrough&&u.options.passThrough.includes(h)){if("children"in c){const{children:S,...C}=c,k=un(C);return k.children=u.all(c),k}return un(c)}return(u.options.unknownHandler||ga)(u,c,f)}function a(c){const f=[];if("children"in c){const h=c.children;let p=-1;for(;++p<h.length;){const y=u.one(h[p],c);if(y){if(p&&h[p-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=Zt(y.value)),!Array.isArray(y)&&y.type==="element")){const S=y.children[0];S&&S.type==="text"&&(S.value=Zt(S.value))}Array.isArray(y)?f.push(...y):f.push(y)}}}return f}}function ha(e,t){e.position&&(t.position=tl(e))}function ma(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,un(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function ga(e,t){const n=t.data||{},r="value"in t&&!(Un.call(n,"hProperties")||Un.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function da(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
27
- `});++r<e.length;)r&&n.push({type:"text",value:`
28
- `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
29
- `}),n}function Zt(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function er(e,t){const n=pa(e,t),r=n.one(e,void 0),i=ta(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
30
- `},i),o}function ya(e,t){return e&&"run"in e?async function(n,r){const i=er(n,{file:r,...t});await e.run(i,r)}:function(n,r){return er(n,{file:r,...e||t})}}function nr(e){if(e)throw e}var Cn,tr;function ka(){if(tr)return Cn;tr=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(a){return typeof Array.isArray=="function"?Array.isArray(a):t.call(a)==="[object Array]"},o=function(a){if(!a||t.call(a)!=="[object Object]")return!1;var c=e.call(a,"constructor"),f=a.constructor&&a.constructor.prototype&&e.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!c&&!f)return!1;var h;for(h in a);return typeof h>"u"||e.call(a,h)},l=function(a,c){n&&c.name==="__proto__"?n(a,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):a[c.name]=c.newValue},u=function(a,c){if(c==="__proto__")if(e.call(a,c)){if(r)return r(a,c).value}else return;return a[c]};return Cn=function s(){var a,c,f,h,p,y,S=arguments[0],C=1,k=arguments.length,v=!1;for(typeof S=="boolean"&&(v=S,S=arguments[1]||{},C=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});C<k;++C)if(a=arguments[C],a!=null)for(c in a)f=u(S,c),h=u(a,c),S!==h&&(v&&h&&(o(h)||(p=i(h)))?(p?(p=!1,y=f&&i(f)?f:[]):y=f&&o(f)?f:{},l(S,{name:c,newValue:s(v,y,h)})):typeof h<"u"&&l(S,{name:c,newValue:h}));return S},Cn}var xa=ka();const En=Yn(xa);function qn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ba(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);u(null,...i);function u(s,...a){const c=e[++o];let f=-1;if(s){l(s);return}for(;++f<i.length;)(a[f]===null||a[f]===void 0)&&(a[f]=i[f]);i=a,c?wa(c,u)(...a):l(null,...a)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function wa(e,t){let n;return r;function r(...l){const u=e.length>l.length;let s;u&&l.push(i);try{s=e.apply(this,l)}catch(a){const c=a;if(u&&n)throw c;return i(c)}u||(s&&s.then&&typeof s.then=="function"?s.then(o,i):s instanceof Error?i(s):o(s))}function i(l,...u){n||(n=!0,t(l,...u))}function o(l){i(null,l)}}const xe={basename:Sa,dirname:Ca,extname:Ea,join:Ta,sep:"/"};function Sa(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ge(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,u=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),u>-1&&(e.codePointAt(i)===t.codePointAt(u--)?u<0&&(r=i):(u=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function Ca(e){if(Ge(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Ea(e){Ge(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const u=e.codePointAt(t);if(u===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),u===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Ta(...e){let t=-1,n;for(;++t<e.length;)Ge(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Ia(n)}function Ia(e){Ge(e);const t=e.codePointAt(0)===47;let n=Aa(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Aa(e,t){let n="",r=0,i=-1,o=0,l=-1,u,s;for(;++l<=e.length;){if(l<e.length)u=e.codePointAt(l);else{if(u===47)break;u=47}if(u===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length>0){n="",r=0,i=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else u===46&&o>-1?o++:o=-1}return n}function Ge(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const va={cwd:_a};function _a(){return"/"}function Vn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Pa(e){if(typeof e=="string")e=new URL(e);else if(!Vn(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Ra(e)}function Ra(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Tn=["history","path","basename","stem","extname","dirname"];class Jr{constructor(t){let n;t?Vn(t)?n={path:t}:typeof t=="string"||za(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":va.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Tn.length;){const o=Tn[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Tn.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?xe.basename(this.path):void 0}set basename(t){An(t,"basename"),In(t,"basename"),this.path=xe.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?xe.dirname(this.path):void 0}set dirname(t){rr(this.basename,"dirname"),this.path=xe.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?xe.extname(this.path):void 0}set extname(t){if(In(t,"extname"),rr(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=xe.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Vn(t)&&(t=Pa(t)),An(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?xe.basename(this.path,this.extname):void 0}set stem(t){An(t,"stem"),In(t,"stem"),this.path=xe.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new le(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function In(e,t){if(e&&e.includes(xe.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+xe.sep+"`")}function An(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function rr(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function za(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const La=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),Da={}.hasOwnProperty;class at extends La{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=ba()}copy(){const t=new at;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(En(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Pn("data",this.frozen),this.namespace[t]=n,this):Da.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Pn("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Ze(t),r=this.parser||this.Parser;return vn("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),vn("process",this.parser||this.Parser),_n("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,l){const u=Ze(t),s=r.parse(u);r.run(s,u,function(c,f,h){if(c||!f||!h)return a(c);const p=f,y=r.stringify(p,h);Ma(y)?h.value=y:h.result=y,a(c,h)});function a(c,f){c||!f?l(c):o?o(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),vn("processSync",this.parser||this.Parser),_n("processSync",this.compiler||this.Compiler),this.process(t,i),lr("processSync","process",n),r;function i(o,l){n=!0,nr(o),r=l}}run(t,n,r){ir(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,u){const s=Ze(n);i.run(t,s,a);function a(c,f,h){const p=f||t;c?u(c):l?l(p):r(void 0,p,h)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),lr("runSync","run",r),i;function o(l,u){nr(l),i=u,r=!0}}stringify(t,n){this.freeze();const r=Ze(n),i=this.compiler||this.Compiler;return _n("stringify",i),ir(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Pn("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?u(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(a){if(typeof a=="function")s(a,[]);else if(typeof a=="object")if(Array.isArray(a)){const[c,...f]=a;s(c,f)}else l(a);else throw new TypeError("Expected usable value, not `"+a+"`")}function l(a){if(!("plugins"in a)&&!("settings"in a))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");u(a.plugins),a.settings&&(i.settings=En(!0,i.settings,a.settings))}function u(a){let c=-1;if(a!=null)if(Array.isArray(a))for(;++c<a.length;){const f=a[c];o(f)}else throw new TypeError("Expected a list of plugins, not `"+a+"`")}function s(a,c){let f=-1,h=-1;for(;++f<r.length;)if(r[f][0]===a){h=f;break}if(h===-1)r.push([a,...c]);else if(c.length>0){let[p,...y]=c;const S=r[h][1];qn(S)&&qn(p)&&(p=En(!0,S,p)),r[h]=[a,p,...y]}}}}const Fa=new at().freeze();function vn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function _n(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Pn(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function ir(e){if(!qn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function lr(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ze(e){return Oa(e)?e:new Jr(e)}function Oa(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ma(e){return typeof e=="string"||Na(e)}function Na(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ba="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",or=[],ur={allowDangerousHtml:!0},ja=/^(https?|ircs?|mailto|xmpp)$/i,Ha=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function uf(e){const t=$a(e),n=Ua(e);return qa(t.runSync(t.parse(n),n),e)}function $a(e){const t=e.rehypePlugins||or,n=e.remarkPlugins||or,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ur}:ur;return Fa().use(Cu).use(n).use(ya,r).use(t)}function Ua(e){const t=e.children||"",n=new Jr;return typeof t=="string"&&(n.value=t),n}function qa(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,l=t.skipHtml,u=t.unwrapDisallowed,s=t.urlTransform||Va;for(const c of Ha)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+Ba+c.id,void 0);return ut(e,a),ul(e,{Fragment:dn.Fragment,components:i,ignoreInvalidStyle:!0,jsx:dn.jsx,jsxs:dn.jsxs,passKeys:!0,passNode:!0});function a(c,f,h){if(c.type==="raw"&&h&&typeof f=="number")return l?h.children.splice(f,1):h.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let p;for(p in bn)if(Object.hasOwn(bn,p)&&Object.hasOwn(c.properties,p)){const y=c.properties[p],S=bn[p];(S===null||S.includes(c.tagName))&&(c.properties[p]=s(String(y||""),p,c))}}if(c.type==="element"){let p=n?!n.includes(c.tagName):o?o.includes(c.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(c,f,h)),p&&h&&typeof f=="number")return u&&c.children?h.children.splice(f,1,...c.children):h.children.splice(f,1),f}}}function Va(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||ja.test(e.slice(0,t))?e:""}function ar(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Wa(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Ya(e,t,n){const i=fn((n||{}).ignore||[]),o=Xa(t);let l=-1;for(;++l<o.length;)Gr(e,"text",u);function u(a,c){let f=-1,h;for(;++f<c.length;){const p=c[f],y=h?h.children:void 0;if(i(p,y?y.indexOf(p):void 0,h))return;h=p}if(h)return s(a,c)}function s(a,c){const f=c[c.length-1],h=o[l][0],p=o[l][1];let y=0;const C=f.children.indexOf(a);let k=!1,v=[];h.lastIndex=0;let T=h.exec(a.value);for(;T;){const F=T.index,w={index:T.index,input:T.input,stack:[...c,a]};let P=p(...T,w);if(typeof P=="string"&&(P=P.length>0?{type:"text",value:P}:void 0),P===!1)h.lastIndex=F+1;else{if(y!==F&&M({type:"text",value:a.value.slice(y,F)}),Array.isArray(P))for(const $ of P)M($);else P&&M(P);y=F+T[0].length,k=!0}if(!h.global)break;T=h.exec(a.value)}return k?(y<a.value.length&&M({type:"text",value:a.value.slice(y)}),f.children.splice(C,1,...v)):v=[a],C+v.length;function M(F){const w=v[v.length-1];w&&w.type==="text"&&F.type==="text"?w.value+=F.value:v.push(F)}}}function Xa(e){if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=[],n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([Qa(i[0]),Ga(i[1])])}return t}function Qa(e){return typeof e=="string"?new RegExp(Wa(e),"g"):e}function Ga(e){return typeof e=="function"?e:function(){return e}}const Rn="phrasing",zn=["autolink","link","image","label"];function Ja(){return{transforms:[is],enter:{literalAutolink:Za,literalAutolinkEmail:Ln,literalAutolinkHttp:Ln,literalAutolinkWww:Ln},exit:{literalAutolink:rs,literalAutolinkEmail:ts,literalAutolinkHttp:es,literalAutolinkWww:ns}}}function Ka(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Rn,notInConstruct:zn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Rn,notInConstruct:zn},{character:":",before:"[ps]",after:"\\/",inConstruct:Rn,notInConstruct:zn}]}}function Za(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ln(e){this.config.enter.autolinkProtocol.call(this,e)}function es(e){this.config.exit.autolinkProtocol.call(this,e)}function ns(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function ts(e){this.config.exit.autolinkEmail.call(this,e)}function rs(e){this.exit(e)}function is(e){Ya(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ls],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,os]],{ignore:["link","linkReference"]})}function ls(e,t,n,r,i){let o="";if(!Kr(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!us(n)))return!1;const l=as(n+r);if(!l[0])return!1;const u={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[u,{type:"text",value:l[1]}]:u}function os(e,t,n,r){return!Kr(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function us(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function as(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=ar(e,"(");let o=ar(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function Kr(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||ve(n)||an(n))&&(!t||n!==47)}Zr.peek=ys;function ss(){this.buffer()}function cs(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function fs(){this.buffer()}function ps(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function hs(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ye(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ms(e){this.exit(e)}function gs(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=ye(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ds(e){this.exit(e)}function ys(){return"["}function Zr(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const l=n.enter("footnoteReference"),u=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),u(),l(),o+=i.move("]"),o}function ks(){return{enter:{gfmFootnoteCallString:ss,gfmFootnoteCall:cs,gfmFootnoteDefinitionLabelString:fs,gfmFootnoteDefinition:ps},exit:{gfmFootnoteCallString:hs,gfmFootnoteCall:ms,gfmFootnoteDefinitionLabelString:gs,gfmFootnoteDefinition:ds}}}function xs(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Zr},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,l){const u=o.createTracker(l);let s=u.move("[^");const a=o.enter("footnoteDefinition"),c=o.enter("label");return s+=u.move(o.safe(o.associationId(r),{before:s,after:"]"})),c(),s+=u.move("]:"),r.children&&r.children.length>0&&(u.shift(4),s+=u.move((t?`
31
- `:" ")+o.indentLines(o.containerFlow(r,u.current()),t?ei:bs))),a(),s}}function bs(e,t,n){return t===0?e:ei(e,t,n)}function ei(e,t,n){return(n?"":" ")+e}const ws=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];st.attention=Is;st.peek=As;function Ss(){return{canContainEols:["delete"],enter:{strikethrough:Es},exit:{strikethrough:Ts}}}function Cs(){return{handlers:{delete:st},unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ws}]}}function Es(e){this.enter({type:"delete",children:[],position:void 0},e)}function Ts(e){this.exit(e)}function st(e,t,n,r){const i=n.createTracker(r),o=n.stack.includes("strikethrough")?"~":"~~",l=n.enter("strikethrough");let u=i.move(o);return u+=n.containerPhrasing(e,{...i.current(),before:u,after:"~"}),u+=i.move(o),l(),u}function Is(){return{construct:"strikethrough",markers:["~"],sizes:[2,1]}}function As(){return"~"}function vs(e){return e.length}function _s(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||vs,o=[],l=[],u=[],s=[];let a=0,c=-1;for(;++c<e.length;){const S=[],C=[];let k=-1;for(e[c].length>a&&(a=e[c].length);++k<e[c].length;){const v=Ps(e[c][k]);if(n.alignDelimiters!==!1){const T=i(v);C[k]=T,(s[k]===void 0||T>s[k])&&(s[k]=T)}S.push(v)}l[c]=S,u[c]=C}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<a;)o[f]=sr(r[f]);else{const S=sr(r);for(;++f<a;)o[f]=S}f=-1;const h=[],p=[];for(;++f<a;){const S=o[f];let C="",k="";S===99?(C=":",k=":"):S===108?C=":":S===114&&(k=":");let v=n.alignDelimiters===!1?1:Math.max(1,s[f]-C.length-k.length);const T=C+"-".repeat(v)+k;n.alignDelimiters!==!1&&(v=C.length+v+k.length,v>s[f]&&(s[f]=v),p[f]=v),h[f]=T}l.splice(1,0,h),u.splice(1,0,p),c=-1;const y=[];for(;++c<l.length;){const S=l[c],C=u[c];f=-1;const k=[];for(;++f<a;){const v=S[f]||"";let T="",M="";if(n.alignDelimiters!==!1){const F=s[f]-(C[f]||0),w=o[f];w===114?T=" ".repeat(F):w===99?F%2?(T=" ".repeat(F/2+.5),M=" ".repeat(F/2-.5)):(T=" ".repeat(F/2),M=T):M=" ".repeat(F)}n.delimiterStart!==!1&&!f&&k.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&v==="")&&(n.delimiterStart!==!1||f)&&k.push(" "),n.alignDelimiters!==!1&&k.push(T),k.push(v),n.alignDelimiters!==!1&&k.push(M),n.padding!==!1&&k.push(" "),(n.delimiterEnd!==!1||f!==a-1)&&k.push("|")}y.push(n.delimiterEnd===!1?k.join("").replace(/ +$/,""):k.join(""))}return y.join(`
32
- `)}function Ps(e){return e==null?"":String(e)}function sr(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const Rs=fn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function zs(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),Ls);return i(),l}function Ls(e,t,n){return">"+(n?"":" ")+e}function Ds(e,t){return cr(e,t.inConstruct,!0)&&!cr(e,t.notInConstruct,!1)}function cr(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function fr(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){const o=n.unsafe[i];if(o.character===`
33
- `&&!o.before&&!o.after&&Ds(n.stack,o))return/[\t ]/.test(r.before)?"":" "}return`\\
34
- `}function Fs(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+t.length,r=n.indexOf(t,i);return l}function Os(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^\n\r ]/.test(e.value)&&!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function Ms(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Ns(e,t,n,r){const i=Ms(n),o=e.value||"";if(Os(e,n)){const f=n.enter("codeIndented"),h=n.indentLines(o,Bs);return f(),h}const l=n.createTracker(r),u=i.repeat(Math.max(Fs(o,i)+1,3)),s=n.enter("codeFenced"),a=i==="`"?"GraveAccent":"Tilde";let c=l.move(u);if(e.lang){const f=n.enter(`codeFencedLang${a}`);c+=l.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...l.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${a}`);c+=l.move(" "),c+=l.move(n.safe(e.meta,{before:c,after:`
35
- `,encode:["`"],...l.current()})),f()}return c+=l.move(`
36
- `),o&&(c+=l.move(o+`
37
- `)),c+=l.move(u),s(),c}function Bs(e,t,n){return(n?"":" ")+e}function ct(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function js(e,t,n,r){const i=ct(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let u=n.enter("label");const s=n.createTracker(r);let a=s.move("[");return a+=s.move(n.safe(n.associationId(e),{before:a,after:"]",...s.current()})),a+=s.move("]: "),u(),!e.url||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),a+=s.move("<"),a+=s.move(n.safe(e.url,{before:a,after:">",...s.current()})),a+=s.move(">")):(u=n.enter("destinationRaw"),a+=s.move(n.safe(e.url,{before:a,after:e.title?" ":`
38
- `,...s.current()}))),u(),e.title&&(u=n.enter(`title${o}`),a+=s.move(" "+i),a+=s.move(n.safe(e.title,{before:a,after:i,...s.current()})),a+=s.move(i),u()),l(),a}function Hs(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}ft.attention=$s;ft.peek=Us;function ft(e,t,n,r){const i=n.enter("phrasing"),o=n.containerPhrasing({type:"root",children:[e]},r);return i(),o}function $s(e,t){return{construct:"emphasis",markers:Hs(t)==="*"?["*","_"]:["_","*"],sizes:[1]}}function Us(e,t,n){return n.options.emphasis||"*"}function qs(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Vs(e,t){let n=!1;return ut(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,$n}),!!((!e.depth||e.depth<3)&&et(e)&&(t.options.setext||n))}function Ws(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(Vs(e,n)){const f=n.enter("headingSetext"),h=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:`
39
- `,after:`
40
- `});return h(),f(),p+`
41
- `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
42
- `))+1))}const l="#".repeat(i),u=n.enter("headingAtx"),s=n.enter("phrasing");o.move(l+" ");let a=n.containerPhrasing(e,{before:"# ",after:`
43
- `,...o.current()});const c=a.charCodeAt(0);return(c===9||c===32)&&(a=qs(c)+a.slice(1)),a=a?l+" "+a:l,n.options.closeAtx&&(a+=" "+l),s(),u(),a}ni.peek=Ys;function ni(e){return e.value||""}function Ys(){return"<"}ti.peek=Xs;function ti(e,t,n,r){const i=ct(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let u=n.enter("label");const s=n.createTracker(r);let a=s.move("![");return a+=s.move(n.safe(e.alt,{before:a,after:"]",...s.current()})),a+=s.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=n.enter("destinationLiteral"),a+=s.move("<"),a+=s.move(n.safe(e.url,{before:a,after:">",...s.current()})),a+=s.move(">")):(u=n.enter("destinationRaw"),a+=s.move(n.safe(e.url,{before:a,after:e.title?" ":")",...s.current()}))),u(),e.title&&(u=n.enter(`title${o}`),a+=s.move(" "+i),a+=s.move(n.safe(e.title,{before:a,after:i,...s.current()})),a+=s.move(i),u()),a+=s.move(")"),l(),a}function Xs(){return"!"}ri.peek=Qs;function ri(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const u=n.createTracker(r);let s=u.move("![");const a=n.safe(e.alt,{before:s,after:"]",...u.current()});s+=u.move(a+"]["),l();const c=n.stack;n.stack=c.filter(function(h){return h!=="phrasing"}),l=n.enter("reference");const f=n.safe(n.associationId(e),{before:s,after:"]",...u.current()});return l(),n.stack=c,o(),i==="full"||!a||a!==f?s+=u.move(f+"]"):i==="shortcut"?s=s.slice(0,-1):s+=u.move("]"),s}function Qs(){return"!"}ii.peek=Gs;function ii(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const l=n.unsafe[o],u=n.compilePattern(l);if(!l.atBreak)continue;let s;for(;s=u.exec(r);){let a=s.index;r.charCodeAt(a)===10&&r.charCodeAt(a-1)===13&&a--,r=r.slice(0,a)+" "+r.slice(s.index+1)}}return i+r+i}function Gs(){return"`"}function li(e,t){const n=et(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][+\-.a-z]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}oi.peek=Js;function oi(e,t,n,r){const i=ct(n),o=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);if(li(e,n)){const c=n.stack;n.stack=c.filter(function(p){return p!=="phrasing"});const f=n.enter("autolink");let h=l.move("<");return h+=l.move(n.containerPhrasing(e,{before:h,after:">",...l.current()})),h+=l.move(">"),f(),n.stack=c,h}const u=n.enter("link");let s=n.enter("label"),a=l.move("[");return a+=l.move(n.containerPhrasing(e,{before:a,after:"](",...l.current()})),a+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),a+=l.move("<"),a+=l.move(n.safe(e.url,{before:a,after:">",...l.current()})),a+=l.move(">")):(s=n.enter("destinationRaw"),a+=l.move(n.safe(e.url,{before:a,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),a+=l.move(" "+i),a+=l.move(n.safe(e.title,{before:a,after:i,...l.current()})),a+=l.move(i),s()),a+=l.move(")"),u(),a}function Js(e,t,n){return li(e,n)?"<":"["}ui.peek=Ks;function ui(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const u=n.createTracker(r);let s=u.move("[");const a=n.containerPhrasing(e,{before:s,after:"]",...u.current()});s+=u.move(a+"]["),l();const c=n.stack;n.stack=c.filter(function(h){return h!=="phrasing"}),l=n.enter("reference");const f=n.safe(n.associationId(e),{before:s,after:"]",...u.current()});return l(),n.stack=c,o(),i==="full"||!a||a!==f?s+=u.move(f+"]"):i==="shortcut"?s=s.slice(0,-1):s+=u.move("]"),s}function Ks(){return"["}function pt(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function Zs(e){const t=pt(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function ec(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ai(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function nc(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?ec(n):pt(n);const u=e.ordered?l==="."?")":".":Zs(n);let s=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),ai(n)===l&&c){let f=-1;for(;++f<e.children.length;){const h=e.children[f];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(l=u),n.bulletCurrent=l;const a=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,i(),a}function tc(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function rc(e,t,n,r){const i=tc(n);let o=n.bulletCurrent||pt(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const u=n.createTracker(r);u.move(o+" ".repeat(l-o.length)),u.shift(l);const s=n.enter("listItem"),a=n.indentLines(n.containerFlow(e,u.current()),c);return s(),a;function c(f,h,p){return h?(p?"":" ".repeat(l))+f:(p?o:o+" ".repeat(l-o.length))+f}}function ic(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l}function lc(e,t,n,r){if(!e.children.some(function(u){return Rs(u)}))return n.containerFlow(e,r);const o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),l}function oc(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}ht.attention=uc;ht.peek=ac;function ht(e,t,n,r){const i=n.enter("phrasing"),o=n.containerPhrasing({type:"root",children:[e]},r);return i(),o}function uc(e,t){return{construct:"strong",markers:oc(t)==="*"?["*","_"]:["_","*"],sizes:[2]}}function ac(e,t,n){return n.options.strong||"*"}function sc(e,t,n,r){const i=t?t.children:[],o=i.indexOf(e);return n.safe(e.value,{...r,afterNode:i[o+1],beforeNode:i[o-1]})}function cc(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function fc(e,t,n){const r=(ai(n)+(n.options.ruleSpaces?" ":"")).repeat(cc(n));return n.options.ruleSpaces?r.slice(0,-1):r}const si={blockquote:zs,break:fr,code:Ns,definition:js,emphasis:ft,hardBreak:fr,heading:Ws,html:ni,image:ti,imageReference:ri,inlineCode:ii,link:oi,linkReference:ui,list:nc,listItem:rc,paragraph:ic,root:lc,strong:ht,text:sc,thematicBreak:fc};function pc(){return{enter:{table:hc,tableData:pr,tableHeader:pr,tableRow:gc},exit:{codeText:dc,table:mc,tableData:Dn,tableHeader:Dn,tableRow:Dn}}}function hc(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function mc(e){this.exit(e),this.data.inTable=void 0}function gc(e){this.enter({type:"tableRow",children:[]},e)}function Dn(e){this.exit(e)}function pr(e){this.enter({type:"tableCell",children:[]},e)}function dc(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,yc));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function yc(e,t){return t==="|"?t:e}function kc(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
44
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:l,tableCell:s,tableRow:u}};function l(p,y,S,C){return a(c(p,S,C),p.align)}function u(p,y,S,C){const k=f(p,S,C),v=a([k]);return v.slice(0,v.indexOf(`
45
- `))}function s(p,y,S,C){const k=S.enter("tableCell"),v=S.enter("phrasing"),T=S.containerPhrasing(p,{...C,before:o,after:o});return v(),k(),T}function a(p,y){return _s(p,{align:y,alignDelimiters:r,padding:n,stringLength:i})}function c(p,y,S){const C=p.children;let k=-1;const v=[],T=y.enter("table");for(;++k<C.length;)v[k]=f(C[k],y,S);return T(),v}function f(p,y,S){const C=p.children;let k=-1;const v=[],T=y.enter("tableRow");for(;++k<C.length;)v[k]=s(C[k],p,y,S);return T(),v}function h(p,y,S){let C=si.inlineCode(p,y,S);return S.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function xc(){return{exit:{taskListCheckValueChecked:hr,taskListCheckValueUnchecked:hr,paragraph:wc}}}function bc(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Sc}}}function hr(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function wc(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,l;for(;++o<i.length;){const u=i[o];if(u.type==="paragraph"){l=u;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Sc(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",u=n.createTracker(r);o&&u.move(l);let s=si.listItem(e,t,n,{...r,...u.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,a)),s;function a(c){return c+l}}function Cc(){return[Ja(),ks(),Ss(),pc(),xc()]}function Ec(e){return{extensions:[Ka(),xs(e),Cs(),kc(e),bc()]}}const Tc={tokenize:Rc,partial:!0},ci={tokenize:zc,partial:!0},fi={tokenize:Lc,partial:!0},pi={tokenize:Dc,partial:!0},Ic={tokenize:Fc,partial:!0},hi={name:"wwwAutolink",tokenize:_c,previous:gi},mi={name:"protocolAutolink",tokenize:Pc,previous:di},Se={name:"emailAutolink",tokenize:vc,previous:yi},be={};function Ac(){return{text:be}}let Ie=48;for(;Ie<123;)be[Ie]=Se,Ie++,Ie===58?Ie=65:Ie===91&&(Ie=97);be[43]=Se;be[45]=Se;be[46]=Se;be[95]=Se;be[72]=[Se,mi];be[104]=[Se,mi];be[87]=[Se,hi];be[119]=[Se,hi];function vc(e,t,n){const r=this;let i,o;return l;function l(f){return!Wn(f)||!yi.call(r,r.previous)||mt(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),u(f))}function u(f){return Wn(f)?(e.consume(f),u):f===64?(e.consume(f),s):n(f)}function s(f){return f===46?e.check(Ic,c,a)(f):f===45||f===95||ie(f)?(o=!0,e.consume(f),s):c(f)}function a(f){return e.consume(f),i=!0,s}function c(f){return o&&i&&oe(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function _c(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!gi.call(r,r.previous)||mt(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Tc,e.attempt(ci,e.attempt(fi,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function Pc(e,t,n){const r=this;let i="",o=!1;return l;function l(f){return(f===72||f===104)&&di.call(r,r.previous)&&!mt(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),u):n(f)}function u(f){if(oe(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),u;if(f===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(f),s}return n(f)}function s(f){return f===47?(e.consume(f),o?a:(o=!0,s)):n(f)}function a(f){return f===null||tn(f)||K(f)||ve(f)||an(f)?n(f):e.attempt(ci,e.attempt(fi,c),n)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function Rc(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function zc(e,t,n){let r,i,o;return l;function l(a){return a===46||a===95?e.check(pi,s,u)(a):a===null||K(a)||ve(a)||a!==45&&an(a)?s(a):(o=!0,e.consume(a),l)}function u(a){return a===95?r=!0:(i=r,r=void 0),e.consume(a),l}function s(a){return i||r||!o?n(a):t(a)}}function Lc(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(pi,t,o)(l):l===null||K(l)||ve(l)?t(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function Dc(e,t,n){return r;function r(u){return u===33||u===34||u===39||u===41||u===42||u===44||u===46||u===58||u===59||u===63||u===95||u===126?(e.consume(u),r):u===38?(e.consume(u),o):u===93?(e.consume(u),i):u===60||u===null||K(u)||ve(u)?t(u):n(u)}function i(u){return u===null||u===40||u===91||K(u)||ve(u)?t(u):r(u)}function o(u){return oe(u)?l(u):n(u)}function l(u){return u===59?(e.consume(u),r):oe(u)?(e.consume(u),l):n(u)}}function Fc(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return ie(o)?n(o):t(o)}}function gi(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||K(e)}function di(e){return!oe(e)}function yi(e){return!(e===47||Wn(e))}function Wn(e){return e===43||e===45||e===46||e===95||ie(e)}function mt(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Oc={tokenize:qc,partial:!0};function Mc(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Hc,continuation:{tokenize:$c},exit:Uc}},text:{91:{name:"gfmFootnoteCall",tokenize:jc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Nc,resolveTo:Bc}}}}function Nc(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){l=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return u;function u(s){if(!l||!l._balanced)return n(s);const a=ye(r.sliceSerialize({start:l.end,end:r.now()}));return a.codePointAt(0)!==94||!o.includes(a.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function Bc(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},u=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...u),e}function jc(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return u;function u(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),s}function s(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",a)}function a(f){if(o>999||f===93&&!l||f===null||f===91||K(f))return n(f);if(f===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(ye(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return K(f)||(l=!0),o++,e.consume(f),f===92?c:a}function c(f){return f===91||f===92||f===93?(e.consume(f),o++,a):a(f)}}function Hc(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,u;return s;function s(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),a}function a(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(y)}function c(y){if(l>999||y===93&&!u||y===null||y===91||K(y))return n(y);if(y===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return o=ye(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return K(y)||(u=!0),l++,e.consume(y),y===92?f:c}function f(y){return y===91||y===92||y===93?(e.consume(y),l++,c):c(y)}function h(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),i.includes(o)||i.push(o),X(e,p,"gfmFootnoteDefinitionWhitespace")):n(y)}function p(y){return t(y)}}function $c(e,t,n){return e.check(Qe,t,e.attempt(Oc,t,n))}function Uc(e){e.exit("gfmFootnoteDefinition")}function qc(e,t,n){const r=this;return X(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function Vc(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,u){let s=-1;for(;++s<l.length;)if(l[s][0]==="enter"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._close){let a=s;for(;a--;)if(l[a][0]==="exit"&&l[a][1].type==="strikethroughSequenceTemporary"&&l[a][1]._open&&l[s][1].end.offset-l[s][1].start.offset===l[a][1].end.offset-l[a][1].start.offset){l[s][1].type="strikethroughSequence",l[a][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},l[a][1].start),end:Object.assign({},l[s][1].end)},f={type:"strikethroughText",start:Object.assign({},l[a][1].end),end:Object.assign({},l[s][1].start)},h=[["enter",c,u],["enter",l[a][1],u],["exit",l[a][1],u],["enter",f,u]],p=u.parser.constructs.insideSpan.null;p&&de(h,h.length,0,sn(p,l.slice(a+1,s),u)),de(h,h.length,0,[["exit",f,u],["enter",l[s][1],u],["exit",l[s][1],u],["exit",c,u]]),de(l,a-1,s-a+3,h),s=a+h.length-2;break}}for(s=-1;++s<l.length;)l[s][1].type==="strikethroughSequenceTemporary"&&(l[s][1].type="data");return l}function o(l,u,s){const a=this.previous,c=this.events;let f=0;return h;function h(y){return a===126&&c[c.length-1][1].type!=="characterEscape"?s(y):(l.enter("strikethroughSequenceTemporary"),p(y))}function p(y){const S=ln(a);if(y===126)return f>1?s(y):(l.consume(y),f++,p);if(f<2&&!n)return s(y);const C=l.exit("strikethroughSequenceTemporary"),k=ln(y);return C._open=!k||k===2&&!!S,C._close=!S||S===2&&!!k,u(y)}}}class Wc{constructor(){this.map=[],this.index=new Map}add(t,n,r){Yc(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0,this.index.clear()}}function Yc(e,t,n,r){if(n===0&&r.length===0)return;const i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}const o=[t,n,r];e.map.push(o),e.index.set(t,o)}function Xc(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Qc(){return{flow:{null:{name:"table",tokenize:Gc,resolveAll:Jc}}}}function Gc(e,t,n){const r=this;let i=0,o=0,l;return u;function u(x){let _=r.events.length-1;for(;_>-1;){const{type:z}=r.events[_][1];if(z==="lineEnding"||z==="linePrefix")_--;else break}const D=_>-1?r.events[_][1].type:null,Y=D==="tableHead"||D==="tableRow"?w:s;return Y===w&&r.parser.lazy[r.now().line]?n(x):Y(x)}function s(x){return e.enter("tableHead"),e.enter("tableRow"),a(x)}function a(x){return x===124||(l=!0,o+=1),c(x)}function c(x){return x===null?n(x):O(x)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),p):n(x):q(x)?X(e,c,"whitespace")(x):(o+=1,l&&(l=!1,i+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),l=!0,c):(e.enter("data"),f(x)))}function f(x){return x===null||x===124||K(x)?(e.exit("data"),c(x)):(e.consume(x),x===92?h:f)}function h(x){return x===92||x===124?(e.consume(x),f):f(x)}function p(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(x):(e.enter("tableDelimiterRow"),l=!1,q(x)?X(e,y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):y(x))}function y(x){return x===45||x===58?C(x):x===124?(l=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),S):F(x)}function S(x){return q(x)?X(e,C,"whitespace")(x):C(x)}function C(x){return x===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),k):x===45?(o+=1,k(x)):x===null||O(x)?M(x):F(x)}function k(x){return x===45?(e.enter("tableDelimiterFiller"),v(x)):F(x)}function v(x){return x===45?(e.consume(x),v):x===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(x))}function T(x){return q(x)?X(e,M,"whitespace")(x):M(x)}function M(x){return x===124?y(x):x===null||O(x)?!l||i!==o?F(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(x)):F(x)}function F(x){return n(x)}function w(x){return e.enter("tableRow"),P(x)}function P(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),P):x===null||O(x)?(e.exit("tableRow"),t(x)):q(x)?X(e,P,"whitespace")(x):(e.enter("data"),$(x))}function $(x){return x===null||x===124||K(x)?(e.exit("data"),P(x)):(e.consume(x),x===92?G:$)}function G(x){return x===92||x===124?(e.consume(x),$):$(x)}}function Jc(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],u=!1,s=0,a,c,f;const h=new Wc;for(;++n<e.length;){const p=e[n],y=p[1];p[0]==="enter"?y.type==="tableHead"?(u=!1,s!==0&&(mr(h,t,s,a,c),c=void 0,s=0),a={type:"table",start:Object.assign({},y.start),end:Object.assign({},y.end)},h.add(n,0,[["enter",a,t]])):y.type==="tableRow"||y.type==="tableDelimiterRow"?(r=!0,f=void 0,o=[0,0,0,0],l=[0,n+1,0,0],u&&(u=!1,c={type:"tableBody",start:Object.assign({},y.start),end:Object.assign({},y.end)},h.add(n,0,[["enter",c,t]])),i=y.type==="tableDelimiterRow"?2:c?3:1):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],f=en(h,t,o,i,void 0,f),o=[0,0,0,0]),l[2]=n)):y.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],f=en(h,t,o,i,void 0,f)),o=l,l=[o[1],n,0,0])):y.type==="tableHead"?(u=!0,s=n):y.type==="tableRow"||y.type==="tableDelimiterRow"?(s=n,o[1]!==0?(l[0]=l[1],f=en(h,t,o,i,n,f)):l[1]!==0&&(f=en(h,t,l,i,n,f)),i=0):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")&&(l[3]=n)}for(s!==0&&mr(h,t,s,a,c),h.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=Xc(t.events,n))}return e}function en(e,t,n,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",u="tableContent";n[0]!==0&&(o.end=Object.assign({},Le(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=Le(t.events,n[1]);if(o={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const a=Le(t.events,n[2]),c=Le(t.events,n[3]),f={type:u,start:Object.assign({},a),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const h=t.events[n[2]],p=t.events[n[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",n[3]>n[2]+1){const y=n[2]+1,S=n[3]-n[2]-1;e.add(y,S,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(o.end=Object.assign({},Le(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function mr(e,t,n,r,i){const o=[],l=Le(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function Le(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Kc={name:"tasklistCheck",tokenize:ef};function Zc(){return{text:{91:Kc}}}function ef(e,t,n){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return K(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),l):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),l):n(s)}function l(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),u):n(s)}function u(s){return O(s)?t(s):q(s)?e.check({tokenize:nf},t,n)(s):n(s)}}function nf(e,t,n){return X(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function tf(e){return Pr([Ac(),Mc(),Vc(e),Qc(),Zc()])}const rf={};function af(e){const t=this,n=e||rf,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(tf(n)),o.push(Cc()),l.push(Ec(n))}export{uf as M,lf as R,gr as a,zi as b,af as c,Va as d,Yn as g,dn as j,Ri as r};