cli-link 0.0.6 → 0.0.7

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 (56) hide show
  1. package/dist/client/assets/History-D2xDopni.js +4 -0
  2. package/dist/client/assets/ImageViewer-DuegU_fC.js +1 -0
  3. package/dist/client/assets/MarkdownRenderer-CsyizEL3.js +1 -0
  4. package/dist/client/assets/{PageTopBar-C8j-5s_3.js → PageTopBar-CQwjO6Af.js} +1 -1
  5. package/dist/client/assets/Session-B0s5zBGg.js +7 -0
  6. package/dist/client/assets/Settings-CfHFmJdV.js +1 -0
  7. package/dist/client/assets/Workspace-Cfl0mbNE.js +4 -0
  8. package/dist/client/assets/WorkspaceLinkedText-DCVYd9x-.js +2 -0
  9. package/dist/client/assets/c-BIGW1oBm.js +1 -0
  10. package/dist/client/assets/cpp-DIPi6g--.js +1 -0
  11. package/dist/client/assets/csharp-DSvCPggb.js +1 -0
  12. package/dist/client/assets/dart-bE4Kk8sk.js +1 -0
  13. package/dist/client/assets/dotenv-Da5cRb03.js +1 -0
  14. package/dist/client/assets/go-C27-OAKa.js +1 -0
  15. package/dist/client/assets/graphql-pNE0_Gx8.js +1 -0
  16. package/dist/client/assets/groovy-gcz8RCvz.js +1 -0
  17. package/dist/client/assets/index-BCg3ymV3.css +1 -0
  18. package/dist/client/assets/index-CrJqHlc8.js +2 -0
  19. package/dist/client/assets/java-VnEXKtx_.js +148 -0
  20. package/dist/client/assets/jsx-g9-lgVsj.js +1 -0
  21. package/dist/client/assets/kotlin-BdnUsdx6.js +1 -0
  22. package/dist/client/assets/less-B1dDrJ26.js +1 -0
  23. package/dist/client/assets/lua-BaeVxFsk.js +1 -0
  24. package/dist/client/assets/makefile-CHLpvVh8.js +1 -0
  25. package/dist/client/assets/php-BcCyJq-p.js +1 -0
  26. package/dist/client/assets/properties-DTPjHERo.js +1 -0
  27. package/dist/client/assets/ruby-BwImf3Ka.js +1 -0
  28. package/dist/client/assets/rust-B1yitclQ.js +1 -0
  29. package/dist/client/assets/scss-lMagJa-5.js +1 -0
  30. package/dist/client/assets/sql-CRqJ_cUM.js +1 -0
  31. package/dist/client/assets/svelte-B4a9v_or.js +1 -0
  32. package/dist/client/assets/swift-D82vCrfD.js +1 -0
  33. package/dist/client/assets/toml-vGWfd6FD.js +1 -0
  34. package/dist/client/assets/{vendor-icons-CNN4EKVi.js → vendor-icons-CMXJHDEv.js} +125 -65
  35. package/dist/client/assets/vendor-markdown--d-T3AbU.js +37 -0
  36. package/dist/client/assets/{vendor-motion-n6Lx6G4a.js → vendor-motion-D0ZmPdi9.js} +1 -1
  37. package/dist/client/assets/{vendor-react-DSV5aFEg.js → vendor-react-CcDXZHn_.js} +1 -1
  38. package/dist/client/assets/{vendor-virtual-CcftJrIC.js → vendor-virtual-DJI7OicV.js} +1 -1
  39. package/dist/client/assets/vue-DBXACu8K.js +1 -0
  40. package/dist/client/assets/workspace-return-FrQUv7g3.js +1 -0
  41. package/dist/client/index.html +4 -4
  42. package/dist/server/cli-manager.js +151 -26
  43. package/dist/server/codex-history.js +119 -17
  44. package/dist/server/index.js +906 -57
  45. package/dist/server/store.js +369 -27
  46. package/package.json +3 -3
  47. package/dist/client/assets/History-BxJVDFpN.js +0 -3
  48. package/dist/client/assets/MarkdownRenderer-BO-KS_L1.js +0 -1
  49. package/dist/client/assets/Session-CQFXA2Sr.js +0 -11
  50. package/dist/client/assets/Settings-DYmjRmoN.js +0 -1
  51. package/dist/client/assets/Workspace-D8kv9euM.js +0 -8
  52. package/dist/client/assets/WorkspaceLinkedText-DQyPLk-X.js +0 -2
  53. package/dist/client/assets/code-highlight-CEcsuMpw.js +0 -1
  54. package/dist/client/assets/index-BXT2BylN.css +0 -1
  55. package/dist/client/assets/index-DOgH1Kf3.js +0 -2
  56. package/dist/client/assets/vendor-markdown-BDwu-Ux6.js +0 -35
