neo-md 1.2.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -5
- package/dist/index.d.ts +7 -2
- package/dist/index.js +3605 -3176
- package/dist/index.umd.cjs +121 -31
- package/dist/neo-md.css +1 -1
- package/package.json +1 -1
package/dist/index.umd.cjs
CHANGED
|
@@ -1,79 +1,169 @@
|
|
|
1
|
-
(function(rt,D){typeof exports=="object"&&typeof module<"u"?D(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],D):(rt=typeof globalThis<"u"?globalThis:rt||self,D(rt.NeoMd={},rt.jsxRuntime,rt.React))})(this,(function(rt,D,ke){"use strict";function Ql(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const Se=Ql(ke);function nm(){}function rm(){}function Zl(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const Jl=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ea=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ta={};function Kr(e,n){return(ta.jsx?ea:Jl).test(e)}const na=/[ \t\n\f\r]/g;function ra(e){return typeof e=="object"?e.type==="text"?Qr(e.value):!1:Qr(e)}function Qr(e){return e.replace(na,"")===""}class Mt{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}Mt.prototype.normal={},Mt.prototype.property={},Mt.prototype.space=void 0;function Zr(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new Mt(t,r,n)}function On(e){return e.toLowerCase()}class Oe{constructor(n,t){this.attribute=t,this.property=n}}Oe.prototype.attribute="",Oe.prototype.booleanish=!1,Oe.prototype.boolean=!1,Oe.prototype.commaOrSpaceSeparated=!1,Oe.prototype.commaSeparated=!1,Oe.prototype.defined=!1,Oe.prototype.mustUseProperty=!1,Oe.prototype.number=!1,Oe.prototype.overloadedBoolean=!1,Oe.prototype.property="",Oe.prototype.spaceSeparated=!1,Oe.prototype.space=void 0;let ia=0;const Y=dt(),de=dt(),zn=dt(),_=dt(),se=dt(),St=dt(),Me=dt();function dt(){return 2**++ia}const Nn=Object.freeze(Object.defineProperty({__proto__:null,boolean:Y,booleanish:de,commaOrSpaceSeparated:Me,commaSeparated:St,number:_,overloadedBoolean:zn,spaceSeparated:se},Symbol.toStringTag,{value:"Module"})),Mn=Object.keys(Nn);class Rn extends Oe{constructor(n,t,r,i){let l=-1;if(super(n,t),Jr(this,"space",i),typeof r=="number")for(;++l<Mn.length;){const o=Mn[l];Jr(this,Mn[l],(r&Nn[o])===Nn[o])}}}Rn.prototype.defined=!0;function Jr(e,n,t){t&&(e[n]=t)}function Et(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Rn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[On(r)]=r,t[On(l.attribute)]=r}return new Mt(n,t,e.space)}const ei=Et({properties:{ariaActiveDescendant:null,ariaAtomic:de,ariaAutoComplete:null,ariaBusy:de,ariaChecked:de,ariaColCount:_,ariaColIndex:_,ariaColSpan:_,ariaControls:se,ariaCurrent:null,ariaDescribedBy:se,ariaDetails:null,ariaDisabled:de,ariaDropEffect:se,ariaErrorMessage:null,ariaExpanded:de,ariaFlowTo:se,ariaGrabbed:de,ariaHasPopup:null,ariaHidden:de,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:se,ariaLevel:_,ariaLive:null,ariaModal:de,ariaMultiLine:de,ariaMultiSelectable:de,ariaOrientation:null,ariaOwns:se,ariaPlaceholder:null,ariaPosInSet:_,ariaPressed:de,ariaReadOnly:de,ariaRelevant:null,ariaRequired:de,ariaRoleDescription:se,ariaRowCount:_,ariaRowIndex:_,ariaRowSpan:_,ariaSelected:de,ariaSetSize:_,ariaSort:null,ariaValueMax:_,ariaValueMin:_,ariaValueNow:_,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function ti(e,n){return n in e?e[n]:n}function ni(e,n){return ti(e,n.toLowerCase())}const oa=Et({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:St,acceptCharset:se,accessKey:se,action:null,allow:null,allowFullScreen:Y,allowPaymentRequest:Y,allowUserMedia:Y,alt:null,as:null,async:Y,autoCapitalize:null,autoComplete:se,autoFocus:Y,autoPlay:Y,blocking:se,capture:null,charSet:null,checked:Y,cite:null,className:se,cols:_,colSpan:null,content:null,contentEditable:de,controls:Y,controlsList:se,coords:_|St,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Y,defer:Y,dir:null,dirName:null,disabled:Y,download:zn,draggable:de,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Y,formTarget:null,headers:se,height:_,hidden:zn,high:_,href:null,hrefLang:null,htmlFor:se,httpEquiv:se,id:null,imageSizes:null,imageSrcSet:null,inert:Y,inputMode:null,integrity:null,is:null,isMap:Y,itemId:null,itemProp:se,itemRef:se,itemScope:Y,itemType:se,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Y,low:_,manifest:null,max:null,maxLength:_,media:null,method:null,min:null,minLength:_,multiple:Y,muted:Y,name:null,nonce:null,noModule:Y,noValidate:Y,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:Y,optimum:_,pattern:null,ping:se,placeholder:null,playsInline:Y,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Y,referrerPolicy:null,rel:se,required:Y,reversed:Y,rows:_,rowSpan:_,sandbox:se,scope:null,scoped:Y,seamless:Y,selected:Y,shadowRootClonable:Y,shadowRootDelegatesFocus:Y,shadowRootMode:null,shape:null,size:_,sizes:null,slot:null,span:_,spellCheck:de,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_,step:null,style:null,tabIndex:_,target:null,title:null,translate:null,type:null,typeMustMatch:Y,useMap:null,value:de,width:_,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:se,axis:null,background:null,bgColor:null,border:_,borderColor:null,bottomMargin:_,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Y,declare:Y,event:null,face:null,frame:null,frameBorder:null,hSpace:_,leftMargin:_,link:null,longDesc:null,lowSrc:null,marginHeight:_,marginWidth:_,noResize:Y,noHref:Y,noShade:Y,noWrap:Y,object:null,profile:null,prompt:null,rev:null,rightMargin:_,rules:null,scheme:null,scrolling:de,standby:null,summary:null,text:null,topMargin:_,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Y,disableRemotePlayback:Y,prefix:null,property:null,results:_,security:null,unselectable:null},space:"html",transform:ni}),la=Et({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:Me,accentHeight:_,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_,amplitude:_,arabicForm:null,ascent:_,attributeName:null,attributeType:null,azimuth:_,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_,by:null,calcMode:null,capHeight:_,className:se,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:_,diffuseConstant:_,direction:null,display:null,dur:null,divisor:_,dominantBaseline:null,download:Y,dx:null,dy:null,edgeMode:null,editable:null,elevation:_,enableBackground:null,end:null,event:null,exponent:_,externalResourcesRequired:null,fill:null,fillOpacity:_,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:St,g2:St,glyphName:St,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_,horizOriginX:_,horizOriginY:_,id:null,ideographic:_,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_,k:_,k1:_,k2:_,k3:_,k4:_,kernelMatrix:Me,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_,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:_,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:_,overlineThickness:_,paintOrder:null,panose1:null,path:null,pathLength:_,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:se,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_,pointsAtY:_,pointsAtZ:_,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Me,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Me,rev:Me,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Me,requiredFeatures:Me,requiredFonts:Me,requiredFormats:Me,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:_,specularExponent:_,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_,strikethroughThickness:_,string:null,stroke:null,strokeDashArray:Me,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_,strokeOpacity:_,strokeWidth:null,style:null,surfaceScale:_,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Me,tabIndex:_,tableValues:null,target:null,targetX:_,targetY:_,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Me,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_,underlineThickness:_,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_,values:null,vAlphabetic:_,vMathematical:_,vectorEffect:null,vHanging:_,vIdeographic:_,version:null,vertAdvY:_,vertOriginX:_,vertOriginY:_,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ti}),ri=Et({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()}}),ii=Et({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ni}),oi=Et({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),aa={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"},sa=/[A-Z]/g,li=/-[a-z]/g,ua=/^data[-\w.:]+$/i;function ca(e,n){const t=On(n);let r=n,i=Oe;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&ua.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(li,pa);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!li.test(l)){let o=l.replace(sa,fa);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Rn}return new i(r,n)}function fa(e){return"-"+e.toLowerCase()}function pa(e){return e.charAt(1).toUpperCase()}const ha=Zr([ei,oa,ri,ii,oi],"html"),Fn=Zr([ei,la,ri,ii,oi],"svg");function da(e){return e.join(" ").trim()}function Bn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ct={},jn,ai;function ma(){if(ai)return jn;ai=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,s=`
|
|
2
|
-
`,u="/",f="*",c="",h="comment",p="declaration";function y(E,x){if(typeof E!="string")throw new TypeError("First argument must be a string");if(!E)return[];x=x||{};var A=1,v=1;function $(R){var L=R.match(n);L&&(A+=L.length);var W=R.lastIndexOf(s);v=~W?R.length-W:v+R.length}function M(){var R={line:A,column:v};return function(L){return L.position=new w(R),V(),L}}function w(R){this.start=R,this.end={line:A,column:v},this.source=x.source}w.prototype.content=E;function H(R){var L=new Error(x.source+":"+A+":"+v+": "+R);if(L.reason=R,L.filename=x.source,L.line=A,L.column=v,L.source=E,!x.silent)throw L}function C(R){var L=R.exec(E);if(L){var W=L[0];return $(W),E=E.slice(W.length),L}}function V(){C(t)}function b(R){var L;for(R=R||[];L=O();)L!==!1&&R.push(L);return R}function O(){var R=M();if(!(u!=E.charAt(0)||f!=E.charAt(1))){for(var L=2;c!=E.charAt(L)&&(f!=E.charAt(L)||u!=E.charAt(L+1));)++L;if(L+=2,c===E.charAt(L-1))return H("End of comment missing");var W=E.slice(2,L-2);return v+=2,$(W),E=E.slice(L),v+=2,R({type:h,comment:W})}}function P(){var R=M(),L=C(r);if(L){if(O(),!C(i))return H("property missing ':'");var W=C(l),re=R({type:p,property:S(L[0].replace(e,c)),value:W?S(W[0].replace(e,c)):c});return C(o),re}}function X(){var R=[];b(R);for(var L;L=P();)L!==!1&&(R.push(L),b(R));return R}return V(),X()}function S(E){return E?E.replace(a,c):c}return jn=y,jn}var si;function ga(){if(si)return Ct;si=1;var e=Ct&&Ct.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.default=t;const n=e(ma());function t(r,i){let l=null;if(!r||typeof r!="string")return l;const o=(0,n.default)(r),a=typeof i=="function";return o.forEach(s=>{if(s.type!=="declaration")return;const{property:u,value:f}=s;a?i(u,f,s):f&&(l=l||{},l[u]=f)}),l}return Ct}var Rt={},ui;function ba(){if(ui)return Rt;ui=1,Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(u){return!u||t.test(u)||e.test(u)},o=function(u,f){return f.toUpperCase()},a=function(u,f){return"".concat(f,"-")},s=function(u,f){return f===void 0&&(f={}),l(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,o))};return Rt.camelCase=s,Rt}var Ft,ci;function ya(){if(ci)return Ft;ci=1;var e=Ft&&Ft.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(ga()),t=ba();function r(i,l){var o={};return!i||typeof i!="string"||(0,n.default)(i,function(a,s){a&&s&&(o[(0,t.camelCase)(a,l)]=s)}),o}return r.default=r,Ft=r,Ft}var xa=ya();const ka=Bn(xa),fi=pi("end"),Un=pi("start");function pi(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 wa(e){const n=Un(e),t=fi(e);if(n&&t)return{start:n,end:t}}function Bt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?hi(e.position):"start"in e||"end"in e?hi(e):"line"in e||"column"in e?$n(e):""}function $n(e){return di(e&&e.line)+":"+di(e&&e.column)}function hi(e){return $n(e&&e.start)+"-"+$n(e&&e.end)}function di(e){return e&&typeof e=="number"?e:1}class Te 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 s=r.indexOf(":");s===-1?l.ruleId=r:(l.source=r.slice(0,s),l.ruleId=r.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.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=Bt(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}}Te.prototype.file="",Te.prototype.name="",Te.prototype.reason="",Te.prototype.message="",Te.prototype.stack="",Te.prototype.column=void 0,Te.prototype.line=void 0,Te.prototype.ancestors=void 0,Te.prototype.cause=void 0,Te.prototype.fatal=void 0,Te.prototype.place=void 0,Te.prototype.ruleId=void 0,Te.prototype.source=void 0;const Hn={}.hasOwnProperty,Sa=new Map,Ea=/[A-Z]/g,Ca=new Set(["table","tbody","thead","tfoot","tr"]),va=new Set(["td","th"]),mi="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Ta(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=za(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=Oa(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"?Fn:ha,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=gi(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function gi(e,n,t){if(n.type==="element")return Aa(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return _a(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return La(e,n,t);if(n.type==="mdxjsEsm")return Ia(e,n);if(n.type==="root")return Pa(e,n,t);if(n.type==="text")return Da(e,n)}function Aa(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Fn,e.schema=i),e.ancestors.push(n);const l=yi(e,n.tagName,!1),o=Na(e,n);let a=qn(e,n);return Ca.has(n.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!ra(s):!0})),bi(e,o,l,n),Vn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function _a(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)}jt(e,n.position)}function Ia(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);jt(e,n.position)}function La(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Fn,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:yi(e,n.name,!0),o=Ma(e,n),a=qn(e,n);return bi(e,o,l,n),Vn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Pa(e,n,t){const r={};return Vn(r,qn(e,n)),e.create(n,e.Fragment,r,t)}function Da(e,n){return n.value}function bi(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Vn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Oa(e,n,t){return r;function r(i,l,o,a){const u=Array.isArray(o.children)?t:n;return a?u(l,o,a):u(l,o)}}function za(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),s=Un(r);return n(i,l,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Na(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&Hn.call(n.properties,i)){const l=Ra(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&va.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 Ma(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 jt(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 jt(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function qn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Sa;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const s=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(s){const u=i.get(s)||0;o=s+"-"+u,i.set(s,u+1)}}const a=gi(e,l,o);a!==void 0&&t.push(a)}return t}function Ra(e,n,t){const r=ca(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Zl(t):da(t)),r.property==="style"){let i=typeof t=="object"?t:Fa(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Ba(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?aa[r.property]||r.property:r.attribute,t]}}function Fa(e,n){try{return ka(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new Te("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=mi+"#cannot-parse-style-attribute",i}}function yi(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=Kr(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=Kr(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return Hn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);jt(e)}function jt(e,n){const t=new Te("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=mi+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Ba(e){const n={};let t;for(t in e)Hn.call(e,t)&&(n[ja(t)]=e[t]);return n}function ja(e){let n=e.replace(Ea,Ua);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Ua(e){return"-"+e.toLowerCase()}const Wn={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"]},$a={};function Gn(e,n){const t=$a,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return xi(e,r,i)}function xi(e,n,t){if(Ha(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 ki(e.children,n,t)}return Array.isArray(e)?ki(e,n,t):""}function ki(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=xi(e[i],n,t);return r.join("")}function Ha(e){return!!(e&&typeof e=="object")}const wi=document.createElement("i");function Yn(e){const n="&"+e+";";wi.innerHTML=n;const t=wi.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function Re(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 Be(e,n){return e.length>0?(Re(e,e.length,0,n),e):n}const Si={}.hasOwnProperty;function Ei(e){const n={};let t=-1;for(;++t<e.length;)Va(n,e[t]);return n}function Va(e,n){let t;for(t in n){const i=(Si.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){Si.call(i,o)||(i[o]=[]);const a=l[o];qa(i[o],Array.isArray(a)?a:a?[a]:[])}}}function qa(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);Re(e,0,0,r)}function Ci(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function $e(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Le=it(/[A-Za-z]/),Ae=it(/[\dA-Za-z]/),Wa=it(/[#-'*+\--9=?A-Z^-~]/);function ln(e){return e!==null&&(e<32||e===127)}const Xn=it(/\d/),Ga=it(/[\dA-Fa-f]/),Ya=it(/[!-/:-@[-`{-~]/);function U(e){return e!==null&&e<-2}function le(e){return e!==null&&(e<0||e===32)}function J(e){return e===-2||e===-1||e===32}const an=it(new RegExp("\\p{P}|\\p{S}","u")),mt=it(/\s/);function it(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function vt(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&Ae(e.charCodeAt(t+1))&&Ae(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="�"}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 ne(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return J(s)?(e.enter(t),a(s)):n(s)}function a(s){return J(s)&&l++<i?(e.consume(s),a):(e.exit(t),n(s))}}const Xa={tokenize:Ka};function Ka(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"),ne(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return U(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const Qa={tokenize:Za},vi={tokenize:Ja};function Za(e){const n=this,t=[];let r=0,i,l,o;return a;function a(v){if(r<t.length){const $=t[r];return n.containerState=$[1],e.attempt($[0].continuation,s,u)(v)}return u(v)}function s(v){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&A();const $=n.events.length;let M=$,w;for(;M--;)if(n.events[M][0]==="exit"&&n.events[M][1].type==="chunkFlow"){w=n.events[M][1].end;break}x(r);let H=$;for(;H<n.events.length;)n.events[H][1].end={...w},H++;return Re(n.events,M+1,0,n.events.slice($)),n.events.length=H,u(v)}return a(v)}function u(v){if(r===t.length){if(!i)return h(v);if(i.currentConstruct&&i.currentConstruct.concrete)return y(v);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(vi,f,c)(v)}function f(v){return i&&A(),x(r),h(v)}function c(v){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,y(v)}function h(v){return n.containerState={},e.attempt(vi,p,y)(v)}function p(v){return r++,t.push([n.currentConstruct,n.containerState]),h(v)}function y(v){if(v===null){i&&A(),x(0),e.consume(v);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),S(v)}function S(v){if(v===null){E(e.exit("chunkFlow"),!0),x(0),e.consume(v);return}return U(v)?(e.consume(v),E(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(v),S)}function E(v,$){const M=n.sliceStream(v);if($&&M.push(null),v.previous=l,l&&(l.next=v),l=v,i.defineSkip(v.start),i.write(M),n.parser.lazy[v.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<o&&(!i.events[w][1].end||i.events[w][1].end.offset>o))return;const H=n.events.length;let C=H,V,b;for(;C--;)if(n.events[C][0]==="exit"&&n.events[C][1].type==="chunkFlow"){if(V){b=n.events[C][1].end;break}V=!0}for(x(r),w=H;w<n.events.length;)n.events[w][1].end={...b},w++;Re(n.events,C+1,0,n.events.slice(H)),n.events.length=w}}function x(v){let $=t.length;for(;$-- >v;){const M=t[$];n.containerState=M[1],M[0].exit.call(n,e)}t.length=v}function A(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Ja(e,n,t){return ne(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Tt(e){if(e===null||le(e)||mt(e))return 1;if(an(e))return 2}function sn(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 Kn={name:"attention",resolveAll:es,tokenize:ts};function es(e,n){let t=-1,r,i,l,o,a,s,u,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},h={...e[t][1].start};Ti(c,-s),Ti(h,s),o={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:h},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Be(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=Be(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),u=Be(u,sn(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=Be(u,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,u=Be(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,Re(e,r-1,t-r+3,u),t=r+u.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function ts(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Tt(r);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===l)return e.consume(s),a;const u=e.exit("attentionSequence"),f=Tt(s),c=!f||f===2&&i||t.includes(s),h=!i||i===2&&f||t.includes(r);return u._open=!!(l===42?c:c&&(i||!h)),u._close=!!(l===42?h:h&&(f||!c)),n(s)}}function Ti(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const ns={name:"autolink",tokenize:rs};function rs(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 Le(p)?(e.consume(p),o):p===64?t(p):u(p)}function o(p){return p===43||p===45||p===46||Ae(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,s):(p===43||p===45||p===46||Ae(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function s(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||ln(p)?t(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),f):Wa(p)?(e.consume(p),u):t(p)}function f(p){return Ae(p)?c(p):t(p)}function c(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):h(p)}function h(p){if((p===45||Ae(p))&&r++<63){const y=p===45?h:c;return e.consume(p),y}return t(p)}}const Ut={partial:!0,tokenize:is};function is(e,n,t){return r;function r(l){return J(l)?ne(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||U(l)?n(l):t(l)}}const Ai={continuation:{tokenize:ls},exit:as,name:"blockQuote",tokenize:os};function os(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 J(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function ls(e,n,t){const r=this;return i;function i(o){return J(o)?ne(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Ai,n,t)(o)}}function as(e){e.exit("blockQuote")}const _i={name:"characterEscape",tokenize:ss};function ss(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 Ya(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const Ii={name:"characterReference",tokenize:us};function us(e,n,t){const r=this;let i=0,l,o;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=Ae,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Ga,f):(e.enter("characterReferenceValue"),l=7,o=Xn,f(c))}function f(c){if(c===59&&i){const h=e.exit("characterReferenceValue");return o===Ae&&!Yn(r.sliceSerialize(h))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(c)&&i++<l?(e.consume(c),f):t(c)}}const Li={partial:!0,tokenize:fs},Pi={concrete:!0,name:"codeFenced",tokenize:cs};function cs(e,n,t){const r=this,i={partial:!0,tokenize:M};let l=0,o=0,a;return s;function s(w){return u(w)}function u(w){const H=r.events[r.events.length-1];return l=H&&H[1].type==="linePrefix"?H[2].sliceSerialize(H[1],!0).length:0,a=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===a?(o++,e.consume(w),f):o<3?t(w):(e.exit("codeFencedFenceSequence"),J(w)?ne(e,c,"whitespace")(w):c(w))}function c(w){return w===null||U(w)?(e.exit("codeFencedFence"),r.interrupt?n(w):e.check(Li,S,$)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(w))}function h(w){return w===null||U(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):J(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ne(e,p,"whitespace")(w)):w===96&&w===a?t(w):(e.consume(w),h)}function p(w){return w===null||U(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),y(w))}function y(w){return w===null||U(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===a?t(w):(e.consume(w),y)}function S(w){return e.attempt(i,$,E)(w)}function E(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),x}function x(w){return l>0&&J(w)?ne(e,A,"linePrefix",l+1)(w):A(w)}function A(w){return w===null||U(w)?e.check(Li,S,$)(w):(e.enter("codeFlowValue"),v(w))}function v(w){return w===null||U(w)?(e.exit("codeFlowValue"),A(w)):(e.consume(w),v)}function $(w){return e.exit("codeFenced"),n(w)}function M(w,H,C){let V=0;return b;function b(L){return w.enter("lineEnding"),w.consume(L),w.exit("lineEnding"),O}function O(L){return w.enter("codeFencedFence"),J(L)?ne(w,P,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):P(L)}function P(L){return L===a?(w.enter("codeFencedFenceSequence"),X(L)):C(L)}function X(L){return L===a?(V++,w.consume(L),X):V>=o?(w.exit("codeFencedFenceSequence"),J(L)?ne(w,R,"whitespace")(L):R(L)):C(L)}function R(L){return L===null||U(L)?(w.exit("codeFencedFence"),H(L)):C(L)}}}function fs(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 Qn={name:"codeIndented",tokenize:hs},ps={partial:!0,tokenize:ds};function hs(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),ne(e,l,"linePrefix",5)(u)}function l(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?s(u):U(u)?e.attempt(ps,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||U(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),n(u)}}function ds(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):U(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):ne(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):U(o)?i(o):t(o)}}const ms={name:"codeText",previous:bs,resolve:gs,tokenize:ys};function gs(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 bs(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ys(e,n,t){let r=0,i,l;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(l=e.enter("codeTextSequence"),i=0,f(c)):U(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||U(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(l.type="codeTextData",u(c))}}class xs{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&&$t(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),$t(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),$t(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);$t(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);$t(this.left,t.reverse())}}}function $t(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 Di(e){const n={};let t=-1,r,i,l,o,a,s,u;const f=new xs(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,ks(f,t)),t=n[t],u=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=f.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(f.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={...f.get(i)[1].start},a=f.slice(i,t),a.unshift(r),f.splice(i,t-i+1,a))}}return Re(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function ks(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,s=[],u={};let f,c,h=-1,p=t,y=0,S=0;const E=[S];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),c&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=t;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(S=h+1,E.push(S),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):E.pop(),h=E.length;h--;){const x=a.slice(E[h],E[h+1]),A=l.pop();s.push([A,A+x.length-1]),e.splice(A,2,x)}for(s.reverse(),h=-1;++h<s.length;)u[y+s[h][0]]=y+s[h][1],y+=s[h][1]-s[h][0]-1;return u}const ws={resolve:Es,tokenize:Cs},Ss={partial:!0,tokenize:vs};function Es(e){return Di(e),e}function Cs(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):U(a)?e.check(Ss,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 vs(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ne(e,l,"linePrefix")}function l(o){if(o===null||U(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 Oi(e,n,t,r,i,l,o,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(x),e.exit(l),h):x===null||x===32||x===41||ln(x)?t(x):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),S(x))}function h(x){return x===62?(e.enter(l),e.consume(x),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===62?(e.exit("chunkString"),e.exit(a),h(x)):x===null||x===60||U(x)?t(x):(e.consume(x),x===92?y:p)}function y(x){return x===60||x===62||x===92?(e.consume(x),p):p(x)}function S(x){return!f&&(x===null||x===41||le(x))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(x)):f<u&&x===40?(e.consume(x),f++,S):x===41?(e.consume(x),f--,S):x===null||x===32||x===40||ln(x)?t(x):(e.consume(x),x===92?E:S)}function E(x){return x===40||x===41||x===92?(e.consume(x),S):S(x)}}function zi(e,n,t,r,i,l){const o=this;let a=0,s;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),f}function f(p){return a>999||p===null||p===91||p===93&&!s||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):U(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||U(p)||a++>999?(e.exit("chunkString"),f(p)):(e.consume(p),s||(s=!J(p)),p===92?h:c)}function h(p){return p===91||p===92||p===93?(e.consume(p),a++,c):c(p)}}function Ni(e,n,t,r,i,l){let o;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,s):t(h)}function s(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):(e.enter(l),u(h))}function u(h){return h===o?(e.exit(l),s(o)):h===null?t(h):U(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ne(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===o||h===null||U(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?c:f)}function c(h){return h===o||h===92?(e.consume(h),f):f(h)}}function Ht(e,n){let t;return r;function r(i){return U(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):J(i)?ne(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Ts={name:"definition",tokenize:_s},As={partial:!0,tokenize:Is};function _s(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return zi.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=$e(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):t(p)}function s(p){return le(p)?Ht(e,u)(p):u(p)}function u(p){return Oi(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(As,c,c)(p)}function c(p){return J(p)?ne(e,h,"whitespace")(p):h(p)}function h(p){return p===null||U(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function Is(e,n,t){return r;function r(a){return le(a)?Ht(e,i)(a):t(a)}function i(a){return Ni(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return J(a)?ne(e,o,"whitespace")(a):o(a)}function o(a){return a===null||U(a)?n(a):t(a)}}const Ls={name:"hardBreakEscape",tokenize:Ps};function Ps(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return U(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const Ds={name:"headingAtx",resolve:Os,tokenize:zs};function Os(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"},Re(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function zs(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||le(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||U(f)?(e.exit("atxHeading"),n(f)):J(f)?ne(e,a,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),a(f))}function u(f){return f===null||f===35||le(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const Ns=["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"],Mi=["pre","script","style","textarea"],Ms={concrete:!0,name:"htmlFlow",resolveTo:Bs,tokenize:js},Rs={partial:!0,tokenize:$s},Fs={partial:!0,tokenize:Us};function Bs(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 js(e,n,t){const r=this;let i,l,o,a,s;return u;function u(m){return f(m)}function f(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),c}function c(m){return m===33?(e.consume(m),h):m===47?(e.consume(m),l=!0,S):m===63?(e.consume(m),i=3,r.interrupt?n:d):Le(m)?(e.consume(m),o=String.fromCharCode(m),E):t(m)}function h(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=0,y):Le(m)?(e.consume(m),i=4,r.interrupt?n:d):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:d):t(m)}function y(m){const me="CDATA[";return m===me.charCodeAt(a++)?(e.consume(m),a===me.length?r.interrupt?n:P:y):t(m)}function S(m){return Le(m)?(e.consume(m),o=String.fromCharCode(m),E):t(m)}function E(m){if(m===null||m===47||m===62||le(m)){const me=m===47,ue=o.toLowerCase();return!me&&!l&&Mi.includes(ue)?(i=1,r.interrupt?n(m):P(m)):Ns.includes(o.toLowerCase())?(i=6,me?(e.consume(m),x):r.interrupt?n(m):P(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?A(m):v(m))}return m===45||Ae(m)?(e.consume(m),o+=String.fromCharCode(m),E):t(m)}function x(m){return m===62?(e.consume(m),r.interrupt?n:P):t(m)}function A(m){return J(m)?(e.consume(m),A):b(m)}function v(m){return m===47?(e.consume(m),b):m===58||m===95||Le(m)?(e.consume(m),$):J(m)?(e.consume(m),v):b(m)}function $(m){return m===45||m===46||m===58||m===95||Ae(m)?(e.consume(m),$):M(m)}function M(m){return m===61?(e.consume(m),w):J(m)?(e.consume(m),M):v(m)}function w(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),s=m,H):J(m)?(e.consume(m),w):C(m)}function H(m){return m===s?(e.consume(m),s=null,V):m===null||U(m)?t(m):(e.consume(m),H)}function C(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||le(m)?M(m):(e.consume(m),C)}function V(m){return m===47||m===62||J(m)?v(m):t(m)}function b(m){return m===62?(e.consume(m),O):t(m)}function O(m){return m===null||U(m)?P(m):J(m)?(e.consume(m),O):t(m)}function P(m){return m===45&&i===2?(e.consume(m),W):m===60&&i===1?(e.consume(m),re):m===62&&i===4?(e.consume(m),fe):m===63&&i===3?(e.consume(m),d):m===93&&i===5?(e.consume(m),ie):U(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Rs,_e,X)(m)):m===null||U(m)?(e.exit("htmlFlowData"),X(m)):(e.consume(m),P)}function X(m){return e.check(Fs,R,_e)(m)}function R(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),L}function L(m){return m===null||U(m)?X(m):(e.enter("htmlFlowData"),P(m))}function W(m){return m===45?(e.consume(m),d):P(m)}function re(m){return m===47?(e.consume(m),o="",pe):P(m)}function pe(m){if(m===62){const me=o.toLowerCase();return Mi.includes(me)?(e.consume(m),fe):P(m)}return Le(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),pe):P(m)}function ie(m){return m===93?(e.consume(m),d):P(m)}function d(m){return m===62?(e.consume(m),fe):m===45&&i===2?(e.consume(m),d):P(m)}function fe(m){return m===null||U(m)?(e.exit("htmlFlowData"),_e(m)):(e.consume(m),fe)}function _e(m){return e.exit("htmlFlow"),n(m)}}function Us(e,n,t){const r=this;return i;function i(o){return U(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 $s(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ut,n,t)}}const Hs={name:"htmlText",tokenize:Vs};function Vs(e,n,t){const r=this;let i,l,o;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),s}function s(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),M):d===63?(e.consume(d),v):Le(d)?(e.consume(d),C):t(d)}function u(d){return d===45?(e.consume(d),f):d===91?(e.consume(d),l=0,y):Le(d)?(e.consume(d),A):t(d)}function f(d){return d===45?(e.consume(d),p):t(d)}function c(d){return d===null?t(d):d===45?(e.consume(d),h):U(d)?(o=c,re(d)):(e.consume(d),c)}function h(d){return d===45?(e.consume(d),p):c(d)}function p(d){return d===62?W(d):d===45?h(d):c(d)}function y(d){const fe="CDATA[";return d===fe.charCodeAt(l++)?(e.consume(d),l===fe.length?S:y):t(d)}function S(d){return d===null?t(d):d===93?(e.consume(d),E):U(d)?(o=S,re(d)):(e.consume(d),S)}function E(d){return d===93?(e.consume(d),x):S(d)}function x(d){return d===62?W(d):d===93?(e.consume(d),x):S(d)}function A(d){return d===null||d===62?W(d):U(d)?(o=A,re(d)):(e.consume(d),A)}function v(d){return d===null?t(d):d===63?(e.consume(d),$):U(d)?(o=v,re(d)):(e.consume(d),v)}function $(d){return d===62?W(d):v(d)}function M(d){return Le(d)?(e.consume(d),w):t(d)}function w(d){return d===45||Ae(d)?(e.consume(d),w):H(d)}function H(d){return U(d)?(o=H,re(d)):J(d)?(e.consume(d),H):W(d)}function C(d){return d===45||Ae(d)?(e.consume(d),C):d===47||d===62||le(d)?V(d):t(d)}function V(d){return d===47?(e.consume(d),W):d===58||d===95||Le(d)?(e.consume(d),b):U(d)?(o=V,re(d)):J(d)?(e.consume(d),V):W(d)}function b(d){return d===45||d===46||d===58||d===95||Ae(d)?(e.consume(d),b):O(d)}function O(d){return d===61?(e.consume(d),P):U(d)?(o=O,re(d)):J(d)?(e.consume(d),O):V(d)}function P(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),i=d,X):U(d)?(o=P,re(d)):J(d)?(e.consume(d),P):(e.consume(d),R)}function X(d){return d===i?(e.consume(d),i=void 0,L):d===null?t(d):U(d)?(o=X,re(d)):(e.consume(d),X)}function R(d){return d===null||d===34||d===39||d===60||d===61||d===96?t(d):d===47||d===62||le(d)?V(d):(e.consume(d),R)}function L(d){return d===47||d===62||le(d)?V(d):t(d)}function W(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),n):t(d)}function re(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),pe}function pe(d){return J(d)?ne(e,ie,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):ie(d)}function ie(d){return e.enter("htmlTextData"),o(d)}}const Zn={name:"labelEnd",resolveAll:Ys,resolveTo:Xs,tokenize:Ks},qs={tokenize:Qs},Ws={tokenize:Zs},Gs={tokenize:Js};function Ys(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&&Re(e,0,e.length,t),e}function Xs(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 s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},f={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",s,n],["enter",u,n]],a=Be(a,e.slice(l+1,l+r+3)),a=Be(a,[["enter",f,n]]),a=Be(a,sn(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=Be(a,[["exit",f,n],e[o-2],e[o-1],["exit",u,n]]),a=Be(a,e.slice(o+1)),a=Be(a,[["exit",s,n]]),Re(e,l,e.length,a),e}function Ks(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(h){return l?l._inactive?c(h):(o=r.parser.defined.includes($e(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),s):t(h)}function s(h){return h===40?e.attempt(qs,f,o?f:c)(h):h===91?e.attempt(Ws,f,o?u:c)(h):o?f(h):c(h)}function u(h){return e.attempt(Gs,f,c)(h)}function f(h){return n(h)}function c(h){return l._balanced=!0,t(h)}}function Qs(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return le(c)?Ht(e,l)(c):l(c)}function l(c){return c===41?f(c):Oi(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return le(c)?Ht(e,s)(c):f(c)}function a(c){return t(c)}function s(c){return c===34||c===39||c===40?Ni(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return le(c)?Ht(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function Zs(e,n,t){const r=this;return i;function i(a){return zi.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes($e(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function Js(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 eu={name:"labelStartImage",resolveAll:Zn.resolveAll,tokenize:tu};function tu(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 nu={name:"labelStartLink",resolveAll:Zn.resolveAll,tokenize:ru};function ru(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 Jn={name:"lineEnding",tokenize:iu};function iu(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ne(e,n,"linePrefix")}}const un={name:"thematicBreak",tokenize:ou};function ou(e,n,t){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||U(u))?(e.exit("thematicBreak"),n(u)):t(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),J(u)?ne(e,a,"whitespace")(u):a(u))}}const ze={continuation:{tokenize:uu},exit:fu,name:"list",tokenize:su},lu={partial:!0,tokenize:pu},au={partial:!0,tokenize:cu};function su(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:Xn(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(un,t,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return t(p)}function s(p){return Xn(p)&&++o<10?(e.consume(p),s):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):t(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ut,r.interrupt?t:f,e.attempt(lu,h,c))}function f(p){return r.containerState.initialBlankLine=!0,l++,h(p)}function c(p){return J(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):t(p)}function h(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function uu(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(Ut,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ne(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!J(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(au,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ne(e,e.attempt(ze,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function cu(e,n,t){const r=this;return ne(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 fu(e){e.exit(this.containerState.type)}function pu(e,n,t){const r=this;return ne(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!J(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const Ri={name:"setextUnderline",resolveTo:hu,tokenize:du};function hu(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 du(e,n,t){const r=this;let i;return l;function l(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,o(u)):t(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),J(u)?ne(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||U(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const mu={tokenize:gu};function gu(e){const n=this,t=e.attempt(Ut,r,e.attempt(this.parser.constructs.flowInitial,i,ne(e,e.attempt(this.parser.constructs.flow,i,e.attempt(ws,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 bu={resolveAll:Bi()},yu=Fi("string"),xu=Fi("text");function Fi(e){return{resolveAll:Bi(e==="text"?ku: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(f){return u(f)?l(f):a(f)}function a(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),s}function s(f){return u(f)?(t.exit("data"),l(f)):(t.consume(f),s)}function u(f){if(f===null)return!0;const c=i[f];let h=-1;if(c)for(;++h<c.length;){const p=c[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Bi(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 ku(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,s;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)s=!0,a++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||s||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={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const wu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Ts},disable:{null:[]},document:{42:ze,43:ze,45:ze,48:ze,49:ze,50:ze,51:ze,52:ze,53:ze,54:ze,55:ze,56:ze,57:ze,62:Ai},flow:{35:Ds,42:un,45:[Ri,un],60:Ms,61:Ri,95:un,96:Pi,126:Pi},flowInitial:{[-2]:Qn,[-1]:Qn,32:Qn},insideSpan:{null:[Kn,bu]},string:{38:Ii,92:_i},text:{[-5]:Jn,[-4]:Jn,[-3]:Jn,33:eu,38:Ii,42:Kn,60:[ns,Hs],91:nu,92:[Ls,_i],93:Zn,95:Kn,96:ms}},Symbol.toStringTag,{value:"Module"}));function Su(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 s={attempt:H(M),check:H(w),consume:A,enter:v,exit:$,interrupt:H(w,{interrupt:!0})},u={code:null,containerState:{},defineSkip:S,events:[],now:y,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:c};let f=n.tokenize.call(u,s);return n.resolveAll&&l.push(n),u;function c(O){return o=Be(o,O),E(),o[o.length-1]!==null?[]:(C(n,0),u.events=sn(l,u.events,u),u.events)}function h(O,P){return Cu(p(O),P)}function p(O){return Eu(o,O)}function y(){const{_bufferIndex:O,_index:P,line:X,column:R,offset:L}=r;return{_bufferIndex:O,_index:P,line:X,column:R,offset:L}}function S(O){i[O.line]=O.column,b()}function E(){let O;for(;r._index<o.length;){const P=o[r._index];if(typeof P=="string")for(O=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===O&&r._bufferIndex<P.length;)x(P.charCodeAt(r._bufferIndex));else x(P)}}function x(O){f=f(O)}function A(O){U(O)?(r.line++,r.column=1,r.offset+=O===-3?2:1,b()):O!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=O}function v(O,P){const X=P||{};return X.type=O,X.start=y(),u.events.push(["enter",X,u]),a.push(X),X}function $(O){const P=a.pop();return P.end=y(),u.events.push(["exit",P,u]),P}function M(O,P){C(O,P.from)}function w(O,P){P.restore()}function H(O,P){return X;function X(R,L,W){let re,pe,ie,d;return Array.isArray(R)?_e(R):"tokenize"in R?_e([R]):fe(R);function fe(te){return je;function je(Fe){const ae=Fe!==null&&te[Fe],Ue=Fe!==null&&te.null,He=[...Array.isArray(ae)?ae:ae?[ae]:[],...Array.isArray(Ue)?Ue:Ue?[Ue]:[]];return _e(He)(Fe)}}function _e(te){return re=te,pe=0,te.length===0?W:m(te[pe])}function m(te){return je;function je(Fe){return d=V(),ie=te,te.partial||(u.currentConstruct=te),te.name&&u.parser.constructs.disable.null.includes(te.name)?ue():te.tokenize.call(P?Object.assign(Object.create(u),P):u,s,me,ue)(Fe)}}function me(te){return O(ie,d),L}function ue(te){return d.restore(),++pe<re.length?m(re[pe]):W}}}function C(O,P){O.resolveAll&&!l.includes(O)&&l.push(O),O.resolve&&Re(u.events,P,u.events.length-P,O.resolve(u.events.slice(P),u)),O.resolveTo&&(u.events=O.resolveTo(u.events,u))}function V(){const O=y(),P=u.previous,X=u.currentConstruct,R=u.events.length,L=Array.from(a);return{from:R,restore:W};function W(){r=O,u.previous=P,u.currentConstruct=X,u.events.length=R,a=L,b()}}function b(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Eu(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 Cu(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=`
|
|
1
|
+
(function(st,P){typeof exports=="object"&&typeof module<"u"?P(exports,require("react/jsx-runtime"),require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","react-dom"],P):(st=typeof globalThis<"u"?globalThis:st||self,P(st.NeoMd={},st.jsxRuntime,st.React))})(this,(function(st,P,Q){"use strict";function na(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const Ae=na(Q);function Cm(){}function vm(){}function ra(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const ia=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,oa=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,la={};function Jr(e,n){return(la.jsx?oa:ia).test(e)}const aa=/[ \t\n\f\r]/g;function sa(e){return typeof e=="object"?e.type==="text"?ei(e.value):!1:ei(e)}function ei(e){return e.replace(aa,"")===""}class $t{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}$t.prototype.normal={},$t.prototype.property={},$t.prototype.space=void 0;function ti(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new $t(t,r,n)}function zn(e){return e.toLowerCase()}class Fe{constructor(n,t){this.attribute=t,this.property=n}}Fe.prototype.attribute="",Fe.prototype.booleanish=!1,Fe.prototype.boolean=!1,Fe.prototype.commaOrSpaceSeparated=!1,Fe.prototype.commaSeparated=!1,Fe.prototype.defined=!1,Fe.prototype.mustUseProperty=!1,Fe.prototype.number=!1,Fe.prototype.overloadedBoolean=!1,Fe.prototype.property="",Fe.prototype.spaceSeparated=!1,Fe.prototype.space=void 0;let ua=0;const X=gt(),ye=gt(),On=gt(),_=gt(),ce=gt(),Et=gt(),Ve=gt();function gt(){return 2**++ua}const Rn=Object.freeze(Object.defineProperty({__proto__:null,boolean:X,booleanish:ye,commaOrSpaceSeparated:Ve,commaSeparated:Et,number:_,overloadedBoolean:On,spaceSeparated:ce},Symbol.toStringTag,{value:"Module"})),Fn=Object.keys(Rn);class Bn extends Fe{constructor(n,t,r,i){let l=-1;if(super(n,t),ni(this,"space",i),typeof r=="number")for(;++l<Fn.length;){const o=Fn[l];ni(this,Fn[l],(r&Rn[o])===Rn[o])}}}Bn.prototype.defined=!0;function ni(e,n,t){t&&(e[n]=t)}function Tt(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const l=new Bn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),n[r]=l,t[zn(r)]=r,t[zn(l.attribute)]=r}return new $t(n,t,e.space)}const ri=Tt({properties:{ariaActiveDescendant:null,ariaAtomic:ye,ariaAutoComplete:null,ariaBusy:ye,ariaChecked:ye,ariaColCount:_,ariaColIndex:_,ariaColSpan:_,ariaControls:ce,ariaCurrent:null,ariaDescribedBy:ce,ariaDetails:null,ariaDisabled:ye,ariaDropEffect:ce,ariaErrorMessage:null,ariaExpanded:ye,ariaFlowTo:ce,ariaGrabbed:ye,ariaHasPopup:null,ariaHidden:ye,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ce,ariaLevel:_,ariaLive:null,ariaModal:ye,ariaMultiLine:ye,ariaMultiSelectable:ye,ariaOrientation:null,ariaOwns:ce,ariaPlaceholder:null,ariaPosInSet:_,ariaPressed:ye,ariaReadOnly:ye,ariaRelevant:null,ariaRequired:ye,ariaRoleDescription:ce,ariaRowCount:_,ariaRowIndex:_,ariaRowSpan:_,ariaSelected:ye,ariaSetSize:_,ariaSort:null,ariaValueMax:_,ariaValueMin:_,ariaValueNow:_,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function ii(e,n){return n in e?e[n]:n}function oi(e,n){return ii(e,n.toLowerCase())}const ca=Tt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Et,acceptCharset:ce,accessKey:ce,action:null,allow:null,allowFullScreen:X,allowPaymentRequest:X,allowUserMedia:X,alt:null,as:null,async:X,autoCapitalize:null,autoComplete:ce,autoFocus:X,autoPlay:X,blocking:ce,capture:null,charSet:null,checked:X,cite:null,className:ce,cols:_,colSpan:null,content:null,contentEditable:ye,controls:X,controlsList:ce,coords:_|Et,crossOrigin:null,data:null,dateTime:null,decoding:null,default:X,defer:X,dir:null,dirName:null,disabled:X,download:On,draggable:ye,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:X,formTarget:null,headers:ce,height:_,hidden:On,high:_,href:null,hrefLang:null,htmlFor:ce,httpEquiv:ce,id:null,imageSizes:null,imageSrcSet:null,inert:X,inputMode:null,integrity:null,is:null,isMap:X,itemId:null,itemProp:ce,itemRef:ce,itemScope:X,itemType:ce,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:X,low:_,manifest:null,max:null,maxLength:_,media:null,method:null,min:null,minLength:_,multiple:X,muted:X,name:null,nonce:null,noModule:X,noValidate:X,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:X,optimum:_,pattern:null,ping:ce,placeholder:null,playsInline:X,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:X,referrerPolicy:null,rel:ce,required:X,reversed:X,rows:_,rowSpan:_,sandbox:ce,scope:null,scoped:X,seamless:X,selected:X,shadowRootClonable:X,shadowRootDelegatesFocus:X,shadowRootMode:null,shape:null,size:_,sizes:null,slot:null,span:_,spellCheck:ye,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_,step:null,style:null,tabIndex:_,target:null,title:null,translate:null,type:null,typeMustMatch:X,useMap:null,value:ye,width:_,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ce,axis:null,background:null,bgColor:null,border:_,borderColor:null,bottomMargin:_,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:X,declare:X,event:null,face:null,frame:null,frameBorder:null,hSpace:_,leftMargin:_,link:null,longDesc:null,lowSrc:null,marginHeight:_,marginWidth:_,noResize:X,noHref:X,noShade:X,noWrap:X,object:null,profile:null,prompt:null,rev:null,rightMargin:_,rules:null,scheme:null,scrolling:ye,standby:null,summary:null,text:null,topMargin:_,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:X,disableRemotePlayback:X,prefix:null,property:null,results:_,security:null,unselectable:null},space:"html",transform:oi}),fa=Tt({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:Ve,accentHeight:_,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_,amplitude:_,arabicForm:null,ascent:_,attributeName:null,attributeType:null,azimuth:_,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_,by:null,calcMode:null,capHeight:_,className:ce,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:_,diffuseConstant:_,direction:null,display:null,dur:null,divisor:_,dominantBaseline:null,download:X,dx:null,dy:null,edgeMode:null,editable:null,elevation:_,enableBackground:null,end:null,event:null,exponent:_,externalResourcesRequired:null,fill:null,fillOpacity:_,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:Et,g2:Et,glyphName:Et,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_,horizOriginX:_,horizOriginY:_,id:null,ideographic:_,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_,k:_,k1:_,k2:_,k3:_,k4:_,kernelMatrix:Ve,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_,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:_,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:_,overlineThickness:_,paintOrder:null,panose1:null,path:null,pathLength:_,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ce,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_,pointsAtY:_,pointsAtZ:_,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Ve,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Ve,rev:Ve,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Ve,requiredFeatures:Ve,requiredFonts:Ve,requiredFormats:Ve,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:_,specularExponent:_,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_,strikethroughThickness:_,string:null,stroke:null,strokeDashArray:Ve,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_,strokeOpacity:_,strokeWidth:null,style:null,surfaceScale:_,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Ve,tabIndex:_,tableValues:null,target:null,targetX:_,targetY:_,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Ve,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_,underlineThickness:_,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_,values:null,vAlphabetic:_,vMathematical:_,vectorEffect:null,vHanging:_,vIdeographic:_,version:null,vertAdvY:_,vertOriginX:_,vertOriginY:_,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ii}),li=Tt({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()}}),ai=Tt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:oi}),si=Tt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),pa={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"},ha=/[A-Z]/g,ui=/-[a-z]/g,da=/^data[-\w.:]+$/i;function ma(e,n){const t=zn(n);let r=n,i=Fe;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&da.test(n)){if(n.charAt(4)==="-"){const l=n.slice(5).replace(ui,ba);r="data"+l.charAt(0).toUpperCase()+l.slice(1)}else{const l=n.slice(4);if(!ui.test(l)){let o=l.replace(ha,ga);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}i=Bn}return new i(r,n)}function ga(e){return"-"+e.toLowerCase()}function ba(e){return e.charAt(1).toUpperCase()}const ya=ti([ri,ca,li,ai,si],"html"),$n=ti([ri,fa,li,ai,si],"svg");function ka(e){return e.join(" ").trim()}function jn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var At={},Hn,ci;function xa(){if(ci)return Hn;ci=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,s=`
|
|
2
|
+
`,u="/",f="*",c="",h="comment",p="declaration";function b(k,x){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];x=x||{};var T=1,v=1;function j(M){var L=M.match(n);L&&(T+=L.length);var V=M.lastIndexOf(s);v=~V?M.length-V:v+M.length}function R(){var M={line:T,column:v};return function(L){return L.position=new S(M),U(),L}}function S(M){this.start=M,this.end={line:T,column:v},this.source=x.source}S.prototype.content=k;function q(M){var L=new Error(x.source+":"+T+":"+v+": "+M);if(L.reason=M,L.filename=x.source,L.line=T,L.column=v,L.source=k,!x.silent)throw L}function E(M){var L=M.exec(k);if(L){var V=L[0];return j(V),k=k.slice(V.length),L}}function U(){E(t)}function y(M){var L;for(M=M||[];L=D();)L!==!1&&M.push(L);return M}function D(){var M=R();if(!(u!=k.charAt(0)||f!=k.charAt(1))){for(var L=2;c!=k.charAt(L)&&(f!=k.charAt(L)||u!=k.charAt(L+1));)++L;if(L+=2,c===k.charAt(L-1))return q("End of comment missing");var V=k.slice(2,L-2);return v+=2,j(V),k=k.slice(L),v+=2,M({type:h,comment:V})}}function N(){var M=R(),L=E(r);if(L){if(D(),!E(i))return q("property missing ':'");var V=E(l),ne=M({type:p,property:C(L[0].replace(e,c)),value:V?C(V[0].replace(e,c)):c});return E(o),ne}}function G(){var M=[];y(M);for(var L;L=N();)L!==!1&&(M.push(L),y(M));return M}return U(),G()}function C(k){return k?k.replace(a,c):c}return Hn=b,Hn}var fi;function wa(){if(fi)return At;fi=1;var e=At&&At.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(At,"__esModule",{value:!0}),At.default=t;const n=e(xa());function t(r,i){let l=null;if(!r||typeof r!="string")return l;const o=(0,n.default)(r),a=typeof i=="function";return o.forEach(s=>{if(s.type!=="declaration")return;const{property:u,value:f}=s;a?i(u,f,s):f&&(l=l||{},l[u]=f)}),l}return At}var jt={},pi;function Sa(){if(pi)return jt;pi=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,l=function(u){return!u||t.test(u)||e.test(u)},o=function(u,f){return f.toUpperCase()},a=function(u,f){return"".concat(f,"-")},s=function(u,f){return f===void 0&&(f={}),l(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,o))};return jt.camelCase=s,jt}var Ht,hi;function Ca(){if(hi)return Ht;hi=1;var e=Ht&&Ht.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(wa()),t=Sa();function r(i,l){var o={};return!i||typeof i!="string"||(0,n.default)(i,function(a,s){a&&s&&(o[(0,t.camelCase)(a,l)]=s)}),o}return r.default=r,Ht=r,Ht}var va=Ca();const Ea=jn(va),di=mi("end"),Un=mi("start");function mi(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 Ta(e){const n=Un(e),t=di(e);if(n&&t)return{start:n,end:t}}function Ut(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?gi(e.position):"start"in e||"end"in e?gi(e):"line"in e||"column"in e?Vn(e):""}function Vn(e){return bi(e&&e.line)+":"+bi(e&&e.column)}function gi(e){return Vn(e&&e.start)+"-"+Vn(e&&e.end)}function bi(e){return e&&typeof e=="number"?e:1}class Ne 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 s=r.indexOf(":");s===-1?l.ruleId=r:(l.source=r.slice(0,s),l.ruleId=r.slice(s+1))}if(!l.place&&l.ancestors&&l.ancestors){const s=l.ancestors[l.ancestors.length-1];s&&(l.place=s.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=Ut(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}}Ne.prototype.file="",Ne.prototype.name="",Ne.prototype.reason="",Ne.prototype.message="",Ne.prototype.stack="",Ne.prototype.column=void 0,Ne.prototype.line=void 0,Ne.prototype.ancestors=void 0,Ne.prototype.cause=void 0,Ne.prototype.fatal=void 0,Ne.prototype.place=void 0,Ne.prototype.ruleId=void 0,Ne.prototype.source=void 0;const qn={}.hasOwnProperty,Aa=new Map,_a=/[A-Z]/g,Ia=new Set(["table","tbody","thead","tfoot","tr"]),La=new Set(["td","th"]),yi="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Na(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=Ba(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=Fa(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"?$n:ya,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},l=ki(i,e,void 0);return l&&typeof l!="string"?l:i.create(e,i.Fragment,{children:l||void 0},void 0)}function ki(e,n,t){if(n.type==="element")return Pa(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Da(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return za(e,n,t);if(n.type==="mdxjsEsm")return Ma(e,n);if(n.type==="root")return Oa(e,n,t);if(n.type==="text")return Ra(e,n)}function Pa(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=$n,e.schema=i),e.ancestors.push(n);const l=wi(e,n.tagName,!1),o=$a(e,n);let a=Gn(e,n);return Ia.has(n.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!sa(s):!0})),xi(e,o,l,n),Wn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Da(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)}Vt(e,n.position)}function Ma(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Vt(e,n.position)}function za(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=$n,e.schema=i),e.ancestors.push(n);const l=n.name===null?e.Fragment:wi(e,n.name,!0),o=ja(e,n),a=Gn(e,n);return xi(e,o,l,n),Wn(o,a),e.ancestors.pop(),e.schema=r,e.create(n,l,o,t)}function Oa(e,n,t){const r={};return Wn(r,Gn(e,n)),e.create(n,e.Fragment,r,t)}function Ra(e,n){return n.value}function xi(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function Wn(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Fa(e,n,t){return r;function r(i,l,o,a){const u=Array.isArray(o.children)?t:n;return a?u(l,o,a):u(l,o)}}function Ba(e,n){return t;function t(r,i,l,o){const a=Array.isArray(l.children),s=Un(r);return n(i,l,o,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function $a(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&qn.call(n.properties,i)){const l=Ha(e,i,n.properties[i]);if(l){const[o,a]=l;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&La.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 ja(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 Vt(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 Vt(e,n.position);else l=r.value===null?!0:r.value;t[i]=l}return t}function Gn(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:Aa;for(;++r<n.children.length;){const l=n.children[r];let o;if(e.passKeys){const s=l.type==="element"?l.tagName:l.type==="mdxJsxFlowElement"||l.type==="mdxJsxTextElement"?l.name:void 0;if(s){const u=i.get(s)||0;o=s+"-"+u,i.set(s,u+1)}}const a=ki(e,l,o);a!==void 0&&t.push(a)}return t}function Ha(e,n,t){const r=ma(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?ra(t):ka(t)),r.property==="style"){let i=typeof t=="object"?t:Ua(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Va(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?pa[r.property]||r.property:r.attribute,t]}}function Ua(e,n){try{return Ea(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new Ne("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=yi+"#cannot-parse-style-attribute",i}}function wi(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=Jr(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=Jr(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return qn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Vt(e)}function Vt(e,n){const t=new Ne("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=yi+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Va(e){const n={};let t;for(t in e)qn.call(e,t)&&(n[qa(t)]=e[t]);return n}function qa(e){let n=e.replace(_a,Wa);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Wa(e){return"-"+e.toLowerCase()}const Yn={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"]},Ga={};function Xn(e,n){const t=Ga,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Si(e,r,i)}function Si(e,n,t){if(Ya(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 Ci(e.children,n,t)}return Array.isArray(e)?Ci(e,n,t):""}function Ci(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Si(e[i],n,t);return r.join("")}function Ya(e){return!!(e&&typeof e=="object")}const vi=document.createElement("i");function Qn(e){const n="&"+e+";";vi.innerHTML=n;const t=vi.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function qe(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 We(e,n){return e.length>0?(qe(e,e.length,0,n),e):n}const Ei={}.hasOwnProperty;function Ti(e){const n={};let t=-1;for(;++t<e.length;)Xa(n,e[t]);return n}function Xa(e,n){let t;for(t in n){const i=(Ei.call(e,t)?e[t]:void 0)||(e[t]={}),l=n[t];let o;if(l)for(o in l){Ei.call(i,o)||(i[o]=[]);const a=l[o];Qa(i[o],Array.isArray(a)?a:a?[a]:[])}}}function Qa(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);qe(e,0,0,r)}function Ai(e,n){const t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function Ge(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Me=ut(/[A-Za-z]/),Pe=ut(/[\dA-Za-z]/),Ka=ut(/[#-'*+\--9=?A-Z^-~]/);function an(e){return e!==null&&(e<32||e===127)}const Kn=ut(/\d/),Za=ut(/[\dA-Fa-f]/),Ja=ut(/[!-/:-@[-`{-~]/);function H(e){return e!==null&&e<-2}function ue(e){return e!==null&&(e<0||e===32)}function ee(e){return e===-2||e===-1||e===32}const sn=ut(new RegExp("\\p{P}|\\p{S}","u")),bt=ut(/\s/);function ut(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function _t(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const l=e.charCodeAt(t);let o="";if(l===37&&Pe(e.charCodeAt(t+1))&&Pe(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="�"}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 ie(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let l=0;return o;function o(s){return ee(s)?(e.enter(t),a(s)):n(s)}function a(s){return ee(s)&&l++<i?(e.consume(s),a):(e.exit(t),n(s))}}const es={tokenize:ts};function ts(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"),ie(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),l(a)}function l(a){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return H(a)?(e.consume(a),e.exit("chunkText"),l):(e.consume(a),o)}}const ns={tokenize:rs},_i={tokenize:is};function rs(e){const n=this,t=[];let r=0,i,l,o;return a;function a(v){if(r<t.length){const j=t[r];return n.containerState=j[1],e.attempt(j[0].continuation,s,u)(v)}return u(v)}function s(v){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&T();const j=n.events.length;let R=j,S;for(;R--;)if(n.events[R][0]==="exit"&&n.events[R][1].type==="chunkFlow"){S=n.events[R][1].end;break}x(r);let q=j;for(;q<n.events.length;)n.events[q][1].end={...S},q++;return qe(n.events,R+1,0,n.events.slice(j)),n.events.length=q,u(v)}return a(v)}function u(v){if(r===t.length){if(!i)return h(v);if(i.currentConstruct&&i.currentConstruct.concrete)return b(v);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(_i,f,c)(v)}function f(v){return i&&T(),x(r),h(v)}function c(v){return n.parser.lazy[n.now().line]=r!==t.length,o=n.now().offset,b(v)}function h(v){return n.containerState={},e.attempt(_i,p,b)(v)}function p(v){return r++,t.push([n.currentConstruct,n.containerState]),h(v)}function b(v){if(v===null){i&&T(),x(0),e.consume(v);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:l}),C(v)}function C(v){if(v===null){k(e.exit("chunkFlow"),!0),x(0),e.consume(v);return}return H(v)?(e.consume(v),k(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(v),C)}function k(v,j){const R=n.sliceStream(v);if(j&&R.push(null),v.previous=l,l&&(l.next=v),l=v,i.defineSkip(v.start),i.write(R),n.parser.lazy[v.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<o&&(!i.events[S][1].end||i.events[S][1].end.offset>o))return;const q=n.events.length;let E=q,U,y;for(;E--;)if(n.events[E][0]==="exit"&&n.events[E][1].type==="chunkFlow"){if(U){y=n.events[E][1].end;break}U=!0}for(x(r),S=q;S<n.events.length;)n.events[S][1].end={...y},S++;qe(n.events,E+1,0,n.events.slice(q)),n.events.length=S}}function x(v){let j=t.length;for(;j-- >v;){const R=t[j];n.containerState=R[1],R[0].exit.call(n,e)}t.length=v}function T(){i.write([null]),l=void 0,i=void 0,n.containerState._closeFlow=void 0}}function is(e,n,t){return ie(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function It(e){if(e===null||ue(e)||bt(e))return 1;if(sn(e))return 2}function un(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 Zn={name:"attention",resolveAll:os,tokenize:ls};function os(e,n){let t=-1,r,i,l,o,a,s,u,f;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const c={...e[r][1].end},h={...e[t][1].start};Ii(c,-s),Ii(h,s),o={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:h},l={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:s>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[r][1].end={...o.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=We(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=We(u,[["enter",i,n],["enter",o,n],["exit",o,n],["enter",l,n]]),u=We(u,un(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=We(u,[["exit",l,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,u=We(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,qe(e,r-1,t-r+3,u),t=r+u.length-f-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function ls(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=It(r);let l;return o;function o(s){return l=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===l)return e.consume(s),a;const u=e.exit("attentionSequence"),f=It(s),c=!f||f===2&&i||t.includes(s),h=!i||i===2&&f||t.includes(r);return u._open=!!(l===42?c:c&&(i||!h)),u._close=!!(l===42?h:h&&(f||!c)),n(s)}}function Ii(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const as={name:"autolink",tokenize:ss};function ss(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 Me(p)?(e.consume(p),o):p===64?t(p):u(p)}function o(p){return p===43||p===45||p===46||Pe(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,s):(p===43||p===45||p===46||Pe(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function s(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||an(p)?t(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),f):Ka(p)?(e.consume(p),u):t(p)}function f(p){return Pe(p)?c(p):t(p)}function c(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):h(p)}function h(p){if((p===45||Pe(p))&&r++<63){const b=p===45?h:c;return e.consume(p),b}return t(p)}}const qt={partial:!0,tokenize:us};function us(e,n,t){return r;function r(l){return ee(l)?ie(e,i,"linePrefix")(l):i(l)}function i(l){return l===null||H(l)?n(l):t(l)}}const Li={continuation:{tokenize:fs},exit:ps,name:"blockQuote",tokenize:cs};function cs(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 ee(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(o))}}function fs(e,n,t){const r=this;return i;function i(o){return ee(o)?ie(e,l,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):l(o)}function l(o){return e.attempt(Li,n,t)(o)}}function ps(e){e.exit("blockQuote")}const Ni={name:"characterEscape",tokenize:hs};function hs(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 Ja(l)?(e.enter("characterEscapeValue"),e.consume(l),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(l)}}const Pi={name:"characterReference",tokenize:ds};function ds(e,n,t){const r=this;let i=0,l,o;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),l=31,o=Pe,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),l=6,o=Za,f):(e.enter("characterReferenceValue"),l=7,o=Kn,f(c))}function f(c){if(c===59&&i){const h=e.exit("characterReferenceValue");return o===Pe&&!Qn(r.sliceSerialize(h))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return o(c)&&i++<l?(e.consume(c),f):t(c)}}const Di={partial:!0,tokenize:gs},Mi={concrete:!0,name:"codeFenced",tokenize:ms};function ms(e,n,t){const r=this,i={partial:!0,tokenize:R};let l=0,o=0,a;return s;function s(S){return u(S)}function u(S){const q=r.events[r.events.length-1];return l=q&&q[1].type==="linePrefix"?q[2].sliceSerialize(q[1],!0).length:0,a=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(S)}function f(S){return S===a?(o++,e.consume(S),f):o<3?t(S):(e.exit("codeFencedFenceSequence"),ee(S)?ie(e,c,"whitespace")(S):c(S))}function c(S){return S===null||H(S)?(e.exit("codeFencedFence"),r.interrupt?n(S):e.check(Di,C,j)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===null||H(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(S)):ee(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ie(e,p,"whitespace")(S)):S===96&&S===a?t(S):(e.consume(S),h)}function p(S){return S===null||H(S)?c(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(S))}function b(S){return S===null||H(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(S)):S===96&&S===a?t(S):(e.consume(S),b)}function C(S){return e.attempt(i,j,k)(S)}function k(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),x}function x(S){return l>0&&ee(S)?ie(e,T,"linePrefix",l+1)(S):T(S)}function T(S){return S===null||H(S)?e.check(Di,C,j)(S):(e.enter("codeFlowValue"),v(S))}function v(S){return S===null||H(S)?(e.exit("codeFlowValue"),T(S)):(e.consume(S),v)}function j(S){return e.exit("codeFenced"),n(S)}function R(S,q,E){let U=0;return y;function y(L){return S.enter("lineEnding"),S.consume(L),S.exit("lineEnding"),D}function D(L){return S.enter("codeFencedFence"),ee(L)?ie(S,N,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):N(L)}function N(L){return L===a?(S.enter("codeFencedFenceSequence"),G(L)):E(L)}function G(L){return L===a?(U++,S.consume(L),G):U>=o?(S.exit("codeFencedFenceSequence"),ee(L)?ie(S,M,"whitespace")(L):M(L)):E(L)}function M(L){return L===null||H(L)?(S.exit("codeFencedFence"),q(L)):E(L)}}}function gs(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 Jn={name:"codeIndented",tokenize:ys},bs={partial:!0,tokenize:ks};function ys(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),ie(e,l,"linePrefix",5)(u)}function l(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?o(u):t(u)}function o(u){return u===null?s(u):H(u)?e.attempt(bs,o,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||H(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),n(u)}}function ks(e,n,t){const r=this;return i;function i(o){return r.parser.lazy[r.now().line]?t(o):H(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):ie(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):H(o)?i(o):t(o)}}const xs={name:"codeText",previous:Ss,resolve:ws,tokenize:Cs};function ws(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 Ss(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Cs(e,n,t){let r=0,i,l;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(l=e.enter("codeTextSequence"),i=0,f(c)):H(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),s):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||H(c)?(e.exit("codeTextData"),s(c)):(e.consume(c),u)}function f(c){return c===96?(e.consume(c),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),n(c)):(l.type="codeTextData",u(c))}}class vs{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&&Wt(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),Wt(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Wt(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);Wt(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Wt(this.left,t.reverse())}}}function Wt(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 zi(e){const n={};let t=-1,r,i,l,o,a,s,u;const f=new vs(e);for(;++t<f.length;){for(;t in n;)t=n[t];if(r=f.get(t),t&&r[1].type==="chunkFlow"&&f.get(t-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,l=0,l<s.length&&s[l][1].type==="lineEndingBlank"&&(l+=2),l<s.length&&s[l][1].type==="content"))for(;++l<s.length&&s[l][1].type!=="content";)s[l][1].type==="chunkText"&&(s[l][1]._isInFirstContentOfListItem=!0,l++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,Es(f,t)),t=n[t],u=!0);else if(r[1]._container){for(l=t,i=void 0;l--;)if(o=f.get(l),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(i&&(f.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={...f.get(i)[1].start},a=f.slice(i,t),a.unshift(r),f.splice(i,t-i+1,a))}}return qe(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function Es(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,s=[],u={};let f,c,h=-1,p=t,b=0,C=0;const k=[C];for(;p;){for(;e.get(++i)[1]!==p;);l.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),c&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(f),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=t;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(C=h+1,k.push(C),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):k.pop(),h=k.length;h--;){const x=a.slice(k[h],k[h+1]),T=l.pop();s.push([T,T+x.length-1]),e.splice(T,2,x)}for(s.reverse(),h=-1;++h<s.length;)u[b+s[h][0]]=b+s[h][1],b+=s[h][1]-s[h][0]-1;return u}const Ts={resolve:_s,tokenize:Is},As={partial:!0,tokenize:Ls};function _s(e){return zi(e),e}function Is(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):H(a)?e.check(As,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 Ls(e,n,t){const r=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),ie(e,l,"linePrefix")}function l(o){if(o===null||H(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 Oi(e,n,t,r,i,l,o,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(x){return x===60?(e.enter(r),e.enter(i),e.enter(l),e.consume(x),e.exit(l),h):x===null||x===32||x===41||an(x)?t(x):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),C(x))}function h(x){return x===62?(e.enter(l),e.consume(x),e.exit(l),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===62?(e.exit("chunkString"),e.exit(a),h(x)):x===null||x===60||H(x)?t(x):(e.consume(x),x===92?b:p)}function b(x){return x===60||x===62||x===92?(e.consume(x),p):p(x)}function C(x){return!f&&(x===null||x===41||ue(x))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),n(x)):f<u&&x===40?(e.consume(x),f++,C):x===41?(e.consume(x),f--,C):x===null||x===32||x===40||an(x)?t(x):(e.consume(x),x===92?k:C)}function k(x){return x===40||x===41||x===92?(e.consume(x),C):C(x)}}function Ri(e,n,t,r,i,l){const o=this;let a=0,s;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(l),f}function f(p){return a>999||p===null||p===91||p===93&&!s||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):H(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||H(p)||a++>999?(e.exit("chunkString"),f(p)):(e.consume(p),s||(s=!ee(p)),p===92?h:c)}function h(p){return p===91||p===92||p===93?(e.consume(p),a++,c):c(p)}}function Fi(e,n,t,r,i,l){let o;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),o=h===40?41:h,s):t(h)}function s(h){return h===o?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):(e.enter(l),u(h))}function u(h){return h===o?(e.exit(l),s(o)):h===null?t(h):H(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),ie(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===o||h===null||H(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?c:f)}function c(h){return h===o||h===92?(e.consume(h),f):f(h)}}function Gt(e,n){let t;return r;function r(i){return H(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):ee(i)?ie(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const Ns={name:"definition",tokenize:Ds},Ps={partial:!0,tokenize:Ms};function Ds(e,n,t){const r=this;let i;return l;function l(p){return e.enter("definition"),o(p)}function o(p){return Ri.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=Ge(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):t(p)}function s(p){return ue(p)?Gt(e,u)(p):u(p)}function u(p){return Oi(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(Ps,c,c)(p)}function c(p){return ee(p)?ie(e,h,"whitespace")(p):h(p)}function h(p){return p===null||H(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function Ms(e,n,t){return r;function r(a){return ue(a)?Gt(e,i)(a):t(a)}function i(a){return Fi(e,l,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function l(a){return ee(a)?ie(e,o,"whitespace")(a):o(a)}function o(a){return a===null||H(a)?n(a):t(a)}}const zs={name:"hardBreakEscape",tokenize:Os};function Os(e,n,t){return r;function r(l){return e.enter("hardBreakEscape"),e.consume(l),i}function i(l){return H(l)?(e.exit("hardBreakEscape"),n(l)):t(l)}}const Rs={name:"headingAtx",resolve:Fs,tokenize:Bs};function Fs(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"},qe(e,r,t-r+1,[["enter",i,n],["enter",l,n],["exit",l,n],["exit",i,n]])),e}function Bs(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),l(f)}function l(f){return e.enter("atxHeadingSequence"),o(f)}function o(f){return f===35&&r++<6?(e.consume(f),o):f===null||ue(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||H(f)?(e.exit("atxHeading"),n(f)):ee(f)?ie(e,a,"whitespace")(f):(e.enter("atxHeadingText"),u(f))}function s(f){return f===35?(e.consume(f),s):(e.exit("atxHeadingSequence"),a(f))}function u(f){return f===null||f===35||ue(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const $s=["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"],Bi=["pre","script","style","textarea"],js={concrete:!0,name:"htmlFlow",resolveTo:Vs,tokenize:qs},Hs={partial:!0,tokenize:Gs},Us={partial:!0,tokenize:Ws};function Vs(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 qs(e,n,t){const r=this;let i,l,o,a,s;return u;function u(m){return f(m)}function f(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),c}function c(m){return m===33?(e.consume(m),h):m===47?(e.consume(m),l=!0,C):m===63?(e.consume(m),i=3,r.interrupt?n:d):Me(m)?(e.consume(m),o=String.fromCharCode(m),k):t(m)}function h(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=0,b):Me(m)?(e.consume(m),i=4,r.interrupt?n:d):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:d):t(m)}function b(m){const de="CDATA[";return m===de.charCodeAt(a++)?(e.consume(m),a===de.length?r.interrupt?n:N:b):t(m)}function C(m){return Me(m)?(e.consume(m),o=String.fromCharCode(m),k):t(m)}function k(m){if(m===null||m===47||m===62||ue(m)){const de=m===47,ae=o.toLowerCase();return!de&&!l&&Bi.includes(ae)?(i=1,r.interrupt?n(m):N(m)):$s.includes(o.toLowerCase())?(i=6,de?(e.consume(m),x):r.interrupt?n(m):N(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):l?T(m):v(m))}return m===45||Pe(m)?(e.consume(m),o+=String.fromCharCode(m),k):t(m)}function x(m){return m===62?(e.consume(m),r.interrupt?n:N):t(m)}function T(m){return ee(m)?(e.consume(m),T):y(m)}function v(m){return m===47?(e.consume(m),y):m===58||m===95||Me(m)?(e.consume(m),j):ee(m)?(e.consume(m),v):y(m)}function j(m){return m===45||m===46||m===58||m===95||Pe(m)?(e.consume(m),j):R(m)}function R(m){return m===61?(e.consume(m),S):ee(m)?(e.consume(m),R):v(m)}function S(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),s=m,q):ee(m)?(e.consume(m),S):E(m)}function q(m){return m===s?(e.consume(m),s=null,U):m===null||H(m)?t(m):(e.consume(m),q)}function E(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||ue(m)?R(m):(e.consume(m),E)}function U(m){return m===47||m===62||ee(m)?v(m):t(m)}function y(m){return m===62?(e.consume(m),D):t(m)}function D(m){return m===null||H(m)?N(m):ee(m)?(e.consume(m),D):t(m)}function N(m){return m===45&&i===2?(e.consume(m),V):m===60&&i===1?(e.consume(m),ne):m===62&&i===4?(e.consume(m),ke):m===63&&i===3?(e.consume(m),d):m===93&&i===5?(e.consume(m),Ee):H(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Hs,xe,G)(m)):m===null||H(m)?(e.exit("htmlFlowData"),G(m)):(e.consume(m),N)}function G(m){return e.check(Us,M,xe)(m)}function M(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),L}function L(m){return m===null||H(m)?G(m):(e.enter("htmlFlowData"),N(m))}function V(m){return m===45?(e.consume(m),d):N(m)}function ne(m){return m===47?(e.consume(m),o="",he):N(m)}function he(m){if(m===62){const de=o.toLowerCase();return Bi.includes(de)?(e.consume(m),ke):N(m)}return Me(m)&&o.length<8?(e.consume(m),o+=String.fromCharCode(m),he):N(m)}function Ee(m){return m===93?(e.consume(m),d):N(m)}function d(m){return m===62?(e.consume(m),ke):m===45&&i===2?(e.consume(m),d):N(m)}function ke(m){return m===null||H(m)?(e.exit("htmlFlowData"),xe(m)):(e.consume(m),ke)}function xe(m){return e.exit("htmlFlow"),n(m)}}function Ws(e,n,t){const r=this;return i;function i(o){return H(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 Gs(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(qt,n,t)}}const Ys={name:"htmlText",tokenize:Xs};function Xs(e,n,t){const r=this;let i,l,o;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),s}function s(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),R):d===63?(e.consume(d),v):Me(d)?(e.consume(d),E):t(d)}function u(d){return d===45?(e.consume(d),f):d===91?(e.consume(d),l=0,b):Me(d)?(e.consume(d),T):t(d)}function f(d){return d===45?(e.consume(d),p):t(d)}function c(d){return d===null?t(d):d===45?(e.consume(d),h):H(d)?(o=c,ne(d)):(e.consume(d),c)}function h(d){return d===45?(e.consume(d),p):c(d)}function p(d){return d===62?V(d):d===45?h(d):c(d)}function b(d){const ke="CDATA[";return d===ke.charCodeAt(l++)?(e.consume(d),l===ke.length?C:b):t(d)}function C(d){return d===null?t(d):d===93?(e.consume(d),k):H(d)?(o=C,ne(d)):(e.consume(d),C)}function k(d){return d===93?(e.consume(d),x):C(d)}function x(d){return d===62?V(d):d===93?(e.consume(d),x):C(d)}function T(d){return d===null||d===62?V(d):H(d)?(o=T,ne(d)):(e.consume(d),T)}function v(d){return d===null?t(d):d===63?(e.consume(d),j):H(d)?(o=v,ne(d)):(e.consume(d),v)}function j(d){return d===62?V(d):v(d)}function R(d){return Me(d)?(e.consume(d),S):t(d)}function S(d){return d===45||Pe(d)?(e.consume(d),S):q(d)}function q(d){return H(d)?(o=q,ne(d)):ee(d)?(e.consume(d),q):V(d)}function E(d){return d===45||Pe(d)?(e.consume(d),E):d===47||d===62||ue(d)?U(d):t(d)}function U(d){return d===47?(e.consume(d),V):d===58||d===95||Me(d)?(e.consume(d),y):H(d)?(o=U,ne(d)):ee(d)?(e.consume(d),U):V(d)}function y(d){return d===45||d===46||d===58||d===95||Pe(d)?(e.consume(d),y):D(d)}function D(d){return d===61?(e.consume(d),N):H(d)?(o=D,ne(d)):ee(d)?(e.consume(d),D):U(d)}function N(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),i=d,G):H(d)?(o=N,ne(d)):ee(d)?(e.consume(d),N):(e.consume(d),M)}function G(d){return d===i?(e.consume(d),i=void 0,L):d===null?t(d):H(d)?(o=G,ne(d)):(e.consume(d),G)}function M(d){return d===null||d===34||d===39||d===60||d===61||d===96?t(d):d===47||d===62||ue(d)?U(d):(e.consume(d),M)}function L(d){return d===47||d===62||ue(d)?U(d):t(d)}function V(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),n):t(d)}function ne(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),he}function he(d){return ee(d)?ie(e,Ee,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):Ee(d)}function Ee(d){return e.enter("htmlTextData"),o(d)}}const er={name:"labelEnd",resolveAll:Js,resolveTo:eu,tokenize:tu},Qs={tokenize:nu},Ks={tokenize:ru},Zs={tokenize:iu};function Js(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&&qe(e,0,e.length,t),e}function eu(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 s={type:e[l][1].type==="labelLink"?"link":"image",start:{...e[l][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[l][1].start},end:{...e[o][1].end}},f={type:"labelText",start:{...e[l+r+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",s,n],["enter",u,n]],a=We(a,e.slice(l+1,l+r+3)),a=We(a,[["enter",f,n]]),a=We(a,un(n.parser.constructs.insideSpan.null,e.slice(l+r+4,o-3),n)),a=We(a,[["exit",f,n],e[o-2],e[o-1],["exit",u,n]]),a=We(a,e.slice(o+1)),a=We(a,[["exit",s,n]]),qe(e,l,e.length,a),e}function tu(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(h){return l?l._inactive?c(h):(o=r.parser.defined.includes(Ge(r.sliceSerialize({start:l.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),s):t(h)}function s(h){return h===40?e.attempt(Qs,f,o?f:c)(h):h===91?e.attempt(Ks,f,o?u:c)(h):o?f(h):c(h)}function u(h){return e.attempt(Zs,f,c)(h)}function f(h){return n(h)}function c(h){return l._balanced=!0,t(h)}}function nu(e,n,t){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return ue(c)?Gt(e,l)(c):l(c)}function l(c){return c===41?f(c):Oi(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return ue(c)?Gt(e,s)(c):f(c)}function a(c){return t(c)}function s(c){return c===34||c===39||c===40?Fi(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return ue(c)?Gt(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),n):t(c)}}function ru(e,n,t){const r=this;return i;function i(a){return Ri.call(r,e,l,o,"reference","referenceMarker","referenceString")(a)}function l(a){return r.parser.defined.includes(Ge(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function o(a){return t(a)}}function iu(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 ou={name:"labelStartImage",resolveAll:er.resolveAll,tokenize:lu};function lu(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 au={name:"labelStartLink",resolveAll:er.resolveAll,tokenize:su};function su(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 tr={name:"lineEnding",tokenize:uu};function uu(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ie(e,n,"linePrefix")}}const cn={name:"thematicBreak",tokenize:cu};function cu(e,n,t){let r=0,i;return l;function l(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||H(u))?(e.exit("thematicBreak"),n(u)):t(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),ee(u)?ie(e,a,"whitespace")(u):a(u))}}const Be={continuation:{tokenize:du},exit:gu,name:"list",tokenize:hu},fu={partial:!0,tokenize:bu},pu={partial:!0,tokenize:mu};function hu(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 b=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Kn(p)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(cn,t,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return t(p)}function s(p){return Kn(p)&&++o<10?(e.consume(p),s):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):t(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(qt,r.interrupt?t:f,e.attempt(fu,h,c))}function f(p){return r.containerState.initialBlankLine=!0,l++,h(p)}function c(p){return ee(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):t(p)}function h(p){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function du(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(qt,i,l);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ie(e,n,"listItemIndent",r.containerState.size+1)(a)}function l(a){return r.containerState.furtherBlankLines||!ee(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(pu,n,o)(a))}function o(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,ie(e,e.attempt(Be,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function mu(e,n,t){const r=this;return ie(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 gu(e){e.exit(this.containerState.type)}function bu(e,n,t){const r=this;return ie(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!ee(l)&&o&&o[1].type==="listItemPrefixWhitespace"?n(l):t(l)}}const $i={name:"setextUnderline",resolveTo:yu,tokenize:ku};function yu(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 ku(e,n,t){const r=this;let i;return l;function l(u){let f=r.events.length,c;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){c=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),i=u,o(u)):t(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),ee(u)?ie(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||H(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const xu={tokenize:wu};function wu(e){const n=this,t=e.attempt(qt,r,e.attempt(this.parser.constructs.flowInitial,i,ie(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ts,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 Su={resolveAll:Hi()},Cu=ji("string"),vu=ji("text");function ji(e){return{resolveAll:Hi(e==="text"?Eu: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(f){return u(f)?l(f):a(f)}function a(f){if(f===null){t.consume(f);return}return t.enter("data"),t.consume(f),s}function s(f){return u(f)?(t.exit("data"),l(f)):(t.consume(f),s)}function u(f){if(f===null)return!0;const c=i[f];let h=-1;if(c)for(;++h<c.length;){const p=c[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function Hi(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 Eu(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,s;for(;l--;){const u=i[l];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)s=!0,a++;else if(u!==-1){l++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||s||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={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(t,0,["enter",u,n],["exit",u,n]),t+=2)}t++}return e}const Tu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:Ns},disable:{null:[]},document:{42:Be,43:Be,45:Be,48:Be,49:Be,50:Be,51:Be,52:Be,53:Be,54:Be,55:Be,56:Be,57:Be,62:Li},flow:{35:Rs,42:cn,45:[$i,cn],60:js,61:$i,95:cn,96:Mi,126:Mi},flowInitial:{[-2]:Jn,[-1]:Jn,32:Jn},insideSpan:{null:[Zn,Su]},string:{38:Pi,92:Ni},text:{[-5]:tr,[-4]:tr,[-3]:tr,33:ou,38:Pi,42:Zn,60:[as,Ys],91:au,92:[zs,Ni],93:er,95:Zn,96:xs}},Symbol.toStringTag,{value:"Module"}));function Au(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 s={attempt:q(R),check:q(S),consume:T,enter:v,exit:j,interrupt:q(S,{interrupt:!0})},u={code:null,containerState:{},defineSkip:C,events:[],now:b,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:c};let f=n.tokenize.call(u,s);return n.resolveAll&&l.push(n),u;function c(D){return o=We(o,D),k(),o[o.length-1]!==null?[]:(E(n,0),u.events=un(l,u.events,u),u.events)}function h(D,N){return Iu(p(D),N)}function p(D){return _u(o,D)}function b(){const{_bufferIndex:D,_index:N,line:G,column:M,offset:L}=r;return{_bufferIndex:D,_index:N,line:G,column:M,offset:L}}function C(D){i[D.line]=D.column,y()}function k(){let D;for(;r._index<o.length;){const N=o[r._index];if(typeof N=="string")for(D=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===D&&r._bufferIndex<N.length;)x(N.charCodeAt(r._bufferIndex));else x(N)}}function x(D){f=f(D)}function T(D){H(D)?(r.line++,r.column=1,r.offset+=D===-3?2:1,y()):D!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=D}function v(D,N){const G=N||{};return G.type=D,G.start=b(),u.events.push(["enter",G,u]),a.push(G),G}function j(D){const N=a.pop();return N.end=b(),u.events.push(["exit",N,u]),N}function R(D,N){E(D,N.from)}function S(D,N){N.restore()}function q(D,N){return G;function G(M,L,V){let ne,he,Ee,d;return Array.isArray(M)?xe(M):"tokenize"in M?xe([M]):ke(M);function ke(te){return $e;function $e(ze){const se=ze!==null&&te[ze],je=ze!==null&&te.null,oe=[...Array.isArray(se)?se:se?[se]:[],...Array.isArray(je)?je:je?[je]:[]];return xe(oe)(ze)}}function xe(te){return ne=te,he=0,te.length===0?V:m(te[he])}function m(te){return $e;function $e(ze){return d=U(),Ee=te,te.partial||(u.currentConstruct=te),te.name&&u.parser.constructs.disable.null.includes(te.name)?ae():te.tokenize.call(N?Object.assign(Object.create(u),N):u,s,de,ae)(ze)}}function de(te){return D(Ee,d),L}function ae(te){return d.restore(),++he<ne.length?m(ne[he]):V}}}function E(D,N){D.resolveAll&&!l.includes(D)&&l.push(D),D.resolve&&qe(u.events,N,u.events.length-N,D.resolve(u.events.slice(N),u)),D.resolveTo&&(u.events=D.resolveTo(u.events,u))}function U(){const D=b(),N=u.previous,G=u.currentConstruct,M=u.events.length,L=Array.from(a);return{from:M,restore:V};function V(){r=D,u.previous=N,u.currentConstruct=G,u.events.length=M,a=L,y()}}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function _u(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,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 Iu(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=`
|
|
3
3
|
`;break}case-3:{o=`\r
|
|
4
|
-
`;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 vu(e){const r={constructs:Ei([wu,...(e||{}).extensions||[]]),content:i(Xa),defined:[],document:i(Qa),flow:i(mu),lazy:{},string:i(yu),text:i(xu)};return r;function i(l){return o;function o(a){return Su(r,l,a)}}}function Tu(e){for(;!Di(e););return e}const ji=/[\0\t\n\r]/g;function Au(){let e=1,n="",t=!0,r;return i;function i(l,o,a){const s=[];let u,f,c,h,p;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),c=0,n="",t&&(l.charCodeAt(0)===65279&&c++,t=void 0);c<l.length;){if(ji.lastIndex=c,u=ji.exec(l),h=u&&u.index!==void 0?u.index:l.length,p=l.charCodeAt(h),!u){n=l.slice(c);break}if(p===10&&c===h&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<h&&(s.push(l.slice(c,h)),e+=h-c),p){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=h+1}return a&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const _u=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Iu(e){return e.replace(_u,Lu)}function Lu(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Ci(t.slice(l?2:1),l?16:10)}return Yn(t)||e}const Ui={}.hasOwnProperty;function Pu(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Du(t)(Tu(vu(t).document().write(Au()(e,n,!0))))}function Du(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Jt),autolinkProtocol:V,autolinkEmail:V,atxHeading:l(Zt),blockQuote:l(Ue),characterEscape:V,characterReference:V,codeFenced:l(He),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(He,o),codeText:l(ut,o),codeTextData:V,data:V,codeFlowValue:V,definition:l(ct),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(ft),hardBreakEscape:l(pt),hardBreakTrailing:l(pt),htmlFlow:l(Cn,o),htmlFlowData:V,htmlText:l(Cn,o),htmlTextData:V,image:l(Dr),label:o,link:l(Jt),listItem:l(Or),listItemValue:h,listOrdered:l(en,c),listUnordered:l(en),paragraph:l(Z),reference:m,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(Zt),strong:l(B),thematicBreak:l(G)},exit:{atxHeading:s(),atxHeadingSequence:M,autolink:s(),autolinkEmail:ae,autolinkProtocol:Fe,blockQuote:s(),characterEscapeValue:b,characterReferenceMarkerHexadecimal:ue,characterReferenceMarkerNumeric:ue,characterReferenceValue:te,characterReference:je,codeFenced:s(E),codeFencedFence:S,codeFencedFenceInfo:p,codeFencedFenceMeta:y,codeFlowValue:b,codeIndented:s(x),codeText:s(L),codeTextData:b,data:b,definition:s(),definitionDestinationString:$,definitionLabelString:A,definitionTitleString:v,emphasis:s(),hardBreakEscape:s(P),hardBreakTrailing:s(P),htmlFlow:s(X),htmlFlowData:b,htmlText:s(R),htmlTextData:b,image:s(re),label:ie,labelText:pe,lineEnding:O,link:s(W),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:me,resourceDestinationString:d,resourceTitleString:fe,resource:_e,setextHeading:s(C),setextHeadingLineSequence:H,setextHeadingText:w,strong:s(),thematicBreak:s()}};$i(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(k){let T={type:"root",children:[]};const q={stack:[T],tokenStack:[],config:n,enter:a,exit:u,buffer:o,resume:f,data:t},Q=[];let oe=-1;for(;++oe<k.length;)if(k[oe][1].type==="listOrdered"||k[oe][1].type==="listUnordered")if(k[oe][0]==="enter")Q.push(oe);else{const Ee=Q.pop();oe=i(k,Ee,oe)}for(oe=-1;++oe<k.length;){const Ee=n[k[oe][0]];Ui.call(Ee,k[oe][1].type)&&Ee[k[oe][1].type].call(Object.assign({sliceSerialize:k[oe][2].sliceSerialize},q),k[oe][1])}if(q.tokenStack.length>0){const Ee=q.tokenStack[q.tokenStack.length-1];(Ee[1]||Hi).call(q,void 0,Ee[0])}for(T.position={start:ot(k.length>0?k[0][1].start:{line:1,column:1,offset:0}),end:ot(k.length>0?k[k.length-2][1].end:{line:1,column:1,offset:0})},oe=-1;++oe<n.transforms.length;)T=n.transforms[oe](T)||T;return T}function i(k,T,q){let Q=T-1,oe=-1,Ee=!1,Je,Ve,xt,Ye;for(;++Q<=q;){const ye=k[Q];switch(ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ye[0]==="enter"?oe++:oe--,Ye=void 0;break}case"lineEndingBlank":{ye[0]==="enter"&&(Je&&!Ye&&!oe&&!xt&&(xt=Q),Ye=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ye=void 0}if(!oe&&ye[0]==="enter"&&ye[1].type==="listItemPrefix"||oe===-1&&ye[0]==="exit"&&(ye[1].type==="listUnordered"||ye[1].type==="listOrdered")){if(Je){let ht=Q;for(Ve=void 0;ht--;){const qe=k[ht];if(qe[1].type==="lineEnding"||qe[1].type==="lineEndingBlank"){if(qe[0]==="exit")continue;Ve&&(k[Ve][1].type="lineEndingBlank",Ee=!0),qe[1].type="lineEnding",Ve=ht}else if(!(qe[1].type==="linePrefix"||qe[1].type==="blockQuotePrefix"||qe[1].type==="blockQuotePrefixWhitespace"||qe[1].type==="blockQuoteMarker"||qe[1].type==="listItemIndent"))break}xt&&(!Ve||xt<Ve)&&(Je._spread=!0),Je.end=Object.assign({},Ve?k[Ve][1].start:ye[1].end),k.splice(Ve||Q,0,["exit",Je,ye[2]]),Q++,q++}if(ye[1].type==="listItemPrefix"){const ht={type:"listItem",_spread:!1,start:Object.assign({},ye[1].start),end:void 0};Je=ht,k.splice(Q,0,["enter",ht,ye[2]]),Q++,q++,xt=void 0,Ye=!0}}}return k[T][1]._spread=Ee,q}function l(k,T){return q;function q(Q){a.call(this,k(Q),Q),T&&T.call(this,Q)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(k,T,q){this.stack[this.stack.length-1].children.push(k),this.stack.push(k),this.tokenStack.push([T,q||void 0]),k.position={start:ot(T.start),end:void 0}}function s(k){return T;function T(q){k&&k.call(this,q),u.call(this,q)}}function u(k,T){const q=this.stack.pop(),Q=this.tokenStack.pop();if(Q)Q[0].type!==k.type&&(T?T.call(this,k,Q[0]):(Q[1]||Hi).call(this,k,Q[0]));else throw new Error("Cannot close `"+k.type+"` ("+Bt({start:k.start,end:k.end})+"): it’s not open");q.position.end=ot(k.end)}function f(){return Gn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(k){if(this.data.expectingFirstListItemValue){const T=this.stack[this.stack.length-2];T.start=Number.parseInt(this.sliceSerialize(k),10),this.data.expectingFirstListItemValue=void 0}}function p(){const k=this.resume(),T=this.stack[this.stack.length-1];T.lang=k}function y(){const k=this.resume(),T=this.stack[this.stack.length-1];T.meta=k}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function E(){const k=this.resume(),T=this.stack[this.stack.length-1];T.value=k.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const k=this.resume(),T=this.stack[this.stack.length-1];T.value=k.replace(/(\r?\n|\r)$/g,"")}function A(k){const T=this.resume(),q=this.stack[this.stack.length-1];q.label=T,q.identifier=$e(this.sliceSerialize(k)).toLowerCase()}function v(){const k=this.resume(),T=this.stack[this.stack.length-1];T.title=k}function $(){const k=this.resume(),T=this.stack[this.stack.length-1];T.url=k}function M(k){const T=this.stack[this.stack.length-1];if(!T.depth){const q=this.sliceSerialize(k).length;T.depth=q}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function H(k){const T=this.stack[this.stack.length-1];T.depth=this.sliceSerialize(k).codePointAt(0)===61?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function V(k){const q=this.stack[this.stack.length-1].children;let Q=q[q.length-1];(!Q||Q.type!=="text")&&(Q=ee(),Q.position={start:ot(k.start),end:void 0},q.push(Q)),this.stack.push(Q)}function b(k){const T=this.stack.pop();T.value+=this.sliceSerialize(k),T.position.end=ot(k.end)}function O(k){const T=this.stack[this.stack.length-1];if(this.data.atHardBreak){const q=T.children[T.children.length-1];q.position.end=ot(k.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(T.type)&&(V.call(this,k),b.call(this,k))}function P(){this.data.atHardBreak=!0}function X(){const k=this.resume(),T=this.stack[this.stack.length-1];T.value=k}function R(){const k=this.resume(),T=this.stack[this.stack.length-1];T.value=k}function L(){const k=this.resume(),T=this.stack[this.stack.length-1];T.value=k}function W(){const k=this.stack[this.stack.length-1];if(this.data.inReference){const T=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=T,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function re(){const k=this.stack[this.stack.length-1];if(this.data.inReference){const T=this.data.referenceType||"shortcut";k.type+="Reference",k.referenceType=T,delete k.url,delete k.title}else delete k.identifier,delete k.label;this.data.referenceType=void 0}function pe(k){const T=this.sliceSerialize(k),q=this.stack[this.stack.length-2];q.label=Iu(T),q.identifier=$e(T).toLowerCase()}function ie(){const k=this.stack[this.stack.length-1],T=this.resume(),q=this.stack[this.stack.length-1];if(this.data.inReference=!0,q.type==="link"){const Q=k.children;q.children=Q}else q.alt=T}function d(){const k=this.resume(),T=this.stack[this.stack.length-1];T.url=k}function fe(){const k=this.resume(),T=this.stack[this.stack.length-1];T.title=k}function _e(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function me(k){const T=this.resume(),q=this.stack[this.stack.length-1];q.label=T,q.identifier=$e(this.sliceSerialize(k)).toLowerCase(),this.data.referenceType="full"}function ue(k){this.data.characterReferenceType=k.type}function te(k){const T=this.sliceSerialize(k),q=this.data.characterReferenceType;let Q;q?(Q=Ci(T,q==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Q=Yn(T);const oe=this.stack[this.stack.length-1];oe.value+=Q}function je(k){const T=this.stack.pop();T.position.end=ot(k.end)}function Fe(k){b.call(this,k);const T=this.stack[this.stack.length-1];T.url=this.sliceSerialize(k)}function ae(k){b.call(this,k);const T=this.stack[this.stack.length-1];T.url="mailto:"+this.sliceSerialize(k)}function Ue(){return{type:"blockquote",children:[]}}function He(){return{type:"code",lang:null,meta:null,value:""}}function ut(){return{type:"inlineCode",value:""}}function ct(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ft(){return{type:"emphasis",children:[]}}function Zt(){return{type:"heading",depth:0,children:[]}}function pt(){return{type:"break"}}function Cn(){return{type:"html",value:""}}function Dr(){return{type:"image",title:null,url:"",alt:null}}function Jt(){return{type:"link",title:null,url:"",children:[]}}function en(k){return{type:"list",ordered:k.type==="listOrdered",start:null,spread:k._spread,children:[]}}function Or(k){return{type:"listItem",spread:k._spread,checked:null,children:[]}}function Z(){return{type:"paragraph",children:[]}}function B(){return{type:"strong",children:[]}}function ee(){return{type:"text",value:""}}function G(){return{type:"thematicBreak"}}}function ot(e){return{line:e.line,column:e.column,offset:e.offset}}function $i(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?$i(e,r):Ou(e,r)}}function Ou(e,n){let t;for(t in n)if(Ui.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 Hi(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Bt({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Bt({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Bt({start:n.start,end:n.end})+") is still open")}function zu(e){const n=this;n.parser=t;function t(r){return Pu(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function Nu(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 Mu(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
5
|
-
`}]}function
|
|
6
|
-
`:"",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
|
|
4
|
+
`;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 Lu(e){const r={constructs:Ti([Tu,...(e||{}).extensions||[]]),content:i(es),defined:[],document:i(ns),flow:i(xu),lazy:{},string:i(Cu),text:i(vu)};return r;function i(l){return o;function o(a){return Au(r,l,a)}}}function Nu(e){for(;!zi(e););return e}const Ui=/[\0\t\n\r]/g;function Pu(){let e=1,n="",t=!0,r;return i;function i(l,o,a){const s=[];let u,f,c,h,p;for(l=n+(typeof l=="string"?l.toString():new TextDecoder(o||void 0).decode(l)),c=0,n="",t&&(l.charCodeAt(0)===65279&&c++,t=void 0);c<l.length;){if(Ui.lastIndex=c,u=Ui.exec(l),h=u&&u.index!==void 0?u.index:l.length,p=l.charCodeAt(h),!u){n=l.slice(c);break}if(p===10&&c===h&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<h&&(s.push(l.slice(c,h)),e+=h-c),p){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=h+1}return a&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const Du=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Mu(e){return e.replace(Du,zu)}function zu(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),l=i===120||i===88;return Ai(t.slice(l?2:1),l?16:10)}return Qn(t)||e}const Vi={}.hasOwnProperty;function Ou(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Ru(t)(Nu(Lu(t).document().write(Pu()(e,n,!0))))}function Ru(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(en),autolinkProtocol:U,autolinkEmail:U,atxHeading:l(rt),blockQuote:l(je),characterEscape:U,characterReference:U,codeFenced:l(oe),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:l(oe,o),codeText:l(ge,o),codeTextData:U,data:U,codeFlowValue:U,definition:l(fe),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:l(He),hardBreakEscape:l(dt),hardBreakTrailing:l(dt),htmlFlow:l(Tn,o),htmlFlowData:U,htmlText:l(Tn,o),htmlTextData:U,image:l(zr),label:o,link:l(en),listItem:l(Or),listItemValue:h,listOrdered:l(tn,c),listUnordered:l(tn),paragraph:l(J),reference:m,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:l(rt),strong:l(B),thematicBreak:l(Y)},exit:{atxHeading:s(),atxHeadingSequence:R,autolink:s(),autolinkEmail:se,autolinkProtocol:ze,blockQuote:s(),characterEscapeValue:y,characterReferenceMarkerHexadecimal:ae,characterReferenceMarkerNumeric:ae,characterReferenceValue:te,characterReference:$e,codeFenced:s(k),codeFencedFence:C,codeFencedFenceInfo:p,codeFencedFenceMeta:b,codeFlowValue:y,codeIndented:s(x),codeText:s(L),codeTextData:y,data:y,definition:s(),definitionDestinationString:j,definitionLabelString:T,definitionTitleString:v,emphasis:s(),hardBreakEscape:s(N),hardBreakTrailing:s(N),htmlFlow:s(G),htmlFlowData:y,htmlText:s(M),htmlTextData:y,image:s(ne),label:Ee,labelText:he,lineEnding:D,link:s(V),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:de,resourceDestinationString:d,resourceTitleString:ke,resource:xe,setextHeading:s(E),setextHeadingLineSequence:q,setextHeadingText:S,strong:s(),thematicBreak:s()}};qi(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(w){let A={type:"root",children:[]};const W={stack:[A],tokenStack:[],config:n,enter:a,exit:u,buffer:o,resume:f,data:t},Z=[];let le=-1;for(;++le<w.length;)if(w[le][1].type==="listOrdered"||w[le][1].type==="listUnordered")if(w[le][0]==="enter")Z.push(le);else{const _e=Z.pop();le=i(w,_e,le)}for(le=-1;++le<w.length;){const _e=n[w[le][0]];Vi.call(_e,w[le][1].type)&&_e[w[le][1].type].call(Object.assign({sliceSerialize:w[le][2].sliceSerialize},W),w[le][1])}if(W.tokenStack.length>0){const _e=W.tokenStack[W.tokenStack.length-1];(_e[1]||Wi).call(W,void 0,_e[0])}for(A.position={start:ct(w.length>0?w[0][1].start:{line:1,column:1,offset:0}),end:ct(w.length>0?w[w.length-2][1].end:{line:1,column:1,offset:0})},le=-1;++le<n.transforms.length;)A=n.transforms[le](A)||A;return A}function i(w,A,W){let Z=A-1,le=-1,_e=!1,it,Ye,St,Ze;for(;++Z<=W;){const Ce=w[Z];switch(Ce[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ce[0]==="enter"?le++:le--,Ze=void 0;break}case"lineEndingBlank":{Ce[0]==="enter"&&(it&&!Ze&&!le&&!St&&(St=Z),Ze=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ze=void 0}if(!le&&Ce[0]==="enter"&&Ce[1].type==="listItemPrefix"||le===-1&&Ce[0]==="exit"&&(Ce[1].type==="listUnordered"||Ce[1].type==="listOrdered")){if(it){let mt=Z;for(Ye=void 0;mt--;){const Xe=w[mt];if(Xe[1].type==="lineEnding"||Xe[1].type==="lineEndingBlank"){if(Xe[0]==="exit")continue;Ye&&(w[Ye][1].type="lineEndingBlank",_e=!0),Xe[1].type="lineEnding",Ye=mt}else if(!(Xe[1].type==="linePrefix"||Xe[1].type==="blockQuotePrefix"||Xe[1].type==="blockQuotePrefixWhitespace"||Xe[1].type==="blockQuoteMarker"||Xe[1].type==="listItemIndent"))break}St&&(!Ye||St<Ye)&&(it._spread=!0),it.end=Object.assign({},Ye?w[Ye][1].start:Ce[1].end),w.splice(Ye||Z,0,["exit",it,Ce[2]]),Z++,W++}if(Ce[1].type==="listItemPrefix"){const mt={type:"listItem",_spread:!1,start:Object.assign({},Ce[1].start),end:void 0};it=mt,w.splice(Z,0,["enter",mt,Ce[2]]),Z++,W++,St=void 0,Ze=!0}}}return w[A][1]._spread=_e,W}function l(w,A){return W;function W(Z){a.call(this,w(Z),Z),A&&A.call(this,Z)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(w,A,W){this.stack[this.stack.length-1].children.push(w),this.stack.push(w),this.tokenStack.push([A,W||void 0]),w.position={start:ct(A.start),end:void 0}}function s(w){return A;function A(W){w&&w.call(this,W),u.call(this,W)}}function u(w,A){const W=this.stack.pop(),Z=this.tokenStack.pop();if(Z)Z[0].type!==w.type&&(A?A.call(this,w,Z[0]):(Z[1]||Wi).call(this,w,Z[0]));else throw new Error("Cannot close `"+w.type+"` ("+Ut({start:w.start,end:w.end})+"): it’s not open");W.position.end=ct(w.end)}function f(){return Xn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(w){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(w),10),this.data.expectingFirstListItemValue=void 0}}function p(){const w=this.resume(),A=this.stack[this.stack.length-1];A.lang=w}function b(){const w=this.resume(),A=this.stack[this.stack.length-1];A.meta=w}function C(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function k(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w.replace(/(\r?\n|\r)$/g,"")}function T(w){const A=this.resume(),W=this.stack[this.stack.length-1];W.label=A,W.identifier=Ge(this.sliceSerialize(w)).toLowerCase()}function v(){const w=this.resume(),A=this.stack[this.stack.length-1];A.title=w}function j(){const w=this.resume(),A=this.stack[this.stack.length-1];A.url=w}function R(w){const A=this.stack[this.stack.length-1];if(!A.depth){const W=this.sliceSerialize(w).length;A.depth=W}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function q(w){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(w).codePointAt(0)===61?1:2}function E(){this.data.setextHeadingSlurpLineEnding=void 0}function U(w){const W=this.stack[this.stack.length-1].children;let Z=W[W.length-1];(!Z||Z.type!=="text")&&(Z=re(),Z.position={start:ct(w.start),end:void 0},W.push(Z)),this.stack.push(Z)}function y(w){const A=this.stack.pop();A.value+=this.sliceSerialize(w),A.position.end=ct(w.end)}function D(w){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const W=A.children[A.children.length-1];W.position.end=ct(w.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(A.type)&&(U.call(this,w),y.call(this,w))}function N(){this.data.atHardBreak=!0}function G(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w}function M(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w}function L(){const w=this.resume(),A=this.stack[this.stack.length-1];A.value=w}function V(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=A,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function ne(){const w=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";w.type+="Reference",w.referenceType=A,delete w.url,delete w.title}else delete w.identifier,delete w.label;this.data.referenceType=void 0}function he(w){const A=this.sliceSerialize(w),W=this.stack[this.stack.length-2];W.label=Mu(A),W.identifier=Ge(A).toLowerCase()}function Ee(){const w=this.stack[this.stack.length-1],A=this.resume(),W=this.stack[this.stack.length-1];if(this.data.inReference=!0,W.type==="link"){const Z=w.children;W.children=Z}else W.alt=A}function d(){const w=this.resume(),A=this.stack[this.stack.length-1];A.url=w}function ke(){const w=this.resume(),A=this.stack[this.stack.length-1];A.title=w}function xe(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function de(w){const A=this.resume(),W=this.stack[this.stack.length-1];W.label=A,W.identifier=Ge(this.sliceSerialize(w)).toLowerCase(),this.data.referenceType="full"}function ae(w){this.data.characterReferenceType=w.type}function te(w){const A=this.sliceSerialize(w),W=this.data.characterReferenceType;let Z;W?(Z=Ai(A,W==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Z=Qn(A);const le=this.stack[this.stack.length-1];le.value+=Z}function $e(w){const A=this.stack.pop();A.position.end=ct(w.end)}function ze(w){y.call(this,w);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(w)}function se(w){y.call(this,w);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(w)}function je(){return{type:"blockquote",children:[]}}function oe(){return{type:"code",lang:null,meta:null,value:""}}function ge(){return{type:"inlineCode",value:""}}function fe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function He(){return{type:"emphasis",children:[]}}function rt(){return{type:"heading",depth:0,children:[]}}function dt(){return{type:"break"}}function Tn(){return{type:"html",value:""}}function zr(){return{type:"image",title:null,url:"",alt:null}}function en(){return{type:"link",title:null,url:"",children:[]}}function tn(w){return{type:"list",ordered:w.type==="listOrdered",start:null,spread:w._spread,children:[]}}function Or(w){return{type:"listItem",spread:w._spread,checked:null,children:[]}}function J(){return{type:"paragraph",children:[]}}function B(){return{type:"strong",children:[]}}function re(){return{type:"text",value:""}}function Y(){return{type:"thematicBreak"}}}function ct(e){return{line:e.line,column:e.column,offset:e.offset}}function qi(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?qi(e,r):Fu(e,r)}}function Fu(e,n){let t;for(t in n)if(Vi.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 Wi(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ut({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ut({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ut({start:n.start,end:n.end})+") is still open")}function Bu(e){const n=this;n.parser=t;function t(r){return Ou(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function $u(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 ju(e,n){const t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
|
|
5
|
+
`}]}function Hu(e,n){const t=n.value?n.value+`
|
|
6
|
+
`:"",r={},i=n.lang?n.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let 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 Uu(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Vu(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function qu(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=_t(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 s={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,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(n,u),e.applyData(n,u)}function Wu(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 Gu(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function Gi(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 Yu(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Gi(e,n);const i={src:_t(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 Xu(e,n){const t={src:_t(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 Qu(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 Ku(e,n){const t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return Gi(e,n);const i={href:_t(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 Zu(e,n){const t={href:_t(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 Ju(e,n,t){const r=e.all(n),i=t?ec(t):Yi(n),l={},o=[];if(typeof n.checked=="boolean"){const f=r[0];let c;f&&f.type==="element"&&f.tagName==="p"?c=f:(c={type:"element",tagName:"p",properties:{},children:[]},r.unshift(c)),c.children.length>0&&c.children.unshift({type:"text",value:" "}),c.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&o.push({type:"text",value:`
|
|
7
7
|
`}),f.type==="element"&&f.tagName==="p"&&!i?o.push(...f.children):o.push(f)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:`
|
|
8
|
-
`});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(n,u),e.applyData(n,u)}function
|
|
8
|
+
`});const u={type:"element",tagName:"li",properties:l,children:o};return e.patch(n,u),e.applyData(n,u)}function ec(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=Yi(t[r])}return n}function Yi(e){const n=e.spread;return n??e.children.length>1}function tc(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 nc(e,n){const t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function rc(e,n){const t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function ic(e,n){const t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function oc(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=Un(n.children[1]),s=di(n.children[n.children.length-1]);a&&s&&(o.position={start:a,end:s}),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 lc(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 s=-1;const u=[];for(;++s<a;){const c=n.children[s],h={},p=o?o[s]:void 0;p&&(h.align=p);let b={type:"element",tagName:l,properties:h,children:[]};c&&(b.children=e.all(c),e.patch(c,b),b=e.applyData(c,b)),u.push(b)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(n,f),e.applyData(n,f)}function ac(e,n){const t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}const Xi=9,Qi=32;function sc(e){const n=String(e),t=/\r?\n|\r/g;let r=t.exec(n),i=0;const l=[];for(;r;)l.push(Ki(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return l.push(Ki(n.slice(i),i>0,!1)),l.join("")}function Ki(e,n,t){let r=0,i=e.length;if(n){let l=e.codePointAt(r);for(;l===Xi||l===Qi;)r++,l=e.codePointAt(r)}if(t){let l=e.codePointAt(i-1);for(;l===Xi||l===Qi;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function uc(e,n){const t={type:"text",value:sc(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function cc(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const fc={blockquote:$u,break:ju,code:Hu,delete:Uu,emphasis:Vu,footnoteReference:qu,heading:Wu,html:Gu,imageReference:Yu,image:Xu,inlineCode:Qu,linkReference:Ku,link:Zu,listItem:Ju,list:tc,paragraph:nc,root:rc,strong:ic,table:oc,tableCell:ac,tableRow:lc,text:uc,thematicBreak:cc,toml:fn,yaml:fn,definition:fn,footnoteDefinition:fn};function fn(){}const Zi=-1,pn=0,Yt=1,hn=2,nr=3,rr=4,ir=5,or=6,Ji=7,eo=8,to=typeof self=="object"?self:globalThis,pc=(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 pn:case Zi:return t(o,i);case Yt:{const a=t([],i);for(const s of o)a.push(r(s));return a}case hn:{const a=t({},i);for(const[s,u]of o)a[r(s)]=r(u);return a}case nr:return t(new Date(o),i);case rr:{const{source:a,flags:s}=o;return t(new RegExp(a,s),i)}case ir:{const a=t(new Map,i);for(const[s,u]of o)a.set(r(s),r(u));return a}case or:{const a=t(new Set,i);for(const s of o)a.add(r(s));return a}case Ji:{const{name:a,message:s}=o;return t(new to[a](s),i)}case eo: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 to[l](o),i)};return r},no=e=>pc(new Map,e)(0),Lt="",{toString:hc}={},{keys:dc}=Object,Xt=e=>{const n=typeof e;if(n!=="object"||!e)return[pn,n];const t=hc.call(e).slice(8,-1);switch(t){case"Array":return[Yt,Lt];case"Object":return[hn,Lt];case"Date":return[nr,Lt];case"RegExp":return[rr,Lt];case"Map":return[ir,Lt];case"Set":return[or,Lt];case"DataView":return[Yt,t]}return t.includes("Array")?[Yt,t]:t.includes("Error")?[Ji,t]:[hn,t]},dn=([e,n])=>e===pn&&(n==="function"||n==="symbol"),mc=(e,n,t,r)=>{const i=(o,a)=>{const s=r.push(o)-1;return t.set(a,s),s},l=o=>{if(t.has(o))return t.get(o);let[a,s]=Xt(o);switch(a){case pn:{let f=o;switch(s){case"bigint":a=eo,f=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return i([Zi],o)}return i([a,f],o)}case Yt:{if(s){let h=o;return s==="DataView"?h=new Uint8Array(o.buffer):s==="ArrayBuffer"&&(h=new Uint8Array(o)),i([s,[...h]],o)}const f=[],c=i([a,f],o);for(const h of o)f.push(l(h));return c}case hn:{if(s)switch(s){case"BigInt":return i([s,o.toString()],o);case"Boolean":case"Number":case"String":return i([s,o.valueOf()],o)}if(n&&"toJSON"in o)return l(o.toJSON());const f=[],c=i([a,f],o);for(const h of dc(o))(e||!dn(Xt(o[h])))&&f.push([l(h),l(o[h])]);return c}case nr:return i([a,o.toISOString()],o);case rr:{const{source:f,flags:c}=o;return i([a,{source:f,flags:c}],o)}case ir:{const f=[],c=i([a,f],o);for(const[h,p]of o)(e||!(dn(Xt(h))||dn(Xt(p))))&&f.push([l(h),l(p)]);return c}case or:{const f=[],c=i([a,f],o);for(const h of o)(e||!dn(Xt(h)))&&f.push(l(h));return c}}const{message:u}=o;return i([a,{name:s,message:u}],o)};return l},ro=(e,{json:n,lossy:t}={})=>{const r=[];return mc(!(n||t),!!n,new Map,r)(e),r},mn=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?no(ro(e,n)):structuredClone(e):(e,n)=>no(ro(e,n));function gc(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 bc(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function yc(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||gc,r=e.options.footnoteBackLabel||bc,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let s=-1;for(;++s<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[s]);if(!u)continue;const f=e.all(u),c=String(u.identifier).toUpperCase(),h=_t(c.toLowerCase());let p=0;const b=[],C=e.footnoteCounts.get(c);for(;C!==void 0&&++p<=C;){b.length>0&&b.push({type:"text",value:" "});let T=typeof t=="string"?t:t(s,p);typeof T=="string"&&(T={type:"text",value:T}),b.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,p),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const k=f[f.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const T=k.children[k.children.length-1];T&&T.type==="text"?T.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...b)}else f.push(...b);const x={type:"element",tagName:"li",properties:{id:n+"fn-"+h},children:e.wrap(f,!0)};e.patch(u,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...mn(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
|
|
9
9
|
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
|
|
10
|
-
`}]}}const
|
|
10
|
+
`}]}}const gn=(function(e){if(e==null)return Sc;if(typeof e=="function")return bn(e);if(typeof e=="object")return Array.isArray(e)?kc(e):xc(e);if(typeof e=="string")return wc(e);throw new Error("Expected function, string, or object as test")});function kc(e){const n=[];let t=-1;for(;++t<e.length;)n[t]=gn(e[t]);return bn(r);function r(...i){let l=-1;for(;++l<n.length;)if(n[l].apply(this,i))return!0;return!1}}function xc(e){const n=e;return bn(t);function t(r){const i=r;let l;for(l in e)if(i[l]!==n[l])return!1;return!0}}function wc(e){return bn(n);function n(t){return t&&t.type===e}}function bn(e){return n;function n(t,r,i){return!!(Cc(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function Sc(){return!0}function Cc(e){return e!==null&&typeof e=="object"&&"type"in e}function Mm(e){return e}const io=[],vc=!0,lr=!1,Ec="skip";function oo(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;const l=gn(i),o=r?-1:1;a(e,void 0,[])();function a(s,u,f){const c=s&&typeof s=="object"?s:{};if(typeof c.type=="string"){const p=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(s.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=io,b,C,k;if((!n||l(s,u,f[f.length-1]||void 0))&&(p=Tc(t(s,f)),p[0]===lr))return p;if("children"in s&&s.children){const x=s;if(x.children&&p[0]!==Ec)for(C=(r?x.children.length:-1)+o,k=f.concat(x);C>-1&&C<x.children.length;){const T=x.children[C];if(b=a(T,C,k)(),b[0]===lr)return b;C=typeof b[1]=="number"?b[1]:C+o}}return p}}}function Tc(e){return Array.isArray(e)?e:typeof e=="number"?[vc,e]:e==null?io:[e]}function ar(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),oo(e,l,a,i);function a(s,u){const f=u[u.length-1],c=f?f.children.indexOf(s):void 0;return o(s,c,f)}}const sr={}.hasOwnProperty,Ac={};function _c(e,n){const t=n||Ac,r=new Map,i=new Map,l=new Map,o={...fc,...t.handlers},a={all:u,applyData:Lc,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:s,options:t,patch:Ic,wrap:Pc};return ar(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,h=String(f.identifier).toUpperCase();c.has(h)||c.set(h,f)}}),a;function s(f,c){const h=f.type,p=a.handlers[h];if(sr.call(a.handlers,h)&&p)return p(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in f){const{children:C,...k}=f,x=mn(k);return x.children=a.all(f),x}return mn(f)}return(a.options.unknownHandler||Nc)(a,f,c)}function u(f){const c=[];if("children"in f){const h=f.children;let p=-1;for(;++p<h.length;){const b=a.one(h[p],f);if(b){if(p&&h[p-1].type==="break"&&(!Array.isArray(b)&&b.type==="text"&&(b.value=lo(b.value)),!Array.isArray(b)&&b.type==="element")){const C=b.children[0];C&&C.type==="text"&&(C.value=lo(C.value))}Array.isArray(b)?c.push(...b):c.push(b)}}}return c}}function Ic(e,n){e.position&&(n.position=Ta(e))}function Lc(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,mn(l)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function Nc(e,n){const t=n.data||{},r="value"in n&&!(sr.call(t,"hProperties")||sr.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 Pc(e,n){const t=[];let r=-1;for(n&&t.push({type:"text",value:`
|
|
11
11
|
`});++r<e.length;)r&&t.push({type:"text",value:`
|
|
12
12
|
`}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
|
|
13
|
-
`}),t}function
|
|
14
|
-
`},i),l}function _c(e,n){return e&&"run"in e?async function(t,r){const i=io(t,{file:r,...n});await e.run(i,r)}:function(t,r){return io(t,{file:r,...e||n})}}function oo(e){if(e)throw e}var ar,lo;function Ic(){if(lo)return ar;lo=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},l=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var f=e.call(u,"constructor"),c=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!f&&!c)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},o=function(u,f){t&&f.name==="__proto__"?t(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue},a=function(u,f){if(f==="__proto__")if(e.call(u,f)){if(r)return r(u,f).value}else return;return u[f]};return ar=function s(){var u,f,c,h,p,y,S=arguments[0],E=1,x=arguments.length,A=!1;for(typeof S=="boolean"&&(A=S,S=arguments[1]||{},E=2),(S==null||typeof S!="object"&&typeof S!="function")&&(S={});E<x;++E)if(u=arguments[E],u!=null)for(f in u)c=a(S,f),h=a(u,f),S!==h&&(A&&h&&(l(h)||(p=i(h)))?(p?(p=!1,y=c&&i(c)?c:[]):y=c&&l(c)?c:{},o(S,{name:f,newValue:s(A,y,h)})):typeof h<"u"&&o(S,{name:f,newValue:h}));return S},ar}var Lc=Ic();const sr=Bn(Lc);function ur(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 Pc(){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(s,...u){const f=e[++l];let c=-1;if(s){o(s);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?Dc(f,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Dc(e,n){let t;return r;function r(...o){const a=e.length>o.length;let s;a&&o.push(i);try{s=e.apply(this,o)}catch(u){const f=u;if(a&&t)throw f;return i(f)}a||(s&&s.then&&typeof s.then=="function"?s.then(l,i):s instanceof Error?i(s):l(s))}function i(o,...a){t||(t=!0,n(o,...a))}function l(o){i(null,o)}}const We={basename:Oc,dirname:zc,extname:Nc,join:Mc,sep:"/"};function Oc(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Wt(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 zc(e){if(Wt(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 Nc(e){Wt(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 Mc(...e){let n=-1,t;for(;++n<e.length;)Wt(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Rc(t)}function Rc(e){Wt(e);const n=e.codePointAt(0)===47;let t=Fc(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Fc(e,n){let t="",r=0,i=-1,l=0,o=-1,a,s;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(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",r=0):(t=t.slice(0,s),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 Wt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Bc={cwd:jc};function jc(){return"/"}function cr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Uc(e){if(typeof e=="string")e=new URL(e);else if(!cr(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 $c(e)}function $c(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 fr=["history","path","basename","stem","extname","dirname"];class ao{constructor(n){let t;n?cr(n)?t={path:n}:typeof n=="string"||Hc(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Bc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<fr.length;){const l=fr[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)fr.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?We.basename(this.path):void 0}set basename(n){hr(n,"basename"),pr(n,"basename"),this.path=We.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?We.dirname(this.path):void 0}set dirname(n){so(this.basename,"dirname"),this.path=We.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?We.extname(this.path):void 0}set extname(n){if(pr(n,"extname"),so(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=We.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){cr(n)&&(n=Uc(n)),hr(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?We.basename(this.path,this.extname):void 0}set stem(n){hr(n,"stem"),pr(n,"stem"),this.path=We.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 Te(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 pr(e,n){if(e&&e.includes(We.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+We.sep+"`")}function hr(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function so(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Hc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Vc=(function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l}),qc={}.hasOwnProperty;class dr extends Vc{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=Pc()}copy(){const n=new dr;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(sr(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(br("data",this.frozen),this.namespace[n]=t,this):qc.call(this.namespace,n)&&this.namespace[n]||void 0:n?(br("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=bn(n),r=this.parser||this.Parser;return mr("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),mr("process",this.parser||this.Parser),gr("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,o){const a=bn(n),s=r.parse(a);r.run(s,a,function(f,c,h){if(f||!c||!h)return u(f);const p=c,y=r.stringify(p,h);Yc(y)?h.value=y:h.result=y,u(f,h)});function u(f,c){f||!c?o(f):l?l(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),mr("processSync",this.parser||this.Parser),gr("processSync",this.compiler||this.Compiler),this.process(n,i),co("processSync","process",t),r;function i(l,o){t=!0,oo(l),r=o}}run(n,t,r){uo(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 s=bn(t);i.run(n,s,u);function u(f,c,h){const p=c||n;f?a(f):o?o(p):r(void 0,p,h)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),co("runSync","run",r),i;function l(o,a){oo(o),i=a,r=!0}}stringify(n,t){this.freeze();const r=bn(t),i=this.compiler||this.Compiler;return gr("stringify",i),uo(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(br("use",this.frozen),n!=null)if(typeof n=="function")s(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(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;s(f,c)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))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(u.plugins),u.settings&&(i.settings=sr(!0,i.settings,u.settings))}function a(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];l(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,f){let c=-1,h=-1;for(;++c<r.length;)if(r[c][0]===u){h=c;break}if(h===-1)r.push([u,...f]);else if(f.length>0){let[p,...y]=f;const S=r[h][1];ur(S)&&ur(p)&&(p=sr(!0,S,p)),r[h]=[u,p,...y]}}}}const Wc=new dr().freeze();function mr(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function gr(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function br(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 uo(e){if(!ur(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function co(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function bn(e){return Gc(e)?e:new ao(e)}function Gc(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Yc(e){return typeof e=="string"||Xc(e)}function Xc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Kc="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",fo=[],po={allowDangerousHtml:!0},Qc=/^(https?|ircs?|mailto|xmpp)$/i,Zc=[{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 Jc(e){const n=ef(e),t=tf(e);return nf(n.runSync(n.parse(t),t),e)}function ef(e){const n=e.rehypePlugins||fo,t=e.remarkPlugins||fo,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...po}:po;return Wc().use(zu).use(t).use(_c,r).use(n)}function tf(e){const n=e.children||"",t=new ao;return typeof n=="string"&&(t.value=n),t}function nf(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,a=n.unwrapDisallowed,s=n.urlTransform||rf;for(const f of Zc)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Kc+f.id,void 0);return or(e,u),Ta(e,{Fragment:D.Fragment,components:i,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function u(f,c,h){if(f.type==="raw"&&h&&typeof c=="number")return o?h.children.splice(c,1):h.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let p;for(p in Wn)if(Object.hasOwn(Wn,p)&&Object.hasOwn(f.properties,p)){const y=f.properties[p],S=Wn[p];(S===null||S.includes(f.tagName))&&(f.properties[p]=s(String(y||""),p,f))}}if(f.type==="element"){let p=t?!t.includes(f.tagName):l?l.includes(f.tagName):!1;if(!p&&r&&typeof c=="number"&&(p=!r(f,c,h)),p&&h&&typeof c=="number")return a&&f.children?h.children.splice(c,1,...f.children):h.children.splice(c,1),c}}}function rf(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||Qc.test(e.slice(0,n))?e:""}function ho(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function of(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function lf(e,n,t){const i=mn((t||{}).ignore||[]),l=af(n);let o=-1;for(;++o<l.length;)no(e,"text",a);function a(u,f){let c=-1,h;for(;++c<f.length;){const p=f[c],y=h?h.children:void 0;if(i(p,y?y.indexOf(p):void 0,h))return;h=p}if(h)return s(u,f)}function s(u,f){const c=f[f.length-1],h=l[o][0],p=l[o][1];let y=0;const E=c.children.indexOf(u);let x=!1,A=[];h.lastIndex=0;let v=h.exec(u.value);for(;v;){const $=v.index,M={index:v.index,input:v.input,stack:[...f,u]};let w=p(...v,M);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?h.lastIndex=$+1:(y!==$&&A.push({type:"text",value:u.value.slice(y,$)}),Array.isArray(w)?A.push(...w):w&&A.push(w),y=$+v[0].length,x=!0),!h.global)break;v=h.exec(u.value)}return x?(y<u.value.length&&A.push({type:"text",value:u.value.slice(y)}),c.children.splice(E,1,...A)):A=[u],E+A.length}}function af(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([sf(i[0]),uf(i[1])])}return n}function sf(e){return typeof e=="string"?new RegExp(of(e),"g"):e}function uf(e){return typeof e=="function"?e:function(){return e}}const yr="phrasing",xr=["autolink","link","image","label"];function cf(){return{transforms:[bf],enter:{literalAutolink:pf,literalAutolinkEmail:kr,literalAutolinkHttp:kr,literalAutolinkWww:kr},exit:{literalAutolink:gf,literalAutolinkEmail:mf,literalAutolinkHttp:hf,literalAutolinkWww:df}}}function ff(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:yr,notInConstruct:xr},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:yr,notInConstruct:xr},{character:":",before:"[ps]",after:"\\/",inConstruct:yr,notInConstruct:xr}]}}function pf(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function kr(e){this.config.enter.autolinkProtocol.call(this,e)}function hf(e){this.config.exit.autolinkProtocol.call(this,e)}function df(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function mf(e){this.config.exit.autolinkEmail.call(this,e)}function gf(e){this.exit(e)}function bf(e){lf(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,yf],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),xf]],{ignore:["link","linkReference"]})}function yf(e,n,t,r,i){let l="";if(!mo(i)||(/^w/i.test(n)&&(t=n+t,n="",l="http://"),!kf(t)))return!1;const o=wf(t+r);if(!o[0])return!1;const a={type:"link",title:null,url:l+n+o[0],children:[{type:"text",value:n+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function xf(e,n,t,r){return!mo(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function kf(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function wf(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=ho(e,"(");let l=ho(e,")");for(;r!==-1&&i>l;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),l++;return[e,t]}function mo(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||mt(t)||an(t))&&(!n||t!==47)}go.peek=Lf;function Sf(){this.buffer()}function Ef(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Cf(){this.buffer()}function vf(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Tf(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=$e(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Af(e){this.exit(e)}function _f(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=$e(this.sliceSerialize(e)).toLowerCase(),t.label=n}function If(e){this.exit(e)}function Lf(){return"["}function go(e,n,t,r){const i=t.createTracker(r);let l=i.move("[^");const o=t.enter("footnoteReference"),a=t.enter("reference");return l+=i.move(t.safe(t.associationId(e),{after:"]",before:l})),a(),o(),l+=i.move("]"),l}function Pf(){return{enter:{gfmFootnoteCallString:Sf,gfmFootnoteCall:Ef,gfmFootnoteDefinitionLabelString:Cf,gfmFootnoteDefinition:vf},exit:{gfmFootnoteCallString:Tf,gfmFootnoteCall:Af,gfmFootnoteDefinitionLabelString:_f,gfmFootnoteDefinition:If}}}function Df(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:go},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,l,o){const a=l.createTracker(o);let s=a.move("[^");const u=l.enter("footnoteDefinition"),f=l.enter("label");return s+=a.move(l.safe(l.associationId(r),{before:s,after:"]"})),f(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((n?`
|
|
15
|
-
`:" ")+l.indentLines(l.containerFlow(r,a.current()),n?
|
|
16
|
-
`)}function
|
|
17
|
-
`&&
|
|
18
|
-
`}function
|
|
13
|
+
`}),t}function lo(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function ao(e,n){const t=_c(e,n),r=t.one(e,void 0),i=yc(t),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:`
|
|
14
|
+
`},i),l}function Dc(e,n){return e&&"run"in e?async function(t,r){const i=ao(t,{file:r,...n});await e.run(i,r)}:function(t,r){return ao(t,{file:r,...e||n})}}function so(e){if(e)throw e}var ur,uo;function Mc(){if(uo)return ur;uo=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):n.call(u)==="[object Array]"},l=function(u){if(!u||n.call(u)!=="[object Object]")return!1;var f=e.call(u,"constructor"),c=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!f&&!c)return!1;var h;for(h in u);return typeof h>"u"||e.call(u,h)},o=function(u,f){t&&f.name==="__proto__"?t(u,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):u[f.name]=f.newValue},a=function(u,f){if(f==="__proto__")if(e.call(u,f)){if(r)return r(u,f).value}else return;return u[f]};return ur=function s(){var u,f,c,h,p,b,C=arguments[0],k=1,x=arguments.length,T=!1;for(typeof C=="boolean"&&(T=C,C=arguments[1]||{},k=2),(C==null||typeof C!="object"&&typeof C!="function")&&(C={});k<x;++k)if(u=arguments[k],u!=null)for(f in u)c=a(C,f),h=a(u,f),C!==h&&(T&&h&&(l(h)||(p=i(h)))?(p?(p=!1,b=c&&i(c)?c:[]):b=c&&l(c)?c:{},o(C,{name:f,newValue:s(T,b,h)})):typeof h<"u"&&o(C,{name:f,newValue:h}));return C},ur}var zc=Mc();const cr=jn(zc);function fr(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 Oc(){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(s,...u){const f=e[++l];let c=-1;if(s){o(s);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?Rc(f,a)(...u):o(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Rc(e,n){let t;return r;function r(...o){const a=e.length>o.length;let s;a&&o.push(i);try{s=e.apply(this,o)}catch(u){const f=u;if(a&&t)throw f;return i(f)}a||(s&&s.then&&typeof s.then=="function"?s.then(l,i):s instanceof Error?i(s):l(s))}function i(o,...a){t||(t=!0,n(o,...a))}function l(o){i(null,o)}}const Qe={basename:Fc,dirname:Bc,extname:$c,join:jc,sep:"/"};function Fc(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');Qt(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 Bc(e){if(Qt(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 $c(e){Qt(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 jc(...e){let n=-1,t;for(;++n<e.length;)Qt(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Hc(t)}function Hc(e){Qt(e);const n=e.codePointAt(0)===47;let t=Uc(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function Uc(e,n){let t="",r=0,i=-1,l=0,o=-1,a,s;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(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",r=0):(t=t.slice(0,s),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 Qt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Vc={cwd:qc};function qc(){return"/"}function pr(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Wc(e){if(typeof e=="string")e=new URL(e);else if(!pr(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 Gc(e)}function Gc(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 hr=["history","path","basename","stem","extname","dirname"];class co{constructor(n){let t;n?pr(n)?t={path:n}:typeof n=="string"||Yc(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Vc.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<hr.length;){const l=hr[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)hr.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?Qe.basename(this.path):void 0}set basename(n){mr(n,"basename"),dr(n,"basename"),this.path=Qe.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?Qe.dirname(this.path):void 0}set dirname(n){fo(this.basename,"dirname"),this.path=Qe.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?Qe.extname(this.path):void 0}set extname(n){if(dr(n,"extname"),fo(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=Qe.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){pr(n)&&(n=Wc(n)),mr(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?Qe.basename(this.path,this.extname):void 0}set stem(n){mr(n,"stem"),dr(n,"stem"),this.path=Qe.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 Ne(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 dr(e,n){if(e&&e.includes(Qe.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+Qe.sep+"`")}function mr(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function fo(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Yc(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Xc=(function(e){const r=this.constructor.prototype,i=r[e],l=function(){return i.apply(l,arguments)};return Object.setPrototypeOf(l,r),l}),Qc={}.hasOwnProperty;class gr extends Xc{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=Oc()}copy(){const n=new gr;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(cr(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(kr("data",this.frozen),this.namespace[n]=t,this):Qc.call(this.namespace,n)&&this.namespace[n]||void 0:n?(kr("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=yn(n),r=this.parser||this.Parser;return br("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),br("process",this.parser||this.Parser),yr("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(l,o){const a=yn(n),s=r.parse(a);r.run(s,a,function(f,c,h){if(f||!c||!h)return u(f);const p=c,b=r.stringify(p,h);Jc(b)?h.value=b:h.result=b,u(f,h)});function u(f,c){f||!c?o(f):l?l(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),br("processSync",this.parser||this.Parser),yr("processSync",this.compiler||this.Compiler),this.process(n,i),ho("processSync","process",t),r;function i(l,o){t=!0,so(l),r=o}}run(n,t,r){po(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 s=yn(t);i.run(n,s,u);function u(f,c,h){const p=c||n;f?a(f):o?o(p):r(void 0,p,h)}}}runSync(n,t){let r=!1,i;return this.run(n,t,l),ho("runSync","run",r),i;function l(o,a){so(o),i=a,r=!0}}stringify(n,t){this.freeze();const r=yn(t),i=this.compiler||this.Compiler;return yr("stringify",i),po(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(kr("use",this.frozen),n!=null)if(typeof n=="function")s(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(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;s(f,c)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))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(u.plugins),u.settings&&(i.settings=cr(!0,i.settings,u.settings))}function a(u){let f=-1;if(u!=null)if(Array.isArray(u))for(;++f<u.length;){const c=u[f];l(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,f){let c=-1,h=-1;for(;++c<r.length;)if(r[c][0]===u){h=c;break}if(h===-1)r.push([u,...f]);else if(f.length>0){let[p,...b]=f;const C=r[h][1];fr(C)&&fr(p)&&(p=cr(!0,C,p)),r[h]=[u,p,...b]}}}}const Kc=new gr().freeze();function br(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function yr(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function kr(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 po(e){if(!fr(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ho(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function yn(e){return Zc(e)?e:new co(e)}function Zc(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Jc(e){return typeof e=="string"||ef(e)}function ef(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const tf="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",mo=[],go={allowDangerousHtml:!0},nf=/^(https?|ircs?|mailto|xmpp)$/i,rf=[{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 of(e){const n=lf(e),t=af(e);return sf(n.runSync(n.parse(t),t),e)}function lf(e){const n=e.rehypePlugins||mo,t=e.remarkPlugins||mo,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...go}:go;return Kc().use(Bu).use(t).use(Dc,r).use(n)}function af(e){const n=e.children||"",t=new co;return typeof n=="string"&&(t.value=n),t}function sf(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,l=n.disallowedElements,o=n.skipHtml,a=n.unwrapDisallowed,s=n.urlTransform||uf;for(const f of rf)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+tf+f.id,void 0);return ar(e,u),Na(e,{Fragment:P.Fragment,components:i,ignoreInvalidStyle:!0,jsx:P.jsx,jsxs:P.jsxs,passKeys:!0,passNode:!0});function u(f,c,h){if(f.type==="raw"&&h&&typeof c=="number")return o?h.children.splice(c,1):h.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let p;for(p in Yn)if(Object.hasOwn(Yn,p)&&Object.hasOwn(f.properties,p)){const b=f.properties[p],C=Yn[p];(C===null||C.includes(f.tagName))&&(f.properties[p]=s(String(b||""),p,f))}}if(f.type==="element"){let p=t?!t.includes(f.tagName):l?l.includes(f.tagName):!1;if(!p&&r&&typeof c=="number"&&(p=!r(f,c,h)),p&&h&&typeof c=="number")return a&&f.children?h.children.splice(c,1,...f.children):h.children.splice(c,1),c}}}function uf(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||nf.test(e.slice(0,n))?e:""}function bo(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let r=0,i=t.indexOf(n);for(;i!==-1;)r++,i=t.indexOf(n,i+n.length);return r}function cf(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ff(e,n,t){const i=gn((t||{}).ignore||[]),l=pf(n);let o=-1;for(;++o<l.length;)oo(e,"text",a);function a(u,f){let c=-1,h;for(;++c<f.length;){const p=f[c],b=h?h.children:void 0;if(i(p,b?b.indexOf(p):void 0,h))return;h=p}if(h)return s(u,f)}function s(u,f){const c=f[f.length-1],h=l[o][0],p=l[o][1];let b=0;const k=c.children.indexOf(u);let x=!1,T=[];h.lastIndex=0;let v=h.exec(u.value);for(;v;){const j=v.index,R={index:v.index,input:v.input,stack:[...f,u]};let S=p(...v,R);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?h.lastIndex=j+1:(b!==j&&T.push({type:"text",value:u.value.slice(b,j)}),Array.isArray(S)?T.push(...S):S&&T.push(S),b=j+v[0].length,x=!0),!h.global)break;v=h.exec(u.value)}return x?(b<u.value.length&&T.push({type:"text",value:u.value.slice(b)}),c.children.splice(k,1,...T)):T=[u],k+T.length}}function pf(e){const n=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<t.length;){const i=t[r];n.push([hf(i[0]),df(i[1])])}return n}function hf(e){return typeof e=="string"?new RegExp(cf(e),"g"):e}function df(e){return typeof e=="function"?e:function(){return e}}const xr="phrasing",wr=["autolink","link","image","label"];function mf(){return{transforms:[Sf],enter:{literalAutolink:bf,literalAutolinkEmail:Sr,literalAutolinkHttp:Sr,literalAutolinkWww:Sr},exit:{literalAutolink:wf,literalAutolinkEmail:xf,literalAutolinkHttp:yf,literalAutolinkWww:kf}}}function gf(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:xr,notInConstruct:wr},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:xr,notInConstruct:wr},{character:":",before:"[ps]",after:"\\/",inConstruct:xr,notInConstruct:wr}]}}function bf(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function Sr(e){this.config.enter.autolinkProtocol.call(this,e)}function yf(e){this.config.exit.autolinkProtocol.call(this,e)}function kf(e){this.config.exit.data.call(this,e);const n=this.stack[this.stack.length-1];n.type,n.url="http://"+this.sliceSerialize(e)}function xf(e){this.config.exit.autolinkEmail.call(this,e)}function wf(e){this.exit(e)}function Sf(e){ff(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Cf],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),vf]],{ignore:["link","linkReference"]})}function Cf(e,n,t,r,i){let l="";if(!yo(i)||(/^w/i.test(n)&&(t=n+t,n="",l="http://"),!Ef(t)))return!1;const o=Tf(t+r);if(!o[0])return!1;const a={type:"link",title:null,url:l+n+o[0],children:[{type:"text",value:n+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function vf(e,n,t,r){return!yo(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function Ef(e){const n=e.split(".");return!(n.length<2||n[n.length-1]&&(/_/.test(n[n.length-1])||!/[a-zA-Z\d]/.test(n[n.length-1]))||n[n.length-2]&&(/_/.test(n[n.length-2])||!/[a-zA-Z\d]/.test(n[n.length-2])))}function Tf(e){const n=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],r=t.indexOf(")");const i=bo(e,"(");let l=bo(e,")");for(;r!==-1&&i>l;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),l++;return[e,t]}function yo(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||bt(t)||sn(t))&&(!n||t!==47)}ko.peek=zf;function Af(){this.buffer()}function _f(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function If(){this.buffer()}function Lf(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Nf(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=Ge(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Pf(e){this.exit(e)}function Df(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=Ge(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Mf(e){this.exit(e)}function zf(){return"["}function ko(e,n,t,r){const i=t.createTracker(r);let l=i.move("[^");const o=t.enter("footnoteReference"),a=t.enter("reference");return l+=i.move(t.safe(t.associationId(e),{after:"]",before:l})),a(),o(),l+=i.move("]"),l}function Of(){return{enter:{gfmFootnoteCallString:Af,gfmFootnoteCall:_f,gfmFootnoteDefinitionLabelString:If,gfmFootnoteDefinition:Lf},exit:{gfmFootnoteCallString:Nf,gfmFootnoteCall:Pf,gfmFootnoteDefinitionLabelString:Df,gfmFootnoteDefinition:Mf}}}function Rf(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:ko},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,l,o){const a=l.createTracker(o);let s=a.move("[^");const u=l.enter("footnoteDefinition"),f=l.enter("label");return s+=a.move(l.safe(l.associationId(r),{before:s,after:"]"})),f(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((n?`
|
|
15
|
+
`:" ")+l.indentLines(l.containerFlow(r,a.current()),n?xo:Ff))),u(),s}}function Ff(e,n,t){return n===0?e:xo(e,n,t)}function xo(e,n,t){return(t?"":" ")+e}const Bf=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];wo.peek=Vf;function $f(){return{canContainEols:["delete"],enter:{strikethrough:Hf},exit:{strikethrough:Uf}}}function jf(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Bf}],handlers:{delete:wo}}}function Hf(e){this.enter({type:"delete",children:[]},e)}function Uf(e){this.exit(e)}function wo(e,n,t,r){const i=t.createTracker(r),l=t.enter("strikethrough");let o=i.move("~~");return o+=t.containerPhrasing(e,{...i.current(),before:o,after:"~"}),o+=i.move("~~"),l(),o}function Vf(){return"~"}function qf(e){return e.length}function Wf(e,n){const t=n||{},r=(t.align||[]).concat(),i=t.stringLength||qf,l=[],o=[],a=[],s=[];let u=0,f=-1;for(;++f<e.length;){const C=[],k=[];let x=-1;for(e[f].length>u&&(u=e[f].length);++x<e[f].length;){const T=Gf(e[f][x]);if(t.alignDelimiters!==!1){const v=i(T);k[x]=v,(s[x]===void 0||v>s[x])&&(s[x]=v)}C.push(T)}o[f]=C,a[f]=k}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)l[c]=So(r[c]);else{const C=So(r);for(;++c<u;)l[c]=C}c=-1;const h=[],p=[];for(;++c<u;){const C=l[c];let k="",x="";C===99?(k=":",x=":"):C===108?k=":":C===114&&(x=":");let T=t.alignDelimiters===!1?1:Math.max(1,s[c]-k.length-x.length);const v=k+"-".repeat(T)+x;t.alignDelimiters!==!1&&(T=k.length+T+x.length,T>s[c]&&(s[c]=T),p[c]=T),h[c]=v}o.splice(1,0,h),a.splice(1,0,p),f=-1;const b=[];for(;++f<o.length;){const C=o[f],k=a[f];c=-1;const x=[];for(;++c<u;){const T=C[c]||"";let v="",j="";if(t.alignDelimiters!==!1){const R=s[c]-(k[c]||0),S=l[c];S===114?v=" ".repeat(R):S===99?R%2?(v=" ".repeat(R/2+.5),j=" ".repeat(R/2-.5)):(v=" ".repeat(R/2),j=v):j=" ".repeat(R)}t.delimiterStart!==!1&&!c&&x.push("|"),t.padding!==!1&&!(t.alignDelimiters===!1&&T==="")&&(t.delimiterStart!==!1||c)&&x.push(" "),t.alignDelimiters!==!1&&x.push(v),x.push(T),t.alignDelimiters!==!1&&x.push(j),t.padding!==!1&&x.push(" "),(t.delimiterEnd!==!1||c!==u-1)&&x.push("|")}b.push(t.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return b.join(`
|
|
16
|
+
`)}function Gf(e){return e==null?"":String(e)}function So(e){const n=typeof e=="string"?e.codePointAt(0):0;return n===67||n===99?99:n===76||n===108?108:n===82||n===114?114:0}function Yf(e,n,t,r){const i=t.enter("blockquote"),l=t.createTracker(r);l.move("> "),l.shift(2);const o=t.indentLines(t.containerFlow(e,l.current()),Xf);return i(),o}function Xf(e,n,t){return">"+(t?"":" ")+e}function Qf(e,n){return Co(e,n.inConstruct,!0)&&!Co(e,n.notInConstruct,!1)}function Co(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let r=-1;for(;++r<n.length;)if(e.includes(n[r]))return!0;return!1}function vo(e,n,t,r){let i=-1;for(;++i<t.unsafe.length;)if(t.unsafe[i].character===`
|
|
17
|
+
`&&Qf(t.stack,t.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
18
|
+
`}function Kf(e,n){const t=String(e);let r=t.indexOf(n),i=r,l=0,o=0;if(typeof n!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++l>o&&(o=l):l=1,i=r+n.length,r=t.indexOf(n,i);return o}function Zf(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Jf(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function ep(e,n,t,r){const i=Jf(t),l=e.value||"",o=i==="`"?"GraveAccent":"Tilde";if(Zf(e,t)){const c=t.enter("codeIndented"),h=t.indentLines(l,tp);return c(),h}const a=t.createTracker(r),s=i.repeat(Math.max(Kf(l,i)+1,3)),u=t.enter("codeFenced");let f=a.move(s);if(e.lang){const c=t.enter(`codeFencedLang${o}`);f+=a.move(t.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=t.enter(`codeFencedMeta${o}`);f+=a.move(" "),f+=a.move(t.safe(e.meta,{before:f,after:`
|
|
19
19
|
`,encode:["`"],...a.current()})),c()}return f+=a.move(`
|
|
20
20
|
`),l&&(f+=a.move(l+`
|
|
21
|
-
`)),f+=a.move(s),u(),f}function
|
|
22
|
-
`,...s.current()}))),a(),e.title&&(a=t.enter(`title${l}`),u+=s.move(" "+i),u+=s.move(t.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),o(),u}function
|
|
21
|
+
`)),f+=a.move(s),u(),f}function tp(e,n,t){return(t?"":" ")+e}function Cr(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function np(e,n,t,r){const i=Cr(t),l=i==='"'?"Quote":"Apostrophe",o=t.enter("definition");let a=t.enter("label");const s=t.createTracker(r);let u=s.move("[");return u+=s.move(t.safe(t.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(t.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=t.enter("destinationRaw"),u+=s.move(t.safe(e.url,{before:u,after:e.title?" ":`
|
|
22
|
+
`,...s.current()}))),a(),e.title&&(a=t.enter(`title${l}`),u+=s.move(" "+i),u+=s.move(t.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),o(),u}function rp(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function Kt(e){return"&#x"+e.toString(16).toUpperCase()+";"}function kn(e,n,t){const r=It(e),i=It(n);return r===void 0?i===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Eo.peek=ip;function Eo(e,n,t,r){const i=rp(t),l=t.enter("emphasis"),o=t.createTracker(r),a=o.move(i);let s=o.move(t.containerPhrasing(e,{after:i,before:a,...o.current()}));const u=s.charCodeAt(0),f=kn(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=Kt(u)+s.slice(1));const c=s.charCodeAt(s.length-1),h=kn(r.after.charCodeAt(0),c,i);h.inside&&(s=s.slice(0,-1)+Kt(c));const p=o.move(i);return l(),t.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},a+s+p}function ip(e,n,t){return t.options.emphasis||"*"}function op(e,n){let t=!1;return ar(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return t=!0,lr}),!!((!e.depth||e.depth<3)&&Xn(e)&&(n.options.setext||t))}function lp(e,n,t,r){const i=Math.max(Math.min(6,e.depth||1),1),l=t.createTracker(r);if(op(e,t)){const f=t.enter("headingSetext"),c=t.enter("phrasing"),h=t.containerPhrasing(e,{...l.current(),before:`
|
|
23
23
|
`,after:`
|
|
24
24
|
`});return c(),f(),h+`
|
|
25
25
|
`+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
|
|
26
26
|
`))+1))}const o="#".repeat(i),a=t.enter("headingAtx"),s=t.enter("phrasing");l.move(o+" ");let u=t.containerPhrasing(e,{before:"# ",after:`
|
|
27
|
-
`,...l.current()});return/^[\t ]/.test(u)&&(u=
|
|
28
|
-
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:o,tableCell:s,tableRow:a}};function o(p,
|
|
29
|
-
`))}function s(p,y,S,E){const x=S.enter("tableCell"),A=S.enter("phrasing"),v=S.containerPhrasing(p,{...E,before:l,after:l});return A(),x(),v}function u(p,y){return Uf(p,{align:y,alignDelimiters:r,padding:t,stringLength:i})}function f(p,y,S){const E=p.children;let x=-1;const A=[],v=y.enter("table");for(;++x<E.length;)A[x]=c(E[x],y,S);return v(),A}function c(p,y,S){const E=p.children;let x=-1;const A=[],v=y.enter("tableRow");for(;++x<E.length;)A[x]=s(E[x],p,y,S);return v(),A}function h(p,y,S){let E=Do.inlineCode(p,y,S);return S.stack.includes("tableCell")&&(E=E.replace(/\|/g,"\\$&")),E}}function _p(){return{exit:{taskListCheckValueChecked:zo,taskListCheckValueUnchecked:zo,paragraph:Lp}}}function Ip(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Pp}}}function zo(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Lp(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let l=-1,o;for(;++l<i.length;){const a=i[l];if(a.type==="paragraph"){o=a;break}}o===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Pp(e,n,t,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);l&&a.move(o);let s=Do.listItem(e,n,t,{...r,...a.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+o}}function Dp(){return[cf(),Pf(),Nf(),wp(),_p()]}function Op(e){return{extensions:[ff(),Df(e),Mf(),Ap(e),Ip()]}}const zp={tokenize:jp,partial:!0},No={tokenize:Up,partial:!0},Mo={tokenize:$p,partial:!0},Ro={tokenize:Hp,partial:!0},Np={tokenize:Vp,partial:!0},Fo={name:"wwwAutolink",tokenize:Fp,previous:jo},Bo={name:"protocolAutolink",tokenize:Bp,previous:Uo},Qe={name:"emailAutolink",tokenize:Rp,previous:$o},Ge={};function Mp(){return{text:Ge}}let gt=48;for(;gt<123;)Ge[gt]=Qe,gt++,gt===58?gt=65:gt===91&&(gt=97);Ge[43]=Qe,Ge[45]=Qe,Ge[46]=Qe,Ge[95]=Qe,Ge[72]=[Qe,Bo],Ge[104]=[Qe,Bo],Ge[87]=[Qe,Fo],Ge[119]=[Qe,Fo];function Rp(e,n,t){const r=this;let i,l;return o;function o(c){return!Cr(c)||!$o.call(r,r.previous)||vr(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Cr(c)?(e.consume(c),a):c===64?(e.consume(c),s):t(c)}function s(c){return c===46?e.check(Np,f,u)(c):c===45||c===95||Ae(c)?(l=!0,e.consume(c),s):f(c)}function u(c){return e.consume(c),i=!0,s}function f(c){return l&&i&&Le(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Fp(e,n,t){const r=this;return i;function i(o){return o!==87&&o!==119||!jo.call(r,r.previous)||vr(r.events)?t(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(zp,e.attempt(No,e.attempt(Mo,l),t),t)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function Bp(e,n,t){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&Uo.call(r,r.previous)&&!vr(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):t(c)}function a(c){if(Le(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(c),s}return t(c)}function s(c){return c===47?(e.consume(c),l?u:(l=!0,s)):t(c)}function u(c){return c===null||ln(c)||le(c)||mt(c)||an(c)?t(c):e.attempt(No,e.attempt(Mo,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function jp(e,n,t){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),l):t(o)}function l(o){return o===null?t(o):n(o)}}function Up(e,n,t){let r,i,l;return o;function o(u){return u===46||u===95?e.check(Ro,s,a)(u):u===null||le(u)||mt(u)||u!==45&&an(u)?s(u):(l=!0,e.consume(u),o)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function s(u){return i||r||!l?t(u):n(u)}}function $p(e,n){let t=0,r=0;return i;function i(o){return o===40?(t++,e.consume(o),i):o===41&&r<t?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(Ro,n,l)(o):o===null||le(o)||mt(o)?n(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function Hp(e,n,t){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),l):a===93?(e.consume(a),i):a===60||a===null||le(a)||mt(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||le(a)||mt(a)?n(a):r(a)}function l(a){return Le(a)?o(a):t(a)}function o(a){return a===59?(e.consume(a),r):Le(a)?(e.consume(a),o):t(a)}}function Vp(e,n,t){return r;function r(l){return e.consume(l),i}function i(l){return Ae(l)?t(l):n(l)}}function jo(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||le(e)}function Uo(e){return!Le(e)}function $o(e){return!(e===47||Cr(e))}function Cr(e){return e===43||e===45||e===46||e===95||Ae(e)}function vr(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const qp={tokenize:Jp,partial:!0};function Wp(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Kp,continuation:{tokenize:Qp},exit:Zp}},text:{91:{name:"gfmFootnoteCall",tokenize:Xp},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Gp,resolveTo:Yp}}}}function Gp(e,n,t){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!o||!o._balanced)return t(s);const u=$e(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!l.includes(u.slice(1))?t(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),n(s))}}function Yp(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},a=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",l,n],["enter",o,n],["exit",o,n],["exit",l,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...a),e}function Xp(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(l>999||c===93&&!o||c===null||c===91||le(c))return t(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes($e(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return le(c)||(o=!0),l++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,u):u(c)}}function Kp(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,a;return s;function s(y){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(y){return y===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(y)}function f(y){if(o>999||y===93&&!a||y===null||y===91||le(y))return t(y);if(y===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return l=$e(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(y),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return le(y)||(a=!0),o++,e.consume(y),y===92?c:f}function c(y){return y===91||y===92||y===93?(e.consume(y),o++,f):f(y)}function h(y){return y===58?(e.enter("definitionMarker"),e.consume(y),e.exit("definitionMarker"),i.includes(l)||i.push(l),ne(e,p,"gfmFootnoteDefinitionWhitespace")):t(y)}function p(y){return n(y)}}function Qp(e,n,t){return e.check(Ut,n,e.attempt(qp,n,t))}function Zp(e){e.exit("gfmFootnoteDefinition")}function Jp(e,n,t){const r=this;return ne(e,i,"gfmFootnoteDefinitionIndent",5);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(l):t(l)}}function eh(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let u=s;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[s][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[s][1].end)},c={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[s][1].start)},h=[["enter",f,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",c,a]],p=a.parser.constructs.insideSpan.null;p&&Re(h,h.length,0,sn(p,o.slice(u+1,s),a)),Re(h,h.length,0,[["exit",c,a],["enter",o[s][1],a],["exit",o[s][1],a],["exit",f,a]]),Re(o,u-1,s-u+3,h),s=u+h.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function l(o,a,s){const u=this.previous,f=this.events;let c=0;return h;function h(y){return u===126&&f[f.length-1][1].type!=="characterEscape"?s(y):(o.enter("strikethroughSequenceTemporary"),p(y))}function p(y){const S=Tt(u);if(y===126)return c>1?s(y):(o.consume(y),c++,p);if(c<2&&!t)return s(y);const E=o.exit("strikethroughSequenceTemporary"),x=Tt(y);return E._open=!x||x===2&&!!S,E._close=!S||S===2&&!!x,a(y)}}}class th{constructor(){this.map=[]}add(n,t,r){nh(this,n,t,r)}consume(n){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const l of i)n.push(l);i=r.pop()}this.map.length=0}}function nh(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function rh(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function ih(){return{flow:{null:{name:"table",tokenize:oh,resolveAll:lh}}}}function oh(e,n,t){const r=this;let i=0,l=0,o;return a;function a(b){let O=r.events.length-1;for(;O>-1;){const R=r.events[O][1].type;if(R==="lineEnding"||R==="linePrefix")O--;else break}const P=O>-1?r.events[O][1].type:null,X=P==="tableHead"||P==="tableRow"?w:s;return X===w&&r.parser.lazy[r.now().line]?t(b):X(b)}function s(b){return e.enter("tableHead"),e.enter("tableRow"),u(b)}function u(b){return b===124||(o=!0,l+=1),f(b)}function f(b){return b===null?t(b):U(b)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),p):t(b):J(b)?ne(e,f,"whitespace")(b):(l+=1,o&&(o=!1,i+=1),b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(b)))}function c(b){return b===null||b===124||le(b)?(e.exit("data"),f(b)):(e.consume(b),b===92?h:c)}function h(b){return b===92||b===124?(e.consume(b),c):c(b)}function p(b){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(b):(e.enter("tableDelimiterRow"),o=!1,J(b)?ne(e,y,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(b):y(b))}function y(b){return b===45||b===58?E(b):b===124?(o=!0,e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),S):M(b)}function S(b){return J(b)?ne(e,E,"whitespace")(b):E(b)}function E(b){return b===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),x):b===45?(l+=1,x(b)):b===null||U(b)?$(b):M(b)}function x(b){return b===45?(e.enter("tableDelimiterFiller"),A(b)):M(b)}function A(b){return b===45?(e.consume(b),A):b===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(b),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(b))}function v(b){return J(b)?ne(e,$,"whitespace")(b):$(b)}function $(b){return b===124?y(b):b===null||U(b)?!o||i!==l?M(b):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(b)):M(b)}function M(b){return t(b)}function w(b){return e.enter("tableRow"),H(b)}function H(b){return b===124?(e.enter("tableCellDivider"),e.consume(b),e.exit("tableCellDivider"),H):b===null||U(b)?(e.exit("tableRow"),n(b)):J(b)?ne(e,H,"whitespace")(b):(e.enter("data"),C(b))}function C(b){return b===null||b===124||le(b)?(e.exit("data"),H(b)):(e.consume(b),b===92?V:C)}function V(b){return b===92||b===124?(e.consume(b),C):C(b)}}function lh(e,n){let t=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],a=!1,s=0,u,f,c;const h=new th;for(;++t<e.length;){const p=e[t],y=p[1];p[0]==="enter"?y.type==="tableHead"?(a=!1,s!==0&&(Ho(h,n,s,u,f),f=void 0,s=0),u={type:"table",start:Object.assign({},y.start),end:Object.assign({},y.end)},h.add(t,0,[["enter",u,n]])):y.type==="tableRow"||y.type==="tableDelimiterRow"?(r=!0,c=void 0,l=[0,0,0,0],o=[0,t+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},y.start),end:Object.assign({},y.end)},h.add(t,0,[["enter",f,n]])),i=y.type==="tableDelimiterRow"?2:f?3:1):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],c=xn(h,n,l,i,void 0,c),l=[0,0,0,0]),o[2]=t)):y.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],c=xn(h,n,l,i,void 0,c)),l=o,o=[l[1],t,0,0])):y.type==="tableHead"?(a=!0,s=t):y.type==="tableRow"||y.type==="tableDelimiterRow"?(s=t,l[1]!==0?(o[0]=o[1],c=xn(h,n,l,i,t,c)):o[1]!==0&&(c=xn(h,n,o,i,t,c)),i=0):i&&(y.type==="data"||y.type==="tableDelimiterMarker"||y.type==="tableDelimiterFiller")&&(o[3]=t)}for(s!==0&&Ho(h,n,s,u,f),h.consume(n.events),t=-1;++t<n.events.length;){const p=n.events[t];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=rh(n.events,t))}return e}function xn(e,n,t,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(l.end=Object.assign({},_t(n.events,t[0])),e.add(t[0],0,[["exit",l,n]]));const s=_t(n.events,t[1]);if(l={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",l,n]]),t[2]!==0){const u=_t(n.events,t[2]),f=_t(n.events,t[3]),c={type:a,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const h=n.events[t[2]],p=n.events[t[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",t[3]>t[2]+1){const y=t[2]+1,S=t[3]-t[2]-1;e.add(y,S,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(l.end=Object.assign({},_t(n.events,i)),e.add(i,0,[["exit",l,n]]),l=void 0),l}function Ho(e,n,t,r,i){const l=[],o=_t(n.events,t);i&&(i.end=Object.assign({},o),l.push(["exit",i,n])),r.end=Object.assign({},o),l.push(["exit",r,n]),e.add(t+1,0,l)}function _t(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const ah={name:"tasklistCheck",tokenize:uh};function sh(){return{text:{91:ah}}}function uh(e,n,t){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return le(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):t(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(s)}function a(s){return U(s)?n(s):J(s)?e.check({tokenize:ch},n,t)(s):t(s)}}function ch(e,n,t){return ne(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function fh(e){return Ei([Mp(),Wp(),eh(e),ih(),sh()])}const ph={};function hh(e){const n=this,t=e||ph,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(fh(t)),l.push(Dp()),o.push(Op(t))}/**
|
|
27
|
+
`,...l.current()});return/^[\t ]/.test(u)&&(u=Kt(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,t.options.closeAtx&&(u+=" "+o),s(),a(),u}To.peek=ap;function To(e){return e.value||""}function ap(){return"<"}Ao.peek=sp;function Ao(e,n,t,r){const i=Cr(t),l=i==='"'?"Quote":"Apostrophe",o=t.enter("image");let a=t.enter("label");const s=t.createTracker(r);let u=s.move("![");return u+=s.move(t.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=t.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(t.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=t.enter("destinationRaw"),u+=s.move(t.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=t.enter(`title${l}`),u+=s.move(" "+i),u+=s.move(t.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),u+=s.move(")"),o(),u}function sp(){return"!"}_o.peek=up;function _o(e,n,t,r){const i=e.referenceType,l=t.enter("imageReference");let o=t.enter("label");const a=t.createTracker(r);let s=a.move("![");const u=t.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),o();const f=t.stack;t.stack=[],o=t.enter("reference");const c=t.safe(t.associationId(e),{before:s,after:"]",...a.current()});return o(),t.stack=f,l(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function up(){return"!"}Io.peek=cp;function Io(e,n,t){let r=e.value||"",i="`",l=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<t.unsafe.length;){const o=t.unsafe[l],a=t.compilePattern(o);let s;if(o.atBreak)for(;s=a.exec(r);){let u=s.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(s.index+1)}}return i+r+i}function cp(){return"`"}function Lo(e,n){const t=Xn(e);return!!(!n.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(t===e.url||"mailto:"+t===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}No.peek=fp;function No(e,n,t,r){const i=Cr(t),l=i==='"'?"Quote":"Apostrophe",o=t.createTracker(r);let a,s;if(Lo(e,t)){const f=t.stack;t.stack=[],a=t.enter("autolink");let c=o.move("<");return c+=o.move(t.containerPhrasing(e,{before:c,after:">",...o.current()})),c+=o.move(">"),a(),t.stack=f,c}a=t.enter("link"),s=t.enter("label");let u=o.move("[");return u+=o.move(t.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=t.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(t.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(s=t.enter("destinationRaw"),u+=o.move(t.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),s(),e.title&&(s=t.enter(`title${l}`),u+=o.move(" "+i),u+=o.move(t.safe(e.title,{before:u,after:i,...o.current()})),u+=o.move(i),s()),u+=o.move(")"),a(),u}function fp(e,n,t){return Lo(e,t)?"<":"["}Po.peek=pp;function Po(e,n,t,r){const i=e.referenceType,l=t.enter("linkReference");let o=t.enter("label");const a=t.createTracker(r);let s=a.move("[");const u=t.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),o();const f=t.stack;t.stack=[],o=t.enter("reference");const c=t.safe(t.associationId(e),{before:s,after:"]",...a.current()});return o(),t.stack=f,l(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function pp(){return"["}function vr(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function hp(e){const n=vr(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function dp(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Do(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function mp(e,n,t,r){const i=t.enter("list"),l=t.bulletCurrent;let o=e.ordered?dp(t):vr(t);const a=e.ordered?o==="."?")":".":hp(t);let s=n&&t.bulletLastUsed?o===t.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&f&&(!f.children||!f.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(s=!0),Do(t)===o&&f){let c=-1;for(;++c<e.children.length;){const h=e.children[c];if(h&&h.type==="listItem"&&h.children&&h.children[0]&&h.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(o=a),t.bulletCurrent=o;const u=t.containerFlow(e,r);return t.bulletLastUsed=o,t.bulletCurrent=l,i(),u}function gp(e){const n=e.options.listItemIndent||"one";if(n!=="tab"&&n!=="one"&&n!=="mixed")throw new Error("Cannot serialize items with `"+n+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return n}function bp(e,n,t,r){const i=gp(t);let l=t.bulletCurrent||vr(t);n&&n.type==="list"&&n.ordered&&(l=(typeof n.start=="number"&&n.start>-1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+l);let o=l.length+1;(i==="tab"||i==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(o=Math.ceil(o/4)*4);const a=t.createTracker(r);a.move(l+" ".repeat(o-l.length)),a.shift(o);const s=t.enter("listItem"),u=t.indentLines(t.containerFlow(e,a.current()),f);return s(),u;function f(c,h,p){return h?(p?"":" ".repeat(o))+c:(p?l:l+" ".repeat(o-l.length))+c}}function yp(e,n,t,r){const i=t.enter("paragraph"),l=t.enter("phrasing"),o=t.containerPhrasing(e,r);return l(),i(),o}const kp=gn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function xp(e,n,t,r){return(e.children.some(function(o){return kp(o)})?t.containerPhrasing:t.containerFlow).call(t,e,r)}function wp(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}Mo.peek=Sp;function Mo(e,n,t,r){const i=wp(t),l=t.enter("strong"),o=t.createTracker(r),a=o.move(i+i);let s=o.move(t.containerPhrasing(e,{after:i,before:a,...o.current()}));const u=s.charCodeAt(0),f=kn(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=Kt(u)+s.slice(1));const c=s.charCodeAt(s.length-1),h=kn(r.after.charCodeAt(0),c,i);h.inside&&(s=s.slice(0,-1)+Kt(c));const p=o.move(i+i);return l(),t.attentionEncodeSurroundingInfo={after:h.outside,before:f.outside},a+s+p}function Sp(e,n,t){return t.options.strong||"*"}function Cp(e,n,t,r){return t.safe(e.value,r)}function vp(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function Ep(e,n,t){const r=(Do(t)+(t.options.ruleSpaces?" ":"")).repeat(vp(t));return t.options.ruleSpaces?r.slice(0,-1):r}const zo={blockquote:Yf,break:vo,code:ep,definition:np,emphasis:Eo,hardBreak:vo,heading:lp,html:To,image:Ao,imageReference:_o,inlineCode:Io,link:No,linkReference:Po,list:mp,listItem:bp,paragraph:yp,root:xp,strong:Mo,text:Cp,thematicBreak:Ep};function Tp(){return{enter:{table:Ap,tableData:Oo,tableHeader:Oo,tableRow:Ip},exit:{codeText:Lp,table:_p,tableData:Er,tableHeader:Er,tableRow:Er}}}function Ap(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function _p(e){this.exit(e),this.data.inTable=void 0}function Ip(e){this.enter({type:"tableRow",children:[]},e)}function Er(e){this.exit(e)}function Oo(e){this.enter({type:"tableCell",children:[]},e)}function Lp(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,Np));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function Np(e,n){return n==="|"?n:e}function Pp(e){const n=e||{},t=n.tableCellPadding,r=n.tablePipeAlign,i=n.stringLength,l=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
28
|
+
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:o,tableCell:s,tableRow:a}};function o(p,b,C,k){return u(f(p,C,k),p.align)}function a(p,b,C,k){const x=c(p,C,k),T=u([x]);return T.slice(0,T.indexOf(`
|
|
29
|
+
`))}function s(p,b,C,k){const x=C.enter("tableCell"),T=C.enter("phrasing"),v=C.containerPhrasing(p,{...k,before:l,after:l});return T(),x(),v}function u(p,b){return Wf(p,{align:b,alignDelimiters:r,padding:t,stringLength:i})}function f(p,b,C){const k=p.children;let x=-1;const T=[],v=b.enter("table");for(;++x<k.length;)T[x]=c(k[x],b,C);return v(),T}function c(p,b,C){const k=p.children;let x=-1;const T=[],v=b.enter("tableRow");for(;++x<k.length;)T[x]=s(k[x],p,b,C);return v(),T}function h(p,b,C){let k=zo.inlineCode(p,b,C);return C.stack.includes("tableCell")&&(k=k.replace(/\|/g,"\\$&")),k}}function Dp(){return{exit:{taskListCheckValueChecked:Ro,taskListCheckValueUnchecked:Ro,paragraph:zp}}}function Mp(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Op}}}function Ro(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function zp(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let l=-1,o;for(;++l<i.length;){const a=i[l];if(a.type==="paragraph"){o=a;break}}o===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Op(e,n,t,r){const i=e.children[0],l=typeof e.checked=="boolean"&&i&&i.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);l&&a.move(o);let s=zo.listItem(e,n,t,{...r,...a.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+o}}function Rp(){return[mf(),Of(),$f(),Tp(),Dp()]}function Fp(e){return{extensions:[gf(),Rf(e),jf(),Pp(e),Mp()]}}const Bp={tokenize:qp,partial:!0},Fo={tokenize:Wp,partial:!0},Bo={tokenize:Gp,partial:!0},$o={tokenize:Yp,partial:!0},$p={tokenize:Xp,partial:!0},jo={name:"wwwAutolink",tokenize:Up,previous:Uo},Ho={name:"protocolAutolink",tokenize:Vp,previous:Vo},tt={name:"emailAutolink",tokenize:Hp,previous:qo},Ke={};function jp(){return{text:Ke}}let yt=48;for(;yt<123;)Ke[yt]=tt,yt++,yt===58?yt=65:yt===91&&(yt=97);Ke[43]=tt,Ke[45]=tt,Ke[46]=tt,Ke[95]=tt,Ke[72]=[tt,Ho],Ke[104]=[tt,Ho],Ke[87]=[tt,jo],Ke[119]=[tt,jo];function Hp(e,n,t){const r=this;let i,l;return o;function o(c){return!Tr(c)||!qo.call(r,r.previous)||Ar(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Tr(c)?(e.consume(c),a):c===64?(e.consume(c),s):t(c)}function s(c){return c===46?e.check($p,f,u)(c):c===45||c===95||Pe(c)?(l=!0,e.consume(c),s):f(c)}function u(c){return e.consume(c),i=!0,s}function f(c){return l&&i&&Me(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Up(e,n,t){const r=this;return i;function i(o){return o!==87&&o!==119||!Uo.call(r,r.previous)||Ar(r.events)?t(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Bp,e.attempt(Fo,e.attempt(Bo,l),t),t)(o))}function l(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(o)}}function Vp(e,n,t){const r=this;let i="",l=!1;return o;function o(c){return(c===72||c===104)&&Vo.call(r,r.previous)&&!Ar(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):t(c)}function a(c){if(Me(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const h=i.toLowerCase();if(h==="http"||h==="https")return e.consume(c),s}return t(c)}function s(c){return c===47?(e.consume(c),l?u:(l=!0,s)):t(c)}function u(c){return c===null||an(c)||ue(c)||bt(c)||sn(c)?t(c):e.attempt(Fo,e.attempt(Bo,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function qp(e,n,t){let r=0;return i;function i(o){return(o===87||o===119)&&r<3?(r++,e.consume(o),i):o===46&&r===3?(e.consume(o),l):t(o)}function l(o){return o===null?t(o):n(o)}}function Wp(e,n,t){let r,i,l;return o;function o(u){return u===46||u===95?e.check($o,s,a)(u):u===null||ue(u)||bt(u)||u!==45&&sn(u)?s(u):(l=!0,e.consume(u),o)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),o}function s(u){return i||r||!l?t(u):n(u)}}function Gp(e,n){let t=0,r=0;return i;function i(o){return o===40?(t++,e.consume(o),i):o===41&&r<t?l(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check($o,n,l)(o):o===null||ue(o)||bt(o)?n(o):(e.consume(o),i)}function l(o){return o===41&&r++,e.consume(o),i}}function Yp(e,n,t){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),l):a===93?(e.consume(a),i):a===60||a===null||ue(a)||bt(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||ue(a)||bt(a)?n(a):r(a)}function l(a){return Me(a)?o(a):t(a)}function o(a){return a===59?(e.consume(a),r):Me(a)?(e.consume(a),o):t(a)}}function Xp(e,n,t){return r;function r(l){return e.consume(l),i}function i(l){return Pe(l)?t(l):n(l)}}function Uo(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||ue(e)}function Vo(e){return!Me(e)}function qo(e){return!(e===47||Tr(e))}function Tr(e){return e===43||e===45||e===46||e===95||Pe(e)}function Ar(e){let n=e.length,t=!1;for(;n--;){const r=e[n][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){t=!0;break}if(r._gfmAutolinkLiteralWalkedInto){t=!1;break}}return e.length>0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const Qp={tokenize:ih,partial:!0};function Kp(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:th,continuation:{tokenize:nh},exit:rh}},text:{91:{name:"gfmFootnoteCall",tokenize:eh},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Zp,resolveTo:Jp}}}}function Zp(e,n,t){const r=this;let i=r.events.length;const l=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){o=s;break}if(s.type==="gfmFootnoteCall"||s.type==="labelLink"||s.type==="label"||s.type==="image"||s.type==="link")break}return a;function a(s){if(!o||!o._balanced)return t(s);const u=Ge(r.sliceSerialize({start:o.end,end:r.now()}));return u.codePointAt(0)!==94||!l.includes(u.slice(1))?t(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),n(s))}}function Jp(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},a=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",l,n],["enter",o,n],["exit",o,n],["exit",l,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...a),e}function eh(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l=0,o;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?t(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(l>999||c===93&&!o||c===null||c===91||ue(c))return t(c);if(c===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(Ge(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return ue(c)||(o=!0),l++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),l++,u):u(c)}}function th(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l,o=0,a;return s;function s(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(b)}function f(b){if(o>999||b===93&&!a||b===null||b===91||ue(b))return t(b);if(b===93){e.exit("chunkString");const C=e.exit("gfmFootnoteDefinitionLabelString");return l=Ge(r.sliceSerialize(C)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return ue(b)||(a=!0),o++,e.consume(b),b===92?c:f}function c(b){return b===91||b===92||b===93?(e.consume(b),o++,f):f(b)}function h(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(l)||i.push(l),ie(e,p,"gfmFootnoteDefinitionWhitespace")):t(b)}function p(b){return n(b)}}function nh(e,n,t){return e.check(qt,n,e.attempt(Qp,n,t))}function rh(e){e.exit("gfmFootnoteDefinition")}function ih(e,n,t){const r=this;return ie(e,i,"gfmFootnoteDefinitionIndent",5);function i(l){const o=r.events[r.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(l):t(l)}}function oh(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:l,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(o,a){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let u=s;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[s][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[s][1].end)},c={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[s][1].start)},h=[["enter",f,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",c,a]],p=a.parser.constructs.insideSpan.null;p&&qe(h,h.length,0,un(p,o.slice(u+1,s),a)),qe(h,h.length,0,[["exit",c,a],["enter",o[s][1],a],["exit",o[s][1],a],["exit",f,a]]),qe(o,u-1,s-u+3,h),s=u+h.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function l(o,a,s){const u=this.previous,f=this.events;let c=0;return h;function h(b){return u===126&&f[f.length-1][1].type!=="characterEscape"?s(b):(o.enter("strikethroughSequenceTemporary"),p(b))}function p(b){const C=It(u);if(b===126)return c>1?s(b):(o.consume(b),c++,p);if(c<2&&!t)return s(b);const k=o.exit("strikethroughSequenceTemporary"),x=It(b);return k._open=!x||x===2&&!!C,k._close=!C||C===2&&!!x,a(b)}}}class lh{constructor(){this.map=[]}add(n,t,r){ah(this,n,t,r)}consume(n){if(this.map.sort(function(l,o){return l[0]-o[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const l of i)n.push(l);i=r.pop()}this.map.length=0}}function ah(e,n,t,r){let i=0;if(!(t===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===n){e.map[i][1]+=t,e.map[i][2].push(...r);return}i+=1}e.map.push([n,t,r])}}function sh(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const l=r.length-1;r[l]=r[l]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function uh(){return{flow:{null:{name:"table",tokenize:ch,resolveAll:fh}}}}function ch(e,n,t){const r=this;let i=0,l=0,o;return a;function a(y){let D=r.events.length-1;for(;D>-1;){const M=r.events[D][1].type;if(M==="lineEnding"||M==="linePrefix")D--;else break}const N=D>-1?r.events[D][1].type:null,G=N==="tableHead"||N==="tableRow"?S:s;return G===S&&r.parser.lazy[r.now().line]?t(y):G(y)}function s(y){return e.enter("tableHead"),e.enter("tableRow"),u(y)}function u(y){return y===124||(o=!0,l+=1),f(y)}function f(y){return y===null?t(y):H(y)?l>1?(l=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):t(y):ee(y)?ie(e,f,"whitespace")(y):(l+=1,o&&(o=!1,i+=1),y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),o=!0,f):(e.enter("data"),c(y)))}function c(y){return y===null||y===124||ue(y)?(e.exit("data"),f(y)):(e.consume(y),y===92?h:c)}function h(y){return y===92||y===124?(e.consume(y),c):c(y)}function p(y){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(y):(e.enter("tableDelimiterRow"),o=!1,ee(y)?ie(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):b(y))}function b(y){return y===45||y===58?k(y):y===124?(o=!0,e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),C):R(y)}function C(y){return ee(y)?ie(e,k,"whitespace")(y):k(y)}function k(y){return y===58?(l+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),x):y===45?(l+=1,x(y)):y===null||H(y)?j(y):R(y)}function x(y){return y===45?(e.enter("tableDelimiterFiller"),T(y)):R(y)}function T(y){return y===45?(e.consume(y),T):y===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),v):(e.exit("tableDelimiterFiller"),v(y))}function v(y){return ee(y)?ie(e,j,"whitespace")(y):j(y)}function j(y){return y===124?b(y):y===null||H(y)?!o||i!==l?R(y):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(y)):R(y)}function R(y){return t(y)}function S(y){return e.enter("tableRow"),q(y)}function q(y){return y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),q):y===null||H(y)?(e.exit("tableRow"),n(y)):ee(y)?ie(e,q,"whitespace")(y):(e.enter("data"),E(y))}function E(y){return y===null||y===124||ue(y)?(e.exit("data"),q(y)):(e.consume(y),y===92?U:E)}function U(y){return y===92||y===124?(e.consume(y),E):E(y)}}function fh(e,n){let t=-1,r=!0,i=0,l=[0,0,0,0],o=[0,0,0,0],a=!1,s=0,u,f,c;const h=new lh;for(;++t<e.length;){const p=e[t],b=p[1];p[0]==="enter"?b.type==="tableHead"?(a=!1,s!==0&&(Wo(h,n,s,u,f),f=void 0,s=0),u={type:"table",start:Object.assign({},b.start),end:Object.assign({},b.end)},h.add(t,0,[["enter",u,n]])):b.type==="tableRow"||b.type==="tableDelimiterRow"?(r=!0,c=void 0,l=[0,0,0,0],o=[0,t+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},b.start),end:Object.assign({},b.end)},h.add(t,0,[["enter",f,n]])),i=b.type==="tableDelimiterRow"?2:f?3:1):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")?(r=!1,o[2]===0&&(l[1]!==0&&(o[0]=o[1],c=xn(h,n,l,i,void 0,c),l=[0,0,0,0]),o[2]=t)):b.type==="tableCellDivider"&&(r?r=!1:(l[1]!==0&&(o[0]=o[1],c=xn(h,n,l,i,void 0,c)),l=o,o=[l[1],t,0,0])):b.type==="tableHead"?(a=!0,s=t):b.type==="tableRow"||b.type==="tableDelimiterRow"?(s=t,l[1]!==0?(o[0]=o[1],c=xn(h,n,l,i,t,c)):o[1]!==0&&(c=xn(h,n,o,i,t,c)),i=0):i&&(b.type==="data"||b.type==="tableDelimiterMarker"||b.type==="tableDelimiterFiller")&&(o[3]=t)}for(s!==0&&Wo(h,n,s,u,f),h.consume(n.events),t=-1;++t<n.events.length;){const p=n.events[t];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=sh(n.events,t))}return e}function xn(e,n,t,r,i,l){const o=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(l.end=Object.assign({},Nt(n.events,t[0])),e.add(t[0],0,[["exit",l,n]]));const s=Nt(n.events,t[1]);if(l={type:o,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",l,n]]),t[2]!==0){const u=Nt(n.events,t[2]),f=Nt(n.events,t[3]),c={type:a,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(t[2],0,[["enter",c,n]]),r!==2){const h=n.events[t[2]],p=n.events[t[3]];if(h[1].end=Object.assign({},p[1].end),h[1].type="chunkText",h[1].contentType="text",t[3]>t[2]+1){const b=t[2]+1,C=t[3]-t[2]-1;e.add(b,C,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(l.end=Object.assign({},Nt(n.events,i)),e.add(i,0,[["exit",l,n]]),l=void 0),l}function Wo(e,n,t,r,i){const l=[],o=Nt(n.events,t);i&&(i.end=Object.assign({},o),l.push(["exit",i,n])),r.end=Object.assign({},o),l.push(["exit",r,n]),e.add(t+1,0,l)}function Nt(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const ph={name:"tasklistCheck",tokenize:dh};function hh(){return{text:{91:ph}}}function dh(e,n,t){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?t(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),l)}function l(s){return ue(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),o):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),o):t(s)}function o(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(s)}function a(s){return H(s)?n(s):ee(s)?e.check({tokenize:mh},n,t)(s):t(s)}}function mh(e,n,t){return ie(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function gh(e){return Ti([jp(),Kp(),oh(e),uh(),hh()])}const bh={};function yh(e){const n=this,t=e||bh,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(gh(t)),l.push(Rp()),o.push(Fp(t))}/**
|
|
30
30
|
* @license lucide-react v0.511.0 - ISC
|
|
31
31
|
*
|
|
32
32
|
* This source code is licensed under the ISC license.
|
|
33
33
|
* See the LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/const
|
|
34
|
+
*/const kh=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xh=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(n,t,r)=>r?r.toUpperCase():t.toLowerCase()),Go=e=>{const n=xh(e);return n.charAt(0).toUpperCase()+n.slice(1)},Yo=(...e)=>e.filter((n,t,r)=>!!n&&n.trim()!==""&&r.indexOf(n)===t).join(" ").trim(),wh=e=>{for(const n in e)if(n.startsWith("aria-")||n==="role"||n==="title")return!0};/**
|
|
35
35
|
* @license lucide-react v0.511.0 - ISC
|
|
36
36
|
*
|
|
37
37
|
* This source code is licensed under the ISC license.
|
|
38
38
|
* See the LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/var
|
|
39
|
+
*/var Sh={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
40
40
|
* @license lucide-react v0.511.0 - ISC
|
|
41
41
|
*
|
|
42
42
|
* This source code is licensed under the ISC license.
|
|
43
43
|
* See the LICENSE file in the root directory of this source tree.
|
|
44
|
-
*/const
|
|
44
|
+
*/const Ch=Q.forwardRef(({color:e="currentColor",size:n=24,strokeWidth:t=2,absoluteStrokeWidth:r,className:i="",children:l,iconNode:o,...a},s)=>Q.createElement("svg",{ref:s,...Sh,width:n,height:n,stroke:e,strokeWidth:r?Number(t)*24/Number(n):t,className:Yo("lucide",i),...!l&&!wh(a)&&{"aria-hidden":"true"},...a},[...o.map(([u,f])=>Q.createElement(u,f)),...Array.isArray(l)?l:[l]]));/**
|
|
45
45
|
* @license lucide-react v0.511.0 - ISC
|
|
46
46
|
*
|
|
47
47
|
* This source code is licensed under the ISC license.
|
|
48
48
|
* See the LICENSE file in the root directory of this source tree.
|
|
49
|
-
*/const
|
|
49
|
+
*/const me=(e,n)=>{const t=Q.forwardRef(({className:r,...i},l)=>Q.createElement(Ch,{ref:l,iconNode:n,className:Yo(`lucide-${kh(Go(e))}`,`lucide-${e}`,r),...i}));return t.displayName=Go(e),t};/**
|
|
50
50
|
* @license lucide-react v0.511.0 - ISC
|
|
51
51
|
*
|
|
52
52
|
* This source code is licensed under the ISC license.
|
|
53
53
|
* See the LICENSE file in the root directory of this source tree.
|
|
54
|
-
*/const
|
|
54
|
+
*/const vh=me("bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);/**
|
|
55
55
|
* @license lucide-react v0.511.0 - ISC
|
|
56
56
|
*
|
|
57
57
|
* This source code is licensed under the ISC license.
|
|
58
58
|
* See the LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/const
|
|
59
|
+
*/const Xo=me("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
60
60
|
* @license lucide-react v0.511.0 - ISC
|
|
61
61
|
*
|
|
62
62
|
* This source code is licensed under the ISC license.
|
|
63
63
|
* See the LICENSE file in the root directory of this source tree.
|
|
64
|
-
*/const
|
|
64
|
+
*/const Eh=me("code",[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]]);/**
|
|
65
65
|
* @license lucide-react v0.511.0 - ISC
|
|
66
66
|
*
|
|
67
67
|
* This source code is licensed under the ISC license.
|
|
68
68
|
* See the LICENSE file in the root directory of this source tree.
|
|
69
|
-
*/const
|
|
69
|
+
*/const Th=me("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
70
70
|
* @license lucide-react v0.511.0 - ISC
|
|
71
71
|
*
|
|
72
72
|
* This source code is licensed under the ISC license.
|
|
73
73
|
* See the LICENSE file in the root directory of this source tree.
|
|
74
|
-
*/const Eh=Yt("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */var Tr,Wo;function Go(){if(Wo)return Tr;Wo=1;const{entries:e,setPrototypeOf:n,isFrozen:t,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:l,seal:o,create:a}=Object,{apply:s,construct:u}=typeof Reflect<"u"&&Reflect;l||(l=function(B){return B}),o||(o=function(B){return B}),s||(s=function(B,ee){for(var G=arguments.length,k=new Array(G>2?G-2:0),T=2;T<G;T++)k[T-2]=arguments[T];return B.apply(ee,k)}),u||(u=function(B){for(var ee=arguments.length,G=new Array(ee>1?ee-1:0),k=1;k<ee;k++)G[k-1]=arguments[k];return new B(...G)});const f=C(Array.prototype.forEach),c=C(Array.prototype.lastIndexOf),h=C(Array.prototype.pop),p=C(Array.prototype.push),y=C(Array.prototype.splice),S=C(String.prototype.toLowerCase),E=C(String.prototype.toString),x=C(String.prototype.match),A=C(String.prototype.replace),v=C(String.prototype.indexOf),$=C(String.prototype.trim),M=C(Object.prototype.hasOwnProperty),w=C(RegExp.prototype.test),H=V(TypeError);function C(Z){return function(B){B instanceof RegExp&&(B.lastIndex=0);for(var ee=arguments.length,G=new Array(ee>1?ee-1:0),k=1;k<ee;k++)G[k-1]=arguments[k];return s(Z,B,G)}}function V(Z){return function(){for(var B=arguments.length,ee=new Array(B),G=0;G<B;G++)ee[G]=arguments[G];return u(Z,ee)}}function b(Z,B){let ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:S;n&&n(Z,null);let G=B.length;for(;G--;){let k=B[G];if(typeof k=="string"){const T=ee(k);T!==k&&(t(B)||(B[G]=T),k=T)}Z[k]=!0}return Z}function O(Z){for(let B=0;B<Z.length;B++)M(Z,B)||(Z[B]=null);return Z}function P(Z){const B=a(null);for(const[ee,G]of e(Z))M(Z,ee)&&(Array.isArray(G)?B[ee]=O(G):G&&typeof G=="object"&&G.constructor===Object?B[ee]=P(G):B[ee]=G);return B}function X(Z,B){for(;Z!==null;){const G=i(Z,B);if(G){if(G.get)return C(G.get);if(typeof G.value=="function")return C(G.value)}Z=r(Z)}function ee(){return null}return ee}const R=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),L=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),W=l(["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"]),re=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),pe=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ie=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),d=l(["#text"]),fe=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),_e=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),m=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),me=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ue=o(/\{\{[\w\W]*|[\w\W]*\}\}/gm),te=o(/<%[\w\W]*|[\w\W]*%>/gm),je=o(/\$\{[\w\W]*/gm),Fe=o(/^data-[\-\w.\u00B7-\uFFFF]+$/),ae=o(/^aria-[\-\w]+$/),Ue=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),He=o(/^(?:\w+script|data):/i),ut=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ct=o(/^html$/i),ft=o(/^[a-z][.\w]*(-[.\w]+)+$/i);var Zt=Object.freeze({__proto__:null,ARIA_ATTR:ae,ATTR_WHITESPACE:ut,CUSTOM_ELEMENT:ft,DATA_ATTR:Fe,DOCTYPE_NAME:ct,ERB_EXPR:te,IS_ALLOWED_URI:Ue,IS_SCRIPT_OR_DATA:He,MUSTACHE_EXPR:ue,TMPLIT_EXPR:je});const pt={element:1,text:3,progressingInstruction:7,comment:8,document:9},Cn=function(){return typeof window>"u"?null:window},Dr=function(B,ee){if(typeof B!="object"||typeof B.createPolicy!="function")return null;let G=null;const k="data-tt-policy-suffix";ee&&ee.hasAttribute(k)&&(G=ee.getAttribute(k));const T="dompurify"+(G?"#"+G:"");try{return B.createPolicy(T,{createHTML(q){return q},createScriptURL(q){return q}})}catch{return console.warn("TrustedTypes policy "+T+" could not be created."),null}},Jt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function en(){let Z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Cn();const B=j=>en(j);if(B.version="3.3.1",B.removed=[],!Z||!Z.document||Z.document.nodeType!==pt.document||!Z.Element)return B.isSupported=!1,B;let{document:ee}=Z;const G=ee,k=G.currentScript,{DocumentFragment:T,HTMLTemplateElement:q,Node:Q,Element:oe,NodeFilter:Ee,NamedNodeMap:Je=Z.NamedNodeMap||Z.MozNamedAttrMap,HTMLFormElement:Ve,DOMParser:xt,trustedTypes:Ye}=Z,ye=oe.prototype,ht=X(ye,"cloneNode"),qe=X(ye,"remove"),Fd=X(ye,"nextSibling"),Bd=X(ye,"childNodes"),vn=X(ye,"parentNode");if(typeof q=="function"){const j=ee.createElement("template");j.content&&j.content.ownerDocument&&(ee=j.content.ownerDocument)}let Pe,tn="";const{implementation:zr,createNodeIterator:jd,createDocumentFragment:Ud,getElementsByTagName:$d}=ee,{importNode:Hd}=G;let De=Jt();B.isSupported=typeof e=="function"&&typeof vn=="function"&&zr&&zr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Nr,ERB_EXPR:Mr,TMPLIT_EXPR:Rr,DATA_ATTR:Vd,ARIA_ATTR:qd,IS_SCRIPT_OR_DATA:Wd,ATTR_WHITESPACE:Al,CUSTOM_ELEMENT:Gd}=Zt;let{IS_ALLOWED_URI:_l}=Zt,we=null;const Il=b({},[...R,...L,...W,...pe,...d]);let Ce=null;const Ll=b({},[...fe,..._e,...m,...me]);let he=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),nn=null,Fr=null;const It=Object.seal(a(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Pl=!0,Br=!0,Dl=!1,Ol=!0,Lt=!1,Tn=!0,kt=!1,jr=!1,Ur=!1,Pt=!1,An=!1,_n=!1,zl=!0,Nl=!1;const Yd="user-content-";let $r=!0,rn=!1,Dt={},Xe=null;const Hr=b({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Ml=null;const Rl=b({},["audio","video","img","source","image","track"]);let Vr=null;const Fl=b({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),In="http://www.w3.org/1998/Math/MathML",Ln="http://www.w3.org/2000/svg",et="http://www.w3.org/1999/xhtml";let Ot=et,qr=!1,Wr=null;const Xd=b({},[In,Ln,et],E);let Pn=b({},["mi","mo","mn","ms","mtext"]),Dn=b({},["annotation-xml"]);const Kd=b({},["title","style","font","a","script"]);let on=null;const Qd=["application/xhtml+xml","text/html"],Zd="text/html";let xe=null,zt=null;const Jd=ee.createElement("form"),Bl=function(g){return g instanceof RegExp||g instanceof Function},Gr=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(zt&&zt===g)){if((!g||typeof g!="object")&&(g={}),g=P(g),on=Qd.indexOf(g.PARSER_MEDIA_TYPE)===-1?Zd:g.PARSER_MEDIA_TYPE,xe=on==="application/xhtml+xml"?E:S,we=M(g,"ALLOWED_TAGS")?b({},g.ALLOWED_TAGS,xe):Il,Ce=M(g,"ALLOWED_ATTR")?b({},g.ALLOWED_ATTR,xe):Ll,Wr=M(g,"ALLOWED_NAMESPACES")?b({},g.ALLOWED_NAMESPACES,E):Xd,Vr=M(g,"ADD_URI_SAFE_ATTR")?b(P(Fl),g.ADD_URI_SAFE_ATTR,xe):Fl,Ml=M(g,"ADD_DATA_URI_TAGS")?b(P(Rl),g.ADD_DATA_URI_TAGS,xe):Rl,Xe=M(g,"FORBID_CONTENTS")?b({},g.FORBID_CONTENTS,xe):Hr,nn=M(g,"FORBID_TAGS")?b({},g.FORBID_TAGS,xe):P({}),Fr=M(g,"FORBID_ATTR")?b({},g.FORBID_ATTR,xe):P({}),Dt=M(g,"USE_PROFILES")?g.USE_PROFILES:!1,Pl=g.ALLOW_ARIA_ATTR!==!1,Br=g.ALLOW_DATA_ATTR!==!1,Dl=g.ALLOW_UNKNOWN_PROTOCOLS||!1,Ol=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Lt=g.SAFE_FOR_TEMPLATES||!1,Tn=g.SAFE_FOR_XML!==!1,kt=g.WHOLE_DOCUMENT||!1,Pt=g.RETURN_DOM||!1,An=g.RETURN_DOM_FRAGMENT||!1,_n=g.RETURN_TRUSTED_TYPE||!1,Ur=g.FORCE_BODY||!1,zl=g.SANITIZE_DOM!==!1,Nl=g.SANITIZE_NAMED_PROPS||!1,$r=g.KEEP_CONTENT!==!1,rn=g.IN_PLACE||!1,_l=g.ALLOWED_URI_REGEXP||Ue,Ot=g.NAMESPACE||et,Pn=g.MATHML_TEXT_INTEGRATION_POINTS||Pn,Dn=g.HTML_INTEGRATION_POINTS||Dn,he=g.CUSTOM_ELEMENT_HANDLING||{},g.CUSTOM_ELEMENT_HANDLING&&Bl(g.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(he.tagNameCheck=g.CUSTOM_ELEMENT_HANDLING.tagNameCheck),g.CUSTOM_ELEMENT_HANDLING&&Bl(g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(he.attributeNameCheck=g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),g.CUSTOM_ELEMENT_HANDLING&&typeof g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(he.allowCustomizedBuiltInElements=g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Lt&&(Br=!1),An&&(Pt=!0),Dt&&(we=b({},d),Ce=[],Dt.html===!0&&(b(we,R),b(Ce,fe)),Dt.svg===!0&&(b(we,L),b(Ce,_e),b(Ce,me)),Dt.svgFilters===!0&&(b(we,W),b(Ce,_e),b(Ce,me)),Dt.mathMl===!0&&(b(we,pe),b(Ce,m),b(Ce,me))),g.ADD_TAGS&&(typeof g.ADD_TAGS=="function"?It.tagCheck=g.ADD_TAGS:(we===Il&&(we=P(we)),b(we,g.ADD_TAGS,xe))),g.ADD_ATTR&&(typeof g.ADD_ATTR=="function"?It.attributeCheck=g.ADD_ATTR:(Ce===Ll&&(Ce=P(Ce)),b(Ce,g.ADD_ATTR,xe))),g.ADD_URI_SAFE_ATTR&&b(Vr,g.ADD_URI_SAFE_ATTR,xe),g.FORBID_CONTENTS&&(Xe===Hr&&(Xe=P(Xe)),b(Xe,g.FORBID_CONTENTS,xe)),g.ADD_FORBID_CONTENTS&&(Xe===Hr&&(Xe=P(Xe)),b(Xe,g.ADD_FORBID_CONTENTS,xe)),$r&&(we["#text"]=!0),kt&&b(we,["html","head","body"]),we.table&&(b(we,["tbody"]),delete nn.tbody),g.TRUSTED_TYPES_POLICY){if(typeof g.TRUSTED_TYPES_POLICY.createHTML!="function")throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof g.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Pe=g.TRUSTED_TYPES_POLICY,tn=Pe.createHTML("")}else Pe===void 0&&(Pe=Dr(Ye,k)),Pe!==null&&typeof tn=="string"&&(tn=Pe.createHTML(""));l&&l(g),zt=g}},jl=b({},[...L,...W,...re]),Ul=b({},[...pe,...ie]),em=function(g){let I=vn(g);(!I||!I.tagName)&&(I={namespaceURI:Ot,tagName:"template"});const F=S(g.tagName),ce=S(I.tagName);return Wr[g.namespaceURI]?g.namespaceURI===Ln?I.namespaceURI===et?F==="svg":I.namespaceURI===In?F==="svg"&&(ce==="annotation-xml"||Pn[ce]):!!jl[F]:g.namespaceURI===In?I.namespaceURI===et?F==="math":I.namespaceURI===Ln?F==="math"&&Dn[ce]:!!Ul[F]:g.namespaceURI===et?I.namespaceURI===Ln&&!Dn[ce]||I.namespaceURI===In&&!Pn[ce]?!1:!Ul[F]&&(Kd[F]||!jl[F]):!!(on==="application/xhtml+xml"&&Wr[g.namespaceURI]):!1},Ke=function(g){p(B.removed,{element:g});try{vn(g).removeChild(g)}catch{qe(g)}},wt=function(g,I){try{p(B.removed,{attribute:I.getAttributeNode(g),from:I})}catch{p(B.removed,{attribute:null,from:I})}if(I.removeAttribute(g),g==="is")if(Pt||An)try{Ke(I)}catch{}else try{I.setAttribute(g,"")}catch{}},$l=function(g){let I=null,F=null;if(Ur)g="<remove></remove>"+g;else{const ge=x(g,/^[\r\n\t ]+/);F=ge&&ge[0]}on==="application/xhtml+xml"&&Ot===et&&(g='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+g+"</body></html>");const ce=Pe?Pe.createHTML(g):g;if(Ot===et)try{I=new xt().parseFromString(ce,on)}catch{}if(!I||!I.documentElement){I=zr.createDocument(Ot,"template",null);try{I.documentElement.innerHTML=qr?tn:ce}catch{}}const Ie=I.body||I.documentElement;return g&&F&&Ie.insertBefore(ee.createTextNode(F),Ie.childNodes[0]||null),Ot===et?$d.call(I,kt?"html":"body")[0]:kt?I.documentElement:Ie},Hl=function(g){return jd.call(g.ownerDocument||g,g,Ee.SHOW_ELEMENT|Ee.SHOW_COMMENT|Ee.SHOW_TEXT|Ee.SHOW_PROCESSING_INSTRUCTION|Ee.SHOW_CDATA_SECTION,null)},Yr=function(g){return g instanceof Ve&&(typeof g.nodeName!="string"||typeof g.textContent!="string"||typeof g.removeChild!="function"||!(g.attributes instanceof Je)||typeof g.removeAttribute!="function"||typeof g.setAttribute!="function"||typeof g.namespaceURI!="string"||typeof g.insertBefore!="function"||typeof g.hasChildNodes!="function")},Vl=function(g){return typeof Q=="function"&&g instanceof Q};function tt(j,g,I){f(j,F=>{F.call(B,g,I,zt)})}const ql=function(g){let I=null;if(tt(De.beforeSanitizeElements,g,null),Yr(g))return Ke(g),!0;const F=xe(g.nodeName);if(tt(De.uponSanitizeElement,g,{tagName:F,allowedTags:we}),Tn&&g.hasChildNodes()&&!Vl(g.firstElementChild)&&w(/<[/\w!]/g,g.innerHTML)&&w(/<[/\w!]/g,g.textContent)||g.nodeType===pt.progressingInstruction||Tn&&g.nodeType===pt.comment&&w(/<[/\w]/g,g.data))return Ke(g),!0;if(!(It.tagCheck instanceof Function&&It.tagCheck(F))&&(!we[F]||nn[F])){if(!nn[F]&&Gl(F)&&(he.tagNameCheck instanceof RegExp&&w(he.tagNameCheck,F)||he.tagNameCheck instanceof Function&&he.tagNameCheck(F)))return!1;if($r&&!Xe[F]){const ce=vn(g)||g.parentNode,Ie=Bd(g)||g.childNodes;if(Ie&&ce){const ge=Ie.length;for(let Ne=ge-1;Ne>=0;--Ne){const nt=ht(Ie[Ne],!0);nt.__removalCount=(g.__removalCount||0)+1,ce.insertBefore(nt,Fd(g))}}}return Ke(g),!0}return g instanceof oe&&!em(g)||(F==="noscript"||F==="noembed"||F==="noframes")&&w(/<\/no(script|embed|frames)/i,g.innerHTML)?(Ke(g),!0):(Lt&&g.nodeType===pt.text&&(I=g.textContent,f([Nr,Mr,Rr],ce=>{I=A(I,ce," ")}),g.textContent!==I&&(p(B.removed,{element:g.cloneNode()}),g.textContent=I)),tt(De.afterSanitizeElements,g,null),!1)},Wl=function(g,I,F){if(zl&&(I==="id"||I==="name")&&(F in ee||F in Jd))return!1;if(!(Br&&!Fr[I]&&w(Vd,I))){if(!(Pl&&w(qd,I))){if(!(It.attributeCheck instanceof Function&&It.attributeCheck(I,g))){if(!Ce[I]||Fr[I]){if(!(Gl(g)&&(he.tagNameCheck instanceof RegExp&&w(he.tagNameCheck,g)||he.tagNameCheck instanceof Function&&he.tagNameCheck(g))&&(he.attributeNameCheck instanceof RegExp&&w(he.attributeNameCheck,I)||he.attributeNameCheck instanceof Function&&he.attributeNameCheck(I,g))||I==="is"&&he.allowCustomizedBuiltInElements&&(he.tagNameCheck instanceof RegExp&&w(he.tagNameCheck,F)||he.tagNameCheck instanceof Function&&he.tagNameCheck(F))))return!1}else if(!Vr[I]){if(!w(_l,A(F,Al,""))){if(!((I==="src"||I==="xlink:href"||I==="href")&&g!=="script"&&v(F,"data:")===0&&Ml[g])){if(!(Dl&&!w(Wd,A(F,Al,"")))){if(F)return!1}}}}}}}return!0},Gl=function(g){return g!=="annotation-xml"&&x(g,Gd)},Yl=function(g){tt(De.beforeSanitizeAttributes,g,null);const{attributes:I}=g;if(!I||Yr(g))return;const F={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ce,forceKeepAttr:void 0};let ce=I.length;for(;ce--;){const Ie=I[ce],{name:ge,namespaceURI:Ne,value:nt}=Ie,Nt=xe(ge),Xr=nt;let ve=ge==="value"?Xr:$(Xr);if(F.attrName=Nt,F.attrValue=ve,F.keepAttr=!0,F.forceKeepAttr=void 0,tt(De.uponSanitizeAttribute,g,F),ve=F.attrValue,Nl&&(Nt==="id"||Nt==="name")&&(wt(ge,g),ve=Yd+ve),Tn&&w(/((--!?|])>)|<\/(style|title|textarea)/i,ve)){wt(ge,g);continue}if(Nt==="attributename"&&x(ve,"href")){wt(ge,g);continue}if(F.forceKeepAttr)continue;if(!F.keepAttr){wt(ge,g);continue}if(!Ol&&w(/\/>/i,ve)){wt(ge,g);continue}Lt&&f([Nr,Mr,Rr],Kl=>{ve=A(ve,Kl," ")});const Xl=xe(g.nodeName);if(!Wl(Xl,Nt,ve)){wt(ge,g);continue}if(Pe&&typeof Ye=="object"&&typeof Ye.getAttributeType=="function"&&!Ne)switch(Ye.getAttributeType(Xl,Nt)){case"TrustedHTML":{ve=Pe.createHTML(ve);break}case"TrustedScriptURL":{ve=Pe.createScriptURL(ve);break}}if(ve!==Xr)try{Ne?g.setAttributeNS(Ne,ge,ve):g.setAttribute(ge,ve),Yr(g)?Ke(g):h(B.removed)}catch{wt(ge,g)}}tt(De.afterSanitizeAttributes,g,null)},tm=function j(g){let I=null;const F=Hl(g);for(tt(De.beforeSanitizeShadowDOM,g,null);I=F.nextNode();)tt(De.uponSanitizeShadowNode,I,null),ql(I),Yl(I),I.content instanceof T&&j(I.content);tt(De.afterSanitizeShadowDOM,g,null)};return B.sanitize=function(j){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,F=null,ce=null,Ie=null;if(qr=!j,qr&&(j="<!-->"),typeof j!="string"&&!Vl(j))if(typeof j.toString=="function"){if(j=j.toString(),typeof j!="string")throw H("dirty is not a string, aborting")}else throw H("toString is not a function");if(!B.isSupported)return j;if(jr||Gr(g),B.removed=[],typeof j=="string"&&(rn=!1),rn){if(j.nodeName){const nt=xe(j.nodeName);if(!we[nt]||nn[nt])throw H("root node is forbidden and cannot be sanitized in-place")}}else if(j instanceof Q)I=$l("<!---->"),F=I.ownerDocument.importNode(j,!0),F.nodeType===pt.element&&F.nodeName==="BODY"||F.nodeName==="HTML"?I=F:I.appendChild(F);else{if(!Pt&&!Lt&&!kt&&j.indexOf("<")===-1)return Pe&&_n?Pe.createHTML(j):j;if(I=$l(j),!I)return Pt?null:_n?tn:""}I&&Ur&&Ke(I.firstChild);const ge=Hl(rn?j:I);for(;ce=ge.nextNode();)ql(ce),Yl(ce),ce.content instanceof T&&tm(ce.content);if(rn)return j;if(Pt){if(An)for(Ie=Ud.call(I.ownerDocument);I.firstChild;)Ie.appendChild(I.firstChild);else Ie=I;return(Ce.shadowroot||Ce.shadowrootmode)&&(Ie=Hd.call(G,Ie,!0)),Ie}let Ne=kt?I.outerHTML:I.innerHTML;return kt&&we["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&w(ct,I.ownerDocument.doctype.name)&&(Ne="<!DOCTYPE "+I.ownerDocument.doctype.name+`>
|
|
75
|
-
`+Ne),Lt&&f([Nr,Mr,Rr],nt=>{Ne=A(Ne,nt," ")}),Pe&&_n?Pe.createHTML(Ne):Ne},B.setConfig=function(){let j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Gr(j),jr=!0},B.clearConfig=function(){zt=null,jr=!1},B.isValidAttribute=function(j,g,I){zt||Gr({});const F=xe(j),ce=xe(g);return Wl(F,ce,I)},B.addHook=function(j,g){typeof g=="function"&&p(De[j],g)},B.removeHook=function(j,g){if(g!==void 0){const I=c(De[j],g);return I===-1?void 0:y(De[j],I,1)[0]}return h(De[j])},B.removeHooks=function(j){De[j]=[]},B.removeAllHooks=function(){De=Jt()},B}var Or=en();return Tr=Or,Tr}var Ar,Yo;function Ch(){return Yo||(Yo=1,Ar=self.DOMPurify||(self.DOMPurify=Go().default||Go())),Ar}var vh=Ch();const Th=Bn(vh);function Xo(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function Ah(...e){return n=>{let t=!1;const r=e.map(i=>{const l=Xo(i,n);return!t&&typeof l=="function"&&(t=!0),l});if(t)return()=>{for(let i=0;i<r.length;i++){const l=r[i];typeof l=="function"?l():Xo(e[i],null)}}}}var _h=Symbol.for("react.lazy"),kn=Se[" use ".trim().toString()];function Ih(e){return typeof e=="object"&&e!==null&&"then"in e}function Ko(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===_h&&"_payload"in e&&Ih(e._payload)}function Qo(e){const n=Lh(e),t=Se.forwardRef((r,i)=>{let{children:l,...o}=r;Ko(l)&&typeof kn=="function"&&(l=kn(l._payload));const a=Se.Children.toArray(l),s=a.find(Dh);if(s){const u=s.props.children,f=a.map(c=>c===s?Se.Children.count(u)>1?Se.Children.only(null):Se.isValidElement(u)?u.props.children:null:c);return D.jsx(n,{...o,ref:i,children:Se.isValidElement(u)?Se.cloneElement(u,void 0,f):null})}return D.jsx(n,{...o,ref:i,children:l})});return t.displayName=`${e}.Slot`,t}var Zo=Qo("Slot");function Lh(e){const n=Se.forwardRef((t,r)=>{let{children:i,...l}=t;if(Ko(i)&&typeof kn=="function"&&(i=kn(i._payload)),Se.isValidElement(i)){const o=zh(i),a=Oh(l,i.props);return i.type!==Se.Fragment&&(a.ref=r?Ah(r,o):o),Se.cloneElement(i,a)}return Se.Children.count(i)>1?Se.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var Ph=Symbol("radix.slottable");function Dh(e){return Se.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Ph}function Oh(e,n){const t={...n};for(const r in n){const i=e[r],l=n[r];/^on[A-Z]/.test(r)?i&&l?t[r]=(...a)=>{const s=l(...a);return i(...a),s}:i&&(t[r]=i):r==="style"?t[r]={...i,...l}:r==="className"&&(t[r]=[i,l].filter(Boolean).join(" "))}return{...e,...t}}function zh(e){var r,i;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function Jo(e){var n,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(n=0;n<i;n++)e[n]&&(t=Jo(e[n]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function el(){for(var e,n,t=0,r="",i=arguments.length;t<i;t++)(e=arguments[t])&&(n=Jo(e))&&(r&&(r+=" "),r+=n);return r}const tl=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,nl=el,rl=(e,n)=>t=>{var r;if((n==null?void 0:n.variants)==null)return nl(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:i,defaultVariants:l}=n,o=Object.keys(i).map(u=>{const f=t==null?void 0:t[u],c=l==null?void 0:l[u];if(f===null)return null;const h=tl(f)||tl(c);return i[u][h]}),a=t&&Object.entries(t).reduce((u,f)=>{let[c,h]=f;return h===void 0||(u[c]=h),u},{}),s=n==null||(r=n.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:c,className:h,...p}=f;return Object.entries(p).every(y=>{let[S,E]=y;return Array.isArray(E)?E.includes({...l,...a}[S]):{...l,...a}[S]===E})?[...u,c,h]:u},[]);return nl(e,o,s,t==null?void 0:t.class,t==null?void 0:t.className)},Nh=(e,n)=>{const t=new Array(e.length+n.length);for(let r=0;r<e.length;r++)t[r]=e[r];for(let r=0;r<n.length;r++)t[e.length+r]=n[r];return t},Mh=(e,n)=>({classGroupId:e,validator:n}),il=(e=new Map,n=null,t)=>({nextPart:e,validators:n,classGroupId:t}),wn="-",ol=[],Rh="arbitrary..",Fh=e=>{const n=jh(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return Bh(o);const a=o.split(wn),s=a[0]===""&&a.length>1?1:0;return ll(a,s,n)},getConflictingClassGroupIds:(o,a)=>{if(a){const s=r[o],u=t[o];return s?u?Nh(u,s):s:u||ol}return t[o]||ol}}},ll=(e,n,t)=>{if(e.length-n===0)return t.classGroupId;const i=e[n],l=t.nextPart.get(i);if(l){const u=ll(e,n+1,l);if(u)return u}const o=t.validators;if(o===null)return;const a=n===0?e.join(wn):e.slice(n).join(wn),s=o.length;for(let u=0;u<s;u++){const f=o[u];if(f.validator(a))return f.classGroupId}},Bh=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),t=n.indexOf(":"),r=n.slice(0,t);return r?Rh+r:void 0})(),jh=e=>{const{theme:n,classGroups:t}=e;return Uh(t,n)},Uh=(e,n)=>{const t=il();for(const r in e){const i=e[r];_r(i,t,r,n)}return t},_r=(e,n,t,r)=>{const i=e.length;for(let l=0;l<i;l++){const o=e[l];$h(o,n,t,r)}},$h=(e,n,t,r)=>{if(typeof e=="string"){Hh(e,n,t);return}if(typeof e=="function"){Vh(e,n,t,r);return}qh(e,n,t,r)},Hh=(e,n,t)=>{const r=e===""?n:al(n,e);r.classGroupId=t},Vh=(e,n,t,r)=>{if(Wh(e)){_r(e(r),n,t,r);return}n.validators===null&&(n.validators=[]),n.validators.push(Mh(t,e))},qh=(e,n,t,r)=>{const i=Object.entries(e),l=i.length;for(let o=0;o<l;o++){const[a,s]=i[o];_r(s,al(n,a),t,r)}},al=(e,n)=>{let t=e;const r=n.split(wn),i=r.length;for(let l=0;l<i;l++){const o=r[l];let a=t.nextPart.get(o);a||(a=il(),t.nextPart.set(o,a)),t=a}return t},Wh=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Gh=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,t=Object.create(null),r=Object.create(null);const i=(l,o)=>{t[l]=o,n++,n>e&&(n=0,r=t,t=Object.create(null))};return{get(l){let o=t[l];if(o!==void 0)return o;if((o=r[l])!==void 0)return i(l,o),o},set(l,o){l in t?t[l]=o:i(l,o)}}},Ir="!",sl=":",Yh=[],ul=(e,n,t,r,i)=>({modifiers:e,hasImportantModifier:n,baseClassName:t,maybePostfixModifierPosition:r,isExternal:i}),Xh=e=>{const{prefix:n,experimentalParseClassName:t}=e;let r=i=>{const l=[];let o=0,a=0,s=0,u;const f=i.length;for(let S=0;S<f;S++){const E=i[S];if(o===0&&a===0){if(E===sl){l.push(i.slice(s,S)),s=S+1;continue}if(E==="/"){u=S;continue}}E==="["?o++:E==="]"?o--:E==="("?a++:E===")"&&a--}const c=l.length===0?i:i.slice(s);let h=c,p=!1;c.endsWith(Ir)?(h=c.slice(0,-1),p=!0):c.startsWith(Ir)&&(h=c.slice(1),p=!0);const y=u&&u>s?u-s:void 0;return ul(l,p,h,y)};if(n){const i=n+sl,l=r;r=o=>o.startsWith(i)?l(o.slice(i.length)):ul(Yh,!1,o,void 0,!0)}if(t){const i=r;r=l=>t({className:l,parseClassName:i})}return r},Kh=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((t,r)=>{n.set(t,1e6+r)}),t=>{const r=[];let i=[];for(let l=0;l<t.length;l++){const o=t[l],a=o[0]==="[",s=n.has(o);a||s?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(o)):i.push(o)}return i.length>0&&(i.sort(),r.push(...i)),r}},Qh=e=>({cache:Gh(e.cacheSize),parseClassName:Xh(e),sortModifiers:Kh(e),...Fh(e)}),Zh=/\s+/,Jh=(e,n)=>{const{parseClassName:t,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:l}=n,o=[],a=e.trim().split(Zh);let s="";for(let u=a.length-1;u>=0;u-=1){const f=a[u],{isExternal:c,modifiers:h,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:S}=t(f);if(c){s=f+(s.length>0?" "+s:s);continue}let E=!!S,x=r(E?y.substring(0,S):y);if(!x){if(!E){s=f+(s.length>0?" "+s:s);continue}if(x=r(y),!x){s=f+(s.length>0?" "+s:s);continue}E=!1}const A=h.length===0?"":h.length===1?h[0]:l(h).join(":"),v=p?A+Ir:A,$=v+x;if(o.indexOf($)>-1)continue;o.push($);const M=i(x,E);for(let w=0;w<M.length;++w){const H=M[w];o.push(v+H)}s=f+(s.length>0?" "+s:s)}return s},ed=(...e)=>{let n=0,t,r,i="";for(;n<e.length;)(t=e[n++])&&(r=cl(t))&&(i&&(i+=" "),i+=r);return i},cl=e=>{if(typeof e=="string")return e;let n,t="";for(let r=0;r<e.length;r++)e[r]&&(n=cl(e[r]))&&(t&&(t+=" "),t+=n);return t},td=(e,...n)=>{let t,r,i,l;const o=s=>{const u=n.reduce((f,c)=>c(f),e());return t=Qh(u),r=t.cache.get,i=t.cache.set,l=a,a(s)},a=s=>{const u=r(s);if(u)return u;const f=Jh(s,t);return i(s,f),f};return l=o,(...s)=>l(ed(...s))},nd=[],be=e=>{const n=t=>t[e]||nd;return n.isThemeGetter=!0,n},fl=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,pl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,rd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,id=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,od=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,ld=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ad=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,sd=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lt=e=>rd.test(e),K=e=>!!e&&!Number.isNaN(Number(e)),at=e=>!!e&&Number.isInteger(Number(e)),Lr=e=>e.endsWith("%")&&K(e.slice(0,-1)),Ze=e=>id.test(e),hl=()=>!0,ud=e=>od.test(e)&&!ld.test(e),Pr=()=>!1,cd=e=>ad.test(e),fd=e=>sd.test(e),pd=e=>!z(e)&&!N(e),hd=e=>st(e,xl,Pr),z=e=>fl.test(e),bt=e=>st(e,kl,ud),dl=e=>st(e,wd,K),dd=e=>st(e,Sl,hl),md=e=>st(e,wl,Pr),ml=e=>st(e,bl,Pr),gd=e=>st(e,yl,fd),Sn=e=>st(e,El,cd),N=e=>pl.test(e),Xt=e=>yt(e,kl),bd=e=>yt(e,wl),gl=e=>yt(e,bl),yd=e=>yt(e,xl),xd=e=>yt(e,yl),En=e=>yt(e,El,!0),kd=e=>yt(e,Sl,!0),st=(e,n,t)=>{const r=fl.exec(e);return r?r[1]?n(r[1]):t(r[2]):!1},yt=(e,n,t=!1)=>{const r=pl.exec(e);return r?r[1]?n(r[1]):t:!1},bl=e=>e==="position"||e==="percentage",yl=e=>e==="image"||e==="url",xl=e=>e==="length"||e==="size"||e==="bg-size",kl=e=>e==="length",wd=e=>e==="number",wl=e=>e==="family-name",Sl=e=>e==="number"||e==="weight",El=e=>e==="shadow",Sd=td(()=>{const e=be("color"),n=be("font"),t=be("text"),r=be("font-weight"),i=be("tracking"),l=be("leading"),o=be("breakpoint"),a=be("container"),s=be("spacing"),u=be("radius"),f=be("shadow"),c=be("inset-shadow"),h=be("text-shadow"),p=be("drop-shadow"),y=be("blur"),S=be("perspective"),E=be("aspect"),x=be("ease"),A=be("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],$=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],M=()=>[...$(),N,z],w=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],C=()=>[N,z,s],V=()=>[lt,"full","auto",...C()],b=()=>[at,"none","subgrid",N,z],O=()=>["auto",{span:["full",at,N,z]},at,N,z],P=()=>[at,"auto",N,z],X=()=>["auto","min","max","fr",N,z],R=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],W=()=>["auto",...C()],re=()=>[lt,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],pe=()=>[lt,"screen","full","dvw","lvw","svw","min","max","fit",...C()],ie=()=>[lt,"screen","full","lh","dvh","lvh","svh","min","max","fit",...C()],d=()=>[e,N,z],fe=()=>[...$(),gl,ml,{position:[N,z]}],_e=()=>["no-repeat",{repeat:["","x","y","space","round"]}],m=()=>["auto","cover","contain",yd,hd,{size:[N,z]}],me=()=>[Lr,Xt,bt],ue=()=>["","none","full",u,N,z],te=()=>["",K,Xt,bt],je=()=>["solid","dashed","dotted","double"],Fe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ae=()=>[K,Lr,gl,ml],Ue=()=>["","none",y,N,z],He=()=>["none",K,N,z],ut=()=>["none",K,N,z],ct=()=>[K,N,z],ft=()=>[lt,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ze],breakpoint:[Ze],color:[hl],container:[Ze],"drop-shadow":[Ze],ease:["in","out","in-out"],font:[pd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ze],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ze],shadow:[Ze],spacing:["px",K],text:[Ze],"text-shadow":[Ze],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",lt,z,N,E]}],container:["container"],columns:[{columns:[K,z,N,a]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:M()}],overflow:[{overflow:w()}],"overflow-x":[{"overflow-x":w()}],"overflow-y":[{"overflow-y":w()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{"inset-s":V(),start:V()}],end:[{"inset-e":V(),end:V()}],"inset-bs":[{"inset-bs":V()}],"inset-be":[{"inset-be":V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[at,"auto",N,z]}],basis:[{basis:[lt,"full","auto",a,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[K,lt,"auto","initial","none",z]}],grow:[{grow:["",K,N,z]}],shrink:[{shrink:["",K,N,z]}],order:[{order:[at,"first","last","none",N,z]}],"grid-cols":[{"grid-cols":b()}],"col-start-end":[{col:O()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":b()}],"row-start-end":[{row:O()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":X()}],"auto-rows":[{"auto-rows":X()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...R(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...R()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":R()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pbs:[{pbs:C()}],pbe:[{pbe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:W()}],mx:[{mx:W()}],my:[{my:W()}],ms:[{ms:W()}],me:[{me:W()}],mbs:[{mbs:W()}],mbe:[{mbe:W()}],mt:[{mt:W()}],mr:[{mr:W()}],mb:[{mb:W()}],ml:[{ml:W()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:re()}],"inline-size":[{inline:["auto",...pe()]}],"min-inline-size":[{"min-inline":["auto",...pe()]}],"max-inline-size":[{"max-inline":["none",...pe()]}],"block-size":[{block:["auto",...ie()]}],"min-block-size":[{"min-block":["auto",...ie()]}],"max-block-size":[{"max-block":["none",...ie()]}],w:[{w:[a,"screen",...re()]}],"min-w":[{"min-w":[a,"screen","none",...re()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...re()]}],h:[{h:["screen","lh",...re()]}],"min-h":[{"min-h":["screen","lh","none",...re()]}],"max-h":[{"max-h":["screen","lh",...re()]}],"font-size":[{text:["base",t,Xt,bt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,kd,dd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Lr,z]}],"font-family":[{font:[bd,md,n]}],"font-features":[{"font-features":[z]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,N,z]}],"line-clamp":[{"line-clamp":[K,"none",N,dl]}],leading:[{leading:[l,...C()]}],"list-image":[{"list-image":["none",N,z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",N,z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:d()}],"text-color":[{text:d()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...je(),"wavy"]}],"text-decoration-thickness":[{decoration:[K,"from-font","auto",N,bt]}],"text-decoration-color":[{decoration:d()}],"underline-offset":[{"underline-offset":[K,"auto",N,z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",N,z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",N,z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:fe()}],"bg-repeat":[{bg:_e()}],"bg-size":[{bg:m()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},at,N,z],radial:["",N,z],conic:[at,N,z]},xd,gd]}],"bg-color":[{bg:d()}],"gradient-from-pos":[{from:me()}],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:d()}],"gradient-via":[{via:d()}],"gradient-to":[{to:d()}],rounded:[{rounded:ue()}],"rounded-s":[{"rounded-s":ue()}],"rounded-e":[{"rounded-e":ue()}],"rounded-t":[{"rounded-t":ue()}],"rounded-r":[{"rounded-r":ue()}],"rounded-b":[{"rounded-b":ue()}],"rounded-l":[{"rounded-l":ue()}],"rounded-ss":[{"rounded-ss":ue()}],"rounded-se":[{"rounded-se":ue()}],"rounded-ee":[{"rounded-ee":ue()}],"rounded-es":[{"rounded-es":ue()}],"rounded-tl":[{"rounded-tl":ue()}],"rounded-tr":[{"rounded-tr":ue()}],"rounded-br":[{"rounded-br":ue()}],"rounded-bl":[{"rounded-bl":ue()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-bs":[{"border-bs":te()}],"border-w-be":[{"border-be":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...je(),"hidden","none"]}],"divide-style":[{divide:[...je(),"hidden","none"]}],"border-color":[{border:d()}],"border-color-x":[{"border-x":d()}],"border-color-y":[{"border-y":d()}],"border-color-s":[{"border-s":d()}],"border-color-e":[{"border-e":d()}],"border-color-bs":[{"border-bs":d()}],"border-color-be":[{"border-be":d()}],"border-color-t":[{"border-t":d()}],"border-color-r":[{"border-r":d()}],"border-color-b":[{"border-b":d()}],"border-color-l":[{"border-l":d()}],"divide-color":[{divide:d()}],"outline-style":[{outline:[...je(),"none","hidden"]}],"outline-offset":[{"outline-offset":[K,N,z]}],"outline-w":[{outline:["",K,Xt,bt]}],"outline-color":[{outline:d()}],shadow:[{shadow:["","none",f,En,Sn]}],"shadow-color":[{shadow:d()}],"inset-shadow":[{"inset-shadow":["none",c,En,Sn]}],"inset-shadow-color":[{"inset-shadow":d()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:d()}],"ring-offset-w":[{"ring-offset":[K,bt]}],"ring-offset-color":[{"ring-offset":d()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":d()}],"text-shadow":[{"text-shadow":["none",h,En,Sn]}],"text-shadow-color":[{"text-shadow":d()}],opacity:[{opacity:[K,N,z]}],"mix-blend":[{"mix-blend":[...Fe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Fe()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[K]}],"mask-image-linear-from-pos":[{"mask-linear-from":ae()}],"mask-image-linear-to-pos":[{"mask-linear-to":ae()}],"mask-image-linear-from-color":[{"mask-linear-from":d()}],"mask-image-linear-to-color":[{"mask-linear-to":d()}],"mask-image-t-from-pos":[{"mask-t-from":ae()}],"mask-image-t-to-pos":[{"mask-t-to":ae()}],"mask-image-t-from-color":[{"mask-t-from":d()}],"mask-image-t-to-color":[{"mask-t-to":d()}],"mask-image-r-from-pos":[{"mask-r-from":ae()}],"mask-image-r-to-pos":[{"mask-r-to":ae()}],"mask-image-r-from-color":[{"mask-r-from":d()}],"mask-image-r-to-color":[{"mask-r-to":d()}],"mask-image-b-from-pos":[{"mask-b-from":ae()}],"mask-image-b-to-pos":[{"mask-b-to":ae()}],"mask-image-b-from-color":[{"mask-b-from":d()}],"mask-image-b-to-color":[{"mask-b-to":d()}],"mask-image-l-from-pos":[{"mask-l-from":ae()}],"mask-image-l-to-pos":[{"mask-l-to":ae()}],"mask-image-l-from-color":[{"mask-l-from":d()}],"mask-image-l-to-color":[{"mask-l-to":d()}],"mask-image-x-from-pos":[{"mask-x-from":ae()}],"mask-image-x-to-pos":[{"mask-x-to":ae()}],"mask-image-x-from-color":[{"mask-x-from":d()}],"mask-image-x-to-color":[{"mask-x-to":d()}],"mask-image-y-from-pos":[{"mask-y-from":ae()}],"mask-image-y-to-pos":[{"mask-y-to":ae()}],"mask-image-y-from-color":[{"mask-y-from":d()}],"mask-image-y-to-color":[{"mask-y-to":d()}],"mask-image-radial":[{"mask-radial":[N,z]}],"mask-image-radial-from-pos":[{"mask-radial-from":ae()}],"mask-image-radial-to-pos":[{"mask-radial-to":ae()}],"mask-image-radial-from-color":[{"mask-radial-from":d()}],"mask-image-radial-to-color":[{"mask-radial-to":d()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":$()}],"mask-image-conic-pos":[{"mask-conic":[K]}],"mask-image-conic-from-pos":[{"mask-conic-from":ae()}],"mask-image-conic-to-pos":[{"mask-conic-to":ae()}],"mask-image-conic-from-color":[{"mask-conic-from":d()}],"mask-image-conic-to-color":[{"mask-conic-to":d()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:fe()}],"mask-repeat":[{mask:_e()}],"mask-size":[{mask:m()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",N,z]}],filter:[{filter:["","none",N,z]}],blur:[{blur:Ue()}],brightness:[{brightness:[K,N,z]}],contrast:[{contrast:[K,N,z]}],"drop-shadow":[{"drop-shadow":["","none",p,En,Sn]}],"drop-shadow-color":[{"drop-shadow":d()}],grayscale:[{grayscale:["",K,N,z]}],"hue-rotate":[{"hue-rotate":[K,N,z]}],invert:[{invert:["",K,N,z]}],saturate:[{saturate:[K,N,z]}],sepia:[{sepia:["",K,N,z]}],"backdrop-filter":[{"backdrop-filter":["","none",N,z]}],"backdrop-blur":[{"backdrop-blur":Ue()}],"backdrop-brightness":[{"backdrop-brightness":[K,N,z]}],"backdrop-contrast":[{"backdrop-contrast":[K,N,z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",K,N,z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[K,N,z]}],"backdrop-invert":[{"backdrop-invert":["",K,N,z]}],"backdrop-opacity":[{"backdrop-opacity":[K,N,z]}],"backdrop-saturate":[{"backdrop-saturate":[K,N,z]}],"backdrop-sepia":[{"backdrop-sepia":["",K,N,z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",N,z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[K,"initial",N,z]}],ease:[{ease:["linear","initial",x,N,z]}],delay:[{delay:[K,N,z]}],animate:[{animate:["none",A,N,z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,N,z]}],"perspective-origin":[{"perspective-origin":M()}],rotate:[{rotate:He()}],"rotate-x":[{"rotate-x":He()}],"rotate-y":[{"rotate-y":He()}],"rotate-z":[{"rotate-z":He()}],scale:[{scale:ut()}],"scale-x":[{"scale-x":ut()}],"scale-y":[{"scale-y":ut()}],"scale-z":[{"scale-z":ut()}],"scale-3d":["scale-3d"],skew:[{skew:ct()}],"skew-x":[{"skew-x":ct()}],"skew-y":[{"skew-y":ct()}],transform:[{transform:[N,z,"","none","gpu","cpu"]}],"transform-origin":[{origin:M()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ft()}],"translate-x":[{"translate-x":ft()}],"translate-y":[{"translate-y":ft()}],"translate-z":[{"translate-z":ft()}],"translate-none":["translate-none"],accent:[{accent:d()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:d()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",N,z]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mbs":[{"scroll-mbs":C()}],"scroll-mbe":[{"scroll-mbe":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pbs":[{"scroll-pbs":C()}],"scroll-pbe":[{"scroll-pbe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",N,z]}],fill:[{fill:["none",...d()]}],"stroke-w":[{stroke:[K,Xt,bt,dl]}],stroke:[{stroke:["none",...d()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Kt(...e){return Sd(el(e))}const Ed=rl("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Cd({className:e,variant:n,asChild:t=!1,...r}){const i=t?Zo:"span";return D.jsx(i,{"data-slot":"badge",className:Kt(Ed({variant:n}),e),...r})}const vd=rl("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Qt({className:e,variant:n,size:t,asChild:r=!1,...i}){const l=r?Zo:"button";return D.jsx(l,{"data-slot":"button",className:Kt(vd({variant:n,size:t,className:e})),...i})}var Td=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ad=Td.reduce((e,n)=>{const t=Qo(`Primitive.${n}`),r=Se.forwardRef((i,l)=>{const{asChild:o,...a}=i,s=o?t:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),D.jsx(s,{...a,ref:l})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{}),_d="Separator",Cl="horizontal",Id=["horizontal","vertical"],vl=Se.forwardRef((e,n)=>{const{decorative:t,orientation:r=Cl,...i}=e,l=Ld(r)?r:Cl,a=t?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return D.jsx(Ad.div,{"data-orientation":l,...a,...i,ref:n})});vl.displayName=_d;function Ld(e){return Id.includes(e)}var Pd=vl;function Dd({className:e,orientation:n="horizontal",decorative:t=!0,...r}){return D.jsx(Pd,{"data-slot":"separator",decorative:t,orientation:n,className:Kt("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}function Od({className:e,...n}){return D.jsx("div",{"data-slot":"card",className:Kt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...n})}function zd({className:e,...n}){return D.jsx("div",{"data-slot":"card-content",className:Kt("px-6",e),...n})}const Nd={heading:"#569cd6",headingText:"#c792ea",bold:"#ce9178",boldText:"#ffd700",italic:"#6a9955",italicText:"#b5cea8",strikethrough:"#f44747",strikethroughText:"#f44747",inlineCode:"#f92672",inlineCodeText:"#f8f8f2",inlineCodeBg:"rgba(255,255,255,0.1)",link:"#569cd6",linkText:"#4ec9b0",linkUrl:"#9cdcfe",image:"#d19a66",imageAlt:"#98c379",imagePath:"#e5c07b",listBullet:"#569cd6",listText:"#222",orderedList:"#c792ea",blockquote:"#6a9955",blockquoteText:"#6a9955",codeBlock:"#c792ea",codeBlockText:"#d4d4d4",codeBlockBg:"rgba(255,255,255,0.05)",horizontalRule:"#4a4a4a"},Md=(e,n={})=>{const t={...Nd,...n};let r=e.replace(/</g,"<").replace(/>/g,">");return r=r.replace(/^(#{1,6})\s+(.+)$/gm,`<span style="color:${t.heading};font-weight:bold">$1</span> <span style="color:${t.headingText};font-weight:600">$2</span>`).replace(/\*\*(.*?)\*\*/g,`<span style="color:${t.bold}">**</span><span style="color:${t.boldText};font-weight:bold">$1</span><span style="color:${t.bold}">**</span>`).replace(/\*(.*?)\*/g,`<span style="color:${t.italic}">*</span><span style="color:${t.italicText};font-style:italic">$1</span><span style="color:${t.italic}">*</span>`).replace(/~~(.*?)~~/g,`<span style="color:${t.strikethrough}">~~</span><span style="color:${t.strikethroughText};text-decoration:line-through">$1</span><span style="color:${t.strikethrough}">~~</span>`).replace(/`([^`]+)`/g,`<span style="color:${t.inlineCode}">\`</span><span style="color:${t.inlineCodeText};background:${t.inlineCodeBg};padding:0 3px;border-radius:3px;font-family:monospace">$1</span><span style="color:${t.inlineCode}">\`</span>`).replace(/!\[([^\]]*)\]\(([^)]+)\)/g,`<span style="color:${t.image}">!</span><span style="color:${t.image}">[</span><span style="color:${t.imageAlt}">$1</span><span style="color:${t.image}">](</span><span style="color:${t.imagePath}">$2</span><span style="color:${t.image}">)</span>`).replace(/\[([^\]]+)\]\(([^)]+)\)/g,`<span style="color:${t.link}">[</span><span style="color:${t.linkText};text-decoration:underline">$1</span><span style="color:${t.link}">](</span><span style="color:${t.linkUrl}">$2</span><span style="color:${t.link}">)</span>`).replace(/^(\s*)([-*+])\s+(.+)$/gm,`$1<span style="color:${t.listBullet};font-weight:bold">$2</span> <span style="color:${t.listText}">$3</span>`).replace(/^(\s*)(\d+\.)\s+(.+)$/gm,`$1<span style="color:${t.orderedList};font-weight:bold">$2</span> <span style="color:${t.listText}">$3</span>`).replace(/^>\s+(.+)$/gm,`<span style="color:${t.blockquote};font-weight:bold">></span> <span style="color:${t.blockquoteText};font-style:italic">$1</span>`).replace(/```(\w+)?\n([\s\S]*?)\n```/g,`<span style="color:${t.codeBlock}">\`\`\`$1</span>
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
*/const Ah=me("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);/**
|
|
75
|
+
* @license lucide-react v0.511.0 - ISC
|
|
76
|
+
*
|
|
77
|
+
* This source code is licensed under the ISC license.
|
|
78
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
79
|
+
*/const _h=me("eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
80
|
+
* @license lucide-react v0.511.0 - ISC
|
|
81
|
+
*
|
|
82
|
+
* This source code is licensed under the ISC license.
|
|
83
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
84
|
+
*/const Ih=me("file-code",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
|
|
85
|
+
* @license lucide-react v0.511.0 - ISC
|
|
86
|
+
*
|
|
87
|
+
* This source code is licensed under the ISC license.
|
|
88
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
89
|
+
*/const Lh=me("heading-1",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"m17 12 3-2v8",key:"1hhhft"}]]);/**
|
|
90
|
+
* @license lucide-react v0.511.0 - ISC
|
|
91
|
+
*
|
|
92
|
+
* This source code is licensed under the ISC license.
|
|
93
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
94
|
+
*/const Nh=me("heading-2",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M21 18h-4c0-4 4-3 4-6 0-1.5-2-2.5-4-1",key:"9jr5yi"}]]);/**
|
|
95
|
+
* @license lucide-react v0.511.0 - ISC
|
|
96
|
+
*
|
|
97
|
+
* This source code is licensed under the ISC license.
|
|
98
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
99
|
+
*/const Ph=me("heading-3",[["path",{d:"M4 12h8",key:"17cfdx"}],["path",{d:"M4 18V6",key:"1rz3zl"}],["path",{d:"M12 18V6",key:"zqpxq5"}],["path",{d:"M17.5 10.5c1.7-1 3.5 0 3.5 1.5a2 2 0 0 1-2 2",key:"68ncm8"}],["path",{d:"M17 17.5c2 1.5 4 .3 4-1.5a2 2 0 0 0-2-2",key:"1ejuhz"}]]);/**
|
|
100
|
+
* @license lucide-react v0.511.0 - ISC
|
|
101
|
+
*
|
|
102
|
+
* This source code is licensed under the ISC license.
|
|
103
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
104
|
+
*/const Dh=me("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
|
105
|
+
* @license lucide-react v0.511.0 - ISC
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the ISC license.
|
|
108
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/const Mh=me("italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);/**
|
|
110
|
+
* @license lucide-react v0.511.0 - ISC
|
|
111
|
+
*
|
|
112
|
+
* This source code is licensed under the ISC license.
|
|
113
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
114
|
+
*/const zh=me("link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
|
|
115
|
+
* @license lucide-react v0.511.0 - ISC
|
|
116
|
+
*
|
|
117
|
+
* This source code is licensed under the ISC license.
|
|
118
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
119
|
+
*/const Oh=me("list-ordered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/**
|
|
120
|
+
* @license lucide-react v0.511.0 - ISC
|
|
121
|
+
*
|
|
122
|
+
* This source code is licensed under the ISC license.
|
|
123
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
124
|
+
*/const Rh=me("list",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
|
|
125
|
+
* @license lucide-react v0.511.0 - ISC
|
|
126
|
+
*
|
|
127
|
+
* This source code is licensed under the ISC license.
|
|
128
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
129
|
+
*/const Fh=me("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
130
|
+
* @license lucide-react v0.511.0 - ISC
|
|
131
|
+
*
|
|
132
|
+
* This source code is licensed under the ISC license.
|
|
133
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
134
|
+
*/const Bh=me("quote",[["path",{d:"M16 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"rib7q0"}],["path",{d:"M5 3a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2 1 1 0 0 1 1 1v1a2 2 0 0 1-2 2 1 1 0 0 0-1 1v2a1 1 0 0 0 1 1 6 6 0 0 0 6-6V5a2 2 0 0 0-2-2z",key:"1ymkrd"}]]);/**
|
|
135
|
+
* @license lucide-react v0.511.0 - ISC
|
|
136
|
+
*
|
|
137
|
+
* This source code is licensed under the ISC license.
|
|
138
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
139
|
+
*/const $h=me("split",[["path",{d:"M16 3h5v5",key:"1806ms"}],["path",{d:"M8 3H3v5",key:"15dfkv"}],["path",{d:"M12 22v-8.3a4 4 0 0 0-1.172-2.872L3 3",key:"1qrqzj"}],["path",{d:"m15 9 6-6",key:"ko1vev"}]]);/**
|
|
140
|
+
* @license lucide-react v0.511.0 - ISC
|
|
141
|
+
*
|
|
142
|
+
* This source code is licensed under the ISC license.
|
|
143
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
144
|
+
*/const jh=me("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
|
|
145
|
+
* @license lucide-react v0.511.0 - ISC
|
|
146
|
+
*
|
|
147
|
+
* This source code is licensed under the ISC license.
|
|
148
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
149
|
+
*/const Hh=me("strikethrough",[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]]);/**
|
|
150
|
+
* @license lucide-react v0.511.0 - ISC
|
|
151
|
+
*
|
|
152
|
+
* This source code is licensed under the ISC license.
|
|
153
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
154
|
+
*/const Uh=me("table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]);/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */var _r,Qo;function Ko(){if(Qo)return _r;Qo=1;const{entries:e,setPrototypeOf:n,isFrozen:t,getPrototypeOf:r,getOwnPropertyDescriptor:i}=Object;let{freeze:l,seal:o,create:a}=Object,{apply:s,construct:u}=typeof Reflect<"u"&&Reflect;l||(l=function(B){return B}),o||(o=function(B){return B}),s||(s=function(B,re){for(var Y=arguments.length,w=new Array(Y>2?Y-2:0),A=2;A<Y;A++)w[A-2]=arguments[A];return B.apply(re,w)}),u||(u=function(B){for(var re=arguments.length,Y=new Array(re>1?re-1:0),w=1;w<re;w++)Y[w-1]=arguments[w];return new B(...Y)});const f=E(Array.prototype.forEach),c=E(Array.prototype.lastIndexOf),h=E(Array.prototype.pop),p=E(Array.prototype.push),b=E(Array.prototype.splice),C=E(String.prototype.toLowerCase),k=E(String.prototype.toString),x=E(String.prototype.match),T=E(String.prototype.replace),v=E(String.prototype.indexOf),j=E(String.prototype.trim),R=E(Object.prototype.hasOwnProperty),S=E(RegExp.prototype.test),q=U(TypeError);function E(J){return function(B){B instanceof RegExp&&(B.lastIndex=0);for(var re=arguments.length,Y=new Array(re>1?re-1:0),w=1;w<re;w++)Y[w-1]=arguments[w];return s(J,B,Y)}}function U(J){return function(){for(var B=arguments.length,re=new Array(B),Y=0;Y<B;Y++)re[Y]=arguments[Y];return u(J,re)}}function y(J,B){let re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:C;n&&n(J,null);let Y=B.length;for(;Y--;){let w=B[Y];if(typeof w=="string"){const A=re(w);A!==w&&(t(B)||(B[Y]=A),w=A)}J[w]=!0}return J}function D(J){for(let B=0;B<J.length;B++)R(J,B)||(J[B]=null);return J}function N(J){const B=a(null);for(const[re,Y]of e(J))R(J,re)&&(Array.isArray(Y)?B[re]=D(Y):Y&&typeof Y=="object"&&Y.constructor===Object?B[re]=N(Y):B[re]=Y);return B}function G(J,B){for(;J!==null;){const Y=i(J,B);if(Y){if(Y.get)return E(Y.get);if(typeof Y.value=="function")return E(Y.value)}J=r(J)}function re(){return null}return re}const M=l(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),L=l(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),V=l(["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"]),ne=l(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),he=l(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ee=l(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),d=l(["#text"]),ke=l(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),xe=l(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),m=l(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),de=l(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ae=o(/\{\{[\w\W]*|[\w\W]*\}\}/gm),te=o(/<%[\w\W]*|[\w\W]*%>/gm),$e=o(/\$\{[\w\W]*/gm),ze=o(/^data-[\-\w.\u00B7-\uFFFF]+$/),se=o(/^aria-[\-\w]+$/),je=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),oe=o(/^(?:\w+script|data):/i),ge=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fe=o(/^html$/i),He=o(/^[a-z][.\w]*(-[.\w]+)+$/i);var rt=Object.freeze({__proto__:null,ARIA_ATTR:se,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:He,DATA_ATTR:ze,DOCTYPE_NAME:fe,ERB_EXPR:te,IS_ALLOWED_URI:je,IS_SCRIPT_OR_DATA:oe,MUSTACHE_EXPR:ae,TMPLIT_EXPR:$e});const dt={element:1,text:3,progressingInstruction:7,comment:8,document:9},Tn=function(){return typeof window>"u"?null:window},zr=function(B,re){if(typeof B!="object"||typeof B.createPolicy!="function")return null;let Y=null;const w="data-tt-policy-suffix";re&&re.hasAttribute(w)&&(Y=re.getAttribute(w));const A="dompurify"+(Y?"#"+Y:"");try{return B.createPolicy(A,{createHTML(W){return W},createScriptURL(W){return W}})}catch{return console.warn("TrustedTypes policy "+A+" could not be created."),null}},en=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function tn(){let J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Tn();const B=$=>tn($);if(B.version="3.3.1",B.removed=[],!J||!J.document||J.document.nodeType!==dt.document||!J.Element)return B.isSupported=!1,B;let{document:re}=J;const Y=re,w=Y.currentScript,{DocumentFragment:A,HTMLTemplateElement:W,Node:Z,Element:le,NodeFilter:_e,NamedNodeMap:it=J.NamedNodeMap||J.MozNamedAttrMap,HTMLFormElement:Ye,DOMParser:St,trustedTypes:Ze}=J,Ce=le.prototype,mt=G(Ce,"cloneNode"),Xe=G(Ce,"remove"),om=G(Ce,"nextSibling"),lm=G(Ce,"childNodes"),An=G(Ce,"parentNode");if(typeof W=="function"){const $=re.createElement("template");$.content&&$.content.ownerDocument&&(re=$.content.ownerDocument)}let Oe,nn="";const{implementation:Rr,createNodeIterator:am,createDocumentFragment:sm,getElementsByTagName:um}=re,{importNode:cm}=Y;let Re=en();B.isSupported=typeof e=="function"&&typeof An=="function"&&Rr&&Rr.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:Fr,ERB_EXPR:Br,TMPLIT_EXPR:$r,DATA_ATTR:fm,ARIA_ATTR:pm,IS_SCRIPT_OR_DATA:hm,ATTR_WHITESPACE:Pl,CUSTOM_ELEMENT:dm}=rt;let{IS_ALLOWED_URI:Dl}=rt,Te=null;const Ml=y({},[...M,...L,...V,...he,...d]);let Ie=null;const zl=y({},[...ke,...xe,...m,...de]);let be=Object.seal(a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),rn=null,jr=null;const Dt=Object.seal(a(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Ol=!0,Hr=!0,Rl=!1,Fl=!0,Mt=!1,_n=!0,Ct=!1,Ur=!1,Vr=!1,zt=!1,In=!1,Ln=!1,Bl=!0,$l=!1;const mm="user-content-";let qr=!0,on=!1,Ot={},Je=null;const Wr=y({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let jl=null;const Hl=y({},["audio","video","img","source","image","track"]);let Gr=null;const Ul=y({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nn="http://www.w3.org/1998/Math/MathML",Pn="http://www.w3.org/2000/svg",ot="http://www.w3.org/1999/xhtml";let Rt=ot,Yr=!1,Xr=null;const gm=y({},[Nn,Pn,ot],k);let Dn=y({},["mi","mo","mn","ms","mtext"]),Mn=y({},["annotation-xml"]);const bm=y({},["title","style","font","a","script"]);let ln=null;const ym=["application/xhtml+xml","text/html"],km="text/html";let ve=null,Ft=null;const xm=re.createElement("form"),Vl=function(g){return g instanceof RegExp||g instanceof Function},Qr=function(){let g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Ft&&Ft===g)){if((!g||typeof g!="object")&&(g={}),g=N(g),ln=ym.indexOf(g.PARSER_MEDIA_TYPE)===-1?km:g.PARSER_MEDIA_TYPE,ve=ln==="application/xhtml+xml"?k:C,Te=R(g,"ALLOWED_TAGS")?y({},g.ALLOWED_TAGS,ve):Ml,Ie=R(g,"ALLOWED_ATTR")?y({},g.ALLOWED_ATTR,ve):zl,Xr=R(g,"ALLOWED_NAMESPACES")?y({},g.ALLOWED_NAMESPACES,k):gm,Gr=R(g,"ADD_URI_SAFE_ATTR")?y(N(Ul),g.ADD_URI_SAFE_ATTR,ve):Ul,jl=R(g,"ADD_DATA_URI_TAGS")?y(N(Hl),g.ADD_DATA_URI_TAGS,ve):Hl,Je=R(g,"FORBID_CONTENTS")?y({},g.FORBID_CONTENTS,ve):Wr,rn=R(g,"FORBID_TAGS")?y({},g.FORBID_TAGS,ve):N({}),jr=R(g,"FORBID_ATTR")?y({},g.FORBID_ATTR,ve):N({}),Ot=R(g,"USE_PROFILES")?g.USE_PROFILES:!1,Ol=g.ALLOW_ARIA_ATTR!==!1,Hr=g.ALLOW_DATA_ATTR!==!1,Rl=g.ALLOW_UNKNOWN_PROTOCOLS||!1,Fl=g.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Mt=g.SAFE_FOR_TEMPLATES||!1,_n=g.SAFE_FOR_XML!==!1,Ct=g.WHOLE_DOCUMENT||!1,zt=g.RETURN_DOM||!1,In=g.RETURN_DOM_FRAGMENT||!1,Ln=g.RETURN_TRUSTED_TYPE||!1,Vr=g.FORCE_BODY||!1,Bl=g.SANITIZE_DOM!==!1,$l=g.SANITIZE_NAMED_PROPS||!1,qr=g.KEEP_CONTENT!==!1,on=g.IN_PLACE||!1,Dl=g.ALLOWED_URI_REGEXP||je,Rt=g.NAMESPACE||ot,Dn=g.MATHML_TEXT_INTEGRATION_POINTS||Dn,Mn=g.HTML_INTEGRATION_POINTS||Mn,be=g.CUSTOM_ELEMENT_HANDLING||{},g.CUSTOM_ELEMENT_HANDLING&&Vl(g.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(be.tagNameCheck=g.CUSTOM_ELEMENT_HANDLING.tagNameCheck),g.CUSTOM_ELEMENT_HANDLING&&Vl(g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(be.attributeNameCheck=g.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),g.CUSTOM_ELEMENT_HANDLING&&typeof g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(be.allowCustomizedBuiltInElements=g.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Mt&&(Hr=!1),In&&(zt=!0),Ot&&(Te=y({},d),Ie=[],Ot.html===!0&&(y(Te,M),y(Ie,ke)),Ot.svg===!0&&(y(Te,L),y(Ie,xe),y(Ie,de)),Ot.svgFilters===!0&&(y(Te,V),y(Ie,xe),y(Ie,de)),Ot.mathMl===!0&&(y(Te,he),y(Ie,m),y(Ie,de))),g.ADD_TAGS&&(typeof g.ADD_TAGS=="function"?Dt.tagCheck=g.ADD_TAGS:(Te===Ml&&(Te=N(Te)),y(Te,g.ADD_TAGS,ve))),g.ADD_ATTR&&(typeof g.ADD_ATTR=="function"?Dt.attributeCheck=g.ADD_ATTR:(Ie===zl&&(Ie=N(Ie)),y(Ie,g.ADD_ATTR,ve))),g.ADD_URI_SAFE_ATTR&&y(Gr,g.ADD_URI_SAFE_ATTR,ve),g.FORBID_CONTENTS&&(Je===Wr&&(Je=N(Je)),y(Je,g.FORBID_CONTENTS,ve)),g.ADD_FORBID_CONTENTS&&(Je===Wr&&(Je=N(Je)),y(Je,g.ADD_FORBID_CONTENTS,ve)),qr&&(Te["#text"]=!0),Ct&&y(Te,["html","head","body"]),Te.table&&(y(Te,["tbody"]),delete rn.tbody),g.TRUSTED_TYPES_POLICY){if(typeof g.TRUSTED_TYPES_POLICY.createHTML!="function")throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof g.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw q('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Oe=g.TRUSTED_TYPES_POLICY,nn=Oe.createHTML("")}else Oe===void 0&&(Oe=zr(Ze,w)),Oe!==null&&typeof nn=="string"&&(nn=Oe.createHTML(""));l&&l(g),Ft=g}},ql=y({},[...L,...V,...ne]),Wl=y({},[...he,...Ee]),wm=function(g){let I=An(g);(!I||!I.tagName)&&(I={namespaceURI:Rt,tagName:"template"});const F=C(g.tagName),pe=C(I.tagName);return Xr[g.namespaceURI]?g.namespaceURI===Pn?I.namespaceURI===ot?F==="svg":I.namespaceURI===Nn?F==="svg"&&(pe==="annotation-xml"||Dn[pe]):!!ql[F]:g.namespaceURI===Nn?I.namespaceURI===ot?F==="math":I.namespaceURI===Pn?F==="math"&&Mn[pe]:!!Wl[F]:g.namespaceURI===ot?I.namespaceURI===Pn&&!Mn[pe]||I.namespaceURI===Nn&&!Dn[pe]?!1:!Wl[F]&&(bm[F]||!ql[F]):!!(ln==="application/xhtml+xml"&&Xr[g.namespaceURI]):!1},et=function(g){p(B.removed,{element:g});try{An(g).removeChild(g)}catch{Xe(g)}},vt=function(g,I){try{p(B.removed,{attribute:I.getAttributeNode(g),from:I})}catch{p(B.removed,{attribute:null,from:I})}if(I.removeAttribute(g),g==="is")if(zt||In)try{et(I)}catch{}else try{I.setAttribute(g,"")}catch{}},Gl=function(g){let I=null,F=null;if(Vr)g="<remove></remove>"+g;else{const we=x(g,/^[\r\n\t ]+/);F=we&&we[0]}ln==="application/xhtml+xml"&&Rt===ot&&(g='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+g+"</body></html>");const pe=Oe?Oe.createHTML(g):g;if(Rt===ot)try{I=new St().parseFromString(pe,ln)}catch{}if(!I||!I.documentElement){I=Rr.createDocument(Rt,"template",null);try{I.documentElement.innerHTML=Yr?nn:pe}catch{}}const De=I.body||I.documentElement;return g&&F&&De.insertBefore(re.createTextNode(F),De.childNodes[0]||null),Rt===ot?um.call(I,Ct?"html":"body")[0]:Ct?I.documentElement:De},Yl=function(g){return am.call(g.ownerDocument||g,g,_e.SHOW_ELEMENT|_e.SHOW_COMMENT|_e.SHOW_TEXT|_e.SHOW_PROCESSING_INSTRUCTION|_e.SHOW_CDATA_SECTION,null)},Kr=function(g){return g instanceof Ye&&(typeof g.nodeName!="string"||typeof g.textContent!="string"||typeof g.removeChild!="function"||!(g.attributes instanceof it)||typeof g.removeAttribute!="function"||typeof g.setAttribute!="function"||typeof g.namespaceURI!="string"||typeof g.insertBefore!="function"||typeof g.hasChildNodes!="function")},Xl=function(g){return typeof Z=="function"&&g instanceof Z};function lt($,g,I){f($,F=>{F.call(B,g,I,Ft)})}const Ql=function(g){let I=null;if(lt(Re.beforeSanitizeElements,g,null),Kr(g))return et(g),!0;const F=ve(g.nodeName);if(lt(Re.uponSanitizeElement,g,{tagName:F,allowedTags:Te}),_n&&g.hasChildNodes()&&!Xl(g.firstElementChild)&&S(/<[/\w!]/g,g.innerHTML)&&S(/<[/\w!]/g,g.textContent)||g.nodeType===dt.progressingInstruction||_n&&g.nodeType===dt.comment&&S(/<[/\w]/g,g.data))return et(g),!0;if(!(Dt.tagCheck instanceof Function&&Dt.tagCheck(F))&&(!Te[F]||rn[F])){if(!rn[F]&&Zl(F)&&(be.tagNameCheck instanceof RegExp&&S(be.tagNameCheck,F)||be.tagNameCheck instanceof Function&&be.tagNameCheck(F)))return!1;if(qr&&!Je[F]){const pe=An(g)||g.parentNode,De=lm(g)||g.childNodes;if(De&&pe){const we=De.length;for(let Ue=we-1;Ue>=0;--Ue){const at=mt(De[Ue],!0);at.__removalCount=(g.__removalCount||0)+1,pe.insertBefore(at,om(g))}}}return et(g),!0}return g instanceof le&&!wm(g)||(F==="noscript"||F==="noembed"||F==="noframes")&&S(/<\/no(script|embed|frames)/i,g.innerHTML)?(et(g),!0):(Mt&&g.nodeType===dt.text&&(I=g.textContent,f([Fr,Br,$r],pe=>{I=T(I,pe," ")}),g.textContent!==I&&(p(B.removed,{element:g.cloneNode()}),g.textContent=I)),lt(Re.afterSanitizeElements,g,null),!1)},Kl=function(g,I,F){if(Bl&&(I==="id"||I==="name")&&(F in re||F in xm))return!1;if(!(Hr&&!jr[I]&&S(fm,I))){if(!(Ol&&S(pm,I))){if(!(Dt.attributeCheck instanceof Function&&Dt.attributeCheck(I,g))){if(!Ie[I]||jr[I]){if(!(Zl(g)&&(be.tagNameCheck instanceof RegExp&&S(be.tagNameCheck,g)||be.tagNameCheck instanceof Function&&be.tagNameCheck(g))&&(be.attributeNameCheck instanceof RegExp&&S(be.attributeNameCheck,I)||be.attributeNameCheck instanceof Function&&be.attributeNameCheck(I,g))||I==="is"&&be.allowCustomizedBuiltInElements&&(be.tagNameCheck instanceof RegExp&&S(be.tagNameCheck,F)||be.tagNameCheck instanceof Function&&be.tagNameCheck(F))))return!1}else if(!Gr[I]){if(!S(Dl,T(F,Pl,""))){if(!((I==="src"||I==="xlink:href"||I==="href")&&g!=="script"&&v(F,"data:")===0&&jl[g])){if(!(Rl&&!S(hm,T(F,Pl,"")))){if(F)return!1}}}}}}}return!0},Zl=function(g){return g!=="annotation-xml"&&x(g,dm)},Jl=function(g){lt(Re.beforeSanitizeAttributes,g,null);const{attributes:I}=g;if(!I||Kr(g))return;const F={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ie,forceKeepAttr:void 0};let pe=I.length;for(;pe--;){const De=I[pe],{name:we,namespaceURI:Ue,value:at}=De,Bt=ve(we),Zr=at;let Le=we==="value"?Zr:j(Zr);if(F.attrName=Bt,F.attrValue=Le,F.keepAttr=!0,F.forceKeepAttr=void 0,lt(Re.uponSanitizeAttribute,g,F),Le=F.attrValue,$l&&(Bt==="id"||Bt==="name")&&(vt(we,g),Le=mm+Le),_n&&S(/((--!?|])>)|<\/(style|title|textarea)/i,Le)){vt(we,g);continue}if(Bt==="attributename"&&x(Le,"href")){vt(we,g);continue}if(F.forceKeepAttr)continue;if(!F.keepAttr){vt(we,g);continue}if(!Fl&&S(/\/>/i,Le)){vt(we,g);continue}Mt&&f([Fr,Br,$r],ta=>{Le=T(Le,ta," ")});const ea=ve(g.nodeName);if(!Kl(ea,Bt,Le)){vt(we,g);continue}if(Oe&&typeof Ze=="object"&&typeof Ze.getAttributeType=="function"&&!Ue)switch(Ze.getAttributeType(ea,Bt)){case"TrustedHTML":{Le=Oe.createHTML(Le);break}case"TrustedScriptURL":{Le=Oe.createScriptURL(Le);break}}if(Le!==Zr)try{Ue?g.setAttributeNS(Ue,we,Le):g.setAttribute(we,Le),Kr(g)?et(g):h(B.removed)}catch{vt(we,g)}}lt(Re.afterSanitizeAttributes,g,null)},Sm=function $(g){let I=null;const F=Yl(g);for(lt(Re.beforeSanitizeShadowDOM,g,null);I=F.nextNode();)lt(Re.uponSanitizeShadowNode,I,null),Ql(I),Jl(I),I.content instanceof A&&$(I.content);lt(Re.afterSanitizeShadowDOM,g,null)};return B.sanitize=function($){let g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},I=null,F=null,pe=null,De=null;if(Yr=!$,Yr&&($="<!-->"),typeof $!="string"&&!Xl($))if(typeof $.toString=="function"){if($=$.toString(),typeof $!="string")throw q("dirty is not a string, aborting")}else throw q("toString is not a function");if(!B.isSupported)return $;if(Ur||Qr(g),B.removed=[],typeof $=="string"&&(on=!1),on){if($.nodeName){const at=ve($.nodeName);if(!Te[at]||rn[at])throw q("root node is forbidden and cannot be sanitized in-place")}}else if($ instanceof Z)I=Gl("<!---->"),F=I.ownerDocument.importNode($,!0),F.nodeType===dt.element&&F.nodeName==="BODY"||F.nodeName==="HTML"?I=F:I.appendChild(F);else{if(!zt&&!Mt&&!Ct&&$.indexOf("<")===-1)return Oe&&Ln?Oe.createHTML($):$;if(I=Gl($),!I)return zt?null:Ln?nn:""}I&&Vr&&et(I.firstChild);const we=Yl(on?$:I);for(;pe=we.nextNode();)Ql(pe),Jl(pe),pe.content instanceof A&&Sm(pe.content);if(on)return $;if(zt){if(In)for(De=sm.call(I.ownerDocument);I.firstChild;)De.appendChild(I.firstChild);else De=I;return(Ie.shadowroot||Ie.shadowrootmode)&&(De=cm.call(Y,De,!0)),De}let Ue=Ct?I.outerHTML:I.innerHTML;return Ct&&Te["!doctype"]&&I.ownerDocument&&I.ownerDocument.doctype&&I.ownerDocument.doctype.name&&S(fe,I.ownerDocument.doctype.name)&&(Ue="<!DOCTYPE "+I.ownerDocument.doctype.name+`>
|
|
155
|
+
`+Ue),Mt&&f([Fr,Br,$r],at=>{Ue=T(Ue,at," ")}),Oe&&Ln?Oe.createHTML(Ue):Ue},B.setConfig=function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Qr($),Ur=!0},B.clearConfig=function(){Ft=null,Ur=!1},B.isValidAttribute=function($,g,I){Ft||Qr({});const F=ve($),pe=ve(g);return Kl(F,pe,I)},B.addHook=function($,g){typeof g=="function"&&p(Re[$],g)},B.removeHook=function($,g){if(g!==void 0){const I=c(Re[$],g);return I===-1?void 0:b(Re[$],I,1)[0]}return h(Re[$])},B.removeHooks=function($){Re[$]=[]},B.removeAllHooks=function(){Re=en()},B}var Or=tn();return _r=Or,_r}var Ir,Zo;function Vh(){return Zo||(Zo=1,Ir=self.DOMPurify||(self.DOMPurify=Ko().default||Ko())),Ir}var qh=Vh();const Wh=jn(qh);function Jo(e,n){if(typeof e=="function")return e(n);e!=null&&(e.current=n)}function Gh(...e){return n=>{let t=!1;const r=e.map(i=>{const l=Jo(i,n);return!t&&typeof l=="function"&&(t=!0),l});if(t)return()=>{for(let i=0;i<r.length;i++){const l=r[i];typeof l=="function"?l():Jo(e[i],null)}}}}var Yh=Symbol.for("react.lazy"),wn=Ae[" use ".trim().toString()];function Xh(e){return typeof e=="object"&&e!==null&&"then"in e}function el(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===Yh&&"_payload"in e&&Xh(e._payload)}function tl(e){const n=Qh(e),t=Ae.forwardRef((r,i)=>{let{children:l,...o}=r;el(l)&&typeof wn=="function"&&(l=wn(l._payload));const a=Ae.Children.toArray(l),s=a.find(Zh);if(s){const u=s.props.children,f=a.map(c=>c===s?Ae.Children.count(u)>1?Ae.Children.only(null):Ae.isValidElement(u)?u.props.children:null:c);return P.jsx(n,{...o,ref:i,children:Ae.isValidElement(u)?Ae.cloneElement(u,void 0,f):null})}return P.jsx(n,{...o,ref:i,children:l})});return t.displayName=`${e}.Slot`,t}var nl=tl("Slot");function Qh(e){const n=Ae.forwardRef((t,r)=>{let{children:i,...l}=t;if(el(i)&&typeof wn=="function"&&(i=wn(i._payload)),Ae.isValidElement(i)){const o=ed(i),a=Jh(l,i.props);return i.type!==Ae.Fragment&&(a.ref=r?Gh(r,o):o),Ae.cloneElement(i,a)}return Ae.Children.count(i)>1?Ae.Children.only(null):null});return n.displayName=`${e}.SlotClone`,n}var Kh=Symbol("radix.slottable");function Zh(e){return Ae.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Kh}function Jh(e,n){const t={...n};for(const r in n){const i=e[r],l=n[r];/^on[A-Z]/.test(r)?i&&l?t[r]=(...a)=>{const s=l(...a);return i(...a),s}:i&&(t[r]=i):r==="style"?t[r]={...i,...l}:r==="className"&&(t[r]=[i,l].filter(Boolean).join(" "))}return{...e,...t}}function ed(e){var r,i;let n=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,t=n&&"isReactWarning"in n&&n.isReactWarning;return t?e.ref:(n=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,t=n&&"isReactWarning"in n&&n.isReactWarning,t?e.props.ref:e.props.ref||e.ref)}function rl(e){var n,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(n=0;n<i;n++)e[n]&&(t=rl(e[n]))&&(r&&(r+=" "),r+=t)}else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function il(){for(var e,n,t=0,r="",i=arguments.length;t<i;t++)(e=arguments[t])&&(n=rl(e))&&(r&&(r+=" "),r+=n);return r}const ol=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,ll=il,al=(e,n)=>t=>{var r;if((n==null?void 0:n.variants)==null)return ll(e,t==null?void 0:t.class,t==null?void 0:t.className);const{variants:i,defaultVariants:l}=n,o=Object.keys(i).map(u=>{const f=t==null?void 0:t[u],c=l==null?void 0:l[u];if(f===null)return null;const h=ol(f)||ol(c);return i[u][h]}),a=t&&Object.entries(t).reduce((u,f)=>{let[c,h]=f;return h===void 0||(u[c]=h),u},{}),s=n==null||(r=n.compoundVariants)===null||r===void 0?void 0:r.reduce((u,f)=>{let{class:c,className:h,...p}=f;return Object.entries(p).every(b=>{let[C,k]=b;return Array.isArray(k)?k.includes({...l,...a}[C]):{...l,...a}[C]===k})?[...u,c,h]:u},[]);return ll(e,o,s,t==null?void 0:t.class,t==null?void 0:t.className)},td=(e,n)=>{const t=new Array(e.length+n.length);for(let r=0;r<e.length;r++)t[r]=e[r];for(let r=0;r<n.length;r++)t[e.length+r]=n[r];return t},nd=(e,n)=>({classGroupId:e,validator:n}),sl=(e=new Map,n=null,t)=>({nextPart:e,validators:n,classGroupId:t}),Sn="-",ul=[],rd="arbitrary..",id=e=>{const n=ld(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return od(o);const a=o.split(Sn),s=a[0]===""&&a.length>1?1:0;return cl(a,s,n)},getConflictingClassGroupIds:(o,a)=>{if(a){const s=r[o],u=t[o];return s?u?td(u,s):s:u||ul}return t[o]||ul}}},cl=(e,n,t)=>{if(e.length-n===0)return t.classGroupId;const i=e[n],l=t.nextPart.get(i);if(l){const u=cl(e,n+1,l);if(u)return u}const o=t.validators;if(o===null)return;const a=n===0?e.join(Sn):e.slice(n).join(Sn),s=o.length;for(let u=0;u<s;u++){const f=o[u];if(f.validator(a))return f.classGroupId}},od=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const n=e.slice(1,-1),t=n.indexOf(":"),r=n.slice(0,t);return r?rd+r:void 0})(),ld=e=>{const{theme:n,classGroups:t}=e;return ad(t,n)},ad=(e,n)=>{const t=sl();for(const r in e){const i=e[r];Lr(i,t,r,n)}return t},Lr=(e,n,t,r)=>{const i=e.length;for(let l=0;l<i;l++){const o=e[l];sd(o,n,t,r)}},sd=(e,n,t,r)=>{if(typeof e=="string"){ud(e,n,t);return}if(typeof e=="function"){cd(e,n,t,r);return}fd(e,n,t,r)},ud=(e,n,t)=>{const r=e===""?n:fl(n,e);r.classGroupId=t},cd=(e,n,t,r)=>{if(pd(e)){Lr(e(r),n,t,r);return}n.validators===null&&(n.validators=[]),n.validators.push(nd(t,e))},fd=(e,n,t,r)=>{const i=Object.entries(e),l=i.length;for(let o=0;o<l;o++){const[a,s]=i[o];Lr(s,fl(n,a),t,r)}},fl=(e,n)=>{let t=e;const r=n.split(Sn),i=r.length;for(let l=0;l<i;l++){const o=r[l];let a=t.nextPart.get(o);a||(a=sl(),t.nextPart.set(o,a)),t=a}return t},pd=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,hd=e=>{if(e<1)return{get:()=>{},set:()=>{}};let n=0,t=Object.create(null),r=Object.create(null);const i=(l,o)=>{t[l]=o,n++,n>e&&(n=0,r=t,t=Object.create(null))};return{get(l){let o=t[l];if(o!==void 0)return o;if((o=r[l])!==void 0)return i(l,o),o},set(l,o){l in t?t[l]=o:i(l,o)}}},Nr="!",pl=":",dd=[],hl=(e,n,t,r,i)=>({modifiers:e,hasImportantModifier:n,baseClassName:t,maybePostfixModifierPosition:r,isExternal:i}),md=e=>{const{prefix:n,experimentalParseClassName:t}=e;let r=i=>{const l=[];let o=0,a=0,s=0,u;const f=i.length;for(let C=0;C<f;C++){const k=i[C];if(o===0&&a===0){if(k===pl){l.push(i.slice(s,C)),s=C+1;continue}if(k==="/"){u=C;continue}}k==="["?o++:k==="]"?o--:k==="("?a++:k===")"&&a--}const c=l.length===0?i:i.slice(s);let h=c,p=!1;c.endsWith(Nr)?(h=c.slice(0,-1),p=!0):c.startsWith(Nr)&&(h=c.slice(1),p=!0);const b=u&&u>s?u-s:void 0;return hl(l,p,h,b)};if(n){const i=n+pl,l=r;r=o=>o.startsWith(i)?l(o.slice(i.length)):hl(dd,!1,o,void 0,!0)}if(t){const i=r;r=l=>t({className:l,parseClassName:i})}return r},gd=e=>{const n=new Map;return e.orderSensitiveModifiers.forEach((t,r)=>{n.set(t,1e6+r)}),t=>{const r=[];let i=[];for(let l=0;l<t.length;l++){const o=t[l],a=o[0]==="[",s=n.has(o);a||s?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(o)):i.push(o)}return i.length>0&&(i.sort(),r.push(...i)),r}},bd=e=>({cache:hd(e.cacheSize),parseClassName:md(e),sortModifiers:gd(e),...id(e)}),yd=/\s+/,kd=(e,n)=>{const{parseClassName:t,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:l}=n,o=[],a=e.trim().split(yd);let s="";for(let u=a.length-1;u>=0;u-=1){const f=a[u],{isExternal:c,modifiers:h,hasImportantModifier:p,baseClassName:b,maybePostfixModifierPosition:C}=t(f);if(c){s=f+(s.length>0?" "+s:s);continue}let k=!!C,x=r(k?b.substring(0,C):b);if(!x){if(!k){s=f+(s.length>0?" "+s:s);continue}if(x=r(b),!x){s=f+(s.length>0?" "+s:s);continue}k=!1}const T=h.length===0?"":h.length===1?h[0]:l(h).join(":"),v=p?T+Nr:T,j=v+x;if(o.indexOf(j)>-1)continue;o.push(j);const R=i(x,k);for(let S=0;S<R.length;++S){const q=R[S];o.push(v+q)}s=f+(s.length>0?" "+s:s)}return s},xd=(...e)=>{let n=0,t,r,i="";for(;n<e.length;)(t=e[n++])&&(r=dl(t))&&(i&&(i+=" "),i+=r);return i},dl=e=>{if(typeof e=="string")return e;let n,t="";for(let r=0;r<e.length;r++)e[r]&&(n=dl(e[r]))&&(t&&(t+=" "),t+=n);return t},wd=(e,...n)=>{let t,r,i,l;const o=s=>{const u=n.reduce((f,c)=>c(f),e());return t=bd(u),r=t.cache.get,i=t.cache.set,l=a,a(s)},a=s=>{const u=r(s);if(u)return u;const f=kd(s,t);return i(s,f),f};return l=o,(...s)=>l(xd(...s))},Sd=[],Se=e=>{const n=t=>t[e]||Sd;return n.isThemeGetter=!0,n},ml=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,gl=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Cd=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,vd=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ed=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Td=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ad=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,_d=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ft=e=>Cd.test(e),K=e=>!!e&&!Number.isNaN(Number(e)),pt=e=>!!e&&Number.isInteger(Number(e)),Pr=e=>e.endsWith("%")&&K(e.slice(0,-1)),nt=e=>vd.test(e),bl=()=>!0,Id=e=>Ed.test(e)&&!Td.test(e),Dr=()=>!1,Ld=e=>Ad.test(e),Nd=e=>_d.test(e),Pd=e=>!z(e)&&!O(e),Dd=e=>ht(e,Cl,Dr),z=e=>ml.test(e),kt=e=>ht(e,vl,Id),yl=e=>ht(e,jd,K),Md=e=>ht(e,Tl,bl),zd=e=>ht(e,El,Dr),kl=e=>ht(e,wl,Dr),Od=e=>ht(e,Sl,Nd),Cn=e=>ht(e,Al,Ld),O=e=>gl.test(e),Zt=e=>xt(e,vl),Rd=e=>xt(e,El),xl=e=>xt(e,wl),Fd=e=>xt(e,Cl),Bd=e=>xt(e,Sl),vn=e=>xt(e,Al,!0),$d=e=>xt(e,Tl,!0),ht=(e,n,t)=>{const r=ml.exec(e);return r?r[1]?n(r[1]):t(r[2]):!1},xt=(e,n,t=!1)=>{const r=gl.exec(e);return r?r[1]?n(r[1]):t:!1},wl=e=>e==="position"||e==="percentage",Sl=e=>e==="image"||e==="url",Cl=e=>e==="length"||e==="size"||e==="bg-size",vl=e=>e==="length",jd=e=>e==="number",El=e=>e==="family-name",Tl=e=>e==="number"||e==="weight",Al=e=>e==="shadow",Hd=wd(()=>{const e=Se("color"),n=Se("font"),t=Se("text"),r=Se("font-weight"),i=Se("tracking"),l=Se("leading"),o=Se("breakpoint"),a=Se("container"),s=Se("spacing"),u=Se("radius"),f=Se("shadow"),c=Se("inset-shadow"),h=Se("text-shadow"),p=Se("drop-shadow"),b=Se("blur"),C=Se("perspective"),k=Se("aspect"),x=Se("ease"),T=Se("animate"),v=()=>["auto","avoid","all","avoid-page","page","left","right","column"],j=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[...j(),O,z],S=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],E=()=>[O,z,s],U=()=>[ft,"full","auto",...E()],y=()=>[pt,"none","subgrid",O,z],D=()=>["auto",{span:["full",pt,O,z]},pt,O,z],N=()=>[pt,"auto",O,z],G=()=>["auto","min","max","fr",O,z],M=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],V=()=>["auto",...E()],ne=()=>[ft,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...E()],he=()=>[ft,"screen","full","dvw","lvw","svw","min","max","fit",...E()],Ee=()=>[ft,"screen","full","lh","dvh","lvh","svh","min","max","fit",...E()],d=()=>[e,O,z],ke=()=>[...j(),xl,kl,{position:[O,z]}],xe=()=>["no-repeat",{repeat:["","x","y","space","round"]}],m=()=>["auto","cover","contain",Fd,Dd,{size:[O,z]}],de=()=>[Pr,Zt,kt],ae=()=>["","none","full",u,O,z],te=()=>["",K,Zt,kt],$e=()=>["solid","dashed","dotted","double"],ze=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],se=()=>[K,Pr,xl,kl],je=()=>["","none",b,O,z],oe=()=>["none",K,O,z],ge=()=>["none",K,O,z],fe=()=>[K,O,z],He=()=>[ft,"full",...E()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[nt],breakpoint:[nt],color:[bl],container:[nt],"drop-shadow":[nt],ease:["in","out","in-out"],font:[Pd],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[nt],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[nt],shadow:[nt],spacing:["px",K],text:[nt],"text-shadow":[nt],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ft,z,O,k]}],container:["container"],columns:[{columns:[K,z,O,a]}],"break-after":[{"break-after":v()}],"break-before":[{"break-before":v()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:U()}],"inset-x":[{"inset-x":U()}],"inset-y":[{"inset-y":U()}],start:[{"inset-s":U(),start:U()}],end:[{"inset-e":U(),end:U()}],"inset-bs":[{"inset-bs":U()}],"inset-be":[{"inset-be":U()}],top:[{top:U()}],right:[{right:U()}],bottom:[{bottom:U()}],left:[{left:U()}],visibility:["visible","invisible","collapse"],z:[{z:[pt,"auto",O,z]}],basis:[{basis:[ft,"full","auto",a,...E()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[K,ft,"auto","initial","none",z]}],grow:[{grow:["",K,O,z]}],shrink:[{shrink:["",K,O,z]}],order:[{order:[pt,"first","last","none",O,z]}],"grid-cols":[{"grid-cols":y()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":N()}],"col-end":[{"col-end":N()}],"grid-rows":[{"grid-rows":y()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":N()}],"row-end":[{"row-end":N()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":G()}],"auto-rows":[{"auto-rows":G()}],gap:[{gap:E()}],"gap-x":[{"gap-x":E()}],"gap-y":[{"gap-y":E()}],"justify-content":[{justify:[...M(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...M()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":M()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:E()}],px:[{px:E()}],py:[{py:E()}],ps:[{ps:E()}],pe:[{pe:E()}],pbs:[{pbs:E()}],pbe:[{pbe:E()}],pt:[{pt:E()}],pr:[{pr:E()}],pb:[{pb:E()}],pl:[{pl:E()}],m:[{m:V()}],mx:[{mx:V()}],my:[{my:V()}],ms:[{ms:V()}],me:[{me:V()}],mbs:[{mbs:V()}],mbe:[{mbe:V()}],mt:[{mt:V()}],mr:[{mr:V()}],mb:[{mb:V()}],ml:[{ml:V()}],"space-x":[{"space-x":E()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":E()}],"space-y-reverse":["space-y-reverse"],size:[{size:ne()}],"inline-size":[{inline:["auto",...he()]}],"min-inline-size":[{"min-inline":["auto",...he()]}],"max-inline-size":[{"max-inline":["none",...he()]}],"block-size":[{block:["auto",...Ee()]}],"min-block-size":[{"min-block":["auto",...Ee()]}],"max-block-size":[{"max-block":["none",...Ee()]}],w:[{w:[a,"screen",...ne()]}],"min-w":[{"min-w":[a,"screen","none",...ne()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[o]},...ne()]}],h:[{h:["screen","lh",...ne()]}],"min-h":[{"min-h":["screen","lh","none",...ne()]}],"max-h":[{"max-h":["screen","lh",...ne()]}],"font-size":[{text:["base",t,Zt,kt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,$d,Md]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Pr,z]}],"font-family":[{font:[Rd,zd,n]}],"font-features":[{"font-features":[z]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,O,z]}],"line-clamp":[{"line-clamp":[K,"none",O,yl]}],leading:[{leading:[l,...E()]}],"list-image":[{"list-image":["none",O,z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",O,z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:d()}],"text-color":[{text:d()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$e(),"wavy"]}],"text-decoration-thickness":[{decoration:[K,"from-font","auto",O,kt]}],"text-decoration-color":[{decoration:d()}],"underline-offset":[{"underline-offset":[K,"auto",O,z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:E()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",O,z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",O,z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ke()}],"bg-repeat":[{bg:xe()}],"bg-size":[{bg:m()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},pt,O,z],radial:["",O,z],conic:[pt,O,z]},Bd,Od]}],"bg-color":[{bg:d()}],"gradient-from-pos":[{from:de()}],"gradient-via-pos":[{via:de()}],"gradient-to-pos":[{to:de()}],"gradient-from":[{from:d()}],"gradient-via":[{via:d()}],"gradient-to":[{to:d()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-bs":[{"border-bs":te()}],"border-w-be":[{"border-be":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$e(),"hidden","none"]}],"divide-style":[{divide:[...$e(),"hidden","none"]}],"border-color":[{border:d()}],"border-color-x":[{"border-x":d()}],"border-color-y":[{"border-y":d()}],"border-color-s":[{"border-s":d()}],"border-color-e":[{"border-e":d()}],"border-color-bs":[{"border-bs":d()}],"border-color-be":[{"border-be":d()}],"border-color-t":[{"border-t":d()}],"border-color-r":[{"border-r":d()}],"border-color-b":[{"border-b":d()}],"border-color-l":[{"border-l":d()}],"divide-color":[{divide:d()}],"outline-style":[{outline:[...$e(),"none","hidden"]}],"outline-offset":[{"outline-offset":[K,O,z]}],"outline-w":[{outline:["",K,Zt,kt]}],"outline-color":[{outline:d()}],shadow:[{shadow:["","none",f,vn,Cn]}],"shadow-color":[{shadow:d()}],"inset-shadow":[{"inset-shadow":["none",c,vn,Cn]}],"inset-shadow-color":[{"inset-shadow":d()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:d()}],"ring-offset-w":[{"ring-offset":[K,kt]}],"ring-offset-color":[{"ring-offset":d()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":d()}],"text-shadow":[{"text-shadow":["none",h,vn,Cn]}],"text-shadow-color":[{"text-shadow":d()}],opacity:[{opacity:[K,O,z]}],"mix-blend":[{"mix-blend":[...ze(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ze()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[K]}],"mask-image-linear-from-pos":[{"mask-linear-from":se()}],"mask-image-linear-to-pos":[{"mask-linear-to":se()}],"mask-image-linear-from-color":[{"mask-linear-from":d()}],"mask-image-linear-to-color":[{"mask-linear-to":d()}],"mask-image-t-from-pos":[{"mask-t-from":se()}],"mask-image-t-to-pos":[{"mask-t-to":se()}],"mask-image-t-from-color":[{"mask-t-from":d()}],"mask-image-t-to-color":[{"mask-t-to":d()}],"mask-image-r-from-pos":[{"mask-r-from":se()}],"mask-image-r-to-pos":[{"mask-r-to":se()}],"mask-image-r-from-color":[{"mask-r-from":d()}],"mask-image-r-to-color":[{"mask-r-to":d()}],"mask-image-b-from-pos":[{"mask-b-from":se()}],"mask-image-b-to-pos":[{"mask-b-to":se()}],"mask-image-b-from-color":[{"mask-b-from":d()}],"mask-image-b-to-color":[{"mask-b-to":d()}],"mask-image-l-from-pos":[{"mask-l-from":se()}],"mask-image-l-to-pos":[{"mask-l-to":se()}],"mask-image-l-from-color":[{"mask-l-from":d()}],"mask-image-l-to-color":[{"mask-l-to":d()}],"mask-image-x-from-pos":[{"mask-x-from":se()}],"mask-image-x-to-pos":[{"mask-x-to":se()}],"mask-image-x-from-color":[{"mask-x-from":d()}],"mask-image-x-to-color":[{"mask-x-to":d()}],"mask-image-y-from-pos":[{"mask-y-from":se()}],"mask-image-y-to-pos":[{"mask-y-to":se()}],"mask-image-y-from-color":[{"mask-y-from":d()}],"mask-image-y-to-color":[{"mask-y-to":d()}],"mask-image-radial":[{"mask-radial":[O,z]}],"mask-image-radial-from-pos":[{"mask-radial-from":se()}],"mask-image-radial-to-pos":[{"mask-radial-to":se()}],"mask-image-radial-from-color":[{"mask-radial-from":d()}],"mask-image-radial-to-color":[{"mask-radial-to":d()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":j()}],"mask-image-conic-pos":[{"mask-conic":[K]}],"mask-image-conic-from-pos":[{"mask-conic-from":se()}],"mask-image-conic-to-pos":[{"mask-conic-to":se()}],"mask-image-conic-from-color":[{"mask-conic-from":d()}],"mask-image-conic-to-color":[{"mask-conic-to":d()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ke()}],"mask-repeat":[{mask:xe()}],"mask-size":[{mask:m()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",O,z]}],filter:[{filter:["","none",O,z]}],blur:[{blur:je()}],brightness:[{brightness:[K,O,z]}],contrast:[{contrast:[K,O,z]}],"drop-shadow":[{"drop-shadow":["","none",p,vn,Cn]}],"drop-shadow-color":[{"drop-shadow":d()}],grayscale:[{grayscale:["",K,O,z]}],"hue-rotate":[{"hue-rotate":[K,O,z]}],invert:[{invert:["",K,O,z]}],saturate:[{saturate:[K,O,z]}],sepia:[{sepia:["",K,O,z]}],"backdrop-filter":[{"backdrop-filter":["","none",O,z]}],"backdrop-blur":[{"backdrop-blur":je()}],"backdrop-brightness":[{"backdrop-brightness":[K,O,z]}],"backdrop-contrast":[{"backdrop-contrast":[K,O,z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",K,O,z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[K,O,z]}],"backdrop-invert":[{"backdrop-invert":["",K,O,z]}],"backdrop-opacity":[{"backdrop-opacity":[K,O,z]}],"backdrop-saturate":[{"backdrop-saturate":[K,O,z]}],"backdrop-sepia":[{"backdrop-sepia":["",K,O,z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":E()}],"border-spacing-x":[{"border-spacing-x":E()}],"border-spacing-y":[{"border-spacing-y":E()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",O,z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[K,"initial",O,z]}],ease:[{ease:["linear","initial",x,O,z]}],delay:[{delay:[K,O,z]}],animate:[{animate:["none",T,O,z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[C,O,z]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:ge()}],"scale-x":[{"scale-x":ge()}],"scale-y":[{"scale-y":ge()}],"scale-z":[{"scale-z":ge()}],"scale-3d":["scale-3d"],skew:[{skew:fe()}],"skew-x":[{"skew-x":fe()}],"skew-y":[{"skew-y":fe()}],transform:[{transform:[O,z,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:He()}],"translate-x":[{"translate-x":He()}],"translate-y":[{"translate-y":He()}],"translate-z":[{"translate-z":He()}],"translate-none":["translate-none"],accent:[{accent:d()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:d()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",O,z]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":E()}],"scroll-mx":[{"scroll-mx":E()}],"scroll-my":[{"scroll-my":E()}],"scroll-ms":[{"scroll-ms":E()}],"scroll-me":[{"scroll-me":E()}],"scroll-mbs":[{"scroll-mbs":E()}],"scroll-mbe":[{"scroll-mbe":E()}],"scroll-mt":[{"scroll-mt":E()}],"scroll-mr":[{"scroll-mr":E()}],"scroll-mb":[{"scroll-mb":E()}],"scroll-ml":[{"scroll-ml":E()}],"scroll-p":[{"scroll-p":E()}],"scroll-px":[{"scroll-px":E()}],"scroll-py":[{"scroll-py":E()}],"scroll-ps":[{"scroll-ps":E()}],"scroll-pe":[{"scroll-pe":E()}],"scroll-pbs":[{"scroll-pbs":E()}],"scroll-pbe":[{"scroll-pbe":E()}],"scroll-pt":[{"scroll-pt":E()}],"scroll-pr":[{"scroll-pr":E()}],"scroll-pb":[{"scroll-pb":E()}],"scroll-pl":[{"scroll-pl":E()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",O,z]}],fill:[{fill:["none",...d()]}],"stroke-w":[{stroke:[K,Zt,kt,yl]}],stroke:[{stroke:["none",...d()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function Jt(...e){return Hd(il(e))}const Ud=al("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function Vd({className:e,variant:n,asChild:t=!1,...r}){const i=t?nl:"span";return P.jsx(i,{"data-slot":"badge",className:Jt(Ud({variant:n}),e),...r})}const qd=al("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}});function Pt({className:e,variant:n,size:t,asChild:r=!1,...i}){const l=r?nl:"button";return P.jsx(l,{"data-slot":"button",className:Jt(qd({variant:n,size:t,className:e})),...i})}var Wd=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Gd=Wd.reduce((e,n)=>{const t=tl(`Primitive.${n}`),r=Ae.forwardRef((i,l)=>{const{asChild:o,...a}=i,s=o?t:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),P.jsx(s,{...a,ref:l})});return r.displayName=`Primitive.${n}`,{...e,[n]:r}},{}),Yd="Separator",_l="horizontal",Xd=["horizontal","vertical"],Il=Ae.forwardRef((e,n)=>{const{decorative:t,orientation:r=_l,...i}=e,l=Qd(r)?r:_l,a=t?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return P.jsx(Gd.div,{"data-orientation":l,...a,...i,ref:n})});Il.displayName=Yd;function Qd(e){return Xd.includes(e)}var Kd=Il;function Ll({className:e,orientation:n="horizontal",decorative:t=!0,...r}){return P.jsx(Kd,{"data-slot":"separator",decorative:t,orientation:n,className:Jt("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...r})}function Zd({className:e,...n}){return P.jsx("div",{"data-slot":"card",className:Jt("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...n})}function Jd({className:e,...n}){return P.jsx("div",{"data-slot":"card-content",className:Jt("px-6",e),...n})}function em({actions:e}){const n=[{icon:vh,title:"Bold (Ctrl+B)",action:e.insertBold},{icon:Mh,title:"Italic (Ctrl+I)",action:e.insertItalic},{icon:Hh,title:"Strikethrough",action:e.insertStrikethrough}],t=[{icon:Lh,title:"Heading 1",action:()=>e.insertHeading(1)},{icon:Nh,title:"Heading 2",action:()=>e.insertHeading(2)},{icon:Ph,title:"Heading 3",action:()=>e.insertHeading(3)}],r=[{icon:Rh,title:"Unordered List",action:e.insertUnorderedList},{icon:Oh,title:"Ordered List",action:e.insertOrderedList}],i=[{icon:Bh,title:"Blockquote",action:e.insertBlockquote},{icon:Eh,title:"Inline Code",action:e.insertInlineCode},{icon:Ih,title:"Code Block",action:e.insertCodeBlock},{icon:Fh,title:"Horizontal Rule",action:e.insertHorizontalRule}],l=[{icon:zh,title:"Link",action:e.insertLink},{icon:Dh,title:"Image",action:e.insertImage},{icon:Uh,title:"Table",action:e.insertTable}],o=[n,t,r,i,l];return P.jsx("div",{className:"flex items-center gap-0.5 px-3 py-1.5 border-b bg-muted/30 overflow-x-auto",children:o.map((a,s)=>P.jsxs("div",{className:"flex items-center gap-0.5",children:[s>0&&P.jsx(Ll,{orientation:"vertical",className:"h-5 mx-1"}),a.map((u,f)=>P.jsx(Pt,{variant:"ghost",size:"sm",onClick:c=>{c.preventDefault(),u.action()},title:u.title,className:"h-7 w-7 p-0",type:"button",children:P.jsx(u.icon,{className:"w-4 h-4"})},f))]},s))})}function wt(e,n,t,r,i){const{selectionStart:l,selectionEnd:o,value:a}=e,u=a.substring(l,o)||i,f=a.substring(0,l)+t+u+r+a.substring(o);n(f),requestAnimationFrame(()=>{e.focus();const c=l+t.length,h=c+u.length;e.setSelectionRange(c,h)})}function En(e,n,t){const{selectionStart:r,value:i}=e,l=i.lastIndexOf(`
|
|
156
|
+
`,r-1)+1,o=i.substring(0,l)+t+i.substring(l);n(o),requestAnimationFrame(()=>{e.focus(),e.setSelectionRange(r+t.length,r+t.length)})}function Mr(e,n,t,r){const{selectionStart:i,selectionEnd:l,value:o}=e,s=i>0&&o[i-1]!==`
|
|
157
|
+
`?`
|
|
158
|
+
`:"",u=o.substring(0,i)+s+t+o.substring(l);n(u),requestAnimationFrame(()=>{e.focus();const f=i+s.length+r;e.setSelectionRange(f,f)})}function tm(e,n){const t=Q.useCallback(()=>e.current,[e]),r=Q.useCallback(()=>{const k=t();k&&wt(k,n,"**","**","bold text")},[t,n]),i=Q.useCallback(()=>{const k=t();k&&wt(k,n,"*","*","italic text")},[t,n]),l=Q.useCallback(()=>{const k=t();k&&wt(k,n,"~~","~~","strikethrough text")},[t,n]),o=Q.useCallback(()=>{const k=t();k&&wt(k,n,"`","`","code")},[t,n]),a=Q.useCallback(k=>{const x=t();if(!x)return;const T="#".repeat(k)+" ";En(x,n,T)},[t,n]),s=Q.useCallback(()=>{const k=t();k&&En(k,n,"> ")},[t,n]),u=Q.useCallback(()=>{const k=t();k&&En(k,n,"- ")},[t,n]),f=Q.useCallback(()=>{const k=t();k&&En(k,n,"1. ")},[t,n]),c=Q.useCallback(()=>{const k=t();if(!k)return;Mr(k,n,"```\ncode here\n```\n",4)},[t,n]),h=Q.useCallback(()=>{const k=t();if(!k)return;const{selectionStart:x,selectionEnd:T,value:v}=k;v.substring(x,T)?wt(k,n,"[","](url)",""):wt(k,n,"[","](url)","link text")},[t,n]),p=Q.useCallback(()=>{const k=t();k&&wt(k,n,"","alt text")},[t,n]),b=Q.useCallback(()=>{const k=t();k&&Mr(k,n,`
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
`,5)},[t,n]),C=Q.useCallback(()=>{const k=t();if(!k)return;Mr(k,n,`| Header 1 | Header 2 |
|
|
162
|
+
| -------- | -------- |
|
|
163
|
+
| Cell 1 | Cell 2 |
|
|
164
|
+
| Cell 3 | Cell 4 |
|
|
165
|
+
`,2)},[t,n]);return{insertBold:r,insertItalic:i,insertStrikethrough:l,insertInlineCode:o,insertHeading:a,insertBlockquote:s,insertUnorderedList:u,insertOrderedList:f,insertCodeBlock:c,insertLink:h,insertImage:p,insertHorizontalRule:b,insertTable:C}}const nm={heading:"#569cd6",headingText:"#c792ea",bold:"#ce9178",boldText:"#ffd700",italic:"#6a9955",italicText:"#b5cea8",strikethrough:"#f44747",strikethroughText:"#f44747",inlineCode:"#f92672",inlineCodeText:"#f8f8f2",inlineCodeBg:"rgba(255,255,255,0.1)",link:"#569cd6",linkText:"#4ec9b0",linkUrl:"#9cdcfe",image:"#d19a66",imageAlt:"#98c379",imagePath:"#e5c07b",listBullet:"#569cd6",listText:"#222",orderedList:"#c792ea",blockquote:"#6a9955",blockquoteText:"#6a9955",codeBlock:"#c792ea",codeBlockText:"#d4d4d4",codeBlockBg:"rgba(255,255,255,0.05)",horizontalRule:"#4a4a4a",tablePipe:"#569cd6",tableCellText:"#d4d4d4",tableSeparator:"#4a4a4a"},rm=(e,n={})=>{const t={...nm,...n};let r=e.replace(/</g,"<").replace(/>/g,">");return r=r.replace(/^(#{1,6})\s+(.+)$/gm,`<span style="color:${t.heading};font-weight:bold">$1</span> <span style="color:${t.headingText};font-weight:600">$2</span>`).replace(/\*\*(.*?)\*\*/g,`<span style="color:${t.bold}">**</span><span style="color:${t.boldText};font-weight:bold">$1</span><span style="color:${t.bold}">**</span>`).replace(/\*(.*?)\*/g,`<span style="color:${t.italic}">*</span><span style="color:${t.italicText};font-style:italic">$1</span><span style="color:${t.italic}">*</span>`).replace(/~~(.*?)~~/g,`<span style="color:${t.strikethrough}">~~</span><span style="color:${t.strikethroughText};text-decoration:line-through">$1</span><span style="color:${t.strikethrough}">~~</span>`).replace(/`([^`]+)`/g,`<span style="color:${t.inlineCode}">\`</span><span style="color:${t.inlineCodeText};background:${t.inlineCodeBg};border-radius:3px;">$1</span><span style="color:${t.inlineCode}">\`</span>`).replace(/!\[([^\]]*)\]\(([^)]+)\)/g,`<span style="color:${t.image}">!</span><span style="color:${t.image}">[</span><span style="color:${t.imageAlt}">$1</span><span style="color:${t.image}">](</span><span style="color:${t.imagePath}">$2</span><span style="color:${t.image}">)</span>`).replace(/\[([^\]]+)\]\(([^)]+)\)/g,`<span style="color:${t.link}">[</span><span style="color:${t.linkText};text-decoration:underline">$1</span><span style="color:${t.link}">](</span><span style="color:${t.linkUrl}">$2</span><span style="color:${t.link}">)</span>`).replace(/^(\s*)([-*+])\s+(.+)$/gm,`$1<span style="color:${t.listBullet};font-weight:bold">$2</span> <span style="color:${t.listText}">$3</span>`).replace(/^(\s*)(\d+\.)\s+(.+)$/gm,`$1<span style="color:${t.orderedList};font-weight:bold">$2</span> <span style="color:${t.listText}">$3</span>`).replace(/^>\s+(.+)$/gm,`<span style="color:${t.blockquote};font-weight:bold">></span> <span style="color:${t.blockquoteText};font-style:italic">$1</span>`).replace(/```(\w+)?\n([\s\S]*?)\n```/g,`<span style="color:${t.codeBlock}">\`\`\`$1</span>
|
|
166
|
+
<span style="color:${t.codeBlockText};background:${t.codeBlockBg};border-radius:3px;">$2</span>
|
|
167
|
+
<span style="color:${t.codeBlock}">\`\`\`</span>`).replace(/^---+$/gm,`<span style="color:${t.horizontalRule};font-weight:bold">$&</span>`).replace(/^(\|[\s-:]+)+\|$/gm,i=>`<span style="color:${t.tableSeparator}">${i}</span>`).replace(/^(\|.+)+\|$/gm,i=>i.replace(/(\|)([^|]*)/g,`<span style="color:${t.tablePipe}">$1</span><span style="color:${t.tableCellText}">$2</span>`)),Wh.sanitize(r)},im={h1:({children:e})=>P.jsx("h1",{className:"text-3xl font-bold mb-4 mt-6 first:mt-0 text-foreground border-b pb-2",children:e}),h2:({children:e})=>P.jsx("h2",{className:"text-2xl font-semibold mb-3 mt-5 text-foreground border-b pb-1",children:e}),h3:({children:e})=>P.jsx("h3",{className:"text-xl font-semibold mb-2 mt-4 text-foreground",children:e}),h4:({children:e})=>P.jsx("h4",{className:"text-lg font-medium mb-2 mt-3 text-foreground",children:e}),h5:({children:e})=>P.jsx("h5",{className:"text-base font-medium mb-2 mt-3 text-foreground",children:e}),h6:({children:e})=>P.jsx("h6",{className:"text-sm font-medium mb-2 mt-3 text-muted-foreground",children:e}),p:({children:e})=>P.jsx("p",{className:"mb-4 text-foreground leading-relaxed",children:e}),ul:({children:e})=>P.jsx("ul",{className:"list-disc list-inside mb-4 space-y-1 text-foreground",children:e}),ol:({children:e})=>P.jsx("ol",{className:"list-decimal list-inside mb-4 space-y-1 text-foreground",children:e}),li:({children:e})=>P.jsx("li",{className:"text-foreground leading-relaxed",children:e}),blockquote:({children:e})=>P.jsx("blockquote",{className:"border-l-4 border-muted-foreground/30 pl-4 py-2 mb-4 italic text-muted-foreground bg-muted/50 rounded-r",children:e}),code:({children:e,className:n})=>n?P.jsx("code",{className:"block bg-muted p-4 rounded-lg text-sm font-mono text-foreground overflow-x-auto",children:e}):P.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-sm font-mono text-foreground",children:e}),pre:({children:e})=>P.jsx("pre",{className:"bg-muted p-4 rounded-lg mb-4 overflow-x-auto",children:e}),table:({children:e})=>P.jsx("div",{className:"overflow-x-auto mb-4",children:P.jsx("table",{className:"min-w-full border-collapse border border-border",children:e})}),th:({children:e})=>P.jsx("th",{className:"border border-border bg-muted px-4 py-2 text-left font-semibold text-foreground",children:e}),td:({children:e})=>P.jsx("td",{className:"border border-border px-4 py-2 text-foreground",children:e}),hr:()=>P.jsx("hr",{className:"my-6 border-t border-border"}),a:({href:e,children:n})=>P.jsx("a",{href:e,className:"text-primary hover:text-primary/80 underline underline-offset-2",target:"_blank",rel:"noopener noreferrer",children:n}),strong:({children:e})=>P.jsx("strong",{className:"font-bold text-foreground",children:e}),em:({children:e})=>P.jsx("em",{className:"italic text-foreground",children:e})},Nl=Q.forwardRef(({value:e,defaultValue:n=`# Markdown Editor
|
|
78
168
|
|
|
79
|
-
Welcome to the **Markdown Editor**!`,onChange:t,viewMode:r,defaultViewMode:i="split",onViewModeChange:l,className:o,editorClassName:a,previewClassName:s,
|
|
169
|
+
Welcome to the **Markdown Editor**!`,onChange:t,viewMode:r,defaultViewMode:i="split",onViewModeChange:l,className:o,editorClassName:a,previewClassName:s,showToolbar:u=!0,showWordCount:f=!0,showMarkdownToolbar:c=!0,enableDownload:h=!0,enableCopy:p=!0,enableScrollSync:b=!0,placeholder:C="Start typing your markdown here...",readOnly:k=!1,maxLength:x,components:T,syntaxColors:v},j)=>{const[R,S]=Q.useState(n),[q,E]=Q.useState(i),U=e!==void 0,y=U?e:R,D=r!==void 0,N=D?r:q,G=Q.useRef(null),M=Q.useRef(null),L=Q.useRef(null),V=Q.useRef(null),ne=Q.useRef(null),[he,Ee]=Q.useState(!1),[d,ke]=Q.useState(!1);Q.useImperativeHandle(j,()=>({focus:()=>{var oe;(oe=G.current)==null||oe.focus()},getValue:()=>y}));const xe=Q.useCallback(oe=>{U||S(oe),t==null||t(oe)},[U,t]),m=Q.useCallback(oe=>{xe(oe.target.value)},[xe]),de=tm(G,xe),ae=Q.useCallback(oe=>{D||E(oe),l==null||l(oe)},[D,l]),te=Q.useCallback(oe=>{const ge=oe.currentTarget;if(M.current&&(M.current.scrollTop=ge.scrollTop,M.current.scrollLeft=ge.scrollLeft),!b||V.current==="preview")return;V.current="editor";const fe=L.current;if(fe){const He=ge.scrollHeight-ge.clientHeight,rt=He>0?ge.scrollTop/He:0;fe.scrollTop=rt*(fe.scrollHeight-fe.clientHeight)}ne.current&&clearTimeout(ne.current),ne.current=setTimeout(()=>{V.current=null},50)},[b]),$e=Q.useCallback(oe=>{if(!b||V.current==="editor")return;V.current="preview";const ge=oe.currentTarget,fe=G.current;if(fe){const He=ge.scrollHeight-ge.clientHeight,rt=He>0?ge.scrollTop/He:0;fe.scrollTop=rt*(fe.scrollHeight-fe.clientHeight),M.current&&(M.current.scrollTop=fe.scrollTop)}ne.current&&clearTimeout(ne.current),ne.current=setTimeout(()=>{V.current=null},50)},[b]),ze=Q.useCallback(async()=>{try{await navigator.clipboard.writeText(y),Ee(!0),setTimeout(()=>Ee(!1),2e3)}catch(oe){console.error("Failed to copy:",oe)}},[y]),se=Q.useCallback(()=>{const oe=new Blob([y],{type:"text/markdown"}),ge=URL.createObjectURL(oe),fe=document.createElement("a");fe.href=ge,fe.download="document.md",document.body.appendChild(fe),fe.click(),document.body.removeChild(fe),URL.revokeObjectURL(ge),ke(!0),setTimeout(()=>ke(!1),2e3)},[y]),je=Q.useMemo(()=>({...im,...T}),[T]);return P.jsxs(Zd,{className:`w-full h-full flex flex-col gap-0 py-0 ${o||""}`,children:[u?P.jsxs("div",{className:"flex items-center justify-between p-4 border-b bg-muted/50",children:[P.jsxs("div",{className:"flex items-center gap-2",children:[P.jsx("h2",{className:"text-lg font-semibold",children:"Markdown Editor"}),f?P.jsxs(Vd,{variant:"secondary",className:"text-xs",children:[y.length," characters"]}):null]}),P.jsxs("div",{className:"flex items-center gap-2",children:[P.jsxs("div",{className:"flex items-center border rounded-lg p-1",children:[P.jsxs(Pt,{variant:N==="edit"?"default":"ghost",size:"sm",onClick:()=>ae("edit"),className:"h-8 px-3",children:[P.jsx(jh,{className:"w-4 h-4 mr-1"}),"Edit"]}),P.jsxs(Pt,{variant:N==="split"?"default":"ghost",size:"sm",onClick:()=>ae("split"),className:"h-8 px-3",children:[P.jsx($h,{className:"w-4 h-4 mr-1"}),"Split"]}),P.jsxs(Pt,{variant:N==="preview"?"default":"ghost",size:"sm",onClick:()=>ae("preview"),className:"h-8 px-3",children:[P.jsx(_h,{className:"w-4 h-4 mr-1"}),"Preview"]})]}),P.jsx(Ll,{orientation:"vertical",className:"h-6"}),p?P.jsxs(Pt,{variant:"outline",size:"sm",onClick:ze,className:he?"text-green-600 dark:text-green-500 border-green-600 dark:border-green-500":"",children:[he?P.jsx(Xo,{className:"w-4 h-4 mr-1"}):P.jsx(Th,{className:"w-4 h-4 mr-1"}),he?"Copied!":"Copy"]}):null,h?P.jsxs(Pt,{variant:"outline",size:"sm",onClick:se,className:d?"text-green-600 dark:text-green-500 border-green-600 dark:border-green-500":"",children:[d?P.jsx(Xo,{className:"w-4 h-4 mr-1"}):P.jsx(Ah,{className:"w-4 h-4 mr-1"}),d?"Downloaded!":"Download"]}):null]})]}):null,P.jsx(Jd,{className:"flex-1 p-0 min-h-0 overflow-hidden",children:P.jsxs("div",{className:"flex h-full min-h-0",children:[N==="edit"||N==="split"?P.jsxs("div",{className:`${N==="split"?"w-1/2":"w-full"} border-r h-full min-h-0 flex flex-col ${a||""}`,children:[P.jsx("div",{className:"p-4 border-b bg-muted/30",children:P.jsx("h3",{className:"font-medium text-sm text-muted-foreground",children:"Syntax-Highlighted Editor"})}),c&&!k&&P.jsx(em,{actions:de}),P.jsxs("div",{className:"relative flex-1 w-full bg-transparent overflow-hidden",children:[P.jsx("div",{ref:M,className:"absolute inset-0 p-4 font-mono text-sm leading-relaxed pointer-events-none overflow-auto whitespace-pre-wrap wrap-break-word",style:{scrollbarWidth:"none",msOverflowStyle:"none"},dangerouslySetInnerHTML:{__html:rm(y,v)}}),P.jsx("textarea",{ref:G,value:y,onChange:m,onScroll:te,placeholder:C,readOnly:k,maxLength:x,spellCheck:!1,className:"absolute inset-0 w-full h-full p-4 border-none outline-none resize-none bg-transparent font-mono text-sm leading-relaxed z-10 whitespace-pre-wrap wrap-break-word",style:{color:"transparent",caretColor:"var(--foreground, #d4d4d4)"}})]})]}):null,N==="preview"||N==="split"?P.jsxs("div",{className:`${N==="split"?"w-1/2":"w-full"} h-full min-h-0 flex flex-col ${s||""}`,children:[P.jsx("div",{className:"p-4 border-b bg-muted/30",children:P.jsx("h3",{className:"font-medium text-sm text-muted-foreground",children:"Preview"})}),P.jsx("div",{ref:L,onScroll:$e,className:"p-4 flex-1 overflow-auto min-h-0",children:P.jsx("div",{className:"prose prose-slate dark:prose-invert max-w-none",children:P.jsx(of,{components:je,remarkPlugins:[yh],children:y})})})]}):null]})})]})});Nl.displayName="MarkdownEditor",st.MarkdownEditor=Nl,Object.defineProperty(st,Symbol.toStringTag,{value:"Module"})}));
|