cogpit 2.0.0

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 (70) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +30 -0
  3. package/dist/cli.js +26786 -0
  4. package/dist/web/apple-touch-icon.png +0 -0
  5. package/dist/web/assets/CommandPaletteHost-ChH6w0Bx.js +1 -0
  6. package/dist/web/assets/ConfigBrowser-CPCH7_25.js +1 -0
  7. package/dist/web/assets/HighlightedEditor-BPmH8BvC.js +2 -0
  8. package/dist/web/assets/KeyboardShortcutsDialog-CTbXz40Z.js +1 -0
  9. package/dist/web/assets/MobileFileChanges-C5VoKbje.js +1 -0
  10. package/dist/web/assets/PreviewPanel-DoAf1W2k.js +1 -0
  11. package/dist/web/assets/ProjectFilesPanel-v_O7Awnm.js +4 -0
  12. package/dist/web/assets/ProjectSwitcherModal-CSZrCd3X.js +1 -0
  13. package/dist/web/assets/TerminalOutput-6GBZ9nXN.css +32 -0
  14. package/dist/web/assets/TerminalOutput-SImEU6_6.js +51 -0
  15. package/dist/web/assets/ThemeSelectorModal-rjVBMgWC.js +1 -0
  16. package/dist/web/assets/WorkflowsPanel-JVqgKAzY.js +1 -0
  17. package/dist/web/assets/WorktreePanel-D94-oAau.js +1 -0
  18. package/dist/web/assets/bash-Yzrsuije.js +1 -0
  19. package/dist/web/assets/c-BIGW1oBm.js +1 -0
  20. package/dist/web/assets/cpp-BRuaLJcg.js +1 -0
  21. package/dist/web/assets/css-DPfMkruS.js +1 -0
  22. package/dist/web/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2 +0 -0
  23. package/dist/web/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2 +0 -0
  24. package/dist/web/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2 +0 -0
  25. package/dist/web/assets/geist-latin-wght-normal-BgDaEnEv.woff2 +0 -0
  26. package/dist/web/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2 +0 -0
  27. package/dist/web/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2 +0 -0
  28. package/dist/web/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2 +0 -0
  29. package/dist/web/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2 +0 -0
  30. package/dist/web/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2 +0 -0
  31. package/dist/web/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2 +0 -0
  32. package/dist/web/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2 +0 -0
  33. package/dist/web/assets/github-dark-DHJKELXO.js +1 -0
  34. package/dist/web/assets/github-light-DAi9KRSo.js +1 -0
  35. package/dist/web/assets/go-CxLEBnE3.js +1 -0
  36. package/dist/web/assets/html-GMplVEZG.js +1 -0
  37. package/dist/web/assets/index-Bif4Kdtn.css +1 -0
  38. package/dist/web/assets/index-C00ZsBZl.js +1 -0
  39. package/dist/web/assets/index-C5VcQtkE.js +1 -0
  40. package/dist/web/assets/index-CNV6e3p0.js +138 -0
  41. package/dist/web/assets/index-S7UMnH_y.js +5 -0
  42. package/dist/web/assets/java-CylS5w8V.js +1 -0
  43. package/dist/web/assets/javascript-wDzz0qaB.js +1 -0
  44. package/dist/web/assets/json-Cp-IABpG.js +1 -0
  45. package/dist/web/assets/jsx-g9-lgVsj.js +1 -0
  46. package/dist/web/assets/kotlin-BdnUsdx6.js +1 -0
  47. package/dist/web/assets/markdown-Cvjx9yec.js +1 -0
  48. package/dist/web/assets/php-aq0itWAE.js +1 -0
  49. package/dist/web/assets/python-B6aJPvgy.js +1 -0
  50. package/dist/web/assets/ruby-B0Tyh1qT.js +1 -0
  51. package/dist/web/assets/rust-B1yitclQ.js +1 -0
  52. package/dist/web/assets/scss-OYdSNvt2.js +1 -0
  53. package/dist/web/assets/session-parser.worker-BhyaigCR.js +22 -0
  54. package/dist/web/assets/sql-BLtJtn59.js +1 -0
  55. package/dist/web/assets/svelte-DZMnMd3x.js +1 -0
  56. package/dist/web/assets/swift-D82vCrfD.js +1 -0
  57. package/dist/web/assets/toml-vGWfd6FD.js +1 -0
  58. package/dist/web/assets/tsx-COt5Ahok.js +1 -0
  59. package/dist/web/assets/typescript-BPQ3VLAy.js +1 -0
  60. package/dist/web/assets/vendor-markdown-BE1gYnO9.js +37 -0
  61. package/dist/web/assets/vendor-react-gGw_S5I_.js +57 -0
  62. package/dist/web/assets/vendor-shiki-DOn6sF-i.js +144 -0
  63. package/dist/web/assets/vendor-ui-BmLOQ5Or.js +797 -0
  64. package/dist/web/assets/vue-DVfSmUF7.js +1 -0
  65. package/dist/web/assets/xml-D2mA2LmW.js +1 -0
  66. package/dist/web/assets/yaml-Buea-lGh.js +1 -0
  67. package/dist/web/cogpit.svg +10 -0
  68. package/dist/web/index.html +28 -0
  69. package/dist/web/theme-bootstrap.js +25 -0
  70. package/package.json +51 -0