@@ -0,0 +1,37 @@
1
+ import{c as ot,g as kr,j as kt}from"./vendor-react-CcDXZHn_.js";const Ui=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class Ye{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Ye.prototype.normal={};Ye.prototype.property={};Ye.prototype.space=void 0;function br(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Ye(t,r,n)}function _t(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 $i=0;const z=Ie(),W=Ie(),Mt=Ie(),S=Ie(),U=Ie(),Le=Ie(),re=Ie();function Ie(){return 2**++$i}const Bt=Object.freeze(Object.defineProperty({__proto__:null,boolean:z,booleanish:W,commaOrSpaceSeparated:re,commaSeparated:Le,number:S,overloadedBoolean:Mt,spaceSeparated:U},Symbol.toStringTag,{value:"Module"})),bt=Object.keys(Bt);class Gt extends te{constructor(n,t,r,i){let o=-1;if(super(n,t),wn(this,"space",i),typeof r=="number")for(;++o<bt.length;){const l=bt[o];wn(this,bt[o],(r&Bt[l])===Bt[l])}}}Gt.prototype.defined=!0;function wn(e,n,t){t&&(e[n]=t)}function Oe(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[_t(r)]=r,t[_t(o.attribute)]=r}return new Ye(n,t,e.space)}const wr=Oe({properties:{ariaActiveDescendant:null,ariaAtomic:W,ariaAutoComplete:null,ariaBusy:W,ariaChecked:W,ariaColCount:S,ariaColIndex:S,ariaColSpan:S,ariaControls:U,ariaCurrent:null,ariaDescribedBy:U,ariaDetails:null,ariaDisabled:W,ariaDropEffect:U,ariaErrorMessage:null,ariaExpanded:W,ariaFlowTo:U,ariaGrabbed:W,ariaHasPopup:null,ariaHidden:W,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:U,ariaLevel:S,ariaLive:null,ariaModal:W,ariaMultiLine:W,ariaMultiSelectable:W,ariaOrientation:null,ariaOwns:U,ariaPlaceholder:null,ariaPosInSet:S,ariaPressed:W,ariaReadOnly:W,ariaRelevant:null,ariaRequired:W,ariaRoleDescription:U,ariaRowCount:S,ariaRowIndex:S,ariaRowSpan:S,ariaSelected:W,ariaSetSize:S,ariaSort:null,ariaValueMax:S,ariaValueMin:S,ariaValueNow:S,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Sr(e,n){return n in e?e[n]:n}function Cr(e,n){return Sr(e,n.toLowerCase())}const Vi=Oe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Le,acceptCharset:U,accessKey:U,action:null,allow:null,allowFullScreen:z,allowPaymentRequest:z,allowUserMedia:z,alt:null,as:null,async:z,autoCapitalize:null,autoComplete:U,autoFocus:z,autoPlay:z,blocking:U,capture:null,charSet:null,checked:z,cite:null,className:U,cols:S,colSpan:null,content:null,contentEditable:W,controls:z,controlsList:U,coords:S|Le,crossOrigin:null,data:null,dateTime:null,decoding:null,default:z,defer:z,dir:null,dirName:null,disabled:z,download:Mt,draggable:W,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:z,formTarget:null,headers:U,height:S,hidden:Mt,high:S,href:null,hrefLang:null,htmlFor:U,httpEquiv:U,id:null,imageSizes:null,imageSrcSet:null,inert:z,inputMode:null,integrity:null,is:null,isMap:z,itemId:null,itemProp:U,itemRef:U,itemScope:z,itemType:U,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:z,low:S,manifest:null,max:null,maxLength:S,media:null,method:null,min:null,minLength:S,multiple:z,muted:z,name:null,nonce:null,noModule:z,noValidate:z,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:z,optimum:S,pattern:null,ping:U,placeholder:null,playsInline:z,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:z,referrerPolicy:null,rel:U,required:z,reversed:z,rows:S,rowSpan:S,sandbox:U,scope:null,scoped:z,seamless:z,selected:z,shadowRootClonable:z,shadowRootDelegatesFocus:z,shadowRootMode:null,shape:null,size:S,sizes:null,slot:null,span:S,spellCheck:W,src:null,srcDoc:null,srcLang:null,srcSet:null,start:S,step:null,style:null,tabIndex:S,target:null,title:null,translate:null,type:null,typeMustMatch:z,useMap:null,value:W,width:S,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:U,axis:null,background:null,bgColor:null,border:S,borderColor:null,bottomMargin:S,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:z,declare:z,event:null,face:null,frame:null,frameBorder:null,hSpace:S,leftMargin:S,link:null,longDesc:null,lowSrc:null,marginHeight:S,marginWidth:S,noResize:z,noHref:z,noShade:z,noWrap:z,object:null,profile:null,prompt:null,rev:null,rightMargin:S,rules:null,scheme:null,scrolling:W,standby:null,summary:null,text:null,topMargin:S,valueType:null,version:null,vAlign:null,vLink:null,vSpace:S,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:z,disableRemotePlayback:z,prefix:null,property:null,results:S,security:null,unselectable:null},space:"html",transform:Cr}),Wi=Oe({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",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:S,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:S,amplitude:S,arabicForm:null,ascent:S,attributeName:null,attributeType:null,azimuth:S,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:S,by:null,calcMode:null,capHeight:S,className:U,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:S,diffuseConstant:S,direction:null,display:null,dur:null,divisor:S,dominantBaseline:null,download:z,dx:null,dy:null,edgeMode:null,editable:null,elevation:S,enableBackground:null,end:null,event:null,exponent:S,externalResourcesRequired:null,fill:null,fillOpacity:S,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:Le,g2:Le,glyphName:Le,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:S,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:S,horizOriginX:S,horizOriginY:S,id:null,ideographic:S,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:S,k:S,k1:S,k2:S,k3:S,k4:S,kernelMatrix:re,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:S,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:S,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:S,overlineThickness:S,paintOrder:null,panose1:null,path:null,pathLength:S,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:U,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:S,pointsAtY:S,pointsAtZ:S,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:S,specularExponent:S,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:S,strikethroughThickness:S,string:null,stroke:null,strokeDashArray:re,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:S,strokeOpacity:S,strokeWidth:null,style:null,surfaceScale:S,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:re,tabIndex:S,tableValues:null,target:null,targetX:S,targetY:S,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:S,underlineThickness:S,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:S,values:null,vAlphabetic:S,vMathematical:S,vectorEffect:null,vHanging:S,vIdeographic:S,version:null,vertAdvY:S,vertOriginX:S,vertOriginY:S,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:S,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Sr}),Er=Oe({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()}}),Ar=Oe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Cr}),Ir=Oe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Yi={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"},Xi=/[A-Z]/g,Sn=/-[a-z]/g,Qi=/^data[-\w.:]+$/i;function Tr(e,n){const t=_t(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"&&Qi.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(Sn,Ki);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!Sn.test(o)){let l=o.replace(Xi,Gi);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=Gt}return new i(r,n)}function Gi(e){return"-"+e.toLowerCase()}function Ki(e){return e.charAt(1).toUpperCase()}const vr=br([wr,Vi,Er,Ar,Ir],"html"),Xe=br([wr,Wi,Er,Ar,Ir],"svg"),Cn={}.hasOwnProperty;function Ji(e,n){const t=n||{};function r(i,...o){let l=r.invalid;const a=r.handlers;if(i&&Cn.call(i,e)){const u=String(i[e]);l=Cn.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}const Zi=/["&'<>`]/g,el=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tl=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,nl=/[|\\{}()[\]^$+*?.]/g,En=new WeakMap;function rl(e,n){if(e=e.replace(n.subset?il(n.subset):Zi,r),n.subset||n.escapeOnly)return e;return e.replace(el,t).replace(tl,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 il(e){let n=En.get(e);return n||(n=ll(e),En.set(e,n)),n}function ll(e){const n=[];let t=-1;for(;++t<e.length;)n.push(e[t].replace(nl,"\\$&"));return new RegExp("(?:"+n.join("|")+")","g")}const ol=/[\dA-Fa-f]/;function al(e,n,t){const r="&#x"+e.toString(16).toUpperCase();return t&&n&&!ol.test(String.fromCharCode(n))?r:r+";"}const ul=/\d/;function sl(e,n,t){const r="&#"+String(e);return t&&n&&!ul.test(String.fromCharCode(n))?r:r+";"}const cl=["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"],wt={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:"€"},fl=["cent","copy","divide","gt","lt","not","para","times"],Pr={}.hasOwnProperty,jt={};let Je;for(Je in wt)Pr.call(wt,Je)&&(jt[wt[Je]]=Je);const hl=/[^\dA-Za-z]/;function pl(e,n,t,r){const i=String.fromCharCode(e);if(Pr.call(jt,i)){const o=jt[i],l="&"+o;return t&&cl.includes(o)&&!fl.includes(o)&&(!r||n&&n!==61&&hl.test(String.fromCharCode(n)))?l:l+";"}return""}function ml(e,n,t){let r=al(e,n,t.omitOptionalSemicolons),i;if((t.useNamedReferences||t.useShortestReferences)&&(i=pl(e,n,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!i)&&t.useShortestReferences){const o=sl(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 rl(e,Object.assign({format:ml},n))}const gl=/^>|^->|<!--|-->|--!>|<!-$/g,dl=[">"],yl=["<",">"];function xl(e,n,t,r){return r.settings.bogusComments?"<?"+Fe(e.value,Object.assign({},r.settings.characterReferences,{subset:dl}))+">":"<!--"+e.value.replace(gl,i)+"-->";function i(o){return Fe(o,Object.assign({},r.settings.characterReferences,{subset:yl}))}}function kl(e,n,t,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}function at(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 Dr(e,n){const t=n||{};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}function zr(e){return e.join(" ").trim()}const bl=/[ \t\n\f\r]/g;function ht(e){return typeof e=="object"?e.type==="text"?An(e.value):!1:An(e)}function An(e){return e.replace(bl,"")===""}const Y=Fr(1),Lr=Fr(-1),wl=[];function Fr(e){return n;function n(t,r,i){const o=t?t.children:wl;let l=(r||0)+e,a=o[l];if(!i)for(;a&&ht(a);)l+=e,a=o[l];return a}}const Sl={}.hasOwnProperty;function Nr(e){return n;function n(t,r,i){return Sl.call(e,t.tagName)&&e[t.tagName](t,r,i)}}const Kt=Nr({body:El,caption:St,colgroup:St,dd:vl,dt:Tl,head:St,html:Cl,li:Il,optgroup:Pl,option:Dl,p:Al,rp:In,rt:In,tbody:Ll,td:Tn,tfoot:Fl,th:Tn,thead:zl,tr:Nl});function St(e,n,t){const r=Y(t,n,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&ht(r.value.charAt(0)))}function Cl(e,n,t){const r=Y(t,n);return!r||r.type!=="comment"}function El(e,n,t){const r=Y(t,n);return!r||r.type!=="comment"}function Al(e,n,t){const r=Y(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 Il(e,n,t){const r=Y(t,n);return!r||r.type==="element"&&r.tagName==="li"}function Tl(e,n,t){const r=Y(t,n);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function vl(e,n,t){const r=Y(t,n);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function In(e,n,t){const r=Y(t,n);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Pl(e,n,t){const r=Y(t,n);return!r||r.type==="element"&&r.tagName==="optgroup"}function Dl(e,n,t){const r=Y(t,n);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function zl(e,n,t){const r=Y(t,n);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Ll(e,n,t){const r=Y(t,n);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Fl(e,n,t){return!Y(t,n)}function Nl(e,n,t){const r=Y(t,n);return!r||r.type==="element"&&r.tagName==="tr"}function Tn(e,n,t){const r=Y(t,n);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Ol=Nr({body:Ml,colgroup:Bl,head:_l,html:Rl,tbody:jl});function Rl(e){const n=Y(e,-1);return!n||n.type!=="comment"}function _l(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 Ml(e){const n=Y(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 Bl(e,n,t){const r=Lr(t,n),i=Y(e,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&Kt(r,t.children.indexOf(r),t)?!1:!!(i&&i.type==="element"&&i.tagName==="col")}function jl(e,n,t){const r=Lr(t,n),i=Y(e,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Kt(r,t.children.indexOf(r),t)?!1:!!(i&&i.type==="element"&&i.tagName==="tr")}const Ze={name:[[`
2
+ \f\r &/=>`.split(""),`
3
+ \f\r "&'/=>\``.split("")],[`\0
4
+ \f\r "&'/<=>`.split(""),`\0
5
+ \f\r "&'/<=>\``.split("")]],unquoted:[[`
6
+ \f\r &>`.split(""),`\0
7
+ \f\r "&'<=>\``.split("")],[`\0
8
+ \f\r "&'<=>\``.split(""),`\0
9
+ \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function Hl(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=Xe);const s=ql(r,e.properties),f=r.all(i.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=i,f&&(l=!1),(s||!o||!Ol(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||!Kt(e,n,t))&&a.push("</"+e.tagName+">"),a.join("")}function ql(e,n){const t=[];let r=-1,i;if(n){for(i in n)if(n[i]!==null&&n[i]!==void 0){const o=Ul(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 Ul(e,n,t){const r=Tr(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:Ze.name[i][o]}));return t===!0||(t=Array.isArray(t)?(r.commaSeparated?Dr:zr)(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:Ze.unquoted[i][o]}))),a!==t&&(e.settings.quoteSmart&&at(t,l)>at(t,e.alternative)&&(l=e.alternative),a=l+Fe(t,Object.assign({},e.settings.characterReferences,{subset:(l==="'"?Ze.single:Ze.double)[i][o],attribute:!0}))+l),u+(a&&"="+a))}const $l=["<","&"];function Or(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:$l}))}function Vl(e,n,t,r){return r.settings.allowDangerousHtml?e.value:Or(e,n,t,r)}function Wl(e,n,t,r){return r.all(e)}const Yl=Ji("type",{invalid:Xl,unknown:Ql,handlers:{comment:xl,doctype:kl,element:Hl,raw:Vl,root:Wl,text:Or}});function Xl(e){throw new Error("Expected node, not `"+e+"`")}function Ql(e){const n=e;throw new Error("Cannot compile unknown node `"+n.type+"`")}const Gl={},Kl={},Jl=[];function Fh(e,n){const t=n||Gl,r=t.quote||'"',i=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:Zl,all:eo,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||Ui,characterReferences:t.characterReferences||Kl,closeSelfClosing:t.closeSelfClosing||!1,closeEmptyElements:t.closeEmptyElements||!1},schema:t.space==="svg"?Xe:vr,quote:r,alternative:i}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function Zl(e,n,t){return Yl(e,n,t,this)}function eo(e){const n=[],t=e&&e.children||Jl;let r=-1;for(;++r<t.length;)n[r]=this.one(t[r],r,e);return n.join("")}const to=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,no=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ro={};function vn(e,n){return(ro.jsx?no:to).test(e)}var Jt={},Pn=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,io=/\n/g,lo=/^\s*/,oo=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ao=/^:\s*/,uo=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,so=/^[;\s]*/,co=/^\s+|\s+$/g,fo=`
10
+ `,Dn="/",zn="*",Ee="",ho="comment",po="declaration";function mo(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(d){var k=d.match(io);k&&(t+=k.length);var C=d.lastIndexOf(fo);r=~C?d.length-C:r+d.length}function o(){var d={line:t,column:r};return function(k){return k.position=new l(d),s(),k}}function l(d){this.start=d,this.end={line:t,column:r},this.source=n.source}l.prototype.content=e;function a(d){var k=new Error(n.source+":"+t+":"+r+": "+d);if(k.reason=d,k.filename=n.source,k.line=t,k.column=r,k.source=e,!n.silent)throw k}function u(d){var k=d.exec(e);if(k){var C=k[0];return i(C),e=e.slice(C.length),k}}function s(){u(lo)}function f(d){var k;for(d=d||[];k=c();)k!==!1&&d.push(k);return d}function c(){var d=o();if(!(Dn!=e.charAt(0)||zn!=e.charAt(1))){for(var k=2;Ee!=e.charAt(k)&&(zn!=e.charAt(k)||Dn!=e.charAt(k+1));)++k;if(k+=2,Ee===e.charAt(k-1))return a("End of comment missing");var C=e.slice(2,k-2);return r+=2,i(C),e=e.slice(k),r+=2,d({type:ho,comment:C})}}function p(){var d=o(),k=u(oo);if(k){if(c(),!u(ao))return a("property missing ':'");var C=u(uo),y=d({type:po,property:Ln(k[0].replace(Pn,Ee)),value:C?Ln(C[0].replace(Pn,Ee)):Ee});return u(so),y}}function h(){var d=[];f(d);for(var k;k=p();)k!==!1&&(d.push(k),f(d));return d}return s(),h()}function Ln(e){return e?e.replace(co,Ee):Ee}var go=mo,yo=ot&&ot.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Jt,"__esModule",{value:!0});Jt.default=ko;const xo=yo(go);function ko(e,n){let t=null;if(!e||typeof e!="string")return t;const r=(0,xo.default)(e),i=typeof n=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:l,value:a}=o;i?n(l,a,o):a&&(t=t||{},t[l]=a)}),t}var pt={};Object.defineProperty(pt,"__esModule",{value:!0});pt.camelCase=void 0;var bo=/^--[a-zA-Z0-9_-]+$/,wo=/-([a-z])/g,So=/^[^-]+$/,Co=/^-(webkit|moz|ms|o|khtml)-/,Eo=/^-(ms)-/,Ao=function(e){return!e||So.test(e)||bo.test(e)},Io=function(e,n){return n.toUpperCase()},Fn=function(e,n){return"".concat(n,"-")},To=function(e,n){return n===void 0&&(n={}),Ao(e)?e:(e=e.toLowerCase(),n.reactCompat?e=e.replace(Eo,Fn):e=e.replace(Co,Fn),e.replace(wo,Io))};pt.camelCase=To;var vo=ot&&ot.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Po=vo(Jt),Do=pt;function Ht(e,n){var t={};return!e||typeof e!="string"||(0,Po.default)(e,function(r,i){r&&i&&(t[(0,Do.camelCase)(r,n)]=i)}),t}Ht.default=Ht;var zo=Ht;const Lo=kr(zo),Rr=_r("end"),Zt=_r("start");function _r(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 Fo(e){const n=Zt(e),t=Rr(e);if(n&&t)return{start:n,end:t}}function qe(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Nn(e.position):"start"in e||"end"in e?Nn(e):"line"in e||"column"in e?qt(e):""}function qt(e){return On(e&&e.line)+":"+On(e&&e.column)}function Nn(e){return qt(e&&e.start)+"-"+qt(e&&e.end)}function On(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=qe(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}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 en={}.hasOwnProperty,No=new Map,Oo=/[A-Z]/g,Ro=new Set(["table","tbody","thead","tfoot","tr"]),_o=new Set(["td","th"]),Mr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Mo(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=Wo(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=Vo(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"?Xe:vr,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=Br(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Br(e,n,t){if(n.type==="element")return Bo(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return jo(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return qo(e,n,t);if(n.type==="mdxjsEsm")return Ho(e,n);if(n.type==="root")return Uo(e,n,t);if(n.type==="text")return $o(e,n)}function Bo(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Xe,e.schema=i),e.ancestors.push(n);const o=Hr(e,n.tagName,!1),l=Yo(e,n);let a=nn(e,n);return Ro.has(n.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!ht(u):!0})),jr(e,l,o,n),tn(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function jo(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)}Ve(e,n.position)}function Ho(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Ve(e,n.position)}function qo(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Xe,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:Hr(e,n.name,!0),l=Xo(e,n),a=nn(e,n);return jr(e,l,o,n),tn(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function Uo(e,n,t){const r={};return tn(r,nn(e,n)),e.create(n,e.Fragment,r,t)}function $o(e,n){return n.value}function jr(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function tn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Vo(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 Wo(e,n){return t;function t(r,i,o,l){const a=Array.isArray(o.children),u=Zt(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 Yo(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&en.call(n.properties,i)){const o=Qo(e,i,n.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&_o.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 Xo(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 Ve(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 Ve(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function nn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:No;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=Br(e,o,l);a!==void 0&&t.push(a)}return t}function Qo(e,n,t){const r=Tr(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Dr(t):zr(t)),r.property==="style"){let i=typeof t=="object"?t:Go(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Ko(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Yi[r.property]||r.property:r.attribute,t]}}function Go(e,n){try{return Lo(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=Mr+"#cannot-parse-style-attribute",i}}function Hr(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=vn(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=vn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return en.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ve(e)}function Ve(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=Mr+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Ko(e){const n={};let t;for(t in e)en.call(e,t)&&(n[Jo(t)]=e[t]);return n}function Jo(e){let n=e.replace(Oo,Zo);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Zo(e){return"-"+e.toLowerCase()}const Ct={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"]},ea={};function rn(e,n){const t=ea,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return qr(e,r,i)}function qr(e,n,t){if(ta(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 Rn(e.children,n,t)}return Array.isArray(e)?Rn(e,n,t):""}function Rn(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=qr(e[i],n,t);return r.join("")}function ta(e){return!!(e&&typeof e=="object")}const _n=document.createElement("i");function ln(e){const n="&"+e+";";_n.innerHTML=n;const t=_n.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 Mn={}.hasOwnProperty;function Ur(e){const n={};let t=-1;for(;++t<e.length;)na(n,e[t]);return n}function na(e,n){let t;for(t in n){const i=(Mn.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){Mn.call(i,l)||(i[l]=[]);const a=o[l];ra(i[l],Array.isArray(a)?a:a?[a]:[])}}}function ra(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 $r(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]/),ia=be(/[#-'*+\--9=?A-Z^-~]/);function ut(e){return e!==null&&(e<32||e===127)}const Ut=be(/\d/),la=be(/[\dA-Fa-f]/),oa=be(/[!-/:-@[-`{-~]/);function P(e){return e!==null&&e<-2}function q(e){return e!==null&&(e<0||e===32)}function N(e){return e===-2||e===-1||e===32}const mt=be(new RegExp("\\p{P}|\\p{S}","u")),Ae=be(/\s/);function be(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Re(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 R(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(u){return N(u)?(e.enter(t),a(u)):n(u)}function a(u){return N(u)&&o++<i?(e.consume(u),a):(e.exit(t),n(u))}}const aa={tokenize:ua};function ua(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"),R(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 P(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const sa={tokenize:ca},Bn={tokenize:fa};function ca(e){const n=this,t=[];let r=0,i,o,l;return a;function a(E){if(r<t.length){const L=t[r];return n.containerState=L[1],e.attempt(L[0].continuation,u,s)(E)}return s(E)}function u(E){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&I();const L=n.events.length;let F=L,w;for(;F--;)if(n.events[F][0]==="exit"&&n.events[F][1].type==="chunkFlow"){w=n.events[F][1].end;break}y(r);let _=L;for(;_<n.events.length;)n.events[_][1].end={...w},_++;return ie(n.events,F+1,0,n.events.slice(L)),n.events.length=_,s(E)}return a(E)}function s(E){if(r===t.length){if(!i)return p(E);if(i.currentConstruct&&i.currentConstruct.concrete)return d(E);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Bn,f,c)(E)}function f(E){return i&&I(),y(r),p(E)}function c(E){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,d(E)}function p(E){return n.containerState={},e.attempt(Bn,h,d)(E)}function h(E){return r++,t.push([n.currentConstruct,n.containerState]),p(E)}function d(E){if(E===null){i&&I(),y(0),e.consume(E);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),k(E)}function k(E){if(E===null){C(e.exit("chunkFlow"),!0),y(0),e.consume(E);return}return P(E)?(e.consume(E),C(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(E),k)}function C(E,L){const F=n.sliceStream(E);if(L&&F.push(null),E.previous=o,o&&(o.next=E),o=E,i.defineSkip(E.start),i.write(F),n.parser.lazy[E.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<l&&(!i.events[w][1].end||i.events[w][1].end.offset>l))return;const _=n.events.length;let $=_,B,x;for(;$--;)if(n.events[$][0]==="exit"&&n.events[$][1].type==="chunkFlow"){if(B){x=n.events[$][1].end;break}B=!0}for(y(r),w=_;w<n.events.length;)n.events[w][1].end={...x},w++;ie(n.events,$+1,0,n.events.slice(_)),n.events.length=w}}function y(E){let L=t.length;for(;L-- >E;){const F=t[L];n.containerState=F[1],F[0].exit.call(n,e)}t.length=E}function I(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function fa(e,n,t){return R(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Ne(e){if(e===null||q(e)||Ae(e))return 1;if(mt(e))return 2}function gt(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 $t={name:"attention",resolveAll:ha,tokenize:pa};function ha(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};jn(c,-u),jn(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,gt(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 pa(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Ne(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=Ne(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 jn(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const ma={name:"autolink",tokenize:ga};function ga(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||ut(h)?t(h):(e.consume(h),u)}function s(h){return h===64?(e.consume(h),f):ia(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 Qe={partial:!0,tokenize:da};function da(e,n,t){return r;function r(o){return N(o)?R(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||P(o)?n(o):t(o)}}const Vr={continuation:{tokenize:xa},exit:ka,name:"blockQuote",tokenize:ya};function ya(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 N(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function xa(e,n,t){const r=this;return i;function i(l){return N(l)?R(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Vr,n,t)(l)}}function ka(e){e.exit("blockQuote")}const Wr={name:"characterEscape",tokenize:ba};function ba(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 oa(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const Yr={name:"characterReference",tokenize:wa};function wa(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=la,f):(e.enter("characterReferenceValue"),o=7,l=Ut,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===K&&!ln(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 Hn={partial:!0,tokenize:Ca},qn={concrete:!0,name:"codeFenced",tokenize:Sa};function Sa(e,n,t){const r=this,i={partial:!0,tokenize:F};let o=0,l=0,a;return u;function u(w){return s(w)}function s(w){const _=r.events[r.events.length-1];return o=_&&_[1].type==="linePrefix"?_[2].sliceSerialize(_[1],!0).length:0,a=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===a?(l++,e.consume(w),f):l<3?t(w):(e.exit("codeFencedFenceSequence"),N(w)?R(e,c,"whitespace")(w):c(w))}function c(w){return w===null||P(w)?(e.exit("codeFencedFence"),r.interrupt?n(w):e.check(Hn,k,L)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||P(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):N(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),R(e,h,"whitespace")(w)):w===96&&w===a?t(w):(e.consume(w),p)}function h(w){return w===null||P(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(w))}function d(w){return w===null||P(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===a?t(w):(e.consume(w),d)}function k(w){return e.attempt(i,L,C)(w)}function C(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y}function y(w){return o>0&&N(w)?R(e,I,"linePrefix",o+1)(w):I(w)}function I(w){return w===null||P(w)?e.check(Hn,k,L)(w):(e.enter("codeFlowValue"),E(w))}function E(w){return w===null||P(w)?(e.exit("codeFlowValue"),I(w)):(e.consume(w),E)}function L(w){return e.exit("codeFenced"),n(w)}function F(w,_,$){let B=0;return x;function x(M){return w.enter("lineEnding"),w.consume(M),w.exit("lineEnding"),T}function T(M){return w.enter("codeFencedFence"),N(M)?R(w,v,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):v(M)}function v(M){return M===a?(w.enter("codeFencedFenceSequence"),j(M)):$(M)}function j(M){return M===a?(B++,w.consume(M),j):B>=l?(w.exit("codeFencedFenceSequence"),N(M)?R(w,V,"whitespace")(M):V(M)):$(M)}function V(M){return M===null||P(M)?(w.exit("codeFencedFence"),_(M)):$(M)}}}function Ca(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 Et={name:"codeIndented",tokenize:Aa},Ea={partial:!0,tokenize:Ia};function Aa(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),R(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):P(s)?e.attempt(Ea,l,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||P(s)?(e.exit("codeFlowValue"),l(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),n(s)}}function Ia(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):P(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):R(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):P(l)?i(l):t(l)}}const Ta={name:"codeText",previous:Pa,resolve:va,tokenize:Da};function va(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 Pa(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Da(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)):P(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||P(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 za{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&&je(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),je(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),je(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);je(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);je(this.left,t.reverse())}}}function je(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 Xr(e){const n={};let t=-1,r,i,o,l,a,u,s;const f=new za(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,La(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 La(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,k=0;const C=[k];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&&(k=p+1,C.push(k),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),p=C.length;p--;){const y=a.slice(C[p],C[p+1]),I=o.pop();u.push([I,I+y.length-1]),e.splice(I,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 Fa={resolve:Oa,tokenize:Ra},Na={partial:!0,tokenize:_a};function Oa(e){return Xr(e),e}function Ra(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):P(a)?e.check(Na,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 _a(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),R(e,o,"linePrefix")}function o(l){if(l===null||P(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 Qr(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||ut(y)?t(y):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),k(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||P(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 k(y){return!f&&(y===null||y===41||q(y))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(y)):f<s&&y===40?(e.consume(y),f++,k):y===41?(e.consume(y),f--,k):y===null||y===32||y===40||ut(y)?t(y):(e.consume(y),y===92?C:k)}function C(y){return y===40||y===41||y===92?(e.consume(y),k):k(y)}}function Gr(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):P(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||P(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),u||(u=!N(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function Kr(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):P(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),R(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||P(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 Ue(e,n){let t;return r;function r(i){return P(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):N(i)?R(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Ma={name:"definition",tokenize:ja},Ba={partial:!0,tokenize:Ha};function ja(e,n,t){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return Gr.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 q(h)?Ue(e,s)(h):s(h)}function s(h){return Qr(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(Ba,c,c)(h)}function c(h){return N(h)?R(e,p,"whitespace")(h):p(h)}function p(h){return h===null||P(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function Ha(e,n,t){return r;function r(a){return q(a)?Ue(e,i)(a):t(a)}function i(a){return Kr(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return N(a)?R(e,l,"whitespace")(a):l(a)}function l(a){return a===null||P(a)?n(a):t(a)}}const qa={name:"hardBreakEscape",tokenize:Ua};function Ua(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return P(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const $a={name:"headingAtx",resolve:Va,tokenize:Wa};function Va(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 Wa(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||q(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),u(f)):f===null||P(f)?(e.exit("atxHeading"),n(f)):N(f)?R(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||q(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),s)}}const Ya=["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"],Un=["pre","script","style","textarea"],Xa={concrete:!0,name:"htmlFlow",resolveTo:Ka,tokenize:Ja},Qa={partial:!0,tokenize:eu},Ga={partial:!0,tokenize:Za};function Ka(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 Ja(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,k):g===63?(e.consume(g),i=3,r.interrupt?n:m):Z(g)?(e.consume(g),l=String.fromCharCode(g),C):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:v:d):t(g)}function k(g){return Z(g)?(e.consume(g),l=String.fromCharCode(g),C):t(g)}function C(g){if(g===null||g===47||g===62||q(g)){const ue=g===47,we=l.toLowerCase();return!ue&&!o&&Un.includes(we)?(i=1,r.interrupt?n(g):v(g)):Ya.includes(l.toLowerCase())?(i=6,ue?(e.consume(g),y):r.interrupt?n(g):v(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(g):o?I(g):E(g))}return g===45||K(g)?(e.consume(g),l+=String.fromCharCode(g),C):t(g)}function y(g){return g===62?(e.consume(g),r.interrupt?n:v):t(g)}function I(g){return N(g)?(e.consume(g),I):x(g)}function E(g){return g===47?(e.consume(g),x):g===58||g===95||Z(g)?(e.consume(g),L):N(g)?(e.consume(g),E):x(g)}function L(g){return g===45||g===46||g===58||g===95||K(g)?(e.consume(g),L):F(g)}function F(g){return g===61?(e.consume(g),w):N(g)?(e.consume(g),F):E(g)}function w(g){return g===null||g===60||g===61||g===62||g===96?t(g):g===34||g===39?(e.consume(g),u=g,_):N(g)?(e.consume(g),w):$(g)}function _(g){return g===u?(e.consume(g),u=null,B):g===null||P(g)?t(g):(e.consume(g),_)}function $(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||q(g)?F(g):(e.consume(g),$)}function B(g){return g===47||g===62||N(g)?E(g):t(g)}function x(g){return g===62?(e.consume(g),T):t(g)}function T(g){return g===null||P(g)?v(g):N(g)?(e.consume(g),T):t(g)}function v(g){return g===45&&i===2?(e.consume(g),G):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):P(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Qa,me,j)(g)):g===null||P(g)?(e.exit("htmlFlowData"),j(g)):(e.consume(g),v)}function j(g){return e.check(Ga,V,me)(g)}function V(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),M}function M(g){return g===null||P(g)?j(g):(e.enter("htmlFlowData"),v(g))}function G(g){return g===45?(e.consume(g),m):v(g)}function X(g){return g===47?(e.consume(g),l="",oe):v(g)}function oe(g){if(g===62){const ue=l.toLowerCase();return Un.includes(ue)?(e.consume(g),ae):v(g)}return Z(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),oe):v(g)}function pe(g){return g===93?(e.consume(g),m):v(g)}function m(g){return g===62?(e.consume(g),ae):g===45&&i===2?(e.consume(g),m):v(g)}function ae(g){return g===null||P(g)?(e.exit("htmlFlowData"),me(g)):(e.consume(g),ae)}function me(g){return e.exit("htmlFlow"),n(g)}}function Za(e,n,t){const r=this;return i;function i(l){return P(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 eu(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Qe,n,t)}}const tu={name:"htmlText",tokenize:nu};function nu(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),F):m===63?(e.consume(m),E):Z(m)?(e.consume(m),$):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),I):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):P(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?G(m):m===45?p(m):c(m)}function d(m){const ae="CDATA[";return m===ae.charCodeAt(o++)?(e.consume(m),o===ae.length?k:d):t(m)}function k(m){return m===null?t(m):m===93?(e.consume(m),C):P(m)?(l=k,X(m)):(e.consume(m),k)}function C(m){return m===93?(e.consume(m),y):k(m)}function y(m){return m===62?G(m):m===93?(e.consume(m),y):k(m)}function I(m){return m===null||m===62?G(m):P(m)?(l=I,X(m)):(e.consume(m),I)}function E(m){return m===null?t(m):m===63?(e.consume(m),L):P(m)?(l=E,X(m)):(e.consume(m),E)}function L(m){return m===62?G(m):E(m)}function F(m){return Z(m)?(e.consume(m),w):t(m)}function w(m){return m===45||K(m)?(e.consume(m),w):_(m)}function _(m){return P(m)?(l=_,X(m)):N(m)?(e.consume(m),_):G(m)}function $(m){return m===45||K(m)?(e.consume(m),$):m===47||m===62||q(m)?B(m):t(m)}function B(m){return m===47?(e.consume(m),G):m===58||m===95||Z(m)?(e.consume(m),x):P(m)?(l=B,X(m)):N(m)?(e.consume(m),B):G(m)}function x(m){return m===45||m===46||m===58||m===95||K(m)?(e.consume(m),x):T(m)}function T(m){return m===61?(e.consume(m),v):P(m)?(l=T,X(m)):N(m)?(e.consume(m),T):B(m)}function v(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,j):P(m)?(l=v,X(m)):N(m)?(e.consume(m),v):(e.consume(m),V)}function j(m){return m===i?(e.consume(m),i=void 0,M):m===null?t(m):P(m)?(l=j,X(m)):(e.consume(m),j)}function V(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||q(m)?B(m):(e.consume(m),V)}function M(m){return m===47||m===62||q(m)?B(m):t(m)}function G(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 N(m)?R(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 on={name:"labelEnd",resolveAll:ou,resolveTo:au,tokenize:uu},ru={tokenize:su},iu={tokenize:cu},lu={tokenize:fu};function ou(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 au(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,gt(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 uu(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(ru,f,l?f:c)(p):p===91?e.attempt(iu,f,l?s:c)(p):l?f(p):c(p)}function s(p){return e.attempt(lu,f,c)(p)}function f(p){return n(p)}function c(p){return o._balanced=!0,t(p)}}function su(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 q(c)?Ue(e,o)(c):o(c)}function o(c){return c===41?f(c):Qr(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return q(c)?Ue(e,u)(c):f(c)}function a(c){return t(c)}function u(c){return c===34||c===39||c===40?Kr(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function s(c){return q(c)?Ue(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 cu(e,n,t){const r=this;return i;function i(a){return Gr.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 fu(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 hu={name:"labelStartImage",resolveAll:on.resolveAll,tokenize:pu};function pu(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 mu={name:"labelStartLink",resolveAll:on.resolveAll,tokenize:gu};function gu(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 At={name:"lineEnding",tokenize:du};function du(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),R(e,n,"linePrefix")}}const it={name:"thematicBreak",tokenize:yu};function yu(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||P(s))?(e.exit("thematicBreak"),n(s)):t(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),N(s)?R(e,a,"whitespace")(s):a(s))}}const ee={continuation:{tokenize:wu},exit:Cu,name:"list",tokenize:bu},xu={partial:!0,tokenize:Eu},ku={partial:!0,tokenize:Su};function bu(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:Ut(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(it,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 Ut(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(Qe,r.interrupt?t:f,e.attempt(xu,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return N(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 wu(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Qe,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,R(e,n,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!N(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(ku,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,R(e,e.attempt(ee,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Su(e,n,t){const r=this;return R(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 Cu(e){e.exit(this.containerState.type)}function Eu(e,n,t){const r=this;return R(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!N(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const $n={name:"setextUnderline",resolveTo:Au,tokenize:Iu};function Au(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 Iu(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"),N(s)?R(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||P(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const Tu={tokenize:vu};function vu(e){const n=this,t=e.attempt(Qe,r,e.attempt(this.parser.constructs.flowInitial,i,R(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Fa,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 Pu={resolveAll:Zr()},Du=Jr("string"),zu=Jr("text");function Jr(e){return{resolveAll:Zr(e==="text"?Lu: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 Zr(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 Lu(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 Fu={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:Vr},Nu={91:Ma},Ou={[-2]:Et,[-1]:Et,32:Et},Ru={35:$a,42:it,45:[$n,it],60:Xa,61:$n,95:it,96:qn,126:qn},_u={38:Yr,92:Wr},Mu={[-5]:At,[-4]:At,[-3]:At,33:hu,38:Yr,42:$t,60:[ma,tu],91:mu,92:[qa,Wr],93:on,95:$t,96:Ta},Bu={null:[$t,Pu]},ju={null:[42,95]},Hu={null:[]},qu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ju,contentInitial:Nu,disable:Hu,document:Fu,flow:Ru,flowInitial:Ou,insideSpan:Bu,string:_u,text:Mu},Symbol.toStringTag,{value:"Module"}));function Uu(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:_(F),check:_(w),consume:I,enter:E,exit:L,interrupt:_(w,{interrupt:!0})},s={code:null,containerState:{},defineSkip:k,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(T){return l=le(l,T),C(),l[l.length-1]!==null?[]:($(n,0),s.events=gt(o,s.events,s),s.events)}function p(T,v){return Vu(h(T),v)}function h(T){return $u(l,T)}function d(){const{_bufferIndex:T,_index:v,line:j,column:V,offset:M}=r;return{_bufferIndex:T,_index:v,line:j,column:V,offset:M}}function k(T){i[T.line]=T.column,x()}function C(){let T;for(;r._index<l.length;){const v=l[r._index];if(typeof v=="string")for(T=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===T&&r._bufferIndex<v.length;)y(v.charCodeAt(r._bufferIndex));else y(v)}}function y(T){f=f(T)}function I(T){P(T)?(r.line++,r.column=1,r.offset+=T===-3?2:1,x()):T!==-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=T}function E(T,v){const j=v||{};return j.type=T,j.start=d(),s.events.push(["enter",j,s]),a.push(j),j}function L(T){const v=a.pop();return v.end=d(),s.events.push(["exit",v,s]),v}function F(T,v){$(T,v.from)}function w(T,v){v.restore()}function _(T,v){return j;function j(V,M,G){let X,oe,pe,m;return Array.isArray(V)?me(V):"tokenize"in V?me([V]):ae(V);function ae(Q){return _e;function _e(xe){const Te=xe!==null&&Q[xe],ve=xe!==null&&Q.null,Ke=[...Array.isArray(Te)?Te:Te?[Te]:[],...Array.isArray(ve)?ve:ve?[ve]:[]];return me(Ke)(xe)}}function me(Q){return X=Q,oe=0,Q.length===0?G:g(Q[oe])}function g(Q){return _e;function _e(xe){return m=B(),pe=Q,Q.partial||(s.currentConstruct=Q),Q.name&&s.parser.constructs.disable.null.includes(Q.name)?we():Q.tokenize.call(v?Object.assign(Object.create(s),v):s,u,ue,we)(xe)}}function ue(Q){return T(pe,m),M}function we(Q){return m.restore(),++oe<X.length?g(X[oe]):G}}}function $(T,v){T.resolveAll&&!o.includes(T)&&o.push(T),T.resolve&&ie(s.events,v,s.events.length-v,T.resolve(s.events.slice(v),s)),T.resolveTo&&(s.events=T.resolveTo(s.events,s))}function B(){const T=d(),v=s.previous,j=s.currentConstruct,V=s.events.length,M=Array.from(a);return{from:V,restore:G};function G(){r=T,s.previous=v,s.currentConstruct=j,s.events.length=V,a=M,x()}}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function $u(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 Vu(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=`
11
+ `;break}case-3:{l=`\r
12
+ `;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 Wu(e){const r={constructs:Ur([qu,...(e||{}).extensions||[]]),content:i(aa),defined:[],document:i(sa),flow:i(Tu),lazy:{},string:i(Du),text:i(zu)};return r;function i(o){return l;function l(a){return Uu(r,o,a)}}}function Yu(e){for(;!Xr(e););return e}const Vn=/[\0\t\n\r]/g;function Xu(){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(Vn.lastIndex=c,s=Vn.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 Qu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Gu(e){return e.replace(Qu,Ku)}function Ku(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return $r(t.slice(o?2:1),o?16:10)}return ln(t)||e}const ei={}.hasOwnProperty;function Ju(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Zu(t)(Yu(Wu(t).document().write(Xu()(e,n,!0))))}function Zu(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(kn),autolinkProtocol:B,autolinkEmail:B,atxHeading:o(dn),blockQuote:o(ve),characterEscape:B,characterReference:B,codeFenced:o(Ke),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(Ke,l),codeText:o(Ni,l),codeTextData:B,data:B,codeFlowValue:B,definition:o(Oi),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Ri),hardBreakEscape:o(yn),hardBreakTrailing:o(yn),htmlFlow:o(xn,l),htmlFlowData:B,htmlText:o(xn,l),htmlTextData:B,image:o(_i),label:l,link:o(kn),listItem:o(Mi),listItemValue:p,listOrdered:o(bn,c),listUnordered:o(bn),paragraph:o(Bi),reference:g,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(dn),strong:o(ji),thematicBreak:o(qi)},exit:{atxHeading:u(),atxHeadingSequence:F,autolink:u(),autolinkEmail:Te,autolinkProtocol:xe,blockQuote:u(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:we,characterReferenceMarkerNumeric:we,characterReferenceValue:Q,characterReference:_e,codeFenced:u(C),codeFencedFence:k,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:x,codeIndented:u(y),codeText:u(M),codeTextData:x,data:x,definition:u(),definitionDestinationString:L,definitionLabelString:I,definitionTitleString:E,emphasis:u(),hardBreakEscape:u(v),hardBreakTrailing:u(v),htmlFlow:u(j),htmlFlowData:x,htmlText:u(V),htmlTextData:x,image:u(X),label:pe,labelText:oe,lineEnding:T,link:u(G),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ue,resourceDestinationString:m,resourceTitleString:ae,resource:me,setextHeading:u($),setextHeadingLineSequence:_,setextHeadingText:w,strong:u(),thematicBreak:u()}};ti(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(b){let A={type:"root",children:[]};const D={stack:[A],tokenStack:[],config:n,enter:a,exit:s,buffer:l,resume:f,data:t},O=[];let H=-1;for(;++H<b.length;)if(b[H][1].type==="listOrdered"||b[H][1].type==="listUnordered")if(b[H][0]==="enter")O.push(H);else{const se=O.pop();H=i(b,se,H)}for(H=-1;++H<b.length;){const se=n[b[H][0]];ei.call(se,b[H][1].type)&&se[b[H][1].type].call(Object.assign({sliceSerialize:b[H][2].sliceSerialize},D),b[H][1])}if(D.tokenStack.length>0){const se=D.tokenStack[D.tokenStack.length-1];(se[1]||Wn).call(D,void 0,se[0])}for(A.position={start:ke(b.length>0?b[0][1].start:{line:1,column:1,offset:0}),end:ke(b.length>0?b[b.length-2][1].end:{line:1,column:1,offset:0})},H=-1;++H<n.transforms.length;)A=n.transforms[H](A)||A;return A}function i(b,A,D){let O=A-1,H=-1,se=!1,Se,ge,Me,Be;for(;++O<=D;){const ne=b[O];switch(ne[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ne[0]==="enter"?H++:H--,Be=void 0;break}case"lineEndingBlank":{ne[0]==="enter"&&(Se&&!Be&&!H&&!Me&&(Me=O),Be=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Be=void 0}if(!H&&ne[0]==="enter"&&ne[1].type==="listItemPrefix"||H===-1&&ne[0]==="exit"&&(ne[1].type==="listUnordered"||ne[1].type==="listOrdered")){if(Se){let Pe=O;for(ge=void 0;Pe--;){const de=b[Pe];if(de[1].type==="lineEnding"||de[1].type==="lineEndingBlank"){if(de[0]==="exit")continue;ge&&(b[ge][1].type="lineEndingBlank",se=!0),de[1].type="lineEnding",ge=Pe}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?b[ge][1].start:ne[1].end),b.splice(ge||O,0,["exit",Se,ne[2]]),O++,D++}if(ne[1].type==="listItemPrefix"){const Pe={type:"listItem",_spread:!1,start:Object.assign({},ne[1].start),end:void 0};Se=Pe,b.splice(O,0,["enter",Pe,ne[2]]),O++,D++,Me=void 0,Be=!0}}}return b[A][1]._spread=se,D}function o(b,A){return D;function D(O){a.call(this,b(O),O),A&&A.call(this,O)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(b,A,D){this.stack[this.stack.length-1].children.push(b),this.stack.push(b),this.tokenStack.push([A,D||void 0]),b.position={start:ke(A.start),end:void 0}}function u(b){return A;function A(D){b&&b.call(this,D),s.call(this,D)}}function s(b,A){const D=this.stack.pop(),O=this.tokenStack.pop();if(O)O[0].type!==b.type&&(A?A.call(this,b,O[0]):(O[1]||Wn).call(this,b,O[0]));else throw new Error("Cannot close `"+b.type+"` ("+qe({start:b.start,end:b.end})+"): it’s not open");D.position.end=ke(b.end)}function f(){return rn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(b){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(b),10),this.data.expectingFirstListItemValue=void 0}}function h(){const b=this.resume(),A=this.stack[this.stack.length-1];A.lang=b}function d(){const b=this.resume(),A=this.stack[this.stack.length-1];A.meta=b}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b.replace(/(\r?\n|\r)$/g,"")}function I(b){const A=this.resume(),D=this.stack[this.stack.length-1];D.label=A,D.identifier=ce(this.sliceSerialize(b)).toLowerCase()}function E(){const b=this.resume(),A=this.stack[this.stack.length-1];A.title=b}function L(){const b=this.resume(),A=this.stack[this.stack.length-1];A.url=b}function F(b){const A=this.stack[this.stack.length-1];if(!A.depth){const D=this.sliceSerialize(b).length;A.depth=D}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function _(b){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(b).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function B(b){const D=this.stack[this.stack.length-1].children;let O=D[D.length-1];(!O||O.type!=="text")&&(O=Hi(),O.position={start:ke(b.start),end:void 0},D.push(O)),this.stack.push(O)}function x(b){const A=this.stack.pop();A.value+=this.sliceSerialize(b),A.position.end=ke(b.end)}function T(b){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const D=A.children[A.children.length-1];D.position.end=ke(b.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(A.type)&&(B.call(this,b),x.call(this,b))}function v(){this.data.atHardBreak=!0}function j(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b}function V(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b}function M(){const b=this.resume(),A=this.stack[this.stack.length-1];A.value=b}function G(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=A,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function X(){const b=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";b.type+="Reference",b.referenceType=A,delete b.url,delete b.title}else delete b.identifier,delete b.label;this.data.referenceType=void 0}function oe(b){const A=this.sliceSerialize(b),D=this.stack[this.stack.length-2];D.label=Gu(A),D.identifier=ce(A).toLowerCase()}function pe(){const b=this.stack[this.stack.length-1],A=this.resume(),D=this.stack[this.stack.length-1];if(this.data.inReference=!0,D.type==="link"){const O=b.children;D.children=O}else D.alt=A}function m(){const b=this.resume(),A=this.stack[this.stack.length-1];A.url=b}function ae(){const b=this.resume(),A=this.stack[this.stack.length-1];A.title=b}function me(){this.data.inReference=void 0}function g(){this.data.referenceType="collapsed"}function ue(b){const A=this.resume(),D=this.stack[this.stack.length-1];D.label=A,D.identifier=ce(this.sliceSerialize(b)).toLowerCase(),this.data.referenceType="full"}function we(b){this.data.characterReferenceType=b.type}function Q(b){const A=this.sliceSerialize(b),D=this.data.characterReferenceType;let O;D?(O=$r(A,D==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):O=ln(A);const H=this.stack[this.stack.length-1];H.value+=O}function _e(b){const A=this.stack.pop();A.position.end=ke(b.end)}function xe(b){x.call(this,b);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(b)}function Te(b){x.call(this,b);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(b)}function ve(){return{type:"blockquote",children:[]}}function Ke(){return{type:"code",lang:null,meta:null,value:""}}function Ni(){return{type:"inlineCode",value:""}}function Oi(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ri(){return{type:"emphasis",children:[]}}function dn(){return{type:"heading",depth:0,children:[]}}function yn(){return{type:"break"}}function xn(){return{type:"html",value:""}}function _i(){return{type:"image",title:null,url:"",alt:null}}function kn(){return{type:"link",title:null,url:"",children:[]}}function bn(b){return{type:"list",ordered:b.type==="listOrdered",start:null,spread:b._spread,children:[]}}function Mi(b){return{type:"listItem",spread:b._spread,checked:null,children:[]}}function Bi(){return{type:"paragraph",children:[]}}function ji(){return{type:"strong",children:[]}}function Hi(){return{type:"text",value:""}}function qi(){return{type:"thematicBreak"}}}function ke(e){return{line:e.line,column:e.column,offset:e.offset}}function ti(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?ti(e,r):es(e,r)}}function es(e,n){let t;for(t in n)if(ei.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 Wn(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+qe({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+qe({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+qe({start:n.start,end:n.end})+") is still open")}function ts(e){const n=this;n.parser=t;function t(r){return Ju(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function ns(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 rs(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
13
+ `}]}function is(e,n){const t=n.value?n.value+`
14
+ `:"",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 ls(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function os(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function as(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=Re(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 us(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 ss(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function ni(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 cs(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return ni(e,n);const i={src:Re(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 fs(e,n){const t={src:Re(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 hs(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 ps(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return ni(e,n);const i={href:Re(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 ms(e,n){const t={href:Re(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 gs(e,n,t){const r=e.all(n),i=t?ds(t):ri(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:`
15
+ `}),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:`
16
+ `});const s={type:"element",tagName:"li",properties:o,children:l};return e.patch(n,s),e.applyData(n,s)}function ds(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=ri(t[r])}return n}function ri(e){const n=e.spread;return n??e.children.length>1}function ys(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 xs(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ks(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function bs(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ws(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=Zt(n.children[1]),u=Rr(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 Ss(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 Cs(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const Yn=9,Xn=32;function Es(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const o=[];for(;r;)o.push(Qn(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return o.push(Qn(n.slice(i),i>0,!1)),o.join("")}function Qn(e,n,t){let r=0,i=e.length;if(n){let o=e.codePointAt(r);for(;o===Yn||o===Xn;)r++,o=e.codePointAt(r)}if(t){let o=e.codePointAt(i-1);for(;o===Yn||o===Xn;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function As(e,n){const t={type:"text",value:Es(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Is(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Ts={blockquote:ns,break:rs,code:is,delete:ls,emphasis:os,footnoteReference:as,heading:us,html:ss,imageReference:cs,image:fs,inlineCode:hs,linkReference:ps,link:ms,listItem:gs,list:ys,paragraph:xs,root:ks,strong:bs,table:ws,tableCell:Cs,tableRow:Ss,text:As,thematicBreak:Is,toml:et,yaml:et,definition:et,footnoteDefinition:et};function et(){}const ii=-1,dt=0,$e=1,st=2,an=3,un=4,sn=5,cn=6,li=7,oi=8,Gn=typeof self=="object"?self:globalThis,vs=(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 dt:case ii:return t(l,i);case $e:{const a=t([],i);for(const u of l)a.push(r(u));return a}case st:{const a=t({},i);for(const[u,s]of l)a[r(u)]=r(s);return a}case an:return t(new Date(l),i);case un:{const{source:a,flags:u}=l;return t(new RegExp(a,u),i)}case sn:{const a=t(new Map,i);for(const[u,s]of l)a.set(r(u),r(s));return a}case cn:{const a=t(new Set,i);for(const u of l)a.add(r(u));return a}case li:{const{name:a,message:u}=l;return t(new Gn[a](u),i)}case oi: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(new Gn[o](l),i)};return r},Kn=e=>vs(new Map,e)(0),De="",{toString:Ps}={},{keys:Ds}=Object,He=e=>{const n=typeof e;if(n!=="object"||!e)return[dt,n];const t=Ps.call(e).slice(8,-1);switch(t){case"Array":return[$e,De];case"Object":return[st,De];case"Date":return[an,De];case"RegExp":return[un,De];case"Map":return[sn,De];case"Set":return[cn,De];case"DataView":return[$e,t]}return t.includes("Array")?[$e,t]:t.includes("Error")?[li,t]:[st,t]},tt=([e,n])=>e===dt&&(n==="function"||n==="symbol"),zs=(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]=He(l);switch(a){case dt:{let f=l;switch(u){case"bigint":a=oi,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);f=null;break;case"undefined":return i([ii],l)}return i([a,f],l)}case $e:{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 st:{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 Ds(l))(e||!tt(He(l[p])))&&f.push([o(p),o(l[p])]);return c}case an:return i([a,l.toISOString()],l);case un:{const{source:f,flags:c}=l;return i([a,{source:f,flags:c}],l)}case sn:{const f=[],c=i([a,f],l);for(const[p,h]of l)(e||!(tt(He(p))||tt(He(h))))&&f.push([o(p),o(h)]);return c}case cn:{const f=[],c=i([a,f],l);for(const p of l)(e||!tt(He(p)))&&f.push(o(p));return c}}const{message:s}=l;return i([a,{name:u,message:s}],l)};return o},Jn=(e,{json:n,lossy:t}={})=>{const r=[];return zs(!(n||t),!!n,new Map,r)(e),r},ct=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Kn(Jn(e,n)):structuredClone(e):(e,n)=>Kn(Jn(e,n));function Ls(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 Fs(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function Ns(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Ls,r=e.options.footnoteBackLabel||Fs,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=Re(c.toLowerCase());let h=0;const d=[],k=e.footnoteCounts.get(c);for(;k!==void 0&&++h<=k;){d.length>0&&d.push({type:"text",value:" "});let I=typeof t=="string"?t:t(u,h);typeof I=="string"&&(I={type:"text",value:I}),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(I)?I:[I]})}const C=f[f.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const I=C.children[C.children.length-1];I&&I.type==="text"?I.value+=" ":C.children.push({type:"text",value:" "}),C.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:{...ct(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
17
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
18
+ `}]}}const yt=function(e){if(e==null)return Ms;if(typeof e=="function")return xt(e);if(typeof e=="object")return Array.isArray(e)?Os(e):Rs(e);if(typeof e=="string")return _s(e);throw new Error("Expected function, string, or object as test")};function Os(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=yt(e[t]);return xt(r);function r(...i){let o=-1;for(;++o<n.length;)if(n[o].apply(this,i))return!0;return!1}}function Rs(e){const n=e;return xt(t);function t(r){const i=r;let o;for(o in e)if(i[o]!==n[o])return!1;return!0}}function _s(e){return xt(n);function n(t){return t&&t.type===e}}function xt(e){return n;function n(t,r,i){return!!(Bs(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Ms(){return!0}function Bs(e){return e!==null&&typeof e=="object"&&"type"in e}const ai=[],js=!0,Vt=!1,Hs="skip";function ui(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const o=yt(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=ai,d,k,C;if((!n||o(u,s,f[f.length-1]||void 0))&&(h=qs(t(u,f)),h[0]===Vt))return h;if("children"in u&&u.children){const y=u;if(y.children&&h[0]!==Hs)for(k=(r?y.children.length:-1)+l,C=f.concat(y);k>-1&&k<y.children.length;){const I=y.children[k];if(d=a(I,k,C)(),d[0]===Vt)return d;k=typeof d[1]=="number"?d[1]:k+l}}return h}}}function qs(e){return Array.isArray(e)?e:typeof e=="number"?[js,e]:e==null?ai:[e]}function fn(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),ui(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 Wt={}.hasOwnProperty,Us={};function $s(e,n){const t=n||Us,r=new Map,i=new Map,o=new Map,l={...Ts,...t.handlers},a={all:s,applyData:Ws,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:u,options:t,patch:Vs,wrap:Xs};return fn(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(Wt.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:k,...C}=f,y=ct(C);return y.children=a.all(f),y}return ct(f)}return(a.options.unknownHandler||Ys)(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=Zn(d.value)),!Array.isArray(d)&&d.type==="element")){const k=d.children[0];k&&k.type==="text"&&(k.value=Zn(k.value))}Array.isArray(d)?c.push(...d):c.push(d)}}}return c}}function Vs(e,n){e.position&&(n.position=Fo(e))}function Ws(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,ct(o)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function Ys(e,n){const t=n.data||{},r="value"in n&&!(Wt.call(t,"hProperties")||Wt.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 Xs(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
19
+ `});++r<e.length;)r&&t.push({type:"text",value:`
20
+ `}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
21
+ `}),t}function Zn(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function er(e,n){const t=$s(e,n),r=t.one(e,void 0),i=Ns(t),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
22
+ `},i),o}function Qs(e,n){return e&&"run"in e?async function(t,r){const i=er(t,{file:r,...n});await e.run(i,r)}:function(t,r){return er(t,{file:r,...e||n})}}function tr(e){if(e)throw e}var lt=Object.prototype.hasOwnProperty,si=Object.prototype.toString,nr=Object.defineProperty,rr=Object.getOwnPropertyDescriptor,ir=function(n){return typeof Array.isArray=="function"?Array.isArray(n):si.call(n)==="[object Array]"},lr=function(n){if(!n||si.call(n)!=="[object Object]")return!1;var t=lt.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&lt.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||lt.call(n,i)},or=function(n,t){nr&&t.name==="__proto__"?nr(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},ar=function(n,t){if(t==="__proto__")if(lt.call(n,t)){if(rr)return rr(n,t).value}else return;return n[t]},Gs=function e(){var n,t,r,i,o,l,a=arguments[0],u=1,s=arguments.length,f=!1;for(typeof a=="boolean"&&(f=a,a=arguments[1]||{},u=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});u<s;++u)if(n=arguments[u],n!=null)for(t in n)r=ar(a,t),i=ar(n,t),a!==i&&(f&&i&&(lr(i)||(o=ir(i)))?(o?(o=!1,l=r&&ir(r)?r:[]):l=r&&lr(r)?r:{},or(a,{name:t,newValue:e(f,l,i)})):typeof i<"u"&&or(a,{name:t,newValue:i}));return a};const It=kr(Gs);function Yt(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 Ks(){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?Js(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 Js(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:Zs,dirname:ec,extname:tc,join:nc,sep:"/"};function Zs(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Ge(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 ec(e){if(Ge(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 tc(e){Ge(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 nc(...e){let n=-1,t;for(;++n<e.length;)Ge(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":rc(t)}function rc(e){Ge(e);const n=e.codePointAt(0)===47;let t=ic(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function ic(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 Ge(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const lc={cwd:oc};function oc(){return"/"}function Xt(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function ac(e){if(typeof e=="string")e=new URL(e);else if(!Xt(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 uc(e)}function uc(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 Tt=["history","path","basename","stem","extname","dirname"];class ci{constructor(n){let t;n?Xt(n)?t={path:n}:typeof n=="string"||sc(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":lc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Tt.length;){const o=Tt[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)Tt.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?fe.basename(this.path):void 0}set basename(n){Pt(n,"basename"),vt(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){ur(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(vt(n,"extname"),ur(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){Xt(n)&&(n=ac(n)),Pt(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){Pt(n,"stem"),vt(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 vt(e,n){if(e&&e.includes(fe.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+fe.sep+"`")}function Pt(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function ur(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function sc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const cc=function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o},fc={}.hasOwnProperty;class hn extends cc{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=Ks()}copy(){const n=new hn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(It(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(Lt("data",this.frozen),this.namespace[n]=t,this):fc.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Lt("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;const n=this;for(;++this.freezeIndex<this.attachers.length;){const[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();const t=nt(n),r=this.parser||this.Parser;return Dt("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),Dt("process",this.parser||this.Parser),zt("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);mc(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(),Dt("processSync",this.parser||this.Parser),zt("processSync",this.compiler||this.Compiler),this.process(n,i),cr("processSync","process",t),r;function i(o,l){t=!0,tr(o),r=l}}run(n,t,r){sr(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),cr("runSync","run",r),i;function o(l,a){tr(l),i=a,r=!0}}stringify(n,t){this.freeze();const r=nt(t),i=this.compiler||this.Compiler;return zt("stringify",i),sr(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(Lt("use",this.frozen),n!=null)if(typeof n=="function")u(n,t);else if(typeof n=="object")Array.isArray(n)?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=It(!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 k=r[p][1];Yt(k)&&Yt(h)&&(h=It(!0,k,h)),r[p]=[s,h,...d]}}}}const hc=new hn().freeze();function Dt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function zt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Lt(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function sr(e){if(!Yt(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function cr(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function nt(e){return pc(e)?e:new ci(e)}function pc(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function mc(e){return typeof e=="string"||gc(e)}function gc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const dc="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",fr=[],hr={allowDangerousHtml:!0},yc=/^(https?|ircs?|mailto|xmpp)$/i,xc=[{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 Nh(e){const n=kc(e),t=bc(e);return wc(n.runSync(n.parse(t),t),e)}function kc(e){const n=e.rehypePlugins||fr,t=e.remarkPlugins||fr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...hr}:hr;return hc().use(ts).use(t).use(Qs,r).use(n)}function bc(e){const n=e.children||"",t=new ci;return typeof n=="string"&&(t.value=n),t}function wc(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,o=n.disallowedElements,l=n.skipHtml,a=n.unwrapDisallowed,u=n.urlTransform||Sc;for(const f of xc)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+dc+f.id,void 0);return n.className&&(e={type:"element",tagName:"div",properties:{className:n.className},children:e.type==="root"?e.children:[e]}),fn(e,s),Mo(e,{Fragment:kt.Fragment,components:i,ignoreInvalidStyle:!0,jsx:kt.jsx,jsxs:kt.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 Ct)if(Object.hasOwn(Ct,h)&&Object.hasOwn(f.properties,h)){const d=f.properties[h],k=Ct[h];(k===null||k.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 Sc(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||yc.test(e.slice(0,n))?e:""}function Cc(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Ec(e,n,t){const i=yt((t||{}).ignore||[]),o=Ac(n);let l=-1;for(;++l<o.length;)ui(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 C=c.children.indexOf(s);let y=!1,I=[];p.lastIndex=0;let E=p.exec(s.value);for(;E;){const L=E.index,F={index:E.index,input:E.input,stack:[...f,s]};let w=h(...E,F);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=L+1:(d!==L&&I.push({type:"text",value:s.value.slice(d,L)}),Array.isArray(w)?I.push(...w):w&&I.push(w),d=L+E[0].length,y=!0),!p.global)break;E=p.exec(s.value)}return y?(d<s.value.length&&I.push({type:"text",value:s.value.slice(d)}),c.children.splice(C,1,...I)):I=[s],C+I.length}}function Ac(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([Ic(i[0]),Tc(i[1])])}return n}function Ic(e){return typeof e=="string"?new RegExp(Cc(e),"g"):e}function Tc(e){return typeof e=="function"?e:function(){return e}}const Ft="phrasing",Nt=["autolink","link","image","label"];function vc(){return{transforms:[Oc],enter:{literalAutolink:Dc,literalAutolinkEmail:Ot,literalAutolinkHttp:Ot,literalAutolinkWww:Ot},exit:{literalAutolink:Nc,literalAutolinkEmail:Fc,literalAutolinkHttp:zc,literalAutolinkWww:Lc}}}function Pc(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Ft,notInConstruct:Nt},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Ft,notInConstruct:Nt},{character:":",before:"[ps]",after:"\\/",inConstruct:Ft,notInConstruct:Nt}]}}function Dc(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Ot(e){this.config.enter.autolinkProtocol.call(this,e)}function zc(e){this.config.exit.autolinkProtocol.call(this,e)}function Lc(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 Fc(e){this.config.exit.autolinkEmail.call(this,e)}function Nc(e){this.exit(e)}function Oc(e){Ec(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Rc],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),_c]],{ignore:["link","linkReference"]})}function Rc(e,n,t,r,i){let o="";if(!fi(i)||(/^w/i.test(n)&&(t=n+t,n="",o="http://"),!Mc(t)))return!1;const l=Bc(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 _c(e,n,t,r){return!fi(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function Mc(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 Bc(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=at(e,"(");let o=at(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 fi(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||Ae(t)||mt(t))&&(!n||t!==47)}hi.peek=Xc;function jc(){this.buffer()}function Hc(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function qc(){this.buffer()}function Uc(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function $c(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 Vc(e){this.exit(e)}function Wc(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 Yc(e){this.exit(e)}function Xc(){return"["}function hi(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 Qc(){return{enter:{gfmFootnoteCallString:jc,gfmFootnoteCall:Hc,gfmFootnoteDefinitionLabelString:qc,gfmFootnoteDefinition:Uc},exit:{gfmFootnoteCallString:$c,gfmFootnoteCall:Vc,gfmFootnoteDefinitionLabelString:Wc,gfmFootnoteDefinition:Yc}}}function Gc(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:hi},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?`
23
+ `:" ")+o.indentLines(o.containerFlow(r,a.current()),n?pi:Kc))),s(),u}}function Kc(e,n,t){return n===0?e:pi(e,n,t)}function pi(e,n,t){return(t?"":" ")+e}const Jc=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];mi.peek=rf;function Zc(){return{canContainEols:["delete"],enter:{strikethrough:tf},exit:{strikethrough:nf}}}function ef(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Jc}],handlers:{delete:mi}}}function tf(e){this.enter({type:"delete",children:[]},e)}function nf(e){this.exit(e)}function mi(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 rf(){return"~"}function lf(e){return e.length}function of(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||lf,o=[],l=[],a=[],u=[];let s=0,f=-1;for(;++f<e.length;){const k=[],C=[];let y=-1;for(e[f].length>s&&(s=e[f].length);++y<e[f].length;){const I=af(e[f][y]);if(t.alignDelimiters!==!1){const E=i(I);C[y]=E,(u[y]===void 0||E>u[y])&&(u[y]=E)}k.push(I)}l[f]=k,a[f]=C}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<s;)o[c]=pr(r[c]);else{const k=pr(r);for(;++c<s;)o[c]=k}c=-1;const p=[],h=[];for(;++c<s;){const k=o[c];let C="",y="";k===99?(C=":",y=":"):k===108?C=":":k===114&&(y=":");let I=t.alignDelimiters===!1?1:Math.max(1,u[c]-C.length-y.length);const E=C+"-".repeat(I)+y;t.alignDelimiters!==!1&&(I=C.length+I+y.length,I>u[c]&&(u[c]=I),h[c]=I),p[c]=E}l.splice(1,0,p),a.splice(1,0,h),f=-1;const d=[];for(;++f<l.length;){const k=l[f],C=a[f];c=-1;const y=[];for(;++c<s;){const I=k[c]||"";let E="",L="";if(t.alignDelimiters!==!1){const F=u[c]-(C[c]||0),w=o[c];w===114?E=" ".repeat(F):w===99?F%2?(E=" ".repeat(F/2+.5),L=" ".repeat(F/2-.5)):(E=" ".repeat(F/2),L=E):L=" ".repeat(F)}t.delimiterStart!==!1&&!c&&y.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&I==="")&&(t.delimiterStart!==!1||c)&&y.push(" "),t.alignDelimiters!==!1&&y.push(E),y.push(I),t.alignDelimiters!==!1&&y.push(L),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(`
24
+ `)}function af(e){return e==null?"":String(e)}function pr(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}function uf(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()),sf);return i(),l}function sf(e,n,t){return">"+(t?"":" ")+e}function cf(e,n){return mr(e,n.inConstruct,!0)&&!mr(e,n.notInConstruct,!1)}function mr(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 gr(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
25
+ `&&cf(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
26
+ `}function ff(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 hf(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 pf(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 mf(e,n,t,r){const i=pf(t),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(hf(e,t)){const c=t.enter("codeIndented"),p=t.indentLines(o,gf);return c(),p}const a=t.createTracker(r),u=i.repeat(Math.max(ff(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:`
27
+ `,encode:["`"],...a.current()})),c()}return f+=a.move(`
28
+ `),o&&(f+=a.move(o+`
29
+ `)),f+=a.move(u),s(),f}function gf(e,n,t){return(t?"":" ")+e}function pn(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 df(e,n,t,r){const i=pn(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?" ":`
30
+ `,...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 yf(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 We(e){return"&#x"+e.toString(16).toUpperCase()+";"}function ft(e,n,t){const r=Ne(e),i=Ne(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}}gi.peek=xf;function gi(e,n,t,r){const i=yf(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=We(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)+We(c));const h=l.move(i);return o(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+h}function xf(e,n,t){return t.options.emphasis||"*"}function kf(e,n){let t=!1;return fn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,Vt}),!!((!e.depth||e.depth<3)&&rn(e)&&(n.options.setext||t))}function bf(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),o=t.createTracker(r);if(kf(e,t)){const f=t.enter("headingSetext"),c=t.enter("phrasing"),p=t.containerPhrasing(e,{...o.current(),before:`
31
+ `,after:`
32
+ `});return c(),f(),p+`
33
+ `+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
34
+ `))+1))}const l="#".repeat(i),a=t.enter("headingAtx"),u=t.enter("phrasing");o.move(l+" ");let s=t.containerPhrasing(e,{before:"# ",after:`
35
+ `,...o.current()});return/^[\t ]/.test(s)&&(s=We(s.charCodeAt(0))+s.slice(1)),s=s?l+" "+s:l,t.options.closeAtx&&(s+=" "+l),u(),a(),s}di.peek=wf;function di(e){return e.value||""}function wf(){return"<"}yi.peek=Sf;function yi(e,n,t,r){const i=pn(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 Sf(){return"!"}xi.peek=Cf;function xi(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 Cf(){return"!"}ki.peek=Ef;function ki(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 Ef(){return"`"}function bi(e,n){const t=rn(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))}wi.peek=Af;function wi(e,n,t,r){const i=pn(t),o=i==='"'?"Quote":"Apostrophe",l=t.createTracker(r);let a,u;if(bi(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 Af(e,n,t){return bi(e,t)?"<":"["}Si.peek=If;function Si(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 If(){return"["}function mn(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 Tf(e){const n=mn(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 vf(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 Ci(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 Pf(e,n,t,r){const i=t.enter("list"),o=t.bulletCurrent;let l=e.ordered?vf(t):mn(t);const a=e.ordered?l==="."?")":".":Tf(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),Ci(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 Df(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 zf(e,n,t,r){const i=Df(t);let o=t.bulletCurrent||mn(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 Lf(e,n,t,r){const i=t.enter("paragraph"),o=t.enter("phrasing"),l=t.containerPhrasing(e,r);return o(),i(),l}const Ff=yt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Nf(e,n,t,r){return(e.children.some(function(l){return Ff(l)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function Of(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Ei.peek=Rf;function Ei(e,n,t,r){const i=Of(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=We(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)+We(c));const h=l.move(i+i);return o(),t.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+u+h}function Rf(e,n,t){return t.options.strong||"*"}function _f(e,n,t,r){return t.safe(e.value,r)}function Mf(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 Bf(e,n,t){const r=(Ci(t)+(t.options.ruleSpaces?" ":"")).repeat(Mf(t));return t.options.ruleSpaces?r.slice(0,-1):r}const Ai={blockquote:uf,break:gr,code:mf,definition:df,emphasis:gi,hardBreak:gr,heading:bf,html:di,image:yi,imageReference:xi,inlineCode:ki,link:wi,linkReference:Si,list:Pf,listItem:zf,paragraph:Lf,root:Nf,strong:Ei,text:_f,thematicBreak:Bf};function jf(){return{enter:{table:Hf,tableData:dr,tableHeader:dr,tableRow:Uf},exit:{codeText:$f,table:qf,tableData:Rt,tableHeader:Rt,tableRow:Rt}}}function Hf(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 qf(e){this.exit(e),this.data.inTable=void 0}function Uf(e){this.enter({type:"tableRow",children:[]},e)}function Rt(e){this.exit(e)}function dr(e){this.enter({type:"tableCell",children:[]},e)}function $f(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Vf));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Vf(e,n){return n==="|"?n:e}function Wf(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,o=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
36
+ `,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,k,C){return s(f(h,k,C),h.align)}function a(h,d,k,C){const y=c(h,k,C),I=s([y]);return I.slice(0,I.indexOf(`
37
+ `))}function u(h,d,k,C){const y=k.enter("tableCell"),I=k.enter("phrasing"),E=k.containerPhrasing(h,{...C,before:o,after:o});return I(),y(),E}function s(h,d){return of(h,{align:d,alignDelimiters:r,padding:t,stringLength:i})}function f(h,d,k){const C=h.children;let y=-1;const I=[],E=d.enter("table");for(;++y<C.length;)I[y]=c(C[y],d,k);return E(),I}function c(h,d,k){const C=h.children;let y=-1;const I=[],E=d.enter("tableRow");for(;++y<C.length;)I[y]=u(C[y],h,d,k);return E(),I}function p(h,d,k){let C=Ai.inlineCode(h,d,k);return k.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function Yf(){return{exit:{taskListCheckValueChecked:yr,taskListCheckValueUnchecked:yr,paragraph:Qf}}}function Xf(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Gf}}}function yr(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Qf(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 Gf(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=Ai.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 Kf(){return[vc(),Qc(),Zc(),jf(),Yf()]}function Jf(e){return{extensions:[Pc(),Gc(e),ef(),Wf(e),Xf()]}}const Zf={tokenize:lh,partial:!0},Ii={tokenize:oh,partial:!0},Ti={tokenize:ah,partial:!0},vi={tokenize:uh,partial:!0},eh={tokenize:sh,partial:!0},Pi={name:"wwwAutolink",tokenize:rh,previous:zi},Di={name:"protocolAutolink",tokenize:ih,previous:Li},ye={name:"emailAutolink",tokenize:nh,previous:Fi},he={};function th(){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,Di];he[104]=[ye,Di];he[87]=[ye,Pi];he[119]=[ye,Pi];function nh(e,n,t){const r=this;let i,o;return l;function l(c){return!Qt(c)||!Fi.call(r,r.previous)||gn(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Qt(c)?(e.consume(c),a):c===64?(e.consume(c),u):t(c)}function u(c){return c===46?e.check(eh,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 rh(e,n,t){const r=this;return i;function i(l){return l!==87&&l!==119||!zi.call(r,r.previous)||gn(r.events)?t(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Zf,e.attempt(Ii,e.attempt(Ti,o),t),t)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function ih(e,n,t){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&Li.call(r,r.previous)&&!gn(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||ut(c)||q(c)||Ae(c)||mt(c)?t(c):e.attempt(Ii,e.attempt(Ti,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function lh(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 oh(e,n,t){let r,i,o;return l;function l(s){return s===46||s===95?e.check(vi,u,a)(s):s===null||q(s)||Ae(s)||s!==45&&mt(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 ah(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(vi,n,o)(l):l===null||q(l)||Ae(l)?n(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function uh(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||q(a)||Ae(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||q(a)||Ae(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 sh(e,n,t){return r;function r(o){return e.consume(o),i}function i(o){return K(o)?t(o):n(o)}}function zi(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||q(e)}function Li(e){return!Z(e)}function Fi(e){return!(e===47||Qt(e))}function Qt(e){return e===43||e===45||e===46||e===95||K(e)}function gn(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 ch={tokenize:xh,partial:!0};function fh(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:gh,continuation:{tokenize:dh},exit:yh}},text:{91:{name:"gfmFootnoteCall",tokenize:mh},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:hh,resolveTo:ph}}}}function hh(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 ph(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 mh(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||q(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 q(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 gh(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||q(d))return t(d);if(d===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return o=ce(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return q(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),R(e,h,"gfmFootnoteDefinitionWhitespace")):t(d)}function h(d){return n(d)}}function dh(e,n,t){return e.check(Qe,n,e.attempt(ch,n,t))}function yh(e){e.exit("gfmFootnoteDefinition")}function xh(e,n,t){const r=this;return R(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 kh(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,gt(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 k=Ne(s);if(d===126)return c>1?u(d):(l.consume(d),c++,h);if(c<2&&!t)return u(d);const C=l.exit("strikethroughSequenceTemporary"),y=Ne(d);return C._open=!y||y===2&&!!k,C._close=!k||k===2&&!!y,a(d)}}}class bh{constructor(){this.map=[]}add(n,t,r){wh(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 wh(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 Sh(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 Ch(){return{flow:{null:{name:"table",tokenize:Eh,resolveAll:Ah}}}}function Eh(e,n,t){const r=this;let i=0,o=0,l;return a;function a(x){let T=r.events.length-1;for(;T>-1;){const V=r.events[T][1].type;if(V==="lineEnding"||V==="linePrefix")T--;else break}const v=T>-1?r.events[T][1].type:null,j=v==="tableHead"||v==="tableRow"?w:u;return j===w&&r.parser.lazy[r.now().line]?t(x):j(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):P(x)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h):t(x):N(x)?R(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||q(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,N(x)?R(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):d(x))}function d(x){return x===45||x===58?C(x):x===124?(l=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),k):F(x)}function k(x){return N(x)?R(e,C,"whitespace")(x):C(x)}function C(x){return x===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),y):x===45?(o+=1,y(x)):x===null||P(x)?L(x):F(x)}function y(x){return x===45?(e.enter("tableDelimiterFiller"),I(x)):F(x)}function I(x){return x===45?(e.consume(x),I):x===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(x))}function E(x){return N(x)?R(e,L,"whitespace")(x):L(x)}function L(x){return x===124?d(x):x===null||P(x)?!l||i!==o?F(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(x)):F(x)}function F(x){return t(x)}function w(x){return e.enter("tableRow"),_(x)}function _(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),_):x===null||P(x)?(e.exit("tableRow"),n(x)):N(x)?R(e,_,"whitespace")(x):(e.enter("data"),$(x))}function $(x){return x===null||x===124||q(x)?(e.exit("data"),_(x)):(e.consume(x),x===92?B:$)}function B(x){return x===92||x===124?(e.consume(x),$):$(x)}}function Ah(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 bh;for(;++t<e.length;){const h=e[t],d=h[1];h[0]==="enter"?d.type==="tableHead"?(a=!1,u!==0&&(xr(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&&xr(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=Sh(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({},ze(n.events,t[0])),e.add(t[0],0,[["exit",o,n]]));const u=ze(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=ze(n.events,t[2]),f=ze(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,k=t[3]-t[2]-1;e.add(d,k,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(o.end=Object.assign({},ze(n.events,i)),e.add(i,0,[["exit",o,n]]),o=void 0),o}function xr(e,n,t,r,i){const o=[],l=ze(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 ze(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const Ih={name:"tasklistCheck",tokenize:vh};function Th(){return{text:{91:Ih}}}function vh(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 q(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 P(u)?n(u):N(u)?e.check({tokenize:Ph},n,t)(u):t(u)}}function Ph(e,n,t){return R(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function Dh(e){return Ur([th(),fh(),kh(e),Ch(),Th()])}const zh={};function Oh(e){const n=this,t=e||zh,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Dh(t)),o.push(Kf()),l.push(Jf(t))}export{Nh as M,Oh as r,Fh as t};