@object-ui/plugin-markdown 3.0.3 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @object-ui/plugin-markdown@3.
|
|
2
|
+
> @object-ui/plugin-markdown@3.1.1 build /home/runner/work/objectui/objectui/packages/plugin-markdown
|
|
3
3
|
> vite build
|
|
4
4
|
|
|
5
5
|
[36mvite v7.3.1 [32mbuilding client environment for production...[36m[39m
|
|
@@ -10,9 +10,9 @@ rendering chunks...
|
|
|
10
10
|
[36m[vite:dts][32m Start generate declaration files...[39m
|
|
11
11
|
computing gzip size...
|
|
12
12
|
[2mdist/[22m[36mindex.js [39m[1m[2m 0.19 kB[22m[1m[22m[2m │ gzip: 0.15 kB[22m
|
|
13
|
-
[2mdist/[22m[36mindex-
|
|
14
|
-
[2mdist/[22m[36mMarkdownImpl-
|
|
15
|
-
[32m[36m[vite:dts][32m Declaration files built in
|
|
13
|
+
[2mdist/[22m[36mindex-Dr10kVgr.js [39m[1m[2m 9.86 kB[22m[1m[22m[2m │ gzip: 3.22 kB[22m
|
|
14
|
+
[2mdist/[22m[36mMarkdownImpl-E6vCIsNj.js [39m[1m[2m262.85 kB[22m[1m[22m[2m │ gzip: 66.07 kB[22m
|
|
15
|
+
[32m[36m[vite:dts][32m Declaration files built in 20715ms.
|
|
16
16
|
[39m
|
|
17
17
|
[2mdist/[22m[36mindex.umd.cjs [39m[1m[2m170.20 kB[22m[1m[22m[2m │ gzip: 52.58 kB[22m
|
|
18
|
-
[32m✓ built in
|
|
18
|
+
[32m✓ built in 30.86s[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as Ve } from "./index-
|
|
1
|
+
import { j as Ve } from "./index-Dr10kVgr.js";
|
|
2
2
|
import "react";
|
|
3
3
|
function lr(e) {
|
|
4
4
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -4024,7 +4024,7 @@ function ca(e, t, n) {
|
|
|
4024
4024
|
}
|
|
4025
4025
|
const Lr = {}.hasOwnProperty;
|
|
4026
4026
|
function fa(e, t, n) {
|
|
4027
|
-
return typeof t
|
|
4027
|
+
return t && typeof t == "object" && (n = t, t = void 0), ha(n)(oa(la(n).document().write(aa()(e, t, !0))));
|
|
4028
4028
|
}
|
|
4029
4029
|
function ha(e) {
|
|
4030
4030
|
const t = {
|
|
@@ -261,7 +261,7 @@ function le() {
|
|
|
261
261
|
return F || (F = 1, process.env.NODE_ENV === "production" ? b.exports = oe() : b.exports = se()), b.exports;
|
|
262
262
|
}
|
|
263
263
|
var O = le();
|
|
264
|
-
const ue = D.lazy(() => import("./MarkdownImpl-
|
|
264
|
+
const ue = D.lazy(() => import("./MarkdownImpl-E6vCIsNj.js")), L = ({ schema: s }) => /* @__PURE__ */ O.jsx(te, { fallback: /* @__PURE__ */ O.jsx(ae, { className: "w-full h-[200px]" }), children: /* @__PURE__ */ O.jsx(
|
|
265
265
|
ue,
|
|
266
266
|
{
|
|
267
267
|
content: s.content || "",
|
package/dist/index.js
CHANGED
package/dist/index.umd.cjs
CHANGED
|
@@ -12,7 +12,7 @@ This is a **markdown** component with *formatting* support.
|
|
|
12
12
|
- Item 3`}});const Pi={markdown:wn};function hf(){}function mf(){}function _i(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Ri=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Di=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zi={};function kt(e,t){return(zi.jsx?Di:Ri).test(e)}const Li=/[ \t\n\f\r]/g;function Fi(e){return typeof e=="object"?e.type==="text"?xt(e.value):!1:xt(e)}function xt(e){return e.replace(Li,"")===""}class He{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}He.prototype.normal={},He.prototype.property={},He.prototype.space=void 0;function bt(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new He(n,r,t)}function Sn(e){return e.toLowerCase()}class ie{constructor(t,n){this.attribute=n,this.property=t}}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 Oi=0;const M=ve(),Z=ve(),Cn=ve(),T=ve(),G=ve(),ze=ve(),ae=ve();function ve(){return 2**++Oi}const En=Object.freeze(Object.defineProperty({__proto__:null,boolean:M,booleanish:Z,commaOrSpaceSeparated:ae,commaSeparated:ze,number:T,overloadedBoolean:Cn,spaceSeparated:G},Symbol.toStringTag,{value:"Module"})),Tn=Object.keys(En);class In extends ie{constructor(t,n,r,i){let o=-1;if(super(t,n),wt(this,"space",i),typeof r=="number")for(;++o<Tn.length;){const l=Tn[o];wt(this,Tn[o],(r&En[l])===En[l])}}}In.prototype.defined=!0;function wt(e,t,n){n&&(e[t]=n)}function Le(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new In(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Sn(r)]=r,n[Sn(o.attribute)]=r}return new He(t,n,e.space)}const St=Le({properties:{ariaActiveDescendant:null,ariaAtomic:Z,ariaAutoComplete:null,ariaBusy:Z,ariaChecked:Z,ariaColCount:T,ariaColIndex:T,ariaColSpan:T,ariaControls:G,ariaCurrent:null,ariaDescribedBy:G,ariaDetails:null,ariaDisabled:Z,ariaDropEffect:G,ariaErrorMessage:null,ariaExpanded:Z,ariaFlowTo:G,ariaGrabbed:Z,ariaHasPopup:null,ariaHidden:Z,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:G,ariaLevel:T,ariaLive:null,ariaModal:Z,ariaMultiLine:Z,ariaMultiSelectable:Z,ariaOrientation:null,ariaOwns:G,ariaPlaceholder:null,ariaPosInSet:T,ariaPressed:Z,ariaReadOnly:Z,ariaRelevant:null,ariaRequired:Z,ariaRoleDescription:G,ariaRowCount:T,ariaRowIndex:T,ariaRowSpan:T,ariaSelected:Z,ariaSetSize:T,ariaSort:null,ariaValueMax:T,ariaValueMin:T,ariaValueNow:T,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Ct(e,t){return t in e?e[t]:t}function Et(e,t){return Ct(e,t.toLowerCase())}const Mi=Le({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ze,acceptCharset:G,accessKey:G,action:null,allow:null,allowFullScreen:M,allowPaymentRequest:M,allowUserMedia:M,alt:null,as:null,async:M,autoCapitalize:null,autoComplete:G,autoFocus:M,autoPlay:M,blocking:G,capture:null,charSet:null,checked:M,cite:null,className:G,cols:T,colSpan:null,content:null,contentEditable:Z,controls:M,controlsList:G,coords:T|ze,crossOrigin:null,data:null,dateTime:null,decoding:null,default:M,defer:M,dir:null,dirName:null,disabled:M,download:Cn,draggable:Z,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:M,formTarget:null,headers:G,height:T,hidden:Cn,high:T,href:null,hrefLang:null,htmlFor:G,httpEquiv:G,id:null,imageSizes:null,imageSrcSet:null,inert:M,inputMode:null,integrity:null,is:null,isMap:M,itemId:null,itemProp:G,itemRef:G,itemScope:M,itemType:G,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:M,low:T,manifest:null,max:null,maxLength:T,media:null,method:null,min:null,minLength:T,multiple:M,muted:M,name:null,nonce:null,noModule:M,noValidate:M,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:M,optimum:T,pattern:null,ping:G,placeholder:null,playsInline:M,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:M,referrerPolicy:null,rel:G,required:M,reversed:M,rows:T,rowSpan:T,sandbox:G,scope:null,scoped:M,seamless:M,selected:M,shadowRootClonable:M,shadowRootDelegatesFocus:M,shadowRootMode:null,shape:null,size:T,sizes:null,slot:null,span:T,spellCheck:Z,src:null,srcDoc:null,srcLang:null,srcSet:null,start:T,step:null,style:null,tabIndex:T,target:null,title:null,translate:null,type:null,typeMustMatch:M,useMap:null,value:Z,width:T,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:G,axis:null,background:null,bgColor:null,border:T,borderColor:null,bottomMargin:T,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:M,declare:M,event:null,face:null,frame:null,frameBorder:null,hSpace:T,leftMargin:T,link:null,longDesc:null,lowSrc:null,marginHeight:T,marginWidth:T,noResize:M,noHref:M,noShade:M,noWrap:M,object:null,profile:null,prompt:null,rev:null,rightMargin:T,rules:null,scheme:null,scrolling:Z,standby:null,summary:null,text:null,topMargin:T,valueType:null,version:null,vAlign:null,vLink:null,vSpace:T,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:M,disableRemotePlayback:M,prefix:null,property:null,results:T,security:null,unselectable:null},space:"html",transform:Et}),Ni=Le({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ae,accentHeight:T,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:T,amplitude:T,arabicForm:null,ascent:T,attributeName:null,attributeType:null,azimuth:T,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:T,by:null,calcMode:null,capHeight:T,className:G,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:T,diffuseConstant:T,direction:null,display:null,dur:null,divisor:T,dominantBaseline:null,download:M,dx:null,dy:null,edgeMode:null,editable:null,elevation:T,enableBackground:null,end:null,event:null,exponent:T,externalResourcesRequired:null,fill:null,fillOpacity:T,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:ze,g2:ze,glyphName:ze,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:T,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:T,horizOriginX:T,horizOriginY:T,id:null,ideographic:T,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:T,k:T,k1:T,k2:T,k3:T,k4:T,kernelMatrix:ae,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:T,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:T,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:T,overlineThickness:T,paintOrder:null,panose1:null,path:null,pathLength:T,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:G,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:T,pointsAtY:T,pointsAtZ:T,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:T,specularExponent:T,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:T,strikethroughThickness:T,string:null,stroke:null,strokeDashArray:ae,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:T,strokeOpacity:T,strokeWidth:null,style:null,surfaceScale:T,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ae,tabIndex:T,tableValues:null,target:null,targetX:T,targetY:T,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:T,underlineThickness:T,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:T,values:null,vAlphabetic:T,vMathematical:T,vectorEffect:null,vHanging:T,vIdeographic:T,version:null,vertAdvY:T,vertOriginX:T,vertOriginY:T,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:T,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Ct}),Tt=Le({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()}}),It=Le({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Et}),At=Le({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),ji={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"},Bi=/[A-Z]/g,vt=/-[a-z]/g,qi=/^data[-\w.:]+$/i;function Ui(e,t){const n=Sn(t);let r=t,i=ie;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&qi.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(vt,$i);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!vt.test(o)){let l=o.replace(Bi,Hi);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=In}return new i(r,t)}function Hi(e){return"-"+e.toLowerCase()}function $i(e){return e.charAt(1).toUpperCase()}const Vi=bt([St,Mi,Tt,It,At],"html"),An=bt([St,Ni,Tt,It,At],"svg");function Wi(e){return e.join(" ").trim()}var Fe={},vn,Pt;function Yi(){if(Pt)return vn;Pt=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=`
|
|
13
13
|
`,u="/",f="*",c="",h="comment",p="declaration";function g(C,y){if(typeof C!="string")throw new TypeError("First argument must be a string");if(!C)return[];y=y||{};var I=1,E=1;function L(R){var v=R.match(t);v&&(I+=v.length);var V=R.lastIndexOf(s);E=~V?R.length-V:E+R.length}function F(){var R={line:I,column:E};return function(v){return v.position=new b(R),B(),v}}function b(R){this.start=R,this.end={line:I,column:E},this.source=y.source}b.prototype.content=C;function N(R){var v=new Error(y.source+":"+I+":"+E+": "+R);if(v.reason=R,v.filename=y.source,v.line=I,v.column=E,v.source=C,!y.silent)throw v}function H(R){var v=R.exec(C);if(v){var V=v[0];return L(V),C=C.slice(V.length),v}}function B(){H(n)}function k(R){var v;for(R=R||[];v=P();)v!==!1&&R.push(v);return R}function P(){var R=F();if(!(u!=C.charAt(0)||f!=C.charAt(1))){for(var v=2;c!=C.charAt(v)&&(f!=C.charAt(v)||u!=C.charAt(v+1));)++v;if(v+=2,c===C.charAt(v-1))return N("End of comment missing");var V=C.slice(2,v-2);return E+=2,L(V),C=C.slice(v),E+=2,R({type:h,comment:V})}}function _(){var R=F(),v=H(r);if(v){if(P(),!H(i))return N("property missing ':'");var V=H(o),J=R({type:p,property:S(v[0].replace(e,c)),value:V?S(V[0].replace(e,c)):c});return H(l),J}}function $(){var R=[];k(R);for(var v;v=_();)v!==!1&&(R.push(v),k(R));return R}return B(),$()}function S(C){return C?C.replace(a,c):c}return vn=g,vn}var _t;function Xi(){if(_t)return Fe;_t=1;var e=Fe&&Fe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.default=n;const t=e(Yi());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 Fe}var $e={},Rt;function Gi(){if(Rt)return $e;Rt=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 Ve,Dt;function Qi(){if(Dt)return Ve;Dt=1;var e=Ve&&Ve.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(Xi()),n=Gi();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,Ve=r,Ve}var Ji=Qi();const Ki=mt(Ji),zt=Lt("end"),Pn=Lt("start");function Lt(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 Ft(e){const t=Pn(e),n=zt(e);if(t&&n)return{start:t,end:n}}function We(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ot(e.position):"start"in e||"end"in e?Ot(e):"line"in e||"column"in e?_n(e):""}function _n(e){return Mt(e&&e.line)+":"+Mt(e&&e.column)}function Ot(e){return _n(e&&e.start)+"-"+_n(e&&e.end)}function Mt(e){return e&&typeof e=="number"?e:1}class ee 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=We(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 Rn={}.hasOwnProperty,Zi=new Map,el=/[A-Z]/g,nl=new Set(["table","tbody","thead","tfoot","tr"]),tl=new Set(["td","th"]),Nt="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function rl(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=fl(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"?An:Vi,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=jt(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function jt(e,t,n){if(t.type==="element")return il(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ll(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return al(e,t,n);if(t.type==="mdxjsEsm")return ol(e,t);if(t.type==="root")return ul(e,t,n);if(t.type==="text")return sl(e,t)}function il(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=An,e.schema=i),e.ancestors.push(t);const o=qt(e,t.tagName,!1),l=pl(e,t);let a=zn(e,t);return nl.has(t.tagName)&&(a=a.filter(function(s){return typeof s=="string"?!Fi(s):!0})),Bt(e,l,o,t),Dn(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function ll(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)}Ye(e,t.position)}function ol(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Ye(e,t.position)}function al(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=An,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:qt(e,t.name,!0),l=hl(e,t),a=zn(e,t);return Bt(e,l,o,t),Dn(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function ul(e,t,n){const r={};return Dn(r,zn(e,t)),e.create(t,e.Fragment,r,n)}function sl(e,t){return t.value}function Bt(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Dn(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 fl(e,t){return n;function n(r,i,o,l){const a=Array.isArray(o.children),s=Pn(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 pl(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Rn.call(t.properties,i)){const o=ml(e,i,t.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&tl.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 hl(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 Ye(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 Ye(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function zn(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Zi;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=jt(e,o,l);a!==void 0&&n.push(a)}return n}function ml(e,t,n){const r=Ui(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?_i(n):Wi(n)),r.property==="style"){let i=typeof n=="object"?n:dl(e,String(n));return e.stylePropertyNameCase==="css"&&(i=gl(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?ji[r.property]||r.property:r.attribute,n]}}function dl(e,t){try{return Ki(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,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=Nt+"#cannot-parse-style-attribute",i}}function qt(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=kt(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=kt(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Rn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Ye(e)}function Ye(e,t){const n=new ee("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=Nt+"#cannot-handle-mdx-estrees-without-createevaluater",n}function gl(e){const t={};let n;for(n in e)Rn.call(e,n)&&(t[yl(n)]=e[n]);return t}function yl(e){let t=e.replace(el,kl);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function kl(e){return"-"+e.toLowerCase()}const Ln={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"]},xl={};function Fn(e,t){const n=xl,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ut(e,r,i)}function Ut(e,t,n){if(bl(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 Ht(e.children,t,n)}return Array.isArray(e)?Ht(e,t,n):""}function Ht(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ut(e[i],t,n);return r.join("")}function bl(e){return!!(e&&typeof e=="object")}const $t=document.createElement("i");function On(e){const t="&"+e+";";$t.innerHTML=t;const n=$t.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 ce(e,t){return e.length>0?(ue(e,e.length,0,t),e):t}const Vt={}.hasOwnProperty;function Wt(e){const t={};let n=-1;for(;++n<e.length;)wl(t,e[n]);return t}function wl(e,t){let n;for(n in t){const i=(Vt.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){Vt.call(i,l)||(i[l]=[]);const a=o[l];Sl(i[l],Array.isArray(a)?a:a?[a]:[])}}}function Sl(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 Yt(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 he(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const te=Ce(/[A-Za-z]/),ne=Ce(/[\dA-Za-z]/),Cl=Ce(/[#-'*+\--9=?A-Z^-~]/);function an(e){return e!==null&&(e<32||e===127)}const Mn=Ce(/\d/),El=Ce(/[\dA-Fa-f]/),Tl=Ce(/[!-/:-@[-`{-~]/);function D(e){return e!==null&&e<-2}function Y(e){return e!==null&&(e<0||e===32)}function j(e){return e===-2||e===-1||e===32}const un=Ce(new RegExp("\\p{P}|\\p{S}","u")),Pe=Ce(/\s/);function Ce(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Oe(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&ne(e.charCodeAt(n+1))&&ne(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 U(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(s){return j(s)?(e.enter(n),a(s)):t(s)}function a(s){return j(s)&&o++<i?(e.consume(s),a):(e.exit(n),t(s))}}const Il={tokenize:Al};function Al(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"),U(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 D(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}const vl={tokenize:Pl},Xt={tokenize:_l};function Pl(e){const t=this,n=[];let r=0,i,o,l;return a;function a(E){if(r<n.length){const L=n[r];return t.containerState=L[1],e.attempt(L[0].continuation,s,u)(E)}return u(E)}function s(E){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&I();const L=t.events.length;let F=L,b;for(;F--;)if(t.events[F][0]==="exit"&&t.events[F][1].type==="chunkFlow"){b=t.events[F][1].end;break}y(r);let N=L;for(;N<t.events.length;)t.events[N][1].end={...b},N++;return ue(t.events,F+1,0,t.events.slice(L)),t.events.length=N,u(E)}return a(E)}function u(E){if(r===n.length){if(!i)return h(E);if(i.currentConstruct&&i.currentConstruct.concrete)return g(E);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Xt,f,c)(E)}function f(E){return i&&I(),y(r),h(E)}function c(E){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,g(E)}function h(E){return t.containerState={},e.attempt(Xt,p,g)(E)}function p(E){return r++,n.push([t.currentConstruct,t.containerState]),h(E)}function g(E){if(E===null){i&&I(),y(0),e.consume(E);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),S(E)}function S(E){if(E===null){C(e.exit("chunkFlow"),!0),y(0),e.consume(E);return}return D(E)?(e.consume(E),C(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(E),S)}function C(E,L){const F=t.sliceStream(E);if(L&&F.push(null),E.previous=o,o&&(o.next=E),o=E,i.defineSkip(E.start),i.write(F),t.parser.lazy[E.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<l&&(!i.events[b][1].end||i.events[b][1].end.offset>l))return;const N=t.events.length;let H=N,B,k;for(;H--;)if(t.events[H][0]==="exit"&&t.events[H][1].type==="chunkFlow"){if(B){k=t.events[H][1].end;break}B=!0}for(y(r),b=N;b<t.events.length;)t.events[b][1].end={...k},b++;ue(t.events,H+1,0,t.events.slice(N)),t.events.length=b}}function y(E){let L=n.length;for(;L-- >E;){const F=n[L];t.containerState=F[1],F[0].exit.call(t,e)}n.length=E}function I(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function _l(e,t,n){return U(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Me(e){if(e===null||Y(e)||Pe(e))return 1;if(un(e))return 2}function sn(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 Nn={name:"attention",resolveAll:Rl,tokenize:Dl};function Rl(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},h={...e[n][1].start};Gt(c,-s),Gt(h,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:h},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=ce(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=ce(u,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),u=ce(u,sn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=ce(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=ce(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 Dl(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Me(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=Me(s),c=!f||f===2&&i||n.includes(s),h=!i||i===2&&f||n.includes(r);return u._open=!!(o===42?c:c&&(i||!h)),u._close=!!(o===42?h:h&&(f||!c)),t(s)}}function Gt(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const zl={name:"autolink",tokenize:Ll};function Ll(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return te(p)?(e.consume(p),l):p===64?n(p):u(p)}function l(p){return p===43||p===45||p===46||ne(p)?(r=1,a(p)):u(p)}function a(p){return p===58?(e.consume(p),r=0,s):(p===43||p===45||p===46||ne(p))&&r++<32?(e.consume(p),a):(r=0,u(p))}function s(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||an(p)?n(p):(e.consume(p),s)}function u(p){return p===64?(e.consume(p),f):Cl(p)?(e.consume(p),u):n(p)}function f(p){return ne(p)?c(p):n(p)}function c(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):h(p)}function h(p){if((p===45||ne(p))&&r++<63){const g=p===45?h:c;return e.consume(p),g}return n(p)}}const Xe={partial:!0,tokenize:Fl};function Fl(e,t,n){return r;function r(o){return j(o)?U(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||D(o)?t(o):n(o)}}const Qt={continuation:{tokenize:Ml},exit:Nl,name:"blockQuote",tokenize:Ol};function Ol(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 j(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function Ml(e,t,n){const r=this;return i;function i(l){return j(l)?U(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Qt,t,n)(l)}}function Nl(e){e.exit("blockQuote")}const Jt={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 Tl(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Kt={name:"characterReference",tokenize:Bl};function Bl(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=ne,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=El,f):(e.enter("characterReferenceValue"),o=7,l=Mn,f(c))}function f(c){if(c===59&&i){const h=e.exit("characterReferenceValue");return l===ne&&!On(r.sliceSerialize(h))?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 Zt={partial:!0,tokenize:Ul},er={concrete:!0,name:"codeFenced",tokenize:ql};function ql(e,t,n){const r=this,i={partial:!0,tokenize:F};let o=0,l=0,a;return s;function s(b){return u(b)}function u(b){const N=r.events[r.events.length-1];return o=N&&N[1].type==="linePrefix"?N[2].sliceSerialize(N[1],!0).length:0,a=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(b)}function f(b){return b===a?(l++,e.consume(b),f):l<3?n(b):(e.exit("codeFencedFenceSequence"),j(b)?U(e,c,"whitespace")(b):c(b))}function c(b){return b===null||D(b)?(e.exit("codeFencedFence"),r.interrupt?t(b):e.check(Zt,S,L)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===null||D(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(b)):j(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),U(e,p,"whitespace")(b)):b===96&&b===a?n(b):(e.consume(b),h)}function p(b){return b===null||D(b)?c(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||D(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(b)):b===96&&b===a?n(b):(e.consume(b),g)}function S(b){return e.attempt(i,L,C)(b)}function C(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),y}function y(b){return o>0&&j(b)?U(e,I,"linePrefix",o+1)(b):I(b)}function I(b){return b===null||D(b)?e.check(Zt,S,L)(b):(e.enter("codeFlowValue"),E(b))}function E(b){return b===null||D(b)?(e.exit("codeFlowValue"),I(b)):(e.consume(b),E)}function L(b){return e.exit("codeFenced"),t(b)}function F(b,N,H){let B=0;return k;function k(v){return b.enter("lineEnding"),b.consume(v),b.exit("lineEnding"),P}function P(v){return b.enter("codeFencedFence"),j(v)?U(b,_,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):_(v)}function _(v){return v===a?(b.enter("codeFencedFenceSequence"),$(v)):H(v)}function $(v){return v===a?(B++,b.consume(v),$):B>=l?(b.exit("codeFencedFenceSequence"),j(v)?U(b,R,"whitespace")(v):R(v)):H(v)}function R(v){return v===null||D(v)?(b.exit("codeFencedFence"),N(v)):H(v)}}}function Ul(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 jn={name:"codeIndented",tokenize:$l},Hl={partial:!0,tokenize:Vl};function $l(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),U(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):D(u)?e.attempt(Hl,l,s)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||D(u)?(e.exit("codeFlowValue"),l(u)):(e.consume(u),a)}function s(u){return e.exit("codeIndented"),t(u)}}function Vl(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):D(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):U(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):D(l)?i(l):n(l)}}const Wl={name:"codeText",previous:Xl,resolve:Yl,tokenize:Gl};function Yl(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 Xl(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Gl(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)):D(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||D(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 Ql{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&&Ge(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),Ge(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Ge(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);Ge(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Ge(this.left,n.reverse())}}}function Ge(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 nr(e){const t={};let n=-1,r,i,o,l,a,s,u;const f=new Ql(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,Jl(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 Jl(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,h=-1,p=n,g=0,S=0;const C=[S];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),c&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=n;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(S=h+1,C.push(S),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):C.pop(),h=C.length;h--;){const y=a.slice(C[h],C[h+1]),I=o.pop();s.push([I,I+y.length-1]),e.splice(I,2,y)}for(s.reverse(),h=-1;++h<s.length;)u[g+s[h][0]]=g+s[h][1],g+=s[h][1]-s[h][0]-1;return u}const Kl={resolve:eo,tokenize:no},Zl={partial:!0,tokenize:to};function eo(e){return nr(e),e}function no(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):D(a)?e.check(Zl,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 to(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),U(e,o,"linePrefix")}function o(l){if(l===null||D(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 tr(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),h):y===null||y===32||y===41||an(y)?n(y):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),S(y))}function h(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"}),p(y))}function p(y){return y===62?(e.exit("chunkString"),e.exit(a),h(y)):y===null||y===60||D(y)?n(y):(e.consume(y),y===92?g:p)}function g(y){return y===60||y===62||y===92?(e.consume(y),p):p(y)}function S(y){return!f&&(y===null||y===41||Y(y))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(y)):f<u&&y===40?(e.consume(y),f++,S):y===41?(e.consume(y),f--,S):y===null||y===32||y===40||an(y)?n(y):(e.consume(y),y===92?C:S)}function C(y){return y===40||y===41||y===92?(e.consume(y),S):S(y)}}function rr(e,t,n,r,i,o){const l=this;let a=0,s;return u;function u(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),f}function f(p){return a>999||p===null||p===91||p===93&&!s||p===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):D(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||D(p)||a++>999?(e.exit("chunkString"),f(p)):(e.consume(p),s||(s=!j(p)),p===92?h:c)}function h(p){return p===91||p===92||p===93?(e.consume(p),a++,c):c(p)}}function ir(e,t,n,r,i,o){let l;return a;function a(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),l=h===40?41:h,s):n(h)}function s(h){return h===l?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(o),u(h))}function u(h){return h===l?(e.exit(o),s(l)):h===null?n(h):D(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),U(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===l||h===null||D(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?c:f)}function c(h){return h===l||h===92?(e.consume(h),f):f(h)}}function Qe(e,t){let n;return r;function r(i){return D(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):j(i)?U(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const ro={name:"definition",tokenize:lo},io={partial:!0,tokenize:oo};function lo(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return rr.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=he(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),s):n(p)}function s(p){return Y(p)?Qe(e,u)(p):u(p)}function u(p){return tr(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(io,c,c)(p)}function c(p){return j(p)?U(e,h,"whitespace")(p):h(p)}function h(p){return p===null||D(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function oo(e,t,n){return r;function r(a){return Y(a)?Qe(e,i)(a):n(a)}function i(a){return ir(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return j(a)?U(e,l,"whitespace")(a):l(a)}function l(a){return a===null||D(a)?t(a):n(a)}}const ao={name:"hardBreakEscape",tokenize:uo};function uo(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return D(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const so={name:"headingAtx",resolve:co,tokenize:fo};function co(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 fo(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||Y(f)?(e.exit("atxHeadingSequence"),a(f)):n(f)}function a(f){return f===35?(e.enter("atxHeadingSequence"),s(f)):f===null||D(f)?(e.exit("atxHeading"),t(f)):j(f)?U(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||Y(f)?(e.exit("atxHeadingText"),a(f)):(e.consume(f),u)}}const po=["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"],lr=["pre","script","style","textarea"],ho={concrete:!0,name:"htmlFlow",resolveTo:yo,tokenize:ko},mo={partial:!0,tokenize:bo},go={partial:!0,tokenize:xo};function yo(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 ko(e,t,n){const r=this;let i,o,l,a,s;return u;function u(m){return f(m)}function f(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),c}function c(m){return m===33?(e.consume(m),h):m===47?(e.consume(m),o=!0,S):m===63?(e.consume(m),i=3,r.interrupt?t:d):te(m)?(e.consume(m),l=String.fromCharCode(m),C):n(m)}function h(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=0,g):te(m)?(e.consume(m),i=4,r.interrupt?t:d):n(m)}function p(m){return m===45?(e.consume(m),r.interrupt?t:d):n(m)}function g(m){const W="CDATA[";return m===W.charCodeAt(a++)?(e.consume(m),a===W.length?r.interrupt?t:_:g):n(m)}function S(m){return te(m)?(e.consume(m),l=String.fromCharCode(m),C):n(m)}function C(m){if(m===null||m===47||m===62||Y(m)){const W=m===47,pe=l.toLowerCase();return!W&&!o&&lr.includes(pe)?(i=1,r.interrupt?t(m):_(m)):po.includes(l.toLowerCase())?(i=6,W?(e.consume(m),y):r.interrupt?t(m):_(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(m):o?I(m):E(m))}return m===45||ne(m)?(e.consume(m),l+=String.fromCharCode(m),C):n(m)}function y(m){return m===62?(e.consume(m),r.interrupt?t:_):n(m)}function I(m){return j(m)?(e.consume(m),I):k(m)}function E(m){return m===47?(e.consume(m),k):m===58||m===95||te(m)?(e.consume(m),L):j(m)?(e.consume(m),E):k(m)}function L(m){return m===45||m===46||m===58||m===95||ne(m)?(e.consume(m),L):F(m)}function F(m){return m===61?(e.consume(m),b):j(m)?(e.consume(m),F):E(m)}function b(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),s=m,N):j(m)?(e.consume(m),b):H(m)}function N(m){return m===s?(e.consume(m),s=null,B):m===null||D(m)?n(m):(e.consume(m),N)}function H(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||Y(m)?F(m):(e.consume(m),H)}function B(m){return m===47||m===62||j(m)?E(m):n(m)}function k(m){return m===62?(e.consume(m),P):n(m)}function P(m){return m===null||D(m)?_(m):j(m)?(e.consume(m),P):n(m)}function _(m){return m===45&&i===2?(e.consume(m),V):m===60&&i===1?(e.consume(m),J):m===62&&i===4?(e.consume(m),w):m===63&&i===3?(e.consume(m),d):m===93&&i===5?(e.consume(m),fe):D(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(mo,z,$)(m)):m===null||D(m)?(e.exit("htmlFlowData"),$(m)):(e.consume(m),_)}function $(m){return e.check(go,R,z)(m)}function R(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),v}function v(m){return m===null||D(m)?$(m):(e.enter("htmlFlowData"),_(m))}function V(m){return m===45?(e.consume(m),d):_(m)}function J(m){return m===47?(e.consume(m),l="",oe):_(m)}function oe(m){if(m===62){const W=l.toLowerCase();return lr.includes(W)?(e.consume(m),w):_(m)}return te(m)&&l.length<8?(e.consume(m),l+=String.fromCharCode(m),oe):_(m)}function fe(m){return m===93?(e.consume(m),d):_(m)}function d(m){return m===62?(e.consume(m),w):m===45&&i===2?(e.consume(m),d):_(m)}function w(m){return m===null||D(m)?(e.exit("htmlFlowData"),z(m)):(e.consume(m),w)}function z(m){return e.exit("htmlFlow"),t(m)}}function xo(e,t,n){const r=this;return i;function i(l){return D(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 bo(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Xe,t,n)}}const wo={name:"htmlText",tokenize:So};function So(e,t,n){const r=this;let i,o,l;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),s}function s(d){return d===33?(e.consume(d),u):d===47?(e.consume(d),F):d===63?(e.consume(d),E):te(d)?(e.consume(d),H):n(d)}function u(d){return d===45?(e.consume(d),f):d===91?(e.consume(d),o=0,g):te(d)?(e.consume(d),I):n(d)}function f(d){return d===45?(e.consume(d),p):n(d)}function c(d){return d===null?n(d):d===45?(e.consume(d),h):D(d)?(l=c,J(d)):(e.consume(d),c)}function h(d){return d===45?(e.consume(d),p):c(d)}function p(d){return d===62?V(d):d===45?h(d):c(d)}function g(d){const w="CDATA[";return d===w.charCodeAt(o++)?(e.consume(d),o===w.length?S:g):n(d)}function S(d){return d===null?n(d):d===93?(e.consume(d),C):D(d)?(l=S,J(d)):(e.consume(d),S)}function C(d){return d===93?(e.consume(d),y):S(d)}function y(d){return d===62?V(d):d===93?(e.consume(d),y):S(d)}function I(d){return d===null||d===62?V(d):D(d)?(l=I,J(d)):(e.consume(d),I)}function E(d){return d===null?n(d):d===63?(e.consume(d),L):D(d)?(l=E,J(d)):(e.consume(d),E)}function L(d){return d===62?V(d):E(d)}function F(d){return te(d)?(e.consume(d),b):n(d)}function b(d){return d===45||ne(d)?(e.consume(d),b):N(d)}function N(d){return D(d)?(l=N,J(d)):j(d)?(e.consume(d),N):V(d)}function H(d){return d===45||ne(d)?(e.consume(d),H):d===47||d===62||Y(d)?B(d):n(d)}function B(d){return d===47?(e.consume(d),V):d===58||d===95||te(d)?(e.consume(d),k):D(d)?(l=B,J(d)):j(d)?(e.consume(d),B):V(d)}function k(d){return d===45||d===46||d===58||d===95||ne(d)?(e.consume(d),k):P(d)}function P(d){return d===61?(e.consume(d),_):D(d)?(l=P,J(d)):j(d)?(e.consume(d),P):B(d)}function _(d){return d===null||d===60||d===61||d===62||d===96?n(d):d===34||d===39?(e.consume(d),i=d,$):D(d)?(l=_,J(d)):j(d)?(e.consume(d),_):(e.consume(d),R)}function $(d){return d===i?(e.consume(d),i=void 0,v):d===null?n(d):D(d)?(l=$,J(d)):(e.consume(d),$)}function R(d){return d===null||d===34||d===39||d===60||d===61||d===96?n(d):d===47||d===62||Y(d)?B(d):(e.consume(d),R)}function v(d){return d===47||d===62||Y(d)?B(d):n(d)}function V(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),t):n(d)}function J(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),oe}function oe(d){return j(d)?U(e,fe,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):fe(d)}function fe(d){return e.enter("htmlTextData"),l(d)}}const Bn={name:"labelEnd",resolveAll:Io,resolveTo:Ao,tokenize:vo},Co={tokenize:Po},Eo={tokenize:_o},To={tokenize:Ro};function Io(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 Ao(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=ce(a,e.slice(o+1,o+r+3)),a=ce(a,[["enter",f,t]]),a=ce(a,sn(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),a=ce(a,[["exit",f,t],e[l-2],e[l-1],["exit",u,t]]),a=ce(a,e.slice(l+1)),a=ce(a,[["exit",s,t]]),ue(e,o,e.length,a),e}function vo(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(h){return o?o._inactive?c(h):(l=r.parser.defined.includes(he(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),s):n(h)}function s(h){return h===40?e.attempt(Co,f,l?f:c)(h):h===91?e.attempt(Eo,f,l?u:c)(h):l?f(h):c(h)}function u(h){return e.attempt(To,f,c)(h)}function f(h){return t(h)}function c(h){return o._balanced=!0,n(h)}}function Po(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 Y(c)?Qe(e,o)(c):o(c)}function o(c){return c===41?f(c):tr(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function l(c){return Y(c)?Qe(e,s)(c):f(c)}function a(c){return n(c)}function s(c){return c===34||c===39||c===40?ir(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):f(c)}function u(c){return Y(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 _o(e,t,n){const r=this;return i;function i(a){return rr.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(he(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function Ro(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 Do={name:"labelStartImage",resolveAll:Bn.resolveAll,tokenize:zo};function zo(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 Lo={name:"labelStartLink",resolveAll:Bn.resolveAll,tokenize:Fo};function Fo(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 qn={name:"lineEnding",tokenize:Oo};function Oo(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),U(e,t,"linePrefix")}}const cn={name:"thematicBreak",tokenize:Mo};function Mo(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||D(u))?(e.exit("thematicBreak"),t(u)):n(u)}function s(u){return u===i?(e.consume(u),r++,s):(e.exit("thematicBreakSequence"),j(u)?U(e,a,"whitespace")(u):a(u))}}const le={continuation:{tokenize:qo},exit:Ho,name:"list",tokenize:Bo},No={partial:!0,tokenize:$o},jo={partial:!0,tokenize:Uo};function Bo(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(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Mn(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(cn,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(p)}return n(p)}function s(p){return Mn(p)&&++l<10?(e.consume(p),s):(!r.interrupt||l<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Xe,r.interrupt?n:f,e.attempt(No,h,c))}function f(p){return r.containerState.initialBlankLine=!0,o++,h(p)}function c(p){return j(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):n(p)}function h(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function qo(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Xe,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,U(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!j(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,U(e,e.attempt(le,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Uo(e,t,n){const r=this;return U(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 Ho(e){e.exit(this.containerState.type)}function $o(e,t,n){const r=this;return U(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!j(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const or={name:"setextUnderline",resolveTo:Vo,tokenize:Wo};function Vo(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 Wo(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"),j(u)?U(e,s,"lineSuffix")(u):s(u))}function s(u){return u===null||D(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Yo={tokenize:Xo};function Xo(e){const t=this,n=e.attempt(Xe,r,e.attempt(this.parser.constructs.flowInitial,i,U(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Kl,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 Go={resolveAll:ur()},Qo=ar("string"),Jo=ar("text");function ar(e){return{resolveAll:ur(e==="text"?Ko: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 h=-1;if(c)for(;++h<c.length;){const p=c[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function 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 Ko(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 Zo=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:ro},disable:{null:[]},document:{42:le,43:le,45:le,48:le,49:le,50:le,51:le,52:le,53:le,54:le,55:le,56:le,57:le,62:Qt},flow:{35:so,42:cn,45:[or,cn],60:ho,61:or,95:cn,96:er,126:er},flowInitial:{[-2]:jn,[-1]:jn,32:jn},insideSpan:{null:[Nn,Go]},string:{38:Kt,92:Jt},text:{[-5]:qn,[-4]:qn,[-3]:qn,33:Do,38:Kt,42:Nn,60:[zl,wo],91:Lo,92:[ao,Jt],93:Bn,95:Nn,96:Wl}},Symbol.toStringTag,{value:"Module"}));function ea(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(F),check:N(b),consume:I,enter:E,exit:L,interrupt:N(b,{interrupt:!0})},u={code:null,containerState:{},defineSkip:S,events:[],now:g,parser:e,previous:null,sliceSerialize:h,sliceStream:p,write:c};let f=t.tokenize.call(u,s);return t.resolveAll&&o.push(t),u;function c(P){return l=ce(l,P),C(),l[l.length-1]!==null?[]:(H(t,0),u.events=sn(o,u.events,u),u.events)}function h(P,_){return ta(p(P),_)}function p(P){return na(l,P)}function g(){const{_bufferIndex:P,_index:_,line:$,column:R,offset:v}=r;return{_bufferIndex:P,_index:_,line:$,column:R,offset:v}}function S(P){i[P.line]=P.column,k()}function C(){let P;for(;r._index<l.length;){const _=l[r._index];if(typeof _=="string")for(P=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===P&&r._bufferIndex<_.length;)y(_.charCodeAt(r._bufferIndex));else y(_)}}function y(P){f=f(P)}function I(P){D(P)?(r.line++,r.column=1,r.offset+=P===-3?2:1,k()):P!==-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=P}function E(P,_){const $=_||{};return $.type=P,$.start=g(),u.events.push(["enter",$,u]),a.push($),$}function L(P){const _=a.pop();return _.end=g(),u.events.push(["exit",_,u]),_}function F(P,_){H(P,_.from)}function b(P,_){_.restore()}function N(P,_){return $;function $(R,v,V){let J,oe,fe,d;return Array.isArray(R)?z(R):"tokenize"in R?z([R]):w(R);function w(K){return Q;function Q(re){const ke=re!==null&&K[re],Ie=re!==null&&K.null,bn=[...Array.isArray(ke)?ke:ke?[ke]:[],...Array.isArray(Ie)?Ie:Ie?[Ie]:[]];return z(bn)(re)}}function z(K){return J=K,oe=0,K.length===0?V:m(K[oe])}function m(K){return Q;function Q(re){return d=B(),fe=K,K.partial||(u.currentConstruct=K),K.name&&u.parser.constructs.disable.null.includes(K.name)?pe():K.tokenize.call(_?Object.assign(Object.create(u),_):u,s,W,pe)(re)}}function W(K){return P(fe,d),v}function pe(K){return d.restore(),++oe<J.length?m(J[oe]):V}}}function H(P,_){P.resolveAll&&!o.includes(P)&&o.push(P),P.resolve&&ue(u.events,_,u.events.length-_,P.resolve(u.events.slice(_),u)),P.resolveTo&&(u.events=P.resolveTo(u.events,u))}function B(){const P=g(),_=u.previous,$=u.currentConstruct,R=u.events.length,v=Array.from(a);return{from:R,restore:V};function V(){r=P,u.previous=_,u.currentConstruct=$,u.events.length=R,a=v,k()}}function k(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function na(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=`
|
|
14
14
|
`;break}case-3:{l=`\r
|
|
15
|
-
`;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 ra(e){const r={constructs:Wt([Zo,...(e||{}).extensions||[]]),content:i(Il),defined:[],document:i(vl),flow:i(Yo),lazy:{},string:i(Qo),text:i(Jo)};return r;function i(o){return l;function l(a){return ea(r,o,a)}}}function ia(e){for(;!nr(e););return e}const sr=/[\0\t\n\r]/g;function la(){let e=1,t="",n=!0,r;return i;function i(o,l,a){const s=[];let u,f,c,h,p;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(sr.lastIndex=c,u=sr.exec(o),h=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(h),!u){t=o.slice(c);break}if(p===10&&c===h&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<h&&(s.push(o.slice(c,h)),e+=h-c),p){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=h+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const oa=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function aa(e){return e.replace(oa,ua)}function ua(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Yt(n.slice(o?2:1),o?16:10)}return On(n)||e}const cr={}.hasOwnProperty;function sa(e,t,n){return typeof t!="string"&&(n=t,t=void 0),ca(n)(ia(ra(n).document().write(la()(e,t,!0))))}function ca(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(wi),autolinkProtocol:B,autolinkEmail:B,atxHeading:o(ki),blockQuote:o(Ie),characterEscape:B,characterReference:B,codeFenced:o(bn),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(bn,l),codeText:o(rf,l),codeTextData:B,data:B,codeFlowValue:B,definition:o(lf),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(of),hardBreakEscape:o(xi),hardBreakTrailing:o(xi),htmlFlow:o(bi,l),htmlFlowData:B,htmlText:o(bi,l),htmlTextData:B,image:o(af),label:l,link:o(wi),listItem:o(uf),listItemValue:h,listOrdered:o(Si,c),listUnordered:o(Si),paragraph:o(sf),reference:m,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(ki),strong:o(cf),thematicBreak:o(pf)},exit:{atxHeading:s(),atxHeadingSequence:F,autolink:s(),autolinkEmail:ke,autolinkProtocol:re,blockQuote:s(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:pe,characterReferenceMarkerNumeric:pe,characterReferenceValue:K,characterReference:Q,codeFenced:s(C),codeFencedFence:S,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:k,codeIndented:s(y),codeText:s(v),codeTextData:k,data:k,definition:s(),definitionDestinationString:L,definitionLabelString:I,definitionTitleString:E,emphasis:s(),hardBreakEscape:s(_),hardBreakTrailing:s(_),htmlFlow:s($),htmlFlowData:k,htmlText:s(R),htmlTextData:k,image:s(J),label:fe,labelText:oe,lineEnding:P,link:s(V),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:W,resourceDestinationString:d,resourceTitleString:w,resource:z,setextHeading:s(H),setextHeadingLineSequence:N,setextHeadingText:b,strong:s(),thematicBreak:s()}};fr(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(x){let A={type:"root",children:[]};const O={stack:[A],tokenStack:[],config:t,enter:a,exit:u,buffer:l,resume:f,data:n},q=[];let X=-1;for(;++X<x.length;)if(x[X][1].type==="listOrdered"||x[X][1].type==="listUnordered")if(x[X][0]==="enter")q.push(X);else{const me=q.pop();X=i(x,me,X)}for(X=-1;++X<x.length;){const me=t[x[X][0]];cr.call(me,x[X][1].type)&&me[x[X][1].type].call(Object.assign({sliceSerialize:x[X][2].sliceSerialize},O),x[X][1])}if(O.tokenStack.length>0){const me=O.tokenStack[O.tokenStack.length-1];(me[1]||pr).call(O,void 0,me[0])}for(A.position={start:Ee(x.length>0?x[0][1].start:{line:1,column:1,offset:0}),end:Ee(x.length>0?x[x.length-2][1].end:{line:1,column:1,offset:0})},X=-1;++X<t.transforms.length;)A=t.transforms[X](A)||A;return A}function i(x,A,O){let q=A-1,X=-1,me=!1,De,be,rn,ln;for(;++q<=O;){const se=x[q];switch(se[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{se[0]==="enter"?X++:X--,ln=void 0;break}case"lineEndingBlank":{se[0]==="enter"&&(De&&!ln&&!X&&!rn&&(rn=q),ln=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ln=void 0}if(!X&&se[0]==="enter"&&se[1].type==="listItemPrefix"||X===-1&&se[0]==="exit"&&(se[1].type==="listUnordered"||se[1].type==="listOrdered")){if(De){let Be=q;for(be=void 0;Be--;){const we=x[Be];if(we[1].type==="lineEnding"||we[1].type==="lineEndingBlank"){if(we[0]==="exit")continue;be&&(x[be][1].type="lineEndingBlank",me=!0),we[1].type="lineEnding",be=Be}else if(!(we[1].type==="linePrefix"||we[1].type==="blockQuotePrefix"||we[1].type==="blockQuotePrefixWhitespace"||we[1].type==="blockQuoteMarker"||we[1].type==="listItemIndent"))break}rn&&(!be||rn<be)&&(De._spread=!0),De.end=Object.assign({},be?x[be][1].start:se[1].end),x.splice(be||q,0,["exit",De,se[2]]),q++,O++}if(se[1].type==="listItemPrefix"){const Be={type:"listItem",_spread:!1,start:Object.assign({},se[1].start),end:void 0};De=Be,x.splice(q,0,["enter",Be,se[2]]),q++,O++,rn=void 0,ln=!0}}}return x[A][1]._spread=me,O}function o(x,A){return O;function O(q){a.call(this,x(q),q),A&&A.call(this,q)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(x,A,O){this.stack[this.stack.length-1].children.push(x),this.stack.push(x),this.tokenStack.push([A,O||void 0]),x.position={start:Ee(A.start),end:void 0}}function s(x){return A;function A(O){x&&x.call(this,O),u.call(this,O)}}function u(x,A){const O=this.stack.pop(),q=this.tokenStack.pop();if(q)q[0].type!==x.type&&(A?A.call(this,x,q[0]):(q[1]||pr).call(this,x,q[0]));else throw new Error("Cannot close `"+x.type+"` ("+We({start:x.start,end:x.end})+"): it’s not open");O.position.end=Ee(x.end)}function f(){return Fn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(x){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(x),10),this.data.expectingFirstListItemValue=void 0}}function p(){const x=this.resume(),A=this.stack[this.stack.length-1];A.lang=x}function g(){const x=this.resume(),A=this.stack[this.stack.length-1];A.meta=x}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x.replace(/(\r?\n|\r)$/g,"")}function I(x){const A=this.resume(),O=this.stack[this.stack.length-1];O.label=A,O.identifier=he(this.sliceSerialize(x)).toLowerCase()}function E(){const x=this.resume(),A=this.stack[this.stack.length-1];A.title=x}function L(){const x=this.resume(),A=this.stack[this.stack.length-1];A.url=x}function F(x){const A=this.stack[this.stack.length-1];if(!A.depth){const O=this.sliceSerialize(x).length;A.depth=O}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function N(x){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(x).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function B(x){const O=this.stack[this.stack.length-1].children;let q=O[O.length-1];(!q||q.type!=="text")&&(q=ff(),q.position={start:Ee(x.start),end:void 0},O.push(q)),this.stack.push(q)}function k(x){const A=this.stack.pop();A.value+=this.sliceSerialize(x),A.position.end=Ee(x.end)}function P(x){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const O=A.children[A.children.length-1];O.position.end=Ee(x.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(A.type)&&(B.call(this,x),k.call(this,x))}function _(){this.data.atHardBreak=!0}function $(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x}function R(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x}function v(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x}function V(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=A,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function J(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=A,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function oe(x){const A=this.sliceSerialize(x),O=this.stack[this.stack.length-2];O.label=aa(A),O.identifier=he(A).toLowerCase()}function fe(){const x=this.stack[this.stack.length-1],A=this.resume(),O=this.stack[this.stack.length-1];if(this.data.inReference=!0,O.type==="link"){const q=x.children;O.children=q}else O.alt=A}function d(){const x=this.resume(),A=this.stack[this.stack.length-1];A.url=x}function w(){const x=this.resume(),A=this.stack[this.stack.length-1];A.title=x}function z(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function W(x){const A=this.resume(),O=this.stack[this.stack.length-1];O.label=A,O.identifier=he(this.sliceSerialize(x)).toLowerCase(),this.data.referenceType="full"}function pe(x){this.data.characterReferenceType=x.type}function K(x){const A=this.sliceSerialize(x),O=this.data.characterReferenceType;let q;O?(q=Yt(A,O==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):q=On(A);const X=this.stack[this.stack.length-1];X.value+=q}function Q(x){const A=this.stack.pop();A.position.end=Ee(x.end)}function re(x){k.call(this,x);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(x)}function ke(x){k.call(this,x);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(x)}function Ie(){return{type:"blockquote",children:[]}}function bn(){return{type:"code",lang:null,meta:null,value:""}}function rf(){return{type:"inlineCode",value:""}}function lf(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function of(){return{type:"emphasis",children:[]}}function ki(){return{type:"heading",depth:0,children:[]}}function xi(){return{type:"break"}}function bi(){return{type:"html",value:""}}function af(){return{type:"image",title:null,url:"",alt:null}}function wi(){return{type:"link",title:null,url:"",children:[]}}function Si(x){return{type:"list",ordered:x.type==="listOrdered",start:null,spread:x._spread,children:[]}}function uf(x){return{type:"listItem",spread:x._spread,checked:null,children:[]}}function sf(){return{type:"paragraph",children:[]}}function cf(){return{type:"strong",children:[]}}function ff(){return{type:"text",value:""}}function pf(){return{type:"thematicBreak"}}}function Ee(e){return{line:e.line,column:e.column,offset:e.offset}}function fr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?fr(e,r):fa(e,r)}}function fa(e,t){let n;for(n in t)if(cr.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 pr(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+We({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+We({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+We({start:t.start,end:t.end})+") is still open")}function pa(e){const t=this;t.parser=n;function n(r){return sa(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ha(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 ma(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
15
|
+
`;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 ra(e){const r={constructs:Wt([Zo,...(e||{}).extensions||[]]),content:i(Il),defined:[],document:i(vl),flow:i(Yo),lazy:{},string:i(Qo),text:i(Jo)};return r;function i(o){return l;function l(a){return ea(r,o,a)}}}function ia(e){for(;!nr(e););return e}const sr=/[\0\t\n\r]/g;function la(){let e=1,t="",n=!0,r;return i;function i(o,l,a){const s=[];let u,f,c,h,p;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(sr.lastIndex=c,u=sr.exec(o),h=u&&u.index!==void 0?u.index:o.length,p=o.charCodeAt(h),!u){t=o.slice(c);break}if(p===10&&c===h&&r)s.push(-3),r=void 0;else switch(r&&(s.push(-5),r=void 0),c<h&&(s.push(o.slice(c,h)),e+=h-c),p){case 0:{s.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,s.push(-2);e++<f;)s.push(-1);break}case 10:{s.push(-4),e=1;break}default:r=!0,e=1}c=h+1}return a&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}const oa=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function aa(e){return e.replace(oa,ua)}function ua(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return Yt(n.slice(o?2:1),o?16:10)}return On(n)||e}const cr={}.hasOwnProperty;function sa(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),ca(n)(ia(ra(n).document().write(la()(e,t,!0))))}function ca(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(wi),autolinkProtocol:B,autolinkEmail:B,atxHeading:o(ki),blockQuote:o(Ie),characterEscape:B,characterReference:B,codeFenced:o(bn),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(bn,l),codeText:o(rf,l),codeTextData:B,data:B,codeFlowValue:B,definition:o(lf),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(of),hardBreakEscape:o(xi),hardBreakTrailing:o(xi),htmlFlow:o(bi,l),htmlFlowData:B,htmlText:o(bi,l),htmlTextData:B,image:o(af),label:l,link:o(wi),listItem:o(uf),listItemValue:h,listOrdered:o(Si,c),listUnordered:o(Si),paragraph:o(sf),reference:m,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(ki),strong:o(cf),thematicBreak:o(pf)},exit:{atxHeading:s(),atxHeadingSequence:F,autolink:s(),autolinkEmail:ke,autolinkProtocol:re,blockQuote:s(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:pe,characterReferenceMarkerNumeric:pe,characterReferenceValue:K,characterReference:Q,codeFenced:s(C),codeFencedFence:S,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:k,codeIndented:s(y),codeText:s(v),codeTextData:k,data:k,definition:s(),definitionDestinationString:L,definitionLabelString:I,definitionTitleString:E,emphasis:s(),hardBreakEscape:s(_),hardBreakTrailing:s(_),htmlFlow:s($),htmlFlowData:k,htmlText:s(R),htmlTextData:k,image:s(J),label:fe,labelText:oe,lineEnding:P,link:s(V),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:W,resourceDestinationString:d,resourceTitleString:w,resource:z,setextHeading:s(H),setextHeadingLineSequence:N,setextHeadingText:b,strong:s(),thematicBreak:s()}};fr(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(x){let A={type:"root",children:[]};const O={stack:[A],tokenStack:[],config:t,enter:a,exit:u,buffer:l,resume:f,data:n},q=[];let X=-1;for(;++X<x.length;)if(x[X][1].type==="listOrdered"||x[X][1].type==="listUnordered")if(x[X][0]==="enter")q.push(X);else{const me=q.pop();X=i(x,me,X)}for(X=-1;++X<x.length;){const me=t[x[X][0]];cr.call(me,x[X][1].type)&&me[x[X][1].type].call(Object.assign({sliceSerialize:x[X][2].sliceSerialize},O),x[X][1])}if(O.tokenStack.length>0){const me=O.tokenStack[O.tokenStack.length-1];(me[1]||pr).call(O,void 0,me[0])}for(A.position={start:Ee(x.length>0?x[0][1].start:{line:1,column:1,offset:0}),end:Ee(x.length>0?x[x.length-2][1].end:{line:1,column:1,offset:0})},X=-1;++X<t.transforms.length;)A=t.transforms[X](A)||A;return A}function i(x,A,O){let q=A-1,X=-1,me=!1,De,be,rn,ln;for(;++q<=O;){const se=x[q];switch(se[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{se[0]==="enter"?X++:X--,ln=void 0;break}case"lineEndingBlank":{se[0]==="enter"&&(De&&!ln&&!X&&!rn&&(rn=q),ln=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ln=void 0}if(!X&&se[0]==="enter"&&se[1].type==="listItemPrefix"||X===-1&&se[0]==="exit"&&(se[1].type==="listUnordered"||se[1].type==="listOrdered")){if(De){let Be=q;for(be=void 0;Be--;){const we=x[Be];if(we[1].type==="lineEnding"||we[1].type==="lineEndingBlank"){if(we[0]==="exit")continue;be&&(x[be][1].type="lineEndingBlank",me=!0),we[1].type="lineEnding",be=Be}else if(!(we[1].type==="linePrefix"||we[1].type==="blockQuotePrefix"||we[1].type==="blockQuotePrefixWhitespace"||we[1].type==="blockQuoteMarker"||we[1].type==="listItemIndent"))break}rn&&(!be||rn<be)&&(De._spread=!0),De.end=Object.assign({},be?x[be][1].start:se[1].end),x.splice(be||q,0,["exit",De,se[2]]),q++,O++}if(se[1].type==="listItemPrefix"){const Be={type:"listItem",_spread:!1,start:Object.assign({},se[1].start),end:void 0};De=Be,x.splice(q,0,["enter",Be,se[2]]),q++,O++,rn=void 0,ln=!0}}}return x[A][1]._spread=me,O}function o(x,A){return O;function O(q){a.call(this,x(q),q),A&&A.call(this,q)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(x,A,O){this.stack[this.stack.length-1].children.push(x),this.stack.push(x),this.tokenStack.push([A,O||void 0]),x.position={start:Ee(A.start),end:void 0}}function s(x){return A;function A(O){x&&x.call(this,O),u.call(this,O)}}function u(x,A){const O=this.stack.pop(),q=this.tokenStack.pop();if(q)q[0].type!==x.type&&(A?A.call(this,x,q[0]):(q[1]||pr).call(this,x,q[0]));else throw new Error("Cannot close `"+x.type+"` ("+We({start:x.start,end:x.end})+"): it’s not open");O.position.end=Ee(x.end)}function f(){return Fn(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function h(x){if(this.data.expectingFirstListItemValue){const A=this.stack[this.stack.length-2];A.start=Number.parseInt(this.sliceSerialize(x),10),this.data.expectingFirstListItemValue=void 0}}function p(){const x=this.resume(),A=this.stack[this.stack.length-1];A.lang=x}function g(){const x=this.resume(),A=this.stack[this.stack.length-1];A.meta=x}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function C(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function y(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x.replace(/(\r?\n|\r)$/g,"")}function I(x){const A=this.resume(),O=this.stack[this.stack.length-1];O.label=A,O.identifier=he(this.sliceSerialize(x)).toLowerCase()}function E(){const x=this.resume(),A=this.stack[this.stack.length-1];A.title=x}function L(){const x=this.resume(),A=this.stack[this.stack.length-1];A.url=x}function F(x){const A=this.stack[this.stack.length-1];if(!A.depth){const O=this.sliceSerialize(x).length;A.depth=O}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function N(x){const A=this.stack[this.stack.length-1];A.depth=this.sliceSerialize(x).codePointAt(0)===61?1:2}function H(){this.data.setextHeadingSlurpLineEnding=void 0}function B(x){const O=this.stack[this.stack.length-1].children;let q=O[O.length-1];(!q||q.type!=="text")&&(q=ff(),q.position={start:Ee(x.start),end:void 0},O.push(q)),this.stack.push(q)}function k(x){const A=this.stack.pop();A.value+=this.sliceSerialize(x),A.position.end=Ee(x.end)}function P(x){const A=this.stack[this.stack.length-1];if(this.data.atHardBreak){const O=A.children[A.children.length-1];O.position.end=Ee(x.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(A.type)&&(B.call(this,x),k.call(this,x))}function _(){this.data.atHardBreak=!0}function $(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x}function R(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x}function v(){const x=this.resume(),A=this.stack[this.stack.length-1];A.value=x}function V(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=A,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function J(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const A=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=A,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function oe(x){const A=this.sliceSerialize(x),O=this.stack[this.stack.length-2];O.label=aa(A),O.identifier=he(A).toLowerCase()}function fe(){const x=this.stack[this.stack.length-1],A=this.resume(),O=this.stack[this.stack.length-1];if(this.data.inReference=!0,O.type==="link"){const q=x.children;O.children=q}else O.alt=A}function d(){const x=this.resume(),A=this.stack[this.stack.length-1];A.url=x}function w(){const x=this.resume(),A=this.stack[this.stack.length-1];A.title=x}function z(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function W(x){const A=this.resume(),O=this.stack[this.stack.length-1];O.label=A,O.identifier=he(this.sliceSerialize(x)).toLowerCase(),this.data.referenceType="full"}function pe(x){this.data.characterReferenceType=x.type}function K(x){const A=this.sliceSerialize(x),O=this.data.characterReferenceType;let q;O?(q=Yt(A,O==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):q=On(A);const X=this.stack[this.stack.length-1];X.value+=q}function Q(x){const A=this.stack.pop();A.position.end=Ee(x.end)}function re(x){k.call(this,x);const A=this.stack[this.stack.length-1];A.url=this.sliceSerialize(x)}function ke(x){k.call(this,x);const A=this.stack[this.stack.length-1];A.url="mailto:"+this.sliceSerialize(x)}function Ie(){return{type:"blockquote",children:[]}}function bn(){return{type:"code",lang:null,meta:null,value:""}}function rf(){return{type:"inlineCode",value:""}}function lf(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function of(){return{type:"emphasis",children:[]}}function ki(){return{type:"heading",depth:0,children:[]}}function xi(){return{type:"break"}}function bi(){return{type:"html",value:""}}function af(){return{type:"image",title:null,url:"",alt:null}}function wi(){return{type:"link",title:null,url:"",children:[]}}function Si(x){return{type:"list",ordered:x.type==="listOrdered",start:null,spread:x._spread,children:[]}}function uf(x){return{type:"listItem",spread:x._spread,checked:null,children:[]}}function sf(){return{type:"paragraph",children:[]}}function cf(){return{type:"strong",children:[]}}function ff(){return{type:"text",value:""}}function pf(){return{type:"thematicBreak"}}}function Ee(e){return{line:e.line,column:e.column,offset:e.offset}}function fr(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?fr(e,r):fa(e,r)}}function fa(e,t){let n;for(n in t)if(cr.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 pr(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+We({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+We({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+We({start:t.start,end:t.end})+") is still open")}function pa(e){const t=this;t.parser=n;function n(r){return sa(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function ha(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 ma(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
|
|
16
16
|
`}]}function da(e,t){const n=t.value?t.value+`
|
|
17
17
|
`:"",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 ga(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ya(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ka(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Oe(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 xa(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 ba(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function hr(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 wa(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return hr(e,t);const i={src:Oe(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 Sa(e,t){const n={src:Oe(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 Ca(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 Ea(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return hr(e,t);const i={href:Oe(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 Ta(e,t){const n={href:Oe(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 Ia(e,t,n){const r=e.all(t),i=n?Aa(n):mr(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:`
|
|
18
18
|
`}),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:`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@object-ui/plugin-markdown",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Markdown rendering plugin for Object UI, powered by react-markdown",
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
"react-markdown": "^10.1.0",
|
|
28
28
|
"rehype-sanitize": "^6.0.0",
|
|
29
29
|
"remark-gfm": "^4.0.1",
|
|
30
|
-
"@object-ui/components": "3.
|
|
31
|
-
"@object-ui/core": "3.
|
|
32
|
-
"@object-ui/react": "3.
|
|
33
|
-
"@object-ui/types": "3.
|
|
30
|
+
"@object-ui/components": "3.1.1",
|
|
31
|
+
"@object-ui/core": "3.1.1",
|
|
32
|
+
"@object-ui/react": "3.1.1",
|
|
33
|
+
"@object-ui/types": "3.1.1"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": "^18.0.0 || ^19.0.0",
|
|
37
37
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@types/react": "19.2.
|
|
40
|
+
"@types/react": "19.2.14",
|
|
41
41
|
"@types/react-dom": "19.2.3",
|
|
42
42
|
"@vitejs/plugin-react": "^5.1.4",
|
|
43
43
|
"typescript": "^5.9.3",
|