Files
doc_ai_frontend/app.cloud/assets/vendor-markdown-C0b4qDwm.js
2026-01-27 23:44:45 +08:00

29 lines
131 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{r as ti,c as Xe,g as Jt}from"./vendor-react-C6WG4Va-.js";import{k as Qn}from"./vendor-katex-p018AHG0.js";var Zt={exports:{}},Ke={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var ri=ti,ii=Symbol.for("react.element"),li=Symbol.for("react.fragment"),oi=Object.prototype.hasOwnProperty,ai=ri.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ui={key:!0,ref:!0,__self:!0,__source:!0};function er(e,n,t){var r,i={},l=null,o=null;t!==void 0&&(l=""+t),n.key!==void 0&&(l=""+n.key),n.ref!==void 0&&(o=n.ref);for(r in n)oi.call(n,r)&&!ui.hasOwnProperty(r)&&(i[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps,n)i[r]===void 0&&(i[r]=n[r]);return{$$typeof:ii,type:e,key:l,ref:o,props:i,_owner:ai.current}}Ke.Fragment=li;Ke.jsx=er;Ke.jsxs=er;Zt.exports=Ke;var rn=Zt.exports;function Kn(e){const n=[],t=String(e||"");let r=t.indexOf(","),i=0,l=!1;for(;!l;){r===-1&&(r=t.length,l=!0);const o=t.slice(i,r).trim();(o||!l)&&n.push(o),i=r+1,r=t.indexOf(",",i)}return n}function si(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const ci=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,pi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,fi={};function Jn(e,n){return(fi.jsx?pi:ci).test(e)}const hi=/[ \t\n\f\r]/g;function mi(e){return typeof e=="object"?e.type==="text"?Zn(e.value):!1:Zn(e)}function Zn(e){return e.replace(hi,"")===""}class je{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}je.prototype.normal={};je.prototype.property={};je.prototype.space=void 0;function nr(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new je(t,r,n)}function Re(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 di=0;const F=we(),$=we(),yn=we(),w=we(),j=we(),Te=we(),ee=we();function we(){return 2**++di}const xn=Object.freeze(Object.defineProperty({__proto__:null,boolean:F,booleanish:$,commaOrSpaceSeparated:ee,commaSeparated:Te,number:w,overloadedBoolean:yn,spaceSeparated:j},Symbol.toStringTag,{value:"Module"})),ln=Object.keys(xn);class Nn extends J{constructor(n,t,r,i){let l=-1;if(super(n,t),et(this,"space",i),typeof r=="number")for(;++l<ln.length;){const o=ln[l];et(this,ln[l],(r&xn[o])===xn[o])}}}Nn.prototype.defined=!0;function et(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 Nn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[Re(r)]=r,t[Re(l.attribute)]=r}return new je(n,t,e.space)}const tr=Pe({properties:{ariaActiveDescendant:null,ariaAtomic:$,ariaAutoComplete:null,ariaBusy:$,ariaChecked:$,ariaColCount:w,ariaColIndex:w,ariaColSpan:w,ariaControls:j,ariaCurrent:null,ariaDescribedBy:j,ariaDetails:null,ariaDisabled:$,ariaDropEffect:j,ariaErrorMessage:null,ariaExpanded:$,ariaFlowTo:j,ariaGrabbed:$,ariaHasPopup:null,ariaHidden:$,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:j,ariaLevel:w,ariaLive:null,ariaModal:$,ariaMultiLine:$,ariaMultiSelectable:$,ariaOrientation:null,ariaOwns:j,ariaPlaceholder:null,ariaPosInSet:w,ariaPressed:$,ariaReadOnly:$,ariaRelevant:null,ariaRequired:$,ariaRoleDescription:j,ariaRowCount:w,ariaRowIndex:w,ariaRowSpan:w,ariaSelected:$,ariaSetSize:w,ariaSort:null,ariaValueMax:w,ariaValueMin:w,ariaValueNow:w,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function rr(e,n){return n in e?e[n]:n}function ir(e,n){return rr(e,n.toLowerCase())}const gi=Pe({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Te,acceptCharset:j,accessKey:j,action:null,allow:null,allowFullScreen:F,allowPaymentRequest:F,allowUserMedia:F,alt:null,as:null,async:F,autoCapitalize:null,autoComplete:j,autoFocus:F,autoPlay:F,blocking:j,capture:null,charSet:null,checked:F,cite:null,className:j,cols:w,colSpan:null,content:null,contentEditable:$,controls:F,controlsList:j,coords:w|Te,crossOrigin:null,data:null,dateTime:null,decoding:null,default:F,defer:F,dir:null,dirName:null,disabled:F,download:yn,draggable:$,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:F,formTarget:null,headers:j,height:w,hidden:yn,high:w,href:null,hrefLang:null,htmlFor:j,httpEquiv:j,id:null,imageSizes:null,imageSrcSet:null,inert:F,inputMode:null,integrity:null,is:null,isMap:F,itemId:null,itemProp:j,itemRef:j,itemScope:F,itemType:j,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:F,low:w,manifest:null,max:null,maxLength:w,media:null,method:null,min:null,minLength:w,multiple:F,muted:F,name:null,nonce:null,noModule:F,noValidate:F,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:F,optimum:w,pattern:null,ping:j,placeholder:null,playsInline:F,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:F,referrerPolicy:null,rel:j,required:F,reversed:F,rows:w,rowSpan:w,sandbox:j,scope:null,scoped:F,seamless:F,selected:F,shadowRootClonable:F,shadowRootDelegatesFocus:F,shadowRootMode:null,shape:null,size:w,sizes:null,slot:null,span:w,spellCheck:$,src:null,srcDoc:null,srcLang:null,srcSet:null,start:w,step:null,style:null,tabIndex:w,target:null,title:null,translate:null,type:null,typeMustMatch:F,useMap:null,value:$,width:w,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:j,axis:null,background:null,bgColor:null,border:w,borderColor:null,bottomMargin:w,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:F,declare:F,event:null,face:null,frame:null,frameBorder:null,hSpace:w,leftMargin:w,link:null,longDesc:null,lowSrc:null,marginHeight:w,marginWidth:w,noResize:F,noHref:F,noShade:F,noWrap:F,object:null,profile:null,prompt:null,rev:null,rightMargin:w,rules:null,scheme:null,scrolling:$,standby:null,summary:null,text:null,topMargin:w,valueType:null,version:null,vAlign:null,vLink:null,vSpace:w,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:F,disableRemotePlayback:F,prefix:null,property:null,results:w,security:null,unselectable:null},space:"html",transform:ir}),yi=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",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:w,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:w,amplitude:w,arabicForm:null,ascent:w,attributeName:null,attributeType:null,azimuth:w,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:w,by:null,calcMode:null,capHeight:w,className:j,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:w,diffuseConstant:w,direction:null,display:null,dur:null,divisor:w,dominantBaseline:null,download:F,dx:null,dy:null,edgeMode:null,editable:null,elevation:w,enableBackground:null,end:null,event:null,exponent:w,externalResourcesRequired:null,fill:null,fillOpacity:w,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:Te,g2:Te,glyphName:Te,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:w,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:w,horizOriginX:w,horizOriginY:w,id:null,ideographic:w,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:w,k:w,k1:w,k2:w,k3:w,k4:w,kernelMatrix:ee,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:w,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:w,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:w,overlineThickness:w,paintOrder:null,panose1:null,path:null,pathLength:w,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:j,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:w,pointsAtY:w,pointsAtZ:w,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:w,specularExponent:w,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:w,strikethroughThickness:w,string:null,stroke:null,strokeDashArray:ee,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:w,strokeOpacity:w,strokeWidth:null,style:null,surfaceScale:w,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ee,tabIndex:w,tableValues:null,target:null,targetX:w,targetY:w,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:w,underlineThickness:w,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:w,values:null,vAlphabetic:w,vMathematical:w,vectorEffect:null,vHanging:w,vIdeographic:w,version:null,vertAdvY:w,vertOriginX:w,vertOriginY:w,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:w,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:rr}),lr=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()}}),or=Pe({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ir}),ar=Pe({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),xi={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"},ki=/[A-Z]/g,nt=/-[a-z]/g,wi=/^data[-\w.:]+$/i;function ur(e,n){const t=Re(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"&&wi.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(nt,Si);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!nt.test(l)){let o=l.replace(ki,bi);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Nn}return new i(r,n)}function bi(e){return"-"+e.toLowerCase()}function Si(e){return e.charAt(1).toUpperCase()}const sr=nr([tr,gi,lr,or,ar],"html"),Je=nr([tr,yi,lr,or,ar],"svg");function tt(e){const n=String(e||"").trim();return n?n.split(/[ \t\n\r\f]+/g):[]}function Ei(e){return e.join(" ").trim()}var Fn={},rt=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Ci=/\n/g,Ii=/^\s*/,Ti=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Ai=/^:\s*/,Pi=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Ni=/^[;\s]*/,Fi=/^\s+|\s+$/g,zi=`
`,it="/",lt="*",ke="",Li="comment",Mi="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 g=y.match(Ci);g&&(t+=g.length);var C=y.lastIndexOf(zi);r=~C?y.length-C:r+y.length}function l(){var y={line:t,column:r};return function(g){return g.position=new o(y),s(),g}}function o(y){this.start=y,this.end={line:t,column:r},this.source=n.source}o.prototype.content=e;function a(y){var g=new Error(n.source+":"+t+":"+r+": "+y);if(g.reason=y,g.filename=n.source,g.line=t,g.column=r,g.source=e,!n.silent)throw g}function u(y){var g=y.exec(e);if(g){var C=g[0];return i(C),e=e.slice(C.length),g}}function s(){u(Ii)}function c(y){var g;for(y=y||[];g=f();)g!==!1&&y.push(g);return y}function f(){var y=l();if(!(it!=e.charAt(0)||lt!=e.charAt(1))){for(var g=2;ke!=e.charAt(g)&&(lt!=e.charAt(g)||it!=e.charAt(g+1));)++g;if(g+=2,ke===e.charAt(g-1))return a("End of comment missing");var C=e.slice(2,g-2);return r+=2,i(C),e=e.slice(g),r+=2,y({type:Li,comment:C})}}function d(){var y=l(),g=u(Ti);if(g){if(f(),!u(Ai))return a("property missing ':'");var C=u(Pi),b=y({type:Mi,property:ot(g[0].replace(rt,ke)),value:C?ot(C[0].replace(rt,ke)):ke});return u(Ni),b}}function p(){var y=[];c(y);for(var g;g=d();)g!==!1&&(y.push(g),c(y));return y}return s(),p()}function ot(e){return e?e.replace(Fi,ke):ke}var Di=Oi,_i=Xe&&Xe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Fn,"__esModule",{value:!0});Fn.default=Ri;const vi=_i(Di);function Ri(e,n){let t=null;if(!e||typeof e!="string")return t;const r=(0,vi.default)(e),i=typeof n=="function";return r.forEach(l=>{if(l.type!=="declaration")return;const{property:o,value:a}=l;i?n(o,a,l):a&&(t=t||{},t[o]=a)}),t}var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0});Ze.camelCase=void 0;var Bi=/^--[a-zA-Z0-9_-]+$/,ji=/-([a-z])/g,Hi=/^[^-]+$/,Ui=/^-(webkit|moz|ms|o|khtml)-/,Vi=/^-(ms)-/,qi=function(e){return!e||Hi.test(e)||Bi.test(e)},$i=function(e,n){return n.toUpperCase()},at=function(e,n){return"".concat(n,"-")},Wi=function(e,n){return n===void 0&&(n={}),qi(e)?e:(e=e.toLowerCase(),n.reactCompat?e=e.replace(Vi,at):e=e.replace(Ui,at),e.replace(ji,$i))};Ze.camelCase=Wi;var Yi=Xe&&Xe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},Xi=Yi(Fn),Gi=Ze;function kn(e,n){var t={};return!e||typeof e!="string"||(0,Xi.default)(e,function(r,i){r&&i&&(t[(0,Gi.camelCase)(r,n)]=i)}),t}kn.default=kn;var Qi=kn;const Ki=Jt(Qi),cr=pr("end"),zn=pr("start");function pr(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 Ji(e){const n=zn(e),t=cr(e);if(n&&t)return{start:n,end:t}}function De(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?ut(e.position):"start"in e||"end"in e?ut(e):"line"in e||"column"in e?wn(e):""}function wn(e){return st(e&&e.line)+":"+st(e&&e.column)}function ut(e){return wn(e&&e.start)+"-"+wn(e&&e.end)}function st(e){return e&&typeof e=="number"?e:1}class G extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",l={},o=!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&&(o=!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 a=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=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=De(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=o&&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}}G.prototype.file="";G.prototype.name="";G.prototype.reason="";G.prototype.message="";G.prototype.stack="";G.prototype.column=void 0;G.prototype.line=void 0;G.prototype.ancestors=void 0;G.prototype.cause=void 0;G.prototype.fatal=void 0;G.prototype.place=void 0;G.prototype.ruleId=void 0;G.prototype.source=void 0;const Ln={}.hasOwnProperty,Zi=new Map,el=/[A-Z]/g,nl=new Set(["table","tbody","thead","tfoot","tr"]),tl=new Set(["td","th"]),fr="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function rl(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=pl(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=cl(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"?Je:sr,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=hr(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function hr(e,n,t){if(n.type==="element")return il(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return ll(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return al(e,n,t);if(n.type==="mdxjsEsm")return ol(e,n);if(n.type==="root")return ul(e,n,t);if(n.type==="text")return sl(e,n)}function il(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Je,e.schema=i),e.ancestors.push(n);const l=dr(e,n.tagName,!1),o=fl(e,n);let a=On(e,n);return nl.has(n.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!mi(u):!0})),mr(e,o,l,n),Mn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function ll(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)}Be(e,n.position)}function ol(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Be(e,n.position)}function al(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Je,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:dr(e,n.name,!0),o=hl(e,n),a=On(e,n);return mr(e,o,l,n),Mn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function ul(e,n,t){const r={};return Mn(r,On(e,n)),e.create(n,e.Fragment,r,t)}function sl(e,n){return n.value}function mr(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Mn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function cl(e,n,t){return r;function r(i,l,o,a){const s=Array.isArray(o.children)?t:n;return a?s(l,o,a):s(l,o)}}function pl(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),u=zn(r);return n(i,l,o,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function fl(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Ln.call(n.properties,i)){const l=ml(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&tl.has(n.tagName)?r=a:t[o]=a}}if(r){const l=t.style||(t.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function hl(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 o=l.expression;o.type;const a=o.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Be(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 a=r.value.data.estree.body[0];a.type,l=e.evaluater.evaluateExpression(a.expression)}else Be(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function On(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Zi;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const u=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(u){const s=i.get(u)||0;o=u+"-"+s,i.set(u,s+1)}}const a=hr(e,l,o);a!==void 0&&t.push(a)}return t}function ml(e,n,t){const r=ur(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?si(t):Ei(t)),r.property==="style"){let i=typeof t=="object"?t:dl(e,String(t));return e.stylePropertyNameCase==="css"&&(i=gl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?xi[r.property]||r.property:r.attribute,t]}}function dl(e,n){try{return Ki(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new G("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=fr+"#cannot-parse-style-attribute",i}}function dr(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let l=-1,o;for(;++l<i.length;){const a=Jn(i[l])?{type:"Identifier",name:i[l]}:{type:"Literal",value:i[l]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(l&&a.type==="Literal"),optional:!1}:a}r=o}else r=Jn(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Ln.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Be(e)}function Be(e,n){const t=new G("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=fr+"#cannot-handle-mdx-estrees-without-createevaluater",t}function gl(e){const n={};let t;for(t in e)Ln.call(e,t)&&(n[yl(t)]=e[t]);return n}function yl(e){let n=e.replace(el,xl);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function xl(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"]},kl={};function wl(e,n){const t=kl,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return gr(e,r,i)}function gr(e,n,t){if(bl(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 ct(e.children,n,t)}return Array.isArray(e)?ct(e,n,t):""}function ct(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=gr(e[i],n,t);return r.join("")}function bl(e){return!!(e&&typeof e=="object")}const pt=document.createElement("i");function Dn(e){const n="&"+e+";";pt.innerHTML=n;const t=pt.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,o;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)o=Array.from(r),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);l<r.length;)o=r.slice(l,l+1e4),o.unshift(n,0),e.splice(...o),l+=1e4,n+=1e4}function te(e,n){return e.length>0?(se(e,e.length,0,n),e):n}const ft={}.hasOwnProperty;function Sl(e){const n={};let t=-1;for(;++t<e.length;)El(n,e[t]);return n}function El(e,n){let t;for(t in n){const i=(ft.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){ft.call(i,o)||(i[o]=[]);const a=l[o];Cl(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Cl(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 yr(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?"<22>":String.fromCodePoint(t)}function Ae(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ue=ge(/[A-Za-z]/),ne=ge(/[\dA-Za-z]/),Il=ge(/[#-'*+\--9=?A-Z^-~]/);function bn(e){return e!==null&&(e<32||e===127)}const Sn=ge(/\d/),Tl=ge(/[\dA-Fa-f]/),Al=ge(/[!-/:-@[-`{-~]/);function T(e){return e!==null&&e<-2}function K(e){return e!==null&&(e<0||e===32)}function D(e){return e===-2||e===-1||e===32}const Pl=ge(new RegExp("\\p{P}|\\p{S}","u")),Nl=ge(/\s/);function ge(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ne(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";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))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const a=e.charCodeAt(t+1);l<56320&&a>56319&&a<57344?(o=String.fromCharCode(l,a),i=1):o="<22>"}else o=String.fromCharCode(l);o&&(n.push(e.slice(r,t),encodeURIComponent(o)),r=t+i+1,o=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function _(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(u){return D(u)?(e.enter(t),a(u)):n(u)}function a(u){return D(u)&&l++<i?(e.consume(u),a):(e.exit(t),n(u))}}const Fl={tokenize:zl};function zl(e){const n=e.attempt(this.parser.constructs.contentInitial,r,i);let t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),_(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const u=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=u),t=u,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return T(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const Ll={tokenize:Ml},ht={tokenize:Ol};function Ml(e){const n=this,t=[];let r=0,i,l,o;return a;function a(I){if(r<t.length){const v=t[r];return n.containerState=v[1],e.attempt(v[0].continuation,u,s)(I)}return s(I)}function u(I){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&S();const v=n.events.length;let B=v,k;for(;B--;)if(n.events[B][0]==="exit"&&n.events[B][1].type==="chunkFlow"){k=n.events[B][1].end;break}b(r);let O=v;for(;O<n.events.length;)n.events[O][1].end={...k},O++;return se(n.events,B+1,0,n.events.slice(v)),n.events.length=O,s(I)}return a(I)}function s(I){if(r===t.length){if(!i)return d(I);if(i.currentConstruct&&i.currentConstruct.concrete)return y(I);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(ht,c,f)(I)}function c(I){return i&&S(),b(r),d(I)}function f(I){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,y(I)}function d(I){return n.containerState={},e.attempt(ht,p,y)(I)}function p(I){return r++,t.push([n.currentConstruct,n.containerState]),d(I)}function y(I){if(I===null){i&&S(),b(0),e.consume(I);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),g(I)}function g(I){if(I===null){C(e.exit("chunkFlow"),!0),b(0),e.consume(I);return}return T(I)?(e.consume(I),C(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(I),g)}function C(I,v){const B=n.sliceStream(I);if(v&&B.push(null),I.previous=l,l&&(l.next=I),l=I,i.defineSkip(I.start),i.write(B),n.parser.lazy[I.start.line]){let k=i.events.length;for(;k--;)if(i.events[k][1].start.offset<o&&(!i.events[k][1].end||i.events[k][1].end.offset>o))return;const O=n.events.length;let V=O,z,H;for(;V--;)if(n.events[V][0]==="exit"&&n.events[V][1].type==="chunkFlow"){if(z){H=n.events[V][1].end;break}z=!0}for(b(r),k=O;k<n.events.length;)n.events[k][1].end={...H},k++;se(n.events,V+1,0,n.events.slice(O)),n.events.length=k}}function b(I){let v=t.length;for(;v-- >I;){const B=t[v];n.containerState=B[1],B[0].exit.call(n,e)}t.length=I}function S(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Ol(e,n,t){return _(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function mt(e){if(e===null||K(e)||Nl(e))return 1;if(Pl(e))return 2}function _n(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 En={name:"attention",resolveAll:Dl,tokenize:_l};function Dl(e,n){let t=-1,r,i,l,o,a,u,s,c;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};dt(f,-u),dt(d,u),o={type:u>1?"strongSequence":"emphasisSequence",start:f,end:{...e[r][1].end}},a={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:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},s=[],e[r][1].end.offset-e[r][1].start.offset&&(s=te(s,[["enter",e[r][1],n],["exit",e[r][1],n]])),s=te(s,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),s=te(s,_n(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),s=te(s,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(c=2,s=te(s,[["enter",e[t][1],n],["exit",e[t][1],n]])):c=0,se(e,r-1,t-r+3,s),t=r+s.length-c-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function _l(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=mt(r);let l;return o;function o(u){return l=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===l)return e.consume(u),a;const s=e.exit("attentionSequence"),c=mt(u),f=!c||c===2&&i||t.includes(u),d=!i||i===2&&c||t.includes(r);return s._open=!!(l===42?f:f&&(i||!d)),s._close=!!(l===42?d:d&&(c||!f)),n(u)}}function dt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const vl={name:"autolink",tokenize:Rl};function Rl(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),o):p===64?t(p):s(p)}function o(p){return p===43||p===45||p===46||ne(p)?(r=1,a(p)):s(p)}function a(p){return p===58?(e.consume(p),r=0,u):(p===43||p===45||p===46||ne(p))&&r++<32?(e.consume(p),a):(r=0,s(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||bn(p)?t(p):(e.consume(p),u)}function s(p){return p===64?(e.consume(p),c):Il(p)?(e.consume(p),s):t(p)}function c(p){return ne(p)?f(p):t(p)}function f(p){return p===46?(e.consume(p),r=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),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:Bl};function Bl(e,n,t){return r;function r(l){return D(l)?_(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||T(l)?n(l):t(l)}}const xr={continuation:{tokenize:Hl},exit:Ul,name:"blockQuote",tokenize:jl};function jl(e,n,t){const r=this;return i;function i(o){if(o===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),l}return t(o)}function l(o){return D(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function Hl(e,n,t){const r=this;return i;function i(o){return D(o)?_(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(xr,n,t)(o)}}function Ul(e){e.exit("blockQuote")}const kr={name:"characterEscape",tokenize:Vl};function Vl(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 Al(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const wr={name:"characterReference",tokenize:ql};function ql(e,n,t){const r=this;let i=0,l,o;return a;function a(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"),s):(e.enter("characterReferenceValue"),l=31,o=ne,c(f))}function s(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Tl,c):(e.enter("characterReferenceValue"),l=7,o=Sn,c(f))}function c(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return o===ne&&!Dn(r.sliceSerialize(d))?t(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(f)&&i++<l?(e.consume(f),c):t(f)}}const gt={partial:!0,tokenize:Wl},yt={concrete:!0,name:"codeFenced",tokenize:$l};function $l(e,n,t){const r=this,i={partial:!0,tokenize:B};let l=0,o=0,a;return u;function u(k){return s(k)}function s(k){const O=r.events[r.events.length-1];return l=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,a=k,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(k)}function c(k){return k===a?(o++,e.consume(k),c):o<3?t(k):(e.exit("codeFencedFenceSequence"),D(k)?_(e,f,"whitespace")(k):f(k))}function f(k){return k===null||T(k)?(e.exit("codeFencedFence"),r.interrupt?n(k):e.check(gt,g,v)(k)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(k))}function d(k){return k===null||T(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(k)):D(k)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),_(e,p,"whitespace")(k)):k===96&&k===a?t(k):(e.consume(k),d)}function p(k){return k===null||T(k)?f(k):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(k))}function y(k){return k===null||T(k)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(k)):k===96&&k===a?t(k):(e.consume(k),y)}function g(k){return e.attempt(i,v,C)(k)}function C(k){return e.enter("lineEnding"),e.consume(k),e.exit("lineEnding"),b}function b(k){return l>0&&D(k)?_(e,S,"linePrefix",l+1)(k):S(k)}function S(k){return k===null||T(k)?e.check(gt,g,v)(k):(e.enter("codeFlowValue"),I(k))}function I(k){return k===null||T(k)?(e.exit("codeFlowValue"),S(k)):(e.consume(k),I)}function v(k){return e.exit("codeFenced"),n(k)}function B(k,O,V){let z=0;return H;function H(M){return k.enter("lineEnding"),k.consume(M),k.exit("lineEnding"),P}function P(M){return k.enter("codeFencedFence"),D(M)?_(k,A,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):A(M)}function A(M){return M===a?(k.enter("codeFencedFenceSequence"),U(M)):V(M)}function U(M){return M===a?(z++,k.consume(M),U):z>=o?(k.exit("codeFencedFenceSequence"),D(M)?_(k,q,"whitespace")(M):q(M)):V(M)}function q(M){return M===null||T(M)?(k.exit("codeFencedFence"),O(M)):V(M)}}}function Wl(e,n,t){const r=this;return i;function i(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}const an={name:"codeIndented",tokenize:Xl},Yl={partial:!0,tokenize:Gl};function Xl(e,n,t){const r=this;return i;function i(s){return e.enter("codeIndented"),_(e,l,"linePrefix",5)(s)}function l(s){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(s):t(s)}function o(s){return s===null?u(s):T(s)?e.attempt(Yl,o,u)(s):(e.enter("codeFlowValue"),a(s))}function a(s){return s===null||T(s)?(e.exit("codeFlowValue"),o(s)):(e.consume(s),a)}function u(s){return e.exit("codeIndented"),n(s)}}function Gl(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):T(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):_(e,l,"linePrefix",5)(o)}function l(o){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):T(o)?i(o):t(o)}}const Ql={name:"codeText",previous:Jl,resolve:Kl,tokenize:Zl};function Kl(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 Jl(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Zl(e,n,t){let r=0,i,l;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(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,c(f)):T(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(f))}function s(f){return f===null||f===32||f===96||T(f)?(e.exit("codeTextData"),u(f)):(e.consume(f),s)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(f)):(l.type="codeTextData",s(f))}}class eo{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&&Me(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),Me(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Me(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);Me(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Me(this.left,t.reverse())}}}function Me(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 br(e){const n={};let t=-1,r,i,l,o,a,u,s;const c=new eo(e);for(;++t<c.length;){for(;t in n;)t=n[t];if(r=c.get(t),t&&r[1].type==="chunkFlow"&&c.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,no(c,t)),t=n[t],s=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=c.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),o[1].type="lineEnding",i=l);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,t),a.unshift(r),c.splice(i,t-i+1,a))}}return se(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!s}function no(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const l=[];let o=t._tokenizer;o||(o=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,u=[],s={};let c,f,d=-1,p=t,y=0,g=0;const C=[g];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(c=r.sliceStream(p),p.next||c.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=t;++d<a.length;)a[d][0]==="exit"&&a[d-1][0]==="enter"&&a[d][1].type===a[d-1][1].type&&a[d][1].start.line!==a[d][1].end.line&&(g=d+1,C.push(g),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):C.pop(),d=C.length;d--;){const b=a.slice(C[d],C[d+1]),S=l.pop();u.push([S,S+b.length-1]),e.splice(S,2,b)}for(u.reverse(),d=-1;++d<u.length;)s[y+u[d][0]]=y+u[d][1],y+=u[d][1]-u[d][0]-1;return s}const to={resolve:io,tokenize:lo},ro={partial:!0,tokenize:oo};function io(e){return br(e),e}function lo(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?l(a):T(a)?e.check(ro,o,l)(a):(e.consume(a),i)}function l(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function o(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function oo(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),_(e,l,"linePrefix")}function l(o){if(o===null||T(o))return t(o);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(o):e.interrupt(r.parser.constructs.flow,t,n)(o)}}function Sr(e,n,t,r,i,l,o,a,u){const s=u||Number.POSITIVE_INFINITY;let c=0;return f;function f(b){return b===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(b),e.exit(l),d):b===null||b===32||b===41||bn(b)?t(b):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),g(b))}function d(b){return b===62?(e.enter(l),e.consume(b),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(b))}function p(b){return b===62?(e.exit("chunkString"),e.exit(a),d(b)):b===null||b===60||T(b)?t(b):(e.consume(b),b===92?y:p)}function y(b){return b===60||b===62||b===92?(e.consume(b),p):p(b)}function g(b){return!c&&(b===null||b===41||K(b))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(b)):c<s&&b===40?(e.consume(b),c++,g):b===41?(e.consume(b),c--,g):b===null||b===32||b===40||bn(b)?t(b):(e.consume(b),b===92?C:g)}function C(b){return b===40||b===41||b===92?(e.consume(b),g):g(b)}}function Er(e,n,t,r,i,l){const o=this;let a=0,u;return s;function s(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),c}function c(p){return a>999||p===null||p===91||p===93&&!u||p===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?t(p):p===93?(e.exit(l),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):T(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||T(p)||a++>999?(e.exit("chunkString"),c(p)):(e.consume(p),u||(u=!D(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(e.consume(p),a++,f):f(p)}}function Cr(e,n,t,r,i,l){let o;return a;function a(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,u):t(d)}function u(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),n):(e.enter(l),s(d))}function s(d){return d===o?(e.exit(l),u(o)):d===null?t(d):T(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),_(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||T(d)?(e.exit("chunkString"),s(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function _e(e,n){let t;return r;function r(i){return T(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):D(i)?_(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const ao={name:"definition",tokenize:so},uo={partial:!0,tokenize:co};function so(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return Er.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(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 K(p)?_e(e,s)(p):s(p)}function s(p){return Sr(e,c,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(uo,f,f)(p)}function f(p){return D(p)?_(e,d,"whitespace")(p):d(p)}function d(p){return p===null||T(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function co(e,n,t){return r;function r(a){return K(a)?_e(e,i)(a):t(a)}function i(a){return Cr(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return D(a)?_(e,o,"whitespace")(a):o(a)}function o(a){return a===null||T(a)?n(a):t(a)}}const po={name:"hardBreakEscape",tokenize:fo};function fo(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return T(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const ho={name:"headingAtx",resolve:mo,tokenize:go};function mo(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 go(e,n,t){let r=0;return i;function i(c){return e.enter("atxHeading"),l(c)}function l(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&r++<6?(e.consume(c),o):c===null||K(c)?(e.exit("atxHeadingSequence"),a(c)):t(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||T(c)?(e.exit("atxHeading"),n(c)):D(c)?_(e,a,"whitespace")(c):(e.enter("atxHeadingText"),s(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),a(c))}function s(c){return c===null||c===35||K(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),s)}}const yo=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],xt=["pre","script","style","textarea"],xo={concrete:!0,name:"htmlFlow",resolveTo:bo,tokenize:So},ko={partial:!0,tokenize:Co},wo={partial:!0,tokenize:Eo};function bo(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 So(e,n,t){const r=this;let i,l,o,a,u;return s;function s(m){return c(m)}function c(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),f}function f(m){return m===33?(e.consume(m),d):m===47?(e.consume(m),l=!0,g):m===63?(e.consume(m),i=3,r.interrupt?n:h):ue(m)?(e.consume(m),o=String.fromCharCode(m),C):t(m)}function d(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=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(a++)?(e.consume(m),a===le.length?r.interrupt?n:A:y):t(m)}function g(m){return ue(m)?(e.consume(m),o=String.fromCharCode(m),C):t(m)}function C(m){if(m===null||m===47||m===62||K(m)){const le=m===47,ye=o.toLowerCase();return!le&&!l&&xt.includes(ye)?(i=1,r.interrupt?n(m):A(m)):yo.includes(o.toLowerCase())?(i=6,le?(e.consume(m),b):r.interrupt?n(m):A(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?S(m):I(m))}return m===45||ne(m)?(e.consume(m),o+=String.fromCharCode(m),C):t(m)}function b(m){return m===62?(e.consume(m),r.interrupt?n:A):t(m)}function S(m){return D(m)?(e.consume(m),S):H(m)}function I(m){return m===47?(e.consume(m),H):m===58||m===95||ue(m)?(e.consume(m),v):D(m)?(e.consume(m),I):H(m)}function v(m){return m===45||m===46||m===58||m===95||ne(m)?(e.consume(m),v):B(m)}function B(m){return m===61?(e.consume(m),k):D(m)?(e.consume(m),B):I(m)}function k(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),u=m,O):D(m)?(e.consume(m),k):V(m)}function O(m){return m===u?(e.consume(m),u=null,z):m===null||T(m)?t(m):(e.consume(m),O)}function V(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||K(m)?B(m):(e.consume(m),V)}function z(m){return m===47||m===62||D(m)?I(m):t(m)}function H(m){return m===62?(e.consume(m),P):t(m)}function P(m){return m===null||T(m)?A(m):D(m)?(e.consume(m),P):t(m)}function A(m){return m===45&&i===2?(e.consume(m),X):m===60&&i===1?(e.consume(m),W):m===62&&i===4?(e.consume(m),ie):m===63&&i===3?(e.consume(m),h):m===93&&i===5?(e.consume(m),ce):T(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ko,pe,U)(m)):m===null||T(m)?(e.exit("htmlFlowData"),U(m)):(e.consume(m),A)}function U(m){return e.check(wo,q,pe)(m)}function q(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),M}function M(m){return m===null||T(m)?U(m):(e.enter("htmlFlowData"),A(m))}function X(m){return m===45?(e.consume(m),h):A(m)}function W(m){return m===47?(e.consume(m),o="",re):A(m)}function re(m){if(m===62){const le=o.toLowerCase();return xt.includes(le)?(e.consume(m),ie):A(m)}return ue(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),re):A(m)}function ce(m){return m===93?(e.consume(m),h):A(m)}function h(m){return m===62?(e.consume(m),ie):m===45&&i===2?(e.consume(m),h):A(m)}function ie(m){return m===null||T(m)?(e.exit("htmlFlowData"),pe(m)):(e.consume(m),ie)}function pe(m){return e.exit("htmlFlow"),n(m)}}function Eo(e,n,t){const r=this;return i;function i(o){return T(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l):t(o)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Co(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(en,n,t)}}const Io={name:"htmlText",tokenize:To};function To(e,n,t){const r=this;let i,l,o;return a;function a(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),u}function u(h){return h===33?(e.consume(h),s):h===47?(e.consume(h),B):h===63?(e.consume(h),I):ue(h)?(e.consume(h),V):t(h)}function s(h){return h===45?(e.consume(h),c):h===91?(e.consume(h),l=0,y):ue(h)?(e.consume(h),S):t(h)}function c(h){return h===45?(e.consume(h),p):t(h)}function f(h){return h===null?t(h):h===45?(e.consume(h),d):T(h)?(o=f,W(h)):(e.consume(h),f)}function d(h){return h===45?(e.consume(h),p):f(h)}function p(h){return h===62?X(h):h===45?d(h):f(h)}function y(h){const ie="CDATA[";return h===ie.charCodeAt(l++)?(e.consume(h),l===ie.length?g:y):t(h)}function g(h){return h===null?t(h):h===93?(e.consume(h),C):T(h)?(o=g,W(h)):(e.consume(h),g)}function C(h){return h===93?(e.consume(h),b):g(h)}function b(h){return h===62?X(h):h===93?(e.consume(h),b):g(h)}function S(h){return h===null||h===62?X(h):T(h)?(o=S,W(h)):(e.consume(h),S)}function I(h){return h===null?t(h):h===63?(e.consume(h),v):T(h)?(o=I,W(h)):(e.consume(h),I)}function v(h){return h===62?X(h):I(h)}function B(h){return ue(h)?(e.consume(h),k):t(h)}function k(h){return h===45||ne(h)?(e.consume(h),k):O(h)}function O(h){return T(h)?(o=O,W(h)):D(h)?(e.consume(h),O):X(h)}function V(h){return h===45||ne(h)?(e.consume(h),V):h===47||h===62||K(h)?z(h):t(h)}function z(h){return h===47?(e.consume(h),X):h===58||h===95||ue(h)?(e.consume(h),H):T(h)?(o=z,W(h)):D(h)?(e.consume(h),z):X(h)}function H(h){return h===45||h===46||h===58||h===95||ne(h)?(e.consume(h),H):P(h)}function P(h){return h===61?(e.consume(h),A):T(h)?(o=P,W(h)):D(h)?(e.consume(h),P):z(h)}function A(h){return h===null||h===60||h===61||h===62||h===96?t(h):h===34||h===39?(e.consume(h),i=h,U):T(h)?(o=A,W(h)):D(h)?(e.consume(h),A):(e.consume(h),q)}function U(h){return h===i?(e.consume(h),i=void 0,M):h===null?t(h):T(h)?(o=U,W(h)):(e.consume(h),U)}function q(h){return h===null||h===34||h===39||h===60||h===61||h===96?t(h):h===47||h===62||K(h)?z(h):(e.consume(h),q)}function M(h){return h===47||h===62||K(h)?z(h):t(h)}function X(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),n):t(h)}function W(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),re}function re(h){return D(h)?_(e,ce,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):ce(h)}function ce(h){return e.enter("htmlTextData"),o(h)}}const vn={name:"labelEnd",resolveAll:Fo,resolveTo:zo,tokenize:Lo},Ao={tokenize:Mo},Po={tokenize:Oo},No={tokenize:Do};function Fo(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 zo(e,n){let t=e.length,r=0,i,l,o,a;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(o){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"&&(o=t);const u={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},s={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",u,n],["enter",s,n]],a=te(a,e.slice(l+1,l+r+3)),a=te(a,[["enter",c,n]]),a=te(a,_n(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=te(a,[["exit",c,n],e[o-2],e[o-1],["exit",s,n]]),a=te(a,e.slice(o+1)),a=te(a,[["exit",u,n]]),se(e,l,e.length,a),e}function Lo(e,n,t){const r=this;let i=r.events.length,l,o;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 a;function a(d){return l?l._inactive?f(d):(o=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(Ao,c,o?c:f)(d):d===91?e.attempt(Po,c,o?s:f)(d):o?c(d):f(d)}function s(d){return e.attempt(No,c,f)(d)}function c(d){return n(d)}function f(d){return l._balanced=!0,t(d)}}function Mo(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 K(f)?_e(e,l)(f):l(f)}function l(f){return f===41?c(f):Sr(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return K(f)?_e(e,u)(f):c(f)}function a(f){return t(f)}function u(f){return f===34||f===39||f===40?Cr(e,s,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function s(f){return K(f)?_e(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),n):t(f)}}function Oo(e,n,t){const r=this;return i;function i(a){return Er.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Ae(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function Do(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 _o={name:"labelStartImage",resolveAll:vn.resolveAll,tokenize:vo};function vo(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),l}function l(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):t(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const Ro={name:"labelStartLink",resolveAll:vn.resolveAll,tokenize:Bo};function Bo(e,n,t){const r=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),l}function l(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(o):n(o)}}const un={name:"lineEnding",tokenize:jo};function jo(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),_(e,n,"linePrefix")}}const We={name:"thematicBreak",tokenize:Ho};function Ho(e,n,t){let r=0,i;return l;function l(s){return e.enter("thematicBreak"),o(s)}function o(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||T(s))?(e.exit("thematicBreak"),n(s)):t(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),D(s)?_(e,a,"whitespace")(s):a(s))}}const Q={continuation:{tokenize:$o},exit:Yo,name:"list",tokenize:qo},Uo={partial:!0,tokenize:Xo},Vo={partial:!0,tokenize:Wo};function qo(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,o=0;return a;function a(p){const y=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(y==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Sn(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(We,t,s)(p):s(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return t(p)}function u(p){return Sn(p)&&++o<10?(e.consume(p),u):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),s(p)):t(p)}function s(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(en,r.interrupt?t:c,e.attempt(Uo,d,f))}function c(p){return r.containerState.initialBlankLine=!0,l++,d(p)}function f(p){return D(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 $o(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(en,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,_(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!D(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Vo,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,_(e,e.attempt(Q,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Wo(e,n,t){const r=this;return _(e,i,"listItemIndent",r.containerState.size+1);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?n(l):t(l)}}function Yo(e){e.exit(this.containerState.type)}function Xo(e,n,t){const r=this;return _(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(l){const o=r.events[r.events.length-1];return!D(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const kt={name:"setextUnderline",resolveTo:Go,tokenize:Qo};function Go(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 o={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",o,n]),e.splice(l+1,0,["exit",e[r][1],n]),e[r][1].end={...e[l][1].end}):e[r][1]=o,e.push(["exit",o,n]),e}function Qo(e,n,t){const r=this;let i;return l;function l(s){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=s,o(s)):t(s)}function o(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),D(s)?_(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||T(s)?(e.exit("setextHeadingLine"),n(s)):t(s)}}const Ko={tokenize:Jo};function Jo(e){const n=this,t=e.attempt(en,r,e.attempt(this.parser.constructs.flowInitial,i,_(e,e.attempt(this.parser.constructs.flow,i,e.attempt(to,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 Zo={resolveAll:Tr()},ea=Ir("string"),na=Ir("text");function Ir(e){return{resolveAll:Tr(e==="text"?ta:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],l=t.attempt(i,o,a);return o;function o(c){return s(c)?l(c):a(c)}function a(c){if(c===null){t.consume(c);return}return t.enter("data"),t.consume(c),u}function u(c){return s(c)?(t.exit("data"),l(c)):(t.consume(c),u)}function s(c){if(c===null)return!0;const f=i[c];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 Tr(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 ta(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let l=i.length,o=-1,a=0,u;for(;l--;){const s=i[l];if(typeof s=="string"){for(o=s.length;s.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(s===-2)u=!0,a++;else if(s!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const s={type:t===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?o:r.start._bufferIndex+o,_index:r.start._index+l,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...s.start},r.start.offset===r.end.offset?Object.assign(r,s):(e.splice(t,0,["enter",s,n],["exit",s,n]),t+=2)}t++}return e}const ra={42:Q,43:Q,45:Q,48:Q,49:Q,50:Q,51:Q,52:Q,53:Q,54:Q,55:Q,56:Q,57:Q,62:xr},ia={91:ao},la={[-2]:an,[-1]:an,32:an},oa={35:ho,42:We,45:[kt,We],60:xo,61:kt,95:We,96:yt,126:yt},aa={38:wr,92:kr},ua={[-5]:un,[-4]:un,[-3]:un,33:_o,38:wr,42:En,60:[vl,Io],91:Ro,92:[po,kr],93:vn,95:En,96:Ql},sa={null:[En,Zo]},ca={null:[42,95]},pa={null:[]},fa=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ca,contentInitial:ia,disable:pa,document:ra,flow:oa,flowInitial:la,insideSpan:sa,string:aa,text:ua},Symbol.toStringTag,{value:"Module"}));function ha(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},l=[];let o=[],a=[];const u={attempt:O(B),check:O(k),consume:S,enter:I,exit:v,interrupt:O(k,{interrupt:!0})},s={code:null,containerState:{},defineSkip:g,events:[],now:y,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:f};let c=n.tokenize.call(s,u);return n.resolveAll&&l.push(n),s;function f(P){return o=te(o,P),C(),o[o.length-1]!==null?[]:(V(n,0),s.events=_n(l,s.events,s),s.events)}function d(P,A){return da(p(P),A)}function p(P){return ma(o,P)}function y(){const{_bufferIndex:P,_index:A,line:U,column:q,offset:M}=r;return{_bufferIndex:P,_index:A,line:U,column:q,offset:M}}function g(P){i[P.line]=P.column,H()}function C(){let P;for(;r._index<o.length;){const A=o[r._index];if(typeof A=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<A.length;)b(A.charCodeAt(r._bufferIndex));else b(A)}}function b(P){c=c(P)}function S(P){T(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,H()):P!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=P}function I(P,A){const U=A||{};return U.type=P,U.start=y(),s.events.push(["enter",U,s]),a.push(U),U}function v(P){const A=a.pop();return A.end=y(),s.events.push(["exit",A,s]),A}function B(P,A){V(P,A.from)}function k(P,A){A.restore()}function O(P,A){return U;function U(q,M,X){let W,re,ce,h;return Array.isArray(q)?pe(q):"tokenize"in q?pe([q]):ie(q);function ie(Y){return Fe;function Fe(me){const Se=me!==null&&Y[me],Ee=me!==null&&Y.null,Ue=[...Array.isArray(Se)?Se:Se?[Se]:[],...Array.isArray(Ee)?Ee:Ee?[Ee]:[]];return pe(Ue)(me)}}function pe(Y){return W=Y,re=0,Y.length===0?X:m(Y[re])}function m(Y){return Fe;function Fe(me){return h=z(),ce=Y,Y.partial||(s.currentConstruct=Y),Y.name&&s.parser.constructs.disable.null.includes(Y.name)?ye():Y.tokenize.call(A?Object.assign(Object.create(s),A):s,u,le,ye)(me)}}function le(Y){return P(ce,h),M}function ye(Y){return h.restore(),++re<W.length?m(W[re]):X}}}function V(P,A){P.resolveAll&&!l.includes(P)&&l.push(P),P.resolve&&se(s.events,A,s.events.length-A,P.resolve(s.events.slice(A),s)),P.resolveTo&&(s.events=P.resolveTo(s.events,s))}function z(){const P=y(),A=s.previous,U=s.currentConstruct,q=s.events.length,M=Array.from(a);return{from:q,restore:X};function X(){r=P,s.previous=A,s.currentConstruct=U,s.events.length=q,a=M,H()}}function H(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function ma(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,l=n.end._bufferIndex;let o;if(t===i)o=[e[t].slice(r,l)];else{if(o=e.slice(t,i),r>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(r):o.shift()}l>0&&o.push(e[i].slice(0,l))}return o}function da(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const l=e[t];let o;if(typeof l=="string")o=l;else switch(l){case-5:{o="\r";break}case-4:{o=`
`;break}case-3:{o=`\r
`;break}case-2:{o=n?" ":" ";break}case-1:{if(!n&&i)continue;o=" ";break}default:o=String.fromCharCode(l)}i=l===-2,r.push(o)}return r.join("")}function ga(e){const r={constructs:Sl([fa,...(e||{}).extensions||[]]),content:i(Fl),defined:[],document:i(Ll),flow:i(Ko),lazy:{},string:i(ea),text:i(na)};return r;function i(l){return o;function o(a){return ha(r,l,a)}}}function ya(e){for(;!br(e););return e}const wt=/[\0\t\n\r]/g;function xa(){let e=1,n="",t=!0,r;return i;function i(l,o,a){const u=[];let s,c,f,d,p;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),f=0,n="",t&&(l.charCodeAt(0)===65279&&f++,t=void 0);f<l.length;){if(wt.lastIndex=f,s=wt.exec(l),d=s&&s.index!==void 0?s.index:l.length,p=l.charCodeAt(d),!s){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(c=Math.ceil(e/4)*4,u.push(-2);e++<c;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}f=d+1}return a&&(r&&u.push(-5),n&&u.push(n),u.push(null)),u}}const ka=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function wa(e){return e.replace(ka,ba)}function ba(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return yr(t.slice(l?2:1),l?16:10)}return Dn(t)||e}const Ar={}.hasOwnProperty;function Sa(e,n,t){return typeof n!="string"&&(t=n,n=void 0),Ea(t)(ya(ga(t).document().write(xa()(e,n,!0))))}function Ea(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Xn),autolinkProtocol:z,autolinkEmail:z,atxHeading:l($n),blockQuote:l(Ee),characterEscape:z,characterReference:z,codeFenced:l(Ue),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(Ue,o),codeText:l(Yr,o),codeTextData:z,data:z,codeFlowValue:z,definition:l(Xr),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(Gr),hardBreakEscape:l(Wn),hardBreakTrailing:l(Wn),htmlFlow:l(Yn,o),htmlFlowData:z,htmlText:l(Yn,o),htmlTextData:z,image:l(Qr),label:o,link:l(Xn),listItem:l(Kr),listItemValue:d,listOrdered:l(Gn,f),listUnordered:l(Gn),paragraph:l(Jr),reference:m,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l($n),strong:l(Zr),thematicBreak:l(ni)},exit:{atxHeading:u(),atxHeadingSequence:B,autolink:u(),autolinkEmail:Se,autolinkProtocol:me,blockQuote:u(),characterEscapeValue:H,characterReferenceMarkerHexadecimal:ye,characterReferenceMarkerNumeric:ye,characterReferenceValue:Y,characterReference:Fe,codeFenced:u(C),codeFencedFence:g,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:H,codeIndented:u(b),codeText:u(M),codeTextData:H,data:H,definition:u(),definitionDestinationString:v,definitionLabelString:S,definitionTitleString:I,emphasis:u(),hardBreakEscape:u(A),hardBreakTrailing:u(A),htmlFlow:u(U),htmlFlowData:H,htmlText:u(q),htmlTextData:H,image:u(W),label:ce,labelText:re,lineEnding:P,link:u(X),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:le,resourceDestinationString:h,resourceTitleString:ie,resource:pe,setextHeading:u(V),setextHeadingLineSequence:O,setextHeadingText:k,strong:u(),thematicBreak:u()}};Pr(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(x){let E={type:"root",children:[]};const N={stack:[E],tokenStack:[],config:n,enter:a,exit:s,buffer:o,resume:c,data:t},L=[];let R=-1;for(;++R<x.length;)if(x[R][1].type==="listOrdered"||x[R][1].type==="listUnordered")if(x[R][0]==="enter")L.push(R);else{const oe=L.pop();R=i(x,oe,R)}for(R=-1;++R<x.length;){const oe=n[x[R][0]];Ar.call(oe,x[R][1].type)&&oe[x[R][1].type].call(Object.assign({sliceSerialize:x[R][2].sliceSerialize},N),x[R][1])}if(N.tokenStack.length>0){const oe=N.tokenStack[N.tokenStack.length-1];(oe[1]||bt).call(N,void 0,oe[0])}for(E.position={start:de(x.length>0?x[0][1].start:{line:1,column:1,offset:0}),end:de(x.length>0?x[x.length-2][1].end:{line:1,column:1,offset:0})},R=-1;++R<n.transforms.length;)E=n.transforms[R](E)||E;return E}function i(x,E,N){let L=E-1,R=-1,oe=!1,xe,fe,ze,Le;for(;++L<=N;){const Z=x[L];switch(Z[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Z[0]==="enter"?R++:R--,Le=void 0;break}case"lineEndingBlank":{Z[0]==="enter"&&(xe&&!Le&&!R&&!ze&&(ze=L),Le=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Le=void 0}if(!R&&Z[0]==="enter"&&Z[1].type==="listItemPrefix"||R===-1&&Z[0]==="exit"&&(Z[1].type==="listUnordered"||Z[1].type==="listOrdered")){if(xe){let Ce=L;for(fe=void 0;Ce--;){const he=x[Ce];if(he[1].type==="lineEnding"||he[1].type==="lineEndingBlank"){if(he[0]==="exit")continue;fe&&(x[fe][1].type="lineEndingBlank",oe=!0),he[1].type="lineEnding",fe=Ce}else if(!(he[1].type==="linePrefix"||he[1].type==="blockQuotePrefix"||he[1].type==="blockQuotePrefixWhitespace"||he[1].type==="blockQuoteMarker"||he[1].type==="listItemIndent"))break}ze&&(!fe||ze<fe)&&(xe._spread=!0),xe.end=Object.assign({},fe?x[fe][1].start:Z[1].end),x.splice(fe||L,0,["exit",xe,Z[2]]),L++,N++}if(Z[1].type==="listItemPrefix"){const Ce={type:"listItem",_spread:!1,start:Object.assign({},Z[1].start),end:void 0};xe=Ce,x.splice(L,0,["enter",Ce,Z[2]]),L++,N++,ze=void 0,Le=!0}}}return x[E][1]._spread=oe,N}function l(x,E){return N;function N(L){a.call(this,x(L),L),E&&E.call(this,L)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(x,E,N){this.stack[this.stack.length-1].children.push(x),this.stack.push(x),this.tokenStack.push([E,N||void 0]),x.position={start:de(E.start),end:void 0}}function u(x){return E;function E(N){x&&x.call(this,N),s.call(this,N)}}function s(x,E){const N=this.stack.pop(),L=this.tokenStack.pop();if(L)L[0].type!==x.type&&(E?E.call(this,x,L[0]):(L[1]||bt).call(this,x,L[0]));else throw new Error("Cannot close `"+x.type+"` ("+De({start:x.start,end:x.end})+"): its not open");N.position.end=de(x.end)}function c(){return wl(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(x){if(this.data.expectingFirstListItemValue){const E=this.stack[this.stack.length-2];E.start=Number.parseInt(this.sliceSerialize(x),10),this.data.expectingFirstListItemValue=void 0}}function p(){const x=this.resume(),E=this.stack[this.stack.length-1];E.lang=x}function y(){const x=this.resume(),E=this.stack[this.stack.length-1];E.meta=x}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const x=this.resume(),E=this.stack[this.stack.length-1];E.value=x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const x=this.resume(),E=this.stack[this.stack.length-1];E.value=x.replace(/(\r?\n|\r)$/g,"")}function S(x){const E=this.resume(),N=this.stack[this.stack.length-1];N.label=E,N.identifier=Ae(this.sliceSerialize(x)).toLowerCase()}function I(){const x=this.resume(),E=this.stack[this.stack.length-1];E.title=x}function v(){const x=this.resume(),E=this.stack[this.stack.length-1];E.url=x}function B(x){const E=this.stack[this.stack.length-1];if(!E.depth){const N=this.sliceSerialize(x).length;E.depth=N}}function k(){this.data.setextHeadingSlurpLineEnding=!0}function O(x){const E=this.stack[this.stack.length-1];E.depth=this.sliceSerialize(x).codePointAt(0)===61?1:2}function V(){this.data.setextHeadingSlurpLineEnding=void 0}function z(x){const N=this.stack[this.stack.length-1].children;let L=N[N.length-1];(!L||L.type!=="text")&&(L=ei(),L.position={start:de(x.start),end:void 0},N.push(L)),this.stack.push(L)}function H(x){const E=this.stack.pop();E.value+=this.sliceSerialize(x),E.position.end=de(x.end)}function P(x){const E=this.stack[this.stack.length-1];if(this.data.atHardBreak){const N=E.children[E.children.length-1];N.position.end=de(x.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(E.type)&&(z.call(this,x),H.call(this,x))}function A(){this.data.atHardBreak=!0}function U(){const x=this.resume(),E=this.stack[this.stack.length-1];E.value=x}function q(){const x=this.resume(),E=this.stack[this.stack.length-1];E.value=x}function M(){const x=this.resume(),E=this.stack[this.stack.length-1];E.value=x}function X(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const E=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=E,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function W(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const E=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=E,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function re(x){const E=this.sliceSerialize(x),N=this.stack[this.stack.length-2];N.label=wa(E),N.identifier=Ae(E).toLowerCase()}function ce(){const x=this.stack[this.stack.length-1],E=this.resume(),N=this.stack[this.stack.length-1];if(this.data.inReference=!0,N.type==="link"){const L=x.children;N.children=L}else N.alt=E}function h(){const x=this.resume(),E=this.stack[this.stack.length-1];E.url=x}function ie(){const x=this.resume(),E=this.stack[this.stack.length-1];E.title=x}function pe(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function le(x){const E=this.resume(),N=this.stack[this.stack.length-1];N.label=E,N.identifier=Ae(this.sliceSerialize(x)).toLowerCase(),this.data.referenceType="full"}function ye(x){this.data.characterReferenceType=x.type}function Y(x){const E=this.sliceSerialize(x),N=this.data.characterReferenceType;let L;N?(L=yr(E,N==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):L=Dn(E);const R=this.stack[this.stack.length-1];R.value+=L}function Fe(x){const E=this.stack.pop();E.position.end=de(x.end)}function me(x){H.call(this,x);const E=this.stack[this.stack.length-1];E.url=this.sliceSerialize(x)}function Se(x){H.call(this,x);const E=this.stack[this.stack.length-1];E.url="mailto:"+this.sliceSerialize(x)}function Ee(){return{type:"blockquote",children:[]}}function Ue(){return{type:"code",lang:null,meta:null,value:""}}function Yr(){return{type:"inlineCode",value:""}}function Xr(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Gr(){return{type:"emphasis",children:[]}}function $n(){return{type:"heading",depth:0,children:[]}}function Wn(){return{type:"break"}}function Yn(){return{type:"html",value:""}}function Qr(){return{type:"image",title:null,url:"",alt:null}}function Xn(){return{type:"link",title:null,url:"",children:[]}}function Gn(x){return{type:"list",ordered:x.type==="listOrdered",start:null,spread:x._spread,children:[]}}function Kr(x){return{type:"listItem",spread:x._spread,checked:null,children:[]}}function Jr(){return{type:"paragraph",children:[]}}function Zr(){return{type:"strong",children:[]}}function ei(){return{type:"text",value:""}}function ni(){return{type:"thematicBreak"}}}function de(e){return{line:e.line,column:e.column,offset:e.offset}}function Pr(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Pr(e,r):Ca(e,r)}}function Ca(e,n){let t;for(t in n)if(Ar.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 bt(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+De({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+De({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+De({start:n.start,end:n.end})+") is still open")}function Ia(e){const n=this;n.parser=t;function t(r){return Sa(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Ta(e,n){const t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Aa(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
`}]}function Pa(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 Na(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Fa(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function za(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=Ne(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,a+=1,e.footnoteCounts.set(r,a);const u={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(n,s),e.applyData(n,s)}function La(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 Ma(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function Nr(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 o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function Oa(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Nr(e,n);const i={src:Ne(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 Da(e,n){const t={src:Ne(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 _a(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 va(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Nr(e,n);const i={href:Ne(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 Ra(e,n){const t={href:Ne(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 Ba(e,n,t){const r=e.all(n),i=t?ja(t):Fr(n),l={},o=[];if(typeof n.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const c=r[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
`}),c.type==="element"&&c.tagName==="p"&&!i?o.push(...c.children):o.push(c)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&o.push({type:"text",value:`
`});const s={type:"element",tagName:"li",properties:l,children:o};return e.patch(n,s),e.applyData(n,s)}function ja(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 Ha(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 o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.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 Ua(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Va(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function qa(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function $a(e,n){const t=e.all(n),r=t.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],o),i.push(o)}if(t.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=zn(n.children[1]),u=cr(n.children[n.children.length-1]);a&&u&&(o.position={start:a,end:u}),i.push(o)}const l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,l),e.applyData(n,l)}function Wa(e,n,t){const r=t?t.children:void 0,l=(r?r.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,a=o?o.length:n.children.length;let u=-1;const s=[];for(;++u<a;){const f=n.children[u],d={},p=o?o[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)),s.push(y)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(n,c),e.applyData(n,c)}function Ya(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const St=9,Et=32;function Xa(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const l=[];for(;r;)l.push(Ct(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(Ct(n.slice(i),i>0,!1)),l.join("")}function Ct(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===St||l===Et;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===St||l===Et;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Ga(e,n){const t={type:"text",value:Xa(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Qa(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Ka={blockquote:Ta,break:Aa,code:Pa,delete:Na,emphasis:Fa,footnoteReference:za,heading:La,html:Ma,imageReference:Oa,image:Da,inlineCode:_a,linkReference:va,link:Ra,listItem:Ba,list:Ha,paragraph:Ua,root:Va,strong:qa,table:$a,tableCell:Ya,tableRow:Wa,text:Ga,thematicBreak:Qa,toml:Ve,yaml:Ve,definition:Ve,footnoteDefinition:Ve};function Ve(){}const zr=-1,nn=0,ve=1,Ge=2,Rn=3,Bn=4,jn=5,Hn=6,Lr=7,Mr=8,It=typeof self=="object"?self:globalThis,Ja=(e,n)=>{const t=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=n[i];switch(l){case nn:case zr:return t(o,i);case ve:{const a=t([],i);for(const u of o)a.push(r(u));return a}case Ge:{const a=t({},i);for(const[u,s]of o)a[r(u)]=r(s);return a}case Rn:return t(new Date(o),i);case Bn:{const{source:a,flags:u}=o;return t(new RegExp(a,u),i)}case jn:{const a=t(new Map,i);for(const[u,s]of o)a.set(r(u),r(s));return a}case Hn:{const a=t(new Set,i);for(const u of o)a.add(r(u));return a}case Lr:{const{name:a,message:u}=o;return t(new It[a](u),i)}case Mr:return t(BigInt(o),i);case"BigInt":return t(Object(BigInt(o)),i);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return t(new DataView(a),o)}}return t(new It[l](o),i)};return r},Tt=e=>Ja(new Map,e)(0),Ie="",{toString:Za}={},{keys:eu}=Object,Oe=e=>{const n=typeof e;if(n!=="object"||!e)return[nn,n];const t=Za.call(e).slice(8,-1);switch(t){case"Array":return[ve,Ie];case"Object":return[Ge,Ie];case"Date":return[Rn,Ie];case"RegExp":return[Bn,Ie];case"Map":return[jn,Ie];case"Set":return[Hn,Ie];case"DataView":return[ve,t]}return t.includes("Array")?[ve,t]:t.includes("Error")?[Lr,t]:[Ge,t]},qe=([e,n])=>e===nn&&(n==="function"||n==="symbol"),nu=(e,n,t,r)=>{const i=(o,a)=>{const u=r.push(o)-1;return t.set(a,u),u},l=o=>{if(t.has(o))return t.get(o);let[a,u]=Oe(o);switch(a){case nn:{let c=o;switch(u){case"bigint":a=Mr,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([zr],o)}return i([a,c],o)}case ve:{if(u){let d=o;return u==="DataView"?d=new Uint8Array(o.buffer):u==="ArrayBuffer"&&(d=new Uint8Array(o)),i([u,[...d]],o)}const c=[],f=i([a,c],o);for(const d of o)c.push(l(d));return f}case Ge:{if(u)switch(u){case"BigInt":return i([u,o.toString()],o);case"Boolean":case"Number":case"String":return i([u,o.valueOf()],o)}if(n&&"toJSON"in o)return l(o.toJSON());const c=[],f=i([a,c],o);for(const d of eu(o))(e||!qe(Oe(o[d])))&&c.push([l(d),l(o[d])]);return f}case Rn:return i([a,o.toISOString()],o);case Bn:{const{source:c,flags:f}=o;return i([a,{source:c,flags:f}],o)}case jn:{const c=[],f=i([a,c],o);for(const[d,p]of o)(e||!(qe(Oe(d))||qe(Oe(p))))&&c.push([l(d),l(p)]);return f}case Hn:{const c=[],f=i([a,c],o);for(const d of o)(e||!qe(Oe(d)))&&c.push(l(d));return f}}const{message:s}=o;return i([a,{name:u,message:s}],o)};return l},At=(e,{json:n,lossy:t}={})=>{const r=[];return nu(!(n||t),!!n,new Map,r)(e),r},Qe=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?Tt(At(e,n)):structuredClone(e):(e,n)=>Tt(At(e,n));function tu(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 ru(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function iu(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||tu,r=e.options.footnoteBackLabel||ru,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let u=-1;for(;++u<e.footnoteOrder.length;){const s=e.footnoteById.get(e.footnoteOrder[u]);if(!s)continue;const c=e.all(s),f=String(s.identifier).toUpperCase(),d=Ne(f.toLowerCase());let p=0;const y=[],g=e.footnoteCounts.get(f);for(;g!==void 0&&++p<=g;){y.length>0&&y.push({type:"text",value:" "});let S=typeof t=="string"?t:t(u,p);typeof S=="string"&&(S={type:"text",value:S}),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(S)?S:[S]})}const C=c[c.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const S=C.children[C.children.length-1];S&&S.type==="text"?S.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...y)}else c.push(...y);const b={type:"element",tagName:"li",properties:{id:n+"fn-"+d},children:e.wrap(c,!0)};e.patch(s,b),a.push(b)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...Qe(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
`}]}}const Un=function(e){if(e==null)return uu;if(typeof e=="function")return tn(e);if(typeof e=="object")return Array.isArray(e)?lu(e):ou(e);if(typeof e=="string")return au(e);throw new Error("Expected function, string, or object as test")};function lu(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=Un(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 ou(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 au(e){return tn(n);function n(t){return t&&t.type===e}}function tn(e){return n;function n(t,r,i){return!!(su(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function uu(){return!0}function su(e){return e!==null&&typeof e=="object"&&"type"in e}const Or=[],cu=!0,Pt=!1,Dr="skip";function _r(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const l=Un(i),o=r?-1:1;a(e,void 0,[])();function a(u,s,c){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=Or,y,g,C;if((!n||l(u,s,c[c.length-1]||void 0))&&(p=pu(t(u,c)),p[0]===Pt))return p;if("children"in u&&u.children){const b=u;if(b.children&&p[0]!==Dr)for(g=(r?b.children.length:-1)+o,C=c.concat(b);g>-1&&g<b.children.length;){const S=b.children[g];if(y=a(S,g,C)(),y[0]===Pt)return y;g=typeof y[1]=="number"?y[1]:g+o}}return p}}}function pu(e){return Array.isArray(e)?e:typeof e=="number"?[cu,e]:e==null?Or:[e]}function vr(e,n,t,r){let i,l,o;typeof n=="function"&&typeof t!="function"?(l=void 0,o=n,i=t):(l=n,o=t,i=r),_r(e,l,a,i);function a(u,s){const c=s[s.length-1],f=c?c.children.indexOf(u):void 0;return o(u,f,c)}}const Cn={}.hasOwnProperty,fu={};function hu(e,n){const t=n||fu,r=new Map,i=new Map,l=new Map,o={...Ka,...t.handlers},a={all:s,applyData:du,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:u,options:t,patch:mu,wrap:yu};return vr(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?r:i,d=String(c.identifier).toUpperCase();f.has(d)||f.set(d,c)}}),a;function u(c,f){const d=c.type,p=a.handlers[d];if(Cn.call(a.handlers,d)&&p)return p(a,c,f);if(a.options.passThrough&&a.options.passThrough.includes(d)){if("children"in c){const{children:g,...C}=c,b=Qe(C);return b.children=a.all(c),b}return Qe(c)}return(a.options.unknownHandler||gu)(a,c,f)}function s(c){const f=[];if("children"in c){const d=c.children;let p=-1;for(;++p<d.length;){const y=a.one(d[p],c);if(y){if(p&&d[p-1].type==="break"&&(!Array.isArray(y)&&y.type==="text"&&(y.value=Nt(y.value)),!Array.isArray(y)&&y.type==="element")){const g=y.children[0];g&&g.type==="text"&&(g.value=Nt(g.value))}Array.isArray(y)?f.push(...y):f.push(y)}}}return f}}function mu(e,n){e.position&&(n.position=Ji(e))}function du(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 o="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:o}}t.type==="element"&&l&&Object.assign(t.properties,Qe(l)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function gu(e,n){const t=n.data||{},r="value"in n&&!(Cn.call(t,"hProperties")||Cn.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 yu(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 Nt(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function Ft(e,n){const t=hu(e,n),r=t.one(e,void 0),i=iu(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
`},i),l}function xu(e,n){return e&&"run"in e?async function(t,r){const i=Ft(t,{file:r,...n});await e.run(i,r)}:function(t,r){return Ft(t,{file:r,...e||n})}}function zt(e){if(e)throw e}var Ye=Object.prototype.hasOwnProperty,Rr=Object.prototype.toString,Lt=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,Ot=function(n){return typeof Array.isArray=="function"?Array.isArray(n):Rr.call(n)==="[object Array]"},Dt=function(n){if(!n||Rr.call(n)!=="[object Object]")return!1;var t=Ye.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&Ye.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||Ye.call(n,i)},_t=function(n,t){Lt&&t.name==="__proto__"?Lt(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},vt=function(n,t){if(t==="__proto__")if(Ye.call(n,t)){if(Mt)return Mt(n,t).value}else return;return n[t]},ku=function e(){var n,t,r,i,l,o,a=arguments[0],u=1,s=arguments.length,c=!1;for(typeof a=="boolean"&&(c=a,a=arguments[1]||{},u=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});u<s;++u)if(n=arguments[u],n!=null)for(t in n)r=vt(a,t),i=vt(n,t),a!==i&&(c&&i&&(Dt(i)||(l=Ot(i)))?(l?(l=!1,o=r&&Ot(r)?r:[]):o=r&&Dt(r)?r:{},_t(a,{name:t,newValue:e(c,o,i)})):typeof i<"u"&&_t(a,{name:t,newValue:i}));return a};const sn=Jt(ku);function In(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 wu(){const e=[],n={run:t,use:r};return n;function t(...i){let l=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...i);function a(u,...s){const c=e[++l];let f=-1;if(u){o(u);return}for(;++f<i.length;)(s[f]===null||s[f]===void 0)&&(s[f]=i[f]);i=s,c?bu(c,a)(...s):o(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function bu(e,n){let t;return r;function r(...o){const a=e.length>o.length;let u;a&&o.push(i);try{u=e.apply(this,o)}catch(s){const c=s;if(a&&t)throw c;return i(c)}a||(u&&u.then&&typeof u.then=="function"?u.then(l,i):u instanceof Error?i(u):l(u))}function i(o,...a){t||(t=!0,n(o,...a))}function l(o){i(null,o)}}const ae={basename:Su,dirname:Eu,extname:Cu,join:Iu,sep:"/"};function Su(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');He(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 o=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(l){t=i+1;break}}else o<0&&(l=!0,o=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=o));return t===r?r=o:r<0&&(r=e.length),e.slice(t,r)}function Eu(e){if(He(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 Cu(e){He(e);let n=e.length,t=-1,r=0,i=-1,l=0,o;for(;n--;){const a=e.codePointAt(n);if(a===47){if(o){r=n+1;break}continue}t<0&&(o=!0,t=n+1),a===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 Iu(...e){let n=-1,t;for(;++n<e.length;)He(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Tu(t)}function Tu(e){He(e);const n=e.codePointAt(0)===47;let t=Au(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Au(e,n){let t="",r=0,i=-1,l=0,o=-1,a,u;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(i===o-1||l===1))if(i!==o-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=o,l=0;continue}}else if(t.length>0){t="",r=0,i=o,l=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,o):t=e.slice(i+1,o),r=o-i-1;i=o,l=0}else a===46&&l>-1?l++:l=-1}return t}function He(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Pu={cwd:Nu};function Nu(){return"/"}function Tn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Fu(e){if(typeof e=="string")e=new URL(e);else if(!Tn(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return zu(e)}function zu(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const n=e.pathname;let t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){const r=n.codePointAt(t+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}const cn=["history","path","basename","stem","extname","dirname"];class Br{constructor(n){let t;n?Tn(n)?t={path:n}:typeof n=="string"||Lu(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Pu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<cn.length;){const l=cn[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)cn.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?ae.basename(this.path):void 0}set basename(n){fn(n,"basename"),pn(n,"basename"),this.path=ae.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?ae.dirname(this.path):void 0}set dirname(n){Rt(this.basename,"dirname"),this.path=ae.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?ae.extname(this.path):void 0}set extname(n){if(pn(n,"extname"),Rt(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=ae.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Tn(n)&&(n=Fu(n)),fn(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?ae.basename(this.path,this.extname):void 0}set stem(n){fn(n,"stem"),pn(n,"stem"),this.path=ae.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 G(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 pn(e,n){if(e&&e.includes(ae.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+ae.sep+"`")}function fn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function Rt(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Lu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Mu=function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l},Ou={}.hasOwnProperty;class Vn extends Mu{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=wu()}copy(){const n=new Vn;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(sn(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(dn("data",this.frozen),this.namespace[n]=t,this):Ou.call(this.namespace,n)&&this.namespace[n]||void 0:n?(dn("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 hn("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),hn("process",this.parser||this.Parser),mn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,o){const a=$e(n),u=r.parse(a);r.run(u,a,function(c,f,d){if(c||!f||!d)return s(c);const p=f,y=r.stringify(p,d);vu(y)?d.value=y:d.result=y,s(c,d)});function s(c,f){c||!f?o(c):l?l(f):t(void 0,f)}}}processSync(n){let t=!1,r;return this.freeze(),hn("processSync",this.parser||this.Parser),mn("processSync",this.compiler||this.Compiler),this.process(n,i),jt("processSync","process",t),r;function i(l,o){t=!0,zt(l),r=o}}run(n,t,r){Bt(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(o,a){const u=$e(t);i.run(n,u,s);function s(c,f,d){const p=f||n;c?a(c):o?o(p):r(void 0,p,d)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),jt("runSync","run",r),i;function l(o,a){zt(o),i=a,r=!0}}stringify(n,t){this.freeze();const r=$e(t),i=this.compiler||this.Compiler;return mn("stringify",i),Bt(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(dn("use",this.frozen),n!=null)if(typeof n=="function")u(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):o(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function l(s){if(typeof s=="function")u(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[c,...f]=s;u(c,f)}else o(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function o(s){if(!("plugins"in s)&&!("settings"in s))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(s.plugins),s.settings&&(i.settings=sn(!0,i.settings,s.settings))}function a(s){let c=-1;if(s!=null)if(Array.isArray(s))for(;++c<s.length;){const f=s[c];l(f)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function u(s,c){let f=-1,d=-1;for(;++f<r.length;)if(r[f][0]===s){d=f;break}if(d===-1)r.push([s,...c]);else if(c.length>0){let[p,...y]=c;const g=r[d][1];In(g)&&In(p)&&(p=sn(!0,g,p)),r[d]=[s,p,...y]}}}}const Du=new Vn().freeze();function hn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function mn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function dn(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 Bt(e){if(!In(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function jt(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function $e(e){return _u(e)?e:new Br(e)}function _u(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function vu(e){return typeof e=="string"||Ru(e)}function Ru(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Bu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ht=[],Ut={allowDangerousHtml:!0},ju=/^(https?|ircs?|mailto|xmpp)$/i,Hu=[{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 _s(e){const n=Uu(e),t=Vu(e);return qu(n.runSync(n.parse(t),t),e)}function Uu(e){const n=e.rehypePlugins||Ht,t=e.remarkPlugins||Ht,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ut}:Ut;return Du().use(Ia).use(t).use(xu,r).use(n)}function Vu(e){const n=e.children||"",t=new Br;return typeof n=="string"&&(t.value=n),t}function qu(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,a=n.unwrapDisallowed,u=n.urlTransform||$u;for(const c of Hu)Object.hasOwn(n,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+Bu+c.id,void 0);return vr(e,s),rl(e,{Fragment:rn.Fragment,components:i,ignoreInvalidStyle:!0,jsx:rn.jsx,jsxs:rn.jsxs,passKeys:!0,passNode:!0});function s(c,f,d){if(c.type==="raw"&&d&&typeof f=="number")return o?d.children.splice(f,1):d.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let p;for(p in on)if(Object.hasOwn(on,p)&&Object.hasOwn(c.properties,p)){const y=c.properties[p],g=on[p];(g===null||g.includes(c.tagName))&&(c.properties[p]=u(String(y||""),p,c))}}if(c.type==="element"){let p=t?!t.includes(c.tagName):l?l.includes(c.tagName):!1;if(!p&&r&&typeof f=="number"&&(p=!r(c,f,d)),p&&d&&typeof f=="number")return a&&c.children?d.children.splice(f,1,...c.children):d.children.splice(f,1),f}}}function $u(e){const n=e.indexOf(":"),t=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return n===-1||i!==-1&&n>i||t!==-1&&n>t||r!==-1&&n>r||ju.test(e.slice(0,n))?e:""}function Wu(e,n){const t=String(e);let r=t.indexOf(n),i=r,l=0,o=0;for(;r!==-1;)r===i?++l>o&&(o=l):l=1,i=r+n.length,r=t.indexOf(n,i);return o}function Yu(){return{enter:{mathFlow:e,mathFlowFenceMeta:n,mathText:l},exit:{mathFlow:i,mathFlowFence:r,mathFlowFenceMeta:t,mathFlowValue:a,mathText:o,mathTextData:a}};function e(u){const s={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[s]}},u)}function n(){this.buffer()}function t(){const u=this.resume(),s=this.stack[this.stack.length-1];s.type,s.meta=u}function r(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function i(u){const s=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=s;const f=c.data.hChildren[0];f.type,f.tagName,f.children.push({type:"text",value:s}),this.data.mathFlowInside=void 0}function l(u){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},u),this.buffer()}function o(u){const s=this.resume(),c=this.stack[this.stack.length-1];c.type,this.exit(u),c.value=s,c.data.hChildren.push({type:"text",value:s})}function a(u){this.config.enter.data.call(this,u),this.config.exit.data.call(this,u)}}function Xu(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),r.peek=i,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
`,inConstruct:"mathFlowMeta"},{character:"$",after:n?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:t,inlineMath:r}};function t(l,o,a,u){const s=l.value||"",c=a.createTracker(u),f="$".repeat(Math.max(Wu(s,"$")+1,2)),d=a.enter("mathFlow");let p=c.move(f);if(l.meta){const y=a.enter("mathFlowMeta");p+=c.move(a.safe(l.meta,{after:`
`,before:p,encode:["$"],...c.current()})),y()}return p+=c.move(`
`),s&&(p+=c.move(s+`
`)),p+=c.move(f),d(),p}function r(l,o,a){let u=l.value||"",s=1;for(n||s++;new RegExp("(^|[^$])"+"\\$".repeat(s)+"([^$]|$)").test(u);)s++;const c="$".repeat(s);/[^ \r\n]/.test(u)&&(/^[ \r\n]/.test(u)&&/[ \r\n]$/.test(u)||/^\$|\$$/.test(u))&&(u=" "+u+" ");let f=-1;for(;++f<a.unsafe.length;){const d=a.unsafe[f];if(!d.atBreak)continue;const p=a.compilePattern(d);let y;for(;y=p.exec(u);){let g=y.index;u.codePointAt(g)===10&&u.codePointAt(g-1)===13&&g--,u=u.slice(0,g)+" "+u.slice(y.index+1)}}return c+u+c}function i(){return"$"}}const Gu={tokenize:Qu,concrete:!0,name:"mathFlow"},Vt={tokenize:Ku,partial:!0};function Qu(e,n,t){const r=this,i=r.events[r.events.length-1],l=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let o=0;return a;function a(S){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),u(S)}function u(S){return S===36?(e.consume(S),o++,u):o<2?t(S):(e.exit("mathFlowFenceSequence"),_(e,s,"whitespace")(S))}function s(S){return S===null||T(S)?f(S):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),c(S))}function c(S){return S===null||T(S)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),f(S)):S===36?t(S):(e.consume(S),c)}function f(S){return e.exit("mathFlowFence"),r.interrupt?n(S):e.attempt(Vt,d,C)(S)}function d(S){return e.attempt({tokenize:b,partial:!0},C,p)(S)}function p(S){return(l?_(e,y,"linePrefix",l+1):y)(S)}function y(S){return S===null?C(S):T(S)?e.attempt(Vt,d,C)(S):(e.enter("mathFlowValue"),g(S))}function g(S){return S===null||T(S)?(e.exit("mathFlowValue"),y(S)):(e.consume(S),g)}function C(S){return e.exit("mathFlow"),n(S)}function b(S,I,v){let B=0;return _(S,k,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function k(z){return S.enter("mathFlowFence"),S.enter("mathFlowFenceSequence"),O(z)}function O(z){return z===36?(B++,S.consume(z),O):B<o?v(z):(S.exit("mathFlowFenceSequence"),_(S,V,"whitespace")(z))}function V(z){return z===null||T(z)?(S.exit("mathFlowFence"),I(z)):v(z)}}}function Ku(e,n,t){const r=this;return i;function i(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),l)}function l(o){return r.parser.lazy[r.now().line]?t(o):n(o)}}function Ju(e){let t=(e||{}).singleDollarTextMath;return t==null&&(t=!0),{tokenize:r,resolve:Zu,previous:es,name:"mathText"};function r(i,l,o){let a=0,u,s;return c;function c(g){return i.enter("mathText"),i.enter("mathTextSequence"),f(g)}function f(g){return g===36?(i.consume(g),a++,f):a<2&&!t?o(g):(i.exit("mathTextSequence"),d(g))}function d(g){return g===null?o(g):g===36?(s=i.enter("mathTextSequence"),u=0,y(g)):g===32?(i.enter("space"),i.consume(g),i.exit("space"),d):T(g)?(i.enter("lineEnding"),i.consume(g),i.exit("lineEnding"),d):(i.enter("mathTextData"),p(g))}function p(g){return g===null||g===32||g===36||T(g)?(i.exit("mathTextData"),d(g)):(i.consume(g),p)}function y(g){return g===36?(i.consume(g),u++,y):u===a?(i.exit("mathTextSequence"),i.exit("mathText"),l(g)):(s.type="mathTextData",p(g))}}}function Zu(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="mathTextData"){e[n][1].type="mathTextPadding",e[t][1].type="mathTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="mathTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function es(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function ns(e){return{flow:{36:Gu},text:{36:Ju(e)}}}const ts={};function vs(e){const n=this,t=e||ts,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(ns(t)),l.push(Yu()),o.push(Xu(t))}const qt=/[#.]/g;function rs(e,n){const t=e||"",r={};let i=0,l,o;for(;i<t.length;){qt.lastIndex=i;const a=qt.exec(t),u=t.slice(i,a?a.index:t.length);u&&(l?l==="#"?r.id=u:Array.isArray(r.className)?r.className.push(u):r.className=[u]:o=u,i+=u.length),a&&(l=a[0],i++)}return{type:"element",tagName:o||n||"div",properties:r,children:[]}}function jr(e,n,t){const r=t?as(t):void 0;function i(l,o,...a){let u;if(l==null){u={type:"root",children:[]};const s=o;a.unshift(s)}else{u=rs(l,n);const s=u.tagName.toLowerCase(),c=r?r.get(s):void 0;if(u.tagName=c||s,is(o))a.unshift(o);else for(const[f,d]of Object.entries(o))ls(e,u.properties,f,d)}for(const s of a)An(u.children,s);return u.type==="element"&&u.tagName==="template"&&(u.content={type:"root",children:u.children},u.children=[]),u}return i}function is(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const n=e,t=Object.keys(e);for(const r of t){const i=n[r];if(i&&typeof i=="object"){if(!Array.isArray(i))return!0;const l=i;for(const o of l)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function ls(e,n,t,r){const i=ur(e,t);let l;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;l=r}else typeof r=="boolean"?l=r:typeof r=="string"?i.spaceSeparated?l=tt(r):i.commaSeparated?l=Kn(r):i.commaOrSpaceSeparated?l=tt(Kn(r).join(" ")):l=$t(i,i.property,r):Array.isArray(r)?l=[...r]:l=i.property==="style"?os(r):String(r);if(Array.isArray(l)){const o=[];for(const a of l)o.push($t(i,i.property,a));l=o}i.property==="className"&&Array.isArray(n.className)&&(l=n.className.concat(l)),n[i.property]=l}}function An(e,n){if(n!=null)if(typeof n=="number"||typeof n=="string")e.push({type:"text",value:String(n)});else if(Array.isArray(n))for(const t of n)An(e,t);else if(typeof n=="object"&&"type"in n)n.type==="root"?An(e,n.children):e.push(n);else throw new Error("Expected node, nodes, or string, got `"+n+"`")}function $t(e,n,t){if(typeof t=="string"){if(e.number&&t&&!Number.isNaN(Number(t)))return Number(t);if((e.boolean||e.overloadedBoolean)&&(t===""||Re(t)===Re(n)))return!0}return t}function os(e){const n=[];for(const[t,r]of Object.entries(e))n.push([t,r].join(": "));return n.join("; ")}function as(e){const n=new Map;for(const t of e)n.set(t.toLowerCase(),t);return n}const us=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],ss=jr(sr,"div"),cs=jr(Je,"g",us),gn={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ps(e,n){return Hr(e,{})||{type:"root",children:[]}}function Hr(e,n){const t=fs(e,n);return t&&n.afterTransform&&n.afterTransform(e,t),t}function fs(e,n){switch(e.nodeType){case 1:return gs(e,n);case 3:return ms(e);case 8:return ds(e);case 9:return Wt(e,n);case 10:return hs();case 11:return Wt(e,n);default:return}}function Wt(e,n){return{type:"root",children:Ur(e,n)}}function hs(){return{type:"doctype"}}function ms(e){return{type:"text",value:e.nodeValue||""}}function ds(e){return{type:"comment",value:e.nodeValue||""}}function gs(e,n){const t=e.namespaceURI,r=t===gn.svg?cs:ss,i=t===gn.html?e.tagName.toLowerCase():e.tagName,l=t===gn.html&&i==="template"?e.content:e,o=e.getAttributeNames(),a={};let u=-1;for(;++u<o.length;)a[o[u]]=e.getAttribute(o[u])||"";return r(i,a,Ur(l,n))}function Ur(e,n){const t=e.childNodes,r=[];let i=-1;for(;++i<t.length;){const l=Hr(t[i],n);l!==void 0&&r.push(l)}return r}new DOMParser;function ys(e,n){const t=xs(e);return ps(t)}function xs(e){const n=document.createElement("template");return n.innerHTML=e,n.content}const Yt=function(e,n,t){const r=Un(t);if(!e||!e.type||!e.children)throw new Error("Expected parent node");if(typeof n=="number"){if(n<0||n===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(n=e.children.indexOf(n),n<0)throw new Error("Expected child node or index");for(;++n<e.children.length;)if(r(e.children[n],n,e))return e.children[n]},be=function(e){if(e==null)return bs;if(typeof e=="string")return ws(e);if(typeof e=="object")return ks(e);if(typeof e=="function")return qn(e);throw new Error("Expected function, string, or array as `test`")};function ks(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=be(e[t]);return qn(r);function r(...i){let l=-1;for(;++l<n.length;)if(n[l].apply(this,i))return!0;return!1}}function ws(e){return qn(n);function n(t){return t.tagName===e}}function qn(e){return n;function n(t,r,i){return!!(Ss(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function bs(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Ss(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Xt=/\n/g,Gt=/[\t ]+/g,Pn=be("br"),Qt=be(Fs),Es=be("p"),Kt=be("tr"),Cs=be(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",Ns,zs]),Vr=be(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function Is(e,n){const t=n||{},r="children"in e?e.children:[],i=Vr(e),l=Wr(e,{whitespace:t.whitespace||"normal",breakBefore:!1,breakAfter:!1}),o=[];(e.type==="text"||e.type==="comment")&&o.push(...$r(e,{whitespace:l,breakBefore:!0,breakAfter:!0}));let a=-1;for(;++a<r.length;)o.push(...qr(r[a],e,{whitespace:l,breakBefore:a?void 0:i,breakAfter:a<r.length-1?Pn(r[a+1]):i}));const u=[];let s;for(a=-1;++a<o.length;){const c=o[a];typeof c=="number"?s!==void 0&&c>s&&(s=c):c&&(s!==void 0&&s>-1&&u.push(`
`.repeat(s)||" "),s=-1,u.push(c))}return u.join("")}function qr(e,n,t){return e.type==="element"?Ts(e,n,t):e.type==="text"?t.whitespace==="normal"?$r(e,t):As(e):[]}function Ts(e,n,t){const r=Wr(e,t),i=e.children||[];let l=-1,o=[];if(Cs(e))return o;let a,u;for(Pn(e)||Kt(e)&&Yt(n,e,Kt)?u=`
`:Es(e)?(a=2,u=2):Vr(e)&&(a=1,u=1);++l<i.length;)o=o.concat(qr(i[l],e,{whitespace:r,breakBefore:l?void 0:a,breakAfter:l<i.length-1?Pn(i[l+1]):u}));return Qt(e)&&Yt(n,e,Qt)&&o.push(" "),a&&o.unshift(a),u&&o.push(u),o}function $r(e,n){const t=String(e.value),r=[],i=[];let l=0;for(;l<=t.length;){Xt.lastIndex=l;const u=Xt.exec(t),s=u&&"index"in u?u.index:t.length;r.push(Ps(t.slice(l,s).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),l===0?n.breakBefore:!0,s===t.length?n.breakAfter:!0)),l=s+1}let o=-1,a;for(;++o<r.length;)r[o].charCodeAt(r[o].length-1)===8203||o<r.length-1&&r[o+1].charCodeAt(0)===8203?(i.push(r[o]),a=void 0):r[o]?(typeof a=="number"&&i.push(a),i.push(r[o]),a=0):(o===0||o===r.length-1)&&i.push(0);return i}function As(e){return[String(e.value)]}function Ps(e,n,t){const r=[];let i=0,l;for(;i<e.length;){Gt.lastIndex=i;const o=Gt.exec(e);l=o?o.index:e.length,!i&&!l&&o&&!n&&r.push(""),i!==l&&r.push(e.slice(i,l)),i=o?l+o[0].length:l}return i!==l&&!t&&r.push(""),r.join(" ")}function Wr(e,n){if(e.type==="element"){const t=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return t.wrap?"pre-wrap":"pre";case"td":case"th":return t.noWrap?"nowrap":n.whitespace;case"textarea":return"pre-wrap"}}return n.whitespace}function Ns(e){return!!(e.properties||{}).hidden}function Fs(e){return e.tagName==="td"||e.tagName==="th"}function zs(e){return e.tagName==="dialog"&&!(e.properties||{}).open}const Ls={},Ms=[];function Rs(e){const n=e||Ls;return function(t,r){_r(t,"element",function(i,l){const o=Array.isArray(i.properties.className)?i.properties.className:Ms,a=o.includes("language-math"),u=o.includes("math-display"),s=o.includes("math-inline");let c=u;if(!a&&!u&&!s)return;let f=l[l.length-1],d=i;if(i.tagName==="code"&&a&&f&&f.type==="element"&&f.tagName==="pre"&&(d=f,f=l[l.length-2],c=!0),!f)return;const p=Is(d,{whitespace:"pre"});let y;try{y=Qn.renderToString(p,{...n,displayMode:c,throwOnError:!0})}catch(C){const b=C,S=b.name.toLowerCase();r.message("Could not render math with KaTeX",{ancestors:[...l,i],cause:b,place:i.position,ruleId:S,source:"rehype-katex"});try{y=Qn.renderToString(p,{...n,displayMode:c,strict:"ignore",throwOnError:!1})}catch{y=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(n.errorColor||"#cc0000"),title:String(C)},children:[{type:"text",value:p}]}]}}typeof y=="string"&&(y=ys(y).children);const g=f.children.indexOf(d);return f.children.splice(g,1,...y),Dr})}}export{_s as M,Rs as a,Un as c,rn as j,vs as r,_r as v};