markdown-flow-ui
Version:
A React UI library for rendering markdown with interactive flow components, typewriter effects, and plugin support
23 lines • 1.76 MB
JavaScript
"use strict";const Pe=require("react");function wL(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const Cn=wL(Pe);function Gl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function SL(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var r=function n(){var i=!1;try{i=this instanceof n}catch{}return i?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var tf={exports:{}},wc={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var F2;function CL(){if(F2)return wc;F2=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function r(n,i,s){var a=null;if(s!==void 0&&(a=""+s),i.key!==void 0&&(a=""+i.key),"key"in i){s={};for(var o in i)o!=="key"&&(s[o]=i[o])}else s=i;return i=s.ref,{$$typeof:t,type:n,key:a,ref:i!==void 0?i:null,props:s}}return wc.Fragment=e,wc.jsx=r,wc.jsxs=r,wc}var Sc={};/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var q2;function _L(){return q2||(q2=1,process.env.NODE_ENV!=="production"&&(function(){function t(_){if(_==null)return null;if(typeof _=="function")return _.$$typeof===$?null:_.displayName||_.name||null;if(typeof _=="string")return _;switch(_){case m:return"Fragment";case b:return"Profiler";case g:return"StrictMode";case S:return"Suspense";case w:return"SuspenseList";case B:return"Activity"}if(typeof _=="object")switch(typeof _.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),_.$$typeof){case p:return"Portal";case k:return(_.displayName||"Context")+".Provider";case O:return(_._context.displayName||"Context")+".Consumer";case C:var G=_.render;return _=_.displayName,_||(_=G.displayName||G.name||"",_=_!==""?"ForwardRef("+_+")":"ForwardRef"),_;case E:return G=_.displayName||null,G!==null?G:t(_.type)||"Memo";case P:G=_._payload,_=_._init;try{return t(_(G))}catch{}}return null}function e(_){return""+_}function r(_){try{e(_);var G=!1}catch{G=!0}if(G){G=console;var j=G.error,M=typeof Symbol=="function"&&Symbol.toStringTag&&_[Symbol.toStringTag]||_.constructor.name||"Object";return j.call(G,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",M),e(_)}}function n(_){if(_===m)return"<>";if(typeof _=="object"&&_!==null&&_.$$typeof===P)return"<...>";try{var G=t(_);return G?"<"+G+">":"<...>"}catch{return"<...>"}}function i(){var _=R.A;return _===null?null:_.getOwner()}function s(){return Error("react-stack-top-frame")}function a(_){if(D.call(_,"key")){var G=Object.getOwnPropertyDescriptor(_,"key").get;if(G&&G.isReactWarning)return!1}return _.key!==void 0}function o(_,G){function j(){Q||(Q=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",G))}j.isReactWarning=!0,Object.defineProperty(_,"key",{get:j,configurable:!0})}function l(){var _=t(this.type);return X[_]||(X[_]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),_=this.props.ref,_!==void 0?_:null}function c(_,G,j,M,fe,oe,Be,Ae){return j=oe.ref,_={$$typeof:d,type:_,key:G,props:oe,_owner:fe},(j!==void 0?j:null)!==null?Object.defineProperty(_,"ref",{enumerable:!1,get:l}):Object.defineProperty(_,"ref",{enumerable:!1,value:null}),_._store={},Object.defineProperty(_._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(_,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(_,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Be}),Object.defineProperty(_,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ae}),Object.freeze&&(Object.freeze(_.props),Object.freeze(_)),_}function h(_,G,j,M,fe,oe,Be,Ae){var Ye=G.children;if(Ye!==void 0)if(M)if(q(Ye)){for(M=0;M<Ye.length;M++)u(Ye[M]);Object.freeze&&Object.freeze(Ye)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else u(Ye);if(D.call(G,"key")){Ye=t(_);var ut=Object.keys(G).filter(function(Rt){return Rt!=="key"});M=0<ut.length?"{key: someKey, "+ut.join(": ..., ")+": ...}":"{key: someKey}",ee[Ye+M]||(ut=0<ut.length?"{"+ut.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,M,Ye,ut,Ye),ee[Ye+M]=!0)}if(Ye=null,j!==void 0&&(r(j),Ye=""+j),a(G)&&(r(G.key),Ye=""+G.key),"key"in G){j={};for(var je in G)je!=="key"&&(j[je]=G[je])}else j=G;return Ye&&o(j,typeof _=="function"?_.displayName||_.name||"Unknown":_),c(_,Ye,oe,fe,i(),j,Be,Ae)}function u(_){typeof _=="object"&&_!==null&&_.$$typeof===d&&_._store&&(_._store.validated=1)}var f=Pe,d=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),O=Symbol.for("react.consumer"),k=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),R=f.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D=Object.prototype.hasOwnProperty,q=Array.isArray,L=console.createTask?console.createTask:function(){return null};f={react_stack_bottom_frame:function(_){return _()}};var Q,X={},Y=f.react_stack_bottom_frame.bind(f,s)(),z=L(n(s)),ee={};Sc.Fragment=m,Sc.jsx=function(_,G,j,M,fe){var oe=1e4>R.recentlyCreatedOwnerStacks++;return h(_,G,j,!1,M,fe,oe?Error("react-stack-top-frame"):Y,oe?L(n(_)):z)},Sc.jsxs=function(_,G,j,M,fe){var oe=1e4>R.recentlyCreatedOwnerStacks++;return h(_,G,j,!0,M,fe,oe?Error("react-stack-top-frame"):Y,oe?L(n(_)):z)}})()),Sc}var X2;function TL(){return X2||(X2=1,process.env.NODE_ENV==="production"?tf.exports=CL():tf.exports=_L()),tf.exports}var qe=TL();function Z2(t){const e=[],r=String(t||"");let n=r.indexOf(","),i=0,s=!1;for(;!s;){n===-1&&(n=r.length,s=!0);const a=r.slice(i,n).trim();(a||!s)&&e.push(a),i=n+1,n=r.indexOf(",",i)}return e}function EL(t,e){const r={};return(t[t.length-1]===""?[...t,""]:t).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const AL=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ML=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,PL={};function W2(t,e){return(PL.jsx?ML:AL).test(t)}const $L=/[ \t\n\f\r]/g;function RL(t){return typeof t=="object"?t.type==="text"?V2(t.value):!1:V2(t)}function V2(t){return t.replace($L,"")===""}let vu=class{constructor(e,r,n){this.normal=r,this.property=e,n&&(this.space=n)}};vu.prototype.normal={};vu.prototype.property={};vu.prototype.space=void 0;function t3(t,e){const r={},n={};for(const i of t)Object.assign(r,i.property),Object.assign(n,i.normal);return new vu(r,n,e)}function $h(t){return t.toLowerCase()}class Ln{constructor(e,r){this.attribute=r,this.property=e}}Ln.prototype.attribute="";Ln.prototype.booleanish=!1;Ln.prototype.boolean=!1;Ln.prototype.commaOrSpaceSeparated=!1;Ln.prototype.commaSeparated=!1;Ln.prototype.defined=!1;Ln.prototype.mustUseProperty=!1;Ln.prototype.number=!1;Ln.prototype.overloadedBoolean=!1;Ln.prototype.property="";Ln.prototype.spaceSeparated=!1;Ln.prototype.space=void 0;let LL=0;const lt=Eo(),fr=Eo(),a1=Eo(),ce=Eo(),Zt=Eo(),sl=Eo(),Xn=Eo();function Eo(){return 2**++LL}const o1=Object.freeze(Object.defineProperty({__proto__:null,boolean:lt,booleanish:fr,commaOrSpaceSeparated:Xn,commaSeparated:sl,number:ce,overloadedBoolean:a1,spaceSeparated:Zt},Symbol.toStringTag,{value:"Module"})),dm=Object.keys(o1);class YO extends Ln{constructor(e,r,n,i){let s=-1;if(super(e,r),Y2(this,"space",i),typeof n=="number")for(;++s<dm.length;){const a=dm[s];Y2(this,dm[s],(n&o1[a])===o1[a])}}}YO.prototype.defined=!0;function Y2(t,e,r){r&&(t[e]=r)}function jl(t){const e={},r={};for(const[n,i]of Object.entries(t.properties)){const s=new YO(n,t.transform(t.attributes||{},n),i,t.space);t.mustUseProperty&&t.mustUseProperty.includes(n)&&(s.mustUseProperty=!0),e[n]=s,r[$h(n)]=n,r[$h(s.attribute)]=n}return new vu(e,r,t.space)}const r3=jl({properties:{ariaActiveDescendant:null,ariaAtomic:fr,ariaAutoComplete:null,ariaBusy:fr,ariaChecked:fr,ariaColCount:ce,ariaColIndex:ce,ariaColSpan:ce,ariaControls:Zt,ariaCurrent:null,ariaDescribedBy:Zt,ariaDetails:null,ariaDisabled:fr,ariaDropEffect:Zt,ariaErrorMessage:null,ariaExpanded:fr,ariaFlowTo:Zt,ariaGrabbed:fr,ariaHasPopup:null,ariaHidden:fr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Zt,ariaLevel:ce,ariaLive:null,ariaModal:fr,ariaMultiLine:fr,ariaMultiSelectable:fr,ariaOrientation:null,ariaOwns:Zt,ariaPlaceholder:null,ariaPosInSet:ce,ariaPressed:fr,ariaReadOnly:fr,ariaRelevant:null,ariaRequired:fr,ariaRoleDescription:Zt,ariaRowCount:ce,ariaRowIndex:ce,ariaRowSpan:ce,ariaSelected:fr,ariaSetSize:ce,ariaSort:null,ariaValueMax:ce,ariaValueMin:ce,ariaValueNow:ce,ariaValueText:null,role:null},transform(t,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function n3(t,e){return e in t?t[e]:e}function i3(t,e){return n3(t,e.toLowerCase())}const NL=jl({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:sl,acceptCharset:Zt,accessKey:Zt,action:null,allow:null,allowFullScreen:lt,allowPaymentRequest:lt,allowUserMedia:lt,alt:null,as:null,async:lt,autoCapitalize:null,autoComplete:Zt,autoFocus:lt,autoPlay:lt,blocking:Zt,capture:null,charSet:null,checked:lt,cite:null,className:Zt,cols:ce,colSpan:null,content:null,contentEditable:fr,controls:lt,controlsList:Zt,coords:ce|sl,crossOrigin:null,data:null,dateTime:null,decoding:null,default:lt,defer:lt,dir:null,dirName:null,disabled:lt,download:a1,draggable:fr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:lt,formTarget:null,headers:Zt,height:ce,hidden:a1,high:ce,href:null,hrefLang:null,htmlFor:Zt,httpEquiv:Zt,id:null,imageSizes:null,imageSrcSet:null,inert:lt,inputMode:null,integrity:null,is:null,isMap:lt,itemId:null,itemProp:Zt,itemRef:Zt,itemScope:lt,itemType:Zt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:lt,low:ce,manifest:null,max:null,maxLength:ce,media:null,method:null,min:null,minLength:ce,multiple:lt,muted:lt,name:null,nonce:null,noModule:lt,noValidate:lt,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:lt,optimum:ce,pattern:null,ping:Zt,placeholder:null,playsInline:lt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:lt,referrerPolicy:null,rel:Zt,required:lt,reversed:lt,rows:ce,rowSpan:ce,sandbox:Zt,scope:null,scoped:lt,seamless:lt,selected:lt,shadowRootClonable:lt,shadowRootDelegatesFocus:lt,shadowRootMode:null,shape:null,size:ce,sizes:null,slot:null,span:ce,spellCheck:fr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ce,step:null,style:null,tabIndex:ce,target:null,title:null,translate:null,type:null,typeMustMatch:lt,useMap:null,value:fr,width:ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Zt,axis:null,background:null,bgColor:null,border:ce,borderColor:null,bottomMargin:ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:lt,declare:lt,event:null,face:null,frame:null,frameBorder:null,hSpace:ce,leftMargin:ce,link:null,longDesc:null,lowSrc:null,marginHeight:ce,marginWidth:ce,noResize:lt,noHref:lt,noShade:lt,noWrap:lt,object:null,profile:null,prompt:null,rev:null,rightMargin:ce,rules:null,scheme:null,scrolling:fr,standby:null,summary:null,text:null,topMargin:ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:lt,disableRemotePlayback:lt,prefix:null,property:null,results:ce,security:null,unselectable:null},space:"html",transform:i3}),BL=jl({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:Xn,accentHeight:ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ce,amplitude:ce,arabicForm:null,ascent:ce,attributeName:null,attributeType:null,azimuth:ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ce,by:null,calcMode:null,capHeight:ce,className:Zt,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:ce,diffuseConstant:ce,direction:null,display:null,dur:null,divisor:ce,dominantBaseline:null,download:lt,dx:null,dy:null,edgeMode:null,editable:null,elevation:ce,enableBackground:null,end:null,event:null,exponent:ce,externalResourcesRequired:null,fill:null,fillOpacity:ce,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:sl,g2:sl,glyphName:sl,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ce,horizOriginX:ce,horizOriginY:ce,id:null,ideographic:ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ce,k:ce,k1:ce,k2:ce,k3:ce,k4:ce,kernelMatrix:Xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ce,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:ce,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:ce,overlineThickness:ce,paintOrder:null,panose1:null,path:null,pathLength:ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Zt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ce,pointsAtY:ce,pointsAtZ:ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xn,rev:Xn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xn,requiredFeatures:Xn,requiredFonts:Xn,requiredFormats:Xn,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:ce,specularExponent:ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ce,strikethroughThickness:ce,string:null,stroke:null,strokeDashArray:Xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ce,strokeOpacity:ce,strokeWidth:null,style:null,surfaceScale:ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xn,tabIndex:ce,tableValues:null,target:null,targetX:ce,targetY:ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ce,underlineThickness:ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ce,values:null,vAlphabetic:ce,vMathematical:ce,vectorEffect:null,vHanging:ce,vIdeographic:ce,version:null,vertAdvY:ce,vertOriginX:ce,vertOriginY:ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:n3}),s3=jl({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(t,e){return"xlink:"+e.slice(5).toLowerCase()}}),a3=jl({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:i3}),o3=jl({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(t,e){return"xml:"+e.slice(3).toLowerCase()}}),QL={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"},IL=/[A-Z]/g,U2=/-[a-z]/g,DL=/^data[-\w.:]+$/i;function l3(t,e){const r=$h(e);let n=e,i=Ln;if(r in t.normal)return t.property[t.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&DL.test(e)){if(e.charAt(4)==="-"){const s=e.slice(5).replace(U2,FL);n="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=e.slice(4);if(!U2.test(s)){let a=s.replace(IL,zL);a.charAt(0)!=="-"&&(a="-"+a),e="data"+a}}i=YO}return new i(n,e)}function zL(t){return"-"+t.toLowerCase()}function FL(t){return t.charAt(1).toUpperCase()}const c3=t3([r3,NL,s3,a3,o3],"html"),ap=t3([r3,BL,s3,a3,o3],"svg");function H2(t){const e=String(t||"").trim();return e?e.split(/[ \t\n\r\f]+/g):[]}function qL(t){return t.join(" ").trim()}var zo={},pm,G2;function XL(){if(G2)return pm;G2=1;var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,e=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,o=/^\s+|\s+$/g,l=`
`,c="/",h="*",u="",f="comment",d="declaration";pm=function(m,g){if(typeof m!="string")throw new TypeError("First argument must be a string");if(!m)return[];g=g||{};var b=1,O=1;function k(q){var L=q.match(e);L&&(b+=L.length);var Q=q.lastIndexOf(l);O=~Q?q.length-Q:O+q.length}function C(){var q={line:b,column:O};return function(L){return L.position=new S(q),P(),L}}function S(q){this.start=q,this.end={line:b,column:O},this.source=g.source}S.prototype.content=m;function w(q){var L=new Error(g.source+":"+b+":"+O+": "+q);if(L.reason=q,L.filename=g.source,L.line=b,L.column=O,L.source=m,!g.silent)throw L}function E(q){var L=q.exec(m);if(L){var Q=L[0];return k(Q),m=m.slice(Q.length),L}}function P(){E(r)}function B(q){var L;for(q=q||[];L=$();)L!==!1&&q.push(L);return q}function $(){var q=C();if(!(c!=m.charAt(0)||h!=m.charAt(1))){for(var L=2;u!=m.charAt(L)&&(h!=m.charAt(L)||c!=m.charAt(L+1));)++L;if(L+=2,u===m.charAt(L-1))return w("End of comment missing");var Q=m.slice(2,L-2);return O+=2,k(Q),m=m.slice(L),O+=2,q({type:f,comment:Q})}}function R(){var q=C(),L=E(n);if(L){if($(),!E(i))return w("property missing ':'");var Q=E(s),X=q({type:d,property:p(L[0].replace(t,u)),value:Q?p(Q[0].replace(t,u)):u});return E(a),X}}function D(){var q=[];B(q);for(var L;L=R();)L!==!1&&(q.push(L),B(q));return q}return P(),D()};function p(m){return m?m.replace(o,u):u}return pm}var j2;function ZL(){if(j2)return zo;j2=1;var t=zo&&zo.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(zo,"__esModule",{value:!0}),zo.default=r;var e=t(XL());function r(n,i){var s=null;if(!n||typeof n!="string")return s;var a=(0,e.default)(n),o=typeof i=="function";return a.forEach(function(l){if(l.type==="declaration"){var c=l.property,h=l.value;o?i(c,h,l):h&&(s=s||{},s[c]=h)}}),s}return zo}var Cc={},K2;function WL(){if(K2)return Cc;K2=1,Object.defineProperty(Cc,"__esModule",{value:!0}),Cc.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,e=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,s=function(c){return!c||r.test(c)||t.test(c)},a=function(c,h){return h.toUpperCase()},o=function(c,h){return"".concat(h,"-")},l=function(c,h){return h===void 0&&(h={}),s(c)?c:(c=c.toLowerCase(),h.reactCompat?c=c.replace(i,o):c=c.replace(n,o),c.replace(e,a))};return Cc.camelCase=l,Cc}var _c,J2;function VL(){if(J2)return _c;J2=1;var t=_c&&_c.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},e=t(ZL()),r=WL();function n(i,s){var a={};return!i||typeof i!="string"||(0,e.default)(i,function(o,l){o&&l&&(a[(0,r.camelCase)(o,s)]=l)}),a}return n.default=n,_c=n,_c}var YL=VL();const UL=Gl(YL),h3=u3("end"),UO=u3("start");function u3(t){return e;function e(r){const n=r&&r.position&&r.position[t]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function HL(t){const e=UO(t),r=h3(t);if(e&&r)return{start:e,end:r}}function dh(t){return!t||typeof t!="object"?"":"position"in t||"type"in t?ev(t.position):"start"in t||"end"in t?ev(t):"line"in t||"column"in t?l1(t):""}function l1(t){return tv(t&&t.line)+":"+tv(t&&t.column)}function ev(t){return l1(t&&t.start)+"-"+l1(t&&t.end)}function tv(t){return t&&typeof t=="number"?t:1}class Jr extends Error{constructor(e,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",s={},a=!1;if(r&&("line"in r&&"column"in r?s={place:r}:"start"in r&&"end"in r?s={place:r}:"type"in r?s={ancestors:[r],place:r.position}:s={...r}),typeof e=="string"?i=e:!s.cause&&e&&(a=!0,i=e.message,s.cause=e),!s.ruleId&&!s.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?s.ruleId=n:(s.source=n.slice(0,l),s.ruleId=n.slice(l+1))}if(!s.place&&s.ancestors&&s.ancestors){const l=s.ancestors[s.ancestors.length-1];l&&(s.place=l.position)}const o=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=o?o.line:void 0,this.name=dh(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=a&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Jr.prototype.file="";Jr.prototype.name="";Jr.prototype.reason="";Jr.prototype.message="";Jr.prototype.stack="";Jr.prototype.column=void 0;Jr.prototype.line=void 0;Jr.prototype.ancestors=void 0;Jr.prototype.cause=void 0;Jr.prototype.fatal=void 0;Jr.prototype.place=void 0;Jr.prototype.ruleId=void 0;Jr.prototype.source=void 0;const HO={}.hasOwnProperty,GL=new Map,jL=/[A-Z]/g,KL=new Set(["table","tbody","thead","tfoot","tr"]),JL=new Set(["td","th"]),f3="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function eN(t,e){if(!e||e.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=e.filePath||void 0;let n;if(e.development){if(typeof e.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=lN(r,e.jsxDEV)}else{if(typeof e.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof e.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");n=oN(r,e.jsx,e.jsxs)}const i={Fragment:e.Fragment,ancestors:[],components:e.components||{},create:n,elementAttributeNameCase:e.elementAttributeNameCase||"react",evaluater:e.createEvaluater?e.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:e.ignoreInvalidStyle||!1,passKeys:e.passKeys!==!1,passNode:e.passNode||!1,schema:e.space==="svg"?ap:c3,stylePropertyNameCase:e.stylePropertyNameCase||"dom",tableCellAlignToStyle:e.tableCellAlignToStyle!==!1},s=d3(i,t,void 0);return s&&typeof s!="string"?s:i.create(t,i.Fragment,{children:s||void 0},void 0)}function d3(t,e,r){if(e.type==="element")return tN(t,e,r);if(e.type==="mdxFlowExpression"||e.type==="mdxTextExpression")return rN(t,e);if(e.type==="mdxJsxFlowElement"||e.type==="mdxJsxTextElement")return iN(t,e,r);if(e.type==="mdxjsEsm")return nN(t,e);if(e.type==="root")return sN(t,e,r);if(e.type==="text")return aN(t,e)}function tN(t,e,r){const n=t.schema;let i=n;e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=ap,t.schema=i),t.ancestors.push(e);const s=m3(t,e.tagName,!1),a=cN(t,e);let o=jO(t,e);return KL.has(e.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!RL(l):!0})),p3(t,a,s,e),GO(a,o),t.ancestors.pop(),t.schema=n,t.create(e,s,a,r)}function rN(t,e){if(e.data&&e.data.estree&&t.evaluater){const n=e.data.estree.body[0];return n.type,t.evaluater.evaluateExpression(n.expression)}Rh(t,e.position)}function nN(t,e){if(e.data&&e.data.estree&&t.evaluater)return t.evaluater.evaluateProgram(e.data.estree);Rh(t,e.position)}function iN(t,e,r){const n=t.schema;let i=n;e.name==="svg"&&n.space==="html"&&(i=ap,t.schema=i),t.ancestors.push(e);const s=e.name===null?t.Fragment:m3(t,e.name,!0),a=hN(t,e),o=jO(t,e);return p3(t,a,s,e),GO(a,o),t.ancestors.pop(),t.schema=n,t.create(e,s,a,r)}function sN(t,e,r){const n={};return GO(n,jO(t,e)),t.create(e,t.Fragment,n,r)}function aN(t,e){return e.value}function p3(t,e,r,n){typeof r!="string"&&r!==t.Fragment&&t.passNode&&(e.node=n)}function GO(t,e){if(e.length>0){const r=e.length>1?e:e[0];r&&(t.children=r)}}function oN(t,e,r){return n;function n(i,s,a,o){const c=Array.isArray(a.children)?r:e;return o?c(s,a,o):c(s,a)}}function lN(t,e){return r;function r(n,i,s,a){const o=Array.isArray(s.children),l=UO(n);return e(i,s,a,o,{columnNumber:l?l.column-1:void 0,fileName:t,lineNumber:l?l.line:void 0},void 0)}}function cN(t,e){const r={};let n,i;for(i in e.properties)if(i!=="children"&&HO.call(e.properties,i)){const s=uN(t,i,e.properties[i]);if(s){const[a,o]=s;t.tableCellAlignToStyle&&a==="align"&&typeof o=="string"&&JL.has(e.tagName)?n=o:r[a]=o}}if(n){const s=r.style||(r.style={});s[t.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function hN(t,e){const r={};for(const n of e.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&t.evaluater){const s=n.data.estree.body[0];s.type;const a=s.expression;a.type;const o=a.properties[0];o.type,Object.assign(r,t.evaluater.evaluateExpression(o.argument))}else Rh(t,e.position);else{const i=n.name;let s;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&t.evaluater){const o=n.value.data.estree.body[0];o.type,s=t.evaluater.evaluateExpression(o.expression)}else Rh(t,e.position);else s=n.value===null?!0:n.value;r[i]=s}return r}function jO(t,e){const r=[];let n=-1;const i=t.passKeys?new Map:GL;for(;++n<e.children.length;){const s=e.children[n];let a;if(t.passKeys){const l=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(l){const c=i.get(l)||0;a=l+"-"+c,i.set(l,c+1)}}const o=d3(t,s,a);o!==void 0&&r.push(o)}return r}function uN(t,e,r){const n=l3(t.schema,e);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?EL(r):qL(r)),n.property==="style"){let i=typeof r=="object"?r:fN(t,String(r));return t.stylePropertyNameCase==="css"&&(i=dN(i)),["style",i]}return[t.elementAttributeNameCase==="react"&&n.space?QL[n.property]||n.property:n.attribute,r]}}function fN(t,e){try{return UL(e,{reactCompat:!0})}catch(r){if(t.ignoreInvalidStyle)return{};const n=r,i=new Jr("Cannot parse `style` attribute",{ancestors:t.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=t.filePath||void 0,i.url=f3+"#cannot-parse-style-attribute",i}}function m3(t,e,r){let n;if(!r)n={type:"Literal",value:e};else if(e.includes(".")){const i=e.split(".");let s=-1,a;for(;++s<i.length;){const o=W2(i[s])?{type:"Identifier",name:i[s]}:{type:"Literal",value:i[s]};a=a?{type:"MemberExpression",object:a,property:o,computed:!!(s&&o.type==="Literal"),optional:!1}:o}n=a}else n=W2(e)&&!/^[a-z]/.test(e)?{type:"Identifier",name:e}:{type:"Literal",value:e};if(n.type==="Literal"){const i=n.value;return HO.call(t.components,i)?t.components[i]:i}if(t.evaluater)return t.evaluater.evaluateExpression(n);Rh(t)}function Rh(t,e){const r=new Jr("Cannot handle MDX estrees without `createEvaluater`",{ancestors:t.ancestors,place:e,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=t.filePath||void 0,r.url=f3+"#cannot-handle-mdx-estrees-without-createevaluater",r}function dN(t){const e={};let r;for(r in t)HO.call(t,r)&&(e[pN(r)]=t[r]);return e}function pN(t){let e=t.replace(jL,mN);return e.slice(0,3)==="ms-"&&(e="-"+e),e}function mN(t){return"-"+t.toLowerCase()}const mm={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"]},gN={};function KO(t,e){const r=gN,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return g3(t,n,i)}function g3(t,e,r){if(bN(t)){if("value"in t)return t.type==="html"&&!r?"":t.value;if(e&&"alt"in t&&t.alt)return t.alt;if("children"in t)return rv(t.children,e,r)}return Array.isArray(t)?rv(t,e,r):""}function rv(t,e,r){const n=[];let i=-1;for(;++i<t.length;)n[i]=g3(t[i],e,r);return n.join("")}function bN(t){return!!(t&&typeof t=="object")}const nv=document.createElement("i");function JO(t){const e="&"+t+";";nv.innerHTML=e;const r=nv.textContent;return r.charCodeAt(r.length-1)===59&&t!=="semi"||r===e?!1:r}function Hn(t,e,r,n){const i=t.length;let s=0,a;if(e<0?e=-e>i?0:i+e:e=e>i?i:e,r=r>0?r:0,n.length<1e4)a=Array.from(n),a.unshift(e,r),t.splice(...a);else for(r&&t.splice(e,r);s<n.length;)a=n.slice(s,s+1e4),a.unshift(e,0),t.splice(...a),s+=1e4,e+=1e4}function si(t,e){return t.length>0?(Hn(t,t.length,0,e),t):e}const iv={}.hasOwnProperty;function b3(t){const e={};let r=-1;for(;++r<t.length;)ON(e,t[r]);return e}function ON(t,e){let r;for(r in e){const i=(iv.call(t,r)?t[r]:void 0)||(t[r]={}),s=e[r];let a;if(s)for(a in s){iv.call(i,a)||(i[a]=[]);const o=s[a];yN(i[a],Array.isArray(o)?o:o?[o]:[])}}}function yN(t,e){let r=-1;const n=[];for(;++r<e.length;)(e[r].add==="after"?t:n).push(e[r]);Hn(t,0,0,n)}function O3(t,e){const r=Number.parseInt(t,e);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function Ti(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ln=La(/[A-Za-z]/),Gr=La(/[\dA-Za-z]/),xN=La(/[#-'*+\--9=?A-Z^-~]/);function Dd(t){return t!==null&&(t<32||t===127)}const c1=La(/\d/),vN=La(/[\dA-Fa-f]/),kN=La(/[!-/:-@[-`{-~]/);function Ie(t){return t!==null&&t<-2}function zt(t){return t!==null&&(t<0||t===32)}function Ot(t){return t===-2||t===-1||t===32}const op=La(new RegExp("\\p{P}|\\p{S}","u")),mo=La(/\s/);function La(t){return e;function e(r){return r!==null&&r>-1&&t.test(String.fromCharCode(r))}}function Kl(t){const e=[];let r=-1,n=0,i=0;for(;++r<t.length;){const s=t.charCodeAt(r);let a="";if(s===37&&Gr(t.charCodeAt(r+1))&&Gr(t.charCodeAt(r+2)))i=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(a=String.fromCharCode(s));else if(s>55295&&s<57344){const o=t.charCodeAt(r+1);s<56320&&o>56319&&o<57344?(a=String.fromCharCode(s,o),i=1):a="�"}else a=String.fromCharCode(s);a&&(e.push(t.slice(n,r),encodeURIComponent(a)),n=r+i+1,a=""),i&&(r+=i,i=0)}return e.join("")+t.slice(n)}function gt(t,e,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let s=0;return a;function a(l){return Ot(l)?(t.enter(r),o(l)):e(l)}function o(l){return Ot(l)&&s++<i?(t.consume(l),o):(t.exit(r),e(l))}}const wN={tokenize:SN};function SN(t){const e=t.attempt(this.parser.constructs.contentInitial,n,i);let r;return e;function n(o){if(o===null){t.consume(o);return}return t.enter("lineEnding"),t.consume(o),t.exit("lineEnding"),gt(t,e,"linePrefix")}function i(o){return t.enter("paragraph"),s(o)}function s(o){const l=t.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,a(o)}function a(o){if(o===null){t.exit("chunkText"),t.exit("paragraph"),t.consume(o);return}return Ie(o)?(t.consume(o),t.exit("chunkText"),s):(t.consume(o),a)}}const CN={tokenize:_N},sv={tokenize:TN};function _N(t){const e=this,r=[];let n=0,i,s,a;return o;function o(k){if(n<r.length){const C=r[n];return e.containerState=C[1],t.attempt(C[0].continuation,l,c)(k)}return c(k)}function l(k){if(n++,e.containerState._closeFlow){e.containerState._closeFlow=void 0,i&&O();const C=e.events.length;let S=C,w;for(;S--;)if(e.events[S][0]==="exit"&&e.events[S][1].type==="chunkFlow"){w=e.events[S][1].end;break}b(n);let E=C;for(;E<e.events.length;)e.events[E][1].end={...w},E++;return Hn(e.events,S+1,0,e.events.slice(C)),e.events.length=E,c(k)}return o(k)}function c(k){if(n===r.length){if(!i)return f(k);if(i.currentConstruct&&i.currentConstruct.concrete)return p(k);e.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return e.containerState={},t.check(sv,h,u)(k)}function h(k){return i&&O(),b(n),f(k)}function u(k){return e.parser.lazy[e.now().line]=n!==r.length,a=e.now().offset,p(k)}function f(k){return e.containerState={},t.attempt(sv,d,p)(k)}function d(k){return n++,r.push([e.currentConstruct,e.containerState]),f(k)}function p(k){if(k===null){i&&O(),b(0),t.consume(k);return}return i=i||e.parser.flow(e.now()),t.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:s}),m(k)}function m(k){if(k===null){g(t.exit("chunkFlow"),!0),b(0),t.consume(k);return}return Ie(k)?(t.consume(k),g(t.exit("chunkFlow")),n=0,e.interrupt=void 0,o):(t.consume(k),m)}function g(k,C){const S=e.sliceStream(k);if(C&&S.push(null),k.previous=s,s&&(s.next=k),s=k,i.defineSkip(k.start),i.write(S),e.parser.lazy[k.start.line]){let w=i.events.length;for(;w--;)if(i.events[w][1].start.offset<a&&(!i.events[w][1].end||i.events[w][1].end.offset>a))return;const E=e.events.length;let P=E,B,$;for(;P--;)if(e.events[P][0]==="exit"&&e.events[P][1].type==="chunkFlow"){if(B){$=e.events[P][1].end;break}B=!0}for(b(n),w=E;w<e.events.length;)e.events[w][1].end={...$},w++;Hn(e.events,P+1,0,e.events.slice(E)),e.events.length=w}}function b(k){let C=r.length;for(;C-- >k;){const S=r[C];e.containerState=S[1],S[0].exit.call(e,t)}r.length=k}function O(){i.write([null]),s=void 0,i=void 0,e.containerState._closeFlow=void 0}}function TN(t,e,r){return gt(t,t.attempt(this.parser.constructs.document,e,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Cl(t){if(t===null||zt(t)||mo(t))return 1;if(op(t))return 2}function lp(t,e,r){const n=[];let i=-1;for(;++i<t.length;){const s=t[i].resolveAll;s&&!n.includes(s)&&(e=s(e,r),n.push(s))}return e}const h1={name:"attention",resolveAll:EN,tokenize:AN};function EN(t,e){let r=-1,n,i,s,a,o,l,c,h;for(;++r<t.length;)if(t[r][0]==="enter"&&t[r][1].type==="attentionSequence"&&t[r][1]._close){for(n=r;n--;)if(t[n][0]==="exit"&&t[n][1].type==="attentionSequence"&&t[n][1]._open&&e.sliceSerialize(t[n][1]).charCodeAt(0)===e.sliceSerialize(t[r][1]).charCodeAt(0)){if((t[n][1]._close||t[r][1]._open)&&(t[r][1].end.offset-t[r][1].start.offset)%3&&!((t[n][1].end.offset-t[n][1].start.offset+t[r][1].end.offset-t[r][1].start.offset)%3))continue;l=t[n][1].end.offset-t[n][1].start.offset>1&&t[r][1].end.offset-t[r][1].start.offset>1?2:1;const u={...t[n][1].end},f={...t[r][1].start};av(u,-l),av(f,l),a={type:l>1?"strongSequence":"emphasisSequence",start:u,end:{...t[n][1].end}},o={type:l>1?"strongSequence":"emphasisSequence",start:{...t[r][1].start},end:f},s={type:l>1?"strongText":"emphasisText",start:{...t[n][1].end},end:{...t[r][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...o.end}},t[n][1].end={...a.start},t[r][1].start={...o.end},c=[],t[n][1].end.offset-t[n][1].start.offset&&(c=si(c,[["enter",t[n][1],e],["exit",t[n][1],e]])),c=si(c,[["enter",i,e],["enter",a,e],["exit",a,e],["enter",s,e]]),c=si(c,lp(e.parser.constructs.insideSpan.null,t.slice(n+1,r),e)),c=si(c,[["exit",s,e],["enter",o,e],["exit",o,e],["exit",i,e]]),t[r][1].end.offset-t[r][1].start.offset?(h=2,c=si(c,[["enter",t[r][1],e],["exit",t[r][1],e]])):h=0,Hn(t,n-1,r-n+3,c),r=n+c.length-h-2;break}}for(r=-1;++r<t.length;)t[r][1].type==="attentionSequence"&&(t[r][1].type="data");return t}function AN(t,e){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=Cl(n);let s;return a;function a(l){return s=l,t.enter("attentionSequence"),o(l)}function o(l){if(l===s)return t.consume(l),o;const c=t.exit("attentionSequence"),h=Cl(l),u=!h||h===2&&i||r.includes(l),f=!i||i===2&&h||r.includes(n);return c._open=!!(s===42?u:u&&(i||!f)),c._close=!!(s===42?f:f&&(h||!u)),e(l)}}function av(t,e){t.column+=e,t.offset+=e,t._bufferIndex+=e}const MN={name:"autolink",tokenize:PN};function PN(t,e,r){let n=0;return i;function i(d){return t.enter("autolink"),t.enter("autolinkMarker"),t.consume(d),t.exit("autolinkMarker"),t.enter("autolinkProtocol"),s}function s(d){return ln(d)?(t.consume(d),a):d===64?r(d):c(d)}function a(d){return d===43||d===45||d===46||Gr(d)?(n=1,o(d)):c(d)}function o(d){return d===58?(t.consume(d),n=0,l):(d===43||d===45||d===46||Gr(d))&&n++<32?(t.consume(d),o):(n=0,c(d))}function l(d){return d===62?(t.exit("autolinkProtocol"),t.enter("autolinkMarker"),t.consume(d),t.exit("autolinkMarker"),t.exit("autolink"),e):d===null||d===32||d===60||Dd(d)?r(d):(t.consume(d),l)}function c(d){return d===64?(t.consume(d),h):xN(d)?(t.consume(d),c):r(d)}function h(d){return Gr(d)?u(d):r(d)}function u(d){return d===46?(t.consume(d),n=0,h):d===62?(t.exit("autolinkProtocol").type="autolinkEmail",t.enter("autolinkMarker"),t.consume(d),t.exit("autolinkMarker"),t.exit("autolink"),e):f(d)}function f(d){if((d===45||Gr(d))&&n++<63){const p=d===45?f:u;return t.consume(d),p}return r(d)}}const ku={partial:!0,tokenize:$N};function $N(t,e,r){return n;function n(s){return Ot(s)?gt(t,i,"linePrefix")(s):i(s)}function i(s){return s===null||Ie(s)?e(s):r(s)}}const y3={continuation:{tokenize:LN},exit:NN,name:"blockQuote",tokenize:RN};function RN(t,e,r){const n=this;return i;function i(a){if(a===62){const o=n.containerState;return o.open||(t.enter("blockQuote",{_container:!0}),o.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(a),t.exit("blockQuoteMarker"),s}return r(a)}function s(a){return Ot(a)?(t.enter("blockQuotePrefixWhitespace"),t.consume(a),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),e):(t.exit("blockQuotePrefix"),e(a))}}function LN(t,e,r){const n=this;return i;function i(a){return Ot(a)?gt(t,s,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):s(a)}function s(a){return t.attempt(y3,e,r)(a)}}function NN(t){t.exit("blockQuote")}const x3={name:"characterEscape",tokenize:BN};function BN(t,e,r){return n;function n(s){return t.enter("characterEscape"),t.enter("escapeMarker"),t.consume(s),t.exit("escapeMarker"),i}function i(s){return kN(s)?(t.enter("characterEscapeValue"),t.consume(s),t.exit("characterEscapeValue"),t.exit("characterEscape"),e):r(s)}}const v3={name:"characterReference",tokenize:QN};function QN(t,e,r){const n=this;let i=0,s,a;return o;function o(u){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(u),t.exit("characterReferenceMarker"),l}function l(u){return u===35?(t.enter("characterReferenceMarkerNumeric"),t.consume(u),t.exit("characterReferenceMarkerNumeric"),c):(t.enter("characterReferenceValue"),s=31,a=Gr,h(u))}function c(u){return u===88||u===120?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(u),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),s=6,a=vN,h):(t.enter("characterReferenceValue"),s=7,a=c1,h(u))}function h(u){if(u===59&&i){const f=t.exit("characterReferenceValue");return a===Gr&&!JO(n.sliceSerialize(f))?r(u):(t.enter("characterReferenceMarker"),t.consume(u),t.exit("characterReferenceMarker"),t.exit("characterReference"),e)}return a(u)&&i++<s?(t.consume(u),h):r(u)}}const ov={partial:!0,tokenize:DN},lv={concrete:!0,name:"codeFenced",tokenize:IN};function IN(t,e,r){const n=this,i={partial:!0,tokenize:S};let s=0,a=0,o;return l;function l(w){return c(w)}function c(w){const E=n.events[n.events.length-1];return s=E&&E[1].type==="linePrefix"?E[2].sliceSerialize(E[1],!0).length:0,o=w,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),h(w)}function h(w){return w===o?(a++,t.consume(w),h):a<3?r(w):(t.exit("codeFencedFenceSequence"),Ot(w)?gt(t,u,"whitespace")(w):u(w))}function u(w){return w===null||Ie(w)?(t.exit("codeFencedFence"),n.interrupt?e(w):t.check(ov,m,C)(w)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),f(w))}function f(w){return w===null||Ie(w)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),u(w)):Ot(w)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),gt(t,d,"whitespace")(w)):w===96&&w===o?r(w):(t.consume(w),f)}function d(w){return w===null||Ie(w)?u(w):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),p(w))}function p(w){return w===null||Ie(w)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),u(w)):w===96&&w===o?r(w):(t.consume(w),p)}function m(w){return t.attempt(i,C,g)(w)}function g(w){return t.enter("lineEnding"),t.consume(w),t.exit("lineEnding"),b}function b(w){return s>0&&Ot(w