@@ -0,0 +1,37 @@
1
+ import{g as hr,j as xt}from"./vendor-react-gGw_S5I_.js";function pr(e,n){const t=n||{};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Oi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_i=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mi={};function bn(e,n){return(Mi.jsx?_i:Oi).test(e)}const Bi=/[ \t\n\f\r]/g;function ht(e){return typeof e=="object"?e.type==="text"?wn(e.value):!1:wn(e)}function wn(e){return e.replace(Bi,"")===""}class Qe{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Qe.prototype.normal={};Qe.prototype.property={};Qe.prototype.space=void 0;function mr(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Qe(t,r,n)}function Mt(e){return e.toLowerCase()}class te{constructor(n,t){this.attribute=t,this.property=n}}te.prototype.attribute="";te.prototype.booleanish=!1;te.prototype.boolean=!1;te.prototype.commaOrSpaceSeparated=!1;te.prototype.commaSeparated=!1;te.prototype.defined=!1;te.prototype.mustUseProperty=!1;te.prototype.number=!1;te.prototype.overloadedBoolean=!1;te.prototype.property="";te.prototype.spaceSeparated=!1;te.prototype.space=void 0;let ji=0;const L=Te(),Y=Te(),Bt=Te(),E=Te(),V=Te(),Ae=Te(),re=Te();function Te(){return 2**++ji}const jt=Object.freeze(Object.defineProperty({__proto__:null,boolean:L,booleanish:Y,commaOrSpaceSeparated:re,commaSeparated:Ae,number:E,overloadedBoolean:Bt,spaceSeparated:V},Symbol.toStringTag,{value:"Module"})),kt=Object.keys(jt);class Gt extends te{constructor(n,t,r,i){let o=-1;if(super(n,t),Sn(this,"space",i),typeof r=="number")for(;++o<kt.length;){const l=kt[o];Sn(this,kt[o],(r&jt[l])===jt[l])}}}Gt.prototype.defined=!0;function Sn(e,n,t){t&&(e[n]=t)}function Ne(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new Gt(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[Mt(r)]=r,t[Mt(o.attribute)]=r}return new Qe(n,t,e.space)}const gr=Ne({properties:{ariaActiveDescendant:null,ariaAtomic:Y,ariaAutoComplete:null,ariaBusy:Y,ariaChecked:Y,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:V,ariaCurrent:null,ariaDescribedBy:V,ariaDetails:null,ariaDisabled:Y,ariaDropEffect:V,ariaErrorMessage:null,ariaExpanded:Y,ariaFlowTo:V,ariaGrabbed:Y,ariaHasPopup:null,ariaHidden:Y,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:V,ariaLevel:E,ariaLive:null,ariaModal:Y,ariaMultiLine:Y,ariaMultiSelectable:Y,ariaOrientation:null,ariaOwns:V,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:Y,ariaReadOnly:Y,ariaRelevant:null,ariaRequired:Y,ariaRoleDescription:V,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:Y,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function dr(e,n){return n in e?e[n]:n}function yr(e,n){return dr(e,n.toLowerCase())}const qi=Ne({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ae,acceptCharset:V,accessKey:V,action:null,allow:null,allowFullScreen:L,allowPaymentRequest:L,allowUserMedia:L,alpha:L,alt:null,as:null,async:L,autoCapitalize:null,autoComplete:V,autoFocus:L,autoPlay:L,blocking:V,capture:null,charSet:null,checked:L,cite:null,className:V,closedBy:null,colorSpace:null,cols:E,colSpan:E,command:null,commandFor:null,content:null,contentEditable:Y,controls:L,controlsList:V,coords:E|Ae,crossOrigin:null,data:null,dateTime:null,decoding:null,default:L,defer:L,dir:null,dirName:null,disabled:L,download:Bt,draggable:Y,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:L,formTarget:null,headers:V,height:E,hidden:Bt,high:E,href:null,hrefLang:null,htmlFor:V,httpEquiv:V,id:null,imageSizes:null,imageSrcSet:null,inert:L,inputMode:null,integrity:null,is:null,isMap:L,itemId:null,itemProp:V,itemRef:V,itemScope:L,itemType:V,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:L,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:L,muted:L,name:null,nonce:null,noModule:L,noValidate:L,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:L,optimum:E,pattern:null,ping:V,placeholder:null,playsInline:L,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:L,referrerPolicy:null,rel:V,required:L,reversed:L,rows:E,rowSpan:E,sandbox:V,scope:null,scoped:L,seamless:L,selected:L,shadowRootClonable:L,shadowRootCustomElementRegistry:L,shadowRootDelegatesFocus:L,shadowRootMode:null,shadowRootSerializable:L,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:Y,src:null,srcDoc:null,srcLang:null,srcSet:null,start:E,step:null,style:null,tabIndex:E,target:null,title:null,translate:null,type:null,typeMustMatch:L,useMap:null,value:Y,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:V,axis:null,background:null,bgColor:null,border:E,borderColor:null,bottomMargin:E,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:L,declare:L,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:L,noHref:L,noShade:L,noWrap:L,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:Y,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:L,disablePictureInPicture:L,disableRemotePlayback:L,exportParts:Ae,part:V,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:yr}),Hi=Ne({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:re,accentHeight:E,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:E,amplitude:E,arabicForm:null,ascent:E,attributeName:null,attributeType:null,azimuth:E,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:E,by:null,calcMode:null,capHeight:E,className:V,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:E,diffuseConstant:E,direction:null,display:null,dur:null,divisor:E,dominantBaseline:null,download:L,dx:null,dy:null,edgeMode:null,editable:null,elevation:E,enableBackground:null,end:null,event:null,exponent:E,externalResourcesRequired:null,fill:null,fillOpacity:E,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:E,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:E,horizOriginX:E,horizOriginY:E,id:null,ideographic:E,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:E,k:E,k1:E,k2:E,k3:E,k4:E,kernelMatrix:re,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:E,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:E,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:E,overlineThickness:E,paintOrder:null,panose1:null,path:null,pathLength:E,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:V,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:re,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:re,rev:re,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:re,requiredFeatures:re,requiredFonts:re,requiredFormats:re,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:E,specularExponent:E,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:E,strikethroughThickness:E,string:null,stroke:null,strokeDashArray:re,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:E,strokeOpacity:E,strokeWidth:null,style:null,surfaceScale:E,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:re,tabIndex:E,tableValues:null,target:null,targetX:E,targetY:E,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:re,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:E,underlineThickness:E,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:E,values:null,vAlphabetic:E,vMathematical:E,vectorEffect:null,vHanging:E,vIdeographic:E,version:null,vertAdvY:E,vertOriginX:E,vertOriginY:E,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:E,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:dr}),xr=Ne({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()}}),kr=Ne({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:yr}),br=Ne({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Ui={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"},$i=/[A-Z]/g,Cn=/-[a-z]/g,Vi=/^data[-\w.:]+$/i;function wr(e,n){const t=Mt(n);let r=n,i=te;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Vi.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(Cn,Yi);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!Cn.test(o)){let l=o.replace($i,Wi);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=Gt}return new i(r,n)}function Wi(e){return"-"+e.toLowerCase()}function Yi(e){return e.charAt(1).toUpperCase()}const Sr=mr([gr,qi,xr,kr,br],"html"),Ge=mr([gr,Hi,xr,kr,br],"svg");function Cr(e){return e.join(" ").trim()}var ze={},bt,En;function Xi(){if(En)return bt;En=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,u=`
2
+ `,s="/",f="*",c="",p="comment",h="declaration";function d(S,y){if(typeof S!="string")throw new TypeError("First argument must be a string");if(!S)return[];y=y||{};var A=1,C=1;function R(z){var T=z.match(n);T&&(A+=T.length);var U=z.lastIndexOf(u);C=~U?z.length-U:C+z.length}function N(){var z={line:A,column:C};return function(T){return T.position=new b(z),j(),T}}function b(z){this.start=z,this.end={line:A,column:C},this.source=y.source}b.prototype.content=S;function _(z){var T=new Error(y.source+":"+A+":"+C+": "+z);if(T.reason=z,T.filename=y.source,T.line=A,T.column=C,T.source=S,!y.silent)throw T}function q(z){var T=z.exec(S);if(T){var U=T[0];return R(U),S=S.slice(U.length),T}}function j(){q(t)}function x(z){var T;for(z=z||[];T=v();)T!==!1&&z.push(T);return z}function v(){var z=N();if(!(s!=S.charAt(0)||f!=S.charAt(1))){for(var T=2;c!=S.charAt(T)&&(f!=S.charAt(T)||s!=S.charAt(T+1));)++T;if(T+=2,c===S.charAt(T-1))return _("End of comment missing");var U=S.slice(2,T-2);return C+=2,R(U),S=S.slice(T),C+=2,z({type:p,comment:U})}}function P(){var z=N(),T=q(r);if(T){if(v(),!q(i))return _("property missing ':'");var U=q(o),X=z({type:h,property:w(T[0].replace(e,c)),value:U?w(U[0].replace(e,c)):c});return q(l),X}}function H(){var z=[];x(z);for(var T;T=P();)T!==!1&&(z.push(T),x(z));return z}return j(),H()}function w(S){return S?S.replace(a,c):c}return bt=d,bt}var An;function Qi(){if(An)return ze;An=1;var e=ze&&ze.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(ze,"__esModule",{value:!0}),ze.default=t;const n=e(Xi());function t(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,n.default)(r),a=typeof i=="function";return l.forEach(u=>{if(u.type!=="declaration")return;const{property:s,value:f}=u;a?i(s,f,u):f&&(o=o||{},o[s]=f)}),o}return ze}var je={},In;function Gi(){if(In)return je;In=1,Object.defineProperty(je,"__esModule",{value:!0}),je.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(s){return!s||t.test(s)||e.test(s)},l=function(s,f){return f.toUpperCase()},a=function(s,f){return"".concat(f,"-")},u=function(s,f){return f===void 0&&(f={}),o(s)?s:(s=s.toLowerCase(),f.reactCompat?s=s.replace(i,a):s=s.replace(r,a),s.replace(n,l))};return je.camelCase=u,je}var qe,Tn;function Ki(){if(Tn)return qe;Tn=1;var e=qe&&qe.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(Qi()),t=Gi();function r(i,o){var l={};return!i||typeof i!="string"||(0,n.default)(i,function(a,u){a&&u&&(l[(0,t.camelCase)(a,o)]=u)}),l}return r.default=r,qe=r,qe}var Ji=Ki();const Zi=hr(Ji),Er=Ar("end"),Kt=Ar("start");function Ar(e){return n;function n(t){const r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function el(e){const n=Kt(e),t=Er(e);if(n&&t)return{start:n,end:t}}function $e(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?vn(e.position):"start"in e||"end"in e?vn(e):"line"in e||"column"in e?qt(e):""}function qt(e){return Pn(e&&e.line)+":"+Pn(e&&e.column)}function vn(e){return qt(e&&e.start)+"-"+qt(e&&e.end)}function Pn(e){return e&&typeof e=="number"?e:1}class J extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=$e(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}J.prototype.file="";J.prototype.name="";J.prototype.reason="";J.prototype.message="";J.prototype.stack="";J.prototype.column=void 0;J.prototype.line=void 0;J.prototype.ancestors=void 0;J.prototype.cause=void 0;J.prototype.fatal=void 0;J.prototype.place=void 0;J.prototype.ruleId=void 0;J.prototype.source=void 0;const Jt={}.hasOwnProperty,tl=new Map,nl=/[A-Z]/g,rl=new Set(["table","tbody","thead","tfoot","tr"]),il=new Set(["td","th"]),Ir="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function ll(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=pl(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=hl(t,n.jsx,n.jsxs)}const i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?Ge:Sr,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=Tr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Tr(e,n,t){if(n.type==="element")return ol(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return al(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return sl(e,n,t);if(n.type==="mdxjsEsm")return ul(e,n);if(n.type==="root")return cl(e,n,t);if(n.type==="text")return fl(e,n)}function ol(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Ge,e.schema=i),e.ancestors.push(n);const o=Pr(e,n.tagName,!1),l=ml(e,n);let a=en(e,n);return rl.has(n.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!ht(u):!0})),vr(e,l,o,n),Zt(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function al(e,n){if(n.data&&n.data.estree&&e.evaluater){const r=n.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Ye(e,n.position)}function ul(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Ye(e,n.position)}function sl(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Ge,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:Pr(e,n.name,!0),l=gl(e,n),a=en(e,n);return vr(e,l,o,n),Zt(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function cl(e,n,t){const r={};return Zt(r,en(e,n)),e.create(n,e.Fragment,r,t)}function fl(e,n){return n.value}function vr(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Zt(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function hl(e,n,t){return r;function r(i,o,l,a){const s=Array.isArray(l.children)?t:n;return a?s(o,l,a):s(o,l)}}function pl(e,n){return t;function t(r,i,o,l){const a=Array.isArray(o.children),u=Kt(r);return n(i,o,l,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function ml(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Jt.call(n.properties,i)){const o=dl(e,i,n.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&il.has(n.tagName)?r=a:t[l]=a}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function gl(e,n){const t={};for(const r of n.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 a=l.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Ye(e,n.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 a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Ye(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function en(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:tl;for(;++r<n.children.length;){const o=n.children[r];let l;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const s=i.get(u)||0;l=u+"-"+s,i.set(u,s+1)}}const a=Tr(e,o,l);a!==void 0&&t.push(a)}return t}function dl(e,n,t){const r=wr(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?pr(t):Cr(t)),r.property==="style"){let i=typeof t=="object"?t:yl(e,String(t));return e.stylePropertyNameCase==="css"&&(i=xl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Ui[r.property]||r.property:r.attribute,t]}}function yl(e,n){try{return Zi(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new J("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=Ir+"#cannot-parse-style-attribute",i}}function Pr(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let o=-1,l;for(;++o<i.length;){const a=bn(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=bn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Jt.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ye(e)}function Ye(e,n){const t=new J("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Ir+"#cannot-handle-mdx-estrees-without-createevaluater",t}function xl(e){const n={};let t;for(t in e)Jt.call(e,t)&&(n[kl(t)]=e[t]);return n}function kl(e){let n=e.replace(nl,bl);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function bl(e){return"-"+e.toLowerCase()}const wt={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"]},wl={};function tn(e,n){const t=wl,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Dr(e,r,i)}function Dr(e,n,t){if(Sl(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Dn(e.children,n,t)}return Array.isArray(e)?Dn(e,n,t):""}function Dn(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Dr(e[i],n,t);return r.join("")}function Sl(e){return!!(e&&typeof e=="object")}const zn=document.createElement("i");function nn(e){const n="&"+e+";";zn.innerHTML=n;const t=zn.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function ie(e,n,t,r){const i=e.length;let o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function le(e,n){return e.length>0?(ie(e,e.length,0,n),e):n}const Ln={}.hasOwnProperty;function zr(e){const n={};let t=-1;for(;++t<e.length;)Cl(n,e[t]);return n}function Cl(e,n){let t;for(t in n){const i=(Ln.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){Ln.call(i,l)||(i[l]=[]);const a=o[l];El(i[l],Array.isArray(a)?a:a?[a]:[])}}}function El(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);ie(e,0,0,r)}function Lr(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function ce(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Z=be(/[A-Za-z]/),K=be(/[\dA-Za-z]/),Al=be(/[#-'*+\--9=?A-Z^-~]/);function at(e){return e!==null&&(e<32||e===127)}const Ht=be(/\d/),Il=be(/[\dA-Fa-f]/),Tl=be(/[!-/:-@[-`{-~]/);function D(e){return e!==null&&e<-2}function W(e){return e!==null&&(e<0||e===32)}function O(e){return e===-2||e===-1||e===32}const pt=be(new RegExp("\\p{P}|\\p{S}","u")),Ie=be(/\s/);function be(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Oe(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&K(e.charCodeAt(t+1))&&K(e.charCodeAt(t+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 a=e.charCodeAt(t+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function B(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(u){return O(u)?(e.enter(t),a(u)):n(u)}function a(u){return O(u)&&o++<i?(e.consume(u),a):(e.exit(t),n(u))}}const vl={tokenize:Pl};function Pl(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),B(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const u=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=u),t=u,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return D(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const Dl={tokenize:zl},Fn={tokenize:Ll};function zl(e){const n=this,t=[];let r=0,i,o,l;return a;function a(C){if(r<t.length){const R=t[r];return n.containerState=R[1],e.attempt(R[0].continuation,u,s)(C)}return s(C)}function u(C){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&A();const R=n.events.length;let N=R,b;for(;N--;)if(n.events[N][0]==="exit"&&n.events[N][1].type==="chunkFlow"){b=n.events[N][1].end;break}y(r);let _=R;for(;_<n.events.length;)n.events[_][1].end={...b},_++;return ie(n.events,N+1,0,n.events.slice(R)),n.events.length=_,s(C)}return a(C)}function s(C){if(r===t.length){if(!i)return p(C);if(i.currentConstruct&&i.currentConstruct.concrete)return d(C);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Fn,f,c)(C)}function f(C){return i&&A(),y(r),p(C)}function c(C){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,d(C)}function p(C){return n.containerState={},e.attempt(Fn,h,d)(C)}function h(C){return r++,t.push([n.currentConstruct,n.containerState]),p(C)}function d(C){if(C===null){i&&A(),y(0),e.consume(C);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),w(C)}function w(C){if(C===null){S(e.exit("chunkFlow"),!0),y(0),e.consume(C);return}return D(C)?(e.consume(C),S(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(C),w)}function S(C,R){const N=n.sliceStream(C);if(R&&N.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(N),n.parser.lazy[C.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<l&&(!i.events[b][1].end||i.events[b][1].end.offset>l))return;const _=n.events.length;let q=_,j,x;for(;q--;)if(n.events[q][0]==="exit"&&n.events[q][1].type==="chunkFlow"){if(j){x=n.events[q][1].end;break}j=!0}for(y(r),b=_;b<n.events.length;)n.events[b][1].end={...x},b++;ie(n.events,q+1,0,n.events.slice(_)),n.events.length=b}}function y(C){let R=t.length;for(;R-- >C;){const N=t[R];n.containerState=N[1],N[0].exit.call(n,e)}t.length=C}function A(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Ll(e,n,t){return B(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Re(e){if(e===null||W(e)||Ie(e))return 1;if(pt(e))return 2}function mt(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const Ut={name:"attention",resolveAll:Fl,tokenize:Rl};function Fl(e,n){let t=-1,r,i,o,l,a,u,s,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[t][1].start};Rn(c,-u),Rn(p,u),l={type:u>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:u>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},o={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:u>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[t][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=le(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=le(s,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",o,n]]),s=le(s,mt(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=le(s,[["exit",o,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,s=le(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,ie(e,r-1,t-r+3,s),t=r+s.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Rl(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Re(r);let o;return l;function l(u){return o=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===o)return e.consume(u),a;const s=e.exit("attentionSequence"),f=Re(u),c=!f||f===2&&i||t.includes(u),p=!i||i===2&&f||t.includes(r);return s._open=!!(o===42?c:c&&(i||!p)),s._close=!!(o===42?p:p&&(f||!c)),n(u)}}function Rn(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const Nl={name:"autolink",tokenize:Ol};function Ol(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return Z(h)?(e.consume(h),l):h===64?t(h):s(h)}function l(h){return h===43||h===45||h===46||K(h)?(r=1,a(h)):s(h)}function a(h){return h===58?(e.consume(h),r=0,u):(h===43||h===45||h===46||K(h))&&r++<32?(e.consume(h),a):(r=0,s(h))}function u(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||at(h)?t(h):(e.consume(h),u)}function s(h){return h===64?(e.consume(h),f):Al(h)?(e.consume(h),s):t(h)}function f(h){return K(h)?c(h):t(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):p(h)}function p(h){if((h===45||K(h))&&r++<63){const d=h===45?p:c;return e.consume(h),d}return t(h)}}const Ke={partial:!0,tokenize:_l};function _l(e,n,t){return r;function r(o){return O(o)?B(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||D(o)?n(o):t(o)}}const Fr={continuation:{tokenize:Bl},exit:jl,name:"blockQuote",tokenize:Ml};function Ml(e,n,t){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return t(l)}function o(l){return O(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function Bl(e,n,t){const r=this;return i;function i(l){return O(l)?B(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Fr,n,t)(l)}}function jl(e){e.exit("blockQuote")}const Rr={name:"characterEscape",tokenize:ql};function ql(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Tl(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const Nr={name:"characterReference",tokenize:Hl};function Hl(e,n,t){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),u}function u(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=K,f(c))}function s(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Il,f):(e.enter("characterReferenceValue"),o=7,l=Ht,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===K&&!nn(r.sliceSerialize(p))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(c)&&i++<o?(e.consume(c),f):t(c)}}const Nn={partial:!0,tokenize:$l},On={concrete:!0,name:"codeFenced",tokenize:Ul};function Ul(e,n,t){const r=this,i={partial:!0,tokenize:N};let o=0,l=0,a;return u;function u(b){return s(b)}function s(b){const _=r.events[r.events.length-1];return o=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,a=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(b)}function f(b){return b===a?(l++,e.consume(b),f):l<3?t(b):(e.exit("codeFencedFenceSequence"),O(b)?B(e,c,"whitespace")(b):c(b))}function c(b){return b===null||D(b)?(e.exit("codeFencedFence"),r.interrupt?n(b):e.check(Nn,w,R)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===null||D(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):O(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),B(e,h,"whitespace")(b)):b===96&&b===a?t(b):(e.consume(b),p)}function h(b){return b===null||D(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===null||D(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===a?t(b):(e.consume(b),d)}function w(b){return e.attempt(i,R,S)(b)}function S(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),y}function y(b){return o>0&&O(b)?B(e,A,"linePrefix",o+1)(b):A(b)}function A(b){return b===null||D(b)?e.check(Nn,w,R)(b):(e.enter("codeFlowValue"),C(b))}function C(b){return b===null||D(b)?(e.exit("codeFlowValue"),A(b)):(e.consume(b),C)}function R(b){return e.exit("codeFenced"),n(b)}function N(b,_,q){let j=0;return x;function x(T){return b.enter("lineEnding"),b.consume(T),b.exit("lineEnding"),v}function v(T){return b.enter("codeFencedFence"),O(T)?B(b,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(T):P(T)}function P(T){return T===a?(b.enter("codeFencedFenceSequence"),H(T)):q(T)}function H(T){return T===a?(j++,b.consume(T),H):j>=l?(b.exit("codeFencedFenceSequence"),O(T)?B(b,z,"whitespace")(T):z(T)):q(T)}function z(T){return T===null||D(T)?(b.exit("codeFencedFence"),_(T)):q(T)}}}function $l(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const St={name:"codeIndented",tokenize:Wl},Vl={partial:!0,tokenize:Yl};function Wl(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),B(e,o,"linePrefix",5)(s)}function o(s){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(s):t(s)}function l(s){return s===null?u(s):D(s)?e.attempt(Vl,l,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||D(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),n(s)}}function Yl(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):D(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):B(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):D(l)?i(l):t(l)}}const Xl={name:"codeText",previous:Gl,resolve:Ql,tokenize:Kl};function Ql(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function Gl(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Kl(e,n,t){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),u(c))}function u(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),u):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):D(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(c))}function s(c){return c===null||c===32||c===96||D(c)?(e.exit("codeTextData"),u(c)):(e.consume(c),s)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(o.type="codeTextData",s(c))}}class Jl{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&He(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),He(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),He(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n<this.left.length){const t=this.left.splice(n,Number.POSITIVE_INFINITY);He(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);He(this.left,t.reverse())}}}function He(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Or(e){const n={};let t=-1,r,i,o,l,a,u,s;const f=new Jl(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Zl(f,t)),t=n[t],s=!0);else if(r[1]._container){for(o=t,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.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={...f.get(i)[1].start},a=f.slice(i,t),a.unshift(r),f.splice(i,t-i+1,a))}}return ie(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!s}function Zl(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,u=[],s={};let f,c,p=-1,h=t,d=0,w=0;const S=[w];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=t;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(w=p+1,S.push(w),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):S.pop(),p=S.length;p--;){const y=a.slice(S[p],S[p+1]),A=o.pop();u.push([A,A+y.length-1]),e.splice(A,2,y)}for(u.reverse(),p=-1;++p<u.length;)s[d+u[p][0]]=d+u[p][1],d+=u[p][1]-u[p][0]-1;return s}const eo={resolve:no,tokenize:ro},to={partial:!0,tokenize:io};function no(e){return Or(e),e}function ro(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):D(a)?e.check(to,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function l(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function io(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),B(e,o,"linePrefix")}function o(l){if(l===null||D(l))return t(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function _r(e,n,t,r,i,o,l,a,u){const s=u||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||at(y)?t(y):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),w(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(a),p(y)):y===null||y===60||D(y)?t(y):(e.consume(y),y===92?d:h)}function d(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function w(y){return!f&&(y===null||y===41||W(y))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(y)):f<s&&y===40?(e.consume(y),f++,w):y===41?(e.consume(y),f--,w):y===null||y===32||y===40||at(y)?t(y):(e.consume(y),y===92?S:w)}function S(y){return y===40||y===41||y===92?(e.consume(y),w):w(y)}}function Mr(e,n,t,r,i,o){const l=this;let a=0,u;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return a>999||h===null||h===91||h===93&&!u||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):D(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||D(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),u||(u=!O(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function Br(e,n,t,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,u):t(p)}function u(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(o),s(p))}function s(p){return p===l?(e.exit(o),u(l)):p===null?t(p):D(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),B(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||D(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function Ve(e,n){let t;return r;function r(i){return D(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):O(i)?B(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const lo={name:"definition",tokenize:ao},oo={partial:!0,tokenize:uo};function ao(e,n,t){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return Mr.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):t(h)}function u(h){return W(h)?Ve(e,s)(h):s(h)}function s(h){return _r(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(oo,c,c)(h)}function c(h){return O(h)?B(e,p,"whitespace")(h):p(h)}function p(h){return h===null||D(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function uo(e,n,t){return r;function r(a){return W(a)?Ve(e,i)(a):t(a)}function i(a){return Br(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return O(a)?B(e,l,"whitespace")(a):l(a)}function l(a){return a===null||D(a)?n(a):t(a)}}const so={name:"hardBreakEscape",tokenize:co};function co(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return D(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const fo={name:"headingAtx",resolve:ho,tokenize:po};function ho(e,n){let t=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},ie(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function po(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||W(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||D(f)?(e.exit("atxHeading"),n(f)):O(f)?B(e,a,"whitespace")(f):(e.enter("atxHeadingText"),s(f))}function u(f){return f===35?(e.consume(f),u):(e.exit("atxHeadingSequence"),a(f))}function s(f){return f===null||f===35||W(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),s)}}const mo=["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"],_n=["pre","script","style","textarea"],go={concrete:!0,name:"htmlFlow",resolveTo:ko,tokenize:bo},yo={partial:!0,tokenize:So},xo={partial:!0,tokenize:wo};function ko(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function bo(e,n,t){const r=this;let i,o,l,a,u;return s;function s(g){return f(g)}function f(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),c}function c(g){return g===33?(e.consume(g),p):g===47?(e.consume(g),o=!0,w):g===63?(e.consume(g),i=3,r.interrupt?n:m):Z(g)?(e.consume(g),l=String.fromCharCode(g),S):t(g)}function p(g){return g===45?(e.consume(g),i=2,h):g===91?(e.consume(g),i=5,a=0,d):Z(g)?(e.consume(g),i=4,r.interrupt?n:m):t(g)}function h(g){return g===45?(e.consume(g),r.interrupt?n:m):t(g)}function d(g){const ue="CDATA[";return g===ue.charCodeAt(a++)?(e.consume(g),a===ue.length?r.interrupt?n:P:d):t(g)}function w(g){return Z(g)?(e.consume(g),l=String.fromCharCode(g),S):t(g)}function S(g){if(g===null||g===47||g===62||W(g)){const ue=g===47,we=l.toLowerCase();return!ue&&!o&&_n.includes(we)?(i=1,r.interrupt?n(g):P(g)):mo.includes(l.toLowerCase())?(i=6,ue?(e.consume(g),y):r.interrupt?n(g):P(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(g):o?A(g):C(g))}return g===45||K(g)?(e.consume(g),l+=String.fromCharCode(g),S):t(g)}function y(g){return g===62?(e.consume(g),r.interrupt?n:P):t(g)}function A(g){return O(g)?(e.consume(g),A):x(g)}function C(g){return g===47?(e.consume(g),x):g===58||g===95||Z(g)?(e.consume(g),R):O(g)?(e.consume(g),C):x(g)}function R(g){return g===45||g===46||g===58||g===95||K(g)?(e.consume(g),R):N(g)}function N(g){return g===61?(e.consume(g),b):O(g)?(e.consume(g),N):C(g)}function b(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),u=g,_):O(g)?(e.consume(g),b):q(g)}function _(g){return g===u?(e.consume(g),u=null,j):g===null||D(g)?t(g):(e.consume(g),_)}function q(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||W(g)?N(g):(e.consume(g),q)}function j(g){return g===47||g===62||O(g)?C(g):t(g)}function x(g){return g===62?(e.consume(g),v):t(g)}function v(g){return g===null||D(g)?P(g):O(g)?(e.consume(g),v):t(g)}function P(g){return g===45&&i===2?(e.consume(g),U):g===60&&i===1?(e.consume(g),X):g===62&&i===4?(e.consume(g),ae):g===63&&i===3?(e.consume(g),m):g===93&&i===5?(e.consume(g),pe):D(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(yo,me,H)(g)):g===null||D(g)?(e.exit("htmlFlowData"),H(g)):(e.consume(g),P)}function H(g){return e.check(xo,z,me)(g)}function z(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),T}function T(g){return g===null||D(g)?H(g):(e.enter("htmlFlowData"),P(g))}function U(g){return g===45?(e.consume(g),m):P(g)}function X(g){return g===47?(e.consume(g),l="",oe):P(g)}function oe(g){if(g===62){const ue=l.toLowerCase();return _n.includes(ue)?(e.consume(g),ae):P(g)}return Z(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),oe):P(g)}function pe(g){return g===93?(e.consume(g),m):P(g)}function m(g){return g===62?(e.consume(g),ae):g===45&&i===2?(e.consume(g),m):P(g)}function ae(g){return g===null||D(g)?(e.exit("htmlFlowData"),me(g)):(e.consume(g),ae)}function me(g){return e.exit("htmlFlow"),n(g)}}function wo(e,n,t){const r=this;return i;function i(l){return D(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):t(l)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function So(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ke,n,t)}}const Co={name:"htmlText",tokenize:Eo};function Eo(e,n,t){const r=this;let i,o,l;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),u}function u(m){return m===33?(e.consume(m),s):m===47?(e.consume(m),N):m===63?(e.consume(m),C):Z(m)?(e.consume(m),q):t(m)}function s(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,d):Z(m)?(e.consume(m),A):t(m)}function f(m){return m===45?(e.consume(m),h):t(m)}function c(m){return m===null?t(m):m===45?(e.consume(m),p):D(m)?(l=c,X(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?U(m):m===45?p(m):c(m)}function d(m){const ae="CDATA[";return m===ae.charCodeAt(o++)?(e.consume(m),o===ae.length?w:d):t(m)}function w(m){return m===null?t(m):m===93?(e.consume(m),S):D(m)?(l=w,X(m)):(e.consume(m),w)}function S(m){return m===93?(e.consume(m),y):w(m)}function y(m){return m===62?U(m):m===93?(e.consume(m),y):w(m)}function A(m){return m===null||m===62?U(m):D(m)?(l=A,X(m)):(e.consume(m),A)}function C(m){return m===null?t(m):m===63?(e.consume(m),R):D(m)?(l=C,X(m)):(e.consume(m),C)}function R(m){return m===62?U(m):C(m)}function N(m){return Z(m)?(e.consume(m),b):t(m)}function b(m){return m===45||K(m)?(e.consume(m),b):_(m)}function _(m){return D(m)?(l=_,X(m)):O(m)?(e.consume(m),_):U(m)}function q(m){return m===45||K(m)?(e.consume(m),q):m===47||m===62||W(m)?j(m):t(m)}function j(m){return m===47?(e.consume(m),U):m===58||m===95||Z(m)?(e.consume(m),x):D(m)?(l=j,X(m)):O(m)?(e.consume(m),j):U(m)}function x(m){return m===45||m===46||m===58||m===95||K(m)?(e.consume(m),x):v(m)}function v(m){return m===61?(e.consume(m),P):D(m)?(l=v,X(m)):O(m)?(e.consume(m),v):j(m)}function P(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,H):D(m)?(l=P,X(m)):O(m)?(e.consume(m),P):(e.consume(m),z)}function H(m){return m===i?(e.consume(m),i=void 0,T):m===null?t(m):D(m)?(l=H,X(m)):(e.consume(m),H)}function z(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||W(m)?j(m):(e.consume(m),z)}function T(m){return m===47||m===62||W(m)?j(m):t(m)}function U(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function X(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),oe}function oe(m){return O(m)?B(e,pe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):pe(m)}function pe(m){return e.enter("htmlTextData"),l(m)}}const rn={name:"labelEnd",resolveAll:vo,resolveTo:Po,tokenize:Do},Ao={tokenize:zo},Io={tokenize:Lo},To={tokenize:Fo};function vo(e){let n=-1;const t=[];for(;++n<e.length;){const r=e[n][1];if(t.push(e[n]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",n+=i}}return e.length!==t.length&&ie(e,0,e.length,t),e}function Po(e,n){let t=e.length,r=0,i,o,l,a;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const u={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",u,n],["enter",s,n]],a=le(a,e.slice(o+1,o+r+3)),a=le(a,[["enter",f,n]]),a=le(a,mt(n.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),n)),a=le(a,[["exit",f,n],e[l-2],e[l-1],["exit",s,n]]),a=le(a,e.slice(l+1)),a=le(a,[["exit",u,n]]),ie(e,o,e.length,a),e}function Do(e,n,t){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(ce(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):t(p)}function u(p){return p===40?e.attempt(Ao,f,l?f:c)(p):p===91?e.attempt(Io,f,l?s:c)(p):l?f(p):c(p)}function s(p){return e.attempt(To,f,c)(p)}function f(p){return n(p)}function c(p){return o._balanced=!0,t(p)}}function zo(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return W(c)?Ve(e,o)(c):o(c)}function o(c){return c===41?f(c):_r(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return W(c)?Ve(e,u)(c):f(c)}function a(c){return t(c)}function u(c){return c===34||c===39||c===40?Br(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return W(c)?Ve(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function Lo(e,n,t){const r=this;return i;function i(a){return Mr.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(ce(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function l(a){return t(a)}}function Fo(e,n,t){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"),n):t(o)}}const Ro={name:"labelStartImage",resolveAll:rn.resolveAll,tokenize:No};function No(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const Oo={name:"labelStartLink",resolveAll:rn.resolveAll,tokenize:_o};function _o(e,n,t){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const Ct={name:"lineEnding",tokenize:Mo};function Mo(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),B(e,n,"linePrefix")}}const ot={name:"thematicBreak",tokenize:Bo};function Bo(e,n,t){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||D(s))?(e.exit("thematicBreak"),n(s)):t(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),O(s)?B(e,a,"whitespace")(s):a(s))}}const ee={continuation:{tokenize:Uo},exit:Vo,name:"list",tokenize:Ho},jo={partial:!0,tokenize:Wo},qo={partial:!0,tokenize:$o};function Ho(e,n,t){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 a;function a(h){const d=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Ht(h)){if(r.containerState.type||(r.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(ot,t,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return t(h)}function u(h){return Ht(h)&&++l<10?(e.consume(h),u):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):t(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Ke,r.interrupt?t:f,e.attempt(jo,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return O(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function Uo(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ke,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,B(e,n,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!O(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(qo,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,B(e,e.attempt(ee,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function $o(e,n,t){const r=this;return B(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?n(o):t(o)}}function Vo(e){e.exit(this.containerState.type)}function Wo(e,n,t){const r=this;return B(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!O(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const Mn={name:"setextUnderline",resolveTo:Yo,tokenize:Xo};function Yo(e,n){let t=e.length,r,i,o;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!o&&e[t][1].type==="definition"&&(o=t);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function Xo(e,n,t){const r=this;let i;return o;function o(s){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=s,l(s)):t(s)}function l(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),O(s)?B(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||D(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const Qo={tokenize:Go};function Go(e){const n=this,t=e.attempt(Ke,r,e.attempt(this.parser.constructs.flowInitial,i,B(e,e.attempt(this.parser.constructs.flow,i,e.attempt(eo,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Ko={resolveAll:qr()},Jo=jr("string"),Zo=jr("text");function jr(e){return{resolveAll:qr(e==="text"?ea:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,a);return l;function l(f){return s(f)?o(f):a(f)}function a(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),u}function u(f){return s(f)?(t.exit("data"),o(f)):(t.consume(f),u)}function s(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function qr(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function ea(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let o=i.length,l=-1,a=0,u;for(;o--;){const s=i[o];if(typeof s=="string"){for(l=s.length;s.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(s===-2)u=!0,a++;else if(s!==-1){o++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const s={type:t===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(t,0,["enter",s,n],["exit",s,n]),t+=2)}t++}return e}const ta={42:ee,43:ee,45:ee,48:ee,49:ee,50:ee,51:ee,52:ee,53:ee,54:ee,55:ee,56:ee,57:ee,62:Fr},na={91:lo},ra={[-2]:St,[-1]:St,32:St},ia={35:fo,42:ot,45:[Mn,ot],60:go,61:Mn,95:ot,96:On,126:On},la={38:Nr,92:Rr},oa={[-5]:Ct,[-4]:Ct,[-3]:Ct,33:Ro,38:Nr,42:Ut,60:[Nl,Co],91:Oo,92:[so,Rr],93:rn,95:Ut,96:Xl},aa={null:[Ut,Ko]},ua={null:[42,95]},sa={null:[]},ca=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ua,contentInitial:na,disable:sa,document:ta,flow:ia,flowInitial:ra,insideSpan:aa,string:la,text:oa},Symbol.toStringTag,{value:"Module"}));function fa(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let l=[],a=[];const u={attempt:_(N),check:_(b),consume:A,enter:C,exit:R,interrupt:_(b,{interrupt:!0})},s={code:null,containerState:{},defineSkip:w,events:[],now:d,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=n.tokenize.call(s,u);return n.resolveAll&&o.push(n),s;function c(v){return l=le(l,v),S(),l[l.length-1]!==null?[]:(q(n,0),s.events=mt(o,s.events,s),s.events)}function p(v,P){return pa(h(v),P)}function h(v){return ha(l,v)}function d(){const{_bufferIndex:v,_index:P,line:H,column:z,offset:T}=r;return{_bufferIndex:v,_index:P,line:H,column:z,offset:T}}function w(v){i[v.line]=v.column,x()}function S(){let v;for(;r._index<l.length;){const P=l[r._index];if(typeof P=="string")for(v=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===v&&r._bufferIndex<P.length;)y(P.charCodeAt(r._bufferIndex));else y(P)}}function y(v){f=f(v)}function A(v){D(v)?(r.line++,r.column=1,r.offset+=v===-3?2:1,x()):v!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=v}function C(v,P){const H=P||{};return H.type=v,H.start=d(),s.events.push(["enter",H,s]),a.push(H),H}function R(v){const P=a.pop();return P.end=d(),s.events.push(["exit",P,s]),P}function N(v,P){q(v,P.from)}function b(v,P){P.restore()}function _(v,P){return H;function H(z,T,U){let X,oe,pe,m;return Array.isArray(z)?me(z):"tokenize"in z?me([z]):ae(z);function ae(G){return _e;function _e(xe){const ve=xe!==null&&G[xe],Pe=xe!==null&&G.null,Ze=[...Array.isArray(ve)?ve:ve?[ve]:[],...Array.isArray(Pe)?Pe:Pe?[Pe]:[]];return me(Ze)(xe)}}function me(G){return X=G,oe=0,G.length===0?U:g(G[oe])}function g(G){return _e;function _e(xe){return m=j(),pe=G,G.partial||(s.currentConstruct=G),G.name&&s.parser.constructs.disable.null.includes(G.name)?we():G.tokenize.call(P?Object.assign(Object.create(s),P):s,u,ue,we)(xe)}}function ue(G){return v(pe,m),T}function we(G){return m.restore(),++oe<X.length?g(X[oe]):U}}}function q(v,P){v.resolveAll&&!o.includes(v)&&o.push(v),v.resolve&&ie(s.events,P,s.events.length-P,v.resolve(s.events.slice(P),s)),v.resolveTo&&(s.events=v.resolveTo(s.events,s))}function j(){const v=d(),P=s.previous,H=s.currentConstruct,z=s.events.length,T=Array.from(a);return{from:z,restore:U};function U(){r=v,s.previous=P,s.currentConstruct=H,s.events.length=z,a=T,x()}}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ha(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function pa(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
3
+ `;break}case-3:{l=`\r
4
+ `;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function ma(e){const r={constructs:zr([ca,...(e||{}).extensions||[]]),content:i(vl),defined:[],document:i(Dl),flow:i(Qo),lazy:{},string:i(Jo),text:i(Zo)};return r;function i(o){return l;function l(a){return fa(r,o,a)}}}function ga(e){for(;!Or(e););return e}const Bn=/[\0\t\n\r]/g;function da(){let e=1,n="",t=!0,r;return i;function i(o,l,a){const u=[];let s,f,c,p,h;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,n="",t&&(o.charCodeAt(0)===65279&&c++,t=void 0);c<o.length;){if(Bn.lastIndex=c,s=Bn.exec(o),p=s&&s.index!==void 0?s.index:o.length,h=o.charCodeAt(p),!s){n=o.slice(c);break}if(h===10&&c===p&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),c<p&&(u.push(o.slice(c,p)),e+=p-c),h){case 0:{u.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,u.push(-2);e++<f;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}c=p+1}return a&&(r&&u.push(-5),n&&u.push(n),u.push(null)),u}}const ya=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function xa(e){return e.replace(ya,ka)}function ka(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return Lr(t.slice(o?2:1),o?16:10)}return nn(t)||e}const Hr={}.hasOwnProperty;function ba(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),wa(t)(ga(ma(t).document().write(da()(e,n,!0))))}function wa(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(xn),autolinkProtocol:j,autolinkEmail:j,atxHeading:o(gn),blockQuote:o(Pe),characterEscape:j,characterReference:j,codeFenced:o(Ze),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Ze,l),codeText:o(Ti,l),codeTextData:j,data:j,codeFlowValue:j,definition:o(vi),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Pi),hardBreakEscape:o(dn),hardBreakTrailing:o(dn),htmlFlow:o(yn,l),htmlFlowData:j,htmlText:o(yn,l),htmlTextData:j,image:o(Di),label:l,link:o(xn),listItem:o(zi),listItemValue:p,listOrdered:o(kn,c),listUnordered:o(kn),paragraph:o(Li),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(gn),strong:o(Fi),thematicBreak:o(Ni)},exit:{atxHeading:u(),atxHeadingSequence:N,autolink:u(),autolinkEmail:ve,autolinkProtocol:xe,blockQuote:u(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:we,characterReferenceMarkerNumeric:we,characterReferenceValue:G,characterReference:_e,codeFenced:u(S),codeFencedFence:w,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:x,codeIndented:u(y),codeText:u(T),codeTextData:x,data:x,definition:u(),definitionDestinationString:R,definitionLabelString:A,definitionTitleString:C,emphasis:u(),hardBreakEscape:u(P),hardBreakTrailing:u(P),htmlFlow:u(H),htmlFlowData:x,htmlText:u(z),htmlTextData:x,image:u(X),label:pe,labelText:oe,lineEnding:v,link:u(U),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ue,resourceDestinationString:m,resourceTitleString:ae,resource:me,setextHeading:u(q),setextHeadingLineSequence:_,setextHeadingText:b,strong:u(),thematicBreak:u()}};Ur(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(k){let I={type:"root",children:[]};const F={stack:[I],tokenStack:[],config:n,enter:a,exit:s,buffer:l,resume:f,data:t},M=[];let $=-1;for(;++$<k.length;)if(k[$][1].type==="listOrdered"||k[$][1].type==="listUnordered")if(k[$][0]==="enter")M.push($);else{const se=M.pop();$=i(k,se,$)}for($=-1;++$<k.length;){const se=n[k[$][0]];Hr.call(se,k[$][1].type)&&se[k[$][1].type].call(Object.assign({sliceSerialize:k[$][2].sliceSerialize},F),k[$][1])}if(F.tokenStack.length>0){const se=F.tokenStack[F.tokenStack.length-1];(se[1]||jn).call(F,void 0,se[0])}for(I.position={start:ke(k.length>0?k[0][1].start:{line:1,column:1,offset:0}),end:ke(k.length>0?k[k.length-2][1].end:{line:1,column:1,offset:0})},$=-1;++$<n.transforms.length;)I=n.transforms[$](I)||I;return I}function i(k,I,F){let M=I-1,$=-1,se=!1,Se,ge,Me,Be;for(;++M<=F;){const ne=k[M];switch(ne[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ne[0]==="enter"?$++:$--,Be=void 0;break}case"lineEndingBlank":{ne[0]==="enter"&&(Se&&!Be&&!$&&!Me&&(Me=M),Be=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Be=void 0}if(!$&&ne[0]==="enter"&&ne[1].type==="listItemPrefix"||$===-1&&ne[0]==="exit"&&(ne[1].type==="listUnordered"||ne[1].type==="listOrdered")){if(Se){let De=M;for(ge=void 0;De--;){const de=k[De];if(de[1].type==="lineEnding"||de[1].type==="lineEndingBlank"){if(de[0]==="exit")continue;ge&&(k[ge][1].type="lineEndingBlank",se=!0),de[1].type="lineEnding",ge=De}else if(!(de[1].type==="linePrefix"||de[1].type==="blockQuotePrefix"||de[1].type==="blockQuotePrefixWhitespace"||de[1].type==="blockQuoteMarker"||de[1].type==="listItemIndent"))break}Me&&(!ge||Me<ge)&&(Se._spread=!0),Se.end=Object.assign({},ge?k[ge][1].start:ne[1].end),k.splice(ge||M,0,["exit",Se,ne[2]]),M++,F++}if(ne[1].type==="listItemPrefix"){const De={type:"listItem",_spread:!1,start:Object.assign({},ne[1].start),end:void 0};Se=De,k.splice(M,0,["enter",De,ne[2]]),M++,F++,Me=void 0,Be=!0}}}return k[I][1]._spread=se,F}function o(k,I){return F;function F(M){a.call(this,k(M),M),I&&I.call(this,M)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(k,I,F){this.stack[this.stack.length-1].children.push(k),this.stack.push(k),this.tokenStack.push([I,F||void 0]),k.position={start:ke(I.start),end:void 0}}function u(k){return I;function I(F){k&&k.call(this,F),s.call(this,F)}}function s(k,I){const F=this.stack.pop(),M=this.tokenStack.pop();if(M)M[0].type!==k.type&&(I?I.call(this,k,M[0]):(M[1]||jn).call(this,k,M[0]));else throw new Error("Cannot close `"+k.type+"` ("+$e({start:k.start,end:k.end})+"): it’s not open");F.position.end=ke(k.end)}function f(){return tn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(k){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(k),10),this.data.expectingFirstListItemValue=void 0}}function h(){const k=this.resume(),I=this.stack[this.stack.length-1];I.lang=k}function d(){const k=this.resume(),I=this.stack[this.stack.length-1];I.meta=k}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function S(){const k=this.resume(),I=this.stack[this.stack.length-1];I.value=k.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const k=this.resume(),I=this.stack[this.stack.length-1];I.value=k.replace(/(\r?\n|\r)$/g,"")}function A(k){const I=this.resume(),F=this.stack[this.stack.length-1];F.label=I,F.identifier=ce(this.sliceSerialize(k)).toLowerCase()}function C(){const k=this.resume(),I=this.stack[this.stack.length-1];I.title=k}function R(){const k=this.resume(),I=this.stack[this.stack.length-1];I.url=k}function N(k){const I=this.stack[this.stack.length-1];if(!I.depth){const F=this.sliceSerialize(k).length;I.depth=F}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function _(k){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(k).codePointAt(0)===61?1:2}function q(){this.data.setextHeadingSlurpLineEnding=void 0}function j(k){const F=this.stack[this.stack.length-1].children;let M=F[F.length-1];(!M||M.type!=="text")&&(M=Ri(),M.position={start:ke(k.start),end:void 0},F.push(M)),this.stack.push(M)}function x(k){const I=this.stack.pop();I.value+=this.sliceSerialize(k),I.position.end=ke(k.end)}function v(k){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const F=I.children[I.children.length-1];F.position.end=ke(k.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(I.type)&&(j.call(this,k),x.call(this,k))}function P(){this.data.atHardBreak=!0}function H(){const k=this.resume(),I=this.stack[this.stack.length-1];I.value=k}function z(){const k=this.resume(),I=this.stack[this.stack.length-1];I.value=k}function T(){const k=this.resume(),I=this.stack[this.stack.length-1];I.value=k}function U(){const k=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=I,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function X(){const k=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=I,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function oe(k){const I=this.sliceSerialize(k),F=this.stack[this.stack.length-2];F.label=xa(I),F.identifier=ce(I).toLowerCase()}function pe(){const k=this.stack[this.stack.length-1],I=this.resume(),F=this.stack[this.stack.length-1];if(this.data.inReference=!0,F.type==="link"){const M=k.children;F.children=M}else F.alt=I}function m(){const k=this.resume(),I=this.stack[this.stack.length-1];I.url=k}function ae(){const k=this.resume(),I=this.stack[this.stack.length-1];I.title=k}function me(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ue(k){const I=this.resume(),F=this.stack[this.stack.length-1];F.label=I,F.identifier=ce(this.sliceSerialize(k)).toLowerCase(),this.data.referenceType="full"}function we(k){this.data.characterReferenceType=k.type}function G(k){const I=this.sliceSerialize(k),F=this.data.characterReferenceType;let M;F?(M=Lr(I,F==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):M=nn(I);const $=this.stack[this.stack.length-1];$.value+=M}function _e(k){const I=this.stack.pop();I.position.end=ke(k.end)}function xe(k){x.call(this,k);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(k)}function ve(k){x.call(this,k);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(k)}function Pe(){return{type:"blockquote",children:[]}}function Ze(){return{type:"code",lang:null,meta:null,value:""}}function Ti(){return{type:"inlineCode",value:""}}function vi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Pi(){return{type:"emphasis",children:[]}}function gn(){return{type:"heading",depth:0,children:[]}}function dn(){return{type:"break"}}function yn(){return{type:"html",value:""}}function Di(){return{type:"image",title:null,url:"",alt:null}}function xn(){return{type:"link",title:null,url:"",children:[]}}function kn(k){return{type:"list",ordered:k.type==="listOrdered",start:null,spread:k._spread,children:[]}}function zi(k){return{type:"listItem",spread:k._spread,checked:null,children:[]}}function Li(){return{type:"paragraph",children:[]}}function Fi(){return{type:"strong",children:[]}}function Ri(){return{type:"text",value:""}}function Ni(){return{type:"thematicBreak"}}}function ke(e){return{line:e.line,column:e.column,offset:e.offset}}function Ur(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Ur(e,r):Sa(e,r)}}function Sa(e,n){let t;for(t in n)if(Hr.call(n,t))switch(t){case"canContainEols":{const r=n[t];r&&e[t].push(...r);break}case"transforms":{const r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{const r=n[t];r&&Object.assign(e[t],r);break}}}function jn(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+$e({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+$e({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+$e({start:n.start,end:n.end})+") is still open")}function Ca(e){const n=this;n.parser=t;function t(r){return ba(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Ea(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Aa(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
5
+ `}]}function Ia(e,n){const t=n.value?n.value+`
6
+ `:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(o.data={meta:n.meta}),e.patch(n,o),o=e.applyData(n,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(n,o),o}function Ta(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function va(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Pa(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=Oe(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const u={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(n,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(n,s),e.applyData(n,s)}function Da(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function za(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function $r(e,n){const t=n.referenceType;let r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];const i=e.all(n),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 La(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return $r(e,n);const i={src:Oe(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,o),e.applyData(n,o)}function Fa(e,n){const t={src:Oe(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function Ra(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function Na(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return $r(e,n);const i={href:Oe(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function Oa(e,n){const t={href:Oe(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function _a(e,n,t){const r=e.all(n),i=t?Ma(t):Vr(n),o={},l=[];if(typeof n.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
7
+ `}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&l.push({type:"text",value:`
8
+ `});const s={type:"element",tagName:"li",properties:o,children:l};return e.patch(n,s),e.applyData(n,s)}function Ma(e){let n=!1;if(e.type==="list"){n=e.spread||!1;const t=e.children;let r=-1;for(;!n&&++r<t.length;)n=Vr(t[r])}return n}function Vr(e){const n=e.spread;return n??e.children.length>1}function Ba(e,n){const t={},r=e.all(n);let i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const o={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,o),e.applyData(n,o)}function ja(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function qa(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function Ha(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ua(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],l),i.push(l)}if(t.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=Kt(n.children[1]),u=Er(n.children[n.children.length-1]);a&&u&&(l.position={start:a,end:u}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,o),e.applyData(n,o)}function $a(e,n,t){const r=t?t.children:void 0,o=(r?r.indexOf(n):1)===0?"th":"td",l=t&&t.type==="table"?t.align:void 0,a=l?l.length:n.children.length;let u=-1;const s=[];for(;++u<a;){const c=n.children[u],p={},h=l?l[u]:void 0;h&&(p.align=h);let d={type:"element",tagName:o,properties:p,children:[]};c&&(d.children=e.all(c),e.patch(c,d),d=e.applyData(c,d)),s.push(d)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(n,f),e.applyData(n,f)}function Va(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const qn=9,Hn=32;function Wa(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const o=[];for(;r;)o.push(Un(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return o.push(Un(n.slice(i),i>0,!1)),o.join("")}function Un(e,n,t){let r=0,i=e.length;if(n){let o=e.codePointAt(r);for(;o===qn||o===Hn;)r++,o=e.codePointAt(r)}if(t){let o=e.codePointAt(i-1);for(;o===qn||o===Hn;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Ya(e,n){const t={type:"text",value:Wa(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Xa(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Qa={blockquote:Ea,break:Aa,code:Ia,delete:Ta,emphasis:va,footnoteReference:Pa,heading:Da,html:za,imageReference:La,image:Fa,inlineCode:Ra,linkReference:Na,link:Oa,listItem:_a,list:Ba,paragraph:ja,root:qa,strong:Ha,table:Ua,tableCell:Va,tableRow:$a,text:Ya,thematicBreak:Xa,toml:et,yaml:et,definition:et,footnoteDefinition:et};function et(){}const Wr=-1,gt=0,We=1,ut=2,ln=3,on=4,an=5,un=6,Yr=7,Xr=8,Qr=typeof self=="object"?self:globalThis,$n=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Qr[e](n)},Ga=(e,n)=>{const t=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=n[i];switch(o){case gt:case Wr:return t(l,i);case We:{const a=t([],i);for(const u of l)a.push(r(u));return a}case ut:{const a=t({},i);for(const[u,s]of l)a[r(u)]=r(s);return a}case ln:return t(new Date(l),i);case on:{const{source:a,flags:u}=l;return t(new RegExp(a,u),i)}case an:{const a=t(new Map,i);for(const[u,s]of l)a.set(r(u),r(s));return a}case un:{const a=t(new Set,i);for(const u of l)a.add(r(u));return a}case Yr:{const{name:a,message:u}=l;return t(typeof Qr[a]=="function"?$n(a,u):new Error(u),i)}case Xr:return t(BigInt(l),i);case"BigInt":return t(Object(BigInt(l)),i);case"ArrayBuffer":return t(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return t(new DataView(a),l)}}return t($n(o,l),i)};return r},Vn=e=>Ga(new Map,e)(0),Ee="",{toString:Ka}={},{keys:Ja}=Object,Ue=e=>{const n=typeof e;if(n!=="object"||!e)return[gt,n];const t=Ka.call(e).slice(8,-1);switch(t){case"Array":return[We,Ee];case"Object":return[ut,Ee];case"Date":return[ln,Ee];case"RegExp":return[on,Ee];case"Map":return[an,Ee];case"Set":return[un,Ee];case"DataView":return[We,t]}return t.includes("Array")?[We,t]:e instanceof Error?[Yr,e.name||"Error"]:[ut,t]},tt=([e,n])=>e===gt&&(n==="function"||n==="symbol"),Za=(e,n,t,r)=>{const i=(l,a)=>{const u=r.push(l)-1;return t.set(a,u),u},o=l=>{if(t.has(l))return t.get(l);let[a,u]=Ue(l);switch(a){case gt:{let f=l;switch(u){case"bigint":a=Xr,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);f=null;break;case"undefined":return i([Wr],l)}return i([a,f],l)}case We:{if(u){let p=l;return u==="DataView"?p=new Uint8Array(l.buffer):u==="ArrayBuffer"&&(p=new Uint8Array(l)),i([u,[...p]],l)}const f=[],c=i([a,f],l);for(const p of l)f.push(o(p));return c}case ut:{if(u)switch(u){case"BigInt":return i([u,l.toString()],l);case"Boolean":case"Number":case"String":return i([u,l.valueOf()],l)}if(n&&"toJSON"in l)return o(l.toJSON());const f=[],c=i([a,f],l);for(const p of Ja(l))(e||!tt(Ue(l[p])))&&f.push([o(p),o(l[p])]);return c}case ln:return i([a,isNaN(l.getTime())?Ee:l.toISOString()],l);case on:{const{source:f,flags:c}=l;return i([a,{source:f,flags:c}],l)}case an:{const f=[],c=i([a,f],l);for(const[p,h]of l)(e||!(tt(Ue(p))||tt(Ue(h))))&&f.push([o(p),o(h)]);return c}case un:{const f=[],c=i([a,f],l);for(const p of l)(e||!tt(Ue(p)))&&f.push(o(p));return c}}const{message:s}=l;return i([a,{name:u,message:s}],l)};return o},Wn=(e,{json:n,lossy:t}={})=>{const r=[];return Za(!(n||t),!!n,new Map,r)(e),r},st=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Vn(Wn(e,n)):structuredClone(e):(e,n)=>Vn(Wn(e,n));function eu(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function tu(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function nu(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||eu,r=e.options.footnoteBackLabel||tu,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[u]);if(!s)continue;const f=e.all(s),c=String(s.identifier).toUpperCase(),p=Oe(c.toLowerCase());let h=0;const d=[],w=e.footnoteCounts.get(c);for(;w!==void 0&&++h<=w;){d.length>0&&d.push({type:"text",value:" "});let A=typeof t=="string"?t:t(u,h);typeof A=="string"&&(A={type:"text",value:A}),d.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,h),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}const S=f[f.length-1];if(S&&S.type==="element"&&S.tagName==="p"){const A=S.children[S.children.length-1];A&&A.type==="text"?A.value+=" ":S.children.push({type:"text",value:" "}),S.children.push(...d)}else f.push(...d);const y={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:e.wrap(f,!0)};e.patch(s,y),a.push(y)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...st(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
9
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
10
+ `}]}}const dt=(function(e){if(e==null)return ou;if(typeof e=="function")return yt(e);if(typeof e=="object")return Array.isArray(e)?ru(e):iu(e);if(typeof e=="string")return lu(e);throw new Error("Expected function, string, or object as test")});function ru(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=dt(e[t]);return yt(r);function r(...i){let o=-1;for(;++o<n.length;)if(n[o].apply(this,i))return!0;return!1}}function iu(e){const n=e;return yt(t);function t(r){const i=r;let o;for(o in e)if(i[o]!==n[o])return!1;return!0}}function lu(e){return yt(n);function n(t){return t&&t.type===e}}function yt(e){return n;function n(t,r,i){return!!(au(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function ou(){return!0}function au(e){return e!==null&&typeof e=="object"&&"type"in e}const Gr=[],uu=!0,$t=!1,su="skip";function Kr(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const o=dt(i),l=r?-1:1;a(e,void 0,[])();function a(u,s,f){const c=u&&typeof u=="object"?u:{};if(typeof c.type=="string"){const h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(u.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=Gr,d,w,S;if((!n||o(u,s,f[f.length-1]||void 0))&&(h=cu(t(u,f)),h[0]===$t))return h;if("children"in u&&u.children){const y=u;if(y.children&&h[0]!==su)for(w=(r?y.children.length:-1)+l,S=f.concat(y);w>-1&&w<y.children.length;){const A=y.children[w];if(d=a(A,w,S)(),d[0]===$t)return d;w=typeof d[1]=="number"?d[1]:w+l}}return h}}}function cu(e){return Array.isArray(e)?e:typeof e=="number"?[uu,e]:e==null?Gr:[e]}function sn(e,n,t,r){let i,o,l;typeof n=="function"&&typeof t!="function"?(o=void 0,l=n,i=t):(o=n,l=t,i=r),Kr(e,o,a,i);function a(u,s){const f=s[s.length-1],c=f?f.children.indexOf(u):void 0;return l(u,c,f)}}const Vt={}.hasOwnProperty,fu={};function hu(e,n){const t=n||fu,r=new Map,i=new Map,o=new Map,l={...Qa,...t.handlers},a={all:s,applyData:mu,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:u,options:t,patch:pu,wrap:du};return sn(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),a;function u(f,c){const p=f.type,h=a.handlers[p];if(Vt.call(a.handlers,p)&&h)return h(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in f){const{children:w,...S}=f,y=st(S);return y.children=a.all(f),y}return st(f)}return(a.options.unknownHandler||gu)(a,f,c)}function s(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const d=a.one(p[h],f);if(d){if(h&&p[h-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=Yn(d.value)),!Array.isArray(d)&&d.type==="element")){const w=d.children[0];w&&w.type==="text"&&(w.value=Yn(w.value))}Array.isArray(d)?c.push(...d):c.push(d)}}}return c}}function pu(e,n){e.position&&(n.position=el(e))}function mu(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const l="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:l}}t.type==="element"&&o&&Object.assign(t.properties,st(o)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function gu(e,n){const t=n.data||{},r="value"in n&&!(Vt.call(t,"hProperties")||Vt.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function du(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
11
+ `});++r<e.length;)r&&t.push({type:"text",value:`
12
+ `}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
13
+ `}),t}function Yn(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function Xn(e,n){const t=hu(e,n),r=t.one(e,void 0),i=nu(t),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
14
+ `},i),o}function yu(e,n){return e&&"run"in e?async function(t,r){const i=Xn(t,{file:r,...n});await e.run(i,r)}:function(t,r){return Xn(t,{file:r,...e||n})}}function Qn(e){if(e)throw e}var Et,Gn;function xu(){if(Gn)return Et;Gn=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(s){return typeof Array.isArray=="function"?Array.isArray(s):n.call(s)==="[object Array]"},o=function(s){if(!s||n.call(s)!=="[object Object]")return!1;var f=e.call(s,"constructor"),c=s.constructor&&s.constructor.prototype&&e.call(s.constructor.prototype,"isPrototypeOf");if(s.constructor&&!f&&!c)return!1;var p;for(p in s);return typeof p>"u"||e.call(s,p)},l=function(s,f){t&&f.name==="__proto__"?t(s,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):s[f.name]=f.newValue},a=function(s,f){if(f==="__proto__")if(e.call(s,f)){if(r)return r(s,f).value}else return;return s[f]};return Et=function u(){var s,f,c,p,h,d,w=arguments[0],S=1,y=arguments.length,A=!1;for(typeof w=="boolean"&&(A=w,w=arguments[1]||{},S=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});S<y;++S)if(s=arguments[S],s!=null)for(f in s)c=a(w,f),p=a(s,f),w!==p&&(A&&p&&(o(p)||(h=i(p)))?(h?(h=!1,d=c&&i(c)?c:[]):d=c&&o(c)?c:{},l(w,{name:f,newValue:u(A,d,p)})):typeof p<"u"&&l(w,{name:f,newValue:p}));return w},Et}var ku=xu();const At=hr(ku);function Wt(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function bu(){const e=[],n={run:t,use:r};return n;function t(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(u,...s){const f=e[++o];let c=-1;if(u){l(u);return}for(;++c<i.length;)(s[c]===null||s[c]===void 0)&&(s[c]=i[c]);i=s,f?wu(f,a)(...s):l(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function wu(e,n){let t;return r;function r(...l){const a=e.length>l.length;let u;a&&l.push(i);try{u=e.apply(this,l)}catch(s){const f=s;if(a&&t)throw f;return i(f)}a||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(l,...a){t||(t=!0,n(l,...a))}function o(l){i(null,l)}}const fe={basename:Su,dirname:Cu,extname:Eu,join:Au,sep:"/"};function Su(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Je(e);let t=0,r=-1,i=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let l=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return t===r?r=l:r<0&&(r=e.length),e.slice(t,r)}function Cu(e){if(Je(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Eu(e){Je(e);let n=e.length,t=-1,r=0,i=-1,o=0,l;for(;n--;){const a=e.codePointAt(n);if(a===47){if(l){r=n+1;break}continue}t<0&&(l=!0,t=n+1),a===46?i<0?i=n:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||t<0||o===0||o===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Au(...e){let n=-1,t;for(;++n<e.length;)Je(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Iu(t)}function Iu(e){Je(e);const n=e.codePointAt(0)===47;let t=Tu(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Tu(e,n){let t="",r=0,i=-1,o=0,l=-1,a,u;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(u=t.lastIndexOf("/"),u!==t.length-1){u<0?(t="",r=0):(t=t.slice(0,u),r=t.length-1-t.lastIndexOf("/")),i=l,o=0;continue}}else if(t.length>0){t="",r=0,i=l,o=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,l):t=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return t}function Je(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const vu={cwd:Pu};function Pu(){return"/"}function Yt(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Du(e){if(typeof e=="string")e=new URL(e);else if(!Yt(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return zu(e)}function zu(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+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(n)}const It=["history","path","basename","stem","extname","dirname"];class Jr{constructor(n){let t;n?Yt(n)?t={path:n}:typeof n=="string"||Lu(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":vu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<It.length;){const o=It[r];o in t&&t[o]!==void 0&&t[o]!==null&&(this[o]=o==="history"?[...t[o]]:t[o])}let i;for(i in t)It.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?fe.basename(this.path):void 0}set basename(n){vt(n,"basename"),Tt(n,"basename"),this.path=fe.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?fe.dirname(this.path):void 0}set dirname(n){Kn(this.basename,"dirname"),this.path=fe.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?fe.extname(this.path):void 0}set extname(n){if(Tt(n,"extname"),Kn(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=fe.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Yt(n)&&(n=Du(n)),vt(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?fe.basename(this.path,this.extname):void 0}set stem(n){vt(n,"stem"),Tt(n,"stem"),this.path=fe.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){const i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){const i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){const i=new J(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Tt(e,n){if(e&&e.includes(fe.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+fe.sep+"`")}function vt(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Kn(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Lu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Fu=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),Ru={}.hasOwnProperty;class cn extends Fu{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=bu()}copy(){const n=new cn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(At(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(zt("data",this.frozen),this.namespace[n]=t,this):Ru.call(this.namespace,n)&&this.namespace[n]||void 0:n?(zt("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=nt(n),r=this.parser||this.Parser;return Pt("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),Pt("process",this.parser||this.Parser),Dt("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(o,l){const a=nt(n),u=r.parse(a);r.run(u,a,function(f,c,p){if(f||!c||!p)return s(f);const h=c,d=r.stringify(h,p);_u(d)?p.value=d:p.result=d,s(f,p)});function s(f,c){f||!c?l(f):o?o(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),Pt("processSync",this.parser||this.Parser),Dt("processSync",this.compiler||this.Compiler),this.process(n,i),Zn("processSync","process",t),r;function i(o,l){t=!0,Qn(o),r=l}}run(n,t,r){Jn(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const u=nt(t);i.run(n,u,s);function s(f,c,p){const h=c||n;f?a(f):l?l(h):r(void 0,h,p)}}}runSync(n,t){let r=!1,i;return this.run(n,t,o),Zn("runSync","run",r),i;function o(l,a){Qn(l),i=a,r=!0}}stringify(n,t){this.freeze();const r=nt(t),i=this.compiler||this.Compiler;return Dt("stringify",i),Jn(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(zt("use",this.frozen),n!=null)if(typeof n=="function")u(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(s){if(typeof s=="function")u(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[f,...c]=s;u(f,c)}else l(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function l(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(s.plugins),s.settings&&(i.settings=At(!0,i.settings,s.settings))}function a(s){let f=-1;if(s!=null)if(Array.isArray(s))for(;++f<s.length;){const c=s[f];o(c)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function u(s,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===s){p=c;break}if(p===-1)r.push([s,...f]);else if(f.length>0){let[h,...d]=f;const w=r[p][1];Wt(w)&&Wt(h)&&(h=At(!0,w,h)),r[p]=[s,h,...d]}}}}const Nu=new cn().freeze();function Pt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Dt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function zt(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Jn(e){if(!Wt(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Zn(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function nt(e){return Ou(e)?e:new Jr(e)}function Ou(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function _u(e){return typeof e=="string"||Mu(e)}function Mu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Bu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",er=[],tr={allowDangerousHtml:!0},ju=/^(https?|ircs?|mailto|xmpp)$/i,qu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function lh(e){const n=Hu(e),t=Uu(e);return $u(n.runSync(n.parse(t),t),e)}function Hu(e){const n=e.rehypePlugins||er,t=e.remarkPlugins||er,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...tr}:tr;return Nu().use(Ca).use(t).use(yu,r).use(n)}function Uu(e){const n=e.children||"",t=new Jr;return typeof n=="string"&&(t.value=n),t}function $u(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,o=n.disallowedElements,l=n.skipHtml,a=n.unwrapDisallowed,u=n.urlTransform||Vu;for(const f of qu)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Bu+f.id,void 0);return n.className&&(e={type:"element",tagName:"div",properties:{className:n.className},children:e.type==="root"?e.children:[e]}),sn(e,s),ll(e,{Fragment:xt.Fragment,components:i,ignoreInvalidStyle:!0,jsx:xt.jsx,jsxs:xt.jsxs,passKeys:!0,passNode:!0});function s(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return l?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in wt)if(Object.hasOwn(wt,h)&&Object.hasOwn(f.properties,h)){const d=f.properties[h],w=wt[h];(w===null||w.includes(f.tagName))&&(f.properties[h]=u(String(d||""),h,f))}}if(f.type==="element"){let h=t?!t.includes(f.tagName):o?o.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return a&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function Vu(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||ju.test(e.slice(0,n))?e:""}function ct(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function Wu(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Yu(e,n,t){const i=dt((t||{}).ignore||[]),o=Xu(n);let l=-1;for(;++l<o.length;)Kr(e,"text",a);function a(s,f){let c=-1,p;for(;++c<f.length;){const h=f[c],d=p?p.children:void 0;if(i(h,d?d.indexOf(h):void 0,p))return;p=h}if(p)return u(s,f)}function u(s,f){const c=f[f.length-1],p=o[l][0],h=o[l][1];let d=0;const S=c.children.indexOf(s);let y=!1,A=[];p.lastIndex=0;let C=p.exec(s.value);for(;C;){const R=C.index,N={index:C.index,input:C.input,stack:[...f,s]};let b=h(...C,N);if(typeof b=="string"&&(b=b.length>0?{type:"text",value:b}:void 0),b===!1?p.lastIndex=R+1:(d!==R&&A.push({type:"text",value:s.value.slice(d,R)}),Array.isArray(b)?A.push(...b):b&&A.push(b),d=R+C[0].length,y=!0),!p.global)break;C=p.exec(s.value)}return y?(d<s.value.length&&A.push({type:"text",value:s.value.slice(d)}),c.children.splice(S,1,...A)):A=[s],S+A.length}}function Xu(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([Qu(i[0]),Gu(i[1])])}return n}function Qu(e){return typeof e=="string"?new RegExp(Wu(e),"g"):e}function Gu(e){return typeof e=="function"?e:function(){return e}}const Lt="phrasing",Ft=["autolink","link","image","label"];function Ku(){return{transforms:[is],enter:{literalAutolink:Zu,literalAutolinkEmail:Rt,literalAutolinkHttp:Rt,literalAutolinkWww:Rt},exit:{literalAutolink:rs,literalAutolinkEmail:ns,literalAutolinkHttp:es,literalAutolinkWww:ts}}}function Ju(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Lt,notInConstruct:Ft},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Lt,notInConstruct:Ft},{character:":",before:"[ps]",after:"\\/",inConstruct:Lt,notInConstruct:Ft}]}}function Zu(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Rt(e){this.config.enter.autolinkProtocol.call(this,e)}function es(e){this.config.exit.autolinkProtocol.call(this,e)}function ts(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function ns(e){this.config.exit.autolinkEmail.call(this,e)}function rs(e){this.exit(e)}function is(e){Yu(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ls],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),os]],{ignore:["link","linkReference"]})}function ls(e,n,t,r,i){let o="";if(!Zr(i)||(/^w/i.test(n)&&(t=n+t,n="",o="http://"),!as(t)))return!1;const l=us(t+r);if(!l[0])return!1;const a={type:"link",title:null,url:o+n+l[0],children:[{type:"text",value:n+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function os(e,n,t,r){return!Zr(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function as(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function us(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=ct(e,"(");let o=ct(e,")");for(;r!==-1&&i>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}function Zr(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||Ie(t)||pt(t))&&(!n||t!==47)}ei.peek=ys;function ss(){this.buffer()}function cs(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function fs(){this.buffer()}function hs(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ps(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ce(this.sliceSerialize(e)).toLowerCase(),t.label=n}function ms(e){this.exit(e)}function gs(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=ce(this.sliceSerialize(e)).toLowerCase(),t.label=n}function ds(e){this.exit(e)}function ys(){return"["}function ei(e,n,t,r){const i=t.createTracker(r);let o=i.move("[^");const l=t.enter("footnoteReference"),a=t.enter("reference");return o+=i.move(t.safe(t.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function xs(){return{enter:{gfmFootnoteCallString:ss,gfmFootnoteCall:cs,gfmFootnoteDefinitionLabelString:fs,gfmFootnoteDefinition:hs},exit:{gfmFootnoteCallString:ps,gfmFootnoteCall:ms,gfmFootnoteDefinitionLabelString:gs,gfmFootnoteDefinition:ds}}}function ks(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:ei},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,o,l){const a=o.createTracker(l);let u=a.move("[^");const s=o.enter("footnoteDefinition"),f=o.enter("label");return u+=a.move(o.safe(o.associationId(r),{before:u,after:"]"})),f(),u+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),u+=a.move((n?`
15
+ `:" ")+o.indentLines(o.containerFlow(r,a.current()),n?ti:bs))),s(),u}}function bs(e,n,t){return n===0?e:ti(e,n,t)}function ti(e,n,t){return(t?"":" ")+e}const ws=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ni.peek=Is;function Ss(){return{canContainEols:["delete"],enter:{strikethrough:Es},exit:{strikethrough:As}}}function Cs(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:ws}],handlers:{delete:ni}}}function Es(e){this.enter({type:"delete",children:[]},e)}function As(e){this.exit(e)}function ni(e,n,t,r){const i=t.createTracker(r),o=t.enter("strikethrough");let l=i.move("~~");return l+=t.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function Is(){return"~"}function Ts(e){return e.length}function vs(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||Ts,o=[],l=[],a=[],u=[];let s=0,f=-1;for(;++f<e.length;){const w=[],S=[];let y=-1;for(e[f].length>s&&(s=e[f].length);++y<e[f].length;){const A=Ps(e[f][y]);if(t.alignDelimiters!==!1){const C=i(A);S[y]=C,(u[y]===void 0||C>u[y])&&(u[y]=C)}w.push(A)}l[f]=w,a[f]=S}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<s;)o[c]=nr(r[c]);else{const w=nr(r);for(;++c<s;)o[c]=w}c=-1;const p=[],h=[];for(;++c<s;){const w=o[c];let S="",y="";w===99?(S=":",y=":"):w===108?S=":":w===114&&(y=":");let A=t.alignDelimiters===!1?1:Math.max(1,u[c]-S.length-y.length);const C=S+"-".repeat(A)+y;t.alignDelimiters!==!1&&(A=S.length+A+y.length,A>u[c]&&(u[c]=A),h[c]=A),p[c]=C}l.splice(1,0,p),a.splice(1,0,h),f=-1;const d=[];for(;++f<l.length;){const w=l[f],S=a[f];c=-1;const y=[];for(;++c<s;){const A=w[c]||"";let C="",R="";if(t.alignDelimiters!==!1){const N=u[c]-(S[c]||0),b=o[c];b===114?C=" ".repeat(N):b===99?N%2?(C=" ".repeat(N/2+.5),R=" ".repeat(N/2-.5)):(C=" ".repeat(N/2),R=C):R=" ".repeat(N)}t.delimiterStart!==!1&&!c&&y.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&A==="")&&(t.delimiterStart!==!1||c)&&y.push(" "),t.alignDelimiters!==!1&&y.push(C),y.push(A),t.alignDelimiters!==!1&&y.push(R),t.padding!==!1&&y.push(" "),(t.delimiterEnd!==!1||c!==s-1)&&y.push("|")}d.push(t.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return d.join(`
16
+ `)}function Ps(e){return e==null?"":String(e)}function nr(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}const rr={}.hasOwnProperty;function Ds(e,n){const t=n||{};function r(i,...o){let l=r.invalid;const a=r.handlers;if(i&&rr.call(i,e)){const u=String(i[e]);l=rr.call(a,u)?a[u]:r.unknown}if(l)return l.call(this,i,...o)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}function zs(e,n,t,r){const i=t.enter("blockquote"),o=t.createTracker(r);o.move("> "),o.shift(2);const l=t.indentLines(t.containerFlow(e,o.current()),Ls);return i(),l}function Ls(e,n,t){return">"+(t?"":" ")+e}function Fs(e,n){return ir(e,n.inConstruct,!0)&&!ir(e,n.notInConstruct,!1)}function ir(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function lr(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
17
+ `&&Fs(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
18
+ `}function Rs(e,n){const t=String(e);let r=t.indexOf(n),i=r,o=0,l=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+n.length,r=t.indexOf(n,i);return l}function Ns(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Os(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function _s(e,n,t,r){const i=Os(t),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(Ns(e,t)){const c=t.enter("codeIndented"),p=t.indentLines(o,Ms);return c(),p}const a=t.createTracker(r),u=i.repeat(Math.max(Rs(o,i)+1,3)),s=t.enter("codeFenced");let f=a.move(u);if(e.lang){const c=t.enter(`codeFencedLang${l}`);f+=a.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${l}`);f+=a.move(" "),f+=a.move(t.safe(e.meta,{before:f,after:`
19
+ `,encode:["`"],...a.current()})),c()}return f+=a.move(`
20
+ `),o&&(f+=a.move(o+`
21
+ `)),f+=a.move(u),s(),f}function Ms(e,n,t){return(t?"":" ")+e}function fn(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function Bs(e,n,t,r){const i=fn(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("definition");let a=t.enter("label");const u=t.createTracker(r);let s=u.move("[");return s+=u.move(t.safe(t.associationId(e),{before:s,after:"]",...u.current()})),s+=u.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(t.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=t.enter("destinationRaw"),s+=u.move(t.safe(e.url,{before:s,after:e.title?" ":`
22
+ `,...u.current()}))),a(),e.title&&(a=t.enter(`title${o}`),s+=u.move(" "+i),s+=u.move(t.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),l(),s}function js(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Xe(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ft(e,n,t){const r=Re(e),i=Re(n);return r===void 0?i===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}ri.peek=qs;function ri(e,n,t,r){const i=js(t),o=t.enter("emphasis"),l=t.createTracker(r),a=l.move(i);let u=l.move(t.containerPhrasing(e,{after:i,before:a,...l.current()}));const s=u.charCodeAt(0),f=ft(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(u=Xe(s)+u.slice(1));const c=u.charCodeAt(u.length-1),p=ft(r.after.charCodeAt(0),c,i);p.inside&&(u=u.slice(0,-1)+Xe(c));const h=l.move(i);return o(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+h}function qs(e,n,t){return t.options.emphasis||"*"}function Hs(e,n){let t=!1;return sn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,$t}),!!((!e.depth||e.depth<3)&&tn(e)&&(n.options.setext||t))}function Us(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),o=t.createTracker(r);if(Hs(e,t)){const f=t.enter("headingSetext"),c=t.enter("phrasing"),p=t.containerPhrasing(e,{...o.current(),before:`
23
+ `,after:`
24
+ `});return c(),f(),p+`
25
+ `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
26
+ `))+1))}const l="#".repeat(i),a=t.enter("headingAtx"),u=t.enter("phrasing");o.move(l+" ");let s=t.containerPhrasing(e,{before:"# ",after:`
27
+ `,...o.current()});return/^[\t ]/.test(s)&&(s=Xe(s.charCodeAt(0))+s.slice(1)),s=s?l+" "+s:l,t.options.closeAtx&&(s+=" "+l),u(),a(),s}ii.peek=$s;function ii(e){return e.value||""}function $s(){return"<"}li.peek=Vs;function li(e,n,t,r){const i=fn(t),o=i==='"'?"Quote":"Apostrophe",l=t.enter("image");let a=t.enter("label");const u=t.createTracker(r);let s=u.move("![");return s+=u.move(t.safe(e.alt,{before:s,after:"]",...u.current()})),s+=u.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(t.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=t.enter("destinationRaw"),s+=u.move(t.safe(e.url,{before:s,after:e.title?" ":")",...u.current()}))),a(),e.title&&(a=t.enter(`title${o}`),s+=u.move(" "+i),s+=u.move(t.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),s+=u.move(")"),l(),s}function Vs(){return"!"}oi.peek=Ws;function oi(e,n,t,r){const i=e.referenceType,o=t.enter("imageReference");let l=t.enter("label");const a=t.createTracker(r);let u=a.move("![");const s=t.safe(e.alt,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:u,after:"]",...a.current()});return l(),t.stack=f,o(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function Ws(){return"!"}ai.peek=Ys;function ai(e,n,t){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<t.unsafe.length;){const l=t.unsafe[o],a=t.compilePattern(l);let u;if(l.atBreak)for(;u=a.exec(r);){let s=u.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(u.index+1)}}return i+r+i}function Ys(){return"`"}function ui(e,n){const t=tn(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}si.peek=Xs;function si(e,n,t,r){const i=fn(t),o=i==='"'?"Quote":"Apostrophe",l=t.createTracker(r);let a,u;if(ui(e,t)){const f=t.stack;t.stack=[],a=t.enter("autolink");let c=l.move("<");return c+=l.move(t.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),a(),t.stack=f,c}a=t.enter("link"),u=t.enter("label");let s=l.move("[");return s+=l.move(t.containerPhrasing(e,{before:s,after:"](",...l.current()})),s+=l.move("]("),u(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(u=t.enter("destinationLiteral"),s+=l.move("<"),s+=l.move(t.safe(e.url,{before:s,after:">",...l.current()})),s+=l.move(">")):(u=t.enter("destinationRaw"),s+=l.move(t.safe(e.url,{before:s,after:e.title?" ":")",...l.current()}))),u(),e.title&&(u=t.enter(`title${o}`),s+=l.move(" "+i),s+=l.move(t.safe(e.title,{before:s,after:i,...l.current()})),s+=l.move(i),u()),s+=l.move(")"),a(),s}function Xs(e,n,t){return ui(e,t)?"<":"["}ci.peek=Qs;function ci(e,n,t,r){const i=e.referenceType,o=t.enter("linkReference");let l=t.enter("label");const a=t.createTracker(r);let u=a.move("[");const s=t.containerPhrasing(e,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const f=t.stack;t.stack=[],l=t.enter("reference");const c=t.safe(t.associationId(e),{before:u,after:"]",...a.current()});return l(),t.stack=f,o(),i==="full"||!s||s!==c?u+=a.move(c+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function Qs(){return"["}function hn(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function Gs(e){const n=hn(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function Ks(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function fi(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function Js(e,n,t,r){const i=t.enter("list"),o=t.bulletCurrent;let l=e.ordered?Ks(t):hn(t);const a=e.ordered?l==="."?")":".":Gs(t);let u=n&&t.bulletLastUsed?l===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(u=!0),fi(t)===l&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(l=a),t.bulletCurrent=l;const s=t.containerFlow(e,r);return t.bulletLastUsed=l,t.bulletCurrent=o,i(),s}function Zs(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function ec(e,n,t,r){const i=Zs(t);let o=t.bulletCurrent||hn(t);n&&n.type==="list"&&n.ordered&&(o=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(l=Math.ceil(l/4)*4);const a=t.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);const u=t.enter("listItem"),s=t.indentLines(t.containerFlow(e,a.current()),f);return u(),s;function f(c,p,h){return p?(h?"":" ".repeat(l))+c:(h?o:o+" ".repeat(l-o.length))+c}}function tc(e,n,t,r){const i=t.enter("paragraph"),o=t.enter("phrasing"),l=t.containerPhrasing(e,r);return o(),i(),l}const nc=dt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function rc(e,n,t,r){return(e.children.some(function(l){return nc(l)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function ic(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}hi.peek=lc;function hi(e,n,t,r){const i=ic(t),o=t.enter("strong"),l=t.createTracker(r),a=l.move(i+i);let u=l.move(t.containerPhrasing(e,{after:i,before:a,...l.current()}));const s=u.charCodeAt(0),f=ft(r.before.charCodeAt(r.before.length-1),s,i);f.inside&&(u=Xe(s)+u.slice(1));const c=u.charCodeAt(u.length-1),p=ft(r.after.charCodeAt(0),c,i);p.inside&&(u=u.slice(0,-1)+Xe(c));const h=l.move(i+i);return o(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+h}function lc(e,n,t){return t.options.strong||"*"}function oc(e,n,t,r){return t.safe(e.value,r)}function ac(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function uc(e,n,t){const r=(fi(t)+(t.options.ruleSpaces?" ":"")).repeat(ac(t));return t.options.ruleSpaces?r.slice(0,-1):r}const pi={blockquote:zs,break:lr,code:_s,definition:Bs,emphasis:ri,hardBreak:lr,heading:Us,html:ii,image:li,imageReference:oi,inlineCode:ai,link:si,linkReference:ci,list:Js,listItem:ec,paragraph:tc,root:rc,strong:hi,text:oc,thematicBreak:uc};function sc(){return{enter:{table:cc,tableData:or,tableHeader:or,tableRow:hc},exit:{codeText:pc,table:fc,tableData:Nt,tableHeader:Nt,tableRow:Nt}}}function cc(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function fc(e){this.exit(e),this.data.inTable=void 0}function hc(e){this.enter({type:"tableRow",children:[]},e)}function Nt(e){this.exit(e)}function or(e){this.enter({type:"tableCell",children:[]},e)}function pc(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,mc));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function mc(e,n){return n==="|"?n:e}function gc(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,o=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
28
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:u,tableRow:a}};function l(h,d,w,S){return s(f(h,w,S),h.align)}function a(h,d,w,S){const y=c(h,w,S),A=s([y]);return A.slice(0,A.indexOf(`
29
+ `))}function u(h,d,w,S){const y=w.enter("tableCell"),A=w.enter("phrasing"),C=w.containerPhrasing(h,{...S,before:o,after:o});return A(),y(),C}function s(h,d){return vs(h,{align:d,alignDelimiters:r,padding:t,stringLength:i})}function f(h,d,w){const S=h.children;let y=-1;const A=[],C=d.enter("table");for(;++y<S.length;)A[y]=c(S[y],d,w);return C(),A}function c(h,d,w){const S=h.children;let y=-1;const A=[],C=d.enter("tableRow");for(;++y<S.length;)A[y]=u(S[y],h,d,w);return C(),A}function p(h,d,w){let S=pi.inlineCode(h,d,w);return w.stack.includes("tableCell")&&(S=S.replace(/\|/g,"\\$&")),S}}function dc(){return{exit:{taskListCheckValueChecked:ar,taskListCheckValueUnchecked:ar,paragraph:xc}}}function yc(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:kc}}}function ar(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function xc(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function kc(e,n,t,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);o&&a.move(l);let u=pi.listItem(e,n,t,{...r,...a.current()});return o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,s)),u;function s(f){return f+l}}function bc(){return[Ku(),xs(),Ss(),sc(),dc()]}function wc(e){return{extensions:[Ju(),ks(e),Cs(),gc(e),yc()]}}const Sc={tokenize:vc,partial:!0},mi={tokenize:Pc,partial:!0},gi={tokenize:Dc,partial:!0},di={tokenize:zc,partial:!0},Cc={tokenize:Lc,partial:!0},yi={name:"wwwAutolink",tokenize:Ic,previous:ki},xi={name:"protocolAutolink",tokenize:Tc,previous:bi},ye={name:"emailAutolink",tokenize:Ac,previous:wi},he={};function Ec(){return{text:he}}let Ce=48;for(;Ce<123;)he[Ce]=ye,Ce++,Ce===58?Ce=65:Ce===91&&(Ce=97);he[43]=ye;he[45]=ye;he[46]=ye;he[95]=ye;he[72]=[ye,xi];he[104]=[ye,xi];he[87]=[ye,yi];he[119]=[ye,yi];function Ac(e,n,t){const r=this;let i,o;return l;function l(c){return!Xt(c)||!wi.call(r,r.previous)||pn(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Xt(c)?(e.consume(c),a):c===64?(e.consume(c),u):t(c)}function u(c){return c===46?e.check(Cc,f,s)(c):c===45||c===95||K(c)?(o=!0,e.consume(c),u):f(c)}function s(c){return e.consume(c),i=!0,u}function f(c){return o&&i&&Z(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Ic(e,n,t){const r=this;return i;function i(l){return l!==87&&l!==119||!ki.call(r,r.previous)||pn(r.events)?t(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Sc,e.attempt(mi,e.attempt(gi,o),t),t)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function Tc(e,n,t){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&bi.call(r,r.previous)&&!pn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):t(c)}function a(c){if(Z(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),u}return t(c)}function u(c){return c===47?(e.consume(c),o?s:(o=!0,u)):t(c)}function s(c){return c===null||at(c)||W(c)||Ie(c)||pt(c)?t(c):e.attempt(mi,e.attempt(gi,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function vc(e,n,t){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):t(l)}function o(l){return l===null?t(l):n(l)}}function Pc(e,n,t){let r,i,o;return l;function l(s){return s===46||s===95?e.check(di,u,a)(s):s===null||W(s)||Ie(s)||s!==45&&pt(s)?u(s):(o=!0,e.consume(s),l)}function a(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),l}function u(s){return i||r||!o?t(s):n(s)}}function Dc(e,n){let t=0,r=0;return i;function i(l){return l===40?(t++,e.consume(l),i):l===41&&r<t?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(di,n,o)(l):l===null||W(l)||Ie(l)?n(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function zc(e,n,t){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||W(a)||Ie(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||W(a)||Ie(a)?n(a):r(a)}function o(a){return Z(a)?l(a):t(a)}function l(a){return a===59?(e.consume(a),r):Z(a)?(e.consume(a),l):t(a)}}function Lc(e,n,t){return r;function r(o){return e.consume(o),i}function i(o){return K(o)?t(o):n(o)}}function ki(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||W(e)}function bi(e){return!Z(e)}function wi(e){return!(e===47||Xt(e))}function Xt(e){return e===43||e===45||e===46||e===95||K(e)}function pn(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const Fc={tokenize:qc,partial:!0};function Rc(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Mc,continuation:{tokenize:Bc},exit:jc}},text:{91:{name:"gfmFootnoteCall",tokenize:_c},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Nc,resolveTo:Oc}}}}function Nc(e,n,t){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){l=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return a;function a(u){if(!l||!l._balanced)return t(u);const s=ce(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==94||!o.includes(s.slice(1))?t(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),n(u))}}function Oc(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const 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)},a=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",o,n],["enter",l,n],["exit",l,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...a),e}function _c(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),u}function u(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(c){if(o>999||c===93&&!l||c===null||c===91||W(c))return t(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(ce(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return W(c)||(l=!0),o++,e.consume(c),c===92?f:s}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,s):s(c)}}function Mc(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return u;function u(d){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(d){return d===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(d)}function f(d){if(l>999||d===93&&!a||d===null||d===91||W(d))return t(d);if(d===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return o=ce(r.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return W(d)||(a=!0),l++,e.consume(d),d===92?c:f}function c(d){return d===91||d===92||d===93?(e.consume(d),l++,f):f(d)}function p(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),i.includes(o)||i.push(o),B(e,h,"gfmFootnoteDefinitionWhitespace")):t(d)}function h(d){return n(d)}}function Bc(e,n,t){return e.check(Ke,n,e.attempt(Fc,n,t))}function jc(e){e.exit("gfmFootnoteDefinition")}function qc(e,n,t){const r=this;return B(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?n(o):t(o)}}function Hc(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let u=-1;for(;++u<l.length;)if(l[u][0]==="enter"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._close){let s=u;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[u][1].end.offset-l[u][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[u][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[u][1].end)},c={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[u][1].start)},p=[["enter",f,a],["enter",l[s][1],a],["exit",l[s][1],a],["enter",c,a]],h=a.parser.constructs.insideSpan.null;h&&ie(p,p.length,0,mt(h,l.slice(s+1,u),a)),ie(p,p.length,0,[["exit",c,a],["enter",l[u][1],a],["exit",l[u][1],a],["exit",f,a]]),ie(l,s-1,u-s+3,p),u=s+p.length-2;break}}for(u=-1;++u<l.length;)l[u][1].type==="strikethroughSequenceTemporary"&&(l[u][1].type="data");return l}function o(l,a,u){const s=this.previous,f=this.events;let c=0;return p;function p(d){return s===126&&f[f.length-1][1].type!=="characterEscape"?u(d):(l.enter("strikethroughSequenceTemporary"),h(d))}function h(d){const w=Re(s);if(d===126)return c>1?u(d):(l.consume(d),c++,h);if(c<2&&!t)return u(d);const S=l.exit("strikethroughSequenceTemporary"),y=Re(d);return S._open=!y||y===2&&!!w,S._close=!w||w===2&&!!y,a(d)}}}class Uc{constructor(){this.map=[]}add(n,t,r){$c(this,n,t,r)}consume(n){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const o of i)n.push(o);i=r.pop()}this.map.length=0}}function $c(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function Vc(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const 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"&&(t=!0);n+=1}return r}function Wc(){return{flow:{null:{name:"table",tokenize:Yc,resolveAll:Xc}}}}function Yc(e,n,t){const r=this;let i=0,o=0,l;return a;function a(x){let v=r.events.length-1;for(;v>-1;){const z=r.events[v][1].type;if(z==="lineEnding"||z==="linePrefix")v--;else break}const P=v>-1?r.events[v][1].type:null,H=P==="tableHead"||P==="tableRow"?b:u;return H===b&&r.parser.lazy[r.now().line]?t(x):H(x)}function u(x){return e.enter("tableHead"),e.enter("tableRow"),s(x)}function s(x){return x===124||(l=!0,o+=1),f(x)}function f(x){return x===null?t(x):D(x)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h):t(x):O(x)?B(e,f,"whitespace")(x):(o+=1,l&&(l=!1,i+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(x)))}function c(x){return x===null||x===124||W(x)?(e.exit("data"),f(x)):(e.consume(x),x===92?p:c)}function p(x){return x===92||x===124?(e.consume(x),c):c(x)}function h(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(x):(e.enter("tableDelimiterRow"),l=!1,O(x)?B(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):d(x))}function d(x){return x===45||x===58?S(x):x===124?(l=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),w):N(x)}function w(x){return O(x)?B(e,S,"whitespace")(x):S(x)}function S(x){return x===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),y):x===45?(o+=1,y(x)):x===null||D(x)?R(x):N(x)}function y(x){return x===45?(e.enter("tableDelimiterFiller"),A(x)):N(x)}function A(x){return x===45?(e.consume(x),A):x===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(x))}function C(x){return O(x)?B(e,R,"whitespace")(x):R(x)}function R(x){return x===124?d(x):x===null||D(x)?!l||i!==o?N(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(x)):N(x)}function N(x){return t(x)}function b(x){return e.enter("tableRow"),_(x)}function _(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),_):x===null||D(x)?(e.exit("tableRow"),n(x)):O(x)?B(e,_,"whitespace")(x):(e.enter("data"),q(x))}function q(x){return x===null||x===124||W(x)?(e.exit("data"),_(x)):(e.consume(x),x===92?j:q)}function j(x){return x===92||x===124?(e.consume(x),q):q(x)}}function Xc(e,n){let t=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,u=0,s,f,c;const p=new Uc;for(;++t<e.length;){const h=e[t],d=h[1];h[0]==="enter"?d.type==="tableHead"?(a=!1,u!==0&&(ur(p,n,u,s,f),f=void 0,u=0),s={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(t,0,[["enter",s,n]])):d.type==="tableRow"||d.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,t+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(t,0,[["enter",f,n]])),i=d.type==="tableDelimiterRow"?2:f?3:1):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=rt(p,n,o,i,void 0,c),o=[0,0,0,0]),l[2]=t)):d.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=rt(p,n,o,i,void 0,c)),o=l,l=[o[1],t,0,0])):d.type==="tableHead"?(a=!0,u=t):d.type==="tableRow"||d.type==="tableDelimiterRow"?(u=t,o[1]!==0?(l[0]=l[1],c=rt(p,n,o,i,t,c)):l[1]!==0&&(c=rt(p,n,l,i,t,c)),i=0):i&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(l[3]=t)}for(u!==0&&ur(p,n,u,s,f),p.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Vc(n.events,t))}return e}function rt(e,n,t,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(o.end=Object.assign({},Le(n.events,t[0])),e.add(t[0],0,[["exit",o,n]]));const u=Le(n.events,t[1]);if(o={type:l,start:Object.assign({},u),end:Object.assign({},u)},e.add(t[1],0,[["enter",o,n]]),t[2]!==0){const s=Le(n.events,t[2]),f=Le(n.events,t[3]),c={type:a,start:Object.assign({},s),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const p=n.events[t[2]],h=n.events[t[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",t[3]>t[2]+1){const d=t[2]+1,w=t[3]-t[2]-1;e.add(d,w,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(o.end=Object.assign({},Le(n.events,i)),e.add(i,0,[["exit",o,n]]),o=void 0),o}function ur(e,n,t,r,i){const o=[],l=Le(n.events,t);i&&(i.end=Object.assign({},l),o.push(["exit",i,n])),r.end=Object.assign({},l),o.push(["exit",r,n]),e.add(t+1,0,o)}function Le(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const Qc={name:"tasklistCheck",tokenize:Kc};function Gc(){return{text:{91:Qc}}}function Kc(e,n,t){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),o)}function o(u){return W(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),l):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),l):t(u)}function l(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(u)}function a(u){return D(u)?n(u):O(u)?e.check({tokenize:Jc},n,t)(u):t(u)}}function Jc(e,n,t){return B(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function Zc(e){return zr([Ec(),Rc(),Hc(e),Wc(),Gc()])}const ef={};function oh(e){const n=this,t=e||ef,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Zc(t)),o.push(bc()),l.push(wc(t))}const tf=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],nf=/["&'<>`]/g,rf=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lf=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,of=/[|\\{}()[\]^$+*?.]/g,sr=new WeakMap;function af(e,n){if(e=e.replace(n.subset?uf(n.subset):nf,r),n.subset||n.escapeOnly)return e;return e.replace(rf,t).replace(lf,r);function t(i,o,l){return n.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,l.charCodeAt(o+2),n)}function r(i,o,l){return n.format(i.charCodeAt(0),l.charCodeAt(o+1),n)}}function uf(e){let n=sr.get(e);return n||(n=sf(e),sr.set(e,n)),n}function sf(e){const n=[];let t=-1;for(;++t<e.length;)n.push(e[t].replace(of,"\\$&"));return new RegExp("(?:"+n.join("|")+")","g")}const cf=/[\dA-Fa-f]/;function ff(e,n,t){const r="&#x"+e.toString(16).toUpperCase();return t&&n&&!cf.test(String.fromCharCode(n))?r:r+";"}const hf=/\d/;function pf(e,n,t){const r="&#"+String(e);return t&&n&&!hf.test(String.fromCharCode(n))?r:r+";"}const mf=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ot={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},gf=["cent","copy","divide","gt","lt","not","para","times"],Si={}.hasOwnProperty,Qt={};let it;for(it in Ot)Si.call(Ot,it)&&(Qt[Ot[it]]=it);const df=/[^\dA-Za-z]/;function yf(e,n,t,r){const i=String.fromCharCode(e);if(Si.call(Qt,i)){const o=Qt[i],l="&"+o;return t&&mf.includes(o)&&!gf.includes(o)&&(!r||n&&n!==61&&df.test(String.fromCharCode(n)))?l:l+";"}return""}function xf(e,n,t){let r=ff(e,n,t.omitOptionalSemicolons),i;if((t.useNamedReferences||t.useShortestReferences)&&(i=yf(e,n,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!i)&&t.useShortestReferences){const o=pf(e,n,t.omitOptionalSemicolons);o.length<r.length&&(r=o)}return i&&(!t.useShortestReferences||i.length<r.length)?i:r}function Fe(e,n){return af(e,Object.assign({format:xf},n))}const kf=/^>|^->|<!--|-->|--!>|<!-$/g,bf=[">"],wf=["<",">"];function Sf(e,n,t,r){return r.settings.bogusComments?"<?"+Fe(e.value,Object.assign({},r.settings.characterReferences,{subset:bf}))+">":"<!--"+e.value.replace(kf,i)+"-->";function i(o){return Fe(o,Object.assign({},r.settings.characterReferences,{subset:wf}))}}function Cf(e,n,t,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}const Q=Ei(1),Ci=Ei(-1),Ef=[];function Ei(e){return n;function n(t,r,i){const o=t?t.children:Ef;let l=(r||0)+e,a=o[l];if(!i)for(;a&&ht(a);)l+=e,a=o[l];return a}}const Af={}.hasOwnProperty;function Ai(e){return n;function n(t,r,i){return Af.call(e,t.tagName)&&e[t.tagName](t,r,i)}}const mn=Ai({body:Tf,caption:_t,colgroup:_t,dd:zf,dt:Df,head:_t,html:If,li:Pf,optgroup:Lf,option:Ff,p:vf,rp:cr,rt:cr,tbody:Nf,td:fr,tfoot:Of,th:fr,thead:Rf,tr:_f});function _t(e,n,t){const r=Q(t,n,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&ht(r.value.charAt(0)))}function If(e,n,t){const r=Q(t,n);return!r||r.type!=="comment"}function Tf(e,n,t){const r=Q(t,n);return!r||r.type!=="comment"}function vf(e,n,t){const r=Q(t,n);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function Pf(e,n,t){const r=Q(t,n);return!r||r.type==="element"&&r.tagName==="li"}function Df(e,n,t){const r=Q(t,n);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function zf(e,n,t){const r=Q(t,n);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function cr(e,n,t){const r=Q(t,n);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Lf(e,n,t){const r=Q(t,n);return!r||r.type==="element"&&r.tagName==="optgroup"}function Ff(e,n,t){const r=Q(t,n);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function Rf(e,n,t){const r=Q(t,n);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Nf(e,n,t){const r=Q(t,n);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Of(e,n,t){return!Q(t,n)}function _f(e,n,t){const r=Q(t,n);return!r||r.type==="element"&&r.tagName==="tr"}function fr(e,n,t){const r=Q(t,n);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Mf=Ai({body:qf,colgroup:Hf,head:jf,html:Bf,tbody:Uf});function Bf(e){const n=Q(e,-1);return!n||n.type!=="comment"}function jf(e){const n=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(n.has(r.tagName))return!1;n.add(r.tagName)}const t=e.children[0];return!t||t.type==="element"}function qf(e){const n=Q(e,-1,!0);return!n||n.type!=="comment"&&!(n.type==="text"&&ht(n.value.charAt(0)))&&!(n.type==="element"&&(n.tagName==="meta"||n.tagName==="link"||n.tagName==="script"||n.tagName==="style"||n.tagName==="template"))}function Hf(e,n,t){const r=Ci(t,n),i=Q(e,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&mn(r,t.children.indexOf(r),t)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function Uf(e,n,t){const r=Ci(t,n),i=Q(e,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&mn(r,t.children.indexOf(r),t)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const lt={name:[[`
30
+ \f\r &/=>`.split(""),`
31
+ \f\r "&'/=>\``.split("")],[`\0
32
+ \f\r "&'/<=>`.split(""),`\0
33
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
34
+ \f\r &>`.split(""),`\0
35
+ \f\r "&'<=>\``.split("")],[`\0
36
+ \f\r "&'<=>\``.split(""),`\0
37
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function $f(e,n,t,r){const i=r.schema,o=i.space==="svg"?!1:r.settings.omitOptionalTags;let l=i.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const a=[];let u;i.space==="html"&&e.tagName==="svg"&&(r.schema=Ge);const s=Vf(r,e.properties),f=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,f&&(l=!1),(s||!o||!Mf(e,n,t))&&(a.push("<",e.tagName,s?" "+s:""),l&&(i.space==="svg"||r.settings.closeSelfClosing)&&(u=s.charAt(s.length-1),(!r.settings.tightSelfClosing||u==="/"||u&&u!=='"'&&u!=="'")&&a.push(" "),a.push("/")),a.push(">")),a.push(f),!l&&(!o||!mn(e,n,t))&&a.push("</"+e.tagName+">"),a.join("")}function Vf(e,n){const t=[];let r=-1,i;if(n){for(i in n)if(n[i]!==null&&n[i]!==void 0){const o=Wf(e,i,n[i]);o&&t.push(o)}}for(;++r<t.length;){const o=e.settings.tightAttributes?t[r].charAt(t[r].length-1):void 0;r!==t.length-1&&o!=='"'&&o!=="'"&&(t[r]+=" ")}return t.join("")}function Wf(e,n,t){const r=wr(e.schema,n),i=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let l=e.quote,a;if(r.overloadedBoolean&&(t===r.attribute||t==="")?t=!0:(r.boolean||r.overloadedBoolean)&&(typeof t!="string"||t===r.attribute||t==="")&&(t=!!t),t==null||t===!1||typeof t=="number"&&Number.isNaN(t))return"";const u=Fe(r.attribute,Object.assign({},e.settings.characterReferences,{subset:lt.name[i][o]}));return t===!0||(t=Array.isArray(t)?(r.commaSeparated?pr:Cr)(t,{padLeft:!e.settings.tightCommaSeparatedLists}):String(t),e.settings.collapseEmptyAttributes&&!t)?u:(e.settings.preferUnquoted&&(a=Fe(t,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:lt.unquoted[i][o]}))),a!==t&&(e.settings.quoteSmart&&ct(t,l)>ct(t,e.alternative)&&(l=e.alternative),a=l+Fe(t,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?lt.single:lt.double)[i][o],attribute:!0}))+l),u+(a&&"="+a))}const Yf=["<","&"];function Ii(e,n,t,r){return t&&t.type==="element"&&(t.tagName==="script"||t.tagName==="style")?e.value:Fe(e.value,Object.assign({},r.settings.characterReferences,{subset:Yf}))}function Xf(e,n,t,r){return r.settings.allowDangerousHtml?e.value:Ii(e,n,t,r)}function Qf(e,n,t,r){return r.all(e)}const Gf=Ds("type",{invalid:Kf,unknown:Jf,handlers:{comment:Sf,doctype:Cf,element:$f,raw:Xf,root:Qf,text:Ii}});function Kf(e){throw new Error("Expected node, not `"+e+"`")}function Jf(e){const n=e;throw new Error("Cannot compile unknown node `"+n.type+"`")}const Zf={},eh={},th=[];function ah(e,n){const t=n||Zf,r=t.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:nh,all:rh,settings:{omitOptionalTags:t.omitOptionalTags||!1,allowParseErrors:t.allowParseErrors||!1,allowDangerousCharacters:t.allowDangerousCharacters||!1,quoteSmart:t.quoteSmart||!1,preferUnquoted:t.preferUnquoted||!1,tightAttributes:t.tightAttributes||!1,upperDoctype:t.upperDoctype||!1,tightDoctype:t.tightDoctype||!1,bogusComments:t.bogusComments||!1,tightCommaSeparatedLists:t.tightCommaSeparatedLists||!1,tightSelfClosing:t.tightSelfClosing||!1,collapseEmptyAttributes:t.collapseEmptyAttributes||!1,allowDangerousHtml:t.allowDangerousHtml||!1,voids:t.voids||tf,characterReferences:t.characterReferences||eh,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?Ge:Sr,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function nh(e,n,t){return Gf(e,n,t,this)}function rh(e){const n=[],t=e&&e.children||th;let r=-1;for(;++r<t.length;)n[r]=this.one(t[r],r,e);return n.join("")}export{lh as M,oh as r,ah as t};