Skip to content

Instantly share code, notes, and snippets.

@bundle-js
Created October 31, 2023 18:52
Show Gist options
  • Select an option

  • Save bundle-js/afbb1b4231bbe6d39c9a23af94675fbb to your computer and use it in GitHub Desktop.

Select an option

Save bundle-js/afbb1b4231bbe6d39c9a23af94675fbb to your computer and use it in GitHub Desktop.
var To=Object.create;var $n=Object.defineProperty;var Po=Object.getOwnPropertyDescriptor;var Lo=Object.getOwnPropertyNames;var Oo=Object.getPrototypeOf,zo=Object.prototype.hasOwnProperty;var Pe=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports),lr=(e,n)=>{for(var t in n)$n(e,t,{get:n[t],enumerable:!0})},vo=(e,n,t,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of Lo(n))!zo.call(e,i)&&i!==t&&$n(e,i,{get:()=>n[i],enumerable:!(r=Po(n,i))||r.enumerable});return e};var Kn=(e,n,t)=>(t=e!=null?To(Oo(e)):{},vo(n||!e||!e.__esModule?$n(t,"default",{value:e,enumerable:!0}):t,e));var br=Pe((Hs,kr)=>{var dr=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,jo=/\n/g,Uo=/^\s*/,Ho=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Vo=/^:\s*/,qo=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Wo=/^[;\s]*/,Qo=/^\s+|\s+$/g,Xo=`
`,gr="/",yr="*",ze="",Yo="comment",$o="declaration";kr.exports=function(e,n){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];n=n||{};var t=1,r=1;function i(w){var b=w.match(jo);b&&(t+=b.length);var x=w.lastIndexOf(Xo);r=~x?w.length-x:r+w.length}function o(){var w={line:t,column:r};return function(b){return b.position=new l(w),s(),b}}function l(w){this.start=w,this.end={line:t,column:r},this.source=n.source}l.prototype.content=e;var a=[];function u(w){var b=new Error(n.source+":"+t+":"+r+": "+w);if(b.reason=w,b.filename=n.source,b.line=t,b.column=r,b.source=e,n.silent)a.push(b);else throw b}function c(w){var b=w.exec(e);if(b){var x=b[0];return i(x),e=e.slice(x.length),b}}function s(){c(Uo)}function d(w){var b;for(w=w||[];b=h();)b!==!1&&w.push(b);return w}function h(){var w=o();if(!(gr!=e.charAt(0)||yr!=e.charAt(1))){for(var b=2;ze!=e.charAt(b)&&(yr!=e.charAt(b)||gr!=e.charAt(b+1));)++b;if(b+=2,ze===e.charAt(b-1))return u("End of comment missing");var x=e.slice(2,b-2);return r+=2,i(x),e=e.slice(b),r+=2,w({type:Yo,comment:x})}}function p(){var w=o(),b=c(Ho);if(b){if(h(),!c(Vo))return u("property missing ':'");var x=c(qo),A=w({type:$o,property:xr(b[0].replace(dr,ze)),value:x?xr(x[0].replace(dr,ze)):ze});return c(Wo),A}}function E(){var w=[];d(w);for(var b;b=p();)b!==!1&&(w.push(b),d(w));return w}return s(),E()};function xr(e){return e?e.replace(Qo,ze):ze}});var Sr=Pe((Vs,ut)=>{var Ko=br();function wr(e,n){var t=null;if(!e||typeof e!="string")return t;for(var r,i=Ko(e),o=typeof n=="function",l,a,u=0,c=i.length;u<c;u++)r=i[u],l=r.property,a=r.value,o?n(l,a,r):a&&(t||(t={}),t[l]=a);return t}ut.exports=wr;ut.exports.default=wr});var Wr=Pe(D=>{"use strict";var nn=Symbol.for("react.element"),hl=Symbol.for("react.portal"),dl=Symbol.for("react.fragment"),gl=Symbol.for("react.strict_mode"),yl=Symbol.for("react.profiler"),xl=Symbol.for("react.provider"),kl=Symbol.for("react.context"),bl=Symbol.for("react.forward_ref"),wl=Symbol.for("react.suspense"),Sl=Symbol.for("react.memo"),El=Symbol.for("react.lazy"),_r=Symbol.iterator;function Cl(e){return e===null||typeof e!="object"?null:(e=_r&&e[_r]||e["@@iterator"],typeof e=="function"?e:null)}var Br={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Mr=Object.assign,jr={};function je(e,n,t){this.props=e,this.context=n,this.refs=jr,this.updater=t||Br}je.prototype.isReactComponent={};je.prototype.setState=function(e,n){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,n,"setState")};je.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ur(){}Ur.prototype=je.prototype;function dt(e,n,t){this.props=e,this.context=n,this.refs=jr,this.updater=t||Br}var gt=dt.prototype=new Ur;gt.constructor=dt;Mr(gt,je.prototype);gt.isPureReactComponent=!0;var Nr=Array.isArray,Hr=Object.prototype.hasOwnProperty,yt={current:null},Vr={key:!0,ref:!0,__self:!0,__source:!0};function qr(e,n,t){var r,i={},o=null,l=null;if(n!=null)for(r in n.ref!==void 0&&(l=n.ref),n.key!==void 0&&(o=""+n.key),n)Hr.call(n,r)&&!Vr.hasOwnProperty(r)&&(i[r]=n[r]);var a=arguments.length-2;if(a===1)i.children=t;else if(1<a){for(var u=Array(a),c=0;c<a;c++)u[c]=arguments[c+2];i.children=u}if(e&&e.defaultProps)for(r in a=e.defaultProps,a)i[r]===void 0&&(i[r]=a[r]);return{$$typeof:nn,type:e,key:o,ref:l,props:i,_owner:yt.current}}function Il(e,n){return{$$typeof:nn,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function xt(e){return typeof e=="object"&&e!==null&&e.$$typeof===nn}function Al(e){var n={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return n[t]})}var Fr=/\/+/g;function ht(e,n){return typeof e=="object"&&e!==null&&e.key!=null?Al(""+e.key):n.toString(36)}function xn(e,n,t,r,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var l=!1;if(e===null)l=!0;else switch(o){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case nn:case hl:l=!0}}if(l)return l=e,i=i(l),e=r===""?"."+ht(l,0):r,Nr(i)?(t="",e!=null&&(t=e.replace(Fr,"$&/")+"/"),xn(i,n,t,"",function(c){return c})):i!=null&&(xt(i)&&(i=Il(i,t+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(Fr,"$&/")+"/")+e)),n.push(i)),1;if(l=0,r=r===""?".":r+":",Nr(e))for(var a=0;a<e.length;a++){o=e[a];var u=r+ht(o,a);l+=xn(o,n,t,u,i)}else if(u=Cl(e),typeof u=="function")for(e=u.call(e),a=0;!(o=e.next()).done;)o=o.value,u=r+ht(o,a++),l+=xn(o,n,t,u,i);else if(o==="object")throw n=String(e),Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.");return l}function yn(e,n,t){if(e==null)return e;var r=[],i=0;return xn(e,r,"","",function(o){return n.call(t,o,i++)}),r}function Tl(e){if(e._status===-1){var n=e._result;n=n(),n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var ne={current:null},kn={transition:null},Pl={ReactCurrentDispatcher:ne,ReactCurrentBatchConfig:kn,ReactCurrentOwner:yt};D.Children={map:yn,forEach:function(e,n,t){yn(e,function(){n.apply(this,arguments)},t)},count:function(e){var n=0;return yn(e,function(){n++}),n},toArray:function(e){return yn(e,function(n){return n})||[]},only:function(e){if(!xt(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};D.Component=je;D.Fragment=dl;D.Profiler=yl;D.PureComponent=dt;D.StrictMode=gl;D.Suspense=wl;D.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pl;D.cloneElement=function(e,n,t){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var r=Mr({},e.props),i=e.key,o=e.ref,l=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,l=yt.current),n.key!==void 0&&(i=""+n.key),e.type&&e.type.defaultProps)var a=e.type.defaultProps;for(u in n)Hr.call(n,u)&&!Vr.hasOwnProperty(u)&&(r[u]=n[u]===void 0&&a!==void 0?a[u]:n[u])}var u=arguments.length-2;if(u===1)r.children=t;else if(1<u){a=Array(u);for(var c=0;c<u;c++)a[c]=arguments[c+2];r.children=a}return{$$typeof:nn,type:e.type,key:i,ref:o,props:r,_owner:l}};D.createContext=function(e){return e={$$typeof:kl,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:xl,_context:e},e.Consumer=e};D.createElement=qr;D.createFactory=function(e){var n=qr.bind(null,e);return n.type=e,n};D.createRef=function(){return{current:null}};D.forwardRef=function(e){return{$$typeof:bl,render:e}};D.isValidElement=xt;D.lazy=function(e){return{$$typeof:El,_payload:{_status:-1,_result:e},_init:Tl}};D.memo=function(e,n){return{$$typeof:Sl,type:e,compare:n===void 0?null:n}};D.startTransition=function(e){var n=kn.transition;kn.transition={};try{e()}finally{kn.transition=n}};D.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};D.useCallback=function(e,n){return ne.current.useCallback(e,n)};D.useContext=function(e){return ne.current.useContext(e)};D.useDebugValue=function(){};D.useDeferredValue=function(e){return ne.current.useDeferredValue(e)};D.useEffect=function(e,n){return ne.current.useEffect(e,n)};D.useId=function(){return ne.current.useId()};D.useImperativeHandle=function(e,n,t){return ne.current.useImperativeHandle(e,n,t)};D.useInsertionEffect=function(e,n){return ne.current.useInsertionEffect(e,n)};D.useLayoutEffect=function(e,n){return ne.current.useLayoutEffect(e,n)};D.useMemo=function(e,n){return ne.current.useMemo(e,n)};D.useReducer=function(e,n,t){return ne.current.useReducer(e,n,t)};D.useRef=function(e){return ne.current.useRef(e)};D.useState=function(e){return ne.current.useState(e)};D.useSyncExternalStore=function(e,n,t){return ne.current.useSyncExternalStore(e,n,t)};D.useTransition=function(){return ne.current.useTransition()};D.version="18.2.0"});var Xr=Pe((bc,Qr)=>{"use strict";Qr.exports=Wr()});var $r=Pe(bn=>{"use strict";var Ll=Xr(),Ol=Symbol.for("react.element"),zl=Symbol.for("react.fragment"),vl=Object.prototype.hasOwnProperty,Rl=Ll.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Dl={key:!0,ref:!0,__self:!0,__source:!0};function Yr(e,n,t){var r,i={},o=null,l=null;t!==void 0&&(o=""+t),n.key!==void 0&&(o=""+n.key),n.ref!==void 0&&(l=n.ref);for(r in n)vl.call(n,r)&&!Dl.hasOwnProperty(r)&&(i[r]=n[r]);if(e&&e.defaultProps)for(r in n=e.defaultProps,n)i[r]===void 0&&(i[r]=n[r]);return{$$typeof:Ol,type:e,key:o,ref:l,props:i,_owner:Rl.current}}bn.Fragment=zl;bn.jsx=Yr;bn.jsxs=Yr});var Gr=Pe((Sc,Kr)=>{"use strict";Kr.exports=$r()});var ao=Pe((Id,lo)=>{"use strict";var qn=Object.prototype.hasOwnProperty,oo=Object.prototype.toString,Zi=Object.defineProperty,eo=Object.getOwnPropertyDescriptor,no=function(n){return typeof Array.isArray=="function"?Array.isArray(n):oo.call(n)==="[object Array]"},to=function(n){if(!n||oo.call(n)!=="[object Object]")return!1;var t=qn.call(n,"constructor"),r=n.constructor&&n.constructor.prototype&&qn.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!t&&!r)return!1;var i;for(i in n);return typeof i>"u"||qn.call(n,i)},ro=function(n,t){Zi&&t.name==="__proto__"?Zi(n,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):n[t.name]=t.newValue},io=function(n,t){if(t==="__proto__")if(qn.call(n,t)){if(eo)return eo(n,t).value}else return;return n[t]};lo.exports=function e(){var n,t,r,i,o,l,a=arguments[0],u=1,c=arguments.length,s=!1;for(typeof a=="boolean"&&(s=a,a=arguments[1]||{},u=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});u<c;++u)if(n=arguments[u],n!=null)for(t in n)r=io(a,t),i=io(n,t),a!==i&&(s&&i&&(to(i)||(o=no(i)))?(o?(o=!1,l=r&&no(r)?r:[]):l=r&&to(r)?r:{},ro(a,{name:t,newValue:e(s,l,i)})):typeof i<"u"&&ro(a,{name:t,newValue:i}));return a}});function ar(e,n){let t=n||{};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}var Ro=/[ \t\n\f\r]/g;function Gn(e){return typeof e=="object"?e.type==="text"?ur(e.value):!1:ur(e)}function ur(e){return e.replace(Ro,"")===""}var ke=class{constructor(n,t,r){this.property=n,this.normal=t,r&&(this.space=r)}};ke.prototype.property={};ke.prototype.normal={};ke.prototype.space=null;function Jn(e,n){let t={},r={},i=-1;for(;++i<e.length;)Object.assign(t,e[i].property),Object.assign(r,e[i].normal);return new ke(t,r,n)}function Ke(e){return e.toLowerCase()}var Z=class{constructor(n,t){this.property=n,this.attribute=t}};Z.prototype.space=null;Z.prototype.boolean=!1;Z.prototype.booleanish=!1;Z.prototype.overloadedBoolean=!1;Z.prototype.number=!1;Z.prototype.commaSeparated=!1;Z.prototype.spaceSeparated=!1;Z.prototype.commaOrSpaceSeparated=!1;Z.prototype.mustUseProperty=!1;Z.prototype.defined=!1;var Ge={};lr(Ge,{boolean:()=>O,booleanish:()=>W,commaOrSpaceSeparated:()=>re,commaSeparated:()=>we,number:()=>k,overloadedBoolean:()=>Zn,spaceSeparated:()=>j});var Do=0,O=Le(),W=Le(),Zn=Le(),k=Le(),j=Le(),we=Le(),re=Le();function Le(){return 2**++Do}var et=Object.keys(Ge),Oe=class extends Z{constructor(n,t,r,i){let o=-1;if(super(n,t),sr(this,"space",i),typeof r=="number")for(;++o<et.length;){let l=et[o];sr(this,et[o],(r&Ge[l])===Ge[l])}}};Oe.prototype.defined=!0;function sr(e,n,t){t&&(e[n]=t)}var _o={}.hasOwnProperty;function ce(e){let n={},t={},r;for(r in e.properties)if(_o.call(e.properties,r)){let i=e.properties[r],o=new Oe(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),n[r]=o,t[Ke(r)]=r,t[Ke(o.attribute)]=r}return new ke(n,t,e.space)}var nt=ce({space:"xlink",transform(e,n){return"xlink:"+n.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});var tt=ce({space:"xml",transform(e,n){return"xml:"+n.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function hn(e,n){return n in e?e[n]:n}function dn(e,n){return hn(e,n.toLowerCase())}var rt=ce({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:dn,properties:{xmlns:null,xmlnsXLink:null}});var it=ce({transform(e,n){return n==="role"?n:"aria-"+n.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:W,ariaAutoComplete:null,ariaBusy:W,ariaChecked:W,ariaColCount:k,ariaColIndex:k,ariaColSpan:k,ariaControls:j,ariaCurrent:null,ariaDescribedBy:j,ariaDetails:null,ariaDisabled:W,ariaDropEffect:j,ariaErrorMessage:null,ariaExpanded:W,ariaFlowTo:j,ariaGrabbed:W,ariaHasPopup:null,ariaHidden:W,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:j,ariaLevel:k,ariaLive:null,ariaModal:W,ariaMultiLine:W,ariaMultiSelectable:W,ariaOrientation:null,ariaOwns:j,ariaPlaceholder:null,ariaPosInSet:k,ariaPressed:W,ariaReadOnly:W,ariaRelevant:null,ariaRequired:W,ariaRoleDescription:j,ariaRowCount:k,ariaRowIndex:k,ariaRowSpan:k,ariaSelected:W,ariaSetSize:k,ariaSort:null,ariaValueMax:k,ariaValueMin:k,ariaValueNow:k,ariaValueText:null,role:null}});var cr=ce({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:dn,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:we,acceptCharset:j,accessKey:j,action:null,allow:null,allowFullScreen:O,allowPaymentRequest:O,allowUserMedia:O,alt:null,as:null,async:O,autoCapitalize:null,autoComplete:j,autoFocus:O,autoPlay:O,blocking:j,capture:O,charSet:null,checked:O,cite:null,className:j,cols:k,colSpan:null,content:null,contentEditable:W,controls:O,controlsList:j,coords:k|we,crossOrigin:null,data:null,dateTime:null,decoding:null,default:O,defer:O,dir:null,dirName:null,disabled:O,download:Zn,draggable:W,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:O,formTarget:null,headers:j,height:k,hidden:O,high:k,href:null,hrefLang:null,htmlFor:j,httpEquiv:j,id:null,imageSizes:null,imageSrcSet:null,inert:O,inputMode:null,integrity:null,is:null,isMap:O,itemId:null,itemProp:j,itemRef:j,itemScope:O,itemType:j,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:O,low:k,manifest:null,max:null,maxLength:k,media:null,method:null,min:null,minLength:k,multiple:O,muted:O,name:null,nonce:null,noModule:O,noValidate:O,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:O,optimum:k,pattern:null,ping:j,placeholder:null,playsInline:O,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:O,referrerPolicy:null,rel:j,required:O,reversed:O,rows:k,rowSpan:k,sandbox:j,scope:null,scoped:O,seamless:O,selected:O,shape:null,size:k,sizes:null,slot:null,span:k,spellCheck:W,src:null,srcDoc:null,srcLang:null,srcSet:null,start:k,step:null,style:null,tabIndex:k,target:null,title:null,translate:null,type:null,typeMustMatch:O,useMap:null,value:W,width:k,wrap:null,align:null,aLink:null,archive:j,axis:null,background:null,bgColor:null,border:k,borderColor:null,bottomMargin:k,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:O,declare:O,event:null,face:null,frame:null,frameBorder:null,hSpace:k,leftMargin:k,link:null,longDesc:null,lowSrc:null,marginHeight:k,marginWidth:k,noResize:O,noHref:O,noShade:O,noWrap:O,object:null,profile:null,prompt:null,rev:null,rightMargin:k,rules:null,scheme:null,scrolling:W,standby:null,summary:null,text:null,topMargin:k,valueType:null,version:null,vAlign:null,vLink:null,vSpace:k,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:O,disableRemotePlayback:O,prefix:null,property:null,results:k,security:null,unselectable:null}});var pr=ce({space:"svg",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"},transform:hn,properties:{about:re,accentHeight:k,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:k,amplitude:k,arabicForm:null,ascent:k,attributeName:null,attributeType:null,azimuth:k,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:k,by:null,calcMode:null,capHeight:k,className:j,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:k,diffuseConstant:k,direction:null,display:null,dur:null,divisor:k,dominantBaseline:null,download:O,dx:null,dy:null,edgeMode:null,editable:null,elevation:k,enableBackground:null,end:null,event:null,exponent:k,externalResourcesRequired:null,fill:null,fillOpacity:k,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:we,g2:we,glyphName:we,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:k,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:k,horizOriginX:k,horizOriginY:k,id:null,ideographic:k,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:k,k,k1:k,k2:k,k3:k,k4:k,kernelMatrix:re,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:k,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:k,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:k,overlineThickness:k,paintOrder:null,panose1:null,path:null,pathLength:k,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:j,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:k,pointsAtY:k,pointsAtZ:k,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:re,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:re,rev:re,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:re,requiredFeatures:re,requiredFonts:re,requiredFormats:re,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:k,specularExponent:k,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:k,strikethroughThickness:k,string:null,stroke:null,strokeDashArray:re,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:k,strokeOpacity:k,strokeWidth:null,style:null,surfaceScale:k,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:re,tabIndex:k,tableValues:null,target:null,targetX:k,targetY:k,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:re,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:k,underlineThickness:k,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:k,values:null,vAlphabetic:k,vMathematical:k,vectorEffect:null,vHanging:k,vIdeographic:k,version:null,vertAdvY:k,vertOriginX:k,vertOriginY:k,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:k,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}});var No=/^data[-\w.:]+$/i,fr=/-[a-z]/g,Fo=/[A-Z]/g;function ot(e,n){let t=Ke(n),r=n,i=Z;if(t in e.normal)return e.property[e.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&No.test(n)){if(n.charAt(4)==="-"){let o=n.slice(5).replace(fr,Mo);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=n.slice(4);if(!fr.test(o)){let l=o.replace(Fo,Bo);l.charAt(0)!=="-"&&(l="-"+l),n="data"+l}}i=Oe}return new i(r,n)}function Bo(e){return"-"+e.toLowerCase()}function Mo(e){return e.charAt(1).toUpperCase()}var lt={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"};var mr=Jn([tt,nt,rt,it,cr],"html"),at=Jn([tt,nt,rt,it,pr],"svg");function hr(e){return e.join(" ").trim()}var Er=Kn(Sr(),1),Cr=Er.default;var gn=Ir("end"),Me=Ir("start");function Ir(e){return n;function n(t){let r=t&&t.position&&t.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function st(e){let n=Me(e),t=gn(e);if(n&&t)return{start:n,end:t}}function Se(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ar(e.position):"start"in e||"end"in e?Ar(e):"line"in e||"column"in e?ct(e):""}function ct(e){return Tr(e&&e.line)+":"+Tr(e&&e.column)}function Ar(e){return ct(e&&e.start)+"-"+ct(e&&e.end)}function Tr(e){return e&&typeof e=="number"?e:1}var Y=class extends Error{constructor(n,t,r){super(),typeof t=="string"&&(r=t,t=void 0);let i="",o={},l=!1;if(t&&("line"in t&&"column"in t?o={place:t}:"start"in t&&"end"in t?o={place:t}:"type"in t?o={ancestors:[t],place:t.position}:o={...t}),typeof n=="string"?i=n:!o.cause&&n&&(l=!0,i=n.message,o.cause=n),!o.ruleId&&!o.source&&typeof r=="string"){let u=r.indexOf(":");u===-1?o.ruleId=r:(o.source=r.slice(0,u),o.ruleId=r.slice(u+1))}if(!o.place&&o.ancestors&&o.ancestors){let u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}let 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=Se(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,this.expected,this.note,this.url}};Y.prototype.file="";Y.prototype.name="";Y.prototype.reason="";Y.prototype.message="";Y.prototype.stack="";Y.prototype.column=void 0;Y.prototype.line=void 0;Y.prototype.ancestors=void 0;Y.prototype.cause=void 0;Y.prototype.fatal=void 0;Y.prototype.place=void 0;Y.prototype.ruleId=void 0;Y.prototype.source=void 0;var pt={}.hasOwnProperty,Go=new Map,Jo=/[A-Z]/g,Zo=/-([a-z])/g,el=new Set(["table","tbody","thead","tfoot","tr"]),nl=new Set(["td","th"]);function ft(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");let t=n.filePath||void 0,r;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=rl(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=tl(t,n.jsx,n.jsxs)}let i={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:r,elementAttributeNameCase:n.elementAttributeNameCase||"react",filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?at:mr,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},o=Pr(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Pr(e,n,t){if(n.type==="element"||n.type==="root"){let r=e.schema,i=r;n.type==="element"&&n.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=at,e.schema=i),e.ancestors.push(n);let o=il(e,n),l=ol(e,e.ancestors),a=e.Fragment;if(e.ancestors.pop(),n.type==="element")if(o&&el.has(n.tagName)&&(o=o.filter(function(u){return typeof u=="string"?!Gn(u):!0})),pt.call(e.components,n.tagName)){let u=n.tagName;a=e.components[u],typeof a!="string"&&a!==e.Fragment&&e.passNode&&(l.node=n)}else a=n.tagName;if(o.length>0){let u=o.length>1?o:o[0];u&&(l.children=u)}return e.schema=r,e.create(n,a,l,t)}if(n.type==="text")return n.value}function tl(e,n,t){return r;function r(i,o,l,a){let c=Array.isArray(l.children)?t:n;return a?c(o,l,a):c(o,l)}}function rl(e,n){return t;function t(r,i,o,l){let a=Array.isArray(o.children),u=Me(r);return n(i,o,l,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function il(e,n){let t=[],r=-1,i=e.passKeys?new Map:Go;for(;++r<n.children.length;){let o=n.children[r],l;if(e.passKeys&&o.type==="element"){let u=i.get(o.tagName)||0;l=o.tagName+"-"+u,i.set(o.tagName,u+1)}let a=Pr(e,o,l);a!==void 0&&t.push(a)}return t}function ol(e,n){let t=n[n.length-1],r={},i;if("properties"in t&&t.properties){let o;for(i in t.properties)if(i!=="children"&&pt.call(t.properties,i)){let l=ll(e,n,i,t.properties[i]);if(l){let[a,u]=l;e.tableCellAlignToStyle&&a==="align"&&typeof u=="string"&&nl.has(t.tagName)?o=u:r[a]=u}}if(o){let l=r.style||(r.style={});l[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=o}}return r}function ll(e,n,t,r){let i=ot(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=i.commaSeparated?ar(r):hr(r)),i.property==="style"){let o=typeof r=="object"?r:al(e,n,String(r));return e.stylePropertyNameCase==="css"&&(o=ul(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&i.space?lt[i.property]||i.property:i.attribute,r]}}function al(e,n,t){let r={};try{Cr(t,i)}catch(o){if(!e.ignoreInvalidStyle){let l=o,a=new Y("Cannot parse `style` attribute",{ancestors:n,cause:l,source:"hast-util-to-jsx-runtime",ruleId:"style"});throw a.file=e.filePath||void 0,a.url="https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute",a}}return r;function i(o,l){let a=o;a.slice(0,2)!=="--"&&(a.slice(0,4)==="-ms-"&&(a="ms-"+a.slice(4)),a=a.replace(Zo,cl)),r[a]=l}}function ul(e){let n={},t;for(t in e)pt.call(e,t)&&(n[sl(t)]=e[t]);return n}function sl(e){let n=e.replace(Jo,pl);return n.slice(0,3)==="ms-"&&(n="-"+n),n}function cl(e,n){return n.toUpperCase()}function pl(e){return"-"+e.toLowerCase()}var Je={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"]};var fl=Ee(/\p{P}/u),le=Ee(/[A-Za-z]/),K=Ee(/[\dA-Za-z]/),Lr=Ee(/[#-'*+\--9=?A-Z^-~]/);function Ze(e){return e!==null&&(e<32||e===127)}var en=Ee(/\d/),Or=Ee(/[\dA-Fa-f]/),mt=Ee(/[!-/:-@[-`{-~]/);function I(e){return e!==null&&e<-2}function Q(e){return e!==null&&(e<0||e===32)}function P(e){return e===-2||e===-1||e===32}function zr(e){return mt(e)||fl(e)}var vr=Ee(/\s/);function Ee(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}var ml={'"':"quot","&":"amp","<":"lt",">":"gt"};function Rr(e){return e.replace(/["&<>]/g,n);function n(t){return"&"+ml[t]+";"}}function Dr(e,n){let t=Rr(ae(e||""));if(!n)return t;let r=t.indexOf(":"),i=t.indexOf("?"),o=t.indexOf("#"),l=t.indexOf("/");return r<0||l>-1&&r>l||i>-1&&r>i||o>-1&&r>o||n.test(t.slice(0,r))?t:""}function ae(e){let n=[],t=-1,r=0,i=0;for(;++t<e.length;){let o=e.charCodeAt(t),l="";if(o===37&&K(e.charCodeAt(t+1))&&K(e.charCodeAt(t+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){let a=e.charCodeAt(t+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="\uFFFD"}else l=String.fromCharCode(o);l&&(n.push(e.slice(r,t),encodeURIComponent(l)),r=t+i+1,l=""),i&&(t+=i,i=0)}return n.join("")+e.slice(r)}var Qe=Kn(Gr());var _l={};function kt(e,n){let t=n||_l,r=typeof t.includeImageAlt=="boolean"?t.includeImageAlt:!0,i=typeof t.includeHtml=="boolean"?t.includeHtml:!0;return Zr(e,r,i)}function Zr(e,n,t){if(Nl(e)){if("value"in e)return e.type==="html"&&!t?"":e.value;if(n&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Jr(e.children,n,t)}return Array.isArray(e)?Jr(e,n,t):""}function Jr(e,n,t){let r=[],i=-1;for(;++i<e.length;)r[i]=Zr(e[i],n,t);return r.join("")}function Nl(e){return!!(e&&typeof e=="object")}var ei=document.createElement("i");function Ue(e){let n="&"+e+";";ei.innerHTML=n;let t=ei.textContent;return t.charCodeAt(t.length-1)===59&&e!=="semi"||t===n?!1:t}function J(e,n,t,r){let i=e.length,o=0,l;if(n<0?n=-n>i?0:i+n:n=n>i?i:n,t=t>0?t:0,r.length<1e4)l=Array.from(r),l.unshift(n,t),e.splice(...l);else for(t&&e.splice(n,t);o<r.length;)l=r.slice(o,o+1e4),l.unshift(n,0),e.splice(...l),o+=1e4,n+=1e4}function te(e,n){return e.length>0?(J(e,e.length,0,n),e):n}var ni={}.hasOwnProperty;function ti(e){let n={},t=-1;for(;++t<e.length;)Fl(n,e[t]);return n}function Fl(e,n){let t;for(t in n){let i=(ni.call(e,t)?e[t]:void 0)||(e[t]={}),o=n[t],l;if(o)for(l in o){ni.call(i,l)||(i[l]=[]);let a=o[l];Bl(i[l],Array.isArray(a)?a:a?[a]:[])}}}function Bl(e,n){let t=-1,r=[];for(;++t<n.length;)(n[t].add==="after"?e:r).push(n[t]);J(e,0,0,r)}function wn(e,n){let t=Number.parseInt(e,n);return t<9||t===11||t>13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"\uFFFD":String.fromCodePoint(t)}function be(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function z(e,n,t,r){let i=r?r-1:Number.POSITIVE_INFINITY,o=0;return l;function l(u){return P(u)?(e.enter(t),a(u)):n(u)}function a(u){return P(u)&&o++<i?(e.consume(u),a):(e.exit(t),n(u))}}var ri={tokenize:Ml};function Ml(e){let n=e.attempt(this.parser.constructs.contentInitial,r,i),t;return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),z(e,n,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){let u=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=u),t=u,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return I(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}var oi={tokenize:jl},ii={tokenize:Ul};function jl(e){let n=this,t=[],r=0,i,o,l;return a;function a(C){if(r<t.length){let F=t[r];return n.containerState=F[1],e.attempt(F[0].continuation,u,c)(C)}return c(C)}function u(C){if(r++,n.containerState._closeFlow){n.containerState._closeFlow=void 0,i&&A();let F=n.events.length,_=F,y;for(;_--;)if(n.events[_][0]==="exit"&&n.events[_][1].type==="chunkFlow"){y=n.events[_][1].end;break}x(r);let B=F;for(;B<n.events.length;)n.events[B][1].end=Object.assign({},y),B++;return J(n.events,_+1,0,n.events.slice(F)),n.events.length=B,c(C)}return a(C)}function c(C){if(r===t.length){if(!i)return h(C);if(i.currentConstruct&&i.currentConstruct.concrete)return E(C);n.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return n.containerState={},e.check(ii,s,d)(C)}function s(C){return i&&A(),x(r),h(C)}function d(C){return n.parser.lazy[n.now().line]=r!==t.length,l=n.now().offset,E(C)}function h(C){return n.containerState={},e.attempt(ii,p,E)(C)}function p(C){return r++,t.push([n.currentConstruct,n.containerState]),h(C)}function E(C){if(C===null){i&&A(),x(0),e.consume(C);return}return i=i||n.parser.flow(n.now()),e.enter("chunkFlow",{contentType:"flow",previous:o,_tokenizer:i}),w(C)}function w(C){if(C===null){b(e.exit("chunkFlow"),!0),x(0),e.consume(C);return}return I(C)?(e.consume(C),b(e.exit("chunkFlow")),r=0,n.interrupt=void 0,a):(e.consume(C),w)}function b(C,F){let _=n.sliceStream(C);if(F&&_.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(_),n.parser.lazy[C.start.line]){let y=i.events.length;for(;y--;)if(i.events[y][1].start.offset<l&&(!i.events[y][1].end||i.events[y][1].end.offset>l))return;let B=n.events.length,X=B,M,V;for(;X--;)if(n.events[X][0]==="exit"&&n.events[X][1].type==="chunkFlow"){if(M){V=n.events[X][1].end;break}M=!0}for(x(r),y=B;y<n.events.length;)n.events[y][1].end=Object.assign({},V),y++;J(n.events,X+1,0,n.events.slice(B)),n.events.length=y}}function x(C){let F=t.length;for(;F-- >C;){let _=t[F];n.containerState=_[1],_[0].exit.call(n,e)}t.length=C}function A(){i.write([null]),o=void 0,i=void 0,n.containerState._closeFlow=void 0}}function Ul(e,n,t){return z(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function bt(e){if(e===null||Q(e)||vr(e))return 1;if(zr(e))return 2}function He(e,n,t){let r=[],i=-1;for(;++i<e.length;){let o=e[i].resolveAll;o&&!r.includes(o)&&(n=o(n,t),r.push(o))}return n}var tn={name:"attention",tokenize:Vl,resolveAll:Hl};function Hl(e,n){let t=-1,r,i,o,l,a,u,c,s;for(;++t<e.length;)if(e[t][0]==="enter"&&e[t][1].type==="attentionSequence"&&e[t][1]._close){for(r=t;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&n.sliceSerialize(e[r][1]).charCodeAt(0)===n.sliceSerialize(e[t][1]).charCodeAt(0)){if((e[r][1]._close||e[t][1]._open)&&(e[t][1].end.offset-e[t][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[t][1].end.offset-e[t][1].start.offset)%3))continue;u=e[r][1].end.offset-e[r][1].start.offset>1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;let d=Object.assign({},e[r][1].end),h=Object.assign({},e[t][1].start);li(d,-u),li(h,u),l={type:u>1?"strongSequence":"emphasisSequence",start:d,end:Object.assign({},e[r][1].end)},a={type:u>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[t][1].start),end:h},o={type:u>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[t][1].start)},i={type:u>1?"strong":"emphasis",start:Object.assign({},l.start),end:Object.assign({},a.end)},e[r][1].end=Object.assign({},l.start),e[t][1].start=Object.assign({},a.end),c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=te(c,[["enter",e[r][1],n],["exit",e[r][1],n]])),c=te(c,[["enter",i,n],["enter",l,n],["exit",l,n],["enter",o,n]]),c=te(c,He(n.parser.constructs.insideSpan.null,e.slice(r+1,t),n)),c=te(c,[["exit",o,n],["enter",a,n],["exit",a,n],["exit",i,n]]),e[t][1].end.offset-e[t][1].start.offset?(s=2,c=te(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):s=0,J(e,r-1,t-r+3,c),t=r+c.length-s-2;break}}for(t=-1;++t<e.length;)e[t][1].type==="attentionSequence"&&(e[t][1].type="data");return e}function Vl(e,n){let t=this.parser.constructs.attentionMarkers.null,r=this.previous,i=bt(r),o;return l;function l(u){return o=u,e.enter("attentionSequence"),a(u)}function a(u){if(u===o)return e.consume(u),a;let c=e.exit("attentionSequence"),s=bt(u),d=!s||s===2&&i||t.includes(u),h=!i||i===2&&s||t.includes(r);return c._open=!!(o===42?d:d&&(i||!h)),c._close=!!(o===42?h:h&&(s||!d)),n(u)}}function li(e,n){e.column+=n,e.offset+=n,e._bufferIndex+=n}var wt={name:"autolink",tokenize:ql};function ql(e,n,t){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return le(p)?(e.consume(p),l):c(p)}function l(p){return p===43||p===45||p===46||K(p)?(r=1,a(p)):c(p)}function a(p){return p===58?(e.consume(p),r=0,u):(p===43||p===45||p===46||K(p))&&r++<32?(e.consume(p),a):(r=0,c(p))}function u(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):p===null||p===32||p===60||Ze(p)?t(p):(e.consume(p),u)}function c(p){return p===64?(e.consume(p),s):Lr(p)?(e.consume(p),c):t(p)}function s(p){return K(p)?d(p):t(p)}function d(p){return p===46?(e.consume(p),r=0,s):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),n):h(p)}function h(p){if((p===45||K(p))&&r++<63){let E=p===45?h:d;return e.consume(p),E}return t(p)}}var Ce={tokenize:Wl,partial:!0};function Wl(e,n,t){return r;function r(o){return P(o)?z(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||I(o)?n(o):t(o)}}var Sn={name:"blockQuote",tokenize:Ql,continuation:{tokenize:Xl},exit:Yl};function Ql(e,n,t){let r=this;return i;function i(l){if(l===62){let a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return t(l)}function o(l){return P(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),n):(e.exit("blockQuotePrefix"),n(l))}}function Xl(e,n,t){let r=this;return i;function i(l){return P(l)?z(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Sn,n,t)(l)}}function Yl(e){e.exit("blockQuote")}var En={name:"characterEscape",tokenize:$l};function $l(e,n,t){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return mt(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),n):t(o)}}var Cn={name:"characterReference",tokenize:Kl};function Kl(e,n,t){let r=this,i=0,o,l;return a;function a(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),u}function u(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,l=K,s(d))}function c(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=Or,s):(e.enter("characterReferenceValue"),o=7,l=en,s(d))}function s(d){if(d===59&&i){let h=e.exit("characterReferenceValue");return l===K&&!Ue(r.sliceSerialize(h))?t(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),n)}return l(d)&&i++<o?(e.consume(d),s):t(d)}}var ai={tokenize:Jl,partial:!0},In={name:"codeFenced",tokenize:Gl,concrete:!0};function Gl(e,n,t){let r=this,i={tokenize:_,partial:!0},o=0,l=0,a;return u;function u(y){return c(y)}function c(y){let B=r.events[r.events.length-1];return o=B&&B[1].type==="linePrefix"?B[2].sliceSerialize(B[1],!0).length:0,a=y,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),s(y)}function s(y){return y===a?(l++,e.consume(y),s):l<3?t(y):(e.exit("codeFencedFenceSequence"),P(y)?z(e,d,"whitespace")(y):d(y))}function d(y){return y===null||I(y)?(e.exit("codeFencedFence"),r.interrupt?n(y):e.check(ai,w,F)(y)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===null||I(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(y)):P(y)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),z(e,p,"whitespace")(y)):y===96&&y===a?t(y):(e.consume(y),h)}function p(y){return y===null||I(y)?d(y):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),E(y))}function E(y){return y===null||I(y)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(y)):y===96&&y===a?t(y):(e.consume(y),E)}function w(y){return e.attempt(i,F,b)(y)}function b(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),x}function x(y){return o>0&&P(y)?z(e,A,"linePrefix",o+1)(y):A(y)}function A(y){return y===null||I(y)?e.check(ai,w,F)(y):(e.enter("codeFlowValue"),C(y))}function C(y){return y===null||I(y)?(e.exit("codeFlowValue"),A(y)):(e.consume(y),C)}function F(y){return e.exit("codeFenced"),n(y)}function _(y,B,X){let M=0;return V;function V(v){return y.enter("lineEnding"),y.consume(v),y.exit("lineEnding"),ue}function ue(v){return y.enter("codeFencedFence"),P(v)?z(y,H,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):H(v)}function H(v){return v===a?(y.enter("codeFencedFenceSequence"),T(v)):X(v)}function T(v){return v===a?(M++,y.consume(v),T):M>=l?(y.exit("codeFencedFenceSequence"),P(v)?z(y,R,"whitespace")(v):R(v)):X(v)}function R(v){return v===null||I(v)?(y.exit("codeFencedFence"),B(v)):X(v)}}}function Jl(e,n,t){let r=this;return i;function i(l){return l===null?t(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}var rn={name:"codeIndented",tokenize:ea},Zl={tokenize:na,partial:!0};function ea(e,n,t){let r=this;return i;function i(c){return e.enter("codeIndented"),z(e,o,"linePrefix",4+1)(c)}function o(c){let s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?l(c):t(c)}function l(c){return c===null?u(c):I(c)?e.attempt(Zl,l,u)(c):(e.enter("codeFlowValue"),a(c))}function a(c){return c===null||I(c)?(e.exit("codeFlowValue"),l(c)):(e.consume(c),a)}function u(c){return e.exit("codeIndented"),n(c)}}function na(e,n,t){let r=this;return i;function i(l){return r.parser.lazy[r.now().line]?t(l):I(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):z(e,o,"linePrefix",4+1)(l)}function o(l){let a=r.events[r.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):I(l)?i(l):t(l)}}var St={name:"codeText",tokenize:ia,resolve:ta,previous:ra};function ta(e){let n=e.length-4,t=3,r,i;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(r=t;++r<n;)if(e[r][1].type==="codeTextData"){e[t][1].type="codeTextPadding",e[n][1].type="codeTextPadding",t+=2,n-=2;break}}for(r=t-1,n++;++r<=n;)i===void 0?r!==n&&e[r][1].type!=="lineEnding"&&(i=r):(r===n||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),n-=r-i-2,r=i+2),i=void 0);return e}function ra(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function ia(e,n,t){let r=this,i=0,o,l;return a;function a(h){return e.enter("codeText"),e.enter("codeTextSequence"),u(h)}function u(h){return h===96?(e.consume(h),i++,u):(e.exit("codeTextSequence"),c(h))}function c(h){return h===null?t(h):h===32?(e.enter("space"),e.consume(h),e.exit("space"),c):h===96?(l=e.enter("codeTextSequence"),o=0,d(h)):I(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("codeTextData"),s(h))}function s(h){return h===null||h===32||h===96||I(h)?(e.exit("codeTextData"),c(h)):(e.consume(h),s)}function d(h){return h===96?(e.consume(h),o++,d):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),n(h)):(l.type="codeTextData",s(h))}}function An(e){let n={},t=-1,r,i,o,l,a,u,c;for(;++t<e.length;){for(;t in n;)t=n[t];if(r=e[t],t&&r[1].type==="chunkFlow"&&e[t-1][1].type==="listItemPrefix"&&(u=r[1]._tokenizer.events,o=0,o<u.length&&u[o][1].type==="lineEndingBlank"&&(o+=2),o<u.length&&u[o][1].type==="content"))for(;++o<u.length&&u[o][1].type!=="content";)u[o][1].type==="chunkText"&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(n,oa(e,t)),t=n[t],c=!0);else if(r[1]._container){for(o=t,i=void 0;o--&&(l=e[o],l[1].type==="lineEnding"||l[1].type==="lineEndingBlank");)l[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);i&&(r[1].end=Object.assign({},e[i][1].start),a=e.slice(i,t),a.unshift(r),J(e,i,t-i+1,a))}}return!c}function oa(e,n){let t=e[n][1],r=e[n][2],i=n-1,o=[],l=t._tokenizer||r.parser[t.contentType](t.start),a=l.events,u=[],c={},s,d,h=-1,p=t,E=0,w=0,b=[w];for(;p;){for(;e[++i][1]!==p;);o.push(i),p._tokenizer||(s=r.sliceStream(p),p.next||s.push(null),d&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(s),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=t;++h<a.length;)a[h][0]==="exit"&&a[h-1][0]==="enter"&&a[h][1].type===a[h-1][1].type&&a[h][1].start.line!==a[h][1].end.line&&(w=h+1,b.push(w),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):b.pop(),h=b.length;h--;){let x=a.slice(b[h],b[h+1]),A=o.pop();u.unshift([A,A+x.length-1]),J(e,A,2,x)}for(h=-1;++h<u.length;)c[E+u[h][0]]=E+u[h][1],E+=u[h][1]-u[h][0]-1;return c}var Et={tokenize:ua,resolve:aa},la={tokenize:sa,partial:!0};function aa(e){return An(e),e}function ua(e,n){let t;return r;function r(a){return e.enter("content"),t=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):I(a)?e.check(la,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),n(a)}function l(a){return e.consume(a),e.exit("chunkContent"),t.next=e.enter("chunkContent",{contentType:"content",previous:t}),t=t.next,i}}function sa(e,n,t){let r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),z(e,o,"linePrefix")}function o(l){if(l===null||I(l))return t(l);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?n(l):e.interrupt(r.parser.constructs.flow,t,n)(l)}}function Tn(e,n,t,r,i,o,l,a,u){let c=u||Number.POSITIVE_INFINITY,s=0;return d;function d(x){return x===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(x),e.exit(o),h):x===null||x===32||x===41||Ze(x)?t(x):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),w(x))}function h(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(i),e.exit(r),n):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(x))}function p(x){return x===62?(e.exit("chunkString"),e.exit(a),h(x)):x===null||x===60||I(x)?t(x):(e.consume(x),x===92?E:p)}function E(x){return x===60||x===62||x===92?(e.consume(x),p):p(x)}function w(x){return!s&&(x===null||x===41||Q(x))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),n(x)):s<c&&x===40?(e.consume(x),s++,w):x===41?(e.consume(x),s--,w):x===null||x===32||x===40||Ze(x)?t(x):(e.consume(x),x===92?b:w)}function b(x){return x===40||x===41||x===92?(e.consume(x),w):w(x)}}function Pn(e,n,t,r,i,o){let l=this,a=0,u;return c;function c(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),s}function s(p){return a>999||p===null||p===91||p===93&&!u||p===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?t(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),n):I(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),s):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===null||p===91||p===93||I(p)||a++>999?(e.exit("chunkString"),s(p)):(e.consume(p),u||(u=!P(p)),p===92?h:d)}function h(p){return p===91||p===92||p===93?(e.consume(p),a++,d):d(p)}}function Ln(e,n,t,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,u):t(h)}function u(h){return h===l?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),n):(e.enter(o),c(h))}function c(h){return h===l?(e.exit(o),u(l)):h===null?t(h):I(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),z(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),s(h))}function s(h){return h===l||h===null||I(h)?(e.exit("chunkString"),c(h)):(e.consume(h),h===92?d:s)}function d(h){return h===l||h===92?(e.consume(h),s):s(h)}}function ve(e,n){let t;return r;function r(i){return I(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t=!0,r):P(i)?z(e,r,t?"linePrefix":"lineSuffix")(i):n(i)}}var Ct={name:"definition",tokenize:pa},ca={tokenize:fa,partial:!0};function pa(e,n,t){let r=this,i;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return Pn.call(r,e,a,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function a(p){return i=be(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),u):t(p)}function u(p){return Q(p)?ve(e,c)(p):c(p)}function c(p){return Tn(e,s,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function s(p){return e.attempt(ca,d,d)(p)}function d(p){return P(p)?z(e,h,"whitespace")(p):h(p)}function h(p){return p===null||I(p)?(e.exit("definition"),r.parser.defined.push(i),n(p)):t(p)}}function fa(e,n,t){return r;function r(a){return Q(a)?ve(e,i)(a):t(a)}function i(a){return Ln(e,o,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return P(a)?z(e,l,"whitespace")(a):l(a)}function l(a){return a===null||I(a)?n(a):t(a)}}var It={name:"hardBreakEscape",tokenize:ma};function ma(e,n,t){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return I(o)?(e.exit("hardBreakEscape"),n(o)):t(o)}}var At={name:"headingAtx",tokenize:da,resolve:ha};function ha(e,n){let t=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),t-2>r&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(r===t-1||t-4>r&&e[t-2][1].type==="whitespace")&&(t-=r+1===t?2:4),t>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[t][1].end},o={type:"chunkText",start:e[r][1].start,end:e[t][1].end,contentType:"text"},J(e,r,t-r+1,[["enter",i,n],["enter",o,n],["exit",o,n],["exit",i,n]])),e}function da(e,n,t){let r=0;return i;function i(s){return e.enter("atxHeading"),o(s)}function o(s){return e.enter("atxHeadingSequence"),l(s)}function l(s){return s===35&&r++<6?(e.consume(s),l):s===null||Q(s)?(e.exit("atxHeadingSequence"),a(s)):t(s)}function a(s){return s===35?(e.enter("atxHeadingSequence"),u(s)):s===null||I(s)?(e.exit("atxHeading"),n(s)):P(s)?z(e,a,"whitespace")(s):(e.enter("atxHeadingText"),c(s))}function u(s){return s===35?(e.consume(s),u):(e.exit("atxHeadingSequence"),a(s))}function c(s){return s===null||s===35||Q(s)?(e.exit("atxHeadingText"),a(s)):(e.consume(s),c)}}var ui=["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"],Tt=["pre","script","style","textarea"];var Pt={name:"htmlFlow",tokenize:ka,resolveTo:xa,concrete:!0},ga={tokenize:wa,partial:!0},ya={tokenize:ba,partial:!0};function xa(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function ka(e,n,t){let r=this,i,o,l,a,u;return c;function c(m){return s(m)}function s(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),d}function d(m){return m===33?(e.consume(m),h):m===47?(e.consume(m),o=!0,w):m===63?(e.consume(m),i=3,r.interrupt?n:f):le(m)?(e.consume(m),l=String.fromCharCode(m),b):t(m)}function h(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,a=0,E):le(m)?(e.consume(m),i=4,r.interrupt?n:f):t(m)}function p(m){return m===45?(e.consume(m),r.interrupt?n:f):t(m)}function E(m){let ie="CDATA[";return m===ie.charCodeAt(a++)?(e.consume(m),a===ie.length?r.interrupt?n:H:E):t(m)}function w(m){return le(m)?(e.consume(m),l=String.fromCharCode(m),b):t(m)}function b(m){if(m===null||m===47||m===62||Q(m)){let ie=m===47,Ae=l.toLowerCase();return!ie&&!o&&Tt.includes(Ae)?(i=1,r.interrupt?n(m):H(m)):ui.includes(l.toLowerCase())?(i=6,ie?(e.consume(m),x):r.interrupt?n(m):H(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?t(m):o?A(m):C(m))}return m===45||K(m)?(e.consume(m),l+=String.fromCharCode(m),b):t(m)}function x(m){return m===62?(e.consume(m),r.interrupt?n:H):t(m)}function A(m){return P(m)?(e.consume(m),A):V(m)}function C(m){return m===47?(e.consume(m),V):m===58||m===95||le(m)?(e.consume(m),F):P(m)?(e.consume(m),C):V(m)}function F(m){return m===45||m===46||m===58||m===95||K(m)?(e.consume(m),F):_(m)}function _(m){return m===61?(e.consume(m),y):P(m)?(e.consume(m),_):C(m)}function y(m){return m===null||m===60||m===61||m===62||m===96?t(m):m===34||m===39?(e.consume(m),u=m,B):P(m)?(e.consume(m),y):X(m)}function B(m){return m===u?(e.consume(m),u=null,M):m===null||I(m)?t(m):(e.consume(m),B)}function X(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||Q(m)?_(m):(e.consume(m),X)}function M(m){return m===47||m===62||P(m)?C(m):t(m)}function V(m){return m===62?(e.consume(m),ue):t(m)}function ue(m){return m===null||I(m)?H(m):P(m)?(e.consume(m),ue):t(m)}function H(m){return m===45&&i===2?(e.consume(m),q):m===60&&i===1?(e.consume(m),$):m===62&&i===4?(e.consume(m),se):m===63&&i===3?(e.consume(m),f):m===93&&i===5?(e.consume(m),he):I(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ga,ge,T)(m)):m===null||I(m)?(e.exit("htmlFlowData"),T(m)):(e.consume(m),H)}function T(m){return e.check(ya,R,ge)(m)}function R(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),v}function v(m){return m===null||I(m)?T(m):(e.enter("htmlFlowData"),H(m))}function q(m){return m===45?(e.consume(m),f):H(m)}function $(m){return m===47?(e.consume(m),l="",pe):H(m)}function pe(m){if(m===62){let ie=l.toLowerCase();return Tt.includes(ie)?(e.consume(m),se):H(m)}return le(m)&&l.length<8?(e.consume(m),l+=String.fromCharCode(m),pe):H(m)}function he(m){return m===93?(e.consume(m),f):H(m)}function f(m){return m===62?(e.consume(m),se):m===45&&i===2?(e.consume(m),f):H(m)}function se(m){return m===null||I(m)?(e.exit("htmlFlowData"),ge(m)):(e.consume(m),se)}function ge(m){return e.exit("htmlFlow"),n(m)}}function ba(e,n,t){let r=this;return i;function i(l){return I(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):t(l)}function o(l){return r.parser.lazy[r.now().line]?t(l):n(l)}}function wa(e,n,t){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ce,n,t)}}var Lt={name:"htmlText",tokenize:Sa};function Sa(e,n,t){let r=this,i,o,l;return a;function a(f){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(f),u}function u(f){return f===33?(e.consume(f),c):f===47?(e.consume(f),_):f===63?(e.consume(f),C):le(f)?(e.consume(f),X):t(f)}function c(f){return f===45?(e.consume(f),s):f===91?(e.consume(f),o=0,E):le(f)?(e.consume(f),A):t(f)}function s(f){return f===45?(e.consume(f),p):t(f)}function d(f){return f===null?t(f):f===45?(e.consume(f),h):I(f)?(l=d,$(f)):(e.consume(f),d)}function h(f){return f===45?(e.consume(f),p):d(f)}function p(f){return f===62?q(f):f===45?h(f):d(f)}function E(f){let se="CDATA[";return f===se.charCodeAt(o++)?(e.consume(f),o===se.length?w:E):t(f)}function w(f){return f===null?t(f):f===93?(e.consume(f),b):I(f)?(l=w,$(f)):(e.consume(f),w)}function b(f){return f===93?(e.consume(f),x):w(f)}function x(f){return f===62?q(f):f===93?(e.consume(f),x):w(f)}function A(f){return f===null||f===62?q(f):I(f)?(l=A,$(f)):(e.consume(f),A)}function C(f){return f===null?t(f):f===63?(e.consume(f),F):I(f)?(l=C,$(f)):(e.consume(f),C)}function F(f){return f===62?q(f):C(f)}function _(f){return le(f)?(e.consume(f),y):t(f)}function y(f){return f===45||K(f)?(e.consume(f),y):B(f)}function B(f){return I(f)?(l=B,$(f)):P(f)?(e.consume(f),B):q(f)}function X(f){return f===45||K(f)?(e.consume(f),X):f===47||f===62||Q(f)?M(f):t(f)}function M(f){return f===47?(e.consume(f),q):f===58||f===95||le(f)?(e.consume(f),V):I(f)?(l=M,$(f)):P(f)?(e.consume(f),M):q(f)}function V(f){return f===45||f===46||f===58||f===95||K(f)?(e.consume(f),V):ue(f)}function ue(f){return f===61?(e.consume(f),H):I(f)?(l=ue,$(f)):P(f)?(e.consume(f),ue):M(f)}function H(f){return f===null||f===60||f===61||f===62||f===96?t(f):f===34||f===39?(e.consume(f),i=f,T):I(f)?(l=H,$(f)):P(f)?(e.consume(f),H):(e.consume(f),R)}function T(f){return f===i?(e.consume(f),i=void 0,v):f===null?t(f):I(f)?(l=T,$(f)):(e.consume(f),T)}function R(f){return f===null||f===34||f===39||f===60||f===61||f===96?t(f):f===47||f===62||Q(f)?M(f):(e.consume(f),R)}function v(f){return f===47||f===62||Q(f)?M(f):t(f)}function q(f){return f===62?(e.consume(f),e.exit("htmlTextData"),e.exit("htmlText"),n):t(f)}function $(f){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),pe}function pe(f){return P(f)?z(e,he,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):he(f)}function he(f){return e.enter("htmlTextData"),l(f)}}var Re={name:"labelEnd",tokenize:Pa,resolveTo:Ta,resolveAll:Aa},Ea={tokenize:La},Ca={tokenize:Oa},Ia={tokenize:za};function Aa(e){let n=-1;for(;++n<e.length;){let t=e[n][1];(t.type==="labelImage"||t.type==="labelLink"||t.type==="labelEnd")&&(e.splice(n+1,t.type==="labelImage"?4:2),t.type="data",n++)}return e}function Ta(e,n){let t=e.length,r=0,i,o,l,a;for(;t--;)if(i=e[t][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[t][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[t][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=t,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=t);let u={type:e[o][1].type==="labelLink"?"link":"image",start:Object.assign({},e[o][1].start),end:Object.assign({},e[e.length-1][1].end)},c={type:"label",start:Object.assign({},e[o][1].start),end:Object.assign({},e[l][1].end)},s={type:"labelText",start:Object.assign({},e[o+r+2][1].end),end:Object.assign({},e[l-2][1].start)};return a=[["enter",u,n],["enter",c,n]],a=te(a,e.slice(o+1,o+r+3)),a=te(a,[["enter",s,n]]),a=te(a,He(n.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),n)),a=te(a,[["exit",s,n],e[l-2],e[l-1],["exit",c,n]]),a=te(a,e.slice(l+1)),a=te(a,[["exit",u,n]]),J(e,o,e.length,a),e}function Pa(e,n,t){let r=this,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?d(h):(l=r.parser.defined.includes(be(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(h),e.exit("labelMarker"),e.exit("labelEnd"),u):t(h)}function u(h){return h===40?e.attempt(Ea,s,l?s:d)(h):h===91?e.attempt(Ca,s,l?c:d)(h):l?s(h):d(h)}function c(h){return e.attempt(Ia,s,d)(h)}function s(h){return n(h)}function d(h){return o._balanced=!0,t(h)}}function La(e,n,t){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),i}function i(d){return Q(d)?ve(e,o)(d):o(d)}function o(d){return d===41?s(d):Tn(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function l(d){return Q(d)?ve(e,u)(d):s(d)}function a(d){return t(d)}function u(d){return d===34||d===39||d===40?Ln(e,c,t,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):s(d)}function c(d){return Q(d)?ve(e,s)(d):s(d)}function s(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),n):t(d)}}function Oa(e,n,t){let r=this;return i;function i(a){return Pn.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(be(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?n(a):t(a)}function l(a){return t(a)}}function za(e,n,t){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),n):t(o)}}var Ot={name:"labelStartImage",tokenize:va,resolveAll:Re.resolveAll};function va(e,n,t){let r=this;return i;function i(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),o}function o(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),l):t(a)}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(a):n(a)}}var zt={name:"labelStartLink",tokenize:Ra,resolveAll:Re.resolveAll};function Ra(e,n,t){let r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?t(l):n(l)}}var on={name:"lineEnding",tokenize:Da};function Da(e,n){return t;function t(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),z(e,n,"linePrefix")}}var De={name:"thematicBreak",tokenize:_a};function _a(e,n,t){let r=0,i;return o;function o(c){return e.enter("thematicBreak"),l(c)}function l(c){return i=c,a(c)}function a(c){return c===i?(e.enter("thematicBreakSequence"),u(c)):r>=3&&(c===null||I(c))?(e.exit("thematicBreak"),n(c)):t(c)}function u(c){return c===i?(e.consume(c),r++,u):(e.exit("thematicBreakSequence"),P(c)?z(e,a,"whitespace")(c):a(c))}}var ee={name:"list",tokenize:Ba,continuation:{tokenize:Ma},exit:Ua},Na={tokenize:Ha,partial:!0},Fa={tokenize:ja,partial:!0};function Ba(e,n,t){let r=this,i=r.events[r.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(p){let E=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(E==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:en(p)){if(r.containerState.type||(r.containerState.type=E,e.enter(E,{_container:!0})),E==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(De,t,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(p)}return t(p)}function u(p){return en(p)&&++l<10?(e.consume(p),u):(!r.interrupt||l<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):t(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ce,r.interrupt?t:s,e.attempt(Na,h,d))}function s(p){return r.containerState.initialBlankLine=!0,o++,h(p)}function d(p){return P(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),h):t(p)}function h(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(p)}}function Ma(e,n,t){let r=this;return r.containerState._closeFlow=void 0,e.check(Ce,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,z(e,n,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!P(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(Fa,n,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,z(e,e.attempt(ee,n,t),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function ja(e,n,t){let r=this;return z(e,i,"listItemIndent",r.containerState.size+1);function i(o){let l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?n(o):t(o)}}function Ua(e){e.exit(this.containerState.type)}function Ha(e,n,t){let r=this;return z(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4+1);function i(o){let l=r.events[r.events.length-1];return!P(o)&&l&&l[1].type==="listItemPrefixWhitespace"?n(o):t(o)}}var On={name:"setextUnderline",tokenize:qa,resolveTo:Va};function Va(e,n){let t=e.length,r,i,o;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){r=t;break}e[t][1].type==="paragraph"&&(i=t)}else e[t][1].type==="content"&&e.splice(t,1),!o&&e[t][1].type==="definition"&&(o=t);let l={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,n]),e.splice(o+1,0,["exit",e[r][1],n]),e[r][1].end=Object.assign({},e[o][1].end)):e[r][1]=l,e.push(["exit",l,n]),e}function qa(e,n,t){let r=this,i;return o;function o(c){let s=r.events.length,d;for(;s--;)if(r.events[s][1].type!=="lineEnding"&&r.events[s][1].type!=="linePrefix"&&r.events[s][1].type!=="content"){d=r.events[s][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),i=c,l(c)):t(c)}function l(c){return e.enter("setextHeadingLineSequence"),a(c)}function a(c){return c===i?(e.consume(c),a):(e.exit("setextHeadingLineSequence"),P(c)?z(e,u,"lineSuffix")(c):u(c))}function u(c){return c===null||I(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}var si={tokenize:Wa};function Wa(e){let n=this,t=e.attempt(Ce,r,e.attempt(this.parser.constructs.flowInitial,i,z(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Et,i)),"linePrefix")));return t;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n.currentConstruct=void 0,t}}var ci={resolveAll:hi()},pi=mi("string"),fi=mi("text");function mi(e){return{tokenize:n,resolveAll:hi(e==="text"?Qa:void 0)};function n(t){let r=this,i=this.parser.constructs[e],o=t.attempt(i,l,a);return l;function l(s){return c(s)?o(s):a(s)}function a(s){if(s===null){t.consume(s);return}return t.enter("data"),t.consume(s),u}function u(s){return c(s)?(t.exit("data"),o(s)):(t.consume(s),u)}function c(s){if(s===null)return!0;let d=i[s],h=-1;if(d)for(;++h<d.length;){let p=d[h];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function hi(e){return n;function n(t,r){let i=-1,o;for(;++i<=t.length;)o===void 0?t[i]&&t[i][1].type==="data"&&(o=i,i++):(!t[i]||t[i][1].type!=="data")&&(i!==o+2&&(t[o][1].end=t[i-1][1].end,t.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(t,r):t}}function Qa(e,n){let t=0;for(;++t<=e.length;)if((t===e.length||e[t][1].type==="lineEnding")&&e[t-1][1].type==="data"){let r=e[t-1][1],i=n.sliceStream(r),o=i.length,l=-1,a=0,u;for(;o--;){let c=i[o];if(typeof c=="string"){for(l=c.length;c.charCodeAt(l-1)===32;)a++,l--;if(l)break;l=-1}else if(c===-2)u=!0,a++;else if(c!==-1){o++;break}}if(a){let c={type:t===e.length||u||a<2?"lineSuffix":"hardBreakTrailing",start:{line:r.end.line,column:r.end.column-a,offset:r.end.offset-a,_index:r.start._index+o,_bufferIndex:o?l:r.start._bufferIndex+l},end:Object.assign({},r.end)};r.end=Object.assign({},c.start),r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(t,0,["enter",c,n],["exit",c,n]),t+=2)}t++}return e}function di(e,n,t){let r=Object.assign(t?Object.assign({},t):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1}),i={},o=[],l=[],a=[],u=!0,c={consume:F,enter:_,exit:y,attempt:M(B),check:M(X),interrupt:M(X,{interrupt:!0})},s={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:w,sliceSerialize:E,now:b,defineSkip:x,write:p},d=n.tokenize.call(s,c),h;return n.resolveAll&&o.push(n),s;function p(T){return l=te(l,T),A(),l[l.length-1]!==null?[]:(V(n,0),s.events=He(o,s.events,s),s.events)}function E(T,R){return Ya(w(T),R)}function w(T){return Xa(l,T)}function b(){let{line:T,column:R,offset:v,_index:q,_bufferIndex:$}=r;return{line:T,column:R,offset:v,_index:q,_bufferIndex:$}}function x(T){i[T.line]=T.column,H()}function A(){let T;for(;r._index<l.length;){let R=l[r._index];if(typeof R=="string")for(T=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===T&&r._bufferIndex<R.length;)C(R.charCodeAt(r._bufferIndex));else C(R)}}function C(T){u=void 0,h=T,d=d(T)}function F(T){I(T)?(r.line++,r.column=1,r.offset+=T===-3?2:1,H()):T!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),s.previous=T,u=!0}function _(T,R){let v=R||{};return v.type=T,v.start=b(),s.events.push(["enter",v,s]),a.push(v),v}function y(T){let R=a.pop();return R.end=b(),s.events.push(["exit",R,s]),R}function B(T,R){V(T,R.from)}function X(T,R){R.restore()}function M(T,R){return v;function v(q,$,pe){let he,f,se,ge;return Array.isArray(q)?ie(q):"tokenize"in q?ie([q]):m(q);function m(G){return Xe;function Xe(de){let Ne=de!==null&&G[de],Fe=de!==null&&G.null,Yn=[...Array.isArray(Ne)?Ne:Ne?[Ne]:[],...Array.isArray(Fe)?Fe:Fe?[Fe]:[]];return ie(Yn)(de)}}function ie(G){return he=G,f=0,G.length===0?pe:Ae(G[f])}function Ae(G){return Xe;function Xe(de){return ge=ue(),se=G,G.partial||(s.currentConstruct=G),G.name&&s.parser.constructs.disable.null.includes(G.name)?mn(de):G.tokenize.call(R?Object.assign(Object.create(s),R):s,c,Xn,mn)(de)}}function Xn(G){return u=!0,T(se,ge),$}function mn(G){return u=!0,ge.restore(),++f<he.length?Ae(he[f]):pe}}}function V(T,R){T.resolveAll&&!o.includes(T)&&o.push(T),T.resolve&&J(s.events,R,s.events.length-R,T.resolve(s.events.slice(R),s)),T.resolveTo&&(s.events=T.resolveTo(s.events,s))}function ue(){let T=b(),R=s.previous,v=s.currentConstruct,q=s.events.length,$=Array.from(a);return{restore:pe,from:q};function pe(){r=T,s.previous=R,s.currentConstruct=v,s.events.length=q,a=$,H()}}function H(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Xa(e,n){let t=n.start._index,r=n.start._bufferIndex,i=n.end._index,o=n.end._bufferIndex,l;if(t===i)l=[e[t].slice(r,o)];else{if(l=e.slice(t,i),r>-1){let 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 Ya(e,n){let t=-1,r=[],i;for(;++t<e.length;){let o=e[t],l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
`;break}case-3:{l=`\r
`;break}case-2:{l=n?" ":" ";break}case-1:{if(!n&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}var vt={};lr(vt,{attentionMarkers:()=>tu,contentInitial:()=>Ka,disable:()=>ru,document:()=>$a,flow:()=>Ja,flowInitial:()=>Ga,insideSpan:()=>nu,string:()=>Za,text:()=>eu});var $a={42:ee,43:ee,45:ee,48:ee,49:ee,50:ee,51:ee,52:ee,53:ee,54:ee,55:ee,56:ee,57:ee,62:Sn},Ka={91:Ct},Ga={[-2]:rn,[-1]:rn,32:rn},Ja={35:At,42:De,45:[On,De],60:Pt,61:On,95:De,96:In,126:In},Za={38:Cn,92:En},eu={[-5]:on,[-4]:on,[-3]:on,33:Ot,38:Cn,42:tn,60:[wt,Lt],91:zt,92:[It,En],93:Re,95:tn,96:St},nu={null:[tn,ci]},tu={null:[42,95]},ru={null:[]};function Rt(e){let t=ti([vt,...(e||{}).extensions||[]]),r={defined:[],lazy:{},constructs:t,content:i(ri),document:i(oi),flow:i(si),string:i(pi),text:i(fi)};return r;function i(o){return l;function l(a){return di(r,o,a)}}}function Dt(e){for(;!An(e););return e}var gi=/[\0\t\n\r]/g;function _t(){let e=1,n="",t=!0,r;return i;function i(o,l,a){let u=[],c,s,d,h,p;for(o=n+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),d=0,n="",t&&(o.charCodeAt(0)===65279&&d++,t=void 0);d<o.length;){if(gi.lastIndex=d,c=gi.exec(o),h=c&&c.index!==void 0?c.index:o.length,p=o.charCodeAt(h),!c){n=o.slice(d);break}if(p===10&&d===h&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),d<h&&(u.push(o.slice(d,h)),e+=h-d),p){case 0:{u.push(65533),e++;break}case 9:{for(s=Math.ceil(e/4)*4,u.push(-2);e++<s;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}d=h+1}return a&&(r&&u.push(-5),n&&u.push(n),u.push(null)),u}}var iu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function yi(e){return e.replace(iu,ou)}function ou(e,n,t){if(n)return n;if(t.charCodeAt(0)===35){let i=t.charCodeAt(1),o=i===120||i===88;return wn(t.slice(o?2:1),o?16:10)}return Ue(t)||e}var ki={}.hasOwnProperty;function Nt(e,n,t){return typeof n!="string"&&(t=n,n=void 0),lu(t)(Dt(Rt(t).document().write(_t()(e,n,!0))))}function lu(e){let n={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(ir),autolinkProtocol:M,autolinkEmail:M,atxHeading:o(nr),blockQuote:o(Xe),characterEscape:M,characterReference:M,codeFenced:o(de),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(de,l),codeText:o(Ne,l),codeTextData:M,data:M,codeFlowValue:M,definition:o(Fe),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Yn),hardBreakEscape:o(tr),hardBreakTrailing:o(tr),htmlFlow:o(rr,l),htmlFlowData:M,htmlText:o(rr,l),htmlTextData:M,image:o(wo),label:l,link:o(ir),listItem:o(So),listItemValue:h,listOrdered:o(or,d),listUnordered:o(or),paragraph:o(Eo),reference:m,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(nr),strong:o(Co),thematicBreak:o(Ao)},exit:{atxHeading:u(),atxHeadingSequence:_,autolink:u(),autolinkEmail:G,autolinkProtocol:mn,blockQuote:u(),characterEscapeValue:V,characterReferenceMarkerHexadecimal:Ae,characterReferenceMarkerNumeric:Ae,characterReferenceValue:Xn,codeFenced:u(b),codeFencedFence:w,codeFencedFenceInfo:p,codeFencedFenceMeta:E,codeFlowValue:V,codeIndented:u(x),codeText:u(v),codeTextData:V,data:V,definition:u(),definitionDestinationString:F,definitionLabelString:A,definitionTitleString:C,emphasis:u(),hardBreakEscape:u(H),hardBreakTrailing:u(H),htmlFlow:u(T),htmlFlowData:V,htmlText:u(R),htmlTextData:V,image:u($),label:he,labelText:pe,lineEnding:ue,link:u(q),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:ie,resourceDestinationString:f,resourceTitleString:se,resource:ge,setextHeading:u(X),setextHeadingLineSequence:B,setextHeadingText:y,strong:u(),thematicBreak:u()}};bi(n,(e||{}).mdastExtensions||[]);let t={};return r;function r(g){let S={type:"root",children:[]},L={stack:[S],tokenStack:[],config:n,enter:a,exit:c,buffer:l,resume:s,data:t},N=[],U=-1;for(;++U<g.length;)if(g[U][1].type==="listOrdered"||g[U][1].type==="listUnordered")if(g[U][0]==="enter")N.push(U);else{let fe=N.pop();U=i(g,fe,U)}for(U=-1;++U<g.length;){let fe=n[g[U][0]];ki.call(fe,g[U][1].type)&&fe[g[U][1].type].call(Object.assign({sliceSerialize:g[U][2].sliceSerialize},L),g[U][1])}if(L.tokenStack.length>0){let fe=L.tokenStack[L.tokenStack.length-1];(fe[1]||xi).call(L,void 0,fe[0])}for(S.position={start:Ie(g.length>0?g[0][1].start:{line:1,column:1,offset:0}),end:Ie(g.length>0?g[g.length-2][1].end:{line:1,column:1,offset:0})},U=-1;++U<n.transforms.length;)S=n.transforms[U](S)||S;return S}function i(g,S,L){let N=S-1,U=-1,fe=!1,Te,ye,Ye,$e;for(;++N<=L;){let oe=g[N];switch(oe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{oe[0]==="enter"?U++:U--,$e=void 0;break}case"lineEndingBlank":{oe[0]==="enter"&&(Te&&!$e&&!U&&!Ye&&(Ye=N),$e=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:$e=void 0}if(!U&&oe[0]==="enter"&&oe[1].type==="listItemPrefix"||U===-1&&oe[0]==="exit"&&(oe[1].type==="listUnordered"||oe[1].type==="listOrdered")){if(Te){let Be=N;for(ye=void 0;Be--;){let xe=g[Be];if(xe[1].type==="lineEnding"||xe[1].type==="lineEndingBlank"){if(xe[0]==="exit")continue;ye&&(g[ye][1].type="lineEndingBlank",fe=!0),xe[1].type="lineEnding",ye=Be}else if(!(xe[1].type==="linePrefix"||xe[1].type==="blockQuotePrefix"||xe[1].type==="blockQuotePrefixWhitespace"||xe[1].type==="blockQuoteMarker"||xe[1].type==="listItemIndent"))break}Ye&&(!ye||Ye<ye)&&(Te._spread=!0),Te.end=Object.assign({},ye?g[ye][1].start:oe[1].end),g.splice(ye||N,0,["exit",Te,oe[2]]),N++,L++}if(oe[1].type==="listItemPrefix"){let Be={type:"listItem",_spread:!1,start:Object.assign({},oe[1].start),end:void 0};Te=Be,g.splice(N,0,["enter",Be,oe[2]]),N++,L++,Ye=void 0,$e=!0}}}return g[S][1]._spread=fe,L}function o(g,S){return L;function L(N){a.call(this,g(N),N),S&&S.call(this,N)}}function l(){this.stack.push({type:"fragment",children:[]})}function a(g,S,L){this.stack[this.stack.length-1].children.push(g),this.stack.push(g),this.tokenStack.push([S,L]),g.position={start:Ie(S.start),end:void 0}}function u(g){return S;function S(L){g&&g.call(this,L),c.call(this,L)}}function c(g,S){let L=this.stack.pop(),N=this.tokenStack.pop();if(N)N[0].type!==g.type&&(S?S.call(this,g,N[0]):(N[1]||xi).call(this,g,N[0]));else throw new Error("Cannot close `"+g.type+"` ("+Se({start:g.start,end:g.end})+"): it\u2019s not open");L.position.end=Ie(g.end)}function s(){return kt(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function h(g){if(this.data.expectingFirstListItemValue){let S=this.stack[this.stack.length-2];S.start=Number.parseInt(this.sliceSerialize(g),10),this.data.expectingFirstListItemValue=void 0}}function p(){let g=this.resume(),S=this.stack[this.stack.length-1];S.lang=g}function E(){let g=this.resume(),S=this.stack[this.stack.length-1];S.meta=g}function w(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){let g=this.resume(),S=this.stack[this.stack.length-1];S.value=g.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){let g=this.resume(),S=this.stack[this.stack.length-1];S.value=g.replace(/(\r?\n|\r)$/g,"")}function A(g){let S=this.resume(),L=this.stack[this.stack.length-1];L.label=S,L.identifier=be(this.sliceSerialize(g)).toLowerCase()}function C(){let g=this.resume(),S=this.stack[this.stack.length-1];S.title=g}function F(){let g=this.resume(),S=this.stack[this.stack.length-1];S.url=g}function _(g){let S=this.stack[this.stack.length-1];if(!S.depth){let L=this.sliceSerialize(g).length;S.depth=L}}function y(){this.data.setextHeadingSlurpLineEnding=!0}function B(g){let S=this.stack[this.stack.length-1];S.depth=this.sliceSerialize(g).codePointAt(0)===61?1:2}function X(){this.data.setextHeadingSlurpLineEnding=void 0}function M(g){let L=this.stack[this.stack.length-1].children,N=L[L.length-1];(!N||N.type!=="text")&&(N=Io(),N.position={start:Ie(g.start),end:void 0},L.push(N)),this.stack.push(N)}function V(g){let S=this.stack.pop();S.value+=this.sliceSerialize(g),S.position.end=Ie(g.end)}function ue(g){let S=this.stack[this.stack.length-1];if(this.data.atHardBreak){let L=S.children[S.children.length-1];L.position.end=Ie(g.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&n.canContainEols.includes(S.type)&&(M.call(this,g),V.call(this,g))}function H(){this.data.atHardBreak=!0}function T(){let g=this.resume(),S=this.stack[this.stack.length-1];S.value=g}function R(){let g=this.resume(),S=this.stack[this.stack.length-1];S.value=g}function v(){let g=this.resume(),S=this.stack[this.stack.length-1];S.value=g}function q(){let g=this.stack[this.stack.length-1];if(this.data.inReference){let S=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=S,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function $(){let g=this.stack[this.stack.length-1];if(this.data.inReference){let S=this.data.referenceType||"shortcut";g.type+="Reference",g.referenceType=S,delete g.url,delete g.title}else delete g.identifier,delete g.label;this.data.referenceType=void 0}function pe(g){let S=this.sliceSerialize(g),L=this.stack[this.stack.length-2];L.label=yi(S),L.identifier=be(S).toLowerCase()}function he(){let g=this.stack[this.stack.length-1],S=this.resume(),L=this.stack[this.stack.length-1];if(this.data.inReference=!0,L.type==="link"){let N=g.children;L.children=N}else L.alt=S}function f(){let g=this.resume(),S=this.stack[this.stack.length-1];S.url=g}function se(){let g=this.resume(),S=this.stack[this.stack.length-1];S.title=g}function ge(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function ie(g){let S=this.resume(),L=this.stack[this.stack.length-1];L.label=S,L.identifier=be(this.sliceSerialize(g)).toLowerCase(),this.data.referenceType="full"}function Ae(g){this.data.characterReferenceType=g.type}function Xn(g){let S=this.sliceSerialize(g),L=this.data.characterReferenceType,N;L?(N=wn(S,L==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):N=Ue(S);let U=this.stack.pop();U.value+=N,U.position.end=Ie(g.end)}function mn(g){V.call(this,g);let S=this.stack[this.stack.length-1];S.url=this.sliceSerialize(g)}function G(g){V.call(this,g);let S=this.stack[this.stack.length-1];S.url="mailto:"+this.sliceSerialize(g)}function Xe(){return{type:"blockquote",children:[]}}function de(){return{type:"code",lang:null,meta:null,value:""}}function Ne(){return{type:"inlineCode",value:""}}function Fe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Yn(){return{type:"emphasis",children:[]}}function nr(){return{type:"heading",depth:0,children:[]}}function tr(){return{type:"break"}}function rr(){return{type:"html",value:""}}function wo(){return{type:"image",title:null,url:"",alt:null}}function ir(){return{type:"link",title:null,url:"",children:[]}}function or(g){return{type:"list",ordered:g.type==="listOrdered",start:null,spread:g._spread,children:[]}}function So(g){return{type:"listItem",spread:g._spread,checked:null,children:[]}}function Eo(){return{type:"paragraph",children:[]}}function Co(){return{type:"strong",children:[]}}function Io(){return{type:"text",value:""}}function Ao(){return{type:"thematicBreak"}}}function Ie(e){return{line:e.line,column:e.column,offset:e.offset}}function bi(e,n){let t=-1;for(;++t<n.length;){let r=n[t];Array.isArray(r)?bi(e,r):au(e,r)}}function au(e,n){let t;for(t in n)if(ki.call(n,t))switch(t){case"canContainEols":{let r=n[t];r&&e[t].push(...r);break}case"transforms":{let r=n[t];r&&e[t].push(...r);break}case"enter":case"exit":{let r=n[t];r&&Object.assign(e[t],r);break}}}function xi(e,n){throw e?new Error("Cannot close `"+e.type+"` ("+Se({start:e.start,end:e.end})+"): a different token (`"+n.type+"`, "+Se({start:n.start,end:n.end})+") is open"):new Error("Cannot close document, a token (`"+n.type+"`, "+Se({start:n.start,end:n.end})+") is still open")}function zn(e){let n=this;n.parser=t;function t(r){return Nt(r,{...n.data("settings"),...e,extensions:n.data("micromarkExtensions")||[],mdastExtensions:n.data("fromMarkdownExtensions")||[]})}}function wi(e,n){let t={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(n),!0)};return e.patch(n,t),e.applyData(n,t)}function Si(e,n){let t={type:"element",tagName:"br",properties:{},children:[]};return e.patch(n,t),[e.applyData(n,t),{type:"text",value:`
`}]}function Ei(e,n){let t=n.value?n.value+`
`:"",r={};n.lang&&(r.className=["language-"+n.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:t}]};return n.meta&&(i.data={meta:n.meta}),e.patch(n,i),i=e.applyData(n,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(n,i),i}function Ci(e,n){let t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ii(e,n){let t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Ai(e,n){let t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(n.identifier).toUpperCase(),i=ae(r.toLowerCase()),o=e.footnoteOrder.indexOf(r),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);let u={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+i,id:t+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(n,u);let c={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(n,c),e.applyData(n,c)}function Ti(e,n){let t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Pi(e,n){if(e.options.allowDangerousHtml){let t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function vn(e,n){let t=n.referenceType,r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+r}];let i=e.all(n),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});let l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function Li(e,n){let t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return vn(e,n);let i={src:ae(r.url||""),alt:n.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);let o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(n,o),e.applyData(n,o)}function Oi(e,n){let t={src:ae(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);let r={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,r),e.applyData(n,r)}function zi(e,n){let t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);let r={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,r),e.applyData(n,r)}function vi(e,n){let t=String(n.identifier).toUpperCase(),r=e.definitionById.get(t);if(!r)return vn(e,n);let i={href:ae(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);let o={type:"element",tagName:"a",properties:i,children:e.all(n)};return e.patch(n,o),e.applyData(n,o)}function Ri(e,n){let t={href:ae(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);let r={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Di(e,n,t){let r=e.all(n),i=t?uu(t):_i(n),o={},l=[];if(typeof n.checked=="boolean"){let s=r[0],d;s&&s.type==="element"&&s.tagName==="p"?d=s:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let s=r[a];(i||a!==0||s.type!=="element"||s.tagName!=="p")&&l.push({type:"text",value:`
`}),s.type==="element"&&s.tagName==="p"&&!i?l.push(...s.children):l.push(s)}let u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&l.push({type:"text",value:`
`});let c={type:"element",tagName:"li",properties:o,children:l};return e.patch(n,c),e.applyData(n,c)}function uu(e){let n=!1;if(e.type==="list"){n=e.spread||!1;let t=e.children,r=-1;for(;!n&&++r<t.length;)n=_i(t[r])}return n}function _i(e){let n=e.spread;return n??e.children.length>1}function Ni(e,n){let t={},r=e.all(n),i=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++i<r.length;){let l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){t.className=["contains-task-list"];break}}let o={type:"element",tagName:n.ordered?"ol":"ul",properties:t,children:e.wrap(r,!0)};return e.patch(n,o),e.applyData(n,o)}function Fi(e,n){let t={type:"element",tagName:"p",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function Bi(e,n){let t={type:"root",children:e.wrap(e.all(n))};return e.patch(n,t),e.applyData(n,t)}function Mi(e,n){let t={type:"element",tagName:"strong",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function ji(e,n){let t=e.all(n),r=t.shift(),i=[];if(r){let l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(n.children[0],l),i.push(l)}if(t.length>0){let l={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},a=Me(n.children[1]),u=gn(n.children[n.children.length-1]);a&&u&&(l.position={start:a,end:u}),i.push(l)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(n,o),e.applyData(n,o)}function Ui(e,n,t){let r=t?t.children:void 0,o=(r?r.indexOf(n):1)===0?"th":"td",l=t&&t.type==="table"?t.align:void 0,a=l?l.length:n.children.length,u=-1,c=[];for(;++u<a;){let d=n.children[u],h={},p=l?l[u]:void 0;p&&(h.align=p);let E={type:"element",tagName:o,properties:h,children:[]};d&&(E.children=e.all(d),e.patch(d,E),E=e.applyData(d,E)),c.push(E)}let s={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(n,s),e.applyData(n,s)}function Hi(e,n){let t={type:"element",tagName:"td",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function qi(e){let n=String(e),t=/\r?\n|\r/g,r=t.exec(n),i=0,o=[];for(;r;)o.push(Vi(n.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=t.exec(n);return o.push(Vi(n.slice(i),i>0,!1)),o.join("")}function Vi(e,n,t){let r=0,i=e.length;if(n){let o=e.codePointAt(r);for(;o===9||o===32;)r++,o=e.codePointAt(r)}if(t){let o=e.codePointAt(i-1);for(;o===9||o===32;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Wi(e,n){let t={type:"text",value:qi(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Qi(e,n){let t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}var Xi={blockquote:wi,break:Si,code:Ei,delete:Ci,emphasis:Ii,footnoteReference:Ai,heading:Ti,html:Pi,imageReference:Li,image:Oi,inlineCode:zi,linkReference:vi,link:Ri,listItem:Di,list:Ni,paragraph:Fi,root:Bi,strong:Mi,table:ji,tableCell:Hi,tableRow:Ui,text:Wi,thematicBreak:Qi,toml:Rn,yaml:Rn,definition:Rn,footnoteDefinition:Rn};function Rn(){}var Yi=typeof self=="object"?self:globalThis,su=(e,n)=>{let t=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);let[o,l]=n[i];switch(o){case 0:case-1:return t(l,i);case 1:{let a=t([],i);for(let u of l)a.push(r(u));return a}case 2:{let a=t({},i);for(let[u,c]of l)a[r(u)]=r(c);return a}case 3:return t(new Date(l),i);case 4:{let{source:a,flags:u}=l;return t(new RegExp(a,u),i)}case 5:{let a=t(new Map,i);for(let[u,c]of l)a.set(r(u),r(c));return a}case 6:{let a=t(new Set,i);for(let u of l)a.add(r(u));return a}case 7:{let{name:a,message:u}=l;return t(new Yi[a](u),i)}case 8:return t(BigInt(l),i);case"BigInt":return t(Object(BigInt(l)),i)}return t(new Yi[o](l),i)};return r},jt=e=>su(new Map,e)(0);var Ve="",{toString:cu}={},{keys:pu}=Object,sn=e=>{let n=typeof e;if(n!=="object"||!e)return[0,n];let t=cu.call(e).slice(8,-1);switch(t){case"Array":return[1,Ve];case"Object":return[2,Ve];case"Date":return[3,Ve];case"RegExp":return[4,Ve];case"Map":return[5,Ve];case"Set":return[6,Ve]}return t.includes("Array")?[1,t]:t.includes("Error")?[7,t]:[2,t]},Bn=([e,n])=>e===0&&(n==="function"||n==="symbol"),fu=(e,n,t,r)=>{let i=(l,a)=>{let u=r.push(l)-1;return t.set(a,u),u},o=l=>{if(t.has(l))return t.get(l);let[a,u]=sn(l);switch(a){case 0:{let s=l;switch(u){case"bigint":a=8,s=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);s=null;break;case"undefined":return i([-1],l)}return i([a,s],l)}case 1:{if(u)return i([u,[...l]],l);let s=[],d=i([a,s],l);for(let h of l)s.push(o(h));return d}case 2:{if(u)switch(u){case"BigInt":return i([u,l.toString()],l);case"Boolean":case"Number":case"String":return i([u,l.valueOf()],l)}if(n&&"toJSON"in l)return o(l.toJSON());let s=[],d=i([a,s],l);for(let h of pu(l))(e||!Bn(sn(l[h])))&&s.push([o(h),o(l[h])]);return d}case 3:return i([a,l.toISOString()],l);case 4:{let{source:s,flags:d}=l;return i([a,{source:s,flags:d}],l)}case 5:{let s=[],d=i([a,s],l);for(let[h,p]of l)(e||!(Bn(sn(h))||Bn(sn(p))))&&s.push([o(h),o(p)]);return d}case 6:{let s=[],d=i([a,s],l);for(let h of l)(e||!Bn(sn(h)))&&s.push(o(h));return d}}let{message:c}=l;return i([a,{name:u,message:c}],l)};return o},Ut=(e,{json:n,lossy:t}={})=>{let r=[];return fu(!(n||t),!!n,new Map,r)(e),r};var qe=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?jt(Ut(e,n)):structuredClone(e):(e,n)=>jt(Ut(e,n));function mu(e,n){let t=[{type:"text",value:"\u21A9"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function hu(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function $i(e){let n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||mu,r=e.options.footnoteBackLabel||hu,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],u=-1;for(;++u<e.footnoteOrder.length;){let c=e.footnoteById.get(e.footnoteOrder[u]);if(!c)continue;let s=e.all(c),d=String(c.identifier).toUpperCase(),h=ae(d.toLowerCase()),p=0,E=[],w=e.footnoteCounts.get(d);for(;w!==void 0&&++p<=w;){E.length>0&&E.push({type:"text",value:" "});let A=typeof t=="string"?t:t(u,p);typeof A=="string"&&(A={type:"text",value:A}),E.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+h+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(u,p),className:["data-footnote-backref"]},children:Array.isArray(A)?A:[A]})}let b=s[s.length-1];if(b&&b.type==="element"&&b.tagName==="p"){let A=b.children[b.children.length-1];A&&A.type==="text"?A.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...E)}else s.push(...E);let x={type:"element",tagName:"li",properties:{id:n+"fn-"+h},children:e.wrap(s,!0)};e.patch(c,x),a.push(x)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...qe(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
`}]}}var Mn=function(e){if(e==null)return xu;if(typeof e=="function")return jn(e);if(typeof e=="object")return Array.isArray(e)?du(e):gu(e);if(typeof e=="string")return yu(e);throw new Error("Expected function, string, or object as test")};function du(e){let n=[],t=-1;for(;++t<e.length;)n[t]=Mn(e[t]);return jn(r);function r(...i){let o=-1;for(;++o<n.length;)if(n[o].apply(this,i))return!0;return!1}}function gu(e){let n=e;return jn(t);function t(r){let i=r,o;for(o in e)if(i[o]!==n[o])return!1;return!0}}function yu(e){return jn(n);function n(t){return t&&t.type===e}}function jn(e){return n;function n(t,r,i){return!!(ku(t)&&e.call(this,t,typeof r=="number"?r:void 0,i||void 0))}}function xu(){return!0}function ku(e){return e!==null&&typeof e=="object"&&"type"in e}var Ki=[],Ht=!0,Un=!1,Vt="skip";function qt(e,n,t,r){let i;typeof n=="function"&&typeof t!="function"?(r=t,t=n):i=n;let o=Mn(i),l=r?-1:1;a(e,void 0,[])();function a(u,c,s){let d=u&&typeof u=="object"?u:{};if(typeof d.type=="string"){let p=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(h,"name",{value:"node ("+(u.type+(p?"<"+p+">":""))+")"})}return h;function h(){let p=Ki,E,w,b;if((!n||o(u,c,s[s.length-1]||void 0))&&(p=bu(t(u,s)),p[0]===Un))return p;if("children"in u&&u.children){let x=u;if(x.children&&p[0]!==Vt)for(w=(r?x.children.length:-1)+l,b=s.concat(x);w>-1&&w<x.children.length;){let A=x.children[w];if(E=a(A,w,b)(),E[0]===Un)return E;w=typeof E[1]=="number"?E[1]:w+l}}return p}}}function bu(e){return Array.isArray(e)?e:typeof e=="number"?[Ht,e]:e==null?Ki:[e]}function cn(e,n,t,r){let i,o,l;typeof n=="function"&&typeof t!="function"?(o=void 0,l=n,i=t):(o=n,l=t,i=r),qt(e,o,a,i);function a(u,c){let s=c[c.length-1],d=s?s.children.indexOf(u):void 0;return l(u,d,s)}}var Wt={}.hasOwnProperty,wu={};function Ji(e,n){let t=n||wu,r=new Map,i=new Map,o=new Map,l={...Xi,...t.handlers},a={all:c,applyData:Eu,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:u,options:t,patch:Su,wrap:Iu};return cn(e,function(s){if(s.type==="definition"||s.type==="footnoteDefinition"){let d=s.type==="definition"?r:i,h=String(s.identifier).toUpperCase();d.has(h)||d.set(h,s)}}),a;function u(s,d){let h=s.type,p=a.handlers[h];if(Wt.call(a.handlers,h)&&p)return p(a,s,d);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in s){let{children:w,...b}=s,x=qe(b);return x.children=a.all(s),x}return qe(s)}return(a.options.unknownHandler||Cu)(a,s,d)}function c(s){let d=[];if("children"in s){let h=s.children,p=-1;for(;++p<h.length;){let E=a.one(h[p],s);if(E){if(p&&h[p-1].type==="break"&&(!Array.isArray(E)&&E.type==="text"&&(E.value=Gi(E.value)),!Array.isArray(E)&&E.type==="element")){let w=E.children[0];w&&w.type==="text"&&(w.value=Gi(w.value))}Array.isArray(E)?d.push(...E):d.push(E)}}}return d}}function Su(e,n){e.position&&(n.position=st(e))}function Eu(e,n){let t=n;if(e&&e.data){let r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(t.type==="element")t.tagName=r;else{let l="children"in t?t.children:[t];t={type:"element",tagName:r,properties:{},children:l}}t.type==="element"&&o&&Object.assign(t.properties,qe(o)),"children"in t&&t.children&&i!==null&&i!==void 0&&(t.children=i)}return t}function Cu(e,n){let t=n.data||{},r="value"in n&&!(Wt.call(t,"hProperties")||Wt.call(t,"hChildren"))?{type:"text",value:n.value}:{type:"element",tagName:"div",properties:{},children:e.all(n)};return e.patch(n,r),e.applyData(n,r)}function Iu(e,n){let t=[],r=-1;for(n&&t.push({type:"text",value:`
`});++r<e.length;)r&&t.push({type:"text",value:`
`}),t.push(e[r]);return n&&e.length>0&&t.push({type:"text",value:`
`}),t}function Gi(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function Hn(e,n){let t=Ji(e,n),r=t.one(e,void 0),i=$i(t),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&("children"in o,o.children.push({type:"text",value:`
`},i)),o}function Vn(e,n){return e&&"run"in e?async function(t,r){let i=Hn(t,n);await e.run(i,r)}:function(t){return Hn(t,n||e)}}function Qt(e){if(e)throw e}var Qn=Kn(ao());function pn(e){if(typeof e!="object"||e===null)return!1;let n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function uo(){let e=[],n={run:t,use:r};return n;function t(...i){let o=-1,l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(u,...c){let s=e[++o],d=-1;if(u){l(u);return}for(;++d<i.length;)(c[d]===null||c[d]===void 0)&&(c[d]=i[d]);i=c,s?Au(s,a)(...c):l(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),n}}function Au(e,n){let t;return r;function r(...l){let a=e.length>l.length,u;a&&l.push(i);try{u=e.apply(this,l)}catch(c){let s=c;if(a&&t)throw s;return i(s)}a||(u instanceof Promise?u.then(o,i):u instanceof Error?i(u):o(u))}function i(l,...a){t||(t=!0,n(l,...a))}function o(l){i(null,l)}}var me={basename:Tu,dirname:Pu,extname:Lu,join:Ou,sep:"/"};function Tu(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');fn(e);let t=0,r=-1,i=e.length,o;if(n===void 0||n.length===0||n.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(t,r)}if(n===e)return"";let l=-1,a=n.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){t=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===n.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return t===r?r=l:r<0&&(r=e.length),e.slice(t,r)}function Pu(e){if(fn(e),e.length===0)return".";let n=-1,t=e.length,r;for(;--t;)if(e.codePointAt(t)===47){if(r){n=t;break}}else r||(r=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function Lu(e){fn(e);let n=e.length,t=-1,r=0,i=-1,o=0,l;for(;n--;){let a=e.codePointAt(n);if(a===47){if(l){r=n+1;break}continue}t<0&&(l=!0,t=n+1),a===46?i<0?i=n:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||t<0||o===0||o===1&&i===t-1&&i===r+1?"":e.slice(i,t)}function Ou(...e){let n=-1,t;for(;++n<e.length;)fn(e[n]),e[n]&&(t=t===void 0?e[n]:t+"/"+e[n]);return t===void 0?".":zu(t)}function zu(e){fn(e);let n=e.codePointAt(0)===47,t=vu(e,!n);return t.length===0&&!n&&(t="."),t.length>0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function vu(e,n){let t="",r=0,i=-1,o=0,l=-1,a,u;for(;++l<=e.length;){if(l<e.length)a=e.codePointAt(l);else{if(a===47)break;a=47}if(a===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(t.length<2||r!==2||t.codePointAt(t.length-1)!==46||t.codePointAt(t.length-2)!==46){if(t.length>2){if(u=t.lastIndexOf("/"),u!==t.length-1){u<0?(t="",r=0):(t=t.slice(0,u),r=t.length-1-t.lastIndexOf("/")),i=l,o=0;continue}}else if(t.length>0){t="",r=0,i=l,o=0;continue}}n&&(t=t.length>0?t+"/..":"..",r=2)}else t.length>0?t+="/"+e.slice(i+1,l):t=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return t}function fn(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var so={cwd:Ru};function Ru(){return"/"}function We(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function co(e){if(typeof e=="string")e=new URL(e);else if(!We(e)){let n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){let n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return Du(e)}function Du(e){if(e.hostname!==""){let r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}let n=e.pathname,t=-1;for(;++t<n.length;)if(n.codePointAt(t)===37&&n.codePointAt(t+1)===50){let r=n.codePointAt(t+2);if(r===70||r===102){let i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(n)}var Xt=["history","path","basename","stem","extname","dirname"],_e=class{constructor(n){let t;n?We(n)?t={path:n}:typeof n=="string"||_u(n)?t={value:n}:t=n:t={},this.cwd=so.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Xt.length;){let o=Xt[r];o in t&&t[o]!==void 0&&t[o]!==null&&(this[o]=o==="history"?[...t[o]]:t[o])}let i;for(i in t)Xt.includes(i)||(this[i]=t[i])}get basename(){return typeof this.path=="string"?me.basename(this.path):void 0}set basename(n){$t(n,"basename"),Yt(n,"basename"),this.path=me.join(this.dirname||"",n)}get dirname(){return typeof this.path=="string"?me.dirname(this.path):void 0}set dirname(n){po(this.basename,"dirname"),this.path=me.join(n||"",this.basename)}get extname(){return typeof this.path=="string"?me.extname(this.path):void 0}set extname(n){if(Yt(n,"extname"),po(this.dirname,"extname"),n){if(n.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(n.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=me.join(this.dirname,this.stem+(n||""))}get path(){return this.history[this.history.length-1]}set path(n){We(n)&&(n=co(n)),$t(n,"path"),this.path!==n&&this.history.push(n)}get stem(){return typeof this.path=="string"?me.basename(this.path,this.extname):void 0}set stem(n){$t(n,"stem"),Yt(n,"stem"),this.path=me.join(this.dirname||"",n+(this.extname||""))}fail(n,t,r){let i=this.message(n,t,r);throw i.fatal=!0,i}info(n,t,r){let i=this.message(n,t,r);return i.fatal=void 0,i}message(n,t,r){let i=new Y(n,t,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(n){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(n||void 0).decode(this.value)}};function Yt(e,n){if(e&&e.includes(me.sep))throw new Error("`"+n+"` cannot be a path: did not expect `"+me.sep+"`")}function $t(e,n){if(!e)throw new Error("`"+n+"` cannot be empty")}function po(e,n){if(!e)throw new Error("Setting `"+n+"` requires `path` to be set too")}function _u(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var fo=function(e){let r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};Object.setPrototypeOf(o,r);let l=Object.getOwnPropertyNames(i);for(let a of l){let u=Object.getOwnPropertyDescriptor(i,a);u&&Object.defineProperty(o,a,u)}return o};var Nu={}.hasOwnProperty,Zt=class e extends fo{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=uo()}copy(){let n=new e,t=-1;for(;++t<this.attachers.length;){let r=this.attachers[t];n.use(...r)}return n.data((0,Qn.default)(!0,{},this.namespace)),n}data(n,t){return typeof n=="string"?arguments.length===2?(Jt("data",this.frozen),this.namespace[n]=t,this):Nu.call(this.namespace,n)&&this.namespace[n]||void 0:n?(Jt("data",this.frozen),this.namespace=n,this):this.namespace}freeze(){if(this.frozen)return this;let n=this;for(;++this.freezeIndex<this.attachers.length;){let[t,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);let i=t.call(n,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(n){this.freeze();let t=Wn(n),r=this.parser||this.Parser;return Kt("parse",r),r(String(t),t)}process(n,t){let r=this;return this.freeze(),Kt("process",this.parser||this.Parser),Gt("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(o,l){let a=Wn(n),u=r.parse(a);r.run(u,a,function(s,d,h){if(s||!d||!h)return c(s);let p=d,E=r.stringify(p,h);Bu(E)?h.value=E:h.result=E,c(s,h)});function c(s,d){s||!d?l(s):o?o(d):t(void 0,d)}}}processSync(n){let t=!1,r;return this.freeze(),Kt("processSync",this.parser||this.Parser),Gt("processSync",this.compiler||this.Compiler),this.process(n,i),ho("processSync","process",t),r;function i(o,l){t=!0,Qt(o),r=l}}run(n,t,r){mo(n),this.freeze();let i=this.transformers;return!r&&typeof t=="function"&&(r=t,t=void 0),r?o(void 0,r):new Promise(o);function o(l,a){let u=Wn(t);i.run(n,u,c);function c(s,d,h){let p=d||n;s?a(s):l?l(p):r(void 0,p,h)}}}runSync(n,t){let r=!1,i;return this.run(n,t,o),ho("runSync","run",r),i;function o(l,a){Qt(l),i=a,r=!0}}stringify(n,t){this.freeze();let r=Wn(t),i=this.compiler||this.Compiler;return Gt("stringify",i),mo(n),i(n,r)}use(n,...t){let r=this.attachers,i=this.namespace;if(Jt("use",this.frozen),n!=null)if(typeof n=="function")u(n,t);else if(typeof n=="object")Array.isArray(n)?a(n):l(n);else throw new TypeError("Expected usable value, not `"+n+"`");return this;function o(c){if(typeof c=="function")u(c,[]);else if(typeof c=="object")if(Array.isArray(c)){let[s,...d]=c;u(s,d)}else l(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function l(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");a(c.plugins),c.settings&&(i.settings=(0,Qn.default)(!0,i.settings,c.settings))}function a(c){let s=-1;if(c!=null)if(Array.isArray(c))for(;++s<c.length;){let d=c[s];o(d)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function u(c,s){let d=-1,h=-1;for(;++d<r.length;)if(r[d][0]===c){h=d;break}if(h===-1)r.push([c,...s]);else if(s.length>0){let[p,...E]=s,w=r[h][1];pn(w)&&pn(p)&&(p=(0,Qn.default)(!0,w,p)),r[h]=[c,p,...E]}}}},er=new Zt().freeze();function Kt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Gt(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Jt(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function mo(e){if(!pn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ho(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Wn(e){return Fu(e)?e:new _e(e)}function Fu(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Bu(e){return typeof e=="string"||Mu(e)}function Mu(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}var go={}.hasOwnProperty,ju="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",yo=[],xo={allowDangerousHtml:!0},Uu=/^(https?|ircs?|mailto|xmpp)$/i,Hu=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function ko(e){let n=e.allowedElements,t=e.allowElement,r=e.children||"",i=e.className,o=e.components,l=e.disallowedElements,a=e.rehypePlugins||yo,u=e.remarkPlugins||yo,c=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...xo}:xo,s=e.skipHtml,d=e.unwrapDisallowed,h=e.urlTransform||bo,p=er().use(zn).use(u).use(Vn,c).use(a),E=new _e;typeof r=="string"?E.value=r:(""+r,void 0),n&&l&&void 0;for(let A of Hu)Object.hasOwn(e,A.from)&&(""+A.from+(A.to?"use `"+A.to+"` instead":"remove it")+ju+A.id,void 0);let w=p.parse(E),b=p.runSync(w,E);return i&&(b={type:"element",tagName:"div",properties:{className:i},children:b.type==="root"?b.children:[b]}),cn(b,x),ft(b,{Fragment:Qe.Fragment,components:o,ignoreInvalidStyle:!0,jsx:Qe.jsx,jsxs:Qe.jsxs,passKeys:!0,passNode:!0});function x(A,C,F){if(A.type==="raw"&&F&&typeof C=="number")return s?F.children.splice(C,1):F.children[C]={type:"text",value:A.value},C;if(A.type==="element"){let _;for(_ in Je)if(go.call(Je,_)&&go.call(A.properties,_)){let y=A.properties[_],B=Je[_];(B===null||B.includes(A.tagName))&&(A.properties[_]=h(String(y||""),_,A))}}if(A.type==="element"){let _=n?!n.includes(A.tagName):l?l.includes(A.tagName):!1;if(!_&&t&&typeof C=="number"&&(_=!t(A,C,F)),_&&F&&typeof C=="number")return d&&A.children?F.children.splice(C,1,...A.children):F.children.splice(C,1),C}}}function bo(e){return Dr(e,Uu)}export{ko as default,bo as defaultUrlTransform};
/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment