@factorialco/rjsf-f0 2.2.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/rjsf-f0.cjs.js +21 -21
- package/dist/rjsf-f0.cjs.js.map +1 -1
- package/dist/rjsf-f0.es.js +1114 -1088
- package/dist/rjsf-f0.es.js.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/oauth/connect-control.d.ts +9 -0
- package/dist/src/oauth/index.d.ts +4 -0
- package/dist/src/oauth/oauth.test.d.ts +1 -0
- package/dist/src/oauth/types.d.ts +17 -0
- package/dist/src/templates/misc-templates.d.ts +6 -4
- package/dist/src/theme.d.ts +4 -1
- package/dist/src/widgets/f0-field.d.ts +7 -5
- package/dist/styles.css +32 -2
- package/package.json +1 -1
package/dist/rjsf-f0.cjs.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const dr=require("@rjsf/core"),b=require("react/jsx-runtime"),_=require("@rjsf/utils"),G=require("react"),te=require("@factorialco/f0-react"),ae=require("@factorialco/f0-react/icons/app"),Bi=require("@factorialco/f0-react/dist/experimental");function Ui(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const qi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Hi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vi={};function Ct(e,n){return(Vi.jsx?Hi:qi).test(e)}const $i=/[ \t\n\f\r]/g;function Wi(e){return typeof e=="object"?e.type==="text"?Tt(e.value):!1:Tt(e)}function Tt(e){return e.replace($i,"")===""}class en{constructor(n,t,r){this.normal=t,this.property=n,r&&(this.space=r)}}en.prototype.normal={};en.prototype.property={};en.prototype.space=void 0;function gr(e,n){const t={},r={};for(const i of e)Object.assign(t,i.property),Object.assign(r,i.normal);return new en(t,r,n)}function Bn(e){return e.toLowerCase()}class ie{constructor(n,t){this.attribute=t,this.property=n}}ie.prototype.attribute="";ie.prototype.booleanish=!1;ie.prototype.boolean=!1;ie.prototype.commaOrSpaceSeparated=!1;ie.prototype.commaSeparated=!1;ie.prototype.defined=!1;ie.prototype.mustUseProperty=!1;ie.prototype.number=!1;ie.prototype.overloadedBoolean=!1;ie.prototype.property="";ie.prototype.spaceSeparated=!1;ie.prototype.space=void 0;let Yi=0;const O=Pe(),Q=Pe(),Un=Pe(),I=Pe(),Y=Pe(),Fe=Pe(),oe=Pe();function Pe(){return 2**++Yi}const qn=Object.freeze(Object.defineProperty({__proto__:null,boolean:O,booleanish:Q,commaOrSpaceSeparated:oe,commaSeparated:Fe,number:I,overloadedBoolean:Un,spaceSeparated:Y},Symbol.toStringTag,{value:"Module"})),Cn=Object.keys(qn);class Jn extends ie{constructor(n,t,r,i){let o=-1;if(super(n,t),Et(this,"space",i),typeof r=="number")for(;++o<Cn.length;){const l=Cn[o];Et(this,Cn[o],(r&qn[l])===qn[l])}}}Jn.prototype.defined=!0;function Et(e,n,t){t&&(e[n]=t)}function Be(e){const n={},t={};for(const[r,i]of Object.entries(e.properties)){const o=new Jn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[Bn(r)]=r,t[Bn(o.attribute)]=r}return new en(n,t,e.space)}const yr=Be({properties:{ariaActiveDescendant:null,ariaAtomic:Q,ariaAutoComplete:null,ariaBusy:Q,ariaChecked:Q,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:Y,ariaCurrent:null,ariaDescribedBy:Y,ariaDetails:null,ariaDisabled:Q,ariaDropEffect:Y,ariaErrorMessage:null,ariaExpanded:Q,ariaFlowTo:Y,ariaGrabbed:Q,ariaHasPopup:null,ariaHidden:Q,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Y,ariaLevel:I,ariaLive:null,ariaModal:Q,ariaMultiLine:Q,ariaMultiSelectable:Q,ariaOrientation:null,ariaOwns:Y,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:Q,ariaReadOnly:Q,ariaRelevant:null,ariaRequired:Q,ariaRoleDescription:Y,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:Q,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()}});function xr(e,n){return n in e?e[n]:n}function kr(e,n){return xr(e,n.toLowerCase())}const Xi=Be({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fe,acceptCharset:Y,accessKey:Y,action:null,allow:null,allowFullScreen:O,allowPaymentRequest:O,allowUserMedia:O,alpha:O,alt:null,as:null,async:O,autoCapitalize:null,autoComplete:Y,autoFocus:O,autoPlay:O,blocking:Y,capture:null,charSet:null,checked:O,cite:null,className:Y,closedBy:null,colorSpace:null,cols:I,colSpan:I,command:null,commandFor:null,content:null,contentEditable:Q,controls:O,controlsList:Y,coords:I|Fe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:O,defer:O,dir:null,dirName:null,disabled:O,download:Un,draggable:Q,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:O,formTarget:null,headers:Y,height:I,hidden:Un,high:I,href:null,hrefLang:null,htmlFor:Y,httpEquiv:Y,id:null,imageSizes:null,imageSrcSet:null,inert:O,inputMode:null,integrity:null,is:null,isMap:O,itemId:null,itemProp:Y,itemRef:Y,itemScope:O,itemType:Y,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:O,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:O,muted:O,name:null,nonce:null,noModule:O,noValidate:O,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:O,optimum:I,pattern:null,ping:Y,placeholder:null,playsInline:O,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:O,referrerPolicy:null,rel:Y,required:O,reversed:O,rows:I,rowSpan:I,sandbox:Y,scope:null,scoped:O,seamless:O,selected:O,shadowRootClonable:O,shadowRootCustomElementRegistry:O,shadowRootDelegatesFocus:O,shadowRootMode:null,shadowRootSerializable:O,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:Q,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:O,useMap:null,value:Q,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Y,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:O,declare:O,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:O,noHref:O,noShade:O,noWrap:O,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:Q,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:O,disablePictureInPicture:O,disableRemotePlayback:O,exportParts:Fe,part:Y,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:kr}),Gi=Be({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:oe,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:Y,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:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:O,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,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:Fe,g2:Fe,glyphName:Fe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:oe,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:I,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:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Y,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:oe,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:oe,rev:oe,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:oe,requiredFeatures:oe,requiredFonts:oe,requiredFormats:oe,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:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:oe,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:oe,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:oe,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:xr}),br=Be({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()}}),wr=Be({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:kr}),Sr=Be({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()}}),Qi={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},Ki=/[A-Z]/g,It=/-[a-z]/g,Ji=/^data[-\w.:]+$/i;function Zi(e,n){const t=Bn(n);let r=n,i=ie;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&Ji.test(n)){if(n.charAt(4)==="-"){const o=n.slice(5).replace(It,nl);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=n.slice(4);if(!It.test(o)){let l=o.replace(Ki,el);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=Jn}return new i(r,n)}function el(e){return"-"+e.toLowerCase()}function nl(e){return e.charAt(1).toUpperCase()}const tl=gr([yr,Xi,br,wr,Sr],"html"),Zn=gr([yr,Gi,br,wr,Sr],"svg");function rl(e){return e.join(" ").trim()}function Cr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oe={},Tn,vt;function il(){if(vt)return Tn;vt=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,s=`
|
|
2
|
-
`,u="/",f="*",c="",p="comment",h="declaration";function g(C,y){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];y=y||{};var E=1,T=1;function j(L){var F=L.match(n);F&&(E+=F.length);var $=L.lastIndexOf(s);T=~$?L.length-$:T+L.length}function z(){var L={line:E,column:T};return function(F){return F.position=new w(L),q(),F}}function w(L){this.start=L,this.end={line:E,column:T},this.source=y.source}w.prototype.content=C;function N(L){var F=new Error(y.source+":"+E+":"+T+": "+L);if(F.reason=L,F.filename=y.source,F.line=E,F.column=T,F.source=C,!y.silent)throw F}function U(L){var F=L.exec(C);if(F){var $=F[0];return j($),C=C.slice($.length),F}}function q(){U(t)}function x(L){var F;for(L=L||[];F=A();)F!==!1&&L.push(F);return L}function A(){var L=z();if(!(u!=C.charAt(0)||f!=C.charAt(1))){for(var F=2;c!=C.charAt(F)&&(f!=C.charAt(F)||u!=C.charAt(F+1));)++F;if(F+=2,c===C.charAt(F-1))return N("End of comment missing");var $=C.slice(2,F-2);return T+=2,j($),C=C.slice(F),T+=2,L({type:p,comment:$})}}function D(){var L=z(),F=U(r);if(F){if(A(),!U(i))return N("property missing ':'");var $=U(o),K=L({type:h,property:k(F[0].replace(e,c)),value:$?k($[0].replace(e,c)):c});return U(l),K}}function V(){var L=[];x(L);for(var F;F=D();)F!==!1&&(L.push(F),x(L));return L}return q(),V()}function k(C){return C?C.replace(a,c):c}return Tn=g,Tn}var At;function ll(){if(At)return Oe;At=1;var e=Oe&&Oe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.default=t;const n=e(il());function t(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,n.default)(r),a=typeof i=="function";return l.forEach(s=>{if(s.type!=="declaration")return;const{property:u,value:f}=s;a?i(u,f,s):f&&(o=o||{},o[u]=f)}),o}return Oe}var $e={},Ft;function ol(){if(Ft)return $e;Ft=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||t.test(u)||e.test(u)},l=function(u,f){return f.toUpperCase()},a=function(u,f){return"".concat(f,"-")},s=function(u,f){return f===void 0&&(f={}),o(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(n,l))};return $e.camelCase=s,$e}var We,Dt;function al(){if(Dt)return We;Dt=1;var e=We&&We.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},n=e(ll()),t=ol();function r(i,o){var l={};return!i||typeof i!="string"||(0,n.default)(i,function(a,s){a&&s&&(l[(0,t.camelCase)(a,o)]=s)}),l}return r.default=r,We=r,We}var ul=al();const sl=Cr(ul),Tr=Er("end"),et=Er("start");function Er(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 cl(e){const n=et(e),t=Tr(e);if(n&&t)return{start:n,end:t}}function Ge(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Pt(e.position):"start"in e||"end"in e?Pt(e):"line"in e||"column"in e?Hn(e):""}function Hn(e){return jt(e&&e.line)+":"+jt(e&&e.column)}function Pt(e){return Hn(e&&e.start)+"-"+Hn(e&&e.end)}function jt(e){return e&&typeof e=="number"?e:1}class ee extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?o.ruleId=r:(o.source=r.slice(0,s),o.ruleId=r.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Ge(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ee.prototype.file="";ee.prototype.name="";ee.prototype.reason="";ee.prototype.message="";ee.prototype.stack="";ee.prototype.column=void 0;ee.prototype.line=void 0;ee.prototype.ancestors=void 0;ee.prototype.cause=void 0;ee.prototype.fatal=void 0;ee.prototype.place=void 0;ee.prototype.ruleId=void 0;ee.prototype.source=void 0;const nt={}.hasOwnProperty,fl=new Map,hl=/[A-Z]/g,pl=new Set(["table","tbody","thead","tfoot","tr"]),ml=new Set(["td","th"]),Ir="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function dl(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=Cl(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=Sl(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"?Zn:tl,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=vr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function vr(e,n,t){if(n.type==="element")return gl(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return yl(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return kl(e,n,t);if(n.type==="mdxjsEsm")return xl(e,n);if(n.type==="root")return bl(e,n,t);if(n.type==="text")return wl(e,n)}function gl(e,n,t){const r=e.schema;let i=r;n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Zn,e.schema=i),e.ancestors.push(n);const o=Fr(e,n.tagName,!1),l=Tl(e,n);let a=rt(e,n);return pl.has(n.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!Wi(s):!0})),Ar(e,l,o,n),tt(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function yl(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)}Je(e,n.position)}function xl(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);Je(e,n.position)}function kl(e,n,t){const r=e.schema;let i=r;n.name==="svg"&&r.space==="html"&&(i=Zn,e.schema=i),e.ancestors.push(n);const o=n.name===null?e.Fragment:Fr(e,n.name,!0),l=El(e,n),a=rt(e,n);return Ar(e,l,o,n),tt(l,a),e.ancestors.pop(),e.schema=r,e.create(n,o,l,t)}function bl(e,n,t){const r={};return tt(r,rt(e,n)),e.create(n,e.Fragment,r,t)}function wl(e,n){return n.value}function Ar(e,n,t,r){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=r)}function tt(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Sl(e,n,t){return r;function r(i,o,l,a){const u=Array.isArray(l.children)?t:n;return a?u(o,l,a):u(o,l)}}function Cl(e,n){return t;function t(r,i,o,l){const a=Array.isArray(o.children),s=et(r);return n(i,o,l,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Tl(e,n){const t={};let r,i;for(i in n.properties)if(i!=="children"&&nt.call(n.properties,i)){const o=Il(e,i,n.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&ml.has(n.tagName)?r=a:t[l]=a}}if(r){const o=t.style||(t.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return t}function El(e,n){const t={};for(const r of n.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(t,e.evaluater.evaluateExpression(a.argument))}else Je(e,n.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Je(e,n.position);else o=r.value===null?!0:r.value;t[i]=o}return t}function rt(e,n){const t=[];let r=-1;const i=e.passKeys?new Map:fl;for(;++r<n.children.length;){const o=n.children[r];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const u=i.get(s)||0;l=s+"-"+u,i.set(s,u+1)}}const a=vr(e,o,l);a!==void 0&&t.push(a)}return t}function Il(e,n,t){const r=Zi(e.schema,n);if(!(t==null||typeof t=="number"&&Number.isNaN(t))){if(Array.isArray(t)&&(t=r.commaSeparated?Ui(t):rl(t)),r.property==="style"){let i=typeof t=="object"?t:vl(e,String(t));return e.stylePropertyNameCase==="css"&&(i=Al(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Qi[r.property]||r.property:r.attribute,t]}}function vl(e,n){try{return sl(n,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};const r=t,i=new ee("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=Ir+"#cannot-parse-style-attribute",i}}function Fr(e,n,t){let r;if(!t)r={type:"Literal",value:n};else if(n.includes(".")){const i=n.split(".");let o=-1,l;for(;++o<i.length;){const a=Ct(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=Ct(n)&&!/^[a-z]/.test(n)?{type:"Identifier",name:n}:{type:"Literal",value:n};if(r.type==="Literal"){const i=r.value;return nt.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Je(e)}function Je(e,n){const t=new ee("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:n,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=Ir+"#cannot-handle-mdx-estrees-without-createevaluater",t}function Al(e){const n={};let t;for(t in e)nt.call(e,t)&&(n[Fl(t)]=e[t]);return n}function Fl(e){let n=e.replace(hl,Dl);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function Dl(e){return"-"+e.toLowerCase()}const En={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"]},Pl={};function it(e,n){const t=Pl,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Dr(e,r,i)}function Dr(e,n,t){if(jl(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Lt(e.children,n,t)}return Array.isArray(e)?Lt(e,n,t):""}function Lt(e,n,t){const r=[];let i=-1;for(;++i<e.length;)r[i]=Dr(e[i],n,t);return r.join("")}function jl(e){return!!(e&&typeof e=="object")}const zt=document.createElement("i");function lt(e){const n="&"+e+";";zt.innerHTML=n;const t=zt.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function ue(e,n,t,r){const i=e.length;let o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function se(e,n){return e.length>0?(ue(e,e.length,0,n),e):n}const Ot={}.hasOwnProperty;function Pr(e){const n={};let t=-1;for(;++t<e.length;)Ll(n,e[t]);return n}function Ll(e,n){let t;for(t in n){const i=(Ot.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t];let l;if(o)for(l in o){Ot.call(i,l)||(i[l]=[]);const a=o[l];zl(i[l],Array.isArray(a)?a:a?[a]:[])}}}function zl(e,n){let t=-1;const r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);ue(e,0,0,r)}function jr(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 me(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ne=Te(/[A-Za-z]/),Z=Te(/[\dA-Za-z]/),Ol=Te(/[#-'*+\--9=?A-Z^-~]/);function fn(e){return e!==null&&(e<32||e===127)}const Vn=Te(/\d/),Rl=Te(/[\dA-Fa-f]/),Nl=Te(/[!-/:-@[-`{-~]/);function P(e){return e!==null&&e<-2}function X(e){return e!==null&&(e<0||e===32)}function M(e){return e===-2||e===-1||e===32}const gn=Te(new RegExp("\\p{P}|\\p{S}","u")),De=Te(/\s/);function Te(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Ue(e){const n=[];let t=-1,r=0,i=0;for(;++t<e.length;){const o=e.charCodeAt(t);let l="";if(o===37&&Z(e.charCodeAt(t+1))&&Z(e.charCodeAt(t+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(t+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}function H(e,n,t,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return M(s)?(e.enter(t),a(s)):n(s)}function a(s){return M(s)&&o++<i?(e.consume(s),a):(e.exit(t),n(s))}}const _l={tokenize:Ml};function Ml(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"),H(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const s=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=s),t=s,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return P(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const Bl={tokenize:Ul},Rt={tokenize:ql};function Ul(e){const n=this,t=[];let r=0,i,o,l;return a;function a(T){if(r<t.length){const j=t[r];return n.containerState=j[1],e.attempt(j[0].continuation,s,u)(T)}return u(T)}function s(T){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&E();const j=n.events.length;let z=j,w;for(;z--;)if(n.events[z][0]==="exit"&&n.events[z][1].type==="chunkFlow"){w=n.events[z][1].end;break}y(r);let N=j;for(;N<n.events.length;)n.events[N][1].end={...w},N++;return ue(n.events,z+1,0,n.events.slice(j)),n.events.length=N,u(T)}return a(T)}function u(T){if(r===t.length){if(!i)return p(T);if(i.currentConstruct&&i.currentConstruct.concrete)return g(T);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(Rt,f,c)(T)}function f(T){return i&&E(),y(r),p(T)}function c(T){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,g(T)}function p(T){return n.containerState={},e.attempt(Rt,h,g)(T)}function h(T){return r++,t.push([n.currentConstruct,n.containerState]),p(T)}function g(T){if(T===null){i&&E(),y(0),e.consume(T);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),k(T)}function k(T){if(T===null){C(e.exit("chunkFlow"),!0),y(0),e.consume(T);return}return P(T)?(e.consume(T),C(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(T),k)}function C(T,j){const z=n.sliceStream(T);if(j&&z.push(null),T.previous=o,o&&(o.next=T),o=T,i.defineSkip(T.start),i.write(z),n.parser.lazy[T.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<l&&(!i.events[w][1].end||i.events[w][1].end.offset>l))return;const N=n.events.length;let U=N,q,x;for(;U--;)if(n.events[U][0]==="exit"&&n.events[U][1].type==="chunkFlow"){if(q){x=n.events[U][1].end;break}q=!0}for(y(r),w=N;w<n.events.length;)n.events[w][1].end={...x},w++;ue(n.events,U+1,0,n.events.slice(N)),n.events.length=w}}function y(T){let j=t.length;for(;j-- >T;){const z=t[j];n.containerState=z[1],z[0].exit.call(n,e)}t.length=T}function E(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function ql(e,n,t){return H(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function _e(e){if(e===null||X(e)||De(e))return 1;if(gn(e))return 2}function yn(e,n,t){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}const $n={name:"attention",resolveAll:Hl,tokenize:Vl};function Hl(e,n){let t=-1,r,i,o,l,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},p={...e[t][1].start};Nt(c,-s),Nt(p,s),l={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},o={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[t][1].start}},i={type:s>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[t][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=se(u,[["enter",e[r][1],n],["exit",e[r][1],n]])),u=se(u,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",o,n]]),u=se(u,yn(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),u=se(u,[["exit",o,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(f=2,u=se(u,[["enter",e[t][1],n],["exit",e[t][1],n]])):f=0,ue(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 Vl(e,n){const t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=_e(r);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===o)return e.consume(s),a;const u=e.exit("attentionSequence"),f=_e(s),c=!f||f===2&&i||t.includes(s),p=!i||i===2&&f||t.includes(r);return u._open=!!(o===42?c:c&&(i||!p)),u._close=!!(o===42?p:p&&(f||!c)),n(s)}}function Nt(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}const $l={name:"autolink",tokenize:Wl};function Wl(e,n,t){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return ne(h)?(e.consume(h),l):h===64?t(h):u(h)}function l(h){return h===43||h===45||h===46||Z(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,s):(h===43||h===45||h===46||Z(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):h===null||h===32||h===60||fn(h)?t(h):(e.consume(h),s)}function u(h){return h===64?(e.consume(h),f):Ol(h)?(e.consume(h),u):t(h)}function f(h){return Z(h)?c(h):t(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),n):p(h)}function p(h){if((h===45||Z(h))&&r++<63){const g=h===45?p:c;return e.consume(h),g}return t(h)}}const nn={partial:!0,tokenize:Yl};function Yl(e,n,t){return r;function r(o){return M(o)?H(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||P(o)?n(o):t(o)}}const Lr={continuation:{tokenize:Gl},exit:Ql,name:"blockQuote",tokenize:Xl};function Xl(e,n,t){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return t(l)}function o(l){return M(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function Gl(e,n,t){const r=this;return i;function i(l){return M(l)?H(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Lr,n,t)(l)}}function Ql(e){e.exit("blockQuote")}const zr={name:"characterEscape",tokenize:Kl};function Kl(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return Nl(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}const Or={name:"characterReference",tokenize:Jl};function Jl(e,n,t){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,l=Z,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Rl,f):(e.enter("characterReferenceValue"),o=7,l=Vn,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===Z&&!lt(r.sliceSerialize(p))?t(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(c)&&i++<o?(e.consume(c),f):t(c)}}const _t={partial:!0,tokenize:eo},Mt={concrete:!0,name:"codeFenced",tokenize:Zl};function Zl(e,n,t){const r=this,i={partial:!0,tokenize:z};let o=0,l=0,a;return s;function s(w){return u(w)}function u(w){const N=r.events[r.events.length-1];return o=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,a=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===a?(l++,e.consume(w),f):l<3?t(w):(e.exit("codeFencedFenceSequence"),M(w)?H(e,c,"whitespace")(w):c(w))}function c(w){return w===null||P(w)?(e.exit("codeFencedFence"),r.interrupt?n(w):e.check(_t,k,j)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||P(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):M(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),H(e,h,"whitespace")(w)):w===96&&w===a?t(w):(e.consume(w),p)}function h(w){return w===null||P(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||P(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===a?t(w):(e.consume(w),g)}function k(w){return e.attempt(i,j,C)(w)}function C(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y}function y(w){return o>0&&M(w)?H(e,E,"linePrefix",o+1)(w):E(w)}function E(w){return w===null||P(w)?e.check(_t,k,j)(w):(e.enter("codeFlowValue"),T(w))}function T(w){return w===null||P(w)?(e.exit("codeFlowValue"),E(w)):(e.consume(w),T)}function j(w){return e.exit("codeFenced"),n(w)}function z(w,N,U){let q=0;return x;function x(F){return w.enter("lineEnding"),w.consume(F),w.exit("lineEnding"),A}function A(F){return w.enter("codeFencedFence"),M(F)?H(w,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):D(F)}function D(F){return F===a?(w.enter("codeFencedFenceSequence"),V(F)):U(F)}function V(F){return F===a?(q++,w.consume(F),V):q>=l?(w.exit("codeFencedFenceSequence"),M(F)?H(w,L,"whitespace")(F):L(F)):U(F)}function L(F){return F===null||P(F)?(w.exit("codeFencedFence"),N(F)):U(F)}}}function eo(e,n,t){const r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}const In={name:"codeIndented",tokenize:to},no={partial:!0,tokenize:ro};function to(e,n,t){const r=this;return i;function i(u){return e.enter("codeIndented"),H(e,o,"linePrefix",5)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(u):t(u)}function l(u){return u===null?s(u):P(u)?e.attempt(no,l,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||P(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),n(u)}}function ro(e,n,t){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):P(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):H(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):P(l)?i(l):t(l)}}const io={name:"codeText",previous:oo,resolve:lo,tokenize:ao};function lo(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 oo(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ao(e,n,t){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?t(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):P(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||P(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)):(o.type="codeTextData",u(c))}}class uo{constructor(n){this.left=n?[...n]:[],this.right=[]}get(n){if(n<0||n>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n<this.left.length?this.left[n]:this.right[this.right.length-n+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(n,t){const r=t??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(n,r):n>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(n,t,r){const i=t||0;this.setCursor(Math.trunc(n));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ye(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),Ye(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),Ye(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);Ye(this.right,t.reverse())}else{const t=this.right.splice(this.left.length+this.right.length-n,Number.POSITIVE_INFINITY);Ye(this.left,t.reverse())}}}function Ye(e,n){let t=0;if(n.length<1e4)e.push(...n);else for(;t<n.length;)e.push(...n.slice(t,t+1e4)),t+=1e4}function Rr(e){const n={};let t=-1,r,i,o,l,a,s,u;const f=new uo(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,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,so(f,t)),t=n[t],u=!0);else if(r[1]._container){for(o=t,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,t),a.unshift(r),f.splice(i,t-i+1,a))}}return ue(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function so(e,n){const t=e.get(n)[1],r=e.get(n)[2];let i=n-1;const o=[];let l=t._tokenizer;l||(l=r.parser[t.contentType](t.start),t._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,s=[],u={};let f,c,p=-1,h=t,g=0,k=0;const C=[k];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=t;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(k=p+1,C.push(k),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),p=C.length;p--;){const y=a.slice(C[p],C[p+1]),E=o.pop();s.push([E,E+y.length-1]),e.splice(E,2,y)}for(s.reverse(),p=-1;++p<s.length;)u[g+s[p][0]]=g+s[p][1],g+=s[p][1]-s[p][0]-1;return u}const co={resolve:ho,tokenize:po},fo={partial:!0,tokenize:mo};function ho(e){return Rr(e),e}function po(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):P(a)?e.check(fo,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function l(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function mo(e,n,t){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),H(e,o,"linePrefix")}function o(l){if(l===null||P(l))return t(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function Nr(e,n,t,r,i,o,l,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||fn(y)?t(y):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),k(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(a),p(y)):y===null||y===60||P(y)?t(y):(e.consume(y),y===92?g:h)}function g(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function k(y){return!f&&(y===null||y===41||X(y))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(y)):f<u&&y===40?(e.consume(y),f++,k):y===41?(e.consume(y),f--,k):y===null||y===32||y===40||fn(y)?t(y):(e.consume(y),y===92?C:k)}function C(y){return y===40||y===41||y===92?(e.consume(y),k):k(y)}}function _r(e,n,t,r,i,o){const l=this;let a=0,s;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return a>999||h===null||h===91||h===93&&!s||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):P(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||P(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),s||(s=!M(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function Mr(e,n,t,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,s):t(p)}function s(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):(e.enter(o),u(p))}function u(p){return p===l?(e.exit(o),s(l)):p===null?t(p):P(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),H(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||P(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function Qe(e,n){let t;return r;function r(i){return P(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):M(i)?H(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}const go={name:"definition",tokenize:xo},yo={partial:!0,tokenize:ko};function xo(e,n,t){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return _r.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=me(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):t(h)}function s(h){return X(h)?Qe(e,u)(h):u(h)}function u(h){return Nr(e,f,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(yo,c,c)(h)}function c(h){return M(h)?H(e,p,"whitespace")(h):p(h)}function p(h){return h===null||P(h)?(e.exit("definition"),r.parser.defined.push(i),n(h)):t(h)}}function ko(e,n,t){return r;function r(a){return X(a)?Qe(e,i)(a):t(a)}function i(a){return Mr(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return M(a)?H(e,l,"whitespace")(a):l(a)}function l(a){return a===null||P(a)?n(a):t(a)}}const bo={name:"hardBreakEscape",tokenize:wo};function wo(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return P(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}const So={name:"headingAtx",resolve:Co,tokenize:To};function Co(e,n){let t=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},ue(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function To(e,n,t){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||X(f)?(e.exit("atxHeadingSequence"),a(f)):t(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||P(f)?(e.exit("atxHeading"),n(f)):M(f)?H(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||X(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const Eo=["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"],Bt=["pre","script","style","textarea"],Io={concrete:!0,name:"htmlFlow",resolveTo:Fo,tokenize:Do},vo={partial:!0,tokenize:jo},Ao={partial:!0,tokenize:Po};function Fo(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 Do(e,n,t){const r=this;let i,o,l,a,s;return u;function u(d){return f(d)}function f(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),c}function c(d){return d===33?(e.consume(d),p):d===47?(e.consume(d),o=!0,k):d===63?(e.consume(d),i=3,r.interrupt?n:m):ne(d)?(e.consume(d),l=String.fromCharCode(d),C):t(d)}function p(d){return d===45?(e.consume(d),i=2,h):d===91?(e.consume(d),i=5,a=0,g):ne(d)?(e.consume(d),i=4,r.interrupt?n:m):t(d)}function h(d){return d===45?(e.consume(d),r.interrupt?n:m):t(d)}function g(d){const he="CDATA[";return d===he.charCodeAt(a++)?(e.consume(d),a===he.length?r.interrupt?n:D:g):t(d)}function k(d){return ne(d)?(e.consume(d),l=String.fromCharCode(d),C):t(d)}function C(d){if(d===null||d===47||d===62||X(d)){const he=d===47,Ee=l.toLowerCase();return!he&&!o&&Bt.includes(Ee)?(i=1,r.interrupt?n(d):D(d)):Eo.includes(l.toLowerCase())?(i=6,he?(e.consume(d),y):r.interrupt?n(d):D(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(d):o?E(d):T(d))}return d===45||Z(d)?(e.consume(d),l+=String.fromCharCode(d),C):t(d)}function y(d){return d===62?(e.consume(d),r.interrupt?n:D):t(d)}function E(d){return M(d)?(e.consume(d),E):x(d)}function T(d){return d===47?(e.consume(d),x):d===58||d===95||ne(d)?(e.consume(d),j):M(d)?(e.consume(d),T):x(d)}function j(d){return d===45||d===46||d===58||d===95||Z(d)?(e.consume(d),j):z(d)}function z(d){return d===61?(e.consume(d),w):M(d)?(e.consume(d),z):T(d)}function w(d){return d===null||d===60||d===61||d===62||d===96?t(d):d===34||d===39?(e.consume(d),s=d,N):M(d)?(e.consume(d),w):U(d)}function N(d){return d===s?(e.consume(d),s=null,q):d===null||P(d)?t(d):(e.consume(d),N)}function U(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||X(d)?z(d):(e.consume(d),U)}function q(d){return d===47||d===62||M(d)?T(d):t(d)}function x(d){return d===62?(e.consume(d),A):t(d)}function A(d){return d===null||P(d)?D(d):M(d)?(e.consume(d),A):t(d)}function D(d){return d===45&&i===2?(e.consume(d),$):d===60&&i===1?(e.consume(d),K):d===62&&i===4?(e.consume(d),fe):d===63&&i===3?(e.consume(d),m):d===93&&i===5?(e.consume(d),ye):P(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(vo,xe,V)(d)):d===null||P(d)?(e.exit("htmlFlowData"),V(d)):(e.consume(d),D)}function V(d){return e.check(Ao,L,xe)(d)}function L(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),F}function F(d){return d===null||P(d)?V(d):(e.enter("htmlFlowData"),D(d))}function $(d){return d===45?(e.consume(d),m):D(d)}function K(d){return d===47?(e.consume(d),l="",ce):D(d)}function ce(d){if(d===62){const he=l.toLowerCase();return Bt.includes(he)?(e.consume(d),fe):D(d)}return ne(d)&&l.length<8?(e.consume(d),l+=String.fromCharCode(d),ce):D(d)}function ye(d){return d===93?(e.consume(d),m):D(d)}function m(d){return d===62?(e.consume(d),fe):d===45&&i===2?(e.consume(d),m):D(d)}function fe(d){return d===null||P(d)?(e.exit("htmlFlowData"),xe(d)):(e.consume(d),fe)}function xe(d){return e.exit("htmlFlow"),n(d)}}function Po(e,n,t){const r=this;return i;function i(l){return P(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):t(l)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function jo(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(nn,n,t)}}const Lo={name:"htmlText",tokenize:zo};function zo(e,n,t){const r=this;let i,o,l;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),s}function s(m){return m===33?(e.consume(m),u):m===47?(e.consume(m),z):m===63?(e.consume(m),T):ne(m)?(e.consume(m),U):t(m)}function u(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,g):ne(m)?(e.consume(m),E):t(m)}function f(m){return m===45?(e.consume(m),h):t(m)}function c(m){return m===null?t(m):m===45?(e.consume(m),p):P(m)?(l=c,K(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?$(m):m===45?p(m):c(m)}function g(m){const fe="CDATA[";return m===fe.charCodeAt(o++)?(e.consume(m),o===fe.length?k:g):t(m)}function k(m){return m===null?t(m):m===93?(e.consume(m),C):P(m)?(l=k,K(m)):(e.consume(m),k)}function C(m){return m===93?(e.consume(m),y):k(m)}function y(m){return m===62?$(m):m===93?(e.consume(m),y):k(m)}function E(m){return m===null||m===62?$(m):P(m)?(l=E,K(m)):(e.consume(m),E)}function T(m){return m===null?t(m):m===63?(e.consume(m),j):P(m)?(l=T,K(m)):(e.consume(m),T)}function j(m){return m===62?$(m):T(m)}function z(m){return ne(m)?(e.consume(m),w):t(m)}function w(m){return m===45||Z(m)?(e.consume(m),w):N(m)}function N(m){return P(m)?(l=N,K(m)):M(m)?(e.consume(m),N):$(m)}function U(m){return m===45||Z(m)?(e.consume(m),U):m===47||m===62||X(m)?q(m):t(m)}function q(m){return m===47?(e.consume(m),$):m===58||m===95||ne(m)?(e.consume(m),x):P(m)?(l=q,K(m)):M(m)?(e.consume(m),q):$(m)}function x(m){return m===45||m===46||m===58||m===95||Z(m)?(e.consume(m),x):A(m)}function A(m){return m===61?(e.consume(m),D):P(m)?(l=A,K(m)):M(m)?(e.consume(m),A):q(m)}function D(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),i=m,V):P(m)?(l=D,K(m)):M(m)?(e.consume(m),D):(e.consume(m),L)}function V(m){return m===i?(e.consume(m),i=void 0,F):m===null?t(m):P(m)?(l=V,K(m)):(e.consume(m),V)}function L(m){return m===null||m===34||m===39||m===60||m===61||m===96?t(m):m===47||m===62||X(m)?q(m):(e.consume(m),L)}function F(m){return m===47||m===62||X(m)?q(m):t(m)}function $(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),n):t(m)}function K(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ce}function ce(m){return M(m)?H(e,ye,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):ye(m)}function ye(m){return e.enter("htmlTextData"),l(m)}}const ot={name:"labelEnd",resolveAll:_o,resolveTo:Mo,tokenize:Bo},Oo={tokenize:Uo},Ro={tokenize:qo},No={tokenize:Ho};function _o(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&&ue(e,0,e.length,t),e}function Mo(e,n){let t=e.length,r=0,i,o,l,a;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",s,n],["enter",u,n]],a=se(a,e.slice(o+1,o+r+3)),a=se(a,[["enter",f,n]]),a=se(a,yn(n.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),n)),a=se(a,[["exit",f,n],e[l-2],e[l-1],["exit",u,n]]),a=se(a,e.slice(l+1)),a=se(a,[["exit",s,n]]),ue(e,o,e.length,a),e}function Bo(e,n,t){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(me(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):t(p)}function s(p){return p===40?e.attempt(Oo,f,l?f:c)(p):p===91?e.attempt(Ro,f,l?u:c)(p):l?f(p):c(p)}function u(p){return e.attempt(No,f,c)(p)}function f(p){return n(p)}function c(p){return o._balanced=!0,t(p)}}function Uo(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 X(c)?Qe(e,o)(c):o(c)}function o(c){return c===41?f(c):Nr(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return X(c)?Qe(e,s)(c):f(c)}function a(c){return t(c)}function s(c){return c===34||c===39||c===40?Mr(e,u,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return X(c)?Qe(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 qo(e,n,t){const r=this;return i;function i(a){return _r.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(me(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function l(a){return t(a)}}function Ho(e,n,t){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):t(o)}}const Vo={name:"labelStartImage",resolveAll:ot.resolveAll,tokenize:$o};function $o(e,n,t){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}const Wo={name:"labelStartLink",resolveAll:ot.resolveAll,tokenize:Yo};function Yo(e,n,t){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}const vn={name:"lineEnding",tokenize:Xo};function Xo(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),H(e,n,"linePrefix")}}const cn={name:"thematicBreak",tokenize:Go};function Go(e,n,t){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),l(u)}function l(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||P(u))?(e.exit("thematicBreak"),n(u)):t(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),M(u)?H(e,a,"whitespace")(u):a(u))}}const re={continuation:{tokenize:Zo},exit:na,name:"list",tokenize:Jo},Qo={partial:!0,tokenize:ta},Ko={partial:!0,tokenize:ea};function Jo(e,n,t){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Vn(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(cn,t,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return t(h)}function s(h){return Vn(h)&&++l<10?(e.consume(h),s):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):t(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(nn,r.interrupt?t:f,e.attempt(Qo,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return M(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):t(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(h)}}function Zo(e,n,t){const r=this;return r.containerState._closeFlow=void 0,e.check(nn,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,H(e,n,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!M(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Ko,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,H(e,e.attempt(re,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ea(e,n,t){const r=this;return H(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(o):t(o)}}function na(e){e.exit(this.containerState.type)}function ta(e,n,t){const r=this;return H(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!M(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}const Ut={name:"setextUnderline",resolveTo:ra,tokenize:ia};function ra(e,n){let t=e.length,r,i,o;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!o&&e[t][1].type==="definition"&&(o=t);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,n]),e}function ia(e,n,t){const r=this;let i;return o;function o(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,l(u)):t(u)}function l(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),M(u)?H(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||P(u)?(e.exit("setextHeadingLine"),n(u)):t(u)}}const la={tokenize:oa};function oa(e){const n=this,t=e.attempt(nn,r,e.attempt(this.parser.constructs.flowInitial,i,H(e,e.attempt(this.parser.constructs.flow,i,e.attempt(co,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const aa={resolveAll:Ur()},ua=Br("string"),sa=Br("text");function Br(e){return{resolveAll:Ur(e==="text"?ca:void 0),tokenize:n};function n(t){const r=this,i=this.parser.constructs[e],o=t.attempt(i,l,a);return l;function l(f){return u(f)?o(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"),o(f)):(t.consume(f),s)}function u(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Ur(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function ca(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){const r=e[t-1][1],i=n.sliceStream(r);let o=i.length,l=-1,a=0,s;for(;o--;){const u=i[o];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(u===-2)s=!0,a++;else if(u!==-1){o++;break}}if(n._contentTypeTextTrailing&&t===e.length&&(a=0),a){const u={type:t===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...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 fa={42:re,43:re,45:re,48:re,49:re,50:re,51:re,52:re,53:re,54:re,55:re,56:re,57:re,62:Lr},ha={91:go},pa={[-2]:In,[-1]:In,32:In},ma={35:So,42:cn,45:[Ut,cn],60:Io,61:Ut,95:cn,96:Mt,126:Mt},da={38:Or,92:zr},ga={[-5]:vn,[-4]:vn,[-3]:vn,33:Vo,38:Or,42:$n,60:[$l,Lo],91:Wo,92:[bo,zr],93:ot,95:$n,96:io},ya={null:[$n,aa]},xa={null:[42,95]},ka={null:[]},ba=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:xa,contentInitial:ha,disable:ka,document:fa,flow:ma,flowInitial:pa,insideSpan:ya,string:da,text:ga},Symbol.toStringTag,{value:"Module"}));function wa(e,n,t){let r={_bufferIndex:-1,_index:0,line:t&&t.line||1,column:t&&t.column||1,offset:t&&t.offset||0};const i={},o=[];let l=[],a=[];const s={attempt:N(z),check:N(w),consume:E,enter:T,exit:j,interrupt:N(w,{interrupt:!0})},u={code:null,containerState:{},defineSkip:k,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=n.tokenize.call(u,s);return n.resolveAll&&o.push(n),u;function c(A){return l=se(l,A),C(),l[l.length-1]!==null?[]:(U(n,0),u.events=yn(o,u.events,u),u.events)}function p(A,D){return Ca(h(A),D)}function h(A){return Sa(l,A)}function g(){const{_bufferIndex:A,_index:D,line:V,column:L,offset:F}=r;return{_bufferIndex:A,_index:D,line:V,column:L,offset:F}}function k(A){i[A.line]=A.column,x()}function C(){let A;for(;r._index<l.length;){const D=l[r._index];if(typeof D=="string")for(A=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===A&&r._bufferIndex<D.length;)y(D.charCodeAt(r._bufferIndex));else y(D)}}function y(A){f=f(A)}function E(A){P(A)?(r.line++,r.column=1,r.offset+=A===-3?2:1,x()):A!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=A}function T(A,D){const V=D||{};return V.type=A,V.start=g(),u.events.push(["enter",V,u]),a.push(V),V}function j(A){const D=a.pop();return D.end=g(),u.events.push(["exit",D,u]),D}function z(A,D){U(A,D.from)}function w(A,D){D.restore()}function N(A,D){return V;function V(L,F,$){let K,ce,ye,m;return Array.isArray(L)?xe(L):"tokenize"in L?xe([L]):fe(L);function fe(J){return qe;function qe(Se){const je=Se!==null&&J[Se],Le=Se!==null&&J.null,ln=[...Array.isArray(je)?je:je?[je]:[],...Array.isArray(Le)?Le:Le?[Le]:[]];return xe(ln)(Se)}}function xe(J){return K=J,ce=0,J.length===0?$:d(J[ce])}function d(J){return qe;function qe(Se){return m=q(),ye=J,J.partial||(u.currentConstruct=J),J.name&&u.parser.constructs.disable.null.includes(J.name)?Ee():J.tokenize.call(D?Object.assign(Object.create(u),D):u,s,he,Ee)(Se)}}function he(J){return A(ye,m),F}function Ee(J){return m.restore(),++ce<K.length?d(K[ce]):$}}}function U(A,D){A.resolveAll&&!o.includes(A)&&o.push(A),A.resolve&&ue(u.events,D,u.events.length-D,A.resolve(u.events.slice(D),u)),A.resolveTo&&(u.events=A.resolveTo(u.events,u))}function q(){const A=g(),D=u.previous,V=u.currentConstruct,L=u.events.length,F=Array.from(a);return{from:L,restore:$};function $(){r=A,u.previous=D,u.currentConstruct=V,u.events.length=L,a=F,x()}}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Sa(e,n){const t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex;let l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function Ca(e,n){let t=-1;const r=[];let i;for(;++t<e.length;){const o=e[t];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const dr=require("@rjsf/core"),b=require("react/jsx-runtime"),_=require("@rjsf/utils"),G=require("react"),ee=require("@factorialco/f0-react"),ie=require("@factorialco/f0-react/icons/app"),Ui=require("@factorialco/f0-react/dist/experimental");function qi(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Hi=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Vi=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,$i={};function Cn(e,t){return($i.jsx?Vi:Hi).test(e)}const Wi=/[ \t\n\f\r]/g;function Yi(e){return typeof e=="object"?e.type==="text"?Tn(e.value):!1:Tn(e)}function Tn(e){return e.replace(Wi,"")===""}class et{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}et.prototype.normal={};et.prototype.property={};et.prototype.space=void 0;function gr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new et(n,r,t)}function Bt(e){return e.toLowerCase()}class le{constructor(t,n){this.attribute=n,this.property=t}}le.prototype.attribute="";le.prototype.booleanish=!1;le.prototype.boolean=!1;le.prototype.commaOrSpaceSeparated=!1;le.prototype.commaSeparated=!1;le.prototype.defined=!1;le.prototype.mustUseProperty=!1;le.prototype.number=!1;le.prototype.overloadedBoolean=!1;le.prototype.property="";le.prototype.spaceSeparated=!1;le.prototype.space=void 0;let Xi=0;const O=Pe(),Q=Pe(),Ut=Pe(),I=Pe(),Y=Pe(),Fe=Pe(),ae=Pe();function Pe(){return 2**++Xi}const qt=Object.freeze(Object.defineProperty({__proto__:null,boolean:O,booleanish:Q,commaOrSpaceSeparated:ae,commaSeparated:Fe,number:I,overloadedBoolean:Ut,spaceSeparated:Y},Symbol.toStringTag,{value:"Module"})),Ct=Object.keys(qt);class Jt extends le{constructor(t,n,r,i){let o=-1;if(super(t,n),En(this,"space",i),typeof r=="number")for(;++o<Ct.length;){const l=Ct[o];En(this,Ct[o],(r&qt[l])===qt[l])}}}Jt.prototype.defined=!0;function En(e,t,n){n&&(e[t]=n)}function Be(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Jt(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Bt(r)]=r,n[Bt(o.attribute)]=r}return new et(t,n,e.space)}const yr=Be({properties:{ariaActiveDescendant:null,ariaAtomic:Q,ariaAutoComplete:null,ariaBusy:Q,ariaChecked:Q,ariaColCount:I,ariaColIndex:I,ariaColSpan:I,ariaControls:Y,ariaCurrent:null,ariaDescribedBy:Y,ariaDetails:null,ariaDisabled:Q,ariaDropEffect:Y,ariaErrorMessage:null,ariaExpanded:Q,ariaFlowTo:Y,ariaGrabbed:Q,ariaHasPopup:null,ariaHidden:Q,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Y,ariaLevel:I,ariaLive:null,ariaModal:Q,ariaMultiLine:Q,ariaMultiSelectable:Q,ariaOrientation:null,ariaOwns:Y,ariaPlaceholder:null,ariaPosInSet:I,ariaPressed:Q,ariaReadOnly:Q,ariaRelevant:null,ariaRequired:Q,ariaRoleDescription:Y,ariaRowCount:I,ariaRowIndex:I,ariaRowSpan:I,ariaSelected:Q,ariaSetSize:I,ariaSort:null,ariaValueMax:I,ariaValueMin:I,ariaValueNow:I,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function xr(e,t){return t in e?e[t]:t}function kr(e,t){return xr(e,t.toLowerCase())}const Gi=Be({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Fe,acceptCharset:Y,accessKey:Y,action:null,allow:null,allowFullScreen:O,allowPaymentRequest:O,allowUserMedia:O,alpha:O,alt:null,as:null,async:O,autoCapitalize:null,autoComplete:Y,autoFocus:O,autoPlay:O,blocking:Y,capture:null,charSet:null,checked:O,cite:null,className:Y,closedBy:null,colorSpace:null,cols:I,colSpan:I,command:null,commandFor:null,content:null,contentEditable:Q,controls:O,controlsList:Y,coords:I|Fe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:O,defer:O,dir:null,dirName:null,disabled:O,download:Ut,draggable:Q,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:O,formTarget:null,headers:Y,height:I,hidden:Ut,high:I,href:null,hrefLang:null,htmlFor:Y,httpEquiv:Y,id:null,imageSizes:null,imageSrcSet:null,inert:O,inputMode:null,integrity:null,is:null,isMap:O,itemId:null,itemProp:Y,itemRef:Y,itemScope:O,itemType:Y,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:O,low:I,manifest:null,max:null,maxLength:I,media:null,method:null,min:null,minLength:I,multiple:O,muted:O,name:null,nonce:null,noModule:O,noValidate:O,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:O,optimum:I,pattern:null,ping:Y,placeholder:null,playsInline:O,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:O,referrerPolicy:null,rel:Y,required:O,reversed:O,rows:I,rowSpan:I,sandbox:Y,scope:null,scoped:O,seamless:O,selected:O,shadowRootClonable:O,shadowRootCustomElementRegistry:O,shadowRootDelegatesFocus:O,shadowRootMode:null,shadowRootSerializable:O,shape:null,size:I,sizes:null,slot:null,span:I,spellCheck:Q,src:null,srcDoc:null,srcLang:null,srcSet:null,start:I,step:null,style:null,tabIndex:I,target:null,title:null,translate:null,type:null,typeMustMatch:O,useMap:null,value:Q,width:I,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Y,axis:null,background:null,bgColor:null,border:I,borderColor:null,bottomMargin:I,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:O,declare:O,event:null,face:null,frame:null,frameBorder:null,hSpace:I,leftMargin:I,link:null,longDesc:null,lowSrc:null,marginHeight:I,marginWidth:I,noResize:O,noHref:O,noShade:O,noWrap:O,object:null,profile:null,prompt:null,rev:null,rightMargin:I,rules:null,scheme:null,scrolling:Q,standby:null,summary:null,text:null,topMargin:I,valueType:null,version:null,vAlign:null,vLink:null,vSpace:I,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:O,disablePictureInPicture:O,disableRemotePlayback:O,exportParts:Fe,part:Y,prefix:null,property:null,results:I,security:null,unselectable:null},space:"html",transform:kr}),Qi=Be({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ae,accentHeight:I,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:I,amplitude:I,arabicForm:null,ascent:I,attributeName:null,attributeType:null,azimuth:I,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:I,by:null,calcMode:null,capHeight:I,className:Y,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:I,diffuseConstant:I,direction:null,display:null,dur:null,divisor:I,dominantBaseline:null,download:O,dx:null,dy:null,edgeMode:null,editable:null,elevation:I,enableBackground:null,end:null,event:null,exponent:I,externalResourcesRequired:null,fill:null,fillOpacity:I,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:Fe,g2:Fe,glyphName:Fe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:I,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:I,horizOriginX:I,horizOriginY:I,id:null,ideographic:I,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:I,k:I,k1:I,k2:I,k3:I,k4:I,kernelMatrix:ae,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:I,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:I,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:I,overlineThickness:I,paintOrder:null,panose1:null,path:null,pathLength:I,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Y,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:I,pointsAtY:I,pointsAtZ:I,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ae,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ae,rev:ae,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ae,requiredFeatures:ae,requiredFonts:ae,requiredFormats:ae,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:I,specularExponent:I,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:I,strikethroughThickness:I,string:null,stroke:null,strokeDashArray:ae,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:I,strokeOpacity:I,strokeWidth:null,style:null,surfaceScale:I,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ae,tabIndex:I,tableValues:null,target:null,targetX:I,targetY:I,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ae,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:I,underlineThickness:I,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:I,values:null,vAlphabetic:I,vMathematical:I,vectorEffect:null,vHanging:I,vIdeographic:I,version:null,vertAdvY:I,vertOriginX:I,vertOriginY:I,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:I,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:xr}),br=Be({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),wr=Be({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:kr}),Sr=Be({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Ki={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"},Ji=/[A-Z]/g,In=/-[a-z]/g,Zi=/^data[-\w.:]+$/i;function el(e,t){const n=Bt(t);let r=t,i=le;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Zi.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(In,nl);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!In.test(o)){let l=o.replace(Ji,tl);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Jt}return new i(r,t)}function tl(e){return"-"+e.toLowerCase()}function nl(e){return e.charAt(1).toUpperCase()}const rl=gr([yr,Gi,br,wr,Sr],"html"),Zt=gr([yr,Qi,br,wr,Sr],"svg");function il(e){return e.join(" ").trim()}function Cr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Oe={},Tt,vn;function ll(){if(vn)return Tt;vn=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,a=/^\s+|\s+$/g,s=`
|
|
2
|
+
`,u="/",f="*",c="",p="comment",h="declaration";function g(C,y){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];y=y||{};var E=1,T=1;function j(L){var F=L.match(t);F&&(E+=F.length);var $=L.lastIndexOf(s);T=~$?L.length-$:T+L.length}function z(){var L={line:E,column:T};return function(F){return F.position=new w(L),q(),F}}function w(L){this.start=L,this.end={line:E,column:T},this.source=y.source}w.prototype.content=C;function N(L){var F=new Error(y.source+":"+E+":"+T+": "+L);if(F.reason=L,F.filename=y.source,F.line=E,F.column=T,F.source=C,!y.silent)throw F}function U(L){var F=L.exec(C);if(F){var $=F[0];return j($),C=C.slice($.length),F}}function q(){U(n)}function x(L){var F;for(L=L||[];F=A();)F!==!1&&L.push(F);return L}function A(){var L=z();if(!(u!=C.charAt(0)||f!=C.charAt(1))){for(var F=2;c!=C.charAt(F)&&(f!=C.charAt(F)||u!=C.charAt(F+1));)++F;if(F+=2,c===C.charAt(F-1))return N("End of comment missing");var $=C.slice(2,F-2);return T+=2,j($),C=C.slice(F),T+=2,L({type:p,comment:$})}}function D(){var L=z(),F=U(r);if(F){if(A(),!U(i))return N("property missing ':'");var $=U(o),K=L({type:h,property:k(F[0].replace(e,c)),value:$?k($[0].replace(e,c)):c});return U(l),K}}function V(){var L=[];x(L);for(var F;F=D();)F!==!1&&(L.push(F),x(L));return L}return q(),V()}function k(C){return C?C.replace(a,c):c}return Tt=g,Tt}var An;function ol(){if(An)return Oe;An=1;var e=Oe&&Oe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.default=n;const t=e(ll());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,t.default)(r),a=typeof i=="function";return l.forEach(s=>{if(s.type!=="declaration")return;const{property:u,value:f}=s;a?i(u,f,s):f&&(o=o||{},o[u]=f)}),o}return Oe}var $e={},Fn;function al(){if(Fn)return $e;Fn=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(u){return!u||n.test(u)||e.test(u)},l=function(u,f){return f.toUpperCase()},a=function(u,f){return"".concat(f,"-")},s=function(u,f){return f===void 0&&(f={}),o(u)?u:(u=u.toLowerCase(),f.reactCompat?u=u.replace(i,a):u=u.replace(r,a),u.replace(t,l))};return $e.camelCase=s,$e}var We,Dn;function ul(){if(Dn)return We;Dn=1;var e=We&&We.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(ol()),n=al();function r(i,o){var l={};return!i||typeof i!="string"||(0,t.default)(i,function(a,s){a&&s&&(l[(0,n.camelCase)(a,o)]=s)}),l}return r.default=r,We=r,We}var sl=ul();const cl=Cr(sl),Tr=Er("end"),en=Er("start");function Er(e){return t;function t(n){const r=n&&n.position&&n.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 fl(e){const t=en(e),n=Tr(e);if(t&&n)return{start:t,end:n}}function Ge(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Pn(e.position):"start"in e||"end"in e?Pn(e):"line"in e||"column"in e?Ht(e):""}function Ht(e){return jn(e&&e.line)+":"+jn(e&&e.column)}function Pn(e){return Ht(e&&e.start)+"-"+Ht(e&&e.end)}function jn(e){return e&&typeof e=="number"?e:1}class te extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const s=r.indexOf(":");s===-1?o.ruleId=r:(o.source=r.slice(0,s),o.ruleId=r.slice(s+1))}if(!o.place&&o.ancestors&&o.ancestors){const s=o.ancestors[o.ancestors.length-1];s&&(o.place=s.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Ge(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}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 tn={}.hasOwnProperty,hl=new Map,pl=/[A-Z]/g,ml=new Set(["table","tbody","thead","tfoot","tr"]),dl=new Set(["td","th"]),Ir="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function gl(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Tl(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Cl(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?Zt:rl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=vr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function vr(e,t,n){if(t.type==="element")return yl(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return xl(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return bl(e,t,n);if(t.type==="mdxjsEsm")return kl(e,t);if(t.type==="root")return wl(e,t,n);if(t.type==="text")return Sl(e,t)}function yl(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Zt,e.schema=i),e.ancestors.push(t);const o=Fr(e,t.tagName,!1),l=El(e,t);let a=rn(e,t);return ml.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!Yi(s):!0})),Ar(e,l,o,t),nn(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function xl(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Je(e,t.position)}function kl(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Je(e,t.position)}function bl(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Zt,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Fr(e,t.name,!0),l=Il(e,t),a=rn(e,t);return Ar(e,l,o,t),nn(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function wl(e,t,n){const r={};return nn(r,rn(e,t)),e.create(t,e.Fragment,r,n)}function Sl(e,t){return t.value}function Ar(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function nn(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Cl(e,t,n){return r;function r(i,o,l,a){const u=Array.isArray(l.children)?n:t;return a?u(o,l,a):u(o,l)}}function Tl(e,t){return n;function n(r,i,o,l){const a=Array.isArray(o.children),s=en(r);return t(i,o,l,a,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function El(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&tn.call(t.properties,i)){const o=vl(e,i,t.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&dl.has(t.tagName)?r=a:n[l]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Il(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Je(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Je(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function rn(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:hl;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const s=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(s){const u=i.get(s)||0;l=s+"-"+u,i.set(s,u+1)}}const a=vr(e,o,l);a!==void 0&&n.push(a)}return n}function vl(e,t,n){const r=el(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?qi(n):il(n)),r.property==="style"){let i=typeof n=="object"?n:Al(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Fl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?Ki[r.property]||r.property:r.attribute,n]}}function Al(e,t){try{return cl(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,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=Ir+"#cannot-parse-style-attribute",i}}function Fr(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const a=Cn(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=Cn(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return tn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Je(e)}function Je(e,t){const n=new te("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=Ir+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Fl(e){const t={};let n;for(n in e)tn.call(e,n)&&(t[Dl(n)]=e[n]);return t}function Dl(e){let t=e.replace(pl,Pl);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Pl(e){return"-"+e.toLowerCase()}const Et={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"]},jl={};function ln(e,t){const n=jl,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Dr(e,r,i)}function Dr(e,t,n){if(Ll(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Ln(e.children,t,n)}return Array.isArray(e)?Ln(e,t,n):""}function Ln(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Dr(e[i],t,n);return r.join("")}function Ll(e){return!!(e&&typeof e=="object")}const zn=document.createElement("i");function on(e){const t="&"+e+";";zn.innerHTML=t;const n=zn.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ue(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function se(e,t){return e.length>0?(ue(e,e.length,0,t),e):t}const On={}.hasOwnProperty;function Pr(e){const t={};let n=-1;for(;++n<e.length;)zl(t,e[n]);return t}function zl(e,t){let n;for(n in t){const i=(On.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){On.call(i,l)||(i[l]=[]);const a=o[l];Ol(i[l],Array.isArray(a)?a:a?[a]:[])}}}function Ol(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ue(e,0,0,r)}function jr(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function me(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ne=Te(/[A-Za-z]/),Z=Te(/[\dA-Za-z]/),Rl=Te(/[#-'*+\--9=?A-Z^-~]/);function ct(e){return e!==null&&(e<32||e===127)}const Vt=Te(/\d/),Nl=Te(/[\dA-Fa-f]/),_l=Te(/[!-/:-@[-`{-~]/);function P(e){return e!==null&&e<-2}function X(e){return e!==null&&(e<0||e===32)}function M(e){return e===-2||e===-1||e===32}const dt=Te(new RegExp("\\p{P}|\\p{S}","u")),De=Te(/\s/);function Te(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Ue(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&Z(e.charCodeAt(n+1))&&Z(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function H(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return M(s)?(e.enter(n),a(s)):t(s)}function a(s){return M(s)&&o++<i?(e.consume(s),a):(e.exit(n),t(s))}}const Ml={tokenize:Bl};function Bl(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),H(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const s=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=s),n=s,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return P(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const Ul={tokenize:ql},Rn={tokenize:Hl};function ql(e){const t=this,n=[];let r=0,i,o,l;return a;function a(T){if(r<n.length){const j=n[r];return t.containerState=j[1],e.attempt(j[0].continuation,s,u)(T)}return u(T)}function s(T){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&E();const j=t.events.length;let z=j,w;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){w=t.events[z][1].end;break}y(r);let N=j;for(;N<t.events.length;)t.events[N][1].end={...w},N++;return ue(t.events,z+1,0,t.events.slice(j)),t.events.length=N,u(T)}return a(T)}function u(T){if(r===n.length){if(!i)return p(T);if(i.currentConstruct&&i.currentConstruct.concrete)return g(T);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Rn,f,c)(T)}function f(T){return i&&E(),y(r),p(T)}function c(T){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,g(T)}function p(T){return t.containerState={},e.attempt(Rn,h,g)(T)}function h(T){return r++,n.push([t.currentConstruct,t.containerState]),p(T)}function g(T){if(T===null){i&&E(),y(0),e.consume(T);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),k(T)}function k(T){if(T===null){C(e.exit("chunkFlow"),!0),y(0),e.consume(T);return}return P(T)?(e.consume(T),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(T),k)}function C(T,j){const z=t.sliceStream(T);if(j&&z.push(null),T.previous=o,o&&(o.next=T),o=T,i.defineSkip(T.start),i.write(z),t.parser.lazy[T.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<l&&(!i.events[w][1].end||i.events[w][1].end.offset>l))return;const N=t.events.length;let U=N,q,x;for(;U--;)if(t.events[U][0]==="exit"&&t.events[U][1].type==="chunkFlow"){if(q){x=t.events[U][1].end;break}q=!0}for(y(r),w=N;w<t.events.length;)t.events[w][1].end={...x},w++;ue(t.events,U+1,0,t.events.slice(N)),t.events.length=w}}function y(T){let j=n.length;for(;j-- >T;){const z=n[j];t.containerState=z[1],z[0].exit.call(t,e)}n.length=T}function E(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Hl(e,t,n){return H(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function _e(e){if(e===null||X(e)||De(e))return 1;if(dt(e))return 2}function gt(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const $t={name:"attention",resolveAll:Vl,tokenize:$l};function Vl(e,t){let n=-1,r,i,o,l,a,s,u,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;s=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},p={...e[n][1].start};Nn(c,-s),Nn(p,s),l={type:s>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},a={type:s>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},o={type:s>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:s>1?"strong":"emphasis",start:{...l.start},end:{...a.end}},e[r][1].end={...l.start},e[n][1].start={...a.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=se(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=se(u,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),u=se(u,gt(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=se(u,[["exit",o,t],["enter",a,t],["exit",a,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,u=se(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,ue(e,r-1,n-r+3,u),n=r+u.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function $l(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=_e(r);let o;return l;function l(s){return o=s,e.enter("attentionSequence"),a(s)}function a(s){if(s===o)return e.consume(s),a;const u=e.exit("attentionSequence"),f=_e(s),c=!f||f===2&&i||n.includes(s),p=!i||i===2&&f||n.includes(r);return u._open=!!(o===42?c:c&&(i||!p)),u._close=!!(o===42?p:p&&(f||!c)),t(s)}}function Nn(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Wl={name:"autolink",tokenize:Yl};function Yl(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return ne(h)?(e.consume(h),l):h===64?n(h):u(h)}function l(h){return h===43||h===45||h===46||Z(h)?(r=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),r=0,s):(h===43||h===45||h===46||Z(h))&&r++<32?(e.consume(h),a):(r=0,u(h))}function s(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||ct(h)?n(h):(e.consume(h),s)}function u(h){return h===64?(e.consume(h),f):Rl(h)?(e.consume(h),u):n(h)}function f(h){return Z(h)?c(h):n(h)}function c(h){return h===46?(e.consume(h),r=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||Z(h))&&r++<63){const g=h===45?p:c;return e.consume(h),g}return n(h)}}const tt={partial:!0,tokenize:Xl};function Xl(e,t,n){return r;function r(o){return M(o)?H(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||P(o)?t(o):n(o)}}const Lr={continuation:{tokenize:Ql},exit:Kl,name:"blockQuote",tokenize:Gl};function Gl(e,t,n){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return M(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function Ql(e,t,n){const r=this;return i;function i(l){return M(l)?H(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Lr,t,n)(l)}}function Kl(e){e.exit("blockQuote")}const zr={name:"characterEscape",tokenize:Jl};function Jl(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return _l(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Or={name:"characterReference",tokenize:Zl};function Zl(e,t,n){const r=this;let i=0,o,l;return a;function a(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),s}function s(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,l=Z,f(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Nl,f):(e.enter("characterReferenceValue"),o=7,l=Vt,f(c))}function f(c){if(c===59&&i){const p=e.exit("characterReferenceValue");return l===Z&&!on(r.sliceSerialize(p))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(c)&&i++<o?(e.consume(c),f):n(c)}}const _n={partial:!0,tokenize:to},Mn={concrete:!0,name:"codeFenced",tokenize:eo};function eo(e,t,n){const r=this,i={partial:!0,tokenize:z};let o=0,l=0,a;return s;function s(w){return u(w)}function u(w){const N=r.events[r.events.length-1];return o=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,a=w,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(w)}function f(w){return w===a?(l++,e.consume(w),f):l<3?n(w):(e.exit("codeFencedFenceSequence"),M(w)?H(e,c,"whitespace")(w):c(w))}function c(w){return w===null||P(w)?(e.exit("codeFencedFence"),r.interrupt?t(w):e.check(_n,k,j)(w)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||P(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(w)):M(w)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),H(e,h,"whitespace")(w)):w===96&&w===a?n(w):(e.consume(w),p)}function h(w){return w===null||P(w)?c(w):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===null||P(w)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(w)):w===96&&w===a?n(w):(e.consume(w),g)}function k(w){return e.attempt(i,j,C)(w)}function C(w){return e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),y}function y(w){return o>0&&M(w)?H(e,E,"linePrefix",o+1)(w):E(w)}function E(w){return w===null||P(w)?e.check(_n,k,j)(w):(e.enter("codeFlowValue"),T(w))}function T(w){return w===null||P(w)?(e.exit("codeFlowValue"),E(w)):(e.consume(w),T)}function j(w){return e.exit("codeFenced"),t(w)}function z(w,N,U){let q=0;return x;function x(F){return w.enter("lineEnding"),w.consume(F),w.exit("lineEnding"),A}function A(F){return w.enter("codeFencedFence"),M(F)?H(w,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):D(F)}function D(F){return F===a?(w.enter("codeFencedFenceSequence"),V(F)):U(F)}function V(F){return F===a?(q++,w.consume(F),V):q>=l?(w.exit("codeFencedFenceSequence"),M(F)?H(w,L,"whitespace")(F):L(F)):U(F)}function L(F){return F===null||P(F)?(w.exit("codeFencedFence"),N(F)):U(F)}}}function to(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const It={name:"codeIndented",tokenize:ro},no={partial:!0,tokenize:io};function ro(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),H(e,o,"linePrefix",5)(u)}function o(u){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(u):n(u)}function l(u){return u===null?s(u):P(u)?e.attempt(no,l,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||P(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function io(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):P(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):H(e,o,"linePrefix",5)(l)}function o(l){const a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):P(l)?i(l):n(l)}}const lo={name:"codeText",previous:ao,resolve:oo,tokenize:uo};function oo(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||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),t-=r-i-2,r=i+2),i=void 0);return e}function ao(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function uo(e,t,n){let r=0,i,o;return l;function l(c){return e.enter("codeText"),e.enter("codeTextSequence"),a(c)}function a(c){return c===96?(e.consume(c),r++,a):(e.exit("codeTextSequence"),s(c))}function s(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),s):c===96?(o=e.enter("codeTextSequence"),i=0,f(c)):P(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||P(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"),t(c)):(o.type="codeTextData",u(c))}}class so{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&Ye(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),Ye(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ye(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Ye(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ye(this.left,n.reverse())}}}function Ye(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Rr(e){const t={};let n=-1,r,i,o,l,a,s,u;const f=new so(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(s=r[1]._tokenizer.events,o=0,o<s.length&&s[o][1].type==="lineEndingBlank"&&(o+=2),o<s.length&&s[o][1].type==="content"))for(;++o<s.length&&s[o][1].type!=="content";)s[o][1].type==="chunkText"&&(s[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,co(f,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},a=f.slice(i,n),a.unshift(r),f.splice(i,n-i+1,a))}}return ue(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!u}function co(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,s=[],u={};let f,c,p=-1,h=n,g=0,k=0;const C=[k];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=r.sliceStream(h),h.next||f.push(null),c&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=h,h=h.next}for(h=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(k=p+1,C.push(k),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):C.pop(),p=C.length;p--;){const y=a.slice(C[p],C[p+1]),E=o.pop();s.push([E,E+y.length-1]),e.splice(E,2,y)}for(s.reverse(),p=-1;++p<s.length;)u[g+s[p][0]]=g+s[p][1],g+=s[p][1]-s[p][0]-1;return u}const fo={resolve:po,tokenize:mo},ho={partial:!0,tokenize:go};function po(e){return Rr(e),e}function mo(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):P(a)?e.check(ho,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function l(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function go(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),H(e,o,"linePrefix")}function o(l){if(l===null||P(l))return n(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Nr(e,t,n,r,i,o,l,a,s){const u=s||Number.POSITIVE_INFINITY;let f=0;return c;function c(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||ct(y)?n(y):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),k(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(a),p(y)):y===null||y===60||P(y)?n(y):(e.consume(y),y===92?g:h)}function g(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function k(y){return!f&&(y===null||y===41||X(y))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(y)):f<u&&y===40?(e.consume(y),f++,k):y===41?(e.consume(y),f--,k):y===null||y===32||y===40||ct(y)?n(y):(e.consume(y),y===92?C:k)}function C(y){return y===40||y===41||y===92?(e.consume(y),k):k(y)}}function _r(e,t,n,r,i,o){const l=this;let a=0,s;return u;function u(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return a>999||h===null||h===91||h===93&&!s||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):P(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===null||h===91||h===93||P(h)||a++>999?(e.exit("chunkString"),f(h)):(e.consume(h),s||(s=!M(h)),h===92?p:c)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,c):c(h)}}function Mr(e,t,n,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,s):n(p)}function s(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),u(p))}function u(p){return p===l?(e.exit(o),s(l)):p===null?n(p):P(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),H(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===l||p===null||P(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?c:f)}function c(p){return p===l||p===92?(e.consume(p),f):f(p)}}function Qe(e,t){let n;return r;function r(i){return P(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):M(i)?H(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const yo={name:"definition",tokenize:ko},xo={partial:!0,tokenize:bo};function ko(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return _r.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=me(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),s):n(h)}function s(h){return X(h)?Qe(e,u)(h):u(h)}function u(h){return Nr(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(xo,c,c)(h)}function c(h){return M(h)?H(e,p,"whitespace")(h):p(h)}function p(h){return h===null||P(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function bo(e,t,n){return r;function r(a){return X(a)?Qe(e,i)(a):n(a)}function i(a){return Mr(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return M(a)?H(e,l,"whitespace")(a):l(a)}function l(a){return a===null||P(a)?t(a):n(a)}}const wo={name:"hardBreakEscape",tokenize:So};function So(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return P(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Co={name:"headingAtx",resolve:To,tokenize:Eo};function To(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},ue(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Eo(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||X(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||P(f)?(e.exit("atxHeading"),t(f)):M(f)?H(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||X(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const Io=["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"],Bn=["pre","script","style","textarea"],vo={concrete:!0,name:"htmlFlow",resolveTo:Do,tokenize:Po},Ao={partial:!0,tokenize:Lo},Fo={partial:!0,tokenize:jo};function Do(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Po(e,t,n){const r=this;let i,o,l,a,s;return u;function u(d){return f(d)}function f(d){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(d),c}function c(d){return d===33?(e.consume(d),p):d===47?(e.consume(d),o=!0,k):d===63?(e.consume(d),i=3,r.interrupt?t:m):ne(d)?(e.consume(d),l=String.fromCharCode(d),C):n(d)}function p(d){return d===45?(e.consume(d),i=2,h):d===91?(e.consume(d),i=5,a=0,g):ne(d)?(e.consume(d),i=4,r.interrupt?t:m):n(d)}function h(d){return d===45?(e.consume(d),r.interrupt?t:m):n(d)}function g(d){const he="CDATA[";return d===he.charCodeAt(a++)?(e.consume(d),a===he.length?r.interrupt?t:D:g):n(d)}function k(d){return ne(d)?(e.consume(d),l=String.fromCharCode(d),C):n(d)}function C(d){if(d===null||d===47||d===62||X(d)){const he=d===47,Ee=l.toLowerCase();return!he&&!o&&Bn.includes(Ee)?(i=1,r.interrupt?t(d):D(d)):Io.includes(l.toLowerCase())?(i=6,he?(e.consume(d),y):r.interrupt?t(d):D(d)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(d):o?E(d):T(d))}return d===45||Z(d)?(e.consume(d),l+=String.fromCharCode(d),C):n(d)}function y(d){return d===62?(e.consume(d),r.interrupt?t:D):n(d)}function E(d){return M(d)?(e.consume(d),E):x(d)}function T(d){return d===47?(e.consume(d),x):d===58||d===95||ne(d)?(e.consume(d),j):M(d)?(e.consume(d),T):x(d)}function j(d){return d===45||d===46||d===58||d===95||Z(d)?(e.consume(d),j):z(d)}function z(d){return d===61?(e.consume(d),w):M(d)?(e.consume(d),z):T(d)}function w(d){return d===null||d===60||d===61||d===62||d===96?n(d):d===34||d===39?(e.consume(d),s=d,N):M(d)?(e.consume(d),w):U(d)}function N(d){return d===s?(e.consume(d),s=null,q):d===null||P(d)?n(d):(e.consume(d),N)}function U(d){return d===null||d===34||d===39||d===47||d===60||d===61||d===62||d===96||X(d)?z(d):(e.consume(d),U)}function q(d){return d===47||d===62||M(d)?T(d):n(d)}function x(d){return d===62?(e.consume(d),A):n(d)}function A(d){return d===null||P(d)?D(d):M(d)?(e.consume(d),A):n(d)}function D(d){return d===45&&i===2?(e.consume(d),$):d===60&&i===1?(e.consume(d),K):d===62&&i===4?(e.consume(d),fe):d===63&&i===3?(e.consume(d),m):d===93&&i===5?(e.consume(d),ye):P(d)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Ao,xe,V)(d)):d===null||P(d)?(e.exit("htmlFlowData"),V(d)):(e.consume(d),D)}function V(d){return e.check(Fo,L,xe)(d)}function L(d){return e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),F}function F(d){return d===null||P(d)?V(d):(e.enter("htmlFlowData"),D(d))}function $(d){return d===45?(e.consume(d),m):D(d)}function K(d){return d===47?(e.consume(d),l="",ce):D(d)}function ce(d){if(d===62){const he=l.toLowerCase();return Bn.includes(he)?(e.consume(d),fe):D(d)}return ne(d)&&l.length<8?(e.consume(d),l+=String.fromCharCode(d),ce):D(d)}function ye(d){return d===93?(e.consume(d),m):D(d)}function m(d){return d===62?(e.consume(d),fe):d===45&&i===2?(e.consume(d),m):D(d)}function fe(d){return d===null||P(d)?(e.exit("htmlFlowData"),xe(d)):(e.consume(d),fe)}function xe(d){return e.exit("htmlFlow"),t(d)}}function jo(e,t,n){const r=this;return i;function i(l){return P(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function Lo(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(tt,t,n)}}const zo={name:"htmlText",tokenize:Oo};function Oo(e,t,n){const r=this;let i,o,l;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),s}function s(m){return m===33?(e.consume(m),u):m===47?(e.consume(m),z):m===63?(e.consume(m),T):ne(m)?(e.consume(m),U):n(m)}function u(m){return m===45?(e.consume(m),f):m===91?(e.consume(m),o=0,g):ne(m)?(e.consume(m),E):n(m)}function f(m){return m===45?(e.consume(m),h):n(m)}function c(m){return m===null?n(m):m===45?(e.consume(m),p):P(m)?(l=c,K(m)):(e.consume(m),c)}function p(m){return m===45?(e.consume(m),h):c(m)}function h(m){return m===62?$(m):m===45?p(m):c(m)}function g(m){const fe="CDATA[";return m===fe.charCodeAt(o++)?(e.consume(m),o===fe.length?k:g):n(m)}function k(m){return m===null?n(m):m===93?(e.consume(m),C):P(m)?(l=k,K(m)):(e.consume(m),k)}function C(m){return m===93?(e.consume(m),y):k(m)}function y(m){return m===62?$(m):m===93?(e.consume(m),y):k(m)}function E(m){return m===null||m===62?$(m):P(m)?(l=E,K(m)):(e.consume(m),E)}function T(m){return m===null?n(m):m===63?(e.consume(m),j):P(m)?(l=T,K(m)):(e.consume(m),T)}function j(m){return m===62?$(m):T(m)}function z(m){return ne(m)?(e.consume(m),w):n(m)}function w(m){return m===45||Z(m)?(e.consume(m),w):N(m)}function N(m){return P(m)?(l=N,K(m)):M(m)?(e.consume(m),N):$(m)}function U(m){return m===45||Z(m)?(e.consume(m),U):m===47||m===62||X(m)?q(m):n(m)}function q(m){return m===47?(e.consume(m),$):m===58||m===95||ne(m)?(e.consume(m),x):P(m)?(l=q,K(m)):M(m)?(e.consume(m),q):$(m)}function x(m){return m===45||m===46||m===58||m===95||Z(m)?(e.consume(m),x):A(m)}function A(m){return m===61?(e.consume(m),D):P(m)?(l=A,K(m)):M(m)?(e.consume(m),A):q(m)}function D(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),i=m,V):P(m)?(l=D,K(m)):M(m)?(e.consume(m),D):(e.consume(m),L)}function V(m){return m===i?(e.consume(m),i=void 0,F):m===null?n(m):P(m)?(l=V,K(m)):(e.consume(m),V)}function L(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||X(m)?q(m):(e.consume(m),L)}function F(m){return m===47||m===62||X(m)?q(m):n(m)}function $(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function K(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ce}function ce(m){return M(m)?H(e,ye,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):ye(m)}function ye(m){return e.enter("htmlTextData"),l(m)}}const an={name:"labelEnd",resolveAll:Mo,resolveTo:Bo,tokenize:Uo},Ro={tokenize:qo},No={tokenize:Ho},_o={tokenize:Vo};function Mo(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&ue(e,0,e.length,n),e}function Bo(e,t){let n=e.length,r=0,i,o,l,a;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const s={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return a=[["enter",s,t],["enter",u,t]],a=se(a,e.slice(o+1,o+r+3)),a=se(a,[["enter",f,t]]),a=se(a,gt(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),a=se(a,[["exit",f,t],e[l-2],e[l-1],["exit",u,t]]),a=se(a,e.slice(l+1)),a=se(a,[["exit",s,t]]),ue(e,o,e.length,a),e}function Uo(e,t,n){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return a;function a(p){return o?o._inactive?c(p):(l=r.parser.defined.includes(me(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),s):n(p)}function s(p){return p===40?e.attempt(Ro,f,l?f:c)(p):p===91?e.attempt(No,f,l?u:c)(p):l?f(p):c(p)}function u(p){return e.attempt(_o,f,c)(p)}function f(p){return t(p)}function c(p){return o._balanced=!0,n(p)}}function qo(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),i}function i(c){return X(c)?Qe(e,o)(c):o(c)}function o(c){return c===41?f(c):Nr(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return X(c)?Qe(e,s)(c):f(c)}function a(c){return n(c)}function s(c){return c===34||c===39||c===40?Mr(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return X(c)?Qe(e,f)(c):f(c)}function f(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function Ho(e,t,n){const r=this;return i;function i(a){return _r.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(me(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function Vo(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const $o={name:"labelStartImage",resolveAll:an.resolveAll,tokenize:Wo};function Wo(e,t,n){const r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):n(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):t(a)}}const Yo={name:"labelStartLink",resolveAll:an.resolveAll,tokenize:Xo};function Xo(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const vt={name:"lineEnding",tokenize:Go};function Go(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),H(e,t,"linePrefix")}}const st={name:"thematicBreak",tokenize:Qo};function Qo(e,t,n){let r=0,i;return o;function o(u){return e.enter("thematicBreak"),l(u)}function l(u){return i=u,a(u)}function a(u){return u===i?(e.enter("thematicBreakSequence"),s(u)):r>=3&&(u===null||P(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),M(u)?H(e,a,"whitespace")(u):a(u))}}const re={continuation:{tokenize:ea},exit:na,name:"list",tokenize:Zo},Ko={partial:!0,tokenize:ra},Jo={partial:!0,tokenize:ta};function Zo(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(h){const g=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:Vt(h)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(st,n,u)(h):u(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(h)}return n(h)}function s(h){return Vt(h)&&++l<10?(e.consume(h),s):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(tt,r.interrupt?n:f,e.attempt(Ko,p,c))}function f(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function c(h){return M(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function ea(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(tt,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,H(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!M(a)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(a)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Jo,t,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,H(e,e.attempt(re,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ta(e,t,n){const r=this;return H(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function na(e){e.exit(this.containerState.type)}function ra(e,t,n){const r=this;return H(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!M(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Un={name:"setextUnderline",resolveTo:ia,tokenize:la};function ia(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function la(e,t,n){const r=this;let i;return o;function o(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,l(u)):n(u)}function l(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===i?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),M(u)?H(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||P(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const oa={tokenize:aa};function aa(e){const t=this,n=e.attempt(tt,r,e.attempt(this.parser.constructs.flowInitial,i,H(e,e.attempt(this.parser.constructs.flow,i,e.attempt(fo,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const ua={resolveAll:Ur()},sa=Br("string"),ca=Br("text");function Br(e){return{resolveAll:Ur(e==="text"?fa:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,a);return l;function l(f){return u(f)?o(f):a(f)}function a(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),s}function s(f){return u(f)?(n.exit("data"),o(f)):(n.consume(f),s)}function u(f){if(f===null)return!0;const c=i[f];let p=-1;if(c)for(;++p<c.length;){const h=c[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function Ur(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function fa(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,l=-1,a=0,s;for(;o--;){const u=i[o];if(typeof u=="string"){for(l=u.length;u.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(u===-2)s=!0,a++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||s||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-a,offset:r.end.offset-a},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const ha={42:re,43:re,45:re,48:re,49:re,50:re,51:re,52:re,53:re,54:re,55:re,56:re,57:re,62:Lr},pa={91:yo},ma={[-2]:It,[-1]:It,32:It},da={35:Co,42:st,45:[Un,st],60:vo,61:Un,95:st,96:Mn,126:Mn},ga={38:Or,92:zr},ya={[-5]:vt,[-4]:vt,[-3]:vt,33:$o,38:Or,42:$t,60:[Wl,zo],91:Yo,92:[wo,zr],93:an,95:$t,96:lo},xa={null:[$t,ua]},ka={null:[42,95]},ba={null:[]},wa=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ka,contentInitial:pa,disable:ba,document:ha,flow:da,flowInitial:ma,insideSpan:xa,string:ga,text:ya},Symbol.toStringTag,{value:"Module"}));function Sa(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let l=[],a=[];const s={attempt:N(z),check:N(w),consume:E,enter:T,exit:j,interrupt:N(w,{interrupt:!0})},u={code:null,containerState:{},defineSkip:k,events:[],now:g,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:c};let f=t.tokenize.call(u,s);return t.resolveAll&&o.push(t),u;function c(A){return l=se(l,A),C(),l[l.length-1]!==null?[]:(U(t,0),u.events=gt(o,u.events,u),u.events)}function p(A,D){return Ta(h(A),D)}function h(A){return Ca(l,A)}function g(){const{_bufferIndex:A,_index:D,line:V,column:L,offset:F}=r;return{_bufferIndex:A,_index:D,line:V,column:L,offset:F}}function k(A){i[A.line]=A.column,x()}function C(){let A;for(;r._index<l.length;){const D=l[r._index];if(typeof D=="string")for(A=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===A&&r._bufferIndex<D.length;)y(D.charCodeAt(r._bufferIndex));else y(D)}}function y(A){f=f(A)}function E(A){P(A)?(r.line++,r.column=1,r.offset+=A===-3?2:1,x()):A!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=A}function T(A,D){const V=D||{};return V.type=A,V.start=g(),u.events.push(["enter",V,u]),a.push(V),V}function j(A){const D=a.pop();return D.end=g(),u.events.push(["exit",D,u]),D}function z(A,D){U(A,D.from)}function w(A,D){D.restore()}function N(A,D){return V;function V(L,F,$){let K,ce,ye,m;return Array.isArray(L)?xe(L):"tokenize"in L?xe([L]):fe(L);function fe(J){return qe;function qe(Se){const je=Se!==null&&J[Se],Le=Se!==null&&J.null,it=[...Array.isArray(je)?je:je?[je]:[],...Array.isArray(Le)?Le:Le?[Le]:[]];return xe(it)(Se)}}function xe(J){return K=J,ce=0,J.length===0?$:d(J[ce])}function d(J){return qe;function qe(Se){return m=q(),ye=J,J.partial||(u.currentConstruct=J),J.name&&u.parser.constructs.disable.null.includes(J.name)?Ee():J.tokenize.call(D?Object.assign(Object.create(u),D):u,s,he,Ee)(Se)}}function he(J){return A(ye,m),F}function Ee(J){return m.restore(),++ce<K.length?d(K[ce]):$}}}function U(A,D){A.resolveAll&&!o.includes(A)&&o.push(A),A.resolve&&ue(u.events,D,u.events.length-D,A.resolve(u.events.slice(D),u)),A.resolveTo&&(u.events=A.resolveTo(u.events,u))}function q(){const A=g(),D=u.previous,V=u.currentConstruct,L=u.events.length,F=Array.from(a);return{from:L,restore:$};function $(){r=A,u.previous=D,u.currentConstruct=V,u.events.length=L,a=F,x()}}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ca(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function Ta(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
|
|
3
3
|
`;break}case-3:{l=`\r
|
|
4
|
-
`;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function Ta(e){const r={constructs:Pr([ba,...(e||{}).extensions||[]]),content:i(_l),defined:[],document:i(Bl),flow:i(la),lazy:{},string:i(ua),text:i(sa)};return r;function i(o){return l;function l(a){return wa(r,o,a)}}}function Ea(e){for(;!Rr(e););return e}const qt=/[\0\t\n\r]/g;function Ia(){let e=1,n="",t=!0,r;return i;function i(o,l,a){const s=[];let u,f,c,p,h;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,n="",t&&(o.charCodeAt(0)===65279&&c++,t=void 0);c<o.length;){if(qt.lastIndex=c,u=qt.exec(o),p=u&&u.index!==void 0?u.index:o.length,h=o.charCodeAt(p),!u){n=o.slice(c);break}if(h===10&&c===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<p&&(s.push(o.slice(c,p)),e+=p-c),h){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=p+1}return a&&(r&&s.push(-5),n&&s.push(n),s.push(null)),s}}const va=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Aa(e){return e.replace(va,Fa)}function Fa(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){const i=t.charCodeAt(1),o=i===120||i===88;return jr(t.slice(o?2:1),o?16:10)}return lt(t)||e}const qr={}.hasOwnProperty;function Da(e,n,t){return n&&typeof n=="object"&&(t=n,n=void 0),Pa(t)(Ea(Ta(t).document().write(Ia()(e,n,!0))))}function Pa(e){const n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(wt),autolinkProtocol:q,autolinkEmail:q,atxHeading:o(xt),blockQuote:o(Le),characterEscape:q,characterReference:q,codeFenced:o(ln),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(ln,l),codeText:o(Pi,l),codeTextData:q,data:q,codeFlowValue:q,definition:o(ji),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Li),hardBreakEscape:o(kt),hardBreakTrailing:o(kt),htmlFlow:o(bt,l),htmlFlowData:q,htmlText:o(bt,l),htmlTextData:q,image:o(zi),label:l,link:o(wt),listItem:o(Oi),listItemValue:p,listOrdered:o(St,c),listUnordered:o(St),paragraph:o(Ri),reference:d,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(xt),strong:o(Ni),thematicBreak:o(Mi)},exit:{atxHeading:s(),atxHeadingSequence:z,autolink:s(),autolinkEmail:je,autolinkProtocol:Se,blockQuote:s(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:Ee,characterReferenceMarkerNumeric:Ee,characterReferenceValue:J,characterReference:qe,codeFenced:s(C),codeFencedFence:k,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:x,codeIndented:s(y),codeText:s(F),codeTextData:x,data:x,definition:s(),definitionDestinationString:j,definitionLabelString:E,definitionTitleString:T,emphasis:s(),hardBreakEscape:s(D),hardBreakTrailing:s(D),htmlFlow:s(V),htmlFlowData:x,htmlText:s(L),htmlTextData:x,image:s(K),label:ye,labelText:ce,lineEnding:A,link:s($),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:he,resourceDestinationString:m,resourceTitleString:fe,resource:xe,setextHeading:s(U),setextHeadingLineSequence:N,setextHeadingText:w,strong:s(),thematicBreak:s()}};Hr(n,(e||{}).mdastExtensions||[]);const t={};return r;function r(S){let v={type:"root",children:[]};const R={stack:[v],tokenStack:[],config:n,enter:a,exit:u,buffer:l,resume:f,data:t},B=[];let W=-1;for(;++W<S.length;)if(S[W][1].type==="listOrdered"||S[W][1].type==="listUnordered")if(S[W][0]==="enter")B.push(W);else{const pe=B.pop();W=i(S,pe,W)}for(W=-1;++W<S.length;){const pe=n[S[W][0]];qr.call(pe,S[W][1].type)&&pe[S[W][1].type].call(Object.assign({sliceSerialize:S[W][2].sliceSerialize},R),S[W][1])}if(R.tokenStack.length>0){const pe=R.tokenStack[R.tokenStack.length-1];(pe[1]||Ht).call(R,void 0,pe[0])}for(v.position={start:Ce(S.length>0?S[0][1].start:{line:1,column:1,offset:0}),end:Ce(S.length>0?S[S.length-2][1].end:{line:1,column:1,offset:0})},W=-1;++W<n.transforms.length;)v=n.transforms[W](v)||v;return v}function i(S,v,R){let B=v-1,W=-1,pe=!1,Ie,ke,He,Ve;for(;++B<=R;){const le=S[B];switch(le[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{le[0]==="enter"?W++:W--,Ve=void 0;break}case"lineEndingBlank":{le[0]==="enter"&&(Ie&&!Ve&&!W&&!He&&(He=B),Ve=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ve=void 0}if(!W&&le[0]==="enter"&&le[1].type==="listItemPrefix"||W===-1&&le[0]==="exit"&&(le[1].type==="listUnordered"||le[1].type==="listOrdered")){if(Ie){let ze=B;for(ke=void 0;ze--;){const be=S[ze];if(be[1].type==="lineEnding"||be[1].type==="lineEndingBlank"){if(be[0]==="exit")continue;ke&&(S[ke][1].type="lineEndingBlank",pe=!0),be[1].type="lineEnding",ke=ze}else if(!(be[1].type==="linePrefix"||be[1].type==="blockQuotePrefix"||be[1].type==="blockQuotePrefixWhitespace"||be[1].type==="blockQuoteMarker"||be[1].type==="listItemIndent"))break}He&&(!ke||He<ke)&&(Ie._spread=!0),Ie.end=Object.assign({},ke?S[ke][1].start:le[1].end),S.splice(ke||B,0,["exit",Ie,le[2]]),B++,R++}if(le[1].type==="listItemPrefix"){const ze={type:"listItem",_spread:!1,start:Object.assign({},le[1].start),end:void 0};Ie=ze,S.splice(B,0,["enter",ze,le[2]]),B++,R++,He=void 0,Ve=!0}}}return S[v][1]._spread=pe,R}function o(S,v){return R;function R(B){a.call(this,S(B),B),v&&v.call(this,B)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(S,v,R){this.stack[this.stack.length-1].children.push(S),this.stack.push(S),this.tokenStack.push([v,R||void 0]),S.position={start:Ce(v.start),end:void 0}}function s(S){return v;function v(R){S&&S.call(this,R),u.call(this,R)}}function u(S,v){const R=this.stack.pop(),B=this.tokenStack.pop();if(B)B[0].type!==S.type&&(v?v.call(this,S,B[0]):(B[1]||Ht).call(this,S,B[0]));else throw new Error("Cannot close `"+S.type+"` ("+Ge({start:S.start,end:S.end})+"): it’s not open");R.position.end=Ce(S.end)}function f(){return it(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(S){if(this.data.expectingFirstListItemValue){const v=this.stack[this.stack.length-2];v.start=Number.parseInt(this.sliceSerialize(S),10),this.data.expectingFirstListItemValue=void 0}}function h(){const S=this.resume(),v=this.stack[this.stack.length-1];v.lang=S}function g(){const S=this.resume(),v=this.stack[this.stack.length-1];v.meta=S}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const S=this.resume(),v=this.stack[this.stack.length-1];v.value=S.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const S=this.resume(),v=this.stack[this.stack.length-1];v.value=S.replace(/(\r?\n|\r)$/g,"")}function E(S){const v=this.resume(),R=this.stack[this.stack.length-1];R.label=v,R.identifier=me(this.sliceSerialize(S)).toLowerCase()}function T(){const S=this.resume(),v=this.stack[this.stack.length-1];v.title=S}function j(){const S=this.resume(),v=this.stack[this.stack.length-1];v.url=S}function z(S){const v=this.stack[this.stack.length-1];if(!v.depth){const R=this.sliceSerialize(S).length;v.depth=R}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function N(S){const v=this.stack[this.stack.length-1];v.depth=this.sliceSerialize(S).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function q(S){const R=this.stack[this.stack.length-1].children;let B=R[R.length-1];(!B||B.type!=="text")&&(B=_i(),B.position={start:Ce(S.start),end:void 0},R.push(B)),this.stack.push(B)}function x(S){const v=this.stack.pop();v.value+=this.sliceSerialize(S),v.position.end=Ce(S.end)}function A(S){const v=this.stack[this.stack.length-1];if(this.data.atHardBreak){const R=v.children[v.children.length-1];R.position.end=Ce(S.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(v.type)&&(q.call(this,S),x.call(this,S))}function D(){this.data.atHardBreak=!0}function V(){const S=this.resume(),v=this.stack[this.stack.length-1];v.value=S}function L(){const S=this.resume(),v=this.stack[this.stack.length-1];v.value=S}function F(){const S=this.resume(),v=this.stack[this.stack.length-1];v.value=S}function $(){const S=this.stack[this.stack.length-1];if(this.data.inReference){const v=this.data.referenceType||"shortcut";S.type+="Reference",S.referenceType=v,delete S.url,delete S.title}else delete S.identifier,delete S.label;this.data.referenceType=void 0}function K(){const S=this.stack[this.stack.length-1];if(this.data.inReference){const v=this.data.referenceType||"shortcut";S.type+="Reference",S.referenceType=v,delete S.url,delete S.title}else delete S.identifier,delete S.label;this.data.referenceType=void 0}function ce(S){const v=this.sliceSerialize(S),R=this.stack[this.stack.length-2];R.label=Aa(v),R.identifier=me(v).toLowerCase()}function ye(){const S=this.stack[this.stack.length-1],v=this.resume(),R=this.stack[this.stack.length-1];if(this.data.inReference=!0,R.type==="link"){const B=S.children;R.children=B}else R.alt=v}function m(){const S=this.resume(),v=this.stack[this.stack.length-1];v.url=S}function fe(){const S=this.resume(),v=this.stack[this.stack.length-1];v.title=S}function xe(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function he(S){const v=this.resume(),R=this.stack[this.stack.length-1];R.label=v,R.identifier=me(this.sliceSerialize(S)).toLowerCase(),this.data.referenceType="full"}function Ee(S){this.data.characterReferenceType=S.type}function J(S){const v=this.sliceSerialize(S),R=this.data.characterReferenceType;let B;R?(B=jr(v,R==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):B=lt(v);const W=this.stack[this.stack.length-1];W.value+=B}function qe(S){const v=this.stack.pop();v.position.end=Ce(S.end)}function Se(S){x.call(this,S);const v=this.stack[this.stack.length-1];v.url=this.sliceSerialize(S)}function je(S){x.call(this,S);const v=this.stack[this.stack.length-1];v.url="mailto:"+this.sliceSerialize(S)}function Le(){return{type:"blockquote",children:[]}}function ln(){return{type:"code",lang:null,meta:null,value:""}}function Pi(){return{type:"inlineCode",value:""}}function ji(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Li(){return{type:"emphasis",children:[]}}function xt(){return{type:"heading",depth:0,children:[]}}function kt(){return{type:"break"}}function bt(){return{type:"html",value:""}}function zi(){return{type:"image",title:null,url:"",alt:null}}function wt(){return{type:"link",title:null,url:"",children:[]}}function St(S){return{type:"list",ordered:S.type==="listOrdered",start:null,spread:S._spread,children:[]}}function Oi(S){return{type:"listItem",spread:S._spread,checked:null,children:[]}}function Ri(){return{type:"paragraph",children:[]}}function Ni(){return{type:"strong",children:[]}}function _i(){return{type:"text",value:""}}function Mi(){return{type:"thematicBreak"}}}function Ce(e){return{line:e.line,column:e.column,offset:e.offset}}function Hr(e,n){let t=-1;for(;++t<n.length;){const r=n[t];Array.isArray(r)?Hr(e,r):ja(e,r)}}function ja(e,n){let t;for(t in n)if(qr.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 Ht(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Ge({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Ge({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Ge({start:n.start,end:n.end})+") is still open")}function La(e){const n=this;n.parser=t;function t(r){return Da(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function za(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 Oa(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=
|
|
4
|
+
`;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function Ea(e){const r={constructs:Pr([wa,...(e||{}).extensions||[]]),content:i(Ml),defined:[],document:i(Ul),flow:i(oa),lazy:{},string:i(sa),text:i(ca)};return r;function i(o){return l;function l(a){return Sa(r,o,a)}}}function Ia(e){for(;!Rr(e););return e}const qn=/[\0\t\n\r]/g;function va(){let e=1,t="",n=!0,r;return i;function i(o,l,a){const s=[];let u,f,c,p,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),c=0,t="",n&&(o.charCodeAt(0)===65279&&c++,n=void 0);c<o.length;){if(qn.lastIndex=c,u=qn.exec(o),p=u&&u.index!==void 0?u.index:o.length,h=o.charCodeAt(p),!u){t=o.slice(c);break}if(h===10&&c===p&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<p&&(s.push(o.slice(c,p)),e+=p-c),h){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=p+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const Aa=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Fa(e){return e.replace(Aa,Da)}function Da(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return jr(n.slice(o?2:1),o?16:10)}return on(n)||e}const qr={}.hasOwnProperty;function Pa(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),ja(n)(Ia(Ea(n).document().write(va()(e,t,!0))))}function ja(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(wn),autolinkProtocol:q,autolinkEmail:q,atxHeading:o(xn),blockQuote:o(Le),characterEscape:q,characterReference:q,codeFenced:o(it),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(it,l),codeText:o(ji,l),codeTextData:q,data:q,codeFlowValue:q,definition:o(Li),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(zi),hardBreakEscape:o(kn),hardBreakTrailing:o(kn),htmlFlow:o(bn,l),htmlFlowData:q,htmlText:o(bn,l),htmlTextData:q,image:o(Oi),label:l,link:o(wn),listItem:o(Ri),listItemValue:p,listOrdered:o(Sn,c),listUnordered:o(Sn),paragraph:o(Ni),reference:d,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(xn),strong:o(_i),thematicBreak:o(Bi)},exit:{atxHeading:s(),atxHeadingSequence:z,autolink:s(),autolinkEmail:je,autolinkProtocol:Se,blockQuote:s(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:Ee,characterReferenceMarkerNumeric:Ee,characterReferenceValue:J,characterReference:qe,codeFenced:s(C),codeFencedFence:k,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:x,codeIndented:s(y),codeText:s(F),codeTextData:x,data:x,definition:s(),definitionDestinationString:j,definitionLabelString:E,definitionTitleString:T,emphasis:s(),hardBreakEscape:s(D),hardBreakTrailing:s(D),htmlFlow:s(V),htmlFlowData:x,htmlText:s(L),htmlTextData:x,image:s(K),label:ye,labelText:ce,lineEnding:A,link:s($),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:he,resourceDestinationString:m,resourceTitleString:fe,resource:xe,setextHeading:s(U),setextHeadingLineSequence:N,setextHeadingText:w,strong:s(),thematicBreak:s()}};Hr(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(S){let v={type:"root",children:[]};const R={stack:[v],tokenStack:[],config:t,enter:a,exit:u,buffer:l,resume:f,data:n},B=[];let W=-1;for(;++W<S.length;)if(S[W][1].type==="listOrdered"||S[W][1].type==="listUnordered")if(S[W][0]==="enter")B.push(W);else{const pe=B.pop();W=i(S,pe,W)}for(W=-1;++W<S.length;){const pe=t[S[W][0]];qr.call(pe,S[W][1].type)&&pe[S[W][1].type].call(Object.assign({sliceSerialize:S[W][2].sliceSerialize},R),S[W][1])}if(R.tokenStack.length>0){const pe=R.tokenStack[R.tokenStack.length-1];(pe[1]||Hn).call(R,void 0,pe[0])}for(v.position={start:Ce(S.length>0?S[0][1].start:{line:1,column:1,offset:0}),end:Ce(S.length>0?S[S.length-2][1].end:{line:1,column:1,offset:0})},W=-1;++W<t.transforms.length;)v=t.transforms[W](v)||v;return v}function i(S,v,R){let B=v-1,W=-1,pe=!1,Ie,ke,He,Ve;for(;++B<=R;){const oe=S[B];switch(oe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{oe[0]==="enter"?W++:W--,Ve=void 0;break}case"lineEndingBlank":{oe[0]==="enter"&&(Ie&&!Ve&&!W&&!He&&(He=B),Ve=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ve=void 0}if(!W&&oe[0]==="enter"&&oe[1].type==="listItemPrefix"||W===-1&&oe[0]==="exit"&&(oe[1].type==="listUnordered"||oe[1].type==="listOrdered")){if(Ie){let ze=B;for(ke=void 0;ze--;){const be=S[ze];if(be[1].type==="lineEnding"||be[1].type==="lineEndingBlank"){if(be[0]==="exit")continue;ke&&(S[ke][1].type="lineEndingBlank",pe=!0),be[1].type="lineEnding",ke=ze}else if(!(be[1].type==="linePrefix"||be[1].type==="blockQuotePrefix"||be[1].type==="blockQuotePrefixWhitespace"||be[1].type==="blockQuoteMarker"||be[1].type==="listItemIndent"))break}He&&(!ke||He<ke)&&(Ie._spread=!0),Ie.end=Object.assign({},ke?S[ke][1].start:oe[1].end),S.splice(ke||B,0,["exit",Ie,oe[2]]),B++,R++}if(oe[1].type==="listItemPrefix"){const ze={type:"listItem",_spread:!1,start:Object.assign({},oe[1].start),end:void 0};Ie=ze,S.splice(B,0,["enter",ze,oe[2]]),B++,R++,He=void 0,Ve=!0}}}return S[v][1]._spread=pe,R}function o(S,v){return R;function R(B){a.call(this,S(B),B),v&&v.call(this,B)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(S,v,R){this.stack[this.stack.length-1].children.push(S),this.stack.push(S),this.tokenStack.push([v,R||void 0]),S.position={start:Ce(v.start),end:void 0}}function s(S){return v;function v(R){S&&S.call(this,R),u.call(this,R)}}function u(S,v){const R=this.stack.pop(),B=this.tokenStack.pop();if(B)B[0].type!==S.type&&(v?v.call(this,S,B[0]):(B[1]||Hn).call(this,S,B[0]));else throw new Error("Cannot close `"+S.type+"` ("+Ge({start:S.start,end:S.end})+"): it’s not open");R.position.end=Ce(S.end)}function f(){return ln(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function p(S){if(this.data.expectingFirstListItemValue){const v=this.stack[this.stack.length-2];v.start=Number.parseInt(this.sliceSerialize(S),10),this.data.expectingFirstListItemValue=void 0}}function h(){const S=this.resume(),v=this.stack[this.stack.length-1];v.lang=S}function g(){const S=this.resume(),v=this.stack[this.stack.length-1];v.meta=S}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const S=this.resume(),v=this.stack[this.stack.length-1];v.value=S.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const S=this.resume(),v=this.stack[this.stack.length-1];v.value=S.replace(/(\r?\n|\r)$/g,"")}function E(S){const v=this.resume(),R=this.stack[this.stack.length-1];R.label=v,R.identifier=me(this.sliceSerialize(S)).toLowerCase()}function T(){const S=this.resume(),v=this.stack[this.stack.length-1];v.title=S}function j(){const S=this.resume(),v=this.stack[this.stack.length-1];v.url=S}function z(S){const v=this.stack[this.stack.length-1];if(!v.depth){const R=this.sliceSerialize(S).length;v.depth=R}}function w(){this.data.setextHeadingSlurpLineEnding=!0}function N(S){const v=this.stack[this.stack.length-1];v.depth=this.sliceSerialize(S).codePointAt(0)===61?1:2}function U(){this.data.setextHeadingSlurpLineEnding=void 0}function q(S){const R=this.stack[this.stack.length-1].children;let B=R[R.length-1];(!B||B.type!=="text")&&(B=Mi(),B.position={start:Ce(S.start),end:void 0},R.push(B)),this.stack.push(B)}function x(S){const v=this.stack.pop();v.value+=this.sliceSerialize(S),v.position.end=Ce(S.end)}function A(S){const v=this.stack[this.stack.length-1];if(this.data.atHardBreak){const R=v.children[v.children.length-1];R.position.end=Ce(S.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(v.type)&&(q.call(this,S),x.call(this,S))}function D(){this.data.atHardBreak=!0}function V(){const S=this.resume(),v=this.stack[this.stack.length-1];v.value=S}function L(){const S=this.resume(),v=this.stack[this.stack.length-1];v.value=S}function F(){const S=this.resume(),v=this.stack[this.stack.length-1];v.value=S}function $(){const S=this.stack[this.stack.length-1];if(this.data.inReference){const v=this.data.referenceType||"shortcut";S.type+="Reference",S.referenceType=v,delete S.url,delete S.title}else delete S.identifier,delete S.label;this.data.referenceType=void 0}function K(){const S=this.stack[this.stack.length-1];if(this.data.inReference){const v=this.data.referenceType||"shortcut";S.type+="Reference",S.referenceType=v,delete S.url,delete S.title}else delete S.identifier,delete S.label;this.data.referenceType=void 0}function ce(S){const v=this.sliceSerialize(S),R=this.stack[this.stack.length-2];R.label=Fa(v),R.identifier=me(v).toLowerCase()}function ye(){const S=this.stack[this.stack.length-1],v=this.resume(),R=this.stack[this.stack.length-1];if(this.data.inReference=!0,R.type==="link"){const B=S.children;R.children=B}else R.alt=v}function m(){const S=this.resume(),v=this.stack[this.stack.length-1];v.url=S}function fe(){const S=this.resume(),v=this.stack[this.stack.length-1];v.title=S}function xe(){this.data.inReference=void 0}function d(){this.data.referenceType="collapsed"}function he(S){const v=this.resume(),R=this.stack[this.stack.length-1];R.label=v,R.identifier=me(this.sliceSerialize(S)).toLowerCase(),this.data.referenceType="full"}function Ee(S){this.data.characterReferenceType=S.type}function J(S){const v=this.sliceSerialize(S),R=this.data.characterReferenceType;let B;R?(B=jr(v,R==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):B=on(v);const W=this.stack[this.stack.length-1];W.value+=B}function qe(S){const v=this.stack.pop();v.position.end=Ce(S.end)}function Se(S){x.call(this,S);const v=this.stack[this.stack.length-1];v.url=this.sliceSerialize(S)}function je(S){x.call(this,S);const v=this.stack[this.stack.length-1];v.url="mailto:"+this.sliceSerialize(S)}function Le(){return{type:"blockquote",children:[]}}function it(){return{type:"code",lang:null,meta:null,value:""}}function ji(){return{type:"inlineCode",value:""}}function Li(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function zi(){return{type:"emphasis",children:[]}}function xn(){return{type:"heading",depth:0,children:[]}}function kn(){return{type:"break"}}function bn(){return{type:"html",value:""}}function Oi(){return{type:"image",title:null,url:"",alt:null}}function wn(){return{type:"link",title:null,url:"",children:[]}}function Sn(S){return{type:"list",ordered:S.type==="listOrdered",start:null,spread:S._spread,children:[]}}function Ri(S){return{type:"listItem",spread:S._spread,checked:null,children:[]}}function Ni(){return{type:"paragraph",children:[]}}function _i(){return{type:"strong",children:[]}}function Mi(){return{type:"text",value:""}}function Bi(){return{type:"thematicBreak"}}}function Ce(e){return{line:e.line,column:e.column,offset:e.offset}}function Hr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Hr(e,r):La(e,r)}}function La(e,t){let n;for(n in t)if(qr.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Hn(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Ge({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Ge({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Ge({start:t.start,end:t.end})+") is still open")}function za(e){const t=this;t.parser=n;function n(r){return Pa(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Oa(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function Ra(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
5
|
+
`}]}function Na(e,t){const n=t.value?t.value+`
|
|
6
|
+
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function _a(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ma(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ba(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Ue(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const s={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,s);const u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function Ua(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function qa(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Vr(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function Ha(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Vr(e,t);const i={src:Ue(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Va(e,t){const n={src:Ue(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function $a(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Wa(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Vr(e,t);const i={href:Ue(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Ya(e,t){const n={href:Ue(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Xa(e,t,n){const r=e.all(t),i=n?Ga(n):$r(t),o={},l=[];if(typeof t.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:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const f=r[a];(i||a!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
|
|
7
7
|
`}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const s=r[r.length-1];s&&(i||s.type!=="element"||s.tagName!=="p")&&l.push({type:"text",value:`
|
|
8
|
-
`});const u={type:"element",tagName:"li",properties:o,children:l};return e.patch(
|
|
8
|
+
`});const u={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,u),e.applyData(t,u)}function Ga(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=$r(n[r])}return t}function $r(e){const t=e.spread;return t??e.children.length>1}function Qa(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function Ka(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ja(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Za(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function eu(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=en(t.children[1]),s=Tr(t.children[t.children.length-1]);a&&s&&(l.position={start:a,end:s}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function tu(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,a=l?l.length:t.children.length;let s=-1;const u=[];for(;++s<a;){const c=t.children[s],p={},h=l?l[s]:void 0;h&&(p.align=h);let g={type:"element",tagName:o,properties:p,children:[]};c&&(g.children=e.all(c),e.patch(c,g),g=e.applyData(c,g)),u.push(g)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,f),e.applyData(t,f)}function nu(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Vn=9,$n=32;function ru(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Wn(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Wn(t.slice(i),i>0,!1)),o.join("")}function Wn(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===Vn||o===$n;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===Vn||o===$n;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function iu(e,t){const n={type:"text",value:ru(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function lu(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const ou={blockquote:Oa,break:Ra,code:Na,delete:_a,emphasis:Ma,footnoteReference:Ba,heading:Ua,html:qa,imageReference:Ha,image:Va,inlineCode:$a,linkReference:Wa,link:Ya,listItem:Xa,list:Qa,paragraph:Ka,root:Ja,strong:Za,table:eu,tableCell:nu,tableRow:tu,text:iu,thematicBreak:lu,toml:lt,yaml:lt,definition:lt,footnoteDefinition:lt};function lt(){}const Wr=-1,yt=0,Ke=1,ft=2,un=3,sn=4,cn=5,fn=6,Yr=7,Xr=8,au=typeof self=="object"?self:globalThis,Yn=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new au[e](t)},uu=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case yt:case Wr:return n(l,i);case Ke:{const a=n([],i);for(const s of l)a.push(r(s));return a}case ft:{const a=n({},i);for(const[s,u]of l)a[r(s)]=r(u);return a}case un:return n(new Date(l),i);case sn:{const{source:a,flags:s}=l;return n(new RegExp(a,s),i)}case cn:{const a=n(new Map,i);for(const[s,u]of l)a.set(r(s),r(u));return a}case fn:{const a=n(new Set,i);for(const s of l)a.add(r(s));return a}case Yr:{const{name:a,message:s}=l;return n(Yn(a,s),i)}case Xr:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return n(new DataView(a),l)}}return n(Yn(o,l),i)};return r},Xn=e=>uu(new Map,e)(0),Re="",{toString:su}={},{keys:cu}=Object,Xe=e=>{const t=typeof e;if(t!=="object"||!e)return[yt,t];const n=su.call(e).slice(8,-1);switch(n){case"Array":return[Ke,Re];case"Object":return[ft,Re];case"Date":return[un,Re];case"RegExp":return[sn,Re];case"Map":return[cn,Re];case"Set":return[fn,Re];case"DataView":return[Ke,n]}return n.includes("Array")?[Ke,n]:n.includes("Error")?[Yr,n]:[ft,n]},ot=([e,t])=>e===yt&&(t==="function"||t==="symbol"),fu=(e,t,n,r)=>{const i=(l,a)=>{const s=r.push(l)-1;return n.set(a,s),s},o=l=>{if(n.has(l))return n.get(l);let[a,s]=Xe(l);switch(a){case yt:{let f=l;switch(s){case"bigint":a=Xr,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+s);f=null;break;case"undefined":return i([Wr],l)}return i([a,f],l)}case Ke:{if(s){let p=l;return s==="DataView"?p=new Uint8Array(l.buffer):s==="ArrayBuffer"&&(p=new Uint8Array(l)),i([s,[...p]],l)}const f=[],c=i([a,f],l);for(const p of l)f.push(o(p));return c}case ft:{if(s)switch(s){case"BigInt":return i([s,l.toString()],l);case"Boolean":case"Number":case"String":return i([s,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const f=[],c=i([a,f],l);for(const p of cu(l))(e||!ot(Xe(l[p])))&&f.push([o(p),o(l[p])]);return c}case un:return i([a,l.toISOString()],l);case sn:{const{source:f,flags:c}=l;return i([a,{source:f,flags:c}],l)}case cn:{const f=[],c=i([a,f],l);for(const[p,h]of l)(e||!(ot(Xe(p))||ot(Xe(h))))&&f.push([o(p),o(h)]);return c}case fn:{const f=[],c=i([a,f],l);for(const p of l)(e||!ot(Xe(p)))&&f.push(o(p));return c}}const{message:u}=l;return i([a,{name:s,message:u}],l)};return o},Gn=(e,{json:t,lossy:n}={})=>{const r=[];return fu(!(t||n),!!t,new Map,r)(e),r},ht=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Xn(Gn(e,t)):structuredClone(e):(e,t)=>Xn(Gn(e,t));function hu(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function pu(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function mu(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||hu,r=e.options.footnoteBackLabel||pu,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=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(),p=Ue(c.toLowerCase());let h=0;const g=[],k=e.footnoteCounts.get(c);for(;k!==void 0&&++h<=k;){g.length>0&&g.push({type:"text",value:" "});let E=typeof n=="string"?n:n(s,h);typeof E=="string"&&(E={type:"text",value:E}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,h),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}const C=f[f.length-1];if(C&&C.type==="element"&&C.tagName==="p"){const E=C.children[C.children.length-1];E&&E.type==="text"?E.value+=" ":C.children.push({type:"text",value:" "}),C.children.push(...g)}else f.push(...g);const y={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(f,!0)};e.patch(u,y),a.push(y)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ht(l),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
|
|
11
|
-
`});++r<e.length;)r&&
|
|
12
|
-
`}),
|
|
13
|
-
`}),
|
|
14
|
-
`},i),o}function Au(e,n){return e&&"run"in e?async function(t,r){const i=Kt(t,{file:r,...n});await e.run(i,r)}:function(t,r){return Kt(t,{file:r,...e||n})}}function Jt(e){if(e)throw e}var An,Zt;function Fu(){if(Zt)return An;Zt=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]"},o=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 p;for(p in u);return typeof p>"u"||e.call(u,p)},l=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 An=function s(){var u,f,c,p,h,g,k=arguments[0],C=1,y=arguments.length,E=!1;for(typeof k=="boolean"&&(E=k,k=arguments[1]||{},C=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});C<y;++C)if(u=arguments[C],u!=null)for(f in u)c=a(k,f),p=a(u,f),k!==p&&(E&&p&&(o(p)||(h=i(p)))?(h?(h=!1,g=c&&i(c)?c:[]):g=c&&o(c)?c:{},l(k,{name:f,newValue:s(E,g,p)})):typeof p<"u"&&l(k,{name:f,newValue:p}));return k},An}var Du=Fu();const Fn=Cr(Du);function Xn(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 Pu(){const e=[],n={run:t,use:r};return n;function t(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(s,...u){const f=e[++o];let c=-1;if(s){l(s);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?ju(f,a)(...u):l(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 ju(e,n){let t;return r;function r(...l){const a=e.length>l.length;let s;a&&l.push(i);try{s=e.apply(this,l)}catch(u){const f=u;if(a&&t)throw f;return i(f)}a||(s&&s.then&&typeof s.then=="function"?s.then(o,i):s instanceof Error?i(s):o(s))}function i(l,...a){t||(t=!0,n(l,...a))}function o(l){i(null,l)}}const de={basename:Lu,dirname:zu,extname:Ou,join:Ru,sep:"/"};function Lu(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');tn(e);let t=0,r=-1,i=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let l=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return t===r?r=l:r<0&&(r=e.length),e.slice(t,r)}function zu(e){if(tn(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 Ou(e){tn(e);let n=e.length,t=-1,r=0,i=-1,o=0,l;for(;n--;){const a=e.codePointAt(n);if(a===47){if(l){r=n+1;break}continue}t<0&&(l=!0,t=n+1),a===46?i<0?i=n:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||t<0||o===0||o===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Ru(...e){let n=-1,t;for(;++n<e.length;)tn(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":Nu(t)}function Nu(e){tn(e);const n=e.codePointAt(0)===47;let t=_u(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function _u(e,n){let t="",r=0,i=-1,o=0,l=-1,a,s;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(s=t.lastIndexOf("/"),s!==t.length-1){s<0?(t="",r=0):(t=t.slice(0,s),r=t.length-1-t.lastIndexOf("/")),i=l,o=0;continue}}else if(t.length>0){t="",r=0,i=l,o=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,l):t=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return t}function tn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Mu={cwd:Bu};function Bu(){return"/"}function Gn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Uu(e){if(typeof e=="string")e=new URL(e);else if(!Gn(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 qu(e)}function qu(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 Dn=["history","path","basename","stem","extname","dirname"];class Kr{constructor(n){let t;n?Gn(n)?t={path:n}:typeof n=="string"||Hu(n)?t={value:n}:t=n:t={},this.cwd="cwd"in t?"":Mu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Dn.length;){const o=Dn[r];o in t&&t[o]!==void 0&&t[o]!==null&&(this[o]=o==="history"?[...t[o]]:t[o])}let i;for(i in t)Dn.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?de.basename(this.path):void 0}set basename(n){jn(n,"basename"),Pn(n,"basename"),this.path=de.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?de.dirname(this.path):void 0}set dirname(n){er(this.basename,"dirname"),this.path=de.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?de.extname(this.path):void 0}set extname(n){if(Pn(n,"extname"),er(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=de.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){Gn(n)&&(n=Uu(n)),jn(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?de.basename(this.path,this.extname):void 0}set stem(n){jn(n,"stem"),Pn(n,"stem"),this.path=de.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 ee(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}}function Pn(e,n){if(e&&e.includes(de.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+de.sep+"`")}function jn(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function er(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function Hu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Vu=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),$u={}.hasOwnProperty;class ht extends Vu{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=Pu()}copy(){const n=new ht;let t=-1;for(;++t<this.attachers.length;){const r=this.attachers[t];n.use(...r)}return n.data(Fn(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(On("data",this.frozen),this.namespace[n]=t,this):$u.call(this.namespace,n)&&this.namespace[n]||void 0:n?(On("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=un(n),r=this.parser||this.Parser;return Ln("parse",r),r(String(t),t)}process(n,t){const r=this;return this.freeze(),Ln("process",this.parser||this.Parser),zn("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(o,l){const a=un(n),s=r.parse(a);r.run(s,a,function(f,c,p){if(f||!c||!p)return u(f);const h=c,g=r.stringify(h,p);Xu(g)?p.value=g:p.result=g,u(f,p)});function u(f,c){f||!c?l(f):o?o(c):t(void 0,c)}}}processSync(n){let t=!1,r;return this.freeze(),Ln("processSync",this.parser||this.Parser),zn("processSync",this.compiler||this.Compiler),this.process(n,i),tr("processSync","process",t),r;function i(o,l){t=!0,Jt(o),r=l}}run(n,t,r){nr(n),this.freeze();const i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const s=un(t);i.run(n,s,u);function u(f,c,p){const h=c||n;f?a(f):l?l(h):r(void 0,h,p)}}}runSync(n,t){let r=!1,i;return this.run(n,t,o),tr("runSync","run",r),i;function o(l,a){Jt(l),i=a,r=!0}}stringify(n,t){this.freeze();const r=un(t),i=this.compiler||this.Compiler;return zn("stringify",i),nr(n),i(n,r)}use(n,...t){const r=this.attachers,i=this.namespace;if(On("use",this.frozen),n!=null)if(typeof n=="function")s(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;s(f,c)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(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=Fn(!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];o(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===u){p=c;break}if(p===-1)r.push([u,...f]);else if(f.length>0){let[h,...g]=f;const k=r[p][1];Xn(k)&&Xn(h)&&(h=Fn(!0,k,h)),r[p]=[u,h,...g]}}}}const Wu=new ht().freeze();function Ln(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function zn(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function On(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 nr(e){if(!Xn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function tr(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function un(e){return Yu(e)?e:new Kr(e)}function Yu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Xu(e){return typeof e=="string"||Gu(e)}function Gu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Qu="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",rr=[],ir={allowDangerousHtml:!0},Ku=/^(https?|ircs?|mailto|xmpp)$/i,Ju=[{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 Zu(e){const n=es(e),t=ns(e);return ts(n.runSync(n.parse(t),t),e)}function es(e){const n=e.rehypePlugins||rr,t=e.remarkPlugins||rr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ir}:ir;return Wu().use(La).use(t).use(Au,r).use(n)}function ns(e){const n=e.children||"",t=new Kr;return typeof n=="string"&&(t.value=n),t}function ts(e,n){const t=n.allowedElements,r=n.allowElement,i=n.components,o=n.disallowedElements,l=n.skipHtml,a=n.unwrapDisallowed,s=n.urlTransform||rs;for(const f of Ju)Object.hasOwn(n,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Qu+f.id,void 0);return ft(e,u),dl(e,{Fragment:b.Fragment,components:i,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function u(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return l?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in En)if(Object.hasOwn(En,h)&&Object.hasOwn(f.properties,h)){const g=f.properties[h],k=En[h];(k===null||k.includes(f.tagName))&&(f.properties[h]=s(String(g||""),h,f))}}if(f.type==="element"){let h=t?!t.includes(f.tagName):o?o.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return a&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function rs(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||Ku.test(e.slice(0,n))?e:""}function lr(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 is(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function ls(e,n,t){const i=kn((t||{}).ignore||[]),o=os(n);let l=-1;for(;++l<o.length;)Qr(e,"text",a);function a(u,f){let c=-1,p;for(;++c<f.length;){const h=f[c],g=p?p.children:void 0;if(i(h,g?g.indexOf(h):void 0,p))return;p=h}if(p)return s(u,f)}function s(u,f){const c=f[f.length-1],p=o[l][0],h=o[l][1];let g=0;const C=c.children.indexOf(u);let y=!1,E=[];p.lastIndex=0;let T=p.exec(u.value);for(;T;){const j=T.index,z={index:T.index,input:T.input,stack:[...f,u]};let w=h(...T,z);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=j+1:(g!==j&&E.push({type:"text",value:u.value.slice(g,j)}),Array.isArray(w)?E.push(...w):w&&E.push(w),g=j+T[0].length,y=!0),!p.global)break;T=p.exec(u.value)}return y?(g<u.value.length&&E.push({type:"text",value:u.value.slice(g)}),c.children.splice(C,1,...E)):E=[u],C+E.length}}function os(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([as(i[0]),us(i[1])])}return n}function as(e){return typeof e=="string"?new RegExp(is(e),"g"):e}function us(e){return typeof e=="function"?e:function(){return e}}const Rn="phrasing",Nn=["autolink","link","image","label"];function ss(){return{transforms:[gs],enter:{literalAutolink:fs,literalAutolinkEmail:_n,literalAutolinkHttp:_n,literalAutolinkWww:_n},exit:{literalAutolink:ds,literalAutolinkEmail:ms,literalAutolinkHttp:hs,literalAutolinkWww:ps}}}function cs(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Rn,notInConstruct:Nn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Rn,notInConstruct:Nn},{character:":",before:"[ps]",after:"\\/",inConstruct:Rn,notInConstruct:Nn}]}}function fs(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function _n(e){this.config.enter.autolinkProtocol.call(this,e)}function hs(e){this.config.exit.autolinkProtocol.call(this,e)}function ps(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 ms(e){this.config.exit.autolinkEmail.call(this,e)}function ds(e){this.exit(e)}function gs(e){ls(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ys],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),xs]],{ignore:["link","linkReference"]})}function ys(e,n,t,r,i){let o="";if(!Jr(i)||(/^w/i.test(n)&&(t=n+t,n="",o="http://"),!ks(t)))return!1;const l=bs(t+r);if(!l[0])return!1;const a={type:"link",title:null,url:o+n+l[0],children:[{type:"text",value:n+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function xs(e,n,t,r){return!Jr(r,!0)||/[-\d_]$/.test(t)?!1:{type:"link",title:null,url:"mailto:"+n+"@"+t,children:[{type:"text",value:n+"@"+t}]}}function ks(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 bs(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=lr(e,"(");let o=lr(e,")");for(;r!==-1&&i>o;)e+=t.slice(0,r+1),t=t.slice(r+1),r=t.indexOf(")"),o++;return[e,t]}function Jr(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||De(t)||gn(t))&&(!n||t!==47)}Zr.peek=Fs;function ws(){this.buffer()}function Ss(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Cs(){this.buffer()}function Ts(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Es(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=me(this.sliceSerialize(e)).toLowerCase(),t.label=n}function Is(e){this.exit(e)}function vs(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=me(this.sliceSerialize(e)).toLowerCase(),t.label=n}function As(e){this.exit(e)}function Fs(){return"["}function Zr(e,n,t,r){const i=t.createTracker(r);let o=i.move("[^");const l=t.enter("footnoteReference"),a=t.enter("reference");return o+=i.move(t.safe(t.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function Ds(){return{enter:{gfmFootnoteCallString:ws,gfmFootnoteCall:Ss,gfmFootnoteDefinitionLabelString:Cs,gfmFootnoteDefinition:Ts},exit:{gfmFootnoteCallString:Es,gfmFootnoteCall:Is,gfmFootnoteDefinitionLabelString:vs,gfmFootnoteDefinition:As}}}function Ps(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:Zr},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(r,i,o,l){const a=o.createTracker(l);let s=a.move("[^");const u=o.enter("footnoteDefinition"),f=o.enter("label");return s+=a.move(o.safe(o.associationId(r),{before:s,after:"]"})),f(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((n?`
|
|
15
|
-
`:" ")+o.indentLines(o.containerFlow(r,a.current()),
|
|
16
|
-
`)}function
|
|
17
|
-
|
|
18
|
-
`}function
|
|
10
|
+
`}]}}const xt=(function(e){if(e==null)return xu;if(typeof e=="function")return kt(e);if(typeof e=="object")return Array.isArray(e)?du(e):gu(e);if(typeof e=="string")return yu(e);throw new Error("Expected function, string, or object as test")});function du(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=xt(e[n]);return kt(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function gu(e){const t=e;return kt(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function yu(e){return kt(t);function t(n){return n&&n.type===e}}function kt(e){return t;function t(n,r,i){return!!(ku(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function xu(){return!0}function ku(e){return e!==null&&typeof e=="object"&&"type"in e}const Gr=[],bu=!0,Wt=!1,wu="skip";function Qr(e,t,n,r){let i;typeof t=="function"&&typeof n!="function"?(r=n,n=t):i=t;const o=xt(i),l=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 h=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(s.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=Gr,g,k,C;if((!t||o(s,u,f[f.length-1]||void 0))&&(h=Su(n(s,f)),h[0]===Wt))return h;if("children"in s&&s.children){const y=s;if(y.children&&h[0]!==wu)for(k=(r?y.children.length:-1)+l,C=f.concat(y);k>-1&&k<y.children.length;){const E=y.children[k];if(g=a(E,k,C)(),g[0]===Wt)return g;k=typeof g[1]=="number"?g[1]:k+l}}return h}}}function Su(e){return Array.isArray(e)?e:typeof e=="number"?[bu,e]:e==null?Gr:[e]}function hn(e,t,n,r){let i,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,i=n):(o=t,l=n,i=r),Qr(e,o,a,i);function a(s,u){const f=u[u.length-1],c=f?f.children.indexOf(s):void 0;return l(s,c,f)}}const Yt={}.hasOwnProperty,Cu={};function Tu(e,t){const n=t||Cu,r=new Map,i=new Map,o=new Map,l={...ou,...n.handlers},a={all:u,applyData:Iu,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:s,options:n,patch:Eu,wrap:Au};return hn(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const c=f.type==="definition"?r:i,p=String(f.identifier).toUpperCase();c.has(p)||c.set(p,f)}}),a;function s(f,c){const p=f.type,h=a.handlers[p];if(Yt.call(a.handlers,p)&&h)return h(a,f,c);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in f){const{children:k,...C}=f,y=ht(C);return y.children=a.all(f),y}return ht(f)}return(a.options.unknownHandler||vu)(a,f,c)}function u(f){const c=[];if("children"in f){const p=f.children;let h=-1;for(;++h<p.length;){const g=a.one(p[h],f);if(g){if(h&&p[h-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Qn(g.value)),!Array.isArray(g)&&g.type==="element")){const k=g.children[0];k&&k.type==="text"&&(k.value=Qn(k.value))}Array.isArray(g)?c.push(...g):c.push(g)}}}return c}}function Eu(e,t){e.position&&(t.position=fl(e))}function Iu(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,ht(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function vu(e,t){const n=t.data||{},r="value"in t&&!(Yt.call(n,"hProperties")||Yt.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Au(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
|
|
11
|
+
`});++r<e.length;)r&&n.push({type:"text",value:`
|
|
12
|
+
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
|
|
13
|
+
`}),n}function Qn(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Kn(e,t){const n=Tu(e,t),r=n.one(e,void 0),i=mu(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
|
|
14
|
+
`},i),o}function Fu(e,t){return e&&"run"in e?async function(n,r){const i=Kn(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Kn(n,{file:r,...e||t})}}function Jn(e){if(e)throw e}var At,Zn;function Du(){if(Zn)return At;Zn=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},o=function(u){if(!u||t.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 p;for(p in u);return typeof p>"u"||e.call(u,p)},l=function(u,f){n&&f.name==="__proto__"?n(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 At=function s(){var u,f,c,p,h,g,k=arguments[0],C=1,y=arguments.length,E=!1;for(typeof k=="boolean"&&(E=k,k=arguments[1]||{},C=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});C<y;++C)if(u=arguments[C],u!=null)for(f in u)c=a(k,f),p=a(u,f),k!==p&&(E&&p&&(o(p)||(h=i(p)))?(h?(h=!1,g=c&&i(c)?c:[]):g=c&&o(c)?c:{},l(k,{name:f,newValue:s(E,g,p)})):typeof p<"u"&&l(k,{name:f,newValue:p}));return k},At}var Pu=Du();const Ft=Cr(Pu);function Xt(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ju(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(s,...u){const f=e[++o];let c=-1;if(s){l(s);return}for(;++c<i.length;)(u[c]===null||u[c]===void 0)&&(u[c]=i[c]);i=u,f?Lu(f,a)(...u):l(null,...u)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Lu(e,t){let n;return r;function r(...l){const a=e.length>l.length;let s;a&&l.push(i);try{s=e.apply(this,l)}catch(u){const f=u;if(a&&n)throw f;return i(f)}a||(s&&s.then&&typeof s.then=="function"?s.then(o,i):s instanceof Error?i(s):o(s))}function i(l,...a){n||(n=!0,t(l,...a))}function o(l){i(null,l)}}const de={basename:zu,dirname:Ou,extname:Ru,join:Nu,sep:"/"};function zu(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');nt(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function Ou(e){if(nt(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Ru(e){nt(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Nu(...e){let t=-1,n;for(;++t<e.length;)nt(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":_u(n)}function _u(e){nt(e);const t=e.codePointAt(0)===47;let n=Mu(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Mu(e,t){let n="",r=0,i=-1,o=0,l=-1,a,s;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(s=n.lastIndexOf("/"),s!==n.length-1){s<0?(n="",r=0):(n=n.slice(0,s),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length>0){n="",r=0,i=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return n}function nt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Bu={cwd:Uu};function Uu(){return"/"}function Gt(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function qu(e){if(typeof e=="string")e=new URL(e);else if(!Gt(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Hu(e)}function Hu(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 t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+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(t)}const Dt=["history","path","basename","stem","extname","dirname"];class Kr{constructor(t){let n;t?Gt(t)?n={path:t}:typeof t=="string"||Vu(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Bu.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Dt.length;){const o=Dt[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Dt.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?de.basename(this.path):void 0}set basename(t){jt(t,"basename"),Pt(t,"basename"),this.path=de.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?de.dirname(this.path):void 0}set dirname(t){er(this.basename,"dirname"),this.path=de.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?de.extname(this.path):void 0}set extname(t){if(Pt(t,"extname"),er(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=de.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Gt(t)&&(t=qu(t)),jt(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?de.basename(this.path,this.extname):void 0}set stem(t){jt(t,"stem"),Pt(t,"stem"),this.path=de.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new te(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Pt(e,t){if(e&&e.includes(de.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+de.sep+"`")}function jt(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function er(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Vu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const $u=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),Wu={}.hasOwnProperty;class pn extends $u{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=ju()}copy(){const t=new pn;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Ft(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Ot("data",this.frozen),this.namespace[t]=n,this):Wu.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Ot("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=at(t),r=this.parser||this.Parser;return Lt("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Lt("process",this.parser||this.Parser),zt("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,l){const a=at(t),s=r.parse(a);r.run(s,a,function(f,c,p){if(f||!c||!p)return u(f);const h=c,g=r.stringify(h,p);Gu(g)?p.value=g:p.result=g,u(f,p)});function u(f,c){f||!c?l(f):o?o(c):n(void 0,c)}}}processSync(t){let n=!1,r;return this.freeze(),Lt("processSync",this.parser||this.Parser),zt("processSync",this.compiler||this.Compiler),this.process(t,i),nr("processSync","process",n),r;function i(o,l){n=!0,Jn(o),r=l}}run(t,n,r){tr(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const s=at(n);i.run(t,s,u);function u(f,c,p){const h=c||t;f?a(f):l?l(h):r(void 0,h,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),nr("runSync","run",r),i;function o(l,a){Jn(l),i=a,r=!0}}stringify(t,n){this.freeze();const r=at(n),i=this.compiler||this.Compiler;return zt("stringify",i),tr(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Ot("use",this.frozen),t!=null)if(typeof t=="function")s(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")s(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[f,...c]=u;s(f,c)}else l(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function l(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=Ft(!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];o(c)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function s(u,f){let c=-1,p=-1;for(;++c<r.length;)if(r[c][0]===u){p=c;break}if(p===-1)r.push([u,...f]);else if(f.length>0){let[h,...g]=f;const k=r[p][1];Xt(k)&&Xt(h)&&(h=Ft(!0,k,h)),r[p]=[u,h,...g]}}}}const Yu=new pn().freeze();function Lt(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function zt(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Ot(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function tr(e){if(!Xt(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function nr(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function at(e){return Xu(e)?e:new Kr(e)}function Xu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Gu(e){return typeof e=="string"||Qu(e)}function Qu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ku="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",rr=[],ir={allowDangerousHtml:!0},Ju=/^(https?|ircs?|mailto|xmpp)$/i,Zu=[{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 es(e){const t=ts(e),n=ns(e);return rs(t.runSync(t.parse(n),n),e)}function ts(e){const t=e.rehypePlugins||rr,n=e.remarkPlugins||rr,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ir}:ir;return Yu().use(za).use(n).use(Fu,r).use(t)}function ns(e){const t=e.children||"",n=new Kr;return typeof t=="string"&&(n.value=t),n}function rs(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,s=t.urlTransform||is;for(const f of Zu)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Ku+f.id,void 0);return hn(e,u),gl(e,{Fragment:b.Fragment,components:i,ignoreInvalidStyle:!0,jsx:b.jsx,jsxs:b.jsxs,passKeys:!0,passNode:!0});function u(f,c,p){if(f.type==="raw"&&p&&typeof c=="number")return l?p.children.splice(c,1):p.children[c]={type:"text",value:f.value},c;if(f.type==="element"){let h;for(h in Et)if(Object.hasOwn(Et,h)&&Object.hasOwn(f.properties,h)){const g=f.properties[h],k=Et[h];(k===null||k.includes(f.tagName))&&(f.properties[h]=s(String(g||""),h,f))}}if(f.type==="element"){let h=n?!n.includes(f.tagName):o?o.includes(f.tagName):!1;if(!h&&r&&typeof c=="number"&&(h=!r(f,c,p)),h&&p&&typeof c=="number")return a&&f.children?p.children.splice(c,1,...f.children):p.children.splice(c,1),c}}}function is(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Ju.test(e.slice(0,t))?e:""}function lr(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function ls(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function os(e,t,n){const i=xt((n||{}).ignore||[]),o=as(t);let l=-1;for(;++l<o.length;)Qr(e,"text",a);function a(u,f){let c=-1,p;for(;++c<f.length;){const h=f[c],g=p?p.children:void 0;if(i(h,g?g.indexOf(h):void 0,p))return;p=h}if(p)return s(u,f)}function s(u,f){const c=f[f.length-1],p=o[l][0],h=o[l][1];let g=0;const C=c.children.indexOf(u);let y=!1,E=[];p.lastIndex=0;let T=p.exec(u.value);for(;T;){const j=T.index,z={index:T.index,input:T.input,stack:[...f,u]};let w=h(...T,z);if(typeof w=="string"&&(w=w.length>0?{type:"text",value:w}:void 0),w===!1?p.lastIndex=j+1:(g!==j&&E.push({type:"text",value:u.value.slice(g,j)}),Array.isArray(w)?E.push(...w):w&&E.push(w),g=j+T[0].length,y=!0),!p.global)break;T=p.exec(u.value)}return y?(g<u.value.length&&E.push({type:"text",value:u.value.slice(g)}),c.children.splice(C,1,...E)):E=[u],C+E.length}}function as(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([us(i[0]),ss(i[1])])}return t}function us(e){return typeof e=="string"?new RegExp(ls(e),"g"):e}function ss(e){return typeof e=="function"?e:function(){return e}}const Rt="phrasing",Nt=["autolink","link","image","label"];function cs(){return{transforms:[ys],enter:{literalAutolink:hs,literalAutolinkEmail:_t,literalAutolinkHttp:_t,literalAutolinkWww:_t},exit:{literalAutolink:gs,literalAutolinkEmail:ds,literalAutolinkHttp:ps,literalAutolinkWww:ms}}}function fs(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Rt,notInConstruct:Nt},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Rt,notInConstruct:Nt},{character:":",before:"[ps]",after:"\\/",inConstruct:Rt,notInConstruct:Nt}]}}function hs(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function _t(e){this.config.enter.autolinkProtocol.call(this,e)}function ps(e){this.config.exit.autolinkProtocol.call(this,e)}function ms(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function ds(e){this.config.exit.autolinkEmail.call(this,e)}function gs(e){this.exit(e)}function ys(e){os(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,xs],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),ks]],{ignore:["link","linkReference"]})}function xs(e,t,n,r,i){let o="";if(!Jr(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!bs(n)))return!1;const l=ws(n+r);if(!l[0])return!1;const a={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[a,{type:"text",value:l[1]}]:a}function ks(e,t,n,r){return!Jr(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function bs(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function ws(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=lr(e,"(");let o=lr(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function Jr(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||De(n)||dt(n))&&(!t||n!==47)}Zr.peek=Ds;function Ss(){this.buffer()}function Cs(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ts(){this.buffer()}function Es(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Is(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=me(this.sliceSerialize(e)).toLowerCase(),n.label=t}function vs(e){this.exit(e)}function As(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=me(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Fs(e){this.exit(e)}function Ds(){return"["}function Zr(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const l=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function Ps(){return{enter:{gfmFootnoteCallString:Ss,gfmFootnoteCall:Cs,gfmFootnoteDefinitionLabelString:Ts,gfmFootnoteDefinition:Es},exit:{gfmFootnoteCallString:Is,gfmFootnoteCall:vs,gfmFootnoteDefinitionLabelString:As,gfmFootnoteDefinition:Fs}}}function js(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Zr},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,l){const a=o.createTracker(l);let s=a.move("[^");const u=o.enter("footnoteDefinition"),f=o.enter("label");return s+=a.move(o.safe(o.associationId(r),{before:s,after:"]"})),f(),s+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),s+=a.move((t?`
|
|
15
|
+
`:" ")+o.indentLines(o.containerFlow(r,a.current()),t?ei:Ls))),u(),s}}function Ls(e,t,n){return t===0?e:ei(e,t,n)}function ei(e,t,n){return(n?"":" ")+e}const zs=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ti.peek=Ms;function Os(){return{canContainEols:["delete"],enter:{strikethrough:Ns},exit:{strikethrough:_s}}}function Rs(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:zs}],handlers:{delete:ti}}}function Ns(e){this.enter({type:"delete",children:[]},e)}function _s(e){this.exit(e)}function ti(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function Ms(){return"~"}function Bs(e){return e.length}function Us(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Bs,o=[],l=[],a=[],s=[];let u=0,f=-1;for(;++f<e.length;){const k=[],C=[];let y=-1;for(e[f].length>u&&(u=e[f].length);++y<e[f].length;){const E=qs(e[f][y]);if(n.alignDelimiters!==!1){const T=i(E);C[y]=T,(s[y]===void 0||T>s[y])&&(s[y]=T)}k.push(E)}l[f]=k,a[f]=C}let c=-1;if(typeof r=="object"&&"length"in r)for(;++c<u;)o[c]=or(r[c]);else{const k=or(r);for(;++c<u;)o[c]=k}c=-1;const p=[],h=[];for(;++c<u;){const k=o[c];let C="",y="";k===99?(C=":",y=":"):k===108?C=":":k===114&&(y=":");let E=n.alignDelimiters===!1?1:Math.max(1,s[c]-C.length-y.length);const T=C+"-".repeat(E)+y;n.alignDelimiters!==!1&&(E=C.length+E+y.length,E>s[c]&&(s[c]=E),h[c]=E),p[c]=T}l.splice(1,0,p),a.splice(1,0,h),f=-1;const g=[];for(;++f<l.length;){const k=l[f],C=a[f];c=-1;const y=[];for(;++c<u;){const E=k[c]||"";let T="",j="";if(n.alignDelimiters!==!1){const z=s[c]-(C[c]||0),w=o[c];w===114?T=" ".repeat(z):w===99?z%2?(T=" ".repeat(z/2+.5),j=" ".repeat(z/2-.5)):(T=" ".repeat(z/2),j=T):j=" ".repeat(z)}n.delimiterStart!==!1&&!c&&y.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&E==="")&&(n.delimiterStart!==!1||c)&&y.push(" "),n.alignDelimiters!==!1&&y.push(T),y.push(E),n.alignDelimiters!==!1&&y.push(j),n.padding!==!1&&y.push(" "),(n.delimiterEnd!==!1||c!==u-1)&&y.push("|")}g.push(n.delimiterEnd===!1?y.join("").replace(/ +$/,""):y.join(""))}return g.join(`
|
|
16
|
+
`)}function qs(e){return e==null?"":String(e)}function or(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function Hs(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),Vs);return i(),l}function Vs(e,t,n){return">"+(n?"":" ")+e}function $s(e,t){return ar(e,t.inConstruct,!0)&&!ar(e,t.notInConstruct,!1)}function ar(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function ur(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
|
|
17
|
+
`&&$s(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
|
|
18
|
+
`}function Ws(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+t.length,r=n.indexOf(t,i);return l}function Ys(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function Xs(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Gs(e,t,n,r){const i=Xs(n),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(Ys(e,n)){const c=n.enter("codeIndented"),p=n.indentLines(o,Qs);return c(),p}const a=n.createTracker(r),s=i.repeat(Math.max(Ws(o,i)+1,3)),u=n.enter("codeFenced");let f=a.move(s);if(e.lang){const c=n.enter(`codeFencedLang${l}`);f+=a.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...a.current()})),c()}if(e.lang&&e.meta){const c=n.enter(`codeFencedMeta${l}`);f+=a.move(" "),f+=a.move(n.safe(e.meta,{before:f,after:`
|
|
19
19
|
`,encode:["`"],...a.current()})),c()}return f+=a.move(`
|
|
20
20
|
`),o&&(f+=a.move(o+`
|
|
21
|
-
`)),f+=a.move(s),u(),f}function
|
|
22
|
-
`,...s.current()}))),a(),e.title&&(a=
|
|
21
|
+
`)),f+=a.move(s),u(),f}function Qs(e,t,n){return(n?"":" ")+e}function mn(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Ks(e,t,n,r){const i=mn(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let a=n.enter("label");const s=n.createTracker(r);let u=s.move("[");return u+=s.move(n.safe(n.associationId(e),{before:u,after:"]",...s.current()})),u+=s.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":`
|
|
22
|
+
`,...s.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),l(),u}function Js(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function Ze(e){return"&#x"+e.toString(16).toUpperCase()+";"}function pt(e,t,n){const r=_e(e),i=_e(t);return r===void 0?i===void 0?n==="_"?{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}}ni.peek=Zs;function ni(e,t,n,r){const i=Js(n),o=n.enter("emphasis"),l=n.createTracker(r),a=l.move(i);let s=l.move(n.containerPhrasing(e,{after:i,before:a,...l.current()}));const u=s.charCodeAt(0),f=pt(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=Ze(u)+s.slice(1));const c=s.charCodeAt(s.length-1),p=pt(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+Ze(c));const h=l.move(i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+s+h}function Zs(e,t,n){return n.options.emphasis||"*"}function ec(e,t){let n=!1;return hn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Wt}),!!((!e.depth||e.depth<3)&&ln(e)&&(t.options.setext||n))}function tc(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(ec(e,n)){const f=n.enter("headingSetext"),c=n.enter("phrasing"),p=n.containerPhrasing(e,{...o.current(),before:`
|
|
23
23
|
`,after:`
|
|
24
24
|
`});return c(),f(),p+`
|
|
25
25
|
`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
|
|
26
|
-
`))+1))}const l="#".repeat(i),a=
|
|
27
|
-
`,...o.current()});return/^[\t ]/.test(u)&&(u=Ze(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,
|
|
26
|
+
`))+1))}const l="#".repeat(i),a=n.enter("headingAtx"),s=n.enter("phrasing");o.move(l+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
|
|
27
|
+
`,...o.current()});return/^[\t ]/.test(u)&&(u=Ze(u.charCodeAt(0))+u.slice(1)),u=u?l+" "+u:l,n.options.closeAtx&&(u+=" "+l),s(),a(),u}ri.peek=nc;function ri(e){return e.value||""}function nc(){return"<"}ii.peek=rc;function ii(e,t,n,r){const i=mn(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let a=n.enter("label");const s=n.createTracker(r);let u=s.move("![");return u+=s.move(n.safe(e.alt,{before:u,after:"]",...s.current()})),u+=s.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(a=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),a(),e.title&&(a=n.enter(`title${o}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),a()),u+=s.move(")"),l(),u}function rc(){return"!"}li.peek=ic;function li(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const a=n.createTracker(r);let s=a.move("![");const u=n.safe(e.alt,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return l(),n.stack=f,o(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function ic(){return"!"}oi.peek=lc;function oi(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const l=n.unsafe[o],a=n.compilePattern(l);let s;if(l.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 lc(){return"`"}function ai(e,t){const n=ln(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}ui.peek=oc;function ui(e,t,n,r){const i=mn(n),o=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let a,s;if(ai(e,n)){const f=n.stack;n.stack=[],a=n.enter("autolink");let c=l.move("<");return c+=l.move(n.containerPhrasing(e,{before:c,after:">",...l.current()})),c+=l.move(">"),a(),n.stack=f,c}a=n.enter("link"),s=n.enter("label");let u=l.move("[");return u+=l.move(n.containerPhrasing(e,{before:u,after:"](",...l.current()})),u+=l.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(s=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),s(),e.title&&(s=n.enter(`title${o}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),s()),u+=l.move(")"),a(),u}function oc(e,t,n){return ai(e,n)?"<":"["}si.peek=ac;function si(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const a=n.createTracker(r);let s=a.move("[");const u=n.containerPhrasing(e,{before:s,after:"]",...a.current()});s+=a.move(u+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const c=n.safe(n.associationId(e),{before:s,after:"]",...a.current()});return l(),n.stack=f,o(),i==="full"||!u||u!==c?s+=a.move(c+"]"):i==="shortcut"?s=s.slice(0,-1):s+=a.move("]"),s}function ac(){return"["}function dn(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function uc(e){const t=dn(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function sc(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function ci(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function cc(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?sc(n):dn(n);const a=e.ordered?l==="."?")":".":uc(n);let s=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(s=!0),ci(n)===l&&f){let c=-1;for(;++c<e.children.length;){const p=e.children[c];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){s=!0;break}}}}s&&(l=a),n.bulletCurrent=l;const u=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,i(),u}function fc(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function hc(e,t,n,r){const i=fc(n);let o=n.bulletCurrent||dn(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const a=n.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);const s=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),f);return s(),u;function f(c,p,h){return p?(h?"":" ".repeat(l))+c:(h?o:o+" ".repeat(l-o.length))+c}}function pc(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l}const mc=xt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function dc(e,t,n,r){return(e.children.some(function(l){return mc(l)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function gc(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}fi.peek=yc;function fi(e,t,n,r){const i=gc(n),o=n.enter("strong"),l=n.createTracker(r),a=l.move(i+i);let s=l.move(n.containerPhrasing(e,{after:i,before:a,...l.current()}));const u=s.charCodeAt(0),f=pt(r.before.charCodeAt(r.before.length-1),u,i);f.inside&&(s=Ze(u)+s.slice(1));const c=s.charCodeAt(s.length-1),p=pt(r.after.charCodeAt(0),c,i);p.inside&&(s=s.slice(0,-1)+Ze(c));const h=l.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:p.outside,before:f.outside},a+s+h}function yc(e,t,n){return n.options.strong||"*"}function xc(e,t,n,r){return n.safe(e.value,r)}function kc(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function bc(e,t,n){const r=(ci(n)+(n.options.ruleSpaces?" ":"")).repeat(kc(n));return n.options.ruleSpaces?r.slice(0,-1):r}const hi={blockquote:Hs,break:ur,code:Gs,definition:Ks,emphasis:ni,hardBreak:ur,heading:tc,html:ri,image:ii,imageReference:li,inlineCode:oi,link:ui,linkReference:si,list:cc,listItem:hc,paragraph:pc,root:dc,strong:fi,text:xc,thematicBreak:bc};function wc(){return{enter:{table:Sc,tableData:sr,tableHeader:sr,tableRow:Tc},exit:{codeText:Ec,table:Cc,tableData:Mt,tableHeader:Mt,tableRow:Mt}}}function Sc(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Cc(e){this.exit(e),this.data.inTable=void 0}function Tc(e){this.enter({type:"tableRow",children:[]},e)}function Mt(e){this.exit(e)}function sr(e){this.enter({type:"tableCell",children:[]},e)}function Ec(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Ic));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Ic(e,t){return t==="|"?t:e}function vc(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
|
|
28
28
|
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:l,tableCell:s,tableRow:a}};function l(h,g,k,C){return u(f(h,k,C),h.align)}function a(h,g,k,C){const y=c(h,k,C),E=u([y]);return E.slice(0,E.indexOf(`
|
|
29
|
-
`))}function s(h,g,k,C){const y=k.enter("tableCell"),E=k.enter("phrasing"),T=k.containerPhrasing(h,{...C,before:o,after:o});return E(),y(),T}function u(h,g){return Bs(h,{align:g,alignDelimiters:r,padding:t,stringLength:i})}function f(h,g,k){const C=h.children;let y=-1;const E=[],T=g.enter("table");for(;++y<C.length;)E[y]=c(C[y],g,k);return T(),E}function c(h,g,k){const C=h.children;let y=-1;const E=[],T=g.enter("tableRow");for(;++y<C.length;)E[y]=s(C[y],h,g,k);return T(),E}function p(h,g,k){let C=hi.inlineCode(h,g,k);return k.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function vc(){return{exit:{taskListCheckValueChecked:cr,taskListCheckValueUnchecked:cr,paragraph:Fc}}}function Ac(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Dc}}}function cr(e){const n=this.stack[this.stack.length-2];n.type,n.checked=e.type==="taskListCheckValueChecked"}function Fc(e){const n=this.stack[this.stack.length-2];if(n&&n.type==="listItem"&&typeof n.checked=="boolean"){const t=this.stack[this.stack.length-1];t.type;const r=t.children[0];if(r&&r.type==="text"){const i=n.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===t&&(r.value=r.value.slice(1),r.value.length===0?t.children.shift():t.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,t.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Dc(e,n,t,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=t.createTracker(r);o&&a.move(l);let s=hi.listItem(e,n,t,{...r,...a.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+l}}function Pc(){return[ss(),Ds(),zs(),bc(),vc()]}function jc(e){return{extensions:[cs(),Ps(e),Os(),Ic(e),Ac()]}}const Lc={tokenize:Mc,partial:!0},pi={tokenize:Bc,partial:!0},mi={tokenize:Uc,partial:!0},di={tokenize:qc,partial:!0},zc={tokenize:Hc,partial:!0},gi={name:"wwwAutolink",tokenize:Nc,previous:xi},yi={name:"protocolAutolink",tokenize:_c,previous:ki},we={name:"emailAutolink",tokenize:Rc,previous:bi},ge={};function Oc(){return{text:ge}}let ve=48;for(;ve<123;)ge[ve]=we,ve++,ve===58?ve=65:ve===91&&(ve=97);ge[43]=we;ge[45]=we;ge[46]=we;ge[95]=we;ge[72]=[we,yi];ge[104]=[we,yi];ge[87]=[we,gi];ge[119]=[we,gi];function Rc(e,n,t){const r=this;let i,o;return l;function l(c){return!Qn(c)||!bi.call(r,r.previous)||dt(r.events)?t(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Qn(c)?(e.consume(c),a):c===64?(e.consume(c),s):t(c)}function s(c){return c===46?e.check(zc,f,u)(c):c===45||c===95||Z(c)?(o=!0,e.consume(c),s):f(c)}function u(c){return e.consume(c),i=!0,s}function f(c){return o&&i&&ne(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),n(c)):t(c)}}function Nc(e,n,t){const r=this;return i;function i(l){return l!==87&&l!==119||!xi.call(r,r.previous)||dt(r.events)?t(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Lc,e.attempt(pi,e.attempt(mi,o),t),t)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),n(l)}}function _c(e,n,t){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&ki.call(r,r.previous)&&!dt(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):t(c)}function a(c){if(ne(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),s}return t(c)}function s(c){return c===47?(e.consume(c),o?u:(o=!0,s)):t(c)}function u(c){return c===null||fn(c)||X(c)||De(c)||gn(c)?t(c):e.attempt(pi,e.attempt(mi,f),t)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),n(c)}}function Mc(e,n,t){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):t(l)}function o(l){return l===null?t(l):n(l)}}function Bc(e,n,t){let r,i,o;return l;function l(u){return u===46||u===95?e.check(di,s,a)(u):u===null||X(u)||De(u)||u!==45&&gn(u)?s(u):(o=!0,e.consume(u),l)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),l}function s(u){return i||r||!o?t(u):n(u)}}function Uc(e,n){let t=0,r=0;return i;function i(l){return l===40?(t++,e.consume(l),i):l===41&&r<t?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(di,n,o)(l):l===null||X(l)||De(l)?n(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function qc(e,n,t){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||X(a)||De(a)?n(a):t(a)}function i(a){return a===null||a===40||a===91||X(a)||De(a)?n(a):r(a)}function o(a){return ne(a)?l(a):t(a)}function l(a){return a===59?(e.consume(a),r):ne(a)?(e.consume(a),l):t(a)}}function Hc(e,n,t){return r;function r(o){return e.consume(o),i}function i(o){return Z(o)?t(o):n(o)}}function xi(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||X(e)}function ki(e){return!ne(e)}function bi(e){return!(e===47||Qn(e))}function Qn(e){return e===43||e===45||e===46||e===95||Z(e)}function dt(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 Vc={tokenize:Jc,partial:!0};function $c(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Gc,continuation:{tokenize:Qc},exit:Kc}},text:{91:{name:"gfmFootnoteCall",tokenize:Xc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Wc,resolveTo:Yc}}}}function Wc(e,n,t){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){l=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(!l||!l._balanced)return t(s);const u=me(r.sliceSerialize({start:l.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?t(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),n(s))}}function Yc(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[t+1],e[t+2],["enter",r,n],e[t+3],e[t+4],["enter",i,n],["exit",i,n],["enter",o,n],["enter",l,n],["exit",l,n],["exit",o,n],e[e.length-2],e[e.length-1],["exit",r,n]];return e.splice(t,e.length-t+1,...a),e}function Xc(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),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(o>999||c===93&&!l||c===null||c===91||X(c))return t(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(me(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(c)}return X(c)||(l=!0),o++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,u):u(c)}}function Gc(e,n,t){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return s;function s(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):t(g)}function f(g){if(l>999||g===93&&!a||g===null||g===91||X(g))return t(g);if(g===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return o=me(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return X(g)||(a=!0),l++,e.consume(g),g===92?c:f}function c(g){return g===91||g===92||g===93?(e.consume(g),l++,f):f(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(o)||i.push(o),H(e,h,"gfmFootnoteDefinitionWhitespace")):t(g)}function h(g){return n(g)}}function Qc(e,n,t){return e.check(nn,n,e.attempt(Vc,n,t))}function Kc(e){e.exit("gfmFootnoteDefinition")}function Jc(e,n,t){const r=this;return H(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?n(o):t(o)}}function Zc(e){let t=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return t==null&&(t=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let s=-1;for(;++s<l.length;)if(l[s][0]==="enter"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._close){let u=s;for(;u--;)if(l[u][0]==="exit"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._open&&l[s][1].end.offset-l[s][1].start.offset===l[u][1].end.offset-l[u][1].start.offset){l[s][1].type="strikethroughSequence",l[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[u][1].start),end:Object.assign({},l[s][1].end)},c={type:"strikethroughText",start:Object.assign({},l[u][1].end),end:Object.assign({},l[s][1].start)},p=[["enter",f,a],["enter",l[u][1],a],["exit",l[u][1],a],["enter",c,a]],h=a.parser.constructs.insideSpan.null;h&&ue(p,p.length,0,yn(h,l.slice(u+1,s),a)),ue(p,p.length,0,[["exit",c,a],["enter",l[s][1],a],["exit",l[s][1],a],["exit",f,a]]),ue(l,u-1,s-u+3,p),s=u+p.length-2;break}}for(s=-1;++s<l.length;)l[s][1].type==="strikethroughSequenceTemporary"&&(l[s][1].type="data");return l}function o(l,a,s){const u=this.previous,f=this.events;let c=0;return p;function p(g){return u===126&&f[f.length-1][1].type!=="characterEscape"?s(g):(l.enter("strikethroughSequenceTemporary"),h(g))}function h(g){const k=_e(u);if(g===126)return c>1?s(g):(l.consume(g),c++,h);if(c<2&&!t)return s(g);const C=l.exit("strikethroughSequenceTemporary"),y=_e(g);return C._open=!y||y===2&&!!k,C._close=!k||k===2&&!!y,a(g)}}}class ef{constructor(){this.map=[]}add(n,t,r){nf(this,n,t,r)}consume(n){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let t=this.map.length;const r=[];for(;t>0;)t-=1,r.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];r.push(n.slice()),n.length=0;let i=r.pop();for(;i;){for(const o of i)n.push(o);i=r.pop()}this.map.length=0}}function nf(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 tf(e,n){let t=!1;const r=[];for(;n<e.length;){const i=e[n];if(t){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[n+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[n-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(t=!0);n+=1}return r}function rf(){return{flow:{null:{name:"table",tokenize:lf,resolveAll:of}}}}function lf(e,n,t){const r=this;let i=0,o=0,l;return a;function a(x){let A=r.events.length-1;for(;A>-1;){const L=r.events[A][1].type;if(L==="lineEnding"||L==="linePrefix")A--;else break}const D=A>-1?r.events[A][1].type:null,V=D==="tableHead"||D==="tableRow"?w:s;return V===w&&r.parser.lazy[r.now().line]?t(x):V(x)}function s(x){return e.enter("tableHead"),e.enter("tableRow"),u(x)}function u(x){return x===124||(l=!0,o+=1),f(x)}function f(x){return x===null?t(x):P(x)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h):t(x):M(x)?H(e,f,"whitespace")(x):(o+=1,l&&(l=!1,i+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(x)))}function c(x){return x===null||x===124||X(x)?(e.exit("data"),f(x)):(e.consume(x),x===92?p:c)}function p(x){return x===92||x===124?(e.consume(x),c):c(x)}function h(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?t(x):(e.enter("tableDelimiterRow"),l=!1,M(x)?H(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):g(x))}function g(x){return x===45||x===58?C(x):x===124?(l=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),k):z(x)}function k(x){return M(x)?H(e,C,"whitespace")(x):C(x)}function C(x){return x===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),y):x===45?(o+=1,y(x)):x===null||P(x)?j(x):z(x)}function y(x){return x===45?(e.enter("tableDelimiterFiller"),E(x)):z(x)}function E(x){return x===45?(e.consume(x),E):x===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(x))}function T(x){return M(x)?H(e,j,"whitespace")(x):j(x)}function j(x){return x===124?g(x):x===null||P(x)?!l||i!==o?z(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(x)):z(x)}function z(x){return t(x)}function w(x){return e.enter("tableRow"),N(x)}function N(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),N):x===null||P(x)?(e.exit("tableRow"),n(x)):M(x)?H(e,N,"whitespace")(x):(e.enter("data"),U(x))}function U(x){return x===null||x===124||X(x)?(e.exit("data"),N(x)):(e.consume(x),x===92?q:U)}function q(x){return x===92||x===124?(e.consume(x),U):U(x)}}function of(e,n){let t=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,s=0,u,f,c;const p=new ef;for(;++t<e.length;){const h=e[t],g=h[1];h[0]==="enter"?g.type==="tableHead"?(a=!1,s!==0&&(fr(p,n,s,u,f),f=void 0,s=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(t,0,[["enter",u,n]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,t+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(t,0,[["enter",f,n]])),i=g.type==="tableDelimiterRow"?2:f?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=sn(p,n,o,i,void 0,c),o=[0,0,0,0]),l[2]=t)):g.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=sn(p,n,o,i,void 0,c)),o=l,l=[o[1],t,0,0])):g.type==="tableHead"?(a=!0,s=t):g.type==="tableRow"||g.type==="tableDelimiterRow"?(s=t,o[1]!==0?(l[0]=l[1],c=sn(p,n,o,i,t,c)):l[1]!==0&&(c=sn(p,n,l,i,t,c)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(l[3]=t)}for(s!==0&&fr(p,n,s,u,f),p.consume(n.events),t=-1;++t<n.events.length;){const h=n.events[t];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=tf(n.events,t))}return e}function sn(e,n,t,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";t[0]!==0&&(o.end=Object.assign({},Ne(n.events,t[0])),e.add(t[0],0,[["exit",o,n]]));const s=Ne(n.events,t[1]);if(o={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(t[1],0,[["enter",o,n]]),t[2]!==0){const u=Ne(n.events,t[2]),f=Ne(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 p=n.events[t[2]],h=n.events[t[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",t[3]>t[2]+1){const g=t[2]+1,k=t[3]-t[2]-1;e.add(g,k,[])}}e.add(t[3]+1,0,[["exit",c,n]])}return i!==void 0&&(o.end=Object.assign({},Ne(n.events,i)),e.add(i,0,[["exit",o,n]]),o=void 0),o}function fr(e,n,t,r,i){const o=[],l=Ne(n.events,t);i&&(i.end=Object.assign({},l),o.push(["exit",i,n])),r.end=Object.assign({},l),o.push(["exit",r,n]),e.add(t+1,0,o)}function Ne(e,n){const t=e[n],r=t[0]==="enter"?"start":"end";return t[1][r]}const af={name:"tasklistCheck",tokenize:sf};function uf(){return{text:{91:af}}}function sf(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"),o)}function o(s){return X(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),l):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),l):t(s)}function l(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):t(s)}function a(s){return P(s)?n(s):M(s)?e.check({tokenize:cf},n,t)(s):t(s)}}function cf(e,n,t){return H(e,r,"whitespace");function r(i){return i===null?t(i):n(i)}}function ff(e){return Pr([Oc(),$c(),Zc(e),rf(),uf()])}const hf={};function pf(e){const n=this,t=e||hf,r=n.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(ff(t)),o.push(Pc()),l.push(jc(t))}const wi=Zu,Si=e=>b.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function Me(e){const n=e.components||{};return n.a||(n.a=Si),b.jsx(wi,{...e,components:n,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}const mf=["a","p","em","strong","img","ul","ol","li","h1","h2","h3","h4","h5","h6","table","thead","tbody","tr","th","td","code","pre","blockquote","hr","del","br","input"];function hr(e){const n=e.components||{};return n.a||(n.a=Si),b.jsx(wi,{...e,remarkPlugins:[pf],components:n,allowedElements:mf})}const df={NOTE:{variant:"info",icon:ae.Info},TIP:{variant:"positive",icon:ae.Lightbulb},IMPORTANT:{variant:"info",icon:ae.AlertCircle},WARNING:{variant:"warning",icon:ae.Warning},CAUTION:{variant:"critical",icon:ae.AlertCircle}},Ci=/^\s*\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]\s*\n?/;function gf(e){const[n]=G.Children.toArray(e);return typeof n=="string"?n:""}function yf(e){const n=G.Children.toArray(e).filter(u=>!(typeof u=="string"&&u.trim()==="")),t=n.findIndex(u=>G.isValidElement(u));if(t===-1)return e;const r=n[t],i=G.Children.toArray(r.props.children),[o]=i;if(typeof o!="string")return e;const l=o.replace(Ci,""),a=i.slice(1);if(l===""&&a.length===0)return n.filter((u,f)=>f!==t);const s=G.cloneElement(r,{children:l===""?a:[l,...a]});return n.map((u,f)=>f===t?s:u)}function xf(e){const t=G.Children.toArray(e).find(o=>G.isValidElement(o));if(!G.isValidElement(t))return null;const r=t.props,i=Ci.exec(gf(r.children));return i===null?null:i[1]}function kf({children:e,fallback:n,node:t,...r}){const i=xf(e);if(i===null)return n?b.jsx(n,{...r,children:e}):b.jsx("blockquote",{...r,children:e});const{variant:o,icon:l}=df[i];return b.jsxs("div",{className:"rjsf-f0-callout","data-variant":o,children:[b.jsx(te.F0Icon,{icon:l,size:"sm"}),b.jsx("div",{className:"rjsf-f0-callout-body",children:yf(e)})]})}const wn={...te.markdownRenderers};delete wn["entity-ref"];const bf=wn.blockquote;wn.blockquote=e=>G.createElement(kf,{...e,fallback:bf});const Kn=wn;function wf(e){var z,w,N;const{id:n,children:t,displayLabel:r,rawErrors:i=[],errors:o,help:l,rawDescription:a,hidden:s,label:u,required:f,schema:c,uiSchema:p,registry:h,fieldPathId:g}=e,k=_.getUiOptions(p),C=_.getTemplate("WrapIfAdditionalTemplate",h,k);if(s)return b.jsx("div",{className:"rjsf-f0-hidden",children:t});const y=k.widget==="checkbox"||c.type==="boolean",T=typeof((z=g==null?void 0:g.path)==null?void 0:z[g.path.length-1])=="number"&&c.type!=="object"&&c.type!=="array",j=r&&!y&&!T&&!!u;return b.jsxs(b.Fragment,{children:[((w=c==null?void 0:c.markdown)==null?void 0:w.before)&&b.jsx("div",{className:"fcode-form-markdown",children:b.jsx(hr,{components:Kn,children:c.markdown.before})}),b.jsx(C,{...e,children:b.jsxs("div",{className:"rjsf-f0-field",children:[j&&b.jsxs("label",{className:"rjsf-f0-label",htmlFor:n,children:[b.jsx(Me,{components:{p:"span"},children:u}),f&&b.jsx("span",{"aria-hidden":"true",children:" *"})]}),t,r&&a&&b.jsx("div",{className:"rjsf-f0-help",children:b.jsx(Me,{children:a})}),i.length>0&&o,l]})}),((N=c==null?void 0:c.markdown)==null?void 0:N.after)&&b.jsx("div",{className:"fcode-form-markdown",children:b.jsx(hr,{components:Kn,children:c.markdown.after})})]})}function gt(e){return G.useCallback(n=>{n.preventDefault(),e==null||e(n)},[e])}function rn({icon:e,label:n,variant:t="outline",disabled:r,onClick:i,id:o,registry:l,uiSchema:a,iconType:s,...u}){const f=gt(i);return b.jsx(te.F0Button,{...u,"data-testid":o,label:n,hideLabel:!0,icon:e,size:"sm",variant:t,disabled:r,onClick:f})}function Sf(e){const{translateString:n}=e.registry;return b.jsx(rn,{...e,icon:ae.Files,label:n(_.TranslatableString.CopyButton)})}function Cf(e){const{translateString:n}=e.registry;return b.jsx(rn,{...e,icon:ae.ArrowUp,label:n(_.TranslatableString.MoveUpButton)})}function Tf(e){const{translateString:n}=e.registry;return b.jsx(rn,{...e,icon:ae.ArrowDown,label:n(_.TranslatableString.MoveDownButton)})}function Ef(e){const{translateString:n}=e.registry;return b.jsx(rn,{...e,icon:ae.Delete,variant:"critical",label:n(_.TranslatableString.RemoveButton)})}function If(e){const{translateString:n}=e.registry;return b.jsx(rn,{...e,icon:ae.Delete,variant:"ghost",label:n(_.TranslatableString.ClearButton)})}function vf(e){const{translateString:n}=e.registry,{disabled:t,onClick:r,id:i}=e,o=gt(r),l=n(_.TranslatableString.AddItemButton);return b.jsx(te.F0Button,{"data-testid":i,label:l,icon:ae.Add,size:"sm",variant:"outline",disabled:t,onClick:o})}function Af({uiSchema:e}){const{submitText:n,norender:t,props:r={}}=_.getSubmitButtonOptions(e);return t?null:b.jsx("div",{className:"rjsf-f0-submit",children:b.jsx(te.F0Button,{label:n,variant:"default",disabled:r.disabled})})}const Ff={SubmitButton:Af,AddButton:vf,CopyButton:Sf,MoveDownButton:Tf,MoveUpButton:Cf,RemoveButton:Ef,ClearButton:If};function Df({id:e,title:n,uiSchema:t,optionalDataControl:r}){const o=_.getUiOptions(t).title||n;return o?b.jsxs("div",{id:e,className:"rjsf-f0-title",children:[b.jsx(te.F0Heading,{as:"h5",variant:"heading",content:o}),r]}):null}function Pf({id:e,description:n}){return n?b.jsx("div",{id:e,className:"rjsf-f0-section-description",children:typeof n=="string"?b.jsx(Me,{children:n}):n}):null}function jf({errors:e=[],fieldPathId:n}){const t=e.filter(Boolean);return t.length<2?null:b.jsx("ul",{className:"rjsf-f0-errors",id:_.errorId(n),children:t.map((r,i)=>b.jsx("li",{children:typeof r=="string"?b.jsx(Me,{components:{p:"span"},children:r}):r},`${r}-${i}`))})}function Lf({fieldPathId:e,help:n}){return n?b.jsx("div",{className:"rjsf-f0-help",id:_.helpId(e),children:n}):null}function zf({errors:e,registry:n}){const{translateString:t}=n;return b.jsx("div",{className:"rjsf-f0-error-list",children:b.jsx(te.F0Alert,{variant:"critical",title:t(_.TranslatableString.ErrorsLabel),description:e.map(r=>r.stack).join(`
|
|
30
|
-
`)})})}function Of(e){const{id:n,classNames:t,style:r,disabled:i,label:o,onKeyRename:l,onRemoveProperty:a,readonly:s,required:u,schema:f,children:c,uiSchema:p,registry:h}=e,{templates:g,translateString:k}=h,{RemoveButton:C}=g.ButtonTemplates,[y,E]=G.useState(o);if(!(_.ADDITIONAL_PROPERTY_FLAG in f))return b.jsx("div",{className:t,style:r,children:c});const T=`${n}-key`;return b.jsx("div",{className:t,style:r,children:b.jsxs("div",{className:"rjsf-f0-additional-property",children:[b.jsx(te.F0TextInput,{id:T,name:T,label:k(_.TranslatableString.KeyLabel,[o]),value:y,required:u,disabled:i||s,onChange:E,onBlur:s?void 0:()=>{y!==o&&l(y)}}),c,b.jsx(C,{disabled:i||s,onClick:a,uiSchema:p,registry:h})]})})}function Rf(e){const{description:n,disabled:t,formData:r,fieldPathId:i,onAddProperty:o,optionalDataControl:l,properties:a,readonly:s,registry:u,required:f,schema:c,title:p,uiSchema:h}=e,g=_.getUiOptions(h),k=_.getTemplate("TitleFieldTemplate",u,g),C=_.getTemplate("DescriptionFieldTemplate",u,g),{AddButton:y}=u.templates.ButtonTemplates;if((c.oneOf||c.anyOf)&&!c.properties&&a.length===0)return null;const E=!s&&!t;return b.jsxs("div",{className:"rjsf-f0-object",children:[p&&b.jsx(k,{id:_.titleId(i),title:p,required:f,schema:c,uiSchema:h,registry:u,optionalDataControl:E?l:void 0}),n&&b.jsx(C,{id:_.descriptionId(i),description:n,schema:c,uiSchema:h,registry:u}),E?void 0:l,a.map(T=>b.jsx("div",{className:T.hidden?"rjsf-f0-hidden":"rjsf-f0-row",children:T.content},T.name)),_.canExpand(c,h,r)&&b.jsx("div",{className:"rjsf-f0-add",children:b.jsx(y,{id:_.buttonId(i,"add"),onClick:o,disabled:t||s,uiSchema:h,registry:u})})]})}function Nf(e){const{canAdd:n,disabled:t,fieldPathId:r,items:i,optionalDataControl:o,onAddClick:l,readonly:a,registry:s,required:u,schema:f,title:c,uiSchema:p}=e,h=_.getUiOptions(p),g=_.getTemplate("ArrayFieldTitleTemplate",s,h),k=_.getTemplate("ArrayFieldDescriptionTemplate",s,h),{AddButton:C}=s.templates.ButtonTemplates,y=!a&&!t;return b.jsxs("div",{className:"rjsf-f0-array",children:[b.jsx(g,{fieldPathId:r,title:h.title||c,required:u,schema:f,uiSchema:p,registry:s,optionalDataControl:y?o:void 0}),b.jsx(k,{fieldPathId:r,description:h.description||f.description,schema:f,uiSchema:p,registry:s}),y?void 0:o,b.jsx("div",{className:"rjsf-f0-array-items",children:i}),n&&b.jsx("div",{className:"rjsf-f0-add",children:b.jsx(C,{id:_.buttonId(r,"add"),onClick:l,disabled:t||a,uiSchema:p,registry:s})})]})}function _f(e){const{children:n,buttonsProps:t,hasToolbar:r,registry:i,schema:o,uiSchema:l}=e,a=_.getUiOptions(l),s=_.getTemplate("ArrayFieldItemButtonsTemplate",i,a),u=o.type==="object"||o.type==="array";return b.jsxs("div",{className:u?"rjsf-f0-array-item rjsf-f0-array-item-composite":"rjsf-f0-array-item",children:[b.jsx("div",{className:"rjsf-f0-array-item-content",children:n}),r&&b.jsx("div",{className:"rjsf-f0-array-item-toolbar",children:b.jsx(s,{...t})})]})}function Mf(e){const{disabled:n,hasCopy:t,hasMoveDown:r,hasMoveUp:i,hasRemove:o,fieldPathId:l,onCopyItem:a,onRemoveItem:s,onMoveDownItem:u,onMoveUpItem:f,readonly:c,registry:p,uiSchema:h}=e,{CopyButton:g,MoveDownButton:k,MoveUpButton:C,RemoveButton:y}=p.templates.ButtonTemplates,E={uiSchema:h,registry:p};return b.jsxs(b.Fragment,{children:[(i||r)&&b.jsx(C,{id:_.buttonId(l,"moveUp"),disabled:n||c||!i,onClick:f,...E}),(i||r)&&b.jsx(k,{id:_.buttonId(l,"moveDown"),disabled:n||c||!r,onClick:u,...E}),t&&b.jsx(g,{id:_.buttonId(l,"copy"),disabled:n||c,onClick:a,...E}),o&&b.jsx(y,{id:_.buttonId(l,"remove"),disabled:n||c,onClick:s,...E})]})}function Bf({children:e,className:n,column:t,...r}){return b.jsx("div",{className:n??(t?void 0:"rjsf-f0-grid"),...r,children:e})}function Uf({selector:e,optionSchemaField:n}){return b.jsxs("div",{className:"rjsf-f0-multischema",children:[b.jsx("div",{className:"rjsf-f0-row",children:e}),n]})}function Sn(e){return e?e.replace(/!?\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/[*_~`]/g,"").replace(/\s+/g," ").trim():""}function Ti(e){return!!e&&Sn(e)!==e.trim()}function Ae({field:e,toFieldValue:n,fromFieldValue:t,id:r,label:i,value:o,required:l,disabled:a,readonly:s,placeholder:u,rawErrors:f,onChange:c,onBlur:p}){const h=G.useCallback(y=>c(t?t(y):y),[c,t]),g=G.useCallback(()=>p(r,o),[p,r,o]),k=G.useMemo(()=>({id:r,label:Sn(i)||r,placeholder:u,helpText:void 0,...e}),[r,i,u,e]),[C]=f??[];return b.jsx(te.F0FormField,{field:k,value:n?n(o):o,onChange:h,onBlur:g,error:!!C,errorMessage:C,required:l,disabled:a||s,hideLabel:!0})}const pr=e=>{if(!e||typeof e!="string")return;const n=new Date(e);return Number.isNaN(n.getTime())?void 0:n},dn=e=>String(e).padStart(2,"0"),Ei=e=>{if(!(!(e instanceof Date)||Number.isNaN(e.getTime())))return`${e.getFullYear()}-${dn(e.getMonth()+1)}-${dn(e.getDate())}`},qf=e=>{const n=Ei(e);if(!(!n||!(e instanceof Date)))return`${n}T${dn(e.getHours())}:${dn(e.getMinutes())}`},Hf={number:"number",integer:"number",range:"number",date:"date","datetime-local":"datetime",time:"time"},Vf=new Set(["password","email","tel","url"]);function $f(e){const{id:n,htmlName:t,autofocus:r,disabled:i,readonly:o,required:l,multiple:a,accept:s,onChangeOverride:u,onBlur:f,onFocus:c}=e;return b.jsx("input",{id:n,name:t||n,className:"rjsf-f0-native-file",type:"file",autoFocus:r,disabled:i||o,required:l,multiple:a,accept:s,onChange:u,onBlur:p=>f(n,p.target.value),onFocus:p=>c(n,p.target.value)})}function Wf(e){const{type:n,schema:t,options:r}=e,i=n||(t.type==="number"||t.type==="integer"?"number":"text");if(i==="file")return b.jsx($f,{...e});const o=Hf[i]??"text";return o==="date"?b.jsx(Ae,{...e,field:{type:"date"},toFieldValue:pr,fromFieldValue:Ei}):o==="datetime"?b.jsx(Ae,{...e,field:{type:"datetime"},toFieldValue:pr,fromFieldValue:qf}):o==="number"?b.jsx(Ae,{...e,field:{type:"number",...t.minimum!==void 0&&{min:t.minimum},...t.maximum!==void 0&&{max:t.maximum},...t.type==="integer"&&{maxDecimals:0}},fromFieldValue:l=>l===""||l===null?void 0:l}):b.jsx(Ae,{...e,field:{type:o,...Vf.has(i)&&{inputType:i}},fromFieldValue:l=>l===""?r.emptyValue:l})}const Yf=5;function Xf(e){const{options:n}=e;return b.jsx(Ae,{...e,field:{type:"textarea",rows:n.rows||Yf},fromFieldValue:t=>t===""?n.emptyValue:t})}const Gf="Drag a file here, or click to choose one",Qf="Drag files here, or click to choose them",mr=["B","KB","MB","GB"];function Kf(e){if(!Number.isFinite(e)||e<0)return"";let n=e,t=0;for(;n>=1024&&t<mr.length-1;)n/=1024,t+=1;return`${t===0?n:Math.round(n*10)/10} ${mr[t]}`}function Jf(e){const{id:n,options:t,registry:r,uiSchema:i,required:o,disabled:l,readonly:a,autofocus:s,multiple:u,value:f,onChange:c,onBlur:p,onFocus:h}=e,{filesInfo:g,handleChange:k,handleRemove:C}=_.useFileWidgetProps(f,c,u),[y,E]=G.useState(!1),{RemoveButton:T}=_.getTemplate("ButtonTemplates",r,t),j=l||a,z=t.accept?String(t.accept):void 0,w=t.dropzoneText??r.translateString(u?Qf:Gf),N=G.useCallback(A=>{var D;E(!1),(D=A.target.files)!=null&&D.length&&k(A.target.files),A.target.value=""},[k]),U=G.useCallback(A=>{j||(A.preventDefault(),E(!0))},[j]),q=G.useCallback(A=>{A.currentTarget.contains(A.relatedTarget)||E(!1)},[]),x=G.useCallback(A=>{var V;if(E(!1),j)return;A.preventDefault();const D=(V=A.dataTransfer)==null?void 0:V.files;D!=null&&D.length&&k(D)},[k,j]);return b.jsxs("div",{className:"rjsf-f0-file",children:[b.jsxs("div",{className:"rjsf-f0-dropzone","data-dragging":y?"true":void 0,"data-disabled":j?"true":void 0,onDragOver:U,onDragEnter:U,onDragLeave:q,onDrop:x,children:[b.jsx("input",{id:n,name:n,className:"rjsf-f0-dropzone-input",type:"file",accept:z,multiple:u,autoFocus:s,disabled:j,required:f?!1:o,onChange:N,onBlur:A=>p(n,A.target.value),onFocus:A=>h(n,A.target.value)}),b.jsxs("div",{className:"rjsf-f0-dropzone-body","aria-hidden":"true",children:[b.jsx(te.F0Icon,{icon:ae.Upload,size:"md"}),b.jsx("span",{className:"rjsf-f0-dropzone-text",children:w}),z&&b.jsx("span",{className:"rjsf-f0-dropzone-hint",children:z})]})]}),g.length>0&&b.jsx("ul",{className:"rjsf-f0-files",children:g.map((A,D)=>b.jsxs("li",{className:"rjsf-f0-file-chip",children:[b.jsx(te.F0Icon,{icon:ae.File,size:"sm"}),b.jsx("span",{className:"rjsf-f0-file-name",children:A.name}),b.jsx("span",{className:"rjsf-f0-file-size",children:Kf(A.size)}),b.jsx(T,{id:`${n}-remove-${D}`,disabled:j,onClick:()=>C(D),registry:r,uiSchema:i})]},`${A.name}-${D}`))})]})}const Zf=e=>(Array.isArray(e)?e:[]).map((n,t)=>({value:String(t),label:String(n.label)}));function eh(e){const{options:n,multiple:t,value:r,schema:i}=e,{enumOptions:o,enumDisabled:l}=n,a=Array.isArray(o)?o:[],s=c=>a.findIndex(p=>_.enumOptionsIsSelected(p.value,c)),u=G.useCallback(c=>{if(t)return(Array.isArray(c)?c:[]).map(g=>s(g)).filter(g=>g>=0).map(String);const p=s(c);return p>=0?String(p):void 0},[t,a]),f=G.useCallback(c=>{var p;return t?(Array.isArray(c)?c:[]).map(g=>{var k;return(k=a[Number(g)])==null?void 0:k.value}):c==null||c===""?n.emptyValue:(p=a[Number(c)])==null?void 0:p.value},[t,a,n.emptyValue]);return b.jsx(Ae,{...e,field:{type:"select",options:Zf(o).filter((c,p)=>{var h;return!(Array.isArray(l)&&l.includes((h=a[p])==null?void 0:h.value))}),multiple:t,clearable:!i.default&&!e.required,showSearchBox:a.length>8},value:r,toFieldValue:u,fromFieldValue:f})}function nh({id:e,value:n,label:t,hideLabel:r,disabled:i,readonly:o,onChange:l}){const a=!r&&Ti(t);return b.jsxs("div",{className:"rjsf-f0-checkbox",children:[b.jsx(te.F0Checkbox,{id:e,title:Sn(t),checked:n===!0,hideLabel:r||a,disabled:i||o,onCheckedChange:s=>l(s===!0)}),a&&b.jsx("label",{className:"rjsf-f0-checkbox-label",htmlFor:e,children:b.jsx(Me,{components:{p:"span"},children:t})})]})}function th({id:e,disabled:n,readonly:t,options:r,value:i,onChange:o}){const{enumOptions:l,enumDisabled:a}=r,s=Array.isArray(i)?i:[];return b.jsx("div",{className:"rjsf-f0-checkboxes",children:(Array.isArray(l)?l:[]).map((u,f)=>{const c=_.enumOptionsIsSelected(u.value,s),p=Array.isArray(a)&&a.includes(u.value),h=_.optionId(e,f),g=String(u.label),k=Ti(g);return b.jsxs("div",{className:"rjsf-f0-checkbox",children:[b.jsx(te.F0Checkbox,{id:h,title:Sn(g),checked:c,hideLabel:k,disabled:n||t||p,onCheckedChange:C=>o(C===!0?_.enumOptionsSelectValue(f,s,l):_.enumOptionsDeselectValue(f,s,l))}),k&&b.jsx("label",{className:"rjsf-f0-checkbox-label",htmlFor:h,children:b.jsx(Me,{components:{p:"span"},children:g})})]},String(u.value))})})}function rh(e){const{options:n,required:t}=e,r=Array.isArray(n.enumOptions)?n.enumOptions:[];return b.jsx(Ae,{...e,field:{type:"cardSelect",grouped:!0,options:r.map((i,o)=>{var l;return{value:String(o),label:String(i.label),...(l=i.schema)!=null&&l.description?{description:String(i.schema.description)}:{}}})},toFieldValue:i=>{const o=r.findIndex(l=>_.enumOptionsIsSelected(l.value,i));return o>=0?String(o):void 0},fromFieldValue:i=>{var o;return i===void 0||i===""?n.emptyValue:(o=r[Number(i)])==null?void 0:o.value},required:t})}const Ii=e=>!e.clickable&&e.status!=="current",ih=({items:e,onNavigate:n})=>b.jsx("nav",{className:"rjsf-f0-steps-tabs","aria-label":"Form steps",children:e.map(t=>b.jsx("div",{className:`rjsf-f0-steps-tab rjsf-f0-steps-tab-${t.status}`,...t.status==="current"&&{"aria-current":"step"},children:b.jsx(te.F0Button,{label:`${t.index+1}. ${t.title}`,size:"sm",variant:t.status==="current"?"neutral":"ghost",disabled:Ii(t),onClick:r=>{r.preventDefault(),n(t.index)}})},t.index))}),lh=({items:e,currentIndex:n,onNavigate:t})=>b.jsx("nav",{className:"rjsf-f0-steps-nav","aria-label":"Form steps",children:b.jsx(Bi.F0TableOfContent,{items:e.map(r=>({id:String(r.index),label:r.title,disabled:Ii(r),onClick:i=>t(Number(i))})),activeItem:String(n),scrollable:!1})}),oh=({layout:e,items:n,currentIndex:t,onNavigate:r,children:i})=>{const o=n[t];return b.jsxs("div",{className:`rjsf-f0-steps rjsf-f0-steps-layout-${e}`,children:[e==="sidebar"?b.jsx(lh,{items:n,currentIndex:t,onNavigate:r}):b.jsx(ih,{items:n,onNavigate:r}),b.jsxs("div",{className:"rjsf-f0-steps-main",children:[o&&b.jsxs("div",{className:"rjsf-f0-steps-header",children:[b.jsx("h3",{className:"rjsf-f0-steps-title",children:o.title}),o.description&&b.jsx("p",{className:"rjsf-f0-steps-description",children:o.description})]}),b.jsx("div",{className:"rjsf-f0-steps-panel",children:i})]})]})},ah=({label:e,onClick:n,disabled:t})=>{const r=gt(n);return b.jsx("div",{className:"rjsf-f0-steps-back",children:b.jsx(te.F0Button,{label:e,variant:"outline",disabled:t,onClick:r})})},vi={StepsNavigation:oh,BackButton:ah},Ai={ArrayFieldItemButtonsTemplate:Mf,ArrayFieldItemTemplate:_f,ArrayFieldTemplate:Nf,BaseInputTemplate:Wf,ButtonTemplates:Ff,DescriptionFieldTemplate:Pf,ErrorListTemplate:zf,FieldErrorTemplate:jf,FieldHelpTemplate:Lf,FieldTemplate:wf,GridTemplate:Bf,MultiSchemaFieldTemplate:Uf,ObjectFieldTemplate:Rf,TitleFieldTemplate:Df,WrapIfAdditionalTemplate:Of},Fi={CheckboxWidget:nh,CheckboxesWidget:th,FileWidget:Jf,RadioWidget:rh,SelectWidget:eh,TextareaWidget:Xf};function yt(){return{templates:Ai,widgets:Fi,multistep:vi}}const Di=yt();function uh(){return dr.withTheme(yt())}const sh=dr.withTheme(Di);exports.Form=sh;exports.Multistep=vi;exports.Templates=Ai;exports.Theme=Di;exports.Widgets=Fi;exports.generateForm=uh;exports.generateTheme=yt;exports.markdownComponents=Kn;
|
|
29
|
+
`))}function s(h,g,k,C){const y=k.enter("tableCell"),E=k.enter("phrasing"),T=k.containerPhrasing(h,{...C,before:o,after:o});return E(),y(),T}function u(h,g){return Us(h,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function f(h,g,k){const C=h.children;let y=-1;const E=[],T=g.enter("table");for(;++y<C.length;)E[y]=c(C[y],g,k);return T(),E}function c(h,g,k){const C=h.children;let y=-1;const E=[],T=g.enter("tableRow");for(;++y<C.length;)E[y]=s(C[y],h,g,k);return T(),E}function p(h,g,k){let C=hi.inlineCode(h,g,k);return k.stack.includes("tableCell")&&(C=C.replace(/\|/g,"\\$&")),C}}function Ac(){return{exit:{taskListCheckValueChecked:cr,taskListCheckValueUnchecked:cr,paragraph:Dc}}}function Fc(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Pc}}}function cr(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Dc(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function Pc(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);o&&a.move(l);let s=hi.listItem(e,t,n,{...r,...a.current()});return o&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),s;function u(f){return f+l}}function jc(){return[cs(),Ps(),Os(),wc(),Ac()]}function Lc(e){return{extensions:[fs(),js(e),Rs(),vc(e),Fc()]}}const zc={tokenize:Bc,partial:!0},pi={tokenize:Uc,partial:!0},mi={tokenize:qc,partial:!0},di={tokenize:Hc,partial:!0},Oc={tokenize:Vc,partial:!0},gi={name:"wwwAutolink",tokenize:_c,previous:xi},yi={name:"protocolAutolink",tokenize:Mc,previous:ki},we={name:"emailAutolink",tokenize:Nc,previous:bi},ge={};function Rc(){return{text:ge}}let ve=48;for(;ve<123;)ge[ve]=we,ve++,ve===58?ve=65:ve===91&&(ve=97);ge[43]=we;ge[45]=we;ge[46]=we;ge[95]=we;ge[72]=[we,yi];ge[104]=[we,yi];ge[87]=[we,gi];ge[119]=[we,gi];function Nc(e,t,n){const r=this;let i,o;return l;function l(c){return!Qt(c)||!bi.call(r,r.previous)||gn(r.events)?n(c):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(c))}function a(c){return Qt(c)?(e.consume(c),a):c===64?(e.consume(c),s):n(c)}function s(c){return c===46?e.check(Oc,f,u)(c):c===45||c===95||Z(c)?(o=!0,e.consume(c),s):f(c)}function u(c){return e.consume(c),i=!0,s}function f(c){return o&&i&&ne(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(c)):n(c)}}function _c(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!xi.call(r,r.previous)||gn(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(zc,e.attempt(pi,e.attempt(mi,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function Mc(e,t,n){const r=this;let i="",o=!1;return l;function l(c){return(c===72||c===104)&&ki.call(r,r.previous)&&!gn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(c),e.consume(c),a):n(c)}function a(c){if(ne(c)&&i.length<5)return i+=String.fromCodePoint(c),e.consume(c),a;if(c===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(c),s}return n(c)}function s(c){return c===47?(e.consume(c),o?u:(o=!0,s)):n(c)}function u(c){return c===null||ct(c)||X(c)||De(c)||dt(c)?n(c):e.attempt(pi,e.attempt(mi,f),n)(c)}function f(c){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(c)}}function Bc(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function Uc(e,t,n){let r,i,o;return l;function l(u){return u===46||u===95?e.check(di,s,a)(u):u===null||X(u)||De(u)||u!==45&&dt(u)?s(u):(o=!0,e.consume(u),l)}function a(u){return u===95?r=!0:(i=r,r=void 0),e.consume(u),l}function s(u){return i||r||!o?n(u):t(u)}}function qc(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(di,t,o)(l):l===null||X(l)||De(l)?t(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function Hc(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||X(a)||De(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||X(a)||De(a)?t(a):r(a)}function o(a){return ne(a)?l(a):n(a)}function l(a){return a===59?(e.consume(a),r):ne(a)?(e.consume(a),l):n(a)}}function Vc(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Z(o)?n(o):t(o)}}function xi(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||X(e)}function ki(e){return!ne(e)}function bi(e){return!(e===47||Qt(e))}function Qt(e){return e===43||e===45||e===46||e===95||Z(e)}function gn(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const $c={tokenize:Zc,partial:!0};function Wc(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Qc,continuation:{tokenize:Kc},exit:Jc}},text:{91:{name:"gfmFootnoteCall",tokenize:Gc},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:Yc,resolveTo:Xc}}}}function Yc(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const s=r.events[i][1];if(s.type==="labelImage"){l=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(!l||!l._balanced)return n(s);const u=me(r.sliceSerialize({start:l.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(s):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),t(s))}}function Xc(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function Gc(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(c){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),s}function s(c){return c!==94?n(c):(e.enter("gfmFootnoteCallMarker"),e.consume(c),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(c){if(o>999||c===93&&!l||c===null||c===91||X(c))return n(c);if(c===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(me(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(c),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(c)}return X(c)||(l=!0),o++,e.consume(c),c===92?f:u}function f(c){return c===91||c===92||c===93?(e.consume(c),o++,u):u(c)}}function Qc(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return s;function s(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(g)}function f(g){if(l>999||g===93&&!a||g===null||g===91||X(g))return n(g);if(g===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return o=me(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return X(g)||(a=!0),l++,e.consume(g),g===92?c:f}function c(g){return g===91||g===92||g===93?(e.consume(g),l++,f):f(g)}function p(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(o)||i.push(o),H(e,h,"gfmFootnoteDefinitionWhitespace")):n(g)}function h(g){return t(g)}}function Kc(e,t,n){return e.check(tt,t,e.attempt($c,t,n))}function Jc(e){e.exit("gfmFootnoteDefinition")}function Zc(e,t,n){const r=this;return H(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function ef(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let s=-1;for(;++s<l.length;)if(l[s][0]==="enter"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._close){let u=s;for(;u--;)if(l[u][0]==="exit"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._open&&l[s][1].end.offset-l[s][1].start.offset===l[u][1].end.offset-l[u][1].start.offset){l[s][1].type="strikethroughSequence",l[u][1].type="strikethroughSequence";const f={type:"strikethrough",start:Object.assign({},l[u][1].start),end:Object.assign({},l[s][1].end)},c={type:"strikethroughText",start:Object.assign({},l[u][1].end),end:Object.assign({},l[s][1].start)},p=[["enter",f,a],["enter",l[u][1],a],["exit",l[u][1],a],["enter",c,a]],h=a.parser.constructs.insideSpan.null;h&&ue(p,p.length,0,gt(h,l.slice(u+1,s),a)),ue(p,p.length,0,[["exit",c,a],["enter",l[s][1],a],["exit",l[s][1],a],["exit",f,a]]),ue(l,u-1,s-u+3,p),s=u+p.length-2;break}}for(s=-1;++s<l.length;)l[s][1].type==="strikethroughSequenceTemporary"&&(l[s][1].type="data");return l}function o(l,a,s){const u=this.previous,f=this.events;let c=0;return p;function p(g){return u===126&&f[f.length-1][1].type!=="characterEscape"?s(g):(l.enter("strikethroughSequenceTemporary"),h(g))}function h(g){const k=_e(u);if(g===126)return c>1?s(g):(l.consume(g),c++,h);if(c<2&&!n)return s(g);const C=l.exit("strikethroughSequenceTemporary"),y=_e(g);return C._open=!y||y===2&&!!k,C._close=!k||k===2&&!!y,a(g)}}}class tf{constructor(){this.map=[]}add(t,n,r){nf(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function nf(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function rf(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function lf(){return{flow:{null:{name:"table",tokenize:of,resolveAll:af}}}}function of(e,t,n){const r=this;let i=0,o=0,l;return a;function a(x){let A=r.events.length-1;for(;A>-1;){const L=r.events[A][1].type;if(L==="lineEnding"||L==="linePrefix")A--;else break}const D=A>-1?r.events[A][1].type:null,V=D==="tableHead"||D==="tableRow"?w:s;return V===w&&r.parser.lazy[r.now().line]?n(x):V(x)}function s(x){return e.enter("tableHead"),e.enter("tableRow"),u(x)}function u(x){return x===124||(l=!0,o+=1),f(x)}function f(x){return x===null?n(x):P(x)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h):n(x):M(x)?H(e,f,"whitespace")(x):(o+=1,l&&(l=!1,i+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),c(x)))}function c(x){return x===null||x===124||X(x)?(e.exit("data"),f(x)):(e.consume(x),x===92?p:c)}function p(x){return x===92||x===124?(e.consume(x),c):c(x)}function h(x){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(x):(e.enter("tableDelimiterRow"),l=!1,M(x)?H(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):g(x))}function g(x){return x===45||x===58?C(x):x===124?(l=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),k):z(x)}function k(x){return M(x)?H(e,C,"whitespace")(x):C(x)}function C(x){return x===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),y):x===45?(o+=1,y(x)):x===null||P(x)?j(x):z(x)}function y(x){return x===45?(e.enter("tableDelimiterFiller"),E(x)):z(x)}function E(x){return x===45?(e.consume(x),E):x===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),T):(e.exit("tableDelimiterFiller"),T(x))}function T(x){return M(x)?H(e,j,"whitespace")(x):j(x)}function j(x){return x===124?g(x):x===null||P(x)?!l||i!==o?z(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(x)):z(x)}function z(x){return n(x)}function w(x){return e.enter("tableRow"),N(x)}function N(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),N):x===null||P(x)?(e.exit("tableRow"),t(x)):M(x)?H(e,N,"whitespace")(x):(e.enter("data"),U(x))}function U(x){return x===null||x===124||X(x)?(e.exit("data"),N(x)):(e.consume(x),x===92?q:U)}function q(x){return x===92||x===124?(e.consume(x),U):U(x)}}function af(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,s=0,u,f,c;const p=new tf;for(;++n<e.length;){const h=e[n],g=h[1];h[0]==="enter"?g.type==="tableHead"?(a=!1,s!==0&&(fr(p,t,s,u,f),f=void 0,s=0),u={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",u,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,c=void 0,o=[0,0,0,0],l=[0,n+1,0,0],a&&(a=!1,f={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},p.add(n,0,[["enter",f,t]])),i=g.type==="tableDelimiterRow"?2:f?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],c=ut(p,t,o,i,void 0,c),o=[0,0,0,0]),l[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],c=ut(p,t,o,i,void 0,c)),o=l,l=[o[1],n,0,0])):g.type==="tableHead"?(a=!0,s=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(s=n,o[1]!==0?(l[0]=l[1],c=ut(p,t,o,i,n,c)):l[1]!==0&&(c=ut(p,t,l,i,n,c)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(l[3]=n)}for(s!==0&&fr(p,t,s,u,f),p.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=rf(t.events,n))}return e}function ut(e,t,n,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(o.end=Object.assign({},Ne(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const s=Ne(t.events,n[1]);if(o={type:l,start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=Ne(t.events,n[2]),f=Ne(t.events,n[3]),c={type:a,start:Object.assign({},u),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",c,t]]),r!==2){const p=t.events[n[2]],h=t.events[n[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,k=n[3]-n[2]-1;e.add(g,k,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return i!==void 0&&(o.end=Object.assign({},Ne(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function fr(e,t,n,r,i){const o=[],l=Ne(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function Ne(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const uf={name:"tasklistCheck",tokenize:cf};function sf(){return{text:{91:uf}}}function cf(e,t,n){const r=this;return i;function i(s){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(s):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),o)}function o(s){return X(s)?(e.enter("taskListCheckValueUnchecked"),e.consume(s),e.exit("taskListCheckValueUnchecked"),l):s===88||s===120?(e.enter("taskListCheckValueChecked"),e.consume(s),e.exit("taskListCheckValueChecked"),l):n(s)}function l(s){return s===93?(e.enter("taskListCheckMarker"),e.consume(s),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(s)}function a(s){return P(s)?t(s):M(s)?e.check({tokenize:ff},t,n)(s):n(s)}}function ff(e,t,n){return H(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function hf(e){return Pr([Rc(),Wc(),ef(e),lf(),sf()])}const pf={};function mf(e){const t=this,n=e||pf,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(hf(n)),o.push(jc()),l.push(Lc(n))}const wi=es,Si=e=>b.jsx("a",{href:e.href,target:"_blank",rel:"noreferrer",children:e.children});function Me(e){const t=e.components||{};return t.a||(t.a=Si),b.jsx(wi,{...e,components:t,allowedElements:["a","p","em","img","strong","ul","ol","li"]})}const df=["a","p","em","strong","img","ul","ol","li","h1","h2","h3","h4","h5","h6","table","thead","tbody","tr","th","td","code","pre","blockquote","hr","del","br","input"];function hr(e){const t=e.components||{};return t.a||(t.a=Si),b.jsx(wi,{...e,remarkPlugins:[mf],components:t,allowedElements:df})}const gf={NOTE:{variant:"info",icon:ie.Info},TIP:{variant:"positive",icon:ie.Lightbulb},IMPORTANT:{variant:"info",icon:ie.AlertCircle},WARNING:{variant:"warning",icon:ie.Warning},CAUTION:{variant:"critical",icon:ie.AlertCircle}},Ci=/^\s*\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]\s*\n?/;function yf(e){const[t]=G.Children.toArray(e);return typeof t=="string"?t:""}function xf(e){const t=G.Children.toArray(e).filter(u=>!(typeof u=="string"&&u.trim()==="")),n=t.findIndex(u=>G.isValidElement(u));if(n===-1)return e;const r=t[n],i=G.Children.toArray(r.props.children),[o]=i;if(typeof o!="string")return e;const l=o.replace(Ci,""),a=i.slice(1);if(l===""&&a.length===0)return t.filter((u,f)=>f!==n);const s=G.cloneElement(r,{children:l===""?a:[l,...a]});return t.map((u,f)=>f===n?s:u)}function kf(e){const n=G.Children.toArray(e).find(o=>G.isValidElement(o));if(!G.isValidElement(n))return null;const r=n.props,i=Ci.exec(yf(r.children));return i===null?null:i[1]}function bf({children:e,fallback:t,node:n,...r}){const i=kf(e);if(i===null)return t?b.jsx(t,{...r,children:e}):b.jsx("blockquote",{...r,children:e});const{variant:o,icon:l}=gf[i];return b.jsxs("div",{className:"rjsf-f0-callout","data-variant":o,children:[b.jsx(ee.F0Icon,{icon:l,size:"sm"}),b.jsx("div",{className:"rjsf-f0-callout-body",children:xf(e)})]})}const bt={...ee.markdownRenderers};delete bt["entity-ref"];const wf=bt.blockquote;bt.blockquote=e=>G.createElement(bf,{...e,fallback:wf});const Kt=bt;function Sf(e){var z,w,N;const{id:t,children:n,displayLabel:r,rawErrors:i=[],errors:o,help:l,rawDescription:a,hidden:s,label:u,required:f,schema:c,uiSchema:p,registry:h,fieldPathId:g}=e,k=_.getUiOptions(p),C=_.getTemplate("WrapIfAdditionalTemplate",h,k);if(s)return b.jsx("div",{className:"rjsf-f0-hidden",children:n});const y=k.widget==="checkbox"||c.type==="boolean"&&k.widget!=="oauth",T=typeof((z=g==null?void 0:g.path)==null?void 0:z[g.path.length-1])=="number"&&c.type!=="object"&&c.type!=="array",j=r&&!y&&!T&&!!u;return b.jsxs(b.Fragment,{children:[((w=c==null?void 0:c.markdown)==null?void 0:w.before)&&b.jsx("div",{className:"fcode-form-markdown",children:b.jsx(hr,{components:Kt,children:c.markdown.before})}),b.jsx(C,{...e,children:b.jsxs("div",{className:"rjsf-f0-field",children:[j&&b.jsxs("label",{className:"rjsf-f0-label",htmlFor:t,children:[b.jsx(Me,{components:{p:"span"},children:u}),f&&b.jsx("span",{"aria-hidden":"true",children:" *"})]}),n,r&&a&&b.jsx("div",{className:"rjsf-f0-help",children:b.jsx(Me,{children:a})}),i.length>0&&o,l]})}),((N=c==null?void 0:c.markdown)==null?void 0:N.after)&&b.jsx("div",{className:"fcode-form-markdown",children:b.jsx(hr,{components:Kt,children:c.markdown.after})})]})}function wt(e){return G.useCallback(t=>{t.preventDefault(),e==null||e(t)},[e])}function rt({icon:e,label:t,variant:n="outline",disabled:r,onClick:i,id:o,registry:l,uiSchema:a,iconType:s,...u}){const f=wt(i);return b.jsx(ee.F0Button,{...u,"data-testid":o,label:t,hideLabel:!0,icon:e,size:"sm",variant:n,disabled:r,onClick:f})}function Cf(e){const{translateString:t}=e.registry;return b.jsx(rt,{...e,icon:ie.Files,label:t(_.TranslatableString.CopyButton)})}function Tf(e){const{translateString:t}=e.registry;return b.jsx(rt,{...e,icon:ie.ArrowUp,label:t(_.TranslatableString.MoveUpButton)})}function Ef(e){const{translateString:t}=e.registry;return b.jsx(rt,{...e,icon:ie.ArrowDown,label:t(_.TranslatableString.MoveDownButton)})}function If(e){const{translateString:t}=e.registry;return b.jsx(rt,{...e,icon:ie.Delete,variant:"critical",label:t(_.TranslatableString.RemoveButton)})}function vf(e){const{translateString:t}=e.registry;return b.jsx(rt,{...e,icon:ie.Delete,variant:"ghost",label:t(_.TranslatableString.ClearButton)})}function Af(e){const{translateString:t}=e.registry,{disabled:n,onClick:r,id:i}=e,o=wt(r),l=t(_.TranslatableString.AddItemButton);return b.jsx(ee.F0Button,{"data-testid":i,label:l,icon:ie.Add,size:"sm",variant:"outline",disabled:n,onClick:o})}function Ff({uiSchema:e}){const{submitText:t,norender:n,props:r={}}=_.getSubmitButtonOptions(e);return n?null:b.jsx("div",{className:"rjsf-f0-submit",children:b.jsx(ee.F0Button,{label:t,variant:"default",disabled:r.disabled})})}const Df={SubmitButton:Ff,AddButton:Af,CopyButton:Cf,MoveDownButton:Ef,MoveUpButton:Tf,RemoveButton:If,ClearButton:vf};function Pf({id:e,title:t,uiSchema:n,optionalDataControl:r}){const o=_.getUiOptions(n).title||t;return o?b.jsxs("div",{id:e,className:"rjsf-f0-title",children:[b.jsx(ee.F0Heading,{as:"h5",variant:"heading",content:o}),r]}):null}function jf({id:e,description:t}){return t?b.jsx("div",{id:e,className:"rjsf-f0-section-description",children:typeof t=="string"?b.jsx(Me,{children:t}):t}):null}function Lf({errors:e=[],fieldPathId:t}){const n=e.filter(Boolean);return n.length===0?null:b.jsx("ul",{className:"rjsf-f0-errors",id:_.errorId(t),children:n.map((r,i)=>b.jsx("li",{children:typeof r=="string"?b.jsx(Me,{components:{p:"span"},children:r}):r},`${r}-${i}`))})}function zf({fieldPathId:e,help:t}){return t?b.jsx("div",{className:"rjsf-f0-help",id:_.helpId(e),children:t}):null}function Of({errors:e,registry:t}){const{translateString:n}=t;return b.jsx("div",{className:"rjsf-f0-error-list",children:b.jsx(ee.F0Alert,{variant:"critical",title:n(_.TranslatableString.ErrorsLabel),description:e.map(r=>r.stack).join(`
|
|
30
|
+
`)})})}function Rf(e){const{id:t,classNames:n,style:r,disabled:i,label:o,onKeyRename:l,onRemoveProperty:a,readonly:s,required:u,schema:f,children:c,uiSchema:p,registry:h}=e,{templates:g,translateString:k}=h,{RemoveButton:C}=g.ButtonTemplates,[y,E]=G.useState(o);if(!(_.ADDITIONAL_PROPERTY_FLAG in f))return b.jsx("div",{className:n,style:r,children:c});const T=`${t}-key`;return b.jsx("div",{className:n,style:r,children:b.jsxs("div",{className:"rjsf-f0-additional-property",children:[b.jsx(ee.F0TextInput,{id:T,name:T,label:k(_.TranslatableString.KeyLabel,[o]),value:y,required:u,disabled:i||s,onChange:E,onBlur:s?void 0:()=>{y!==o&&l(y)}}),c,b.jsx(C,{disabled:i||s,onClick:a,uiSchema:p,registry:h})]})})}function Nf(e){const{description:t,disabled:n,formData:r,fieldPathId:i,onAddProperty:o,optionalDataControl:l,properties:a,readonly:s,registry:u,required:f,schema:c,title:p,uiSchema:h}=e,g=_.getUiOptions(h),k=_.getTemplate("TitleFieldTemplate",u,g),C=_.getTemplate("DescriptionFieldTemplate",u,g),{AddButton:y}=u.templates.ButtonTemplates;if((c.oneOf||c.anyOf)&&!c.properties&&a.length===0)return null;const E=!s&&!n;return b.jsxs("div",{className:"rjsf-f0-object",children:[p&&b.jsx(k,{id:_.titleId(i),title:p,required:f,schema:c,uiSchema:h,registry:u,optionalDataControl:E?l:void 0}),t&&b.jsx(C,{id:_.descriptionId(i),description:t,schema:c,uiSchema:h,registry:u}),E?void 0:l,a.map(T=>b.jsx("div",{className:T.hidden?"rjsf-f0-hidden":"rjsf-f0-row",children:T.content},T.name)),_.canExpand(c,h,r)&&b.jsx("div",{className:"rjsf-f0-add",children:b.jsx(y,{id:_.buttonId(i,"add"),onClick:o,disabled:n||s,uiSchema:h,registry:u})})]})}function _f(e){const{canAdd:t,disabled:n,fieldPathId:r,items:i,optionalDataControl:o,onAddClick:l,readonly:a,registry:s,required:u,schema:f,title:c,uiSchema:p}=e,h=_.getUiOptions(p),g=_.getTemplate("ArrayFieldTitleTemplate",s,h),k=_.getTemplate("ArrayFieldDescriptionTemplate",s,h),{AddButton:C}=s.templates.ButtonTemplates,y=!a&&!n;return b.jsxs("div",{className:"rjsf-f0-array",children:[b.jsx(g,{fieldPathId:r,title:h.title||c,required:u,schema:f,uiSchema:p,registry:s,optionalDataControl:y?o:void 0}),b.jsx(k,{fieldPathId:r,description:h.description||f.description,schema:f,uiSchema:p,registry:s}),y?void 0:o,b.jsx("div",{className:"rjsf-f0-array-items",children:i}),t&&b.jsx("div",{className:"rjsf-f0-add",children:b.jsx(C,{id:_.buttonId(r,"add"),onClick:l,disabled:n||a,uiSchema:p,registry:s})})]})}function Mf(e){const{children:t,buttonsProps:n,hasToolbar:r,registry:i,schema:o,uiSchema:l}=e,a=_.getUiOptions(l),s=_.getTemplate("ArrayFieldItemButtonsTemplate",i,a),u=o.type==="object"||o.type==="array";return b.jsxs("div",{className:u?"rjsf-f0-array-item rjsf-f0-array-item-composite":"rjsf-f0-array-item",children:[b.jsx("div",{className:"rjsf-f0-array-item-content",children:t}),r&&b.jsx("div",{className:"rjsf-f0-array-item-toolbar",children:b.jsx(s,{...n})})]})}function Bf(e){const{disabled:t,hasCopy:n,hasMoveDown:r,hasMoveUp:i,hasRemove:o,fieldPathId:l,onCopyItem:a,onRemoveItem:s,onMoveDownItem:u,onMoveUpItem:f,readonly:c,registry:p,uiSchema:h}=e,{CopyButton:g,MoveDownButton:k,MoveUpButton:C,RemoveButton:y}=p.templates.ButtonTemplates,E={uiSchema:h,registry:p};return b.jsxs(b.Fragment,{children:[(i||r)&&b.jsx(C,{id:_.buttonId(l,"moveUp"),disabled:t||c||!i,onClick:f,...E}),(i||r)&&b.jsx(k,{id:_.buttonId(l,"moveDown"),disabled:t||c||!r,onClick:u,...E}),n&&b.jsx(g,{id:_.buttonId(l,"copy"),disabled:t||c,onClick:a,...E}),o&&b.jsx(y,{id:_.buttonId(l,"remove"),disabled:t||c,onClick:s,...E})]})}function Uf({children:e,className:t,column:n,...r}){return b.jsx("div",{className:t??(n?void 0:"rjsf-f0-grid"),...r,children:e})}function qf({selector:e,optionSchemaField:t}){return b.jsxs("div",{className:"rjsf-f0-multischema",children:[b.jsx("div",{className:"rjsf-f0-row",children:e}),t]})}function St(e){return e?e.replace(/!?\[([^\]]*)\]\([^)]*\)/g,"$1").replace(/[*_~`]/g,"").replace(/\s+/g," ").trim():""}function Ti(e){return!!e&&St(e)!==e.trim()}function Ae({field:e,toFieldValue:t,fromFieldValue:n,id:r,label:i,value:o,required:l,disabled:a,readonly:s,placeholder:u,rawErrors:f,onChange:c,onBlur:p}){const h=G.useCallback(y=>c(n?n(y):y),[c,n]),g=G.useCallback(()=>p(r,o),[p,r,o]),k=G.useMemo(()=>({id:r,label:St(i)||r,placeholder:u,helpText:void 0,...e}),[r,i,u,e]),[C]=f??[];return b.jsx(ee.F0FormField,{field:k,value:t?t(o):o,onChange:h,onBlur:g,error:!!C,required:l,disabled:a||s,hideLabel:!0})}const pr=e=>{if(!e||typeof e!="string")return;const t=new Date(e);return Number.isNaN(t.getTime())?void 0:t},mt=e=>String(e).padStart(2,"0"),Ei=e=>{if(!(!(e instanceof Date)||Number.isNaN(e.getTime())))return`${e.getFullYear()}-${mt(e.getMonth()+1)}-${mt(e.getDate())}`},Hf=e=>{const t=Ei(e);if(!(!t||!(e instanceof Date)))return`${t}T${mt(e.getHours())}:${mt(e.getMinutes())}`},Vf={number:"number",integer:"number",range:"number",date:"date","datetime-local":"datetime",time:"time"},$f=new Set(["password","email","tel","url"]);function Wf(e){const{id:t,htmlName:n,autofocus:r,disabled:i,readonly:o,required:l,multiple:a,accept:s,onChangeOverride:u,onBlur:f,onFocus:c}=e;return b.jsx("input",{id:t,name:n||t,className:"rjsf-f0-native-file",type:"file",autoFocus:r,disabled:i||o,required:l,multiple:a,accept:s,onChange:u,onBlur:p=>f(t,p.target.value),onFocus:p=>c(t,p.target.value)})}function Yf(e){const{type:t,schema:n,options:r}=e,i=t||(n.type==="number"||n.type==="integer"?"number":"text");if(i==="file")return b.jsx(Wf,{...e});const o=Vf[i]??"text";return o==="date"?b.jsx(Ae,{...e,field:{type:"date"},toFieldValue:pr,fromFieldValue:Ei}):o==="datetime"?b.jsx(Ae,{...e,field:{type:"datetime"},toFieldValue:pr,fromFieldValue:Hf}):o==="number"?b.jsx(Ae,{...e,field:{type:"number",...n.minimum!==void 0&&{min:n.minimum},...n.maximum!==void 0&&{max:n.maximum},...n.type==="integer"&&{maxDecimals:0}},fromFieldValue:l=>l===""||l===null?void 0:l}):b.jsx(Ae,{...e,field:{type:o,...$f.has(i)&&{inputType:i}},fromFieldValue:l=>l===""?r.emptyValue:l})}const Xf=5;function Gf(e){const{options:t}=e;return b.jsx(Ae,{...e,field:{type:"textarea",rows:t.rows||Xf},fromFieldValue:n=>n===""?t.emptyValue:n})}const Qf="Drag a file here, or click to choose one",Kf="Drag files here, or click to choose them",mr=["B","KB","MB","GB"];function Jf(e){if(!Number.isFinite(e)||e<0)return"";let t=e,n=0;for(;t>=1024&&n<mr.length-1;)t/=1024,n+=1;return`${n===0?t:Math.round(t*10)/10} ${mr[n]}`}function Zf(e){const{id:t,options:n,registry:r,uiSchema:i,required:o,disabled:l,readonly:a,autofocus:s,multiple:u,value:f,onChange:c,onBlur:p,onFocus:h}=e,{filesInfo:g,handleChange:k,handleRemove:C}=_.useFileWidgetProps(f,c,u),[y,E]=G.useState(!1),{RemoveButton:T}=_.getTemplate("ButtonTemplates",r,n),j=l||a,z=n.accept?String(n.accept):void 0,w=n.dropzoneText??r.translateString(u?Kf:Qf),N=G.useCallback(A=>{var D;E(!1),(D=A.target.files)!=null&&D.length&&k(A.target.files),A.target.value=""},[k]),U=G.useCallback(A=>{j||(A.preventDefault(),E(!0))},[j]),q=G.useCallback(A=>{A.currentTarget.contains(A.relatedTarget)||E(!1)},[]),x=G.useCallback(A=>{var V;if(E(!1),j)return;A.preventDefault();const D=(V=A.dataTransfer)==null?void 0:V.files;D!=null&&D.length&&k(D)},[k,j]);return b.jsxs("div",{className:"rjsf-f0-file",children:[b.jsxs("div",{className:"rjsf-f0-dropzone","data-dragging":y?"true":void 0,"data-disabled":j?"true":void 0,onDragOver:U,onDragEnter:U,onDragLeave:q,onDrop:x,children:[b.jsx("input",{id:t,name:t,className:"rjsf-f0-dropzone-input",type:"file",accept:z,multiple:u,autoFocus:s,disabled:j,required:f?!1:o,onChange:N,onBlur:A=>p(t,A.target.value),onFocus:A=>h(t,A.target.value)}),b.jsxs("div",{className:"rjsf-f0-dropzone-body","aria-hidden":"true",children:[b.jsx(ee.F0Icon,{icon:ie.Upload,size:"md"}),b.jsx("span",{className:"rjsf-f0-dropzone-text",children:w}),z&&b.jsx("span",{className:"rjsf-f0-dropzone-hint",children:z})]})]}),g.length>0&&b.jsx("ul",{className:"rjsf-f0-files",children:g.map((A,D)=>b.jsxs("li",{className:"rjsf-f0-file-chip",children:[b.jsx(ee.F0Icon,{icon:ie.File,size:"sm"}),b.jsx("span",{className:"rjsf-f0-file-name",children:A.name}),b.jsx("span",{className:"rjsf-f0-file-size",children:Jf(A.size)}),b.jsx(T,{id:`${t}-remove-${D}`,disabled:j,onClick:()=>C(D),registry:r,uiSchema:i})]},`${A.name}-${D}`))})]})}const eh=e=>(Array.isArray(e)?e:[]).map((t,n)=>({value:String(n),label:String(t.label)}));function th(e){const{options:t,multiple:n,value:r,schema:i}=e,{enumOptions:o,enumDisabled:l}=t,a=Array.isArray(o)?o:[],s=c=>a.findIndex(p=>_.enumOptionsIsSelected(p.value,c)),u=G.useCallback(c=>{if(n)return(Array.isArray(c)?c:[]).map(g=>s(g)).filter(g=>g>=0).map(String);const p=s(c);return p>=0?String(p):void 0},[n,a]),f=G.useCallback(c=>{var p;return n?(Array.isArray(c)?c:[]).map(g=>{var k;return(k=a[Number(g)])==null?void 0:k.value}):c==null||c===""?t.emptyValue:(p=a[Number(c)])==null?void 0:p.value},[n,a,t.emptyValue]);return b.jsx(Ae,{...e,field:{type:"select",options:eh(o).filter((c,p)=>{var h;return!(Array.isArray(l)&&l.includes((h=a[p])==null?void 0:h.value))}),multiple:n,clearable:!i.default&&!e.required,showSearchBox:a.length>8},value:r,toFieldValue:u,fromFieldValue:f})}function nh({id:e,value:t,label:n,hideLabel:r,disabled:i,readonly:o,onChange:l}){const a=!r&&Ti(n);return b.jsxs("div",{className:"rjsf-f0-checkbox",children:[b.jsx(ee.F0Checkbox,{id:e,title:St(n),checked:t===!0,hideLabel:r||a,disabled:i||o,onCheckedChange:s=>l(s===!0)}),a&&b.jsx("label",{className:"rjsf-f0-checkbox-label",htmlFor:e,children:b.jsx(Me,{components:{p:"span"},children:n})})]})}function rh({id:e,disabled:t,readonly:n,options:r,value:i,onChange:o}){const{enumOptions:l,enumDisabled:a}=r,s=Array.isArray(i)?i:[];return b.jsx("div",{className:"rjsf-f0-checkboxes",children:(Array.isArray(l)?l:[]).map((u,f)=>{const c=_.enumOptionsIsSelected(u.value,s),p=Array.isArray(a)&&a.includes(u.value),h=_.optionId(e,f),g=String(u.label),k=Ti(g);return b.jsxs("div",{className:"rjsf-f0-checkbox",children:[b.jsx(ee.F0Checkbox,{id:h,title:St(g),checked:c,hideLabel:k,disabled:t||n||p,onCheckedChange:C=>o(C===!0?_.enumOptionsSelectValue(f,s,l):_.enumOptionsDeselectValue(f,s,l))}),k&&b.jsx("label",{className:"rjsf-f0-checkbox-label",htmlFor:h,children:b.jsx(Me,{components:{p:"span"},children:g})})]},String(u.value))})})}function ih(e){const{options:t,required:n}=e,r=Array.isArray(t.enumOptions)?t.enumOptions:[];return b.jsx(Ae,{...e,field:{type:"cardSelect",grouped:!0,options:r.map((i,o)=>{var l;return{value:String(o),label:String(i.label),...(l=i.schema)!=null&&l.description?{description:String(i.schema.description)}:{}}})},toFieldValue:i=>{const o=r.findIndex(l=>_.enumOptionsIsSelected(l.value,i));return o>=0?String(o):void 0},fromFieldValue:i=>{var o;return i===void 0||i===""?t.emptyValue:(o=r[Number(i)])==null?void 0:o.value},required:n})}const Ii=e=>!e.clickable&&e.status!=="current",lh=({items:e,onNavigate:t})=>b.jsx("nav",{className:"rjsf-f0-steps-tabs","aria-label":"Form steps",children:e.map(n=>b.jsx("div",{className:`rjsf-f0-steps-tab rjsf-f0-steps-tab-${n.status}`,...n.status==="current"&&{"aria-current":"step"},children:b.jsx(ee.F0Button,{label:`${n.index+1}. ${n.title}`,size:"sm",variant:n.status==="current"?"neutral":"ghost",disabled:Ii(n),onClick:r=>{r.preventDefault(),t(n.index)}})},n.index))}),oh=({items:e,currentIndex:t,onNavigate:n})=>b.jsx("nav",{className:"rjsf-f0-steps-nav","aria-label":"Form steps",children:b.jsx(Ui.F0TableOfContent,{items:e.map(r=>({id:String(r.index),label:r.title,disabled:Ii(r),onClick:i=>n(Number(i))})),activeItem:String(t),scrollable:!1})}),ah=({layout:e,items:t,currentIndex:n,onNavigate:r,children:i})=>{const o=t[n];return b.jsxs("div",{className:`rjsf-f0-steps rjsf-f0-steps-layout-${e}`,children:[e==="sidebar"?b.jsx(oh,{items:t,currentIndex:n,onNavigate:r}):b.jsx(lh,{items:t,onNavigate:r}),b.jsxs("div",{className:"rjsf-f0-steps-main",children:[o&&b.jsxs("div",{className:"rjsf-f0-steps-header",children:[b.jsx("h3",{className:"rjsf-f0-steps-title",children:o.title}),o.description&&b.jsx("p",{className:"rjsf-f0-steps-description",children:o.description})]}),b.jsx("div",{className:"rjsf-f0-steps-panel",children:i})]})]})},uh=({label:e,onClick:t,disabled:n})=>{const r=wt(t);return b.jsx("div",{className:"rjsf-f0-steps-back",children:b.jsx(ee.F0Button,{label:e,variant:"outline",disabled:n,onClick:r})})},vi={StepsNavigation:ah,BackButton:uh},sh=({id:e,status:t,label:n,disabled:r,errorMessage:i,onClick:o})=>{const l=wt(o),a=t==="connected";return b.jsxs("div",{className:"rjsf-f0-oauth","data-status":t,children:[b.jsx(ee.F0Button,{"data-testid":e,label:n,variant:a?"outline":"default",icon:a?ie.Check:void 0,disabled:r,onClick:l}),i&&b.jsx("p",{className:"rjsf-f0-oauth-error",role:"alert",children:i})]})},Ai={ConnectControl:sh},Fi={ArrayFieldItemButtonsTemplate:Bf,ArrayFieldItemTemplate:Mf,ArrayFieldTemplate:_f,BaseInputTemplate:Yf,ButtonTemplates:Df,DescriptionFieldTemplate:jf,ErrorListTemplate:Of,FieldErrorTemplate:Lf,FieldHelpTemplate:zf,FieldTemplate:Sf,GridTemplate:Uf,MultiSchemaFieldTemplate:qf,ObjectFieldTemplate:Nf,TitleFieldTemplate:Pf,WrapIfAdditionalTemplate:Rf},Di={CheckboxWidget:nh,CheckboxesWidget:rh,FileWidget:Zf,RadioWidget:ih,SelectWidget:th,TextareaWidget:Gf};function yn(){return{templates:Fi,widgets:Di,multistep:vi,oauth:Ai}}const Pi=yn();function ch(){return dr.withTheme(yn())}const fh=dr.withTheme(Pi);exports.Form=fh;exports.Multistep=vi;exports.Oauth=Ai;exports.Templates=Fi;exports.Theme=Pi;exports.Widgets=Di;exports.generateForm=ch;exports.generateTheme=yn;exports.markdownComponents=Kt;
|
|
31
31
|
//# sourceMappingURL=rjsf-f0.cjs.js.map
|