grimoire3d 0.0.0-dev.997a5eb → 0.0.0-dev.dbe8204

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/README.md +28 -124
  2. package/cli/cli.js +348 -0
  3. package/cli/content.js +382 -0
  4. package/cli/cover-options.d.ts +15 -0
  5. package/cli/cover-options.js +105 -0
  6. package/cli/markdown.js +139 -0
  7. package/cli/markup.d.ts +3 -0
  8. package/cli/markup.js +60 -0
  9. package/cli/routes.d.ts +6 -0
  10. package/cli/routes.js +19 -0
  11. package/cli/static-pages.js +467 -0
  12. package/cli/video-url.d.ts +5 -0
  13. package/cli/video-url.js +51 -0
  14. package/dist/BookViewer-CwCn-LTn.js +332 -0
  15. package/dist/components/BookModel.d.ts +20 -0
  16. package/dist/components/BookViewer.d.ts +17 -0
  17. package/dist/components/index.d.ts +2 -0
  18. package/dist/components/index.js +5 -0
  19. package/dist/grimoire3d.css +1 -0
  20. package/dist/index.d.ts +8 -0
  21. package/dist/index.js +4 -0
  22. package/dist/main.d.ts +1 -0
  23. package/dist/site/assets/BookReader-BxKrexRZ.js +2 -0
  24. package/dist/site/assets/BookScene-DN1_Kxe3.js +4045 -0
  25. package/dist/site/assets/MermaidDiagram-Dma3Cwvn.js +312 -0
  26. package/dist/site/assets/PageMarkdown-C-gI_dXg.js +37 -0
  27. package/dist/site/assets/abnfDiagram-S7VZAUFO-BIA2ezcb.js +1 -0
  28. package/dist/site/assets/alcove-cyX4Tv3E.avif +0 -0
  29. package/dist/site/assets/architectureDiagram-YGSQEFNW-DMB5UtEZ.js +36 -0
  30. package/dist/site/assets/blockDiagram-APKKGZFW-CeBSUSaW.js +140 -0
  31. package/dist/site/assets/bpmnIcons-APHXDYXF-ByGoYv9M.js +1 -0
  32. package/dist/site/assets/c4Diagram-KJ2TOQU5-BmBo2PHu.js +38 -0
  33. package/dist/site/assets/catalog-07-UR91A.avif +0 -0
  34. package/dist/site/assets/chunk-2Q5K7J3B-BDgDFVbx.js +1 -0
  35. package/dist/site/assets/chunk-5VM5RSS4-CCNs5Q1j.js +15 -0
  36. package/dist/site/assets/chunk-HFQBQIA3-B8uXoLoT.js +1 -0
  37. package/dist/site/assets/chunk-JWPE2WC7-BiKy7CcD.js +1 -0
  38. package/dist/site/assets/chunk-KQLB2F66-D_kpUTKA.js +2 -0
  39. package/dist/site/assets/chunk-KS47KZWR-C_s_qnHf.js +1 -0
  40. package/dist/site/assets/chunk-OY52VR5R-D8f7gl4W.js +88 -0
  41. package/dist/site/assets/chunk-TU62E6Q5-Bm44Znlj.js +1 -0
  42. package/dist/site/assets/chunk-XXDRQBXY-ChLLr56_.js +1 -0
  43. package/dist/site/assets/classDiagram-v2-L25IHNXF-DwKi-r2i.js +217 -0
  44. package/dist/site/assets/cose-bilkent-JH36ORCC-8N6YUm1i.js +1 -0
  45. package/dist/site/assets/cover-blue-Bh8Xp4T5.avif +0 -0
  46. package/dist/site/assets/cover-blue-mobile-YcuYIg0I.avif +0 -0
  47. package/dist/site/assets/cover-green-By13JjUx.avif +0 -0
  48. package/dist/site/assets/cover-green-mobile-BNTgNt7v.avif +0 -0
  49. package/dist/site/assets/cover-red-mobile-DHOCz3wI.avif +0 -0
  50. package/dist/site/assets/cover-red-qvZEk3PI.avif +0 -0
  51. package/dist/site/assets/cynefin-EF2NZ3EQ-Df5ATUPb.js +141 -0
  52. package/dist/site/assets/cynefinDiagram-L36ESFBY-DmAbfxAU.js +62 -0
  53. package/dist/site/assets/cytoscape.esm-BHa1VTXv.js +321 -0
  54. package/dist/site/assets/d3-scale-4DPf7zan.js +1 -0
  55. package/dist/site/assets/dagre-SPEB5RXH-B_2grAE7.js +4 -0
  56. package/dist/site/assets/diagram-3B7GL73J-C9FXwDlf.js +200 -0
  57. package/dist/site/assets/diagram-DNEMPZML-DflAT3gr.js +24 -0
  58. package/dist/site/assets/diagram-L3MUGCDN-B04gjrM_.js +41 -0
  59. package/dist/site/assets/diagram-LA4NIPWU-cfWJg8HX.js +24 -0
  60. package/dist/site/assets/diagram-MHCOC4E2-jRbOs2Df.js +3 -0
  61. package/dist/site/assets/diagram-XPFHEONP-yR45xV59.js +30 -0
  62. package/dist/site/assets/ebnfDiagram-UZSYDL2S-DlmNJUx4.js +1 -0
  63. package/dist/site/assets/elk-XV6XMXQE-cHLdRN7u.js +27 -0
  64. package/dist/site/assets/erDiagram-EYBAPDEH-7HsRsmBI.js +99 -0
  65. package/dist/site/assets/es-DoLiZPBX.js +2 -0
  66. package/dist/site/assets/favicon-C9YRygge.png +0 -0
  67. package/dist/site/assets/flowDiagram-MALGAFMO-DoJjw4RA.js +213 -0
  68. package/dist/site/assets/ganttDiagram-23REXITY-D2uZtX_8.js +292 -0
  69. package/dist/site/assets/gitGraphDiagram-STJD7YCW-CjftfLRK.js +106 -0
  70. package/dist/site/assets/graph-D8UmR1vK.js +1 -0
  71. package/dist/site/assets/index-CqcyU6rA.js +1 -0
  72. package/dist/site/assets/index-DWW-KDWe.css +1 -0
  73. package/dist/site/assets/infoDiagram-KBXO4MBG-HN-1tqq1.js +2 -0
  74. package/dist/site/assets/ishikawaDiagram-M35NCXHK-DcnRwsO0.js +70 -0
  75. package/dist/site/assets/journeyDiagram-OPLOXDXO-CMZGp8mG.js +139 -0
  76. package/dist/site/assets/kanban-definition-BZKZHSQY-C9vGS-EW.js +89 -0
  77. package/dist/site/assets/katex-DLSO0Xi6.js +257 -0
  78. package/dist/site/assets/mindmap-definition-I2QAS2VK-R2SGME7R.js +98 -0
  79. package/dist/site/assets/mobile-cabinet-BUr9vtlo.avif +0 -0
  80. package/dist/site/assets/mobile-cabinet-sm-pauJUfRH.avif +0 -0
  81. package/dist/site/assets/mobile-paper-DF0CuLes.avif +0 -0
  82. package/dist/site/assets/mobile-paper-sm-77eJHX6h.avif +0 -0
  83. package/dist/site/assets/open-nWGD2hyb.glb +0 -0
  84. package/dist/site/assets/pegDiagram-FD4XPPHP-eDMY4Hpd.js +1 -0
  85. package/dist/site/assets/pieDiagram-J4AKIIQI-DoHNiqwi.js +39 -0
  86. package/dist/site/assets/quadrantDiagram-XTYBLID2-Bz5idec8.js +7 -0
  87. package/dist/site/assets/railroadDiagram-MRQ6NCDL-DHJisW8P.js +1 -0
  88. package/dist/site/assets/requirementDiagram-Y7LWUY3S-5aETRIZz.js +84 -0
  89. package/dist/site/assets/resting-amber-BSjsErIg.avif +0 -0
  90. package/dist/site/assets/resting-black-DDQ4XMJI.avif +0 -0
  91. package/dist/site/assets/resting-blue-DDOT8IQ8.avif +0 -0
  92. package/dist/site/assets/resting-green-DkRrV8eX.avif +0 -0
  93. package/dist/site/assets/resting-ivory-CEqoG5yI.avif +0 -0
  94. package/dist/site/assets/resting-plum-B-8tkSmP.avif +0 -0
  95. package/dist/site/assets/resting-red-D0hLpMpz.avif +0 -0
  96. package/dist/site/assets/resting-slate-CH8Z_Rky.avif +0 -0
  97. package/dist/site/assets/resting-teal-CGt6jFmT.avif +0 -0
  98. package/dist/site/assets/resting-walnut-t3WgHgUO.avif +0 -0
  99. package/dist/site/assets/sankeyDiagram-WGJFYUXA-C7O4v9rg.js +40 -0
  100. package/dist/site/assets/search-stage-B8cH1AE_.avif +0 -0
  101. package/dist/site/assets/search-stage-mobile-BZ58ew4F.avif +0 -0
  102. package/dist/site/assets/sequenceDiagram-5NDRBG5M-D4sVU6s6.js +169 -0
  103. package/dist/site/assets/sizeCapture-INFHLROL-Bi2DkFS3.js +1 -0
  104. package/dist/site/assets/stateDiagram-v2-FJ4FJNEA-WqXK7YOd.js +291 -0
  105. package/dist/site/assets/swimlanes-UMQ2AFYF-Czo9WyoV.js +1 -0
  106. package/dist/site/assets/swimlanesDiagram-OMPLPG4O-BH5aEx0X.js +8 -0
  107. package/dist/site/assets/three-core-Dkab0Vtn.js +40 -0
  108. package/dist/site/assets/timeline-definition-SEUHKTQE-KGKDZW_q.js +120 -0
  109. package/dist/site/assets/usecaseDiagram-AFA6YXN4-S0_9S22K.js +370 -0
  110. package/dist/site/assets/vennDiagram-NNMJR3RB-DJOjLlbA.js +34 -0
  111. package/dist/site/assets/wardleyDiagram-S7YFUSEH-BnzYzY-n.js +78 -0
  112. package/dist/site/assets/xychartDiagram-GGNKY7IX-CKOVznoa.js +7 -0
  113. package/dist/site/index.html +14 -0
  114. package/dist/types/index.d.ts +163 -0
  115. package/package.json +27 -11
  116. package/dist/grimoire3d.js +0 -82131
  117. package/dist/grimoire3d.umd.cjs +0 -4470
