import{j as Xe,c9 as me,U as Je}from"./index-Daf0Yezg.js";import{c as Ye,g as Mt,j as ln}from"./vendor-react-CVHocMAO.js";/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Uu=Xe("ChefHat",[["path",{d:"M17 21a1 1 0 0 0 1-1v-5.35c0-.457.316-.844.727-1.041a4 4 0 0 0-2.134-7.589 5 5 0 0 0-9.186 0 4 4 0 0 0-2.134 7.588c.411.198.727.585.727 1.041V20a1 1 0 0 0 1 1Z",key:"1qvrer"}],["path",{d:"M6 17h12",key:"1jwigz"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Vu=Xe("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const qu=Xe("Leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);/**
* @license lucide-react v0.462.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $u=Xe("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);function Qu(){}function Dr(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const _r=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Fr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Rr={};function Yn(e,n){return(Rr.jsx?Fr:_r).test(e)}const Mr=/[ \t\n\f\r]/g;function Br(e){return typeof e=="object"?e.type==="text"?Kn(e.value):!1:Kn(e)}function Kn(e){return e.replace(Mr,"")===""}class Be{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Be.prototype.normal={};Be.prototype.property={};Be.prototype.space=void 0;function Bt(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Be(t,r,n)}function yn(e){return e.toLowerCase()}class J{constructor(n,t){this.attribute=t,this.property=n}}J.prototype.attribute="";J.prototype.booleanish=!1;J.prototype.boolean=!1;J.prototype.commaOrSpaceSeparated=!1;J.prototype.commaSeparated=!1;J.prototype.defined=!1;J.prototype.mustUseProperty=!1;J.prototype.number=!1;J.prototype.overloadedBoolean=!1;J.prototype.property="";J.prototype.spaceSeparated=!1;J.prototype.space=void 0;let jr=0;const P=Se(),$=Se(),xn=Se(),k=Se(),R=Se(),we=Se(),ee=Se();function Se(){return 2**++jr}const kn=Object.freeze(Object.defineProperty({__proto__:null,boolean:P,booleanish:$,commaOrSpaceSeparated:ee,commaSeparated:we,number:k,overloadedBoolean:xn,spaceSeparated:R},Symbol.toStringTag,{value:"Module"})),an=Object.keys(kn);class Pn extends J{constructor(n,t,r,i){let l=-1;if(super(n,t),Wn(this,"space",i),typeof r=="number")for(;++l<an.length;){const a=an[l];Wn(this,an[l],(r&kn[a])===kn[a])}}}Pn.prototype.defined=!0;function Wn(e,n,t){t&&(e[n]=t)}function Pe(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Pn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[yn(r)]=r,t[yn(l.attribute)]=r}return new Be(n,t,e.space)}const jt=Pe({properties:{ariaActiveDescendant:null,ariaAtomic:$,ariaAutoComplete:null,ariaBusy:$,ariaChecked:$,ariaColCount:k,ariaColIndex:k,ariaColSpan:k,ariaControls:R,ariaCurrent:null,ariaDescribedBy:R,ariaDetails:null,ariaDisabled:$,ariaDropEffect:R,ariaErrorMessage:null,ariaExpanded:$,ariaFlowTo:R,ariaGrabbed:$,ariaHasPopup:null,ariaHidden:$,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:R,ariaLevel:k,ariaLive:null,ariaModal:$,ariaMultiLine:$,ariaMultiSelectable:$,ariaOrientation:null,ariaOwns:R,ariaPlaceholder:null,ariaPosInSet:k,ariaPressed:$,ariaReadOnly:$,ariaRelevant:null,ariaRequired:$,ariaRoleDescription:R,ariaRowCount:k,ariaRowIndex:k,ariaRowSpan:k,ariaSelected:$,ariaSetSize:k,ariaSort:null,ariaValueMax:k,ariaValueMin:k,ariaValueNow:k,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function Ht(e,n){return n in e?e[n]:n}function Ut(e,n){return Ht(e,n.toLowerCase())}const Hr=Pe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:we,acceptCharset:R,accessKey:R,action:null,allow:null,allowFullScreen:P,allowPaymentRequest:P,allowUserMedia:P,alpha:P,alt:null,as:null,async:P,autoCapitalize:null,autoComplete:R,autoFocus:P,autoPlay:P,blocking:R,capture:null,charSet:null,checked:P,cite:null,className:R,closedBy:null,colorSpace:null,cols:k,colSpan:k,command:null,commandFor:null,content:null,contentEditable:$,controls:P,controlsList:R,coords:k|we,crossOrigin:null,data:null,dateTime:null,decoding:null,default:P,defer:P,dir:null,dirName:null,disabled:P,download:xn,draggable:$,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:P,formTarget:null,headers:R,height:k,hidden:xn,high:k,href:null,hrefLang:null,htmlFor:R,httpEquiv:R,id:null,imageSizes:null,imageSrcSet:null,inert:P,inputMode:null,integrity:null,is:null,isMap:P,itemId:null,itemProp:R,itemRef:R,itemScope:P,itemType:R,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:P,low:k,manifest:null,max:null,maxLength:k,media:null,method:null,min:null,minLength:k,multiple:P,muted:P,name:null,nonce:null,noModule:P,noValidate:P,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:P,optimum:k,pattern:null,ping:R,placeholder:null,playsInline:P,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:P,referrerPolicy:null,rel:R,required:P,reversed:P,rows:k,rowSpan:k,sandbox:R,scope:null,scoped:P,seamless:P,selected:P,shadowRootClonable:P,shadowRootCustomElementRegistry:P,shadowRootDelegatesFocus:P,shadowRootMode:null,shadowRootSerializable:P,shape:null,size:k,sizes:null,slot:null,span:k,spellCheck:$,src:null,srcDoc:null,srcLang:null,srcSet:null,start:k,step:null,style:null,tabIndex:k,target:null,title:null,translate:null,type:null,typeMustMatch:P,useMap:null,value:$,width:k,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:R,axis:null,background:null,bgColor:null,border:k,borderColor:null,bottomMargin:k,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:P,declare:P,event:null,face:null,frame:null,frameBorder:null,hSpace:k,leftMargin:k,link:null,longDesc:null,lowSrc:null,marginHeight:k,marginWidth:k,noResize:P,noHref:P,noShade:P,noWrap:P,object:null,profile:null,prompt:null,rev:null,rightMargin:k,rules:null,scheme:null,scrolling:$,standby:null,summary:null,text:null,topMargin:k,valueType:null,version:null,vAlign:null,vLink:null,vSpace:k,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:P,disablePictureInPicture:P,disableRemotePlayback:P,exportParts:we,part:R,prefix:null,property:null,results:k,security:null,unselectable:null},space:"html",transform:Ut}),Ur=Pe({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ee,accentHeight:k,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:k,amplitude:k,arabicForm:null,ascent:k,attributeName:null,attributeType:null,azimuth:k,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:k,by:null,calcMode:null,capHeight:k,className:R,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:k,diffuseConstant:k,direction:null,display:null,dur:null,divisor:k,dominantBaseline:null,download:P,dx:null,dy:null,edgeMode:null,editable:null,elevation:k,enableBackground:null,end:null,event:null,exponent:k,externalResourcesRequired:null,fill:null,fillOpacity:k,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:we,g2:we,glyphName:we,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:k,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:k,horizOriginX:k,horizOriginY:k,id:null,ideographic:k,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:k,k,k1:k,k2:k,k3:k,k4:k,kernelMatrix:ee,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:k,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:k,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:k,overlineThickness:k,paintOrder:null,panose1:null,path:null,pathLength:k,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:R,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:k,pointsAtY:k,pointsAtZ:k,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ee,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ee,rev:ee,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ee,requiredFeatures:ee,requiredFonts:ee,requiredFormats:ee,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:k,specularExponent:k,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:k,strikethroughThickness:k,string:null,stroke:null,strokeDashArray:ee,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:k,strokeOpacity:k,strokeWidth:null,style:null,surfaceScale:k,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ee,tabIndex:k,tableValues:null,target:null,targetX:k,targetY:k,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ee,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:k,underlineThickness:k,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:k,values:null,vAlphabetic:k,vMathematical:k,vectorEffect:null,vHanging:k,vIdeographic:k,version:null,vertAdvY:k,vertOriginX:k,vertOriginY:k,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:k,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ht}),Vt=Pe({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()}}),qt=Pe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Ut}),$t=Pe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Vr={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"},qr=/[A-Z]/g,Xn=/-[a-z]/g,$r=/^data[-\w.:]+$/i;function Qr(e,n){const t=yn(n);let r=n,i=J;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&$r.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(Xn,Yr);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!Xn.test(l)){let a=l.replace(qr,Gr);a.charAt(0)!=="-"&&(a="-"+a),n="data"+a}}i=Pn}return new i(r,n)}function Gr(e){return"-"+e.toLowerCase()}function Yr(e){return e.charAt(1).toUpperCase()}const Kr=Bt([jt,Hr,Vt,qt,$t],"html"),vn=Bt([jt,Ur,Vt,qt,$t],"svg");function Wr(e){return e.join(" ").trim()}var Ln={},Jn=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Xr=/\n/g,Jr=/^\s*/,Zr=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ei=/^:\s*/,ni=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ti=/^[;\s]*/,ri=/^\s+|\s+$/g,ii=`
`,Zn="/",et="*",be="",li="comment",ai="declaration";function oi(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(y){var b=y.match(Xr);b&&(t+=b.length);var T=y.lastIndexOf(ii);r=~T?y.length-T:r+y.length}function l(){var y={line:t,column:r};return function(b){return b.position=new a(y),c(),b}}function a(y){this.start=y,this.end={line:t,column:r},this.source=n.source}a.prototype.content=e;function o(y){var b=new Error(n.source+":"+t+":"+r+": "+y);if(b.reason=y,b.filename=n.source,b.line=t,b.column=r,b.source=e,!n.silent)throw b}function u(y){var b=y.exec(e);if(b){var T=b[0];return i(T),e=e.slice(T.length),b}}function c(){u(Jr)}function s(y){var b;for(y=y||[];b=f();)b!==!1&&y.push(b);return y}function f(){var y=l();if(!(Zn!=e.charAt(0)||et!=e.charAt(1))){for(var b=2;be!=e.charAt(b)&&(et!=e.charAt(b)||Zn!=e.charAt(b+1));)++b;if(b+=2,be===e.charAt(b-1))return o("End of comment missing");var T=e.slice(2,b-2);return r+=2,i(T),e=e.slice(b),r+=2,y({type:li,comment:T})}}function d(){var y=l(),b=u(Zr);if(b){if(f(),!u(ei))return o("property missing ':'");var T=u(ni),w=y({type:ai,property:nt(b[0].replace(Jn,be)),value:T?nt(T[0].replace(Jn,be)):be});return u(ti),w}}function p(){var y=[];s(y);for(var b;b=d();)b!==!1&&(y.push(b),s(y));return y}return c(),p()}function nt(e){return e?e.replace(ri,be):be}var ui=oi,si=Ye&&Ye.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ln,"__esModule",{value:!0});Ln.default=pi;const ci=si(ui);function pi(e,n){let t=null;if(!e||typeof e!="string")return t;const r=(0,ci.default)(e),i=typeof n=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:a,value:o}=l;i?n(a,o,l):o&&(t=t||{},t[a]=o)}),t}var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.camelCase=void 0;var fi=/^--[a-zA-Z0-9_-]+$/,hi=/-([a-z])/g,mi=/^[^-]+$/,di=/^-(webkit|moz|ms|o|khtml)-/,gi=/^-(ms)-/,yi=function(e){return!e||mi.test(e)||fi.test(e)},xi=function(e,n){return n.toUpperCase()},tt=function(e,n){return"".concat(n,"-")},ki=function(e,n){return n===void 0&&(n={}),yi(e)?e:(e=e.toLowerCase(),n.reactCompat?e=e.replace(gi,tt):e=e.replace(di,tt),e.replace(hi,xi))};Ze.camelCase=ki;var bi=Ye&&Ye.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},wi=bi(Ln),Si=Ze;function bn(e,n){var t={};return!e||typeof e!="string"||(0,wi.default)(e,function(r,i){r&&i&&(t[(0,Si.camelCase)(r,n)]=i)}),t}bn.default=bn;var Ei=bn;const Ci=Mt(Ei),Qt=Gt("end"),On=Gt("start");function Gt(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 Ii(e){const n=On(e),t=Qt(e);if(n&&t)return{start:n,end:t}}function _e(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?rt(e.position):"start"in e||"end"in e?rt(e):"line"in e||"column"in e?wn(e):""}function wn(e){return it(e&&e.line)+":"+it(e&&e.column)}function rt(e){return wn(e&&e.start)+"-"+wn(e&&e.end)}function it(e){return e&&typeof e=="number"?e:1}class K extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},a=!1;if(t&&("line"in t&&"column"in t?l={place:t}:"start"in t&&"end"in t?l={place:t}:"type"in t?l={ancestors:[t],place:t.position}:l={...t}),typeof n=="string"?i=n:!l.cause&&n&&(a=!0,i=n.message,l.cause=n),!l.ruleId&&!l.source&&typeof r=="string"){const u=r.indexOf(":");u===-1?l.ruleId=r:(l.source=r.slice(0,u),l.ruleId=r.slice(u+1))}if(!l.place&&l.ancestors&&l.ancestors){const u=l.ancestors[l.ancestors.length-1];u&&(l.place=u.position)}const o=l.place&&"start"in l.place?l.place.start:l.place;this.ancestors=l.ancestors||void 0,this.cause=l.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=_e(l.place)||"1:1",this.place=l.place||void 0,this.reason=this.message,this.ruleId=l.ruleId||void 0,this.source=l.source||void 0,this.stack=a&&l.cause&&typeof l.cause.stack=="string"?l.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}K.prototype.file="";K.prototype.name="";K.prototype.reason="";K.prototype.message="";K.prototype.stack="";K.prototype.column=void 0;K.prototype.line=void 0;K.prototype.ancestors=void 0;K.prototype.cause=void 0;K.prototype.fatal=void 0;K.prototype.place=void 0;K.prototype.ruleId=void 0;K.prototype.source=void 0;const zn={}.hasOwnProperty,Ti=new Map,Ai=/[A-Z]/g,Pi=new Set(["table","tbody","thead","tfoot","tr"]),vi=new Set(["td","th"]),Yt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Li(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=Mi(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=Ri(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"?vn:Kr,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=Kt(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function Kt(e,n,t){if(n.type==="element")return Oi(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return zi(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Di(e,n,t);if(n.type==="mdxjsEsm")return Ni(e,n);if(n.type==="root")return _i(e,n,t);if(n.type==="text")return Fi(e,n)}function Oi(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=vn,e.schema=i),e.ancestors.push(n);const l=Xt(e,n.tagName,!1),a=Bi(e,n);let o=Dn(e,n);return Pi.has(n.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!Br(u):!0})),Wt(e,a,l,n),Nn(a,o),e.ancestors.pop(),e.schema=r,e.create(n,l,a,t)}function zi(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)}Me(e,n.position)}function Ni(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Me(e,n.position)}function Di(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=vn,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:Xt(e,n.name,!0),a=ji(e,n),o=Dn(e,n);return Wt(e,a,l,n),Nn(a,o),e.ancestors.pop(),e.schema=r,e.create(n,l,a,t)}function _i(e,n,t){const r={};return Nn(r,Dn(e,n)),e.create(n,e.Fragment,r,t)}function Fi(e,n){return n.value}function Wt(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Nn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Ri(e,n,t){return r;function r(i,l,a,o){const c=Array.isArray(a.children)?t:n;return o?c(l,a,o):c(l,a)}}function Mi(e,n){return t;function t(r,i,l,a){const o=Array.isArray(l.children),u=On(r);return n(i,l,a,o,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function Bi(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&zn.call(n.properties,i)){const l=Hi(e,i,n.properties[i]);if(l){const[a,o]=l;e.tableCellAlignToStyle&&a==="align"&&typeof o=="string"&&vi.has(n.tagName)?r=o:t[a]=o}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function ji(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const l=r.data.estree.body[0];l.type;const a=l.expression;a.type;const o=a.properties[0];o.type,Object.assign(t,e.evaluater.evaluateExpression(o.argument))}else Me(e,n.position);else{const i=r.name;let l;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,l=e.evaluater.evaluateExpression(o.expression)}else Me(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Dn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Ti;for(;++r<n.children.length;){const l=n.children[r];let a;if(e.passKeys){const u=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(u){const c=i.get(u)||0;a=u+"-"+c,i.set(u,c+1)}}const o=Kt(e,l,a);o!==void 0&&t.push(o)}return t}function Hi(e,n,t){const r=Qr(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Dr(t):Wr(t)),r.property==="style"){let i=typeof t=="object"?t:Ui(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Vi(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Vr[r.property]||r.property:r.attribute,t]}}function Ui(e,n){try{return Ci(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new K("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=Yt+"#cannot-parse-style-attribute",i}}function Xt(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,a;for(;++l<i.length;){const o=Yn(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};a=a?{type:"MemberExpression",object:a,property:o,computed:!!(l&&o.type==="Literal"),optional:!1}:o}r=a}else r=Yn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return zn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Me(e)}function Me(e,n){const t=new K("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=Yt+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Vi(e){const n={};let t;for(t in e)zn.call(e,t)&&(n[qi(t)]=e[t]);return n}function qi(e){let n=e.replace(Ai,$i);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function $i(e){return"-"+e.toLowerCase()}const on={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"]},Qi={};function Gi(e,n){const t=Qi,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Jt(e,r,i)}function Jt(e,n,t){if(Yi(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 lt(e.children,n,t)}return Array.isArray(e)?lt(e,n,t):""}function lt(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Jt(e[i],n,t);return r.join("")}function Yi(e){return!!(e&&typeof e=="object")}const at=document.createElement("i");function _n(e){const n="&"+e+";";at.innerHTML=n;const t=at.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function se(e,n,t,r){const i=e.length;let l=0,a;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)a=Array.from(r),a.unshift(n,t),e.splice(...a);else for(t&&e.splice(n,t);l<r.length;)a=r.slice(l,l+1e4),a.unshift(n,0),e.splice(...a),l+=1e4,n+=1e4}function te(e,n){return e.length>0?(se(e,e.length,0,n),e):n}const ot={}.hasOwnProperty;function Ki(e){const n={};let t=-1;for(;++t<e.length;)Wi(n,e[t]);return n}function Wi(e,n){let t;for(t in n){const i=(ot.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let a;if(l)for(a in l){ot.call(i,a)||(i[a]=[]);const o=l[a];Xi(i[a],Array.isArray(o)?o:o?[o]:[])}}}function Xi(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);se(e,0,0,r)}function Zt(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 Ae(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ue=ye(/[A-Za-z]/),ne=ye(/[\dA-Za-z]/),Ji=ye(/[#-'*+\--9=?A-Z^-~]/);function Sn(e){return e!==null&&(e<32||e===127)}const En=ye(/\d/),Zi=ye(/[\dA-Fa-f]/),el=ye(/[!-/:-@[-`{-~]/);function A(e){return e!==null&&e<-2}function X(e){return e!==null&&(e<0||e===32)}function N(e){return e===-2||e===-1||e===32}const nl=ye(new RegExp("\\p{P}|\\p{S}","u")),tl=ye(/\s/);function ye(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function ve(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let a="";if(l===37&&ne(e.charCodeAt(t+1))&&ne(e.charCodeAt(t+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(a=String.fromCharCode(l));else if(l>55295&&l<57344){const o=e.charCodeAt(t+1);l<56320&&o>56319&&o<57344?(a=String.fromCharCode(l,o),i=1):a="�"}else a=String.fromCharCode(l);a&&(n.push(e.slice(r,t),encodeURIComponent(a)),r=t+i+1,a=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function M(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return a;function a(u){return N(u)?(e.enter(t),o(u)):n(u)}function o(u){return N(u)&&l++<i?(e.consume(u),o):(e.exit(t),n(u))}}const rl={tokenize:il};function il(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),M(e,n,"linePrefix")}function i(o){return e.enter("paragraph"),l(o)}function l(o){const u=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=u),t=u,a(o)}function a(o){if(o===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(o);return}return A(o)?(e.consume(o),e.exit("chunkText"),l):(e.consume(o),a)}}const ll={tokenize:al},ut={tokenize:ol};function al(e){const n=this,t=[];let r=0,i,l,a;return o;function o(E){if(r<t.length){const j=t[r];return n.containerState=j[1],e.attempt(j[0].continuation,u,c)(E)}return c(E)}function u(E){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&L();const j=n.events.length;let U=j,x;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){x=n.events[U][1].end;break}w(r);let D=j;for(;D<n.events.length;)n.events[D][1].end={...x},D++;return se(n.events,U+1,0,n.events.slice(j)),n.events.length=D,c(E)}return o(E)}function c(E){if(r===t.length){if(!i)return d(E);if(i.currentConstruct&&i.currentConstruct.concrete)return y(E);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(ut,s,f)(E)}function s(E){return i&&L(),w(r),d(E)}function f(E){return n.parser.lazy[n.now().line]=r!==t.length,a=n.now().offset,y(E)}function d(E){return n.containerState={},e.attempt(ut,p,y)(E)}function p(E){return r++,t.push([n.currentConstruct,n.containerState]),d(E)}function y(E){if(E===null){i&&L(),w(0),e.consume(E);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),b(E)}function b(E){if(E===null){T(e.exit("chunkFlow"),!0),w(0),e.consume(E);return}return A(E)?(e.consume(E),T(e.exit("chunkFlow")),r=0,n.interrupt=void 0,o):(e.consume(E),b)}function T(E,j){const U=n.sliceStream(E);if(j&&U.push(null),E.previous=l,l&&(l.next=E),l=E,i.defineSkip(E.start),i.write(U),n.parser.lazy[E.start.line]){let x=i.events.length;for(;x--;)if(i.events[x][1].start.offset<a&&(!i.events[x][1].end||i.events[x][1].end.offset>a))return;const D=n.events.length;let V=D,_,B;for(;V--;)if(n.events[V][0]==="exit"&&n.events[V][1].type==="chunkFlow"){if(_){B=n.events[V][1].end;break}_=!0}for(w(r),x=D;x<n.events.length;)n.events[x][1].end={...B},x++;se(n.events,V+1,0,n.events.slice(D)),n.events.length=x}}function w(E){let j=t.length;for(;j-- >E;){const U=t[j];n.containerState=U[1],U[0].exit.call(n,e)}t.length=E}function L(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function ol(e,n,t){return M(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function st(e){if(e===null||X(e)||tl(e))return 1;if(nl(e))return 2}function Fn(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const l=e[i].resolveAll;l&&!r.includes(l)&&(n=l(n,t),r.push(l))}return n}const Cn={name:"attention",resolveAll:ul,tokenize:sl};function ul(e,n){let t=-1,r,i,l,a,o,u,c,s;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 f={...e[r][1].end},d={...e[t][1].start};ct(f,-u),ct(d,u),a={type:u>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},o={type:u>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:d},l={type:u>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:u>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},e[r][1].end={...a.start},e[t][1].start={...o.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=te(c,[["enter",e[r][1],n],["exit",e[r][1],n]])),c=te(c,[["enter",i,n],["enter",a,n],["exit",a,n],["enter",l,n]]),c=te(c,Fn(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),c=te(c,[["exit",l,n],["enter",o,n],["exit",o,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(s=2,c=te(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):s=0,se(e,r-1,t-r+3,c),t=r+c.length-s-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function sl(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=st(r);let l;return a;function a(u){return l=u,e.enter("attentionSequence"),o(u)}function o(u){if(u===l)return e.consume(u),o;const c=e.exit("attentionSequence"),s=st(u),f=!s||s===2&&i||t.includes(u),d=!i||i===2&&s||t.includes(r);return c._open=!!(l===42?f:f&&(i||!d)),c._close=!!(l===42?d:d&&(s||!f)),n(u)}}function ct(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const cl={name:"autolink",tokenize:pl};function pl(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),l}function l(p){return ue(p)?(e.consume(p),a):p===64?t(p):c(p)}function a(p){return p===43||p===45||p===46||ne(p)?(r=1,o(p)):c(p)}function o(p){return p===58?(e.consume(p),r=0,u):(p===43||p===45||p===46||ne(p))&&r++<32?(e.consume(p),o):(r=0,c(p))}function u(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||Sn(p)?t(p):(e.consume(p),u)}function c(p){return p===64?(e.consume(p),s):Ji(p)?(e.consume(p),c):t(p)}function s(p){return ne(p)?f(p):t(p)}function f(p){return p===46?(e.consume(p),r=0,s):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):d(p)}function d(p){if((p===45||ne(p))&&r++<63){const y=p===45?d:f;return e.consume(p),y}return t(p)}}const en={partial:!0,tokenize:fl};function fl(e,n,t){return r;function r(l){return N(l)?M(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||A(l)?n(l):t(l)}}const er={continuation:{tokenize:ml},exit:dl,name:"blockQuote",tokenize:hl};function hl(e,n,t){const r=this;return i;function i(a){if(a===62){const o=r.containerState;return o.open||(e.enter("blockQuote",{_container:!0}),o.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),l}return t(a)}function l(a){return N(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(a))}}function ml(e,n,t){const r=this;return i;function i(a){return N(a)?M(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):l(a)}function l(a){return e.attempt(er,n,t)(a)}}function dl(e){e.exit("blockQuote")}const nr={name:"characterEscape",tokenize:gl};function gl(e,n,t){return r;function r(l){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(l),e.exit("escapeMarker"),i}function i(l){return el(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const tr={name:"characterReference",tokenize:yl};function yl(e,n,t){const r=this;let i=0,l,a;return o;function o(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),u}function u(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),l=31,a=ne,s(f))}function c(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,a=Zi,s):(e.enter("characterReferenceValue"),l=7,a=En,s(f))}function s(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return a===ne&&!_n(r.sliceSerialize(d))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return a(f)&&i++<l?(e.consume(f),s):t(f)}}const pt={partial:!0,tokenize:kl},ft={concrete:!0,name:"codeFenced",tokenize:xl};function xl(e,n,t){const r=this,i={partial:!0,tokenize:U};let l=0,a=0,o;return u;function u(x){return c(x)}function c(x){const D=r.events[r.events.length-1];return l=D&&D[1].type==="linePrefix"?D[2].sliceSerialize(D[1],!0).length:0,o=x,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(x)}function s(x){return x===o?(a++,e.consume(x),s):a<3?t(x):(e.exit("codeFencedFenceSequence"),N(x)?M(e,f,"whitespace")(x):f(x))}function f(x){return x===null||A(x)?(e.exit("codeFencedFence"),r.interrupt?n(x):e.check(pt,b,j)(x)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(x))}function d(x){return x===null||A(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(x)):N(x)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),M(e,p,"whitespace")(x)):x===96&&x===o?t(x):(e.consume(x),d)}function p(x){return x===null||A(x)?f(x):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(x))}function y(x){return x===null||A(x)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(x)):x===96&&x===o?t(x):(e.consume(x),y)}function b(x){return e.attempt(i,j,T)(x)}function T(x){return e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),w}function w(x){return l>0&&N(x)?M(e,L,"linePrefix",l+1)(x):L(x)}function L(x){return x===null||A(x)?e.check(pt,b,j)(x):(e.enter("codeFlowValue"),E(x))}function E(x){return x===null||A(x)?(e.exit("codeFlowValue"),L(x)):(e.consume(x),E)}function j(x){return e.exit("codeFenced"),n(x)}function U(x,D,V){let _=0;return B;function B(z){return x.enter("lineEnding"),x.consume(z),x.exit("lineEnding"),I}function I(z){return x.enter("codeFencedFence"),N(z)?M(x,C,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):C(z)}function C(z){return z===o?(x.enter("codeFencedFenceSequence"),H(z)):V(z)}function H(z){return z===o?(_++,x.consume(z),H):_>=a?(x.exit("codeFencedFenceSequence"),N(z)?M(x,q,"whitespace")(z):q(z)):V(z)}function q(z){return z===null||A(z)?(x.exit("codeFencedFence"),D(z)):V(z)}}}function kl(e,n,t){const r=this;return i;function i(a){return a===null?t(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l)}function l(a){return r.parser.lazy[r.now().line]?t(a):n(a)}}const un={name:"codeIndented",tokenize:wl},bl={partial:!0,tokenize:Sl};function wl(e,n,t){const r=this;return i;function i(c){return e.enter("codeIndented"),M(e,l,"linePrefix",5)(c)}function l(c){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?a(c):t(c)}function a(c){return c===null?u(c):A(c)?e.attempt(bl,a,u)(c):(e.enter("codeFlowValue"),o(c))}function o(c){return c===null||A(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),o)}function u(c){return e.exit("codeIndented"),n(c)}}function Sl(e,n,t){const r=this;return i;function i(a){return r.parser.lazy[r.now().line]?t(a):A(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):M(e,l,"linePrefix",5)(a)}function l(a){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(a):A(a)?i(a):t(a)}}const El={name:"codeText",previous:Il,resolve:Cl,tokenize:Tl};function Cl(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 Il(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Tl(e,n,t){let r=0,i,l;return a;function a(f){return e.enter("codeText"),e.enter("codeTextSequence"),o(f)}function o(f){return f===96?(e.consume(f),r++,o):(e.exit("codeTextSequence"),u(f))}function u(f){return f===null?t(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),u):f===96?(l=e.enter("codeTextSequence"),i=0,s(f)):A(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("codeTextData"),c(f))}function c(f){return f===null||f===32||f===96||A(f)?(e.exit("codeTextData"),u(f)):(e.consume(f),c)}function s(f){return f===96?(e.consume(f),i++,s):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(l.type="codeTextData",c(f))}}class Al{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 l=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ne(this.left,r),l.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),Ne(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Ne(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);Ne(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Ne(this.left,t.reverse())}}}function Ne(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 rr(e){const n={};let t=-1,r,i,l,a,o,u,c;const s=new Al(e);for(;++t<s.length;){for(;t in n;)t=n[t];if(r=s.get(t),t&&r[1].type==="chunkFlow"&&s.get(t-1)[1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,l=0,l<u.length&&u[l][1].type==="lineEndingBlank"&&(l+=2),l<u.length&&u[l][1].type==="content"))for(;++l<u.length&&u[l][1].type!=="content";)u[l][1].type==="chunkText"&&(u[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Pl(s,t)),t=n[t],c=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(a=s.get(l),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(s.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=l);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(r[1].end={...s.get(i)[1].start},o=s.slice(i,t),o.unshift(r),s.splice(i,t-i+1,o))}}return se(e,0,Number.POSITIVE_INFINITY,s.slice(0)),!c}function Pl(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let a=t._tokenizer;a||(a=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const o=a.events,u=[],c={};let s,f,d=-1,p=t,y=0,b=0;const T=[b];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(s=r.sliceStream(p),p.next||s.push(null),f&&a.defineSkip(p.start),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(s),p._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=t;++d<o.length;)o[d][0]==="exit"&&o[d-1][0]==="enter"&&o[d][1].type===o[d-1][1].type&&o[d][1].start.line!==o[d][1].end.line&&(b=d+1,T.push(b),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(a.events=[],p?(p._tokenizer=void 0,p.previous=void 0):T.pop(),d=T.length;d--;){const w=o.slice(T[d],T[d+1]),L=l.pop();u.push([L,L+w.length-1]),e.splice(L,2,w)}for(u.reverse(),d=-1;++d<u.length;)c[y+u[d][0]]=y+u[d][1],y+=u[d][1]-u[d][0]-1;return c}const vl={resolve:Ol,tokenize:zl},Ll={partial:!0,tokenize:Nl};function Ol(e){return rr(e),e}function zl(e,n){let t;return r;function r(o){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(o)}function i(o){return o===null?l(o):A(o)?e.check(Ll,a,l)(o):(e.consume(o),i)}function l(o){return e.exit("chunkContent"),e.exit("content"),n(o)}function a(o){return e.consume(o),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function Nl(e,n,t){const r=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),M(e,l,"linePrefix")}function l(a){if(a===null||A(a))return t(a);const o=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?n(a):e.interrupt(r.parser.constructs.flow,t,n)(a)}}function ir(e,n,t,r,i,l,a,o,u){const c=u||Number.POSITIVE_INFINITY;let s=0;return f;function f(w){return w===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(w),e.exit(l),d):w===null||w===32||w===41||Sn(w)?t(w):(e.enter(r),e.enter(a),e.enter(o),e.enter("chunkString",{contentType:"string"}),b(w))}function d(w){return w===62?(e.enter(l),e.consume(w),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(o),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===62?(e.exit("chunkString"),e.exit(o),d(w)):w===null||w===60||A(w)?t(w):(e.consume(w),w===92?y:p)}function y(w){return w===60||w===62||w===92?(e.consume(w),p):p(w)}function b(w){return!s&&(w===null||w===41||X(w))?(e.exit("chunkString"),e.exit(o),e.exit(a),e.exit(r),n(w)):s<c&&w===40?(e.consume(w),s++,b):w===41?(e.consume(w),s--,b):w===null||w===32||w===40||Sn(w)?t(w):(e.consume(w),w===92?T:b)}function T(w){return w===40||w===41||w===92?(e.consume(w),b):b(w)}}function lr(e,n,t,r,i,l){const a=this;let o=0,u;return c;function c(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),s}function s(p){return o>999||p===null||p===91||p===93&&!u||p===94&&!o&&"_hiddenFootnoteSupport"in a.parser.constructs?t(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):A(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||A(p)||o++>999?(e.exit("chunkString"),s(p)):(e.consume(p),u||(u=!N(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(e.consume(p),o++,f):f(p)}}function ar(e,n,t,r,i,l){let a;return o;function o(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),a=d===40?41:d,u):t(d)}function u(d){return d===a?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):(e.enter(l),c(d))}function c(d){return d===a?(e.exit(l),u(a)):d===null?t(d):A(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),M(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(d))}function s(d){return d===a||d===null||A(d)?(e.exit("chunkString"),c(d)):(e.consume(d),d===92?f:s)}function f(d){return d===a||d===92?(e.consume(d),s):s(d)}}function Fe(e,n){let t;return r;function r(i){return A(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):N(i)?M(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Dl={name:"definition",tokenize:Fl},_l={partial:!0,tokenize:Rl};function Fl(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),a(p)}function a(p){return lr.call(r,e,o,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function o(p){return i=Ae(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):t(p)}function u(p){return X(p)?Fe(e,c)(p):c(p)}function c(p){return ir(e,s,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function s(p){return e.attempt(_l,f,f)(p)}function f(p){return N(p)?M(e,d,"whitespace")(p):d(p)}function d(p){return p===null||A(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function Rl(e,n,t){return r;function r(o){return X(o)?Fe(e,i)(o):t(o)}function i(o){return ar(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function l(o){return N(o)?M(e,a,"whitespace")(o):a(o)}function a(o){return o===null||A(o)?n(o):t(o)}}const Ml={name:"hardBreakEscape",tokenize:Bl};function Bl(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return A(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const jl={name:"headingAtx",resolve:Hl,tokenize:Ul};function Hl(e,n){let t=e.length-2,r=3,i,l;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},l={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},se(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function Ul(e,n,t){let r=0;return i;function i(s){return e.enter("atxHeading"),l(s)}function l(s){return e.enter("atxHeadingSequence"),a(s)}function a(s){return s===35&&r++<6?(e.consume(s),a):s===null||X(s)?(e.exit("atxHeadingSequence"),o(s)):t(s)}function o(s){return s===35?(e.enter("atxHeadingSequence"),u(s)):s===null||A(s)?(e.exit("atxHeading"),n(s)):N(s)?M(e,o,"whitespace")(s):(e.enter("atxHeadingText"),c(s))}function u(s){return s===35?(e.consume(s),u):(e.exit("atxHeadingSequence"),o(s))}function c(s){return s===null||s===35||X(s)?(e.exit("atxHeadingText"),o(s)):(e.consume(s),c)}}const Vl=["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"],ht=["pre","script","style","textarea"],ql={concrete:!0,name:"htmlFlow",resolveTo:Gl,tokenize:Yl},$l={partial:!0,tokenize:Wl},Ql={partial:!0,tokenize:Kl};function Gl(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 Yl(e,n,t){const r=this;let i,l,a,o,u;return c;function c(m){return s(m)}function s(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),f}function f(m){return m===33?(e.consume(m),d):m===47?(e.consume(m),l=!0,b):m===63?(e.consume(m),i=3,r.interrupt?n:h):ue(m)?(e.consume(m),a=String.fromCharCode(m),T):t(m)}function d(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,o=0,y):ue(m)?(e.consume(m),i=4,r.interrupt?n:h):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:h):t(m)}function y(m){const le="CDATA[";return m===le.charCodeAt(o++)?(e.consume(m),o===le.length?r.interrupt?n:C:y):t(m)}function b(m){return ue(m)?(e.consume(m),a=String.fromCharCode(m),T):t(m)}function T(m){if(m===null||m===47||m===62||X(m)){const le=m===47,xe=a.toLowerCase();return!le&&!l&&ht.includes(xe)?(i=1,r.interrupt?n(m):C(m)):Vl.includes(a.toLowerCase())?(i=6,le?(e.consume(m),w):r.interrupt?n(m):C(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?L(m):E(m))}return m===45||ne(m)?(e.consume(m),a+=String.fromCharCode(m),T):t(m)}function w(m){return m===62?(e.consume(m),r.interrupt?n:C):t(m)}function L(m){return N(m)?(e.consume(m),L):B(m)}function E(m){return m===47?(e.consume(m),B):m===58||m===95||ue(m)?(e.consume(m),j):N(m)?(e.consume(m),E):B(m)}function j(m){return m===45||m===46||m===58||m===95||ne(m)?(e.consume(m),j):U(m)}function U(m){return m===61?(e.consume(m),x):N(m)?(e.consume(m),U):E(m)}function x(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),u=m,D):N(m)?(e.consume(m),x):V(m)}function D(m){return m===u?(e.consume(m),u=null,_):m===null||A(m)?t(m):(e.consume(m),D)}function V(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||X(m)?U(m):(e.consume(m),V)}function _(m){return m===47||m===62||N(m)?E(m):t(m)}function B(m){return m===62?(e.consume(m),I):t(m)}function I(m){return m===null||A(m)?C(m):N(m)?(e.consume(m),I):t(m)}function C(m){return m===45&&i===2?(e.consume(m),Y):m===60&&i===1?(e.consume(m),Q):m===62&&i===4?(e.consume(m),ie):m===63&&i===3?(e.consume(m),h):m===93&&i===5?(e.consume(m),ce):A(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check($l,pe,H)(m)):m===null||A(m)?(e.exit("htmlFlowData"),H(m)):(e.consume(m),C)}function H(m){return e.check(Ql,q,pe)(m)}function q(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),z}function z(m){return m===null||A(m)?H(m):(e.enter("htmlFlowData"),C(m))}function Y(m){return m===45?(e.consume(m),h):C(m)}function Q(m){return m===47?(e.consume(m),a="",re):C(m)}function re(m){if(m===62){const le=a.toLowerCase();return ht.includes(le)?(e.consume(m),ie):C(m)}return ue(m)&&a.length<8?(e.consume(m),a+=String.fromCharCode(m),re):C(m)}function ce(m){return m===93?(e.consume(m),h):C(m)}function h(m){return m===62?(e.consume(m),ie):m===45&&i===2?(e.consume(m),h):C(m)}function ie(m){return m===null||A(m)?(e.exit("htmlFlowData"),pe(m)):(e.consume(m),ie)}function pe(m){return e.exit("htmlFlow"),n(m)}}function Kl(e,n,t){const r=this;return i;function i(a){return A(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),l):t(a)}function l(a){return r.parser.lazy[r.now().line]?t(a):n(a)}}function Wl(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(en,n,t)}}const Xl={name:"htmlText",tokenize:Jl};function Jl(e,n,t){const r=this;let i,l,a;return o;function o(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),u}function u(h){return h===33?(e.consume(h),c):h===47?(e.consume(h),U):h===63?(e.consume(h),E):ue(h)?(e.consume(h),V):t(h)}function c(h){return h===45?(e.consume(h),s):h===91?(e.consume(h),l=0,y):ue(h)?(e.consume(h),L):t(h)}function s(h){return h===45?(e.consume(h),p):t(h)}function f(h){return h===null?t(h):h===45?(e.consume(h),d):A(h)?(a=f,Q(h)):(e.consume(h),f)}function d(h){return h===45?(e.consume(h),p):f(h)}function p(h){return h===62?Y(h):h===45?d(h):f(h)}function y(h){const ie="CDATA[";return h===ie.charCodeAt(l++)?(e.consume(h),l===ie.length?b:y):t(h)}function b(h){return h===null?t(h):h===93?(e.consume(h),T):A(h)?(a=b,Q(h)):(e.consume(h),b)}function T(h){return h===93?(e.consume(h),w):b(h)}function w(h){return h===62?Y(h):h===93?(e.consume(h),w):b(h)}function L(h){return h===null||h===62?Y(h):A(h)?(a=L,Q(h)):(e.consume(h),L)}function E(h){return h===null?t(h):h===63?(e.consume(h),j):A(h)?(a=E,Q(h)):(e.consume(h),E)}function j(h){return h===62?Y(h):E(h)}function U(h){return ue(h)?(e.consume(h),x):t(h)}function x(h){return h===45||ne(h)?(e.consume(h),x):D(h)}function D(h){return A(h)?(a=D,Q(h)):N(h)?(e.consume(h),D):Y(h)}function V(h){return h===45||ne(h)?(e.consume(h),V):h===47||h===62||X(h)?_(h):t(h)}function _(h){return h===47?(e.consume(h),Y):h===58||h===95||ue(h)?(e.consume(h),B):A(h)?(a=_,Q(h)):N(h)?(e.consume(h),_):Y(h)}function B(h){return h===45||h===46||h===58||h===95||ne(h)?(e.consume(h),B):I(h)}function I(h){return h===61?(e.consume(h),C):A(h)?(a=I,Q(h)):N(h)?(e.consume(h),I):_(h)}function C(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),i=h,H):A(h)?(a=C,Q(h)):N(h)?(e.consume(h),C):(e.consume(h),q)}function H(h){return h===i?(e.consume(h),i=void 0,z):h===null?t(h):A(h)?(a=H,Q(h)):(e.consume(h),H)}function q(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||X(h)?_(h):(e.consume(h),q)}function z(h){return h===47||h===62||X(h)?_(h):t(h)}function Y(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),n):t(h)}function Q(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),re}function re(h){return N(h)?M(e,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):ce(h)}function ce(h){return e.enter("htmlTextData"),a(h)}}const Rn={name:"labelEnd",resolveAll:ta,resolveTo:ra,tokenize:ia},Zl={tokenize:la},ea={tokenize:aa},na={tokenize:oa};function ta(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&&se(e,0,e.length,t),e}function ra(e,n){let t=e.length,r=0,i,l,a,o;for(;t--;)if(i=e[t][1],l){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(l=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(a=t);const u={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[l][1].start},end:{...e[a][1].end}},s={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[a-2][1].start}};return o=[["enter",u,n],["enter",c,n]],o=te(o,e.slice(l+1,l+r+3)),o=te(o,[["enter",s,n]]),o=te(o,Fn(n.parser.constructs.insideSpan.null,e.slice(l+r+4,a-3),n)),o=te(o,[["exit",s,n],e[a-2],e[a-1],["exit",c,n]]),o=te(o,e.slice(a+1)),o=te(o,[["exit",u,n]]),se(e,l,e.length,o),e}function ia(e,n,t){const r=this;let i=r.events.length,l,a;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){l=r.events[i][1];break}return o;function o(d){return l?l._inactive?f(d):(a=r.parser.defined.includes(Ae(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),u):t(d)}function u(d){return d===40?e.attempt(Zl,s,a?s:f)(d):d===91?e.attempt(ea,s,a?c:f)(d):a?s(d):f(d)}function c(d){return e.attempt(na,s,f)(d)}function s(d){return n(d)}function f(d){return l._balanced=!0,t(d)}}function la(e,n,t){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return X(f)?Fe(e,l)(f):l(f)}function l(f){return f===41?s(f):ir(e,a,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function a(f){return X(f)?Fe(e,u)(f):s(f)}function o(f){return t(f)}function u(f){return f===34||f===39||f===40?ar(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):s(f)}function c(f){return X(f)?Fe(e,s)(f):s(f)}function s(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}function aa(e,n,t){const r=this;return i;function i(o){return lr.call(r,e,l,a,"reference","referenceMarker","referenceString")(o)}function l(o){return r.parser.defined.includes(Ae(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(o):t(o)}function a(o){return t(o)}}function oa(e,n,t){return r;function r(l){return e.enter("reference"),e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),i}function i(l){return l===93?(e.enter("referenceMarker"),e.consume(l),e.exit("referenceMarker"),e.exit("reference"),n):t(l)}}const ua={name:"labelStartImage",resolveAll:Rn.resolveAll,tokenize:sa};function sa(e,n,t){const r=this;return i;function i(o){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(o),e.exit("labelImageMarker"),l}function l(o){return o===91?(e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelImage"),a):t(o)}function a(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const ca={name:"labelStartLink",resolveAll:Rn.resolveAll,tokenize:pa};function pa(e,n,t){const r=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),l}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const sn={name:"lineEnding",tokenize:fa};function fa(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),M(e,n,"linePrefix")}}const Qe={name:"thematicBreak",tokenize:ha};function ha(e,n,t){let r=0,i;return l;function l(c){return e.enter("thematicBreak"),a(c)}function a(c){return i=c,o(c)}function o(c){return c===i?(e.enter("thematicBreakSequence"),u(c)):r>=3&&(c===null||A(c))?(e.exit("thematicBreak"),n(c)):t(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),N(c)?M(e,o,"whitespace")(c):o(c))}}const W={continuation:{tokenize:ya},exit:ka,name:"list",tokenize:ga},ma={partial:!0,tokenize:ba},da={partial:!0,tokenize:xa};function ga(e,n,t){const r=this,i=r.events[r.events.length-1];let l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return o;function o(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:En(p)){if(r.containerState.type||(r.containerState.type=y,e.enter(y,{_container:!0})),y==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Qe,t,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return t(p)}function u(p){return En(p)&&++a<10?(e.consume(p),u):(!r.interrupt||a<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):t(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(en,r.interrupt?t:s,e.attempt(ma,d,f))}function s(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function f(p){return N(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):t(p)}function d(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function ya(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(en,i,l);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,M(e,n,"listItemIndent",r.containerState.size+1)(o)}function l(o){return r.containerState.furtherBlankLines||!N(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,a(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(da,n,a)(o))}function a(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,M(e,e.attempt(W,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function xa(e,n,t){const r=this;return M(e,i,"listItemIndent",r.containerState.size+1);function i(l){const a=r.events[r.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===r.containerState.size?n(l):t(l)}}function ka(e){e.exit(this.containerState.type)}function ba(e,n,t){const r=this;return M(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const a=r.events[r.events.length-1];return!N(l)&&a&&a[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const mt={name:"setextUnderline",resolveTo:wa,tokenize:Sa};function wa(e,n){let t=e.length,r,i,l;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),!l&&e[t][1].type==="definition"&&(l=t);const a={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",l?(e.splice(i,0,["enter",a,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=a,e.push(["exit",a,n]),e}function Sa(e,n,t){const r=this;let i;return l;function l(c){let s=r.events.length,f;for(;s--;)if(r.events[s][1].type!=="lineEnding"&&r.events[s][1].type!=="linePrefix"&&r.events[s][1].type!=="content"){f=r.events[s][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=c,a(c)):t(c)}function a(c){return e.enter("setextHeadingLineSequence"),o(c)}function o(c){return c===i?(e.consume(c),o):(e.exit("setextHeadingLineSequence"),N(c)?M(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||A(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}const Ea={tokenize:Ca};function Ca(e){const n=this,t=e.attempt(en,r,e.attempt(this.parser.constructs.flowInitial,i,M(e,e.attempt(this.parser.constructs.flow,i,e.attempt(vl,i)),"linePrefix")));return t;function r(l){if(l===null){e.consume(l);return}return e.enter("lineEndingBlank"),e.consume(l),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(l){if(l===null){e.consume(l);return}return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const Ia={resolveAll:ur()},Ta=or("string"),Aa=or("text");function or(e){return{resolveAll:ur(e==="text"?Pa:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,a,o);return a;function a(s){return c(s)?l(s):o(s)}function o(s){if(s===null){t.consume(s);return}return t.enter("data"),t.consume(s),u}function u(s){return c(s)?(t.exit("data"),l(s)):(t.consume(s),u)}function c(s){if(s===null)return!0;const f=i[s];let d=-1;if(f)for(;++d<f.length;){const p=f[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function ur(e){return n;function n(t,r){let i=-1,l;for(;++i<=t.length;)l===void 0?t[i]&&t[i][1].type==="data"&&(l=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==l+2&&(t[l][1].end=t[i-1][1].end,t.splice(l+2,i-l-2),i=l+2),l=void 0);return e?e(t,r):t}}function Pa(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 l=i.length,a=-1,o=0,u;for(;l--;){const c=i[l];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)o++,a--;if(a)break;a=-1}else if(c===-2)u=!0,o++;else if(c!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(o=0),o){const c={type:t===e.length||u||o<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:r.start._bufferIndex+a,_index:r.start._index+l,line:r.end.line,column:r.end.column-o,offset:r.end.offset-o},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(t,0,["enter",c,n],["exit",c,n]),t+=2)}t++}return e}const va={42:W,43:W,45:W,48:W,49:W,50:W,51:W,52:W,53:W,54:W,55:W,56:W,57:W,62:er},La={91:Dl},Oa={[-2]:un,[-1]:un,32:un},za={35:jl,42:Qe,45:[mt,Qe],60:ql,61:mt,95:Qe,96:ft,126:ft},Na={38:tr,92:nr},Da={[-5]:sn,[-4]:sn,[-3]:sn,33:ua,38:tr,42:Cn,60:[cl,Xl],91:ca,92:[Ml,nr],93:Rn,95:Cn,96:El},_a={null:[Cn,Ia]},Fa={null:[42,95]},Ra={null:[]},Ma=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Fa,contentInitial:La,disable:Ra,document:va,flow:za,flowInitial:Oa,insideSpan:_a,string:Na,text:Da},Symbol.toStringTag,{value:"Module"}));function Ba(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={},l=[];let a=[],o=[];const u={attempt:D(U),check:D(x),consume:L,enter:E,exit:j,interrupt:D(x,{interrupt:!0})},c={code:null,containerState:{},defineSkip:b,events:[],now:y,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:f};let s=n.tokenize.call(c,u);return n.resolveAll&&l.push(n),c;function f(I){return a=te(a,I),T(),a[a.length-1]!==null?[]:(V(n,0),c.events=Fn(l,c.events,c),c.events)}function d(I,C){return Ha(p(I),C)}function p(I){return ja(a,I)}function y(){const{_bufferIndex:I,_index:C,line:H,column:q,offset:z}=r;return{_bufferIndex:I,_index:C,line:H,column:q,offset:z}}function b(I){i[I.line]=I.column,B()}function T(){let I;for(;r._index<a.length;){const C=a[r._index];if(typeof C=="string")for(I=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===I&&r._bufferIndex<C.length;)w(C.charCodeAt(r._bufferIndex));else w(C)}}function w(I){s=s(I)}function L(I){A(I)?(r.line++,r.column=1,r.offset+=I===-3?2:1,B()):I!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===a[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=I}function E(I,C){const H=C||{};return H.type=I,H.start=y(),c.events.push(["enter",H,c]),o.push(H),H}function j(I){const C=o.pop();return C.end=y(),c.events.push(["exit",C,c]),C}function U(I,C){V(I,C.from)}function x(I,C){C.restore()}function D(I,C){return H;function H(q,z,Y){let Q,re,ce,h;return Array.isArray(q)?pe(q):"tokenize"in q?pe([q]):ie(q);function ie(G){return Le;function Le(de){const Ee=de!==null&&G[de],Ce=de!==null&&G.null,Ue=[...Array.isArray(Ee)?Ee:Ee?[Ee]:[],...Array.isArray(Ce)?Ce:Ce?[Ce]:[]];return pe(Ue)(de)}}function pe(G){return Q=G,re=0,G.length===0?Y:m(G[re])}function m(G){return Le;function Le(de){return h=_(),ce=G,G.partial||(c.currentConstruct=G),G.name&&c.parser.constructs.disable.null.includes(G.name)?xe():G.tokenize.call(C?Object.assign(Object.create(c),C):c,u,le,xe)(de)}}function le(G){return I(ce,h),z}function xe(G){return h.restore(),++re<Q.length?m(Q[re]):Y}}}function V(I,C){I.resolveAll&&!l.includes(I)&&l.push(I),I.resolve&&se(c.events,C,c.events.length-C,I.resolve(c.events.slice(C),c)),I.resolveTo&&(c.events=I.resolveTo(c.events,c))}function _(){const I=y(),C=c.previous,H=c.currentConstruct,q=c.events.length,z=Array.from(o);return{from:q,restore:Y};function Y(){r=I,c.previous=C,c.currentConstruct=H,c.events.length=q,o=z,B()}}function B(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ja(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let a;if(t===i)a=[e[t].slice(r,l)];else{if(a=e.slice(t,i),r>-1){const o=a[0];typeof o=="string"?a[0]=o.slice(r):a.shift()}l>0&&a.push(e[i].slice(0,l))}return a}function Ha(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let a;if(typeof l=="string")a=l;else switch(l){case-5:{a="\r";break}case-4:{a=`
`;break}case-3:{a=`\r
`;break}case-2:{a=n?" ":" ";break}case-1:{if(!n&&i)continue;a=" ";break}default:a=String.fromCharCode(l)}i=l===-2,r.push(a)}return r.join("")}function Ua(e){const r={constructs:Ki([Ma,...(e||{}).extensions||[]]),content:i(rl),defined:[],document:i(ll),flow:i(Ea),lazy:{},string:i(Ta),text:i(Aa)};return r;function i(l){return a;function a(o){return Ba(r,l,o)}}}function Va(e){for(;!rr(e););return e}const dt=/[\0\t\n\r]/g;function qa(){let e=1,n="",t=!0,r;return i;function i(l,a,o){const u=[];let c,s,f,d,p;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(a||void 0).decode(l)),f=0,n="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(dt.lastIndex=f,c=dt.exec(l),d=c&&c.index!==void 0?c.index:l.length,p=l.charCodeAt(d),!c){n=l.slice(f);break}if(p===10&&f===d&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),f<d&&(u.push(l.slice(f,d)),e+=d-f),p){case 0:{u.push(65533),e++;break}case 9:{for(s=Math.ceil(e/4)*4,u.push(-2);e++<s;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}f=d+1}return o&&(r&&u.push(-5),n&&u.push(n),u.push(null)),u}}const $a=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Qa(e){return e.replace($a,Ga)}function Ga(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Zt(t.slice(l?2:1),l?16:10)}return _n(t)||e}const sr={}.hasOwnProperty;function Ya(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Ka(t)(Va(Ua(t).document().write(qa()(e,n,!0))))}function Ka(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Qn),autolinkProtocol:_,autolinkEmail:_,atxHeading:l(Vn),blockQuote:l(Ce),characterEscape:_,characterReference:_,codeFenced:l(Ue),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:l(Ue,a),codeText:l(Ir,a),codeTextData:_,data:_,codeFlowValue:_,definition:l(Tr),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:l(Ar),hardBreakEscape:l(qn),hardBreakTrailing:l(qn),htmlFlow:l($n,a),htmlFlowData:_,htmlText:l($n,a),htmlTextData:_,image:l(Pr),label:a,link:l(Qn),listItem:l(vr),listItemValue:d,listOrdered:l(Gn,f),listUnordered:l(Gn),paragraph:l(Lr),reference:m,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:l(Vn),strong:l(Or),thematicBreak:l(Nr)},exit:{atxHeading:u(),atxHeadingSequence:U,autolink:u(),autolinkEmail:Ee,autolinkProtocol:de,blockQuote:u(),characterEscapeValue:B,characterReferenceMarkerHexadecimal:xe,characterReferenceMarkerNumeric:xe,characterReferenceValue:G,characterReference:Le,codeFenced:u(T),codeFencedFence:b,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:B,codeIndented:u(w),codeText:u(z),codeTextData:B,data:B,definition:u(),definitionDestinationString:j,definitionLabelString:L,definitionTitleString:E,emphasis:u(),hardBreakEscape:u(C),hardBreakTrailing:u(C),htmlFlow:u(H),htmlFlowData:B,htmlText:u(q),htmlTextData:B,image:u(Q),label:ce,labelText:re,lineEnding:I,link:u(Y),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:le,resourceDestinationString:h,resourceTitleString:ie,resource:pe,setextHeading:u(V),setextHeadingLineSequence:D,setextHeadingText:x,strong:u(),thematicBreak:u()}};cr(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(g){let S={type:"root",children:[]};const v={stack:[S],tokenStack:[],config:n,enter:o,exit:c,buffer:a,resume:s,data:t},O=[];let F=-1;for(;++F<g.length;)if(g[F][1].type==="listOrdered"||g[F][1].type==="listUnordered")if(g[F][0]==="enter")O.push(F);else{const ae=O.pop();F=i(g,ae,F)}for(F=-1;++F<g.length;){const ae=n[g[F][0]];sr.call(ae,g[F][1].type)&&ae[g[F][1].type].call(Object.assign({sliceSerialize:g[F][2].sliceSerialize},v),g[F][1])}if(v.tokenStack.length>0){const ae=v.tokenStack[v.tokenStack.length-1];(ae[1]||gt).call(v,void 0,ae[0])}for(S.position={start:ge(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:ge(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},F=-1;++F<n.transforms.length;)S=n.transforms[F](S)||S;return S}function i(g,S,v){let O=S-1,F=-1,ae=!1,ke,fe,Oe,ze;for(;++O<=v;){const Z=g[O];switch(Z[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Z[0]==="enter"?F++:F--,ze=void 0;break}case"lineEndingBlank":{Z[0]==="enter"&&(ke&&!ze&&!F&&!Oe&&(Oe=O),ze=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ze=void 0}if(!F&&Z[0]==="enter"&&Z[1].type==="listItemPrefix"||F===-1&&Z[0]==="exit"&&(Z[1].type==="listUnordered"||Z[1].type==="listOrdered")){if(ke){let Ie=O;for(fe=void 0;Ie--;){const he=g[Ie];if(he[1].type==="lineEnding"||he[1].type==="lineEndingBlank"){if(he[0]==="exit")continue;fe&&(g[fe][1].type="lineEndingBlank",ae=!0),he[1].type="lineEnding",fe=Ie}else if(!(he[1].type==="linePrefix"||he[1].type==="blockQuotePrefix"||he[1].type==="blockQuotePrefixWhitespace"||he[1].type==="blockQuoteMarker"||he[1].type==="listItemIndent"))break}Oe&&(!fe||Oe<fe)&&(ke._spread=!0),ke.end=Object.assign({},fe?g[fe][1].start:Z[1].end),g.splice(fe||O,0,["exit",ke,Z[2]]),O++,v++}if(Z[1].type==="listItemPrefix"){const Ie={type:"listItem",_spread:!1,start:Object.assign({},Z[1].start),end:void 0};ke=Ie,g.splice(O,0,["enter",Ie,Z[2]]),O++,v++,Oe=void 0,ze=!0}}}return g[S][1]._spread=ae,v}function l(g,S){return v;function v(O){o.call(this,g(O),O),S&&S.call(this,O)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(g,S,v){this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([S,v||void 0]),g.position={start:ge(S.start),end:void 0}}function u(g){return S;function S(v){g&&g.call(this,v),c.call(this,v)}}function c(g,S){const v=this.stack.pop(),O=this.tokenStack.pop();if(O)O[0].type!==g.type&&(S?S.call(this,g,O[0]):(O[1]||gt).call(this,g,O[0]));else throw new Error("Cannot close `"+g.type+"` ("+_e({start:g.start,end:g.end})+"): it’s not open");v.position.end=ge(g.end)}function s(){return Gi(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(g){if(this.data.expectingFirstListItemValue){const S=this.stack[this.stack.length-2];S.start=Number.parseInt(this.sliceSerialize(g),10),this.data.expectingFirstListItemValue=void 0}}function p(){const g=this.resume(),S=this.stack[this.stack.length-1];S.lang=g}function y(){const g=this.resume(),S=this.stack[this.stack.length-1];S.meta=g}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function w(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g.replace(/(\r?\n|\r)$/g,"")}function L(g){const S=this.resume(),v=this.stack[this.stack.length-1];v.label=S,v.identifier=Ae(this.sliceSerialize(g)).toLowerCase()}function E(){const g=this.resume(),S=this.stack[this.stack.length-1];S.title=g}function j(){const g=this.resume(),S=this.stack[this.stack.length-1];S.url=g}function U(g){const S=this.stack[this.stack.length-1];if(!S.depth){const v=this.sliceSerialize(g).length;S.depth=v}}function x(){this.data.setextHeadingSlurpLineEnding=!0}function D(g){const S=this.stack[this.stack.length-1];S.depth=this.sliceSerialize(g).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function _(g){const v=this.stack[this.stack.length-1].children;let O=v[v.length-1];(!O||O.type!=="text")&&(O=zr(),O.position={start:ge(g.start),end:void 0},v.push(O)),this.stack.push(O)}function B(g){const S=this.stack.pop();S.value+=this.sliceSerialize(g),S.position.end=ge(g.end)}function I(g){const S=this.stack[this.stack.length-1];if(this.data.atHardBreak){const v=S.children[S.children.length-1];v.position.end=ge(g.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(S.type)&&(_.call(this,g),B.call(this,g))}function C(){this.data.atHardBreak=!0}function H(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g}function q(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g}function z(){const g=this.resume(),S=this.stack[this.stack.length-1];S.value=g}function Y(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const S=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=S,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function Q(){const g=this.stack[this.stack.length-1];if(this.data.inReference){const S=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=S,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function re(g){const S=this.sliceSerialize(g),v=this.stack[this.stack.length-2];v.label=Qa(S),v.identifier=Ae(S).toLowerCase()}function ce(){const g=this.stack[this.stack.length-1],S=this.resume(),v=this.stack[this.stack.length-1];if(this.data.inReference=!0,v.type==="link"){const O=g.children;v.children=O}else v.alt=S}function h(){const g=this.resume(),S=this.stack[this.stack.length-1];S.url=g}function ie(){const g=this.resume(),S=this.stack[this.stack.length-1];S.title=g}function pe(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function le(g){const S=this.resume(),v=this.stack[this.stack.length-1];v.label=S,v.identifier=Ae(this.sliceSerialize(g)).toLowerCase(),this.data.referenceType="full"}function xe(g){this.data.characterReferenceType=g.type}function G(g){const S=this.sliceSerialize(g),v=this.data.characterReferenceType;let O;v?(O=Zt(S,v==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):O=_n(S);const F=this.stack[this.stack.length-1];F.value+=O}function Le(g){const S=this.stack.pop();S.position.end=ge(g.end)}function de(g){B.call(this,g);const S=this.stack[this.stack.length-1];S.url=this.sliceSerialize(g)}function Ee(g){B.call(this,g);const S=this.stack[this.stack.length-1];S.url="mailto:"+this.sliceSerialize(g)}function Ce(){return{type:"blockquote",children:[]}}function Ue(){return{type:"code",lang:null,meta:null,value:""}}function Ir(){return{type:"inlineCode",value:""}}function Tr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ar(){return{type:"emphasis",children:[]}}function Vn(){return{type:"heading",depth:0,children:[]}}function qn(){return{type:"break"}}function $n(){return{type:"html",value:""}}function Pr(){return{type:"image",title:null,url:"",alt:null}}function Qn(){return{type:"link",title:null,url:"",children:[]}}function Gn(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function vr(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function Lr(){return{type:"paragraph",children:[]}}function Or(){return{type:"strong",children:[]}}function zr(){return{type:"text",value:""}}function Nr(){return{type:"thematicBreak"}}}function ge(e){return{line:e.line,column:e.column,offset:e.offset}}function cr(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?cr(e,r):Wa(e,r)}}function Wa(e,n){let t;for(t in n)if(sr.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 gt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+_e({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+_e({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+_e({start:n.start,end:n.end})+") is still open")}function Xa(e){const n=this;n.parser=t;function t(r){return Ya(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Ja(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 Za(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
`}]}function eo(e,n){const t=n.value?n.value+`
`:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(l.data={meta:n.meta}),e.patch(n,l),l=e.applyData(n,l),l={type:"element",tagName:"pre",properties:{},children:[l]},e.patch(n,l),l}function no(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function to(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ro(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=ve(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let a,o=e.footnoteCounts.get(r);o===void 0?(o=0,e.footnoteOrder.push(r),a=e.footnoteOrder.length):a=l+1,o+=1,e.footnoteCounts.set(r,o);const u={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(o>1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(n,u);const c={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(n,c),e.applyData(n,c)}function io(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 lo(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function pr(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),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=r:i.push({type:"text",value:r}),i}function ao(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return pr(e,n);const i={src:ve(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,l),e.applyData(n,l)}function oo(e,n){const t={src:ve(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 uo(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 so(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return pr(e,n);const i={href:ve(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,l),e.applyData(n,l)}function co(e,n){const t={href:ve(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 po(e,n,t){const r=e.all(n),i=t?fo(t):fr(n),l={},a=[];if(typeof n.checked=="boolean"){const s=r[0];let f;s&&s.type==="element"&&s.tagName==="p"?f=s:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let o=-1;for(;++o<r.length;){const s=r[o];(i||o!==0||s.type!=="element"||s.tagName!=="p")&&a.push({type:"text",value:`
`}),s.type==="element"&&s.tagName==="p"&&!i?a.push(...s.children):a.push(s)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&a.push({type:"text",value:`
`});const c={type:"element",tagName:"li",properties:l,children:a};return e.patch(n,c),e.applyData(n,c)}function fo(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=fr(t[r])}return n}function fr(e){const n=e.spread;return n??e.children.length>1}function ho(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 a=r[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}const l={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,l),e.applyData(n,l)}function mo(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function go(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function yo(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function xo(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],a),i.push(a)}if(t.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},o=On(n.children[1]),u=Qt(n.children[n.children.length-1]);o&&u&&(a.position={start:o,end:u}),i.push(a)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function ko(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",a=t&&t.type==="table"?t.align:void 0,o=a?a.length:n.children.length;let u=-1;const c=[];for(;++u<o;){const f=n.children[u],d={},p=a?a[u]:void 0;p&&(d.align=p);let y={type:"element",tagName:l,properties:d,children:[]};f&&(y.children=e.all(f),e.patch(f,y),y=e.applyData(f,y)),c.push(y)}const s={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(n,s),e.applyData(n,s)}function bo(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const yt=9,xt=32;function wo(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const l=[];for(;r;)l.push(kt(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(kt(n.slice(i),i>0,!1)),l.join("")}function kt(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===yt||l===xt;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===yt||l===xt;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function So(e,n){const t={type:"text",value:wo(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Eo(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Co={blockquote:Ja,break:Za,code:eo,delete:no,emphasis:to,footnoteReference:ro,heading:io,html:lo,imageReference:ao,image:oo,inlineCode:uo,linkReference:so,link:co,listItem:po,list:ho,paragraph:mo,root:go,strong:yo,table:xo,tableCell:bo,tableRow:ko,text:So,thematicBreak:Eo,toml:Ve,yaml:Ve,definition:Ve,footnoteDefinition:Ve};function Ve(){}const hr=-1,nn=0,Re=1,Ke=2,Mn=3,Bn=4,jn=5,Hn=6,mr=7,dr=8,Io=typeof self=="object"?self:globalThis,bt=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Io[e](n)},To=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,a]=n[i];switch(l){case nn:case hr:return t(a,i);case Re:{const o=t([],i);for(const u of a)o.push(r(u));return o}case Ke:{const o=t({},i);for(const[u,c]of a)o[r(u)]=r(c);return o}case Mn:return t(new Date(a),i);case Bn:{const{source:o,flags:u}=a;return t(new RegExp(o,u),i)}case jn:{const o=t(new Map,i);for(const[u,c]of a)o.set(r(u),r(c));return o}case Hn:{const o=t(new Set,i);for(const u of a)o.add(r(u));return o}case mr:{const{name:o,message:u}=a;return t(bt(o,u),i)}case dr:return t(BigInt(a),i);case"BigInt":return t(Object(BigInt(a)),i);case"ArrayBuffer":return t(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:o}=new Uint8Array(a);return t(new DataView(o),a)}}return t(bt(l,a),i)};return r},wt=e=>To(new Map,e)(0),Te="",{toString:Ao}={},{keys:Po}=Object,De=e=>{const n=typeof e;if(n!=="object"||!e)return[nn,n];const t=Ao.call(e).slice(8,-1);switch(t){case"Array":return[Re,Te];case"Object":return[Ke,Te];case"Date":return[Mn,Te];case"RegExp":return[Bn,Te];case"Map":return[jn,Te];case"Set":return[Hn,Te];case"DataView":return[Re,t]}return t.includes("Array")?[Re,t]:t.includes("Error")?[mr,t]:[Ke,t]},qe=([e,n])=>e===nn&&(n==="function"||n==="symbol"),vo=(e,n,t,r)=>{const i=(a,o)=>{const u=r.push(a)-1;return t.set(o,u),u},l=a=>{if(t.has(a))return t.get(a);let[o,u]=De(a);switch(o){case nn:{let s=a;switch(u){case"bigint":o=dr,s=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);s=null;break;case"undefined":return i([hr],a)}return i([o,s],a)}case Re:{if(u){let d=a;return u==="DataView"?d=new Uint8Array(a.buffer):u==="ArrayBuffer"&&(d=new Uint8Array(a)),i([u,[...d]],a)}const s=[],f=i([o,s],a);for(const d of a)s.push(l(d));return f}case Ke:{if(u)switch(u){case"BigInt":return i([u,a.toString()],a);case"Boolean":case"Number":case"String":return i([u,a.valueOf()],a)}if(n&&"toJSON"in a)return l(a.toJSON());const s=[],f=i([o,s],a);for(const d of Po(a))(e||!qe(De(a[d])))&&s.push([l(d),l(a[d])]);return f}case Mn:return i([o,a.toISOString()],a);case Bn:{const{source:s,flags:f}=a;return i([o,{source:s,flags:f}],a)}case jn:{const s=[],f=i([o,s],a);for(const[d,p]of a)(e||!(qe(De(d))||qe(De(p))))&&s.push([l(d),l(p)]);return f}case Hn:{const s=[],f=i([o,s],a);for(const d of a)(e||!qe(De(d)))&&s.push(l(d));return f}}const{message:c}=a;return i([o,{name:u,message:c}],a)};return l},St=(e,{json:n,lossy:t}={})=>{const r=[];return vo(!(n||t),!!n,new Map,r)(e),r},We=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?wt(St(e,n)):structuredClone(e):(e,n)=>wt(St(e,n));function Lo(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 Oo(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function zo(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Lo,r=e.options.footnoteBackLabel||Oo,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let u=-1;for(;++u<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[u]);if(!c)continue;const s=e.all(c),f=String(c.identifier).toUpperCase(),d=ve(f.toLowerCase());let p=0;const y=[],b=e.footnoteCounts.get(f);for(;b!==void 0&&++p<=b;){y.length>0&&y.push({type:"text",value:" "});let L=typeof t=="string"?t:t(u,p);typeof L=="string"&&(L={type:"text",value:L}),y.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(L)?L:[L]})}const T=s[s.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const L=T.children[T.children.length-1];L&&L.type==="text"?L.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...y)}else s.push(...y);const w={type:"element",tagName:"li",properties:{id:n+"fn-"+d},children:e.wrap(s,!0)};e.patch(c,w),o.push(w)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...We(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:`
`}]}}const gr=function(e){if(e==null)return Fo;if(typeof e=="function")return tn(e);if(typeof e=="object")return Array.isArray(e)?No(e):Do(e);if(typeof e=="string")return _o(e);throw new Error("Expected function, string, or object as test")};function No(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=gr(e[t]);return tn(r);function r(...i){let l=-1;for(;++l<n.length;)if(n[l].apply(this,i))return!0;return!1}}function Do(e){const n=e;return tn(t);function t(r){const i=r;let l;for(l in e)if(i[l]!==n[l])return!1;return!0}}function _o(e){return tn(n);function n(t){return t&&t.type===e}}function tn(e){return n;function n(t,r,i){return!!(Ro(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Fo(){return!0}function Ro(e){return e!==null&&typeof e=="object"&&"type"in e}const yr=[],Mo=!0,Et=!1,Bo="skip";function jo(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const l=gr(i),a=r?-1:1;o(e,void 0,[])();function o(u,c,s){const f=u&&typeof u=="object"?u:{};if(typeof f.type=="string"){const p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(u.type+(p?"<"+p+">":""))+")"})}return d;function d(){let p=yr,y,b,T;if((!n||l(u,c,s[s.length-1]||void 0))&&(p=Ho(t(u,s)),p[0]===Et))return p;if("children"in u&&u.children){const w=u;if(w.children&&p[0]!==Bo)for(b=(r?w.children.length:-1)+a,T=s.concat(w);b>-1&&b<w.children.length;){const L=w.children[b];if(y=o(L,b,T)(),y[0]===Et)return y;b=typeof y[1]=="number"?y[1]:b+a}}return p}}}function Ho(e){return Array.isArray(e)?e:typeof e=="number"?[Mo,e]:e==null?yr:[e]}function xr(e,n,t,r){let i,l,a;typeof n=="function"&&typeof t!="function"?(l=void 0,a=n,i=t):(l=n,a=t,i=r),jo(e,l,o,i);function o(u,c){const s=c[c.length-1],f=s?s.children.indexOf(u):void 0;return a(u,f,s)}}const In={}.hasOwnProperty,Uo={};function Vo(e,n){const t=n||Uo,r=new Map,i=new Map,l=new Map,a={...Co,...t.handlers},o={all:c,applyData:$o,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:a,one:u,options:t,patch:qo,wrap:Go};return xr(e,function(s){if(s.type==="definition"||s.type==="footnoteDefinition"){const f=s.type==="definition"?r:i,d=String(s.identifier).toUpperCase();f.has(d)||f.set(d,s)}}),o;function u(s,f){const d=s.type,p=o.handlers[d];if(In.call(o.handlers,d)&&p)return p(o,s,f);if(o.options.passThrough&&o.options.passThrough.includes(d)){if("children"in s){const{children:b,...T}=s,w=We(T);return w.children=o.all(s),w}return We(s)}return(o.options.unknownHandler||Qo)(o,s,f)}function c(s){const f=[];if("children"in s){const d=s.children;let p=-1;for(;++p<d.length;){const y=o.one(d[p],s);if(y){if(p&&d[p-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=Ct(y.value)),!Array.isArray(y)&&y.type==="element")){const b=y.children[0];b&&b.type==="text"&&(b.value=Ct(b.value))}Array.isArray(y)?f.push(...y):f.push(y)}}}return f}}function qo(e,n){e.position&&(n.position=Ii(e))}function $o(e,n){let t=n;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{const a="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:a}}t.type==="element"&&l&&Object.assign(t.properties,We(l)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function Qo(e,n){const t=n.data||{},r="value"in n&&!(In.call(t,"hProperties")||In.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 Go(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
`});++r<e.length;)r&&t.push({type:"text",value:`
`}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
`}),t}function Ct(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function It(e,n){const t=Vo(e,n),r=t.one(e,void 0),i=zo(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
`},i),l}function Yo(e,n){return e&&"run"in e?async function(t,r){const i=It(t,{file:r,...n});await e.run(i,r)}:function(t,r){return It(t,{file:r,...e||n})}}function Tt(e){if(e)throw e}var Ge=Object.prototype.hasOwnProperty,kr=Object.prototype.toString,At=Object.defineProperty,Pt=Object.getOwnPropertyDescriptor,vt=function(n){return typeof Array.isArray=="function"?Array.isArray(n):kr.call(n)==="[object Array]"},Lt=function(n){if(!n||kr.call(n)!=="[object Object]")return!1;var t=Ge.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&Ge.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||Ge.call(n,i)},Ot=function(n,t){At&&t.name==="__proto__"?At(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},zt=function(n,t){if(t==="__proto__")if(Ge.call(n,t)){if(Pt)return Pt(n,t).value}else return;return n[t]},Ko=function e(){var n,t,r,i,l,a,o=arguments[0],u=1,c=arguments.length,s=!1;for(typeof o=="boolean"&&(s=o,o=arguments[1]||{},u=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});u<c;++u)if(n=arguments[u],n!=null)for(t in n)r=zt(o,t),i=zt(n,t),o!==i&&(s&&i&&(Lt(i)||(l=vt(i)))?(l?(l=!1,a=r&&vt(r)?r:[]):a=r&&Lt(r)?r:{},Ot(o,{name:t,newValue:e(s,a,i)})):typeof i<"u"&&Ot(o,{name:t,newValue:i}));return o};const cn=Mt(Ko);function Tn(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 Wo(){const e=[],n={run:t,use:r};return n;function t(...i){let l=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);o(null,...i);function o(u,...c){const s=e[++l];let f=-1;if(u){a(u);return}for(;++f<i.length;)(c[f]===null||c[f]===void 0)&&(c[f]=i[f]);i=c,s?Xo(s,o)(...c):a(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Xo(e,n){let t;return r;function r(...a){const o=e.length>a.length;let u;o&&a.push(i);try{u=e.apply(this,a)}catch(c){const s=c;if(o&&t)throw s;return i(s)}o||(u&&u.then&&typeof u.then=="function"?u.then(l,i):u instanceof Error?i(u):l(u))}function i(a,...o){t||(t=!0,n(a,...o))}function l(a){i(null,a)}}const oe={basename:Jo,dirname:Zo,extname:eu,join:nu,sep:"/"};function Jo(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');je(e);let t=0,r=-1,i=e.length,l;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else r<0&&(l=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let a=-1,o=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else a<0&&(l=!0,a=i+1),o>-1&&(e.codePointAt(i)===n.codePointAt(o--)?o<0&&(r=i):(o=-1,r=a));return t===r?r=a:r<0&&(r=e.length),e.slice(t,r)}function Zo(e){if(je(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function eu(e){je(e);let n=e.length,t=-1,r=0,i=-1,l=0,a;for(;n--;){const o=e.codePointAt(n);if(o===47){if(a){r=n+1;break}continue}t<0&&(a=!0,t=n+1),o===46?i<0?i=n:l!==1&&(l=1):i>-1&&(l=-1)}return i<0||t<0||l===0||l===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function nu(...e){let n=-1,t;for(;++n<e.length;)je(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":tu(t)}function tu(e){je(e);const n=e.codePointAt(0)===47;let t=ru(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function ru(e,n){let t="",r=0,i=-1,l=0,a=-1,o,u;for(;++a<=e.length;){if(a<e.length)o=e.codePointAt(a);else{if(o===47)break;o=47}if(o===47){if(!(i===a-1||l===1))if(i!==a-1&&l===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=a,l=0;continue}}else if(t.length>0){t="",r=0,i=a,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,a):t=e.slice(i+1,a),r=a-i-1;i=a,l=0}else o===46&&l>-1?l++:l=-1}return t}function je(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const iu={cwd:lu};function lu(){return"/"}function An(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function au(e){if(typeof e=="string")e=new URL(e);else if(!An(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 ou(e)}function ou(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 pn=["history","path","basename","stem","extname","dirname"];class br{constructor(n){let t;n?An(n)?t={path:n}:typeof n=="string"||uu(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":iu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<pn.length;){const l=pn[r];l in t&&t[l]!==void 0&&t[l]!==null&&(this[l]=l==="history"?[...t[l]]:t[l])}let i;for(i in t)pn.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?oe.basename(this.path):void 0}set basename(n){hn(n,"basename"),fn(n,"basename"),this.path=oe.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?oe.dirname(this.path):void 0}set dirname(n){Nt(this.basename,"dirname"),this.path=oe.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?oe.extname(this.path):void 0}set extname(n){if(fn(n,"extname"),Nt(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=oe.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){An(n)&&(n=au(n)),hn(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?oe.basename(this.path,this.extname):void 0}set stem(n){hn(n,"stem"),fn(n,"stem"),this.path=oe.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 K(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 fn(e,n){if(e&&e.includes(oe.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+oe.sep+"`")}function hn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Nt(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function uu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const su=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},cu={}.hasOwnProperty;class Un extends su{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=Wo()}copy(){const n=new Un;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(cn(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(gn("data",this.frozen),this.namespace[n]=t,this):cu.call(this.namespace,n)&&this.namespace[n]||void 0:n?(gn("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=$e(n),r=this.parser||this.Parser;return mn("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),mn("process",this.parser||this.Parser),dn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,a){const o=$e(n),u=r.parse(o);r.run(u,o,function(s,f,d){if(s||!f||!d)return c(s);const p=f,y=r.stringify(p,d);hu(y)?d.value=y:d.result=y,c(s,d)});function c(s,f){s||!f?a(s):l?l(f):t(void 0,f)}}}processSync(n){let t=!1,r;return this.freeze(),mn("processSync",this.parser||this.Parser),dn("processSync",this.compiler||this.Compiler),this.process(n,i),_t("processSync","process",t),r;function i(l,a){t=!0,Tt(l),r=a}}run(n,t,r){Dt(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?l(void 0,r):new Promise(l);function l(a,o){const u=$e(t);i.run(n,u,c);function c(s,f,d){const p=f||n;s?o(s):a?a(p):r(void 0,p,d)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),_t("runSync","run",r),i;function l(a,o){Tt(a),i=o,r=!0}}stringify(n,t){this.freeze();const r=$e(t),i=this.compiler||this.Compiler;return dn("stringify",i),Dt(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(gn("use",this.frozen),n!=null)if(typeof n=="function")u(n,t);else if(typeof n=="object")Array.isArray(n)?o(n):a(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function l(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[s,...f]=c;u(s,f)}else a(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function a(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(c.plugins),c.settings&&(i.settings=cn(!0,i.settings,c.settings))}function o(c){let s=-1;if(c!=null)if(Array.isArray(c))for(;++s<c.length;){const f=c[s];l(f)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,s){let f=-1,d=-1;for(;++f<r.length;)if(r[f][0]===c){d=f;break}if(d===-1)r.push([c,...s]);else if(s.length>0){let[p,...y]=s;const b=r[d][1];Tn(b)&&Tn(p)&&(p=cn(!0,b,p)),r[d]=[c,p,...y]}}}}const pu=new Un().freeze();function mn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function dn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function gn(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 Dt(e){if(!Tn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function _t(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function $e(e){return fu(e)?e:new br(e)}function fu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function hu(e){return typeof e=="string"||mu(e)}function mu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const du="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ft=[],Rt={allowDangerousHtml:!0},gu=/^(https?|ircs?|mailto|xmpp)$/i,yu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Gu(e){const n=xu(e),t=ku(e);return bu(n.runSync(n.parse(t),t),e)}function xu(e){const n=e.rehypePlugins||Ft,t=e.remarkPlugins||Ft,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Rt}:Rt;return pu().use(Xa).use(t).use(Yo,r).use(n)}function ku(e){const n=e.children||"",t=new br;return typeof n=="string"&&(t.value=n),t}function bu(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,a=n.skipHtml,o=n.unwrapDisallowed,u=n.urlTransform||wu;for(const s of yu)Object.hasOwn(n,s.from)&&(""+s.from+(s.to?"use `"+s.to+"` instead":"remove it")+du+s.id,void 0);return xr(e,c),Li(e,{Fragment:ln.Fragment,components:i,ignoreInvalidStyle:!0,jsx:ln.jsx,jsxs:ln.jsxs,passKeys:!0,passNode:!0});function c(s,f,d){if(s.type==="raw"&&d&&typeof f=="number")return a?d.children.splice(f,1):d.children[f]={type:"text",value:s.value},f;if(s.type==="element"){let p;for(p in on)if(Object.hasOwn(on,p)&&Object.hasOwn(s.properties,p)){const y=s.properties[p],b=on[p];(b===null||b.includes(s.tagName))&&(s.properties[p]=u(String(y||""),p,s))}}if(s.type==="element"){let p=t?!t.includes(s.tagName):l?l.includes(s.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(s,f,d)),p&&d&&typeof f=="number")return o&&s.children?d.children.splice(f,1,...s.children):d.children.splice(f,1),f}}}function wu(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||gu.test(e.slice(0,n))?e:""}const Su=[{value:"VEGETARIAN",label:"Vegetarian"},{value:"VEGAN",label:"Vegan"},{value:"GLUTEN_FREE",label:"Gluten-Free",shortLabel:"GF"},{value:"DAIRY_FREE",label:"Dairy-Free"},{value:"NUT_FREE",label:"Nut-Free"},{value:"HALAL",label:"Halal"},{value:"KOSHER",label:"Kosher"},{value:"SPICY",label:"Spicy"},{value:"HEALTHY",label:"Healthy"},{value:"POPULAR",label:"Most ordered"},{value:"STAR",label:"Chef's pick"},{value:"AWARD",label:"Award-winning"}],Eu=[{value:"DESSERT",label:"Dessert"},{value:"DRINKS",label:"Drinks"},{value:"UTENSILS",label:"Utensils"}],Cu=[{value:"CAN",label:"Can"},{value:"CARAFE",label:"Carafe"},{value:"ITEM",label:"Item"},{value:"TRAY",label:"Tray"},{value:"HALF_PAN",label:"Half pan"},{value:"FULL_PAN",label:"Full pan"},{value:"PAN",label:"Pan"},{value:"PLATTER",label:"Platter"},{value:"PERSON",label:"Per person"},{value:"DOZEN",label:"Dozen"},{value:"PIECE",label:"Piece"},{value:"BOX",label:"Box"},{value:"BOWL",label:"Bowl"},{value:"BOTTLE",label:"Bottle"},{value:"GALLON",label:"Gallon"},{value:"HALF_GALLON",label:"Half gallon"},{value:"LITER",label:"Liter"},{value:"PACKAGE",label:"Package"},{value:"KIT",label:"Kit"},{value:"PINT",label:"Pint"},{value:"POUND",label:"Pound"},{value:"QUART",label:"Quart"},{value:"SIX_PACK",label:"6-pack"},{value:"TWELVE_PACK",label:"12-pack"},{value:"TWO_LITER",label:"2 liter"}],Yu=e=>{var n;return((n=Su.find(t=>t.value===e))==null?void 0:n.label)??e},Ku=e=>{var n;return((n=Eu.find(t=>t.value===e))==null?void 0:n.label)??e},Iu={DESSERT:"Shown to guests as a dessert item.",DRINKS:"Shown to guests as a beverage item.",UTENSILS:"Shown to guests as utensils or serving supplies."},Wu=e=>Iu[e]??"Shown to guests as a tagged item.",Xu=e=>{var n;return((n=Cu.find(t=>t.value===e))==null?void 0:n.label)??e},Tu="catering packages",wr="packages",Au=e=>{var t,r;const n=(t=e.name)==null?void 0:t.trim().toLowerCase();return e.protected===!0||((r=e.tags)==null?void 0:r.some(i=>i.trim().toLowerCase()===wr))===!0||n===Tu},Pu=e=>({categoryId:e.categoryId,name:e.name,description:e.description,sortOrder:e.sortOrder,protected:e.protected,tags:e.tags,isPackageCategory:Au(e)}),vu=e=>({choiceId:e.choiceId,name:e.name,description:e.description,priceDelta:e.priceDelta,foodLabelingTags:e.foodLabelingTags,itemTypeTags:e.itemTypeTags,sortOrder:e.sortOrder,default:e.default}),Lu=e=>({optionId:e.optionId,name:e.name,description:e.description,required:e.required,multiSelect:e.multiSelect,minSelections:e.minSelections,maxSelections:e.maxSelections,choices:e.choices.map(vu),sortOrder:e.sortOrder}),rn=e=>{var n,t,r;return{menuId:e.menuId,listingId:e.listingId,ownerInternalId:e.ownerInternalId,sortOrder:e.sortOrder,name:e.name,description:e.description,templateId:e.templateId,categories:e.categories.map(Pu),minOrderAmount:(n=e.constraints)==null?void 0:n.minOrderAmount,minGuests:(t=e.constraints)==null?void 0:t.minGuests,leadTimeHours:(r=e.constraints)==null?void 0:r.leadTimeHours,cuisineType:e.cuisineType,status:e.status,version:e.version,createdAt:e.createdAt,updatedAt:e.updatedAt}},He=e=>{var n;return{itemId:e.itemId,menuId:e.menuId,listingId:e.listingId,categoryId:e.categoryId,name:e.name,description:e.description,imageUrl:e.imageUrl,price:e.price,unit:e.unit,servesNumPeople:e.servesNumPeople,minQuantity:e.minQuantity,maxQuantity:e.maxQuantity,foodLabelingTags:e.foodLabelingTags,itemTypeTags:e.itemTypeTags,packagingTag:e.packagingTag,options:(n=e.options)==null?void 0:n.map(Lu),linkedServiceOfferingId:e.linkedServiceOfferingId,status:e.status,sortOrder:e.sortOrder,createdAt:e.createdAt,updatedAt:e.updatedAt}},Ou=e=>({id:e.id,label:e.label,description:e.description,cuisineTags:e.cuisineTags,categories:e.categories.map(n=>({name:n.name,description:n.description,sortOrder:n.sortOrder,protected:n.protected,tags:n.tags}))}),Sr=e=>e==null?void 0:e.map((n,t)=>{const r=Array.from(new Set([...n.tags??[],...n.isPackageCategory?[wr]:[]]));return{categoryId:n.categoryId,name:n.name,description:n.description,sortOrder:typeof n.sortOrder=="number"?n.sortOrder:t,protected:n.protected??n.isPackageCategory,tags:r.length>0?r:void 0}}),Er=e=>{const n={};return e.minOrderAmount!=null&&(n.minOrderAmount=e.minOrderAmount),e.minGuests!=null&&(n.minGuests=e.minGuests),e.leadTimeHours!=null&&(n.leadTimeHours=e.leadTimeHours),Object.keys(n).length>0?n:void 0},Cr=e=>e==null?void 0:e.map((n,t)=>({optionId:n.optionId,name:n.name,description:n.description,required:!!n.required,multiSelect:!!n.multiSelect,minSelections:n.minSelections,maxSelections:n.maxSelections,sortOrder:n.sortOrder??t,choices:n.choices.map((r,i)=>({choiceId:r.choiceId,name:r.name,description:r.description,priceDelta:r.priceDelta,foodLabelingTags:r.foodLabelingTags,itemTypeTags:r.itemTypeTags,sortOrder:r.sortOrder??i,default:r.default}))}));async function zu(){const e=await me("/caterer-menus/templates");return Array.isArray(e.templates)?e.templates.map(Ou):[]}async function Nu(e){const n=await me(`/listings/${e}/public-menu`);return{menu:n.menu?rn(n.menu):null,items:Array.isArray(n.items)?n.items.map(He):[]}}async function Du(e){const n=await me(`/listings/${e}/menus`);return Array.isArray(n.items)?n.items.map(rn):[]}async function Ju(e,n){const t=await me(`/listings/${e}/menus`,{method:"POST",body:JSON.stringify({name:n.name,description:n.description,templateId:n.templateId,cuisineType:n.cuisineType,categories:Sr(n.categories),constraints:Er(n)})});return rn(t)}async function Zu(e,n){const t=await me(`/caterer-menus/${e}`,{method:"PATCH",body:JSON.stringify({name:n.name,description:n.description,cuisineType:n.cuisineType,categories:Sr(n.categories),constraints:Er(n),status:n.status,expectedVersion:n.expectedVersion})});return rn(t)}async function _u(e){const n=await me(`/caterer-menus/${e}/items`);return Array.isArray(n.items)?n.items.map(He):[]}async function es(e,n){const t=await me(`/caterer-menus/${e}/items`,{method:"POST",body:JSON.stringify({categoryId:n.categoryId,name:n.name,description:n.description,imageUrl:n.imageUrl,price:n.price,unit:n.unit,servesNumPeople:n.servesNumPeople,minQuantity:n.minQuantity,maxQuantity:n.maxQuantity,foodLabelingTags:n.foodLabelingTags,itemTypeTags:n.itemTypeTags,packagingTag:n.packagingTag,options:Cr(n.options),linkedServiceOfferingId:n.linkedServiceOfferingId,sortOrder:n.sortOrder})});return He(t)}async function ns(e,n){const t=await me(`/caterer-menu-items/${e}`,{method:"PATCH",body:JSON.stringify({categoryId:n.categoryId,name:n.name,description:n.description,imageUrl:n.imageUrl,price:n.price,unit:n.unit,servesNumPeople:n.servesNumPeople,minQuantity:n.minQuantity,maxQuantity:n.maxQuantity,foodLabelingTags:n.foodLabelingTags,itemTypeTags:n.itemTypeTags,packagingTag:n.packagingTag,options:n.options?Cr(n.options):void 0,linkedServiceOfferingId:n.linkedServiceOfferingId,sortOrder:n.sortOrder,status:n.status})});return He(t)}async function ts(e){const n=await me(`/caterer-menu-items/${e}`,{method:"DELETE"});return He(n)}const Fu=["caterer-menu-templates"],Ru=e=>["caterer-menus",e],Mu=e=>["caterer-menu-items",e],Bu=e=>["public-caterer-menu",e];function rs(){return Je({queryKey:Fu,queryFn:zu,staleTime:5*6e4})}function is(e){return Je({queryKey:Bu(e??""),enabled:!!e,queryFn:()=>Nu(e??""),staleTime:3e4})}function ls(e){return Je({queryKey:Ru(e??""),enabled:!!e,queryFn:()=>Du(e??""),staleTime:3e4})}function as(e){return Je({queryKey:Mu(e??""),enabled:!!e,queryFn:()=>_u(e??""),staleTime:3e4})}export{as as A,rs as B,Uu as C,Zu as D,Et as E,Ju as F,ns as G,es as H,Vu as I,ts as J,Ru as K,qu as L,Gu as M,Mu as N,Su as O,Eu as P,Cu as Q,$u as V,nl as a,st as b,gr as c,xr as d,ne as e,ue as f,Sn as g,en as h,M as i,A as j,N as k,Ki as l,X as m,Ae as n,Qu as o,Wu as p,Xu as q,Fn as r,se as s,Gi as t,tl as u,jo as v,Ku as w,Yu as x,is as y,ls as z};