@@ -0,0 +1,37 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./MermaidDiagram-Dma3Cwvn.js","./index-CqcyU6rA.js","./index-DWW-KDWe.css"])))=>i.map(i=>d[i]);
2
+ import{b as fl,a as Y,$ as hl,d as Ur,T as Wn,F as Vr,w as pl,j as ml,g as dl,k as gl,l as xl,_ as yl}from"./index-CqcyU6rA.js";const kl=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],bl=fl("play",kl);function wl(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Cl=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Sl=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,vl={};function Qn(e,t){return(vl.jsx?Sl:Cl).test(e)}const Al=/[ \t\n\f\r]/g;function El(e){return typeof e=="object"?e.type==="text"?Yn(e.value):!1:Yn(e)}function Yn(e){return e.replace(Al,"")===""}class Je{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}Je.prototype.normal={};Je.prototype.property={};Je.prototype.space=void 0;function Hr(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new Je(n,r,t)}function Kt(e){return e.toLowerCase()}class ne{constructor(t,n){this.attribute=n,this.property=t}}ne.prototype.attribute="";ne.prototype.booleanish=!1;ne.prototype.boolean=!1;ne.prototype.commaOrSpaceSeparated=!1;ne.prototype.commaSeparated=!1;ne.prototype.defined=!1;ne.prototype.mustUseProperty=!1;ne.prototype.number=!1;ne.prototype.overloadedBoolean=!1;ne.prototype.property="";ne.prototype.spaceSeparated=!1;ne.prototype.space=void 0;let Il=0;const N=Le(),Q=Le(),Jt=Le(),E=Le(),H=Le(),Te=Le(),ie=Le();function Le(){return 2**++Il}const Zt=Object.freeze(Object.defineProperty({__proto__:null,boolean:N,booleanish:Q,commaOrSpaceSeparated:ie,commaSeparated:Te,number:E,overloadedBoolean:Jt,spaceSeparated:H},Symbol.toStringTag,{value:"Module"})),Et=Object.keys(Zt);class dn extends ne{constructor(t,n,r,i){let o=-1;if(super(t,n),Gn(this,"space",i),typeof r=="number")for(;++o<Et.length;){const l=Et[o];Gn(this,Et[o],(r&Zt[l])===Zt[l])}}}dn.prototype.defined=!0;function Gn(e,t,n){n&&(e[t]=n)}function _e(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new dn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Kt(r)]=r,n[Kt(o.attribute)]=r}return new Je(t,n,e.space)}const Wr=_e({properties:{ariaActiveDescendant:null,ariaAtomic:Q,ariaAutoComplete:null,ariaBusy:Q,ariaChecked:Q,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:H,ariaCurrent:null,ariaDescribedBy:H,ariaDetails:null,ariaDisabled:Q,ariaDropEffect:H,ariaErrorMessage:null,ariaExpanded:Q,ariaFlowTo:H,ariaGrabbed:Q,ariaHasPopup:null,ariaHidden:Q,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:H,ariaLevel:E,ariaLive:null,ariaModal:Q,ariaMultiLine:Q,ariaMultiSelectable:Q,ariaOrientation:null,ariaOwns:H,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:Q,ariaReadOnly:Q,ariaRelevant:null,ariaRequired:Q,ariaRoleDescription:H,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:Q,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Qr(e,t){return t in e?e[t]:t}function Yr(e,t){return Qr(e,t.toLowerCase())}const Tl=_e({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Te,acceptCharset:H,accessKey:H,action:null,allow:null,allowFullScreen:N,allowPaymentRequest:N,allowUserMedia:N,alpha:N,alt:null,as:null,async:N,autoCapitalize:null,autoComplete:H,autoFocus:N,autoPlay:N,blocking:H,capture:null,charSet:null,checked:N,cite:null,className:H,closedBy:null,colorSpace:null,cols:E,colSpan:E,command:null,commandFor:null,content:null,contentEditable:Q,controls:N,controlsList:H,coords:E|Te,crossOrigin:null,data:null,dateTime:null,decoding:null,default:N,defer:N,dir:null,dirName:null,disabled:N,download:Jt,draggable:Q,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:N,formTarget:null,headers:H,height:E,hidden:Jt,high:E,href:null,hrefLang:null,htmlFor:H,httpEquiv:H,id:null,imageSizes:null,imageSrcSet:null,inert:N,inputMode:null,integrity:null,is:null,isMap:N,itemId:null,itemProp:H,itemRef:H,itemScope:N,itemType:H,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:N,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:N,muted:N,name:null,nonce:null,noModule:N,noValidate:N,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:N,optimum:E,pattern:null,ping:H,placeholder:null,playsInline:N,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:N,referrerPolicy:null,rel:H,required:N,reversed:N,rows:E,rowSpan:E,sandbox:H,scope:null,scoped:N,seamless:N,selected:N,shadowRootClonable:N,shadowRootCustomElementRegistry:N,shadowRootDelegatesFocus:N,shadowRootMode:null,shadowRootSerializable:N,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:Q,src:null,srcDoc:null,srcLang:null,srcSet:null,start:E,step:null,style:null,tabIndex:E,target:null,title:null,translate:null,type:null,typeMustMatch:N,useMap:null,value:Q,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:H,axis:null,background:null,bgColor:null,border:E,borderColor:null,bottomMargin:E,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:N,declare:N,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:N,noHref:N,noShade:N,noWrap:N,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:Q,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:N,disablePictureInPicture:N,disableRemotePlayback:N,exportParts:Te,part:H,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:Yr}),Ll=_e({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",maskType:"mask-type",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ie,accentHeight:E,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:E,amplitude:E,arabicForm:null,ascent:E,attributeName:null,attributeType:null,azimuth:E,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:E,by:null,calcMode:null,capHeight:E,className:H,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:E,diffuseConstant:E,direction:null,display:null,dur:null,divisor:E,dominantBaseline:null,download:N,dx:null,dy:null,edgeMode:null,editable:null,elevation:E,enableBackground:null,end:null,event:null,exponent:E,externalResourcesRequired:null,fill:null,fillOpacity:E,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:Te,g2:Te,glyphName:Te,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:E,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:E,horizOriginX:E,horizOriginY:E,id:null,ideographic:E,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:E,k:E,k1:E,k2:E,k3:E,k4:E,kernelMatrix:ie,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:E,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:E,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:E,overlineThickness:E,paintOrder:null,panose1:null,path:null,pathLength:E,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:H,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ie,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ie,rev:ie,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ie,requiredFeatures:ie,requiredFonts:ie,requiredFormats:ie,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:E,specularExponent:E,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:E,strikethroughThickness:E,string:null,stroke:null,strokeDashArray:ie,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:E,strokeOpacity:E,strokeWidth:null,style:null,surfaceScale:E,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ie,tabIndex:E,tableValues:null,target:null,targetX:E,targetY:E,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ie,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:E,underlineThickness:E,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:E,values:null,vAlphabetic:E,vMathematical:E,vectorEffect:null,vHanging:E,vIdeographic:E,version:null,vertAdvY:E,vertOriginX:E,vertOriginY:E,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:E,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Qr}),Gr=_e({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),Xr=_e({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Yr}),Kr=_e({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),zl={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"},Pl=/[A-Z]/g,Xn=/-[a-z]/g,Dl=/^data[-\w.:]+$/i;function Fl(e,t){const n=Kt(t);let r=t,i=ne;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Dl.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(Xn,Ol);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!Xn.test(o)){let l=o.replace(Pl,Ml);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=dn}return new i(r,t)}function Ml(e){return"-"+e.toLowerCase()}function Ol(e){return e.charAt(1).toUpperCase()}const Rl=Hr([Wr,Tl,Gr,Xr,Kr],"html"),gn=Hr([Wr,Ll,Gr,Xr,Kr],"svg");function Nl(e){return e.join(" ").trim()}var Kn=/\/\*(?:[^*]|\*(?!\/))*\*\//g,_l=/\n/g,Bl=/^\s*/,jl=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ql=/^:\s*/,$l=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,Ul=/^[;\s]*/,Vl=`
3
+ `,Jn="/",Zn="*",Ve="",Hl="comment",Wl="declaration";function Ql(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(m){var x=m.match(_l);x&&(n+=x.length);var b=m.lastIndexOf(Vl);r=~b?m.length-b:r+m.length}function o(){var m={line:n,column:r};return function(x){return x.position=new l(m),s(),x}}function l(m){this.start=m,this.end={line:n,column:r},this.source=t.source}l.prototype.content=e;function a(m){var x=new Error(t.source+":"+n+":"+r+": "+m);if(x.reason=m,x.filename=t.source,x.line=n,x.column=r,x.source=e,!t.silent)throw x}function u(m){var x=m.exec(e);if(x){var b=x[0];return i(b),e=e.slice(b.length),x}}function s(){u(Bl)}function c(m){for(var x;x=f();)m.push(x);return m}function f(){var m=o();if(!(Jn!=e.charAt(0)||Zn!=e.charAt(1))){for(var x=2;Ve!=e.charAt(x)&&(Zn!=e.charAt(x)||Jn!=e.charAt(x+1));)++x;if(x+=2,Ve===e.charAt(x-1))return a("End of comment missing");var b=e.slice(2,x-2);return r+=2,i(b),e=e.slice(x),r+=2,m({type:Hl,comment:b})}}function p(){var m=o(),x=u(jl);if(x){if(f(),!u(ql))return a("property missing ':'");var b=u($l),y=m({type:Wl,property:x[0].replace(Kn,Ve).trim(),value:b?b[0].replace(Kn,Ve).trim():Ve});return u(Ul),y}}function h(){var m=[];c(m);for(var x;x=p();)m.push(x),c(m);return m}return s(),h()}function Yl(e,t){let n=null;if(!e||typeof e!="string")return n;const r=Ql(e),i=typeof t=="function";return r.forEach(o=>{if(o.type!=="declaration")return;const{property:l,value:a}=o;i?t(l,a,o):a&&(n=n??{},n[l]=a)}),n}const Jr=Zr("end"),xn=Zr("start");function Zr(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Gl(e){const t=xn(e),n=Jr(e);if(t&&n)return{start:t,end:n}}function Qe(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?er(e.position):"start"in e||"end"in e?er(e):"line"in e||"column"in e?en(e):""}function en(e){return tr(e&&e.line)+":"+tr(e&&e.column)}function er(e){return en(e&&e.start)+"-"+en(e&&e.end)}function tr(e){return e&&typeof e=="number"?e:1}class mt extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const 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){const u=o.ancestors[o.ancestors.length-1];u&&(o.place=u.position)}const a=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=a?a.line:void 0,this.name=Qe(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}Object.defineProperties(mt.prototype,{file:{configurable:!0,enumerable:!0,value:"",writable:!0},name:{configurable:!0,enumerable:!0,value:"",writable:!0},reason:{configurable:!0,enumerable:!0,value:"",writable:!0},message:{configurable:!0,enumerable:!0,value:"",writable:!0},stack:{configurable:!0,enumerable:!0,value:"",writable:!0},column:{configurable:!0,enumerable:!0,writable:!0},line:{configurable:!0,enumerable:!0,writable:!0},ancestors:{configurable:!0,enumerable:!0,writable:!0},cause:{configurable:!0,enumerable:!0,writable:!0},fatal:{configurable:!0,enumerable:!0,writable:!0},place:{configurable:!0,enumerable:!0,writable:!0},ruleId:{configurable:!0,enumerable:!0,writable:!0},source:{configurable:!0,enumerable:!0,writable:!0}});const yn={}.hasOwnProperty,Xl=new Map,Kl=/[A-Z]/g,Jl=/-([a-z])/g,Zl=new Set(["table","tbody","thead","tfoot","tr"]),eo=new Set(["td","th"]),ei="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function to(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=so(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=uo(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?gn:Rl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=ti(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function ti(e,t,n){if(t.type==="element")return no(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ro(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return lo(e,t,n);if(t.type==="mdxjsEsm")return io(e,t);if(t.type==="root")return oo(e,t,n);if(t.type==="text")return ao(e,t)}function no(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=gn,e.schema=i),e.ancestors.push(t);const o=ri(e,t.tagName,!1),l=co(e,t);let a=bn(e,t);return Zl.has(t.tagName)&&(a=a.filter(function(u){return typeof u=="string"?!El(u):!0})),ni(e,l,o,t),kn(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function ro(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}Xe(e,t.position)}function io(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Xe(e,t.position)}function lo(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=gn,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:ri(e,t.name,!0),l=fo(e,t),a=bn(e,t);return ni(e,l,o,t),kn(l,a),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function oo(e,t,n){const r={};return kn(r,bn(e,t)),e.create(t,e.Fragment,r,n)}function ao(e,t){return t.value}function ni(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function kn(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function uo(e,t,n){return r;function r(i,o,l,a){const s=Array.isArray(l.children)?n:t;return a?s(o,l,a):s(o,l)}}function so(e,t){return n;function n(r,i,o,l){const a=Array.isArray(o.children),u=xn(r);return t(i,o,l,a,{columnNumber:u?u.column-1:void 0,fileName:e,lineNumber:u?u.line:void 0},void 0)}}function co(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&yn.call(t.properties,i)){const o=ho(e,i,t.properties[i]);if(o){const[l,a]=o;e.tableCellAlignToStyle&&l==="align"&&typeof a=="string"&&eo.has(t.tagName)?r=a:n[l]=a}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function fo(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const l=o.expression;l.type;const a=l.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Xe(e,t.position);else{const{name:i}=r;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const a=r.value.data.estree.body[0];a.type,o=e.evaluater.evaluateExpression(a.expression)}else Xe(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function bn(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Xl;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const u=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(u){const s=i.get(u)||0;l=u+"-"+s,i.set(u,s+1)}}const a=ti(e,o,l);a!==void 0&&n.push(a)}return n}function ho(e,t,n){if(n==null||typeof n=="number"&&Number.isNaN(n))return;const r=Fl(e.schema,t);return Array.isArray(n)&&(n=r.commaSeparated?wl(n):Nl(n)),r.property==="style"?["style",typeof n=="object"?e.stylePropertyNameCase==="dom"?n:mo(n):po(e,String(n))]:[e.elementAttributeNameCase==="react"&&r.space?zl[r.property]||r.property:r.attribute,n]}function po(e,t){const n={};try{Yl(t,function(r,i){if(r&&i){let o=r;o.slice(0,2)!=="--"&&(o=o.toLowerCase(),e.stylePropertyNameCase==="dom"&&(o.slice(0,4)==="-ms-"&&(o=o.slice(1)),o=o.replace(Jl,yo))),n[o]=i}})}catch(r){if(e.ignoreInvalidStyle)return{};const i=r,o=new mt("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw o.file=e.filePath||void 0,o.url=ei+"#cannot-parse-style-attribute",o}return n}function ri(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const a=Qn(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:a,computed:!!(o&&a.type==="Literal"),optional:!1}:a}r=l}else r=Qn(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return yn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);Xe(e)}function Xe(e,t){const n=new mt("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=ei+"#cannot-handle-mdx-estrees-without-createevaluater",n}function mo(e){const t={};let n;for(n in e)yn.call(e,n)&&(t[go(n)]=e[n]);return t}function go(e){if(e.slice(0,2)==="--")return e;let t=e.replace(Kl,xo);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function xo(e){return"-"+e.toLowerCase()}function yo(e,t){return t.toUpperCase()}const It={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"]},ko={};function dt(e,t){const n=ko,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ii(e,r,i)}function ii(e,t,n){if(bo(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return nr(e.children,t,n)}return Array.isArray(e)?nr(e,t,n):""}function nr(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=ii(e[i],t,n);return r.join("")}function bo(e){return!!(e&&typeof e=="object")}const rr=document.createElement("i");function Ke(e){const t="&"+e+";";rr.innerHTML=t;const n=rr.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ce(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function le(e,t){return e.length>0?(ce(e,e.length,0,t),e):t}const ir={}.hasOwnProperty;function li(e){const t={};let n=-1;for(;++n<e.length;)wo(t,e[n]);return t}function wo(e,t){let n;for(n in t){const i=(ir.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let l;if(o)for(l in o){ir.call(i,l)||(i[l]=[]);const a=o[l];Co(i[l],Array.isArray(a)?a:a?[a]:[])}}}function Co(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);ce(e,0,0,r)}function oi(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function fe(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const X=Ae(/[A-Za-z]/),J=Ae(/[\dA-Za-z]/),So=Ae(/[#-'*+\--9=?A-Z^-~]/);function ut(e){return e!==null&&(e<32||e===127)}const tn=Ae(/\d/),vo=Ae(/[\dA-Fa-f]/),ai=Ae(/[!-/:-@[-`{-~]/);function P(e){return e!==null&&e<-2}function V(e){return e!==null&&(e<0||e===32)}function B(e){return e===-2||e===-1||e===32}const me=Ae(new RegExp("\\p{P}|\\p{S}","u")),oe=Ae(/\s/);function Ae(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Be(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&J(e.charCodeAt(n+1))&&J(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const a=e.charCodeAt(n+1);o<56320&&a>56319&&a<57344?(l=String.fromCharCode(o,a),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function q(e,t,n,r){const i=r?r-1:1/0;let o=0;return l;function l(u){return B(u)?(e.enter(n),a(u)):t(u)}function a(u){return B(u)&&o++<i?(e.consume(u),a):(e.exit(n),t(u))}}function ui(e,t,n,r,i,o){let l=0;return a;function a(c){return B(c)?(e.enter(r),u(c)):s(c)}function u(c){return B(c)&&l<o?(e.consume(c),l++,u):(e.exit(r),s(c))}function s(c){return l>=i?t(c):n(c)}}const Ao={tokenize:Eo};function Eo(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),q(e,t,"linePrefix")}function i(a){return e.enter("paragraph"),o(a)}function o(a){const u=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=u),n=u,l(a)}function l(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return P(a)?(e.consume(a),e.exit("chunkText"),o):(e.consume(a),l)}}let st=class{constructor(){this.index=new Map,this.map=[]}add(t,n,r){lr(this,t,n,r,!1)}addBefore(t,n,r){lr(this,t,n,r,!0)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0,this.index.clear()}};function lr(e,t,n,r,i){if(n===0&&r.length===0)return;const o=e.index.get(t);if(o){o[1]+=n,i?(r.push(...o[2]),o[2]=r):o[2].push(...r);return}const l=[t,n,r];e.map.push(l),e.index.set(t,l)}const Io={tokenize:To},or={tokenize:Lo};function To(e){const t=this,n=[];let r=0,i,o,l;return a;function a(C){if(r<n.length){const L=n[r];return t.containerState=L[1],e.attempt(L[0].continuation,u,s)(C)}return s(C)}function u(C){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&A();const L=t.events.length;let O=L,S;for(;O--;)if(t.events[O][0]==="exit"&&t.events[O][1].type==="chunkFlow"){S=t.events[O][1].end;break}y(r);let F=L;for(;F<t.events.length;)t.events[F][1].end={...S},F++;const R=new st;return R.add(O+1,0,t.events.slice(L)),R.add(L,F-L,[]),R.consume(t.events),s(C)}return a(C)}function s(C){if(r===n.length){if(!i)return p(C);if(i.currentConstruct&&i.currentConstruct.concrete)return m(C);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(or,c,f)(C)}function c(C){return i&&A(),y(r),p(C)}function f(C){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,m(C)}function p(C){return t.containerState={},e.attempt(or,h,m)(C)}function h(C){return r++,n.push([t.currentConstruct,t.containerState]),p(C)}function m(C){if(C===null){i&&A(),y(0),e.consume(C);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),x(C)}function x(C){if(C===null){b(e.exit("chunkFlow"),!0),y(0),e.consume(C);return}return P(C)?(e.consume(C),b(e.exit("chunkFlow")),r=0,t.interrupt=void 0,a):(e.consume(C),x)}function b(C,L){const O=t.sliceStream(C);if(L&&O.push(null),C.previous=o,o&&(o.next=C),o=C,i.defineSkip(C.start),i.write(O),t.parser.lazy[C.start.line]){let S=i.events.length;for(;S--;)if(i.events[S][1].start.offset<l&&(!i.events[S][1].end||i.events[S][1].end.offset>l))return;const F=t.events.length;let R=F,I,w;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){if(I){w=t.events[R][1].end;break}I=!0}for(y(r),S=F;S<t.events.length;)t.events[S][1].end={...w},S++;const T=new st;T.add(R+1,0,t.events.slice(F)),T.add(F,S-F,[]),T.consume(t.events)}}function y(C){let L=n.length;for(;L-- >C;){const O=n[L];t.containerState=O[1],O[0].exit.call(t,e)}n.length=C}function A(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Lo(e,t,n){return q(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Se(e){if(e===null||V(e)||oe(e))return 1;if(me(e))return 2}function gt(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const nn={name:"attention",resolveAll:zo,tokenize:Po};function zo(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;const o=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,l={...e[i][1].end},a={...e[n][1].start};ar(l,-o),ar(a,o);const u={type:o>1?"strongSequence":"emphasisSequence",start:l,end:{...e[i][1].end}},s={type:o>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:a},c={type:o>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},f={type:o>1?"strong":"emphasis",start:{...u.start},end:{...s.end}};e[i][1].end={...u.start},e[n][1].start={...s.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=le(r,[["enter",e[i][1],t],["exit",e[i][1],t]])),r=le(r,[["enter",f,t],["enter",u,t],["exit",u,t],["enter",c,t]]),r=le(r,gt(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=le(r,[["exit",c,t],["enter",s,t],["exit",s,t],["exit",f,t]]);let p=0;e[n][1].end.offset-e[n][1].start.offset&&(p=2,r=le(r,[["enter",e[n][1],t],["exit",e[n][1],t]])),ce(e,i-1,n-i+3,r),n=i+r.length-p-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Po(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Se(r);let 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;const s=e.exit("attentionSequence"),c=Se(u),f=!c||c===2&&i||n.includes(u)&&u!==42&&u!==95,p=!i||i===2&&c||n.includes(r)&&r!==42&&r!==95;return s._open=!!(o===42?f:f&&(i||!p)),s._close=!!(o===42?p:p&&(c||!f)),t(u)}}function ar(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Do={name:"autolink",tokenize:Fo};function Fo(e,t,n){let r=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return X(h)?(e.consume(h),l):h===64?n(h):s(h)}function l(h){return h===43||h===45||h===46||J(h)?(r=1,a(h)):s(h)}function a(h){return h===58?(e.consume(h),r=0,u):(h===43||h===45||h===46||J(h))&&r++<32?(e.consume(h),a):(r=0,s(h))}function u(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||ut(h)?n(h):(e.consume(h),u)}function s(h){return h===64?(e.consume(h),c):So(h)?(e.consume(h),s):n(h)}function c(h){return J(h)?f(h):n(h)}function f(h){return h===46?(e.consume(h),r=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||J(h))&&r++<63){const m=h===45?p:f;return e.consume(h),m}return n(h)}}const Ze={partial:!0,tokenize:Mo};function Mo(e,t,n){return r;function r(o){return B(o)?q(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||P(o)?t(o):n(o)}}const si={continuation:{tokenize:Ro},exit:No,name:"blockQuote",tokenize:Oo};function Oo(e,t,n){const r=this;return i;function i(l){if(l===62){const a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return B(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function Ro(e,t,n){const r=this;return i;function i(l){return B(l)?q(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(si,t,n)(l)}}function No(e){e.exit("blockQuote")}const ci={name:"characterEscape",tokenize:_o};function _o(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return ai(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const fi={name:"characterReference",tokenize:Bo};function Bo(e,t,n){const r=this;let i=0,o,l;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),u}function u(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),o=31,l=J,c(f))}function s(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=vo,c):(e.enter("characterReferenceValue"),o=7,l=tn,c(f))}function c(f){if(f===59&&i){const p=e.exit("characterReferenceValue");return l===J&&!Ke(r.sliceSerialize(p))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(f)&&i++<o?(e.consume(f),c):n(f)}}const rn={partial:!0,tokenize:jo};function jo(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const ur={concrete:!0,name:"codeFenced",tokenize:qo};function qo(e,t,n){const r=this,i={partial:!0,tokenize:O};let o=0,l=0,a;return u;function u(S){return s(S)}function s(S){const F=r.events[r.events.length-1];return o=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,a=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(S)}function c(S){return S===a?(l++,e.consume(S),c):l<3?n(S):(e.exit("codeFencedFenceSequence"),B(S)?q(e,f,"whitespace")(S):f(S))}function f(S){return S===null||P(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(rn,x,L)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||P(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(S)):B(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),q(e,h,"whitespace")(S)):S===96&&S===a?n(S):(e.consume(S),p)}function h(S){return S===null||P(S)?f(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===null||P(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(S)):S===96&&S===a?n(S):(e.consume(S),m)}function x(S){return e.attempt(i,L,b)(S)}function b(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),y}function y(S){return o>0&&B(S)?q(e,A,"linePrefix",o+1)(S):A(S)}function A(S){return S===null||P(S)?e.check(rn,x,L)(S):(e.enter("codeFlowValue"),C(S))}function C(S){return S===null||P(S)?(e.exit("codeFlowValue"),A(S)):(e.consume(S),C)}function L(S){return e.exit("codeFenced"),t(S)}function O(S,F,R){let I=0;return w;function w(k){return S.enter("lineEnding"),S.consume(k),S.exit("lineEnding"),T}function T(k){return S.enter("codeFencedFence"),B(k)?q(S,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(k):D(k)}function D(k){return k===a?(S.enter("codeFencedFenceSequence"),M(k)):R(k)}function M(k){return k===a?(I++,S.consume(k),M):I>=l?(S.exit("codeFencedFenceSequence"),B(k)?q(S,$,"whitespace")(k):$(k)):R(k)}function $(k){return k===null||P(k)?(S.exit("codeFencedFence"),F(k)):R(k)}}}const Tt={name:"codeIndented",tokenize:Uo},$o={partial:!0,tokenize:Vo};function Uo(e,t,n){return r;function r(a){return e.enter("codeIndented"),ui(e,i,n,"linePrefix",4,4)(a)}function i(a){return a===null?l(a):P(a)?e.attempt($o,i,l)(a):(e.enter("codeFlowValue"),o(a))}function o(a){return a===null||P(a)?(e.exit("codeFlowValue"),i(a)):(e.consume(a),o)}function l(a){return e.exit("codeIndented"),t(a)}}function Vo(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):P(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):ui(e,t,o,"linePrefix",4,4)(l)}function o(l){return P(l)?i(l):n(l)}}const Ho={name:"codeText",previous:Qo,resolve:Wo,tokenize:Yo};function Wo(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Qo(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Yo(e,t,n){let r=0,i,o;return l;function l(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),r++,a):(e.exit("codeTextSequence"),u(f))}function u(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),u):f===96?(o=e.enter("codeTextSequence"),i=0,c(f)):P(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),u):(e.enter("codeTextData"),s(f))}function s(f){return f===null||f===32||f===96||P(f)?(e.exit("codeTextData"),u(f)):(e.consume(f),s)}function c(f){return f===96?(e.consume(f),i++,c):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(o.type="codeTextData",s(f))}}class Go{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&He(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),He(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),He(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);He(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);He(this.left,n.reverse())}}}function He(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function hi(e){const t={};let n=-1,r,i,o,l,a,u,s;const c=new Go(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-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(t,Xo(c,n)),n=t[n],s=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=c.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(c.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...c.get(i)[1].start},a=c.slice(i,n),a.unshift(r),c.splice(i,n-i+1,a))}}return ce(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!s}function Xo(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const a=l.events,u=[],s={};let c,f,p=-1,h=n,m=0,x=0;const b=[x];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(c=r.sliceStream(h),h.next||c.push(null),f&&l.defineSkip(h.start),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(c),h._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(x=p+1,b.push(x),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(l.events=[],h?(h._tokenizer=void 0,h.previous=void 0):b.pop(),p=b.length;p--;){const y=a.slice(b[p],b[p+1]),A=o.pop();u.push([A,A+y.length-1]),e.splice(A,2,y)}for(u.reverse(),p=-1;++p<u.length;)s[m+u[p][0]]=m+u[p][1],m+=u[p][1]-u[p][0]-1;return s}const Ko={resolve:Zo,tokenize:ea},Jo={partial:!0,tokenize:ta};function Zo(e){return hi(e),e}function ea(e,t){let n;return r;function r(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(a)}function i(a){return a===null?o(a):P(a)?e.check(Jo,l,o)(a):(e.consume(a),i)}function o(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function l(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function ta(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),q(e,o,"linePrefix")}function o(l){if(l===null||P(l))return n(l);const a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function pi(e,t,n,r,i,o,l,a,u){const s=u||Number.POSITIVE_INFINITY;let c=0;return f;function f(y){return y===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(y),e.exit(o),p):y===null||y===32||y===41||ut(y)?n(y):(e.enter(r),e.enter(l),e.enter(a),e.enter("chunkString",{contentType:"string"}),x(y))}function p(y){return y===62?(e.enter(o),e.consume(y),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(y))}function h(y){return y===62?(e.exit("chunkString"),e.exit(a),p(y)):y===null||y===60||P(y)?n(y):(e.consume(y),y===92?m:h)}function m(y){return y===60||y===62||y===92?(e.consume(y),h):h(y)}function x(y){return!c&&(y===null||y===41||V(y))?(e.exit("chunkString"),e.exit(a),e.exit(l),e.exit(r),t(y)):c<s&&y===40?(e.consume(y),c++,x):y===41?(e.consume(y),c--,x):y===null||y===32||y===40||ut(y)?n(y):(e.consume(y),y===92?b:x)}function b(y){return y===40||y===41||y===92?(e.consume(y),x):x(y)}}function mi(e,t,n,r,i,o){const l=this;let a=0,u;return s;function s(h){return e.enter(r),e.enter(i),e.consume(h),e.exit(i),e.enter(o),c}function c(h){return a>999||h===null||h===91||h===93&&!u||h===94&&!a&&"_hiddenFootnoteSupport"in l.parser.constructs?n(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):P(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||P(h)||a++>999?(e.exit("chunkString"),c(h)):(e.consume(h),u||(u=!B(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function di(e,t,n,r,i,o){let l;return a;function a(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),l=p===40?41:p,u):n(p)}function u(p){return p===l?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(o),s(p))}function s(p){return p===l?(e.exit(o),u(l)):p===null?n(p):P(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),q(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===l||p===null||P(p)?(e.exit("chunkString"),s(p)):(e.consume(p),p===92?f:c)}function f(p){return p===l||p===92?(e.consume(p),c):c(p)}}function ke(e,t){let n;return r;function r(i){return P(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):B(i)?q(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const na={name:"definition",tokenize:ia},ra={partial:!0,tokenize:la};function ia(e,t,n){const r=this;let i;return o;function o(h){return e.enter("definition"),l(h)}function l(h){return mi.call(r,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return i=fe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),u):n(h)}function u(h){return V(h)?ke(e,s)(h):s(h)}function s(h){return pi(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(ra,f,f)(h)}function f(h){return B(h)?q(e,p,"whitespace")(h):p(h)}function p(h){return h===null||P(h)?(e.exit("definition"),r.parser.defined.push(i),t(h)):n(h)}}function la(e,t,n){return r;function r(a){return V(a)?ke(e,i)(a):n(a)}function i(a){return di(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function o(a){return B(a)?q(e,l,"whitespace")(a):l(a)}function l(a){return a===null||P(a)?t(a):n(a)}}const oa={name:"hardBreakEscape",tokenize:aa};function aa(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return P(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const ua={name:"headingAtx",resolve:sa,tokenize:ca};function sa(e,t){let n=e.length-2,r=3;if(e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r){const i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"};ce(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])}return e}function ca(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),l(c)}function l(c){return c===35&&r++<6?(e.consume(c),l):c===null||V(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),u(c)):c===null||P(c)?(e.exit("atxHeading"),t(c)):B(c)?q(e,a,"whitespace")(c):(e.enter("atxHeadingText"),s(c))}function u(c){return c===35?(e.consume(c),u):(e.exit("atxHeadingSequence"),a(c))}function s(c){return c===null||c===35||V(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),s)}}const gi=["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"],ln=["pre","script","style","textarea"],fa={concrete:!0,name:"htmlFlow",resolveTo:pa,tokenize:ma},ha={partial:!0,tokenize:da};function pa(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ma(e,t,n){const r=this;let i,o,l,a,u;return s;function s(g){return c(g)}function c(g){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(g),f}function f(g){return g===33?(e.consume(g),p):g===47?(e.consume(g),o=!0,x):g===63?(e.consume(g),i=3,r.interrupt?t:d):X(g)?(e.consume(g),l=String.fromCharCode(g),b):n(g)}function p(g){return g===45?(e.consume(g),i=2,h):g===91?(e.consume(g),i=5,a=0,m):X(g)?(e.consume(g),i=4,r.interrupt?t:d):n(g)}function h(g){return g===45?(e.consume(g),r.interrupt?t:d):n(g)}function m(g){const se="CDATA[";return g===se.charCodeAt(a++)?(e.consume(g),a===se.length?r.interrupt?t:D:m):n(g)}function x(g){return X(g)?(e.consume(g),l=String.fromCharCode(g),b):n(g)}function b(g){if(g===null||g===47||g===62||V(g)){const se=g===47,ze=l.toLowerCase();return!se&&!o&&ln.includes(ze)?(i=1,r.interrupt?t(g):D(g)):gi.includes(l.toLowerCase())?(i=6,se?(e.consume(g),y):r.interrupt?t(g):D(g)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(g):o?A(g):C(g))}return g===45||J(g)?(e.consume(g),l+=String.fromCharCode(g),b):n(g)}function y(g){return g===62?(e.consume(g),r.interrupt?t:D):n(g)}function A(g){return B(g)?(e.consume(g),A):w(g)}function C(g){return g===47?(e.consume(g),w):g===58||g===95||X(g)?(e.consume(g),L):B(g)?(e.consume(g),C):w(g)}function L(g){return g===45||g===46||g===58||g===95||J(g)?(e.consume(g),L):O(g)}function O(g){return g===61?(e.consume(g),S):B(g)?(e.consume(g),O):C(g)}function S(g){return g===null||g===60||g===61||g===62||g===96?n(g):g===34||g===39?(e.consume(g),u=g,F):B(g)?(e.consume(g),S):R(g)}function F(g){return g===u?(e.consume(g),u=null,I):g===null||P(g)?n(g):(e.consume(g),F)}function R(g){return g===null||g===34||g===39||g===47||g===60||g===61||g===62||g===96||V(g)?O(g):(e.consume(g),R)}function I(g){return g===47||g===62||B(g)?C(g):n(g)}function w(g){return g===62?(e.consume(g),T):n(g)}function T(g){return g===null||P(g)?D(g):B(g)?(e.consume(g),T):n(g)}function D(g){return g===45&&i===2?(e.consume(g),U):g===60&&i===1?(e.consume(g),K):g===62&&i===4?(e.consume(g),ue):g===63&&i===3?(e.consume(g),d):g===93&&i===5?(e.consume(g),ge):P(g)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(ha,xe,M)(g)):g===null||P(g)?(e.exit("htmlFlowData"),M(g)):(e.consume(g),D)}function M(g){return e.check(rn,$,xe)(g)}function $(g){return e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),k}function k(g){return g===null||P(g)?M(g):(e.enter("htmlFlowData"),D(g))}function U(g){return g===45?(e.consume(g),d):D(g)}function K(g){return g===47?(e.consume(g),l="",ae):D(g)}function ae(g){if(g===62){const se=l.toLowerCase();return ln.includes(se)?(e.consume(g),ue):D(g)}return X(g)&&l.length<8?(e.consume(g),l+=String.fromCharCode(g),ae):D(g)}function ge(g){return g===93?(e.consume(g),d):D(g)}function d(g){return g===62?(e.consume(g),ue):g===45&&i===2?(e.consume(g),d):D(g)}function ue(g){return g===null||P(g)?(e.exit("htmlFlowData"),xe(g)):(e.consume(g),ue)}function xe(g){return e.exit("htmlFlow"),t(g)}}function da(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ze,t,n)}}const ga={name:"htmlText",tokenize:xa};function xa(e,t,n){const r=this;let i,o,l;return a;function a(d){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(d),u}function u(d){return d===33?(e.consume(d),s):d===47?(e.consume(d),O):d===63?(e.consume(d),C):X(d)?(e.consume(d),R):n(d)}function s(d){return d===45?(e.consume(d),c):d===91?(e.consume(d),o=0,m):X(d)?(e.consume(d),A):n(d)}function c(d){return d===45?(e.consume(d),h):n(d)}function f(d){return d===null?n(d):d===45?(e.consume(d),p):P(d)?(l=f,K(d)):(e.consume(d),f)}function p(d){return d===45?(e.consume(d),h):f(d)}function h(d){return d===62?U(d):d===45?p(d):f(d)}function m(d){const ue="CDATA[";return d===ue.charCodeAt(o++)?(e.consume(d),o===ue.length?x:m):n(d)}function x(d){return d===null?n(d):d===93?(e.consume(d),b):P(d)?(l=x,K(d)):(e.consume(d),x)}function b(d){return d===93?(e.consume(d),y):x(d)}function y(d){return d===62?U(d):d===93?(e.consume(d),y):x(d)}function A(d){return d===null||d===62?U(d):P(d)?(l=A,K(d)):(e.consume(d),A)}function C(d){return d===null?n(d):d===63?(e.consume(d),L):P(d)?(l=C,K(d)):(e.consume(d),C)}function L(d){return d===62?U(d):C(d)}function O(d){return X(d)?(e.consume(d),S):n(d)}function S(d){return d===45||J(d)?(e.consume(d),S):F(d)}function F(d){return P(d)?(l=F,K(d)):B(d)?(e.consume(d),F):U(d)}function R(d){return d===45||J(d)?(e.consume(d),R):d===47||d===62||V(d)?I(d):n(d)}function I(d){return d===47?(e.consume(d),U):d===58||d===95||X(d)?(e.consume(d),w):P(d)?(l=I,K(d)):B(d)?(e.consume(d),I):U(d)}function w(d){return d===45||d===46||d===58||d===95||J(d)?(e.consume(d),w):T(d)}function T(d){return d===61?(e.consume(d),D):P(d)?(l=T,K(d)):B(d)?(e.consume(d),T):I(d)}function D(d){return d===null||d===60||d===61||d===62||d===96?n(d):d===34||d===39?(e.consume(d),i=d,M):P(d)?(l=D,K(d)):B(d)?(e.consume(d),D):(e.consume(d),$)}function M(d){return d===i?(e.consume(d),i=void 0,k):d===null?n(d):P(d)?(l=M,K(d)):(e.consume(d),M)}function $(d){return d===null||d===34||d===39||d===60||d===61||d===96?n(d):d===47||d===62||V(d)?I(d):(e.consume(d),$)}function k(d){return d===47||d===62||V(d)?I(d):n(d)}function U(d){return d===62?(e.consume(d),e.exit("htmlTextData"),e.exit("htmlText"),t):n(d)}function K(d){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),ae}function ae(d){return B(d)?q(e,ge,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d):ge(d)}function ge(d){return e.enter("htmlTextData"),l(d)}}const wn={name:"labelEnd",resolveAll:wa,resolveTo:Ca,tokenize:Sa},ya={tokenize:va},ka={tokenize:Aa},ba={tokenize:Ea};function wa(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&ce(e,0,e.length,n),e}function Ca(e,t){let n=e.length,r=0,i,o,l;for(;n--;){const c=e[n][1];if(i){if(c.type==="link"||c.type==="labelLink"&&c._inactive)break;e[n][0]==="enter"&&c.type==="labelLink"&&(c._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(c.type==="labelImage"||c.type==="labelLink")&&!c._balanced&&(i=n,c.type!=="labelLink")){r=2;break}}else c.type==="labelEnd"&&(o=n)}const a={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},s={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return l=[["enter",a,t],["enter",u,t]],l=le(l,e.slice(i+1,i+r+3)),l=le(l,[["enter",s,t]]),l=le(l,gt(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),l=le(l,[["exit",s,t],e[o-2],e[o-1],["exit",u,t]]),l=le(l,e.slice(o+1)),l=le(l,[["exit",a,t]]),ce(e,i,e.length,l),e}function Sa(e,t,n){const r=this,i=r._labelStarts;let o,l;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();o=i[i.length-1]}return a;function a(p){return o?o._inactive?f(p):(l=r.parser.defined.includes(fe(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),u):n(p)}function u(p){return p===40?e.attempt(ya,c,l?c:f)(p):p===91?e.attempt(ka,c,l?s:f)(p):l?c(p):f(p)}function s(p){return e.attempt(ba,c,f)(p)}function c(p){return i.pop(),t(p)}function f(p){return o._balanced=!0,n(p)}}function va(e,t,n){return r;function r(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return V(f)?ke(e,o)(f):o(f)}function o(f){return f===41?c(f):pi(e,l,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function l(f){return V(f)?ke(e,u)(f):c(f)}function a(f){return n(f)}function u(f){return f===34||f===39||f===40?di(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function s(f){return V(f)?ke(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function Aa(e,t,n){const r=this;return i;function i(a){return mi.call(r,e,o,l,"reference","referenceMarker","referenceString")(a)}function o(a){return r.parser.defined.includes(fe(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function l(a){return n(a)}}function Ea(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Ia={name:"labelStartImage",resolveAll:wn.resolveAll,tokenize:Ta};function Ta(e,t,n){const r=this;let i;return o;function o(u){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(u),e.exit("labelImageMarker"),l}function l(u){return u===91?(e.enter("labelMarker"),e.consume(u),e.exit("labelMarker"),i=e.exit("labelImage"),a):n(u)}function a(u){return u===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(u):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(u))}}const La={name:"labelStartLink",resolveAll:wn.resolveAll,tokenize:za};function za(e,t,n){const r=this;let i;return o;function o(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),i=e.exit("labelLink"),l}function l(a){return a===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(a):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(a))}}const Lt={name:"lineEnding",tokenize:Pa};function Pa(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),q(e,t,"linePrefix")}}const at={name:"thematicBreak",tokenize:Da};function Da(e,t,n){let r=0,i;return o;function o(s){return e.enter("thematicBreak"),l(s)}function l(s){return i=s,a(s)}function a(s){return s===i?(e.enter("thematicBreakSequence"),u(s)):r>=3&&(s===null||P(s))?(e.exit("thematicBreak"),t(s)):n(s)}function u(s){return s===i?(e.consume(s),r++,u):(e.exit("thematicBreakSequence"),B(s)?q(e,a,"whitespace")(s):a(s))}}const te={continuation:{tokenize:Ra},exit:_a,name:"list",tokenize:Oa},Fa={partial:!0,tokenize:Ba},Ma={partial:!0,tokenize:Na};function Oa(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return a;function a(h){const m=r.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||h===r.containerState.marker:tn(h)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(at,n,s)(h):s(h);if(!r.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),u(h)}return n(h)}function u(h){return tn(h)&&++l<10?(e.consume(h),u):(!r.interrupt||l<2)&&(r.containerState.marker?h===r.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),s(h)):n(h)}function s(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||h,e.check(Ze,r.interrupt?n:c,e.attempt(Fa,p,f))}function c(h){return r.containerState.initialBlankLine=!0,o++,p(h)}function f(h){return B(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Ra(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ze,i,o);function i(a){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,q(e,t,"listItemIndent",r.containerState.size+1)(a)}function o(a){return r.containerState.furtherBlankLines||!B(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(Ma,t,l)(a))}function l(a){return r.containerState._closeFlow=!0,r.interrupt=void 0,q(e,e.attempt(te,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function Na(e,t,n){const r=this;return q(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function _a(e){e.exit(this.containerState.type)}function Ba(e,t,n){const r=this;return q(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!B(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const sr={name:"setextUnderline",resolveTo:ja,tokenize:qa};function ja(e,t){const n=new st;let r=e.length,i,o,l;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){i=r;break}e[r][1].type==="paragraph"&&(o=r)}else e[r][1].type==="content"&&n.add(r,1,[]),!l&&e[r][1].type==="definition"&&(l=r);const a={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[o][1].type="setextHeadingText",l?(n.add(o,0,[["enter",a,t]]),n.add(l+1,0,[["exit",e[i][1],t]]),e[i][1].end={...e[l][1].end}):e[i][1]=a,n.add(e.length,0,[["exit",a,t]]),n.consume(e),e}function qa(e,t,n){const r=this;let i;return o;function o(s){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=s,l(s)):n(s)}function l(s){return e.enter("setextHeadingLineSequence"),a(s)}function a(s){return s===i?(e.consume(s),a):(e.exit("setextHeadingLineSequence"),B(s)?q(e,u,"lineSuffix")(s):u(s))}function u(s){return s===null||P(s)?(e.exit("setextHeadingLine"),t(s)):n(s)}}const $a={tokenize:Ua};function Ua(e){const t=this,n=e.attempt(Ze,r,e.attempt(this.parser.constructs.flowInitial,i,q(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Ko,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Va={resolveAll:yi()},Ha=xi("string"),Wa=xi("text");function xi(e){return{resolveAll:yi(e==="text"?Qa:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,a);return l;function l(c){return s(c)?o(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),u}function u(c){return s(c)?(n.exit("data"),o(c)):(n.consume(c),u)}function s(c){if(c===null)return!0;const f=i[c];let p=-1;if(f)for(;++p<f.length;){const h=f[p];if(!h.previous||h.previous.call(r,r.previous))return!0}return!1}}}function yi(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Qa(e,t){const n=new st;let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const i=e[r-1][1],o=t.sliceStream(i);let l=o.length,a=-1,u=0,s;for(;l--;){const c=o[l];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)u++,a--;if(a)break;a=-1}else if(c===-2)s=!0,u++;else if(c!==-1){l++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(u=0),u){const c={type:r===e.length||s||u<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:l?a:i.start._bufferIndex+a,_index:i.start._index+l,line:i.end.line,column:i.end.column-u,offset:i.end.offset-u},end:{...i.end}};i.end={...c.start},i.start.offset===i.end.offset?Object.assign(i,c):n.add(r,0,[["enter",c,t],["exit",c,t]])}r++}return n.consume(e),e}const Ya={42:te,43:te,45:te,48:te,49:te,50:te,51:te,52:te,53:te,54:te,55:te,56:te,57:te,62:si},Ga={91:na},Xa={[-2]:Tt,[-1]:Tt,32:Tt},Ka={35:ua,42:at,45:[sr,at],60:fa,61:sr,95:at,96:ur,126:ur},Ja={38:fi,92:ci},Za={[-5]:Lt,[-4]:Lt,[-3]:Lt,33:Ia,38:fi,42:nn,60:[Do,ga],91:La,92:[oa,ci],93:wn,95:nn,96:Ho},eu={null:[nn,Va]},tu={null:[42,95]},nu={null:[]},ru=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:tu,contentInitial:Ga,disable:nu,document:Ya,flow:Ka,flowInitial:Xa,insideSpan:eu,string:Ja,text:Za},Symbol.toStringTag,{value:"Module"}));function iu(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let l=[],a=[];const u={attempt:F(O),check:F(S),consume:A,enter:C,exit:L,interrupt:F(S,{interrupt:!0})},s={code:null,containerState:{},defineSkip:x,events:[],now:m,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:f};let c=t.tokenize.call(s,u);return t.resolveAll&&o.push(t),s;function f(T){return l=le(l,T),b(),l[l.length-1]!==null?[]:(R(t,0),s.events=gt(o,s.events,s),s.events)}function p(T,D){return ou(h(T),D)}function h(T){return lu(l,T)}function m(){const{_bufferIndex:T,_index:D,line:M,column:$,offset:k}=r;return{_bufferIndex:T,_index:D,line:M,column:$,offset:k}}function x(T){i[T.line]=T.column,w()}function b(){for(;r._index<l.length;){const T=l[r._index];if(typeof T=="string"){const D=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===D&&r._bufferIndex<T.length;)y(T.charCodeAt(r._bufferIndex))}else y(T)}}function y(T){c=c(T)}function A(T){P(T)?(r.line++,r.column=1,r.offset+=T===-3?2:1,w()):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}function C(T,D){const M=D||{};return M.type=T,M.start=m(),s.events.push(["enter",M,s]),a.push(M),M}function L(T){const D=a.pop();return D.end=m(),s.events.push(["exit",D,s]),D}function O(T,D){R(T,D.from)}function S(T,D){D.restore()}function F(T,D){return M;function M($,k,U){let K,ae,ge,d;return Array.isArray($)?xe($):"tokenize"in $?xe([$]):ue($);function ue(G){return je;function je(we){const Pe=we!==null&&G[we],De=we!==null&&G.null,vt=[...Array.isArray(Pe)?Pe:Pe?[Pe]:[],...Array.isArray(De)?De:De?[De]:[]];return xe(vt)(we)}}function xe(G){return K=G,ae=0,G.length===0?U:g(G[ae])}function g(G){return je;function je(we){return d=I(),ge=G,G.partial||(s.currentConstruct=G),G.name&&s.parser.constructs.disable.null.includes(G.name)?ze():G.tokenize.call(D?Object.assign(Object.create(s),D):s,u,se,ze)(we)}}function se(G){return T(ge,d),k}function ze(G){return d.restore(),++ae<K.length?g(K[ae]):U}}}function R(T,D){T.resolveAll&&!o.includes(T)&&o.push(T),T.resolve&&ce(s.events,D,s.events.length-D,T.resolve(s.events.slice(D),s)),T.resolveTo&&(s.events=T.resolveTo(s.events,s))}function I(){const T=m(),D=s.previous,M=s.currentConstruct,$=s.events.length,k=Array.from(a);return{from:$,restore:U};function U(){r=T,s.previous=D,s.currentConstruct=M,s.events.length=$,a=k,w()}}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function lu(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const a=l[0];typeof a=="string"?l[0]=a.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function ou(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
4
+ `;break}case-3:{l=`\r
5
+ `;break}case-2:{l=t?" ":" ";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function au(e){const r={constructs:li([ru,...(e||{}).extensions||[]]),content:i(Ao),defined:[],document:i(Io),flow:i($a),lazy:{},string:i(Ha),text:i(Wa)};return r;function i(o){return l;function l(a){return iu(r,o,a)}}}function uu(e){for(;!hi(e););return e}const cr=/[\0\t\n\r]/g;function su(){let e=1,t="",n=!0,r;return i;function i(o,l,a){o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o));const u=[];let s=0;for(t="",n&&(o.charCodeAt(0)===65279&&s++,n=void 0);s<o.length;){cr.lastIndex=s;const c=cr.exec(o),f=c&&c.index!==void 0?c.index:o.length,p=o.charCodeAt(f);if(!c){t=o.slice(s);break}if(p===10&&s===f&&r)u.push(-3),r=void 0;else switch(r&&(u.push(-5),r=void 0),s<f&&(u.push(o.slice(s,f)),e+=f-s),p){case 0:{u.push(65533),e++;break}case 9:{const h=Math.ceil(e/4)*4;for(u.push(-2);e++<h;)u.push(-1);break}case 10:{u.push(-4),e=1;break}default:r=!0,e=1}s=f+1}return a&&(r&&u.push(-5),t&&u.push(t),u.push(null)),u}}const cu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function fu(e){return e.replace(cu,hu)}function hu(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const i=n.charCodeAt(1),o=i===120||i===88;return oi(n.slice(o?2:1),o?16:10)}return Ke(n)||e}const ki={}.hasOwnProperty;function pu(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),mu(n)(uu(au(n).document().write(su()(e,t,!0))))}function mu(e){const t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:l(Un),autolinkProtocol:w,autolinkEmail:w,atxHeading:l(jn),blockQuote:l(vt),characterEscape:w,characterReference:w,codeFenced:l(Bn),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:l(Bn,a),codeText:l(nl,a),codeTextData:w,data:w,codeFlowValue:w,definition:l(rl),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:l(il),hardBreakEscape:l(qn),hardBreakTrailing:l(qn),htmlFlow:l($n,a),htmlFlowData:w,htmlText:l($n,a),htmlTextData:w,image:l(ll),label:a,link:l(Un),listItem:l(ol),listItemValue:h,listOrdered:l(Vn,p),listUnordered:l(Vn),paragraph:l(al),reference:se,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:l(jn),strong:l(ul),thematicBreak:l(cl)},exit:{atxHeading:s(),atxHeadingSequence:S,autolink:s(),autolinkEmail:De,autolinkProtocol:Pe,blockQuote:s(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:G,characterReferenceMarkerNumeric:G,characterReferenceValue:je,characterReference:we,codeFenced:s(y),codeFencedFence:b,codeFencedFenceInfo:m,codeFencedFenceMeta:x,codeFlowValue:T,codeIndented:s(A),codeText:s(U),codeTextData:T,data:T,definition:s(),definitionDestinationString:O,definitionLabelString:C,definitionTitleString:L,emphasis:s(),hardBreakEscape:s(M),hardBreakTrailing:s(M),htmlFlow:s($),htmlFlowData:T,htmlText:s(k),htmlTextData:T,image:s(ae),label:d,labelText:ge,lineEnding:D,link:s(K),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:ze,resourceDestinationString:ue,resourceTitleString:xe,resource:g,setextHeading:s(I),setextHeadingLineSequence:R,setextHeadingText:F,strong:s(),thematicBreak:s()}};bi(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(v){let z={type:"root",children:[],position:void 0};const _={stack:[z],tokenStack:[],config:t,enter:u,exit:c,buffer:a,resume:f,data:n},j=[],Z=[];let W=-1;for(;++W<v.length;)if(Z.push(v[W]),v[W][1].type==="listOrdered"||v[W][1].type==="listUnordered")if(v[W][0]==="enter")j.push(Z.length-1);else{const ee=j.pop();o(Z,ee)}for(v=Z,W=-1;++W<v.length;){const ee=t[v[W][0]];v[W][0]==="enter"&&t.beforeEnter.length>0&&i(t.beforeEnter,{..._,sliceSerialize:v[W][2].sliceSerialize},v[W][1]),ki.call(ee,v[W][1].type)&&ee[v[W][1].type].call({..._,sliceSerialize:v[W][2].sliceSerialize},v[W][1]),v[W][0]==="exit"&&t.afterExit.length>0&&i(t.afterExit,{..._,sliceSerialize:v[W][2].sliceSerialize},v[W][1])}if(_.tokenStack.length>0){const ee=_.tokenStack[_.tokenStack.length-1];(ee[1]||fr).call(_,void 0,ee[0])}for(z.position={start:Ce(v.length>0?v[0][1].start:{line:1,column:1,offset:0}),end:Ce(v.length>0?v[v.length-2][1].end:{line:1,column:1,offset:0})},W=-1;++W<t.transforms.length;)z=t.transforms[W](z)||z;return z}function i(v,z,_){let j=-1;for(;++j<v.length;)v[j].call(z,_)}function o(v,z){const _=v.length-1;let j=z-1,Z=-1,W=!1,ee,he,qe,$e;const Ue=[];for(;++j<=_;){const re=v[j];switch(re[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{re[0]==="enter"?Z++:Z--,$e=void 0;break}case"lineEndingBlank":{re[0]==="enter"&&(ee&&!$e&&!Z&&!qe&&(qe=j),$e=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:$e=void 0}if(!Z&&re[0]==="enter"&&re[1].type==="listItemPrefix"||Z===-1&&re[0]==="exit"&&(re[1].type==="listUnordered"||re[1].type==="listOrdered")){if(ee){let Fe=j;for(he=void 0;Fe--;){const ye=v[Fe];if(ye[1].type==="lineEnding"||ye[1].type==="lineEndingBlank"){if(ye[0]==="exit")continue;he&&(v[he][1].type="lineEndingBlank",W=!0),ye[1].type="lineEnding",he=Fe}else if(!(ye[1].type==="linePrefix"||ye[1].type==="blockQuotePrefix"||ye[1].type==="blockQuotePrefixWhitespace"||ye[1].type==="blockQuoteMarker"||ye[1].type==="listItemIndent"))break}qe&&(!he||qe<he)&&(ee._spread=!0),ee.end=Object.assign({},he?v[he][1].start:re[1].end),Ue.push({at:he||j,event:["exit",ee,re[2]]})}if(re[1].type==="listItemPrefix"){const Fe={type:"listItem",_spread:!1,start:Object.assign({},re[1].start),end:void 0};ee=Fe,Ue.push({at:j,event:["enter",Fe,re[2]]}),qe=void 0,$e=!0}}}const Hn=v.splice(z);let At=0;for(j=-1;++j<Hn.length;){for(;At<Ue.length&&Ue[At].at===z+j;)v.push(Ue[At++].event);v.push(Hn[j])}v[z][1]._spread=W}function l(v,z){return _;function _(j){u.call(this,v(j),j),z&&z.call(this,j)}}function a(){this.stack.push({type:"fragment",children:[]})}function u(v,z,_){this.stack[this.stack.length-1].children.push(v),this.stack.push(v),this.tokenStack.push([z,_||void 0]),v.position={start:Ce(z.start),end:void 0}}function s(v){return z;function z(_){v&&v.call(this,_),c.call(this,_)}}function c(v,z){const _=this.stack.pop(),j=this.tokenStack.pop();if(!j)throw new Error("Cannot close `"+v.type+"` ("+Qe({start:v.start,end:v.end})+"): it’s not open");j[0].type!==v.type&&(z?z.call(this,v,j[0]):(j[1]||fr).call(this,v,j[0])),_.position.end=Ce(v.end)}function f(){return dt(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function h(v){if(this.data.expectingFirstListItemValue){const z=this.stack[this.stack.length-2];z.start=Number.parseInt(this.sliceSerialize(v),10),this.data.expectingFirstListItemValue=void 0}}function m(){const v=this.resume(),z=this.stack[this.stack.length-1];z.lang=v}function x(){const v=this.resume(),z=this.stack[this.stack.length-1];z.meta=v}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const v=this.resume(),z=this.stack[this.stack.length-1];z.value=v.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function A(){const v=this.resume(),z=this.stack[this.stack.length-1];z.value=v.replace(/(\r?\n|\r)$/g,"")}function C(v){const z=this.resume(),_=this.stack[this.stack.length-1];_.label=z,_.identifier=fe(this.sliceSerialize(v)).toLowerCase()}function L(){const v=this.resume(),z=this.stack[this.stack.length-1];z.title=v}function O(){const v=this.resume(),z=this.stack[this.stack.length-1];z.url=v}function S(v){const z=this.stack[this.stack.length-1];if(!z.depth){const _=this.sliceSerialize(v).length;z.depth=_}}function F(){this.data.setextHeadingSlurpLineEnding=!0}function R(v){const z=this.stack[this.stack.length-1];z.depth=this.sliceSerialize(v).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function w(v){const _=this.stack[this.stack.length-1].children;let j=_[_.length-1];(!j||j.type!=="text")&&(j=sl(),j.position={start:Ce(v.start),end:void 0},_.push(j)),this.stack.push(j)}function T(v){const z=this.stack.pop();z.value+=this.sliceSerialize(v),z.position.end=Ce(v.end)}function D(v){const z=this.stack[this.stack.length-1];if(this.data.atHardBreak){const _=z.children[z.children.length-1];_.position.end=Ce(v.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(z.type)&&(w.call(this,v),T.call(this,v))}function M(){this.data.atHardBreak=!0}function $(){const v=this.resume(),z=this.stack[this.stack.length-1];z.value=v}function k(){const v=this.resume(),z=this.stack[this.stack.length-1];z.value=v}function U(){const v=this.resume(),z=this.stack[this.stack.length-1];z.value=v}function K(){const v=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";v.type+="Reference",v.referenceType=z,delete v.url,delete v.title}else delete v.identifier,delete v.label;this.data.referenceType=void 0}function ae(){const v=this.stack[this.stack.length-1];if(this.data.inReference){const z=this.data.referenceType||"shortcut";v.type+="Reference",v.referenceType=z,delete v.url,delete v.title}else delete v.identifier,delete v.label;this.data.referenceType=void 0}function ge(v){const z=this.sliceSerialize(v),_=this.stack[this.stack.length-2];_.label=fu(z),_.identifier=fe(z).toLowerCase()}function d(){const v=this.stack[this.stack.length-1],z=this.resume(),_=this.stack[this.stack.length-1];if(this.data.inReference=!0,_.type==="link"){const j=v.children;_.children=j}else _.alt=z}function ue(){const v=this.resume(),z=this.stack[this.stack.length-1];z.url=v}function xe(){const v=this.resume(),z=this.stack[this.stack.length-1];z.title=v}function g(){this.data.inReference=void 0}function se(){this.data.referenceType="collapsed"}function ze(v){const z=this.resume(),_=this.stack[this.stack.length-1];_.label=z,_.identifier=fe(this.sliceSerialize(v)).toLowerCase(),this.data.referenceType="full"}function G(v){this.data.characterReferenceType=v.type}function je(v){const z=this.sliceSerialize(v),_=this.data.characterReferenceType;let j;_?(j=oi(z,_==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):j=Ke(z);const Z=this.stack[this.stack.length-1];Z.value+=j}function we(v){const z=this.stack.pop();z.position.end=Ce(v.end)}function Pe(v){T.call(this,v);const z=this.stack[this.stack.length-1];z.url=this.sliceSerialize(v)}function De(v){T.call(this,v);const z=this.stack[this.stack.length-1];z.url="mailto:"+this.sliceSerialize(v)}function vt(){return{type:"blockquote",children:[],position:void 0}}function Bn(){return{type:"code",lang:null,meta:null,value:"",position:void 0}}function nl(){return{type:"inlineCode",value:"",position:void 0}}function rl(){return{type:"definition",identifier:"",label:null,title:null,url:"",position:void 0}}function il(){return{type:"emphasis",children:[],position:void 0}}function jn(){return{type:"heading",depth:0,children:[],position:void 0}}function qn(){return{type:"break",position:void 0}}function $n(){return{type:"html",value:"",position:void 0}}function ll(){return{type:"image",title:null,url:"",alt:null,position:void 0}}function Un(){return{type:"link",title:null,url:"",children:[],position:void 0}}function Vn(v){return{type:"list",ordered:v.type==="listOrdered",start:null,spread:v._spread,children:[],position:void 0}}function ol(v){return{type:"listItem",spread:v._spread,checked:null,children:[],position:void 0}}function al(){return{type:"paragraph",children:[],position:void 0}}function ul(){return{type:"strong",children:[],position:void 0}}function sl(){return{type:"text",value:"",position:void 0}}function cl(){return{type:"thematicBreak",position:void 0}}}function Ce(e){return{line:e.line,column:e.column,offset:e.offset}}function bi(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?bi(e,r):du(e,r)}}function du(e,t){let n;for(n in t)if(ki.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"afterExit":case"beforeEnter":{const r=t[n];r&&e[n].push(r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function fr(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Qe({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Qe({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Qe({start:t.start,end:t.end})+") is still open")}function gu(e){const t=this;t.parser=n;function n(r){return pu(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function xu(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function yu(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
6
+ `}]}function ku(e,t){const n=t.value?t.value+`
7
+ `:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function bu(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wu(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Cu(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=Be(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,a=e.footnoteCounts.get(r);a===void 0?(a=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,a+=1,e.footnoteCounts.set(r,a);const u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,u);const s={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,s),e.applyData(t,s)}function Su(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function vu(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function wi(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function Au(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return wi(e,t);const i={src:Be(r.url||"")};t.alt!==null&&t.alt!==void 0&&(i.alt=t.alt),r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function Eu(e,t){const n={src:Be(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function Iu(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function Tu(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return wi(e,t);const i={href:Be(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function Lu(e,t){const n={href:Be(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function zu(e,t,n){const r=e.all(t),i=n?Pu(n):Ci(t),o={},l=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a<r.length;){const c=r[a];(i||a!==0||c.type!=="element"||c.tagName!=="p")&&l.push({type:"text",value:`
8
+ `}),c.type==="element"&&c.tagName==="p"&&!i?l.push(...c.children):l.push(c)}const u=r[r.length-1];u&&(i||u.type!=="element"||u.tagName!=="p")&&l.push({type:"text",value:`
9
+ `});const s={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,s),e.applyData(t,s)}function Pu(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const{children:n}=e;let r=-1;for(;!t&&++r<n.length;)t=Ci(n[r])}return t}function Ci(e){const{spread:t}=e;return t??e.children.length>1}function Du(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function Fu(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Mu(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Ou(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Ru(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=xn(t.children[1]),u=Jr(t.children[t.children.length-1]);a&&u&&(l.position={start:a,end:u}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function Nu(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",l=n&&n.type==="table"?n.align:void 0,a=l?l.length:t.children.length;let u=-1;const s=[];for(;++u<a;){const f=t.children[u],p={},h=l?l[u]:void 0;h&&(p.align=h);let m={type:"element",tagName:o,properties:p,children:[]};f&&(m.children=e.all(f),e.patch(f,m),m=e.applyData(f,m)),s.push(m)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)}function _u(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const hr=9,pr=32;function Bu(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(mr(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(mr(t.slice(i),i>0,!1)),o.join("")}function mr(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===hr||o===pr;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===hr||o===pr;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function ju(e,t){const n={type:"text",value:Bu(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function qu(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const $u={blockquote:xu,break:yu,code:ku,delete:bu,emphasis:wu,footnoteReference:Cu,heading:Su,html:vu,imageReference:Au,image:Eu,inlineCode:Iu,linkReference:Tu,link:Lu,listItem:zu,list:Du,paragraph:Fu,root:Mu,strong:Ou,table:Ru,tableCell:_u,tableRow:Nu,text:ju,thematicBreak:qu,toml:tt,yaml:tt,definition:tt,footnoteDefinition:tt};function tt(){}const Si=-1,xt=0,Ye=1,ct=2,Cn=3,Sn=4,vn=5,An=6,vi=7,Ai=8,{defineProperty:Uu}=Object,Ei=typeof self=="object"?self:globalThis,dr=(e,t)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Ei[e](t)},Vu=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case xt:case Si:return n(l,i);case Ye:{const a=n([],i);for(const u of l)a.push(r(u));return a}case ct:{const a=n({},i);for(const[u,s]of l){const c=r(u),f=r(s);c==="__proto__"?Uu(a,c,{value:f,configurable:!0,enumerable:!0,writable:!0}):a[c]=f}return a}case Cn:return n(new Date(l),i);case Sn:{const{source:a,flags:u}=l;return n(new RegExp(a,u),i)}case vn:{const a=n(new Map,i);for(const[u,s]of l)a.set(r(u),r(s));return a}case An:{const a=n(new Set,i);for(const u of l)a.add(r(u));return a}case vi:{const{name:a,message:u}=l;return n(typeof Ei[a]=="function"?dr(a,u):new Error(u),i)}case Ai:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:a}=new Uint8Array(l);return n(new DataView(a),l)}case"-0":return-0}return n(dr(o,l),i)};return r},gr=e=>Vu(new Map,e)(0),Ie="",{toString:Hu}={},{keys:Wu,is:Qu}=Object,We=e=>{const t=typeof e;if(t!=="object"||!e)return[xt,t];const n=Hu.call(e).slice(8,-1);switch(n){case"Array":return[Ye,Ie];case"Object":return[ct,Ie];case"Date":return[Cn,Ie];case"RegExp":return[Sn,Ie];case"Map":return[vn,Ie];case"Set":return[An,Ie];case"DataView":return[Ye,n]}return n.includes("Array")?[Ye,n]:e instanceof Error?[vi,e.name||"Error"]:[ct,n]},nt=([e,t])=>e===xt&&(t==="function"||t==="symbol"),Yu=(e,t,n,r)=>{const i=(l,a)=>{const u=r.push(l)-1;return n.set(a,u),u},o=l=>{if(n.has(l))return n.get(l);let[a,u]=We(l);switch(a){case xt:{let c=l;switch(u){case"bigint":a=Ai,c=l.toString();break;case"number":if(!l&&Qu(l,-0))return r.push(["-0"])-1;break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+u);c=null;break;case"undefined":return i([Si],l)}return i([a,c],l)}case Ye:{if(u){let p=l;return u==="DataView"?p=new Uint8Array(l.buffer):u==="ArrayBuffer"&&(p=new Uint8Array(l)),i([u,[...p]],l)}const c=[],f=i([a,c],l);for(const p of l)c.push(o(p));return f}case ct:{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(t&&"toJSON"in l)return o(l.toJSON());const c=[],f=i([a,c],l);for(const p of Wu(l))(e||!nt(We(l[p])))&&c.push([o(p),o(l[p])]);return f}case Cn:return i([a,isNaN(l.getTime())?Ie:l.toISOString()],l);case Sn:{const{source:c,flags:f}=l;return i([a,{source:c,flags:f}],l)}case vn:{const c=[],f=i([a,c],l);for(const[p,h]of l)(e||!(nt(We(p))||nt(We(h))))&&c.push([o(p),o(h)]);return f}case An:{const c=[],f=i([a,c],l);for(const p of l)(e||!nt(We(p)))&&c.push(o(p));return f}}const{message:s}=l;return i([a,{name:u,message:s}],l)};return o},xr=(e,{json:t,lossy:n}={})=>{const r=[];return Yu(!(t||n),!!t,new Map,r)(e),r},ft=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?gr(xr(e,t)):structuredClone(e):(e,t)=>gr(xr(e,t));function Gu(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Xu(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ku(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Gu,r=e.options.footnoteBackLabel||Xu,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],u=[];let s=-1;for(;++s<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[s]);c&&(a[s]=e.all(c))}for(s=-1;++s<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[s]);if(!c)continue;const f=a[s],p=String(c.identifier).toUpperCase(),h=Be(p.toLowerCase());let m=0;const x=[],b=e.footnoteCounts.get(p);for(;b!==void 0&&++m<=b;){x.length>0&&x.push({type:"text",value:" "});let C=typeof n=="string"?n:n(s,m);typeof C=="string"&&(C={type:"text",value:C}),x.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(m>1?"-"+m:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(s,m),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const y=f[f.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const C=y.children[y.children.length-1];C&&C.type==="text"?C.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...x)}else f.push(...x);const A={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(f,!0)};e.patch(c,A),u.push(A)}if(u.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...ft(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
10
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(u,!0)},{type:"text",value:`
11
+ `}]}}const yt=(function(e){if(e==null)return ts;if(typeof e=="function")return kt(e);if(typeof e=="object")return Array.isArray(e)?Ju(e):Zu(e);if(typeof e=="string")return es(e);throw new Error("Expected function, string, or object as test")});function Ju(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=yt(e[n]);return kt(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function Zu(e){const t=e;return kt(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function es(e){return kt(t);function t(n){return n&&n.type===e}}function kt(e){return t;function t(n,r,i){return!!(ns(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function ts(){return!0}function ns(e){return e!==null&&typeof e=="object"&&"type"in e}const Ii=[],rs=!0,Ge=!1,on="skip";function an(e,t,n,r){if(!e||typeof e!="object")throw new Error("Unexpected value `"+e+"` for `tree`, expected node");let i=!0,o,l,a,u;if(typeof n=="function"||n&&typeof n=="object"?(o=t,l=n,r&&(i=!1)):(l=t,n&&(i=!1)),typeof l=="function")a=l;else if(l&&typeof l=="object"){if(!(l.enter===null||l.enter===void 0))if(typeof l.enter=="function")a=l.enter;else throw new Error("Unexpected value `"+l.enter+"` for `visitors.enter`, expected optional visitor");if(typeof l.exit=="function")u=l.exit;else throw new Error("Unexpected value `"+l.exit+"` for `visitors.exit`, expected visitor (pass a visitor directly if you only want an enter visitor)")}else throw new Error("Unexpected value `"+l+"` for `enter` or `visitors`, expected visitor or object with visitors");const s=yt(o),c=i?1:-1;f(e,void 0,[])();function f(p,h,m){const x=p&&typeof p=="object"?p:{};if(typeof x.type=="string"){const y=typeof x.tagName=="string"?x.tagName:typeof x.name=="string"?x.name:void 0;Object.defineProperty(b,"name",{value:"node ("+(p.type+(y?"<"+y+">":""))+")"})}return b;function b(){const y=!o||s(p,h,m[m.length-1]||void 0);let A=Ii;if(a&&y&&(A=yr(a(p,m,h)),A[0]===Ge))return A;if("children"in p&&p.children){const C=p;if(C.children&&A[0]!==on){let L=(i?-1:C.children.length)+c;const O=[...m,C];for(;L>-1&&L<C.children.length;){const S=C.children[L],F=f(S,L,O)();if(F[0]===Ge)return F;L=typeof F[1]=="number"?F[1]:L+c}}}if(u&&y){const C=yr(u(p,m,h));if(C[0]===on)throw new Error("Unexpected value `"+C[0]+"` from `exit`, expected `CONTINUE`, `EXIT`, index, or nothing");if(C[0]===Ge||typeof C[1]=="number")return C}return A}}}function yr(e){return Array.isArray(e)?e:typeof e=="number"?[rs,e]:e==null?Ii:[e]}function bt(e,t,n,r){let i,o,l;o=t,l=n,typeof o=="function"?an(e,i,un(o),l):an(e,i,is(o),l)}function is(e){return!e||typeof e!="object"?e:{enter:typeof e.enter=="function"?un(e.enter):e.enter,exit:typeof e.exit=="function"?un(e.exit):e.exit}}function un(e){return t;function t(n,r,i){return e(n,i,r[r.length-1])}}const sn={}.hasOwnProperty,ls={};function os(e,t){const n=t||ls,r=new Map,i=new Map,o=new Map,l={...$u,...n.handlers},a={all:s,applyData:us,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:u,options:n,patch:as,wrap:cs};return bt(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=String(c.identifier).toUpperCase();c.type==="definition"?r.has(f)||r.set(f,c):i.has(f)||i.set(f,c)}}),a;function u(c,f){const{type:p}=c,h=a.handlers[p];if(sn.call(a.handlers,p)&&h)return h(a,c,f);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in c){const{children:x,...b}=c;return{...ft(b),children:a.all(c)}}return ft(c)}return(a.options.unknownHandler||ss)(a,c,f)}function s(c){const f=[];if("children"in c){const p=c.children;let h=-1;for(;++h<p.length;){const m=a.one(p[h],c);if(m){if(h&&p[h-1].type==="break"&&(!Array.isArray(m)&&m.type==="text"&&(m.value=kr(m.value)),!Array.isArray(m)&&m.type==="element")){const x=m.children[0];x&&x.type==="text"&&(x.value=kr(x.value))}Array.isArray(m)?f.push(...m):f.push(m)}}}return f}}function as(e,t){e.position&&(t.position=Gl(e))}function us(e,t){let n=t;if(e&&e.data){const{hChildren:r,hName:i,hProperties:o}=e.data;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const l="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,ft(o)),"children"in n&&n.children&&r!==null&&r!==void 0&&(n.children=r)}return n}function ss(e,t){const n=t.data||{},r="value"in t&&!(sn.call(n,"hProperties")||sn.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function cs(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
12
+ `});++r<e.length;)r&&n.push({type:"text",value:`
13
+ `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
14
+ `}),n}function kr(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function br(e,t){const n=os(e,t),r=n.one(e,void 0),i=Ku(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
15
+ `},i),o}function fs(e,t){return e&&"run"in e?async function(n,r){const i=br(n,{file:r,...t});await e.run(i,r)}:function(n,r){return br(n,{file:r,...e||t})}}function wr(e){if(e)throw e}var bp=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zt,Cr;function ps(){if(Cr)return zt;Cr=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(s){return typeof Array.isArray=="function"?Array.isArray(s):t.call(s)==="[object Array]"},o=function(s){if(!s||t.call(s)!=="[object Object]")return!1;var c=e.call(s,"constructor"),f=s.constructor&&s.constructor.prototype&&e.call(s.constructor.prototype,"isPrototypeOf");if(s.constructor&&!c&&!f)return!1;var p;for(p in s);return typeof p>"u"||e.call(s,p)},l=function(s,c){n&&c.name==="__proto__"?n(s,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):s[c.name]=c.newValue},a=function(s,c){if(c==="__proto__")if(e.call(s,c)){if(r)return r(s,c).value}else return;return s[c]};return zt=function u(){var s,c,f,p,h,m,x=arguments[0],b=1,y=arguments.length,A=!1;for(typeof x=="boolean"&&(A=x,x=arguments[1]||{},b=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});b<y;++b)if(s=arguments[b],s!=null)for(c in s)f=a(x,c),p=a(s,c),x!==p&&(A&&p&&(o(p)||(h=i(p)))?(h?(h=!1,m=f&&i(f)?f:[]):m=f&&o(f)?f:{},l(x,{name:c,newValue:u(A,m,p)})):typeof p<"u"&&l(x,{name:c,newValue:p}));return x},zt}var ms=ps();const Pt=hs(ms);function cn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ds(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);a(null,...i);function a(u,...s){const c=e[++o];let f=-1;if(u){l(u);return}for(;++f<i.length;)(s[f]===null||s[f]===void 0)&&(s[f]=i[f]);i=s,c?gs(c,a)(...s):l(null,...s)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function gs(e,t){let n;return r;function r(...l){const a=e.length>l.length;let u;a&&l.push(i);try{u=e.apply(this,l)}catch(s){const c=s;if(a&&n)throw c;return i(c)}a||(u&&u.then&&typeof u.then=="function"?u.then(o,i):u instanceof Error?i(u):o(u))}function i(l,...a){n||(n=!0,t(l,...a))}function o(l){i(null,l)}}const pe={basename:xs,dirname:ys,extname:ks,join:bs,sep:"/"};function xs(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');et(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,a=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),a>-1&&(e.codePointAt(i)===t.codePointAt(a--)?a<0&&(r=i):(a=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function ys(e){if(et(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function ks(e){et(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const a=e.codePointAt(t);if(a===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),a===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function bs(...e){let t=-1,n;for(;++t<e.length;)et(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":ws(n)}function ws(e){et(e);const t=e.codePointAt(0)===47;let n=Cs(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Cs(e,t){let n="",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(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(u=n.lastIndexOf("/"),u!==n.length-1){u<0?(n="",r=0):(n=n.slice(0,u),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length>0){n="",r=0,i=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else a===46&&o>-1?o++:o=-1}return n}function et(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Ss={cwd:vs};function vs(){return"/"}function fn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function As(e){if(typeof e=="string")e=new URL(e);else if(!fn(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Es(e)}function Es(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Dt=["history","path","basename","stem","extname","dirname"];class Ti{constructor(t){let n;t?fn(t)?n={path:t}:typeof t=="string"||Is(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Ss.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Dt.length;){const o=Dt[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Dt.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?pe.basename(this.path):void 0}set basename(t){Mt(t,"basename"),Ft(t,"basename"),this.path=pe.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?pe.dirname(this.path):void 0}set dirname(t){Sr(this.basename,"dirname"),this.path=pe.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?pe.extname(this.path):void 0}set extname(t){if(Ft(t,"extname"),Sr(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=pe.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){fn(t)&&(t=As(t)),Mt(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?pe.basename(this.path,this.extname):void 0}set stem(t){Mt(t,"stem"),Ft(t,"stem"),this.path=pe.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new mt(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Ft(e,t){if(e&&e.includes(pe.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+pe.sep+"`")}function Mt(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Sr(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Is(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ts=(function(e){const r=this.constructor.prototype,i=r[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),Ls={}.hasOwnProperty;class En extends Ts{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=ds()}copy(){const t=new En;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Pt(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(Nt("data",this.frozen),this.namespace[t]=n,this):Ls.call(this.namespace,t)&&this.namespace[t]||void 0:t?(Nt("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=rt(t),r=this.parser||this.Parser;return Ot("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),Ot("process",this.parser||this.Parser),Rt("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,l){const a=rt(t),u=r.parse(a);r.run(u,a,function(c,f,p){if(c||!f||!p)return s(c);const h=f,m=r.stringify(h,p);Ds(m)?p.value=m:p.result=m,s(c,p)});function s(c,f){c||!f?l(c):o?o(f):n(void 0,f)}}}processSync(t){let n=!1,r;return this.freeze(),Ot("processSync",this.parser||this.Parser),Rt("processSync",this.compiler||this.Compiler),this.process(t,i),Ar("processSync","process",n),r;function i(o,l){n=!0,wr(o),r=l}}run(t,n,r){vr(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,a){const u=rt(n);i.run(t,u,s);function s(c,f,p){const h=f||t;c?a(c):l?l(h):r(void 0,h,p)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Ar("runSync","run",r),i;function o(l,a){wr(l),i=a,r=!0}}stringify(t,n){this.freeze();const r=rt(n),i=this.compiler||this.Compiler;return Rt("stringify",i),vr(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(Nt("use",this.frozen),t!=null)if(typeof t=="function")u(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(s){if(typeof s=="function")u(s,[]);else if(typeof s=="object")if(Array.isArray(s)){const[c,...f]=s;u(c,f)}else l(s);else throw new TypeError("Expected usable value, not `"+s+"`")}function l(s){if(!("plugins"in s)&&!("settings"in s))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(s.plugins),s.settings&&(i.settings=Pt(!0,i.settings,s.settings))}function a(s){let c=-1;if(s!=null)if(Array.isArray(s))for(;++c<s.length;){const f=s[c];o(f)}else throw new TypeError("Expected a list of plugins, not `"+s+"`")}function u(s,c){let f=-1,p=-1;for(;++f<r.length;)if(r[f][0]===s){p=f;break}if(p===-1)r.push([s,...c]);else if(c.length>0){let[h,...m]=c;const x=r[p][1];cn(x)&&cn(h)&&(h=Pt(!0,x,h)),r[p]=[s,h,...m]}}}}const zs=new En().freeze();function Ot(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function Rt(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function Nt(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function vr(e){if(!cn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Ar(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function rt(e){return Ps(e)?e:new Ti(e)}function Ps(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Ds(e){return typeof e=="string"||Fs(e)}function Fs(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Ms="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Er=[],Ir={allowDangerousHtml:!0},Os=/^(https?|ircs?|mailto|xmpp)$/i,Rs=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Ns(e){const t=_s(e),n=Bs(e);return js(t.runSync(t.parse(n),n),e)}function _s(e){const t=e.rehypePlugins||Er,n=e.remarkPlugins||Er,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Ir}:Ir;return zs().use(gu).use(n).use(fs,r).use(t)}function Bs(e){const t=e.children||"",n=new Ti;return typeof t=="string"&&(n.value=t),n}function js(e,t){const n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,l=t.skipHtml,a=t.unwrapDisallowed,u=t.urlTransform||hn;for(const c of Rs)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+Ms+c.id,void 0);return bt(e,s),to(e,{Fragment:hl,components:i,ignoreInvalidStyle:!0,jsx:Y,jsxs:Y,passKeys:!0,passNode:!0});function s(c,f,p){if(c.type==="raw"&&p&&typeof f=="number")return l?p.children.splice(f,1):p.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let h;for(h in It)if(Object.hasOwn(It,h)&&Object.hasOwn(c.properties,h)){const m=c.properties[h],x=It[h];(x===null||x.includes(c.tagName))&&(c.properties[h]=u(String(m||""),h,c))}}if(c.type==="element"){let h=n?!n.includes(c.tagName):o?o.includes(c.tagName):!1;if(!h&&r&&typeof f=="number"&&(h=!r(c,f,p)),h&&p&&typeof f=="number")return a&&c.children?p.children.splice(f,1,...c.children):p.children.splice(f,1),f}}}function hn(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||Os.test(e.slice(0,t))?e:""}function ht(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const qs=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Tr={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function Li(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function $s(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Us(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Lr(e){return Us(e)||Li(e)}const Vs=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function In(e,t){const n=t||{},r=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,i=[];let o=0,l=-1,a="",u,s;n.position&&("start"in n.position||"indent"in n.position?(s=n.position.indent,u=n.position.start):u=n.position);let c=(u?u.line:0)||1,f=(u?u.column:0)||1,p=m(),h;for(o--;++o<=e.length;)if(h===10&&(f=(s?s[l]:0)||1),h=e.charCodeAt(o),h===38){const y=e.charCodeAt(o+1);if(y===9||y===10||y===12||y===32||y===38||y===60||Number.isNaN(y)||r&&y===r){a+=String.fromCharCode(h),f++;continue}const A=o+1;let C=A,L=A,O;if(y===35){L=++C;const M=e.charCodeAt(L);M===88||M===120?(O="hexadecimal",L=++C):O="decimal"}else O="named";let S="",F="",R="";const I=O==="named"?Lr:O==="decimal"?Li:$s;for(L--;++L<=e.length;){const M=e.charCodeAt(L);if(!I(M))break;R+=String.fromCharCode(M),O==="named"&&qs.includes(R)&&(S=R,F=Ke(R))}let w=e.charCodeAt(L)===59;if(w){L++;const M=O==="named"?Ke(R):!1;M&&(S=R,F=M)}let T=1+L-A,D="";if(!(!w&&n.nonTerminated===!1))if(!R)O!=="named"&&x(4,T);else if(O==="named"){if(w&&!F)x(5,1);else if(S!==R&&(L=C+S.length,T=1+L-C,w=!1),!w){const M=S?1:3;if(n.attribute){const $=e.charCodeAt(L);$===61?(x(M,T),F=""):Lr($)?F="":x(M,T)}else x(M,T)}D=F}else{w||x(2,T);let M=Number.parseInt(R,O==="hexadecimal"?16:10);if(Hs(M))x(7,T),D="�";else if(M in Tr)x(6,T),D=Tr[M];else{let $="";Ws(M)&&x(6,T),M>65535&&(M-=65536,$+=String.fromCharCode(M>>>10|55296),M=56320|M&1023),D=$+String.fromCharCode(M)}}if(D){b(),p=m(),o=L-1,f+=L-A+1,i.push(D);const M=m();M.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,D,{start:p,end:M},e.slice(A-1,L)),p=M}else R=e.slice(A-1,L),a+=R,f+=R.length,o=L-1}else h===10&&(c++,l++,f=0),Number.isNaN(h)?b():(a+=String.fromCharCode(h),f++);return i.join("");function m(){return{line:c,column:f,offset:o+((u?u.offset:0)||0)}}function x(y,A){let C;n.warning&&(C=m(),C.column+=A,C.offset+=A,n.warning.call(n.warningContext||void 0,Vs[y],C,y))}function b(){a&&(i.push(a),n.text&&n.text.call(n.textContext||void 0,a,{start:p,end:m()}),a="")}}function Hs(e){return e>=55296&&e<=57343||e>1114111}function Ws(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}const Qs=/["&'<>`]/g,Ys=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Gs=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,Xs=/[|\\{}()[\]^$+*?.]/g,zr=new WeakMap;function Ks(e,t){if(e=e.replace(t.subset?Js(t.subset):Qs,r),t.subset||t.escapeOnly)return e;return e.replace(Ys,n).replace(Gs,r);function n(i,o,l){return t.format((i.charCodeAt(0)-55296)*1024+i.charCodeAt(1)-56320+65536,l.charCodeAt(o+2),t)}function r(i,o,l){return t.format(i.charCodeAt(0),l.charCodeAt(o+1),t)}}function Js(e){let t=zr.get(e);return t||(t=Zs(e),zr.set(e,t)),t}function Zs(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(Xs,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}function ec(e){return"&#x"+e.toString(16).toUpperCase()+";"}function tc(e,t){return Ks(e,Object.assign({format:ec},t))}const nc={}.hasOwnProperty,rc={},ic={},Pr=/^[^\t\n\r "#'.<=>`}]+$/,lc=/^[^\t\n\r "'<=>`}]+$/;function oc(e){const t=rc;return{canContainEols:["textDirective"],enter:{directiveContainer:uc,directiveContainerAttributes:Bt,directiveContainerLabel:fc,directiveLeaf:sc,directiveLeafAttributes:Bt,directiveText:cc,directiveTextAttributes:Bt},exit:{directiveContainer:Wt,directiveContainerAttributeClass:Me,directiveContainerAttributeClassValue:$t,directiveContainerAttributeId:Me,directiveContainerAttributeIdValue:qt,directiveContainerAttributeName:Vt,directiveContainerAttributeValue:Ut,directiveContainerAttributeValueLiteral:jt,directiveContainerAttributes:Ht,directiveContainerLabel:hc,directiveContainerName:_t,directiveContainerSequence:n,directiveLeaf:Wt,directiveLeafAttributeClass:Me,directiveLeafAttributeClassValue:$t,directiveLeafAttributeId:Me,directiveLeafAttributeIdValue:qt,directiveLeafAttributeName:Vt,directiveLeafAttributeValue:Ut,directiveLeafAttributeValueLiteral:jt,directiveLeafAttributes:Ht,directiveLeafLabel:Dr,directiveLeafName:_t,directiveLeafSequence:n,directiveText:Wt,directiveTextAttributeClass:Me,directiveTextAttributeClassValue:$t,directiveTextAttributeId:Me,directiveTextAttributeIdValue:qt,directiveTextAttributeName:Vt,directiveTextAttributeValue:Ut,directiveTextAttributeValueLiteral:jt,directiveTextAttributes:Ht,directiveTextLabel:Dr,directiveTextMarker:n,directiveTextName:_t}};function n(r){if(!t.verbose)return;const i=this.stack[this.stack.length-1];i.type==="containerDirective"||i.type==="leafDirective"||i.type;const o={start:ve(r.start),end:ve(r.end)};i.data&&i.data.position?(i.type,i.data.position.closing=o):i.data={position:{opening:o}}}}function ac(e){const t=ic;if(t.quote!=='"'&&t.quote!=="'"&&t.quote!==null&&t.quote!==void 0)throw new Error("Invalid quote `"+t.quote+"`, expected `'` or `\"`");return n.peek=pc,{handlers:{containerDirective:n,leafDirective:n,textDirective:n},unsafe:[{character:"\r",inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{character:`
16
+ `,inConstruct:["leafDirectiveLabel","containerDirectiveLabel"]},{after:"[^\\s\\p{P}\\p{S}]",before:"[^:]",character:":",inConstruct:["phrasing"],unicode:!0},{afterNode:"textDirective",character:":",inConstruct:["phrasing"]},{atBreak:!0,before:":+",character:":"}]};function n(o,l,a,u){const s=a.createTracker(u),c=a.enter(o.type);let f;if(o.type==="containerDirective"){const y=(o.children||[])[0],A=Fr(y)?o.children.slice(1):o.children;if(A&&A.length>0){const C=s.current();f=a.containerFlow({...o,children:A},{now:{line:C.now.line+1,column:1+C.lineShift},lineShift:C.lineShift})}}const p=dc(o,f?gc(f):0);let h=s.move(p+(o.name||""));const m=r(o,a),x=u.after.charCodeAt(0);let b;if(o.type==="containerDirective"){const y=(o.children||[])[0];b=Fr(y)?y:void 0}else b=o;if(b&&b.children&&b.children.length>0){const y=a.enter("label"),A=`${o.type}Label`,C=a.enter(A);h+=s.move("["),h+=s.move(a.containerPhrasing(b,{...s.current(),before:h,after:"]"})),h+=s.move("]"),C(),y()}else!m&&(x===45||x===95||!(me(x)||oe(x)))&&(h+=s.move("[]"));return h+=s.move(m||(x===123?"{}":"")),o.type==="containerDirective"&&(f&&(h+=s.move(`
17
+ `+f)),h+=s.move(`
18
+ `+p)),c(),h}function r(o,l){const a=o.attributes||{},u=[];let s,c,f,p;for(p in a)if(nc.call(a,p)&&a[p]!==void 0&&a[p]!==null){const h=mc(String(a[p]));if(p==="id")f=t.preferShortcut!==!1&&Pr.test(h)?"#"+h:i("id",h,o,l);else if(p==="class"){const m=h.split(/[\t\n\r ]+/),x=[],b=[];for(const y of m)(t.preferShortcut!==!1&&Pr.test(y)?b:x).push(y);s=x.length>0?i("class",x.join(" "),o,l):"",c=b.length>0?"."+b.join("."):""}else u.push(i(p,h,o,l))}return s&&u.unshift(s),c&&u.unshift(c),f&&u.unshift(f),u.length>0?"{"+u.join(" ")+"}":""}function i(o,l,a,u){if(t.collapseEmptyAttributes!==!1&&!l)return o;if(t.preferUnquoted&&lc.test(l))return o+"="+l;const s=t.quote||u.options.quote||'"',c=s==='"'?"'":'"',f=t.quoteSmart&&ht(l,s)>ht(l,c)?c:s,p=a.type==="textDirective"?[f]:[f,`
19
+ `,"\r"];return o+"="+f+tc(l,{subset:p})+f}}function uc(e){Tn.call(this,"containerDirective",e)}function sc(e){Tn.call(this,"leafDirective",e)}function cc(e){Tn.call(this,"textDirective",e)}function Tn(e,t){this.enter({type:e,name:"",attributes:{},children:[]},t)}function _t(e){const t=this.stack[this.stack.length-1];t.type==="containerDirective"||t.type==="leafDirective"||t.type,t.name=this.sliceSerialize(e),wt(t,e)}function fc(e){this.enter({type:"paragraph",data:{directiveLabel:!0},children:[]},e)}function hc(e){this.exit(e);const t=this.stack[this.stack.length-1];t.type,wt(t,e)}function Dr(e){const t=this.stack[this.stack.length-1];t.type==="leafDirective"||t.type,wt(t,e)}function Bt(){const e=this.stack[this.stack.length-1];e.type==="containerDirective"||e.type==="leafDirective"||e.type,e.data&&e.data.position&&(this.data.directiveAttributePositions={}),this.data.directiveAttributes=[],this.buffer()}function Me(e){const t=this.data.directiveAttributePositions;if(t){const n=this.data.directiveAttributes,r=n[n.length-1];t[r[0]]={start:ve(e.start),end:ve(e.end)}}}function jt(e){zi(this,e)}function qt(e){this.data.directiveAttributes.push(["id",In(this.sliceSerialize(e),{attribute:!0})])}function $t(e){this.data.directiveAttributes.push(["class",In(this.sliceSerialize(e),{attribute:!0})])}function Ut(e){const t=this.data.directiveAttributes,n=t[t.length-1];n[1]=In(this.sliceSerialize(e),{attribute:!0}),zi(this,e)}function Vt(e){const t=this.data.directiveAttributes,n=this.sliceSerialize(e);t.push([n,""]);const r=this.data.directiveAttributePositions;r&&(r[n]={start:ve(e.start),end:ve(e.end)})}function Ht(e){const t=this.data.directiveAttributes,n={};for(const o of t)o[0]==="class"&&n.class?n.class+=" "+o[1]:n[o[0]]=o[1];const r=this.data.directiveAttributePositions;this.data.directiveAttributePositions=void 0,this.data.directiveAttributes=void 0,this.resume();const i=this.stack[this.stack.length-1];i.type==="containerDirective"||i.type==="leafDirective"||i.type,i.attributes=n,r&&(i.data&&i.data.position,i.data.position.attributes=r),wt(i,e)}function wt(e,t){if(e.data&&e.data.position){const{opening:n}=e.data.position;n.end=ve(t.end)}}function zi(e,t){const n=e.data.directiveAttributePositions;if(n){const r=e.data.directiveAttributes,i=r[r.length-1],o=n[i[0]];o.end=ve(t.end)}}function ve(e){return{line:e.line,column:e.column,offset:e.offset}}function Wt(e){this.exit(e)}function pc(){return":"}function mc(e){const t=[];let n=0,r=e.indexOf("&");for(;r!==-1;){const i=e.charCodeAt(r+1);(i===35||X(i))&&(t.push(e.slice(n,r),"&#x26;"),n=r+1),r=e.indexOf("&",r+1)}return t.push(e.slice(n)),t.join("")}function Fr(e){return!!(e&&e.type==="paragraph"&&e.data&&e.data.directiveLabel)}function dc(e,t){let n=0;return e.type==="containerDirective"?n=Math.max(3,t+1):e.type==="leafDirective"?n=2:n=1,":".repeat(n)}function gc(e){let t=0,n=0;for(;n<e.length;){let r=0,i=e.charCodeAt(n);for(;i===9||i===32;)i=e.charCodeAt(++n);for(;i===58;)r++,i=e.charCodeAt(++n);for(;i===9||i===32;)i=e.charCodeAt(++n);for(;!(i===10||i===13||Number.isNaN(i));)r=0,i=e.charCodeAt(++n);r>t&&(t=r),n++}return t}function Ln(e,t,n,r,i,o,l,a,u,s,c,f,p,h,m){let x,b;return y;function y(k){return e.enter(r),e.enter(i),e.consume(k),e.exit(i),A}function A(k){return k===35?(x=l,C(k)):k===46?(x=a,C(k)):m&&B(k)?q(e,A,"whitespace")(k):!m&&V(k)?ke(e,A)(k):k===null||P(k)||oe(k)||me(k)&&k!==45&&k!==95?$(k):(e.enter(o),e.enter(u),e.consume(k),S)}function C(k){const U=x+"Marker";return e.enter(o),e.enter(x),e.enter(U),e.consume(k),e.exit(U),L}function L(k){if(k===null||k===34||k===35||k===39||k===46||k===60||k===61||k===62||k===96||k===125||V(k))return n(k);const U=x+"Value";return e.enter(U),e.consume(k),O}function O(k){if(k===null||k===34||k===39||k===60||k===61||k===62||k===96)return n(k);if(k===35||k===46||k===125||V(k)){const U=x+"Value";return e.exit(U),e.exit(x),e.exit(o),A(k)}return e.consume(k),O}function S(k){return k===null||P(k)||oe(k)||me(k)&&k!==45&&k!==46&&k!==58&&k!==95?(e.exit(u),m&&B(k)?q(e,F,"whitespace")(k):!m&&V(k)?ke(e,F)(k):F(k)):(e.consume(k),S)}function F(k){return k===61?(e.enter(s),e.consume(k),e.exit(s),R):(e.exit(o),A(k))}function R(k){return k===null||k===60||k===61||k===62||k===96||k===125||m&&P(k)?n(k):k===34||k===39?(e.enter(c),e.enter(p),e.consume(k),e.exit(p),b=k,w):m&&B(k)?q(e,R,"whitespace")(k):!m&&V(k)?ke(e,R)(k):(e.enter(f),e.enter(h),e.consume(k),b=void 0,I)}function I(k){return k===null||k===34||k===39||k===60||k===61||k===62||k===96?n(k):k===125||V(k)?(e.exit(h),e.exit(f),e.exit(o),A(k)):(e.consume(k),I)}function w(k){return k===b?(e.enter(p),e.consume(k),e.exit(p),e.exit(c),e.exit(o),M):(e.enter(f),T(k))}function T(k){return k===b?(e.exit(f),w(k)):k===null?n(k):P(k)?m?n(k):ke(e,T)(k):(e.enter(h),e.consume(k),D)}function D(k){return k===b||k===null||P(k)?(e.exit(h),T(k)):(e.consume(k),D)}function M(k){return k===125||V(k)?A(k):$(k)}function $(k){return k===125?(e.enter(i),e.consume(k),e.exit(i),e.exit(r),t):n(k)}}function zn(e,t,n,r,i,o,l){let a=0,u=0,s;return c;function c(b){return e.enter(r),e.enter(i),e.consume(b),e.exit(i),f}function f(b){return b===93?(e.enter(i),e.consume(b),e.exit(i),e.exit(r),t):(e.enter(o),p(b))}function p(b){if(b===93&&!u)return x(b);const y=e.enter("chunkText",{_contentTypeTextTrailing:!0,contentType:"text",previous:s});return s&&(s.next=y),s=y,h(b)}function h(b){return b===null||a>999||b===91&&++u>32?n(b):b===93&&!u--?(e.exit("chunkText"),x(b)):P(b)?l?n(b):(e.consume(b),e.exit("chunkText"),p):(e.consume(b),b===92?m:h)}function m(b){return b===91||b===92||b===93?(e.consume(b),a++,h):h(b)}function x(b){return e.exit(o),e.enter(i),e.consume(b),e.exit(i),e.exit(r),t}}function Pn(e,t,n,r){const i=this;return o;function o(a){return a===null||P(a)||me(a)||oe(a)?n(a):(e.enter(r),e.consume(a),l)}function l(a){return a===null||P(a)||oe(a)||me(a)&&a!==45&&a!==95?(e.exit(r),i.previous===45||i.previous===95?n(a):t(a)):(e.consume(a),l)}}const xc={tokenize:bc,concrete:!0},yc={tokenize:wc,partial:!0},kc={tokenize:Cc,partial:!0},it={tokenize:Sc,partial:!0};function bc(e,t,n){const r=this,i=r.events[r.events.length-1],o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0;let l=0,a;return u;function u(I){return e.enter("directiveContainer"),e.enter("directiveContainerFence"),e.enter("directiveContainerSequence"),s(I)}function s(I){return I===58?(e.consume(I),l++,s):l<3?n(I):(e.exit("directiveContainerSequence"),Pn.call(r,e,c,n,"directiveContainerName")(I))}function c(I){return I===91?e.attempt(yc,f,f)(I):f(I)}function f(I){return I===123?e.attempt(kc,p,p)(I):p(I)}function p(I){return q(e,h,"whitespace")(I)}function h(I){return e.exit("directiveContainerFence"),I===null?F(I):P(I)?r.interrupt?t(I):e.attempt(it,m,F)(I):n(I)}function m(I){return I===null?F(I):P(I)?e.check(it,C,F)(I):(e.enter("directiveContainerContent"),x(I))}function x(I){return e.attempt({tokenize:R,partial:!0},S,o?q(e,b,"linePrefix",o+1):b)(I)}function b(I){return I===null?S(I):P(I)?e.check(it,A,S)(I):A(I)}function y(I){if(I===null){const w=e.exit("chunkDocument");return r.parser.lazy[w.start.line]=!1,S(I)}return P(I)?e.check(it,L,O)(I):(e.consume(I),y)}function A(I){const w=e.enter("chunkDocument",{contentType:"document",previous:a});return a&&(a.next=w),a=w,y(I)}function C(I){return e.enter("directiveContainerContent"),x(I)}function L(I){e.consume(I);const w=e.exit("chunkDocument");return r.parser.lazy[w.start.line]=!1,x}function O(I){const w=e.exit("chunkDocument");return r.parser.lazy[w.start.line]=!1,S(I)}function S(I){return e.exit("directiveContainerContent"),F(I)}function F(I){return e.exit("directiveContainer"),t(I)}function R(I,w,T){let D=0;return q(I,M,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function M(U){return I.enter("directiveContainerFence"),I.enter("directiveContainerSequence"),$(U)}function $(U){return U===58?(I.consume(U),D++,$):D<l?T(U):(I.exit("directiveContainerSequence"),q(I,k,"whitespace")(U))}function k(U){return U===null||P(U)?(I.exit("directiveContainerFence"),w(U)):T(U)}}}function wc(e,t,n){return zn(e,t,n,"directiveContainerLabel","directiveContainerLabelMarker","directiveContainerLabelString",!0)}function Cc(e,t,n){return Ln(e,t,n,"directiveContainerAttributes","directiveContainerAttributesMarker","directiveContainerAttribute","directiveContainerAttributeId","directiveContainerAttributeClass","directiveContainerAttributeName","directiveContainerAttributeInitializerMarker","directiveContainerAttributeValueLiteral","directiveContainerAttributeValue","directiveContainerAttributeValueMarker","directiveContainerAttributeValueData",!0)}function Sc(e,t,n){const r=this;return i;function i(l){return e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const vc={tokenize:Ic},Ac={tokenize:Tc,partial:!0},Ec={tokenize:Lc,partial:!0};function Ic(e,t,n){const r=this;return i;function i(c){return e.enter("directiveLeaf"),e.enter("directiveLeafSequence"),e.consume(c),o}function o(c){return c===58?(e.consume(c),e.exit("directiveLeafSequence"),Pn.call(r,e,l,n,"directiveLeafName")):n(c)}function l(c){return c===91?e.attempt(Ac,a,a)(c):a(c)}function a(c){return c===123?e.attempt(Ec,u,u)(c):u(c)}function u(c){return q(e,s,"whitespace")(c)}function s(c){return c===null||P(c)?(e.exit("directiveLeaf"),t(c)):n(c)}}function Tc(e,t,n){return zn(e,t,n,"directiveLeafLabel","directiveLeafLabelMarker","directiveLeafLabelString",!0)}function Lc(e,t,n){return Ln(e,t,n,"directiveLeafAttributes","directiveLeafAttributesMarker","directiveLeafAttribute","directiveLeafAttributeId","directiveLeafAttributeClass","directiveLeafAttributeName","directiveLeafAttributeInitializerMarker","directiveLeafAttributeValueLiteral","directiveLeafAttributeValue","directiveLeafAttributeValueMarker","directiveLeafAttributeValueData",!0)}const zc={tokenize:Mc,previous:Fc},Pc={tokenize:Oc,partial:!0},Dc={tokenize:Rc,partial:!0};function Fc(e){return e!==58||this.events[this.events.length-1][1].type==="characterEscape"}function Mc(e,t,n){const r=this;return i;function i(u){return e.enter("directiveText"),e.enter("directiveTextMarker"),e.consume(u),e.exit("directiveTextMarker"),Pn.call(r,e,o,n,"directiveTextName")}function o(u){return u===58?n(u):u===91?e.attempt(Pc,l,l)(u):l(u)}function l(u){return u===123?e.attempt(Dc,a,a)(u):a(u)}function a(u){return e.exit("directiveText"),t(u)}}function Oc(e,t,n){return zn(e,t,n,"directiveTextLabel","directiveTextLabelMarker","directiveTextLabelString")}function Rc(e,t,n){return Ln(e,t,n,"directiveTextAttributes","directiveTextAttributesMarker","directiveTextAttribute","directiveTextAttributeId","directiveTextAttributeClass","directiveTextAttributeName","directiveTextAttributeInitializerMarker","directiveTextAttributeValueLiteral","directiveTextAttributeValue","directiveTextAttributeValueMarker","directiveTextAttributeValueData")}function Nc(){return{text:{58:zc},flow:{58:[xc,vc]}}}function _c(){const t=this.data(),n=t.micromarkExtensions||(t.micromarkExtensions=[]),r=t.fromMarkdownExtensions||(t.fromMarkdownExtensions=[]),i=t.toMarkdownExtensions||(t.toMarkdownExtensions=[]);n.push(Nc()),r.push(oc()),i.push(ac())}function Bc(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function jc(e,t,n){const i=yt((n||{}).ignore||[]),o=qc(t);let l=-1;for(;++l<o.length;)an(e,a);function a(s,c,f){if(s.type==="text"&&typeof f=="number")return u(s,c,f);if(i(s,f,c[c.length-1]))return on}function u(s,c,f){const p=c[c.length-1],h=o[l][0],m=o[l][1];let x=0,b=!1,y=[];h.lastIndex=0;let A=h.exec(s.value);for(;A;){const L=A.index,O={index:A.index,input:A.input,stack:[...c,s]};let S=m(...A,O);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1)h.lastIndex=L+1;else{if(x!==L&&C({type:"text",value:s.value.slice(x,L)}),Array.isArray(S))for(const F of S)C(F);else S&&C(S);x=L+A[0].length,b=!0}if(!h.global)break;A=h.exec(s.value)}return b?(x<s.value.length&&C({type:"text",value:s.value.slice(x)}),p.children.splice(f,1,...y)):y=[s],f+y.length;function C(L){const O=y[y.length-1];O&&O.type==="text"&&L.type==="text"?O.value+=L.value:y.push(L)}}}function qc(e){if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const t=[],n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([$c(i[0]),Uc(i[1])])}return t}function $c(e){return typeof e=="string"?new RegExp(Bc(e),"g"):e}function Uc(e){return typeof e=="function"?e:function(){return e}}const Qt="phrasing",Yt=["autolink","link","image","label"];function Vc(){return{transforms:[Kc],enter:{literalAutolink:Wc,literalAutolinkEmail:Gt,literalAutolinkHttp:Gt,literalAutolinkWww:Gt},exit:{literalAutolink:Xc,literalAutolinkEmail:Gc,literalAutolinkHttp:Qc,literalAutolinkWww:Yc}}}function Hc(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Qt,notInConstruct:Yt},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Qt,notInConstruct:Yt},{character:":",before:"[ps]",after:"\\/",inConstruct:Qt,notInConstruct:Yt}]}}function Wc(e){this.enter({type:"link",title:null,url:"",children:[],position:void 0},e)}function Gt(e){this.config.enter.autolinkProtocol.call(this,e)}function Qc(e){this.config.exit.autolinkProtocol.call(this,e)}function Yc(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Gc(e){this.config.exit.autolinkEmail.call(this,e)}function Xc(e){this.exit(e)}function Kc(e){jc(e,[[new RegExp("(?<![\\da-z])(https?:\\/\\/|www(?=\\.))([\\w-]*\\.[\\w\\-.]*)([^\\t\\n\\r ]*)","gi"),Jc],[new RegExp("(?<![\\w+\\-.@])xmpp:([\\w+\\-.]+)@([\\w-]+(?:\\.[\\w-]+)+)(\\/(?:[\\w\\-/]|\\.(?=[\\dA-Za-z]))*)?","g"),tf],[new RegExp("(?<![\\w+\\-.@])mailto:([\\w+\\-.]+)@([\\w-]+(?:\\.[\\w-]+)+)","g"),ef],[new RegExp("(?<![\\w+\\-.]|(?:^|[^\\d@A-Za-z])(?:mailto|xmpp):)([\\w+\\-.]+)@([\\w-]+(?:\\.[\\w-]+)+)","g"),Zc]],{ignore:["link","linkReference"]})}function Jc(e,t,n,r,i){if(!lf(i))return!1;let o="";if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),me(n.charCodeAt(0))||!nf(n))return!1;const l=rf(n+r),a={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0],position:void 0}],position:void 0};return l[1]?[a,{type:"text",value:l[1],position:void 0}]:a}function Zc(e,t,n){return/[\d\-_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n,position:void 0}],position:void 0}}function ef(e,t,n){if(/[\d\-_]$/.test(n))return!1;const r="mailto:"+t+"@"+n;return{type:"link",title:null,url:r,children:[{type:"text",value:r,position:void 0}],position:void 0}}function tf(e,t,n,r,i){if(/[\d\-_]$/.test(n)||r&&(!/[A-Za-z]$/.test(r)||i.input.charAt(i.index+e.length)==="@"))return!1;const o="xmpp:"+t+"@"+n+(r||"");return{type:"link",title:null,url:o,children:[{type:"text",value:o,position:void 0}],position:void 0}}function nf(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[\dA-Za-z]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[\dA-Za-z]/.test(t[t.length-2])))}function rf(e){let t=e.length;for(;t>0;){const l=e.charCodeAt(t-1);if(l===33||l===34||l===38||l===39||l===41||l===44||l===46||l===58||l===59||l===60||l===62||l===63||l===93||l===125)t--;else break}if(t===e.length)return[e,void 0];let n=e.slice(t);e=e.slice(0,t);let r=n.indexOf(")");const i=ht(e,"(");let o=ht(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function lf(e){const t=e.input.charCodeAt(e.index-1);return e.index===0||oe(t)||me(t)}Pi.peek=mf;function of(){this.buffer()}function af(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function uf(){this.buffer()}function sf(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function cf(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=fe(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ff(e){this.exit(e)}function hf(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=fe(this.sliceSerialize(e)).toLowerCase(),n.label=t}function pf(e){this.exit(e)}function mf(){return"["}function Pi(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const l=n.enter("footnoteReference"),a=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),a(),l(),o+=i.move("]"),o}function df(){return{enter:{gfmFootnoteCallString:of,gfmFootnoteCall:af,gfmFootnoteDefinitionLabelString:uf,gfmFootnoteDefinition:sf},exit:{gfmFootnoteCallString:cf,gfmFootnoteCall:ff,gfmFootnoteDefinitionLabelString:hf,gfmFootnoteDefinition:pf}}}function gf(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Pi},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,l){const a=o.createTracker(l);let u=a.move("[^");const s=o.enter("footnoteDefinition"),c=o.enter("label");return u+=a.move(o.safe(o.associationId(r),{before:u,after:"]"})),c(),u+=a.move("]:"),r.children&&r.children.length>0&&(a.shift(4),u+=a.move((t?`
20
+ `:" ")+o.indentLines(o.containerFlow(r,a.current()),t?Di:xf))),s(),u}}function xf(e,t,n){return t===0?e:Di(e,t,n)}function Di(e,t,n){return(n?"":" ")+e}const yf=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Dn.attention=Sf;Dn.peek=vf;function kf(){return{canContainEols:["delete"],enter:{strikethrough:wf},exit:{strikethrough:Cf}}}function bf(){return{handlers:{delete:Dn},unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:yf}]}}function wf(e){this.enter({type:"delete",children:[],position:void 0},e)}function Cf(e){this.exit(e)}function Dn(e,t,n,r){const i=n.createTracker(r),o=n.stack.includes("strikethrough")?"~":"~~",l=n.enter("strikethrough");let a=i.move(o);return a+=n.containerPhrasing(e,{...i.current(),before:a,after:"~"}),a+=i.move(o),l(),a}function Sf(){return{construct:"strikethrough",markers:["~"],sizes:[2,1]}}function vf(){return"~"}function Af(e){return e.length}function Ef(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Af,o=[],l=[],a=[],u=[];let s=0,c=-1;for(;++c<e.length;){const x=[],b=[];let y=-1;for(e[c].length>s&&(s=e[c].length);++y<e[c].length;){const A=If(e[c][y]);if(n.alignDelimiters!==!1){const C=i(A);b[y]=C,(u[y]===void 0||C>u[y])&&(u[y]=C)}x.push(A)}l[c]=x,a[c]=b}let f=-1;if(typeof r=="object"&&"length"in r)for(;++f<s;)o[f]=Mr(r[f]);else{const x=Mr(r);for(;++f<s;)o[f]=x}f=-1;const p=[],h=[];for(;++f<s;){const x=o[f];let b="",y="";x===99?(b=":",y=":"):x===108?b=":":x===114&&(y=":");let A=n.alignDelimiters===!1?1:Math.max(1,u[f]-b.length-y.length);const C=b+"-".repeat(A)+y;n.alignDelimiters!==!1&&(A=b.length+A+y.length,A>u[f]&&(u[f]=A),h[f]=A),p[f]=C}l.splice(1,0,p),a.splice(1,0,h),c=-1;const m=[];for(;++c<l.length;){const x=l[c],b=a[c],y=n.fillRows===!1?Math.max(1,l[c===1?0:c].length):s;f=-1;const A=[];for(;++f<y;){const C=x[f]||"";let L="",O="";if(n.alignDelimiters!==!1){const S=u[f]-(b[f]||0),F=o[f];if(F===114)L=" ".repeat(S);else if(F===99){const R=S/2;S%2?(L=" ".repeat(R+.5),O=" ".repeat(R-.5)):(L=" ".repeat(R),O=L)}else O=" ".repeat(S)}n.delimiterStart!==!1&&!f&&A.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&C==="")&&(n.delimiterStart!==!1||f)&&A.push(" "),n.alignDelimiters!==!1&&A.push(L),A.push(C),n.alignDelimiters!==!1&&A.push(O),n.padding!==!1&&A.push(" "),(n.delimiterEnd!==!1||f!==y-1)&&A.push("|")}m.push(n.delimiterEnd===!1?A.join("").replace(/ +$/,""):A.join(""))}return m.join(`
21
+ `)}function If(e){return e==null?"":String(e)}function Mr(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const Tf=yt(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Lf(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),zf);return i(),l}function zf(e,t,n){return">"+(n?"":" ")+e}function Pf(e,t){return Or(e,t.inConstruct,!0)&&!Or(e,t.notInConstruct,!1)}function Or(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Rr(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;){const o=n.unsafe[i];if(o.character===`
22
+ `&&!o.before&&!o.after&&Pf(n.stack,o))return/[\t ]/.test(r.before)?"":" "}return`\\
23
+ `}function Df(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+t.length,r=n.indexOf(t,i);return l}function Ff(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^\n\r ]/.test(e.value)&&!/^[\t ]*(?:[\n\r]|$)|(?:^|[\n\r])[\t ]*$/.test(e.value))}function Mf(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function Of(e,t,n,r){const i=Mf(n),o=e.value||"";if(Ff(e,n)){const f=n.enter("codeIndented"),p=n.indentLines(o,Rf);return f(),p}const l=n.createTracker(r),a=i.repeat(Math.max(Df(o,i)+1,3)),u=n.enter("codeFenced"),s=i==="`"?"GraveAccent":"Tilde";let c=l.move(a);if(e.lang){const f=n.enter(`codeFencedLang${s}`);c+=l.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...l.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${s}`);c+=l.move(" "),c+=l.move(n.safe(e.meta,{before:c,after:`
24
+ `,encode:["`"],...l.current()})),f()}return c+=l.move(`
25
+ `),o&&(c+=l.move(o+`
26
+ `)),c+=l.move(a),u(),c}function Rf(e,t,n){return(n?"":" ")+e}function Fn(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function Nf(e,t,n,r){const i=Fn(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let a=n.enter("label");const u=n.createTracker(r);let s=u.move("[");return s+=u.move(n.safe(n.associationId(e),{before:s,after:"]",...u.current()})),s+=u.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(n.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=n.enter("destinationRaw"),s+=u.move(n.safe(e.url,{before:s,after:e.title?" ":`
27
+ `,...u.current()}))),a(),e.title&&(a=n.enter(`title${o}`),s+=u.move(" "+i),s+=u.move(n.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),l(),s}function _f(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function pt(e){const t=e.codePointAt(0);return t===void 0?"":String.fromCodePoint(t)}function Ne(e){const t=e.codePointAt(e.length-2);return t!==void 0&&t>65535?e.slice(-2):e.slice(-1)}function Fi(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Nr(e,t,n){const r=Se(e),i=Se(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}function Bf(e){if(e.charCodeAt(0)!==60)return;const t=e.charCodeAt(1);if(t===33){const a=e.charCodeAt(2);return a===45?2:a===91?5:X(a)?4:void 0}if(t===63)return 3;const n=t===47,r=n?2:1;let i=r,o=e.charCodeAt(i);if(!X(o))return;for(;o===45||J(o);)o=e.charCodeAt(++i);const l=e.slice(r,i).toLowerCase();return!n&&o!==47&&ln.includes(l)?1:gi.includes(l)?6:7}const Mi=new Map([["*",!1],["_",!0]]);function jf(e,t,n){const r=new Set;for(const o of e){const l=n.get(o);if(l&&o.attention&&t.some(a=>a.attention===o.attention))for(const a of l.tokens)r.add(a.attention)}const i=[];for(const o of e)o.attention&&r.delete(o.attention)&&i.push(o.attention);return i.reverse(),i}function Oi(e,t,n){const r=[],i=new Map,o=new Map;let l=0;for(;l<e.length;){if(!e[l].attention){l++;continue}const a=e[l].value.charAt(0),u=Mi.get(a);let s=l+1;for(;s<e.length&&e[s].attention&&e[s].value.charAt(0)===a;)s++;const c=l?e[l-1].value:t,f=Se(c.charCodeAt(c.length-1)),p=Se((s<e.length?e[s].value:n).charCodeAt(0)),h=!p||p===2&&!!f,m=!f||f===2&&!!p,x={tokens:e.slice(l,s),markers:[],start:0,end:0,open:u?h&&(!!f||!m):h,close:u?m&&(!!p||!h):m,split:u!==void 0};for(const b of x.tokens){i.set(b,[...x.tokens]),o.set(b,x);let y=b.value.length;for(;y--;)x.markers.push(b)}x.end=x.markers.length,r.push(x),l=s}for($f(r,i),l=-1;++l<e.length;){const a=i.get(e[l]);if(a)return{attention:jf(e,a,o),index:l}}}function lt(e,t){const n=e[t?0:e.length-1];if(!n||n.attention)return;const r=t?pt(n.value):Ne(n.value),i=Fi(r.codePointAt(0));if(t)n.value=i+n.value.slice(r.length);else{let o=n.value.slice(0,n.value.length-r.length),l=0;for(;o.charCodeAt(o.length-1-l)===92;)l++;l%2&&(o+="\\"),n.value=o+i}}function qf(e,t,n,r,i){for(const o of n.attention){const l=t.get(o)||o.sequences[0];for(const a of o.sequences){if(a===l)continue;const u=new Map(t);u.set(o,a);const s=Ct(e,u,r,i),c=Oi(s,r,i);if(!c||c.index>n.index)return{chosen:u,mistake:c,tokens:s}}}}function $f(e,t){const n=new Map;for(const r of e){const i=r.tokens[0].value.charAt(0);let o=n.get(i);o||(o=[],n.set(i,o));let l=r.close?o.length:0;for(;l--&&r.start<r.end;){const a=o[l],u=a.end-a.start,s=r.end-r.start;if(r.split?(a.close||r.open)&&s%3&&!((u+s)%3):u!==a.markers.length||u!==s)continue;const c=r.split?u>1&&s>1?2:1:s,f=a.markers.slice(a.end-c,a.end),p=r.markers.slice(r.start,r.start+c),h=f[0],m=p[0];if(h===f[c-1]&&h.value.length===c&&m===p[c-1]&&m.value.length===c&&h.attention===m.attention)t.delete(h),t.delete(m);else{const x=[...new Set([...f,...p])];for(const b of x){const y=t.get(b);y&&y.push(...x)}}a.end-=c,r.start+=c,a.start===a.end&&o.splice(l,1),l=o.length}r.open&&r.start<r.end&&o.push(r)}}function Uf(e,t,n){if(t.length===0)throw new Error("Cannot serialize `"+e+"` as attention without markers, expected one or more markers");if(n.length===0)throw new Error("Cannot serialize `"+e+"` as attention without sizes, expected one or more sizes");for(const i of n)if(!Number.isSafeInteger(i)||i<1)throw new Error("Cannot serialize `"+e+"` as attention with `"+i+"` as size, expected positive integer");const r=[];for(const i of t){if(i.length!==1)throw new Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected a single ascii character");if(!ai(i.charCodeAt(0)))throw new Error("Cannot serialize `"+e+"` as attention with `"+i+"` as marker, expected ascii punctuation");for(const o of n)r.push(i.repeat(o))}return r}function Vf(e,t,n){const r=t.indexStack,i=e.children||[],o=[];let l=-1,a=n.before;r.push(-1);let u=t.createTracker(n);for(;++l<i.length;){const s=i[l];let c;if(r[r.length-1]=l,l+1<i.length){let h=t.handle.handlers[i[l+1].type];h&&h.peek&&(h=h.peek),c=h?pt(h(i[l+1],e,t,{before:"",after:"",...u.current()})):""}else c=n.after;const f=o[o.length-1];typeof f=="string"&&(a==="\r"||a===`
28
+ `)&&s.type==="html"&&Bf(s.value)!==7&&(o[o.length-1]=f.replace(/(\r?\n|\r)$/," "),a=" ",u=t.createTracker(n),u.move(St(o,n.before,n.after)));const p=t.handle.handlers[s.type];if(p&&p.attention){const h=Mn(s,p.attention,t,u);if(!h)continue;o.push(h),a=Ne(h.sequences[0])}else{const h=t.handle(s,e,t,{...u.current(),after:c,before:a});if(!h)continue;u.move(h),o.push(h),a=Ne(h)}}return r.pop(),o}function Mn(e,t,n,r){const{construct:i,markers:o,sizes:l}=t(e,n),a=Uf(e.type,o,l),u=a[0],s=n.enter(i),c=n.createTracker(r.current());c.move(u);const f=Vf(e,n,{...c.current(),before:u,after:u});if(s(),f.length!==0)return r.move(u),r.move(St(f,u,u)),r.move(u),{children:f,sequences:a}}function _r(e,t,n,r){let i=Ct(e,t,n,r),o=Oi(i,n,r);for(;o;){const l=qf(e,t,o,n,r);if(!l)return;t=l.chosen,i=l.tokens,o=l.mistake}return i}function Ri(e,t,n,r){let i=n,o=-1;for(;++o<e.length;){const l=e[o];if(typeof l=="string"){i="";continue}const a=o===e.length-1?r:"",u=l.sequences.find(function(s){const c=s.charAt(0);return c!==i.charAt(0)&&c!==a.charAt(0)||e.length===1&&Mi.has(c)&&s.length>n.length})||l.sequences[0];u!==l.sequences[0]&&t.set(l,u),Ri(l.children,t,u,u),i=u}}function Ct(e,t,n,r){const i=[];let o,l=Ne(n),a=-1;for(;++a<e.length;){const u=e[a];if(typeof u=="string"){const C={value:u,attention:void 0};o&&o===pt(u)&&lt([C],!0),o=void 0,i.push(C),C.value&&(l=Ne(C.value));continue}const s=t.get(u)||u.sequences[0],c=s.charAt(0),f=e[a+1],p=l,h=pt(f===void 0?r:typeof f=="string"?f:t.get(f)||f.sequences[0]),m=Ct(u.children,t,s,s),x=m[0].value,b=Nr(p.charCodeAt(p.length-1),x.charCodeAt(0),c);b.inside&&lt(m,!0);const y=Ne(m[m.length-1].value),A=Nr(h.charCodeAt(0),y.charCodeAt(y.length-1),c);A.inside&&lt(m,!1),b.outside&&p!==`
29
+ `&&p!=="\r"&&lt(i,!1),A.outside&&(o=h),i.push({value:s,attention:u},...m,{value:s,attention:u}),l=s.charAt(s.length-1)}return i}function St(e,t,n){const r=new Map;Ri(e,r,t,n);const i=(r.size>0?_r(e,r,t,n):void 0)||_r(e,new Map,t,n)||Ct(e,new Map,t,n);let o="";for(const l of i)o+=l.value;return o}On.attention=Ni;On.peek=Hf;function On(e,t,n,r){const i=n.enter("phrasing"),o=Mn(e,Ni,n,n.createTracker(r)),l=o?St([o],r.before,r.after):"";return i(),l}function Ni(e,t){return{construct:"emphasis",markers:_f(t)==="*"?["*","_"]:["_","*"],sizes:[1]}}function Hf(e,t,n){return n.options.emphasis||"*"}function Wf(e,t){let n=!1;return bt(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Ge}),!!((!e.depth||e.depth<3)&&dt(e)&&(t.options.setext||n))}function Qf(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(Wf(e,n)){const f=n.enter("headingSetext"),p=n.enter("phrasing"),h=n.containerPhrasing(e,{...o.current(),before:`
30
+ `,after:`
31
+ `});return p(),f(),h+`
32
+ `+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(`
33
+ `))+1))}const l="#".repeat(i),a=n.enter("headingAtx"),u=n.enter("phrasing");o.move(l+" ");let s=n.containerPhrasing(e,{before:"# ",after:`
34
+ `,...o.current()});const c=s.charCodeAt(0);return(c===9||c===32)&&(s=Fi(c)+s.slice(1)),s=s?l+" "+s:l,n.options.closeAtx&&(s+=" "+l),u(),a(),s}_i.peek=Yf;function _i(e){return e.value||""}function Yf(){return"<"}Bi.peek=Gf;function Bi(e,t,n,r){const i=Fn(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let a=n.enter("label");const u=n.createTracker(r);let s=u.move("![");return s+=u.move(n.safe(e.alt,{before:s,after:"]",...u.current()})),s+=u.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),s+=u.move("<"),s+=u.move(n.safe(e.url,{before:s,after:">",...u.current()})),s+=u.move(">")):(a=n.enter("destinationRaw"),s+=u.move(n.safe(e.url,{before:s,after:e.title?" ":")",...u.current()}))),a(),e.title&&(a=n.enter(`title${o}`),s+=u.move(" "+i),s+=u.move(n.safe(e.title,{before:s,after:i,...u.current()})),s+=u.move(i),a()),s+=u.move(")"),l(),s}function Gf(){return"!"}ji.peek=Xf;function ji(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const a=n.createTracker(r);let u=a.move("![");const s=n.safe(e.alt,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const c=n.stack;n.stack=c.filter(function(p){return p!=="phrasing"}),l=n.enter("reference");const f=n.safe(n.associationId(e),{before:u,after:"]",...a.current()});return l(),n.stack=c,o(),i==="full"||!s||s!==f?u+=a.move(f+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function Xf(){return"!"}qi.peek=Kf;function qi(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^\n\r ]/.test(r)&&(/^[\n\r ]/.test(r)&&/[\n\r ]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const l=n.unsafe[o],a=n.compilePattern(l);if(!l.atBreak)continue;let u;for(;u=a.exec(r);){let s=u.index;r.charCodeAt(s)===10&&r.charCodeAt(s-1)===13&&s--,r=r.slice(0,s)+" "+r.slice(u.index+1)}}return i+r+i}function Kf(){return"`"}function $i(e,t){const n=dt(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][+\-.a-z]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Ui.peek=Jf;function Ui(e,t,n,r){const i=Fn(n),o=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);if($i(e,n)){const m=n.stack;n.stack=m.filter(function(y){return y!=="phrasing"});const x=n.enter("autolink");let b=l.move("<");return b+=l.move(n.containerPhrasing(e,{before:b,after:">",...l.current()})),b+=l.move(">"),x(),n.stack=m,b}const a=n.enter("link");let u=n.enter("label"),s=l.move("[");const c=n.containerPhrasing(e,{before:s,after:"](",...l.current()});s+=l.move(c),u(),s+=l.move("](");const f=/[\0- \u007F]/.test(e.url),p=r.before.charAt(r.before.length-1);let h=e.title||void 0;if(!h&&!f&&(p===`
35
+ `||p==="\r")){let m=0;for(;m<c.length&&c.charCodeAt(m)!==93;)m+=c.charCodeAt(m)===92?2:1;c.charCodeAt(m+1)===58&&(h="")}return!e.url&&typeof h=="string"||f?(u=n.enter("destinationLiteral"),s+=l.move("<"),s+=l.move(n.safe(e.url,{before:s,after:">",...l.current()})),s+=l.move(">")):(u=n.enter("destinationRaw"),s+=l.move(n.safe(e.url,{before:s,after:typeof h=="string"?" ":")",...l.current()}))),u(),typeof h=="string"&&(u=n.enter(`title${o}`),s+=l.move(" "+i),s+=l.move(n.safe(h,{before:s,after:i,...l.current()})),s+=l.move(i),u()),s+=l.move(")"),a(),s}function Jf(e,t,n){return $i(e,n)?"<":"["}Vi.peek=Zf;function Vi(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const a=n.createTracker(r);let u=a.move("[");const s=n.containerPhrasing(e,{before:u,after:"]",...a.current()});u+=a.move(s+"]["),l();const c=n.stack;n.stack=c.filter(function(p){return p!=="phrasing"}),l=n.enter("reference");const f=n.safe(n.associationId(e),{before:u,after:"]",...a.current()});return l(),n.stack=c,o(),i==="full"||!s||s!==f?u+=a.move(f+"]"):i==="shortcut"?u=u.slice(0,-1):u+=a.move("]"),u}function Zf(){return"["}function Rn(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function eh(e){const t=Rn(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function th(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function Hi(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function nh(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?th(n):Rn(n);const a=e.ordered?l==="."?")":".":eh(n);let u=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(u=!0),Hi(n)===l&&c){let f=-1;for(;++f<e.children.length;){const p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){u=!0;break}}}}u&&(l=a),n.bulletCurrent=l;const s=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,i(),s}function rh(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function ih(e,t,n,r){const i=rh(n);let o=n.bulletCurrent||Rn(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const a=n.createTracker(r);a.move(o+" ".repeat(l-o.length)),a.shift(l);const u=n.enter("listItem"),s=n.indentLines(n.containerFlow(e,a.current()),c);return u(),s;function c(f,p,h){return p?(h?"":" ".repeat(l))+f:(h?o:o+" ".repeat(l-o.length))+f}}function lh(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l}function oh(e,t,n,r){if(!e.children.some(function(a){return Tf(a)}))return n.containerFlow(e,r);const o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),l}function ah(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Nn.attention=Wi;Nn.peek=uh;function Nn(e,t,n,r){const i=n.enter("phrasing"),o=Mn(e,Wi,n,n.createTracker(r)),l=o?St([o],r.before,r.after):"";return i(),l}function Wi(e,t){return{construct:"strong",markers:ah(t)==="*"?["*","_"]:["_","*"],sizes:[2]}}function uh(e,t,n){return n.options.strong||"*"}function sh(e,t,n,r){const i=t?t.children:[],o=n.indexStack[n.indexStack.length-1];return n.safe(e.value,{...r,afterNode:i[o+1],beforeNode:i[o-1]})}function ch(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function fh(e,t,n){const r=(Hi(n)+(n.options.ruleSpaces?" ":"")).repeat(ch(n));return n.options.ruleSpaces?r.slice(0,-1):r}const pn={blockquote:Lf,break:Rr,code:Of,definition:Nf,emphasis:On,hardBreak:Rr,heading:Qf,html:_i,image:Bi,imageReference:ji,inlineCode:qi,link:Ui,linkReference:Vi,list:nh,listItem:ih,paragraph:lh,root:oh,strong:Nn,text:sh,thematicBreak:fh};function hh(){return{enter:{table:ph,tableData:Br,tableHeader:Br,tableRow:dh},exit:{codeText:gh,table:mh,tableData:Xt,tableHeader:Xt,tableRow:Xt}}}function ph(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[],position:void 0},e),this.data.inTable=!0}function mh(e){this.exit(e),this.data.inTable=void 0}function dh(e){this.enter({type:"tableRow",children:[],position:void 0},e)}function Xt(e){this.exit(e)}function Br(e){this.enter({type:"tableCell",children:[],position:void 0},e)}function gh(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,xh));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function xh(e,t){return t==="|"?t:e}function yh(e){const t=e||{},{tableCellPadding:n,tablePipeAlign:r,stringLength:i}=t,o=n?" ":"|";return{handlers:{inlineCode:p,table:l,tableCell:u,tableRow:a},join:[kh],unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
36
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}]};function l(h,m,x,b){const y=c(h,x,b),A=y[0];if(A){let C=h.align?h.align.length:0,L=-1;if(!C)for(;++L<y.length;)y[L].length>C&&(C=y[L].length);for(;A.length<C;)A.push("")}return s(y,h.align)}function a(h,m,x,b){const y=f(h,x,b),A=s([y]);return A.slice(0,A.indexOf(`
37
+ `))}function u(h,m,x,b){const y=x.enter("tableCell"),A=x.enter("phrasing"),C=x.containerPhrasing(h,{...b,before:o,after:o});return A(),y(),C}function s(h,m){return Ef(h,{align:m,alignDelimiters:r,fillRows:!1,padding:n,stringLength:i})}function c(h,m,x){const{children:b}=h;let y=-1;const A=[],C=m.enter("table");for(;++y<b.length;)A[y]=f(b[y],m,x);return C(),A}function f(h,m,x){const{children:b}=h;let y=-1;const A=[],C=m.enter("tableRow");for(;++y<b.length;)A[y]=u(b[y],h,m,x);return C(),A}function p(h,m,x){const b=pn.inlineCode(h,m,x);if(!x.stack.includes("tableCell"))return b;const y=[];let A=0,C=b.indexOf("|");for(;C!==-1;){let L=C;for(;L>A&&b.charCodeAt(L-1)===92;)L--;y.push(b.slice(A,C)),(C-L)%2===0&&y.push("\\"),A=C,C=b.indexOf("|",C+1)}return y.push(b.slice(A)),y.join("")}}function kh(e,t,n,r){if(e.type==="table"&&n.type==="listItem"&&n.spread===!1&&(t.type==="definition"||t.type==="heading"&&bh(t,r)||t.type==="paragraph"||t.type==="table"))return 1}function bh(e,t){let n=!1;return bt(e,function(r){if(r.type==="break"||"value"in r&&/\r?\n|\r/.test(r.value))return n=!0,Ge}),!!((!e.depth||e.depth<3)&&dt(e)&&(t.options.setext||n))}function wh(){return{exit:{taskListCheckValueChecked:jr,taskListCheckValueUnchecked:jr,paragraph:Sh}}}function Ch(){return{handlers:{paragraph:vh},join:[Ah]}}function jr(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Sh(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,l;for(;++o<i.length;){const a=i[o];if(a.type==="paragraph"){l=a;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start={...r.position.start}))}}this.exit(e)}function vh(e,t,n,r){if(!t||t.type!=="listItem"||Qi(t)!==e)return pn.paragraph(e,t,n,r);const i="["+(t.checked?"x":" ")+"] ",o=n.createTracker(r);o.move(i);const l=pn.paragraph(e.children.length>0?e:{type:"paragraph",children:[{type:"text",value:" "}]},t,n,{...r,...o.current()});return i+l}function Ah(e,t,n){if(!(e.type==="definition"&&n.type==="listItem"))return;const r=Qi(n);if(r&&n.children.indexOf(e)<n.children.indexOf(r))return 0}function Qi(e){if(typeof e.checked=="boolean")for(const t of e.children){if(t.type==="paragraph")return t;if(t.type!=="definition")return}}function Eh(){return[Vc(),df(),kf(),hh(),wh()]}function Ih(e){return{extensions:[Hc(),gf(e),bf(),yh(e),Ch()]}}const Th={tokenize:Mh,partial:!0},Yi={tokenize:Oh,partial:!0},Gi={tokenize:Rh,partial:!0},Xi={tokenize:Nh,partial:!0},Lh={tokenize:_h,partial:!0},Ki={name:"wwwAutolink",tokenize:Dh,previous:Zi},Ji={name:"protocolAutolink",tokenize:Fh,previous:el},be={name:"emailAutolink",tokenize:Ph,previous:tl},de={};function zh(){return{text:de}}let Ee=48;for(;Ee<123;)de[Ee]=be,Ee++,Ee===58?Ee=65:Ee===91&&(Ee=97);de[43]=be;de[45]=be;de[46]=be;de[95]=be;de[72]=[be,Ji];de[104]=[be,Ji];de[87]=[be,Ki];de[119]=[be,Ki];function Ph(e,t,n){const r=this;let i,o;return l;function l(f){return!mn(f)||!tl.call(r,r.previous)||_n(r.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return mn(f)?(e.consume(f),a):f===64?(e.consume(f),u):n(f)}function u(f){return f===46?e.check(Lh,c,s)(f):f===45||f===95||J(f)?(o=!0,e.consume(f),u):c(f)}function s(f){return e.consume(f),i=!0,u}function c(f){return o&&i&&X(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function Dh(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!Zi.call(r,r.previous)||_n(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Th,e.attempt(Yi,e.attempt(Gi,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function Fh(e,t,n){const r=this;let i="",o=!1;return l;function l(f){return(f===72||f===104)&&el.call(r,r.previous)&&!_n(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(f),e.consume(f),a):n(f)}function a(f){if(X(f)&&i.length<5)return i+=String.fromCodePoint(f),e.consume(f),a;if(f===58){const p=i.toLowerCase();if(p==="http"||p==="https")return e.consume(f),u}return n(f)}function u(f){return f===47?(e.consume(f),o?s:(o=!0,u)):n(f)}function s(f){return f===null||ut(f)||V(f)||oe(f)||me(f)?n(f):e.attempt(Yi,e.attempt(Gi,c),n)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function Mh(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function Oh(e,t,n){let r,i,o;return l;function l(s){return s===46||s===95?e.check(Xi,u,a)(s):s===null||V(s)||oe(s)||s!==45&&me(s)?u(s):(o=!0,e.consume(s),l)}function a(s){return s===95?r=!0:(i=r,r=void 0),e.consume(s),l}function u(s){return i||r||!o?n(s):t(s)}}function Rh(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Xi,t,o)(l):l===null||V(l)||oe(l)?t(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function Nh(e,t,n){return r;function r(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),r):a===38?(e.consume(a),o):a===93?(e.consume(a),i):a===60||a===null||V(a)||oe(a)?t(a):n(a)}function i(a){return a===null||a===40||a===91||V(a)||oe(a)?t(a):r(a)}function o(a){return X(a)?l(a):n(a)}function l(a){return a===59?(e.consume(a),r):X(a)?(e.consume(a),l):n(a)}}function _h(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return J(o)?n(o):t(o)}}function Zi(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||V(e)}function el(e){return!X(e)}function tl(e){return!(e===47||mn(e))}function mn(e){return e===43||e===45||e===46||e===95||J(e)}function _n(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Bh={tokenize:Qh,partial:!0};function jh(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Vh,continuation:{tokenize:Hh},exit:Wh}},text:{91:{name:"gfmFootnoteCall",tokenize:Uh},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:qh,resolveTo:$h}}}}function qh(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const u=r.events[i][1];if(u.type==="labelImage"){l=u;break}if(u.type==="gfmFootnoteCall"||u.type==="labelLink"||u.type==="label"||u.type==="image"||u.type==="link")break}return a;function a(u){if(!l||!l._balanced)return n(u);const s=fe(r.sliceSerialize({start:l.end,end:r.now()}));return s.codePointAt(0)!==94||!o.includes(s.slice(1))?n(u):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),t(u))}}function $h(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function Uh(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),u}function u(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(f){if(o>999||f===93&&!l||f===null||f===91||V(f))return n(f);if(f===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(fe(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return V(f)||(l=!0),o++,e.consume(f),f===92?c:s}function c(f){return f===91||f===92||f===93?(e.consume(f),o++,s):s(f)}}function Vh(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,a;return u;function u(m){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),s}function s(m){return m===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(m)}function c(m){if(l>999||m===93&&!a||m===null||m===91||V(m))return n(m);if(m===93){e.exit("chunkString");const x=e.exit("gfmFootnoteDefinitionLabelString");return o=fe(r.sliceSerialize(x)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(m),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return V(m)||(a=!0),l++,e.consume(m),m===92?f:c}function f(m){return m===91||m===92||m===93?(e.consume(m),l++,c):c(m)}function p(m){return m===58?(e.enter("definitionMarker"),e.consume(m),e.exit("definitionMarker"),i.includes(o)||i.push(o),q(e,h,"gfmFootnoteDefinitionWhitespace")):n(m)}function h(m){return t(m)}}function Hh(e,t,n){return e.check(Ze,t,e.attempt(Bh,t,n))}function Wh(e){e.exit("gfmFootnoteDefinition")}function Qh(e,t,n){const r=this;return q(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function Yh(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(l,a){let u=-1;for(;++u<l.length;)if(l[u][0]==="enter"&&l[u][1].type==="strikethroughSequenceTemporary"&&l[u][1]._close){let s=u;for(;s--;)if(l[s][0]==="exit"&&l[s][1].type==="strikethroughSequenceTemporary"&&l[s][1]._open&&l[u][1].end.offset-l[u][1].start.offset===l[s][1].end.offset-l[s][1].start.offset){l[u][1].type="strikethroughSequence",l[s][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},l[s][1].start),end:Object.assign({},l[u][1].end)},f={type:"strikethroughText",start:Object.assign({},l[s][1].end),end:Object.assign({},l[u][1].start)},p=[["enter",c,a],["enter",l[s][1],a],["exit",l[s][1],a],["enter",f,a]],h=a.parser.constructs.insideSpan.null;h&&ce(p,p.length,0,gt(h,l.slice(s+1,u),a)),ce(p,p.length,0,[["exit",f,a],["enter",l[u][1],a],["exit",l[u][1],a],["exit",c,a]]),ce(l,s-1,u-s+3,p),u=s+p.length-2;break}}for(u=-1;++u<l.length;)l[u][1].type==="strikethroughSequenceTemporary"&&(l[u][1].type="data");return l}function o(l,a,u){const s=this.previous,c=this.events;let f=0;return p;function p(m){return s===126&&c[c.length-1][1].type!=="characterEscape"?u(m):(l.enter("strikethroughSequenceTemporary"),h(m))}function h(m){const x=Se(s);if(m===126)return f>1?u(m):(l.consume(m),f++,h);if(f<2&&!n)return u(m);const b=l.exit("strikethroughSequenceTemporary"),y=Se(m);return b._open=!y||y===2&&!!x,b._close=!x||x===2&&!!y,a(m)}}}class Gh{constructor(){this.map=[],this.index=new Map}add(t,n,r){Xh(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0,this.index.clear()}}function Xh(e,t,n,r){if(n===0&&r.length===0)return;const i=e.index.get(t);if(i){i[1]+=n,i[2].push(...r);return}const o=[t,n,r];e.map.push(o),e.index.set(t,o)}function Kh(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Jh(){return{flow:{null:{name:"table",tokenize:Zh,resolveAll:ep}}}}function Zh(e,t,n){const r=this;let i=0,o=0,l;return a;function a(w){let T=r.events.length-1;for(;T>-1;){const{type:$}=r.events[T][1];if($==="lineEnding"||$==="linePrefix")T--;else break}const D=T>-1?r.events[T][1].type:null,M=D==="tableHead"||D==="tableRow"?S:u;return M===S&&r.parser.lazy[r.now().line]?n(w):M(w)}function u(w){return e.enter("tableHead"),e.enter("tableRow"),s(w)}function s(w){return w===124||(l=!0,o+=1),c(w)}function c(w){return w===null?n(w):P(w)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),h):n(w):B(w)?q(e,c,"whitespace")(w):(o+=1,l&&(l=!1,i+=1),w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),l=!0,c):(e.enter("data"),f(w)))}function f(w){return w===null||w===124||V(w)?(e.exit("data"),c(w)):(e.consume(w),w===92?p:f)}function p(w){return w===92||w===124?(e.consume(w),f):f(w)}function h(w){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(w):(e.enter("tableDelimiterRow"),l=!1,B(w)?q(e,m,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(w):m(w))}function m(w){return w===45||w===58?b(w):w===124?(l=!0,e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),x):O(w)}function x(w){return B(w)?q(e,b,"whitespace")(w):b(w)}function b(w){return w===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),y):w===45?(o+=1,y(w)):w===null||P(w)?L(w):O(w)}function y(w){return w===45?(e.enter("tableDelimiterFiller"),A(w)):O(w)}function A(w){return w===45?(e.consume(w),A):w===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(w),e.exit("tableDelimiterMarker"),C):(e.exit("tableDelimiterFiller"),C(w))}function C(w){return B(w)?q(e,L,"whitespace")(w):L(w)}function L(w){return w===124?m(w):w===null||P(w)?!l||i!==o?O(w):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(w)):O(w)}function O(w){return n(w)}function S(w){return e.enter("tableRow"),F(w)}function F(w){return w===124?(e.enter("tableCellDivider"),e.consume(w),e.exit("tableCellDivider"),F):w===null||P(w)?(e.exit("tableRow"),t(w)):B(w)?q(e,F,"whitespace")(w):(e.enter("data"),R(w))}function R(w){return w===null||w===124||V(w)?(e.exit("data"),F(w)):(e.consume(w),w===92?I:R)}function I(w){return w===92||w===124?(e.consume(w),R):R(w)}}function ep(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],a=!1,u=0,s,c,f;const p=new Gh;for(;++n<e.length;){const h=e[n],m=h[1];h[0]==="enter"?m.type==="tableHead"?(a=!1,u!==0&&(qr(p,t,u,s,c),c=void 0,u=0),s={type:"table",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",s,t]])):m.type==="tableRow"||m.type==="tableDelimiterRow"?(r=!0,f=void 0,o=[0,0,0,0],l=[0,n+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},m.start),end:Object.assign({},m.end)},p.add(n,0,[["enter",c,t]])),i=m.type==="tableDelimiterRow"?2:c?3:1):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],f=ot(p,t,o,i,void 0,f),o=[0,0,0,0]),l[2]=n)):m.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],f=ot(p,t,o,i,void 0,f)),o=l,l=[o[1],n,0,0])):m.type==="tableHead"?(a=!0,u=n):m.type==="tableRow"||m.type==="tableDelimiterRow"?(u=n,o[1]!==0?(l[0]=l[1],f=ot(p,t,o,i,n,f)):l[1]!==0&&(f=ot(p,t,l,i,n,f)),i=0):i&&(m.type==="data"||m.type==="tableDelimiterMarker"||m.type==="tableDelimiterFiller")&&(l[3]=n)}for(u!==0&&qr(p,t,u,s,c),p.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=Kh(t.events,n))}return e}function ot(e,t,n,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(o.end=Object.assign({},Re(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const u=Re(t.events,n[1]);if(o={type:l,start:Object.assign({},u),end:Object.assign({},u)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const s=Re(t.events,n[2]),c=Re(t.events,n[3]),f={type:a,start:Object.assign({},s),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",f,t]]),r!==2){const p=t.events[n[2]],h=t.events[n[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const m=n[2]+1,x=n[3]-n[2]-1;e.add(m,x,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(o.end=Object.assign({},Re(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function qr(e,t,n,r,i){const o=[],l=Re(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function Re(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const tp={name:"tasklistCheck",tokenize:rp};function np(){return{text:{91:tp}}}function rp(e,t,n){const r=this;return i;function i(u){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(u):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),o)}function o(u){return V(u)?(e.enter("taskListCheckValueUnchecked"),e.consume(u),e.exit("taskListCheckValueUnchecked"),l):u===88||u===120?(e.enter("taskListCheckValueChecked"),e.consume(u),e.exit("taskListCheckValueChecked"),l):n(u)}function l(u){return u===93?(e.enter("taskListCheckMarker"),e.consume(u),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(u)}function a(u){return P(u)?t(u):B(u)?e.check({tokenize:ip},t,n)(u):n(u)}}function ip(e,t,n){return q(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function lp(e){return li([zh(),jh(),Yh(e),Jh(),np()])}const op={};function ap(e){const t=this,n=e||op,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(lp(n)),o.push(Eh()),l.push(Ih(n))}const $r={underline:"u",highlight:"mark",red:"span"},up={en:{NOTE:"Note",TIP:"Tip",IMPORTANT:"Important",WARNING:"Warning",CAUTION:"Caution"},ja:{NOTE:"注記",TIP:"ヒント",IMPORTANT:"重要",WARNING:"警告",CAUTION:"注意"}};function sp(e="en"){function t(n){if(n.type==="textDirective"&&Object.hasOwn($r,n.name)&&(n.data={hName:$r[n.name]},n.name==="red"&&(n.data.hProperties={className:["paper-red"]})),n.type==="blockquote"){const r=n.children[0],i=r?.type==="paragraph"&&r.children[0],o=i?.type==="text"&&/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\](?:\r?\n|$)/.exec(i.value);if(o){const l=o[1];i.value=i.value.slice(o[0].length),i.value||r.children.shift(),r.children.length||n.children.shift(),n.children.unshift({type:"paragraph",data:{hProperties:{className:["paper-alert-label"]}},children:[{type:"text",value:up[e][l]}]}),n.data={hProperties:{className:["paper-alert",`paper-alert-${l.toLowerCase()}`]}}}}n.children?.forEach(t)}return t}function cp(e){let t;try{t=new URL(e)}catch{return}if(t.protocol!=="https:"||t.username||t.password||t.port)return;const[,n,r,i]=t.pathname.replace(/\/$/,"").split("/");let o;switch(t.hostname){case"youtu.be":r||(o=n);break;case"youtube.com":case"www.youtube.com":case"m.youtube.com":case"www.youtube-nocookie.com":n==="watch"&&!r&&(o=t.searchParams.get("v")),(n==="embed"||n==="shorts"||n==="live")&&!i&&(o=r);break;case"vimeo.com":case"www.vimeo.com":case"player.vimeo.com":{if(i)return;const u=t.hostname==="player.vimeo.com",s=u&&n==="video"?r:u?void 0:n;if(!s||!/^\d+$/.test(s))return;const c=new URL(`https://player.vimeo.com/video/${s}`),f=u?t.searchParams.get("h"):r;return f&&/^[a-z\d]+$/i.test(f)&&c.searchParams.set("h",f),{source:c.href,provider:"Vimeo"}}}if(!o||!/^[\w-]{11}$/.test(o))return;const l=new URL(`https://www.youtube-nocookie.com/embed/${o}`);l.searchParams.set("playsinline","1");const a=t.searchParams.get("start")??t.searchParams.get("t");return a&&/^\d{1,6}s?$/.test(a)&&l.searchParams.set("start",a.replace(/s$/,"")),{source:l.href,provider:"YouTube"}}function fp({title:e,original:t,video:n,loadLabel:r,openLabel:i}){const[o,l]=Ur(!1);return Y("span",{className:"paper-embed",children:[o?Y("iframe",{src:n.source,title:e,allow:"encrypted-media; fullscreen; picture-in-picture",allowFullScreen:!0,referrerPolicy:"strict-origin-when-cross-origin",sandbox:"allow-scripts allow-same-origin allow-presentation"}):Y("button",{type:"button",onClick:()=>l(!0),children:[Y(bl,{size:21,"aria-hidden":!0})," ",r," · ",n.provider]}),Y("a",{href:t,target:"_blank",rel:"noreferrer",children:i})]})}function hp({children:e,label:t}){const n=Wn(null),r=Wn(null),[i,o]=Ur(!1);return Vr(()=>{const a=n.current,u=r.current;if(!a||!u)return;const s=()=>{o(a.scrollWidth>a.clientWidth)},c=new ResizeObserver(s);return c.observe(a),c.observe(u),s(),()=>c.disconnect()},[]),Y("div",{ref:n,className:"paper-table","data-overflow":i||void 0,...i?{role:"region","aria-label":t,tabIndex:0}:void 0,children:Y("table",{ref:r,children:e})})}const pp=xl(()=>yl(()=>import("./MermaidDiagram-Dma3Cwvn.js").then(e=>e.bc),__vite__mapDeps([0,1,2]),import.meta.url));function mp(e){return e.toLowerCase().trim().replace(/[^\p{Letter}\p{Number}\s_-]/gu,"").replace(/\s+/g,"-")}function Oe(e,t){return({children:n,node:r})=>{const i=r?.position?.start.offset,o=i===void 0?void 0:t?.[i];return Y(e,{id:o??(typeof n=="string"?mp(n):void 0),children:n})}}function dp(e){return{img:({alt:t,src:n,title:r})=>{if(!n)return Y("span",{className:"missing-image",children:t});const i=cp(n);return i?Y(fp,{title:t||r||i.provider,original:n,video:i,loadLabel:e.loadVideo,openLabel:e.openVideo}):/\.mp4(?:[?#]|$)/i.test(n)?Y("video",{className:"paper-video",src:n,"aria-label":t||r,title:r,controls:!0,playsInline:!0,preload:"metadata"}):Y("img",{alt:t??"",src:n,title:r,loading:"lazy",decoding:"async"})},pre:({children:t})=>ml(t)&&t.props.className==="language-mermaid"&&typeof t.props.children=="string"?Y(dl,{fallback:Y("pre",{"aria-busy":"true",children:t}),children:Y(pp,{code:t.props.children,text:e})}):Y("pre",{children:t})}}function gp(e,t){if(Object.hasOwn(e.links,t)){const n=e.links[t];return n?gl(n):void 0}try{const n=decodeURI(t);if(Object.hasOwn(e.links,n))return e.links[n]||void 0}catch{return hn(t)}return hn(t)}function xp({page:e,text:t,locale:n,onReady:r}){Vr(()=>r(),[r]);const i=e.headingIds,o=pl(()=>({...dp(t),table:({children:l})=>Y(hp,{label:t.scrollableTable,children:l}),h1:Oe("h1",i),h2:Oe("h2",i),h3:Oe("h3",i),h4:Oe("h4",i),h5:Oe("h5",i),h6:Oe("h6",i)}),[i,t]);return Y(Ns,{remarkPlugins:[ap,_c,[sp,n]],components:o,urlTransform:l=>gp(e,l),children:e.markdown})}const wp=Object.freeze(Object.defineProperty({__proto__:null,default:xp},Symbol.toStringTag,{value:"Module"}));export{wp as P,bp as c,hs as g};
@@ -0,0 +1 @@
1
+ import{g as p,r as u,d as a}from"./chunk-OY52VR5R-D8f7gl4W.js";import{p as f}from"./chunk-JWPE2WC7-BiKy7CcD.js";import{_ as n,l as o}from"./MermaidDiagram-Dma3Cwvn.js";import{M as c,b as d}from"./cynefin-EF2NZ3EQ-Df5ATUPb.js";import"./index-CqcyU6rA.js";import"./PageMarkdown-C-gI_dXg.js";var v=d().RailroadAbnf.parser.LangiumParser,i=n(e=>{const r=e.alternatives.map(g);return r.length===1?r[0]:{type:"choice",alternatives:r}},"transformAlternation"),g=n(e=>{const r=e.elements.map(y);return r.length===1?r[0]:{type:"sequence",elements:r}},"transformConcatenation"),b=n(e=>{if(e.includes("*")){const[t,s]=e.split("*"),l=t?parseInt(t,10):0,m=s?parseInt(s,10):1/0;return{min:l,max:m}}const r=parseInt(e,10);return{min:r,max:r}},"parseRepeat"),y=n(e=>{const r=A(e.primary);if(!e.repeat)return r;const{min:t,max:s}=b(e.repeat);return t===0&&s===1?{type:"optional",element:r}:{type:"repetition",element:r,min:t,max:s}},"transformElement"),A=n(e=>{switch(e.$type){case"AbnfStringLiteral":return{type:"terminal",value:e.value};case"AbnfNumVal":return{type:"terminal",value:e.value};case"AbnfRuleName":return{type:"nonterminal",name:e.name};case"AbnfGroup":return i(e.element);case"AbnfOptionalGroup":return{type:"optional",element:i(e.element)};default:throw new Error(`Unsupported ABNF primary node: ${e.$type}`)}},"transformPrimary"),P=n(e=>({name:e.name,definition:i(e.definition)}),"transformRule"),h=n(e=>{f(e,a),e.title&&a.setTitle(e.title),e.rules.map(r=>a.addRule(P(r)))},"populateDb"),R={parse:n(e=>{a.clear(),o.debug("[ABNF Parser] Starting Langium parse");const r=v.parse(e);if(r.lexerErrors.length>0||r.parserErrors.length>0)throw new c(r);const t=r.value;o.debug("[ABNF Parser] Parsed rules:",t.rules.length),h(t),o.debug("[ABNF Parser] Parse complete")},"parse"),parser:{yy:a}},F={parser:R,db:a,renderer:u,styles:p};export{F as diagram};